@graphysdk/react-renderer 1.9.0-beta.1788784687575 → 1.9.0-beta.1788802947113

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,6 +1,6 @@
1
1
  import { a as Wr, c as oa, f as x, i as aa, l as Vr, n as Ur, o as ia, r as sa, s as Qr, t as la, u as Yr } from "./dev.utils-HBVa4Fj9.js";
2
- import { ANNOTATION_TOOLTIP_MARKER_GAP as ca, AXIS_KEYS as Wt, CachedTextMeasurer as dr, DATA_LABEL_POSITIONS as da, DATA_LABEL_ROLES as ua, DEFAULT_GEOM_COLOR as Kr, 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 ur, alignUnitFractions as zr, areAnchorsEqual as ma, areEditMenuTriggersEqual as Aa, areEndpointsComparable as hr, arePointerRegionListsEqual as ya, buildAverageLineSymbols as xa, buildCalloutHitRegions as ba, buildColumnKey as Vt, buildDataLabelsContent as wa, buildFontString as Sa, buildLayerIntroPlan as ka, buildLayerYValueFormatter as Ra, buildPinnedNumberValueFormatter as Ca, buildPolarBarArcPath as ge, buildSliceGroupKey as Ut, buildTooltipContent as Ea, compositeColor as Pa, computeArrow as Ba, computeDifferenceArrow as Ia, computeDirectLabelsLayout as Ta, computeLineBoxHeight as fe, computePanelBorderPaths as Na, computePanelBorderSizes as La, countLayerGeoms as Ma, createAreaPathGenerators as jr, createHeadlineItemRows as Xr, createLineFillAreaGenerator as Fa, createLinePathGenerator as qr, createSegmentYReader as Da, createStableCellKeyGenerator as Oa, createStableKeyGenerator as oe, createStyleResolver as gt, findAnnotation as Ha, findPointerRegion as vr, formatHeadline as Ga, formatLegends as Wa, formatRuleValue as Va, getAestheticFromScaleAestheticKey as Ce, getAlpha as Jr, getAngleExtent as Qt, getBarRectBounds as Ke, getBoundingRect as Zr, getChromeDashArray as ft, getColor as $r, getDashArray as Ee, getDifferenceArrowLabelBox as Ua, getGroup as pt, getHoverGuideLineProps as Qa, getHoverGuideRectProps as Ya, getInsetTileRect as _r, 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 en, isAnnotationMovable as $a, isDefined as tn, isFullTurnSweep as rn, isSafeUrl as Yt, orderPointerRegions as _a, paintsInDonutHole as ei, pickReadableTextColor as nn, placeCallouts as ti, polarToUnit as ri, positionToAngle as ni, prepareAreaObservations as on, prepareLineObservations as an, projectAnchorToPanel as Qe, projectRegionToPanel as Kt, readAnchoredObservation as oi, resolveArrowAnnotationStyle as ai, resolveArrowColor as ii, resolveAxisLabelStyle as si, resolveBarBorderRadiusPx as sn, resolveBarBorderTreatment as ze, resolveBarCornerRadiiPx as li, resolveCalloutAnnotationStyle as ci, resolveDataLabelStyle as di, resolveDeferredAnchors as ui, resolveDifferenceArrowAnnotationStyle as hi, resolveDirectLabelStyle as vi, resolveGraphChromeStyle as ln, resolveGridLineStyle as Tt, resolveHeadlineFigure as cn, resolveHeadlineItemStyle as at, resolveHeadlinePlacement as gi, resolveHeadlineStyle as dn, resolveImageAnnotationStyle as fi, resolveLegendItemStyle as pi, resolveLegendStyle as mi, resolvePanelBorderStyle as un, resolvePolarBarCornerRadiusUnit as hn, resolveRuleLabelStyle as Ai, resolveShapeAnnotationStyle as vn, resolveTextAnnotationStyle as yi, resolveTickLabelStyle as xi, resolveTickLineStyle as bi, resolveTooltipStyle as wi, toFontSpec as z, toPanelCursor as Si, toPercent as k, toViewBoxX as gn, toViewBoxY as fn, truncateToWidth as ki } from "@graphysdk/viz-engine";
3
- import { Fragment as zt, createContext as U, memo as Z, useCallback as se, useContext as D, useEffect as M, useId as V, useMemo as A, useRef as I, useState as H, useSyncExternalStore as Ri } from "react";
2
+ import { ANNOTATION_TOOLTIP_MARKER_GAP as ca, AXIS_KEYS as Gt, CachedTextMeasurer as dr, DATA_LABEL_POSITIONS as da, DATA_LABEL_ROLES as ua, DEFAULT_GEOM_COLOR as Kr, 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 ur, alignUnitFractions as zr, areAnchorsEqual as ma, areEditMenuTriggersEqual as Aa, areEndpointsComparable as hr, arePointerRegionListsEqual as ya, buildAverageLineSymbols as xa, buildCalloutHitRegions as ba, buildColumnKey as Wt, buildDataLabelsContent as wa, buildFontString as Sa, buildLayerIntroPlan as ka, buildLayerYValueFormatter as Ra, buildPinnedNumberValueFormatter as Ca, buildPolarBarArcPath as ge, buildSliceGroupKey as Vt, buildTooltipContent as Ea, compositeColor as Pa, computeArrow as Ba, computeDifferenceArrow as Ia, computeDirectLabelsLayout as Ta, computeLineBoxHeight as fe, computePanelBorderPaths as Na, computePanelBorderSizes as La, countLayerGeoms as Ma, createAreaPathGenerators as jr, createHeadlineItemRows as Xr, createLineFillAreaGenerator as Fa, createLinePathGenerator as qr, createSegmentYReader as Da, createStableCellKeyGenerator as Oa, createStableKeyGenerator as oe, createStyleResolver as gt, findAnnotation as Ha, findPointerRegion as vr, formatHeadline as Ga, formatLegends as Wa, formatRuleValue as Va, getAestheticFromScaleAestheticKey as Ce, getAlpha as Jr, getAngleExtent as Ut, getBarRectBounds as Ke, getBoundingRect as Zr, getChromeDashArray as ft, getColor as $r, getDashArray as Ee, getDifferenceArrowLabelBox as Ua, getGroup as pt, getHoverGuideLineProps as Qa, getHoverGuideRectProps as Ya, getInsetTileRect as _r, 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 en, isAnnotationMovable as $a, isDefined as tn, isFullTurnSweep as rn, isSafeUrl as Qt, orderPointerRegions as _a, paintsInDonutHole as ei, pickReadableTextColor as nn, placeCallouts as ti, polarToUnit as ri, positionToAngle as ni, prepareAreaObservations as on, prepareLineObservations as an, projectAnchorToPanel as Qe, projectRegionToPanel as Yt, readAnchoredObservation as oi, resolveArrowAnnotationStyle as ai, resolveArrowColor as ii, resolveAxisLabelStyle as si, resolveBarBorderRadiusPx as sn, resolveBarBorderTreatment as ze, resolveBarCornerRadiiPx as li, resolveCalloutAnnotationStyle as ci, resolveDataLabelStyle as di, resolveDeferredAnchors as ui, resolveDifferenceArrowAnnotationStyle as hi, resolveDirectLabelStyle as vi, resolveGraphChromeStyle as ln, resolveGridLineStyle as It, resolveHeadlineFigure as cn, resolveHeadlineItemStyle as at, resolveHeadlinePlacement as gi, resolveHeadlineStyle as dn, resolveImageAnnotationStyle as fi, resolveLegendItemStyle as pi, resolveLegendStyle as mi, resolvePanelBorderStyle as un, resolvePolarBarCornerRadiusUnit as hn, resolveRuleLabelStyle as Ai, resolveShapeAnnotationStyle as vn, resolveTextAnnotationStyle as yi, resolveTickLabelStyle as xi, resolveTickLineStyle as bi, resolveTooltipStyle as wi, toFontSpec as z, toPanelCursor as Si, toPercent as k, toViewBoxX as gn, toViewBoxY as fn, truncateToWidth as ki } from "@graphysdk/viz-engine";
3
+ import { Fragment as Kt, createContext as U, memo as Z, useCallback as se, useContext as D, useEffect as M, useId as V, useMemo as A, useRef as I, useState as H, useSyncExternalStore as Ri } from "react";
4
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 O, useMotionValue as _, useReducedMotion as Ci, useTransform as tt } from "motion/react";
@@ -12,7 +12,7 @@ import { createPortal as mn } from "react-dom";
12
12
  import Ye, { clsx as He } from "clsx";
13
13
  import Ti from "lodash-es/merge";
14
14
  import { IntlProvider as Ni } from "react-intl";
