@actioneer/ads 0.6.0 → 0.7.0

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 (112) hide show
  1. package/components/ai-elements/agent-trace.d.ts +2 -2
  2. package/components/ai-elements/agent-trace.js +163 -104
  3. package/components/ai-elements/chain-of-thought.d.ts +2 -2
  4. package/components/ai-elements/chain-of-thought.js +1 -1
  5. package/components/ai-elements/index.d.ts +0 -5
  6. package/components/ai-elements/inline-citation.js +1 -1
  7. package/components/alert.d.ts +6 -6
  8. package/components/alert.js +89 -53
  9. package/components/answer-sources.d.ts +2 -6
  10. package/components/answer-sources.js +58 -60
  11. package/components/answer.d.ts +5 -0
  12. package/components/answer.js +311 -271
  13. package/components/assistant-ui/composer-harness.js +15 -20
  14. package/components/assistant-ui/composer.d.ts +3 -1
  15. package/components/assistant-ui/composer.js +148 -144
  16. package/components/assistant-ui/index.d.ts +0 -3
  17. package/components/assistant-ui/thread-context.d.ts +3 -1
  18. package/components/assistant-ui/thread.js +50 -42
  19. package/components/avatar.js +42 -42
  20. package/components/badge.d.ts +5 -6
  21. package/components/badge.js +13 -76
  22. package/components/body-page-header.d.ts +15 -0
  23. package/components/body-page-header.js +24 -0
  24. package/components/brand-loader.d.ts +0 -3
  25. package/components/brand-loader.js +10 -32
  26. package/components/breadcrumbs.d.ts +0 -7
  27. package/components/breadcrumbs.js +54 -71
  28. package/components/button.d.ts +1 -1
  29. package/components/button.js +55 -49
  30. package/components/chart.js +298 -296
  31. package/components/chip.d.ts +13 -1
  32. package/components/chip.js +93 -80
  33. package/components/collection-header.d.ts +17 -0
  34. package/components/collection-header.js +31 -0
  35. package/components/connector-card.d.ts +6 -6
  36. package/components/connector-card.js +31 -32
  37. package/components/date-range-picker.d.ts +2 -1
  38. package/components/date-range-picker.js +158 -122
  39. package/components/drawer.d.ts +19 -3
  40. package/components/drawer.js +109 -100
  41. package/components/dropdown.d.ts +1 -2
  42. package/components/dropdown.js +88 -89
  43. package/components/field.js +39 -34
  44. package/components/file-dropzone.js +1 -1
  45. package/components/index.d.ts +4 -4
  46. package/components/index.js +499 -546
  47. package/components/infinite-canvas.js +24 -24
  48. package/components/input-field.d.ts +18 -3
  49. package/components/input-field.js +88 -72
  50. package/components/input.js +16 -15
  51. package/components/modal.d.ts +31 -3
  52. package/components/modal.js +243 -169
  53. package/components/number-field.js +45 -42
  54. package/components/page-body.d.ts +12 -0
  55. package/components/page-body.js +18 -0
  56. package/components/pagination.js +36 -36
  57. package/components/select.d.ts +21 -0
  58. package/components/select.js +189 -148
  59. package/components/setting-row.d.ts +6 -5
  60. package/components/setting-row.js +33 -32
  61. package/components/sidebar.d.ts +2 -0
  62. package/components/sidebar.js +165 -155
  63. package/components/skeleton.js +8 -7
  64. package/components/slider.js +1 -1
  65. package/components/surface-loader.d.ts +11 -0
  66. package/components/surface-loader.js +35 -0
  67. package/components/table.d.ts +16 -10
  68. package/components/table.js +426 -410
  69. package/components/tabs.d.ts +2 -0
  70. package/components/tabs.js +159 -294
  71. package/components/textarea.js +9 -9
  72. package/components/toast.d.ts +1 -1
  73. package/components/toast.js +181 -118
  74. package/components/tree.d.ts +5 -1
  75. package/components/tree.js +54 -49
  76. package/components/typography.d.ts +4 -4
  77. package/components/typography.js +13 -13
  78. package/components/ui/button.d.ts +1 -1
  79. package/components/ui/dialog.js +33 -33
  80. package/demo/components/add-to-artifact.js +6 -10
  81. package/lib/cn.js +11 -4
  82. package/lib/icons.d.ts +4 -0
  83. package/lib/icons.js +107 -106
  84. package/lib/interactive.d.ts +1 -1
  85. package/llms.txt +95 -152
  86. package/manifest.json +1628 -2729
  87. package/package.json +1 -2
  88. package/styles.css +347 -223
  89. package/theme.css +303 -177
  90. package/components/agent-icon.d.ts +0 -76
  91. package/components/agent-icon.js +0 -265
  92. package/components/ai-elements/queue.d.ts +0 -60
  93. package/components/ai-elements/queue.js +0 -193
  94. package/components/ai-elements/speech-input.d.ts +0 -16
  95. package/components/ai-elements/speech-input.js +0 -151
  96. package/components/ai-elements/task-progress.d.ts +0 -41
  97. package/components/ai-elements/task-progress.js +0 -224
  98. package/components/ai-elements/task.d.ts +0 -39
  99. package/components/ai-elements/task.js +0 -105
  100. package/components/ai-elements/voice.d.ts +0 -90
  101. package/components/ai-elements/voice.js +0 -496
  102. package/components/assistant-ui/follow-up-suggestions.d.ts +0 -11
  103. package/components/assistant-ui/follow-up-suggestions.js +0 -72
  104. package/components/assistant-ui/suggestions.d.ts +0 -7
  105. package/components/assistant-ui/suggestions.js +0 -19
  106. package/components/assistant-ui/voice.d.ts +0 -18
  107. package/components/link.d.ts +0 -14
  108. package/components/link.js +0 -72
  109. package/components/navbar.d.ts +0 -15
  110. package/components/navbar.js +0 -68
  111. package/components/pixel-icon.d.ts +0 -37
  112. package/components/pixel-icon.js +0 -859
@@ -1,61 +1,61 @@
1
1
  "use client";
2
2
  import { jsxs as A, jsx as e, Fragment as K } from "react/jsx-runtime";
3
3
  import * as R from "react";
4
- import { ResponsiveContainer as j, LineChart as be, Tooltip as O, Line as se, AreaChart as pe, Area as Ne, CartesianGrid as te, XAxis as ne, YAxis as U, BarChart as we, Bar as ce, Cell as de, ComposedChart as Ae, ScatterChart as Ce, Scatter as ye, PieChart as Re, Pie as ke, RadarChart as Me, PolarGrid as $e, PolarAngleAxis as ue, PolarRadiusAxis as Se, Radar as Le, RadialBarChart as Fe, RadialBar as Oe, Treemap as Te, ReferenceArea as Ie, ReferenceLine as Be, ReferenceDot as De } from "recharts";
5
- import { MotionConfig as Ee, AnimatePresence as We, motion as ze } from "motion/react";
4
+ import { ResponsiveContainer as _, LineChart as pe, Tooltip as O, Line as se, AreaChart as Ne, Area as we, CartesianGrid as te, XAxis as re, YAxis as V, BarChart as Ae, Bar as ce, Cell as de, ComposedChart as Ce, ScatterChart as ye, Scatter as Re, PieChart as ke, Pie as Me, RadarChart as $e, PolarGrid as Se, PolarAngleAxis as ue, PolarRadiusAxis as Le, Radar as Fe, RadialBarChart as Oe, RadialBar as Te, Treemap as Ie, ReferenceArea as Be, ReferenceLine as De, ReferenceDot as Ee } from "recharts";
5
+ import { MotionConfig as We, AnimatePresence as ze, motion as _e } from "motion/react";
6
6
  import { cn as $ } from "../lib/cn.js";
7
7
  import { floatVariants as je } from "../lib/motion.js";
