@js-smart/react-kit 5.10.0 → 5.12.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/.editorconfig +13 -0
  2. package/.eslintignore +1 -0
  3. package/.eslintrc.json +41 -0
  4. package/.github/copilot-instructions.md +11 -0
  5. package/.github/workflows/build.yml +45 -0
  6. package/.github/workflows/release.yml +65 -0
  7. package/.prettierignore +5 -0
  8. package/.prettierrc +9 -0
  9. package/.vscode/extensions.json +7 -0
  10. package/CHANGELOG.md +24 -0
  11. package/CODE_OF_CONDUCT.md +128 -0
  12. package/FUNDING.yml +1 -0
  13. package/LICENSE +21 -0
  14. package/README.md +1 -0
  15. package/apps/react-kit-demo/.eslintrc.json +22 -0
  16. package/apps/react-kit-demo/index.html +16 -0
  17. package/apps/react-kit-demo/project.json +9 -0
  18. package/apps/react-kit-demo/public/favicon.ico +0 -0
  19. package/apps/react-kit-demo/src/app/Home.tsx +17 -0
  20. package/apps/react-kit-demo/src/app/all-books/AllBooks.tsx +68 -0
  21. package/apps/react-kit-demo/src/app/app.module.scss +1 -0
  22. package/apps/react-kit-demo/src/app/app.tsx +29 -0
  23. package/apps/react-kit-demo/src/app/buttons/ButtonsDemo.tsx +58 -0
  24. package/apps/react-kit-demo/src/app/dialog/DialogDemo.tsx +23 -0
  25. package/apps/react-kit-demo/src/app/links/LinksDemo.tsx +20 -0
  26. package/apps/react-kit-demo/src/app/progress-bar/CenterCircularProgressDemo.tsx +10 -0
  27. package/apps/react-kit-demo/src/app/react-if/ReactIfDemo.tsx +44 -0
  28. package/apps/react-kit-demo/src/app/snack-bar/SnackBarDemo.tsx +35 -0
  29. package/apps/react-kit-demo/src/assets/.gitkeep +0 -0
  30. package/apps/react-kit-demo/src/constants/ApiConstants.ts +7 -0
  31. package/apps/react-kit-demo/src/constants/DialogMode.ts +2 -0
  32. package/apps/react-kit-demo/src/constants/HttpConstants.ts +18 -0
  33. package/apps/react-kit-demo/src/constants/StateConstants.ts +2 -0
  34. package/apps/react-kit-demo/src/main.tsx +17 -0
  35. package/apps/react-kit-demo/src/routes/Routes.tsx +55 -0
  36. package/apps/react-kit-demo/src/services/BookService.ts +21 -0
  37. package/apps/react-kit-demo/src/styles.scss +36 -0
  38. package/apps/react-kit-demo/src/theme.ts +46 -0
  39. package/apps/react-kit-demo/src/types/Book.ts +8 -0
  40. package/{lib/utils/CssUtils.d.ts → apps/react-kit-demo/src/utils/CssUtils.ts} +3 -1
  41. package/apps/react-kit-demo/tsconfig.app.json +18 -0
  42. package/apps/react-kit-demo/tsconfig.json +21 -0
  43. package/apps/react-kit-demo/tsconfig.spec.json +28 -0
  44. package/apps/react-kit-demo/vite.config.ts +50 -0
  45. package/nx.json +52 -0
  46. package/package.json +99 -44
  47. package/react-kit/.babelrc +12 -0
  48. package/react-kit/.eslintrc.json +18 -0
  49. package/react-kit/README.md +7 -0
  50. package/react-kit/package-lock.json +1330 -0
  51. package/react-kit/package.json +45 -0
  52. package/react-kit/project.json +10 -0
  53. package/{index.d.ts → react-kit/src/index.ts} +9 -0
  54. package/react-kit/src/lib/components/CenteredCircularProgress.tsx +15 -0
  55. package/react-kit/src/lib/components/ConfirmationDialog.tsx +28 -0
  56. package/react-kit/src/lib/components/DismissibleAlert.tsx +60 -0
  57. package/react-kit/src/lib/components/NextLink.tsx +26 -0
  58. package/react-kit/src/lib/components/OpenInNewIconLink.tsx +42 -0
  59. package/react-kit/src/lib/components/ReactIf.tsx +53 -0
  60. package/react-kit/src/lib/components/buttons/CancelButton.tsx +45 -0
  61. package/react-kit/src/lib/components/buttons/DeleteButton.tsx +35 -0
  62. package/react-kit/src/lib/components/buttons/EditIconButton.tsx +23 -0
  63. package/react-kit/src/lib/components/buttons/ExcelButton.tsx +43 -0
  64. package/react-kit/src/lib/components/buttons/GoBackButton.tsx +22 -0
  65. package/react-kit/src/lib/components/buttons/HistoryButton.tsx +45 -0
  66. package/react-kit/src/lib/components/buttons/LoadingSuccessButton.tsx +53 -0
  67. package/react-kit/src/lib/components/buttons/ManageButton.tsx +31 -0
  68. package/react-kit/src/lib/components/buttons/SuccessButton.tsx +44 -0
  69. package/react-kit/src/lib/components/snack-bar/AppSnackBar.tsx +46 -0
  70. package/react-kit/src/lib/components/snack-bar/QuerySnackBar.tsx +62 -0
  71. package/react-kit/src/lib/components/table/TablePaginationActions.tsx +58 -0
  72. package/react-kit/src/lib/components/tabs/TabPanel.tsx +26 -0
  73. package/react-kit/src/lib/constants/AppConstants.ts +17 -0
  74. package/react-kit/src/lib/types/ProgressState.ts +7 -0
  75. package/react-kit/src/lib/utils/BooleanUtils.ts +13 -0
  76. package/react-kit/src/lib/utils/CssUtils.ts +13 -0
  77. package/react-kit/src/lib/utils/DateUtils.ts +43 -0
  78. package/react-kit/src/lib/utils/NumberUtils.ts +12 -0
  79. package/react-kit/src/lib/utils/ProgressStateUtils.ts +68 -0
  80. package/react-kit/src/lib/utils/StringUtils.ts +14 -0
  81. package/react-kit/src/lib/utils/UrlUtils.ts +19 -0
  82. package/react-kit/src/lib/utils/fetchClient.ts +64 -0
  83. package/react-kit/src/tests/buttons/CancelButton.test.tsx +69 -0
  84. package/react-kit/src/tests/buttons/DeleteButton.test.tsx +63 -0
  85. package/react-kit/src/tests/buttons/EditIconButton.test.tsx +34 -0
  86. package/react-kit/src/tests/buttons/HistoryButton.test.tsx +46 -0
  87. package/react-kit/src/tests/buttons/LoadingSuccessButton.test.tsx +53 -0
  88. package/react-kit/src/tests/buttons/ManageButton.test.tsx +49 -0
  89. package/react-kit/src/tests/buttons/SuccessButton.test.tsx +46 -0
  90. package/react-kit/src/tests/snack-bar/AppSnackBar.test.tsx +54 -0
  91. package/react-kit/src/tests/utils/BooleanUtils.test.ts +35 -0
  92. package/react-kit/src/tests/utils/CssUtils.test.ts +17 -0
  93. package/react-kit/src/tests/utils/DateUtils.test.ts +46 -0
  94. package/react-kit/src/tests/utils/NumberUtils.test.ts +19 -0
  95. package/react-kit/src/tests/utils/ProgressStateUtils.test.ts +131 -0
  96. package/react-kit/src/tests/utils/StringUtils.test.ts +33 -0
  97. package/react-kit/src/tests/utils/UrlUtils.test.ts +19 -0
  98. package/react-kit/tsconfig.json +22 -0
  99. package/react-kit/tsconfig.lib.json +24 -0
  100. package/react-kit/tsconfig.spec.json +27 -0
  101. package/react-kit/vite.config.ts +72 -0
  102. package/release.sh +28 -0
  103. package/tsconfig.base.json +22 -0
  104. package/vitest.workspace.js +3 -0
  105. package/vitest.workspace.ts +1 -0
  106. package/index.cjs +0 -74
  107. package/index.js +0 -4120
  108. package/index.mjs +0 -4108
  109. package/lib/components/CenteredCircularProgress.d.ts +0 -7
  110. package/lib/components/ConfirmationDialog.d.ts +0 -11
  111. package/lib/components/DismissibleAlert.d.ts +0 -17
  112. package/lib/components/NextLink.d.ts +0 -17
  113. package/lib/components/OpenInNewIconLink.d.ts +0 -17
  114. package/lib/components/ReactIf.d.ts +0 -36
  115. package/lib/components/buttons/CancelButton.d.ts +0 -28
  116. package/lib/components/buttons/DeleteButton.d.ts +0 -16
  117. package/lib/components/buttons/EditIconButton.d.ts +0 -8
  118. package/lib/components/buttons/ExcelButton.d.ts +0 -26
  119. package/lib/components/buttons/GoBackButton.d.ts +0 -10
  120. package/lib/components/buttons/HistoryButton.d.ts +0 -28
  121. package/lib/components/buttons/LoadingSuccessButton.d.ts +0 -28
  122. package/lib/components/buttons/ManageButton.d.ts +0 -14
  123. package/lib/components/buttons/SuccessButton.d.ts +0 -28
  124. package/lib/components/snack-bar/AppSnackBar.d.ts +0 -6
  125. package/lib/components/snack-bar/QuerySnackBar.d.ts +0 -18
  126. package/lib/components/table/TablePaginationActions.d.ts +0 -9
  127. package/lib/components/tabs/TabPanel.d.ts +0 -12
  128. package/lib/constants/AppConstants.d.ts +0 -15
  129. package/lib/types/ProgressState.d.ts +0 -7
  130. package/lib/utils/BooleanUtils.d.ts +0 -7
  131. package/lib/utils/DateUtils.d.ts +0 -22
  132. package/lib/utils/NumberUtils.d.ts +0 -7
  133. package/lib/utils/ProgressStateUtils.d.ts +0 -38
  134. package/lib/utils/StringUtils.d.ts +0 -7
  135. package/lib/utils/UrlUtils.d.ts +0 -11
  136. package/lib/utils/fetchClient.d.ts +0 -12
