@dpuse/dpuse-tool-d3-visualiser 1.0.111 → 1.0.118

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 (37) hide show
  1. package/README.md +147 -146
  2. package/dist/{array-Cv4-2llb.js → array-CpxKKsZm.js} +2 -4
  3. package/dist/{array-Cv4-2llb.js.map → array-CpxKKsZm.js.map} +1 -1
  4. package/dist/{chordDiagram-BG0jW2g9.js → chordDiagram-Dbu2uT_s.js} +80 -155
  5. package/dist/{chordDiagram-BG0jW2g9.js.map → chordDiagram-Dbu2uT_s.js.map} +1 -1
  6. package/dist/dpuse-tool-d3-visualiser.es.js +7 -8
  7. package/dist/{erdDiagram-CHPY-zaP.js → erdDiagram-DKsqCN08.js} +78 -65
  8. package/dist/erdDiagram-DKsqCN08.js.map +1 -0
  9. package/dist/{hierarchy-CDFAetye.js → hierarchy-DU9LihDu.js} +14 -28
  10. package/dist/{hierarchy-CDFAetye.js.map → hierarchy-DU9LihDu.js.map} +1 -1
  11. package/dist/{linear-DytAYqu2.js → linear-CNetDix0.js} +37 -72
  12. package/dist/{linear-DytAYqu2.js.map → linear-CNetDix0.js.map} +1 -1
  13. package/dist/{link-BfoIl3p5.js → link-CAkrxHYd.js} +4 -6
  14. package/dist/{link-BfoIl3p5.js.map → link-CAkrxHYd.js.map} +1 -1
  15. package/dist/{networkDiagram-XI0c9kJR.js → networkDiagram-BiCPMNf8.js} +36 -70
  16. package/dist/{networkDiagram-XI0c9kJR.js.map → networkDiagram-BiCPMNf8.js.map} +1 -1
  17. package/dist/{palette-Ca7C6aNE.js → palette-D5DTPmuA.js} +2 -4
  18. package/dist/{palette-Ca7C6aNE.js.map → palette-D5DTPmuA.js.map} +1 -1
  19. package/dist/{point-DSPrfIZi.js → point-_U9MxSuk.js} +3 -6
  20. package/dist/{point-DSPrfIZi.js.map → point-_U9MxSuk.js.map} +1 -1
  21. package/dist/{sankeyDiagram-w2TGSqb7.js → sankeyDiagram-DcI-D1uh.js} +10 -17
  22. package/dist/sankeyDiagram-DcI-D1uh.js.map +1 -0
  23. package/dist/{select-Bs4oiNEZ.js → select-SZKizDc7.js} +48 -94
  24. package/dist/{select-Bs4oiNEZ.js.map → select-SZKizDc7.js.map} +1 -1
  25. package/dist/shipped-packages.json +2 -2
  26. package/dist/{src-Bo8my4B8.js → src-DAMkWOaT.js} +40 -78
  27. package/dist/{src-Bo8my4B8.js.map → src-DAMkWOaT.js.map} +1 -1
  28. package/dist/{string-iJh48M7Y.js → string-BzfQLSds.js} +7 -14
  29. package/dist/{string-iJh48M7Y.js.map → string-BzfQLSds.js.map} +1 -1
  30. package/dist/{tanStackCharts-LPqRQGD9.js → tanStackCharts-5HHGfe6p.js} +812 -879
  31. package/dist/tanStackCharts-5HHGfe6p.js.map +1 -0
  32. package/dist/{treeDiagram-C798R8hL.js → treeDiagram-fmrYqvXl.js} +5 -7
  33. package/dist/{treeDiagram-C798R8hL.js.map → treeDiagram-fmrYqvXl.js.map} +1 -1
  34. package/package.json +16 -15
  35. package/dist/erdDiagram-CHPY-zaP.js.map +0 -1
  36. package/dist/sankeyDiagram-w2TGSqb7.js.map +0 -1
  37. package/dist/tanStackCharts-LPqRQGD9.js.map +0 -1
@@ -1,13 +1,12 @@
1
- import { c as e, s as t, t as n } from "./linear-DytAYqu2.js";
2
- import { r, t as i } from "./array-Cv4-2llb.js";
3
- //#region node_modules/d3-array/src/range.js
1
+ import { c as e, s as t, t as n } from "./linear-CNetDix0.js";
2
+ import { r, t as i } from "./array-CpxKKsZm.js";
3
+ // node_modules/d3-array/src/range.js
4
4
  function a(e, t, n) {
5
5
  e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
6
6
  for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;
7
7
  return a;
8
8
  }
9
- //#endregion
10
- //#region node_modules/d3-scale/src/band.js
9
+ // node_modules/d3-scale/src/band.js
11
10
  function o() {
12
11
  var n = t().unknown(void 0), r = n.domain, i = n.range, s = 0, c = 1, l, u, d = !1, f = 0, p = 0, m = .5;
13
12
  delete n.unknown;
@@ -43,19 +42,16 @@ function o() {
43
42
  return o(r(), [s, c]).round(d).paddingInner(f).paddingOuter(p).align(m);
44
43
  }, e.apply(h(), arguments);
45
44
  }
46
- //#endregion
47
- //#region node_modules/d3-shape/src/offset/none.js
45
+ // node_modules/d3-shape/src/offset/none.js
48
46
  function s(e, t) {
49
47
  if ((o = e.length) > 1) for (var n = 1, r, i, a = e[t[0]], o, s = a.length; n < o; ++n) for (i = a, a = e[t[n]], r = 0; r < s; ++r) a[r][1] += a[r][0] = isNaN(i[r][1]) ? i[r][0] : i[r][1];
50
48
  }
51
- //#endregion
52
- //#region node_modules/d3-shape/src/order/none.js
49
+ // node_modules/d3-shape/src/order/none.js
53
50
  function c(e) {
54
51
  for (var t = e.length, n = Array(t); --t >= 0;) n[t] = t;
55
52
  return n;
56
53
  }
57
- //#endregion
58
- //#region node_modules/d3-shape/src/stack.js
54
+ // node_modules/d3-shape/src/stack.js
59
55
  function l(e, t) {
60
56
  return e[t];
61
57
  }
@@ -81,8 +77,7 @@ function d() {
81
77
  return arguments.length ? (n = e ?? s, o) : n;
82
78
  }, o;
83
79
  }
