@cronocode/react-box 3.1.13 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core.mjs CHANGED
@@ -1,18 +1,18 @@
1
- import Ce, { useContext as we, useState as ge, useLayoutEffect as U, useMemo as ne, useEffect as fe, useRef as xe } from "react";
2
- import { jsx as S } from "react/jsx-runtime";
3
- import _ from "./components/baseSvg.mjs";
4
- import Ne from "./box.mjs";
5
- function me(...e) {
6
- return e.reduce((r, a) => a ? typeof a == "string" ? (r.push(a), r) : Array.isArray(a) ? (r.push(...me(...a)), r) : (Object.entries(a).forEach(([o, t]) => {
1
+ import we, { useContext as xe, useState as Z, useRef as fe, useCallback as Ne, useLayoutEffect as B, useMemo as se, useEffect as me } from "react";
2
+ import { jsx as z } from "react/jsx-runtime";
3
+ import H from "./components/baseSvg.mjs";
4
+ import Fe from "./box.mjs";
5
+ function ye(...e) {
6
+ return e.reduce((r, a) => a ? typeof a == "string" ? (r.push(a), r) : Array.isArray(a) ? (r.push(...ye(...a)), r) : (Object.entries(a).forEach(([o, t]) => {
7
7
  t && r.push(o);
8
8
  }), r) : r, []);
9
9
  }
10
- const Z = 4;
11
- var l;
10
+ const Q = 4;
11
+ var n;
12
12
  ((e) => {
13
13
  ((r) => {
14
- function a(t, n) {
15
- return `${t}${n.replace("/", "-")}`;
14
+ function a(t, l) {
15
+ return `${t}${l.replace("/", "-")}`;
16
16
  }
17
17
  r.fraction = a;
18
18
  function o(t) {
@@ -20,61 +20,61 @@ var l;
20
20
  }
21
21
  r.svg = o;
22
22
  })(e.ClassName || (e.ClassName = {})), ((r) => {
23
- function a(x) {
24
- return `${x / Z}rem`;
23
+ function a(C) {
24
+ return `${C / Q}rem`;
25
25
  }
26
26
  r.rem = a;
27
- function o(x) {
28
- return `${x}px`;
27
+ function o(C) {
28
+ return `${C}px`;
29
29
  }
30
30
  r.px = o;
31
- function t(x) {
32
- const [C, R] = x.split("/");
33
- return `${+C / +R * 100}%`;
31
+ function t(C) {
32
+ const [w, R] = C.split("/");
33
+ return `${+w / +R * 100}%`;
34
34
  }
35
35
  r.fraction = t;
36
- function n(x, C) {
37
- switch (C) {
36
+ function l(C, w) {
37
+ switch (w) {
38
38
  case "fit":
39
39
  return "100%";
40
40
  case "fit-screen":
41
- return x.toLocaleLowerCase().includes("height") ? "100vh" : "100vw";
41
+ return C.toLocaleLowerCase().includes("height") ? "100vh" : "100vw";
42
42
  default:
43
- return C;
43
+ return w;
44
44
  }
45
45
  }
46
- r.widthHeight = n;
47
- function s(x) {
48
- return (C, R) => `var(--${x}${R});`;
46
+ r.widthHeight = l;
47
+ function u(C) {
48
+ return (w, R) => `var(--${C}${R});`;
49
49
  }
50
- r.variables = s;
51
- function c(x) {
52
- return (C, R) => `var(--${x}${R});`;
50
+ r.variables = u;
51
+ function c(C) {
52
+ return (w, R) => `var(--${C}${R});`;
53
53
  }
54
54
  r.svgVariables = c;
55
- function u(x, C) {
56
- return `repeat(${C},minmax(0,1fr))`;
55
+ function i(C, w) {
56
+ return `repeat(${w},minmax(0,1fr))`;
57
57
  }
58
- r.gridColumns = u;
59
- function m(x, C) {
60
- return C === "full-row" ? "1/-1" : `span ${C}/span ${C}`;
58
+ r.gridColumns = i;
59
+ function m(C, w) {
60
+ return w === "full-row" ? "1/-1" : `span ${w}/span ${w}`;
61
61
  }
62
62
  r.gridColumn = m;
63
- function f(x, C) {
64
- return `${C}ms`;
63
+ function y(C, w) {
64
+ return `${w}ms`;
65
65
  }
66
- r.ms = f;
67
- function y(x, C) {
68
- return `${C}deg`;
66
+ r.ms = y;
67
+ function d(C, w) {
68
+ return `${w}deg`;
69
69
  }
70
- r.rotate = y;
71
- function z(x, C) {
72
- return C === "xAxis" ? "-1 1" : "1 -1";
70
+ r.rotate = d;
71
+ function V(C, w) {
72
+ return w === "xAxis" ? "-1 1" : "1 -1";
73
73
  }
74
- r.flip = z;
74
+ r.flip = V;
75
75
  })(e.Value || (e.Value = {}));
76
- })(l || (l = {}));
77
- var Q;
76
+ })(n || (n = {}));
77
+ var J;
78
78
  ((e) => {
79
79
  e.colors = {
80
80
  currentColor: "currentColor",
@@ -402,30 +402,30 @@ var Q;
402
402
  inherit: "inherit",
403
403
  none: "none"
404
404
  }, ...e.colors, ...e.bgImages, ...e.shadows }, o = {}, t = {};
405
- let n = {};
406
- function s(y) {
407
- return y in o || (y in n ? (t[y] = n[y], o[y] = n[y]) : y in a ? (t[y] = a[y], o[y] = a[y]) : (t[y] = y, o[y] = y)), `var(--${y})`;
405
+ let l = {};
406
+ function u(d) {
407
+ return d in o || (d in l ? (t[d] = l[d], o[d] = l[d]) : d in a ? (t[d] = a[d], o[d] = a[d]) : (t[d] = d, o[d] = d)), `var(--${d})`;
408
408
  }
409
- e.getVariableValue = s;
409
+ e.getVariableValue = u;
410
410
  function c() {
411
- return Object.entries(o).map(([y, z]) => `--${y}: ${z};`).join("");
411
+ return Object.entries(o).map(([d, V]) => `--${d}: ${V};`).join("");
412
412
  }
413
413
  e.generateVariables = c;
414
- function u() {
415
- const y = { ...t };
416
- return Object.keys(t).forEach((z) => delete t[z]), y;
414
+ function i() {
415
+ const d = { ...t };
416
+ return Object.keys(t).forEach((V) => delete t[V]), d;
417
417
  }
418
- e.getPendingVariables = u;
418
+ e.getPendingVariables = i;
419
419
  function m() {
420
420
  return Object.keys(t).length > 0;
421
421
  }
422
422
  e.hasPendingVariables = m;
423
- function f(y) {
424
- n = y;
423
+ function y(d) {
424
+ l = d;
425
425
  }
426
- e.setUserVariables = f;
427
- })(Q || (Q = {}));
428
- const i = Q, B = {
426
+ e.setUserVariables = y;
427
+ })(J || (J = {}));
428
+ const s = J, T = {
429
429
  /** The appearance CSS property is used to display UI elements with platform-specific styling, based on the operating system's theme. */
430
430
  appearance: [
431
431
  {
@@ -437,7 +437,7 @@ const i = Q, B = {
437
437
  {
438
438
  values: 0,
439
439
  styleName: "border-width",
440
- valueFormat: l.Value.px
440
+ valueFormat: n.Value.px
441
441
  }
442
442
  ],
443
443
  /** The border-width shorthand CSS property sets the width of an element's left and right border. */
@@ -445,7 +445,7 @@ const i = Q, B = {
445
445
  {
446
446
  values: 0,
447
447
  styleName: "border-inline-width",
448
- valueFormat: l.Value.px
448
+ valueFormat: n.Value.px
449
449
  }
450
450
  ],
451
451
  /** The border-width shorthand CSS property sets the width of an element's top and bottom border. */
@@ -453,7 +453,7 @@ const i = Q, B = {
453
453
  {
454
454
  values: 0,
455
455
  styleName: "border-block-width",
456
- valueFormat: l.Value.px
456
+ valueFormat: n.Value.px
457
457
  }
458
458
  ],
459
459
  /** The border-top-width CSS property sets the width of the top border of an element. */
@@ -461,7 +461,7 @@ const i = Q, B = {
461
461
  {
462
462
  values: 0,
463
463
  styleName: "border-top-width",
464
- valueFormat: l.Value.px
464
+ valueFormat: n.Value.px
465
465
  }
466
466
  ],
467
467
  /** The border-right-width CSS property sets the width of the right border of an element. */
@@ -469,7 +469,7 @@ const i = Q, B = {
469
469
  {
470
470
  values: 0,
471
471
  styleName: "border-right-width",
472
- valueFormat: l.Value.px
472
+ valueFormat: n.Value.px
473
473
  }
474
474
  ],
475
475
  /** The border-bottom-width CSS property sets the width of the bottom border of an element. */
@@ -477,7 +477,7 @@ const i = Q, B = {
477
477
  {
478
478
  values: 0,
479
479
  styleName: "border-bottom-width",
480
- valueFormat: l.Value.px
480
+ valueFormat: n.Value.px
481
481
  }
482
482
  ],
483
483
  /** The border-left-width CSS property sets the width of the left border of an element. */
@@ -485,7 +485,7 @@ const i = Q, B = {
485
485
  {
486
486
  values: 0,
487
487
  styleName: "border-left-width",
488
- valueFormat: l.Value.px
488
+ valueFormat: n.Value.px
489
489
  }
490
490
  ],
491
491
  /** The border-style shorthand CSS property sets the line style for all four sides of an element's border. */
@@ -500,7 +500,7 @@ const i = Q, B = {
500
500
  {
501
501
  styleName: "border-radius",
502
502
  values: 0,
503
- valueFormat: l.Value.rem
503
+ valueFormat: n.Value.rem
504
504
  }
505
505
  ],
506
506
  /** The border-top-radius CSS property rounds the top corners of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
@@ -508,7 +508,7 @@ const i = Q, B = {
508
508
  {
509
509
  values: 0,
510
510
  styleName: ["border-top-left-radius", "border-top-right-radius"],
511
- valueFormat: l.Value.rem
511
+ valueFormat: n.Value.rem
512
512
  }
513
513
  ],
514
514
  /** The border-right-radius CSS property rounds the right corners of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
@@ -516,7 +516,7 @@ const i = Q, B = {
516
516
  {
517
517
  values: 0,
518
518
  styleName: ["border-top-right-radius", "border-bottom-right-radius"],
519
- valueFormat: l.Value.rem
519
+ valueFormat: n.Value.rem
520
520
  }
521
521
  ],
522
522
  /** The border-bottom-radius CSS property rounds the bottom corners of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
@@ -524,7 +524,7 @@ const i = Q, B = {
524
524
  {
525
525
  values: 0,
526
526
  styleName: ["border-bottom-left-radius", "border-bottom-right-radius"],
527
- valueFormat: l.Value.rem
527
+ valueFormat: n.Value.rem
528
528
  }
529
529
  ],
530
530
  /** The border-left-radius CSS property rounds the left corners of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
@@ -532,7 +532,7 @@ const i = Q, B = {
532
532
  {
533
533
  values: 0,
534
534
  styleName: ["border-top-left-radius", "border-bottom-left-radius"],
535
- valueFormat: l.Value.rem
535
+ valueFormat: n.Value.rem
536
536
  }
537
537
  ],
538
538
  /** The border-top-left-radius CSS property rounds the top-left corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
@@ -540,7 +540,7 @@ const i = Q, B = {
540
540
  {
541
541
  values: 0,
542
542
  styleName: "border-top-left-radius",
543
- valueFormat: l.Value.rem
543
+ valueFormat: n.Value.rem
544
544
  }
545
545
  ],
546
546
  /** The border-top-right-radius CSS property rounds the top-right corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
@@ -548,7 +548,7 @@ const i = Q, B = {
548
548
  {
549
549
  values: 0,
550
550
  styleName: "border-top-right-radius",
551
- valueFormat: l.Value.rem
551
+ valueFormat: n.Value.rem
552
552
  }
553
553
  ],
554
554
  /** The border-bottom-right-radius CSS property rounds the bottom-right corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
@@ -556,7 +556,7 @@ const i = Q, B = {
556
556
  {
557
557
  values: 0,
558
558
  styleName: "border-bottom-right-radius",
559
- valueFormat: l.Value.rem
559
+ valueFormat: n.Value.rem
560
560
  }
561
561
  ],
562
562
  /** The border-bottom-left-radius CSS property rounds the bottom-left corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
@@ -564,7 +564,7 @@ const i = Q, B = {
564
564
  {
565
565
  values: 0,
566
566
  styleName: "border-bottom-left-radius",
567
- valueFormat: l.Value.rem
567
+ valueFormat: n.Value.rem
568
568
  }
569
569
  ],
570
570
  /** The position CSS property sets how an element is positioned in a document. The top, right, bottom, and left properties determine the final location of positioned elements. */
@@ -577,82 +577,82 @@ const i = Q, B = {
577
577
  top: [
578
578
  {
579
579
  values: 0,
580
- valueFormat: l.Value.rem
580
+ valueFormat: n.Value.rem
581
581
  },
582
582
  {
583
- values: i.percentages,
584
- valueFormat: l.Value.fraction
583
+ values: s.percentages,
584
+ valueFormat: n.Value.fraction
585
585
  },
586
586
  {
587
- values: i.negativePercentages,
588
- valueFormat: l.Value.fraction
587
+ values: s.negativePercentages,
588
+ valueFormat: n.Value.fraction
589
589
  },
590
590
  {
591
- values: i.percentString
591
+ values: s.percentString
592
592
  }
593
593
  ],
594
594
  /** The right CSS property participates in specifying the horizontal position of a positioned element. This inset property has no effect on non-positioned elements. */
595
595
  right: [
596
596
  {
597
597
  values: 0,
598
- valueFormat: l.Value.rem
598
+ valueFormat: n.Value.rem
599
599
  },
600
600
  {
601
- values: i.percentages,
602
- valueFormat: l.Value.fraction
601
+ values: s.percentages,
602
+ valueFormat: n.Value.fraction
603
603
  },
604
604
  {
605
- values: i.negativePercentages,
606
- valueFormat: l.Value.fraction
605
+ values: s.negativePercentages,
606
+ valueFormat: n.Value.fraction
607
607
  },
608
608
  {
609
- values: i.percentString
609
+ values: s.percentString
610
610
  }
611
611
  ],
612
612
  /** The bottom CSS property participates in setting the vertical position of a positioned element. This inset property has no effect on non-positioned elements. */
613
613
  bottom: [
614
614
  {
615
615
  values: 0,
616
- valueFormat: l.Value.rem
616
+ valueFormat: n.Value.rem
617
617
  },
618
618
  {
619
- values: i.percentages,
620
- valueFormat: l.Value.fraction
619
+ values: s.percentages,
620
+ valueFormat: n.Value.fraction
621
621
  },
622
622
  {
623
- values: i.negativePercentages,
624
- valueFormat: l.Value.fraction
623
+ values: s.negativePercentages,
624
+ valueFormat: n.Value.fraction
625
625
  },
626
626
  {
627
- values: i.percentString
627
+ values: s.percentString
628
628
  }
629
629
  ],
630
630
  /** The left CSS property participates in specifying the horizontal position of a positioned element. This inset property has no effect on non-positioned elements. */
631
631
  left: [
632
632
  {
633
633
  values: 0,
634
- valueFormat: l.Value.rem
634
+ valueFormat: n.Value.rem
635
635
  },
636
636
  {
637
- values: i.percentages,
638
- valueFormat: l.Value.fraction
637
+ values: s.percentages,
638
+ valueFormat: n.Value.fraction
639
639
  },
640
640
  {
641
- values: i.negativePercentages,
642
- valueFormat: l.Value.fraction
641
+ values: s.negativePercentages,
642
+ valueFormat: n.Value.fraction
643
643
  },
644
644
  {
645
- values: i.percentString
645
+ values: s.percentString
646
646
  }
647
647
  ],
648
648
  /** The inset CSS property is a shorthand that corresponds to the top, right, bottom, and/or left properties. It has the same multi-value syntax of the margin shorthand. */
649
649
  inset: [
650
650
  {
651
651
  values: 0,
652
- valueFormat: l.Value.rem
652
+ valueFormat: n.Value.rem
653
653
  },
654
654
  {
655
- values: i.percentString
655
+ values: s.percentString
656
656
  }
657
657
  ],
658
658
  /** The `box-sizing` CSS property sets how the total width and height of an element is calculated. */
@@ -856,10 +856,10 @@ const i = Q, B = {
856
856
  gap: [
857
857
  {
858
858
  values: 0,
859
- valueFormat: l.Value.rem
859
+ valueFormat: n.Value.rem
860
860
  },
861
861
  {
862
- values: i.percentString
862
+ values: s.percentString
863
863
  }
864
864
  ],
865
865
  /** The row-gap CSS property sets the size of the gap (gutter) between an element's rows. */
@@ -867,11 +867,11 @@ const i = Q, B = {
867
867
  {
868
868
  styleName: "row-gap",
869
869
  values: 0,
870
- valueFormat: l.Value.rem
870
+ valueFormat: n.Value.rem
871
871
  },
872
872
  {
873
873
  styleName: "row-gap",
874
- values: i.percentString
874
+ values: s.percentString
875
875
  }
876
876
  ],
877
877
  /** The column-gap CSS property sets the size of the gap (gutter) between an element's columns. */
@@ -879,11 +879,11 @@ const i = Q, B = {
879
879
  {
880
880
  styleName: "column-gap",
881
881
  values: 0,
882
- valueFormat: l.Value.rem
882
+ valueFormat: n.Value.rem
883
883
  },
884
884
  {
885
885
  styleName: "column-gap",
886
- values: i.percentString
886
+ values: s.percentString
887
887
  }
888
888
  ],
889
889
  /** The order CSS property sets the order to lay out an item in a flex or grid container. Items in a container are sorted by ascending order value and then by their source code order. Items not given an explicit order value are assigned the default value of 0. */
@@ -895,7 +895,7 @@ const i = Q, B = {
895
895
  ],
896
896
  /** The height CSS property specifies the height of an element. By default, the property defines the height of the content area. If box-sizing is set to border-box, however, it instead determines the height of the border area. */
897
897
  height: [
898
- { values: 0, valueFormat: l.Value.rem },
898
+ { values: 0, valueFormat: n.Value.rem },
899
899
  {
900
900
  values: ["fit"],
901
901
  valueFormat: () => "100%"
@@ -905,19 +905,19 @@ const i = Q, B = {
905
905
  valueFormat: () => "100vh"
906
906
  },
907
907
  {
908
- values: i.percentages,
909
- valueFormat: l.Value.fraction
908
+ values: s.percentages,
909
+ valueFormat: n.Value.fraction
910
910
  },
911
911
  {
912
912
  values: ["auto", "fit-content", "max-content", "min-content"]
913
913
  },
914
914
  {
915
- values: i.percentString
915
+ values: s.percentString
916
916
  }
917
917
  ],
918
918
  /** The min-height CSS property sets the minimum height of an element. It prevents the used value of the height property from becoming smaller than the value specified for min-height. */
919
919
  minHeight: [
920
- { styleName: "min-height", values: 0, valueFormat: l.Value.rem },
920
+ { styleName: "min-height", values: 0, valueFormat: n.Value.rem },
921
921
  {
922
922
  styleName: "min-height",
923
923
  values: ["fit"],
@@ -930,8 +930,8 @@ const i = Q, B = {
930
930
  },
931
931
  {
932
932
  styleName: "min-height",
933
- values: i.percentages,
934
- valueFormat: l.Value.fraction
933
+ values: s.percentages,
934
+ valueFormat: n.Value.fraction
935
935
  },
936
936
  {
937
937
  styleName: "min-height",
@@ -939,12 +939,12 @@ const i = Q, B = {
939
939
  },
940
940
  {
941
941
  styleName: "min-height",
942
- values: i.percentString
942
+ values: s.percentString
943
943
  }
944
944
  ],
945
945
  /** The max-height CSS property sets the maximum height of an element. It prevents the used value of the height property from becoming larger than the value specified for max-height. */
946
946
  maxHeight: [
947
- { styleName: "max-height", values: 0, valueFormat: l.Value.rem },
947
+ { styleName: "max-height", values: 0, valueFormat: n.Value.rem },
948
948
  {
949
949
  styleName: "max-height",
950
950
  values: ["fit"],
@@ -957,8 +957,8 @@ const i = Q, B = {
957
957
  },
958
958
  {
959
959
  styleName: "max-height",
960
- values: i.percentages,
961
- valueFormat: l.Value.fraction
960
+ values: s.percentages,
961
+ valueFormat: n.Value.fraction
962
962
  },
963
963
  {
964
964
  styleName: "max-height",
@@ -966,12 +966,12 @@ const i = Q, B = {
966
966
  },
967
967
  {
968
968
  styleName: "max-height",
969
- values: i.percentString
969
+ values: s.percentString
970
970
  }
971
971
  ],
972
972
  /** The width CSS property sets an element's width. By default, it sets the width of the content area, but if box-sizing is set to border-box, it sets the width of the border area. */
973
973
  width: [
974
- { values: 0, valueFormat: l.Value.rem },
974
+ { values: 0, valueFormat: n.Value.rem },
975
975
  {
976
976
  values: ["fit"],
977
977
  valueFormat: () => "100%"
@@ -981,19 +981,19 @@ const i = Q, B = {
981
981
  valueFormat: () => "100vw"
982
982
  },
983
983
  {
984
- values: i.percentages,
985
- valueFormat: l.Value.fraction
984
+ values: s.percentages,
985
+ valueFormat: n.Value.fraction
986
986
  },
987
987
  {
988
988
  values: ["auto", "fit-content", "max-content", "min-content"]
989
989
  },
990
990
  {
991
- values: i.percentString
991
+ values: s.percentString
992
992
  }
993
993
  ],
994
994
  /** The min-width CSS property sets the minimum width of an element. It prevents the used value of the width property from becoming smaller than the value specified for min-width. */
995
995
  minWidth: [
996
- { styleName: "min-width", values: 0, valueFormat: l.Value.rem },
996
+ { styleName: "min-width", values: 0, valueFormat: n.Value.rem },
997
997
  {
998
998
  styleName: "min-width",
999
999
  values: ["fit"],
@@ -1006,8 +1006,8 @@ const i = Q, B = {
1006
1006
  },
1007
1007
  {
1008
1008
  styleName: "min-width",
1009
- values: i.percentages,
1010
- valueFormat: l.Value.fraction
1009
+ values: s.percentages,
1010
+ valueFormat: n.Value.fraction
1011
1011
  },
1012
1012
  {
1013
1013
  styleName: "min-width",
@@ -1015,12 +1015,12 @@ const i = Q, B = {
1015
1015
  },
1016
1016
  {
1017
1017
  styleName: "min-width",
1018
- values: i.percentString
1018
+ values: s.percentString
1019
1019
  }
1020
1020
  ],
1021
1021
  /** The max-width CSS property sets the maximum width of an element. It prevents the used value of the width property from becoming larger than the value specified by max-width. */
1022
1022
  maxWidth: [
1023
- { styleName: "max-width", values: 0, valueFormat: l.Value.rem },
1023
+ { styleName: "max-width", values: 0, valueFormat: n.Value.rem },
1024
1024
  {
1025
1025
  styleName: "max-width",
1026
1026
  values: ["fit"],
@@ -1033,8 +1033,8 @@ const i = Q, B = {
1033
1033
  },
1034
1034
  {
1035
1035
  styleName: "max-width",
1036
- values: i.percentages,
1037
- valueFormat: l.Value.fraction
1036
+ values: s.percentages,
1037
+ valueFormat: n.Value.fraction
1038
1038
  },
1039
1039
  {
1040
1040
  styleName: "max-width",
@@ -1042,7 +1042,7 @@ const i = Q, B = {
1042
1042
  },
1043
1043
  {
1044
1044
  styleName: "max-width",
1045
- values: i.percentString
1045
+ values: s.percentString
1046
1046
  }
1047
1047
  ],
1048
1048
  /** The letter-spacing CSS property sets the horizontal spacing behavior between text characters. This value is added to the natural spacing between characters while rendering the text. Positive values of letter-spacing causes characters to spread farther apart, while negative values of letter-spacing bring characters closer together. */
@@ -1050,7 +1050,7 @@ const i = Q, B = {
1050
1050
  {
1051
1051
  styleName: "letter-spacing",
1052
1052
  values: 0,
1053
- valueFormat: l.Value.px
1053
+ valueFormat: n.Value.px
1054
1054
  }
1055
1055
  ],
1056
1056
  /** The line-height CSS property sets the height of a line box in horizontal writing modes. In vertical writing modes, it sets the width of a line box. It's commonly used to set the distance between lines of text. On block-level elements in horizontal writing modes, it specifies the preferred height of line boxes within the element, and on non-replaced inline elements, it specifies the height that is used to calculate line box height. */
@@ -1058,7 +1058,7 @@ const i = Q, B = {
1058
1058
  {
1059
1059
  styleName: "line-height",
1060
1060
  values: 0,
1061
- valueFormat: l.Value.px
1061
+ valueFormat: n.Value.px
1062
1062
  },
1063
1063
  {
1064
1064
  styleName: "line-height",
@@ -1078,7 +1078,7 @@ const i = Q, B = {
1078
1078
  {
1079
1079
  values: 0,
1080
1080
  styleName: "margin",
1081
- valueFormat: l.Value.rem
1081
+ valueFormat: n.Value.rem
1082
1082
  },
1083
1083
  {
1084
1084
  values: ["auto"],
@@ -1086,11 +1086,11 @@ const i = Q, B = {
1086
1086
  },
1087
1087
  {
1088
1088
  styleName: "margin",
1089
- values: i.percentages,
1090
- valueFormat: l.Value.fraction
1089
+ values: s.percentages,
1090
+ valueFormat: n.Value.fraction
1091
1091
  },
1092
1092
  {
1093
- values: i.percentString,
1093
+ values: s.percentString,
1094
1094
  styleName: "margin"
1095
1095
  }
1096
1096
  ],
@@ -1099,7 +1099,7 @@ const i = Q, B = {
1099
1099
  {
1100
1100
  values: 0,
1101
1101
  styleName: "margin-inline",
1102
- valueFormat: l.Value.rem
1102
+ valueFormat: n.Value.rem
1103
1103
  },
1104
1104
  {
1105
1105
  values: ["auto"],
@@ -1107,11 +1107,11 @@ const i = Q, B = {
1107
1107
  },
1108
1108
  {
1109
1109
  styleName: "margin-inline",
1110
- values: i.percentages,
1111
- valueFormat: l.Value.fraction
1110
+ values: s.percentages,
1111
+ valueFormat: n.Value.fraction
1112
1112
  },
1113
1113
  {
1114
- values: i.percentString,
1114
+ values: s.percentString,
1115
1115
  styleName: "margin-inline"
1116
1116
  }
1117
1117
  ],
@@ -1120,7 +1120,7 @@ const i = Q, B = {
1120
1120
  {
1121
1121
  values: 0,
1122
1122
  styleName: "margin-block",
1123
- valueFormat: l.Value.rem
1123
+ valueFormat: n.Value.rem
1124
1124
  },
1125
1125
  {
1126
1126
  values: ["auto"],
@@ -1128,11 +1128,11 @@ const i = Q, B = {
1128
1128
  },
1129
1129
  {
1130
1130
  styleName: "margin-block",
1131
- values: i.percentages,
1132
- valueFormat: l.Value.fraction
1131
+ values: s.percentages,
1132
+ valueFormat: n.Value.fraction
1133
1133
  },
1134
1134
  {
1135
- values: i.percentString,
1135
+ values: s.percentString,
1136
1136
  styleName: "margin-block"
1137
1137
  }
1138
1138
  ],
@@ -1141,19 +1141,19 @@ const i = Q, B = {
1141
1141
  {
1142
1142
  values: 0,
1143
1143
  styleName: "margin-top",
1144
- valueFormat: l.Value.rem
1144
+ valueFormat: n.Value.rem
1145
1145
  },
1146
1146
  {
1147
1147
  values: ["auto"],
1148
1148
  styleName: "margin-top"
1149
1149
  },
1150
1150
  {
1151
- values: i.percentages,
1152
- valueFormat: l.Value.fraction,
1151
+ values: s.percentages,
1152
+ valueFormat: n.Value.fraction,
1153
1153
  styleName: "margin-top"
1154
1154
  },
1155
1155
  {
1156
- values: i.percentString,
1156
+ values: s.percentString,
1157
1157
  styleName: "margin-top"
1158
1158
  }
1159
1159
  ],
@@ -1162,19 +1162,19 @@ const i = Q, B = {
1162
1162
  {
1163
1163
  values: 0,
1164
1164
  styleName: "margin-right",
1165
- valueFormat: l.Value.rem
1165
+ valueFormat: n.Value.rem
1166
1166
  },
1167
1167
  {
1168
1168
  values: ["auto"],
1169
1169
  styleName: "margin-right"
1170
1170
  },
1171
1171
  {
1172
- values: i.percentages,
1173
- valueFormat: l.Value.fraction,
1172
+ values: s.percentages,
1173
+ valueFormat: n.Value.fraction,
1174
1174
  styleName: "margin-right"
1175
1175
  },
1176
1176
  {
1177
- values: i.percentString,
1177
+ values: s.percentString,
1178
1178
  styleName: "margin-right"
1179
1179
  }
1180
1180
  ],
@@ -1183,19 +1183,19 @@ const i = Q, B = {
1183
1183
  {
1184
1184
  values: 0,
1185
1185
  styleName: "margin-bottom",
1186
- valueFormat: l.Value.rem
1186
+ valueFormat: n.Value.rem
1187
1187
  },
1188
1188
  {
1189
1189
  values: ["auto"],
1190
1190
  styleName: "margin-bottom"
1191
1191
  },
1192
1192
  {
1193
- values: i.percentages,
1194
- valueFormat: l.Value.fraction,
1193
+ values: s.percentages,
1194
+ valueFormat: n.Value.fraction,
1195
1195
  styleName: "margin-bottom"
1196
1196
  },
1197
1197
  {
1198
- values: i.percentString,
1198
+ values: s.percentString,
1199
1199
  styleName: "margin-bottom"
1200
1200
  }
1201
1201
  ],
@@ -1204,19 +1204,19 @@ const i = Q, B = {
1204
1204
  {
1205
1205
  values: 0,
1206
1206
  styleName: "margin-left",
1207
- valueFormat: l.Value.rem
1207
+ valueFormat: n.Value.rem
1208
1208
  },
1209
1209
  {
1210
1210
  values: ["auto"],
1211
1211
  styleName: "margin-left"
1212
1212
  },
1213
1213
  {
1214
- values: i.percentages,
1215
- valueFormat: l.Value.fraction,
1214
+ values: s.percentages,
1215
+ valueFormat: n.Value.fraction,
1216
1216
  styleName: "margin-left"
1217
1217
  },
1218
1218
  {
1219
- values: i.percentString,
1219
+ values: s.percentString,
1220
1220
  styleName: "margin-left"
1221
1221
  }
1222
1222
  ],
@@ -1225,15 +1225,15 @@ const i = Q, B = {
1225
1225
  {
1226
1226
  values: 0,
1227
1227
  styleName: "padding",
1228
- valueFormat: l.Value.rem
1228
+ valueFormat: n.Value.rem
1229
1229
  },
1230
1230
  {
1231
- values: i.percentages,
1232
- valueFormat: l.Value.fraction,
1231
+ values: s.percentages,
1232
+ valueFormat: n.Value.fraction,
1233
1233
  styleName: "padding"
1234
1234
  },
1235
1235
  {
1236
- values: i.percentString,
1236
+ values: s.percentString,
1237
1237
  styleName: "padding"
1238
1238
  }
1239
1239
  ],
@@ -1242,15 +1242,15 @@ const i = Q, B = {
1242
1242
  {
1243
1243
  values: 0,
1244
1244
  styleName: "padding-inline",
1245
- valueFormat: l.Value.rem
1245
+ valueFormat: n.Value.rem
1246
1246
  },
1247
1247
  {
1248
- values: i.percentages,
1249
- valueFormat: l.Value.fraction,
1248
+ values: s.percentages,
1249
+ valueFormat: n.Value.fraction,
1250
1250
  styleName: "padding-inline"
1251
1251
  },
1252
1252
  {
1253
- values: i.percentString,
1253
+ values: s.percentString,
1254
1254
  styleName: "padding-inline"
1255
1255
  }
1256
1256
  ],
@@ -1259,15 +1259,15 @@ const i = Q, B = {
1259
1259
  {
1260
1260
  values: 0,
1261
1261
  styleName: "padding-block",
1262
- valueFormat: l.Value.rem
1262
+ valueFormat: n.Value.rem
1263
1263
  },
1264
1264
  {
1265
- values: i.percentages,
1266
- valueFormat: l.Value.fraction,
1265
+ values: s.percentages,
1266
+ valueFormat: n.Value.fraction,
1267
1267
  styleName: "padding-block"
1268
1268
  },
1269
1269
  {
1270
- values: i.percentString,
1270
+ values: s.percentString,
1271
1271
  styleName: "padding-block"
1272
1272
  }
1273
1273
  ],
@@ -1276,15 +1276,15 @@ const i = Q, B = {
1276
1276
  {
1277
1277
  values: 0,
1278
1278
  styleName: "padding-top",
1279
- valueFormat: l.Value.rem
1279
+ valueFormat: n.Value.rem
1280
1280
  },
1281
1281
  {
1282
- values: i.percentages,
1283
- valueFormat: l.Value.fraction,
1282
+ values: s.percentages,
1283
+ valueFormat: n.Value.fraction,
1284
1284
  styleName: "padding-top"
1285
1285
  },
1286
1286
  {
1287
- values: i.percentString,
1287
+ values: s.percentString,
1288
1288
  styleName: "padding-top"
1289
1289
  }
1290
1290
  ],
@@ -1293,15 +1293,15 @@ const i = Q, B = {
1293
1293
  {
1294
1294
  values: 0,
1295
1295
  styleName: "padding-right",
1296
- valueFormat: l.Value.rem
1296
+ valueFormat: n.Value.rem
1297
1297
  },
1298
1298
  {
1299
- values: i.percentages,
1300
- valueFormat: l.Value.fraction,
1299
+ values: s.percentages,
1300
+ valueFormat: n.Value.fraction,
1301
1301
  styleName: "padding-right"
1302
1302
  },
1303
1303
  {
1304
- values: i.percentString,
1304
+ values: s.percentString,
1305
1305
  styleName: "padding-right"
1306
1306
  }
1307
1307
  ],
@@ -1310,15 +1310,15 @@ const i = Q, B = {
1310
1310
  {
1311
1311
  values: 0,
1312
1312
  styleName: "padding-bottom",
1313
- valueFormat: l.Value.rem
1313
+ valueFormat: n.Value.rem
1314
1314
  },
1315
1315
  {
1316
- values: i.percentages,
1317
- valueFormat: l.Value.fraction,
1316
+ values: s.percentages,
1317
+ valueFormat: n.Value.fraction,
1318
1318
  styleName: "padding-bottom"
1319
1319
  },
1320
1320
  {
1321
- values: i.percentString,
1321
+ values: s.percentString,
1322
1322
  styleName: "padding-bottom"
1323
1323
  }
1324
1324
  ],
@@ -1327,15 +1327,15 @@ const i = Q, B = {
1327
1327
  {
1328
1328
  values: 0,
1329
1329
  styleName: "padding-left",
1330
- valueFormat: l.Value.rem
1330
+ valueFormat: n.Value.rem
1331
1331
  },
1332
1332
  {
1333
- values: i.percentages,
1334
- valueFormat: l.Value.fraction,
1333
+ values: s.percentages,
1334
+ valueFormat: n.Value.fraction,
1335
1335
  styleName: "padding-left"
1336
1336
  },
1337
1337
  {
1338
- values: i.percentString,
1338
+ values: s.percentString,
1339
1339
  styleName: "padding-left"
1340
1340
  }
1341
1341
  ],
@@ -1357,7 +1357,7 @@ const i = Q, B = {
1357
1357
  {
1358
1358
  styleName: "outline-width",
1359
1359
  values: 0,
1360
- valueFormat: l.Value.px
1360
+ valueFormat: n.Value.px
1361
1361
  }
1362
1362
  ],
1363
1363
  /** The outline-style CSS property sets the style of an element's outline. An outline is a line that is drawn around an element, outside the border. */
@@ -1372,7 +1372,7 @@ const i = Q, B = {
1372
1372
  {
1373
1373
  styleName: "outline-offset",
1374
1374
  values: 0,
1375
- valueFormat: l.Value.px
1375
+ valueFormat: n.Value.px
1376
1376
  }
1377
1377
  ],
1378
1378
  /** The overflow CSS shorthand property sets the desired behavior when content does not fit in the element's padding box (overflows) in the horizontal and/or vertical direction. */
@@ -1588,14 +1588,14 @@ const i = Q, B = {
1588
1588
  /** The color CSS property sets the foreground color value of an element's text and text decorations, and sets the currentcolor value. */
1589
1589
  color: [
1590
1590
  {
1591
- values: i.colorValues,
1591
+ values: s.colorValues,
1592
1592
  valueFormat: (e, r) => r(e)
1593
1593
  }
1594
1594
  ],
1595
1595
  /** The background-color CSS property sets the background color of an element. */
1596
1596
  bgColor: [
1597
1597
  {
1598
- values: i.colorValues,
1598
+ values: s.colorValues,
1599
1599
  valueFormat: (e, r) => r(e),
1600
1600
  styleName: "background-color"
1601
1601
  }
@@ -1603,7 +1603,7 @@ const i = Q, B = {
1603
1603
  /** The border-color shorthand CSS property sets the color of an element's border. */
1604
1604
  borderColor: [
1605
1605
  {
1606
- values: i.colorValues,
1606
+ values: s.colorValues,
1607
1607
  valueFormat: (e, r) => r(e),
1608
1608
  styleName: "border-color"
1609
1609
  }
@@ -1611,7 +1611,7 @@ const i = Q, B = {
1611
1611
  /** The outline-color CSS property sets the color of an element's outline. */
1612
1612
  outlineColor: [
1613
1613
  {
1614
- values: i.colorValues,
1614
+ values: s.colorValues,
1615
1615
  valueFormat: (e, r) => r(e),
1616
1616
  styleName: "outline-color"
1617
1617
  }
@@ -1619,21 +1619,21 @@ const i = Q, B = {
1619
1619
  /** The fill CSS property defines how SVG text content and the interior canvas of SVG shapes are filled or painted. If present, it overrides the element's fill attribute. */
1620
1620
  fill: [
1621
1621
  {
1622
- values: i.colorValues,
1622
+ values: s.colorValues,
1623
1623
  valueFormat: (e, r) => r(e)
1624
1624
  }
1625
1625
  ],
1626
1626
  /** The stroke CSS property defines the color or SVG paint server used to draw an element's stroke. */
1627
1627
  stroke: [
1628
1628
  {
1629
- values: i.colorValues,
1629
+ values: s.colorValues,
1630
1630
  valueFormat: (e, r) => r(e)
1631
1631
  }
1632
1632
  ],
1633
1633
  /** The background-image CSS property sets one or more background images on an element. */
1634
1634
  bgImage: [
1635
1635
  {
1636
- values: i.bgImageValues,
1636
+ values: s.bgImageValues,
1637
1637
  valueFormat: (e, r) => r(e),
1638
1638
  styleName: "background-image"
1639
1639
  }
@@ -1641,7 +1641,7 @@ const i = Q, B = {
1641
1641
  /** The box-shadow CSS property adds shadow effects around an element's frame */
1642
1642
  shadow: [
1643
1643
  {
1644
- values: i.shadowValues,
1644
+ values: s.shadowValues,
1645
1645
  valueFormat: (e, r) => r(e),
1646
1646
  styleName: "box-shadow"
1647
1647
  }
@@ -1650,21 +1650,21 @@ const i = Q, B = {
1650
1650
  translateX: [
1651
1651
  {
1652
1652
  values: 0,
1653
- valueFormat: (e) => `translateX(${e / Z}rem)`,
1653
+ valueFormat: (e) => `translateX(${e / Q}rem)`,
1654
1654
  styleName: "transform"
1655
1655
  },
1656
1656
  {
1657
- values: i.percentages,
1658
- valueFormat: (e) => `translateX(${l.Value.fraction(e)})`,
1657
+ values: s.percentages,
1658
+ valueFormat: (e) => `translateX(${n.Value.fraction(e)})`,
1659
1659
  styleName: "transform"
1660
1660
  },
1661
1661
  {
1662
- values: i.negativePercentages,
1663
- valueFormat: (e) => `translateX(${l.Value.fraction(e)})`,
1662
+ values: s.negativePercentages,
1663
+ valueFormat: (e) => `translateX(${n.Value.fraction(e)})`,
1664
1664
  styleName: "transform"
1665
1665
  },
1666
1666
  {
1667
- values: i.percentString,
1667
+ values: s.percentString,
1668
1668
  valueFormat: (e) => `translateX(${e})`,
1669
1669
  styleName: "transform"
1670
1670
  }
@@ -1673,21 +1673,21 @@ const i = Q, B = {
1673
1673
  translateY: [
1674
1674
  {
1675
1675
  values: 0,
1676
- valueFormat: (e) => `translateY(${e / Z}rem)`,
1676
+ valueFormat: (e) => `translateY(${e / Q}rem)`,
1677
1677
  styleName: "transform"
1678
1678
  },
1679
1679
  {
1680
- values: i.percentages,
1681
- valueFormat: (e) => `translateY(${l.Value.fraction(e)})`,
1680
+ values: s.percentages,
1681
+ valueFormat: (e) => `translateY(${n.Value.fraction(e)})`,
1682
1682
  styleName: "transform"
1683
1683
  },
1684
1684
  {
1685
- values: i.negativePercentages,
1686
- valueFormat: (e) => `translateY(${l.Value.fraction(e)})`,
1685
+ values: s.negativePercentages,
1686
+ valueFormat: (e) => `translateY(${n.Value.fraction(e)})`,
1687
1687
  styleName: "transform"
1688
1688
  },
1689
1689
  {
1690
- values: i.percentString,
1690
+ values: s.percentString,
1691
1691
  valueFormat: (e) => `translateY(${e})`,
1692
1692
  styleName: "transform"
1693
1693
  }
@@ -1705,7 +1705,7 @@ const i = Q, B = {
1705
1705
  styleName: "backdrop-filter"
1706
1706
  }
1707
1707
  ]
1708
- }, ye = {
1708
+ }, be = {
1709
1709
  hover: ":hover",
1710
1710
  focus: ":focus-within",
1711
1711
  hasFocus: ":has(:focus)",
@@ -1727,14 +1727,14 @@ const i = Q, B = {
1727
1727
  required: ":required",
1728
1728
  disabled: "[disabled]",
1729
1729
  selected: '[aria-selected="true"]'
1730
- }, Fe = {
1730
+ }, Ve = {
1731
1731
  theme: ""
1732
- }, K = { ...ye, ...W, ...Fe }, be = Object.entries(K).reduce(
1732
+ }, K = { ...be, ...W, ...Ve }, he = Object.entries(K).reduce(
1733
1733
  (e, [r], a) => (e[r] = Math.pow(2, a), e),
1734
1734
  {}
1735
1735
  ), Y = Object.entries(K).reduce(
1736
1736
  (e, [r]) => {
1737
- const a = be[r];
1737
+ const a = he[r];
1738
1738
  return Object.entries(e).forEach(([o, t]) => {
1739
1739
  e[+o + a] = [...t, r];
1740
1740
  }), e;
@@ -1746,7 +1746,7 @@ const i = Q, B = {
1746
1746
  activeGroup: "active",
1747
1747
  disabledGroup: "disabled",
1748
1748
  selectedGroup: "selected"
1749
- }, se = {
1749
+ }, ue = {
1750
1750
  theme: "theme"
1751
1751
  }, P = {
1752
1752
  /** Styles applied for small screens and larger. >= 640 */
@@ -1760,34 +1760,34 @@ const i = Q, B = {
1760
1760
  /** Styles applied for 2x extra-large screens and larger. >= 1536 */
1761
1761
  xxl: 1536
1762
1762
  };
1763
- var J;
1763
+ var ee;
1764
1764
  ((e) => {
1765
- function r(n, s, c) {
1766
- const u = { ...n }, m = u.props || {};
1767
- return s.forEach((f) => {
1768
- f in u && (m[f] = u[f], delete u[f]);
1769
- }), c && Object.entries(c).forEach(([f, y]) => {
1770
- m[f] = y;
1771
- }), u.props = m, u;
1765
+ function r(l, u, c) {
1766
+ const i = { ...l }, m = i.props || {};
1767
+ return u.forEach((y) => {
1768
+ y in i && (m[y] = i[y], delete i[y]);
1769
+ }), c && Object.entries(c).forEach(([y, d]) => {
1770
+ m[y] = d;
1771
+ }), i.props = m, i;
1772
1772
  }
1773
1773
  e.buildProps = r;
1774
- function a(n) {
1775
- return !!n && typeof n == "object";
1774
+ function a(l) {
1775
+ return !!l && typeof l == "object";
1776
1776
  }
1777
1777
  e.isObject = a;
1778
- function o(...n) {
1779
- return n.reduce((s, c) => (Object.keys(c ?? {}).forEach((u) => {
1780
- const m = s[u], f = c[u];
1781
- a(f) && "clean" in f && f.clean ? s[u] = f : u in W && typeof f == "boolean" || (u in W && Array.isArray(f) ? s[u] = o(m, f[1] ?? {}) : Array.isArray(m) && Array.isArray(f) ? s[u] = m.concat(...f) : a(m) && a(f) ? s[u] = o(m, f) : s[u] = f);
1782
- }), s), {});
1778
+ function o(...l) {
1779
+ return l.reduce((u, c) => (Object.keys(c ?? {}).forEach((i) => {
1780
+ const m = u[i], y = c[i];
1781
+ a(y) && "clean" in y && y.clean ? u[i] = y : i in W && typeof y == "boolean" || (i in W && Array.isArray(y) ? u[i] = o(m, y[1] ?? {}) : Array.isArray(m) && Array.isArray(y) ? u[i] = m.concat(...y) : a(m) && a(y) ? u[i] = o(m, y) : u[i] = y);
1782
+ }), u), {});
1783
1783
  }
1784
1784
  e.mergeDeep = o;
1785
- function t(n, s) {
1786
- return n in s;
1785
+ function t(l, u) {
1786
+ return l in u;
1787
1787
  }
1788
1788
  e.isKeyOf = t;
1789
- })(J || (J = {}));
1790
- const k = J, ue = {
1789
+ })(ee || (ee = {}));
1790
+ const k = ee, ce = {
1791
1791
  h1: {
1792
1792
  styles: { fontSize: 14 * 2.5 }
1793
1793
  },
@@ -2910,62 +2910,94 @@ const k = J, ue = {
2910
2910
  }
2911
2911
  }
2912
2912
  };
2913
- function Ve(e) {
2913
+ function Se(e) {
2914
2914
  const r = { ...e };
2915
2915
  for (const [a, o] of Object.entries(r)) {
2916
2916
  if (!o.extends) continue;
2917
2917
  const t = r[o.extends];
2918
2918
  if (!t) continue;
2919
- const { extends: n, ...s } = o;
2920
- r[a] = k.mergeDeep({}, t, s);
2919
+ const { extends: l, ...u } = o;
2920
+ r[a] = k.mergeDeep({}, t, u);
2921
2921
  }
2922
2922
  return r;
2923
2923
  }
2924
- var ee;
2924
+ var re;
2925
2925
  ((e) => {
2926
- function r(o, t, n) {
2927
- return i.setUserVariables(o), Object.entries(t).forEach(([s, c]) => {
2928
- B[s] = c;
2929
- }), Object.entries(n).forEach(([s, c]) => {
2930
- const u = B[s];
2931
- B[s] = u ? [...c, ...u] : c;
2932
- }), { extendedProps: t, extendedPropTypes: n };
2926
+ function r(o, t, l) {
2927
+ return s.setUserVariables(o), Object.entries(t).forEach(([u, c]) => {
2928
+ T[u] = c;
2929
+ }), Object.entries(l).forEach(([u, c]) => {
2930
+ const i = T[u];
2931
+ T[u] = i ? [...c, ...i] : c;
2932
+ }), { extendedProps: t, extendedPropTypes: l };
2933
2933
  }
2934
- e.extend = r, e.componentsStyles = ue;
2934
+ e.extend = r, e.componentsStyles = ce;
2935
2935
  function a(o) {
2936
- return e.componentsStyles = Ve(k.mergeDeep(ue, o)), o;
2936
+ return e.componentsStyles = Se(k.mergeDeep(ce, o)), o;
2937
2937
  }
2938
2938
  e.components = a;
2939
- })(ee || (ee = {}));
2940
- const $e = ee, re = Ce.createContext({ theme: "", setTheme: () => {
2939
+ })(re || (re = {}));
2940
+ const $e = re, te = we.createContext({ theme: "", setTheme: () => {
2941
2941
  } });
2942
- function te(e) {
2943
- const { children: r, theme: a, use: o = "local" } = e, [t, n] = ge(a ?? "light");
2944
- return U(() => {
2945
- if (a !== void 0) return;
2946
- const s = window.matchMedia("(prefers-color-scheme: dark)");
2947
- n(s.matches ? "dark" : "light");
2948
- const c = (u) => {
2949
- n(u.matches ? "dark" : "light");
2942
+ function oe(e) {
2943
+ const { children: r, theme: a, use: o = "local", storageKey: t } = e, [l, u] = Z(a ?? "light"), [c, i] = Z(a !== void 0), m = fe(null), y = Ne(
2944
+ (d) => {
2945
+ if (d === null) {
2946
+ if (t)
2947
+ try {
2948
+ localStorage.removeItem(t);
2949
+ } catch {
2950
+ }
2951
+ i(!1);
2952
+ } else {
2953
+ if (t)
2954
+ try {
2955
+ localStorage.setItem(t, d);
2956
+ } catch {
2957
+ }
2958
+ u(d), i(!0);
2959
+ }
2960
+ },
2961
+ [t]
2962
+ );
2963
+ return B(() => {
2964
+ a !== void 0 ? (u(a), i(!0)) : i(!1);
2965
+ }, [a]), B(() => {
2966
+ if (c) return;
2967
+ if (t)
2968
+ try {
2969
+ const C = localStorage.getItem(t);
2970
+ if (C) {
2971
+ u(C), i(!0);
2972
+ return;
2973
+ }
2974
+ } catch {
2975
+ }
2976
+ const d = window.matchMedia("(prefers-color-scheme: dark)");
2977
+ u(d.matches ? "dark" : "light");
2978
+ const V = (C) => {
2979
+ u(C.matches ? "dark" : "light");
2950
2980
  };
2951
- return s.addEventListener("change", c), () => s.removeEventListener("change", c);
2952
- }, [a]), U(() => {
2981
+ return d.addEventListener("change", V), () => d.removeEventListener("change", V);
2982
+ }, [c, t]), B(() => {
2953
2983
  if (o === "local") return;
2954
- const s = document.documentElement;
2955
- return s.classList.add(t), () => {
2956
- s.classList.remove(t);
2984
+ const d = document.documentElement;
2985
+ return d.classList.add(l), d.setAttribute("data-theme", l), () => {
2986
+ d.classList.remove(l), d.removeAttribute("data-theme");
2957
2987
  };
2958
- }, [t, o]), o === "local" ? /* @__PURE__ */ S(re.Provider, { value: { theme: t, setTheme: n }, children: /* @__PURE__ */ S(Ne, { className: t, children: r }) }) : /* @__PURE__ */ S(re.Provider, { value: { theme: t, setTheme: n }, children: r });
2988
+ }, [l, o]), B(() => {
2989
+ o !== "local" || !m.current || m.current.setAttribute("data-theme", l);
2990
+ }, [l, o]), o === "local" ? /* @__PURE__ */ z(te.Provider, { value: { theme: l, setTheme: y }, children: /* @__PURE__ */ z(Fe, { ref: m, className: l, children: r }) }) : /* @__PURE__ */ z(te.Provider, { value: { theme: l, setTheme: y }, children: r });
2959
2991
  }
2960
2992
  ((e) => {
2961
2993
  function r() {
2962
- const { theme: a, setTheme: o } = we(re);
2994
+ const { theme: a, setTheme: o } = xe(te);
2963
2995
  return [a, o];
2964
2996
  }
2965
2997
  e.useTheme = r;
2966
- })(te || (te = {}));
2967
- const Se = te;
2968
- class ze {
2998
+ })(oe || (oe = {}));
2999
+ const ze = oe;
3000
+ class ke {
2969
3001
  constructor() {
2970
3002
  this._index = 0, this._cache = {};
2971
3003
  }
@@ -2973,99 +3005,99 @@ class ze {
2973
3005
  return this._cache[r] || (this._cache[r] = this.getByIndex(this._index++)), this._cache[r];
2974
3006
  }
2975
3007
  getByIndex(r) {
2976
- const { first: a, next: o } = ke, t = r - a.length;
3008
+ const { first: a, next: o } = Re, t = r - a.length;
2977
3009
  if (t < 0)
2978
3010
  return a[r];
2979
- const n = Math.floor(t / o.length), s = t - n * o.length;
2980
- return this.getByIndex(n) + o[s];
3011
+ const l = Math.floor(t / o.length), u = t - l * o.length;
3012
+ return this.getByIndex(l) + o[u];
2981
3013
  }
2982
3014
  }
2983
- const ke = {
3015
+ const Re = {
2984
3016
  first: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
2985
3017
  next: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
2986
3018
  };
2987
- function Re(e) {
3019
+ function Ae(e) {
2988
3020
  const { clean: r, component: a, variant: o } = e;
2989
- return ne(() => {
3021
+ return se(() => {
2990
3022
  if (r) return;
2991
3023
  const t = a?.split(".");
2992
3024
  if (!t) return;
2993
- const n = t.reduce((u, m, f) => f === 0 ? $e.componentsStyles[m] : u?.children?.[m], void 0);
2994
- if (!n) return;
2995
- if (!o) return n.styles;
2996
- const s = me(o);
2997
- if (s.length === 0) return n.styles;
2998
- const c = k.mergeDeep(...s.map((u) => n.variants?.[u]));
2999
- return n.styles ? k.mergeDeep(n.styles, c) : c;
3025
+ const l = t.reduce((i, m, y) => y === 0 ? $e.componentsStyles[m] : i?.children?.[m], void 0);
3026
+ if (!l) return;
3027
+ if (!o) return l.styles;
3028
+ const u = ye(o);
3029
+ if (u.length === 0) return l.styles;
3030
+ const c = k.mergeDeep(...u.map((i) => l.variants?.[i]));
3031
+ return l.styles ? k.mergeDeep(l.styles, c) : c;
3000
3032
  }, [r, a, o]);
3001
3033
  }
3002
- const Ae = new ze(), Oe = typeof window < "u" && typeof window.document < "u", M = typeof process == "object" && process.env?.NODE_ENV === "test", Ee = Oe && !M ? U : fe, he = "_b", L = "_s";
3003
- function He(e, r) {
3004
- const a = Re(e), o = ne(() => a ? k.mergeDeep(a, e) : e, [e, a]), t = [r ? L : he];
3005
- return T.addClassNames(o, t, []), Ee(() => {
3006
- T.flush();
3034
+ const Oe = new ke(), Ie = typeof window < "u" && typeof window.document < "u", G = typeof process == "object" && process.env?.NODE_ENV === "test", Ee = Ie && !G ? B : me, ve = "_b", L = "_s";
3035
+ function Me(e, r) {
3036
+ const a = Ae(e), o = se(() => a ? k.mergeDeep(a, e) : e, [e, a]), t = [r ? L : ve];
3037
+ return _.addClassNames(o, t, []), Ee(() => {
3038
+ _.flush();
3007
3039
  }, [o]), t;
3008
3040
  }
3009
- var T;
3041
+ var _;
3010
3042
  ((e) => {
3011
3043
  let r = !0, a = !1;
3012
- const o = /* @__PURE__ */ new Set(), t = [], n = [];
3013
- let s = 0;
3014
- const c = Object.keys(B).reduce((b, h, w) => (b[h] = w, b), {});
3015
- let u = {};
3016
- function m(b, h, w, p, g) {
3017
- Object.entries(b).forEach(([v, d]) => {
3018
- if (d != null)
3019
- if (k.isKeyOf(v, B))
3020
- x(v, d, h, w, p, g);
3021
- else if (k.isKeyOf(v, ye))
3022
- m(d, h, [...w, v], p, g);
3044
+ const o = /* @__PURE__ */ new Set(), t = [], l = [];
3045
+ let u = 0;
3046
+ const c = Object.keys(T).reduce((b, h, x) => (b[h] = x, b), {});
3047
+ let i = {};
3048
+ function m(b, h, x, p, f) {
3049
+ Object.entries(b).forEach(([v, g]) => {
3050
+ if (g != null)
3051
+ if (k.isKeyOf(v, T))
3052
+ C(v, g, h, x, p, f);
3053
+ else if (k.isKeyOf(v, be))
3054
+ m(g, h, [...x, v], p, f);
3023
3055
  else if (k.isKeyOf(v, W)) {
3024
- if (Array.isArray(d)) {
3025
- const [N, F] = d;
3026
- m(F, h, [...w, v], p, g);
3056
+ if (Array.isArray(g)) {
3057
+ const [N, F] = g;
3058
+ m(F, h, [...x, v], p, f);
3027
3059
  }
3028
- k.isObject(d) && m(d, h, [...w, v], p, g);
3029
- } else k.isKeyOf(v, P) ? m(d, h, w, v, g) : k.isKeyOf(v, D) ? Object.entries(d).forEach(([N, F]) => {
3030
- m(F, h, [...w, D[v]], p, N);
3031
- }) : k.isKeyOf(v, se) && Object.entries(d).forEach(([N, F]) => {
3032
- const $ = [...w, se[v]];
3033
- Object.entries(F).forEach(([V, E]) => {
3034
- k.isKeyOf(V, D) ? Object.entries(E).forEach(([G, A]) => {
3060
+ k.isObject(g) && m(g, h, [...x, v], p, f);
3061
+ } else k.isKeyOf(v, P) ? m(g, h, x, v, f) : k.isKeyOf(v, D) ? Object.entries(g).forEach(([N, F]) => {
3062
+ m(F, h, [...x, D[v]], p, N);
3063
+ }) : k.isKeyOf(v, ue) && Object.entries(g).forEach(([N, F]) => {
3064
+ const $ = [...x, ue[v]];
3065
+ Object.entries(F).forEach(([S, I]) => {
3066
+ k.isKeyOf(S, D) ? Object.entries(I).forEach(([U, A]) => {
3035
3067
  m(
3036
3068
  A,
3037
3069
  h,
3038
- [...$, D[V]],
3070
+ [...$, D[S]],
3039
3071
  p,
3040
3072
  // Use | as separator to distinguish theme from group name
3041
- `${N}|${G}`
3073
+ `${N}|${U}`
3042
3074
  );
3043
- }) : m({ [V]: E }, h, $, p, N);
3075
+ }) : m({ [S]: I }, h, $, p, N);
3044
3076
  });
3045
3077
  });
3046
3078
  });
3047
3079
  }
3048
3080
  e.addClassNames = m;
3049
- function f() {
3050
- const b = i.hasPendingVariables();
3081
+ function y() {
3082
+ const b = s.hasPendingVariables();
3051
3083
  if (!r && !b) return;
3052
3084
  console.debug("\x1B[36m%s\x1B[0m", "[react-box]: flush");
3053
- const h = q(), w = h.sheet;
3085
+ const h = q(), x = h.sheet;
3054
3086
  if (a) {
3055
- if (i.hasPendingVariables()) {
3056
- const p = i.getPendingVariables(), g = `:root{${Object.entries(p).map(([v, d]) => `--${v}: ${d};`).join("")}}`;
3057
- if (w && !M)
3087
+ if (s.hasPendingVariables()) {
3088
+ const p = s.getPendingVariables(), f = `:root{${Object.entries(p).map(([v, g]) => `--${v}: ${g};`).join("")}}`;
3089
+ if (x && !G)
3058
3090
  try {
3059
- w.insertRule(g, 0), s++;
3091
+ x.insertRule(f, 0), u++;
3060
3092
  } catch {
3061
3093
  }
3062
3094
  else
3063
- h.textContent = g + `
3095
+ h.textContent = f + `
3064
3096
  ` + h.textContent;
3065
3097
  }
3066
3098
  } else {
3067
3099
  const p = [
3068
- `:root{${i.generateVariables()}}`,
3100
+ `:root{${s.generateVariables()}}`,
3069
3101
  ":root{--borderColor: black;--outlineColor: black;--lineHeight: 1.2;--fontSize: 14px;--transitionTime: 0.25s;--svgTransitionTime: 0.3s;}",
3070
3102
  "#crono-box {position: absolute;top: 0;left: 0;height: 0;z-index:99999;}",
3071
3103
  "html{font-size: 16px;font-family: Arial, sans-serif;}",
@@ -3074,14 +3106,14 @@ var T;
3074
3106
  "button{color: inherit;}",
3075
3107
  'input[type="number"]{-moz-appearance: textfield;}',
3076
3108
  'input[type="number"]::-webkit-outer-spin-button,input[type="number"]::-webkit-inner-spin-button{-webkit-appearance: none;margin: 0;}',
3077
- `.${he}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;background-color: initial;transition: all var(--transitionTime);box-sizing: border-box;font-family: inherit;font-size: inherit;}`,
3109
+ `.${ve}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;background-color: initial;transition: all var(--transitionTime);box-sizing: border-box;font-family: inherit;font-size: inherit;}`,
3078
3110
  `.${L}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;transition: all var(--svgTransitionTime);}`,
3079
3111
  `.${L} path,.${L} circle,.${L} rect,.${L} line {transition: all var(--svgTransitionTime);}`
3080
3112
  ];
3081
- if (w && !M)
3082
- for (const g of p)
3113
+ if (x && !G)
3114
+ for (const f of p)
3083
3115
  try {
3084
- w.insertRule(g, s), s++;
3116
+ x.insertRule(f, u), u++;
3085
3117
  } catch {
3086
3118
  }
3087
3119
  else
@@ -3090,19 +3122,19 @@ var T;
3090
3122
  a = !0;
3091
3123
  }
3092
3124
  if (t.length > 0) {
3093
- if (t.sort((p, g) => p[1] - g[1] || p[0] - g[0]), w && !M)
3094
- for (const [p, g, v] of t) {
3095
- const d = g * 1e5 + p;
3096
- let N = n.length;
3097
- for (let F = 0; F < n.length; F++)
3098
- if (d < n[F]) {
3125
+ if (t.sort((p, f) => p[1] - f[1] || p[0] - f[0]), x && !G)
3126
+ for (const [p, f, v] of t) {
3127
+ const g = f * 1e5 + p;
3128
+ let N = l.length;
3129
+ for (let F = 0; F < l.length; F++)
3130
+ if (g < l[F]) {
3099
3131
  N = F;
3100
3132
  break;
3101
3133
  }
3102
3134
  try {
3103
- w.insertRule(v, s + N), n.splice(N, 0, d);
3135
+ x.insertRule(v, u + N), l.splice(N, 0, g);
3104
3136
  } catch {
3105
- w.insertRule(v, w.cssRules.length), n.push(d);
3137
+ x.insertRule(v, x.cssRules.length), l.push(g);
3106
3138
  }
3107
3139
  }
3108
3140
  else
@@ -3111,65 +3143,65 @@ var T;
3111
3143
  }
3112
3144
  r = !1;
3113
3145
  }
3114
- e.flush = f;
3115
- function y(b, h, w, p, g) {
3116
- const d = B[b].find((V) => Array.isArray(V.values) ? V.values.includes(h) : typeof h == typeof V.values);
3117
- if (!d) return null;
3118
- const N = c[b] ?? 0, F = P[p] ?? 0, $ = C(
3146
+ e.flush = y;
3147
+ function d(b, h, x, p, f) {
3148
+ const g = T[b].find((S) => Array.isArray(S.values) ? S.values.includes(h) : typeof h == typeof S.values);
3149
+ if (!g) return null;
3150
+ const N = c[b] ?? 0, F = P[p] ?? 0, $ = w(
3119
3151
  b,
3120
3152
  h,
3121
- w,
3153
+ x,
3122
3154
  p,
3123
- g
3155
+ f
3124
3156
  );
3125
- if (g) {
3126
- const V = Y[w], E = V.includes("theme"), A = (E ? V.filter((O) => O !== "theme") : V).map((O) => K[O]).join(""), I = g.includes("|");
3127
- let j;
3128
- if (I) {
3129
- const [O, X] = g.split("|");
3130
- j = `.${O} .${X}${A} .${$}`;
3131
- } else E ? j = `.${g} .${$}${A}` : j = `.${g}${A} .${$}`;
3132
- const ve = d.selector?.(j, "") ?? j, pe = Array.isArray(d.styleName) ? d.styleName : [d.styleName ?? b], ie = `${ve}{${pe.map((O) => {
3133
- const X = d.valueFormat?.(h, i.getVariableValue, O) ?? h;
3157
+ if (f) {
3158
+ const S = Y[x], I = S.includes("theme"), A = (I ? S.filter((O) => O !== "theme") : S).map((O) => K[O]).join(""), j = f.includes("|");
3159
+ let E;
3160
+ if (j) {
3161
+ const [O, X] = f.split("|");
3162
+ E = `.${O} .${X}${A} .${$}`;
3163
+ } else I ? E = `.${f} .${$}${A}` : E = `.${f}${A} .${$}`;
3164
+ const pe = g.selector?.(E, "") ?? E, Ce = Array.isArray(g.styleName) ? g.styleName : [g.styleName ?? b], ie = `${pe}{${Ce.map((O) => {
3165
+ const X = g.valueFormat?.(h, s.getVariableValue, O) ?? h;
3134
3166
  return `${O}:${X}`;
3135
3167
  }).join(";")}}`;
3136
3168
  return p !== "normal" ? { rule: `@media(min-width: ${P[p]}px){${ie}}`, sortIndex: N, breakpointOrder: F } : { rule: ie, sortIndex: N, breakpointOrder: F };
3137
3169
  } else {
3138
- const V = Y[w].map((I) => K[I]).join(""), E = d.selector?.(`.${$}`, V) ?? `.${$}${V}`, G = Array.isArray(d.styleName) ? d.styleName : [d.styleName ?? b], A = `${E}{${G.map((I) => {
3139
- const j = d.valueFormat?.(h, i.getVariableValue, I) ?? h;
3140
- return `${I}:${j}`;
3170
+ const S = Y[x].map((j) => K[j]).join(""), I = g.selector?.(`.${$}`, S) ?? `.${$}${S}`, U = Array.isArray(g.styleName) ? g.styleName : [g.styleName ?? b], A = `${I}{${U.map((j) => {
3171
+ const E = g.valueFormat?.(h, s.getVariableValue, j) ?? h;
3172
+ return `${j}:${E}`;
3141
3173
  }).join(";")}}`;
3142
3174
  return p !== "normal" ? { rule: `@media(min-width: ${P[p]}px){${A}}`, sortIndex: N, breakpointOrder: F } : { rule: A, sortIndex: N, breakpointOrder: F };
3143
3175
  }
3144
3176
  }
3145
- function z() {
3146
- u = {}, o.clear(), t.length = 0, n.length = 0, s = 0, a = !1;
3177
+ function V() {
3178
+ i = {}, o.clear(), t.length = 0, l.length = 0, u = 0, a = !1;
3147
3179
  }
3148
- e.clear = z;
3149
- function x(b, h, w, p, g = "normal", v) {
3180
+ e.clear = V;
3181
+ function C(b, h, x, p, f = "normal", v) {
3150
3182
  if (h == null) return;
3151
- const d = p.reduce(($, V) => $ + be[V], 0), N = C(b, h, d, g, v), F = `${g}-${d}-${b}-${h}-${v ?? ""}`;
3183
+ const g = p.reduce(($, S) => $ + he[S], 0), N = w(b, h, g, f, v), F = `${f}-${g}-${b}-${h}-${v ?? ""}`;
3152
3184
  if (!o.has(F)) {
3153
3185
  o.add(F);
3154
- const $ = y(b, h, d, g, v);
3155
- $ && (t.push([$.sortIndex, $.breakpointOrder, $.rule]), r = !0), u[g] ? u[g][d] ? u[g][d][b] || (u[g][d][b] = /* @__PURE__ */ new Set()) : u[g][d] = { [b]: /* @__PURE__ */ new Set() } : u[g] = { [d]: { [b]: /* @__PURE__ */ new Set() } }, v ? (u[g][d].__parents ? u[g][d].__parents[v] ? u[g][d].__parents[v][b] || (u[g][d].__parents[v][b] = /* @__PURE__ */ new Set()) : u[g][d].__parents[v] = { [b]: /* @__PURE__ */ new Set() } : u[g][d].__parents = { [v]: { [b]: /* @__PURE__ */ new Set() } }, u[g][d].__parents[v][b].add(h)) : u[g][d][b].add(h);
3186
+ const $ = d(b, h, g, f, v);
3187
+ $ && (t.push([$.sortIndex, $.breakpointOrder, $.rule]), r = !0), i[f] ? i[f][g] ? i[f][g][b] || (i[f][g][b] = /* @__PURE__ */ new Set()) : i[f][g] = { [b]: /* @__PURE__ */ new Set() } : i[f] = { [g]: { [b]: /* @__PURE__ */ new Set() } }, v ? (i[f][g].__parents ? i[f][g].__parents[v] ? i[f][g].__parents[v][b] || (i[f][g].__parents[v][b] = /* @__PURE__ */ new Set()) : i[f][g].__parents[v] = { [b]: /* @__PURE__ */ new Set() } : i[f][g].__parents = { [v]: { [b]: /* @__PURE__ */ new Set() } }, i[f][g].__parents[v][b].add(h)) : i[f][g][b].add(h);
3156
3188
  }
3157
- w.push(N);
3189
+ x.push(N);
3158
3190
  }
3159
- function C(b, h, w, p, g) {
3160
- const v = Y[w], d = `${p === "normal" ? "" : `${p}-`}${v.map((N) => `${N}-`).join("")}${g ? `${g}-` : ""}${b}-${h}`;
3161
- return M ? d : Ae.getIdentity(d);
3191
+ function w(b, h, x, p, f) {
3192
+ const v = Y[x], g = `${p === "normal" ? "" : `${p}-`}${v.map((N) => `${N}-`).join("")}${f ? `${f}-` : ""}${b}-${h}`;
3193
+ return G ? g : Oe.getIdentity(g);
3162
3194
  }
3163
3195
  const R = "crono-styles";
3164
3196
  function q() {
3165
3197
  let b = document.getElementById(R);
3166
3198
  return b || (b = document.createElement("style"), b.setAttribute("id", R), b.setAttribute("type", "text/css"), document.head.insertBefore(b, document.head.firstChild)), b;
3167
3199
  }
3168
- })(T || (T = {}));
3169
- var ce;
3200
+ })(_ || (_ = {}));
3201
+ var de;
3170
3202
  ((e) => {
3171
- e.flush = T.flush, e.clear = T.clear;
3172
- })(ce || (ce = {}));
3203
+ e.flush = _.flush, e.clear = _.clear;
3204
+ })(de || (de = {}));
3173
3205
  Array.prototype.removeBy || (Array.prototype.removeBy = function(e) {
3174
3206
  return this.filter((r) => !e(r));
3175
3207
  });
@@ -3185,8 +3217,8 @@ Array.prototype.sumBy || (Array.prototype.sumBy = function(e, r = 0) {
3185
3217
  });
3186
3218
  Array.prototype.sortBy || (Array.prototype.sortBy = function(e, r) {
3187
3219
  return [...this].sort((o, t) => {
3188
- const n = e(o), s = e(t);
3189
- return n < s ? r === "DESC" ? 1 : -1 : n > s ? r === "DESC" ? -1 : 1 : 0;
3220
+ const l = e(o), u = e(t);
3221
+ return l < u ? r === "DESC" ? 1 : -1 : l > u ? r === "DESC" ? -1 : 1 : 0;
3190
3222
  });
3191
3223
  });
3192
3224
  Array.prototype.maxBy || (Array.prototype.maxBy = function(e) {
@@ -3202,51 +3234,51 @@ Array.prototype.toRecord || (Array.prototype.toRecord = function(e) {
3202
3234
  (r, a) => {
3203
3235
  const o = e(a);
3204
3236
  if (!o) return r;
3205
- const [t, n] = o;
3206
- return r[t] = n, r;
3237
+ const [t, l] = o;
3238
+ return r[t] = l, r;
3207
3239
  },
3208
3240
  {}
3209
3241
  );
3210
3242
  });
3211
3243
  Array.prototype.groupBy || (Array.prototype.groupBy = function(e, r = !1) {
3212
- const a = this.reduce((o, t, n) => {
3213
- const s = e(t, n);
3214
- return r && typeof s != "number" && !s || (o.has(s) === !1 && o.set(s, []), o.get(s)?.push(t)), o;
3244
+ const a = this.reduce((o, t, l) => {
3245
+ const u = e(t, l);
3246
+ return r && typeof u != "number" && !u || (o.has(u) === !1 && o.set(u, []), o.get(u)?.push(t)), o;
3215
3247
  }, /* @__PURE__ */ new Map());
3216
3248
  return Array.from(a, ([o, t]) => ({ key: o, values: t }));
3217
3249
  });
3218
- function Me(e) {
3219
- const { node: r = null, event: a = "click", hideOnScroll: o = !1, hideOnResize: t = !1, hideOnEscape: n = !0 } = e ?? {}, [s, c] = ge(!1), u = xe(null);
3220
- return fe(() => {
3221
- function m(C) {
3222
- (r ?? u.current)?.contains(C.target) === !1 && c(!1);
3250
+ function Ge(e) {
3251
+ const { node: r = null, event: a = "click", hideOnScroll: o = !1, hideOnResize: t = !1, hideOnEscape: l = !0 } = e ?? {}, [u, c] = Z(!1), i = fe(null);
3252
+ return me(() => {
3253
+ function m(w) {
3254
+ (r ?? i.current)?.contains(w.target) === !1 && c(!1);
3223
3255
  }
3224
- function f() {
3256
+ function y() {
3225
3257
  c(!1);
3226
3258
  }
3227
- function y(C) {
3228
- (r ?? u.current)?.contains(C.target) === !1 && c(!1);
3259
+ function d(w) {
3260
+ (r ?? i.current)?.contains(w.target) === !1 && c(!1);
3229
3261
  }
3230
- function z(C) {
3231
- C.key === "Escape" && c(!1);
3262
+ function V(w) {
3263
+ w.key === "Escape" && c(!1);
3232
3264
  }
3233
- const x = new AbortController();
3234
- return s && (window.addEventListener(a, m, x), n && window.addEventListener("keydown", z, x), t && window.addEventListener("resize", f, x), o && window.addEventListener("scroll", y, { signal: x.signal, capture: !0 })), () => {
3235
- x.abort();
3265
+ const C = new AbortController();
3266
+ return u && (window.addEventListener(a, m, C), l && window.addEventListener("keydown", V, C), t && window.addEventListener("resize", y, C), o && window.addEventListener("scroll", d, { signal: C.signal, capture: !0 })), () => {
3267
+ C.abort();
3236
3268
  };
3237
- }, [r, s]), [s, c, u];
3269
+ }, [r, u]), [u, c, i];
3238
3270
  }
3239
3271
  const je = {
3240
3272
  selected: "aria-selected"
3241
3273
  };
3242
- var de;
3274
+ var ge;
3243
3275
  ((e) => {
3244
3276
  function r(a, o, t) {
3245
3277
  a !== void 0 && a != null && (t[je[o] ?? o] = Array.isArray(a) ? a[0] : a);
3246
3278
  }
3247
3279
  e.assignBooleanProp = r;
3248
- })(de || (de = {}));
3249
- function Ge(e) {
3280
+ })(ge || (ge = {}));
3281
+ function Ue(e) {
3250
3282
  let r;
3251
3283
  return Object.defineProperty({
3252
3284
  clear() {
@@ -3256,22 +3288,22 @@ function Ge(e) {
3256
3288
  get: () => (r === void 0 && (r = e()), r)
3257
3289
  });
3258
3290
  }
3259
- function Ie(e, r) {
3291
+ function Le(e, r) {
3260
3292
  if (!e) return { score: 1, matches: [] };
3261
3293
  if (!r) return null;
3262
3294
  const a = e.toLowerCase(), o = r.toLowerCase();
3263
- let t = 0, n = 0;
3264
- const s = [];
3265
- let c = -1, u = 0, m = 0;
3266
- for (; t < a.length && n < o.length; )
3267
- a[t] === o[n] ? (c === -1 && (c = n), t++, m++, u += m, (n === 0 || /\s|_|-/.test(r[n - 1])) && (u += 5), e[t - 1] === r[n] && (u += 1)) : (c !== -1 && (s.push([c, n]), c = -1), m = 0), n++;
3268
- return c !== -1 && s.push([c, n]), t < a.length ? null : (u = u / r.length, { score: u, matches: s });
3295
+ let t = 0, l = 0;
3296
+ const u = [];
3297
+ let c = -1, i = 0, m = 0;
3298
+ for (; t < a.length && l < o.length; )
3299
+ a[t] === o[l] ? (c === -1 && (c = l), t++, m++, i += m, (l === 0 || /\s|_|-/.test(r[l - 1])) && (i += 5), e[t - 1] === r[l] && (i += 1)) : (c !== -1 && (u.push([c, l]), c = -1), m = 0), l++;
3300
+ return c !== -1 && u.push([c, l]), t < a.length ? null : (i = i / r.length, { score: i, matches: u });
3269
3301
  }
3270
3302
  function De(e, r) {
3271
- return Ie(e, r) !== null;
3303
+ return Le(e, r) !== null;
3272
3304
  }
3273
3305
  function Pe(e) {
3274
- return /* @__PURE__ */ S(_, { viewBox: "4 2 16 18", width: "1rem", fill: "currentColor", ...e, children: /* @__PURE__ */ S(
3306
+ return /* @__PURE__ */ z(H, { viewBox: "4 2 16 18", width: "1rem", fill: "currentColor", ...e, children: /* @__PURE__ */ z(
3275
3307
  "path",
3276
3308
  {
3277
3309
  fillRule: "evenodd",
@@ -3280,43 +3312,43 @@ function Pe(e) {
3280
3312
  }
3281
3313
  ) });
3282
3314
  }
3283
- var oe;
3315
+ var ae;
3284
3316
  ((e) => {
3285
3317
  function r(a, o = 300) {
3286
- let t = !1, n;
3287
- return (...s) => {
3318
+ let t = !1, l;
3319
+ return (...u) => {
3288
3320
  if (t) {
3289
- n = s;
3321
+ l = u;
3290
3322
  return;
3291
3323
  }
3292
- a(...s), t = !0, setTimeout(() => {
3293
- t = !1, n && a(...n);
3324
+ a(...u), t = !0, setTimeout(() => {
3325
+ t = !1, l && a(...l);
3294
3326
  }, o);
3295
3327
  };
3296
3328
  }
3297
3329
  e.throttle = r;
3298
- })(oe || (oe = {}));
3299
- const Ue = oe, H = /* @__PURE__ */ new Map();
3300
- function We() {
3301
- const [e] = Se.useTheme(), r = ne(() => {
3330
+ })(ae || (ae = {}));
3331
+ const We = ae, M = /* @__PURE__ */ new Map();
3332
+ function Ke() {
3333
+ const [e] = ze.useTheme(), r = se(() => {
3302
3334
  const a = "crono-box";
3303
3335
  let o = document.getElementById(a);
3304
3336
  return o || (o = document.createElement("div"), o.id = a, document.body.appendChild(o)), o;
3305
3337
  }, []);
3306
- return U(() => {
3338
+ return B(() => {
3307
3339
  if (!e) return;
3308
- const a = H.get(e) ?? 0;
3309
- return H.set(e, a + 1), a === 0 && r.classList.add(e), () => {
3310
- const t = (H.get(e) ?? 1) - 1;
3311
- t <= 0 ? (H.delete(e), r.classList.remove(e)) : H.set(e, t);
3340
+ const a = M.get(e) ?? 0;
3341
+ return M.set(e, a + 1), a === 0 && r.classList.add(e), () => {
3342
+ const t = (M.get(e) ?? 1) - 1;
3343
+ t <= 0 ? (M.delete(e), r.classList.remove(e)) : M.set(e, t);
3312
3344
  };
3313
3345
  }, [r, e]), r;
3314
3346
  }
3315
- function Ke(e) {
3316
- return /* @__PURE__ */ S(_, { ...e, children: /* @__PURE__ */ S("path", { d: "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z" }) });
3317
- }
3318
3347
  function qe(e) {
3319
- return /* @__PURE__ */ S(_, { viewBox: "0 0 16 16", width: "18", ...e, children: /* @__PURE__ */ S(
3348
+ return /* @__PURE__ */ z(H, { ...e, children: /* @__PURE__ */ z("path", { d: "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z" }) });
3349
+ }
3350
+ function Xe(e) {
3351
+ return /* @__PURE__ */ z(H, { viewBox: "0 0 16 16", width: "18", ...e, children: /* @__PURE__ */ z(
3320
3352
  "path",
3321
3353
  {
3322
3354
  strokeWidth: 4,
@@ -3324,85 +3356,85 @@ function qe(e) {
3324
3356
  }
3325
3357
  ) });
3326
3358
  }
3327
- function Xe(e) {
3328
- return /* @__PURE__ */ S(_, { viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ S("path", { d: "M3 5h8v2H3V5zm0 6h8v2H3v-2zm0 6h8v2H3v-2zm12-12h6v6h-6V5zm1 1v4h4V6h-4zm-1 7h6v6h-6v-6zm1 1v4h4v-4h-4z" }) });
3329
- }
3330
3359
  function Ye(e) {
3331
- return /* @__PURE__ */ S(_, { viewBox: "0 0 1024 1024", ...e, children: /* @__PURE__ */ S("path", { d: "M31.997 1023.957a31.699 31.699 0 0 1-22.611-9.386C3.328 1008.556 0 1000.493 0 991.96s3.328-16.596 9.386-22.611L328.25 650.484l-152.52-152.52a95.907 95.907 0 0 1-25.087-92.152 95.31 95.31 0 0 1 44.327-58.62l.896-.512a353.464 353.464 0 0 1 176.156-47.398c20.137 0 40.36 1.749 60.283 5.205L597.71 44.54A95.224 95.224 0 0 1 678.685.085c25.64 0 49.745 9.983 67.877 28.073l249.195 249.195a95.224 95.224 0 0 1 25.897 88.74 95.139 95.139 0 0 1-42.152 60.154L719.513 591.695a352.227 352.227 0 0 1-42.663 237.292A95.395 95.395 0 0 1 594 876.514a95.523 95.523 0 0 1-67.963-28.2L373.43 695.706 54.61 1014.614a31.912 31.912 0 0 1-22.612 9.343zm340.025-660.68c-50.64 0-100.685 13.566-144.798 39.207a31.57 31.57 0 0 0-14.676 19.497 31.699 31.699 0 0 0 8.362 30.675L571.344 803.09c6.059 6.059 14.122 9.386 22.697 9.386a31.699 31.699 0 0 0 27.56-15.785 287.421 287.421 0 0 0 31.06-212.676 31.997 31.997 0 0 1 13.907-34.471l278.59-177.266a31.57 31.57 0 0 0 14.037-20.051 31.699 31.699 0 0 0-8.618-29.566l-249.28-249.28a31.912 31.912 0 0 0-49.618 5.418l-177.308 278.59a31.827 31.827 0 0 1-34.472 13.908 293.778 293.778 0 0 0-67.877-8.02z" }) });
3360
+ return /* @__PURE__ */ z(H, { viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ z("path", { d: "M3 5h8v2H3V5zm0 6h8v2H3v-2zm0 6h8v2H3v-2zm12-12h6v6h-6V5zm1 1v4h4V6h-4zm-1 7h6v6h-6v-6zm1 1v4h4v-4h-4z" }) });
3332
3361
  }
3333
- var ae;
3362
+ function Ze(e) {
3363
+ return /* @__PURE__ */ z(H, { viewBox: "0 0 1024 1024", ...e, children: /* @__PURE__ */ z("path", { d: "M31.997 1023.957a31.699 31.699 0 0 1-22.611-9.386C3.328 1008.556 0 1000.493 0 991.96s3.328-16.596 9.386-22.611L328.25 650.484l-152.52-152.52a95.907 95.907 0 0 1-25.087-92.152 95.31 95.31 0 0 1 44.327-58.62l.896-.512a353.464 353.464 0 0 1 176.156-47.398c20.137 0 40.36 1.749 60.283 5.205L597.71 44.54A95.224 95.224 0 0 1 678.685.085c25.64 0 49.745 9.983 67.877 28.073l249.195 249.195a95.224 95.224 0 0 1 25.897 88.74 95.139 95.139 0 0 1-42.152 60.154L719.513 591.695a352.227 352.227 0 0 1-42.663 237.292A95.395 95.395 0 0 1 594 876.514a95.523 95.523 0 0 1-67.963-28.2L373.43 695.706 54.61 1014.614a31.912 31.912 0 0 1-22.612 9.343zm340.025-660.68c-50.64 0-100.685 13.566-144.798 39.207a31.57 31.57 0 0 0-14.676 19.497 31.699 31.699 0 0 0 8.362 30.675L571.344 803.09c6.059 6.059 14.122 9.386 22.697 9.386a31.699 31.699 0 0 0 27.56-15.785 287.421 287.421 0 0 0 31.06-212.676 31.997 31.997 0 0 1 13.907-34.471l278.59-177.266a31.57 31.57 0 0 0 14.037-20.051 31.699 31.699 0 0 0-8.618-29.566l-249.28-249.28a31.912 31.912 0 0 0-49.618 5.418l-177.308 278.59a31.827 31.827 0 0 1-34.472 13.908 293.778 293.778 0 0 0-67.877-8.02z" }) });
3364
+ }
3365
+ var le;
3334
3366
  ((e) => {
3335
3367
  function r(a) {
3336
3368
  return a.charAt(0).toUpperCase() + a.slice(1);
3337
3369
  }
3338
3370
  e.capitalize = r;
3339
- })(ae || (ae = {}));
3340
- const Ze = ae;
3341
- function Qe(e) {
3342
- return /* @__PURE__ */ S(_, { viewBox: "0 0 488.4 488.4", ...e, children: /* @__PURE__ */ S("path", { d: "M0 203.25c0 112.1 91.2 203.2 203.2 203.2 51.6 0 98.8-19.4 134.7-51.2l129.5 129.5c2.4 2.4 5.5 3.6 8.7 3.6s6.3-1.2 8.7-3.6c4.8-4.8 4.8-12.5 0-17.3l-129.6-129.5c31.8-35.9 51.2-83 51.2-134.7C406.4 91.15 315.2.05 203.2.05S0 91.15 0 203.25zm381.9 0c0 98.5-80.2 178.7-178.7 178.7s-178.7-80.2-178.7-178.7 80.2-178.7 178.7-178.7 178.7 80.1 178.7 178.7z" }) });
3371
+ })(le || (le = {}));
3372
+ const Qe = le;
3373
+ function Je(e) {
3374
+ return /* @__PURE__ */ z(H, { viewBox: "0 0 488.4 488.4", ...e, children: /* @__PURE__ */ z("path", { d: "M0 203.25c0 112.1 91.2 203.2 203.2 203.2 51.6 0 98.8-19.4 134.7-51.2l129.5 129.5c2.4 2.4 5.5 3.6 8.7 3.6s6.3-1.2 8.7-3.6c4.8-4.8 4.8-12.5 0-17.3l-129.6-129.5c31.8-35.9 51.2-83 51.2-134.7C406.4 91.15 315.2.05 203.2.05S0 91.15 0 203.25zm381.9 0c0 98.5-80.2 178.7-178.7 178.7s-178.7-80.2-178.7-178.7 80.2-178.7 178.7-178.7 178.7 80.1 178.7 178.7z" }) });
3343
3375
  }
3344
- var le;
3376
+ var ne;
3345
3377
  ((e) => {
3346
3378
  function r(o) {
3347
3379
  const t = Array.from(o.elements).reduce(
3348
- (n, s) => {
3349
- const c = s.name;
3350
- return c && (n[c] || (n[c] = []), n[c].push(s)), n;
3380
+ (l, u) => {
3381
+ const c = u.name;
3382
+ return c && (l[c] || (l[c] = []), l[c].push(u)), l;
3351
3383
  },
3352
3384
  {}
3353
3385
  );
3354
- return Object.entries(t).reduce((n, [s, c]) => {
3386
+ return Object.entries(t).reduce((l, [u, c]) => {
3355
3387
  if (c.length === 1) {
3356
- const u = c[0];
3357
- a(n, s, u.type === "checkbox" || u.type === "radio" ? u.checked : u.value);
3388
+ const i = c[0];
3389
+ a(l, u, i.type === "checkbox" || i.type === "radio" ? i.checked : i.value);
3358
3390
  } else {
3359
- const u = c.reduce((m, f) => (f.type === "checkbox" || f.type === "radio" ? f.checked && m.push(f.value) : m.push(f.value), m), []);
3360
- a(n, s, u);
3391
+ const i = c.reduce((m, y) => (y.type === "checkbox" || y.type === "radio" ? y.checked && m.push(y.value) : m.push(y.value), m), []);
3392
+ a(l, u, i);
3361
3393
  }
3362
- return n;
3394
+ return l;
3363
3395
  }, {});
3364
3396
  }
3365
3397
  e.getFormEntries = r;
3366
- function a(o, t, n) {
3398
+ function a(o, t, l) {
3367
3399
  if (t.includes(".")) {
3368
- const s = t.split(".");
3400
+ const u = t.split(".");
3369
3401
  let c = o;
3370
- s.forEach((u, m) => {
3371
- if (s.length > m + 1) {
3372
- const f = u.match(/^(.+)\[(\d)\]$/);
3373
- if (f) {
3374
- const [, y, z] = f;
3375
- c[y] = c[y] || [], c[y][z] = c[y][z] || {}, c = c[y][z];
3402
+ u.forEach((i, m) => {
3403
+ if (u.length > m + 1) {
3404
+ const y = i.match(/^(.+)\[(\d)\]$/);
3405
+ if (y) {
3406
+ const [, d, V] = y;
3407
+ c[d] = c[d] || [], c[d][V] = c[d][V] || {}, c = c[d][V];
3376
3408
  } else
3377
- c[u] = c[u] || {}, c = c[u];
3409
+ c[i] = c[i] || {}, c = c[i];
3378
3410
  } else
3379
- c[u] = n;
3411
+ c[i] = l;
3380
3412
  });
3381
3413
  } else
3382
- o[t] = n;
3414
+ o[t] = l;
3383
3415
  }
3384
- })(le || (le = {}));
3385
- const Je = le;
3416
+ })(ne || (ne = {}));
3417
+ const er = ne;
3386
3418
  export {
3387
- de as B,
3388
- qe as D,
3419
+ ge as B,
3420
+ Xe as D,
3389
3421
  Pe as E,
3390
- Ue as F,
3391
- Xe as G,
3422
+ We as F,
3423
+ Ye as G,
3392
3424
  k as O,
3393
- Ye as P,
3394
- Ke as S,
3395
- Se as T,
3396
- i as V,
3425
+ Ze as P,
3426
+ qe as S,
3427
+ ze as T,
3428
+ s as V,
3397
3429
  $e as a,
3398
- Me as b,
3399
- me as c,
3400
- Qe as d,
3401
- Je as e,
3430
+ Ge as b,
3431
+ ye as c,
3432
+ Je as d,
3433
+ er as e,
3402
3434
  De as f,
3403
- Ze as g,
3404
- We as h,
3405
- ce as i,
3406
- Ge as m,
3407
- He as u
3435
+ Qe as g,
3436
+ Ke as h,
3437
+ de as i,
3438
+ Ue as m,
3439
+ Me as u
3408
3440
  };