@mechane-ai/elements 0.48.0 → 0.49.1

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.
Files changed (140) hide show
  1. package/README.md +40 -2
  2. package/dist/ai.js +5 -5
  3. package/dist/{article-BXZr10QQ.js → article-CRlhq9oA.js} +532 -464
  4. package/dist/article.js +1 -1
  5. package/dist/catalog.json +243 -1
  6. package/dist/{categorical-values-BpVq8cFj.js → categorical-values-BYP_R5gS.js} +13 -13
  7. package/dist/{cells-xVmnQ9oQ.js → cells-CNZE4us2.js} +2 -2
  8. package/dist/charts/cartesian.js +1 -1
  9. package/dist/charts/cells.js +1 -1
  10. package/dist/charts/comparison.js +1 -1
  11. package/dist/charts/distribution.js +1 -1
  12. package/dist/charts/figure.js +12 -12
  13. package/dist/charts/graph.js +1 -1
  14. package/dist/charts/hierarchy.js +1 -1
  15. package/dist/charts/image.js +1 -1
  16. package/dist/charts/matrix.js +1 -1
  17. package/dist/charts/plot.js +7 -7
  18. package/dist/charts/relationship.js +1 -1
  19. package/dist/charts/text.js +1 -1
  20. package/dist/charts/timeline.js +1 -1
  21. package/dist/charts/trend.js +1 -1
  22. package/dist/charts.js +7 -7
  23. package/dist/{code-block-DioAM2bZ.js → code-block-BZsY2sh3.js} +1 -1
  24. package/dist/collections.js +1 -1
  25. package/dist/content/code.js +1 -1
  26. package/dist/content/diff.js +3 -3
  27. package/dist/content/link.js +1 -1
  28. package/dist/content/markdown.js +2 -2
  29. package/dist/content/tree.js +1 -1
  30. package/dist/{content-link-NWuHp5rC.js → content-link-PnpcnTCx.js} +1 -1
  31. package/dist/content.js +1 -1
  32. package/dist/{dates-Cww8UR_n.js → dates-ckJdYF7t.js} +1 -1
  33. package/dist/{dumbbell-plot-DQdTxDeO.js → dumbbell-plot-B-Tn7ewW.js} +49 -48
  34. package/dist/{embedding-map-CF-J-8JW.js → embedding-map-Bljn-A5q.js} +533 -533
  35. package/dist/feedback.js +1 -1
  36. package/dist/figure-frame-CEijciL7.js +289 -0
  37. package/dist/forms/dates.js +1 -1
  38. package/dist/forms.js +3 -3
  39. package/dist/{image-grid-Dl2sjIMB.js → image-grid-mrG5u9oE.js} +49 -49
  40. package/dist/index.js +1 -1
  41. package/dist/kits/evaluation.js +5 -5
  42. package/dist/kits/interpretability.js +320 -302
  43. package/dist/kits/operations.js +6 -6
  44. package/dist/kits/research.js +558 -0
  45. package/dist/kits/training.js +6 -6
  46. package/dist/layout.js +205 -110
  47. package/dist/lesson/spec.js +11 -11
  48. package/dist/lesson.js +4 -4
  49. package/dist/mdx.js +6 -6
  50. package/dist/navigation.js +2 -2
  51. package/dist/packages/charts/src/cartesian/index.d.ts +1 -1
  52. package/dist/packages/charts/src/cartesian/scatter-plot.d.ts +18 -0
  53. package/dist/packages/charts/src/chart-theme.d.ts +1 -1
  54. package/dist/packages/charts/src/figure/caption-scope.d.ts +12 -0
  55. package/dist/packages/charts/src/figure/figure-frame.d.ts +2 -1
  56. package/dist/packages/charts/src/index.d.ts +2 -0
  57. package/dist/packages/charts/src/plot/plot-surface.d.ts +3 -1
  58. package/dist/packages/collections/src/index.d.ts +1 -1
  59. package/dist/packages/collections/src/metrics.d.ts +9 -1
  60. package/dist/packages/content/src/index.d.ts +2 -0
  61. package/dist/packages/content/src/text-match.d.ts +22 -0
  62. package/dist/packages/core/src/index.d.ts +1 -0
  63. package/dist/packages/core/src/surfaces.d.ts +12 -2
  64. package/dist/packages/forms/src/index.d.ts +2 -0
  65. package/dist/packages/forms/src/token-input.d.ts +24 -0
  66. package/dist/packages/kits/src/interpretability/index.d.ts +1 -1
  67. package/dist/packages/kits/src/interpretability/logit-lens.d.ts +10 -1
  68. package/dist/packages/kits/src/research/finding-card.d.ts +43 -0
  69. package/dist/packages/kits/src/research/index.d.ts +8 -0
  70. package/dist/packages/kits/src/research/milestone-path.d.ts +36 -0
  71. package/dist/packages/kits/src/research/specimen-diff.d.ts +41 -0
  72. package/dist/packages/kits/src/research/work-heartbeat.d.ts +34 -0
  73. package/dist/packages/layout/src/figure-grid.d.ts +8 -0
  74. package/dist/packages/layout/src/index.d.ts +4 -1
  75. package/dist/packages/layout/src/sidebar.d.ts +7 -0
  76. package/dist/packages/layout/src/workbench.d.ts +4 -1
  77. package/dist/packages/teaching/src/article/article-context.d.ts +2 -0
  78. package/dist/packages/teaching/src/article/article-layout.stylex.d.ts +13 -0
  79. package/dist/packages/teaching/src/article/article.d.ts +6 -1
  80. package/dist/packages/teaching/src/article/figure.d.ts +20 -3
  81. package/dist/packages/teaching/src/article/index.d.ts +1 -1
  82. package/dist/packages/teaching/src/article/view-essay.d.ts +2 -1
  83. package/dist/packages/teaching/src/lesson/define-lesson.d.ts +4 -0
  84. package/dist/packages/teaching/src/lesson/index.d.ts +2 -2
  85. package/dist/packages/teaching/src/lesson/lesson-player.d.ts +19 -3
  86. package/dist/packages/teaching/src/lesson/lesson-store.d.ts +2 -0
  87. package/dist/packages/teaching/src/lesson/playback.d.ts +9 -6
  88. package/dist/packages/teaching/src/lesson/use-lesson.d.ts +7 -2
  89. package/dist/packages/teaching/src/scene/plane/plane-labels.d.ts +4 -1
  90. package/dist/packages/teaching/src/scene/plane/scene-point.d.ts +5 -6
  91. package/dist/packages/teaching/src/scene/scene-geometry.d.ts +1 -1
  92. package/dist/packages/teaching/src/scene/scene-node.d.ts +4 -1
  93. package/dist/packages/teaching/src/scene/scene-validate.d.ts +6 -0
  94. package/dist/packages/teaching/src/scene/scene-wire.d.ts +6 -1
  95. package/dist/packages/teaching/src/scene/scene.d.ts +1 -1
  96. package/dist/packages/teaching/src/scene/shapes/cell-grid.d.ts +5 -1
  97. package/dist/packages/teaching/src/scene/shapes/scene-cells.d.ts +1 -1
  98. package/dist/packages/teaching/src/scene/shapes/scene-slot.d.ts +1 -1
  99. package/dist/packages/teaching/src/time/tween.d.ts +2 -0
  100. package/dist/{param-CqKUTHaO.js → param-BdqTpZER.js} +175 -108
  101. package/dist/{pierre-diff-DlvjyuJn.js → pierre-diff-aGyQK5xK.js} +1 -1
  102. package/dist/{plot-axes-DJkLW4wk.js → plot-axes-D5S9BnBa.js} +1 -1
  103. package/dist/{plot-layout-CZVSJ-le.js → plot-layout-B2xRt-_k.js} +146 -132
  104. package/dist/{plot-marks-uozcbOIX.js → plot-marks-FVsbFkUs.js} +3 -3
  105. package/dist/{plot-surface-CbVBvgqZ.js → plot-surface-0cKFwtws.js} +11 -11
  106. package/dist/{plot-width-DcqtSgzb.js → plot-width-D3hTycYX.js} +1 -1
  107. package/dist/{reference-lines-BDcttOp0.js → reference-lines-nSxcZVF5.js} +2 -2
  108. package/dist/{scene-0z2gbaDE.js → scene-BwJKueD6.js} +1228 -1126
  109. package/dist/scene.js +1 -1
  110. package/dist/{slope-chart-BKVEAVCs.js → slope-chart-CGTYbFxi.js} +182 -182
  111. package/dist/{src-CpdJlDhO.js → src-9EJskqB_.js} +73 -31
  112. package/dist/{src-Dcfq8vE4.js → src-B2rgpWap.js} +48 -14
  113. package/dist/{src-BPTDJqt0.js → src-Ci8DeY8J.js} +1 -1
  114. package/dist/{src-CGc_hjxJ.js → src-DFW49IAs.js} +143 -111
  115. package/dist/{src-BD6xlvDt.js → src-Dxs3Buo_.js} +203 -137
  116. package/dist/{src-CExIrXPC.js → src-npqwq3Sa.js} +1 -1
  117. package/dist/styles2.css +136 -17
  118. package/dist/{time-series-BgzGNOk0.js → time-series-Dh8y5ba0.js} +1018 -944
  119. package/dist/{token-heatmap-BrW1OsKD.js → token-heatmap-BTrZ3-N4.js} +86 -86
  120. package/dist/{token-predictions-yerq_Oet.js → token-predictions-CUe4junQ.js} +129 -129
  121. package/dist/{transport-BJweqDPj.js → transport-4V9rfYHN.js} +291 -246
  122. package/dist/{tree-diagram-D09BRqE-.js → tree-diagram-Dpqmo-fh.js} +118 -118
  123. package/dist/{treemap-CW4WsJNL.js → treemap-BUSaVD3m.js} +28 -28
  124. package/dist/use-tween-BsaEO862.js +10 -0
  125. package/dist/{violin-plot-DrtPZ1-T.js → violin-plot-BxaLwdRi.js} +126 -126
  126. package/dist/{waterfall-DYLSnGjm.js → waterfall-CcDMdKec.js} +43 -43
  127. package/package.json +5 -1
  128. package/recipes/counting-cards.tsx +3 -3
  129. package/skills/review-explainer/SKILL.md +2 -1
  130. package/skills/upgrade-elements/references/releases.md +61 -0
  131. package/skills/use-elements/SKILL.md +3 -1
  132. package/skills/use-elements/references/kits.md +7 -6
  133. package/skills/use-elements/references/styling.md +23 -0
  134. package/skills/use-elements/references/teaching.md +13 -0
  135. package/skills/write-explainer/references/article.md +50 -2
  136. package/skills/write-explainer/references/lesson.md +18 -9
  137. package/skills/write-explainer/references/scene-parts.md +17 -12
  138. package/skills/write-explainer/references/scene.md +25 -3
  139. package/dist/figure-frame-BJ3REgTA.js +0 -270
  140. package/dist/use-tween-5HZ55_9d.js +0 -72
