@graphysdk/react-renderer 1.9.0-beta.1794827419339 → 1.9.0-beta.1794840813545

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,7 +22,7 @@ import './history-chords.css';var _o = Object.defineProperty, wu = (e, t) => {
22
22
  });
23
23
  return t || _o(r, Symbol.toStringTag, { value: "Module" }), r;
24
24
  };
25
- typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1794827419339");
25
+ typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1794840813545");
26
26
  function ku(e) {
27
27
  for (const t of e) (t.severity === "error" ? console.error : console.warn)(`[graphy] ${t.code}: ${t.message}`, t);
28
28
  }
@@ -275,27 +275,27 @@ var Fi = U(/* @__PURE__ */ new Map()), Ht = /* @__PURE__ */ new Map(), zt = [],
275
275
  height: t,
276
276
  opacity: n
277
277
  }), Ku = ({ glyph: e, size: t, fill: r, fillOpacity: n, stroke: o, strokeOpacity: a, strokeWidth: i }) => {
278
- const [s, d, c, u] = e.viewBox, h = Math.max(c, u), g = h === 0 ? 0 : t / h;
278
+ const [s, d, c, u] = e.viewBox, h = Math.max(c, u), v = h === 0 ? 0 : t / h;
279
279
  return /* @__PURE__ */ l("g", {
280
- transform: `translate(${-(s + c / 2) * g} ${-(d + u / 2) * g}) scale(${g})`,
280
+ transform: `translate(${-(s + c / 2) * v} ${-(d + u / 2) * v}) scale(${v})`,
281
281
  children: /* @__PURE__ */ l("path", {
282
282
  d: e.d,
283
283
  fill: r,
284
284
  fillOpacity: n,
285
285
  stroke: o,
286
286
  strokeOpacity: a,
287
- strokeWidth: i === void 0 ? void 0 : i / g
287
+ strokeWidth: i === void 0 ? void 0 : i / v
288
288
  })
289
289
  });
290
- }, Gr = ({ symbol: e, cx: t, cy: r, size: n, fill: o, fillOpacity: a, opacity: i, stroke: s, strokeOpacity: d, strokeWidth: c, style: u, motion: h, "data-testid": g }) => {
291
- const f = Dr(), v = {
290
+ }, Gr = ({ symbol: e, cx: t, cy: r, size: n, fill: o, fillOpacity: a, opacity: i, stroke: s, strokeOpacity: d, strokeWidth: c, style: u, motion: h, "data-testid": v }) => {
291
+ const f = Dr(), g = {
292
292
  fill: o,
293
293
  fillOpacity: a,
294
294
  stroke: s,
295
295
  strokeOpacity: d,
296
296
  strokeWidth: c,
297
297
  style: u
298
- }, m = h?.fadesIn ? { opacity: 0 } : {};
298
+ }, p = h?.fadesIn ? { opacity: 0 } : {};
299
299
  if (!et(e)) {
300
300
  const A = {
301
301
  transformBox: "view-box",
@@ -315,7 +315,7 @@ var Fi = U(/* @__PURE__ */ new Map()), Ht = /* @__PURE__ */ new Map(), zt = [],
315
315
  x: t,
316
316
  y: r,
317
317
  scale: 0,
318
- ...m
318
+ ...p
319
319
  } : !1,
320
320
  transition: h.transition,
321
321
  animate: {
@@ -324,7 +324,7 @@ var Fi = U(/* @__PURE__ */ new Map()), Ht = /* @__PURE__ */ new Map(), zt = [],
324
324
  scale: 1,
325
325
  opacity: i
326
326
  },
327
- "data-testid": g,
327
+ "data-testid": v,
328
328
  style: {
329
329
  ...A,
330
330
  originX: 0,
@@ -333,7 +333,7 @@ var Fi = U(/* @__PURE__ */ new Map()), Ht = /* @__PURE__ */ new Map(), zt = [],
333
333
  children: w
334
334
  }) : /* @__PURE__ */ l("g", {
335
335
  opacity: i,
336
- "data-testid": g,
336
+ "data-testid": v,
337
337
  style: {
338
338
  ...A,
339
339
  transform: `translate(${t}, ${r})`
@@ -348,7 +348,7 @@ var Fi = U(/* @__PURE__ */ new Map()), Ht = /* @__PURE__ */ new Map(), zt = [],
348
348
  cx: t,
349
349
  cy: r,
350
350
  r: 0,
351
- ...m
351
+ ...p
352
352
  } : !1,
353
353
  transition: h.transition,
354
354
  animate: {
@@ -357,19 +357,19 @@ var Fi = U(/* @__PURE__ */ new Map()), Ht = /* @__PURE__ */ new Map(), zt = [],
357
357
  r: A,
358
358
  opacity: i
359
359
  },
360
- "data-testid": g,
361
- ...v
360
+ "data-testid": v,
361
+ ...g
362
362
  }) : /* @__PURE__ */ l("circle", {
363
363
  cx: t,
364
364
  cy: r,
365
365
  r: A,
366
366
  opacity: i,
367
- "data-testid": g,
368
- ...v
367
+ "data-testid": v,
368
+ ...g
369
369
  });
370
370
  }