15
- import { flip as Nt, offset as Lt, shift as Mt, useFloating as An } from "@floating-ui/react-dom";
15
+ import { flip as Tt, offset as Nt, shift as Lt, useFloating as An } from "@floating-ui/react-dom";
16
16
  import { assignInlineVars as yn } from "@vanilla-extract/dynamic";
17
17
  import { getContrast as Li } from "color2k";
18
18
  import './history-chords.css';var gr = Object.defineProperty, Mi = (e, t) => {
@@ -24,7 +24,7 @@ import './history-chords.css';var gr = Object.defineProperty, Mi = (e, t) => {
24
24
  });
25
25
  return t || gr(r, Symbol.toStringTag, { value: "Module" }), r;
26
26
  };
27
- typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1788784687575");
27
+ typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1788802947113");
28
28
  function Fi(e) {
29
29
  for (const t of e) (t.severity === "error" ? console.error : console.warn)(`[graphy] ${t.code}: ${t.message}`, t);
30
30
  }
@@ -77,7 +77,7 @@ var bn = (e) => {
77
77
  x: r.centerX + n.x * r.radius,
78
78
  y: r.centerY - n.y * r.radius
79
79
  };
80
- }, jt = (e, t) => ({
80
+ }, zt = (e, t) => ({
81
81
  x: gn(e),
82
82
  y: fn(t)
83
83
  }), re = (e, t) => {
@@ -86,7 +86,7 @@ var bn = (e) => {
86
86
  x: (r.x + 1) / 2,
87
87
  y: (r.y + 1) / 2
88
88
  };
89
- }, Oi = 2, Hi = 0.7, he = ({ hit: e, project: t = jt }) => {
89
+ }, Oi = 2, Hi = 0.7, he = ({ hit: e, project: t = zt }) => {
90
90
  const r = bn(e.layerId);
91
91
  if (!e.anchored) return null;
92
92
  const n = r?.get("color", e.observation) ?? Kr, o = (Jr(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);
@@ -105,7 +105,7 @@ var bn = (e) => {
105
105
  stiffness: 500,
106
106
  damping: 60,
107
107
  mass: 1
108
- }, Gi = { duration: 0 }, Xt = (e) => e ? ne : Gi, Ft = (e, t) => {
108
+ }, Gi = { duration: 0 }, jt = (e) => e ? ne : Gi, Mt = (e, t) => {
109
109
  const r = _(e);
110
110
  return M(() => {
111
111
  const n = Ei(r.get(), e);
@@ -135,7 +135,7 @@ var bn = (e) => {
135
135
  strokeDasharray: l,
136
136
  vectorEffect: "non-scaling-stroke"
137
137
  })] }), Vi = ({ fillPath: e, linePath: t, fill: r, fillOpacity: n, stroke: o, strokeWidth: a, strokeOpacity: i, strokeDasharray: l }) => {
138
- const c = Ft(e, ne), d = Ft(t, ne);
138
+ const c = Mt(e, ne), d = Mt(t, ne);
139
139
  return /* @__PURE__ */ w("g", { children: [/* @__PURE__ */ s(O.path, {
140
140
  d: c,
141
141
  fill: r,
@@ -150,7 +150,7 @@ var bn = (e) => {
150
150
  strokeDasharray: l,
151
151
  vectorEffect: "non-scaling-stroke"
152
152
  })] });
153
- }, qt = (e, t) => {
153
+ }, Xt = (e, t) => {
154
154
  const r = (t !== void 0 ? e.delayByKey[t] : void 0) ?? 0;
155
155
  return {
156
156
  duration: e.durationSeconds,
@@ -255,7 +255,7 @@ var bn = (e) => {
255
255
  strokeOpacity: a,
256
256
  strokeDasharray: i,
257
257
  shouldAnimateTransitions: l
258
- }), qi = "_324dw20", Cn = 1, Ji = 0.4, Zi = 0.2, $i = 1, _i = 0.5, es = 2.25, Pe = ({ hit: e, project: t = jt, ...r }) => {
258
+ }), qi = "_324dw20", Cn = 1, Ji = 0.4, Zi = 0.2, $i = 1, _i = 0.5, es = 2.25, Pe = ({ hit: e, project: t = zt, ...r }) => {
259
259
  const n = bn(e.layerId);
260
260
  if (!e.anchored) return null;
261
261
  const o = n?.get("color", e.observation) ?? Kr, a = Jr(e.observation) ?? 1, i = n?.get("borderColor", e.observation, "hovered") ?? vt, l = t(e.x, e.y), c = k(l.x), d = k(l.y), u = ts(e.observation, n), { ringRadius: g, ringWidth: v } = rs(u);
@@ -372,11 +372,11 @@ var bn = (e) => {
372
372
  y: r
373
373
  };
374
374
  }
375
- }, Dt = (e, t, r) => {
376
- const n = r === void 0 ? e.activeIntro : r, o = I(n ? qt(n, t) : null), a = I(e.shouldAnimateTransitions);
375
+ }, Ft = (e, t, r) => {
376
+ const n = r === void 0 ? e.activeIntro : r, o = I(n ? Xt(n, t) : null), a = I(e.shouldAnimateTransitions);
377
377
  return a.current = e.shouldAnimateTransitions, se(() => {
378
378
  const i = o.current;
379
- return o.current = null, i ?? Xt(a.current);
379
+ return o.current = null, i ?? jt(a.current);
380
380
  }, []);
381
381
  }, At = (e, t) => {
382
382
  const r = I(!0);
@@ -416,7 +416,7 @@ var bn = (e) => {
416
416
  for (const u of t.data) {
417
417
  const g = Ke(r.mainAxis, u);
418
418
  if (!g) continue;
419
- const v = Vt(r.mainAxis, g), h = d.get(v), f = {
419
+ const v = Wt(r.mainAxis, g), h = d.get(v), f = {
420
420
  key: c(u),
421
421
  ...g,
422
422
  fill: i.get("color", u),
@@ -572,7 +572,7 @@ var bn = (e) => {
572
572
  opacity: i.opacity
573
573
  } : !1,
574
574
  style: { transformBox: "view-box" },
575
- transition: c ? qt(c, t) : Xt(d),
575
+ transition: c ? Xt(c, t) : jt(d),
576
576
  fill: i.fill,
577
577
  opacity: i.opacity,
578
578
  rx: r,
@@ -613,7 +613,7 @@ var bn = (e) => {
613
613
  strokeWidth: o,
614
614
  opacity: a
615
615
  }), ls = (e, t, r) => {
616
- const n = t.activeIntro ? En(e, t.activeIntro) : e, o = _(n.x), a = _(n.y), i = _(n.width), l = _(n.height), c = Dt(t, r);
616
+ const n = t.activeIntro ? En(e, t.activeIntro) : e, o = _(n.x), a = _(n.y), i = _(n.width), l = _(n.height), c = Ft(t, r);
617
617
  return M(() => {
618
618
  const d = c(), u = [
619
619
  ie(o, e.x, d),
@@ -652,7 +652,7 @@ var ds = "_1suo8ub0", Pn = (e, t, r) => {
652
652
  for (const a of e.data) {
653
653
  const i = Ke(t, a);
654
654
  if (!i) continue;
655
- const l = Vt(t, i), c = n.get(l);
655
+ const l = Wt(t, i), c = n.get(l);
656
656
  c === void 0 ? n.set(l, {
657
657
  firstObservation: a,
658
658
  memberBounds: [i]
@@ -666,7 +666,7 @@ var ds = "_1suo8ub0", Pn = (e, t, r) => {
666
666
  return o;
667
667
  }, Bn = (e, t, r, n) => {
668
668
  const o = Ke(t, n);
669
- return o ? e.get(Vt(t, o)) ?? {
669
+ return o ? e.get(Wt(t, o)) ?? {
670
670
  style: Be(r, n),
671
671
  bounds: o
672
672
  } : null;
@@ -754,7 +754,7 @@ var ds = "_1suo8ub0", Pn = (e, t, r) => {
754
754
  }, i(c)));
755
755
  }
756
756
  return l;
757
- }, Rt = 3, vs = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
757
+ }, kt = 3, vs = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
758
758
  const o = T(e), a = V(), i = V(), l = V(), c = A(() => Pn(e, t.mainAxis, o), [
759
759
  e,
760
760
  t.mainAxis,
@@ -765,7 +765,7 @@ var ds = "_1suo8ub0", Pn = (e, t, r) => {
765
765
  borderRadius: m,
766
766
  mainAxis: t.mainAxis,
767
767
  bounds: v
768
- }), b = ke(g, 0), R = ke(v, y), S = ke(Ar(g, Rt), 0), P = ke(Ar(v, Rt), y > 0 ? y + Rt : 0), E = o.get("color", r.observation), L = o.get("alpha", r.observation), F = o.get("borderColor", r.observation, "hovered") ?? vt, W = ze(f);
768
+ }), b = ke(g, 0), R = ke(v, y), S = ke(Ar(g, kt), 0), P = ke(Ar(v, kt), y > 0 ? y + kt : 0), E = o.get("color", r.observation), L = o.get("alpha", r.observation), F = o.get("borderColor", r.observation, "hovered") ?? vt, W = ze(f);
769
769
  return /* @__PURE__ */ w("g", {
770
770
  "data-testid": "hovered-bar",
771
771
  children: [
@@ -949,7 +949,7 @@ var ds = "_1suo8ub0", Pn = (e, t, r) => {
949
949
  shouldAnimateTransitions: l
950
950
  })] });
951
951
  }, As = ({ pathData: e, color: t, strokeWidth: r, opacity: n, strokeDasharray: o }) => {
952
- const a = Ft(e, ne);
952
+ const a = Mt(e, ne);
953
953
  return /* @__PURE__ */ s(O.path, {
954
954
  d: a,
955
955
  fill: "none",
@@ -1029,7 +1029,7 @@ var ds = "_1suo8ub0", Pn = (e, t, r) => {
1029
1029
  r: 0,
1030
1030
  opacity: 0
1031
1031
  } : !1,
1032
- transition: p ? qt(p, o) : Xt(y),
1032
+ transition: p ? Xt(p, o) : jt(y),
1033
1033
  fill: g,
1034
1034
  stroke: h,
1035
1035
  strokeWidth: f,
@@ -1055,7 +1055,7 @@ var ds = "_1suo8ub0", Pn = (e, t, r) => {
1055
1055
  let c = 0;
1056
1056
  for (const d of t.data) l.push(/* @__PURE__ */ s(In, {
1057
1057
  observation: d,
1058
- project: jt,
1058
+ project: zt,
1059
1059
  styleReaders: o,
1060
1060
  animation: a,
1061
1061
  introKey: i?.(d)
@@ -1238,14 +1238,14 @@ var ds = "_1suo8ub0", Pn = (e, t, r) => {
1238
1238
  weight: e.weight,
1239
1239
  style: e.style
1240
1240
  }), Is = (e, t = {}) => {
1241
- const r = Ct(e.fontFamilyDefault) ?? Ct(Ur) ?? "";
1241
+ const r = Rt(e.fontFamilyDefault) ?? Rt(Ur) ?? "";
1242
1242
  return {
1243
1243
  legendLabel: ((o) => {
1244
1244
  const a = t[o] ?? {}, i = aa[o], l = Gn(i, e);
1245
1245
  l === null && Ns(o);
1246
1246
  const c = l ?? Ts(i);
1247
1247
  return {
1248
- family: Ct(a.family) ?? r,
1248
+ family: Rt(a.family) ?? r,
1249
1249
  style: a.style ?? "normal",
1250
1250
  weight: a.weight ?? c.weight,
1251
1251
  size: a.size ?? c.size,
@@ -1265,7 +1265,7 @@ var ds = "_1suo8ub0", Pn = (e, t, r) => {
1265
1265
  const t = Gn(e, Dn);
1266
1266
  if (t === null) throw new Error("[react-renderer] Base typography leaf tokens failed to parse.");
1267
1267
  return t;
1268
- }, Ct = (e) => e === void 0 || e.includes("var(") ? null : e.replace(/\s+/g, " ").trim(), Ns = (e) => {
1268
+ }, Rt = (e) => e === void 0 || e.includes("var(") ? null : e.replace(/\s+/g, " ").trim(), Ns = (e) => {
1269
1269
  la && console.warn(`[react-renderer] The leaf tokens composing "${e}" could not be resolved to a measurable font. Measurement falls back to the token's default; paint may disagree. Leaf overrides must be concrete values (px/em sizes, numeric weights, unitless line-heights).`);
1270
1270
  }, Ls = {
1271
1271
  transparent: "transparent",
@@ -1502,16 +1502,16 @@ var Qn = U(Hs), Gs = ({ metrics: e, children: t }) => /* @__PURE__ */ s(Qn.Provi
1502
1502
  strokeLinecap: "round",
1503
1503
  ...e === "dashed" ? { strokeMiterlimit: 16 } : {}
1504
1504
  };
1505
- }, _s = (e, t) => rt(e) && rt(t) ? `${e}: ${t}` : rt(e) ? e : rt(t) ? t : null, rt = (e) => e != null && e.trim() !== "", Xn = Object.freeze({}), Jt = U(Xn), el = ({ slots: e, children: t }) => /* @__PURE__ */ s(Jt.Provider, {
1505
+ }, _s = (e, t) => rt(e) && rt(t) ? `${e}: ${t}` : rt(e) ? e : rt(t) ? t : null, rt = (e) => e != null && e.trim() !== "", Xn = Object.freeze({}), qt = U(Xn), el = ({ slots: e, children: t }) => /* @__PURE__ */ s(qt.Provider, {
1506
1506
  value: e ?? Xn,
1507
1507
  children: t
1508
1508
  });
1509
1509
  function ee(e, t) {
1510
- const r = D(Jt)[e];
1510
+ const r = D(qt)[e];
1511
1511
  return r === void 0 ? t : typeof r == "object" && rl(r) ? r.render : r;
1512
1512
  }
1513
1513
  function tl() {
1514
- const e = D(Jt);
1514
+ const e = D(qt);
1515
1515
  return {
1516
1516
  measureAxis: e.AxisTicks?.measure,
1517
1517
  measureAxisLabel: e.AxisLabel?.measure,
@@ -1919,7 +1919,7 @@ var nl = "_2qyyu60", ol = 2, al = 12, il = 12, xr = 1, br = 2, sl = 4, Xe = (e)
1919
1919
  "data-testid": "hovered-point",
1920
1920
  children: r
1921
1921
  }) : r;
1922
- }, Ot = (e) => {
1922
+ }, Dt = (e) => {
1923
1923
  const [t, ...r] = e;
1924
1924
  if (!t) return "";
1925
1925
  const n = r.map((o) => `L ${o.x} ${o.y}`).join(" ");
@@ -1980,9 +1980,9 @@ var nl = "_2qyyu60", ol = 2, al = 12, il = 12, xr = 1, br = 2, sl = 4, Xe = (e)
1980
1980
  }
1981
1981
  if (t.length === 0) return null;
1982
1982
  t.sort((a, i) => a.angle - i.angle);
1983
- const r = t.map((a) => a.outer), n = t.map((a) => a.inner), o = Ot(r);
1983
+ const r = t.map((a) => a.outer), n = t.map((a) => a.inner), o = Dt(r);
1984
1984
  return {
1985
- fillPath: n.some((a) => a.x !== 0 || a.y !== 0) ? `${o} ${Ot([...n].reverse())}` : o,
1985
+ fillPath: n.some((a) => a.x !== 0 || a.y !== 0) ? `${o} ${Dt([...n].reverse())}` : o,
1986
1986
  outlinePath: o
1987
1987
  };
1988
1988
  }, Rl = ({ layer: e, primary: t, companions: r }) => {
@@ -2053,7 +2053,7 @@ var nl = "_2qyyu60", ol = 2, al = 12, il = 12, xr = 1, br = 2, sl = 4, Xe = (e)
2053
2053
  const a = V(), i = At(o?.type === "grow" && (o.growAxis === "angle" || o.growAxis === "radius") ? o : null, n), l = r.bandAxis !== "x", c = T(t), d = A(() => {
2054
2054
  const u = oe(t.data, t.mapping, t.id), g = /* @__PURE__ */ new Map();
2055
2055
  for (const v of t.data) {
2056
- const h = u(v), { startAngle: f, endAngle: m } = Qt(v), { innerRadius: p, outerRadius: y } = mt(v);
2056
+ const h = u(v), { startAngle: f, endAngle: m } = Ut(v), { innerRadius: p, outerRadius: y } = mt(v);
2057
2057
  if (f === null || m === null || p === null || y === null) continue;
2058
2058
  const b = {
2059
2059
  key: h,
@@ -2063,7 +2063,7 @@ var nl = "_2qyyu60", ol = 2, al = 12, il = 12, xr = 1, br = 2, sl = 4, Xe = (e)
2063
2063
  outerRadius: y,
2064
2064
  fill: c.get("color", v),
2065
2065
  opacity: c.get("alpha", v)
2066
- }, R = Ut(r.bandAxis, b), S = g.get(R);
2066
+ }, R = Vt(r.bandAxis, b), S = g.get(R);
2067
2067
  S ? S.items.push(b) : g.set(R, {
2068
2068
  items: [b],
2069
2069
  style: Be(c, v)
@@ -2109,7 +2109,7 @@ var nl = "_2qyyu60", ol = 2, al = 12, il = 12, xr = 1, br = 2, sl = 4, Xe = (e)
2109
2109
  ...b
2110
2110
  }, W);
2111
2111
  }), P = hn(f, u.union.outerRadius - u.union.innerRadius);
2112
- if (!p && P <= 0) return /* @__PURE__ */ s(zt, { children: S }, u.key);
2112
+ if (!p && P <= 0) return /* @__PURE__ */ s(Kt, { children: S }, u.key);
2113
2113
  const E = `${a}${g}`;
2114
2114
  if (i.isAnimated) return /* @__PURE__ */ s("g", {
2115
2115
  clipPath: `url(#${E})`,
@@ -2154,7 +2154,7 @@ var nl = "_2qyyu60", ol = 2, al = 12, il = 12, xr = 1, br = 2, sl = 4, Xe = (e)
2154
2154
  innerRadius: h,
2155
2155
  outerRadius: f,
2156
2156
  cornerRadius: o
2157
- }) ?? ""), S = Dt(a, l, c);
2157
+ }) ?? ""), S = Ft(a, l, c);
2158
2158
  M(() => {
2159
2159
  const E = S(), L = [ie(m, e, E), ie(p, t, E)];
2160
2160
  return () => {
@@ -2167,7 +2167,7 @@ var nl = "_2qyyu60", ol = 2, al = 12, il = 12, xr = 1, br = 2, sl = 4, Xe = (e)
2167
2167
  t,
2168
2168
  S
2169
2169
  ]);
2170
- const P = Dt(a, l, d);
2170
+ const P = Ft(a, l, d);
2171
2171
  return M(() => {
2172
2172
  const E = P(), L = [ie(y, r, E), ie(b, n, E)];
2173
2173
  return () => {
@@ -2248,7 +2248,7 @@ var nl = "_2qyyu60", ol = 2, al = 12, il = 12, xr = 1, br = 2, sl = 4, Xe = (e)
2248
2248
  for (const a of e.data) {
2249
2249
  const i = eo(a);
2250
2250
  if (i === null) continue;
2251
- const l = Ut(t, i), c = n.get(l);
2251
+ const l = Vt(t, i), c = n.get(l);
2252
2252
  c === void 0 ? n.set(l, {
2253
2253
  firstObservation: a,
2254
2254
  innerRadius: i.innerRadius,
@@ -2262,13 +2262,13 @@ var nl = "_2qyyu60", ol = 2, al = 12, il = 12, xr = 1, br = 2, sl = 4, Xe = (e)
2262
2262
  });
2263
2263
  return o;
2264
2264
  }, $n = (e, t, r, n) => {
2265
- const o = eo(n), a = o === null ? void 0 : e.get(Ut(t, o));
2265
+ const o = eo(n), a = o === null ? void 0 : e.get(Vt(t, o));
2266
2266
  return a !== void 0 ? a : {
2267
2267
  style: Be(r, n),
2268
2268
  radialSpan: o === null ? 0 : o.outerRadius - o.innerRadius
2269
2269
  };
2270
2270
  }, _n = ({ observation: e, bandAxis: t, styleReaders: r, group: n }) => {
2271
- const o = V(), a = V(), { startAngle: i, endAngle: l } = Qt(e), { innerRadius: c, outerRadius: d } = mt(e);
2271
+ const o = V(), a = V(), { startAngle: i, endAngle: l } = Ut(e), { innerRadius: c, outerRadius: d } = mt(e);
2272
2272
  if (i === null || l === null || c === null || d === null) return null;
2273
2273
  const u = {
2274
2274
  startAngle: i,
@@ -2361,7 +2361,7 @@ var nl = "_2qyyu60", ol = 2, al = 12, il = 12, xr = 1, br = 2, sl = 4, Xe = (e)
2361
2361
  outerRadius: i
2362
2362
  };
2363
2363
  }, eo = (e) => {
2364
- const { startAngle: t, endAngle: r } = Qt(e), { innerRadius: n, outerRadius: o } = mt(e);
2364
+ const { startAngle: t, endAngle: r } = Ut(e), { innerRadius: n, outerRadius: o } = mt(e);
2365
2365
  return t === null || r === null || n === null || o === null ? null : {
2366
2366
  startAngle: t,
2367
2367
  endAngle: r,
@@ -2481,7 +2481,7 @@ var nl = "_2qyyu60", ol = 2, al = 12, il = 12, xr = 1, br = 2, sl = 4, Xe = (e)
2481
2481
  point: J(n, o)
2482
2482
  });
2483
2483
  }
2484
- return t.length === 0 ? null : (t.sort((r, n) => r.angle - n.angle), Ot(t.map((r) => r.point)));
2484
+ return t.length === 0 ? null : (t.sort((r, n) => r.angle - n.angle), Dt(t.map((r) => r.point)));
2485
2485
  }, Ol = ({ layer: e, primary: t, companions: r }) => {
2486
2486
  const n = T(e), o = pt(t.observation), a = A(() => to([...e.data.filter(ce.group, "eq", o)]), [e.data, o]);
2487
2487
  if (!a) return null;
@@ -2628,7 +2628,7 @@ function Ql(e = []) {
2628
2628
  for (const r of e) (t[r.geom] ??= {})[r.coord] = r;
2629
2629
  return (r, n) => t[r]?.[n] ?? null;
2630
2630
  }
2631
- var Ht = (e) => {
2631
+ var Ot = (e) => {
2632
2632
  const t = I(e);
2633
2633
  return t.current = e, t;
2634
2634
  }, Yl = () => {
@@ -2715,7 +2715,7 @@ var ql = ({ hitTest: e, input: t }) => {
2715
2715
  children: t
2716
2716
  });
2717
2717
  }, ec = (e, t) => {
2718
- const r = Ht(e), n = Ht(t), o = I(null), a = I(null), i = A(() => {
2718
+ const r = Ot(e), n = Ot(t), o = I(null), a = I(null), i = A(() => {
2719
2719
  const l = () => {
2720
2720
  a.current !== null && (clearTimeout(a.current), a.current = null), o.current = null;
2721
2721
  }, c = () => {
@@ -3024,7 +3024,7 @@ var oc = ({ render: e, input: t }) => {
3024
3024
  }, gc = {
3025
3025
  graph: vc,
3026
3026
  dir: "ltr"
3027
- }, Zt = {
3027
+ }, Jt = {
3028
3028
  "en-GB": uc,
3029
3029
  "en-US": hc,
3030
3030
  ar: cc,
@@ -3041,7 +3041,7 @@ var oc = ({ render: e, input: t }) => {
3041
3041
  }
3042
3042
  return c;
3043
3043
  };
3044
- }, pc = ({ locale: e, overrides: t }) => t?.dir ?? Zt[e].dir ?? "ltr", mc = (e, t) => {
3044
+ }, pc = ({ locale: e, overrides: t }) => t?.dir ?? Jt[e].dir ?? "ltr", mc = (e, t) => {
3045
3045
  let r = e;
3046
3046
  for (const n of t) {
3047
3047
  if (typeof r != "object" || r === null) return;
@@ -3052,8 +3052,8 @@ var oc = ({ render: e, input: t }) => {
3052
3052
  const t = "en-GB";
3053
3053
  if (!e) return t;
3054
3054
  const r = e.trim().replace("_", "-").toLowerCase();
3055
- return Object.keys(Zt).find((n) => n.toLowerCase() === r) ?? t;
3056
- }, ao = U(null), yc = [Zt], io = () => bc().translator, xc = ({ locale: e, children: t, i18nOverrides: r, dictionaries: n = yc }) => {
3055
+ return Object.keys(Jt).find((n) => n.toLowerCase() === r) ?? t;
3056
+ }, ao = U(null), yc = [Jt], io = () => bc().translator, xc = ({ locale: e, children: t, i18nOverrides: r, dictionaries: n = yc }) => {
3057
3057
  const o = Ac(e), a = A(() => ({
3058
3058
  translator: fc({
3059
3059
  locale: o,
@@ -3093,7 +3093,7 @@ var oc = ({ render: e, input: t }) => {
3093
3093
  themeClass: lo,
3094
3094
  inlineVarsStyle: {},
3095
3095
  themeValues: Vn("light", {})
3096
- }), $t = () => D(co), Ic = ({ colorScheme: e, themeOverrides: t = {}, textScale: r = 1, graphBackground: n, children: o }) => {
3096
+ }), Zt = () => D(co), Ic = ({ colorScheme: e, themeOverrides: t = {}, textScale: r = 1, graphBackground: n, children: o }) => {
3097
3097
  const a = A(() => Vn(e, t), [e, t]), i = A(() => {
3098
3098
  const c = { [x.textScale]: String(r) };
3099
3099
  for (const d of Object.keys(t)) {
@@ -3121,7 +3121,7 @@ var oc = ({ render: e, input: t }) => {
3121
3121
  children: o
3122
3122
  });
3123
3123
  }, Tc = ({ children: e, className: t, style: r }) => {
3124
- const { themeClass: n, inlineVarsStyle: o } = $t();
3124
+ const { themeClass: n, inlineVarsStyle: o } = Zt();
3125
3125
  return /* @__PURE__ */ s("div", {
3126
3126
  className: Ye(n, Rc, t),
3127
3127
  style: {
@@ -3150,14 +3150,14 @@ var oc = ({ render: e, input: t }) => {
3150
3150
  const r = e.content ? uo(e.content) : null;
3151
3151
  switch (e.type) {
3152
3152
  case "doc":
3153
- return /* @__PURE__ */ s(zt, { children: r }, t);
3153
+ return /* @__PURE__ */ s(Kt, { children: r }, t);
3154
3154
  case "heading": {
3155
3155
  const n = Wc(e.attrs?.level);
3156
3156
  return Vc(n, t, r, Er(e.attrs));
3157
3157
  }
3158
3158
  case "paragraph":
3159
3159
  return /* @__PURE__ */ s("p", {
3160
- "data-variant": xt(e.attrs?.variant) ?? void 0,
3160
+ "data-variant": $t(e.attrs?.variant) ?? void 0,
3161
3161
  style: ho(Er(e.attrs)),
3162
3162
  children: r
3163
3163
  }, t);
@@ -3195,8 +3195,8 @@ var oc = ({ render: e, input: t }) => {
3195
3195
  case "code":
3196
3196
  return /* @__PURE__ */ s("code", { children: t }, r);
3197
3197
  case "link": {
3198
- const n = xt(e.attrs?.href);
3199
- return Yt(n) ? /* @__PURE__ */ s("a", {
3198
+ const n = $t(e.attrs?.href);
3199
+ return Qt(n) ? /* @__PURE__ */ s("a", {
3200
3200
  className: Mc,
3201
3201
  href: n,
3202
3202
  rel: "noopener noreferrer",
@@ -3216,13 +3216,15 @@ var oc = ({ render: e, input: t }) => {
3216
3216
  }
3217
3217
  }, Hc = (e) => {
3218
3218
  if (!e) return null;
3219
- const t = {}, r = xt(e.color);
3219
+ const t = {}, r = $t(e.color);
3220
3220
  r && (t.color = r);
3221
3221
  const n = Cr(e.font) ?? Cr(e.fontFamily);
3222
3222
  n && (t.fontFamily = n);
3223
3223
  const o = Gc(e.fontSize);
3224
3224
  return o && (t.fontSize = o), Object.keys(t).length > 0 ? t : null;
3225
- }, Gc = (e) => typeof e == "number" && Number.isFinite(e) ? `${e / 10}em` : xt(e), xt = (e) => typeof e == "string" && e.length > 0 ? e : void 0, Wc = (e) => typeof e != "number" ? 3 : e < 1 ? 1 : e > 3 ? 3 : Math.round(e), Vc = (e, t, r, n) => {
3225
+ }, Gc = (e) => {
3226
+ if (typeof e == "number" && Number.isFinite(e)) return `calc(${e}px * ${x.textScale})`;
3227
+ }, $t = (e) => typeof e == "string" && e.length > 0 ? e : void 0, Wc = (e) => typeof e != "number" ? 3 : e < 1 ? 1 : e > 3 ? 3 : Math.round(e), Vc = (e, t, r, n) => {
3226
3228
  const o = ho(n);
3227
3229
  switch (e) {
3228
3230
  case 1:
@@ -3251,7 +3253,7 @@ function Ve(e) {
3251
3253
  }
3252
3254
  var Uc = "_19519k80";
3253
3255
  var Qc = "_19519k82", Yc = "_19519k83", Kc = "_19519k85", zc = "_19519k86", jc = "_19519k87", Xc = "_19519k88", qc = (e) => {
3254
- const { overlayRef: t } = me(), r = I(null), [n, o] = H(!1), a = Ht(e);
3256
+ const { overlayRef: t } = me(), r = I(null), [n, o] = H(!1), a = Ot(e);
3255
3257
  return M(() => {
3256
3258
  const i = t.current;
3257
3259
  if (!i) return;
@@ -3325,7 +3327,7 @@ var Qc = "_19519k82", Yc = "_19519k83", Kc = "_19519k85", zc = "_19519k86", jc =
3325
3327
  }), y = no();
3326
3328
  return y ? mn(/* @__PURE__ */ s(Tc, { children: p }), y) : p;
3327
3329
  }, ed = ({ content: e }) => {
3328
- const t = de(), r = C((c) => c.coordSystem), n = Sc(), o = Et(n.heading), a = Et(n.label), i = Et(n.value), l = { paddingInline: n.box.paddingInline };
3330
+ const t = de(), r = C((c) => c.coordSystem), n = Sc(), o = Ct(n.heading), a = Ct(n.label), i = Ct(n.value), l = { paddingInline: n.box.paddingInline };
3329
3331
  return /* @__PURE__ */ w("div", {
3330
3332
  className: Uc,
3331
3333
  style: td(n.box),
@@ -3366,7 +3368,7 @@ var Qc = "_19519k82", Yc = "_19519k83", Kc = "_19519k85", zc = "_19519k86", jc =
3366
3368
  })
3367
3369
  ]
3368
3370
  });
3369
- }, Et = (e) => ({
3371
+ }, Ct = (e) => ({
3370
3372
  ...le(e),
3371
3373
  color: e.textColor,
3372
3374
  lineHeight: e.lineHeight
@@ -3400,13 +3402,13 @@ var Qc = "_19519k82", Yc = "_19519k83", Kc = "_19519k85", zc = "_19519k86", jc =
3400
3402
  open: e,
3401
3403
  placement: t !== null ? t.placement : "right",
3402
3404
  middleware: t !== null ? [
3403
- Lt(ca),
3404
- Mt(nt),
3405
- Nt(nt)
3405
+ Nt(ca),
3406
+ Lt(nt),
3407
+ Tt(nt)
3406
3408
  ] : [
3407
- Lt(Jc),
3408
- Nt(nt),
3409
- Mt(nt)
3409
+ Nt(Jc),
3410
+ Tt(nt),
3411
+ Lt(nt)
3410
3412
  ],
3411
3413
  elements: { reference: r }
3412
3414
  }), ad = ({ row: e, swatchShape: t, shouldHighlight: r, labelStyle: n, valueStyle: o, paddingInline: a, highlightBackground: i }) => /* @__PURE__ */ w("div", {
@@ -3492,10 +3494,10 @@ var Qc = "_19519k82", Yc = "_19519k83", Kc = "_19519k85", zc = "_19519k86", jc =
3492
3494
  const e = N(), t = C((r) => r.config.appearance.textScale);
3493
3495
  return A(() => {
3494
3496
  const r = {};
3495
- for (const n of Wt) r[n] = si(e, n, t);
3497
+ for (const n of Gt) r[n] = si(e, n, t);
3496
3498
  return r;
3497
3499
  }, [e, t]);
3498
- }, bt = () => {
3500
+ }, xt = () => {
3499
3501
  const e = N(), t = C((r) => r.config.appearance.textScale);
3500
3502
  return A(() => {
3501
3503
  const r = {};
@@ -3519,14 +3521,14 @@ var Qc = "_19519k82", Yc = "_19519k83", Kc = "_19519k85", zc = "_19519k86", jc =
3519
3521
  const e = N(), t = C((r) => r.config.appearance.textScale);
3520
3522
  return A(() => {
3521
3523
  const r = {};
3522
- for (const n of Wt) r[n] = xi(e, n, t);
3524
+ for (const n of Gt) r[n] = xi(e, n, t);
3523
3525
  return r;
3524
3526
  }, [e, t]);
3525
3527
  }, mo = () => {
3526
3528
  const e = N();
3527
3529
  return A(() => {
3528
3530
  const t = {};
3529
- for (const r of Wt) t[r] = bi(e, r);
3531
+ for (const r of Gt) t[r] = bi(e, r);
3530
3532
  return t;
3531
3533
  }, [e]);
3532
3534
  }, ud = ({ textMeasurer: e, tickLabelStyles: t, tickLineStyles: r, familyDefault: n }) => (o) => {
@@ -3620,7 +3622,7 @@ var Qc = "_19519k82", Yc = "_19519k83", Kc = "_19519k85", zc = "_19519k86", jc =
3620
3622
  });
3621
3623
  return Math.max(...f) + v;
3622
3624
  }, kd = ({ textMeasurer: e, tickLabelStyles: t, familyDefault: r }) => (n, o) => e.measureText(n, z(t[o], r)), Rd = Object.freeze({}), Cd = ({ textMeasurer: e, textScale: t, metrics: r, overrides: n = Rd }) => {
3623
- const o = go(), a = bt(), i = po(), l = er(), c = tr(), d = mo(), u = N(), g = I(n);
3625
+ const o = go(), a = xt(), i = po(), l = er(), c = tr(), d = mo(), u = N(), g = I(n);
3624
3626
  return g.current = n, A(() => {
3625
3627
  if (!e) return null;
3626
3628
  const v = r.fonts.familyDefault, h = {
@@ -4018,7 +4020,7 @@ var yu = "xfz7dq2", xu = "xfz7dq3", bu = "xfz7dq4", wu = "xfz7dq5", Su = ({ ref:
4018
4020
  className: mu,
4019
4021
  children: e
4020
4022
  }) : /* @__PURE__ */ s(Re, { content: e }), Ru = ({ source: e }) => {
4021
- const t = Yt(e.url) ? e.url : void 0, r = e.label ?? (t !== void 0 ? Cu(t) : "");
4023
+ const t = Qt(e.url) ? e.url : void 0, r = e.label ?? (t !== void 0 ? Cu(t) : "");
4022
4024
  return r === "" && t === void 0 ? null : /* @__PURE__ */ w("span", {
4023
4025
  className: yu,
4024
4026
  children: [/* @__PURE__ */ s("span", {
@@ -4041,7 +4043,7 @@ var yu = "xfz7dq2", xu = "xfz7dq3", bu = "xfz7dq4", wu = "xfz7dq5", Su = ({ ref:
4041
4043
  } catch {
4042
4044
  return e;
4043
4045
  }
4044
- }, Eu = (e) => e.label !== void 0 && e.label !== "" || e.url !== void 0 && e.url !== "" && Yt(e.url), Pu = "_1k4qtbg0";
4046
+ }, Eu = (e) => e.label !== void 0 && e.label !== "" || e.url !== void 0 && e.url !== "" && Qt(e.url), Pu = "_1k4qtbg0";
4045
4047
  var Bu = 22, Iu = ({ ref: e, headerRect: t, mode: r = "readonly", title: n, isTitleVisible: o, subtitle: a, isSubtitleVisible: i, brandMark: l }) => {
4046
4048
  const { Title: c } = nr(), d = r === "editable" ? c : null, u = d !== null, g = o && (u || n !== null), v = i && (u || a !== null), h = l !== "hidden";
4047
4049
  return !g && !v && !h ? null : /* @__PURE__ */ w("div", {
@@ -4330,7 +4332,7 @@ var th = "_1oj6yix2", rh = 8, nh = 16, oh = 2, ah = ({ legends: e, containerRect
4330
4332
  const e = N();
4331
4333
  return A(() => mi(e), [e]);
4332
4334
  }, uh = "_1kjk02r0", hh = "_1kjk02r1", vh = "_1kjk02r2", gh = "_1kjk02r3", fh = "_1kjk02r4", ph = "_1kjk02r5", mh = "_1kjk02r6", Ah = "_1kjk02r7", yh = "_1kjk02r8";
4333
- var xh = "_1dw9dgx0", Pt = "\0", bh = (e, t) => {
4335
+ var xh = "_1dw9dgx0", Et = "\0", bh = (e, t) => {
4334
4336
  const r = [];
4335
4337
  return e.forEach((n, o) => {
4336
4338
  const a = n.aesthetics.includes("size");
@@ -4339,9 +4341,9 @@ var xh = "_1dw9dgx0", Pt = "\0", bh = (e, t) => {
4339
4341
  const u = Number(i.visual.size);
4340
4342
  if (!Number.isFinite(u) || u <= 0) continue;
4341
4343
  }
4342
- const l = i.visual.color ?? "", c = a ? `${Pt}${Number(i.visual.size)}` : "", d = i.visual.lineType;
4344
+ const l = i.visual.color ?? "", c = a ? `${Et}${Number(i.visual.size)}` : "", d = i.visual.lineType;
4343
4345
  r.push({
4344
- key: `${o}${Pt}${String(i.value)}${Pt}${l}${c}`,
4346
+ key: `${o}${Et}${String(i.value)}${Et}${l}${c}`,
4345
4347
  formattedLabel: i.formattedLabel,
4346
4348
  visual: i.visual,
4347
4349
  swatchShape: t(i.geom),
@@ -4382,9 +4384,9 @@ var xh = "_1dw9dgx0", Pt = "\0", bh = (e, t) => {
4382
4384
  open: n,
4383
4385
  placement: t,
4384
4386
  middleware: [
4385
- Lt(4),
4386
- Nt(),
4387
- Mt({ padding: 8 })
4387
+ Nt(4),
4388
+ Tt(),
4389
+ Lt({ padding: 8 })
4388
4390
  ]
4389
4391
  });
4390
4392
  M(() => {
@@ -4638,7 +4640,7 @@ var xh = "_1dw9dgx0", Pt = "\0", bh = (e, t) => {
4638
4640
  });
4639
4641
  }, Qh = ({ coordSystem: e, primary: t, panelRect: r }) => {
4640
4642
  const n = Qa(e, t);
4641
- return /* @__PURE__ */ s(wt, {
4643
+ return /* @__PURE__ */ s(bt, {
4642
4644
  panelRect: r,
4643
4645
  children: /* @__PURE__ */ s("line", {
4644
4646
  ...n,
@@ -4651,7 +4653,7 @@ var xh = "_1dw9dgx0", Pt = "\0", bh = (e, t) => {
4651
4653
  });
4652
4654
  }, Yh = ({ coordSystem: e, scales: t, primary: r, panelRect: n }) => {
4653
4655
  const o = Ya(e, t, r);
4654
- return o === null ? null : /* @__PURE__ */ s(wt, {
4656
+ return o === null ? null : /* @__PURE__ */ s(bt, {
4655
4657
  panelRect: n,
4656
4658
  children: /* @__PURE__ */ s("rect", {
4657
4659
  ...o,
@@ -4661,7 +4663,7 @@ var xh = "_1dw9dgx0", Pt = "\0", bh = (e, t) => {
4661
4663
  });
4662
4664
  }, Kh = ({ coordSystem: e, primary: t, panelRect: r }) => {
4663
4665
  const n = Sn(r), o = J(t.x, e.innerRadius, n), a = J(t.x, 1, n);
4664
- return /* @__PURE__ */ s(wt, {
4666
+ return /* @__PURE__ */ s(bt, {
4665
4667
  panelRect: r,
4666
4668
  children: /* @__PURE__ */ s("line", {
4667
4669
  x1: o.x,
@@ -4679,7 +4681,7 @@ var xh = "_1dw9dgx0", Pt = "\0", bh = (e, t) => {
4679
4681
  const n = Ka(e, t);
4680
4682
  if (n === null) return null;
4681
4683
  const o = ge(n);
4682
- return o ? /* @__PURE__ */ s(wt, {
4684
+ return o ? /* @__PURE__ */ s(bt, {
4683
4685
  panelRect: r,
4684
4686
  children: /* @__PURE__ */ s("svg", {
4685
4687
  viewBox: "-1 -1 2 2",
@@ -4694,7 +4696,7 @@ var xh = "_1dw9dgx0", Pt = "\0", bh = (e, t) => {
4694
4696
  })
4695
4697
  })
4696
4698
  }) : null;
4697
- }, wt = ({ panelRect: e, children: t }) => /* @__PURE__ */ s("svg", {
4699
+ }, bt = ({ panelRect: e, children: t }) => /* @__PURE__ */ s("svg", {
4698
4700
  x: e.x,
4699
4701
  y: e.y,
4700
4702
  width: e.width,
@@ -4735,7 +4737,7 @@ var xh = "_1dw9dgx0", Pt = "\0", bh = (e, t) => {
4735
4737
  const a = e(r).find((i) => i.id === n);
4736
4738
  return a === void 0 ? null : t(a, o);
4737
4739
  }, Do = (e, t, r = 0) => {
4738
- const n = Kt(e, t);
4740
+ const n = Yt(e, t);
4739
4741
  return {
4740
4742
  shape: "rect",
4741
4743
  rect: {
@@ -4860,19 +4862,19 @@ var xh = "_1dw9dgx0", Pt = "\0", bh = (e, t) => {
4860
4862
  cursor: ov(l, o),
4861
4863
  "data-testid": "pointer-capture-layer"
4862
4864
  });
4863
- }, ov = (e, t) => e ? "move" : t ? "pointer" : void 0, Bt = "data-hover-active", av = (e) => {
4865
+ }, ov = (e, t) => e ? "move" : t ? "pointer" : void 0, Pt = "data-hover-active", av = (e) => {
4864
4866
  const { store: t } = me(), r = je(t, (n) => n.hover.primary !== null);
4865
4867
  M(() => {
4866
4868
  const n = e.current;
4867
4869
  if (n)
4868
- return r ? n.setAttribute(Bt, "true") : n.removeAttribute(Bt), () => {
4869
- n.removeAttribute(Bt);
4870
+ return r ? n.setAttribute(Pt, "true") : n.removeAttribute(Pt), () => {
4871
+ n.removeAttribute(Pt);
4870
4872
  };
4871
4873
  }, [e, r]);
4872
4874
  }, iv = () => {
4873
4875
  const e = N();
4874
4876
  return A(() => (t) => ai(e, t), [e]);
4875
- }, St = () => ue((e) => Ue(e, "move-drag")?.annotationId ?? Ue(e, "shape-resize-drag")?.annotationId ?? Ue(e, "arrow-endpoint-drag")?.annotationId ?? null), Je = (e) => {
4877
+ }, wt = () => ue((e) => Ue(e, "move-drag")?.annotationId ?? Ue(e, "shape-resize-drag")?.annotationId ?? Ue(e, "arrow-endpoint-drag")?.annotationId ?? null), Je = (e) => {
4876
4878
  const t = C((i) => i.annotations), r = Nd(), n = Fd(), o = se((i) => Lr(n, "cycle", i, `Annotation reference cycle detected; dropping annotation(s): ${i.join(", ")}`), [n]), a = se((i) => Lr(n, "missing-ref", i, `Annotation reference target(s) no longer exist (dropped during compilation); dropping annotations referencing: ${i.join(", ")}`), [n]);
4877
4879
  return A(() => ui({
4878
4880
  annotations: t,
@@ -4906,7 +4908,7 @@ var xh = "_1dw9dgx0", Pt = "\0", bh = (e, t) => {
4906
4908
  inverse: "#1D2129"
4907
4909
  }
4908
4910
  }, dv = ({ computed: e, style: t, isAddressable: r }) => {
4909
- const n = V(), { colorScheme: o } = $t(), a = e.dashArray ? {
4911
+ const n = V(), { colorScheme: o } = Zt(), a = e.dashArray ? {
4910
4912
  strokeDasharray: e.dashArray,
4911
4913
  strokeDashoffset: e.dashOffset
4912
4914
  } : {}, i = t.shadow === "none" ? null : t.shadow, l = t.borderWidth > 0, c = cv[o], d = t.borderColor ?? vv(t.color, c.primary, c.inverse), u = i === null ? null : hv(e, t.borderWidth, i.blur);
@@ -4983,7 +4985,7 @@ var xh = "_1dw9dgx0", Pt = "\0", bh = (e, t) => {
4983
4985
  return r;
4984
4986
  }
4985
4987
  }, gv = ({ panelRect: e, isEditable: t }) => {
4986
- const { arrows: r } = Je(e), n = St(), o = iv(), a = A(() => r.filter((i) => i.id !== n).flatMap((i) => {
4988
+ const { arrows: r } = Je(e), n = wt(), o = iv(), a = A(() => r.filter((i) => i.id !== n).flatMap((i) => {
4987
4989
  const l = o(i.id), c = Ba({
4988
4990
  arrow: i,
4989
4991
  style: l,
@@ -5114,7 +5116,7 @@ var xh = "_1dw9dgx0", Pt = "\0", bh = (e, t) => {
5114
5116
  contain: "xMidYMid meet",
5115
5117
  cover: "xMidYMid slice"
5116
5118
  }, kv = ({ image: e, panel: t, style: r }) => {
5117
- const n = V(), { src: o, region: a, fit: i } = e, l = Kt(a, t), c = r.borderRadius > 0;
5119
+ const n = V(), { src: o, region: a, fit: i } = e, l = Yt(a, t), c = r.borderRadius > 0;
5118
5120
  return /* @__PURE__ */ w("g", { children: [c && /* @__PURE__ */ s("clipPath", {
5119
5121
  id: n,
5120
5122
  children: /* @__PURE__ */ s("rect", {
@@ -5129,7 +5131,7 @@ var xh = "_1dw9dgx0", Pt = "\0", bh = (e, t) => {
5129
5131
  clipPath: c ? `url(#${n})` : void 0
5130
5132
  })] });
5131
5133
  }, Mr = ({ panelRect: e, zOrder: t }) => {
5132
- const r = Je(e).images, n = wv(), o = St(), a = r.filter((i) => i.zOrder === t && i.id !== o);
5134
+ const r = Je(e).images, n = wv(), o = wt(), a = r.filter((i) => i.zOrder === t && i.id !== o);
5133
5135
  return a.length === 0 ? null : /* @__PURE__ */ s("svg", {
5134
5136
  x: e.x,
5135
5137
  y: e.y,
@@ -5153,7 +5155,7 @@ var xh = "_1dw9dgx0", Pt = "\0", bh = (e, t) => {
5153
5155
  const e = N();
5154
5156
  return A(() => (t) => vn(e, t), [e]);
5155
5157
  }, Cv = ({ shape: e, style: t, panel: r }) => {
5156
- const n = Kt(e.region, r);
5158
+ const n = Yt(e.region, r);
5157
5159
  return /* @__PURE__ */ s("rect", {
5158
5160
  x: n.x,
5159
5161
  y: n.y,
@@ -5165,7 +5167,7 @@ var xh = "_1dw9dgx0", Pt = "\0", bh = (e, t) => {
5165
5167
  strokeWidth: t.borderWidth
5166
5168
  });
5167
5169
  }, Fr = ({ panelRect: e, zOrder: t }) => {
5168
- const r = Je(e).shapes, n = Rv(), o = St(), a = r.filter((i) => i.zOrder === t && i.id !== o);
5170
+ const r = Je(e).shapes, n = Rv(), o = wt(), a = r.filter((i) => i.zOrder === t && i.id !== o);
5169
5171
  return a.length === 0 ? null : /* @__PURE__ */ s("svg", {
5170
5172
  x: e.x,
5171
5173
  y: e.y,
@@ -5245,7 +5247,7 @@ var xh = "_1dw9dgx0", Pt = "\0", bh = (e, t) => {
5245
5247
  },
5246
5248
  width: t.width
5247
5249
  }, Fv = ({ panelRect: e }) => {
5248
- const t = Lv(e), r = Ev(), n = St(), o = t.filter((a) => a.id !== n);
5250
+ const t = Lv(e), r = Ev(), n = wt(), o = t.filter((a) => a.id !== n);
5249
5251
  return o.length === 0 ? null : /* @__PURE__ */ s("svg", {
5250
5252
  x: e.x,
5251
5253
  y: e.y,
@@ -5498,7 +5500,7 @@ var Vv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
5498
5500
  });
5499
5501
  }, $v = "_1agclyl0";
5500
5502
  var _v = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotated: a, target: i, position: l, coordType: c, backdropColor: d }) => {
5501
- const u = bt(), g = a ? `rotate(-90 ${e} ${t})` : void 0, v = u[i][l], h = v.borderColor !== void 0 && (v.borderWidth ?? 0) > 0, f = rg(i, c, v), m = tg(v, f, d);
5503
+ const u = xt(), g = a ? `rotate(-90 ${e} ${t})` : void 0, v = u[i][l], h = v.borderColor !== void 0 && (v.borderWidth ?? 0) > 0, f = rg(i, c, v), m = tg(v, f, d);
5502
5504
  return /* @__PURE__ */ w("g", {
5503
5505
  transform: g,
5504
5506
  children: [f && /* @__PURE__ */ s("rect", {
@@ -5538,7 +5540,7 @@ var _v = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
5538
5540
  numberFormat: v.config.numberFormat,
5539
5541
  parsingLocale: v.config.parsingLocale,
5540
5542
  textScale: v.config.appearance.textScale
5541
- }))), l = bt(), c = A(() => Ao({
5543
+ }))), l = xt(), c = A(() => Ao({
5542
5544
  textMeasurer: o,
5543
5545
  dataLabelStyles: l,
5544
5546
  familyDefault: a.fonts.familyDefault
@@ -5752,7 +5754,7 @@ var _v = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
5752
5754
  style: { overflow: "visible" },
5753
5755
  children: e.map((l) => {
5754
5756
  if (l.geometry !== "linear" || !l.gridVisible) return null;
5755
- const c = l.position === "bottom" || l.position === "top", d = Tt(o, Ce(l.scaleAestheticKey)), u = ft(d.lineType);
5757
+ const c = l.position === "bottom" || l.position === "top", d = It(o, Ce(l.scaleAestheticKey)), u = ft(d.lineType);
5756
5758
  return /* @__PURE__ */ s("g", { children: l.ticks.map((g, v) => {
5757
5759
  const h = gg(c, g.position);
5758
5760
  if (h !== null && t[h] > 0) return null;
@@ -5900,7 +5902,7 @@ var Yo = (e, t) => {
5900
5902
  }, wg = ({ formattedAxes: e, panelRect: t }) => {
5901
5903
  const r = N(), n = Yo(t, e);
5902
5904
  if (!n) return null;
5903
- const { circle: o, circularAxis: a, radialAxis: i, innerRadius: l, angleFor: c, radiusNormFor: d } = n, u = Tt(r, "y"), g = Tt(r, "x");
5905
+ const { circle: o, circularAxis: a, radialAxis: i, innerRadius: l, angleFor: c, radiusNormFor: d } = n, u = It(r, "y"), g = It(r, "x");
5904
5906
  return /* @__PURE__ */ w("svg", {
5905
5907
  x: t.x,
5906
5908
  y: t.y,
@@ -5999,7 +6001,7 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
5999
6001
  c,
6000
6002
  t,
6001
6003
  l
6002
- ]), { fonts: f } = Ie(), m = bt();
6004
+ ]), { fonts: f } = Ie(), m = xt();
6003
6005
  if (e === null || r === null && d.length === 0) return null;
6004
6006
  const p = yt(e.render);
6005
6007
  let y = null;
@@ -6112,7 +6114,7 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6112
6114
  className: Lg,
6113
6115
  "data-testid": "geom-layers",
6114
6116
  ...Qd(),
6115
- children: n.map((a) => /* @__PURE__ */ w(zt, { children: [/* @__PURE__ */ s(Gg, {
6117
+ children: n.map((a) => /* @__PURE__ */ w(Kt, { children: [/* @__PURE__ */ s(Gg, {
6116
6118
  layer: a,
6117
6119
  coordSystem: o,
6118
6120
  shouldAnimateTransitions: e,
@@ -6180,7 +6182,7 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6180
6182
  }, Wg = "_17uhij30", Vg = ({ formattedAxes: e, plotRect: t, panelBorder: r, panelFrameRect: n, panelRect: o, axisRects: a, axisLabelRects: i, shouldAnimateTransitions: l, formattingLocale: c, plotBottomY: d, isFooterChromeReserved: u, isEditable: g }) => {
6181
6183
  const v = I(null);
6182
6184
  av(v);
6183
- const h = ee("Grid", vg), f = ee("AxisTicks", ug), m = ee("AxisLabel", hg), p = A(() => Gt(n, t), [n, t]), y = A(() => Gt(o, t), [o, t]), b = A(() => Hr(a, t), [a, t]), R = A(() => Hr(i, t), [i, t]);
6185
+ const h = ee("Grid", vg), f = ee("AxisTicks", ug), m = ee("AxisLabel", hg), p = A(() => Ht(n, t), [n, t]), y = A(() => Ht(o, t), [o, t]), b = A(() => Hr(a, t), [a, t]), R = A(() => Hr(i, t), [i, t]);
6184
6186
  return /* @__PURE__ */ w("svg", {
6185
6187
  ref: v,
6186
6188
  className: Wg,
@@ -6257,14 +6259,14 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6257
6259
  /* @__PURE__ */ s(nv, { panelRect: y })
6258
6260
  ]
6259
6261
  });
6260
- }, Gt = (e, t) => ({
6262
+ }, Ht = (e, t) => ({
6261
6263
  x: e.x - t.x,
6262
6264
  y: e.y - t.y,
6263
6265
  width: e.width,
6264
6266
  height: e.height
6265
6267
  }), Hr = (e, t) => {
6266
6268
  const r = {};
6267
- for (const [n, o] of Object.entries(e)) r[n] = Gt(o, t);
6269
+ for (const [n, o] of Object.entries(e)) r[n] = Ht(o, t);
6268
6270
  return r;
6269
6271
  }, Ug = (e) => {
6270
6272
  let t, r;
@@ -6337,7 +6339,7 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6337
6339
  height: n.height
6338
6340
  }
6339
6341
  };
6340
- }, Kg = { mode: "responsive" }, It = {
6342
+ }, Kg = { mode: "responsive" }, Bt = {
6341
6343
  headerSize: {
6342
6344
  width: 0,
6343
6345
  height: 0
@@ -6347,16 +6349,16 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6347
6349
  height: 0
6348
6350
  }
6349
6351
  }, zg = () => {
6350
- const [e, t] = H(null), [r, n] = H(null), [o, a] = H(It);
6352
+ const [e, t] = H(null), [r, n] = H(null), [o, a] = H(Bt);
6351
6353
  return M(() => {
6352
6354
  const i = () => {
6353
6355
  const c = e ? {
6354
6356
  width: e.offsetWidth,
6355
6357
  height: e.offsetHeight
6356
- } : It.headerSize, d = r ? {
6358
+ } : Bt.headerSize, d = r ? {
6357
6359
  width: r.offsetWidth,
6358
6360
  height: r.offsetHeight
6359
- } : It.footerSize;
6361
+ } : Bt.footerSize;
6360
6362
  a((u) => jg(u, {
6361
6363
  headerSize: c,
6362
6364
  footerSize: d
@@ -6374,7 +6376,7 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6374
6376
  measurements: o
6375
6377
  };
6376
6378
  }, jg = (e, t) => e.headerSize.width !== t.headerSize.width || e.headerSize.height !== t.headerSize.height || e.footerSize.width !== t.footerSize.width || e.footerSize.height !== t.footerSize.height, Xg = () => null, qg = ({ graphChrome: e, isEditable: t, style: r, contentRef: n, children: o }) => {
6377
- const { themeClass: a, inlineVarsStyle: i } = $t(), l = e.borderColor === void 0 ? 0 : e.borderWidth, c = l > 0 ? e.borderColor : void 0, d = Math.max(0, e.borderRadius), u = d === 0 ? 0 : d + l, g = A(() => ({
6379
+ const { themeClass: a, inlineVarsStyle: i } = Zt(), l = e.borderColor === void 0 ? 0 : e.borderWidth, c = l > 0 ? e.borderColor : void 0, d = Math.max(0, e.borderRadius), u = d === 0 ? 0 : d + l, g = A(() => ({
6378
6380
  ...r,
6379
6381
  borderRadius: `${u}px`,
6380
6382
  ...i,
@@ -6457,13 +6459,13 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6457
6459
  u,
6458
6460
  W,
6459
6461
  a
6460
- ]), Zo = pe(), Ze = N(), $e = A(() => ln(Ze), [Ze]), ir = A(() => un(Ze), [Ze]), sr = Bo(), kt = $e.borderColor === void 0 ? 0 : $e.borderWidth, Le = A(() => ({
6461
- width: Math.max(0, e - 2 * kt),
6462
- height: Math.max(0, t - 2 * kt)
6462
+ ]), Zo = pe(), Ze = N(), $e = A(() => ln(Ze), [Ze]), ir = A(() => un(Ze), [Ze]), sr = Bo(), St = $e.borderColor === void 0 ? 0 : $e.borderWidth, Le = A(() => ({
6463
+ width: Math.max(0, e - 2 * St),
6464
+ height: Math.max(0, t - 2 * St)
6463
6465
  }), [
6464
6466
  e,
6465
6467
  t,
6466
- kt
6468
+ St
6467
6469
  ]), lr = A(() => pu(p.brandMark.enabled, Le, p.brandMark.variant), [
6468
6470
  p.brandMark.enabled,
6469
6471
  p.brandMark.variant,
@@ -6666,7 +6668,7 @@ export {
6666
6668
  Ev as f,
6667
6669
  no as ft,
6668
6670
  wv as g,
6669
- Ht as gt,
6671
+ Ot as gt,
6670
6672
  kv as h,
6671
6673
  me as ht,
6672
6674
  Lf as i,
@@ -6680,7 +6682,7 @@ export {
6680
6682
  Rv as m,
6681
6683
  jl as mt,
6682
6684
  Ff as n,
6683
- $t as nt,
6685
+ Zt as nt,
6684
6686
  Jg as o,
6685
6687
  io as ot,
6686
6688
  Cv as p,
@@ -6689,7 +6691,7 @@ export {
6689
6691
  Mf as r,
6690
6692
  Bc as rt,
6691
6693
  vg as s,
6692
- Zt as st,
6694
+ Jt as st,
6693
6695
  Df as t,
6694
6696
  Ic as tt,
6695
6697
  Tf as u,