@@ -1,20 +1,20 @@
1
- import { u as e } from "./src-CpdJlDhO.js";
2
- import { d as t, m as n } from "./src-CExIrXPC.js";
1
+ import { u as e } from "./src-9EJskqB_.js";
2
+ import { d as t, m as n } from "./src-npqwq3Sa.js";
3
3
  import { n as r, t as i } from "./chart-tones-ei3BC2AL.js";
4
4
  import { a, i as o, n as s, r as c } from "./figure-format-B8kRZMlo.js";
5
5
  import { r as l, t as u } from "./scale-C2xgZyZN.js";
6
6
  import * as d from "@stylexjs/stylex";
7
7
  import { createParts as f, mergeProps as p } from "@ui-sdk/react/primitive";
8
- import { Children as m, useId as h } from "react";
9
- import { announce as g, bindLayer as _, createChange as v, definePrimitive as y, dispatch as b, isFocusFromKeyboard as x, isRTL as S, nearestInDirection as C, selects as w } from "@ui-sdk/core";
8
+ import { Children as m, createContext as h, use as g, useId as _ } from "react";
9
+ import { announce as v, bindLayer as y, createChange as ee, definePrimitive as b, dispatch as x, isFocusFromKeyboard as S, isRTL as C, nearestInDirection as w, selects as te } from "@ui-sdk/core";
10
10
  import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
11
- import { stepFromKey as ee } from "@ui-sdk/core/number";
11
+ import { stepFromKey as ne } from "@ui-sdk/core/number";
12
12
  // packages/charts/src/chart-input.ts
