@graphysdk/react-renderer 2.0.0-beta.1788530029487 → 2.0.0-beta.1788536263128

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.
@@ -1,11 +1,11 @@
1
- import { a as Vr, c as oa, f as x, i as aa, l as Ur, n as Qr, o as ia, r as sa, s as Yr, t as la, u as Kr } from "./dev.utils-CzXWvwtn.js";
2
- import { ANNOTATION_TOOLTIP_MARKER_GAP as ca, AXIS_KEYS as Vt, CachedTextMeasurer as ur, DATA_LABEL_POSITIONS as da, DATA_LABEL_ROLES as ua, DEFAULT_GEOM_COLOR as zr, DEFAULT_HOVER_AFFORDANCE_COLOR as vt, GROUP_VARIABLES as ce, HeuristicTextMeasurer as ha, HoverEngine as va, InternalError as ga, LayoutCompiler as fa, POLAR_RIM_LABEL_GAP_PX as pa, RESTING_HOVER_STATE as st, TAU as hr, alignUnitFractions as jr, areAnchorsEqual as ma, areEditMenuTriggersEqual as Aa, areEndpointsComparable as vr, arePointerRegionListsEqual as ya, buildAverageLineSymbols as xa, buildCalloutHitRegions as ba, buildColumnKey as Ut, buildDataLabelsContent as wa, buildFontString as Sa, buildLayerIntroPlan as ka, buildLayerYValueFormatter as Ra, buildPinnedNumberValueFormatter as Ca, buildPolarBarArcPath as ge, buildSliceGroupKey as Qt, buildTooltipContent as Ea, compositeColor as Pa, computeArrow as Ba, computeDifferenceArrow as Ia, computeDirectLabelsLayout as Ta, computeLineBoxHeight as fe, computePanelBorderPaths as La, computePanelBorderSizes as Na, countLayerGeoms as Ma, createAreaPathGenerators as Xr, createHeadlineItemRows as qr, createLineFillAreaGenerator as Fa, createLinePathGenerator as Jr, createSegmentYReader as Da, createStableCellKeyGenerator as Ha, createStableKeyGenerator as oe, createStyleResolver as gt, findAnnotation as Oa, findPointerRegion as gr, formatHeadline as Ga, formatLegends as Wa, formatRuleValue as Va, getAestheticFromScaleAestheticKey as Ce, getAlpha as Zr, getAngleExtent as Yt, getBarRectBounds as Ke, getBoundingRect as $r, getChromeDashArray as ft, getColor as _r, getDashArray as Ee, getDifferenceArrowLabelBox as Ua, getGroup as pt, getHoverGuideLineProps as Qa, getHoverGuideRectProps as Ya, getInsetTileRect as en, getPolarHoverGuideArcProps as Ka, getRadiusExtent as mt, getRuleDashPattern as za, getShapeAnnotationStroke as ja, getSize as Xa, getStackRole as qa, getUnionExtent as Ja, getX as q, getXMax as Za, getY as te, getYMax as tn, isAnnotationMovable as $a, isDefined as rn, isFullTurnSweep as nn, isSafeUrl as Kt, orderPointerRegions as _a, paintsInDonutHole as ei, pickReadableTextColor as on, placeCallouts as ti, polarToUnit as ri, positionToAngle as ni, prepareAreaObservations as an, prepareLineObservations as sn, projectAnchorToPanel as Qe, projectRegionToPanel as zt, readAnchoredObservation as oi, resolveArrowAnnotationStyle as ai, resolveArrowColor as ii, resolveAxisLabelStyle as si, resolveBarBorderRadiusPx as ln, resolveBarBorderTreatment as ze, resolveBarCornerRadiiPx as li, resolveCalloutAnnotationStyle as ci, resolveDataLabelStyle as di, resolveDeferredAnchors as ui, resolveDifferenceArrowAnnotationStyle as hi, resolveDirectLabelStyle as vi, resolveGraphChromeStyle as cn, resolveGridLineStyle as Lt, resolveHeadlineFigure as dn, resolveHeadlineItemStyle as at, resolveHeadlinePlacement as gi, resolveHeadlineStyle as un, resolveImageAnnotationStyle as fi, resolveLegendItemStyle as pi, resolveLegendStyle as mi, resolvePanelBorderStyle as hn, resolvePolarBarCornerRadiusUnit as vn, resolveRuleLabelStyle as Ai, resolveShapeAnnotationStyle as gn, resolveTextAnnotationStyle as yi, resolveTickLabelStyle as xi, resolveTickLineStyle as bi, resolveTooltipStyle as wi, toFontSpec as K, toPanelCursor as Si, toPercent as S, toViewBoxX as fn, toViewBoxY as pn, truncateToWidth as ki } from "@graphysdk/viz-engine";
3
- import { Fragment as jt, createContext as U, memo as Z, useCallback as se, useContext as D, useEffect as F, useId as V, useMemo as A, useRef as I, useState as G, useSyncExternalStore as Ri } from "react";
4
- import { Fragment as B, jsx as s, jsxs as b } from "react/jsx-runtime";
1
+ import { a as Vr, c as oa, f as x, i as aa, l as Ur, n as Qr, o as ia, r as sa, s as Yr, t as la, u as Kr } from "./dev.utils-HBVa4Fj9.js";
2
+ import { ANNOTATION_TOOLTIP_MARKER_GAP as ca, AXIS_KEYS as Vt, CachedTextMeasurer as ur, DATA_LABEL_POSITIONS as da, DATA_LABEL_ROLES as ua, DEFAULT_GEOM_COLOR as zr, DEFAULT_HOVER_AFFORDANCE_COLOR as vt, GROUP_VARIABLES as ce, HeuristicTextMeasurer as ha, HoverEngine as va, InternalError as ga, LayoutCompiler as fa, POLAR_RIM_LABEL_GAP_PX as pa, RESTING_HOVER_STATE as st, TAU as hr, alignUnitFractions as jr, areAnchorsEqual as ma, areEditMenuTriggersEqual as Aa, areEndpointsComparable as vr, arePointerRegionListsEqual as ya, buildAverageLineSymbols as xa, buildCalloutHitRegions as ba, buildColumnKey as Ut, buildDataLabelsContent as wa, buildFontString as Sa, buildLayerIntroPlan as ka, buildLayerYValueFormatter as Ra, buildPinnedNumberValueFormatter as Ca, buildPolarBarArcPath as ge, buildSliceGroupKey as Qt, buildTooltipContent as Ea, compositeColor as Pa, computeArrow as Ba, computeDifferenceArrow as Ia, computeDirectLabelsLayout as Ta, computeLineBoxHeight as fe, computePanelBorderPaths as La, computePanelBorderSizes as Na, countLayerGeoms as Ma, createAreaPathGenerators as Xr, createHeadlineItemRows as qr, createLineFillAreaGenerator as Fa, createLinePathGenerator as Jr, createSegmentYReader as Da, createStableCellKeyGenerator as Ha, createStableKeyGenerator as oe, createStyleResolver as gt, findAnnotation as Oa, findPointerRegion as gr, formatHeadline as Ga, formatLegends as Wa, formatRuleValue as Va, getAestheticFromScaleAestheticKey as Ce, getAlpha as Zr, getAngleExtent as Yt, getBarRectBounds as Ke, getBoundingRect as $r, getChromeDashArray as ft, getColor as _r, getDashArray as Ee, getDifferenceArrowLabelBox as Ua, getGroup as pt, getHoverGuideLineProps as Qa, getHoverGuideRectProps as Ya, getInsetTileRect as en, getPolarHoverGuideArcProps as Ka, getRadiusExtent as mt, getRuleDashPattern as za, getShapeAnnotationStroke as ja, getSize as Xa, getStackRole as qa, getUnionExtent as Ja, getX as q, getXMax as Za, getY as te, getYMax as tn, isAnnotationMovable as $a, isDefined as rn, isFullTurnSweep as nn, isSafeUrl as Kt, orderPointerRegions as _a, paintsInDonutHole as ei, pickReadableTextColor as on, placeCallouts as ti, polarToUnit as ri, positionToAngle as ni, prepareAreaObservations as an, prepareLineObservations as sn, projectAnchorToPanel as Qe, projectRegionToPanel as zt, readAnchoredObservation as oi, resolveArrowAnnotationStyle as ai, resolveArrowColor as ii, resolveAxisLabelStyle as si, resolveBarBorderRadiusPx as ln, resolveBarBorderTreatment as ze, resolveBarCornerRadiiPx as li, resolveCalloutAnnotationStyle as ci, resolveDataLabelStyle as di, resolveDeferredAnchors as ui, resolveDifferenceArrowAnnotationStyle as hi, resolveDirectLabelStyle as vi, resolveGraphChromeStyle as cn, resolveGridLineStyle as Lt, resolveHeadlineFigure as dn, resolveHeadlineItemStyle as at, resolveHeadlinePlacement as gi, resolveHeadlineStyle as un, resolveImageAnnotationStyle as fi, resolveLegendItemStyle as pi, resolveLegendStyle as mi, resolvePanelBorderStyle as hn, resolvePolarBarCornerRadiusUnit as vn, resolveRuleLabelStyle as Ai, resolveShapeAnnotationStyle as gn, resolveTextAnnotationStyle as yi, resolveTickLabelStyle as xi, resolveTickLineStyle as bi, resolveTooltipStyle as wi, toFontSpec as z, toPanelCursor as Si, toPercent as k, toViewBoxX as fn, toViewBoxY as pn, truncateToWidth as ki } from "@graphysdk/viz-engine";
3
+ import { Fragment as jt, createContext as U, memo as Z, useCallback as se, useContext as D, useEffect as F, useId as V, useMemo as A, useRef as T, useState as O, useSyncExternalStore as Ri } from "react";
4
+ import { Fragment as B, jsx as s, jsxs as w } from "react/jsx-runtime";
5
5
  import { useStore as je } from "zustand";
6
6
  import { animate as ie, motion as H, useMotionValue as _, useReducedMotion as Ci, useTransform as tt } from "motion/react";
7
7
  import { interpolatePath as Ei } from "d3-interpolate-path";
8
- import { useShallow as z } from "zustand/react/shallow";
8
+ import { useShallow as j } from "zustand/react/shallow";
9
9
  import { parseFontLength as Pi, parseFontWeight as Bi, parseUnitlessLineHeight as Ii } from "@graphysdk/viz-engine/graph-config";
10
10
  import { createStore as mn } from "zustand/vanilla";
11
11
  import { createPortal as An } from "react-dom";
@@ -24,21 +24,21 @@ import './history-chords.css';var fr = Object.defineProperty, Mi = (e, t) => {
24
24
  });
25
25
  return t || fr(r, Symbol.toStringTag, { value: "Module" }), r;
26
26
  };
27
- typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "2.0.0-beta.1788530029487");
28
- var bn = U(null), j = () => {
27
+ typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "2.0.0-beta.1788536263128");
28
+ var bn = U(null), G = () => {
29
29
  const e = D(bn);
30
30
  if (!e) throw new Error("useGraph* hooks must be used inside a <GraphProvider>");
31
31
  return e;
32
32
  }, C = (e) => {
33
- const { store: t } = j();
33
+ const { store: t } = G();
34
34
  return je(t, (r) => e(r.compiled));
35
35
  };
