@graphysdk/react-renderer 1.9.0-beta.1791971351252 → 1.9.0-beta.1791973199869

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.
@@ -22,11 +22,11 @@ import './history-chords.css';var Vn = Object.defineProperty, Nl = (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.1791971351252");
25
+ typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1791973199869");
26
26
  function Hl(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 = K(null), Fy = ta.Provider, Fl = null, tn = () => W(ta) ?? (Fl ??= Fs());
29
+ var ta = K(null), Wy = ta.Provider, Fl = null, tn = () => W(ta) ?? (Fl ??= Fs());
30
30
  var ra = K(null), ee = () => {
31
31
  const e = W(ra);
32
32
  if (!e) throw new Error("useGraph* hooks must be used inside a <GraphProvider>");
@@ -257,32 +257,32 @@ var ra = K(null), ee = () => {
257
257
  "data-testid": "companion-point"
258
258
  });
259
259
  };
260
- var Yn = 10 ** 2, Y = (e) => Math.round(e * Yn) / Yn, Dy = (e, t) => {
260
+ var Yn = 10 ** 2, Y = (e) => Math.round(e * Yn) / Yn, Gy = (e, t) => {
261
261
  const r = Y(t), n = Y(2 * t), o = `a${r},${r} 0 1,0 ${n},0a${r},${r} 0 1,0 ${-n},0Z`;
262
262
  return e.map(({ x: a, y: i }) => `M${Y(a - t)},${Y(i)}${o}`).join("");
263
263
  }, Jl = (e, t, r) => {
264
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);
265
265
  if (c - d <= 0 || i <= 0) return "";
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, B) => {
267
- const [N, $] = n ? [B, E] : [E, B];
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 = (P, B) => {
267
+ const [N, $] = n ? [B, P] : [P, B];
268
268
  return `${Y(N)},${Y($)}`;
269
- }, [A, x] = (n ? [h, u] : [u, h]).map(Y), S = (E, B) => `A${A},${x} 0 0 ${m} ${p(E, B)}`, k = (E) => {
269
+ }, [A, x] = (n ? [h, u] : [u, h]).map(Y), S = (P, B) => `A${A},${x} 0 0 ${m} ${p(P, B)}`, k = (P) => {
270
270
  if (u <= 0 || h <= 0) return 0;
271
- const B = E < g ? g - E : E > f ? E - f : 0, N = Math.min(1, B / h);
271
+ const B = P < g ? g - P : P > f ? P - f : 0, N = Math.min(1, B / h);
272
272
  return u * (1 - Math.sqrt(1 - N * N));
273
- }, P = (E, B) => u > 0 && h > 0 && (Math.max(E, B) <= g || Math.min(E, B) >= f), R = [
273
+ }, E = (P, B) => u > 0 && h > 0 && (Math.max(P, B) <= g || Math.min(P, B) >= f), R = [
274
274
  d,
275
- ...new Set([g, f].filter((E) => E > d && E < c)),
275
+ ...new Set([g, f].filter((P) => P > d && P < c)),
276
276
  c
277
277
  ], L = [`M${p(o + k(d), d)}`, `L${p(v - k(d), d)}`];
278
- for (let E = 1; E < R.length; E++) {
279
- const B = R[E - 1] ?? d, N = R[E] ?? c;
280
- L.push(P(B, N) ? S(v - k(N), N) : `L${p(v, N)}`);
278
+ for (let P = 1; P < R.length; P++) {
279
+ const B = R[P - 1] ?? d, N = R[P] ?? c;
280
+ L.push(E(B, N) ? S(v - k(N), N) : `L${p(v, N)}`);
281
281
  }
282
282
  L.push(`L${p(o + k(c), c)}`);
283
- for (let E = R.length - 1; E > 0; E--) {
284
- const B = R[E] ?? c, N = R[E - 1] ?? d;
285
- L.push(P(B, N) ? S(o + k(N), N) : `L${p(o, N)}`);
283
+ for (let P = R.length - 1; P > 0; P--) {
284
+ const B = R[P] ?? c, N = R[P - 1] ?? d;
285
+ L.push(E(B, N) ? S(o + k(N), N) : `L${p(o, N)}`);
286
286
  }
287
287
  return `${L.join("")}Z`;
288
288
  }, ia = (e, t, r) => {
@@ -498,7 +498,7 @@ var Yn = 10 ** 2, Y = (e) => Math.round(e * Yn) / Yn, Dy = (e, t) => {
498
498
  if (!v || !m) return;
499
499
  const p = f[0];
500
500
  if (!p) return;
501
- const A = V(d.get("fill", p)), x = d.get("stroke", p) ?? A, S = d.get("strokeWidth", p), k = ve(d.get("dashArray", p), d.get("strokeWidth", p)), P = d.get("lineCap", p), R = d.get("lineJoin", p);
501
+ const A = V(d.get("fill", p)), x = d.get("stroke", p) ?? A, S = d.get("strokeWidth", p), k = ve(d.get("dashArray", p), d.get("strokeWidth", p)), E = d.get("lineCap", p), R = d.get("lineJoin", p);
502
502
  h.push({
503
503
  key: u(p),
504
504
  areaPath: v,
@@ -509,7 +509,7 @@ var Yn = 10 ** 2, Y = (e) => Math.round(e * Yn) / Yn, Dy = (e, t) => {
509
509
  strokeWidth: S,
510
510
  strokeOpacity: d.get("strokeAlpha", p) * d.get("alpha", p),
511
511
  strokeDasharray: k,
512
- lineCap: P,
512
+ lineCap: E,
513
513
  lineJoin: R
514
514
  });
515
515
  }), h;
@@ -1373,7 +1373,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
1373
1373
  cornerRadius: x,
1374
1374
  mainAxis: t.mainAxis,
1375
1375
  bounds: m
1376
- }), P = Ie(v, 0), R = Ie(m, k), L = Ie(Xn(v, yr), 0), E = Ie(Xn(m, yr), k > 0 ? k + yr : 0), B = u(c), N = o.get("alpha", r.observation, "hovered") * o.get("fillAlpha", r.observation, "hovered"), $ = o.get("stroke", r.observation, "hovered"), oe = kt(A);
1376
+ }), E = Ie(v, 0), R = Ie(m, k), L = Ie(Xn(v, yr), 0), P = Ie(Xn(m, yr), k > 0 ? k + yr : 0), B = u(c), N = o.get("alpha", r.observation, "hovered") * o.get("fillAlpha", r.observation, "hovered"), $ = o.get("stroke", r.observation, "hovered"), oe = kt(A);
1377
1377
  return /* @__PURE__ */ w("g", {
1378
1378
  "data-testid": "hovered-bar",
1379
1379
  style: Z(J(o, r.observation, "hovered")),
@@ -1381,11 +1381,11 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
1381
1381
  h,
1382
1382
  /* @__PURE__ */ s("clipPath", {
1383
1383
  id: a,
1384
- children: /* @__PURE__ */ s("path", { d: E })
1384
+ children: /* @__PURE__ */ s("path", { d: P })
1385
1385
  }),
1386
1386
  /* @__PURE__ */ s("clipPath", {
1387
1387
  id: i,
1388
- children: /* @__PURE__ */ s("path", { d: P })
1388
+ children: /* @__PURE__ */ s("path", { d: E })
1389
1389
  }),
1390
1390
  /* @__PURE__ */ s("clipPath", {
1391
1391
  id: l,
@@ -1404,12 +1404,12 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
1404
1404
  children: /* @__PURE__ */ w("g", {
1405
1405
  clipPath: `url(#${l})`,
1406
1406
  children: [/* @__PURE__ */ s("path", {
1407
- d: P,
1407
+ d: E,
1408
1408
  fill: B,
1409
1409
  opacity: N,
1410
1410
  "data-testid": "hovered-bar-fill"
1411
1411
  }), p !== void 0 && /* @__PURE__ */ w(T, { children: [/* @__PURE__ */ s("path", {
1412
- d: P,
1412
+ d: E,
1413
1413
  fill: "none",
1414
1414
  stroke: p,
1415
1415
  strokeWidth: oe.separatorWidth,
@@ -1492,7 +1492,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
1492
1492
  if (!f) return;
1493
1493
  const v = g[0];
1494
1494
  if (!v) return;
1495
- const m = l.get("fillAlpha", v), p = m === void 0 ? void 0 : i(g) ?? void 0, A = l.get("stroke", v), x = l.get("fill", v), S = x === void 0 ? A : V(x), k = l.get("strokeWidth", v), P = ve(l.get("dashArray", v), l.get("strokeWidth", v)), R = l.get("lineCap", v), L = l.get("lineJoin", v);
1495
+ const m = l.get("fillAlpha", v), p = m === void 0 ? void 0 : i(g) ?? void 0, A = l.get("stroke", v), x = l.get("fill", v), S = x === void 0 ? A : V(x), k = l.get("strokeWidth", v), E = ve(l.get("dashArray", v), l.get("strokeWidth", v)), R = l.get("lineCap", v), L = l.get("lineJoin", v);
1496
1496
  u.push({
1497
1497
  key: c(v),
1498
1498
  pathData: f,
@@ -1503,7 +1503,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
1503
1503
  opacity: l.get("alpha", v),
1504
1504
  strokeAlpha: l.get("strokeAlpha", v),
1505
1505
  strokeWidth: k,
1506
- strokeDasharray: P,
1506
+ strokeDasharray: E,
1507
1507
  lineCap: R,
1508
1508
  lineJoin: L
1509
1509
  });
@@ -1775,7 +1775,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
1775
1775
  y: r
1776
1776
  };
1777
1777
  }
1778
- }, ht = "var(--graphy-editor-font-family, var(--graphy-font-family))", Wy = [
1778
+ }, ht = "var(--graphy-editor-font-family, var(--graphy-font-family))", Vy = [
1779
1779
  "canvasDefault",
1780
1780
  "canvasBlue",
1781
1781
  "canvasCyan",
@@ -2020,7 +2020,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
2020
2020
  fontEditorControlValue: H(y.fontWeightMedium, y.fontSizeSm, y.fontLineHeightSm, ht),
2021
2021
  fontEditorSectionTitle: H(y.fontWeightSemibold, y.fontSizeSm, y.fontLineHeightSm, ht),
2022
2022
  fontEditorCaption: H(y.fontWeightMedium, y.fontSizeXxs, y.fontLineHeightXxs, ht)
2023
- }, rc = (e, t) => ({ familyDefault: xr(t) ?? xr(e.fontFamily) ?? xr(ar) ?? "" }), xr = (e) => e === void 0 || e.includes("var(") ? null : e.replace(/\s+/g, " ").trim(), re = (e, t) => `color-mix(in srgb, transparent, ${e} ${t * 100}%)`, nc = (e, t) => `hsl(from ${e} h s calc(l * ${1 - t}))`, Gy = (e, t) => `hsl(from ${e} h s calc(l * ${1 + t}))`, Vy = (e) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e), zy = (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), oc = (e) => `${e}px`, Pa = { editorControlHeight: oc(32) }, gt = {
2023
+ }, rc = (e, t) => ({ familyDefault: xr(t) ?? xr(e.fontFamily) ?? xr(ar) ?? "" }), xr = (e) => e === void 0 || e.includes("var(") ? null : e.replace(/\s+/g, " ").trim(), re = (e, t) => `color-mix(in srgb, transparent, ${e} ${t * 100}%)`, nc = (e, t) => `hsl(from ${e} h s calc(l * ${1 - t}))`, zy = (e, t) => `hsl(from ${e} h s calc(l * ${1 + t}))`, Yy = (e) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e), jy = (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), oc = (e) => `${e}px`, Pa = { editorControlHeight: oc(32) }, gt = {
2024
2024
  editOutline: 1,
2025
2025
  panelOverlay: 5,
2026
2026
  textToolbar: 10,
@@ -2339,7 +2339,7 @@ var yr = 3, Yd = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
2339
2339
  } catch {
2340
2340
  return new Hn(new us());
2341
2341
  }
2342
- }, Ha = K(null), Yy = Ha.Provider, Ec = null, Ce = () => W(Ha) ?? (Ec ??= Wu()), Pc = 11.7, Rc = 0.75, $n = 21.6, Cc = "0 0 10 18", Lc = "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", Ic = "_16vokpr0", Tc = (e, t) => e.mapping.y !== void 0 != (t.mainAxis === "y"), Bc = (e, t) => {
2342
+ }, Ha = K(null), Ky = Ha.Provider, Ec = null, Ce = () => W(Ha) ?? (Ec ??= Wu()), Pc = 11.7, Rc = 0.75, $n = 21.6, Cc = "0 0 10 18", Lc = "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", Ic = "_16vokpr0", Tc = (e, t) => e.mapping.y !== void 0 != (t.mainAxis === "y"), Bc = (e, t) => {
2343
2343
  const r = C(e ? 1 - t : t);
2344
2344
  return e ? {
2345
2345
  x1: "0%",
@@ -2554,7 +2554,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
2554
2554
  ...e.textTransform === void 0 ? {} : { textTransform: e.textTransform },
2555
2555
  ...Ga(e),
2556
2556
  ...Wa(e)
2557
- }), jy = (e, t) => er({
2557
+ }), Uy = (e, t) => er({
2558
2558
  [e.fontFamily]: t.fontFamily ?? y.fontFamily,
2559
2559
  [e.fontSize]: `${t.fontSize}px`,
2560
2560
  [e.fontWeight]: String(t.fontWeight),
@@ -2725,34 +2725,34 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
2725
2725
  c,
2726
2726
  n,
2727
2727
  t
2728
- ]), { fonts: A } = je(), x = O(), S = I(kl, x.geom.rule.label(t), x.graph()), k = b(() => te(S, A.familyDefault), [S, A.familyDefault]), P = b(() => p === null ? null : $o(p, Hc(a, f !== null), (Q) => i.measureText(Q, k).width), [
2728
+ ]), { fonts: A } = je(), x = O(), S = I(kl, x.geom.rule.label(t), x.graph()), k = b(() => te(S, A.familyDefault), [S, A.familyDefault]), E = b(() => p === null ? null : $o(p, Hc(a, f !== null), (Q) => i.measureText(Q, k).width), [
2729
2729
  p,
2730
2730
  a,
2731
2731
  f,
2732
2732
  k,
2733
2733
  i
2734
- ]), R = b(() => P === null ? 0 : i.measureText(P, k).width, [
2735
- P,
2734
+ ]), R = b(() => E === null ? 0 : i.measureText(E, k).width, [
2735
+ E,
2736
2736
  k,
2737
2737
  i
2738
- ]), L = D(t), E = t.data.getFirst();
2739
- if (!E) return null;
2740
- const B = L.get("stroke", E), N = iu(S, B), $ = Tc(t, r), oe = $ ? _(E) : q(E);
2738
+ ]), L = D(t), P = t.data.getFirst();
2739
+ if (!P) return null;
2740
+ const B = L.get("stroke", P), N = iu(S, B), $ = Tc(t, r), oe = $ ? _(P) : q(P);
2741
2741
  return oe === null ? null : /* @__PURE__ */ w("g", {
2742
2742
  "data-geom": "rule",
2743
2743
  className: Ic,
2744
2744
  children: [/* @__PURE__ */ s(ou, {
2745
- strokeWidth: L.get("strokeWidth", E),
2746
- dashArray: L.get("dashArray", E),
2747
- lineCap: L.get("lineCap", E),
2748
- lineJoin: L.get("lineJoin", E),
2745
+ strokeWidth: L.get("strokeWidth", P),
2746
+ dashArray: L.get("dashArray", P),
2747
+ lineCap: L.get("lineCap", P),
2748
+ lineJoin: L.get("lineJoin", P),
2749
2749
  isHorizontalLine: $,
2750
2750
  position: oe,
2751
2751
  lineColor: B,
2752
- effects: Z(J(L, E)),
2752
+ effects: Z(J(L, P)),
2753
2753
  shouldAnimateTransitions: o
2754
- }), P !== null && P !== "" && /* @__PURE__ */ s(nu, {
2755
- label: P,
2754
+ }), E !== null && E !== "" && /* @__PURE__ */ s(nu, {
2755
+ label: E,
2756
2756
  textStyle: S,
2757
2757
  textWidth: R,
2758
2758
  labelPosition: t.params.labelPosition,
@@ -3206,7 +3206,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
3206
3206
  effects: Z(J(c, t.data.getFirst() ?? void 0)),
3207
3207
  className: fe,
3208
3208
  children: [f, v.map((m, p) => {
3209
- const { stroke: A, strokeWidth: x, strokeAlpha: S } = m.style, k = A !== void 0, P = kt(x), R = A === void 0 ? {} : Yt(A, P.separatorWidth), L = A === void 0 ? void 0 : Yt(A, P.outlineWidth), E = m.members.map((oe) => {
3209
+ const { stroke: A, strokeWidth: x, strokeAlpha: S } = m.style, k = A !== void 0, E = kt(x), R = A === void 0 ? {} : Yt(A, E.separatorWidth), L = A === void 0 ? void 0 : Yt(A, E.outlineWidth), P = m.members.map((oe) => {
3210
3210
  const { key: Q, ...Le } = oe;
3211
3211
  return l.isAnimated ? /* @__PURE__ */ s(Su, {
3212
3212
  ...Le,
@@ -3225,7 +3225,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
3225
3225
  ...R
3226
3226
  }, Q);
3227
3227
  }), B = hn(m);
3228
- if (!k && B <= 0) return /* @__PURE__ */ s(_t, { children: E }, m.key);
3228
+ if (!k && B <= 0) return /* @__PURE__ */ s(_t, { children: P }, m.key);
3229
3229
  const N = `${i}${p}`;
3230
3230
  if (l.isAnimated) return /* @__PURE__ */ s("g", {
3231
3231
  clipPath: `url(#${N})`,
@@ -3238,7 +3238,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
3238
3238
  clipId: N,
3239
3239
  outlineProps: L,
3240
3240
  outlineOpacity: S,
3241
- children: E
3241
+ children: P
3242
3242
  })
3243
3243
  }, m.key);
3244
3244
  const $ = De({
@@ -3252,7 +3252,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
3252
3252
  id: N,
3253
3253
  children: /* @__PURE__ */ s("path", { d: $ })
3254
3254
  }),
3255
- E,
3255
+ P,
3256
3256
  L !== void 0 && /* @__PURE__ */ s("path", {
3257
3257
  d: $,
3258
3258
  fill: "none",
@@ -3274,7 +3274,7 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
3274
3274
  G(() => {
3275
3275
  const R = k(), L = [Pe(m, e, R), Pe(p, t, R)];
3276
3276
  return () => {
3277
- for (const E of L) E.stop();
3277
+ for (const P of L) P.stop();
3278
3278
  };
3279
3279
  }, [
3280
3280
  m,
@@ -3283,18 +3283,18 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
3283
3283
  t,
3284
3284
  k
3285
3285
  ]);
3286
- const P = Tr(a, l, c);
3286
+ const E = Tr(a, l, c);
3287
3287
  return G(() => {
3288
- const R = P(), L = [Pe(A, r, R), Pe(x, n, R)];
3288
+ const R = E(), L = [Pe(A, r, R), Pe(x, n, R)];
3289
3289
  return () => {
3290
- for (const E of L) E.stop();
3290
+ for (const P of L) P.stop();
3291
3291
  };
3292
3292
  }, [
3293
3293
  A,
3294
3294
  x,
3295
3295
  r,
3296
3296
  n,
3297
- P
3297
+ E
3298
3298
  ]), G(() => {
3299
3299
  const R = () => {
3300
3300
  S.set(De({
@@ -3311,9 +3311,9 @@ var Vc = "_2qyyu60", zc = 2, Yc = 12, jc = 12, _n = 1, eo = 2, Kc = 4, Uc = 3, Q
3311
3311
  p,
3312
3312
  A,
3313
3313
  x
3314
- ].map((E) => E.on("change", R));
3314
+ ].map((P) => P.on("change", R));
3315
3315
  return () => {
3316
- for (const E of L) E();
3316
+ for (const P of L) P();
3317
3317
  };
3318
3318
  }, [
3319
3319
  m,
@@ -3724,7 +3724,7 @@ function cr(e) {
3724
3724
  function Du(e) {
3725
3725
  return e ? cr(e.render).overlay : !1;
3726
3726
  }
3727
- function Ky(e, t) {
3727
+ function Qy(e, t) {
3728
3728
  return typeof e == "string" ? {
3729
3729
  ...t,
3730
3730
  geom: e
@@ -3745,7 +3745,7 @@ var Gu = [
3745
3745
  "right",
3746
3746
  "bottom",
3747
3747
  "left"
3748
- ], Uy = () => en((e) => ({
3748
+ ], Xy = () => en((e) => ({
3749
3749
  boundary: null,
3750
3750
  setBoundary: (t) => e((r) => Vu(r.boundary, t) ? r : { boundary: t })
3751
3751
  })), Mr = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, Or = (e, t) => Gu.every((r) => e[r].from === t[r].from && e[r].to === t[r].to), Vu = (e, t) => e === t ? !0 : e === null || t === null ? !1 : Mr(e.frame, t.frame) && Mr(e.client, t.client) && Or(e.frameSpans, t.frameSpans) && Or(e.clientSpans, t.clientSpans), Nr = (e) => {
@@ -4943,26 +4943,26 @@ var Kt = {
4943
4943
  legendItemStyle: l,
4944
4944
  directLabelStyle: i
4945
4945
  }), A = wv(f), x = Av(f), S = {
4946
- measureText: (k, P) => e.measureText(k, P),
4946
+ measureText: (k, E) => e.measureText(k, E),
4947
4947
  textScale: g
4948
4948
  };
4949
4949
  return {
4950
4950
  measureAxis: (k) => {
4951
4951
  if (Bv(k)) return 0;
4952
- const P = u.current.measureAxis;
4953
- return P ? P(k, S) : v(k);
4952
+ const E = u.current.measureAxis;
4953
+ return E ? E(k, S) : v(k);
4954
4954
  },
4955
4955
  measureAxisLabel: (k) => {
4956
- const P = u.current.measureAxisLabel;
4957
- return P ? P(k, S) : m(k);
4956
+ const E = u.current.measureAxisLabel;
4957
+ return E ? E(k, S) : m(k);
4958
4958
  },
4959
4959
  measureLegend: (k) => {
4960
4960
  if (Mv(k)) return 0;
4961
- const P = u.current.measureLegend;
4962
- return P ? P(k, S) : p(k);
4961
+ const E = u.current.measureLegend;
4962
+ return E ? E(k, S) : p(k);
4963
4963
  },
4964
- measureHeadline: (k, P, R) => (u.current.measureHeadline ?? A)(k, P, R),
4965
- measureHeadlineItemWidths: (k, P) => (u.current.measureHeadlineItemWidths ?? x)(k, P),
4964
+ measureHeadline: (k, E, R) => (u.current.measureHeadline ?? A)(k, E, R),
4965
+ measureHeadlineItemWidths: (k, E) => (u.current.measureHeadlineItemWidths ?? x)(k, E),
4966
4966
  measureTickLabel: Cv({
4967
4967
  textMeasurer: e,
4968
4968
  tickLabelStyles: d,
@@ -5083,7 +5083,7 @@ var Kt = {
5083
5083
  if (!e.has(t)) return e;
5084
5084
  const r = new Map(e);
5085
5085
  return r.delete(t), r;
5086
- }, Qy = (e, t) => e !== null && e.annotationId === t ? e : null, zv = (e, t) => e.annotationId === t.annotationId && e.translation.x === t.translation.x && e.translation.y === t.translation.y, Xy = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, Yv = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && e.anchor.x === t.anchor.x && e.anchor.y === t.anchor.y, qy = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, jv = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && ms(e.point.anchor, t.point.anchor), Jy = (e, t) => e !== null && e.annotationId === t ? e : null, Kv = (e, t) => e.annotationId === t.annotationId && e.region.x === t.region.x && e.region.y === t.region.y && e.region.width === t.region.width && e.region.height === t.region.height, Zy = (e, t) => e !== null && e.annotationId === t ? e : null, Uv = (e, t) => e.annotationId === t.annotationId && e.at.x === t.at.x && e.width === t.width && e.shift === t.shift, xt = ({ standingInteraction: e }, t) => e !== null && He(e, t) ? e : null, Qv = (e, t) => {
5086
+ }, qy = (e, t) => e !== null && e.annotationId === t ? e : null, zv = (e, t) => e.annotationId === t.annotationId && e.translation.x === t.translation.x && e.translation.y === t.translation.y, Jy = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, Yv = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && e.anchor.x === t.anchor.x && e.anchor.y === t.anchor.y, Zy = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, jv = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && ms(e.point.anchor, t.point.anchor), $y = (e, t) => e !== null && e.annotationId === t ? e : null, Kv = (e, t) => e.annotationId === t.annotationId && e.region.x === t.region.x && e.region.y === t.region.y && e.region.width === t.region.width && e.region.height === t.region.height, _y = (e, t) => e !== null && e.annotationId === t ? e : null, Uv = (e, t) => e.annotationId === t.annotationId && e.at.x === t.at.x && e.width === t.width && e.shift === t.shift, xt = ({ standingInteraction: e }, t) => e !== null && He(e, t) ? e : null, Qv = (e, t) => {
5087
5087
  if (e === null) return !1;
5088
5088
  switch (t.kind) {
5089
5089
  case "difference-arrow-endpoint-drag":
@@ -5101,14 +5101,14 @@ var Kt = {
5101
5101
  case "menu":
5102
5102
  return !1;
5103
5103
  }
5104
- }, He = (e, t) => e.kind === t, $y = (e, t, r, n) => {
5104
+ }, He = (e, t) => e.kind === t, e0 = (e, t, r, n) => {
5105
5105
  const o = Ai(r.layerId, e, t, n);
5106
5106
  return o === null ? null : {
5107
5107
  observationIndex: e,
5108
5108
  predicate: o.predicate,
5109
5109
  selectedFor: r
5110
5110
  };
5111
- }, _y = ({ observationIndex: e, predicate: t, selectedFor: r }, n, o) => {
5111
+ }, t0 = ({ observationIndex: e, predicate: t, selectedFor: r }, n, o) => {
5112
5112
  const a = Ai(r.layerId, e, n, o);
5113
5113
  return a !== null && No(a.predicate, t) ? a.standing : null;
5114
5114
  }, Xv = (e, t) => e === t ? !0 : e === null || t === null ? !1 : e.observationIndex === t.observationIndex && No(e.predicate, t.predicate) && pt(e.selectedFor, t.selectedFor), Ai = (e, t, r, n) => {
@@ -5127,7 +5127,7 @@ var Kt = {
5127
5127
  },
5128
5128
  predicate: i.predicate
5129
5129
  };
5130
- }, e0 = ({ isMenuTrigger: e, stamped: t, observations: r }) => e ? { kind: "menu-trigger" } : t !== null && t.kind !== "grid" ? t : r !== null ? {
5130
+ }, r0 = ({ isMenuTrigger: e, stamped: t, observations: r }) => e ? { kind: "menu-trigger" } : t !== null && t.kind !== "grid" ? t : r !== null ? {
5131
5131
  kind: "observations",
5132
5132
  observations: r
5133
5133
  } : t, qv = (e, t) => {
@@ -5169,13 +5169,13 @@ var Kt = {
5169
5169
  editor: t
5170
5170
  } }),
5171
5171
  setPressedObservation: (t) => e((r) => Xv(r.pressedObservation, t) ? r : { pressedObservation: t })
5172
- })), Zv = (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), An = K(null), $v = wi(), t0 = ({ children: e }) => {
5172
+ })), Zv = (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), An = K(null), $v = wi(), n0 = ({ children: e }) => {
5173
5173
  const [t] = j(() => wi());
5174
5174
  return /* @__PURE__ */ s(An.Provider, {
5175
5175
  value: t,
5176
5176
  children: e
5177
5177
  });
5178
- }, r0 = () => {
5178
+ }, o0 = () => {
5179
5179
  const e = W(An);
5180
5180
  if (e === null) throw new Error("useEditorStore must be used inside an <EditorProvider>.");
5181
5181
  return e;
@@ -5364,7 +5364,7 @@ var sg = "vultop2", lg = "vultop3", dg = "vultop4", cg = "vultop5", ug = (e) =>
5364
5364
  Title: null,
5365
5365
  Caption: null,
5366
5366
  TextAnnotation: null
5367
- }), n0 = ({ editors: e, children: t }) => /* @__PURE__ */ s(Ei.Provider, {
5367
+ }), a0 = ({ editors: e, children: t }) => /* @__PURE__ */ s(Ei.Provider, {
5368
5368
  value: e,
5369
5369
  children: t
5370
5370
  }), bn = () => W(Ei), xo = "_4dlrid0", xg = "xfz7dq0";
@@ -5672,7 +5672,7 @@ var Ug = ({ segment: e, itemStyle: t }) => {
5672
5672
  if (r === null || !/^(0|[1-9]\d*)$/.test(r)) return null;
5673
5673
  const n = Number(r);
5674
5674
  return Number.isSafeInteger(n) ? n : null;
5675
- }, Ue = "data-edit-kind", Bi = "data-edit-id", Qt = "data-edit-axis", Mi = "data-edit-tick-index", Oi = "data-legend-overflow-control", o0 = `[${Oi}]`, ef = "observations", tf = `[${Ue}]`, It = (e) => ({
5675
+ }, Ue = "data-edit-kind", Bi = "data-edit-id", Qt = "data-edit-axis", Mi = "data-edit-tick-index", Oi = "data-legend-overflow-control", i0 = `[${Oi}]`, ef = "observations", tf = `[${Ue}]`, It = (e) => ({
5676
5676
  [Ue]: e.kind,
5677
5677
  [Bi]: e.id
5678
5678
  }), wn = (e, t) => ({
@@ -5685,7 +5685,7 @@ var Ug = ({ segment: e, itemStyle: t }) => {
5685
5685
  }), Ni = (e) => ({
5686
5686
  [Ue]: "grid",
5687
5687
  [Qt]: e
5688
- }), a0 = (e, t) => {
5688
+ }), s0 = (e, t) => {
5689
5689
  for (const r of e) {
5690
5690
  const n = r.closest(tf);
5691
5691
  if (n === null || !t.contains(n)) continue;
@@ -5962,10 +5962,10 @@ var Rf = "_1dw9dgx0", Ar = "\0", Cf = (e, t) => {
5962
5962
  G(() => {
5963
5963
  if (!n) return;
5964
5964
  const x = (k) => {
5965
- const P = k.target;
5966
- if (!P) return;
5965
+ const E = k.target;
5966
+ if (!E) return;
5967
5967
  const R = v.reference.current, L = v.floating.current;
5968
- R instanceof Element && R.contains(P) || L instanceof Element && L.contains(P) || o(!1);
5968
+ R instanceof Element && R.contains(E) || L instanceof Element && L.contains(E) || o(!1);
5969
5969
  }, S = (k) => {
5970
5970
  k.key === "Escape" && o(!1);
5971
5971
  };
@@ -6054,20 +6054,20 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6054
6054
  visibleCount: g.length,
6055
6055
  hasOverflow: !1
6056
6056
  };
6057
- const R = te(d.item, a.fonts.familyDefault), L = We(d.item), E = 2 * (d.item.paddingInline + d.item.strokeWidth), B = 2 * (d.item.paddingBlock + d.item.strokeWidth), N = (Q) => f ? Yf(Q, L, d.swatch.size, B) : bo({
6057
+ const R = te(d.item, a.fonts.familyDefault), L = We(d.item), P = 2 * (d.item.paddingInline + d.item.strokeWidth), B = 2 * (d.item.paddingBlock + d.item.strokeWidth), N = (Q) => f ? Yf(Q, L, d.swatch.size, B) : bo({
6058
6058
  label: Q.formattedLabel,
6059
6059
  swatchInlineSize: jf(Q, d.swatch.size),
6060
6060
  textMeasurer: o,
6061
6061
  font: R,
6062
6062
  swatchGap: d.item.gap,
6063
- horizontalChrome: E
6063
+ horizontalChrome: P
6064
6064
  }), $ = g.map(N), oe = (f ? L + B : bo({
6065
6065
  label: `+${g.length}`,
6066
6066
  swatchInlineSize: 0,
6067
6067
  textMeasurer: o,
6068
6068
  font: R,
6069
6069
  swatchGap: d.item.gap,
6070
- horizontalChrome: E
6070
+ horizontalChrome: P
6071
6071
  })) + (Wi(d.item) ? 8 : 0);
6072
6072
  return Uf({
6073
6073
  pillSizes: $,
@@ -6085,7 +6085,7 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6085
6085
  d
6086
6086
  ]), A = ot([d.item.fill]);
6087
6087
  if (g.length === 0) return null;
6088
- const x = g.slice(0, p.visibleCount), S = g.slice(p.visibleCount), k = p.hasOverflow && S.length > 0, P = Di(d.item, A(d.item.fill));
6088
+ const x = g.slice(0, p.visibleCount), S = g.slice(p.visibleCount), k = p.hasOverflow && S.length > 0, E = Di(d.item, A(d.item.fill));
6089
6089
  return /* @__PURE__ */ w("div", {
6090
6090
  className: Fe(Wf[m], Hf, {
6091
6091
  [Df]: f,
@@ -6096,7 +6096,7 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6096
6096
  children: [x.map((R) => /* @__PURE__ */ s("div", {
6097
6097
  className: Fe(Vf, h && "_1cecisi9"),
6098
6098
  style: {
6099
- ...P,
6099
+ ...E,
6100
6100
  gap: d.item.gap
6101
6101
  },
6102
6102
  ...h ? Sn(R.address) : void 0,
@@ -6279,7 +6279,7 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6279
6279
  },
6280
6280
  "data-testid": "hover-guide",
6281
6281
  children: t
6282
- }), tp = (e) => e.hoverGuide().resolve(), i0 = (e, t, r) => {
6282
+ }), tp = (e) => e.hoverGuide().resolve(), l0 = (e, t, r) => {
6283
6283
  for (const n of Object.values(Yi)) {
6284
6284
  const o = n(e, t, r);
6285
6285
  if (o !== null) return o;
@@ -6756,7 +6756,7 @@ var zf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6756
6756
  })
6757
6757
  }, i.id))
6758
6758
  });
6759
- }, Mp = "_1aj6s5s0", s0 = "_1aj6s5s1", Op = 0.1, l0 = ({ annotation: e, panel: t, style: r, blockRef: n }) => /* @__PURE__ */ s(Ki, {
6759
+ }, Mp = "_1aj6s5s0", d0 = "_1aj6s5s1", Op = 0.1, c0 = ({ annotation: e, panel: t, style: r, blockRef: n }) => /* @__PURE__ */ s(Ki, {
6760
6760
  annotation: e,
6761
6761
  panel: t,
6762
6762
  style: r,
@@ -7052,7 +7052,7 @@ var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o
7052
7052
  y: t - n / 2,
7053
7053
  width: r,
7054
7054
  height: n
7055
- }, S = ur(v.cornerRadius), k = v.shadow === void 0 ? void 0 : Ye(v.shadow), P = {
7055
+ }, S = ur(v.cornerRadius), k = v.shadow === void 0 ? void 0 : Ye(v.shadow), E = {
7056
7056
  className: am,
7057
7057
  fill: v.fill === void 0 ? void 0 : V(v.fill),
7058
7058
  style: k === void 0 ? void 0 : { filter: k },
@@ -7066,12 +7066,12 @@ var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o
7066
7066
  opacity: v.alpha,
7067
7067
  children: [p && (S === null ? /* @__PURE__ */ s("path", {
7068
7068
  d: fn(x, v.cornerRadius),
7069
- ...P
7069
+ ...E
7070
7070
  }) : /* @__PURE__ */ s("rect", {
7071
7071
  ...x,
7072
7072
  rx: S,
7073
7073
  ry: S,
7074
- ...P
7074
+ ...E
7075
7075
  })), /* @__PURE__ */ s("text", {
7076
7076
  className: im,
7077
7077
  style: {
@@ -7492,7 +7492,7 @@ var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o
7492
7492
  }), Qi = {
7493
7493
  strokeDashoffset: "0",
7494
7494
  strokeLinecap: "round"
7495
- }, Xt = (e, t) => e.gridLine[t]().resolve(), Lm = ({ axes: e, panelBorderSizes: t, panelFrameRect: r, panelRect: n }) => {
7495
+ }, Lm = 1.5, Im = ({ strokeWidth: e, dashArray: t }) => t[0] === 0 ? Math.max(e, Lm) : e, Xt = (e, t) => e.gridLine[t]().resolve(), Tm = ({ axes: e, panelBorderSizes: t, panelFrameRect: r, panelRect: n }) => {
7496
7496
  const o = O(), a = Ne(), i = I(Xt, o, "x"), l = I(Xt, o, "y"), d = n.x - r.x, c = n.y - r.y;
7497
7497
  return /* @__PURE__ */ s("svg", {
7498
7498
  "data-testid": "grid",
@@ -7505,50 +7505,50 @@ var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o
7505
7505
  if (u.geometry !== "linear" || !u.gridVisible) return null;
7506
7506
  const h = Ae(u.scaleAestheticKey) === "x" ? i : l;
7507
7507
  if (h.strokeWidth <= 0) return null;
7508
- const g = u.position === "bottom" || u.position === "top", f = ve(h.dashArray, h.strokeWidth);
7509
- return /* @__PURE__ */ s("g", { children: u.ticks.map((v, m) => {
7510
- const p = Im(g, v.position);
7511
- if (p !== null && t[p] > 0) return null;
7512
- const A = g ? v.position : 1 - v.position;
7513
- let x;
7508
+ const g = u.position === "bottom" || u.position === "top", f = Im(h), v = ve(h.dashArray, f);
7509
+ return /* @__PURE__ */ s("g", { children: u.ticks.map((m, p) => {
7510
+ const A = Bm(g, m.position);
7511
+ if (A !== null && t[A] > 0) return null;
7512
+ const x = g ? m.position : 1 - m.position;
7513
+ let S;
7514
7514
  if (g) {
7515
- const k = A * n.width + d;
7516
- x = {
7517
- x1: k,
7515
+ const E = x * n.width + d;
7516
+ S = {
7517
+ x1: E,
7518
7518
  y1: 0,
7519
- x2: k,
7519
+ x2: E,
7520
7520
  y2: "100%"
7521
7521
  };
7522
7522
  } else {
7523
- const k = A * n.height + c;
7524
- x = {
7523
+ const E = x * n.height + c;
7524
+ S = {
7525
7525
  x1: 0,
7526
- y1: k,
7526
+ y1: E,
7527
7527
  x2: "100%",
7528
- y2: k
7528
+ y2: E
7529
7529
  };
7530
7530
  }
7531
- const S = /* @__PURE__ */ s("line", {
7532
- ...x,
7531
+ const k = /* @__PURE__ */ s("line", {
7532
+ ...S,
7533
7533
  ...Qi,
7534
- strokeDasharray: f,
7535
- strokeWidth: h.strokeWidth,
7534
+ strokeDasharray: v,
7535
+ strokeWidth: f,
7536
7536
  stroke: h.stroke
7537
7537
  });
7538
7538
  return a ? /* @__PURE__ */ w("g", {
7539
7539
  ...Ni(u.scaleAestheticKey),
7540
- children: [S, /* @__PURE__ */ s("line", {
7541
- ...x,
7540
+ children: [k, /* @__PURE__ */ s("line", {
7541
+ ...S,
7542
7542
  stroke: "transparent",
7543
7543
  strokeWidth: 7,
7544
7544
  pointerEvents: "stroke",
7545
7545
  "data-testid": "grid-line-hit-area"
7546
7546
  })]
7547
- }, m) : /* @__PURE__ */ s(_t, { children: S }, m);
7547
+ }, p) : /* @__PURE__ */ s(_t, { children: k }, p);
7548
7548
  }) }, u.scaleAestheticKey);
7549
7549
  })
7550
7550
  });
7551
- }, Im = (e, t) => t <= 0 ? e ? "left" : "bottom" : t >= 1 ? e ? "right" : "top" : null, Tm = ({ sizes: e, panelFrameRect: t }) => {
7551
+ }, Bm = (e, t) => t <= 0 ? e ? "left" : "bottom" : t >= 1 ? e ? "right" : "top" : null, Mm = ({ sizes: e, panelFrameRect: t }) => {
7552
7552
  const r = M((a) => a.coordSystem.type === "polar"), n = I(Xo, O());
7553
7553
  if (r) return null;
7554
7554
  const o = Os(n, {
@@ -7565,7 +7565,7 @@ var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o
7565
7565
  height: t.height,
7566
7566
  style: { overflow: "visible" },
7567
7567
  children: o.map((a, i) => /* @__PURE__ */ s("path", {
7568
- d: Bm(a.segments),
7568
+ d: Om(a.segments),
7569
7569
  fill: "none",
7570
7570
  stroke: a.stroke,
7571
7571
  strokeDasharray: ve(a.dashArray, a.strokeWidth),
@@ -7573,7 +7573,7 @@ var Up = (e, t, r, n) => t !== "comment" ? r : $o(r, 140, (o) => e.measureText(o
7573
7573
  ...Qi
7574
7574
  }, i))
7575
7575
  });
7576
- }, Bm = (e) => e.map((t) => {
7576
+ }, Om = (e) => e.map((t) => {
7577
7577
  switch (t.type) {
7578
7578
  case "move":
7579
7579
  return `M ${t.x} ${t.y}`;
@@ -7602,10 +7602,10 @@ var Xi = (e, t) => {
7602
7602
  angleFor: (d) => ul(d, a, i),
7603
7603
  radiusNormFor: (d) => o + d * (1 - o)
7604
7604
  };
7605
- }, Mm = 16, Om = ({ formattedAxes: e, panelRect: t }) => {
7605
+ }, Nm = 16, Hm = ({ formattedAxes: e, panelRect: t }) => {
7606
7606
  const r = I(yn, O()), n = Ne(), o = Xi(t, e);
7607
7607
  if (!o) return null;
7608
- const { circle: a, circularAxis: i, radialAxis: l, startAngle: d, angleFor: c, radiusNormFor: u } = o, h = Nm(l, u, a.radius), g = (f) => r(Ae(f.scaleAestheticKey));
7608
+ const { circle: a, circularAxis: i, radialAxis: l, startAngle: d, angleFor: c, radiusNormFor: u } = o, h = Fm(l, u, a.radius), g = (f) => r(Ae(f.scaleAestheticKey));
7609
7609
  return /* @__PURE__ */ w("svg", {
7610
7610
  x: t.x,
7611
7611
  y: t.y,
@@ -7626,7 +7626,7 @@ var Xi = (e, t) => {
7626
7626
  return /* @__PURE__ */ s(Co, {
7627
7627
  scaleAestheticKey: i.scaleAestheticKey,
7628
7628
  tickIndex: v,
7629
- placement: Lo(p, Hm(m)),
7629
+ placement: Lo(p, Dm(m)),
7630
7630
  label: f.formattedLabel,
7631
7631
  labelStyle: g(i),
7632
7632
  isHitTestable: n
@@ -7645,7 +7645,7 @@ var Xi = (e, t) => {
7645
7645
  cursor: "pointer",
7646
7646
  children: i
7647
7647
  }) : i;
7648
- }, Nm = (e, t, r) => {
7648
+ }, Fm = (e, t, r) => {
7649
7649
  if (!e) return [];
7650
7650
  const n = [];
7651
7651
  let o = Number.NEGATIVE_INFINITY;
@@ -7653,7 +7653,7 @@ var Xi = (e, t) => {
7653
7653
  const l = t(i.position);
7654
7654
  if (l <= 0) continue;
7655
7655
  const d = l * r;
7656
- d - o < Mm || (n.push({
7656
+ d - o < Nm || (n.push({
7657
7657
  tick: i,
7658
7658
  tickIndex: a,
7659
7659
  radiusNorm: l
@@ -7666,10 +7666,10 @@ var Xi = (e, t) => {
7666
7666
  textAnchor: t,
7667
7667
  dominantBaseline: "central",
7668
7668
  transform: void 0
7669
- }), Hm = (e) => {
7669
+ }), Dm = (e) => {
7670
7670
  const t = Math.sin(e);
7671
7671
  return Math.abs(t) < 0.01 ? "middle" : t > 0 ? "start" : "end";
7672
- }, Fm = ({ formattedAxes: e, panelRect: t }) => {
7672
+ }, Wm = ({ formattedAxes: e, panelRect: t }) => {
7673
7673
  const r = O(), n = Ne(), o = I(Xt, r, "y"), a = I(Xt, r, "x"), i = Xi(t, e);
7674
7674
  if (!i) return null;
7675
7675
  const { circle: l, circularAxis: d, radialAxis: c, innerRadius: u, angleFor: h, radiusNormFor: g } = i;
@@ -7741,7 +7741,7 @@ var Xi = (e, t) => {
7741
7741
  "data-testid": "grid-line-hit-area"
7742
7742
  })]
7743
7743
  }) : o;
7744
- }, Dm = ({ layer: e, isDimmed: t, dimStyle: r, ...n }) => {
7744
+ }, Gm = ({ layer: e, isDimmed: t, dimStyle: r, ...n }) => {
7745
7745
  const o = di(e.id), a = Wl(e, D(e)), i = t ? r.filter : void 0, l = a && i ? `${a} ${i}` : a || i, d = o?.type === "fade", c = b(() => ({
7746
7746
  layerId: e.id,
7747
7747
  paintsShadow: a !== void 0,
@@ -7757,7 +7757,7 @@ var Xi = (e, t) => {
7757
7757
  },
7758
7758
  children: /* @__PURE__ */ s(tr.Provider, {
7759
7759
  value: c,
7760
- children: /* @__PURE__ */ s(Wm, {
7760
+ children: /* @__PURE__ */ s(Vm, {
7761
7761
  layer: e,
7762
7762
  ...n
7763
7763
  })
@@ -7769,7 +7769,7 @@ var Xi = (e, t) => {
7769
7769
  transition: ca(o),
7770
7770
  children: u
7771
7771
  }) : u;
7772
- }, Wm = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, formattingLocale: n, panelRect: o }) => {
7772
+ }, Vm = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, formattingLocale: n, panelRect: o }) => {
7773
7773
  const a = Ce(), i = di(e.id), { colorScheme: l } = ee(), d = D(e), c = a(e.geom, t.type);
7774
7774
  if (c === null) return null;
7775
7775
  const u = cr(c.render);
@@ -7784,7 +7784,7 @@ var Xi = (e, t) => {
7784
7784
  styleReaders: d
7785
7785
  });
7786
7786
  };
7787
- function Gm({ renderer: e, layer: t, coordSystem: r, candidates: n }) {
7787
+ function zm({ renderer: e, layer: t, coordSystem: r, candidates: n }) {
7788
7788
  if (e?.getOverlayAnchor === void 0 || n.length === 0) return [];
7789
7789
  const o = [];
7790
7790
  for (const { observation: a, observationIndex: i } of n) {
@@ -7801,8 +7801,8 @@ function Gm({ renderer: e, layer: t, coordSystem: r, candidates: n }) {
7801
7801
  }
7802
7802
  return o;
7803
7803
  }
7804
- var Vm = 4, zm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n, coordSystem: o, shouldAnimateTransitions: a, panelRect: i, formattingLocale: l }) => {
7805
- const d = M((S) => S.config.numberFormat), c = b(() => Gm({
7804
+ var Ym = 4, jm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n, coordSystem: o, shouldAnimateTransitions: a, panelRect: i, formattingLocale: l }) => {
7805
+ const d = M((S) => S.config.numberFormat), c = b(() => zm({
7806
7806
  renderer: e,
7807
7807
  layer: t,
7808
7808
  coordSystem: o,
@@ -7837,9 +7837,9 @@ var Vm = 4, zm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7837
7837
  };
7838
7838
  x = e.renderHighlight ? e.renderHighlight(S) : A.fn(S);
7839
7839
  }
7840
- return /* @__PURE__ */ w(kn, { children: [x, c.map(({ observation: S, observationIndex: k, anchor: P }) => /* @__PURE__ */ s(Ym, {
7840
+ return /* @__PURE__ */ w(kn, { children: [x, c.map(({ observation: S, observationIndex: k, anchor: E }) => /* @__PURE__ */ s(Km, {
7841
7841
  observation: S,
7842
- anchor: P,
7842
+ anchor: E,
7843
7843
  panelRect: i,
7844
7844
  fill: $t(g, t, S) ?? Wr,
7845
7845
  symbol: h.get("symbol", S) ?? "circle",
@@ -7848,8 +7848,8 @@ var Vm = 4, zm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7848
7848
  formatYValue: v,
7849
7849
  labelStyle: p.observation.outside,
7850
7850
  familyDefault: m.familyDefault
7851
- }, jm(S, k)))] });
7852
- }, Ym = ({ observation: e, anchor: t, panelRect: r, fill: n, symbol: o, dotRadius: a, readSegmentY: i, formatYValue: l, labelStyle: d, familyDefault: c }) => {
7851
+ }, Um(S, k)))] });
7852
+ }, Km = ({ observation: e, anchor: t, panelRect: r, fill: n, symbol: o, dotRadius: a, readSegmentY: i, formatYValue: l, labelStyle: d, familyDefault: c }) => {
7853
7853
  const u = Me(), h = Jo(t.x), g = Zo(t.y), f = i(e) ?? null, v = f !== null ? l(f, e) : null, m = b(() => {
7854
7854
  if (v === null) return null;
7855
7855
  const p = u.measureText(v, te(d, c));
@@ -7872,7 +7872,7 @@ var Vm = 4, zm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7872
7872
  "data-testid": "highlight-overlay-dot"
7873
7873
  }), v !== null && m !== null && /* @__PURE__ */ s(Ui, {
7874
7874
  x: h * r.width,
7875
- y: g * r.height - a - Vm - m.height / 2,
7875
+ y: g * r.height - a - Ym - m.height / 2,
7876
7876
  width: m.width,
7877
7877
  height: m.height,
7878
7878
  text: v,
@@ -7881,7 +7881,7 @@ var Vm = 4, zm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7881
7881
  position: "outside",
7882
7882
  coordType: "cartesian"
7883
7883
  })] });
7884
- }, jm = (e, t) => {
7884
+ }, Um = (e, t) => {
7885
7885
  const r = e[ne.group];
7886
7886
  return `${String(r ?? "")}\0${t}`;
7887
7887
  }, Io = 64, Fr = ({ overlay: e, panelRect: t, children: r }) => {
@@ -7927,7 +7927,7 @@ var Vm = 4, zm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7927
7927
  t,
7928
7928
  r
7929
7929
  ]);
7930
- }, Km = ({ layer: e, coordSystem: t, panelRect: r }) => {
7930
+ }, Qm = ({ layer: e, coordSystem: t, panelRect: r }) => {
7931
7931
  const { primary: n, group: o, related: a } = yt(se((v) => ({
7932
7932
  primary: v.hover.primary,
7933
7933
  group: v.hover.group,
@@ -7960,7 +7960,7 @@ var Vm = 4, zm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7960
7960
  styleReaders: d
7961
7961
  })
7962
7962
  });
7963
- }, Um = (e) => {
7963
+ }, Xm = (e) => {
7964
7964
  const t = D(e);
7965
7965
  return b(() => {
7966
7966
  const [r] = e.data;
@@ -7974,7 +7974,7 @@ var Vm = 4, zm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7974
7974
  filter: la(ll(n))
7975
7975
  };
7976
7976
  }, [e, t]);
7977
- }, Qm = "var(--to1jkx0)", Xm = "var(--to1jkx1)", qm = "to1jkx2", Jm = "to1jkx3", Zm = ({ shouldAnimateTransitions: e, panelRect: t, formattingLocale: r }) => {
7977
+ }, qm = "var(--to1jkx0)", Jm = "var(--to1jkx1)", Zm = "to1jkx2", $m = "to1jkx3", _m = ({ shouldAnimateTransitions: e, panelRect: t, formattingLocale: r }) => {
7978
7978
  const { layers: n, coordSystem: o } = M(se((i) => ({
7979
7979
  layers: i.layers,
7980
7980
  coordSystem: i.coordSystem
@@ -7984,30 +7984,30 @@ var Vm = 4, zm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7984
7984
  y: t.y,
7985
7985
  width: t.width,
7986
7986
  height: t.height,
7987
- className: qm,
7987
+ className: Zm,
7988
7988
  "data-testid": "geom-layers",
7989
7989
  ...rf(),
7990
- children: a.map((i) => /* @__PURE__ */ w(_t, { children: [/* @__PURE__ */ s(ey, {
7990
+ children: a.map((i) => /* @__PURE__ */ w(_t, { children: [/* @__PURE__ */ s(ry, {
7991
7991
  layer: i,
7992
7992
  coordSystem: o,
7993
7993
  shouldAnimateTransitions: e,
7994
7994
  panelRect: t,
7995
7995
  formattingLocale: r
7996
- }), /* @__PURE__ */ s(Km, {
7996
+ }), /* @__PURE__ */ s(Qm, {
7997
7997
  layer: i,
7998
7998
  coordSystem: o,
7999
7999
  panelRect: t
8000
- })] }, `${i.id}-${$m(o)}`))
8000
+ })] }, `${i.id}-${ey(o)}`))
8001
8001
  });
8002
- }, $m = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, _m = (e) => er({
8003
- ...e.opacity === void 0 ? {} : { [Qm]: String(e.opacity) },
8004
- ...e.filter === void 0 ? {} : { [Xm]: e.filter }
8005
- }), ey = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, panelRect: n, formattingLocale: o }) => {
8002
+ }, ey = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, ty = (e) => er({
8003
+ ...e.opacity === void 0 ? {} : { [qm]: String(e.opacity) },
8004
+ ...e.filter === void 0 ? {} : { [Jm]: e.filter }
8005
+ }), ry = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, panelRect: n, formattingLocale: o }) => {
8006
8006
  const a = Ce(), i = b(() => a(e.geom, t.type), [
8007
8007
  a,
8008
8008
  e,
8009
8009
  t
8010
- ]), l = e.highlight, d = Um(e), c = qi(e), { colorScheme: u } = ee(), h = {
8010
+ ]), l = e.highlight, d = Xm(e), c = qi(e), { colorScheme: u } = ee(), h = {
8011
8011
  layer: e,
8012
8012
  coordSystem: t,
8013
8013
  shouldAnimateTransitions: r,
@@ -8017,13 +8017,13 @@ var Vm = 4, zm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8017
8017
  styleReaders: D(e)
8018
8018
  }, g = i ? cr(i.render) : null, f = e.spatialKind === "render-hit-test", v = d.opacity !== void 0 || d.filter !== void 0;
8019
8019
  return /* @__PURE__ */ s("g", {
8020
- className: v ? Jm : void 0,
8021
- style: v ? _m(d) : void 0,
8020
+ className: v ? $m : void 0,
8021
+ style: v ? ty(d) : void 0,
8022
8022
  children: /* @__PURE__ */ w(Fr, {
8023
8023
  overlay: g?.overlay ? [] : c,
8024
8024
  panelRect: n,
8025
8025
  children: [
8026
- /* @__PURE__ */ s(Dm, {
8026
+ /* @__PURE__ */ s(Gm, {
8027
8027
  layer: e,
8028
8028
  coordSystem: t,
8029
8029
  shouldAnimateTransitions: r,
@@ -8040,7 +8040,7 @@ var Vm = 4, zm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8040
8040
  render: g.fn,
8041
8041
  input: h
8042
8042
  }),
8043
- l !== null && /* @__PURE__ */ s(zm, {
8043
+ l !== null && /* @__PURE__ */ s(jm, {
8044
8044
  renderer: i,
8045
8045
  layer: e,
8046
8046
  matchedLayer: l.composition.matchedLayer,
@@ -8053,13 +8053,13 @@ var Vm = 4, zm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8053
8053
  ]
8054
8054
  })
8055
8055
  });
8056
- }, ty = "_17uhij30", ry = ({ formattedAxes: e, plotRect: t, panelBorder: r, panelFrameRect: n, panelRect: o, axisRects: a, axisLabelRects: i, shouldAnimateTransitions: l, formattingLocale: d, plotBottomY: c, isFooterChromeReserved: u, isEditable: h, showAnnotations: g }) => {
8056
+ }, ny = "_17uhij30", oy = ({ formattedAxes: e, plotRect: t, panelBorder: r, panelFrameRect: n, panelRect: o, axisRects: a, axisLabelRects: i, shouldAnimateTransitions: l, formattingLocale: d, plotBottomY: c, isFooterChromeReserved: u, isEditable: h, showAnnotations: g }) => {
8057
8057
  const f = F(null);
8058
8058
  gp(f);
8059
- const v = xe("Grid", Lm), m = xe("AxisTicks", Rm), p = xe("AxisLabel", Cm), A = b(() => Dr(n, t), [n, t]), x = b(() => Dr(o, t), [o, t]), S = b(() => Bo(a, t), [a, t]), k = b(() => Bo(i, t), [i, t]), P = it(), R = g && !P;
8059
+ const v = xe("Grid", Tm), m = xe("AxisTicks", Rm), p = xe("AxisLabel", Cm), A = b(() => Dr(n, t), [n, t]), x = b(() => Dr(o, t), [o, t]), S = b(() => Bo(a, t), [a, t]), k = b(() => Bo(i, t), [i, t]), E = it(), R = g && !E;
8060
8060
  return /* @__PURE__ */ w("svg", {
8061
8061
  ref: f,
8062
- className: ty,
8062
+ className: ny,
8063
8063
  width: t.width,
8064
8064
  height: t.height,
8065
8065
  style: { transform: `translate(${t.x}px, ${t.y}px)` },
@@ -8079,7 +8079,7 @@ var Vm = 4, zm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8079
8079
  formattedAxes: e,
8080
8080
  labelRects: k
8081
8081
  }),
8082
- /* @__PURE__ */ s(Fm, {
8082
+ /* @__PURE__ */ s(Wm, {
8083
8083
  formattedAxes: e,
8084
8084
  panelRect: x
8085
8085
  }),
@@ -8091,16 +8091,16 @@ var Vm = 4, zm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8091
8091
  panelRect: x,
8092
8092
  zOrder: "background"
8093
8093
  })] }),
8094
- /* @__PURE__ */ s(Tm, {
8094
+ /* @__PURE__ */ s(Mm, {
8095
8095
  sizes: r,
8096
8096
  panelFrameRect: A
8097
8097
  }),
8098
- /* @__PURE__ */ s(Zm, {
8098
+ /* @__PURE__ */ s(_m, {
8099
8099
  shouldAnimateTransitions: l,
8100
8100
  panelRect: x,
8101
8101
  formattingLocale: d
8102
8102
  }),
8103
- /* @__PURE__ */ s(Om, {
8103
+ /* @__PURE__ */ s(Hm, {
8104
8104
  formattedAxes: e,
8105
8105
  panelRect: x
8106
8106
  }),
@@ -8143,7 +8143,7 @@ var Vm = 4, zm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8143
8143
  const r = {};
8144
8144
  for (const [n, o] of Object.entries(e)) r[n] = Dr(o, t);
8145
8145
  return r;
8146
- }, ny = (e) => {
8146
+ }, ay = (e) => {
8147
8147
  let t, r;
8148
8148
  return "aspectRatio" in e ? "intrinsicWidth" in e ? (t = e.intrinsicWidth, r = t / e.aspectRatio) : (r = e.intrinsicHeight, t = r * e.aspectRatio) : (t = e.intrinsicWidth, r = e.intrinsicHeight), {
8149
8149
  width: Mo(t, "width"),
@@ -8152,7 +8152,7 @@ var Vm = 4, zm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8152
8152
  }, Mo = (e, t) => {
8153
8153
  if (e <= 0 || Number.isNaN(e) || !Number.isFinite(e)) throw new vs({ message: `Expected ${t} to be a positive, finite number, but got ${e}.` });
8154
8154
  return e;
8155
- }, oy = ({ sizing: e, onResize: t, children: r }) => {
8155
+ }, iy = ({ sizing: e, onResize: t, children: r }) => {
8156
8156
  const n = ei({ onResize: t }), o = F(!1);
8157
8157
  if (G(() => {
8158
8158
  e.mode === "responsive" && (n.isDefault || n.width > 0 && n.height > 0 || o.current || (o.current = !0, console.warn(`[graphy] ZERO_SIZE_CONTAINER: GraphRenderer measured ${n.width}×${n.height}; the chart will not paint until the host has a positive width and height.`)));
@@ -8162,7 +8162,7 @@ var Vm = 4, zm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8162
8162
  n.width,
8163
8163
  n.height
8164
8164
  ]), e.mode === "keepAspectRatio") {
8165
- const { intrinsicSize: i, canRender: l, outerStyles: d, innerStyles: c } = ay(e, n.width, !n.isDefault);
8165
+ const { intrinsicSize: i, canRender: l, outerStyles: d, innerStyles: c } = sy(e, n.width, !n.isDefault);
8166
8166
  return /* @__PURE__ */ s("div", {
8167
8167
  ref: n.setElement,
8168
8168
  style: d,
@@ -8198,8 +8198,8 @@ var Vm = 4, zm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8198
8198
  height: n.height
8199
8199
  })
8200
8200
  });
8201
- }, ay = (e, t, r) => {
8202
- const n = ny(e), o = t > 0 && n.width > 0 ? t / n.width : 1;
8201
+ }, sy = (e, t, r) => {
8202
+ const n = ay(e), o = t > 0 && n.width > 0 ? t / n.width : 1;
8203
8203
  return {
8204
8204
  intrinsicSize: n,
8205
8205
  canRender: r,
@@ -8214,7 +8214,7 @@ var Vm = 4, zm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8214
8214
  height: n.height
8215
8215
  }
8216
8216
  };
8217
- }, iy = { mode: "responsive" }, Sr = {
8217
+ }, ly = { mode: "responsive" }, Sr = {
8218
8218
  headerSize: {
8219
8219
  width: 0,
8220
8220
  height: 0
@@ -8223,7 +8223,7 @@ var Vm = 4, zm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8223
8223
  width: 0,
8224
8224
  height: 0
8225
8225
  }
8226
- }, sy = () => {
8226
+ }, dy = () => {
8227
8227
  const [e, t] = j(null), [r, n] = j(null), [o, a] = j(Sr);
8228
8228
  return Cl(() => {
8229
8229
  const i = () => {
@@ -8234,7 +8234,7 @@ var Vm = 4, zm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8234
8234
  width: r.offsetWidth,
8235
8235
  height: r.offsetHeight
8236
8236
  } : Sr.footerSize;
8237
- a((u) => ly(u, {
8237
+ a((u) => cy(u, {
8238
8238
  headerSize: d,
8239
8239
  footerSize: c
8240
8240
  }) ? {
@@ -8250,9 +8250,9 @@ var Vm = 4, zm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8250
8250
  footerRef: n,
8251
8251
  measurements: o
8252
8252
  };
8253
- }, ly = (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, dy = () => null, cy = "_1vl0pke0", uy = "_1vl0pke1";
8254
- var hy = [], vy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRef: o, children: a }) => {
8255
- const { themeClass: i, inlineVarsStyle: l } = pn(), d = e.strokeWidth, c = d > 0 ? e.stroke : void 0, u = Math.max(0, e.cornerRadius), h = u === 0 ? 0 : u + d, { shadow: g, alpha: f, blendMode: v, fill: m, overlay: p = hy } = e, A = ot([m, ...p]), x = A(m), S = typeof m != "string", k = b(() => ({
8253
+ }, cy = (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, uy = () => null, hy = "_1vl0pke0", vy = "_1vl0pke1";
8254
+ var gy = [], fy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRef: o, children: a }) => {
8255
+ const { themeClass: i, inlineVarsStyle: l } = pn(), d = e.strokeWidth, c = d > 0 ? e.stroke : void 0, u = Math.max(0, e.cornerRadius), h = u === 0 ? 0 : u + d, { shadow: g, alpha: f, blendMode: v, fill: m, overlay: p = gy } = e, A = ot([m, ...p]), x = A(m), S = typeof m != "string", k = b(() => ({
8256
8256
  ...n,
8257
8257
  borderRadius: `${h}px`,
8258
8258
  ...l,
@@ -8269,10 +8269,10 @@ var hy = [], vy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
8269
8269
  d,
8270
8270
  c,
8271
8271
  g
8272
- ]), P = b(() => ({
8272
+ ]), E = b(() => ({
8273
8273
  borderRadius: `${u}px`,
8274
8274
  ...v === "normal" ? {} : { mixBlendMode: v },
8275
- ...gy(S, f)
8275
+ ...py(S, f)
8276
8276
  }), [
8277
8277
  u,
8278
8278
  v,
@@ -8298,9 +8298,9 @@ var hy = [], vy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
8298
8298
  className: bt(Lh, {
8299
8299
  [Ih]: t,
8300
8300
  [Th]: L,
8301
- [uy]: S
8301
+ [vy]: S
8302
8302
  }),
8303
- style: P,
8303
+ style: E,
8304
8304
  children: [
8305
8305
  R && /* @__PURE__ */ s("div", {
8306
8306
  "aria-hidden": !0,
@@ -8309,30 +8309,30 @@ var hy = [], vy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
8309
8309
  style: R
8310
8310
  }),
8311
8311
  a,
8312
- [...p].reverse().map((E, B) => /* @__PURE__ */ s("div", {
8312
+ [...p].reverse().map((P, B) => /* @__PURE__ */ s("div", {
8313
8313
  "aria-hidden": !0,
8314
8314
  "data-testid": "graph-overlay",
8315
- className: cy,
8316
- style: Je(E, A(E))
8315
+ className: hy,
8316
+ style: Je(P, A(P))
8317
8317
  }, B))
8318
8318
  ]
8319
8319
  })
8320
8320
  });
8321
- }, gy = (e, t) => e ? { backgroundColor: "transparent" } : t === void 0 || t >= 1 ? {} : { backgroundColor: `color-mix(in srgb, ${y.graphBackground} ${t * 100}%, transparent)` }, d0 = (e) => /* @__PURE__ */ s(bh, {
8321
+ }, py = (e, t) => e ? { backgroundColor: "transparent" } : t === void 0 || t >= 1 ? {} : { backgroundColor: `color-mix(in srgb, ${y.graphBackground} ${t * 100}%, transparent)` }, u0 = (e) => /* @__PURE__ */ s(bh, {
8322
8322
  locale: Ov(),
8323
- children: /* @__PURE__ */ s(fy, { ...e })
8324
- }), fy = ({ slots: e, sizing: t = iy, onResize: r, ...n }) => /* @__PURE__ */ s(Ku, { children: /* @__PURE__ */ s(Sc, { children: /* @__PURE__ */ s(Dc, {
8323
+ children: /* @__PURE__ */ s(my, { ...e })
8324
+ }), my = ({ slots: e, sizing: t = ly, onResize: r, ...n }) => /* @__PURE__ */ s(Ku, { children: /* @__PURE__ */ s(Sc, { children: /* @__PURE__ */ s(Dc, {
8325
8325
  slots: e,
8326
- children: /* @__PURE__ */ s(oy, {
8326
+ children: /* @__PURE__ */ s(iy, {
8327
8327
  sizing: t,
8328
8328
  onResize: r,
8329
- children: ({ width: o, height: a }) => /* @__PURE__ */ s(py, {
8329
+ children: ({ width: o, height: a }) => /* @__PURE__ */ s(yy, {
8330
8330
  width: o,
8331
8331
  height: a,
8332
8332
  ...n
8333
8333
  })
8334
8334
  })
8335
- }) }) }), py = ({ width: e, height: t, animation: r, showTooltips: n = !0, mode: o = Re.readonly }) => {
8335
+ }) }) }), yy = ({ width: e, height: t, animation: r, showTooltips: n = !0, mode: o = Re.readonly }) => {
8336
8336
  const a = ri(), i = vn(o), { axes: l, legends: d, layers: c, numberFormat: u, parsingLocale: h, annotations: g, coordSystem: f, headline: v, headlineConfig: m, content: p, overflowStrategy: A } = M(se((de) => ({
8337
8337
  axes: de.guides.axes,
8338
8338
  legends: de.guides.legends.drawn,
@@ -8345,7 +8345,7 @@ var hy = [], vy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
8345
8345
  headlineConfig: de.config.headline,
8346
8346
  content: de.config.content,
8347
8347
  overflowStrategy: de.config.panel.overflow
8348
- }))), { intro: x, transitions: S } = lh(r, c), { headerRef: k, footerRef: P, measurements: R } = sy(), { formattingLocale: L, colorScheme: E } = ee(), B = Oe[i], N = B.editorSurface, [$, oe] = j(null), Q = xe("Header", Tg), Le = xe("Footer", kg), Ji = xe("Legend", Xf), Zi = xe("Headline", $g), $i = xe("EditorSurface", dy), Rn = b(() => Ks({
8348
+ }))), { intro: x, transitions: S } = lh(r, c), { headerRef: k, footerRef: E, measurements: R } = dy(), { formattingLocale: L, colorScheme: P } = ee(), B = Oe[i], N = B.editorSurface, [$, oe] = j(null), Q = xe("Header", Tg), Le = xe("Footer", kg), Ji = xe("Legend", Xf), Zi = xe("Headline", $g), $i = xe("EditorSurface", uy), Rn = b(() => Ks({
8349
8349
  legends: d,
8350
8350
  numberFormat: u,
8351
8351
  parsingLocale: h,
@@ -8369,7 +8369,7 @@ var hy = [], vy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
8369
8369
  h,
8370
8370
  L,
8371
8371
  a
8372
- ]), _i = Me(), ke = O(), Cn = I(my, ke), Ln = I(Xo, ke), In = I(xn, ke), Tn = I(yy, ke), es = I(xy, ke), ts = I(Ay, ke), rs = I(by, ke), { fontFamily: fr, textScale: ns, strokeWidth: pr, fill: os } = Cn, Bn = b(() => Ta(E, {}, fr), [E, fr]), lt = b(() => ({
8372
+ ]), _i = Me(), ke = O(), Cn = I(xy, ke), Ln = I(Xo, ke), In = I(xn, ke), Tn = I(Ay, ke), es = I(by, ke), ts = I(wy, ke), rs = I(Sy, ke), { fontFamily: fr, textScale: ns, strokeWidth: pr, fill: os } = Cn, Bn = b(() => Ta(P, {}, fr), [P, fr]), lt = b(() => ({
8373
8373
  width: Math.max(0, e - 2 * pr),
8374
8374
  height: Math.max(0, t - 2 * pr)
8375
8375
  }), [
@@ -8429,7 +8429,7 @@ var hy = [], vy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
8429
8429
  return /* @__PURE__ */ s(Hi.Provider, {
8430
8430
  value: i,
8431
8431
  children: /* @__PURE__ */ s(Mh, {
8432
- colorScheme: E,
8432
+ colorScheme: P,
8433
8433
  textScale: ns,
8434
8434
  graphBackground: V(os),
8435
8435
  graphFontFamily: fr,
@@ -8438,7 +8438,7 @@ var hy = [], vy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
8438
8438
  metrics: Bn,
8439
8439
  children: /* @__PURE__ */ s(Nv, { children: /* @__PURE__ */ s(_v, {
8440
8440
  panelRect: ae.panel,
8441
- children: /* @__PURE__ */ s(vy, {
8441
+ children: /* @__PURE__ */ s(fy, {
8442
8442
  graphChrome: Cn,
8443
8443
  isEditable: N,
8444
8444
  mode: i,
@@ -8463,7 +8463,7 @@ var hy = [], vy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
8463
8463
  subtitleStyle: es,
8464
8464
  brandMark: is
8465
8465
  }),
8466
- /* @__PURE__ */ s(ry, {
8466
+ /* @__PURE__ */ s(oy, {
8467
8467
  formattedAxes: Nn,
8468
8468
  plotRect: ae.plot,
8469
8469
  panelBorder: On,
@@ -8479,7 +8479,7 @@ var hy = [], vy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
8479
8479
  showAnnotations: B.annotations
8480
8480
  }),
8481
8481
  /* @__PURE__ */ s(Le, {
8482
- ref: P,
8482
+ ref: E,
8483
8483
  footerRect: ae.footer,
8484
8484
  mode: i,
8485
8485
  caption: p.caption,
@@ -8515,10 +8515,10 @@ var hy = [], vy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
8515
8515
  })
8516
8516
  })
8517
8517
  });
8518
- }, my = (e) => e.graph().resolve(), yy = (e) => e.heading.h1().resolve(), xy = (e) => e.heading.h2().resolve(), Ay = (e) => e.caption().resolve(), by = (e) => ({
8518
+ }, xy = (e) => e.graph().resolve(), Ay = (e) => e.heading.h1().resolve(), by = (e) => e.heading.h2().resolve(), wy = (e) => e.caption().resolve(), Sy = (e) => ({
8519
8519
  label: e.source().resolve(),
8520
8520
  link: e.source.link().resolve()
8521
- }), c0 = (e) => {
8521
+ }), h0 = (e) => {
8522
8522
  const t = W(ra), r = tn();
8523
8523
  return b(() => e || (t ? {
8524
8524
  commands: t.commands,
@@ -8536,17 +8536,17 @@ var hy = [], vy = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
8536
8536
  t,
8537
8537
  r
8538
8538
  ]);
8539
- }, u0 = (e) => Ll(e.subscribe, e.getScene, e.getScene), h0 = () => {
8539
+ }, v0 = (e) => Ll(e.subscribe, e.getScene, e.getScene), g0 = () => {
8540
8540
  const { commands: e } = ee();
8541
8541
  return e;
8542
- }, v0 = (e) => {
8542
+ }, f0 = (e) => {
8543
8543
  if (e.altKey || !e.metaKey && !e.ctrlKey) return null;
8544
8544
  const t = e.key.toLowerCase();
8545
8545
  return t === "z" ? e.shiftKey ? "redo" : "undo" : t === "y" && e.ctrlKey && !e.shiftKey ? "redo" : null;
8546
8546
  };
8547
8547
  export {
8548
- qy as $,
8549
- Wy as $t,
8548
+ Zy as $,
8549
+ Vy as $t,
8550
8550
  wn as A,
8551
8551
  Nr as At,
8552
8552
  ki as B,
@@ -8558,14 +8558,14 @@ export {
8558
8558
  Qt as E,
8559
8559
  _a as Et,
8560
8560
  Vg as F,
8561
- Ky as Ft,
8562
- r0 as G,
8561
+ Qy as Ft,
8562
+ o0 as G,
8563
8563
  Me as Gt,
8564
8564
  eg as H,
8565
- Yy as Ht,
8565
+ Ky as Ht,
8566
8566
  Ri as I,
8567
8567
  Du as It,
8568
- _y as J,
8568
+ t0 as J,
8569
8569
  gt as Jt,
8570
8570
  bi as K,
8571
8571
  xc as Kt,
@@ -8574,35 +8574,35 @@ export {
8574
8574
  Sn as M,
8575
8575
  Mr as Mt,
8576
8576
  _g as N,
8577
- Uy as Nt,
8578
- o0 as O,
8577
+ Xy as Nt,
8578
+ i0 as O,
8579
8579
  Ku as Ot,
8580
8580
  zg as P,
8581
8581
  Wu as Pt,
8582
- Jy as Q,
8582
+ $y as Q,
8583
8583
  ar as Qt,
8584
8584
  kg as R,
8585
8585
  du as Rt,
8586
- i0 as S,
8586
+ l0 as S,
8587
8587
  th as St,
8588
8588
  Tt as T,
8589
8589
  Ju as Tt,
8590
- t0 as U,
8590
+ n0 as U,
8591
8591
  Ce as Ut,
8592
8592
  yg as V,
8593
8593
  qc as Vt,
8594
8594
  Te as W,
8595
8595
  Sc as Wt,
8596
8596
  xt as X,
8597
- zy as Xt,
8598
- $y as Y,
8599
- Vy as Yt,
8600
- Zy as Z,
8601
- Gy as Zt,
8597
+ jy as Xt,
8598
+ e0 as Y,
8599
+ Yy as Yt,
8600
+ _y as Z,
8601
+ zy as Zt,
8602
8602
  Bt as _,
8603
8603
  ee as _n,
8604
8604
  bh as _t,
8605
- d0 as a,
8605
+ u0 as a,
8606
8606
  Ir as an,
8607
8607
  lv as at,
8608
8608
  np as b,
@@ -8611,12 +8611,12 @@ export {
8611
8611
  Xt as c,
8612
8612
  Zl as cn,
8613
8613
  Nh as ct,
8614
- l0 as d,
8614
+ c0 as d,
8615
8615
  tt as dn,
8616
8616
  Oh as dt,
8617
8617
  y as en,
8618
- Xy as et,
8619
- s0 as f,
8618
+ Jy as et,
8619
+ d0 as f,
8620
8620
  D as fn,
8621
8621
  Mh as ft,
8622
8622
  yp as g,
@@ -8625,12 +8625,12 @@ export {
8625
8625
  Sp as h,
8626
8626
  M as hn,
8627
8627
  oi as ht,
8628
- c0 as i,
8628
+ h0 as i,
8629
8629
  ua as in,
8630
8630
  Ov as it,
8631
8631
  Ni as j,
8632
8632
  Gu as jt,
8633
- a0 as k,
8633
+ s0 as k,
8634
8634
  Ke as kt,
8635
8635
  _p as l,
8636
8636
  Vt as ln,
@@ -8638,31 +8638,31 @@ export {
8638
8638
  Tp as m,
8639
8639
  na as mn,
8640
8640
  Bh as mt,
8641
- h0 as n,
8641
+ g0 as n,
8642
8642
  Xn as nn,
8643
8643
  Dv as nt,
8644
- fy as o,
8644
+ my as o,
8645
8645
  be as on,
8646
8646
  it as ot,
8647
8647
  Bp as p,
8648
8648
  O as pn,
8649
8649
  pn as pt,
8650
- e0 as q,
8650
+ r0 as q,
8651
8651
  I as qt,
8652
- u0 as r,
8652
+ v0 as r,
8653
8653
  le as rn,
8654
8654
  Hv as rt,
8655
- Lm as s,
8656
- Dy as sn,
8655
+ Tm as s,
8656
+ Gy as sn,
8657
8657
  yt as st,
8658
- v0 as t,
8658
+ f0 as t,
8659
8659
  Ie as tn,
8660
- Qy as tt,
8660
+ qy as tt,
8661
8661
  Wp as u,
8662
8662
  Ge as un,
8663
8663
  uo as ut,
8664
8664
  ip as v,
8665
- Fy as vn,
8665
+ Wy as vn,
8666
8666
  ri as vt,
8667
8667
  Ne as w,
8668
8668
  $u as wt,
@@ -8671,6 +8671,6 @@ export {
8671
8671
  op as y,
8672
8672
  tn as yn,
8673
8673
  gn as yt,
8674
- n0 as z,
8675
- jy as zt
8674
+ a0 as z,
8675
+ Uy as zt
8676
8676
  };