13
- function te(e) {
13
+ function re(e) {
14
14
  return new Set(e.map((e) => e.id)).size === e.length;
15
15
  }
16
16
  // packages/charts/src/chart.tsx
17
- var ne = 10, O = "[data-slot=\"chart-mark\"]", re = /* @__PURE__ */ new Set(["Enter", " "]), ie = /* @__PURE__ */ new Set(["ArrowDown", "ArrowUp"]), ae = {
17
+ var ie = 10, O = "[data-slot=\"chart-mark\"]", ae = /* @__PURE__ */ new Set(["Enter", " "]), oe = /* @__PURE__ */ new Set(["ArrowDown", "ArrowUp"]), se = {
18
18
  ArrowLeft: [-1, 0],
19
19
  ArrowRight: [1, 0],
20
20
  ArrowUp: [0, -1],
@@ -31,7 +31,7 @@ function A(e) {
31
31
  cursor: t
32
32
  };
33
33
  }
34
- function oe({ key: e, index: t, last: n, columns: r, isReversed: i }) {
34
+ function ce({ key: e, index: t, last: n, columns: r, isReversed: i }) {
35
35
  let a = t - t % r, o = Math.min(n, a + r - 1), s = Math.max(a, t - 1), c = Math.min(o, t + 1);
36
36
  return {
37
37
  Home: a,
@@ -42,15 +42,15 @@ function oe({ key: e, index: t, last: n, columns: r, isReversed: i }) {
42
42
  ArrowDown: t + r > n ? t : t + r
43
43
  }[e];
44
44
  }
45
- function se({ event: e, index: t, last: n, arrows: r, isReversed: i }) {
46
- if (r === "both" && ie.has(e.key)) return Math.max(0, Math.min(n, t + (e.key === "ArrowDown" ? 1 : -1)));
47
- let a = ee(e, {
45
+ function le({ event: e, index: t, last: n, arrows: r, isReversed: i }) {
46
+ if (r === "both" && oe.has(e.key)) return Math.max(0, Math.min(n, t + (e.key === "ArrowDown" ? 1 : -1)));
47
+ let a = ne(e, {
48
48
  arrows: "horizontal",
49
49
  dir: i ? "rtl" : "ltr"
50
50
  });
51
- if (a !== null) return a.bound === void 0 ? Math.max(0, Math.min(n, t + a.direction * (a.size === "large" ? ne : 1))) : a.bound === "min" ? 0 : n;
51
+ if (a !== null) return a.bound === void 0 ? Math.max(0, Math.min(n, t + a.direction * (a.size === "large" ? ie : 1))) : a.bound === "min" ? 0 : n;
52
52
  }
53
- var j = y({
53
+ var j = b({
54
54
  name: "chart",
55
55
  options: {
56
56
  items: "value",
@@ -81,7 +81,7 @@ var j = y({
81
81
  ...e.inspected === void 0 || e.inspected === null ? {} : { cursor: e.inspected }
82
82
  }),
83
83
  api: (e) => {
84
- let { store: t } = e, n = v(e), r = !1, i = e.options().revision;
84
+ let { store: t } = e, n = ee(e), r = !1, i = e.options().revision;
85
85
  e.onOptions((e) => {
86
86
  let { inspected: n } = t.get(), r = e.revision !== i || n !== null && !k(e.items, n);
87
87
  i = e.revision, r && n !== null && e.inspected === void 0 && t.set({ inspected: null });
@@ -96,16 +96,16 @@ var j = y({
96
96
  reason: s,
97
97
  event: c
98
98
  });
99
- return l && i !== null && o.reason === "list-navigation" && g(i === t.get().selected ? `${a(i)}. Selected.` : a(i)), l;
99
+ return l && i !== null && o.reason === "list-navigation" && v(i === t.get().selected ? `${a(i)}. Selected.` : a(i)), l;
100
100
  }
101
101
  function s(t, n) {
102
- return k(e.options().items, t) ? !b(e, "onSelect", t, n === void 0 ? { reason: "item-press" } : {
102
+ return k(e.options().items, t) ? !x(e, "onSelect", t, n === void 0 ? { reason: "item-press" } : {
103
103
  reason: "item-press",
104
104
  event: n
105
105
  }) : !1;
106
106
  }
107
107
  function c(n, r) {
108
- let { items: i, columns: a, arrows: o = "horizontal", place: s } = e.options(), { cursor: c } = A(t.get()), l = Math.max(0, i.findIndex((e) => e.id === c)), u = i.length - 1, d = ae[n.key];
108
+ let { items: i, columns: a, arrows: o = "horizontal", place: s } = e.options(), { cursor: c } = A(t.get()), l = Math.max(0, i.findIndex((e) => e.id === c)), u = i.length - 1, d = se[n.key];
109
109
  if (s !== void 0 && d !== void 0) {
110
110
  let e = c === null ? void 0 : s(c);
111
111
  if (c === null || e === void 0) return i[l]?.id;
@@ -116,15 +116,15 @@ var j = y({
116
116
  rect: t
117
117
  }];
118
118
  });
119
- return C(e, t, d) ?? c;
119
+ return w(e, t, d) ?? c;
120
120
  }
121
- let f = S(r), p = a === void 0 || a < 1 ? se({
121
+ let f = C(r), p = a === void 0 || a < 1 ? le({
122
122
  event: n,
123
123
  index: l,
124
124
  last: u,
125
125
  arrows: o,
126
126
  isReversed: f
127
- }) : oe({
127
+ }) : ce({
128
128
  key: n.key,
129
129
  index: l,
130
130
  last: u,
@@ -150,7 +150,7 @@ var j = y({
150
150
  keydown(n, r) {
151
151
  let i = n.altKey || n.ctrlKey || n.metaKey;
152
152
  if (n.defaultPrevented || i || e.options().items.length === 0) return;
153
- if (re.has(n.key)) {
153
+ if (ae.has(n.key)) {
154
154
  let { cursor: r } = A(t.get());
155
155
  !(n.target instanceof Element && n.target.closest("button, a, input, select, textarea") !== null) && r !== null && e.options().onSelect !== void 0 && (n.preventDefault(), s(r, n));
156
156
  return;
@@ -162,7 +162,7 @@ var j = y({
162
162
  }));
163
163
  },
164
164
  focus(e, n) {
165
- e.target === n && x() && o(A(t.get()).cursor, {
165
+ e.target === n && S() && o(A(t.get()).cursor, {
166
166
  reason: "focus-in",
167
167
  event: e
168
168
  });
@@ -240,7 +240,7 @@ var j = y({
240
240
  let n = null;
241
241
  function r() {
242
242
  let r = t.store.get().inspected !== null;
243
- r && n === null && (n = _(e, {
243
+ r && n === null && (n = y(e, {
244
244
  onDismiss: (e, n) => t.api.dismiss(e, n),
245
245
  contains: (e) => t.api.within(e)
246
246
  })), !r && n !== null && (n(), n = null);
@@ -263,7 +263,7 @@ var j = y({
263
263
  "data-selected": e.selected === t ? "" : void 0,
264
264
  "data-chart-mark": t
265
265
  }),
266
- selects: w({
266
+ selects: te({
267
267
  items: () => [],
268
268
  cursor: () => [],
269
269
  inspected: ({ key: e }) => [e],
@@ -282,22 +282,22 @@ var j = y({
282
282
  items: (e) => e.items(),
283
283
  closed: !0
284
284
  }
285
- }), ce = f(j, { root: "figure" }).Root, le = f(j, {
285
+ }), ue = f(j, { root: "figure" }).Root, de = f(j, {
286
286
  root: "figure",
287
287
  plot: "div",
288
288
  mark: "span"
289
- }), ue = le.Plot, de = f(j, {
289
+ }), fe = de.Plot, pe = f(j, {
290
290
  root: "figure",
291
291
  plot: "p"
292
- }).Plot, fe = le.Mark;
293
- function pe(e, t) {
292
+ }).Plot, me = de.Mark;
293
+ function he(e, t) {
294
294
  return e.find((e) => e.id === t)?.label ?? "\xA0";
295
295
  }
296
- function me({ title: e, marks: t, isSelectable: n }) {
296
+ function ge({ title: e, marks: t, isSelectable: n }) {
297
297
  return `${e}. Use arrow keys to inspect${t === void 0 ? "" : ` ${t}`}.${n ? " Press Enter to select." : ""}`;
298
298
  }
299
299
  // packages/charts/src/chart-heading.tsx
300
- var he = { root: {
300
+ var _e = { root: {
301
301
  k1C7PZ: "x8zbtdt",
302
302
  khm7nJ: "x1gkm1c7",
303
303
  kMwMTN: "xbixft",
@@ -306,7 +306,7 @@ var he = { root: {
306
306
  kLWn49: "x1778rvt",
307
307
  $$css: !0
308
308
  } };
309
- function ge({ title: t, id: n, meta: r, actions: i }) {
309
+ function ve({ title: t, id: n, meta: r, actions: i }) {
310
310
  let a = m.toArray(r).length > 0, o = m.toArray(i).length > 0, s = a || o, c = a && /* @__PURE__ */ E("div", {
311
311
  ...d.props(e.meta),
312
312
  children: r
@@ -315,7 +315,7 @@ function ge({ title: t, id: n, meta: r, actions: i }) {
315
315
  children: i
316
316
  });
317
317
  return /* @__PURE__ */ D("div", {
318
- ...d.props(e.row, e.reportRow, he.root),
318
+ ...d.props(e.row, e.reportRow, _e.root),
319
319
  children: [/* @__PURE__ */ E("p", {
320
320
  id: n,
321
321
  ...d.props(e.title),
@@ -327,7 +327,7 @@ function ge({ title: t, id: n, meta: r, actions: i }) {
327
327
  });
328
328
  }
329
329
  // packages/charts/src/chart-series-marker.tsx
330
- var _e = {
330
+ var ye = {
331
331
  kGVxlE: "x1iotiob",
332
332
  $$css: !0
333
333
  }, M = {
@@ -353,13 +353,13 @@ var _e = {
353
353
  kWkggS: "xtwfq29",
354
354
  $$css: !0
355
355
  },
356
- edge: (e) => [_e, { "--x-boxShadow": `inset 0 0 0 1px ${e}` == null ? void 0 : `inset 0 0 0 1px ${e}` }],
356
+ edge: (e) => [ye, { "--x-boxShadow": `inset 0 0 0 1px ${e}` == null ? void 0 : `inset 0 0 0 1px ${e}` }],
357
357
  transparent: {
358
358
  kWkggS: "xjbqb8w",
359
359
  $$css: !0
360
360
  }
361
- }, N = 8, ve = .3;
362
- function ye({ shape: e }) {
361
+ }, N = 8, be = .3;
362
+ function xe({ shape: e }) {
363
363
  switch (e) {
364
364
  case "line": return /* @__PURE__ */ E("path", {
365
365
  d: "M0 4 H8",
@@ -370,7 +370,7 @@ function ye({ shape: e }) {
370
370
  width: 8,
371
371
  height: 8,
372
372
  fill: "currentColor",
373
- opacity: ve
373
+ opacity: be
374
374
  }), /* @__PURE__ */ E("path", {
375
375
  d: "M0 4 H8",
376
376
  stroke: "currentColor",
@@ -401,7 +401,7 @@ function P({ tone: e, shape: t = "swatch", children: n }) {
401
401
  viewBox: `0 0 ${N} ${N}`,
402
402
  focusable: "false",
403
403
  className: "x1lliihq x1xc55vz xdk7pt x1rea2x4",
404
- children: /* @__PURE__ */ E(ye, { shape: t })
404
+ children: /* @__PURE__ */ E(xe, { shape: t })
405
405
  });
406
406
  return /* @__PURE__ */ E("span", {
407
407
  "aria-hidden": !0,
@@ -411,7 +411,7 @@ function P({ tone: e, shape: t = "swatch", children: n }) {
411
411
  });
412
412
  }
413
413
  // packages/charts/src/chart-series-summary.tsx
414
- function be({ series: e, values: r }) {
414
+ function Se({ series: e, values: r }) {
415
415
  return Object.keys(r).length === e.length && e.every((e) => Object.hasOwn(r, e.id)) ? /* @__PURE__ */ E("dl", {
416
416
  "aria-label": "Period summary",
417
417
  className: "x78zum5 x1a02dak xaml1ju x1ghz6dp xeuugli",
@@ -436,9 +436,20 @@ function be({ series: e, values: r }) {
436
436
  children: "Period values must match the chart series identifiers."
437
437
  });
438
438
  }
439
+ // packages/charts/src/figure/caption-scope.tsx
440
+ var F = h(!1);
441
+ function Ce({ children: e }) {
442
+ return /* @__PURE__ */ E(F, {
443
+ value: !0,
444
+ children: e
445
+ });
446
+ }
447
+ function I() {
448
+ return g(F);
449
+ }
439
450
  // packages/charts/src/chart-frame.tsx
440
- function xe({ title: t, description: n, children: r, actions: i, footer: a, report: o, series: s = [], figure: c = {}, seriesLegend: l, scaleLegend: u }) {
441
- let f = h(), g = /* @__PURE__ */ D(T, { children: [
451
+ function we({ title: t, description: n, children: r, actions: i, footer: a, report: o, series: s = [], figure: c = {}, seriesLegend: l, scaleLegend: u }) {
452
+ let f = _(), h = I() && i === void 0, g = /* @__PURE__ */ D(T, { children: [
442
453
  l !== void 0 && /* @__PURE__ */ E("div", {
443
454
  className: "xeuugli x1jfksii",
444
455
  children: l
@@ -454,13 +465,13 @@ function xe({ title: t, description: n, children: r, actions: i, footer: a, repo
454
465
  })
455
466
  ] });
456
467
  if (o !== void 0) {
457
- let e = o.seriesValues === void 0 ? o.summary : /* @__PURE__ */ E(be, {
468
+ let e = o.seriesValues === void 0 ? o.summary : /* @__PURE__ */ E(Se, {
458
469
  series: s,
459
470
  values: o.seriesValues
460
471
  }), r = e != null && e !== !1, a = m.toArray([o.actions, i]).length > 0, l = /* @__PURE__ */ D(T, { children: [o.actions, i] });
461
472
  return /* @__PURE__ */ D("figure", {
462
473
  ...p(c, { "aria-labelledby": f }, { className: "xeuugli x1ghz6dp xbixft xpvm0e4 x1hz01jw xtqrqnz xj57cvi x1778rvt xmkeg23 x1y0btm7 x1ey3b81" }),
463
- children: [/* @__PURE__ */ E("figcaption", { children: /* @__PURE__ */ E(ge, {
474
+ children: [/* @__PURE__ */ E("figcaption", { children: /* @__PURE__ */ E(ve, {
464
475
  id: f,
465
476
  title: t,
466
477
  meta: o.meta,
@@ -484,7 +495,10 @@ function xe({ title: t, description: n, children: r, actions: i, footer: a, repo
484
495
  return /* @__PURE__ */ D("figure", {
485
496
  ...p(c, { "aria-labelledby": f }, { className: "xeuugli x1ghz6dp xbixft xpvm0e4 x1hz01jw xtqrqnz xj57cvi x1778rvt" }),
486
497
  children: [/* @__PURE__ */ D("figcaption", {
487
- className: "x78zum5 x1a02dak x1qughib x7a106z x1n8ia3y x1wv5www",
498
+ ...{
499
+ 0: { className: "x78zum5 x1a02dak x1qughib x7a106z x1n8ia3y x1wv5www" },
500
+ 1: { className: "x78zum5 x1a02dak x1qughib x7a106z x1n8ia3y x18d9i69" }
501
+ }[!!h | 0],
488
502
  children: [/* @__PURE__ */ D("div", {
489
503
  className: "x1cqoux5 xeuugli xj0a0fe",
490
504
  children: [/* @__PURE__ */ E("p", {
@@ -502,7 +516,7 @@ function xe({ title: t, description: n, children: r, actions: i, footer: a, repo
502
516
  }), g]
503
517
  });
504
518
  }
505
- function Se({ items: e, label: t = "Legend", isScrollable: n = !1 }) {
519
+ function Te({ items: e, label: t = "Legend", isScrollable: n = !1 }) {
506
520
  return /* @__PURE__ */ E("ul", {
507
521
  "aria-label": t,
508
522
  ...{
@@ -521,7 +535,7 @@ function Se({ items: e, label: t = "Legend", isScrollable: n = !1 }) {
521
535
  }, e.id))
522
536
  });
523
537
  }
524
- function Ce({ children: e, id: t }) {
538
+ function Ee({ children: e, id: t }) {
525
539
  return /* @__PURE__ */ E("p", {
526
540
  id: t,
527
541
  className: "x1ghz6dp xeuugli x1mqbd49 xbixft xy8obcc xas2l8k xss6m8b xj0a0fe",
@@ -529,42 +543,42 @@ function Ce({ children: e, id: t }) {
529
543
  });
530
544
  }
531
545
  // packages/charts/src/plot/ticks.ts
532
- var F = 10, I = 5, L = 2, R = 200, we = 3, Te = Math.sqrt(50), Ee = Math.sqrt(10), De = Math.sqrt(L), Oe = [
546
+ var L = 10, De = 5, R = 2, Oe = 200, ke = 3, Ae = Math.sqrt(50), je = Math.sqrt(10), Me = Math.sqrt(R), Ne = [
533
547
  1,
534
- L,
535
- I
548
+ R,
549
+ De
536
550
  ];
537
- function ke(e) {
538
- return e >= Te ? F : e >= Ee ? I : e >= De ? L : 1;
551
+ function Pe(e) {
552
+ return e >= Ae ? L : e >= je ? De : e >= Me ? R : 1;
539
553
  }
540
554
  function z(e, t) {
541
555
  let [n, r] = e;
542
556
  if (!(t > 0) || !(r > n)) return [];
543
- let i = (r - n) / t, a = Math.floor(Math.log10(i)), o = ke(i / F ** a), s = a < 0, c = s ? F ** -a / o : F ** a * o, l = s ? n * c : n / c, u = s ? r * c : r / c, d = Math.ceil(l - 2 ** -52 * Math.abs(l)), f = Math.floor(u + 2 ** -52 * Math.abs(u)), p = Math.max(0, Math.min(R, f - d + 1));
557
+ let i = (r - n) / t, a = Math.floor(Math.log10(i)), o = Pe(i / L ** a), s = a < 0, c = s ? L ** -a / o : L ** a * o, l = s ? n * c : n / c, u = s ? r * c : r / c, d = Math.ceil(l - 2 ** -52 * Math.abs(l)), f = Math.floor(u + 2 ** -52 * Math.abs(u)), p = Math.max(0, Math.min(Oe, f - d + 1));
544
558
  return Array.from({ length: p }, (e, t) => s ? (d + t) / c : (d + t) * c);
545
559
  }
546
560
  function B(e, t) {
547
561
  let [n, r] = e;
548
562
  if (!(n > 0) || !(r > n)) return [];
549
- let i = Math.floor(Math.log10(n)), a = Math.ceil(Math.log10(r)), o = Array.from({ length: a - i + 1 }, (e, t) => i + t), s = o.filter((e) => F ** e >= n && F ** e <= r);
550
- if (s.length >= Math.min(t, we)) {
563
+ let i = Math.floor(Math.log10(n)), a = Math.ceil(Math.log10(r)), o = Array.from({ length: a - i + 1 }, (e, t) => i + t), s = o.filter((e) => L ** e >= n && L ** e <= r);
564
+ if (s.length >= Math.min(t, ke)) {
551
565
  let e = Math.max(1, Math.ceil(s.length / Math.max(1, t)));
552
- return s.filter((t, n) => n % e === 0).map((e) => F ** e);
566
+ return s.filter((t, n) => n % e === 0).map((e) => L ** e);
553
567
  }
554
- return o.flatMap((e) => Oe.map((t) => t * F ** e)).filter((e) => e >= n && e <= r);
568
+ return o.flatMap((e) => Ne.map((t) => t * L ** e)).filter((e) => e >= n && e <= r);
555
569
  }
556
- function Ae(e, t) {
557
- let [n, r] = e, i = Math.max(1, Math.floor(t / L)), a = r > 1 ? B([1, r], i).filter((e) => Number.isInteger(Math.log10(e))) : [];
570
+ function Fe(e, t) {
571
+ let [n, r] = e, i = Math.max(1, Math.floor(t / R)), a = r > 1 ? B([1, r], i).filter((e) => Number.isInteger(Math.log10(e))) : [];
558
572
  return [
559
573
  ...(n < -1 ? B([1, -n], i).filter((e) => Number.isInteger(Math.log10(e))) : []).map((e) => -e).toReversed(),
560
574
  ...n <= 0 && r >= 0 ? [0] : [],
561
575
  ...a
562
576
  ].filter((e) => e >= n && e <= r);
563
577
  }
564
- function je({ domain: e, type: t = "linear", count: n }) {
565
- return t === "log" ? B(e, n) : t === "symlog" ? Ae(e, n) : z(e, n);
578
+ function V({ domain: e, type: t = "linear", count: n }) {
579
+ return t === "log" ? B(e, n) : t === "symlog" ? Fe(e, n) : z(e, n);
566
580
  }
567
- var V = 1e3, H = {
581
+ var H = 1e3, U = {
568
582
  second: 1,
569
583
  fiveSeconds: 5,
570
584
  quarterMinute: 15,
@@ -586,50 +600,50 @@ var V = 1e3, H = {
586
600
  twoYears: 63072e3,
587
601
  fiveYears: 15768e4,
588
602
  decade: 31536e4
589
- }, Me = H.day * V, Ne = H.week * V;
590
- function Pe({ domain: e, count: t, zoneOffset: n }) {
603
+ }, Ie = U.day * H, Le = U.week * H;
604
+ function Re({ domain: e, count: t, zoneOffset: n }) {
591
605
  let [r, i] = e;
592
606
  if (!(t > 0) || !(i > r)) return [];
593
- let a = (i - r) / t, o = Object.values(H).map((e) => e * V).find((e) => e >= a) ?? H.year * V, s = o > Ne ? Math.ceil((r + n) / Me) * Me : 0, c = s + Math.ceil((r + n - s) / o) * o, l = Math.max(0, Math.min(R, Math.floor((i + n - c) / o) + 1));
607
+ let a = (i - r) / t, o = Object.values(U).map((e) => e * H).find((e) => e >= a) ?? U.year * H, s = o > Le ? Math.ceil((r + n) / Ie) * Ie : 0, c = s + Math.ceil((r + n - s) / o) * o, l = Math.max(0, Math.min(Oe, Math.floor((i + n - c) / o) + 1));
594
608
  return Array.from({ length: l }, (e, t) => c + t * o - n);
595
609
  }
596
610
  // packages/charts/src/plot/plot-layout.ts
597
- var Fe = {
611
+ var ze = {
598
612
  compact: 160,
599
613
  regular: 260,
600
614
  tall: 380
601
- }, U = 7, Ie = 12, Le = 44, Re = 20, ze = 28, Be = 24, Ve = 12, He = 20, W = .4, Ue = .5, We = 2, Ge = 3, Ke = 120, qe = 6, Je = .4, Ye = Array.from({ length: 4 }, (e, t) => t + 1), G = 10, K = 96, q = 56, Xe = 3, Ze = .2, Qe = 16, $e = 14, et = "\n", tt = {
615
+ }, W = 7, Be = 12, Ve = 44, He = 20, Ue = 28, We = 24, Ge = 12, Ke = 20, G = .4, qe = .5, Je = 2, Ye = 3, Xe = 120, Ze = 6, Qe = .4, $e = Array.from({ length: 4 }, (e, t) => t + 1), K = 10, q = 96, J = 56, et = 3, tt = .2, nt = 16, rt = 14, it = "\n", at = {
602
616
  linear: void 0,
603
617
  log: "log scale",
604
618
  symlog: "symmetric log scale"
605
619
  };
606
- function nt(e) {
607
- let t = tt[e.scale ?? "linear"];
620
+ function ot(e) {
621
+ let t = at[e.scale ?? "linear"];
608
622
  return t === void 0 ? e.label : `${e.label} (${t})`;
609
623
  }
610
- function rt({ values: e, isZeroBased: t = !1, scale: n = "linear" }) {
624
+ function st({ values: e, isZeroBased: t = !1, scale: n = "linear" }) {
611
625
  let r = e.flatMap((e) => e !== null && Number.isFinite(e) ? [e] : []), i = t && n !== "log" ? [...r, 0] : r;
612
- if (i.length === 0) return n === "log" ? [1, G] : [0, 1];
626
+ if (i.length === 0) return n === "log" ? [1, K] : [0, 1];
613
627
  let a = Math.min(...i), o = Math.max(...i);
614
628
  if (n === "log") {
615
- let e = G ** Math.floor(Math.log10(Math.max(a, Number.MIN_VALUE))), t = G ** Math.ceil(Math.log10(Math.max(o, Number.MIN_VALUE)));
616
- return [e, t > e ? t : e * G];
629
+ let e = K ** Math.floor(Math.log10(Math.max(a, Number.MIN_VALUE))), t = K ** Math.ceil(Math.log10(Math.max(o, Number.MIN_VALUE)));
630
+ return [e, t > e ? t : e * K];
617
631
  }
618
632
  if (a === o) return [a - 1, o + 1];
619
633
  if (n === "symlog") return [a, o];
620
- let [s, c] = z([a, o], Xe), l = s === void 0 || c === void 0 ? o - a : c - s;
634
+ let [s, c] = z([a, o], et), l = s === void 0 || c === void 0 ? o - a : c - s;
621
635
  return [Math.floor(a / l) * l, Math.ceil(o / l) * l];
622
636
  }
623
- function J({ width: e, valueLabels: t, hasXTitle: n, hasYTitle: r, leftShare: i = W }) {
624
- let a = Math.max(0, ...t.map((e) => e.length)) * U + Ie + (r ? ze : 0);
637
+ function Y({ width: e, valueLabels: t, hasXTitle: n, hasYTitle: r, leftShare: i = G }) {
638
+ let a = Math.max(0, ...t.map((e) => e.length)) * W + Be + (r ? Ue : 0);
625
639
  return {
626
- top: Ve,
627
- right: He,
628
- bottom: Be + (n ? Re : 0),
629
- left: Math.min(Math.max(Le, a), e * i)
640
+ top: Ge,
641
+ right: Ke,
642
+ bottom: We + (n ? He : 0),
643
+ left: Math.min(Math.max(Ve, a), e * i)
630
644
  };
631
645
  }
632
- function Y({ width: e, height: t, margins: n }) {
646
+ function X({ width: e, height: t, margins: n }) {
633
647
  let r = Math.max(n.left, e - n.right), i = Math.max(n.top, t - n.bottom);
634
648
  return {
635
649
  width: e,
@@ -642,10 +656,10 @@ function Y({ width: e, height: t, margins: n }) {
642
656
  innerHeight: i - n.top
643
657
  };
644
658
  }
645
- function it(e) {
659
+ function ct(e) {
646
660
  return new Set(e).size === e.length;
647
661
  }
648
- function X(e, t) {
662
+ function lt(e, t) {
649
663
  return {
650
664
  ...e,
651
665
  minimumSignificantDigits: void 0,
@@ -654,7 +668,7 @@ function X(e, t) {
654
668
  maximumFractionDigits: Math.max(e.maximumFractionDigits ?? 0, t)
655
669
  };
656
670
  }
657
- function at(e, t) {
671
+ function ut(e, t) {
658
672
  return !t || typeof e == "function" || e.style !== "unit" ? e : {
659
673
  ...e,
660
674
  style: "decimal",
@@ -662,30 +676,30 @@ function at(e, t) {
662
676
  unitDisplay: void 0
663
677
  };
664
678
  }
665
- function ot({ values: e, axis: t, locale: n, hasTitle: r }) {
666
- let i = at(t.tickFormat ?? o(t.format), r), a = at(t.format, r), s = (typeof i == "function" ? [i] : [
679
+ function dt({ values: e, axis: t, locale: n, hasTitle: r }) {
680
+ let i = ut(t.tickFormat ?? o(t.format), r), a = ut(t.format, r), s = (typeof i == "function" ? [i] : [
667
681
  i,
668
- ...Ye.map((e) => X(i, e)),
669
- ...typeof a == "function" ? [] : Ye.map((e) => X(a, e))
682
+ ...$e.map((e) => lt(i, e)),
683
+ ...typeof a == "function" ? [] : $e.map((e) => lt(a, e))
670
684
  ]).map((t) => e.map((e) => c({
671
685
  value: e,
672
686
  locale: n,
673
687
  format: t
674
688
  })));
675
- return s.find(it) ?? s.at(-1) ?? [];
689
+ return s.find(ct) ?? s.at(-1) ?? [];
676
690
  }
677
691
  function Z(e) {
678
- return e > Ke ? Ge : We;
692
+ return e > Xe ? Ye : Je;
679
693
  }
680
694
  function Q({ axis: e, domain: t, length: n, spacing: r, locale: i, hasTitle: a }) {
681
- let o = Z(n), s = Math.max(o, Math.round(n / r)), c = Array.from({ length: qe }, (n, r) => je({
695
+ let o = Z(n), s = Math.max(o, Math.round(n / r)), c = Array.from({ length: Ze }, (n, r) => V({
682
696
  domain: t,
683
697
  type: e.scale,
684
698
  count: s + r
685
- })).filter((e, t) => t === 0 || e.length * r * Je <= n), l = c.filter((e) => e.length >= o), u = l.find((e) => e[0] === t[0] && e.at(-1) === t[1]), d = l[0] ?? c[0] ?? [], f = u ?? d;
699
+ })).filter((e, t) => t === 0 || e.length * r * Qe <= n), l = c.filter((e) => e.length >= o), u = l.find((e) => e[0] === t[0] && e.at(-1) === t[1]), d = l[0] ?? c[0] ?? [], f = u ?? d;
686
700
  return {
687
701
  values: f,
688
- labels: ot({
702
+ labels: dt({
689
703
  values: f,
690
704
  axis: e,
691
705
  locale: i,
@@ -700,17 +714,17 @@ function $(e, t) {
700
714
  label: t.labels[r] ?? ""
701
715
  }));
702
716
  }
703
- function st(e) {
717
+ function ft(e) {
704
718
  let t = e.split(" ");
705
719
  return t.slice(1).map((e, n) => {
706
720
  let r = t.slice(0, n + 1).join(" "), i = t.slice(n + 1).join(" ");
707
721
  return {
708
- text: `${r}${et}${i}`,
722
+ text: `${r}${it}${i}`,
709
723
  longest: Math.max(r.length, i.length)
710
724
  };
711
725
  }).toSorted((e, t) => e.longest - t.longest)[0]?.text ?? e;
712
726
  }
713
- function ct(e, t) {
727
+ function pt(e, t) {
714
728
  return t.flatMap((t) => {
715
729
  let n = e.center(t.id);
716
730
  return n === void 0 ? [] : [{
@@ -720,20 +734,20 @@ function ct(e, t) {
720
734
  }];
721
735
  });
722
736
  }
723
- function lt({ width: e, height: t, x: n, y: r, xDomain: i, yDomain: a, locale: o, rightGutter: s = 0 }) {
737
+ function mt({ width: e, height: t, x: n, y: r, xDomain: i, yDomain: a, locale: o, rightGutter: s = 0 }) {
724
738
  let c = Q({
725
739
  axis: r,
726
740
  domain: a,
727
741
  length: t,
728
- spacing: q,
742
+ spacing: J,
729
743
  locale: o,
730
744
  hasTitle: !0
731
- }), u = J({
745
+ }), u = Y({
732
746
  width: e,
733
747
  valueLabels: c.labels,
734
748
  hasXTitle: !0,
735
749
  hasYTitle: !0
736
- }), d = Y({
750
+ }), d = X({
737
751
  width: e,
738
752
  height: t,
739
753
  margins: {
@@ -744,7 +758,7 @@ function lt({ width: e, height: t, x: n, y: r, xDomain: i, yDomain: a, locale: o
744
758
  axis: n,
745
759
  domain: i,
746
760
  length: d.innerWidth,
747
- spacing: K,
761
+ spacing: q,
748
762
  locale: o,
749
763
  hasTitle: !0
750
764
  }), p = l({
@@ -764,25 +778,25 @@ function lt({ width: e, height: t, x: n, y: r, xDomain: i, yDomain: a, locale: o
764
778
  yTicks: $(m, c)
765
779
  };
766
780
  }
767
- function ut({ width: e, height: t, direction: n, categories: r, value: i, valueDomain: a, locale: o, padding: s = Ze, topInset: c = 0, rightGutter: d = 0, hasValueTitle: f = !0 }) {
781
+ function ht({ width: e, height: t, direction: n, categories: r, value: i, valueDomain: a, locale: o, padding: s = tt, topInset: c = 0, rightGutter: d = 0, hasValueTitle: f = !0 }) {
768
782
  let p = r.map((e) => e.id), m = n === "columns", h = Q({
769
783
  axis: i,
770
784
  domain: a,
771
785
  length: m ? t : e,
772
- spacing: m ? q : K,
786
+ spacing: m ? J : q,
773
787
  locale: o,
774
788
  hasTitle: f
775
- }), g = J({
789
+ }), g = Y({
776
790
  width: e,
777
791
  valueLabels: m ? h.labels : r.map((e) => e.label),
778
792
  hasXTitle: !m && f,
779
793
  hasYTitle: m && f,
780
- leftShare: m ? W : Ue
794
+ leftShare: m ? G : qe
781
795
  }), _ = {
782
796
  ...g,
783
797
  top: g.top + c,
784
798
  right: g.right + d
785
- }, v = Y({
799
+ }, v = X({
786
800
  width: e,
787
801
  height: t,
788
802
  margins: _
@@ -790,41 +804,41 @@ function ut({ width: e, height: t, direction: n, categories: r, value: i, valueD
790
804
  ids: p,
791
805
  range: [v.left, v.right],
792
806
  padding: s
793
- }).step - Qe, b = r.some((e) => e.label.length * U > y), x = r.map((e) => ({
807
+ }).step - nt, ee = r.some((e) => e.label.length * W > y), b = r.map((e) => ({
794
808
  ...e,
795
- label: st(e.label)
796
- })), S = m && b && x.every((e) => e.label.split(et).every((e) => e.length * U <= y)), C = S ? Y({
809
+ label: ft(e.label)
810
+ })), x = m && ee && b.every((e) => e.label.split(it).every((e) => e.length * W <= y)), S = x ? X({
797
811
  width: e,
798
812
  height: t,
799
813
  margins: {
800
814
  ..._,
801
- bottom: _.bottom + $e
815
+ bottom: _.bottom + rt
802
816
  }
803
- }) : v, w = u({
817
+ }) : v, C = u({
804
818
  ids: p,
805
- range: m ? [C.left, C.right] : [C.top, C.bottom],
819
+ range: m ? [S.left, S.right] : [S.top, S.bottom],
806
820
  padding: s
807
- }), T = l({
821
+ }), w = l({
808
822
  type: i.scale,
809
823
  domain: a,
810
- range: m ? [C.bottom, C.top] : [C.left, C.right]
824
+ range: m ? [S.bottom, S.top] : [S.left, S.right]
811
825
  });
812
826
  return {
813
- box: C,
814
- band: w,
815
- value: T,
816
- bandTicks: ct(w, S ? x : r),
817
- valueTicks: $(T, h)
827
+ box: S,
828
+ band: C,
829
+ value: w,
830
+ bandTicks: pt(C, x ? b : r),
831
+ valueTicks: $(w, h)
818
832
  };
819
833
  }
820
- function dt({ height: e, axes: t, locale: n, hasValueTitle: r = !1 }) {
821
- return J({
834
+ function gt({ height: e, axes: t, locale: n, hasValueTitle: r = !1 }) {
835
+ return Y({
822
836
  width: Infinity,
823
837
  valueLabels: t.flatMap(({ axis: t, domain: i }) => Q({
824
838
  axis: t,
825
839
  domain: i,
826
840
  length: e,
827
- spacing: q,
841
+ spacing: J,
828
842
  locale: n,
829
843
  hasTitle: r
830
844
  }).labels),
@@ -832,20 +846,20 @@ function dt({ height: e, axes: t, locale: n, hasValueTitle: r = !1 }) {
832
846
  hasYTitle: r
833
847
  }).left;
834
848
  }
835
- function ft({ width: e, height: t, value: n, valueDomain: r, timeDomain: i, timeFormat: a, locale: o, topInset: s = 0, gutter: c = 0, hasValueTitle: u = !1 }) {
849
+ function _t({ width: e, height: t, value: n, valueDomain: r, timeDomain: i, timeFormat: a, locale: o, topInset: s = 0, gutter: c = 0, hasValueTitle: u = !1 }) {
836
850
  let d = Q({
837
851
  axis: n,
838
852
  domain: r,
839
853
  length: t,
840
- spacing: q,
854
+ spacing: J,
841
855
  locale: o,
842
856
  hasTitle: u
843
- }), f = J({
857
+ }), f = Y({
844
858
  width: e,
845
859
  valueLabels: d.labels,
846
860
  hasXTitle: !1,
847
861
  hasYTitle: u
848
- }), p = Math.min(Math.max(f.left, c), e * W), m = Y({
862
+ }), p = Math.min(Math.max(f.left, c), e * G), m = X({
849
863
  width: e,
850
864
  height: t,
851
865
  margins: {
@@ -865,7 +879,7 @@ function ft({ width: e, height: t, value: n, valueDomain: r, timeDomain: i, time
865
879
  box: m,
866
880
  x: h,
867
881
  y: g,
868
- xTicks: $(h, mt({
882
+ xTicks: $(h, yt({
869
883
  domain: i,
870
884
  length: m.innerWidth,
871
885
  timeFormat: a,
@@ -874,7 +888,7 @@ function ft({ width: e, height: t, value: n, valueDomain: r, timeDomain: i, time
874
888
  yTicks: $(g, d)
875
889
  };
876
890
  }
877
- var pt = [
891
+ var vt = [
878
892
  {
879
893
  month: "short",
880
894
  day: "numeric"
@@ -891,12 +905,12 @@ var pt = [
891
905
  second: "2-digit"
892
906
  }
893
907
  ];
894
- function mt({ domain: e, length: t, timeFormat: n, locale: r, timeZone: i }) {
895
- let o = typeof n == "function" ? i : n.timeZone, c = o === void 0 ? 0 : a(e[0], o), l = Z(t), u = Math.max(l, Math.round(t / K)), d = Array.from({ length: qe }, (t, n) => Pe({
908
+ function yt({ domain: e, length: t, timeFormat: n, locale: r, timeZone: i }) {
909
+ let o = typeof n == "function" ? i : n.timeZone, c = o === void 0 ? 0 : a(e[0], o), l = Z(t), u = Math.max(l, Math.round(t / q)), d = Array.from({ length: Ze }, (t, n) => Re({
896
910
  domain: e,
897
911
  count: u + n,
898
912
  zoneOffset: c
899
- })), f = d.find((e) => e.length >= l) ?? d[0] ?? [], p = (typeof n == "function" ? [n] : [n, ...pt.map((e) => ({
913
+ })), f = d.find((e) => e.length >= l) ?? d[0] ?? [], p = (typeof n == "function" ? [n] : [n, ...vt.map((e) => ({
900
914
  ...e,
901
915
  ...n
902
916
  }))]).map((e) => f.map((t) => s({
@@ -906,7 +920,7 @@ function mt({ domain: e, length: t, timeFormat: n, locale: r, timeZone: i }) {
906
920
  })));
907
921
  return {
908
922
  values: f,
909
- labels: p.find(it) ?? p.at(-1) ?? []
923
+ labels: p.find(ct) ?? p.at(-1) ?? []
910
924
  };
911
925
  }
912
- export { te as A, P as C, de as D, ue as E, pe as O, Ce as S, fe as T, je as _, rt as a, xe as b, Fe as c, Z as d, mt as f, B as g, z as h, ut as i, me as k, J as l, dt as m, nt as n, lt as o, ft as p, ct as r, Y as s, Q as t, ot as u, Ae as v, ce as w, Se as x, Pe as y };
926
+ export { he as A, Ce as C, me as D, ue as E, re as M, fe as O, Ee as S, P as T, V as _, st as a, we as b, ze as c, Z as d, yt as f, B as g, z as h, ht as i, ge as j, pe as k, Y as l, gt as m, ot as n, mt as o, _t as p, pt as r, X as s, Q as t, dt as u, Fe as v, I as w, Te as x, Re as y };