@ngrok/mantle 0.93.6 → 0.94.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion.d.ts +13 -1
- package/dist/accordion.js +1 -1
- package/dist/agent.json +1181 -36
- package/dist/alert-CH99Rw-R.js +1 -0
- package/dist/{alert-BcSBNR3S.d.ts → alert-HffaioZM.d.ts} +31 -21
- package/dist/alert-center.d.ts +15 -3
- package/dist/alert-center.js +1 -1
- package/dist/alert-dialog.d.ts +15 -2
- package/dist/alert-dialog.js +1 -1
- package/dist/alert.d.ts +6 -1
- package/dist/alert.js +1 -1
- package/dist/anchor.d.ts +12 -0
- package/dist/app-layout.d.ts +16 -1
- package/dist/app-layout.js +1 -1
- package/dist/area-chart.d.ts +144 -88
- package/dist/area-chart.js +1 -1
- package/dist/avatar.d.ts +12 -0
- package/dist/badge.d.ts +13 -1
- package/dist/bar-chart.d.ts +144 -89
- package/dist/bar-chart.js +1 -1
- package/dist/breadcrumb.d.ts +11 -0
- package/dist/breadcrumb.js +1 -1
- package/dist/browser-only.d.ts +8 -0
- package/dist/{button-Yxyu1XMd.d.ts → button-BGwOPjGV.d.ts} +7 -1
- package/dist/{button-B8k98Pby.js → button-BWGUuWnu.js} +1 -1
- package/dist/{button-CPsKGDK0.d.ts → button-Cgf2IcEC.d.ts} +8 -1
- package/dist/button-Cu9e3SM7.js +1 -0
- package/dist/{button-BX-4lYUn.d.ts → button-K0pKc3GN.d.ts} +3 -3
- package/dist/button.d.ts +9 -3
- package/dist/button.js +1 -1
- package/dist/calendar.d.ts +7 -0
- package/dist/calendar.js +1 -1
- package/dist/card.d.ts +6 -1
- package/dist/centered-layout.d.ts +11 -0
- package/dist/chart-BO9EwQ60.js +1 -0
- package/dist/chart-CE5Uaqz9.js +1 -0
- package/dist/chart-DCTGGlWL.js +1 -0
- package/dist/chart-DudCw24t.js +2 -0
- package/dist/{chart-BpfbtOUN.d.ts → chart-jitNqimS.d.ts} +99 -103
- package/dist/{checkbox-DmSQXs26.js → checkbox-CS504fKk.js} +1 -1
- package/dist/checkbox.d.ts +14 -1
- package/dist/checkbox.js +1 -1
- package/dist/{choice-BLR0_MeB.d.ts → choice-BwfmbepO.d.ts} +7 -1
- package/dist/choice-uyYccm0A.js +1 -0
- package/dist/choice.d.ts +6 -1
- package/dist/choice.js +1 -1
- package/dist/code-block.d.ts +13 -2
- package/dist/code-block.js +1 -1
- package/dist/code-block_highlight-utils.d.ts +5 -0
- package/dist/code.d.ts +13 -0
- package/dist/color-CHZbU1Ww.js +1 -0
- package/dist/color.js +1 -1
- package/dist/combobox.d.ts +28 -14
- package/dist/combobox.js +1 -1
- package/dist/command.d.ts +14 -2
- package/dist/command.js +1 -1
- package/dist/cx.js +1 -1
- package/dist/data-table.d.ts +50 -19
- package/dist/data-table.js +1 -1
- package/dist/description-list.d.ts +12 -1
- package/dist/dialog-B9JAGy_x.d.ts +28 -0
- package/dist/{dialog-7TUgiSzX.js → dialog-CsugEt2A.js} +1 -1
- package/dist/{dialog-2fRO4ca4.d.ts → dialog-DD5H3EH1.d.ts} +10 -2
- package/dist/dialog.d.ts +7 -2
- package/dist/dialog.js +1 -1
- package/dist/dropdown-menu-DHdgaw4P.js +1 -0
- package/dist/{dropdown-menu-CpjRwMWe.d.ts → dropdown-menu-DmDxYPde.d.ts} +34 -26
- package/dist/dropdown-menu.d.ts +6 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/empty.d.ts +5 -0
- package/dist/empty.js +1 -1
- package/dist/{field-V_gnkcmN.d.ts → field-BshcNVe_.d.ts} +1 -1
- package/dist/field.d.ts +17 -6
- package/dist/field.js +1 -1
- package/dist/flag.d.ts +8 -0
- package/dist/hooks.d.ts +5 -0
- package/dist/hooks.js +1 -1
- package/dist/hover-card.d.ts +23 -12
- package/dist/{icon-ByLVhdYq.d.ts → icon-NYvyyRMG.d.ts} +6 -0
- package/dist/icon.d.ts +7 -2
- package/dist/icon.js +1 -1
- package/dist/{icons-DP3lQw5O.js → icons-4JA-SGfv.js} +1 -1
- package/dist/icons.d.ts +13 -1
- package/dist/icons.js +1 -1
- package/dist/{index-BhfgyurF.d.ts → index-KJ06KK6t.d.ts} +3 -3
- package/dist/input-BjCDSOPA.js +1 -0
- package/dist/input-DHovzBjS.js +1 -0
- package/dist/{input-Dx5owTCc.d.ts → input-q8o5uMhW.d.ts} +11 -1
- package/dist/input.d.ts +34 -2
- package/dist/input.js +1 -1
- package/dist/kbd.d.ts +12 -0
- package/dist/{label-nHqqYS7e.js → label-DmDwzPD8.js} +1 -1
- package/dist/{label-Dn5CPJUj.d.ts → label-r2sJcSQ4.d.ts} +6 -0
- package/dist/label.d.ts +6 -1
- package/dist/label.js +1 -1
- package/dist/line-chart.d.ts +139 -82
- package/dist/line-chart.js +1 -1
- package/dist/{list-RFRIQxU2.js → list-CO_yLdln.js} +1 -1
- package/dist/list.d.ts +19 -1
- package/dist/list.js +1 -1
- package/dist/live-region.d.ts +14 -1
- package/dist/llms.txt +78 -76
- package/dist/main.d.ts +12 -0
- package/dist/mantle.css +110 -65
- package/dist/media-object.d.ts +12 -0
- package/dist/migrations/0014-chart-named-colors.yml +1389 -0
- package/dist/migrations/0015-segmented-control.yml +788 -0
- package/dist/multi-select.d.ts +15 -2
- package/dist/multi-select.js +1 -1
- package/dist/otp-input.d.ts +17 -5
- package/dist/otp-input.js +1 -1
- package/dist/pagination.d.ts +92 -3
- package/dist/pagination.js +1 -1
- package/dist/popover-BhTFutCz.d.ts +1 -0
- package/dist/{popover-BfB2I9G0.d.ts → popover-lwkwWcRW.d.ts} +16 -7
- package/dist/popover.d.ts +7 -2
- package/dist/progress.d.ts +27 -10
- package/dist/progress.js +1 -1
- package/dist/qr-code.d.ts +9 -1
- package/dist/query.d.ts +2 -2
- package/dist/query.js +1 -1
- package/dist/radio-group-jj2abc0t.js +1 -0
- package/dist/radio-group-sLz5AA9I.d.ts +27 -0
- package/dist/radio-group.d.ts +20 -99
- package/dist/radio-group.js +1 -1
- package/dist/sandbar.d.ts +14 -1
- package/dist/sandbar.js +1 -1
- package/dist/sandboxed-on-click.d.ts +8 -0
- package/dist/scatter-plot.d.ts +126 -64
- package/dist/scatter-plot.js +1 -1
- package/dist/segmented-control.d.ts +136 -0
- package/dist/segmented-control.js +1 -0
- package/dist/{select-BkhBxtOT.d.ts → select-BqmpVJJT.d.ts} +29 -21
- package/dist/select-C6Su0dU0.js +1 -0
- package/dist/select.d.ts +6 -1
- package/dist/select.js +1 -1
- package/dist/selectable-list.d.ts +13 -2
- package/dist/selectable-list.js +1 -1
- package/dist/{separator-D9AWEkcJ.d.ts → separator-QfH0ot5K.d.ts} +3 -1
- package/dist/separator.d.ts +6 -1
- package/dist/{sheet-CSJc_sB4.js → sheet-Bd2LIhzF.js} +1 -1
- package/dist/sheet.d.ts +15 -2
- package/dist/sheet.js +1 -1
- package/dist/sidebar.d.ts +19 -3
- package/dist/sidebar.js +1 -1
- package/dist/skeleton.d.ts +11 -0
- package/dist/skip-to-main-link.d.ts +11 -0
- package/dist/skip-to-main-link.js +1 -1
- package/dist/slider.d.ts +10 -0
- package/dist/{slot-C0OCJjdJ.d.ts → slot-D12N_fZJ.d.ts} +3 -1
- package/dist/slot.d.ts +6 -1
- package/dist/split-button.d.ts +14 -3
- package/dist/split-button.js +1 -1
- package/dist/strata.d.ts +13 -0
- package/dist/switch.d.ts +13 -1
- package/dist/switch.js +1 -1
- package/dist/{table-vT6Okwfa.d.ts → table-rWiVWEgB.d.ts} +79 -0
- package/dist/table.d.ts +6 -1
- package/dist/tabs.d.ts +23 -11
- package/dist/tabs.js +1 -1
- package/dist/text-area.d.ts +11 -1
- package/dist/theme-DdZgLvKH.js +1 -0
- package/dist/theme-switcher.d.ts +16 -2
- package/dist/theme-switcher.js +1 -1
- package/dist/theme.d.ts +12 -0
- package/dist/theme.js +1 -1
- package/dist/toast.d.ts +14 -1
- package/dist/toast.js +1 -1
- package/dist/{tooltip-NcLIeBy5.d.ts → tooltip-CpK3XTor.d.ts} +15 -8
- package/dist/tooltip.d.ts +6 -1
- package/dist/truncated-text.d.ts +27 -13
- package/dist/truncated-text.js +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/use-inert-siblings-CNmNuS2h.js +1 -0
- package/dist/use-swipe-to-dismiss-i__cTF2v.js +1 -0
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/dist/visually-hidden.d.ts +13 -0
- package/dist/well.d.ts +6 -1
- package/package.json +7 -7
- package/src/components/chart/d3-license.md +25 -0
- package/dist/alert-P9lwn25X.js +0 -1
- package/dist/button-Dge0D5bl.js +0 -1
- package/dist/chart-BpWfQAwf.js +0 -2
- package/dist/choice-2Lrv8_nl.js +0 -1
- package/dist/dialog-Dp0QGWwo.d.ts +0 -28
- package/dist/dropdown-menu-BHBzCDSZ.js +0 -1
- package/dist/input-CpQ6jlpI.js +0 -1
- package/dist/popover-C96V8SXi.d.ts +0 -1
- package/dist/select-CAAYk4Yj.js +0 -1
- package/dist/theme-C-glc5Q-.js +0 -1
- package/dist/use-swipe-to-dismiss-DceYk1Id.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./
|
|
1
|
+
import{t as e}from"./booleanish-BfvnW6vy.js";import{t}from"./cx-CK7o_rVv.js";import{t as n}from"./data-slot-EM6s2WEU.js";import{n as r,r as i}from"./button-Cu9e3SM7.js";import{t as a}from"./slot-DdYN1L1C.js";import{t as o}from"./button-BQZ6eoD3.js";import{c as s}from"react/compiler-runtime";import{Children as c,cloneElement as l,isValidElement as u}from"react";import d from"tiny-invariant";import{jsx as f}from"react/jsx-runtime";import{CircleNotchIcon as p}from"@phosphor-icons/react/CircleNotch";const m=m=>{let h=s(58),g,_,v,y,b,x,S,C,w,T,E,D,O,k,A;h[0]===m?(g=h[1],_=h[2],v=h[3],y=h[4],b=h[5],x=h[6],S=h[7],C=h[8],w=h[9],T=h[10],E=h[11],D=h[12],O=h[13],k=h[14],A=h[15]):({"aria-disabled":g,"data-slot":x,appearance:v,asChild:D,children:y,className:b,disabled:_,icon:w,intent:S,isLoading:O,label:C,ref:E,size:k,type:A,...T}=m,h[0]=m,h[1]=g,h[2]=_,h[3]=v,h[4]=y,h[5]=b,h[6]=x,h[7]=S,h[8]=C,h[9]=w,h[10]=T,h[11]=E,h[12]=D,h[13]=O,h[14]=k,h[15]=A);let j=D!==void 0&&D,M=O!==void 0&&O,N=k===void 0?`md`:k,P;h[16]!==g||h[17]!==_||h[18]!==M?(P=e(_??M)||e(g),h[16]=g,h[17]=_,h[18]=M,h[19]=P):P=h[19];let F=P,I;h[20]===x?I=h[21]:(I=n(x,`icon-button`),h[20]=x,h[21]=I);let L;h[22]!==v||h[23]!==b||h[24]!==S||h[25]!==M||h[26]!==N?(L=t(o({appearance:v,intent:S,isLoading:M,size:N}),b),h[22]=v,h[23]=b,h[24]=S,h[25]=M,h[26]=N,h[27]=L):L=h[27];let R=F?``:void 0,z=M?``:void 0,B;h[28]!==v||h[29]!==F||h[30]!==S||h[31]!==C||h[32]!==T||h[33]!==E||h[34]!==N||h[35]!==I||h[36]!==L||h[37]!==R||h[38]!==z?(B={"aria-disabled":F,"data-slot":I,className:L,"data-appearance":v,"data-disabled":R,"data-icon-button":!0,"data-intent":S,"data-loading":z,"data-size":N,ref:E,...T,"aria-label":C},h[28]=v,h[29]=F,h[30]=S,h[31]=C,h[32]=T,h[33]=E,h[34]=N,h[35]=I,h[36]=L,h[37]=R,h[38]=z,h[39]=B):B=h[39];let V=B,H=M?`loading`:`idle`,U;h[40]===Symbol.for(`react.memo_cache_sentinel`)?(U=/* @__PURE__ */ f(p,{className:`animate-spin`}),h[40]=U):U=h[40];let W;h[41]===w?W=h[42]:(W={idle:w,loading:U},h[41]=w,h[42]=W);let G;h[43]!==H||h[44]!==W?(G=/* @__PURE__ */ f(i,{active:H,icons:W}),h[43]=H,h[44]=W,h[45]=G):G=h[45];let K=G;if(j){d(u(y)&&c.only(y),"When using `asChild`, IconButton must be passed a single child as a JSX tag.");let e;h[46]!==y||h[47]!==F||h[48]!==K?(e=l(y,F?r:{},K),h[46]=y,h[47]=F,h[48]=K,h[49]=e):e=h[49];let t;return h[50]!==V||h[51]!==e?(t=/* @__PURE__ */ f(a,{...V,children:e}),h[50]=V,h[51]=e,h[52]=t):t=h[52],t}let q=A??`button`,J;return h[53]!==V||h[54]!==F||h[55]!==K||h[56]!==q?(J=/* @__PURE__ */ f(`button`,{...V,disabled:F,type:q,children:K}),h[53]=V,h[54]=F,h[55]=K,h[56]=q,h[57]=J):J=h[57],J};export{m as t};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
|
|
2
|
+
import { r as VariantProps } from "./index-KJ06KK6t.js";
|
|
2
3
|
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
3
|
-
import { r as VariantProps } from "./index-BhfgyurF.js";
|
|
4
4
|
import { ComponentProps, ReactNode } from "react";
|
|
5
5
|
/**
|
|
6
6
|
* The tone axis of the text-labelled button family (`Button` and
|
|
@@ -168,6 +168,13 @@ type ButtonProps = ComponentProps<"button"> & Omit<ButtonVariants, "appearance"
|
|
|
168
168
|
* | `data-loading` | present when `isLoading` | Presence-only, never `"false"`. |
|
|
169
169
|
* | `data-disabled` | present when disabled | Presence-only, never `"false"`, since the `data-disabled:` variant matches the attribute's existence. Set when the button resolves disabled: `disabled`, `aria-disabled="true"`, or `isLoading` with no explicit `disabled`. `disabled={false}` keeps a loading button enabled and omits it. |
|
|
170
170
|
*
|
|
171
|
+
* @useWhen Run an action on a click: submit a form, save a change, or open a dialog.
|
|
172
|
+
*
|
|
173
|
+
* @siblings
|
|
174
|
+
* - `IconButton`: the button shows one icon and no text.
|
|
175
|
+
* - `SplitButton`: a default action sits beside a menu of related actions.
|
|
176
|
+
* - `Anchor`: the control goes to another address and runs no action.
|
|
177
|
+
*
|
|
171
178
|
* @see https://mantle.ngrok.com/components/actions/button
|
|
172
179
|
*
|
|
173
180
|
* @example
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./booleanish-BfvnW6vy.js";import{t}from"./clsx-DUGZgXfJ.js";import{t as n}from"./cx-CK7o_rVv.js";import{t as r}from"./data-slot-EM6s2WEU.js";import{t as ee}from"./icon-kK0c-POG.js";import{t as i}from"./slot-DdYN1L1C.js";import{c as a}from"react/compiler-runtime";import{Children as o,cloneElement as s,isValidElement as c}from"react";import l from"tiny-invariant";import{Fragment as u,jsx as d,jsxs as f}from"react/jsx-runtime";import{cva as p}from"class-variance-authority";import{CircleNotchIcon as m}from"@phosphor-icons/react/CircleNotch";const h=e=>{let t=a(20),i,o,s,c,l;t[0]===e?(i=t[1],o=t[2],s=t[3],c=t[4],l=t[5]):({"data-slot":s,active:i,className:o,icons:c,...l}=e,t[0]=e,t[1]=i,t[2]=o,t[3]=s,t[4]=c,t[5]=l);let u;t[6]===s?u=t[7]:(u=r(s,`icon-swap`),t[6]=s,t[7]=u);let f;t[8]===o?f=t[9]:(f=n(`inline-grid shrink-0 place-items-center`,o),t[8]=o,t[9]=f);let p;t[10]===c?p=t[11]:(p=Object.entries(c),t[10]=c,t[11]=p);let m;t[12]!==i||t[13]!==p?(m=p.map(e=>{let[t,r]=e,a=t===i;return/* @__PURE__ */ d(`span`,{"data-slot":`icon-swap-item`,"data-state":a?`active`:`inactive`,"aria-hidden":!a||void 0,className:n(`col-start-1 row-start-1 grid place-items-center`,`motion-safe:transition-[opacity,scale,filter,visibility] motion-safe:duration-200 motion-safe:ease-out-strong`,`data-state-inactive:opacity-0 motion-safe:data-state-inactive:scale-50 motion-safe:data-state-inactive:blur-[2px] motion-safe:data-state-inactive:duration-150`,`data-state-inactive:invisible`,`data-state-inactive:*:paused`),children:/* @__PURE__ */ d(ee,{svg:r})},t)}),t[12]=i,t[13]=p,t[14]=m):m=t[14];let h;return t[15]!==l||t[16]!==u||t[17]!==f||t[18]!==m?(h=/* @__PURE__ */ d(`span`,{"data-slot":u,className:f,...l,children:m}),t[15]=l,t[16]=u,t[17]=f,t[18]=m,t[19]=h):h=t[19],h},te=p(``,{variants:{appearance:{filled:`bg-filled-accent text-white focus-visible:ring-focus-accent not-disabled:hover:bg-filled-accent-hover border border-transparent text-sm font-medium`,ghost:`text-accent-600 focus-visible:ring-focus-accent not-disabled:hover:bg-accent-500/10 not-disabled:hover:text-accent-700 border border-transparent text-sm font-medium`,outlined:`border-accent-600 bg-form text-accent-600 focus-visible:ring-focus-accent not-disabled:hover:border-accent-700 not-disabled:hover:bg-accent-500/10 not-disabled:hover:text-accent-700 border text-sm font-medium`,link:`text-accent-600 focus-visible:ring-focus-accent not-disabled:hover:underline group/button-link border-transparent`},isLoading:{false:``,true:`opacity-50`},intent:{accent:``,danger:``,neutral:``},size:{xs:``,sm:``,md:``,lg:``,xl:``}},defaultVariants:{isLoading:!1,size:`md`},compoundVariants:[{appearance:[`filled`,`ghost`,`outlined`],size:`xs`,class:`h-6 px-2`},{appearance:[`filled`,`ghost`,`outlined`],size:`sm`,class:`h-7 px-2.5`},{appearance:[`filled`,`ghost`,`outlined`],size:`md`,class:`h-9 px-3`},{appearance:[`filled`,`ghost`,`outlined`],size:`lg`,class:`h-10 px-3.5`},{appearance:[`filled`,`ghost`,`outlined`],size:`xl`,class:`h-12 px-4`},{appearance:`ghost`,intent:`danger`,class:`text-danger-600 focus-visible:ring-focus-danger not-disabled:hover:bg-danger-500/10 not-disabled:hover:text-danger-700 border-transparent`},{appearance:`outlined`,intent:`danger`,class:`border-danger-600 bg-form text-danger-600 focus-visible:ring-focus-danger not-disabled:hover:border-danger-700 not-disabled:hover:bg-danger-500/10 not-disabled:hover:text-danger-700`},{appearance:`filled`,intent:`danger`,class:`bg-filled-danger focus-visible:ring-focus-danger not-disabled:hover:bg-filled-danger-hover border-transparent`},{appearance:`link`,intent:`danger`,class:`text-danger-600 focus-visible:ring-focus-danger`},{appearance:`ghost`,intent:`neutral`,class:`text-strong focus-visible:ring-focus-accent not-disabled:hover:bg-neutral-500/10 not-disabled:hover:text-strong border-transparent`},{appearance:`outlined`,intent:`neutral`,class:`border-form bg-form text-strong focus-visible:border-accent-600 focus-visible:ring-focus-accent not-disabled:hover:border-neutral-400 not-disabled:hover:bg-form-hover not-disabled:hover:text-strong focus-visible:not-disabled:hover:border-accent-600 focus-visible:not-disabled:active:border-accent-600`},{appearance:`filled`,intent:`neutral`,class:`bg-filled-neutral not-disabled:hover:bg-filled-neutral-hover border-transparent focus-visible:border-transparent text-neutral-50`},{appearance:`link`,intent:`neutral`,class:`text-strong focus-visible:ring-focus-accent`}]}),ne={xs:`ps-1.5`,sm:`ps-2`,md:`ps-2.5`,lg:`ps-3`,xl:`ps-3.5`},re={xs:`pe-1.5`,sm:`pe-2`,md:`pe-2.5`,lg:`pe-3`,xl:`pe-3.5`},g=p=>{let g=a(68),_,v,y,b,x,S,C,w,T,E,D,O,k,A,j;g[0]===p?(_=g[1],v=g[2],y=g[3],b=g[4],x=g[5],S=g[6],C=g[7],w=g[8],T=g[9],E=g[10],D=g[11],O=g[12],k=g[13],A=g[14],j=g[15]):({"aria-disabled":_,"data-slot":C,appearance:y,asChild:b,children:x,className:S,disabled:v,icon:T,iconPlacement:O,intent:w,isLoading:k,ref:D,size:A,type:j,...E}=p,g[0]=p,g[1]=_,g[2]=v,g[3]=y,g[4]=b,g[5]=x,g[6]=S,g[7]=C,g[8]=w,g[9]=T,g[10]=E,g[11]=D,g[12]=O,g[13]=k,g[14]=A,g[15]=j);let M=O===void 0?`start`:O,N=k!==void 0&&k,P=A===void 0?`md`:A,F;g[16]!==_||g[17]!==v||g[18]!==N?(F=e(v??N)||e(_),g[16]=_,g[17]=v,g[18]=N,g[19]=F):F=g[19];let I=F,L;g[20]===Symbol.for(`react.memo_cache_sentinel`)?(L=/* @__PURE__ */ d(m,{className:`animate-spin`}),g[20]=L):L=g[20];let ae=L,R=M===`end`&&`order-last`,z;g[21]===R?z=g[22]:(z=t(R),g[21]=R,g[22]=z);let B=z,V;g[23]!==B||g[24]!==N||g[25]!==T?(V=T?/* @__PURE__ */ d(h,{active:N?`loading`:`idle`,icons:{idle:T,loading:ae},className:B}):N&&/* @__PURE__ */ d(ee,{svg:ae,className:B}),g[23]=B,g[24]=N,g[25]=T,g[26]=V):V=g[26];let H=V,U=H&&y!==`link`,W;g[27]===C?W=g[28]:(W=r(C,`button`),g[27]=C,g[28]=W);let G;g[29]!==y||g[30]!==S||g[31]!==U||g[32]!==M||g[33]!==w||g[34]!==N||g[35]!==P?(G=n(`inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-md`,`focus:outline-hidden focus-visible:ring-4`,`disabled:cursor-default disabled:opacity-50`,`aria-disabled:cursor-default aria-disabled:opacity-50`,`not-disabled:active:scale-97 ease-out transition-transform duration-150`,te({appearance:y,intent:w,isLoading:N,size:P}),y!==`link`&&`font-sans`,U&&M===`start`&&ne[P],U&&M===`end`&&re[P],S),g[29]=y,g[30]=S,g[31]=U,g[32]=M,g[33]=w,g[34]=N,g[35]=P,g[36]=G):G=g[36];let K=I?``:void 0,q=N?``:void 0,J=y===`link`?void 0:P,Y;g[37]!==y||g[38]!==I||g[39]!==w||g[40]!==E||g[41]!==D||g[42]!==G||g[43]!==K||g[44]!==q||g[45]!==J||g[46]!==W?(Y={"aria-disabled":I,"data-slot":W,className:G,"data-appearance":y,"data-disabled":K,"data-intent":w,"data-loading":q,"data-size":J,ref:D,...E},g[37]=y,g[38]=I,g[39]=w,g[40]=E,g[41]=D,g[42]=G,g[43]=K,g[44]=q,g[45]=J,g[46]=W,g[47]=Y):Y=g[47];let X=Y;if(b){l(c(x)&&o.only(x),"When using `asChild`, Button must be passed a single child as a JSX tag.");let e;if(g[48]!==x||g[49]!==I||g[50]!==H){let t;g[52]===x.props.children?t=g[53]:(t=/* @__PURE__ */ d(`span`,{"data-slot":`button-label`,className:`contents`,children:x.props.children}),g[52]=x.props.children,g[53]=t);let n;g[54]!==H||g[55]!==t?(n=/* @__PURE__ */ f(u,{children:[H,t]}),g[54]=H,g[55]=t,g[56]=n):n=g[56],e=s(x,I?ie:{},n),g[48]=x,g[49]=I,g[50]=H,g[51]=e}else e=g[51];let t;return g[57]!==X||g[58]!==e?(t=/* @__PURE__ */ d(i,{...X,children:e}),g[57]=X,g[58]=e,g[59]=t):t=g[59],t}let Z=j??`button`,Q;g[60]===x?Q=g[61]:(Q=/* @__PURE__ */ d(`span`,{"data-slot":`button-label`,className:`contents`,children:x}),g[60]=x,g[61]=Q);let $;return g[62]!==X||g[63]!==I||g[64]!==H||g[65]!==Z||g[66]!==Q?($=/* @__PURE__ */ f(`button`,{...X,disabled:I,type:Z,children:[H,Q]}),g[62]=X,g[63]=I,g[64]=H,g[65]=Z,g[66]=Q,g[67]=$):$=g[67],$},ie={tabIndex:-1,onClickCapture:e=>{e.preventDefault(),e.stopPropagation()}};export{ie as n,h as r,g as t};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import "./button-Cgf2IcEC.js";
|
|
2
|
+
import "./button-BGwOPjGV.js";
|
|
3
|
+
import { r as VariantProps } from "./index-KJ06KK6t.js";
|
|
1
4
|
import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
|
|
2
5
|
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
3
|
-
import { r as VariantProps } from "./index-BhfgyurF.js";
|
|
4
|
-
import "./button-CPsKGDK0.js";
|
|
5
|
-
import "./button-Yxyu1XMd.js";
|
|
6
6
|
import { ComponentProps } from "react";
|
|
7
7
|
declare const buttonGroupVariants: (props?: ({
|
|
8
8
|
appearance?: "ghost" | "outlined" | "panel" | null | undefined;
|
package/dist/button.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Re-exports for the Button component family.
|
|
3
|
+
*
|
|
4
|
+
* @see https://mantle.ngrok.com/components/actions/button
|
|
5
|
+
* @see https://mantle.ngrok.com/components/actions/icon-button
|
|
6
|
+
*/
|
|
7
|
+
import { i as ButtonIntent, n as ButtonAppearance, r as ButtonProps, t as Button } from "./button-Cgf2IcEC.js";
|
|
8
|
+
import { i as IconButtonIntent, n as IconButtonProps, r as IconButtonAppearance, t as IconButton } from "./button-BGwOPjGV.js";
|
|
9
|
+
import { n as ButtonGroupProps, t as ButtonGroup } from "./button-K0pKc3GN.js";
|
|
4
10
|
import { t as ButtonSize } from "./button-L4exxu_L.js";
|
|
5
11
|
export { Button, type ButtonAppearance, ButtonGroup, type ButtonGroupProps, type ButtonIntent, type ButtonProps, type ButtonSize, IconButton, type IconButtonAppearance, type IconButtonIntent, type IconButtonProps };
|
package/dist/button.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./button-
|
|
1
|
+
import{t as e}from"./button-Cu9e3SM7.js";import{t}from"./button-BWGUuWnu.js";import{t as n}from"./button-69InNC_m.js";export{e as Button,n as ButtonGroup,t as IconButton};
|
package/dist/calendar.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-exports for the Calendar component.
|
|
3
|
+
*
|
|
4
|
+
* @see https://mantle.ngrok.com/components/preview/calendar
|
|
5
|
+
*/
|
|
1
6
|
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
2
7
|
import { ComponentProps } from "react";
|
|
3
8
|
import { DateRange, DayPicker } from "react-day-picker";
|
|
@@ -26,6 +31,8 @@ type CalendarProps = ComponentProps<typeof DayPicker> & WithDataSlot;
|
|
|
26
31
|
* @preview The API is not stable and may change. There may also be bugs.
|
|
27
32
|
* Please file an issue at https://github.com/ngrok/mantle/issues if you find any.
|
|
28
33
|
*
|
|
34
|
+
* @useWhen Pick one date or a range of dates from a month grid.
|
|
35
|
+
*
|
|
29
36
|
* @see https://mantle.ngrok.com/components/preview/calendar
|
|
30
37
|
*
|
|
31
38
|
* @example
|
package/dist/calendar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./cx-CK7o_rVv.js";import{t}from"./data-slot-EM6s2WEU.js";import{t as n}from"./
|
|
1
|
+
import{t as e}from"./cx-CK7o_rVv.js";import{t}from"./data-slot-EM6s2WEU.js";import{t as n}from"./button-BQZ6eoD3.js";import{t as r}from"./icon-kK0c-POG.js";import{c as i}from"react/compiler-runtime";import{jsx as a}from"react/jsx-runtime";import{CaretRightIcon as o}from"@phosphor-icons/react/CaretRight";import{CaretLeftIcon as s}from"@phosphor-icons/react/CaretLeft";import{DayPicker as c}from"react-day-picker";const l=n({appearance:`ghost`,intent:`neutral`,size:`sm`});function u(e){let t=i(2),{orientation:n}=e,c;return t[0]===n?c=t[1]:(c=/* @__PURE__ */ a(r,{svg:a(n===`left`?s:o,{}),className:`size-4`}),t[0]=n,t[1]=c),c}const d={Chevron:u},f={button_next:e(l,`absolute right-0`),button_previous:e(l,`absolute left-0`),caption_label:`text-sm font-medium`,day_button:`day size-full rounded-md not-aria-selected:not-disabled:hover:bg-filled-accent/15`,disabled:`text-muted opacity-50`,hidden:`invisible`,month:`space-y-4`,month_caption:`flex justify-center pt-1 relative items-center`,month_grid:`w-full border-collapse space-y-1`,months:`flex flex-col sm:flex-row gap-y-4 sm:gap-x-4 sm:gap-y-0 relative max-w-min`,nav:`flex items-center absolute inset-x-0 top-1 h-5 justify-between z-10`,outside:`day-outside aria-selected:text-on-filled opacity-50 text-muted`,range_end:`day-range-end [&:not(.day-range-start)]:rounded-l-none`,range_middle:`day-range-middle not-disabled:aria-selected:bg-filled-accent/15 aria-selected:text-strong rounded-none not-disabled:aria-selected:hover:bg-filled-accent/25`,range_start:`day-range-start [&:not(.day-range-end)]:rounded-r-none`,selected:`not-disabled:bg-filled-accent text-on-filled not-disabled:hover:bg-filled-accent`,today:`not-aria-selected:not-disabled:text-accent-600 font-medium not-aria-selected:not-disabled:bg-filled-accent/10 rounded-md`,week:`flex w-full mt-1`,weekday:`text-body w-7 text-[0.8rem] text-center font-normal`,weekdays:`flex`};function p(n){let r=i(27),o,s,l,u,p;r[0]===n?(o=r[1],s=r[2],l=r[3],u=r[4],p=r[5]):({"data-slot":l,className:o,classNames:s,showOutsideDays:p,...u}=n,r[0]=n,r[1]=o,r[2]=s,r[3]=l,r[4]=u,r[5]=p);let m=p!==void 0&&p,h=u.mode,g;r[6]===s?g=r[7]:(g=s??{},r[6]=s,r[7]=g);let _,v;r[8]===g?(_=r[9],v=r[10]):({root:v,..._}=g,r[8]=g,r[9]=_,r[10]=v);let y;r[11]!==o||r[12]!==v?(y=e(`isolate`,o,v),r[11]=o,r[12]=v,r[13]=y):y=r[13];let b=h===`range`&&`first:has-aria-selected:rounded-l-md last:has-aria-selected:rounded-r-md`,x;r[14]===b?x=r[15]:(x=e(`overflow-hidden text-center text-sm p-0 relative focus-within:relative focus-within:z-20 size-7 rounded-md`,b),r[14]=b,r[15]=x);let S;r[16]!==_||r[17]!==y||r[18]!==x?(S={...f,root:y,day:x,..._},r[16]=_,r[17]=y,r[18]=x,r[19]=S):S=r[19];let C=S,w;r[20]===l?w=r[21]:(w=t(l,`calendar`),r[20]=l,r[21]=w);let T;return r[22]!==C||r[23]!==u||r[24]!==m||r[25]!==w?(T=/* @__PURE__ */ a(c,{"data-slot":w,animate:!1,components:d,classNames:C,showOutsideDays:m,...u}),r[22]=C,r[23]=u,r[24]=m,r[25]=w,r[26]=T):T=r[26],T}export{p as Calendar};
|
package/dist/card.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-exports for the Card component.
|
|
3
|
+
*
|
|
4
|
+
* @see https://mantle.ngrok.com/components/structure/card
|
|
5
|
+
*/
|
|
1
6
|
import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
|
|
7
|
+
import "./index-KJ06KK6t.js";
|
|
2
8
|
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
3
|
-
import "./index-BhfgyurF.js";
|
|
4
9
|
import { ComponentProps } from "react";
|
|
5
10
|
type CardProps = ComponentProps<"div"> & WithAsChild & WithDataSlot;
|
|
6
11
|
/**
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-exports for the CenteredLayout component.
|
|
3
|
+
*
|
|
4
|
+
* @see https://mantle.ngrok.com/layouts/centered-layout
|
|
5
|
+
*/
|
|
1
6
|
import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
|
|
2
7
|
import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
|
|
3
8
|
import { ComponentProps } from "react";
|
|
@@ -169,6 +174,12 @@ declare const Footer: ({ asChild, children, className, "data-slot": dataSlot, ..
|
|
|
169
174
|
* sessions) never enters it, and landmark semantics stay compositional:
|
|
170
175
|
* brand marks, links, and the `Main` landmark arrive as composed JSX.
|
|
171
176
|
*
|
|
177
|
+
* @useWhen Center one focused full-page flow, such as sign-in, sign-up, onboarding, checkout, or a
|
|
178
|
+
* 404 page.
|
|
179
|
+
*
|
|
180
|
+
* @siblings
|
|
181
|
+
* - `AppLayout`: the page sits in a signed-in app, with a sidebar and a header that persist across routes.
|
|
182
|
+
*
|
|
172
183
|
* @see https://mantle.ngrok.com/layouts/centered-layout
|
|
173
184
|
*
|
|
174
185
|
* @example
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e,m as t}from"./chart-DudCw24t.js";import{a as n}from"./chart-CE5Uaqz9.js";const r=Math.PI/2-.05,i=e=>({cosYaw:Math.cos(e.yaw),sinYaw:Math.sin(e.yaw),cosPitch:Math.cos(e.pitch),sinPitch:Math.sin(e.pitch)}),a=(e,t,n,r)=>{let i=e*r.cosYaw+n*r.sinYaw,a=-e*r.sinYaw+n*r.cosYaw,o=t*r.cosPitch-a*r.sinPitch,s=t*r.sinPitch+a*r.cosPitch,c=4/(4+s);return{x:i*c,y:o*c,depth:s,scale:c}},o=e=>Math.min(r,Math.max(-r,e)),s=(e,t)=>{let n=t[1]-t[0];return n===0?0:(e-t[0])/n*2-1},c=[[-1,-1,-1],[1,-1,-1],[1,1,-1],[-1,1,-1],[-1,-1,1],[1,-1,1],[1,1,1],[-1,1,1]],l=[[0,1],[1,2],[2,3],[3,0],[4,5],[5,6],[6,7],[7,4],[0,4],[1,5],[2,6],[3,7]],u=(t,r)=>{let{count:i,order:a,screenX:o,screenY:s,radius:c,colorAt:l,shapeAt:u,alphaAt:d,surface:f}=r;if(t.save(),i>2e4){let e=``,n=-1;for(let r of a){let i=l(r);i!==e&&(t.fillStyle=i,e=i);let a=d(r);a!==n&&(t.globalAlpha=a,n=a);let u=Math.max(1,(c[r]??0)/2);t.fillRect((o[r]??0)-u/2,(s[r]??0)-u/2,u,u)}t.restore();return}let p=i<=n;t.strokeStyle=f,t.lineWidth=2;let m=``,h=-1;for(let n of a){let r=l(n);r!==m&&(t.fillStyle=r,m=r);let i=d(n);i!==h&&(t.globalAlpha=i,h=i),t.beginPath(),e(t,o[n]??0,s[n]??0,c[n]??0,u(n)),t.fill(),p&&t.stroke()}t.restore()},d=(e,t)=>{let{gridColor:n,axisColor:r,corners:i,edges:a,cubeAlpha:o,axes:s}=t;if(e.save(),o>.01){e.globalAlpha=o,e.strokeStyle=n,e.lineWidth=1,e.beginPath();for(let[t,n]of a){let r=i[t],a=i[n];r!=null&&a!=null&&(e.moveTo(r.x,r.y),e.lineTo(a.x,a.y))}e.stroke()}e.strokeStyle=r;for(let{alpha:t,from:n,to:r}of s)t<=.01||(e.globalAlpha=t,e.beginPath(),e.moveTo(n.x,n.y),e.lineTo(r.x,r.y),e.stroke());e.restore()},f=(e,t)=>{let{textColor:n,fontFamily:r,plot:i,center:a,axes:o}=t;e.save(),e.fillStyle=n,e.font=`11px ${r}`,e.textAlign=`center`,e.textBaseline=`middle`;for(let{label:t,alpha:n,from:r,to:s}of o){if(n<=.01)continue;let o=Math.hypot(r.x-a.x,r.y-a.y),c=Math.hypot(s.x-a.x,s.y-a.y),l=c>=o?s:r,u=c>=o?r:s,d=Math.max(1,Math.hypot(l.x-u.x,l.y-u.y)),f=(l.x-u.x)/d*16,p=(l.y-u.y)/d*16,m=Math.min(i.left+i.width-8,Math.max(i.left+8,l.x+f)),h=Math.min(i.top+i.height-6,Math.max(i.top+6,l.y+p));e.globalAlpha=n,e.fillText(t,m,h)}e.restore()},p=e=>e===3?{yaw:.65,pitch:-.35}:{yaw:0,pitch:0},m=e=>[+(e>=2),+(e>=3)];var h=class{#e;#t=p(3);#n=new t({speed:.12});#r=new t({speed:.16});#i=null;#a=null;#o=/* @__PURE__ */ new Int32Array;constructor(e,t){this.#e=e,this.snap(t)}setDimensions(e,t){let n=p(e);if(!t.glide){this.snap(e);return}let r=n.yaw+Math.round((this.#t.yaw-n.yaw)/(Math.PI*2))*Math.PI*2,i=performance.now();this.#r.aim(m(e),i),this.#n.jump([this.#t.yaw,this.#t.pitch]),this.#n.aim([r,n.pitch],i)}snap(e){let t=p(e);this.#r.jump(m(e)),this.#t=t,this.#n.jump([t.yaw,t.pitch])}settle(e){this.#r.jump(m(e)),this.#n.active&&this.snap(e)}tick(e){let t=this.#r.tick(e);if(this.#n.tick(e)){t=!0;let e=this.#n.values();this.#t={yaw:e[0]??this.#t.yaw,pitch:e[1]??this.#t.pitch}}return t}resetProjection(){this.#a=null}press({x:e,y:t,moved:n}){this.#i={lastX:e,lastY:t,moved:n}}dragTo(e,t){let n=this.#i;if(n==null)return`none`;let r=e-n.lastX,i=t-n.lastY;return!n.moved&&Math.abs(r)+Math.abs(i)<=3?`held`:(n.moved=!0,this.#t={yaw:this.#t.yaw+r*.008,pitch:o(this.#t.pitch+i*.008)},this.#n.jump([this.#t.yaw,this.#t.pitch]),n.lastX=e,n.lastY=t,`rotated`)}release(){let e=this.#i;return this.#i=null,e==null?`none`:e.moved?`rotated`:`tap`}paintLabels(e,t){let n=this.#e.colors();n!=null&&f(e,{textColor:n.chrome.tickText,fontFamily:n.fontFamily(),plot:this.#e.plot(),center:t.center,axes:t.axes})}paint(e,t,n){let r=this.#e,o=r.plot(),f=r.rowCount(),p=r.xs(),m=r.zs(),h=i(this.#t),g=o.left+o.width/2,_=o.top+o.height/2,v=this.#r.values(),y=v[0]??1,b=v[1]??1,x=.85-.22*y-.11*b,S=Math.min(o.width,o.height)/2*x,C=r.domains(),w=n.map(e=>r.reveal(e.dataKey)),T=(e,t,n)=>{let r=a(e,t,n,h);return{x:g+r.x*S,y:_-r.y*S}},E=c.map(([e,t,n])=>T(e,t,n)),D=n[0],O=n.length===1&&D!=null?D.dataKey:`y`,k=[{label:r.xKey(),alpha:1,from:T(-1,-y,-b),to:T(1,-y,-b)},{label:O,alpha:y,from:T(-1,-1,-b),to:T(-1,1,-b)},{label:r.zKey()??`z`,alpha:b,from:T(-1,-y,-1),to:T(-1,-y,1)}];d(e,{gridColor:t.chrome.grid,axisColor:t.chrome.baseline,corners:E,edges:l,cubeAlpha:b,axes:k});let A=f*n.length,j=this.#a;(j==null||j.screenX.length<A)&&(j={screenX:new Float64Array(A),screenY:new Float64Array(A),radius:new Float64Array(A),seriesIndex:new Int32Array(A),pointIndex:new Int32Array(A),depths:new Float64Array(A),count:0});let M=j.depths,N=0;n.forEach((e,t)=>{let n=r.paintedValues(e,t);for(let e=0;e<f;e++){let r=n[e]??NaN,i=m[e]??NaN;if(Number.isNaN(r)||Number.isNaN(i))continue;let o=a(s(p[e]??0,C.x),s(r,C.y)*y,s(i,C.z)*b,h);j.screenX[N]=g+o.x*S,j.screenY[N]=_-o.y*S,j.radius[N]=4*o.scale,j.seriesIndex[N]=t,j.pointIndex[N]=e,M[N]=o.depth,N+=1}}),j.count=N,this.#a=j;let P={center:{x:g,y:_},axes:k};if(w.every(e=>e<.00196078431372549))return P;this.#o.length<N&&(this.#o=new Int32Array(A));let F=this.#o.subarray(0,N);for(let e=0;e<N;e++)F[e]=e;F.sort((e,t)=>(M[t]??0)-(M[e]??0));let I=n.map(e=>r.shape(e.dataKey));return u(e,{count:N,order:F,screenX:j.screenX,screenY:j.screenY,radius:j.radius,colorAt:e=>{let r=n[j.seriesIndex[e]??0];return r==null?`currentColor`:t.series.get(r.dataKey)??`currentColor`},shapeAt:e=>I[j.seriesIndex[e]??0]??`circle`,alphaAt:e=>w[j.seriesIndex[e]??0]??1,surface:t.chrome.surface}),P}hitAt(e,t,n){let r=this.#e.specs(),i=n*n,a=null,o=this.#a;if(o==null)return null;for(let n=0;n<o.count;n++){let s=(o.screenX[n]??0)-e,c=(o.screenY[n]??0)-t,l=s*s+c*c;if(l<i){let e=r[o.seriesIndex[n]??0];if(e==null)continue;i=l,a={seriesKey:e.dataKey,index:o.pointIndex[n]??0,screenX:o.screenX[n]??0,screenY:o.screenY[n]??0}}}return a}screenFor(e){let t=this.#a;if(t==null)return null;for(let n=0;n<t.count;n++)if((t.pointIndex[n]??-1)===e)return{x:t.screenX[n]??0,y:t.screenY[n]??0};return null}};export{h as Scatter3d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as e,h as t}from"./chart-DudCw24t.js";const n=5e3,r=2e4,i=(e,r)=>{let{color:i,surface:a,shape:o,totalPointCount:s,indexes:c,xAt:l,yAt:u,radiusAt:d}=r;if(e.fillStyle=i,s>2e4){e.beginPath();for(let t of c)d(t)<=0||e.rect(l(t)-1,u(t)-1,2,2);e.fill();return}let f=s<=n;e.strokeStyle=a,e.lineWidth=2;for(let n of c){let r=d(n);r<=0||(e.beginPath(),t(e,l(n),u(n),r,o),e.fill(),f&&e.stroke())}},a=1/510,o=[1e3,4e3,16e3];let s=null,c=null;const l=()=>(c??=import(`./chart-BO9EwQ60.js`).then(e=>(s=e.Scatter3d,e.Scatter3d),e=>{throw c=null,reportError(e),e}),c);var u=class{#e;#t=null;#n=!1;#r=0;#i=null;#a=null;#o=3;#s=null;constructor(e){this.#e=e}#c(){if(this.#t==null&&s!=null){this.#t=new s(this.#e,this.#o),this.#d();let e=this.#a;this.#a=null,e!=null&&this.#t.press(e)}return this.#t!=null||this.#n?this.#t:(this.#n=!0,this.#l(),null)}async#l(){try{await l()}catch{this.#n=!1,this.#u();return}this.#n=!1,this.#c(),this.#e.requestPaint()}#u(){let e=o[this.#r];e!=null&&this.#i==null&&(this.#r+=1,this.#i=setTimeout(()=>{this.#i=null,this.#e.requestPaint()},e))}#d(){this.#i!=null&&(clearTimeout(this.#i),this.#i=null),this.#r=0}setDimensions(e,t){this.#o=e,this.#t?.setDimensions(e,t)}settle(e){this.#o=e,this.#t?.settle(e)}tick(e){return this.#t?.tick(e)??!1}resetProjection(){this.#d(),this.#t?.resetProjection()}pressAt(e,t){if(!this.#e.is3d())return!1;this.#d();let n=this.#c();return n==null?this.#a={x:e,y:t,moved:!1}:n.press({x:e,y:t,moved:!1}),!0}dragTo(e,t){let n=this.#a;return n==null?this.#t?.dragTo(e,t)??`none`:(n.moved||=Math.abs(e-n.x)+Math.abs(t-n.y)>3,`held`)}release(){let e=this.#a;return e==null?this.#t?.release()??`none`:(this.#a=null,e.moved?`rotated`:`tap`)}paint(e){let t=this.#e,n=t.colors(),r=t.specs();if(n==null||t.rowCount()===0||r.length===0)return null;if(t.is3d())return this.#c()?.paint(e,n,r)??null;let a=t.xCoefficients(),o=t.yCoefficients(),s=t.xs(),c=t.columns(),l=this.#s;if(l==null||l.columns!==c||l.specs!==r){let e=r.map((e,n)=>t.definedIndexes(c[n]??/* @__PURE__ */ new Float64Array));l={columns:c,specs:r,indexes:e,total:e.reduce((e,t)=>e+t.length,0)},this.#s=l}let u=l.indexes,d=l.total;return r.forEach((r,c)=>{let l=t.reveal(r.dataKey);if(l<.00196078431372549)return;let f=t.paintedValues(r,c);e.save(),e.globalAlpha=l,i(e,{color:n.series.get(r.dataKey)??`currentColor`,surface:n.chrome.surface,shape:t.shape(r.dataKey),totalPointCount:d,indexes:u[c]??[],xAt:e=>(s[e]??0)*a.k+a.b,yAt:e=>(f[e]??0)*o.k+o.b,radiusAt:()=>4}),e.restore()}),null}paintLabels(e,t){this.#t?.paintLabels(e,t)}hitAt(t,n){let r=this.#e;if(r.is3d())return this.#t?.hitAt(t,n,24)??null;let i=r.specs(),a=576,o=null,s=r.xCoefficients(),c=r.yCoefficients(),l=r.xs(),u=r.rowCount(),d=e=>(l[e]??0)*s.k+s.b,f=s.k>0,p=f?e(u,e=>d(e)-t<=-24):0,m=f?e(u,e=>d(e)-t<24):u;for(let e of i){let i=r.columnOf(e.dataKey);if(i!=null)for(let r=p;r<m;r++){let s=i[r]??NaN;if(Number.isNaN(s))continue;let l=d(r),u=s*c.k+c.b,f=l-t,p=u-n,m=f*f+p*p;m<a&&(a=m,o={seriesKey:e.dataKey,index:r,screenX:l,screenY:u})}}return o}screenFor(e){let t=this.#e;if(t.is3d())return this.#t?.screenFor(e)??null;let n=t.xCoefficients(),r=t.yCoefficients();for(let i of t.specs()){let a=t.columnOf(i.dataKey)?.[e]??NaN;if(!Number.isNaN(a))return{x:(t.xs()[e]??0)*n.k+n.b,y:a*r.k+r.b}}return null}};const d=e=>new u(e);export{n as a,r as i,d as n,l as r,a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as e,i as t,p as n,r}from"./chart-DudCw24t.js";import i from"tiny-invariant";const a=`http://www.w3.org/2000/svg`,o=e=>e?.namespaceURI===a,s=[`underlay`,`marks`,`overlay`],c={fillStyle:`#000`,strokeStyle:`#000`,lineWidth:1,globalAlpha:1,lineJoin:`miter`,lineCap:`butt`,dash:``,font:`10px sans-serif`,textAlign:`start`,textBaseline:`alphabetic`,clip:null},l=e=>String(Math.round(e*100)/100),u={start:`start`,left:`start`,center:`middle`,right:`end`,end:`end`},d={top:`text-before-edge`,hanging:`hanging`,middle:`central`,alphabetic:`alphabetic`,ideographic:`ideographic`,bottom:`text-after-edge`},f=/* @__PURE__ */ new WeakMap,p=e=>(f.has(e)||f.set(e,e.createElement(`canvas`).getContext(`2d`)),f.get(e)??null),m=e=>Number.parseFloat(e)||10,h=e=>e==null?``:`${l(e.x)},${l(e.y)},${l(e.width)},${l(e.height)}`,g=(e,t)=>{if(e==null)return t;let n=Math.max(e.x,t.x),r=Math.max(e.y,t.y);return{x:n,y:r,width:Math.max(0,Math.min(e.x+e.width,t.x+t.width)-n),height:Math.max(0,Math.min(e.y+e.height,t.y+t.height)-r)}};var _=class{#e={...c};#t=[];#n=[];#r=null;#i=0;#a=!1;#o;layer=`overlay`;marks={underlay:[],marks:[],overlay:[]};constructor(e){this.#o=e}get fillStyle(){return this.#e.fillStyle}set fillStyle(e){i(typeof e==`string`,`The SVG chart backend fills with color strings only.`),this.#e.fillStyle=e}get strokeStyle(){return this.#e.strokeStyle}set strokeStyle(e){i(typeof e==`string`,`The SVG chart backend strokes with color strings only.`),this.#e.strokeStyle=e}get lineWidth(){return this.#e.lineWidth}set lineWidth(e){this.#e.lineWidth=e}get globalAlpha(){return this.#e.globalAlpha}set globalAlpha(e){this.#e.globalAlpha=e}get lineJoin(){return this.#e.lineJoin}set lineJoin(e){this.#e.lineJoin=e}get lineCap(){return this.#e.lineCap}set lineCap(e){this.#e.lineCap=e}get font(){return this.#e.font}set font(e){this.#e.font=e}get textAlign(){return this.#e.textAlign}set textAlign(e){this.#e.textAlign=e}get textBaseline(){return this.#e.textBaseline}set textBaseline(e){this.#e.textBaseline=e}reset(){this.#e={...c},this.#t=[],this.beginPath();for(let e of s)this.marks[e]=[];this.layer=`overlay`}save(){this.#t.push({...this.#e})}restore(){let e=this.#t.pop();e!=null&&(this.#e=e)}beginPath(){this.#n=[],this.#r=null,this.#i=0,this.#a=!1}closePath(){this.#n.push(`Z`)}moveTo(e,t){this.#n.push(`M${l(e)} ${l(t)}`),this.#i+=1,this.#r=null,this.#a=!0}lineTo(e,t){let n=this.#a?`L`:`M`;this.#n.push(`${n}${l(e)} ${l(t)}`),this.#r=null,this.#a=!0}bezierCurveTo(e,t,n,r,i,a){this.#n.push(`C${l(e)} ${l(t)} ${l(n)} ${l(r)} ${l(i)} ${l(a)}`),this.#r=null,this.#a=!0}rect(e,t,n,r){this.#n.push(`M${l(e)} ${l(t)}h${l(n)}v${l(r)}h${l(-n)}Z`),this.#i+=1,this.#r=this.#i===1?{x:e,y:t,width:n,height:r}:null,this.#a=!0}roundRect(e,t,n,r,i){let[a=0,o=0,s=0,c=0]=i,u=e+n,d=t+r,f=(e,t,n)=>e>0?`A${l(e)} ${l(e)} 0 0 1 ${l(t)} ${l(n)}`:`L${l(t)} ${l(n)}`;this.#n.push(`M${l(e+a)} ${l(t)}`,`L${l(u-o)} ${l(t)}`,f(o,u,t+o),`L${l(u)} ${l(d-s)}`,f(s,u-s,d),`L${l(e+c)} ${l(d)}`,f(c,e,d-c),`L${l(e)} ${l(t+a)}`,f(a,e+a,t),`Z`),this.#i+=1,this.#r=null,this.#a=!0}arc(e,t,n,r,i){let a=e+n*Math.cos(r),o=t+n*Math.sin(r);this.#n.push(`${this.#a?`L`:`M`}${l(a)} ${l(o)}`);let s=i-r,c=l(n);if(s>=Math.PI*2){let i=e-n*Math.cos(r),s=t-n*Math.sin(r);this.#n.push(`A${c} ${c} 0 1 1 ${l(i)} ${l(s)}`,`A${c} ${c} 0 1 1 ${l(a)} ${l(o)}`)}else{let r=e+n*Math.cos(i),a=t+n*Math.sin(i),o=+(s>Math.PI);this.#n.push(`A${c} ${c} 0 ${o} 1 ${l(r)} ${l(a)}`)}this.#r=null,this.#a=!0}fill(){this.#s(`fill`,this.#n.join(``))}stroke(){this.#s(`stroke`,this.#n.join(``))}fillRect(e,t,n,r){this.#s(`fill`,`M${l(e)} ${l(t)}h${l(n)}v${l(r)}h${l(-n)}Z`)}clip(){let e=this.#r;i(e!=null,`The SVG chart backend clips to one rectangle only.`),this.#e.clip=g(this.#e.clip,e)}setLineDash(e){this.#e.dash=e.join(` `)}fillText(e,t,n){this.marks[this.layer].push({type:`text`,text:e,x:t,y:n,state:{...this.#e}})}measureText(e){let t=p(this.#o);return t==null?{width:e.length*m(this.#e.font)*.6}:(t.font=this.#e.font,{width:t.measureText(e).width})}#s(e,t){if(t===``)return;let n=this.#e,r=e===`fill`?`f|${n.fillStyle}|${n.globalAlpha}|${h(n.clip)}`:`s|${n.strokeStyle}|${n.globalAlpha}|${n.lineWidth}|${n.lineJoin}|${n.lineCap}|${n.dash}|${h(n.clip)}`,i=this.marks[this.layer],a=i.at(-1);a?.type===`path`&&a.key===r?a.data+=t:i.push({type:`path`,key:r,data:t,paint:e,state:{...n}})}};const v=/* @__PURE__ */ new WeakMap,y=(e,t,n)=>{let r=v.get(e);r??(r=/* @__PURE__ */ new Map,v.set(e,r)),r.get(t)!==n&&(r.set(t,n),n===``?e.style.removeProperty(t):e.style.setProperty(t,n))},b=(e,t,n)=>{n==null?e.hasAttribute(t)&&e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)};let x=0;var S=class{svg;#e;#t;#n;#r;#i=/* @__PURE__ */ new Map;#a=0;#o=null;constructor(e,t){this.#e=e,x+=1,this.#r=`mantle-chart-${x}`;let n=this.#s(`svg`);n.setAttribute(`data-slot`,`${t}-svg`),n.setAttribute(`aria-hidden`,`true`),n.setAttribute(`focusable`,`false`),n.style.position=`absolute`,n.style.inset=`0`,n.style.width=`100%`,n.style.height=`100%`,n.style.overflow=`hidden`,n.style.direction=`ltr`,this.#t=this.#s(`defs`),n.append(this.#t),this.#n={underlay:this.#s(`g`),marks:this.#s(`g`),overlay:this.#s(`g`)};for(let e of s)n.append(this.#n[e]);this.svg=n}#s(e){return this.#e.createElementNS(a,e)}id(e){return`${this.#r}-${e}`}define(e){let t=e.id===``?null:this.#t.querySelector(`#${e.id}`);t==null?this.#t.append(e):t.replaceWith(e)}undefine(e){for(let t of Array.from(this.#t.children))t.id.startsWith(e)&&t.remove()}write(e,t){let n=/* @__PURE__ */ new Set;for(let t of s)this.#c(this.#n[t],e.marks[t],n);for(let[e,t]of this.#i)n.has(e)||(t.remove(),this.#i.delete(e));this.#u(t)}#c(e,t,n){for(t.forEach((t,r)=>{let i=t.type===`path`?`path`:`text`,a=e.children[r],s;o(a)&&a.localName===i?s=a:(s=this.#s(i),a==null?e.append(s):a.replaceWith(s));let{state:c}=t,f=h(c.clip);b(s,`clip-path`,f===``?null:`url(#${this.#l(f,c.clip)})`),f!==``&&n.add(f),y(s,`opacity`,c.globalAlpha===1?``:String(c.globalAlpha)),t.type===`path`?(b(s,`d`,t.data),t.paint===`fill`?(y(s,`fill`,c.fillStyle),y(s,`stroke`,`none`),y(s,`stroke-width`,``),y(s,`stroke-linejoin`,``),y(s,`stroke-linecap`,``),y(s,`stroke-dasharray`,``)):(y(s,`fill`,`none`),y(s,`stroke`,c.strokeStyle),y(s,`stroke-width`,String(c.lineWidth)),y(s,`stroke-linejoin`,c.lineJoin),y(s,`stroke-linecap`,c.lineCap),y(s,`stroke-dasharray`,c.dash))):(b(s,`x`,l(t.x)),b(s,`y`,l(t.y)),y(s,`font`,c.font),y(s,`fill`,c.fillStyle),y(s,`text-anchor`,u[c.textAlign]),y(s,`dominant-baseline`,d[c.textBaseline]),s.textContent!==t.text&&(s.textContent=t.text))});e.children.length>t.length;)e.lastElementChild?.remove()}#l(e,t){let n=this.#i.get(e);if(n==null&&t!=null){n=this.#s(`clipPath`),this.#a+=1,n.id=this.id(`clip-${this.#a}`);let r=this.#s(`rect`);r.setAttribute(`x`,l(t.x)),r.setAttribute(`y`,l(t.y)),r.setAttribute(`width`,l(t.width)),r.setAttribute(`height`,l(t.height)),n.append(r),this.#t.append(n),this.#i.set(e,n)}return n?.id??``}#u(e){let t=this.#n.marks;if(e==null){b(t,`mask`,null);return}if(this.#o==null){let e=this.#s(`mask`);e.id=this.id(`fade`),e.setAttribute(`maskUnits`,`userSpaceOnUse`);let t=this.#s(`linearGradient`);t.id=this.id(`fade-ramp`),t.setAttribute(`gradientUnits`,`userSpaceOnUse`);let n=this.#s(`stop`);n.setAttribute(`offset`,`0`),n.setAttribute(`stop-color`,`white`);let r=this.#s(`stop`);r.setAttribute(`offset`,`1`),r.setAttribute(`stop-color`,`white`),t.append(n,r);let i=this.#s(`rect`);i.setAttribute(`x`,`0`),i.setAttribute(`y`,`0`),i.setAttribute(`width`,`100%`),i.setAttribute(`height`,`100%`),i.setAttribute(`fill`,`url(#${t.id})`),e.append(i),this.#t.append(t,e),this.#o={mask:e,gradient:t,rect:i}}let{gradient:n}=this.#o;b(n,`x1`,l(e.left)),b(n,`x2`,l(e.left+e.width)),n.firstElementChild?.setAttribute(`stop-opacity`,String(1-e.alpha)),b(t,`mask`,`url(#${this.#o.mask.id})`)}},C=class{kind=`svg`;element;#e;#t;#n;#r=null;#i=null;constructor({root:e,slotName:t}){this.#e=e;let n=e.ownerDocument;this.#t=new S(n,t),this.#n=new _(n),this.element=this.#t.svg}paintSignature({orientation:e}){return e}resolvePaint({series:e,orientation:n,signature:i}){this.#i=null;let a=/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Map,s=/* @__PURE__ */ new Map,c=this.#t.id(`texture-`);return this.#t.undefine(c),e.forEach((e,t)=>{if(a.set(e.dataKey,e.color),o.set(e.dataKey,`${e.colorInput}|${e.texture}`),e.mark!==`bar`||e.texture===`solid`)return;let r=`${c}${t}`;this.#t.define(this.#o(r,e.texture,e.color,n)),s.set(e.dataKey,`url(#${r})`)}),{signature:i,series:a,inputs:o,barFills:s,chrome:r,fontFamily:this.#a,resolve:t}}#a=()=>{if(this.#i==null){let e=this.#e.ownerDocument.defaultView;this.#i=e?.getComputedStyle(this.#e).fontFamily||`sans-serif`}return this.#i};#o(t,r,i,o){let s=this.#e.ownerDocument,c=s.createElementNS(a,`pattern`);c.id=t,c.setAttribute(`patternUnits`,`userSpaceOnUse`),c.setAttribute(`width`,`8`),c.setAttribute(`height`,`8`);let l=new _(s);e(l,{texture:r,ground:n(i),ink:i,orientation:o});let u=s.createElementNS(a,`g`);for(let e of l.marks.overlay){if(e.type!==`path`)continue;let t=s.createElementNS(a,`path`);t.setAttribute(`d`,e.data),e.paint===`fill`?t.style.setProperty(`fill`,e.state.fillStyle):(t.style.setProperty(`fill`,`none`),t.style.setProperty(`stroke`,e.state.strokeStyle),t.style.setProperty(`stroke-width`,String(e.state.lineWidth)),t.style.setProperty(`stroke-linecap`,e.state.lineCap)),u.append(t)}return c.append(u),c}measureContext(){return this.#n}begin(){return this.#n.reset(),this.#r=null,this.#n}composite(e,t){let n=this.#n;n.layer=`underlay`,t.underlay(),n.layer=`marks`,t.marks(),n.layer=`overlay`,this.#r=t.fade}end(){this.#t.write(this.#n,this.#r),this.#n.reset()}release(){}destroy(){}};const w=Object.assign(e=>new C(e),{kind:`svg`});export{w as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e}from"./browser-only-BTSrYWLj.js";import{n as t,t as n}from"./compose-refs-sFdxsL7k.js";import{t as r}from"./cx-CK7o_rVv.js";import{t as i}from"./data-slot-EM6s2WEU.js";import{r as a}from"./button-Cu9e3SM7.js";import{t as o}from"./button-BWGUuWnu.js";import{t as s}from"./use-copy-to-clipboard-Dy_0Qzb7.js";import{t as c}from"./alternate-announcement-BkH4bOKp.js";import{t as l}from"./live-region-DQ1QLv3L.js";import{r as u}from"./color-CHZbU1Ww.js";import{t as d}from"./use-callback-ref-BvVyI5K1.js";import{c as f}from"react/compiler-runtime";import{createContext as p,useContext as m,useEffect as h,useId as g,useLayoutEffect as _,useRef as v,useState as y,useSyncExternalStore as b}from"react";import x from"tiny-invariant";import{Fragment as S,jsx as C,jsxs as w}from"react/jsx-runtime";import{CheckIcon as T}from"@phosphor-icons/react/Check";import{CopyIcon as E}from"@phosphor-icons/react/Copy";const D=(e,t)=>Reflect.get(e,t),O=(e,t)=>e instanceof Date?e.getTime():typeof e==`number`?e:t&&typeof e==`string`?new Date(e).getTime():NaN,k=(e,t,n,r)=>{let i=/* @__PURE__ */ new Set;for(let e of r)for(let t of Object.keys(e))i.add(t);return`${e} ${t} "${n}" does not match any key in the provided data. Available keys: ${[...i].join(`, `)}.`},A=(e,t,n)=>`${e} could not read any "${t}" values as ${n===`time`?`dates`:`numbers`} for the "${n}" x scale — check the xScale and the data types.`,ee=(e,t)=>e.some(e=>D(e,t)!==void 0),te=({rootName:e,partName:t,rows:n,xKey:r,xScale:i,dataKeys:a,zKey:o})=>{if(n.length===0)return;if(!ee(n,r))throw Error(k(e,`xKey`,r,n));let s=n;if(i===`linear`||i===`time`){let t=!1;if(s=n.filter(e=>{let n=D(e,r);return n!=null&&(t=!0),Number.isFinite(O(n,i===`time`))}),t&&s.length===0)throw Error(A(e,r,i))}if(s.length!==0){for(let e of a)if(!ee(s,e))throw Error(k(t,`dataKey`,e,n));if(o!=null&&!ee(s,o))throw Error(k(e,`zKey`,o,n))}},j=e=>e.replaceAll(`|`,`\\|`).replaceAll(/\s*\n\s*/g,` `),M=(e,t)=>{let n=t===`time`?new Date(O(e,!0)):e;return n instanceof Date?Number.isNaN(n.getTime())?`—`:n.toISOString():typeof n==`number`?Number.isFinite(n)?String(n):`—`:typeof n==`string`?j(n):`—`},N=e=>typeof e==`number`&&Number.isFinite(e)?String(e):`—`,P=e=>`| ${e.join(` | `)} |`,ne=({data:e,xKey:t,xScale:n,series:r,zKey:i})=>{let a=[j(t),...r.map(e=>j(e.label)),...i==null?[]:[j(i)]],o=e.map(e=>[M(D(e,t),n),...r.map(t=>N(D(e,t.dataKey))),...i==null?[]:[N(D(e,i))]]);return[P(a),P(a.map(()=>`---`)),...o.map(e=>P(e))].join(`
|
|
2
|
+
`)},re=p(null),F=e=>{let t=m(re);return x(t,()=>`${e} must be composed inside ${e.split(`.`)[0]}.Root — it registers into the chart it belongs to and renders nothing on its own.`),t},ie=e=>{let t=f(3),n,r;return t[0]===e?(n=t[1],r=t[2]):(n=()=>e.getSnapshot().series,r=()=>e.getSnapshot().series,t[0]=e,t[1]=n,t[2]=r),b(e.subscribe,n,r)},ae=(e,t)=>{let n=Object.keys(e);return n.length===Object.keys(t).length&&n.every(n=>Object.hasOwn(t,n)&&Object.is(Reflect.get(e,n),Reflect.get(t,n)))},oe=e=>{let[t,n]=y(e);return ae(t,e)?t:(n(e),e)},I=e=>{let t=f(36),n,r,u,d,p,m,g,_,b;t[0]===e?(n=t[1],r=t[2],u=t[3],d=t[4],p=t[5],m=t[6],g=t[7],_=t[8],b=t[9]):({partName:p,slotName:_,label:b,onCopy:u,onCopyError:d,onClick:r,ref:g,"data-slot":n,...m}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=u,t[4]=d,t[5]=p,t[6]=m,t[7]=g,t[8]=_,t[9]=b);let x=b===void 0?`Copy data as Markdown`:b,D=F(p),O=s(),[k,A]=y(``),ee=k!==``,te=v(!1),j=v(void 0),M,N;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(M=()=>()=>{j.current!=null&&clearTimeout(j.current)},N=[],t[10]=M,t[11]=N):(M=t[10],N=t[11]),h(M,N);let P=`${_}-copy-button`,re;t[12]!==n||t[13]!==P?(re=i(n,P),t[12]=n,t[13]=P,t[14]=re):re=t[14];let ie=ee?`check`:`copy`,ae;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(ae={check:/* @__PURE__ */ C(T,{}),copy:/* @__PURE__ */ C(E,{})},t[15]=ae):ae=t[15];let oe;t[16]===ie?oe=t[17]:(oe=/* @__PURE__ */ C(a,{active:ie,icons:ae}),t[16]=ie,t[17]=oe);let I;t[18]!==D||t[19]!==O||t[20]!==r||t[21]!==u||t[22]!==d?(I=async e=>{try{if(r?.(e),e.defaultPrevented){j.current!=null&&(clearTimeout(j.current),j.current=void 0),A(``);return}let{data:t,xKey:n,xScale:i,zKey:a}=D.dataRef.current,o=ne({data:t,xKey:n,xScale:i,zKey:a,series:D.store.getSnapshot().series});await O(o),u?.(o),A(c(`Copied`,te)),j.current!=null&&clearTimeout(j.current),j.current=setTimeout(()=>{A(``)},2e3)}catch(e){d?.(e)}},t[18]=D,t[19]=O,t[20]=r,t[21]=u,t[22]=d,t[23]=I):I=t[23];let L;t[24]!==x||t[25]!==m||t[26]!==g||t[27]!==re||t[28]!==oe||t[29]!==I?(L=/* @__PURE__ */ C(o,{type:`button`,appearance:`ghost`,intent:`neutral`,size:`sm`,"data-slot":re,label:x,icon:oe,ref:g,onClick:I,...m}),t[24]=x,t[25]=m,t[26]=g,t[27]=re,t[28]=oe,t[29]=I,t[30]=L):L=t[30];let R;t[31]===k?R=t[32]:(R=/* @__PURE__ */ C(l,{children:k}),t[31]=k,t[32]=R);let z;return t[33]!==L||t[34]!==R?(z=/* @__PURE__ */ w(S,{children:[L,R]}),t[33]=L,t[34]=R,t[35]=z):z=t[35],z},L=e=>{let{step:t,slot:n}=e,r=Math.min(64,Math.max(24,t*.6));return Math.min(n,r)},R=.5,z=(e,t)=>e<0?e:t,se=e=>{let{lower:t,upper:n,toPixel:r,reveal:i,gap:a}=e,o=r(t<0?n:t),s=o+(r(z(t,n))-o)*i;if(Math.abs(o-r(0))<R)return{baseline:o,value:s};let c=Math.min(a,Math.abs(o-s)/2);return{baseline:o-Math.sign(o-s)*c,value:s}},B=e=>{let{lower:t,upper:n,pileOuter:r,toPixel:i}=e;if(Number.isNaN(r))return!1;let a=i(z(t,n));return Math.abs(a-i(r))<R},V=e=>Math.abs(e.baseline-e.toPixel(0))<R,ce=e=>{let{lower:t,upper:n,reveal:r,count:i}=e,a=n.map(()=>new Float64Array(i)),o=n.map(()=>new Float64Array(i));for(let e=0;e<i;e++){let i=0,s=0;for(let c=0;c<n.length;c++){let l=n[c]?.[e]??NaN,u=t[c]?.[e]??NaN,d=r[c]??1,f=a[c],p=o[c];if(f==null||p==null)continue;if(Number.isNaN(l)){f[e]=NaN,p[e]=NaN;continue}let m=Number.isNaN(u)?0:u;m<0?(p[e]=s,s+=(m-l)*d,f[e]=s):(f[e]=i,i+=(l-m)*d,p[e]=i)}}return{lower:a,upper:o}},H=/* @__PURE__ */ new WeakMap,U=e=>{if(typeof e.matchMedia!=`function`)return!1;let t=e.matchMedia,n=H.get(t);return n??(n=e.matchMedia(`(prefers-reduced-motion: reduce)`),H.set(t,n)),n.matches},le=/* @__PURE__ */ new WeakMap,ue=(e,t)=>{let n=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),r=()=>{if(n.removeEventListener(`change`,r),t.listeners.size!==0){ue(e,t);for(let e of t.listeners)e()}};n.addEventListener(`change`,r),t.disarm=()=>n.removeEventListener(`change`,r)},W=(e,t)=>{if(typeof e.matchMedia!=`function`)return()=>{};let n=le.get(e);if(n==null){let t={listeners:/* @__PURE__ */ new Set,disarm:()=>{}};ue(e,t),le.set(e,t),n=t}return n.listeners.add(t),()=>{n.listeners.delete(t),n.listeners.size===0&&(n.disarm(),le.delete(e))}},G=/* @__PURE__ */ new WeakMap,de=(e,t)=>{let n=G.get(e);if(n==null){let t={listeners:/* @__PURE__ */ new Set,onBefore:()=>{for(let e of t.listeners)e.before()},onAfter:()=>{for(let e of t.listeners)e.after()}};e.addEventListener(`beforeprint`,t.onBefore),e.addEventListener(`afterprint`,t.onAfter),G.set(e,t),n=t}return n.listeners.add(t),()=>{n.listeners.delete(t),n.listeners.size===0&&(e.removeEventListener(`beforeprint`,n.onBefore),e.removeEventListener(`afterprint`,n.onAfter),G.delete(e))}},K=/* @__PURE__ */ new WeakMap,fe=(e,t)=>{let n=e.fonts;if(n==null||typeof n.addEventListener!=`function`)return()=>{};let r=K.get(n);if(r==null){let e={listeners:/* @__PURE__ */ new Set,onLoad:()=>{for(let t of e.listeners)t()}};n.addEventListener(`loadingdone`,e.onLoad),K.set(n,e),r=e}return r.listeners.add(t),()=>{r.listeners.delete(t),r.listeners.size===0&&(n.removeEventListener(`loadingdone`,r.onLoad),K.delete(n))}},pe=/* @__PURE__ */ new WeakMap,q=(e,t)=>{if(typeof ResizeObserver>`u`)return()=>{};let n=e.ownerDocument,r=pe.get(n);if(r==null){let e=/* @__PURE__ */ new Map;r={handlers:e,observer:new ResizeObserver(t=>{for(let n of t)e.get(n.target)?.(n)})},pe.set(n,r)}let i=r;return i.handlers.set(e,t),i.observer.observe(e),()=>{i.handlers.get(e)===t&&(i.handlers.delete(e),i.observer.unobserve(e),i.handlers.size===0&&(i.observer.disconnect(),pe.get(n)===i&&pe.delete(n)))}},me=/* @__PURE__ */ new WeakMap,he=(e,t)=>{t.handle=0;let n=t.callbacks;t.callbacks=/* @__PURE__ */ new Set;let r=[];for(let e of n)try{e()}catch(e){r.push(e)}if(t.callbacks.size===0&&me.get(e)===t&&me.delete(e),r.length===1)throw r[0];if(r.length>1)throw AggregateError(r,`More than one chart failed to commit a frame.`)},ge=(e,t)=>{let n=me.get(e);n??(n={callbacks:/* @__PURE__ */ new Set,handle:0},me.set(e,n));let r=n,i=r.callbacks;return i.add(t),r.handle===0&&(r.handle=e.requestAnimationFrame(()=>he(e,r))),()=>{i.delete(t),i===r.callbacks&&i.size===0&&r.handle!==0&&(e.cancelAnimationFrame(r.handle),r.handle=0,me.delete(e))}},_e=e=>{let{pointCount:t,columnCount:n,wasDecimated:r}=e;return n<=0?!1:r?t>=n*3:t>=n*4},ve=e=>{let{xs:t,values:n,startIndex:r,endIndex:i,positionK:a,positionB:o,columnCount:s}=e,c=new Uint8Array(s),l=new Float64Array(s),u=new Float64Array(s),d=new Float64Array(s),f=new Float64Array(s);for(let e=r;e<=i;e++){let r=n[e]??NaN;if(Number.isNaN(r))continue;let i=t[e]??NaN,p=Math.floor(i*a+o);p===s&&(p=s-1),p<0||p>=s||(c[p]===0?(c[p]=1,l[p]=r,u[p]=r,d[p]=r,f[p]=r):(r<(l[p]??1/0)&&(l[p]=r),r>(u[p]??-1/0)&&(u[p]=r),f[p]=r))}return{columnCount:s,hasData:c,minValue:l,maxValue:u,inValue:d,outValue:f}};let ye=null;const be=()=>ye??=new Intl.NumberFormat;let xe=null;const J=()=>xe??=new Intl.NumberFormat(void 0,{maximumSignificantDigits:4}),Se=/* @__PURE__ */ new Map,Y=(e,t)=>{let n=Object.is(e,-0)?0:e,r=t?.maximumFractionDigits;if(r!=null){let e=Se.get(r);return e??(e=new Intl.NumberFormat(void 0,{maximumFractionDigits:r}),Se.set(r,e)),e.format(n)}return n!==0&&Math.abs(n)<1?J().format(n):be().format(n)},Ce=e=>!Number.isFinite(e)||e<=0?0:Math.min(20,Math.max(0,-Math.floor(Math.log10(e))));let we=null;const Te=()=>we??=new Intl.DateTimeFormat(void 0,{month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`});let Ee=null;const De=()=>Ee??=new Intl.DateTimeFormat(void 0,{year:`numeric`,month:`short`,day:`numeric`}),Oe=e=>e.getHours()!==0||e.getMinutes()!==0||e.getSeconds()!==0||e.getMilliseconds()!==0,ke=(e,t)=>typeof e==`string`?e:typeof e==`number`?Y(e):Number.isNaN(e.getTime())?`—`:t?.datasetHasTimeOfDay??Oe(e)?Te().format(e):De().format(e),Ae={bar:`BarChart.Bar`,line:`LineChart.Line`,area:`AreaChart.Area`,scatter:`ScatterPlot.Point`},je=({rows:e,xKey:t,rootName:n})=>{let r=e.length,i=new Float64Array(r),a=Array.from({length:r},()=>``),o=!1;for(let n=0;n<r;n++){let r=e[n],s=r==null?void 0:D(r,t);s!==void 0&&(o=!0),a[n]=typeof s==`string`||typeof s==`number`||s instanceof Date?s:String(s),i[n]=n}return x(r===0||o,()=>k(n,`xKey`,t,e)),{rowCount:r,xs:i,xValues:a,order:null,orderInverse:null,xsAllIntegers:!0}},Me=({rows:e,xKey:t,xScale:n,rootName:r})=>{let i=new Float64Array(e.length),a=new Int32Array(e.length),o=0,s=!0,c=!1,l=!1;for(let r=0;r<e.length;r++){let u=e[r],d=u==null?void 0:D(u,t);d!==void 0&&(c=!0),d!=null&&(l=!0);let f=O(d,n===`time`);Number.isFinite(f)&&(o>0&&f<(i[o-1]??0)&&(s=!1),i[o]=f,a[o]=r,o+=1)}x(e.length===0||c,()=>k(r,`xKey`,t,e)),x(!l||o>0,()=>A(r,t,n));let u=o,d=u===e.length?i:i.slice(0,u),f=u===e.length?a:a.slice(0,u);if(!s){let e=d,t=f,n=Array.from({length:u},(e,t)=>t).toSorted((t,n)=>(e[t]??0)-(e[n]??0)||t-n);d=new Float64Array(u),f=new Int32Array(u);for(let r=0;r<u;r++){let i=n[r]??r;d[r]=e[i]??0,f[r]=t[i]??0}}let p=!0;for(let e=0;e<u;e++)if(!Number.isInteger(d[e])){p=!1;break}if(u===e.length&&s)return{rowCount:u,xs:d,xValues:[],order:null,orderInverse:null,xsAllIntegers:p};let m=new Int32Array(e.length).fill(-1);for(let e=0;e<u;e++){let t=f[e];t!=null&&(m[t]=e)}return{rowCount:u,xs:d,xValues:[],order:f,orderInverse:m,xsAllIntegers:p}},Ne=e=>{let{rows:t,specs:n,zKey:r}=e,i=e.xScale===`band`||e.xScale===`point`?je(e):Me(e),{rowCount:a,order:o}=i,s=e=>o==null?e:o[e]??e,c=!1;for(let e of i.xValues)if(e instanceof Date&&Oe(e)){c=!0;break}let l=1/0,u=-1/0,d=!0,f=n.map(e=>{let n=new Float64Array(a),r=!1;for(let i=0;i<a;i++){let a=t[s(i)],o=a==null?void 0:D(a,e.dataKey);if(o===void 0){n[i]=NaN;continue}r=!0;let c=typeof o==`number`&&Number.isFinite(o)?o:NaN;n[i]=c,Number.isNaN(c)||(l=Math.min(l,c),u=Math.max(u,c),Number.isInteger(c)||(d=!1))}return x(a===0||r,()=>k(Ae[e.mark],`dataKey`,e.dataKey,t)),n}),p=/* @__PURE__ */ new Float64Array,m=null;if(r!=null){p=new Float64Array(a);let e=1/0,n=-1/0,i=!1;for(let o=0;o<a;o++){let a=t[s(o)],c=a==null?void 0:D(a,r);c!==void 0&&(i=!0);let l=typeof c==`number`&&Number.isFinite(c)?c:NaN;p[o]=l,Number.isNaN(l)||(e=Math.min(e,l),n=Math.max(n,l))}x(a===0||i,()=>k(`ScatterPlot.Root`,`zKey`,r,t)),m=e===1/0?null:[e,n]}return{...i,xHasTimeOfDay:c,columns:f,valueMin:l===1/0?0:l,valueMax:u===-1/0?0:u,valuesAllIntegers:d,zs:p,zExtent:m}},Pe=(e,t,n)=>{if(t<=0)return null;let r=0,i=t-1,a=e[0]??0,o=e[i]??0;if(n<=a)return 0;if(n>=o)return i;for(;i-r>1;){let t=r+i>>1;(e[t]??0)<=n?r=t:i=t}let s=n-(e[r]??0);return(e[i]??0)-n<s?i:r},Fe=(e,t)=>{let n=0,r=e;for(;n<r;){let e=n+r>>1;t(e)?n=e+1:r=e}return n},Ie=Math.sqrt(50),Le=Math.sqrt(10),Re=Math.sqrt(2),X=e=>e>=Ie?10:e>=Le?5:e>=Re?2:1,Z=(e,t,n,r)=>{let i=(t-e)/Math.max(0,n),a=r?.integer?Math.max(1,i):i,o=Math.floor(Math.log10(a)),s=a/10**o,c=X(s),l,u,d;return o<0?(d=10**-o/c,l=Math.round(e*d),u=Math.round(t*d),l/d<e&&(l+=1),u/d>t&&--u,d=-d):(d=10**o*c,l=Math.round(e/d),u=Math.round(t/d),l*d<e&&(l+=1),u*d>t&&--u),u<l&&.5<=n&&n<2?Z(e,t,n*2,r):[l,u,d]},ze=(e,t,n,r)=>{if(!(n>0))return[];if(e===t)return r?.integer&&!Number.isInteger(e)?[]:[e];let i=t<e,[a,o,s]=i?Z(t,e,n,r):Z(e,t,n,r);if(!(o>=a))return[];let c=o-a+1,l=[];for(let e=0;e<c;e+=1){let t=i?o-e:a+e;l.push(s<0?t/-s:t*s)}return l},Be=(e,t,n,r)=>{if(!(n>0))return 0;if(e===t)return r?.integer&&!Number.isInteger(e)?0:1;let[i,a]=t<e?Z(t,e,n,r):Z(e,t,n,r);return a>=i?a-i+1:0},Ve=(e,t,n)=>Z(e,t,n)[2],He=(e,t)=>{let n=e[1]-e[0];if(n===0)return{k:0,b:(t[0]+t[1])/2};let r=(t[1]-t[0])/n;return{k:r,b:t[0]-e[0]*r}},Ue=e=>{let{count:t,rangeStart:n,rangeEnd:r,paddingInner:i,paddingOuter:a}=e,o=r-n;if(t<=0||o<=0)return{count:Math.max(0,t),rangeStart:n,step:0,bandwidth:0,offset:0};let s=o/Math.max(1,t-i+a*2);return{count:t,rangeStart:n,step:s,bandwidth:s*(1-i),offset:s*a}},We=(e,t)=>e.rangeStart+e.offset+t*e.step,Ge=(e,t)=>We(e,t)+e.bandwidth/2,Ke=(e,t)=>({start:We(e,t)-(e.step-e.bandwidth)/2,size:e.step}),qe=(e,t)=>{if(e.count===0||e.step===0)return null;let n=Math.floor((t-e.rangeStart-e.offset+e.step/2-e.bandwidth/2)/e.step);return Math.min(e.count-1,Math.max(0,n))},Je=(e,t,n)=>ze(e[0],e[1],t,n),Ye=(e,t,n)=>{let r=Math.floor(Math.min(n?.count??t,t));for(;r>1&&Be(e[0],e[1],r,n)>t;)--r;return Je(e,r,n).slice(0,Math.max(0,Math.floor(t)))},Xe=(e,t)=>{if(e[0]>e[1])return Xe([e[1],e[0]],t);if(e[0]===e[1]){let n=e[0],r=n===0?1:Math.abs(n)*.5;return Xe([n-r,n+r],t)}let n=e[0],r=e[1],i=NaN;for(let e=0;e<10;e++){let e=Ve(n,r,t);if(e===i||e===0||!Number.isFinite(e))break;if(e>0)n=Math.floor(n/e)*e,r=Math.ceil(r/e)*e;else{let t=-e;n=Math.floor(n*t)/t,r=Math.ceil(r*t)/t}i=e}return[n,r]},Ze=(e,t)=>{let n=Xe(e,t);return e[0]===0?[0,n[1]]:n},Q=1e3,Qe=Q*60,$e=Qe*60,et=$e*24,tt=et*30,nt=et*365,rt={floor:e=>{e.setTime(e.getTime()-e.getMilliseconds())},offset:e=>{e.setTime(e.getTime()+Q)},field:e=>e.getUTCSeconds()},it={floor:e=>{e.setTime(e.getTime()-e.getMilliseconds()-e.getSeconds()*Q)},offset:e=>{e.setTime(e.getTime()+Qe)},field:e=>e.getMinutes()},at={floor:e=>{e.setTime(e.getTime()-e.getMilliseconds()-e.getSeconds()*Q-e.getMinutes()*Qe)},offset:e=>{e.setTime(e.getTime()+$e)},field:e=>e.getHours()},ot={floor:e=>{e.setHours(0,0,0,0)},offset:e=>{e.setDate(e.getDate()+1)},field:e=>e.getDate()-1},st={floor:e=>{e.setDate(e.getDate()-e.getDay()),e.setHours(0,0,0,0)},offset:e=>{e.setDate(e.getDate()+7)}},ct={floor:e=>{e.setDate(1),e.setHours(0,0,0,0)},offset:e=>{e.setMonth(e.getMonth()+1)},field:e=>e.getMonth()},lt=e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},$=(e,t)=>{let n=n=>e.field(n)%t===0;return{floor:t=>{if(!Number.isNaN(t.getTime()))for(e.floor(t);!n(t);)t.setTime(t.getTime()-1),e.floor(t)},offset:t=>{if(!Number.isNaN(t.getTime()))do e.offset(t);while(!n(t))}}},ut=e=>({floor:t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),lt(t)},offset:t=>{t.setFullYear(t.getFullYear()+e)}}),dt=e=>({floor:t=>{t.setTime(Math.floor(t.getTime()/e)*e)},offset:t=>{t.setTime(t.getTime()+e)}}),ft=(e,t)=>{let n=Math.floor(e);return Number.isFinite(n)&&n>0?t(n):null},pt=[[Q,rt],[5*Q,$(rt,5)],[15*Q,$(rt,15)],[30*Q,$(rt,30)],[Qe,it],[5*Qe,$(it,5)],[15*Qe,$(it,15)],[30*Qe,$(it,30)],[$e,at],[3*$e,$(at,3)],[6*$e,$(at,6)],[12*$e,$(at,12)],[et,ot],[2*et,$(ot,2)],[6048e5,st],[tt,ct],[3*tt,$(ct,3)],[nt,ut(1)]],mt=(e,t,n)=>{let r=Ve(e,t,n);return r<0?1/-r:r},ht=(e,t,n)=>{let r=(t-e)/n,i=pt.findLast(([e])=>e<=r),a=pt.find(([e])=>e>r);if(a==null)return ft(mt(e/nt,t/nt,n),ut);if(i==null)return ft(Math.max(mt(e,t,n),1),dt);let[o,s]=i,[c,l]=a;return r/o<c/r?s:l},gt=(e,t,n)=>{let r=/* @__PURE__ */ new Date(t-1);e.floor(r),e.offset(r),e.floor(r);let i=[];if(!(r.getTime()<n))return i;let a;do a=r.getTime(),i.push(a),e.offset(r),e.floor(r);while(a<r.getTime()&&r.getTime()<n);return i},_t=(e,t)=>{let n=new Date(e[0]).getTime(),r=new Date(e[1]).getTime(),i=r<n,a=i?r:n,o=i?n:r,s=ht(a,o,t);if(s==null)return[];let c=gt(s,a,o+1);return i?c.toReversed():c},vt=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],yt=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],bt=(e,t)=>e<0?`-${String(-e).padStart(t,`0`)}`:String(e).padStart(t,`0`),xt=e=>bt(e.getHours()%12||12,2),St=(e,t)=>{let n=new Date(t);return e(n),n.getTime()<t.getTime()},Ct=e=>{let t=new Date(e);return St(rt.floor,t)?`.${bt(t.getMilliseconds(),3)}`:St(it.floor,t)?`:${bt(t.getSeconds(),2)}`:St(at.floor,t)?`${xt(t)}:${bt(t.getMinutes(),2)}`:St(ot.floor,t)?`${xt(t)} ${t.getHours()>=12?`PM`:`AM`}`:St(ct.floor,t)?`${(St(st.floor,t)?yt[t.getDay()]:vt[t.getMonth()]?.slice(0,3))??``} ${bt(t.getDate(),2)}`:St(lt,t)?vt[t.getMonth()]??``:bt(t.getFullYear()%1e4,4)},wt=(e,t,n,r)=>{r?e.lineTo(t,n):e.moveTo(t,n)},Tt=(e,{indexes:t,from:n,to:r,xAt:i,yAt:a,joined:o})=>{let s=r<n?-1:1,c=0;for(let l=n;l!==r+s;l+=s){let n=t[l];n!=null&&(c===0?wt(e,i(n),a(n),o):e.lineTo(i(n),a(n)),c+=1)}return c},Et=(e,{indexes:t,from:n,to:r,xAt:i,yAt:a,joined:o})=>{let s=r<n?-1:1,c=0,l=NaN,u=NaN;for(let d=n;d!==r+s;d+=s){let n=t[d];if(n==null)continue;let r=i(n),s=a(n);if(c===0)wt(e,r,s,o);else{let t=l*.5+r*.5;e.lineTo(t,u),e.lineTo(t,s)}c+=1,l=r,u=s}return c>1&&e.lineTo(l,u),c},Dt=e=>e<0?-1:1,Ot=(e,t,n,r,i,a)=>{let o=n-e,s=i-n,c=(r-t)/(o||(s<0?-0:0)),l=(a-r)/(s||(o<0?-0:0)),u=(c*s+l*o)/(o+s);return(Dt(c)+Dt(l))*Math.min(Math.abs(c),Math.abs(l),.5*Math.abs(u))||0},kt=(e,t,n,r,i)=>{let a=n-e;return a?(3*(r-t)/a-i)/2:i},At=(e,t,n,r,i,a,o)=>{let s=(r-t)/3;e.bezierCurveTo(t+s,n+s*a,r-s,i-s*o,r,i)},jt=(e,{indexes:t,from:n,to:r,xAt:i,yAt:a,joined:o})=>{let s=r<n?-1:1,c=0,l=NaN,u=NaN,d=NaN,f=NaN,p=NaN;for(let m=n;m!==r+s;m+=s){let n=t[m];if(n==null)continue;let r=i(n),s=a(n);if(r!==d||s!==f){if(c===0)wt(e,r,s,o);else if(c>1){let t=Ot(l,u,d,f,r,s);At(e,l,u,d,f,c===2?kt(l,u,d,f,t):p,t),p=t}c+=1,l=d,u=f,d=r,f=s}}return c===2?e.lineTo(d,f):c>2&&At(e,l,u,d,f,p,kt(l,u,d,f,p)),c},Mt=e=>e===`monotone`?jt:e===`step`?Et:Tt,Nt=(e,t,n)=>{let r=null;for(let i=0;i<=e.length;i++){let a=e[i];a!=null&&t(a)?r??=i:r!=null&&(n(r,i-1),r=null)}},Pt=(e,t)=>{let{curve:n,indexes:r,xAt:i,yAt:a,definedAt:o}=t,s=Mt(n);Nt(r,o,(t,n)=>{s(e,{indexes:r,from:t,to:n,xAt:i,yAt:a,joined:!1})===1&&e.closePath()})},Ft=(e,t)=>{let{curve:n,indexes:r,xAt:i,y0At:a,y1At:o,definedAt:s}=t,c=Mt(n);Nt(r,s,(t,n)=>{c(e,{indexes:r,from:t,to:n,xAt:i,yAt:o,joined:!1}),c(e,{indexes:r,from:n,to:t,xAt:i,yAt:a,joined:!0}),e.closePath()})},It=e=>Math.round(e)+.5,Lt=(e,t)=>{let{plot:n,color:r,xLines:i,yLines:a}=t;e.save(),e.strokeStyle=r,e.lineWidth=1,Rt(e,i,t=>{e.moveTo(It(t),n.top),e.lineTo(It(t),n.top+n.height)}),Rt(e,a,t=>{e.moveTo(n.left,It(t)),e.lineTo(n.left+n.width,It(t))}),e.restore()},Rt=(e,t,n)=>{let r=NaN;for(let i of t)i.alpha!==r&&(Number.isNaN(r)||e.stroke(),r=i.alpha,e.globalAlpha=r,e.beginPath()),n(i.position);Number.isNaN(r)||e.stroke()},zt=(e,t)=>{let{plot:n,color:r,y:i}=t;e.strokeStyle=r,e.lineWidth=1,e.beginPath(),e.moveTo(n.left,It(i)),e.lineTo(n.left+n.width,It(i)),e.stroke()},Bt=(e,t)=>{let{plot:n,color:r,x:i}=t;e.strokeStyle=r,e.lineWidth=1,e.beginPath(),e.moveTo(It(i),n.top),e.lineTo(It(i),n.top+n.height),e.stroke()},Vt=e=>e.thickness>=e.radius*2?Math.min(e.radius,e.thickness/2,e.length):0,Ht=(e,t)=>{let{fill:n,rects:r,count:i=r.length}=t;e.fillStyle=n,e.beginPath();for(let t=0;t<i;t++){let n=r[t];if(n==null)continue;let i=Math.max(.5,n.width),a=Math.min(n.valueY,n.baselineY),o=Math.abs(n.baselineY-n.valueY);if(o===0)continue;let s=n.rounded&&n.roundedBase?2:1,c=Vt({radius:2,thickness:i,length:o/s}),l=n.rounded?c:0,u=n.roundedBase?c:0;l===0&&u===0?e.rect(n.x,a,i,o):n.valueY<=n.baselineY?e.roundRect(n.x,a,i,o,[l,l,u,u]):e.roundRect(n.x,a,i,o,[u,u,l,l])}e.fill()},Ut=(e,t)=>{let{fill:n,rects:r,count:i=r.length}=t;e.fillStyle=n,e.beginPath();for(let t=0;t<i;t++){let n=r[t];if(n==null)continue;let i=Math.max(.5,n.height),a=Math.min(n.valueX,n.baselineX),o=Math.abs(n.valueX-n.baselineX);if(o===0)continue;let s=n.rounded&&n.roundedBase?2:1,c=Vt({radius:2,thickness:i,length:o/s}),l=n.rounded?c:0,u=n.roundedBase?c:0;l===0&&u===0?e.rect(a,n.y,o,i):n.valueX>=n.baselineX?e.roundRect(a,n.y,o,i,[u,l,l,u]):e.roundRect(a,n.y,o,i,[l,u,u,l])}e.fill()},Wt=(e,t)=>{let{color:n,curve:r,indexes:i,xAt:a,yAt:o,definedAt:s}=t;e.strokeStyle=n,e.lineWidth=2,e.lineJoin=`round`,e.lineCap=`round`,e.beginPath(),Pt(e,{curve:r,indexes:i,xAt:a,yAt:o,definedAt:s}),e.stroke()},Gt=(e,t)=>{let{color:n,curve:r,indexes:i,xAt:a,y0At:o,y1At:s,definedAt:c}=t;e.beginPath(),Ft(e,{curve:r,indexes:i,xAt:a,y0At:o,y1At:s,definedAt:c}),e.save(),e.globalAlpha=.1,e.fillStyle=n,e.fill(),e.restore(),e.strokeStyle=n,e.lineWidth=2,e.lineJoin=`round`,e.lineCap=`round`,e.beginPath(),Pt(e,{curve:r,indexes:i,xAt:a,yAt:s,definedAt:c}),e.stroke()},Kt=(e,t)=>{let{color:n,columns:r,columnToX:i,valueK:a,valueB:o}=t;e.strokeStyle=n,e.lineWidth=2,e.lineJoin=`round`,e.lineCap=`round`,e.beginPath();let s=!1;for(let t=0;t<r.columnCount;t++){if(r.hasData[t]===0){s=!1;continue}let n=i(t),c=(r.inValue[t]??0)*a+o,l=(r.minValue[t]??0)*a+o,u=(r.maxValue[t]??0)*a+o,d=(r.outValue[t]??0)*a+o;s?e.lineTo(n,c):(e.moveTo(n,c),s=!0),(l!==c||u!==c)&&(e.lineTo(n,l),e.lineTo(n,u)),d!==u&&e.lineTo(n,d)}e.stroke()},qt=(e,t)=>{let{color:n,lowerColumns:r,upperColumns:i,columnToX:a,valueK:o,valueB:s}=t;e.beginPath();let c=-1,l=t=>{if(c<0)return;let n=!1;for(let r=c;r<=t;r++){let t=a(r),c=(i.maxValue[r]??0)*o+s;n?e.lineTo(t,c):(e.moveTo(t,c),n=!0)}for(let n=t;n>=c;n--){let t=a(n),i=(r.minValue[n]??0)*o+s;e.lineTo(t,i)}e.closePath(),c=-1};for(let e=0;e<i.columnCount;e++)i.hasData[e]===0?l(e-1):c<0&&(c=e);l(i.columnCount-1),e.save(),e.globalAlpha=.1,e.fillStyle=n,e.fill(),e.restore(),Kt(e,{color:n,columns:i,columnToX:a,valueK:o,valueB:s})},Jt=(e,t,n,r,i)=>{let a=!1;for(let[o,s]of i)a?e.lineTo(t+o*r,n+s*r):(e.moveTo(t+o*r,n+s*r),a=!0);e.closePath()},Yt=[[-1/3,-1],[1/3,-1],[1/3,-1/3],[1,-1/3],[1,1/3],[1/3,1/3],[1/3,1],[-1/3,1],[-1/3,1/3],[-1,1/3],[-1,-1/3],[-1/3,-1/3]],Xt=Yt.map(([e,t])=>[(e-t)/Math.SQRT2,(e+t)/Math.SQRT2]),Zt=Array.from({length:10},(e,t)=>{let n=-Math.PI/2+t*Math.PI/5,r=t%2==0?1:.382;return[Math.cos(n)*r,Math.sin(n)*r]}),Qt={circle:(e,t,n,r)=>{e.moveTo(t+r,n),e.arc(t,n,r,0,Math.PI*2)},square:(e,t,n,r)=>{let i=r*.886;e.moveTo(t-i,n-i),e.lineTo(t+i,n-i),e.lineTo(t+i,n+i),e.lineTo(t-i,n+i),e.closePath()},triangle:(e,t,n,r)=>{let i=r*1.55;e.moveTo(t,n-i),e.lineTo(t+i*.866,n+i*.5),e.lineTo(t-i*.866,n+i*.5),e.closePath()},diamond:(e,t,n,r)=>{let i=r*1.253;e.moveTo(t,n-i),e.lineTo(t+i,n),e.lineTo(t,n+i),e.lineTo(t-i,n),e.closePath()},"triangle-down":(e,t,n,r)=>{let i=r*1.55;e.moveTo(t,n+i),e.lineTo(t+i*.866,n-i*.5),e.lineTo(t-i*.866,n-i*.5),e.closePath()},plus:(e,t,n,r)=>{Jt(e,t,n,r*1.189,Yt)},cross:(e,t,n,r)=>{Jt(e,t,n,r*1.189,Xt)},star:(e,t,n,r)=>{Jt(e,t,n,r*1.673,Zt)}},$t=(e,t,n,r,i)=>{Qt[i](e,t,n,r)},en=(e,t)=>{let{color:n,surface:r,shape:i,indexes:a,xAt:o,yAt:s,definedAt:c}=t;e.fillStyle=n,e.strokeStyle=r,e.lineWidth=2,e.beginPath();for(let t of a)c(t)&&$t(e,o(t),s(t),4,i);e.fill(),e.stroke()},tn=(e,t)=>{let{plot:n,color:r,textColor:i,y:a,label:o,fontFamily:s}=t;e.strokeStyle=r,e.lineWidth=1,e.setLineDash([4,4]),e.beginPath(),e.moveTo(n.left,It(a)),e.lineTo(n.left+n.width,It(a)),e.stroke(),e.setLineDash([]),o!=null&&o.length>0&&(e.font=`11px ${s}`,e.fillStyle=i,e.textAlign=`right`,e.textBaseline=`bottom`,e.fillText(o,n.left+n.width-4,a-3))},nn=(e,t)=>{let{plot:n,color:r,textColor:i,x:a,label:o,fontFamily:s}=t;if(e.strokeStyle=r,e.lineWidth=1,e.setLineDash([4,4]),e.beginPath(),e.moveTo(It(a),n.top),e.lineTo(It(a),n.top+n.height),e.stroke(),e.setLineDash([]),o!=null&&o.length>0){e.font=`11px ${s}`,e.fillStyle=i;let t=e.measureText(o).width,r=a+4+t<=n.left+n.width;e.textAlign=r?`left`:`right`,e.textBaseline=`top`,e.fillText(o,r?a+4:a-4,n.top+3)}},rn=(e,t)=>{let{plot:n,color:r,fontFamily:i,xLabels:a,yLabels:o}=t;e.save(),e.font=`11px ${i}`,e.fillStyle=r,e.textAlign=`right`,e.textBaseline=`middle`;for(let t of o)e.globalAlpha=t.alpha,e.fillText(t.text,n.left-8,t.position);e.textAlign=`center`,e.textBaseline=`top`;for(let t of a)e.globalAlpha=t.alpha,e.fillText(t.text,t.position,n.top+n.height+8);e.restore()},an=e=>{let t=e.length,n=e[0]?.length??0,r=[],i=[];for(let e=0;e<t;e++)r.push(new Float64Array(n)),i.push(new Float64Array(n));let a=0,o=0,s=new Float64Array(n),c=new Float64Array(n),l=new Int32Array(n).fill(-1),u=new Int32Array(n).fill(-1);for(let d=0;d<t;d++){let t=e[d],f=r[d],p=i[d];if(t!=null&&f!=null&&p!=null)for(let e=0;e<n;e++){let n=t[e]??NaN;if(Number.isNaN(n))f[e]=NaN,p[e]=NaN;else if(n>=0){let t=s[e]??0,r=t+n;s[e]=r,f[e]=t,p[e]=r,r>o&&(o=r),n>0&&(l[e]=d)}else{let t=c[e]??0,r=t+n;c[e]=r,f[e]=r,p[e]=t,r<a&&(a=r),u[e]=d}}}return{lower:r,upper:i,min:a,max:o,positiveEnd:l,negativeEnd:u}},on=e=>1-(1-e)**3;var sn=class{#e=/* @__PURE__ */ new Float64Array;#t=/* @__PURE__ */ new Float64Array;#n=/* @__PURE__ */ new Float64Array;#r=0;#i=0;#a=!1;get active(){return this.#a}values(){return this.#n}retarget(e,t){let{duration:n,now:r}=t,i=e.length,a=this.#n.length!==i;if(a&&(this.#e=new Float64Array(i),this.#t=new Float64Array(i),this.#n=new Float64Array(i)),a||n<=0){for(let t=0;t<i;t++){let n=e[t]??NaN;this.#e[t]=n,this.#t[t]=n,this.#n[t]=n}this.#a=!1;return}let o=!1;for(let t=0;t<i;t++){let n=e[t]??NaN,r=this.#n[t]??NaN;if(r!==n&&!(Number.isNaN(r)&&Number.isNaN(n))){o=!0;break}}if(o){for(let t=0;t<i;t++)this.#e[t]=this.#n[t]??NaN,this.#t[t]=e[t]??NaN;this.#r=r,this.#i=n,this.#a=!0}else{for(let t=0;t<i;t++)this.#t[t]=e[t]??NaN;this.#a=!1}}snap(){this.#n.set(this.#t),this.#a=!1}tick(e){if(!this.#a)return!1;let t=Math.min(1,(e-this.#r)/this.#i),n=on(t);for(let e=0;e<this.#n.length;e++){let t=this.#e[e]??NaN,r=this.#t[e]??NaN;Number.isNaN(t)||Number.isNaN(r)?this.#n[e]=r:this.#n[e]=t+(r-t)*n}return t>=1&&(this.#a=!1),this.#a}},cn=class{#e=/* @__PURE__ */ new Float64Array;#t=/* @__PURE__ */ new Float64Array;#n=0;#r=!1;#i;#a;#o=0;#s=null;constructor(e={}){this.#i=e.speed??.14,this.#a=e.epsilon??.001}get active(){return this.#r}values(){return this.#t}jump(e){this.#s=null,this.#t.length!==e.length&&(this.#e=new Float64Array(e.length),this.#t=new Float64Array(e.length));for(let t=0;t<e.length;t++){let n=e[t]??NaN;this.#e[t]=n,this.#t[t]=n}this.#r=!1}aim(e,t){if(this.#t.length!==e.length){this.jump(e);return}if(this.#c(e))return;this.#s!=null&&(this.#l(t),this.#s=null,this.#r=!1);let n=0;for(let t=0;t<e.length;t++){let r=e[t]??NaN;this.#e[t]=r;let i=Math.abs(r-(this.#t[t]??NaN));Number.isFinite(i)&&i>n&&(n=i)}this.#o=n,this.#r||(this.#r=!0,this.#n=t)}glide(e,t){let{now:n,duration:r}=t;if(this.#t.length!==e.length||r<=0)this.jump(e);else if(!this.#c(e)){this.#s!=null&&this.#l(n);for(let t=0;t<e.length;t++)this.#e[t]=e[t]??NaN;this.#s={from:Float64Array.from(this.#t),start:n,duration:r},this.#r=!0,this.#n=n}}#c(e){for(let t=0;t<e.length;t++){let n=e[t]??NaN,r=this.#e[t]??NaN;if(r!==n&&!(Number.isNaN(r)&&Number.isNaN(n)))return!1}return!0}#l(e){let t=this.#s;if(t==null)return;let n=Math.min(1,Math.max(0,(e-t.start)/t.duration));for(let e=0;e<this.#t.length;e++){let r=t.from[e]??NaN,i=this.#e[e]??NaN;this.#t[e]=Number.isNaN(r)||Number.isNaN(i)?i:r+(i-r)*n}n>=1&&(this.#s=null,this.#r=!1)}tick(e,t=0){if(!this.#r)return!1;if(this.#s!=null)return this.#n=e,this.#l(e),this.#r;let n=Math.min(50,Math.max(0,e-this.#n));this.#n=e;let r=1-(1-this.#i)**(n/16.67),i=Math.max(this.#o*this.#a,t,2**-52),a=!0;for(let e=0;e<this.#t.length;e++){let t=this.#e[e]??NaN,n=this.#t[e]??NaN;if(Number.isNaN(t)||Number.isNaN(n)){this.#t[e]=t;continue}let o=n+(t-n)*r;r>0&&o===n||Math.abs(t-o)<=i?this.#t[e]=t:(this.#t[e]=o,a=!1)}return this.#r=!a,this.#r}};const ln=e=>`${e.colorInput}|${e.texture}`,un=1e3,dn=[{minStep:6,gap:2},{minStep:3,gap:1}],fn={lower:null,upper:/* @__PURE__ */ new Float64Array,reveal:1},pn=1.12,mn=/* @__PURE__ */ new Map([[`ArrowDown`,`ArrowRight`],[`ArrowUp`,`ArrowLeft`],[`PageDown`,`PageUp`],[`PageUp`,`PageDown`]]),hn=e=>{let t=dn.find(t=>e>=t.minStep)?.gap??0;return e>0?t/e:0},gn=({bandwidth:e,groupCount:t})=>e>=8*t?2:+(e>=3*t);var _n=class{#e;#t;#n;#r={xKey:``,xScale:`linear`,yDomain:[`auto`,`auto`],orientation:`vertical`,zKey:null,dimensions:3,stacked:!1,animate:!0};#i={onDatumActivate:null,onActiveIndexChange:null};#a;#o=null;#s=null;#c=null;#l=null;#u=null;#d;#f;#p=!1;#m;#h=!1;#g=0;#_=0;#v=1;#y=[];#b=0;#x=/* @__PURE__ */ new Float64Array;#S=[];#C=null;#w=null;#T=!1;#E=!1;#D=[];#O=/* @__PURE__ */ new Map;#k=0;#A=0;#j=!0;#M=!0;#N=null;#P=new cn({speed:.16});#F=new cn({speed:.2});#I=/* @__PURE__ */ new Map;#L=/* @__PURE__ */ new Map;#R=!1;#z=/* @__PURE__ */ new Map;#B=/* @__PURE__ */ new Map;#V=0;#H=null;#U=null;#W=/* @__PURE__ */ new Map;#G=!1;#K=/* @__PURE__ */ new Map;#q={alpha:0,target:0};#J=-1/0;#Y=!1;#X=null;#Z=null;#Q=null;#$=null;#ee={left:0,top:0,width:0,height:0};#te=null;#ne=/* @__PURE__ */ new Float64Array;#re=[0,1];#ie=null;#ae;#oe=null;#se=!1;#ce=[];#le=[];#ue=[];#de=null;#fe=null;#pe=null;#me=null;#he=void 0;#ge=null;#_e=!1;#ve=null;#ye=null;#be={width:0,height:0};#xe=!1;#Se=!1;#Ce=null;#we=!1;constructor(e){this.#e=e.kind,this.#t=e.elements,this.#ae=e.createHoverLayers??null,this.#n=e.store,this.#d=e.inView??!0,this.#f=e.onScreen??!0,this.#m=this.#d,e.size!=null&&(this.#g=e.size.width,this.#_=e.size.height),this.#v=this.#Xe(),this.#a=e.backend({root:e.elements.root,plot:e.elements.plot,slotName:e.slotName,onColorsChange:this.#Ee}),e.elements.plot.prepend(this.#a.element),this.#n.onSeriesChange=()=>{this.#E=!0,this.#We()},this.#n.onPresentationChange=()=>{this.#Oe(),this.#We()},this.#o=q(e.elements.plot,e=>{let t=this.#Xe();(e.contentRect.width!==this.#g||e.contentRect.height!==this.#_||t!==this.#v)&&(this.#g=e.contentRect.width,this.#_=e.contentRect.height,this.#v=t,this.#K.clear(),this.#fe=null,this.#We())}),this.#d&&this.#De(),this.#l=fe(e.elements.root.ownerDocument,()=>{this.#W.clear(),this.#Be()&&this.#We()}),this.#u=e.elements.root.ownerDocument.defaultView;let t=this.#u;this.#s=t==null?null:W(t,this.#Te),this.#e===`scatter`&&(x(e.scatter!=null,"A scatter ChartEngine needs a `scatter` view factory."),this.#ie=e.scatter({plot:()=>this.#ee,colors:()=>this.#Q,specs:()=>this.#n.seriesSpecs(),rowCount:()=>this.#b,xs:()=>this.#x,zs:()=>this.#ne,columns:()=>this.#D,columnOf:e=>this.#pt(e),paintedValues:(e,t)=>this.#ft(e,`value`,t),definedIndexes:e=>this.#mt(e),reveal:e=>this.#gt(e),shape:e=>this.#n.seriesShape(e),xCoefficients:()=>this.#tt(),yCoefficients:()=>this.#$e(),domains:()=>{let e=this.#F.values(),t=this.#P.values();return{x:[e[0]??0,e[1]??1],y:[t[0]??0,t[1]??1],z:this.#re}},xKey:()=>this.#r.xKey,zKey:()=>this.#r.zKey,is3d:()=>this.#Re(),requestPaint:()=>this.#We()}))}#Te=()=>{this.#v=this.#Xe(),this.#K.clear(),this.#We()};#Ee=()=>{this.#Q=null,this.#We()};destroy(){this.#we=!0,this.#o?.(),this.#s?.(),this.#c?.(),this.#a.destroy(),this.#a.element.remove(),this.#l?.(),this.#n.onSeriesChange=null,this.#n.onPresentationChange=null,this.#Z!=null&&(clearTimeout(this.#Z),this.#Z=null),this.#Ce?.(),this.#Ce=null,this.#oe!=null&&(this.#oe.crosshair.remove(),this.#oe.band.remove(),this.#oe.markers.remove(),this.#oe=null)}setInView(e){e===this.#d||this.#we||(this.#d=e,e&&(this.#De(),(this.#Se||this.#E)&&this.#Ke()))}setOnScreen(e){e===this.#f||this.#we||(this.#f=e,!e&&this.#Se&&(this.#Ae(),this.#We()))}markSeen(){if(this.#m||this.#we)return;this.#m=!0;let e=performance.now(),t=this.#Ne();for(let n of this.#L.values())n.retarget([1],{duration:t,now:e});this.#We()}releaseBackingStores(){this.#we||this.#a.kind===`svg`||(this.#a.release(),this.#Se=!0)}commitNow(){this.#we||(this.#Ce?.(),this.#Ce=null,this.#xe=!1,this.#Je())}attachTooltip(e){this.#t.tooltip===e||this.#we||(this.#c?.(),this.#c=null,this.#be={width:0,height:0},this.#t.tooltip=e,e!=null&&this.#d&&this.#De(),this.#Ge())}paintForPrint(){if(!(this.#we||this.#p)){if(this.#p=!0,this.#g===0||this.#_===0){let e=this.#t.plot.getBoundingClientRect();this.#g=e.width,this.#_=e.height}if(!this.#m){this.#m=!0;let e=performance.now();for(let t of this.#L.values())t.retarget([1],{duration:0,now:e})}this.#Ae(),this.#Se=!0,this.#Je()}}afterPrint(){this.#we||!this.#p||(this.#p=!1,this.#d||this.releaseBackingStores())}#De(){let e=this.#t.tooltip;e!=null&&this.#c==null&&(this.#c=q(e,()=>{this.#Tt()!=null&&(this.#be={width:e.offsetWidth,height:e.offsetHeight},this.#Ge())}))}setOptions(e){let t=this.#r;this.#r=e,t.xScale!==e.xScale&&this.#z.clear(),t.animate&&!e.animate&&this.#Ae(),t.dimensions!==e.dimensions&&this.#ie?.setDimensions(e.dimensions,{glide:this.#Ne()>0&&this.#R}),(t.xKey!==e.xKey||t.xScale!==e.xScale||t.zKey!==e.zKey||t.stacked!==e.stacked)&&(this.#E=!0),(t.yDomain[0]!==e.yDomain[0]||t.yDomain[1]!==e.yDomain[1])&&(this.#fe=null,this.#Oe()),this.#We()}#Oe(){this.#R&&(this.#Ne()===0?this.#P.jump(this.#Ie()):this.#P.aim(this.#Ie(),performance.now()))}setCallbacks(e){this.#i=e}setRows(e){e!==this.#y&&(this.#y=e,this.#E=!0,this.#We())}flushIngest(){!this.#E||this.#we||(this.#E=!1,this.#je())}setControlledActiveIndex(e){let t=this.#ge;this.#ge=null;let n=this.#he!==void 0;if(this.#he=e,e!==void 0){let n=t!=null&&t.index===e&&t.viaKeyboard;this.#jt(e==null?null:this.#Dt(e),{viaKeyboard:n,notify:!1})}else n&&this.#jt(null,{viaKeyboard:!1,notify:!1});this.#Ge()}handlePointerMove(e,t){let n=this.#ie,r=n?.dragTo(e,t)??`none`;if(r!==`none`){r===`rotated`&&(this.#jt(null,{viaKeyboard:!1,notify:!1}),this.#We());return}if(this.#ve=e,this.#ye=t,n!=null){let r=n.hitAt(e,t);this.#pe=r?.seriesKey??null,this.#fe=r==null?null:{x:r.screenX,y:r.screenY},this.#jt(r?.index??null,{viaKeyboard:!1,notify:!0});return}let i=this.#kt(e,t);this.#jt(i,{viaKeyboard:!1,notify:!0})}handlePointerDown(e,t){this.#se=!0,this.#ie?.pressAt(e,t)!==!0&&this.handlePointerMove(e,t)}handlePointerUp(e,t,{activate:n=!0}={}){let r=this.#ie?.release()??`none`,i=this.#se;this.#se=!1,r!==`rotated`&&(r===`tap`&&this.handlePointerMove(e,t),i&&n&&this.handleActivate(e,t))}handlePointerLeave(){this.#ve=null,this.#ye=null,this.#ie?.release(),this.#se=!1,this.#pe=null,this.#fe=null,this.#jt(null,{viaKeyboard:!1,notify:!0})}handleActivate(e,t){let n=this.#ke(e,t);if(n==null)return;let r=this.#Et(n.index),i=this.#y[r];i!=null&&this.#i.onDatumActivate?.({index:r,xValue:this.#Ot(n.index),datum:i,dataKey:n.dataKey})}#ke(e,t){if(e==null||t==null){let e=this.#Tt();return e==null?null:{index:e,dataKey:this.#e===`scatter`?this.#pe:null}}if(this.#ie!=null){let n=this.#ie.hitAt(e,t);return n==null?null:{index:n.index,dataKey:n.seriesKey}}let n=this.#kt(e,t);return n==null?null:{index:n,dataKey:this.#At(n,e,t)}}handleKeyDown(e,{repeat:t=!1}={}){if(this.#b===0)return!1;let n=this.#b-1,r=this.#Tt(),i=this.#G?Math.max(1,Math.floor(this.#b/Math.max(1,this.#ee.width*this.#v))):1,a=Math.max(1,Math.floor(this.#b/10)),o=this.#Ve()?mn.get(e)??e:e,s=(()=>{switch(o){case`ArrowLeft`:return Math.max(0,(r??this.#b)-i);case`ArrowRight`:return Math.min(n,(r??-1)+i);case`PageUp`:return Math.min(n,(r??0)+a);case`PageDown`:return Math.max(0,(r??n)-a);case`Home`:return 0;case`End`:return n;case`Escape`:return r==null?void 0:null;default:return}})();return s===void 0?e!==`Enter`&&e!==` `||r==null?!1:(t||this.handleActivate(null,null),!0):(this.#ve=null,this.#ye=null,this.#pe=null,this.#fe=null,this.#jt(s,{viaKeyboard:!0,notify:!0}),!0)}invalidateColors(){this.#Q!=null&&(this.#Q=null,this.#We())}setColorScope(e,t){let n=this.#$;(n==null||n.className!==e||n.style!==t)&&(this.#$={className:e,style:t},this.invalidateColors())}#Ae(){this.#P.jump(this.#Ie()),this.#F.jump(this.#Le()),this.#ie?.settle(this.#r.dimensions);for(let e of this.#I.values())e.snap();for(let e of this.#L.values())e.snap();this.#q.alpha=this.#q.target}#je(){let e=this.#y,{xScale:t}=this.#r,n=this.#n.seriesSpecs();this.#K.clear();let r=this.#x,i=this.#S,a=Ne({rows:e,xKey:this.#r.xKey,xScale:t,specs:n,zKey:this.#e===`scatter`?this.#r.zKey:null,rootName:this.#He()});this.#b=a.rowCount,this.#x=a.xs,this.#S=a.xValues,this.#C=a.order,this.#w=a.orderInverse,this.#M=a.xsAllIntegers,this.#T=a.xHasTimeOfDay;let o=this.#x[0],s=this.#x[this.#b-1],c=r[0],l=r[r.length-1];if(!this.#Re()&&(t===`linear`||t===`time`)&&o!=null&&s!=null&&c!=null&&l!=null&&o>c&&o<=l&&s>=l){this.#q.target=1;let e=performance.now(),t=e-this.#J;this.#X=t>2e3?null:this.#X==null?t:this.#X*.7+t*.3,this.#J=e,this.#Y=!0}else(o!==c||s!==l)&&(this.#q.target=0,this.#X=null),this.#Y=!1;let u=this.#b,d=t===`band`||t===`point`,f=r.length===u&&u<=2500;if(f){for(let e=0;e<u;e++)if(!(d?vn(i[e],this.#S[e]):r[e]===this.#x[e])){f=!1;break}}let p=this.#O;this.#D=a.columns,this.#O=new Map(n.map((e,t)=>[e.dataKey,t])),this.#k=a.valueMin,this.#A=a.valueMax,this.#j=a.valuesAllIntegers,this.#ne=a.zs,this.#re=a.zExtent==null?[0,1]:Xe(a.zExtent,5),this.#ie?.resetProjection(),this.#fe=null,this.#N=this.#r.stacked?an(this.#D):null,this.#G=this.#e!==`scatter`&&_e({pointCount:u,columnCount:Math.max(1,Math.round(this.#ee.width*this.#v)),wasDecimated:this.#G});let m=this.#Q;if(m!=null){for(let e of this.#n.seriesMeta())if(m.inputs.get(e.dataKey)!==ln(e)){this.#Q=null;break}}this.#Me(n,p,f);let h=this.#Tt();h!=null&&this.#jt(Math.min(h,Math.max(0,u-1)),{viaKeyboard:this.#_e,notify:!1}),this.#Ft({force:!0})}#Me(e,t,n){let r=performance.now(),i=this.#Ne(),a=!this.#R;this.#R=this.#R||this.#b>0,a||i===0?(this.#P.jump(this.#Ie()),this.#F.jump(this.#Le())):(this.#P.aim(this.#Ie(),r),this.#e===`bar`?this.#F.jump(this.#Le()):this.#Y&&this.#X!=null?this.#F.glide(this.#Le(),{now:r,duration:this.#X}):this.#F.aim(this.#Le(),r));let o=this.#b>0&&this.#b<=2500&&n&&!this.#G,s=this.#b<=2500,c=/* @__PURE__ */ new Set,l=/* @__PURE__ */ new Set,u=(e,t,n)=>{c.add(e);let a=this.#I.get(e);a??(a=new sn,this.#I.set(e,a));let s=o&&n&&a.values().length===t.length;a.retarget(t,{duration:s?i:0,now:r})};e.forEach((e,n)=>{l.add(e.dataKey);let i=t.has(e.dataKey);if(s&&this.#N!=null?(u(`${e.dataKey}:lower`,this.#N.lower[n]??/* @__PURE__ */ new Float64Array,i),u(`${e.dataKey}:upper`,this.#N.upper[n]??/* @__PURE__ */ new Float64Array,i)):s&&u(e.dataKey,this.#D[n]??/* @__PURE__ */ new Float64Array,i),!this.#L.has(e.dataKey)&&this.#b>0){let t=new sn,n=this.#Pe();t.retarget([0],{duration:0,now:r}),(this.#m||n===0)&&t.retarget([1],{duration:this.#m?this.#Ne():0,now:r}),this.#L.set(e.dataKey,t)}});for(let e of this.#I.keys())c.has(e)||this.#I.delete(e);for(let e of this.#L.keys())l.has(e)||this.#L.delete(e)}#Ne(){return!(this.#d&&this.#f)&&!this.#p?0:this.#Pe()}#Pe(){return!this.#r.animate||this.#Fe()?0:280}#Fe(){return this.#u!=null&&U(this.#u)}#Ie(){let[e,t]=this.#r.yDomain,n,r;if(this.#N==null?this.#e===`line`||this.#e===`scatter`?(n=this.#k,r=this.#A):(n=Math.min(0,this.#k),r=Math.max(0,this.#A)):(n=Math.min(0,this.#N.min),r=Math.max(0,this.#N.max)),typeof e==`number`&&(n=e),typeof t==`number`&&(r=t),this.#b===0)return[0,1];if(this.#e===`bar`&&!this.#ze())return[typeof e==`number`?e:n*pn,typeof t==`number`?t:r*pn||(n<0?0:1)];let i=this.#e===`bar`||this.#e===`area`?Ze([n,r],5):Xe([n,r],5);return[typeof e==`number`?e:i[0],typeof t==`number`?t:i[1]]}#Le(){if(this.#b===0)return[0,1];let e=this.#x[0]??0,t=this.#x[this.#b-1]??0;return e===t?[e-.5,t+.5]:this.#e===`scatter`?Xe([e,t],5):[e,t]}#Re(){return this.#e===`scatter`&&this.#r.zKey!=null}#ze(){let e=this.#n.getSnapshot();return e.xAxis!=null||e.yAxis!=null||e.grid!=null}#Be(){return this.#ze()||this.#Re()||this.#n.getSnapshot().referenceLines.some(e=>e.label!=null&&e.label.length>0)}#Ve(){return this.#e===`bar`&&this.#r.orientation===`horizontal`}#He(){return`${Ae[this.#e].split(`.`)[0]??`Chart`}.Root`}#Ue(e,t){let n=this.#W.get(t);return n??(this.#W.size>=512&&this.#W.clear(),n=e.measureText(t).width,this.#W.set(t,n)),n}#We(){this.#Se=!0,this.#h=!0,this.#Ke()}#Ge(){this.#Ke()}#Ke(){let e=this.#u;this.#xe||this.#we||e==null||(this.#xe=!0,this.#Ce=ge(e,this.#qe))}#qe=()=>{this.#xe=!1,this.#Ce=null,this.#Je()};#Je(){if(!this.#we){if(this.flushIngest(),this.#Se&&!this.#d&&!this.#p)this.#h&&(this.#h=!1,this.#Qe());else if(this.#Se){this.#Se=!1,this.#h=!1;let e=performance.now(),t=!1,n=this.#Ve()?this.#ee.width:this.#ee.height;t=this.#P.tick(e,this.#Ye(this.#P,n))||t,t=this.#F.tick(e,this.#Ye(this.#F,this.#ee.width))||t;for(let n of this.#I.values())t=n.tick(e)||t;for(let n of this.#L.values())t=n.tick(e)||t;t=(this.#ie?.tick(e)??!1)||t,this.#g>0&&this.#_>0&&this.#Ze(),this.#Qe(),t=this.#ct(e)||t,t&&this.#We()}this.#It()}}#Ye(e,t){let n=e.values(),r=Math.abs((n[1]??0)-(n[0]??0));return t>0&&Number.isFinite(r)?r*.5/(t*this.#v):0}#Xe(){return typeof devicePixelRatio==`number`&&devicePixelRatio>0?Math.min(devicePixelRatio,3):1}#Ze(){let e=this.#a.paintSignature({devicePixelRatio:this.#v,orientation:this.#r.orientation});if(this.#Q?.signature===e)return;let t=this.#a.resolvePaint({series:this.#n.seriesMeta(),devicePixelRatio:this.#v,orientation:this.#r.orientation,signature:e});t!=null&&(this.#W.clear(),this.#Q=t)}#Qe(){let e=this.#n.getSnapshot(),t=this.#Re(),n=this.#Ve(),r=!t&&e.xAxis!=null,i=!t&&e.yAxis!=null,a=n?r:i,o=n?i:r,s=this.#e===`bar`&&!this.#ze()?0:8,c=s,l=o?24:s,u=Math.max(0,this.#_-c-l);this.#ee={left:s,top:c,width:Math.max(0,this.#g-s*2),height:u};let d=s;if(a){d=40;let e=this.#Q==null?null:this.#a.measureContext();if(e!=null&&this.#Q!=null){e.font=`11px ${this.#Q.fontFamily()}`;let t=0,r=n?this.#it().map(e=>e.text):this.#rt().map(e=>e.text);for(let n of r){let r=this.#Ue(e,n);r>t&&(t=r)}d=Math.ceil(t)+14}}this.#ee={left:d,top:c,width:Math.max(0,this.#g-d-s),height:u};let f=n?this.#ee.top:this.#ee.left,p=n?this.#ee.top+this.#ee.height:this.#ee.left+this.#ee.width;if(this.#r.xScale===`band`){let e=hn((p-f)/Math.max(1,this.#b));this.#te=Ue({count:this.#b,rangeStart:f,rangeEnd:p,paddingInner:e,paddingOuter:e/2})}else this.#te=this.#r.xScale===`point`?Ue({count:this.#b,rangeStart:f,rangeEnd:p,paddingInner:1,paddingOuter:.5}):null;this.#G=this.#e!==`scatter`&&_e({pointCount:this.#b,columnCount:Math.max(1,Math.round(this.#ee.width*this.#v)),wasDecimated:this.#G})}#$e(){let e=this.#P.values();return He([e[0]??0,e[1]??1],[this.#ee.top+this.#ee.height,this.#ee.top])}#et(){let e=this.#P.values(),t=this.#Ve()?[this.#ee.left,this.#ee.left+this.#ee.width]:[this.#ee.top+this.#ee.height,this.#ee.top];return He([e[0]??0,e[1]??1],t)}#tt(){let e=this.#F.values();return He([e[0]??0,e[1]??1],[this.#ee.left,this.#ee.left+this.#ee.width])}#nt(e){let t=this.#te;if(t!=null)return Ge(t,e);let{k:n,b:r}=this.#tt();return(this.#x[e]??0)*n+r}#rt(){let e=this.#n.getSnapshot(),t=this.#P.values(),n=e.yAxis?.tickCount,r=this.#Ve()?1/0:Math.max(2,Math.floor(this.#ee.height/28)),i=Math.min(n??1/0,r),a=n??5,o=e.yAxis?.tickFormat,s=`${t[0]}|${t[1]}|${i}|${a}|${this.#j}`,c=this.#H;if(c!=null&&c.key===s&&c.format===o)return c.ticks;let l=Ye([t[0]??0,t[1]??1],i,{count:a,integer:this.#j}),u=l.length>1?Math.abs((l[1]??0)-(l[0]??0)):0,d=Math.abs((t[1]??1)-(t[0]??0)),f=l.length>1?u:d,p=f>0?Ce(f):void 0,m=l.map(e=>{let t=Y(e,p==null?void 0:{maximumFractionDigits:p});return{value:e,text:o==null?t:o(e,{defaultLabel:t,step:u})}});return this.#H={key:s,format:o,ticks:m},m}#it(){let e=this.#n.getSnapshot().xAxis?.tickFormat,t=this.#ot(),n=this.#U;if(n!=null&&n.key===t&&n.format===e&&n.xValues===this.#S)return n.ticks;let r=this.#st();return this.#U={key:t,format:e,xValues:this.#S,ticks:r},r}#at(){let{xScale:e}=this.#r;return e===`band`||e===`point`}#ot(){if(this.#at()){let e=this.#Ve();return`band|${e}|${e?this.#ee.height:this.#ee.width}|${this.#b}|${this.#T}`}let e=this.#F.values(),t=this.#n.getSnapshot().xAxis?.tickCount;return`${this.#r.xScale}|${e[0]}|${e[1]}|${t}|${this.#ee.width}|${this.#M}`}#st(){let e=this.#n.getSnapshot(),t=e.xAxis?.tickFormat;if(this.#at()){let e=this.#Ve(),n=e?this.#ee.height:this.#ee.width,r=Math.max(1,Math.floor(n/(e?15:60))),i=Math.max(1,Math.ceil(this.#b/r)),a=[];for(let e=0;e<this.#b;e+=i){let n=this.#S[e]??``,r=ke(n,{datasetHasTimeOfDay:this.#T});a.push({index:e,value:e,text:t==null?r:t(n,{defaultLabel:r})})}return a}let n=this.#F.values(),r=[n[0]??0,n[1]??1],i=e.xAxis?.tickCount??Math.max(2,Math.floor(this.#ee.width/90));if(this.#r.xScale===`time`)return _t(r,i).map(e=>{let n=Ct(e);return{index:null,value:e,text:t==null?n:t(new Date(e),{defaultLabel:n})}});let a=Je(r,i,{integer:this.#M}),o=a.length>1?Ce(Math.abs((a[1]??0)-(a[0]??0))):void 0;return a.map(e=>{let n=Y(e,o==null?void 0:{maximumFractionDigits:o});return{index:null,value:e,text:t==null?n:t(e,{defaultLabel:n})}})}#ct(e){let t=this.#Q;if(t==null||this.#g<=0||this.#_<=0)return!1;let n=this.#a.begin({cssWidth:this.#g,cssHeight:this.#_,devicePixelRatio:this.#v});if(n==null)return!1;let r=this.#lt(n,t,e);return this.#a.end(),r}#lt(e,t,n){let r=Math.min(50,Math.max(0,n-this.#V));this.#V=n;let i=this.#n.getSnapshot(),a=this.#ee;if(a.width<=0||a.height<=0)return!1;let o=this.#$e(),s=this.#tt(),c=this.#n.seriesSpecs(),l=this.#Re(),u=this.#p||this.#Ne()===0,d=this.#ze(),f=l||!d?[]:this.#ut(e,t.fontFamily()),p=l||!d?[]:this.#dt(e,t.fontFamily()),m=yn(this.#z,f,r,u);m=yn(this.#B,p,r,u)||m;let h=this.#q;if(h.target===1){if(n-this.#J>un)h.target=0;else if(this.#Z==null){let e=un-(n-this.#J)+17;this.#Z=setTimeout(()=>{this.#Z=null,this.#We()},e)}}if(u)h.alpha=h.target;else{let e=1-(1-(h.target>h.alpha?.16:.08))**(r/16.67);h.alpha+=(h.target-h.alpha)*e,Math.abs(h.target-h.alpha)<.02&&(h.alpha=h.target)}h.alpha!==h.target&&(m=!0);let g=this.#Ve(),_=g?this.#et():o,v=e=>this.#te==null?e*s.k+s.b:Ge(this.#te,e),y=e=>e*_.k+_.b,b=[...this.#z.entries()].map(([e,t])=>({position:v(e),alpha:t.alpha})),x=[...this.#B.entries()].map(([e,t])=>({position:y(e),alpha:t.alpha})),S=()=>{if(i.grid==null||l)return;let n=i.grid.lines??(g?`vertical`:`horizontal`),r=g?b:x,o=g?x:b;Lt(e,{plot:a,color:t.chrome.grid,xLines:n===`horizontal`?[]:o,yLines:n===`vertical`?[]:r})},C=Math.min(40,a.width*.25),w=h.alpha>.01&&C>1,T={labels:null};this.#a.composite(e,{underlay:S,marks:()=>{e.save(),e.beginPath(),e.rect(a.left,a.top,a.width,a.height+1),e.clip(),this.#e===`bar`?g?this.#xt(e,c):this.#bt(e,c,o):this.#e===`scatter`?T.labels=this.#ie?.paint(e)??null:this.#St(e,c,o),e.restore()},fade:w?{left:a.left,top:a.top,width:C,height:a.height+1,alpha:h.alpha}:null}),T.labels!=null&&this.#ie?.paintLabels(e,T.labels),this.#e===`bar`&&this.#b>0&&this.#ze()&&(g?Bt(e,{plot:a,color:t.chrome.baseline,x:y(0)}):zt(e,{plot:a,color:t.chrome.baseline,y:y(0)}));for(let n of l?[]:i.referenceLines){let r=y(n.y);if(g?r<a.left||r>a.left+a.width:r<a.top||r>a.top+a.height)continue;let i=n.color==null?t.chrome.reference:t.resolve(n.color);g?nn(e,{plot:a,color:i,textColor:t.chrome.tickText,x:r,label:n.label,fontFamily:t.fontFamily()}):tn(e,{plot:a,color:i,textColor:t.chrome.tickText,y:r,label:n.label,fontFamily:t.fontFamily()})}let E=i.xAxis==null||l?[]:[...this.#z.entries()].map(([e,t])=>({position:v(e),text:t.text,alpha:t.alpha})),D=i.yAxis==null||l?[]:[...this.#B.entries()].map(([e,t])=>({position:y(e),text:t.text,alpha:t.alpha})),O=g?D:E,k=g?E:D;return(O.length>0||k.length>0)&&rn(e,{plot:a,color:t.chrome.tickText,fontFamily:t.fontFamily(),xLabels:O,yLabels:k}),m}#ut(e,t){e.font=`11px ${t}`;let n=this.#Ve(),r=this.#tt(),i=[],a=-1/0;for(let t of this.#it()){let o=t.index!=null&&this.#te!=null,s=o&&this.#te!=null?Ge(this.#te,t.index??0):t.value*r.k+r.b,c=n?15/2:this.#Ue(e,t.text)/2,l=n?2:8;s-c<a+l||(a=s+c,i.push({key:o?t.index??0:t.value,text:t.text}))}return i}#dt(e,t){let n=this.#rt(),r=this.#et();if(!this.#Ve()){let e=[],t=NaN;for(let i of n){let n=i.value*r.k+r.b;Math.abs(n-t)<13||(t=n,e.push({key:i.value,text:i.text}))}return e}e.font=`11px ${t}`;let i=[],a=-1/0;for(let t of n){let n=t.value*r.k+r.b,o=this.#Ue(e,t.text)/2;n-o<a+8||(a=n+o,i.push({key:t.value,text:t.text}))}return i}#ft(e,t,n){let r=t===`value`?e.dataKey:`${e.dataKey}:${t}`;if(!this.#G&&this.#b<=2500){let e=this.#I.get(r);if(e!=null&&e.values().length===this.#b)return e.values()}return t===`value`?this.#D[n]??/* @__PURE__ */ new Float64Array:(t===`lower`?this.#N?.lower:this.#N?.upper)?.[n]??/* @__PURE__ */ new Float64Array}#pt(e){let t=this.#O.get(e);return t==null?void 0:this.#D[t]}#mt(e){let t=[];for(let n=0;n<this.#b;n++)Number.isNaN(e[n]??NaN)||t.push(n);return t}#ht(e){return this.#ue.length!==e&&(this.#ue=Array.from({length:e},(e,t)=>t)),this.#ue}#gt(e){return this.#L.get(e)?.values()[0]??1}#_t(e){let t=e.map(e=>this.#gt(e.dataKey));if(this.#N==null)return e.map((e,n)=>({lower:null,upper:this.#ft(e,`value`,n),reveal:t[n]??1}));let n=e.map((e,t)=>this.#ft(e,`lower`,t)),r=e.map((e,t)=>this.#ft(e,`upper`,t));if(t.every(e=>e>=1))return e.map((e,t)=>({lower:n[t]??null,upper:r[t]??/* @__PURE__ */ new Float64Array,reveal:1}));let i=ce({lower:n,upper:r,reveal:t,count:this.#b});return e.map((e,t)=>({lower:i.lower[t]??null,upper:i.upper[t]??/* @__PURE__ */ new Float64Array,reveal:1}))}#vt(e,t){if(e==null)return 0;let n=e[t]??0;return Number.isNaN(n)?0:n}#yt(e,t,n){let r=this.#N;if(r==null)return!0;let i=r.lower[e]?.[t]??NaN,a=r.upper[e]?.[t]??NaN;if(Number.isNaN(i)||Number.isNaN(a))return!1;let o=i<0,s=(o?r.negativeEnd:r.positiveEnd)[t]??-1;if(s<0)return!1;let c=(o?r.lower:r.upper)[s]?.[t]??NaN;return B({lower:i,upper:a,pileOuter:c,toPixel:n})}#bt(e,t,n){let r=this.#te,i=this.#Q;if(r==null||i==null||this.#b===0||t.length===0)return;let a=this.#N!=null,o=a?1:t.length,s=gn({bandwidth:r.bandwidth,groupCount:o}),c=(r.bandwidth-s*(o-1))/o,l=L({step:r.step,slot:c}),u=e=>e*n.k+n.b,d=+!!a,f=this.#ce,p=this.#_t(t);t.forEach((t,n)=>{let{lower:m,upper:h,reveal:g}=p[n]??fn,_=0;for(let e=0;e<this.#b;e++){let t=h[e]??NaN;if(Number.isNaN(t))continue;let i=this.#vt(m,e),p=a?We(r,e)+(r.bandwidth-l)/2:We(r,e)+(r.bandwidth-(c*o+s*(o-1)))/2+n*(c+s)+(c-l)/2,v=se({lower:i,upper:t,toPixel:u,reveal:g,gap:d}),y=f[_]??wn();f[_]=y,_+=1,y.x=p,y.width=l,y.baselineY=v.baseline,y.valueY=v.value,y.rounded=this.#yt(n,e,u),y.roundedBase=V({baseline:v.baseline,toPixel:u})}Ht(e,{fill:i.barFills.get(t.dataKey)??i.series.get(t.dataKey)??`currentColor`,rects:f,count:_})})}#xt(e,t){let n=this.#te,r=this.#Q;if(n==null||r==null||this.#b===0||t.length===0)return;let i=this.#et(),a=this.#N!=null,o=a?1:t.length,s=gn({bandwidth:n.bandwidth,groupCount:o}),c=(n.bandwidth-s*(o-1))/o,l=L({step:n.step,slot:c}),u=e=>e*i.k+i.b,d=+!!a,f=this.#le,p=this.#_t(t);t.forEach((t,i)=>{let{lower:m,upper:h,reveal:g}=p[i]??fn,_=0;for(let e=0;e<this.#b;e++){let t=h[e]??NaN;if(Number.isNaN(t))continue;let r=this.#vt(m,e),p=a?We(n,e)+(n.bandwidth-l)/2:We(n,e)+(n.bandwidth-(c*o+s*(o-1)))/2+i*(c+s)+(c-l)/2,v=se({lower:r,upper:t,toPixel:u,reveal:g,gap:d}),y=f[_]??Tn();f[_]=y,_+=1,y.y=p,y.height=l,y.baselineX=v.baseline,y.valueX=v.value,y.rounded=this.#yt(i,e,u),y.roundedBase=V({baseline:v.baseline,toPixel:u})}Ut(e,{fill:r.barFills.get(t.dataKey)??r.series.get(t.dataKey)??`currentColor`,rects:f,count:_})})}#St(e,t,n){let r=this.#Q;if(r==null||this.#b===0)return;let i=this.#tt(),a=this.#te,o=e=>a==null?(this.#x[e]??0)*i.k+i.b:Ge(a,e);t.forEach((t,i)=>{let a=r.series.get(t.dataKey)??`currentColor`,s=this.#gt(t.dataKey);if(e.save(),s<1&&(e.beginPath(),e.rect(this.#ee.left,0,this.#ee.width*s,this.#_),e.clip()),this.#G){this.#Ct(e,t,i,a,n),e.restore();return}let c=t.mark===`area`,l=this.#ft(t,this.#N==null?`value`:`upper`,i),u=this.#N==null?null:this.#ft(t,`lower`,i),d=e=>!Number.isNaN(l[e]??NaN),f=t.connectNulls?this.#mt(l):this.#ht(this.#b),p=e=>(l[e]??0)*n.k+n.b;if(c){let r=u==null?()=>0*n.k+n.b:e=>(u[e]??0)*n.k+n.b;Gt(e,{color:a,curve:t.curve,indexes:f,xAt:o,y0At:r,y1At:p,definedAt:d})}else Wt(e,{color:a,curve:t.curve,indexes:f,xAt:o,yAt:p,definedAt:d}),t.markers&&this.#ee.width/this.#b>=12&&en(e,{color:a,surface:r.chrome.surface,shape:t.shape,indexes:f,xAt:o,yAt:p,definedAt:d});e.restore()})}#Ct(e,t,n,r,i){let a=Math.max(1,Math.round(this.#ee.width*this.#v)),o=e=>this.#ee.left+(e+.5)/this.#v;if(t.mark===`area`){let s=this.#wt(`${t.dataKey}:upper`,this.#ft(t,this.#N==null?`value`:`upper`,n),a),c=this.#N==null?null:this.#wt(`${t.dataKey}:lower`,this.#ft(t,`lower`,n),a);if(c==null){let t=this.#de;t?.columnCount!==a&&(t=En(a),this.#de=t),qt(e,{color:r,lowerColumns:t,upperColumns:s,columnToX:o,valueK:i.k,valueB:i.b})}else qt(e,{color:r,lowerColumns:c,upperColumns:s,columnToX:o,valueK:i.k,valueB:i.b});return}let s=this.#wt(t.dataKey,this.#ft(t,`value`,n),a);Kt(e,{color:r,columns:s,columnToX:o,valueK:i.k,valueB:i.b})}#wt(e,t,n){let r=this.#F.values(),i=`${r[0]??0}:${r[1]??1}:${n}`,a=this.#K.get(e);if(a!=null&&a.key===i)return a.columns;let o=[r[0]??0,r[1]??1],s=He(o,[0,n]),c=ve({xs:this.#x,values:t,startIndex:0,endIndex:this.#b-1,positionK:s.k,positionB:s.b,columnCount:n});return this.#K.set(e,{key:i,columns:c}),c}#Tt(){if(this.#b===0)return null;let e;return e=this.#he===void 0?this.#me:this.#he==null?null:this.#Dt(this.#he),e==null?null:Math.min(Math.max(0,e),this.#b-1)}#Et(e){return this.#C==null?e:this.#C[e]??e}#Dt(e){if(this.#y.length===0)return null;let t=Math.min(Math.max(0,e),this.#y.length-1);if(this.#w==null)return t;let n=this.#w[t]??-1;return n===-1?null:n}#Ot(e){if(e<0||e>=this.#b)return``;let{xScale:t}=this.#r;if(t===`band`||t===`point`)return this.#S[e]??``;let n=this.#x[e]??0;return t===`time`?new Date(n):n}#kt(e,t){if(this.#b===0)return null;let n=this.#te;if(n!=null)return qe(n,this.#Ve()?t:e);let{k:r,b:i}=this.#tt();if(r===0)return 0;let a=e;if(this.#G){let t=Math.floor((e-this.#ee.left)*this.#v);a=this.#ee.left+(t+.5)/this.#v}return Pe(this.#x,this.#b,(a-i)/r)}#At(e,t,n){let r=this.#n.seriesSpecs(),i=this.#Ve(),a=this.#te;if(this.#e===`bar`&&this.#N==null&&a!=null&&r.length>1){let o=(i?n:t)-We(a,e),s=Math.floor(o/Math.max(1,a.bandwidth)*r.length);return r[Math.min(r.length-1,Math.max(0,s))]?.dataKey??null}let{k:o,b:s}=i?this.#et():this.#$e(),c=i?t:n,l=this.#N;if(this.#e===`bar`&&l!=null)for(let t=0;t<r.length;t++){let n=l.lower[t]?.[e]??NaN,i=l.upper[t]?.[e]??NaN;if(Number.isNaN(n)||Number.isNaN(i)||n===i)continue;let a=n*o+s,u=i*o+s;if(c>=Math.min(a,u)&&c<=Math.max(a,u))return r[t]?.dataKey??null}let u=null,d=1/0;return r.forEach((t,n)=>{let r=(this.#N==null?this.#pt(t.dataKey):this.#N.upper[n])?.[e]??NaN;if(Number.isNaN(r))return;let i=Math.abs(r*o+s-c);i<d&&(d=i,u=t.dataKey)}),u}#jt(e,t){let n=e==null||this.#b===0?null:Math.min(Math.max(0,e),this.#b-1),r=this.#he!==void 0;if(t.notify&&n!==this.#Tt()){let e=n==null?null:this.#Et(n);if(this.#i.onActiveIndexChange?.(e),r){this.#ge={index:e,viaKeyboard:t.viaKeyboard};return}}this.#_e=t.viaKeyboard,r||(this.#me=n),this.#Ft(),this.#Ge()}#Mt=null;#Nt=!1;#Pt=null;#Ft(e={force:!1}){let t=this.#Tt();if(!e.force&&t===this.#Mt&&this.#_e===this.#Nt&&this.#pe===this.#Pt)return;if(this.#Mt=t,this.#Nt=this.#_e,this.#Pt=this.#pe,t==null||this.#b===0){this.#n.publishHover(null);return}let n=this.#Et(t),r=this.#y[n]??{},i=this.#n.getSnapshot().series.map(e=>{let n=this.#pt(e.dataKey)?.[t]??NaN;return{dataKey:e.dataKey,label:e.label,value:Number.isNaN(n)?null:n,color:e.color}});this.#r.stacked&&i.reverse(),this.#e===`scatter`&&(i=this.#pe==null?i.filter(e=>e.value!=null):i.filter(e=>e.dataKey===this.#pe));let a={index:n,xValue:this.#Ot(t),datum:r,points:i,viaKeyboard:this.#_e};if(this.#r.stacked&&i.length>1&&(a.total=i.reduce((e,t)=>e+(t.value??0),0)),this.#Re()){let e=this.#ne[t]??NaN;a.zValue=Number.isNaN(e)?null:e}this.#n.publishHover(a)}#It(){let e=this.#Tt(),t=e!=null&&this.#b>0,n=this.#oe??(t?this.#Lt():null);if(n==null)return;let{tooltip:r}=this.#t,{crosshair:i,band:a,markers:o}=n,s=this.#e===`bar`,c=this.#e===`scatter`;if(i.style.opacity=t&&!s&&!c?`1`:`0`,a.style.opacity=t&&s?`1`:`0`,o.style.opacity=t&&!s?`1`:`0`,r!=null&&(r.style.opacity=t?`1`:`0`),!t)return;let l=this.#ee;if(c){let t=this.#fe??this.#ie?.screenFor(e)??null;if(t==null){o.style.opacity=`0`,r!=null&&(r.style.opacity=`0`);return}for(;o.children.length>1;)o.lastElementChild?.remove();o.children.length===0&&o.appendChild(xn(o.ownerDocument));let n=o.children[0];if(n instanceof HTMLElement){let r=this.#n.getSnapshot().series,i=this.#pe==null?r.find(t=>{let n=this.#pt(t.dataKey)?.[e]??NaN;return!Number.isNaN(n)}):r.find(e=>e.dataKey===this.#pe);n.style.opacity=`1`,Cn(n,i?.shape??`circle`,i?.color??`currentColor`),n.style.transform=`translate(${t.x}px, ${t.y}px)`}this.#Rt(t.x,t.y);return}let u=this.#nt(e),d=this.#Ve();if(s){let t=this.#te;if(t!=null){let n=Ke(t,e),r=Math.max(1,n.size),i=n.start-(r-n.size)/2;d?(a.style.transform=`translate(${l.left}px, ${i}px)`,a.style.width=`${l.width}px`,a.style.height=`${r}px`):(a.style.transform=`translate(${i}px, ${l.top}px)`,a.style.width=`${r}px`,a.style.height=`${l.height}px`)}}else{i.style.transform=`translate(${u}px, ${l.top}px)`,i.style.height=`${l.height}px`;let t=this.#n.getSnapshot().series;for(;o.children.length>t.length;)o.lastElementChild?.remove();for(;o.children.length<t.length;)o.appendChild(xn(o.ownerDocument));let n=this.#$e();t.forEach((t,r)=>{let i=o.children[r];if(!(i instanceof HTMLElement))return;let a=this.#pt(t.dataKey)?.[e]??NaN,s=this.#ft(t,this.#N==null?`value`:`upper`,r)[e]??NaN;Number.isNaN(a)||Number.isNaN(s)?i.style.opacity=`0`:(i.style.opacity=`1`,Cn(i,t.shape,t.color),i.style.transform=`translate(${u}px, ${s*n.k+n.b}px)`)})}s&&d&&this.#te!=null?this.#Rt(this.#ve??l.left+l.width/2,Ge(this.#te,e)):this.#Rt(u,this.#ye??l.top+8)}#Lt(){if(this.#ae==null)return null;let e=this.#ae();return this.#t.plot.append(e.crosshair,e.band,e.markers),this.#oe=e,e}#Rt(e,t){let n=this.#ee,r=this.#t.tooltip;if(r==null)return;this.#d&&this.#be.width===0&&this.#be.height===0&&(this.#be={width:r.offsetWidth,height:r.offsetHeight});let i=this.#be,a=e+12;a+i.width>n.left+n.width&&e-12-i.width>=n.left&&(a=e-12-i.width);let o=Math.max(0,Math.min(t-i.height/2,n.top+n.height-i.height));r.style.transform=`translate(${a}px, ${o}px)`}};const vn=(e,t)=>e instanceof Date&&t instanceof Date?Object.is(e.getTime(),t.getTime()):Object.is(e,t),yn=(e,t,n,r)=>{for(let t of e.values())t.target=0;for(let n of t){let t=e.get(n.key);t==null?e.set(n.key,{alpha:+!!r,target:1,text:n.text}):(t.target=1,t.text=n.text)}let i=1-.84**(n/16.67),a=1-.88**(n/16.67),o=!1;for(let[t,n]of e){if(r)n.alpha=n.target;else{let e=n.target>n.alpha?i:a;n.alpha+=(n.target-n.alpha)*e}n.target===1&&n.alpha>.98&&(n.alpha=1),n.target===0&&n.alpha<.03?e.delete(t):n.alpha!==n.target&&(o=!0)}return o},bn={circle:`circle(50%)`,square:`inset(8%)`,triangle:`polygon(50% 0%, 100% 100%, 0% 100%)`,diamond:`polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)`,"triangle-down":`polygon(0% 0%, 100% 0%, 50% 100%)`,plus:`polygon(33.33% 0%, 66.67% 0%, 66.67% 33.33%, 100% 33.33%, 100% 66.67%, 66.67% 66.67%, 66.67% 100%, 33.33% 100%, 33.33% 66.67%, 0% 66.67%, 0% 33.33%, 33.33% 33.33%)`,cross:`polygon(73.57% 2.86%, 97.14% 26.43%, 73.57% 50%, 97.14% 73.57%, 73.57% 97.14%, 50% 73.57%, 26.43% 97.14%, 2.86% 73.57%, 26.43% 50%, 2.86% 26.43%, 26.43% 2.86%, 50% 26.43%)`,star:`polygon(50% 2.45%, 61.8% 38.77%, 100% 38.77%, 69.1% 61.23%, 80.9% 97.55%, 50% 75.1%, 19.1% 97.55%, 30.9% 61.23%, 0% 38.77%, 38.2% 38.77%)`},xn=e=>{let t=e.createElement(`div`);t.setAttribute(`data-slot`,`chart-active-point`),t.style.position=`absolute`,t.style.width=`12px`,t.style.height=`12px`,t.style.left=`-6px`,t.style.top=`-6px`,t.style.forcedColorAdjust=`none`;let n=e.createElement(`div`);n.style.position=`absolute`,n.style.inset=`0`,n.style.backgroundColor=`var(--background-color-card)`;let r=e.createElement(`div`);return r.style.position=`absolute`,r.style.inset=`2px`,t.appendChild(n),t.appendChild(r),t},Sn=/* @__PURE__ */ new WeakMap,Cn=(e,t,n)=>{let r=Sn.get(e);if(r?.shape===t&&r.color===n)return;Sn.set(e,{shape:t,color:n});let i=bn[t];e.setAttribute(`data-shape`,t);let[a,o]=e.children;a instanceof HTMLElement&&(a.style.clipPath=i),o instanceof HTMLElement&&(o.style.clipPath=i,o.style.backgroundColor=n)},wn=()=>({x:0,width:0,baselineY:0,valueY:0,rounded:!1,roundedBase:!1}),Tn=()=>({y:0,height:0,baselineX:0,valueX:0,rounded:!1,roundedBase:!1}),En=e=>{let t=new Float64Array(e);return{columnCount:e,hasData:new Uint8Array(e).fill(1),minValue:t,maxValue:t,inValue:t,outValue:t}},Dn=1.5,On=1.1,kn=1.6,An=e=>`color-mix(in oklab, ${e} 25%, var(--background-color-card))`,jn=(e,t,n)=>{let r=Dn;n===`up`?(e.moveTo(-1.5,t+r),e.lineTo(t+r,-1.5),e.moveTo(-1.5,r),e.lineTo(r,-1.5),e.moveTo(t-r,t+r),e.lineTo(t+r,t-r)):(e.moveTo(-1.5,-1.5),e.lineTo(t+r,t+r),e.moveTo(t-r,-1.5),e.lineTo(t+r,r),e.moveTo(-1.5,t-r),e.lineTo(r,t+r))},Mn=(e,t)=>{let{size:n,width:r}=t;e.fillRect(0,n/2-r/2,n,r)},Nn=(e,t)=>{let{size:n,width:r}=t;e.fillRect(n/2-r/2,0,r,n)},Pn={hatch:(e,{size:t,ink:n})=>{e.strokeStyle=n,e.lineWidth=Dn,e.beginPath(),jn(e,t,`up`),e.stroke()},"hatch-reverse":(e,{size:t,ink:n})=>{e.strokeStyle=n,e.lineWidth=Dn,e.beginPath(),jn(e,t,`down`),e.stroke()},crosshatch:(e,{size:t,ink:n})=>{e.strokeStyle=n,e.lineWidth=1,e.beginPath(),jn(e,t,`up`),jn(e,t,`down`),e.stroke()},perpendicular:(e,{size:t,ink:n,orientation:r})=>{e.fillStyle=n,r===`horizontal`?Nn(e,{size:t,width:2}):Mn(e,{size:t,width:2})},parallel:(e,{size:t,ink:n,orientation:r})=>{e.fillStyle=n,r===`horizontal`?Mn(e,{size:t,width:2}):Nn(e,{size:t,width:2})},grid:(e,{size:t,ink:n})=>{e.fillStyle=n,Mn(e,{size:t,width:On}),Nn(e,{size:t,width:On})},dots:(e,{size:t,ink:n})=>{e.fillStyle=n,e.beginPath(),e.arc(t/4,t/4,kn,0,Math.PI*2),e.moveTo(3*t/4+kn,3*t/4),e.arc(3*t/4,3*t/4,kn,0,Math.PI*2),e.fill()}},Fn=(e,t)=>{let{texture:n,ground:r,ink:i,orientation:a}=t;e.fillStyle=r,e.fillRect(0,0,8,8),Pn[n](e,{size:8,ink:i,orientation:a})},In=e=>{let t=f(3),n,r;return t[0]===e?(n=t[1],r=t[2]):(n=()=>e.getSnapshot().orientation,r=()=>e.getSnapshot().orientation,t[0]=e,t[1]=n,t[2]=r),b(e.subscribe,n,r)},Ln=(e,t,n=3)=>`repeating-linear-gradient(${e}, ${t} 0, ${t} 1px, transparent 1px, transparent ${n}px)`,Rn=`forced-color-adjust-none [print-color-adjust:exact] [-webkit-print-color-adjust:exact]`,zn={hatch:({ink:e})=>({backgroundImage:Ln(`135deg`,e)}),"hatch-reverse":({ink:e})=>({backgroundImage:Ln(`45deg`,e)}),crosshatch:({ink:e})=>({backgroundImage:`${Ln(`135deg`,e,4)}, ${Ln(`45deg`,e,4)}`}),perpendicular:({ink:e,orientation:t})=>({backgroundImage:Ln(t===`horizontal`?`90deg`:`0deg`,e)}),parallel:({ink:e,orientation:t})=>({backgroundImage:Ln(t===`horizontal`?`0deg`:`90deg`,e)}),grid:({ink:e})=>({backgroundImage:`${Ln(`0deg`,e,4)}, ${Ln(`90deg`,e,4)}`}),dots:({ink:e})=>({backgroundImage:`radial-gradient(circle at 1px 1px, ${e} 0.75px, transparent 0.8px)`,backgroundSize:`3px 3px`})},Bn=(e,t,n)=>e===`solid`?{}:{backgroundColor:An(t),...zn[e]({ink:t,orientation:n})},Vn=e=>{let t=f(31),{series:n,orientation:i}=e;if(n.mark===`bar`){let e=n.texture,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=r(`size-2 shrink-0 rounded-[2px]`,Rn),t[0]=a):a=t[0];let o=n.color,s;t[1]!==i||t[2]!==n.color||t[3]!==n.texture?(s=Bn(n.texture,n.color,i),t[1]=i,t[2]=n.color,t[3]=n.texture,t[4]=s):s=t[4];let c;t[5]!==n.color||t[6]!==s?(c={backgroundColor:o,...s},t[5]=n.color,t[6]=s,t[7]=c):c=t[7];let l;return t[8]!==n.texture||t[9]!==c?(l=/* @__PURE__ */ C(`span`,{"aria-hidden":!0,"data-texture":e,className:a,style:c}),t[8]=n.texture,t[9]=c,t[10]=l):l=t[10],l}if(n.mark===`line`){let e;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(e=r(`absolute inset-x-0 top-1/2 h-0.5 -translate-y-1/2 rounded-full`,Rn),t[11]=e):e=t[11];let i;t[12]===n.color?i=t[13]:(i=/* @__PURE__ */ C(`span`,{className:e,style:{backgroundColor:n.color}}),t[12]=n.color,t[13]=i);let a=n.shape,o;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(o=r(`relative size-2`,Rn),t[14]=o):o=t[14];let s=bn[n.shape],c;t[15]!==n.color||t[16]!==s?(c={backgroundColor:n.color,clipPath:s},t[15]=n.color,t[16]=s,t[17]=c):c=t[17];let l;t[18]!==n.shape||t[19]!==c?(l=/* @__PURE__ */ C(`span`,{"data-shape":a,className:o,style:c}),t[18]=n.shape,t[19]=c,t[20]=l):l=t[20];let u;return t[21]!==i||t[22]!==l?(u=/* @__PURE__ */ w(`span`,{"aria-hidden":!0,className:`relative flex h-2 w-3 shrink-0 items-center justify-center`,children:[i,l]}),t[21]=i,t[22]=l,t[23]=u):u=t[23],u}let a=n.shape,o;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(o=r(`size-2 shrink-0`,Rn),t[24]=o):o=t[24];let s=bn[n.shape],c;t[25]!==n.color||t[26]!==s?(c={backgroundColor:n.color,clipPath:s},t[25]=n.color,t[26]=s,t[27]=c):c=t[27];let l;return t[28]!==n.shape||t[29]!==c?(l=/* @__PURE__ */ C(`span`,{"aria-hidden":!0,"data-shape":a,className:o,style:c}),t[28]=n.shape,t[29]=c,t[30]=l):l=t[30],l},Hn=e=>{let n=f(27),i,a,o,s,c,l;n[0]===e?(i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6]):({partName:o,slotName:l,className:a,children:i,ref:c,...s}=e,n[0]=e,n[1]=i,n[2]=a,n[3]=o,n[4]=s,n[5]=c,n[6]=l);let u=F(o),d=ie(u.store),p=In(u.store),m=v(null),g=t(m,c),[_,b]=y(!1),x;n[7]===d.length?x=n[8]:(x=()=>{let e=m.current;if(!(e==null||d.length<2))return q(e,()=>{b(e.scrollHeight>e.clientHeight)})},n[7]=d.length,n[8]=x);let S;if(n[9]===d?S=n[10]:(S=[d],n[9]=d,n[10]=S),h(x,S),d.length<2)return null;let T=`${l}-legend`,E;n[11]===a?E=n[12]:(E=r(`text-muted focus-visible:ring-focus-accent flex max-h-16 shrink-0 flex-wrap items-center gap-x-4 gap-y-1 overflow-y-auto rounded-sm pt-3 text-xs focus:outline-hidden focus-visible:ring-2`,a),n[11]=a,n[12]=E);let D;n[13]===_?D=n[14]:(D=_&&{role:`group`,"aria-label":`Legend`,tabIndex:0},n[13]=_,n[14]=D);let O;n[15]!==i||n[16]!==p||n[17]!==d||n[18]!==l?(O=i==null?d.map(e=>/* @__PURE__ */ w(`div`,{className:`flex items-center gap-1.5`,children:[/* @__PURE__ */ C(Vn,{series:e,orientation:p}),e.label]},e.dataKey)):/* @__PURE__ */ C(`div`,{"data-slot":`${l}-legend-label`,className:`contents`,children:i(d)}),n[15]=i,n[16]=p,n[17]=d,n[18]=l,n[19]=O):O=n[19];let k;return n[20]!==g||n[21]!==s||n[22]!==T||n[23]!==E||n[24]!==D||n[25]!==O?(k=/* @__PURE__ */ C(`div`,{ref:g,"data-slot":T,className:E,...D,...s,children:O}),n[20]=g,n[21]=s,n[22]=T,n[23]=E,n[24]=D,n[25]=O,n[26]=k):k=n[26],k},Un=p(null),Wn=e=>{let t=f(23),n,r,a,o;t[0]===e?(n=t[1],r=t[2],a=t[3],o=t[4]):({slotName:o,"data-slot":r,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=o);let s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s={id:``,text:``},t[5]=s):s=t[5];let[c,l]=y(s),u;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>({announce:(e,t)=>{l(n=>t===``&&n.id!==e||n.id===e&&n.text===t?n:{id:e,text:t})}}),t[6]=u):u=t[6];let[d]=y(u),p;t[7]!==r||t[8]!==o?(p=i(r,o),t[7]=r,t[8]=o,t[9]=p):p=t[9];let m=`${o}-items`,h;t[10]!==n||t[11]!==m?(h=/* @__PURE__ */ C(`div`,{"data-slot":m,className:`contents`,children:n}),t[10]=n,t[11]=m,t[12]=h):h=t[12];let g;t[13]!==d||t[14]!==h?(g=/* @__PURE__ */ C(Un.Provider,{value:d,children:h}),t[13]=d,t[14]=h,t[15]=g):g=t[15];let _;t[16]===c.text?_=t[17]:(_=/* @__PURE__ */ C(`span`,{role:`status`,"aria-live":`polite`,className:`sr-only`,children:c.text}),t[16]=c.text,t[17]=_);let v;return t[18]!==a||t[19]!==p||t[20]!==g||t[21]!==_?(v=/* @__PURE__ */ w(`div`,{"data-slot":p,...a,children:[g,_]}),t[18]=a,t[19]=p,t[20]=g,t[21]=_,t[22]=v):v=t[22],v},Gn=(e,t,n)=>{let r=f(12),i=F(e);x(i.kind===t,()=>`${e} cannot be composed inside ${i.componentName}.Root — compose ${i.componentName} series parts instead.`);let{dataKey:a,label:o,color:s,curve:c,markers:l,connectNulls:u,shape:d,texture:p}=n,m=c===void 0?`linear`:c,h=l!==void 0&&l,g=u!==void 0&&u,v=d===void 0?`circle`:d,y=p===void 0?`solid`:p,b,S;return r[0]!==s||r[1]!==g||r[2]!==i.store||r[3]!==m||r[4]!==a||r[5]!==o||r[6]!==t||r[7]!==h||r[8]!==v||r[9]!==y?(b=()=>i.store.registerSeries({dataKey:a,label:o??a,color:s,mark:t,curve:m,markers:h,connectNulls:g,shape:v,texture:y}),S=[i.store,a,o,s,t,m,h,g,v,y],r[0]=s,r[1]=g,r[2]=i.store,r[3]=m,r[4]=a,r[5]=o,r[6]=t,r[7]=h,r[8]=v,r[9]=y,r[10]=b,r[11]=S):(b=r[10],S=r[11]),_(b,S),null},Kn=(e,t)=>{let n=f(4),r=F(e),{lines:i}=t,a,o;return n[0]!==r.store||n[1]!==i?(a=()=>r.store.registerGrid(i),o=[r.store,i],n[0]=r.store,n[1]=i,n[2]=a,n[3]=o):(a=n[2],o=n[3]),_(a,o),null},qn=(e,t)=>{let n=f(5),r=F(e),{tickFormat:i,tickCount:a}=t,o,s;return n[0]!==r.store||n[1]!==a||n[2]!==i?(o=()=>r.store.registerXAxis({tickFormat:i,tickCount:a}),s=[r.store,i,a],n[0]=r.store,n[1]=a,n[2]=i,n[3]=o,n[4]=s):(o=n[3],s=n[4]),_(o,s),null},Jn=(e,t)=>{let n=f(5),r=F(e),{tickFormat:i,tickCount:a}=t,o,s;return n[0]!==r.store||n[1]!==a||n[2]!==i?(o=()=>r.store.registerYAxis({tickFormat:i,tickCount:a}),s=[r.store,i,a],n[0]=r.store,n[1]=a,n[2]=i,n[3]=o,n[4]=s):(o=n[3],s=n[4]),_(o,s),null},Yn=(e,t)=>{let n=f(7),r=F(e),i=g(),{y:a,label:o,color:s}=t,c,l;return n[0]!==s||n[1]!==r.store||n[2]!==i||n[3]!==o||n[4]!==a?(c=()=>r.store.registerReferenceLine(i,{y:a,label:o,color:s}),l=[r.store,i,a,o,s],n[0]=s,n[1]=r.store,n[2]=i,n[3]=o,n[4]=a,n[5]=c,n[6]=l):(c=n[5],l=n[6]),_(c,l),null},Xn=/* @__PURE__ */ new Map;let Zn=!1,Qn=!1;const $n=e=>typeof e==`object`&&!!e&&`yield`in e&&typeof Reflect.get(e,`yield`)==`function`,er=()=>{let e=Reflect.get(globalThis,`scheduler`);return $n(e)?e.yield():new Promise(e=>{if(typeof MessageChannel<`u`){let t=new MessageChannel;t.port1.addEventListener(`message`,()=>{t.port1.close(),e()},{once:!0}),t.port1.start(),t.port2.postMessage(null)}else setTimeout(e,0)})},tr=(e,t)=>{let n=e.ownerDocument.defaultView;return t==null||n==null||t.bottom>0&&t.top<n.innerHeight&&t.right>0&&t.left<n.innerWidth},nr=()=>{Qn=!1;let e=performance.now(),t=[...Xn.entries()].toSorted(([,e],[,t])=>Number(t.onScreen)-Number(e.onScreen)||e.top-t.top);try{for(let[n,r]of t)if(Xn.get(n)===r&&(Xn.delete(n),r.run(r.rect),Xn.size>0&&performance.now()-e>=4))break}finally{Xn.size>0&&!Zn&&(Zn=!0,rr())}},rr=async()=>{await er(),Zn=!1;try{nr()}catch(e){reportError(e)}},ir=(e,t)=>{Xn.set(e,{run:t.run,rect:t.rect,onScreen:tr(e,t.rect),top:t.rect?.top??0}),Qn=!0},ar=e=>{let t=Xn.get(e);t!=null&&!t.onScreen&&(t.onScreen=!0,Qn=!0)},or=e=>{Xn.delete(e)},sr=()=>{Xn.size!==0&&Qn&&nr()},cr=e=>typeof e==`string`||typeof e==`number`||e instanceof Date?e:String(e),lr=({raw:e,epoch:t,isTime:n})=>e instanceof Date?e:n?new Date(t):null,ur=(e,t,n)=>{let r=!1;if(n===`band`||n===`point`){let n=null,i=null;for(let a of e){let e=cr(D(a,t));e instanceof Date&&Oe(e)&&(r=!0),n??=e,i=e}return{count:e.length,first:n,last:i,hasTimeOfDay:r}}let i=n===`time`,a=0,o=1/0,s=-1/0;for(let n of e){let e=D(n,t),c=O(e,i);if(Number.isFinite(c)){if(!r){let t=lr({raw:e,epoch:c,isTime:i});t!=null&&Oe(t)&&(r=!0)}a+=1,o=Math.min(o,c),s=Math.max(s,c)}}return a===0?{count:a,first:null,last:null,hasTimeOfDay:r}:{count:a,first:i?new Date(o):o,last:i?new Date(s):s,hasTimeOfDay:r}},dr={line:`Line chart`,bar:`Bar chart`,area:`Area chart`,scatter:`Scatter plot`},fr=(e,t)=>e===`bar`?t?`category`:`categories`:t?`data point`:`data points`,pr=e=>e.length>0?` Series: ${e.join(`, `)}.`:``,mr=({kind:e,summary:t,hydrated:n})=>{let r;if(t.count===0)r=`${dr[e]} with no data.`;else{let i=t.count===1,a=fr(e,i),o=n?Y(t.count):String(t.count),s=``;if(n&&t.first!=null&&t.last!=null){let e={datasetHasTimeOfDay:t.hasTimeOfDay};s=i?` at ${ke(t.first,e)}`:` from ${ke(t.first,e)} to ${ke(t.last,e)}`}r=`${dr[e]} with ${o} ${a}${s}.`}return{sentence:r,instructions:` Use the left and right arrow keys to move between data points, Page Up and Page Down to jump by a tenth of the data, Home and End to jump to the first and last, Enter or Space to activate the current point, and Escape to dismiss the readout.`}},hr=`var(--color-chart-decorative)`,gr={grid:`var(--border-color-card-muted)`,baseline:`var(--border-color-card)`,tickText:`var(--text-color-muted)`,reference:`var(--color-neutral-500)`,surface:`var(--background-color-card)`},_r=e=>u(e)?`var(--color-chart-${e})`:e;var vr=class{#e=/* @__PURE__ */ new Set;#t={series:[],hover:null,grid:null,xAxis:null,yAxis:null,referenceLines:[],tooltip:null,orientation:`vertical`};#n=/* @__PURE__ */ new Map;#r=null;#i=/* @__PURE__ */ new Map;#a=0;#o=null;#s=!1;#c=`vertical`;#l=null;#u=null;#d=/* @__PURE__ */ new Map;#f=/* @__PURE__ */ new Map;#p=null;#m=null;#h=!1;get hoverEver(){return this.#h}onSeriesChange=null;onPresentationChange=null;subscribe=e=>(this.#e.add(e),()=>{this.#e.delete(e)});getSnapshot=()=>this.#t;seriesSpecs(){return this.#r??=[...this.#n.values()].toSorted((e,t)=>e.sequence-t.sequence).map(e=>e.spec),this.#r}seriesShape(e){return this.#n.get(e)?.spec.shape??`circle`}registerSeries(e){let t=this.#i.get(e.dataKey)??this.#a++;return this.#i.set(e.dataKey,t),this.#n.set(e.dataKey,{spec:e,sequence:t}),this.#r=null,this.#g(`series`),()=>{this.#n.get(e.dataKey)?.spec===e&&(this.#n.delete(e.dataKey),this.#r=null,this.#g(`series`))}}setDecorative(e){this.#s!==e&&(this.#s=e,this.#g(`series`))}setOrientation(e){this.#c!==e&&(this.#c=e,this.#g())}registerGrid(e){let t={lines:e};return this.#o=t,this.#g(),()=>{this.#o===t&&(this.#o=null,this.#g())}}registerXAxis(e){return this.#l=e,this.#g(),()=>{this.#l===e&&(this.#l=null,this.#g())}}registerYAxis(e){return this.#u=e,this.#g(),()=>{this.#u===e&&(this.#u=null,this.#g())}}registerReferenceLine(e,t){let n=this.#f.get(e)??this.#a++;return this.#f.set(e,n),this.#d.set(e,{spec:t,sequence:n}),this.#g(),()=>{this.#d.get(e)?.spec===t&&(this.#d.delete(e),this.#g())}}registerTooltip(e){return this.#p=e,this.#g(`tooltip`),()=>{this.#p===e&&(this.#p=null,this.#g(`tooltip`))}}publishHover(e){this.#m!==e&&(this.#m=e,e!=null&&(this.#h=!0),this.#t={...this.#t,hover:e},this.#_())}seriesMeta(){return this.seriesSpecs().map(e=>{let t=this.#s?hr:_r(e.color),n=this.#s?hr:e.color;return{dataKey:e.dataKey,label:e.label,mark:e.mark,color:t,colorInput:n,shape:e.shape,texture:e.texture}})}#g(e=`presentation`){this.#t={series:e===`series`?this.seriesMeta():this.#t.series,hover:this.#m,grid:this.#o,xAxis:this.#l,yAxis:this.#u,referenceLines:[...this.#d.values()].toSorted((e,t)=>e.sequence-t.sequence).map(e=>e.spec),tooltip:this.#p,orientation:this.#c},this.#_(),e===`series`?this.onSeriesChange?.():e===`presentation`&&this.onPresentationChange?.()}#_(){for(let e of this.#e)e()}};const yr=`100%`,br=`300%`,xr=[`near`,`far`],Sr=/* @__PURE__ */ new WeakMap,Cr=/* @__PURE__ */ new WeakMap,wr=/* @__PURE__ */ new WeakMap;let Tr=null;const Er=()=>{if(Tr==null){let e=new IntersectionObserver(()=>{},{scrollMargin:`0px`});Tr=`scrollMargin`in e,e.disconnect()}return Tr},Dr=/auto|scroll/,Or=e=>{let t=e.ownerDocument,n=t.defaultView;if(n==null)return null;for(let r=e.parentElement;r!=null&&r!==t.documentElement&&r!==t.body;r=r.parentElement)if(Dr.test(n.getComputedStyle(r).overflowY))return r;return null},kr=(e,t,n)=>new IntersectionObserver(t=>{for(let n of t)wr.get(n.target)?.({band:e,inView:n.isIntersecting,rect:n.boundingClientRect});sr()},{root:n,rootMargin:Er()?`0px`:t,scrollMargin:t,threshold:0}),Ar=e=>{let t=Sr.get(e);return t??(t={near:kr(`near`,yr,null),far:kr(`far`,br,null),visible:kr(`visible`,`0px`,null),count:0},Sr.set(e,t)),t.count+=1,t},jr=(e,t)=>{--t.count,t.count>0||(t.near.disconnect(),t.far.disconnect(),t.visible.disconnect(),Sr.get(e)===t&&Sr.delete(e))},Mr=(e,t)=>{let n=Cr.get(e);if(n!=null)return n;let r={near:kr(`near`,yr,e),far:kr(`far`,br,e),open:{near:!1,far:!1},elements:{near:/* @__PURE__ */ new Set,far:/* @__PURE__ */ new Set}};return wr.set(e,({band:e,inView:t})=>{if(e!==`visible`&&r.open[e]!==t){r.open[e]=t;for(let n of r.elements[e])t?r[e].observe(n):(r[e].unobserve(n),wr.get(n)?.({band:e,inView:!1,rect:null}))}}),t.near.observe(e),t.far.observe(e),t.count+=1,Cr.set(e,r),r},Nr=(e,t,n,r)=>{t.elements.near.size>0||(t.near.disconnect(),t.far.disconnect(),n.near.unobserve(e),n.far.unobserve(e),wr.delete(e),Cr.get(e)===t&&Cr.delete(e),jr(r,n))},Pr=(e,{onChange:t,far:n=!0})=>{if(typeof IntersectionObserver>`u`)return t({band:`near`,inView:!0,rect:null}),n&&t({band:`far`,inView:!0,rect:null}),t({band:`visible`,inView:!0,rect:null}),sr(),()=>{or(e)};let r=e.ownerDocument,i=Ar(r);wr.set(e,t),i.visible.observe(e);let a=Er()?null:Or(e);if(a==null)return i.near.observe(e),n&&i.far.observe(e),()=>{wr.get(e)===t&&(wr.delete(e),or(e),i.near.unobserve(e),i.far.unobserve(e),i.visible.unobserve(e),jr(r,i))};let o=Mr(a,i);for(let t of xr)(t!==`far`||n)&&(o.elements[t].add(e),o.open[t]&&o[t].observe(e));return()=>{if(wr.get(e)===t){wr.delete(e),or(e);for(let t of xr)o.elements[t].delete(e),o[t].unobserve(e);i.visible.unobserve(e),jr(r,i),Nr(a,o,i,r)}}},Fr=e=>{let t=e.getSnapshot().hover;return t?.viaKeyboard===!0?t:null},Ir=e=>Fr(e)?.index??null,Lr=e=>{let t=f(12),{store:n,xHasTimeOfDay:r,announce:i}=e,a,o;t[0]===n?(a=t[1],o=t[2]):(a=()=>Ir(n),o=()=>Ir(n),t[0]=n,t[1]=a,t[2]=o);let s=b(n.subscribe,a,o),c;t[3]!==i||t[4]!==n||t[5]!==r?(c=e=>{i(e==null?``:Hr(e,{xHasTimeOfDay:r,tooltip:n.getSnapshot().tooltip}))},t[3]=i,t[4]=n,t[5]=r,t[6]=c):c=t[6];let l=d(c),u,p;t[7]!==s||t[8]!==n||t[9]!==l?(u=()=>{if(l(null),s==null)return;let e=setTimeout(()=>l(Fr(n)),Br);return()=>clearTimeout(e)},p=[s,n,l],t[7]=s,t[8]=n,t[9]=l,t[10]=u,t[11]=p):(u=t[10],p=t[11]),h(u,p)},Rr=t=>{let n=f(17),{id:r,kind:i,slotName:a,seriesRef:o,summary:s,instructions:c}=t,l=e(),u;n[0]!==l||n[1]!==i||n[2]!==s?(u=mr({kind:i,summary:s,hydrated:l}),n[0]=l,n[1]=i,n[2]=s,n[3]=u):u=n[3];let d=u,p=`${a}-description`,m;n[4]===d.sentence?m=n[5]:(m=/* @__PURE__ */ C(`span`,{children:d.sentence}),n[4]=d.sentence,n[5]=m);let h;n[6]===o?h=n[7]:(h=/* @__PURE__ */ C(`span`,{ref:o}),n[6]=o,n[7]=h);let g;n[8]!==c||n[9]!==d.instructions?(g=c&&/* @__PURE__ */ C(`span`,{children:d.instructions}),n[8]=c,n[9]=d.instructions,n[10]=g):g=n[10];let _;return n[11]!==r||n[12]!==p||n[13]!==m||n[14]!==h||n[15]!==g?(_=/* @__PURE__ */ w(`span`,{id:r,"data-slot":p,className:`sr-only`,children:[m,h,g]}),n[11]=r,n[12]=p,n[13]=m,n[14]=h,n[15]=g,n[16]=_):_=n[16],_},zr=e=>{let t=f(5),{store:n,xHasTimeOfDay:r}=e,[i,a]=y(``),o;t[0]!==n||t[1]!==r?(o={store:n,xHasTimeOfDay:r,announce:a},t[0]=n,t[1]=r,t[2]=o):o=t[2],Lr(o);let s;return t[3]===i?s=t[4]:(s=/* @__PURE__ */ C(`span`,{role:`status`,"aria-live":`polite`,className:`sr-only`,children:i}),t[3]=i,t[4]=s),s},Br=120,Vr=e=>typeof e==`string`?e:typeof e==`number`?String(e):null,Hr=(e,{xHasTimeOfDay:t,tooltip:n})=>{let r=(e,t)=>Vr(n?.valueFormat?.(e,t))??Y(e);return`${Vr(n?.labelFormat?.(e.xValue))??ke(e.xValue,{datasetHasTimeOfDay:t})}. ${[...e.total==null?[]:[`Total: ${r(e.total,`total`)}`],...e.points.map(e=>`${e.label}: ${e.value==null?`no data`:r(e.value,e.dataKey)}`)].join(`, `)}${e.zValue===void 0?``:`, z: ${e.zValue==null?`no data`:Y(e.zValue)}`}`},Ur=e=>{let t=f(11),{id:n,list:r,store:i,xHasTimeOfDay:a}=e,o,s;t[0]!==n||t[1]!==r?(o=()=>()=>r.announce(n,``),s=[n,r],t[0]=n,t[1]=r,t[2]=o,t[3]=s):(o=t[2],s=t[3]),h(o,s);let c;t[4]!==n||t[5]!==r?(c=e=>r.announce(n,e),t[4]=n,t[5]=r,t[6]=c):c=t[6];let l;return t[7]!==i||t[8]!==c||t[9]!==a?(l={store:i,xHasTimeOfDay:a,announce:c},t[7]=i,t[8]=c,t[9]=a,t[10]=l):l=t[10],Lr(l),null};function Wr(){return()=>{}}const Gr=(e,t)=>{let n=f(2),r;n[0]===t?r=n[1]:(r=()=>qr(t),n[0]=t,n[1]=r);let i=b(Wr,r,Qr);return e??i},Kr=`[data-slot$="-chart-data-table"]`;function qr(e){if(e!=null)return e.split(/\s+/).map(e=>Jr(document.getElementById(e))).filter(Boolean).join(` `)||void 0}function Jr(e){if(e==null)return``;if(e.querySelector(Kr)==null)return e.textContent?.trim()??``;let t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,{acceptNode:e=>e instanceof Element?e.matches(Kr)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}),n=``;for(let e=t.nextNode();e!=null;e=t.nextNode())n+=e.textContent??``;return n.trim()}const Yr=e=>e==null||typeof e==`number`&&!Number.isFinite(e),Xr=(e,{xScale:t,xHasTimeOfDay:n})=>{let r=t===`time`?new Date(O(e,!0)):e;return r instanceof Date?{text:ke(r,{datasetHasTimeOfDay:n}),date:Number.isNaN(r.getTime())?null:r}:t===`linear`&&Yr(r)?{text:`—`,date:null}:{text:typeof r==`number`?Y(r):String(r),date:null}},Zr=e=>{let t=f(41),{data:n,label:r,labelledBy:i,slotName:a,store:o,xHasTimeOfDay:s,xKey:c,xScale:l,zKey:u}=e,d=ie(o),p=Gr(r,i);if(n.length===0||d.length===0)return null;let m,h,g,_,v;if(t[0]!==n||t[1]!==p||t[2]!==d||t[3]!==a||t[4]!==s||t[5]!==c||t[6]!==l||t[7]!==u){let e=n.slice(0,150);_=`sr-only`,v=`${a}-data-table`;let r=`${p==null?`Chart data`:`${p} — chart data`}${n.length>150?`. Showing the first 150 of ${n.length} rows.`:`.`}`;t[13]===r?h=t[14]:(h=/* @__PURE__ */ C(`caption`,{children:r}),t[13]=r,t[14]=h);let i;t[15]===c?i=t[16]:(i=/* @__PURE__ */ C(`th`,{scope:`col`,children:c}),t[15]=c,t[16]=i);let o;t[17]===d?o=t[18]:(o=d.map($r),t[17]=d,t[18]=o);let f;t[19]===u?f=t[20]:(f=u!=null&&/* @__PURE__ */ C(`th`,{scope:`col`,children:u}),t[19]=u,t[20]=f),t[21]!==i||t[22]!==o||t[23]!==f?(g=/* @__PURE__ */ C(`thead`,{children:/* @__PURE__ */ w(`tr`,{children:[i,o,f]})}),t[21]=i,t[22]=o,t[23]=f,t[24]=g):g=t[24];let y;t[25]!==d||t[26]!==s||t[27]!==c||t[28]!==l||t[29]!==u?(y=(e,t)=>{let n=D(e,c),r=Xr(n,{xScale:l,xHasTimeOfDay:s});return/* @__PURE__ */ w(`tr`,{children:[/* @__PURE__ */ C(`th`,{scope:`row`,"data-value":typeof n==`number`&&Number.isFinite(n)?n:void 0,children:r.date==null?r.text:/* @__PURE__ */ C(`time`,{dateTime:r.date.toISOString(),children:r.text})}),d.map(t=>{let n=D(e,t.dataKey),r=typeof n==`number`&&Number.isFinite(n);return/* @__PURE__ */ C(`td`,{"data-value":r?n:void 0,children:r?Y(n):`—`},t.dataKey)}),u!=null&&(()=>{let t=D(e,u),n=typeof t==`number`&&Number.isFinite(t);return/* @__PURE__ */ C(`td`,{"data-value":n?t:void 0,children:n?Y(t):`—`})})()]},t)},t[25]=d,t[26]=s,t[27]=c,t[28]=l,t[29]=u,t[30]=y):y=t[30],m=e.map(y),t[0]=n,t[1]=p,t[2]=d,t[3]=a,t[4]=s,t[5]=c,t[6]=l,t[7]=u,t[8]=m,t[9]=h,t[10]=g,t[11]=_,t[12]=v}else m=t[8],h=t[9],g=t[10],_=t[11],v=t[12];let y;t[31]===m?y=t[32]:(y=/* @__PURE__ */ C(`tbody`,{children:m}),t[31]=m,t[32]=y);let b;t[33]!==h||t[34]!==g||t[35]!==y?(b=/* @__PURE__ */ w(`table`,{children:[h,g,y]}),t[33]=h,t[34]=g,t[35]=y,t[36]=b):b=t[36];let x;return t[37]!==_||t[38]!==v||t[39]!==b?(x=/* @__PURE__ */ C(`div`,{className:_,"data-slot":v,children:b}),t[37]=_,t[38]=v,t[39]=b,t[40]=x):x=t[40],x};function Qr(){}function $r(e){return/* @__PURE__ */ C(`th`,{scope:`col`,children:e.label},e.dataKey)}const ei=e=>{let t=f(9),n,r;t[0]===e?(n=t[1],r=t[2]):(n=()=>e.getSnapshot().hover,r=()=>e.getSnapshot().hover,t[0]=e,t[1]=n,t[2]=r);let i=b(e.subscribe,n,r),a,o;t[3]===e?(a=t[4],o=t[5]):(a=()=>e.getSnapshot().tooltip,o=()=>e.getSnapshot().tooltip,t[3]=e,t[4]=a,t[5]=o);let s=b(e.subscribe,a,o),c;return t[6]!==s||t[7]!==i?(c={hover:i,config:s},t[6]=s,t[7]=i,t[8]=c):c=t[8],c},ti=(e,t)=>{let n=f(16),r=F(e),i,a,o,s,c,l;n[0]===t?(i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6]):({labelFormat:s,valueFormat:l,indicator:c,footer:o,children:i,...a}=t,n[0]=t,n[1]=i,n[2]=a,n[3]=o,n[4]=s,n[5]=c,n[6]=l);let u=c===void 0?`line`:c,d=oe(a),p,m;return n[7]!==i||n[8]!==r.store||n[9]!==o||n[10]!==u||n[11]!==s||n[12]!==d||n[13]!==l?(p=()=>r.store.registerTooltip({labelFormat:s,valueFormat:l,indicator:u,footer:o,children:i,divProps:d}),m=[r.store,s,l,u,o,i,d],n[7]=i,n[8]=r.store,n[9]=o,n[10]=u,n[11]=s,n[12]=d,n[13]=l,n[14]=p,n[15]=m):(p=n[14],m=n[15]),_(p,m),null},ni=(e,t,n)=>e==null?`—`:n==null?Y(e):n(e,t),ri=e=>{let i=f(26),{slotName:a,store:o,tooltipRef:s,xHasTimeOfDay:c}=e,{hover:l,config:u}=ei(o),d;i[0]===u?.divProps?d=i[1]:(d=u?.divProps??{},i[0]=u?.divProps,i[1]=d);let p,m,h,g;i[2]===d?(p=i[3],m=i[4],h=i[5],g=i[6]):({className:p,ref:m,style:g,...h}=d,i[2]=d,i[3]=p,i[4]=m,i[5]=h,i[6]=g);let y=v(null),b=t(s,y),x,S;i[7]===m?(x=i[8],S=i[9]):(x=()=>{if(m==null)return;let e=n(m),t=e(y.current);return()=>{typeof t==`function`?t():e(null)}},S=[m],i[7]=m,i[8]=x,i[9]=S),_(x,S);let w=`${a}-tooltip`,T;i[10]===p?T=i[11]:(T=r(`bg-popover border-popover text-strong pointer-events-none absolute left-0 top-0 z-10 min-w-32 rounded-md border px-2.5 py-1.5 text-xs shadow-md`,p),i[10]=p,i[11]=T);let E;i[12]===g?E=i[13]:(E={opacity:0,...g},i[12]=g,i[13]=E);let D=E,O;i[14]!==u||i[15]!==l||i[16]!==a||i[17]!==c?(O=l!=null&&/* @__PURE__ */ C(ii,{slotName:a,config:u,hover:l,xHasTimeOfDay:c}),i[14]=u,i[15]=l,i[16]=a,i[17]=c,i[18]=O):O=i[18];let k;return i[19]!==b||i[20]!==h||i[21]!==w||i[22]!==T||i[23]!==D||i[24]!==O?(k=/* @__PURE__ */ C(`div`,{"data-slot":w,ref:b,className:T,style:D,...h,children:O}),i[19]=b,i[20]=h,i[21]=w,i[22]=T,i[23]=D,i[24]=O,i[25]=k):k=i[25],k},ii=e=>{let t=f(35),{slotName:n,config:r,hover:i,xHasTimeOfDay:a}=e;if(r?.children!=null){let e=`${n}-tooltip-label`,a;t[0]!==r||t[1]!==i?(a=r.children(i),t[0]=r,t[1]=i,t[2]=a):a=t[2];let o;return t[3]!==e||t[4]!==a?(o=/* @__PURE__ */ C(`div`,{"data-slot":e,className:`contents`,children:a}),t[3]=e,t[4]=a,t[5]=o):o=t[5],o}let o=r?.footer,s;t[6]!==r||t[7]!==i.xValue||t[8]!==a?(s=r?.labelFormat==null?ke(i.xValue,{datasetHasTimeOfDay:a}):r.labelFormat(i.xValue),t[6]=r,t[7]=i.xValue,t[8]=a,t[9]=s):s=t[9];let c;t[10]===s?c=t[11]:(c=/* @__PURE__ */ C(`div`,{className:`text-muted font-medium`,children:s}),t[10]=s,t[11]=c);let l;t[12]!==r||t[13]!==i.total?(l=i.total!==void 0&&/* @__PURE__ */ w(`div`,{className:`flex items-center gap-1.5`,children:[r?.indicator!==`none`&&/* @__PURE__ */ C(`span`,{"aria-hidden":!0,className:`invisible h-2.5 w-0.5 shrink-0`}),/* @__PURE__ */ C(`span`,{className:`text-muted`,children:`Total`}),/* @__PURE__ */ C(`span`,{className:`text-strong ml-auto pl-3 font-medium tabular-nums`,children:r?.valueFormat==null?Y(i.total):r.valueFormat(i.total,`total`)})]}),t[12]=r,t[13]=i.total,t[14]=l):l=t[14];let u;if(t[15]!==r?.indicator||t[16]!==r?.valueFormat||t[17]!==i.points){let e;t[19]!==r?.indicator||t[20]!==r?.valueFormat?(e=e=>/* @__PURE__ */ w(`div`,{className:`flex items-center gap-1.5`,children:[r?.indicator!==`none`&&/* @__PURE__ */ C(`span`,{"aria-hidden":!0,className:`forced-color-adjust-none h-2.5 w-0.5 shrink-0 rounded-full`,style:{backgroundColor:e.color}}),/* @__PURE__ */ C(`span`,{className:`text-muted`,children:e.label}),/* @__PURE__ */ C(`span`,{className:`text-strong ml-auto pl-3 font-medium tabular-nums`,children:ni(e.value,e.dataKey,r?.valueFormat)})]},e.dataKey),t[19]=r?.indicator,t[20]=r?.valueFormat,t[21]=e):e=t[21],u=i.points.map(e),t[15]=r?.indicator,t[16]=r?.valueFormat,t[17]=i.points,t[18]=u}else u=t[18];let d;t[22]!==l||t[23]!==u?(d=/* @__PURE__ */ w(`div`,{className:`mt-1 grid gap-1`,children:[l,u]}),t[22]=l,t[23]=u,t[24]=d):d=t[24];let p;t[25]===i.zValue?p=t[26]:(p=i.zValue!==void 0&&/* @__PURE__ */ w(`div`,{className:`mt-1 flex items-center gap-1.5`,children:[/* @__PURE__ */ C(`span`,{className:`text-muted`,children:`z`}),/* @__PURE__ */ C(`span`,{className:`text-strong ml-auto pl-3 font-medium tabular-nums`,children:i.zValue==null?`—`:Y(i.zValue)})]}),t[25]=i.zValue,t[26]=p);let m;t[27]!==o||t[28]!==i?(m=o!=null&&/* @__PURE__ */ C(`div`,{className:`text-muted mt-1`,children:typeof o==`function`?o(i):o}),t[27]=o,t[28]=i,t[29]=m):m=t[29];let h;return t[30]!==c||t[31]!==d||t[32]!==p||t[33]!==m?(h=/* @__PURE__ */ w(S,{children:[c,d,p,m]}),t[30]=c,t[31]=d,t[32]=p,t[33]=m,t[34]=h):h=t[34],h},ai={},oi=(e,t)=>{for(let n of e){let e=D(n,t);if(e!=null)return e instanceof Date?`time`:typeof e==`number`?`linear`:`point`}return`point`},si=[`auto`,`auto`],ci=(e,t)=>{let n=(n,r)=>{let i=e.createElement(`div`);return i.setAttribute(`data-slot`,`${t}-${n}`),i.setAttribute(`aria-hidden`,`true`),i.className=r,i};return{crosshair:n(`crosshair`,`bg-neutral-500 pointer-events-none absolute left-0 top-0 w-px opacity-0 forced-colors:bg-[Highlight]`),band:n(`hover-band`,`bg-neutral-500/10 pointer-events-none absolute left-0 top-0 rounded-sm opacity-0 forced-colors:outline forced-colors:outline-[Highlight]`),markers:n(`markers`,`pointer-events-none absolute inset-0 opacity-0`)}},li={bar:`Bar`,line:`Line`,area:`Area`,scatter:`Point`},ui=e=>{let t=f(7),{plotRef:n,engineRef:r,activateRef:i,visibilityRef:a,holdsBitmap:o}=e,s,c;t[0]!==i||t[1]!==r||t[2]!==o||t[3]!==n||t[4]!==a?(s=()=>{let e=n.current;if(e!=null)return Pr(e,{far:o,onChange:t=>{let{band:n,inView:o,rect:s}=t,c=r.current,l=a.current;n===`near`?(l.near=o,c==null?o?ir(e,{rect:s,run:e=>i.current?.(e)}):or(e):c.setInView(o||l.focused)):n===`visible`?(l.visible=o,c?.setOnScreen(o),o&&(l.seen=!0,c==null?ar(e):c.markSeen())):n===`far`&&(l.withinFar=o,!o&&!l.focused&&c?.releaseBackingStores())}})},c=[n,r,i,a,o],t[0]=i,t[1]=r,t[2]=o,t[3]=n,t[4]=a,t[5]=s,t[6]=c):(s=t[5],c=t[6]),_(s,c)},di=e=>{let t=f(5),{rootRef:n,engineRef:r,activateRef:i}=e,a,o;t[0]!==i||t[1]!==r||t[2]!==n?(a=()=>{let e=n.current?.ownerDocument.defaultView;if(e!=null)return de(e,{before:()=>{i.current?.(null),r.current?.paintForPrint()},after:()=>{r.current?.afterPrint()}})},o=[n,r,i],t[0]=i,t[1]=r,t[2]=n,t[3]=a,t[4]=o):(a=t[3],o=t[4]),_(a,o)},fi=e=>{let t=f(5),{store:n,decorative:r,targetRef:i}=e,a,o;t[0]!==r||t[1]!==n||t[2]!==i?(a=()=>{let e=i.current;if(r||e==null)return;let t=null,a=()=>{let r=pr(n.getSnapshot().series.map(mi));r!==t&&(t=r,e.textContent=r)};return a(),n.subscribe(a)},o=[n,r,i],t[0]=r,t[1]=n,t[2]=i,t[3]=a,t[4]=o):(a=t[3],o=t[4]),_(a,o)},pi=e=>{let n=f(224),a,o,s,c,l,u,d,p,h,S,T,E,D,O,k,A,ee,j,M,N,P,ne,F,ie,ae,I,L,R,z,se,B;n[0]===e?(a=n[1],o=n[2],s=n[3],c=n[4],l=n[5],u=n[6],d=n[7],p=n[8],h=n[9],S=n[10],T=n[11],E=n[12],D=n[13],O=n[14],k=n[15],A=n[16],ee=n[17],j=n[18],M=n[19],N=n[20],P=n[21],ne=n[22],F=n[23],ie=n[24],ae=n[25],I=n[26],L=n[27],R=n[28],z=n[29],se=n[30],B=n[31]):({kind:T,componentName:p,slotName:N,paintBackend:A,scatterView:M,data:h,xKey:z,xScale:se,zKey:B,dimensions:ne,yDomain:F,stacked:ie,orientation:ae,animate:o,pending:I,mode:L,activeIndex:a,onActiveIndexChange:E,onDatumActivate:O,className:d,children:u,ref:j,"data-slot":S,"aria-label":c,"aria-labelledby":l,"aria-hidden":s,tabIndex:R,onFocus:k,onBlur:D,style:P,...ee}=e,n[0]=e,n[1]=a,n[2]=o,n[3]=s,n[4]=c,n[5]=l,n[6]=u,n[7]=d,n[8]=p,n[9]=h,n[10]=S,n[11]=T,n[12]=E,n[13]=D,n[14]=O,n[15]=k,n[16]=A,n[17]=ee,n[18]=j,n[19]=M,n[20]=N,n[21]=P,n[22]=ne,n[23]=F,n[24]=ie,n[25]=ae,n[26]=I,n[27]=L,n[28]=R,n[29]=z,n[30]=se,n[31]=B);let V=ne===void 0?3:ne,ce=F===void 0?si:F,H=ie!==void 0&&ie,U=ae===void 0?`vertical`:ae,le=I!==void 0&&I,ue=L===void 0?`interactive`:L,W=ue===`interactive`,G=ue===`decorative`,de=o??ue!==`static`,[K]=y(hi),[fe,pe]=y(!1),q=v(null),me=v(!1),he=v(null),ge;n[32]===Symbol.for(`react.memo_cache_sentinel`)?(ge={near:!1,withinFar:!0,visible:null,seen:!1,focused:!1},n[32]=ge):ge=n[32];let _e=v(ge),ve=v(null),ye;n[33]===K.hoverEver?ye=n[34]:(ye=()=>K.hoverEver,n[33]=K.hoverEver,n[34]=ye);let be=b(K.subscribe,ye,gi),xe;n[35]!==h||n[36]!==T||n[37]!==z||n[38]!==se?(xe=T===`bar`?`band`:se??oi(h,z),n[35]=h,n[36]=T,n[37]=z,n[38]=se,n[39]=xe):xe=n[39];let J=xe,Se;n[40]!==h||n[41]!==J||n[42]!==z||n[43]!==B?(Se={data:h,xKey:z,xScale:J,zKey:B},n[40]=h,n[41]=J,n[42]=z,n[43]=B,n[44]=Se):Se=n[44];let Y=v(Se),Ce;n[45]!==p||n[46]!==T||n[47]!==K?(Ce=()=>({kind:T,componentName:p,store:K,engineRef:q,dataRef:Y}),n[45]=p,n[46]=T,n[47]=K,n[48]=Ce):Ce=n[48];let[we]=y(Ce),Te,Ee;n[49]!==h||n[50]!==J||n[51]!==z||n[52]!==B?(Te=()=>{Y.current={data:h,xKey:z,xScale:J,zKey:B}},Ee=[h,z,J,B],n[49]=h,n[50]=J,n[51]=z,n[52]=B,n[53]=Te,n[54]=Ee):(Te=n[53],Ee=n[54]),_(Te,Ee);let De=v(null),Oe=t(De,j),ke=v(null),Ae=v(null),je=m(Un),Me;n[55]===Symbol.for(`react.memo_cache_sentinel`)?(Me=e=>{Ae.current=e,q.current?.attachTooltip(e)},n[55]=Me):Me=n[55];let Ne=Me,Pe=g();x(T!==`scatter`||h.length===0||J!==`point`,()=>`${p}.Root requires numeric or Date x values — the "${z}" values are not numbers or dates, so they have no position on a continuous scatter axis.`);let[Fe,Ie]=ce,Le;n[56]!==h||n[57]!==J||n[58]!==z?(Le=ur(h,z,J),n[56]=h,n[57]=J,n[58]=z,n[59]=Le):Le=n[59];let Re=Le,X=Re.hasTimeOfDay,Z;n[60]!==Ie||n[61]!==Fe?(Z=[Fe,Ie],n[60]=Ie,n[61]=Fe,n[62]=Z):Z=n[62];let ze=B??null,Be;n[63]!==de||n[64]!==V||n[65]!==U||n[66]!==J||n[67]!==H||n[68]!==Z||n[69]!==ze||n[70]!==z?(Be={xKey:z,xScale:J,yDomain:Z,zKey:ze,dimensions:V,stacked:H,orientation:U,animate:de},n[63]=de,n[64]=V,n[65]=U,n[66]=J,n[67]=H,n[68]=Z,n[69]=ze,n[70]=z,n[71]=Be):Be=n[71];let Ve;n[72]===Symbol.for(`react.memo_cache_sentinel`)?(Ve={onDatumActivate:null,onActiveIndexChange:null},n[72]=Ve):Ve=n[72];let He;n[73]===Be?He=n[74]:(He={options:Be,callbacks:Ve,controlledActiveIndex:void 0},n[73]=Be,n[74]=He);let Ue=v(He),We;n[75]!==a||n[76]!==de||n[77]!==V||n[78]!==W||n[79]!==E||n[80]!==O||n[81]!==U||n[82]!==J||n[83]!==H||n[84]!==z||n[85]!==Ie||n[86]!==Fe||n[87]!==B?(We=()=>{Ue.current={options:{xKey:z,xScale:J,yDomain:[Fe,Ie],zKey:B??null,dimensions:V,stacked:H,orientation:U,animate:de},callbacks:W?{onDatumActivate:O??null,onActiveIndexChange:E??null}:{onDatumActivate:null,onActiveIndexChange:null},controlledActiveIndex:W?a:void 0}},n[75]=a,n[76]=de,n[77]=V,n[78]=W,n[79]=E,n[80]=O,n[81]=U,n[82]=J,n[83]=H,n[84]=z,n[85]=Ie,n[86]=Fe,n[87]=B,n[88]=We):We=n[88],_(We);let Ge,Ke;n[89]!==W||n[90]!==T||n[91]!==A||n[92]!==M||n[93]!==N||n[94]!==K?(Ge=()=>(he.current=e=>{let t=De.current,n=ke.current;if(q.current!=null||t==null||n==null)return;or(n);let r=e!=null&&e.width>0&&e.height>0?{width:e.width,height:e.height}:void 0,i=new _n({kind:T,store:K,backend:A,scatter:M,slotName:N,elements:{root:t,plot:n,tooltip:Ae.current},createHoverLayers:W?()=>ci(n.ownerDocument,N):void 0,inView:!1,onScreen:_e.current.visible??(e!=null&&tr(n,e)),size:r}),a=Ue.current;i.setOptions(a.options),i.setRows(Y.current.data),i.setCallbacks(a.callbacks),i.setControlledActiveIndex(a.controlledActiveIndex),q.current=i,i.flushIngest(),i.setInView(_e.current.near||_e.current.focused),_e.current.seen&&i.markSeen(),i.commitNow()},me.current&&(me.current=!1,he.current(null)),()=>{me.current=q.current!=null,he.current=null,q.current?.destroy(),q.current=null}),Ke=[T,K,N,W,A,M],n[89]=W,n[90]=T,n[91]=A,n[92]=M,n[93]=N,n[94]=K,n[95]=Ge,n[96]=Ke):(Ge=n[95],Ke=n[96]),_(Ge,Ke);let qe=A.kind===`canvas`,Je;n[97]===qe?Je=n[98]:(Je={plotRef:ke,engineRef:q,activateRef:he,visibilityRef:_e,holdsBitmap:qe},n[97]=qe,n[98]=Je),ui(Je);let Ye;n[99]===Symbol.for(`react.memo_cache_sentinel`)?(Ye={rootRef:De,engineRef:q,activateRef:he},n[99]=Ye):Ye=n[99],di(Ye);let Xe,Ze;n[100]!==de||n[101]!==G||n[102]!==V||n[103]!==U||n[104]!==J||n[105]!==H||n[106]!==K||n[107]!==z||n[108]!==Ie||n[109]!==Fe||n[110]!==B?(Xe=()=>{q.current?.setOptions({xKey:z,xScale:J,yDomain:[Fe,Ie],zKey:B??null,dimensions:V,stacked:H,orientation:U,animate:de}),K.setOrientation(U),K.setDecorative(G)},Ze=[K,G,z,J,Fe,Ie,B,V,H,U,de],n[100]=de,n[101]=G,n[102]=V,n[103]=U,n[104]=J,n[105]=H,n[106]=K,n[107]=z,n[108]=Ie,n[109]=Fe,n[110]=B,n[111]=Xe,n[112]=Ze):(Xe=n[111],Ze=n[112]),_(Xe,Ze);let Q,Qe;n[113]===h?(Q=n[114],Qe=n[115]):(Q=()=>{q.current?.setRows(h)},Qe=[h],n[113]=h,n[114]=Q,n[115]=Qe),_(Q,Qe);let $e;n[116]!==W||n[117]!==E||n[118]!==O?($e=()=>{q.current?.setCallbacks(W?{onDatumActivate:O??null,onActiveIndexChange:E??null}:{onDatumActivate:null,onActiveIndexChange:null})},n[116]=W,n[117]=E,n[118]=O,n[119]=$e):$e=n[119],_($e);let et,tt;n[120]!==a||n[121]!==W?(et=()=>{q.current?.setControlledActiveIndex(W?a:void 0)},tt=[W,a],n[120]=a,n[121]=W,n[122]=et,n[123]=tt):(et=n[122],tt=n[123]),_(et,tt);let nt=oe(P??ai),rt,it;n[124]!==d||n[125]!==nt?(rt=()=>{q.current?.setColorScope(d,nt)},it=[d,nt],n[124]=d,n[125]=nt,n[126]=rt,n[127]=it):(rt=n[126],it=n[127]),_(rt,it);let at;n[128]!==G||n[129]!==K?(at={store:K,decorative:G,targetRef:ve},n[128]=G,n[129]=K,n[130]=at):at=n[130],fi(at);let ot=v(null),st;n[131]!==p||n[132]!==h||n[133]!==T||n[134]!==J||n[135]!==K||n[136]!==z||n[137]!==B?(st=()=>{let e=q.current;if(e!=null){e.flushIngest();return}let t=K.seriesSpecs().map(_i),n=JSON.stringify([z,J,B??null,t]),r=ot.current;(r==null||r.data!==h||r.signature!==n)&&(te({rootName:`${p}.Root`,partName:`${p}.${li[T]}`,rows:h,xKey:z,xScale:J,dataKeys:t,zKey:B??null}),ot.current={data:h,signature:n})},n[131]=p,n[132]=h,n[133]=T,n[134]=J,n[135]=K,n[136]=z,n[137]=B,n[138]=st):st=n[138],_(st);let ct=fe?`engaged`:`dormant`,lt;n[139]!==S||n[140]!==N?(lt=i(S,N),n[139]=S,n[140]=N,n[141]=lt):lt=n[141];let $;n[142]===d?$=n[143]:($=r(`relative flex aspect-video w-full flex-col`,d),n[142]=d,n[143]=$);let ut=G?!0:s,dt=G?void 0:R,ft=G?!0:void 0,pt;n[144]!==W||n[145]!==k?(pt=e=>{k?.(e),W&&pe(!0),_e.current.focused=!0,he.current?.(null),q.current?.setInView(!0)},n[144]=W,n[145]=k,n[146]=pt):pt=n[146];let mt;n[147]===D?mt=n[148]:(mt=e=>{if(D?.(e),e.relatedTarget instanceof Node&&e.currentTarget.contains(e.relatedTarget))return;let t=_e.current;t.focused=!1;let n=q.current;n!=null&&(n.setInView(t.near),t.withinFar||n.releaseBackingStores())},n[147]=D,n[148]=mt);let ht=W?ct:void 0,gt=`${N}-plot`,_t=le&&`opacity-60`,vt;n[149]===_t?vt=n[150]:(vt=r(`relative min-h-0 w-full flex-1 transition-opacity duration-300 ease-out-strong motion-reduce:transition-none`,_t),n[149]=_t,n[150]=vt);let yt=ue===`static`?`img`:void 0,bt=ue===`static`?c:void 0,xt=ue===`static`?l:void 0,St=ue===`static`?Pe:void 0,Ct;n[151]!==c||n[152]!==l||n[153]!==Pe||n[154]!==W||n[155]!==T||n[156]!==B?(Ct=W&&/* @__PURE__ */ C(`div`,{role:`application`,"aria-label":c,"aria-labelledby":l,"aria-describedby":Pe,tabIndex:0,className:r(`focus-visible:ring-focus-accent absolute inset-0 rounded-sm focus:outline-hidden focus-visible:ring-2`,(T===`line`||T===`area`)&&`cursor-crosshair`,T===`scatter`&&B!=null&&`touch-none cursor-grab active:cursor-grabbing`),onPointerDown:e=>{e.button===0&&(e.isTrusted&&T===`scatter`&&B!=null&&e.currentTarget.setPointerCapture(e.pointerId),q.current??he.current?.(ke.current?.getBoundingClientRect()??null),q.current?.handlePointerDown(e.nativeEvent.offsetX,e.nativeEvent.offsetY))},onPointerMove:e=>{q.current?.handlePointerMove(e.nativeEvent.offsetX,e.nativeEvent.offsetY)},onPointerUp:e=>{q.current?.handlePointerUp(e.nativeEvent.offsetX,e.nativeEvent.offsetY,{activate:e.button===0})},onPointerLeave:()=>{q.current?.handlePointerLeave()},onPointerCancel:()=>{q.current?.handlePointerLeave()},onBlur:()=>{q.current?.handlePointerLeave()},onKeyDown:e=>{e.altKey||e.ctrlKey||e.metaKey||q.current?.handleKeyDown(e.key,{repeat:e.repeat})&&e.preventDefault()}}),n[151]=c,n[152]=l,n[153]=Pe,n[154]=W,n[155]=T,n[156]=B,n[157]=Ct):Ct=n[157];let wt;n[158]!==G||n[159]!==Pe||n[160]!==W||n[161]!==T||n[162]!==N||n[163]!==Re?(wt=!G&&/* @__PURE__ */ C(Rr,{id:Pe,kind:T,slotName:N,seriesRef:ve,summary:Re,instructions:W}),n[158]=G,n[159]=Pe,n[160]=W,n[161]=T,n[162]=N,n[163]=Re,n[164]=wt):wt=n[164];let Tt;n[165]!==W||n[166]!==N||n[167]!==K||n[168]!==be||n[169]!==X?(Tt=be&&W&&/* @__PURE__ */ C(ri,{slotName:N,store:K,tooltipRef:Ne,xHasTimeOfDay:X}),n[165]=W,n[166]=N,n[167]=K,n[168]=be,n[169]=X,n[170]=Tt):Tt=n[170];let Et;n[171]!==gt||n[172]!==vt||n[173]!==yt||n[174]!==bt||n[175]!==xt||n[176]!==St||n[177]!==Ct||n[178]!==wt||n[179]!==Tt?(Et=/* @__PURE__ */ w(`div`,{"data-slot":gt,className:vt,role:yt,"aria-label":bt,"aria-labelledby":xt,"aria-describedby":St,ref:ke,children:[Ct,wt,Tt]}),n[171]=gt,n[172]=vt,n[173]=yt,n[174]=bt,n[175]=xt,n[176]=St,n[177]=Ct,n[178]=wt,n[179]=Tt,n[180]=Et):Et=n[180];let Dt;n[181]!==W||n[182]!==je||n[183]!==K||n[184]!==X?(Dt=W&&je==null&&/* @__PURE__ */ C(zr,{store:K,xHasTimeOfDay:X}),n[181]=W,n[182]=je,n[183]=K,n[184]=X,n[185]=Dt):Dt=n[185];let Ot;n[186]!==Pe||n[187]!==W||n[188]!==je||n[189]!==K||n[190]!==X?(Ot=W&&je!=null&&/* @__PURE__ */ C(Ur,{id:Pe,list:je,store:K,xHasTimeOfDay:X}),n[186]=Pe,n[187]=W,n[188]=je,n[189]=K,n[190]=X,n[191]=Ot):Ot=n[191];let kt;n[192]!==c||n[193]!==l||n[194]!==h||n[195]!==fe||n[196]!==W||n[197]!==J||n[198]!==N||n[199]!==K||n[200]!==X||n[201]!==z||n[202]!==B?(kt=W&&fe&&/* @__PURE__ */ C(Zr,{data:h,label:c,labelledBy:l,slotName:N,store:K,xHasTimeOfDay:X,xKey:z,xScale:J,zKey:B}),n[192]=c,n[193]=l,n[194]=h,n[195]=fe,n[196]=W,n[197]=J,n[198]=N,n[199]=K,n[200]=X,n[201]=z,n[202]=B,n[203]=kt):kt=n[203];let At;n[204]!==u||n[205]!==we||n[206]!==Et||n[207]!==Dt||n[208]!==Ot||n[209]!==kt?(At=/* @__PURE__ */ w(re.Provider,{value:we,children:[Et,u,Dt,Ot,kt]}),n[204]=u,n[205]=we,n[206]=Et,n[207]=Dt,n[208]=Ot,n[209]=kt,n[210]=At):At=n[210];let jt;return n[211]!==Oe||n[212]!==ee||n[213]!==P||n[214]!==lt||n[215]!==$||n[216]!==ut||n[217]!==dt||n[218]!==ft||n[219]!==pt||n[220]!==mt||n[221]!==ht||n[222]!==At?(jt=/* @__PURE__ */ C(`div`,{"data-slot":lt,className:$,"aria-hidden":ut,tabIndex:dt,inert:ft,ref:Oe,onFocus:pt,onBlur:mt,style:P,...ee,"data-state":ht,children:At}),n[211]=Oe,n[212]=ee,n[213]=P,n[214]=lt,n[215]=$,n[216]=ut,n[217]=dt,n[218]=ft,n[219]=pt,n[220]=mt,n[221]=ht,n[222]=At,n[223]=jt):jt=n[223],jt};function mi(e){return e.label}function hi(){return new vr}function gi(){return!1}function _i(e){return e.dataKey}export{I as _,Kn as a,qn as c,Hn as d,Fn as f,Fe as g,$t as h,_r as i,Jn as l,cn as m,ti as n,Yn as o,An as p,gr as r,Gn as s,pi as t,Wn as u};
|