@graphysdk/react-renderer 1.9.0-beta.1791811201637 → 1.9.0-beta.1791817361884

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,5 +1,5 @@
1
1
  import { ANNOTATION_TOOLTIP_MARKER_GAP_PX as cs, CachedTextMeasurer as Hn, DATA_LABEL_ROLES as us, DEFAULT_GEOM_COLOR as Wr, DEFAULT_HOVER_AFFORDANCE_COLOR as Gr, DEFAULT_POINT_SIZE_PX as $e, GROUP_VARIABLES as ne, HeuristicTextMeasurer as hs, HoverEngine as vs, InternalError as gs, LayoutCompiler as fs, NAMED_WEIGHTS as ct, POLAR_RIM_LABEL_GAP_PX as ps, POSITION_VARIABLES as ut, RESOLVED_DATA_LABEL_POSITIONS as ms, RESTING_HOVER_STATE as Wt, VISUAL_VARIABLES as Fn, alignUnitFractions as Oo, applyTextTransform as St, areAnchorsEqual as ys, areEditMenuTriggersEqual as As, areEditTargetsEqual as pt, areEndpointsComparable as Dn, arePointerRegionListsEqual as xs, arePredicatesEqual as No, buildAverageLineSymbols as bs, buildBarRectBounds as Ss, buildCalloutHitRegions as ws, buildColumnKey as Vr, buildDataLabelsContent as ks, buildFontString as Es, buildHeadlineItemRows as Ho, buildLayerIntroPlan as Ps, buildObservationsTarget as Rs, buildPointSymbolInBox as Cs, buildPointSymbolPath as Bs, buildPolarBarArcPath as De, buildSliceGroupKey as zr, buildTooltipContent as Is, compositeColor as mr, computeArrow as Ls, computeDifferenceArrow as Ts, computeDirectLabelsLayout as Ms, computeLetterSpacingWidth as Os, computeLineBoxHeight as We, computePanelBorderPaths as Ns, computePanelBorderSizes as Hs, countLayerGeoms as Fs, createAreaPathGenerators as Ur, createDataLabelPlacementResolver as Ds, createLayerYValueFormatter as Ws, createLineFillAreaGenerator as Gs, createLinePathGenerator as Yr, createPinnedNumberValueFormatter as Vs, createSegmentYReader as zs, createStableCellKeyGenerator as Us, createStableKeyGenerator as Se, ensureReadableTextColor as jr, findAnnotation as Ys, findLayerById as Xt, findPointerRegion as Wn, formatHeadline as js, formatLegends as Ks, formatRuleValue as Qs, getAestheticFromScaleAestheticKey as xe, getAlpha as Fo, getAngleExtent as Xs, getBarRectBounds as qt, getBoundingRect as qs, getDifferenceArrowLabelBox as Js, getGroup as ze, getHoverGuideLineProps as Zs, getHoverGuideRectProps as $s, getPaintedTileRect as Kr, getPointSymbolOuterRadius as _s, getPolarHoverGuideArcProps as el, getRadiusExtent as Do, getShapeAnnotationStroke as tl, getSize as rl, getStackRole as nl, getUnionExtent as Wo, getX as q, getXMax as Go, getY as _, getYMax as Jt, isAnnotationMovable as ol, isFullTurnSweep as Qr, isGradientPaint as Vo, isImagePaint as al, isOpaquePaint as il, isPatternPaint as Xr, isPositionScale as Gn, isSafeUrl as qr, orderPointerRegions as sl, paintKey as kr, paintsInDonutHole as ll, pickFilters as dl, pickReadableTextColor as zo, placeCallouts as cl, polarToUnit as ul, positionToAngle as hl, prepareAreaObservations as Jr, prepareLineObservations as Zr, projectAnchorToPanel as xt, projectRegionToPanel as $r, readAnchoredObservation as Uo, readColorGroupObservation as vl, readGeomColor as Zt, readGeomEffects as J, readMainAxis as wt, readPresentedGroupColor as Yo, removeAlpha as gl, resolveArrowAnnotationStyle as fl, resolveArrowColor as pl, resolveBarBorderTreatment as kt, resolveBarCornerRadiiPx as ml, resolveBarCornerRadiusPx as _r, resolveBarPaintOrigin as yl, resolveCalloutAnnotationStyle as Er, resolveChromeMargins as Al, resolveDataLabelStyle as xl, resolveDeferredAnchors as bl, resolveDifferenceArrowAnnotationStyle as jo, resolveDirectLabelStyle as Ko, resolveGraphPadding as Sl, resolveHeadlineItemStyle as Dt, resolveHeadlineNumberStyle as Qo, resolveHeadlinePlacement as wl, resolveLegendItemStyle as $t, resolvePanelBorderStyle as Xo, resolvePolarBarCornerRadiusUnit as kl, resolveRuleLabelStyle as El, resolveSwatchGeomPaint as qo, resolveTooltipStyle as Pl, toFontSpec as te, toPaintColor as V, toPanelCursor as Rl, toPercent as C, toStrokeDasharray as ve, toViewBoxX as Jo, toViewBoxY as Zo, truncateToWidth as $o, withAlpha as Cl } from "@graphysdk/viz-engine";