36
- function N(e) {
37
- const { colorScheme: t } = j();
36
+ function I(e) {
37
+ const { colorScheme: t } = G();
38
38
  return A(() => gt({ colorScheme: t }).geomReaders(e), [e, t]);
39
39
  }
40
40
  var wn = (e) => {
41
- const { colorScheme: t } = j(), r = C((n) => n.layers);
41
+ const { colorScheme: t } = G(), r = C((n) => n.layers);
42
42
  return A(() => {
43
43
  const n = r.find((o) => o.id === e);
44
44
  return n === void 0 ? null : gt({ colorScheme: t }).geomReaders(n);
@@ -48,7 +48,7 @@ var wn = (e) => {
48
48
  t
49
49
  ]);
50
50
  }, Sn = () => {
51
- const { colorScheme: e } = j(), t = C((r) => r.layers);
51
+ const { colorScheme: e } = G(), t = C((r) => r.layers);
52
52
  return A(() => {
53
53
  const r = gt({ colorScheme: e });
54
54
  return (n) => {
@@ -88,8 +88,8 @@ var wn = (e) => {
88
88
  if (!e.anchored) return null;
89
89
  const n = r?.get("color", e.observation) ?? zr, o = (Zr(e.observation) ?? 1) * Hi, a = (r?.get("size", e.observation) ?? 8) / 2, i = r?.get("borderColor", e.observation, "hovered") ?? vt, l = t(e.x, e.y);
90
90
  return /* @__PURE__ */ s("circle", {
91
- cx: S(l.x),
92
- cy: S(l.y),
91
+ cx: k(l.x),
92
+ cy: k(l.y),
93
93
  r: a,
94
94
  fill: n,
95
95
  opacity: o,
@@ -118,7 +118,7 @@ var wn = (e) => {
118
118
  e,
119
119
  r
120
120
  ]), r;
121
- }, Rn = ({ shouldAnimateTransitions: e, ...t }) => e ? /* @__PURE__ */ s(Wi, { ...t }) : /* @__PURE__ */ s(Gi, { ...t }), Gi = ({ fillPath: e, linePath: t, fill: r, fillOpacity: n, stroke: o, strokeWidth: a, strokeOpacity: i, strokeDasharray: l }) => /* @__PURE__ */ b("g", { children: [/* @__PURE__ */ s("path", {
121
+ }, Rn = ({ shouldAnimateTransitions: e, ...t }) => e ? /* @__PURE__ */ s(Wi, { ...t }) : /* @__PURE__ */ s(Gi, { ...t }), Gi = ({ fillPath: e, linePath: t, fill: r, fillOpacity: n, stroke: o, strokeWidth: a, strokeOpacity: i, strokeDasharray: l }) => /* @__PURE__ */ w("g", { children: [/* @__PURE__ */ s("path", {
122
122
  d: e,
123
123
  fill: r,
124
124
  fillOpacity: n,
@@ -133,7 +133,7 @@ var wn = (e) => {
133
133
  vectorEffect: "non-scaling-stroke"
134
134
  })] }), Wi = ({ fillPath: e, linePath: t, fill: r, fillOpacity: n, stroke: o, strokeWidth: a, strokeOpacity: i, strokeDasharray: l }) => {
135
135
  const c = Dt(e, ne), u = Dt(t, ne);
136
- return /* @__PURE__ */ b("g", { children: [/* @__PURE__ */ s(H.path, {
136
+ return /* @__PURE__ */ w("g", { children: [/* @__PURE__ */ s(H.path, {
137
137
  d: c,
138
138
  fill: r,
139
139
  fillOpacity: n,
@@ -170,7 +170,7 @@ var wn = (e) => {
170
170
  }
171
171
  }, pr = 1.1, mr = 1.5, Cn = ({ intro: e, children: t }) => {
172
172
  const r = V();
173
- return /* @__PURE__ */ b(B, { children: [/* @__PURE__ */ s("clipPath", {
173
+ return /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ s("clipPath", {
174
174
  id: r,
175
175
  children: /* @__PURE__ */ s(H.rect, {
176
176
  ...Ki(e.axis),
@@ -193,23 +193,23 @@ var wn = (e) => {
193
193
  initial: { height: 0 },
194
194
  animate: { height: pr }
195
195
  }, zi = Z(function({ layer: t, coordSystem: r, shouldAnimateTransitions: n, intro: o }) {
196
- const a = o?.type === "wipe" ? o : null, { lineGenerator: i, areaGenerator: l } = A(() => Xr(r, t.params), [t.params, r]), c = N(t), u = A(() => {
196
+ const a = o?.type === "wipe" ? o : null, { lineGenerator: i, areaGenerator: l } = A(() => Xr(r, t.params), [t.params, r]), c = I(t), u = A(() => {
197
197
  const d = oe(t.data, t.mapping, t.id), v = [];
198
198
  return t.data.groupBy(ce.group).forEach((g) => {
199
199
  const h = an([...g], t.params.missingValues), f = l(h), m = i(h);
200
200
  if (!f || !m) return;
201
201
  const p = h[0];
202
202
  if (!p) return;
203
- const y = c.get("color", p), w = c.get("strokeWidth", p), k = Ee(c.get("lineType", p));
203
+ const y = c.get("color", p), b = c.get("strokeWidth", p), R = Ee(c.get("lineType", p));
204
204
  v.push({
205
205
  key: d(p),
206
206
  areaPath: f,
207
207
  linePath: m,
208
208
  color: y,
209
209
  fillOpacity: c.get("alpha", p),
210
- strokeWidth: w,
210
+ strokeWidth: b,
211
211
  strokeOpacity: c.get("strokeAlpha", p),
212
- strokeDasharray: k
212
+ strokeDasharray: R
213
213
  });
214
214
  }), v;
215
215
  }, [
@@ -255,8 +255,8 @@ var wn = (e) => {
255
255
  }), Xi = "_324dw20", Rt = 1, qi = 2, Ji = 1, Zi = 12 / 2, $i = 2.25, Pe = ({ hit: e, project: t = Xt, ...r }) => {
256
256
  const n = wn(e.layerId);
257
257
  if (!e.anchored) return null;
258
- const o = n?.get("color", e.observation) ?? zr, a = Zr(e.observation) ?? 1, i = n?.get("borderColor", e.observation, "hovered") ?? vt, l = t(e.x, e.y), c = S(l.x), u = S(l.y), d = _i(e.observation), v = d + Rt / 2 + Ji + Rt / 2;
259
- return /* @__PURE__ */ b("g", {
258
+ const o = n?.get("color", e.observation) ?? zr, a = Zr(e.observation) ?? 1, i = n?.get("borderColor", e.observation, "hovered") ?? vt, l = t(e.x, e.y), c = k(l.x), u = k(l.y), d = _i(e.observation), v = d + Rt / 2 + Ji + Rt / 2;
259
+ return /* @__PURE__ */ w("g", {
260
260
  ...r,
261
261
  className: Xi,
262
262
  children: [/* @__PURE__ */ s("circle", {
@@ -280,7 +280,7 @@ var wn = (e) => {
280
280
  const t = Xa(e);
281
281
  return rn(t) ? t / $i : Zi;
282
282
  }, es = ({ layer: e, coordSystem: t, primary: r, companions: n }) => {
283
- const o = N(e), a = pt(r.observation), i = A(() => an([...e.data.filter(ce.group, "eq", a)], e.params.missingValues), [
283
+ const o = I(e), a = pt(r.observation), i = A(() => an([...e.data.filter(ce.group, "eq", a)], e.params.missingValues), [
284
284
  e.data,
285
285
  e.params.missingValues,
286
286
  a
@@ -297,10 +297,10 @@ var wn = (e) => {
297
297
  ]);
298
298
  if (!l || !c) return null;
299
299
  const u = o.get("color", r.observation), d = o.get("alpha", r.observation), v = o.get("strokeWidth", r.observation), g = Ee(o.get("lineType", r.observation));
300
- return /* @__PURE__ */ b("g", {
300
+ return /* @__PURE__ */ w("g", {
301
301
  "data-testid": "hovered-area",
302
302
  children: [
303
- /* @__PURE__ */ b("svg", {
303
+ /* @__PURE__ */ w("svg", {
304
304
  viewBox: "0 0 1 1",
305
305
  preserveAspectRatio: "none",
306
306
  width: "100%",
@@ -364,13 +364,13 @@ var wn = (e) => {
364
364
  };
365
365
  }
366
366
  }, Ht = (e, t, r) => {
367
- const n = r === void 0 ? e.activeIntro : r, o = I(n ? Jt(n, t) : null), a = I(e.shouldAnimateTransitions);
367
+ const n = r === void 0 ? e.activeIntro : r, o = T(n ? Jt(n, t) : null), a = T(e.shouldAnimateTransitions);
368
368
  return a.current = e.shouldAnimateTransitions, se(() => {
369
369
  const i = o.current;
370
370
  return o.current = null, i ?? qt(a.current);
371
371
  }, []);
372
372
  }, At = (e, t) => {
373
- const r = I(!0);
373
+ const r = T(!0);
374
374
  F(() => {
375
375
  r.current = !1;
376
376
  }, []);
@@ -401,7 +401,7 @@ var wn = (e) => {
401
401
  width: e.width,
402
402
  height: 0
403
403
  }, rs = Z(function({ layer: t, coordSystem: r, shouldAnimateTransitions: n, intro: o }) {
404
- const a = V(), i = N(t), l = At(o?.type === "grow" && (o.growAxis === "x" || o.growAxis === "y") ? o : null, n);
404
+ const a = V(), i = I(t), l = At(o?.type === "grow" && (o.growAxis === "x" || o.growAxis === "y") ? o : null, n);
405
405
  return /* @__PURE__ */ s(B, { children: A(() => {
406
406
  const c = oe(t.data, t.mapping, t.id), u = /* @__PURE__ */ new Map();
407
407
  for (const d of t.data) {
@@ -473,7 +473,7 @@ var wn = (e) => {
473
473
  const [v] = n;
474
474
  if (!v) return null;
475
475
  const { key: g, ...h } = v;
476
- return /* @__PURE__ */ b(B, { children: [d, /* @__PURE__ */ s("g", {
476
+ return /* @__PURE__ */ w(B, { children: [d, /* @__PURE__ */ s("g", {
477
477
  clipPath: `url(#${r})`,
478
478
  children: /* @__PURE__ */ s(lt, {
479
479
  ...h,
@@ -484,7 +484,7 @@ var wn = (e) => {
484
484
  }, g)
485
485
  })] });
486
486
  }
487
- return /* @__PURE__ */ b(B, { children: [d, /* @__PURE__ */ b("g", {
487
+ return /* @__PURE__ */ w(B, { children: [d, /* @__PURE__ */ w("g", {
488
488
  clipPath: `url(#${r})`,
489
489
  children: [n.map((v) => {
490
490
  const { key: g, ...h } = v;
@@ -520,7 +520,7 @@ var wn = (e) => {
520
520
  });
521
521
  if (n.length === 1) {
522
522
  const [h] = n;
523
- return /* @__PURE__ */ b(B, { children: [g, /* @__PURE__ */ s("g", {
523
+ return /* @__PURE__ */ w(B, { children: [g, /* @__PURE__ */ s("g", {
524
524
  clipPath: `url(#${r})`,
525
525
  children: /* @__PURE__ */ s(H.rect, {
526
526
  ...v,
@@ -531,7 +531,7 @@ var wn = (e) => {
531
531
  })
532
532
  })] });
533
533
  }
534
- return /* @__PURE__ */ b(B, { children: [g, /* @__PURE__ */ b("g", {
534
+ return /* @__PURE__ */ w(B, { children: [g, /* @__PURE__ */ w("g", {
535
535
  clipPath: `url(#${r})`,
536
536
  children: [n.map((h) => {
537
537
  const { key: f, ...m } = h;
@@ -556,10 +556,10 @@ var wn = (e) => {
556
556
  const d = c ? En(i, c) : null;
557
557
  return /* @__PURE__ */ s(H.rect, {
558
558
  initial: d ? {
559
- x: S(d.x),
560
- y: S(d.y),
561
- width: S(d.width),
562
- height: S(d.height),
559
+ x: k(d.x),
560
+ y: k(d.y),
561
+ width: k(d.width),
562
+ height: k(d.height),
563
563
  opacity: i.opacity
564
564
  } : !1,
565
565
  style: { transformBox: "view-box" },
@@ -571,20 +571,20 @@ var wn = (e) => {
571
571
  stroke: o,
572
572
  strokeWidth: a,
573
573
  animate: {
574
- x: S(i.x),
575
- y: S(i.y),
576
- width: S(i.width),
577
- height: S(i.height),
574
+ x: k(i.x),
575
+ y: k(i.y),
576
+ width: k(i.width),
577
+ height: k(i.height),
578
578
  opacity: i.opacity
579
579
  }
580
580
  });
581
581
  }
582
582
  return /* @__PURE__ */ s("rect", {
583
583
  style: { transformBox: "view-box" },
584
- x: S(i.x),
585
- y: S(i.y),
586
- width: S(i.width),
587
- height: S(i.height),
584
+ x: k(i.x),
585
+ y: k(i.y),
586
+ width: k(i.width),
587
+ height: k(i.height),
588
588
  fill: i.fill,
589
589
  opacity: i.opacity,
590
590
  rx: r,
@@ -593,10 +593,10 @@ var wn = (e) => {
593
593
  strokeWidth: a
594
594
  });
595
595
  }, Ar = ({ bounds: e, radii: t, fill: r, stroke: n, strokeWidth: o, opacity: a }) => /* @__PURE__ */ s("rect", {
596
- x: S(e.x),
597
- y: S(e.y),
598
- width: S(e.width),
599
- height: S(e.height),
596
+ x: k(e.x),
597
+ y: k(e.y),
598
+ width: k(e.width),
599
+ height: k(e.height),
600
600
  rx: t.rx,
601
601
  ry: t.ry,
602
602
  fill: r,
@@ -626,17 +626,17 @@ var wn = (e) => {
626
626
  e.height,
627
627
  c
628
628
  ]), {
629
- x: tt(o, S),
630
- y: tt(a, S),
631
- width: tt(i, S),
632
- height: tt(l, S)
629
+ x: tt(o, k),
630
+ y: tt(a, k),
631
+ width: tt(i, k),
632
+ height: tt(l, k)
633
633
  };
634
634
  };
635
635
  function is(e) {
636
636
  const t = li(e);
637
637
  if (e.borderRadius !== "full") return t;
638
638
  const r = {};
639
- return t.rx !== void 0 && (r.rx = S(t.rx)), t.ry !== void 0 && (r.ry = S(t.ry)), r;
639
+ return t.rx !== void 0 && (r.rx = k(t.rx)), t.ry !== void 0 && (r.ry = k(t.ry)), r;
640
640
  }
641
641
  var ss = "_1suo8ub0", Pn = (e, t, r) => {
642
642
  const n = /* @__PURE__ */ new Map();
@@ -692,8 +692,8 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
692
692
  borderRadius: g,
693
693
  mainAxis: t,
694
694
  bounds: u
695
- }), m = ke(c, 0), p = ke(u, f), y = r.get("color", e), w = r.get("alpha", e), k = ze(v);
696
- return /* @__PURE__ */ b("g", {
695
+ }), m = ke(c, 0), p = ke(u, f), y = r.get("color", e), b = r.get("alpha", e), R = ze(v);
696
+ return /* @__PURE__ */ w("g", {
697
697
  clipPath: `url(#${a})`,
698
698
  children: [
699
699
  /* @__PURE__ */ s("clipPath", {
@@ -704,32 +704,32 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
704
704
  id: i,
705
705
  children: /* @__PURE__ */ s("path", { d: p })
706
706
  }),
707
- /* @__PURE__ */ b("g", {
707
+ /* @__PURE__ */ w("g", {
708
708
  clipPath: `url(#${i})`,
709
709
  children: [/* @__PURE__ */ s("path", {
710
710
  d: m,
711
711
  fill: y,
712
- opacity: w,
712
+ opacity: b,
713
713
  "data-testid": "highlight-bar-segment"
714
- }), d !== void 0 && /* @__PURE__ */ b(B, { children: [/* @__PURE__ */ s("path", {
714
+ }), d !== void 0 && /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ s("path", {
715
715
  d: m,
716
716
  fill: "none",
717
717
  stroke: d,
718
- strokeWidth: k.separatorWidth,
719
- opacity: w,
718
+ strokeWidth: R.separatorWidth,
719
+ opacity: b,
720
720
  "data-testid": "highlight-bar-segment-border"
721
721
  }), /* @__PURE__ */ s("path", {
722
722
  d: p,
723
723
  fill: "none",
724
724
  stroke: d,
725
- strokeWidth: k.outlineWidth,
725
+ strokeWidth: R.outlineWidth,
726
726
  opacity: h
727
727
  })] })]
728
728
  })
729
729
  ]
730
730
  });
731
731
  }, cs = ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n }) => {
732
- const o = N(t), a = A(() => Pn(t, r.mainAxis, o), [
732
+ const o = I(t), a = A(() => Pn(t, r.mainAxis, o), [
733
733
  t,
734
734
  r.mainAxis,
735
735
  o
@@ -746,7 +746,7 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
746
746
  }
747
747
  return l;
748
748
  }, Ct = 3, ds = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
749
- const o = N(e), a = V(), i = V(), l = V(), c = A(() => Pn(e, t.mainAxis, o), [
749
+ const o = I(e), a = V(), i = V(), l = V(), c = A(() => Pn(e, t.mainAxis, o), [
750
750
  e,
751
751
  t.mainAxis,
752
752
  o
@@ -756,8 +756,8 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
756
756
  borderRadius: m,
757
757
  mainAxis: t.mainAxis,
758
758
  bounds: g
759
- }), w = ke(v, 0), k = ke(g, y), R = ke(yr(v, Ct), 0), P = ke(yr(g, Ct), y > 0 ? y + Ct : 0), E = o.get("color", r.observation), L = o.get("alpha", r.observation), M = o.get("borderColor", r.observation, "hovered") ?? vt, W = ze(f);
760
- return /* @__PURE__ */ b("g", {
759
+ }), b = ke(v, 0), R = ke(g, y), S = ke(yr(v, Ct), 0), P = ke(yr(g, Ct), y > 0 ? y + Ct : 0), E = o.get("color", r.observation), N = o.get("alpha", r.observation), M = o.get("borderColor", r.observation, "hovered") ?? vt, W = ze(f);
760
+ return /* @__PURE__ */ w("g", {
761
761
  "data-testid": "hovered-bar",
762
762
  children: [
763
763
  /* @__PURE__ */ s("clipPath", {
@@ -766,18 +766,18 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
766
766
  }),
767
767
  /* @__PURE__ */ s("clipPath", {
768
768
  id: i,
769
- children: /* @__PURE__ */ s("path", { d: w })
769
+ children: /* @__PURE__ */ s("path", { d: b })
770
770
  }),
771
771
  /* @__PURE__ */ s("clipPath", {
772
772
  id: l,
773
- children: /* @__PURE__ */ s("path", { d: k })
773
+ children: /* @__PURE__ */ s("path", { d: R })
774
774
  }),
775
775
  /* @__PURE__ */ s("g", {
776
776
  className: ss,
777
777
  children: /* @__PURE__ */ s("g", {
778
778
  clipPath: `url(#${a})`,
779
779
  children: /* @__PURE__ */ s("path", {
780
- d: R,
780
+ d: S,
781
781
  fill: M,
782
782
  "data-testid": "hovered-bar-border"
783
783
  })
@@ -785,22 +785,22 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
785
785
  }),
786
786
  /* @__PURE__ */ s("g", {
787
787
  clipPath: `url(#${i})`,
788
- children: /* @__PURE__ */ b("g", {
788
+ children: /* @__PURE__ */ w("g", {
789
789
  clipPath: `url(#${l})`,
790
790
  children: [/* @__PURE__ */ s("path", {
791
- d: w,
791
+ d: b,
792
792
  fill: E,
793
- opacity: L,
793
+ opacity: N,
794
794
  "data-testid": "hovered-bar-fill"
795
- }), h !== void 0 && /* @__PURE__ */ b(B, { children: [/* @__PURE__ */ s("path", {
796
- d: w,
795
+ }), h !== void 0 && /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ s("path", {
796
+ d: b,
797
797
  fill: "none",
798
798
  stroke: h,
799
799
  strokeWidth: W.separatorWidth,
800
- opacity: L,
800
+ opacity: N,
801
801
  "data-testid": "hovered-bar-inner-border"
802
802
  }), /* @__PURE__ */ s("path", {
803
- d: k,
803
+ d: R,
804
804
  fill: "none",
805
805
  stroke: h,
806
806
  strokeWidth: W.outlineWidth,
@@ -835,14 +835,14 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
835
835
  }),
836
836
  renderHoverCompanions: () => null
837
837
  }, hs = Z(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
838
- const o = n?.type === "wipe" ? n : null, a = A(() => Jr(t.params), [t.params]), i = A(() => Fa(t.params), [t.params]), l = N(t), c = A(() => {
838
+ const o = n?.type === "wipe" ? n : null, a = A(() => Jr(t.params), [t.params]), i = A(() => Fa(t.params), [t.params]), l = I(t), c = A(() => {
839
839
  const u = oe(t.data, t.mapping, t.id), d = [];
840
840
  return t.data.groupBy(ce.group).forEach((v) => {
841
841
  const g = sn([...v], t.params.missingValues), h = a(g);
842
842
  if (!h) return;
843
843
  const f = g[0];
844
844
  if (!f) return;
845
- const m = l.get("fillAlpha", f), p = m === void 0 ? void 0 : i(g) ?? void 0, y = l.get("color", f), w = l.get("strokeWidth", f), k = Ee(l.get("lineType", f));
845
+ const m = l.get("fillAlpha", f), p = m === void 0 ? void 0 : i(g) ?? void 0, y = l.get("color", f), b = l.get("strokeWidth", f), R = Ee(l.get("lineType", f));
846
846
  d.push({
847
847
  key: u(f),
848
848
  pathData: h,
@@ -850,8 +850,8 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
850
850
  fillAlpha: m,
851
851
  color: y,
852
852
  opacity: l.get("alpha", f),
853
- strokeWidth: w,
854
- strokeDasharray: k
853
+ strokeWidth: b,
854
+ strokeDasharray: R
855
855
  });
856
856
  }), d;
857
857
  }, [
@@ -909,7 +909,7 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
909
909
  vectorEffect: "non-scaling-stroke"
910
910
  }), gs = ({ fillPath: e, fillAlpha: t, linePath: r, color: n, strokeWidth: o, opacity: a, strokeDasharray: i, shouldAnimateTransitions: l }) => {
911
911
  const c = `line_fill_gradient_${V()}`;
912
- return /* @__PURE__ */ b(B, { children: [/* @__PURE__ */ s("defs", { children: /* @__PURE__ */ b("linearGradient", {
912
+ return /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ s("defs", { children: /* @__PURE__ */ w("linearGradient", {
913
913
  id: c,
914
914
  gradientTransform: "rotate(90 0.5 0.5)",
915
915
  children: [
@@ -951,14 +951,14 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
951
951
  vectorEffect: "non-scaling-stroke"
952
952
  });
953
953
  }, ps = ({ layer: e, primary: t, companions: r }) => {
954
- const n = N(e), o = pt(t.observation), a = A(() => sn([...e.data.filter(ce.group, "eq", o)], e.params.missingValues), [
954
+ const n = I(e), o = pt(t.observation), a = A(() => sn([...e.data.filter(ce.group, "eq", o)], e.params.missingValues), [
955
955
  e.data,
956
956
  e.params.missingValues,
957
957
  o
958
958
  ]), i = A(() => Jr(e.params)(a), [e.params, a]);
959
959
  if (!i) return null;
960
960
  const l = n.get("color", t.observation), c = n.get("alpha", t.observation), u = n.get("strokeWidth", t.observation), d = Ee(n.get("lineType", t.observation));
961
- return /* @__PURE__ */ b("g", {
961
+ return /* @__PURE__ */ w("g", {
962
962
  "data-testid": "hovered-line",
963
963
  children: [
964
964
  /* @__PURE__ */ s("svg", {
@@ -1012,7 +1012,7 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
1012
1012
  }, In = ({ observation: e, project: t, styleReaders: r, animation: n, introKey: o }) => {
1013
1013
  const a = q(e), i = te(e);
1014
1014
  if (a === null || i === null) return null;
1015
- const l = t(a, i), c = S(l.x), u = S(l.y), d = r.get("size", e) / 2, v = r.get("color", e), g = r.get("alpha", e), h = r.get("borderColor", e), f = r.get("borderWidth", e), { isAnimated: m, activeIntro: p, shouldAnimateTransitions: y } = n;
1015
+ const l = t(a, i), c = k(l.x), u = k(l.y), d = r.get("size", e) / 2, v = r.get("color", e), g = r.get("alpha", e), h = r.get("borderColor", e), f = r.get("borderWidth", e), { isAnimated: m, activeIntro: p, shouldAnimateTransitions: y } = n;
1016
1016
  return m ? /* @__PURE__ */ s(H.circle, {
1017
1017
  initial: p ? {
1018
1018
  cx: c,
@@ -1040,7 +1040,7 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
1040
1040
  strokeWidth: f
1041
1041
  });
1042
1042
  }, As = Z(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
1043
- const o = N(t), a = At(n?.type === "grow" && n.growAxis === "size" ? n : null, r);
1043
+ const o = I(t), a = At(n?.type === "grow" && n.growAxis === "size" ? n : null, r);
1044
1044
  return A(() => {
1045
1045
  const i = a.activeIntro ? oe(t.data, t.mapping, t.id) : null, l = [];
1046
1046
  let c = 0;
@@ -1060,7 +1060,7 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
1060
1060
  a
1061
1061
  ]);
1062
1062
  }), xr = ({ primary: e, companions: t }) => {
1063
- const r = /* @__PURE__ */ b(B, { children: [t.map((n) => /* @__PURE__ */ s(he, { hit: n }, `companion-${n.layerId}-${n.pointIndex}`)), e ? /* @__PURE__ */ s(Pe, { hit: e }) : null] });
1063
+ const r = /* @__PURE__ */ w(B, { children: [t.map((n) => /* @__PURE__ */ s(he, { hit: n }, `companion-${n.layerId}-${n.pointIndex}`)), e ? /* @__PURE__ */ s(Pe, { hit: e }) : null] });
1064
1064
  return e ? /* @__PURE__ */ s("g", {
1065
1065
  "data-testid": "hovered-point",
1066
1066
  children: r
@@ -1086,7 +1086,7 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
1086
1086
  y: r
1087
1087
  };
1088
1088
  }
1089
- }, xs = sa.sm, O = (e, t) => `color-mix(in srgb, transparent, ${e} ${t * 100}%)`, bs = (e, t) => `hsl(from ${e} h s calc(l * ${1 - t}))`, gf = (e, t) => `hsl(from ${e} h s calc(l * ${1 + t}))`, ff = (e) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e), pf = (e) => e.length === 0 ? !1 : typeof CSS < "u" && typeof CSS.supports == "function" ? CSS.supports("color", e) : /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(e), be = (e) => `${e}px`, Tn = {
1089
+ }, xs = sa.sm, Y = (e, t) => `color-mix(in srgb, transparent, ${e} ${t * 100}%)`, bs = (e, t) => `hsl(from ${e} h s calc(l * ${1 - t}))`, gf = (e, t) => `hsl(from ${e} h s calc(l * ${1 + t}))`, ff = (e) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e), pf = (e) => e.length === 0 ? !1 : typeof CSS < "u" && typeof CSS.supports == "function" ? CSS.supports("color", e) : /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(e), be = (e) => `${e}px`, Tn = {
1090
1090
  gridLineWidth: "1px",
1091
1091
  tooltipBorderRadius: "6px",
1092
1092
  tooltipPaddingBlock: "8px",
@@ -1159,18 +1159,18 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
1159
1159
  greyGradient80: "linear-gradient(to top, #F0F0F1, #F9F9FF)"
1160
1160
  }, ks = {
1161
1161
  textPrimary: x.black,
1162
- textSecondary: O(x.textPrimary, 0.6),
1163
- textDisabled: O(x.textPrimary, 0.5),
1162
+ textSecondary: Y(x.textPrimary, 0.6),
1163
+ textDisabled: Y(x.textPrimary, 0.5),
1164
1164
  iconPrimary: "currentColor",
1165
- iconSecondary: O(x.textPrimary, 0.6),
1165
+ iconSecondary: Y(x.textPrimary, 0.6),
1166
1166
  iconStickerBackground: x.grey100,
1167
1167
  brand: x.purple50,
1168
1168
  success: x.green50,
1169
1169
  warning: x.amber50,
1170
1170
  alert: x.red50,
1171
1171
  border100: x.grey0,
1172
- border50: O(x.grey0, 0.5),
1173
- border10: O(x.grey0, 0.1),
1172
+ border50: Y(x.grey0, 0.5),
1173
+ border10: Y(x.grey0, 0.1),
1174
1174
  sunkenBackground: x.grey90,
1175
1175
  defaultBackground: x.grey100,
1176
1176
  raisedBackground: x.grey85,
@@ -1193,8 +1193,8 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
1193
1193
  tooltipBackground: x.white,
1194
1194
  tooltipBorderColor: x.border10,
1195
1195
  tooltipValueTextColor: x.textPrimary,
1196
- hoverGuideLineColor: O(x.black, 0.2),
1197
- hoverGuideFillColor: O(x.black, 0.04),
1196
+ hoverGuideLineColor: "#D5CDBA",
1197
+ hoverGuideFillColor: "#E7E1D2",
1198
1198
  heatmapEmptyTileBackground: x.grey80,
1199
1199
  annotationFrameBorderColor: x.blue60,
1200
1200
  editMenuTriggerIconColor: "#3d414c"
@@ -1287,14 +1287,14 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
1287
1287
  greyGradient80: "linear-gradient(to top, #222429, #31353f)"
1288
1288
  }, Ts = {
1289
1289
  textPrimary: x.grey0,
1290
- textSecondary: O(x.textPrimary, 0.8),
1291
- textDisabled: O(x.textPrimary, 0.5),
1290
+ textSecondary: Y(x.textPrimary, 0.8),
1291
+ textDisabled: Y(x.textPrimary, 0.5),
1292
1292
  iconPrimary: "currentColor",
1293
- iconSecondary: O(x.textPrimary, 0.6),
1293
+ iconSecondary: Y(x.textPrimary, 0.6),
1294
1294
  iconStickerBackground: x.grey70,
1295
1295
  border100: x.grey0,
1296
- border50: O(x.grey0, 0.5),
1297
- border10: O(x.grey0, 0.1),
1296
+ border50: Y(x.grey0, 0.5),
1297
+ border10: Y(x.grey0, 0.1),
1298
1298
  brand: x.purple50,
1299
1299
  success: x.green50,
1300
1300
  warning: x.amber50,
@@ -1321,8 +1321,8 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
1321
1321
  tooltipBackground: x.grey70,
1322
1322
  tooltipBorderColor: x.grey60,
1323
1323
  tooltipValueTextColor: x.textPrimary,
1324
- hoverGuideLineColor: O(x.white, 0.2),
1325
- hoverGuideFillColor: O(x.white, 0.06),
1324
+ hoverGuideLineColor: "#3B3934",
1325
+ hoverGuideFillColor: "#2B2A27",
1326
1326
  heatmapEmptyTileBackground: x.grey80,
1327
1327
  annotationFrameBorderColor: x.blue60,
1328
1328
  editMenuTriggerIconColor: x.white
@@ -1388,11 +1388,11 @@ function Fe(e, t) {
1388
1388
  var Qn = U(Fs), Ds = ({ metrics: e, children: t }) => /* @__PURE__ */ s(Qn.Provider, {
1389
1389
  value: e,
1390
1390
  children: t
1391
- }), Ie = () => D(Qn), T = () => {
1392
- const { colorScheme: e } = j(), t = C((r) => r.chrome);
1391
+ }), Ie = () => D(Qn), L = () => {
1392
+ const { colorScheme: e } = G(), t = C((r) => r.chrome);
1393
1393
  return A(() => gt({ colorScheme: e }).chromeReaders(t), [t, e]);
1394
1394
  }, Hs = (e) => {
1395
- const t = T(), r = C((n) => n.config.appearance.textScale);
1395
+ const t = L(), r = C((n) => n.config.appearance.textScale);
1396
1396
  return A(() => Ai(t, e, r), [
1397
1397
  t,
1398
1398
  e,
@@ -1447,7 +1447,7 @@ var Qn = U(Fs), Ds = ({ metrics: e, children: t }) => /* @__PURE__ */ s(Qn.Provi
1447
1447
  const t = Us();
1448
1448
  return t ? (t.style.font = e, t.getBoundingClientRect().width) : null;
1449
1449
  }, Us = () => typeof document > "u" ? null : (ae || (ae = document.createElement("span"), ae.style.position = "absolute", ae.style.visibility = "hidden", ae.style.whiteSpace = "nowrap", ae.style.left = "-9999px", ae.textContent = Yn, document.body.appendChild(ae)), ae), zn = U(null), Qs = ({ children: e, measurer: t }) => {
1450
- const [r, n] = G(null);
1450
+ const [r, n] = O(null);
1451
1451
  F(() => {
1452
1452
  if (t !== void 0) return;
1453
1453
  let a = !1;
@@ -1474,7 +1474,7 @@ var Qn = U(Fs), Ds = ({ metrics: e, children: t }) => /* @__PURE__ */ s(Qn.Provi
1474
1474
  return new ur(new ha());
1475
1475
  }
1476
1476
  }, jn = U(null), mf = jn.Provider, Ks = null, de = () => D(jn) ?? (Ks ??= Wl()), zs = "_16vokpr0", js = (e, t) => e.mapping.y !== void 0 != (t.mainAxis === "y"), Xs = (e, t) => {
1477
- const r = S(e ? 1 - t : t);
1477
+ const r = k(e ? 1 - t : t);
1478
1478
  return e ? {
1479
1479
  x1: "0%",
1480
1480
  y1: r,
@@ -1564,7 +1564,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
1564
1564
  }
1565
1565
  case "area": {
1566
1566
  const l = o / 2 - 1;
1567
- return /* @__PURE__ */ b(B, { children: [/* @__PURE__ */ s("rect", {
1567
+ return /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ s("rect", {
1568
1568
  x: 1,
1569
1569
  y: l,
1570
1570
  width: n - 2,
@@ -1614,7 +1614,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
1614
1614
  lineHeight: e.lineHeight,
1615
1615
  color: e.textColor
1616
1616
  }), ll = 11.7, Sr = 21.6, cl = "0 0 10 18", dl = "M2.48935 16.9323L9.07098 9.82964C9.51595 9.34944 9.51504 8.60728 9.0689 8.12818L2.48866 1.06172C1.85811 0.384586 0.974477 0 0.049217 0H0V18H0.0443689C0.972463 18 1.85854 17.6131 2.48935 16.9323Z", ul = ({ labelPosition: e, linePosition: t, color: r, pillWidth: n, pillHeight: o, text: a, shouldAnimateTransitions: i }) => {
1617
- const l = e === "start", c = l ? -13 : -(n - 13), u = l ? c + n - 5 : c + 5 - 12, d = l ? void 0 : `rotate(180 ${u + 12 / 2} ${o / 2})`, v = l ? "0%" : "100%", g = S(1 - t), h = /* @__PURE__ */ b("g", {
1617
+ const l = e === "start", c = l ? -13 : -(n - 13), u = l ? c + n - 5 : c + 5 - 12, d = l ? void 0 : `rotate(180 ${u + 12 / 2} ${o / 2})`, v = l ? "0%" : "100%", g = k(1 - t), h = /* @__PURE__ */ w("g", {
1618
1618
  transform: `translate(0, ${-o / 2})`,
1619
1619
  pointerEvents: "none",
1620
1620
  children: [
@@ -1661,7 +1661,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
1661
1661
  children: h
1662
1662
  });
1663
1663
  }, hl = ({ labelPosition: e, linePosition: t, color: r, pillWidth: n, pillHeight: o, text: a, shouldAnimateTransitions: i }) => {
1664
- const l = e === "start", c = l ? -13 : -(o - 13), u = S(t), d = l ? "100%" : "0%", v = /* @__PURE__ */ b("g", {
1664
+ const l = e === "start", c = l ? -13 : -(o - 13), u = k(t), d = l ? "100%" : "0%", v = /* @__PURE__ */ w("g", {
1665
1665
  transform: `translate(${-n / 2}, 0)`,
1666
1666
  pointerEvents: "none",
1667
1667
  children: [/* @__PURE__ */ s("rect", {
@@ -1690,7 +1690,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
1690
1690
  children: v
1691
1691
  });
1692
1692
  }, vl = ({ label: e, textStyle: t, textWidth: r, labelPosition: n, isHorizontalLine: o, position: a, color: i, textColor: l, symbolShape: c, symbolColor: u, shouldAnimateTransitions: d }) => {
1693
- const v = c === null ? 0 : 14, g = r + v + 10, h = Math.max(ll, fe(t)) + 10, f = /* @__PURE__ */ b(B, { children: [c !== null && u !== null && /* @__PURE__ */ s("g", {
1693
+ const v = c === null ? 0 : 14, g = r + v + 10, h = Math.max(ll, fe(t)) + 10, f = /* @__PURE__ */ w(B, { children: [c !== null && u !== null && /* @__PURE__ */ s("g", {
1694
1694
  transform: `translate(0, ${-10 / 2})`,
1695
1695
  children: /* @__PURE__ */ s(Xe, {
1696
1696
  shape: c,
@@ -1747,7 +1747,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
1747
1747
  vectorEffect: "non-scaling-stroke"
1748
1748
  });
1749
1749
  }, fl = Z(function({ layer: t, coordSystem: r, formattingLocale: n, shouldAnimateTransitions: o }) {
1750
- const a = pe(), i = de(), { guides: l, numberFormat: c, layers: u, colorScale: d } = C(z((M) => ({
1750
+ const a = pe(), i = de(), { guides: l, numberFormat: c, layers: u, colorScale: d } = C(j((M) => ({
1751
1751
  guides: M.guides,
1752
1752
  numberFormat: M.config.numberFormat,
1753
1753
  layers: M.spec.layers,
@@ -1766,22 +1766,22 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
1766
1766
  c,
1767
1767
  n,
1768
1768
  t
1769
- ]), { fonts: f } = Ie(), m = Hs(t.id), p = A(() => K(m, f.familyDefault), [m, f.familyDefault]), y = A(() => h === null ? 0 : a.measureText(h, p).width, [
1769
+ ]), { fonts: f } = Ie(), m = Hs(t.id), p = A(() => z(m, f.familyDefault), [m, f.familyDefault]), y = A(() => h === null ? 0 : a.measureText(h, p).width, [
1770
1770
  h,
1771
1771
  p,
1772
1772
  a
1773
- ]), w = N(t), k = t.data.getFirst();
1774
- if (!k) return null;
1775
- const R = w.get("color", k), P = on(R), E = js(t, r), L = E ? te(k) : q(k);
1776
- return L === null ? null : /* @__PURE__ */ b("g", {
1773
+ ]), b = I(t), R = t.data.getFirst();
1774
+ if (!R) return null;
1775
+ const S = b.get("color", R), P = on(S), E = js(t, r), N = E ? te(R) : q(R);
1776
+ return N === null ? null : /* @__PURE__ */ w("g", {
1777
1777
  "data-geom": "rule",
1778
1778
  className: zs,
1779
1779
  children: [/* @__PURE__ */ s(gl, {
1780
- strokeWidth: w.get("strokeWidth", k),
1781
- lineType: w.get("lineType", k),
1780
+ strokeWidth: b.get("strokeWidth", R),
1781
+ lineType: b.get("lineType", R),
1782
1782
  isHorizontalLine: E,
1783
- position: L,
1784
- lineColor: R,
1783
+ position: N,
1784
+ lineColor: S,
1785
1785
  shouldAnimateTransitions: o
1786
1786
  }), h !== null && /* @__PURE__ */ s(vl, {
1787
1787
  label: h,
@@ -1789,8 +1789,8 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
1789
1789
  textWidth: y,
1790
1790
  labelPosition: t.params.labelPosition,
1791
1791
  isHorizontalLine: E,
1792
- position: L,
1793
- color: R,
1792
+ position: N,
1793
+ color: S,
1794
1794
  textColor: P,
1795
1795
  symbolShape: g,
1796
1796
  symbolColor: v?.color ?? null,
@@ -1809,7 +1809,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
1809
1809
  renderHover: () => null,
1810
1810
  renderHoverCompanions: () => null
1811
1811
  }, ml = Z(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
1812
- const o = n?.type === "fade" ? n : null, a = N(t), i = A(() => {
1812
+ const o = n?.type === "fade" ? n : null, a = I(t), i = A(() => {
1813
1813
  const l = Ha(t.data, t.mapping, t.id), c = [];
1814
1814
  for (const u of t.data) {
1815
1815
  const d = en(u);
@@ -1843,25 +1843,25 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
1843
1843
  opacity: t.opacity,
1844
1844
  rx: 8,
1845
1845
  animate: {
1846
- x: S(t.x),
1847
- y: S(t.y),
1848
- width: S(t.width),
1849
- height: S(t.height)
1846
+ x: k(t.x),
1847
+ y: k(t.y),
1848
+ width: k(t.width),
1849
+ height: k(t.height)
1850
1850
  }
1851
1851
  }) : /* @__PURE__ */ s("rect", {
1852
1852
  style: { transformBox: "view-box" },
1853
- x: S(t.x),
1854
- y: S(t.y),
1855
- width: S(t.width),
1856
- height: S(t.height),
1853
+ x: k(t.x),
1854
+ y: k(t.y),
1855
+ width: k(t.width),
1856
+ height: k(t.height),
1857
1857
  fill: t.fill,
1858
1858
  opacity: t.opacity,
1859
1859
  rx: 8
1860
1860
  }), De = 2, yl = ({ layer: e, primary: t, panelRect: r }) => {
1861
- const n = N(e), o = en(t.observation);
1861
+ const n = I(e), o = en(t.observation);
1862
1862
  if (!o || !_r(t.observation)) return null;
1863
1863
  const a = n.get("color", t.observation), i = n.get("alpha", t.observation), l = n.get("borderColor", t.observation, "hovered") ?? vt, c = o.x * r.width, u = o.y * r.height, d = o.width * r.width, v = o.height * r.height;
1864
- return /* @__PURE__ */ b("g", {
1864
+ return /* @__PURE__ */ w("g", {
1865
1865
  "data-testid": "hovered-tile",
1866
1866
  children: [/* @__PURE__ */ s("rect", {
1867
1867
  x: c - De,
@@ -1872,10 +1872,10 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
1872
1872
  fill: l,
1873
1873
  "data-testid": "hovered-tile-border"
1874
1874
  }), /* @__PURE__ */ s("rect", {
1875
- x: S(o.x),
1876
- y: S(o.y),
1877
- width: S(o.width),
1878
- height: S(o.height),
1875
+ x: k(o.x),
1876
+ y: k(o.y),
1877
+ width: k(o.width),
1878
+ height: k(o.height),
1879
1879
  rx: 8,
1880
1880
  fill: a,
1881
1881
  opacity: i,
@@ -1899,7 +1899,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
1899
1899
  }),
1900
1900
  renderHoverCompanions: () => null
1901
1901
  }, dt = ({ primary: e, companions: t }) => {
1902
- const r = /* @__PURE__ */ b(B, { children: [t.map((n) => /* @__PURE__ */ s(he, {
1902
+ const r = /* @__PURE__ */ w(B, { children: [t.map((n) => /* @__PURE__ */ s(he, {
1903
1903
  hit: n,
1904
1904
  project: re
1905
1905
  }, `companion-${n.layerId}-${n.pointIndex}`)), e ? /* @__PURE__ */ s(Pe, {
@@ -1916,7 +1916,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
1916
1916
  const n = r.map((o) => `L ${o.x} ${o.y}`).join(" ");
1917
1917
  return `M ${t.x} ${t.y} ${n} Z`;
1918
1918
  }, bl = Z(function({ layer: t }) {
1919
- const r = N(t), n = A(() => {
1919
+ const r = I(t), n = A(() => {
1920
1920
  const o = oe(t.data, t.mapping, t.id), a = [];
1921
1921
  return t.data.groupBy(ce.group).forEach((i) => {
1922
1922
  const l = [...i], c = qn(l);
@@ -1945,7 +1945,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
1945
1945
  height: "100%",
1946
1946
  "data-geom": "area",
1947
1947
  className: $,
1948
- children: n.map((o) => /* @__PURE__ */ b("g", { children: [/* @__PURE__ */ s("path", {
1948
+ children: n.map((o) => /* @__PURE__ */ w("g", { children: [/* @__PURE__ */ s("path", {
1949
1949
  d: o.fillPath,
1950
1950
  fill: o.color,
1951
1951
  fillOpacity: o.fillOpacity,
@@ -1977,11 +1977,11 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
1977
1977
  outlinePath: o
1978
1978
  };
1979
1979
  }, wl = ({ layer: e, primary: t, companions: r }) => {
1980
- const n = N(e), o = pt(t.observation), a = A(() => qn([...e.data.filter(ce.group, "eq", o)]), [e.data, o]);
1980
+ const n = I(e), o = pt(t.observation), a = A(() => qn([...e.data.filter(ce.group, "eq", o)]), [e.data, o]);
1981
1981
  if (!a) return null;
1982
1982
  const i = n.get("color", t.observation), l = n.get("alpha", t.observation), c = n.get("strokeAlpha", t.observation), u = n.get("strokeWidth", t.observation);
1983
- return /* @__PURE__ */ b(B, { children: [
1984
- /* @__PURE__ */ b("svg", {
1983
+ return /* @__PURE__ */ w(B, { children: [
1984
+ /* @__PURE__ */ w("svg", {
1985
1985
  viewBox: "-1 -1 2 2",
1986
1986
  preserveAspectRatio: "xMidYMid meet",
1987
1987
  width: "100%",
@@ -2041,12 +2041,12 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
2041
2041
  strokeWidth: t,
2042
2042
  vectorEffect: "non-scaling-stroke"
2043
2043
  }), kl = Z(function({ layer: t, coordSystem: r, shouldAnimateTransitions: n, intro: o }) {
2044
- const a = V(), i = At(o?.type === "grow" && (o.growAxis === "angle" || o.growAxis === "radius") ? o : null, n), l = r.bandAxis !== "x", c = N(t), u = A(() => {
2044
+ const a = V(), i = At(o?.type === "grow" && (o.growAxis === "angle" || o.growAxis === "radius") ? o : null, n), l = r.bandAxis !== "x", c = I(t), u = A(() => {
2045
2045
  const d = oe(t.data, t.mapping, t.id), v = /* @__PURE__ */ new Map();
2046
2046
  for (const g of t.data) {
2047
2047
  const h = d(g), { startAngle: f, endAngle: m } = Yt(g), { innerRadius: p, outerRadius: y } = mt(g);
2048
2048
  if (f === null || m === null || p === null || y === null) continue;
2049
- const w = {
2049
+ const b = {
2050
2050
  key: h,
2051
2051
  startAngle: f,
2052
2052
  endAngle: m,
@@ -2054,9 +2054,9 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
2054
2054
  outerRadius: y,
2055
2055
  fill: c.get("color", g),
2056
2056
  opacity: c.get("alpha", g)
2057
- }, k = Qt(r.bandAxis, w), R = v.get(k);
2058
- R ? R.items.push(w) : v.set(k, {
2059
- items: [w],
2057
+ }, R = Qt(r.bandAxis, b), S = v.get(R);
2058
+ S ? S.items.push(b) : v.set(R, {
2059
+ items: [b],
2060
2060
  style: Be(c, g)
2061
2061
  });
2062
2062
  }
@@ -2081,26 +2081,26 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
2081
2081
  "data-geom": "bar",
2082
2082
  className: $,
2083
2083
  children: u.map((d, v) => {
2084
- const { borderColor: g, borderWidth: h, borderRadius: f, borderAlpha: m } = d.style, p = g !== void 0, y = ze(h), w = g === void 0 ? {} : Ge(g, y.separatorWidth), k = g === void 0 ? void 0 : Ge(g, y.outlineWidth), R = d.items.map((M) => {
2085
- const { key: W, ...Y } = M;
2084
+ const { borderColor: g, borderWidth: h, borderRadius: f, borderAlpha: m } = d.style, p = g !== void 0, y = ze(h), b = g === void 0 ? {} : Ge(g, y.separatorWidth), R = g === void 0 ? void 0 : Ge(g, y.outlineWidth), S = d.items.map((M) => {
2085
+ const { key: W, ...K } = M;
2086
2086
  return i.isAnimated ? /* @__PURE__ */ s(Rl, {
2087
- ...Y,
2087
+ ...K,
2088
2088
  animation: i,
2089
2089
  sweepsInOnLateMount: l,
2090
2090
  introKey: W,
2091
2091
  pathProps: {
2092
- fill: Y.fill,
2093
- opacity: Y.opacity,
2094
- ...w
2092
+ fill: K.fill,
2093
+ opacity: K.opacity,
2094
+ ...b
2095
2095
  }
2096
2096
  }, W) : /* @__PURE__ */ s("path", {
2097
- d: ge(Y) ?? void 0,
2098
- fill: Y.fill,
2099
- opacity: Y.opacity,
2100
- ...w
2097
+ d: ge(K) ?? void 0,
2098
+ fill: K.fill,
2099
+ opacity: K.opacity,
2100
+ ...b
2101
2101
  }, W);
2102
2102
  }), P = vn(f, d.union.outerRadius - d.union.innerRadius);
2103
- if (!p && P <= 0) return /* @__PURE__ */ s(jt, { children: R }, d.key);
2103
+ if (!p && P <= 0) return /* @__PURE__ */ s(jt, { children: S }, d.key);
2104
2104
  const E = `${a}${v}`;
2105
2105
  if (i.isAnimated) return /* @__PURE__ */ s("g", {
2106
2106
  clipPath: `url(#${E})`,
@@ -2111,93 +2111,93 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
2111
2111
  sweepsInOnLateMount: l,
2112
2112
  introKey: d.items[0]?.key,
2113
2113
  clipId: E,
2114
- outlineProps: k,
2114
+ outlineProps: R,
2115
2115
  outlineOpacity: m,
2116
- children: R
2116
+ children: S
2117
2117
  })
2118
2118
  }, d.key);
2119
- const L = ge({
2119
+ const N = ge({
2120
2120
  ...d.union,
2121
2121
  cornerRadius: P
2122
2122
  });
2123
- return /* @__PURE__ */ b("g", {
2123
+ return /* @__PURE__ */ w("g", {
2124
2124
  clipPath: `url(#${E})`,
2125
2125
  children: [
2126
2126
  /* @__PURE__ */ s("clipPath", {
2127
2127
  id: E,
2128
- children: /* @__PURE__ */ s("path", { d: L })
2128
+ children: /* @__PURE__ */ s("path", { d: N })
2129
2129
  }),
2130
- R,
2131
- k !== void 0 && /* @__PURE__ */ s("path", {
2132
- d: L,
2130
+ S,
2131
+ R !== void 0 && /* @__PURE__ */ s("path", {
2132
+ d: N,
2133
2133
  fill: "none",
2134
2134
  opacity: m,
2135
- ...k
2135
+ ...R
2136
2136
  })
2137
2137
  ]
2138
2138
  }, d.key);
2139
2139
  })
2140
2140
  });
2141
2141
  }), Jn = ({ startAngle: e, endAngle: t, innerRadius: r, outerRadius: n, cornerRadius: o, animation: a, sweepsInOnLateMount: i, introKey: l }) => {
2142
- const c = a.activeIntro?.growAxis === "angle" ? a.activeIntro : null, u = a.activeIntro?.growAxis === "radius" ? a.activeIntro : null, d = i && !a.isLayerEntrance, v = c?.baseline ?? (d ? hr : e), g = c?.baseline ?? (d ? hr : t), h = u ? u.baseline : r, f = u ? u.baseline : n, m = _(v), p = _(g), y = _(h), w = _(f), k = _(ge({
2142
+ const c = a.activeIntro?.growAxis === "angle" ? a.activeIntro : null, u = a.activeIntro?.growAxis === "radius" ? a.activeIntro : null, d = i && !a.isLayerEntrance, v = c?.baseline ?? (d ? hr : e), g = c?.baseline ?? (d ? hr : t), h = u ? u.baseline : r, f = u ? u.baseline : n, m = _(v), p = _(g), y = _(h), b = _(f), R = _(ge({
2143
2143
  startAngle: v,
2144
2144
  endAngle: g,
2145
2145
  innerRadius: h,
2146
2146
  outerRadius: f,
2147
2147
  cornerRadius: o
2148
- }) ?? ""), R = Ht(a, l, c);
2148
+ }) ?? ""), S = Ht(a, l, c);
2149
2149
  F(() => {
2150
- const E = R(), L = [ie(m, e, E), ie(p, t, E)];
2150
+ const E = S(), N = [ie(m, e, E), ie(p, t, E)];
2151
2151
  return () => {
2152
- for (const M of L) M.stop();
2152
+ for (const M of N) M.stop();
2153
2153
  };
2154
2154
  }, [
2155
2155
  m,
2156
2156
  p,
2157
2157
  e,
2158
2158
  t,
2159
- R
2159
+ S
2160
2160
  ]);
2161
2161
  const P = Ht(a, l, u);
2162
2162
  return F(() => {
2163
- const E = P(), L = [ie(y, r, E), ie(w, n, E)];
2163
+ const E = P(), N = [ie(y, r, E), ie(b, n, E)];
2164
2164
  return () => {
2165
- for (const M of L) M.stop();
2165
+ for (const M of N) M.stop();
2166
2166
  };
2167
2167
  }, [
2168
2168
  y,
2169
- w,
2169
+ b,
2170
2170
  r,
2171
2171
  n,
2172
2172
  P
2173
2173
  ]), F(() => {
2174
2174
  const E = () => {
2175
- k.set(ge({
2175
+ R.set(ge({
2176
2176
  startAngle: m.get(),
2177
2177
  endAngle: p.get(),
2178
2178
  innerRadius: y.get(),
2179
- outerRadius: w.get(),
2179
+ outerRadius: b.get(),
2180
2180
  cornerRadius: o
2181
2181
  }) ?? "");
2182
2182
  };
2183
2183
  E();
2184
- const L = [
2184
+ const N = [
2185
2185
  m,
2186
2186
  p,
2187
2187
  y,
2188
- w
2188
+ b
2189
2189
  ].map((M) => M.on("change", E));
2190
2190
  return () => {
2191
- for (const M of L) M();
2191
+ for (const M of N) M();
2192
2192
  };
2193
2193
  }, [
2194
2194
  m,
2195
2195
  p,
2196
2196
  y,
2197
- w,
2197
+ b,
2198
2198
  o,
2199
- k
2200
- ]), k;
2199
+ R
2200
+ ]), R;
2201
2201
  }, Rl = ({ pathProps: e, ...t }) => {
2202
2202
  const r = Jn(t);
2203
2203
  return /* @__PURE__ */ s(H.path, {
@@ -2207,7 +2207,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
2207
2207
  });
2208
2208
  }, Cl = ({ clipId: e, outlineProps: t, outlineOpacity: r, children: n, ...o }) => {
2209
2209
  const a = Jn(o);
2210
- return /* @__PURE__ */ b(B, { children: [
2210
+ return /* @__PURE__ */ w(B, { children: [
2211
2211
  /* @__PURE__ */ s("clipPath", {
2212
2212
  id: e,
2213
2213
  children: /* @__PURE__ */ s(H.path, { d: a })
@@ -2268,21 +2268,21 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
2268
2268
  outerRadius: u
2269
2269
  }, v = ge(d);
2270
2270
  if (v === void 0) return null;
2271
- const g = r.get("color", e), h = r.get("alpha", e), { borderColor: f, borderWidth: m, borderRadius: p, borderAlpha: y } = n.style, w = vn(p, n.radialSpan), k = w > 0;
2272
- if (f === void 0 && !k) return /* @__PURE__ */ s("path", {
2271
+ const g = r.get("color", e), h = r.get("alpha", e), { borderColor: f, borderWidth: m, borderRadius: p, borderAlpha: y } = n.style, b = vn(p, n.radialSpan), R = b > 0;
2272
+ if (f === void 0 && !R) return /* @__PURE__ */ s("path", {
2273
2273
  d: v,
2274
2274
  fill: g,
2275
2275
  opacity: h,
2276
2276
  "data-testid": "arc-segment"
2277
2277
  });
2278
- const R = El(qa(e), t), P = k ? ge({
2279
- ...Bl(d, R, w),
2280
- cornerRadius: w
2278
+ const S = El(qa(e), t), P = R ? ge({
2279
+ ...Bl(d, S, b),
2280
+ cornerRadius: b
2281
2281
  }) ?? v : v, E = f === void 0 ? null : {
2282
2282
  color: f,
2283
2283
  ...ze(m)
2284
- }, L = E === null ? "" : Cr(d, Il(R));
2285
- return /* @__PURE__ */ b("g", {
2284
+ }, N = E === null ? "" : Cr(d, Il(S));
2285
+ return /* @__PURE__ */ w("g", {
2286
2286
  clipPath: `url(#${o})`,
2287
2287
  "data-testid": "arc-segment",
2288
2288
  children: [
@@ -2295,13 +2295,13 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
2295
2295
  fill: g,
2296
2296
  opacity: h
2297
2297
  }),
2298
- E !== null && L !== "" && /* @__PURE__ */ s("path", {
2299
- d: L,
2298
+ E !== null && N !== "" && /* @__PURE__ */ s("path", {
2299
+ d: N,
2300
2300
  fill: "none",
2301
2301
  opacity: h,
2302
2302
  ...Ge(E.color, E.separatorWidth)
2303
2303
  }),
2304
- E !== null && (k ? /* @__PURE__ */ b("g", {
2304
+ E !== null && (R ? /* @__PURE__ */ w("g", {
2305
2305
  clipPath: `url(#${a})`,
2306
2306
  children: [/* @__PURE__ */ s("clipPath", {
2307
2307
  id: a,
@@ -2313,7 +2313,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
2313
2313
  ...Ge(E.color, E.outlineWidth)
2314
2314
  })]
2315
2315
  }) : /* @__PURE__ */ s("path", {
2316
- d: Cr(d, R),
2316
+ d: Cr(d, S),
2317
2317
  fill: "none",
2318
2318
  opacity: y,
2319
2319
  ...Ge(E.color, E.outlineWidth)
@@ -2321,7 +2321,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
2321
2321
  ]
2322
2322
  });
2323
2323
  }, Pl = ({ layer: e, sourceLayer: t, coordSystem: r }) => {
2324
- const n = N(t), o = A(() => Zn(t, r.bandAxis, n), [
2324
+ const n = I(t), o = A(() => Zn(t, r.bandAxis, n), [
2325
2325
  t,
2326
2326
  r.bandAxis,
2327
2327
  n
@@ -2382,7 +2382,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
2382
2382
  startSpoke: !e.startSpoke,
2383
2383
  endSpoke: !e.endSpoke
2384
2384
  }), Tl = ({ layer: e, coordSystem: t, primary: r }) => {
2385
- const n = N(e), o = $n(A(() => Zn(e, t.bandAxis, n), [
2385
+ const n = I(e), o = $n(A(() => Zn(e, t.bandAxis, n), [
2386
2386
  e,
2387
2387
  t.bandAxis,
2388
2388
  n
@@ -2425,7 +2425,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
2425
2425
  }),
2426
2426
  renderHoverCompanions: () => null
2427
2427
  }, Nl = Z(function({ layer: t }) {
2428
- const r = N(t), n = A(() => {
2428
+ const r = I(t), n = A(() => {
2429
2429
  const o = oe(t.data, t.mapping, t.id), a = [];
2430
2430
  return t.data.groupBy(ce.group).forEach((i) => {
2431
2431
  const l = [...i], c = to(l);
@@ -2474,10 +2474,10 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
2474
2474
  }
2475
2475
  return t.length === 0 ? null : (t.sort((r, n) => r.angle - n.angle), Ot(t.map((r) => r.point)));
2476
2476
  }, Ml = ({ layer: e, primary: t, companions: r }) => {
2477
- const n = N(e), o = pt(t.observation), a = A(() => to([...e.data.filter(ce.group, "eq", o)]), [e.data, o]);
2477
+ const n = I(e), o = pt(t.observation), a = A(() => to([...e.data.filter(ce.group, "eq", o)]), [e.data, o]);
2478
2478
  if (!a) return null;
2479
2479
  const i = n.get("color", t.observation), l = n.get("alpha", t.observation), c = n.get("strokeWidth", t.observation), u = Ee(n.get("lineType", t.observation));
2480
- return /* @__PURE__ */ b(B, { children: [
2480
+ return /* @__PURE__ */ w(B, { children: [
2481
2481
  /* @__PURE__ */ s("svg", {
2482
2482
  viewBox: "-1 -1 2 2",
2483
2483
  preserveAspectRatio: "xMidYMid meet",
@@ -2529,7 +2529,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
2529
2529
  };
2530
2530
  }
2531
2531
  }, Dl = Z(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
2532
- const o = N(t), a = At(n?.type === "grow" && n.growAxis === "size" ? n : null, r);
2532
+ const o = I(t), a = At(n?.type === "grow" && n.growAxis === "size" ? n : null, r);
2533
2533
  return A(() => {
2534
2534
  const i = a.activeIntro ? oe(t.data, t.mapping, t.id) : null, l = [];
2535
2535
  let c = 0;
@@ -2620,7 +2620,7 @@ function Wl(e = []) {
2620
2620
  return (r, n) => t[r]?.[n] ?? null;
2621
2621
  }
2622
2622
  var Gt = (e) => {
2623
- const t = I(e);
2623
+ const t = T(e);
2624
2624
  return t.current = e, t;
2625
2625
  }, Vl = () => {
2626
2626
  const e = /* @__PURE__ */ new Map();
@@ -2642,9 +2642,9 @@ var Gt = (e) => {
2642
2642
  const r = A(() => ({
2643
2643
  layers: e,
2644
2644
  coordSystem: t
2645
- }), [e, t]), n = I(null);
2645
+ }), [e, t]), n = T(null);
2646
2646
  n.current === null && (n.current = new va(r));
2647
- const o = n.current, a = I(!1);
2647
+ const o = n.current, a = T(!1);
2648
2648
  return F(() => {
2649
2649
  if (!a.current) {
2650
2650
  a.current = !0;
@@ -2653,10 +2653,10 @@ var Gt = (e) => {
2653
2653
  o.update(r);
2654
2654
  }, [o, r]), o;
2655
2655
  }, ro = U(null), Yl = ({ children: e }) => {
2656
- const { layers: t, coordSystem: r } = C(z((l) => ({
2656
+ const { layers: t, coordSystem: r } = C(j((l) => ({
2657
2657
  layers: l.layers,
2658
2658
  coordSystem: l.coordSystem
2659
- }))), n = Ql(t, r), [o] = G(() => Vl()), a = I(null), i = I(null);
2659
+ }))), n = Ql(t, r), [o] = O(() => Vl()), a = T(null), i = T(null);
2660
2660
  return i.current === null && (i.current = {
2661
2661
  engine: n,
2662
2662
  store: o,
@@ -2671,7 +2671,7 @@ var Gt = (e) => {
2671
2671
  return e;
2672
2672
  };
2673
2673
  function Kl(e, t) {
2674
- const { engine: r } = me(), n = I(t);
2674
+ const { engine: r } = me(), n = T(t);
2675
2675
  F(() => {
2676
2676
  n.current = t;
2677
2677
  }, [t]), F(() => (r.registerHitTester(e, (o) => n.current(o)), () => r.unregisterHitTester(e)), [r, e]);
@@ -2691,7 +2691,7 @@ var zl = ({ hitTest: e, input: t }) => {
2691
2691
  },
2692
2692
  children: o
2693
2693
  }), r), Jl = ({ rect: e, children: t }) => {
2694
- const [r] = G(no);
2694
+ const [r] = O(no);
2695
2695
  return /* @__PURE__ */ s(ql, {
2696
2696
  rect: e,
2697
2697
  zIndex: He.panelOverlay,
@@ -2699,7 +2699,7 @@ var zl = ({ hitTest: e, input: t }) => {
2699
2699
  children: t
2700
2700
  });
2701
2701
  }, Zl = (e, t) => {
2702
- const r = Gt(e), n = Gt(t), o = I(null), a = I(null), i = A(() => {
2702
+ const r = Gt(e), n = Gt(t), o = T(null), a = T(null), i = A(() => {
2703
2703
  const l = () => {
2704
2704
  a.current !== null && (clearTimeout(a.current), a.current = null), o.current = null;
2705
2705
  }, c = () => {
@@ -2727,13 +2727,13 @@ var zl = ({ hitTest: e, input: t }) => {
2727
2727
  height: 0,
2728
2728
  isDefault: !0
2729
2729
  }, oo = ({ debounce: e = 0, onResize: t } = {}) => {
2730
- const [r, n] = G($l), o = I(null), a = Zl((u) => {
2730
+ const [r, n] = O($l), o = T(null), a = Zl((u) => {
2731
2731
  const d = o.current;
2732
2732
  d && d.width === u.width && d.height === u.height || (o.current = {
2733
2733
  width: u.width,
2734
2734
  height: u.height
2735
2735
  }, t?.(u), n(u));
2736
- }, e), i = I(null), l = I(null), c = se((u) => {
2736
+ }, e), i = T(null), l = T(null), c = se((u) => {
2737
2737
  i.current !== u && (i.current && l.current?.unobserve(i.current), i.current = u, u && (l.current ??= new ResizeObserver(([d]) => {
2738
2738
  if (!d) return;
2739
2739
  const v = Math.round(d.contentBoxSize[0]?.inlineSize ?? d.contentRect.width), g = Math.round(d.contentBoxSize[0]?.blockSize ?? d.contentRect.height);
@@ -2750,7 +2750,7 @@ var zl = ({ hitTest: e, input: t }) => {
2750
2750
  };
2751
2751
  };
2752
2752
  function _l() {
2753
- const [e, t] = G(null), r = I(null), n = I(null), o = I(null), a = se(() => {
2753
+ const [e, t] = O(null), r = T(null), n = T(null), o = T(null), a = se(() => {
2754
2754
  o.current = null;
2755
2755
  const u = n.current;
2756
2756
  if (!u) return;
@@ -2799,7 +2799,7 @@ function ec(e) {
2799
2799
  }
2800
2800
  var tc = ({ render: e, input: t }) => {
2801
2801
  const r = ec(t.layer.id), { measureRef: n, screenRect: o } = _l();
2802
- return F(() => () => r(null), [r]), /* @__PURE__ */ b(B, { children: [/* @__PURE__ */ s("rect", {
2802
+ return F(() => () => r(null), [r]), /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ s("rect", {
2803
2803
  ref: n,
2804
2804
  x: 0,
2805
2805
  y: 0,
@@ -3070,7 +3070,7 @@ var tc = ({ render: e, input: t }) => {
3070
3070
  if (e !== "none")
3071
3071
  return `drop-shadow(${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color})`;
3072
3072
  }, xc = () => {
3073
- const e = T(), t = C((r) => r.config.appearance.textScale);
3073
+ const e = L(), t = C((r) => r.config.appearance.textScale);
3074
3074
  return A(() => wi(e, t), [e, t]);
3075
3075
  }, bc = "bow4tg0", wc = "bow4tg1", Sc = "bow4tg2", kc = "bow4tg3", Rc = "bow4tg4", lo = "_1ii3bsb0", Cc = "_1ii3bsb1", co = U({
3076
3076
  colorScheme: "light",
@@ -3235,7 +3235,7 @@ function Ve(e) {
3235
3235
  }
3236
3236
  var Gc = "_19519k80";
3237
3237
  var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc = "_19519k87", Kc = "_19519k88", zc = (e) => {
3238
- const { overlayRef: t } = me(), r = I(null), [n, o] = G(!1), a = Gt(e);
3238
+ const { overlayRef: t } = me(), r = T(null), [n, o] = O(!1), a = Gt(e);
3239
3239
  return F(() => {
3240
3240
  const i = t.current;
3241
3241
  if (!i) return;
@@ -3268,15 +3268,15 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
3268
3268
  boundary: [],
3269
3269
  padding: Xc
3270
3270
  }, Jc = () => {
3271
- const e = C(z((w) => ({
3272
- layers: w.layers,
3273
- coordSystem: w.coordSystem,
3274
- scales: w.scales,
3275
- guides: w.guides,
3276
- numberFormat: w.config.numberFormat,
3277
- parsingLocale: w.config.parsingLocale,
3278
- comments: w.annotations.comments
3279
- }))), { formattingLocale: t, colorScheme: r } = j(), n = Ve((w) => w.hover), o = Ve((w) => w.tooltipAnchor), a = Ve((w) => w.isPointerSuspended), i = ee("Tooltip", Zc), l = I(() => {
3271
+ const e = C(j((b) => ({
3272
+ layers: b.layers,
3273
+ coordSystem: b.coordSystem,
3274
+ scales: b.scales,
3275
+ guides: b.guides,
3276
+ numberFormat: b.config.numberFormat,
3277
+ parsingLocale: b.config.parsingLocale,
3278
+ comments: b.annotations.comments
3279
+ }))), { formattingLocale: t, colorScheme: r } = G(), n = Ve((b) => b.hover), o = Ve((b) => b.tooltipAnchor), a = Ve((b) => b.isPointerSuspended), i = ee("Tooltip", Zc), l = T(() => {
3280
3280
  }), { cursorRef: c, isInside: u } = zc(() => l.current()), d = A(() => Ea({
3281
3281
  ...e,
3282
3282
  hover: n,
@@ -3291,8 +3291,8 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
3291
3291
  o
3292
3292
  ]), v = !a && d !== null && (u || o !== null), g = A(() => ({ getBoundingClientRect: () => {
3293
3293
  if (o !== null) return ed(o);
3294
- const w = c.current;
3295
- return w === null ? qc : _c(w);
3294
+ const b = c.current;
3295
+ return b === null ? qc : _c(b);
3296
3296
  } }), [c, o]), { refs: h, floatingStyles: f, update: m } = yn(td({
3297
3297
  isOpen: v,
3298
3298
  tooltipAnchor: o,
@@ -3310,7 +3310,7 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
3310
3310
  return y ? An(/* @__PURE__ */ s(Pc, { children: p }), y) : p;
3311
3311
  }, Zc = ({ content: e }) => {
3312
3312
  const t = de(), r = C((c) => c.coordSystem), n = xc(), o = Pt(n.heading), a = Pt(n.label), i = Pt(n.value), l = { paddingInline: n.box.paddingInline };
3313
- return /* @__PURE__ */ b("div", {
3313
+ return /* @__PURE__ */ w("div", {
3314
3314
  className: Gc,
3315
3315
  style: $c(n.box),
3316
3316
  "data-testid": "chart-tooltip-body",
@@ -3393,7 +3393,7 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
3393
3393
  Ft(nt)
3394
3394
  ],
3395
3395
  elements: { reference: r }
3396
- }), rd = ({ row: e, swatchShape: t, shouldHighlight: r, labelStyle: n, valueStyle: o, paddingInline: a, highlightBackground: i }) => /* @__PURE__ */ b("div", {
3396
+ }), rd = ({ row: e, swatchShape: t, shouldHighlight: r, labelStyle: n, valueStyle: o, paddingInline: a, highlightBackground: i }) => /* @__PURE__ */ w("div", {
3397
3397
  className: Vc,
3398
3398
  style: {
3399
3399
  paddingInline: a,
@@ -3429,11 +3429,11 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
3429
3429
  coordKey: null,
3430
3430
  introEndsAtMs: 0
3431
3431
  }, er = U(it), nd = ({ intro: e, children: t }) => {
3432
- const { layers: r, coordSystem: n, scales: o } = C(z((i) => ({
3432
+ const { layers: r, coordSystem: n, scales: o } = C(j((i) => ({
3433
3433
  layers: i.layers,
3434
3434
  coordSystem: i.coordSystem,
3435
3435
  scales: i.scales
3436
- }))), [a] = G(() => id({
3436
+ }))), [a] = O(() => id({
3437
3437
  layers: r,
3438
3438
  coordSystem: n,
3439
3439
  scales: o,
@@ -3444,7 +3444,7 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
3444
3444
  children: t
3445
3445
  });
3446
3446
  }, od = () => {
3447
- const { introEndsAtMs: e } = D(er), [t] = G(() => sd(e) / 1e3);
3447
+ const { introEndsAtMs: e } = D(er), [t] = O(() => sd(e) / 1e3);
3448
3448
  return t;
3449
3449
  }, ad = (e) => {
3450
3450
  const { plansByLayerId: t, coordKey: r } = D(er), n = C((o) => vo(o.coordSystem));
@@ -3473,14 +3473,14 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
3473
3473
  introEndsAtMs: performance.now() + i * 1e3
3474
3474
  };
3475
3475
  }, sd = (e) => Math.max(0, e - performance.now()), vo = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, go = () => {
3476
- const e = T(), t = C((r) => r.config.appearance.textScale);
3476
+ const e = L(), t = C((r) => r.config.appearance.textScale);
3477
3477
  return A(() => {
3478
3478
  const r = {};
3479
3479
  for (const n of Vt) r[n] = si(e, n, t);
3480
3480
  return r;
3481
3481
  }, [e, t]);
3482
3482
  }, bt = () => {
3483
- const e = T(), t = C((r) => r.config.appearance.textScale);
3483
+ const e = L(), t = C((r) => r.config.appearance.textScale);
3484
3484
  return A(() => {
3485
3485
  const r = {};
3486
3486
  for (const n of ua) {
@@ -3491,30 +3491,30 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
3491
3491
  return r;
3492
3492
  }, [e, t]);
3493
3493
  }, fo = () => {
3494
- const e = T(), t = C((r) => r.config.appearance.textScale);
3494
+ const e = L(), t = C((r) => r.config.appearance.textScale);
3495
3495
  return A(() => (r) => hi(e, r, t), [e, t]);
3496
3496
  }, po = () => {
3497
- const e = T(), t = C((r) => r.config.appearance.textScale);
3497
+ const e = L(), t = C((r) => r.config.appearance.textScale);
3498
3498
  return A(() => vi(e, t), [e, t]);
3499
3499
  }, tr = () => {
3500
- const e = T(), t = C((r) => r.config.appearance.textScale);
3500
+ const e = L(), t = C((r) => r.config.appearance.textScale);
3501
3501
  return A(() => pi(e, t), [e, t]);
3502
3502
  }, rr = () => {
3503
- const e = T(), t = C((r) => r.config.appearance.textScale);
3503
+ const e = L(), t = C((r) => r.config.appearance.textScale);
3504
3504
  return A(() => {
3505
3505
  const r = {};
3506
3506
  for (const n of Vt) r[n] = xi(e, n, t);
3507
3507
  return r;
3508
3508
  }, [e, t]);
3509
3509
  }, mo = () => {
3510
- const e = T();
3510
+ const e = L();
3511
3511
  return A(() => {
3512
3512
  const t = {};
3513
3513
  for (const r of Vt) t[r] = bi(e, r);
3514
3514
  return t;
3515
3515
  }, [e]);
3516
3516
  }, ld = ({ textMeasurer: e, tickLabelStyles: t, tickLineStyles: r, familyDefault: n }) => (o) => {
3517
- const a = o.position === "top" || o.position === "bottom", i = Ce(o.scaleAestheticKey), { offset: l, ...c } = t[i], u = o.ticksVisible ? Math.max(l, r[i].length) : l, d = K(c, n), v = o.ticks.map((h) => e.measureText(h.formattedLabel, d)), g = o.labelMaxWidthPx ?? Number.POSITIVE_INFINITY;
3517
+ const a = o.position === "top" || o.position === "bottom", i = Ce(o.scaleAestheticKey), { offset: l, ...c } = t[i], u = o.ticksVisible ? Math.max(l, r[i].length) : l, d = z(c, n), v = o.ticks.map((h) => e.measureText(h.formattedLabel, d)), g = o.labelMaxWidthPx ?? Number.POSITIVE_INFINITY;
3518
3518
  if (a) {
3519
3519
  if (o.labelRotation !== 0) {
3520
3520
  const h = v.map((f) => f.width);
@@ -3524,13 +3524,13 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
3524
3524
  }
3525
3525
  return Br(v.map((h) => h.width), g) + u;
3526
3526
  }, Br = (e, t) => Math.min(Math.max(...e), t), cd = ({ axisLabelStyles: e }) => (t) => fe(e[Ce(t.scaleAestheticKey)]), Ao = ({ textMeasurer: e, dataLabelStyles: t, familyDefault: r }) => (n, o, a) => {
3527
- const i = t[n][o], l = e.measureText(a, K(i, r));
3527
+ const i = t[n][o], l = e.measureText(a, z(i, r));
3528
3528
  return {
3529
3529
  ...l,
3530
3530
  width: l.width + i.paddingInline * 2,
3531
3531
  height: l.height + i.paddingBlock * 2
3532
3532
  };
3533
- }, dd = ({ textMeasurer: e, familyDefault: t }) => (r, n) => e.measureText(r, K(n, t)), ud = ({ textMeasurer: e, familyDefault: t, headlineRowGap: r, itemGap: n, headlineItemStyles: o }) => (a, i) => {
3533
+ }, dd = ({ textMeasurer: e, familyDefault: t }) => (r, n) => e.measureText(r, z(n, t)), ud = ({ textMeasurer: e, familyDefault: t, headlineRowGap: r, itemGap: n, headlineItemStyles: o }) => (a, i) => {
3534
3534
  const l = yo(a, o[i], e, t, r);
3535
3535
  return {
3536
3536
  width: xo(l.map((c) => c.width)) + Math.max(0, l.length - 1) * n,
@@ -3539,7 +3539,7 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
3539
3539
  }, hd = ({ textMeasurer: e, familyDefault: t, headlineRowGap: r, headlineItemStyles: n }) => (o, a) => yo(o, n[a], e, t, r).map((i) => i.width), vd = ({ textMeasurer: e, familyDefault: t, headlineItemStyles: r }) => (n, o, a = !1) => {
3540
3540
  const i = dn(r[o], a);
3541
3541
  return {
3542
- width: e.measureText(n, K(i, t)).width,
3542
+ width: e.measureText(n, z(i, t)).width,
3543
3543
  height: fe(i)
3544
3544
  };
3545
3545
  }, gd = (e) => {
@@ -3558,7 +3558,7 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
3558
3558
  let o = 0, a = 0;
3559
3559
  for (const i of e.segments) if (i.kind === "text") {
3560
3560
  const l = pd(t, i.textRole);
3561
- o += r.measureText(i.text, K(l, n)).width, a = Math.max(a, md(l));
3561
+ o += r.measureText(i.text, z(l, n)).width, a = Math.max(a, md(l));
3562
3562
  } else
3563
3563
  o += i.size, a = Math.max(a, i.size);
3564
3564
  return {
@@ -3590,10 +3590,10 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
3590
3590
  if (a.display === "direct") {
3591
3591
  const m = fe(n);
3592
3592
  if (i) return m;
3593
- const p = K(n, t), y = a.items.map((w) => e.measureText(w.formattedLabel, p).width);
3593
+ const p = z(n, t), y = a.items.map((b) => e.measureText(b.formattedLabel, p).width);
3594
3594
  return Math.max(...y);
3595
3595
  }
3596
- const { item: l, swatch: c } = r, u = fe(l), d = K(l, t), v = 2 * (l.paddingBlock + l.borderWidth), g = 2 * (l.paddingInline + l.borderWidth), h = a.aesthetics.includes("size");
3596
+ const { item: l, swatch: c } = r, u = fe(l), d = z(l, t), v = 2 * (l.paddingBlock + l.borderWidth), g = 2 * (l.paddingInline + l.borderWidth), h = a.aesthetics.includes("size");
3597
3597
  if (i) {
3598
3598
  const m = h ? Math.max(0, ...a.items.map((p) => ht(p.visual, c.size, !0))) : c.size;
3599
3599
  return Math.max(u, m) + v;
@@ -3603,8 +3603,8 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
3603
3603
  return y + (y > 0 ? o : 0) + p;
3604
3604
  });
3605
3605
  return Math.max(...f) + g;
3606
- }, bd = ({ textMeasurer: e, tickLabelStyles: t, familyDefault: r }) => (n, o) => e.measureText(n, K(t[o], r)), wd = Object.freeze({}), Sd = ({ textMeasurer: e, textScale: t, metrics: r, overrides: n = wd }) => {
3607
- const o = go(), a = bt(), i = po(), l = tr(), c = rr(), u = mo(), d = T(), v = I(n);
3606
+ }, bd = ({ textMeasurer: e, tickLabelStyles: t, familyDefault: r }) => (n, o) => e.measureText(n, z(t[o], r)), wd = Object.freeze({}), Sd = ({ textMeasurer: e, textScale: t, metrics: r, overrides: n = wd }) => {
3607
+ const o = go(), a = bt(), i = po(), l = tr(), c = rr(), u = mo(), d = L(), v = T(n);
3608
3608
  return v.current = n, A(() => {
3609
3609
  if (!e) return null;
3610
3610
  const g = r.fonts.familyDefault, h = {
@@ -3628,27 +3628,27 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
3628
3628
  legendItemStyle: l,
3629
3629
  directLabelStyle: i,
3630
3630
  legendSwatchGap: r.legendSwatchGap
3631
- }), y = gd(h), w = hd(h), k = {
3632
- measureText: (R, P) => e.measureText(R, P),
3631
+ }), y = gd(h), b = hd(h), R = {
3632
+ measureText: (S, P) => e.measureText(S, P),
3633
3633
  textScale: t
3634
3634
  };
3635
3635
  return {
3636
- measureAxis: (R) => {
3637
- if (Rd(R)) return 0;
3636
+ measureAxis: (S) => {
3637
+ if (Rd(S)) return 0;
3638
3638
  const P = v.current.measureAxis;
3639
- return P ? P(R, k) : f(R);
3639
+ return P ? P(S, R) : f(S);
3640
3640
  },
3641
- measureAxisLabel: (R) => {
3641
+ measureAxisLabel: (S) => {
3642
3642
  const P = v.current.measureAxisLabel;
3643
- return P ? P(R, k) : m(R);
3643
+ return P ? P(S, R) : m(S);
3644
3644
  },
3645
- measureLegend: (R) => {
3646
- if (Cd(R)) return 0;
3645
+ measureLegend: (S) => {
3646
+ if (Cd(S)) return 0;
3647
3647
  const P = v.current.measureLegend;
3648
- return P ? P(R, k) : p(R);
3648
+ return P ? P(S, R) : p(S);
3649
3649
  },
3650
- measureHeadline: (R, P, E) => (v.current.measureHeadline ?? y)(R, P, E),
3651
- measureHeadlineItemWidths: (R, P) => (v.current.measureHeadlineItemWidths ?? w)(R, P),
3650
+ measureHeadline: (S, P, E) => (v.current.measureHeadline ?? y)(S, P, E),
3651
+ measureHeadlineItemWidths: (S, P) => (v.current.measureHeadlineItemWidths ?? b)(S, P),
3652
3652
  measureTickLabel: bd({
3653
3653
  textMeasurer: e,
3654
3654
  tickLabelStyles: c,
@@ -3715,11 +3715,11 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
3715
3715
  e
3716
3716
  ]);
3717
3717
  }, Rd = (e) => !e.isVisible || e.ticks.length === 0, Cd = (e) => e.items.length === 0, Ed = () => {
3718
- const { formattingLocale: e } = j(), t = C((r) => r.config.parsingLocale);
3718
+ const { formattingLocale: e } = G(), t = C((r) => r.config.parsingLocale);
3719
3719
  return e ?? t;
3720
3720
  }, Ir = 0.5, bo = U(/* @__PURE__ */ new Map()), wo = U(() => {
3721
3721
  }), So = U(/* @__PURE__ */ new Set()), Pd = ({ children: e }) => {
3722
- const [t, r] = G(() => /* @__PURE__ */ new Map()), [n] = G(() => /* @__PURE__ */ new Set()), o = I(/* @__PURE__ */ new Map()), a = se((i, l, c) => {
3722
+ const [t, r] = O(() => /* @__PURE__ */ new Map()), [n] = O(() => /* @__PURE__ */ new Set()), o = T(/* @__PURE__ */ new Map()), a = se((i, l, c) => {
3723
3723
  const u = o.current.get(i) ?? /* @__PURE__ */ new Set();
3724
3724
  if (c !== null) {
3725
3725
  u.add(l), o.current.set(i, u), r((d) => Nd(d, i, c));
@@ -3738,7 +3738,7 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
3738
3738
  })
3739
3739
  });
3740
3740
  }, Bd = () => D(bo), Id = () => D(wo), Td = (e) => {
3741
- const t = Id(), r = V(), n = I(null);
3741
+ const t = Id(), r = V(), n = T(null);
3742
3742
  return F(() => {
3743
3743
  if (typeof ResizeObserver > "u") return;
3744
3744
  const o = n.current;
@@ -3807,7 +3807,7 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
3807
3807
  editor: t
3808
3808
  } })
3809
3809
  })), nr = U(null), jd = Ro(), kf = ({ children: e }) => {
3810
- const [t] = G(() => Ro());
3810
+ const [t] = O(() => Ro());
3811
3811
  return /* @__PURE__ */ s(nr.Provider, {
3812
3812
  value: t,
3813
3813
  children: e
@@ -3834,7 +3834,7 @@ var Co = U(null), Xd = ({ panelRect: e, children: t }) => {
3834
3834
  start: r(e.start),
3835
3835
  end: r(e.end)
3836
3836
  }) ?? t.color, Jd = (e) => {
3837
- const { formattingLocale: t } = j(), r = pe(), { fonts: n } = Ie(), o = ue((p) => Ue(p, "difference-arrow-endpoint-drag")), a = Sn(), i = fo(), { differenceArrows: l, mainAxis: c, parsingLocale: u } = C(z((p) => ({
3837
+ const { formattingLocale: t } = G(), r = pe(), { fonts: n } = Ie(), o = ue((p) => Ue(p, "difference-arrow-endpoint-drag")), a = Sn(), i = fo(), { differenceArrows: l, mainAxis: c, parsingLocale: u } = C(j((p) => ({
3838
3838
  differenceArrows: p.annotations.differenceArrows,
3839
3839
  mainAxis: p.coordSystem.type === "cartesian" ? p.coordSystem.mainAxis : "x",
3840
3840
  parsingLocale: p.config.parsingLocale
@@ -3849,15 +3849,15 @@ var Co = U(null), Xd = ({ panelRect: e, children: t }) => {
3849
3849
  g,
3850
3850
  d
3851
3851
  ]), f = A(() => Zd(r, n.familyDefault), [r, n.familyDefault]), m = A(() => l.map((p) => {
3852
- const y = i(p.id), w = Lr(p, y, h, f);
3852
+ const y = i(p.id), b = Lr(p, y, h, f);
3853
3853
  return {
3854
- ...w,
3854
+ ...b,
3855
3855
  arrow: p,
3856
3856
  style: y,
3857
3857
  color: Tr(p, y, a),
3858
3858
  committedArrow: p,
3859
- committedLabelBox: w.labelBox,
3860
- committedLabelText: w.labelText,
3859
+ committedLabelBox: b.labelBox,
3860
+ committedLabelText: b.labelText,
3861
3861
  isDragged: !1,
3862
3862
  hasComparableEndpoints: vr(p.start, p.end)
3863
3863
  };
@@ -3906,7 +3906,7 @@ var Co = U(null), Xd = ({ panelRect: e, children: t }) => {
3906
3906
  }, Zd = (e, t) => {
3907
3907
  const r = /* @__PURE__ */ new Map();
3908
3908
  return (n, o) => {
3909
- const a = K(o, t), i = `${a.family}|${a.size}|${a.weight}|${n}`, l = r.get(i);
3909
+ const a = z(o, t), i = `${a.family}|${a.size}|${a.weight}|${n}`, l = r.get(i);
3910
3910
  if (l !== void 0) return l;
3911
3911
  const { width: c } = e.measureText(n, a);
3912
3912
  return r.set(i, c), c;
@@ -3951,8 +3951,8 @@ var ou = "vultop2", au = "vultop3", iu = "vultop4", su = "vultop5", lu = "vultop
3951
3951
  };
3952
3952
  return 0.2126 * n(e) + 0.7152 * n(t) + 0.0722 * n(r);
3953
3953
  }, vu = (e, t, r = "full") => !e || t.width < 120 || t.height < 80 ? "hidden" : t.width < 200 || r === "mini" ? "mini" : "full", Eo = ({ visual: e, placement: t }) => {
3954
- const { background: r } = cn(T()), n = du(r);
3955
- return /* @__PURE__ */ b("a", {
3954
+ const { background: r } = cn(L()), n = du(r);
3955
+ return /* @__PURE__ */ w("a", {
3956
3956
  className: Ye(nu, e === "mini" && "vultop1", t === "footer" ? lu : cu),
3957
3957
  href: tu,
3958
3958
  target: "_blank",
@@ -3963,7 +3963,7 @@ var ou = "vultop2", au = "vultop3", iu = "vultop4", su = "vultop5", lu = "vultop
3963
3963
  children: [/* @__PURE__ */ s("span", {
3964
3964
  className: ou,
3965
3965
  children: /* @__PURE__ */ s(eu, { className: au })
3966
- }), /* @__PURE__ */ b("span", {
3966
+ }), /* @__PURE__ */ w("span", {
3967
3967
  className: iu,
3968
3968
  children: [/* @__PURE__ */ s("span", { children: "Made with" }), /* @__PURE__ */ s("span", {
3969
3969
  className: su,
@@ -3982,7 +3982,7 @@ var ou = "vultop2", au = "vultop3", iu = "vultop4", su = "vultop5", lu = "vultop
3982
3982
  var gu = "_4dlrid1", fu = "xfz7dq0";
3983
3983
  var pu = "xfz7dq2", mu = "xfz7dq3", Au = "xfz7dq4", yu = "xfz7dq5", xu = ({ ref: e, footerRect: t, mode: r = "readonly", caption: n, isCaptionVisible: o, source: a, isSourceVisible: i, brandMark: l }) => {
3984
3984
  const { Caption: c } = or(), u = r === "editable" ? c : null, d = o && (u !== null || n !== null), v = i && a !== null && ku(a), g = l !== "hidden";
3985
- return !d && !v && !g ? null : /* @__PURE__ */ b("div", {
3985
+ return !d && !v && !g ? null : /* @__PURE__ */ w("div", {
3986
3986
  ref: e,
3987
3987
  className: fu,
3988
3988
  style: {
@@ -3990,7 +3990,7 @@ var pu = "xfz7dq2", mu = "xfz7dq3", Au = "xfz7dq4", yu = "xfz7dq5", xu = ({ ref:
3990
3990
  top: t.y,
3991
3991
  width: t.width
3992
3992
  },
3993
- children: [d ? u ? /* @__PURE__ */ s(u, { caption: n }) : /* @__PURE__ */ s(bu, { caption: n }) : null, (v || g) && /* @__PURE__ */ b("div", {
3993
+ children: [d ? u ? /* @__PURE__ */ s(u, { caption: n }) : /* @__PURE__ */ s(bu, { caption: n }) : null, (v || g) && /* @__PURE__ */ w("div", {
3994
3994
  className: "xfz7dq1",
3995
3995
  children: [v && /* @__PURE__ */ s(wu, { source: a }), l !== "hidden" ? /* @__PURE__ */ s(Eo, {
3996
3996
  visual: l,
@@ -4003,7 +4003,7 @@ var pu = "xfz7dq2", mu = "xfz7dq3", Au = "xfz7dq4", yu = "xfz7dq5", xu = ({ ref:
4003
4003
  children: e
4004
4004
  }) : /* @__PURE__ */ s(Re, { content: e }), wu = ({ source: e }) => {
4005
4005
  const t = Kt(e.url) ? e.url : void 0, r = e.label ?? (t !== void 0 ? Su(t) : "");
4006
- return r === "" && t === void 0 ? null : /* @__PURE__ */ b("span", {
4006
+ return r === "" && t === void 0 ? null : /* @__PURE__ */ w("span", {
4007
4007
  className: pu,
4008
4008
  children: [/* @__PURE__ */ s("span", {
4009
4009
  className: Au,
@@ -4028,7 +4028,7 @@ var pu = "xfz7dq2", mu = "xfz7dq3", Au = "xfz7dq4", yu = "xfz7dq5", xu = ({ ref:
4028
4028
  }, ku = (e) => e.label !== void 0 && e.label !== "" || e.url !== void 0 && e.url !== "" && Kt(e.url), Ru = "_1k4qtbg0";
4029
4029
  var Cu = 22, Eu = ({ ref: e, headerRect: t, mode: r = "readonly", title: n, isTitleVisible: o, subtitle: a, isSubtitleVisible: i, brandMark: l }) => {
4030
4030
  const { Title: c } = or(), u = r === "editable" ? c : null, d = u !== null, v = o && (d || n !== null), g = i && (d || a !== null), h = l !== "hidden";
4031
- return !v && !g && !h ? null : /* @__PURE__ */ b("div", {
4031
+ return !v && !g && !h ? null : /* @__PURE__ */ w("div", {
4032
4032
  ref: e,
4033
4033
  className: Ye(Ru, h && "_1k4qtbg1"),
4034
4034
  style: {
@@ -4052,21 +4052,21 @@ var Cu = 22, Eu = ({ ref: e, headerRect: t, mode: r = "readonly", title: n, isTi
4052
4052
  placement: "header"
4053
4053
  }) : null]
4054
4054
  });
4055
- }, Pu = ({ title: e, isTitleVisible: t, isSubtitleVisible: r, subtitle: n }) => /* @__PURE__ */ b(B, { children: [t && e !== null && (typeof e == "string" ? /* @__PURE__ */ s("h1", {
4055
+ }, Pu = ({ title: e, isTitleVisible: t, isSubtitleVisible: r, subtitle: n }) => /* @__PURE__ */ w(B, { children: [t && e !== null && (typeof e == "string" ? /* @__PURE__ */ s("h1", {
4056
4056
  className: "_4dlrid0",
4057
4057
  children: e
4058
4058
  }) : /* @__PURE__ */ s(Re, { content: e })), r && n !== null && (typeof n == "string" ? /* @__PURE__ */ s("p", {
4059
4059
  className: "_4dlrid1",
4060
4060
  children: n
4061
4061
  }) : /* @__PURE__ */ s(Re, { content: n }))] }), Bu = (e) => {
4062
- const t = T(), r = C((n) => n.config.appearance.textScale);
4062
+ const t = L(), r = C((n) => n.config.appearance.textScale);
4063
4063
  return A(() => at(t, r, e), [
4064
4064
  t,
4065
4065
  r,
4066
4066
  e
4067
4067
  ]);
4068
4068
  }, Bo = () => {
4069
- const e = T();
4069
+ const e = L();
4070
4070
  return A(() => un(e), [e]);
4071
4071
  }, Iu = "_1u9qprb0", Tu = "_1u9qprb1", Lu = /* @__PURE__ */ Mi({
4072
4072
  groupRow: () => Fu,
@@ -4085,7 +4085,7 @@ var Cu = 22, Eu = ({ ref: e, headerRect: t, mode: r = "readonly", title: n, isTi
4085
4085
  secondary: "asohov2 asohov0"
4086
4086
  }, To = ({ children: e, title: t, variant: r = "primary", size: n = "sm", ...o }) => {
4087
4087
  const a = V(), i = Du[n];
4088
- return /* @__PURE__ */ b("svg", {
4088
+ return /* @__PURE__ */ w("svg", {
4089
4089
  className: Hu[r],
4090
4090
  "aria-labelledby": t ? a : void 0,
4091
4091
  height: i,
@@ -4101,7 +4101,7 @@ var Cu = 22, Eu = ({ ref: e, headerRect: t, mode: r = "readonly", title: n, isTi
4101
4101
  });
4102
4102
  }, Ou = (e) => /* @__PURE__ */ s(To, {
4103
4103
  ...e,
4104
- children: /* @__PURE__ */ b("g", {
4104
+ children: /* @__PURE__ */ w("g", {
4105
4105
  stroke: "currentColor",
4106
4106
  strokeWidth: 2,
4107
4107
  strokeLinecap: "round",
@@ -4133,7 +4133,7 @@ var Yu = ({ segment: e, itemStyle: t }) => {
4133
4133
  className: Oe(Qu, e.direction === "down" && "n7clvo4"),
4134
4134
  style: {
4135
4135
  color: a,
4136
- backgroundColor: e.direction === "flat" ? O(x.textPrimary, 0.1) : O(a, 0.2)
4136
+ backgroundColor: e.direction === "flat" ? Y(x.textPrimary, 0.1) : Y(a, 0.2)
4137
4137
  },
4138
4138
  children: e.direction === "flat" ? /* @__PURE__ */ s(Gu, {
4139
4139
  size: "xs",
@@ -4247,7 +4247,7 @@ var $u = "_1oj6yix2", _u = 8, eh = 16, th = 2, rh = ({ legends: e, containerRect
4247
4247
  const r = po(), n = fe(r), { placements: o, hasOverlap: a } = nh(e, t, n), i = ah(r);
4248
4248
  if (o.length === 0) return null;
4249
4249
  const l = a ? eh : _u, c = l - th, u = ft(r.lineType);
4250
- return /* @__PURE__ */ b("div", {
4250
+ return /* @__PURE__ */ w("div", {
4251
4251
  className: Zu,
4252
4252
  children: [a && /* @__PURE__ */ s("svg", {
4253
4253
  className: "_1oj6yix1",
@@ -4311,7 +4311,7 @@ var $u = "_1oj6yix2", _u = 8, eh = 16, th = 2, rh = ({ legends: e, containerRect
4311
4311
  ...le(e),
4312
4312
  lineHeight: e.lineHeight
4313
4313
  }), ih = "_6a636s0", sh = () => {
4314
- const e = T();
4314
+ const e = L();
4315
4315
  return A(() => mi(e), [e]);
4316
4316
  }, lh = "_1kjk02r0", ch = "_1kjk02r1", dh = "_1kjk02r2", uh = "_1kjk02r3", hh = "_1kjk02r4", vh = "_1kjk02r5", gh = "_1kjk02r6", fh = "_1kjk02r7", ph = "_1kjk02r8";
4317
4317
  var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
@@ -4346,14 +4346,14 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
4346
4346
  height: o.size,
4347
4347
  strokeWidth: o.strokeWidth
4348
4348
  }) : null;
4349
- }, bh = ({ pill: e }) => /* @__PURE__ */ b(B, { children: [/* @__PURE__ */ s(xh, {
4349
+ }, bh = ({ pill: e }) => /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ s(xh, {
4350
4350
  color: e.visual.color,
4351
4351
  lineType: e.primaryLineType,
4352
4352
  shape: e.swatchShape,
4353
4353
  label: e.formattedLabel
4354
4354
  }), /* @__PURE__ */ s("span", { children: e.formattedLabel })] }), wh = ({ pill: e }) => {
4355
4355
  const t = Number(e.visual.size);
4356
- return /* @__PURE__ */ b(B, { children: [/* @__PURE__ */ s("span", {
4356
+ return /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ s("span", {
4357
4357
  className: mh,
4358
4358
  style: {
4359
4359
  width: t,
@@ -4362,7 +4362,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
4362
4362
  }
4363
4363
  }), /* @__PURE__ */ s("span", { children: e.formattedLabel })] });
4364
4364
  }, Sh = ({ hiddenPills: e, placement: t }) => {
4365
- const r = io(), [n, o] = G(!1), { refs: a, floatingStyles: i } = yn({
4365
+ const r = io(), [n, o] = O(!1), { refs: a, floatingStyles: i } = yn({
4366
4366
  open: n,
4367
4367
  placement: t,
4368
4368
  middleware: [
@@ -4390,7 +4390,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
4390
4390
  a.reference
4391
4391
  ]);
4392
4392
  const l = t === "left" || t === "right", c = Math.min(e.length - 1, 2), u = Array.from({ length: c }, (d, v) => c - v);
4393
- return /* @__PURE__ */ b(B, { children: [/* @__PURE__ */ b("div", {
4393
+ return /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ w("div", {
4394
4394
  ref: a.setReference,
4395
4395
  className: Oe(lh, {
4396
4396
  [dh]: l,
@@ -4410,7 +4410,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
4410
4410
  "aria-haspopup": "dialog",
4411
4411
  "aria-expanded": n,
4412
4412
  "aria-label": `Show ${e.length} hidden legend ${e.length === 1 ? "item" : "items"}`,
4413
- children: /* @__PURE__ */ b("span", {
4413
+ children: /* @__PURE__ */ w("span", {
4414
4414
  className: ph,
4415
4415
  children: ["+", e.length]
4416
4416
  })
@@ -4440,7 +4440,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
4440
4440
  right: "_1cecisi6",
4441
4441
  left: "_1cecisi7"
4442
4442
  }, Ih = "_1cecisi8", Th = ({ edge: e, formattedLegends: t, containerWidth: r, containerHeight: n, textScale: o }) => {
4443
- const a = pe(), i = Ie(), l = sh(), c = tr(), u = de(), d = C((R) => R.coordSystem.type), v = A(() => yh(t, (R) => u(R, d)?.swatchShape ?? "square"), [
4443
+ const a = pe(), i = Ie(), l = sh(), c = tr(), u = de(), d = C((S) => S.coordSystem.type), v = A(() => yh(t, (S) => u(S, d)?.swatchShape ?? "square"), [
4444
4444
  t,
4445
4445
  u,
4446
4446
  d
@@ -4453,18 +4453,18 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
4453
4453
  visibleCount: v.length,
4454
4454
  hasOverflow: !1
4455
4455
  };
4456
- const R = K(c.item, i.fonts.familyDefault), P = fe(c.item), E = 2 * (c.item.paddingInline + c.item.borderWidth), L = 2 * (c.item.paddingBlock + c.item.borderWidth), M = (ye) => g ? Lh(ye, P, c.swatch.size, L) : Nr({
4456
+ const S = z(c.item, i.fonts.familyDefault), P = fe(c.item), E = 2 * (c.item.paddingInline + c.item.borderWidth), N = 2 * (c.item.paddingBlock + c.item.borderWidth), M = (ye) => g ? Lh(ye, P, c.swatch.size, N) : Nr({
4457
4457
  label: ye.formattedLabel,
4458
4458
  swatchInlineSize: Nh(ye, c.swatch.size),
4459
4459
  textMeasurer: a,
4460
- font: R,
4460
+ font: S,
4461
4461
  swatchGap: i.legendSwatchGap,
4462
4462
  horizontalChrome: E
4463
- }), W = v.map(M), Y = On(i.fonts.legendLabel, o), Te = Ad(i.fonts.legendLabel, o), Ae = (g ? Te + i.legendPillVerticalChrome : Nr({
4463
+ }), W = v.map(M), K = On(i.fonts.legendLabel, o), Te = Ad(i.fonts.legendLabel, o), Ae = (g ? Te + i.legendPillVerticalChrome : Nr({
4464
4464
  label: `+${v.length}`,
4465
4465
  swatchInlineSize: 0,
4466
4466
  textMeasurer: a,
4467
- font: Y,
4467
+ font: K,
4468
4468
  swatchGap: i.legendSwatchGap,
4469
4469
  horizontalChrome: i.legendPillHorizontalChrome
4470
4470
  })) + 8;
@@ -4485,19 +4485,19 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
4485
4485
  c
4486
4486
  ]);
4487
4487
  if (v.length === 0) return null;
4488
- const p = v.slice(0, m.visibleCount), y = v.slice(m.visibleCount), w = m.hasOverflow && y.length > 0, k = Hh(c.item);
4489
- return /* @__PURE__ */ b("div", {
4488
+ const p = v.slice(0, m.visibleCount), y = v.slice(m.visibleCount), b = m.hasOverflow && y.length > 0, R = Hh(c.item);
4489
+ return /* @__PURE__ */ w("div", {
4490
4490
  className: Oe(Ph[f], Rh, {
4491
4491
  [Eh]: g,
4492
4492
  [Ch]: !g,
4493
4493
  [Bh[e === "left" ? "left" : "right"]]: g
4494
4494
  }),
4495
4495
  style: { gap: l.gap },
4496
- children: [p.map((R) => /* @__PURE__ */ s("div", {
4496
+ children: [p.map((S) => /* @__PURE__ */ s("div", {
4497
4497
  className: Ih,
4498
- style: k,
4499
- children: /* @__PURE__ */ s(No, { pill: R })
4500
- }, R.key)), w && /* @__PURE__ */ s(Sh, {
4498
+ style: R,
4499
+ children: /* @__PURE__ */ s(No, { pill: S })
4500
+ }, S.key)), b && /* @__PURE__ */ s(Sh, {
4501
4501
  hiddenPills: y,
4502
4502
  placement: Dh(e)
4503
4503
  })]
@@ -4564,7 +4564,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
4564
4564
  }, [t]);
4565
4565
  return /* @__PURE__ */ s(B, { children: Array.from(o, ([a, i]) => {
4566
4566
  const l = r[a];
4567
- return l === void 0 ? null : /* @__PURE__ */ b("div", {
4567
+ return l === void 0 ? null : /* @__PURE__ */ w("div", {
4568
4568
  className: ih,
4569
4569
  style: {
4570
4570
  left: l.x,
@@ -4590,7 +4590,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
4590
4590
  const a = n(o.geom, r.type);
4591
4591
  return a ? a.guideMode ?? null : null;
4592
4592
  }, Mo = 1, Fo = "4 3", Wh = ({ panelRect: e }) => {
4593
- const { coordSystem: t, layers: r, scales: n } = C(z((l) => ({
4593
+ const { coordSystem: t, layers: r, scales: n } = C(j((l) => ({
4594
4594
  coordSystem: l.coordSystem,
4595
4595
  layers: l.layers,
4596
4596
  scales: l.scales
@@ -4793,8 +4793,8 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
4793
4793
  p.setHoverState(t.query(y.cursor)), p.setTooltipAnchor(_h(y.tooltip, f));
4794
4794
  return;
4795
4795
  }
4796
- const w = Si(m, f);
4797
- p.setHoverState(t.query(w)), p.setTooltipAnchor(null);
4796
+ const b = Si(m, f);
4797
+ p.setHoverState(t.query(b)), p.setTooltipAnchor(null);
4798
4798
  }, c = () => {
4799
4799
  const h = r.getState();
4800
4800
  h.hover.primary === null && h.tooltipAnchor === null || (h.setHoverState(st), h.setTooltipAnchor(null));
@@ -4854,7 +4854,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
4854
4854
  };
4855
4855
  }, [e, r]);
4856
4856
  }, ov = () => {
4857
- const e = T();
4857
+ const e = L();
4858
4858
  return A(() => (t) => ai(e, t), [e]);
4859
4859
  }, St = () => ue((e) => Ue(e, "move-drag")?.annotationId ?? Ue(e, "shape-resize-drag")?.annotationId ?? Ue(e, "arrow-endpoint-drag")?.annotationId ?? null), Je = (e) => {
4860
4860
  const t = C((i) => i.annotations), r = Bd(), n = Ld(), o = se((i) => Mr(n, "cycle", i, `Annotation reference cycle detected; dropping annotation(s): ${i.join(", ")}`), [n]), a = se((i) => Mr(n, "missing-ref", i, `Annotation reference target(s) no longer exist (dropped during compilation); dropping annotations referencing: ${i.join(", ")}`), [n]);
@@ -4894,7 +4894,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
4894
4894
  strokeDasharray: e.dashArray,
4895
4895
  strokeDashoffset: e.dashOffset
4896
4896
  } : {}, i = t.shadow === "none" ? null : t.shadow, l = t.borderWidth > 0, c = sv[o], u = t.borderColor ?? uv(t.color, c.primary, c.inverse), d = i === null ? null : dv(e, t.borderWidth, i.blur);
4897
- return /* @__PURE__ */ b("g", {
4897
+ return /* @__PURE__ */ w("g", {
4898
4898
  pointerEvents: r ? void 0 : "none",
4899
4899
  children: [
4900
4900
  r && /* @__PURE__ */ s(Oo, {
@@ -4912,7 +4912,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
4912
4912
  floodColor: i.color
4913
4913
  })
4914
4914
  }) }),
4915
- /* @__PURE__ */ b("g", {
4915
+ /* @__PURE__ */ w("g", {
4916
4916
  filter: i === null ? void 0 : `url(#${n})`,
4917
4917
  children: [
4918
4918
  l && /* @__PURE__ */ s("path", {
@@ -5001,7 +5001,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
5001
5001
  }, i.id))
5002
5002
  });
5003
5003
  }, vv = () => {
5004
- const { selectionStore: e } = j();
5004
+ const { selectionStore: e } = G();
5005
5005
  return je(e, (t) => t.selection);
5006
5006
  }, gv = ({ linePath: e, arrowheadPath: t, stroke: r, strokeWidth: n, isAddressable: o }) => {
5007
5007
  const a = {
@@ -5010,7 +5010,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
5010
5010
  strokeLinecap: "round",
5011
5011
  fill: "none"
5012
5012
  };
5013
- return /* @__PURE__ */ b("g", {
5013
+ return /* @__PURE__ */ w("g", {
5014
5014
  pointerEvents: o ? void 0 : "none",
5015
5015
  children: [
5016
5016
  o && /* @__PURE__ */ s(Oo, {
@@ -5030,7 +5030,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
5030
5030
  });
5031
5031
  }, fv = ({ x: e, y: t, text: r, box: n, label: o, arrowColor: a, isAddressable: i }) => {
5032
5032
  const { fonts: l } = Ie();
5033
- return /* @__PURE__ */ b("g", {
5033
+ return /* @__PURE__ */ w("g", {
5034
5034
  pointerEvents: i ? void 0 : "none",
5035
5035
  children: [/* @__PURE__ */ s("rect", {
5036
5036
  x: n.x,
@@ -5064,8 +5064,8 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
5064
5064
  transform: `translate(${e.x}, ${e.y})`,
5065
5065
  "data-testid": "difference-arrows",
5066
5066
  children: r.map(({ color: i, style: l, id: c, linePath: u, arrowheadPath: d, labelPosition: v, labelBox: g, labelText: h, isDragged: f, hasComparableEndpoints: m }) => {
5067
- const p = n === c || a.has(c), y = f && !m, w = y ? x.alert : i, k = p && !y ? yv(w) : w;
5068
- return /* @__PURE__ */ b("g", {
5067
+ const p = n === c || a.has(c), y = f && !m, b = y ? x.alert : i, R = p && !y ? yv(b) : b;
5068
+ return /* @__PURE__ */ w("g", {
5069
5069
  className: n === c ? pv : void 0,
5070
5070
  "data-warning": y || void 0,
5071
5071
  ...qe({
@@ -5075,7 +5075,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
5075
5075
  children: [/* @__PURE__ */ s(gv, {
5076
5076
  linePath: u,
5077
5077
  arrowheadPath: d,
5078
- stroke: k,
5078
+ stroke: R,
5079
5079
  strokeWidth: l.strokeWidth,
5080
5080
  isAddressable: t
5081
5081
  }), /* @__PURE__ */ s(fv, {
@@ -5084,14 +5084,14 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
5084
5084
  text: h,
5085
5085
  box: g,
5086
5086
  label: l.label,
5087
- arrowColor: k,
5087
+ arrowColor: R,
5088
5088
  isAddressable: t
5089
5089
  })]
5090
5090
  }, c);
5091
5091
  })
5092
5092
  });
5093
5093
  }, yv = (e) => `color-mix(in srgb, ${e} ${mv}, ${x.textPrimary})`, xv = () => {
5094
- const e = T();
5094
+ const e = L();
5095
5095
  return A(() => (t) => fi(e, t), [e]);
5096
5096
  }, bv = {
5097
5097
  fill: "none",
@@ -5099,7 +5099,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
5099
5099
  cover: "xMidYMid slice"
5100
5100
  }, wv = ({ image: e, panel: t, style: r }) => {
5101
5101
  const n = V(), { src: o, region: a, fit: i } = e, l = zt(a, t), c = r.borderRadius > 0;
5102
- return /* @__PURE__ */ b("g", { children: [c && /* @__PURE__ */ s("clipPath", {
5102
+ return /* @__PURE__ */ w("g", { children: [c && /* @__PURE__ */ s("clipPath", {
5103
5103
  id: n,
5104
5104
  children: /* @__PURE__ */ s("rect", {
5105
5105
  ...l,
@@ -5134,7 +5134,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
5134
5134
  }, i.id))
5135
5135
  });
5136
5136
  }, Sv = () => {
5137
- const e = T();
5137
+ const e = L();
5138
5138
  return A(() => (t) => gn(e, t), [e]);
5139
5139
  }, kv = ({ shape: e, style: t, panel: r }) => {
5140
5140
  const n = zt(e.region, r);
@@ -5170,7 +5170,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
5170
5170
  }, i.id))
5171
5171
  });
5172
5172
  }, Rv = () => {
5173
- const e = T(), t = C((r) => r.config.appearance.textScale);
5173
+ const e = L(), t = C((r) => r.config.appearance.textScale);
5174
5174
  return A(() => (r) => yi(e, r, t), [e, t]);
5175
5175
  }, Cv = "_1aj6s5s0", Pf = "_1aj6s5s1", Ev = 0.1, Bf = ({ annotation: e, panel: t, style: r, blockRef: n }) => /* @__PURE__ */ s(Go, {
5176
5176
  annotation: e,
@@ -5183,7 +5183,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
5183
5183
  return /* @__PURE__ */ s("foreignObject", {
5184
5184
  x: a.x,
5185
5185
  y: a.y,
5186
- width: S(e.width),
5186
+ width: k(e.width),
5187
5187
  height: t.height,
5188
5188
  overflow: "visible",
5189
5189
  pointerEvents: "none",
@@ -5211,7 +5211,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
5211
5211
  ...Iv(e)
5212
5212
  }), Iv = (e) => {
5213
5213
  if (e.background === "transparent") return {};
5214
- const t = e.alpha < 1 ? O(e.background, e.alpha) : e.background;
5214
+ const t = e.alpha < 1 ? Y(e.background, e.alpha) : e.background;
5215
5215
  if (e.borderWidth <= 0) return { backgroundColor: t };
5216
5216
  const r = e.borderColor ?? bs(e.background, Ev);
5217
5217
  return {
@@ -5259,7 +5259,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
5259
5259
  })
5260
5260
  });
5261
5261
  }, Wo = () => {
5262
- const e = T(), t = C((r) => r.config.appearance.textScale);
5262
+ const e = L(), t = C((r) => r.config.appearance.textScale);
5263
5263
  return A(() => (r, n) => ci(e, r, n, t), [e, t]);
5264
5264
  }, Fv = "ph8bdc0";
5265
5265
  var Dv = "ph8bdc2", Hr = {
@@ -5280,7 +5280,7 @@ var Dv = "ph8bdc2", Hr = {
5280
5280
  });
5281
5281
  };
5282
5282
  function Ov(e) {
5283
- const t = pe(), { formattingLocale: r } = j(), n = Wo(), o = C(z((c) => ({
5283
+ const t = pe(), { formattingLocale: r } = G(), n = Wo(), o = C(j((c) => ({
5284
5284
  pinnedNumbers: c.annotations.pinnedNumbers,
5285
5285
  comments: c.annotations.comments,
5286
5286
  coordSystem: c.coordSystem,
@@ -5318,7 +5318,7 @@ function Ov(e) {
5318
5318
  ]);
5319
5319
  }
5320
5320
  var Gv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o, n).width), Or = "callouts", Wv = ({ panelRect: e }) => {
5321
- const { pinnedNumbers: t, comments: r } = C(z((h) => ({
5321
+ const { pinnedNumbers: t, comments: r } = C(j((h) => ({
5322
5322
  pinnedNumbers: h.annotations.pinnedNumbers,
5323
5323
  comments: h.annotations.comments
5324
5324
  }))), n = C((h) => h.coordSystem), o = de(), a = Sn(), i = Wo(), l = Ov(e), { store: c } = me(), u = A(() => {
@@ -5358,7 +5358,7 @@ var Gv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
5358
5358
  const f = u.get(h.id), m = v.get(h.id);
5359
5359
  if (f === void 0 || m === void 0) return null;
5360
5360
  const p = d.get(h.id), y = h.miniRect.width <= e.width && h.miniRect.height <= e.height;
5361
- return /* @__PURE__ */ b("g", {
5361
+ return /* @__PURE__ */ w("g", {
5362
5362
  "data-testid": h.kind,
5363
5363
  children: [/* @__PURE__ */ s("foreignObject", {
5364
5364
  x: h.miniRect.x,
@@ -5366,7 +5366,7 @@ var Gv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
5366
5366
  width: h.miniRect.width,
5367
5367
  height: h.miniRect.height,
5368
5368
  overflow: "visible",
5369
- children: /* @__PURE__ */ b("div", {
5369
+ children: /* @__PURE__ */ w("div", {
5370
5370
  className: y ? Hr.hittable : Hr.inert,
5371
5371
  style: Uv(m.label),
5372
5372
  children: [h.kind === "pinned-number" && /* @__PURE__ */ s("span", {
@@ -5483,7 +5483,7 @@ var Gv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
5483
5483
  }, Jv = "_1agclyl0";
5484
5484
  var Zv = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotated: a, target: i, position: l, coordType: c, backdropColor: u }) => {
5485
5485
  const d = bt(), v = a ? `rotate(-90 ${e} ${t})` : void 0, g = d[i][l], h = g.borderColor !== void 0 && (g.borderWidth ?? 0) > 0, f = eg(i, c, g), m = _v(g, f, u);
5486
- return /* @__PURE__ */ b("g", {
5486
+ return /* @__PURE__ */ w("g", {
5487
5487
  transform: v,
5488
5488
  children: [f && /* @__PURE__ */ s("rect", {
5489
5489
  className: "_1agclyl1",
@@ -5515,7 +5515,7 @@ var Zv = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
5515
5515
  if (r !== void 0)
5516
5516
  return Pa(t ? e.background : void 0, r);
5517
5517
  }, eg = (e, t, r) => r.background === void 0 ? !1 : e === "aggregate" || t === "cartesian", tg = ({ panelRect: e, formattingLocale: t, plotBottomY: r, isFooterChromeReserved: n }) => {
5518
- const o = pe(), a = Ie(), i = C(z((d) => ({
5518
+ const o = pe(), a = Ie(), i = C(j((d) => ({
5519
5519
  layers: d.layers,
5520
5520
  coordSystem: d.coordSystem,
5521
5521
  axes: d.guides.axes,
@@ -5563,7 +5563,7 @@ var Zv = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
5563
5563
  children: u
5564
5564
  });
5565
5565
  }, rg = ({ edge: e, position: t, labelRotation: r, label: n, tickLabelStyle: o }) => {
5566
- const { offset: a, textColor: i } = o, l = S(t), c = {
5566
+ const { offset: a, textColor: i } = o, l = k(t), c = {
5567
5567
  style: le(o),
5568
5568
  fill: i
5569
5569
  }, u = r !== 0 && (e === "top" || e === "bottom"), d = e === "top";
@@ -5625,7 +5625,7 @@ var Zv = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
5625
5625
  };
5626
5626
  }, ag = ({ formattedAxis: e, rect: t }) => {
5627
5627
  const r = e.position === "bottom" || e.position === "top", n = Ce(e.scaleAestheticKey), o = rr()[n], a = mo()[n];
5628
- return /* @__PURE__ */ b("svg", {
5628
+ return /* @__PURE__ */ w("svg", {
5629
5629
  x: t.x,
5630
5630
  y: t.y,
5631
5631
  width: t.width,
@@ -5633,7 +5633,7 @@ var Zv = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
5633
5633
  style: { overflow: "visible" },
5634
5634
  children: [!1, e.ticks.map((i, l) => {
5635
5635
  const c = i.formattedLabel, u = r ? i.position : 1 - i.position, d = ig(e.position, u, t, a.length);
5636
- return /* @__PURE__ */ b("g", { children: [e.ticksVisible && /* @__PURE__ */ s("line", {
5636
+ return /* @__PURE__ */ w("g", { children: [e.ticksVisible && /* @__PURE__ */ s("line", {
5637
5637
  ...d,
5638
5638
  stroke: a.color,
5639
5639
  strokeWidth: a.strokeWidth,
@@ -5648,7 +5648,7 @@ var Zv = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
5648
5648
  })]
5649
5649
  });
5650
5650
  }, ig = (e, t, r, n) => {
5651
- const o = S(t);
5651
+ const o = k(t);
5652
5652
  switch (e) {
5653
5653
  case "bottom":
5654
5654
  return {
@@ -5685,7 +5685,7 @@ var Zv = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
5685
5685
  const o = t[n.position];
5686
5686
  if (!o || !n.isVisible) return null;
5687
5687
  const a = lg(n.position, o), i = r[Ce(n.scaleAestheticKey)];
5688
- return /* @__PURE__ */ b("g", {
5688
+ return /* @__PURE__ */ w("g", {
5689
5689
  transform: `translate(${o.x}, ${o.y})`,
5690
5690
  children: [!1, /* @__PURE__ */ s("text", {
5691
5691
  style: le(i),
@@ -5717,7 +5717,7 @@ var Zv = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
5717
5717
  strokeDashoffset: "0",
5718
5718
  strokeLinecap: "round"
5719
5719
  }, ug = ({ axes: e, panelBorderSizes: t, panelFrameRect: r, panelRect: n }) => {
5720
- const o = T(), a = n.x - r.x, i = n.y - r.y;
5720
+ const o = L(), a = n.x - r.x, i = n.y - r.y;
5721
5721
  return /* @__PURE__ */ s("svg", {
5722
5722
  "data-testid": "grid",
5723
5723
  x: r.x,
@@ -5761,7 +5761,7 @@ var Zv = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
5761
5761
  })
5762
5762
  });
5763
5763
  }, hg = (e, t) => t <= 0 ? e ? "left" : "bottom" : t >= 1 ? e ? "right" : "top" : null, vg = ({ sizes: e, panelFrameRect: t }) => {
5764
- const r = C((i) => i.coordSystem.type === "polar"), n = T(), o = A(() => hn(n), [n]);
5764
+ const r = C((i) => i.coordSystem.type === "polar"), n = L(), o = A(() => hn(n), [n]);
5765
5765
  if (r) return null;
5766
5766
  const a = La(o, {
5767
5767
  x: e.left / 2,
@@ -5818,7 +5818,7 @@ var Yo = (e, t) => {
5818
5818
  const r = rr(), n = Yo(t, e);
5819
5819
  if (!n) return null;
5820
5820
  const { circle: o, circularAxis: a, radialAxis: i, startAngle: l, angleFor: c, radiusNormFor: u } = n, d = Ag(i, u, o.radius), v = (g) => r[Ce(g.scaleAestheticKey)];
5821
- return /* @__PURE__ */ b("svg", {
5821
+ return /* @__PURE__ */ w("svg", {
5822
5822
  x: t.x,
5823
5823
  y: t.y,
5824
5824
  width: t.width,
@@ -5873,10 +5873,10 @@ var Yo = (e, t) => {
5873
5873
  const t = Math.sin(e);
5874
5874
  return Math.abs(t) < 0.01 ? "middle" : t > 0 ? "start" : "end";
5875
5875
  }, xg = ({ formattedAxes: e, panelRect: t }) => {
5876
- const r = T(), n = Yo(t, e);
5876
+ const r = L(), n = Yo(t, e);
5877
5877
  if (!n) return null;
5878
5878
  const { circle: o, circularAxis: a, radialAxis: i, innerRadius: l, angleFor: c, radiusNormFor: u } = n, d = Lt(r, "y"), v = Lt(r, "x");
5879
- return /* @__PURE__ */ b("svg", {
5879
+ return /* @__PURE__ */ w("svg", {
5880
5880
  x: t.x,
5881
5881
  y: t.y,
5882
5882
  width: t.width,
@@ -5918,20 +5918,22 @@ var Yo = (e, t) => {
5918
5918
  ]
5919
5919
  });
5920
5920
  }, bg = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, isDimmed: n, dimStyle: o, formattingLocale: a }) => {
5921
- const i = de(), l = ad(e.id), c = i(e.geom, t.type);
5922
- if (c === null) return null;
5923
- const u = yt(c.render);
5924
- return u.overlay ? null : /* @__PURE__ */ s("g", {
5921
+ const i = de(), l = ad(e.id), { colorScheme: c } = G(), u = I(e), d = i(e.geom, t.type);
5922
+ if (d === null) return null;
5923
+ const v = yt(d.render);
5924
+ return v.overlay ? null : /* @__PURE__ */ s("g", {
5925
5925
  style: n ? {
5926
5926
  opacity: o.opacity,
5927
5927
  ...o.saturation === void 0 ? {} : { filter: `saturate(${o.saturation})` }
5928
5928
  } : void 0,
5929
- children: u.fn({
5929
+ children: v.fn({
5930
5930
  layer: e,
5931
5931
  coordSystem: t,
5932
5932
  shouldAnimateTransitions: r,
5933
5933
  formattingLocale: a,
5934
- intro: l
5934
+ intro: l,
5935
+ colorScheme: c,
5936
+ styleReaders: u
5935
5937
  })
5936
5938
  });
5937
5939
  };
@@ -5953,7 +5955,7 @@ function wg({ renderer: e, layer: t, coordSystem: r, candidates: n }) {
5953
5955
  return o;
5954
5956
  }
5955
5957
  var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n, coordSystem: o, shouldAnimateTransitions: a, panelRect: i, formattingLocale: l }) => {
5956
- const c = C((y) => y.config.numberFormat), u = A(() => wg({
5958
+ const c = C((b) => b.config.numberFormat), u = A(() => wg({
5957
5959
  renderer: e,
5958
5960
  layer: t,
5959
5961
  coordSystem: o,
@@ -5963,7 +5965,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
5963
5965
  t,
5964
5966
  o,
5965
5967
  n
5966
- ]), d = N(t), v = A(() => Da(t), [t]), g = A(() => Ra({
5968
+ ]), { colorScheme: d } = G(), v = I(t), g = A(() => Da(t), [t]), h = A(() => Ra({
5967
5969
  layer: t,
5968
5970
  numberFormat: c,
5969
5971
  locale: l
@@ -5971,36 +5973,38 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
5971
5973
  c,
5972
5974
  t,
5973
5975
  l
5974
- ]), { fonts: h } = Ie(), f = bt();
5976
+ ]), { fonts: f } = Ie(), m = bt();
5975
5977
  if (e === null || r === null && u.length === 0) return null;
5976
- const m = yt(e.render);
5977
- let p = null;
5978
- if (r && !m.overlay) {
5979
- const y = {
5978
+ const p = yt(e.render);
5979
+ let y = null;
5980
+ if (r && !p.overlay) {
5981
+ const b = {
5980
5982
  layer: r,
5981
5983
  sourceLayer: t,
5982
5984
  coordSystem: o,
5983
5985
  shouldAnimateTransitions: a,
5984
5986
  formattingLocale: l,
5985
- panelRect: i
5987
+ panelRect: i,
5988
+ colorScheme: d,
5989
+ styleReaders: v
5986
5990
  };
5987
- p = e.renderHighlight ? e.renderHighlight(y) : m.fn(y);
5991
+ y = e.renderHighlight ? e.renderHighlight(b) : p.fn(b);
5988
5992
  }
5989
- return /* @__PURE__ */ b(Vo, { children: [p, u.map(({ observation: y, observationIndex: w, anchor: k }) => /* @__PURE__ */ s(Rg, {
5990
- observation: y,
5991
- anchor: k,
5993
+ return /* @__PURE__ */ w(Vo, { children: [y, u.map(({ observation: b, observationIndex: R, anchor: S }) => /* @__PURE__ */ s(Rg, {
5994
+ observation: b,
5995
+ anchor: S,
5992
5996
  panelRect: i,
5993
- fill: d.get("color", y),
5994
- dotRadius: (d.get("size", y) ?? 8) / 2,
5995
- readSegmentY: v,
5996
- formatYValue: g,
5997
- labelStyle: f.observation.outside,
5998
- familyDefault: h.familyDefault
5999
- }, Cg(y, w)))] });
5997
+ fill: v.get("color", b),
5998
+ dotRadius: (v.get("size", b) ?? 8) / 2,
5999
+ readSegmentY: g,
6000
+ formatYValue: h,
6001
+ labelStyle: m.observation.outside,
6002
+ familyDefault: f.familyDefault
6003
+ }, Cg(b, R)))] });
6000
6004
  }, Rg = ({ observation: e, anchor: t, panelRect: r, fill: n, dotRadius: o, readSegmentY: a, formatYValue: i, labelStyle: l, familyDefault: c }) => {
6001
6005
  const u = pe(), d = fn(t.x), v = pn(t.y), g = a(e), h = rn(g) ? i(g, e) : null, f = A(() => {
6002
6006
  if (h === null) return null;
6003
- const m = u.measureText(h, K(l, c));
6007
+ const m = u.measureText(h, z(l, c));
6004
6008
  return {
6005
6009
  width: m.width + l.paddingInline * 2,
6006
6010
  height: m.height + l.paddingBlock * 2
@@ -6011,10 +6015,10 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6011
6015
  l,
6012
6016
  c
6013
6017
  ]);
6014
- return /* @__PURE__ */ b(B, { children: [/* @__PURE__ */ s("circle", {
6018
+ return /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ s("circle", {
6015
6019
  "data-testid": "highlight-overlay-dot",
6016
- cx: S(d),
6017
- cy: S(v),
6020
+ cx: k(d),
6021
+ cy: k(v),
6018
6022
  r: o,
6019
6023
  fill: n
6020
6024
  }), h !== null && f !== null && /* @__PURE__ */ s(Uo, {
@@ -6032,29 +6036,33 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6032
6036
  const r = e[ce.group];
6033
6037
  return `${String(r ?? "")}\0${t}`;
6034
6038
  }, Eg = ({ layer: e, coordSystem: t, panelRect: r }) => {
6035
- const { primary: n, group: o, related: a } = Ve(z((u) => ({
6036
- primary: u.hover.primary,
6037
- group: u.hover.group,
6038
- related: u.hover.related
6039
- }))), i = de();
6039
+ const { primary: n, group: o, related: a } = Ve(j((v) => ({
6040
+ primary: v.hover.primary,
6041
+ group: v.hover.group,
6042
+ related: v.hover.related
6043
+ }))), i = de(), { colorScheme: l } = G(), c = I(e);
6040
6044
  if (n === null) return null;
6041
- const l = i(e.geom, t.type);
6042
- if (l === null || Gl(l)) return null;
6043
- const c = a.get(e.id) ?? [];
6044
- return n.layerId === e.id ? l.renderHover({
6045
+ const u = i(e.geom, t.type);
6046
+ if (u === null || Gl(u)) return null;
6047
+ const d = a.get(e.id) ?? [];
6048
+ return n.layerId === e.id ? u.renderHover({
6045
6049
  layer: e,
6046
6050
  coordSystem: t,
6047
6051
  primary: n,
6048
6052
  group: o,
6049
- related: c,
6050
- panelRect: r
6051
- }) : c.length === 0 ? null : l.renderHoverCompanions({
6053
+ related: d,
6054
+ panelRect: r,
6055
+ colorScheme: l,
6056
+ styleReaders: c
6057
+ }) : d.length === 0 ? null : u.renderHoverCompanions({
6052
6058
  layer: e,
6053
6059
  primary: n,
6054
- related: c
6060
+ related: d,
6061
+ colorScheme: l,
6062
+ styleReaders: c
6055
6063
  });
6056
6064
  }, Pg = (e) => {
6057
- const t = N(e);
6065
+ const t = I(e);
6058
6066
  return A(() => {
6059
6067
  const [r] = e.data;
6060
6068
  return r === void 0 ? {
@@ -6066,7 +6074,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6066
6074
  };
6067
6075
  }, [e, t]);
6068
6076
  }, Bg = "var(--to1jkx0)", Ig = "var(--to1jkx1)", Tg = "to1jkx2", Lg = "to1jkx3", Ng = ({ shouldAnimateTransitions: e, panelRect: t, formattingLocale: r }) => {
6069
- const { layers: n, coordSystem: o } = C(z((a) => ({
6077
+ const { layers: n, coordSystem: o } = C(j((a) => ({
6070
6078
  layers: a.layers,
6071
6079
  coordSystem: a.coordSystem
6072
6080
  })));
@@ -6078,7 +6086,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6078
6086
  className: Tg,
6079
6087
  "data-testid": "geom-layers",
6080
6088
  ...Wd(),
6081
- children: n.map((a) => /* @__PURE__ */ b(jt, { children: [/* @__PURE__ */ s(Hg, {
6089
+ children: n.map((a) => /* @__PURE__ */ w(jt, { children: [/* @__PURE__ */ s(Hg, {
6082
6090
  layer: a,
6083
6091
  coordSystem: o,
6084
6092
  shouldAnimateTransitions: e,
@@ -6101,15 +6109,17 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6101
6109
  a,
6102
6110
  e,
6103
6111
  t
6104
- ]), l = e.highlight, c = Pg(e), u = {
6112
+ ]), l = e.highlight, c = Pg(e), { colorScheme: u } = G(), d = {
6105
6113
  layer: e,
6106
6114
  coordSystem: t,
6107
6115
  shouldAnimateTransitions: r,
6108
- formattingLocale: o
6109
- }, d = i ? yt(i.render) : null, v = e.spatialKind === "render-hit-test", g = Fg(e);
6110
- return /* @__PURE__ */ b("g", {
6111
- className: g,
6112
- style: g === void 0 ? void 0 : Dg(c),
6116
+ formattingLocale: o,
6117
+ colorScheme: u,
6118
+ styleReaders: I(e)
6119
+ }, v = i ? yt(i.render) : null, g = e.spatialKind === "render-hit-test", h = Fg(e);
6120
+ return /* @__PURE__ */ w("g", {
6121
+ className: h,
6122
+ style: h === void 0 ? void 0 : Dg(c),
6113
6123
  children: [
6114
6124
  /* @__PURE__ */ s(bg, {
6115
6125
  layer: e,
@@ -6119,13 +6129,13 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6119
6129
  dimStyle: c,
6120
6130
  formattingLocale: o
6121
6131
  }),
6122
- v && !d?.overlay && i?.hitTest && /* @__PURE__ */ s(zl, {
6132
+ g && !v?.overlay && i?.hitTest && /* @__PURE__ */ s(zl, {
6123
6133
  hitTest: i.hitTest,
6124
- input: u
6134
+ input: d
6125
6135
  }),
6126
- v && d?.overlay && /* @__PURE__ */ s(tc, {
6127
- render: d.fn,
6128
- input: u
6136
+ g && v?.overlay && /* @__PURE__ */ s(tc, {
6137
+ render: v.fn,
6138
+ input: d
6129
6139
  }),
6130
6140
  l !== null && /* @__PURE__ */ s(kg, {
6131
6141
  renderer: i,
@@ -6140,10 +6150,10 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6140
6150
  ]
6141
6151
  });
6142
6152
  }, Og = "_17uhij30", Gg = ({ formattedAxes: e, plotRect: t, panelBorder: r, panelFrameRect: n, panelRect: o, axisRects: a, axisLabelRects: i, shouldAnimateTransitions: l, formattingLocale: c, plotBottomY: u, isFooterChromeReserved: d, isEditable: v }) => {
6143
- const g = I(null);
6153
+ const g = T(null);
6144
6154
  nv(g);
6145
- const h = ee("Grid", ug), f = ee("AxisTicks", cg), m = ee("AxisLabel", dg), p = A(() => Wt(n, t), [n, t]), y = A(() => Wt(o, t), [o, t]), w = A(() => Gr(a, t), [a, t]), k = A(() => Gr(i, t), [i, t]);
6146
- return /* @__PURE__ */ b("svg", {
6155
+ const h = ee("Grid", ug), f = ee("AxisTicks", cg), m = ee("AxisLabel", dg), p = A(() => Wt(n, t), [n, t]), y = A(() => Wt(o, t), [o, t]), b = A(() => Gr(a, t), [a, t]), R = A(() => Gr(i, t), [i, t]);
6156
+ return /* @__PURE__ */ w("svg", {
6147
6157
  ref: g,
6148
6158
  className: Og,
6149
6159
  width: t.width,
@@ -6159,11 +6169,11 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6159
6169
  }),
6160
6170
  /* @__PURE__ */ s(f, {
6161
6171
  formattedAxes: e,
6162
- tickRects: w
6172
+ tickRects: b
6163
6173
  }),
6164
6174
  /* @__PURE__ */ s(m, {
6165
6175
  formattedAxes: e,
6166
- labelRects: k
6176
+ labelRects: R
6167
6177
  }),
6168
6178
  /* @__PURE__ */ s(xg, {
6169
6179
  formattedAxes: e,
@@ -6302,7 +6312,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6302
6312
  height: 0
6303
6313
  }
6304
6314
  }, Yg = () => {
6305
- const [e, t] = G(null), [r, n] = G(null), [o, a] = G(Tt);
6315
+ const [e, t] = O(null), [r, n] = O(null), [o, a] = O(Tt);
6306
6316
  return F(() => {
6307
6317
  const i = () => {
6308
6318
  const c = e ? {
@@ -6374,7 +6384,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6374
6384
  })
6375
6385
  })
6376
6386
  }) }) }), qg = ({ width: e, height: t, animation: r, showTooltips: n = !0, mode: o = "readonly" }) => {
6377
- const a = io(), { axes: i, legends: l, layers: c, numberFormat: u, parsingLocale: d, appearance: v, annotations: g, coordSystem: h, headline: f, headlineConfig: m, content: p, overflowStrategy: y, layoutConfig: w } = C(z((Q) => ({
6387
+ const a = io(), { axes: i, legends: l, layers: c, numberFormat: u, parsingLocale: d, appearance: v, annotations: g, coordSystem: h, headline: f, headlineConfig: m, content: p, overflowStrategy: y, layoutConfig: b } = C(j((Q) => ({
6378
6388
  axes: Q.guides.axes,
6379
6389
  legends: Q.guides.legends.drawn,
6380
6390
  layers: Q.layers,
@@ -6388,7 +6398,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6388
6398
  content: Q.config.content,
6389
6399
  overflowStrategy: Q.config.panel.overflow,
6390
6400
  layoutConfig: Q.config.layout
6391
- }))), k = Ci(), { intro: R, transitions: P } = A(() => nc(r, k ?? !1), [r, k]), { headerRef: E, footerRef: L, measurements: M } = Yg(), { formattingLocale: W, colorScheme: Y, themeOverrides: Te } = j(), Ae = o === "editable", [ye, Ko] = G(null), ar = A(() => Un(Y, Te), [Y, Te]), zo = ee("Header", Eu), jo = ee("Footer", xu), Xo = ee("Legend", Oh), qo = ee("Headline", qu), Jo = ee("EditorSurface", zg), ir = A(() => Wa({
6401
+ }))), R = Ci(), { intro: S, transitions: P } = A(() => nc(r, R ?? !1), [r, R]), { headerRef: E, footerRef: N, measurements: M } = Yg(), { formattingLocale: W, colorScheme: K, themeOverrides: Te } = G(), Ae = o === "editable", [ye, Ko] = O(null), ar = A(() => Un(K, Te), [K, Te]), zo = ee("Header", Eu), jo = ee("Footer", xu), Xo = ee("Legend", Oh), qo = ee("Headline", qu), Jo = ee("EditorSurface", zg), ir = A(() => Wa({
6392
6402
  legends: l,
6393
6403
  numberFormat: u,
6394
6404
  parsingLocale: d,
@@ -6412,7 +6422,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6412
6422
  d,
6413
6423
  W,
6414
6424
  a
6415
- ]), Zo = pe(), Ze = T(), $e = A(() => cn(Ze), [Ze]), sr = A(() => hn(Ze), [Ze]), lr = Bo(), kt = $e.borderColor === void 0 ? 0 : $e.borderWidth, Ne = A(() => ({
6425
+ ]), Zo = pe(), Ze = L(), $e = A(() => cn(Ze), [Ze]), sr = A(() => hn(Ze), [Ze]), lr = Bo(), kt = $e.borderColor === void 0 ? 0 : $e.borderWidth, Ne = A(() => ({
6416
6426
  width: Math.max(0, e - 2 * kt),
6417
6427
  height: Math.max(0, t - 2 * kt)
6418
6428
  }), [
@@ -6453,7 +6463,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6453
6463
  coordSystem: h,
6454
6464
  textScale: v.textScale,
6455
6465
  overflowStrategy: y,
6456
- layout: w,
6466
+ layout: b,
6457
6467
  panelBorder: dr
6458
6468
  }), et = A(() => !Me || !xe || !_e ? null : gi({
6459
6469
  headline: xe,
@@ -6471,7 +6481,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6471
6481
  if (!Me) return null;
6472
6482
  const { layout: X, formattedAxes: ta, plotBottomY: ra } = Me, na = X.footer.height > 0;
6473
6483
  return /* @__PURE__ */ s(Ec, {
6474
- colorScheme: Y,
6484
+ colorScheme: K,
6475
6485
  themeOverrides: Te,
6476
6486
  textScale: v.textScale,
6477
6487
  graphBackground: $e.background,
@@ -6487,8 +6497,8 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6487
6497
  width: "100%",
6488
6498
  height: "100%"
6489
6499
  },
6490
- children: /* @__PURE__ */ b(nd, {
6491
- intro: R,
6500
+ children: /* @__PURE__ */ w(nd, {
6501
+ intro: S,
6492
6502
  children: [
6493
6503
  /* @__PURE__ */ s(zo, {
6494
6504
  ref: E,
@@ -6515,7 +6525,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6515
6525
  isEditable: Ae
6516
6526
  }),
6517
6527
  /* @__PURE__ */ s(jo, {
6518
- ref: L,
6528
+ ref: N,
6519
6529
  footerRect: X.footer,
6520
6530
  mode: o,
6521
6531
  caption: p.caption,
@@ -6560,7 +6570,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6560
6570
  subscribeSelection: t.selectionStore.subscribe
6561
6571
  } : null), [e, t]);
6562
6572
  }, Lf = (e) => Ri(e.subscribe, e.getCompiled, e.getCompiled), Nf = () => {
6563
- const { commands: e } = j();
6573
+ const { commands: e } = G();
6564
6574
  return e;
6565
6575
  }, Mf = (e) => {
6566
6576
  if (e.altKey || !e.metaKey && !e.ctrlKey) return null;
@@ -6577,8 +6587,9 @@ export {
6577
6587
  To as D,
6578
6588
  He as Dt,
6579
6589
  Gu as E,
6580
- T as Et,
6590
+ L as Et,
6581
6591
  ue as F,
6592
+ G as Ft,
6582
6593
  Td as G,
6583
6594
  yf as H,
6584
6595
  Rf as I,
@@ -6586,13 +6597,13 @@ export {
6586
6597
  Bd as K,
6587
6598
  Ue as L,
6588
6599
  vu as M,
6589
- C as Mt,
6600
+ I as Mt,
6590
6601
  qd as N,
6591
- bn as Nt,
6602
+ C as Nt,
6592
6603
  Eu as O,
6593
6604
  bs as Ot,
6594
6605
  kf as P,
6595
- j as Pt,
6606
+ bn as Pt,
6596
6607
  Ic as Q,
6597
6608
  Sf as R,
6598
6609
  jh as S,