@astrato-io/visualizations 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/README.md +9 -5
  2. package/THIRD_PARTY_NOTICES.md +403 -325
  3. package/VISUALIZATION_DEFINITIONS.md +319 -32
  4. package/chunks/{Button-BrGKp9Nm.js → Button-CCF851ea.js} +10 -10
  5. package/chunks/CircularProgress-yupH6YWs.js +765 -0
  6. package/chunks/FieldTypeIcon-D_MzsdfY.js +22 -0
  7. package/chunks/LinearProgress-CyFjN4px.js +327 -0
  8. package/chunks/{MenuOption-ByRqhRdX.js → MenuOption-CQpT79AP.js} +1391 -1008
  9. package/chunks/Title-C-p4ZarD.js +1804 -0
  10. package/chunks/_createAggregator-BF4qG9XK.js +50 -0
  11. package/chunks/{app-filter-bar.compiler-TwVTeoj5.js → app-filter-bar.compiler-8fxCo2q7.js} +10 -10
  12. package/chunks/bar-layout-DStC-GNV.js +9 -0
  13. package/chunks/{bar.compiler-DuQg8EUb.js → bar.compiler-CQAu8KL8.js} +102 -84
  14. package/chunks/{builder-DEDvNq1k.js → builder-CScg1TOS.js} +156 -60
  15. package/chunks/color-rules-DYJL4fIW.js +15 -0
  16. package/chunks/color-settings-DJFoFTip.js +5 -0
  17. package/chunks/{coloring-CncX_JRX.js → coloring-9jU3s_-p.js} +41 -41
  18. package/chunks/contains-BK-sRXcB.js +21 -0
  19. package/chunks/createSimplePaletteValueFilter-C4hZpCdn.js +2005 -0
  20. package/chunks/defaults-cyNhn37t.js +3 -0
  21. package/chunks/{definitions-BPJQTx16.js → definitions-C4grxhye.js} +612 -400
  22. package/chunks/{escobar-DRhRMYRE.js → escobar-CjirINHP.js} +5354 -5473
  23. package/chunks/{extend-preset-CUFNpmPe.js → extend-preset-D-l9u_we.js} +974 -909
  24. package/chunks/{filter.compiler-w27dlv0C.js → filter.compiler-lji2Acgn.js} +7 -7
  25. package/chunks/{filtering-cc7WqWpg.js → filtering-C1zakrrX.js} +570 -390
  26. package/chunks/handlers-ZviIUC-j.js +15387 -0
  27. package/chunks/{icon-picker-styles-CoJmwTRi.js → icon-picker-styles-Bj80ZUBK.js} +11 -11
  28. package/chunks/isEqual-Ch9OEye3.js +16 -0
  29. package/chunks/isFocusVisible-CgMP0qkR.js +144 -0
  30. package/chunks/label-format-type-C46pzgx7.js +17 -0
  31. package/chunks/{line.compiler-Ct1WhN2p.js → line.compiler-De5fiKuR.js} +6 -6
  32. package/chunks/{logger-DpQtYQnX.js → logger-CKRjhSHQ.js} +77 -66
  33. package/chunks/map.compiler-CKzorLgK.js +345 -0
  34. package/chunks/{metadata-WABZrt7Y.js → metadata-Bb9pTXrq.js} +1 -1
  35. package/chunks/{number.compiler-D8TPly-4.js → number.compiler-CaTmJkmi.js} +4 -4
  36. package/chunks/operations-DZoY50VX.js +31297 -0
  37. package/chunks/{range-Bi-7zT0k.js → range-D1BTmFMp.js} +2 -2
  38. package/chunks/react-dom-Dgv2azN2.js +368 -0
  39. package/chunks/{render-wrappers-OEmtaM8g.js → render-wrappers-_P3xwu5A.js} +1 -1
  40. package/chunks/{requirements-Dvd8jqYF.js → requirements-NHNrR8Ie.js} +55 -53
  41. package/chunks/responsive.styles-FItb913l.js +93 -0
  42. package/chunks/shared-UitWpq1J.js +1331 -0
  43. package/chunks/standalone-B0U6c3su.js +3638 -0
  44. package/chunks/{standalone-we5D5MIn.js → standalone-BBu90BhK.js} +113 -113
  45. package/chunks/standalone-BEekPuA12.js +357 -0
  46. package/chunks/{standalone-BMTCb10X.js → standalone-BOzHA_d4.js} +41 -41
  47. package/chunks/standalone-BR2JuRIC.js +422 -0
  48. package/chunks/{standalone-BGkmozIb.js → standalone-BapqaniK.js} +619 -619
  49. package/chunks/standalone-Bnnr87pc.js +2009 -0
  50. package/chunks/standalone-BwJqDj2Z.js +396 -0
  51. package/chunks/{standalone-BDhPQtzQ.js → standalone-ByKKqT5L.js} +308 -300
  52. package/chunks/{standalone-vBnBS2YC.js → standalone-CRdDZYeM.js} +1788 -1004
  53. package/chunks/standalone-CRfDOO1x.js +287 -0
  54. package/chunks/{standalone-D5Q5ngsD.js → standalone-CVknVdUC.js} +30 -27
  55. package/chunks/standalone-CbPk8bKn.js +580 -0
  56. package/chunks/{standalone-CJvIXsQE.js → standalone-Ck63MZzj.js} +234 -232
  57. package/chunks/{standalone-CM5XcAN5.js → standalone-DCFY1MAV.js} +8075 -7729
  58. package/chunks/{standalone-DW6NT205.js → standalone-DZDGX3aa.js} +168 -168
  59. package/chunks/standalone-DhfgeJIk.js +1012 -0
  60. package/chunks/{standalone-DT0wKji7.js → standalone-DibjA73M.js} +2 -2
  61. package/chunks/{standalone-XuGksArp.js → standalone-DtBk_iUz.js} +9 -8
  62. package/chunks/standalone-DxBAyqAu.js +772 -0
  63. package/chunks/standalone-KMQPsNsq.js +2 -0
  64. package/chunks/standalone-MBLSvsrY.js +2 -0
  65. package/chunks/standalone-U0WJwFlG.js +354 -0
  66. package/chunks/{standalone-C8ZAEutO.js → standalone-swGs70tD.js} +49 -51
  67. package/chunks/standalone-wgFAVnnm.js +355 -0
  68. package/chunks/standalone-xGV0dqPV.js +689 -0
  69. package/chunks/{table.compiler-DMeeHxb6.js → table.compiler-OWSx5MOq.js} +7 -7
  70. package/chunks/{typeof-CJDtcySz.js → typeof-DCq3QgvY.js} +6 -1
  71. package/chunks/useFieldName-B8iCYyw1.js +7 -0
  72. package/chunks/{utils-vdmi_2PK.js → utils-3Igg6xmO.js} +7668 -12779
  73. package/chunks/{view-BuwQugKb.js → view-DdMLZySj.js} +2430 -2110
  74. package/chunks/{visualization-filters-Cc4KU-l-.js → visualization-filters-CzvFHE6M.js} +5205 -4438
  75. package/chunks/with-html-element-DOfkR3C1.js +16094 -0
  76. package/definitions.js +2 -2
  77. package/docs/operations/astrato-app-filter-bar.md +1 -1
  78. package/docs/operations/bar.md +303 -2
  79. package/docs/operations/combo.md +262 -1
  80. package/docs/operations/date-picker.md +1 -1
  81. package/docs/operations/distribution-gauge.md +1 -1
  82. package/docs/operations/dot.md +148 -1
  83. package/docs/operations/filter.md +1 -1
  84. package/docs/operations/gauge.md +1 -1
  85. package/docs/operations/heatMap.md +1 -1
  86. package/docs/operations/histogram.md +262 -1
  87. package/docs/operations/iframe.md +1 -1
  88. package/docs/operations/image.md +1 -1
  89. package/docs/operations/index.md +8 -8
  90. package/docs/operations/line.md +262 -1
  91. package/docs/operations/number.md +1 -1
  92. package/docs/operations/pie.md +1 -1
  93. package/docs/operations/radar.md +1 -1
  94. package/docs/operations/sankey.md +1 -1
  95. package/docs/operations/scatter.md +148 -1
  96. package/docs/operations/shape.md +1 -1
  97. package/docs/operations/simpleTextObject.md +1 -1
  98. package/docs/operations/slider.md +1 -1
  99. package/docs/operations/table.md +439 -157
  100. package/docs/operations/tree.md +1 -1
  101. package/docs/operations/treemap.md +1 -1
  102. package/docs/operations/waterfall.md +1 -1
  103. package/docs/operations/word-cloud.md +1 -1
  104. package/getters.js +2 -2
  105. package/index.js +523 -469
  106. package/metadata.js +2 -2
  107. package/operations.js +5 -5
  108. package/package.json +74 -68
  109. package/src/definitions/index.d.ts +1 -1
  110. package/src/definitions/model/definitions/available-fields.d.ts +2 -2
  111. package/src/definitions/model/definitions/compilers/compile.d.ts +1 -0
  112. package/src/definitions/model/definitions/data-item-resolution.d.ts +3 -3
  113. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +535 -349
  114. package/src/definitions/model/definitions/index.d.ts +2 -1
  115. package/src/definitions/model/definitions/schema-registry.d.ts +406 -101
  116. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +10 -8
  117. package/src/definitions/model/definitions/schemas/common.schema.d.ts +33 -32
  118. package/src/definitions/model/definitions/schemas/index.d.ts +1 -0
  119. package/src/definitions/model/definitions/schemas/line.schema.d.ts +10 -10
  120. package/src/definitions/model/definitions/schemas/map.schema.d.ts +590 -0
  121. package/src/definitions/model/definitions/schemas/number.schema.d.ts +4 -4
  122. package/src/definitions/model/definitions/schemas/object.schema.d.ts +38 -38
  123. package/src/definitions/model/definitions/schemas/table.schema.d.ts +61 -61
  124. package/src/definitions/model/definitions/types/compilation.types.d.ts +7 -2
  125. package/src/definitions/model/definitions/types/definition.types.d.ts +2 -2
  126. package/src/definitions/model/definitions/types/index.d.ts +1 -1
  127. package/src/index.d.ts +1 -1
  128. package/src/operations/index.d.ts +1 -1
  129. package/src/types.d.ts +45 -41
  130. package/src/visualization-catalog.d.ts +26 -26
  131. package/chunks/DefaultPropsProvider-BsfB7QTn.js +0 -257
  132. package/chunks/FieldTypeIcon-Drs6hSJF.js +0 -22
  133. package/chunks/LinearProgress-VtfFx2vJ.js +0 -253
  134. package/chunks/Title-CO5dP1ma.js +0 -1691
  135. package/chunks/ToggleButton-KOBAimC1.js +0 -112
  136. package/chunks/color-rules-CN7TcGrC.js +0 -6
  137. package/chunks/color-settings-3VRlf_Vw.js +0 -6
  138. package/chunks/colorManipulator-D8Pjy1pf.js +0 -45
  139. package/chunks/handlers-TOT-7INo.js +0 -12871
  140. package/chunks/isEqual-B8loyPsC.js +0 -12
  141. package/chunks/label-format-type-weq1XfcX.js +0 -8
  142. package/chunks/operations-Dh4v1Ovt.js +0 -26280
  143. package/chunks/responsive.styles-DSiOGD7u.js +0 -82
  144. package/chunks/shared-Bn4N5QcZ.js +0 -1218
  145. package/chunks/standalone-B55oyW6c.js +0 -689
  146. package/chunks/standalone-BXKRE_Se.js +0 -468
  147. package/chunks/standalone-Bes8srx1.js +0 -354
  148. package/chunks/standalone-BjZp0QMe.js +0 -2
  149. package/chunks/standalone-BlMIwpEe.js +0 -1877
  150. package/chunks/standalone-C8qAelL4.js +0 -2
  151. package/chunks/standalone-CLmGb7nn2.js +0 -355
  152. package/chunks/standalone-CXNP6-xD.js +0 -420
  153. package/chunks/standalone-DLlyRIE6.js +0 -287
  154. package/chunks/standalone-DMcI1afI.js +0 -396
  155. package/chunks/standalone-DN4S1MjT.js +0 -3874
  156. package/chunks/standalone-DYQIQH4c.js +0 -2095
  157. package/chunks/standalone-D__XCp-h.js +0 -1003
  158. package/chunks/standalone-XTgSsTAa.js +0 -354
  159. package/chunks/useFieldName-Cjn9KCVp.js +0 -7
  160. package/chunks/useSlotProps-DLbQp4lc.js +0 -166
  161. package/chunks/with-html-element-D0uY2zjI.js +0 -7328
@@ -1,15 +1,17 @@
1
1
  import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