2
- import { Fragment as _t, createContext as Y, memo as ge, useCallback as ue, useContext as W, useEffect as G, useId as K, useLayoutEffect as Bl, useMemo as b, useRef as F, useState as U, useSyncExternalStore as Il } from "react";
2
+ import { Fragment as _t, createContext as j, memo as ge, useCallback as ue, useContext as W, useEffect as G, useId as K, useLayoutEffect as Bl, useMemo as b, useRef as F, useState as Y, useSyncExternalStore as Il } from "react";
3
3
  import { Fragment as L, jsx as s, jsxs as S } from "react/jsx-runtime";
4
4
  import { useStore as _e } from "zustand";
5
5
  import { animate as Pe, motion as z, useMotionValue as ye, useReducedMotion as Ll, useTransform as Ot } from "motion/react";
@@ -22,12 +22,12 @@ import './history-chords.css';var Vn = Object.defineProperty, Hl = (e, t) => {
22
22
  });
23
23
  return t || Vn(r, Symbol.toStringTag, { value: "Module" }), r;
24
24
  };
25
- typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1791811201637");
25
+ typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1791817361884");
26
26
  function Fl(e) {
27
27
  for (const t of e) (t.severity === "error" ? console.error : console.warn)(`[graphy] ${t.code}: ${t.message}`, t);
28
28
  }
