@indxsearch/systm 2.21.1 → 2.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,13 +1,13 @@
1
- import e, { cloneElement as t, isValidElement as n, useCallback as r, useEffect as i, useId as a, useImperativeHandle as o, useLayoutEffect as s, useRef as c, useState as l } from "react";
2
- import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
3
- import { Ai_agent as p, ArrowUp as m, Check as h, Chevron_down as g, Chevron_left as _, Chevron_right as v, Copy as y, Dropdown as b, Minus as x, Plus as S, Search as C, Stop as w, Warning as T, X_or_error as E } from "@indxsearch/pixl";
4
- import { Range as D } from "react-range";
5
- import * as O from "@radix-ui/react-select";
6
- import * as k from "@radix-ui/react-popover";
7
- import * as A from "@radix-ui/react-tooltip";
8
- import * as j from "@radix-ui/react-dialog";
9
- import * as M from "@radix-ui/react-navigation-menu";
10
- var N = {
1
+ import e, { cloneElement as t, isValidElement as n, useCallback as r, useEffect as i, useId as a, useImperativeHandle as o, useLayoutEffect as s, useMemo as c, useRef as l, useState as u } from "react";
2
+ import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
3
+ import { Ai_agent as m, ArrowUp as h, Check as g, Chevron_down as _, Chevron_left as v, Chevron_right as y, Copy as b, Dropdown as x, Minus as S, Plus as C, Search as w, Stop as T, Warning as E, X_or_error as D } from "@indxsearch/pixl";
4
+ import { Range as O } from "react-range";
5
+ import * as k from "@radix-ui/react-select";
6
+ import * as A from "@radix-ui/react-popover";
7
+ import * as j from "@radix-ui/react-tooltip";
8
+ import * as M from "@radix-ui/react-dialog";
9
+ import * as N from "@radix-ui/react-navigation-menu";
10
+ var P = {
11
11
  button: "_button_18zbf_1",
12
12
  micro: "_micro_18zbf_32",
13
13
  default: "_default_18zbf_40",
@@ -15,10 +15,10 @@ var N = {
15
15
  primary: "_primary_18zbf_57",
16
16
  secondary: "_secondary_18zbf_66",
17
17
  ghost: "_ghost_18zbf_76"
18
- }, P = {
18
+ }, F = {
19
19
  spinner: "_spinner_wspyi_1",
20
20
  frame: "_frame_wspyi_8"
21
- }, ee = {
21
+ }, I = {
22
22
  accelerate: {
23
23
  viewBox: "0 0 7 5",
24
24
  delay: 50,
@@ -339,13 +339,13 @@ var N = {
339
339
  "M3 4H4V5H3V4Z M5 3H6V4H5V3Z M6 1H7V2H6V1Z M1 3H2V4H1V3Z M0 1H1V2H0V1Z M2 2H5V3H2V2Z M1 0H6V1H1V0Z"
340
340
  ]
341
341
  }
342
- }, te = Object.keys(ee);
342
+ }, ee = Object.keys(I);
343
343
  //#endregion
344
344
  //#region src/components/Spinner/Spinner.tsx
345
- function F({ name: e = te[0], size: t = 21, color: n = "currentColor", delay: r, className: i = "", "aria-label": a = "Loading" }) {
346
- let o = ee[e], [, , s, c] = o.viewBox.split(" ").map(Number), l = c / s, u = typeof t == "number" ? t * l : `calc(${t} * ${l})`, f = r ?? o.delay, p = o.frames.length, m = p * f;
347
- return /* @__PURE__ */ d("svg", {
348
- className: `${P.spinner} ${i}`,
345
+ function L({ name: e = ee[0], size: t = 21, color: n = "currentColor", delay: r, className: i = "", "aria-label": a = "Loading" }) {
346
+ let o = I[e], [, , s, c] = o.viewBox.split(" ").map(Number), l = c / s, u = typeof t == "number" ? t * l : `calc(${t} * ${l})`, d = r ?? o.delay, p = o.frames.length, m = p * d;
347
+ return /* @__PURE__ */ f("svg", {
348
+ className: `${F.spinner} ${i}`,
349
349
  width: t,
350
350
  height: u,
351
351
  viewBox: o.viewBox,
@@ -353,28 +353,28 @@ function F({ name: e = te[0], size: t = 21, color: n = "currentColor", delay: r,
353
353
  role: "status",
354
354
  "aria-label": a,
355
355
  xmlns: "http://www.w3.org/2000/svg",
356
- children: o.frames.map((e, t) => e ? /* @__PURE__ */ d("path", {
357
- className: P.frame,
356
+ children: o.frames.map((e, t) => e ? /* @__PURE__ */ f("path", {
357
+ className: F.frame,
358
358
  d: e,
359
359
  fill: n,
360
360
  style: {
361
361
  animation: `indx-spinner-${p} ${m}ms step-end infinite`,
362
- animationDelay: `${t * f - m}ms`
362
+ animationDelay: `${t * d - m}ms`
363
363
  }
364
364
  }, t) : null)
365
365
  });
366
366
  }
367
367
  //#endregion
368
368
  //#region src/components/Button/Button.tsx
369
- function I(t) {
370
- let { size: n = "default", variant: r = "primary", iconLeft: i, iconRight: a, className: o, children: s, loading: c = !1, ...l } = t, p = t.disabled || c, { href: m } = l, h = n === "micro" ? "14px" : n === "large" ? "21px" : "14px", g = n === "large" ? 21 : 14, _ = [
371
- N.button,
372
- N[n],
373
- N[r],
374
- p ? "cursor-not-allowed" : "cursor-pointer",
369
+ function R(t) {
370
+ let { size: n = "default", variant: r = "primary", iconLeft: i, iconRight: a, className: o, children: s, loading: c = !1, ...l } = t, u = t.disabled || c, { href: m } = l, h = n === "micro" ? "14px" : n === "large" ? "21px" : "14px", g = n === "large" ? 21 : 14, _ = [
371
+ P.button,
372
+ P[n],
373
+ P[r],
374
+ u ? "cursor-not-allowed" : "cursor-pointer",
375
375
  o
376
- ].filter(Boolean).join(" "), v = /* @__PURE__ */ f(u, { children: [
377
- c ? /* @__PURE__ */ d(F, { size: g }) : i && e.cloneElement(i, {
376
+ ].filter(Boolean).join(" "), v = /* @__PURE__ */ p(d, { children: [
377
+ c ? /* @__PURE__ */ f(L, { size: g }) : i && e.cloneElement(i, {
378
378
  size: h,
379
379
  color: "currentColor"
380
380
  }),
@@ -386,7 +386,7 @@ function I(t) {
386
386
  ] });
387
387
  if (m) {
388
388
  let { type: e, href: t, onClick: n, tabIndex: r, disabled: i, ...a } = l;
389
- return p ? /* @__PURE__ */ d("a", {
389
+ return u ? /* @__PURE__ */ f("a", {
390
390
  className: _,
391
391
  ...a,
392
392
  "aria-disabled": "true",
@@ -396,7 +396,7 @@ function I(t) {
396
396
  e.preventDefault(), e.stopPropagation();
397
397
  },
398
398
  children: v
399
- }) : /* @__PURE__ */ d("a", {
399
+ }) : /* @__PURE__ */ f("a", {
400
400
  className: _,
401
401
  href: m,
402
402
  ...a,
@@ -406,16 +406,16 @@ function I(t) {
406
406
  });
407
407
  }
408
408
  let { type: y = "button", href: b, disabled: x, ...S } = l;
409
- return /* @__PURE__ */ d("button", {
409
+ return /* @__PURE__ */ f("button", {
410
410
  className: _,
411
411
  type: y,
412
- disabled: p,
412
+ disabled: u,
413
413
  "aria-busy": c || void 0,
414
414
  ...S,
415
415
  children: v
416
416
  });
417
417
  }
418
- var L = {
418
+ var te = {
419
419
  checkboxWrapper: "_checkboxWrapper_1vygn_1",
420
420
  checkbox: "_checkbox_1vygn_1",
421
421
  label: "_label_1vygn_44",
@@ -423,49 +423,49 @@ var L = {
423
423
  disabled: "_disabled_1vygn_55"
424
424
  }, ne = ({ label: t, score: n, className: r = "", id: i, "aria-label": a, ...o }) => {
425
425
  let s = e.useId(), c = i || s, l = n ? `${c}-score` : void 0, u = o.disabled;
426
- return t || n ? /* @__PURE__ */ f("label", {
426
+ return t || n ? /* @__PURE__ */ p("label", {
427
427
  htmlFor: c,
428
- className: `${L.checkboxWrapper} ${r} ${u ? L.disabled : ""} ${u ? "cursor-not-allowed" : "cursor-pointer"}`,
428
+ className: `${te.checkboxWrapper} ${r} ${u ? te.disabled : ""} ${u ? "cursor-not-allowed" : "cursor-pointer"}`,
429
429
  children: [
430
- /* @__PURE__ */ d("input", {
430
+ /* @__PURE__ */ f("input", {
431
431
  id: c,
432
432
  type: "checkbox",
433
- className: L.checkbox,
433
+ className: te.checkbox,
434
434
  "aria-describedby": l,
435
435
  "aria-label": a,
436
436
  ...o
437
437
  }),
438
- t && /* @__PURE__ */ d("span", {
439
- className: L.label,
438
+ t && /* @__PURE__ */ f("span", {
439
+ className: te.label,
440
440
  children: t
441
441
  }),
442
- n && /* @__PURE__ */ d("span", {
442
+ n && /* @__PURE__ */ f("span", {
443
443
  id: l,
444
- className: L.score,
444
+ className: te.score,
445
445
  children: n
446
446
  })
447
447
  ]
448
- }) : /* @__PURE__ */ d("input", {
448
+ }) : /* @__PURE__ */ f("input", {
449
449
  id: c,
450
450
  type: "checkbox",
451
- className: `${L.checkbox} ${r}`,
451
+ className: `${te.checkbox} ${r}`,
452
452
  "aria-label": a,
453
453
  disabled: u,
454
454
  ...o
455
455
  });
456
- }, re = {
456
+ }, z = {
457
457
  container: "_container_dlzj1_1",
458
458
  default: "_default_dlzj1_5"
459
459
  };
460
460
  //#endregion
461
461
  //#region src/components/Base/Base.tsx
462
- function ie({ children: e, className: t }) {
463
- return /* @__PURE__ */ d("div", {
464
- className: `${re.container} ${re.default} ${t || ""}`,
462
+ function re({ children: e, className: t }) {
463
+ return /* @__PURE__ */ f("div", {
464
+ className: `${z.container} ${z.default} ${t || ""}`,
465
465
  children: e
466
466
  });
467
467
  }
468
- var R = {
468
+ var B = {
469
469
  container: "_container_10bfq_1",
470
470
  header: "_header_10bfq_11",
471
471
  title: "_title_10bfq_31",
@@ -474,47 +474,47 @@ var R = {
474
474
  };
475
475
  //#endregion
476
476
  //#region src/components/FilterPanelBase/FilterPanelBase.tsx
477
- function ae({ title: t, children: n, className: r = "", collapsible: a = !0, collapsed: o = !1 }) {
478
- let [s, c] = l(() => !o), u = e.useId();
477
+ function V({ title: t, children: n, className: r = "", collapsible: a = !0, collapsed: o = !1 }) {
478
+ let [s, c] = u(() => !o), l = e.useId();
479
479
  return i(() => {
480
480
  a && c(!o);
481
- }, [o, a]), /* @__PURE__ */ f("div", {
482
- className: `${R.container} ${r}`,
483
- children: [t && (a ? /* @__PURE__ */ f("button", {
481
+ }, [o, a]), /* @__PURE__ */ p("div", {
482
+ className: `${B.container} ${r}`,
483
+ children: [t && (a ? /* @__PURE__ */ p("button", {
484
484
  type: "button",
485
- className: R.header,
485
+ className: B.header,
486
486
  onClick: () => {
487
487
  a && c((e) => !e);
488
488
  },
489
489
  "aria-label": `${t}: ${s ? "Collapse panel" : "Expand panel"}`,
490
490
  "aria-expanded": s,
491
- "aria-controls": u,
492
- children: [/* @__PURE__ */ d("div", {
493
- className: R.title,
491
+ "aria-controls": l,
492
+ children: [/* @__PURE__ */ f("div", {
493
+ className: B.title,
494
494
  children: t
495
- }), /* @__PURE__ */ d("span", {
495
+ }), /* @__PURE__ */ f("span", {
496
496
  "aria-hidden": "true",
497
- children: d(s ? x : S, {
497
+ children: f(s ? S : C, {
498
498
  color: "var(--lv5)",
499
499
  size: 14
500
500
  })
501
501
  })]
502
- }) : /* @__PURE__ */ d("div", {
503
- className: R.header,
504
- children: /* @__PURE__ */ d("div", {
505
- className: R.title,
502
+ }) : /* @__PURE__ */ f("div", {
503
+ className: B.header,
504
+ children: /* @__PURE__ */ f("div", {
505
+ className: B.title,
506
506
  children: t
507
507
  })
508
- })), (!a || s) && /* @__PURE__ */ d("div", {
509
- id: u,
510
- className: R.body,
508
+ })), (!a || s) && /* @__PURE__ */ f("div", {
509
+ id: l,
510
+ className: B.body,
511
511
  role: "region",
512
512
  "aria-label": t || "Filter panel content",
513
513
  children: n
514
514
  })]
515
515
  });
516
516
  }
517
- var z = {
517
+ var ie = {
518
518
  wrapper: "_wrapper_nc093_1",
519
519
  label: "_label_nc093_7",
520
520
  inputContainer: "_inputContainer_nc093_12",
@@ -526,17 +526,17 @@ var z = {
526
526
  sizeDefault: "_sizeDefault_nc093_89",
527
527
  error: "_error_nc093_112",
528
528
  errorText: "_errorText_nc093_116"
529
- }, oe = {
529
+ }, ae = {
530
530
  micro: 14,
531
531
  default: 21
532
532
  };
533
- function se({ label: t, error: n, className: r = "", showSearchIcon: i = !0, searchIcon: a, searchIconColor: o, inputSize: u = "default", showFocusBorder: p = !1, clearable: m = !0, children: h, id: g, type: _ = "search", onChange: v, ...y }) {
534
- let b = c(null), x = y.value !== void 0, [S, w] = l(String(y.defaultValue ?? "")), T = x ? String(y.value ?? "") : S, E = m && T.length > 0 && !y.disabled && !y.readOnly, D = (e) => {
535
- x || w(e.target.value), v?.(e);
533
+ function oe({ label: t, error: n, className: r = "", showSearchIcon: i = !0, searchIcon: a, searchIconColor: o, inputSize: c = "default", showFocusBorder: d = !1, clearable: m = !0, children: h, id: g, type: _ = "search", onChange: v, ...y }) {
534
+ let b = l(null), x = y.value !== void 0, [S, C] = u(String(y.defaultValue ?? "")), T = x ? String(y.value ?? "") : S, E = m && T.length > 0 && !y.disabled && !y.readOnly, D = (e) => {
535
+ x || C(e.target.value), v?.(e);
536
536
  }, O = () => {
537
537
  let e = b.current;
538
538
  e && (Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")?.set?.call(e, ""), e.dispatchEvent(new Event("input", { bubbles: !0 })), e.focus());
539
- }, k = c(null), [A, j] = l(0), M = e.Children.toArray(h).length > 0 || E;
539
+ }, k = l(null), [A, j] = u(0), M = e.Children.toArray(h).length > 0 || E;
540
540
  s(() => {
541
541
  let e = k.current;
542
542
  if (!e) {
@@ -548,43 +548,43 @@ function se({ label: t, error: n, className: r = "", showSearchIcon: i = !0, sea
548
548
  let n = new ResizeObserver(t);
549
549
  return n.observe(e), () => n.disconnect();
550
550
  }, [M]);
551
- let N = e.useId(), P = g || N, ee = `${P}-error`, te = oe[u], F = {};
552
- o && (F["--search-icon-color"] = o), A > 0 && (F.paddingRight = `${A + 10}px`);
553
- let L = a ?? /* @__PURE__ */ d(C, {}), ne = u === "micro" ? z.sizeMicro : z.sizeDefault;
554
- return /* @__PURE__ */ f("div", {
555
- className: `${z.wrapper} ${r}`,
551
+ let N = e.useId(), P = g || N, F = `${P}-error`, I = ae[c], ee = {};
552
+ o && (ee["--search-icon-color"] = o), A > 0 && (ee.paddingRight = `${A + 10}px`);
553
+ let L = a ?? /* @__PURE__ */ f(w, {}), te = c === "micro" ? ie.sizeMicro : ie.sizeDefault;
554
+ return /* @__PURE__ */ p("div", {
555
+ className: `${ie.wrapper} ${r}`,
556
556
  children: [
557
- t && /* @__PURE__ */ d("label", {
557
+ t && /* @__PURE__ */ f("label", {
558
558
  htmlFor: P,
559
- className: z.label,
559
+ className: ie.label,
560
560
  children: t
561
561
  }),
562
- /* @__PURE__ */ f("div", {
563
- className: `${z.inputContainer} ${ne}`,
562
+ /* @__PURE__ */ p("div", {
563
+ className: `${ie.inputContainer} ${te}`,
564
564
  children: [
565
- i && /* @__PURE__ */ d("span", {
566
- className: z.searchIcon,
565
+ i && /* @__PURE__ */ f("span", {
566
+ className: ie.searchIcon,
567
567
  "aria-hidden": "true",
568
568
  children: e.cloneElement(L, {
569
- size: te,
569
+ size: I,
570
570
  color: o ?? "var(--search-icon-color)"
571
571
  })
572
572
  }),
573
- /* @__PURE__ */ d("input", {
573
+ /* @__PURE__ */ f("input", {
574
574
  ref: b,
575
575
  id: P,
576
576
  type: _,
577
- className: `${z.input} ${p ? z.focus : ""} ${n ? z.error : ""}`,
578
- style: F,
577
+ className: `${ie.input} ${d ? ie.focus : ""} ${n ? ie.error : ""}`,
578
+ style: ee,
579
579
  "aria-invalid": n ? "true" : "false",
580
- "aria-describedby": n ? ee : void 0,
580
+ "aria-describedby": n ? F : void 0,
581
581
  ...y,
582
582
  onChange: D
583
583
  }),
584
- M && /* @__PURE__ */ f("div", {
584
+ M && /* @__PURE__ */ p("div", {
585
585
  ref: k,
586
- className: z.rightContent,
587
- children: [h, E && /* @__PURE__ */ d(I, {
586
+ className: ie.rightContent,
587
+ children: [h, E && /* @__PURE__ */ f(R, {
588
588
  variant: "ghost",
589
589
  size: "micro",
590
590
  onClick: O,
@@ -594,16 +594,16 @@ function se({ label: t, error: n, className: r = "", showSearchIcon: i = !0, sea
594
594
  })
595
595
  ]
596
596
  }),
597
- n && /* @__PURE__ */ d("span", {
598
- id: ee,
599
- className: z.errorText,
597
+ n && /* @__PURE__ */ f("span", {
598
+ id: F,
599
+ className: ie.errorText,
600
600
  role: "alert",
601
601
  children: n
602
602
  })
603
603
  ]
604
604
  });
605
605
  }
606
- var ce = {
606
+ var se = {
607
607
  wrapper: "_wrapper_roite_1",
608
608
  label: "_label_roite_10",
609
609
  input: "_input_roite_15",
@@ -613,46 +613,46 @@ var ce = {
613
613
  };
614
614
  //#endregion
615
615
  //#region src/components/InputField/InputField.tsx
616
- function le({ label: t, error: n, className: r = "", isValid: i = !0, variant: a = "default", id: o, ...s }) {
617
- let c = e.useId(), l = o || c, u = `${l}-error`, p = n || !i;
618
- return /* @__PURE__ */ f("div", {
619
- className: `${ce.wrapper} ${r}`,
616
+ function ce({ label: t, error: n, className: r = "", isValid: i = !0, variant: a = "default", id: o, ...s }) {
617
+ let c = e.useId(), l = o || c, u = `${l}-error`, d = n || !i;
618
+ return /* @__PURE__ */ p("div", {
619
+ className: `${se.wrapper} ${r}`,
620
620
  children: [
621
- t && /* @__PURE__ */ f("label", {
621
+ t && /* @__PURE__ */ p("label", {
622
622
  htmlFor: l,
623
- className: ce.label,
624
- children: [t, s.required && /* @__PURE__ */ d("span", {
623
+ className: se.label,
624
+ children: [t, s.required && /* @__PURE__ */ f("span", {
625
625
  "aria-label": "required",
626
626
  children: " *"
627
627
  })]
628
628
  }),
629
- /* @__PURE__ */ d("input", {
629
+ /* @__PURE__ */ f("input", {
630
630
  id: l,
631
- className: `${ce.input} ${a === "borderBottom" ? ce.borderBottom : ""} ${p ? ce.error : ""}`,
632
- "aria-invalid": p ? "true" : "false",
631
+ className: `${se.input} ${a === "borderBottom" ? se.borderBottom : ""} ${d ? se.error : ""}`,
632
+ "aria-invalid": d ? "true" : "false",
633
633
  "aria-describedby": n ? u : void 0,
634
634
  ...s
635
635
  }),
636
- n && /* @__PURE__ */ d("span", {
636
+ n && /* @__PURE__ */ f("span", {
637
637
  id: u,
638
- className: ce.errorText,
638
+ className: se.errorText,
639
639
  role: "alert",
640
640
  children: n
641
641
  })
642
642
  ]
643
643
  });
644
644
  }
645
- var ue = {
645
+ var le = {
646
646
  radioWrapper: "_radioWrapper_1faq0_1",
647
647
  radioInput: "_radioInput_1faq0_9",
648
648
  customRadio: "_customRadio_1faq0_23",
649
649
  labelText: "_labelText_1faq0_57",
650
650
  disabled: "_disabled_1faq0_63"
651
- }, de = ({ id: e, name: t, value: n, label: r, checked: i = !1, onChange: a, disabled: o = !1, "aria-label": s }) => /* @__PURE__ */ f("label", {
651
+ }, ue = ({ id: e, name: t, value: n, label: r, checked: i = !1, onChange: a, disabled: o = !1, "aria-label": s }) => /* @__PURE__ */ p("label", {
652
652
  htmlFor: e,
653
- className: `${ue.radioWrapper} ${o ? ue.disabled : ""} ${o ? "cursor-not-allowed" : "cursor-pointer"}`,
653
+ className: `${le.radioWrapper} ${o ? le.disabled : ""} ${o ? "cursor-not-allowed" : "cursor-pointer"}`,
654
654
  children: [
655
- /* @__PURE__ */ d("input", {
655
+ /* @__PURE__ */ f("input", {
656
656
  id: e,
657
657
  type: "radio",
658
658
  name: t,
@@ -661,28 +661,29 @@ var ue = {
661
661
  onChange: a,
662
662
  disabled: o,
663
663
  "aria-label": s,
664
- className: ue.radioInput
664
+ className: le.radioInput
665
665
  }),
666
- /* @__PURE__ */ d("span", { className: ue.customRadio }),
667
- /* @__PURE__ */ d("span", {
668
- className: ue.labelText,
666
+ /* @__PURE__ */ f("span", { className: le.customRadio }),
667
+ /* @__PURE__ */ f("span", {
668
+ className: le.labelText,
669
669
  children: r
670
670
  })
671
671
  ]
672
- }), fe = {
673
- switch: "_switch_1kxu1_1",
674
- slider: "_slider_1kxu1_23",
675
- label: "_label_1kxu1_28",
676
- disabled: "_disabled_1kxu1_43",
677
- positive: "_positive_1kxu1_72"
678
- }, pe = ({ id: t, checked: n, onChange: r, disabled: i = !1, label: a, "aria-label": o, variant: s = "default" }) => {
679
- let c = e.useId(), l = t || c;
680
- return /* @__PURE__ */ f("label", {
681
- htmlFor: l,
682
- className: `${fe.switch} ${s === "positive" ? fe.positive : ""} ${i ? fe.disabled : ""} ${i ? "cursor-not-allowed" : "cursor-pointer"}`,
672
+ }), de = {
673
+ switch: "_switch_1n6yy_1",
674
+ slider: "_slider_1n6yy_23",
675
+ label: "_label_1n6yy_28",
676
+ disabled: "_disabled_1n6yy_43",
677
+ positive: "_positive_1n6yy_72",
678
+ marks: "_marks_1n6yy_85"
679
+ }, fe = ({ id: t, checked: n, onChange: r, disabled: i = !1, label: a, "aria-label": o, variant: s = "default", marks: c = !1 }) => {
680
+ let l = e.useId(), u = t || l;
681
+ return /* @__PURE__ */ p("label", {
682
+ htmlFor: u,
683
+ className: `${de.switch} ${s === "positive" ? de.positive : ""} ${c ? de.marks : ""} ${i ? de.disabled : ""} ${i ? "cursor-not-allowed" : "cursor-pointer"}`,
683
684
  children: [
684
- /* @__PURE__ */ d("input", {
685
- id: l,
685
+ /* @__PURE__ */ f("input", {
686
+ id: u,
686
687
  type: "checkbox",
687
688
  role: "switch",
688
689
  "aria-checked": n,
@@ -691,17 +692,17 @@ var ue = {
691
692
  onChange: (e) => r(e.target.checked),
692
693
  disabled: i
693
694
  }),
694
- /* @__PURE__ */ d("span", {
695
- className: fe.slider,
695
+ /* @__PURE__ */ f("span", {
696
+ className: de.slider,
696
697
  "aria-hidden": "true"
697
698
  }),
698
- a && /* @__PURE__ */ d("span", {
699
- className: fe.label,
699
+ a && /* @__PURE__ */ f("span", {
700
+ className: de.label,
700
701
  children: a
701
702
  })
702
703
  ]
703
704
  });
704
- }, B = {
705
+ }, H = {
705
706
  label: "_label_1o3ls_1",
706
707
  basetrack: "_basetrack_1o3ls_8",
707
708
  selectedtrack: "_selectedtrack_1o3ls_36",
@@ -715,35 +716,35 @@ var ue = {
715
716
  stepmarksInline: "_stepmarksInline_1o3ls_113",
716
717
  stepmarksBelow: "_stepmarksBelow_1o3ls_120",
717
718
  basetrackStepsBelow: "_basetrackStepsBelow_1o3ls_125"
718
- }, me = 50, he = (t) => {
719
- let { min: n, max: r, step: i = 1, disabled: a = !1, className: o, activeMin: s, activeMax: c, isFaceted: l = !1, highlightFaceted: u = !0, stepMarks: p, onChange: m, onFinalChange: h, label: g, "aria-label": _, id: v } = t, y = e.useId(), b = v || y;
720
- if (!(Number.isFinite(n) && Number.isFinite(r) && r > n)) return /* @__PURE__ */ f("div", {
719
+ }, pe = 50, me = (t) => {
720
+ let { min: n, max: r, step: i = 1, disabled: a = !1, className: o, activeMin: s, activeMax: c, isFaceted: l = !1, highlightFaceted: u = !0, stepMarks: d, onChange: m, onFinalChange: h, label: g, "aria-label": _, id: v } = t, y = e.useId(), b = v || y;
721
+ if (!(Number.isFinite(n) && Number.isFinite(r) && r > n)) return /* @__PURE__ */ p("div", {
721
722
  className: o,
722
- children: [g && /* @__PURE__ */ d("span", {
723
- className: B.label,
723
+ children: [g && /* @__PURE__ */ f("span", {
724
+ className: H.label,
724
725
  children: g
725
- }), /* @__PURE__ */ d("div", {
726
- className: `${B.basetrack} ${B.disabled}`,
726
+ }), /* @__PURE__ */ f("div", {
727
+ className: `${H.basetrack} ${H.disabled}`,
727
728
  "aria-hidden": "true"
728
729
  })]
729
730
  });
730
- let x = i > 0 ? Math.round((r - n) / i) : 0, S = !!p && x > 0 && x <= me, C = S && p === "below" ? `${B.basetrack} ${B.basetrackStepsBelow}` : B.basetrack, w = S ? /* @__PURE__ */ d("div", {
731
- className: `${B.stepmarks} ${p === "below" ? B.stepmarksBelow : B.stepmarksInline}`,
731
+ let x = i > 0 ? Math.round((r - n) / i) : 0, S = !!d && x > 0 && x <= pe, C = S && d === "below" ? `${H.basetrack} ${H.basetrackStepsBelow}` : H.basetrack, w = S ? /* @__PURE__ */ f("div", {
732
+ className: `${H.stepmarks} ${d === "below" ? H.stepmarksBelow : H.stepmarksInline}`,
732
733
  "aria-hidden": "true",
733
- children: Array.from({ length: x + 1 }, (e, t) => /* @__PURE__ */ d("span", {
734
- className: B.stepmark,
734
+ children: Array.from({ length: x + 1 }, (e, t) => /* @__PURE__ */ f("span", {
735
+ className: H.stepmark,
735
736
  style: { left: `${Math.min(t * i, r - n) / (r - n) * 100}%` }
736
737
  }, t))
737
738
  }) : null;
738
739
  if ("isRange" in t && t.isRange) {
739
- let e = t.value, [u, p] = e;
740
- return /* @__PURE__ */ f("div", {
740
+ let e = t.value, [u, d] = e;
741
+ return /* @__PURE__ */ p("div", {
741
742
  className: o,
742
- children: [g && /* @__PURE__ */ d("label", {
743
+ children: [g && /* @__PURE__ */ f("label", {
743
744
  htmlFor: b,
744
- className: B.label,
745
+ className: H.label,
745
746
  children: g
746
- }), /* @__PURE__ */ d(D, {
747
+ }), /* @__PURE__ */ f(O, {
747
748
  step: i,
748
749
  min: n,
749
750
  max: r,
@@ -752,22 +753,22 @@ var ue = {
752
753
  onFinalChange: (e) => h?.(e),
753
754
  disabled: a,
754
755
  renderTrack: ({ props: e, children: t }) => {
755
- let { key: i, ...a } = e, o = r - n, m = (u - n) / o * 100, h = (p - u) / o * 100, g = 0, _ = 0, v = typeof s == "number" && typeof c == "number" && c > s && (s > n || c < r);
756
- return v && (g = (s - n) / o * 100, _ = (c - s) / o * 100), /* @__PURE__ */ f("div", {
756
+ let { key: i, ...a } = e, o = r - n, m = (u - n) / o * 100, h = (d - u) / o * 100, g = 0, _ = 0, v = typeof s == "number" && typeof c == "number" && c > s && (s > n || c < r);
757
+ return v && (g = (s - n) / o * 100, _ = (c - s) / o * 100), /* @__PURE__ */ p("div", {
757
758
  ...a,
758
759
  className: C,
759
760
  style: { ...a.style },
760
761
  children: [
761
- !v && /* @__PURE__ */ d("div", {
762
- className: B.selectedtrack,
762
+ !v && /* @__PURE__ */ f("div", {
763
+ className: H.selectedtrack,
763
764
  style: {
764
765
  left: `${m}%`,
765
766
  width: `${h}%`,
766
767
  zIndex: "1"
767
768
  }
768
769
  }),
769
- v && /* @__PURE__ */ d("div", {
770
- className: `${B.livetrack} ${l ? B.livetrackFaceted : B.livetrackDefault}`,
770
+ v && /* @__PURE__ */ f("div", {
771
+ className: `${H.livetrack} ${l ? H.livetrackFaceted : H.livetrackDefault}`,
771
772
  style: {
772
773
  left: `${g}%`,
773
774
  width: `${_}%`,
@@ -780,11 +781,11 @@ var ue = {
780
781
  }, i);
781
782
  },
782
783
  renderThumb: ({ props: e, index: t }) => {
783
- let { key: i, ...o } = e, s = t === 0 ? u : p;
784
- return /* @__PURE__ */ d("div", {
784
+ let { key: i, ...o } = e, s = t === 0 ? u : d;
785
+ return /* @__PURE__ */ f("div", {
785
786
  ...o,
786
787
  id: t === 0 ? b : void 0,
787
- className: `${B.thumbs} ${a ? B.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
788
+ className: `${H.thumbs} ${a ? H.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
788
789
  style: {
789
790
  ...o.style,
790
791
  zIndex: "3"
@@ -799,13 +800,13 @@ var ue = {
799
800
  });
800
801
  } else {
801
802
  let e = t.value;
802
- return /* @__PURE__ */ f("div", {
803
+ return /* @__PURE__ */ p("div", {
803
804
  className: o,
804
- children: [g && /* @__PURE__ */ d("label", {
805
+ children: [g && /* @__PURE__ */ f("label", {
805
806
  htmlFor: b,
806
- className: B.label,
807
+ className: H.label,
807
808
  children: g
808
- }), /* @__PURE__ */ d(D, {
809
+ }), /* @__PURE__ */ f(O, {
809
810
  step: i,
810
811
  min: n,
811
812
  max: r,
@@ -814,22 +815,22 @@ var ue = {
814
815
  onFinalChange: (e) => h?.(e[0]),
815
816
  disabled: a,
816
817
  renderTrack: ({ props: t, children: i }) => {
817
- let { key: a, ...o } = t, u = r - n, p = (e - n) / u * 100, m = 0, h = 0, g = typeof s == "number" && typeof c == "number" && c > s && (s > n || c < r);
818
- return g && (m = (s - n) / u * 100, h = (c - s) / u * 100), /* @__PURE__ */ f("div", {
818
+ let { key: a, ...o } = t, u = r - n, d = (e - n) / u * 100, m = 0, h = 0, g = typeof s == "number" && typeof c == "number" && c > s && (s > n || c < r);
819
+ return g && (m = (s - n) / u * 100, h = (c - s) / u * 100), /* @__PURE__ */ p("div", {
819
820
  ...o,
820
821
  className: C,
821
822
  style: { ...o.style },
822
823
  children: [
823
- !g && /* @__PURE__ */ d("div", {
824
- className: B.selectedtrack,
824
+ !g && /* @__PURE__ */ f("div", {
825
+ className: H.selectedtrack,
825
826
  style: {
826
827
  left: "0%",
827
- width: `${p}%`,
828
+ width: `${d}%`,
828
829
  zIndex: "1"
829
830
  }
830
831
  }),
831
- g && /* @__PURE__ */ d("div", {
832
- className: `${B.livetrack} ${l ? B.livetrackFaceted : B.livetrackDefault}`,
832
+ g && /* @__PURE__ */ f("div", {
833
+ className: `${H.livetrack} ${l ? H.livetrackFaceted : H.livetrackDefault}`,
833
834
  style: {
834
835
  left: `${m}%`,
835
836
  width: `${h}%`,
@@ -843,10 +844,10 @@ var ue = {
843
844
  },
844
845
  renderThumb: ({ props: t }) => {
845
846
  let { key: i, ...o } = t;
846
- return /* @__PURE__ */ d("div", {
847
+ return /* @__PURE__ */ f("div", {
847
848
  ...o,
848
849
  id: b,
849
- className: `${B.thumbs} ${a ? B.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
850
+ className: `${H.thumbs} ${a ? H.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
850
851
  style: {
851
852
  ...o.style,
852
853
  zIndex: "3"
@@ -860,7 +861,253 @@ var ue = {
860
861
  })]
861
862
  });
862
863
  }
863
- }, V = {
864
+ }, U = {
865
+ row: "_row_qu5dp_2",
866
+ default: "_default_qu5dp_34",
867
+ micro: "_micro_qu5dp_40",
868
+ fill: "_fill_qu5dp_49",
869
+ label: "_label_qu5dp_63",
870
+ value: "_value_qu5dp_64",
871
+ stepmarks: "_stepmarks_qu5dp_87",
872
+ stepmark: "_stepmark_qu5dp_87",
873
+ handle: "_handle_qu5dp_106",
874
+ line: "_line_qu5dp_104",
875
+ keyboardFocus: "_keyboardFocus_qu5dp_144",
876
+ disabled: "_disabled_qu5dp_149"
877
+ }, he = 50, ge = 6, _e = 8, ve = ({ min: t, max: n, step: r = 1, value: i, onChange: a, onFinalChange: o, label: s, format: c, showValue: l = !0, stepMarks: u = !1, disabled: d = !1, size: m = "default", className: h, "aria-label": g, id: _ }) => {
878
+ let v = e.useId(), y = _ || v, [b, x] = e.useState(!1), S = Number.isFinite(t) && Number.isFinite(n) && n > t, C = [
879
+ U.row,
880
+ U[m],
881
+ d ? U.disabled : "",
882
+ b ? U.keyboardFocus : "",
883
+ h ?? ""
884
+ ].filter(Boolean).join(" ");
885
+ if (!S) return /* @__PURE__ */ f("div", {
886
+ className: `${C} ${U.disabled}`,
887
+ "aria-hidden": "true",
888
+ children: s && /* @__PURE__ */ f("span", {
889
+ className: U.label,
890
+ children: s
891
+ })
892
+ });
893
+ let w = n - t, T = Math.min(n, Math.max(t, i)), E = (T - t) / w * 100, D = r > 0 ? Math.round(w / r) : 0, k = u && D > 0 && D <= he, A = `max(${_e}px, calc(${E}% - ${ge}px))`;
894
+ return /* @__PURE__ */ f(O, {
895
+ step: r,
896
+ min: t,
897
+ max: n,
898
+ values: [T],
899
+ onChange: (e) => a(e[0]),
900
+ onFinalChange: (e) => o?.(e[0]),
901
+ disabled: d,
902
+ renderTrack: ({ props: e, children: n }) => {
903
+ let { key: i, ...a } = e;
904
+ return /* @__PURE__ */ p("div", {
905
+ ...a,
906
+ className: C,
907
+ style: a.style,
908
+ onMouseDown: (e) => {
909
+ x(!1), a.onMouseDown?.(e);
910
+ },
911
+ onTouchStart: (e) => {
912
+ x(!1), a.onTouchStart?.(e);
913
+ },
914
+ children: [
915
+ /* @__PURE__ */ f("span", {
916
+ className: U.line,
917
+ style: { left: A },
918
+ "aria-hidden": "true"
919
+ }),
920
+ /* @__PURE__ */ p("div", {
921
+ className: U.fill,
922
+ style: { clipPath: `inset(0 ${100 - E}% 0 0)` },
923
+ "aria-hidden": "true",
924
+ children: [
925
+ s && /* @__PURE__ */ f("span", {
926
+ className: U.label,
927
+ children: s
928
+ }),
929
+ l && /* @__PURE__ */ f("span", {
930
+ className: U.value,
931
+ children: c ? c(T) : T
932
+ }),
933
+ /* @__PURE__ */ f("span", {
934
+ className: U.line,
935
+ style: { left: A }
936
+ })
937
+ ]
938
+ }),
939
+ k && /* @__PURE__ */ f("div", {
940
+ className: U.stepmarks,
941
+ "aria-hidden": "true",
942
+ children: Array.from({ length: D }, (e, t) => t * r).filter((e) => e > T - t).map((e) => /* @__PURE__ */ f("span", {
943
+ className: U.stepmark,
944
+ style: { left: `${e / w * 100}%` }
945
+ }, e))
946
+ }),
947
+ s && /* @__PURE__ */ f("label", {
948
+ htmlFor: y,
949
+ className: U.label,
950
+ children: s
951
+ }),
952
+ l && /* @__PURE__ */ f("span", {
953
+ className: U.value,
954
+ children: c ? c(T) : T
955
+ }),
956
+ n
957
+ ]
958
+ }, i);
959
+ },
960
+ renderThumb: ({ props: e }) => {
961
+ let { key: r, ...i } = e;
962
+ return /* @__PURE__ */ f("div", {
963
+ ...i,
964
+ id: y,
965
+ className: U.handle,
966
+ style: {
967
+ ...i.style,
968
+ zIndex: 3
969
+ },
970
+ onKeyDown: (e) => {
971
+ x(!0), i.onKeyDown?.(e);
972
+ },
973
+ onBlur: () => x(!1),
974
+ "aria-label": g || s,
975
+ "aria-valuemin": t,
976
+ "aria-valuemax": n,
977
+ "aria-valuenow": T
978
+ }, r);
979
+ }
980
+ });
981
+ }, ye = {
982
+ row: "_row_110q6_2",
983
+ label: "_label_110q6_9",
984
+ ruler: "_ruler_110q6_19",
985
+ keyboardFocus: "_keyboardFocus_110q6_33",
986
+ ticks: "_ticks_110q6_40",
987
+ handle: "_handle_110q6_59",
988
+ field: "_field_110q6_71",
989
+ disabled: "_disabled_110q6_80"
990
+ }, be = 8, xe = 5, Se = ({ value: t, onChange: n, onFinalChange: r, step: i = 1, min: a, max: o, label: s, labelWidth: c, disabled: l = !1, fieldWidth: u = "70px", className: d, "aria-label": m, id: h }) => {
991
+ let g = e.useId(), _ = h || g, v = e.useMemo(() => {
992
+ let e = String(i), t = e.indexOf(".");
993
+ return t < 0 ? 0 : e.length - t - 1;
994
+ }, [i]), y = e.useCallback((e) => {
995
+ let t = e;
996
+ return typeof a == "number" && (t = Math.max(a, t)), typeof o == "number" && (t = Math.min(o, t)), Number(t.toFixed(v));
997
+ }, [
998
+ a,
999
+ o,
1000
+ v
1001
+ ]), b = e.useRef(null), [x, S] = e.useState(!1), [C, w] = e.useState(!1), T = e.useRef({
1002
+ value: t,
1003
+ onChange: n,
1004
+ onFinalChange: r,
1005
+ clamp: y,
1006
+ step: i
1007
+ });
1008
+ T.current = {
1009
+ value: t,
1010
+ onChange: n,
1011
+ onFinalChange: r,
1012
+ clamp: y,
1013
+ step: i
1014
+ }, e.useEffect(() => () => b.current?.stop(), []);
1015
+ let E = (e) => {
1016
+ if (l || e.button !== 0) return;
1017
+ e.preventDefault(), w(!1), b.current?.stop();
1018
+ let n = e.currentTarget, r = e.pointerId;
1019
+ try {
1020
+ n.setPointerCapture(r);
1021
+ } catch {}
1022
+ let i = (e) => {
1023
+ let t = b.current;
1024
+ if (!t) return;
1025
+ let { value: n, onChange: r, clamp: i, step: a } = T.current, o = Math.round((e.clientX - t.x) / be), s = i(t.value + o * a);
1026
+ o !== 0 && (t.moved = !0), s !== n && r(s);
1027
+ }, a = () => {
1028
+ let e = b.current;
1029
+ b.current = null, window.removeEventListener("pointermove", i), window.removeEventListener("pointerup", a), window.removeEventListener("pointercancel", a), window.removeEventListener("blur", a);
1030
+ try {
1031
+ n.hasPointerCapture(r) && n.releasePointerCapture(r);
1032
+ } catch {}
1033
+ S(!1), e?.moved && T.current.onFinalChange?.(T.current.value);
1034
+ };
1035
+ window.addEventListener("pointermove", i), window.addEventListener("pointerup", a), window.addEventListener("pointercancel", a), window.addEventListener("blur", a), b.current = {
1036
+ x: e.clientX,
1037
+ value: t,
1038
+ moved: !1,
1039
+ stop: a
1040
+ }, S(!0), n.focus();
1041
+ }, D = (e) => {
1042
+ if (l) return;
1043
+ w(!0);
1044
+ let s = e.shiftKey ? 10 : 1, c;
1045
+ e.key === "ArrowRight" || e.key === "ArrowUp" ? c = y(t + i * s) : e.key === "ArrowLeft" || e.key === "ArrowDown" ? c = y(t - i * s) : e.key === "Home" && typeof a == "number" ? c = a : e.key === "End" && typeof o == "number" && (c = o), c !== void 0 && (e.preventDefault(), c !== t && (n(c), r?.(c)));
1046
+ }, [O, k] = e.useState(null), A = () => {
1047
+ if (O === null) return;
1048
+ let e = Number(O.replace(",", "."));
1049
+ if (k(null), O.trim() === "" || !Number.isFinite(e)) return;
1050
+ let i = y(e);
1051
+ i !== t && (n(i), r?.(i));
1052
+ }, j = be * xe, M = -(t / i * be % j), N = (e) => (e - t) / i * be, P = typeof a == "number" ? `max(0px, calc(50% + ${N(a)}px))` : "0px", F = typeof o == "number" ? `max(0px, calc(50% - ${N(o)}px))` : "0px", I = {
1053
+ "--scrub-shift": `${M}px`,
1054
+ "--scrub-tick": `${be}px`,
1055
+ "--scrub-period": `${j}px`,
1056
+ "--scrub-clip": `inset(0 ${F} 0 ${P})`
1057
+ };
1058
+ return /* @__PURE__ */ p("div", {
1059
+ className: [
1060
+ ye.row,
1061
+ l ? ye.disabled : "",
1062
+ d ?? ""
1063
+ ].filter(Boolean).join(" "),
1064
+ children: [
1065
+ s && /* @__PURE__ */ f("label", {
1066
+ htmlFor: _,
1067
+ className: ye.label,
1068
+ style: c ? { width: c } : void 0,
1069
+ children: s
1070
+ }),
1071
+ /* @__PURE__ */ p("div", {
1072
+ className: `${ye.ruler} ${x ? ye.dragging : ""} ${C ? ye.keyboardFocus : ""} ${l ? "cursor-not-allowed" : "cursor-resize-ew"}`,
1073
+ style: I,
1074
+ role: "slider",
1075
+ tabIndex: l ? -1 : 0,
1076
+ "aria-label": m || s,
1077
+ "aria-valuenow": t,
1078
+ "aria-valuemin": a,
1079
+ "aria-valuemax": o,
1080
+ "aria-disabled": l || void 0,
1081
+ onPointerDown: E,
1082
+ onKeyDown: D,
1083
+ onBlur: () => w(!1),
1084
+ children: [/* @__PURE__ */ f("div", {
1085
+ className: ye.ticks,
1086
+ "aria-hidden": "true"
1087
+ }), /* @__PURE__ */ f("div", {
1088
+ className: ye.handle,
1089
+ "aria-hidden": "true"
1090
+ })]
1091
+ }),
1092
+ /* @__PURE__ */ f(ce, {
1093
+ id: _,
1094
+ className: ye.field,
1095
+ style: { width: u },
1096
+ type: "text",
1097
+ inputMode: "decimal",
1098
+ "aria-label": s ? `${s}, value` : m,
1099
+ value: O ?? String(t),
1100
+ disabled: l,
1101
+ onFocus: () => k(String(t)),
1102
+ onChange: (e) => k(e.target.value),
1103
+ onBlur: A,
1104
+ onKeyDown: (e) => {
1105
+ e.key === "Enter" && e.currentTarget.blur(), e.key === "Escape" && k(null);
1106
+ }
1107
+ })
1108
+ ]
1109
+ });
1110
+ }, W = {
864
1111
  wrapper: "_wrapper_y1e72_1",
865
1112
  label: "_label_y1e72_7",
866
1113
  trigger: "_trigger_y1e72_12",
@@ -875,58 +1122,58 @@ var ue = {
875
1122
  viewport: "_viewport_y1e72_107",
876
1123
  item: "_item_y1e72_113",
877
1124
  itemIndicator: "_itemIndicator_y1e72_136"
878
- }, ge = ({ value: t, onValueChange: n, options: r, placeholder: i = "Select...", className: a = "", disabled: o = !1, label: s, size: c = "default", variant: l = "default", "aria-label": u, id: p }) => {
879
- let m = e.useId(), _ = p || m, v = `${_}-label`, y = r.find((e) => e.value === t), b = /* @__PURE__ */ f(O.Root, {
1125
+ }, Ce = ({ value: t, onValueChange: n, options: r, placeholder: i = "Select...", className: a = "", disabled: o = !1, label: s, size: c = "default", variant: l = "default", "aria-label": u, id: d }) => {
1126
+ let m = e.useId(), h = d || m, v = `${h}-label`, y = r.find((e) => e.value === t), b = /* @__PURE__ */ p(k.Root, {
880
1127
  value: t,
881
1128
  onValueChange: n,
882
1129
  disabled: o,
883
- children: [/* @__PURE__ */ f(O.Trigger, {
884
- id: _,
885
- className: `${V.trigger} ${V[c]} ${l === "ghost" ? V.ghost : ""} ${a} cursor-pointer`,
1130
+ children: [/* @__PURE__ */ p(k.Trigger, {
1131
+ id: h,
1132
+ className: `${W.trigger} ${W[c]} ${l === "ghost" ? W.ghost : ""} ${a} cursor-pointer`,
886
1133
  ...s ? { "aria-labelledby": v } : u ? { "aria-label": u } : {},
887
- children: [/* @__PURE__ */ f("span", {
1134
+ children: [/* @__PURE__ */ p("span", {
888
1135
  style: {
889
1136
  display: "inline-flex",
890
1137
  alignItems: "center",
891
1138
  gap: 6
892
1139
  },
893
- children: [y?.icon, l === "ghost" ? /* @__PURE__ */ f("span", {
894
- className: V.sizer,
895
- children: [r.filter((e) => e.value !== t).map((e) => /* @__PURE__ */ d("span", {
896
- className: V.sizerHidden,
1140
+ children: [y?.icon, l === "ghost" ? /* @__PURE__ */ p("span", {
1141
+ className: W.sizer,
1142
+ children: [r.filter((e) => e.value !== t).map((e) => /* @__PURE__ */ f("span", {
1143
+ className: W.sizerHidden,
897
1144
  "aria-hidden": "true",
898
1145
  children: e.label
899
- }, e.value)), /* @__PURE__ */ d("span", { children: /* @__PURE__ */ d(O.Value, { placeholder: i }) })]
900
- }) : /* @__PURE__ */ d(O.Value, { placeholder: i })]
901
- }), /* @__PURE__ */ d(O.Icon, {
902
- className: V.icon,
1146
+ }, e.value)), /* @__PURE__ */ f("span", { children: /* @__PURE__ */ f(k.Value, { placeholder: i }) })]
1147
+ }) : /* @__PURE__ */ f(k.Value, { placeholder: i })]
1148
+ }), /* @__PURE__ */ f(k.Icon, {
1149
+ className: W.icon,
903
1150
  "aria-hidden": "true",
904
- children: /* @__PURE__ */ d(g, {
1151
+ children: /* @__PURE__ */ f(_, {
905
1152
  size: c === "large" ? 21 : 14,
906
1153
  color: "currentColor"
907
1154
  })
908
1155
  })]
909
- }), /* @__PURE__ */ d(O.Portal, { children: /* @__PURE__ */ d(O.Content, {
910
- className: V.content,
1156
+ }), /* @__PURE__ */ f(k.Portal, { children: /* @__PURE__ */ f(k.Content, {
1157
+ className: W.content,
911
1158
  position: "popper",
912
1159
  side: "bottom",
913
1160
  align: "start",
914
1161
  sideOffset: 4,
915
- children: /* @__PURE__ */ d(O.Viewport, {
916
- className: V.viewport,
917
- children: r.map((e) => /* @__PURE__ */ f(O.Item, {
1162
+ children: /* @__PURE__ */ f(k.Viewport, {
1163
+ className: W.viewport,
1164
+ children: r.map((e) => /* @__PURE__ */ p(k.Item, {
918
1165
  value: e.value,
919
- className: V.item,
920
- children: [/* @__PURE__ */ f("span", {
1166
+ className: W.item,
1167
+ children: [/* @__PURE__ */ p("span", {
921
1168
  style: {
922
1169
  display: "inline-flex",
923
1170
  alignItems: "center",
924
1171
  gap: 6
925
1172
  },
926
- children: [e.icon, /* @__PURE__ */ d(O.ItemText, { children: e.label })]
927
- }), /* @__PURE__ */ d(O.ItemIndicator, {
928
- className: V.itemIndicator,
929
- children: /* @__PURE__ */ d(h, {
1173
+ children: [e.icon, /* @__PURE__ */ f(k.ItemText, { children: e.label })]
1174
+ }), /* @__PURE__ */ f(k.ItemIndicator, {
1175
+ className: W.itemIndicator,
1176
+ children: /* @__PURE__ */ f(g, {
930
1177
  size: 14,
931
1178
  color: "currentColor"
932
1179
  })
@@ -935,23 +1182,23 @@ var ue = {
935
1182
  })
936
1183
  }) })]
937
1184
  });
938
- return s ? /* @__PURE__ */ f("div", {
939
- className: V.wrapper,
940
- children: [/* @__PURE__ */ d("label", {
1185
+ return s ? /* @__PURE__ */ p("div", {
1186
+ className: W.wrapper,
1187
+ children: [/* @__PURE__ */ f("label", {
941
1188
  id: v,
942
- htmlFor: _,
943
- className: V.label,
1189
+ htmlFor: h,
1190
+ className: W.label,
944
1191
  children: s
945
1192
  }), b]
946
1193
  }) : b;
947
- }, _e = { content: "_content_1qahr_1" }, ve = ({ trigger: e, children: t, open: n, onOpenChange: r, align: i = "end", side: a = "bottom", sideOffset: o = 5, className: s = "", "aria-label": c, "aria-describedby": l }) => /* @__PURE__ */ f(k.Root, {
1194
+ }, we = { content: "_content_1qahr_1" }, Te = ({ trigger: e, children: t, open: n, onOpenChange: r, align: i = "end", side: a = "bottom", sideOffset: o = 5, className: s = "", "aria-label": c, "aria-describedby": l }) => /* @__PURE__ */ p(A.Root, {
948
1195
  open: n,
949
1196
  onOpenChange: r,
950
- children: [/* @__PURE__ */ d(k.Trigger, {
1197
+ children: [/* @__PURE__ */ f(A.Trigger, {
951
1198
  asChild: !0,
952
1199
  children: e
953
- }), /* @__PURE__ */ d(k.Portal, { children: /* @__PURE__ */ d(k.Content, {
954
- className: `${_e.content} ${s}`,
1200
+ }), /* @__PURE__ */ f(A.Portal, { children: /* @__PURE__ */ f(A.Content, {
1201
+ className: `${we.content} ${s}`,
955
1202
  align: i,
956
1203
  side: a,
957
1204
  sideOffset: o,
@@ -959,7 +1206,7 @@ var ue = {
959
1206
  "aria-describedby": l,
960
1207
  children: t
961
1208
  }) })]
962
- }), H = {
1209
+ }), Ee = {
963
1210
  table: "_table_j6zqj_1",
964
1211
  caption: "_caption_j6zqj_8",
965
1212
  headerRow: "_headerRow_j6zqj_25",
@@ -975,17 +1222,17 @@ var ue = {
975
1222
  };
976
1223
  //#endregion
977
1224
  //#region src/components/Table/Table.tsx
978
- function ye({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stickyFirstColumn: i = !1, bleedEnd: a }) {
979
- let o = /* @__PURE__ */ f("table", {
980
- className: `${H.table} ${r && i ? H.stickyFirst : ""}`,
1225
+ function De({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stickyFirstColumn: i = !1, bleedEnd: a }) {
1226
+ let o = /* @__PURE__ */ p("table", {
1227
+ className: `${Ee.table} ${r && i ? Ee.stickyFirst : ""}`,
981
1228
  "aria-label": n,
982
- children: [t && /* @__PURE__ */ d("caption", {
983
- className: H.caption,
1229
+ children: [t && /* @__PURE__ */ f("caption", {
1230
+ className: Ee.caption,
984
1231
  children: t
985
1232
  }), e]
986
1233
  });
987
- return r ? /* @__PURE__ */ d("div", {
988
- className: `${H.scroll} ${a === void 0 ? "" : H.bleedEnd}`,
1234
+ return r ? /* @__PURE__ */ f("div", {
1235
+ className: `${Ee.scroll} ${a === void 0 ? "" : Ee.bleedEnd}`,
989
1236
  style: a === void 0 ? void 0 : { "--table-bleed": typeof a == "number" ? `${a}px` : a },
990
1237
  role: "region",
991
1238
  "aria-label": n ?? t,
@@ -995,62 +1242,62 @@ function ye({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stic
995
1242
  }
996
1243
  //#endregion
997
1244
  //#region src/components/Table/TableHeader.tsx
998
- function be({ children: t }) {
999
- let n = e.Children.map(t, (t) => e.isValidElement(t) && t.type === "td" ? /* @__PURE__ */ d("th", {
1245
+ function Oe({ children: t }) {
1246
+ let n = e.Children.map(t, (t) => e.isValidElement(t) && t.type === "td" ? /* @__PURE__ */ f("th", {
1000
1247
  scope: "col",
1001
1248
  ...t.props
1002
1249
  }) : t);
1003
- return /* @__PURE__ */ d("thead", { children: /* @__PURE__ */ d("tr", {
1004
- className: H.headerRow,
1250
+ return /* @__PURE__ */ f("thead", { children: /* @__PURE__ */ f("tr", {
1251
+ className: Ee.headerRow,
1005
1252
  children: n
1006
1253
  }) });
1007
1254
  }
1008
1255
  //#endregion
1009
1256
  //#region src/components/Table/TableRow.tsx
1010
- function xe({ children: e }) {
1011
- return /* @__PURE__ */ d("tr", {
1012
- className: H.dataRow,
1257
+ function ke({ children: e }) {
1258
+ return /* @__PURE__ */ f("tr", {
1259
+ className: Ee.dataRow,
1013
1260
  children: e
1014
1261
  });
1015
1262
  }
1016
1263
  //#endregion
1017
1264
  //#region src/components/Table/TableCell.tsx
1018
- function Se({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
1265
+ function Ae({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
1019
1266
  let a = n ? "th" : "td", o = {
1020
1267
  ...n && r ? { scope: r } : {},
1021
1268
  ...i ? { colSpan: i } : {}
1022
1269
  };
1023
- return e || t ? /* @__PURE__ */ d(a, {
1270
+ return e || t ? /* @__PURE__ */ f(a, {
1024
1271
  ...o,
1025
- children: /* @__PURE__ */ f("div", {
1026
- className: H.cellInner,
1027
- children: [e && /* @__PURE__ */ d("span", {
1028
- className: H.cellLabel,
1272
+ children: /* @__PURE__ */ p("div", {
1273
+ className: Ee.cellInner,
1274
+ children: [e && /* @__PURE__ */ f("span", {
1275
+ className: Ee.cellLabel,
1029
1276
  children: e
1030
- }), t && /* @__PURE__ */ d("div", {
1031
- className: H.cellContent,
1277
+ }), t && /* @__PURE__ */ f("div", {
1278
+ className: Ee.cellContent,
1032
1279
  children: t
1033
1280
  })]
1034
1281
  })
1035
- }) : /* @__PURE__ */ d(a, {
1282
+ }) : /* @__PURE__ */ f(a, {
1036
1283
  ...o,
1037
1284
  children: t
1038
1285
  });
1039
1286
  }
1040
1287
  //#endregion
1041
1288
  //#region src/components/Table/TableValue.tsx
1042
- function Ce({ children: e }) {
1043
- return /* @__PURE__ */ d("span", {
1044
- className: H.value,
1289
+ function je({ children: e }) {
1290
+ return /* @__PURE__ */ f("span", {
1291
+ className: Ee.value,
1045
1292
  children: e
1046
1293
  });
1047
1294
  }
1048
1295
  //#endregion
1049
1296
  //#region src/components/Table/TableIcon.tsx
1050
- function we({ children: t, "aria-label": n }) {
1297
+ function Me({ children: t, "aria-label": n }) {
1051
1298
  let r = !n;
1052
- return /* @__PURE__ */ d("span", {
1053
- className: H.icon,
1299
+ return /* @__PURE__ */ f("span", {
1300
+ className: Ee.icon,
1054
1301
  "aria-hidden": r ? "true" : void 0,
1055
1302
  "aria-label": n,
1056
1303
  children: e.cloneElement(t, {
@@ -1059,7 +1306,7 @@ function we({ children: t, "aria-label": n }) {
1059
1306
  })
1060
1307
  });
1061
1308
  }
1062
- var U = {
1309
+ var Ne = {
1063
1310
  tabs: "_tabs_q9gjb_1",
1064
1311
  scrollable: "_scrollable_q9gjb_16",
1065
1312
  tab: "_tab_q9gjb_1",
@@ -1075,23 +1322,23 @@ var U = {
1075
1322
  };
1076
1323
  //#endregion
1077
1324
  //#region src/components/Tabs/Tabs.tsx
1078
- function Te(e, t) {
1325
+ function Pe(e, t) {
1079
1326
  if (!e || !t) return;
1080
1327
  let n = parseFloat(getComputedStyle(e).paddingInlineStart) || 32, r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
1081
1328
  i.left < r.left + n ? e.scrollLeft -= r.left + n - i.left : i.right > r.right - n && (e.scrollLeft += i.right - (r.right - n));
1082
1329
  }
1083
- var Ee = {
1330
+ var Fe = {
1084
1331
  micro: 14,
1085
1332
  default: 14,
1086
1333
  large: 21
1087
1334
  };
1088
- function De({ items: e, value: r, onValueChange: o, size: s = "default", variant: l = "underline", scrollable: p = !1, bleed: m, getPanelId: h, "aria-label": g, renderLink: _ }) {
1089
- let v = c(null), y = c(/* @__PURE__ */ new Map()), b = a(), x = Math.max(e.findIndex((e) => e.value === r), 0), S = e.some((e) => e.href !== void 0), C = (t) => {
1335
+ function Ie({ items: e, value: r, onValueChange: o, size: s = "default", variant: c = "underline", scrollable: u = !1, bleed: m, getPanelId: h, "aria-label": g, renderLink: _ }) {
1336
+ let v = l(null), y = l(/* @__PURE__ */ new Map()), b = a(), x = Math.max(e.findIndex((e) => e.value === r), 0), S = e.some((e) => e.href !== void 0), C = (t) => {
1090
1337
  let n = e[t];
1091
1338
  if (!n) return;
1092
1339
  o(n.value);
1093
1340
  let r = y.current.get(n.value);
1094
- r?.focus({ preventScroll: !0 }), p && Te(v.current, r);
1341
+ r?.focus({ preventScroll: !0 }), u && Pe(v.current, r);
1095
1342
  }, w = (t, n) => {
1096
1343
  for (let r = 1; r <= e.length; r++) {
1097
1344
  let i = (t + n * r + e.length * r) % e.length;
@@ -1119,7 +1366,7 @@ function De({ items: e, value: r, onValueChange: o, size: s = "default", variant
1119
1366
  };
1120
1367
  return i(() => {
1121
1368
  let e = v.current;
1122
- if (!p || !e) return;
1369
+ if (!u || !e) return;
1123
1370
  if (m !== void 0) {
1124
1371
  e.style.removeProperty("--tabs-fade-start"), e.style.removeProperty("--tabs-fade-end");
1125
1372
  return;
@@ -1134,31 +1381,31 @@ function De({ items: e, value: r, onValueChange: o, size: s = "default", variant
1134
1381
  e.removeEventListener("scroll", t), n.disconnect();
1135
1382
  };
1136
1383
  }, [
1137
- p,
1384
+ u,
1138
1385
  m,
1139
1386
  e.length
1140
1387
  ]), i(() => {
1141
- p && Te(v.current, y.current.get(r));
1142
- }, [p, r]), /* @__PURE__ */ d("div", {
1388
+ u && Pe(v.current, y.current.get(r));
1389
+ }, [u, r]), /* @__PURE__ */ f("div", {
1143
1390
  ref: v,
1144
- className: `${U.tabs} ${l === "button" ? U.buttonVariant : ""} ${p ? U.scrollable : ""} ${p && m !== void 0 ? U.bleed : ""}`,
1145
- style: p && m !== void 0 ? { "--tabs-bleed": typeof m == "number" ? `${m}px` : m } : void 0,
1391
+ className: `${Ne.tabs} ${c === "button" ? Ne.buttonVariant : ""} ${u ? Ne.scrollable : ""} ${u && m !== void 0 ? Ne.bleed : ""}`,
1392
+ style: u && m !== void 0 ? { "--tabs-bleed": typeof m == "number" ? `${m}px` : m } : void 0,
1146
1393
  role: S ? "navigation" : "tablist",
1147
1394
  "aria-label": g,
1148
1395
  children: e.map((e, r) => {
1149
- let i = r === x, a = /* @__PURE__ */ f(u, { children: [
1150
- e.icon ? /* @__PURE__ */ d("span", {
1151
- className: U.icon,
1396
+ let i = r === x, a = /* @__PURE__ */ p(d, { children: [
1397
+ e.icon ? /* @__PURE__ */ f("span", {
1398
+ className: Ne.icon,
1152
1399
  "aria-hidden": "true",
1153
- children: n(e.icon) && e.icon.props.size === void 0 ? t(e.icon, { size: Ee[s] }) : e.icon
1400
+ children: n(e.icon) && e.icon.props.size === void 0 ? t(e.icon, { size: Fe[s] }) : e.icon
1154
1401
  }) : null,
1155
1402
  e.label,
1156
- e.badge != null && e.badge !== !1 ? /* @__PURE__ */ d("span", {
1157
- className: e.badgeTone === "info" ? `${U.badge} ${U.badgeInfo}` : U.badge,
1403
+ e.badge != null && e.badge !== !1 ? /* @__PURE__ */ f("span", {
1404
+ className: e.badgeTone === "info" ? `${Ne.badge} ${Ne.badgeInfo}` : Ne.badge,
1158
1405
  title: e.badgeTitle,
1159
1406
  children: e.badge
1160
1407
  }) : null
1161
- ] }), c = `${U.tab} ${U[s]} ${i ? U.active : ""}`;
1408
+ ] }), c = `${Ne.tab} ${Ne[s]} ${i ? Ne.active : ""}`;
1162
1409
  if (e.href !== void 0) {
1163
1410
  let t = {
1164
1411
  id: `${b}-tab-${e.value}`,
@@ -1169,16 +1416,16 @@ function De({ items: e, value: r, onValueChange: o, size: s = "default", variant
1169
1416
  title: e.title,
1170
1417
  children: a
1171
1418
  };
1172
- return /* @__PURE__ */ d("span", {
1419
+ return /* @__PURE__ */ f("span", {
1173
1420
  style: { display: "contents" },
1174
1421
  ref: (t) => {
1175
1422
  let n = t?.firstElementChild;
1176
1423
  n ? y.current.set(e.value, n) : y.current.delete(e.value);
1177
1424
  },
1178
- children: _ ? _(e, t) : /* @__PURE__ */ d("a", { ...t })
1425
+ children: _ ? _(e, t) : /* @__PURE__ */ f("a", { ...t })
1179
1426
  }, e.value);
1180
1427
  }
1181
- return /* @__PURE__ */ d("button", {
1428
+ return /* @__PURE__ */ f("button", {
1182
1429
  ref: (t) => {
1183
1430
  t ? y.current.set(e.value, t) : y.current.delete(e.value);
1184
1431
  },
@@ -1200,7 +1447,70 @@ function De({ items: e, value: r, onValueChange: o, size: s = "default", variant
1200
1447
  })
1201
1448
  });
1202
1449
  }
1203
- var W = {
1450
+ var Le = {
1451
+ control: "_control_8m56y_4",
1452
+ stretch: "_stretch_8m56y_13",
1453
+ cell: "_cell_8m56y_17",
1454
+ active: "_active_8m56y_39",
1455
+ disabled: "_disabled_8m56y_60",
1456
+ icon: "_icon_8m56y_64",
1457
+ badge: "_badge_8m56y_71",
1458
+ badgeInfo: "_badgeInfo_8m56y_82",
1459
+ micro: "_micro_8m56y_87",
1460
+ iconOnly: "_iconOnly_8m56y_92",
1461
+ default: "_default_8m56y_96"
1462
+ };
1463
+ //#endregion
1464
+ //#region src/components/SegmentedControl/SegmentedControl.tsx
1465
+ function Re({ items: e, value: t, onChange: n, size: r = "micro", stretch: i = !1, disabled: a = !1, "aria-label": o, className: s = "" }) {
1466
+ let c = l([]), u = (t, r) => {
1467
+ let i = t.key === "ArrowRight" || t.key === "ArrowDown" ? 1 : t.key === "ArrowLeft" || t.key === "ArrowUp" ? -1 : 0, a = -1;
1468
+ if (i) for (let t = 1; t <= e.length; t++) {
1469
+ let n = (r + i * t + e.length) % e.length;
1470
+ if (!e[n].disabled) {
1471
+ a = n;
1472
+ break;
1473
+ }
1474
+ }
1475
+ else t.key === "Home" ? a = e.findIndex((e) => !e.disabled) : t.key === "End" && (a = e.length - 1 - [...e].reverse().findIndex((e) => !e.disabled));
1476
+ a < 0 || a === r || (t.preventDefault(), c.current[a]?.focus(), n(e[a].value));
1477
+ };
1478
+ return /* @__PURE__ */ f("div", {
1479
+ className: `${Le.control} ${Le[r]} ${i ? Le.stretch : ""} ${a ? Le.disabled : ""} ${s}`,
1480
+ role: "radiogroup",
1481
+ "aria-label": o,
1482
+ children: e.map((e, r) => {
1483
+ let i = e.value === t, o = a || e.disabled;
1484
+ return /* @__PURE__ */ p("button", {
1485
+ ref: (e) => {
1486
+ c.current[r] = e;
1487
+ },
1488
+ type: "button",
1489
+ role: "radio",
1490
+ "aria-checked": i,
1491
+ "aria-label": e["aria-label"],
1492
+ className: `${Le.cell} ${i ? Le.active : ""} ${e.icon && !e.label ? Le.iconOnly : ""}`,
1493
+ tabIndex: i ? 0 : -1,
1494
+ disabled: o,
1495
+ onClick: () => !o && n(e.value),
1496
+ onKeyDown: (e) => u(e, r),
1497
+ children: [
1498
+ e.icon && /* @__PURE__ */ f("span", {
1499
+ className: Le.icon,
1500
+ "aria-hidden": "true",
1501
+ children: e.icon
1502
+ }),
1503
+ e.label,
1504
+ e.badge != null && e.badge !== !1 && /* @__PURE__ */ f("span", {
1505
+ className: e.badgeTone === "info" ? `${Le.badge} ${Le.badgeInfo}` : Le.badge,
1506
+ children: e.badge
1507
+ })
1508
+ ]
1509
+ }, e.value);
1510
+ })
1511
+ });
1512
+ }
1513
+ var G = {
1204
1514
  root: "_root_wrjxq_1",
1205
1515
  micro: "_micro_wrjxq_2",
1206
1516
  default: "_default_wrjxq_3",
@@ -1220,112 +1530,112 @@ var W = {
1220
1530
  };
1221
1531
  //#endregion
1222
1532
  //#region src/components/Breadcrumbs/Breadcrumbs.tsx
1223
- function Oe(t) {
1533
+ function ze(t) {
1224
1534
  return e.isValidElement(t) ? e.cloneElement(t, {
1225
1535
  size: "14px",
1226
1536
  color: "currentColor"
1227
1537
  }) : t;
1228
1538
  }
1229
- var ke = "\0action", Ae = ({ items: e, size: t = "default", overflow: n = "wrap", className: r = "", separator: i = /* @__PURE__ */ d(v, {
1539
+ var Be = "\0action", Ve = ({ items: e, size: t = "default", overflow: n = "wrap", className: r = "", separator: i = /* @__PURE__ */ f(y, {
1230
1540
  size: 14,
1231
1541
  color: "currentColor"
1232
- }), renderLink: a, "aria-label": o = "Breadcrumb" }) => /* @__PURE__ */ d("nav", {
1542
+ }), renderLink: a, "aria-label": o = "Breadcrumb" }) => /* @__PURE__ */ f("nav", {
1233
1543
  "aria-label": o,
1234
- className: `${W.root} ${W[t]} ${n === "truncate" ? W.truncate : ""} ${r}`,
1235
- children: /* @__PURE__ */ d("ol", {
1236
- className: W.list,
1237
- children: e.map((t, r) => /* @__PURE__ */ f("li", {
1238
- className: W.item,
1239
- children: [r > 0 && /* @__PURE__ */ d("span", {
1240
- className: W.separator,
1544
+ className: `${G.root} ${G[t]} ${n === "truncate" ? G.truncate : ""} ${r}`,
1545
+ children: /* @__PURE__ */ f("ol", {
1546
+ className: G.list,
1547
+ children: e.map((t, r) => /* @__PURE__ */ p("li", {
1548
+ className: G.item,
1549
+ children: [r > 0 && /* @__PURE__ */ f("span", {
1550
+ className: G.separator,
1241
1551
  "aria-hidden": "true",
1242
1552
  children: i
1243
- }), /* @__PURE__ */ f("div", {
1244
- className: `${W.step} ${t.switcher ? W.switchable : ""}`,
1553
+ }), /* @__PURE__ */ p("div", {
1554
+ className: `${G.step} ${t.switcher ? G.switchable : ""}`,
1245
1555
  children: [t.href ? (() => {
1246
1556
  let i = {
1247
- className: W.label,
1557
+ className: G.label,
1248
1558
  href: t.href,
1249
1559
  title: n === "truncate" ? t.label : void 0,
1250
1560
  onClick: t.onClick,
1251
1561
  "aria-current": r === e.length - 1 ? "page" : void 0,
1252
- children: /* @__PURE__ */ f(u, { children: [t.icon && /* @__PURE__ */ d("span", {
1253
- className: W.icon,
1562
+ children: /* @__PURE__ */ p(d, { children: [t.icon && /* @__PURE__ */ f("span", {
1563
+ className: G.icon,
1254
1564
  "aria-hidden": "true",
1255
- children: Oe(t.icon)
1256
- }), /* @__PURE__ */ d("span", {
1257
- className: W.text,
1565
+ children: ze(t.icon)
1566
+ }), /* @__PURE__ */ f("span", {
1567
+ className: G.text,
1258
1568
  children: t.label
1259
1569
  })] })
1260
1570
  };
1261
- return a ? a(t, i) : /* @__PURE__ */ d("a", { ...i });
1262
- })() : /* @__PURE__ */ f("span", {
1263
- className: W.label,
1571
+ return a ? a(t, i) : /* @__PURE__ */ f("a", { ...i });
1572
+ })() : /* @__PURE__ */ p("span", {
1573
+ className: G.label,
1264
1574
  title: n === "truncate" ? t.label : void 0,
1265
1575
  "aria-current": r === e.length - 1 ? "page" : void 0,
1266
- children: [t.icon && /* @__PURE__ */ d("span", {
1267
- className: W.icon,
1576
+ children: [t.icon && /* @__PURE__ */ f("span", {
1577
+ className: G.icon,
1268
1578
  "aria-hidden": "true",
1269
- children: Oe(t.icon)
1270
- }), /* @__PURE__ */ d("span", {
1271
- className: W.text,
1579
+ children: ze(t.icon)
1580
+ }), /* @__PURE__ */ f("span", {
1581
+ className: G.text,
1272
1582
  children: t.label
1273
1583
  })]
1274
- }), t.switcher && /* @__PURE__ */ f(O.Root, {
1584
+ }), t.switcher && /* @__PURE__ */ p(k.Root, {
1275
1585
  value: t.switcher.value,
1276
- onValueChange: (e) => e === ke ? t.switcher.action?.onSelect() : t.switcher.onValueChange(e),
1586
+ onValueChange: (e) => e === Be ? t.switcher.action?.onSelect() : t.switcher.onValueChange(e),
1277
1587
  disabled: t.switcher.disabled || t.switcher.options.length === 0 && !t.switcher.action,
1278
- children: [/* @__PURE__ */ d(O.Trigger, {
1279
- className: W.trigger,
1588
+ children: [/* @__PURE__ */ f(k.Trigger, {
1589
+ className: G.trigger,
1280
1590
  "aria-label": `${t.switcher.label}: ${t.label}`,
1281
- children: /* @__PURE__ */ d(O.Icon, {
1591
+ children: /* @__PURE__ */ f(k.Icon, {
1282
1592
  "aria-hidden": "true",
1283
- className: W.icon,
1284
- children: /* @__PURE__ */ d(b, {
1593
+ className: G.icon,
1594
+ children: /* @__PURE__ */ f(x, {
1285
1595
  size: 14,
1286
1596
  color: "currentColor"
1287
1597
  })
1288
1598
  })
1289
- }), /* @__PURE__ */ d(O.Portal, { children: /* @__PURE__ */ d(O.Content, {
1290
- className: `${V.content} ${W.menu}`,
1599
+ }), /* @__PURE__ */ f(k.Portal, { children: /* @__PURE__ */ f(k.Content, {
1600
+ className: `${W.content} ${G.menu}`,
1291
1601
  position: "popper",
1292
1602
  align: "end",
1293
1603
  sideOffset: 4,
1294
1604
  collisionPadding: 8,
1295
- children: /* @__PURE__ */ f(O.Viewport, {
1296
- className: V.viewport,
1297
- children: [t.switcher.options.map((e) => /* @__PURE__ */ f(O.Item, {
1605
+ children: /* @__PURE__ */ p(k.Viewport, {
1606
+ className: W.viewport,
1607
+ children: [t.switcher.options.map((e) => /* @__PURE__ */ p(k.Item, {
1298
1608
  value: e.value,
1299
- className: V.item,
1609
+ className: W.item,
1300
1610
  textValue: e.label,
1301
- children: [/* @__PURE__ */ f("span", {
1302
- className: W.option,
1303
- children: [e.icon && /* @__PURE__ */ d("span", {
1304
- className: W.icon,
1611
+ children: [/* @__PURE__ */ p("span", {
1612
+ className: G.option,
1613
+ children: [e.icon && /* @__PURE__ */ f("span", {
1614
+ className: G.icon,
1305
1615
  "aria-hidden": "true",
1306
1616
  children: e.icon
1307
- }), /* @__PURE__ */ d(O.ItemText, { children: e.label })]
1308
- }), /* @__PURE__ */ d(O.ItemIndicator, {
1309
- className: V.itemIndicator,
1310
- children: /* @__PURE__ */ d(h, {
1617
+ }), /* @__PURE__ */ f(k.ItemText, { children: e.label })]
1618
+ }), /* @__PURE__ */ f(k.ItemIndicator, {
1619
+ className: W.itemIndicator,
1620
+ children: /* @__PURE__ */ f(g, {
1311
1621
  size: 14,
1312
1622
  color: "currentColor"
1313
1623
  })
1314
1624
  })]
1315
- }, e.value)), t.switcher.action && /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(O.Separator, { className: W.menuDivider }), /* @__PURE__ */ d(O.Item, {
1316
- value: ke,
1317
- className: V.item,
1625
+ }, e.value)), t.switcher.action && /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(k.Separator, { className: G.menuDivider }), /* @__PURE__ */ f(k.Item, {
1626
+ value: Be,
1627
+ className: W.item,
1318
1628
  textValue: t.switcher.action.label,
1319
- children: /* @__PURE__ */ f("span", {
1320
- className: W.option,
1321
- children: [/* @__PURE__ */ d("span", {
1322
- className: W.icon,
1629
+ children: /* @__PURE__ */ p("span", {
1630
+ className: G.option,
1631
+ children: [/* @__PURE__ */ f("span", {
1632
+ className: G.icon,
1323
1633
  "aria-hidden": "true",
1324
- children: /* @__PURE__ */ d(S, {
1634
+ children: /* @__PURE__ */ f(C, {
1325
1635
  size: 14,
1326
1636
  color: "currentColor"
1327
1637
  })
1328
- }), /* @__PURE__ */ d(O.ItemText, { children: t.switcher.action.label })]
1638
+ }), /* @__PURE__ */ f(k.ItemText, { children: t.switcher.action.label })]
1329
1639
  })
1330
1640
  })] })]
1331
1641
  })
@@ -1334,7 +1644,7 @@ var ke = "\0action", Ae = ({ items: e, size: t = "default", overflow: n = "wrap"
1334
1644
  })]
1335
1645
  }, t.id))
1336
1646
  })
1337
- }), je = {
1647
+ }), He = {
1338
1648
  wrapper: "_wrapper_1a9jo_1",
1339
1649
  track: "_track_1a9jo_8",
1340
1650
  fill: "_fill_1a9jo_36",
@@ -1342,43 +1652,1293 @@ var ke = "\0action", Ae = ({ items: e, size: t = "default", overflow: n = "wrap"
1342
1652
  };
1343
1653
  //#endregion
1344
1654
  //#region src/components/ProgressBar/ProgressBar.tsx
1345
- function Me({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r = "" }) {
1655
+ function Ue({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r = "" }) {
1346
1656
  let i = Math.min(100, Math.max(0, e)), a = `${Math.round(i)}%`, o = n && i >= 100 ? "var(--CPureBlue)" : void 0;
1347
- return /* @__PURE__ */ f("div", {
1348
- className: `${je.wrapper} ${r}`,
1657
+ return /* @__PURE__ */ p("div", {
1658
+ className: `${He.wrapper} ${r}`,
1349
1659
  role: "progressbar",
1350
1660
  "aria-valuenow": i,
1351
1661
  "aria-valuemin": 0,
1352
1662
  "aria-valuemax": 100,
1353
- children: [/* @__PURE__ */ d("div", {
1354
- className: je.track,
1355
- children: /* @__PURE__ */ d("div", {
1356
- className: je.fill,
1663
+ children: [/* @__PURE__ */ f("div", {
1664
+ className: He.track,
1665
+ children: /* @__PURE__ */ f("div", {
1666
+ className: He.fill,
1357
1667
  style: {
1358
1668
  width: `${i}%`,
1359
1669
  backgroundColor: o
1360
1670
  }
1361
1671
  })
1362
- }), t && /* @__PURE__ */ d("span", {
1363
- className: je.label,
1672
+ }), t && /* @__PURE__ */ f("span", {
1673
+ className: He.label,
1364
1674
  "aria-hidden": "true",
1365
1675
  children: a
1366
1676
  })]
1367
1677
  });
1368
1678
  }
1369
- var Ne = {
1679
+ var K = {
1680
+ meter: "_meter_1ywpg_1",
1681
+ label: "_label_1ywpg_8",
1682
+ bars: "_bars_1ywpg_16",
1683
+ fill: "_fill_1ywpg_24",
1684
+ foot: "_foot_1ywpg_36",
1685
+ value: "_value_1ywpg_44",
1686
+ max: "_max_1ywpg_48",
1687
+ zoneMark: "_zoneMark_1ywpg_55",
1688
+ shares: "_shares_1ywpg_74",
1689
+ segment: "_segment_1ywpg_79",
1690
+ head: "_head_1ywpg_89",
1691
+ headLast: "_headLast_1ywpg_105",
1692
+ headName: "_headName_1ywpg_112",
1693
+ headShare: "_headShare_1ywpg_117",
1694
+ sharesLegend: "_sharesLegend_1ywpg_124",
1695
+ legend: "_legend_1ywpg_128",
1696
+ legendItem: "_legendItem_1ywpg_139",
1697
+ swatch: "_swatch_1ywpg_145",
1698
+ legendName: "_legendName_1ywpg_151",
1699
+ legendShare: "_legendShare_1ywpg_155",
1700
+ divider: "_divider_1ywpg_159",
1701
+ ring: "_ring_1ywpg_178",
1702
+ dial: "_dial_1ywpg_184",
1703
+ svg: "_svg_1ywpg_190",
1704
+ lit: "_lit_1ywpg_199",
1705
+ dim: "_dim_1ywpg_203",
1706
+ zoneBar: "_zoneBar_1ywpg_208",
1707
+ centre: "_centre_1ywpg_212"
1708
+ }, We = (e, t) => e?.filter((e) => t >= e.from).sort((e, t) => t.from - e.from)[0]?.color, Ge = (e, t, n) => e?.find((e) => e.from > 0 && Math.round(e.from * n) === t), Ke = [
1709
+ "var(--lv8)",
1710
+ "var(--lv5)",
1711
+ "var(--lv4)",
1712
+ "var(--lv3)"
1713
+ ], qe = (e) => Ke[Math.min(e, Ke.length - 1)], Je = .08, Ye = 4, Xe = 96, Ze = (e) => e < 72 ? 6 : 14;
1714
+ function Qe({ label: e, value: t = 0, max: n = 100, segments: r, labels: i = "heads", format: a, maxLabel: o, color: s, zones: c, shape: l = "bar", size: u = 72, className: m = "" }) {
1715
+ let h = n > 0 ? Math.min(1, Math.max(0, t / n)) : 0, g = s ?? We(c, h), _ = (e) => a ? a(e) : e.toLocaleString(), v = o ?? /* @__PURE__ */ p(d, { children: ["of ", _(n)] });
1716
+ if (r && l !== "ring") {
1717
+ let t = r.reduce((e, t) => e + Math.max(0, t.value), 0), n = (e) => a ? a(e.value) : `${Math.round((t > 0 ? e.value / t : 0) * 100)} %`, o = 0, s = r.map((e, n) => {
1718
+ let i = o, a = t > 0 ? Math.max(0, e.value) / t : 0;
1719
+ return o += a, {
1720
+ g: e,
1721
+ i: n,
1722
+ from: i,
1723
+ to: n === r.length - 1 ? 1 : o,
1724
+ share: a,
1725
+ color: e.color ?? qe(n)
1726
+ };
1727
+ });
1728
+ return /* @__PURE__ */ p("div", {
1729
+ className: `${K.meter} ${K.segmented} ${m}`,
1730
+ role: "img",
1731
+ "aria-label": typeof e == "string" ? e : void 0,
1732
+ children: [
1733
+ e != null && /* @__PURE__ */ f("span", {
1734
+ className: K.label,
1735
+ children: e
1736
+ }),
1737
+ /* @__PURE__ */ p("div", {
1738
+ className: `${K.shares} ${i === "legend" ? K.sharesLegend : ""}`,
1739
+ children: [
1740
+ i === "heads" && s.map(({ g: e, i: t, from: r, to: i, share: a }) => (a >= Je || t === s.length - 1) && /* @__PURE__ */ p("div", {
1741
+ className: `${K.head} ${t === s.length - 1 ? K.headLast : ""}`,
1742
+ style: {
1743
+ "--seg-from": `${r * 100}%`,
1744
+ "--seg-to": `${i * 100}%`
1745
+ },
1746
+ children: [/* @__PURE__ */ f("span", {
1747
+ className: K.headName,
1748
+ children: e.label
1749
+ }), /* @__PURE__ */ f("span", {
1750
+ className: K.headShare,
1751
+ children: n(e)
1752
+ })]
1753
+ }, t)),
1754
+ /* @__PURE__ */ f("div", {
1755
+ className: K.bars,
1756
+ "aria-hidden": "true",
1757
+ children: s.map(({ i: e, from: t, to: n, color: r }) => /* @__PURE__ */ f("div", {
1758
+ className: `${K.fill} ${K.segment}`,
1759
+ style: {
1760
+ "--seg-from": `${t * 100}%`,
1761
+ "--seg-to": `${n * 100}%`,
1762
+ color: r
1763
+ }
1764
+ }, e))
1765
+ }),
1766
+ s.slice(1).map(({ i: e, from: t }) => /* @__PURE__ */ f("span", {
1767
+ className: K.divider,
1768
+ style: { "--seg-from": `${t * 100}%` }
1769
+ }, `d${e}`))
1770
+ ]
1771
+ }),
1772
+ i === "legend" && /* @__PURE__ */ f("ul", {
1773
+ className: K.legend,
1774
+ children: s.map(({ g: e, i: t, color: r }) => /* @__PURE__ */ p("li", {
1775
+ className: K.legendItem,
1776
+ children: [
1777
+ /* @__PURE__ */ f("span", {
1778
+ className: K.swatch,
1779
+ style: { background: r }
1780
+ }),
1781
+ /* @__PURE__ */ f("span", {
1782
+ className: K.legendName,
1783
+ children: e.label
1784
+ }),
1785
+ /* @__PURE__ */ f("span", {
1786
+ className: K.legendShare,
1787
+ children: n(e)
1788
+ })
1789
+ ]
1790
+ }, t))
1791
+ })
1792
+ ]
1793
+ });
1794
+ }
1795
+ return l === "ring" ? /* @__PURE__ */ p("div", {
1796
+ className: `${K.meter} ${K.ring} ${m}`,
1797
+ role: "meter",
1798
+ "aria-valuenow": t,
1799
+ "aria-valuemin": 0,
1800
+ "aria-valuemax": n,
1801
+ style: {
1802
+ "--meter-size": `${u}px`,
1803
+ color: g
1804
+ },
1805
+ children: [/* @__PURE__ */ p("div", {
1806
+ className: K.dial,
1807
+ children: [/* @__PURE__ */ f($e, {
1808
+ fraction: h,
1809
+ size: u,
1810
+ zones: c
1811
+ }), /* @__PURE__ */ p("div", {
1812
+ className: K.centre,
1813
+ "aria-hidden": "true",
1814
+ children: [/* @__PURE__ */ f("span", {
1815
+ className: K.value,
1816
+ children: _(t)
1817
+ }), u >= Xe && /* @__PURE__ */ f("span", {
1818
+ className: K.max,
1819
+ children: v
1820
+ })]
1821
+ })]
1822
+ }), e != null && /* @__PURE__ */ f("span", {
1823
+ className: K.label,
1824
+ children: e
1825
+ })]
1826
+ }) : /* @__PURE__ */ p("div", {
1827
+ className: `${K.meter} ${m}`,
1828
+ role: "meter",
1829
+ "aria-valuenow": t,
1830
+ "aria-valuemin": 0,
1831
+ "aria-valuemax": n,
1832
+ children: [
1833
+ e != null && /* @__PURE__ */ f("span", {
1834
+ className: K.label,
1835
+ children: e
1836
+ }),
1837
+ /* @__PURE__ */ p("div", {
1838
+ className: K.bars,
1839
+ "aria-hidden": "true",
1840
+ children: [c?.filter((e) => e.from > 0).map((e, t) => /* @__PURE__ */ f("div", {
1841
+ className: `${K.fill} ${K.zoneMark}`,
1842
+ style: {
1843
+ "--zone-from": `${e.from * 100}%`,
1844
+ color: e.color
1845
+ }
1846
+ }, t)), /* @__PURE__ */ f("div", {
1847
+ className: K.fill,
1848
+ style: {
1849
+ "--meter-fill": `${h * 100}%`,
1850
+ color: g
1851
+ }
1852
+ })]
1853
+ }),
1854
+ /* @__PURE__ */ p("div", {
1855
+ className: K.foot,
1856
+ "aria-hidden": "true",
1857
+ children: [/* @__PURE__ */ f("span", {
1858
+ className: K.value,
1859
+ children: _(t)
1860
+ }), /* @__PURE__ */ f("span", {
1861
+ className: K.max,
1862
+ children: v
1863
+ })]
1864
+ })
1865
+ ]
1866
+ });
1867
+ }
1868
+ function $e({ fraction: e, size: t, zones: n }) {
1869
+ let r = t / 2, i = Math.max(0, r - Ze(t)), a = (r + i) / 2, o = Math.max(4, Math.round(2 * Math.PI * a / Ye)), s = Math.round(e * o), c = [];
1870
+ for (let e = 0; e < o; e++) {
1871
+ let t = (-90 + 360 * e / o) * (Math.PI / 180), a = Math.cos(t), l = Math.sin(t), u = Ge(n, e, o);
1872
+ c.push(/* @__PURE__ */ f("line", {
1873
+ className: u ? K.zoneBar : e < s ? K.lit : K.dim,
1874
+ style: u ? { stroke: u.color } : void 0,
1875
+ x1: r + i * a,
1876
+ y1: r + i * l,
1877
+ x2: r + r * a,
1878
+ y2: r + r * l
1879
+ }, e));
1880
+ }
1881
+ return /* @__PURE__ */ f("svg", {
1882
+ className: K.svg,
1883
+ viewBox: `0 0 ${t} ${t}`,
1884
+ width: t,
1885
+ height: t,
1886
+ "aria-hidden": "true",
1887
+ children: c
1888
+ });
1889
+ }
1890
+ var et = {
1891
+ waffle: "_waffle_1uk11_1",
1892
+ grid: "_grid_1uk11_10",
1893
+ cell: "_cell_1uk11_19",
1894
+ legend: "_legend_1uk11_23",
1895
+ item: "_item_1uk11_34",
1896
+ swatch: "_swatch_1uk11_40",
1897
+ name: "_name_1uk11_46",
1898
+ share: "_share_1uk11_50"
1899
+ }, tt = [
1900
+ "var(--lv8)",
1901
+ "var(--lv5)",
1902
+ "var(--lv4)",
1903
+ "var(--lv3)"
1904
+ ];
1905
+ function nt(e, t) {
1906
+ let n = e.reduce((e, t) => e + Math.max(0, t), 0);
1907
+ if (n <= 0) return e.map(() => 0);
1908
+ let r = e.map((e) => Math.max(0, e) / n * t), i = r.map(Math.floor), a = t - i.reduce((e, t) => e + t, 0), o = r.map((e, t) => ({
1909
+ i: t,
1910
+ rem: e - Math.floor(e)
1911
+ })).sort((e, t) => t.rem - e.rem);
1912
+ for (let { i: e } of o) {
1913
+ if (a <= 0) break;
1914
+ i[e] += 1, --a;
1915
+ }
1916
+ for (let t = 0; t < i.length; t++) if (e[t] > 0 && i[t] === 0) {
1917
+ let e = i.indexOf(Math.max(...i));
1918
+ i[e] > 1 && (--i[e], i[t] = 1);
1919
+ }
1920
+ return i;
1921
+ }
1922
+ function rt({ segments: e, columns: t = 20, rows: n = 5, cell: r = 4, format: i, legend: a = !0, "aria-label": o, className: s = "" }) {
1923
+ let c = t * n, l = e.reduce((e, t) => e + Math.max(0, t.value), 0), u = nt(e.map((e) => e.value), c), d = (t) => e[t].color ?? tt[Math.min(t, tt.length - 1)], m = (e) => {
1924
+ let t = l > 0 ? Math.max(0, e.value) / l : 0;
1925
+ return i ? i(t, e.value) : `${Math.round(t * 100)} %`;
1926
+ }, h = [], g = 0, _ = 0;
1927
+ for (let e = 0; e < c; e++) {
1928
+ for (; g < u.length && _ >= u[g];) g += 1, _ = 0;
1929
+ let t = g < u.length ? d(g) : void 0;
1930
+ _ += 1, h.push(/* @__PURE__ */ f("span", {
1931
+ className: et.cell,
1932
+ style: t ? { background: t } : void 0
1933
+ }, e));
1934
+ }
1935
+ return /* @__PURE__ */ p("div", {
1936
+ className: `${et.waffle} ${s}`,
1937
+ children: [/* @__PURE__ */ f("div", {
1938
+ className: et.grid,
1939
+ role: "img",
1940
+ "aria-label": o,
1941
+ style: {
1942
+ "--waffle-rows": n,
1943
+ "--waffle-cell": `${r}px`
1944
+ },
1945
+ children: h
1946
+ }), a && /* @__PURE__ */ f("ul", {
1947
+ className: et.legend,
1948
+ "aria-hidden": o ? void 0 : !0,
1949
+ children: e.map((e, t) => /* @__PURE__ */ p("li", {
1950
+ className: et.item,
1951
+ children: [
1952
+ /* @__PURE__ */ f("span", {
1953
+ className: et.swatch,
1954
+ style: { background: d(t) }
1955
+ }),
1956
+ /* @__PURE__ */ f("span", {
1957
+ className: et.name,
1958
+ children: e.label
1959
+ }),
1960
+ /* @__PURE__ */ f("span", {
1961
+ className: et.share,
1962
+ children: m(e)
1963
+ })
1964
+ ]
1965
+ }, t))
1966
+ })]
1967
+ });
1968
+ }
1969
+ var it = {
1970
+ heatmap: "_heatmap_1poh8_1",
1971
+ gridWrap: "_gridWrap_1poh8_12",
1972
+ withRows: "_withRows_1poh8_17",
1973
+ grid: "_grid_1poh8_12",
1974
+ cell: "_cell_1poh8_31",
1975
+ hovered: "_hovered_1poh8_36",
1976
+ tooltip: "_tooltip_1poh8_42",
1977
+ tooltipLeft: "_tooltipLeft_1poh8_55",
1978
+ gap: "_gap_1poh8_59",
1979
+ columnLabels: "_columnLabels_1poh8_65",
1980
+ columnLabel: "_columnLabel_1poh8_65",
1981
+ rowLabels: "_rowLabels_1poh8_77",
1982
+ rowLabel: "_rowLabel_1poh8_77"
1983
+ }, at = [
1984
+ "var(--lv3)",
1985
+ "var(--lv4)",
1986
+ "var(--lv5)",
1987
+ "var(--lv8)"
1988
+ ];
1989
+ function ot(e, t) {
1990
+ return e <= 0 || t <= 0 ? 0 : Math.min(at.length, Math.max(1, Math.ceil(e / t * at.length)));
1991
+ }
1992
+ function st({ values: e, rows: t = 7, max: n, columnLabels: r, rowLabels: i, cell: a = 6, format: o, "aria-label": s, className: c = "" }) {
1993
+ let l = n ?? e.reduce((e, t) => t != null && t > e ? t : e, 0), d = Math.ceil(e.length / t), m = a + 2, [h, g] = u(null), _ = [];
1994
+ for (let n = 0; n < d * t; n++) {
1995
+ let t = n < e.length ? e[n] : null;
1996
+ if (t == null) {
1997
+ _.push(/* @__PURE__ */ f("span", { className: it.gap }, n));
1998
+ continue;
1999
+ }
2000
+ let r = ot(t, l);
2001
+ _.push(/* @__PURE__ */ f("span", {
2002
+ className: `${it.cell} ${h === n ? it.hovered : ""}`,
2003
+ style: r ? { background: at[r - 1] } : void 0,
2004
+ onMouseEnter: o ? () => g(n) : void 0
2005
+ }, n));
2006
+ }
2007
+ let v = h != null && o && e[h] != null ? (() => {
2008
+ let n = Math.floor(h / t), r = h % t, i = n > d / 2;
2009
+ return /* @__PURE__ */ f("div", {
2010
+ className: `${it.tooltip} ${i ? it.tooltipLeft : ""}`,
2011
+ style: {
2012
+ top: r * m + a / 2,
2013
+ left: i ? n * m - 6 : n * m + a + 6
2014
+ },
2015
+ children: o(e[h], h)
2016
+ });
2017
+ })() : null;
2018
+ return /* @__PURE__ */ p("div", {
2019
+ className: `${it.heatmap} ${i ? it.withRows : ""} ${c}`,
2020
+ style: {
2021
+ "--heatmap-rows": t,
2022
+ "--heatmap-cell": `${a}px`,
2023
+ "--heatmap-pitch": `${m}px`
2024
+ },
2025
+ children: [
2026
+ i && /* @__PURE__ */ f("div", {
2027
+ className: it.rowLabels,
2028
+ "aria-hidden": "true",
2029
+ children: i.map((e) => /* @__PURE__ */ f("span", {
2030
+ className: it.rowLabel,
2031
+ style: { top: e.at * m },
2032
+ children: e.label
2033
+ }, e.at))
2034
+ }),
2035
+ /* @__PURE__ */ p("div", {
2036
+ className: it.gridWrap,
2037
+ onMouseLeave: () => g(null),
2038
+ children: [/* @__PURE__ */ f("div", {
2039
+ className: it.grid,
2040
+ role: "img",
2041
+ "aria-label": s,
2042
+ children: _
2043
+ }), v]
2044
+ }),
2045
+ r && /* @__PURE__ */ f("div", {
2046
+ className: it.columnLabels,
2047
+ "aria-hidden": "true",
2048
+ children: r.map((e) => /* @__PURE__ */ f("span", {
2049
+ className: it.columnLabel,
2050
+ style: { left: e.at * m },
2051
+ children: e.label
2052
+ }, e.at))
2053
+ })
2054
+ ]
2055
+ });
2056
+ }
2057
+ var ct = [
2058
+ "Jan",
2059
+ "Feb",
2060
+ "Mar",
2061
+ "Apr",
2062
+ "May",
2063
+ "Jun",
2064
+ "Jul",
2065
+ "Aug",
2066
+ "Sep",
2067
+ "Oct",
2068
+ "Nov",
2069
+ "Dec"
2070
+ ], lt = [
2071
+ "Mon",
2072
+ "Tue",
2073
+ "Wed",
2074
+ "Thu",
2075
+ "Fri",
2076
+ "Sat",
2077
+ "Sun"
2078
+ ];
2079
+ function ut(e, t, n) {
2080
+ let r = new Date(e.getFullYear(), e.getMonth(), e.getDate()), i = new Date(t.getFullYear(), t.getMonth(), t.getDate()), a = [], o = [], s = [], c = (r.getDay() + 6) % 7;
2081
+ for (let e = 0; e < c; e++) a.push(null), o.push(null);
2082
+ for (let e = new Date(r); e <= i; e.setDate(e.getDate() + 1)) {
2083
+ let t = new Date(e);
2084
+ t.getDate() === 1 && s.push({
2085
+ at: Math.floor(a.length / 7),
2086
+ label: ct[t.getMonth()]
2087
+ }), a.push(n(t)), o.push(t);
2088
+ }
2089
+ for (; a.length % 7;) a.push(null), o.push(null);
2090
+ return {
2091
+ values: a,
2092
+ dates: o,
2093
+ columnLabels: s,
2094
+ rowLabels: [
2095
+ 0,
2096
+ 2,
2097
+ 4
2098
+ ].map((e) => ({
2099
+ at: e,
2100
+ label: lt[e]
2101
+ }))
2102
+ };
2103
+ }
2104
+ var q = {
2105
+ wrapper: "_wrapper_16ve1_1",
2106
+ radial: "_radial_16ve1_7",
2107
+ svg: "_svg_16ve1_13",
2108
+ guide: "_guide_16ve1_20",
2109
+ start: "_start_16ve1_26",
2110
+ bar: "_bar_16ve1_34",
2111
+ hovered: "_hovered_16ve1_39",
2112
+ wedgeTrack: "_wedgeTrack_16ve1_48",
2113
+ wedge: "_wedge_16ve1_48",
2114
+ wedgeHovered: "_wedgeHovered_16ve1_59",
2115
+ sectorText: "_sectorText_16ve1_68",
2116
+ sectorValue: "_sectorValue_16ve1_73",
2117
+ sectorName: "_sectorName_16ve1_80",
2118
+ sectorTextOnLit: "_sectorTextOnLit_16ve1_85",
2119
+ centre: "_centre_16ve1_90",
2120
+ tooltip: "_tooltip_16ve1_104",
2121
+ tooltipLeft: "_tooltipLeft_16ve1_118",
2122
+ tooltipRow: "_tooltipRow_16ve1_122",
2123
+ tooltipDot: "_tooltipDot_16ve1_128",
2124
+ tooltipName: "_tooltipName_16ve1_134",
2125
+ legend: "_legend_16ve1_140",
2126
+ legendItem: "_legendItem_16ve1_147",
2127
+ legendMark: "_legendMark_16ve1_153",
2128
+ legendLabel: "_legendLabel_16ve1_159",
2129
+ tooltipLabel: "_tooltipLabel_16ve1_164",
2130
+ tooltipValue: "_tooltipValue_16ve1_171"
2131
+ }, dt = "var(--lv6)";
2132
+ function ft({ values: e, series: t, labels: n, groups: r, gap: i = 4, rounding: a = 8, size: o = 240, hollow: s = .4, inverse: c = !1, max: l, color: d, format: m, centre: h, showLegend: g = !0, "aria-label": _, className: v = "" }) {
2133
+ let [y, b] = u(null), x = o / 2, S = x * Math.min(.9, Math.max(0, s)), C = x - S, w = !!r?.length, T = w ? [{
2134
+ label: "",
2135
+ values: r.map((e) => e.value),
2136
+ color: d
2137
+ }] : t?.length ? t : [{
2138
+ label: "",
2139
+ values: e ?? [],
2140
+ color: d
2141
+ }], E = Math.max(...T.map((e) => e.values.length), 0), D = (e, t) => T[e].values[t], O = l ?? T.reduce((e, t) => t.values.reduce((e, t) => Number.isFinite(t) && t > e ? t : e, e), 0), k = 2 * Math.PI / Math.max(1, E), A = T.length, j = (e, t = 0) => -Math.PI / 2 + k * (e + (A > 1 ? (t + .5) / A - .5 : 0)), M = (e, t, n = 0) => [x + t * Math.cos(j(e, n)), x + t * Math.sin(j(e, n))], N = (e) => O > 0 && Number.isFinite(e) ? Math.max(0, e) / O * C : 0, P = c ? x : S, F = (e) => c ? x - e : S + e, I = Math.max(.5, Math.min(2, 2 * Math.PI * S / Math.max(1, E * A) * .55)), ee = (e) => T[e].color ?? dt, L = Math.min(a, C * .12), R = i / 2 + L, te = (e, t) => {
2142
+ let n = S + R, r = Math.max(n + .5, t - R), i = j(e), a = Math.max(.01, k / 2 - R / n), o = Math.max(.01, k / 2 - R / r), s = (e, t) => `${(x + e * Math.cos(t)).toFixed(2)} ${(x + e * Math.sin(t)).toFixed(2)}`, c = +(2 * o > Math.PI);
2143
+ return `M ${s(n, i - a)} L ${s(r, i - o)} A ${r.toFixed(2)} ${r.toFixed(2)} 0 ${c} 1 ${s(r, i + o)} L ${s(n, i + a)} A ${n.toFixed(2)} ${n.toFixed(2)} 0 ${c} 0 ${s(n, i - a)} Z`;
2144
+ }, ne = (e) => {
2145
+ if (E === 0 || !m) return;
2146
+ let t = e.currentTarget.getBoundingClientRect(), n = (e.clientX - t.left) / t.width * o - x, r = (e.clientY - t.top) / t.height * o - x, i = Math.hypot(n, r);
2147
+ if (i < S || i > x) {
2148
+ b(null);
2149
+ return;
2150
+ }
2151
+ let a = (Math.atan2(r, n) + Math.PI / 2 + 2 * Math.PI) % (2 * Math.PI) / (2 * Math.PI);
2152
+ b(w ? Math.floor(a * E) % E : Math.round(a * E) % E);
2153
+ }, z = [], re = [];
2154
+ for (let e = 0; e < E; e++) {
2155
+ if (w) {
2156
+ let t = r[e], n = N(t.value);
2157
+ if (re.push(/* @__PURE__ */ f("path", {
2158
+ className: q.wedgeTrack,
2159
+ style: { strokeWidth: L * 2 },
2160
+ d: te(e, x)
2161
+ }, `t${e}`)), n > 0) {
2162
+ let r = t.color ?? d ?? dt;
2163
+ re.push(/* @__PURE__ */ f("path", {
2164
+ className: `${q.wedge} ${y === e ? q.wedgeHovered : ""}`,
2165
+ style: {
2166
+ fill: r,
2167
+ stroke: r,
2168
+ strokeWidth: L * 2
2169
+ },
2170
+ d: te(e, S + n)
2171
+ }, `w${e}`));
2172
+ }
2173
+ continue;
2174
+ }
2175
+ let [t, n] = M(e, S), [i, a] = M(e, x);
2176
+ z.push(/* @__PURE__ */ f("line", {
2177
+ className: q.guide,
2178
+ x1: t,
2179
+ y1: n,
2180
+ x2: i,
2181
+ y2: a
2182
+ }, `g${e}`));
2183
+ for (let t = 0; t < A; t++) {
2184
+ let n = N(D(t, e));
2185
+ if (n <= 0) continue;
2186
+ let [r, i] = M(e, P, t), [a, o] = M(e, F(n), t), s = y === e;
2187
+ re.push(/* @__PURE__ */ f("line", {
2188
+ className: `${q.bar} ${s ? q.hovered : ""}`,
2189
+ style: { stroke: ee(t) },
2190
+ x1: r,
2191
+ y1: i,
2192
+ x2: a,
2193
+ y2: o
2194
+ }, `b${t}-${e}`));
2195
+ }
2196
+ }
2197
+ let B = w && r.length <= 12 && o >= 200 ? r.map((e, t) => {
2198
+ let n = N(e.value), r = n >= C * .5, [i, a] = M(t, r ? S + n * .62 : S + n + (C - n) * .55);
2199
+ return /* @__PURE__ */ p("text", {
2200
+ className: `${q.sectorText} ${r ? q.sectorTextOnLit : ""}`,
2201
+ x: i,
2202
+ y: a,
2203
+ textAnchor: "middle",
2204
+ children: [/* @__PURE__ */ f("tspan", {
2205
+ className: q.sectorValue,
2206
+ x: i,
2207
+ dy: "-0.2em",
2208
+ children: m ? m(e.value, t) : e.value
2209
+ }), /* @__PURE__ */ f("tspan", {
2210
+ className: q.sectorName,
2211
+ x: i,
2212
+ dy: "1.3em",
2213
+ children: e.label
2214
+ })]
2215
+ }, `l${t}`);
2216
+ }) : null, V = y != null && m ? (() => {
2217
+ let e = w ? [{
2218
+ name: r[y].label,
2219
+ color: ee(0),
2220
+ text: m(r[y].value, y)
2221
+ }] : T.map((e, t) => ({
2222
+ name: e.label,
2223
+ color: ee(t),
2224
+ text: m(e.values[y] ?? 0, y)
2225
+ })), t = Math.max(...T.map((e, t) => N(D(t, y))), C * .15), [i, a] = M(y, c && !w ? x - t - 6 : S + t + 6);
2226
+ return /* @__PURE__ */ p("div", {
2227
+ className: `${q.tooltip} ${i > x ? q.tooltipLeft : ""}`,
2228
+ style: {
2229
+ left: i,
2230
+ top: a
2231
+ },
2232
+ children: [!w && /* @__PURE__ */ f("span", {
2233
+ className: q.tooltipLabel,
2234
+ children: n?.[y] ?? String(y + 1)
2235
+ }), e.map((e, t) => /* @__PURE__ */ p("span", {
2236
+ className: q.tooltipRow,
2237
+ children: [
2238
+ A > 1 && /* @__PURE__ */ f("span", {
2239
+ className: q.tooltipDot,
2240
+ style: { background: e.color }
2241
+ }),
2242
+ (A > 1 || w) && /* @__PURE__ */ f("span", {
2243
+ className: q.tooltipName,
2244
+ children: e.name
2245
+ }),
2246
+ /* @__PURE__ */ f("span", {
2247
+ className: q.tooltipValue,
2248
+ children: e.text
2249
+ })
2250
+ ]
2251
+ }, t))]
2252
+ });
2253
+ })() : null, ie = !w && E > 0 ? (() => {
2254
+ let [e, t] = M(0, S), [n, r] = M(0, x);
2255
+ return /* @__PURE__ */ f("line", {
2256
+ className: q.start,
2257
+ x1: e,
2258
+ y1: t,
2259
+ x2: n,
2260
+ y2: r
2261
+ });
2262
+ })() : null;
2263
+ return /* @__PURE__ */ p("div", {
2264
+ className: `${q.wrapper} ${v}`,
2265
+ children: [/* @__PURE__ */ p("div", {
2266
+ className: q.radial,
2267
+ style: { "--radial-size": `${o}px` },
2268
+ onPointerLeave: () => b(null),
2269
+ children: [
2270
+ /* @__PURE__ */ p("svg", {
2271
+ className: q.svg,
2272
+ style: { "--radial-bar": `${I}px` },
2273
+ viewBox: `0 0 ${o} ${o}`,
2274
+ width: o,
2275
+ height: o,
2276
+ role: "img",
2277
+ "aria-label": _,
2278
+ onPointerMove: ne,
2279
+ onPointerDown: ne,
2280
+ children: [
2281
+ z,
2282
+ ie,
2283
+ re,
2284
+ B
2285
+ ]
2286
+ }),
2287
+ h != null && /* @__PURE__ */ f("div", {
2288
+ className: q.centre,
2289
+ style: {
2290
+ width: S * 2,
2291
+ height: S * 2
2292
+ },
2293
+ children: h
2294
+ }),
2295
+ V
2296
+ ]
2297
+ }), g && !w && A > 1 && /* @__PURE__ */ f("div", {
2298
+ className: q.legend,
2299
+ children: T.map((e, t) => /* @__PURE__ */ p("span", {
2300
+ className: q.legendItem,
2301
+ children: [/* @__PURE__ */ f("span", {
2302
+ className: q.legendMark,
2303
+ style: { background: ee(t) }
2304
+ }), /* @__PURE__ */ f("span", {
2305
+ className: q.legendLabel,
2306
+ children: e.label
2307
+ })]
2308
+ }, t))
2309
+ })]
2310
+ });
2311
+ }
2312
+ var J = {
2313
+ wrapper: "_wrapper_1q5hf_1",
2314
+ radar: "_radar_1q5hf_7",
2315
+ svg: "_svg_1q5hf_13",
2316
+ ring: "_ring_1q5hf_19",
2317
+ rim: "_rim_1q5hf_25",
2318
+ axis: "_axis_1q5hf_32",
2319
+ axisHovered: "_axisHovered_1q5hf_37",
2320
+ label: "_label_1q5hf_44",
2321
+ labelHovered: "_labelHovered_1q5hf_50",
2322
+ tooltip: "_tooltip_1q5hf_55",
2323
+ tooltipLeft: "_tooltipLeft_1q5hf_69",
2324
+ tooltipLabel: "_tooltipLabel_1q5hf_73",
2325
+ tooltipRow: "_tooltipRow_1q5hf_80",
2326
+ tooltipDot: "_tooltipDot_1q5hf_86",
2327
+ tooltipName: "_tooltipName_1q5hf_92",
2328
+ tooltipValue: "_tooltipValue_1q5hf_97",
2329
+ legend: "_legend_1q5hf_105",
2330
+ legendItem: "_legendItem_1q5hf_112",
2331
+ legendMark: "_legendMark_1q5hf_118",
2332
+ legendLabel: "_legendLabel_1q5hf_124"
2333
+ }, pt = "var(--lv6)", mt = .14, ht = .7, gt = 36, _t = {
2334
+ hatch: [
2335
+ [
2336
+ 0,
2337
+ 3,
2338
+ 1,
2339
+ 1
2340
+ ],
2341
+ [
2342
+ 1,
2343
+ 2,
2344
+ 1,
2345
+ 1
2346
+ ],
2347
+ [
2348
+ 2,
2349
+ 1,
2350
+ 1,
2351
+ 1
2352
+ ],
2353
+ [
2354
+ 3,
2355
+ 0,
2356
+ 1,
2357
+ 1
2358
+ ]
2359
+ ],
2360
+ dots: [[
2361
+ 0,
2362
+ 0,
2363
+ 2,
2364
+ 2
2365
+ ]],
2366
+ checker: [[
2367
+ 0,
2368
+ 0,
2369
+ 2,
2370
+ 2
2371
+ ], [
2372
+ 2,
2373
+ 2,
2374
+ 2,
2375
+ 2
2376
+ ]]
2377
+ };
2378
+ function vt({ axes: e, series: t, size: n = 240, max: r, rings: i = 3, format: o, showLegend: s = !0, "aria-label": c, className: l = "" }) {
2379
+ let d = a(), [m, h] = u(null), g = e.length, _ = n / 2, v = Math.max(gt, Math.max(0, ...e.map((e) => e.label.length)) * 6.5 + 14), y = n + v * 2, b = y / 2, x = r ?? t.reduce((e, t) => t.values.reduce((e, t) => Number.isFinite(t) && t > e ? t : e, e), 0), S = (t) => e[t].max ?? x, C = (e) => -Math.PI / 2 + 2 * Math.PI * e / Math.max(1, g), w = (e, t) => [b + t * Math.cos(C(e)), b + t * Math.sin(C(e))], T = (e, t) => {
2380
+ let n = S(e);
2381
+ return n > 0 && Number.isFinite(t) ? Math.min(1, Math.max(0, t / n)) * _ : 0;
2382
+ }, E = (e) => e.color ?? pt, D = (t, n) => e[t].format?.(n) ?? o?.(n) ?? n.toLocaleString(), O = (e) => {
2383
+ if (g === 0) return;
2384
+ let t = e.currentTarget.getBoundingClientRect(), n = (e.clientX - t.left) / t.width * y - b, r = (e.clientY - t.top) / t.height * y - b;
2385
+ if (Math.hypot(n, r) > _ + v) {
2386
+ h(null);
2387
+ return;
2388
+ }
2389
+ let i = (Math.atan2(r, n) + Math.PI / 2 + 2 * Math.PI) % (2 * Math.PI) / (2 * Math.PI);
2390
+ h(Math.round(i * g) % g);
2391
+ }, k = Array.from({ length: i }, (e, t) => {
2392
+ let n = _ * (t + 1) / i;
2393
+ return Array.from({ length: g }, (e, t) => w(t, n).map((e) => e.toFixed(2)).join(",")).join(" ");
2394
+ }), A = t.filter((e) => e.fill && e.fill in _t);
2395
+ return /* @__PURE__ */ p("div", {
2396
+ className: `${J.wrapper} ${l}`,
2397
+ children: [/* @__PURE__ */ p("div", {
2398
+ className: J.radar,
2399
+ style: { "--radar-box": `${y}px` },
2400
+ onPointerLeave: () => h(null),
2401
+ children: [/* @__PURE__ */ p("svg", {
2402
+ className: J.svg,
2403
+ viewBox: `0 0 ${y} ${y}`,
2404
+ width: y,
2405
+ height: y,
2406
+ role: "img",
2407
+ "aria-label": c,
2408
+ onPointerMove: O,
2409
+ onPointerDown: O,
2410
+ children: [
2411
+ A.length > 0 && /* @__PURE__ */ f("defs", { children: t.map((e, t) => e.fill && e.fill in _t ? /* @__PURE__ */ f("pattern", {
2412
+ id: `${d}-${t}`,
2413
+ width: 4,
2414
+ height: 4,
2415
+ patternUnits: "userSpaceOnUse",
2416
+ children: _t[e.fill].map(([t, n, r, i], a) => /* @__PURE__ */ f("rect", {
2417
+ x: t,
2418
+ y: n,
2419
+ width: r,
2420
+ height: i,
2421
+ fill: E(e)
2422
+ }, a))
2423
+ }, t) : null) }),
2424
+ k.map((e, t) => /* @__PURE__ */ f("polygon", {
2425
+ className: t === i - 1 ? J.rim : J.ring,
2426
+ points: e
2427
+ }, `r${t}`)),
2428
+ e.map((e, t) => {
2429
+ let [n, r] = w(t, _);
2430
+ return /* @__PURE__ */ f("line", {
2431
+ className: `${J.axis} ${m === t ? J.axisHovered : ""}`,
2432
+ x1: b,
2433
+ y1: b,
2434
+ x2: n,
2435
+ y2: r
2436
+ }, `a${t}`);
2437
+ }),
2438
+ t.map((t, n) => {
2439
+ let r = e.map((e, n) => w(n, T(n, t.values[n]))), i = t.fill ?? "solid", a = i in _t ? `url(#${d}-${n})` : E(t);
2440
+ return /* @__PURE__ */ p("g", { children: [
2441
+ i !== "none" && /* @__PURE__ */ f("polygon", {
2442
+ points: r.map(([e, t]) => `${e.toFixed(2)},${t.toFixed(2)}`).join(" "),
2443
+ fill: a,
2444
+ fillOpacity: i === "solid" ? mt : ht,
2445
+ stroke: "none"
2446
+ }),
2447
+ /* @__PURE__ */ f("polygon", {
2448
+ points: r.map(([e, t]) => `${e.toFixed(2)},${t.toFixed(2)}`).join(" "),
2449
+ fill: "none",
2450
+ stroke: E(t),
2451
+ strokeWidth: "1",
2452
+ strokeLinejoin: "round"
2453
+ }),
2454
+ r.map(([e, n], r) => {
2455
+ let i = m === r ? 7 : 5;
2456
+ return /* @__PURE__ */ f("rect", {
2457
+ x: e - i / 2,
2458
+ y: n - i / 2,
2459
+ width: i,
2460
+ height: i,
2461
+ fill: E(t)
2462
+ }, r);
2463
+ })
2464
+ ] }, `s${n}`);
2465
+ }),
2466
+ e.map((e, t) => {
2467
+ let [n, r] = w(t, _ + 10), i = Math.cos(C(t)), a = Math.abs(i) < .2 ? "middle" : i > 0 ? "start" : "end", o = Math.sin(C(t)) > .5 ? "0.9em" : Math.sin(C(t)) < -.5 ? "-0.2em" : "0.35em";
2468
+ return /* @__PURE__ */ f("text", {
2469
+ className: `${J.label} ${m === t ? J.labelHovered : ""}`,
2470
+ x: n,
2471
+ y: r,
2472
+ dy: o,
2473
+ textAnchor: a,
2474
+ children: e.label
2475
+ }, `l${t}`);
2476
+ })
2477
+ ]
2478
+ }), m != null && (() => {
2479
+ let [n, r] = w(m, _ + 10), i = n > b;
2480
+ return /* @__PURE__ */ p("div", {
2481
+ className: `${J.tooltip} ${i ? J.tooltipLeft : ""}`,
2482
+ style: {
2483
+ left: n,
2484
+ top: r
2485
+ },
2486
+ children: [/* @__PURE__ */ f("span", {
2487
+ className: J.tooltipLabel,
2488
+ children: e[m].label
2489
+ }), t.map((e, n) => /* @__PURE__ */ p("span", {
2490
+ className: J.tooltipRow,
2491
+ children: [
2492
+ t.length > 1 && /* @__PURE__ */ f("span", {
2493
+ className: J.tooltipDot,
2494
+ style: { background: E(e) }
2495
+ }),
2496
+ t.length > 1 && /* @__PURE__ */ f("span", {
2497
+ className: J.tooltipName,
2498
+ children: e.label
2499
+ }),
2500
+ /* @__PURE__ */ f("span", {
2501
+ className: J.tooltipValue,
2502
+ children: D(m, e.values[m] ?? 0)
2503
+ })
2504
+ ]
2505
+ }, n))]
2506
+ });
2507
+ })()]
2508
+ }), s && t.length > 1 && /* @__PURE__ */ f("div", {
2509
+ className: J.legend,
2510
+ children: t.map((e, t) => /* @__PURE__ */ p("span", {
2511
+ className: J.legendItem,
2512
+ children: [/* @__PURE__ */ f("span", {
2513
+ className: J.legendMark,
2514
+ style: { background: E(e) }
2515
+ }), /* @__PURE__ */ f("span", {
2516
+ className: J.legendLabel,
2517
+ children: e.label
2518
+ })]
2519
+ }, t))
2520
+ })]
2521
+ });
2522
+ }
2523
+ var yt = {
2524
+ chart: "_chart_106dt_1",
2525
+ svg: "_svg_106dt_7",
2526
+ divider: "_divider_106dt_13",
2527
+ head: "_head_106dt_19",
2528
+ sub: "_sub_106dt_25",
2529
+ bar: "_bar_106dt_32",
2530
+ barHovered: "_barHovered_106dt_36",
2531
+ band: "_band_106dt_41",
2532
+ tick: "_tick_106dt_46",
2533
+ tooltip: "_tooltip_106dt_52",
2534
+ tooltipLeft: "_tooltipLeft_106dt_66",
2535
+ tooltipLabel: "_tooltipLabel_106dt_70",
2536
+ tooltipValue: "_tooltipValue_106dt_77"
2537
+ }, bt = "var(--lv6)", xt = 30, St = 10, Ct = 20;
2538
+ function wt({ groups: e, labels: t, height: n = 120, max: r, gap: a = 2, format: o, "aria-label": s, className: c = "" }) {
2539
+ let d = a, m = l(null), [h, g] = u(0), [_, v] = u(null);
2540
+ i(() => {
2541
+ let e = m.current;
2542
+ if (!e) return;
2543
+ let t = new ResizeObserver(([e]) => g(e.contentRect.width));
2544
+ return t.observe(e), g(e.clientWidth), () => t.disconnect();
2545
+ }, []);
2546
+ let y = e.reduce((e, t) => e + t.values.length, 0), b = r ?? e.reduce((e, t) => t.values.reduce((e, t) => Number.isFinite(t) && t > e ? t : e, e), 0), x = n + xt + 4 + St + Ct, S = xt + n, C = y > 0 ? (h - d * Math.max(0, e.length - 1)) / y : 0, w = [], T = 0;
2547
+ for (let t of e) w.push(T), T += t.values.length * C + d;
2548
+ let E = (e, t) => w[e] + t * C + C / 2, D = (e) => e.highlight ? e.color ?? "var(--CTeal)" : bt, O = C > 0 ? Math.max(1, Math.ceil(28 / C)) : 1, k = (e, t) => Math.min(h - 10, Math.max(10, E(e, t))), A = (t) => {
2549
+ if (!o || y === 0) return;
2550
+ let n = t.currentTarget.getBoundingClientRect(), r = t.clientX - n.left;
2551
+ for (let t = 0; t < e.length; t++) {
2552
+ let n = e[t], i = w[t], a = i + n.values.length * C;
2553
+ if (r >= i - d / 2 && r < a + d / 2) {
2554
+ let e = Math.min(n.values.length - 1, Math.max(0, Math.floor((r - i) / C)));
2555
+ v([t, e]);
2556
+ return;
2557
+ }
2558
+ }
2559
+ v(null);
2560
+ }, j = _ && o ? (() => {
2561
+ let [r, i] = _, a = e[r], s = E(r, i), c = s > h / 2, l = b > 0 && Number.isFinite(a.values[i]) ? Math.max(0, a.values[i]) / b * n : 0;
2562
+ return /* @__PURE__ */ p("div", {
2563
+ className: `${yt.tooltip} ${c ? yt.tooltipLeft : ""}`,
2564
+ style: {
2565
+ left: c ? s - 8 : s + 8,
2566
+ top: Math.max(42, S - l)
2567
+ },
2568
+ children: [/* @__PURE__ */ p("span", {
2569
+ className: yt.tooltipLabel,
2570
+ children: [a.label, t?.[i] == null ? "" : ` · ${t[i]}`]
2571
+ }), /* @__PURE__ */ f("span", {
2572
+ className: yt.tooltipValue,
2573
+ children: o(a.values[i], r, i)
2574
+ })]
2575
+ });
2576
+ })() : null;
2577
+ return /* @__PURE__ */ p("div", {
2578
+ ref: m,
2579
+ className: `${yt.chart} ${c}`,
2580
+ style: { height: x },
2581
+ onPointerLeave: () => v(null),
2582
+ children: [h > 0 && /* @__PURE__ */ f("svg", {
2583
+ className: yt.svg,
2584
+ width: h,
2585
+ height: x,
2586
+ role: "img",
2587
+ "aria-label": s,
2588
+ onPointerMove: A,
2589
+ onPointerDown: A,
2590
+ children: e.map((e, r) => {
2591
+ let i = w[r], a = e.values.length * C, o = D(e);
2592
+ return /* @__PURE__ */ p("g", { children: [
2593
+ /* @__PURE__ */ f("line", {
2594
+ className: yt.divider,
2595
+ x1: i,
2596
+ y1: 0,
2597
+ x2: i,
2598
+ y2: S
2599
+ }),
2600
+ /* @__PURE__ */ f("text", {
2601
+ className: yt.head,
2602
+ x: i + 6,
2603
+ y: 11,
2604
+ children: e.label
2605
+ }),
2606
+ e.sublabel != null && /* @__PURE__ */ f("text", {
2607
+ className: `${yt.sub} ${e.highlight ? yt.subHighlight : ""}`,
2608
+ x: i + 6,
2609
+ y: 23,
2610
+ style: e.highlight ? { fill: o } : void 0,
2611
+ children: e.sublabel
2612
+ }),
2613
+ e.values.map((e, t) => {
2614
+ let i = b > 0 && Number.isFinite(e) ? Math.max(0, e) / b * n : 0, a = _?.[0] === r && _[1] === t;
2615
+ return /* @__PURE__ */ f("rect", {
2616
+ className: a ? yt.barHovered : yt.bar,
2617
+ style: { fill: a ? void 0 : o },
2618
+ x: E(r, t) - (a ? 1.5 : 1),
2619
+ y: S - i,
2620
+ width: a ? 3 : 2,
2621
+ height: i
2622
+ }, t);
2623
+ }),
2624
+ /* @__PURE__ */ f("rect", {
2625
+ className: yt.band,
2626
+ style: e.highlight ? { fill: o } : void 0,
2627
+ x: i,
2628
+ y: S + 4,
2629
+ width: a,
2630
+ height: St
2631
+ }),
2632
+ t && e.values.map((e, n) => n % O === 0 ? /* @__PURE__ */ f("text", {
2633
+ className: yt.tick,
2634
+ x: k(r, n),
2635
+ y: x - 5,
2636
+ textAnchor: "middle",
2637
+ children: t[n]
2638
+ }, `l${n}`) : null)
2639
+ ] }, r);
2640
+ })
2641
+ }), j]
2642
+ });
2643
+ }
2644
+ var Y = {
2645
+ canvas: "_canvas_1c512_2",
2646
+ sheet: "_sheet_1c512_10",
2647
+ edges: "_edges_1c512_17",
2648
+ edge: "_edge_1c512_17",
2649
+ edgeLit: "_edgeLit_1c512_31",
2650
+ slot: "_slot_1c512_37",
2651
+ pill: "_pill_1c512_44",
2652
+ pillPath: "_pillPath_1c512_71",
2653
+ pillSelected: "_pillSelected_1c512_75",
2654
+ muted: "_muted_1c512_82",
2655
+ name: "_name_1c512_86",
2656
+ chip: "_chip_1c512_93",
2657
+ mark: "_mark_1c512_111",
2658
+ toggle: "_toggle_1c512_122",
2659
+ disclosure: "_disclosure_1c512_128",
2660
+ more: "_more_1c512_141",
2661
+ listWrap: "_listWrap_1c512_160",
2662
+ list: "_list_1c512_160",
2663
+ row: "_row_1c512_171",
2664
+ rowSelected: "_rowSelected_1c512_180",
2665
+ rowName: "_rowName_1c512_184",
2666
+ disclosureSpace: "_disclosureSpace_1c512_205",
2667
+ empty: "_empty_1c512_211"
2668
+ }, Tt = 44, Et = 56, Dt = 24, Ot = 7, kt = 10;
2669
+ function At(e, t) {
2670
+ let n = e.label.length * Ot, r = e.count == null ? 0 : (t ? t(e.count) : e.count.toLocaleString()).length * 6 + kt + 8, i = (e.marks?.length ?? 0) * 20, a = e.children?.length ? 18 : 0;
2671
+ return Dt + n + r + i + a;
2672
+ }
2673
+ function jt({ roots: e, selected: t, onSelect: n, defaultExpanded: r, view: a = "tree", maxChildren: o = 50, format: d, visible: m, zoom: h = 1, openDepth: g, "aria-label": _, className: v = "" }) {
2674
+ let [y, b] = u(() => new Set(r ?? e.map((e) => e.id))), [x, w] = u(() => /* @__PURE__ */ new Set());
2675
+ i(() => {
2676
+ if (g == null) return;
2677
+ let t = /* @__PURE__ */ new Set(), n = (e, r) => {
2678
+ r < g - 1 && e.children?.length && (t.add(e.id), e.children.forEach((e) => n(e, r + 1)));
2679
+ };
2680
+ e.forEach((e) => n(e, 0)), b(t);
2681
+ }, [g, e]);
2682
+ let [T, E] = u(() => /* @__PURE__ */ new Map()), D = l(null);
2683
+ s(() => {
2684
+ let e = D.current;
2685
+ if (!e) return;
2686
+ let t = !1, n = new Map(T);
2687
+ e.querySelectorAll("[data-node]").forEach((e) => {
2688
+ let r = Math.ceil(e.getBoundingClientRect().width / h), i = e.dataset.node;
2689
+ r > 0 && n.get(i) !== r && (n.set(i, r), t = !0);
2690
+ }), t && E(n);
2691
+ });
2692
+ let O = (e) => b((t) => {
2693
+ let n = new Set(t);
2694
+ return n.has(e) ? n.delete(e) : n.add(e), n;
2695
+ }), k = (e) => {
2696
+ n?.(e.id), e.children?.length && !N(e.id) && b((t) => new Set(t).add(e.id));
2697
+ }, A = c(() => {
2698
+ let n = /* @__PURE__ */ new Set(), r = (e, i) => e.id === t ? (i.forEach((e) => n.add(e)), n.add(e.id), !0) : !!e.children?.some((t) => r(t, [...i, e.id]));
2699
+ return e.forEach((e) => r(e, [])), n;
2700
+ }, [e, t]), { tree: j, opened: M } = c(() => {
2701
+ if (!m) return {
2702
+ tree: e,
2703
+ opened: null
2704
+ };
2705
+ let t = /* @__PURE__ */ new Set(), n = (e) => {
2706
+ let r = e.children?.map(n).filter((e) => !!e) ?? [], i = m(e);
2707
+ return !i && r.length === 0 ? null : (r.length && t.add(e.id), {
2708
+ ...e,
2709
+ children: r.length ? r : void 0,
2710
+ muted: e.muted || !i
2711
+ });
2712
+ };
2713
+ return {
2714
+ tree: e.map(n).filter((e) => !!e),
2715
+ opened: t
2716
+ };
2717
+ }, [e, m]), N = (e) => y.has(e) || (M?.has(e) ?? !1), { placed: P, columns: F, height: I } = c(() => {
2718
+ let e = [], t = [], n = 0, r = (i, a, s) => {
2719
+ let c = !!i.children?.length && N(i.id), l = c ? x.has(i.id) ? i.children : i.children.slice(0, o) : [], u = c ? i.children.length - l.length : 0, f = {
2720
+ node: i,
2721
+ depth: a,
2722
+ x: 0,
2723
+ y: 0,
2724
+ width: T.get(i.id) ?? At(i, d),
2725
+ parent: s,
2726
+ open: c,
2727
+ more: u
2728
+ };
2729
+ if (t[a] = Math.max(t[a] ?? 0, f.width), e.push(f), l.length) {
2730
+ let e = l.map((e) => r(e, a + 1, f));
2731
+ f.y = (e[0].y + e[e.length - 1].y) / 2, u > 0 && (n += 1);
2732
+ } else f.y = n * Tt + Tt / 2, n += 1;
2733
+ return f;
2734
+ };
2735
+ j.forEach((e) => r(e, 0));
2736
+ let i = [], a = 0;
2737
+ return t.forEach((e, t) => {
2738
+ i[t] = a, a += e + Et;
2739
+ }), e.forEach((e) => {
2740
+ e.x = i[e.depth];
2741
+ }), {
2742
+ placed: e,
2743
+ columns: i,
2744
+ height: Math.max(n, 1) * Tt
2745
+ };
2746
+ }, [
2747
+ j,
2748
+ M,
2749
+ y,
2750
+ x,
2751
+ o,
2752
+ d,
2753
+ T
2754
+ ]), ee = F.length ? F[F.length - 1] + Math.max(...P.filter((e) => e.depth === F.length - 1).map((e) => e.width)) : 0, L = P.map((e) => e.node.id), te = (e, t) => {
2755
+ let n = L.indexOf(t.node.id), r;
2756
+ if (e.key === "ArrowDown") r = L[Math.min(L.length - 1, n + 1)];
2757
+ else if (e.key === "ArrowUp") r = L[Math.max(0, n - 1)];
2758
+ else if (e.key === "ArrowRight") {
2759
+ if (t.node.children?.length && !t.open) {
2760
+ O(t.node.id), e.preventDefault();
2761
+ return;
2762
+ }
2763
+ r = P.find((e) => e.parent === t)?.node.id;
2764
+ } else if (e.key === "ArrowLeft") {
2765
+ if (t.open) {
2766
+ O(t.node.id), e.preventDefault();
2767
+ return;
2768
+ }
2769
+ r = t.parent?.node.id;
2770
+ } else if (e.key === "Enter" || e.key === " ") {
2771
+ k(t.node), e.preventDefault();
2772
+ return;
2773
+ } else e.key === "Home" ? r = L[0] : e.key === "End" && (r = L[L.length - 1]);
2774
+ r && (e.preventDefault(), (e.currentTarget.parentElement?.querySelector(`[data-node="${CSS.escape(r)}"]`))?.focus());
2775
+ };
2776
+ if (a === "list") {
2777
+ let e = ({ nodes: n, depth: r }) => /* @__PURE__ */ f("ul", {
2778
+ className: Y.list,
2779
+ role: r === 0 ? "tree" : "group",
2780
+ "aria-label": r === 0 ? _ : void 0,
2781
+ children: n.map((n) => {
2782
+ let i = N(n.id), a = n.id === t;
2783
+ return /* @__PURE__ */ p("li", {
2784
+ role: "treeitem",
2785
+ "aria-expanded": n.children?.length ? i : void 0,
2786
+ "aria-selected": a,
2787
+ children: [/* @__PURE__ */ p("div", {
2788
+ className: `${Y.row} ${a ? Y.rowSelected : ""} ${n.muted ? Y.muted : ""}`,
2789
+ style: { paddingLeft: 8 + r * 18 },
2790
+ children: [
2791
+ n.children?.length ? /* @__PURE__ */ f("span", {
2792
+ className: Y.disclosure,
2793
+ children: /* @__PURE__ */ f(R, {
2794
+ variant: "secondary",
2795
+ size: "micro",
2796
+ "aria-label": i ? "Close" : "Open",
2797
+ iconLeft: f(i ? S : C, {}),
2798
+ onClick: () => O(n.id)
2799
+ })
2800
+ }) : /* @__PURE__ */ f("span", { className: Y.disclosureSpace }),
2801
+ /* @__PURE__ */ f("button", {
2802
+ type: "button",
2803
+ className: Y.rowName,
2804
+ onClick: () => k(n),
2805
+ children: n.label
2806
+ }),
2807
+ n.count != null && /* @__PURE__ */ f("span", {
2808
+ className: Y.chip,
2809
+ children: d ? d(n.count) : n.count.toLocaleString()
2810
+ }),
2811
+ n.marks?.map((e, t) => /* @__PURE__ */ f("span", {
2812
+ className: Y.mark,
2813
+ title: e.title,
2814
+ children: e.icon
2815
+ }, t))
2816
+ ]
2817
+ }), n.children?.length && i ? /* @__PURE__ */ f(e, {
2818
+ nodes: n.children,
2819
+ depth: r + 1
2820
+ }) : null]
2821
+ }, n.id);
2822
+ })
2823
+ });
2824
+ return /* @__PURE__ */ f("div", {
2825
+ className: `${Y.listWrap} ${v}`,
2826
+ children: /* @__PURE__ */ f(e, {
2827
+ nodes: j,
2828
+ depth: 0
2829
+ })
2830
+ });
2831
+ }
2832
+ return /* @__PURE__ */ p("div", {
2833
+ className: `${Y.canvas} ${v}`,
2834
+ role: "tree",
2835
+ "aria-label": _,
2836
+ children: [P.length === 0 && /* @__PURE__ */ f("div", {
2837
+ className: Y.empty,
2838
+ children: "Nothing matches"
2839
+ }), /* @__PURE__ */ p("div", {
2840
+ ref: D,
2841
+ className: Y.sheet,
2842
+ style: {
2843
+ width: ee,
2844
+ height: I,
2845
+ transform: h === 1 ? void 0 : `scale(${h})`,
2846
+ marginRight: h === 1 ? void 0 : -(ee + 32) * (1 - h),
2847
+ marginBottom: h === 1 ? void 0 : -(I + 32) * (1 - h)
2848
+ },
2849
+ children: [/* @__PURE__ */ f("svg", {
2850
+ className: Y.edges,
2851
+ width: ee,
2852
+ height: I,
2853
+ "aria-hidden": "true",
2854
+ children: P.filter((e) => e.parent).map((e) => {
2855
+ let t = e.parent, n = t.x + t.width, r = t.y, i = e.x, a = e.y, o = (i - n) / 2;
2856
+ return /* @__PURE__ */ f("path", {
2857
+ className: A.has(e.node.id) && A.has(t.node.id) ? Y.edgeLit : Y.edge,
2858
+ d: `M ${n} ${r} C ${n + o} ${r}, ${i - o} ${a}, ${i} ${a}`
2859
+ }, e.node.id);
2860
+ })
2861
+ }), P.map((e) => {
2862
+ let n = e.node, r = n.id === t, i = A.has(n.id) && !r;
2863
+ return /* @__PURE__ */ p("div", {
2864
+ className: Y.slot,
2865
+ style: {
2866
+ left: e.x,
2867
+ top: e.y - 15
2868
+ },
2869
+ children: [/* @__PURE__ */ p("div", {
2870
+ role: "treeitem",
2871
+ tabIndex: 0,
2872
+ "aria-selected": r,
2873
+ "aria-expanded": n.children?.length ? e.open : void 0,
2874
+ "aria-level": e.depth + 1,
2875
+ "data-node": n.id,
2876
+ className: `${Y.pill} ${r ? Y.pillSelected : ""} ${i ? Y.pillPath : ""} ${n.muted ? Y.muted : ""}`,
2877
+ onClick: () => k(n),
2878
+ onKeyDown: (t) => te(t, e),
2879
+ children: [
2880
+ /* @__PURE__ */ f("span", {
2881
+ className: Y.name,
2882
+ children: n.label
2883
+ }),
2884
+ n.count != null && /* @__PURE__ */ f("span", {
2885
+ className: Y.chip,
2886
+ children: d ? d(n.count) : n.count.toLocaleString()
2887
+ }),
2888
+ n.marks?.map((e, t) => /* @__PURE__ */ f("span", {
2889
+ className: Y.mark,
2890
+ title: e.title,
2891
+ children: e.icon
2892
+ }, t)),
2893
+ n.children?.length ? /* @__PURE__ */ f("span", {
2894
+ className: Y.toggle,
2895
+ onClick: (e) => e.stopPropagation(),
2896
+ children: /* @__PURE__ */ f(R, {
2897
+ variant: "ghost",
2898
+ size: "micro",
2899
+ tabIndex: -1,
2900
+ "aria-label": e.open ? "Close" : "Open",
2901
+ iconLeft: e.open ? /* @__PURE__ */ f(S, {}) : /* @__PURE__ */ f(C, {}),
2902
+ onClick: () => O(n.id)
2903
+ })
2904
+ }) : null
2905
+ ]
2906
+ }), e.more > 0 && /* @__PURE__ */ p("button", {
2907
+ type: "button",
2908
+ className: Y.more,
2909
+ style: {
2910
+ left: (F[e.depth + 1] ?? e.x + e.width + Et) - e.x,
2911
+ top: (Mt(P, e) + 1) * Tt - (e.y - 15)
2912
+ },
2913
+ onClick: () => w((e) => new Set(e).add(n.id)),
2914
+ children: [
2915
+ "and ",
2916
+ e.more,
2917
+ " more"
2918
+ ]
2919
+ })]
2920
+ }, n.id);
2921
+ })]
2922
+ })]
2923
+ });
2924
+ }
2925
+ function Mt(e, t) {
2926
+ let n = e.filter((e) => e.parent === t), r = n[n.length - 1];
2927
+ return Math.round(r ? (r.y - Tt / 2) / Tt : (t.y - Tt / 2) / Tt);
2928
+ }
2929
+ var Nt = {
1370
2930
  chip: "_chip_iaxe0_1",
1371
2931
  large: "_large_iaxe0_14"
1372
2932
  };
1373
2933
  //#endregion
1374
2934
  //#region src/components/Chip/Chip.tsx
1375
- function Pe({ children: t, color: n, textColor: r, className: i, icon: a, size: o = "default" }) {
2935
+ function Pt({ children: t, color: n, textColor: r, className: i, icon: a, size: o = "default" }) {
1376
2936
  let s = {};
1377
- return n && (s.backgroundColor = n), r && (s.color = r), /* @__PURE__ */ f("span", {
2937
+ return n && (s.backgroundColor = n), r && (s.color = r), /* @__PURE__ */ p("span", {
1378
2938
  className: [
1379
- Ne.chip,
2939
+ Nt.chip,
1380
2940
  "indx-chip",
1381
- o === "large" && Ne.large,
2941
+ o === "large" && Nt.large,
1382
2942
  i
1383
2943
  ].filter(Boolean).join(" "),
1384
2944
  style: s,
@@ -1388,7 +2948,7 @@ function Pe({ children: t, color: n, textColor: r, className: i, icon: a, size:
1388
2948
  }), t]
1389
2949
  });
1390
2950
  }
1391
- var G = {
2951
+ var Ft = {
1392
2952
  root: "_root_ok48u_3",
1393
2953
  icon: "_icon_ok48u_16",
1394
2954
  body: "_body_ok48u_17",
@@ -1399,303 +2959,522 @@ var G = {
1399
2959
  success: "_success_ok48u_24",
1400
2960
  warning: "_warning_ok48u_25",
1401
2961
  destructive: "_destructive_ok48u_26"
1402
- }, Fe = {
1403
- success: /* @__PURE__ */ d(h, {}),
1404
- warning: /* @__PURE__ */ d(T, {}),
1405
- destructive: /* @__PURE__ */ d(T, {})
2962
+ }, It = {
2963
+ success: /* @__PURE__ */ f(g, {}),
2964
+ warning: /* @__PURE__ */ f(E, {}),
2965
+ destructive: /* @__PURE__ */ f(E, {})
1406
2966
  };
1407
- function Ie(t) {
2967
+ function Lt(t) {
1408
2968
  return e.isValidElement(t) ? e.cloneElement(t, {
1409
2969
  size: 14,
1410
2970
  color: "currentColor"
1411
2971
  }) : t;
1412
2972
  }
1413
- var Le = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
1414
- let a = t === void 0 ? Fe[e] : t;
1415
- return /* @__PURE__ */ f("div", {
2973
+ var Rt = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
2974
+ let a = t === void 0 ? It[e] : t;
2975
+ return /* @__PURE__ */ p("div", {
1416
2976
  role: i ?? (e === "destructive" || e === "warning" ? "alert" : "status"),
1417
- className: `${G.root} ${G[e]} ${n}`,
1418
- children: [a && /* @__PURE__ */ d("span", {
1419
- className: G.icon,
2977
+ className: `${Ft.root} ${Ft[e]} ${n}`,
2978
+ children: [a && /* @__PURE__ */ f("span", {
2979
+ className: Ft.icon,
1420
2980
  "aria-hidden": "true",
1421
- children: Ie(a)
1422
- }), /* @__PURE__ */ d("div", {
1423
- className: G.body,
2981
+ children: Lt(a)
2982
+ }), /* @__PURE__ */ f("div", {
2983
+ className: Ft.body,
1424
2984
  children: r
1425
2985
  })]
1426
2986
  });
1427
- }, Re = ({ children: e, className: t = "" }) => /* @__PURE__ */ d("div", {
1428
- className: `${G.title} ${t}`,
2987
+ }, zt = ({ children: e, className: t = "" }) => /* @__PURE__ */ f("div", {
2988
+ className: `${Ft.title} ${t}`,
1429
2989
  children: e
1430
- }), ze = ({ children: e, className: t = "" }) => /* @__PURE__ */ d("div", {
1431
- className: `${G.description} ${t}`,
2990
+ }), Bt = ({ children: e, className: t = "" }) => /* @__PURE__ */ f("div", {
2991
+ className: `${Ft.description} ${t}`,
1432
2992
  children: e
1433
- }), Be = {
2993
+ }), Vt = {
1434
2994
  root: "_root_1aak8_10",
1435
2995
  main: "_main_1aak8_33",
1436
2996
  aside: "_aside_1aak8_34",
1437
2997
  message: "_message_1aak8_41"
1438
- }, Ve = ({ visible: e = !0, message: t, aside: n, children: r, className: i = "", "aria-label": a = "Unsaved changes" }) => e ? /* @__PURE__ */ f("div", {
2998
+ }, Ht = ({ visible: e = !0, message: t, aside: n, children: r, className: i = "", "aria-label": a = "Unsaved changes" }) => e ? /* @__PURE__ */ p("div", {
1439
2999
  role: "region",
1440
3000
  "aria-label": a,
1441
- className: `${Be.root} ${i}`,
1442
- children: [/* @__PURE__ */ f("div", {
1443
- className: Be.main,
1444
- children: [r, t && /* @__PURE__ */ d("span", {
1445
- className: Be.message,
3001
+ className: `${Vt.root} ${i}`,
3002
+ children: [/* @__PURE__ */ p("div", {
3003
+ className: Vt.main,
3004
+ children: [r, t && /* @__PURE__ */ f("span", {
3005
+ className: Vt.message,
1446
3006
  children: t
1447
3007
  })]
1448
- }), n && /* @__PURE__ */ d("div", {
1449
- className: Be.aside,
3008
+ }), n && /* @__PURE__ */ f("div", {
3009
+ className: Vt.aside,
1450
3010
  children: n
1451
3011
  })]
1452
- }) : null, He = {
3012
+ }) : null, Ut = {
1453
3013
  tooltip: "_tooltip_1de7z_1",
1454
3014
  arrow: "_arrow_1de7z_13"
1455
3015
  };
1456
3016
  //#endregion
1457
3017
  //#region src/components/Tooltip/Tooltip.tsx
1458
- function Ue({ content: e, position: t = "top", children: n, className: r }) {
1459
- return /* @__PURE__ */ d(A.Provider, {
3018
+ function Wt({ content: e, position: t = "top", children: n, className: r }) {
3019
+ return /* @__PURE__ */ f(j.Provider, {
1460
3020
  delayDuration: 80,
1461
- children: /* @__PURE__ */ f(A.Root, { children: [/* @__PURE__ */ d(A.Trigger, {
3021
+ children: /* @__PURE__ */ p(j.Root, { children: [/* @__PURE__ */ f(j.Trigger, {
1462
3022
  asChild: !0,
1463
3023
  children: n
1464
- }), /* @__PURE__ */ d(A.Portal, { children: /* @__PURE__ */ f(A.Content, {
3024
+ }), /* @__PURE__ */ f(j.Portal, { children: /* @__PURE__ */ p(j.Content, {
1465
3025
  side: t,
1466
3026
  sideOffset: 7,
1467
- className: [He.tooltip, r].filter(Boolean).join(" "),
1468
- children: [e, /* @__PURE__ */ d(A.Arrow, { className: He.arrow })]
3027
+ className: [Ut.tooltip, r].filter(Boolean).join(" "),
3028
+ children: [e, /* @__PURE__ */ f(j.Arrow, { className: Ut.arrow })]
1469
3029
  }) })] })
1470
3030
  });
1471
3031
  }
1472
- var K = {
1473
- wrapper: "_wrapper_1wrxy_1",
1474
- chart: "_chart_1wrxy_8",
1475
- svg: "_svg_1wrxy_33",
1476
- tooltip: "_tooltip_1wrxy_41",
1477
- tooltipLabel: "_tooltipLabel_1wrxy_51",
1478
- tooltipRow: "_tooltipRow_1wrxy_59",
1479
- tooltipDot: "_tooltipDot_1wrxy_66",
1480
- tooltipName: "_tooltipName_1wrxy_72",
1481
- tooltipValue: "_tooltipValue_1wrxy_78",
1482
- legend: "_legend_1wrxy_85",
1483
- legendItem: "_legendItem_1wrxy_92",
1484
- legendMark: "_legendMark_1wrxy_98",
1485
- legendLabel: "_legendLabel_1wrxy_104",
1486
- marker: "_marker_1wrxy_111",
1487
- tooltipMarker: "_tooltipMarker_1wrxy_115",
1488
- markerDot: "_markerDot_1wrxy_119"
1489
- }, We = "var(--lv4)", q = 12, Ge = 20, Ke = 8, qe = 28, J = 20;
1490
- function Je(e) {
3032
+ var X = {
3033
+ wrapper: "_wrapper_zc98n_1",
3034
+ chart: "_chart_zc98n_8",
3035
+ svg: "_svg_zc98n_33",
3036
+ tooltip: "_tooltip_zc98n_41",
3037
+ tooltipLabel: "_tooltipLabel_zc98n_51",
3038
+ tooltipRow: "_tooltipRow_zc98n_59",
3039
+ tooltipDot: "_tooltipDot_zc98n_66",
3040
+ tooltipName: "_tooltipName_zc98n_72",
3041
+ tooltipValue: "_tooltipValue_zc98n_79",
3042
+ tooltipRange: "_tooltipRange_zc98n_86",
3043
+ tooltipRangeValue: "_tooltipRangeValue_zc98n_90",
3044
+ tooltipTotal: "_tooltipTotal_zc98n_96",
3045
+ legend: "_legend_zc98n_103",
3046
+ legendItem: "_legendItem_zc98n_110",
3047
+ legendMark: "_legendMark_zc98n_116",
3048
+ legendSwatch: "_legendSwatch_zc98n_123",
3049
+ legendLabel: "_legendLabel_zc98n_128",
3050
+ marker: "_marker_zc98n_135",
3051
+ tooltipMarker: "_tooltipMarker_zc98n_139",
3052
+ markerDot: "_markerDot_zc98n_143"
3053
+ }, Gt = "var(--lv4)", Kt = 12, qt = 20, Jt = 8, Yt = 28, Xt = 20, Zt = {
3054
+ hatch: [
3055
+ [
3056
+ 0,
3057
+ 3,
3058
+ 1,
3059
+ 1
3060
+ ],
3061
+ [
3062
+ 1,
3063
+ 2,
3064
+ 1,
3065
+ 1
3066
+ ],
3067
+ [
3068
+ 2,
3069
+ 1,
3070
+ 1,
3071
+ 1
3072
+ ],
3073
+ [
3074
+ 3,
3075
+ 0,
3076
+ 1,
3077
+ 1
3078
+ ]
3079
+ ],
3080
+ dots: [[
3081
+ 0,
3082
+ 0,
3083
+ 2,
3084
+ 2
3085
+ ]],
3086
+ checker: [[
3087
+ 0,
3088
+ 0,
3089
+ 2,
3090
+ 2
3091
+ ], [
3092
+ 2,
3093
+ 2,
3094
+ 2,
3095
+ 2
3096
+ ]]
3097
+ }, Qt = .14, $t = "var(--CSignal)";
3098
+ function en(e, t = 4) {
3099
+ let n = e / t || 1, r = 10 ** Math.floor(Math.log10(n)), i = n / r;
3100
+ return (i <= 1 ? 1 : i <= 2 ? 2 : i <= 5 ? 5 : 10) * r;
3101
+ }
3102
+ function tn(e) {
3103
+ let t = Math.abs(e);
3104
+ return t >= 1e6 ? `${nn(e / 1e6)}M` : t >= 1e3 ? `${nn(e / 1e3)}k` : nn(e);
3105
+ }
3106
+ function nn(e) {
3107
+ return e.toLocaleString(void 0, { maximumFractionDigits: Math.abs(e) < 10 ? 2 : 1 });
3108
+ }
3109
+ function rn(e) {
1491
3110
  return Number.isInteger(e) ? String(e) : e.toLocaleString(void 0, { maximumFractionDigits: 2 });
1492
3111
  }
1493
- function Ye({ series: e, labels: t, type: n = "line", height: a = 200, showLegend: o = !0, className: s, markers: u }) {
1494
- let p = c(null), [m, h] = l(0), [g, _] = l(null);
3112
+ function an({ series: t, labels: n, type: o = "line", height: s = 200, showLegend: c = !0, className: m, markers: h, yAxis: g = "none", yFormat: _ = tn, references: v, stacked: y = !1 }) {
3113
+ let b = y && o === "bar", x = l(null), S = a(), [C, w] = u(0), [T, E] = u(null);
1495
3114
  i(() => {
1496
- let e = p.current;
3115
+ let e = x.current;
1497
3116
  if (!e) return;
1498
- let t = new ResizeObserver(([e]) => h(e.contentRect.width));
1499
- return t.observe(e), h(e.clientWidth), () => t.disconnect();
3117
+ let t = new ResizeObserver(([e]) => w(e.contentRect.width));
3118
+ return t.observe(e), w(e.clientWidth), () => t.disconnect();
1500
3119
  }, []);
1501
- let v = t?.length ? qe : Ke, y = Math.max(m - J - Ge, 0), b = Math.max(a - q - v, 0), x = e.flatMap((e) => e.data.filter(Number.isFinite)), S = x.length ? Math.max(...x, 0) : 1, C = n === "bar" ? 0 : Math.min(...x, 0), w = S - C || 1, T = Math.max(...e.map((e) => e.data.length), 0), E = (() => {
1502
- if (!t || t.length <= 1 || y <= 0) return 1;
1503
- let e = Math.max(...t.map((e) => e.length)) * 6 + 12, n = Math.max(Math.floor(y / e), 1);
1504
- return Math.ceil(t.length / n);
1505
- })(), D = T <= 1 || y / (T - 1) >= 12, O = (e) => q + (1 - (e - C) / w) * b, k = (e) => T <= 1 ? J + y / 2 : J + e / (T - 1) * y, A = r((e) => {
1506
- if (T === 0) return;
1507
- let t = e.currentTarget.getBoundingClientRect(), r = e.clientX - t.left, i = e.clientY - t.top;
1508
- if (n === "line") {
1509
- let e = Math.round((r - J) / y * (T - 1));
1510
- _({
1511
- index: Math.max(0, Math.min(T - 1, e)),
1512
- x: r,
1513
- y: i
3120
+ let D = n?.length ? Yt : Jt, O = Math.max(s - Kt - D, 0), k = Math.max(...t.map((e) => e.data.length), 0), A = b ? Array.from({ length: k }, (e, n) => t.reduce((e, t) => e + Math.max(0, t.data[n] ?? 0), 0)) : [], j = b ? A : t.flatMap((e) => [...e.data, ...o === "line" ? [...e.low ?? [], ...e.high ?? []] : []].filter(Number.isFinite)), M = (v ?? []).map((e) => e.value).filter(Number.isFinite), N = j.length || M.length ? Math.max(...j, ...M, 0) : 1, P = o === "bar" ? Math.min(0, ...M) : Math.min(...j, ...M, 0), F = g !== "none", I = en(N - P);
3121
+ F && (N = Math.ceil(N / I - 1e-9) * I, P = Math.floor(P / I + 1e-9) * I);
3122
+ let ee = N - P || 1, L = [];
3123
+ if (F) for (let e = P; e <= N + I / 2; e += I) L.push(Number(e.toFixed(10)));
3124
+ let R = (e) => e.label ?? _(e.value), te = F ? Math.max(...L.map((e) => _(e).length)) * 6 + 10 : 0, ne = v?.length ? Math.max(...v.map((e) => R(e).length)) * 6 + 8 : 0, z = g === "left" ? te + 4 : Xt, re = Math.max(g === "right" ? te + 4 : qt, ne ? ne + 6 : 0), B = Math.max(C - z - re, 0), V = Math.max(...t.map((e) => e.data.length), 0), ie = (() => {
3125
+ if (!n || n.length <= 1 || B <= 0) return 1;
3126
+ let e = Math.max(...n.map((e) => e.length)) * 6 + 12, t = Math.max(Math.floor(B / e), 1);
3127
+ return Math.ceil(n.length / t);
3128
+ })(), ae = V <= 1 || B / (V - 1) >= 12, oe = (e) => Kt + (1 - (e - P) / ee) * O, se = oe(Math.max(P, 0)), ce = (e, t, n = e.length) => {
3129
+ let r = [];
3130
+ for (let i = 0; i < n; i++) t && i > 0 && r.push(`${he(i).toFixed(2)},${oe(e[i - 1]).toFixed(2)}`), r.push(`${he(i).toFixed(2)},${oe(e[i]).toFixed(2)}`);
3131
+ return r;
3132
+ }, le = (v ?? []).filter((e) => e.signal && Number.isFinite(e.value)), ue = le.length ? oe(Math.min(...le.map((e) => e.value))) : null, de = `${S}-signal`, fe = (e) => e.fill ?? (o === "bar" ? "solid" : "none"), H = (e) => e.color ?? (o === "bar" ? "var(--chart-bar)" : Gt), pe = (e) => `url(#${S}-${e})`, me = (e, t) => {
3133
+ let n = fe(e);
3134
+ return n === "hatch" || n === "dots" || n === "checker" ? pe(t) : H(e);
3135
+ }, U = t.some((e) => fe(e) in Zt) ? /* @__PURE__ */ f("defs", { children: t.map((e, t) => {
3136
+ let n = fe(e);
3137
+ if (!(n in Zt)) return null;
3138
+ let r = Zt[n];
3139
+ return /* @__PURE__ */ f("pattern", {
3140
+ id: `${S}-${t}`,
3141
+ width: 4,
3142
+ height: 4,
3143
+ patternUnits: "userSpaceOnUse",
3144
+ children: r.map(([t, n, r, i], a) => /* @__PURE__ */ f("rect", {
3145
+ x: t,
3146
+ y: n,
3147
+ width: r,
3148
+ height: i,
3149
+ fill: H(e)
3150
+ }, a))
3151
+ }, t);
3152
+ }) }) : null, he = (e) => V <= 1 ? z + B / 2 : z + e / (V - 1) * B, ge = r((e) => {
3153
+ if (V === 0) return;
3154
+ let t = e.currentTarget.getBoundingClientRect(), n = e.clientX - t.left, r = e.clientY - t.top;
3155
+ if (o === "line") {
3156
+ let e = Math.round((n - z) / B * (V - 1));
3157
+ E({
3158
+ index: Math.max(0, Math.min(V - 1, e)),
3159
+ x: n,
3160
+ y: r
1514
3161
  });
1515
3162
  } else {
1516
- let e = y / T, t = Math.floor((r - J) / e);
1517
- _({
1518
- index: Math.max(0, Math.min(T - 1, t)),
1519
- x: r,
1520
- y: i
3163
+ let e = B / V, t = Math.floor((n - z) / e);
3164
+ E({
3165
+ index: Math.max(0, Math.min(V - 1, t)),
3166
+ x: n,
3167
+ y: r
1521
3168
  });
1522
3169
  }
1523
3170
  }, [
1524
- n,
1525
- T,
1526
- y
1527
- ]), j = r((e) => {
1528
- e.pointerType === "mouse" && _(null);
1529
- }, []), M = /* @__PURE__ */ d("line", {
1530
- x1: J,
1531
- y1: q + b * .5,
1532
- x2: J + y,
1533
- y2: q + b * .5,
3171
+ o,
3172
+ V,
3173
+ B
3174
+ ]), _e = r((e) => {
3175
+ e.pointerType === "mouse" && E(null);
3176
+ }, []), ve = F ? null : /* @__PURE__ */ f("line", {
3177
+ x1: z,
3178
+ y1: Kt + O * .5,
3179
+ x2: z + B,
3180
+ y2: Kt + O * .5,
1534
3181
  stroke: "var(--chart-midline)",
1535
3182
  strokeWidth: "0.5"
1536
- }), N = /* @__PURE__ */ d("line", {
1537
- x1: J,
1538
- y1: q + b,
1539
- x2: J + y,
1540
- y2: q + b,
3183
+ }), ye = (v ?? []).filter((e) => Number.isFinite(e.value)).map((e) => oe(e.value)), be = (e) => g === "right" && ye.some((t) => Math.abs(t - e) < 12), xe = F ? /* @__PURE__ */ f("g", { children: L.map((e) => {
3184
+ let t = oe(e), n = g === "left" ? z - 6 : z + B + 6;
3185
+ return /* @__PURE__ */ p("g", { children: [e !== P && /* @__PURE__ */ f("line", {
3186
+ x1: z,
3187
+ y1: t,
3188
+ x2: z + B,
3189
+ y2: t,
3190
+ stroke: "var(--chart-midline)",
3191
+ strokeWidth: "0.5"
3192
+ }), !be(t) && /* @__PURE__ */ f("text", {
3193
+ x: n,
3194
+ y: t + 3,
3195
+ textAnchor: g === "left" ? "end" : "start",
3196
+ fill: "var(--lv4)",
3197
+ style: { font: "var(--text-2xs)" },
3198
+ children: _(e)
3199
+ })] }, e);
3200
+ }) }) : null, Se = v?.filter((e) => Number.isFinite(e.value)).map((e, t) => {
3201
+ let n = oe(e.value), r = e.color ?? "var(--lv8)", i = R(e), a = i.length * 6 + 8;
3202
+ return /* @__PURE__ */ p("g", { children: [
3203
+ /* @__PURE__ */ f("line", {
3204
+ x1: z,
3205
+ y1: n,
3206
+ x2: z + B,
3207
+ y2: n,
3208
+ stroke: r,
3209
+ strokeWidth: "1",
3210
+ strokeDasharray: "3 3"
3211
+ }),
3212
+ /* @__PURE__ */ f("rect", {
3213
+ x: z + B + 4,
3214
+ y: n - 7,
3215
+ width: a,
3216
+ height: 14,
3217
+ fill: r
3218
+ }),
3219
+ /* @__PURE__ */ f("text", {
3220
+ x: z + B + 8,
3221
+ y: n + 3,
3222
+ fill: "var(--lv0)",
3223
+ style: { font: "var(--text-2xs)" },
3224
+ children: i
3225
+ })
3226
+ ] }, t);
3227
+ }), W = /* @__PURE__ */ f("line", {
3228
+ x1: z,
3229
+ y1: Kt + O,
3230
+ x2: z + B,
3231
+ y2: Kt + O,
1541
3232
  stroke: "var(--chart-baseline)",
1542
3233
  strokeWidth: "1"
1543
- }), P = g && n === "bar" ? (() => {
1544
- let e = y / T;
1545
- return /* @__PURE__ */ d("rect", {
1546
- x: J + g.index * e,
1547
- y: q,
3234
+ }), Ce = T && o === "bar" ? (() => {
3235
+ let e = B / V;
3236
+ return /* @__PURE__ */ f("rect", {
3237
+ x: z + T.index * e,
3238
+ y: Kt,
1548
3239
  width: e,
1549
- height: b,
3240
+ height: O,
1550
3241
  fill: "var(--chart-column-hover)"
1551
3242
  });
1552
- })() : null, ee = () => e.map((e, t) => {
1553
- if (!e.data.length) return null;
1554
- let n = e.color ?? We;
1555
- return /* @__PURE__ */ f("g", { children: [/* @__PURE__ */ d("polyline", {
1556
- points: e.data.map((e, t) => `${k(t).toFixed(2)},${O(e).toFixed(2)}`).join(" "),
1557
- fill: "none",
1558
- stroke: n,
1559
- strokeWidth: "1",
1560
- strokeLinejoin: "round",
1561
- strokeLinecap: "round"
1562
- }), e.data.map((e, t) => {
1563
- let r = g?.index === t;
1564
- if (!r && !D) return null;
1565
- let i = r ? D ? 10 : 7 : 5, a = i / 2;
1566
- return /* @__PURE__ */ d("rect", {
1567
- x: k(t) - a,
1568
- y: O(e) - a,
3243
+ })() : null, we = (e) => t.map((t, n) => {
3244
+ if (!t.data.length) return null;
3245
+ let r = e ?? t.color ?? Gt, i = ce(t.data, t.step).join(" "), a = fe(t), o = !e && !!(t.low && t.high && t.low.length && t.high.length);
3246
+ return /* @__PURE__ */ p("g", { children: [
3247
+ o ? (() => {
3248
+ let e = Math.min(t.data.length, t.low.length, t.high.length);
3249
+ if (e < 2) return null;
3250
+ let i = ce(t.high, t.step, e), o = ce(t.low, t.step, e).reverse(), s = a in Zt;
3251
+ return /* @__PURE__ */ f("polygon", {
3252
+ points: [...i, ...o].join(" "),
3253
+ fill: s ? pe(n) : r,
3254
+ fillOpacity: s ? 1 : Qt,
3255
+ stroke: "none"
3256
+ });
3257
+ })() : null,
3258
+ !e && !o && a !== "none" && t.data.length > 1 ? /* @__PURE__ */ f("polygon", {
3259
+ points: `${he(0).toFixed(2)},${se.toFixed(2)} ${i} ${he(t.data.length - 1).toFixed(2)},${se.toFixed(2)}`,
3260
+ fill: me(t, n),
3261
+ fillOpacity: a === "solid" ? Qt : 1,
3262
+ stroke: "none"
3263
+ }) : null,
3264
+ /* @__PURE__ */ f("polyline", {
3265
+ points: i,
3266
+ fill: "none",
3267
+ stroke: r,
3268
+ strokeWidth: "1",
3269
+ strokeLinejoin: "round",
3270
+ strokeLinecap: "round"
3271
+ }),
3272
+ t.data.map((e, t) => {
3273
+ let n = T?.index === t;
3274
+ if (!n && !ae) return null;
3275
+ let i = n ? ae ? 10 : 7 : 5, a = i / 2;
3276
+ return /* @__PURE__ */ f("rect", {
3277
+ x: he(t) - a,
3278
+ y: oe(e) - a,
3279
+ width: i,
3280
+ height: i,
3281
+ fill: r
3282
+ }, t);
3283
+ })
3284
+ ] }, `${e ? "signal-" : ""}${n}`);
3285
+ }), Te = (e) => {
3286
+ if (!V) return null;
3287
+ let n = b ? 1 : t.length, r = B / V, i = Math.max((r - 2 * (n + 1)) / n, 2), a = Kt + O, o = Array(V).fill(0);
3288
+ return t.map((t, n) => t.data.map((s, c) => {
3289
+ let l = b ? z + c * r + 2 : z + c * r + 2 + n * (i + 2), u = b ? Math.max(0, s) : s, d = b ? o[c] : 0;
3290
+ b && (o[c] += u);
3291
+ let p = oe(d + u);
3292
+ return /* @__PURE__ */ f("rect", {
3293
+ x: l,
3294
+ y: p,
1569
3295
  width: i,
1570
- height: i,
1571
- fill: n
1572
- }, t);
1573
- })] }, t);
1574
- }), te = () => {
1575
- if (!T) return null;
1576
- let t = e.length, n = y / T, r = Math.max((n - 2 * (t + 1)) / t, 2), i = q + b;
1577
- return e.map((e, t) => e.data.map((a, o) => {
1578
- let s = J + o * n + 2 + t * (r + 2), c = O(a);
1579
- return /* @__PURE__ */ d("rect", {
1580
- x: s,
1581
- y: c,
1582
- width: r,
1583
- height: Math.max(i - c, 0),
1584
- fill: e.color ?? "var(--chart-bar)"
1585
- }, `${t}-${o}`);
3296
+ height: Math.max(b ? oe(d) - p : a - p, 0),
3297
+ fill: e ?? me(t, n)
3298
+ }, `${e ? "signal-" : ""}${n}-${c}`);
1586
3299
  }));
1587
- }, F = () => {
1588
- if (!t?.length) return null;
1589
- let e = q + b + 18, r = t.length - 1;
1590
- return t.map((t, i) => (r - i) % E === 0 ? /* @__PURE__ */ d("text", {
1591
- x: n === "line" ? k(i) : J + (i + .5) * (y / T),
3300
+ }, Ee = () => {
3301
+ if (!n?.length) return null;
3302
+ let e = Kt + O + 18, t = n.length - 1;
3303
+ return n.map((n, r) => (t - r) % ie === 0 ? /* @__PURE__ */ f("text", {
3304
+ x: o === "line" ? he(r) : z + (r + .5) * (B / V),
1592
3305
  y: e,
1593
- textAnchor: n !== "line" || r === 0 ? "middle" : i === 0 ? "start" : i === r ? "end" : "middle",
3306
+ textAnchor: o !== "line" || t === 0 ? "middle" : r === 0 ? "start" : r === t ? "end" : "middle",
1594
3307
  fill: "var(--lv4)",
1595
3308
  style: { font: "var(--text-2xs)" },
1596
- children: t
1597
- }, i) : null);
1598
- }, I = g && n === "line" ? /* @__PURE__ */ d("line", {
1599
- x1: k(g.index),
1600
- y1: q,
1601
- x2: k(g.index),
1602
- y2: q + b,
3309
+ children: n
3310
+ }, r) : null);
3311
+ }, De = T && o === "line" ? /* @__PURE__ */ f("line", {
3312
+ x1: he(T.index),
3313
+ y1: Kt,
3314
+ x2: he(T.index),
3315
+ y2: Kt + O,
1603
3316
  stroke: "var(--chart-crosshair)",
1604
3317
  strokeWidth: "1",
1605
3318
  strokeDasharray: "3 3"
1606
- }) : null, L = g ? (() => {
1607
- let n = t?.[g.index] ?? String(g.index + 1), r = Math.min(Math.max(g.x, 60), m - 60);
1608
- return /* @__PURE__ */ f("div", {
1609
- className: K.tooltip,
1610
- style: g.y < 80 ? {
1611
- left: r,
1612
- top: g.y + 12,
1613
- transform: "translate(-50%, 0)"
1614
- } : {
1615
- left: r,
1616
- top: g.y - 8,
1617
- transform: "translate(-50%, -100%)"
1618
- },
3319
+ }) : null, Oe = T ? (() => {
3320
+ let r = n?.[T.index] ?? String(T.index + 1), i = t.length + t.filter((e) => e.low && e.high && e.low[T.index] != null && e.high[T.index] != null).length + (b && t.length > 1 ? 1 : 0) + (h?.filter((e) => e.index === T.index).length ?? 0), a = Math.max(r.length, ...t.map((e) => e.label.length + 8), ...h?.map((e) => e.label.length) ?? [0]), o = Math.min(Math.max(90, a * 6.5 + 36), Math.max(120, C - 16)), c = 30 + i * 20, l = Math.min(Math.max(T.x, o / 2 + 4), C - o / 2 - 4), u = T.y + 12 + c <= s, d = T.y - 8 - c >= 0, m = u ? {
3321
+ left: l,
3322
+ top: T.y + 12,
3323
+ transform: "translate(-50%, 0)"
3324
+ } : d ? {
3325
+ left: l,
3326
+ top: T.y - 8,
3327
+ transform: "translate(-50%, -100%)"
3328
+ } : {
3329
+ left: l,
3330
+ top: 4,
3331
+ transform: "translate(-50%, 0)"
3332
+ };
3333
+ return /* @__PURE__ */ p("div", {
3334
+ className: X.tooltip,
3335
+ style: m,
1619
3336
  children: [
1620
- /* @__PURE__ */ d("div", {
1621
- className: K.tooltipLabel,
1622
- children: n
3337
+ /* @__PURE__ */ f("div", {
3338
+ className: X.tooltipLabel,
3339
+ children: r
1623
3340
  }),
1624
- e.map((e, t) => /* @__PURE__ */ f("div", {
1625
- className: K.tooltipRow,
3341
+ t.map((t, n) => /* @__PURE__ */ p(e.Fragment, { children: [/* @__PURE__ */ p("div", {
3342
+ className: X.tooltipRow,
1626
3343
  children: [
1627
- /* @__PURE__ */ d("span", {
1628
- className: K.tooltipDot,
1629
- style: { background: e.color ?? We }
3344
+ /* @__PURE__ */ f("span", {
3345
+ className: X.tooltipDot,
3346
+ style: { background: t.color ?? Gt }
1630
3347
  }),
1631
- /* @__PURE__ */ d("span", {
1632
- className: K.tooltipName,
1633
- children: e.label
3348
+ /* @__PURE__ */ f("span", {
3349
+ className: X.tooltipName,
3350
+ children: t.label
3351
+ }),
3352
+ /* @__PURE__ */ f("span", {
3353
+ className: X.tooltipValue,
3354
+ children: rn(t.data[T.index] ?? 0)
3355
+ })
3356
+ ]
3357
+ }), t.low && t.high && t.low[T.index] != null && t.high[T.index] != null && /* @__PURE__ */ p("div", {
3358
+ className: `${X.tooltipRow} ${X.tooltipRange}`,
3359
+ children: [
3360
+ /* @__PURE__ */ f("span", {
3361
+ className: X.tooltipDot,
3362
+ style: { visibility: "hidden" }
3363
+ }),
3364
+ /* @__PURE__ */ f("span", {
3365
+ className: X.tooltipName,
3366
+ children: t.rangeLabel ?? "Range"
1634
3367
  }),
1635
- /* @__PURE__ */ d("span", {
1636
- className: K.tooltipValue,
1637
- children: Je(e.data[g.index] ?? 0)
3368
+ /* @__PURE__ */ p("span", {
3369
+ className: X.tooltipRangeValue,
3370
+ children: [
3371
+ rn(t.low[T.index]),
3372
+ " to ",
3373
+ rn(t.high[T.index])
3374
+ ]
1638
3375
  })
1639
3376
  ]
1640
- }, t)),
1641
- u?.filter((e) => e.index === g.index).map((e, t) => /* @__PURE__ */ f("div", {
1642
- className: `${K.tooltipRow} ${K.tooltipMarker}`,
1643
- children: [/* @__PURE__ */ d("span", { className: `${K.tooltipDot} ${K.markerDot}` }), /* @__PURE__ */ d("span", {
1644
- className: K.tooltipName,
3377
+ })] }, n)),
3378
+ b && t.length > 1 && /* @__PURE__ */ p("div", {
3379
+ className: `${X.tooltipRow} ${X.tooltipTotal}`,
3380
+ children: [
3381
+ /* @__PURE__ */ f("span", {
3382
+ className: X.tooltipDot,
3383
+ style: { visibility: "hidden" }
3384
+ }),
3385
+ /* @__PURE__ */ f("span", {
3386
+ className: X.tooltipName,
3387
+ children: "Total"
3388
+ }),
3389
+ /* @__PURE__ */ f("span", {
3390
+ className: X.tooltipValue,
3391
+ children: rn(A[T.index] ?? 0)
3392
+ })
3393
+ ]
3394
+ }),
3395
+ h?.filter((e) => e.index === T.index).map((e, t) => /* @__PURE__ */ p("div", {
3396
+ className: `${X.tooltipRow} ${X.tooltipMarker}`,
3397
+ children: [/* @__PURE__ */ f("span", { className: `${X.tooltipDot} ${X.markerDot}` }), /* @__PURE__ */ f("span", {
3398
+ className: X.tooltipName,
1645
3399
  children: e.label
1646
3400
  })]
1647
3401
  }, `m${t}`))
1648
3402
  ]
1649
3403
  });
1650
3404
  })() : null;
1651
- return /* @__PURE__ */ f("div", {
1652
- className: [K.wrapper, s].filter(Boolean).join(" "),
1653
- children: [/* @__PURE__ */ f("div", {
1654
- ref: p,
1655
- className: K.chart,
1656
- style: { height: a },
1657
- children: [m > 0 && /* @__PURE__ */ f("svg", {
1658
- width: m,
1659
- height: a,
1660
- className: K.svg,
1661
- onPointerMove: A,
1662
- onPointerDown: A,
1663
- onPointerLeave: j,
3405
+ return /* @__PURE__ */ p("div", {
3406
+ className: [X.wrapper, m].filter(Boolean).join(" "),
3407
+ children: [/* @__PURE__ */ p("div", {
3408
+ ref: x,
3409
+ className: X.chart,
3410
+ style: { height: s },
3411
+ children: [C > 0 && /* @__PURE__ */ p("svg", {
3412
+ width: C,
3413
+ height: s,
3414
+ className: X.svg,
3415
+ onPointerMove: ge,
3416
+ onPointerDown: ge,
3417
+ onPointerLeave: _e,
1664
3418
  children: [
1665
- M,
1666
- N,
1667
- P,
1668
- I,
1669
- n === "line" ? ee() : te(),
1670
- u && T > 0 && [...new Set(u.map((e) => e.index).filter((e) => e >= 0 && e < T))].map((e) => {
1671
- let t = n === "line" ? k(e) : J + (e + .5) * (y / T);
1672
- return /* @__PURE__ */ d("rect", {
1673
- className: K.marker,
3419
+ U,
3420
+ ve,
3421
+ xe,
3422
+ W,
3423
+ Ce,
3424
+ De,
3425
+ o === "line" ? we() : Te(),
3426
+ ue != null && ue > Kt && /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f("defs", { children: /* @__PURE__ */ f("clipPath", {
3427
+ id: de,
3428
+ children: /* @__PURE__ */ f("rect", {
3429
+ x: z,
3430
+ y: Kt,
3431
+ width: B,
3432
+ height: ue - Kt
3433
+ })
3434
+ }) }), /* @__PURE__ */ f("g", {
3435
+ clipPath: `url(#${de})`,
3436
+ children: o === "line" ? we($t) : Te($t)
3437
+ })] }),
3438
+ h && V > 0 && [...new Set(h.map((e) => e.index).filter((e) => e >= 0 && e < V))].map((e) => {
3439
+ let t = o === "line" ? he(e) : z + (e + .5) * (B / V);
3440
+ return /* @__PURE__ */ f("rect", {
3441
+ className: X.marker,
1674
3442
  x: t - 3,
1675
- y: q + b - 3,
3443
+ y: Kt + O - 3,
1676
3444
  width: 6,
1677
3445
  height: 6
1678
3446
  }, `m${e}`);
1679
3447
  }),
1680
- F()
3448
+ Ee(),
3449
+ Se
1681
3450
  ]
1682
- }), L]
1683
- }), o && e.length > 1 && /* @__PURE__ */ d("div", {
1684
- className: K.legend,
1685
- children: e.map((e, t) => /* @__PURE__ */ f("div", {
1686
- className: K.legendItem,
1687
- children: [/* @__PURE__ */ d("div", {
1688
- className: K.legendMark,
1689
- style: { background: e.color ?? We }
1690
- }), /* @__PURE__ */ d("span", {
1691
- className: K.legendLabel,
3451
+ }), Oe]
3452
+ }), c && t.length > 1 && /* @__PURE__ */ f("div", {
3453
+ className: X.legend,
3454
+ children: t.map((e, t) => /* @__PURE__ */ p("div", {
3455
+ className: X.legendItem,
3456
+ children: [fe(e) in Zt ? /* @__PURE__ */ f("svg", {
3457
+ className: X.legendSwatch,
3458
+ width: 12,
3459
+ height: 8,
3460
+ "aria-hidden": "true",
3461
+ children: /* @__PURE__ */ f("rect", {
3462
+ width: 12,
3463
+ height: 8,
3464
+ fill: pe(t)
3465
+ })
3466
+ }) : /* @__PURE__ */ f("div", {
3467
+ className: X.legendMark,
3468
+ style: { background: e.color ?? Gt }
3469
+ }), /* @__PURE__ */ f("span", {
3470
+ className: X.legendLabel,
1692
3471
  children: e.label
1693
3472
  })]
1694
3473
  }, t))
1695
3474
  })]
1696
3475
  });
1697
3476
  }
1698
- var Y = {
3477
+ var on = {
1699
3478
  sparkline: "_sparkline_fqcg9_4",
1700
3479
  line: "_line_fqcg9_12",
1701
3480
  partial: "_partial_fqcg9_22",
@@ -1703,33 +3482,33 @@ var Y = {
1703
3482
  bars: "_bars_fqcg9_34",
1704
3483
  bar: "_bar_fqcg9_34",
1705
3484
  baseline: "_baseline_fqcg9_48"
1706
- }, Xe = 100, Ze = 100;
1707
- function Qe({ values: e, type: t = "line", width: n = "100%", height: r = 24, color: i = "currentColor", fill: o = !1, baseline: s = !1, lastIsPartial: c = !1, gap: l = 1, idleColor: p, ariaLabel: m, className: h }) {
1708
- let g = `spark-${a().replace(/:/g, "")}`, _ = e.filter((e) => Number.isFinite(e)), v = m == null, y = _.length ? Math.max(..._) : 0, b = _.length ? Math.min(..._) : 0, x = y - b || 1, S = Ze - 12, C = (e) => 94 - (e - b) / x * S, w = (e) => /* @__PURE__ */ f("svg", {
1709
- className: [Y.sparkline, h].filter(Boolean).join(" "),
3485
+ }, sn = 100, cn = 100;
3486
+ function ln({ values: e, type: t = "line", width: n = "100%", height: r = 24, color: i = "currentColor", fill: o = !1, baseline: s = !1, lastIsPartial: c = !1, gap: l = 1, idleColor: u, ariaLabel: m, className: h }) {
3487
+ let g = `spark-${a().replace(/:/g, "")}`, _ = e.filter((e) => Number.isFinite(e)), v = m == null, y = _.length ? Math.max(..._) : 0, b = _.length ? Math.min(..._) : 0, x = y - b || 1, S = cn - 12, C = (e) => 94 - (e - b) / x * S, w = (e) => /* @__PURE__ */ p("svg", {
3488
+ className: [on.sparkline, h].filter(Boolean).join(" "),
1710
3489
  style: {
1711
3490
  width: n,
1712
3491
  height: r,
1713
3492
  color: i
1714
3493
  },
1715
- viewBox: `0 0 ${Xe} ${Ze}`,
3494
+ viewBox: `0 0 ${sn} ${cn}`,
1716
3495
  preserveAspectRatio: "none",
1717
3496
  role: v ? void 0 : "img",
1718
3497
  "aria-label": m,
1719
3498
  "aria-hidden": v || void 0,
1720
3499
  focusable: "false",
1721
- children: [e, s && /* @__PURE__ */ d("line", {
3500
+ children: [e, s && /* @__PURE__ */ f("line", {
1722
3501
  x1: "0",
1723
- y1: Ze - .5,
1724
- x2: Xe,
1725
- y2: Ze - .5,
1726
- className: Y.baseline,
3502
+ y1: cn - .5,
3503
+ x2: sn,
3504
+ y2: cn - .5,
3505
+ className: on.baseline,
1727
3506
  vectorEffect: "non-scaling-stroke"
1728
3507
  })]
1729
3508
  });
1730
3509
  if (_.length < 2) return w(null);
1731
- if (t === "bar") return /* @__PURE__ */ d("div", {
1732
- className: [Y.bars, h].filter(Boolean).join(" "),
3510
+ if (t === "bar") return /* @__PURE__ */ f("div", {
3511
+ className: [on.bars, h].filter(Boolean).join(" "),
1733
3512
  style: {
1734
3513
  width: n,
1735
3514
  height: r,
@@ -1740,58 +3519,58 @@ function Qe({ values: e, type: t = "line", width: n = "100%", height: r = 24, co
1740
3519
  role: v ? void 0 : "img",
1741
3520
  "aria-label": m,
1742
3521
  "aria-hidden": v || void 0,
1743
- children: _.map((e, t) => /* @__PURE__ */ d("span", {
1744
- className: Y.bar,
3522
+ children: _.map((e, t) => /* @__PURE__ */ f("span", {
3523
+ className: on.bar,
1745
3524
  style: { height: `${Math.max((e - b) / x * 100, 2)}%` }
1746
3525
  }, t))
1747
3526
  });
1748
- let T = Xe / (_.length - 1), E = (e, t) => _.slice(e, e + t).map((t, n) => `${(e + n) * T},${C(t)}`).join(" "), D = E(0, _.length), O = p != null && _.some((e) => e === 0), k = O ? { stroke: `url(#${g})` } : void 0, A = O ? { fill: `url(#${g})` } : void 0;
1749
- return w(/* @__PURE__ */ f(u, { children: [
1750
- O && /* @__PURE__ */ d("defs", { children: /* @__PURE__ */ d("linearGradient", {
3527
+ let T = sn / (_.length - 1), E = (e, t) => _.slice(e, e + t).map((t, n) => `${(e + n) * T},${C(t)}`).join(" "), D = E(0, _.length), O = u != null && _.some((e) => e === 0), k = O ? { stroke: `url(#${g})` } : void 0, A = O ? { fill: `url(#${g})` } : void 0;
3528
+ return w(/* @__PURE__ */ p(d, { children: [
3529
+ O && /* @__PURE__ */ f("defs", { children: /* @__PURE__ */ f("linearGradient", {
1751
3530
  id: g,
1752
3531
  gradientUnits: "userSpaceOnUse",
1753
3532
  x1: "0",
1754
3533
  y1: "0",
1755
- x2: Xe,
3534
+ x2: sn,
1756
3535
  y2: "0",
1757
3536
  children: (() => {
1758
- let e = _.length - 1, t = (e) => _[e] === 0 && _[e + 1] === 0 ? p : "currentColor", n = .2 / e;
3537
+ let e = _.length - 1, t = (e) => _[e] === 0 && _[e + 1] === 0 ? u : "currentColor", n = .2 / e;
1759
3538
  return Array.from({ length: e }, (r, i) => {
1760
3539
  let a = t(i), o = i / e + (i > 0 && t(i - 1) !== a ? n : 0), s = (i + 1) / e - (i < e - 1 && t(i + 1) !== a ? n : 0);
1761
- return [/* @__PURE__ */ d("stop", {
3540
+ return [/* @__PURE__ */ f("stop", {
1762
3541
  offset: o,
1763
3542
  style: { stopColor: a }
1764
- }, `${i}a`), /* @__PURE__ */ d("stop", {
3543
+ }, `${i}a`), /* @__PURE__ */ f("stop", {
1765
3544
  offset: s,
1766
3545
  style: { stopColor: a }
1767
3546
  }, `${i}b`)];
1768
3547
  }).flat();
1769
3548
  })()
1770
3549
  }) }),
1771
- o && /* @__PURE__ */ d("polygon", {
1772
- className: Y.fill,
1773
- points: `0,${Ze} ${D} ${Xe},${Ze}`,
3550
+ o && /* @__PURE__ */ f("polygon", {
3551
+ className: on.fill,
3552
+ points: `0,${cn} ${D} ${sn},${cn}`,
1774
3553
  style: A
1775
3554
  }),
1776
- c ? /* @__PURE__ */ f(u, { children: [_.length > 2 && /* @__PURE__ */ d("polyline", {
1777
- className: Y.line,
3555
+ c ? /* @__PURE__ */ p(d, { children: [_.length > 2 && /* @__PURE__ */ f("polyline", {
3556
+ className: on.line,
1778
3557
  points: E(0, _.length - 1),
1779
3558
  vectorEffect: "non-scaling-stroke",
1780
3559
  style: k
1781
- }), /* @__PURE__ */ d("polyline", {
1782
- className: `${Y.line} ${Y.partial}`,
3560
+ }), /* @__PURE__ */ f("polyline", {
3561
+ className: `${on.line} ${on.partial}`,
1783
3562
  points: E(_.length - 2, 2),
1784
3563
  vectorEffect: "non-scaling-stroke",
1785
3564
  style: k
1786
- })] }) : /* @__PURE__ */ d("polyline", {
1787
- className: Y.line,
3565
+ })] }) : /* @__PURE__ */ f("polyline", {
3566
+ className: on.line,
1788
3567
  points: D,
1789
3568
  vectorEffect: "non-scaling-stroke",
1790
3569
  style: k
1791
3570
  })
1792
3571
  ] }));
1793
3572
  }
1794
- var $e = {
3573
+ var un = {
1795
3574
  wrapper: "_wrapper_17ws4_1",
1796
3575
  label: "_label_17ws4_7",
1797
3576
  textarea: "_textarea_17ws4_12",
@@ -1800,64 +3579,64 @@ var $e = {
1800
3579
  };
1801
3580
  //#endregion
1802
3581
  //#region src/components/Textarea/Textarea.tsx
1803
- function et({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...s }) {
1804
- let c = e.useId(), l = a || c, u = `${l}-error`, p = n || !i;
1805
- return /* @__PURE__ */ f("div", {
1806
- className: `${$e.wrapper} ${r}`,
3582
+ function dn({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...s }) {
3583
+ let c = e.useId(), l = a || c, u = `${l}-error`, d = n || !i;
3584
+ return /* @__PURE__ */ p("div", {
3585
+ className: `${un.wrapper} ${r}`,
1807
3586
  children: [
1808
- t && /* @__PURE__ */ f("label", {
3587
+ t && /* @__PURE__ */ p("label", {
1809
3588
  htmlFor: l,
1810
- className: $e.label,
1811
- children: [t, s.required && /* @__PURE__ */ d("span", {
3589
+ className: un.label,
3590
+ children: [t, s.required && /* @__PURE__ */ f("span", {
1812
3591
  "aria-label": "required",
1813
3592
  children: " *"
1814
3593
  })]
1815
3594
  }),
1816
- /* @__PURE__ */ d("textarea", {
3595
+ /* @__PURE__ */ f("textarea", {
1817
3596
  id: l,
1818
3597
  rows: o,
1819
- className: `${$e.textarea} ${p ? $e.error : ""}`,
1820
- "aria-invalid": p ? "true" : "false",
3598
+ className: `${un.textarea} ${d ? un.error : ""}`,
3599
+ "aria-invalid": d ? "true" : "false",
1821
3600
  "aria-describedby": n ? u : void 0,
1822
3601
  ...s
1823
3602
  }),
1824
- n && /* @__PURE__ */ d("span", {
3603
+ n && /* @__PURE__ */ f("span", {
1825
3604
  id: u,
1826
- className: $e.errorText,
3605
+ className: un.errorText,
1827
3606
  role: "alert",
1828
3607
  children: n
1829
3608
  })
1830
3609
  ]
1831
3610
  });
1832
3611
  }
1833
- var tt = {
3612
+ var fn = {
1834
3613
  overlay: "_overlay_xud7c_1",
1835
3614
  content: "_content_xud7c_8",
1836
3615
  title: "_title_xud7c_26",
1837
3616
  description: "_description_xud7c_34",
1838
3617
  close: "_close_xud7c_40",
1839
3618
  srOnly: "_srOnly_xud7c_62"
1840
- }, nt = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => /* @__PURE__ */ f(j.Root, {
3619
+ }, pn = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => /* @__PURE__ */ p(M.Root, {
1841
3620
  open: n,
1842
3621
  onOpenChange: r,
1843
- children: [e && /* @__PURE__ */ d(j.Trigger, {
3622
+ children: [e && /* @__PURE__ */ f(M.Trigger, {
1844
3623
  asChild: !0,
1845
3624
  children: e
1846
- }), /* @__PURE__ */ f(j.Portal, { children: [/* @__PURE__ */ d(j.Overlay, { className: tt.overlay }), /* @__PURE__ */ f(j.Content, {
1847
- className: `${tt.content} ${o}`,
3625
+ }), /* @__PURE__ */ p(M.Portal, { children: [/* @__PURE__ */ f(M.Overlay, { className: fn.overlay }), /* @__PURE__ */ p(M.Content, {
3626
+ className: `${fn.content} ${o}`,
1848
3627
  children: [
1849
- /* @__PURE__ */ d(j.Title, {
1850
- className: i ? tt.title : tt.srOnly,
3628
+ /* @__PURE__ */ f(M.Title, {
3629
+ className: i ? fn.title : fn.srOnly,
1851
3630
  children: i || "Dialog"
1852
3631
  }),
1853
- a && /* @__PURE__ */ d(j.Description, {
1854
- className: tt.description,
3632
+ a && /* @__PURE__ */ f(M.Description, {
3633
+ className: fn.description,
1855
3634
  children: a
1856
3635
  }),
1857
- s && /* @__PURE__ */ d(j.Close, {
1858
- className: tt.close,
3636
+ s && /* @__PURE__ */ f(M.Close, {
3637
+ className: fn.close,
1859
3638
  "aria-label": "Close",
1860
- children: /* @__PURE__ */ d(E, {
3639
+ children: /* @__PURE__ */ f(D, {
1861
3640
  size: 14,
1862
3641
  color: "currentColor"
1863
3642
  })
@@ -1865,7 +3644,7 @@ var tt = {
1865
3644
  t
1866
3645
  ]
1867
3646
  })] })]
1868
- }), X = {
3647
+ }), Z = {
1869
3648
  wrapper: "_wrapper_aimna_1",
1870
3649
  label: "_label_aimna_7",
1871
3650
  trigger: "_trigger_aimna_12",
@@ -1884,7 +3663,7 @@ var tt = {
1884
3663
  today: "_today_aimna_131",
1885
3664
  selected: "_selected_aimna_136",
1886
3665
  errorText: "_errorText_aimna_142"
1887
- }, rt = [
3666
+ }, mn = [
1888
3667
  "Mo",
1889
3668
  "Tu",
1890
3669
  "We",
@@ -1892,7 +3671,7 @@ var tt = {
1892
3671
  "Fr",
1893
3672
  "Sa",
1894
3673
  "Su"
1895
- ], it = [
3674
+ ], hn = [
1896
3675
  "January",
1897
3676
  "February",
1898
3677
  "March",
@@ -1906,20 +3685,20 @@ var tt = {
1906
3685
  "November",
1907
3686
  "December"
1908
3687
  ];
1909
- function at(e) {
3688
+ function gn(e) {
1910
3689
  let t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
1911
3690
  return `${e.getFullYear()}-${t}-${n}`;
1912
3691
  }
1913
- function ot(e, t) {
3692
+ function _n(e, t) {
1914
3693
  return !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
1915
3694
  }
1916
- function st(e, t) {
3695
+ function vn(e, t) {
1917
3696
  let n = (new Date(e, t, 1).getDay() + 6) % 7, r = [];
1918
3697
  for (let i = 0; i < 42; i++) r.push(new Date(e, t, 1 - n + i));
1919
3698
  return r;
1920
3699
  }
1921
- var ct = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: a, isValid: o = !0, disabled: s = !1, className: c = "", formatDate: u = at }) => {
1922
- let p = e.useId(), m = `${p}-error`, h = !!a || !o, [y, b] = l(!1), x = /* @__PURE__ */ new Date(), S = t ?? x, [C, w] = l(S.getFullYear()), [T, E] = l(S.getMonth()), [D, O] = l(S), A = e.useRef(/* @__PURE__ */ new Map()), j = e.useRef(!1), M = (e) => {
3700
+ var yn = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: a, isValid: o = !0, disabled: s = !1, className: c = "", formatDate: l = gn }) => {
3701
+ let d = e.useId(), m = `${d}-error`, h = !!a || !o, [g, b] = u(!1), x = /* @__PURE__ */ new Date(), S = t ?? x, [C, w] = u(S.getFullYear()), [T, E] = u(S.getMonth()), [D, O] = u(S), k = e.useRef(/* @__PURE__ */ new Map()), j = e.useRef(!1), M = (e) => {
1923
3702
  if (e) {
1924
3703
  let e = t ?? /* @__PURE__ */ new Date();
1925
3704
  O(e), w(e.getFullYear()), E(e.getMonth());
@@ -1927,7 +3706,7 @@ var ct = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1927
3706
  b(e);
1928
3707
  };
1929
3708
  e.useEffect(() => {
1930
- j.current &&= (A.current.get(at(D))?.focus(), !1);
3709
+ j.current &&= (k.current.get(gn(D))?.focus(), !1);
1931
3710
  }, [D]);
1932
3711
  let N = (e, t) => {
1933
3712
  let n = new Date(t), r = {
@@ -1946,108 +3725,108 @@ var ct = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1946
3725
  e.preventDefault(), j.current = !0, O(n), w(n.getFullYear()), E(n.getMonth());
1947
3726
  };
1948
3727
  e.useEffect(() => {
1949
- y && t && (w(t.getFullYear()), E(t.getMonth()));
1950
- }, [y]);
3728
+ g && t && (w(t.getFullYear()), E(t.getMonth()));
3729
+ }, [g]);
1951
3730
  let P = () => {
1952
3731
  T === 0 ? (E(11), w(C - 1)) : E(T - 1);
1953
- }, ee = () => {
3732
+ }, F = () => {
1954
3733
  T === 11 ? (E(0), w(C + 1)) : E(T + 1);
1955
- }, te = (e) => {
3734
+ }, I = (e) => {
1956
3735
  n?.(e), b(!1);
1957
- }, F = st(C, T);
1958
- return /* @__PURE__ */ f("div", {
1959
- className: `${X.wrapper} ${c}`,
3736
+ }, ee = vn(C, T);
3737
+ return /* @__PURE__ */ p("div", {
3738
+ className: `${Z.wrapper} ${c}`,
1960
3739
  children: [
1961
- r && /* @__PURE__ */ d("span", {
1962
- id: `${p}-label`,
1963
- className: X.label,
3740
+ r && /* @__PURE__ */ f("span", {
3741
+ id: `${d}-label`,
3742
+ className: Z.label,
1964
3743
  children: r
1965
3744
  }),
1966
- /* @__PURE__ */ f(k.Root, {
1967
- open: y,
3745
+ /* @__PURE__ */ p(A.Root, {
3746
+ open: g,
1968
3747
  onOpenChange: M,
1969
- children: [/* @__PURE__ */ d(k.Trigger, {
3748
+ children: [/* @__PURE__ */ f(A.Trigger, {
1970
3749
  asChild: !0,
1971
- children: /* @__PURE__ */ f("button", {
3750
+ children: /* @__PURE__ */ p("button", {
1972
3751
  type: "button",
1973
- className: `${X.trigger} ${h ? X.error : ""}`,
3752
+ className: `${Z.trigger} ${h ? Z.error : ""}`,
1974
3753
  disabled: s,
1975
- "aria-labelledby": r ? `${p}-label ${p}-value` : void 0,
3754
+ "aria-labelledby": r ? `${d}-label ${d}-value` : void 0,
1976
3755
  "aria-invalid": h ? "true" : "false",
1977
3756
  "aria-describedby": a ? m : void 0,
1978
- children: [/* @__PURE__ */ d("span", {
1979
- id: `${p}-value`,
1980
- className: t ? X.valueText : X.placeholder,
1981
- children: t ? u(t) : i
1982
- }), /* @__PURE__ */ d(g, {
3757
+ children: [/* @__PURE__ */ f("span", {
3758
+ id: `${d}-value`,
3759
+ className: t ? Z.valueText : Z.placeholder,
3760
+ children: t ? l(t) : i
3761
+ }), /* @__PURE__ */ f(_, {
1983
3762
  size: 14,
1984
3763
  color: "currentColor"
1985
3764
  })]
1986
3765
  })
1987
- }), /* @__PURE__ */ d(k.Portal, { children: /* @__PURE__ */ f(k.Content, {
1988
- className: X.calendar,
3766
+ }), /* @__PURE__ */ f(A.Portal, { children: /* @__PURE__ */ p(A.Content, {
3767
+ className: Z.calendar,
1989
3768
  align: "start",
1990
3769
  sideOffset: 5,
1991
3770
  "aria-label": r ? `${r} calendar` : "Choose a date",
1992
3771
  onOpenAutoFocus: (e) => {
1993
- e.preventDefault(), A.current.get(at(D))?.focus();
3772
+ e.preventDefault(), k.current.get(gn(D))?.focus();
1994
3773
  },
1995
3774
  children: [
1996
- /* @__PURE__ */ f("div", {
1997
- className: X.header,
3775
+ /* @__PURE__ */ p("div", {
3776
+ className: Z.header,
1998
3777
  children: [
1999
- /* @__PURE__ */ d("button", {
3778
+ /* @__PURE__ */ f("button", {
2000
3779
  type: "button",
2001
- className: X.navButton,
3780
+ className: Z.navButton,
2002
3781
  onClick: P,
2003
3782
  "aria-label": "Previous month",
2004
- children: /* @__PURE__ */ d(_, {
3783
+ children: /* @__PURE__ */ f(v, {
2005
3784
  size: 14,
2006
3785
  color: "currentColor"
2007
3786
  })
2008
3787
  }),
2009
- /* @__PURE__ */ f("span", {
2010
- className: X.monthLabel,
3788
+ /* @__PURE__ */ p("span", {
3789
+ className: Z.monthLabel,
2011
3790
  children: [
2012
- it[T],
3791
+ hn[T],
2013
3792
  " ",
2014
3793
  C
2015
3794
  ]
2016
3795
  }),
2017
- /* @__PURE__ */ d("button", {
3796
+ /* @__PURE__ */ f("button", {
2018
3797
  type: "button",
2019
- className: X.navButton,
2020
- onClick: ee,
3798
+ className: Z.navButton,
3799
+ onClick: F,
2021
3800
  "aria-label": "Next month",
2022
- children: /* @__PURE__ */ d(v, {
3801
+ children: /* @__PURE__ */ f(y, {
2023
3802
  size: 14,
2024
3803
  color: "currentColor"
2025
3804
  })
2026
3805
  })
2027
3806
  ]
2028
3807
  }),
2029
- /* @__PURE__ */ d("div", {
2030
- className: X.weekdays,
2031
- children: rt.map((e) => /* @__PURE__ */ d("span", {
2032
- className: X.weekday,
3808
+ /* @__PURE__ */ f("div", {
3809
+ className: Z.weekdays,
3810
+ children: mn.map((e) => /* @__PURE__ */ f("span", {
3811
+ className: Z.weekday,
2033
3812
  children: e
2034
3813
  }, e))
2035
3814
  }),
2036
- /* @__PURE__ */ d("div", {
2037
- className: X.grid,
2038
- children: F.map((e) => {
2039
- let n = e.getMonth() !== T, r = ot(e, t), i = ot(e, x);
2040
- return /* @__PURE__ */ d("button", {
3815
+ /* @__PURE__ */ f("div", {
3816
+ className: Z.grid,
3817
+ children: ee.map((e) => {
3818
+ let n = e.getMonth() !== T, r = _n(e, t), i = _n(e, x);
3819
+ return /* @__PURE__ */ f("button", {
2041
3820
  type: "button",
2042
3821
  className: [
2043
- X.day,
2044
- n ? X.outside : "",
2045
- r ? X.selected : "",
2046
- i && !r ? X.today : ""
3822
+ Z.day,
3823
+ n ? Z.outside : "",
3824
+ r ? Z.selected : "",
3825
+ i && !r ? Z.today : ""
2047
3826
  ].filter(Boolean).join(" "),
2048
- onClick: () => te(e),
3827
+ onClick: () => I(e),
2049
3828
  ref: (t) => {
2050
- t ? A.current.set(at(e), t) : A.current.delete(at(e));
3829
+ t ? k.current.set(gn(e), t) : k.current.delete(gn(e));
2051
3830
  },
2052
3831
  "aria-label": e.toLocaleDateString(void 0, {
2053
3832
  weekday: "long",
@@ -2057,7 +3836,7 @@ var ct = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
2057
3836
  }),
2058
3837
  "aria-pressed": r,
2059
3838
  "aria-current": i ? "date" : void 0,
2060
- tabIndex: ot(e, D) || D.getMonth() !== T && e.getDate() === 1 && !n ? 0 : -1,
3839
+ tabIndex: _n(e, D) || D.getMonth() !== T && e.getDate() === 1 && !n ? 0 : -1,
2061
3840
  onKeyDown: (t) => N(t, e),
2062
3841
  children: e.getDate()
2063
3842
  }, e.toISOString());
@@ -2066,85 +3845,119 @@ var ct = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
2066
3845
  ]
2067
3846
  }) })]
2068
3847
  }),
2069
- a && /* @__PURE__ */ d("span", {
3848
+ a && /* @__PURE__ */ f("span", {
2070
3849
  id: m,
2071
- className: X.errorText,
3850
+ className: Z.errorText,
2072
3851
  role: "alert",
2073
3852
  children: a
2074
3853
  })
2075
3854
  ]
2076
3855
  });
2077
- }, lt = {
3856
+ }, bn = {
2078
3857
  skeleton: "_skeleton_fo2zs_11",
2079
3858
  "indx-skeleton-pulse": "_indx-skeleton-pulse_fo2zs_1",
2080
3859
  level3: "_level3_fo2zs_20",
2081
3860
  appear: "_appear_fo2zs_25",
2082
3861
  "indx-skeleton-appear": "_indx-skeleton-appear_fo2zs_1"
2083
- }, ut = (e) => typeof e == "number" ? `${e}px` : e;
2084
- function dt({ width: e = "100%", height: t = 10, level: n = 2, delay: r = 0, appear: i = !0, className: a = "", style: o }) {
2085
- return /* @__PURE__ */ d("span", {
3862
+ }, xn = (e) => typeof e == "number" ? `${e}px` : e;
3863
+ function Sn({ width: e = "100%", height: t = 10, level: n = 2, delay: r = 0, appear: i = !0, className: a = "", style: o }) {
3864
+ return /* @__PURE__ */ f("span", {
2086
3865
  "aria-hidden": "true",
2087
- className: `${lt.skeleton} ${n === 3 ? lt.level3 : ""} ${i ? lt.appear : ""} ${a}`,
3866
+ className: `${bn.skeleton} ${n === 3 ? bn.level3 : ""} ${i ? bn.appear : ""} ${a}`,
2088
3867
  style: {
2089
- width: ut(e),
2090
- height: ut(t),
3868
+ width: xn(e),
3869
+ height: xn(t),
2091
3870
  "--skeleton-delay": `${r}s`,
2092
3871
  ...o
2093
3872
  }
2094
3873
  });
2095
3874
  }
2096
- var Z = {
2097
- stat: "_stat_1un6s_2",
2098
- label: "_label_1un6s_17",
2099
- hinted: "_hinted_1un6s_23",
2100
- value: "_value_1un6s_30",
2101
- icon: "_icon_1un6s_44",
2102
- foot: "_foot_1un6s_50",
2103
- group: "_group_1un6s_60",
2104
- fixed: "_fixed_1un6s_66",
2105
- many: "_many_1un6s_71",
2106
- pairs: "_pairs_1un6s_75"
2107
- }, ft = 28;
2108
- function pt({ label: e, value: r, icon: i, color: a, hint: o, children: s, className: c = "" }) {
2109
- let l = /* @__PURE__ */ d("span", {
2110
- className: `${Z.label} ${o ? Z.hinted : ""}`,
2111
- children: e
2112
- }), u = i && n(i) ? t(i, {
2113
- size: i.props.size ?? 28,
2114
- color: i.props.color ?? "currentColor"
2115
- }) : i;
2116
- return /* @__PURE__ */ f("div", {
2117
- className: `${Z.stat} ${c}`,
3875
+ var Q = {
3876
+ stat: "_stat_1nz7e_2",
3877
+ label: "_label_1nz7e_17",
3878
+ labelIcon: "_labelIcon_1nz7e_26",
3879
+ body: "_body_1nz7e_33",
3880
+ footRow: "_footRow_1nz7e_44",
3881
+ foot: "_foot_1nz7e_44",
3882
+ hinted: "_hinted_1nz7e_52",
3883
+ value: "_value_1nz7e_59",
3884
+ icon: "_icon_1nz7e_73",
3885
+ figured: "_figured_1nz7e_91",
3886
+ figure: "_figure_1nz7e_91",
3887
+ text: "_text_1nz7e_104",
3888
+ group: "_group_1nz7e_114",
3889
+ fixed: "_fixed_1nz7e_120",
3890
+ many: "_many_1nz7e_125",
3891
+ pairs: "_pairs_1nz7e_129"
3892
+ }, Cn = 28;
3893
+ function wn({ label: e, labelIcon: r, value: i, figure: a, icon: o, color: s, hint: c, children: l, className: u = "" }) {
3894
+ let d = r && n(r) ? t(r, {
3895
+ size: r.props.size ?? 14,
3896
+ color: r.props.color ?? "currentColor"
3897
+ }) : r, m = /* @__PURE__ */ p("span", {
3898
+ className: `${Q.label} ${c ? Q.hinted : ""}`,
3899
+ children: [d != null && /* @__PURE__ */ f("span", {
3900
+ className: Q.labelIcon,
3901
+ "aria-hidden": "true",
3902
+ children: d
3903
+ }), e]
3904
+ }), h = o && n(o) ? t(o, {
3905
+ size: o.props.size ?? 28,
3906
+ color: o.props.color ?? "currentColor"
3907
+ }) : o, g = c ? /* @__PURE__ */ f(Wt, {
3908
+ content: c,
3909
+ children: m
3910
+ }) : m, _ = (i != null || h != null) && /* @__PURE__ */ p("span", {
3911
+ className: Q.value,
3912
+ style: s ? { color: s } : void 0,
3913
+ children: [h != null && /* @__PURE__ */ f("span", {
3914
+ className: Q.icon,
3915
+ "aria-hidden": "true",
3916
+ children: h
3917
+ }), i]
3918
+ }), v = l != null && /* @__PURE__ */ f("span", {
3919
+ className: Q.foot,
3920
+ children: l
3921
+ });
3922
+ return a == null ? /* @__PURE__ */ p("div", {
3923
+ className: `${Q.stat} ${u}`,
2118
3924
  children: [
2119
- o ? /* @__PURE__ */ d(Ue, {
2120
- content: o,
2121
- children: l
2122
- }) : l,
3925
+ g,
2123
3926
  /* @__PURE__ */ f("span", {
2124
- className: Z.value,
2125
- style: a ? { color: a } : void 0,
2126
- children: [u != null && /* @__PURE__ */ d("span", {
2127
- className: Z.icon,
2128
- "aria-hidden": "true",
2129
- children: u
2130
- }), r]
3927
+ className: Q.body,
3928
+ children: _
2131
3929
  }),
2132
- s != null && /* @__PURE__ */ d("span", {
2133
- className: Z.foot,
2134
- children: s
3930
+ v && /* @__PURE__ */ f("span", {
3931
+ className: Q.footRow,
3932
+ children: v
2135
3933
  })
2136
3934
  ]
3935
+ }) : /* @__PURE__ */ p("div", {
3936
+ className: `${Q.stat} ${u}`,
3937
+ children: [g, /* @__PURE__ */ f("span", {
3938
+ className: Q.body,
3939
+ children: /* @__PURE__ */ p("span", {
3940
+ className: Q.figured,
3941
+ children: [/* @__PURE__ */ f("span", {
3942
+ className: Q.figure,
3943
+ children: a
3944
+ }), /* @__PURE__ */ p("span", {
3945
+ className: Q.text,
3946
+ children: [_, v]
3947
+ })]
3948
+ })
3949
+ })]
2137
3950
  });
2138
3951
  }
2139
- function mt({ children: e, columns: t, className: n = "" }) {
2140
- let r = t ? `${Z.fixed} ${t > 3 ? Z.many : ""} ${t > 2 ? Z.pairs : ""}` : "";
2141
- return /* @__PURE__ */ d("div", {
2142
- className: `${Z.group} ${r} ${n}`,
3952
+ function Tn({ children: e, columns: t, className: n = "" }) {
3953
+ let r = t ? `${Q.fixed} ${t > 3 ? Q.many : ""} ${t > 2 ? Q.pairs : ""}` : "";
3954
+ return /* @__PURE__ */ f("div", {
3955
+ className: `${Q.group} ${r} ${n}`,
2143
3956
  style: t ? { "--stat-columns": t } : void 0,
2144
3957
  children: e
2145
3958
  });
2146
3959
  }
2147
- var Q = {
3960
+ var En = {
2148
3961
  root: "_root_biiv1_1",
2149
3962
  micro: "_micro_biiv1_7",
2150
3963
  default: "_default_biiv1_8",
@@ -2160,14 +3973,14 @@ var Q = {
2160
3973
  panelTrigger: "_panelTrigger_biiv1_77",
2161
3974
  viewport: "_viewport_biiv1_60",
2162
3975
  content: "_content_biiv1_110"
2163
- }, ht = {
3976
+ }, Dn = {
2164
3977
  micro: 14,
2165
3978
  default: 14,
2166
3979
  large: 21
2167
- }, gt = e.createContext("default"), _t = typeof window > "u" ? e.useEffect : e.useLayoutEffect, vt = e.forwardRef(({ size: t = "default", align: n = "start", panelAlign: r = "trigger", panelWidth: i, className: a = "", style: o, children: s, "aria-label": c = "Main navigation", ...l }, u) => {
2168
- let p = e.useRef(null), m = e.useRef(!1);
2169
- _t(() => {
2170
- let e = p.current;
3980
+ }, On = e.createContext("default"), kn = typeof window > "u" ? e.useEffect : e.useLayoutEffect, An = e.forwardRef(({ size: t = "default", align: n = "start", panelAlign: r = "trigger", panelWidth: i, className: a = "", style: o, children: s, "aria-label": c = "Main navigation", ...l }, u) => {
3981
+ let d = e.useRef(null), m = e.useRef(!1);
3982
+ kn(() => {
3983
+ let e = d.current;
2171
3984
  if (!e || r !== "trigger") return;
2172
3985
  let t = () => {
2173
3986
  let t = e.querySelector("[data-state=\"open\"][aria-expanded=\"true\"]");
@@ -2195,77 +4008,77 @@ var Q = {
2195
4008
  let h = {
2196
4009
  ...o,
2197
4010
  ...i === void 0 ? {} : { "--panel-width": typeof i == "number" ? `${i}px` : i }
2198
- }, g = r === "trigger" ? Q.panelTrigger : r === "end" ? Q.alignEnd : "";
2199
- return /* @__PURE__ */ d(gt.Provider, {
4011
+ }, g = r === "trigger" ? En.panelTrigger : r === "end" ? En.alignEnd : "";
4012
+ return /* @__PURE__ */ f(On.Provider, {
2200
4013
  value: t,
2201
- children: /* @__PURE__ */ f(M.Root, {
4014
+ children: /* @__PURE__ */ p(N.Root, {
2202
4015
  ...l,
2203
4016
  ref: (e) => {
2204
- p.current = e, typeof u == "function" ? u(e) : u && (u.current = e);
4017
+ d.current = e, typeof u == "function" ? u(e) : u && (u.current = e);
2205
4018
  },
2206
4019
  "aria-label": c,
2207
4020
  style: h,
2208
- className: `${Q.root} ${Q[t]} ${n === "end" ? Q.alignList : ""} ${g} ${a}`,
2209
- children: [s, /* @__PURE__ */ d("div", {
2210
- className: Q.viewportPosition,
2211
- children: /* @__PURE__ */ d(M.Viewport, { className: Q.viewport })
4021
+ className: `${En.root} ${En[t]} ${n === "end" ? En.alignList : ""} ${g} ${a}`,
4022
+ children: [s, /* @__PURE__ */ f("div", {
4023
+ className: En.viewportPosition,
4024
+ children: /* @__PURE__ */ f(N.Viewport, { className: En.viewport })
2212
4025
  })]
2213
4026
  })
2214
4027
  });
2215
4028
  });
2216
- vt.displayName = "NavigationMenu";
2217
- var yt = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ d(M.List, {
4029
+ An.displayName = "NavigationMenu";
4030
+ var jn = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ f(N.List, {
2218
4031
  ...t,
2219
4032
  ref: n,
2220
- className: `${Q.list} ${e}`
4033
+ className: `${En.list} ${e}`
2221
4034
  }));
2222
- yt.displayName = "NavigationMenuList";
2223
- var bt = M.Item;
2224
- function xt({ icon: t }) {
2225
- let n = e.useContext(gt);
2226
- return t ? /* @__PURE__ */ d("span", {
2227
- className: Q.icon,
4035
+ jn.displayName = "NavigationMenuList";
4036
+ var Mn = N.Item;
4037
+ function Nn({ icon: t }) {
4038
+ let n = e.useContext(On);
4039
+ return t ? /* @__PURE__ */ f("span", {
4040
+ className: En.icon,
2228
4041
  "aria-hidden": "true",
2229
4042
  children: e.cloneElement(t, {
2230
- size: ht[n],
4043
+ size: Dn[n],
2231
4044
  color: "currentColor"
2232
4045
  })
2233
4046
  }) : null;
2234
4047
  }
2235
- var St = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => {
2236
- let o = e.useContext(gt);
2237
- return /* @__PURE__ */ f(M.Trigger, {
4048
+ var Pn = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => {
4049
+ let o = e.useContext(On);
4050
+ return /* @__PURE__ */ p(N.Trigger, {
2238
4051
  ...i,
2239
4052
  ref: a,
2240
- className: `${Q.control} ${t}`,
4053
+ className: `${En.control} ${t}`,
2241
4054
  children: [
2242
- /* @__PURE__ */ d(xt, { icon: n }),
4055
+ /* @__PURE__ */ f(Nn, { icon: n }),
2243
4056
  r,
2244
- /* @__PURE__ */ d("span", {
2245
- className: Q.caret,
4057
+ /* @__PURE__ */ f("span", {
4058
+ className: En.caret,
2246
4059
  "aria-hidden": "true",
2247
- children: /* @__PURE__ */ d(g, {
2248
- size: ht[o],
4060
+ children: /* @__PURE__ */ f(_, {
4061
+ size: Dn[o],
2249
4062
  color: "currentColor"
2250
4063
  })
2251
4064
  })
2252
4065
  ]
2253
4066
  });
2254
4067
  });
2255
- St.displayName = "NavigationMenuTrigger";
2256
- var Ct = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ d(M.Content, {
4068
+ Pn.displayName = "NavigationMenuTrigger";
4069
+ var Fn = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ f(N.Content, {
2257
4070
  ...t,
2258
4071
  ref: n,
2259
- className: `${Q.content} ${e}`
4072
+ className: `${En.content} ${e}`
2260
4073
  }));
2261
- Ct.displayName = "NavigationMenuContent";
2262
- var wt = e.forwardRef(({ variant: e = "panel", icon: t, className: n = "", children: r, ...i }, a) => /* @__PURE__ */ d(M.Link, {
4074
+ Fn.displayName = "NavigationMenuContent";
4075
+ var In = e.forwardRef(({ variant: e = "panel", icon: t, className: n = "", children: r, ...i }, a) => /* @__PURE__ */ f(N.Link, {
2263
4076
  ...i,
2264
4077
  ref: a,
2265
- className: `${e === "navigation" ? Q.control : Q.link} ${n}`,
2266
- children: e === "navigation" && !i.asChild ? /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(xt, { icon: t }), r] }) : r
4078
+ className: `${e === "navigation" ? En.control : En.link} ${n}`,
4079
+ children: e === "navigation" && !i.asChild ? /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(Nn, { icon: t }), r] }) : r
2267
4080
  }));
2268
- wt.displayName = "NavigationMenuLink";
4081
+ In.displayName = "NavigationMenuLink";
2269
4082
  var $ = {
2270
4083
  panel: "_panel_98mmj_7",
2271
4084
  header: "_header_98mmj_15",
@@ -2300,38 +4113,38 @@ var $ = {
2300
4113
  };
2301
4114
  //#endregion
2302
4115
  //#region src/components/Chat/ChatPanel.tsx
2303
- function Tt({ children: e }) {
2304
- return /* @__PURE__ */ d("kbd", {
4116
+ function Ln({ children: e }) {
4117
+ return /* @__PURE__ */ f("kbd", {
2305
4118
  className: $.kbd,
2306
4119
  children: e
2307
4120
  });
2308
4121
  }
2309
- var Et = /* @__PURE__ */ f(u, { children: [
2310
- /* @__PURE__ */ f("span", { children: [/* @__PURE__ */ d(Tt, { children: "↵" }), " send"] }),
2311
- /* @__PURE__ */ f("span", { children: [/* @__PURE__ */ d(Tt, { children: "⇧↵" }), " new line"] }),
2312
- /* @__PURE__ */ f("span", { children: [/* @__PURE__ */ d(Tt, { children: "esc" }), " close"] })
4122
+ var Rn = /* @__PURE__ */ p(d, { children: [
4123
+ /* @__PURE__ */ p("span", { children: [/* @__PURE__ */ f(Ln, { children: "↵" }), " send"] }),
4124
+ /* @__PURE__ */ p("span", { children: [/* @__PURE__ */ f(Ln, { children: "⇧↵" }), " new line"] }),
4125
+ /* @__PURE__ */ p("span", { children: [/* @__PURE__ */ f(Ln, { children: "esc" }), " close"] })
2313
4126
  ] });
2314
- function Dt({ header: e, children: t, composer: n, hints: r = Et, className: i = "", threadRef: a, "aria-label": o }) {
2315
- return /* @__PURE__ */ f("div", {
4127
+ function zn({ header: e, children: t, composer: n, hints: r = Rn, className: i = "", threadRef: a, "aria-label": o }) {
4128
+ return /* @__PURE__ */ p("div", {
2316
4129
  className: `${$.panel} ${i}`,
2317
4130
  "aria-label": o,
2318
4131
  children: [
2319
- e && /* @__PURE__ */ d("div", {
4132
+ e && /* @__PURE__ */ f("div", {
2320
4133
  className: $.header,
2321
4134
  children: e
2322
4135
  }),
2323
- /* @__PURE__ */ d("div", {
4136
+ /* @__PURE__ */ f("div", {
2324
4137
  className: $.thread,
2325
4138
  ref: a,
2326
4139
  role: "log",
2327
4140
  "aria-live": "polite",
2328
4141
  children: t
2329
4142
  }),
2330
- n && /* @__PURE__ */ d("div", {
4143
+ n && /* @__PURE__ */ f("div", {
2331
4144
  className: $.footer,
2332
4145
  children: n
2333
4146
  }),
2334
- r !== !1 && r && /* @__PURE__ */ d("div", {
4147
+ r !== !1 && r && /* @__PURE__ */ f("div", {
2335
4148
  className: $.hints,
2336
4149
  children: r
2337
4150
  })
@@ -2340,25 +4153,25 @@ function Dt({ header: e, children: t, composer: n, hints: r = Et, className: i =
2340
4153
  }
2341
4154
  //#endregion
2342
4155
  //#region src/components/Chat/Message.tsx
2343
- function Ot({ children: e, className: t = "" }) {
2344
- return /* @__PURE__ */ d("div", {
4156
+ function Bn({ children: e, className: t = "" }) {
4157
+ return /* @__PURE__ */ f("div", {
2345
4158
  className: $.userRow,
2346
- children: /* @__PURE__ */ d("div", {
4159
+ children: /* @__PURE__ */ f("div", {
2347
4160
  className: `${$.userMsg} ${t}`,
2348
4161
  children: e
2349
4162
  })
2350
4163
  });
2351
4164
  }
2352
- function kt({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
2353
- return /* @__PURE__ */ f("div", {
4165
+ function Vn({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
4166
+ return /* @__PURE__ */ p("div", {
2354
4167
  className: `${$.assistant} ${r}`,
2355
- children: [/* @__PURE__ */ f("div", {
4168
+ children: [/* @__PURE__ */ p("div", {
2356
4169
  className: $.assistantHead,
2357
- children: [t === void 0 ? /* @__PURE__ */ d(p, {
4170
+ children: [t === void 0 ? /* @__PURE__ */ f(m, {
2358
4171
  color: "currentColor",
2359
4172
  size: 14
2360
- }) : t, /* @__PURE__ */ d("span", { children: e })]
2361
- }), /* @__PURE__ */ d("div", {
4173
+ }) : t, /* @__PURE__ */ f("span", { children: e })]
4174
+ }), /* @__PURE__ */ f("div", {
2362
4175
  className: $.assistantBody,
2363
4176
  children: n
2364
4177
  })]
@@ -2366,67 +4179,67 @@ function kt({ label: e = "Assistant", icon: t, children: n, className: r = "" })
2366
4179
  }
2367
4180
  //#endregion
2368
4181
  //#region src/components/Chat/Composer.tsx
2369
- var At = 18, jt = e.forwardRef(function({ value: e, onChange: t, onSend: n, onStop: a, streaming: s = !1, placeholder: l = "Ask a question…", disabled: u = !1, autoFocus: h = !1, icon: g, maxLines: _ = 6, maxLength: v, className: y = "", "aria-label": b = "Message" }, x) {
2370
- let S = c(null);
4182
+ var Hn = 18, Un = e.forwardRef(function({ value: e, onChange: t, onSend: n, onStop: a, streaming: s = !1, placeholder: c = "Ask a question…", disabled: u = !1, autoFocus: d = !1, icon: g, maxLines: _ = 6, maxLength: v, className: y = "", "aria-label": b = "Message" }, x) {
4183
+ let S = l(null);
2371
4184
  o(x, () => ({ focus: () => S.current?.focus() }), []), i(() => {
2372
4185
  let e = S.current;
2373
4186
  if (!e) return;
2374
4187
  e.style.height = "auto";
2375
- let t = At * _ + 12;
4188
+ let t = Hn * _ + 12;
2376
4189
  e.style.height = `${Math.min(e.scrollHeight, t)}px`;
2377
4190
  }, [e, _]);
2378
- let C = v !== void 0 && v > 0 && e.length > v, T = !s && !u && !C && e.trim().length > 0, E = r(() => {
2379
- T && n(e.trim());
4191
+ let C = v !== void 0 && v > 0 && e.length > v, w = !s && !u && !C && e.trim().length > 0, E = r(() => {
4192
+ w && n(e.trim());
2380
4193
  }, [
2381
- T,
4194
+ w,
2382
4195
  n,
2383
4196
  e
2384
4197
  ]);
2385
- return /* @__PURE__ */ f("div", {
4198
+ return /* @__PURE__ */ p("div", {
2386
4199
  className: $.composerWrap,
2387
- children: [/* @__PURE__ */ f("div", {
4200
+ children: [/* @__PURE__ */ p("div", {
2388
4201
  className: `${$.composer} ${C ? $.composerOver : ""} ${y}`,
2389
- children: [/* @__PURE__ */ f("div", {
4202
+ children: [/* @__PURE__ */ p("div", {
2390
4203
  className: $.composerField,
2391
- children: [g !== null && /* @__PURE__ */ d("span", {
4204
+ children: [g !== null && /* @__PURE__ */ f("span", {
2392
4205
  className: $.composerIcon,
2393
4206
  "aria-hidden": "true",
2394
- children: g === void 0 ? /* @__PURE__ */ d(p, {
4207
+ children: g === void 0 ? /* @__PURE__ */ f(m, {
2395
4208
  color: "currentColor",
2396
4209
  size: 21
2397
4210
  }) : g
2398
- }), /* @__PURE__ */ d("textarea", {
4211
+ }), /* @__PURE__ */ f("textarea", {
2399
4212
  ref: S,
2400
4213
  className: $.composerInput,
2401
4214
  rows: 1,
2402
4215
  value: e,
2403
- placeholder: l,
4216
+ placeholder: c,
2404
4217
  disabled: u,
2405
- autoFocus: h,
4218
+ autoFocus: d,
2406
4219
  "aria-label": b,
2407
4220
  onChange: (e) => t(e.target.value),
2408
4221
  onKeyDown: (e) => {
2409
4222
  e.key === "Enter" && !e.shiftKey && !e.nativeEvent.isComposing && (e.preventDefault(), E());
2410
4223
  }
2411
4224
  })]
2412
- }), /* @__PURE__ */ d("div", {
4225
+ }), /* @__PURE__ */ f("div", {
2413
4226
  className: $.composerButton,
2414
- children: s ? /* @__PURE__ */ d(I, {
4227
+ children: s ? /* @__PURE__ */ f(R, {
2415
4228
  variant: "secondary",
2416
4229
  size: "micro",
2417
4230
  "aria-label": "Stop",
2418
- iconLeft: /* @__PURE__ */ d(w, {}),
4231
+ iconLeft: /* @__PURE__ */ f(T, {}),
2419
4232
  onClick: a
2420
- }) : /* @__PURE__ */ d(I, {
4233
+ }) : /* @__PURE__ */ f(R, {
2421
4234
  variant: "primary",
2422
4235
  size: "micro",
2423
4236
  "aria-label": "Send",
2424
- iconLeft: /* @__PURE__ */ d(m, {}),
2425
- disabled: !T,
4237
+ iconLeft: /* @__PURE__ */ f(h, {}),
4238
+ disabled: !w,
2426
4239
  onClick: E
2427
4240
  })
2428
4241
  })]
2429
- }), C && /* @__PURE__ */ f("p", {
4242
+ }), C && /* @__PURE__ */ p("p", {
2430
4243
  className: $.composerNote,
2431
4244
  role: "status",
2432
4245
  children: [
@@ -2440,16 +4253,16 @@ var At = 18, jt = e.forwardRef(function({ value: e, onChange: t, onSend: n, onSt
2440
4253
  });
2441
4254
  //#endregion
2442
4255
  //#region src/components/Chat/Citation.tsx
2443
- function Mt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
4256
+ function Wn({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
2444
4257
  let a = `${$.ref} ${i}`;
2445
- return t ? /* @__PURE__ */ d("a", {
4258
+ return t ? /* @__PURE__ */ f("a", {
2446
4259
  href: t,
2447
4260
  className: a,
2448
4261
  onClick: n,
2449
4262
  title: r,
2450
4263
  "aria-label": `Source ${e}${r ? `: ${r}` : ""}`,
2451
4264
  children: e
2452
- }) : /* @__PURE__ */ d("button", {
4265
+ }) : /* @__PURE__ */ f("button", {
2453
4266
  type: "button",
2454
4267
  className: a,
2455
4268
  onClick: n,
@@ -2458,19 +4271,19 @@ function Mt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
2458
4271
  children: e
2459
4272
  });
2460
4273
  }
2461
- function Nt({ items: e, label: t = "Sources", className: n = "" }) {
2462
- return e.length === 0 ? null : /* @__PURE__ */ f("div", {
4274
+ function Gn({ items: e, label: t = "Sources", className: n = "" }) {
4275
+ return e.length === 0 ? null : /* @__PURE__ */ p("div", {
2463
4276
  className: `${$.stack} ${n}`,
2464
- children: [/* @__PURE__ */ d("div", {
4277
+ children: [/* @__PURE__ */ f("div", {
2465
4278
  className: $.label,
2466
4279
  children: t
2467
- }), /* @__PURE__ */ d("div", {
4280
+ }), /* @__PURE__ */ f("div", {
2468
4281
  className: $.wrap,
2469
4282
  children: e.map((e) => {
2470
- let t = /* @__PURE__ */ f(Pe, {
4283
+ let t = /* @__PURE__ */ p(Pt, {
2471
4284
  icon: e.icon,
2472
4285
  children: [
2473
- /* @__PURE__ */ d("span", {
4286
+ /* @__PURE__ */ f("span", {
2474
4287
  className: $.citationNumber,
2475
4288
  children: e.n
2476
4289
  }),
@@ -2478,12 +4291,12 @@ function Nt({ items: e, label: t = "Sources", className: n = "" }) {
2478
4291
  e.title
2479
4292
  ]
2480
4293
  });
2481
- return e.href ? /* @__PURE__ */ d("a", {
4294
+ return e.href ? /* @__PURE__ */ f("a", {
2482
4295
  href: e.href,
2483
4296
  className: $.citationLink,
2484
4297
  onClick: e.onClick,
2485
4298
  children: t
2486
- }, e.n) : /* @__PURE__ */ d("button", {
4299
+ }, e.n) : /* @__PURE__ */ f("button", {
2487
4300
  type: "button",
2488
4301
  className: $.citationLink,
2489
4302
  onClick: e.onClick,
@@ -2495,30 +4308,30 @@ function Nt({ items: e, label: t = "Sources", className: n = "" }) {
2495
4308
  }
2496
4309
  //#endregion
2497
4310
  //#region src/components/Chat/StreamStatus.tsx
2498
- function Pt({ children: e, spinner: t, className: n = "" }) {
2499
- return /* @__PURE__ */ f("div", {
4311
+ function Kn({ children: e, spinner: t, className: n = "" }) {
4312
+ return /* @__PURE__ */ p("div", {
2500
4313
  className: `${$.status} ${n}`,
2501
4314
  role: "status",
2502
- children: [/* @__PURE__ */ d("span", {
4315
+ children: [/* @__PURE__ */ f("span", {
2503
4316
  className: $.statusSpinner,
2504
- children: /* @__PURE__ */ d(F, {
4317
+ children: /* @__PURE__ */ f(L, {
2505
4318
  name: t,
2506
4319
  size: 14
2507
4320
  })
2508
- }), /* @__PURE__ */ d("span", { children: e })]
4321
+ }), /* @__PURE__ */ f("span", { children: e })]
2509
4322
  });
2510
4323
  }
2511
4324
  //#endregion
2512
4325
  //#region src/components/Chat/Suggestions.tsx
2513
- function Ft({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
2514
- return /* @__PURE__ */ f("div", {
4326
+ function qn({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
4327
+ return /* @__PURE__ */ p("div", {
2515
4328
  className: `${$.suggestions} ${r}`,
2516
- children: [/* @__PURE__ */ d("div", {
4329
+ children: [/* @__PURE__ */ f("div", {
2517
4330
  className: $.label,
2518
4331
  children: n
2519
- }), /* @__PURE__ */ d("div", {
4332
+ }), /* @__PURE__ */ f("div", {
2520
4333
  className: $.wrap,
2521
- children: e.map((e) => /* @__PURE__ */ d(I, {
4334
+ children: e.map((e) => /* @__PURE__ */ f(R, {
2522
4335
  variant: "secondary",
2523
4336
  size: "micro",
2524
4337
  onClick: () => t(e),
@@ -2529,43 +4342,43 @@ function Ft({ items: e, onPick: t, label: n = "Try asking", className: r = "" })
2529
4342
  }
2530
4343
  //#endregion
2531
4344
  //#region src/components/Chat/AnswerActions.tsx
2532
- function It({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
2533
- return /* @__PURE__ */ f("div", {
4345
+ function Jn({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
4346
+ return /* @__PURE__ */ p("div", {
2534
4347
  className: `${$.actions} ${i}`,
2535
4348
  children: [
2536
- e && /* @__PURE__ */ d(I, {
4349
+ e && /* @__PURE__ */ f(R, {
2537
4350
  variant: "ghost",
2538
4351
  size: "micro",
2539
- iconLeft: d(t ? h : y, {}),
4352
+ iconLeft: f(t ? g : b, {}),
2540
4353
  onClick: e,
2541
4354
  children: t ? "Copied" : "Copy"
2542
4355
  }),
2543
- /* @__PURE__ */ d("span", { className: $.actionsSpacer }),
2544
- n && /* @__PURE__ */ d(I, {
4356
+ /* @__PURE__ */ f("span", { className: $.actionsSpacer }),
4357
+ n && /* @__PURE__ */ f(R, {
2545
4358
  variant: "ghost",
2546
4359
  size: "micro",
2547
- iconRight: /* @__PURE__ */ d(v, {}),
4360
+ iconRight: /* @__PURE__ */ f(y, {}),
2548
4361
  onClick: n,
2549
4362
  children: r
2550
4363
  })
2551
4364
  ]
2552
4365
  });
2553
4366
  }
2554
- var Lt = {
4367
+ var Yn = {
2555
4368
  truncate: "_truncate_za4sm_1",
2556
4369
  start: "_start_za4sm_13"
2557
4370
  };
2558
4371
  //#endregion
2559
4372
  //#region src/components/Truncate/Truncate.tsx
2560
- function Rt({ children: e, side: t = "end", title: n, className: r = "" }) {
4373
+ function Xn({ children: e, side: t = "end", title: n, className: r = "" }) {
2561
4374
  let i = n ?? (typeof e == "string" ? e : void 0);
2562
- return /* @__PURE__ */ d("span", {
2563
- className: `${Lt.truncate} ${t === "start" ? Lt.start : ""} ${r}`,
4375
+ return /* @__PURE__ */ f("span", {
4376
+ className: `${Yn.truncate} ${t === "start" ? Yn.start : ""} ${r}`,
2564
4377
  title: i,
2565
- children: t === "start" ? /* @__PURE__ */ d("bdi", { children: e }) : e
4378
+ children: t === "start" ? /* @__PURE__ */ f("bdi", { children: e }) : e
2566
4379
  });
2567
4380
  }
2568
- var zt = {
4381
+ var Zn = {
2569
4382
  disclosure: "_disclosure_94bgy_1",
2570
4383
  trigger: "_trigger_94bgy_7",
2571
4384
  summary: "_summary_94bgy_31",
@@ -2574,45 +4387,45 @@ var zt = {
2574
4387
  };
2575
4388
  //#endregion
2576
4389
  //#region src/components/Disclosure/Disclosure.tsx
2577
- function Bt({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChange: a, className: o = "" }) {
4390
+ function Qn({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChange: a, className: o = "" }) {
2578
4391
  let [s, c] = e.useState(i), l = r ?? s, u = e.useId();
2579
- return /* @__PURE__ */ f("div", {
2580
- className: `${zt.disclosure} ${o}`,
4392
+ return /* @__PURE__ */ p("div", {
4393
+ className: `${Zn.disclosure} ${o}`,
2581
4394
  "data-state": l ? "open" : "closed",
2582
- children: [/* @__PURE__ */ f("button", {
4395
+ children: [/* @__PURE__ */ p("button", {
2583
4396
  type: "button",
2584
- className: zt.trigger,
4397
+ className: Zn.trigger,
2585
4398
  "aria-expanded": l,
2586
4399
  "aria-controls": l ? u : void 0,
2587
4400
  onClick: () => {
2588
4401
  r === void 0 && c(!l), a?.(!l);
2589
4402
  },
2590
- children: [/* @__PURE__ */ d("span", {
2591
- className: zt.summary,
4403
+ children: [/* @__PURE__ */ f("span", {
4404
+ className: Zn.summary,
2592
4405
  children: t
2593
- }), /* @__PURE__ */ d("span", {
2594
- className: zt.chevron,
4406
+ }), /* @__PURE__ */ f("span", {
4407
+ className: Zn.chevron,
2595
4408
  "aria-hidden": "true",
2596
- children: d(l ? g : v, {
4409
+ children: f(l ? _ : y, {
2597
4410
  size: 14,
2598
4411
  color: "currentColor"
2599
4412
  })
2600
4413
  })]
2601
- }), l && /* @__PURE__ */ d("div", {
4414
+ }), l && /* @__PURE__ */ f("div", {
2602
4415
  id: u,
2603
- className: zt.content,
4416
+ className: Zn.content,
2604
4417
  children: n
2605
4418
  })]
2606
4419
  });
2607
4420
  }
2608
- var Vt = {
4421
+ var $n = {
2609
4422
  field: "_field_5juos_1",
2610
4423
  code: "_code_5juos_16",
2611
4424
  status: "_status_5juos_31"
2612
4425
  };
2613
4426
  //#endregion
2614
4427
  //#region src/components/CodeCopy/CodeCopy.tsx
2615
- async function Ht(e) {
4428
+ async function er(e) {
2616
4429
  if (navigator.clipboard && window.isSecureContext) try {
2617
4430
  return await navigator.clipboard.writeText(e), !0;
2618
4431
  } catch {}
@@ -2626,27 +4439,27 @@ async function Ht(e) {
2626
4439
  t.remove();
2627
4440
  }
2628
4441
  }
2629
- function Ut({ code: e, className: t, onCopy: n }) {
2630
- let [r, a] = l(!1), o = c(void 0);
2631
- return i(() => () => clearTimeout(o.current), []), /* @__PURE__ */ f("div", {
2632
- className: [Vt.field, t].filter(Boolean).join(" "),
4442
+ function tr({ code: e, className: t, onCopy: n }) {
4443
+ let [r, a] = u(!1), o = l(void 0);
4444
+ return i(() => () => clearTimeout(o.current), []), /* @__PURE__ */ p("div", {
4445
+ className: [$n.field, t].filter(Boolean).join(" "),
2633
4446
  children: [
2634
- /* @__PURE__ */ d("code", {
2635
- className: Vt.code,
4447
+ /* @__PURE__ */ f("code", {
4448
+ className: $n.code,
2636
4449
  children: e
2637
4450
  }),
2638
- /* @__PURE__ */ d(I, {
4451
+ /* @__PURE__ */ f(R, {
2639
4452
  size: "micro",
2640
4453
  variant: "ghost",
2641
- iconLeft: d(r ? h : y, {}),
4454
+ iconLeft: f(r ? g : b, {}),
2642
4455
  onClick: async () => {
2643
- await Ht(e) && (a(!0), n?.(), clearTimeout(o.current), o.current = setTimeout(() => a(!1), 2e3));
4456
+ await er(e) && (a(!0), n?.(), clearTimeout(o.current), o.current = setTimeout(() => a(!1), 2e3));
2644
4457
  },
2645
4458
  "aria-label": r ? "Copied" : "Copy",
2646
4459
  title: r ? "Copied" : "Copy"
2647
4460
  }),
2648
- /* @__PURE__ */ d("span", {
2649
- className: Vt.status,
4461
+ /* @__PURE__ */ f("span", {
4462
+ className: $n.status,
2650
4463
  role: "status",
2651
4464
  children: r ? "Copied" : ""
2652
4465
  })
@@ -2654,4 +4467,4 @@ function Ut({ code: e, className: t, onCopy: n }) {
2654
4467
  });
2655
4468
  }
2656
4469
  //#endregion
2657
- export { Le as Alert, ze as AlertDescription, Re as AlertTitle, It as AnswerActions, kt as AssistantMessage, ie as Base, Ae as Breadcrumbs, I as Button, Ye as Chart, Dt as ChatPanel, ne as Checkbox, Pe as Chip, Nt as CitationList, Mt as CitationRef, Ut as CodeCopy, jt as Composer, ct as DatePicker, Bt as Disclosure, ae as FilterPanelBase, le as InputField, Tt as Kbd, nt as Modal, vt as NavigationMenu, Ct as NavigationMenuContent, bt as NavigationMenuItem, wt as NavigationMenuLink, yt as NavigationMenuList, St as NavigationMenuTrigger, ve as Popover, Me as ProgressBar, de as RadioButton, ft as STAT_ICON_SIZE, Ve as SaveBar, se as SearchField, ge as Select, dt as Skeleton, he as Slider, Qe as Sparkline, F as Spinner, pt as Stat, mt as StatGroup, Pt as StreamStatus, Ft as Suggestions, ye as Table, Se as TableCell, be as TableHeader, we as TableIcon, xe as TableRow, Ce as TableValue, De as Tabs, et as Textarea, pe as ToggleSwitch, Ue as Tooltip, Rt as Truncate, Ot as UserMessage, Et as defaultChatHints, te as spinnerNames };
4470
+ export { Rt as Alert, Bt as AlertDescription, zt as AlertTitle, Jn as AnswerActions, Vn as AssistantMessage, Qe as BarMeter, ve as BarSlider, re as Base, Ve as Breadcrumbs, R as Button, an as Chart, zn as ChatPanel, ne as Checkbox, Pt as Chip, Gn as CitationList, Wn as CitationRef, tr as CodeCopy, Un as Composer, yn as DatePicker, Qn as Disclosure, V as FilterPanelBase, wt as GroupedBars, st as Heatmap, ce as InputField, Ln as Kbd, pn as Modal, An as NavigationMenu, Fn as NavigationMenuContent, Mn as NavigationMenuItem, In as NavigationMenuLink, jn as NavigationMenuList, Pn as NavigationMenuTrigger, Te as Popover, Ue as ProgressBar, vt as RadarChart, ft as RadialChart, ue as RadioButton, Cn as STAT_ICON_SIZE, Ht as SaveBar, Se as ScrubSlider, oe as SearchField, Re as SegmentedControl, Ce as Select, Sn as Skeleton, me as Slider, ln as Sparkline, L as Spinner, wn as Stat, Tn as StatGroup, Kn as StreamStatus, qn as Suggestions, De as Table, Ae as TableCell, Oe as TableHeader, Me as TableIcon, ke as TableRow, je as TableValue, Ie as Tabs, dn as Textarea, fe as ToggleSwitch, Wt as Tooltip, jt as TreeCanvas, Xn as Truncate, Bn as UserMessage, rt as Waffle, nt as allocateCells, ut as calendarCells, Rn as defaultChatHints, ot as levelOf, ee as spinnerNames };