8
- const V = (t) => `var(--color-chart-${t % 6 + 1})`, ee = (t) => V(t), re = "var(--chart-context)", Y = 2.5, He = 2.5, W = {
8
+ const U = (t) => `var(--color-chart-${t % 6 + 1})`, ee = (t) => U(t), ne = "var(--chart-context)", me = { fillOpacity: "var(--chart-active-bar-opacity)" }, Y = 2.5, He = 2.5, W = {
9
9
  primary: { ref: "var(--brand)", pill: "bg-fill text-fill-foreground" },
10
10
  success: { ref: "var(--color-success-600)", pill: "bg-success-50 text-success-700" },
11
11
  warning: { ref: "var(--color-warning-500)", pill: "bg-warning-50 text-warning-700" },
12
12
  danger: { ref: "var(--color-danger-500)", pill: "bg-danger-50 text-danger-700" },
13
13
  info: { ref: "var(--color-info-500)", pill: "bg-info-50 text-info-700" }
14
- }, F = (t) => new Intl.NumberFormat("en-US", { notation: "compact", maximumFractionDigits: 1 }).format(t), me = (t, r) => {
14
+ }, F = (t) => new Intl.NumberFormat("en-US", { notation: "compact", maximumFractionDigits: 1 }).format(t), fe = (t, n) => {
15
15
  const a = [];
16
16
  for (const i of t)
17
17
  for (const o of Object.keys(i))
18
- o !== r && typeof i[o] == "number" && !a.includes(o) && a.push(o);
18
+ o !== n && typeof i[o] == "number" && !a.includes(o) && a.push(o);
19
19
  return a;
20
20
  };
21
- function D({ x: t, y: r, payload: a, anchor: i, dy: o, format: n }) {
22
- const l = (a == null ? void 0 : a.value) ?? "", x = n ? n(l) : l;
23
- return /* @__PURE__ */ e("text", { x: t, y: r, dy: o, textAnchor: i, className: "fill-tertiary text-xs tabular-nums", children: x });
21
+ function D({ x: t, y: n, payload: a, anchor: i, dy: o, format: r }) {
22
+ const l = (a == null ? void 0 : a.value) ?? "", x = r ? r(l) : l;
23
+ return /* @__PURE__ */ e("text", { x: t, y: n, dy: o, textAnchor: i, className: "fill-tertiary text-xs tabular-nums", children: x });
24
24
  }
25
- function fe({
25
+ function he({
26
26
  x: t,
27
- y: r,
27
+ y: n,
28
28
  value: a,
29
29
  hidden: i,
30
30
  color: o,
31
- format: n
31
+ format: r
32
32
  }) {
33
- if (i || t == null || r == null || a == null || a === "") return null;
33
+ if (i || t == null || n == null || a == null || a === "") return null;
34
34
  const l = Number(a);
35
35
  return Number.isNaN(l) ? null : /* @__PURE__ */ e(
36
36
  "text",
37
37
  {
38
38
  x: Number(t),
39
- y: Number(r) - 10,
39
+ y: Number(n) - 10,
40
40
  textAnchor: "middle",
41
41
  fill: o,
42
42
  className: $(!o && "fill-secondary", "text-xs tabular-nums"),
43
- children: n(l)
43
+ children: r(l)
44
44
  }
45
45
  );
46
46
  }
47
47
  function E({
48
48
  cx: t,
49
- cy: r,
49
+ cy: n,
50
50
  color: a,
51
51
  active: i = !1
52
52
  }) {
53
- return t == null || r == null ? null : /* @__PURE__ */ e(
53
+ return t == null || n == null ? null : /* @__PURE__ */ e(
54
54
  "circle",
55
55
  {
56
56
  "aria-hidden": !0,
57
57
  cx: t,
58
- cy: r,
58
+ cy: n,
59
59
  r: i ? 5.5 : 4,
60
60
  fill: "var(--background)",
61
61
  stroke: a,
@@ -65,17 +65,17 @@ function E({
65
65
  }
66
66
  function Pe({
67
67
  x: t,
68
- y: r,
68
+ y: n,
69
69
  width: a,
70
70
  height: i,
71
71
  value: o,
72
- format: n,
72
+ format: r,
73
73
  horizontal: l
74
74
  }) {
75
- if (t == null || r == null || o == null || o === "") return null;
75
+ if (t == null || n == null || o == null || o === "") return null;
76
76
  const x = Number(o);
77
77
  if (Number.isNaN(x)) return null;
78
- const c = Number(t), m = Number(r), u = Number(a ?? 0), N = Number(i ?? 0);
78
+ const c = Number(t), m = Number(n), u = Number(a ?? 0), N = Number(i ?? 0);
79
79
  return l ? /* @__PURE__ */ e(
80
80
  "text",
81
81
  {
@@ -84,7 +84,7 @@ function Pe({
84
84
  dy: "0.32em",
85
85
  textAnchor: "start",
86
86
  className: "fill-secondary text-xs tabular-nums",
87
- children: n(x)
87
+ children: r(x)
88
88
  }
89
89
  ) : /* @__PURE__ */ e(
90
90
  "text",
@@ -93,20 +93,20 @@ function Pe({
93
93
  y: m - 8,
94
94
  textAnchor: "middle",
95
95
  className: "fill-secondary text-xs tabular-nums",
96
- children: n(x)
96
+ children: r(x)
97
97
  }
98
98
  );
99
99
  }
100
100
  function T({
101
101
  active: t,
102
- payload: r,
102
+ payload: n,
103
103
  label: a,
104
104
  format: i,
105
105
  labelKey: o,
106
- renderer: n
106
+ renderer: r
107
107
  }) {
108
108
  var N, b;
109
- const l = (r ?? []).map((f, y) => {
109
+ const l = (n ?? []).map((f, y) => {
110
110
  const C = f.payload && typeof f.payload == "object" ? f.payload : void 0;
111
111
  return {
112
112
  key: f.dataKey ?? y,
@@ -121,7 +121,7 @@ function T({
121
121
  items: l,
122
122
  formatValue: i
123
123
  };
124
- if (n) return /* @__PURE__ */ e(K, { children: n(c) });
124
+ if (r) return /* @__PURE__ */ e(K, { children: r(c) });
125
125
  if (!c.active || !l.length) return null;
126
126
  const m = l.length === 1, u = c.label ?? (m ? l[0].name : void 0);
127
127
  return /* @__PURE__ */ A("div", { className: "rounded-md bg-foreground px-2.5 py-1.5 text-xs text-background", children: [
@@ -135,35 +135,35 @@ function T({
135
135
  ] }, f.key))
136
136
  ] });
137
137
  }
138
- const he = "pointer-events-none inline-flex min-h-4 items-center rounded-full px-2 py-0.5 text-xs font-normal whitespace-nowrap";
139
- function _e({
138
+ const xe = "pointer-events-none inline-flex min-h-4 items-center rounded-full px-2 py-0.5 text-xs font-normal whitespace-nowrap";
139
+ function Ge({
140
140
  viewBox: t,
141
- label: r,
141
+ label: n,
142
142
  value: a,
143
143
  color: i,
144
144
  axis: o
145
145
  }) {
146
- const n = t ?? {}, l = /* @__PURE__ */ A("span", { className: $(he, W[i].pill), children: [
147
- r,
146
+ const r = t ?? {}, l = /* @__PURE__ */ A("span", { className: $(xe, W[i].pill), children: [
147
+ n,
148
148
  a != null && /* @__PURE__ */ e("span", { className: "ml-1 tabular-nums", children: a })
149
149
  ] });
150
- return o === "y" ? /* @__PURE__ */ e("foreignObject", { x: n.x ?? 0, y: (n.y ?? 0) - 12, width: n.width ?? 0, height: 24, className: "overflow-visible", children: /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-end pr-1", children: l }) }) : /* @__PURE__ */ e("foreignObject", { x: (n.x ?? 0) - 90, y: (n.y ?? 0) - 12, width: 180, height: 24, className: "overflow-visible", children: /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: l }) });
150
+ return o === "y" ? /* @__PURE__ */ e("foreignObject", { x: r.x ?? 0, y: (r.y ?? 0) - 12, width: r.width ?? 0, height: 24, className: "overflow-visible", children: /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-end pr-1", children: l }) }) : /* @__PURE__ */ e("foreignObject", { x: (r.x ?? 0) - 90, y: (r.y ?? 0) - 12, width: 180, height: 24, className: "overflow-visible", children: /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center", children: l }) });
151
151
  }
152
- function Ge({ viewBox: t, label: r, color: a }) {
152
+ function Ve({ viewBox: t, label: n, color: a }) {
153
153
  const i = t ?? {};
154
- return /* @__PURE__ */ e("foreignObject", { x: i.x ?? 0, y: i.y ?? 0, width: i.width ?? 0, height: 28, className: "overflow-visible", children: /* @__PURE__ */ e("div", { className: "flex h-full items-center pl-1.5", children: /* @__PURE__ */ e("span", { className: $(he, W[a].pill), children: r }) }) });
154
+ return /* @__PURE__ */ e("foreignObject", { x: i.x ?? 0, y: i.y ?? 0, width: i.width ?? 0, height: 28, className: "overflow-visible", children: /* @__PURE__ */ e("div", { className: "flex h-full items-center pl-1.5", children: /* @__PURE__ */ e("span", { className: $(xe, W[a].pill), children: n }) }) });
155
155
  }
156
156
  function Ue({
157
157
  cx: t,
158
- cy: r,
158
+ cy: n,
159
159
  n: a,
160
160
  ann: i,
161
161
  onEnter: o,
162
- onLeave: n
162
+ onLeave: r
163
163
  }) {
164
164
  const [l, x] = R.useState(!1);
165
- if (t == null || r == null || !Number.isFinite(t) || !Number.isFinite(r)) return /* @__PURE__ */ e("g", {});
166
- const c = () => o({ ann: i, n: a, cx: t, cy: r }), m = () => n();
165
+ if (t == null || n == null || !Number.isFinite(t) || !Number.isFinite(n)) return /* @__PURE__ */ e("g", {});
166
+ const c = () => o({ ann: i, n: a, cx: t, cy: n }), m = () => r();
167
167
  return /* @__PURE__ */ A(
168
168
  "g",
169
169
  {
@@ -180,14 +180,14 @@ function Ue({
180
180
  x(!1), m();
181
181
  },
182
182
  children: [
183
- l && /* @__PURE__ */ e("circle", { cx: t, cy: r, r: 12, fill: "none", stroke: "var(--ring)", strokeWidth: 2 }),
184
- /* @__PURE__ */ e("circle", { cx: t, cy: r, r: 10, fill: "var(--background)" }),
185
- /* @__PURE__ */ e("circle", { cx: t, cy: r, r: 8, fill: W[i.color ?? "primary"].ref }),
183
+ l && /* @__PURE__ */ e("circle", { cx: t, cy: n, r: 12, fill: "none", stroke: "var(--ring)", strokeWidth: 2 }),
184
+ /* @__PURE__ */ e("circle", { cx: t, cy: n, r: 10, fill: "var(--background)" }),
185
+ /* @__PURE__ */ e("circle", { cx: t, cy: n, r: 8, fill: W[i.color ?? "primary"].ref }),
186
186
  /* @__PURE__ */ e(
187
187
  "text",
188
188
  {
189
189
  x: t,
190
- y: r,
190
+ y: n,
191
191
  dy: "0.35em",
192
192
  textAnchor: "middle",
193
193
  className: "pointer-events-none fill-brand-foreground text-xs font-medium select-none",
@@ -198,17 +198,17 @@ function Ue({
198
198
  }
199
199
  );
200
200
  }
201
- function Ve({ hovered: t, frameWidth: r, format: a }) {
202
- return /* @__PURE__ */ e(Ee, { reducedMotion: "user", children: /* @__PURE__ */ e(We, { children: t && /* @__PURE__ */ e(
201
+ function Ye({ hovered: t, frameWidth: n, format: a }) {
202
+ return /* @__PURE__ */ e(We, { reducedMotion: "user", children: /* @__PURE__ */ e(ze, { children: t && /* @__PURE__ */ e(
203
203
  "div",
204
204
  {
205
205
  className: "pointer-events-none absolute z-10",
206
206
  style: {
207
- left: Math.max(96, Math.min(t.cx, Math.max(r - 96, 96))),
207
+ left: Math.max(96, Math.min(t.cx, Math.max(n - 96, 96))),
208
208
  top: t.cy - 16
209
209
  },
210
210
  children: /* @__PURE__ */ A(
211
- ze.div,
211
+ _e.div,
212
212
  {
213
213
  variants: je,
214
214
  initial: "hidden",
@@ -240,8 +240,8 @@ function Ve({ hovered: t, frameWidth: r, format: a }) {
240
240
  }
241
241
  ) }) });
242
242
  }
243
- function xe(t, r) {
244
- const [a, i] = R.useState(null), o = R.useCallback(() => i(null), []), { back: n, front: l } = R.useMemo(() => {
243
+ function ve(t, n) {
244
+ const [a, i] = R.useState(null), o = R.useCallback(() => i(null), []), { back: r, front: l } = R.useMemo(() => {
245
245
  const x = [], c = [];
246
246
  let m = 0;
247
247
  return (t ?? []).forEach((u, N) => {
@@ -250,14 +250,14 @@ function xe(t, r) {
250
250
  const f = u.axis ?? "y";
251
251
  x.push(
252
252
  /* @__PURE__ */ e(
253
- Ie,
253
+ Be,
254
254
  {
255
255
  ...f === "y" ? { y1: u.from, y2: u.to } : { x1: u.from, x2: u.to },
256
256
  fill: W[b].ref,
257
257
  fillOpacity: 0.06,
258
258
  stroke: "none",
259
259
  ifOverflow: f === "y" ? "extendDomain" : "visible",
260
- label: u.label ? /* @__PURE__ */ e(Ge, { label: u.label, color: b }) : void 0
260
+ label: u.label ? /* @__PURE__ */ e(Ve, { label: u.label, color: b }) : void 0
261
261
  },
262
262
  `ann-${N}`
263
263
  )
@@ -266,7 +266,7 @@ function xe(t, r) {
266
266
  const f = u.axis ?? "y";
267
267
  c.push(
268
268
  /* @__PURE__ */ e(
269
- Be,
269
+ De,
270
270
  {
271
271
  ...f === "y" ? { y: u.value } : { x: u.value },
272
272
  stroke: W[b].ref,
@@ -274,10 +274,10 @@ function xe(t, r) {
274
274
  strokeDasharray: "4 4",
275
275
  ifOverflow: f === "y" ? "extendDomain" : "visible",
276
276
  label: u.label ? /* @__PURE__ */ e(
277
- _e,
277
+ Ge,
278
278
  {
279
279
  label: u.label,
280
- value: typeof u.value == "number" ? r(u.value) : String(u.value),
280
+ value: typeof u.value == "number" ? n(u.value) : String(u.value),
281
281
  color: b,
282
282
  axis: f
283
283
  }
@@ -291,7 +291,7 @@ function xe(t, r) {
291
291
  const f = m;
292
292
  c.push(
293
293
  /* @__PURE__ */ e(
294
- De,
294
+ Ee,
295
295
  {
296
296
  x: u.x,
297
297
  y: u.y,
@@ -303,12 +303,12 @@ function xe(t, r) {
303
303
  );
304
304
  }
305
305
  }), { back: x, front: c };
306
- }, [t, r, o]);
307
- return { back: n, front: l, hovered: a };
306
+ }, [t, n, o]);
307
+ return { back: r, front: l, hovered: a };
308
308
  }
309
309
  function X({
310
310
  items: t,
311
- align: r = "end",
311
+ align: n = "end",
312
312
  className: a,
313
313
  onToggle: i
314
314
  }) {
@@ -316,20 +316,20 @@ function X({
316
316
  start: "justify-start",
317
317
  center: "justify-center",
318
318
  end: "justify-end"
319
- }[r];
319
+ }[n];
320
320
  return /* @__PURE__ */ e("div", { className: $("mb-3 flex flex-wrap items-center gap-x-4 gap-y-1", o, a), children: t.map(
321
- (n) => i && n.key !== void 0 ? /* @__PURE__ */ A(
321
+ (r) => i && r.key !== void 0 ? /* @__PURE__ */ A(
322
322
  "button",
323
323
  {
324
324
  type: "button",
325
- "aria-pressed": !n.hidden,
326
- "aria-label": `Toggle ${n.label} series`,
327
- onClick: () => i(n.key),
325
+ "aria-pressed": !r.hidden,
326
+ "aria-label": `Toggle ${r.label} series`,
327
+ onClick: () => i(r.key),
328
328
  className: $(
329
329
  "inline-flex cursor-pointer items-center gap-1.5 rounded-sm text-xs outline-none",
330
330
  "transition-colors duration-150 ease-out motion-reduce:transition-none",
331
331
  "focus-visible:ring-2 focus-visible:ring-ring",
332
- n.hidden ? "text-tertiary" : "text-secondary hover:text-foreground"
332
+ r.hidden ? "text-tertiary" : "text-secondary hover:text-foreground"
333
333
  ),
334
334
  children: [
335
335
  /* @__PURE__ */ e(
@@ -338,42 +338,42 @@ function X({
338
338
  "aria-hidden": !0,
339
339
  className: $(
340
340
  "size-2 rounded-dot transition-opacity duration-150 ease-out motion-reduce:transition-none",
341
- n.hidden && "opacity-25"
341
+ r.hidden && "opacity-25"
342
342
  ),
343
- style: { background: n.color }
343
+ style: { background: r.color }
344
344
  }
345
345
  ),
346
- n.label
346
+ r.label
347
347
  ]
348
348
  },
349
- n.label
349
+ r.label
350
350
  ) : /* @__PURE__ */ A("span", { className: "inline-flex items-center gap-1.5 text-xs text-secondary", children: [
351
- /* @__PURE__ */ e("span", { "aria-hidden": !0, className: "size-2 rounded-dot", style: { background: n.color } }),
352
- n.label
353
- ] }, n.label)
351
+ /* @__PURE__ */ e("span", { "aria-hidden": !0, className: "size-2 rounded-dot", style: { background: r.color } }),
352
+ r.label
353
+ ] }, r.label)
354
354
  ) });
355
355
  }
356
356
  const z = R.forwardRef(
357
- ({ className: t, height: r, legendItems: a, hovered: i, format: o, onLegendToggle: n, children: l, ...x }, c) => {
357
+ ({ className: t, height: n, legendItems: a, hovered: i, format: o, onLegendToggle: r, children: l, ...x }, c) => {
358
358
  var N;
359
359
  const m = R.useRef(null);
360
360
  return /* @__PURE__ */ A("div", { ref: (b) => {
361
361
  m.current = b, typeof c == "function" ? c(b) : c && (c.current = b);
362
362
  }, className: $("relative w-full font-sans", t), ...x, children: [
363
- a && /* @__PURE__ */ e(X, { items: a, onToggle: n }),
364
- /* @__PURE__ */ e(j, { width: "100%", height: Math.max(r, I), children: l }),
365
- /* @__PURE__ */ e(Ve, { hovered: i, frameWidth: ((N = m.current) == null ? void 0 : N.clientWidth) ?? 0, format: o })
363
+ a && /* @__PURE__ */ e(X, { items: a, onToggle: r }),
364
+ /* @__PURE__ */ e(_, { width: "100%", height: Math.max(n, I), children: l }),
365
+ /* @__PURE__ */ e(Ye, { hovered: i, frameWidth: ((N = m.current) == null ? void 0 : N.clientWidth) ?? 0, format: o })
366
366
  ] });
367
367
  }
368
368
  );
369
369
  z.displayName = "ChartFrame";
370
370
  function Z(t) {
371
371
  const {
372
- data: r,
372
+ data: n,
373
373
  categoryKey: a,
374
374
  series: i,
375
375
  seriesLabels: o,
376
- highlight: n,
376
+ highlight: r,
377
377
  annotations: l,
378
378
  grid: x = !1,
379
379
  legend: c,
@@ -385,18 +385,18 @@ function Z(t) {
385
385
  xTickFormatter: y,
386
386
  yTickFormatter: C,
387
387
  yAxisWidth: w = 44
388
- } = t, p = R.useMemo(() => i ?? me(r, a), [i, r, a]), h = u ?? F, k = C ?? ((M) => typeof M == "number" ? h(M) : M), d = xe(l, h), s = (M, B) => n && p.includes(n) ? M === n ? "var(--color-chart-1)" : re : V(B), v = (M) => (o == null ? void 0 : o[M]) ?? M, [g, S] = R.useState(
388
+ } = t, p = R.useMemo(() => i ?? fe(n, a), [i, n, a]), h = u ?? F, k = C ?? ((M) => typeof M == "number" ? h(M) : M), d = ve(l, h), s = (M, B) => r && p.includes(r) ? M === r ? "var(--color-chart-1)" : ne : U(B), g = (M) => (o == null ? void 0 : o[M]) ?? M, [v, S] = R.useState(
389
389
  () => /* @__PURE__ */ new Set()
390
390
  ), L = R.useCallback((M) => {
391
391
  S((B) => {
392
- const _ = new Set(B);
393
- return _.has(M) ? _.delete(M) : _.add(M), _;
392
+ const P = new Set(B);
393
+ return P.has(M) ? P.delete(M) : P.add(M), P;
394
394
  });
395
- }, []), P = (M) => g.has(M), Q = c ?? p.length > 1 ? p.map((M, B) => ({
395
+ }, []), H = (M) => v.has(M), Q = c ?? p.length > 1 ? p.map((M, B) => ({
396
396
  key: M,
397
- label: v(M),
397
+ label: g(M),
398
398
  color: s(M, B),
399
- hidden: g.has(M)
399
+ hidden: v.has(M)
400
400
  })) : null;
401
401
  return {
402
402
  names: p,
@@ -407,7 +407,7 @@ function Z(t) {
407
407
  /* Gridlines one step below the border token — guides, not content. */
408
408
  x ? /* @__PURE__ */ e(te, { vertical: !1, stroke: "var(--chart-grid)" }, "grid") : null,
409
409
  /* @__PURE__ */ e(
410
- ne,
410
+ re,
411
411
  {
412
412
  dataKey: a,
413
413
  type: N === "time" ? "number" : "category",
@@ -425,7 +425,7 @@ function Z(t) {
425
425
  "x"
426
426
  ),
427
427
  m ? /* @__PURE__ */ e(
428
- U,
428
+ V,
429
429
  {
430
430
  width: w,
431
431
  domain: f,
@@ -439,44 +439,44 @@ function Z(t) {
439
439
  ) : null
440
440
  ],
441
441
  colorFor: s,
442
- labelFor: v,
442
+ labelFor: g,
443
443
  toggleSeries: L,
444
- isHidden: P
444
+ isHidden: H
445
445
  };
446
446
  }
447
- const I = 300, H = { top: 24, right: 12, bottom: 8, left: 0 };
448
- function ae(t, r, a, i) {
447
+ const I = 300, j = { top: 24, right: 12, bottom: 8, left: 0 };
448
+ function ae(t, n, a, i) {
449
449
  if (i === !0) return new Set(t);
450
450
  if (i === !1) return /* @__PURE__ */ new Set();
451
451
  if (a && t.includes(a)) {
452
- const n = (r ?? []).filter((l) => l !== a);
453
- return /* @__PURE__ */ new Set([a, ...n]);
452
+ const r = (n ?? []).filter((l) => l !== a);
453
+ return /* @__PURE__ */ new Set([a, ...r]);
454
454
  }
455
- return t.filter((n) => !(r != null && r.includes(n))).length === 1 ? new Set(t) : /* @__PURE__ */ new Set();
455
+ return t.filter((r) => !(n != null && n.includes(r))).length === 1 ? new Set(t) : /* @__PURE__ */ new Set();
456
456
  }
457
- function ge(t, r, a) {
457
+ function ge(t, n, a) {
458
458
  return R.useCallback(
459
459
  (i, o) => {
460
- if (!(r != null && r.includes(i))) return a(i, o);
461
- const n = t.filter((x) => !r.includes(x)), l = n[r.indexOf(i)] ?? n[0];
460
+ if (!(n != null && n.includes(i))) return a(i, o);
461
+ const r = t.filter((x) => !n.includes(x)), l = r[n.indexOf(i)] ?? r[0];
462
462
  return l ? a(l, t.indexOf(l)) : a(i, o);
463
463
  },
464
- [t, r, a]
464
+ [t, n, a]
465
465
  );
466
466
  }
467
- const Ye = R.forwardRef(
467
+ const Xe = R.forwardRef(
468
468
  // Straight segments by default: the house line is a solid stroke with a DOT
469
469
  // at every observation — the data points are visible, the path connects them
470
470
  // without inventing values between them.
471
471
  // A smooth curve invents values between observations; opt back in with
472
472
  // `curve="natural"` when the interpolation is the point.
473
- ({ height: t = I, curve: r = "linear", forecastKeys: a, animatedSeriesKeys: i, showValues: o, className: n, ...l }, x) => {
473
+ ({ height: t = I, curve: n = "linear", forecastKeys: a, animatedSeriesKeys: i, showValues: o, className: r, ...l }, x) => {
474
474
  const { names: c, format: m, layers: u, legendItems: N, furniture: b, colorFor: f, labelFor: y, toggleSeries: C, isHidden: w } = Z(l), p = ge(c, a, f), h = ae(c, a, l.highlight, o), [k, d] = R.useState(null);
475
- return /* @__PURE__ */ e(z, { ref: x, className: n, height: t, legendItems: N, hovered: u.hovered, format: m, onLegendToggle: C, children: /* @__PURE__ */ A(
476
- be,
475
+ return /* @__PURE__ */ e(z, { ref: x, className: r, height: t, legendItems: N, hovered: u.hovered, format: m, onLegendToggle: C, children: /* @__PURE__ */ A(
476
+ pe,
477
477
  {
478
478
  data: l.data,
479
- margin: H,
479
+ margin: j,
480
480
  onMouseMove: (s) => d((s == null ? void 0 : s.activeTooltipIndex) ?? null),
481
481
  onMouseLeave: () => d(null),
482
482
  children: [
@@ -496,21 +496,21 @@ const Ye = R.forwardRef(
496
496
  }
497
497
  ),
498
498
  u.back,
499
- c.map((s, v) => /* @__PURE__ */ e(
499
+ c.map((s, g) => /* @__PURE__ */ e(
500
500
  se,
501
501
  {
502
502
  dataKey: s,
503
503
  name: y(s),
504
- type: r,
505
- stroke: p(s, v),
504
+ type: n,
505
+ stroke: p(s, g),
506
506
  strokeWidth: Y,
507
507
  strokeDasharray: a != null && a.includes(s) ? "6 4" : void 0,
508
- dot: /* @__PURE__ */ e(E, { color: p(s, v) }),
509
- activeDot: /* @__PURE__ */ e(E, { color: p(s, v), active: !0 }),
508
+ dot: /* @__PURE__ */ e(E, { color: p(s, g) }),
509
+ activeDot: /* @__PURE__ */ e(E, { color: p(s, g), active: !0 }),
510
510
  label: h.has(s) ? /* @__PURE__ */ e(
511
- fe,
511
+ he,
512
512
  {
513
- color: p(s, v),
513
+ color: p(s, g),
514
514
  format: m,
515
515
  hidden: k != null
516
516
  }
@@ -526,22 +526,22 @@ const Ye = R.forwardRef(
526
526
  ) });
527
527
  }
528
528
  );
529
- Ye.displayName = "LineChart";
530
- const Xe = R.forwardRef(
531
- ({ height: t = I, curve: r = "linear", stacked: a = !1, forecastKeys: i, showValues: o, className: n, ...l }, x) => {
529
+ Xe.displayName = "LineChart";
530
+ const Ze = R.forwardRef(
531
+ ({ height: t = I, curve: n = "linear", stacked: a = !1, forecastKeys: i, showValues: o, className: r, ...l }, x) => {
532
532
  const { names: c, format: m, layers: u, legendItems: N, furniture: b, colorFor: f, labelFor: y, toggleSeries: C, isHidden: w } = Z(l), p = ge(c, i, f), h = a ? /* @__PURE__ */ new Set() : ae(c, i, l.highlight, o), [k, d] = R.useState(null), s = R.useId().replace(/[^a-zA-Z0-9]/g, "");
533
- return /* @__PURE__ */ e(z, { ref: x, className: n, height: t, legendItems: N, hovered: u.hovered, format: m, onLegendToggle: C, children: /* @__PURE__ */ A(
534
- pe,
533
+ return /* @__PURE__ */ e(z, { ref: x, className: r, height: t, legendItems: N, hovered: u.hovered, format: m, onLegendToggle: C, children: /* @__PURE__ */ A(
534
+ Ne,
535
535
  {
536
536
  data: l.data,
537
- margin: H,
538
- onMouseMove: (v) => d((v == null ? void 0 : v.activeTooltipIndex) ?? null),
537
+ margin: j,
538
+ onMouseMove: (g) => d((g == null ? void 0 : g.activeTooltipIndex) ?? null),
539
539
  onMouseLeave: () => d(null),
540
540
  children: [
541
- /* @__PURE__ */ e("defs", { children: c.map((v, g) => /* @__PURE__ */ A("linearGradient", { id: `${s}-${g}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
542
- /* @__PURE__ */ e("stop", { offset: "0%", stopColor: f(v, g), stopOpacity: 0.18 }),
543
- /* @__PURE__ */ e("stop", { offset: "100%", stopColor: f(v, g), stopOpacity: 0.02 })
544
- ] }, v)) }),
541
+ /* @__PURE__ */ e("defs", { children: c.map((g, v) => /* @__PURE__ */ A("linearGradient", { id: `${s}-${v}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
542
+ /* @__PURE__ */ e("stop", { offset: "0%", stopColor: f(g, v), stopOpacity: 0.18 }),
543
+ /* @__PURE__ */ e("stop", { offset: "100%", stopColor: f(g, v), stopOpacity: 0.02 })
544
+ ] }, g)) }),
545
545
  b,
546
546
  l.tooltip !== !1 && /* @__PURE__ */ e(
547
547
  O,
@@ -558,24 +558,24 @@ const Xe = R.forwardRef(
558
558
  }
559
559
  ),
560
560
  u.back,
561
- c.map((v, g) => /* @__PURE__ */ e(
562
- Ne,
561
+ c.map((g, v) => /* @__PURE__ */ e(
562
+ we,
563
563
  {
564
- dataKey: v,
565
- name: y(v),
566
- type: r,
564
+ dataKey: g,
565
+ name: y(g),
566
+ type: n,
567
567
  stackId: a ? "stack" : void 0,
568
- stroke: p(v, g),
568
+ stroke: p(g, v),
569
569
  strokeWidth: Y,
570
- strokeDasharray: i != null && i.includes(v) ? "6 4" : void 0,
571
- fill: `url(#${s}-${g})`,
572
- dot: /* @__PURE__ */ e(E, { color: p(v, g) }),
573
- activeDot: /* @__PURE__ */ e(E, { color: p(v, g), active: !0 }),
574
- label: h.has(v) ? /* @__PURE__ */ e(fe, { color: p(v, g), format: m, hidden: k != null }) : void 0,
575
- hide: w(v),
570
+ strokeDasharray: i != null && i.includes(g) ? "6 4" : void 0,
571
+ fill: `url(#${s}-${v})`,
572
+ dot: /* @__PURE__ */ e(E, { color: p(g, v) }),
573
+ activeDot: /* @__PURE__ */ e(E, { color: p(g, v), active: !0 }),
574
+ label: h.has(g) ? /* @__PURE__ */ e(he, { color: p(g, v), format: m, hidden: k != null }) : void 0,
575
+ hide: w(g),
576
576
  isAnimationActive: !1
577
577
  },
578
- v
578
+ g
579
579
  )),
580
580
  u.front
581
581
  ]
@@ -583,18 +583,18 @@ const Xe = R.forwardRef(
583
583
  ) });
584
584
  }
585
585
  );
586
- Xe.displayName = "AreaChart";
587
- const Ze = R.forwardRef(
586
+ Ze.displayName = "AreaChart";
587
+ const Qe = R.forwardRef(
588
588
  ({
589
589
  height: t = I,
590
- stacked: r = !1,
590
+ stacked: n = !1,
591
591
  layout: a = "vertical",
592
592
  showValues: i,
593
593
  className: o,
594
- ...n
594
+ ...r
595
595
  }, l) => {
596
- const { names: x, format: c, layers: m, legendItems: u, furniture: N, colorFor: b, labelFor: f, toggleSeries: y, isHidden: C } = Z(n), w = a === "horizontal", p = r ? /* @__PURE__ */ new Set() : ae(x, void 0, n.highlight, i), h = n.xTickFormatter ?? ((s) => typeof s == "number" ? c(s) : s), k = [
597
- n.grid !== !1 ? /* @__PURE__ */ e(
596
+ const { names: x, format: c, layers: m, legendItems: u, furniture: N, colorFor: b, labelFor: f, toggleSeries: y, isHidden: C } = Z(r), w = a === "horizontal", p = n ? /* @__PURE__ */ new Set() : ae(x, void 0, r.highlight, i), h = r.xTickFormatter ?? ((s) => typeof s == "number" ? c(s) : s), k = [
597
+ r.grid !== !1 ? /* @__PURE__ */ e(
598
598
  te,
599
599
  {
600
600
  horizontal: !1,
@@ -604,11 +604,11 @@ const Ze = R.forwardRef(
604
604
  "grid"
605
605
  ) : null,
606
606
  /* @__PURE__ */ e(
607
- ne,
607
+ re,
608
608
  {
609
609
  type: "number",
610
- domain: n.xDomain,
611
- allowDataOverflow: !!n.xDomain,
610
+ domain: r.xDomain,
611
+ allowDataOverflow: !!r.xDomain,
612
612
  axisLine: !1,
613
613
  tickLine: !1,
614
614
  minTickGap: 28,
@@ -617,12 +617,12 @@ const Ze = R.forwardRef(
617
617
  },
618
618
  "x"
619
619
  ),
620
- n.showYAxis !== !1 ? /* @__PURE__ */ e(
621
- U,
620
+ r.showYAxis !== !1 ? /* @__PURE__ */ e(
621
+ V,
622
622
  {
623
623
  type: "category",
624
- dataKey: n.categoryKey,
625
- width: n.yAxisWidth ?? 144,
624
+ dataKey: r.categoryKey,
625
+ width: r.yAxisWidth ?? 144,
626
626
  axisLine: !1,
627
627
  tickLine: !1,
628
628
  tickMargin: 6,
@@ -631,30 +631,30 @@ const Ze = R.forwardRef(
631
631
  {
632
632
  anchor: "end",
633
633
  dy: "0.32em",
634
- format: n.yTickFormatter
634
+ format: r.yTickFormatter
635
635
  }
636
636
  )
637
637
  },
638
638
  "y"
639
639
  ) : null
640
- ], d = n.highlight && x.length === 1 && !x.includes(n.highlight) ? n.highlight : null;
640
+ ], d = r.highlight && x.length === 1 && !x.includes(r.highlight) ? r.highlight : null;
641
641
  return /* @__PURE__ */ e(z, { ref: l, className: o, height: t, legendItems: u, hovered: m.hovered, format: c, onLegendToggle: y, children: /* @__PURE__ */ A(
642
- we,
642
+ Ae,
643
643
  {
644
- data: n.data,
644
+ data: r.data,
645
645
  layout: w ? "vertical" : "horizontal",
646
- margin: H,
646
+ margin: j,
647
647
  barCategoryGap: "24%",
648
648
  children: [
649
649
  w ? k : N,
650
- n.tooltip !== !1 && /* @__PURE__ */ e(
650
+ r.tooltip !== !1 && /* @__PURE__ */ e(
651
651
  O,
652
652
  {
653
653
  content: /* @__PURE__ */ e(
654
654
  T,
655
655
  {
656
656
  format: c,
657
- renderer: n.tooltip
657
+ renderer: r.tooltip
658
658
  }
659
659
  ),
660
660
  cursor: { fill: "var(--muted)" },
@@ -662,26 +662,27 @@ const Ze = R.forwardRef(
662
662
  }
663
663
  ),
664
664
  m.back,
665
- x.map((s, v) => {
666
- const g = r ? v === x.length - 1 : !0, S = w ? [0, 4, 4, 0] : [4, 4, 0, 0];
665
+ x.map((s, g) => {
666
+ const v = n ? g === x.length - 1 : !0, S = w ? [0, 4, 4, 0] : [4, 4, 0, 0];
667
667
  return /* @__PURE__ */ e(
668
668
  ce,
669
669
  {
670
670
  dataKey: s,
671
671
  name: f(s),
672
- stackId: r ? "stack" : void 0,
673
- fill: b(s, v),
674
- radius: g ? S : 0,
672
+ stackId: n ? "stack" : void 0,
673
+ fill: b(s, g),
674
+ activeBar: me,
675
+ radius: v ? S : 0,
675
676
  maxBarSize: 48,
676
677
  label: p.has(s) ? /* @__PURE__ */ e(Pe, { format: c, horizontal: w }) : void 0,
677
678
  hide: C(s),
678
679
  isAnimationActive: !1,
679
- children: d && n.data.map((L) => /* @__PURE__ */ e(
680
+ children: d && r.data.map((L) => /* @__PURE__ */ e(
680
681
  de,
681
682
  {
682
- fill: L[n.categoryKey] === d ? "var(--color-chart-1)" : re
683
+ fill: L[r.categoryKey] === d ? "var(--color-chart-1)" : ne
683
684
  },
684
- String(L[n.categoryKey])
685
+ String(L[r.categoryKey])
685
686
  ))
686
687
  },
687
688
  s
@@ -693,27 +694,27 @@ const Ze = R.forwardRef(
693
694
  ) });
694
695
  }
695
696
  );
696
- Ze.displayName = "BarChart";
697
- const ve = R.forwardRef(
698
- ({ height: t = I, lineKeys: r, dualAxis: a = !1, stacked: i = !1, forecastKeys: o, className: n, ...l }, x) => {
699
- const { names: c, format: m, layers: u, furniture: N, colorFor: b, labelFor: f, toggleSeries: y, isHidden: C } = Z(l), w = c.filter((d) => !r.includes(d)), p = (d, s) => r.length ? "var(--chart-axis)" : b(d, s), h = (d, s) => r.length ? "var(--color-chart-1)" : b(d, s), k = c.length > 1 ? [
697
+ Qe.displayName = "BarChart";
698
+ const be = R.forwardRef(
699
+ ({ height: t = I, lineKeys: n, dualAxis: a = !1, stacked: i = !1, forecastKeys: o, className: r, ...l }, x) => {
700
+ const { names: c, format: m, layers: u, furniture: N, colorFor: b, labelFor: f, toggleSeries: y, isHidden: C } = Z(l), w = c.filter((d) => !n.includes(d)), p = (d, s) => n.length ? "var(--chart-axis)" : b(d, s), h = (d, s) => n.length ? "var(--color-chart-1)" : b(d, s), k = c.length > 1 ? [
700
701
  ...w.map((d) => ({
701
702
  key: d,
702
703
  label: f(d),
703
704
  color: p(d, c.indexOf(d)),
704
705
  hidden: C(d)
705
706
  })),
706
- ...r.map((d) => ({
707
+ ...n.map((d) => ({
707
708
  key: d,
708
709
  label: f(d),
709
710
  color: h(d, c.indexOf(d)),
710
711
  hidden: C(d)
711
712
  }))
712
713
  ] : null;
713
- return /* @__PURE__ */ e(z, { ref: x, className: n, height: t, legendItems: k, hovered: u.hovered, format: m, onLegendToggle: y, children: /* @__PURE__ */ A(Ae, { data: l.data, margin: H, barCategoryGap: "24%", children: [
714
+ return /* @__PURE__ */ e(z, { ref: x, className: r, height: t, legendItems: k, hovered: u.hovered, format: m, onLegendToggle: y, children: /* @__PURE__ */ A(Ce, { data: l.data, margin: j, barCategoryGap: "24%", children: [
714
715
  N,
715
716
  a && /* @__PURE__ */ e(
716
- U,
717
+ V,
717
718
  {
718
719
  yAxisId: "right",
719
720
  orientation: "right",
@@ -747,7 +748,7 @@ const ve = R.forwardRef(
747
748
  ),
748
749
  u.back,
749
750
  w.map((d) => {
750
- const s = c.indexOf(d), v = i ? d === w[w.length - 1] : !0;
751
+ const s = c.indexOf(d), g = i ? d === w[w.length - 1] : !0;
751
752
  return /* @__PURE__ */ e(
752
753
  ce,
753
754
  {
@@ -755,7 +756,8 @@ const ve = R.forwardRef(
755
756
  name: f(d),
756
757
  stackId: i ? "stack" : void 0,
757
758
  fill: p(d, s),
758
- radius: v ? [4, 4, 0, 0] : 0,
759
+ activeBar: me,
760
+ radius: g ? [4, 4, 0, 0] : 0,
759
761
  maxBarSize: 48,
760
762
  hide: C(d),
761
763
  isAnimationActive: !1
@@ -763,7 +765,7 @@ const ve = R.forwardRef(
763
765
  d
764
766
  );
765
767
  }),
766
- r.map((d) => {
768
+ n.map((d) => {
767
769
  const s = c.indexOf(d);
768
770
  return /* @__PURE__ */ e(
769
771
  se,
@@ -787,19 +789,19 @@ const ve = R.forwardRef(
787
789
  ] }) });
788
790
  }
789
791
  );
790
- ve.displayName = "ComboChart";
791
- const Qe = R.forwardRef(
792
- (t, r) => /* @__PURE__ */ e(ve, { ref: r, ...t })
793
- );
794
- Qe.displayName = "ComposedChart";
792
+ be.displayName = "ComboChart";
795
793
  const qe = R.forwardRef(
794
+ (t, n) => /* @__PURE__ */ e(be, { ref: n, ...t })
795
+ );
796
+ qe.displayName = "ComposedChart";
797
+ const Je = R.forwardRef(
796
798
  ({
797
799
  data: t,
798
- xKey: r,
800
+ xKey: n,
799
801
  yKey: a,
800
802
  labelKey: i,
801
803
  annotations: o,
802
- height: n = I,
804
+ height: r = I,
803
805
  grid: l = !1,
804
806
  showYAxis: x = !0,
805
807
  formatValue: c,
@@ -812,14 +814,14 @@ const qe = R.forwardRef(
812
814
  tooltip: C,
813
815
  className: w
814
816
  }, p) => {
815
- const h = c ?? F, k = b ?? ((v) => typeof v == "number" ? F(v) : v), d = f ?? ((v) => typeof v == "number" ? h(v) : v), s = xe(o, h);
816
- return /* @__PURE__ */ e(z, { ref: p, className: w, height: n, legendItems: null, hovered: s.hovered, format: h, children: /* @__PURE__ */ A(Ce, { margin: H, children: [
817
+ const h = c ?? F, k = b ?? ((g) => typeof g == "number" ? F(g) : g), d = f ?? ((g) => typeof g == "number" ? h(g) : g), s = ve(o, h);
818
+ return /* @__PURE__ */ e(z, { ref: p, className: w, height: r, legendItems: null, hovered: s.hovered, format: h, children: /* @__PURE__ */ A(ye, { margin: j, children: [
817
819
  l && /* @__PURE__ */ e(te, { vertical: !1, stroke: "var(--chart-grid)" }),
818
820
  /* @__PURE__ */ e(
819
- ne,
821
+ re,
820
822
  {
821
823
  type: "number",
822
- dataKey: r,
824
+ dataKey: n,
823
825
  scale: m === "time" ? "time" : "auto",
824
826
  domain: u ?? (m === "time" ? ["dataMin", "dataMax"] : ["auto", "auto"]),
825
827
  allowDataOverflow: !!u,
@@ -831,7 +833,7 @@ const qe = R.forwardRef(
831
833
  }
832
834
  ),
833
835
  x && /* @__PURE__ */ e(
834
- U,
836
+ V,
835
837
  {
836
838
  type: "number",
837
839
  dataKey: a,
@@ -861,11 +863,11 @@ const qe = R.forwardRef(
861
863
  ),
862
864
  s.back,
863
865
  /* @__PURE__ */ e(
864
- ye,
866
+ Re,
865
867
  {
866
868
  data: t,
867
869
  fill: "var(--color-chart-1)",
868
- shape: (v) => /* @__PURE__ */ e("circle", { cx: v.cx, cy: v.cy, r: 4.5, fill: "var(--color-chart-1)", fillOpacity: 0.75 }),
870
+ shape: (g) => /* @__PURE__ */ e("circle", { cx: g.cx, cy: g.cy, r: 4.5, fill: "var(--color-chart-1)", fillOpacity: 0.75 }),
869
871
  isAnimationActive: !1
870
872
  }
871
873
  ),
@@ -873,29 +875,29 @@ const qe = R.forwardRef(
873
875
  ] }) });
874
876
  }
875
877
  );
876
- qe.displayName = "ScatterChart";
877
- const Je = R.forwardRef(
878
+ Je.displayName = "ScatterChart";
879
+ const Ke = R.forwardRef(
878
880
  ({
879
881
  data: t,
880
- nameKey: r,
882
+ nameKey: n,
881
883
  valueKey: a,
882
884
  donut: i = !0,
883
885
  centerLabel: o,
884
- highlight: n,
886
+ highlight: r,
885
887
  height: l = 260,
886
888
  legend: x = !0,
887
889
  formatValue: c,
888
890
  tooltip: m,
889
891
  className: u
890
892
  }, N) => {
891
- const b = c ?? F, f = t.reduce((p, h) => p + (typeof h[a] == "number" ? h[a] : 0), 0), y = (p, h) => V(h), C = (p) => n && p !== n ? 0.3 : 1, w = x ? t.map((p, h) => ({
892
- label: `${p[r]} · ${f ? Math.round(Number(p[a]) / f * 100) : 0}%`,
893
- color: y(String(p[r]), h)
893
+ const b = c ?? F, f = t.reduce((p, h) => p + (typeof h[a] == "number" ? h[a] : 0), 0), y = (p, h) => U(h), C = (p) => r && p !== r ? 0.3 : 1, w = x ? t.map((p, h) => ({
894
+ label: `${p[n]} · ${f ? Math.round(Number(p[a]) / f * 100) : 0}%`,
895
+ color: y(String(p[n]), h)
894
896
  })) : null;
895
897
  return /* @__PURE__ */ A("div", { ref: N, className: $("relative w-full font-sans", u), children: [
896
898
  w && /* @__PURE__ */ e(X, { items: w }),
897
899
  /* @__PURE__ */ A("div", { className: "relative", children: [
898
- /* @__PURE__ */ e(j, { width: "100%", height: l, children: /* @__PURE__ */ A(Re, { margin: { top: 8, right: 8, bottom: 8, left: 8 }, children: [
900
+ /* @__PURE__ */ e(_, { width: "100%", height: l, children: /* @__PURE__ */ A(ke, { margin: { top: 8, right: 8, bottom: 8, left: 8 }, children: [
899
901
  m !== !1 && /* @__PURE__ */ e(
900
902
  O,
901
903
  {
@@ -910,11 +912,11 @@ const Je = R.forwardRef(
910
912
  }
911
913
  ),
912
914
  /* @__PURE__ */ e(
913
- ke,
915
+ Me,
914
916
  {
915
917
  data: t,
916
918
  dataKey: a,
917
- nameKey: r,
919
+ nameKey: n,
918
920
  innerRadius: i ? "62%" : 0,
919
921
  outerRadius: "88%",
920
922
  paddingAngle: i ? 2 : 1,
@@ -926,10 +928,10 @@ const Je = R.forwardRef(
926
928
  {
927
929
  role: "presentation",
928
930
  "aria-hidden": "true",
929
- fill: y(String(p[r]), h),
930
- fillOpacity: C(String(p[r]))
931
+ fill: y(String(p[n]), h),
932
+ fillOpacity: C(String(p[n]))
931
933
  },
932
- String(p[r])
934
+ String(p[n])
933
935
  ))
934
936
  }
935
937
  )
@@ -942,15 +944,15 @@ const Je = R.forwardRef(
942
944
  ] });
943
945
  }
944
946
  );
945
- Je.displayName = "PieChart";
946
- const Ke = R.forwardRef(
947
+ Ke.displayName = "PieChart";
948
+ const et = R.forwardRef(
947
949
  ({
948
950
  data: t,
949
- categoryKey: r,
951
+ categoryKey: n,
950
952
  series: a,
951
953
  seriesLabels: i,
952
954
  highlight: o,
953
- maxValue: n,
955
+ maxValue: r,
954
956
  height: l = 300,
955
957
  legend: x,
956
958
  formatValue: c,
@@ -958,20 +960,20 @@ const Ke = R.forwardRef(
958
960
  className: u
959
961
  }, N) => {
960
962
  const b = R.useMemo(
961
- () => a ?? me(t, r),
962
- [r, t, a]
963
- ), f = c ?? F, y = n ?? Math.max(
963
+ () => a ?? fe(t, n),
964
+ [n, t, a]
965
+ ), f = c ?? F, y = r ?? Math.max(
964
966
  1,
965
967
  ...t.flatMap(
966
968
  (h) => b.map(
967
969
  (k) => typeof h[k] == "number" ? h[k] : 0
968
970
  )
969
971
  )
970
- ), C = (h) => (i == null ? void 0 : i[h]) ?? h, w = (h, k) => o && b.includes(o) ? h === o ? "var(--color-chart-1)" : re : V(k), p = x ?? b.length > 1 ? b.map((h, k) => ({ label: C(h), color: w(h, k) })) : null;
972
+ ), C = (h) => (i == null ? void 0 : i[h]) ?? h, w = (h, k) => o && b.includes(o) ? h === o ? "var(--color-chart-1)" : ne : U(k), p = x ?? b.length > 1 ? b.map((h, k) => ({ label: C(h), color: w(h, k) })) : null;
971
973
  return /* @__PURE__ */ A("div", { ref: N, className: $("relative w-full font-sans", u), children: [
972
974
  p && /* @__PURE__ */ e(X, { items: p, align: "center" }),
973
- /* @__PURE__ */ e("div", { className: "mx-auto w-full max-w-[520px]", children: /* @__PURE__ */ e(j, { width: "100%", height: l, children: /* @__PURE__ */ A(
974
- Me,
975
+ /* @__PURE__ */ e("div", { className: "mx-auto w-full max-w-[520px]", children: /* @__PURE__ */ e(_, { width: "100%", height: l, children: /* @__PURE__ */ A(
976
+ $e,
975
977
  {
976
978
  data: t,
977
979
  cx: "50%",
@@ -979,16 +981,16 @@ const Ke = R.forwardRef(
979
981
  outerRadius: "68%",
980
982
  margin: { top: 10, right: 56, bottom: 16, left: 56 },
981
983
  children: [
982
- /* @__PURE__ */ e($e, { stroke: "var(--border)", radialLines: !0 }),
984
+ /* @__PURE__ */ e(Se, { stroke: "var(--border)", radialLines: !0 }),
983
985
  /* @__PURE__ */ e(
984
986
  ue,
985
987
  {
986
- dataKey: r,
988
+ dataKey: n,
987
989
  tick: { fill: "var(--text-secondary)", fontSize: 11, fontWeight: 500 }
988
990
  }
989
991
  ),
990
992
  /* @__PURE__ */ e(
991
- Se,
993
+ Le,
992
994
  {
993
995
  angle: 90,
994
996
  domain: [0, y],
@@ -1011,7 +1013,7 @@ const Ke = R.forwardRef(
1011
1013
  }
1012
1014
  ),
1013
1015
  b.map((h, k) => /* @__PURE__ */ e(
1014
- Le,
1016
+ Fe,
1015
1017
  {
1016
1018
  dataKey: h,
1017
1019
  name: C(h),
@@ -1030,15 +1032,15 @@ const Ke = R.forwardRef(
1030
1032
  ] });
1031
1033
  }
1032
1034
  );
1033
- Ke.displayName = "RadarChart";
1034
- const et = R.forwardRef(
1035
+ et.displayName = "RadarChart";
1036
+ const tt = R.forwardRef(
1035
1037
  ({
1036
1038
  data: t,
1037
- nameKey: r,
1039
+ nameKey: n,
1038
1040
  valueKey: a,
1039
1041
  maxValue: i = 100,
1040
1042
  centerLabel: o,
1041
- height: n = I,
1043
+ height: r = I,
1042
1044
  legend: l = !0,
1043
1045
  formatValue: x,
1044
1046
  tooltip: c,
@@ -1046,19 +1048,19 @@ const et = R.forwardRef(
1046
1048
  }, u) => {
1047
1049
  const N = x ?? F, b = t.map((C, w) => ({
1048
1050
  ...C,
1049
- name: String(C[r]),
1051
+ name: String(C[n]),
1050
1052
  fill: ee(w)
1051
1053
  })), f = b.length ? b.reduce(
1052
1054
  (C, w) => C + (typeof w[a] == "number" ? w[a] : 0),
1053
1055
  0
1054
1056
  ) / b.length : 0, y = l ? b.map((C, w) => ({
1055
- label: String(C[r]),
1057
+ label: String(C[n]),
1056
1058
  color: ee(w)
1057
1059
  })) : null;
1058
1060
  return /* @__PURE__ */ A("div", { ref: u, className: $("relative w-full font-sans", m), children: [
1059
1061
  /* @__PURE__ */ A("div", { className: "relative mx-auto w-full max-w-[420px]", children: [
1060
- /* @__PURE__ */ e(j, { width: "100%", height: n, children: /* @__PURE__ */ A(
1061
- Fe,
1062
+ /* @__PURE__ */ e(_, { width: "100%", height: r, children: /* @__PURE__ */ A(
1063
+ Oe,
1062
1064
  {
1063
1065
  data: b,
1064
1066
  innerRadius: "48%",
@@ -1082,7 +1084,7 @@ const et = R.forwardRef(
1082
1084
  }
1083
1085
  ),
1084
1086
  /* @__PURE__ */ e(
1085
- Oe,
1087
+ Te,
1086
1088
  {
1087
1089
  dataKey: a,
1088
1090
  background: { fill: "var(--muted)" },
@@ -1103,26 +1105,26 @@ const et = R.forwardRef(
1103
1105
  ] });
1104
1106
  }
1105
1107
  );
1106
- et.displayName = "RadialBarChart";
1107
- function tt({
1108
+ tt.displayName = "RadialBarChart";
1109
+ function rt({
1108
1110
  x: t = 0,
1109
- y: r = 0,
1111
+ y: n = 0,
1110
1112
  width: a = 0,
1111
1113
  height: i = 0,
1112
1114
  depth: o = 0,
1113
- index: n = 0,
1115
+ index: r = 0,
1114
1116
  name: l,
1115
1117
  value: x,
1116
1118
  format: c = F
1117
1119
  }) {
1118
1120
  if (o === 0) return /* @__PURE__ */ e("g", {});
1119
- const m = o === 0 ? "transparent" : ee(n), u = o > 0 && n < 4, N = a > 72 && i > 38;
1121
+ const m = o === 0 ? "transparent" : ee(r), u = o > 0 && r < 4, N = a > 72 && i > 38;
1120
1122
  return /* @__PURE__ */ A("g", { children: [
1121
1123
  /* @__PURE__ */ e(
1122
1124
  "rect",
1123
1125
  {
1124
1126
  x: t,
1125
- y: r,
1127
+ y: n,
1126
1128
  width: a,
1127
1129
  height: i,
1128
1130
  rx: 6,
@@ -1136,7 +1138,7 @@ function tt({
1136
1138
  "foreignObject",
1137
1139
  {
1138
1140
  x: t + 8,
1139
- y: r + 8,
1141
+ y: n + 8,
1140
1142
  width: Math.max(0, a - 16),
1141
1143
  height: Math.max(0, i - 16),
1142
1144
  className: "pointer-events-none overflow-hidden",
@@ -1166,53 +1168,53 @@ function tt({
1166
1168
  )
1167
1169
  ] });
1168
1170
  }
1169
- function nt(t, r, a) {
1170
- const i = [], o = (n) => {
1171
- const l = Array.isArray(n.children) ? n.children : void 0;
1171
+ function nt(t, n, a) {
1172
+ const i = [], o = (r) => {
1173
+ const l = Array.isArray(r.children) ? r.children : void 0;
1172
1174
  if (l != null && l.length) {
1173
1175
  l.forEach(o);
1174
1176
  return;
1175
1177
  }
1176
- typeof n[a] == "number" && i.push({
1177
- ...n,
1178
- name: String(n[r] ?? ""),
1179
- value: n[a]
1178
+ typeof r[a] == "number" && i.push({
1179
+ ...r,
1180
+ name: String(r[n] ?? ""),
1181
+ value: r[a]
1180
1182
  });
1181
1183
  };
1182
1184
  return t.forEach(o), i.length ? i : t;
1183
1185
  }
1184
- const rt = R.forwardRef(
1186
+ const at = R.forwardRef(
1185
1187
  ({
1186
1188
  data: t,
1187
- nameKey: r,
1189
+ nameKey: n,
1188
1190
  valueKey: a,
1189
1191
  height: i = I,
1190
1192
  formatValue: o,
1191
- tooltip: n,
1193
+ tooltip: r,
1192
1194
  className: l
1193
1195
  }, x) => {
1194
1196
  const c = o ?? F, m = R.useMemo(
1195
- () => nt(t, r, a),
1196
- [t, r, a]
1197
+ () => nt(t, n, a),
1198
+ [t, n, a]
1197
1199
  );
1198
- return /* @__PURE__ */ e("div", { ref: x, className: $("relative w-full font-sans", l), children: /* @__PURE__ */ e(j, { width: "100%", height: i, children: /* @__PURE__ */ e(
1199
- Te,
1200
+ return /* @__PURE__ */ e("div", { ref: x, className: $("relative w-full font-sans", l), children: /* @__PURE__ */ e(_, { width: "100%", height: i, children: /* @__PURE__ */ e(
1201
+ Ie,
1200
1202
  {
1201
1203
  data: m,
1202
- nameKey: r,
1204
+ nameKey: n,
1203
1205
  dataKey: a,
1204
1206
  type: "flat",
1205
1207
  aspectRatio: 1.6,
1206
- content: /* @__PURE__ */ e(tt, { format: c }),
1208
+ content: /* @__PURE__ */ e(rt, { format: c }),
1207
1209
  isAnimationActive: !1,
1208
- children: n !== !1 && /* @__PURE__ */ e(
1210
+ children: r !== !1 && /* @__PURE__ */ e(
1209
1211
  O,
1210
1212
  {
1211
1213
  content: /* @__PURE__ */ e(
1212
1214
  T,
1213
1215
  {
1214
1216
  format: c,
1215
- renderer: n
1217
+ renderer: r
1216
1218
  }
1217
1219
  ),
1218
1220
  isAnimationActive: !1
@@ -1222,44 +1224,44 @@ const rt = R.forwardRef(
1222
1224
  ) }) });
1223
1225
  }
1224
1226
  );
1225
- rt.displayName = "TreemapChart";
1226
- const J = "var(--color-chart-1)", at = "var(--chart-track)", G = 24, it = 44, ie = 0.55, oe = 4, le = (t, r, a, i, o) => {
1227
- const n = Math.min(o, a / 2, i);
1228
- return `M ${t},${r + i} L ${t},${r + n} Q ${t},${r} ${t + n},${r} L ${t + a - n},${r} Q ${t + a},${r} ${t + a},${r + n} L ${t + a},${r + i} Z`;
1227
+ at.displayName = "TreemapChart";
1228
+ const J = "var(--color-chart-1)", it = "var(--chart-track)", G = 24, ot = 44, ie = 0.55, oe = 4, le = (t, n, a, i, o) => {
1229
+ const r = Math.min(o, a / 2, i);
1230
+ return `M ${t},${n + i} L ${t},${n + r} Q ${t},${n} ${t + r},${n} L ${t + a - r},${n} Q ${t + a},${n} ${t + a},${n + r} L ${t + a},${n + i} Z`;
1229
1231
  };
1230
- function ot() {
1231
- const t = R.useRef(null), [r, a] = R.useState(0);
1232
+ function lt() {
1233
+ const t = R.useRef(null), [n, a] = R.useState(0);
1232
1234
  return R.useLayoutEffect(() => {
1233
1235
  const i = t.current;
1234
1236
  if (!i) return;
1235
1237
  a(i.getBoundingClientRect().width);
1236
- const o = new ResizeObserver((n) => {
1238
+ const o = new ResizeObserver((r) => {
1237
1239
  var x;
1238
- const l = ((x = n[0]) == null ? void 0 : x.contentRect.width) ?? 0;
1240
+ const l = ((x = r[0]) == null ? void 0 : x.contentRect.width) ?? 0;
1239
1241
  a((c) => Math.abs(c - l) > 0.5 ? l : c);
1240
1242
  });
1241
1243
  return o.observe(i), () => o.disconnect();
1242
- }, []), { ref: t, width: r };
1244
+ }, []), { ref: t, width: n };
1243
1245
  }
1244
- const lt = R.forwardRef(
1246
+ const st = R.forwardRef(
1245
1247
  ({
1246
1248
  data: t,
1247
- nameKey: r,
1249
+ nameKey: n,
1248
1250
  valueKey: a,
1249
1251
  height: i = I,
1250
1252
  formatValue: o,
1251
- label: n,
1253
+ label: r,
1252
1254
  tooltip: l,
1253
1255
  className: x
1254
1256
  }, c) => {
1255
- var v;
1256
- const m = o ?? F, { ref: u, width: N } = ot(), [b, f] = R.useState(null), y = Number(((v = t[0]) == null ? void 0 : v[a]) ?? 0), C = t.length, w = Math.max(0, i - G - it), p = G + w, h = C > 0 ? N / (C + (C - 1) * ie) : 0, k = h * ie, d = t.map((g, S) => {
1257
+ var g;
1258
+ const m = o ?? F, { ref: u, width: N } = lt(), [b, f] = R.useState(null), y = Number(((g = t[0]) == null ? void 0 : g[a]) ?? 0), C = t.length, w = Math.max(0, i - G - ot), p = G + w, h = C > 0 ? N / (C + (C - 1) * ie) : 0, k = h * ie, d = t.map((v, S) => {
1257
1259
  var B;
1258
- const L = Number(g[a]), P = Number(((B = t[S - 1]) == null ? void 0 : B[a]) ?? L), Q = y ? L / y * 100 : 0, q = P ? L / P * 100 : 0, M = y && L > 0 ? Math.max(2, L / y * w) : 0;
1260
+ const L = Number(v[a]), H = Number(((B = t[S - 1]) == null ? void 0 : B[a]) ?? L), Q = y ? L / y * 100 : 0, q = H ? L / H * 100 : 0, M = y && L > 0 ? Math.max(2, L / y * w) : 0;
1259
1261
  return {
1260
- datum: g,
1262
+ datum: v,
1261
1263
  index: S,
1262
- name: String(g[r]),
1264
+ name: String(v[n]),
1263
1265
  value: L,
1264
1266
  conversionFromFirst: Q,
1265
1267
  conversionFromPrevious: q,
@@ -1273,47 +1275,47 @@ const lt = R.forwardRef(
1273
1275
  }), s = b != null ? d[b] : void 0;
1274
1276
  return /* @__PURE__ */ e("div", { ref: c, className: $("relative w-full font-sans", x), children: /* @__PURE__ */ A("div", { ref: u, className: "relative w-full", style: { height: i }, children: [
1275
1277
  N > 0 && C > 0 && /* @__PURE__ */ A("svg", { width: N, height: i, className: "block", children: [
1276
- d.slice(1).map((g) => {
1277
- const S = d[g.index - 1];
1278
+ d.slice(1).map((v) => {
1279
+ const S = d[v.index - 1];
1278
1280
  return /* @__PURE__ */ e(
1279
1281
  "path",
1280
1282
  {
1281
- d: `M ${S.x + S.width},${S.y} L ${g.x},${g.y} L ${g.x},${p} L ${S.x + S.width},${p} Z`,
1283
+ d: `M ${S.x + S.width},${S.y} L ${v.x},${v.y} L ${v.x},${p} L ${S.x + S.width},${p} Z`,
1282
1284
  fill: J,
1283
1285
  opacity: 0.14
1284
1286
  },
1285
- `connector-${g.index}`
1287
+ `connector-${v.index}`
1286
1288
  );
1287
1289
  }),
1288
- d.map((g) => /* @__PURE__ */ A(
1290
+ d.map((v) => /* @__PURE__ */ A(
1289
1291
  "g",
1290
1292
  {
1291
1293
  role: "img",
1292
- "aria-label": `${g.name}: ${m(g.value)} (${Math.round(g.conversionFromFirst)}% of ${d[0].name})`,
1294
+ "aria-label": `${v.name}: ${m(v.value)} (${Math.round(v.conversionFromFirst)}% of ${d[0].name})`,
1293
1295
  children: [
1294
1296
  /* @__PURE__ */ e(
1295
1297
  "path",
1296
1298
  {
1297
- d: le(g.x, G, g.width, w, oe),
1298
- fill: at
1299
+ d: le(v.x, G, v.width, w, oe),
1300
+ fill: it
1299
1301
  }
1300
1302
  ),
1301
- g.height > 0 && /* @__PURE__ */ e(
1303
+ v.height > 0 && /* @__PURE__ */ e(
1302
1304
  "path",
1303
1305
  {
1304
- d: le(g.x, g.y, g.width, g.height, oe),
1306
+ d: le(v.x, v.y, v.width, v.height, oe),
1305
1307
  fill: J
1306
1308
  }
1307
1309
  ),
1308
- n !== !1 && (n ? n(g) : /* @__PURE__ */ A(
1310
+ r !== !1 && (r ? r(v) : /* @__PURE__ */ A(
1309
1311
  "text",
1310
1312
  {
1311
- x: g.x,
1312
- y: g.y - 8,
1313
+ x: v.x,
1314
+ y: v.y - 8,
1313
1315
  textAnchor: "start",
1314
1316
  className: "fill-secondary text-xs font-normal tabular-nums",
1315
1317
  children: [
1316
- Math.round(g.conversionFromFirst),
1318
+ Math.round(v.conversionFromFirst),
1317
1319
  "%"
1318
1320
  ]
1319
1321
  }
@@ -1321,38 +1323,38 @@ const lt = R.forwardRef(
1321
1323
  /* @__PURE__ */ e(
1322
1324
  "text",
1323
1325
  {
1324
- x: g.x,
1326
+ x: v.x,
1325
1327
  y: p + 18,
1326
1328
  textAnchor: "start",
1327
1329
  className: "fill-primary text-xs font-normal",
1328
- children: g.name
1330
+ children: v.name
1329
1331
  }
1330
1332
  ),
1331
1333
  /* @__PURE__ */ e(
1332
1334
  "text",
1333
1335
  {
1334
- x: g.x,
1336
+ x: v.x,
1335
1337
  y: p + 34,
1336
1338
  textAnchor: "start",
1337
1339
  className: "fill-tertiary text-xs tabular-nums",
1338
- children: m(g.value)
1340
+ children: m(v.value)
1339
1341
  }
1340
1342
  ),
1341
1343
  /* @__PURE__ */ e(
1342
1344
  "rect",
1343
1345
  {
1344
- x: g.x,
1346
+ x: v.x,
1345
1347
  y: G,
1346
- width: g.index === C - 1 ? h : h + k,
1348
+ width: v.index === C - 1 ? h : h + k,
1347
1349
  height: w,
1348
1350
  fill: "transparent",
1349
- onMouseEnter: () => f(g.index),
1351
+ onMouseEnter: () => f(v.index),
1350
1352
  onMouseLeave: () => f(null)
1351
1353
  }
1352
1354
  )
1353
1355
  ]
1354
1356
  },
1355
- `${g.name}-${g.index}`
1357
+ `${v.name}-${v.index}`
1356
1358
  ))
1357
1359
  ] }),
1358
1360
  l !== !1 && s && /* @__PURE__ */ e(
@@ -1392,18 +1394,18 @@ const lt = R.forwardRef(
1392
1394
  ] }) });
1393
1395
  }
1394
1396
  );
1395
- lt.displayName = "FunnelChart";
1397
+ st.displayName = "FunnelChart";
1396
1398
  export {
1397
- Xe as AreaChart,
1398
- Ze as BarChart,
1399
- ve as ComboChart,
1400
- Qe as ComposedChart,
1401
- lt as FunnelChart,
1402
- Ye as LineChart,
1399
+ Ze as AreaChart,
1400
+ Qe as BarChart,
1401
+ be as ComboChart,
1402
+ qe as ComposedChart,
1403
+ st as FunnelChart,
1404
+ Xe as LineChart,
1403
1405
  I as MIN_HEIGHT,
1404
- Je as PieChart,
1405
- Ke as RadarChart,
1406
- et as RadialBarChart,
1407
- qe as ScatterChart,
1408
- rt as TreemapChart
1406
+ Ke as PieChart,
1407
+ et as RadarChart,
1408
+ tt as RadialBarChart,
1409
+ Je as ScatterChart,
1410
+ at as TreemapChart
1409
1411
  };