371
- const p = $d(e, n), y = {
372
- ...v,
371
+ const m = $d(e, n), y = {
372
+ ...g,
373
373
  strokeLinejoin: "round",
374
374
  style: {
375
375
  transformBox: "view-box",
@@ -380,19 +380,19 @@ var Fi = U(/* @__PURE__ */ new Map()), Ht = /* @__PURE__ */ new Map(), zt = [],
380
380
  initial: h.intro ? {
381
381
  x: t,
382
382
  y: r,
383
- d: p,
383
+ d: m,
384
384
  scale: 0,
385
- ...m
385
+ ...p
386
386
  } : !1,
387
387
  transition: h.transition,
388
388
  animate: {
389
389
  x: t,
390
390
  y: r,
391
- d: p,
391
+ d: m,
392
392
  scale: 1,
393
393
  opacity: i
394
394
  },
395
- "data-testid": g,
395
+ "data-testid": v,
396
396
  ...y,
397
397
  style: {
398
398
  ...y.style,
@@ -400,9 +400,9 @@ var Fi = U(/* @__PURE__ */ new Map()), Ht = /* @__PURE__ */ new Map(), zt = [],
400
400
  originY: 0
401
401
  }
402
402
  }, e) : /* @__PURE__ */ l("path", {
403
- d: p,
403
+ d: m,
404
404
  opacity: i,
405
- "data-testid": g,
405
+ "data-testid": v,
406
406
  ...y,
407
407
  style: {
408
408
  ...y.style,
@@ -434,13 +434,13 @@ var ra = 10 ** 2, V = (e) => Math.round(e * ra) / ra, qu = 32, iS = (e, t) => {
434
434
  t[3],
435
435
  t[2],
436
436
  t[1]
437
- ] : t, g = Math.max(Math.min(r.from, r.to), a), f = Math.min(Math.max(r.from, r.to), a + s);
438
- if (f - g <= 0 || i <= 0) return "";
439
- const v = o + i, m = a + s, p = n ? 0 : 1, y = (R, P) => {
437
+ ] : t, v = Math.max(Math.min(r.from, r.to), a), f = Math.min(Math.max(r.from, r.to), a + s);
438
+ if (f - v <= 0 || i <= 0) return "";
439
+ const g = o + i, p = a + s, m = n ? 0 : 1, y = (R, P) => {
440
440
  const [I, F] = n ? [P, R] : [R, P];
441
441
  return `${V(I)},${V(F)}`;
442
- }, A = (R, P, I) => `A${V(R)},${V(R)} 0 0 ${p} ${y(P, I)}`, w = (R, P) => {
443
- const I = a + R, F = m - P, X = (z, _) => _ > 0 ? z - Math.sqrt(Math.max(0, z * z - _ * _)) : 0, Q = () => {
442
+ }, A = (R, P, I) => `A${V(R)},${V(R)} 0 0 ${m} ${y(P, I)}`, w = (R, P) => {
443
+ const I = a + R, F = p - P, X = (z, _) => _ > 0 ? z - Math.sqrt(Math.max(0, z * z - _ * _)) : 0, Q = () => {
444
444
  let [z, _] = [F, I];
445
445
  for (let q = 0; q < qu; q++) {
446
446
  const He = (z + _) / 2;
@@ -449,7 +449,7 @@ var ra = 10 ** 2, V = (e) => Math.round(e * ra) / ra, qu = 32, iS = (e, t) => {
449
449
  return (z + _) / 2;
450
450
  }, $ = I <= F ? I : Q(), K = I <= F ? F : $;
451
451
  return {
452
- breaks: [$, K].filter((z) => z > g && z < f),
452
+ breaks: [$, K].filter((z) => z > v && z < f),
453
453
  readInsetAt: (z) => Math.max(X(R, I - z), X(P, z - F)),
454
454
  readCornerRadius: (z, _) => R > 0 && Math.max(z, _) <= $ ? R : P > 0 && Math.min(z, _) >= K ? P : null
455
455
  };
@@ -461,11 +461,11 @@ var ra = 10 ** 2, V = (e) => Math.round(e * ra) / ra, qu = 32, iS = (e, t) => {
461
461
  });
462
462
  };
463
463
  return `${[
464
- `M${y(o + E.readInsetAt(g), g)}`,
465
- `L${y(v - k.readInsetAt(g), g)}`,
466
- ...L(k, v, -1, g, [.../* @__PURE__ */ new Set([...k.breaks, f])].sort((R, P) => R - P)),
464
+ `M${y(o + E.readInsetAt(v), v)}`,
465
+ `L${y(g - k.readInsetAt(v), v)}`,
466
+ ...L(k, g, -1, v, [.../* @__PURE__ */ new Set([...k.breaks, f])].sort((R, P) => R - P)),
467
467
  `L${y(o + E.readInsetAt(f), f)}`,
468
- ...L(E, o, 1, f, [.../* @__PURE__ */ new Set([g, ...E.breaks])].sort((R, P) => P - R))
468
+ ...L(E, o, 1, f, [.../* @__PURE__ */ new Set([v, ...E.breaks])].sort((R, P) => P - R))
469
469
  ].join("")}Z`;
470
470
  }, Vi = (e, t, r) => {
471
471
  const n = e.digits?.() ?? null, o = n === null ? null : 10 ** n, a = (d) => o === null ? d : Math.round(d * o) / o, i = (d, c) => Yi(a(d), a(c), r);
@@ -477,8 +477,8 @@ var ra = 10 ** 2, V = (e) => Math.round(e * ra) / ra, qu = 32, iS = (e, t) => {
477
477
  lineTo: (d, c) => {
478
478
  s += `L${i(d, c)}`;
479
479
  },
480
- bezierCurveTo: (d, c, u, h, g, f) => {
481
- s += `C${i(d, c)},${i(u, h)},${i(g, f)}`;
480
+ bezierCurveTo: (d, c, u, h, v, f) => {
481
+ s += `C${i(d, c)},${i(u, h)},${i(v, f)}`;
482
482
  },
483
483
  closePath: () => {
484
484
  s += "Z";
@@ -520,8 +520,8 @@ var ra = 10 ** 2, V = (e) => Math.round(e * ra) / ra, qu = 32, iS = (e, t) => {
520
520
  const u = Xn([...c], e.params.missingValues), [h] = u;
521
521
  if (h !== void 0) {
522
522
  if (u.length === 1) {
523
- const g = _u(h, t, r);
524
- g !== null && s.push(g);
523
+ const v = _u(h, t, r);
524
+ v !== null && s.push(v);
525
525
  return;
526
526
  }
527
527
  i += Vi(o, u, a);
@@ -649,15 +649,15 @@ var Er = {
649
649
  ...Pr,
650
650
  animateTransitions: !1
651
651
  }), qi = 0.4, lh = ({ animation: e, animate: t, panelRect: r, children: n }) => {
652
- const { layers: o, coordSystem: a } = B(he((v) => ({
653
- layers: v.layers,
654
- coordSystem: v.coordSystem
652
+ const { layers: o, coordSystem: a } = B(he((g) => ({
653
+ layers: g.layers,
654
+ coordSystem: g.coordSystem
655
655
  }))), { intro: i, transitions: s } = ih(e, o, t), [d, c] = J(() => oa(i) ? sh : aa({
656
656
  layers: o,
657
657
  coordSystem: a,
658
658
  intro: i
659
- })), [u, h] = J(null), g = ch(u) || !oa(i);
660
- d.waitingForView && g && c(aa({
659
+ })), [u, h] = J(null), v = ch(u) || !oa(i);
660
+ d.waitingForView && v && c(aa({
661
661
  layers: o,
662
662
  coordSystem: a,
663
663
  intro: i
@@ -773,7 +773,7 @@ var Er = {
773
773
  vectorEffect: "non-scaling-stroke"
774
774
  })]
775
775
  }), fh = ({ fillPath: e, linePath: t, fill: r, fillOpacity: n, stroke: o, strokeWidth: a, strokeOpacity: i, strokeDasharray: s, lineCap: d, lineJoin: c, opacity: u }) => {
776
- const h = wn(e, Be), g = wn(t, Be);
776
+ const h = wn(e, Be), v = wn(t, Be);
777
777
  return /* @__PURE__ */ S("g", {
778
778
  opacity: u,
779
779
  children: [/* @__PURE__ */ l(j.path, {
@@ -782,7 +782,7 @@ var Er = {
782
782
  fillOpacity: n,
783
783
  stroke: "none"
784
784
  }), /* @__PURE__ */ l(j.path, {
785
- d: g,
785
+ d: v,
786
786
  fill: "none",
787
787
  stroke: o,
788
788
  strokeWidth: a,
@@ -881,20 +881,20 @@ var Er = {
881
881
  const o = n?.type === "wipe" ? n : null, { lineGenerator: a, areaGenerator: i } = b(() => zn(r, t.params), [t.params, r]), s = G(t), d = b(() => {
882
882
  const c = Me(t.data, t.mapping, t.id), u = [];
883
883
  return t.data.groupBy(ce.group).forEach((h) => {
884
- const g = Xn([...h], t.params.missingValues), f = i(g), v = a(g);
885
- if (!f || !v) return;
886
- const m = g[0];
887
- if (!m) return;
888
- const p = Y(s.get("fill", m)), y = s.get("stroke", m) ?? p, { strokeWidth: A, strokeDasharray: w, strokeLinecap: k } = Xe(s.get("dashArray", m), s.get("strokeWidth", m), s.get("lineCap", m)), E = s.get("lineJoin", m);
884
+ const v = Xn([...h], t.params.missingValues), f = i(v), g = a(v);
885
+ if (!f || !g) return;
886
+ const p = v[0];
887
+ if (!p) return;
888
+ const m = Y(s.get("fill", p)), y = s.get("stroke", p) ?? m, { strokeWidth: A, strokeDasharray: w, strokeLinecap: k } = Xe(s.get("dashArray", p), s.get("strokeWidth", p), s.get("lineCap", p)), E = s.get("lineJoin", p);
889
889
  u.push({
890
- key: c(m),
890
+ key: c(p),
891
891
  areaPath: f,
892
- linePath: v,
893
- fill: p,
892
+ linePath: g,
893
+ fill: m,
894
894
  stroke: y,
895
- fillOpacity: s.get("fillAlpha", m) * s.get("alpha", m),
895
+ fillOpacity: s.get("fillAlpha", p) * s.get("alpha", p),
896
896
  strokeWidth: A,
897
- strokeOpacity: s.get("strokeAlpha", m) * s.get("alpha", m),
897
+ strokeOpacity: s.get("strokeAlpha", p) * s.get("alpha", p),
898
898
  strokeDasharray: w,
899
899
  lineCap: k,
900
900
  lineJoin: E
@@ -947,17 +947,17 @@ var Er = {
947
947
  }), ns = 1, Ah = 0.4, Sh = 0.2, wh = 1, kh = 0.5, Eh = 2.25, kt = ({ hit: e, project: t, ...r }) => {
948
948
  const n = Di(e.layerId), o = Gi(e) ?? Dn;
949
949
  if (!e.anchored) return null;
950
- const a = gi(e.observation) ?? 1, i = n?.get("stroke", e.observation, "hovered") ?? Gn, s = n?.get("symbol", e.observation) ?? "circle", d = t(e.x, e.y), c = C(d.x), u = C(d.y), h = Ph(e.observation, n), g = et(s) ? Mc(s, h * 2) : h * Math.SQRT2, { strokeRadius: f, strokeWidth: v } = Rh(h, g), m = n ? te(ee(n, e.observation, "hovered")) : void 0;
950
+ const a = gi(e.observation) ?? 1, i = n?.get("stroke", e.observation, "hovered") ?? Gn, s = n?.get("symbol", e.observation) ?? "circle", d = t(e.x, e.y), c = C(d.x), u = C(d.y), h = Ph(e.observation, n), v = et(s) ? Mc(s, h * 2) : h * Math.SQRT2, { strokeRadius: f, strokeWidth: g } = Rh(h, v), p = n ? te(ee(n, e.observation, "hovered")) : void 0;
951
951
  return /* @__PURE__ */ S("g", {
952
952
  ...r,
953
- style: m,
953
+ style: p,
954
954
  children: [/* @__PURE__ */ l("circle", {
955
955
  cx: c,
956
956
  cy: u,
957
957
  r: f,
958
958
  fill: "none",
959
959
  stroke: i,
960
- strokeWidth: v
960
+ strokeWidth: g
961
961
  }), /* @__PURE__ */ l(Gr, {
962
962
  symbol: s,
963
963
  cx: c,
@@ -995,7 +995,7 @@ var Er = {
995
995
  i
996
996
  ]);
997
997
  if (!s || !d) return null;
998
- const c = Y(o.get("fill", r.observation, "hovered")), u = o.get("stroke", r.observation, "hovered") ?? c, h = o.get("alpha", r.observation, "hovered"), g = o.get("fillAlpha", r.observation, "hovered") * h, f = o.get("strokeAlpha", r.observation, "hovered") * h, { strokeWidth: v, strokeDasharray: m, strokeLinecap: p } = Xe(o.get("dashArray", r.observation, "hovered"), o.get("strokeWidth", r.observation, "hovered"), o.get("lineCap", r.observation, "hovered")), y = o.get("lineJoin", r.observation, "hovered");
998
+ const c = Y(o.get("fill", r.observation, "hovered")), u = o.get("stroke", r.observation, "hovered") ?? c, h = o.get("alpha", r.observation, "hovered"), v = o.get("fillAlpha", r.observation, "hovered") * h, f = o.get("strokeAlpha", r.observation, "hovered") * h, { strokeWidth: g, strokeDasharray: p, strokeLinecap: m } = Xe(o.get("dashArray", r.observation, "hovered"), o.get("strokeWidth", r.observation, "hovered"), o.get("lineCap", r.observation, "hovered")), y = o.get("lineJoin", r.observation, "hovered");
999
999
  return /* @__PURE__ */ S("g", {
1000
1000
  "data-testid": "hovered-area",
1001
1001
  children: [
@@ -1010,7 +1010,7 @@ var Er = {
1010
1010
  children: [/* @__PURE__ */ l("path", {
1011
1011
  d: s,
1012
1012
  fill: c,
1013
- fillOpacity: g,
1013
+ fillOpacity: v,
1014
1014
  stroke: "none",
1015
1015
  className: Qi,
1016
1016
  "data-testid": "hovered-area-fill"
@@ -1018,10 +1018,10 @@ var Er = {
1018
1018
  d,
1019
1019
  fill: "none",
1020
1020
  stroke: u,
1021
- strokeWidth: v,
1021
+ strokeWidth: g,
1022
1022
  strokeOpacity: f,
1023
- strokeDasharray: m,
1024
- strokeLinecap: p,
1023
+ strokeDasharray: p,
1024
+ strokeLinecap: m,
1025
1025
  strokeLinejoin: y,
1026
1026
  vectorEffect: "non-scaling-stroke",
1027
1027
  "data-testid": "hovered-area-edge"
@@ -1444,18 +1444,18 @@ var qh = 9999, Jh = zr(tu), vs = (e) => e === "full", gs = (e, t, r) => {
1444
1444
  d += 1;
1445
1445
  const h = fi(u);
1446
1446
  if (!h) continue;
1447
- const g = Fn(t, h), f = o(u, h, d), v = s.get(g);
1448
- v === void 0 ? s.set(g, {
1447
+ const v = Fn(t, h), f = o(u, h, d), g = s.get(v);
1448
+ g === void 0 ? s.set(v, {
1449
1449
  firstObservation: u,
1450
1450
  segments: [f]
1451
- }) : v.segments.push(f);
1451
+ }) : g.segments.push(f);
1452
1452
  }
1453
1453
  const c = /* @__PURE__ */ new Map();
1454
- for (const [u, { firstObservation: h, segments: g }] of s) {
1454
+ for (const [u, { firstObservation: h, segments: v }] of s) {
1455
1455
  const f = n ? os : Vr(r, h);
1456
1456
  c.set(u, {
1457
- ...Ss(f, Lc(g), t, a, i),
1458
- segments: g
1457
+ ...Ss(f, Lc(v), t, a, i),
1458
+ segments: v
1459
1459
  });
1460
1460
  }
1461
1461
  return c;
@@ -1512,18 +1512,18 @@ var qh = 9999, Jh = zr(tu), vs = (e) => e === "full", gs = (e, t, r) => {
1512
1512
  i(a)
1513
1513
  ];
1514
1514
  }, Dt = (e, t) => {
1515
- const [r, n, o, a] = vi(t, Math.max(0, e.width), Math.max(0, e.height)), i = e.x, s = e.y, d = e.x + e.width, c = e.y + e.height, u = (g, f) => `${V(g)},${V(f)}`, h = (g, f, v) => g > 0 ? `A${V(g)},${V(g)} 0 0 1 ${u(f, v)}` : "";
1515
+ const [r, n, o, a] = vi(t, Math.max(0, e.width), Math.max(0, e.height)), i = e.x, s = e.y, d = e.x + e.width, c = e.y + e.height, u = (v, f) => `${V(v)},${V(f)}`, h = (v, f, g) => v > 0 ? `A${V(v)},${V(v)} 0 0 1 ${u(f, g)}` : "";
1516
1516
  return `M${u(i + r, s)}L${u(d - n, s)}${h(n, d, s + n)}L${u(d, c - o)}${h(o, d - o, c)}L${u(i + a, c)}${h(a, i, c - a)}L${u(i, s + r)}${h(r, i + r, s)}Z`;
1517
1517
  }, $h = (e, t) => {
1518
1518
  const r = V(e.x), n = V(e.y), o = V(e.x + e.width), a = V(e.y + e.height), i = V(Math.max(0, Math.min(t, e.width / 2))), s = V(Math.max(0, Math.min(t, e.height / 2)));
1519
1519
  if (i <= 0 || s <= 0) return `M${r},${n}H${o}V${a}H${r}Z`;
1520
- const d = `A${i},${s} 0 0 1 `, [c, u, h, g] = [
1520
+ const d = `A${i},${s} 0 0 1 `, [c, u, h, v] = [
1521
1521
  `${r}`,
1522
1522
  `${n}`,
1523
1523
  `${o}`,
1524
1524
  `${a}`
1525
- ], f = `${V(r + i)}`, v = `${V(o - i)}`, m = `${V(n + s)}`, p = `${V(a - s)}`;
1526
- 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`;
1525
+ ], f = `${V(r + i)}`, g = `${V(o - i)}`, p = `${V(n + s)}`, m = `${V(a - s)}`;
1526
+ return `M${f},${u}H${g}${d}${h},${p}V${m}${d}${g},${v}H${f}${d}${c},${m}V${p}${d}${f},${u}Z`;
1527
1527
  }, go = (e, t) => b(() => nu(e, t.mainAxis), [e, t.mainAxis]), _h = (e, t) => {
1528
1528
  const r = e.data.getFirst();
1529
1529
  if (r === null || t.get("stroke", r) === void 0) return 0;
@@ -1553,17 +1553,17 @@ var qh = 9999, Jh = zr(tu), vs = (e) => e === "full", gs = (e, t, r) => {
1553
1553
  y: d.y?.[u] ?? null
1554
1554
  });
1555
1555
  if (h === null) continue;
1556
- const g = s.get(Fn(i, h));
1557
- if (g === void 0) continue;
1558
- const f = di(i, g.bounds, g.cap?.maxWidth, n), v = ps(i, h, f), m = Ut(f, n), p = Ut(v, n), y = gt(g.corners, m);
1559
- c += ov(p, m) && !nv(y, m) ? Dt(m, y) : Ju(m, y, i === "x" ? {
1556
+ const v = s.get(Fn(i, h));
1557
+ if (v === void 0) continue;
1558
+ const f = di(i, v.bounds, v.cap?.maxWidth, n), g = ps(i, h, f), p = Ut(f, n), m = Ut(g, n), y = gt(v.corners, p);
1559
+ c += ov(m, p) && !nv(y, p) ? Dt(p, y) : Ju(p, y, i === "x" ? {
1560
1560
  axis: "y",
1561
- from: p.y,
1562
- to: p.y + p.height
1561
+ from: m.y,
1562
+ to: m.y + m.height
1563
1563
  } : {
1564
1564
  axis: "x",
1565
- from: p.x,
1566
- to: p.x + p.width
1565
+ from: m.x,
1566
+ to: m.x + m.width
1567
1567
  });
1568
1568
  }
1569
1569
  return c === "" ? [] : [{
@@ -1626,14 +1626,14 @@ var qh = 9999, Jh = zr(tu), vs = (e) => e === "full", gs = (e, t, r) => {
1626
1626
  e.y,
1627
1627
  e.width,
1628
1628
  e.height
1629
- ], ([u = 0, h = 0, g = 0, f = 0]) => {
1630
- const v = a && En({
1629
+ ], ([u = 0, h = 0, v = 0, f = 0]) => {
1630
+ const g = a && En({
1631
1631
  x: u,
1632
1632
  y: h,
1633
- width: g,
1633
+ width: v,
1634
1634
  height: f
1635
1635
  }, t, r, n.width, a);
1636
- return v ? Es(v, n, s) : "";
1636
+ return g ? Es(g, n, s) : "";
1637
1637
  }), c = `${s}:${n.clip.style.clipPath ?? ""}`;
1638
1638
  return Rs(s, n, /* @__PURE__ */ l(j.path, {
1639
1639
  d,
@@ -1749,20 +1749,20 @@ var qh = 9999, Jh = zr(tu), vs = (e) => e === "full", gs = (e, t, r) => {
1749
1749
  }
1750
1750
  };
1751
1751
  }, Bs = (e) => e.stroke !== void 0 && e.strokeWidth > 0, uv = (e, t, r) => {
1752
- const n = `${t}px`, o = `clamp(0px, calc((100% - ${4 * t}px) * 1000), ${t}px)`, a = ([m, p]) => m === p ? r === "x" ? `${m} ${o}` : `${o} ${m}` : r === "x" ? `${m} ${o} ${p} ${o}` : `${o} ${p} ${o} ${m}`, i = (m, p) => Pn(jr(As(m), -t), a(p)), s = hv(e, r);
1752
+ const n = `${t}px`, o = `clamp(0px, calc((100% - ${4 * t}px) * 1000), ${t}px)`, a = ([p, m]) => p === m ? r === "x" ? `${p} ${o}` : `${o} ${p}` : r === "x" ? `${p} ${o} ${m} ${o}` : `${o} ${m} ${o} ${p}`, i = (p, m) => Pn(jr(As(p), -t), a(m)), s = hv(e, r);
1753
1753
  if (s === void 0) return { style: i(e, [n, n]) };
1754
- const [d, c, u, h] = e, g = (m) => {
1755
- const p = (y) => y === "full" === m ? y : 0;
1754
+ const [d, c, u, h] = e, v = (p) => {
1755
+ const m = (y) => y === "full" === p ? y : 0;
1756
1756
  return [
1757
- p(d),
1758
- p(c),
1759
- p(u),
1760
- p(h)
1757
+ m(d),
1758
+ m(c),
1759
+ m(u),
1760
+ m(h)
1761
1761
  ];
1762
- }, f = s === "start" ? [n, "0px"] : ["0px", n], v = s === "start" ? ["0px", n] : [n, "0px"];
1762
+ }, f = s === "start" ? [n, "0px"] : ["0px", n], g = s === "start" ? ["0px", n] : [n, "0px"];
1763
1763
  return {
1764
- style: i(g(!1), v),
1765
- endStyle: i(g(!0), f)
1764
+ style: i(v(!1), g),
1765
+ endStyle: i(v(!0), f)
1766
1766
  };
1767
1767
  }, hv = (e, t) => {
1768
1768
  const [r, n, o, a] = e.map((d) => d === "full"), [i, s] = t === "x" ? [r || n, o || a] : [r || a, n || o];
@@ -1790,26 +1790,26 @@ var qh = 9999, Jh = zr(tu), vs = (e) => e === "full", gs = (e, t, r) => {
1790
1790
  const o = G(t), a = fo(), i = Ur(n?.type === "grow" && (n.growAxis === "x" || n.growAxis === "y") ? n : null), { paints: s, paintAt: d } = er(t, o), { fillFor: c, defs: u } = me({
1791
1791
  paints: s,
1792
1792
  origin: go(t, r)
1793
- }), { mainAxis: h } = r, g = b(() => {
1794
- const v = Me(t.data, t.mapping, t.id);
1793
+ }), { mainAxis: h } = r, v = b(() => {
1794
+ const g = Me(t.data, t.mapping, t.id);
1795
1795
  return [...ms({
1796
1796
  layer: t,
1797
1797
  mainAxis: h,
1798
1798
  styleReaders: o,
1799
- buildSegment: (m, p, y) => {
1800
- const A = d(y), w = $t(o, m);
1799
+ buildSegment: (p, m, y) => {
1800
+ const A = d(y), w = $t(o, p);
1801
1801
  return {
1802
- key: v(m),
1803
- ...p,
1802
+ key: g(p),
1803
+ ...m,
1804
1804
  fill: c(A),
1805
1805
  opacity: w,
1806
1806
  paint: A,
1807
- effects: te(ee(o, m))
1807
+ effects: te(ee(o, p))
1808
1808
  };
1809
1809
  }
1810
- }).values()].map((m) => ({
1811
- ...m,
1812
- effects: Cs(m.segments)
1810
+ }).values()].map((p) => ({
1811
+ ...p,
1812
+ effects: Cs(p.segments)
1813
1813
  }));
1814
1814
  }, [
1815
1815
  c,
@@ -1818,49 +1818,49 @@ var qh = 9999, Jh = zr(tu), vs = (e) => e === "full", gs = (e, t, r) => {
1818
1818
  d,
1819
1819
  o
1820
1820
  ]), f = b(() => {
1821
- const v = /* @__PURE__ */ new Map(), m = mo(h);
1822
- return g.map((p, y) => ({
1823
- key: p.segments[0]?.key ?? String(y),
1824
- bars: p.segments,
1825
- effects: p.effects,
1826
- ...p.bounds,
1827
- cap: p.cap,
1828
- ...a ? po : m(p, () => p.segments.every((A) => A.opacity >= 1 && ao(A.paint, v)))
1821
+ const g = /* @__PURE__ */ new Map(), p = mo(h);
1822
+ return v.map((m, y) => ({
1823
+ key: m.segments[0]?.key ?? String(y),
1824
+ bars: m.segments,
1825
+ effects: m.effects,
1826
+ ...m.bounds,
1827
+ cap: m.cap,
1828
+ ...a ? po : p(m, () => m.segments.every((A) => A.opacity >= 1 && ao(A.paint, g)))
1829
1829
  }));
1830
1830
  }, [
1831
1831
  a,
1832
- g,
1832
+ v,
1833
1833
  h
1834
1834
  ]);
1835
- return /* @__PURE__ */ S(M, { children: [u, /* @__PURE__ */ l("g", { children: b(() => f.map((v) => {
1836
- const m = v.effects.scope === "column" ? v.effects.style : void 0;
1837
- if (v.bars.length === 1 && v.border === void 0) {
1838
- const [p] = v.bars;
1839
- if (!p) return null;
1840
- const { key: y, effects: A, paint: w, ...k } = p, E = ze(v.fillClip, (L) => /* @__PURE__ */ l(Rn, {
1835
+ return /* @__PURE__ */ S(M, { children: [u, /* @__PURE__ */ l("g", { children: b(() => f.map((g) => {
1836
+ const p = g.effects.scope === "column" ? g.effects.style : void 0;
1837
+ if (g.bars.length === 1 && g.border === void 0) {
1838
+ const [m] = g.bars;
1839
+ if (!m) return null;
1840
+ const { key: y, effects: A, paint: w, ...k } = m, E = ze(g.fillClip, (L) => /* @__PURE__ */ l(Rn, {
1841
1841
  ...k,
1842
1842
  style: L,
1843
- cap: v.cap,
1843
+ cap: g.cap,
1844
1844
  animation: i,
1845
1845
  introKey: y
1846
1846
  }, y), y);
1847
- return m === void 0 ? E : /* @__PURE__ */ l("g", {
1848
- style: m,
1847
+ return p === void 0 ? E : /* @__PURE__ */ l("g", {
1848
+ style: p,
1849
1849
  children: E
1850
1850
  }, y);
1851
1851
  }
1852
1852
  return /* @__PURE__ */ l("g", {
1853
- style: m,
1853
+ style: p,
1854
1854
  children: i.animated ? /* @__PURE__ */ l(mv, {
1855
- column: v,
1855
+ column: g,
1856
1856
  mainAxis: h,
1857
1857
  animation: i
1858
1858
  }) : /* @__PURE__ */ l(pv, {
1859
- column: v,
1859
+ column: g,
1860
1860
  mainAxis: h,
1861
1861
  animation: i
1862
1862
  })
1863
- }, v.key);
1863
+ }, g.key);
1864
1864
  }), [
1865
1865
  i,
1866
1866
  f,
@@ -1916,44 +1916,44 @@ var qh = 9999, Jh = zr(tu), vs = (e) => e === "full", gs = (e, t, r) => {
1916
1916
  }, yv = (e, t, r, n, o) => {
1917
1917
  const { bars: a, effects: i, fillClip: s, border: d, cap: c } = e, [u] = a;
1918
1918
  if (a.length === 1 && u !== void 0) {
1919
- const { key: v, effects: m, paint: p, ...y } = u;
1919
+ const { key: g, effects: p, paint: m, ...y } = u;
1920
1920
  return ze(s, (A) => /* @__PURE__ */ l(Rn, {
1921
1921
  ...y,
1922
1922
  style: A,
1923
1923
  cap: c,
1924
1924
  animation: r,
1925
- introKey: v
1925
+ introKey: g
1926
1926
  }));
1927
1927
  }
1928
- const h = i.scope === "column", g = h ? s : fa(s), f = h ? fa(s) : s;
1929
- return /* @__PURE__ */ S(M, { children: [ze(g, (v) => /* @__PURE__ */ l("g", {
1930
- style: v,
1931
- children: a.map(({ key: m, effects: p, paint: y, ...A }) => /* @__PURE__ */ l("g", {
1932
- style: h ? void 0 : p,
1928
+ const h = i.scope === "column", v = h ? s : fa(s), f = h ? fa(s) : s;
1929
+ return /* @__PURE__ */ S(M, { children: [ze(v, (g) => /* @__PURE__ */ l("g", {
1930
+ style: g,
1931
+ children: a.map(({ key: p, effects: m, paint: y, ...A }) => /* @__PURE__ */ l("g", {
1932
+ style: h ? void 0 : m,
1933
1933
  children: ze(f, (w) => /* @__PURE__ */ S("g", {
1934
1934
  style: w,
1935
1935
  children: [/* @__PURE__ */ l(Rn, {
1936
1936
  ...A,
1937
1937
  cap: c,
1938
1938
  animation: r,
1939
- introKey: m
1939
+ introKey: p
1940
1940
  }), !h && n]
1941
1941
  }))
1942
- }, m))
1943
- })), d && ze(s, (v) => /* @__PURE__ */ S("g", {
1944
- style: v,
1945
- children: [a.map(({ key: m, ...p }) => xv(p, e, t) && /* @__PURE__ */ l(bv, {
1946
- bar: p,
1942
+ }, p))
1943
+ })), d && ze(s, (g) => /* @__PURE__ */ S("g", {
1944
+ style: g,
1945
+ children: [a.map(({ key: p, ...m }) => xv(m, e, t) && /* @__PURE__ */ l(bv, {
1946
+ bar: m,
1947
1947
  mainAxis: t,
1948
1948
  stroke: d.stroke,
1949
1949
  strokeWidth: d.separatorWidth,
1950
1950
  opacity: d.opacity,
1951
1951
  animation: r,
1952
- introKey: m,
1952
+ introKey: p,
1953
1953
  cap: c,
1954
1954
  style: d.separatorStyle,
1955
1955
  springingColumn: o
1956
- }, m)), n]
1956
+ }, p)), n]
1957
1957
  }))] });
1958
1958
  }, xv = (e, t, r) => {
1959
1959
  const [n, o] = r === "x" ? [e.y, e.height] : [e.x, e.width];
@@ -1982,7 +1982,7 @@ var qh = 9999, Jh = zr(tu), vs = (e) => e === "full", gs = (e, t, r) => {
1982
1982
  }
1983
1983
  }, Rr(h.style));
1984
1984
  }, bv = ({ bar: e, mainAxis: t, stroke: r, strokeWidth: n, opacity: o, animation: a, introKey: i, cap: s, style: d, springingColumn: c }) => {
1985
- const { animated: u, activeIntro: h, animateTransitions: g } = a, f = pa(e, t);
1985
+ const { animated: u, activeIntro: h, animateTransitions: v } = a, f = pa(e, t);
1986
1986
  if (!u || c === void 0) return s === void 0 ? /* @__PURE__ */ l("line", {
1987
1987
  ...fs(f, e, t),
1988
1988
  stroke: r,
@@ -1995,12 +1995,12 @@ var qh = 9999, Jh = zr(tu), vs = (e) => e === "full", gs = (e, t, r) => {
1995
1995
  opacity: o,
1996
1996
  "data-testid": ca
1997
1997
  });
1998
- const { band: v } = c.bounds, m = h ? pa(yo(e, h), t) : Av(f, c, t), p = h ? Fr(h, i) : Wr(g), { clipPath: y, style: A } = xo(d);
1998
+ const { band: g } = c.bounds, p = h ? pa(yo(e, h), t) : Av(f, c, t), m = h ? Fr(h, i) : Wr(v), { clipPath: y, style: A } = xo(d);
1999
1999
  if (s !== void 0) {
2000
- const E = Xh(v, s, n, A);
2000
+ const E = Xh(g, s, n, A);
2001
2001
  return /* @__PURE__ */ l(j.rect, {
2002
- initial: va(m),
2003
- transition: p,
2002
+ initial: va(p),
2003
+ transition: m,
2004
2004
  animate: va(f),
2005
2005
  ...E,
2006
2006
  clipPath: y,
@@ -2012,22 +2012,22 @@ var qh = 9999, Jh = zr(tu), vs = (e) => e === "full", gs = (e, t, r) => {
2012
2012
  const w = t === "x" ? {
2013
2013
  edge: ["y1", "y2"],
2014
2014
  band: {
2015
- x1: v.start,
2016
- x2: v.end
2015
+ x1: g.start,
2016
+ x2: g.end
2017
2017
  }
2018
2018
  } : {
2019
2019
  edge: ["x1", "x2"],
2020
2020
  band: {
2021
- y1: v.start,
2022
- y2: v.end
2021
+ y1: g.start,
2022
+ y2: g.end
2023
2023
  }
2024
2024
  }, k = (E) => ({
2025
2025
  [w.edge[0]]: C(E),
2026
2026
  [w.edge[1]]: C(E)
2027
2027
  });
2028
2028
  return /* @__PURE__ */ l(j.line, {
2029
- initial: k(m),
2030
- transition: p,
2029
+ initial: k(p),
2030
+ transition: m,
2031
2031
  animate: k(f),
2032
2032
  ...w.band,
2033
2033
  stroke: r,
@@ -2062,14 +2062,14 @@ var qh = 9999, Jh = zr(tu), vs = (e) => e === "full", gs = (e, t, r) => {
2062
2062
  }), pa = (e, t) => t === "x" ? e.y : e.x, wv = (e, t, r, n) => {
2063
2063
  const o = r.activeIntro ? yo(e, r.activeIntro) : e, a = Re(C(o.x)), i = Re(C(o.y)), s = Re(C(o.width)), d = Re(C(o.height)), c = kn(r, n);
2064
2064
  W(() => {
2065
- const g = c(), f = [
2066
- Fe(a, C(e.x), g),
2067
- Fe(i, C(e.y), g),
2068
- Fe(s, C(e.width), g),
2069
- Fe(d, C(e.height), g)
2065
+ const v = c(), f = [
2066
+ Fe(a, C(e.x), v),
2067
+ Fe(i, C(e.y), v),
2068
+ Fe(s, C(e.width), v),
2069
+ Fe(d, C(e.height), v)
2070
2070
  ];
2071
2071
  return () => {
2072
- for (const v of f) v.stop();
2072
+ for (const g of f) g.stop();
2073
2073
  };
2074
2074
  }, [
2075
2075
  a,
@@ -2099,7 +2099,7 @@ var qh = 9999, Jh = zr(tu), vs = (e) => e === "full", gs = (e, t, r) => {
2099
2099
  band: {
2100
2100
  start: u,
2101
2101
  size: h,
2102
- end: ht([u, h], ([g = "0%", f = "0%"]) => C(Ye(g) + Ye(f)))
2102
+ end: ht([u, h], ([v = "0%", f = "0%"]) => C(Ye(v) + Ye(f)))
2103
2103
  }
2104
2104
  };
2105
2105
  }, Ye = (e) => Number.parseFloat(e) / 100, Os = ({ testIdPrefix: e, mainAxis: t, column: r, bounds: n, fill: o, opacity: a, silhouette: i }) => {
@@ -2119,19 +2119,19 @@ var qh = 9999, Jh = zr(tu), vs = (e) => e === "full", gs = (e, t, r) => {
2119
2119
  opacity: a,
2120
2120
  "data-testid": `${e}-segment`
2121
2121
  }),
2122
- d && Ev(n, r.bounds, t).map((g) => c === void 0 ? /* @__PURE__ */ l("line", {
2123
- ...fs(g, r.bounds, t),
2122
+ d && Ev(n, r.bounds, t).map((v) => c === void 0 ? /* @__PURE__ */ l("line", {
2123
+ ...fs(v, r.bounds, t),
2124
2124
  stroke: d.stroke,
2125
2125
  strokeWidth: d.separatorWidth,
2126
2126
  opacity: d.opacity,
2127
2127
  style: d.separatorStyle,
2128
2128
  "data-testid": `${e}-separator`
2129
- }, g) : /* @__PURE__ */ l("rect", {
2130
- ...kv(us(g, r.bounds, c, d.separatorWidth), d.separatorStyle),
2129
+ }, v) : /* @__PURE__ */ l("rect", {
2130
+ ...kv(us(v, r.bounds, c, d.separatorWidth), d.separatorStyle),
2131
2131
  fill: d.stroke,
2132
2132
  opacity: d.opacity,
2133
2133
  "data-testid": `${e}-separator`
2134
- }, g)),
2134
+ }, v)),
2135
2135
  /* @__PURE__ */ l("rect", {
2136
2136
  ...Ze(r.bounds, c),
2137
2137
  fill: "none"
@@ -2168,15 +2168,15 @@ var qh = 9999, Jh = zr(tu), vs = (e) => e === "full", gs = (e, t, r) => {
2168
2168
  const { mainAxis: n } = r, o = fo(), a = G(t), i = vo(t, n, a, o), { paints: s, paintAt: d } = er(e, a), { fillFor: c, defs: u } = me({
2169
2169
  paints: s,
2170
2170
  origin: go(t, r)
2171
- }), h = Me(e.data, e.mapping, e.id), g = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), v = mo(n);
2172
- let m = -1;
2173
- for (const p of e.data) {
2174
- m += 1;
2175
- const y = ys(i, n, a, p);
2171
+ }), h = Me(e.data, e.mapping, e.id), v = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), g = mo(n);
2172
+ let p = -1;
2173
+ for (const m of e.data) {
2174
+ p += 1;
2175
+ const y = ys(i, n, a, m);
2176
2176
  if (y === null) continue;
2177
- const A = h(p), w = d(m), k = $t(a, p), E = o ? po : v(y.column, () => k >= 1 && ao(w, f)), L = {
2177
+ const A = h(m), w = d(p), k = $t(a, m), E = o ? po : g(y.column, () => k >= 1 && ao(w, f)), L = {
2178
2178
  key: A,
2179
- effects: te(ee(a, p)),
2179
+ effects: te(ee(a, m)),
2180
2180
  node: /* @__PURE__ */ l(Os, {
2181
2181
  testIdPrefix: "highlight-bar",
2182
2182
  mainAxis: n,
@@ -2186,31 +2186,31 @@ var qh = 9999, Jh = zr(tu), vs = (e) => e === "full", gs = (e, t, r) => {
2186
2186
  opacity: k,
2187
2187
  silhouette: E
2188
2188
  }, A)
2189
- }, R = g.get(y.column);
2190
- R === void 0 ? g.set(y.column, [L]) : R.push(L);
2189
+ }, R = v.get(y.column);
2190
+ R === void 0 ? v.set(y.column, [L]) : R.push(L);
2191
2191
  }
2192
2192
  return {
2193
2193
  defs: u,
2194
- columns: [...g.values()]
2194
+ columns: [...v.values()]
2195
2195
  };
2196
2196
  }, ma = 3, Lv = ({ layer: e, coordSystem: t, primary: r }) => {
2197
2197
  const { mainAxis: n } = t, o = fo(), a = G(e), i = vo(e, n, a, o), s = a.get("fill", r.observation, "hovered"), { fillFor: d, defs: c } = me({
2198
2198
  paints: [s],
2199
2199
  origin: go(e, t)
2200
- }), u = ys(i, n, a, r.observation), h = $t(a, r.observation, "hovered"), g = u && (o ? po : mo(n)(u.column, () => h >= 1 && xi(s)));
2201
- if (u === null || g === null) return null;
2202
- const { column: f, bounds: v } = u, m = a.get("stroke", r.observation, "hovered");
2200
+ }), u = ys(i, n, a, r.observation), h = $t(a, r.observation, "hovered"), v = u && (o ? po : mo(n)(u.column, () => h >= 1 && xi(s)));
2201
+ if (u === null || v === null) return null;
2202
+ const { column: f, bounds: g } = u, p = a.get("stroke", r.observation, "hovered");
2203
2203
  return /* @__PURE__ */ S("g", {
2204
2204
  "data-testid": "hovered-bar",
2205
2205
  style: te(ee(a, r.observation, "hovered")),
2206
2206
  children: [
2207
2207
  c,
2208
2208
  /* @__PURE__ */ l("g", {
2209
- style: Is(v, f.bounds, ma),
2210
- children: ze(Gt(f.corners, -3), (p) => /* @__PURE__ */ l("rect", {
2211
- ...Ze(f.bounds, f.cap, p),
2212
- fill: m,
2213
- stroke: m,
2209
+ style: Is(g, f.bounds, ma),
2210
+ children: ze(Gt(f.corners, -3), (m) => /* @__PURE__ */ l("rect", {
2211
+ ...Ze(f.bounds, f.cap, m),
2212
+ fill: p,
2213
+ stroke: p,
2214
2214
  strokeWidth: ma * 2,
2215
2215
  "data-testid": "hovered-bar-border"
2216
2216
  }))
@@ -2219,10 +2219,10 @@ var qh = 9999, Jh = zr(tu), vs = (e) => e === "full", gs = (e, t, r) => {
2219
2219
  testIdPrefix: "hovered-bar-repaint",
2220
2220
  mainAxis: n,
2221
2221
  column: f,
2222
- bounds: v,
2222
+ bounds: g,
2223
2223
  fill: d(s),
2224
2224
  opacity: h,
2225
- silhouette: g
2225
+ silhouette: v
2226
2226
  })
2227
2227
  ]
2228
2228
  });
@@ -2262,8 +2262,8 @@ var qh = 9999, Jh = zr(tu), vs = (e) => e === "full", gs = (e, t, r) => {
2262
2262
  const c = qn([...d], e.params.missingValues), [u] = c;
2263
2263
  if (u === void 0) return;
2264
2264
  if (c.length === 1) {
2265
- const g = Mv(u, t);
2266
- g !== null && s.push(g);
2265
+ const v = Mv(u, t);
2266
+ v !== null && s.push(v);
2267
2267
  return;
2268
2268
  }
2269
2269
  const h = Vi(o, c, a);
@@ -2289,17 +2289,17 @@ var qh = 9999, Jh = zr(tu), vs = (e) => e === "full", gs = (e, t, r) => {
2289
2289
  const n = r?.type === "wipe" ? r : null, o = b(() => Vn(t.params), [t.params]), a = b(() => gc(t.params), [t.params]), i = G(t), s = b(() => {
2290
2290
  const d = Me(t.data, t.mapping, t.id), c = [];
2291
2291
  return t.data.groupBy(ce.group).forEach((u) => {
2292
- const h = qn([...u], t.params.missingValues), g = o(h);
2293
- if (!g) return;
2292
+ const h = qn([...u], t.params.missingValues), v = o(h);
2293
+ if (!v) return;
2294
2294
  const f = h[0];
2295
2295
  if (!f) return;
2296
- const v = i.get("fillAlpha", f), m = v === void 0 ? void 0 : a(h) ?? void 0, p = i.get("stroke", f), y = i.get("fill", f), A = y === void 0 ? p : Y(y), { strokeWidth: w, strokeDasharray: k, strokeLinecap: E } = Xe(i.get("dashArray", f), i.get("strokeWidth", f), i.get("lineCap", f)), L = i.get("lineJoin", f);
2296
+ const g = i.get("fillAlpha", f), p = g === void 0 ? void 0 : a(h) ?? void 0, m = i.get("stroke", f), y = i.get("fill", f), A = y === void 0 ? m : Y(y), { strokeWidth: w, strokeDasharray: k, strokeLinecap: E } = Xe(i.get("dashArray", f), i.get("strokeWidth", f), i.get("lineCap", f)), L = i.get("lineJoin", f);
2297
2297
  c.push({
2298
2298
  key: d(f),
2299
- pathData: g,
2300
- fillPath: m,
2301
- fillAlpha: v,
2302
- stroke: p,
2299
+ pathData: v,
2300
+ fillPath: p,
2301
+ fillAlpha: g,
2302
+ stroke: m,
2303
2303
  fill: A,
2304
2304
  opacity: i.get("alpha", f),
2305
2305
  strokeAlpha: i.get("strokeAlpha", f),
@@ -2433,7 +2433,7 @@ var qh = 9999, Jh = zr(tu), vs = (e) => e === "full", gs = (e, t, r) => {
2433
2433
  o
2434
2434
  ]), i = b(() => Vn(e.params)(a), [e.params, a]);
2435
2435
  if (!i) return null;
2436
- const s = n.get("stroke", t.observation, "hovered"), d = n.get("alpha", t.observation, "hovered"), c = n.get("strokeAlpha", t.observation, "hovered"), { strokeWidth: u, strokeDasharray: h, strokeLinecap: g } = Xe(n.get("dashArray", t.observation, "hovered"), n.get("strokeWidth", t.observation, "hovered"), n.get("lineCap", t.observation, "hovered")), f = n.get("lineJoin", t.observation, "hovered");
2436
+ const s = n.get("stroke", t.observation, "hovered"), d = n.get("alpha", t.observation, "hovered"), c = n.get("strokeAlpha", t.observation, "hovered"), { strokeWidth: u, strokeDasharray: h, strokeLinecap: v } = Xe(n.get("dashArray", t.observation, "hovered"), n.get("strokeWidth", t.observation, "hovered"), n.get("lineCap", t.observation, "hovered")), f = n.get("lineJoin", t.observation, "hovered");
2437
2437
  return /* @__PURE__ */ S("g", {
2438
2438
  "data-testid": "hovered-line",
2439
2439
  children: [
@@ -2453,16 +2453,16 @@ var qh = 9999, Jh = zr(tu), vs = (e) => e === "full", gs = (e, t, r) => {
2453
2453
  opacity: d,
2454
2454
  strokeOpacity: c,
2455
2455
  strokeDasharray: h,
2456
- strokeLinecap: g,
2456
+ strokeLinecap: v,
2457
2457
  strokeLinejoin: f,
2458
2458
  vectorEffect: "non-scaling-stroke",
2459
2459
  "data-testid": "hovered-line-path"
2460
2460
  })
2461
2461
  }),
2462
- r.map((v) => /* @__PURE__ */ l(Qe, {
2463
- hit: v,
2462
+ r.map((g) => /* @__PURE__ */ l(Qe, {
2463
+ hit: g,
2464
2464
  project: Ie
2465
- }, `companion-${v.layerId}-${v.pointIndex}`)),
2465
+ }, `companion-${g.layerId}-${g.pointIndex}`)),
2466
2466
  /* @__PURE__ */ l(kt, {
2467
2467
  hit: t,
2468
2468
  project: Ie,
@@ -2526,16 +2526,16 @@ var qh = 9999, Jh = zr(tu), vs = (e) => e === "full", gs = (e, t, r) => {
2526
2526
  for (const c of e.data) {
2527
2527
  const u = Hs(c, n);
2528
2528
  if (u === null) continue;
2529
- const h = kr(u, t), g = s ?? r.get("size", c) + r.get("strokeWidth", c), f = d ?? r.get("symbol", c);
2529
+ const h = kr(u, t), v = s ?? r.get("size", c) + r.get("strokeWidth", c), f = d ?? r.get("symbol", c);
2530
2530
  if (f === "circle" || !et(f) || !o.includes(f)) {
2531
2531
  a.push({
2532
2532
  center: h,
2533
- size: g
2533
+ size: v
2534
2534
  });
2535
2535
  continue;
2536
2536
  }
2537
- const v = `${f}:${g}`;
2538
- i.set(v, (i.get(v) ?? "") + _d(f, g, h));
2537
+ const g = `${f}:${v}`;
2538
+ i.set(g, (i.get(g) ?? "") + _d(f, v, h));
2539
2539
  }
2540
2540
  return [...[...i.values()].map((c) => ({
2541
2541
  kind: "region",
@@ -3211,7 +3211,7 @@ function Lg(e) {
3211
3211
  return "render" in e && "measure" in e;
3212
3212
  }
3213
3213
  var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, Hg = 2, Dg = /* @__PURE__ */ new Set(["square", "slice"]), wa = 0.375, _s = 1, tr = (e) => /* @__PURE__ */ l(Ce("Swatch", Gg), { ...e }), Gg = ({ shape: e, color: t, paint: r, lineType: n = "solid", width: o = Bg, height: a = Mg, strokeWidth: i = Ig, alpha: s, cornerRadius: d, symbol: c, mainAxis: u = "x" }) => {
3214
- const h = Dr(), g = zg(e, t, r, Math.min(o, a)), f = me({ paints: [g] }), v = f.fillFor(g);
3214
+ const h = Dr(), v = zg(e, t, r, Math.min(o, a)), f = me({ paints: [v] }), g = f.fillFor(v);
3215
3215
  return /* @__PURE__ */ S("svg", {
3216
3216
  className: Tg,
3217
3217
  width: o,
@@ -3223,7 +3223,7 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
3223
3223
  children: [f.defs, Fg({
3224
3224
  shape: e,
3225
3225
  color: t,
3226
- fill: v,
3226
+ fill: g,
3227
3227
  lineType: n,
3228
3228
  width: o,
3229
3229
  height: a,
@@ -3236,7 +3236,7 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
3236
3236
  })]
3237
3237
  });
3238
3238
  }, Fg = ({ shape: e, color: t, fill: r, lineType: n, width: o, height: a, strokeWidth: i, alpha: s, cornerRadius: d, symbol: c, glyphs: u, mainAxis: h }) => {
3239
- const g = Yg(n, o);
3239
+ const v = Yg(n, o);
3240
3240
  switch (e) {
3241
3241
  case "square":
3242
3242
  return /* @__PURE__ */ l("rect", {
@@ -3250,36 +3250,36 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
3250
3250
  });
3251
3251
  case "line":
3252
3252
  return /* @__PURE__ */ l("line", {
3253
- x1: g.x1,
3253
+ x1: v.x1,
3254
3254
  y1: a / 2,
3255
- x2: g.x2,
3255
+ x2: v.x2,
3256
3256
  y2: a / 2,
3257
3257
  stroke: t,
3258
3258
  strokeWidth: i,
3259
- strokeLinecap: g.linecap,
3260
- strokeDasharray: g.dashArray,
3259
+ strokeLinecap: v.linecap,
3260
+ strokeDasharray: v.dashArray,
3261
3261
  opacity: s
3262
3262
  });
3263
3263
  case "circle": {
3264
3264
  const f = Math.max(0, (Math.min(o, a) - 2) / 2);
3265
3265
  if (c !== void 0 && c !== "circle" && !et(c)) {
3266
- const v = Math.max(0, Math.min(o, a) - 2);
3266
+ const g = Math.max(0, Math.min(o, a) - 2);
3267
3267
  return /* @__PURE__ */ l("g", {
3268
3268
  transform: `translate(${o / 2} ${a / 2})`,
3269
3269
  opacity: s,
3270
3270
  children: /* @__PURE__ */ l(io, {
3271
3271
  symbol: c,
3272
3272
  glyphs: u,
3273
- size: v,
3273
+ size: g,
3274
3274
  fill: r
3275
3275
  })
3276
3276
  });
3277
3277
  }
3278
3278
  if (et(c) && c !== "circle") {
3279
- const v = li(c, o - 2, a - 2);
3279
+ const g = li(c, o - 2, a - 2);
3280
3280
  return /* @__PURE__ */ l("path", {
3281
- transform: `translate(${o / 2 + v.offsetX} ${a / 2 + v.offsetY})`,
3282
- d: v.path,
3281
+ transform: `translate(${o / 2 + g.offsetX} ${a / 2 + g.offsetY})`,
3282
+ d: g.path,
3283
3283
  fill: r,
3284
3284
  opacity: s
3285
3285
  });
@@ -3302,14 +3302,14 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
3302
3302
  fill: r,
3303
3303
  opacity: s ?? 0.45
3304
3304
  }), /* @__PURE__ */ l("line", {
3305
- x1: g.x1,
3305
+ x1: v.x1,
3306
3306
  y1: f,
3307
- x2: g.x2,
3307
+ x2: v.x2,
3308
3308
  y2: f,
3309
3309
  stroke: t,
3310
3310
  strokeWidth: i,
3311
- strokeLinecap: g.linecap,
3312
- strokeDasharray: g.dashArray
3311
+ strokeLinecap: v.linecap,
3312
+ strokeDasharray: v.dashArray
3313
3313
  })] });
3314
3314
  }
3315
3315
  case "slice":
@@ -3404,7 +3404,7 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
3404
3404
  [e.lineHeight]: String(t.lineHeight),
3405
3405
  [e.textColor]: t.textColor
3406
3406
  }), el = (e) => e.textOutlineColor !== void 0 && e.textOutlineWidth !== void 0 && e.textOutlineWidth > 0, jg = ({ labelPosition: e, linePosition: t, color: r, pillWidth: n, pillHeight: o, text: a }) => {
3407
- const { animateTransitions: i } = ie(), s = e === "start", d = s ? -13 : -(n - 13), c = s ? d + n - 5 : d + 5 - 12, u = s ? void 0 : `rotate(180 ${c + 12 / 2} ${o / 2})`, h = s ? "0%" : "100%", g = C(t), f = /* @__PURE__ */ S("g", {
3407
+ const { animateTransitions: i } = ie(), s = e === "start", d = s ? -13 : -(n - 13), c = s ? d + n - 5 : d + 5 - 12, u = s ? void 0 : `rotate(180 ${c + 12 / 2} ${o / 2})`, h = s ? "0%" : "100%", v = C(t), f = /* @__PURE__ */ S("g", {
3408
3408
  transform: `translate(0, ${-o / 2})`,
3409
3409
  pointerEvents: "none",
3410
3410
  children: [
@@ -3441,17 +3441,17 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
3441
3441
  initial: !1,
3442
3442
  transition: Be,
3443
3443
  x: h,
3444
- animate: { y: g },
3444
+ animate: { y: v },
3445
3445
  overflow: "visible",
3446
3446
  children: f
3447
3447
  }) : /* @__PURE__ */ l("svg", {
3448
3448
  x: h,
3449
- y: g,
3449
+ y: v,
3450
3450
  overflow: "visible",
3451
3451
  children: f
3452
3452
  });
3453
3453
  }, Ug = ({ labelPosition: e, linePosition: t, color: r, pillWidth: n, pillHeight: o, panelWidth: a, text: i }) => {
3454
- const { animateTransitions: s } = ie(), d = e === "start", c = d ? -13 : -(o - 13), u = C(t), h = d ? "100%" : "0%", g = /* @__PURE__ */ S("g", {
3454
+ const { animateTransitions: s } = ie(), d = e === "start", c = d ? -13 : -(o - 13), u = C(t), h = d ? "100%" : "0%", v = /* @__PURE__ */ S("g", {
3455
3455
  transform: `translate(${Pg(t, n, a)}, 0)`,
3456
3456
  pointerEvents: "none",
3457
3457
  children: [/* @__PURE__ */ l("rect", {
@@ -3472,15 +3472,15 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
3472
3472
  y: h,
3473
3473
  animate: { x: u },
3474
3474
  overflow: "visible",
3475
- children: g
3475
+ children: v
3476
3476
  }) : /* @__PURE__ */ l("svg", {
3477
3477
  x: u,
3478
3478
  y: h,
3479
3479
  overflow: "visible",
3480
- children: g
3480
+ children: v
3481
3481
  });
3482
- }, Kg = ({ label: e, textStyle: t, textWidth: r, labelPosition: n, horizontal: o, position: a, color: i, textColor: s, symbolShape: d, symbolColor: c, symbolPaint: u, symbolAlpha: h, symbolCornerRadius: g, symbolGlyph: f, symbolMainAxis: v, panelWidth: m }) => {
3483
- const p = d === null ? 0 : 14, y = r + p + 10, A = Math.max(fg, Ve(t)) + 10, w = /* @__PURE__ */ S(M, { children: [d !== null && c !== null && /* @__PURE__ */ l("g", {
3482
+ }, Kg = ({ label: e, textStyle: t, textWidth: r, labelPosition: n, horizontal: o, position: a, color: i, textColor: s, symbolShape: d, symbolColor: c, symbolPaint: u, symbolAlpha: h, symbolCornerRadius: v, symbolGlyph: f, symbolMainAxis: g, panelWidth: p }) => {
3483
+ const m = d === null ? 0 : 14, y = r + m + 10, A = Math.max(fg, Ve(t)) + 10, w = /* @__PURE__ */ S(M, { children: [d !== null && c !== null && /* @__PURE__ */ l("g", {
3484
3484
  transform: `translate(0, ${-10 / 2})`,
3485
3485
  children: /* @__PURE__ */ l(tr, {
3486
3486
  shape: d,
@@ -3490,12 +3490,12 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
3490
3490
  width: 10,
3491
3491
  height: 10,
3492
3492
  alpha: h,
3493
- cornerRadius: g,
3493
+ cornerRadius: v,
3494
3494
  symbol: f,
3495
- mainAxis: v
3495
+ mainAxis: g
3496
3496
  })
3497
3497
  }), /* @__PURE__ */ l("text", {
3498
- x: p,
3498
+ x: m,
3499
3499
  textAnchor: "start",
3500
3500
  dominantBaseline: "central",
3501
3501
  fill: s,
@@ -3519,7 +3519,7 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
3519
3519
  color: i,
3520
3520
  pillWidth: y,
3521
3521
  pillHeight: A,
3522
- panelWidth: m,
3522
+ panelWidth: p,
3523
3523
  text: w
3524
3524
  });
3525
3525
  }, Qg = ({ strokeWidth: e, dashArray: t, lineCap: r, lineJoin: n, horizontal: o, position: a, lineColor: i, effects: s }) => {
@@ -3556,15 +3556,15 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
3556
3556
  c,
3557
3557
  u,
3558
3558
  t.id
3559
- ]), g = h ? i(h.geom, r.type)?.swatchShape ?? "square" : null, f = Xr({
3559
+ ]), v = h ? i(h.geom, r.type)?.swatchShape ?? "square" : null, f = Xr({
3560
3560
  layerId: h?.layerId,
3561
3561
  groupValue: h?.groupValue,
3562
3562
  size: 10
3563
- }), v = Qr({
3563
+ }), g = Qr({
3564
3564
  layerId: h?.layerId,
3565
3565
  groupValue: h?.groupValue,
3566
3566
  fallback: h?.color
3567
- }) ?? null, m = b(() => wg(t.params.label, Pc({
3567
+ }) ?? null, p = b(() => wg(t.params.label, Pc({
3568
3568
  guides: s,
3569
3569
  numberFormat: d,
3570
3570
  layer: t,
@@ -3574,10 +3574,10 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
3574
3574
  d,
3575
3575
  n,
3576
3576
  t
3577
- ]), { fonts: p } = it(), y = O(), A = T(du, y.geom.rule.label(t), y.graph()), w = b(() => ne(A, p.familyDefault), [A, p.familyDefault]), k = b(() => m === null ? null : Ti(m, Eg(o, g !== null), (Q) => a.measureText(Q, w).width), [
3578
- m,
3577
+ ]), { fonts: m } = it(), y = O(), A = T(du, y.geom.rule.label(t), y.graph()), w = b(() => ne(A, m.familyDefault), [A, m.familyDefault]), k = b(() => p === null ? null : Ti(p, Eg(o, v !== null), (Q) => a.measureText(Q, w).width), [
3578
+ p,
3579
3579
  o,
3580
- g,
3580
+ v,
3581
3581
  w,
3582
3582
  a
3583
3583
  ]), E = b(() => k === null ? 0 : a.measureText(k, w).width, [
@@ -3608,8 +3608,8 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
3608
3608
  position: X,
3609
3609
  color: P,
3610
3610
  textColor: I,
3611
- symbolShape: g,
3612
- symbolColor: v,
3611
+ symbolShape: v,
3612
+ symbolColor: g,
3613
3613
  symbolPaint: f.fill,
3614
3614
  symbolAlpha: f.alpha,
3615
3615
  symbolCornerRadius: f.cornerRadius,
@@ -3647,26 +3647,26 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
3647
3647
  children: t
3648
3648
  }), _g = ue(function({ layer: t, intro: r }) {
3649
3649
  const n = ke(), { animateTransitions: o } = ie(), a = r?.type === "fade" ? r : null, i = G(t), { paints: s, paintAt: d } = er(t, i), { fillFor: c, defs: u } = me({ paints: s }), h = b(() => {
3650
- const g = xc(t.data, t.mapping, t.id), f = [];
3651
- let v = -1;
3652
- for (const m of t.data) {
3653
- v += 1;
3654
- const p = Yn(m);
3655
- p && f.push({
3656
- key: g(m),
3657
- ...p,
3658
- fill: c(d(v)),
3659
- opacity: i.get("alpha", m) * i.get("fillAlpha", m),
3660
- rx: ko(i.get("cornerRadius", m), p, n),
3661
- stroke: i.get("stroke", m),
3662
- strokeWidth: i.get("strokeWidth", m),
3663
- effects: te(ee(i, m))
3650
+ const v = xc(t.data, t.mapping, t.id), f = [];
3651
+ let g = -1;
3652
+ for (const p of t.data) {
3653
+ g += 1;
3654
+ const m = Yn(p);
3655
+ m && f.push({
3656
+ key: v(p),
3657
+ ...m,
3658
+ fill: c(d(g)),
3659
+ opacity: i.get("alpha", p) * i.get("fillAlpha", p),
3660
+ rx: ko(i.get("cornerRadius", p), m, n),
3661
+ stroke: i.get("stroke", p),
3662
+ strokeWidth: i.get("strokeWidth", p),
3663
+ effects: te(ee(i, p))
3664
3664
  });
3665
3665
  }
3666
- return f.map(({ key: m, ...p }) => /* @__PURE__ */ l(ef, {
3667
- ...p,
3666
+ return f.map(({ key: p, ...m }) => /* @__PURE__ */ l(ef, {
3667
+ ...m,
3668
3668
  animated: o
3669
- }, m));
3669
+ }, p));
3670
3670
  }, [
3671
3671
  t,
3672
3672
  n,
@@ -3708,17 +3708,17 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
3708
3708
  }), tf = ({ layer: e, primary: t }) => {
3709
3709
  const r = ke(), n = G(e), o = n.get("fill", t.observation), { fillFor: a, defs: i } = me({ paints: [o] }), s = Yn(t.observation);
3710
3710
  if (!s) return null;
3711
- const d = a(o), c = n.get("alpha", t.observation) * n.get("fillAlpha", t.observation), u = n.get("stroke", t.observation, "hovered") ?? Gn, h = n.get("strokeWidth", t.observation, "hovered"), g = ko(n.get("cornerRadius", t.observation, "hovered"), s, r), f = s.x * r.width, v = s.y * r.height, m = s.width * r.width, p = s.height * r.height;
3711
+ const d = a(o), c = n.get("alpha", t.observation) * n.get("fillAlpha", t.observation), u = n.get("stroke", t.observation, "hovered") ?? Gn, h = n.get("strokeWidth", t.observation, "hovered"), v = ko(n.get("cornerRadius", t.observation, "hovered"), s, r), f = s.x * r.width, g = s.y * r.height, p = s.width * r.width, m = s.height * r.height;
3712
3712
  return /* @__PURE__ */ S("g", {
3713
3713
  "data-testid": "hovered-tile",
3714
3714
  children: [
3715
3715
  i,
3716
3716
  /* @__PURE__ */ l("rect", {
3717
3717
  x: f - h,
3718
- y: v - h,
3719
- width: m + h * 2,
3720
- height: p + h * 2,
3721
- rx: g + h,
3718
+ y: g - h,
3719
+ width: p + h * 2,
3720
+ height: m + h * 2,
3721
+ rx: v + h,
3722
3722
  fill: u,
3723
3723
  "data-testid": "hovered-tile-border"
3724
3724
  }),
@@ -3727,7 +3727,7 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
3727
3727
  y: C(s.y),
3728
3728
  width: C(s.width),
3729
3729
  height: C(s.height),
3730
- rx: g,
3730
+ rx: v,
3731
3731
  fill: d,
3732
3732
  opacity: c,
3733
3733
  "data-testid": "hovered-tile-fill"
@@ -3784,18 +3784,18 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
3784
3784
  return t.data.groupBy(ce.group).forEach((c) => {
3785
3785
  const u = [...c], h = nl(u);
3786
3786
  if (!h) return;
3787
- const g = u[0];
3788
- if (!g) return;
3789
- const f = n.get("fill", g);
3787
+ const v = u[0];
3788
+ if (!v) return;
3789
+ const f = n.get("fill", v);
3790
3790
  d.push({
3791
- key: s(g),
3791
+ key: s(v),
3792
3792
  fillPath: h.fillPath,
3793
3793
  outlinePath: h.outlinePath,
3794
3794
  paint: f,
3795
- stroke: n.get("stroke", g) ?? Y(f),
3796
- fillOpacity: n.get("fillAlpha", g) * n.get("alpha", g),
3797
- strokeOpacity: n.get("strokeAlpha", g) * n.get("alpha", g),
3798
- ...Xe(n.get("dashArray", g), n.get("strokeWidth", g))
3795
+ stroke: n.get("stroke", v) ?? Y(f),
3796
+ fillOpacity: n.get("fillAlpha", v) * n.get("alpha", v),
3797
+ strokeOpacity: n.get("strokeAlpha", v) * n.get("alpha", v),
3798
+ ...Xe(n.get("dashArray", v), n.get("strokeWidth", v))
3799
3799
  });
3800
3800
  }), d;
3801
3801
  }, [
@@ -3886,7 +3886,7 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
3886
3886
  unitsPerPixel: Zt(n)
3887
3887
  }), c = b(() => nl([...e.data.filter(ce.group, "eq", a)]), [e.data, a]);
3888
3888
  if (!c) return null;
3889
- const u = o.get("stroke", t.observation, "hovered") ?? Y(i), h = o.get("alpha", t.observation, "hovered"), g = o.get("fillAlpha", t.observation, "hovered") * h, f = o.get("strokeAlpha", t.observation, "hovered") * h, { strokeWidth: v, strokeDasharray: m, strokeLinecap: p } = Xe(o.get("dashArray", t.observation, "hovered"), o.get("strokeWidth", t.observation, "hovered"));
3889
+ const u = o.get("stroke", t.observation, "hovered") ?? Y(i), h = o.get("alpha", t.observation, "hovered"), v = o.get("fillAlpha", t.observation, "hovered") * h, f = o.get("strokeAlpha", t.observation, "hovered") * h, { strokeWidth: g, strokeDasharray: p, strokeLinecap: m } = Xe(o.get("dashArray", t.observation, "hovered"), o.get("strokeWidth", t.observation, "hovered"));
3890
3890
  return /* @__PURE__ */ S(M, { children: [
3891
3891
  /* @__PURE__ */ S(Ne, {
3892
3892
  viewBox: "-1 -1 2 2",
@@ -3902,7 +3902,7 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
3902
3902
  /* @__PURE__ */ l("path", {
3903
3903
  d: c.fillPath,
3904
3904
  fill: s(i),
3905
- fillOpacity: g,
3905
+ fillOpacity: v,
3906
3906
  fillRule: "evenodd",
3907
3907
  className: Qi,
3908
3908
  "data-testid": "hovered-area-fill"
@@ -3911,9 +3911,9 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
3911
3911
  d: c.outlinePath,
3912
3912
  fill: "none",
3913
3913
  stroke: u,
3914
- strokeWidth: v,
3915
- strokeDasharray: m,
3916
- strokeLinecap: p,
3914
+ strokeWidth: g,
3915
+ strokeDasharray: p,
3916
+ strokeLinecap: m,
3917
3917
  opacity: f,
3918
3918
  vectorEffect: "non-scaling-stroke",
3919
3919
  "data-testid": "hovered-area-edge"
@@ -3962,19 +3962,19 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
3962
3962
  s += 1;
3963
3963
  const u = Eo(c);
3964
3964
  if (u === null) continue;
3965
- const h = Wn(o, u), g = n(c, u, s), f = i.get(h);
3965
+ const h = Wn(o, u), v = n(c, u, s), f = i.get(h);
3966
3966
  f === void 0 ? i.set(h, {
3967
3967
  firstObservation: c,
3968
- members: [g]
3969
- }) : f.members.push(g);
3968
+ members: [v]
3969
+ }) : f.members.push(v);
3970
3970
  }
3971
3971
  const d = /* @__PURE__ */ new Map();
3972
3972
  for (const [c, { firstObservation: u, members: h }] of i) {
3973
- const g = pi(h), f = Vr(r, u);
3973
+ const v = pi(h), f = Vr(r, u);
3974
3974
  d.set(c, {
3975
3975
  style: f,
3976
- union: g,
3977
- corners: Ci(f.cornerRadius, g, hi(g, a)),
3976
+ union: v,
3977
+ corners: Ci(f.cornerRadius, v, hi(v, a)),
3978
3978
  members: h
3979
3979
  });
3980
3980
  }
@@ -4017,8 +4017,8 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
4017
4017
  for (const u of e.data) {
4018
4018
  const h = Eo(u);
4019
4019
  if (h === null) continue;
4020
- const g = s.get(Wn(i, h));
4021
- g !== void 0 && (c += il(h, g, i, d) ?? "");
4020
+ const v = s.get(Wn(i, h));
4021
+ v !== void 0 && (c += il(h, v, i, d) ?? "");
4022
4022
  }
4023
4023
  return c === "" ? [] : [{
4024
4024
  kind: "region",
@@ -4030,19 +4030,19 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
4030
4030
  strokeWidth: t,
4031
4031
  vectorEffect: "non-scaling-stroke"
4032
4032
  }), hf = ue(function({ layer: t, coordSystem: r, intro: n }) {
4033
- const o = ke(), a = pe(), i = Ur(n?.type === "grow" && (n.growAxis === "angle" || n.growAxis === "radius") ? n : null), s = r.bandAxis !== "x", d = G(t), { paints: c, paintAt: u } = er(t, d), { fillFor: h, defs: g } = me({
4033
+ const o = ke(), a = pe(), i = Ur(n?.type === "grow" && (n.growAxis === "angle" || n.growAxis === "radius") ? n : null), s = r.bandAxis !== "x", d = G(t), { paints: c, paintAt: u } = er(t, d), { fillFor: h, defs: v } = me({
4034
4034
  paints: c,
4035
4035
  unitsPerPixel: Zt(o)
4036
4036
  }), f = b(() => {
4037
- const m = Me(t.data, t.mapping, t.id);
4038
- return [...al(t, r, d, (p, y, A) => ({
4039
- key: m(p),
4037
+ const p = Me(t.data, t.mapping, t.id);
4038
+ return [...al(t, r, d, (m, y, A) => ({
4039
+ key: p(m),
4040
4040
  ...y,
4041
4041
  fill: h(u(A)),
4042
- opacity: $t(d, p)
4043
- })).values()].map((p, y) => ({
4044
- ...p,
4045
- key: p.members[0]?.key ?? String(y)
4042
+ opacity: $t(d, m)
4043
+ })).values()].map((m, y) => ({
4044
+ ...m,
4045
+ key: m.members[0]?.key ?? String(y)
4046
4046
  }));
4047
4047
  }, [
4048
4048
  t,
@@ -4050,8 +4050,8 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
4050
4050
  d,
4051
4051
  h,
4052
4052
  u
4053
- ]), v = b(() => f.map((m, p) => {
4054
- const { stroke: y, strokeWidth: A, strokeAlpha: w } = m.style, k = y !== void 0, E = $n(A), L = y === void 0 ? {} : Lr(y, E.separatorWidth), R = y === void 0 ? void 0 : Lr(y, E.outlineWidth), P = m.members.map((Q) => {
4053
+ ]), g = b(() => f.map((p, m) => {
4054
+ const { stroke: y, strokeWidth: A, strokeAlpha: w } = p.style, k = y !== void 0, E = $n(A), L = y === void 0 ? {} : Lr(y, E.separatorWidth), R = y === void 0 ? void 0 : Lr(y, E.outlineWidth), P = p.members.map((Q) => {
4055
4055
  const { key: $, ...K } = Q;
4056
4056
  return i.animated ? /* @__PURE__ */ l(vf, {
4057
4057
  ...K,
@@ -4069,26 +4069,26 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
4069
4069
  opacity: K.opacity,
4070
4070
  ...L
4071
4071
  }, $);
4072
- }), I = Object.values(m.corners).some((Q) => Q > 0);
4073
- if (!k && !I) return /* @__PURE__ */ l(ro, { children: P }, m.key);
4074
- const F = `${a}${p}`;
4072
+ }), I = Object.values(p.corners).some((Q) => Q > 0);
4073
+ if (!k && !I) return /* @__PURE__ */ l(ro, { children: P }, p.key);
4074
+ const F = `${a}${m}`;
4075
4075
  if (i.animated) return /* @__PURE__ */ l("g", {
4076
4076
  clipPath: `url(#${F})`,
4077
4077
  children: /* @__PURE__ */ l(gf, {
4078
- ...m.union,
4079
- corners: m.corners,
4078
+ ...p.union,
4079
+ corners: p.corners,
4080
4080
  animation: i,
4081
4081
  sweepsInOnLateMount: s,
4082
- introKey: m.members[0]?.key,
4082
+ introKey: p.members[0]?.key,
4083
4083
  clipId: F,
4084
4084
  outlineProps: R,
4085
4085
  outlineOpacity: w,
4086
4086
  children: P
4087
4087
  })
4088
- }, m.key);
4088
+ }, p.key);
4089
4089
  const X = _e({
4090
- ...m.union,
4091
- cornerRadius: m.corners
4090
+ ...p.union,
4091
+ cornerRadius: p.corners
4092
4092
  });
4093
4093
  return /* @__PURE__ */ S("g", {
4094
4094
  clipPath: `url(#${F})`,
@@ -4105,7 +4105,7 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
4105
4105
  ...R
4106
4106
  })
4107
4107
  ]
4108
- }, m.key);
4108
+ }, p.key);
4109
4109
  }), [
4110
4110
  i,
4111
4111
  a,
@@ -4120,24 +4120,24 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
4120
4120
  "data-geom": "bar",
4121
4121
  effects: te(ee(d, t.data.getFirst() ?? void 0)),
4122
4122
  className: we,
4123
- children: [g, v]
4123
+ children: [v, g]
4124
4124
  });
4125
4125
  }), sl = ({ startAngle: e, endAngle: t, innerRadius: r, outerRadius: n, corners: o, animation: a, sweepsInOnLateMount: i, introKey: s }) => {
4126
- const d = a.activeIntro?.growAxis === "angle" ? a.activeIntro : null, c = a.activeIntro?.growAxis === "radius" ? a.activeIntro : null, u = i && !a.mounting, h = d?.baseline ?? (u ? ka : e), g = d?.baseline ?? (u ? ka : t), f = c ? c.baseline : r, v = c ? c.baseline : n, m = Re(h), p = Re(g), y = Re(f), A = Re(v), w = Re(_e({
4126
+ const d = a.activeIntro?.growAxis === "angle" ? a.activeIntro : null, c = a.activeIntro?.growAxis === "radius" ? a.activeIntro : null, u = i && !a.mounting, h = d?.baseline ?? (u ? ka : e), v = d?.baseline ?? (u ? ka : t), f = c ? c.baseline : r, g = c ? c.baseline : n, p = Re(h), m = Re(v), y = Re(f), A = Re(g), w = Re(_e({
4127
4127
  startAngle: h,
4128
- endAngle: g,
4128
+ endAngle: v,
4129
4129
  innerRadius: f,
4130
- outerRadius: v,
4130
+ outerRadius: g,
4131
4131
  cornerRadius: o
4132
4132
  }) ?? ""), k = kn(a, s, d);
4133
4133
  W(() => {
4134
- const L = k(), R = [Fe(m, e, L), Fe(p, t, L)];
4134
+ const L = k(), R = [Fe(p, e, L), Fe(m, t, L)];
4135
4135
  return () => {
4136
4136
  for (const P of R) P.stop();
4137
4137
  };
4138
4138
  }, [
4139
- m,
4140
4139
  p,
4140
+ m,
4141
4141
  e,
4142
4142
  t,
4143
4143
  k
@@ -4157,8 +4157,8 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
4157
4157
  ]), W(() => {
4158
4158
  const L = () => {
4159
4159
  w.set(_e({
4160
- startAngle: m.get(),
4161
- endAngle: p.get(),
4160
+ startAngle: p.get(),
4161
+ endAngle: m.get(),
4162
4162
  innerRadius: y.get(),
4163
4163
  outerRadius: A.get(),
4164
4164
  cornerRadius: o
@@ -4166,8 +4166,8 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
4166
4166
  };
4167
4167
  L();
4168
4168
  const R = [
4169
- m,
4170
4169
  p,
4170
+ m,
4171
4171
  y,
4172
4172
  A
4173
4173
  ].map((P) => P.on("change", L));
@@ -4175,8 +4175,8 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
4175
4175
  for (const P of R) P();
4176
4176
  };
4177
4177
  }, [
4178
- m,
4179
4178
  p,
4179
+ m,
4180
4180
  y,
4181
4181
  A,
4182
4182
  o,
@@ -4223,14 +4223,14 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
4223
4223
  if (s === null) return null;
4224
4224
  const d = df(n, t, r, e, s), c = il(s, d, t);
4225
4225
  if (c === void 0) return null;
4226
- const u = $t(r, e, o), { stroke: h, strokeWidth: g, strokeAlpha: f } = d.style;
4226
+ const u = $t(r, e, o), { stroke: h, strokeWidth: v, strokeAlpha: f } = d.style;
4227
4227
  if (h === void 0) return /* @__PURE__ */ l("path", {
4228
4228
  d: c,
4229
4229
  fill: a,
4230
4230
  opacity: u,
4231
4231
  "data-testid": "arc-segment"
4232
4232
  });
4233
- const v = $n(g), m = $c(e, t === "x" ? "x" : "y"), p = m === "top" || m === "right", y = ff(Gc(e), t, d.union, p), A = mf(s, yf(y)), w = _e({
4233
+ const g = $n(v), p = $c(e, t === "x" ? "x" : "y"), m = p === "top" || p === "right", y = ff(Gc(e), t, d.union, m), A = mf(s, yf(y)), w = _e({
4234
4234
  ...d.union,
4235
4235
  cornerRadius: d.corners
4236
4236
  });
@@ -4251,13 +4251,13 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
4251
4251
  d: A,
4252
4252
  fill: "none",
4253
4253
  opacity: u,
4254
- ...Lr(h, v.separatorWidth)
4254
+ ...Lr(h, g.separatorWidth)
4255
4255
  }),
4256
4256
  /* @__PURE__ */ l("path", {
4257
4257
  d: w,
4258
4258
  fill: "none",
4259
4259
  opacity: f,
4260
- ...Lr(h, v.outlineWidth)
4260
+ ...Lr(h, g.outlineWidth)
4261
4261
  })
4262
4262
  ]
4263
4263
  });
@@ -4270,16 +4270,16 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
4270
4270
  paints: i,
4271
4271
  unitsPerPixel: Zt(n)
4272
4272
  }), { bandAxis: u } = r, h = b(() => {
4273
- const g = Me(e.data, e.mapping, e.id), f = [];
4274
- let v = -1;
4275
- for (const m of e.data)
4276
- v += 1, f.push(/* @__PURE__ */ l(ll, {
4277
- observation: m,
4273
+ const v = Me(e.data, e.mapping, e.id), f = [];
4274
+ let g = -1;
4275
+ for (const p of e.data)
4276
+ g += 1, f.push(/* @__PURE__ */ l(ll, {
4277
+ observation: p,
4278
4278
  bandAxis: u,
4279
4279
  styleReaders: o,
4280
4280
  groupPaints: a,
4281
- fill: d(s(v))
4282
- }, g(m)));
4281
+ fill: d(s(g))
4282
+ }, v(p)));
4283
4283
  return f;
4284
4284
  }, [
4285
4285
  u,
@@ -4450,7 +4450,7 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
4450
4450
  }, wf = ({ layer: e, primary: t, companions: r }) => {
4451
4451
  const n = G(e), o = tt(t.observation), a = b(() => dl([...e.data.filter(ce.group, "eq", o)]), [e.data, o]);
4452
4452
  if (!a) return null;
4453
- const i = n.get("stroke", t.observation, "hovered"), s = n.get("alpha", t.observation, "hovered"), d = n.get("strokeAlpha", t.observation, "hovered"), { strokeWidth: c, strokeDasharray: u, strokeLinecap: h } = Xe(n.get("dashArray", t.observation, "hovered"), n.get("strokeWidth", t.observation, "hovered"), n.get("lineCap", t.observation, "hovered")), g = n.get("lineJoin", t.observation, "hovered");
4453
+ const i = n.get("stroke", t.observation, "hovered"), s = n.get("alpha", t.observation, "hovered"), d = n.get("strokeAlpha", t.observation, "hovered"), { strokeWidth: c, strokeDasharray: u, strokeLinecap: h } = Xe(n.get("dashArray", t.observation, "hovered"), n.get("strokeWidth", t.observation, "hovered"), n.get("lineCap", t.observation, "hovered")), v = n.get("lineJoin", t.observation, "hovered");
4454
4454
  return /* @__PURE__ */ S(M, { children: [
4455
4455
  /* @__PURE__ */ l(Ne, {
4456
4456
  viewBox: "-1 -1 2 2",
@@ -4470,7 +4470,7 @@ var Tg = "_2qyyu60", Ig = 2, Bg = 12, Mg = 12, Aa = 1, Sa = 2, Og = 4, Ng = 3, H
4470
4470
  strokeOpacity: d,
4471
4471
  strokeDasharray: u,
4472
4472
  strokeLinecap: h,
4473
- strokeLinejoin: g,
4473
+ strokeLinejoin: v,
4474
4474
  vectorEffect: "non-scaling-stroke",
4475
4475
  "data-testid": "hovered-line-path"
4476
4476
  })
@@ -4801,10 +4801,10 @@ var Gf = ({ hitTest: e, input: t }) => {
4801
4801
  mask: `url(#${o})`,
4802
4802
  pointerEvents: "none",
4803
4803
  "data-testid": "geom-overpaint",
4804
- children: [...i].reverse().map((h, g) => /* @__PURE__ */ l("rect", {
4804
+ children: [...i].reverse().map((h, v) => /* @__PURE__ */ l("rect", {
4805
4805
  ...u,
4806
4806
  fill: s(h)
4807
- }, g))
4807
+ }, v))
4808
4808
  })
4809
4809
  ] });
4810
4810
  };
@@ -4867,10 +4867,10 @@ var Yf = (e, t) => {
4867
4867
  }, e), i = D(null), s = D(null), d = fe((c) => {
4868
4868
  i.current !== c && (i.current && s.current?.unobserve(i.current), i.current = c, c && (s.current ??= new ResizeObserver(([u]) => {
4869
4869
  if (!u) return;
4870
- const h = Math.round(u.contentBoxSize[0]?.inlineSize ?? u.contentRect.width), g = Math.round(u.contentBoxSize[0]?.blockSize ?? u.contentRect.height);
4870
+ const h = Math.round(u.contentBoxSize[0]?.inlineSize ?? u.contentRect.width), v = Math.round(u.contentBoxSize[0]?.blockSize ?? u.contentRect.height);
4871
4871
  a.run({
4872
4872
  width: h,
4873
- height: g,
4873
+ height: v,
4874
4874
  unmeasured: !1
4875
4875
  });
4876
4876
  }), s.current.observe(c)));
@@ -4895,8 +4895,8 @@ function yS() {
4895
4895
  top: u.top,
4896
4896
  width: u.width,
4897
4897
  height: u.height
4898
- }, g = r.current;
4899
- g && g.left === h.left && g.top === h.top && g.width === h.width && g.height === h.height || (r.current = h, t(h));
4898
+ }, v = r.current;
4899
+ v && v.left === h.left && v.top === h.top && v.width === h.width && v.height === h.height || (r.current = h, t(h));
4900
4900
  }, []), i = fe(() => {
4901
4901
  o.current === null && (o.current = requestAnimationFrame(a));
4902
4902
  }, [a]), { setElement: s } = fl({ onResize: i }), d = fe((c) => {
@@ -5079,12 +5079,12 @@ var Uf = {
5079
5079
  }, $f = ({ locale: e, overrides: t, fallbackLocale: r = "en-GB", dictionaries: n }) => {
5080
5080
  const o = t ?? {}, a = e ?? r, i = [...n.map((d) => d[a]), ...n.map((d) => d[r])];
5081
5081
  return (d, c) => {
5082
- const u = c ?? {}, h = d.split("."), g = o[d];
5083
- if (g) return typeof g == "function" ? g(u) : g;
5082
+ const u = c ?? {}, h = d.split("."), v = o[d];
5083
+ if (v) return typeof v == "function" ? v(u) : v;
5084
5084
  for (const f of i) {
5085
5085
  if (f === void 0) continue;
5086
- const v = ep(f, h);
5087
- if (v) return typeof v == "function" ? v(u) : v;
5086
+ const g = ep(f, h);
5087
+ if (g) return typeof g == "function" ? g(u) : g;
5088
5088
  }
5089
5089
  return d;
5090
5090
  };
@@ -5161,17 +5161,17 @@ var Uf = {
5161
5161
  i
5162
5162
  ].map((s) => `${Ca(s, t)}px`).join(" ");
5163
5163
  }, Lo = (e, t) => {
5164
- const { x: r, y: n, width: o, height: a } = e, { topLeft: i, topRight: s, bottomRight: d, bottomLeft: c } = ap(bl(t), o, a), u = r + o, h = n + a, g = (f, v, m) => f > 0 ? `A${f},${f},0,0,1,${v},${m}` : "";
5164
+ const { x: r, y: n, width: o, height: a } = e, { topLeft: i, topRight: s, bottomRight: d, bottomLeft: c } = ap(bl(t), o, a), u = r + o, h = n + a, v = (f, g, p) => f > 0 ? `A${f},${f},0,0,1,${g},${p}` : "";
5165
5165
  return [
5166
5166
  `M${r + i},${n}`,
5167
5167
  `H${u - s}`,
5168
- g(s, u, n + s),
5168
+ v(s, u, n + s),
5169
5169
  `V${h - d}`,
5170
- g(d, u - d, h),
5170
+ v(d, u - d, h),
5171
5171
  `H${r + c}`,
5172
- g(c, r, h - c),
5172
+ v(c, r, h - c),
5173
5173
  `V${n + i}`,
5174
- g(i, r + i, n),
5174
+ v(i, r + i, n),
5175
5175
  "Z"
5176
5176
  ].filter((f) => f !== "").join("");
5177
5177
  }, Ca = (e, t) => e === 0 ? 0 : e + t, ap = (e, t, r) => {
@@ -5450,25 +5450,25 @@ var Bp = "_19519k86", Mp = "_19519k87", Op = "_19519k88", Np = (e) => {
5450
5450
  r,
5451
5451
  t,
5452
5452
  o
5453
- ]), h = !a && u !== null && (c || o !== null), g = b(() => ({ getBoundingClientRect: () => {
5453
+ ]), h = !a && u !== null && (c || o !== null), v = b(() => ({ getBoundingClientRect: () => {
5454
5454
  if (o !== null) return Yp(o);
5455
5455
  const A = d.current;
5456
5456
  return A === null ? Gp : Vp(A);
5457
- } }), [d, o]), { refs: f, floatingStyles: v, update: m } = Bi(jp({
5457
+ } }), [d, o]), { refs: f, floatingStyles: g, update: p } = Bi(jp({
5458
5458
  open: h,
5459
5459
  tooltipAnchor: o,
5460
- virtualReference: g
5460
+ virtualReference: v
5461
5461
  }));
5462
- if (s.current = m, !h) return null;
5463
- const p = /* @__PURE__ */ l("div", {
5462
+ if (s.current = p, !h) return null;
5463
+ const m = /* @__PURE__ */ l("div", {
5464
5464
  ref: f.setFloating,
5465
5465
  role: "tooltip",
5466
5466
  className: Op,
5467
- style: v,
5467
+ style: g,
5468
5468
  "data-testid": "chart-tooltip",
5469
5469
  children: /* @__PURE__ */ l(i, { content: u })
5470
5470
  }), y = yp();
5471
- return y ? Au(/* @__PURE__ */ l(pp, { children: p }), y) : p;
5471
+ return y ? Au(/* @__PURE__ */ l(pp, { children: m }), y) : m;
5472
5472
  }, Wp = ({ content: e }) => {
5473
5473
  const t = se(), r = B((h) => h.coordSystem), n = T(uu, O()), o = Et([n.box.fill]), a = re(n.heading), i = re(n.label), s = re(n.value), d = { paddingInline: n.box.paddingInline }, c = e.rows.some((h) => h.swatchColor !== null), u = e.rows.some((h) => !h.primary);
5474
5474
  return /* @__PURE__ */ S("div", {
@@ -5497,10 +5497,10 @@ var Bp = "_19519k86", Mp = "_19519k87", Op = "_19519k88", Np = (e) => {
5497
5497
  /* @__PURE__ */ l("div", {
5498
5498
  className: Tp,
5499
5499
  children: e.rows.map((h) => {
5500
- const g = t(h.geom, r.type);
5500
+ const v = t(h.geom, r.type);
5501
5501
  return /* @__PURE__ */ l(Up, {
5502
5502
  row: h,
5503
- swatchShape: g?.swatchShape ?? "square",
5503
+ swatchShape: v?.swatchShape ?? "square",
5504
5504
  mainAxis: Jt(r),
5505
5505
  hasSwatches: c,
5506
5506
  highlight: h.primary && u,
@@ -5634,15 +5634,15 @@ var Bp = "_19519k86", Mp = "_19519k87", Op = "_19519k88", Np = (e) => {
5634
5634
  }
5635
5635
  return t;
5636
5636
  }, Xp = ({ textMeasurer: e, tickLabelStyles: t, tickLineStyles: r, familyDefault: n }) => (o) => {
5637
- const a = o.position === "top" || o.position === "bottom", i = Le(o.scaledAesthetic), { offset: s, ...d } = t(i, o.position), c = o.showTicks ? Math.max(s, r[i].length) : s, u = ne(d, n), h = o.ticks.map((f) => e.measureText(f.formattedLabel, u)), g = o.labelMaxWidthPx ?? Number.POSITIVE_INFINITY;
5637
+ const a = o.position === "top" || o.position === "bottom", i = Le(o.scaledAesthetic), { offset: s, ...d } = t(i, o.position), c = o.showTicks ? Math.max(s, r[i].length) : s, u = ne(d, n), h = o.ticks.map((f) => e.measureText(f.formattedLabel, u)), v = o.labelMaxWidthPx ?? Number.POSITIVE_INFINITY;
5638
5638
  if (a) {
5639
5639
  if (o.labelRotation !== 0) {
5640
- const f = h.map((v) => v.width);
5641
- return Oa(f, g) + 2 * c;
5640
+ const f = h.map((g) => g.width);
5641
+ return Oa(f, v) + 2 * c;
5642
5642
  }
5643
5643
  return Math.max(...h.map((f) => f.height)) + c;
5644
5644
  }
5645
- return Oa(h.map((f) => f.width), g) + c;
5645
+ return Oa(h.map((f) => f.width), v) + c;
5646
5646
  }, Oa = (e, t) => Math.min(Math.max(...e), t), qp = ({ axisLabelStyles: e }) => (t) => Ve(e[Le(t.scaledAesthetic)]), Rl = ({ textMeasurer: e, dataLabelStyles: t, familyDefault: r }) => (n, o, a) => {
5647
5647
  const i = t[n][o], s = e.measureText(a, ne(i, r));
5648
5648
  return {
@@ -5723,20 +5723,20 @@ var or = (e, t) => {
5723
5723
  maxLabel: a.item.formattedLabel
5724
5724
  };
5725
5725
  }, No = ({ parts: e, vertical: t, textMeasurer: r, font: n, itemStyle: o }) => {
5726
- const a = (m) => r.measureText(m, n).width, i = Ve(o), { inlineChrome: s, blockChrome: d } = nr(o), c = e.bubbles.map(({ size: m }) => m), u = Sr(c, 4), h = [
5726
+ const a = (p) => r.measureText(p, n).width, i = Ve(o), { inlineChrome: s, blockChrome: d } = nr(o), c = e.bubbles.map(({ size: p }) => p), u = Sr(c, 4), h = [
5727
5727
  e.minLabel === null ? null : a(e.minLabel),
5728
5728
  u,
5729
5729
  a(e.maxLabel)
5730
- ].filter((m) => m !== null), g = Sr(h, o.gap), f = Math.max(i, ...c), v = e.title === null ? null : Math.min(a(e.title), 160);
5730
+ ].filter((p) => p !== null), v = Sr(h, o.gap), f = Math.max(i, ...c), g = e.title === null ? null : Math.min(a(e.title), 160);
5731
5731
  if (t) {
5732
- const m = v === null ? 0 : i + o.gap;
5732
+ const p = g === null ? 0 : i + o.gap;
5733
5733
  return {
5734
- inlineSize: Math.max(v ?? 0, g) + s,
5735
- blockSize: m + f + d
5734
+ inlineSize: Math.max(g ?? 0, v) + s,
5735
+ blockSize: p + f + d
5736
5736
  };
5737
5737
  }
5738
5738
  return {
5739
- inlineSize: Sr(v === null ? [g] : [v, g], o.gap) + s,
5739
+ inlineSize: Sr(g === null ? [v] : [g, v], o.gap) + s,
5740
5740
  blockSize: f + d
5741
5741
  };
5742
5742
  }, Tl = (e, t) => e - nr(t).blockChrome, Il = (e, t) => {
@@ -5760,39 +5760,39 @@ var or = (e, t) => {
5760
5760
  }), Sr = (e, t) => e.reduce((r, n) => r + n, 0) + t * Math.max(0, e.length - 1), sm = ({ textMeasurer: e, familyDefault: t, legendItemStyle: r, directLabelStyle: n }) => (o) => {
5761
5761
  const a = o.position === "top" || o.position === "bottom";
5762
5762
  if (o.display === "direct") {
5763
- const v = Ve(n);
5764
- if (a) return v;
5765
- const m = ne(n, t), p = o.items.map((y) => e.measureText(y.formattedLabel, m).width);
5766
- return Math.max(...p);
5763
+ const g = Ve(n);
5764
+ if (a) return g;
5765
+ const p = ne(n, t), m = o.items.map((y) => e.measureText(y.formattedLabel, p).width);
5766
+ return Math.max(...m);
5767
5767
  }
5768
- const { item: i, swatch: s } = r, d = Ve(i), c = ne(i, t), { inlineChrome: u, blockChrome: h } = nr(i), g = o.aesthetics.includes("size");
5768
+ const { item: i, swatch: s } = r, d = Ve(i), c = ne(i, t), { inlineChrome: u, blockChrome: h } = nr(i), v = o.aesthetics.includes("size");
5769
5769
  if (o.inHeadlineRow) return Il(o, i);
5770
5770
  if (jn(o)) {
5771
- const v = or(o);
5772
- if (v === null) return 0;
5773
- const m = No({
5774
- parts: v,
5771
+ const g = or(o);
5772
+ if (g === null) return 0;
5773
+ const p = No({
5774
+ parts: g,
5775
5775
  vertical: !a,
5776
5776
  textMeasurer: e,
5777
5777
  font: c,
5778
5778
  itemStyle: i
5779
5779
  });
5780
- return a ? m.blockSize : m.inlineSize;
5780
+ return a ? p.blockSize : p.inlineSize;
5781
5781
  }
5782
5782
  if (a) {
5783
- const v = g ? Math.max(0, ...o.items.map((m) => Bn(m.visual, s.size, !0))) : s.size;
5784
- return Math.max(d, v) + h;
5783
+ const g = v ? Math.max(0, ...o.items.map((p) => Bn(p.visual, s.size, !0))) : s.size;
5784
+ return Math.max(d, g) + h;
5785
5785
  }
5786
- const f = o.items.map((v) => {
5787
- const m = e.measureText(v.formattedLabel, c).width, p = Bn(v.visual, s.size, g);
5788
- return p + (p > 0 ? i.gap : 0) + m;
5786
+ const f = o.items.map((g) => {
5787
+ const p = e.measureText(g.formattedLabel, c).width, m = Bn(g.visual, s.size, v);
5788
+ return m + (m > 0 ? i.gap : 0) + p;
5789
5789
  });
5790
5790
  return Math.max(...f) + u;
5791
5791
  }, lm = ({ textMeasurer: e, tickLabelStyles: t, familyDefault: r }) => (n, o) => e.measureText(n, ne(t(o), r)), dm = Object.freeze({}), cm = ({ textMeasurer: e, metrics: t, overrides: r = dm }) => {
5792
5792
  const n = O(), o = T(kl, n), a = T(en, n), i = T(ki, n), s = T(rt, n), d = T(Bo, n), c = T(El, n), u = D(r);
5793
5793
  return u.current = r, b(() => {
5794
5794
  if (!e) return null;
5795
- const h = t.fonts.familyDefault, g = n.graph().get("textScale"), f = {
5795
+ const h = t.fonts.familyDefault, v = n.graph().get("textScale"), f = {
5796
5796
  textMeasurer: e,
5797
5797
  familyDefault: h,
5798
5798
  itemGap: Oo(n).gap,
@@ -5801,34 +5801,34 @@ var or = (e, t) => {
5801
5801
  medium: Ar(n, "medium"),
5802
5802
  large: Ar(n, "large")
5803
5803
  }
5804
- }, v = Xp({
5804
+ }, g = Xp({
5805
5805
  textMeasurer: e,
5806
5806
  tickLabelStyles: d,
5807
5807
  tickLineStyles: c,
5808
5808
  familyDefault: h
5809
- }), m = qp({ axisLabelStyles: o }), p = sm({
5809
+ }), p = qp({ axisLabelStyles: o }), m = sm({
5810
5810
  textMeasurer: e,
5811
5811
  familyDefault: h,
5812
5812
  legendItemStyle: s,
5813
5813
  directLabelStyle: i
5814
5814
  }), y = tm(f), A = _p(f), w = {
5815
5815
  measureText: (k, E) => e.measureText(k, E),
5816
- textScale: g
5816
+ textScale: v
5817
5817
  };
5818
5818
  return {
5819
5819
  measureAxis: (k) => {
5820
5820
  if (hm(k)) return 0;
5821
5821
  const E = u.current.measureAxis;
5822
- return E ? E(k, w) : v(k);
5822
+ return E ? E(k, w) : g(k);
5823
5823
  },
5824
5824
  measureAxisLabel: (k) => {
5825
5825
  const E = u.current.measureAxisLabel;
5826
- return E ? E(k, w) : m(k);
5826
+ return E ? E(k, w) : p(k);
5827
5827
  },
5828
5828
  measureLegend: (k) => {
5829
5829
  if (vm(k)) return 0;
5830
5830
  const E = u.current.measureLegend;
5831
- return E ? E(k, w) : p(k);
5831
+ return E ? E(k, w) : m(k);
5832
5832
  },
5833
5833
  measureHeadline: (k, E, L) => (u.current.measureHeadline ?? y)(k, E, L),
5834
5834
  measureHeadlineItemWidths: (k, E) => (u.current.measureHeadlineItemWidths ?? A)(k, E),
@@ -5858,8 +5858,8 @@ var or = (e, t) => {
5858
5858
  c,
5859
5859
  n
5860
5860
  ]);
5861
- }, um = ({ measurer: e, axes: t, numberFormat: r, parsingLocale: n, formattedLegends: o, containerSize: a, externalMeasurements: i, headline: s, formattingLocale: d, annotations: c, layers: u, coordSystem: h, overflowStrategy: g, panelEdges: f, padding: v, margins: m }) => {
5862
- const p = O(), y = oo(), A = b(() => (w) => wi(p, w), [p]);
5861
+ }, um = ({ measurer: e, axes: t, numberFormat: r, parsingLocale: n, formattedLegends: o, containerSize: a, externalMeasurements: i, headline: s, formattingLocale: d, annotations: c, layers: u, coordSystem: h, overflowStrategy: v, panelEdges: f, padding: g, margins: p }) => {
5862
+ const m = O(), y = oo(), A = b(() => (w) => wi(m, w), [m]);
5863
5863
  return b(() => e ? new Wd(e).compile({
5864
5864
  axes: t,
5865
5865
  numberFormat: r,
@@ -5872,13 +5872,13 @@ var or = (e, t) => {
5872
5872
  annotations: c,
5873
5873
  resolveDifferenceArrowStyle: A,
5874
5874
  layers: u,
5875
- readers: p,
5875
+ readers: m,
5876
5876
  resolvePlacement: y,
5877
5877
  coordSystem: h,
5878
- overflowStrategy: g,
5878
+ overflowStrategy: v,
5879
5879
  panelEdges: f,
5880
- padding: v,
5881
- margins: m
5880
+ padding: g,
5881
+ margins: p
5882
5882
  }) : null, [
5883
5883
  t,
5884
5884
  r,
@@ -5886,18 +5886,18 @@ var or = (e, t) => {
5886
5886
  o,
5887
5887
  a,
5888
5888
  i,
5889
- g,
5889
+ v,
5890
5890
  s,
5891
5891
  d,
5892
5892
  c,
5893
5893
  A,
5894
5894
  u,
5895
- p,
5895
+ m,
5896
5896
  y,
5897
5897
  h,
5898
5898
  f,
5899
- v,
5900
- m,
5899
+ g,
5900
+ p,
5901
5901
  e
5902
5902
  ]);
5903
5903
  }, hm = (e) => !e.visible || e.ticks.length === 0, vm = (e) => e.items.length === 0 && (e.fallbackItems?.length ?? 0) === 0, Bl = () => {
@@ -5996,7 +5996,7 @@ var or = (e, t) => {
5996
5996
  }
5997
5997
  });
5998
5998
  if (d !== null && c?.intersects !== !1) {
5999
- const u = o.find((g) => g.id === d.layerId), h = u === void 0 ? null : fc(u)(d.observation);
5999
+ const u = o.find((v) => v.id === d.layerId), h = u === void 0 ? null : fc(u)(d.observation);
6000
6000
  if (h !== null) return {
6001
6001
  anchorType: "observation",
6002
6002
  ...h
@@ -6133,63 +6133,63 @@ var Wl = U(null), zm = ({ panelRect: e, children: t }) => {
6133
6133
  start: r(e.start),
6134
6134
  end: r(e.end)
6135
6135
  }) ?? n ?? t.stroke, Ym = (e) => {
6136
- const { formattingLocale: t } = Z(), r = qe(), { fonts: n } = it(), o = Te((p) => $e(p, "difference-arrow-endpoint-drag")), a = Mu(), i = O(), { differenceArrows: s, mainAxis: d, parsingLocale: c } = B(he((p) => ({
6137
- differenceArrows: p.annotations.differenceArrows,
6138
- mainAxis: Jt(p.coordSystem),
6139
- parsingLocale: p.config.parsingLocale
6140
- }))), u = t ?? c, { width: h, height: g } = e, f = b(() => ({
6136
+ const { formattingLocale: t } = Z(), r = qe(), { fonts: n } = it(), o = Te((m) => $e(m, "difference-arrow-endpoint-drag")), a = Mu(), i = O(), { differenceArrows: s, mainAxis: d, parsingLocale: c } = B(he((m) => ({
6137
+ differenceArrows: m.annotations.differenceArrows,
6138
+ mainAxis: Jt(m.coordSystem),
6139
+ parsingLocale: m.config.parsingLocale
6140
+ }))), u = t ?? c, { width: h, height: v } = e, f = b(() => ({
6141
6141
  mainAxis: d,
6142
6142
  panelWidth: h,
6143
- panelHeight: g,
6143
+ panelHeight: v,
6144
6144
  locale: u
6145
6145
  }), [
6146
6146
  d,
6147
6147
  h,
6148
- g,
6148
+ v,
6149
6149
  u
6150
- ]), v = b(() => jm(r, n.familyDefault), [r, n.familyDefault]), m = b(() => s.map((p) => {
6151
- const y = wi(i, p.id), A = Fa(p, y, f, v);
6150
+ ]), g = b(() => jm(r, n.familyDefault), [r, n.familyDefault]), p = b(() => s.map((m) => {
6151
+ const y = wi(i, m.id), A = Fa(m, y, f, g);
6152
6152
  return {
6153
6153
  ...A,
6154
- arrow: p,
6154
+ arrow: m,
6155
6155
  style: y,
6156
- color: Ga(p, y, a),
6157
- committedArrow: p,
6156
+ color: Ga(m, y, a),
6157
+ committedArrow: m,
6158
6158
  committedLabelBox: A.labelBox,
6159
6159
  committedLabelText: A.labelText,
6160
6160
  dragging: !1,
6161
- hasComparableEndpoints: qo(p.start, p.end)
6161
+ hasComparableEndpoints: qo(m.start, m.end)
6162
6162
  };
6163
6163
  }), [
6164
6164
  s,
6165
6165
  f,
6166
- v,
6166
+ g,
6167
6167
  a,
6168
6168
  i
6169
6169
  ]);
6170
- return b(() => o === null ? m : m.map((p) => {
6171
- if (p.id !== o.annotationId) return p;
6172
- const y = Um(p.committedArrow, o);
6170
+ return b(() => o === null ? p : p.map((m) => {
6171
+ if (m.id !== o.annotationId) return m;
6172
+ const y = Um(m.committedArrow, o);
6173
6173
  return {
6174
- ...Fa(y, p.style, f, v),
6175
- style: p.style,
6176
- color: Ga(y, p.style, a, p.color),
6174
+ ...Fa(y, m.style, f, g),
6175
+ style: m.style,
6176
+ color: Ga(y, m.style, a, m.color),
6177
6177
  arrow: y,
6178
- committedArrow: p.committedArrow,
6179
- committedLabelBox: p.committedLabelBox,
6180
- committedLabelText: p.committedLabelText,
6181
- committedLinePath: p.linePath,
6182
- committedArrowheadPath: p.arrowheadPath,
6183
- committedLabelPosition: p.labelPosition,
6184
- committedColor: p.color,
6178
+ committedArrow: m.committedArrow,
6179
+ committedLabelBox: m.committedLabelBox,
6180
+ committedLabelText: m.committedLabelText,
6181
+ committedLinePath: m.linePath,
6182
+ committedArrowheadPath: m.arrowheadPath,
6183
+ committedLabelPosition: m.labelPosition,
6184
+ committedColor: m.color,
6185
6185
  dragging: !0,
6186
6186
  hasComparableEndpoints: qo(y.start, y.end)
6187
6187
  };
6188
6188
  }), [
6189
- m,
6189
+ p,
6190
6190
  o,
6191
6191
  f,
6192
- v,
6192
+ g,
6193
6193
  a
6194
6194
  ]);
6195
6195
  }, Fa = (e, t, r, n) => {
@@ -6309,8 +6309,8 @@ var e0 = "_15xngrw2", t0 = "_15xngrw3", r0 = "_15xngrw4", n0 = "_15xngrw5", o0 =
6309
6309
  })]
6310
6310
  });
6311
6311
  }, h0 = ({ ref: e, footerRect: t, mode: r = Ue.readonly, caption: n, showCaption: o, source: a, showSource: i, captionStyle: s, sourceStyle: d, graphyBadge: c }) => {
6312
- const { Caption: u } = Do(), h = ye[vl(r)].editTextInline ? u : null, g = o && (h !== null || n !== null), f = i && a !== null && p0(a), v = c !== null;
6313
- return !g && !f && !v ? null : /* @__PURE__ */ S("div", {
6312
+ const { Caption: u } = Do(), h = ye[vl(r)].editTextInline ? u : null, v = o && (h !== null || n !== null), f = i && a !== null && p0(a), g = c !== null;
6313
+ return !v && !f && !g ? null : /* @__PURE__ */ S("div", {
6314
6314
  ref: e,
6315
6315
  className: Km,
6316
6316
  style: {
@@ -6318,13 +6318,13 @@ var e0 = "_15xngrw2", t0 = "_15xngrw3", r0 = "_15xngrw4", n0 = "_15xngrw5", o0 =
6318
6318
  top: t.y,
6319
6319
  width: t.width
6320
6320
  },
6321
- children: [g ? h ? /* @__PURE__ */ l(h, {
6321
+ children: [v ? h ? /* @__PURE__ */ l(h, {
6322
6322
  caption: n,
6323
6323
  captionStyle: s
6324
6324
  }) : /* @__PURE__ */ l(v0, {
6325
6325
  caption: n,
6326
6326
  captionStyle: s
6327
- }) : null, (f || v) && /* @__PURE__ */ S("div", {
6327
+ }) : null, (f || g) && /* @__PURE__ */ S("div", {
6328
6328
  className: "xfz7dq1",
6329
6329
  children: [f && /* @__PURE__ */ l(g0, {
6330
6330
  source: a,
@@ -6371,15 +6371,15 @@ var e0 = "_15xngrw2", t0 = "_15xngrw3", r0 = "_15xngrw4", n0 = "_15xngrw5", o0 =
6371
6371
  }
6372
6372
  }, p0 = (e) => e.label !== void 0 && e.label !== "" || e.url !== void 0 && e.url !== "" && Kn(e.url), m0 = "_1k4qtbg0";
6373
6373
  var y0 = 22, x0 = ({ ref: e, headerRect: t, mode: r = Ue.readonly, title: n, showTitle: o, subtitle: a, showSubtitle: i, headingStyle: s, subtitleStyle: d, graphyBadge: c }) => {
6374
- const { Title: u } = Do(), h = ye[vl(r)].editTextInline ? u : null, g = h !== null, f = o && (g || n !== null), v = i && (g || a !== null), m = c !== null;
6375
- return !f && !v && !m ? null : /* @__PURE__ */ S("div", {
6374
+ const { Title: u } = Do(), h = ye[vl(r)].editTextInline ? u : null, v = h !== null, f = o && (v || n !== null), g = i && (v || a !== null), p = c !== null;
6375
+ return !f && !g && !p ? null : /* @__PURE__ */ S("div", {
6376
6376
  ref: e,
6377
- className: Kt(m0, m && "_1k4qtbg1"),
6377
+ className: Kt(m0, p && "_1k4qtbg1"),
6378
6378
  style: {
6379
6379
  left: t.x,
6380
6380
  top: t.y,
6381
6381
  width: t.width,
6382
- ...m && !f && !v ? { minHeight: y0 } : {}
6382
+ ...p && !f && !g ? { minHeight: y0 } : {}
6383
6383
  },
6384
6384
  children: [h ? /* @__PURE__ */ l(h, {
6385
6385
  title: n,
@@ -6729,7 +6729,7 @@ var J0 = "_1oj6yix2";
6729
6729
  var Z0 = 8, $0 = 16, _0 = 2, ey = ({ indexedLegends: e, containerRect: t }) => {
6730
6730
  const r = O(), n = T(Pl, r), o = T(ki, r), a = Ve(o), { placements: i, hasOverlap: s } = ty(e, t, a), d = Je(), c = Fo(), u = d || c;
6731
6731
  if (i.length === 0) return null;
6732
- const h = s ? $0 : Z0, g = h - _0, f = nt(o.dashArray, o.strokeWidth);
6732
+ const h = s ? $0 : Z0, v = h - _0, f = nt(o.dashArray, o.strokeWidth);
6733
6733
  return /* @__PURE__ */ S(Wo, {
6734
6734
  as: "div",
6735
6735
  className: q0,
@@ -6738,27 +6738,27 @@ var Z0 = 8, $0 = 16, _0 = 2, ey = ({ indexedLegends: e, containerRect: t }) => {
6738
6738
  className: "_1oj6yix1",
6739
6739
  width: t.width,
6740
6740
  height: t.height,
6741
- children: i.map((v) => /* @__PURE__ */ l(ay, {
6742
- anchorY: v.anchorY,
6743
- labelY: v.y,
6744
- endX: g,
6745
- color: v.payload.color,
6741
+ children: i.map((g) => /* @__PURE__ */ l(ay, {
6742
+ anchorY: g.anchorY,
6743
+ labelY: g.y,
6744
+ endX: v,
6745
+ color: g.payload.color,
6746
6746
  strokeWidth: o.strokeWidth,
6747
6747
  dashArray: f
6748
- }, v.payload.key))
6749
- }), i.map((v) => {
6750
- const m = ry(o, v.payload.color, n);
6748
+ }, g.payload.key))
6749
+ }), i.map((g) => {
6750
+ const p = ry(o, g.payload.color, n);
6751
6751
  return /* @__PURE__ */ l("span", {
6752
6752
  className: We(J0, u && "_1oj6yix3"),
6753
6753
  style: {
6754
- ...re(m.style),
6754
+ ...re(p.style),
6755
6755
  left: h,
6756
- top: v.y,
6757
- color: m.textColor
6756
+ top: g.y,
6757
+ color: p.textColor
6758
6758
  },
6759
- ...d ? rn(v.payload.address) : Xl(v.payload.address),
6760
- children: v.payload.label
6761
- }, v.payload.key);
6759
+ ...d ? rn(g.payload.address) : Xl(g.payload.address),
6760
+ children: g.payload.label
6761
+ }, g.payload.key);
6762
6762
  })]
6763
6763
  });
6764
6764
  }, ty = (e, t, r) => {
@@ -6767,13 +6767,13 @@ var Z0 = 8, $0 = 16, _0 = 2, ey = ({ indexedLegends: e, containerRect: t }) => {
6767
6767
  const a = [];
6768
6768
  for (const { legend: i, legendIndex: s } of e) i.items.forEach((d, c) => {
6769
6769
  if (d.normalizedY === null) return;
6770
- const u = typeof d.visual.color == "string" ? d.visual.color : void 0, h = d.layerId === void 0 ? void 0 : Mr(o, d.layerId), g = h === void 0 ? u : Ai(h, d.value, n) ?? u;
6770
+ const u = typeof d.visual.color == "string" ? d.visual.color : void 0, h = d.layerId === void 0 ? void 0 : Mr(o, d.layerId), v = h === void 0 ? u : Ai(h, d.value, n) ?? u;
6771
6771
  a.push({
6772
6772
  normalizedY: d.normalizedY,
6773
6773
  payload: {
6774
6774
  key: String(a.length),
6775
6775
  label: d.formattedLabel,
6776
- color: g,
6776
+ color: v,
6777
6777
  address: {
6778
6778
  legendIndex: s,
6779
6779
  itemIndex: c
@@ -6903,7 +6903,7 @@ var hy = "_1or78v80", vy = "_1or78v81", gy = 0.64, fy = 0.5, On = 1, py = 0.6, t
6903
6903
  right: "_1cecisi7",
6904
6904
  left: "_1cecisi8"
6905
6905
  }, Py = "_1cecisi9", Ry = "_1cecisia", Cy = ({ indexedLegend: e, vertical: t, trailing: r, stackOffset: n, maxBubbleSize: o, itemCss: a, hitTestable: i }) => {
6906
- const { legend: s, legendIndex: d } = e, { item: c } = T(rt, O()), u = or(s, o), h = u?.bubbles.at(-1), g = td({
6906
+ const { legend: s, legendIndex: d } = e, { item: c } = T(rt, O()), u = or(s, o), h = u?.bubbles.at(-1), v = td({
6907
6907
  layerId: h?.item.layerId,
6908
6908
  value: h?.item.value,
6909
6909
  size: h?.size ?? 0
@@ -6936,10 +6936,10 @@ var hy = "_1or78v80", vy = "_1or78v81", gy = 0.64, fy = 0.5, On = 1, py = 0.6, t
6936
6936
  /* @__PURE__ */ l("div", {
6937
6937
  className: uy,
6938
6938
  style: { gap: 4 },
6939
- children: u.bubbles.map(({ size: f }, v) => /* @__PURE__ */ l(rd, {
6939
+ children: u.bubbles.map(({ size: f }, g) => /* @__PURE__ */ l(rd, {
6940
6940
  size: f,
6941
- paint: g
6942
- }, v))
6941
+ paint: v
6942
+ }, g))
6943
6943
  }),
6944
6944
  /* @__PURE__ */ l("span", { children: u.maxLabel })
6945
6945
  ]
@@ -7057,10 +7057,10 @@ var cn = "\0", Gy = (e, t) => {
7057
7057
  showSymbol: !0
7058
7058
  }), /* @__PURE__ */ l("span", { children: e.formattedLabel })] });
7059
7059
  }, Vy = (e, t) => e === void 0 ? void 0 : t, ja = { [Zl]: "" }, Yy = ({ hiddenPills: e, placement: t }) => {
7060
- const r = ml(), [n, o] = J(!1), a = O(), i = T(rt, a), s = T(Mo, a), d = Je(), { openLegendOverflow: c } = ye[Oe()], u = Et([i.item.fill, s.popover.fill]), h = u(i.item.fill), g = od(i.item, h), f = jy(e.length, i.item), v = f === null ? void 0 : {
7060
+ const r = ml(), [n, o] = J(!1), a = O(), i = T(rt, a), s = T(Mo, a), d = Je(), { openLegendOverflow: c } = ye[Oe()], u = Et([i.item.fill, s.popover.fill]), h = u(i.item.fill), v = od(i.item, h), f = jy(e.length, i.item), g = f === null ? void 0 : {
7061
7061
  ...nd(i.item, h),
7062
7062
  opacity: sy * (i.item.alpha ?? 1)
7063
- }, { refs: m, floatingStyles: p } = Bi({
7063
+ }, { refs: p, floatingStyles: m } = Bi({
7064
7064
  open: n,
7065
7065
  placement: t,
7066
7066
  middleware: [
@@ -7076,7 +7076,7 @@ var cn = "\0", Gy = (e, t) => {
7076
7076
  const w = (E) => {
7077
7077
  const L = E.target;
7078
7078
  if (!L) return;
7079
- const R = m.reference.current, P = m.floating.current;
7079
+ const R = p.reference.current, P = p.floating.current;
7080
7080
  R instanceof Element && R.contains(L) || P instanceof Element && P.contains(L) || o(!1);
7081
7081
  }, k = (E) => {
7082
7082
  E.key === "Escape" && o(!1);
@@ -7086,18 +7086,18 @@ var cn = "\0", Gy = (e, t) => {
7086
7086
  };
7087
7087
  }, [
7088
7088
  n,
7089
- m.floating,
7090
- m.reference
7089
+ p.floating,
7090
+ p.reference
7091
7091
  ]);
7092
7092
  const y = t === "left" || t === "right", A = f === null ? [] : Array.from({ length: f }, (w, k) => f - k);
7093
7093
  return /* @__PURE__ */ S(M, { children: [/* @__PURE__ */ S("div", {
7094
- ref: m.setReference,
7094
+ ref: p.setReference,
7095
7095
  className: We(By, !c && "_1kjk02r2", f !== null && y && Oy[f], f !== null && !y && My[f]),
7096
7096
  ...ja,
7097
7097
  children: [f !== null && A.map((w) => /* @__PURE__ */ l("span", {
7098
7098
  className: We("_1kjk02r7", y ? Hy[f] : Ny[f]),
7099
7099
  style: {
7100
- ...v,
7100
+ ...g,
7101
7101
  ...Uy(w, y)
7102
7102
  },
7103
7103
  "aria-hidden": !0
@@ -7105,7 +7105,7 @@ var cn = "\0", Gy = (e, t) => {
7105
7105
  type: "button",
7106
7106
  className: Va,
7107
7107
  style: {
7108
- ...g,
7108
+ ...v,
7109
7109
  ...Hr({ [Iy]: s.focusStroke })
7110
7110
  },
7111
7111
  onClick: () => o((w) => !w),
@@ -7118,19 +7118,19 @@ var cn = "\0", Gy = (e, t) => {
7118
7118
  })
7119
7119
  }) : /* @__PURE__ */ l("span", {
7120
7120
  className: We(Va, Dy),
7121
- style: g,
7121
+ style: v,
7122
7122
  children: /* @__PURE__ */ S("span", {
7123
7123
  className: Ya,
7124
7124
  children: ["+", e.length]
7125
7125
  })
7126
7126
  })]
7127
7127
  }), n && /* @__PURE__ */ l("div", {
7128
- ref: m.setFloating,
7128
+ ref: p.setFloating,
7129
7129
  role: "dialog",
7130
7130
  "aria-label": r("graph.legend.hiddenItems"),
7131
7131
  className: "_1kjk02rf",
7132
7132
  style: {
7133
- ...p,
7133
+ ...m,
7134
7134
  ...Ty(s.popover, i.item, u(s.popover.fill))
7135
7135
  },
7136
7136
  ...ja,
@@ -7157,33 +7157,33 @@ var cn = "\0", Gy = (e, t) => {
7157
7157
  left: "right",
7158
7158
  right: "left"
7159
7159
  }, Qy = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }) => {
7160
- const o = qe(), a = it(), i = O(), s = T(Mo, i), d = T(rt, i), c = se(), u = B((P) => P.coordSystem.type), h = Je(), g = Fo(), f = h || g, v = b(() => Gy(t, (P) => c(P, u)?.swatchShape ?? "square"), [
7160
+ const o = qe(), a = it(), i = O(), s = T(Mo, i), d = T(rt, i), c = se(), u = B((P) => P.coordSystem.type), h = Je(), v = Fo(), f = h || v, g = b(() => Gy(t, (P) => c(P, u)?.swatchShape ?? "square"), [
7161
7161
  t,
7162
7162
  c,
7163
7163
  u
7164
- ]), m = b(() => t.filter(({ legend: P }) => jn(P)), [t]), p = e === "left" || e === "right", y = t[0]?.legend.align ?? "start", A = t.some(({ legend: P }) => P.inHeadlineRow), w = b(() => {
7165
- const P = p ? n : r;
7166
- if (v.length === 0 || P <= 0) return v.length;
7167
- const { item: I, swatch: F } = d, X = ne(I, a.fonts.familyDefault), Q = Ve(I), { inlineChrome: $, blockChrome: K } = nr(I), z = m.reduce((oe, { legend: ve }, dr) => {
7164
+ ]), p = b(() => t.filter(({ legend: P }) => jn(P)), [t]), m = e === "left" || e === "right", y = t[0]?.legend.align ?? "start", A = t.some(({ legend: P }) => P.inHeadlineRow), w = b(() => {
7165
+ const P = m ? n : r;
7166
+ if (g.length === 0 || P <= 0) return g.length;
7167
+ const { item: I, swatch: F } = d, X = ne(I, a.fonts.familyDefault), Q = Ve(I), { inlineChrome: $, blockChrome: K } = nr(I), z = p.reduce((oe, { legend: ve }, dr) => {
7168
7168
  const cr = or(ve, Ka(ve, n, I));
7169
7169
  if (cr === null) return oe;
7170
7170
  const ur = No({
7171
7171
  parts: cr,
7172
- vertical: p,
7172
+ vertical: m,
7173
7173
  textMeasurer: o,
7174
7174
  font: X,
7175
7175
  itemStyle: I
7176
- }), nn = Ua(p, v.length, dr) ? s.stackGap : s.gap;
7177
- return oe + (p ? ur.blockSize : ur.inlineSize) + nn;
7178
- }, 0), _ = (oe, ve) => ve + (ve > 0 ? I.gap : 0) + o.measureText(oe, X).width + $, q = (oe) => Math.max(Q, oe) + K, He = v.map((oe) => {
7176
+ }), nn = Ua(m, g.length, dr) ? s.stackGap : s.gap;
7177
+ return oe + (m ? ur.blockSize : ur.inlineSize) + nn;
7178
+ }, 0), _ = (oe, ve) => ve + (ve > 0 ? I.gap : 0) + o.measureText(oe, X).width + $, q = (oe) => Math.max(Q, oe) + K, He = g.map((oe) => {
7179
7179
  const ve = Bn(oe.visual, F.size, oe.hasBubbleSwatch);
7180
- return p ? q(oe.hasBubbleSwatch ? ve : F.size) : _(oe.formattedLabel, ve);
7181
- }), lr = ad(I) ? 8 : 0, Ct = (p ? q(0) : _(`+${v.length}`, 0)) + lr, dt = Math.max(0, P - z);
7180
+ return m ? q(oe.hasBubbleSwatch ? ve : F.size) : _(oe.formattedLabel, ve);
7181
+ }), lr = ad(I) ? 8 : 0, Ct = (m ? q(0) : _(`+${g.length}`, 0)) + lr, dt = Math.max(0, P - z);
7182
7182
  return Xy(He, Ct, dt, s.gap);
7183
7183
  }, [
7184
- v,
7185
- m,
7184
+ g,
7186
7185
  p,
7186
+ m,
7187
7187
  r,
7188
7188
  n,
7189
7189
  o,
@@ -7191,13 +7191,13 @@ var cn = "\0", Gy = (e, t) => {
7191
7191
  s,
7192
7192
  d
7193
7193
  ]), k = Et([d.item.fill]);
7194
- if (v.length === 0 && m.length === 0) return null;
7195
- const E = v.slice(0, w), L = v.slice(w), R = od(d.item, k(d.item.fill));
7194
+ if (g.length === 0 && p.length === 0) return null;
7195
+ const E = g.slice(0, w), L = g.slice(w), R = od(d.item, k(d.item.fill));
7196
7196
  return /* @__PURE__ */ S("div", {
7197
7197
  className: We(A ? ky : wy[y], by, {
7198
- [Sy]: p,
7199
- [Ay]: !p,
7200
- [Ey[e === "left" ? "left" : "right"]]: p
7198
+ [Sy]: m,
7199
+ [Ay]: !m,
7200
+ [Ey[e === "left" ? "left" : "right"]]: m
7201
7201
  }),
7202
7202
  style: { gap: s.gap },
7203
7203
  children: [
@@ -7214,11 +7214,11 @@ var cn = "\0", Gy = (e, t) => {
7214
7214
  hiddenPills: L,
7215
7215
  placement: Ky[e]
7216
7216
  }),
7217
- m.map((P, I) => /* @__PURE__ */ l(Cy, {
7217
+ p.map((P, I) => /* @__PURE__ */ l(Cy, {
7218
7218
  indexedLegend: P,
7219
- vertical: p,
7220
- trailing: !p && v.length > 0,
7221
- stackOffset: Ua(p, v.length, I) ? s.stackGap - s.gap : void 0,
7219
+ vertical: m,
7220
+ trailing: !m && g.length > 0,
7221
+ stackOffset: Ua(m, g.length, I) ? s.stackGap - s.gap : void 0,
7222
7222
  maxBubbleSize: Ka(P.legend, n, d.item),
7223
7223
  itemCss: R,
7224
7224
  hitTestable: f
@@ -7508,18 +7508,18 @@ var cn = "\0", Gy = (e, t) => {
7508
7508
  }, gx = (e, t, r, n, o) => {
7509
7509
  let a = null, i = null;
7510
7510
  const s = () => {
7511
- const p = e.getBoundingClientRect();
7512
- return p.width > 0 && p.height > 0 ? p : null;
7513
- }, d = (p, y) => ({
7514
- x: p.clientX - y.left,
7515
- y: p.clientY - y.top
7511
+ const m = e.getBoundingClientRect();
7512
+ return m.width > 0 && m.height > 0 ? m : null;
7513
+ }, d = (m, y) => ({
7514
+ x: m.clientX - y.left,
7515
+ y: m.clientY - y.top
7516
7516
  }), c = () => {
7517
7517
  i = null;
7518
- const p = a;
7519
- if (!p) return;
7518
+ const m = a;
7519
+ if (!m) return;
7520
7520
  const y = s();
7521
7521
  if (y === null) return;
7522
- const A = d(p, y), w = r.getState();
7522
+ const A = d(m, y), w = r.getState();
7523
7523
  if (w.suspendsHover) return;
7524
7524
  const k = Jo(A, w.pointerRegions), E = {
7525
7525
  width: y.width,
@@ -7538,32 +7538,32 @@ var cn = "\0", Gy = (e, t) => {
7538
7538
  viewport: E
7539
7539
  })), w.setTooltipAnchor(null);
7540
7540
  }, u = () => {
7541
- const p = r.getState();
7542
- p.hover.primary === null && p.tooltipAnchor === null || (p.setHoverState(wr), p.setTooltipAnchor(null));
7543
- }, h = (p) => {
7541
+ const m = r.getState();
7542
+ m.hover.primary === null && m.tooltipAnchor === null || (m.setHoverState(wr), m.setTooltipAnchor(null));
7543
+ }, h = (m) => {
7544
7544
  const y = r.getState();
7545
7545
  if (y.pointerRegions.length === 0) return !1;
7546
7546
  const A = s();
7547
- return A === null ? !1 : Jo(d(p, A), y.pointerRegions) !== null;
7548
- }, g = (p) => {
7549
- r.getState().suspendsHover || h(p) || (document.removeEventListener("pointermove", g), u());
7550
- }, f = (p) => {
7551
- document.removeEventListener("pointermove", g), a = p, i === null && (i = requestAnimationFrame(c));
7552
- }, v = (p) => {
7547
+ return A === null ? !1 : Jo(d(m, A), y.pointerRegions) !== null;
7548
+ }, v = (m) => {
7549
+ r.getState().suspendsHover || h(m) || (document.removeEventListener("pointermove", v), u());
7550
+ }, f = (m) => {
7551
+ document.removeEventListener("pointermove", v), a = m, i === null && (i = requestAnimationFrame(c));
7552
+ }, g = (m) => {
7553
7553
  if (a = null, i !== null && (cancelAnimationFrame(i), i = null), !r.getState().suspendsHover) {
7554
- if (h(p)) {
7555
- document.addEventListener("pointermove", g);
7554
+ if (h(m)) {
7555
+ document.addEventListener("pointermove", v);
7556
7556
  return;
7557
7557
  }
7558
7558
  u();
7559
7559
  }
7560
7560
  };
7561
- e.addEventListener("pointermove", f), e.addEventListener("pointerleave", v);
7562
- const m = n.subscribe((p, y) => {
7563
- p.scene === y.scene || a === null || i !== null || (i = requestAnimationFrame(c));
7561
+ e.addEventListener("pointermove", f), e.addEventListener("pointerleave", g);
7562
+ const p = n.subscribe((m, y) => {
7563
+ m.scene === y.scene || a === null || i !== null || (i = requestAnimationFrame(c));
7564
7564
  });
7565
7565
  return () => {
7566
- e.removeEventListener("pointermove", f), e.removeEventListener("pointerleave", v), document.removeEventListener("pointermove", g), m(), i !== null && cancelAnimationFrame(i), a = null;
7566
+ e.removeEventListener("pointermove", f), e.removeEventListener("pointerleave", g), document.removeEventListener("pointermove", v), p(), i !== null && cancelAnimationFrame(i), a = null;
7567
7567
  };
7568
7568
  }, fx = ({ panelRect: e }) => {
7569
7569
  const { engine: t, store: r, overlayRef: n } = st(), o = Te((h) => h.caret !== null), { trackHover: a, showMenuTriggerOnHover: i } = ye[Oe()], s = Te((h) => h.standingInteraction?.kind === "box-draw"), d = ar() !== null, c = Te(Hm), u = i ? "copy" : void 0;
@@ -8002,8 +8002,8 @@ var cn = "\0", Gy = (e, t) => {
8002
8002
  return r.length === 0 ? null : /* @__PURE__ */ l("g", {
8003
8003
  transform: `translate(${e.x}, ${e.y})`,
8004
8004
  "data-testid": "difference-arrows",
8005
- children: r.map(({ color: i, style: s, id: d, linePath: c, arrowheadPath: u, labelPosition: h, labelBox: g, labelText: f, dragging: v, hasComparableEndpoints: m, committedLinePath: p, committedArrowheadPath: y, committedLabelPosition: A, committedLabelBox: w, committedLabelText: k, committedColor: E }) => {
8006
- const L = n === d && !a.has(d), R = v && !m, P = R ? x.alert : i, I = L && !R ? zx(P) : P, F = v && p !== void 0 && y !== void 0 && A !== void 0 && E !== void 0;
8005
+ children: r.map(({ color: i, style: s, id: d, linePath: c, arrowheadPath: u, labelPosition: h, labelBox: v, labelText: f, dragging: g, hasComparableEndpoints: p, committedLinePath: m, committedArrowheadPath: y, committedLabelPosition: A, committedLabelBox: w, committedLabelText: k, committedColor: E }) => {
8006
+ const L = n === d && !a.has(d), R = g && !p, P = R ? x.alert : i, I = L && !R ? zx(P) : P, F = g && m !== void 0 && y !== void 0 && A !== void 0 && E !== void 0;
8007
8007
  return /* @__PURE__ */ S("g", {
8008
8008
  className: n === d ? Gx : void 0,
8009
8009
  "data-warning": R || void 0,
@@ -8012,7 +8012,7 @@ var cn = "\0", Gy = (e, t) => {
8012
8012
  id: d
8013
8013
  }),
8014
8014
  children: [F && /* @__PURE__ */ S(M, { children: [/* @__PURE__ */ l(hn, {
8015
- linePath: p,
8015
+ linePath: m,
8016
8016
  arrowheadPath: y,
8017
8017
  stroke: E,
8018
8018
  strokeWidth: s.strokeWidth,
@@ -8025,7 +8025,7 @@ var cn = "\0", Gy = (e, t) => {
8025
8025
  label: s.label,
8026
8026
  arrowColor: E,
8027
8027
  addressable: !1
8028
- })] }), v ? /* @__PURE__ */ S("g", {
8028
+ })] }), g ? /* @__PURE__ */ S("g", {
8029
8029
  "data-preview": "true",
8030
8030
  children: [/* @__PURE__ */ l(hn, {
8031
8031
  linePath: c,
@@ -8038,7 +8038,7 @@ var cn = "\0", Gy = (e, t) => {
8038
8038
  x: h.x,
8039
8039
  y: h.y,
8040
8040
  text: f,
8041
- box: g,
8041
+ box: v,
8042
8042
  label: s.label,
8043
8043
  arrowColor: I,
8044
8044
  addressable: t
@@ -8053,7 +8053,7 @@ var cn = "\0", Gy = (e, t) => {
8053
8053
  x: h.x,
8054
8054
  y: h.y,
8055
8055
  text: f,
8056
- box: g,
8056
+ box: v,
8057
8057
  label: s.label,
8058
8058
  arrowColor: I,
8059
8059
  addressable: t
@@ -8269,10 +8269,10 @@ function ib(e) {
8269
8269
  numberFormat: o.numberFormat,
8270
8270
  locale: a
8271
8271
  }), [o.numberFormat, a]), s = b(() => (d, c, u) => {
8272
- const h = mn(n, d === "pinnedNumber" ? "pinnedNumber" : "comment", c).label, g = ne(h, Kr), f = sb(t, d, u, g), v = t.measureText(f, g), m = d === "pinnedNumber" ? 15 : 0;
8272
+ const h = mn(n, d === "pinnedNumber" ? "pinnedNumber" : "comment", c).label, v = ne(h, Kr), f = sb(t, d, u, v), g = t.measureText(f, v), p = d === "pinnedNumber" ? 15 : 0;
8273
8273
  return {
8274
- width: v.width + m + (h.paddingInline + h.strokeWidth) * 2,
8275
- height: Math.max(v.height, 10) + (h.paddingBlock + h.strokeWidth) * 2,
8274
+ width: g.width + p + (h.paddingInline + h.strokeWidth) * 2,
8275
+ height: Math.max(g.height, 10) + (h.paddingBlock + h.strokeWidth) * 2,
8276
8276
  text: f
8277
8277
  };
8278
8278
  }, [t, n]);
@@ -8293,34 +8293,34 @@ function ib(e) {
8293
8293
  ]);
8294
8294
  }
8295
8295
  var sb = (e, t, r, n) => t !== "comment" ? r : Ti(r, 140, (o) => e.measureText(o, n).width), $a = "callouts", lb = ({ panelRect: e }) => {
8296
- const { pinnedNumbers: t, comments: r } = B(he((v) => ({
8297
- pinnedNumbers: v.annotations.pinnedNumbers,
8298
- comments: v.annotations.comments
8299
- }))), n = B((v) => v.coordSystem), o = se(), a = Ou(10), i = O(), s = ib(e), { store: d } = st(), c = b(() => {
8300
- const v = /* @__PURE__ */ new Map();
8301
- for (const m of t) v.set(m.id, m.at);
8302
- for (const m of r) v.set(m.id, m.at);
8303
- return v;
8296
+ const { pinnedNumbers: t, comments: r } = B(he((g) => ({
8297
+ pinnedNumbers: g.annotations.pinnedNumbers,
8298
+ comments: g.annotations.comments
8299
+ }))), n = B((g) => g.coordSystem), o = se(), a = Ou(10), i = O(), s = ib(e), { store: d } = st(), c = b(() => {
8300
+ const g = /* @__PURE__ */ new Map();
8301
+ for (const p of t) g.set(p.id, p.at);
8302
+ for (const p of r) g.set(p.id, p.at);
8303
+ return g;
8304
8304
  }, [t, r]), u = b(() => {
8305
- const v = /* @__PURE__ */ new Map();
8306
- for (const [m, p] of c) v.set(m, a(p));
8307
- return v;
8305
+ const g = /* @__PURE__ */ new Map();
8306
+ for (const [p, m] of c) g.set(p, a(m));
8307
+ return g;
8308
8308
  }, [c, a]), h = b(() => {
8309
- const v = /* @__PURE__ */ new Map();
8310
- for (const m of t) v.set(m.id, mn(i, "pinnedNumber", m.id));
8311
- for (const m of r) v.set(m.id, mn(i, "comment", m.id));
8312
- return v;
8309
+ const g = /* @__PURE__ */ new Map();
8310
+ for (const p of t) g.set(p.id, mn(i, "pinnedNumber", p.id));
8311
+ for (const p of r) g.set(p.id, mn(i, "comment", p.id));
8312
+ return g;
8313
8313
  }, [
8314
8314
  t,
8315
8315
  r,
8316
8316
  i
8317
- ]), g = b(() => Qd(s, e), [s, e]), f = Et([...h.values()].map((v) => v.label.fill));
8317
+ ]), v = b(() => Qd(s, e), [s, e]), f = Et([...h.values()].map((g) => g.label.fill));
8318
8318
  return W(() => {
8319
- const v = d.getState();
8320
- return v.publishPointerRegions($a, g), () => {
8321
- v.publishPointerRegions($a, []);
8319
+ const g = d.getState();
8320
+ return g.publishPointerRegions($a, v), () => {
8321
+ g.publishPointerRegions($a, []);
8322
8322
  };
8323
- }, [d, g]), t.length === 0 && r.length === 0 ? null : /* @__PURE__ */ l("svg", {
8323
+ }, [d, v]), t.length === 0 && r.length === 0 ? null : /* @__PURE__ */ l("svg", {
8324
8324
  x: e.x,
8325
8325
  y: e.y,
8326
8326
  width: e.width,
@@ -8328,27 +8328,27 @@ var sb = (e, t, r, n) => t !== "comment" ? r : Ti(r, 140, (o) => e.measureText(o
8328
8328
  overflow: "visible",
8329
8329
  className: nb,
8330
8330
  "data-testid": "callouts",
8331
- children: s.map((v) => {
8332
- if (!v.inView) return null;
8333
- const m = c.get(v.id), p = h.get(v.id);
8334
- if (m === void 0 || p === void 0) return null;
8335
- const y = u.get(v.id), A = y?.color, w = v.miniRect.width <= e.width && v.miniRect.height <= e.height;
8331
+ children: s.map((g) => {
8332
+ if (!g.inView) return null;
8333
+ const p = c.get(g.id), m = h.get(g.id);
8334
+ if (p === void 0 || m === void 0) return null;
8335
+ const y = u.get(g.id), A = y?.color, w = g.miniRect.width <= e.width && g.miniRect.height <= e.height;
8336
8336
  return /* @__PURE__ */ S("g", {
8337
- "data-testid": v.kind,
8338
- "data-annotation-id": v.id,
8337
+ "data-testid": g.kind,
8338
+ "data-annotation-id": g.id,
8339
8339
  children: [/* @__PURE__ */ l("foreignObject", {
8340
- x: v.miniRect.x,
8341
- y: v.miniRect.y,
8342
- width: v.miniRect.width,
8343
- height: v.miniRect.height,
8340
+ x: g.miniRect.x,
8341
+ y: g.miniRect.y,
8342
+ width: g.miniRect.width,
8343
+ height: g.miniRect.height,
8344
8344
  overflow: "visible",
8345
8345
  children: /* @__PURE__ */ S("div", {
8346
8346
  className: w ? Za.hittable : Za.inert,
8347
- style: ub(p.label, f(p.label.fill)),
8348
- children: [v.kind === "pinnedNumber" && /* @__PURE__ */ l("span", {
8347
+ style: ub(m.label, f(m.label.fill)),
8348
+ children: [g.kind === "pinnedNumber" && /* @__PURE__ */ l("span", {
8349
8349
  className: "ph8bdc1",
8350
8350
  children: /* @__PURE__ */ l(tr, {
8351
- shape: o(m.geom, n.type)?.swatchShape ?? "square",
8351
+ shape: o(p.geom, n.type)?.swatchShape ?? "square",
8352
8352
  surface: "callout",
8353
8353
  color: A ?? "currentColor",
8354
8354
  paint: y?.fill,
@@ -8361,17 +8361,17 @@ var sb = (e, t, r, n) => t !== "comment" ? r : Ti(r, 140, (o) => e.measureText(o
8361
8361
  })
8362
8362
  }), /* @__PURE__ */ l("span", {
8363
8363
  className: ob,
8364
- style: hb(p.label),
8365
- children: v.text
8364
+ style: hb(m.label),
8365
+ children: g.text
8366
8366
  })]
8367
8367
  })
8368
8368
  }), /* @__PURE__ */ l(ab, {
8369
- cx: v.anchorPx.x,
8370
- cy: v.anchorPx.y,
8371
- color: db(p.marker, A),
8372
- style: p.marker
8369
+ cx: g.anchorPx.x,
8370
+ cy: g.anchorPx.y,
8371
+ color: db(m.marker, A),
8372
+ style: m.marker
8373
8373
  })]
8374
- }, v.id);
8374
+ }, g.id);
8375
8375
  })
8376
8376
  });
8377
8377
  }, db = (e, t) => e.hasAuthoredFill ? Y(e.fill) : t ?? Y(e.fill), cb = (e) => e.hasAuthoredTextColor ? e.textColor : bt(e.textColor, Y(e.fill)), ub = (e, t) => ({
@@ -8415,25 +8415,25 @@ var sb = (e, t, r, n) => t !== "comment" ? r : Ti(r, 140, (o) => e.measureText(o
8415
8415
  height: o.height
8416
8416
  });
8417
8417
  }, fb = "_1agclyl0", pb = "_1agclyl1", mb = "_1agclyl2", fd = ({ x: e, y: t, width: r, height: n, text: o, rotated: a, labelRole: i, position: s, coordType: d, backdropColor: c }) => {
8418
- const u = O(), h = T(en, u), g = T(Pl, u), f = a ? `rotate(-90 ${e} ${t})` : void 0, v = h[i][s], m = Sb(i, s, d, v), p = Ab(v, m, c, g), y = p.stroke !== void 0 && (p.strokeWidth ?? 0) > 0, A = bb(p, m, c, g), w = {
8418
+ const u = O(), h = T(en, u), v = T(Pl, u), f = a ? `rotate(-90 ${e} ${t})` : void 0, g = h[i][s], p = Sb(i, s, d, g), m = Ab(g, p, c, v), y = m.stroke !== void 0 && (m.strokeWidth ?? 0) > 0, A = bb(m, p, c, v), w = {
8419
8419
  x: e - r / 2,
8420
8420
  y: t - n / 2,
8421
8421
  width: r,
8422
8422
  height: n
8423
- }, k = $r(p.cornerRadius), E = p.shadow === void 0 ? void 0 : ot(p.shadow), L = {
8423
+ }, k = $r(m.cornerRadius), E = m.shadow === void 0 ? void 0 : ot(m.shadow), L = {
8424
8424
  className: pb,
8425
- fill: p.fill === void 0 ? void 0 : Y(p.fill),
8425
+ fill: m.fill === void 0 ? void 0 : Y(m.fill),
8426
8426
  style: E === void 0 ? void 0 : { filter: E },
8427
8427
  ...y ? {
8428
- stroke: p.stroke,
8429
- strokeWidth: p.strokeWidth
8428
+ stroke: m.stroke,
8429
+ strokeWidth: m.strokeWidth
8430
8430
  } : {}
8431
8431
  };
8432
8432
  return /* @__PURE__ */ S("g", {
8433
8433
  transform: f,
8434
- opacity: p.alpha,
8435
- children: [m && (k === null ? /* @__PURE__ */ l("path", {
8436
- d: Lo(w, p.cornerRadius),
8434
+ opacity: m.alpha,
8435
+ children: [p && (k === null ? /* @__PURE__ */ l("path", {
8436
+ d: Lo(w, m.cornerRadius),
8437
8437
  ...L
8438
8438
  }) : /* @__PURE__ */ l("rect", {
8439
8439
  ...w,
@@ -8443,16 +8443,16 @@ var sb = (e, t, r, n) => t !== "comment" ? r : Ti(r, 140, (o) => e.measureText(o
8443
8443
  })), /* @__PURE__ */ l("text", {
8444
8444
  className: mb,
8445
8445
  style: {
8446
- ...Pt(p),
8447
- ...Jr(p),
8448
- fill: c === void 0 ? xb(p) : yb(p, A)
8446
+ ...Pt(m),
8447
+ ...Jr(m),
8448
+ fill: c === void 0 ? xb(m) : yb(m, A)
8449
8449
  },
8450
- ...qr(p),
8450
+ ...qr(m),
8451
8451
  x: e,
8452
8452
  y: t,
8453
8453
  textAnchor: "middle",
8454
8454
  dominantBaseline: "central",
8455
- children: Xt(o, p.textTransform)
8455
+ children: Xt(o, m.textTransform)
8456
8456
  })]
8457
8457
  });
8458
8458
  }, yb = (e, t) => e.hasAuthoredTextColor || t === void 0 ? e.textColor : e.hasThemedTextColor ? bt(e.textColor, t) : Qn(t), xb = (e) => {
@@ -8477,65 +8477,68 @@ var sb = (e, t, r, n) => t !== "comment" ? r : Ti(r, 140, (o) => e.measureText(o
8477
8477
  }, md = (e) => {
8478
8478
  if (!(e.textOutlineColor === void 0 || (e.textOutlineWidth ?? 0) <= 0))
8479
8479
  return Ke(void 0, e.textOutlineColor);
8480
- }, Sb = (e, t, r, n) => n.fill === void 0 ? !1 : e === "aggregate" || r === "cartesian" || t === "inside", wb = ({ panelRect: e, formattingLocale: t, plotBottomY: r, hasReservedFooterSpace: n }) => {
8481
- const o = qe(), a = it(), i = B(he((v) => ({
8482
- layers: v.layers,
8483
- coordSystem: v.coordSystem,
8484
- axes: v.guides.axes,
8485
- numberFormat: v.config.numberFormat,
8486
- parsingLocale: v.config.parsingLocale
8487
- }))), s = O(), d = oo(), c = T(en, s), u = b(() => Rl({
8488
- textMeasurer: o,
8489
- dataLabelStyles: c,
8490
- familyDefault: a.fonts.familyDefault
8480
+ }, Sb = (e, t, r, n) => n.fill === void 0 ? !1 : e === "aggregate" || r === "cartesian" || t === "inside", wb = ({ panelRect: e, formattingLocale: t, plotBottomY: r, hasReservedFooterSpace: n, hidePinnedCellLabels: o }) => {
8481
+ const a = qe(), i = it(), s = B(he((p) => ({
8482
+ layers: p.layers,
8483
+ coordSystem: p.coordSystem,
8484
+ axes: p.guides.axes,
8485
+ numberFormat: p.config.numberFormat,
8486
+ parsingLocale: p.config.parsingLocale,
8487
+ pinnedNumbers: p.annotations.pinnedNumbers
8488
+ }))), d = O(), c = oo(), u = T(en, d), h = b(() => Rl({
8489
+ textMeasurer: a,
8490
+ dataLabelStyles: u,
8491
+ familyDefault: i.fonts.familyDefault
8491
8492
  }), [
8492
- o,
8493
- c,
8494
- a.fonts.familyDefault
8495
- ]), h = b(() => Xd({
8496
- ...i,
8493
+ a,
8494
+ u,
8495
+ i.fonts.familyDefault
8496
+ ]), v = b(() => Xd({
8497
+ ...s,
8498
+ pinnedNumbers: o ? s.pinnedNumbers : [],
8497
8499
  panelRect: e,
8498
- measureDataLabel: u,
8499
- readers: s,
8500
+ measureDataLabel: h,
8501
+ readers: d,
8500
8502
  formattingLocale: t,
8501
8503
  plotBottomY: r,
8502
8504
  hasReservedFooterSpace: n,
8503
- resolvePlacement: d
8505
+ resolvePlacement: c
8504
8506
  }), [
8505
- i,
8506
- e,
8507
- u,
8508
8507
  s,
8508
+ o,
8509
+ e,
8510
+ h,
8511
+ d,
8509
8512
  t,
8510
8513
  r,
8511
8514
  n,
8512
- d
8513
- ]), g = D("");
8515
+ c
8516
+ ]), f = D("");
8514
8517
  W(() => {
8515
- if (h.warnings.length === 0) {
8516
- g.current = "";
8518
+ if (v.warnings.length === 0) {
8519
+ f.current = "";
8517
8520
  return;
8518
8521
  }
8519
- const v = JSON.stringify(h.warnings);
8520
- v !== g.current && (g.current = v, ku(h.warnings));
8521
- }, [h.warnings]);
8522
- const f = h.labels.map((v, m) => /* @__PURE__ */ l(fd, {
8523
- x: v.x,
8524
- y: v.y,
8525
- width: v.width,
8526
- height: v.height,
8527
- text: v.text,
8528
- rotated: v.rotated,
8529
- labelRole: v.role,
8530
- position: v.position,
8531
- coordType: i.coordSystem.type,
8532
- backdropColor: v.backdropColor
8533
- }, `${v.layerId}:${m}`));
8522
+ const p = JSON.stringify(v.warnings);
8523
+ p !== f.current && (f.current = p, ku(v.warnings));
8524
+ }, [v.warnings]);
8525
+ const g = v.labels.map((p, m) => /* @__PURE__ */ l(fd, {
8526
+ x: p.x,
8527
+ y: p.y,
8528
+ width: p.width,
8529
+ height: p.height,
8530
+ text: p.text,
8531
+ rotated: p.rotated,
8532
+ labelRole: p.role,
8533
+ position: p.position,
8534
+ coordType: s.coordSystem.type,
8535
+ backdropColor: p.backdropColor
8536
+ }, `${p.layerId}:${m}`));
8534
8537
  return /* @__PURE__ */ l(Wo, {
8535
8538
  className: fb,
8536
8539
  transform: `translate(${e.x}, ${e.y})`,
8537
8540
  "data-testid": "data-labels",
8538
- children: f
8541
+ children: g
8539
8542
  });
8540
8543
  }, kb = ({ edge: e, position: t, labelRotation: r, offset: n, axisSize: o }) => {
8541
8544
  if (r !== 0 && (e === "top" || e === "bottom")) {
@@ -8783,13 +8786,13 @@ var sb = (e, t, r, n) => t !== "comment" ? r : Ti(r, 140, (o) => e.measureText(o
8783
8786
  height: t.height,
8784
8787
  style: { overflow: "visible" },
8785
8788
  ...tn("axis"),
8786
- children: [!1, e.ticks.map((h, g) => {
8787
- const f = h.formattedLabel, v = Db(e.position, h.position, t, i.length), m = s && f !== "";
8789
+ children: [!1, e.ticks.map((h, v) => {
8790
+ const f = h.formattedLabel, g = Db(e.position, h.position, t, i.length), p = s && f !== "";
8788
8791
  return /* @__PURE__ */ S("g", {
8789
- ...m ? Go(e.scaledAesthetic, g) : void 0,
8790
- cursor: m ? "pointer" : void 0,
8792
+ ...p ? Go(e.scaledAesthetic, v) : void 0,
8793
+ cursor: p ? "pointer" : void 0,
8791
8794
  children: [e.showTicks && /* @__PURE__ */ l("line", {
8792
- ...v,
8795
+ ...g,
8793
8796
  stroke: i.stroke,
8794
8797
  strokeWidth: i.strokeWidth,
8795
8798
  strokeDasharray: nt(i.dashArray, i.strokeWidth),
@@ -8801,10 +8804,10 @@ var sb = (e, t, r, n) => t !== "comment" ? r : Ti(r, 140, (o) => e.measureText(o
8801
8804
  label: f,
8802
8805
  tickLabelStyle: a,
8803
8806
  axisSize: d,
8804
- stepPx: u?.[g],
8805
- hitTestable: m
8807
+ stepPx: u?.[v],
8808
+ hitTestable: p
8806
8809
  })]
8807
- }, g);
8810
+ }, v);
8808
8811
  })]
8809
8812
  });
8810
8813
  }, Db = (e, t, r, n) => {
@@ -8975,13 +8978,13 @@ var sb = (e, t, r, n) => t !== "comment" ? r : Ti(r, 140, (o) => e.measureText(o
8975
8978
  if (u.geometry !== "linear" || !u.showGrid) return null;
8976
8979
  const h = Le(u.scaledAesthetic) === "x" ? i : s;
8977
8980
  if (h.strokeWidth <= 0) return null;
8978
- const g = u.position === "bottom" || u.position === "top", f = ji(h.dashArray, h.strokeWidth), v = nt(h.dashArray, f);
8979
- return /* @__PURE__ */ l("g", { children: u.ticks.map((m, p) => {
8980
- const y = Ub(g, m.position);
8981
+ const v = u.position === "bottom" || u.position === "top", f = ji(h.dashArray, h.strokeWidth), g = nt(h.dashArray, f);
8982
+ return /* @__PURE__ */ l("g", { children: u.ticks.map((p, m) => {
8983
+ const y = Ub(v, p.position);
8981
8984
  if (y !== null && t[y] > 0) return null;
8982
- const { position: A } = m;
8985
+ const { position: A } = p;
8983
8986
  let w;
8984
- if (g) {
8987
+ if (v) {
8985
8988
  const E = A * n.width + d;
8986
8989
  w = {
8987
8990
  x1: E,
@@ -9001,7 +9004,7 @@ var sb = (e, t, r, n) => t !== "comment" ? r : Ti(r, 140, (o) => e.measureText(o
9001
9004
  const k = /* @__PURE__ */ l("line", {
9002
9005
  ...w,
9003
9006
  ...yd,
9004
- strokeDasharray: v,
9007
+ strokeDasharray: g,
9005
9008
  strokeWidth: f,
9006
9009
  stroke: h.stroke
9007
9010
  });
@@ -9014,7 +9017,7 @@ var sb = (e, t, r, n) => t !== "comment" ? r : Ti(r, 140, (o) => e.measureText(o
9014
9017
  pointerEvents: "stroke",
9015
9018
  "data-testid": "grid-line-hit-area"
9016
9019
  })]
9017
- }, p) : /* @__PURE__ */ l(ro, { children: k }, p);
9020
+ }, m) : /* @__PURE__ */ l(ro, { children: k }, m);
9018
9021
  }) }, u.scaledAesthetic);
9019
9022
  })
9020
9023
  });
@@ -9037,7 +9040,7 @@ var bd = (e, t) => {
9037
9040
  }, Kb = 16, Qb = ({ formattedAxes: e, panelRect: t }) => {
9038
9041
  const r = T(Bo, O()), n = Je(), o = Fo(), a = bd(t, e);
9039
9042
  if (!a) return null;
9040
- const { circle: i, circularAxis: s, radialAxis: d, startAngle: c, angleFor: u, radiusNormFor: h } = a, g = Xb(d, h, i.radius), f = (v) => r(Le(v.scaledAesthetic));
9043
+ const { circle: i, circularAxis: s, radialAxis: d, startAngle: c, angleFor: u, radiusNormFor: h } = a, v = Xb(d, h, i.radius), f = (g) => r(Le(g.scaledAesthetic));
9041
9044
  return /* @__PURE__ */ S("svg", {
9042
9045
  x: t.x,
9043
9046
  y: t.y,
@@ -9045,26 +9048,26 @@ var bd = (e, t) => {
9045
9048
  height: t.height,
9046
9049
  overflow: "visible",
9047
9050
  "data-testid": "polar-axis-ticks",
9048
- children: [d?.visible && g.map(({ tick: v, tickIndex: m, radiusNorm: p }) => /* @__PURE__ */ l(ei, {
9051
+ children: [d?.visible && v.map(({ tick: g, tickIndex: p, radiusNorm: m }) => /* @__PURE__ */ l(ei, {
9049
9052
  scaledAesthetic: d.scaledAesthetic,
9050
- tickIndex: m,
9051
- placement: ti(Ae(c, p, i), "middle"),
9052
- label: v.formattedLabel,
9053
+ tickIndex: p,
9054
+ placement: ti(Ae(c, m, i), "middle"),
9055
+ label: g.formattedLabel,
9053
9056
  labelStyle: f(d),
9054
9057
  guidesTakePress: n,
9055
9058
  labelsTakePointer: o
9056
- }, `radial-label-${m}`)), s.visible && s.ticks.map((v, m) => {
9057
- if (v.position >= 1 - 1e-9) return null;
9058
- const p = u(v.position), y = Ae(p, (i.radius + zd) / i.radius, i);
9059
+ }, `radial-label-${p}`)), s.visible && s.ticks.map((g, p) => {
9060
+ if (g.position >= 1 - 1e-9) return null;
9061
+ const m = u(g.position), y = Ae(m, (i.radius + zd) / i.radius, i);
9059
9062
  return /* @__PURE__ */ l(ei, {
9060
9063
  scaledAesthetic: s.scaledAesthetic,
9061
- tickIndex: m,
9062
- placement: ti(y, qb(p)),
9063
- label: v.formattedLabel,
9064
+ tickIndex: p,
9065
+ placement: ti(y, qb(m)),
9066
+ label: g.formattedLabel,
9064
9067
  labelStyle: f(s),
9065
9068
  guidesTakePress: n,
9066
9069
  labelsTakePointer: o
9067
- }, `tick-label-${m}`);
9070
+ }, `tick-label-${p}`);
9068
9071
  })]
9069
9072
  });
9070
9073
  }, ei = ({ scaledAesthetic: e, tickIndex: t, placement: r, label: n, labelStyle: o, guidesTakePress: a, labelsTakePointer: i }) => {
@@ -9107,7 +9110,7 @@ var bd = (e, t) => {
9107
9110
  }, Jb = ({ formattedAxes: e, panelRect: t }) => {
9108
9111
  const r = O(), n = Je(), o = T(Ir, r, "y"), a = T(Ir, r, "x"), i = bd(t, e);
9109
9112
  if (!i) return null;
9110
- const { circle: s, circularAxis: d, radialAxis: c, innerRadius: u, angleFor: h, radiusNormFor: g } = i;
9113
+ const { circle: s, circularAxis: d, radialAxis: c, innerRadius: u, angleFor: h, radiusNormFor: v } = i;
9111
9114
  return /* @__PURE__ */ S("svg", {
9112
9115
  x: t.x,
9113
9116
  y: t.y,
@@ -9116,20 +9119,20 @@ var bd = (e, t) => {
9116
9119
  overflow: "visible",
9117
9120
  "data-testid": "polar-grid",
9118
9121
  children: [
9119
- c?.showGrid && c.ticks.map((f, v) => {
9120
- const m = g(f.position) * s.radius;
9121
- return m <= 0 || f.position >= 1 ? null : /* @__PURE__ */ l(gn, {
9122
+ c?.showGrid && c.ticks.map((f, g) => {
9123
+ const p = v(f.position) * s.radius;
9124
+ return p <= 0 || f.position >= 1 ? null : /* @__PURE__ */ l(gn, {
9122
9125
  axis: Le(c.scaledAesthetic),
9123
9126
  lineStyle: o,
9124
9127
  hitTestable: n,
9125
- draw: (p) => /* @__PURE__ */ l("circle", {
9128
+ draw: (m) => /* @__PURE__ */ l("circle", {
9126
9129
  cx: s.centerX,
9127
9130
  cy: s.centerY,
9128
- r: m,
9131
+ r: p,
9129
9132
  fill: "none",
9130
- ...p
9133
+ ...m
9131
9134
  })
9132
- }, `ring-${v}`);
9135
+ }, `ring-${g}`);
9133
9136
  }),
9134
9137
  c?.showGrid && /* @__PURE__ */ l(gn, {
9135
9138
  axis: Le(c.scaledAesthetic),
@@ -9143,21 +9146,21 @@ var bd = (e, t) => {
9143
9146
  ...f
9144
9147
  })
9145
9148
  }),
9146
- d.showGrid && d.ticks.map((f, v) => {
9149
+ d.showGrid && d.ticks.map((f, g) => {
9147
9150
  if (f.position >= 1 - 1e-9) return null;
9148
- const m = h(f.position), p = Ae(m, u, s), y = Ae(m, 1, s);
9151
+ const p = h(f.position), m = Ae(p, u, s), y = Ae(p, 1, s);
9149
9152
  return /* @__PURE__ */ l(gn, {
9150
9153
  axis: Le(d.scaledAesthetic),
9151
9154
  lineStyle: a,
9152
9155
  hitTestable: n,
9153
9156
  draw: (A) => /* @__PURE__ */ l("line", {
9154
- x1: p.x,
9155
- y1: p.y,
9157
+ x1: m.x,
9158
+ y1: m.y,
9156
9159
  x2: y.x,
9157
9160
  y2: y.y,
9158
9161
  ...A
9159
9162
  })
9160
- }, `spoke-${v}`);
9163
+ }, `spoke-${g}`);
9161
9164
  })
9162
9165
  ]
9163
9166
  });
@@ -9271,7 +9274,7 @@ var eA = 4, tA = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
9271
9274
  t,
9272
9275
  o,
9273
9276
  n
9274
- ]), { colorScheme: d } = Z(), c = G(t), u = O(), h = b(() => yc(t), [t]), g = b(() => vc({
9277
+ ]), { colorScheme: d } = Z(), c = G(t), u = O(), h = b(() => yc(t), [t]), v = b(() => vc({
9275
9278
  layer: t,
9276
9279
  numberFormat: i,
9277
9280
  locale: a
@@ -9279,31 +9282,31 @@ var eA = 4, tA = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
9279
9282
  i,
9280
9283
  t,
9281
9284
  a
9282
- ]), { fonts: f } = it(), v = T(en, O());
9285
+ ]), { fonts: f } = it(), g = T(en, O());
9283
9286
  if (e === null || r === null && s.length === 0) return null;
9284
- const m = Zr(e.render);
9285
- let p = null;
9286
- if (r && !m.live) {
9287
+ const p = Zr(e.render);
9288
+ let m = null;
9289
+ if (r && !p.live) {
9287
9290
  const y = /* @__PURE__ */ l(rA, {
9288
9291
  renderer: e,
9289
- paint: e.renderHighlight ?? m.fn,
9292
+ paint: e.renderHighlight ?? p.fn,
9290
9293
  layer: t,
9291
9294
  matchedLayer: r,
9292
9295
  coordSystem: o,
9293
9296
  formattingLocale: a,
9294
9297
  colorScheme: d
9295
9298
  });
9296
- p = e.renderHighlight === void 0 ? y : /* @__PURE__ */ l(Sn, { children: y });
9299
+ m = e.renderHighlight === void 0 ? y : /* @__PURE__ */ l(Sn, { children: y });
9297
9300
  }
9298
- return /* @__PURE__ */ S(Wo, { children: [p, s.map(({ observation: y, observationIndex: A, anchor: w }) => /* @__PURE__ */ l(oA, {
9301
+ return /* @__PURE__ */ S(Wo, { children: [m, s.map(({ observation: y, observationIndex: A, anchor: w }) => /* @__PURE__ */ l(oA, {
9299
9302
  observation: y,
9300
9303
  anchor: w,
9301
9304
  fill: Nr(u, t, y) ?? Dn,
9302
9305
  symbol: c.get("symbol", y) ?? "circle",
9303
9306
  dotRadius: (c.get("size", y) ?? xt) / 2,
9304
9307
  readSegmentY: h,
9305
- formatYValue: g,
9306
- labelStyle: v.observation.outside,
9308
+ formatYValue: v,
9309
+ labelStyle: g.observation.outside,
9307
9310
  familyDefault: f.familyDefault
9308
9311
  }, aA(y, A)))] });
9309
9312
  }, rA = ({ layer: e, ...t }) => {
@@ -9335,15 +9338,15 @@ var eA = 4, tA = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
9335
9338
  })
9336
9339
  });
9337
9340
  }, oA = ({ observation: e, anchor: t, fill: r, symbol: n, dotRadius: o, readSegmentY: a, formatYValue: i, labelStyle: s, familyDefault: d }) => {
9338
- const c = qe(), u = ke(), h = a(e) ?? null, g = h !== null ? i(h, e) : null, f = b(() => {
9339
- if (g === null) return null;
9340
- const v = c.measureText(g, ne(s, d));
9341
+ const c = qe(), u = ke(), h = a(e) ?? null, v = h !== null ? i(h, e) : null, f = b(() => {
9342
+ if (v === null) return null;
9343
+ const g = c.measureText(v, ne(s, d));
9341
9344
  return {
9342
- width: v.width + s.paddingInline * 2,
9343
- height: v.height + s.paddingBlock * 2
9345
+ width: g.width + s.paddingInline * 2,
9346
+ height: g.height + s.paddingBlock * 2
9344
9347
  };
9345
9348
  }, [
9346
- g,
9349
+ v,
9347
9350
  c,
9348
9351
  s,
9349
9352
  d
@@ -9355,12 +9358,12 @@ var eA = 4, tA = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
9355
9358
  size: o * 2,
9356
9359
  fill: r,
9357
9360
  "data-testid": "highlight-overlay-dot"
9358
- }), g !== null && f !== null && /* @__PURE__ */ l(fd, {
9361
+ }), v !== null && f !== null && /* @__PURE__ */ l(fd, {
9359
9362
  x: t.x * u.width,
9360
9363
  y: t.y * u.height - o - eA - f.height / 2,
9361
9364
  width: f.width,
9362
9365
  height: f.height,
9363
- text: g,
9366
+ text: v,
9364
9367
  rotated: !1,
9365
9368
  labelRole: "observation",
9366
9369
  position: "outside",
@@ -9376,12 +9379,12 @@ var eA = 4, tA = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
9376
9379
  related: f.hover.related
9377
9380
  }))), i = se(), { colorScheme: s } = Z(), d = G(t), { paintHover: c } = ye[Oe()], u = n?.layerId === t.id, h = a.get(t.id) ?? [];
9378
9381
  if (!c || n === null) return null;
9379
- const g = i(t.geom, r.type);
9380
- return g === null ? null : u ? g.renderHover === void 0 ? null : /* @__PURE__ */ l(Sn, { children: /* @__PURE__ */ l(Br, {
9381
- renderer: g,
9382
+ const v = i(t.geom, r.type);
9383
+ return v === null ? null : u ? v.renderHover === void 0 ? null : /* @__PURE__ */ l(Sn, { children: /* @__PURE__ */ l(Br, {
9384
+ renderer: v,
9382
9385
  styleReaders: d,
9383
9386
  state: "hovered",
9384
- children: g.renderHover({
9387
+ children: v.renderHover({
9385
9388
  layer: t,
9386
9389
  coordSystem: r,
9387
9390
  primary: n,
@@ -9390,10 +9393,10 @@ var eA = 4, tA = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
9390
9393
  colorScheme: s,
9391
9394
  styleReaders: d
9392
9395
  })
9393
- }) }) : h.length === 0 || g.renderHoverCompanions === void 0 ? null : /* @__PURE__ */ l(Sn, { children: /* @__PURE__ */ l(Br, {
9394
- renderer: g,
9396
+ }) }) : h.length === 0 || v.renderHoverCompanions === void 0 ? null : /* @__PURE__ */ l(Sn, { children: /* @__PURE__ */ l(Br, {
9397
+ renderer: v,
9395
9398
  styleReaders: d,
9396
- children: g.renderHoverCompanions({
9399
+ children: v.renderHoverCompanions({
9397
9400
  layer: t,
9398
9401
  coordSystem: r,
9399
9402
  primary: n,
@@ -9481,10 +9484,10 @@ var eA = 4, tA = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
9481
9484
  formattingLocale: n,
9482
9485
  colorScheme: u,
9483
9486
  styleReaders: G(t)
9484
- }, g = s ? Zr(s.render) : null, f = t.spatialKind === "renderHitTest", v = a && (c.opacity !== void 0 || c.filter !== void 0);
9487
+ }, v = s ? Zr(s.render) : null, f = t.spatialKind === "renderHitTest", g = a && (c.opacity !== void 0 || c.filter !== void 0);
9485
9488
  return /* @__PURE__ */ S("g", {
9486
- className: v ? cA : void 0,
9487
- style: v ? fA(c) : void 0,
9489
+ className: g ? cA : void 0,
9490
+ style: g ? fA(c) : void 0,
9488
9491
  children: [
9489
9492
  /* @__PURE__ */ l(Zb, {
9490
9493
  layer: t,
@@ -9494,7 +9497,7 @@ var eA = 4, tA = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
9494
9497
  formattingLocale: n,
9495
9498
  live: o
9496
9499
  }),
9497
- f && !g?.live && s?.hitTest && /* @__PURE__ */ l(Gf, {
9500
+ f && !v?.live && s?.hitTest && /* @__PURE__ */ l(Gf, {
9498
9501
  hitTest: s.hitTest,
9499
9502
  input: h
9500
9503
  }),
@@ -9568,19 +9571,19 @@ var eA = 4, tA = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
9568
9571
  }, yA = (e, t) => {
9569
9572
  const r = se(), { waitingForView: n } = ie();
9570
9573
  return n ? [] : e.filter((o) => ul(r(o.geom, t.type)));
9571
- }, xA = "_17uhij30", bA = ({ formattedAxes: e, plotRect: t, panelBorder: r, axisLines: n, axisLineCornerRadius: o, panelEdges: a, panelFrameRect: i, panelRect: s, axisRects: d, axisLabelRects: c, formattingLocale: u, plotBottomY: h, hasReservedFooterSpace: g, editable: f, showAnnotations: v }) => {
9572
- const m = D(null);
9573
- yx(m);
9574
- const p = Ce("Grid", jb), y = Ce("AxisTicks", Wb), A = Ce("AxisLabel", zb), w = b(() => Nn(i, t), [i, t]), k = b(() => Nn(s, t), [s, t]), E = b(() => ri(d, t), [d, t]), L = b(() => ri(c, t), [c, t]), { waitingForView: R } = ie(), P = v && !R;
9574
+ }, xA = "_17uhij30", bA = ({ formattedAxes: e, plotRect: t, panelBorder: r, axisLines: n, axisLineCornerRadius: o, panelEdges: a, panelFrameRect: i, panelRect: s, axisRects: d, axisLabelRects: c, formattingLocale: u, plotBottomY: h, hasReservedFooterSpace: v, editable: f, showAnnotations: g }) => {
9575
+ const p = D(null);
9576
+ yx(p);
9577
+ const m = Ce("Grid", jb), y = Ce("AxisTicks", Wb), A = Ce("AxisLabel", zb), w = b(() => Nn(i, t), [i, t]), k = b(() => Nn(s, t), [s, t]), E = b(() => ri(d, t), [d, t]), L = b(() => ri(c, t), [c, t]), { waitingForView: R } = ie(), P = g && !R;
9575
9578
  return /* @__PURE__ */ S("svg", {
9576
- ref: m,
9579
+ ref: p,
9577
9580
  className: xA,
9578
9581
  width: t.width,
9579
9582
  height: t.height,
9580
9583
  style: { transform: `translate(${t.x}px, ${t.y}px)` },
9581
9584
  "data-testid": "plot",
9582
9585
  children: [
9583
- /* @__PURE__ */ l(p, {
9586
+ /* @__PURE__ */ l(m, {
9584
9587
  axes: e,
9585
9588
  panelEdgeSizes: a,
9586
9589
  panelFrameRect: w,
@@ -9627,7 +9630,8 @@ var eA = 4, tA = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
9627
9630
  panelRect: k,
9628
9631
  formattingLocale: u,
9629
9632
  plotBottomY: h,
9630
- hasReservedFooterSpace: g
9633
+ hasReservedFooterSpace: v,
9634
+ hidePinnedCellLabels: P
9631
9635
  }),
9632
9636
  P && /* @__PURE__ */ S(M, { children: [
9633
9637
  /* @__PURE__ */ l(Wx, {
@@ -9775,7 +9779,7 @@ var eA = 4, tA = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
9775
9779
  };
9776
9780
  }, PA = (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, RA = () => null, CA = "_1vl0pke0", LA = "_1vl0pke1";
9777
9781
  var TA = [], IA = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef: o, children: a }) => {
9778
- const { themeClass: i, inlineVarsStyle: s } = _r(), 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, overpaint: p = TA } = e, y = Et([m, ...p]), A = y(m), w = typeof m != "string", k = b(() => ({
9782
+ const { themeClass: i, inlineVarsStyle: s } = _r(), d = e.strokeWidth, c = d > 0 ? e.stroke : void 0, u = Math.max(0, e.cornerRadius), h = u === 0 ? 0 : u + d, { shadow: v, alpha: f, blendMode: g, fill: p, overpaint: m = TA } = e, y = Et([p, ...m]), A = y(p), w = typeof p != "string", k = b(() => ({
9779
9783
  ...n,
9780
9784
  borderRadius: `${h}px`,
9781
9785
  ...s,
@@ -9784,31 +9788,31 @@ var TA = [], IA = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef:
9784
9788
  borderStyle: "solid",
9785
9789
  borderColor: c
9786
9790
  },
9787
- ...g === void 0 ? {} : { boxShadow: wt(g) }
9791
+ ...v === void 0 ? {} : { boxShadow: wt(v) }
9788
9792
  }), [
9789
9793
  n,
9790
9794
  h,
9791
9795
  s,
9792
9796
  d,
9793
9797
  c,
9794
- g
9798
+ v
9795
9799
  ]), E = b(() => ({
9796
9800
  borderRadius: `${u}px`,
9797
- ...v === "normal" ? {} : { mixBlendMode: v },
9801
+ ...g === "normal" ? {} : { mixBlendMode: g },
9798
9802
  ...BA(w, f)
9799
9803
  }), [
9800
9804
  u,
9801
- v,
9805
+ g,
9802
9806
  w,
9803
9807
  f
9804
- ]), L = b(() => typeof m == "string" ? void 0 : {
9805
- ...mt(m, A),
9808
+ ]), L = b(() => typeof p == "string" ? void 0 : {
9809
+ ...mt(p, A),
9806
9810
  opacity: f
9807
9811
  }, [
9808
- m,
9812
+ p,
9809
9813
  A,
9810
9814
  f
9811
- ]), R = t && m === "transparent";
9815
+ ]), R = t && p === "transparent";
9812
9816
  return /* @__PURE__ */ l("div", {
9813
9817
  "data-testid": "graph-wrapper",
9814
9818
  className: Kt(lp, i),
@@ -9832,7 +9836,7 @@ var TA = [], IA = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef:
9832
9836
  style: L
9833
9837
  }),
9834
9838
  a,
9835
- [...p].reverse().map((P, I) => /* @__PURE__ */ l("div", {
9839
+ [...m].reverse().map((P, I) => /* @__PURE__ */ l("div", {
9836
9840
  "aria-hidden": !0,
9837
9841
  "data-testid": "graph-overpaint",
9838
9842
  className: CA,
@@ -9856,7 +9860,7 @@ var TA = [], IA = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef:
9856
9860
  })
9857
9861
  })
9858
9862
  }) }) }), OA = ({ width: e, height: t, animation: r }) => {
9859
- const n = ml(), o = Oe(), { axes: a, legends: i, layers: s, numberFormat: d, parsingLocale: c, annotations: u, coordSystem: h, headline: g, headlineConfig: f, content: v, overflowStrategy: m } = B(he((le) => ({
9863
+ const n = ml(), o = Oe(), { axes: a, legends: i, layers: s, numberFormat: d, parsingLocale: c, annotations: u, coordSystem: h, headline: v, headlineConfig: f, content: g, overflowStrategy: p } = B(he((le) => ({
9860
9864
  axes: le.guides.axes,
9861
9865
  legends: le.guides.legends.drawn,
9862
9866
  layers: le.layers,
@@ -9868,7 +9872,7 @@ var TA = [], IA = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef:
9868
9872
  headlineConfig: le.config.headline,
9869
9873
  content: le.config.content,
9870
9874
  overflowStrategy: le.config.panel.overflow
9871
- }))), p = ye[o], y = p.mountEditor, { headerRef: A, footerRef: w, measurements: k } = EA(), { formattingLocale: E, colorScheme: L } = Z(), [R, P] = J(null), I = Ce("Header", x0), F = Ce("Footer", h0), X = Ce("Legend", qy), Q = Ce("Headline", W0), $ = Ce("EditorSurface", RA), K = b(() => Ec({
9875
+ }))), m = ye[o], y = m.mountEditor, { headerRef: A, footerRef: w, measurements: k } = EA(), { formattingLocale: E, colorScheme: L } = Z(), [R, P] = J(null), I = Ce("Header", x0), F = Ce("Footer", h0), X = Ce("Legend", qy), Q = Ce("Headline", W0), $ = Ce("EditorSurface", RA), K = b(() => Ec({
9872
9876
  legends: i,
9873
9877
  numberFormat: d,
9874
9878
  parsingLocale: c,
@@ -9879,14 +9883,14 @@ var TA = [], IA = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef:
9879
9883
  c,
9880
9884
  E
9881
9885
  ]), z = b(() => kc({
9882
- headline: g,
9886
+ headline: v,
9883
9887
  show: f.show,
9884
9888
  numberFormat: d,
9885
9889
  parsingLocale: c,
9886
9890
  formattingLocale: E,
9887
9891
  t: n
9888
9892
  }), [
9889
- g,
9893
+ v,
9890
9894
  f.show,
9891
9895
  d,
9892
9896
  c,
@@ -9899,11 +9903,11 @@ var TA = [], IA = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef:
9899
9903
  e,
9900
9904
  t,
9901
9905
  an
9902
- ]), Yo = b(() => u0(v.graphyBadge.visible, Lt, v.graphyBadge.variant), [
9903
- v.graphyBadge.visible,
9904
- v.graphyBadge.variant,
9906
+ ]), Yo = b(() => u0(g.graphyBadge.visible, Lt, g.graphyBadge.variant), [
9907
+ g.graphyBadge.visible,
9908
+ g.graphyBadge.variant,
9905
9909
  Lt
9906
- ]), Rd = v.graphyBadge.position === "footer" ? Yo : null, Cd = v.graphyBadge.position === "header" ? Yo : null, ct = b(() => {
9910
+ ]), Rd = g.graphyBadge.position === "footer" ? Yo : null, Cd = g.graphyBadge.position === "header" ? Yo : null, ct = b(() => {
9907
9911
  if (!z) return;
9908
9912
  const le = ne(ve.item, hr.fonts.familyDefault), Id = hu(K) ? (Bd) => im({
9909
9913
  legends: K,
@@ -9949,7 +9953,7 @@ var TA = [], IA = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef:
9949
9953
  annotations: u,
9950
9954
  layers: s,
9951
9955
  coordSystem: h,
9952
- overflowStrategy: m,
9956
+ overflowStrategy: p,
9953
9957
  panelEdges: jo,
9954
9958
  padding: T(su, q),
9955
9959
  margins: T(ou, q)
@@ -9989,17 +9993,17 @@ var TA = [], IA = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef:
9989
9993
  },
9990
9994
  children: /* @__PURE__ */ S(lh, {
9991
9995
  animation: r,
9992
- animate: p.animate,
9996
+ animate: m.animate,
9993
9997
  panelRect: ge.panel,
9994
9998
  children: [
9995
9999
  /* @__PURE__ */ l(I, {
9996
10000
  ref: A,
9997
10001
  headerRect: ge.header,
9998
10002
  mode: o,
9999
- title: v.title,
10000
- showTitle: v.showTitle,
10001
- subtitle: v.subtitle,
10002
- showSubtitle: v.showSubtitle,
10003
+ title: g.title,
10004
+ showTitle: g.showTitle,
10005
+ subtitle: g.subtitle,
10006
+ showSubtitle: g.showSubtitle,
10003
10007
  headingStyle: dr,
10004
10008
  subtitleStyle: cr,
10005
10009
  graphyBadge: Cd
@@ -10019,16 +10023,16 @@ var TA = [], IA = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef:
10019
10023
  plotBottomY: Ld,
10020
10024
  hasReservedFooterSpace: Td,
10021
10025
  editable: y,
10022
- showAnnotations: p.showAnnotations
10026
+ showAnnotations: m.showAnnotations
10023
10027
  }),
10024
10028
  /* @__PURE__ */ l(F, {
10025
10029
  ref: w,
10026
10030
  footerRect: ge.footer,
10027
10031
  mode: o,
10028
- caption: v.caption,
10029
- showCaption: v.showCaption,
10030
- source: v.source,
10031
- showSource: v.showSource,
10032
+ caption: g.caption,
10033
+ showCaption: g.showCaption,
10034
+ source: g.source,
10035
+ showSource: g.showSource,
10032
10036
  captionStyle: ur,
10033
10037
  sourceStyle: nn,
10034
10038
  graphyBadge: Rd
@@ -10049,7 +10053,7 @@ var TA = [], IA = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef:
10049
10053
  panelRect: ge.panel,
10050
10054
  formattedAxes: Uo
10051
10055
  }),
10052
- p.showTooltip && /* @__PURE__ */ l(Fp, {})
10056
+ m.showTooltip && /* @__PURE__ */ l(Fp, {})
10053
10057
  ]
10054
10058
  })
10055
10059
  })