package/index.mjs DELETED
@@ -1,4108 +0,0 @@
1
- var Hr = Object.defineProperty;
2
- var Gr = (e, t, r) => t in e ? Hr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var Me = (e, t, r) => Gr(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { jsxs as Se, jsx as v, Fragment as vr } from "react/jsx-runtime";
5
- import { Button as ye, Tooltip as Sr, IconButton as ge, Snackbar as Qe, Alert as ze, Slide as Cr, Box as Er, Typography as Kr, Link as Tr, CircularProgress as qr, Dialog as Qr, DialogTitle as Jr, DialogContent as Xr, DialogActions as Zr, Icon as en } from "@mui/material";
6
- import * as me from "react";
7
- import { useState as Pe, useEffect as xr } from "react";
8
- import tn from "@emotion/styled";
9
- import { ThemeContext as rn } from "@emotion/react";
10
- import { Link as wr } from "react-router-dom";
11
- import { format as Or, parseISO as nn } from "date-fns";
12
- const Lt = (e) => e, on = () => {
13
- let e = Lt;
14
- return {
15
- configure(t) {
16
- e = t;
17
- },
18
- generate(t) {
19
- return e(t);
20
- },
21
- reset() {
22
- e = Lt;
23
- }
24
- };
25
- }, an = on();
26
- function Ce(e, ...t) {
27
- const r = new URL(`https://mui.com/production-error/?code=${e}`);
28
- return t.forEach((n) => r.searchParams.append("args[]", n)), `Minified MUI error #${e}; visit ${r} for the full message.`;
29
- }
30
- function we(e) {
31
- if (typeof e != "string")
32
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : Ce(7));
33
- return e.charAt(0).toUpperCase() + e.slice(1);
34
- }
35
- function sn(e) {
36
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
37
- }
38
- var Ye = { exports: {} }, We = { exports: {} }, z = {};
39
- /** @license React v16.13.1
40
- * react-is.production.min.js
41
- *
42
- * Copyright (c) Facebook, Inc. and its affiliates.
43
- *
44
- * This source code is licensed under the MIT license found in the
45
- * LICENSE file in the root directory of this source tree.
46
- */
47
- var zt;
48
- function cn() {
49
- if (zt) return z;
50
- zt = 1;
51
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, c = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, J = e ? Symbol.for("react.scope") : 60119;
52
- function O(g) {
53
- if (typeof g == "object" && g !== null) {
54
- var j = g.$$typeof;
55
- switch (j) {
56
- case t:
57
- switch (g = g.type, g) {
58
- case u:
59
- case d:
60
- case n:
61
- case i:
62
- case o:
63
- case m:
64
- return g;
65
- default:
66
- switch (g = g && g.$$typeof, g) {
67
- case l:
68
- case p:
69
- case b:
70
- case S:
71
- case s:
72
- return g;
73
- default:
74
- return j;
75
- }
76
- }
77
- case r:
78
- return j;
79
- }
80
- }
81
- }
82
- function w(g) {
83
- return O(g) === d;
84
- }
85
- return z.AsyncMode = u, z.ConcurrentMode = d, z.ContextConsumer = l, z.ContextProvider = s, z.Element = t, z.ForwardRef = p, z.Fragment = n, z.Lazy = b, z.Memo = S, z.Portal = r, z.Profiler = i, z.StrictMode = o, z.Suspense = m, z.isAsyncMode = function(g) {
86
- return w(g) || O(g) === u;
87
- }, z.isConcurrentMode = w, z.isContextConsumer = function(g) {
88
- return O(g) === l;
89
- }, z.isContextProvider = function(g) {
90
- return O(g) === s;
91
- }, z.isElement = function(g) {
92
- return typeof g == "object" && g !== null && g.$$typeof === t;
93
- }, z.isForwardRef = function(g) {
94
- return O(g) === p;
95
- }, z.isFragment = function(g) {
96
- return O(g) === n;
97
- }, z.isLazy = function(g) {
98
- return O(g) === b;
99
- }, z.isMemo = function(g) {
100
- return O(g) === S;
101
- }, z.isPortal = function(g) {
102
- return O(g) === r;
103
- }, z.isProfiler = function(g) {
104
- return O(g) === i;
105
- }, z.isStrictMode = function(g) {
106
- return O(g) === o;
107
- }, z.isSuspense = function(g) {
108
- return O(g) === m;
109
- }, z.isValidElementType = function(g) {
110
- return typeof g == "string" || typeof g == "function" || g === n || g === d || g === i || g === o || g === m || g === h || typeof g == "object" && g !== null && (g.$$typeof === b || g.$$typeof === S || g.$$typeof === s || g.$$typeof === l || g.$$typeof === p || g.$$typeof === x || g.$$typeof === $ || g.$$typeof === J || g.$$typeof === c);
111
- }, z.typeOf = O, z;
112
- }
113
- var V = {};
114
- /** @license React v16.13.1
115
- * react-is.development.js
116
- *
117
- * Copyright (c) Facebook, Inc. and its affiliates.
118
- *
119
- * This source code is licensed under the MIT license found in the
120
- * LICENSE file in the root directory of this source tree.
121
- */
122
- var Vt;
123
- function ln() {
124
- return Vt || (Vt = 1, process.env.NODE_ENV !== "production" && function() {
125
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, c = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, J = e ? Symbol.for("react.scope") : 60119;
126
- function O(C) {
127
- return typeof C == "string" || typeof C == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
128
- C === n || C === d || C === i || C === o || C === m || C === h || typeof C == "object" && C !== null && (C.$$typeof === b || C.$$typeof === S || C.$$typeof === s || C.$$typeof === l || C.$$typeof === p || C.$$typeof === x || C.$$typeof === $ || C.$$typeof === J || C.$$typeof === c);
129
- }
130
- function w(C) {
131
- if (typeof C == "object" && C !== null) {
132
- var fe = C.$$typeof;
133
- switch (fe) {
134
- case t:
135
- var Ue = C.type;
136
- switch (Ue) {
137
- case u:
138
- case d:
139
- case n:
140
- case i:
141
- case o:
142
- case m:
143
- return Ue;
144
- default:
145
- var Bt = Ue && Ue.$$typeof;
146
- switch (Bt) {
147
- case l:
148
- case p:
149
- case b:
150
- case S:
151
- case s:
152
- return Bt;
153
- default:
154
- return fe;
155
- }
156
- }
157
- case r:
158
- return fe;
159
- }
160
- }
161
- }
162
- var g = u, j = d, Z = l, ee = s, te = t, a = p, T = n, _ = b, L = S, K = r, ne = i, re = o, ue = m, xe = !1;
163
- function dt(C) {
164
- return xe || (xe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), y(C) || w(C) === u;
165
- }
166
- function y(C) {
167
- return w(C) === d;
168
- }
169
- function E(C) {
170
- return w(C) === l;
171
- }
172
- function I(C) {
173
- return w(C) === s;
174
- }
175
- function P(C) {
176
- return typeof C == "object" && C !== null && C.$$typeof === t;
177
- }
178
- function A(C) {
179
- return w(C) === p;
180
- }
181
- function M(C) {
182
- return w(C) === n;
183
- }
184
- function R(C) {
185
- return w(C) === b;
186
- }
187
- function k(C) {
188
- return w(C) === S;
189
- }
190
- function N(C) {
191
- return w(C) === r;
192
- }
193
- function F(C) {
194
- return w(C) === i;
195
- }
196
- function D(C) {
197
- return w(C) === o;
198
- }
199
- function oe(C) {
200
- return w(C) === m;
201
- }
202
- V.AsyncMode = g, V.ConcurrentMode = j, V.ContextConsumer = Z, V.ContextProvider = ee, V.Element = te, V.ForwardRef = a, V.Fragment = T, V.Lazy = _, V.Memo = L, V.Portal = K, V.Profiler = ne, V.StrictMode = re, V.Suspense = ue, V.isAsyncMode = dt, V.isConcurrentMode = y, V.isContextConsumer = E, V.isContextProvider = I, V.isElement = P, V.isForwardRef = A, V.isFragment = M, V.isLazy = R, V.isMemo = k, V.isPortal = N, V.isProfiler = F, V.isStrictMode = D, V.isSuspense = oe, V.isValidElementType = O, V.typeOf = w;
203
- }()), V;
204
- }
205
- var jt;
206
- function $r() {
207
- return jt || (jt = 1, process.env.NODE_ENV === "production" ? We.exports = cn() : We.exports = ln()), We.exports;
208
- }
209
- /*
210
- object-assign
211
- (c) Sindre Sorhus
212
- @license MIT
213
- */
214
- var mt, Ft;
215
- function un() {
216
- if (Ft) return mt;
217
- Ft = 1;
218
- var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
219
- function n(i) {
220
- if (i == null)
221
- throw new TypeError("Object.assign cannot be called with null or undefined");
222
- return Object(i);
223
- }
224
- function o() {
225
- try {
226
- if (!Object.assign)
227
- return !1;
228
- var i = new String("abc");
229
- if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
230
- return !1;
231
- for (var s = {}, l = 0; l < 10; l++)
232
- s["_" + String.fromCharCode(l)] = l;
233
- var u = Object.getOwnPropertyNames(s).map(function(p) {
234
- return s[p];
235
- });
236
- if (u.join("") !== "0123456789")
237
- return !1;
238
- var d = {};
239
- return "abcdefghijklmnopqrst".split("").forEach(function(p) {
240
- d[p] = p;
241
- }), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
242
- } catch {
243
- return !1;
244
- }
245
- }
246
- return mt = o() ? Object.assign : function(i, s) {
247
- for (var l, u = n(i), d, p = 1; p < arguments.length; p++) {
248
- l = Object(arguments[p]);
249
- for (var m in l)
250
- t.call(l, m) && (u[m] = l[m]);
251
- if (e) {
252
- d = e(l);
253
- for (var h = 0; h < d.length; h++)
254
- r.call(l, d[h]) && (u[d[h]] = l[d[h]]);
255
- }
256
- }
257
- return u;
258
- }, mt;
259
- }
260
- var pt, Ut;
261
- function Ot() {
262
- if (Ut) return pt;
263
- Ut = 1;
264
- var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
265
- return pt = e, pt;
266
- }
267
- var ht, Yt;
268
- function _r() {
269
- return Yt || (Yt = 1, ht = Function.call.bind(Object.prototype.hasOwnProperty)), ht;
270
- }
271
- var gt, Wt;
272
- function fn() {
273
- if (Wt) return gt;
274
- Wt = 1;
275
- var e = function() {
276
- };
277
- if (process.env.NODE_ENV !== "production") {
278
- var t = /* @__PURE__ */ Ot(), r = {}, n = /* @__PURE__ */ _r();
279
- e = function(i) {
280
- var s = "Warning: " + i;
281
- typeof console < "u" && console.error(s);
282
- try {
283
- throw new Error(s);
284
- } catch {
285
- }
286
- };
287
- }
288
- function o(i, s, l, u, d) {
289
- if (process.env.NODE_ENV !== "production") {
290
- for (var p in i)
291
- if (n(i, p)) {
292
- var m;
293
- try {
294
- if (typeof i[p] != "function") {
295
- var h = Error(
296
- (u || "React class") + ": " + l + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
297
- );
298
- throw h.name = "Invariant Violation", h;
299
- }
300
- m = i[p](s, p, u, l, null, t);
301
- } catch (b) {
302
- m = b;
303
- }
304
- if (m && !(m instanceof Error) && e(
305
- (u || "React class") + ": type specification of " + l + " `" + p + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof m + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
306
- ), m instanceof Error && !(m.message in r)) {
307
- r[m.message] = !0;
308
- var S = d ? d() : "";
309
- e(
310
- "Failed " + l + " type: " + m.message + (S ?? "")
311
- );
312
- }
313
- }
314
- }
315
- }
316
- return o.resetWarningCache = function() {
317
- process.env.NODE_ENV !== "production" && (r = {});
318
- }, gt = o, gt;
319
- }
320
- var yt, Ht;
321
- function dn() {
322
- if (Ht) return yt;
323
- Ht = 1;
324
- var e = $r(), t = un(), r = /* @__PURE__ */ Ot(), n = /* @__PURE__ */ _r(), o = /* @__PURE__ */ fn(), i = function() {
325
- };
326
- process.env.NODE_ENV !== "production" && (i = function(l) {
327
- var u = "Warning: " + l;
328
- typeof console < "u" && console.error(u);
329
- try {
330
- throw new Error(u);
331
- } catch {
332
- }
333
- });
334
- function s() {
335
- return null;
336
- }
337
- return yt = function(l, u) {
338
- var d = typeof Symbol == "function" && Symbol.iterator, p = "@@iterator";
339
- function m(y) {
340
- var E = y && (d && y[d] || y[p]);
341
- if (typeof E == "function")
342
- return E;
343
- }
344
- var h = "<<anonymous>>", S = {
345
- array: $("array"),
346
- bigint: $("bigint"),
347
- bool: $("boolean"),
348
- func: $("function"),
349
- number: $("number"),
350
- object: $("object"),
351
- string: $("string"),
352
- symbol: $("symbol"),
353
- any: J(),
354
- arrayOf: O,
355
- element: w(),
356
- elementType: g(),
357
- instanceOf: j,
358
- node: a(),
359
- objectOf: ee,
360
- oneOf: Z,
361
- oneOfType: te,
362
- shape: _,
363
- exact: L
364
- };
365
- function b(y, E) {
366
- return y === E ? y !== 0 || 1 / y === 1 / E : y !== y && E !== E;
367
- }
368
- function c(y, E) {
369
- this.message = y, this.data = E && typeof E == "object" ? E : {}, this.stack = "";
370
- }
371
- c.prototype = Error.prototype;
372
- function x(y) {
373
- if (process.env.NODE_ENV !== "production")
374
- var E = {}, I = 0;
375
- function P(M, R, k, N, F, D, oe) {
376
- if (N = N || h, D = D || k, oe !== r) {
377
- if (u) {
378
- var C = new Error(
379
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
380
- );
381
- throw C.name = "Invariant Violation", C;
382
- } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
383
- var fe = N + ":" + k;
384
- !E[fe] && // Avoid spamming the console because they are often not actionable except for lib authors
385
- I < 3 && (i(
386
- "You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + N + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
387
- ), E[fe] = !0, I++);
388
- }
389
- }
390
- return R[k] == null ? M ? R[k] === null ? new c("The " + F + " `" + D + "` is marked as required " + ("in `" + N + "`, but its value is `null`.")) : new c("The " + F + " `" + D + "` is marked as required in " + ("`" + N + "`, but its value is `undefined`.")) : null : y(R, k, N, F, D);
391
- }
392
- var A = P.bind(null, !1);
393
- return A.isRequired = P.bind(null, !0), A;
394
- }
395
- function $(y) {
396
- function E(I, P, A, M, R, k) {
397
- var N = I[P], F = re(N);
398
- if (F !== y) {
399
- var D = ue(N);
400
- return new c(
401
- "Invalid " + M + " `" + R + "` of type " + ("`" + D + "` supplied to `" + A + "`, expected ") + ("`" + y + "`."),
402
- { expectedType: y }
403
- );
404
- }
405
- return null;
406
- }
407
- return x(E);
408
- }
409
- function J() {
410
- return x(s);
411
- }
412
- function O(y) {
413
- function E(I, P, A, M, R) {
414
- if (typeof y != "function")
415
- return new c("Property `" + R + "` of component `" + A + "` has invalid PropType notation inside arrayOf.");
416
- var k = I[P];
417
- if (!Array.isArray(k)) {
418
- var N = re(k);
419
- return new c("Invalid " + M + " `" + R + "` of type " + ("`" + N + "` supplied to `" + A + "`, expected an array."));
420
- }
421
- for (var F = 0; F < k.length; F++) {
422
- var D = y(k, F, A, M, R + "[" + F + "]", r);
423
- if (D instanceof Error)
424
- return D;
425
- }
426
- return null;
427
- }
428
- return x(E);
429
- }
430
- function w() {
431
- function y(E, I, P, A, M) {
432
- var R = E[I];
433
- if (!l(R)) {
434
- var k = re(R);
435
- return new c("Invalid " + A + " `" + M + "` of type " + ("`" + k + "` supplied to `" + P + "`, expected a single ReactElement."));
436
- }
437
- return null;
438
- }
439
- return x(y);
440
- }
441
- function g() {
442
- function y(E, I, P, A, M) {
443
- var R = E[I];
444
- if (!e.isValidElementType(R)) {
445
- var k = re(R);
446
- return new c("Invalid " + A + " `" + M + "` of type " + ("`" + k + "` supplied to `" + P + "`, expected a single ReactElement type."));
447
- }
448
- return null;
449
- }
450
- return x(y);
451
- }
452
- function j(y) {
453
- function E(I, P, A, M, R) {
454
- if (!(I[P] instanceof y)) {
455
- var k = y.name || h, N = dt(I[P]);
456
- return new c("Invalid " + M + " `" + R + "` of type " + ("`" + N + "` supplied to `" + A + "`, expected ") + ("instance of `" + k + "`."));
457
- }
458
- return null;
459
- }
460
- return x(E);
461
- }
462
- function Z(y) {
463
- if (!Array.isArray(y))
464
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
465
- "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
466
- ) : i("Invalid argument supplied to oneOf, expected an array.")), s;
467
- function E(I, P, A, M, R) {
468
- for (var k = I[P], N = 0; N < y.length; N++)
469
- if (b(k, y[N]))
470
- return null;
471
- var F = JSON.stringify(y, function(oe, C) {
472
- var fe = ue(C);
473
- return fe === "symbol" ? String(C) : C;
474
- });
475
- return new c("Invalid " + M + " `" + R + "` of value `" + String(k) + "` " + ("supplied to `" + A + "`, expected one of " + F + "."));
476
- }
477
- return x(E);
478
- }
479
- function ee(y) {
480
- function E(I, P, A, M, R) {
481
- if (typeof y != "function")
482
- return new c("Property `" + R + "` of component `" + A + "` has invalid PropType notation inside objectOf.");
483
- var k = I[P], N = re(k);
484
- if (N !== "object")
485
- return new c("Invalid " + M + " `" + R + "` of type " + ("`" + N + "` supplied to `" + A + "`, expected an object."));
486
- for (var F in k)
487
- if (n(k, F)) {
488
- var D = y(k, F, A, M, R + "." + F, r);
489
- if (D instanceof Error)
490
- return D;
491
- }
492
- return null;
493
- }
494
- return x(E);
495
- }
496
- function te(y) {
497
- if (!Array.isArray(y))
498
- return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
499
- for (var E = 0; E < y.length; E++) {
500
- var I = y[E];
501
- if (typeof I != "function")
502
- return i(
503
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + xe(I) + " at index " + E + "."
504
- ), s;
505
- }
506
- function P(A, M, R, k, N) {
507
- for (var F = [], D = 0; D < y.length; D++) {
508
- var oe = y[D], C = oe(A, M, R, k, N, r);
509
- if (C == null)
510
- return null;
511
- C.data && n(C.data, "expectedType") && F.push(C.data.expectedType);
512
- }
513
- var fe = F.length > 0 ? ", expected one of type [" + F.join(", ") + "]" : "";
514
- return new c("Invalid " + k + " `" + N + "` supplied to " + ("`" + R + "`" + fe + "."));
515
- }
516
- return x(P);
517
- }
518
- function a() {
519
- function y(E, I, P, A, M) {
520
- return K(E[I]) ? null : new c("Invalid " + A + " `" + M + "` supplied to " + ("`" + P + "`, expected a ReactNode."));
521
- }
522
- return x(y);
523
- }
524
- function T(y, E, I, P, A) {
525
- return new c(
526
- (y || "React class") + ": " + E + " type `" + I + "." + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + A + "`."
527
- );
528
- }
529
- function _(y) {
530
- function E(I, P, A, M, R) {
531
- var k = I[P], N = re(k);
532
- if (N !== "object")
533
- return new c("Invalid " + M + " `" + R + "` of type `" + N + "` " + ("supplied to `" + A + "`, expected `object`."));
534
- for (var F in y) {
535
- var D = y[F];
536
- if (typeof D != "function")
537
- return T(A, M, R, F, ue(D));
538
- var oe = D(k, F, A, M, R + "." + F, r);
539
- if (oe)
540
- return oe;
541
- }
542
- return null;
543
- }
544
- return x(E);
545
- }
546
- function L(y) {
547
- function E(I, P, A, M, R) {
548
- var k = I[P], N = re(k);
549
- if (N !== "object")
550
- return new c("Invalid " + M + " `" + R + "` of type `" + N + "` " + ("supplied to `" + A + "`, expected `object`."));
551
- var F = t({}, I[P], y);
552
- for (var D in F) {
553
- var oe = y[D];
554
- if (n(y, D) && typeof oe != "function")
555
- return T(A, M, R, D, ue(oe));
556
- if (!oe)
557
- return new c(
558
- "Invalid " + M + " `" + R + "` key `" + D + "` supplied to `" + A + "`.\nBad object: " + JSON.stringify(I[P], null, " ") + `
559
- Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
560
- );
561
- var C = oe(k, D, A, M, R + "." + D, r);
562
- if (C)
563
- return C;
564
- }
565
- return null;
566
- }
567
- return x(E);
568
- }
569
- function K(y) {
570
- switch (typeof y) {
571
- case "number":
572
- case "string":
573
- case "undefined":
574
- return !0;
575
- case "boolean":
576
- return !y;
577
- case "object":
578
- if (Array.isArray(y))
579
- return y.every(K);
580
- if (y === null || l(y))
581
- return !0;
582
- var E = m(y);
583
- if (E) {
584
- var I = E.call(y), P;
585
- if (E !== y.entries) {
586
- for (; !(P = I.next()).done; )
587
- if (!K(P.value))
588
- return !1;
589
- } else
590
- for (; !(P = I.next()).done; ) {
591
- var A = P.value;
592
- if (A && !K(A[1]))
593
- return !1;
594
- }
595
- } else
596
- return !1;
597
- return !0;
598
- default:
599
- return !1;
600
- }
601
- }
602
- function ne(y, E) {
603
- return y === "symbol" ? !0 : E ? E["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && E instanceof Symbol : !1;
604
- }
605
- function re(y) {
606
- var E = typeof y;
607
- return Array.isArray(y) ? "array" : y instanceof RegExp ? "object" : ne(E, y) ? "symbol" : E;
608
- }
609
- function ue(y) {
610
- if (typeof y > "u" || y === null)
611
- return "" + y;
612
- var E = re(y);
613
- if (E === "object") {
614
- if (y instanceof Date)
615
- return "date";
616
- if (y instanceof RegExp)
617
- return "regexp";
618
- }
619
- return E;
620
- }
621
- function xe(y) {
622
- var E = ue(y);
623
- switch (E) {
624
- case "array":
625
- case "object":
626
- return "an " + E;
627
- case "boolean":
628
- case "date":
629
- case "regexp":
630
- return "a " + E;
631
- default:
632
- return E;
633
- }
634
- }
635
- function dt(y) {
636
- return !y.constructor || !y.constructor.name ? h : y.constructor.name;
637
- }
638
- return S.checkPropTypes = o, S.resetWarningCache = o.resetWarningCache, S.PropTypes = S, S;
639
- }, yt;
640
- }
641
- var bt, Gt;
642
- function mn() {
643
- if (Gt) return bt;
644
- Gt = 1;
645
- var e = /* @__PURE__ */ Ot();
646
- function t() {
647
- }
648
- function r() {
649
- }
650
- return r.resetWarningCache = t, bt = function() {
651
- function n(s, l, u, d, p, m) {
652
- if (m !== e) {
653
- var h = new Error(
654
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
655
- );
656
- throw h.name = "Invariant Violation", h;
657
- }
658
- }
659
- n.isRequired = n;
660
- function o() {
661
- return n;
662
- }
663
- var i = {
664
- array: n,
665
- bigint: n,
666
- bool: n,
667
- func: n,
668
- number: n,
669
- object: n,
670
- string: n,
671
- symbol: n,
672
- any: n,
673
- arrayOf: o,
674
- element: n,
675
- elementType: n,
676
- instanceOf: o,
677
- node: n,
678
- objectOf: o,
679
- oneOf: o,
680
- oneOfType: o,
681
- shape: o,
682
- exact: o,
683
- checkPropTypes: r,
684
- resetWarningCache: t
685
- };
686
- return i.PropTypes = i, i;
687
- }, bt;
688
- }
689
- var Kt;
690
- function pn() {
691
- if (Kt) return Ye.exports;
692
- if (Kt = 1, process.env.NODE_ENV !== "production") {
693
- var e = $r(), t = !0;
694
- Ye.exports = /* @__PURE__ */ dn()(e.isElement, t);
695
- } else
696
- Ye.exports = /* @__PURE__ */ mn()();
697
- return Ye.exports;
698
- }
699
- var hn = /* @__PURE__ */ pn();
700
- const B = /* @__PURE__ */ sn(hn);
701
- function Ar(e) {
702
- var t, r, n = "";
703
- if (typeof e == "string" || typeof e == "number") n += e;
704
- else if (typeof e == "object") if (Array.isArray(e)) {
705
- var o = e.length;
706
- for (t = 0; t < o; t++) e[t] && (r = Ar(e[t])) && (n && (n += " "), n += r);
707
- } else for (r in e) e[r] && (n && (n += " "), n += r);
708
- return n;
709
- }
710
- function gn() {
711
- for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = Ar(e)) && (n && (n += " "), n += t);
712
- return n;
713
- }
714
- function yn(e, t, r = void 0) {
715
- const n = {};
716
- for (const o in e) {
717
- const i = e[o];
718
- let s = "", l = !0;
719
- for (let u = 0; u < i.length; u += 1) {
720
- const d = i[u];
721
- d && (s += (l === !0 ? "" : " ") + t(d), l = !1, r && r[d] && (s += " " + r[d]));
722
- }
723
- n[o] = s;
724
- }
725
- return n;
726
- }
727
- var He = { exports: {} }, U = {};
728
- /**
729
- * @license React
730
- * react-is.production.js
731
- *
732
- * Copyright (c) Meta Platforms, Inc. and affiliates.
733
- *
734
- * This source code is licensed under the MIT license found in the
735
- * LICENSE file in the root directory of this source tree.
736
- */
737
- var qt;
738
- function bn() {
739
- if (qt) return U;
740
- qt = 1;
741
- var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), h = Symbol.for("react.view_transition"), S = Symbol.for("react.client.reference");
742
- function b(c) {
743
- if (typeof c == "object" && c !== null) {
744
- var x = c.$$typeof;
745
- switch (x) {
746
- case e:
747
- switch (c = c.type, c) {
748
- case r:
749
- case o:
750
- case n:
751
- case u:
752
- case d:
753
- case h:
754
- return c;
755
- default:
756
- switch (c = c && c.$$typeof, c) {
757
- case s:
758
- case l:
759
- case m:
760
- case p:
761
- return c;
762
- case i:
763
- return c;
764
- default:
765
- return x;
766
- }
767
- }
768
- case t:
769
- return x;
770
- }
771
- }
772
- }
773
- return U.ContextConsumer = i, U.ContextProvider = s, U.Element = e, U.ForwardRef = l, U.Fragment = r, U.Lazy = m, U.Memo = p, U.Portal = t, U.Profiler = o, U.StrictMode = n, U.Suspense = u, U.SuspenseList = d, U.isContextConsumer = function(c) {
774
- return b(c) === i;
775
- }, U.isContextProvider = function(c) {
776
- return b(c) === s;
777
- }, U.isElement = function(c) {
778
- return typeof c == "object" && c !== null && c.$$typeof === e;
779
- }, U.isForwardRef = function(c) {
780
- return b(c) === l;
781
- }, U.isFragment = function(c) {
782
- return b(c) === r;
783
- }, U.isLazy = function(c) {
784
- return b(c) === m;
785
- }, U.isMemo = function(c) {
786
- return b(c) === p;
787
- }, U.isPortal = function(c) {
788
- return b(c) === t;
789
- }, U.isProfiler = function(c) {
790
- return b(c) === o;
791
- }, U.isStrictMode = function(c) {
792
- return b(c) === n;
793
- }, U.isSuspense = function(c) {
794
- return b(c) === u;
795
- }, U.isSuspenseList = function(c) {
796
- return b(c) === d;
797
- }, U.isValidElementType = function(c) {
798
- return typeof c == "string" || typeof c == "function" || c === r || c === o || c === n || c === u || c === d || typeof c == "object" && c !== null && (c.$$typeof === m || c.$$typeof === p || c.$$typeof === s || c.$$typeof === i || c.$$typeof === l || c.$$typeof === S || c.getModuleId !== void 0);
799
- }, U.typeOf = b, U;
800
- }
801
- var Y = {};
802
- /**
803
- * @license React
804
- * react-is.development.js
805
- *
806
- * Copyright (c) Meta Platforms, Inc. and affiliates.
807
- *
808
- * This source code is licensed under the MIT license found in the
809
- * LICENSE file in the root directory of this source tree.
810
- */
811
- var Qt;
812
- function vn() {
813
- return Qt || (Qt = 1, process.env.NODE_ENV !== "production" && function() {
814
- function e(c) {
815
- if (typeof c == "object" && c !== null) {
816
- var x = c.$$typeof;
817
- switch (x) {
818
- case t:
819
- switch (c = c.type, c) {
820
- case n:
821
- case i:
822
- case o:
823
- case d:
824
- case p:
825
- case S:
826
- return c;
827
- default:
828
- switch (c = c && c.$$typeof, c) {
829
- case l:
830
- case u:
831
- case h:
832
- case m:
833
- return c;
834
- case s:
835
- return c;
836
- default:
837
- return x;
838
- }
839
- }
840
- case r:
841
- return x;
842
- }
843
- }
844
- }
845
- var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), S = Symbol.for("react.view_transition"), b = Symbol.for("react.client.reference");
846
- Y.ContextConsumer = s, Y.ContextProvider = l, Y.Element = t, Y.ForwardRef = u, Y.Fragment = n, Y.Lazy = h, Y.Memo = m, Y.Portal = r, Y.Profiler = i, Y.StrictMode = o, Y.Suspense = d, Y.SuspenseList = p, Y.isContextConsumer = function(c) {
847
- return e(c) === s;
848
- }, Y.isContextProvider = function(c) {
849
- return e(c) === l;
850
- }, Y.isElement = function(c) {
851
- return typeof c == "object" && c !== null && c.$$typeof === t;
852
- }, Y.isForwardRef = function(c) {
853
- return e(c) === u;
854
- }, Y.isFragment = function(c) {
855
- return e(c) === n;
856
- }, Y.isLazy = function(c) {
857
- return e(c) === h;
858
- }, Y.isMemo = function(c) {
859
- return e(c) === m;
860
- }, Y.isPortal = function(c) {
861
- return e(c) === r;
862
- }, Y.isProfiler = function(c) {
863
- return e(c) === i;
864
- }, Y.isStrictMode = function(c) {
865
- return e(c) === o;
866
- }, Y.isSuspense = function(c) {
867
- return e(c) === d;
868
- }, Y.isSuspenseList = function(c) {
869
- return e(c) === p;
870
- }, Y.isValidElementType = function(c) {
871
- return typeof c == "string" || typeof c == "function" || c === n || c === i || c === o || c === d || c === p || typeof c == "object" && c !== null && (c.$$typeof === h || c.$$typeof === m || c.$$typeof === l || c.$$typeof === s || c.$$typeof === u || c.$$typeof === b || c.getModuleId !== void 0);
872
- }, Y.typeOf = e;
873
- }()), Y;
874
- }
875
- var Jt;
876
- function Sn() {
877
- return Jt || (Jt = 1, process.env.NODE_ENV === "production" ? He.exports = /* @__PURE__ */ bn() : He.exports = /* @__PURE__ */ vn()), He.exports;
878
- }
879
- var Je = /* @__PURE__ */ Sn();
880
- function he(e) {
881
- if (typeof e != "object" || e === null)
882
- return !1;
883
- const t = Object.getPrototypeOf(e);
884
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
885
- }
886
- function Rr(e) {
887
- if (/* @__PURE__ */ me.isValidElement(e) || Je.isValidElementType(e) || !he(e))
888
- return e;
889
- const t = {};
890
- return Object.keys(e).forEach((r) => {
891
- t[r] = Rr(e[r]);
892
- }), t;
893
- }
894
- function ae(e, t, r = {
895
- clone: !0
896
- }) {
897
- const n = r.clone ? {
898
- ...e
899
- } : e;
900
- return he(e) && he(t) && Object.keys(t).forEach((o) => {
901
- /* @__PURE__ */ me.isValidElement(t[o]) || Je.isValidElementType(t[o]) ? n[o] = t[o] : he(t[o]) && // Avoid prototype pollution
902
- Object.prototype.hasOwnProperty.call(e, o) && he(e[o]) ? n[o] = ae(e[o], t[o], r) : r.clone ? n[o] = he(t[o]) ? Rr(t[o]) : t[o] : n[o] = t[o];
903
- }), n;
904
- }
905
- function Le(e, t) {
906
- return t ? ae(e, t, {
907
- clone: !1
908
- // No need to clone deep, it's way faster.
909
- }) : e;
910
- }
911
- const Te = process.env.NODE_ENV !== "production" ? B.oneOfType([B.number, B.string, B.object, B.array]) : {};
912
- function Cn(e, t) {
913
- if (!e.containerQueries)
914
- return t;
915
- const r = Object.keys(t).filter((n) => n.startsWith("@container")).sort((n, o) => {
916
- var s, l;
917
- const i = /min-width:\s*([0-9.]+)/;
918
- return +(((s = n.match(i)) == null ? void 0 : s[1]) || 0) - +(((l = o.match(i)) == null ? void 0 : l[1]) || 0);
919
- });
920
- return r.length ? r.reduce((n, o) => {
921
- const i = t[o];
922
- return delete n[o], n[o] = i, n;
923
- }, {
924
- ...t
925
- }) : t;
926
- }
927
- function En(e, t) {
928
- return t === "@" || t.startsWith("@") && (e.some((r) => t.startsWith(`@${r}`)) || !!t.match(/^@\d/));
929
- }
930
- function Tn(e, t) {
931
- const r = t.match(/^@([^/]+)?\/?(.+)?$/);
932
- if (!r) {
933
- if (process.env.NODE_ENV !== "production")
934
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
935
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : Ce(18, `(${t})`));
936
- return null;
937
- }
938
- const [, n, o] = r, i = Number.isNaN(+n) ? n || 0 : +n;
939
- return e.containerQueries(o).up(i);
940
- }
941
- function xn(e) {
942
- const t = (i, s) => i.replace("@media", s ? `@container ${s}` : "@container");
943
- function r(i, s) {
944
- i.up = (...l) => t(e.breakpoints.up(...l), s), i.down = (...l) => t(e.breakpoints.down(...l), s), i.between = (...l) => t(e.breakpoints.between(...l), s), i.only = (...l) => t(e.breakpoints.only(...l), s), i.not = (...l) => {
945
- const u = t(e.breakpoints.not(...l), s);
946
- return u.includes("not all and") ? u.replace("not all and ", "").replace("min-width:", "width<").replace("max-width:", "width>").replace("and", "or") : u;
947
- };
948
- }
949
- const n = {}, o = (i) => (r(n, i), n);
950
- return r(o), {
951
- ...e,
952
- containerQueries: o
953
- };
954
- }
955
- const tt = {
956
- xs: 0,
957
- // phone
958
- sm: 600,
959
- // tablet
960
- md: 900,
961
- // small laptop
962
- lg: 1200,
963
- // desktop
964
- xl: 1536
965
- // large screen
966
- }, Xt = {
967
- // Sorted ASC by size. That's important.
968
- // It can't be configured as it's used statically for propTypes.
969
- keys: ["xs", "sm", "md", "lg", "xl"],
970
- up: (e) => `@media (min-width:${tt[e]}px)`
971
- }, wn = {
972
- containerQueries: (e) => ({
973
- up: (t) => {
974
- let r = typeof t == "number" ? t : tt[t] || t;
975
- return typeof r == "number" && (r = `${r}px`), e ? `@container ${e} (min-width:${r})` : `@container (min-width:${r})`;
976
- }
977
- })
978
- };
979
- function be(e, t, r) {
980
- const n = e.theme || {};
981
- if (Array.isArray(t)) {
982
- const i = n.breakpoints || Xt;
983
- return t.reduce((s, l, u) => (s[i.up(i.keys[u])] = r(t[u]), s), {});
984
- }
985
- if (typeof t == "object") {
986
- const i = n.breakpoints || Xt;
987
- return Object.keys(t).reduce((s, l) => {
988
- if (En(i.keys, l)) {
989
- const u = Tn(n.containerQueries ? n : wn, l);
990
- u && (s[u] = r(t[l], l));
991
- } else if (Object.keys(i.values || tt).includes(l)) {
992
- const u = i.up(l);
993
- s[u] = r(t[l], l);
994
- } else {
995
- const u = l;
996
- s[u] = t[u];
997
- }
998
- return s;
999
- }, {});
1000
- }
1001
- return r(t);
1002
- }
1003
- function On(e = {}) {
1004
- var r;
1005
- return ((r = e.keys) == null ? void 0 : r.reduce((n, o) => {
1006
- const i = e.up(o);
1007
- return n[i] = {}, n;
1008
- }, {})) || {};
1009
- }
1010
- function $n(e, t) {
1011
- return e.reduce((r, n) => {
1012
- const o = r[n];
1013
- return (!o || Object.keys(o).length === 0) && delete r[n], r;
1014
- }, t);
1015
- }
1016
- function rt(e, t, r = !0) {
1017
- if (!t || typeof t != "string")
1018
- return null;
1019
- if (e && e.vars && r) {
1020
- const n = `vars.${t}`.split(".").reduce((o, i) => o && o[i] ? o[i] : null, e);
1021
- if (n != null)
1022
- return n;
1023
- }
1024
- return t.split(".").reduce((n, o) => n && n[o] != null ? n[o] : null, e);
1025
- }
1026
- function Xe(e, t, r, n = r) {
1027
- let o;
1028
- return typeof e == "function" ? o = e(r) : Array.isArray(e) ? o = e[r] || n : o = rt(e, r) || n, t && (o = t(o, n, e)), o;
1029
- }
1030
- function X(e) {
1031
- const {
1032
- prop: t,
1033
- cssProperty: r = e.prop,
1034
- themeKey: n,
1035
- transform: o
1036
- } = e, i = (s) => {
1037
- if (s[t] == null)
1038
- return null;
1039
- const l = s[t], u = s.theme, d = rt(u, n) || {};
1040
- return be(s, l, (m) => {
1041
- let h = Xe(d, o, m);
1042
- return m === h && typeof m == "string" && (h = Xe(d, o, `${t}${m === "default" ? "" : we(m)}`, m)), r === !1 ? h : {
1043
- [r]: h
1044
- };
1045
- });
1046
- };
1047
- return i.propTypes = process.env.NODE_ENV !== "production" ? {
1048
- [t]: Te
1049
- } : {}, i.filterProps = [t], i;
1050
- }
1051
- function _n(e) {
1052
- const t = {};
1053
- return (r) => (t[r] === void 0 && (t[r] = e(r)), t[r]);
1054
- }
1055
- const An = {
1056
- m: "margin",
1057
- p: "padding"
1058
- }, Rn = {
1059
- t: "Top",
1060
- r: "Right",
1061
- b: "Bottom",
1062
- l: "Left",
1063
- x: ["Left", "Right"],
1064
- y: ["Top", "Bottom"]
1065
- }, Zt = {
1066
- marginX: "mx",
1067
- marginY: "my",
1068
- paddingX: "px",
1069
- paddingY: "py"
1070
- }, Pn = _n((e) => {
1071
- if (e.length > 2)
1072
- if (Zt[e])
1073
- e = Zt[e];
1074
- else
1075
- return [e];
1076
- const [t, r] = e.split(""), n = An[t], o = Rn[r] || "";
1077
- return Array.isArray(o) ? o.map((i) => n + i) : [n + o];
1078
- }), nt = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], ot = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], kn = [...nt, ...ot];
1079
- function je(e, t, r, n) {
1080
- const o = rt(e, t, !0) ?? r;
1081
- return typeof o == "number" || typeof o == "string" ? (i) => typeof i == "string" ? i : (process.env.NODE_ENV !== "production" && typeof i != "number" && console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`), typeof o == "string" ? o.startsWith("var(") && i === 0 ? 0 : o.startsWith("var(") && i === 1 ? o : `calc(${i} * ${o})` : o * i) : Array.isArray(o) ? (i) => {
1082
- if (typeof i == "string")
1083
- return i;
1084
- const s = Math.abs(i);
1085
- process.env.NODE_ENV !== "production" && (Number.isInteger(s) ? s > o.length - 1 && console.error([`MUI: The value provided (${s}) overflows.`, `The supported values are: ${JSON.stringify(o)}.`, `${s} > ${o.length - 1}, you need to add the missing values.`].join(`
1086
- `)) : console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
1087
- `)));
1088
- const l = o[s];
1089
- return i >= 0 ? l : typeof l == "number" ? -l : typeof l == "string" && l.startsWith("var(") ? `calc(-1 * ${l})` : `-${l}`;
1090
- } : typeof o == "function" ? o : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`, "It should be a number, an array or a function."].join(`
1091
- `)), () => {
1092
- });
1093
- }
1094
- function $t(e) {
1095
- return je(e, "spacing", 8, "spacing");
1096
- }
1097
- function Fe(e, t) {
1098
- return typeof t == "string" || t == null ? t : e(t);
1099
- }
1100
- function In(e, t) {
1101
- return (r) => e.reduce((n, o) => (n[o] = Fe(t, r), n), {});
1102
- }
1103
- function Mn(e, t, r, n) {
1104
- if (!t.includes(r))
1105
- return null;
1106
- const o = Pn(r), i = In(o, n), s = e[r];
1107
- return be(e, s, i);
1108
- }
1109
- function Pr(e, t) {
1110
- const r = $t(e.theme);
1111
- return Object.keys(e).map((n) => Mn(e, t, n, r)).reduce(Le, {});
1112
- }
1113
- function q(e) {
1114
- return Pr(e, nt);
1115
- }
1116
- q.propTypes = process.env.NODE_ENV !== "production" ? nt.reduce((e, t) => (e[t] = Te, e), {}) : {};
1117
- q.filterProps = nt;
1118
- function Q(e) {
1119
- return Pr(e, ot);
1120
- }
1121
- Q.propTypes = process.env.NODE_ENV !== "production" ? ot.reduce((e, t) => (e[t] = Te, e), {}) : {};
1122
- Q.filterProps = ot;
1123
- process.env.NODE_ENV !== "production" && kn.reduce((e, t) => (e[t] = Te, e), {});
1124
- function it(...e) {
1125
- const t = e.reduce((n, o) => (o.filterProps.forEach((i) => {
1126
- n[i] = o;
1127
- }), n), {}), r = (n) => Object.keys(n).reduce((o, i) => t[i] ? Le(o, t[i](n)) : o, {});
1128
- return r.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((n, o) => Object.assign(n, o.propTypes), {}) : {}, r.filterProps = e.reduce((n, o) => n.concat(o.filterProps), []), r;
1129
- }
1130
- function ce(e) {
1131
- return typeof e != "number" ? e : `${e}px solid`;
1132
- }
1133
- function le(e, t) {
1134
- return X({
1135
- prop: e,
1136
- themeKey: "borders",
1137
- transform: t
1138
- });
1139
- }
1140
- const Nn = le("border", ce), Dn = le("borderTop", ce), Bn = le("borderRight", ce), Ln = le("borderBottom", ce), zn = le("borderLeft", ce), Vn = le("borderColor"), jn = le("borderTopColor"), Fn = le("borderRightColor"), Un = le("borderBottomColor"), Yn = le("borderLeftColor"), Wn = le("outline", ce), Hn = le("outlineColor"), at = (e) => {
1141
- if (e.borderRadius !== void 0 && e.borderRadius !== null) {
1142
- const t = je(e.theme, "shape.borderRadius", 4, "borderRadius"), r = (n) => ({
1143
- borderRadius: Fe(t, n)
1144
- });
1145
- return be(e, e.borderRadius, r);
1146
- }
1147
- return null;
1148
- };
1149
- at.propTypes = process.env.NODE_ENV !== "production" ? {
1150
- borderRadius: Te
1151
- } : {};
1152
- at.filterProps = ["borderRadius"];
1153
- it(Nn, Dn, Bn, Ln, zn, Vn, jn, Fn, Un, Yn, at, Wn, Hn);
1154
- const st = (e) => {
1155
- if (e.gap !== void 0 && e.gap !== null) {
1156
- const t = je(e.theme, "spacing", 8, "gap"), r = (n) => ({
1157
- gap: Fe(t, n)
1158
- });
1159
- return be(e, e.gap, r);
1160
- }
1161
- return null;
1162
- };
1163
- st.propTypes = process.env.NODE_ENV !== "production" ? {
1164
- gap: Te
1165
- } : {};
1166
- st.filterProps = ["gap"];
1167
- const ct = (e) => {
1168
- if (e.columnGap !== void 0 && e.columnGap !== null) {
1169
- const t = je(e.theme, "spacing", 8, "columnGap"), r = (n) => ({
1170
- columnGap: Fe(t, n)
1171
- });
1172
- return be(e, e.columnGap, r);
1173
- }
1174
- return null;
1175
- };
1176
- ct.propTypes = process.env.NODE_ENV !== "production" ? {
1177
- columnGap: Te
1178
- } : {};
1179
- ct.filterProps = ["columnGap"];
1180
- const lt = (e) => {
1181
- if (e.rowGap !== void 0 && e.rowGap !== null) {
1182
- const t = je(e.theme, "spacing", 8, "rowGap"), r = (n) => ({
1183
- rowGap: Fe(t, n)
1184
- });
1185
- return be(e, e.rowGap, r);
1186
- }
1187
- return null;
1188
- };
1189
- lt.propTypes = process.env.NODE_ENV !== "production" ? {
1190
- rowGap: Te
1191
- } : {};
1192
- lt.filterProps = ["rowGap"];
1193
- const Gn = X({
1194
- prop: "gridColumn"
1195
- }), Kn = X({
1196
- prop: "gridRow"
1197
- }), qn = X({
1198
- prop: "gridAutoFlow"
1199
- }), Qn = X({
1200
- prop: "gridAutoColumns"
1201
- }), Jn = X({
1202
- prop: "gridAutoRows"
1203
- }), Xn = X({
1204
- prop: "gridTemplateColumns"
1205
- }), Zn = X({
1206
- prop: "gridTemplateRows"
1207
- }), eo = X({
1208
- prop: "gridTemplateAreas"
1209
- }), to = X({
1210
- prop: "gridArea"
1211
- });
1212
- it(st, ct, lt, Gn, Kn, qn, Qn, Jn, Xn, Zn, eo, to);
1213
- function ke(e, t) {
1214
- return t === "grey" ? t : e;
1215
- }
1216
- const ro = X({
1217
- prop: "color",
1218
- themeKey: "palette",
1219
- transform: ke
1220
- }), no = X({
1221
- prop: "bgcolor",
1222
- cssProperty: "backgroundColor",
1223
- themeKey: "palette",
1224
- transform: ke
1225
- }), oo = X({
1226
- prop: "backgroundColor",
1227
- themeKey: "palette",
1228
- transform: ke
1229
- });
1230
- it(ro, no, oo);
1231
- function ie(e) {
1232
- return e <= 1 && e !== 0 ? `${e * 100}%` : e;
1233
- }
1234
- const io = X({
1235
- prop: "width",
1236
- transform: ie
1237
- }), _t = (e) => {
1238
- if (e.maxWidth !== void 0 && e.maxWidth !== null) {
1239
- const t = (r) => {
1240
- var o, i, s, l, u;
1241
- const n = ((s = (i = (o = e.theme) == null ? void 0 : o.breakpoints) == null ? void 0 : i.values) == null ? void 0 : s[r]) || tt[r];
1242
- return n ? ((u = (l = e.theme) == null ? void 0 : l.breakpoints) == null ? void 0 : u.unit) !== "px" ? {
1243
- maxWidth: `${n}${e.theme.breakpoints.unit}`
1244
- } : {
1245
- maxWidth: n
1246
- } : {
1247
- maxWidth: ie(r)
1248
- };
1249
- };
1250
- return be(e, e.maxWidth, t);
1251
- }
1252
- return null;
1253
- };
1254
- _t.filterProps = ["maxWidth"];
1255
- const ao = X({
1256
- prop: "minWidth",
1257
- transform: ie
1258
- }), so = X({
1259
- prop: "height",
1260
- transform: ie
1261
- }), co = X({
1262
- prop: "maxHeight",
1263
- transform: ie
1264
- }), lo = X({
1265
- prop: "minHeight",
1266
- transform: ie
1267
- });
1268
- X({
1269
- prop: "size",
1270
- cssProperty: "width",
1271
- transform: ie
1272
- });
1273
- X({
1274
- prop: "size",
1275
- cssProperty: "height",
1276
- transform: ie
1277
- });
1278
- const uo = X({
1279
- prop: "boxSizing"
1280
- });
1281
- it(io, _t, ao, so, co, lo, uo);
1282
- const ut = {
1283
- // borders
1284
- border: {
1285
- themeKey: "borders",
1286
- transform: ce
1287
- },
1288
- borderTop: {
1289
- themeKey: "borders",
1290
- transform: ce
1291
- },
1292
- borderRight: {
1293
- themeKey: "borders",
1294
- transform: ce
1295
- },
1296
- borderBottom: {
1297
- themeKey: "borders",
1298
- transform: ce
1299
- },
1300
- borderLeft: {
1301
- themeKey: "borders",
1302
- transform: ce
1303
- },
1304
- borderColor: {
1305
- themeKey: "palette"
1306
- },
1307
- borderTopColor: {
1308
- themeKey: "palette"
1309
- },
1310
- borderRightColor: {
1311
- themeKey: "palette"
1312
- },
1313
- borderBottomColor: {
1314
- themeKey: "palette"
1315
- },
1316
- borderLeftColor: {
1317
- themeKey: "palette"
1318
- },
1319
- outline: {
1320
- themeKey: "borders",
1321
- transform: ce
1322
- },
1323
- outlineColor: {
1324
- themeKey: "palette"
1325
- },
1326
- borderRadius: {
1327
- themeKey: "shape.borderRadius",
1328
- style: at
1329
- },
1330
- // palette
1331
- color: {
1332
- themeKey: "palette",
1333
- transform: ke
1334
- },
1335
- bgcolor: {
1336
- themeKey: "palette",
1337
- cssProperty: "backgroundColor",
1338
- transform: ke
1339
- },
1340
- backgroundColor: {
1341
- themeKey: "palette",
1342
- transform: ke
1343
- },
1344
- // spacing
1345
- p: {
1346
- style: Q
1347
- },
1348
- pt: {
1349
- style: Q
1350
- },
1351
- pr: {
1352
- style: Q
1353
- },
1354
- pb: {
1355
- style: Q
1356
- },
1357
- pl: {
1358
- style: Q
1359
- },
1360
- px: {
1361
- style: Q
1362
- },
1363
- py: {
1364
- style: Q
1365
- },
1366
- padding: {
1367
- style: Q
1368
- },
1369
- paddingTop: {
1370
- style: Q
1371
- },
1372
- paddingRight: {
1373
- style: Q
1374
- },
1375
- paddingBottom: {
1376
- style: Q
1377
- },
1378
- paddingLeft: {
1379
- style: Q
1380
- },
1381
- paddingX: {
1382
- style: Q
1383
- },
1384
- paddingY: {
1385
- style: Q
1386
- },
1387
- paddingInline: {
1388
- style: Q
1389
- },
1390
- paddingInlineStart: {
1391
- style: Q
1392
- },
1393
- paddingInlineEnd: {
1394
- style: Q
1395
- },
1396
- paddingBlock: {
1397
- style: Q
1398
- },
1399
- paddingBlockStart: {
1400
- style: Q
1401
- },
1402
- paddingBlockEnd: {
1403
- style: Q
1404
- },
1405
- m: {
1406
- style: q
1407
- },
1408
- mt: {
1409
- style: q
1410
- },
1411
- mr: {
1412
- style: q
1413
- },
1414
- mb: {
1415
- style: q
1416
- },
1417
- ml: {
1418
- style: q
1419
- },
1420
- mx: {
1421
- style: q
1422
- },
1423
- my: {
1424
- style: q
1425
- },
1426
- margin: {
1427
- style: q
1428
- },
1429
- marginTop: {
1430
- style: q
1431
- },
1432
- marginRight: {
1433
- style: q
1434
- },
1435
- marginBottom: {
1436
- style: q
1437
- },
1438
- marginLeft: {
1439
- style: q
1440
- },
1441
- marginX: {
1442
- style: q
1443
- },
1444
- marginY: {
1445
- style: q
1446
- },
1447
- marginInline: {
1448
- style: q
1449
- },
1450
- marginInlineStart: {
1451
- style: q
1452
- },
1453
- marginInlineEnd: {
1454
- style: q
1455
- },
1456
- marginBlock: {
1457
- style: q
1458
- },
1459
- marginBlockStart: {
1460
- style: q
1461
- },
1462
- marginBlockEnd: {
1463
- style: q
1464
- },
1465
- // display
1466
- displayPrint: {
1467
- cssProperty: !1,
1468
- transform: (e) => ({
1469
- "@media print": {
1470
- display: e
1471
- }
1472
- })
1473
- },
1474
- display: {},
1475
- overflow: {},
1476
- textOverflow: {},
1477
- visibility: {},
1478
- whiteSpace: {},
1479
- // flexbox
1480
- flexBasis: {},
1481
- flexDirection: {},
1482
- flexWrap: {},
1483
- justifyContent: {},
1484
- alignItems: {},
1485
- alignContent: {},
1486
- order: {},
1487
- flex: {},
1488
- flexGrow: {},
1489
- flexShrink: {},
1490
- alignSelf: {},
1491
- justifyItems: {},
1492
- justifySelf: {},
1493
- // grid
1494
- gap: {
1495
- style: st
1496
- },
1497
- rowGap: {
1498
- style: lt
1499
- },
1500
- columnGap: {
1501
- style: ct
1502
- },
1503
- gridColumn: {},
1504
- gridRow: {},
1505
- gridAutoFlow: {},
1506
- gridAutoColumns: {},
1507
- gridAutoRows: {},
1508
- gridTemplateColumns: {},
1509
- gridTemplateRows: {},
1510
- gridTemplateAreas: {},
1511
- gridArea: {},
1512
- // positions
1513
- position: {},
1514
- zIndex: {
1515
- themeKey: "zIndex"
1516
- },
1517
- top: {},
1518
- right: {},
1519
- bottom: {},
1520
- left: {},
1521
- // shadows
1522
- boxShadow: {
1523
- themeKey: "shadows"
1524
- },
1525
- // sizing
1526
- width: {
1527
- transform: ie
1528
- },
1529
- maxWidth: {
1530
- style: _t
1531
- },
1532
- minWidth: {
1533
- transform: ie
1534
- },
1535
- height: {
1536
- transform: ie
1537
- },
1538
- maxHeight: {
1539
- transform: ie
1540
- },
1541
- minHeight: {
1542
- transform: ie
1543
- },
1544
- boxSizing: {},
1545
- // typography
1546
- font: {
1547
- themeKey: "font"
1548
- },
1549
- fontFamily: {
1550
- themeKey: "typography"
1551
- },
1552
- fontSize: {
1553
- themeKey: "typography"
1554
- },
1555
- fontStyle: {
1556
- themeKey: "typography"
1557
- },
1558
- fontWeight: {
1559
- themeKey: "typography"
1560
- },
1561
- letterSpacing: {},
1562
- textTransform: {},
1563
- lineHeight: {},
1564
- textAlign: {},
1565
- typography: {
1566
- cssProperty: !1,
1567
- themeKey: "typography"
1568
- }
1569
- };
1570
- function fo(...e) {
1571
- const t = e.reduce((n, o) => n.concat(Object.keys(o)), []), r = new Set(t);
1572
- return e.every((n) => r.size === Object.keys(n).length);
1573
- }
1574
- function mo(e, t) {
1575
- return typeof e == "function" ? e(t) : e;
1576
- }
1577
- function po() {
1578
- function e(r, n, o, i) {
1579
- const s = {
1580
- [r]: n,
1581
- theme: o
1582
- }, l = i[r];
1583
- if (!l)
1584
- return {
1585
- [r]: n
1586
- };
1587
- const {
1588
- cssProperty: u = r,
1589
- themeKey: d,
1590
- transform: p,
1591
- style: m
1592
- } = l;
1593
- if (n == null)
1594
- return null;
1595
- if (d === "typography" && n === "inherit")
1596
- return {
1597
- [r]: n
1598
- };
1599
- const h = rt(o, d) || {};
1600
- return m ? m(s) : be(s, n, (b) => {
1601
- let c = Xe(h, p, b);
1602
- return b === c && typeof b == "string" && (c = Xe(h, p, `${r}${b === "default" ? "" : we(b)}`, b)), u === !1 ? c : {
1603
- [u]: c
1604
- };
1605
- });
1606
- }
1607
- function t(r) {
1608
- const {
1609
- sx: n,
1610
- theme: o = {}
1611
- } = r || {};
1612
- if (!n)
1613
- return null;
1614
- const i = o.unstable_sxConfig ?? ut;
1615
- function s(l) {
1616
- let u = l;
1617
- if (typeof l == "function")
1618
- u = l(o);
1619
- else if (typeof l != "object")
1620
- return l;
1621
- if (!u)
1622
- return null;
1623
- const d = On(o.breakpoints), p = Object.keys(d);
1624
- let m = d;
1625
- return Object.keys(u).forEach((h) => {
1626
- const S = mo(u[h], o);
1627
- if (S != null)
1628
- if (typeof S == "object")
1629
- if (i[h])
1630
- m = Le(m, e(h, S, o, i));
1631
- else {
1632
- const b = be({
1633
- theme: o
1634
- }, S, (c) => ({
1635
- [h]: c
1636
- }));
1637
- fo(b, S) ? m[h] = t({
1638
- sx: S,
1639
- theme: o
1640
- }) : m = Le(m, b);
1641
- }
1642
- else
1643
- m = Le(m, e(h, S, o, i));
1644
- }), Cn(o, $n(p, m));
1645
- }
1646
- return Array.isArray(n) ? n.map(s) : s(n);
1647
- }
1648
- return t;
1649
- }
1650
- const Ie = po();
1651
- Ie.filterProps = ["sx"];
1652
- function ho(e) {
1653
- for (var t = 0, r, n = 0, o = e.length; o >= 4; ++n, o -= 4)
1654
- r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */
1655
- (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
1656
- r >>> 24, t = /* Math.imul(k, m): */
1657
- (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
1658
- (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
1659
- switch (o) {
1660
- case 3:
1661
- t ^= (e.charCodeAt(n + 2) & 255) << 16;
1662
- case 2:
1663
- t ^= (e.charCodeAt(n + 1) & 255) << 8;
1664
- case 1:
1665
- t ^= e.charCodeAt(n) & 255, t = /* Math.imul(h, m): */
1666
- (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
1667
- }
1668
- return t ^= t >>> 13, t = /* Math.imul(h, m): */
1669
- (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
1670
- }
1671
- var go = {
1672
- animationIterationCount: 1,
1673
- aspectRatio: 1,
1674
- borderImageOutset: 1,
1675
- borderImageSlice: 1,
1676
- borderImageWidth: 1,
1677
- boxFlex: 1,
1678
- boxFlexGroup: 1,
1679
- boxOrdinalGroup: 1,
1680
- columnCount: 1,
1681
- columns: 1,
1682
- flex: 1,
1683
- flexGrow: 1,
1684
- flexPositive: 1,
1685
- flexShrink: 1,
1686
- flexNegative: 1,
1687
- flexOrder: 1,
1688
- gridRow: 1,
1689
- gridRowEnd: 1,
1690
- gridRowSpan: 1,
1691
- gridRowStart: 1,
1692
- gridColumn: 1,
1693
- gridColumnEnd: 1,
1694
- gridColumnSpan: 1,
1695
- gridColumnStart: 1,
1696
- msGridRow: 1,
1697
- msGridRowSpan: 1,
1698
- msGridColumn: 1,
1699
- msGridColumnSpan: 1,
1700
- fontWeight: 1,
1701
- lineHeight: 1,
1702
- opacity: 1,
1703
- order: 1,
1704
- orphans: 1,
1705
- scale: 1,
1706
- tabSize: 1,
1707
- widows: 1,
1708
- zIndex: 1,
1709
- zoom: 1,
1710
- WebkitLineClamp: 1,
1711
- // SVG-related properties
1712
- fillOpacity: 1,
1713
- floodOpacity: 1,
1714
- stopOpacity: 1,
1715
- strokeDasharray: 1,
1716
- strokeDashoffset: 1,
1717
- strokeMiterlimit: 1,
1718
- strokeOpacity: 1,
1719
- strokeWidth: 1
1720
- };
1721
- function yo(e) {
1722
- var t = /* @__PURE__ */ Object.create(null);
1723
- return function(r) {
1724
- return t[r] === void 0 && (t[r] = e(r)), t[r];
1725
- };
1726
- }
1727
- var bo = /[A-Z]|^ms/g, vo = /_EMO_([^_]+?)_([^]*?)_EMO_/g, kr = function(t) {
1728
- return t.charCodeAt(1) === 45;
1729
- }, er = function(t) {
1730
- return t != null && typeof t != "boolean";
1731
- }, vt = /* @__PURE__ */ yo(function(e) {
1732
- return kr(e) ? e : e.replace(bo, "-$&").toLowerCase();
1733
- }), tr = function(t, r) {
1734
- switch (t) {
1735
- case "animation":
1736
- case "animationName":
1737
- if (typeof r == "string")
1738
- return r.replace(vo, function(n, o, i) {
1739
- return ve = {
1740
- name: o,
1741
- styles: i,
1742
- next: ve
1743
- }, o;
1744
- });
1745
- }
1746
- return go[t] !== 1 && !kr(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
1747
- };
1748
- function Ze(e, t, r) {
1749
- if (r == null)
1750
- return "";
1751
- var n = r;
1752
- if (n.__emotion_styles !== void 0)
1753
- return n;
1754
- switch (typeof r) {
1755
- case "boolean":
1756
- return "";
1757
- case "object": {
1758
- var o = r;
1759
- if (o.anim === 1)
1760
- return ve = {
1761
- name: o.name,
1762
- styles: o.styles,
1763
- next: ve
1764
- }, o.name;
1765
- var i = r;
1766
- if (i.styles !== void 0) {
1767
- var s = i.next;
1768
- if (s !== void 0)
1769
- for (; s !== void 0; )
1770
- ve = {
1771
- name: s.name,
1772
- styles: s.styles,
1773
- next: ve
1774
- }, s = s.next;
1775
- var l = i.styles + ";";
1776
- return l;
1777
- }
1778
- return So(e, t, r);
1779
- }
1780
- }
1781
- var u = r;
1782
- return u;
1783
- }
1784
- function So(e, t, r) {
1785
- var n = "";
1786
- if (Array.isArray(r))
1787
- for (var o = 0; o < r.length; o++)
1788
- n += Ze(e, t, r[o]) + ";";
1789
- else
1790
- for (var i in r) {
1791
- var s = r[i];
1792
- if (typeof s != "object") {
1793
- var l = s;
1794
- er(l) && (n += vt(i) + ":" + tr(i, l) + ";");
1795
- } else if (Array.isArray(s) && typeof s[0] == "string" && t == null)
1796
- for (var u = 0; u < s.length; u++)
1797
- er(s[u]) && (n += vt(i) + ":" + tr(i, s[u]) + ";");
1798
- else {
1799
- var d = Ze(e, t, s);
1800
- switch (i) {
1801
- case "animation":
1802
- case "animationName": {
1803
- n += vt(i) + ":" + d + ";";
1804
- break;
1805
- }
1806
- default:
1807
- n += i + "{" + d + "}";
1808
- }
1809
- }
1810
- }
1811
- return n;
1812
- }
1813
- var rr = /label:\s*([^\s;{]+)\s*(;|$)/g, ve;
1814
- function Co(e, t, r) {
1815
- if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
1816
- return e[0];
1817
- var n = !0, o = "";
1818
- ve = void 0;
1819
- var i = e[0];
1820
- if (i == null || i.raw === void 0)
1821
- n = !1, o += Ze(r, t, i);
1822
- else {
1823
- var s = i;
1824
- o += s[0];
1825
- }
1826
- for (var l = 1; l < e.length; l++)
1827
- if (o += Ze(r, t, e[l]), n) {
1828
- var u = i;
1829
- o += u[l];
1830
- }
1831
- rr.lastIndex = 0;
1832
- for (var d = "", p; (p = rr.exec(o)) !== null; )
1833
- d += "-" + p[1];
1834
- var m = ho(o) + d;
1835
- return {
1836
- name: m,
1837
- styles: o,
1838
- next: ve
1839
- };
1840
- }
1841
- /**
1842
- * @mui/styled-engine v7.1.0
1843
- *
1844
- * @license MIT
1845
- * This source code is licensed under the MIT license found in the
1846
- * LICENSE file in the root directory of this source tree.
1847
- */
1848
- function Eo(e, t) {
1849
- const r = tn(e, t);
1850
- return process.env.NODE_ENV !== "production" ? (...n) => {
1851
- const o = typeof e == "string" ? `"${e}"` : "component";
1852
- return n.length === 0 ? console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
1853
- `)) : n.some((i) => i === void 0) && console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`), r(...n);
1854
- } : r;
1855
- }
1856
- function To(e, t) {
1857
- Array.isArray(e.__emotion_styles) && (e.__emotion_styles = t(e.__emotion_styles));
1858
- }
1859
- const nr = [];
1860
- function or(e) {
1861
- return nr[0] = e, Co(nr);
1862
- }
1863
- const xo = (e) => {
1864
- const t = Object.keys(e).map((r) => ({
1865
- key: r,
1866
- val: e[r]
1867
- })) || [];
1868
- return t.sort((r, n) => r.val - n.val), t.reduce((r, n) => ({
1869
- ...r,
1870
- [n.key]: n.val
1871
- }), {});
1872
- };
1873
- function wo(e) {
1874
- const {
1875
- // The breakpoint **start** at this value.
1876
- // For instance with the first breakpoint xs: [xs, sm).
1877
- values: t = {
1878
- xs: 0,
1879
- // phone
1880
- sm: 600,
1881
- // tablet
1882
- md: 900,
1883
- // small laptop
1884
- lg: 1200,
1885
- // desktop
1886
- xl: 1536
1887
- // large screen
1888
- },
1889
- unit: r = "px",
1890
- step: n = 5,
1891
- ...o
1892
- } = e, i = xo(t), s = Object.keys(i);
1893
- function l(h) {
1894
- return `@media (min-width:${typeof t[h] == "number" ? t[h] : h}${r})`;
1895
- }
1896
- function u(h) {
1897
- return `@media (max-width:${(typeof t[h] == "number" ? t[h] : h) - n / 100}${r})`;
1898
- }
1899
- function d(h, S) {
1900
- const b = s.indexOf(S);
1901
- return `@media (min-width:${typeof t[h] == "number" ? t[h] : h}${r}) and (max-width:${(b !== -1 && typeof t[s[b]] == "number" ? t[s[b]] : S) - n / 100}${r})`;
1902
- }
1903
- function p(h) {
1904
- return s.indexOf(h) + 1 < s.length ? d(h, s[s.indexOf(h) + 1]) : l(h);
1905
- }
1906
- function m(h) {
1907
- const S = s.indexOf(h);
1908
- return S === 0 ? l(s[1]) : S === s.length - 1 ? u(s[S]) : d(h, s[s.indexOf(h) + 1]).replace("@media", "@media not all and");
1909
- }
1910
- return {
1911
- keys: s,
1912
- values: i,
1913
- up: l,
1914
- down: u,
1915
- between: d,
1916
- only: p,
1917
- not: m,
1918
- unit: r,
1919
- ...o
1920
- };
1921
- }
1922
- const Oo = {
1923
- borderRadius: 4
1924
- };
1925
- function Ir(e = 8, t = $t({
1926
- spacing: e
1927
- })) {
1928
- if (e.mui)
1929
- return e;
1930
- const r = (...n) => (process.env.NODE_ENV !== "production" && (n.length <= 4 || console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)), (n.length === 0 ? [1] : n).map((i) => {
1931
- const s = t(i);
1932
- return typeof s == "number" ? `${s}px` : s;
1933
- }).join(" "));
1934
- return r.mui = !0, r;
1935
- }
1936
- function $o(e, t) {
1937
- var n;
1938
- const r = this;
1939
- if (r.vars) {
1940
- if (!((n = r.colorSchemes) != null && n[e]) || typeof r.getColorSchemeSelector != "function")
1941
- return {};
1942
- let o = r.getColorSchemeSelector(e);
1943
- return o === "&" ? t : ((o.includes("data-") || o.includes(".")) && (o = `*:where(${o.replace(/\s*&$/, "")}) &`), {
1944
- [o]: t
1945
- });
1946
- }
1947
- return r.palette.mode === e ? t : {};
1948
- }
1949
- function At(e = {}, ...t) {
1950
- const {
1951
- breakpoints: r = {},
1952
- palette: n = {},
1953
- spacing: o,
1954
- shape: i = {},
1955
- ...s
1956
- } = e, l = wo(r), u = Ir(o);
1957
- let d = ae({
1958
- breakpoints: l,
1959
- direction: "ltr",
1960
- components: {},
1961
- // Inject component definitions.
1962
- palette: {
1963
- mode: "light",
1964
- ...n
1965
- },
1966
- spacing: u,
1967
- shape: {
1968
- ...Oo,
1969
- ...i
1970
- }
1971
- }, s);
1972
- return d = xn(d), d.applyStyles = $o, d = t.reduce((p, m) => ae(p, m), d), d.unstable_sxConfig = {
1973
- ...ut,
1974
- ...s == null ? void 0 : s.unstable_sxConfig
1975
- }, d.unstable_sx = function(m) {
1976
- return Ie({
1977
- sx: m,
1978
- theme: this
1979
- });
1980
- }, d;
1981
- }
1982
- function _o(e) {
1983
- return Object.keys(e).length === 0;
1984
- }
1985
- function Ao(e = null) {
1986
- const t = me.useContext(rn);
1987
- return !t || _o(t) ? e : t;
1988
- }
1989
- const Ro = At();
1990
- function Po(e = Ro) {
1991
- return Ao(e);
1992
- }
1993
- const ko = {
1994
- active: "active",
1995
- checked: "checked",
1996
- completed: "completed",
1997
- disabled: "disabled",
1998
- error: "error",
1999
- expanded: "expanded",
2000
- focused: "focused",
2001
- focusVisible: "focusVisible",
2002
- open: "open",
2003
- readOnly: "readOnly",
2004
- required: "required",
2005
- selected: "selected"
2006
- };
2007
- function Rt(e, t, r = "Mui") {
2008
- const n = ko[t];
2009
- return n ? `${r}-${n}` : `${an.generate(e)}-${t}`;
2010
- }
2011
- function Io(e, t, r = "Mui") {
2012
- const n = {};
2013
- return t.forEach((o) => {
2014
- n[o] = Rt(e, o, r);
2015
- }), n;
2016
- }
2017
- function Mr(e, t = "") {
2018
- return e.displayName || e.name || t;
2019
- }
2020
- function ir(e, t, r) {
2021
- const n = Mr(t);
2022
- return e.displayName || (n !== "" ? `${r}(${n})` : r);
2023
- }
2024
- function Mo(e) {
2025
- if (e != null) {
2026
- if (typeof e == "string")
2027
- return e;
2028
- if (typeof e == "function")
2029
- return Mr(e, "Component");
2030
- if (typeof e == "object")
2031
- switch (e.$$typeof) {
2032
- case Je.ForwardRef:
2033
- return ir(e, e.render, "ForwardRef");
2034
- case Je.Memo:
2035
- return ir(e, e.type, "memo");
2036
- default:
2037
- return;
2038
- }
2039
- }
2040
- }
2041
- function Nr(e) {
2042
- const {
2043
- variants: t,
2044
- ...r
2045
- } = e, n = {
2046
- variants: t,
2047
- style: or(r),
2048
- isProcessed: !0
2049
- };
2050
- return n.style === r || t && t.forEach((o) => {
2051
- typeof o.style != "function" && (o.style = or(o.style));
2052
- }), n;
2053
- }
2054
- const No = At();
2055
- function St(e) {
2056
- return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
2057
- }
2058
- function Do(e) {
2059
- return e ? (t, r) => r[e] : null;
2060
- }
2061
- function Bo(e, t, r) {
2062
- e.theme = jo(e.theme) ? r : e.theme[t] || e.theme;
2063
- }
2064
- function qe(e, t) {
2065
- const r = typeof t == "function" ? t(e) : t;
2066
- if (Array.isArray(r))
2067
- return r.flatMap((n) => qe(e, n));
2068
- if (Array.isArray(r == null ? void 0 : r.variants)) {
2069
- let n;
2070
- if (r.isProcessed)
2071
- n = r.style;
2072
- else {
2073
- const {
2074
- variants: o,
2075
- ...i
2076
- } = r;
2077
- n = i;
2078
- }
2079
- return Dr(e, r.variants, [n]);
2080
- }
2081
- return r != null && r.isProcessed ? r.style : r;
2082
- }
2083
- function Dr(e, t, r = []) {
2084
- var o;
2085
- let n;
2086
- e: for (let i = 0; i < t.length; i += 1) {
2087
- const s = t[i];
2088
- if (typeof s.props == "function") {
2089
- if (n ?? (n = {
2090
- ...e,
2091
- ...e.ownerState,
2092
- ownerState: e.ownerState
2093
- }), !s.props(n))
2094
- continue;
2095
- } else
2096
- for (const l in s.props)
2097
- if (e[l] !== s.props[l] && ((o = e.ownerState) == null ? void 0 : o[l]) !== s.props[l])
2098
- continue e;
2099
- typeof s.style == "function" ? (n ?? (n = {
2100
- ...e,
2101
- ...e.ownerState,
2102
- ownerState: e.ownerState
2103
- }), r.push(s.style(n))) : r.push(s.style);
2104
- }
2105
- return r;
2106
- }
2107
- function Lo(e = {}) {
2108
- const {
2109
- themeId: t,
2110
- defaultTheme: r = No,
2111
- rootShouldForwardProp: n = St,
2112
- slotShouldForwardProp: o = St
2113
- } = e;
2114
- function i(l) {
2115
- Bo(l, t, r);
2116
- }
2117
- return (l, u = {}) => {
2118
- To(l, (g) => g.filter((j) => j !== Ie));
2119
- const {
2120
- name: d,
2121
- slot: p,
2122
- skipVariantsResolver: m,
2123
- skipSx: h,
2124
- // TODO v6: remove `lowercaseFirstLetter()` in the next major release
2125
- // For more details: https://github.com/mui/material-ui/pull/37908
2126
- overridesResolver: S = Do(Br(p)),
2127
- ...b
2128
- } = u, c = m !== void 0 ? m : (
2129
- // TODO v6: remove `Root` in the next major release
2130
- // For more details: https://github.com/mui/material-ui/pull/37908
2131
- p && p !== "Root" && p !== "root" || !1
2132
- ), x = h || !1;
2133
- let $ = St;
2134
- p === "Root" || p === "root" ? $ = n : p ? $ = o : Fo(l) && ($ = void 0);
2135
- const J = Eo(l, {
2136
- shouldForwardProp: $,
2137
- label: Vo(d, p),
2138
- ...b
2139
- }), O = (g) => {
2140
- if (typeof g == "function" && g.__emotion_real !== g)
2141
- return function(Z) {
2142
- return qe(Z, g);
2143
- };
2144
- if (he(g)) {
2145
- const j = Nr(g);
2146
- return j.variants ? function(ee) {
2147
- return qe(ee, j);
2148
- } : j.style;
2149
- }
2150
- return g;
2151
- }, w = (...g) => {
2152
- const j = [], Z = g.map(O), ee = [];
2153
- if (j.push(i), d && S && ee.push(function(_) {
2154
- var re, ue;
2155
- const K = (ue = (re = _.theme.components) == null ? void 0 : re[d]) == null ? void 0 : ue.styleOverrides;
2156
- if (!K)
2157
- return null;
2158
- const ne = {};
2159
- for (const xe in K)
2160
- ne[xe] = qe(_, K[xe]);
2161
- return S(_, ne);
2162
- }), d && !c && ee.push(function(_) {
2163
- var ne, re;
2164
- const L = _.theme, K = (re = (ne = L == null ? void 0 : L.components) == null ? void 0 : ne[d]) == null ? void 0 : re.variants;
2165
- return K ? Dr(_, K) : null;
2166
- }), x || ee.push(Ie), Array.isArray(Z[0])) {
2167
- const T = Z.shift(), _ = new Array(j.length).fill(""), L = new Array(ee.length).fill("");
2168
- let K;
2169
- K = [..._, ...T, ...L], K.raw = [..._, ...T.raw, ...L], j.unshift(K);
2170
- }
2171
- const te = [...j, ...Z, ...ee], a = J(...te);
2172
- return l.muiName && (a.muiName = l.muiName), process.env.NODE_ENV !== "production" && (a.displayName = zo(d, p, l)), a;
2173
- };
2174
- return J.withConfig && (w.withConfig = J.withConfig), w;
2175
- };
2176
- }
2177
- function zo(e, t, r) {
2178
- return e ? `${e}${we(t || "")}` : `Styled(${Mo(r)})`;
2179
- }
2180
- function Vo(e, t) {
2181
- let r;
2182
- return process.env.NODE_ENV !== "production" && e && (r = `${e}-${Br(t || "Root")}`), r;
2183
- }
2184
- function jo(e) {
2185
- for (const t in e)
2186
- return !1;
2187
- return !0;
2188
- }
2189
- function Fo(e) {
2190
- return typeof e == "string" && // 96 is one less than the char code
2191
- // for "a" so this is checking that
2192
- // it's a lowercase character
2193
- e.charCodeAt(0) > 96;
2194
- }
2195
- function Br(e) {
2196
- return e && e.charAt(0).toLowerCase() + e.slice(1);
2197
- }
2198
- function Tt(e, t) {
2199
- const r = {
2200
- ...t
2201
- };
2202
- for (const n in e)
2203
- if (Object.prototype.hasOwnProperty.call(e, n)) {
2204
- const o = n;
2205
- if (o === "components" || o === "slots")
2206
- r[o] = {
2207
- ...e[o],
2208
- ...r[o]
2209
- };
2210
- else if (o === "componentsProps" || o === "slotProps") {
2211
- const i = e[o], s = t[o];
2212
- if (!s)
2213
- r[o] = i || {};
2214
- else if (!i)
2215
- r[o] = s;
2216
- else {
2217
- r[o] = {
2218
- ...s
2219
- };
2220
- for (const l in i)
2221
- if (Object.prototype.hasOwnProperty.call(i, l)) {
2222
- const u = l;
2223
- r[o][u] = Tt(i[u], s[u]);
2224
- }
2225
- }
2226
- } else r[o] === void 0 && (r[o] = e[o]);
2227
- }
2228
- return r;
2229
- }
2230
- function Uo(e, t = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
2231
- return Math.max(t, Math.min(e, r));
2232
- }
2233
- function Pt(e, t = 0, r = 1) {
2234
- return process.env.NODE_ENV !== "production" && (e < t || e > r) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`), Uo(e, t, r);
2235
- }
2236
- function Yo(e) {
2237
- e = e.slice(1);
2238
- const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
2239
- let r = e.match(t);
2240
- return r && r[0].length === 1 && (r = r.map((n) => n + n)), process.env.NODE_ENV !== "production" && e.length !== e.trim().length && console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`), r ? `rgb${r.length === 4 ? "a" : ""}(${r.map((n, o) => o < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
2241
- }
2242
- function Ee(e) {
2243
- if (e.type)
2244
- return e;
2245
- if (e.charAt(0) === "#")
2246
- return Ee(Yo(e));
2247
- const t = e.indexOf("("), r = e.substring(0, t);
2248
- if (!["rgb", "rgba", "hsl", "hsla", "color"].includes(r))
2249
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
2250
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : Ce(9, e));
2251
- let n = e.substring(t + 1, e.length - 1), o;
2252
- if (r === "color") {
2253
- if (n = n.split(" "), o = n.shift(), n.length === 4 && n[3].charAt(0) === "/" && (n[3] = n[3].slice(1)), !["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].includes(o))
2254
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${o}\` color space.
2255
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : Ce(10, o));
2256
- } else
2257
- n = n.split(",");
2258
- return n = n.map((i) => parseFloat(i)), {
2259
- type: r,
2260
- values: n,
2261
- colorSpace: o
2262
- };
2263
- }
2264
- const Wo = (e) => {
2265
- const t = Ee(e);
2266
- return t.values.slice(0, 3).map((r, n) => t.type.includes("hsl") && n !== 0 ? `${r}%` : r).join(" ");
2267
- }, De = (e, t) => {
2268
- try {
2269
- return Wo(e);
2270
- } catch {
2271
- return t && process.env.NODE_ENV !== "production" && console.warn(t), e;
2272
- }
2273
- };
2274
- function ft(e) {
2275
- const {
2276
- type: t,
2277
- colorSpace: r
2278
- } = e;
2279
- let {
2280
- values: n
2281
- } = e;
2282
- return t.includes("rgb") ? n = n.map((o, i) => i < 3 ? parseInt(o, 10) : o) : t.includes("hsl") && (n[1] = `${n[1]}%`, n[2] = `${n[2]}%`), t.includes("color") ? n = `${r} ${n.join(" ")}` : n = `${n.join(", ")}`, `${t}(${n})`;
2283
- }
2284
- function Lr(e) {
2285
- e = Ee(e);
2286
- const {
2287
- values: t
2288
- } = e, r = t[0], n = t[1] / 100, o = t[2] / 100, i = n * Math.min(o, 1 - o), s = (d, p = (d + r / 30) % 12) => o - i * Math.max(Math.min(p - 3, 9 - p, 1), -1);
2289
- let l = "rgb";
2290
- const u = [Math.round(s(0) * 255), Math.round(s(8) * 255), Math.round(s(4) * 255)];
2291
- return e.type === "hsla" && (l += "a", u.push(t[3])), ft({
2292
- type: l,
2293
- values: u
2294
- });
2295
- }
2296
- function xt(e) {
2297
- e = Ee(e);
2298
- let t = e.type === "hsl" || e.type === "hsla" ? Ee(Lr(e)).values : e.values;
2299
- return t = t.map((r) => (e.type !== "color" && (r /= 255), r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4)), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3));
2300
- }
2301
- function ar(e, t) {
2302
- const r = xt(e), n = xt(t);
2303
- return (Math.max(r, n) + 0.05) / (Math.min(r, n) + 0.05);
2304
- }
2305
- function Ho(e, t) {
2306
- return e = Ee(e), t = Pt(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, ft(e);
2307
- }
2308
- function Ge(e, t, r) {
2309
- try {
2310
- return Ho(e, t);
2311
- } catch {
2312
- return e;
2313
- }
2314
- }
2315
- function kt(e, t) {
2316
- if (e = Ee(e), t = Pt(t), e.type.includes("hsl"))
2317
- e.values[2] *= 1 - t;
2318
- else if (e.type.includes("rgb") || e.type.includes("color"))
2319
- for (let r = 0; r < 3; r += 1)
2320
- e.values[r] *= 1 - t;
2321
- return ft(e);
2322
- }
2323
- function W(e, t, r) {
2324
- try {
2325
- return kt(e, t);
2326
- } catch {
2327
- return e;
2328
- }
2329
- }
2330
- function It(e, t) {
2331
- if (e = Ee(e), t = Pt(t), e.type.includes("hsl"))
2332
- e.values[2] += (100 - e.values[2]) * t;
2333
- else if (e.type.includes("rgb"))
2334
- for (let r = 0; r < 3; r += 1)
2335
- e.values[r] += (255 - e.values[r]) * t;
2336
- else if (e.type.includes("color"))
2337
- for (let r = 0; r < 3; r += 1)
2338
- e.values[r] += (1 - e.values[r]) * t;
2339
- return ft(e);
2340
- }
2341
- function H(e, t, r) {
2342
- try {
2343
- return It(e, t);
2344
- } catch {
2345
- return e;
2346
- }
2347
- }
2348
- function Go(e, t = 0.15) {
2349
- return xt(e) > 0.5 ? kt(e, t) : It(e, t);
2350
- }
2351
- function Ke(e, t, r) {
2352
- try {
2353
- return Go(e, t);
2354
- } catch {
2355
- return e;
2356
- }
2357
- }
2358
- const Ko = /* @__PURE__ */ me.createContext(void 0);
2359
- process.env.NODE_ENV !== "production" && (B.node, B.object);
2360
- function qo(e) {
2361
- const {
2362
- theme: t,
2363
- name: r,
2364
- props: n
2365
- } = e;
2366
- if (!t || !t.components || !t.components[r])
2367
- return n;
2368
- const o = t.components[r];
2369
- return o.defaultProps ? Tt(o.defaultProps, n) : !o.styleOverrides && !o.variants ? Tt(o, n) : n;
2370
- }
2371
- function Qo({
2372
- props: e,
2373
- name: t
2374
- }) {
2375
- const r = me.useContext(Ko);
2376
- return qo({
2377
- props: e,
2378
- name: t,
2379
- theme: {
2380
- components: r
2381
- }
2382
- });
2383
- }
2384
- const sr = {
2385
- theme: void 0
2386
- };
2387
- function Jo(e) {
2388
- let t, r;
2389
- return function(o) {
2390
- let i = t;
2391
- return (i === void 0 || o.theme !== r) && (sr.theme = o.theme, i = Nr(e(sr)), t = i, r = o.theme), i;
2392
- };
2393
- }
2394
- function Xo(e = "") {
2395
- function t(...n) {
2396
- if (!n.length)
2397
- return "";
2398
- const o = n[0];
2399
- return typeof o == "string" && !o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/) ? `, var(--${e ? `${e}-` : ""}${o}${t(...n.slice(1))})` : `, ${o}`;
2400
- }
2401
- return (n, ...o) => `var(--${e ? `${e}-` : ""}${n}${t(...o)})`;
2402
- }
2403
- const cr = (e, t, r, n = []) => {
2404
- let o = e;
2405
- t.forEach((i, s) => {
2406
- s === t.length - 1 ? Array.isArray(o) ? o[Number(i)] = r : o && typeof o == "object" && (o[i] = r) : o && typeof o == "object" && (o[i] || (o[i] = n.includes(i) ? [] : {}), o = o[i]);
2407
- });
2408
- }, Zo = (e, t, r) => {
2409
- function n(o, i = [], s = []) {
2410
- Object.entries(o).forEach(([l, u]) => {
2411
- (!r || r && !r([...i, l])) && u != null && (typeof u == "object" && Object.keys(u).length > 0 ? n(u, [...i, l], Array.isArray(u) ? [...s, l] : s) : t([...i, l], u, s));
2412
- });
2413
- }
2414
- n(e);
2415
- }, ei = (e, t) => typeof t == "number" ? ["lineHeight", "fontWeight", "opacity", "zIndex"].some((n) => e.includes(n)) || e[e.length - 1].toLowerCase().includes("opacity") ? t : `${t}px` : t;
2416
- function Ct(e, t) {
2417
- const {
2418
- prefix: r,
2419
- shouldSkipGeneratingVar: n
2420
- } = t || {}, o = {}, i = {}, s = {};
2421
- return Zo(
2422
- e,
2423
- (l, u, d) => {
2424
- if ((typeof u == "string" || typeof u == "number") && (!n || !n(l, u))) {
2425
- const p = `--${r ? `${r}-` : ""}${l.join("-")}`, m = ei(l, u);
2426
- Object.assign(o, {
2427
- [p]: m
2428
- }), cr(i, l, `var(${p})`, d), cr(s, l, `var(${p}, ${m})`, d);
2429
- }
2430
- },
2431
- (l) => l[0] === "vars"
2432
- // skip 'vars/*' paths
2433
- ), {
2434
- css: o,
2435
- vars: i,
2436
- varsWithDefaults: s
2437
- };
2438
- }
2439
- function ti(e, t = {}) {
2440
- const {
2441
- getSelector: r = x,
2442
- disableCssColorScheme: n,
2443
- colorSchemeSelector: o
2444
- } = t, {
2445
- colorSchemes: i = {},
2446
- components: s,
2447
- defaultColorScheme: l = "light",
2448
- ...u
2449
- } = e, {
2450
- vars: d,
2451
- css: p,
2452
- varsWithDefaults: m
2453
- } = Ct(u, t);
2454
- let h = m;
2455
- const S = {}, {
2456
- [l]: b,
2457
- ...c
2458
- } = i;
2459
- if (Object.entries(c || {}).forEach(([O, w]) => {
2460
- const {
2461
- vars: g,
2462
- css: j,
2463
- varsWithDefaults: Z
2464
- } = Ct(w, t);
2465
- h = ae(h, Z), S[O] = {
2466
- css: j,
2467
- vars: g
2468
- };
2469
- }), b) {
2470
- const {
2471
- css: O,
2472
- vars: w,
2473
- varsWithDefaults: g
2474
- } = Ct(b, t);
2475
- h = ae(h, g), S[l] = {
2476
- css: O,
2477
- vars: w
2478
- };
2479
- }
2480
- function x(O, w) {
2481
- var j, Z;
2482
- let g = o;
2483
- if (o === "class" && (g = ".%s"), o === "data" && (g = "[data-%s]"), o != null && o.startsWith("data-") && !o.includes("%s") && (g = `[${o}="%s"]`), O) {
2484
- if (g === "media")
2485
- return e.defaultColorScheme === O ? ":root" : {
2486
- [`@media (prefers-color-scheme: ${((Z = (j = i[O]) == null ? void 0 : j.palette) == null ? void 0 : Z.mode) || O})`]: {
2487
- ":root": w
2488
- }
2489
- };
2490
- if (g)
2491
- return e.defaultColorScheme === O ? `:root, ${g.replace("%s", String(O))}` : g.replace("%s", String(O));
2492
- }
2493
- return ":root";
2494
- }
2495
- return {
2496
- vars: h,
2497
- generateThemeVars: () => {
2498
- let O = {
2499
- ...d
2500
- };
2501
- return Object.entries(S).forEach(([, {
2502
- vars: w
2503
- }]) => {
2504
- O = ae(O, w);
2505
- }), O;
2506
- },
2507
- generateStyleSheets: () => {
2508
- var ee, te;
2509
- const O = [], w = e.defaultColorScheme || "light";
2510
- function g(a, T) {
2511
- Object.keys(T).length && O.push(typeof a == "string" ? {
2512
- [a]: {
2513
- ...T
2514
- }
2515
- } : a);
2516
- }
2517
- g(r(void 0, {
2518
- ...p
2519
- }), p);
2520
- const {
2521
- [w]: j,
2522
- ...Z
2523
- } = S;
2524
- if (j) {
2525
- const {
2526
- css: a
2527
- } = j, T = (te = (ee = i[w]) == null ? void 0 : ee.palette) == null ? void 0 : te.mode, _ = !n && T ? {
2528
- colorScheme: T,
2529
- ...a
2530
- } : {
2531
- ...a
2532
- };
2533
- g(r(w, {
2534
- ..._
2535
- }), _);
2536
- }
2537
- return Object.entries(Z).forEach(([a, {
2538
- css: T
2539
- }]) => {
2540
- var K, ne;
2541
- const _ = (ne = (K = i[a]) == null ? void 0 : K.palette) == null ? void 0 : ne.mode, L = !n && _ ? {
2542
- colorScheme: _,
2543
- ...T
2544
- } : {
2545
- ...T
2546
- };
2547
- g(r(a, {
2548
- ...L
2549
- }), L);
2550
- }), O;
2551
- }
2552
- };
2553
- }
2554
- function ri(e) {
2555
- return function(r) {
2556
- return e === "media" ? (process.env.NODE_ENV !== "production" && r !== "light" && r !== "dark" && console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`), `@media (prefers-color-scheme: ${r})`) : e ? e.startsWith("data-") && !e.includes("%s") ? `[${e}="${r}"] &` : e === "class" ? `.${r} &` : e === "data" ? `[data-${r}] &` : `${e.replace("%s", r)} &` : "&";
2557
- };
2558
- }
2559
- const Ve = {
2560
- black: "#000",
2561
- white: "#fff"
2562
- }, ni = {
2563
- 50: "#fafafa",
2564
- 100: "#f5f5f5",
2565
- 200: "#eeeeee",
2566
- 300: "#e0e0e0",
2567
- 400: "#bdbdbd",
2568
- 500: "#9e9e9e",
2569
- 600: "#757575",
2570
- 700: "#616161",
2571
- 800: "#424242",
2572
- 900: "#212121",
2573
- A100: "#f5f5f5",
2574
- A200: "#eeeeee",
2575
- A400: "#bdbdbd",
2576
- A700: "#616161"
2577
- }, Oe = {
2578
- 50: "#f3e5f5",
2579
- 200: "#ce93d8",
2580
- 300: "#ba68c8",
2581
- 400: "#ab47bc",
2582
- 500: "#9c27b0",
2583
- 700: "#7b1fa2"
2584
- }, $e = {
2585
- 300: "#e57373",
2586
- 400: "#ef5350",
2587
- 500: "#f44336",
2588
- 700: "#d32f2f",
2589
- 800: "#c62828"
2590
- }, Ne = {
2591
- 300: "#ffb74d",
2592
- 400: "#ffa726",
2593
- 500: "#ff9800",
2594
- 700: "#f57c00",
2595
- 900: "#e65100"
2596
- }, _e = {
2597
- 50: "#e3f2fd",
2598
- 200: "#90caf9",
2599
- 400: "#42a5f5",
2600
- 700: "#1976d2",
2601
- 800: "#1565c0"
2602
- }, Ae = {
2603
- 300: "#4fc3f7",
2604
- 400: "#29b6f6",
2605
- 500: "#03a9f4",
2606
- 700: "#0288d1",
2607
- 900: "#01579b"
2608
- }, Re = {
2609
- 300: "#81c784",
2610
- 400: "#66bb6a",
2611
- 500: "#4caf50",
2612
- 700: "#388e3c",
2613
- 800: "#2e7d32",
2614
- 900: "#1b5e20"
2615
- };
2616
- function zr() {
2617
- return {
2618
- // The colors used to style the text.
2619
- text: {
2620
- // The most important text.
2621
- primary: "rgba(0, 0, 0, 0.87)",
2622
- // Secondary text.
2623
- secondary: "rgba(0, 0, 0, 0.6)",
2624
- // Disabled text have even lower visual prominence.
2625
- disabled: "rgba(0, 0, 0, 0.38)"
2626
- },
2627
- // The color used to divide different elements.
2628
- divider: "rgba(0, 0, 0, 0.12)",
2629
- // The background colors used to style the surfaces.
2630
- // Consistency between these values is important.
2631
- background: {
2632
- paper: Ve.white,
2633
- default: Ve.white
2634
- },
2635
- // The colors used to style the action elements.
2636
- action: {
2637
- // The color of an active action like an icon button.
2638
- active: "rgba(0, 0, 0, 0.54)",
2639
- // The color of an hovered action.
2640
- hover: "rgba(0, 0, 0, 0.04)",
2641
- hoverOpacity: 0.04,
2642
- // The color of a selected action.
2643
- selected: "rgba(0, 0, 0, 0.08)",
2644
- selectedOpacity: 0.08,
2645
- // The color of a disabled action.
2646
- disabled: "rgba(0, 0, 0, 0.26)",
2647
- // The background color of a disabled action.
2648
- disabledBackground: "rgba(0, 0, 0, 0.12)",
2649
- disabledOpacity: 0.38,
2650
- focus: "rgba(0, 0, 0, 0.12)",
2651
- focusOpacity: 0.12,
2652
- activatedOpacity: 0.12
2653
- }
2654
- };
2655
- }
2656
- const oi = zr();
2657
- function Vr() {
2658
- return {
2659
- text: {
2660
- primary: Ve.white,
2661
- secondary: "rgba(255, 255, 255, 0.7)",
2662
- disabled: "rgba(255, 255, 255, 0.5)",
2663
- icon: "rgba(255, 255, 255, 0.5)"
2664
- },
2665
- divider: "rgba(255, 255, 255, 0.12)",
2666
- background: {
2667
- paper: "#121212",
2668
- default: "#121212"
2669
- },
2670
- action: {
2671
- active: Ve.white,
2672
- hover: "rgba(255, 255, 255, 0.08)",
2673
- hoverOpacity: 0.08,
2674
- selected: "rgba(255, 255, 255, 0.16)",
2675
- selectedOpacity: 0.16,
2676
- disabled: "rgba(255, 255, 255, 0.3)",
2677
- disabledBackground: "rgba(255, 255, 255, 0.12)",
2678
- disabledOpacity: 0.38,
2679
- focus: "rgba(255, 255, 255, 0.12)",
2680
- focusOpacity: 0.12,
2681
- activatedOpacity: 0.24
2682
- }
2683
- };
2684
- }
2685
- const lr = Vr();
2686
- function ur(e, t, r, n) {
2687
- const o = n.light || n, i = n.dark || n * 1.5;
2688
- e[t] || (e.hasOwnProperty(r) ? e[t] = e[r] : t === "light" ? e.light = It(e.main, o) : t === "dark" && (e.dark = kt(e.main, i)));
2689
- }
2690
- function ii(e = "light") {
2691
- return e === "dark" ? {
2692
- main: _e[200],
2693
- light: _e[50],
2694
- dark: _e[400]
2695
- } : {
2696
- main: _e[700],
2697
- light: _e[400],
2698
- dark: _e[800]
2699
- };
2700
- }
2701
- function ai(e = "light") {
2702
- return e === "dark" ? {
2703
- main: Oe[200],
2704
- light: Oe[50],
2705
- dark: Oe[400]
2706
- } : {
2707
- main: Oe[500],
2708
- light: Oe[300],
2709
- dark: Oe[700]
2710
- };
2711
- }
2712
- function si(e = "light") {
2713
- return e === "dark" ? {
2714
- main: $e[500],
2715
- light: $e[300],
2716
- dark: $e[700]
2717
- } : {
2718
- main: $e[700],
2719
- light: $e[400],
2720
- dark: $e[800]
2721
- };
2722
- }
2723
- function ci(e = "light") {
2724
- return e === "dark" ? {
2725
- main: Ae[400],
2726
- light: Ae[300],
2727
- dark: Ae[700]
2728
- } : {
2729
- main: Ae[700],
2730
- light: Ae[500],
2731
- dark: Ae[900]
2732
- };
2733
- }
2734
- function li(e = "light") {
2735
- return e === "dark" ? {
2736
- main: Re[400],
2737
- light: Re[300],
2738
- dark: Re[700]
2739
- } : {
2740
- main: Re[800],
2741
- light: Re[500],
2742
- dark: Re[900]
2743
- };
2744
- }
2745
- function ui(e = "light") {
2746
- return e === "dark" ? {
2747
- main: Ne[400],
2748
- light: Ne[300],
2749
- dark: Ne[700]
2750
- } : {
2751
- main: "#ed6c02",
2752
- // closest to orange[800] that pass 3:1.
2753
- light: Ne[500],
2754
- dark: Ne[900]
2755
- };
2756
- }
2757
- function Mt(e) {
2758
- const {
2759
- mode: t = "light",
2760
- contrastThreshold: r = 3,
2761
- tonalOffset: n = 0.2,
2762
- ...o
2763
- } = e, i = e.primary || ii(t), s = e.secondary || ai(t), l = e.error || si(t), u = e.info || ci(t), d = e.success || li(t), p = e.warning || ui(t);
2764
- function m(c) {
2765
- const x = ar(c, lr.text.primary) >= r ? lr.text.primary : oi.text.primary;
2766
- if (process.env.NODE_ENV !== "production") {
2767
- const $ = ar(c, x);
2768
- $ < 3 && console.error([`MUI: The contrast ratio of ${$}:1 for ${x} on ${c}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
2769
- `));
2770
- }
2771
- return x;
2772
- }
2773
- const h = ({
2774
- color: c,
2775
- name: x,
2776
- mainShade: $ = 500,
2777
- lightShade: J = 300,
2778
- darkShade: O = 700
2779
- }) => {
2780
- if (c = {
2781
- ...c
2782
- }, !c.main && c[$] && (c.main = c[$]), !c.hasOwnProperty("main"))
2783
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${x ? ` (${x})` : ""} provided to augmentColor(color) is invalid.
2784
- The color object needs to have a \`main\` property or a \`${$}\` property.` : Ce(11, x ? ` (${x})` : "", $));
2785
- if (typeof c.main != "string")
2786
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${x ? ` (${x})` : ""} provided to augmentColor(color) is invalid.
2787
- \`color.main\` should be a string, but \`${JSON.stringify(c.main)}\` was provided instead.
2788
-
2789
- Did you intend to use one of the following approaches?
2790
-
2791
- import { green } from "@mui/material/colors";
2792
-
2793
- const theme1 = createTheme({ palette: {
2794
- primary: green,
2795
- } });
2796
-
2797
- const theme2 = createTheme({ palette: {
2798
- primary: { main: green[500] },
2799
- } });` : Ce(12, x ? ` (${x})` : "", JSON.stringify(c.main)));
2800
- return ur(c, "light", J, n), ur(c, "dark", O, n), c.contrastText || (c.contrastText = m(c.main)), c;
2801
- };
2802
- let S;
2803
- return t === "light" ? S = zr() : t === "dark" && (S = Vr()), process.env.NODE_ENV !== "production" && (S || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), ae({
2804
- // A collection of common colors.
2805
- common: {
2806
- ...Ve
2807
- },
2808
- // prevent mutable object.
2809
- // The palette mode, can be light or dark.
2810
- mode: t,
2811
- // The colors used to represent primary interface elements for a user.
2812
- primary: h({
2813
- color: i,
2814
- name: "primary"
2815
- }),
2816
- // The colors used to represent secondary interface elements for a user.
2817
- secondary: h({
2818
- color: s,
2819
- name: "secondary",
2820
- mainShade: "A400",
2821
- lightShade: "A200",
2822
- darkShade: "A700"
2823
- }),
2824
- // The colors used to represent interface elements that the user should be made aware of.
2825
- error: h({
2826
- color: l,
2827
- name: "error"
2828
- }),
2829
- // The colors used to represent potentially dangerous actions or important messages.
2830
- warning: h({
2831
- color: p,
2832
- name: "warning"
2833
- }),
2834
- // The colors used to present information to the user that is neutral and not necessarily important.
2835
- info: h({
2836
- color: u,
2837
- name: "info"
2838
- }),
2839
- // The colors used to indicate the successful completion of an action that user triggered.
2840
- success: h({
2841
- color: d,
2842
- name: "success"
2843
- }),
2844
- // The grey colors.
2845
- grey: ni,
2846
- // Used by `getContrastText()` to maximize the contrast between
2847
- // the background and the text.
2848
- contrastThreshold: r,
2849
- // Takes a background color and returns the text color that maximizes the contrast.
2850
- getContrastText: m,
2851
- // Generate a rich color object.
2852
- augmentColor: h,
2853
- // Used by the functions below to shift a color's luminance by approximately
2854
- // two indexes within its tonal palette.
2855
- // E.g., shift from Red 500 to Red 300 or Red 700.
2856
- tonalOffset: n,
2857
- // The light and dark mode object.
2858
- ...S
2859
- }, o);
2860
- }
2861
- function fi(e) {
2862
- const t = {};
2863
- return Object.entries(e).forEach((n) => {
2864
- const [o, i] = n;
2865
- typeof i == "object" && (t[o] = `${i.fontStyle ? `${i.fontStyle} ` : ""}${i.fontVariant ? `${i.fontVariant} ` : ""}${i.fontWeight ? `${i.fontWeight} ` : ""}${i.fontStretch ? `${i.fontStretch} ` : ""}${i.fontSize || ""}${i.lineHeight ? `/${i.lineHeight} ` : ""}${i.fontFamily || ""}`);
2866
- }), t;
2867
- }
2868
- function di(e, t) {
2869
- return {
2870
- toolbar: {
2871
- minHeight: 56,
2872
- [e.up("xs")]: {
2873
- "@media (orientation: landscape)": {
2874
- minHeight: 48
2875
- }
2876
- },
2877
- [e.up("sm")]: {
2878
- minHeight: 64
2879
- }
2880
- },
2881
- ...t
2882
- };
2883
- }
2884
- function mi(e) {
2885
- return Math.round(e * 1e5) / 1e5;
2886
- }
2887
- const fr = {
2888
- textTransform: "uppercase"
2889
- }, dr = '"Roboto", "Helvetica", "Arial", sans-serif';
2890
- function pi(e, t) {
2891
- const {
2892
- fontFamily: r = dr,
2893
- // The default font size of the Material Specification.
2894
- fontSize: n = 14,
2895
- // px
2896
- fontWeightLight: o = 300,
2897
- fontWeightRegular: i = 400,
2898
- fontWeightMedium: s = 500,
2899
- fontWeightBold: l = 700,
2900
- // Tell MUI what's the font-size on the html element.
2901
- // 16px is the default font-size used by browsers.
2902
- htmlFontSize: u = 16,
2903
- // Apply the CSS properties to all the variants.
2904
- allVariants: d,
2905
- pxToRem: p,
2906
- ...m
2907
- } = typeof t == "function" ? t(e) : t;
2908
- process.env.NODE_ENV !== "production" && (typeof n != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof u != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
2909
- const h = n / 14, S = p || ((x) => `${x / u * h}rem`), b = (x, $, J, O, w) => ({
2910
- fontFamily: r,
2911
- fontWeight: x,
2912
- fontSize: S($),
2913
- // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
2914
- lineHeight: J,
2915
- // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
2916
- // across font-families can cause issues with the kerning.
2917
- ...r === dr ? {
2918
- letterSpacing: `${mi(O / $)}em`
2919
- } : {},
2920
- ...w,
2921
- ...d
2922
- }), c = {
2923
- h1: b(o, 96, 1.167, -1.5),
2924
- h2: b(o, 60, 1.2, -0.5),
2925
- h3: b(i, 48, 1.167, 0),
2926
- h4: b(i, 34, 1.235, 0.25),
2927
- h5: b(i, 24, 1.334, 0),
2928
- h6: b(s, 20, 1.6, 0.15),
2929
- subtitle1: b(i, 16, 1.75, 0.15),
2930
- subtitle2: b(s, 14, 1.57, 0.1),
2931
- body1: b(i, 16, 1.5, 0.15),
2932
- body2: b(i, 14, 1.43, 0.15),
2933
- button: b(s, 14, 1.75, 0.4, fr),
2934
- caption: b(i, 12, 1.66, 0.4),
2935
- overline: b(i, 12, 2.66, 1, fr),
2936
- // TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.
2937
- inherit: {
2938
- fontFamily: "inherit",
2939
- fontWeight: "inherit",
2940
- fontSize: "inherit",
2941
- lineHeight: "inherit",
2942
- letterSpacing: "inherit"
2943
- }
2944
- };
2945
- return ae({
2946
- htmlFontSize: u,
2947
- pxToRem: S,
2948
- fontFamily: r,
2949
- fontSize: n,
2950
- fontWeightLight: o,
2951
- fontWeightRegular: i,
2952
- fontWeightMedium: s,
2953
- fontWeightBold: l,
2954
- ...c
2955
- }, m, {
2956
- clone: !1
2957
- // No need to clone deep
2958
- });
2959
- }
2960
- const hi = 0.2, gi = 0.14, yi = 0.12;
2961
- function G(...e) {
2962
- return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${hi})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${gi})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${yi})`].join(",");
2963
- }
2964
- const bi = ["none", G(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), G(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), G(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), G(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), G(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), G(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), G(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), G(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), G(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), G(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), G(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), G(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), G(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), G(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), G(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), G(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), G(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), G(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), G(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), G(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), G(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), G(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), G(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), G(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], vi = {
2965
- // This is the most common easing curve.
2966
- easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
2967
- // Objects enter the screen at full velocity from off-screen and
2968
- // slowly decelerate to a resting point.
2969
- easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
2970
- // Objects leave the screen at full velocity. They do not decelerate when off-screen.
2971
- easeIn: "cubic-bezier(0.4, 0, 1, 1)",
2972
- // The sharp curve is used by objects that may return to the screen at any time.
2973
- sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
2974
- }, Si = {
2975
- shortest: 150,
2976
- shorter: 200,
2977
- short: 250,
2978
- // most basic recommended timing
2979
- standard: 300,
2980
- // this is to be used in complex animations
2981
- complex: 375,
2982
- // recommended when something is entering screen
2983
- enteringScreen: 225,
2984
- // recommended when something is leaving screen
2985
- leavingScreen: 195
2986
- };
2987
- function mr(e) {
2988
- return `${Math.round(e)}ms`;
2989
- }
2990
- function Ci(e) {
2991
- if (!e)
2992
- return 0;
2993
- const t = e / 36;
2994
- return Math.min(Math.round((4 + 15 * t ** 0.25 + t / 5) * 10), 3e3);
2995
- }
2996
- function Ei(e) {
2997
- const t = {
2998
- ...vi,
2999
- ...e.easing
3000
- }, r = {
3001
- ...Si,
3002
- ...e.duration
3003
- };
3004
- return {
3005
- getAutoHeightDuration: Ci,
3006
- create: (o = ["all"], i = {}) => {
3007
- const {
3008
- duration: s = r.standard,
3009
- easing: l = t.easeInOut,
3010
- delay: u = 0,
3011
- ...d
3012
- } = i;
3013
- if (process.env.NODE_ENV !== "production") {
3014
- const p = (h) => typeof h == "string", m = (h) => !Number.isNaN(parseFloat(h));
3015
- !p(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !m(s) && !p(s) && console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`), p(l) || console.error('MUI: Argument "easing" must be a string.'), !m(u) && !p(u) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof i != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
3016
- `)), Object.keys(d).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`);
3017
- }
3018
- return (Array.isArray(o) ? o : [o]).map((p) => `${p} ${typeof s == "string" ? s : mr(s)} ${l} ${typeof u == "string" ? u : mr(u)}`).join(",");
3019
- },
3020
- ...e,
3021
- easing: t,
3022
- duration: r
3023
- };
3024
- }
3025
- const Ti = {
3026
- mobileStepper: 1e3,
3027
- fab: 1050,
3028
- speedDial: 1050,
3029
- appBar: 1100,
3030
- drawer: 1200,
3031
- modal: 1300,
3032
- snackbar: 1400,
3033
- tooltip: 1500
3034
- };
3035
- function xi(e) {
3036
- return he(e) || typeof e > "u" || typeof e == "string" || typeof e == "boolean" || typeof e == "number" || Array.isArray(e);
3037
- }
3038
- function jr(e = {}) {
3039
- const t = {
3040
- ...e
3041
- };
3042
- function r(n) {
3043
- const o = Object.entries(n);
3044
- for (let i = 0; i < o.length; i++) {
3045
- const [s, l] = o[i];
3046
- !xi(l) || s.startsWith("unstable_") ? delete n[s] : he(l) && (n[s] = {
3047
- ...l
3048
- }, r(n[s]));
3049
- }
3050
- }
3051
- return r(t), `import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
3052
-
3053
- const theme = ${JSON.stringify(t, null, 2)};
3054
-
3055
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
3056
- theme.transitions = createTransitions(theme.transitions || {});
3057
-
3058
- export default theme;`;
3059
- }
3060
- function wt(e = {}, ...t) {
3061
- const {
3062
- breakpoints: r,
3063
- mixins: n = {},
3064
- spacing: o,
3065
- palette: i = {},
3066
- transitions: s = {},
3067
- typography: l = {},
3068
- shape: u,
3069
- ...d
3070
- } = e;
3071
- if (e.vars && // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.
3072
- // `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider.
3073
- e.generateThemeVars === void 0)
3074
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." : Ce(20));
3075
- const p = Mt(i), m = At(e);
3076
- let h = ae(m, {
3077
- mixins: di(m.breakpoints, n),
3078
- palette: p,
3079
- // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
3080
- shadows: bi.slice(),
3081
- typography: pi(p, l),
3082
- transitions: Ei(s),
3083
- zIndex: {
3084
- ...Ti
3085
- }
3086
- });
3087
- if (h = ae(h, d), h = t.reduce((S, b) => ae(S, b), h), process.env.NODE_ENV !== "production") {
3088
- const S = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], b = (c, x) => {
3089
- let $;
3090
- for ($ in c) {
3091
- const J = c[$];
3092
- if (S.includes($) && Object.keys(J).length > 0) {
3093
- if (process.env.NODE_ENV !== "production") {
3094
- const O = Rt("", $);
3095
- console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${$}\` internal state.`, "You can not override it like this: ", JSON.stringify(c, null, 2), "", `Instead, you need to use the '&.${O}' syntax:`, JSON.stringify({
3096
- root: {
3097
- [`&.${O}`]: J
3098
- }
3099
- }, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
3100
- `));
3101
- }
3102
- c[$] = {};
3103
- }
3104
- }
3105
- };
3106
- Object.keys(h.components).forEach((c) => {
3107
- const x = h.components[c].styleOverrides;
3108
- x && c.startsWith("Mui") && b(x, c);
3109
- });
3110
- }
3111
- return h.unstable_sxConfig = {
3112
- ...ut,
3113
- ...d == null ? void 0 : d.unstable_sxConfig
3114
- }, h.unstable_sx = function(b) {
3115
- return Ie({
3116
- sx: b,
3117
- theme: this
3118
- });
3119
- }, h.toRuntimeSource = jr, h;
3120
- }
3121
- function wi(e) {
3122
- let t;
3123
- return e < 1 ? t = 5.11916 * e ** 2 : t = 4.5 * Math.log(e + 1) + 2, Math.round(t * 10) / 1e3;
3124
- }
3125
- const Oi = [...Array(25)].map((e, t) => {
3126
- if (t === 0)
3127
- return "none";
3128
- const r = wi(t);
3129
- return `linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`;
3130
- });
3131
- function Fr(e) {
3132
- return {
3133
- inputPlaceholder: e === "dark" ? 0.5 : 0.42,
3134
- inputUnderline: e === "dark" ? 0.7 : 0.42,
3135
- switchTrackDisabled: e === "dark" ? 0.2 : 0.12,
3136
- switchTrack: e === "dark" ? 0.3 : 0.38
3137
- };
3138
- }
3139
- function Ur(e) {
3140
- return e === "dark" ? Oi : [];
3141
- }
3142
- function $i(e) {
3143
- const {
3144
- palette: t = {
3145
- mode: "light"
3146
- },
3147
- // need to cast to avoid module augmentation test
3148
- opacity: r,
3149
- overlays: n,
3150
- ...o
3151
- } = e, i = Mt(t);
3152
- return {
3153
- palette: i,
3154
- opacity: {
3155
- ...Fr(i.mode),
3156
- ...r
3157
- },
3158
- overlays: n || Ur(i.mode),
3159
- ...o
3160
- };
3161
- }
3162
- function _i(e) {
3163
- var t;
3164
- return !!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!e[0].match(/sxConfig$/) || // ends with sxConfig
3165
- e[0] === "palette" && !!((t = e[1]) != null && t.match(/(mode|contrastThreshold|tonalOffset)/));
3166
- }
3167
- const Ai = (e) => [...[...Array(25)].map((t, r) => `--${e ? `${e}-` : ""}overlays-${r}`), `--${e ? `${e}-` : ""}palette-AppBar-darkBg`, `--${e ? `${e}-` : ""}palette-AppBar-darkColor`], Ri = (e) => (t, r) => {
3168
- const n = e.rootSelector || ":root", o = e.colorSchemeSelector;
3169
- let i = o;
3170
- if (o === "class" && (i = ".%s"), o === "data" && (i = "[data-%s]"), o != null && o.startsWith("data-") && !o.includes("%s") && (i = `[${o}="%s"]`), e.defaultColorScheme === t) {
3171
- if (t === "dark") {
3172
- const s = {};
3173
- return Ai(e.cssVarPrefix).forEach((l) => {
3174
- s[l] = r[l], delete r[l];
3175
- }), i === "media" ? {
3176
- [n]: r,
3177
- "@media (prefers-color-scheme: dark)": {
3178
- [n]: s
3179
- }
3180
- } : i ? {
3181
- [i.replace("%s", t)]: s,
3182
- [`${n}, ${i.replace("%s", t)}`]: r
3183
- } : {
3184
- [n]: {
3185
- ...r,
3186
- ...s
3187
- }
3188
- };
3189
- }
3190
- if (i && i !== "media")
3191
- return `${n}, ${i.replace("%s", String(t))}`;
3192
- } else if (t) {
3193
- if (i === "media")
3194
- return {
3195
- [`@media (prefers-color-scheme: ${String(t)})`]: {
3196
- [n]: r
3197
- }
3198
- };
3199
- if (i)
3200
- return i.replace("%s", String(t));
3201
- }
3202
- return n;
3203
- };
3204
- function Pi(e, t) {
3205
- t.forEach((r) => {
3206
- e[r] || (e[r] = {});
3207
- });
3208
- }
3209
- function f(e, t, r) {
3210
- !e[t] && r && (e[t] = r);
3211
- }
3212
- function Be(e) {
3213
- return typeof e != "string" || !e.startsWith("hsl") ? e : Lr(e);
3214
- }
3215
- function pe(e, t) {
3216
- `${t}Channel` in e || (e[`${t}Channel`] = De(Be(e[t]), `MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
3217
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`));
3218
- }
3219
- function ki(e) {
3220
- return typeof e == "number" ? `${e}px` : typeof e == "string" || typeof e == "function" || Array.isArray(e) ? e : "8px";
3221
- }
3222
- const de = (e) => {
3223
- try {
3224
- return e();
3225
- } catch {
3226
- }
3227
- }, Ii = (e = "mui") => Xo(e);
3228
- function Et(e, t, r, n) {
3229
- if (!t)
3230
- return;
3231
- t = t === !0 ? {} : t;
3232
- const o = n === "dark" ? "dark" : "light";
3233
- if (!r) {
3234
- e[n] = $i({
3235
- ...t,
3236
- palette: {
3237
- mode: o,
3238
- ...t == null ? void 0 : t.palette
3239
- }
3240
- });
3241
- return;
3242
- }
3243
- const {
3244
- palette: i,
3245
- ...s
3246
- } = wt({
3247
- ...r,
3248
- palette: {
3249
- mode: o,
3250
- ...t == null ? void 0 : t.palette
3251
- }
3252
- });
3253
- return e[n] = {
3254
- ...t,
3255
- palette: i,
3256
- opacity: {
3257
- ...Fr(o),
3258
- ...t == null ? void 0 : t.opacity
3259
- },
3260
- overlays: (t == null ? void 0 : t.overlays) || Ur(o)
3261
- }, s;
3262
- }
3263
- function Mi(e = {}, ...t) {
3264
- const {
3265
- colorSchemes: r = {
3266
- light: !0
3267
- },
3268
- defaultColorScheme: n,
3269
- disableCssColorScheme: o = !1,
3270
- cssVarPrefix: i = "mui",
3271
- shouldSkipGeneratingVar: s = _i,
3272
- colorSchemeSelector: l = r.light && r.dark ? "media" : void 0,
3273
- rootSelector: u = ":root",
3274
- ...d
3275
- } = e, p = Object.keys(r)[0], m = n || (r.light && p !== "light" ? "light" : p), h = Ii(i), {
3276
- [m]: S,
3277
- light: b,
3278
- dark: c,
3279
- ...x
3280
- } = r, $ = {
3281
- ...x
3282
- };
3283
- let J = S;
3284
- if ((m === "dark" && !("dark" in r) || m === "light" && !("light" in r)) && (J = !0), !J)
3285
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${m}\` option is either missing or invalid.` : Ce(21, m));
3286
- const O = Et($, J, d, m);
3287
- b && !$.light && Et($, b, void 0, "light"), c && !$.dark && Et($, c, void 0, "dark");
3288
- let w = {
3289
- defaultColorScheme: m,
3290
- ...O,
3291
- cssVarPrefix: i,
3292
- colorSchemeSelector: l,
3293
- rootSelector: u,
3294
- getCssVar: h,
3295
- colorSchemes: $,
3296
- font: {
3297
- ...fi(O.typography),
3298
- ...O.font
3299
- },
3300
- spacing: ki(d.spacing)
3301
- };
3302
- Object.keys(w.colorSchemes).forEach((te) => {
3303
- const a = w.colorSchemes[te].palette, T = (_) => {
3304
- const L = _.split("-"), K = L[1], ne = L[2];
3305
- return h(_, a[K][ne]);
3306
- };
3307
- if (a.mode === "light" && (f(a.common, "background", "#fff"), f(a.common, "onBackground", "#000")), a.mode === "dark" && (f(a.common, "background", "#000"), f(a.common, "onBackground", "#fff")), Pi(a, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), a.mode === "light") {
3308
- f(a.Alert, "errorColor", W(a.error.light, 0.6)), f(a.Alert, "infoColor", W(a.info.light, 0.6)), f(a.Alert, "successColor", W(a.success.light, 0.6)), f(a.Alert, "warningColor", W(a.warning.light, 0.6)), f(a.Alert, "errorFilledBg", T("palette-error-main")), f(a.Alert, "infoFilledBg", T("palette-info-main")), f(a.Alert, "successFilledBg", T("palette-success-main")), f(a.Alert, "warningFilledBg", T("palette-warning-main")), f(a.Alert, "errorFilledColor", de(() => a.getContrastText(a.error.main))), f(a.Alert, "infoFilledColor", de(() => a.getContrastText(a.info.main))), f(a.Alert, "successFilledColor", de(() => a.getContrastText(a.success.main))), f(a.Alert, "warningFilledColor", de(() => a.getContrastText(a.warning.main))), f(a.Alert, "errorStandardBg", H(a.error.light, 0.9)), f(a.Alert, "infoStandardBg", H(a.info.light, 0.9)), f(a.Alert, "successStandardBg", H(a.success.light, 0.9)), f(a.Alert, "warningStandardBg", H(a.warning.light, 0.9)), f(a.Alert, "errorIconColor", T("palette-error-main")), f(a.Alert, "infoIconColor", T("palette-info-main")), f(a.Alert, "successIconColor", T("palette-success-main")), f(a.Alert, "warningIconColor", T("palette-warning-main")), f(a.AppBar, "defaultBg", T("palette-grey-100")), f(a.Avatar, "defaultBg", T("palette-grey-400")), f(a.Button, "inheritContainedBg", T("palette-grey-300")), f(a.Button, "inheritContainedHoverBg", T("palette-grey-A100")), f(a.Chip, "defaultBorder", T("palette-grey-400")), f(a.Chip, "defaultAvatarColor", T("palette-grey-700")), f(a.Chip, "defaultIconColor", T("palette-grey-700")), f(a.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), f(a.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), f(a.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), f(a.LinearProgress, "primaryBg", H(a.primary.main, 0.62)), f(a.LinearProgress, "secondaryBg", H(a.secondary.main, 0.62)), f(a.LinearProgress, "errorBg", H(a.error.main, 0.62)), f(a.LinearProgress, "infoBg", H(a.info.main, 0.62)), f(a.LinearProgress, "successBg", H(a.success.main, 0.62)), f(a.LinearProgress, "warningBg", H(a.warning.main, 0.62)), f(a.Skeleton, "bg", `rgba(${T("palette-text-primaryChannel")} / 0.11)`), f(a.Slider, "primaryTrack", H(a.primary.main, 0.62)), f(a.Slider, "secondaryTrack", H(a.secondary.main, 0.62)), f(a.Slider, "errorTrack", H(a.error.main, 0.62)), f(a.Slider, "infoTrack", H(a.info.main, 0.62)), f(a.Slider, "successTrack", H(a.success.main, 0.62)), f(a.Slider, "warningTrack", H(a.warning.main, 0.62));
3309
- const _ = Ke(a.background.default, 0.8);
3310
- f(a.SnackbarContent, "bg", _), f(a.SnackbarContent, "color", de(() => a.getContrastText(_))), f(a.SpeedDialAction, "fabHoverBg", Ke(a.background.paper, 0.15)), f(a.StepConnector, "border", T("palette-grey-400")), f(a.StepContent, "border", T("palette-grey-400")), f(a.Switch, "defaultColor", T("palette-common-white")), f(a.Switch, "defaultDisabledColor", T("palette-grey-100")), f(a.Switch, "primaryDisabledColor", H(a.primary.main, 0.62)), f(a.Switch, "secondaryDisabledColor", H(a.secondary.main, 0.62)), f(a.Switch, "errorDisabledColor", H(a.error.main, 0.62)), f(a.Switch, "infoDisabledColor", H(a.info.main, 0.62)), f(a.Switch, "successDisabledColor", H(a.success.main, 0.62)), f(a.Switch, "warningDisabledColor", H(a.warning.main, 0.62)), f(a.TableCell, "border", H(Ge(a.divider, 1), 0.88)), f(a.Tooltip, "bg", Ge(a.grey[700], 0.92));
3311
- }
3312
- if (a.mode === "dark") {
3313
- f(a.Alert, "errorColor", H(a.error.light, 0.6)), f(a.Alert, "infoColor", H(a.info.light, 0.6)), f(a.Alert, "successColor", H(a.success.light, 0.6)), f(a.Alert, "warningColor", H(a.warning.light, 0.6)), f(a.Alert, "errorFilledBg", T("palette-error-dark")), f(a.Alert, "infoFilledBg", T("palette-info-dark")), f(a.Alert, "successFilledBg", T("palette-success-dark")), f(a.Alert, "warningFilledBg", T("palette-warning-dark")), f(a.Alert, "errorFilledColor", de(() => a.getContrastText(a.error.dark))), f(a.Alert, "infoFilledColor", de(() => a.getContrastText(a.info.dark))), f(a.Alert, "successFilledColor", de(() => a.getContrastText(a.success.dark))), f(a.Alert, "warningFilledColor", de(() => a.getContrastText(a.warning.dark))), f(a.Alert, "errorStandardBg", W(a.error.light, 0.9)), f(a.Alert, "infoStandardBg", W(a.info.light, 0.9)), f(a.Alert, "successStandardBg", W(a.success.light, 0.9)), f(a.Alert, "warningStandardBg", W(a.warning.light, 0.9)), f(a.Alert, "errorIconColor", T("palette-error-main")), f(a.Alert, "infoIconColor", T("palette-info-main")), f(a.Alert, "successIconColor", T("palette-success-main")), f(a.Alert, "warningIconColor", T("palette-warning-main")), f(a.AppBar, "defaultBg", T("palette-grey-900")), f(a.AppBar, "darkBg", T("palette-background-paper")), f(a.AppBar, "darkColor", T("palette-text-primary")), f(a.Avatar, "defaultBg", T("palette-grey-600")), f(a.Button, "inheritContainedBg", T("palette-grey-800")), f(a.Button, "inheritContainedHoverBg", T("palette-grey-700")), f(a.Chip, "defaultBorder", T("palette-grey-700")), f(a.Chip, "defaultAvatarColor", T("palette-grey-300")), f(a.Chip, "defaultIconColor", T("palette-grey-300")), f(a.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), f(a.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), f(a.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), f(a.LinearProgress, "primaryBg", W(a.primary.main, 0.5)), f(a.LinearProgress, "secondaryBg", W(a.secondary.main, 0.5)), f(a.LinearProgress, "errorBg", W(a.error.main, 0.5)), f(a.LinearProgress, "infoBg", W(a.info.main, 0.5)), f(a.LinearProgress, "successBg", W(a.success.main, 0.5)), f(a.LinearProgress, "warningBg", W(a.warning.main, 0.5)), f(a.Skeleton, "bg", `rgba(${T("palette-text-primaryChannel")} / 0.13)`), f(a.Slider, "primaryTrack", W(a.primary.main, 0.5)), f(a.Slider, "secondaryTrack", W(a.secondary.main, 0.5)), f(a.Slider, "errorTrack", W(a.error.main, 0.5)), f(a.Slider, "infoTrack", W(a.info.main, 0.5)), f(a.Slider, "successTrack", W(a.success.main, 0.5)), f(a.Slider, "warningTrack", W(a.warning.main, 0.5));
3314
- const _ = Ke(a.background.default, 0.98);
3315
- f(a.SnackbarContent, "bg", _), f(a.SnackbarContent, "color", de(() => a.getContrastText(_))), f(a.SpeedDialAction, "fabHoverBg", Ke(a.background.paper, 0.15)), f(a.StepConnector, "border", T("palette-grey-600")), f(a.StepContent, "border", T("palette-grey-600")), f(a.Switch, "defaultColor", T("palette-grey-300")), f(a.Switch, "defaultDisabledColor", T("palette-grey-600")), f(a.Switch, "primaryDisabledColor", W(a.primary.main, 0.55)), f(a.Switch, "secondaryDisabledColor", W(a.secondary.main, 0.55)), f(a.Switch, "errorDisabledColor", W(a.error.main, 0.55)), f(a.Switch, "infoDisabledColor", W(a.info.main, 0.55)), f(a.Switch, "successDisabledColor", W(a.success.main, 0.55)), f(a.Switch, "warningDisabledColor", W(a.warning.main, 0.55)), f(a.TableCell, "border", W(Ge(a.divider, 1), 0.68)), f(a.Tooltip, "bg", Ge(a.grey[700], 0.92));
3316
- }
3317
- pe(a.background, "default"), pe(a.background, "paper"), pe(a.common, "background"), pe(a.common, "onBackground"), pe(a, "divider"), Object.keys(a).forEach((_) => {
3318
- const L = a[_];
3319
- _ !== "tonalOffset" && L && typeof L == "object" && (L.main && f(a[_], "mainChannel", De(Be(L.main))), L.light && f(a[_], "lightChannel", De(Be(L.light))), L.dark && f(a[_], "darkChannel", De(Be(L.dark))), L.contrastText && f(a[_], "contrastTextChannel", De(Be(L.contrastText))), _ === "text" && (pe(a[_], "primary"), pe(a[_], "secondary")), _ === "action" && (L.active && pe(a[_], "active"), L.selected && pe(a[_], "selected")));
3320
- });
3321
- }), w = t.reduce((te, a) => ae(te, a), w);
3322
- const g = {
3323
- prefix: i,
3324
- disableCssColorScheme: o,
3325
- shouldSkipGeneratingVar: s,
3326
- getSelector: Ri(w)
3327
- }, {
3328
- vars: j,
3329
- generateThemeVars: Z,
3330
- generateStyleSheets: ee
3331
- } = ti(w, g);
3332
- return w.vars = j, Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([te, a]) => {
3333
- w[te] = a;
3334
- }), w.generateThemeVars = Z, w.generateStyleSheets = ee, w.generateSpacing = function() {
3335
- return Ir(d.spacing, $t(this));
3336
- }, w.getColorSchemeSelector = ri(l), w.spacing = w.generateSpacing(), w.shouldSkipGeneratingVar = s, w.unstable_sxConfig = {
3337
- ...ut,
3338
- ...d == null ? void 0 : d.unstable_sxConfig
3339
- }, w.unstable_sx = function(a) {
3340
- return Ie({
3341
- sx: a,
3342
- theme: this
3343
- });
3344
- }, w.toRuntimeSource = jr, w;
3345
- }
3346
- function pr(e, t, r) {
3347
- e.colorSchemes && r && (e.colorSchemes[t] = {
3348
- ...r !== !0 && r,
3349
- palette: Mt({
3350
- ...r === !0 ? {} : r.palette,
3351
- mode: t
3352
- })
3353
- // cast type to skip module augmentation test
3354
- });
3355
- }
3356
- function Ni(e = {}, ...t) {
3357
- const {
3358
- palette: r,
3359
- cssVariables: n = !1,
3360
- colorSchemes: o = r ? void 0 : {
3361
- light: !0
3362
- },
3363
- defaultColorScheme: i = r == null ? void 0 : r.mode,
3364
- ...s
3365
- } = e, l = i || "light", u = o == null ? void 0 : o[l], d = {
3366
- ...o,
3367
- ...r ? {
3368
- [l]: {
3369
- ...typeof u != "boolean" && u,
3370
- palette: r
3371
- }
3372
- } : void 0
3373
- };
3374
- if (n === !1) {
3375
- if (!("colorSchemes" in e))
3376
- return wt(e, ...t);
3377
- let p = r;
3378
- "palette" in e || d[l] && (d[l] !== !0 ? p = d[l].palette : l === "dark" && (p = {
3379
- mode: "dark"
3380
- }));
3381
- const m = wt({
3382
- ...e,
3383
- palette: p
3384
- }, ...t);
3385
- return m.defaultColorScheme = l, m.colorSchemes = d, m.palette.mode === "light" && (m.colorSchemes.light = {
3386
- ...d.light !== !0 && d.light,
3387
- palette: m.palette
3388
- }, pr(m, "dark", d.dark)), m.palette.mode === "dark" && (m.colorSchemes.dark = {
3389
- ...d.dark !== !0 && d.dark,
3390
- palette: m.palette
3391
- }, pr(m, "light", d.light)), m;
3392
- }
3393
- return !r && !("light" in d) && l === "light" && (d.light = !0), Mi({
3394
- ...s,
3395
- colorSchemes: d,
3396
- defaultColorScheme: l,
3397
- ...typeof n != "boolean" && n
3398
- }, ...t);
3399
- }
3400
- const Yr = Ni(), Wr = "$$material";
3401
- function Di() {
3402
- const e = Po(Yr);
3403
- return process.env.NODE_ENV !== "production" && me.useDebugValue(e), e[Wr] || e;
3404
- }
3405
- function Bi(e) {
3406
- return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
3407
- }
3408
- const Li = (e) => Bi(e) && e !== "classes", zi = Lo({
3409
- themeId: Wr,
3410
- defaultTheme: Yr,
3411
- rootShouldForwardProp: Li
3412
- }), Vi = Jo;
3413
- process.env.NODE_ENV !== "production" && (B.node, B.object.isRequired);
3414
- function ji(e) {
3415
- return Qo(e);
3416
- }
3417
- function Fi(e) {
3418
- return Rt("MuiSvgIcon", e);
3419
- }
3420
- Io("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
3421
- const Ui = (e) => {
3422
- const {
3423
- color: t,
3424
- fontSize: r,
3425
- classes: n
3426
- } = e, o = {
3427
- root: ["root", t !== "inherit" && `color${we(t)}`, `fontSize${we(r)}`]
3428
- };
3429
- return yn(o, Fi, n);
3430
- }, Yi = zi("svg", {
3431
- name: "MuiSvgIcon",
3432
- slot: "Root",
3433
- overridesResolver: (e, t) => {
3434
- const {
3435
- ownerState: r
3436
- } = e;
3437
- return [t.root, r.color !== "inherit" && t[`color${we(r.color)}`], t[`fontSize${we(r.fontSize)}`]];
3438
- }
3439
- })(Vi(({
3440
- theme: e
3441
- }) => {
3442
- var t, r, n, o, i, s, l, u, d, p, m, h, S, b;
3443
- return {
3444
- userSelect: "none",
3445
- width: "1em",
3446
- height: "1em",
3447
- display: "inline-block",
3448
- flexShrink: 0,
3449
- transition: (o = (t = e.transitions) == null ? void 0 : t.create) == null ? void 0 : o.call(t, "fill", {
3450
- duration: (n = (r = (e.vars ?? e).transitions) == null ? void 0 : r.duration) == null ? void 0 : n.shorter
3451
- }),
3452
- variants: [
3453
- {
3454
- props: (c) => !c.hasSvgAsChild,
3455
- style: {
3456
- // the <svg> will define the property that has `currentColor`
3457
- // for example heroicons uses fill="none" and stroke="currentColor"
3458
- fill: "currentColor"
3459
- }
3460
- },
3461
- {
3462
- props: {
3463
- fontSize: "inherit"
3464
- },
3465
- style: {
3466
- fontSize: "inherit"
3467
- }
3468
- },
3469
- {
3470
- props: {
3471
- fontSize: "small"
3472
- },
3473
- style: {
3474
- fontSize: ((s = (i = e.typography) == null ? void 0 : i.pxToRem) == null ? void 0 : s.call(i, 20)) || "1.25rem"
3475
- }
3476
- },
3477
- {
3478
- props: {
3479
- fontSize: "medium"
3480
- },
3481
- style: {
3482
- fontSize: ((u = (l = e.typography) == null ? void 0 : l.pxToRem) == null ? void 0 : u.call(l, 24)) || "1.5rem"
3483
- }
3484
- },
3485
- {
3486
- props: {
3487
- fontSize: "large"
3488
- },
3489
- style: {
3490
- fontSize: ((p = (d = e.typography) == null ? void 0 : d.pxToRem) == null ? void 0 : p.call(d, 35)) || "2.1875rem"
3491
- }
3492
- },
3493
- // TODO v5 deprecate color prop, v6 remove for sx
3494
- ...Object.entries((e.vars ?? e).palette).filter(([, c]) => c && c.main).map(([c]) => {
3495
- var x, $;
3496
- return {
3497
- props: {
3498
- color: c
3499
- },
3500
- style: {
3501
- color: ($ = (x = (e.vars ?? e).palette) == null ? void 0 : x[c]) == null ? void 0 : $.main
3502
- }
3503
- };
3504
- }),
3505
- {
3506
- props: {
3507
- color: "action"
3508
- },
3509
- style: {
3510
- color: (h = (m = (e.vars ?? e).palette) == null ? void 0 : m.action) == null ? void 0 : h.active
3511
- }
3512
- },
3513
- {
3514
- props: {
3515
- color: "disabled"
3516
- },
3517
- style: {
3518
- color: (b = (S = (e.vars ?? e).palette) == null ? void 0 : S.action) == null ? void 0 : b.disabled
3519
- }
3520
- },
3521
- {
3522
- props: {
3523
- color: "inherit"
3524
- },
3525
- style: {
3526
- color: void 0
3527
- }
3528
- }
3529
- ]
3530
- };
3531
- })), et = /* @__PURE__ */ me.forwardRef(function(t, r) {
3532
- const n = ji({
3533
- props: t,
3534
- name: "MuiSvgIcon"
3535
- }), {
3536
- children: o,
3537
- className: i,
3538
- color: s = "inherit",
3539
- component: l = "svg",
3540
- fontSize: u = "medium",
3541
- htmlColor: d,
3542
- inheritViewBox: p = !1,
3543
- titleAccess: m,
3544
- viewBox: h = "0 0 24 24",
3545
- ...S
3546
- } = n, b = /* @__PURE__ */ me.isValidElement(o) && o.type === "svg", c = {
3547
- ...n,
3548
- color: s,
3549
- component: l,
3550
- fontSize: u,
3551
- instanceFontSize: t.fontSize,
3552
- inheritViewBox: p,
3553
- viewBox: h,
3554
- hasSvgAsChild: b
3555
- }, x = {};
3556
- p || (x.viewBox = h);
3557
- const $ = Ui(c);
3558
- return /* @__PURE__ */ Se(Yi, {
3559
- as: l,
3560
- className: gn($.root, i),
3561
- focusable: "false",
3562
- color: d,
3563
- "aria-hidden": m ? void 0 : !0,
3564
- role: m ? "img" : void 0,
3565
- ref: r,
3566
- ...x,
3567
- ...S,
3568
- ...b && o.props,
3569
- ownerState: c,
3570
- children: [b ? o.props.children : o, m ? /* @__PURE__ */ v("title", {
3571
- children: m
3572
- }) : null]
3573
- });
3574
- });
3575
- process.env.NODE_ENV !== "production" && (et.propTypes = {
3576
- // ┌────────────────────────────── Warning ──────────────────────────────┐
3577
- // │ These PropTypes are generated from the TypeScript type definitions. │
3578
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
3579
- // └─────────────────────────────────────────────────────────────────────┘
3580
- /**
3581
- * Node passed into the SVG element.
3582
- */
3583
- children: B.node,
3584
- /**
3585
- * Override or extend the styles applied to the component.
3586
- */
3587
- classes: B.object,
3588
- /**
3589
- * @ignore
3590
- */
3591
- className: B.string,
3592
- /**
3593
- * The color of the component.
3594
- * It supports both default and custom theme colors, which can be added as shown in the
3595
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
3596
- * You can use the `htmlColor` prop to apply a color attribute to the SVG element.
3597
- * @default 'inherit'
3598
- */
3599
- color: B.oneOfType([B.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), B.string]),
3600
- /**
3601
- * The component used for the root node.
3602
- * Either a string to use a HTML element or a component.
3603
- */
3604
- component: B.elementType,
3605
- /**
3606
- * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
3607
- * @default 'medium'
3608
- */
3609
- fontSize: B.oneOfType([B.oneOf(["inherit", "large", "medium", "small"]), B.string]),
3610
- /**
3611
- * Applies a color attribute to the SVG element.
3612
- */
3613
- htmlColor: B.string,
3614
- /**
3615
- * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
3616
- * prop will be ignored.
3617
- * Useful when you want to reference a custom `component` and have `SvgIcon` pass that
3618
- * `component`'s viewBox to the root node.
3619
- * @default false
3620
- */
3621
- inheritViewBox: B.bool,
3622
- /**
3623
- * The shape-rendering attribute. The behavior of the different options is described on the
3624
- * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/shape-rendering).
3625
- * If you are having issues with blurry icons you should investigate this prop.
3626
- */
3627
- shapeRendering: B.string,
3628
- /**
3629
- * The system prop that allows defining system overrides as well as additional CSS styles.
3630
- */
3631
- sx: B.oneOfType([B.arrayOf(B.oneOfType([B.func, B.object, B.bool])), B.func, B.object]),
3632
- /**
3633
- * Provides a human-readable title for the element that contains it.
3634
- * https://www.w3.org/TR/SVG-access/#Equivalent
3635
- */
3636
- titleAccess: B.string,
3637
- /**
3638
- * Allows you to redefine what the coordinates without units mean inside an SVG element.
3639
- * For example, if the SVG element is 500 (width) by 200 (height),
3640
- * and you pass viewBox="0 0 50 20",
3641
- * this means that the coordinates inside the SVG will go from the top left corner (0,0)
3642
- * to bottom right (50,20) and each unit will be worth 10px.
3643
- * @default '0 0 24 24'
3644
- */
3645
- viewBox: B.string
3646
- });
3647
- et.muiName = "SvgIcon";
3648
- function se(e, t) {
3649
- function r(n, o) {
3650
- return /* @__PURE__ */ v(et, {
3651
- "data-testid": process.env.NODE_ENV !== "production" ? `${t}Icon` : void 0,
3652
- ref: o,
3653
- ...n,
3654
- children: e
3655
- });
3656
- }
3657
- return process.env.NODE_ENV !== "production" && (r.displayName = `${t}Icon`), r.muiName = et.muiName, /* @__PURE__ */ me.memo(/* @__PURE__ */ me.forwardRef(r));
3658
- }
3659
- const Wi = se(/* @__PURE__ */ v("path", {
3660
- d: "M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"
3661
- }), "Undo");
3662
- function la(e) {
3663
- return /* @__PURE__ */ v(
3664
- ye,
3665
- {
3666
- name: e.name,
3667
- "data-cy": e.dataCy ?? "cancel-button",
3668
- className: e.className,
3669
- sx: e.sx,
3670
- startIcon: e.startIcon ?? /* @__PURE__ */ v(Wi, {}),
3671
- variant: e.variant ?? "contained",
3672
- color: e.color ?? "secondary",
3673
- type: e.type ?? "button",
3674
- onClick: () => e.onClick(),
3675
- children: e.children ?? e.name
3676
- }
3677
- );
3678
- }
3679
- const Hi = se(/* @__PURE__ */ v("path", {
3680
- d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"
3681
- }), "DeleteForever");
3682
- function ua(e) {
3683
- return /* @__PURE__ */ v(
3684
- ye,
3685
- {
3686
- "data-cy": e.dataCy ?? "delete-button",
3687
- loading: e.loading ?? !1,
3688
- loadingPosition: e.loadingPosition ?? "start",
3689
- startIcon: e.startIcon ?? /* @__PURE__ */ v(Hi, {}),
3690
- name: e.name,
3691
- variant: e.variant ?? "contained",
3692
- color: e.color ?? "error",
3693
- sx: { m: 1 },
3694
- type: e.type ?? "button",
3695
- onClick: e.onClick,
3696
- children: e.label ? e.label : "Delete"
3697
- }
3698
- );
3699
- }
3700
- const Gi = se(/* @__PURE__ */ v("path", {
3701
- d: "M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"
3702
- }), "ArrowBackIos");
3703
- function fa(e) {
3704
- return /* @__PURE__ */ v(Sr, { title: "Go Back to Previous Page", children: /* @__PURE__ */ Se(ge, { name: e.name, color: e.color ?? "primary", onClick: () => e.navigate(-1), children: [
3705
- /* @__PURE__ */ v(Gi, {}),
3706
- e.children
3707
- ] }) });
3708
- }
3709
- const Ki = se(/* @__PURE__ */ v("path", {
3710
- d: "M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"
3711
- }), "History");
3712
- function da(e) {
3713
- return /* @__PURE__ */ v(
3714
- ye,
3715
- {
3716
- name: e.name,
3717
- "data-cy": e.dataCy ?? "history-button",
3718
- className: e.className,
3719
- sx: e.sx ?? { p: 1, m: 1 },
3720
- startIcon: e.startIcon ?? /* @__PURE__ */ v(Ki, {}),
3721
- variant: e.variant ?? "contained",
3722
- color: e.color ?? "primary",
3723
- type: e.type ?? "button",
3724
- onClick: () => e.onClick(),
3725
- children: e.children ?? e.name
3726
- }
3727
- );
3728
- }
3729
- const qi = se(/* @__PURE__ */ v("path", {
3730
- d: "M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"
3731
- }), "Save"), Qi = {
3732
- backgroundColor: "$primary-color",
3733
- color: "var(--white-color)",
3734
- margin: "20px"
3735
- };
3736
- function ma(e) {
3737
- return /* @__PURE__ */ v(
3738
- ye,
3739
- {
3740
- name: e.name,
3741
- "data-cy": e.dataCy ?? "loading-success-button",
3742
- variant: e.variant ?? "contained",
3743
- color: e.color ?? "success",
3744
- loadingPosition: "start",
3745
- startIcon: e.startIcon ?? /* @__PURE__ */ v(qi, {}),
3746
- loading: e.loading,
3747
- type: e.type ?? "button",
3748
- style: Qi,
3749
- sx: e.sx,
3750
- onClick: e.onClick,
3751
- children: e.children ?? e.name
3752
- }
3753
- );
3754
- }
3755
- const Ji = se(/* @__PURE__ */ v("path", {
3756
- d: "M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"
3757
- }), "Settings");
3758
- function pa(e) {
3759
- return /* @__PURE__ */ v(
3760
- ye,
3761
- {
3762
- name: e.name,
3763
- "data-cy": e.dataCy ?? "manage-button",
3764
- className: e.className,
3765
- onClick: () => e.onClick(),
3766
- variant: e.variant ?? "contained",
3767
- color: e.color ?? "primary",
3768
- size: e.size ?? "large",
3769
- startIcon: e.startIcon ?? /* @__PURE__ */ v(Ji, {}),
3770
- children: e.children ? e.children : "Manage"
3771
- }
3772
- );
3773
- }
3774
- function ha(e) {
3775
- return /* @__PURE__ */ v(
3776
- ye,
3777
- {
3778
- name: e.name,
3779
- "data-cy": e.dataCy ?? "success-button",
3780
- className: e.className,
3781
- sx: e.sx,
3782
- startIcon: e.startIcon,
3783
- variant: e.variant ?? "contained",
3784
- color: e.color ?? "success",
3785
- type: e.type ?? "button",
3786
- onClick: () => e.onClick(),
3787
- children: e.children ?? e.name
3788
- }
3789
- );
3790
- }
3791
- function ga(e) {
3792
- return /* @__PURE__ */ v(
3793
- ye,
3794
- {
3795
- "data-cy": e.dataCy ?? "excel-button",
3796
- style: { borderRadius: "20px" },
3797
- className: e.className,
3798
- name: e.name,
3799
- sx: e.sx,
3800
- startIcon: e.startIcon,
3801
- variant: "contained",
3802
- color: "success",
3803
- type: e.type ?? "button",
3804
- onClick: () => e.onClick(),
3805
- children: e.children ?? e.name
3806
- }
3807
- );
3808
- }
3809
- const Xi = se(/* @__PURE__ */ v("path", {
3810
- d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"
3811
- }), "Edit");
3812
- function ya(e) {
3813
- return /* @__PURE__ */ v(Sr, { title: e.tooltipTitle, children: /* @__PURE__ */ v(
3814
- ge,
3815
- {
3816
- sx: { pt: 0, pb: 0 },
3817
- color: e.color ?? "primary",
3818
- onClick: () => e.onClick(!0),
3819
- "aria-label": e.tooltipTitle,
3820
- children: /* @__PURE__ */ v(Xi, {})
3821
- }
3822
- ) });
3823
- }
3824
- const Nt = se(/* @__PURE__ */ v("path", {
3825
- d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
3826
- }), "Close"), ba = (e) => {
3827
- const [t, r] = Pe(!1);
3828
- xr(() => {
3829
- r(e.open);
3830
- }, [e.open, e.progressState]);
3831
- const n = /* @__PURE__ */ v(ge, { size: "small", "aria-label": "close", color: "inherit", onClick: () => r(!1), children: /* @__PURE__ */ v(Nt, { fontSize: "small" }) });
3832
- return /* @__PURE__ */ Se(vr, { children: [
3833
- /* @__PURE__ */ v(
3834
- Qe,
3835
- {
3836
- anchorOrigin: { vertical: "bottom", horizontal: "center" },
3837
- open: t && e.progressState.isSuccess,
3838
- autoHideDuration: e.autoHideDuration ?? 3e3,
3839
- onClose: () => r(!1),
3840
- children: /* @__PURE__ */ v(ze, { variant: "filled", severity: "success", sx: { width: "100%" }, action: n, children: e.progressState.message })
3841
- }
3842
- ),
3843
- /* @__PURE__ */ v(
3844
- Qe,
3845
- {
3846
- anchorOrigin: { vertical: "bottom", horizontal: "center" },
3847
- open: t && e.progressState.isError,
3848
- TransitionComponent: Cr,
3849
- autoHideDuration: e.autoHideDuration ?? 3e3,
3850
- onClose: () => r(!1),
3851
- children: /* @__PURE__ */ v(ze, { variant: "filled", sx: { width: "100%" }, severity: "error", action: n, children: e.progressState.message })
3852
- }
3853
- )
3854
- ] });
3855
- }, va = (e) => {
3856
- const [t, r] = Pe(!1);
3857
- xr(() => {
3858
- r(e.open);
3859
- }, [e.open, e]);
3860
- const n = /* @__PURE__ */ v(ge, { size: "small", "aria-label": "close", color: "inherit", onClick: () => r(!1), children: /* @__PURE__ */ v(Nt, { fontSize: "small" }) });
3861
- return /* @__PURE__ */ Se(vr, { children: [
3862
- /* @__PURE__ */ v(
3863
- Qe,
3864
- {
3865
- anchorOrigin: { vertical: "bottom", horizontal: "center" },
3866
- open: t && e.isSuccess,
3867
- autoHideDuration: e.autoHideDuration ?? 3e3,
3868
- onClose: () => r(!1),
3869
- children: /* @__PURE__ */ v(ze, { variant: "filled", severity: "success", sx: { width: "100%" }, action: n, children: e.message })
3870
- }
3871
- ),
3872
- /* @__PURE__ */ v(
3873
- Qe,
3874
- {
3875
- anchorOrigin: { vertical: "bottom", horizontal: "center" },
3876
- open: t && e.isError,
3877
- TransitionComponent: Cr,
3878
- autoHideDuration: e.autoHideDuration ?? 3e3,
3879
- onClose: () => r(!1),
3880
- children: /* @__PURE__ */ v(ze, { variant: "filled", sx: { width: "100%" }, severity: "error", action: n, children: e.message })
3881
- }
3882
- )
3883
- ] });
3884
- }, hr = se(/* @__PURE__ */ v("path", {
3885
- d: "M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"
3886
- }), "FirstPage"), gr = se(/* @__PURE__ */ v("path", {
3887
- d: "M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"
3888
- }), "KeyboardArrowLeft"), yr = se(/* @__PURE__ */ v("path", {
3889
- d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"
3890
- }), "KeyboardArrowRight"), br = se(/* @__PURE__ */ v("path", {
3891
- d: "M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"
3892
- }), "LastPage");
3893
- function Sa(e) {
3894
- const t = Di(), { count: r, page: n, rowsPerPage: o, onPageChange: i } = e, s = (p) => {
3895
- i(p, 0);
3896
- }, l = (p) => {
3897
- i(p, n - 1);
3898
- }, u = (p) => {
3899
- i(p, n + 1);
3900
- }, d = (p) => {
3901
- i(p, Math.max(0, Math.ceil(r / o) - 1));
3902
- };
3903
- return /* @__PURE__ */ Se(Er, { sx: { flexShrink: 0, ml: 2.5 }, children: [
3904
- /* @__PURE__ */ v(ge, { onClick: s, disabled: n === 0, "aria-label": "first page", children: t.direction === "rtl" ? /* @__PURE__ */ v(br, {}) : /* @__PURE__ */ v(hr, {}) }),
3905
- /* @__PURE__ */ v(ge, { onClick: l, disabled: n === 0, "aria-label": "previous page", children: t.direction === "rtl" ? /* @__PURE__ */ v(yr, {}) : /* @__PURE__ */ v(gr, {}) }),
3906
- /* @__PURE__ */ v(ge, { onClick: u, disabled: n >= Math.ceil(r / o) - 1, "aria-label": "next page", children: t.direction === "rtl" ? /* @__PURE__ */ v(gr, {}) : /* @__PURE__ */ v(yr, {}) }),
3907
- /* @__PURE__ */ v(ge, { onClick: d, disabled: n >= Math.ceil(r / o) - 1, "aria-label": "last page", children: t.direction === "rtl" ? /* @__PURE__ */ v(hr, {}) : /* @__PURE__ */ v(br, {}) })
3908
- ] });
3909
- }
3910
- function Ca(e) {
3911
- const { children: t, index: r, ...n } = e;
3912
- return /* @__PURE__ */ v("div", { className: "tabPanel", role: "tabpanel", id: `vertical-tabpanel-${r}`, "aria-labelledby": `vertical-tab-${r}`, ...n, children: /* @__PURE__ */ v(Er, { sx: { p: 3 }, children: /* @__PURE__ */ v(Kr, { component: "span", children: t }) }) });
3913
- }
3914
- function Ea(e) {
3915
- return {
3916
- id: `vertical-tab-${e}`,
3917
- "aria-controls": `vertical-tabpanel-${e}`
3918
- };
3919
- }
3920
- function Ta(e) {
3921
- return /* @__PURE__ */ v(Tr, { component: wr, to: e.href, className: "next-btn-link", underline: "hover", children: e.linkText ?? e.children });
3922
- }
3923
- function xa() {
3924
- return /* @__PURE__ */ v("div", { style: { margin: "1.5rem" }, className: "app-flex-justify-center", children: /* @__PURE__ */ v(qr, {}) });
3925
- }
3926
- function wa(e) {
3927
- const { onClose: t, title: r, message: n, open: o, ...i } = e;
3928
- return /* @__PURE__ */ Se(Qr, { sx: { "& .MuiDialog-paper": { width: "80%", maxHeight: 435 } }, maxWidth: "xs", open: o, ...i, children: [
3929
- /* @__PURE__ */ v(Jr, { children: r ?? "Confirm" }),
3930
- /* @__PURE__ */ v(Xr, { dividers: !0, children: n }),
3931
- /* @__PURE__ */ Se(Zr, { children: [
3932
- /* @__PURE__ */ v(ye, { autoFocus: !0, onClick: () => t("No"), children: "Cancel" }),
3933
- /* @__PURE__ */ v(ye, { onClick: () => t("Yes"), children: "Yes" })
3934
- ] })
3935
- ] });
3936
- }
3937
- function Oa(e) {
3938
- const [t, r] = Pe(!0), [n] = Pe(e.dismissible ?? !0), [o] = Pe(e.dismissOnTimeOut ?? !0), [i] = Pe(e.dismissTimeOut ?? 5e3);
3939
- return setTimeout(() => {
3940
- r(o ? !1 : t);
3941
- }, i), /* @__PURE__ */ v("span", { children: t && /* @__PURE__ */ v(
3942
- ze,
3943
- {
3944
- action: n ? /* @__PURE__ */ v(
3945
- ge,
3946
- {
3947
- "aria-label": "close",
3948
- color: "inherit",
3949
- size: "small",
3950
- onClick: () => {
3951
- r(!1);
3952
- },
3953
- children: /* @__PURE__ */ v(Nt, { fontSize: "inherit" })
3954
- }
3955
- ) : null,
3956
- style: { margin: "20px" },
3957
- ...e,
3958
- children: e.message
3959
- }
3960
- ) });
3961
- }
3962
- const Zi = se(/* @__PURE__ */ v("path", {
3963
- d: "M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"
3964
- }), "OpenInNew");
3965
- function $a(e) {
3966
- return /* @__PURE__ */ Se(
3967
- Tr,
3968
- {
3969
- component: wr,
3970
- to: e.href,
3971
- target: e.target || "_blank",
3972
- rel: "noreferrer",
3973
- className: "next-btn-link",
3974
- underline: "hover",
3975
- children: [
3976
- e.linkText ?? e.children,
3977
- /* @__PURE__ */ v(
3978
- en,
3979
- {
3980
- sx: {
3981
- fontSize: "1.1rem",
3982
- mx: 0.75,
3983
- verticalAlign: "middle",
3984
- display: "inline-flex"
3985
- },
3986
- component: Zi
3987
- }
3988
- )
3989
- ]
3990
- }
3991
- );
3992
- }
3993
- function _a(e) {
3994
- const { condition: t, children: r, else: n } = e;
3995
- return t ? typeof r == "function" ? r() : r : n ? typeof n == "function" ? n() : n : null;
3996
- }
3997
- function Aa(e) {
3998
- return typeof e == "boolean" ? e : typeof e == "string" ? e.toLowerCase() === "true" : !1;
3999
- }
4000
- var Dt = /* @__PURE__ */ ((e) => (e.SYSTEM_TIME_ZONE = "America/New_York", e.SYSTEM_LOCALE = "en-US", e.SYSTEM_DATE_FORMAT = "MM/dd/yyyy", e.SYSTEM_DATE_TIME_FORMAT = "MM/dd/yyyy hh:mm:ss a", e.ISO_DATE_FORMAT = "yyyy-MM-dd", e[e.SYSTEM_COOKIE_TIMEOUT_HOURS = 24] = "SYSTEM_COOKIE_TIMEOUT_HOURS", e[e.SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS = 36e5] = "SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS", e))(Dt || {});
4001
- const Ra = () => {
4002
- const e = +/* @__PURE__ */ new Date();
4003
- return new Date(e + Dt.SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS);
4004
- }, Pa = (e) => Or(new Date(e), Dt.ISO_DATE_FORMAT), ka = (e, t) => e ? Or(nn(e), t) : "";
4005
- function Ia(e) {
4006
- if (typeof e == "string")
4007
- return Number.parseInt(e, 10);
4008
- }
4009
- const Ma = () => ({
4010
- isLoading: !1,
4011
- isSuccess: !1,
4012
- isError: !1,
4013
- isComplete: !1,
4014
- message: ""
4015
- }), Na = (e) => ({
4016
- ...e,
4017
- isLoading: !0,
4018
- isSuccess: !1,
4019
- isError: !1,
4020
- message: ""
4021
- }), Da = (e, t) => ({
4022
- ...e,
4023
- isLoading: !1,
4024
- isSuccess: !0,
4025
- isError: !1,
4026
- isComplete: !0,
4027
- message: t || ""
4028
- }), Ba = (e, t) => ({
4029
- ...e,
4030
- isLoading: !1,
4031
- isSuccess: !1,
4032
- isError: !0,
4033
- isComplete: !0,
4034
- message: t || ""
4035
- });
4036
- function La(e) {
4037
- return e == null ? !0 : typeof e == "string" ? e.trim() === "" : !1;
4038
- }
4039
- const za = (e) => {
4040
- try {
4041
- return decodeURIComponent(e) !== e;
4042
- } catch {
4043
- return !1;
4044
- }
4045
- };
4046
- class ea extends Error {
4047
- constructor(r, { status: n, statusText: o, redirected: i, type: s }) {
4048
- super(r);
4049
- Me(this, "status");
4050
- Me(this, "statusText");
4051
- Me(this, "redirected");
4052
- Me(this, "type");
4053
- this.status = n, this.statusText = o, this.statusText = s, this.redirected = i, this.name = "HttpError";
4054
- }
4055
- }
4056
- async function Va(e, t = {}) {
4057
- const r = new Headers(t.headers || {});
4058
- t.body instanceof FormData || typeof t.body == "object" && (t.body = JSON.stringify(t.body), r.set("Content-Type", "application/json"));
4059
- const n = {
4060
- ...t,
4061
- headers: r
4062
- };
4063
- n.body && typeof n.body == "object" && (n.body = JSON.stringify(n.body));
4064
- const o = await fetch(e, n);
4065
- if (o.type === "error") {
4066
- const i = await o.text();
4067
- throw new ea(i, o);
4068
- }
4069
- return await o.json();
4070
- }
4071
- function ja(e) {
4072
- return getComputedStyle(document.documentElement).getPropertyValue(e).trim();
4073
- }
4074
- export {
4075
- ba as AppSnackBar,
4076
- la as CancelButton,
4077
- xa as CenteredCircularProgress,
4078
- wa as ConfirmDialog,
4079
- ua as DeleteButton,
4080
- Oa as DismissibleAlert,
4081
- ya as EditIconButton,
4082
- ga as ExcelButton,
4083
- fa as GoBackButton,
4084
- da as HistoryButton,
4085
- ma as LoadingSuccessButton,
4086
- pa as ManageButton,
4087
- Ta as NextLink,
4088
- $a as OpenInNewIconLink,
4089
- va as QuerySnackBar,
4090
- _a as ReactIf,
4091
- ha as SuccessButton,
4092
- Ca as TabPanel,
4093
- Sa as TablePaginationActions,
4094
- Ea as a11yProps,
4095
- Pa as convertToIsoDate,
4096
- Va as fetchClient,
4097
- ka as formatDate,
4098
- ja as getCssVariable,
4099
- Ma as initializeState,
4100
- La as isBlankOrEmpty,
4101
- za as isEncoded,
4102
- Ba as markError,
4103
- Na as markLoading,
4104
- Da as markSuccess,
4105
- Aa as parseBoolean,
4106
- Ia as parseNumber,
4107
- Ra as setCookieExpirationDate
4108
- };