29
- var ta = Y(null), Fy = ta.Provider, Dl = null, tn = () => W(ta) ?? (Dl ??= Ds());
30
- var ra = Y(null), ee = () => {
29
+ var ta = j(null), Fy = ta.Provider, Dl = null, tn = () => W(ta) ?? (Dl ??= Ds());
30
+ var ra = j(null), ee = () => {
31
31
  const e = W(ra);
32
32
  if (!e) throw new Error("useGraph* hooks must be used inside a <GraphProvider>");
33
33
  return e;
@@ -37,7 +37,7 @@ var ra = Y(null), ee = () => {
37
37
  }, et = (e) => e === "none" ? "none" : `${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color}`, Wl = (e) => e === "none" ? "none" : `${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color}`, Ue = (e) => {
38
38
  if (e !== "none")
39
39
  return `drop-shadow(${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color})`;
40
- }, tr = Y(null), zn = [
40
+ }, tr = j(null), zn = [
41
41
  "shadow",
42
42
  "blendMode",
43
43
  "alpha",
@@ -257,13 +257,16 @@ var ra = Y(null), ee = () => {
257
257
  "data-testid": "companion-point"
258
258
  });
259
259
  };
260
- var Un = 10 ** 2, j = (e) => Math.round(e * Un) / Un, Dy = (e) => e.map(({ x: t, y: r }) => `M${j(t)},${j(r)}h0`).join(""), Zl = (e, t, r) => {
260
+ var Un = 10 ** 2, U = (e) => Math.round(e * Un) / Un, Dy = (e, t) => {
261
+ const r = U(t), n = U(2 * t), o = `a${r},${r} 0 1,0 ${n},0a${r},${r} 0 1,0 ${-n},0Z`;
262
+ return e.map(({ x: a, y: i }) => `M${U(a - t)},${U(i)}${o}`).join("");
263
+ }, Zl = (e, t, r) => {
261
264
  const n = r.axis === "x", o = n ? e.y : e.x, a = n ? e.x : e.y, i = n ? e.height : e.width, l = n ? e.width : e.height, d = Math.max(Math.min(r.from, r.to), a), c = Math.min(Math.max(r.from, r.to), a + l);
262
265
  if (c - d <= 0 || i <= 0) return "";
263
266
  const u = Math.max(0, Math.min(t, i / 2)), h = Math.max(0, Math.min(t, l / 2)), g = a + h, f = a + l - h, v = o + i, m = n ? 0 : 1, p = (E, T) => {
264
267
  const [O, $] = n ? [T, E] : [E, T];
265
- return `${j(O)},${j($)}`;
266
- }, [x, A] = (n ? [h, u] : [u, h]).map(j), w = (E, T) => `A${x},${A} 0 0 ${m} ${p(E, T)}`, k = (E) => {
268
+ return `${U(O)},${U($)}`;
269
+ }, [x, A] = (n ? [h, u] : [u, h]).map(U), w = (E, T) => `A${x},${A} 0 0 ${m} ${p(E, T)}`, k = (E) => {
267
270
  if (u <= 0 || h <= 0) return 0;
268
271
  const T = E < g ? g - E : E > f ? E - f : 0, O = Math.min(1, T / h);
269
272
  return u * (1 - Math.sqrt(1 - O * O));
@@ -320,7 +323,7 @@ var Un = 10 ** 2, j = (e) => Math.round(e * Un) / Un, Dy = (e) => e.map(({ x: t,
320
323
  centers: n,
321
324
  size: r
322
325
  }));
323
- }, sa = (e, t, { origin: r, scaleX: n, scaleY: o }) => `${j(r.x + e * n)},${j(r.y + t * o)}`, _l = ({ layer: e, coordSystem: t, panelRect: r, shouldAnimateTransitions: n }) => {
326
+ }, sa = (e, t, { origin: r, scaleX: n, scaleY: o }) => `${U(r.x + e * n)},${U(r.y + t * o)}`, _l = ({ layer: e, coordSystem: t, panelRect: r, shouldAnimateTransitions: n }) => {
324
327
  const { areaGenerator: o } = Ur(t, e.params), a = {
325
328
  origin: {
326
329
  x: 0,
@@ -725,7 +728,7 @@ var Kn = "\0", ga = (e, t) => {
725
728
  } : null);
726
729
  }, r.onerror = () => t(null), r.src = e;
727
730
  }), ot = (e) => {
728
- const t = [...new Set(e.map(Qn).filter((i) => i !== void 0))].join(Kn), [r, n] = U(() => /* @__PURE__ */ new Map()), o = F(/* @__PURE__ */ new Set()), a = F(/* @__PURE__ */ new Set());
731
+ const t = [...new Set(e.map(Qn).filter((i) => i !== void 0))].join(Kn), [r, n] = Y(() => /* @__PURE__ */ new Map()), o = F(/* @__PURE__ */ new Set()), a = F(/* @__PURE__ */ new Set());
729
732
  return G(() => () => {
730
733
  o.current = /* @__PURE__ */ new Set();
731
734
  }, []), G(() => {
@@ -960,14 +963,14 @@ var xd = 1 / 3, bd = {
960
963
  width: Math.max(0, e.width + t * 2),
961
964
  height: Math.max(0, e.height + t * 2)
962
965
  }), Ie = (e, t) => {
963
- const r = j(e.x), n = j(e.y), o = j(e.x + e.width), a = j(e.y + e.height), i = j(Math.max(0, Math.min(t, e.width / 2))), l = j(Math.max(0, Math.min(t, e.height / 2)));
966
+ const r = U(e.x), n = U(e.y), o = U(e.x + e.width), a = U(e.y + e.height), i = U(Math.max(0, Math.min(t, e.width / 2))), l = U(Math.max(0, Math.min(t, e.height / 2)));
964
967
  if (i <= 0 || l <= 0) return `M${r},${n}H${o}V${a}H${r}Z`;
965
968
  const d = `A${i},${l} 0 0 1 `, [c, u, h, g] = [
966
969
  `${r}`,
967
970
  `${n}`,
968
971
  `${o}`,
969
972
  `${a}`
970
- ], f = `${j(r + i)}`, v = `${j(o - i)}`, m = `${j(n + l)}`, p = `${j(a - l)}`;
973
+ ], f = `${U(r + i)}`, v = `${U(o - i)}`, m = `${U(n + l)}`, p = `${U(a - l)}`;
971
974
  return `M${f},${u}H${v}${d}${h},${m}V${p}${d}${v},${g}H${f}${d}${c},${p}V${m}${d}${f},${u}Z`;
972
975
  }, Id = ({ observation: e, mainAxis: t, styleReaders: r, column: n, panelRect: o, fill: a }) => {
973
976
  const i = K(), l = K(), d = qt(t, e);
@@ -2221,7 +2224,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
2221
2224
  ...e === "dark" ? uc : pc,
2222
2225
  ...r
2223
2226
  };
2224
- }, La = (e, t = {}, r) => ({ fonts: nc(ln(e, t), r) }), mc = Object.freeze(La("light")), Ta = Y(mc), yc = ({ metrics: e, children: t }) => /* @__PURE__ */ s(Ta.Provider, {
2227
+ }, La = (e, t = {}, r) => ({ fonts: nc(ln(e, t), r) }), mc = Object.freeze(La("light")), Ta = j(mc), yc = ({ metrics: e, children: t }) => /* @__PURE__ */ s(Ta.Provider, {
2225
2228
  value: e,
2226
2229
  children: t
2227
2230
  }), Ye = () => W(Ta), ir = (e, t, r) => {
@@ -2300,8 +2303,8 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
2300
2303
  }, Sc = (e) => {
2301
2304
  const t = wc();
2302
2305
  return t ? (t.style.font = e, t.getBoundingClientRect().width) : null;
2303
- }, wc = () => typeof document > "u" ? null : (Ee || (Ee = document.createElement("span"), Ee.style.position = "absolute", Ee.style.visibility = "hidden", Ee.style.whiteSpace = "nowrap", Ee.style.left = "-9999px", Ee.textContent = Ma, document.body.appendChild(Ee)), Ee), Na = Y(null), Zn = 3e3, kc = ({ children: e, measurer: t }) => {
2304
- const [r, n] = U(null);
2306
+ }, wc = () => typeof document > "u" ? null : (Ee || (Ee = document.createElement("span"), Ee.style.position = "absolute", Ee.style.visibility = "hidden", Ee.style.whiteSpace = "nowrap", Ee.style.left = "-9999px", Ee.textContent = Ma, document.body.appendChild(Ee)), Ee), Na = j(null), Zn = 3e3, kc = ({ children: e, measurer: t }) => {
2307
+ const [r, n] = Y(null);
2305
2308
  G(() => {
2306
2309
  if (t !== void 0) return;
2307
2310
  let a = !1;
@@ -2336,7 +2339,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
2336
2339
  } catch {
2337
2340
  return new Hn(new hs());
2338
2341
  }
2339
- }, Ha = Y(null), Uy = Ha.Provider, Pc = null, Ce = () => W(Ha) ?? (Pc ??= Gu()), Rc = 11.7, Cc = 0.75, $n = 21.6, Bc = "0 0 10 18", Ic = "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", Lc = "_16vokpr0", Tc = (e, t) => e.mapping.y !== void 0 != (t.mainAxis === "y"), Mc = (e, t) => {
2342
+ }, Ha = j(null), Uy = Ha.Provider, Pc = null, Ce = () => W(Ha) ?? (Pc ??= Gu()), Rc = 11.7, Cc = 0.75, $n = 21.6, Bc = "0 0 10 18", Ic = "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", Lc = "_16vokpr0", Tc = (e, t) => e.mapping.y !== void 0 != (t.mainAxis === "y"), Mc = (e, t) => {
2340
2343
  const r = C(e ? 1 - t : t);
2341
2344
  return e ? {
2342
2345
  x1: "0%",
@@ -2363,7 +2366,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
2363
2366
  }, Nc = (e, t) => Nt(e) && Nt(t) ? `${e}: ${t}` : Nt(e) ? e : Nt(t) ? t : null, Hc = (e) => e ? 14 : 0, Fc = (e, t) => e * Cc - Hc(t) - 10, Dc = (e, t, r) => {
2364
2367
  const n = e * r, o = -13 - n, a = r + 13 - n - t;
2365
2368
  return a < o ? o : Math.min(Math.max(-t / 2, o), a);
2366
- }, Nt = (e) => e != null && e.trim() !== "", Fa = Object.freeze({}), dn = Y(Fa), Wc = ({ slots: e, children: t }) => /* @__PURE__ */ s(dn.Provider, {
2369
+ }, Nt = (e) => e != null && e.trim() !== "", Fa = Object.freeze({}), dn = j(Fa), Wc = ({ slots: e, children: t }) => /* @__PURE__ */ s(dn.Provider, {
2367
2370
  value: e ?? Fa,
2368
2371
  children: t
2369
2372
  });
@@ -3780,11 +3783,11 @@ var Vu = [
3780
3783
  }
3781
3784
  o.update(r);
3782
3785
  }, [o, r]), o;
3783
- }, $a = Y(null), Ku = ({ children: e }) => {
3786
+ }, $a = j(null), Ku = ({ children: e }) => {
3784
3787
  const { layers: t, coordSystem: r } = M(se((l) => ({
3785
3788
  layers: l.layers,
3786
3789
  coordSystem: l.coordSystem
3787
- }))), n = ju(t, r), [o] = U(() => Uu()), a = F(null), i = F(null);
3790
+ }))), n = ju(t, r), [o] = Y(() => Uu()), a = F(null), i = F(null);
3788
3791
  return i.current === null && (i.current = {
3789
3792
  engine: n,
3790
3793
  store: o,
@@ -3826,7 +3829,7 @@ var Xu = ({ hitTest: e, input: t }) => {
3826
3829
  },
3827
3830
  children: o
3828
3831
  }), r), $u = ({ rect: e, children: t }) => {
3829
- const [r] = U(_a);
3832
+ const [r] = Y(_a);
3830
3833
  return /* @__PURE__ */ s(Zu, {
3831
3834
  rect: e,
3832
3835
  zIndex: gt.panelOverlay,
@@ -3862,7 +3865,7 @@ var Xu = ({ hitTest: e, input: t }) => {
3862
3865
  height: 0,
3863
3866
  isDefault: !0
3864
3867
  }, ei = ({ debounce: e = 0, onResize: t } = {}) => {
3865
- const [r, n] = U(eh), o = F(null), a = _u((c) => {
3868
+ const [r, n] = Y(eh), o = F(null), a = _u((c) => {
3866
3869
  const u = o.current;
3867
3870
  u && u.width === c.width && u.height === c.height || (o.current = {
3868
3871
  width: c.width,
@@ -3885,7 +3888,7 @@ var Xu = ({ hitTest: e, input: t }) => {
3885
3888
  };
3886
3889
  };
3887
3890
  function th() {
3888
- const [e, t] = U(null), r = F(null), n = F(null), o = F(null), a = ue(() => {
3891
+ const [e, t] = Y(null), r = F(null), n = F(null), o = F(null), a = ue(() => {
3889
3892
  o.current = null;
3890
3893
  const c = n.current;
3891
3894
  if (!c) return;
@@ -4245,7 +4248,7 @@ var nh = ({ render: e, input: t }) => {
4245
4248
  if (!e) return t;
4246
4249
  const r = e.trim().replace("_", "-").toLowerCase();
4247
4250
  return Object.keys(gn).find((n) => n.toLowerCase() === r) ?? t;
4248
- }, ti = Y(null), bh = [gn], ri = () => wh().translator, Sh = ({ locale: e, children: t, i18nOverrides: r, dictionaries: n = bh }) => {
4251
+ }, ti = j(null), bh = [gn], ri = () => wh().translator, Sh = ({ locale: e, children: t, i18nOverrides: r, dictionaries: n = bh }) => {
4249
4252
  const o = xh(e), a = b(() => ({
4250
4253
  translator: mh({
4251
4254
  locale: o,
@@ -4362,7 +4365,7 @@ var nh = ({ render: e, input: t }) => {
4362
4365
  if (e.alpha === void 0 || e.alpha >= 1) return e.image;
4363
4366
  const r = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${t.width} ${t.height}" preserveAspectRatio="none"><image href="${Rh(e.image)}" width="${t.width}" height="${t.height}" opacity="${e.alpha}" preserveAspectRatio="none"/></svg>`;
4364
4367
  return `data:image/svg+xml,${encodeURIComponent(r)}`;
4365
- }, Rh = (e) => e.replace(/&/gu, "&amp;").replace(/</gu, "&lt;").replace(/>/gu, "&gt;").replace(/"/gu, "&quot;"), co = (e) => `url("${e.replace(/[\\"]/gu, "\\$&").replace(/[\n\r\f]/gu, (t) => `\\${t.charCodeAt(0).toString(16)} `)}")`, Ch = "bow4tg0", Bh = "bow4tg1", Ih = "bow4tg2", Lh = "bow4tg3", Th = "bow4tg4", oi = "_1ii3bsb0", Mh = "_1ii3bsb1", ai = Y({
4368
+ }, Rh = (e) => e.replace(/&/gu, "&amp;").replace(/</gu, "&lt;").replace(/>/gu, "&gt;").replace(/"/gu, "&quot;"), co = (e) => `url("${e.replace(/[\\"]/gu, "\\$&").replace(/[\n\r\f]/gu, (t) => `\\${t.charCodeAt(0).toString(16)} `)}")`, Ch = "bow4tg0", Bh = "bow4tg1", Ih = "bow4tg2", Lh = "bow4tg3", Th = "bow4tg4", oi = "_1ii3bsb0", Mh = "_1ii3bsb1", ai = j({
4366
4369
  colorScheme: "light",
4367
4370
  themeClass: oi,
4368
4371
  inlineVarsStyle: {},
@@ -4533,17 +4536,17 @@ var Yt = {
4533
4536
  }, $h = {
4534
4537
  ...Yt,
4535
4538
  isWaitingForView: !0
4536
- }, hr = Y(Yt), li = 0.4, _h = ({ intro: e, panelRect: t, children: r }) => {
4539
+ }, hr = j(Yt), li = 0.4, _h = ({ intro: e, panelRect: t, children: r }) => {
4537
4540
  const { layers: n, coordSystem: o, scales: a } = M(se((h) => ({
4538
4541
  layers: h.layers,
4539
4542
  coordSystem: h.coordSystem,
4540
4543
  scales: h.scales
4541
- }))), [i, l] = U(() => vo(e) ? $h : go({
4544
+ }))), [i, l] = Y(() => vo(e) ? $h : go({
4542
4545
  layers: n,
4543
4546
  coordSystem: o,
4544
4547
  scales: a,
4545
4548
  intro: e
4546
- })), [d, c] = U(null), u = tv(d) || !vo(e);
4549
+ })), [d, c] = Y(null), u = tv(d) || !vo(e);
4547
4550
  return i.isWaitingForView && u && l(go({
4548
4551
  layers: n,
4549
4552
  coordSystem: o,
@@ -4563,7 +4566,7 @@ var Yt = {
4563
4566
  }, `${t.width}x${t.height}`), r]
4564
4567
  });
4565
4568
  }, it = () => W(hr).isWaitingForView, ev = () => {
4566
- const { introEndsAtMs: e } = W(hr), [t] = U(() => nv(e) / 1e3);
4569
+ const { introEndsAtMs: e } = W(hr), [t] = Y(() => nv(e) / 1e3);
4567
4570
  return t;
4568
4571
  }, di = (e) => {
4569
4572
  const { plansByLayerId: t, coordKey: r } = W(hr), n = M((o) => ci(o.coordSystem));
@@ -4593,7 +4596,7 @@ var Yt = {
4593
4596
  isWaitingForView: !1
4594
4597
  };
4595
4598
  }, tv = (e) => {
4596
- const [t, r] = U(!1);
4599
+ const [t, r] = Y(!1);
4597
4600
  return G(() => {
4598
4601
  if (e === null) return;
4599
4602
  const n = new IntersectionObserver((o) => {
@@ -4602,7 +4605,7 @@ var Yt = {
4602
4605
  return n.observe(e), () => n.disconnect();
4603
4606
  }, [e]), t;
4604
4607
  }, rv = ({ intersectionRatio: e, intersectionRect: t }) => t.width > 0 && t.height > 0 && e >= li, nv = (e) => Math.max(0, e - performance.now()), ci = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, ov = (e) => {
4605
- const { overlayRef: t } = je(), r = F(null), [n, o] = U(!1), a = Nr(e);
4608
+ const { overlayRef: t } = je(), r = F(null), [n, o] = Y(!1), a = Nr(e);
4606
4609
  return G(() => {
4607
4610
  const i = t.current;
4608
4611
  if (!i) return;
@@ -5031,9 +5034,9 @@ var Yt = {
5031
5034
  }, Mv = (e) => !e.isVisible || e.ticks.length === 0, Ov = (e) => e.items.length === 0, Nv = () => {
5032
5035
  const { formattingLocale: e } = ee(), t = M((r) => r.config.parsingLocale);
5033
5036
  return e ?? t;
5034
- }, po = 0.5, mi = Y(/* @__PURE__ */ new Map()), yi = Y(() => {
5035
- }), Ai = Y(/* @__PURE__ */ new Set()), Hv = ({ children: e }) => {
5036
- const [t, r] = U(() => /* @__PURE__ */ new Map()), [n] = U(() => /* @__PURE__ */ new Set()), o = F(/* @__PURE__ */ new Map()), a = ue((i, l, d) => {
5037
+ }, po = 0.5, mi = j(/* @__PURE__ */ new Map()), yi = j(() => {
5038
+ }), Ai = j(/* @__PURE__ */ new Set()), Hv = ({ children: e }) => {
5039
+ const [t, r] = Y(() => /* @__PURE__ */ new Map()), [n] = Y(() => /* @__PURE__ */ new Set()), o = F(/* @__PURE__ */ new Map()), a = ue((i, l, d) => {
5037
5040
  const c = o.current.get(i) ?? /* @__PURE__ */ new Set();
5038
5041
  if (d !== null) {
5039
5042
  c.add(l), o.current.set(i, c), r((u) => Vv(u, i, d));
@@ -5166,8 +5169,8 @@ var Yt = {
5166
5169
  editor: t
5167
5170
  } }),
5168
5171
  setPressedObservation: (t) => e((r) => qv(r.pressedObservation, t) ? r : { pressedObservation: t })
5169
- })), $v = (e, t) => e === t ? !0 : e === null || t === null ? !1 : pt(e.target, t.target) && e.frameScale === t.frameScale && Mr(e.frame, t.frame) && Or(e.frameSpans, t.frameSpans), xn = Y(null), _v = Si(), t0 = ({ children: e }) => {
5170
- const [t] = U(() => Si());
5172
+ })), $v = (e, t) => e === t ? !0 : e === null || t === null ? !1 : pt(e.target, t.target) && e.frameScale === t.frameScale && Mr(e.frame, t.frame) && Or(e.frameSpans, t.frameSpans), xn = j(null), _v = Si(), t0 = ({ children: e }) => {
5173
+ const [t] = Y(() => Si());
5171
5174
  return /* @__PURE__ */ s(xn.Provider, {
5172
5175
  value: t,
5173
5176
  children: e
@@ -5180,7 +5183,7 @@ var Yt = {
5180
5183
  function Le(e) {
5181
5184
  return _e(W(xn) ?? _v, e);
5182
5185
  }
5183
- var wi = Y(null), eg = ({ panelRect: e, children: t }) => {
5186
+ var wi = j(null), eg = ({ panelRect: e, children: t }) => {
5184
5187
  const r = rg(e);
5185
5188
  return /* @__PURE__ */ s(wi.Provider, {
5186
5189
  value: r,
@@ -5339,7 +5342,7 @@ var cg = "vultop2", ug = "vultop3", hg = "vultop4", vg = "vultop5", gg = "vultop
5339
5342
  })]
5340
5343
  })]
5341
5344
  });
5342
- }, Ei = Y({
5345
+ }, Ei = j({
5343
5346
  Title: null,
5344
5347
  Caption: null,
5345
5348
  TextAnnotation: null
@@ -5728,7 +5731,7 @@ var Qg = ({ segment: e, itemStyle: t }) => {
5728
5731
  default:
5729
5732
  return null;
5730
5733
  }
5731
- }, Hi = Y(Re.readonly);
5734
+ }, Hi = j(Re.readonly);
5732
5735
  function It() {
5733
5736
  return W(Hi);
5734
5737
  }
@@ -5926,7 +5929,7 @@ var Cf = "_1dw9dgx0", xr = "\0", Bf = (e, t) => {
5926
5929
  }
5927
5930
  }), /* @__PURE__ */ s("span", { children: e.formattedLabel })] });
5928
5931
  }, zi = (e, t) => e === void 0 ? void 0 : t, xo = { [Oi]: "" }, Mf = ({ hiddenPills: e, placement: t }) => {
5929
- const r = ri(), [n, o] = U(!1), a = N(), i = I($t, a), l = I(vi, a), d = Ne(), c = ot([i.item.fill, l.popover.fill]), u = c(i.item.fill), h = Di(i.item, u), g = Of(e.length, i.item), f = g === null ? void 0 : {
5932
+ const r = ri(), [n, o] = Y(!1), a = N(), i = I($t, a), l = I(vi, a), d = Ne(), c = ot([i.item.fill, l.popover.fill]), u = c(i.item.fill), h = Di(i.item, u), g = Of(e.length, i.item), f = g === null ? void 0 : {
5930
5933
  ...Fi(i.item, u),
5931
5934
  opacity: yf * (i.item.alpha ?? 1)
5932
5935
  }, { refs: v, floatingStyles: m } = ea({
@@ -8203,7 +8206,7 @@ var Vm = 4, zm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8203
8206
  height: 0
8204
8207
  }
8205
8208
  }, sy = () => {
8206
- const [e, t] = U(null), [r, n] = U(null), [o, a] = U(wr);
8209
+ const [e, t] = Y(null), [r, n] = Y(null), [o, a] = Y(wr);
8207
8210
  return Bl(() => {
8208
8211
  const i = () => {
8209
8212
  const d = e ? {
@@ -8324,7 +8327,7 @@ var hy = [], vy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
8324
8327
  headlineConfig: de.config.headline,
8325
8328
  content: de.config.content,
8326
8329
  overflowStrategy: de.config.panel.overflow
8327
- }))), { intro: A, transitions: w } = dh(r, c), { headerRef: k, footerRef: P, measurements: R } = sy(), { formattingLocale: B, colorScheme: E } = ee(), T = Oe[i], O = T.editorSurface, [$, oe] = U(null), Q = Ae("Header", Tg), Be = Ae("Footer", Eg), Zi = Ae("Legend", Xf), $i = Ae("Headline", _g), _i = Ae("EditorSurface", dy), Rn = b(() => Ks({
8330
+ }))), { intro: A, transitions: w } = dh(r, c), { headerRef: k, footerRef: P, measurements: R } = sy(), { formattingLocale: B, colorScheme: E } = ee(), T = Oe[i], O = T.editorSurface, [$, oe] = Y(null), Q = Ae("Header", Tg), Be = Ae("Footer", Eg), Zi = Ae("Legend", Xf), $i = Ae("Headline", _g), _i = Ae("EditorSurface", dy), Rn = b(() => Ks({
8328
8331
  legends: d,
8329
8332
  numberFormat: u,
8330
8333
  parsingLocale: h,
@@ -8588,7 +8591,7 @@ export {
8588
8591
  Fl as bn,
8589
8592
  Re as bt,
8590
8593
  Qt as c,
8591
- Dy as cn,
8594
+ $l as cn,
8592
8595
  Hh as ct,
8593
8596
  l0 as d,
8594
8597
  tt as dn,
@@ -8632,7 +8635,7 @@ export {
8632
8635
  le as rn,
8633
8636
  Fv as rt,
8634
8637
  Bm as s,
8635
- $l as sn,
8638
+ Dy as sn,
8636
8639
  yt as st,
8637
8640
  v0 as t,
8638
8641
  Ie as tn,