2
- import { Hi as n } from "./visualization-filters-Cc4KU-l-.js";
3
- import { $r as r, An as i, B as a, Bt as o, Di as s, Ei as c, G as l, Q as u, Qr as d, Ti as f, Vt as p, W as m, Y as h, Yr as g, br as _, ln as v, lr as y, qr as b, r as x, ri as S, rt as C, tr as w, un as T, wi as E } from "./utils-vdmi_2PK.js";
4
- import "./logger-DpQtYQnX.js";
5
- import { c as D, d as O, i as k, l as A, r as j, t as M, u as N } from "./DefaultPropsProvider-BsfB7QTn.js";
6
- import { c as P, f as F, i as ee, l as I, n as L, t as R } from "./useSlotProps-DLbQp4lc.js";
7
- import { a as z, c as B, g as V, l as H, m as U, n as W, s as te, t as G, u as ne } from "./Title-CO5dP1ma.js";
8
- import "./coloring-CncX_JRX.js";
9
- import { a as re, d as ie, f as K } from "./responsive.styles-DSiOGD7u.js";
10
- var ae = /* @__PURE__ */ function(e) {
11
- return e.left = "left", e.right = "right", e;
12
- }({}), oe = /* @__PURE__ */ t(((e, t) => {
2
+ import { Da as n } from "./visualization-filters-CzvFHE6M.js";
3
+ import { $ as r, B as i, Fr as a, G as o, Gn as s, J as c, Ln as l, Pr as u, W as d, ci as f, et as p, it as m, jr as h, kr as g, li as _, nr as v, nt as y, oi as b, r as x, si as S, sn as C, zr as w } from "./utils-3Igg6xmO.js";
4
+ import "./logger-CKRjhSHQ.js";
5
+ import { _ as T, a as E, d as D, f as ee, i as O, l as k, m as A, o as j, r as M, s as N, u as P, v as F } from "./react-dom-Dgv2azN2.js";
6
+ import { d as I, f as te, i as ne, l as L, n as R, s as re, u as z } from "./isFocusVisible-CgMP0qkR.js";
7
+ import { a as ie, c as ae, f as oe, h as se, l as ce, n as le, p as ue, s as de, t as fe, v as pe, y as me } from "./Title-C-p4ZarD.js";
8
+ import { i as he, n as ge, r as B, t as V } from "./contains-BK-sRXcB.js";
9
+ import { a as _e, d as ve, f as H } from "./responsive.styles-FItb913l.js";
10
+ import "./coloring-9jU3s_-p.js";
11
+ var ye = {
12
+ left: "left",
13
+ right: "right"
14
+ }, be = /* @__PURE__ */ t(((e, t) => {
13
15
  t.exports = {
14
16
  aliceblue: [
15
17
  240,
@@ -752,12 +754,12 @@ var ae = /* @__PURE__ */ function(e) {
752
754
  50
753
755
  ]
754
756
  };
755
- })), se = /* @__PURE__ */ t(((e, t) => {
757
+ })), xe = /* @__PURE__ */ t(((e, t) => {
756
758
  t.exports = function(e) {
757
759
  return !e || typeof e == "string" ? !1 : e instanceof Array || Array.isArray(e) || e.length >= 0 && (e.splice instanceof Function || Object.getOwnPropertyDescriptor(e, e.length - 1) && e.constructor.name !== "String");
758
760
  };
759
- })), ce = /* @__PURE__ */ t(((e, t) => {
760
- var n = se(), r = Array.prototype.concat, i = Array.prototype.slice, a = t.exports = function(e) {
761
+ })), Se = /* @__PURE__ */ t(((e, t) => {
762
+ var n = xe(), r = Array.prototype.concat, i = Array.prototype.slice, a = t.exports = function(e) {
761
763
  for (var t = [], a = 0, o = e.length; a < o; a++) {
762
764
  var s = e[a];
763
765
  n(s) ? t = r.call(t, i.call(s)) : t.push(s);
@@ -769,8 +771,8 @@ var ae = /* @__PURE__ */ function(e) {
769
771
  return e(a(arguments));
770
772
  };
771
773
  };
772
- })), le = /* @__PURE__ */ t(((e, t) => {
773
- var n = oe(), r = ce(), i = Object.hasOwnProperty, a = Object.create(null);
774
+ })), Ce = /* @__PURE__ */ t(((e, t) => {
775
+ var n = be(), r = Se(), i = Object.hasOwnProperty, a = Object.create(null);
774
776
  for (var o in n) i.call(n, o) && (a[n[o]] = o);
775
777
  var s = t.exports = {
776
778
  to: {},
@@ -876,8 +878,8 @@ var ae = /* @__PURE__ */ function(e) {
876
878
  var t = Math.round(e).toString(16).toUpperCase();
877
879
  return t.length < 2 ? "0" + t : t;
878
880
  }
879
- })), ue = /* @__PURE__ */ t(((e, t) => {
880
- var n = oe(), r = {};
881
+ })), we = /* @__PURE__ */ t(((e, t) => {
882
+ var n = be(), r = {};
881
883
  for (let e of Object.keys(n)) r[n[e]] = e;
882
884
  var i = {
883
885
  rgb: {
@@ -1355,8 +1357,8 @@ var ae = /* @__PURE__ */ function(e) {
1355
1357
  }, i.rgb.gray = function(e) {
1356
1358
  return [(e[0] + e[1] + e[2]) / 3 / 255 * 100];
1357
1359
  };
1358
- })), de = /* @__PURE__ */ t(((e, t) => {
1359
- var n = ue();
1360
+ })), Te = /* @__PURE__ */ t(((e, t) => {
1361
+ var n = we();
1360
1362
  function r() {
1361
1363
  let e = {}, t = Object.keys(n);
1362
1364
  for (let n = t.length, r = 0; r < n; r++) e[t[r]] = {
@@ -1394,8 +1396,8 @@ var ae = /* @__PURE__ */ function(e) {
1394
1396
  }
1395
1397
  return n;
1396
1398
  };
1397
- })), fe = /* @__PURE__ */ t(((e, t) => {
1398
- var n = ue(), r = de(), i = {}, a = Object.keys(n);
1399
+ })), Ee = /* @__PURE__ */ t(((e, t) => {
1400
+ var n = we(), r = Te(), i = {}, a = Object.keys(n);
1399
1401
  function o(e) {
1400
1402
  let t = function(...t) {
1401
1403
  let n = t[0];
@@ -1422,8 +1424,8 @@ var ae = /* @__PURE__ */ function(e) {
1422
1424
  i[e][n] = s(r), i[e][n].raw = o(r);
1423
1425
  });
1424
1426
  }), t.exports = i;
1425
- })), pe = /* @__PURE__ */ t(((e, t) => {
1426
- var n = le(), r = fe(), i = [
1427
+ })), De = /* @__PURE__ */ t(((e, t) => {
1428
+ var n = Ce(), r = Ee(), i = [
1427
1429
  "keyword",
1428
1430
  "gray",
1429
1431
  "hex"
@@ -1664,12 +1666,7 @@ var ae = /* @__PURE__ */ function(e) {
1664
1666
  }
1665
1667
  t.exports = s;
1666
1668
  }));
1667
- function me(...e) {
1668
- return e.reduce((e, t) => t == null ? e : function(...n) {
1669
- e.apply(this, n), t.apply(this, n);
1670
- }, () => {});
1671
- }
1672
- function he(e, t = 166) {
1669
+ function Oe(e, t = 166) {
1673
1670
  let n;
1674
1671
  function r(...r) {
1675
1672
  clearTimeout(n), n = setTimeout(() => {
@@ -1680,38 +1677,63 @@ function he(e, t = 166) {
1680
1677
  clearTimeout(n);
1681
1678
  }, r;
1682
1679
  }
1683
- function q(e) {
1684
- return F(e).defaultView || window;
1680
+ function U(e) {
1681
+ return L(e).defaultView || window;
1685
1682
  }
1686
- function ge(e) {
1687
- let t = e.documentElement.clientWidth;
1688
- return Math.abs(window.innerWidth - t);
1683
+ var W = /* @__PURE__ */ e(f(), 1), G = w(), ke = y, K = L;
1684
+ function Ae(...e) {
1685
+ return e.reduce((e, t) => t == null ? e : function(...n) {
1686
+ e.apply(this, n), t.apply(this, n);
1687
+ }, () => {});
1689
1688
  }
1690
- var J = /* @__PURE__ */ e(c());
1691
- T(), p();
1692
- var _e = h(), ve = (e) => {
1693
- let t;
1694
- return t = e < 1 ? 5.11916 * e ** 2 : 4.5 * Math.log(e + 1) + 2, (t / 100).toFixed(2);
1695
- }, Y = S(), ye = he, be = F, xe = q, Se = C;
1696
- function Ce(e) {
1697
- return N("MuiPaper", e);
1689
+ var je = Oe, Me = U;
1690
+ function Ne(e, t) {
1691
+ if (!e) return t;
1692
+ function n(e, t) {
1693
+ let n = {};
1694
+ return Object.keys(t).forEach((r) => {
1695
+ re(r, t[r]) && typeof e[r] == "function" && (n[r] = (...n) => {
1696
+ e[r](...n), t[r](...n);
1697
+ });
1698
+ }), n;
1699
+ }
1700
+ if (typeof e == "function" || typeof t == "function") return (r) => {
1701
+ let i = typeof t == "function" ? t(r) : t, a = typeof e == "function" ? e({
1702
+ ...r,
1703
+ ...i
1704
+ }) : e, o = m(r?.className, i?.className, a?.className), s = n(a, i), c = {
1705
+ ...i,
1706
+ ...a,
1707
+ ...s
1708
+ };
1709
+ return o && (c.className = o), i?.style && a?.style && (c.style = {
1710
+ ...i.style,
1711
+ ...a.style
1712
+ }), i?.sx && a?.sx && (c.sx = [...Array.isArray(i.sx) ? i.sx : [i.sx], ...Array.isArray(a.sx) ? a.sx : [a.sx]]), c;
1713
+ };
1714
+ let r = t, i = n(e, r), a = m(r?.className, e?.className), o = {
1715
+ ...t,
1716
+ ...e,
1717
+ ...i
1718
+ };
1719
+ return a && (o.className = a), r?.style && e?.style && (o.style = {
1720
+ ...r.style,
1721
+ ...e.style
1722
+ }), r?.sx && e?.sx && (o.sx = [...Array.isArray(r.sx) ? r.sx : [r.sx], ...Array.isArray(e.sx) ? e.sx : [e.sx]]), o;
1698
1723
  }
1699
- A("MuiPaper", /* @__PURE__ */ "root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24".split("."));
1700
- var we = [
1701
- "className",
1702
- "component",
1703
- "elevation",
1704
- "square",
1705
- "variant"
1706
- ], Te = (e) => {
1724
+ function Pe(e) {
1725
+ return F("MuiPaper", e);
1726
+ }
1727
+ T("MuiPaper", /* @__PURE__ */ "root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24".split("."));
1728
+ var Fe = (e) => {
1707
1729
  let { square: t, elevation: n, variant: r, classes: i } = e;
1708
- return D({ root: [
1730
+ return A({ root: [
1709
1731
  "root",
1710
1732
  r,
1711
1733
  !t && "rounded",
1712
1734
  r === "elevation" && `elevation${n}`
1713
- ] }, Ce, i);
1714
- }, Ee = j("div", {
1735
+ ] }, Pe, i);
1736
+ }, Ie = D("div", {
1715
1737
  name: "MuiPaper",
1716
1738
  slot: "Root",
1717
1739
  overridesResolver: (e, t) => {
@@ -1723,120 +1745,138 @@ var we = [
1723
1745
  n.variant === "elevation" && t[`elevation${n.elevation}`]
1724
1746
  ];
1725
1747
  }
1726
- })(({ theme: e, ownerState: t }) => v({
1748
+ })(P(({ theme: e }) => ({
1727
1749
  backgroundColor: (e.vars || e).palette.background.paper,
1728
1750
  color: (e.vars || e).palette.text.primary,
1729
- transition: e.transitions.create("box-shadow")
1730
- }, !t.square && { borderRadius: e.shape.borderRadius }, t.variant === "outlined" && { border: `1px solid ${(e.vars || e).palette.divider}` }, t.variant === "elevation" && v({ boxShadow: (e.vars || e).shadows[t.elevation] }, !e.vars && e.palette.mode === "dark" && { backgroundImage: `linear-gradient(${(0, _e.alpha)("#fff", ve(t.elevation))}, ${(0, _e.alpha)("#fff", ve(t.elevation))})` }, e.vars && { backgroundImage: e.vars.overlays?.[t.elevation] }))), De = /*#__PURE__*/ J.forwardRef(function(e, t) {
1731
- let n = M({
1751
+ ...E(e, "box-shadow"),
1752
+ variants: [
1753
+ {
1754
+ props: ({ ownerState: e }) => !e.square,
1755
+ style: { borderRadius: (e.vars || e).shape.borderRadius }
1756
+ },
1757
+ {
1758
+ props: { variant: "outlined" },
1759
+ style: { border: `1px solid ${(e.vars || e).palette.divider}` }
1760
+ },
1761
+ {
1762
+ props: { variant: "elevation" },
1763
+ style: {
1764
+ boxShadow: "var(--Paper-shadow)",
1765
+ backgroundImage: "var(--Paper-overlay)"
1766
+ }
1767
+ }
1768
+ ]
1769
+ }))), Le = /*#__PURE__*/ W.forwardRef(function(e, t) {
1770
+ let n = k({
1732
1771
  props: e,
1733
1772
  name: "MuiPaper"
1734
- }), { className: r, component: i = "div", elevation: a = 1, square: s = !1, variant: c = "elevation" } = n, l = o(n, we), u = v({}, n, {
1735
- component: i,
1736
- elevation: a,
1737
- square: s,
1738
- variant: c
1739
- }), d = Te(u);
1740
- return /*#__PURE__*/ (0, Y.jsx)(Ee, v({
1741
- as: i,
1742
- ownerState: u,
1743
- className: O(d.root, r),
1744
- ref: t
1745
- }, l));
1746
- });
1747
- T(), p();
1748
- var Oe = [
1749
- "addEndListener",
1750
- "appear",
1751
- "children",
1752
- "easing",
1753
- "in",
1754
- "onEnter",
1755
- "onEntered",
1756
- "onEntering",
1757
- "onExit",
1758
- "onExited",
1759
- "onExiting",
1760
- "style",
1761
- "timeout",
1762
- "TransitionComponent"
1763
- ], ke = {
1773
+ }), r = o(), { className: i, component: a = "div", elevation: s = 1, square: l = !1, variant: u = "elevation", ...d } = n, f = {
1774
+ ...n,
1775
+ component: a,
1776
+ elevation: s,
1777
+ square: l,
1778
+ variant: u
1779
+ }, h = Fe(f);
1780
+ return /*#__PURE__*/ (0, G.jsx)(Ie, {
1781
+ as: a,
1782
+ ownerState: f,
1783
+ className: m(h.root, i),
1784
+ ref: t,
1785
+ ...d,
1786
+ style: {
1787
+ ...u === "elevation" && {
1788
+ "--Paper-shadow": (r.vars || r).shadows[s],
1789
+ ...r.vars && { "--Paper-overlay": r.vars.overlays?.[s] },
1790
+ ...!r.vars && r.palette.mode === "dark" && { "--Paper-overlay": `linear-gradient(${p("#fff", c(s))}, ${p("#fff", c(s))})` }
1791
+ },
1792
+ ...d.style
1793
+ }
1794
+ });
1795
+ }), Re = {
1764
1796
  entering: { opacity: 1 },
1765
- entered: { opacity: 1 }
1766
- }, Ae = /*#__PURE__*/ J.forwardRef(function(e, t) {
1767
- let n = l(), r = {
1797
+ entered: { opacity: 1 },
1798
+ exiting: { opacity: 0 },
1799
+ exited: { opacity: 0 }
1800
+ }, ze = {
1801
+ opacity: 0,
1802
+ visibility: "hidden"
1803
+ }, Be = /*#__PURE__*/ W.forwardRef(function(e, t) {
1804
+ let n = o(), r = {
1768
1805
  enter: n.transitions.duration.enteringScreen,
1769
1806
  exit: n.transitions.duration.leavingScreen
1770
- }, { addEndListener: i, appear: a = !0, children: s, easing: c, in: u, onEnter: d, onEntered: f, onEntering: p, onExit: m, onExited: h, onExiting: g, style: _, timeout: y = r, TransitionComponent: b = ne } = e, x = o(e, Oe), S = J.useRef(null), C = U(S, V(s), t), w = (e) => (t) => {
1771
- if (e) {
1772
- let n = S.current;
1773
- t === void 0 ? e(n) : e(n, t);
1774
- }
1775
- }, T = w(p), E = w((e, t) => {
1776
- H(e);
1777
- let r = B({
1778
- style: _,
1779
- timeout: y,
1780
- easing: c
1781
- }, { mode: "enter" });
1782
- e.style.webkitTransition = n.transitions.create("opacity", r), e.style.transition = n.transitions.create("opacity", r), d && d(e, t);
1783
- }), D = w(f), O = w(g), k = w((e) => {
1784
- let t = B({
1807
+ }, { addEndListener: i, appear: a = !0, children: s, disablePrefersReducedMotion: c = !1, easing: l, in: u, onEnter: d, onEntered: f, onEntering: p, onExit: m, onExited: h, onExiting: g, style: _, timeout: v = r, ...y } = e, b = oe(n.motion.reducedMotion, c), x = W.useRef(null), S = me(x, ae(s), t), C = j(x, p), w = j(x, (e, t) => {
1808
+ b.shouldReduceMotion || N(e);
1809
+ let r = O({
1785
1810
  style: _,
1786
- timeout: y,
1787
- easing: c
1788
- }, { mode: "exit" });
1789
- e.style.webkitTransition = n.transitions.create("opacity", t), e.style.transition = n.transitions.create("opacity", t), m && m(e);
1790
- }), A = w(h);
1791
- return /*#__PURE__*/ (0, Y.jsx)(b, v({
1811
+ timeout: v,
1812
+ easing: l
1813
+ }, { mode: "enter" }), i = b.getTransitionTiming({
1814
+ duration: r.duration,
1815
+ delay: r.delay
1816
+ });
1817
+ e.style.transition = n.transitions.create("opacity", {
1818
+ duration: i.duration,
1819
+ easing: r.easing,
1820
+ delay: i.delay
1821
+ }), d && d(e, t);
1822
+ }), T = j(x, f), E = j(x, g);
1823
+ return /*#__PURE__*/ (0, G.jsx)(ue, {
1792
1824
  appear: a,
1793
1825
  in: u,
1794
- nodeRef: S,
1795
- onEnter: E,
1796
- onEntered: D,
1797
- onEntering: T,
1798
- onExit: k,
1799
- onExited: A,
1800
- onExiting: O,
1801
- addEndListener: (e) => {
1802
- i && i(S.current, e);
1803
- },
1804
- timeout: y
1805
- }, x, { children: (e, t) => /*#__PURE__*/ J.cloneElement(s, v({
1806
- style: v({
1807
- opacity: 0,
1808
- visibility: e === "exited" && !u ? "hidden" : void 0
1809
- }, ke[e], _, s.props.style),
1810
- ref: C
1811
- }, t)) }));
1826
+ nodeRef: x,
1827
+ onEnter: w,
1828
+ onEntered: T,
1829
+ onEntering: C,
1830
+ onExit: j(x, (e) => {
1831
+ let t = O({
1832
+ style: _,
1833
+ timeout: v,
1834
+ easing: l
1835
+ }, { mode: "exit" }), r = b.getTransitionTiming({
1836
+ duration: t.duration,
1837
+ delay: t.delay
1838
+ });
1839
+ e.style.transition = n.transitions.create("opacity", {
1840
+ duration: r.duration,
1841
+ easing: t.easing,
1842
+ delay: r.delay
1843
+ }), m && m(e);
1844
+ }),
1845
+ onExited: j(x, (e) => {
1846
+ e.style.transition = "", h && h(e);
1847
+ }),
1848
+ onExiting: E,
1849
+ addEndListener: i ? (e) => {
1850
+ i(x.current, e);
1851
+ } : void 0,
1852
+ reduceMotion: b.shouldReduceMotion,
1853
+ timeout: v,
1854
+ ...y,
1855
+ children: (e, { ownerState: t, ...n }) => {
1856
+ let r = M(e, u, Re, ze, _, s.props.style);
1857
+ return /*#__PURE__*/ W.cloneElement(s, {
1858
+ style: r,
1859
+ ref: S,
1860
+ ...n
1861
+ });
1862
+ }
1863
+ });
1812
1864
  });
1813
- function je(e) {
1814
- return N("MuiBackdrop", e);
1865
+ function Ve(e) {
1866
+ return F("MuiBackdrop", e);
1815
1867
  }
1816
- A("MuiBackdrop", ["root", "invisible"]), p(), T();
1817
- var Me = [
1818
- "children",
1819
- "className",
1820
- "component",
1821
- "components",
1822
- "componentsProps",
1823
- "invisible",
1824
- "open",
1825
- "slotProps",
1826
- "slots",
1827
- "TransitionComponent",
1828
- "transitionDuration"
1829
- ], Ne = (e) => {
1868
+ T("MuiBackdrop", ["root", "invisible"]);
1869
+ var He = (e) => {
1830
1870
  let { classes: t, invisible: n } = e;
1831
- return D({ root: ["root", n && "invisible"] }, je, t);
1832
- }, Pe = j("div", {
1871
+ return A({ root: ["root", n && "invisible"] }, Ve, t);
1872
+ }, Ue = D("div", {
1833
1873
  name: "MuiBackdrop",
1834
1874
  slot: "Root",
1835
1875
  overridesResolver: (e, t) => {
1836
1876
  let { ownerState: n } = e;
1837
1877
  return [t.root, n.invisible && t.invisible];
1838
1878
  }
1839
- })(({ ownerState: e }) => v({
1879
+ })({
1840
1880
  position: "fixed",
1841
1881
  display: "flex",
1842
1882
  alignItems: "center",
@@ -1846,85 +1886,107 @@ var Me = [
1846
1886
  top: 0,
1847
1887
  left: 0,
1848
1888
  backgroundColor: "rgba(0, 0, 0, 0.5)",
1849
- WebkitTapHighlightColor: "transparent"
1850
- }, e.invisible && { backgroundColor: "transparent" })), Fe = /*#__PURE__*/ J.forwardRef(function(e, t) {
1851
- let n = M({
1889
+ WebkitTapHighlightColor: "transparent",
1890
+ variants: [{
1891
+ props: { invisible: !0 },
1892
+ style: { backgroundColor: "transparent" }
1893
+ }]
1894
+ }), We = /*#__PURE__*/ W.forwardRef(function(e, t) {
1895
+ let n = k({
1852
1896
  props: e,
1853
1897
  name: "MuiBackdrop"
1854
- }), { children: r, className: i, component: a = "div", components: s = {}, componentsProps: c = {}, invisible: l = !1, open: u, slotProps: d = {}, slots: f = {}, TransitionComponent: p = Ae, transitionDuration: m } = n, h = o(n, Me), g = v({}, n, {
1898
+ }), { children: r, className: i, component: a = "div", invisible: o = !1, open: s, slotProps: c = {}, slots: l = {}, transitionDuration: u, ...d } = n, f = {
1899
+ ...n,
1855
1900
  component: a,
1856
- invisible: l
1857
- }), _ = Ne(g), y = d.root ?? c.root;
1858
- return /*#__PURE__*/ (0, Y.jsx)(p, v({
1859
- in: u,
1860
- timeout: m
1861
- }, h, { children: /*#__PURE__*/ (0, Y.jsx)(Pe, v({ "aria-hidden": !0 }, y, {
1862
- as: f.root ?? s.Root ?? a,
1863
- className: O(_.root, i, y?.className),
1864
- ownerState: v({}, g, y?.ownerState),
1865
- classes: _,
1866
- ref: t,
1867
- children: r
1868
- })) }));
1901
+ invisible: o
1902
+ }, p = He(f), h = {
1903
+ component: a,
1904
+ slots: l,
1905
+ slotProps: c
1906
+ }, [g, _] = R("root", {
1907
+ elementType: Ue,
1908
+ externalForwardedProps: h,
1909
+ className: m(p.root, i),
1910
+ ownerState: f
1911
+ }), [v, y] = R("transition", {
1912
+ elementType: Be,
1913
+ externalForwardedProps: h,
1914
+ ownerState: f
1915
+ });
1916
+ return /*#__PURE__*/ (0, G.jsx)(v, {
1917
+ in: s,
1918
+ timeout: u,
1919
+ ...d,
1920
+ ...y,
1921
+ children: /*#__PURE__*/ (0, G.jsx)(g, {
1922
+ ..._,
1923
+ ref: t,
1924
+ children: r
1925
+ })
1926
+ });
1869
1927
  });
1870
- function Ie(e) {
1928
+ function Ge(e) {
1871
1929
  return e.substring(2).toLowerCase();
1872
1930
  }
1873
- function Le(e, t) {
1931
+ function Ke(e, t) {
1874
1932
  return t.documentElement.clientWidth < e.clientX || t.documentElement.clientHeight < e.clientY;
1875
1933
  }
1876
- function Re(e) {
1877
- let { children: t, disableReactTree: n = !1, mouseEvent: r = "onClick", onClickAway: i, touchEvent: a = "onTouchEnd" } = e, o = J.useRef(!1), s = J.useRef(null), c = J.useRef(!1), l = J.useRef(!1);
1878
- J.useEffect(() => (setTimeout(() => {
1934
+ function qe(e) {
1935
+ let { children: t, disableReactTree: n = !1, mouseEvent: r = "onClick", onClickAway: i, touchEvent: a = "onTouchEnd" } = e, o = W.useRef(!1), s = W.useRef(null), c = W.useRef(!1), l = W.useRef(!1);
1936
+ W.useEffect(() => (setTimeout(() => {
1879
1937
  c.current = !0;
1880
1938
  }, 0), () => {
1881
1939
  c.current = !1;
1882
1940
  }), []);
1883
- let u = P(V(t), s), d = I((e) => {
1941
+ let u = I(ae(t), s), d = z((e) => {
1884
1942
  let t = l.current;
1885
1943
  l.current = !1;
1886
- let r = F(s.current);
1887
- if (!c.current || !s.current || "clientX" in e && Le(e, r)) return;
1944
+ let r = L(s.current);
1945
+ if (!c.current || !s.current || "clientX" in e && Ke(e, r)) return;
1888
1946
  if (o.current) {
1889
1947
  o.current = !1;
1890
1948
  return;
1891
1949
  }
1892
1950
  let a;
1893
- a = e.composedPath ? e.composedPath().indexOf(s.current) > -1 : !r.documentElement.contains(e.target) || s.current.contains(e.target), !a && (n || !t) && i(e);
1951
+ a = e.composedPath ? e.composedPath().includes(s.current) : !ge(r.documentElement, e.target) || ge(s.current, e.target), !a && (n || !t) && i(e);
1894
1952
  }), f = (e) => (n) => {
1895
1953
  l.current = !0;
1896
1954
  let r = t.props[e];
1897
1955
  r && r(n);
1898
1956
  }, p = { ref: u };
1899
- return a !== !1 && (p[a] = f(a)), J.useEffect(() => {
1957
+ return a !== !1 && (p[a] = f(a)), W.useEffect(() => {
1900
1958
  if (a !== !1) {
1901
- let e = Ie(a), t = F(s.current), n = () => {
1959
+ let e = Ge(a), t = L(s.current), n = () => {
1902
1960
  o.current = !0;
1903
1961
  };
1904
1962
  return t.addEventListener(e, d), t.addEventListener("touchmove", n), () => {
1905
1963
  t.removeEventListener(e, d), t.removeEventListener("touchmove", n);
1906
1964
  };
1907
1965
  }
1908
- }, [d, a]), r !== !1 && (p[r] = f(r)), J.useEffect(() => {
1966
+ }, [d, a]), r !== !1 && (p[r] = f(r)), W.useEffect(() => {
1909
1967
  if (r !== !1) {
1910
- let e = Ie(r), t = F(s.current);
1968
+ let e = Ge(r), t = L(s.current);
1911
1969
  return t.addEventListener(e, d), () => {
1912
1970
  t.removeEventListener(e, d);
1913
1971
  };
1914
1972
  }
1915
- }, [d, r]), /*#__PURE__*/ (0, Y.jsx)(J.Fragment, { children: /*#__PURE__*/ J.cloneElement(t, p) });
1973
+ }, [d, r]), /*#__PURE__*/ W.cloneElement(t, p);
1916
1974
  }
1917
- function ze(e) {
1918
- let t = F(e);
1919
- return t.body === e ? q(e).innerWidth > t.documentElement.clientWidth : e.scrollHeight > e.clientHeight;
1975
+ function Je(e = window) {
1976
+ let t = e.document.documentElement.clientWidth;
1977
+ return e.innerWidth - t;
1920
1978
  }
1921
- function X(e, t) {
1979
+ function Ye(e) {
1980
+ let t = L(e);
1981
+ return e === t.body || e === t.documentElement ? U(e).innerWidth > t.documentElement.clientWidth : e.scrollHeight > e.clientHeight;
1982
+ }
1983
+ function q(e, t) {
1922
1984
  t ? e.setAttribute("aria-hidden", "true") : e.removeAttribute("aria-hidden");
1923
1985
  }
1924
- function Be(e) {
1925
- return parseInt(q(e).getComputedStyle(e).paddingRight, 10) || 0;
1986
+ function Xe(e) {
1987
+ return parseFloat(U(e).getComputedStyle(e).paddingRight) || 0;
1926
1988
  }
1927
- function Ve(e) {
1989
+ function Ze(e) {
1928
1990
  let t = [
1929
1991
  "TEMPLATE",
1930
1992
  "SCRIPT",
@@ -1940,49 +2002,58 @@ function Ve(e) {
1940
2002
  "SLOT",
1941
2003
  "SOURCE",
1942
2004
  "TRACK"
1943
- ].indexOf(e.tagName) !== -1, n = e.tagName === "INPUT" && e.getAttribute("type") === "hidden";
2005
+ ].includes(e.tagName), n = e.tagName === "INPUT" && e.getAttribute("type") === "hidden";
1944
2006
  return t || n;
1945
2007
  }
1946
- function He(e, t, n, r, i) {
1947
- let a = [
1948
- t,
1949
- n,
1950
- ...r
1951
- ];
2008
+ function Qe(e, t) {
2009
+ let n = /* @__PURE__ */ new Set(), r = e;
2010
+ for (; r && r !== t;) n.add(r), r = r.parentElement;
2011
+ return r === t ? n : /* @__PURE__ */ new Set();
2012
+ }
2013
+ function $e(e, t, n, r) {
1952
2014
  [].forEach.call(e.children, (e) => {
1953
- let t = a.indexOf(e) === -1, n = !Ve(e);
1954
- t && n && X(e, i);
2015
+ if (!(e === t || Ze(e))) {
2016
+ if (n.has(e)) {
2017
+ $e(e, t, n, r);
2018
+ return;
2019
+ }
2020
+ r.add(e);
2021
+ }
1955
2022
  });
1956
2023
  }
1957
- function Ue(e, t) {
1958
- let n = -1;
1959
- return e.some((e, r) => t(e) ? (n = r, !0) : !1), n;
2024
+ function et(e) {
2025
+ let { container: t, modals: n } = e, r = n[n.length - 1].modalRef, i = /* @__PURE__ */ new Set();
2026
+ $e(t, r, Qe(r, t), i), i.forEach((t) => {
2027
+ !e.hiddenSet.has(t) && t.getAttribute("aria-hidden") === "true" && i.delete(t);
2028
+ }), e.hiddenSet.forEach((e) => {
2029
+ i.has(e) || q(e, !1);
2030
+ }), i.forEach((e) => q(e, !0)), r && q(r, !1), e.hiddenSet = i;
1960
2031
  }
1961
- function We(e, t) {
2032
+ function tt(e, t) {
1962
2033
  let n = [], r = e.container;
1963
2034
  if (!t.disableScrollLock) {
1964
- if (ze(r)) {
1965
- let e = ge(F(r));
2035
+ let e;
2036
+ if (r.parentNode instanceof DocumentFragment) e = L(r).body;
2037
+ else {
2038
+ let t = r.parentElement, n = U(r);
2039
+ e = t?.nodeName === "HTML" && n.getComputedStyle(t).overflowY === "scroll" ? t : r;
2040
+ }
2041
+ if (Ye(e)) {
2042
+ let t = Je(U(e));
1966
2043
  n.push({
1967
- value: r.style.paddingRight,
2044
+ value: e.style.paddingRight,
1968
2045
  property: "padding-right",
1969
- el: r
1970
- }), r.style.paddingRight = `${Be(r) + e}px`;
1971
- let t = F(r).querySelectorAll(".mui-fixed");
1972
- [].forEach.call(t, (t) => {
2046
+ el: e
2047
+ }), e.style.paddingRight = `${Xe(e) + t}px`;
2048
+ let i = L(r).querySelectorAll(".mui-fixed");
2049
+ [].forEach.call(i, (e) => {
1973
2050
  n.push({
1974
- value: t.style.paddingRight,
2051
+ value: e.style.paddingRight,
1975
2052
  property: "padding-right",
1976
- el: t
1977
- }), t.style.paddingRight = `${Be(t) + e}px`;
2053
+ el: e
2054
+ }), e.style.paddingRight = `${Xe(e) + t}px`;
1978
2055
  });
1979
2056
  }
1980
- let e;
1981
- if (r.parentNode instanceof DocumentFragment) e = F(r).body;
1982
- else {
1983
- let t = r.parentElement, n = q(r);
1984
- e = t?.nodeName === "HTML" && n.getComputedStyle(t).overflowY === "scroll" ? t : r;
1985
- }
1986
2057
  n.push({
1987
2058
  value: e.style.overflow,
1988
2059
  property: "overflow",
@@ -2003,49 +2074,41 @@ function We(e, t) {
2003
2074
  });
2004
2075
  };
2005
2076
  }
2006
- function Ge(e) {
2007
- let t = [];
2008
- return [].forEach.call(e.children, (e) => {
2009
- e.getAttribute("aria-hidden") === "true" && t.push(e);
2010
- }), t;
2011
- }
2012
- var Ke = class {
2013
- constructor() {
2014
- this.containers = void 0, this.modals = void 0, this.modals = [], this.containers = [];
2015
- }
2077
+ var nt = class {
2078
+ containers = [];
2079
+ modals = [];
2016
2080
  add(e, t) {
2017
2081
  let n = this.modals.indexOf(e);
2018
2082
  if (n !== -1) return n;
2019
- n = this.modals.length, this.modals.push(e), e.modalRef && X(e.modalRef, !1);
2020
- let r = Ge(t);
2021
- He(t, e.mount, e.modalRef, r, !0);
2022
- let i = Ue(this.containers, (e) => e.container === t);
2023
- return i === -1 ? (this.containers.push({
2083
+ n = this.modals.length, this.modals.push(e), e.modalRef && q(e.modalRef, !1);
2084
+ let r = this.containers.findIndex((e) => e.container === t);
2085
+ if (r !== -1) return this.containers[r].modals.push(e), et(this.containers[r]), n;
2086
+ let i = {
2024
2087
  modals: [e],
2025
2088
  container: t,
2026
2089
  restore: null,
2027
- hiddenSiblings: r
2028
- }), n) : (this.containers[i].modals.push(e), n);
2090
+ hiddenSet: /* @__PURE__ */ new Set()
2091
+ };
2092
+ return this.containers.push(i), et(i), n;
2029
2093
  }
2030
2094
  mount(e, t) {
2031
- let n = Ue(this.containers, (t) => t.modals.indexOf(e) !== -1), r = this.containers[n];
2032
- r.restore ||= We(r, t);
2095
+ let n = this.containers.findIndex((t) => t.modals.includes(e)), r = this.containers[n];
2096
+ r.restore ||= tt(r, t);
2033
2097
  }
2034
2098
  remove(e, t = !0) {
2035
2099
  let n = this.modals.indexOf(e);
2036
2100
  if (n === -1) return n;
2037
- let r = Ue(this.containers, (t) => t.modals.indexOf(e) !== -1), i = this.containers[r];
2038
- if (i.modals.splice(i.modals.indexOf(e), 1), this.modals.splice(n, 1), i.modals.length === 0) i.restore && i.restore(), e.modalRef && X(e.modalRef, t), He(i.container, e.mount, e.modalRef, i.hiddenSiblings, !1), this.containers.splice(r, 1);
2039
- else {
2040
- let e = i.modals[i.modals.length - 1];
2041
- e.modalRef && X(e.modalRef, !1);
2042
- }
2043
- return n;
2101
+ let r = this.containers.findIndex((t) => t.modals.includes(e)), i = this.containers[r];
2102
+ return i.modals.splice(i.modals.indexOf(e), 1), this.modals.splice(n, 1), i.modals.length === 0 ? (i.restore && i.restore(), e.modalRef && q(e.modalRef, t), i.hiddenSet.forEach((e) => q(e, !1)), i.hiddenSet.clear(), this.containers.splice(r, 1)) : (et(i), e.modalRef && q(e.modalRef, t)), n;
2044
2103
  }
2045
2104
  isTopModal(e) {
2046
2105
  return this.modals.length > 0 && this.modals[this.modals.length - 1] === e;
2047
2106
  }
2048
- }, qe = [
2107
+ }, rt = "data-mui-focusable";
2108
+ function it(e) {
2109
+ return e ? e.hasAttribute("data-mui-focusable") ? e : e.querySelector(`[${rt}]`) : null;
2110
+ }
2111
+ var at = [
2049
2112
  "input",
2050
2113
  "select",
2051
2114
  "textarea",
@@ -2056,66 +2119,84 @@ var Ke = class {
2056
2119
  "video[controls]",
2057
2120
  "[contenteditable]:not([contenteditable=\"false\"])"
2058
2121
  ].join(",");
2059
- function Je(e) {
2122
+ function ot(e) {
2060
2123
  let t = parseInt(e.getAttribute("tabindex") || "", 10);
2061
2124
  return Number.isNaN(t) ? e.contentEditable === "true" || (e.nodeName === "AUDIO" || e.nodeName === "VIDEO" || e.nodeName === "DETAILS") && e.getAttribute("tabindex") === null ? 0 : e.tabIndex : t;
2062
2125
  }
2063
- function Ye(e) {
2126
+ function st(e) {
2064
2127
  if (e.tagName !== "INPUT" || e.type !== "radio" || !e.name) return !1;
2065
2128
  let t = (t) => e.ownerDocument.querySelector(`input[type="radio"]${t}`), n = t(`[name="${e.name}"]:checked`);
2066
2129
  return n ||= t(`[name="${e.name}"]`), n !== e;
2067
2130
  }
2068
- function Xe(e) {
2069
- return !(e.disabled || e.tagName === "INPUT" && e.type === "hidden" || Ye(e));
2131
+ function ct(e) {
2132
+ return !(e.disabled || e.tagName === "INPUT" && e.type === "hidden" || st(e));
2070
2133
  }
2071
- function Ze(e) {
2134
+ function lt(e) {
2072
2135
  let t = [], n = [];
2073
- return Array.from(e.querySelectorAll(qe)).forEach((e, r) => {
2074
- let i = Je(e);
2075
- i === -1 || !Xe(e) || (i === 0 ? t.push(e) : n.push({
2136
+ return Array.from(e.querySelectorAll(at)).forEach((e, r) => {
2137
+ let i = ot(e);
2138
+ i === -1 || !ct(e) || (i === 0 ? t.push(e) : n.push({
2076
2139
  documentOrder: r,
2077
2140
  tabIndex: i,
2078
2141
  node: e
2079
2142
  }));
2080
2143
  }), n.sort((e, t) => e.tabIndex === t.tabIndex ? e.documentOrder - t.documentOrder : e.tabIndex - t.tabIndex).map((e) => e.node).concat(t);
2081
2144
  }
2082
- function Qe() {
2145
+ function ut() {
2083
2146
  return !0;
2084
2147
  }
2085
- function $e(e) {
2086
- let { children: t, disableAutoFocus: n = !1, disableEnforceFocus: r = !1, disableRestoreFocus: i = !1, getTabbable: a = Ze, isEnabled: o = Qe, open: s } = e, c = J.useRef(!1), l = J.useRef(null), u = J.useRef(null), d = J.useRef(null), f = J.useRef(null), p = J.useRef(!1), m = J.useRef(null), h = P(V(t), m), g = J.useRef(null);
2087
- J.useEffect(() => {
2148
+ function dt(e) {
2149
+ let { children: t, disableAutoFocus: n = !1, disableEnforceFocus: r = !1, disableRestoreFocus: i = !1, getTabbable: a = lt, isEnabled: o = ut, open: s } = e, c = W.useRef(!1), l = W.useRef(null), u = W.useRef(null), d = W.useRef(null), f = W.useRef(null), p = W.useRef(!1), m = W.useRef(null), h = I(ae(t), m), g = W.useRef(null);
2150
+ W.useEffect(() => {
2088
2151
  !s || !m.current || (p.current = !n);
2089
- }, [n, s]), J.useEffect(() => {
2090
- if (!s || !m.current) return;
2091
- let e = F(m.current);
2092
- return m.current.contains(e.activeElement) || (m.current.hasAttribute("tabIndex") || m.current.setAttribute("tabIndex", "-1"), p.current && m.current.focus()), () => {
2093
- i || (d.current && d.current.focus && (c.current = !0, d.current.focus()), d.current = null);
2152
+ }, [n, s]), W.useEffect(() => {
2153
+ if (c.current = !1, !s || !m.current) return;
2154
+ let e = B(L(m.current)), t = it(m.current) ?? m.current;
2155
+ return V(m.current, e) || (t.hasAttribute("tabIndex") || t.setAttribute("tabIndex", "-1"), p.current && t.focus()), () => {
2156
+ !i && d.current && (c.current = !0, d.current.focus(), d.current = null);
2094
2157
  };
2095
- }, [s]), J.useEffect(() => {
2158
+ }, [s]), W.useEffect(() => {
2096
2159
  if (!s || !m.current) return;
2097
- let e = F(m.current), t = (t) => {
2098
- g.current = t, !(r || !o() || t.key !== "Tab") && e.activeElement === m.current && t.shiftKey && (c.current = !0, u.current && u.current.focus());
2160
+ let e = L(m.current), t = (t) => {
2161
+ if (g.current = t, r || !o() || t.key !== "Tab") return;
2162
+ let n = m.current, i = B(e);
2163
+ if (n === null) return;
2164
+ let s = it(n);
2165
+ if (i === n || i === s) {
2166
+ let e = a(n);
2167
+ if (e.length === 0) return;
2168
+ t.preventDefault(), t.shiftKey ? e[e.length - 1].focus() : e[0].focus();
2169
+ return;
2170
+ }
2171
+ if (V(n, i)) {
2172
+ let e = a(n), r = e.indexOf(i);
2173
+ if (r === -1 || !e.some((e) => ot(e) > 0)) return;
2174
+ t.preventDefault();
2175
+ let o = 0;
2176
+ o = t.shiftKey ? r <= 0 ? e.length - 1 : r - 1 : r === e.length - 1 ? 0 : r + 1, e[o].focus();
2177
+ }
2099
2178
  }, n = () => {
2100
2179
  let t = m.current;
2101
2180
  if (t === null) return;
2181
+ let n = B(e);
2102
2182
  if (!e.hasFocus() || !o() || c.current) {
2103
2183
  c.current = !1;
2104
2184
  return;
2105
2185
  }
2106
- if (t.contains(e.activeElement) || r && e.activeElement !== l.current && e.activeElement !== u.current) return;
2107
- if (e.activeElement !== f.current) f.current = null;
2186
+ if (V(t, n) || r && n !== l.current && n !== u.current) return;
2187
+ if (n !== f.current) f.current = null;
2108
2188
  else if (f.current !== null) return;
2109
2189
  if (!p.current) return;
2110
- let n = [];
2111
- if ((e.activeElement === l.current || e.activeElement === u.current) && (n = a(m.current)), n.length > 0) {
2112
- let e = !!(g.current?.shiftKey && g.current?.key === "Tab"), t = n[0], r = n[n.length - 1];
2113
- typeof t != "string" && typeof r != "string" && (e ? r.focus() : t.focus());
2190
+ let i = [];
2191
+ if ((n === l.current || n === u.current) && (i = a(m.current)), i.length > 0) {
2192
+ let e = !!(g.current?.shiftKey && g.current?.key === "Tab"), t = i[0], n = i[i.length - 1];
2193
+ typeof t != "string" && typeof n != "string" && (e ? n.focus() : t.focus());
2114
2194
  } else t.focus();
2115
2195
  };
2116
2196
  e.addEventListener("focusin", n), e.addEventListener("keydown", t, !0);
2117
2197
  let i = setInterval(() => {
2118
- e.activeElement && e.activeElement.tagName === "BODY" && n();
2198
+ let t = B(e);
2199
+ t && t.tagName === "BODY" && n();
2119
2200
  }, 50);
2120
2201
  return () => {
2121
2202
  clearInterval(i), e.removeEventListener("focusin", n), e.removeEventListener("keydown", t, !0);
@@ -2135,18 +2216,18 @@ function $e(e) {
2135
2216
  }, v = (e) => {
2136
2217
  d.current === null && (d.current = e.relatedTarget), p.current = !0;
2137
2218
  };
2138
- return /*#__PURE__*/ (0, Y.jsxs)(J.Fragment, { children: [
2139
- /*#__PURE__*/ (0, Y.jsx)("div", {
2219
+ return /*#__PURE__*/ (0, G.jsxs)(W.Fragment, { children: [
2220
+ /*#__PURE__*/ (0, G.jsx)("div", {
2140
2221
  tabIndex: s ? 0 : -1,
2141
2222
  onFocus: v,
2142
2223
  ref: l,
2143
2224
  "data-testid": "sentinelStart"
2144
2225
  }),
2145
- /*#__PURE__*/ J.cloneElement(t, {
2226
+ /*#__PURE__*/ W.cloneElement(t, {
2146
2227
  ref: h,
2147
2228
  onFocus: _
2148
2229
  }),
2149
- /*#__PURE__*/ (0, Y.jsx)("div", {
2230
+ /*#__PURE__*/ (0, G.jsx)("div", {
2150
2231
  tabIndex: s ? 0 : -1,
2151
2232
  onFocus: v,
2152
2233
  ref: u,
@@ -2154,188 +2235,204 @@ function $e(e) {
2154
2235
  })
2155
2236
  ] });
2156
2237
  }
2157
- T();
2158
- function et(e) {
2238
+ function ft(e) {
2159
2239
  return typeof e == "function" ? e() : e;
2160
2240
  }
2161
- function tt(e) {
2241
+ function pt(e) {
2162
2242
  return e ? e.props.hasOwnProperty("in") : !1;
2163
2243
  }
2164
- var nt = new Ke();
2165
- function rt(e) {
2166
- let { container: t, disableEscapeKeyDown: n = !1, disableScrollLock: r = !1, manager: i = nt, closeAfterTransition: a = !1, onTransitionEnter: o, onTransitionExited: s, children: c, onClose: l, open: u, rootRef: d } = e, f = J.useRef({}), p = J.useRef(null), m = J.useRef(null), h = P(m, d), [g, _] = J.useState(!u), y = tt(c), b = !0;
2167
- (e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (b = !1);
2168
- let x = () => F(p.current), S = () => (f.current.modalRef = m.current, f.current.mount = p.current, f.current), C = () => {
2169
- i.mount(S(), { disableScrollLock: r }), m.current && (m.current.scrollTop = 0);
2170
- }, w = I(() => {
2171
- let e = et(t) || x().body;
2172
- i.add(S(), e), m.current && C();
2173
- }), T = J.useCallback(() => i.isTopModal(S()), [i]), E = I((e) => {
2174
- p.current = e, e && (u && T() ? C() : m.current && X(m.current, b));
2175
- }), D = J.useCallback(() => {
2176
- i.remove(S(), b);
2177
- }, [b, i]);
2178
- J.useEffect(() => () => {
2179
- D();
2180
- }, [D]), J.useEffect(() => {
2181
- u ? w() : (!y || !a) && D();
2244
+ var mt = () => {}, J = new nt();
2245
+ function ht(e) {
2246
+ let { container: t, disableScrollLock: n = !1, closeAfterTransition: r = !1, onTransitionEnter: i, onTransitionExited: a, children: o, onClose: s, open: c, rootRef: l } = e, u = W.useRef({}), d = W.useRef(null), f = W.useRef(null), p = W.useRef(null), m = I(p, l), [h, g] = W.useState(!c), _ = pt(o), v = !0;
2247
+ (e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (v = !1);
2248
+ let y = () => L(d.current), b = () => (u.current.modalRef = p.current, u.current.mount = d.current, u.current), x = () => {
2249
+ J.mount(b(), { disableScrollLock: n }), p.current && (p.current.scrollTop = 0);
2250
+ }, S = z(() => {
2251
+ let e = ft(t) || y().body;
2252
+ J.add(b(), e), p.current && x();
2253
+ }), C = () => J.isTopModal(b()), w = z((e) => {
2254
+ d.current = e, e && (f.current = e, c && C() ? x() : p.current && q(p.current, v));
2255
+ }), T = W.useCallback(() => {
2256
+ J.remove(b(), v);
2257
+ }, [v]);
2258
+ W.useEffect(() => () => {
2259
+ T();
2260
+ }, [T]), W.useEffect(() => {
2261
+ c ? S() : (!_ || !r) && T();
2182
2262
  }, [
2183
- u,
2184
- D,
2185
- y,
2186
- a,
2187
- w
2263
+ c,
2264
+ T,
2265
+ _,
2266
+ r,
2267
+ S
2188
2268
  ]);
2189
- let O = (e) => (t) => {
2190
- var r;
2191
- (r = e.onKeyDown) == null || r.call(e, t), !(t.key !== "Escape" || t.which === 229 || !T()) && (n || (t.stopPropagation(), l && l(t, "escapeKeyDown")));
2192
- }, k = (e) => (t) => {
2193
- var n;
2194
- (n = e.onClick) == null || n.call(e, t), t.target === t.currentTarget && l && l(t, "backdropClick");
2269
+ let E = (e) => (t) => {
2270
+ e.onKeyDown?.(t), !(t.key !== "Escape" || t.which === 229 || !C()) && (t.stopPropagation(), s && s(t, "escapeKeyDown"));
2271
+ }, D = (e) => (t) => {
2272
+ e.onClick?.(t), t.target === t.currentTarget && s && s(t, "backdropClick");
2195
2273
  };
2196
2274
  return {
2197
2275
  getRootProps: (t = {}) => {
2198
- let n = L(e);
2276
+ let n = ne(e);
2199
2277
  delete n.onTransitionEnter, delete n.onTransitionExited;
2200
- let r = v({}, n, t);
2201
- return v({ role: "presentation" }, r, {
2202
- onKeyDown: O(r),
2203
- ref: h
2204
- });
2278
+ let r = {
2279
+ ...n,
2280
+ ...t
2281
+ };
2282
+ return {
2283
+ role: "presentation",
2284
+ ...r,
2285
+ onKeyDown: E(r),
2286
+ ref: m
2287
+ };
2205
2288
  },
2206
2289
  getBackdropProps: (e = {}) => {
2207
2290
  let t = e;
2208
- return v({ "aria-hidden": !0 }, t, {
2209
- onClick: k(t),
2210
- open: u
2211
- });
2291
+ return {
2292
+ "aria-hidden": !0,
2293
+ ...t,
2294
+ onClick: D(t),
2295
+ open: c
2296
+ };
2212
2297
  },
2213
2298
  getTransitionProps: () => ({
2214
- onEnter: me(() => {
2215
- _(!1), o && o();
2216
- }, c?.props.onEnter),
2217
- onExited: me(() => {
2218
- _(!0), s && s(), a && D();
2219
- }, c?.props.onExited)
2299
+ onEnter: Ae(() => {
2300
+ g(!1), i && i();
2301
+ }, o?.props.onEnter ?? mt),
2302
+ onExited: Ae(() => {
2303
+ g(!0), a && a(), r && T();
2304
+ }, o?.props.onExited ?? mt)
2220
2305
  }),
2221
- rootRef: h,
2222
- portalRef: E,
2223
- isTopModal: T,
2224
- exited: g,
2225
- hasTransition: y
2306
+ rootRef: m,
2307
+ portalRef: w,
2308
+ portalContainer: !c && _ && !h ? f.current ?? t : t,
2309
+ isTopModal: C,
2310
+ exited: h,
2311
+ hasTransition: _
2226
2312
  };
2227
2313
  }
2228
- function it(e) {
2229
- return N("MuiModal", e);
2314
+ function gt(e) {
2315
+ return F("MuiModal", e);
2230
2316
  }
2231
- A("MuiModal", [
2317
+ T("MuiModal", [
2232
2318
  "root",
2233
2319
  "hidden",
2234
2320
  "backdrop"
2235
- ]), p(), T();
2236
- var at = /* @__PURE__ */ "BackdropComponent.BackdropProps.classes.className.closeAfterTransition.children.container.component.components.componentsProps.disableAutoFocus.disableEnforceFocus.disableEscapeKeyDown.disablePortal.disableRestoreFocus.disableScrollLock.hideBackdrop.keepMounted.onBackdropClick.onClose.onTransitionEnter.onTransitionExited.open.slotProps.slots.theme".split("."), ot = (e) => {
2321
+ ]);
2322
+ var _t = (e) => {
2237
2323
  let { open: t, exited: n, classes: r } = e;
2238
- return D({
2324
+ return A({
2239
2325
  root: ["root", !t && n && "hidden"],
2240
2326
  backdrop: ["backdrop"]
2241
- }, it, r);
2242
- }, st = j("div", {
2327
+ }, gt, r);
2328
+ }, vt = D("div", {
2243
2329
  name: "MuiModal",
2244
2330
  slot: "Root",
2245
2331
  overridesResolver: (e, t) => {
2246
2332
  let { ownerState: n } = e;
2247
2333
  return [t.root, !n.open && n.exited && t.hidden];
2248
2334
  }
2249
- })(({ theme: e, ownerState: t }) => v({
2335
+ })(P(({ theme: e }) => ({
2250
2336
  position: "fixed",
2251
2337
  zIndex: (e.vars || e).zIndex.modal,
2252
2338
  right: 0,
2253
2339
  bottom: 0,
2254
2340
  top: 0,
2255
- left: 0
2256
- }, !t.open && t.exited && { visibility: "hidden" })), ct = j(Fe, {
2341
+ left: 0,
2342
+ variants: [{
2343
+ props: ({ ownerState: e }) => !e.open && e.exited,
2344
+ style: { visibility: "hidden" }
2345
+ }]
2346
+ }))), yt = D(We, {
2257
2347
  name: "MuiModal",
2258
- slot: "Backdrop",
2259
- overridesResolver: (e, t) => t.backdrop
2260
- })({ zIndex: -1 }), lt = /*#__PURE__*/ J.forwardRef(function(e, t) {
2261
- let n = M({
2348
+ slot: "Backdrop"
2349
+ })({ zIndex: -1 }), bt = /*#__PURE__*/ W.forwardRef(function(e, t) {
2350
+ let n = k({
2262
2351
  name: "MuiModal",
2263
2352
  props: e
2264
- }), { BackdropComponent: r = ct, BackdropProps: i, className: a, closeAfterTransition: s = !1, children: c, container: l, component: u, components: d = {}, componentsProps: f = {}, disableAutoFocus: p = !1, disableEnforceFocus: m = !1, disableEscapeKeyDown: h = !1, disablePortal: g = !1, disableRestoreFocus: _ = !1, disableScrollLock: y = !1, hideBackdrop: b = !1, keepMounted: x = !1, onBackdropClick: S, open: C, slotProps: w, slots: T } = n, E = o(n, at), D = v({}, n, {
2265
- closeAfterTransition: s,
2266
- disableAutoFocus: p,
2267
- disableEnforceFocus: m,
2268
- disableEscapeKeyDown: h,
2269
- disablePortal: g,
2270
- disableRestoreFocus: _,
2271
- disableScrollLock: y,
2272
- hideBackdrop: b,
2273
- keepMounted: x
2274
- }), { getRootProps: k, getBackdropProps: A, getTransitionProps: j, portalRef: N, isTopModal: P, exited: F, hasTransition: ee } = rt(v({}, D, { rootRef: t })), I = v({}, D, { exited: F }), L = ot(I), z = {};
2275
- if (c.props.tabIndex === void 0 && (z.tabIndex = "-1"), ee) {
2276
- let { onEnter: e, onExited: t } = j();
2277
- z.onEnter = e, z.onExited = t;
2353
+ }), { classes: r, className: i, closeAfterTransition: a = !1, children: o, container: s, component: c, disableAutoFocus: l = !1, disableEnforceFocus: u = !1, disablePortal: d = !1, disableRestoreFocus: f = !1, disableScrollLock: p = !1, hideBackdrop: h = !1, keepMounted: g = !1, onClose: _, onTransitionEnter: v, onTransitionExited: y, open: b, slotProps: x = {}, slots: S = {}, theme: C, ...w } = n, T = {
2354
+ ...n,
2355
+ closeAfterTransition: a,
2356
+ disableAutoFocus: l,
2357
+ disableEnforceFocus: u,
2358
+ disablePortal: d,
2359
+ disableRestoreFocus: f,
2360
+ disableScrollLock: p,
2361
+ hideBackdrop: h,
2362
+ keepMounted: g
2363
+ }, { getRootProps: E, getBackdropProps: D, getTransitionProps: ee, portalRef: O, portalContainer: A, isTopModal: j, exited: M, hasTransition: N } = ht({
2364
+ ...T,
2365
+ rootRef: t
2366
+ }), P = {
2367
+ ...T,
2368
+ exited: M
2369
+ }, F = _t(P), I = {};
2370
+ if (o.props.tabIndex === void 0 && (I.tabIndex = "-1"), N) {
2371
+ let { onEnter: e, onExited: t } = ee();
2372
+ I.onEnter = e, I.onExited = t;
2278
2373
  }
2279
- let B = T?.root ?? d.Root ?? st, V = T?.backdrop ?? d.Backdrop ?? r, H = w?.root ?? f.root, U = w?.backdrop ?? f.backdrop, W = R({
2280
- elementType: B,
2281
- externalSlotProps: H,
2282
- externalForwardedProps: E,
2283
- getSlotProps: k,
2284
- additionalProps: {
2285
- ref: t,
2286
- as: u
2287
- },
2288
- ownerState: I,
2289
- className: O(a, H?.className, L?.root, !I.open && I.exited && L?.hidden)
2290
- }), G = R({
2291
- elementType: V,
2292
- externalSlotProps: U,
2293
- additionalProps: i,
2294
- getSlotProps: (e) => A(v({}, e, { onClick: (t) => {
2295
- S && S(t), e != null && e.onClick && e.onClick(t);
2296
- } })),
2297
- className: O(U?.className, i?.className, L?.backdrop),
2298
- ownerState: I
2374
+ let te = {
2375
+ slots: S,
2376
+ slotProps: x
2377
+ }, [ne, L] = R("root", {
2378
+ ref: t,
2379
+ elementType: vt,
2380
+ externalForwardedProps: {
2381
+ ...te,
2382
+ ...w,
2383
+ component: c
2384
+ },
2385
+ getSlotProps: E,
2386
+ ownerState: P,
2387
+ className: m(i, F?.root, !P.open && P.exited && F?.hidden)
2388
+ }), [re, z] = R("backdrop", {
2389
+ elementType: yt,
2390
+ externalForwardedProps: te,
2391
+ shouldForwardComponentProp: !0,
2392
+ getSlotProps: (e) => D({
2393
+ ...e,
2394
+ onClick: (t) => {
2395
+ e?.onClick && e.onClick(t);
2396
+ }
2397
+ }),
2398
+ className: F?.backdrop,
2399
+ ownerState: P
2299
2400
  });
2300
- return !x && !C && (!ee || F) ? null : /*#__PURE__*/ (0, Y.jsx)(te, {
2301
- ref: N,
2302
- container: l,
2303
- disablePortal: g,
2304
- children: /*#__PURE__*/ (0, Y.jsxs)(B, v({}, W, { children: [!b && r ? /*#__PURE__*/ (0, Y.jsx)(V, v({}, G)) : null, /*#__PURE__*/ (0, Y.jsx)($e, {
2305
- disableEnforceFocus: m,
2306
- disableAutoFocus: p,
2307
- disableRestoreFocus: _,
2308
- isEnabled: P,
2309
- open: C,
2310
- children: /*#__PURE__*/ J.cloneElement(c, z)
2311
- })] }))
2401
+ return !g && !b && (!N || M) ? null : /*#__PURE__*/ (0, G.jsx)(de, {
2402
+ ref: O,
2403
+ container: A,
2404
+ disablePortal: d,
2405
+ children: /*#__PURE__*/ (0, G.jsxs)(ne, {
2406
+ ...L,
2407
+ children: [h ? null : /*#__PURE__*/ (0, G.jsx)(re, { ...z }), /*#__PURE__*/ (0, G.jsx)(dt, {
2408
+ disableEnforceFocus: u,
2409
+ disableAutoFocus: l,
2410
+ disableRestoreFocus: f,
2411
+ isEnabled: j,
2412
+ open: b,
2413
+ children: /*#__PURE__*/ W.cloneElement(o, I)
2414
+ })]
2415
+ })
2312
2416
  });
2313
- }), ut = /*#__PURE__*/ J.createContext({});
2314
- function dt(e) {
2315
- return N("MuiList", e);
2417
+ }), xt = /*#__PURE__*/ W.createContext({});
2418
+ function St(e) {
2419
+ return F("MuiList", e);
2316
2420
  }
2317
- A("MuiList", [
2421
+ T("MuiList", [
2318
2422
  "root",
2319
2423
  "padding",
2320
2424
  "dense",
2321
2425
  "subheader"
2322
- ]), p(), T();
2323
- var ft = [
2324
- "children",
2325
- "className",
2326
- "component",
2327
- "dense",
2328
- "disablePadding",
2329
- "subheader"
2330
- ], pt = (e) => {
2426
+ ]);
2427
+ var Ct = (e) => {
2331
2428
  let { classes: t, disablePadding: n, dense: r, subheader: i } = e;
2332
- return D({ root: [
2429
+ return A({ root: [
2333
2430
  "root",
2334
2431
  !n && "padding",
2335
2432
  r && "dense",
2336
2433
  i && "subheader"
2337
- ] }, dt, t);
2338
- }, mt = j("ul", {
2434
+ ] }, St, t);
2435
+ }, wt = D("ul", {
2339
2436
  name: "MuiList",
2340
2437
  slot: "Root",
2341
2438
  overridesResolver: (e, t) => {
@@ -2347,175 +2444,432 @@ var ft = [
2347
2444
  n.subheader && t.subheader
2348
2445
  ];
2349
2446
  }
2350
- })(({ ownerState: e }) => v({
2447
+ })({
2351
2448
  listStyle: "none",
2352
2449
  margin: 0,
2353
2450
  padding: 0,
2354
- position: "relative"
2355
- }, !e.disablePadding && {
2356
- paddingTop: 8,
2357
- paddingBottom: 8
2358
- }, e.subheader && { paddingTop: 0 })), ht = /*#__PURE__*/ J.forwardRef(function(e, t) {
2359
- let n = M({
2451
+ position: "relative",
2452
+ variants: [{
2453
+ props: ({ ownerState: e }) => !e.disablePadding,
2454
+ style: {
2455
+ paddingTop: 8,
2456
+ paddingBottom: 8
2457
+ }
2458
+ }, {
2459
+ props: ({ ownerState: e }) => e.subheader,
2460
+ style: {
2461
+ paddingTop: 0,
2462
+ isolation: "isolate"
2463
+ }
2464
+ }]
2465
+ }), Tt = /*#__PURE__*/ W.forwardRef(function(e, t) {
2466
+ let n = k({
2360
2467
  props: e,
2361
2468
  name: "MuiList"
2362
- }), { children: r, className: i, component: a = "ul", dense: s = !1, disablePadding: c = !1, subheader: l } = n, u = o(n, ft), d = J.useMemo(() => ({ dense: s }), [s]), f = v({}, n, {
2469
+ }), { children: r, className: i, component: a = "ul", dense: o = !1, disablePadding: s = !1, subheader: c, ...l } = n, u = W.useMemo(() => ({ dense: o }), [o]), d = {
2470
+ ...n,
2363
2471
  component: a,
2364
- dense: s,
2365
- disablePadding: c
2366
- }), p = pt(f);
2367
- return /*#__PURE__*/ (0, Y.jsx)(ut.Provider, {
2368
- value: d,
2369
- children: /*#__PURE__*/ (0, Y.jsxs)(mt, v({
2472
+ dense: o,
2473
+ disablePadding: s
2474
+ }, f = Ct(d);
2475
+ return /*#__PURE__*/ (0, G.jsx)(xt.Provider, {
2476
+ value: u,
2477
+ children: /*#__PURE__*/ (0, G.jsxs)(wt, {
2370
2478
  as: a,
2371
- className: O(p.root, i),
2479
+ className: m(f.root, i),
2372
2480
  ref: t,
2373
- ownerState: f
2374
- }, u, { children: [l, r] }))
2481
+ ownerState: d,
2482
+ ...l,
2483
+ children: [c, r]
2484
+ })
2375
2485
  });
2376
- }), gt = ge;
2377
- T(), p();
2378
- var _t = [
2379
- "actions",
2380
- "autoFocus",
2381
- "autoFocusItem",
2382
- "children",
2383
- "className",
2384
- "disabledItemsFocusable",
2385
- "disableListWrap",
2386
- "onKeyDown",
2387
- "variant"
2486
+ }), Et = /*#__PURE__*/ W.createContext(void 0);
2487
+ function Dt() {
2488
+ let e = W.useContext(Et);
2489
+ if (e === void 0) throw Error("MUI: RovingTabIndexContext is missing. Roving tab index items must be placed within a roving tab index provider.");
2490
+ return e;
2491
+ }
2492
+ var Ot = Object.is;
2493
+ function kt(e, t) {
2494
+ if (e === t) return !0;
2495
+ if (!(e instanceof Object) || !(t instanceof Object)) return !1;
2496
+ let n = 0, r = 0;
2497
+ for (let r in e) if (n += 1, !Ot(e[r], t[r]) || !(r in t)) return !1;
2498
+ for (let e in t) r += 1;
2499
+ return n === r;
2500
+ }
2501
+ var At = [
2502
+ "ArrowRight",
2503
+ "ArrowLeft",
2504
+ "ArrowUp",
2505
+ "ArrowDown",
2506
+ "Home",
2507
+ "End"
2388
2508
  ];
2389
- function vt(e, t, n) {
2390
- return e === t ? e.firstChild : t && t.nextElementSibling ? t.nextElementSibling : n ? null : e.firstChild;
2509
+ function jt(e) {
2510
+ let { activeItemId: t, getDefaultActiveItemId: n, orientation: r, isRtl: i = !1, isItemFocusable: a = X, wrap: o = !0 } = e, [s, c] = W.useState(t), [l, u] = W.useState(t), d = s;
2511
+ t !== l && (u(t), t !== void 0 && t !== s && (d = t, c(t)));
2512
+ let f = W.useRef(null), p = W.useRef(/* @__PURE__ */ new Map()), [m, h] = W.useState(0), g = W.useMemo(() => Ht(p.current), [m]), _ = Nt(d, g, a, n), v = W.useRef(_);
2513
+ v.current = _;
2514
+ let y = W.useCallback(() => {
2515
+ let e = Ht(p.current);
2516
+ return zt(e, Nt(v.current, e, a, n));
2517
+ }, [n, a]), b = W.useCallback(() => p.current, []), x = z((e) => {
2518
+ kt(p.current.get(e.id) ?? null, e) || (p.current.set(e.id, e), h((e) => e + 1));
2519
+ }), S = z((e) => {
2520
+ p.current.delete(e) && h((e) => e + 1);
2521
+ }), C = z((e) => {
2522
+ c(e);
2523
+ }), w = W.useCallback((e) => v.current === e, []), T = W.useCallback((e, t, n, r) => {
2524
+ let i = Lt(Y(p.current), e, t, n, r ?? a);
2525
+ return i ? (i.element?.focus(), c(i.id), i) : null;
2526
+ }, [a]), E = W.useCallback((e, t, n) => ({
2527
+ onFocus: (e) => {
2528
+ t?.(e);
2529
+ let n = Y(p.current), r = Vt(n, e.target);
2530
+ r !== -1 && c(n[r].id);
2531
+ },
2532
+ onKeyDown: (e) => {
2533
+ if (n?.(e), e.defaultPrevented || e.altKey || e.shiftKey || e.ctrlKey || e.metaKey || !At.includes(e.key)) return;
2534
+ let t = r === "horizontal" ? "ArrowLeft" : "ArrowUp", a = r === "horizontal" ? "ArrowRight" : "ArrowDown";
2535
+ r === "horizontal" && i && (t = "ArrowRight", a = "ArrowLeft");
2536
+ let s = Y(p.current), c = he(L(f.current)), l = c === f.current, u = It(s, c, v.current), d = "next";
2537
+ switch (e.key) {
2538
+ case t:
2539
+ d = "previous", e.preventDefault(), l && (u = s.length);
2540
+ break;
2541
+ case a:
2542
+ e.preventDefault(), l && (u = -1);
2543
+ break;
2544
+ case "Home":
2545
+ e.preventDefault(), u = -1;
2546
+ break;
2547
+ case "End":
2548
+ e.preventDefault(), d = "previous", u = s.length;
2549
+ break;
2550
+ default: return;
2551
+ }
2552
+ T(u, d, o);
2553
+ },
2554
+ ref: Kt(e, (e) => {
2555
+ f.current = e;
2556
+ })
2557
+ }), [
2558
+ T,
2559
+ i,
2560
+ r,
2561
+ o
2562
+ ]), D = W.useCallback((e) => {
2563
+ let t = Y(p.current), n = he(L(f.current)), r = n === f.current ? -1 : It(t, n, v.current);
2564
+ return T(r, "next", !0, e)?.id ?? null;
2565
+ }, [T]);
2566
+ return W.useMemo(() => ({
2567
+ activeItemId: _,
2568
+ focusNext: D,
2569
+ getActiveItem: y,
2570
+ getContainerProps: E,
2571
+ getItemMap: b,
2572
+ isItemActive: w,
2573
+ registerItem: x,
2574
+ setActiveItemId: C,
2575
+ unregisterItem: S
2576
+ }), [
2577
+ _,
2578
+ D,
2579
+ y,
2580
+ E,
2581
+ b,
2582
+ w,
2583
+ x,
2584
+ C,
2585
+ S
2586
+ ]);
2391
2587
  }
2392
- function yt(e, t, n) {
2393
- return e === t ? n ? e.firstChild : e.lastChild : t && t.previousElementSibling ? t.previousElementSibling : n ? null : e.lastChild;
2588
+ function Mt(e) {
2589
+ let { activeItemId: t, registerItem: n, unregisterItem: r } = Dt(), i = W.useRef(null), a = W.useMemo(() => ({
2590
+ disabled: e.disabled ?? !1,
2591
+ element: null,
2592
+ focusableWhenDisabled: e.focusableWhenDisabled ?? !1,
2593
+ id: e.id,
2594
+ selected: e.selected ?? !1,
2595
+ textValue: e.textValue
2596
+ }), [
2597
+ e.disabled,
2598
+ e.focusableWhenDisabled,
2599
+ e.id,
2600
+ e.selected,
2601
+ e.textValue
2602
+ ]), o = W.useRef(a);
2603
+ o.current = a;
2604
+ let s = W.useCallback((t) => {
2605
+ if (i.current = t, t == null) {
2606
+ queueMicrotask(() => {
2607
+ i.current ?? r(e.id);
2608
+ });
2609
+ return;
2610
+ }
2611
+ n({
2612
+ ...o.current,
2613
+ element: t
2614
+ });
2615
+ }, [
2616
+ e.id,
2617
+ n,
2618
+ r
2619
+ ]), c = I(e.ref, s);
2620
+ return y(() => {
2621
+ i.current && n({
2622
+ ...a,
2623
+ element: i.current
2624
+ });
2625
+ }, [a, n]), y(() => {
2626
+ let t = e.id;
2627
+ return () => {
2628
+ r(t);
2629
+ };
2630
+ }, [e.id, r]), {
2631
+ ref: c,
2632
+ tabIndex: t === e.id ? 0 : -1
2633
+ };
2394
2634
  }
2395
- function bt(e, t) {
2396
- if (t === void 0) return !0;
2397
- let n = e.innerText;
2398
- return n === void 0 && (n = e.textContent), n = n.trim().toLowerCase(), n.length === 0 ? !1 : t.repeating ? n[0] === t.keys[0] : n.indexOf(t.keys.join("")) === 0;
2635
+ function Nt(e, t, n, r) {
2636
+ return e == null ? Ft(t, n, r) : Pt(e, t, n);
2399
2637
  }
2400
- function Z(e, t, n, r, i, a) {
2401
- let o = !1, s = i(e, t, t ? n : !1);
2402
- for (; s;) {
2403
- if (s === e.firstChild) {
2404
- if (o) return !1;
2638
+ function Pt(e, t, n) {
2639
+ let r = Bt(t, e);
2640
+ return r === -1 ? Rt(t, n) : n(t[r]) ? t[r].id : Lt(t, r, "next", !1, n)?.id ?? null;
2641
+ }
2642
+ function Ft(e, t, n) {
2643
+ let r = n?.(e);
2644
+ if (r != null) {
2645
+ let n = zt(e, r);
2646
+ if (n && t(n)) return n.id;
2647
+ }
2648
+ return Rt(e, t);
2649
+ }
2650
+ function It(e, t, n) {
2651
+ if (t) {
2652
+ let n = Vt(e, t);
2653
+ if (n !== -1) return n;
2654
+ }
2655
+ return Bt(e, n);
2656
+ }
2657
+ function Lt(e, t, n, r, i) {
2658
+ let a = e.length - 1;
2659
+ if (a === -1) return null;
2660
+ let o = !1, s = Ut(t, a, n, r), c = s;
2661
+ for (; s !== -1;) {
2662
+ if (s === c) {
2663
+ if (o) return null;
2405
2664
  o = !0;
2406
2665
  }
2407
- let t = r ? !1 : s.disabled || s.getAttribute("aria-disabled") === "true";
2408
- if (!s.hasAttribute("tabindex") || !bt(s, a) || t) s = i(e, s, n);
2409
- else return s.focus(), !0;
2666
+ let t = e[s];
2667
+ if (!t || !i(t)) s = Ut(s, a, n, r);
2668
+ else return t;
2410
2669
  }
2411
- return !1;
2670
+ return null;
2671
+ }
2672
+ function Rt(e, t) {
2673
+ return e.find((e) => t(e))?.id ?? null;
2674
+ }
2675
+ function zt(e, t) {
2676
+ return t == null ? null : e.find((e) => e.id === t) ?? null;
2677
+ }
2678
+ function Bt(e, t) {
2679
+ return t == null ? -1 : e.findIndex((e) => e.id === t);
2680
+ }
2681
+ function Vt(e, t) {
2682
+ return t ? e.findIndex((e) => e.element === t || e.element?.contains(t)) : -1;
2683
+ }
2684
+ function Ht(e) {
2685
+ let t = Array.from(e.values());
2686
+ if (t.every((e) => e.element == null)) return t;
2687
+ let n = t.filter(Wt).sort((e, t) => Gt(e.element, t.element)), r = t.filter((e) => !Wt(e));
2688
+ return [...n, ...r];
2689
+ }
2690
+ function Y(e) {
2691
+ return Ht(e).filter(Wt);
2412
2692
  }
2413
- var xt = /*#__PURE__*/ J.forwardRef(function(e, t) {
2414
- let { actions: n, autoFocus: r = !1, autoFocusItem: i = !1, children: a, className: s, disabledItemsFocusable: c = !1, disableListWrap: l = !1, onKeyDown: u, variant: d = "selectedMenu" } = e, f = o(e, _t), p = J.useRef(null), m = J.useRef({
2693
+ function Ut(e, t, n, r = !0) {
2694
+ return n === "next" ? e === t ? r ? 0 : -1 : e + 1 : e === 0 ? r ? t : -1 : e - 1;
2695
+ }
2696
+ function X(e) {
2697
+ return e.element ? e.focusableWhenDisabled ? !0 : !e.disabled && !e.element.hasAttribute("disabled") && e.element.getAttribute("aria-disabled") !== "true" && e.element.hasAttribute("tabindex") : !1;
2698
+ }
2699
+ function Wt(e) {
2700
+ return e.element != null && e.element.isConnected;
2701
+ }
2702
+ function Gt(e, t) {
2703
+ if (e === t) return 0;
2704
+ let n = e.compareDocumentPosition(t);
2705
+ return n & Node.DOCUMENT_POSITION_FOLLOWING || n & Node.DOCUMENT_POSITION_CONTAINED_BY ? -1 : n & Node.DOCUMENT_POSITION_PRECEDING || n & Node.DOCUMENT_POSITION_CONTAINS ? 1 : 0;
2706
+ }
2707
+ function Kt(...e) {
2708
+ return (t) => {
2709
+ e.forEach((e) => {
2710
+ pe(e ?? null, t);
2711
+ });
2712
+ };
2713
+ }
2714
+ var qt = Je;
2715
+ function Jt(e, t) {
2716
+ if (t == null) {
2717
+ e.focus();
2718
+ return;
2719
+ }
2720
+ try {
2721
+ e.focus({ focusVisible: t === "keyboard" });
2722
+ } catch {
2723
+ e.focus();
2724
+ }
2725
+ }
2726
+ var Yt = /*#__PURE__*/ W.createContext(null);
2727
+ function Xt() {
2728
+ return W.useContext(Yt);
2729
+ }
2730
+ Yt.Provider;
2731
+ var Zt = /*#__PURE__*/ W.createContext(void 0);
2732
+ function Qt(e) {
2733
+ let t = e?.element ?? e;
2734
+ if (!t) return "";
2735
+ if (e?.textValue !== void 0) return e.textValue;
2736
+ let n = t.innerText;
2737
+ return n === void 0 && (n = t.textContent), n ?? "";
2738
+ }
2739
+ function $t(e, t) {
2740
+ if (t === void 0) return !0;
2741
+ let n = Qt(e);
2742
+ return n = n.trim().toLowerCase(), n.length === 0 ? !1 : t.repeating ? n[0] === t.keys[0] : n.startsWith(t.keys.join(""));
2743
+ }
2744
+ function en(e, t) {
2745
+ return $t(e, t) ? X(e) : !1;
2746
+ }
2747
+ function tn(e, t) {
2748
+ Jt(e, t);
2749
+ }
2750
+ var nn = /*#__PURE__*/ W.forwardRef(function(e, t) {
2751
+ let { actions: n, autoFocus: r = !1, autoFocusItem: i = !1, children: a, className: o, disabledItemsFocusable: s = !1, disableListWrap: c = !1, onKeyDown: l, variant: u = "selectedMenu", ...d } = k({
2752
+ props: e,
2753
+ name: "MuiMenuList"
2754
+ }), f = W.useRef(null), p = W.useRef(!1), [m, h] = W.useState(!1), g = Xt(), _ = W.useRef({
2415
2755
  keys: [],
2416
2756
  repeating: !0,
2417
2757
  previousKeyMatched: !0,
2418
2758
  lastTime: null
2419
- });
2420
- Se(() => {
2421
- r && p.current.focus();
2422
- }, [r]), J.useImperativeHandle(n, () => ({ adjustStyleForScrollbar: (e, { direction: t }) => {
2423
- let n = !p.current.style.width;
2424
- if (e.clientHeight < p.current.clientHeight && n) {
2425
- let n = `${gt(be(e))}px`;
2426
- p.current.style[t === "rtl" ? "paddingLeft" : "paddingRight"] = n, p.current.style.width = `calc(100% + ${n})`;
2427
- }
2428
- return p.current;
2429
- } }), []);
2430
- let h = (e) => {
2431
- let t = p.current, n = e.key, r = be(t).activeElement;
2432
- if (n === "ArrowDown") e.preventDefault(), Z(t, r, l, c, vt);
2433
- else if (n === "ArrowUp") e.preventDefault(), Z(t, r, l, c, yt);
2434
- else if (n === "Home") e.preventDefault(), Z(t, null, l, c, vt);
2435
- else if (n === "End") e.preventDefault(), Z(t, null, l, c, yt);
2436
- else if (n.length === 1) {
2437
- let i = m.current, a = n.toLowerCase(), o = performance.now();
2438
- i.keys.length > 0 && (o - i.lastTime > 500 ? (i.keys = [], i.repeating = !0, i.previousKeyMatched = !0) : i.repeating && a !== i.keys[0] && (i.repeating = !1)), i.lastTime = o, i.keys.push(a);
2439
- let s = r && !i.repeating && bt(r, i);
2440
- i.previousKeyMatched && (s || Z(t, r, !1, c, vt, i)) ? e.preventDefault() : i.previousKeyMatched = !1;
2759
+ }), v = jt({
2760
+ activeItemId: void 0,
2761
+ getDefaultActiveItemId: W.useCallback((e) => u === "selectedMenu" ? e.find((e) => e.selected && X(e))?.id ?? e.find((e) => X(e))?.id ?? null : e.find((e) => X(e))?.id ?? null, [u]),
2762
+ orientation: "vertical",
2763
+ wrap: !c
2764
+ }), { activeItemId: y, focusNext: b, getActiveItem: x, getContainerProps: S, getItemMap: C } = v, w = se((e = !1) => {
2765
+ if (!f.current || !e && p.current) return null;
2766
+ if (i) {
2767
+ let e = x();
2768
+ if (e?.element) {
2769
+ let t = Array.from(C().values()).some((e) => e.selected), n = u === "menu" && t && !e.selected && g == null;
2770
+ return h(n), tn(e.element, g), p.current = !0, e.element;
2771
+ }
2772
+ return r ? (h(!1), f.current.focus(), f.current) : null;
2441
2773
  }
2442
- u && u(e);
2443
- }, g = U(p, t), _ = -1;
2444
- J.Children.forEach(a, (e, t) => {
2445
- if (!/*#__PURE__*/ J.isValidElement(e)) {
2446
- _ === t && (_ += 1, _ >= a.length && (_ = -1));
2774
+ return r ? (h(!1), f.current.focus(), p.current = !0, f.current) : (h(!1), null);
2775
+ });
2776
+ ke(() => {
2777
+ if (!r && !i) {
2778
+ p.current = !1, h(!1);
2447
2779
  return;
2448
2780
  }
2449
- e.props.disabled || (d === "selectedMenu" && e.props.selected || _ === -1) && (_ = t), _ === t && (e.props.disabled || e.props.muiSkipListHighlight || e.type.muiSkipListHighlight) && (_ += 1, _ >= a.length && (_ = -1));
2450
- });
2451
- let y = J.Children.map(a, (e, t) => {
2452
- if (t === _) {
2453
- let t = {};
2454
- return i && (t.autoFocus = !0), e.props.tabIndex === void 0 && d === "selectedMenu" && (t.tabIndex = 0), /*#__PURE__*/ J.cloneElement(e, t);
2781
+ w();
2782
+ }, [
2783
+ y,
2784
+ i,
2785
+ r,
2786
+ w
2787
+ ]), W.useImperativeHandle(n, () => ({
2788
+ adjustStyleForScrollbar: (e, { direction: t }) => {
2789
+ let n = !f.current.style.width;
2790
+ if (e.clientHeight < f.current.clientHeight && n) {
2791
+ let n = Me(e), r = qt(n);
2792
+ if (r > 0) {
2793
+ let e = `${r}px`, i = t === "rtl" ? "paddingLeft" : "paddingRight", a = parseFloat(n.getComputedStyle(f.current)[i]) || 0;
2794
+ f.current.style[i] = `${a + r}px`, f.current.style.width = `calc(100% + ${e})`;
2795
+ }
2796
+ }
2797
+ return f.current;
2798
+ },
2799
+ focusInitialTarget: () => {
2800
+ if (!f.current) return null;
2801
+ let e = B(K(f.current));
2802
+ return e && V(f.current, e) ? e : w(!0);
2455
2803
  }
2456
- return e;
2457
- });
2458
- return /*#__PURE__*/ (0, Y.jsx)(ht, v({
2804
+ }), [w]);
2805
+ let T = S(void 0, d.onFocus), E = me(f, T.ref, t), D = W.useMemo(() => ({
2806
+ itemsFocusableWhenDisabled: s,
2807
+ suppressInitialFocusVisible: m,
2808
+ variant: u
2809
+ }), [
2810
+ s,
2811
+ m,
2812
+ u
2813
+ ]);
2814
+ return /*#__PURE__*/ (0, G.jsx)(Tt, {
2459
2815
  role: "menu",
2460
- ref: g,
2461
- className: s,
2462
- onKeyDown: h,
2463
- tabIndex: r ? 0 : -1
2464
- }, f, { children: y }));
2816
+ ref: E,
2817
+ className: o,
2818
+ onKeyDown: se((e) => {
2819
+ if (m && h(!1), (e.ctrlKey || e.metaKey || e.altKey) && l) {
2820
+ l(e);
2821
+ return;
2822
+ }
2823
+ if (T.onKeyDown(e), e.key.length === 1) {
2824
+ let t = _.current, n = e.key.toLowerCase(), r = performance.now();
2825
+ t.keys.length > 0 && (r - t.lastTime > 500 ? (t.keys = [], t.repeating = !0, t.previousKeyMatched = !0) : t.repeating && n !== t.keys[0] && (t.repeating = !1)), t.lastTime = r, t.keys.push(n);
2826
+ let i = B(K(f.current)), a = i && !t.repeating && $t(i, t);
2827
+ t.previousKeyMatched && (a || b((e) => en(e, t)) != null) ? e.preventDefault() : t.previousKeyMatched = !1;
2828
+ }
2829
+ l && l(e);
2830
+ }),
2831
+ tabIndex: -1,
2832
+ ...d,
2833
+ onFocus: T.onFocus,
2834
+ children: /*#__PURE__*/ (0, G.jsx)(Zt.Provider, {
2835
+ value: D,
2836
+ children: /*#__PURE__*/ (0, G.jsx)(Et.Provider, {
2837
+ value: v,
2838
+ children: a
2839
+ })
2840
+ })
2841
+ });
2465
2842
  });
2466
- function St(e) {
2467
- return N("MuiPopover", e);
2843
+ function rn(e) {
2844
+ return F("MuiPopover", e);
2468
2845
  }
2469
- A("MuiPopover", ["root", "paper"]), T(), p();
2470
- var Ct = ["onEntering"], wt = [
2471
- "action",
2472
- "anchorEl",
2473
- "anchorOrigin",
2474
- "anchorPosition",
2475
- "anchorReference",
2476
- "children",
2477
- "className",
2478
- "container",
2479
- "elevation",
2480
- "marginThreshold",
2481
- "open",
2482
- "PaperProps",
2483
- "slots",
2484
- "slotProps",
2485
- "transformOrigin",
2486
- "TransitionComponent",
2487
- "transitionDuration",
2488
- "TransitionProps",
2489
- "disableScrollLock"
2490
- ], Tt = ["slotProps"];
2491
- function Et(e, t) {
2846
+ T("MuiPopover", ["root", "paper"]);
2847
+ function an(e, t) {
2492
2848
  let n = 0;
2493
2849
  return typeof t == "number" ? n = t : t === "center" ? n = e.height / 2 : t === "bottom" && (n = e.height), n;
2494
2850
  }
2495
- function Dt(e, t) {
2851
+ function on(e, t) {
2496
2852
  let n = 0;
2497
2853
  return typeof t == "number" ? n = t : t === "center" ? n = e.width / 2 : t === "right" && (n = e.width), n;
2498
2854
  }
2499
- function Ot(e) {
2855
+ function sn(e) {
2500
2856
  return [e.horizontal, e.vertical].map((e) => typeof e == "number" ? `${e}px` : e).join(" ");
2501
2857
  }
2502
- function kt(e) {
2858
+ function cn(e) {
2503
2859
  return typeof e == "function" ? e() : e;
2504
2860
  }
2505
- var At = (e) => {
2861
+ var ln = (e) => {
2506
2862
  let { classes: t } = e;
2507
- return D({
2863
+ return A({
2508
2864
  root: ["root"],
2509
2865
  paper: ["paper"]
2510
- }, St, t);
2511
- }, jt = j(lt, {
2866
+ }, rn, t);
2867
+ }, un = D(bt, {
2512
2868
  name: "MuiPopover",
2513
- slot: "Root",
2514
- overridesResolver: (e, t) => t.root
2515
- })({}), Mt = j(De, {
2869
+ slot: "Root"
2870
+ })({}), dn = D(Le, {
2516
2871
  name: "MuiPopover",
2517
- slot: "Paper",
2518
- overridesResolver: (e, t) => t.paper
2872
+ slot: "Paper"
2519
2873
  })({
2520
2874
  position: "absolute",
2521
2875
  overflowY: "auto",
@@ -2525,61 +2879,59 @@ var At = (e) => {
2525
2879
  maxWidth: "calc(100% - 32px)",
2526
2880
  maxHeight: "calc(100% - 32px)",
2527
2881
  outline: 0
2528
- }), Nt = /*#__PURE__*/ J.forwardRef(function(e, t) {
2529
- let n = M({
2882
+ }), fn = /*#__PURE__*/ W.forwardRef(function(e, t) {
2883
+ let n = k({
2530
2884
  props: e,
2531
2885
  name: "MuiPopover"
2532
2886
  }), { action: r, anchorEl: i, anchorOrigin: a = {
2533
2887
  vertical: "top",
2534
2888
  horizontal: "left"
2535
- }, anchorPosition: s, anchorReference: c = "anchorEl", children: l, className: u, container: d, elevation: f = 8, marginThreshold: p = 16, open: m, PaperProps: h = {}, slots: g, slotProps: _, transformOrigin: y = {
2889
+ }, anchorPosition: o, anchorReference: s = "anchorEl", children: c, className: l, container: u, disableAutoFocus: d = !1, elevation: f = 8, marginThreshold: p = 16, open: h, slots: g = {}, slotProps: _ = {}, transformOrigin: v = {
2536
2890
  vertical: "top",
2537
2891
  horizontal: "left"
2538
- }, TransitionComponent: b = z, transitionDuration: x = "auto", TransitionProps: { onEntering: S } = {}, disableScrollLock: C = !1 } = n, w = o(n.TransitionProps, Ct), T = o(n, wt), E = _?.paper ?? h, D = J.useRef(), k = U(D, E.ref), A = v({}, n, {
2892
+ }, transitionDuration: y = "auto", disableScrollLock: b = !1, ...x } = n, S = W.useRef(), C = {
2893
+ ...n,
2539
2894
  anchorOrigin: a,
2540
- anchorReference: c,
2895
+ anchorReference: s,
2541
2896
  elevation: f,
2542
2897
  marginThreshold: p,
2543
- externalPaperSlotProps: E,
2544
- transformOrigin: y,
2545
- TransitionComponent: b,
2546
- transitionDuration: x,
2547
- TransitionProps: w
2548
- }), j = At(A), N = J.useCallback(() => {
2549
- if (c === "anchorPosition") return s;
2550
- let e = kt(i), t = (e && e.nodeType === 1 ? e : be(D.current).body).getBoundingClientRect();
2898
+ transformOrigin: v,
2899
+ transitionDuration: y
2900
+ }, w = ln(C), T = W.useCallback(() => {
2901
+ if (s === "anchorPosition") return o;
2902
+ let e = cn(i), t = (e && e.nodeType === 1 ? e : K(S.current).body).getBoundingClientRect();
2551
2903
  return {
2552
- top: t.top + Et(t, a.vertical),
2553
- left: t.left + Dt(t, a.horizontal)
2904
+ top: t.top + an(t, a.vertical),
2905
+ left: t.left + on(t, a.horizontal)
2554
2906
  };
2555
2907
  }, [
2556
2908
  i,
2557
2909
  a.horizontal,
2558
2910
  a.vertical,
2559
- s,
2560
- c
2561
- ]), P = J.useCallback((e) => ({
2562
- vertical: Et(e, y.vertical),
2563
- horizontal: Dt(e, y.horizontal)
2564
- }), [y.horizontal, y.vertical]), F = J.useCallback((e) => {
2911
+ o,
2912
+ s
2913
+ ]), E = W.useCallback((e) => ({
2914
+ vertical: an(e, v.vertical),
2915
+ horizontal: on(e, v.horizontal)
2916
+ }), [v.horizontal, v.vertical]), D = W.useCallback((e) => {
2565
2917
  let t = {
2566
2918
  width: e.offsetWidth,
2567
2919
  height: e.offsetHeight
2568
- }, n = P(t);
2569
- if (c === "none") return {
2920
+ }, n = E(t);
2921
+ if (s === "none") return {
2570
2922
  top: null,
2571
2923
  left: null,
2572
- transformOrigin: Ot(n)
2924
+ transformOrigin: sn(n)
2573
2925
  };
2574
- let r = N(), a = r.top - n.vertical, o = r.left - n.horizontal, s = a + t.height, l = o + t.width, u = xe(kt(i)), d = u.innerHeight - p, f = u.innerWidth - p;
2575
- if (p !== null && a < p) {
2926
+ let r = T(), a = r.top - n.vertical, o = r.left - n.horizontal, c = a + t.height, l = o + t.width, u = Me(cn(i)), d = u.innerHeight - p, f = u.innerWidth - p;
2927
+ if (p != null && a < p) {
2576
2928
  let e = a - p;
2577
2929
  a -= e, n.vertical += e;
2578
- } else if (p !== null && s > d) {
2579
- let e = s - d;
2930
+ } else if (p != null && c > d) {
2931
+ let e = c - d;
2580
2932
  a -= e, n.vertical += e;
2581
2933
  }
2582
- if (p !== null && o < p) {
2934
+ if (p != null && o < p) {
2583
2935
  let e = o - p;
2584
2936
  o -= e, n.horizontal += e;
2585
2937
  } else if (l > f) {
@@ -2589,207 +2941,238 @@ var At = (e) => {
2589
2941
  return {
2590
2942
  top: `${Math.round(a)}px`,
2591
2943
  left: `${Math.round(o)}px`,
2592
- transformOrigin: Ot(n)
2944
+ transformOrigin: sn(n)
2593
2945
  };
2594
2946
  }, [
2595
2947
  i,
2596
- c,
2597
- N,
2598
- P,
2948
+ s,
2949
+ T,
2950
+ E,
2599
2951
  p
2600
- ]), [I, L] = J.useState(m), B = J.useCallback(() => {
2601
- let e = D.current;
2952
+ ]), [ee, O] = W.useState(h), A = W.useCallback(() => {
2953
+ let e = S.current;
2602
2954
  if (!e) return;
2603
- let t = F(e);
2604
- t.top !== null && (e.style.top = t.top), t.left !== null && (e.style.left = t.left), e.style.transformOrigin = t.transformOrigin, L(!0);
2605
- }, [F]);
2606
- J.useEffect(() => (C && window.addEventListener("scroll", B), () => window.removeEventListener("scroll", B)), [
2955
+ let t = D(e);
2956
+ t.top != null && e.style.setProperty("top", t.top), t.left != null && (e.style.left = t.left), e.style.transformOrigin = t.transformOrigin, O(!0);
2957
+ }, [D]);
2958
+ W.useEffect(() => (b && window.addEventListener("scroll", A), () => window.removeEventListener("scroll", A)), [
2607
2959
  i,
2608
- C,
2609
- B
2960
+ b,
2961
+ A
2610
2962
  ]);
2611
- let V = (e, t) => {
2612
- S && S(e, t), B();
2613
- }, H = () => {
2614
- L(!1);
2963
+ let j = () => {
2964
+ A();
2965
+ }, M = () => {
2966
+ O(!1);
2615
2967
  };
2616
- J.useEffect(() => {
2617
- m && B();
2618
- }), J.useImperativeHandle(r, () => m ? { updatePosition: () => {
2619
- B();
2620
- } } : null, [m, B]), J.useEffect(() => {
2621
- if (!m) return;
2622
- let e = ye(() => {
2623
- B();
2624
- }), t = xe(i);
2968
+ W.useEffect(() => {
2969
+ h && A();
2970
+ }), W.useImperativeHandle(r, () => h ? { updatePosition: () => {
2971
+ A();
2972
+ } } : null, [h, A]), W.useEffect(() => {
2973
+ if (!h) return;
2974
+ let e = je(() => {
2975
+ A();
2976
+ }), t = Me(cn(i));
2625
2977
  return t.addEventListener("resize", e), () => {
2626
2978
  e.clear(), t.removeEventListener("resize", e);
2627
2979
  };
2628
2980
  }, [
2629
2981
  i,
2630
- m,
2631
- B
2982
+ h,
2983
+ A
2632
2984
  ]);
2633
- let W = x;
2634
- x === "auto" && !b.muiSupportAuto && (W = void 0);
2635
- let te = d || (i ? be(kt(i)).body : void 0), G = g?.root ?? jt, ne = g?.paper ?? Mt, re = R({
2636
- elementType: ne,
2637
- externalSlotProps: v({}, E, { style: I ? E.style : v({}, E.style, { opacity: 0 }) }),
2985
+ let N = y, P = {
2986
+ slots: g,
2987
+ slotProps: _
2988
+ }, [F, I] = R("transition", {
2989
+ elementType: ie,
2990
+ externalForwardedProps: P,
2991
+ ownerState: C,
2992
+ getSlotProps: (e) => ({
2993
+ ...e,
2994
+ onEntering: (t, n) => {
2995
+ e.onEntering?.(t, n), j();
2996
+ },
2997
+ onExited: (t) => {
2998
+ e.onExited?.(t), M();
2999
+ }
3000
+ }),
2638
3001
  additionalProps: {
2639
- elevation: f,
2640
- ref: k
2641
- },
2642
- ownerState: A,
2643
- className: O(j.paper, E?.className)
2644
- }), ie = R({
2645
- elementType: G,
2646
- externalSlotProps: _?.root || {},
2647
- externalForwardedProps: T,
3002
+ appear: !0,
3003
+ in: h
3004
+ }
3005
+ });
3006
+ y === "auto" && !F.muiSupportAuto && (N = void 0);
3007
+ let ne = u || (i ? K(cn(i)).body : void 0), [L, { slots: re, slotProps: z, ...ae }] = R("root", {
3008
+ ref: t,
3009
+ elementType: un,
3010
+ externalForwardedProps: {
3011
+ ...P,
3012
+ ...x
3013
+ },
3014
+ shouldForwardComponentProp: !0,
2648
3015
  additionalProps: {
2649
- ref: t,
2650
- slotProps: { backdrop: { invisible: !0 } },
2651
- container: te,
2652
- open: m
2653
- },
2654
- ownerState: A,
2655
- className: O(j.root, u)
2656
- }), { slotProps: K } = ie;
2657
- return /*#__PURE__*/ (0, Y.jsx)(G, v({}, o(ie, Tt), !ee(G) && {
2658
- slotProps: K,
2659
- disableScrollLock: C
2660
- }, { children: /*#__PURE__*/ (0, Y.jsx)(b, v({
2661
- appear: !0,
2662
- in: m,
2663
- onEntering: V,
2664
- onExited: H,
2665
- timeout: W
2666
- }, w, { children: /*#__PURE__*/ (0, Y.jsx)(ne, v({}, re, { children: l })) })) }));
3016
+ slots: { backdrop: g.backdrop },
3017
+ slotProps: { backdrop: Ne(typeof _.backdrop == "function" ? _.backdrop(C) : _.backdrop, { invisible: !0 }) },
3018
+ container: ne,
3019
+ open: h
3020
+ },
3021
+ ownerState: C,
3022
+ className: m(w.root, l)
3023
+ }), [oe, se] = R("paper", {
3024
+ ref: S,
3025
+ className: w.paper,
3026
+ elementType: dn,
3027
+ externalForwardedProps: P,
3028
+ shouldForwardComponentProp: !0,
3029
+ additionalProps: {
3030
+ elevation: f,
3031
+ style: ee ? void 0 : { opacity: 0 }
3032
+ },
3033
+ ownerState: C
3034
+ });
3035
+ return /*#__PURE__*/ (0, G.jsx)(L, {
3036
+ ...ae,
3037
+ ...!te(L) && {
3038
+ slots: re,
3039
+ slotProps: z,
3040
+ disableAutoFocus: d,
3041
+ disableScrollLock: b
3042
+ },
3043
+ children: /*#__PURE__*/ (0, G.jsx)(F, {
3044
+ ...I,
3045
+ timeout: N,
3046
+ children: /*#__PURE__*/ (0, G.jsx)(oe, {
3047
+ ...se,
3048
+ children: c
3049
+ })
3050
+ })
3051
+ });
2667
3052
  });
2668
- function Pt(e) {
2669
- return N("MuiMenu", e);
3053
+ function pn(e) {
3054
+ return F("MuiMenu", e);
2670
3055
  }
2671
- A("MuiMenu", [
3056
+ T("MuiMenu", [
2672
3057
  "root",
2673
3058
  "paper",
2674
3059
  "list"
2675
- ]), T(), p();
2676
- var Ft = ["onEntering"], It = [
2677
- "autoFocus",
2678
- "children",
2679
- "className",
2680
- "disableAutoFocusItem",
2681
- "MenuListProps",
2682
- "onClose",
2683
- "open",
2684
- "PaperProps",
2685
- "PopoverClasses",
2686
- "transitionDuration",
2687
- "TransitionProps",
2688
- "variant",
2689
- "slots",
2690
- "slotProps"
2691
- ], Lt = {
3060
+ ]);
3061
+ var mn = {
2692
3062
  vertical: "top",
2693
3063
  horizontal: "right"
2694
- }, Rt = {
3064
+ }, hn = {
2695
3065
  vertical: "top",
2696
3066
  horizontal: "left"
2697
- }, zt = (e) => {
3067
+ }, gn = (e) => {
2698
3068
  let { classes: t } = e;
2699
- return D({
3069
+ return A({
2700
3070
  root: ["root"],
2701
3071
  paper: ["paper"],
2702
3072
  list: ["list"]
2703
- }, Pt, t);
2704
- }, Bt = j(Nt, {
2705
- shouldForwardProp: (e) => k(e) || e === "classes",
3073
+ }, pn, t);
3074
+ }, _n = D(fn, {
3075
+ shouldForwardProp: (e) => ee(e) || e === "classes",
2706
3076
  name: "MuiMenu",
2707
- slot: "Root",
2708
- overridesResolver: (e, t) => t.root
2709
- })({}), Vt = j(Mt, {
3077
+ slot: "Root"
3078
+ })({}), vn = D(dn, {
2710
3079
  name: "MuiMenu",
2711
- slot: "Paper",
2712
- overridesResolver: (e, t) => t.paper
3080
+ slot: "Paper"
2713
3081
  })({
2714
3082
  maxHeight: "calc(100% - 96px)",
2715
3083
  WebkitOverflowScrolling: "touch"
2716
- }), Ht = j(xt, {
3084
+ }), yn = D(nn, {
2717
3085
  name: "MuiMenu",
2718
- slot: "List",
2719
- overridesResolver: (e, t) => t.list
2720
- })({ outline: 0 }), Ut = /*#__PURE__*/ J.forwardRef(function(e, t) {
2721
- let n = M({
3086
+ slot: "List"
3087
+ })({ outline: 0 }), bn = /*#__PURE__*/ W.forwardRef(function(e, t) {
3088
+ let n = k({
2722
3089
  props: e,
2723
3090
  name: "MuiMenu"
2724
- }), { autoFocus: r = !0, children: i, className: a, disableAutoFocusItem: s = !1, MenuListProps: c = {}, onClose: l, open: d, PaperProps: f = {}, PopoverClasses: p, transitionDuration: m = "auto", TransitionProps: { onEntering: h } = {}, variant: g = "selectedMenu", slots: _ = {}, slotProps: y = {} } = n, b = o(n.TransitionProps, Ft), x = o(n, It), S = u(), C = v({}, n, {
2725
- autoFocus: r,
3091
+ }), { autoFocus: i = !0, children: a, className: o, disableAutoFocusItem: s = !1, onClose: c, open: l, PopoverClasses: u, transitionDuration: d = "auto", variant: f = "selectedMenu", slots: p = {}, slotProps: m = {}, ...h } = n, g = r(), _ = {
3092
+ ...n,
3093
+ autoFocus: i,
2726
3094
  disableAutoFocusItem: s,
2727
- MenuListProps: c,
2728
- onEntering: h,
2729
- PaperProps: f,
2730
- transitionDuration: m,
2731
- TransitionProps: b,
2732
- variant: g
2733
- }), w = zt(C), T = r && !s && d, E = J.useRef(null), D = (e, t) => {
2734
- E.current && E.current.adjustStyleForScrollbar(e, { direction: S ? "rtl" : "ltr" }), h && h(e, t);
2735
- }, k = (e) => {
2736
- e.key === "Tab" && (e.preventDefault(), l && l(e, "tabKeyDown"));
2737
- }, A = -1;
2738
- J.Children.map(i, (e, t) => {
2739
- /*#__PURE__*/ J.isValidElement(e) && (e.props.disabled || (g === "selectedMenu" && e.props.selected || A === -1) && (A = t));
2740
- });
2741
- let j = _.paper ?? Vt, N = y.paper ?? f, P = R({
2742
- elementType: _.root,
2743
- externalSlotProps: y.root,
2744
- ownerState: C,
2745
- className: [w.root, a]
2746
- }), F = R({
2747
- elementType: j,
2748
- externalSlotProps: N,
2749
- ownerState: C,
2750
- className: w.paper
2751
- });
2752
- return /*#__PURE__*/ (0, Y.jsx)(Bt, v({
2753
- onClose: l,
3095
+ transitionDuration: d,
3096
+ variant: f
3097
+ }, v = gn(_), y = i && l, b = y && !s, x = W.useRef(null), S = (e, t) => {
3098
+ x.current && (x.current.adjustStyleForScrollbar(e, { direction: g ? "rtl" : "ltr" }), y && x.current.focusInitialTarget?.());
3099
+ }, C = (e) => {
3100
+ e.key === "Tab" && (e.preventDefault(), c && c(e, "tabKeyDown"));
3101
+ }, w = {
3102
+ slots: p,
3103
+ slotProps: m
3104
+ }, T = ce({
3105
+ elementType: p.root,
3106
+ externalSlotProps: m.root,
3107
+ ownerState: _,
3108
+ className: [v.root, o]
3109
+ }), [E, D] = R("paper", {
3110
+ className: v.paper,
3111
+ elementType: vn,
3112
+ externalForwardedProps: w,
3113
+ shouldForwardComponentProp: !0,
3114
+ ownerState: _
3115
+ }), [ee, O] = R("list", {
3116
+ className: v.list,
3117
+ elementType: yn,
3118
+ shouldForwardComponentProp: !0,
3119
+ externalForwardedProps: w,
3120
+ getSlotProps: (e) => ({
3121
+ ...e,
3122
+ onKeyDown: (t) => {
3123
+ C(t), e.onKeyDown?.(t);
3124
+ }
3125
+ }),
3126
+ ownerState: _
3127
+ }), A = typeof m.transition == "function" ? m.transition(_) : m.transition;
3128
+ return /*#__PURE__*/ (0, G.jsx)(_n, {
3129
+ disableAutoFocus: i,
3130
+ onClose: c,
2754
3131
  anchorOrigin: {
2755
3132
  vertical: "bottom",
2756
- horizontal: S ? "right" : "left"
3133
+ horizontal: g ? "right" : "left"
2757
3134
  },
2758
- transformOrigin: S ? Lt : Rt,
3135
+ transformOrigin: g ? mn : hn,
2759
3136
  slots: {
2760
- paper: j,
2761
- root: _.root
3137
+ root: p.root,
3138
+ paper: E,
3139
+ backdrop: p.backdrop,
3140
+ transition: p.transition
2762
3141
  },
2763
3142
  slotProps: {
2764
- root: P,
2765
- paper: F
3143
+ root: T,
3144
+ paper: D,
3145
+ backdrop: typeof m.backdrop == "function" ? m.backdrop(_) : m.backdrop,
3146
+ transition: {
3147
+ ...A,
3148
+ onEntering: (...e) => {
3149
+ S(...e), A?.onEntering?.(...e);
3150
+ }
3151
+ }
2766
3152
  },
2767
- open: d,
3153
+ open: l,
2768
3154
  ref: t,
2769
- transitionDuration: m,
2770
- TransitionProps: v({ onEntering: D }, b),
2771
- ownerState: C
2772
- }, x, {
2773
- classes: p,
2774
- children: /*#__PURE__*/ (0, Y.jsx)(Ht, v({
2775
- onKeyDown: k,
2776
- actions: E,
2777
- autoFocus: r && (A === -1 || s),
2778
- autoFocusItem: T,
2779
- variant: g
2780
- }, c, {
2781
- className: O(w.list, c.className),
2782
- children: i
2783
- }))
2784
- }));
2785
- }), Wt = (e) => {
3155
+ transitionDuration: d,
3156
+ ownerState: _,
3157
+ ...h,
3158
+ classes: u,
3159
+ children: /*#__PURE__*/ (0, G.jsx)(ee, {
3160
+ actions: x,
3161
+ autoFocus: y,
3162
+ autoFocusItem: b,
3163
+ variant: f,
3164
+ ...O,
3165
+ children: a
3166
+ })
3167
+ });
3168
+ }), Z = (e) => {
2786
3169
  switch (e.key) {
2787
3170
  case " ":
2788
3171
  case "Enter":
2789
3172
  e.preventDefault(), e.target.click();
2790
3173
  break;
2791
3174
  }
2792
- }, Gt = (e) => {
3175
+ }, xn = (e) => {
2793
3176
  switch (e.key) {
2794
3177
  case "ArrowDown": {
2795
3178
  let t = e.currentTarget.getAttribute("role");
@@ -2810,7 +3193,7 @@ var Ft = ["onEntering"], It = [
2810
3193
  break;
2811
3194
  }
2812
3195
  }
2813
- }, Q = /* @__PURE__ */ e(pe()), Kt = class e {
3196
+ }, Q = /* @__PURE__ */ e(De()), Sn = class e {
2814
3197
  qixColor;
2815
3198
  constructor(t) {
2816
3199
  if (t instanceof e) this.qixColor = new Q.default(t.qixColor);
@@ -2913,7 +3296,7 @@ var Ft = ["onEntering"], It = [
2913
3296
  });
2914
3297
  return t.color === null ? e[0] : t.color;
2915
3298
  };
2916
- }, qt = (e, t) => {
3299
+ }, Cn = (e, t) => {
2917
3300
  try {
2918
3301
  let n = t?.targetContrast ?? 5.2, r = (0, Q.default)(e), i = r.hsl().object(), a = i.h, o = i.s, s = r.luminosity() < .45, c = 0, l = 1;
2919
3302
  for (let e = 0; e < 28; e++) {
@@ -2933,7 +3316,7 @@ var Ft = ["onEntering"], It = [
2933
3316
  } catch (t) {
2934
3317
  return console.error(`[getReadableTextColor] Invalid color input: ${e}`, t), null;
2935
3318
  }
2936
- }, Jt = {
3319
+ }, wn = {
2937
3320
  "--background-color": n.white,
2938
3321
  "--color": n.mainDarkNavy,
2939
3322
  "--font-family": "Roboto",
@@ -2942,40 +3325,40 @@ var Ft = ["onEntering"], It = [
2942
3325
  "--text-decoration": "none",
2943
3326
  "--text-align": "left",
2944
3327
  "--align-items": "center"
2945
- }, Yt = (e, { appearance: t = "default" } = {}) => {
2946
- let n = e["--background-color"], r = Zt(n), { searchFontColor: i, searchBorderColor: a } = Xt(n, t === "legacy" ? e["--color"] : void 0);
3328
+ }, Tn = (e, { appearance: t = "default" } = {}) => {
3329
+ let n = e["--background-color"], r = Dn(n), { searchFontColor: i, searchBorderColor: a } = En(n, t === "legacy" ? e["--color"] : void 0);
2947
3330
  return {
2948
3331
  "--background-color-hover": r,
2949
3332
  "--search-font-color": i,
2950
3333
  "--search-border-color": a
2951
3334
  };
2952
- }, Xt = (e, t) => t ? {
3335
+ }, En = (e, t) => t ? {
2953
3336
  searchFontColor: t,
2954
3337
  searchBorderColor: t
2955
3338
  } : !e || e === "transparent" ? {
2956
3339
  searchFontColor: n.grey2,
2957
3340
  searchBorderColor: n.grey3
2958
- } : new Kt(e).luminanceWithAlpha() < .5 ? {
3341
+ } : new Sn(e).luminanceWithAlpha() < .5 ? {
2959
3342
  searchFontColor: n.white,
2960
3343
  searchBorderColor: n.white
2961
3344
  } : {
2962
3345
  searchFontColor: n.grey2,
2963
3346
  searchBorderColor: n.grey3
2964
- }, Zt = (e) => {
3347
+ }, Dn = (e) => {
2965
3348
  if (!e || e === "transparent") return n.grey3;
2966
- let t = new Kt(e);
3349
+ let t = new Sn(e);
2967
3350
  return t.luminanceWithAlpha() < .5 ? t.addTint(.2).hex() : t.addShade(.1).hex();
2968
- }, Qt = (e) => {
3351
+ }, On = (e) => {
2969
3352
  let t = e === "legacy", r = {
2970
- [K.md]: {
3353
+ [H.md]: {
2971
3354
  fontSize: "11px",
2972
3355
  lineHeight: "12px"
2973
3356
  },
2974
- [K.sm]: {
3357
+ [H.sm]: {
2975
3358
  fontSize: "9px",
2976
3359
  lineHeight: "10px"
2977
3360
  },
2978
- [K.xs]: {
3361
+ [H.xs]: {
2979
3362
  fontSize: "8px",
2980
3363
  lineHeight: "8px"
2981
3364
  }
@@ -2986,9 +3369,9 @@ var Ft = ["onEntering"], It = [
2986
3369
  fontFamily: "var(--font-family)",
2987
3370
  padding: "8px 0",
2988
3371
  ...e && {
2989
- [K.md]: { padding: "6px 0" },
2990
- [K.sm]: { padding: "4px 0" },
2991
- [K.xs]: { padding: "2px 0" }
3372
+ [H.md]: { padding: "6px 0" },
3373
+ [H.sm]: { padding: "4px 0" },
3374
+ [H.xs]: { padding: "2px 0" }
2992
3375
  }
2993
3376
  }),
2994
3377
  divActions: {
@@ -3001,7 +3384,7 @@ var Ft = ["onEntering"], It = [
3001
3384
  padding: 8
3002
3385
  },
3003
3386
  divActionsAction: {
3004
- ...f.normal14,
3387
+ ...S.normal14,
3005
3388
  borderRadius: 4,
3006
3389
  cursor: "pointer",
3007
3390
  textAlign: "center",
@@ -3022,43 +3405,43 @@ var Ft = ["onEntering"], It = [
3022
3405
  padding: "1px 0"
3023
3406
  },
3024
3407
  divOptions: (e) => ({
3025
- ...E.propertiesPanel,
3408
+ ...b.propertiesPanel,
3026
3409
  scrollbarGutter: "initial",
3027
3410
  maxHeight: 400,
3028
3411
  padding: "0 8px",
3029
3412
  ...e && {
3030
- [K.md]: {
3413
+ [H.md]: {
3031
3414
  padding: "0 6px",
3032
3415
  ...!t && { maxHeight: 300 }
3033
3416
  },
3034
- [K.sm]: {
3417
+ [H.sm]: {
3035
3418
  padding: "0 4px",
3036
3419
  ...!t && { maxHeight: 250 }
3037
3420
  },
3038
- [K.xs]: {
3421
+ [H.xs]: {
3039
3422
  padding: "0 2px",
3040
3423
  ...!t && { maxHeight: 200 }
3041
3424
  }
3042
3425
  }
3043
3426
  }),
3044
3427
  header: (e) => ({
3045
- ...f.bold13,
3428
+ ...S.bold13,
3046
3429
  gap: 8,
3047
3430
  padding: "10px 16px",
3048
3431
  display: "flex",
3049
3432
  textAlign: "var(--text-align)",
3050
3433
  color: "var(--color)",
3051
3434
  ...e && {
3052
- [K.md]: {
3053
- ...r[K.md],
3435
+ [H.md]: {
3436
+ ...r[H.md],
3054
3437
  ...!t && { padding: "8px 12px" }
3055
3438
  },
3056
- [K.sm]: {
3057
- ...r[K.sm],
3439
+ [H.sm]: {
3440
+ ...r[H.sm],
3058
3441
  ...!t && { padding: "6px 8px" }
3059
3442
  },
3060
- [K.xs]: {
3061
- ...r[K.xs],
3443
+ [H.xs]: {
3444
+ ...r[H.xs],
3062
3445
  ...!t && { padding: "4px 6px" }
3063
3446
  }
3064
3447
  }
@@ -3077,18 +3460,18 @@ var Ft = ["onEntering"], It = [
3077
3460
  "&[aria-disabled=\"true\"]": { color: n.grey3 },
3078
3461
  "& > div": { display: "flex" },
3079
3462
  ...e && {
3080
- ...ie,
3081
- [K.md]: {
3463
+ ...ve,
3464
+ [H.md]: {
3082
3465
  padding: t ? "0px 8px" : "8px",
3083
3466
  ...t && { height: 24 },
3084
3467
  gap: 4
3085
3468
  },
3086
- [K.sm]: {
3469
+ [H.sm]: {
3087
3470
  padding: t ? "0px 6px" : "6px",
3088
3471
  ...t && { height: 20 },
3089
3472
  gap: 2
3090
3473
  },
3091
- [K.xs]: {
3474
+ [H.xs]: {
3092
3475
  padding: t ? "0px 4px" : "4px",
3093
3476
  ...t && { height: 16 },
3094
3477
  gap: 1
@@ -3096,7 +3479,7 @@ var Ft = ["onEntering"], It = [
3096
3479
  }
3097
3480
  }),
3098
3481
  divOptionsOptionCategory: (e) => ({
3099
- ...f.bold13,
3482
+ ...S.bold13,
3100
3483
  fontStyle: "var(--font-style)",
3101
3484
  textDecoration: "var(--text-decoration)",
3102
3485
  background: "var(--background-color)",
@@ -3115,23 +3498,23 @@ var Ft = ["onEntering"], It = [
3115
3498
  margin: "10px 8px",
3116
3499
  height: 0,
3117
3500
  ...e && {
3118
- [K.md]: { margin: "8px" },
3119
- [K.sm]: { margin: "6px" },
3120
- [K.xs]: { margin: "4px" }
3501
+ [H.md]: { margin: "8px" },
3502
+ [H.sm]: { margin: "6px" },
3503
+ [H.xs]: { margin: "4px" }
3121
3504
  }
3122
3505
  }
3123
3506
  }),
3124
3507
  divOptionsOptionOption: (e) => ({
3125
- ...f.normal13,
3508
+ ...S.normal13,
3126
3509
  fontStyle: "var(--font-style)",
3127
- lineHeight: f.normal13.lineHeight,
3510
+ lineHeight: S.normal13.lineHeight,
3128
3511
  textDecoration: "var(--text-decoration)",
3129
3512
  "&[aria-disabled=\"true\"]": { cursor: "not-allowed" },
3130
3513
  "&[aria-expanded=\"true\"]": { background: n.grey5 },
3131
3514
  ...e && r
3132
3515
  }),
3133
3516
  divOptionsOptionOptionLabel: {
3134
- ...f.overflowEllipsis,
3517
+ ...S.overflowEllipsis,
3135
3518
  display: "initial !important",
3136
3519
  ...t && {
3137
3520
  height: "100%",
@@ -3144,71 +3527,71 @@ var Ft = ["onEntering"], It = [
3144
3527
  display: "flex",
3145
3528
  "& > div": { flexGrow: 1 },
3146
3529
  ...e && {
3147
- [K.md]: { padding: t ? "8px" : "6px 8px" },
3148
- [K.sm]: { padding: t ? "8px" : "4px 6px" },
3149
- [K.xs]: { padding: t ? "8px" : "2px 4px" }
3530
+ [H.md]: { padding: t ? "8px" : "6px 8px" },
3531
+ [H.sm]: { padding: t ? "8px" : "4px 6px" },
3532
+ [H.xs]: { padding: t ? "8px" : "2px 4px" }
3150
3533
  }
3151
3534
  })
3152
3535
  };
3153
- }, $t = m(Qt("default")), en = m(Qt("legacy")), tn = (e, { appearance: t = "default" } = {}) => (t === "legacy" ? en : $t)(e), nn = ({ tooltip: e, children: t }) => e ? /* @__PURE__ */ (0, Y.jsx)(W, {
3536
+ }, kn = d(On("default")), An = d(On("legacy")), jn = (e, { appearance: t = "default" } = {}) => (t === "legacy" ? An : kn)(e), Mn = ({ tooltip: e, children: t }) => e ? /* @__PURE__ */ (0, G.jsx)(le, {
3154
3537
  title: e,
3155
3538
  children: t
3156
- }) : t, rn = ({ action: e, classNames: t }) => {
3157
- let { color: n = "primary", disabled: r = !1, key: a, label: o, onClick: s, style: c = {} } = e;
3158
- return /* @__PURE__ */ (0, Y.jsx)(nn, {
3539
+ }) : t, Nn = ({ action: e, classNames: t }) => {
3540
+ let { color: n = "primary", disabled: r = !1, key: i, label: a, onClick: o, style: s = {} } = e;
3541
+ return /* @__PURE__ */ (0, G.jsx)(Mn, {
3159
3542
  tooltip: e.tooltip,
3160
- children: /* @__PURE__ */ (0, Y.jsx)("div", {
3543
+ children: /* @__PURE__ */ (0, G.jsx)("div", {
3161
3544
  "aria-disabled": r,
3162
- className: i({
3545
+ className: C({
3163
3546
  [t.divActionsAction]: !0,
3164
3547
  [t.divActionsAction__primary]: n === "primary",
3165
3548
  [t.divActionsAction__secondary]: n === "secondary"
3166
3549
  }),
3167
- onClick: r ? void 0 : s,
3168
- onKeyDown: Wt,
3550
+ onClick: r ? void 0 : o,
3551
+ onKeyDown: Z,
3169
3552
  role: "button",
3170
- style: c,
3553
+ style: s,
3171
3554
  tabIndex: r ? void 0 : 0,
3172
- children: o
3173
- }, a)
3555
+ children: a
3556
+ }, i)
3174
3557
  });
3175
- }, an = ({ actions: e, classNames: t }) => e.length ? /* @__PURE__ */ (0, Y.jsx)("div", {
3558
+ }, Pn = ({ actions: e, classNames: t }) => e.length ? /* @__PURE__ */ (0, G.jsx)("div", {
3176
3559
  className: t.divActions,
3177
- children: e.map((e) => /* @__PURE__ */ (0, Y.jsx)(rn, {
3560
+ children: e.map((e) => /* @__PURE__ */ (0, G.jsx)(Nn, {
3178
3561
  classNames: t,
3179
3562
  action: e
3180
3563
  }, e.key))
3181
- }) : null, on = m({ button: {
3564
+ }) : null, Fn = d({ button: {
3182
3565
  background: "initial",
3183
3566
  border: "initial",
3184
3567
  padding: "initial",
3185
3568
  borderRadius: 4,
3186
3569
  cursor: "pointer",
3187
3570
  display: "block"
3188
- } }), sn = (0, J.forwardRef)(function({ children: e, className: t, ...n }, r) {
3189
- let a = on();
3190
- return /* @__PURE__ */ (0, Y.jsx)("button", {
3571
+ } }), In = (0, W.forwardRef)(function({ children: e, className: t, ...n }, r) {
3572
+ let i = Fn();
3573
+ return /* @__PURE__ */ (0, G.jsx)("button", {
3191
3574
  ...n,
3192
- className: i({
3575
+ className: C({
3193
3576
  [String(t)]: !0,
3194
- [a.button]: !0
3577
+ [i.button]: !0
3195
3578
  }),
3196
3579
  ref: r,
3197
3580
  children: e
3198
3581
  });
3199
- }), cn = m({
3582
+ }), Ln = d({
3200
3583
  button: (e) => ({
3201
3584
  position: "absolute",
3202
3585
  right: 4,
3203
3586
  top: 4,
3204
3587
  ...e && {
3205
- [K.md]: { top: 2 },
3588
+ [H.md]: { top: 2 },
3206
3589
  "& svg": {
3207
- [K.sm]: {
3590
+ [H.sm]: {
3208
3591
  width: 12,
3209
3592
  height: 12
3210
3593
  },
3211
- [K.xs]: {
3594
+ [H.xs]: {
3212
3595
  width: 8,
3213
3596
  height: 8
3214
3597
  }
@@ -3220,7 +3603,7 @@ var Ft = ["onEntering"], It = [
3220
3603
  position: "relative"
3221
3604
  },
3222
3605
  input: (e) => ({
3223
- ...f.normal13,
3606
+ ...S.normal13,
3224
3607
  background: "initial",
3225
3608
  border: `1px solid ${n.grey3}`,
3226
3609
  borderRadius: 4,
@@ -3230,18 +3613,18 @@ var Ft = ["onEntering"], It = [
3230
3613
  height: 24,
3231
3614
  padding: "3px 23px",
3232
3615
  ...e && {
3233
- [K.md]: {
3616
+ [H.md]: {
3234
3617
  height: 20,
3235
- ...f.normal12
3618
+ ...S.normal12
3236
3619
  },
3237
- [K.sm]: {
3620
+ [H.sm]: {
3238
3621
  height: 16,
3239
- ...f.normal11,
3622
+ ...S.normal11,
3240
3623
  padding: "3px 16px"
3241
3624
  },
3242
- [K.xs]: {
3625
+ [H.xs]: {
3243
3626
  height: 12,
3244
- ...f.normal10,
3627
+ ...S.normal10,
3245
3628
  padding: "0px 12px"
3246
3629
  }
3247
3630
  },
@@ -3253,75 +3636,75 @@ var Ft = ["onEntering"], It = [
3253
3636
  position: "absolute",
3254
3637
  top: 4,
3255
3638
  ...e && {
3256
- [K.md]: { top: 2 },
3257
- [K.sm]: {
3639
+ [H.md]: { top: 2 },
3640
+ [H.sm]: {
3258
3641
  width: 12,
3259
3642
  height: 12,
3260
3643
  top: 2
3261
3644
  },
3262
- [K.xs]: {
3645
+ [H.xs]: {
3263
3646
  width: 8,
3264
3647
  height: 8,
3265
3648
  top: 2
3266
3649
  }
3267
3650
  }
3268
3651
  })
3269
- }), ln = (0, J.forwardRef)(function({ autoFocus: e, className: t, onChange: n, value: r, placeholder: a, style: o, responsive: s, ...c }, l) {
3270
- let u = (0, J.useRef)(null), d = (0, J.useCallback)((e) => {
3271
- u.current = e, typeof l == "function" ? l(e) : l && (l.current = e);
3272
- }, [l]), f = cn(s);
3273
- return (0, J.useEffect)(() => {
3652
+ }), Rn = (0, W.forwardRef)(function({ autoFocus: e, className: t, onChange: n, value: r, placeholder: i, style: a, responsive: o, ...s }, c) {
3653
+ let u = (0, W.useRef)(null), d = (0, W.useCallback)((e) => {
3654
+ u.current = e, typeof c == "function" ? c(e) : c && (c.current = e);
3655
+ }, [c]), f = Ln(o);
3656
+ return (0, W.useEffect)(() => {
3274
3657
  e && u.current?.focus();
3275
- }, [e]), /* @__PURE__ */ (0, Y.jsxs)("div", {
3276
- className: i({
3658
+ }, [e]), /* @__PURE__ */ (0, G.jsxs)("div", {
3659
+ className: C({
3277
3660
  [String(t)]: !0,
3278
3661
  [f.div]: !0
3279
3662
  }),
3280
3663
  children: [
3281
- /* @__PURE__ */ (0, Y.jsx)(w, {
3664
+ /* @__PURE__ */ (0, G.jsx)(l, {
3282
3665
  className: f.svg,
3283
- fill: o?.color
3666
+ fill: a?.color
3284
3667
  }),
3285
- /* @__PURE__ */ (0, Y.jsx)("input", {
3286
- ...c,
3287
- style: { ...o },
3668
+ /* @__PURE__ */ (0, G.jsx)("input", {
3669
+ ...s,
3670
+ style: { ...a },
3288
3671
  className: f.input,
3289
3672
  onChange: n,
3290
- placeholder: a ?? "Search...",
3673
+ placeholder: i ?? "Search...",
3291
3674
  ref: d,
3292
3675
  size: 1,
3293
3676
  value: r
3294
3677
  }),
3295
- /* @__PURE__ */ (0, Y.jsx)(sn, {
3678
+ /* @__PURE__ */ (0, G.jsx)(In, {
3296
3679
  className: f.button,
3297
3680
  "data-testid": "input-search-clear",
3298
3681
  onClick: () => {
3299
3682
  u.current?.focus(), n?.({ target: { value: "" } });
3300
3683
  },
3301
3684
  style: { display: r ? void 0 : "none" },
3302
- children: /* @__PURE__ */ (0, Y.jsx)(b, { fill: o?.color })
3685
+ children: /* @__PURE__ */ (0, G.jsx)(g, { fill: a?.color })
3303
3686
  })
3304
3687
  ]
3305
3688
  });
3306
- }), un = m({ button: {
3689
+ }), zn = d({ button: {
3307
3690
  paddingLeft: 4,
3308
3691
  paddingRight: 4
3309
- } }), dn = ({ isAllCollapsed: e, clickCallback: t }) => {
3310
- let n = un(), r = e ? d : g;
3311
- return /* @__PURE__ */ (0, Y.jsx)(G, {
3692
+ } }), Bn = ({ isAllCollapsed: e, clickCallback: t }) => {
3693
+ let n = zn(), r = e ? u : h;
3694
+ return /* @__PURE__ */ (0, G.jsx)(fe, {
3312
3695
  title: e ? "Expand all" : "Collapse all",
3313
- children: /* @__PURE__ */ (0, Y.jsx)(sn, {
3696
+ children: /* @__PURE__ */ (0, G.jsx)(In, {
3314
3697
  onClick: () => t?.(!e),
3315
3698
  className: n.button,
3316
- children: /* @__PURE__ */ (0, Y.jsx)(r, {})
3699
+ children: /* @__PURE__ */ (0, G.jsx)(r, {})
3317
3700
  })
3318
3701
  });
3319
- }, fn = ({ classNames: e, searchEnabled: t, searchPhrase: n, onChange: r, options: i, collapsed: a, onCollapseChange: o, responsive: s }) => {
3702
+ }, Vn = ({ classNames: e, searchEnabled: t, searchPhrase: n, onChange: r, options: i, collapsed: a, onCollapseChange: o, responsive: s }) => {
3320
3703
  if (!t) return null;
3321
3704
  let c = i.filter((e) => e.type === "category"), l = c.length > 0, u = c.every((e) => a[e.key]);
3322
- return /* @__PURE__ */ (0, Y.jsxs)("div", {
3705
+ return /* @__PURE__ */ (0, G.jsxs)("div", {
3323
3706
  className: e.divSearch,
3324
- children: [/* @__PURE__ */ (0, Y.jsx)(ln, {
3707
+ children: [/* @__PURE__ */ (0, G.jsx)(Rn, {
3325
3708
  onChange: (e) => r(e.target.value),
3326
3709
  value: n,
3327
3710
  responsive: s,
@@ -3329,18 +3712,18 @@ var Ft = ["onEntering"], It = [
3329
3712
  borderColor: "var(--search-border-color)",
3330
3713
  color: "var(--search-font-color)"
3331
3714
  }
3332
- }), l && /* @__PURE__ */ (0, Y.jsx)(dn, {
3715
+ }), l && /* @__PURE__ */ (0, G.jsx)(Bn, {
3333
3716
  isAllCollapsed: u,
3334
3717
  clickCallback: o
3335
3718
  })]
3336
3719
  });
3337
- }, pn = (e, t) => {
3720
+ }, Hn = (e, t) => {
3338
3721
  let { type: n } = e;
3339
3722
  return n === "category" && e.children ? {
3340
3723
  ...e,
3341
3724
  children: e.children.filter((e) => t(e))
3342
3725
  } : e;
3343
- }, mn = (e, t) => {
3726
+ }, Un = (e, t) => {
3344
3727
  let { type: n } = e;
3345
3728
  switch (n) {
3346
3729
  case "category": {
@@ -3355,17 +3738,17 @@ var Ft = ["onEntering"], It = [
3355
3738
  return i.includes(t) || !!a?.includes(t);
3356
3739
  }
3357
3740
  }
3358
- }, hn = (e, t) => {
3359
- let n = (e) => mn(e, t);
3360
- return e.map((e) => pn(e, n)).filter(n);
3361
- }, gn = (e) => {
3741
+ }, Wn = (e, t) => {
3742
+ let n = (e) => Un(e, t);
3743
+ return e.map((e) => Hn(e, n)).filter(n);
3744
+ }, Gn = (e) => {
3362
3745
  let t = e.reduce((e, t) => e + Number("isChecked" in t && t.isChecked === !0), 0);
3363
3746
  switch (!0) {
3364
3747
  case t === e.length: return "full";
3365
3748
  case t > 0: return "partial";
3366
3749
  default: return "none";
3367
3750
  }
3368
- }, _n = m({
3751
+ }, Kn = d({
3369
3752
  container: {
3370
3753
  position: "relative",
3371
3754
  display: "flex",
@@ -3406,7 +3789,7 @@ var Ft = ["onEntering"], It = [
3406
3789
  "&[aria-disabled=\"true\"]": { cursor: "default" }
3407
3790
  },
3408
3791
  label: {
3409
- ...f.normal13,
3792
+ ...S.normal13,
3410
3793
  color: n.grey1,
3411
3794
  cursor: "pointer",
3412
3795
  marginLeft: 8,
@@ -3418,110 +3801,110 @@ var Ft = ["onEntering"], It = [
3418
3801
  cursor: "default"
3419
3802
  }
3420
3803
  }
3421
- }), vn = {
3804
+ }), qn = {
3422
3805
  checkMarkColor: n.mainBrightPink,
3423
3806
  disabled: !1,
3424
3807
  readOnly: !1,
3425
3808
  size: 16,
3426
3809
  styles: {},
3427
3810
  tabIndex: 0
3428
- }, yn = ({ value: e, size: t, fill: i = n.mainBrightPink }) => {
3811
+ }, Jn = ({ value: e, size: t, fill: r = n.mainBrightPink }) => {
3429
3812
  switch (e) {
3430
- case "full": return /* @__PURE__ */ (0, Y.jsx)(r, {
3431
- fill: i,
3813
+ case "full": return /* @__PURE__ */ (0, G.jsx)(a, {
3814
+ fill: r,
3432
3815
  size: t
3433
3816
  });
3434
- case "partial": return /* @__PURE__ */ (0, Y.jsx)(y, {
3435
- fill: i,
3817
+ case "partial": return /* @__PURE__ */ (0, G.jsx)(s, {
3818
+ fill: r,
3436
3819
  size: t
3437
3820
  });
3438
3821
  default: return null;
3439
3822
  }
3440
- }, bn = (e) => {
3823
+ }, Yn = (e) => {
3441
3824
  switch (e) {
3442
3825
  case "full": return "none";
3443
3826
  case "partial": return "none";
3444
3827
  case "none": return "full";
3445
3828
  }
3446
- }, xn = (e) => {
3447
- let { value: t, onChange: n, checkMarkColor: r, disabled: a, readOnly: o, size: s, styles: c, tabIndex: l, label: u, testId: d } = {
3448
- ...vn,
3829
+ }, Xn = (e) => {
3830
+ let { value: t, onChange: n, checkMarkColor: r, disabled: i, readOnly: a, size: o, styles: s, tabIndex: c, label: l, testId: u } = {
3831
+ ...qn,
3449
3832
  ...e
3450
- }, f = (e) => {
3833
+ }, d = (e) => {
3451
3834
  e.stopPropagation();
3452
- let r = bn(t);
3453
- !a && !o && n(r);
3454
- }, p = (e) => {
3455
- e.key === "Enter" && (e.preventDefault(), f(e));
3456
- }, m = _n();
3457
- return /* @__PURE__ */ (0, Y.jsxs)("div", {
3458
- onClick: f,
3459
- className: i({
3460
- [m.container]: !0,
3461
- [m.checkboxWithLabel]: !!u
3835
+ let r = Yn(t);
3836
+ !i && !a && n(r);
3837
+ }, f = (e) => {
3838
+ e.key === "Enter" && (e.preventDefault(), d(e));
3839
+ }, p = Kn();
3840
+ return /* @__PURE__ */ (0, G.jsxs)("div", {
3841
+ onClick: d,
3842
+ className: C({
3843
+ [p.container]: !0,
3844
+ [p.checkboxWithLabel]: !!l
3462
3845
  }),
3463
- "data-testid": d,
3464
- children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
3465
- className: i({
3466
- [m.checkboxContainer]: !0,
3467
- [m.checkboxWithLabel]: !!u
3846
+ "data-testid": u,
3847
+ children: [/* @__PURE__ */ (0, G.jsxs)("div", {
3848
+ className: C({
3849
+ [p.checkboxContainer]: !0,
3850
+ [p.checkboxWithLabel]: !!l
3468
3851
  }),
3469
- children: [/* @__PURE__ */ (0, Y.jsx)("input", {
3852
+ children: [/* @__PURE__ */ (0, G.jsx)("input", {
3470
3853
  type: "checkbox",
3471
- "aria-disabled": a,
3472
- "aria-readonly": o,
3854
+ "aria-disabled": i,
3855
+ "aria-readonly": a,
3473
3856
  "aria-checked": t === "full" ? "true" : t === "partial" ? "mixed" : "false",
3474
3857
  style: {
3475
- ...c,
3476
- height: s,
3477
- width: s
3858
+ ...s,
3859
+ height: o,
3860
+ width: o
3478
3861
  },
3479
- tabIndex: l,
3480
- onKeyDown: p,
3481
- className: i({
3482
- [m.checkbox]: !0,
3483
- [m.checkboxUnchecked]: t === "none",
3484
- [m.checkboxChecked]: t === "full" || t === "partial"
3862
+ tabIndex: c,
3863
+ onKeyDown: f,
3864
+ className: C({
3865
+ [p.checkbox]: !0,
3866
+ [p.checkboxUnchecked]: t === "none",
3867
+ [p.checkboxChecked]: t === "full" || t === "partial"
3485
3868
  })
3486
- }), /* @__PURE__ */ (0, Y.jsx)("div", {
3487
- "aria-disabled": a,
3488
- className: m.checkmark,
3489
- children: /* @__PURE__ */ (0, Y.jsx)(yn, {
3869
+ }), /* @__PURE__ */ (0, G.jsx)("div", {
3870
+ "aria-disabled": i,
3871
+ className: p.checkmark,
3872
+ children: /* @__PURE__ */ (0, G.jsx)(Jn, {
3490
3873
  value: t,
3491
- size: s,
3874
+ size: o,
3492
3875
  fill: r
3493
3876
  })
3494
3877
  })]
3495
- }), u ? /* @__PURE__ */ (0, Y.jsx)("span", {
3496
- className: i({
3497
- [m.label]: !0,
3498
- disabled: a
3878
+ }), l ? /* @__PURE__ */ (0, G.jsx)("span", {
3879
+ className: C({
3880
+ [p.label]: !0,
3881
+ disabled: i
3499
3882
  }),
3500
3883
  "data-testid": "checkbox-label",
3501
- onClick: f,
3502
- children: u
3884
+ onClick: d,
3885
+ children: l
3503
3886
  }) : null]
3504
3887
  });
3505
- }, Sn = ({ classNames: e, options: t, searchPhrase: n, autoFocus: r, renderOption: i }) => {
3506
- let a = n.toLocaleLowerCase(), o = hn(t, a);
3507
- return /* @__PURE__ */ (0, Y.jsx)("div", {
3888
+ }, Zn = ({ classNames: e, options: t, searchPhrase: n, autoFocus: r, renderOption: i }) => {
3889
+ let a = n.toLocaleLowerCase(), o = Wn(t, a);
3890
+ return /* @__PURE__ */ (0, G.jsx)("div", {
3508
3891
  className: e.divOptions,
3509
- onKeyDown: Gt,
3892
+ onKeyDown: xn,
3510
3893
  ref: r,
3511
3894
  role: "menu",
3512
- children: o.map((e) => /* @__PURE__ */ (0, Y.jsx)(J.Fragment, { children: i(e, a) }, e.key))
3895
+ children: o.map((e) => /* @__PURE__ */ (0, G.jsx)(W.Fragment, { children: i(e, a) }, e.key))
3513
3896
  });
3514
- }, Cn = (e) => /* @__PURE__ */ (0, Y.jsx)(Sn, {
3897
+ }, Qn = (e) => /* @__PURE__ */ (0, G.jsx)(Zn, {
3515
3898
  classNames: e.classNames,
3516
3899
  options: e.options,
3517
3900
  searchPhrase: e.searchPhrase,
3518
3901
  autoFocus: e.autoFocus,
3519
- renderOption: (t, n) => /* @__PURE__ */ (0, Y.jsx)(Un, {
3902
+ renderOption: (t, n) => /* @__PURE__ */ (0, G.jsx)(vr, {
3520
3903
  ...e,
3521
3904
  option: t,
3522
3905
  searchPhrase: n
3523
3906
  })
3524
- }), wn = m({
3907
+ }), $n = d({
3525
3908
  container: {
3526
3909
  position: "relative",
3527
3910
  display: "flex",
@@ -3546,7 +3929,7 @@ var Ft = ["onEntering"], It = [
3546
3929
  position: "absolute",
3547
3930
  cursor: "pointer"
3548
3931
  }
3549
- }), Tn = {
3932
+ }), er = {
3550
3933
  onClick: null,
3551
3934
  checkedType: "none",
3552
3935
  checkMarkColor: n.mainBrightPink,
@@ -3555,96 +3938,96 @@ var Ft = ["onEntering"], It = [
3555
3938
  size: 16,
3556
3939
  styles: {},
3557
3940
  tabIndex: 0
3558
- }, En = ({ checkedType: e, size: t, fill: i = n.mainBrightPink }) => {
3941
+ }, tr = ({ checkedType: e, size: t, fill: r = n.mainBrightPink }) => {
3559
3942
  switch (e) {
3560
- case "full": return /* @__PURE__ */ (0, Y.jsx)(r, {
3561
- fill: i,
3943
+ case "full": return /* @__PURE__ */ (0, G.jsx)(a, {
3944
+ fill: r,
3562
3945
  size: t
3563
3946
  });
3564
- case "partial": return /* @__PURE__ */ (0, Y.jsx)(y, {
3565
- fill: i,
3947
+ case "partial": return /* @__PURE__ */ (0, G.jsx)(s, {
3948
+ fill: r,
3566
3949
  size: t
3567
3950
  });
3568
3951
  default: return null;
3569
3952
  }
3570
- }, Dn = (e) => {
3571
- let { onClick: t, checkedType: n, checkMarkColor: r, disabled: a, readOnly: o, size: s, styles: c, tabIndex: l } = {
3572
- ...Tn,
3953
+ }, nr = (e) => {
3954
+ let { onClick: t, checkedType: n, checkMarkColor: r, disabled: i, readOnly: a, size: o, styles: s, tabIndex: c } = {
3955
+ ...er,
3573
3956
  ...e
3574
- }, u = n !== "none", d = (e) => {
3575
- t && (e.stopPropagation(), !a && !o && t(e));
3576
- }, f = (e) => {
3577
- e.key === "Enter" && (e.preventDefault(), d(e));
3578
- }, p = wn(), m = c?.borderWidth !== void 0 && !!c?.borderColor && !!c?.borderStyle;
3579
- return /* @__PURE__ */ (0, Y.jsxs)("div", {
3580
- className: p.container,
3581
- style: { height: s },
3582
- onClick: d,
3583
- children: [/* @__PURE__ */ (0, Y.jsx)("input", {
3957
+ }, l = n !== "none", u = (e) => {
3958
+ t && (e.stopPropagation(), !i && !a && t(e));
3959
+ }, d = (e) => {
3960
+ e.key === "Enter" && (e.preventDefault(), u(e));
3961
+ }, f = $n(), p = s?.borderWidth !== void 0 && !!s?.borderColor && !!s?.borderStyle;
3962
+ return /* @__PURE__ */ (0, G.jsxs)("div", {
3963
+ className: f.container,
3964
+ style: { height: o },
3965
+ onClick: u,
3966
+ children: [/* @__PURE__ */ (0, G.jsx)("input", {
3584
3967
  type: "checkbox",
3585
- "aria-disabled": a,
3586
- "aria-readonly": o,
3587
- "aria-checked": u,
3968
+ "aria-disabled": i,
3969
+ "aria-readonly": a,
3970
+ "aria-checked": l,
3588
3971
  style: {
3589
- ...c,
3590
- height: s,
3591
- width: s
3972
+ ...s,
3973
+ height: o,
3974
+ width: o
3592
3975
  },
3593
- tabIndex: l,
3594
- onKeyDown: f,
3595
- className: i({
3596
- [p.checkbox]: !0,
3597
- [p.checkboxUnchecked]: !u,
3598
- [p.checkboxChecked]: !m && u
3976
+ tabIndex: c,
3977
+ onKeyDown: d,
3978
+ className: C({
3979
+ [f.checkbox]: !0,
3980
+ [f.checkboxUnchecked]: !l,
3981
+ [f.checkboxChecked]: !p && l
3599
3982
  })
3600
- }), /* @__PURE__ */ (0, Y.jsx)("div", {
3601
- className: p.checkmark,
3602
- children: /* @__PURE__ */ (0, Y.jsx)(En, {
3983
+ }), /* @__PURE__ */ (0, G.jsx)("div", {
3984
+ className: f.checkmark,
3985
+ children: /* @__PURE__ */ (0, G.jsx)(tr, {
3603
3986
  checkedType: n,
3604
- size: s,
3987
+ size: o,
3605
3988
  fill: r
3606
3989
  })
3607
3990
  })]
3608
3991
  });
3609
- }, On = ({ onCheck: e, checked: t, disabled: n, size: r }) => e ? /* @__PURE__ */ (0, Y.jsx)(Dn, {
3992
+ }, rr = ({ onCheck: e, checked: t, disabled: n, size: r }) => e ? /* @__PURE__ */ (0, G.jsx)(nr, {
3610
3993
  onClick: e,
3611
3994
  checkedType: t,
3612
3995
  disabled: n,
3613
3996
  size: r
3614
- }) : null, kn = ({ multiSelect: e = !1, ...t }) => {
3615
- let n = x(), r = t.responsive ? re(16, n.height, n.width) : 16;
3616
- return /* @__PURE__ */ (0, Y.jsx)(An, {
3997
+ }) : null, ir = ({ multiSelect: e = !1, ...t }) => {
3998
+ let n = x(), r = t.responsive ? _e(16, n.height, n.width) : 16;
3999
+ return /* @__PURE__ */ (0, G.jsx)(ar, {
3617
4000
  ...t,
3618
4001
  appearance: "legacy",
3619
4002
  pickedOptionsIds: void 0,
3620
- renderOptions: (t, n) => /* @__PURE__ */ (0, Y.jsx)(Sn, {
4003
+ renderOptions: (t, n) => /* @__PURE__ */ (0, G.jsx)(Zn, {
3621
4004
  ...t,
3622
- renderOption: (i, a) => /* @__PURE__ */ (0, Y.jsx)(Hn, {
4005
+ renderOption: (i, a) => /* @__PURE__ */ (0, G.jsx)(_r, {
3623
4006
  ...t,
3624
4007
  option: i,
3625
4008
  searchPhrase: a,
3626
4009
  multiSelect: !n && e,
3627
4010
  appearance: "legacy",
3628
- renderCheckbox: (e, t) => e.type !== "divider" && e.onCheck ? /* @__PURE__ */ (0, Y.jsx)(On, {
4011
+ renderCheckbox: (e, t) => e.type !== "divider" && e.onCheck ? /* @__PURE__ */ (0, G.jsx)(rr, {
3629
4012
  onCheck: e.onCheck,
3630
4013
  checked: t,
3631
4014
  disabled: e.disabled ?? !1,
3632
4015
  size: r
3633
4016
  }) : null,
3634
- renderSubmenu: (e) => /* @__PURE__ */ (0, Y.jsx)(Mn, {
4017
+ renderSubmenu: (e) => /* @__PURE__ */ (0, G.jsx)(sr, {
3635
4018
  ...e,
3636
4019
  appearance: "legacy"
3637
4020
  })
3638
4021
  })
3639
4022
  })
3640
4023
  });
3641
- }, An = ({ actions: e = [], onClose: t, onCloseClick: n = t, options: r, stickyOptions: i, searchEnabled: o = !1, style: s = {}, cssVariables: c, header: l, pickedOptionsIds: u, responsive: d, appearance: f = "default", renderOptions: p }) => {
3642
- let m = a(), h = tn(d, { appearance: f }), [g, _] = (0, J.useState)({}), [v, y] = (0, J.useState)({}), [b, x] = (0, J.useState)(""), S = (e) => {
4024
+ }, ar = ({ actions: e = [], onClose: t, onCloseClick: n = t, options: r, stickyOptions: a, searchEnabled: o = !1, style: s = {}, cssVariables: c, header: l, pickedOptionsIds: u, responsive: d, appearance: f = "default", renderOptions: p }) => {
4025
+ let m = i(), h = jn(d, { appearance: f }), [g, _] = (0, W.useState)({}), [v, y] = (0, W.useState)({}), [b, x] = (0, W.useState)(""), S = (e) => {
3643
4026
  x(e), y({});
3644
4027
  }, C = {
3645
- ...Jt,
4028
+ ...wn,
3646
4029
  ...c
3647
- }, w = Yt(C, { appearance: f }), T = {
4030
+ }, w = Tn(C, { appearance: f }), T = {
3648
4031
  ...C,
3649
4032
  ...w
3650
4033
  }, E = (e) => {
@@ -3663,7 +4046,7 @@ var Ft = ["onEntering"], It = [
3663
4046
  default: e.currentTarget.querySelector("input")?.focus();
3664
4047
  }
3665
4048
  };
3666
- return /* @__PURE__ */ (0, Y.jsxs)("div", {
4049
+ return /* @__PURE__ */ (0, G.jsxs)("div", {
3667
4050
  style: {
3668
4051
  ...T,
3669
4052
  ...s
@@ -3674,7 +4057,7 @@ var Ft = ["onEntering"], It = [
3674
4057
  },
3675
4058
  onKeyDown: D,
3676
4059
  children: [
3677
- l ? /* @__PURE__ */ (0, Y.jsxs)("div", {
4060
+ l ? /* @__PURE__ */ (0, G.jsxs)("div", {
3678
4061
  className: h.header,
3679
4062
  children: [
3680
4063
  " ",
@@ -3682,9 +4065,9 @@ var Ft = ["onEntering"], It = [
3682
4065
  " "
3683
4066
  ]
3684
4067
  }) : null,
3685
- i?.length ? p({
4068
+ a?.length ? p({
3686
4069
  classNames: h,
3687
- options: i,
4070
+ options: a,
3688
4071
  searchPhrase: "",
3689
4072
  collapsed: g,
3690
4073
  setCollapsed: _,
@@ -3693,7 +4076,7 @@ var Ft = ["onEntering"], It = [
3693
4076
  onCloseClick: n,
3694
4077
  autoFocus: m
3695
4078
  }, !0) : null,
3696
- /* @__PURE__ */ (0, Y.jsx)(fn, {
4079
+ /* @__PURE__ */ (0, G.jsx)(Vn, {
3697
4080
  searchEnabled: o,
3698
4081
  searchPhrase: b,
3699
4082
  onChange: S,
@@ -3716,16 +4099,16 @@ var Ft = ["onEntering"], It = [
3716
4099
  onCloseClick: n,
3717
4100
  pickedOptionsIds: u
3718
4101
  }, !1),
3719
- /* @__PURE__ */ (0, Y.jsx)(an, {
4102
+ /* @__PURE__ */ (0, G.jsx)(Pn, {
3720
4103
  actions: e,
3721
4104
  classNames: h
3722
4105
  })
3723
4106
  ]
3724
4107
  });
3725
- }, jn = (e) => e.appearance === "legacy" ? /* @__PURE__ */ (0, Y.jsx)(kn, { ...e }) : /* @__PURE__ */ (0, Y.jsx)(An, {
4108
+ }, or = (e) => e.appearance === "legacy" ? /* @__PURE__ */ (0, G.jsx)(ir, { ...e }) : /* @__PURE__ */ (0, G.jsx)(ar, {
3726
4109
  ...e,
3727
- renderOptions: (e) => /* @__PURE__ */ (0, Y.jsx)(Cn, { ...e })
3728
- }), Mn = ({ actions: e = [], anchorEl: t, anchorPosition: n, cssVariables: r, onClose: i, onCloseClick: a, options: o, searchEnabled: s = !1, style: c = {}, pickedOptionsIds: l, header: u, menuStyle: d, responsive: f, appearance: p, ...m }) => {
4110
+ renderOptions: (e) => /* @__PURE__ */ (0, G.jsx)(Qn, { ...e })
4111
+ }), sr = ({ actions: e = [], anchorEl: t, anchorPosition: n, cssVariables: r, onClose: i, onCloseClick: a, options: o, searchEnabled: s = !1, style: c = {}, pickedOptionsIds: l, header: u, menuStyle: d, responsive: f, appearance: p, ...m }) => {
3729
4112
  let h = {
3730
4113
  header: u,
3731
4114
  actions: e,
@@ -3737,28 +4120,28 @@ var Ft = ["onEntering"], It = [
3737
4120
  cssVariables: r,
3738
4121
  responsive: f
3739
4122
  };
3740
- return /* @__PURE__ */ (0, Y.jsx)(Ut, {
4123
+ return /* @__PURE__ */ (0, G.jsx)(bn, {
3741
4124
  ...m,
3742
4125
  anchorEl: t,
3743
4126
  anchorPosition: n,
3744
- MenuListProps: {
4127
+ slotProps: { list: {
3745
4128
  role: void 0,
3746
4129
  tabIndex: void 0
3747
- },
4130
+ } },
3748
4131
  onClose: i,
3749
4132
  open: !!t || !!n,
3750
4133
  style: d,
3751
- children: p === "legacy" ? /* @__PURE__ */ (0, Y.jsx)(jn, {
4134
+ children: p === "legacy" ? /* @__PURE__ */ (0, G.jsx)(or, {
3752
4135
  ...h,
3753
4136
  options: o,
3754
4137
  appearance: "legacy"
3755
- }) : /* @__PURE__ */ (0, Y.jsx)(jn, {
4138
+ }) : /* @__PURE__ */ (0, G.jsx)(or, {
3756
4139
  ...h,
3757
4140
  options: o
3758
4141
  })
3759
4142
  });
3760
- }, $ = ({ icon: e }) => e ? /* @__PURE__ */ (0, Y.jsx)("div", { children: e }) : null, Nn = m({ span: { fontWeight: "bold" } }), Pn = (e, t) => {
3761
- let n = Nn();
4143
+ }, $ = ({ icon: e }) => e ? /* @__PURE__ */ (0, G.jsx)("div", { children: e }) : null, cr = d({ span: { fontWeight: "bold" } }), lr = (e, t) => {
4144
+ let n = cr();
3762
4145
  if (!e) return [{ children: t }];
3763
4146
  let r = e.toLocaleLowerCase(), i = t.toLocaleLowerCase(), a = [], o = 0;
3764
4147
  for (; o < t.length;) {
@@ -3774,147 +4157,147 @@ var Ft = ["onEntering"], It = [
3774
4157
  }
3775
4158
  }
3776
4159
  return a;
3777
- }, Fn = ({ children: e, phrase: t }) => /* @__PURE__ */ (0, Y.jsx)(Y.Fragment, { children: Pn(t, e).map((e, t) => /* @__PURE__ */ (0, Y.jsx)("span", { ...e }, t)) }), In = ({ classNames: e, label: t, searchPhrase: n, color: r }) => {
3778
- let i = r ? { color: qt(r) ?? void 0 } : {};
3779
- return /* @__PURE__ */ (0, Y.jsx)("div", {
4160
+ }, ur = ({ children: e, phrase: t }) => /* @__PURE__ */ (0, G.jsx)(G.Fragment, { children: lr(t, e).map((e, t) => /* @__PURE__ */ (0, G.jsx)("span", { ...e }, t)) }), dr = ({ classNames: e, label: t, searchPhrase: n, color: r }) => {
4161
+ let i = r ? { color: Cn(r) ?? void 0 } : {};
4162
+ return /* @__PURE__ */ (0, G.jsx)("div", {
3780
4163
  "data-ellipsis": !0,
3781
4164
  className: e.divOptionsOptionOptionLabel,
3782
4165
  style: i,
3783
- children: typeof t == "string" ? /* @__PURE__ */ (0, Y.jsx)(Fn, {
4166
+ children: typeof t == "string" ? /* @__PURE__ */ (0, G.jsx)(ur, {
3784
4167
  phrase: n,
3785
4168
  children: t
3786
4169
  }) : t
3787
4170
  });
3788
- }, Ln = ({ tooltipTitle: e }) => e ? /* @__PURE__ */ (0, Y.jsx)(W, {
4171
+ }, fr = ({ tooltipTitle: e }) => e ? /* @__PURE__ */ (0, G.jsx)(le, {
3789
4172
  title: e,
3790
- children: /* @__PURE__ */ (0, Y.jsx)("div", { children: /* @__PURE__ */ (0, Y.jsx)(_, {}) })
3791
- }) : null, Rn = ({ classNames: e, option: t, setOpenedElement: n, collapsed: r, setCollapsed: a, searchPhrase: o, checkbox: s, renderOption: c }) => {
3792
- let { children: l, disabled: u = !1, label: f, tooltip: p, key: m } = t;
3793
- return /* @__PURE__ */ (0, Y.jsxs)(J.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)(G, {
3794
- title: f,
3795
- children: /* @__PURE__ */ (0, Y.jsxs)("div", {
3796
- "aria-disabled": u,
3797
- "aria-expanded": !r[m],
3798
- className: i({
4173
+ children: /* @__PURE__ */ (0, G.jsx)("div", { children: /* @__PURE__ */ (0, G.jsx)(v, {}) })
4174
+ }) : null, pr = ({ classNames: e, option: t, setOpenedElement: n, collapsed: r, setCollapsed: i, searchPhrase: a, checkbox: o, renderOption: s }) => {
4175
+ let { children: c, disabled: l = !1, label: d, tooltip: f, key: p } = t;
4176
+ return /* @__PURE__ */ (0, G.jsxs)(W.Fragment, { children: [/* @__PURE__ */ (0, G.jsx)(fe, {
4177
+ title: d,
4178
+ children: /* @__PURE__ */ (0, G.jsxs)("div", {
4179
+ "aria-disabled": l,
4180
+ "aria-expanded": !r[p],
4181
+ className: C({
3799
4182
  [e.divOptionsOption]: !0,
3800
4183
  [e.divOptionsOptionCategory]: !0
3801
4184
  }),
3802
4185
  onClick: () => {
3803
- a({
4186
+ i({
3804
4187
  ...r,
3805
- [m]: !r[m]
4188
+ [p]: !r[p]
3806
4189
  }), n({});
3807
4190
  },
3808
- onKeyDown: Wt,
4191
+ onKeyDown: Z,
3809
4192
  role: "menuitem",
3810
- tabIndex: u ? void 0 : 0,
4193
+ tabIndex: l ? void 0 : 0,
3811
4194
  children: [
3812
- s,
3813
- /* @__PURE__ */ (0, Y.jsx)(In, {
3814
- label: f,
3815
- searchPhrase: o,
4195
+ o,
4196
+ /* @__PURE__ */ (0, G.jsx)(dr, {
4197
+ label: d,
4198
+ searchPhrase: a,
3816
4199
  classNames: e
3817
4200
  }),
3818
- /* @__PURE__ */ (0, Y.jsx)(Ln, { tooltipTitle: p }),
3819
- /* @__PURE__ */ (0, Y.jsx)($, { icon: r[m] ? /* @__PURE__ */ (0, Y.jsx)(d, {}) : /* @__PURE__ */ (0, Y.jsx)(g, {}) })
4201
+ /* @__PURE__ */ (0, G.jsx)(fr, { tooltipTitle: f }),
4202
+ /* @__PURE__ */ (0, G.jsx)($, { icon: r[p] ? /* @__PURE__ */ (0, G.jsx)(u, {}) : /* @__PURE__ */ (0, G.jsx)(h, {}) })
3820
4203
  ]
3821
4204
  })
3822
- }), r[m] ? null : l.map(c)] }, m);
3823
- }, zn = ({ classNames: e, option: t }) => /* @__PURE__ */ (0, Y.jsx)("div", {
3824
- className: i({
4205
+ }), r[p] ? null : c.map(s)] }, p);
4206
+ }, mr = ({ classNames: e, option: t }) => /* @__PURE__ */ (0, G.jsx)("div", {
4207
+ className: C({
3825
4208
  [e.divOptionsOption]: !0,
3826
4209
  [e.divOptionsOptionDivider]: !0
3827
4210
  }),
3828
4211
  role: "separator"
3829
- }, t.key), Bn = ({ children: e, classNames: t, option: n, onClick: r }) => {
3830
- let { disabled: a = !1, label: o, key: s, color: c } = n;
3831
- return /* @__PURE__ */ (0, Y.jsx)(G, {
3832
- title: o,
3833
- children: /* @__PURE__ */ (0, Y.jsx)("div", {
3834
- style: { backgroundColor: c || void 0 },
3835
- "aria-disabled": a,
3836
- className: i({
4212
+ }, t.key), hr = ({ children: e, classNames: t, option: n, onClick: r }) => {
4213
+ let { disabled: i = !1, label: a, key: o, color: s } = n;
4214
+ return /* @__PURE__ */ (0, G.jsx)(fe, {
4215
+ title: a,
4216
+ children: /* @__PURE__ */ (0, G.jsx)("div", {
4217
+ style: { backgroundColor: s || void 0 },
4218
+ "aria-disabled": i,
4219
+ className: C({
3837
4220
  [t.divOptionsOption]: !0,
3838
4221
  [t.divOptionsOptionOption]: !0
3839
4222
  }),
3840
4223
  onClick: r,
3841
- onKeyDown: Wt,
4224
+ onKeyDown: Z,
3842
4225
  role: "menuitem",
3843
- tabIndex: a ? void 0 : 0,
4226
+ tabIndex: i ? void 0 : 0,
3844
4227
  children: e
3845
4228
  })
3846
- }, s);
3847
- }, Vn = (e) => {
3848
- let t = e.option, n = e.classNames, { openedElement: i, setOpenedElement: a, onCloseClick: o, pickedOptionsIds: c, checkbox: l, multiSelect: u = !1, appearance: d = "default", renderSubmenu: f } = e, { children: p = [], disabled: m = !1, icon: h = {}, label: g, onClick: _, tooltip: v, key: y, color: b } = t, x = c?.includes(y), S = b ? qt(b) : s.fill, C = h.right ?? (x ? /* @__PURE__ */ (0, Y.jsx)(r, { fill: S ?? void 0 }) : null), w = s.size, T = !!C, E;
3849
- return p.length ? (E = (e) => {
3850
- m || a({ [y]: e.currentTarget });
3851
- }, /* @__PURE__ */ (0, Y.jsxs)(J.Fragment, { children: [/* @__PURE__ */ (0, Y.jsxs)(Bn, {
4229
+ }, o);
4230
+ }, gr = (e) => {
4231
+ let t = e.option, n = e.classNames, { openedElement: r, setOpenedElement: i, onCloseClick: o, pickedOptionsIds: s, checkbox: c, multiSelect: l = !1, appearance: u = "default", renderSubmenu: d } = e, { children: f = [], disabled: p = !1, icon: m = {}, label: h, onClick: g, tooltip: v, key: y, color: b } = t, x = s?.includes(y), S = b ? Cn(b) : _.fill, C = m.right ?? (x ? /* @__PURE__ */ (0, G.jsx)(a, { fill: S ?? void 0 }) : null), w = _.size, T = !!C, E;
4232
+ return f.length ? (E = (e) => {
4233
+ p || i({ [y]: e.currentTarget });
4234
+ }, /* @__PURE__ */ (0, G.jsxs)(W.Fragment, { children: [/* @__PURE__ */ (0, G.jsxs)(hr, {
3852
4235
  ...e,
3853
4236
  onClick: E,
3854
4237
  children: [
3855
- /* @__PURE__ */ (0, Y.jsx)($, { icon: h.left }),
3856
- /* @__PURE__ */ (0, Y.jsx)(In, {
3857
- label: g,
4238
+ /* @__PURE__ */ (0, G.jsx)($, { icon: m.left }),
4239
+ /* @__PURE__ */ (0, G.jsx)(dr, {
4240
+ label: h,
3858
4241
  classNames: n,
3859
4242
  color: b
3860
4243
  }),
3861
- /* @__PURE__ */ (0, Y.jsx)(Ln, { tooltipTitle: v }),
3862
- /* @__PURE__ */ (0, Y.jsx)($, { icon: C })
4244
+ /* @__PURE__ */ (0, G.jsx)(fr, { tooltipTitle: v }),
4245
+ /* @__PURE__ */ (0, G.jsx)($, { icon: C })
3863
4246
  ]
3864
- }), f({
3865
- anchorEl: i[y],
4247
+ }), d({
4248
+ anchorEl: r[y],
3866
4249
  anchorOrigin: {
3867
4250
  horizontal: "left",
3868
4251
  vertical: "top"
3869
4252
  },
3870
4253
  onClose: () => {
3871
- a({});
4254
+ i({});
3872
4255
  },
3873
4256
  onCloseClick: (e) => {
3874
- o(e), a({});
4257
+ o(e), i({});
3875
4258
  },
3876
- options: p,
4259
+ options: f,
3877
4260
  transformOrigin: {
3878
4261
  horizontal: "right",
3879
4262
  vertical: "top"
3880
4263
  }
3881
4264
  })] }, y)) : (E = (e) => {
3882
- m || (_?.(e), !u && !l && o(e));
3883
- }, /* @__PURE__ */ (0, Y.jsxs)(Bn, {
4265
+ p || (g?.(e), !l && !c && o(e));
4266
+ }, /* @__PURE__ */ (0, G.jsxs)(hr, {
3884
4267
  ...e,
3885
4268
  onClick: E,
3886
4269
  children: [
3887
- t.checkboxPosition !== ae.right && l,
3888
- /* @__PURE__ */ (0, Y.jsx)($, { icon: h.left }),
3889
- /* @__PURE__ */ (0, Y.jsx)(In, {
3890
- label: g,
4270
+ t.checkboxPosition !== ye.right && c,
4271
+ /* @__PURE__ */ (0, G.jsx)($, { icon: m.left }),
4272
+ /* @__PURE__ */ (0, G.jsx)(dr, {
4273
+ label: h,
3891
4274
  classNames: n,
3892
4275
  color: b
3893
4276
  }),
3894
- /* @__PURE__ */ (0, Y.jsx)(Ln, { tooltipTitle: v }),
3895
- T ? /* @__PURE__ */ (0, Y.jsx)($, { icon: C }) : d === "default" ? /* @__PURE__ */ (0, Y.jsx)("div", {
4277
+ /* @__PURE__ */ (0, G.jsx)(fr, { tooltipTitle: v }),
4278
+ T ? /* @__PURE__ */ (0, G.jsx)($, { icon: C }) : u === "default" ? /* @__PURE__ */ (0, G.jsx)("div", {
3896
4279
  style: { width: w },
3897
4280
  "aria-hidden": !0
3898
4281
  }) : null,
3899
- t.checkboxPosition === ae.right && l
4282
+ t.checkboxPosition === ye.right && c
3900
4283
  ]
3901
4284
  }));
3902
- }, Hn = (e) => {
4285
+ }, _r = (e) => {
3903
4286
  let { option: t, renderCheckbox: n, renderSubmenu: r } = e;
3904
4287
  switch (t.type) {
3905
- case "category": return /* @__PURE__ */ (0, Y.jsx)(Rn, {
4288
+ case "category": return /* @__PURE__ */ (0, G.jsx)(pr, {
3906
4289
  ...e,
3907
4290
  option: t,
3908
- checkbox: t.onCheck ? n(t, gn(t.children)) : null,
3909
- renderOption: (t) => /* @__PURE__ */ (0, J.createElement)(Hn, {
4291
+ checkbox: t.onCheck ? n(t, Gn(t.children)) : null,
4292
+ renderOption: (t) => /* @__PURE__ */ (0, W.createElement)(_r, {
3910
4293
  ...e,
3911
4294
  key: t.key,
3912
4295
  option: t,
3913
4296
  multiSelect: void 0
3914
4297
  })
3915
4298
  });
3916
- case "divider": return /* @__PURE__ */ (0, Y.jsx)(zn, { ...e });
3917
- case "option": return /* @__PURE__ */ (0, Y.jsx)(Vn, {
4299
+ case "divider": return /* @__PURE__ */ (0, G.jsx)(mr, { ...e });
4300
+ case "option": return /* @__PURE__ */ (0, G.jsx)(gr, {
3918
4301
  ...e,
3919
4302
  option: t,
3920
4303
  checkbox: t.onCheck ? n(t, t.isChecked ? "full" : "none") : null,
@@ -3922,13 +4305,13 @@ var Ft = ["onEntering"], It = [
3922
4305
  });
3923
4306
  default: return null;
3924
4307
  }
3925
- }, Un = (e) => /* @__PURE__ */ (0, Y.jsx)(Hn, {
4308
+ }, vr = (e) => /* @__PURE__ */ (0, G.jsx)(_r, {
3926
4309
  ...e,
3927
- renderCheckbox: (e, t) => e.type !== "divider" && e.onCheck ? /* @__PURE__ */ (0, Y.jsx)(xn, {
4310
+ renderCheckbox: (e, t) => e.type !== "divider" && e.onCheck ? /* @__PURE__ */ (0, G.jsx)(Xn, {
3928
4311
  onChange: e.onCheck,
3929
4312
  value: t,
3930
4313
  disabled: e.disabled ?? !1
3931
4314
  }) : null,
3932
- renderSubmenu: (e) => /* @__PURE__ */ (0, Y.jsx)(Mn, { ...e })
4315
+ renderSubmenu: (e) => /* @__PURE__ */ (0, G.jsx)(sr, { ...e })
3933
4316
  });
3934
- export { q as A, ut as C, Ae as D, Fe as E, pe as M, De as O, ht as S, Re as T, Kt as _, jn as a, Ut as b, hn as c, sn as d, an as f, qt as g, Jt as h, Mn as i, he as j, Se as k, fn as l, Yt as m, zn as n, Dn as o, tn as p, Fn as r, xn as s, Un as t, ln as u, Gt as v, lt as w, Nt as x, Wt as y };
4317
+ export { qe as A, jt as C, xt as D, Tt as E, K as F, ke as I, U as L, Be as M, Le as N, bt as O, Ne as P, Oe as R, Mt as S, Dt as T, Sn as _, or as a, bn as b, Wn as c, In as d, Pn as f, Cn as g, wn as h, sr as i, We as j, rt as k, Vn as l, Tn as m, mr as n, nr as o, jn as p, ur as r, Xn as s, vr as t, Rn as u, xn as v, Et as w, fn as x, Z as y, De as z };