84
- //#endregion
85
- //#region node_modules/d3-shape/src/offset/expand.js
80
+ // node_modules/d3-shape/src/offset/expand.js
86
81
  function f(e, t) {
87
82
  if ((r = e.length) > 0) {
88
83
  for (var n, r, i = 0, a = e[0].length, o; i < a; ++i) {
@@ -92,8 +87,7 @@ function f(e, t) {
92
87
  s(e, t);
93
88
  }
94
89
  }
95
- //#endregion
96
- //#region node_modules/d3-shape/src/offset/silhouette.js
90
+ // node_modules/d3-shape/src/offset/silhouette.js
97
91
  function p(e, t) {
98
92
  if ((i = e.length) > 0) {
99
93
  for (var n = 0, r = e[t[0]], i, a = r.length; n < a; ++n) {
@@ -103,8 +97,7 @@ function p(e, t) {
103
97
  s(e, t);
104
98
  }
105
99
  }
106
- //#endregion
107
- //#region node_modules/d3-shape/src/offset/wiggle.js
100
+ // node_modules/d3-shape/src/offset/wiggle.js
108
101
  function m(e, t) {
109
102
  if ((o = e.length) > 0 && (a = (i = e[t[0]]).length) > 0) {
110
103
  for (var n = 0, r = 1, i, a, o; r < a; ++r) {
@@ -120,8 +113,7 @@ function m(e, t) {
120
113
  i[r - 1][1] += i[r - 1][0] = n, s(e, t);
121
114
  }
122
115
  }
123
- //#endregion
124
- //#region node_modules/d3-shape/src/order/appearance.js
116
+ // node_modules/d3-shape/src/order/appearance.js
125
117
  function h(e) {
126
118
  var t = e.map(g);
127
119
  return c(e).sort(function(e, n) {
@@ -132,29 +124,25 @@ function g(e) {
132
124
  for (var t = -1, n = 0, r = e.length, i, a = -Infinity; ++t < r;) (i = +e[t][1]) > a && (a = i, n = t);
133
125
  return n;
134
126
  }
135
- //#endregion
136
- //#region node_modules/d3-shape/src/order/ascending.js
127
+ // node_modules/d3-shape/src/order/ascending.js
137
128
  function _(e) {
138
129
  for (var t = 0, n = -1, r = e.length, i; ++n < r;) (i = +e[n][1]) && (t += i);
139
130
  return t;
140
131
  }
141
- //#endregion
142
- //#region node_modules/d3-shape/src/order/insideOut.js
132
+ // node_modules/d3-shape/src/order/insideOut.js
143
133
  function v(e) {
144
134
  var t = e.length, n, r, i = e.map(_), a = h(e), o = 0, s = 0, c = [], l = [];
145
135
  for (n = 0; n < t; ++n) r = a[n], o < s ? (o += i[r], c.push(r)) : (s += i[r], l.push(r));
146
136
  return l.reverse().concat(c);
147
137
  }
148
- //#endregion
149
- //#region node_modules/@tanstack/charts/dist/group.js
138
+ // node_modules/@tanstack/charts/dist/group.js
150
139
  function y(e = {}) {
151
140
  return {
152
141
  type: "group",
153
142
  ...e
154
143
  };
155
144
  }
156
- //#endregion
157
- //#region node_modules/@tanstack/charts/dist/mark.js
145
+ // node_modules/@tanstack/charts/dist/mark.js
158
146
  var b = /* @__PURE__ */ new WeakSet();
159
147
  function x(e) {
160
148
  return typeof e == "string" || e instanceof Date && Number.isFinite(e.getTime()) || S(e);
@@ -247,40 +235,39 @@ function A(e, t, n = {}) {
247
235
  let r = t.map(j);
248
236
  if (r.every((e) => e !== void 0) && M(r, n.groups)) return r;
249
237
  }
250
- return N(n.markId, n.candidates, n.warningIdentity), e.map((e, t) => t);
238
+ return ee(n.markId, n.candidates, n.warningIdentity), e.map((e, t) => t);
251
239
  }
252
240
  function j(e) {
253
- if (R(e)) return e;
241
+ if (I(e)) return e;
254
242
  if (e instanceof Date && Number.isFinite(e.getTime())) return `date:${e.getTime()}`;
255
243
  }
256
244
  function M(e, t) {
257
245
  let n = /* @__PURE__ */ new Set();
258
246
  for (let r = 0; r < e.length; r += 1) {
259
- let i = JSON.stringify([z(t?.[r] ?? null), z(e[r])]);
247
+ let i = JSON.stringify([L(t?.[r] ?? null), L(e[r])]);
260
248
  if (n.has(i)) return !1;
261
249
  n.add(i);
262
250
  }
263
251
  return !0;
264
252
  }
265
- function N(e, t, n) {
253
+ function ee(e, t, n) {
266
254
  e && t?.length && n && !b.has(n) && typeof process < "u" && process.env.NODE_ENV !== "production" && (b.add(n), console.warn(`TanStack Charts could not infer a unique key for mark "${e}". Using row position; supply key for stable identity across updates.`));
267
255
  }
268
- //#endregion
269
- //#region node_modules/@tanstack/charts/dist/scale-input.js
270
- function P(e, t) {
271
- let n = ee(e), r = n ? e() : e;
256
+ // node_modules/@tanstack/charts/dist/scale-input.js
257
+ function te(e, t) {
258
+ let n = ne(e), r = n ? e() : e;
272
259
  if (typeof r != "function" || typeof r.copy != "function" || typeof r.domain != "function" || typeof r.range != "function") throw TypeError("A scale factory must return a copyable scale with domain and range methods");
273
260
  let i = r.copy();
274
261
  if (n) {
275
- let e = te(i, t.values, t.includeZero);
262
+ let e = re(i, t.values, t.includeZero);
276
263
  e && i.domain(e);
277
264
  }
278
- return I(i, t.nice, t.niceCount), i;
265
+ return ie(i, t.nice, t.niceCount), i;
279
266
  }
280
- function ee(e) {
267
+ function ne(e) {
281
268
  return typeof e == "function" && !("copy" in e);
282
269
  }
283
- function te(e, t, n = !1) {
270
+ function re(e, t, n = !1) {
284
271
  if (typeof e.bandwidth == "function" || typeof e.ticks != "function") {
285
272
  let e = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
286
273
  for (let i of t) {
@@ -313,42 +300,41 @@ function te(e, t, n = !1) {
313
300
  i = Math.min(i, e), a = Math.max(a, e);
314
301
  }
315
302
  if (!Number.isFinite(i) || !Number.isFinite(a)) throw TypeError("A quantitative scale factory requires numeric values");
316
- let o = F(e);
303
+ let o = N(e);
317
304
  if (n) {
318
305
  if (o) throw TypeError("An inferred log scale cannot include an implicit zero baseline");
319
306
  i = Math.min(0, i), a = Math.max(0, a);
320
307
  }
321
- if (ne(e, i, a), i === a) {
308
+ if (P(e, i, a), i === a) {
322
309
  if (i === 0) return [0, 1];
323
310
  let e = Math.abs(i) * .05 || 1;
324
311
  i -= e, a += e;
325
312
  }
326
313
  return [i, a];
327
314
  }
328
- function F(e) {
315
+ function N(e) {
329
316
  return "base" in e && typeof e.base == "function";
330
317
  }
331
- function ne(e, t, n) {
332
- if (F(e) && (t === 0 || n === 0 || t < 0 && n > 0)) throw TypeError("An inferred log domain cannot include or cross zero");
318
+ function P(e, t, n) {
319
+ if (N(e) && (t === 0 || n === 0 || t < 0 && n > 0)) throw TypeError("An inferred log domain cannot include or cross zero");
333
320
  }
334
- function I(e, t, n = 5) {
321
+ function ie(e, t, n = 5) {
335
322
  if (!t) return;
336
323
  let r = e;
337
324
  if (typeof r.nice != "function") throw TypeError("This scale does not support nicening");
338
325
  r.nice(typeof t == "number" ? t : n);
339
326
  }
340
- //#endregion
341
- //#region node_modules/@tanstack/charts/dist/scales.js
342
- function L(e, t, n) {
327
+ // node_modules/@tanstack/charts/dist/scales.js
328
+ function ae(e, t, n) {
343
329
  if (t?.scale) {
344
- let r = ie(t.scale), i = r ? t.scale() : t.scale;
330
+ let r = oe(t.scale), i = r ? t.scale() : t.scale;
345
331
  if (typeof i != "function" || typeof i.copy != "function") throw TypeError("A color scale must be callable and copyable");
346
332
  if (r && (typeof i.domain != "function" || typeof i.range != "function")) throw TypeError("A color scale factory must return a scale with domain and range methods");
347
- let a = i.copy(), o = ce(a);
333
+ let a = i.copy(), o = ue(a);
348
334
  if (r) {
349
335
  let n = a;
350
336
  t.range?.length && n.range(t.range);
351
- let r = t.domain ?? ae(n, e);
337
+ let r = t.domain ?? se(n, e);
352
338
  (t.domain !== void 0 || r.length) && n.domain(r);
353
339
  let i = n.range();
354
340
  if (!i.length || i.some((e) => typeof e != "string")) throw TypeError("A color-scale factory requires a string range");
@@ -377,7 +363,7 @@ function L(e, t, n) {
377
363
  range: t.range,
378
364
  theme: n
379
365
  });
380
- let r = t?.range?.length ? t.range : n.palette, i = re(t?.domain ?? e), a = i.map(z);
366
+ let r = t?.range?.length ? t.range : n.palette, i = F(t?.domain ?? e), a = i.map(L);
381
367
  return {
382
368
  type: "ordinal",
383
369
  kind: "categorical",
@@ -385,29 +371,29 @@ function L(e, t, n) {
385
371
  range: r,
386
372
  map: (e) => {
387
373
  if (e == null) return r[0] ?? "currentColor";
388
- let t = a.indexOf(z(e));
389
- return t < 0 && (t = a.push(z(e)) - 1), r[t % r.length] ?? "currentColor";
374
+ let t = a.indexOf(L(e));
375
+ return t < 0 && (t = a.push(L(e)) - 1), r[t % r.length] ?? "currentColor";
390
376
  }
391
377
  };
392
378
  }
393
- function re(e) {
394
- return [...new Set(e.filter(R))];
379
+ function F(e) {
380
+ return [...new Set(e.filter(I))];
395
381
  }
396
- function R(e) {
382
+ function I(e) {
397
383
  return typeof e == "string" || typeof e == "number";
398
384
  }
399
- function ie(e) {
385
+ function oe(e) {
400
386
  return typeof e == "function" && !("copy" in e);
401
387
  }
402
- function ae(e, t) {
403
- let n = t.filter(R), r = e.quantiles, i = e.thresholds;
404
- if (r) return oe(n);
388
+ function se(e, t) {
389
+ let n = t.filter(I), r = e.quantiles, i = e.thresholds;
390
+ if (r) return ce(n);
405
391
  if (e.invertExtent && !i) throw TypeError("Threshold color-scale factory requires an explicit domain");
406
392
  if (e.ticks || i) {
407
- let t = oe(n), r = Infinity, a = -Infinity;
393
+ let t = ce(n), r = Infinity, a = -Infinity;
408
394
  for (let e of t) r = Math.min(r, e), a = Math.max(a, e);
409
395
  if (!Number.isFinite(r) || !Number.isFinite(a)) return [];
410
- if (ne(e, r, a), r === a) {
396
+ if (P(e, r, a), r === a) {
411
397
  if (r === 0) a = 1;
412
398
  else {
413
399
  let e = Math.abs(r) * .05 || 1;
@@ -418,33 +404,32 @@ function ae(e, t) {
418
404
  let o = Math.max(2, e.domain().length, e.range().length);
419
405
  return Array.from({ length: o }, (e, t) => r + (a - r) * t / (o - 1));
420
406
  }
421
- return re(n);
407
+ return F(n);
422
408
  }
423
- function oe(e) {
409
+ function ce(e) {
424
410
  let t = e.filter((e) => typeof e == "number" && Number.isFinite(e));
425
- return t.length !== e.length && se(), t;
411
+ return t.length !== e.length && le(), t;
426
412
  }
427
- function se() {
413
+ function le() {
428
414
  throw TypeError("A quantitative color-scale factory requires numeric values");
429
415
  }
430
- function ce(e) {
416
+ function ue(e) {
431
417
  return e.quantiles ? e.invertExtent ? "quantile" : "continuous" : e.thresholds ? "quantize" : e.invertExtent ? "threshold" : e.ticks ? "continuous" : "categorical";
432
418
  }
433
- function z(e) {
419
+ function L(e) {
434
420
  return e instanceof Date ? `date:${e.getTime()}` : typeof e == "string" ? `string:${e.length}:${e}` : `${typeof e}:${String(e)}`;
435
421
  }
436
- //#endregion
437
- //#region node_modules/@tanstack/charts/dist/configured-scale.js
438
- function le(e, t) {
439
- let n = P(e, {
422
+ // node_modules/@tanstack/charts/dist/configured-scale.js
423
+ function de(e, t) {
424
+ let n = te(e, {
440
425
  values: t.values,
441
426
  includeZero: t.includeZero,
442
427
  nice: t.options?.nice,
443
428
  niceCount: t.tickCount
444
- }), r = fe(n.domain()), i = ue(n, t, r), a = n.bandwidth !== void 0, o = a && t.channel === "y" ? [Math.min(...t.range), Math.max(...t.range)] : t.range, s = t.options?.reverse ? [o[1], o[0]] : o;
445
- n.range(s);
446
- let c = fe(n.domain());
447
- if (i && (!de(c, i.domain) || !V(n, i.domain, s))) throw TypeError(`Chart viewport "${t.id}" requires independent configurable domain and range capabilities`);
429
+ }), r = ge(n.domain()), i = fe(n, t, r), a = n.bandwidth !== void 0, o = a && t.channel === "y" ? [Math.min(...t.range), Math.max(...t.range)] : t.range, s = t.options?.reverse ? [o[1], o[0]] : o;
430
+ n = n.range(s);
431
+ let c = ge(n.domain());
432
+ if (i && (!me(c, i.domain) || !he(n, i.domain, s))) throw TypeError(`Chart viewport "${t.id}" requires independent configurable domain and range capabilities`);
448
433
  let l = t.options?.axis === !1 ? void 0 : t.options?.axis?.ticks, u = l === !1 ? void 0 : l, d = u?.values ?? n.ticks?.(t.tickCount) ?? c, f = n.tickFormat?.(t.tickCount), p = n.bandwidth?.() ?? 0, m = (e) => {
449
434
  let t = n(e);
450
435
  return t === void 0 ? NaN : t + p / 2;
@@ -458,7 +443,7 @@ function le(e, t) {
458
443
  ticks: d.map((e) => ({
459
444
  value: e,
460
445
  position: m(e),
461
- label: u?.format?.(e) ?? f?.(e) ?? ve(e)
446
+ label: u?.format?.(e) ?? f?.(e) ?? xe(e)
462
447
  })),
463
448
  bandwidth: p,
464
449
  ...i ? { viewport: {
@@ -469,53 +454,53 @@ function le(e, t) {
469
454
  } } : {}
470
455
  };
471
456
  }
472
- function ue(e, t, n) {
457
+ function fe(e, t, n) {
473
458
  let r = t.options?.viewport;
474
459
  if (!r) return;
475
460
  let i = e;
476
461
  if (e.bandwidth !== void 0 || typeof e.ticks != "function" || typeof i.invert != "function") throw TypeError(`Chart viewport "${t.id}" requires a continuous numeric or temporal scale`);
477
462
  if (typeof i.clamp == "function" && i.clamp() === !0) throw TypeError(`Chart viewport "${t.id}" does not support a clamped scale`);
478
463
  let a = r.domain;
479
- (a.length !== 2 || !he(a[0], a[1])) && _e(t.id);
480
- let o = U(a[0]), s = U(a[1]);
481
- (!Number.isFinite(o) || !Number.isFinite(s) || o === s) && _e(t.id), me(e, t.id, n, a);
464
+ a.length === 2 && ve(a[0], a[1]) || B(t.id);
465
+ let o = ye(a[0]), s = ye(a[1]);
466
+ Number.isFinite(o) && Number.isFinite(s) && o !== s || B(t.id), _e(e, t.id, n, a);
482
467
  let c = r.translate ?? 0;
483
468
  if (!Number.isFinite(c)) throw TypeError(`Chart viewport "${t.id}" translate must be a finite number`);
484
- de(e.domain(), a) && B(e, [a[1], a[0]], t.id), B(e, a, t.id);
485
- let l = fe(e.domain());
486
- return (l.length !== 2 || !he(l[0], l[1])) && pe(t.id), {
469
+ me(e.domain(), a) && pe(e, [a[1], a[0]], t.id), pe(e, a, t.id);
470
+ let l = ge(e.domain());
471
+ return l.length === 2 && ve(l[0], l[1]) || R(t.id), {
487
472
  domain: l,
488
473
  translate: c
489
474
  };
490
475
  }
491
- function B(e, t, n) {
476
+ function pe(e, t, n) {
492
477
  let r = e.domain;
493
478
  try {
494
479
  r.call(e, [...t]);
495
480
  } catch {
496
- pe(n);
481
+ R(n);
497
482
  }
498
- de(e.domain(), t) || pe(n);
483
+ me(e.domain(), t) || R(n);
499
484
  }
500
- function de(e, t) {
501
- return e.length === t.length && e.every((e, n) => ge(e, t[n]));
485
+ function me(e, t) {
486
+ return e.length === t.length && e.every((e, n) => be(e, t[n]));
502
487
  }
503
- function V(e, t, n) {
488
+ function he(e, t, n) {
504
489
  let r = e(t[0]), i = e(t[1]);
505
490
  return r !== void 0 && i !== void 0 && Number.isFinite(r) && Number.isFinite(i) && Math.abs(r - n[0]) <= 1e-6 && Math.abs(i - n[1]) <= 1e-6;
506
491
  }
507
- function fe(e) {
492
+ function ge(e) {
508
493
  return e.map((e) => e instanceof Date ? new Date(e.getTime()) : e);
509
494
  }
510
- function pe(e) {
495
+ function R(e) {
511
496
  throw TypeError(`Chart viewport "${e}" requires a scale with a configurable domain`);
512
497
  }
513
- function me(e, t, n, r) {
514
- if (!F(e)) return;
515
- let i = H(n), a = H(r);
498
+ function _e(e, t, n, r) {
499
+ if (!N(e)) return;
500
+ let i = z(n), a = z(r);
516
501
  if (i === void 0 || a === void 0 || i !== a) throw TypeError(`Chart viewport "${t}" logarithmic content and viewport domains must be finite, nonzero, and stay on the same side of zero`);
517
502
  }
518
- function H(e) {
503
+ function z(e) {
519
504
  let t;
520
505
  for (let n of e) {
521
506
  if (typeof n != "number" || !Number.isFinite(n) || n === 0) return;
@@ -525,24 +510,23 @@ function H(e) {
525
510
  }
526
511
  return t;
527
512
  }
528
- function he(e, t) {
513
+ function ve(e, t) {
529
514
  return typeof e == "number" && typeof t == "number" || e instanceof Date && t instanceof Date;
530
515
  }
531
- function U(e) {
516
+ function ye(e) {
532
517
  return e instanceof Date ? e.getTime() : e;
533
518
  }
534
- function ge(e, t) {
519
+ function be(e, t) {
535
520
  return e instanceof Date && t instanceof Date ? e.getTime() === t.getTime() : Object.is(e, t);
536
521
  }
537
- function _e(e) {
522
+ function B(e) {
538
523
  throw TypeError(`Chart viewport "${e}" domain must contain two distinct finite numbers or Dates`);
539
524
  }
540
- function ve(e) {
525
+ function xe(e) {
541
526
  return e instanceof Date ? e.toLocaleDateString() : String(e);
542
527
  }
543
- //#endregion
544
- //#region node_modules/@tanstack/charts/dist/guide-layout.js
545
- var ye = 16, be = 400, xe = {
528
+ // node_modules/@tanstack/charts/dist/guide-layout.js
529
+ var Se = 16, V = 400, Ce = {
546
530
  fontFamily: "sans-serif",
547
531
  fontStyle: "normal",
548
532
  fontStretch: "normal",
@@ -550,16 +534,16 @@ var ye = 16, be = 400, xe = {
550
534
  direction: "inherit",
551
535
  fontScale: 1
552
536
  };
553
- function Se(e, t) {
537
+ function we(e, t) {
554
538
  if (e === "middle") return "middle";
555
539
  let n = t !== "rtl";
556
540
  return e === "left" ? n ? "start" : "end" : n ? "end" : "start";
557
541
  }
558
- function Ce(e, t, n) {
542
+ function Te(e, t, n) {
559
543
  return t === "middle" ? -e / 2 : t === "start" == (n !== "rtl") ? 0 : -e;
560
544
  }
561
- function we(e, t) {
562
- let n = Ne(t.fontScale, 1), r = je(t.fontSize, ye) * n, i = je(t.fontWeight, be), a = Me(t.letterSpacing, 0) * n;
545
+ function Ee(e, t) {
546
+ let n = Pe(t.fontScale, 1), r = Me(t.fontSize, Se) * n, i = Me(t.fontWeight, V), a = Ne(t.letterSpacing, 0) * n;
563
547
  if (!e || r === 0) return {
564
548
  x: 0,
565
549
  y: 0,
@@ -567,17 +551,17 @@ function we(e, t) {
567
551
  height: 0
568
552
  };
569
553
  let o = 0;
570
- for (let t of e) o += Ae(t);
554
+ for (let t of e) o += je(t);
571
555
  let s = 1 + (Math.min(900, Math.max(100, i)) - 400) / 12500, c = Math.max(0, o * r * s + Math.max(0, Array.from(e).length - 1) * a), l = r;
572
556
  return {
573
- x: Ce(c, t.anchor, t.direction),
557
+ x: Te(c, t.anchor, t.direction),
574
558
  y: t.baseline === "middle" ? -l / 2 : t.baseline === "hanging" ? 0 : -r * .8,
575
559
  width: c,
576
560
  height: l
577
561
  };
578
562
  }
579
- function Te(e, t = we) {
580
- let n = je(e.fontSize, ye), r = e.anchor ?? "start", i = e.baseline ?? "auto", a = e.text.length === 0 ? {
563
+ function H(e, t = Ee) {
564
+ let n = Me(e.fontSize, Se), r = e.anchor ?? "start", i = e.baseline ?? "auto", a = e.text.length === 0 ? {
581
565
  x: 0,
582
566
  y: 0,
583
567
  width: 0,
@@ -585,34 +569,34 @@ function Te(e, t = we) {
585
569
  } : t(e.text, {
586
570
  fontSize: n,
587
571
  fontWeight: e.fontWeight,
588
- ...xe,
572
+ ...Ce,
589
573
  anchor: r,
590
574
  baseline: i
591
- }), o = Me(a.x, 0), s = Me(a.y, 0), c = je(a.width, 0), l = je(a.height, 0), u = {
575
+ }), o = Ne(a.x, 0), s = Ne(a.y, 0), c = Me(a.width, 0), l = Me(a.height, 0), u = {
592
576
  x: e.x + o,
593
577
  y: e.y + s,
594
578
  width: c,
595
579
  height: l
596
580
  };
597
- return e.rotate ? ke(u, e.x, e.y, e.rotate) : u;
581
+ return e.rotate ? Ae(u, e.x, e.y, e.rotate) : u;
598
582
  }
599
- function Ee(e = we, t = {}) {
583
+ function De(e = Ee, t = {}) {
600
584
  let n = {
601
- ...xe,
585
+ ...Ce,
602
586
  ...t,
603
- fontFamily: t.fontFamily || xe.fontFamily,
604
- fontStyle: t.fontStyle || xe.fontStyle,
605
- fontStretch: t.fontStretch || xe.fontStretch,
606
- letterSpacing: Me(t.letterSpacing, 0),
607
- fontScale: Ne(t.fontScale, 1)
587
+ fontFamily: t.fontFamily || Ce.fontFamily,
588
+ fontStyle: t.fontStyle || Ce.fontStyle,
589
+ fontStretch: t.fontStretch || Ce.fontStretch,
590
+ letterSpacing: Ne(t.letterSpacing, 0),
591
+ fontScale: Pe(t.fontScale, 1)
608
592
  };
609
593
  return (t, r) => e(t, {
610
594
  ...r,
611
595
  ...n
612
596
  });
613
597
  }
614
- function De(e, t, n) {
615
- Oe(t, 0, 0, (t, r, i) => {
598
+ function Oe(e, t, n) {
599
+ ke(t, 0, 0, (t, r, i) => {
616
600
  let a = t.style;
617
601
  if (!(a?.strokeWidth !== void 0 || a?.lineCap !== void 0 && a.lineCap !== "butt") || a?.stroke === "none") return;
618
602
  let o = a?.strokeWidth ?? 1;
@@ -621,16 +605,16 @@ function De(e, t, n) {
621
605
  e.top = Math.max(e.top, n.y - S), e.right = Math.max(e.right, x - n.x - n.width), e.bottom = Math.max(e.bottom, C - n.y - n.height), e.left = Math.max(e.left, n.x - b);
622
606
  });
623
607
  }
624
- function Oe(e, t, n, r) {
608
+ function ke(e, t, n, r) {
625
609
  if (e.kind === "rule") {
626
610
  r(e, t, n);
627
611
  return;
628
612
  }
629
613
  if (e.kind !== "group") return;
630
614
  let i = t + (e.translateX ?? 0), a = n + (e.translateY ?? 0);
631
- for (let t of e.children) Oe(t, i, a, r);
615
+ for (let t of e.children) ke(t, i, a, r);
632
616
  }
633
- function ke(e, t, n, r) {
617
+ function Ae(e, t, n, r) {
634
618
  let i = r * Math.PI / 180, a = Math.cos(i), o = Math.sin(i), s = e.x + e.width / 2 - t, c = e.y + e.height / 2 - n, l = Math.abs(e.width * a) + Math.abs(e.height * o), u = Math.abs(e.width * o) + Math.abs(e.height * a), d = s * a - c * o + t, f = s * o + c * a + n;
635
619
  return {
636
620
  x: d - l / 2,
@@ -639,32 +623,31 @@ function ke(e, t, n, r) {
639
623
  height: u
640
624
  };
641
625
  }
642
- function Ae(e) {
626
+ function je(e) {
643
627
  return /\s/u.test(e) ? .33 : /[\u0300-\u036f]/u.test(e) ? 0 : /[ilI1|!.,:;'`]/u.test(e) ? .28 : /[mwMW@#%&]/u.test(e) ? .9 : /[A-Z]/u.test(e) ? .64 : /[0-9]/u.test(e) ? .56 : e.codePointAt(0) > 127 ? 1 : .54;
644
628
  }
645
- function je(e, t) {
629
+ function Me(e, t) {
646
630
  return e !== void 0 && Number.isFinite(e) && e >= 0 ? e : t;
647
631
  }
648
- function Me(e, t) {
632
+ function Ne(e, t) {
649
633
  return e !== void 0 && Number.isFinite(e) ? e : t;
650
634
  }
651
- function Ne(e, t) {
635
+ function Pe(e, t) {
652
636
  return e !== void 0 && Number.isFinite(e) && e > 0 ? e : t;
653
637
  }
654
- //#endregion
655
- //#region node_modules/@tanstack/charts/dist/renderer-rect.js
656
- function Pe(e, t, n) {
638
+ // node_modules/@tanstack/charts/dist/renderer-rect.js
639
+ function Fe(e, t, n) {
657
640
  let [r, i, a, o] = e ?? [
658
641
  0,
659
642
  0,
660
643
  0,
661
644
  0
662
645
  ], s = [
663
- G(r),
664
- G(i),
665
- G(a),
666
- G(o)
667
- ], c = Fe(t), l = Fe(n), u = Math.min(1, Ie(c, s[0] + s[1]), Ie(c, s[3] + s[2]), Ie(l, s[0] + s[3]), Ie(l, s[1] + s[2]));
646
+ Le(r),
647
+ Le(i),
648
+ Le(a),
649
+ Le(o)
650
+ ], c = Re(t), l = Re(n), u = Math.min(1, U(c, s[0] + s[1]), U(c, s[3] + s[2]), U(l, s[0] + s[3]), U(l, s[1] + s[2]));
668
651
  return u === 1 ? s : [
669
652
  s[0] * u,
670
653
  s[1] * u,
@@ -672,31 +655,31 @@ function Pe(e, t, n) {
672
655
  s[3] * u
673
656
  ];
674
657
  }
675
- function W(e, t, n, r, i) {
676
- let a = Le(e, t, n, r), [o, s, c, l] = Pe(i, a.width, a.height), u = a.x, d = a.y, f = u + a.width, p = d + a.height;
658
+ function Ie(e, t, n, r, i) {
659
+ let a = ze(e, t, n, r), [o, s, c, l] = Fe(i, a.width, a.height), u = a.x, d = a.y, f = u + a.width, p = d + a.height;
677
660
  return [
678
- `M${K(u + o)},${K(d)}`,
679
- `H${K(f - s)}`,
680
- `A${K(s)},${K(s)} 0 0 1 ${K(f)},${K(d + s)}`,
681
- `V${K(p - c)}`,
682
- `A${K(c)},${K(c)} 0 0 1 ${K(f - c)},${K(p)}`,
683
- `H${K(u + l)}`,
684
- `A${K(l)},${K(l)} 0 0 1 ${K(u)},${K(p - l)}`,
685
- `V${K(d + o)}`,
686
- `A${K(o)},${K(o)} 0 0 1 ${K(u + o)},${K(d)}`,
661
+ `M${W(u + o)},${W(d)}`,
662
+ `H${W(f - s)}`,
663
+ `A${W(s)},${W(s)} 0 0 1 ${W(f)},${W(d + s)}`,
664
+ `V${W(p - c)}`,
665
+ `A${W(c)},${W(c)} 0 0 1 ${W(f - c)},${W(p)}`,
666
+ `H${W(u + l)}`,
667
+ `A${W(l)},${W(l)} 0 0 1 ${W(u)},${W(p - l)}`,
668
+ `V${W(d + o)}`,
669
+ `A${W(o)},${W(o)} 0 0 1 ${W(u + o)},${W(d)}`,
687
670
  "Z"
688
671
  ].join("");
689
672
  }
690
- function G(e) {
673
+ function Le(e) {
691
674
  return Number.isFinite(e) && e > 0 ? e : 0;
692
675
  }
693
- function Fe(e) {
676
+ function Re(e) {
694
677
  return Number.isFinite(e) ? Math.abs(e) : 0;
695
678
  }
696
- function Ie(e, t) {
679
+ function U(e, t) {
697
680
  return t === 0 ? 1 : e / t;
698
681
  }
699
- function Le(e, t, n, r) {
682
+ function ze(e, t, n, r) {
700
683
  let i = e + n, a = t + r;
701
684
  return {
702
685
  x: Math.min(e, i),
@@ -705,24 +688,23 @@ function Le(e, t, n, r) {
705
688
  height: Math.abs(r)
706
689
  };
707
690
  }
708
- function K(e) {
691
+ function W(e) {
709
692
  return String(Math.round(e * 100) / 100);
710
693
  }
711
- //#endregion
712
- //#region node_modules/@tanstack/charts/dist/rect-radius-internal.js
713
- var Re = Math.PI * 2;
714
- function ze(e, t, n, r, i, a, o) {
715
- let s = Ve(e, t, n, r), c = s.x, l = s.y, u = c + s.width, d = l + s.height;
694
+ // node_modules/@tanstack/charts/dist/rect-radius-internal.js
695
+ var G = Math.PI * 2;
696
+ function Be(e, t, n, r, i, a, o) {
697
+ let s = He(e, t, n, r), c = s.x, l = s.y, u = c + s.width, d = l + s.height;
716
698
  if (!(a >= c && a <= u && o >= l && o <= d)) return !1;
717
- let [f, p, m, h] = Pe(i, s.width, s.height);
718
- return a < c + f && o < l + f ? He(a, o, c + f, l + f, f) : a > u - p && o < l + p ? He(a, o, u - p, l + p, p) : a > u - m && o > d - m ? He(a, o, u - m, d - m, m) : a < c + h && o > d - h ? He(a, o, c + h, d - h, h) : !0;
699
+ let [f, p, m, h] = Fe(i, s.width, s.height);
700
+ return a < c + f && o < l + f ? Ue(a, o, c + f, l + f, f) : a > u - p && o < l + p ? Ue(a, o, u - p, l + p, p) : a > u - m && o > d - m ? Ue(a, o, u - m, d - m, m) : a < c + h && o > d - h ? Ue(a, o, c + h, d - h, h) : !0;
719
701
  }
720
- function Be(e, t, n, r, i, a, o) {
721
- if (ze(e, t, n, r, i, a, o)) return 0;
722
- let s = Ve(e, t, n, r), c = s.x, l = s.y, u = c + s.width, d = l + s.height, [f, p, m, h] = Pe(i, s.width, s.height);
723
- return Math.min(We(c + f, l, u - p, l, a, o), We(u, l + p, u, d - m, a, o), We(u - m, d, c + h, d, a, o), We(c, d - h, c, l + f, a, o), Ue(a, o, c + f, l + f, f, Math.PI, Math.PI * 1.5), Ue(a, o, u - p, l + p, p, Math.PI * 1.5, Re), Ue(a, o, u - m, d - m, m, 0, Math.PI * .5), Ue(a, o, c + h, d - h, h, Math.PI * .5, Math.PI));
702
+ function Ve(e, t, n, r, i, a, o) {
703
+ if (Be(e, t, n, r, i, a, o)) return 0;
704
+ let s = He(e, t, n, r), c = s.x, l = s.y, u = c + s.width, d = l + s.height, [f, p, m, h] = Fe(i, s.width, s.height);
705
+ return Math.min(Ge(c + f, l, u - p, l, a, o), Ge(u, l + p, u, d - m, a, o), Ge(u - m, d, c + h, d, a, o), Ge(c, d - h, c, l + f, a, o), We(a, o, c + f, l + f, f, Math.PI, Math.PI * 1.5), We(a, o, u - p, l + p, p, Math.PI * 1.5, G), We(a, o, u - m, d - m, m, 0, Math.PI * .5), We(a, o, c + h, d - h, h, Math.PI * .5, Math.PI));
724
706
  }
725
- function Ve(e, t, n, r) {
707
+ function He(e, t, n, r) {
726
708
  let i = e + n, a = t + r;
727
709
  return {
728
710
  x: Math.min(e, i),
@@ -731,26 +713,25 @@ function Ve(e, t, n, r) {
731
713
  height: Math.abs(r)
732
714
  };
733
715
  }
734
- function He(e, t, n, r, i) {
716
+ function Ue(e, t, n, r, i) {
735
717
  let a = e - n, o = t - r;
736
718
  return a * a + o * o <= i * i;
737
719
  }
738
- function Ue(e, t, n, r, i, a, o) {
739
- if (i === 0) return Ge(e, t, n, r);
720
+ function We(e, t, n, r, i, a, o) {
721
+ if (i === 0) return K(e, t, n, r);
740
722
  let s = Math.atan2(t - r, e - n);
741
- return s < 0 && (s += Re), s >= a && s <= o ? (Math.hypot(e - n, t - r) - i) ** 2 : Math.min(Ge(e, t, n + Math.cos(a) * i, r + Math.sin(a) * i), Ge(e, t, n + Math.cos(o) * i, r + Math.sin(o) * i));
723
+ return s < 0 && (s += G), s >= a && s <= o ? (Math.hypot(e - n, t - r) - i) ** 2 : Math.min(K(e, t, n + Math.cos(a) * i, r + Math.sin(a) * i), K(e, t, n + Math.cos(o) * i, r + Math.sin(o) * i));
742
724
  }
743
- function We(e, t, n, r, i, a) {
725
+ function Ge(e, t, n, r, i, a) {
744
726
  let o = n - e, s = r - t, c = o * o + s * s;
745
- if (c === 0) return Ge(i, a, e, t);
727
+ if (c === 0) return K(i, a, e, t);
746
728
  let l = Math.max(0, Math.min(1, ((i - e) * o + (a - t) * s) / c));
747
- return Ge(i, a, e + l * o, t + l * s);
729
+ return K(i, a, e + l * o, t + l * s);
748
730
  }
749
- function Ge(e, t, n, r) {
731
+ function K(e, t, n, r) {
750
732
  return (e - n) ** 2 + (t - r) ** 2;
751
733
  }
752
- //#endregion
753
- //#region node_modules/@tanstack/charts/dist/nearest.js
734
+ // node_modules/@tanstack/charts/dist/nearest.js
754
735
  var Ke = /* @__PURE__ */ new WeakMap();
755
736
  function qe(e, t, n, r) {
756
737
  let i, a = Infinity;
@@ -845,7 +826,7 @@ function $e(e, t) {
845
826
  function et(e, t, n) {
846
827
  let r = t - e.offsetX, i = n - e.offsetY, { node: a } = e;
847
828
  switch (a.kind) {
848
- case "rect": return a.cornerRadii === void 0 ? rt(a, r, i) : ze(a.x, a.y, a.width, a.height, a.cornerRadii, r, i);
829
+ case "rect": return a.cornerRadii === void 0 ? rt(a, r, i) : Be(a.x, a.y, a.width, a.height, a.cornerRadii, r, i);
849
830
  case "dot": {
850
831
  let e = r - a.x, t = i - a.y, n = Math.max(0, a.radius);
851
832
  return e * e + t * t <= n * n;
@@ -859,7 +840,7 @@ function tt(e, t, n) {
859
840
  let r = t - e.offsetX, i = n - e.offsetY, { node: a } = e, o;
860
841
  switch (a.kind) {
861
842
  case "rect":
862
- o = a.cornerRadii === void 0 ? a.radius ? it(a, r, i) : vt(a, r, i) : Be(a.x, a.y, a.width, a.height, a.cornerRadii, r, i);
843
+ o = a.cornerRadii === void 0 ? a.radius ? it(a, r, i) : vt(a, r, i) : Ve(a.x, a.y, a.width, a.height, a.cornerRadii, r, i);
863
844
  break;
864
845
  case "dot": {
865
846
  let e = r - a.x, t = i - a.y, n = Math.max(0, Math.sqrt(e * e + t * t) - Math.max(0, a.radius));
@@ -1014,8 +995,7 @@ function vt(e, t, n) {
1014
995
  function yt(e) {
1015
996
  return Math.max(0, e.style?.strokeWidth ?? 1) / 2;
1016
997
  }
1017
- //#endregion
1018
- //#region node_modules/@tanstack/charts/dist/focus-coordinate-internal.js
998
+ // node_modules/@tanstack/charts/dist/focus-coordinate-internal.js
1019
999
  var bt = /* @__PURE__ */ new WeakMap();
1020
1000
  function xt(e, t, n) {
1021
1001
  let r = bt.get(e);
@@ -1024,14 +1004,12 @@ function xt(e, t, n) {
1024
1004
  function St(e, t) {
1025
1005
  return bt.get(e)?.[t] ?? e[t];
1026
1006
  }
1027
- //#endregion
1028
- //#region node_modules/@tanstack/charts/dist/materialized-channel-internal.js
1007
+ // node_modules/@tanstack/charts/dist/materialized-channel-internal.js
1029
1008
  var Ct = /* @__PURE__ */ Symbol();
1030
1009
  function wt(e, t) {
1031
1010
  return e === "x" || e === "y" ? e : t[Ct];
1032
1011
  }
1033
- //#endregion
1034
- //#region node_modules/@tanstack/charts/dist/scene-point-map.js
1012
+ // node_modules/@tanstack/charts/dist/scene-point-map.js
1035
1013
  function Tt(e, t) {
1036
1014
  return ["x", "y"].some((n) => (e.scales[n]?.viewport?.translate ?? 0) !== (t.scales[n]?.viewport?.translate ?? 0));
1037
1015
  }
@@ -1058,8 +1036,7 @@ function Et(e, t) {
1058
1036
  }
1059
1037
  });
1060
1038
  }
1061
- //#endregion
1062
- //#region node_modules/@tanstack/charts/dist/scene-source.js
1039
+ // node_modules/@tanstack/charts/dist/scene-source.js
1063
1040
  var Dt = /* @__PURE__ */ Symbol("chart-scene-source"), Ot = /* @__PURE__ */ Symbol("default-focus-layer");
1064
1041
  function kt(e) {
1065
1042
  return e.focus && Object.assign(e.focus, { [Ot]: !0 }), e;
@@ -1067,8 +1044,7 @@ function kt(e) {
1067
1044
  function At(e) {
1068
1045
  return e.focus?.[Ot] === !0;
1069
1046
  }
1070
- //#endregion
1071
- //#region node_modules/@tanstack/charts/dist/scene.js
1047
+ // node_modules/@tanstack/charts/dist/scene.js
1072
1048
  var jt = {
1073
1049
  foreground: "currentColor",
1074
1050
  muted: "currentColor",
@@ -1099,14 +1075,14 @@ function Nt(e, t, n = {}) {
1099
1075
  }, n);
1100
1076
  }
1101
1077
  function Pt(e, t) {
1102
- if (typeof e == "function") return le(e, t);
1078
+ if (typeof e == "function") return de(e, t);
1103
1079
  if (t.options?.viewport) throw TypeError(`Chart viewport "${t.id}" requires a configured or inferable continuous scale`);
1104
1080
  return e.resolve(t);
1105
1081
  }
1106
1082
  function Ft(e, t, n, r) {
1107
1083
  let i = Tn(t.width), a = Tn(t.height), o = {
1108
1084
  ...r,
1109
- measureText: Ee(r.measureText, r.typography)
1085
+ measureText: De(r.measureText, r.typography)
1110
1086
  }, s = {
1111
1087
  ...jt,
1112
1088
  ...o.defaultTheme,
@@ -1444,7 +1420,7 @@ function Xt(e, t, n, r, i, a, o, s) {
1444
1420
  scales: u,
1445
1421
  theme: i,
1446
1422
  layout: s
1447
- }), p = L(Wt(f, "color").values, e.color, i);
1423
+ }), p = ae(Wt(f, "color").values, e.color, i);
1448
1424
  if (p.kind !== "categorical" && f.some((e) => e.seriesFromColor)) throw TypeError("A continuous color channel cannot infer series identity; supply z explicitly");
1449
1425
  let m = p.domain.length ? e.color?.legend : void 0;
1450
1426
  if (m?.seriesVisible && p.kind !== "categorical") throw TypeError("An interactive color legend requires a categorical color scale");
@@ -1468,7 +1444,7 @@ function Xt(e, t, n, r, i, a, o, s) {
1468
1444
  width: l.width,
1469
1445
  height: h
1470
1446
  } : void 0, _ = e.guides === !1 ? [] : d.filter(Zt), v = e.guides === !1 ? [] : d.filter(Qt), y = dn(l, _, i, n, s.measureText, s.typography?.direction === "rtl");
1471
- return v.length && De(y.margin, un(l, v, i), l), {
1447
+ return v.length && Oe(y.margin, un(l, v, i), l), {
1472
1448
  margin: c,
1473
1449
  chart: l,
1474
1450
  scales: u,
@@ -1552,7 +1528,7 @@ function $t(e, t) {
1552
1528
  });
1553
1529
  }
1554
1530
  function en(e, t, n, r) {
1555
- let i = Te(n, r);
1531
+ let i = H(n, r);
1556
1532
  return n.text && tn(e, t, i), i;
1557
1533
  }
1558
1534
  function tn(e, t, n) {
@@ -1612,7 +1588,7 @@ function un(e, t, n) {
1612
1588
  if (!n.options?.grid) continue;
1613
1589
  let t = fn(n.options.grid);
1614
1590
  for (let i of n.scale.ticks) {
1615
- let a = `${n.id}-grid:${z(i.value)}`;
1591
+ let a = `${n.id}-grid:${L(i.value)}`;
1616
1592
  r.push(n.channel === "x" ? {
1617
1593
  kind: "rule",
1618
1594
  key: a,
@@ -1676,7 +1652,7 @@ function dn(e, t, n, r, i, a = !1) {
1676
1652
  ariaHidden: !0,
1677
1653
  children: o
1678
1654
  };
1679
- return De(s, f, e), {
1655
+ return Oe(s, f, e), {
1680
1656
  axes: f,
1681
1657
  margin: s
1682
1658
  };
@@ -1691,39 +1667,39 @@ function dn(e, t, n, r, i, a = !1) {
1691
1667
  y2: s,
1692
1668
  style: h(d?.line)
1693
1669
  }), l(s + p * pn(d?.line)));
1694
- let m = d?.ticks === !1 ? [] : t.scale.ticks, g = q(d?.ticks === !1 ? 0 : d?.ticks?.size ?? 4), _ = q(d?.ticks === !1 ? 0 : d?.ticks?.padding ?? 4), v = gn(d), y = v === !1 ? [] : vn(t, _n(t.scale, t.options, v), s, g, _, v, r, n, i, a), b = v === !1 ? [] : bn(y, v, t.scale.type === "band"), x = s;
1670
+ let m = d?.ticks === !1 ? [] : t.scale.ticks, g = d?.ticks && d.ticks.line, _ = q(d?.ticks === !1 || g === !1 ? 0 : d?.ticks?.size ?? 4), v = q(d?.ticks === !1 ? 0 : d?.ticks?.padding ?? 4), y = gn(d), b = y === !1 ? [] : vn(t, _n(t.scale, t.options, y), s, _, v, y, r, n, i, a), x = y === !1 ? [] : bn(b, y, t.scale.type === "band"), S = s;
1695
1671
  for (let e of m) {
1696
- if (g <= 0) continue;
1697
- let n = s + p * g;
1698
- l(n), x = f ? Math.max(x, n) : Math.min(x, n), o.push({
1672
+ if (_ <= 0) continue;
1673
+ let n = s + p * _;
1674
+ l(n), S = f ? Math.max(S, n) : Math.min(S, n), o.push({
1699
1675
  kind: "rule",
1700
- key: `${t.id}-tick-rule:${z(e.value)}`,
1676
+ key: `${t.id}-tick-rule:${L(e.value)}`,
1701
1677
  x1: e.position,
1702
1678
  x2: e.position,
1703
1679
  y1: s,
1704
1680
  y2: n,
1705
- style: h()
1681
+ style: h(g)
1706
1682
  });
1707
1683
  }
1708
- for (let e of b) c(e.bounds), x = f ? Math.max(x, e.bounds.y + e.bounds.height) : Math.min(x, e.bounds.y), o.push(e.label);
1709
- let S = d?.label, C = typeof S == "string" ? S : S?.text;
1710
- if (!C) return;
1711
- let w = typeof S == "object" ? S : void 0, T = w?.offset ?? "auto", E = T !== "auto", D = {
1684
+ for (let e of x) c(e.bounds), S = f ? Math.max(S, e.bounds.y + e.bounds.height) : Math.min(S, e.bounds.y), o.push(e.label);
1685
+ let C = d?.label, w = typeof C == "string" ? C : C?.text;
1686
+ if (!w) return;
1687
+ let T = typeof C == "object" ? C : void 0, E = T?.offset ?? "auto", D = E !== "auto", O = {
1712
1688
  kind: "label",
1713
1689
  key: `${t.id}-label`,
1714
1690
  x: e.x + e.width / 2,
1715
- y: E ? s + p * Math.max(0, q(T)) : x + p * 8,
1716
- text: C,
1691
+ y: D ? s + p * Math.max(0, q(E)) : S + p * 8,
1692
+ text: w,
1717
1693
  anchor: "middle",
1718
- baseline: f && !E ? "hanging" : "auto",
1719
- fontSize: w?.fontSize ?? (r < 360 ? 10 : 11),
1720
- fontWeight: w?.fontWeight ?? 600,
1694
+ baseline: f && !D ? "hanging" : "auto",
1695
+ fontSize: T?.fontSize ?? (r < 360 ? 10 : 11),
1696
+ fontWeight: T?.fontWeight ?? 600,
1721
1697
  style: {
1722
- fill: w?.fill ?? n.foreground,
1723
- ...w?.opacity === void 0 ? { fillOpacity: .76 } : { opacity: w.opacity }
1698
+ fill: T?.fill ?? n.foreground,
1699
+ ...T?.opacity === void 0 ? { fillOpacity: .76 } : { opacity: T.opacity }
1724
1700
  }
1725
1701
  };
1726
- c(Te(D, i)), o.push(D);
1702
+ c(H(O, i)), o.push(O);
1727
1703
  }
1728
1704
  function m(t, s, c, l) {
1729
1705
  let u = hn(t.options), f = t.side === "right", p = f ? 1 : -1;
@@ -1736,49 +1712,49 @@ function dn(e, t, n, r, i, a = !1) {
1736
1712
  y2: d,
1737
1713
  style: h(u?.line)
1738
1714
  }), l(s + p * pn(u?.line)));
1739
- let m = u?.ticks === !1 ? [] : t.scale.ticks, g = q(u?.ticks === !1 ? 0 : u?.ticks?.size ?? 4), _ = q(u?.ticks === !1 ? 0 : u?.ticks?.padding ?? 4), v = gn(u), y = v === !1 ? [] : vn(t, _n(t.scale, t.options, v), s, g, _, v, r, n, i, a), b = v === !1 ? [] : bn(y, v, !1), x = s;
1715
+ let m = u?.ticks === !1 ? [] : t.scale.ticks, g = u?.ticks && u.ticks.line, _ = q(u?.ticks === !1 || g === !1 ? 0 : u?.ticks?.size ?? 4), v = q(u?.ticks === !1 ? 0 : u?.ticks?.padding ?? 4), y = gn(u), b = y === !1 ? [] : vn(t, _n(t.scale, t.options, y), s, _, v, y, r, n, i, a), x = y === !1 ? [] : bn(b, y, !1), S = s;
1740
1716
  for (let e of m) {
1741
- if (g <= 0) continue;
1742
- let n = s + p * g;
1743
- l(n), x = f ? Math.max(x, n) : Math.min(x, n), o.push({
1717
+ if (_ <= 0) continue;
1718
+ let n = s + p * _;
1719
+ l(n), S = f ? Math.max(S, n) : Math.min(S, n), o.push({
1744
1720
  kind: "rule",
1745
- key: `${t.id}-tick-rule:${z(e.value)}`,
1721
+ key: `${t.id}-tick-rule:${L(e.value)}`,
1746
1722
  x1: s,
1747
1723
  x2: n,
1748
1724
  y1: e.position,
1749
1725
  y2: e.position,
1750
- style: h()
1726
+ style: h(g)
1751
1727
  });
1752
1728
  }
1753
- for (let e of b) c(e.bounds), x = f ? Math.max(x, e.bounds.x + e.bounds.width) : Math.min(x, e.bounds.x), o.push(e.label);
1754
- let S = u?.label, C = typeof S == "string" ? S : S?.text;
1755
- if (!C) return;
1756
- let w = typeof S == "object" ? S : void 0, T = {
1729
+ for (let e of x) c(e.bounds), S = f ? Math.max(S, e.bounds.x + e.bounds.width) : Math.min(S, e.bounds.x), o.push(e.label);
1730
+ let C = u?.label, w = typeof C == "string" ? C : C?.text;
1731
+ if (!w) return;
1732
+ let T = typeof C == "object" ? C : void 0, E = {
1757
1733
  kind: "label",
1758
1734
  key: `${t.id}-label`,
1759
1735
  x: s,
1760
1736
  y: e.y + e.height / 2,
1761
- text: C,
1737
+ text: w,
1762
1738
  anchor: "middle",
1763
1739
  baseline: "middle",
1764
1740
  rotate: f ? 90 : -90,
1765
- fontSize: w?.fontSize ?? 11,
1766
- fontWeight: w?.fontWeight ?? 600,
1741
+ fontSize: T?.fontSize ?? 11,
1742
+ fontWeight: T?.fontWeight ?? 600,
1767
1743
  style: {
1768
- fill: w?.fill ?? n.foreground,
1769
- ...w?.opacity === void 0 ? { fillOpacity: .76 } : { opacity: w.opacity }
1744
+ fill: T?.fill ?? n.foreground,
1745
+ ...T?.opacity === void 0 ? { fillOpacity: .76 } : { opacity: T.opacity }
1770
1746
  }
1771
- }, E = w?.offset ?? "auto";
1772
- if (E !== "auto") T.x = s + p * Math.max(0, q(E));
1747
+ }, D = T?.offset ?? "auto";
1748
+ if (D !== "auto") E.x = s + p * Math.max(0, q(D));
1773
1749
  else {
1774
- let e = Te({
1775
- ...T,
1750
+ let e = H({
1751
+ ...E,
1776
1752
  x: 0,
1777
1753
  y: 0
1778
1754
  }, i);
1779
- T.x = f ? x + 8 - e.x : x - 8 - (e.x + e.width);
1755
+ E.x = f ? S + 8 - e.x : S - 8 - (e.x + e.width);
1780
1756
  }
1781
- c(Te(T, i)), o.push(T);
1757
+ c(H(E, i)), o.push(E);
1782
1758
  }
1783
1759
  function h(e) {
1784
1760
  return {
@@ -1826,11 +1802,11 @@ function _n(e, t, n) {
1826
1802
  if (!r.length) return e.ticks;
1827
1803
  let i = t?.axis === !1 || t?.axis?.ticks === !1 ? void 0 : t?.axis?.ticks?.format, a = e.ticks.map((e) => ({
1828
1804
  ...e,
1829
- hard: r.some((t) => z(t) === z(e.value))
1830
- })), o = new Set(a.map((e) => z(e.value)));
1805
+ hard: r.some((t) => L(t) === L(e.value))
1806
+ })), o = new Set(a.map((e) => L(e.value)));
1831
1807
  for (let t of r) {
1832
1808
  let n = e.map(t);
1833
- !o.has(z(t)) && Number.isFinite(n) && a.push({
1809
+ !o.has(L(t)) && Number.isFinite(n) && a.push({
1834
1810
  value: t,
1835
1811
  position: n,
1836
1812
  label: i?.(t) ?? wn(t),
@@ -1851,9 +1827,9 @@ function vn(e, t, n, r, i, a, o, s, c, l = !1) {
1851
1827
  ...p,
1852
1828
  focus: null,
1853
1829
  pointer: null
1854
- }), y = yn(a.dx, p) ?? 0, b = yn(a.dy, p) ?? 0, x = e.channel === "y" ? Se(d ? "left" : "right", l ? "rtl" : "ltr") : (m ?? 0) < 0 ? Se("right", l ? "rtl" : "ltr") : (m ?? 0) > 0 ? Se("left", l ? "rtl" : "ltr") : "middle", S = yn(a.anchor, p) ?? x, C = e.channel === "x", w = {
1830
+ }), y = yn(a.dx, p) ?? 0, b = yn(a.dy, p) ?? 0, x = e.channel === "y" ? we(d ? "left" : "right", l ? "rtl" : "ltr") : (m ?? 0) < 0 ? we("right", l ? "rtl" : "ltr") : (m ?? 0) > 0 ? we("left", l ? "rtl" : "ltr") : "middle", S = yn(a.anchor, p) ?? x, C = e.channel === "x", w = {
1855
1831
  kind: "label",
1856
- key: `${e.id}-tick-label:${z(t.value)}`,
1832
+ key: `${e.id}-tick-label:${L(t.value)}`,
1857
1833
  x: C ? t.position + y : n + f * (r + i) + y,
1858
1834
  y: C ? n + f * (r + i + h * .8) + b : t.position + b,
1859
1835
  text: t.label,
@@ -1872,7 +1848,7 @@ function vn(e, t, n, r, i, a, o, s, c, l = !1) {
1872
1848
  })), {
1873
1849
  value: t.value,
1874
1850
  label: w,
1875
- bounds: Te(w, c),
1851
+ bounds: H(w, c),
1876
1852
  hard: t.hard ?? !1
1877
1853
  };
1878
1854
  });
@@ -1915,8 +1891,7 @@ function wn(e) {
1915
1891
  function Tn(e) {
1916
1892
  return Number.isFinite(e) ? Math.max(1, e) : 1;
1917
1893
  }
1918
- //#endregion
1919
- //#region node_modules/@tanstack/charts/dist/runtime.js
1894
+ // node_modules/@tanstack/charts/dist/runtime.js
1920
1895
  function En(e = {}) {
1921
1896
  let t = {
1922
1897
  ...jt,
@@ -1948,18 +1923,16 @@ function En(e = {}) {
1948
1923
  function Dn(e) {
1949
1924
  return "chart" in e && typeof e.chart == "function";
1950
1925
  }
1951
- //#endregion
1952
- //#region node_modules/@tanstack/charts/dist/adapter-shared.js
1926
+ // node_modules/@tanstack/charts/dist/adapter-shared.js
1953
1927
  function On(e, t = 0) {
1954
1928
  return e.keyboard === !1 || e.focus === !1 || e.cursor?.mode === "free" ? -1 : t;
1955
1929
  }
1956
- //#endregion
1957
- //#region node_modules/@tanstack/charts/dist/dom-text.js
1930
+ // node_modules/@tanstack/charts/dist/dom-text.js
1958
1931
  function kn(e) {
1959
1932
  let t = e.ownerDocument.defaultView, n = t?.CanvasRenderingContext2D ? e.ownerDocument.createElement("canvas").getContext("2d") : null, r = o(), i = Mn(r), a = /* @__PURE__ */ new Map();
1960
1933
  return {
1961
1934
  measureText(e, t) {
1962
- if (!n) return we(e, t);
1935
+ if (!n) return Ee(e, t);
1963
1936
  let o = `${i}\0${t.fontSize}\0${t.fontWeight ?? ""}\0${t.fontFamily}\0${t.fontStyle}\0${t.fontStretch}\0${t.letterSpacing}\0${t.direction}\0${t.locale ?? ""}\0${t.fontScale}\0${t.anchor}\0${t.baseline}\0${e}`, s = a.get(o);
1964
1937
  if (s) return s;
1965
1938
  An(n, r.weight, t);
@@ -2019,7 +1992,7 @@ function jn(e, t) {
2019
1992
  };
2020
1993
  let s = Number.isFinite(e.width) ? Math.max(0, e.width) : 0;
2021
1994
  return {
2022
- x: Ce(s, t.anchor, t.direction),
1995
+ x: Te(s, t.anchor, t.direction),
2023
1996
  y: t.baseline === "middle" ? -n / 2 : t.baseline === "hanging" ? 0 : -n * .8,
2024
1997
  width: s,
2025
1998
  height: n
@@ -2047,8 +2020,7 @@ function Pn(e) {
2047
2020
  function Fn(e, t) {
2048
2021
  return e !== void 0 && Number.isFinite(e) && e > 0 ? e : t;
2049
2022
  }
2050
- //#endregion
2051
- //#region node_modules/@tanstack/charts/dist/focus-disabled.js
2023
+ // node_modules/@tanstack/charts/dist/focus-disabled.js
2052
2024
  var In = {
2053
2025
  resolve: () => [],
2054
2026
  group: () => [],
@@ -2076,7 +2048,7 @@ function Vn(e, t) {
2076
2048
  if (!t) return i;
2077
2049
  let a = /* @__PURE__ */ new Map();
2078
2050
  for (let e of i) {
2079
- let t = z(n(e));
2051
+ let t = L(n(e));
2080
2052
  a.has(t) || a.set(t, e);
2081
2053
  }
2082
2054
  return [...a.values()];
@@ -2084,17 +2056,16 @@ function Vn(e, t) {
2084
2056
  };
2085
2057
  }
2086
2058
  function Hn(e, t, n) {
2087
- let r = z(n(t)), i = /* @__PURE__ */ new Map();
2088
- i.set(z(t.group), t);
2059
+ let r = L(n(t)), i = /* @__PURE__ */ new Map();
2060
+ i.set(L(t.group), t);
2089
2061
  for (let t of e) {
2090
- if (z(n(t)) !== r) continue;
2091
- let e = z(t.group);
2062
+ if (L(n(t)) !== r) continue;
2063
+ let e = L(t.group);
2092
2064
  i.has(e) || i.set(e, t);
2093
2065
  }
2094
2066
  return [t, ...[...i.values()].sort((e, t) => e.y - t.y).filter((e) => e !== t)];
2095
2067
  }
2096
- //#endregion
2097
- //#region node_modules/@tanstack/charts/dist/interaction.js
2068
+ // node_modules/@tanstack/charts/dist/interaction.js
2098
2069
  function Un(e) {
2099
2070
  if (e !== !1) {
2100
2071
  if (typeof e != "string") return e;
@@ -2186,15 +2157,13 @@ function Xn(e, t, n, r) {
2186
2157
  function Zn(e, t) {
2187
2158
  return e instanceof Date && t instanceof Date ? e.getTime() === t.getTime() : Object.is(e, t);
2188
2159
  }
2189
- //#endregion
2190
- //#region node_modules/@tanstack/charts/dist/cursor-host-contract.js
2160
+ // node_modules/@tanstack/charts/dist/cursor-host-contract.js
2191
2161
  function Qn(e) {
2192
2162
  let t = e.use;
2193
2163
  if (t.__chartExtensionType !== "cursor") throw TypeError("A chart cursor requires a cursor host extension.");
2194
2164
  return t.create(e.controller);
2195
2165
  }
2196
- //#endregion
2197
- //#region node_modules/@tanstack/charts/dist/renderer.js
2166
+ // node_modules/@tanstack/charts/dist/renderer.js
2198
2167
  function $n(e, t) {
2199
2168
  return (tr(e.nodes, t) ?? er(e.focusGuides, t))?.compose(t) ?? t;
2200
2169
  }
@@ -2216,175 +2185,181 @@ function nr(e) {
2216
2185
  }
2217
2186
  function rr(e, t, n = En()) {
2218
2187
  sr(t.definition.tooltip);
2219
- let r = t, i, a, o = null, s = "pointer", c, l = null, u = null, d = null, f, p, m, h = !1, g, _ = !1, v = !1, y, b, x = !1, S = !1, C, w, T = !1, E, D = /* @__PURE__ */ new Map(), O, k, A, j, M, N, P = null, ee = !1, te = e.style.position, F = e.ownerDocument.defaultView, ne = F?.getComputedStyle(e).position, I = !ne || ne === "static", L = kn(e), re = e.ownerDocument.fonts;
2220
- I && (e.style.position = "relative");
2221
- let R = (t = !1, n = "update") => {
2222
- if (_) return;
2223
- t && !r.measureText && L.refresh();
2224
- let c = o, f = P, p = M;
2225
- i = ar(ke()), a = i;
2188
+ let r = t, i, a, o = null, s = [], c = "pointer", l, u = null, d = null, f = null, p, m, h, g, _, v, y = !1, b, x = !1, S = !1, C, w, T = !1, E = !1, D, O, k = !1, A, j = /* @__PURE__ */ new Map(), M, ee, te, ne, re, N, P = null, ie = !1, ae = e.style.position, F = e.ownerDocument.defaultView, I = F?.getComputedStyle(e).position, oe = !I || I === "static", se = kn(e), ce = e.ownerDocument.fonts;
2189
+ oe && (e.style.position = "relative");
2190
+ let le = (t = !1, n = "update") => {
2191
+ if (x) return;
2192
+ t && !r.measureText && se.refresh();
2193
+ let s = o, l = P, p = re;
2194
+ i = ar(Fe()), g = i.width, _ = i.height, a = i;
2226
2195
  let m = $n(i, r.renderer);
2227
- y ? y.renderer !== m && (b?.(), b = void 0, Be(), Me(), y.destroy(), e.replaceChildren(), y = m.mount(e, le), Fe(), v = !1) : (y = m.mount(e, le), Fe()), x = !0;
2196
+ C ? C.renderer !== m && (w?.(), w = void 0, K(), Re(), C.destroy(), e.replaceChildren(), C = m.mount(e, he), Be(), S = !1) : (C = m.mount(e, he), Be()), T = !0;
2228
2197
  try {
2229
- y.render(i, {
2198
+ C.render(i, {
2230
2199
  ariaLabel: r.ariaLabel,
2231
2200
  ariaDescription: r.ariaDescription,
2232
2201
  className: r.className,
2233
2202
  tabIndex: On(r.definition, r.tabIndex),
2234
2203
  idPrefix: r.idPrefix,
2235
- animation: v ? mr(r.definition.svgAnimation, e, n) : void 0
2204
+ animation: S ? hr(r.definition.svgAnimation, e, n) : void 0
2236
2205
  });
2237
2206
  } finally {
2238
- x = !1;
2207
+ T = !1;
2239
2208
  }
2240
- Ae(), v = !0;
2209
+ Ie(), S = !0;
2241
2210
  let h = W();
2242
- E = r.definition.focus === !1 ? void 0 : r.definition.spatialIndex?.(Vt(i, i.points), { scene: i });
2243
- let g = B();
2244
- if (M = g, g) pe(!0);
2245
- else if (p) P = null, o = null, d = null, u = null, l = null, U(null, []), c && (r.onFocusChange?.(null), r.onFocusGroupChange?.([]));
2211
+ A = r.definition.focus === !1 ? void 0 : r.definition.spatialIndex?.(Vt(i, i.points), { scene: i });
2212
+ let v = R();
2213
+ if (re = v, v) ye(!0);
2214
+ else if (p) P = null, o = null, f = null, d = null, u = null, V(null, []), s && xe(null, []);
2246
2215
  else {
2247
2216
  P = null;
2248
- let e = (l === "pointer" || l === "controlled" && s === "pointer") && d === null ? u : null, t = e ? Pe(e.x, e.y, Le()) : c ? (() => {
2249
- let e = Kn(h, c);
2217
+ let e = (u === "pointer" || u === "controlled" && c === "pointer") && f === null ? d : null, t = e ? ze(e.x, e.y, He()) : s ? (() => {
2218
+ let e = Kn(h, s);
2250
2219
  return e ? G(e, h) : [];
2251
2220
  })() : [], n = t[0] ?? null;
2252
- o = n, n || (d = null), (c || n || f) && (e || (s = "restored"), U(n, t), r.onFocusChange?.(n), r.onFocusGroupChange?.(t));
2221
+ o = n, n || (f = null), (s || n || l) && (e || (c = "restored"), V(n, t), xe(n, t));
2253
2222
  }
2254
- let S = r.onRender;
2255
- S && S({
2223
+ let y = r.onRender;
2224
+ y && y({
2256
2225
  container: e,
2257
2226
  scene: i,
2258
- surface: y,
2259
- interaction: ve
2227
+ surface: C,
2228
+ interaction: Te
2260
2229
  });
2261
- }, ie = () => r.width === void 0, ae = () => r.height === void 0 && !cr(r.aspectRatio), oe = (t) => {
2230
+ }, ue = () => r.width === void 0, L = () => r.height === void 0 && !cr(r.aspectRatio), de = (t) => {
2262
2231
  let n = F?.getComputedStyle(e), r = J(n?.paddingLeft) + J(n?.paddingRight), i = J(n?.paddingTop) + J(n?.paddingBottom), a = J(n?.borderLeftWidth) + J(n?.borderRightWidth), o = J(n?.borderTopWidth) + J(n?.borderBottomWidth);
2263
2232
  return {
2264
- width: lr(n?.width, n?.boxSizing, t?.width, r, a),
2265
- height: lr(n?.height, n?.boxSizing, t?.height, i, o)
2233
+ width: ur(n?.width, n?.boxSizing, t?.width, r, a),
2234
+ height: ur(n?.height, n?.boxSizing, t?.height, i, o)
2266
2235
  };
2267
- }, se = () => {
2268
- let t = ie(), n = ae(), i = (t || n) && !p ? e.getBoundingClientRect() : void 0, a = t || n ? p ?? oe(i) : void 0;
2236
+ }, fe = () => {
2237
+ let t = ue(), n = L(), i = (t || n) && !m ? e.getBoundingClientRect() : void 0;
2238
+ i && (h = i);
2239
+ let a = t || n ? m ?? de(i) : void 0;
2269
2240
  return {
2270
2241
  width: r.width ?? a?.width,
2271
2242
  height: n ? a?.height : void 0
2272
2243
  };
2273
- }, ce = () => {
2274
- let e = se();
2275
- return ie() && e.width !== void 0 && e.width !== i.width || ae() && e.height !== void 0 && e.height !== i.height;
2276
- }, z = () => {
2277
- if (f?.disconnect(), f = void 0, p = void 0, !ie() && !ae()) return;
2244
+ }, pe = () => {
2245
+ let e = fe();
2246
+ return ue() && e.width !== void 0 && e.width !== g || L() && e.height !== void 0 && e.height !== _;
2247
+ }, me = () => {
2248
+ if (p?.disconnect(), p = void 0, m && (h = e.getBoundingClientRect()), m = void 0, !ue() && !L()) return;
2278
2249
  let t = F?.ResizeObserver;
2279
- t && (f = new t((t) => {
2250
+ t && (p = new t((t) => {
2280
2251
  let n = t.find((t) => t.target === e) ?? t[0];
2281
- p = n ? {
2282
- width: dr(n.contentRect.width),
2283
- height: dr(n.contentRect.height)
2284
- } : void 0, ce() && le(!1, "resize");
2285
- }), f.observe(e));
2286
- }, le = (e = !1, t = "layout") => {
2287
- if (h ||= e, g = g === "layout" || t === "layout" ? "layout" : "resize", m === void 0) {
2288
- if (!F?.requestAnimationFrame) {
2289
- let e = h || ce();
2290
- h = !1;
2291
- let t = g ?? "layout";
2292
- g = void 0, e && R(!0, t);
2293
- return;
2252
+ if (n && !m && h) {
2253
+ let t = e.getBoundingClientRect(), r = de(t);
2254
+ t.width === h.width && r.width === i.width && (g = fr(n.contentRect.width) ?? g), t.height === h.height && r.height === i.height && (_ = fr(n.contentRect.height) ?? _);
2294
2255
  }
2295
- m = F.requestAnimationFrame(() => {
2296
- m = void 0;
2297
- let e = h || ce();
2298
- h = !1;
2299
- let t = g ?? "layout";
2300
- g = void 0, e && R(!0, t);
2256
+ m = n ? {
2257
+ width: fr(n.contentRect.width),
2258
+ height: fr(n.contentRect.height)
2259
+ } : void 0, pe() && he(!1, "resize");
2260
+ }), p.observe(e));
2261
+ }, he = (e = !1, t = "layout") => {
2262
+ if (y ||= e, b = b === "layout" || t === "layout" ? "layout" : "resize", v === void 0) {
2263
+ if (F?.requestAnimationFrame) v = F.requestAnimationFrame(() => {
2264
+ v = void 0;
2265
+ let e = y || pe();
2266
+ y = !1;
2267
+ let t = b ?? "layout";
2268
+ b = void 0, e && le(!0, t);
2301
2269
  });
2270
+ else {
2271
+ let e = y || pe();
2272
+ y = !1;
2273
+ let t = b ?? "layout";
2274
+ b = void 0, e && le(!0, t);
2275
+ }
2302
2276
  }
2303
- }, ue = () => {
2304
- _ || r.measureText || (L.invalidate(), le(!0));
2305
- }, B = () => r.definition.cursor, de = () => O?.getState()?.pinned === !0, V = () => d !== null || de(), fe = () => {
2306
- let e = B();
2307
- e && (ee = !0);
2277
+ }, ge = () => {
2278
+ x || r.measureText || (se.invalidate(), he(!0));
2279
+ }, R = () => r.definition.cursor, _e = () => M?.getState()?.pinned === !0, z = () => f !== null || _e(), ve = () => {
2280
+ let e = R();
2281
+ e && (ie = !0);
2308
2282
  let t = e?.controller, n = e?.mode, r = e?.mode === "focus" ? e.match ?? "xy" : void 0;
2309
- (t !== O?.controller || n !== k || r !== A || e?.use !== j) && (N?.(), N = void 0, O?.destroy(), O = e ? Qn(e) : void 0, k = n, A = r, j = e?.use, N = O?.subscribe(() => {
2310
- !_ && v && pe(!1);
2283
+ (t !== M?.controller || n !== ee || r !== te || e?.use !== ne) && (N?.(), N = void 0, M?.destroy(), M = e ? Qn(e) : void 0, ee = n, te = r, ne = e?.use, N = M?.subscribe(() => {
2284
+ !x && S && ye(!1);
2311
2285
  }));
2312
- }, pe = (e) => {
2313
- let t = B();
2286
+ }, ye = (e) => {
2287
+ let t = R();
2314
2288
  if (!t) {
2315
2289
  P = null;
2316
2290
  return;
2317
2291
  }
2318
- let n = O;
2292
+ let n = M;
2319
2293
  if (!n) return;
2320
2294
  let a = n.getState();
2321
- (a?.source !== "pointer" || !n.owns(a)) && (u = null), P = n.resolvePresentation(i, t, a);
2322
- let c = o;
2295
+ a?.source === "pointer" && n.owns(a) || (d = null), P = n.resolvePresentation(i, t, a);
2296
+ let s = o;
2323
2297
  if (t.mode === "focus") {
2324
2298
  let i = Un(r.definition.focus), l = n.resolveFocus(W(), t, a, i), u = l[0] ?? null;
2325
- a && (s = a.source), d = a?.pinned && u ? u.key : null, o = u, U(u, l), (!Gn(c, u) || e && (c !== null || u !== null)) && (r.onFocusChange?.(u), r.onFocusGroupChange?.(l));
2326
- return;
2327
- }
2328
- d = null, o = null, U(null, []), c && (r.onFocusChange?.(null), r.onFocusGroupChange?.([]));
2329
- }, me = (e, t = V()) => {
2330
- let n = B();
2299
+ a && (c = a.source), f = a?.pinned && u ? u.key : null, o = u, V(u, l), (!Gn(s, u) || e && (s !== null || u !== null)) && xe(u, l);
2300
+ } else f = null, o = null, V(null, []), s && xe(null, []);
2301
+ }, be = (e, t = z()) => {
2302
+ let n = R();
2331
2303
  if (n?.mode !== "focus") return !1;
2332
- let r = O;
2304
+ let r = M;
2333
2305
  if (!r) return !1;
2334
2306
  let a = e[0];
2335
2307
  return a ? (r.publish(r.createFocusState(i, n, {
2336
2308
  primary: a,
2337
2309
  group: e,
2338
- source: s,
2310
+ source: c,
2339
2311
  pinned: t
2340
2312
  })), !0) : (r.clearOwnedTransient(), !0);
2341
- }, H = (e, t = !1) => {
2313
+ }, B = (e, t = !1) => {
2342
2314
  let n = e[0] ?? null;
2343
- if (!me(e)) {
2344
- if (Gn(n, o)) {
2345
- o = n, t && U(n, e);
2346
- return;
2315
+ be(e) || (Gn(n, o) ? (o = n, t && V(n, e)) : (o = n, V(n, e), xe(n, e)));
2316
+ }, xe = (e, t) => {
2317
+ let n = s, i = n.length !== t.length;
2318
+ if (r.onFocusGroupChange && !i) {
2319
+ for (let e = 0; e < t.length; e++) if (!lr(n[e], t[e])) {
2320
+ i = !0;
2321
+ break;
2347
2322
  }
2348
- o = n, U(n, e), r.onFocusChange?.(n), r.onFocusGroupChange?.(e);
2349
2323
  }
2350
- }, he = () => {
2351
- let t = B();
2352
- if (!o && !d && !O?.getState()) return;
2353
- let n = !!w?.contains(e.ownerDocument.activeElement);
2354
- d = null, u = null, l = null, t ? O?.clear() : H([]);
2355
- let r = y?.element;
2356
- n && r && "focus" in r && typeof r.focus == "function" && (T = !0, r.focus());
2357
- }, U = (e, t, n = !0) => {
2358
- S = !0;
2324
+ s = t, lr(n[0] ?? null, e) || r.onFocusChange?.(e), i && r.onFocusGroupChange?.(t);
2325
+ }, Se = () => {
2326
+ let t = R();
2327
+ if (!o && !f && !M?.getState()) return;
2328
+ let n = !!O?.contains(e.ownerDocument.activeElement);
2329
+ f = null, d = null, u = null, t ? M?.clear() : B([]);
2330
+ let r = C?.element;
2331
+ n && r && "focus" in r && typeof r.focus == "function" && (k = !0, r.focus());
2332
+ }, V = (e, t, n = !0) => {
2333
+ E = !0;
2359
2334
  let r;
2360
2335
  try {
2361
2336
  let n = e ? {
2362
2337
  primary: e,
2363
2338
  group: t,
2364
- source: s,
2365
- pinned: V()
2339
+ source: c,
2340
+ pinned: z()
2366
2341
  } : null;
2367
- r = c ? y?.paintFocus(n, u, P, { stateFocus: c }) : ee ? y?.paintFocus(n, u, P) : y?.paintFocus(n, u);
2342
+ r = l ? C?.paintFocus(n, d, P, { stateFocus: l }) : ie ? C?.paintFocus(n, d, P) : C?.paintFocus(n, d);
2368
2343
  } finally {
2369
- S = !1;
2344
+ E = !1;
2370
2345
  }
2371
- a = r ?? i, n && K(e, t);
2372
- }, ge = (e, t) => {
2373
- let n = y?.clientToScene?.(i, e, t);
2346
+ a = r ?? i, n && Ue(e, t);
2347
+ }, Ce = (e, t) => {
2348
+ let n = C?.clientToScene?.(i, e, t);
2374
2349
  return n ? {
2375
2350
  position: n,
2376
- points: Pe(n.x, n.y, Le())
2351
+ points: ze(n.x, n.y, He())
2377
2352
  } : null;
2378
- }, _e = (e, t) => {
2379
- let n = ge(e, t);
2380
- return u = n?.position ?? null, n?.points ?? [];
2381
- }, ve = {
2353
+ }, we = (e, t) => {
2354
+ let n = Ce(e, t);
2355
+ return d = n?.position ?? null, n?.points ?? [];
2356
+ }, Te = {
2382
2357
  clientToScene(e, t) {
2383
- return _ ? null : y?.clientToScene?.(i, e, t) ?? null;
2358
+ return x ? null : C?.clientToScene?.(i, e, t) ?? null;
2384
2359
  },
2385
2360
  resolvePointer(e, t) {
2386
- if (_) return null;
2387
- let n = ge(e, t), r = n?.points[0];
2361
+ if (x) return null;
2362
+ let n = Ce(e, t), r = n?.points[0];
2388
2363
  return n && r ? {
2389
2364
  position: n.position,
2390
2365
  point: r,
@@ -2392,80 +2367,68 @@ function rr(e, t, n = En()) {
2392
2367
  } : null;
2393
2368
  },
2394
2369
  setControlledFocus(e, t = {}) {
2395
- if (_) return;
2396
- if (l = "controlled", !e) {
2397
- s = t.source ?? "programmatic", u = null, d = null, H([]), l = null;
2370
+ if (x) return;
2371
+ if (u = "controlled", !e) {
2372
+ c = t.source ?? "programmatic", d = null, f = null, B([]), u = null;
2398
2373
  return;
2399
2374
  }
2400
2375
  let n, r;
2401
- or(e) ? (n = e, r = e.point) : (n = null, r = e), s = t.source ?? (n === null ? "programmatic" : "pointer");
2376
+ or(e) ? (n = e, r = e.point) : (n = null, r = e), c = t.source ?? (n === null ? "programmatic" : "pointer");
2402
2377
  let i = W(), a = Kn(i, r);
2403
- if (u = n?.position ?? null, !a) {
2404
- d = null, H([]), l = null;
2405
- return;
2406
- }
2407
- let c = G(a, i);
2408
- if (d = t.pinned && (Ve() || B()?.pin === !0) ? a.key : null, Gn(a, o)) {
2409
- o = a, U(a, c);
2378
+ if (d = n?.position ?? null, !a) {
2379
+ f = null, B([]), u = null;
2410
2380
  return;
2411
2381
  }
2412
- H(c);
2413
- }
2414
- }, ye = (e, t) => {
2415
- let n = y?.clientToScene?.(i, e, t);
2416
- return u = n ?? null, n;
2417
- }, be = (e, t) => {
2418
- let n = B();
2382
+ let s = G(a, i);
2383
+ f = t.pinned && (Ke() || R()?.pin === !0) ? a.key : null, Gn(a, o) ? (o = a, V(a, s)) : B(s);
2384
+ }
2385
+ }, Ee = (e, t) => {
2386
+ let n = C?.clientToScene?.(i, e, t);
2387
+ return d = n ?? null, n;
2388
+ }, H = (e, t) => {
2389
+ let n = R();
2419
2390
  if (n?.mode !== "free") return !1;
2420
- if (de()) return !0;
2421
- let r = ye(e, t);
2422
- if (!r || !pr(i, r)) return u = null, O?.clearOwnedTransient(), !0;
2423
- let a = O;
2391
+ if (_e()) return !0;
2392
+ let r = Ee(e, t);
2393
+ if (!r || !mr(i, r)) return d = null, M?.clearOwnedTransient(), !0;
2394
+ let a = M;
2424
2395
  return a ? (a.publish(a.createFreeState(i, n, r, "pointer", !1)), !0) : !1;
2425
- }, xe = (e) => {
2426
- if (Ne(e.target)) {
2427
- V() || (u = null, H([]));
2428
- return;
2429
- }
2430
- r.definition.pointer === !1 || V() || (l = "pointer", s = "pointer", !be(e.clientX, e.clientY) && H(_e(e.clientX, e.clientY), He()));
2431
- }, Se = (e) => {
2432
- r.definition.pointer === !1 || V() || (l = "pointer", s = "pointer", be(e.clientX, e.clientY));
2433
- }, Ce = ({ relatedTarget: t }) => {
2434
- r.definition.pointer !== !1 && l === "pointer" && !V() && !(F && t instanceof F.Node && e.contains(t)) && (u = null, B() ? O?.clearOwnedTransient() : H([]), l = null);
2435
- }, we = ({ relatedTarget: t }) => {
2436
- l === "keyboard" && !d && !(F && t instanceof F.Node && e.contains(t)) && (u = null, B() ? O?.clearOwnedTransient() : H([]), l = null);
2437
- }, Te = (t) => {
2438
- if (r.definition.pointer === !1 || d === null || de()) return;
2396
+ }, De = (e) => {
2397
+ U(e.target) ? z() || (d = null, B([])) : r.definition.pointer === !1 || z() || (u = "pointer", c = "pointer", !H(e.clientX, e.clientY) && B(we(e.clientX, e.clientY), Je()));
2398
+ }, Oe = (e) => {
2399
+ r.definition.pointer === !1 || z() || (u = "pointer", c = "pointer", H(e.clientX, e.clientY));
2400
+ }, ke = ({ relatedTarget: t }) => {
2401
+ r.definition.pointer !== !1 && u === "pointer" && !z() && !(F && t instanceof F.Node && e.contains(t)) && (d = null, R() ? M?.clearOwnedTransient() : B([]), u = null);
2402
+ }, Ae = ({ relatedTarget: t }) => {
2403
+ u === "keyboard" && !f && !(F && t instanceof F.Node && e.contains(t)) && (d = null, R() ? M?.clearOwnedTransient() : B([]), u = null);
2404
+ }, je = (t) => {
2405
+ if (r.definition.pointer === !1 || f === null || _e()) return;
2439
2406
  let n = t.composedPath();
2440
- n.includes(e) || n.some((e) => F && e instanceof F.Node && w?.contains(e)) || he();
2441
- }, Ee = (t) => {
2442
- if (Ne(t.target) || r.definition.pointer === !1) return;
2443
- let n = w, i = e.ownerDocument.defaultView?.Node, a = i ? t.composedPath().some((e) => e instanceof i && n?.contains(e)) : n?.contains(t.target);
2407
+ n.includes(e) || n.some((e) => F && e instanceof F.Node && O?.contains(e)) || Se();
2408
+ }, Me = (t) => {
2409
+ if (U(t.target) || r.definition.pointer === !1) return;
2410
+ let n = O, i = e.ownerDocument.defaultView?.Node, a = i ? t.composedPath().some((e) => e instanceof i && n?.contains(e)) : n?.contains(t.target);
2444
2411
  if (n && a) return;
2445
- l = "pointer";
2446
- let o = B();
2412
+ u = "pointer";
2413
+ let o = R();
2447
2414
  if (o?.mode === "free") {
2448
- O?.getState() || be(t.clientX, t.clientY);
2449
- let e = O?.getState();
2450
- o.pin && e && (e.pinned ? O?.clear() : O?.publish({
2415
+ M?.getState() || H(t.clientX, t.clientY);
2416
+ let e = M?.getState();
2417
+ o.pin && e && (e.pinned ? M?.clear() : M?.publish({
2451
2418
  ...e,
2452
2419
  pinned: !0
2453
2420
  })), r.onSelect?.(null);
2454
2421
  return;
2455
2422
  }
2456
- let c = _e(t.clientX, t.clientY);
2457
- s = "pointer";
2458
- let u = c[0] ?? null, f = !1, p = Ve() || o?.pin === !0;
2459
- p && (V() ? (d = null, f = !0, o && O?.clear()) : u && (d = u.key, f = !0)), o && p && f && !d || H(c, f), r.definition.selection?.change(u, "pointer"), r.onSelect?.(u);
2460
- }, De = (e) => {
2461
- if (Ne(e.target)) return;
2462
- let t = B();
2463
- if (e.key === "Escape" && O?.getState()) {
2464
- e.preventDefault(), he();
2465
- return;
2466
- }
2467
- if (e.key === "Escape" && d) {
2468
- e.preventDefault(), he();
2423
+ let s = we(t.clientX, t.clientY);
2424
+ c = "pointer";
2425
+ let l = s[0] ?? null, d = !1, p = Ke() || o?.pin === !0;
2426
+ p && (z() ? (f = null, d = !0, o && M?.clear()) : l && (f = l.key, d = !0)), o && p && d && !f || B(s, d), r.definition.selection?.change(l, "pointer"), r.onSelect?.(l);
2427
+ }, Ne = (e) => {
2428
+ if (U(e.target)) return;
2429
+ let t = R();
2430
+ if (e.key === "Escape" && M?.getState() || e.key === "Escape" && f) {
2431
+ e.preventDefault(), Se();
2469
2432
  return;
2470
2433
  }
2471
2434
  if (r.definition.keyboard === !1 || t?.mode === "free") return;
@@ -2474,165 +2437,159 @@ function rr(e, t, n = En()) {
2474
2437
  if (e.key === "Enter" || e.key === " ") {
2475
2438
  if (!o) return;
2476
2439
  e.preventDefault();
2477
- let n = o, i = Ve() || t?.pin === !0;
2478
- t?.mode === "focus" && i ? V() ? (d = null, O?.clear()) : (d = n.key, me(G(n), !0)) : Ve() && (d = d ? null : n.key, U(n, G(n))), r.definition.selection?.change(n, "keyboard"), r.onSelect?.(n);
2479
- return;
2480
- }
2481
- let i = fr(r.definition.focus), a = i ? qn(i.navigation(n), o, e.key) : Jn(n, o, e.key);
2482
- a !== void 0 && (e.preventDefault(), u = null, l = "keyboard", s = "keyboard", H(a ? G(a) : []));
2483
- }, Oe = (e) => {
2484
- if (Ne(e.target)) {
2485
- d || (u = null, H([]));
2486
- return;
2487
- }
2488
- if (e.target === y?.element && T) {
2489
- T = !1;
2440
+ let n = o, i = Ke() || t?.pin === !0;
2441
+ t?.mode === "focus" && i ? z() ? (f = null, M?.clear()) : (f = n.key, be(G(n), !0)) : Ke() && (f = f ? null : n.key, V(n, G(n))), r.definition.selection?.change(n, "keyboard"), r.onSelect?.(n);
2490
2442
  return;
2491
2443
  }
2492
- if (r.definition.keyboard !== !1 && B()?.mode !== "free" && e.target === y?.element && !o) {
2493
- let e = fr(r.definition.focus), t = W(), n = e ? e.navigation(t)[0] : Jn(t, null, "Home");
2494
- u = null, l = "keyboard", s = "keyboard", H(n ? G(n) : []);
2444
+ let i = pr(r.definition.focus), a = i ? qn(i.navigation(n), o, e.key) : Jn(n, o, e.key);
2445
+ a !== void 0 && (e.preventDefault(), d = null, u = "keyboard", c = "keyboard", B(a ? G(a) : []));
2446
+ }, Pe = (e) => {
2447
+ if (U(e.target)) f || (d = null, B([]));
2448
+ else if (e.target === C?.element && k) k = !1;
2449
+ else if (r.definition.keyboard !== !1 && R()?.mode !== "free" && e.target === C?.element && !o) {
2450
+ let e = pr(r.definition.focus), t = W(), n = e ? e.navigation(t)[0] : Jn(t, null, "Home");
2451
+ d = null, u = "keyboard", c = "keyboard", B(n ? G(n) : []);
2495
2452
  }
2496
2453
  };
2497
- return e.addEventListener("pointermove", xe), e.addEventListener("pointerdown", Se), e.addEventListener("pointercancel", Ce), e.addEventListener("mouseleave", Ce), e.addEventListener("click", Ee), e.addEventListener("keydown", De), e.addEventListener("focusin", Oe), e.addEventListener("focusout", we), re?.addEventListener?.("loadingdone", ue), fe(), R(), z(), e.ownerDocument.addEventListener("pointerdown", Te, !0), {
2498
- interaction: ve,
2454
+ return e.addEventListener("pointermove", De), e.addEventListener("pointerdown", Oe), e.addEventListener("pointercancel", ke), e.addEventListener("mouseleave", ke), e.addEventListener("click", Me), e.addEventListener("keydown", Ne), e.addEventListener("focusin", Pe), e.addEventListener("focusout", Ae), ce?.addEventListener?.("loadingdone", ge), ve(), le(), me(), e.ownerDocument.addEventListener("pointerdown", je, !0), {
2455
+ interaction: Te,
2499
2456
  update(e) {
2500
- if (_) return;
2457
+ if (x) return;
2501
2458
  sr(e.definition.tooltip);
2502
- let t = e.measureText === void 0 && L.refresh(), n = r.definition !== e.definition, i = r.height !== e.height || r.aspectRatio !== e.aspectRatio || r.width !== e.width || r.initialWidth !== e.initialWidth, a = r.idPrefix !== e.idPrefix || r.renderer !== e.renderer || r.measureText !== e.measureText || t, s = n || i || r.ariaLabel !== e.ariaLabel || r.ariaDescription !== e.ariaDescription || r.className !== e.className || r.tabIndex !== e.tabIndex || r.idPrefix !== e.idPrefix || r.renderer !== e.renderer || r.measureText !== e.measureText || t, c = r.width !== e.width || r.height !== e.height || r.aspectRatio !== e.aspectRatio, f = r.definition.pointer !== !1 && e.definition.pointer === !1 && l === "pointer";
2503
- r = e, fe(), ze(), f && (u = null, d = null, l = null, H([])), Ve() || (d = null), s ? R(!1, a ? "layout" : i ? "resize" : "update") : B() ? pe(!1) : o && U(o, G(o)), c && z();
2459
+ let t = e.measureText === void 0 && se.refresh(), n = r.definition !== e.definition, i = r.height !== e.height || r.aspectRatio !== e.aspectRatio || r.width !== e.width || r.initialWidth !== e.initialWidth, a = r.idPrefix !== e.idPrefix || r.renderer !== e.renderer || r.measureText !== e.measureText || t, s = n || i || r.ariaLabel !== e.ariaLabel || r.ariaDescription !== e.ariaDescription || r.className !== e.className || r.tabIndex !== e.tabIndex || r.idPrefix !== e.idPrefix || r.renderer !== e.renderer || r.measureText !== e.measureText || t, c = r.width !== e.width || r.height !== e.height || r.aspectRatio !== e.aspectRatio, l = r.definition.pointer !== !1 && e.definition.pointer === !1 && u === "pointer";
2460
+ r = e, ve(), Ge(), l && (d = null, f = null, u = null, B([])), Ke() || (f = null), s ? le(!1, a ? "layout" : i ? "resize" : "update") : R() ? ye(!1) : o && V(o, G(o)), c && me();
2504
2461
  },
2505
2462
  getScene: () => i,
2506
2463
  destroy() {
2507
- _ || (_ = !0, f?.disconnect(), N?.(), N = void 0, O?.destroy(), O = void 0, k = void 0, A = void 0, j = void 0, re?.removeEventListener?.("loadingdone", ue), m !== void 0 && F?.cancelAnimationFrame?.(m), Be(), Me(), b?.(), b = void 0, y?.destroy(), n.destroy(), e.removeEventListener("pointermove", xe), e.removeEventListener("pointerdown", Se), e.removeEventListener("pointercancel", Ce), e.removeEventListener("mouseleave", Ce), e.removeEventListener("click", Ee), e.removeEventListener("keydown", De), e.removeEventListener("focusin", Oe), e.removeEventListener("focusout", we), e.ownerDocument.removeEventListener("pointerdown", Te, !0), e.replaceChildren(), I && e.style.position === "relative" && (e.style.position = te));
2464
+ x || (x = !0, p?.disconnect(), N?.(), N = void 0, M?.destroy(), M = void 0, ee = void 0, te = void 0, ne = void 0, ce?.removeEventListener?.("loadingdone", ge), v !== void 0 && F?.cancelAnimationFrame?.(v), K(), Re(), w?.(), w = void 0, C?.destroy(), n.destroy(), e.removeEventListener("pointermove", De), e.removeEventListener("pointerdown", Oe), e.removeEventListener("pointercancel", ke), e.removeEventListener("mouseleave", ke), e.removeEventListener("click", Me), e.removeEventListener("keydown", Ne), e.removeEventListener("focusin", Pe), e.removeEventListener("focusout", Ae), e.ownerDocument.removeEventListener("pointerdown", je, !0), e.replaceChildren(), oe && e.style.position === "relative" && (e.style.position = ae));
2508
2465
  }
2509
2466
  };
2510
- function ke() {
2511
- let e = se(), t = e.width ?? (v ? i.width : r.initialWidth ?? 640);
2467
+ function Fe() {
2468
+ let e = fe(), t = e.width ?? (S ? i.width : r.initialWidth ?? 640);
2512
2469
  return n.render(r.definition, {
2513
2470
  width: t,
2514
- height: r.height ?? (cr(r.aspectRatio) ? t / r.aspectRatio : e.height ?? (v ? i.height : 320))
2471
+ height: r.height ?? (cr(r.aspectRatio) ? t / r.aspectRatio : e.height ?? (S ? i.height : 320))
2515
2472
  }, {
2516
- measureText: r.measureText ?? L.measureText,
2517
- typography: L.typography()
2473
+ measureText: r.measureText ?? se.measureText,
2474
+ typography: se.typography()
2518
2475
  });
2519
2476
  }
2520
- function Ae() {
2477
+ function Ie() {
2521
2478
  let t = /* @__PURE__ */ new Set();
2522
2479
  for (let n of i.controls ?? []) {
2523
2480
  let r = n.extension, a = `${r.id}:${n.key}`;
2524
2481
  t.add(a);
2525
- let o = D.get(a);
2526
- o && o.extension !== r && (o.instance.destroy(), D.delete(a), o = void 0), o || (o = {
2482
+ let o = j.get(a);
2483
+ o && o.extension !== r && (o.instance.destroy(), j.delete(a), o = void 0), o || (o = {
2527
2484
  extension: r,
2528
2485
  instance: r.create({
2529
2486
  container: e,
2530
- surface: y,
2531
- setStateFocus: je
2487
+ surface: C,
2488
+ setStateFocus: Le
2532
2489
  })
2533
- }, D.set(a, o)), o.instance.update(n, i);
2490
+ }, j.set(a, o)), o.instance.update(n, i);
2534
2491
  }
2535
- for (let [e, n] of D) t.has(e) || (n.instance.destroy(), D.delete(e));
2492
+ for (let [e, n] of j) t.has(e) || (n.instance.destroy(), j.delete(e));
2536
2493
  }
2537
- function je(e) {
2538
- if (!_) {
2539
- if (e !== null && !y?.supportsStateFocus) throw TypeError("Renderer does not support independent state focus");
2540
- c = e ?? void 0, U(o, o ? G(o) : [], !1);
2494
+ function Le(e) {
2495
+ if (!x) {
2496
+ if (e !== null && !C?.supportsStateFocus) throw TypeError("Renderer does not support independent state focus");
2497
+ l = e ?? void 0, V(o, o ? G(o) : [], !1);
2541
2498
  }
2542
2499
  }
2543
- function Me() {
2544
- for (let e of D.values()) e.instance.destroy();
2545
- D.clear();
2500
+ function Re() {
2501
+ for (let e of j.values()) e.instance.destroy();
2502
+ j.clear();
2546
2503
  }
2547
- function Ne(e) {
2548
- for (let t of D.values()) if (t.instance.contains?.(e)) return !0;
2504
+ function U(e) {
2505
+ for (let t of j.values()) if (t.instance.contains?.(e)) return !0;
2549
2506
  return !1;
2550
2507
  }
2551
- function Pe(e, t, n) {
2552
- let o = W(), s = fr(r.definition.focus), c = Wn(a, s, e, t, n, o);
2508
+ function ze(e, t, n) {
2509
+ let o = W(), s = pr(r.definition.focus), c = Wn(a, s, e, t, n, o);
2553
2510
  if (c) return c;
2554
- let l = y?.getPresentationPoints?.() === void 0 ? E && a === i ? E.findNearest(e, t, n) : Bt(a, e, t, n, o) : qe(o, e, t, n), u = l ? Kn(o, l) : null;
2511
+ let l = C?.getPresentationPoints?.() === void 0 ? A && a === i ? A.findNearest(e, t, n) : Bt(a, e, t, n, o) : qe(o, e, t, n), u = l ? Kn(o, l) : null;
2555
2512
  return u ? [u] : [];
2556
2513
  }
2557
2514
  function W() {
2558
- let e = y?.getPresentationPoints?.() ?? a.points;
2515
+ let e = C?.getPresentationPoints?.() ?? a.points;
2559
2516
  return Vt(i, e);
2560
2517
  }
2561
2518
  function G(e, t = W()) {
2562
- return fr(r.definition.focus)?.group(t, { point: e }) ?? [e];
2519
+ return pr(r.definition.focus)?.group(t, { point: e }) ?? [e];
2563
2520
  }
2564
- function Fe() {
2565
- b = y?.subscribePresentationPoints?.(Ie);
2521
+ function Be() {
2522
+ w = C?.subscribePresentationPoints?.(Ve);
2566
2523
  }
2567
- function Ie(e) {
2568
- if (_ || x || S) return;
2569
- if (B()) {
2570
- pe(!1);
2524
+ function Ve(e) {
2525
+ if (x || T || E) return;
2526
+ if (R()) {
2527
+ ye(!1);
2571
2528
  return;
2572
2529
  }
2573
2530
  let t = Vt(i, e);
2574
- if (u && d === null) {
2575
- H(Pe(u.x, u.y, Le()), !0);
2531
+ if (d && f === null) {
2532
+ B(ze(d.x, d.y, He()), !0);
2576
2533
  return;
2577
2534
  }
2578
2535
  if (!o) return;
2579
2536
  let n = Kn(t, o);
2580
- H(n ? G(n, t) : [], !0);
2537
+ B(n ? G(n, t) : [], !0);
2581
2538
  }
2582
- function Le() {
2539
+ function He() {
2583
2540
  return r.definition.maxFocusDistance ?? 48;
2584
2541
  }
2585
- function K(t, n) {
2542
+ function Ue(t, n) {
2586
2543
  let a = sr(r.definition.tooltip);
2587
- if (!a || !t || !y) {
2588
- w?.hide();
2544
+ if (!a || !t || !C) {
2545
+ O?.hide();
2589
2546
  return;
2590
2547
  }
2591
- if (C !== a.extension || !w) {
2592
- Be(), C = a.extension;
2593
- let t = y.renderer.capabilities?.tooltipMotion;
2594
- w = a.extension.create({
2548
+ if (D !== a.extension || !O) {
2549
+ K(), D = a.extension;
2550
+ let t = C.renderer.capabilities?.tooltipMotion;
2551
+ O = a.extension.create({
2595
2552
  container: e,
2596
2553
  motion: t?.protocol === 1 ? t.createController({
2597
2554
  container: e,
2598
- transition: Re
2555
+ transition: We
2599
2556
  }) : void 0,
2600
- dismiss: he,
2557
+ dismiss: Se,
2601
2558
  bodyChange: () => r.onTooltipBodyChange
2602
2559
  });
2603
2560
  }
2604
- let o = w;
2561
+ let o = O;
2605
2562
  o.update(a.options), o.paint({
2606
2563
  point: t,
2607
2564
  points: n,
2608
2565
  scene: i,
2609
- surface: y,
2610
- pointer: u,
2566
+ surface: C,
2567
+ pointer: d,
2611
2568
  focus: {
2612
2569
  primary: t,
2613
2570
  group: n,
2614
- source: s,
2615
- pinned: V()
2571
+ source: c,
2572
+ pinned: z()
2616
2573
  },
2617
- pinned: V()
2574
+ pinned: z()
2618
2575
  });
2619
2576
  }
2620
- function Re() {
2577
+ function We() {
2621
2578
  let e = r.definition.motion;
2622
2579
  return e === !1 ? !1 : typeof e == "function" ? void 0 : e?.transition;
2623
2580
  }
2624
- function ze() {
2581
+ function Ge() {
2625
2582
  let e = sr(r.definition.tooltip);
2626
- e ? e.extension === C ? w?.update(e.options) : Be() : (w?.update(ir), w?.hide());
2583
+ e ? e.extension === D ? O?.update(e.options) : K() : (O?.update(ir), O?.hide());
2627
2584
  }
2628
- function Be() {
2629
- w?.destroy(), w = void 0, C = void 0;
2585
+ function K() {
2586
+ O?.destroy(), O = void 0, D = void 0;
2630
2587
  }
2631
- function Ve() {
2588
+ function Ke() {
2632
2589
  let e = sr(r.definition.tooltip);
2633
2590
  return !!(e && e.options.sticky !== !1);
2634
2591
  }
2635
- function He() {
2592
+ function Je() {
2636
2593
  let e = sr(r.definition.tooltip)?.options.anchor;
2637
2594
  return e === "pointer" || typeof e == "function" || typeof e == "object" && (e.x === "pointer" || e.y === "pointer");
2638
2595
  }
@@ -2664,37 +2621,39 @@ function sr(e) {
2664
2621
  function cr(e) {
2665
2622
  return typeof e == "number" && Number.isFinite(e) && e > 0;
2666
2623
  }
2624
+ function lr(e, t) {
2625
+ return Gn(e, t) && Object.is(e?.datum, t?.datum);
2626
+ }
2667
2627
  function J(e) {
2668
- return ur(e) ?? 0;
2628
+ return dr(e) ?? 0;
2669
2629
  }
2670
- function lr(e, t, n, r, i) {
2671
- let a = cr(n) ? ur(e) : void 0, o = a === void 0 ? (n ?? 0) - r - i : a - (t === "border-box" ? r + i : 0);
2630
+ function ur(e, t, n, r, i) {
2631
+ let a = cr(n) ? dr(e) : void 0, o = a === void 0 ? (n ?? 0) - r - i : a - (t === "border-box" ? r + i : 0);
2672
2632
  return cr(o) ? o : void 0;
2673
2633
  }
2674
- function ur(e) {
2634
+ function dr(e) {
2675
2635
  let t = /^(-?(?:\d+(?:\.\d*)?|\.\d+))px$/i.exec(e?.trim() ?? "");
2676
2636
  if (!t) return;
2677
2637
  let n = Number(t[1]);
2678
2638
  return Number.isFinite(n) ? n : void 0;
2679
2639
  }
2680
- function dr(e) {
2640
+ function fr(e) {
2681
2641
  return cr(e) ? e : void 0;
2682
2642
  }
2683
- function fr(e) {
2643
+ function pr(e) {
2684
2644
  return e === !1 ? In : Un(e);
2685
2645
  }
2686
- function pr(e, t) {
2646
+ function mr(e, t) {
2687
2647
  return t.x >= e.chart.x && t.x <= e.chart.x + e.chart.width && t.y >= e.chart.y && t.y <= e.chart.y + e.chart.height;
2688
2648
  }
2689
- function mr(e, t, n) {
2649
+ function hr(e, t, n) {
2690
2650
  let r = e === !0 ? {} : e || void 0;
2691
2651
  if (!r || n === "layout" || n === "resize" && r.resize !== !0 || (r.respectReducedMotion ?? !0) && t.ownerDocument.defaultView?.matchMedia?.("(prefers-reduced-motion: reduce)").matches) return;
2692
2652
  let { resize: i, ...a } = r;
2693
2653
  return a;
2694
2654
  }
2695
- //#endregion
2696
- //#region node_modules/@tanstack/charts/dist/reconcile.js
2697
- var hr = /* @__PURE__ */ new Set([
2655
+ // node_modules/@tanstack/charts/dist/reconcile.js
2656
+ var gr = /* @__PURE__ */ new Set([
2698
2657
  "cx",
2699
2658
  "cy",
2700
2659
  "d",
@@ -2718,7 +2677,7 @@ var hr = /* @__PURE__ */ new Set([
2718
2677
  "y1",
2719
2678
  "y2"
2720
2679
  ]);
2721
- function gr(e, t, n) {
2680
+ function _r(e, t, n) {
2722
2681
  let r = e.ownerDocument.createElement("template");
2723
2682
  r.innerHTML = t;
2724
2683
  let i = r.content.firstElementChild;
@@ -2726,23 +2685,23 @@ function gr(e, t, n) {
2726
2685
  let a = e.firstElementChild;
2727
2686
  if (!a || a.namespaceURI !== i.namespaceURI || a.localName !== i.localName) return e.replaceChildren(i), () => {};
2728
2687
  let o = [];
2729
- return vr(a, i, n ? o : void 0), n ? Sr(e, o, n) : () => {};
2688
+ return yr(a, i, n ? o : void 0), n ? Cr(e, o, n) : () => {};
2730
2689
  }
2731
- function _r(e, t, n) {
2690
+ function vr(e, t, n) {
2732
2691
  let r = e.ownerDocument.createElement("template");
2733
2692
  r.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`;
2734
2693
  let i = r.content.firstElementChild?.firstElementChild;
2735
2694
  if (!i) return () => {};
2736
2695
  if (e.namespaceURI !== i.namespaceURI || e.localName !== i.localName) return e.replaceWith(i), () => {};
2737
2696
  let a = [];
2738
- return vr(e, i, n ? a : void 0), n ? Sr(e, a, n) : () => {};
2697
+ return yr(e, i, n ? a : void 0), n ? Cr(e, a, n) : () => {};
2739
2698
  }
2740
- function vr(e, t, n) {
2741
- if (yr(e, t, n), !t.firstElementChild && !e.firstElementChild) {
2699
+ function yr(e, t, n) {
2700
+ if (br(e, t, n), !t.firstElementChild && !e.firstElementChild) {
2742
2701
  e.textContent !== t.textContent && (e.textContent = t.textContent);
2743
2702
  return;
2744
2703
  }
2745
- let r = [...e.children], i = [...t.children], a = Er(r), o = Dr(i), s = new Set(r);
2704
+ let r = [...e.children], i = [...t.children], a = Dr(r), o = Or(i), s = new Set(r);
2746
2705
  if (e.childNodes.length !== r.length) for (let t = e.firstChild; t;) {
2747
2706
  let e = t.nextSibling;
2748
2707
  t.nodeType !== 1 && t.remove(), t = e;
@@ -2754,17 +2713,17 @@ function vr(e, t, n) {
2754
2713
  continue;
2755
2714
  }
2756
2715
  let r = t, i = o[l++], u = a.get(i), d;
2757
- u && u.namespaceURI === r.namespaceURI && u.localName === r.localName ? (d = u, s.delete(u), d !== c && e.insertBefore(d, c), vr(d, r, n)) : u && e.localName === "defs" ? (d = r.cloneNode(!0), u.replaceWith(d), u !== c && e.insertBefore(d, c)) : (d = r.cloneNode(!0), e.insertBefore(d, c), br(d, r, n)), c = d.nextSibling;
2716
+ u && u.namespaceURI === r.namespaceURI && u.localName === r.localName ? (d = u, s.delete(u), d !== c && e.insertBefore(d, c), yr(d, r, n)) : u && e.localName === "defs" ? (d = r.cloneNode(!0), u.replaceWith(d), u !== c && e.insertBefore(d, c)) : (d = r.cloneNode(!0), e.insertBefore(d, c), xr(d, r, n)), c = d.nextSibling;
2758
2717
  }
2759
- for (let t of s) t.parentElement === e && (n ? xr(t, n) : t.remove());
2718
+ for (let t of s) t.parentElement === e && (n ? Sr(t, n) : t.remove());
2760
2719
  }
2761
- function yr(e, t, n) {
2720
+ function br(e, t, n) {
2762
2721
  let r = t.getAttributeNames();
2763
2722
  for (let n of e.getAttributeNames()) t.hasAttribute(n) || e.removeAttribute(n);
2764
2723
  for (let i of r) {
2765
2724
  let r = t.getAttribute(i), a = e.getAttribute(i);
2766
2725
  if (r === a) continue;
2767
- let o = n && a !== null && r !== null && hr.has(i) ? wr(i, a, r) : void 0;
2726
+ let o = n && a !== null && r !== null && gr.has(i) ? Tr(i, a, r) : void 0;
2768
2727
  o && n ? n.push({
2769
2728
  element: e,
2770
2729
  name: i,
@@ -2773,7 +2732,7 @@ function yr(e, t, n) {
2773
2732
  }) : r !== null && e.setAttribute(i, r);
2774
2733
  }
2775
2734
  }
2776
- function br(e, t, n) {
2735
+ function xr(e, t, n) {
2777
2736
  if (!n) return;
2778
2737
  let r = t.getAttribute("opacity"), i = r ?? "1";
2779
2738
  e.setAttribute("opacity", "0"), n.push({
@@ -2783,7 +2742,7 @@ function br(e, t, n) {
2783
2742
  target: r
2784
2743
  });
2785
2744
  }
2786
- function xr(e, t) {
2745
+ function Sr(e, t) {
2787
2746
  let n = Number(e.getAttribute("opacity") ?? 1), r = Number.isFinite(n) ? n : 1;
2788
2747
  t.push({
2789
2748
  element: e,
@@ -2793,43 +2752,37 @@ function xr(e, t) {
2793
2752
  removeOnFinish: !0
2794
2753
  });
2795
2754
  }
2796
- function Sr(e, t, n) {
2755
+ function Cr(e, t, n) {
2797
2756
  if (!t.length) return () => {};
2798
2757
  let r = e.ownerDocument.defaultView, i = r?.requestAnimationFrame?.bind(r), a = r?.cancelAnimationFrame?.bind(r), o = Math.max(0, n.duration ?? 240);
2799
- if (!i || !a || o === 0) return Cr(t), () => {};
2800
- let s = 0, c = !1, l, u = Or(n.easing ?? "ease-out"), d = (e) => {
2758
+ if (!i || !a || o === 0) return wr(t), () => {};
2759
+ let s = 0, c = !1, l, u = kr(n.easing ?? "ease-out"), d = (e) => {
2801
2760
  if (c) return;
2802
2761
  l ??= e;
2803
2762
  let n = Math.min(1, (e - l) / o), r = u(n);
2804
2763
  for (let e of t) e.element.setAttribute(e.name, e.interpolate(r));
2805
- n < 1 ? s = i(d) : Cr(t);
2764
+ n < 1 ? s = i(d) : wr(t);
2806
2765
  };
2807
2766
  return s = i(d), () => {
2808
2767
  c = !0, a(s);
2809
2768
  };
2810
2769
  }
2811
- function Cr(e) {
2812
- for (let t of e) {
2813
- if (t.removeOnFinish) {
2814
- t.element.remove();
2815
- continue;
2816
- }
2817
- t.target === null ? t.element.removeAttribute(t.name) : t.element.setAttribute(t.name, t.target);
2818
- }
2770
+ function wr(e) {
2771
+ for (let t of e) t.removeOnFinish ? t.element.remove() : t.target === null ? t.element.removeAttribute(t.name) : t.element.setAttribute(t.name, t.target);
2819
2772
  }
2820
- function wr(e, t, n) {
2821
- let r = e === "d", i = Tr(t, r), a = Tr(n, r);
2773
+ function Tr(e, t, n) {
2774
+ let r = e === "d", i = Er(t, r), a = Er(n, r);
2822
2775
  if (i.skeleton !== a.skeleton || i.values.length !== a.values.length || !i.values.length) return;
2823
2776
  let o = a.skeleton;
2824
2777
  return (e) => {
2825
2778
  let t = 0;
2826
2779
  return o.replaceAll(/[#!]/g, (n) => {
2827
2780
  let r = i.values[t], o = a.values[t];
2828
- return t += 1, kr(n === "!" ? o : r + (o - r) * e);
2781
+ return t += 1, Ar(n === "!" ? o : r + (o - r) * e);
2829
2782
  });
2830
2783
  };
2831
2784
  }
2832
- function Tr(e, t = !1) {
2785
+ function Er(e, t = !1) {
2833
2786
  let n = [], r = "", i = "", a = 0, o = 0;
2834
2787
  for (; o < e.length;) {
2835
2788
  let s = e.slice(o), c = a % 7, l = t && /a/i.test(i) && c > 2 && c < 5, u = l ? /^[01]/u.exec(s) : /^-?(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?/iu.exec(s);
@@ -2845,13 +2798,13 @@ function Tr(e, t = !1) {
2845
2798
  values: n
2846
2799
  };
2847
2800
  }
2848
- function Er(e) {
2801
+ function Dr(e) {
2849
2802
  let t = /* @__PURE__ */ new Map();
2850
- return Dr(e).forEach((n, r) => {
2803
+ return Or(e).forEach((n, r) => {
2851
2804
  t.set(n, e[r]);
2852
2805
  }), t;
2853
2806
  }
2854
- function Dr(e) {
2807
+ function Or(e) {
2855
2808
  let t = /* @__PURE__ */ new Map();
2856
2809
  return e.map((e) => {
2857
2810
  let n = e.getAttribute("data-ts-key");
@@ -2860,7 +2813,7 @@ function Dr(e) {
2860
2813
  return t.set(e.localName, r + 1), `tag:${e.localName}:${r}`;
2861
2814
  });
2862
2815
  }
2863
- function Or(e) {
2816
+ function kr(e) {
2864
2817
  if (typeof e == "function") return e;
2865
2818
  switch (e) {
2866
2819
  case "linear": return (e) => e;
@@ -2870,48 +2823,45 @@ function Or(e) {
2870
2823
  case "ease-out": return (e) => 1 - (1 - e) ** 3;
2871
2824
  }
2872
2825
  }
2873
- function kr(e) {
2826
+ function Ar(e) {
2874
2827
  return String(Math.round(e * 1e3) / 1e3);
2875
2828
  }
2876
- //#endregion
2877
- //#region node_modules/@tanstack/charts/dist/markup-internal.js
2829
+ // node_modules/@tanstack/charts/dist/markup-internal.js
2878
2830
  function Y(e) {
2879
2831
  return String(Math.round(e * 100) / 100);
2880
2832
  }
2881
- var Ar = {
2833
+ var jr = {
2882
2834
  "&": "&amp;",
2883
2835
  "<": "&lt;",
2884
2836
  ">": "&gt;",
2885
2837
  "\"": "&quot;"
2886
- }, jr = /[&<>\u0000-\u0008\u000b\u000c\u000e-\u001f\ufffe\uffff]|\p{Cs}/gu;
2887
- function Mr(e) {
2888
- return Ar[e] ?? "�";
2889
- }
2838
+ }, Mr = /[&<>\u0000-\u0008\u000b\u000c\u000e-\u001f\ufffe\uffff]|\p{Cs}/gu;
2890
2839
  function Nr(e) {
2891
- return e.replace(jr, Mr);
2840
+ return jr[e] ?? "�";
2841
+ }
2842
+ function Pr(e) {
2843
+ return e.replace(Mr, Nr);
2892
2844
  }
2893
2845
  function X(e) {
2894
- return e.replace(jr, Mr).replace(/"/g, Ar["\""]);
2846
+ return e.replace(Mr, Nr).replace(/"/g, jr["\""]);
2895
2847
  }
2896
- //#endregion
2897
- //#region node_modules/@tanstack/charts/dist/svg-render-context-internal.js
2898
- var Pr = /* @__PURE__ */ new WeakMap();
2899
- function Fr(e) {
2900
- return Pr.get(e);
2848
+ // node_modules/@tanstack/charts/dist/svg-render-context-internal.js
2849
+ var Fr = /* @__PURE__ */ new WeakMap();
2850
+ function Ir(e) {
2851
+ return Fr.get(e);
2901
2852
  }
2902
- function Ir(e, t, n) {
2903
- let r = Pr.get(e);
2904
- Pr.set(e, t);
2853
+ function Lr(e, t, n) {
2854
+ let r = Fr.get(e);
2855
+ Fr.set(e, t);
2905
2856
  try {
2906
2857
  return n();
2907
2858
  } finally {
2908
- r ? Pr.set(e, r) : Pr.delete(e);
2859
+ r ? Fr.set(e, r) : Fr.delete(e);
2909
2860
  }
2910
2861
  }
2911
- //#endregion
2912
- //#region node_modules/@tanstack/charts/dist/svg-renderer.js
2913
- function Lr(e, t, n) {
2914
- let r = t.idPrefix ?? "", i = t.className ? `ts-chart ${t.className}` : "ts-chart", a = t.ariaDescription ? `<desc>${Nr(t.ariaDescription)}</desc>` : "", o = n?.renderDefinitions?.(e, r) ?? "", s = e.direction === "ltr" || e.direction === "rtl" ? ` direction="${e.direction}"` : "", c = e.theme.background === "transparent" ? "" : Vr({
2862
+ // node_modules/@tanstack/charts/dist/svg-renderer.js
2863
+ function Rr(e, t, n) {
2864
+ let r = t.idPrefix ?? "", i = t.className ? `ts-chart ${t.className}` : "ts-chart", a = t.ariaDescription ? `<desc>${Pr(t.ariaDescription)}</desc>` : "", o = n?.renderDefinitions?.(e, r) ?? "", s = e.direction === "ltr" || e.direction === "rtl" ? ` direction="${e.direction}"` : "", c = e.theme.background === "transparent" ? "" : Hr({
2915
2865
  kind: "rect",
2916
2866
  key: "background",
2917
2867
  x: 0,
@@ -2920,110 +2870,108 @@ function Lr(e, t, n) {
2920
2870
  height: e.height,
2921
2871
  style: { fill: e.theme.background }
2922
2872
  }, n, r);
2923
- return `<svg class="${X(i)}" width="100%" height="100%" viewBox="0 0 ${Y(e.width)} ${Y(e.height)}" role="img" aria-roledescription="chart" aria-label="${X(t.ariaLabel)}" tabindex="${Y(t.tabIndex ?? 0)}"${s} style="display:block;overflow:visible">${a}${o}${c}${Rr(e.nodes, r, n, Fr(t))}</svg>`;
2873
+ return `<svg class="${X(i)}" width="100%" height="100%" viewBox="0 0 ${Y(e.width)} ${Y(e.height)}" role="img" aria-roledescription="chart" aria-label="${X(t.ariaLabel)}" tabindex="${Y(t.tabIndex ?? 0)}"${s} style="display:block;overflow:visible">${a}${o}${c}${zr(e.nodes, r, n, Ir(t))}</svg>`;
2924
2874
  }
2925
- function Rr(e, t = "", n, r) {
2875
+ function zr(e, t = "", n, r) {
2926
2876
  let i = "";
2927
- for (let a of e) i += Vr(a, n, t, r);
2877
+ for (let a of e) i += Hr(a, n, t, r);
2928
2878
  return i;
2929
2879
  }
2930
- function zr(e, t, n = "", r) {
2931
- return `<g data-ts-key="focus-guide-layer:${t}" class="ts-chart__focus-guide-layer ts-chart__focus-guide-layer--${t}" data-ts-focus-layer="${t}" data-ts-focus-guide-layer="${t}" aria-hidden="true" visibility="${e.length ? "visible" : "hidden"}">${Rr(e, n, r ?? Br)}</g>`;
2880
+ function Br(e, t, n = "", r) {
2881
+ return `<g data-ts-key="focus-guide-layer:${t}" class="ts-chart__focus-guide-layer ts-chart__focus-guide-layer--${t}" data-ts-focus-layer="${t}" data-ts-focus-guide-layer="${t}" aria-hidden="true" visibility="${e.length ? "visible" : "hidden"}">${zr(e, n, r ?? Vr)}</g>`;
2932
2882
  }
2933
- var Br = { renderGroup: Wr };
2934
- function Vr(e, t, n, r) {
2935
- let i = Kr(e, t, n);
2883
+ var Vr = { renderGroup: Gr };
2884
+ function Hr(e, t, n, r) {
2885
+ let i = qr(e, t, n);
2936
2886
  switch (e.kind) {
2937
2887
  case "group": {
2938
2888
  let a = e.translateX === void 0 && e.translateY === void 0 ? "" : ` transform="translate(${Y(e.translateX ?? 0)} ${Y(e.translateY ?? 0)})"`, o = t?.renderGroup?.(e, n);
2939
- return `<g${i}${a}${e.focus ? ` data-ts-focus-layer="${e.focus.placement}"${e.focus.retarget ? " data-ts-focus-retarget=\"true\"" : ""} visibility="hidden"` : ""}${o?.attributes ?? ""}>${o?.content ?? ""}${Rr(r?.(e) ?? e.children, n, t, r)}</g>`;
2889
+ return `<g${i}${a}${e.focus ? ` data-ts-focus-layer="${e.focus.placement}"${e.focus.retarget ? " data-ts-focus-retarget=\"true\"" : ""} visibility="hidden"` : ""}${o?.attributes ?? ""}>${o?.content ?? ""}${zr(r?.(e) ?? e.children, n, t, r)}</g>`;
2940
2890
  }
2941
2891
  case "rule": return `<line${i} x1="${Y(e.x1)}" y1="${Y(e.y1)}" x2="${Y(e.x2)}" y2="${Y(e.y2)}"/>`;
2942
- case "polyline": return `<path${i} d="${X(e.path ?? Ur(e.points, !1))}" vector-effect="non-scaling-stroke"/>`;
2892
+ case "polyline": return `<path${i} d="${X(e.path ?? Wr(e.points, !1))}" vector-effect="non-scaling-stroke"/>`;
2943
2893
  case "area": {
2944
- let t = e.polygons === void 0 ? e.path ?? Ur(e.points, !0) : Hr(e.polygons), n = e.polygons === void 0 ? "" : " fill-rule=\"evenodd\"";
2894
+ let t = e.polygons === void 0 ? e.path ?? Wr(e.points, !0) : Ur(e.polygons), n = e.polygons === void 0 ? "" : " fill-rule=\"evenodd\"";
2945
2895
  return `<path${i} d="${X(t)}"${n} vector-effect="non-scaling-stroke"/>`;
2946
2896
  }
2947
2897
  case "dot": return `<circle${i} cx="${Y(e.x)}" cy="${Y(e.y)}" r="${Y(e.radius)}"/>`;
2948
- case "rect": return e.cornerRadii === void 0 ? `<rect${i} x="${Y(e.x)}" y="${Y(e.y)}" width="${Y(e.width)}" height="${Y(e.height)}"${e.radius === void 0 ? "" : ` rx="${Y(e.radius)}"`}/>` : `<path${i} d="${W(e.x, e.y, e.width, e.height, e.cornerRadii)}"/>`;
2898
+ case "rect": return e.cornerRadii === void 0 ? `<rect${i} x="${Y(e.x)}" y="${Y(e.y)}" width="${Y(e.width)}" height="${Y(e.height)}"${e.radius === void 0 ? "" : ` rx="${Y(e.radius)}"`}/>` : `<path${i} d="${Ie(e.x, e.y, e.width, e.height, e.cornerRadii)}"/>`;
2949
2899
  case "label": {
2950
2900
  let t = e.rotate === void 0 ? "" : ` transform="rotate(${Y(e.rotate)} ${Y(e.x)} ${Y(e.y)})"`, n = e.anchor ? ` text-anchor="${e.anchor}"` : "", r = e.baseline ? ` dominant-baseline="${e.baseline}"` : "", a = e.fontSize === void 0 ? "" : ` font-size="${Y(e.fontSize)}"`, o = e.fontWeight === void 0 ? "" : ` font-weight="${Y(e.fontWeight)}"`;
2951
- return `<text${i} x="${Y(e.x)}" y="${Y(e.y)}"${n}${r}${t}${a}${o} font-family="inherit">${Nr(e.text)}</text>`;
2901
+ return `<text${i} x="${Y(e.x)}" y="${Y(e.y)}"${n}${r}${t}${a}${o} font-family="inherit">${Pr(e.text)}</text>`;
2952
2902
  }
2953
2903
  }
2954
2904
  }
2955
- function Hr(e) {
2956
- return e.flatMap((e) => e).filter((e) => e.length > 0).map((e) => Ur(e, !0)).join("");
2905
+ function Ur(e) {
2906
+ return e.flatMap((e) => e).filter((e) => e.length > 0).map((e) => Wr(e, !0)).join("");
2957
2907
  }
2958
- function Ur(e, t) {
2908
+ function Wr(e, t) {
2959
2909
  return `${e.map(([e, t], n) => `${n === 0 ? "M" : "L"}${Y(e)},${Y(t)}`).join("")}${t ? "Z" : ""}`;
2960
2910
  }
2961
- function Wr(e, t) {
2911
+ function Gr(e, t) {
2962
2912
  if (!e.clip) return;
2963
- let n = t.replaceAll(/[^a-zA-Z0-9_-]/g, ""), r = `${n ? `${n}-` : ""}ts-chart-clip-${Gr(e.key)}`;
2913
+ let n = t.replaceAll(/[^a-zA-Z0-9_-]/g, ""), r = `${n ? `${n}-` : ""}ts-chart-clip-${Kr(e.key)}`;
2964
2914
  return {
2965
2915
  attributes: ` clip-path="url(#${r})"`,
2966
2916
  content: `<defs data-ts-key="${X(`${e.key}:clip-defs`)}"><clipPath id="${r}"><rect x="${Y(e.clip.x)}" y="${Y(e.clip.y)}" width="${Y(e.clip.width)}" height="${Y(e.clip.height)}"/></clipPath></defs>`
2967
2917
  };
2968
2918
  }
2969
- function Gr(e) {
2919
+ function Kr(e) {
2970
2920
  let t = 2166136261;
2971
2921
  for (let n = 0; n < e.length; n += 1) t = Math.imul(t ^ e.charCodeAt(n), 16777619);
2972
2922
  return (t >>> 0).toString(36);
2973
2923
  }
2974
- function Kr(e, t, n) {
2975
- return `${` data-ts-key="${X(e.key)}"`}${e.className ? ` class="${X(e.className)}"` : ""}${e.ariaHidden ? " aria-hidden=\"true\"" : ""}${qr(e.style, t, n)}`;
2976
- }
2977
2924
  function qr(e, t, n) {
2978
- return e ? Z("fill", Jr(e.fill, t, n)) + Z("fill-opacity", e.fillOpacity) + Z("stroke", Jr(e.stroke, t, n)) + Z("stroke-opacity", e.strokeOpacity) + Z("stroke-width", e.strokeWidth) + Z("opacity", e.opacity) + Z("stroke-linecap", e.lineCap) + Z("stroke-linejoin", e.lineJoin) + Z("stroke-dasharray", e.strokeDasharray) : "";
2925
+ return `${` data-ts-key="${X(e.key)}"`}${e.className ? ` class="${X(e.className)}"` : ""}${e.ariaHidden ? " aria-hidden=\"true\"" : ""}${Jr(e.style, t, n)}`;
2979
2926
  }
2980
2927
  function Jr(e, t, n) {
2928
+ return e ? Z("fill", Yr(e.fill, t, n)) + Z("fill-opacity", e.fillOpacity) + Z("stroke", Yr(e.stroke, t, n)) + Z("stroke-opacity", e.strokeOpacity) + Z("stroke-width", e.strokeWidth) + Z("opacity", e.opacity) + Z("stroke-linecap", e.lineCap) + Z("stroke-linejoin", e.lineJoin) + Z("stroke-dasharray", e.strokeDasharray) : "";
2929
+ }
2930
+ function Yr(e, t, n) {
2981
2931
  return e && t?.resolvePaint ? t.resolvePaint(e, n) : e;
2982
2932
  }
2983
2933
  function Z(e, t) {
2984
2934
  return t == null ? "" : ` ${e}="${typeof t == "number" ? Y(t) : X(t)}"`;
2985
2935
  }
2986
- //#endregion
2987
- //#region node_modules/@tanstack/charts/dist/svg.js
2988
- function Yr(e, t) {
2936
+ // node_modules/@tanstack/charts/dist/svg.js
2937
+ function Xr(e, t) {
2989
2938
  let n = new Set(e.gradients.map((e) => e.id));
2990
- return Lr(e, t, {
2991
- renderDefinitions: (e, t) => Xr(e, Qr(t)),
2992
- renderGroup: Wr,
2939
+ return Rr(e, t, {
2940
+ renderDefinitions: (e, t) => Zr(e, $r(t)),
2941
+ renderGroup: Gr,
2993
2942
  resolvePaint: n.size ? (e, t) => {
2994
2943
  let r = /^url\(#([^)]+)\)$/.exec(e)?.[1];
2995
- return r && n.has(r) ? `url(#${Zr(Qr(t), r)})` : e;
2944
+ return r && n.has(r) ? `url(#${Qr($r(t), r)})` : e;
2996
2945
  } : void 0
2997
2946
  });
2998
2947
  }
2999
- function Xr(e, t) {
2948
+ function Zr(e, t) {
3000
2949
  return e.gradients.length ? `<defs data-ts-key="gradients">${e.gradients.map((e) => {
3001
2950
  let n = 0, r = e.stops.map((t, r) => {
3002
- let i = Math.max(n, $r(t.offset));
2951
+ let i = Math.max(n, ei(t.offset));
3003
2952
  return n = i, `<stop data-ts-key="gradient:${X(e.id)}:stop:${r}" offset="${Q(i)}" stop-color="${X(t.color)}"${t.opacity === void 0 ? "" : ` stop-opacity="${Y(t.opacity)}"`}/>`;
3004
2953
  }).join("");
3005
2954
  if (e.type === "radial") {
3006
2955
  let n = e.cx ?? .5, i = e.cy ?? .5;
3007
- return `<radialGradient data-ts-key="gradient:${X(e.id)}" id="${X(Zr(t, e.id))}" cx="${Q(n)}" cy="${Q(i)}" r="${Q(e.r ?? .5)}" fx="${Q(e.fx ?? n)}" fy="${Q(e.fy ?? i)}">${r}</radialGradient>`;
2956
+ return `<radialGradient data-ts-key="gradient:${X(e.id)}" id="${X(Qr(t, e.id))}" cx="${Q(n)}" cy="${Q(i)}" r="${Q(e.r ?? .5)}" fx="${Q(e.fx ?? n)}" fy="${Q(e.fy ?? i)}">${r}</radialGradient>`;
3008
2957
  }
3009
- return `<linearGradient data-ts-key="gradient:${X(e.id)}" id="${X(Zr(t, e.id))}" x1="${Q(e.x1 ?? 0)}" y1="${Q(e.y1 ?? 1)}" x2="${Q(e.x2 ?? 0)}" y2="${Q(e.y2 ?? 0)}">${r}</linearGradient>`;
2958
+ return `<linearGradient data-ts-key="gradient:${X(e.id)}" id="${X(Qr(t, e.id))}" x1="${Q(e.x1 ?? 0)}" y1="${Q(e.y1 ?? 1)}" x2="${Q(e.x2 ?? 0)}" y2="${Q(e.y2 ?? 0)}">${r}</linearGradient>`;
3010
2959
  }).join("")}</defs>` : "";
3011
2960
  }
3012
- function Zr(e, t) {
2961
+ function Qr(e, t) {
3013
2962
  return e ? `${e}-${t}` : t;
3014
2963
  }
3015
- function Qr(e) {
2964
+ function $r(e) {
3016
2965
  return e.replaceAll(/[^a-zA-Z0-9_-]/g, "");
3017
2966
  }
3018
2967
  function Q(e) {
3019
- return `${Y($r(e) * 100)}%`;
2968
+ return `${Y(ei(e) * 100)}%`;
3020
2969
  }
3021
- function $r(e) {
2970
+ function ei(e) {
3022
2971
  return Number.isNaN(e) ? 0 : Math.max(0, Math.min(1, e));
3023
2972
  }
3024
- //#endregion
3025
- //#region node_modules/@tanstack/charts/dist/scene-point-ownership-internal.js
3026
- function ei(e) {
2973
+ // node_modules/@tanstack/charts/dist/scene-point-ownership-internal.js
2974
+ function ti(e) {
3027
2975
  let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = (e, t, n) => {
3028
2976
  let r = e.get(t);
3029
2977
  r ? r.push(n) : e.set(t, [n]);
@@ -3039,7 +2987,7 @@ function ei(e) {
3039
2987
  marks: n
3040
2988
  };
3041
2989
  }
3042
- function ti(e, t, n, r = t) {
2990
+ function ni(e, t, n, r = t) {
3043
2991
  if (e.kind === "group") {
3044
2992
  let n = e.focusCandidateIndex;
3045
2993
  if (n !== void 0 && Number.isInteger(n) && n >= 0) {
@@ -3048,17 +2996,17 @@ function ti(e, t, n, r = t) {
3048
2996
  }
3049
2997
  }
3050
2998
  if (e.pointOwner) {
3051
- let r = ri(e.pointOwner, t, n);
2999
+ let r = ii(e.pointOwner, t, n);
3052
3000
  if (r.length) return r;
3053
3001
  }
3054
- if (e.pointOwners) return e.pointOwners.flatMap((e) => ri(e, t, n));
3002
+ if (e.pointOwners) return e.pointOwners.flatMap((e) => ii(e, t, n));
3055
3003
  if ("interaction" in e && e.interaction) {
3056
- let r = (e.interaction.point ? [e.interaction.point] : e.interaction.points).flatMap((e) => ri(e, t, n));
3004
+ let r = (e.interaction.point ? [e.interaction.point] : e.interaction.points).flatMap((e) => ii(e, t, n));
3057
3005
  if (r.length) return r;
3058
3006
  }
3059
- return ni(e.key, t, n, r);
3007
+ return ri(e.key, t, n, r);
3060
3008
  }
3061
- function ni(e, t, n, r = t) {
3009
+ function ri(e, t, n, r = t) {
3062
3010
  let i = (e) => e === void 0 ? [] : t === n.points ? e : e.filter((e) => t.includes(e)), a = i(n.keys.get(e)), o = a.filter((t) => t.key === e);
3063
3011
  if (o.length) return o;
3064
3012
  let s = e;
@@ -3072,27 +3020,26 @@ function ni(e, t, n, r = t) {
3072
3020
  let c = i(n.marks.get(e));
3073
3021
  return c.length ? c : r;
3074
3022
  }
3075
- function ri(e, t, n) {
3023
+ function ii(e, t, n) {
3076
3024
  let r = (n.keys.get(e.key) ?? []).filter((r) => r.key === e.key && (t === n.points || t.includes(r))), i = r.filter((t) => t === e);
3077
3025
  if (i.length) return i;
3078
3026
  if (r.length) return r;
3079
- let a = t.filter((t) => Object.is(t.datum, e.datum) && (ii(e.datum) || t.datumIndex === e.datumIndex));
3027
+ let a = t.filter((t) => Object.is(t.datum, e.datum) && (ai(e.datum) || t.datumIndex === e.datumIndex));
3080
3028
  return a.length === 1 ? a : [];
3081
3029
  }
3082
- function ii(e) {
3030
+ function ai(e) {
3083
3031
  return typeof e == "object" && !!e || typeof e == "function";
3084
3032
  }
3085
- //#endregion
3086
- //#region node_modules/@tanstack/charts/dist/focus-layer.js
3087
- var ai = [];
3088
- function oi(e, t, n, r) {
3033
+ // node_modules/@tanstack/charts/dist/focus-layer.js
3034
+ var oi = [];
3035
+ function si(e, t, n, r) {
3089
3036
  let i = [], a = [];
3090
3037
  if (!r && !t) return {
3091
3038
  under: i,
3092
3039
  over: a
3093
3040
  };
3094
3041
  for (let o of e.focusGuides ?? []) {
3095
- let s = t && Si(o, t) ? t : null;
3042
+ let s = t && Ci(o, t) ? t : null;
3096
3043
  if (!r && t && !s) continue;
3097
3044
  let c = o.resolve({
3098
3045
  scene: e,
@@ -3108,7 +3055,7 @@ function oi(e, t, n, r) {
3108
3055
  over: a
3109
3056
  };
3110
3057
  }
3111
- function si(e, t) {
3058
+ function ci(e, t) {
3112
3059
  if (!t) return {
3113
3060
  scene: e,
3114
3061
  retargeted: !1
@@ -3116,7 +3063,7 @@ function si(e, t) {
3116
3063
  let n = !1, r = (e) => e.map((e) => {
3117
3064
  if (e.kind !== "group") return e;
3118
3065
  if (e.focus?.retarget) {
3119
- let r = e.focus.points.filter((n) => gi(n, t, e.focus.match)), i = ei(e.focus.points), a = pi(fi(e.focus.candidates ?? e.children, r, e.focus.points, i), r, e.focus.points, i, e.key);
3066
+ let r = e.focus.points.filter((n) => _i(n, t, e.focus.match)), i = ti(e.focus.points), a = mi(pi(e.focus.candidates ?? e.children, r, e.focus.points, i), r, e.focus.points, i, e.key);
3120
3067
  return a.length ? (n = !0, {
3121
3068
  ...e,
3122
3069
  focus: {
@@ -3143,32 +3090,32 @@ function si(e, t) {
3143
3090
  retargeted: n
3144
3091
  };
3145
3092
  }
3146
- function ci(e, t) {
3093
+ function li(e, t) {
3147
3094
  if (!e.focus || !t) return /* @__PURE__ */ new Set();
3148
3095
  let n = /* @__PURE__ */ new Set();
3149
- return xi(li(e, t), (e) => n.add(e.key)), n;
3096
+ return Si(ui(e, t), (e) => n.add(e.key)), n;
3150
3097
  }
3151
- function li(e, t) {
3098
+ function ui(e, t) {
3152
3099
  let n = e.focus;
3153
3100
  if (n.retarget) return e.children;
3154
3101
  if (n.anchors) {
3155
- let r = n.anchors.filter((e) => gi(e, t, n.match));
3156
- return di(e.children, r);
3102
+ let r = n.anchors.filter((e) => _i(e, t, n.match));
3103
+ return fi(e.children, r);
3157
3104
  }
3158
- let r = n.points.filter((e) => gi(e, t, n.match));
3159
- return ui(e.children, r, n.points);
3105
+ let r = n.points.filter((e) => _i(e, t, n.match));
3106
+ return di(e.children, r, n.points);
3160
3107
  }
3161
- function ui(e, t, n) {
3162
- return fi(e, t, n, ei(n));
3108
+ function di(e, t, n) {
3109
+ return pi(e, t, n, ti(n));
3163
3110
  }
3164
- function di(e, t) {
3111
+ function fi(e, t) {
3165
3112
  let n = [];
3166
3113
  for (let r of e) {
3167
3114
  if (r.kind !== "group") {
3168
- t.some((e) => vi(r.key, e.key)) && n.push(r);
3115
+ t.some((e) => yi(r.key, e.key)) && n.push(r);
3169
3116
  continue;
3170
3117
  }
3171
- let e = di(r.children, t);
3118
+ let e = fi(r.children, t);
3172
3119
  e.length ? n.push({
3173
3120
  ...r,
3174
3121
  children: e
@@ -3176,24 +3123,24 @@ function di(e, t) {
3176
3123
  }
3177
3124
  return n;
3178
3125
  }
3179
- function fi(e, t, n, r) {
3126
+ function pi(e, t, n, r) {
3180
3127
  let i = [];
3181
3128
  for (let a of e) {
3182
3129
  if (a.kind !== "group") {
3183
- ti(a, n, r, ai).some((e) => t.includes(e)) && i.push(a);
3130
+ ni(a, n, r, oi).some((e) => t.includes(e)) && i.push(a);
3184
3131
  continue;
3185
3132
  }
3186
- let e = hi(a, n);
3133
+ let e = gi(a, n);
3187
3134
  if (e) {
3188
3135
  t.includes(e) && i.push(a);
3189
3136
  continue;
3190
3137
  }
3191
- let o = mi(a, n, r);
3138
+ let o = hi(a, n, r);
3192
3139
  if (o.length) {
3193
3140
  o.some((e) => t.includes(e)) && i.push(a);
3194
3141
  continue;
3195
3142
  }
3196
- let s = ti(a, n, r, ai), c = s.length ? s : n, l = fi(a.children, t, c, r);
3143
+ let s = ni(a, n, r, oi), c = s.length ? s : n, l = pi(a.children, t, c, r);
3197
3144
  l.length && i.push({
3198
3145
  ...a,
3199
3146
  children: l
@@ -3201,9 +3148,9 @@ function fi(e, t, n, r) {
3201
3148
  }
3202
3149
  return i;
3203
3150
  }
3204
- function pi(e, t, n, r, i) {
3151
+ function mi(e, t, n, r, i) {
3205
3152
  let a = new Map(t.map((e, t) => [e, t])), o = (e, t) => {
3206
- let s = ti(e, n, r, ai).filter((e) => a.has(e)), c = s.length === 1 ? s[0] : void 0, l = e.key;
3153
+ let s = ni(e, n, r, oi).filter((e) => a.has(e)), c = s.length === 1 ? s[0] : void 0, l = e.key;
3207
3154
  if (c && e.key !== c.markId) {
3208
3155
  let n = `${i}:selection:${a.get(c) ?? 0}`;
3209
3156
  l = e.key === c.key ? n : e.key.startsWith(`${c.key}:`) ? `${n}${e.key.slice(c.key.length)}` : c.key.startsWith(`${e.key}:`) ? `${n}:ancestor:${t}` : `${n}:node:${t}`;
@@ -3219,52 +3166,51 @@ function pi(e, t, n, r, i) {
3219
3166
  };
3220
3167
  return e.map((e, t) => o(e, String(t)));
3221
3168
  }
3222
- function mi(e, t, n) {
3223
- let r = hi(e, t);
3169
+ function hi(e, t, n) {
3170
+ let r = gi(e, t);
3224
3171
  if (r) return [r];
3225
3172
  if (e.pointOwner || e.pointOwners) {
3226
- let r = ti(e, t, n, ai);
3173
+ let r = ni(e, t, n, oi);
3227
3174
  if (r.length) return r;
3228
3175
  }
3229
3176
  let i = n.keys.get(e.key)?.filter((t) => t.key === e.key);
3230
- return i === void 0 ? ai : i.filter((e) => t.includes(e));
3177
+ return i === void 0 ? oi : i.filter((e) => t.includes(e));
3231
3178
  }
3232
- function hi(e, t) {
3179
+ function gi(e, t) {
3233
3180
  let n = e.focusCandidateIndex;
3234
3181
  if (!(n === void 0 || !Number.isInteger(n) || n < 0)) return t[n];
3235
3182
  }
3236
- function gi(e, t, n) {
3237
- return n === "x" ? e.xValue !== void 0 && yi(e.xValue, t.primary.xValue) : n === "y" ? e.yValue !== void 0 && yi(e.yValue, t.primary.yValue) : n === "series" ? yi(e.group, t.primary.group) : n === "key" ? e.key === t.primary.key || e.datum === t.primary.datum : n === "group" ? t.group.some((t) => _i(e, t)) : _i(e, t.primary);
3238
- }
3239
- function _i(e, t) {
3240
- return e === t || e.key === t.key ? !0 : Object.is(e.datum, t.datum) ? bi(e.datum) || e.datumIndex === t.datumIndex : !1;
3183
+ function _i(e, t, n) {
3184
+ return n === "x" ? e.xValue !== void 0 && bi(e.xValue, t.primary.xValue) : n === "y" ? e.yValue !== void 0 && bi(e.yValue, t.primary.yValue) : n === "series" ? bi(e.group, t.primary.group) : n === "key" ? e.key === t.primary.key || e.datum === t.primary.datum : n === "group" ? t.group.some((t) => vi(e, t)) : vi(e, t.primary);
3241
3185
  }
3242
3186
  function vi(e, t) {
3243
- return e === t || e.startsWith(`${t}:`) || t.startsWith(`${e}:`);
3187
+ return e === t || e.key === t.key ? !0 : Object.is(e.datum, t.datum) ? xi(e.datum) || e.datumIndex === t.datumIndex : !1;
3244
3188
  }
3245
3189
  function yi(e, t) {
3246
- return z(e) === z(t);
3190
+ return e === t || e.startsWith(`${t}:`) || t.startsWith(`${e}:`);
3247
3191
  }
3248
- function bi(e) {
3249
- return typeof e == "object" && !!e || typeof e == "function";
3192
+ function bi(e, t) {
3193
+ return L(e) === L(t);
3250
3194
  }
3251
- function xi(e, t) {
3252
- for (let n of e) t(n), n.kind === "group" && xi(n.children, t);
3195
+ function xi(e) {
3196
+ return typeof e == "object" && !!e || typeof e == "function";
3253
3197
  }
3254
3198
  function Si(e, t) {
3199
+ for (let n of e) t(n), n.kind === "group" && Si(n.children, t);
3200
+ }
3201
+ function Ci(e, t) {
3255
3202
  return e.scope === void 0 || t.primary.key === e.scope || t.primary.key.startsWith(`${e.scope}:`);
3256
3203
  }
3257
- //#endregion
3258
- //#region node_modules/@tanstack/charts/dist/svg-focus-guide-serializer.js
3259
- function Ci(e, t, n, r, i, a) {
3260
- let o = Ai(e.ownerDocument, i({
3204
+ // node_modules/@tanstack/charts/dist/svg-focus-guide-serializer.js
3205
+ function wi(e, t, n, r, i, a) {
3206
+ let o = ji(e.ownerDocument, i({
3261
3207
  ...t,
3262
3208
  nodes: [n]
3263
- }, r)), s = o && Mi(o, n.key);
3209
+ }, r)), s = o && Ni(o, n.key);
3264
3210
  if (!o || !s || s.localName !== "g") throw Error(`The SVG renderer must preserve a g[data-ts-key="${n.key}"] element when serializing focus guides.`);
3265
- return a && (s.classList.add("ts-chart__focus-guide-layer", `ts-chart__focus-guide-layer--${a}`), s.setAttribute("data-ts-focus-layer", a), s.setAttribute("data-ts-focus-guide-layer", a), s.setAttribute("aria-hidden", "true"), s.setAttribute("visibility", n.children.length ? "visible" : "hidden"), Ti(e.ownerDocument, s, n.children, a, r.idPrefix ?? "")), Ei(e, o, s, n.key), s.outerHTML;
3211
+ return a && (s.classList.add("ts-chart__focus-guide-layer", `ts-chart__focus-guide-layer--${a}`), s.setAttribute("data-ts-focus-layer", a), s.setAttribute("data-ts-focus-guide-layer", a), s.setAttribute("aria-hidden", "true"), s.setAttribute("visibility", n.children.length ? "visible" : "hidden"), Ei(e.ownerDocument, s, n.children, a, r.idPrefix ?? "")), Di(e, o, s, n.key), s.outerHTML;
3266
3212
  }
3267
- function wi(e, t, n, r, i, a) {
3213
+ function Ti(e, t, n, r, i, a) {
3268
3214
  let o = {
3269
3215
  kind: "group",
3270
3216
  key: `focus-guide-layer:${r}`,
@@ -3272,40 +3218,40 @@ function wi(e, t, n, r, i, a) {
3272
3218
  ariaHidden: !0,
3273
3219
  children: n
3274
3220
  };
3275
- return Ci(e, {
3221
+ return wi(e, {
3276
3222
  ...t,
3277
3223
  focusGuides: void 0
3278
3224
  }, o, i, a, r);
3279
3225
  }
3280
- function Ti(e, t, n, r, i) {
3281
- let a = ji(e, zr(n, r, i));
3282
- if (a) for (let e of Ni(a)) {
3226
+ function Ei(e, t, n, r, i) {
3227
+ let a = Mi(e, Br(n, r, i));
3228
+ if (a) for (let e of Pi(a)) {
3283
3229
  let n = e.getAttribute("clip-path"), r = e.getAttribute("data-ts-key");
3284
3230
  if (!n || !r) continue;
3285
- let i = Mi(t, r);
3231
+ let i = Ni(t, r);
3286
3232
  if (!i || i.hasAttribute("clip-path")) continue;
3287
3233
  i.setAttribute("clip-path", n);
3288
- let o = Mi(a, `${r}:clip-defs`);
3234
+ let o = Ni(a, `${r}:clip-defs`);
3289
3235
  o && i.insertBefore(o.cloneNode(!0), i.firstChild);
3290
3236
  }
3291
3237
  }
3292
- function Ei(e, t, n, r) {
3293
- let i = [...Oi(n)], a = /* @__PURE__ */ new Set(), o;
3238
+ function Di(e, t, n, r) {
3239
+ let i = [...ki(n)], a = /* @__PURE__ */ new Set(), o;
3294
3240
  for (; i.length;) {
3295
3241
  let s = i.shift();
3296
- if (!s || a.has(s) || (a.add(s), ki(n, s) || Di(e, s))) continue;
3297
- let c = ki(t, s);
3242
+ if (!s || a.has(s) || (a.add(s), Ai(n, s) || Oi(e, s))) continue;
3243
+ let c = Ai(t, s);
3298
3244
  if (!c) continue;
3299
3245
  o || (o = e.ownerDocument.createElementNS("http://www.w3.org/2000/svg", "defs"), o.setAttribute("data-ts-key", `${r}:renderer-defs`), n.insertBefore(o, n.firstChild));
3300
3246
  let l = c.cloneNode(!0);
3301
- o.append(l), i.push(...Oi(l));
3247
+ o.append(l), i.push(...ki(l));
3302
3248
  }
3303
3249
  }
3304
- function Di(e, t) {
3305
- let n = ki(e, t);
3250
+ function Oi(e, t) {
3251
+ let n = Ai(e, t);
3306
3252
  return n?.closest("[data-ts-focus-guide-layer]") ? void 0 : n;
3307
3253
  }
3308
- function Oi(e) {
3254
+ function ki(e) {
3309
3255
  let t = /* @__PURE__ */ new Set();
3310
3256
  for (let n of [e, ...e.querySelectorAll("*")]) for (let e of n.attributes) {
3311
3257
  for (let n of e.value.matchAll(/url\(#([^)]+)\)/g)) n[1] && t.add(n[1]);
@@ -3313,69 +3259,67 @@ function Oi(e) {
3313
3259
  }
3314
3260
  return t;
3315
3261
  }
3316
- function ki(e, t) {
3262
+ function Ai(e, t) {
3317
3263
  return [...e.getAttribute("id") === t ? [e] : [], ...e.querySelectorAll("[id]")].find((e) => e.getAttribute("id") === t);
3318
3264
  }
3319
- function Ai(e, t) {
3265
+ function ji(e, t) {
3320
3266
  let n = e.createElement("template");
3321
3267
  n.innerHTML = t.trim();
3322
3268
  let r = n.content.firstElementChild;
3323
3269
  return r?.localName === "svg" ? r : void 0;
3324
3270
  }
3325
- function ji(e, t) {
3271
+ function Mi(e, t) {
3326
3272
  let n = e.createElement("template");
3327
3273
  return n.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`, n.content.firstElementChild?.firstElementChild ?? void 0;
3328
3274
  }
3329
- function Mi(e, t) {
3330
- return Ni(e).find((e) => e.getAttribute("data-ts-key") === t);
3275
+ function Ni(e, t) {
3276
+ return Pi(e).find((e) => e.getAttribute("data-ts-key") === t);
3331
3277
  }
3332
- function Ni(e) {
3278
+ function Pi(e) {
3333
3279
  return [...e.hasAttribute("data-ts-key") ? [e] : [], ...e.querySelectorAll("[data-ts-key]")];
3334
3280
  }
3335
- //#endregion
3336
- //#region node_modules/@tanstack/charts/dist/svg-focus-guide-layer.js
3337
- function Pi(e) {
3281
+ // node_modules/@tanstack/charts/dist/svg-focus-guide-layer.js
3282
+ function Fi(e) {
3338
3283
  let t = {};
3339
3284
  if (!e) return t;
3340
3285
  for (let n of ["under", "over"]) {
3341
- let r = zi(e, n);
3286
+ let r = Bi(e, n);
3342
3287
  r && (t[n] = r, r.remove());
3343
3288
  }
3344
3289
  return t;
3345
3290
  }
3346
- function Fi(e, t, n = () => !0) {
3291
+ function Ii(e, t, n = () => !0) {
3347
3292
  for (let r of ["under", "over"]) {
3348
3293
  let i = t[r];
3349
- i && n(r) && Ri(e, i, r);
3294
+ i && n(r) && zi(e, i, r);
3350
3295
  }
3351
3296
  }
3352
- function Ii(e, t) {
3353
- let n = zi(e, t);
3297
+ function Li(e, t) {
3298
+ let n = Bi(e, t);
3354
3299
  if (n) return n;
3355
3300
  let r = e.ownerDocument.createElementNS("http://www.w3.org/2000/svg", "g");
3356
- return r.dataset.tsKey = `focus-guide-layer:${t}`, r.dataset.tsFocusLayer = t, r.dataset.tsFocusGuideLayer = t, r.setAttribute("class", `ts-chart__focus-guide-layer ts-chart__focus-guide-layer--${t}`), r.setAttribute("aria-hidden", "true"), r.setAttribute("visibility", "hidden"), Ri(e, r, t), r;
3301
+ return r.dataset.tsKey = `focus-guide-layer:${t}`, r.dataset.tsFocusLayer = t, r.dataset.tsFocusGuideLayer = t, r.setAttribute("class", `ts-chart__focus-guide-layer ts-chart__focus-guide-layer--${t}`), r.setAttribute("aria-hidden", "true"), r.setAttribute("visibility", "hidden"), zi(e, r, t), r;
3357
3302
  }
3358
- function Li(e, t) {
3359
- zi(e, t)?.remove();
3303
+ function Ri(e, t) {
3304
+ Bi(e, t)?.remove();
3360
3305
  }
3361
- function Ri(e, t, n) {
3306
+ function zi(e, t, n) {
3362
3307
  if (n === "under") {
3363
3308
  let n = [...e.children].find((e) => e.getAttribute("data-ts-key") === "grid" || e.getAttribute("data-ts-key") === "marks" || e.classList.contains("ts-chart__grid") || e.classList.contains("ts-chart__marks"));
3364
3309
  e.insertBefore(t, n ?? null);
3365
3310
  } else e.append(t);
3366
3311
  }
3367
- function zi(e, t) {
3312
+ function Bi(e, t) {
3368
3313
  return [...e.children].find((e) => e.localName === "g" && e.getAttribute("data-ts-focus-guide-layer") === t);
3369
3314
  }
3370
- //#endregion
3371
- //#region node_modules/@tanstack/charts/dist/mark-state.js
3372
- function Bi(e, t, n = null, r = t) {
3373
- if (!t && !r || !Vi(e.nodes)) return { scene: e };
3315
+ // node_modules/@tanstack/charts/dist/mark-state.js
3316
+ function Vi(e, t, n = null, r = t) {
3317
+ if (!t && !r || !Hi(e.nodes)) return { scene: e };
3374
3318
  let i, a = {}, o = (e, s, c, l, u) => e.map((e) => {
3375
- let d = e.kind === "group" ? e.states : void 0, f = d?.target === "group", p = d?.points ?? s, m = d?.definitions ?? c, h = d?.data ?? l, g = d ? ei(d.points) : u, _ = p && g ? ti(e, p, g) : qi, v = (e.kind !== "group" || f) && m && h && r && _.length ? Hi(e, _, h, m, r, n) : { node: e };
3319
+ let d = e.kind === "group" ? e.states : void 0, f = d?.target === "group", p = d?.points ?? s, m = d?.definitions ?? c, h = d?.data ?? l, g = d ? ti(d.points) : u, _ = p && g ? ni(e, p, g) : Ji, v = (e.kind !== "group" || f) && m && h && r && _.length ? Ui(e, _, h, m, r, n) : { node: e };
3376
3320
  if (v.transition) {
3377
- i = Ji(i, v.transition);
3378
- for (let e of _) a[e.markId] = Ji(a[e.markId], v.transition);
3321
+ i = Yi(i, v.transition);
3322
+ for (let e of _) a[e.markId] = Yi(a[e.markId], v.transition);
3379
3323
  }
3380
3324
  let y = v.node;
3381
3325
  if (y.kind === "label" && y.focusOpacity) {
@@ -3405,22 +3349,22 @@ function Bi(e, t, n = null, r = t) {
3405
3349
  ...Object.keys(a).length ? { transitions: a } : {}
3406
3350
  };
3407
3351
  }
3408
- function Vi(e) {
3409
- return e.some((e) => e.kind === "label" ? e.focusOpacity !== void 0 : e.kind === "group" && (e.states !== void 0 || Vi(e.children)));
3352
+ function Hi(e) {
3353
+ return e.some((e) => e.kind === "label" ? e.focusOpacity !== void 0 : e.kind === "group" && (e.states !== void 0 || Hi(e.children)));
3410
3354
  }
3411
- function Hi(e, t, n, r, i, a) {
3355
+ function Ui(e, t, n, r, i, a) {
3412
3356
  let o = e, s;
3413
3357
  for (let e of r) {
3414
- let r = Ui(t, n, e, i, a);
3415
- r && (o = Gi(o, e.style, r), e.transition && (s = Ji(s, e.transition)));
3358
+ let r = Wi(t, n, e, i, a);
3359
+ r && (o = Ki(o, e.style, r), e.transition && (s = Yi(s, e.transition)));
3416
3360
  }
3417
3361
  return {
3418
3362
  node: o,
3419
3363
  transition: s
3420
3364
  };
3421
3365
  }
3422
- function Ui(e, t, n, r, i) {
3423
- if (!(typeof n.when != "function" && n.when.focus === "unmatched" && e.some((e) => gi(e, r, "group")))) for (let a of e) {
3366
+ function Wi(e, t, n, r, i) {
3367
+ if (!(typeof n.when != "function" && n.when.focus === "unmatched" && e.some((e) => _i(e, r, "group")))) for (let a of e) {
3424
3368
  let e = {
3425
3369
  datum: a.datum,
3426
3370
  index: a.datumIndex,
@@ -3428,18 +3372,18 @@ function Ui(e, t, n, r, i) {
3428
3372
  point: a,
3429
3373
  focus: r,
3430
3374
  pointer: i,
3431
- matches: (e) => gi(a, r, e)
3375
+ matches: (e) => _i(a, r, e)
3432
3376
  };
3433
- if (typeof n.when == "function" ? n.when(e) : Wi(n.when, e)) return e;
3377
+ if (typeof n.when == "function" ? n.when(e) : Gi(n.when, e)) return e;
3434
3378
  }
3435
3379
  }
3436
- function Wi(e, t) {
3380
+ function Gi(e, t) {
3437
3381
  let n = e.source;
3438
3382
  return n !== void 0 && !(Array.isArray(n) ? n.includes(t.focus.source) : n === t.focus.source) || e.pinned !== void 0 && e.pinned !== t.focus.pinned ? !1 : e.focus === "unmatched" ? !t.matches("group") : t.matches(e.focus);
3439
3383
  }
3440
- function Gi(e, t, n) {
3384
+ function Ki(e, t, n) {
3441
3385
  let r = { ...e.style };
3442
- for (let e of Ki) {
3386
+ for (let e of qi) {
3443
3387
  let i = $(t[e], n);
3444
3388
  i !== void 0 && (r[e] = i);
3445
3389
  }
@@ -3479,7 +3423,7 @@ function Gi(e, t, n) {
3479
3423
  }
3480
3424
  return i;
3481
3425
  }
3482
- var Ki = [
3426
+ var qi = [
3483
3427
  "fill",
3484
3428
  "fillOpacity",
3485
3429
  "stroke",
@@ -3491,8 +3435,8 @@ var Ki = [
3491
3435
  function $(e, t) {
3492
3436
  return typeof e == "function" ? e(t) : e;
3493
3437
  }
3494
- var qi = [];
3495
- function Ji(e, t) {
3438
+ var Ji = [];
3439
+ function Yi(e, t) {
3496
3440
  return !e || e.type !== t.type ? t : e.type === "tween" && t.type === "tween" ? {
3497
3441
  ...e,
3498
3442
  ...t,
@@ -3502,16 +3446,14 @@ function Ji(e, t) {
3502
3446
  ...t
3503
3447
  };
3504
3448
  }
3505
- //#endregion
3506
- //#region node_modules/@tanstack/charts/dist/mark-state-transition.js
3507
- function Yi(e, t) {
3449
+ // node_modules/@tanstack/charts/dist/mark-state-transition.js
3450
+ function Xi(e, t) {
3508
3451
  if (!e || e.type !== "tween" || (e.respectReducedMotion ?? !0) && t.ownerDocument.defaultView?.matchMedia?.("(prefers-reduced-motion: reduce)").matches) return;
3509
3452
  let { type: n, ...r } = e;
3510
3453
  return r;
3511
3454
  }
3512
- //#endregion
3513
- //#region node_modules/@tanstack/charts/dist/svg-coordinates.js
3514
- function Xi(e, t, n, r) {
3455
+ // node_modules/@tanstack/charts/dist/svg-coordinates.js
3456
+ function Zi(e, t, n, r) {
3515
3457
  let i = e.getScreenCTM?.();
3516
3458
  if (!i) {
3517
3459
  let i = e.getBoundingClientRect();
@@ -3532,19 +3474,18 @@ function Xi(e, t, n, r) {
3532
3474
  y: s
3533
3475
  };
3534
3476
  }
3535
- //#endregion
3536
- //#region node_modules/@tanstack/charts/dist/svg-surface.js
3537
- function Zi(e = Yr) {
3477
+ // node_modules/@tanstack/charts/dist/svg-surface.js
3478
+ function Qi(e = Xr) {
3538
3479
  let t = {
3539
3480
  id: "svg",
3540
- prerender: (t, n) => $i(t, n, null, e),
3481
+ prerender: (t, n) => ea(t, n, null, e),
3541
3482
  mount(n) {
3542
3483
  let r = () => {}, i = () => {}, a, o, s, c = !1, l = !1, u = null, d = !1, f = () => {
3543
3484
  let e = n.querySelector("svg.ts-chart");
3544
3485
  if (!e) throw Error("The SVG renderer must produce an svg.ts-chart root element.");
3545
3486
  return e;
3546
3487
  }, p = () => {
3547
- d || (d = !0, a && o && Qi(f(), a, u, o, e, "all"));
3488
+ d || (d = !0, a && o && $i(f(), a, u, o, e, "all"));
3548
3489
  };
3549
3490
  return {
3550
3491
  renderer: t,
@@ -3555,21 +3496,21 @@ function Zi(e = Yr) {
3555
3496
  render(t, m) {
3556
3497
  let h = !!(a && Tt(a, t));
3557
3498
  m.animation && p(), r(), i(), i = () => {};
3558
- let g = !!a?.focusGuides?.length, _ = g ? Pi(f()) : {};
3559
- r = gr(n, d ? e(t, m) : $i(t, m, u, e), h ? void 0 : m.animation), g && Fi(f(), _, (e) => t.focusGuides?.some((t) => t.placement === e) === !0), a = t, o = m, s = void 0, c = !1, l = !1;
3499
+ let g = !!a?.focusGuides?.length, _ = g ? Fi(f()) : {};
3500
+ r = _r(n, d ? e(t, m) : ea(t, m, u, e), h ? void 0 : m.animation), g && Ii(f(), _, (e) => t.focusGuides?.some((t) => t.placement === e) === !0), a = t, o = m, s = void 0, c = !1, l = !1;
3560
3501
  },
3561
3502
  clientToScene(e, t, n) {
3562
- return Xi(f(), e, t, n);
3503
+ return Zi(f(), e, t, n);
3563
3504
  },
3564
3505
  paintFocus(t, m, h, g) {
3565
3506
  if (!a || !o) return;
3566
- let _ = Bi(a, t, m, g?.stateFocus), v = si(_.scene, t), y = s, b = Yi(_.transition ?? y, n);
3507
+ let _ = Vi(a, t, m, g?.stateFocus), v = ci(_.scene, t), y = s, b = Xi(_.transition ?? y, n);
3567
3508
  if (b && p(), v.scene !== a || c || l || y) {
3568
3509
  i(), i = () => {};
3569
- let a = Pi(f());
3570
- r(), r = gr(n, d ? e(v.scene, o) : $i(v.scene, o, t, e), b), Fi(f(), a);
3510
+ let a = Fi(f());
3511
+ r(), r = _r(n, d ? e(v.scene, o) : ea(v.scene, o, t, e), b), Ii(f(), a);
3571
3512
  }
3572
- return l = v.retargeted, c = _.scene !== a, s = _.scene === a ? void 0 : _.transition ?? y, u = t, Qi(f(), v.scene, t, o, e, !d), i(), i = ea(f(), v.scene, t, m, h, o, e), v.scene;
3513
+ return l = v.retargeted, c = _.scene !== a, s = _.scene === a ? void 0 : _.transition ?? y, u = t, $i(f(), v.scene, t, o, e, !d), i(), i = ta(f(), v.scene, t, m, h, o, e), v.scene;
3573
3514
  },
3574
3515
  destroy() {
3575
3516
  r(), i();
@@ -3579,55 +3520,54 @@ function Zi(e = Yr) {
3579
3520
  };
3580
3521
  return t;
3581
3522
  }
3582
- function Qi(e, t, n, r, i, a) {
3583
- let o = ta(t.nodes);
3523
+ function $i(e, t, n, r, i, a) {
3524
+ let o = na(t.nodes);
3584
3525
  e.querySelectorAll("[data-ts-focus-layer]:not([data-ts-focus-guide-layer])").forEach((s, c) => {
3585
3526
  let l = o[c];
3586
3527
  if (l && a && At(l)) {
3587
- let o = a === "all" ? l.children : n ? li(l, n) : [], c = [...s.children].filter((e) => e.localName === "circle");
3588
- (c.length !== o.length || c.some((e, t) => e.getAttribute("data-ts-key") !== o[t]?.key)) && _r(s, Ci(e, t, {
3528
+ let o = a === "all" ? l.children : n ? ui(l, n) : [], c = [...s.children].filter((e) => e.localName === "circle");
3529
+ (c.length !== o.length || c.some((e, t) => e.getAttribute("data-ts-key") !== o[t]?.key)) && vr(s, wi(e, t, {
3589
3530
  ...l,
3590
3531
  children: o
3591
3532
  }, r, i));
3592
3533
  }
3593
- let u = l ? ci(l, n) : /* @__PURE__ */ new Set();
3534
+ let u = l ? li(l, n) : /* @__PURE__ */ new Set();
3594
3535
  s.setAttribute("visibility", n && u.size ? "visible" : "hidden"), s.querySelectorAll("[data-ts-key]").forEach((e) => {
3595
3536
  let t = e.dataset.tsKey;
3596
3537
  e.setAttribute("visibility", t && u.has(t) ? "visible" : "hidden");
3597
3538
  });
3598
3539
  });
3599
3540
  }
3600
- function $i(e, t, n, r) {
3601
- return Ir(t, (e) => At(e) ? n ? li(e, n) : [] : void 0, () => r(e, t));
3541
+ function ea(e, t, n, r) {
3542
+ return Lr(t, (e) => At(e) ? n ? ui(e, n) : [] : void 0, () => r(e, t));
3602
3543
  }
3603
- function ea(e, t, n, r, i, a, o) {
3604
- let s = oi(t, n, r, i), c = [];
3544
+ function ta(e, t, n, r, i, a, o) {
3545
+ let s = si(t, n, r, i), c = [];
3605
3546
  for (let n of ["under", "over"]) {
3606
3547
  if (!t.focusGuides?.some((e) => e.placement === n)) {
3607
- Li(e, n);
3548
+ Ri(e, n);
3608
3549
  continue;
3609
3550
  }
3610
- let r = Ii(e, n), i = s[n];
3551
+ let r = Li(e, n), i = s[n];
3611
3552
  if (!i.length) {
3612
3553
  r.setAttribute("visibility", "hidden");
3613
3554
  continue;
3614
3555
  }
3615
- let l = o === Yr ? zr(i, n, a.idPrefix ?? "") : wi(e, t, i, n, a, o);
3616
- c.push(_r(r, l));
3556
+ let l = o === Xr ? Br(i, n, a.idPrefix ?? "") : Ti(e, t, i, n, a, o);
3557
+ c.push(vr(r, l));
3617
3558
  }
3618
3559
  return () => c.forEach((e) => e());
3619
3560
  }
3620
- function ta(e) {
3561
+ function na(e) {
3621
3562
  let t = [];
3622
- for (let n of e) n.kind === "group" && (n.focus ? t.push(n) : t.push(...ta(n.children)));
3563
+ for (let n of e) n.kind === "group" && (n.focus ? t.push(n) : t.push(...na(n.children)));
3623
3564
  return t;
3624
3565
  }
3625
- //#endregion
3626
- //#region node_modules/@tanstack/charts/dist/dom.js
3627
- function na(e, t, n = En()) {
3628
- let r = t.renderSvg ?? Yr, i = Zi(r), a = (t) => {
3629
- let n = t.renderSvg ?? Yr;
3630
- n !== r && (r = n, i = Zi(r));
3566
+ // node_modules/@tanstack/charts/dist/dom.js
3567
+ function ra(e, t, n = En()) {
3568
+ let r = t.renderSvg ?? Xr, i = Qi(r), a = (t) => {
3569
+ let n = t.renderSvg ?? Xr;
3570
+ n !== r && (r = n, i = Qi(r));
3631
3571
  let { renderSvg: a, onRender: o, ...s } = t;
3632
3572
  return {
3633
3573
  ...s,
@@ -3654,32 +3594,31 @@ function na(e, t, n = En()) {
3654
3594
  destroy: o.destroy
3655
3595
  };
3656
3596
  }
3657
- //#endregion
3658
- //#region node_modules/@tanstack/charts/dist/stack-internal.js
3659
- function ra(e, t = {}) {
3660
- let n = aa(t);
3597
+ // node_modules/@tanstack/charts/dist/stack-internal.js
3598
+ function ia(e, t = {}) {
3599
+ let n = oa(t);
3661
3600
  if (e.length === 0) return /* @__PURE__ */ new Map();
3662
3601
  let r = [], i = /* @__PURE__ */ new Map(), a = [], o = /* @__PURE__ */ new Set();
3663
3602
  for (let t of e) {
3664
- let e = z(t.position);
3603
+ let e = L(t.position);
3665
3604
  i.has(e) || (i.set(e, r.length), r.push(t.position));
3666
- let n = z(t.series);
3605
+ let n = L(t.series);
3667
3606
  o.has(n) || (o.add(n), a.push(t.series));
3668
3607
  }
3669
3608
  let c = r.map(() => /* @__PURE__ */ Object.create(null)), l = /* @__PURE__ */ new Map();
3670
3609
  for (let t of e) {
3671
- let e = i.get(z(t.position)), n = z(t.series), r = `${e}:${n}`;
3610
+ let e = i.get(L(t.position)), n = L(t.series), r = `${e}:${n}`;
3672
3611
  if (l.has(r)) throw TypeError(`A stack requires at most one value for each position and series; duplicate ${String(t.position)} / ${String(t.series)}`);
3673
3612
  l.set(r, t.index), c[e][n] = t.value;
3674
3613
  }
3675
3614
  let u = t.order === "inside-out";
3676
3615
  if (n !== void 0 && e.some(({ value: e }) => e < 0)) throw TypeError("A stack anchor requires nonnegative values");
3677
- let h = fa(e, a, t.order);
3616
+ let h = pa(e, a, t.order);
3678
3617
  t.reverse && !u && h.reverse();
3679
- let g = h.map(z), _ = t.anchor ? s : t.offset === "normalize" ? f : t.offset === "center" ? p : t.offset === "wiggle" ? m : ia, y = d().keys(g).value((e, t) => e[t] ?? 0).offset(_);
3618
+ let g = h.map(L), _ = t.anchor ? s : t.offset === "normalize" ? f : t.offset === "center" ? p : t.offset === "wiggle" ? m : aa, y = d().keys(g).value((e, t) => e[t] ?? 0).offset(_);
3680
3619
  u && y.order(t.reverse ? (e) => v(e).reverse() : v);
3681
3620
  let b = y(c);
3682
- t.anchor && n !== void 0 && oa(b, t.anchor.series, n), t.offset === "wiggle" && sa(b);
3621
+ t.anchor && n !== void 0 && sa(b, t.anchor.series, n), t.offset === "wiggle" && ca(b);
3683
3622
  let x = /* @__PURE__ */ new Map();
3684
3623
  return b.forEach((e) => {
3685
3624
  let t = e.key;
@@ -3692,7 +3631,7 @@ function ra(e, t = {}) {
3692
3631
  });
3693
3632
  }), x;
3694
3633
  }
3695
- function ia(e, t) {
3634
+ function aa(e, t) {
3696
3635
  if (e.length === 0) return;
3697
3636
  let n = e.map((e) => {
3698
3637
  let t = !1, n = !1;
@@ -3710,7 +3649,7 @@ function ia(e, t) {
3710
3649
  }
3711
3650
  }
3712
3651
  }
3713
- function aa(e) {
3652
+ function oa(e) {
3714
3653
  let t = e.anchor;
3715
3654
  if (!t) return;
3716
3655
  if (e.offset !== void 0 && e.offset !== "diverging") throw TypeError("A stack anchor can only be used with the diverging offset");
@@ -3718,8 +3657,8 @@ function aa(e) {
3718
3657
  if (!Number.isFinite(n) || n < 0 || n > 1) throw TypeError("A stack anchor fraction must be between zero and one");
3719
3658
  return n;
3720
3659
  }
3721
- function oa(e, t, n) {
3722
- let r = z(t), i = e.find((e) => e.key === r);
3660
+ function sa(e, t, n) {
3661
+ let r = L(t), i = e.find((e) => e.key === r);
3723
3662
  if (!i) throw TypeError(`Stack anchor series "${String(t)}" is not in the resolved series order`);
3724
3663
  i.forEach((t, r) => {
3725
3664
  let i = t[0] + (t[1] - t[0]) * n;
@@ -3729,65 +3668,64 @@ function oa(e, t, n) {
3729
3668
  }
3730
3669
  });
3731
3670
  }
3732
- function sa(e) {
3671
+ function ca(e) {
3733
3672
  let t = Infinity;
3734
3673
  for (let n of e) for (let e of n) t = Math.min(t, e[0]);
3735
3674
  if (Number.isFinite(t) && t !== 0) for (let n of e) for (let e of n) e[0] -= t, e[1] -= t;
3736
3675
  }
3737
- function ca(e, t, n, r = {}, i = "value") {
3676
+ function la(e, t, n, r = {}, i = "value") {
3738
3677
  let a = [];
3739
3678
  for (let r = 0; r < e.length; r += 1) {
3740
3679
  let o = e[r], s = t[r];
3741
- if (!ua(o) || !da(s)) continue;
3680
+ if (!da(o) || !fa(s)) continue;
3742
3681
  let c = n[r];
3743
3682
  a.push({
3744
3683
  index: r,
3745
3684
  position: o,
3746
3685
  value: s,
3747
- series: la(c) ? c : i === "index" ? r : "value"
3686
+ series: ua(c) ? c : i === "index" ? r : "value"
3748
3687
  });
3749
3688
  }
3750
- let o = ra(a, r), s = Array.from({ length: e.length }, () => void 0), c = Array.from({ length: e.length }, () => void 0);
3689
+ let o = ia(a, r), s = Array.from({ length: e.length }, () => void 0), c = Array.from({ length: e.length }, () => void 0);
3751
3690
  for (let [e, t] of o) s[e] = t.start, c[e] = t.end;
3752
3691
  return {
3753
3692
  starts: s,
3754
3693
  ends: c
3755
3694
  };
3756
3695
  }
3757
- function la(e) {
3758
- return typeof e == "string" || typeof e == "number";
3759
- }
3760
3696
  function ua(e) {
3761
- return typeof e == "string" || da(e) || e instanceof Date && Number.isFinite(e.getTime());
3697
+ return typeof e == "string" || typeof e == "number";
3762
3698
  }
3763
3699
  function da(e) {
3700
+ return typeof e == "string" || fa(e) || e instanceof Date && Number.isFinite(e.getTime());
3701
+ }
3702
+ function fa(e) {
3764
3703
  return typeof e == "number" && Number.isFinite(e);
3765
3704
  }
3766
- function fa(e, t, n) {
3705
+ function pa(e, t, n) {
3767
3706
  if (Array.isArray(n)) {
3768
- let e = [...n], r = new Set(e.map(z));
3769
- return [...e, ...t.filter((e) => !r.has(z(e)))];
3707
+ let e = [...n], r = new Set(e.map(L));
3708
+ return [...e, ...t.filter((e) => !r.has(L(e)))];
3770
3709
  }
3771
3710
  if (n !== "ascending" && n !== "descending") return [...t];
3772
- let r = new Map(t.map((e) => [z(e), 0]));
3711
+ let r = new Map(t.map((e) => [L(e), 0]));
3773
3712
  for (let t of e) {
3774
- let e = z(t.series);
3713
+ let e = L(t.series);
3775
3714
  r.set(e, (r.get(e) ?? 0) + Math.abs(t.value));
3776
3715
  }
3777
3716
  return [...t].sort((e, t) => {
3778
- let i = (r.get(z(e)) ?? 0) - (r.get(z(t)) ?? 0);
3717
+ let i = (r.get(L(e)) ?? 0) - (r.get(L(t)) ?? 0);
3779
3718
  return n === "ascending" ? i : -i;
3780
3719
  });
3781
3720
  }
3782
- //#endregion
3783
- //#region node_modules/@tanstack/charts/dist/rect-radius-state-internal.js
3784
- function pa(e) {
3721
+ // node_modules/@tanstack/charts/dist/rect-radius-state-internal.js
3722
+ function ma(e) {
3785
3723
  return e?.some(({ style: e }) => {
3786
3724
  let t = e.radius;
3787
3725
  return typeof t == "function" || Array.isArray(t);
3788
3726
  }) ?? !1;
3789
3727
  }
3790
- function ma(e, t) {
3728
+ function ha(e, t) {
3791
3729
  return e === void 0 ? t ? { cornerRadii: [
3792
3730
  0,
3793
3731
  0,
@@ -3800,20 +3738,18 @@ function ma(e, t) {
3800
3738
  e
3801
3739
  ] } : { radius: e } : { cornerRadii: e };
3802
3740
  }
3803
- //#endregion
3804
- //#region node_modules/@tanstack/charts/dist/scene-motion-internal.js
3805
- var ha = /* @__PURE__ */ Symbol("scene-motion-node");
3806
- //#endregion
3807
- //#region node_modules/@tanstack/charts/dist/stack-ends-internal.js
3808
- function ga(e, t, n, r, i, a = {}, o = "value") {
3809
- let s = ya(e, t, n, r, i, o), c = ba(s, a.order);
3741
+ // node_modules/@tanstack/charts/dist/scene-motion-internal.js
3742
+ var ga = /* @__PURE__ */ Symbol("scene-motion-node");
3743
+ // node_modules/@tanstack/charts/dist/stack-ends-internal.js
3744
+ function _a(e, t, n, r, i, a = {}, o = "value") {
3745
+ let s = ba(e, t, n, r, i, o), c = xa(s, a.order);
3810
3746
  a.reverse && c.reverse();
3811
- let l = new Map(c.map((e, t) => [z(e), t])), u = [...s].sort((e, t) => l.get(z(e.series)) - l.get(z(t.series))), d = Array.from({ length: e.length }), f = _a(s), p = _a(u), m = a.offset === void 0 || a.offset === "diverging";
3747
+ let l = new Map(c.map((e, t) => [L(e), t])), u = [...s].sort((e, t) => l.get(L(e.series)) - l.get(L(t.series))), d = Array.from({ length: e.length }), f = va(s), p = va(u), m = a.offset === void 0 || a.offset === "diverging";
3812
3748
  for (let [e, t] of p) {
3813
3749
  let n = f.get(e);
3814
3750
  if (m) {
3815
3751
  let e = Math.min(...t.flatMap((e) => [e.start, e.end]));
3816
- Math.max(...t.flatMap((e) => [e.start, e.end])) > 0 && va(t, n, "max", d), e < 0 && va(t, n, "min", d);
3752
+ Math.max(...t.flatMap((e) => [e.start, e.end])) > 0 && ya(t, n, "max", d), e < 0 && ya(t, n, "min", d);
3817
3753
  } else {
3818
3754
  let e = t[0].start, r = t.at(-1).end, i;
3819
3755
  if (r < e) i = "min";
@@ -3822,21 +3758,21 @@ function ga(e, t, n, r, i, a = {}, o = "value") {
3822
3758
  let n = Math.min(...t.flatMap((e) => [e.start, e.end])), r = Math.max(...t.flatMap((e) => [e.start, e.end]));
3823
3759
  i = e - n > r - e ? "min" : "max";
3824
3760
  }
3825
- va(t, n, i, d);
3761
+ ya(t, n, i, d);
3826
3762
  }
3827
3763
  }
3828
3764
  return d;
3829
3765
  }
3830
- function _a(e) {
3766
+ function va(e) {
3831
3767
  let t = /* @__PURE__ */ new Map();
3832
3768
  for (let n of e) {
3833
3769
  if (n.value === 0 || n.start === n.end) continue;
3834
- let e = z(n.position), r = t.get(e);
3770
+ let e = L(n.position), r = t.get(e);
3835
3771
  r ? r.push(n) : t.set(e, [n]);
3836
3772
  }
3837
3773
  return t;
3838
3774
  }
3839
- function va(e, t, n, r) {
3775
+ function ya(e, t, n, r) {
3840
3776
  if (e.length === 0) return;
3841
3777
  let i = Math[n](...e.flatMap((e) => [e.start, e.end]));
3842
3778
  for (let e of t) {
@@ -3849,11 +3785,11 @@ function va(e, t, n, r) {
3849
3785
  };
3850
3786
  }
3851
3787
  }
3852
- function ya(e, t, n, r, i, a) {
3788
+ function ba(e, t, n, r, i, a) {
3853
3789
  let o = [];
3854
3790
  for (let s = 0; s < e.length; s += 1) {
3855
3791
  let c = e[s], l = t[s], u = r[s], d = i[s];
3856
- if (!Sa(c) || !Ca(l) || !Ca(u) || !Ca(d)) continue;
3792
+ if (!Ca(c) || !wa(l) || !wa(u) || !wa(d)) continue;
3857
3793
  let f = n[s];
3858
3794
  o.push({
3859
3795
  index: s,
@@ -3861,63 +3797,62 @@ function ya(e, t, n, r, i, a) {
3861
3797
  value: l,
3862
3798
  start: u,
3863
3799
  end: d,
3864
- series: xa(f) ? f : a === "index" ? s : "value"
3800
+ series: Sa(f) ? f : a === "index" ? s : "value"
3865
3801
  });
3866
3802
  }
3867
3803
  return o;
3868
3804
  }
3869
- function ba(e, t) {
3805
+ function xa(e, t) {
3870
3806
  let n = [], r = /* @__PURE__ */ new Set();
3871
3807
  for (let t of e) {
3872
- let e = z(t.series);
3808
+ let e = L(t.series);
3873
3809
  r.has(e) || (r.add(e), n.push(t.series));
3874
3810
  }
3875
3811
  if (Array.isArray(t)) {
3876
- let e = [...t], r = new Set(e.map(z));
3877
- return [...e, ...n.filter((e) => !r.has(z(e)))];
3812
+ let e = [...t], r = new Set(e.map(L));
3813
+ return [...e, ...n.filter((e) => !r.has(L(e)))];
3878
3814
  }
3879
3815
  if (t === "inside-out") {
3880
3816
  let t = [], r = /* @__PURE__ */ new Map();
3881
3817
  for (let n of e) {
3882
- let e = z(n.position);
3818
+ let e = L(n.position);
3883
3819
  r.has(e) || (r.set(e, t.length), t.push(n.position));
3884
3820
  }
3885
3821
  return v(n.map((n) => {
3886
- let i = z(n), a = t.map(() => [0, 0]);
3887
- for (let t of e) z(t.series) === i && (a[r.get(z(t.position))][1] = t.value);
3822
+ let i = L(n), a = t.map(() => [0, 0]);
3823
+ for (let t of e) L(t.series) === i && (a[r.get(L(t.position))][1] = t.value);
3888
3824
  return a;
3889
3825
  })).map((e) => n[e]);
3890
3826
  }
3891
3827
  if (t !== "ascending" && t !== "descending") return n;
3892
- let i = new Map(n.map((e) => [z(e), 0]));
3828
+ let i = new Map(n.map((e) => [L(e), 0]));
3893
3829
  for (let t of e) {
3894
- let e = z(t.series);
3830
+ let e = L(t.series);
3895
3831
  i.set(e, (i.get(e) ?? 0) + Math.abs(t.value));
3896
3832
  }
3897
3833
  return n.sort((e, n) => {
3898
- let r = (i.get(z(e)) ?? 0) - (i.get(z(n)) ?? 0);
3834
+ let r = (i.get(L(e)) ?? 0) - (i.get(L(n)) ?? 0);
3899
3835
  return t === "ascending" ? r : -r;
3900
3836
  });
3901
3837
  }
3902
- function xa(e) {
3903
- return typeof e == "string" || typeof e == "number";
3904
- }
3905
3838
  function Sa(e) {
3906
- return typeof e == "string" || Ca(e) || e instanceof Date && Number.isFinite(e.getTime());
3839
+ return typeof e == "string" || typeof e == "number";
3907
3840
  }
3908
3841
  function Ca(e) {
3842
+ return typeof e == "string" || wa(e) || e instanceof Date && Number.isFinite(e.getTime());
3843
+ }
3844
+ function wa(e) {
3909
3845
  return typeof e == "number" && Number.isFinite(e);
3910
3846
  }
3911
- //#endregion
3912
- //#region node_modules/@tanstack/charts/dist/bar.js
3913
- function wa(e, t = {}) {
3914
- let n = Array.isArray(e) ? e : Array.from(e), r = t.xScale ?? "x", i = t.yScale ?? "y", a = typeof t.radius == "function" || pa(t.states);
3847
+ // node_modules/@tanstack/charts/dist/bar.js
3848
+ function Ta(e, t = {}) {
3849
+ let n = Array.isArray(e) ? e : Array.from(e), r = t.xScale ?? "x", i = t.yScale ?? "y", a = typeof t.radius == "function" || ma(t.states);
3915
3850
  return C(({ markIndex: e }) => {
3916
- let o = t.id ?? `bar-y-${e}`, s = k(n, t.x, (e, { index: t }) => t), c = Na(n, t.y ?? t.y2, (e) => typeof e == "number" ? e : void 0), l = k(n, t.z, () => null), u = t.color === void 0 ? l : k(n, t.color, () => null), d = t.z === void 0 && t.color !== void 0 ? u : l, f = t.y1 !== void 0 || t.y2 !== void 0;
3851
+ let o = t.id ?? `bar-y-${e}`, s = k(n, t.x, (e, { index: t }) => t), c = Pa(n, t.y ?? t.y2, (e) => typeof e == "number" ? e : void 0), l = k(n, t.z, () => null), u = t.color === void 0 ? l : k(n, t.color, () => null), d = t.z === void 0 && t.color !== void 0 ? u : l, f = t.y1 !== void 0 || t.y2 !== void 0;
3917
3852
  if (f && t.layout?.type === "stack") throw TypeError("A bar with explicit y1 or y2 endpoints cannot also configure a stack layout");
3918
3853
  let p = t.layout?.type === "group";
3919
- Ta(t.radius, f, p, "y");
3920
- let m = t.layout?.type === "stack" ? t.layout : void 0, h = Da(t.radius) ? t.radius : void 0, g = m?.offset === void 0 || m.offset === "diverging", _ = !f && !p ? ca(s, c, d, m, "index") : void 0, v = _ && h && (h.stack ?? "outer") === "outer" ? ga(s, c, d, _.starts, _.ends, m, "index") : void 0, y = f ? Na(n, t.y1, () => 0) : _?.starts ?? n.map(() => 0), b = f ? Na(n, t.y2 ?? t.y, () => void 0) : p ? c : _.ends, C = ja(s), w = p || !f && C ? d : l, T = A(n, t.key, {
3854
+ Ea(t.radius, f, p, "y");
3855
+ let m = t.layout?.type === "stack" ? t.layout : void 0, h = Oa(t.radius) ? t.radius : void 0, g = m?.offset === void 0 || m.offset === "diverging", _ = !f && !p ? la(s, c, d, m, "index") : void 0, v = _ && h && (h.stack ?? "outer") === "outer" ? _a(s, c, d, _.starts, _.ends, m, "index") : void 0, y = f ? Pa(n, t.y1, () => 0) : _?.starts ?? n.map(() => 0), b = f ? Pa(n, t.y2 ?? t.y, () => void 0) : p ? c : _.ends, C = Ma(s), w = p || !f && C ? d : l, T = A(n, t.key, {
3921
3856
  groups: w,
3922
3857
  candidates: [s],
3923
3858
  markId: o,
@@ -3939,16 +3874,16 @@ function wa(e, t = {}) {
3939
3874
  },
3940
3875
  color: {
3941
3876
  scale: "color",
3942
- values: u.filter(R)
3877
+ values: u.filter(I)
3943
3878
  }
3944
3879
  },
3945
3880
  render: ({ scales: e, chart: l, color: d }) => {
3946
- let f = e[r].bandwidth || Ma(e[r], s, l.width, n.length), p = Aa(t.layout?.type === "group" ? t.layout : void 0, w, f), m = p?.bandwidth ?? f, h = ka(m, t.inset, t.maxThickness), C = [];
3881
+ let f = e[r].bandwidth || Na(e[r], s, l.width, n.length), p = ja(t.layout?.type === "group" ? t.layout : void 0, w, f), m = p?.bandwidth ?? f, h = Aa(m, t.inset, t.maxThickness), C = [];
3947
3882
  return n.forEach((l, E) => {
3948
3883
  let D = s[E], k = c[E], A = y[E], j = b[E];
3949
3884
  if (!x(D) || !S(k) || !S(A) || !S(j)) return;
3950
- let M = w[E] ?? null, N = p?.map(M) ?? 0, P = d(u[E]), ee = O(t.fill, l, E, n, P), te = O(t.stroke, l, E, n, "none"), F = O(t.strokeDasharray, l, E, n, "none"), ne = e[r].map(D), I = e[i].map(A), L = e[i].map(j), re = _ && g && k < 0 ? "start" : "end", R = re === "start" ? I : L, ie = re === "start" ? L : I, ae = v?.[E], oe = ne - f / 2 + N + h.inset, se = Math.min(I, L), ce = h.size, le = Math.abs(I - L), ue = `${o}:${z(M)}:${z(T[E])}`, B = Ea(t.radius, l, E, n, "y", R, ie, v !== void 0, ae, I, L, a), de = {
3951
- key: ue,
3885
+ let M = w[E] ?? null, ee = p?.map(M) ?? 0, te = d(u[E]), ne = O(t.fill, l, E, n, te), re = O(t.stroke, l, E, n, "none"), N = O(t.strokeDasharray, l, E, n, "none"), P = e[r].map(D), ie = e[i].map(A), ae = e[i].map(j), F = _ && g && k < 0 ? "start" : "end", I = F === "start" ? ie : ae, oe = F === "start" ? ae : ie, se = v?.[E], ce = P - f / 2 + ee + h.inset, le = Math.min(ie, ae), ue = h.size, de = Math.abs(ie - ae), fe = `${o}:${L(M)}:${L(T[E])}`, pe = Da(t.radius, l, E, n, "y", I, oe, v !== void 0, se, ie, ae, a), me = {
3886
+ key: fe,
3952
3887
  markId: o,
3953
3888
  group: M,
3954
3889
  groupLabel: M == null ? o : String(M),
@@ -3959,35 +3894,35 @@ function wa(e, t = {}) {
3959
3894
  y1Value: A,
3960
3895
  y2Value: j,
3961
3896
  yInterval: "difference",
3962
- x: ne - f / 2 + N + m / 2,
3963
- y: R,
3964
- color: ee
3965
- }, V = {
3897
+ x: P - f / 2 + ee + m / 2,
3898
+ y: I,
3899
+ color: ne
3900
+ }, he = {
3966
3901
  kind: "rect",
3967
- key: ue,
3968
- x: oe,
3969
- y: se,
3970
- width: ce,
3971
- height: le,
3972
- ...B,
3902
+ key: fe,
3903
+ x: ce,
3904
+ y: le,
3905
+ width: ue,
3906
+ height: de,
3907
+ ...pe,
3973
3908
  inset: h.inset,
3974
3909
  insetAxis: "x",
3975
3910
  ...h.maximum === void 0 ? {} : { maxThickness: h.maximum },
3976
3911
  interaction: {
3977
- point: de,
3912
+ point: me,
3978
3913
  affinity: "x"
3979
3914
  },
3980
3915
  style: {
3981
- fill: ee,
3916
+ fill: ne,
3982
3917
  fillOpacity: t.fillOpacity,
3983
- stroke: te,
3918
+ stroke: re,
3984
3919
  strokeOpacity: t.strokeOpacity,
3985
3920
  strokeWidth: t.strokeWidth,
3986
- strokeDasharray: F
3921
+ strokeDasharray: N
3987
3922
  },
3988
- [ha]: { bar: { baseline: ie } }
3923
+ [ga]: { bar: { baseline: oe } }
3989
3924
  };
3990
- C.push(V);
3925
+ C.push(he);
3991
3926
  }), { nodes: [{
3992
3927
  kind: "group",
3993
3928
  key: o,
@@ -3999,15 +3934,15 @@ function wa(e, t = {}) {
3999
3934
  };
4000
3935
  }, t.motion, t.renderer);
4001
3936
  }
4002
- function Ta(e, t, n, r) {
4003
- if (Da(e) && e.stack === "outer") {
3937
+ function Ea(e, t, n, r) {
3938
+ if (Oa(e) && e.stack === "outer") {
4004
3939
  if (t) throw TypeError(`Bar radius stack "outer" requires an implicit ${r} extent`);
4005
3940
  if (n) throw TypeError("Bar radius stack \"outer\" cannot be used with a group layout");
4006
3941
  }
4007
3942
  }
4008
- function Ea(e, t, n, r, i, a, o, s, c, l, u, d) {
4009
- if (e === void 0) return ma(void 0, d);
4010
- if (Da(e)) {
3943
+ function Da(e, t, n, r, i, a, o, s, c, l, u, d) {
3944
+ if (e === void 0) return ha(void 0, d);
3945
+ if (Oa(e)) {
4011
3946
  let d = O(e.end, t, n, r, 0);
4012
3947
  if (a === o) return { cornerRadii: [
4013
3948
  0,
@@ -4029,16 +3964,16 @@ function Ea(e, t, n, r, i, a, o, s, c, l, u, d) {
4029
3964
  d
4030
3965
  ] };
4031
3966
  let e = c.start;
4032
- return { cornerRadii: Oa(d, i, e ? l : u, e ? u : l) };
3967
+ return { cornerRadii: ka(d, i, e ? l : u, e ? u : l) };
4033
3968
  }
4034
- return { cornerRadii: Oa(d, i, a, o) };
3969
+ return { cornerRadii: ka(d, i, a, o) };
4035
3970
  }
4036
- return ma(O(e, t, n, r, 0), d);
3971
+ return ha(O(e, t, n, r, 0), d);
4037
3972
  }
4038
- function Da(e) {
3973
+ function Oa(e) {
4039
3974
  return typeof e == "object" && !!e && !Array.isArray(e);
4040
3975
  }
4041
- function Oa(e, t, n, r) {
3976
+ function ka(e, t, n, r) {
4042
3977
  return t === "y" ? n <= r ? [
4043
3978
  e,
4044
3979
  e,
@@ -4061,7 +3996,7 @@ function Oa(e, t, n, r) {
4061
3996
  0
4062
3997
  ];
4063
3998
  }
4064
- function ka(e, t, n) {
3999
+ function Aa(e, t, n) {
4065
4000
  let r = Math.max(0, t ?? 0), i = Math.max(0, e), a = Math.max(0, i - r * 2), o = Number.isFinite(n), s = o ? Math.max(0, n) : a, c = Math.min(a, s);
4066
4001
  return {
4067
4002
  inset: (i - c) / 2,
@@ -4069,9 +4004,9 @@ function ka(e, t, n) {
4069
4004
  size: c
4070
4005
  };
4071
4006
  }
4072
- function Aa(e, t, n) {
4007
+ function ja(e, t, n) {
4073
4008
  if (!e) return;
4074
- let r = P(e.scale ?? (() => o().padding(Number.isFinite(e.padding) ? Math.max(0, e.padding) : .1)), { values: t });
4009
+ let r = te(e.scale ?? (() => o().padding(Number.isFinite(e.padding) ? Math.max(0, e.padding) : .1)), { values: t });
4075
4010
  r.range([0, n]);
4076
4011
  let i = r.bandwidth?.();
4077
4012
  if (i === void 0) throw TypeError("A grouped bar layout requires a D3 band scale");
@@ -4085,31 +4020,30 @@ function Aa(e, t, n) {
4085
4020
  }
4086
4021
  };
4087
4022
  }
4088
- function ja(e) {
4023
+ function Ma(e) {
4089
4024
  let t = /* @__PURE__ */ new Set();
4090
4025
  for (let n of e) {
4091
4026
  if (!x(n)) continue;
4092
- let e = z(n);
4027
+ let e = L(n);
4093
4028
  if (t.has(e)) return !0;
4094
4029
  t.add(e);
4095
4030
  }
4096
4031
  return !1;
4097
4032
  }
4098
- function Ma(e, t, n, r) {
4033
+ function Na(e, t, n, r) {
4099
4034
  let i = [...new Set(t.filter(x).map(e.map).filter((e) => Number.isFinite(e)))].sort((e, t) => e - t), a = Infinity;
4100
4035
  for (let e = 1; e < i.length; e += 1) a = Math.min(a, i[e] - i[e - 1]);
4101
4036
  return Number.isFinite(a) ? a * .8 : Math.min(48, n / Math.max(2, r + 1) * .8);
4102
4037
  }
4103
- function Na(e, t, n) {
4038
+ function Pa(e, t, n) {
4104
4039
  return typeof t == "number" ? e.map(() => t) : k(e, t, n);
4105
4040
  }
4106
- //#endregion
4107
- //#region src/tanStackCharts.ts
4108
- function Pa(e, t) {
4041
+ // src/tanStackCharts.ts
4042
+ function Fa(e, t) {
4109
4043
  let r = {
4110
4044
  ariaLabel: "Bar chart",
4111
4045
  definition: Mt({
4112
- marks: [wa(Fa(e), {
4046
+ marks: [Ta(Ia(e), {
4113
4047
  color: "seriesName",
4114
4048
  fill: "seriesName",
4115
4049
  layout: y(),
@@ -4126,7 +4060,7 @@ function Pa(e, t) {
4126
4060
  }
4127
4061
  }
4128
4062
  })
4129
- }, i = na(t, r);
4063
+ }, i = ra(t, r);
4130
4064
  function a() {
4131
4065
  let e = t.querySelector("svg");
4132
4066
  if (e == null) throw Error("Failed to create TanStack Charts SVG element.");
@@ -4144,7 +4078,7 @@ function Pa(e, t) {
4144
4078
  }
4145
4079
  };
4146
4080
  }
4147
- function Fa(e) {
4081
+ function Ia(e) {
4148
4082
  let t = [];
4149
4083
  for (let n of e.series) for (let [r, i] of e.categories.entries()) t.push({
4150
4084
  category: i,
@@ -4153,5 +4087,4 @@ function Fa(e) {
4153
4087
  });
4154
4088
  return t;
4155
4089
  }
4156
- //#endregion
4157
- export { Pa as renderTanStackCharts };
4090
+ export { Fa as renderTanStackCharts };