@amateescu/portal-ui-components 0.0.25-react19 → 0.0.26-beta0

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 (44) hide show
  1. package/dist/Box-C1OwXVV-.js +68 -0
  2. package/dist/Button-CIvE-fcO.js +355 -0
  3. package/dist/ButtonBase-BeQnmGXr.js +966 -0
  4. package/dist/{EllipsisOutlined-DfTPoz8U.js → EllipsisOutlined-DZsCEqiL.js} +724 -722
  5. package/dist/{PurePanel-ByiFMw5U.js → PurePanel-iUNZWTe_.js} +3 -3
  6. package/dist/{Skeleton-Imy-56Lv.js → Skeleton-CfEiGUkR.js} +2 -2
  7. package/dist/{UserInfoDropdown-6aB5cQyF.js → UserInfoDropdown-CoZutJAR.js} +191 -191
  8. package/dist/assertThisInitialized-BUtkG-md.js +13 -0
  9. package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
  10. package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +1 -1
  11. package/dist/components/CustomButton/CustomButton.js +1 -1
  12. package/dist/components/CustomPagination/CustomPagination.js +372 -483
  13. package/dist/components/ErrorModal/ErrorModal.js +1 -1
  14. package/dist/components/ErrorModal/ErrorModal.stories.js +1 -1
  15. package/dist/components/InfoModal/InfoModal.js +1 -1
  16. package/dist/components/InfoModal/InfoModal.stories.js +1 -1
  17. package/dist/components/KpiCard/KpiCard.js +4 -4
  18. package/dist/components/LoadingAnimation/LoadingAnimation.js +215 -6
  19. package/dist/components/Login/Login.js +3837 -4489
  20. package/dist/components/Login/Login.stories.js +1 -1
  21. package/dist/components/SideMenu/SideMenu.js +1 -1
  22. package/dist/components/SideMenu/SideMenu.types.d.ts +0 -1
  23. package/dist/components/TotalDataGrid/TotalDataGrid.js +6 -6
  24. package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
  25. package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
  26. package/dist/components/index.js +1 -1
  27. package/dist/{context-D_FWkiDE.js → context-Crxhk7DD.js} +9 -8
  28. package/dist/createSvgIcon-Db107M0j.js +250 -0
  29. package/dist/generateUtilityClasses-DY-qyzNG.js +3427 -0
  30. package/dist/{index-CR8gh-dS.js → index-BxiDYyNJ.js} +4 -4
  31. package/dist/index-DpDv68WZ.js +19153 -0
  32. package/dist/main.js +1 -1
  33. package/dist/objectWithoutPropertiesLoose-DYizGgyG.js +46 -0
  34. package/dist/types/Column.d.ts +2 -0
  35. package/package.json +28 -26
  36. package/dist/Box-DQNjUj2G.js +0 -102
  37. package/dist/Button-D2XVkO19.js +0 -676
  38. package/dist/ButtonBase-D-XlpvIZ.js +0 -954
  39. package/dist/CircularProgress-BOkP0juA.js +0 -247
  40. package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
  41. package/dist/createSimplePaletteValueFilter-CshNo3IR.js +0 -3439
  42. package/dist/index-CyFfYou3.js +0 -411
  43. package/dist/objectWithoutPropertiesLoose-BTau6TOn.js +0 -33
  44. package/dist/useSlot-kDVPuVrn.js +0 -431
@@ -1,3439 +0,0 @@
1
- import * as Ye from "react";
2
- import St from "@emotion/styled";
3
- import "@emotion/react";
4
- import { g as Et } from "./_commonjsHelpers-C6fGbg64.js";
5
- import "react/jsx-runtime";
6
- var Ne = { exports: {} }, Me = { exports: {} }, B = {};
7
- /** @license React v16.13.1
8
- * react-is.production.min.js
9
- *
10
- * Copyright (c) Facebook, Inc. and its affiliates.
11
- *
12
- * This source code is licensed under the MIT license found in the
13
- * LICENSE file in the root directory of this source tree.
14
- */
15
- var wr;
16
- function Ct() {
17
- if (wr) return B;
18
- wr = 1;
19
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = 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, u = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, g = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, m = 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, w = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, H = e ? Symbol.for("react.scope") : 60119;
20
- function x(h) {
21
- if (typeof h == "object" && h !== null) {
22
- var j = h.$$typeof;
23
- switch (j) {
24
- case r:
25
- switch (h = h.type, h) {
26
- case f:
27
- case d:
28
- case n:
29
- case i:
30
- case o:
31
- case p:
32
- return h;
33
- default:
34
- switch (h = h && h.$$typeof, h) {
35
- case u:
36
- case g:
37
- case b:
38
- case S:
39
- case s:
40
- return h;
41
- default:
42
- return j;
43
- }
44
- }
45
- case t:
46
- return j;
47
- }
48
- }
49
- }
50
- function T(h) {
51
- return x(h) === d;
52
- }
53
- return B.AsyncMode = f, B.ConcurrentMode = d, B.ContextConsumer = u, B.ContextProvider = s, B.Element = r, B.ForwardRef = g, B.Fragment = n, B.Lazy = b, B.Memo = S, B.Portal = t, B.Profiler = i, B.StrictMode = o, B.Suspense = p, B.isAsyncMode = function(h) {
54
- return T(h) || x(h) === f;
55
- }, B.isConcurrentMode = T, B.isContextConsumer = function(h) {
56
- return x(h) === u;
57
- }, B.isContextProvider = function(h) {
58
- return x(h) === s;
59
- }, B.isElement = function(h) {
60
- return typeof h == "object" && h !== null && h.$$typeof === r;
61
- }, B.isForwardRef = function(h) {
62
- return x(h) === g;
63
- }, B.isFragment = function(h) {
64
- return x(h) === n;
65
- }, B.isLazy = function(h) {
66
- return x(h) === b;
67
- }, B.isMemo = function(h) {
68
- return x(h) === S;
69
- }, B.isPortal = function(h) {
70
- return x(h) === t;
71
- }, B.isProfiler = function(h) {
72
- return x(h) === i;
73
- }, B.isStrictMode = function(h) {
74
- return x(h) === o;
75
- }, B.isSuspense = function(h) {
76
- return x(h) === p;
77
- }, B.isValidElementType = function(h) {
78
- return typeof h == "string" || typeof h == "function" || h === n || h === d || h === i || h === o || h === p || h === m || typeof h == "object" && h !== null && (h.$$typeof === b || h.$$typeof === S || h.$$typeof === s || h.$$typeof === u || h.$$typeof === g || h.$$typeof === w || h.$$typeof === $ || h.$$typeof === H || h.$$typeof === c);
79
- }, B.typeOf = x, B;
80
- }
81
- var F = {};
82
- /** @license React v16.13.1
83
- * react-is.development.js
84
- *
85
- * Copyright (c) Facebook, Inc. and its affiliates.
86
- *
87
- * This source code is licensed under the MIT license found in the
88
- * LICENSE file in the root directory of this source tree.
89
- */
90
- var xr;
91
- function Tt() {
92
- return xr || (xr = 1, process.env.NODE_ENV !== "production" && function() {
93
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = 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, u = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, g = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, m = 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, w = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, H = e ? Symbol.for("react.scope") : 60119;
94
- function x(v) {
95
- return typeof v == "string" || typeof v == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
96
- v === n || v === d || v === i || v === o || v === p || v === m || typeof v == "object" && v !== null && (v.$$typeof === b || v.$$typeof === S || v.$$typeof === s || v.$$typeof === u || v.$$typeof === g || v.$$typeof === w || v.$$typeof === $ || v.$$typeof === H || v.$$typeof === c);
97
- }
98
- function T(v) {
99
- if (typeof v == "object" && v !== null) {
100
- var ce = v.$$typeof;
101
- switch (ce) {
102
- case r:
103
- var Ie = v.type;
104
- switch (Ie) {
105
- case f:
106
- case d:
107
- case n:
108
- case i:
109
- case o:
110
- case p:
111
- return Ie;
112
- default:
113
- var Tr = Ie && Ie.$$typeof;
114
- switch (Tr) {
115
- case u:
116
- case g:
117
- case b:
118
- case S:
119
- case s:
120
- return Tr;
121
- default:
122
- return ce;
123
- }
124
- }
125
- case t:
126
- return ce;
127
- }
128
- }
129
- }
130
- var h = f, j = d, X = u, J = s, Z = r, a = g, C = n, O = b, D = S, G = t, re = i, ee = o, se = p, be = !1;
131
- function rr(v) {
132
- return be || (be = !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(v) || T(v) === f;
133
- }
134
- function y(v) {
135
- return T(v) === d;
136
- }
137
- function E(v) {
138
- return T(v) === u;
139
- }
140
- function k(v) {
141
- return T(v) === s;
142
- }
143
- function P(v) {
144
- return typeof v == "object" && v !== null && v.$$typeof === r;
145
- }
146
- function A(v) {
147
- return T(v) === g;
148
- }
149
- function I(v) {
150
- return T(v) === n;
151
- }
152
- function _(v) {
153
- return T(v) === b;
154
- }
155
- function R(v) {
156
- return T(v) === S;
157
- }
158
- function N(v) {
159
- return T(v) === t;
160
- }
161
- function V(v) {
162
- return T(v) === i;
163
- }
164
- function M(v) {
165
- return T(v) === o;
166
- }
167
- function te(v) {
168
- return T(v) === p;
169
- }
170
- F.AsyncMode = h, F.ConcurrentMode = j, F.ContextConsumer = X, F.ContextProvider = J, F.Element = Z, F.ForwardRef = a, F.Fragment = C, F.Lazy = O, F.Memo = D, F.Portal = G, F.Profiler = re, F.StrictMode = ee, F.Suspense = se, F.isAsyncMode = rr, F.isConcurrentMode = y, F.isContextConsumer = E, F.isContextProvider = k, F.isElement = P, F.isForwardRef = A, F.isFragment = I, F.isLazy = _, F.isMemo = R, F.isPortal = N, F.isProfiler = V, F.isStrictMode = M, F.isSuspense = te, F.isValidElementType = x, F.typeOf = T;
171
- }()), F;
172
- }
173
- var $r;
174
- function rt() {
175
- return $r || ($r = 1, process.env.NODE_ENV === "production" ? Me.exports = Ct() : Me.exports = Tt()), Me.exports;
176
- }
177
- /*
178
- object-assign
179
- (c) Sindre Sorhus
180
- @license MIT
181
- */
182
- var tr, Or;
183
- function wt() {
184
- if (Or) return tr;
185
- Or = 1;
186
- var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
187
- function n(i) {
188
- if (i == null)
189
- throw new TypeError("Object.assign cannot be called with null or undefined");
190
- return Object(i);
191
- }
192
- function o() {
193
- try {
194
- if (!Object.assign)
195
- return !1;
196
- var i = new String("abc");
197
- if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
198
- return !1;
199
- for (var s = {}, u = 0; u < 10; u++)
200
- s["_" + String.fromCharCode(u)] = u;
201
- var f = Object.getOwnPropertyNames(s).map(function(g) {
202
- return s[g];
203
- });
204
- if (f.join("") !== "0123456789")
205
- return !1;
206
- var d = {};
207
- return "abcdefghijklmnopqrst".split("").forEach(function(g) {
208
- d[g] = g;
209
- }), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
210
- } catch {
211
- return !1;
212
- }
213
- }
214
- return tr = o() ? Object.assign : function(i, s) {
215
- for (var u, f = n(i), d, g = 1; g < arguments.length; g++) {
216
- u = Object(arguments[g]);
217
- for (var p in u)
218
- r.call(u, p) && (f[p] = u[p]);
219
- if (e) {
220
- d = e(u);
221
- for (var m = 0; m < d.length; m++)
222
- t.call(u, d[m]) && (f[d[m]] = u[d[m]]);
223
- }
224
- }
225
- return f;
226
- }, tr;
227
- }
228
- var nr, Ar;
229
- function gr() {
230
- if (Ar) return nr;
231
- Ar = 1;
232
- var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
233
- return nr = e, nr;
234
- }
235
- var or, _r;
236
- function tt() {
237
- return _r || (_r = 1, or = Function.call.bind(Object.prototype.hasOwnProperty)), or;
238
- }
239
- var ir, Pr;
240
- function xt() {
241
- if (Pr) return ir;
242
- Pr = 1;
243
- var e = function() {
244
- };
245
- if (process.env.NODE_ENV !== "production") {
246
- var r = /* @__PURE__ */ gr(), t = {}, n = /* @__PURE__ */ tt();
247
- e = function(i) {
248
- var s = "Warning: " + i;
249
- typeof console < "u" && console.error(s);
250
- try {
251
- throw new Error(s);
252
- } catch {
253
- }
254
- };
255
- }
256
- function o(i, s, u, f, d) {
257
- if (process.env.NODE_ENV !== "production") {
258
- for (var g in i)
259
- if (n(i, g)) {
260
- var p;
261
- try {
262
- if (typeof i[g] != "function") {
263
- var m = Error(
264
- (f || "React class") + ": " + u + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
265
- );
266
- throw m.name = "Invariant Violation", m;
267
- }
268
- p = i[g](s, g, f, u, null, r);
269
- } catch (b) {
270
- p = b;
271
- }
272
- if (p && !(p instanceof Error) && e(
273
- (f || "React class") + ": type specification of " + u + " `" + g + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof p + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
274
- ), p instanceof Error && !(p.message in t)) {
275
- t[p.message] = !0;
276
- var S = d ? d() : "";
277
- e(
278
- "Failed " + u + " type: " + p.message + (S ?? "")
279
- );
280
- }
281
- }
282
- }
283
- }
284
- return o.resetWarningCache = function() {
285
- process.env.NODE_ENV !== "production" && (t = {});
286
- }, ir = o, ir;
287
- }
288
- var ar, Rr;
289
- function $t() {
290
- if (Rr) return ar;
291
- Rr = 1;
292
- var e = rt(), r = wt(), t = /* @__PURE__ */ gr(), n = /* @__PURE__ */ tt(), o = /* @__PURE__ */ xt(), i = function() {
293
- };
294
- process.env.NODE_ENV !== "production" && (i = function(u) {
295
- var f = "Warning: " + u;
296
- typeof console < "u" && console.error(f);
297
- try {
298
- throw new Error(f);
299
- } catch {
300
- }
301
- });
302
- function s() {
303
- return null;
304
- }
305
- return ar = function(u, f) {
306
- var d = typeof Symbol == "function" && Symbol.iterator, g = "@@iterator";
307
- function p(y) {
308
- var E = y && (d && y[d] || y[g]);
309
- if (typeof E == "function")
310
- return E;
311
- }
312
- var m = "<<anonymous>>", S = {
313
- array: $("array"),
314
- bigint: $("bigint"),
315
- bool: $("boolean"),
316
- func: $("function"),
317
- number: $("number"),
318
- object: $("object"),
319
- string: $("string"),
320
- symbol: $("symbol"),
321
- any: H(),
322
- arrayOf: x,
323
- element: T(),
324
- elementType: h(),
325
- instanceOf: j,
326
- node: a(),
327
- objectOf: J,
328
- oneOf: X,
329
- oneOfType: Z,
330
- shape: O,
331
- exact: D
332
- };
333
- function b(y, E) {
334
- return y === E ? y !== 0 || 1 / y === 1 / E : y !== y && E !== E;
335
- }
336
- function c(y, E) {
337
- this.message = y, this.data = E && typeof E == "object" ? E : {}, this.stack = "";
338
- }
339
- c.prototype = Error.prototype;
340
- function w(y) {
341
- if (process.env.NODE_ENV !== "production")
342
- var E = {}, k = 0;
343
- function P(I, _, R, N, V, M, te) {
344
- if (N = N || m, M = M || R, te !== t) {
345
- if (f) {
346
- var v = new Error(
347
- "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"
348
- );
349
- throw v.name = "Invariant Violation", v;
350
- } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
351
- var ce = N + ":" + R;
352
- !E[ce] && // Avoid spamming the console because they are often not actionable except for lib authors
353
- k < 3 && (i(
354
- "You are manually calling a React.PropTypes validation function for the `" + M + "` 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."
355
- ), E[ce] = !0, k++);
356
- }
357
- }
358
- return _[R] == null ? I ? _[R] === null ? new c("The " + V + " `" + M + "` is marked as required " + ("in `" + N + "`, but its value is `null`.")) : new c("The " + V + " `" + M + "` is marked as required in " + ("`" + N + "`, but its value is `undefined`.")) : null : y(_, R, N, V, M);
359
- }
360
- var A = P.bind(null, !1);
361
- return A.isRequired = P.bind(null, !0), A;
362
- }
363
- function $(y) {
364
- function E(k, P, A, I, _, R) {
365
- var N = k[P], V = ee(N);
366
- if (V !== y) {
367
- var M = se(N);
368
- return new c(
369
- "Invalid " + I + " `" + _ + "` of type " + ("`" + M + "` supplied to `" + A + "`, expected ") + ("`" + y + "`."),
370
- { expectedType: y }
371
- );
372
- }
373
- return null;
374
- }
375
- return w(E);
376
- }
377
- function H() {
378
- return w(s);
379
- }
380
- function x(y) {
381
- function E(k, P, A, I, _) {
382
- if (typeof y != "function")
383
- return new c("Property `" + _ + "` of component `" + A + "` has invalid PropType notation inside arrayOf.");
384
- var R = k[P];
385
- if (!Array.isArray(R)) {
386
- var N = ee(R);
387
- return new c("Invalid " + I + " `" + _ + "` of type " + ("`" + N + "` supplied to `" + A + "`, expected an array."));
388
- }
389
- for (var V = 0; V < R.length; V++) {
390
- var M = y(R, V, A, I, _ + "[" + V + "]", t);
391
- if (M instanceof Error)
392
- return M;
393
- }
394
- return null;
395
- }
396
- return w(E);
397
- }
398
- function T() {
399
- function y(E, k, P, A, I) {
400
- var _ = E[k];
401
- if (!u(_)) {
402
- var R = ee(_);
403
- return new c("Invalid " + A + " `" + I + "` of type " + ("`" + R + "` supplied to `" + P + "`, expected a single ReactElement."));
404
- }
405
- return null;
406
- }
407
- return w(y);
408
- }
409
- function h() {
410
- function y(E, k, P, A, I) {
411
- var _ = E[k];
412
- if (!e.isValidElementType(_)) {
413
- var R = ee(_);
414
- return new c("Invalid " + A + " `" + I + "` of type " + ("`" + R + "` supplied to `" + P + "`, expected a single ReactElement type."));
415
- }
416
- return null;
417
- }
418
- return w(y);
419
- }
420
- function j(y) {
421
- function E(k, P, A, I, _) {
422
- if (!(k[P] instanceof y)) {
423
- var R = y.name || m, N = rr(k[P]);
424
- return new c("Invalid " + I + " `" + _ + "` of type " + ("`" + N + "` supplied to `" + A + "`, expected ") + ("instance of `" + R + "`."));
425
- }
426
- return null;
427
- }
428
- return w(E);
429
- }
430
- function X(y) {
431
- if (!Array.isArray(y))
432
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
433
- "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])."
434
- ) : i("Invalid argument supplied to oneOf, expected an array.")), s;
435
- function E(k, P, A, I, _) {
436
- for (var R = k[P], N = 0; N < y.length; N++)
437
- if (b(R, y[N]))
438
- return null;
439
- var V = JSON.stringify(y, function(te, v) {
440
- var ce = se(v);
441
- return ce === "symbol" ? String(v) : v;
442
- });
443
- return new c("Invalid " + I + " `" + _ + "` of value `" + String(R) + "` " + ("supplied to `" + A + "`, expected one of " + V + "."));
444
- }
445
- return w(E);
446
- }
447
- function J(y) {
448
- function E(k, P, A, I, _) {
449
- if (typeof y != "function")
450
- return new c("Property `" + _ + "` of component `" + A + "` has invalid PropType notation inside objectOf.");
451
- var R = k[P], N = ee(R);
452
- if (N !== "object")
453
- return new c("Invalid " + I + " `" + _ + "` of type " + ("`" + N + "` supplied to `" + A + "`, expected an object."));
454
- for (var V in R)
455
- if (n(R, V)) {
456
- var M = y(R, V, A, I, _ + "." + V, t);
457
- if (M instanceof Error)
458
- return M;
459
- }
460
- return null;
461
- }
462
- return w(E);
463
- }
464
- function Z(y) {
465
- if (!Array.isArray(y))
466
- return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
467
- for (var E = 0; E < y.length; E++) {
468
- var k = y[E];
469
- if (typeof k != "function")
470
- return i(
471
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + be(k) + " at index " + E + "."
472
- ), s;
473
- }
474
- function P(A, I, _, R, N) {
475
- for (var V = [], M = 0; M < y.length; M++) {
476
- var te = y[M], v = te(A, I, _, R, N, t);
477
- if (v == null)
478
- return null;
479
- v.data && n(v.data, "expectedType") && V.push(v.data.expectedType);
480
- }
481
- var ce = V.length > 0 ? ", expected one of type [" + V.join(", ") + "]" : "";
482
- return new c("Invalid " + R + " `" + N + "` supplied to " + ("`" + _ + "`" + ce + "."));
483
- }
484
- return w(P);
485
- }
486
- function a() {
487
- function y(E, k, P, A, I) {
488
- return G(E[k]) ? null : new c("Invalid " + A + " `" + I + "` supplied to " + ("`" + P + "`, expected a ReactNode."));
489
- }
490
- return w(y);
491
- }
492
- function C(y, E, k, P, A) {
493
- return new c(
494
- (y || "React class") + ": " + E + " type `" + k + "." + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + A + "`."
495
- );
496
- }
497
- function O(y) {
498
- function E(k, P, A, I, _) {
499
- var R = k[P], N = ee(R);
500
- if (N !== "object")
501
- return new c("Invalid " + I + " `" + _ + "` of type `" + N + "` " + ("supplied to `" + A + "`, expected `object`."));
502
- for (var V in y) {
503
- var M = y[V];
504
- if (typeof M != "function")
505
- return C(A, I, _, V, se(M));
506
- var te = M(R, V, A, I, _ + "." + V, t);
507
- if (te)
508
- return te;
509
- }
510
- return null;
511
- }
512
- return w(E);
513
- }
514
- function D(y) {
515
- function E(k, P, A, I, _) {
516
- var R = k[P], N = ee(R);
517
- if (N !== "object")
518
- return new c("Invalid " + I + " `" + _ + "` of type `" + N + "` " + ("supplied to `" + A + "`, expected `object`."));
519
- var V = r({}, k[P], y);
520
- for (var M in V) {
521
- var te = y[M];
522
- if (n(y, M) && typeof te != "function")
523
- return C(A, I, _, M, se(te));
524
- if (!te)
525
- return new c(
526
- "Invalid " + I + " `" + _ + "` key `" + M + "` supplied to `" + A + "`.\nBad object: " + JSON.stringify(k[P], null, " ") + `
527
- Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
528
- );
529
- var v = te(R, M, A, I, _ + "." + M, t);
530
- if (v)
531
- return v;
532
- }
533
- return null;
534
- }
535
- return w(E);
536
- }
537
- function G(y) {
538
- switch (typeof y) {
539
- case "number":
540
- case "string":
541
- case "undefined":
542
- return !0;
543
- case "boolean":
544
- return !y;
545
- case "object":
546
- if (Array.isArray(y))
547
- return y.every(G);
548
- if (y === null || u(y))
549
- return !0;
550
- var E = p(y);
551
- if (E) {
552
- var k = E.call(y), P;
553
- if (E !== y.entries) {
554
- for (; !(P = k.next()).done; )
555
- if (!G(P.value))
556
- return !1;
557
- } else
558
- for (; !(P = k.next()).done; ) {
559
- var A = P.value;
560
- if (A && !G(A[1]))
561
- return !1;
562
- }
563
- } else
564
- return !1;
565
- return !0;
566
- default:
567
- return !1;
568
- }
569
- }
570
- function re(y, E) {
571
- return y === "symbol" ? !0 : E ? E["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && E instanceof Symbol : !1;
572
- }
573
- function ee(y) {
574
- var E = typeof y;
575
- return Array.isArray(y) ? "array" : y instanceof RegExp ? "object" : re(E, y) ? "symbol" : E;
576
- }
577
- function se(y) {
578
- if (typeof y > "u" || y === null)
579
- return "" + y;
580
- var E = ee(y);
581
- if (E === "object") {
582
- if (y instanceof Date)
583
- return "date";
584
- if (y instanceof RegExp)
585
- return "regexp";
586
- }
587
- return E;
588
- }
589
- function be(y) {
590
- var E = se(y);
591
- switch (E) {
592
- case "array":
593
- case "object":
594
- return "an " + E;
595
- case "boolean":
596
- case "date":
597
- case "regexp":
598
- return "a " + E;
599
- default:
600
- return E;
601
- }
602
- }
603
- function rr(y) {
604
- return !y.constructor || !y.constructor.name ? m : y.constructor.name;
605
- }
606
- return S.checkPropTypes = o, S.resetWarningCache = o.resetWarningCache, S.PropTypes = S, S;
607
- }, ar;
608
- }
609
- var sr, kr;
610
- function Ot() {
611
- if (kr) return sr;
612
- kr = 1;
613
- var e = /* @__PURE__ */ gr();
614
- function r() {
615
- }
616
- function t() {
617
- }
618
- return t.resetWarningCache = r, sr = function() {
619
- function n(s, u, f, d, g, p) {
620
- if (p !== e) {
621
- var m = new Error(
622
- "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"
623
- );
624
- throw m.name = "Invariant Violation", m;
625
- }
626
- }
627
- n.isRequired = n;
628
- function o() {
629
- return n;
630
- }
631
- var i = {
632
- array: n,
633
- bigint: n,
634
- bool: n,
635
- func: n,
636
- number: n,
637
- object: n,
638
- string: n,
639
- symbol: n,
640
- any: n,
641
- arrayOf: o,
642
- element: n,
643
- elementType: n,
644
- instanceOf: o,
645
- node: n,
646
- objectOf: o,
647
- oneOf: o,
648
- oneOfType: o,
649
- shape: o,
650
- exact: o,
651
- checkPropTypes: t,
652
- resetWarningCache: r
653
- };
654
- return i.PropTypes = i, i;
655
- }, sr;
656
- }
657
- var Ir;
658
- function At() {
659
- if (Ir) return Ne.exports;
660
- if (Ir = 1, process.env.NODE_ENV !== "production") {
661
- var e = rt(), r = !0;
662
- Ne.exports = /* @__PURE__ */ $t()(e.isElement, r);
663
- } else
664
- Ne.exports = /* @__PURE__ */ Ot()();
665
- return Ne.exports;
666
- }
667
- var _t = /* @__PURE__ */ At();
668
- const fe = /* @__PURE__ */ Et(_t);
669
- function nt(e) {
670
- var r, t, n = "";
671
- if (typeof e == "string" || typeof e == "number") n += e;
672
- else if (typeof e == "object") if (Array.isArray(e)) {
673
- var o = e.length;
674
- for (r = 0; r < o; r++) e[r] && (t = nt(e[r])) && (n && (n += " "), n += t);
675
- } else for (t in e) e[t] && (n && (n += " "), n += t);
676
- return n;
677
- }
678
- function ti() {
679
- for (var e, r, t = 0, n = "", o = arguments.length; t < o; t++) (e = arguments[t]) && (r = nt(e)) && (n && (n += " "), n += r);
680
- return n;
681
- }
682
- function dr(e, r) {
683
- const t = {
684
- ...r
685
- };
686
- for (const n in e)
687
- if (Object.prototype.hasOwnProperty.call(e, n)) {
688
- const o = n;
689
- if (o === "components" || o === "slots")
690
- t[o] = {
691
- ...e[o],
692
- ...t[o]
693
- };
694
- else if (o === "componentsProps" || o === "slotProps") {
695
- const i = e[o], s = r[o];
696
- if (!s)
697
- t[o] = i || {};
698
- else if (!i)
699
- t[o] = s;
700
- else {
701
- t[o] = {
702
- ...s
703
- };
704
- for (const u in i)
705
- if (Object.prototype.hasOwnProperty.call(i, u)) {
706
- const f = u;
707
- t[o][f] = dr(i[f], s[f]);
708
- }
709
- }
710
- } else t[o] === void 0 && (t[o] = e[o]);
711
- }
712
- return t;
713
- }
714
- function ni(e, r, t = void 0) {
715
- const n = {};
716
- for (const o in e) {
717
- const i = e[o];
718
- let s = "", u = !0;
719
- for (let f = 0; f < i.length; f += 1) {
720
- const d = i[f];
721
- d && (s += (u === !0 ? "" : " ") + r(d), u = !1, t && t[d] && (s += " " + t[d]));
722
- }
723
- n[o] = s;
724
- }
725
- return n;
726
- }
727
- function ge(e, ...r) {
728
- const t = new URL(`https://mui.com/production-error/?code=${e}`);
729
- return r.forEach((n) => t.searchParams.append("args[]", n)), `Minified MUI error #${e}; visit ${t} for the full message.`;
730
- }
731
- function Pt(e, r = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER) {
732
- return Math.max(r, Math.min(e, t));
733
- }
734
- function hr(e, r = 0, t = 1) {
735
- return process.env.NODE_ENV !== "production" && (e < r || e > t) && console.error(`MUI: The value provided ${e} is out of range [${r}, ${t}].`), Pt(e, r, t);
736
- }
737
- function Rt(e) {
738
- e = e.slice(1);
739
- const r = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
740
- let t = e.match(r);
741
- return t && t[0].length === 1 && (t = t.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.`), t ? `rgb${t.length === 4 ? "a" : ""}(${t.map((n, o) => o < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
742
- }
743
- function he(e) {
744
- if (e.type)
745
- return e;
746
- if (e.charAt(0) === "#")
747
- return he(Rt(e));
748
- const r = e.indexOf("("), t = e.substring(0, r);
749
- if (!["rgb", "rgba", "hsl", "hsla", "color"].includes(t))
750
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
751
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : ge(9, e));
752
- let n = e.substring(r + 1, e.length - 1), o;
753
- if (t === "color") {
754
- 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))
755
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${o}\` color space.
756
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : ge(10, o));
757
- } else
758
- n = n.split(",");
759
- return n = n.map((i) => parseFloat(i)), {
760
- type: t,
761
- values: n,
762
- colorSpace: o
763
- };
764
- }
765
- const kt = (e) => {
766
- const r = he(e);
767
- return r.values.slice(0, 3).map((t, n) => r.type.includes("hsl") && n !== 0 ? `${t}%` : t).join(" ");
768
- }, Oe = (e, r) => {
769
- try {
770
- return kt(e);
771
- } catch {
772
- return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
773
- }
774
- };
775
- function Ue(e) {
776
- const {
777
- type: r,
778
- colorSpace: t
779
- } = e;
780
- let {
781
- values: n
782
- } = e;
783
- return r.includes("rgb") ? n = n.map((o, i) => i < 3 ? parseInt(o, 10) : o) : r.includes("hsl") && (n[1] = `${n[1]}%`, n[2] = `${n[2]}%`), r.includes("color") ? n = `${t} ${n.join(" ")}` : n = `${n.join(", ")}`, `${r}(${n})`;
784
- }
785
- function ot(e) {
786
- e = he(e);
787
- const {
788
- values: r
789
- } = e, t = r[0], n = r[1] / 100, o = r[2] / 100, i = n * Math.min(o, 1 - o), s = (d, g = (d + t / 30) % 12) => o - i * Math.max(Math.min(g - 3, 9 - g, 1), -1);
790
- let u = "rgb";
791
- const f = [Math.round(s(0) * 255), Math.round(s(8) * 255), Math.round(s(4) * 255)];
792
- return e.type === "hsla" && (u += "a", f.push(r[3])), Ue({
793
- type: u,
794
- values: f
795
- });
796
- }
797
- function pr(e) {
798
- e = he(e);
799
- let r = e.type === "hsl" || e.type === "hsla" ? he(ot(e)).values : e.values;
800
- return r = r.map((t) => (e.type !== "color" && (t /= 255), t <= 0.03928 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4)), Number((0.2126 * r[0] + 0.7152 * r[1] + 0.0722 * r[2]).toFixed(3));
801
- }
802
- function Nr(e, r) {
803
- const t = pr(e), n = pr(r);
804
- return (Math.max(t, n) + 0.05) / (Math.min(t, n) + 0.05);
805
- }
806
- function It(e, r) {
807
- return e = he(e), r = hr(r), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${r}` : e.values[3] = r, Ue(e);
808
- }
809
- function De(e, r, t) {
810
- try {
811
- return It(e, r);
812
- } catch {
813
- return e;
814
- }
815
- }
816
- function yr(e, r) {
817
- if (e = he(e), r = hr(r), e.type.includes("hsl"))
818
- e.values[2] *= 1 - r;
819
- else if (e.type.includes("rgb") || e.type.includes("color"))
820
- for (let t = 0; t < 3; t += 1)
821
- e.values[t] *= 1 - r;
822
- return Ue(e);
823
- }
824
- function Y(e, r, t) {
825
- try {
826
- return yr(e, r);
827
- } catch {
828
- return e;
829
- }
830
- }
831
- function br(e, r) {
832
- if (e = he(e), r = hr(r), e.type.includes("hsl"))
833
- e.values[2] += (100 - e.values[2]) * r;
834
- else if (e.type.includes("rgb"))
835
- for (let t = 0; t < 3; t += 1)
836
- e.values[t] += (255 - e.values[t]) * r;
837
- else if (e.type.includes("color"))
838
- for (let t = 0; t < 3; t += 1)
839
- e.values[t] += (1 - e.values[t]) * r;
840
- return Ue(e);
841
- }
842
- function U(e, r, t) {
843
- try {
844
- return br(e, r);
845
- } catch {
846
- return e;
847
- }
848
- }
849
- function Nt(e, r = 0.15) {
850
- return pr(e) > 0.5 ? yr(e, r) : br(e, r);
851
- }
852
- function Be(e, r, t) {
853
- try {
854
- return Nt(e, r);
855
- } catch {
856
- return e;
857
- }
858
- }
859
- function oi(e, r) {
860
- return process.env.NODE_ENV === "production" ? () => null : function(...n) {
861
- return e(...n) || r(...n);
862
- };
863
- }
864
- var Fe = { exports: {} }, L = {};
865
- /**
866
- * @license React
867
- * react-is.production.js
868
- *
869
- * Copyright (c) Meta Platforms, Inc. and affiliates.
870
- *
871
- * This source code is licensed under the MIT license found in the
872
- * LICENSE file in the root directory of this source tree.
873
- */
874
- var Mr;
875
- function Mt() {
876
- if (Mr) return L;
877
- Mr = 1;
878
- var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), t = 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"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), S = Symbol.for("react.client.reference");
879
- function b(c) {
880
- if (typeof c == "object" && c !== null) {
881
- var w = c.$$typeof;
882
- switch (w) {
883
- case e:
884
- switch (c = c.type, c) {
885
- case t:
886
- case o:
887
- case n:
888
- case f:
889
- case d:
890
- return c;
891
- default:
892
- switch (c = c && c.$$typeof, c) {
893
- case s:
894
- case u:
895
- case p:
896
- case g:
897
- return c;
898
- case i:
899
- return c;
900
- default:
901
- return w;
902
- }
903
- }
904
- case r:
905
- return w;
906
- }
907
- }
908
- }
909
- return L.ContextConsumer = i, L.ContextProvider = s, L.Element = e, L.ForwardRef = u, L.Fragment = t, L.Lazy = p, L.Memo = g, L.Portal = r, L.Profiler = o, L.StrictMode = n, L.Suspense = f, L.SuspenseList = d, L.isContextConsumer = function(c) {
910
- return b(c) === i;
911
- }, L.isContextProvider = function(c) {
912
- return b(c) === s;
913
- }, L.isElement = function(c) {
914
- return typeof c == "object" && c !== null && c.$$typeof === e;
915
- }, L.isForwardRef = function(c) {
916
- return b(c) === u;
917
- }, L.isFragment = function(c) {
918
- return b(c) === t;
919
- }, L.isLazy = function(c) {
920
- return b(c) === p;
921
- }, L.isMemo = function(c) {
922
- return b(c) === g;
923
- }, L.isPortal = function(c) {
924
- return b(c) === r;
925
- }, L.isProfiler = function(c) {
926
- return b(c) === o;
927
- }, L.isStrictMode = function(c) {
928
- return b(c) === n;
929
- }, L.isSuspense = function(c) {
930
- return b(c) === f;
931
- }, L.isSuspenseList = function(c) {
932
- return b(c) === d;
933
- }, L.isValidElementType = function(c) {
934
- return typeof c == "string" || typeof c == "function" || c === t || c === o || c === n || c === f || c === d || c === m || typeof c == "object" && c !== null && (c.$$typeof === p || c.$$typeof === g || c.$$typeof === s || c.$$typeof === i || c.$$typeof === u || c.$$typeof === S || c.getModuleId !== void 0);
935
- }, L.typeOf = b, L;
936
- }
937
- var W = {};
938
- /**
939
- * @license React
940
- * react-is.development.js
941
- *
942
- * Copyright (c) Meta Platforms, Inc. and affiliates.
943
- *
944
- * This source code is licensed under the MIT license found in the
945
- * LICENSE file in the root directory of this source tree.
946
- */
947
- var Dr;
948
- function Dt() {
949
- return Dr || (Dr = 1, process.env.NODE_ENV !== "production" && function() {
950
- function e(c) {
951
- if (typeof c == "object" && c !== null) {
952
- var w = c.$$typeof;
953
- switch (w) {
954
- case r:
955
- switch (c = c.type, c) {
956
- case n:
957
- case i:
958
- case o:
959
- case d:
960
- case g:
961
- return c;
962
- default:
963
- switch (c = c && c.$$typeof, c) {
964
- case u:
965
- case f:
966
- case m:
967
- case p:
968
- return c;
969
- case s:
970
- return c;
971
- default:
972
- return w;
973
- }
974
- }
975
- case t:
976
- return w;
977
- }
978
- }
979
- }
980
- var r = Symbol.for("react.transitional.element"), t = 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"), u = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), b = Symbol.for("react.client.reference");
981
- W.ContextConsumer = s, W.ContextProvider = u, W.Element = r, W.ForwardRef = f, W.Fragment = n, W.Lazy = m, W.Memo = p, W.Portal = t, W.Profiler = i, W.StrictMode = o, W.Suspense = d, W.SuspenseList = g, W.isContextConsumer = function(c) {
982
- return e(c) === s;
983
- }, W.isContextProvider = function(c) {
984
- return e(c) === u;
985
- }, W.isElement = function(c) {
986
- return typeof c == "object" && c !== null && c.$$typeof === r;
987
- }, W.isForwardRef = function(c) {
988
- return e(c) === f;
989
- }, W.isFragment = function(c) {
990
- return e(c) === n;
991
- }, W.isLazy = function(c) {
992
- return e(c) === m;
993
- }, W.isMemo = function(c) {
994
- return e(c) === p;
995
- }, W.isPortal = function(c) {
996
- return e(c) === t;
997
- }, W.isProfiler = function(c) {
998
- return e(c) === i;
999
- }, W.isStrictMode = function(c) {
1000
- return e(c) === o;
1001
- }, W.isSuspense = function(c) {
1002
- return e(c) === d;
1003
- }, W.isSuspenseList = function(c) {
1004
- return e(c) === g;
1005
- }, W.isValidElementType = function(c) {
1006
- return typeof c == "string" || typeof c == "function" || c === n || c === i || c === o || c === d || c === g || c === S || typeof c == "object" && c !== null && (c.$$typeof === m || c.$$typeof === p || c.$$typeof === u || c.$$typeof === s || c.$$typeof === f || c.$$typeof === b || c.getModuleId !== void 0);
1007
- }, W.typeOf = e;
1008
- }()), W;
1009
- }
1010
- var Br;
1011
- function Bt() {
1012
- return Br || (Br = 1, process.env.NODE_ENV === "production" ? Fe.exports = /* @__PURE__ */ Mt() : Fe.exports = /* @__PURE__ */ Dt()), Fe.exports;
1013
- }
1014
- var Ve = /* @__PURE__ */ Bt();
1015
- function de(e) {
1016
- if (typeof e != "object" || e === null)
1017
- return !1;
1018
- const r = Object.getPrototypeOf(e);
1019
- return (r === null || r === Object.prototype || Object.getPrototypeOf(r) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
1020
- }
1021
- function it(e) {
1022
- if (/* @__PURE__ */ Ye.isValidElement(e) || Ve.isValidElementType(e) || !de(e))
1023
- return e;
1024
- const r = {};
1025
- return Object.keys(e).forEach((t) => {
1026
- r[t] = it(e[t]);
1027
- }), r;
1028
- }
1029
- function oe(e, r, t = {
1030
- clone: !0
1031
- }) {
1032
- const n = t.clone ? {
1033
- ...e
1034
- } : e;
1035
- return de(e) && de(r) && Object.keys(r).forEach((o) => {
1036
- /* @__PURE__ */ Ye.isValidElement(r[o]) || Ve.isValidElementType(r[o]) ? n[o] = r[o] : de(r[o]) && // Avoid prototype pollution
1037
- Object.prototype.hasOwnProperty.call(e, o) && de(e[o]) ? n[o] = oe(e[o], r[o], t) : t.clone ? n[o] = de(r[o]) ? it(r[o]) : r[o] : n[o] = r[o];
1038
- }), n;
1039
- }
1040
- function at(e, r = "") {
1041
- return e.displayName || e.name || r;
1042
- }
1043
- function Fr(e, r, t) {
1044
- const n = at(r);
1045
- return e.displayName || (n !== "" ? `${t}(${n})` : t);
1046
- }
1047
- function Ft(e) {
1048
- if (e != null) {
1049
- if (typeof e == "string")
1050
- return e;
1051
- if (typeof e == "function")
1052
- return at(e, "Component");
1053
- if (typeof e == "object")
1054
- switch (e.$$typeof) {
1055
- case Ve.ForwardRef:
1056
- return Fr(e, e.render, "ForwardRef");
1057
- case Ve.Memo:
1058
- return Fr(e, e.type, "memo");
1059
- default:
1060
- return;
1061
- }
1062
- }
1063
- }
1064
- function vr(e) {
1065
- if (typeof e != "string")
1066
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : ge(7));
1067
- return e.charAt(0).toUpperCase() + e.slice(1);
1068
- }
1069
- const jr = (e) => e, jt = () => {
1070
- let e = jr;
1071
- return {
1072
- configure(r) {
1073
- e = r;
1074
- },
1075
- generate(r) {
1076
- return e(r);
1077
- },
1078
- reset() {
1079
- e = jr;
1080
- }
1081
- };
1082
- }, Vt = jt(), Lt = {
1083
- active: "active",
1084
- checked: "checked",
1085
- completed: "completed",
1086
- disabled: "disabled",
1087
- error: "error",
1088
- expanded: "expanded",
1089
- focused: "focused",
1090
- focusVisible: "focusVisible",
1091
- open: "open",
1092
- readOnly: "readOnly",
1093
- required: "required",
1094
- selected: "selected"
1095
- };
1096
- function st(e, r, t = "Mui") {
1097
- const n = Lt[r];
1098
- return n ? `${t}-${n}` : `${Vt.generate(e)}-${r}`;
1099
- }
1100
- function ii(e, r, t = "Mui") {
1101
- const n = {};
1102
- return r.forEach((o) => {
1103
- n[o] = st(e, o, t);
1104
- }), n;
1105
- }
1106
- function _e(e, r) {
1107
- return r ? oe(e, r, {
1108
- clone: !1
1109
- // No need to clone deep, it's way faster.
1110
- }) : e;
1111
- }
1112
- const ye = process.env.NODE_ENV !== "production" ? fe.oneOfType([fe.number, fe.string, fe.object, fe.array]) : {};
1113
- function Wt(e, r) {
1114
- if (!e.containerQueries)
1115
- return r;
1116
- const t = Object.keys(r).filter((n) => n.startsWith("@container")).sort((n, o) => {
1117
- var s, u;
1118
- const i = /min-width:\s*([0-9.]+)/;
1119
- return +(((s = n.match(i)) == null ? void 0 : s[1]) || 0) - +(((u = o.match(i)) == null ? void 0 : u[1]) || 0);
1120
- });
1121
- return t.length ? t.reduce((n, o) => {
1122
- const i = r[o];
1123
- return delete n[o], n[o] = i, n;
1124
- }, {
1125
- ...r
1126
- }) : r;
1127
- }
1128
- function Yt(e, r) {
1129
- return r === "@" || r.startsWith("@") && (e.some((t) => r.startsWith(`@${t}`)) || !!r.match(/^@\d/));
1130
- }
1131
- function Ut(e, r) {
1132
- const t = r.match(/^@([^/]+)?\/?(.+)?$/);
1133
- if (!t) {
1134
- if (process.env.NODE_ENV !== "production")
1135
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The provided shorthand ${`(${r})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
1136
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : ge(18, `(${r})`));
1137
- return null;
1138
- }
1139
- const [, n, o] = t, i = Number.isNaN(+n) ? n || 0 : +n;
1140
- return e.containerQueries(o).up(i);
1141
- }
1142
- function zt(e) {
1143
- const r = (i, s) => i.replace("@media", s ? `@container ${s}` : "@container");
1144
- function t(i, s) {
1145
- i.up = (...u) => r(e.breakpoints.up(...u), s), i.down = (...u) => r(e.breakpoints.down(...u), s), i.between = (...u) => r(e.breakpoints.between(...u), s), i.only = (...u) => r(e.breakpoints.only(...u), s), i.not = (...u) => {
1146
- const f = r(e.breakpoints.not(...u), s);
1147
- return f.includes("not all and") ? f.replace("not all and ", "").replace("min-width:", "width<").replace("max-width:", "width>").replace("and", "or") : f;
1148
- };
1149
- }
1150
- const n = {}, o = (i) => (t(n, i), n);
1151
- return t(o), {
1152
- ...e,
1153
- containerQueries: o
1154
- };
1155
- }
1156
- const ze = {
1157
- xs: 0,
1158
- // phone
1159
- sm: 600,
1160
- // tablet
1161
- md: 900,
1162
- // small laptop
1163
- lg: 1200,
1164
- // desktop
1165
- xl: 1536
1166
- // large screen
1167
- }, Vr = {
1168
- // Sorted ASC by size. That's important.
1169
- // It can't be configured as it's used statically for propTypes.
1170
- keys: ["xs", "sm", "md", "lg", "xl"],
1171
- up: (e) => `@media (min-width:${ze[e]}px)`
1172
- }, Gt = {
1173
- containerQueries: (e) => ({
1174
- up: (r) => {
1175
- let t = typeof r == "number" ? r : ze[r] || r;
1176
- return typeof t == "number" && (t = `${t}px`), e ? `@container ${e} (min-width:${t})` : `@container (min-width:${t})`;
1177
- }
1178
- })
1179
- };
1180
- function pe(e, r, t) {
1181
- const n = e.theme || {};
1182
- if (Array.isArray(r)) {
1183
- const i = n.breakpoints || Vr;
1184
- return r.reduce((s, u, f) => (s[i.up(i.keys[f])] = t(r[f]), s), {});
1185
- }
1186
- if (typeof r == "object") {
1187
- const i = n.breakpoints || Vr;
1188
- return Object.keys(r).reduce((s, u) => {
1189
- if (Yt(i.keys, u)) {
1190
- const f = Ut(n.containerQueries ? n : Gt, u);
1191
- f && (s[f] = t(r[u], u));
1192
- } else if (Object.keys(i.values || ze).includes(u)) {
1193
- const f = i.up(u);
1194
- s[f] = t(r[u], u);
1195
- } else {
1196
- const f = u;
1197
- s[f] = r[f];
1198
- }
1199
- return s;
1200
- }, {});
1201
- }
1202
- return t(r);
1203
- }
1204
- function qt(e = {}) {
1205
- var t;
1206
- return ((t = e.keys) == null ? void 0 : t.reduce((n, o) => {
1207
- const i = e.up(o);
1208
- return n[i] = {}, n;
1209
- }, {})) || {};
1210
- }
1211
- function Kt(e, r) {
1212
- return e.reduce((t, n) => {
1213
- const o = t[n];
1214
- return (!o || Object.keys(o).length === 0) && delete t[n], t;
1215
- }, r);
1216
- }
1217
- function Ge(e, r, t = !0) {
1218
- if (!r || typeof r != "string")
1219
- return null;
1220
- if (e && e.vars && t) {
1221
- const n = `vars.${r}`.split(".").reduce((o, i) => o && o[i] ? o[i] : null, e);
1222
- if (n != null)
1223
- return n;
1224
- }
1225
- return r.split(".").reduce((n, o) => n && n[o] != null ? n[o] : null, e);
1226
- }
1227
- function Le(e, r, t, n = t) {
1228
- let o;
1229
- return typeof e == "function" ? o = e(t) : Array.isArray(e) ? o = e[t] || n : o = Ge(e, t) || n, r && (o = r(o, n, e)), o;
1230
- }
1231
- function Q(e) {
1232
- const {
1233
- prop: r,
1234
- cssProperty: t = e.prop,
1235
- themeKey: n,
1236
- transform: o
1237
- } = e, i = (s) => {
1238
- if (s[r] == null)
1239
- return null;
1240
- const u = s[r], f = s.theme, d = Ge(f, n) || {};
1241
- return pe(s, u, (p) => {
1242
- let m = Le(d, o, p);
1243
- return p === m && typeof p == "string" && (m = Le(d, o, `${r}${p === "default" ? "" : vr(p)}`, p)), t === !1 ? m : {
1244
- [t]: m
1245
- };
1246
- });
1247
- };
1248
- return i.propTypes = process.env.NODE_ENV !== "production" ? {
1249
- [r]: ye
1250
- } : {}, i.filterProps = [r], i;
1251
- }
1252
- function Ht(e) {
1253
- const r = {};
1254
- return (t) => (r[t] === void 0 && (r[t] = e(t)), r[t]);
1255
- }
1256
- const Qt = {
1257
- m: "margin",
1258
- p: "padding"
1259
- }, Xt = {
1260
- t: "Top",
1261
- r: "Right",
1262
- b: "Bottom",
1263
- l: "Left",
1264
- x: ["Left", "Right"],
1265
- y: ["Top", "Bottom"]
1266
- }, Lr = {
1267
- marginX: "mx",
1268
- marginY: "my",
1269
- paddingX: "px",
1270
- paddingY: "py"
1271
- }, Jt = Ht((e) => {
1272
- if (e.length > 2)
1273
- if (Lr[e])
1274
- e = Lr[e];
1275
- else
1276
- return [e];
1277
- const [r, t] = e.split(""), n = Qt[r], o = Xt[t] || "";
1278
- return Array.isArray(o) ? o.map((i) => n + i) : [n + o];
1279
- }), qe = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], Ke = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], Zt = [...qe, ...Ke];
1280
- function Re(e, r, t, n) {
1281
- const o = Ge(e, r, !0) ?? t;
1282
- 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" ? `calc(${i} * ${o})` : o * i) : Array.isArray(o) ? (i) => {
1283
- if (typeof i == "string")
1284
- return i;
1285
- const s = Math.abs(i);
1286
- 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(`
1287
- `)) : console.error([`MUI: The \`theme.${r}\` 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.${r}\` as a number.`].join(`
1288
- `)));
1289
- const u = o[s];
1290
- return i >= 0 ? u : typeof u == "number" ? -u : `-${u}`;
1291
- } : typeof o == "function" ? o : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${r}\` value (${o}) is invalid.`, "It should be a number, an array or a function."].join(`
1292
- `)), () => {
1293
- });
1294
- }
1295
- function Sr(e) {
1296
- return Re(e, "spacing", 8, "spacing");
1297
- }
1298
- function ke(e, r) {
1299
- return typeof r == "string" || r == null ? r : e(r);
1300
- }
1301
- function en(e, r) {
1302
- return (t) => e.reduce((n, o) => (n[o] = ke(r, t), n), {});
1303
- }
1304
- function rn(e, r, t, n) {
1305
- if (!r.includes(t))
1306
- return null;
1307
- const o = Jt(t), i = en(o, n), s = e[t];
1308
- return pe(e, s, i);
1309
- }
1310
- function ct(e, r) {
1311
- const t = Sr(e.theme);
1312
- return Object.keys(e).map((n) => rn(e, r, n, t)).reduce(_e, {});
1313
- }
1314
- function q(e) {
1315
- return ct(e, qe);
1316
- }
1317
- q.propTypes = process.env.NODE_ENV !== "production" ? qe.reduce((e, r) => (e[r] = ye, e), {}) : {};
1318
- q.filterProps = qe;
1319
- function K(e) {
1320
- return ct(e, Ke);
1321
- }
1322
- K.propTypes = process.env.NODE_ENV !== "production" ? Ke.reduce((e, r) => (e[r] = ye, e), {}) : {};
1323
- K.filterProps = Ke;
1324
- process.env.NODE_ENV !== "production" && Zt.reduce((e, r) => (e[r] = ye, e), {});
1325
- function He(...e) {
1326
- const r = e.reduce((n, o) => (o.filterProps.forEach((i) => {
1327
- n[i] = o;
1328
- }), n), {}), t = (n) => Object.keys(n).reduce((o, i) => r[i] ? _e(o, r[i](n)) : o, {});
1329
- return t.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((n, o) => Object.assign(n, o.propTypes), {}) : {}, t.filterProps = e.reduce((n, o) => n.concat(o.filterProps), []), t;
1330
- }
1331
- function ie(e) {
1332
- return typeof e != "number" ? e : `${e}px solid`;
1333
- }
1334
- function ae(e, r) {
1335
- return Q({
1336
- prop: e,
1337
- themeKey: "borders",
1338
- transform: r
1339
- });
1340
- }
1341
- const tn = ae("border", ie), nn = ae("borderTop", ie), on = ae("borderRight", ie), an = ae("borderBottom", ie), sn = ae("borderLeft", ie), cn = ae("borderColor"), un = ae("borderTopColor"), ln = ae("borderRightColor"), fn = ae("borderBottomColor"), dn = ae("borderLeftColor"), pn = ae("outline", ie), mn = ae("outlineColor"), Qe = (e) => {
1342
- if (e.borderRadius !== void 0 && e.borderRadius !== null) {
1343
- const r = Re(e.theme, "shape.borderRadius", 4, "borderRadius"), t = (n) => ({
1344
- borderRadius: ke(r, n)
1345
- });
1346
- return pe(e, e.borderRadius, t);
1347
- }
1348
- return null;
1349
- };
1350
- Qe.propTypes = process.env.NODE_ENV !== "production" ? {
1351
- borderRadius: ye
1352
- } : {};
1353
- Qe.filterProps = ["borderRadius"];
1354
- He(tn, nn, on, an, sn, cn, un, ln, fn, dn, Qe, pn, mn);
1355
- const Xe = (e) => {
1356
- if (e.gap !== void 0 && e.gap !== null) {
1357
- const r = Re(e.theme, "spacing", 8, "gap"), t = (n) => ({
1358
- gap: ke(r, n)
1359
- });
1360
- return pe(e, e.gap, t);
1361
- }
1362
- return null;
1363
- };
1364
- Xe.propTypes = process.env.NODE_ENV !== "production" ? {
1365
- gap: ye
1366
- } : {};
1367
- Xe.filterProps = ["gap"];
1368
- const Je = (e) => {
1369
- if (e.columnGap !== void 0 && e.columnGap !== null) {
1370
- const r = Re(e.theme, "spacing", 8, "columnGap"), t = (n) => ({
1371
- columnGap: ke(r, n)
1372
- });
1373
- return pe(e, e.columnGap, t);
1374
- }
1375
- return null;
1376
- };
1377
- Je.propTypes = process.env.NODE_ENV !== "production" ? {
1378
- columnGap: ye
1379
- } : {};
1380
- Je.filterProps = ["columnGap"];
1381
- const Ze = (e) => {
1382
- if (e.rowGap !== void 0 && e.rowGap !== null) {
1383
- const r = Re(e.theme, "spacing", 8, "rowGap"), t = (n) => ({
1384
- rowGap: ke(r, n)
1385
- });
1386
- return pe(e, e.rowGap, t);
1387
- }
1388
- return null;
1389
- };
1390
- Ze.propTypes = process.env.NODE_ENV !== "production" ? {
1391
- rowGap: ye
1392
- } : {};
1393
- Ze.filterProps = ["rowGap"];
1394
- const gn = Q({
1395
- prop: "gridColumn"
1396
- }), hn = Q({
1397
- prop: "gridRow"
1398
- }), yn = Q({
1399
- prop: "gridAutoFlow"
1400
- }), bn = Q({
1401
- prop: "gridAutoColumns"
1402
- }), vn = Q({
1403
- prop: "gridAutoRows"
1404
- }), Sn = Q({
1405
- prop: "gridTemplateColumns"
1406
- }), En = Q({
1407
- prop: "gridTemplateRows"
1408
- }), Cn = Q({
1409
- prop: "gridTemplateAreas"
1410
- }), Tn = Q({
1411
- prop: "gridArea"
1412
- });
1413
- He(Xe, Je, Ze, gn, hn, yn, bn, vn, Sn, En, Cn, Tn);
1414
- function we(e, r) {
1415
- return r === "grey" ? r : e;
1416
- }
1417
- const wn = Q({
1418
- prop: "color",
1419
- themeKey: "palette",
1420
- transform: we
1421
- }), xn = Q({
1422
- prop: "bgcolor",
1423
- cssProperty: "backgroundColor",
1424
- themeKey: "palette",
1425
- transform: we
1426
- }), $n = Q({
1427
- prop: "backgroundColor",
1428
- themeKey: "palette",
1429
- transform: we
1430
- });
1431
- He(wn, xn, $n);
1432
- function ne(e) {
1433
- return e <= 1 && e !== 0 ? `${e * 100}%` : e;
1434
- }
1435
- const On = Q({
1436
- prop: "width",
1437
- transform: ne
1438
- }), Er = (e) => {
1439
- if (e.maxWidth !== void 0 && e.maxWidth !== null) {
1440
- const r = (t) => {
1441
- var o, i, s, u, f;
1442
- const n = ((s = (i = (o = e.theme) == null ? void 0 : o.breakpoints) == null ? void 0 : i.values) == null ? void 0 : s[t]) || ze[t];
1443
- return n ? ((f = (u = e.theme) == null ? void 0 : u.breakpoints) == null ? void 0 : f.unit) !== "px" ? {
1444
- maxWidth: `${n}${e.theme.breakpoints.unit}`
1445
- } : {
1446
- maxWidth: n
1447
- } : {
1448
- maxWidth: ne(t)
1449
- };
1450
- };
1451
- return pe(e, e.maxWidth, r);
1452
- }
1453
- return null;
1454
- };
1455
- Er.filterProps = ["maxWidth"];
1456
- const An = Q({
1457
- prop: "minWidth",
1458
- transform: ne
1459
- }), _n = Q({
1460
- prop: "height",
1461
- transform: ne
1462
- }), Pn = Q({
1463
- prop: "maxHeight",
1464
- transform: ne
1465
- }), Rn = Q({
1466
- prop: "minHeight",
1467
- transform: ne
1468
- });
1469
- Q({
1470
- prop: "size",
1471
- cssProperty: "width",
1472
- transform: ne
1473
- });
1474
- Q({
1475
- prop: "size",
1476
- cssProperty: "height",
1477
- transform: ne
1478
- });
1479
- const kn = Q({
1480
- prop: "boxSizing"
1481
- });
1482
- He(On, Er, An, _n, Pn, Rn, kn);
1483
- const er = {
1484
- // borders
1485
- border: {
1486
- themeKey: "borders",
1487
- transform: ie
1488
- },
1489
- borderTop: {
1490
- themeKey: "borders",
1491
- transform: ie
1492
- },
1493
- borderRight: {
1494
- themeKey: "borders",
1495
- transform: ie
1496
- },
1497
- borderBottom: {
1498
- themeKey: "borders",
1499
- transform: ie
1500
- },
1501
- borderLeft: {
1502
- themeKey: "borders",
1503
- transform: ie
1504
- },
1505
- borderColor: {
1506
- themeKey: "palette"
1507
- },
1508
- borderTopColor: {
1509
- themeKey: "palette"
1510
- },
1511
- borderRightColor: {
1512
- themeKey: "palette"
1513
- },
1514
- borderBottomColor: {
1515
- themeKey: "palette"
1516
- },
1517
- borderLeftColor: {
1518
- themeKey: "palette"
1519
- },
1520
- outline: {
1521
- themeKey: "borders",
1522
- transform: ie
1523
- },
1524
- outlineColor: {
1525
- themeKey: "palette"
1526
- },
1527
- borderRadius: {
1528
- themeKey: "shape.borderRadius",
1529
- style: Qe
1530
- },
1531
- // palette
1532
- color: {
1533
- themeKey: "palette",
1534
- transform: we
1535
- },
1536
- bgcolor: {
1537
- themeKey: "palette",
1538
- cssProperty: "backgroundColor",
1539
- transform: we
1540
- },
1541
- backgroundColor: {
1542
- themeKey: "palette",
1543
- transform: we
1544
- },
1545
- // spacing
1546
- p: {
1547
- style: K
1548
- },
1549
- pt: {
1550
- style: K
1551
- },
1552
- pr: {
1553
- style: K
1554
- },
1555
- pb: {
1556
- style: K
1557
- },
1558
- pl: {
1559
- style: K
1560
- },
1561
- px: {
1562
- style: K
1563
- },
1564
- py: {
1565
- style: K
1566
- },
1567
- padding: {
1568
- style: K
1569
- },
1570
- paddingTop: {
1571
- style: K
1572
- },
1573
- paddingRight: {
1574
- style: K
1575
- },
1576
- paddingBottom: {
1577
- style: K
1578
- },
1579
- paddingLeft: {
1580
- style: K
1581
- },
1582
- paddingX: {
1583
- style: K
1584
- },
1585
- paddingY: {
1586
- style: K
1587
- },
1588
- paddingInline: {
1589
- style: K
1590
- },
1591
- paddingInlineStart: {
1592
- style: K
1593
- },
1594
- paddingInlineEnd: {
1595
- style: K
1596
- },
1597
- paddingBlock: {
1598
- style: K
1599
- },
1600
- paddingBlockStart: {
1601
- style: K
1602
- },
1603
- paddingBlockEnd: {
1604
- style: K
1605
- },
1606
- m: {
1607
- style: q
1608
- },
1609
- mt: {
1610
- style: q
1611
- },
1612
- mr: {
1613
- style: q
1614
- },
1615
- mb: {
1616
- style: q
1617
- },
1618
- ml: {
1619
- style: q
1620
- },
1621
- mx: {
1622
- style: q
1623
- },
1624
- my: {
1625
- style: q
1626
- },
1627
- margin: {
1628
- style: q
1629
- },
1630
- marginTop: {
1631
- style: q
1632
- },
1633
- marginRight: {
1634
- style: q
1635
- },
1636
- marginBottom: {
1637
- style: q
1638
- },
1639
- marginLeft: {
1640
- style: q
1641
- },
1642
- marginX: {
1643
- style: q
1644
- },
1645
- marginY: {
1646
- style: q
1647
- },
1648
- marginInline: {
1649
- style: q
1650
- },
1651
- marginInlineStart: {
1652
- style: q
1653
- },
1654
- marginInlineEnd: {
1655
- style: q
1656
- },
1657
- marginBlock: {
1658
- style: q
1659
- },
1660
- marginBlockStart: {
1661
- style: q
1662
- },
1663
- marginBlockEnd: {
1664
- style: q
1665
- },
1666
- // display
1667
- displayPrint: {
1668
- cssProperty: !1,
1669
- transform: (e) => ({
1670
- "@media print": {
1671
- display: e
1672
- }
1673
- })
1674
- },
1675
- display: {},
1676
- overflow: {},
1677
- textOverflow: {},
1678
- visibility: {},
1679
- whiteSpace: {},
1680
- // flexbox
1681
- flexBasis: {},
1682
- flexDirection: {},
1683
- flexWrap: {},
1684
- justifyContent: {},
1685
- alignItems: {},
1686
- alignContent: {},
1687
- order: {},
1688
- flex: {},
1689
- flexGrow: {},
1690
- flexShrink: {},
1691
- alignSelf: {},
1692
- justifyItems: {},
1693
- justifySelf: {},
1694
- // grid
1695
- gap: {
1696
- style: Xe
1697
- },
1698
- rowGap: {
1699
- style: Ze
1700
- },
1701
- columnGap: {
1702
- style: Je
1703
- },
1704
- gridColumn: {},
1705
- gridRow: {},
1706
- gridAutoFlow: {},
1707
- gridAutoColumns: {},
1708
- gridAutoRows: {},
1709
- gridTemplateColumns: {},
1710
- gridTemplateRows: {},
1711
- gridTemplateAreas: {},
1712
- gridArea: {},
1713
- // positions
1714
- position: {},
1715
- zIndex: {
1716
- themeKey: "zIndex"
1717
- },
1718
- top: {},
1719
- right: {},
1720
- bottom: {},
1721
- left: {},
1722
- // shadows
1723
- boxShadow: {
1724
- themeKey: "shadows"
1725
- },
1726
- // sizing
1727
- width: {
1728
- transform: ne
1729
- },
1730
- maxWidth: {
1731
- style: Er
1732
- },
1733
- minWidth: {
1734
- transform: ne
1735
- },
1736
- height: {
1737
- transform: ne
1738
- },
1739
- maxHeight: {
1740
- transform: ne
1741
- },
1742
- minHeight: {
1743
- transform: ne
1744
- },
1745
- boxSizing: {},
1746
- // typography
1747
- font: {
1748
- themeKey: "font"
1749
- },
1750
- fontFamily: {
1751
- themeKey: "typography"
1752
- },
1753
- fontSize: {
1754
- themeKey: "typography"
1755
- },
1756
- fontStyle: {
1757
- themeKey: "typography"
1758
- },
1759
- fontWeight: {
1760
- themeKey: "typography"
1761
- },
1762
- letterSpacing: {},
1763
- textTransform: {},
1764
- lineHeight: {},
1765
- textAlign: {},
1766
- typography: {
1767
- cssProperty: !1,
1768
- themeKey: "typography"
1769
- }
1770
- };
1771
- function In(...e) {
1772
- const r = e.reduce((n, o) => n.concat(Object.keys(o)), []), t = new Set(r);
1773
- return e.every((n) => t.size === Object.keys(n).length);
1774
- }
1775
- function Nn(e, r) {
1776
- return typeof e == "function" ? e(r) : e;
1777
- }
1778
- function Mn() {
1779
- function e(t, n, o, i) {
1780
- const s = {
1781
- [t]: n,
1782
- theme: o
1783
- }, u = i[t];
1784
- if (!u)
1785
- return {
1786
- [t]: n
1787
- };
1788
- const {
1789
- cssProperty: f = t,
1790
- themeKey: d,
1791
- transform: g,
1792
- style: p
1793
- } = u;
1794
- if (n == null)
1795
- return null;
1796
- if (d === "typography" && n === "inherit")
1797
- return {
1798
- [t]: n
1799
- };
1800
- const m = Ge(o, d) || {};
1801
- return p ? p(s) : pe(s, n, (b) => {
1802
- let c = Le(m, g, b);
1803
- return b === c && typeof b == "string" && (c = Le(m, g, `${t}${b === "default" ? "" : vr(b)}`, b)), f === !1 ? c : {
1804
- [f]: c
1805
- };
1806
- });
1807
- }
1808
- function r(t) {
1809
- const {
1810
- sx: n,
1811
- theme: o = {}
1812
- } = t || {};
1813
- if (!n)
1814
- return null;
1815
- const i = o.unstable_sxConfig ?? er;
1816
- function s(u) {
1817
- let f = u;
1818
- if (typeof u == "function")
1819
- f = u(o);
1820
- else if (typeof u != "object")
1821
- return u;
1822
- if (!f)
1823
- return null;
1824
- const d = qt(o.breakpoints), g = Object.keys(d);
1825
- let p = d;
1826
- return Object.keys(f).forEach((m) => {
1827
- const S = Nn(f[m], o);
1828
- if (S != null)
1829
- if (typeof S == "object")
1830
- if (i[m])
1831
- p = _e(p, e(m, S, o, i));
1832
- else {
1833
- const b = pe({
1834
- theme: o
1835
- }, S, (c) => ({
1836
- [m]: c
1837
- }));
1838
- In(b, S) ? p[m] = r({
1839
- sx: S,
1840
- theme: o
1841
- }) : p = _e(p, b);
1842
- }
1843
- else
1844
- p = _e(p, e(m, S, o, i));
1845
- }), Wt(o, Kt(g, p));
1846
- }
1847
- return Array.isArray(n) ? n.map(s) : s(n);
1848
- }
1849
- return r;
1850
- }
1851
- const xe = Mn();
1852
- xe.filterProps = ["sx"];
1853
- function Dn(e) {
1854
- for (var r = 0, t, n = 0, o = e.length; o >= 4; ++n, o -= 4)
1855
- t = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, t = /* Math.imul(k, m): */
1856
- (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */
1857
- t >>> 24, r = /* Math.imul(k, m): */
1858
- (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
1859
- (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
1860
- switch (o) {
1861
- case 3:
1862
- r ^= (e.charCodeAt(n + 2) & 255) << 16;
1863
- case 2:
1864
- r ^= (e.charCodeAt(n + 1) & 255) << 8;
1865
- case 1:
1866
- r ^= e.charCodeAt(n) & 255, r = /* Math.imul(h, m): */
1867
- (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
1868
- }
1869
- return r ^= r >>> 13, r = /* Math.imul(h, m): */
1870
- (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), ((r ^ r >>> 15) >>> 0).toString(36);
1871
- }
1872
- var Bn = {
1873
- animationIterationCount: 1,
1874
- aspectRatio: 1,
1875
- borderImageOutset: 1,
1876
- borderImageSlice: 1,
1877
- borderImageWidth: 1,
1878
- boxFlex: 1,
1879
- boxFlexGroup: 1,
1880
- boxOrdinalGroup: 1,
1881
- columnCount: 1,
1882
- columns: 1,
1883
- flex: 1,
1884
- flexGrow: 1,
1885
- flexPositive: 1,
1886
- flexShrink: 1,
1887
- flexNegative: 1,
1888
- flexOrder: 1,
1889
- gridRow: 1,
1890
- gridRowEnd: 1,
1891
- gridRowSpan: 1,
1892
- gridRowStart: 1,
1893
- gridColumn: 1,
1894
- gridColumnEnd: 1,
1895
- gridColumnSpan: 1,
1896
- gridColumnStart: 1,
1897
- msGridRow: 1,
1898
- msGridRowSpan: 1,
1899
- msGridColumn: 1,
1900
- msGridColumnSpan: 1,
1901
- fontWeight: 1,
1902
- lineHeight: 1,
1903
- opacity: 1,
1904
- order: 1,
1905
- orphans: 1,
1906
- scale: 1,
1907
- tabSize: 1,
1908
- widows: 1,
1909
- zIndex: 1,
1910
- zoom: 1,
1911
- WebkitLineClamp: 1,
1912
- // SVG-related properties
1913
- fillOpacity: 1,
1914
- floodOpacity: 1,
1915
- stopOpacity: 1,
1916
- strokeDasharray: 1,
1917
- strokeDashoffset: 1,
1918
- strokeMiterlimit: 1,
1919
- strokeOpacity: 1,
1920
- strokeWidth: 1
1921
- };
1922
- function Fn(e) {
1923
- var r = /* @__PURE__ */ Object.create(null);
1924
- return function(t) {
1925
- return r[t] === void 0 && (r[t] = e(t)), r[t];
1926
- };
1927
- }
1928
- var jn = /[A-Z]|^ms/g, Vn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ut = function(r) {
1929
- return r.charCodeAt(1) === 45;
1930
- }, Wr = function(r) {
1931
- return r != null && typeof r != "boolean";
1932
- }, cr = /* @__PURE__ */ Fn(function(e) {
1933
- return ut(e) ? e : e.replace(jn, "-$&").toLowerCase();
1934
- }), Yr = function(r, t) {
1935
- switch (r) {
1936
- case "animation":
1937
- case "animationName":
1938
- if (typeof t == "string")
1939
- return t.replace(Vn, function(n, o, i) {
1940
- return me = {
1941
- name: o,
1942
- styles: i,
1943
- next: me
1944
- }, o;
1945
- });
1946
- }
1947
- return Bn[r] !== 1 && !ut(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
1948
- };
1949
- function We(e, r, t) {
1950
- if (t == null)
1951
- return "";
1952
- var n = t;
1953
- if (n.__emotion_styles !== void 0)
1954
- return n;
1955
- switch (typeof t) {
1956
- case "boolean":
1957
- return "";
1958
- case "object": {
1959
- var o = t;
1960
- if (o.anim === 1)
1961
- return me = {
1962
- name: o.name,
1963
- styles: o.styles,
1964
- next: me
1965
- }, o.name;
1966
- var i = t;
1967
- if (i.styles !== void 0) {
1968
- var s = i.next;
1969
- if (s !== void 0)
1970
- for (; s !== void 0; )
1971
- me = {
1972
- name: s.name,
1973
- styles: s.styles,
1974
- next: me
1975
- }, s = s.next;
1976
- var u = i.styles + ";";
1977
- return u;
1978
- }
1979
- return Ln(e, r, t);
1980
- }
1981
- }
1982
- var f = t;
1983
- return f;
1984
- }
1985
- function Ln(e, r, t) {
1986
- var n = "";
1987
- if (Array.isArray(t))
1988
- for (var o = 0; o < t.length; o++)
1989
- n += We(e, r, t[o]) + ";";
1990
- else
1991
- for (var i in t) {
1992
- var s = t[i];
1993
- if (typeof s != "object") {
1994
- var u = s;
1995
- Wr(u) && (n += cr(i) + ":" + Yr(i, u) + ";");
1996
- } else if (Array.isArray(s) && typeof s[0] == "string" && r == null)
1997
- for (var f = 0; f < s.length; f++)
1998
- Wr(s[f]) && (n += cr(i) + ":" + Yr(i, s[f]) + ";");
1999
- else {
2000
- var d = We(e, r, s);
2001
- switch (i) {
2002
- case "animation":
2003
- case "animationName": {
2004
- n += cr(i) + ":" + d + ";";
2005
- break;
2006
- }
2007
- default:
2008
- n += i + "{" + d + "}";
2009
- }
2010
- }
2011
- }
2012
- return n;
2013
- }
2014
- var Ur = /label:\s*([^\s;{]+)\s*(;|$)/g, me;
2015
- function Wn(e, r, t) {
2016
- if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
2017
- return e[0];
2018
- var n = !0, o = "";
2019
- me = void 0;
2020
- var i = e[0];
2021
- if (i == null || i.raw === void 0)
2022
- n = !1, o += We(t, r, i);
2023
- else {
2024
- var s = i;
2025
- o += s[0];
2026
- }
2027
- for (var u = 1; u < e.length; u++)
2028
- if (o += We(t, r, e[u]), n) {
2029
- var f = i;
2030
- o += f[u];
2031
- }
2032
- Ur.lastIndex = 0;
2033
- for (var d = "", g; (g = Ur.exec(o)) !== null; )
2034
- d += "-" + g[1];
2035
- var p = Dn(o) + d;
2036
- return {
2037
- name: p,
2038
- styles: o,
2039
- next: me
2040
- };
2041
- }
2042
- /**
2043
- * @mui/styled-engine v6.4.3
2044
- *
2045
- * @license MIT
2046
- * This source code is licensed under the MIT license found in the
2047
- * LICENSE file in the root directory of this source tree.
2048
- */
2049
- function Yn(e, r) {
2050
- const t = St(e, r);
2051
- return process.env.NODE_ENV !== "production" ? (...n) => {
2052
- const o = typeof e == "string" ? `"${e}"` : "component";
2053
- 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(`
2054
- `)) : n.some((i) => i === void 0) && console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`), t(...n);
2055
- } : t;
2056
- }
2057
- function Un(e, r) {
2058
- Array.isArray(e.__emotion_styles) && (e.__emotion_styles = r(e.__emotion_styles));
2059
- }
2060
- const zr = [];
2061
- function Gr(e) {
2062
- return zr[0] = e, Wn(zr);
2063
- }
2064
- const zn = (e) => {
2065
- const r = Object.keys(e).map((t) => ({
2066
- key: t,
2067
- val: e[t]
2068
- })) || [];
2069
- return r.sort((t, n) => t.val - n.val), r.reduce((t, n) => ({
2070
- ...t,
2071
- [n.key]: n.val
2072
- }), {});
2073
- };
2074
- function Gn(e) {
2075
- const {
2076
- // The breakpoint **start** at this value.
2077
- // For instance with the first breakpoint xs: [xs, sm).
2078
- values: r = {
2079
- xs: 0,
2080
- // phone
2081
- sm: 600,
2082
- // tablet
2083
- md: 900,
2084
- // small laptop
2085
- lg: 1200,
2086
- // desktop
2087
- xl: 1536
2088
- // large screen
2089
- },
2090
- unit: t = "px",
2091
- step: n = 5,
2092
- ...o
2093
- } = e, i = zn(r), s = Object.keys(i);
2094
- function u(m) {
2095
- return `@media (min-width:${typeof r[m] == "number" ? r[m] : m}${t})`;
2096
- }
2097
- function f(m) {
2098
- return `@media (max-width:${(typeof r[m] == "number" ? r[m] : m) - n / 100}${t})`;
2099
- }
2100
- function d(m, S) {
2101
- const b = s.indexOf(S);
2102
- return `@media (min-width:${typeof r[m] == "number" ? r[m] : m}${t}) and (max-width:${(b !== -1 && typeof r[s[b]] == "number" ? r[s[b]] : S) - n / 100}${t})`;
2103
- }
2104
- function g(m) {
2105
- return s.indexOf(m) + 1 < s.length ? d(m, s[s.indexOf(m) + 1]) : u(m);
2106
- }
2107
- function p(m) {
2108
- const S = s.indexOf(m);
2109
- return S === 0 ? u(s[1]) : S === s.length - 1 ? f(s[S]) : d(m, s[s.indexOf(m) + 1]).replace("@media", "@media not all and");
2110
- }
2111
- return {
2112
- keys: s,
2113
- values: i,
2114
- up: u,
2115
- down: f,
2116
- between: d,
2117
- only: g,
2118
- not: p,
2119
- unit: t,
2120
- ...o
2121
- };
2122
- }
2123
- const qn = {
2124
- borderRadius: 4
2125
- };
2126
- function lt(e = 8, r = Sr({
2127
- spacing: e
2128
- })) {
2129
- if (e.mui)
2130
- return e;
2131
- const t = (...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) => {
2132
- const s = r(i);
2133
- return typeof s == "number" ? `${s}px` : s;
2134
- }).join(" "));
2135
- return t.mui = !0, t;
2136
- }
2137
- function Kn(e, r) {
2138
- var n;
2139
- const t = this;
2140
- if (t.vars) {
2141
- if (!((n = t.colorSchemes) != null && n[e]) || typeof t.getColorSchemeSelector != "function")
2142
- return {};
2143
- let o = t.getColorSchemeSelector(e);
2144
- return o === "&" ? r : ((o.includes("data-") || o.includes(".")) && (o = `*:where(${o.replace(/\s*&$/, "")}) &`), {
2145
- [o]: r
2146
- });
2147
- }
2148
- return t.palette.mode === e ? r : {};
2149
- }
2150
- function ft(e = {}, ...r) {
2151
- const {
2152
- breakpoints: t = {},
2153
- palette: n = {},
2154
- spacing: o,
2155
- shape: i = {},
2156
- ...s
2157
- } = e, u = Gn(t), f = lt(o);
2158
- let d = oe({
2159
- breakpoints: u,
2160
- direction: "ltr",
2161
- components: {},
2162
- // Inject component definitions.
2163
- palette: {
2164
- mode: "light",
2165
- ...n
2166
- },
2167
- spacing: f,
2168
- shape: {
2169
- ...qn,
2170
- ...i
2171
- }
2172
- }, s);
2173
- return d = zt(d), d.applyStyles = Kn, d = r.reduce((g, p) => oe(g, p), d), d.unstable_sxConfig = {
2174
- ...er,
2175
- ...s == null ? void 0 : s.unstable_sxConfig
2176
- }, d.unstable_sx = function(p) {
2177
- return xe({
2178
- sx: p,
2179
- theme: this
2180
- });
2181
- }, d;
2182
- }
2183
- function dt(e) {
2184
- const {
2185
- variants: r,
2186
- ...t
2187
- } = e, n = {
2188
- variants: r,
2189
- style: Gr(t),
2190
- isProcessed: !0
2191
- };
2192
- return n.style === t || r && r.forEach((o) => {
2193
- typeof o.style != "function" && (o.style = Gr(o.style));
2194
- }), n;
2195
- }
2196
- const Hn = ft();
2197
- function ur(e) {
2198
- return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
2199
- }
2200
- function Qn(e) {
2201
- return e ? (r, t) => t[e] : null;
2202
- }
2203
- function Xn(e, r, t) {
2204
- e.theme = ro(e.theme) ? t : e.theme[r] || e.theme;
2205
- }
2206
- function je(e, r) {
2207
- const t = typeof r == "function" ? r(e) : r;
2208
- if (Array.isArray(t))
2209
- return t.flatMap((n) => je(e, n));
2210
- if (Array.isArray(t == null ? void 0 : t.variants)) {
2211
- let n;
2212
- if (t.isProcessed)
2213
- n = t.style;
2214
- else {
2215
- const {
2216
- variants: o,
2217
- ...i
2218
- } = t;
2219
- n = i;
2220
- }
2221
- return pt(e, t.variants, [n]);
2222
- }
2223
- return t != null && t.isProcessed ? t.style : t;
2224
- }
2225
- function pt(e, r, t = []) {
2226
- var o;
2227
- let n;
2228
- e: for (let i = 0; i < r.length; i += 1) {
2229
- const s = r[i];
2230
- if (typeof s.props == "function") {
2231
- if (n ?? (n = {
2232
- ...e,
2233
- ...e.ownerState,
2234
- ownerState: e.ownerState
2235
- }), !s.props(n))
2236
- continue;
2237
- } else
2238
- for (const u in s.props)
2239
- if (e[u] !== s.props[u] && ((o = e.ownerState) == null ? void 0 : o[u]) !== s.props[u])
2240
- continue e;
2241
- typeof s.style == "function" ? (n ?? (n = {
2242
- ...e,
2243
- ...e.ownerState,
2244
- ownerState: e.ownerState
2245
- }), t.push(s.style(n))) : t.push(s.style);
2246
- }
2247
- return t;
2248
- }
2249
- function Jn(e = {}) {
2250
- const {
2251
- themeId: r,
2252
- defaultTheme: t = Hn,
2253
- rootShouldForwardProp: n = ur,
2254
- slotShouldForwardProp: o = ur
2255
- } = e;
2256
- function i(u) {
2257
- Xn(u, r, t);
2258
- }
2259
- return (u, f = {}) => {
2260
- Un(u, (h) => h.filter((j) => j !== xe));
2261
- const {
2262
- name: d,
2263
- slot: g,
2264
- skipVariantsResolver: p,
2265
- skipSx: m,
2266
- // TODO v6: remove `lowercaseFirstLetter()` in the next major release
2267
- // For more details: https://github.com/mui/material-ui/pull/37908
2268
- overridesResolver: S = Qn(mt(g)),
2269
- ...b
2270
- } = f, c = p !== void 0 ? p : (
2271
- // TODO v6: remove `Root` in the next major release
2272
- // For more details: https://github.com/mui/material-ui/pull/37908
2273
- g && g !== "Root" && g !== "root" || !1
2274
- ), w = m || !1;
2275
- let $ = ur;
2276
- g === "Root" || g === "root" ? $ = n : g ? $ = o : to(u) && ($ = void 0);
2277
- const H = Yn(u, {
2278
- shouldForwardProp: $,
2279
- label: eo(d, g),
2280
- ...b
2281
- }), x = (h) => {
2282
- if (typeof h == "function" && h.__emotion_real !== h)
2283
- return function(X) {
2284
- return je(X, h);
2285
- };
2286
- if (de(h)) {
2287
- const j = dt(h);
2288
- return j.variants ? function(J) {
2289
- return je(J, j);
2290
- } : j.style;
2291
- }
2292
- return h;
2293
- }, T = (...h) => {
2294
- const j = [], X = h.map(x), J = [];
2295
- if (j.push(i), d && S && J.push(function(O) {
2296
- var ee, se;
2297
- const G = (se = (ee = O.theme.components) == null ? void 0 : ee[d]) == null ? void 0 : se.styleOverrides;
2298
- if (!G)
2299
- return null;
2300
- const re = {};
2301
- for (const be in G)
2302
- re[be] = je(O, G[be]);
2303
- return S(O, re);
2304
- }), d && !c && J.push(function(O) {
2305
- var re, ee;
2306
- const D = O.theme, G = (ee = (re = D == null ? void 0 : D.components) == null ? void 0 : re[d]) == null ? void 0 : ee.variants;
2307
- return G ? pt(O, G) : null;
2308
- }), w || J.push(xe), Array.isArray(X[0])) {
2309
- const C = X.shift(), O = new Array(j.length).fill(""), D = new Array(J.length).fill("");
2310
- let G;
2311
- G = [...O, ...C, ...D], G.raw = [...O, ...C.raw, ...D], j.unshift(G);
2312
- }
2313
- const Z = [...j, ...X, ...J], a = H(...Z);
2314
- return u.muiName && (a.muiName = u.muiName), process.env.NODE_ENV !== "production" && (a.displayName = Zn(d, g, u)), a;
2315
- };
2316
- return H.withConfig && (T.withConfig = H.withConfig), T;
2317
- };
2318
- }
2319
- function Zn(e, r, t) {
2320
- return e ? `${e}${vr(r || "")}` : `Styled(${Ft(t)})`;
2321
- }
2322
- function eo(e, r) {
2323
- let t;
2324
- return process.env.NODE_ENV !== "production" && e && (t = `${e}-${mt(r || "Root")}`), t;
2325
- }
2326
- function ro(e) {
2327
- for (const r in e)
2328
- return !1;
2329
- return !0;
2330
- }
2331
- function to(e) {
2332
- return typeof e == "string" && // 96 is one less than the char code
2333
- // for "a" so this is checking that
2334
- // it's a lowercase character
2335
- e.charCodeAt(0) > 96;
2336
- }
2337
- function mt(e) {
2338
- return e && e.charAt(0).toLowerCase() + e.slice(1);
2339
- }
2340
- const no = /* @__PURE__ */ Ye.createContext(void 0);
2341
- process.env.NODE_ENV !== "production" && (fe.node, fe.object);
2342
- function oo(e) {
2343
- const {
2344
- theme: r,
2345
- name: t,
2346
- props: n
2347
- } = e;
2348
- if (!r || !r.components || !r.components[t])
2349
- return n;
2350
- const o = r.components[t];
2351
- return o.defaultProps ? dr(o.defaultProps, n) : !o.styleOverrides && !o.variants ? dr(o, n) : n;
2352
- }
2353
- function io({
2354
- props: e,
2355
- name: r
2356
- }) {
2357
- const t = Ye.useContext(no);
2358
- return oo({
2359
- props: e,
2360
- name: r,
2361
- theme: {
2362
- components: t
2363
- }
2364
- });
2365
- }
2366
- const qr = {
2367
- theme: void 0
2368
- };
2369
- function ao(e) {
2370
- let r, t;
2371
- return function(o) {
2372
- let i = r;
2373
- return (i === void 0 || o.theme !== t) && (qr.theme = o.theme, i = dt(e(qr)), r = i, t = o.theme), i;
2374
- };
2375
- }
2376
- function so(e = "") {
2377
- function r(...n) {
2378
- if (!n.length)
2379
- return "";
2380
- const o = n[0];
2381
- 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}${r(...n.slice(1))})` : `, ${o}`;
2382
- }
2383
- return (n, ...o) => `var(--${e ? `${e}-` : ""}${n}${r(...o)})`;
2384
- }
2385
- const Kr = (e, r, t, n = []) => {
2386
- let o = e;
2387
- r.forEach((i, s) => {
2388
- s === r.length - 1 ? Array.isArray(o) ? o[Number(i)] = t : o && typeof o == "object" && (o[i] = t) : o && typeof o == "object" && (o[i] || (o[i] = n.includes(i) ? [] : {}), o = o[i]);
2389
- });
2390
- }, co = (e, r, t) => {
2391
- function n(o, i = [], s = []) {
2392
- Object.entries(o).forEach(([u, f]) => {
2393
- (!t || t && !t([...i, u])) && f != null && (typeof f == "object" && Object.keys(f).length > 0 ? n(f, [...i, u], Array.isArray(f) ? [...s, u] : s) : r([...i, u], f, s));
2394
- });
2395
- }
2396
- n(e);
2397
- }, uo = (e, r) => typeof r == "number" ? ["lineHeight", "fontWeight", "opacity", "zIndex"].some((n) => e.includes(n)) || e[e.length - 1].toLowerCase().includes("opacity") ? r : `${r}px` : r;
2398
- function lr(e, r) {
2399
- const {
2400
- prefix: t,
2401
- shouldSkipGeneratingVar: n
2402
- } = r || {}, o = {}, i = {}, s = {};
2403
- return co(
2404
- e,
2405
- (u, f, d) => {
2406
- if ((typeof f == "string" || typeof f == "number") && (!n || !n(u, f))) {
2407
- const g = `--${t ? `${t}-` : ""}${u.join("-")}`, p = uo(u, f);
2408
- Object.assign(o, {
2409
- [g]: p
2410
- }), Kr(i, u, `var(${g})`, d), Kr(s, u, `var(${g}, ${p})`, d);
2411
- }
2412
- },
2413
- (u) => u[0] === "vars"
2414
- // skip 'vars/*' paths
2415
- ), {
2416
- css: o,
2417
- vars: i,
2418
- varsWithDefaults: s
2419
- };
2420
- }
2421
- function lo(e, r = {}) {
2422
- const {
2423
- getSelector: t = w,
2424
- disableCssColorScheme: n,
2425
- colorSchemeSelector: o
2426
- } = r, {
2427
- colorSchemes: i = {},
2428
- components: s,
2429
- defaultColorScheme: u = "light",
2430
- ...f
2431
- } = e, {
2432
- vars: d,
2433
- css: g,
2434
- varsWithDefaults: p
2435
- } = lr(f, r);
2436
- let m = p;
2437
- const S = {}, {
2438
- [u]: b,
2439
- ...c
2440
- } = i;
2441
- if (Object.entries(c || {}).forEach(([x, T]) => {
2442
- const {
2443
- vars: h,
2444
- css: j,
2445
- varsWithDefaults: X
2446
- } = lr(T, r);
2447
- m = oe(m, X), S[x] = {
2448
- css: j,
2449
- vars: h
2450
- };
2451
- }), b) {
2452
- const {
2453
- css: x,
2454
- vars: T,
2455
- varsWithDefaults: h
2456
- } = lr(b, r);
2457
- m = oe(m, h), S[u] = {
2458
- css: x,
2459
- vars: T
2460
- };
2461
- }
2462
- function w(x, T) {
2463
- var j, X;
2464
- let h = o;
2465
- if (o === "class" && (h = ".%s"), o === "data" && (h = "[data-%s]"), o != null && o.startsWith("data-") && !o.includes("%s") && (h = `[${o}="%s"]`), x) {
2466
- if (h === "media")
2467
- return e.defaultColorScheme === x ? ":root" : {
2468
- [`@media (prefers-color-scheme: ${((X = (j = i[x]) == null ? void 0 : j.palette) == null ? void 0 : X.mode) || x})`]: {
2469
- ":root": T
2470
- }
2471
- };
2472
- if (h)
2473
- return e.defaultColorScheme === x ? `:root, ${h.replace("%s", String(x))}` : h.replace("%s", String(x));
2474
- }
2475
- return ":root";
2476
- }
2477
- return {
2478
- vars: m,
2479
- generateThemeVars: () => {
2480
- let x = {
2481
- ...d
2482
- };
2483
- return Object.entries(S).forEach(([, {
2484
- vars: T
2485
- }]) => {
2486
- x = oe(x, T);
2487
- }), x;
2488
- },
2489
- generateStyleSheets: () => {
2490
- var J, Z;
2491
- const x = [], T = e.defaultColorScheme || "light";
2492
- function h(a, C) {
2493
- Object.keys(C).length && x.push(typeof a == "string" ? {
2494
- [a]: {
2495
- ...C
2496
- }
2497
- } : a);
2498
- }
2499
- h(t(void 0, {
2500
- ...g
2501
- }), g);
2502
- const {
2503
- [T]: j,
2504
- ...X
2505
- } = S;
2506
- if (j) {
2507
- const {
2508
- css: a
2509
- } = j, C = (Z = (J = i[T]) == null ? void 0 : J.palette) == null ? void 0 : Z.mode, O = !n && C ? {
2510
- colorScheme: C,
2511
- ...a
2512
- } : {
2513
- ...a
2514
- };
2515
- h(t(T, {
2516
- ...O
2517
- }), O);
2518
- }
2519
- return Object.entries(X).forEach(([a, {
2520
- css: C
2521
- }]) => {
2522
- var G, re;
2523
- const O = (re = (G = i[a]) == null ? void 0 : G.palette) == null ? void 0 : re.mode, D = !n && O ? {
2524
- colorScheme: O,
2525
- ...C
2526
- } : {
2527
- ...C
2528
- };
2529
- h(t(a, {
2530
- ...D
2531
- }), D);
2532
- }), x;
2533
- }
2534
- };
2535
- }
2536
- function fo(e) {
2537
- return function(t) {
2538
- return e === "media" ? (process.env.NODE_ENV !== "production" && t !== "light" && t !== "dark" && console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`), `@media (prefers-color-scheme: ${t})`) : e ? e.startsWith("data-") && !e.includes("%s") ? `[${e}="${t}"] &` : e === "class" ? `.${t} &` : e === "data" ? `[data-${t}] &` : `${e.replace("%s", t)} &` : "&";
2539
- };
2540
- }
2541
- const Pe = {
2542
- black: "#000",
2543
- white: "#fff"
2544
- }, po = {
2545
- 50: "#fafafa",
2546
- 100: "#f5f5f5",
2547
- 200: "#eeeeee",
2548
- 300: "#e0e0e0",
2549
- 400: "#bdbdbd",
2550
- 500: "#9e9e9e",
2551
- 600: "#757575",
2552
- 700: "#616161",
2553
- 800: "#424242",
2554
- 900: "#212121",
2555
- A100: "#f5f5f5",
2556
- A200: "#eeeeee",
2557
- A400: "#bdbdbd",
2558
- A700: "#616161"
2559
- }, ve = {
2560
- 50: "#f3e5f5",
2561
- 200: "#ce93d8",
2562
- 300: "#ba68c8",
2563
- 400: "#ab47bc",
2564
- 500: "#9c27b0",
2565
- 700: "#7b1fa2"
2566
- }, Se = {
2567
- 300: "#e57373",
2568
- 400: "#ef5350",
2569
- 500: "#f44336",
2570
- 700: "#d32f2f",
2571
- 800: "#c62828"
2572
- }, $e = {
2573
- 300: "#ffb74d",
2574
- 400: "#ffa726",
2575
- 500: "#ff9800",
2576
- 700: "#f57c00",
2577
- 900: "#e65100"
2578
- }, Ee = {
2579
- 50: "#e3f2fd",
2580
- 200: "#90caf9",
2581
- 400: "#42a5f5",
2582
- 700: "#1976d2",
2583
- 800: "#1565c0"
2584
- }, Ce = {
2585
- 300: "#4fc3f7",
2586
- 400: "#29b6f6",
2587
- 500: "#03a9f4",
2588
- 700: "#0288d1",
2589
- 900: "#01579b"
2590
- }, Te = {
2591
- 300: "#81c784",
2592
- 400: "#66bb6a",
2593
- 500: "#4caf50",
2594
- 700: "#388e3c",
2595
- 800: "#2e7d32",
2596
- 900: "#1b5e20"
2597
- };
2598
- function gt() {
2599
- return {
2600
- // The colors used to style the text.
2601
- text: {
2602
- // The most important text.
2603
- primary: "rgba(0, 0, 0, 0.87)",
2604
- // Secondary text.
2605
- secondary: "rgba(0, 0, 0, 0.6)",
2606
- // Disabled text have even lower visual prominence.
2607
- disabled: "rgba(0, 0, 0, 0.38)"
2608
- },
2609
- // The color used to divide different elements.
2610
- divider: "rgba(0, 0, 0, 0.12)",
2611
- // The background colors used to style the surfaces.
2612
- // Consistency between these values is important.
2613
- background: {
2614
- paper: Pe.white,
2615
- default: Pe.white
2616
- },
2617
- // The colors used to style the action elements.
2618
- action: {
2619
- // The color of an active action like an icon button.
2620
- active: "rgba(0, 0, 0, 0.54)",
2621
- // The color of an hovered action.
2622
- hover: "rgba(0, 0, 0, 0.04)",
2623
- hoverOpacity: 0.04,
2624
- // The color of a selected action.
2625
- selected: "rgba(0, 0, 0, 0.08)",
2626
- selectedOpacity: 0.08,
2627
- // The color of a disabled action.
2628
- disabled: "rgba(0, 0, 0, 0.26)",
2629
- // The background color of a disabled action.
2630
- disabledBackground: "rgba(0, 0, 0, 0.12)",
2631
- disabledOpacity: 0.38,
2632
- focus: "rgba(0, 0, 0, 0.12)",
2633
- focusOpacity: 0.12,
2634
- activatedOpacity: 0.12
2635
- }
2636
- };
2637
- }
2638
- const mo = gt();
2639
- function ht() {
2640
- return {
2641
- text: {
2642
- primary: Pe.white,
2643
- secondary: "rgba(255, 255, 255, 0.7)",
2644
- disabled: "rgba(255, 255, 255, 0.5)",
2645
- icon: "rgba(255, 255, 255, 0.5)"
2646
- },
2647
- divider: "rgba(255, 255, 255, 0.12)",
2648
- background: {
2649
- paper: "#121212",
2650
- default: "#121212"
2651
- },
2652
- action: {
2653
- active: Pe.white,
2654
- hover: "rgba(255, 255, 255, 0.08)",
2655
- hoverOpacity: 0.08,
2656
- selected: "rgba(255, 255, 255, 0.16)",
2657
- selectedOpacity: 0.16,
2658
- disabled: "rgba(255, 255, 255, 0.3)",
2659
- disabledBackground: "rgba(255, 255, 255, 0.12)",
2660
- disabledOpacity: 0.38,
2661
- focus: "rgba(255, 255, 255, 0.12)",
2662
- focusOpacity: 0.12,
2663
- activatedOpacity: 0.24
2664
- }
2665
- };
2666
- }
2667
- const Hr = ht();
2668
- function Qr(e, r, t, n) {
2669
- const o = n.light || n, i = n.dark || n * 1.5;
2670
- e[r] || (e.hasOwnProperty(t) ? e[r] = e[t] : r === "light" ? e.light = br(e.main, o) : r === "dark" && (e.dark = yr(e.main, i)));
2671
- }
2672
- function go(e = "light") {
2673
- return e === "dark" ? {
2674
- main: Ee[200],
2675
- light: Ee[50],
2676
- dark: Ee[400]
2677
- } : {
2678
- main: Ee[700],
2679
- light: Ee[400],
2680
- dark: Ee[800]
2681
- };
2682
- }
2683
- function ho(e = "light") {
2684
- return e === "dark" ? {
2685
- main: ve[200],
2686
- light: ve[50],
2687
- dark: ve[400]
2688
- } : {
2689
- main: ve[500],
2690
- light: ve[300],
2691
- dark: ve[700]
2692
- };
2693
- }
2694
- function yo(e = "light") {
2695
- return e === "dark" ? {
2696
- main: Se[500],
2697
- light: Se[300],
2698
- dark: Se[700]
2699
- } : {
2700
- main: Se[700],
2701
- light: Se[400],
2702
- dark: Se[800]
2703
- };
2704
- }
2705
- function bo(e = "light") {
2706
- return e === "dark" ? {
2707
- main: Ce[400],
2708
- light: Ce[300],
2709
- dark: Ce[700]
2710
- } : {
2711
- main: Ce[700],
2712
- light: Ce[500],
2713
- dark: Ce[900]
2714
- };
2715
- }
2716
- function vo(e = "light") {
2717
- return e === "dark" ? {
2718
- main: Te[400],
2719
- light: Te[300],
2720
- dark: Te[700]
2721
- } : {
2722
- main: Te[800],
2723
- light: Te[500],
2724
- dark: Te[900]
2725
- };
2726
- }
2727
- function So(e = "light") {
2728
- return e === "dark" ? {
2729
- main: $e[400],
2730
- light: $e[300],
2731
- dark: $e[700]
2732
- } : {
2733
- main: "#ed6c02",
2734
- // closest to orange[800] that pass 3:1.
2735
- light: $e[500],
2736
- dark: $e[900]
2737
- };
2738
- }
2739
- function Cr(e) {
2740
- const {
2741
- mode: r = "light",
2742
- contrastThreshold: t = 3,
2743
- tonalOffset: n = 0.2,
2744
- ...o
2745
- } = e, i = e.primary || go(r), s = e.secondary || ho(r), u = e.error || yo(r), f = e.info || bo(r), d = e.success || vo(r), g = e.warning || So(r);
2746
- function p(c) {
2747
- const w = Nr(c, Hr.text.primary) >= t ? Hr.text.primary : mo.text.primary;
2748
- if (process.env.NODE_ENV !== "production") {
2749
- const $ = Nr(c, w);
2750
- $ < 3 && console.error([`MUI: The contrast ratio of ${$}:1 for ${w} 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(`
2751
- `));
2752
- }
2753
- return w;
2754
- }
2755
- const m = ({
2756
- color: c,
2757
- name: w,
2758
- mainShade: $ = 500,
2759
- lightShade: H = 300,
2760
- darkShade: x = 700
2761
- }) => {
2762
- if (c = {
2763
- ...c
2764
- }, !c.main && c[$] && (c.main = c[$]), !c.hasOwnProperty("main"))
2765
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${w ? ` (${w})` : ""} provided to augmentColor(color) is invalid.
2766
- The color object needs to have a \`main\` property or a \`${$}\` property.` : ge(11, w ? ` (${w})` : "", $));
2767
- if (typeof c.main != "string")
2768
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${w ? ` (${w})` : ""} provided to augmentColor(color) is invalid.
2769
- \`color.main\` should be a string, but \`${JSON.stringify(c.main)}\` was provided instead.
2770
-
2771
- Did you intend to use one of the following approaches?
2772
-
2773
- import { green } from "@mui/material/colors";
2774
-
2775
- const theme1 = createTheme({ palette: {
2776
- primary: green,
2777
- } });
2778
-
2779
- const theme2 = createTheme({ palette: {
2780
- primary: { main: green[500] },
2781
- } });` : ge(12, w ? ` (${w})` : "", JSON.stringify(c.main)));
2782
- return Qr(c, "light", H, n), Qr(c, "dark", x, n), c.contrastText || (c.contrastText = p(c.main)), c;
2783
- };
2784
- let S;
2785
- return r === "light" ? S = gt() : r === "dark" && (S = ht()), process.env.NODE_ENV !== "production" && (S || console.error(`MUI: The palette mode \`${r}\` is not supported.`)), oe({
2786
- // A collection of common colors.
2787
- common: {
2788
- ...Pe
2789
- },
2790
- // prevent mutable object.
2791
- // The palette mode, can be light or dark.
2792
- mode: r,
2793
- // The colors used to represent primary interface elements for a user.
2794
- primary: m({
2795
- color: i,
2796
- name: "primary"
2797
- }),
2798
- // The colors used to represent secondary interface elements for a user.
2799
- secondary: m({
2800
- color: s,
2801
- name: "secondary",
2802
- mainShade: "A400",
2803
- lightShade: "A200",
2804
- darkShade: "A700"
2805
- }),
2806
- // The colors used to represent interface elements that the user should be made aware of.
2807
- error: m({
2808
- color: u,
2809
- name: "error"
2810
- }),
2811
- // The colors used to represent potentially dangerous actions or important messages.
2812
- warning: m({
2813
- color: g,
2814
- name: "warning"
2815
- }),
2816
- // The colors used to present information to the user that is neutral and not necessarily important.
2817
- info: m({
2818
- color: f,
2819
- name: "info"
2820
- }),
2821
- // The colors used to indicate the successful completion of an action that user triggered.
2822
- success: m({
2823
- color: d,
2824
- name: "success"
2825
- }),
2826
- // The grey colors.
2827
- grey: po,
2828
- // Used by `getContrastText()` to maximize the contrast between
2829
- // the background and the text.
2830
- contrastThreshold: t,
2831
- // Takes a background color and returns the text color that maximizes the contrast.
2832
- getContrastText: p,
2833
- // Generate a rich color object.
2834
- augmentColor: m,
2835
- // Used by the functions below to shift a color's luminance by approximately
2836
- // two indexes within its tonal palette.
2837
- // E.g., shift from Red 500 to Red 300 or Red 700.
2838
- tonalOffset: n,
2839
- // The light and dark mode object.
2840
- ...S
2841
- }, o);
2842
- }
2843
- function Eo(e) {
2844
- const r = {};
2845
- return Object.entries(e).forEach((n) => {
2846
- const [o, i] = n;
2847
- typeof i == "object" && (r[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 || ""}`);
2848
- }), r;
2849
- }
2850
- function Co(e, r) {
2851
- return {
2852
- toolbar: {
2853
- minHeight: 56,
2854
- [e.up("xs")]: {
2855
- "@media (orientation: landscape)": {
2856
- minHeight: 48
2857
- }
2858
- },
2859
- [e.up("sm")]: {
2860
- minHeight: 64
2861
- }
2862
- },
2863
- ...r
2864
- };
2865
- }
2866
- function To(e) {
2867
- return Math.round(e * 1e5) / 1e5;
2868
- }
2869
- const Xr = {
2870
- textTransform: "uppercase"
2871
- }, Jr = '"Roboto", "Helvetica", "Arial", sans-serif';
2872
- function wo(e, r) {
2873
- const {
2874
- fontFamily: t = Jr,
2875
- // The default font size of the Material Specification.
2876
- fontSize: n = 14,
2877
- // px
2878
- fontWeightLight: o = 300,
2879
- fontWeightRegular: i = 400,
2880
- fontWeightMedium: s = 500,
2881
- fontWeightBold: u = 700,
2882
- // Tell MUI what's the font-size on the html element.
2883
- // 16px is the default font-size used by browsers.
2884
- htmlFontSize: f = 16,
2885
- // Apply the CSS properties to all the variants.
2886
- allVariants: d,
2887
- pxToRem: g,
2888
- ...p
2889
- } = typeof r == "function" ? r(e) : r;
2890
- process.env.NODE_ENV !== "production" && (typeof n != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof f != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
2891
- const m = n / 14, S = g || ((w) => `${w / f * m}rem`), b = (w, $, H, x, T) => ({
2892
- fontFamily: t,
2893
- fontWeight: w,
2894
- fontSize: S($),
2895
- // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
2896
- lineHeight: H,
2897
- // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
2898
- // across font-families can cause issues with the kerning.
2899
- ...t === Jr ? {
2900
- letterSpacing: `${To(x / $)}em`
2901
- } : {},
2902
- ...T,
2903
- ...d
2904
- }), c = {
2905
- h1: b(o, 96, 1.167, -1.5),
2906
- h2: b(o, 60, 1.2, -0.5),
2907
- h3: b(i, 48, 1.167, 0),
2908
- h4: b(i, 34, 1.235, 0.25),
2909
- h5: b(i, 24, 1.334, 0),
2910
- h6: b(s, 20, 1.6, 0.15),
2911
- subtitle1: b(i, 16, 1.75, 0.15),
2912
- subtitle2: b(s, 14, 1.57, 0.1),
2913
- body1: b(i, 16, 1.5, 0.15),
2914
- body2: b(i, 14, 1.43, 0.15),
2915
- button: b(s, 14, 1.75, 0.4, Xr),
2916
- caption: b(i, 12, 1.66, 0.4),
2917
- overline: b(i, 12, 2.66, 1, Xr),
2918
- // 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.
2919
- inherit: {
2920
- fontFamily: "inherit",
2921
- fontWeight: "inherit",
2922
- fontSize: "inherit",
2923
- lineHeight: "inherit",
2924
- letterSpacing: "inherit"
2925
- }
2926
- };
2927
- return oe({
2928
- htmlFontSize: f,
2929
- pxToRem: S,
2930
- fontFamily: t,
2931
- fontSize: n,
2932
- fontWeightLight: o,
2933
- fontWeightRegular: i,
2934
- fontWeightMedium: s,
2935
- fontWeightBold: u,
2936
- ...c
2937
- }, p, {
2938
- clone: !1
2939
- // No need to clone deep
2940
- });
2941
- }
2942
- const xo = 0.2, $o = 0.14, Oo = 0.12;
2943
- function z(...e) {
2944
- return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${xo})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${$o})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Oo})`].join(",");
2945
- }
2946
- const Ao = ["none", z(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), z(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), z(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), z(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), z(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), z(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), z(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), z(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), z(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), z(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), z(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), z(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), z(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), z(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), z(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), z(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), z(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), z(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), z(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), z(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), z(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), z(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), z(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), z(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], _o = {
2947
- // This is the most common easing curve.
2948
- easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
2949
- // Objects enter the screen at full velocity from off-screen and
2950
- // slowly decelerate to a resting point.
2951
- easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
2952
- // Objects leave the screen at full velocity. They do not decelerate when off-screen.
2953
- easeIn: "cubic-bezier(0.4, 0, 1, 1)",
2954
- // The sharp curve is used by objects that may return to the screen at any time.
2955
- sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
2956
- }, Po = {
2957
- shortest: 150,
2958
- shorter: 200,
2959
- short: 250,
2960
- // most basic recommended timing
2961
- standard: 300,
2962
- // this is to be used in complex animations
2963
- complex: 375,
2964
- // recommended when something is entering screen
2965
- enteringScreen: 225,
2966
- // recommended when something is leaving screen
2967
- leavingScreen: 195
2968
- };
2969
- function Zr(e) {
2970
- return `${Math.round(e)}ms`;
2971
- }
2972
- function Ro(e) {
2973
- if (!e)
2974
- return 0;
2975
- const r = e / 36;
2976
- return Math.min(Math.round((4 + 15 * r ** 0.25 + r / 5) * 10), 3e3);
2977
- }
2978
- function ko(e) {
2979
- const r = {
2980
- ..._o,
2981
- ...e.easing
2982
- }, t = {
2983
- ...Po,
2984
- ...e.duration
2985
- };
2986
- return {
2987
- getAutoHeightDuration: Ro,
2988
- create: (o = ["all"], i = {}) => {
2989
- const {
2990
- duration: s = t.standard,
2991
- easing: u = r.easeInOut,
2992
- delay: f = 0,
2993
- ...d
2994
- } = i;
2995
- if (process.env.NODE_ENV !== "production") {
2996
- const g = (m) => typeof m == "string", p = (m) => !Number.isNaN(parseFloat(m));
2997
- !g(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !p(s) && !g(s) && console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`), g(u) || console.error('MUI: Argument "easing" must be a string.'), !p(f) && !g(f) && 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(`
2998
- `)), Object.keys(d).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`);
2999
- }
3000
- return (Array.isArray(o) ? o : [o]).map((g) => `${g} ${typeof s == "string" ? s : Zr(s)} ${u} ${typeof f == "string" ? f : Zr(f)}`).join(",");
3001
- },
3002
- ...e,
3003
- easing: r,
3004
- duration: t
3005
- };
3006
- }
3007
- const Io = {
3008
- mobileStepper: 1e3,
3009
- fab: 1050,
3010
- speedDial: 1050,
3011
- appBar: 1100,
3012
- drawer: 1200,
3013
- modal: 1300,
3014
- snackbar: 1400,
3015
- tooltip: 1500
3016
- };
3017
- function No(e) {
3018
- return de(e) || typeof e > "u" || typeof e == "string" || typeof e == "boolean" || typeof e == "number" || Array.isArray(e);
3019
- }
3020
- function yt(e = {}) {
3021
- const r = {
3022
- ...e
3023
- };
3024
- function t(n) {
3025
- const o = Object.entries(n);
3026
- for (let i = 0; i < o.length; i++) {
3027
- const [s, u] = o[i];
3028
- !No(u) || s.startsWith("unstable_") ? delete n[s] : de(u) && (n[s] = {
3029
- ...u
3030
- }, t(n[s]));
3031
- }
3032
- }
3033
- return t(r), `import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
3034
-
3035
- const theme = ${JSON.stringify(r, null, 2)};
3036
-
3037
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
3038
- theme.transitions = createTransitions(theme.transitions || {});
3039
-
3040
- export default theme;`;
3041
- }
3042
- function mr(e = {}, ...r) {
3043
- const {
3044
- breakpoints: t,
3045
- mixins: n = {},
3046
- spacing: o,
3047
- palette: i = {},
3048
- transitions: s = {},
3049
- typography: u = {},
3050
- shape: f,
3051
- ...d
3052
- } = e;
3053
- if (e.vars)
3054
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : ge(20));
3055
- const g = Cr(i), p = ft(e);
3056
- let m = oe(p, {
3057
- mixins: Co(p.breakpoints, n),
3058
- palette: g,
3059
- // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
3060
- shadows: Ao.slice(),
3061
- typography: wo(g, u),
3062
- transitions: ko(s),
3063
- zIndex: {
3064
- ...Io
3065
- }
3066
- });
3067
- if (m = oe(m, d), m = r.reduce((S, b) => oe(S, b), m), process.env.NODE_ENV !== "production") {
3068
- const S = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], b = (c, w) => {
3069
- let $;
3070
- for ($ in c) {
3071
- const H = c[$];
3072
- if (S.includes($) && Object.keys(H).length > 0) {
3073
- if (process.env.NODE_ENV !== "production") {
3074
- const x = st("", $);
3075
- console.error([`MUI: The \`${w}\` 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 '&.${x}' syntax:`, JSON.stringify({
3076
- root: {
3077
- [`&.${x}`]: H
3078
- }
3079
- }, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
3080
- `));
3081
- }
3082
- c[$] = {};
3083
- }
3084
- }
3085
- };
3086
- Object.keys(m.components).forEach((c) => {
3087
- const w = m.components[c].styleOverrides;
3088
- w && c.startsWith("Mui") && b(w, c);
3089
- });
3090
- }
3091
- return m.unstable_sxConfig = {
3092
- ...er,
3093
- ...d == null ? void 0 : d.unstable_sxConfig
3094
- }, m.unstable_sx = function(b) {
3095
- return xe({
3096
- sx: b,
3097
- theme: this
3098
- });
3099
- }, m.toRuntimeSource = yt, m;
3100
- }
3101
- function Mo(e) {
3102
- let r;
3103
- return e < 1 ? r = 5.11916 * e ** 2 : r = 4.5 * Math.log(e + 1) + 2, Math.round(r * 10) / 1e3;
3104
- }
3105
- const Do = [...Array(25)].map((e, r) => {
3106
- if (r === 0)
3107
- return "none";
3108
- const t = Mo(r);
3109
- return `linear-gradient(rgba(255 255 255 / ${t}), rgba(255 255 255 / ${t}))`;
3110
- });
3111
- function bt(e) {
3112
- return {
3113
- inputPlaceholder: e === "dark" ? 0.5 : 0.42,
3114
- inputUnderline: e === "dark" ? 0.7 : 0.42,
3115
- switchTrackDisabled: e === "dark" ? 0.2 : 0.12,
3116
- switchTrack: e === "dark" ? 0.3 : 0.38
3117
- };
3118
- }
3119
- function vt(e) {
3120
- return e === "dark" ? Do : [];
3121
- }
3122
- function Bo(e) {
3123
- const {
3124
- palette: r = {
3125
- mode: "light"
3126
- },
3127
- // need to cast to avoid module augmentation test
3128
- opacity: t,
3129
- overlays: n,
3130
- ...o
3131
- } = e, i = Cr(r);
3132
- return {
3133
- palette: i,
3134
- opacity: {
3135
- ...bt(i.mode),
3136
- ...t
3137
- },
3138
- overlays: n || vt(i.mode),
3139
- ...o
3140
- };
3141
- }
3142
- function Fo(e) {
3143
- var r;
3144
- return !!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!e[0].match(/sxConfig$/) || // ends with sxConfig
3145
- e[0] === "palette" && !!((r = e[1]) != null && r.match(/(mode|contrastThreshold|tonalOffset)/));
3146
- }
3147
- const jo = (e) => [...[...Array(25)].map((r, t) => `--${e ? `${e}-` : ""}overlays-${t}`), `--${e ? `${e}-` : ""}palette-AppBar-darkBg`, `--${e ? `${e}-` : ""}palette-AppBar-darkColor`], Vo = (e) => (r, t) => {
3148
- const n = e.rootSelector || ":root", o = e.colorSchemeSelector;
3149
- let i = o;
3150
- if (o === "class" && (i = ".%s"), o === "data" && (i = "[data-%s]"), o != null && o.startsWith("data-") && !o.includes("%s") && (i = `[${o}="%s"]`), e.defaultColorScheme === r) {
3151
- if (r === "dark") {
3152
- const s = {};
3153
- return jo(e.cssVarPrefix).forEach((u) => {
3154
- s[u] = t[u], delete t[u];
3155
- }), i === "media" ? {
3156
- [n]: t,
3157
- "@media (prefers-color-scheme: dark)": {
3158
- [n]: s
3159
- }
3160
- } : i ? {
3161
- [i.replace("%s", r)]: s,
3162
- [`${n}, ${i.replace("%s", r)}`]: t
3163
- } : {
3164
- [n]: {
3165
- ...t,
3166
- ...s
3167
- }
3168
- };
3169
- }
3170
- if (i && i !== "media")
3171
- return `${n}, ${i.replace("%s", String(r))}`;
3172
- } else if (r) {
3173
- if (i === "media")
3174
- return {
3175
- [`@media (prefers-color-scheme: ${String(r)})`]: {
3176
- [n]: t
3177
- }
3178
- };
3179
- if (i)
3180
- return i.replace("%s", String(r));
3181
- }
3182
- return n;
3183
- };
3184
- function Lo(e, r) {
3185
- r.forEach((t) => {
3186
- e[t] || (e[t] = {});
3187
- });
3188
- }
3189
- function l(e, r, t) {
3190
- !e[r] && t && (e[r] = t);
3191
- }
3192
- function Ae(e) {
3193
- return typeof e != "string" || !e.startsWith("hsl") ? e : ot(e);
3194
- }
3195
- function le(e, r) {
3196
- `${r}Channel` in e || (e[`${r}Channel`] = Oe(Ae(e[r]), `MUI: Can't create \`palette.${r}Channel\` because \`palette.${r}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
3197
- To suppress this warning, you need to explicitly provide the \`palette.${r}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`));
3198
- }
3199
- function Wo(e) {
3200
- return typeof e == "number" ? `${e}px` : typeof e == "string" || typeof e == "function" || Array.isArray(e) ? e : "8px";
3201
- }
3202
- const ue = (e) => {
3203
- try {
3204
- return e();
3205
- } catch {
3206
- }
3207
- }, Yo = (e = "mui") => so(e);
3208
- function fr(e, r, t, n) {
3209
- if (!r)
3210
- return;
3211
- r = r === !0 ? {} : r;
3212
- const o = n === "dark" ? "dark" : "light";
3213
- if (!t) {
3214
- e[n] = Bo({
3215
- ...r,
3216
- palette: {
3217
- mode: o,
3218
- ...r == null ? void 0 : r.palette
3219
- }
3220
- });
3221
- return;
3222
- }
3223
- const {
3224
- palette: i,
3225
- ...s
3226
- } = mr({
3227
- ...t,
3228
- palette: {
3229
- mode: o,
3230
- ...r == null ? void 0 : r.palette
3231
- }
3232
- });
3233
- return e[n] = {
3234
- ...r,
3235
- palette: i,
3236
- opacity: {
3237
- ...bt(o),
3238
- ...r == null ? void 0 : r.opacity
3239
- },
3240
- overlays: (r == null ? void 0 : r.overlays) || vt(o)
3241
- }, s;
3242
- }
3243
- function Uo(e = {}, ...r) {
3244
- const {
3245
- colorSchemes: t = {
3246
- light: !0
3247
- },
3248
- defaultColorScheme: n,
3249
- disableCssColorScheme: o = !1,
3250
- cssVarPrefix: i = "mui",
3251
- shouldSkipGeneratingVar: s = Fo,
3252
- colorSchemeSelector: u = t.light && t.dark ? "media" : void 0,
3253
- rootSelector: f = ":root",
3254
- ...d
3255
- } = e, g = Object.keys(t)[0], p = n || (t.light && g !== "light" ? "light" : g), m = Yo(i), {
3256
- [p]: S,
3257
- light: b,
3258
- dark: c,
3259
- ...w
3260
- } = t, $ = {
3261
- ...w
3262
- };
3263
- let H = S;
3264
- if ((p === "dark" && !("dark" in t) || p === "light" && !("light" in t)) && (H = !0), !H)
3265
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${p}\` option is either missing or invalid.` : ge(21, p));
3266
- const x = fr($, H, d, p);
3267
- b && !$.light && fr($, b, void 0, "light"), c && !$.dark && fr($, c, void 0, "dark");
3268
- let T = {
3269
- defaultColorScheme: p,
3270
- ...x,
3271
- cssVarPrefix: i,
3272
- colorSchemeSelector: u,
3273
- rootSelector: f,
3274
- getCssVar: m,
3275
- colorSchemes: $,
3276
- font: {
3277
- ...Eo(x.typography),
3278
- ...x.font
3279
- },
3280
- spacing: Wo(d.spacing)
3281
- };
3282
- Object.keys(T.colorSchemes).forEach((Z) => {
3283
- const a = T.colorSchemes[Z].palette, C = (O) => {
3284
- const D = O.split("-"), G = D[1], re = D[2];
3285
- return m(O, a[G][re]);
3286
- };
3287
- if (a.mode === "light" && (l(a.common, "background", "#fff"), l(a.common, "onBackground", "#000")), a.mode === "dark" && (l(a.common, "background", "#000"), l(a.common, "onBackground", "#fff")), Lo(a, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), a.mode === "light") {
3288
- l(a.Alert, "errorColor", Y(a.error.light, 0.6)), l(a.Alert, "infoColor", Y(a.info.light, 0.6)), l(a.Alert, "successColor", Y(a.success.light, 0.6)), l(a.Alert, "warningColor", Y(a.warning.light, 0.6)), l(a.Alert, "errorFilledBg", C("palette-error-main")), l(a.Alert, "infoFilledBg", C("palette-info-main")), l(a.Alert, "successFilledBg", C("palette-success-main")), l(a.Alert, "warningFilledBg", C("palette-warning-main")), l(a.Alert, "errorFilledColor", ue(() => a.getContrastText(a.error.main))), l(a.Alert, "infoFilledColor", ue(() => a.getContrastText(a.info.main))), l(a.Alert, "successFilledColor", ue(() => a.getContrastText(a.success.main))), l(a.Alert, "warningFilledColor", ue(() => a.getContrastText(a.warning.main))), l(a.Alert, "errorStandardBg", U(a.error.light, 0.9)), l(a.Alert, "infoStandardBg", U(a.info.light, 0.9)), l(a.Alert, "successStandardBg", U(a.success.light, 0.9)), l(a.Alert, "warningStandardBg", U(a.warning.light, 0.9)), l(a.Alert, "errorIconColor", C("palette-error-main")), l(a.Alert, "infoIconColor", C("palette-info-main")), l(a.Alert, "successIconColor", C("palette-success-main")), l(a.Alert, "warningIconColor", C("palette-warning-main")), l(a.AppBar, "defaultBg", C("palette-grey-100")), l(a.Avatar, "defaultBg", C("palette-grey-400")), l(a.Button, "inheritContainedBg", C("palette-grey-300")), l(a.Button, "inheritContainedHoverBg", C("palette-grey-A100")), l(a.Chip, "defaultBorder", C("palette-grey-400")), l(a.Chip, "defaultAvatarColor", C("palette-grey-700")), l(a.Chip, "defaultIconColor", C("palette-grey-700")), l(a.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), l(a.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), l(a.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), l(a.LinearProgress, "primaryBg", U(a.primary.main, 0.62)), l(a.LinearProgress, "secondaryBg", U(a.secondary.main, 0.62)), l(a.LinearProgress, "errorBg", U(a.error.main, 0.62)), l(a.LinearProgress, "infoBg", U(a.info.main, 0.62)), l(a.LinearProgress, "successBg", U(a.success.main, 0.62)), l(a.LinearProgress, "warningBg", U(a.warning.main, 0.62)), l(a.Skeleton, "bg", `rgba(${C("palette-text-primaryChannel")} / 0.11)`), l(a.Slider, "primaryTrack", U(a.primary.main, 0.62)), l(a.Slider, "secondaryTrack", U(a.secondary.main, 0.62)), l(a.Slider, "errorTrack", U(a.error.main, 0.62)), l(a.Slider, "infoTrack", U(a.info.main, 0.62)), l(a.Slider, "successTrack", U(a.success.main, 0.62)), l(a.Slider, "warningTrack", U(a.warning.main, 0.62));
3289
- const O = Be(a.background.default, 0.8);
3290
- l(a.SnackbarContent, "bg", O), l(a.SnackbarContent, "color", ue(() => a.getContrastText(O))), l(a.SpeedDialAction, "fabHoverBg", Be(a.background.paper, 0.15)), l(a.StepConnector, "border", C("palette-grey-400")), l(a.StepContent, "border", C("palette-grey-400")), l(a.Switch, "defaultColor", C("palette-common-white")), l(a.Switch, "defaultDisabledColor", C("palette-grey-100")), l(a.Switch, "primaryDisabledColor", U(a.primary.main, 0.62)), l(a.Switch, "secondaryDisabledColor", U(a.secondary.main, 0.62)), l(a.Switch, "errorDisabledColor", U(a.error.main, 0.62)), l(a.Switch, "infoDisabledColor", U(a.info.main, 0.62)), l(a.Switch, "successDisabledColor", U(a.success.main, 0.62)), l(a.Switch, "warningDisabledColor", U(a.warning.main, 0.62)), l(a.TableCell, "border", U(De(a.divider, 1), 0.88)), l(a.Tooltip, "bg", De(a.grey[700], 0.92));
3291
- }
3292
- if (a.mode === "dark") {
3293
- l(a.Alert, "errorColor", U(a.error.light, 0.6)), l(a.Alert, "infoColor", U(a.info.light, 0.6)), l(a.Alert, "successColor", U(a.success.light, 0.6)), l(a.Alert, "warningColor", U(a.warning.light, 0.6)), l(a.Alert, "errorFilledBg", C("palette-error-dark")), l(a.Alert, "infoFilledBg", C("palette-info-dark")), l(a.Alert, "successFilledBg", C("palette-success-dark")), l(a.Alert, "warningFilledBg", C("palette-warning-dark")), l(a.Alert, "errorFilledColor", ue(() => a.getContrastText(a.error.dark))), l(a.Alert, "infoFilledColor", ue(() => a.getContrastText(a.info.dark))), l(a.Alert, "successFilledColor", ue(() => a.getContrastText(a.success.dark))), l(a.Alert, "warningFilledColor", ue(() => a.getContrastText(a.warning.dark))), l(a.Alert, "errorStandardBg", Y(a.error.light, 0.9)), l(a.Alert, "infoStandardBg", Y(a.info.light, 0.9)), l(a.Alert, "successStandardBg", Y(a.success.light, 0.9)), l(a.Alert, "warningStandardBg", Y(a.warning.light, 0.9)), l(a.Alert, "errorIconColor", C("palette-error-main")), l(a.Alert, "infoIconColor", C("palette-info-main")), l(a.Alert, "successIconColor", C("palette-success-main")), l(a.Alert, "warningIconColor", C("palette-warning-main")), l(a.AppBar, "defaultBg", C("palette-grey-900")), l(a.AppBar, "darkBg", C("palette-background-paper")), l(a.AppBar, "darkColor", C("palette-text-primary")), l(a.Avatar, "defaultBg", C("palette-grey-600")), l(a.Button, "inheritContainedBg", C("palette-grey-800")), l(a.Button, "inheritContainedHoverBg", C("palette-grey-700")), l(a.Chip, "defaultBorder", C("palette-grey-700")), l(a.Chip, "defaultAvatarColor", C("palette-grey-300")), l(a.Chip, "defaultIconColor", C("palette-grey-300")), l(a.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), l(a.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), l(a.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), l(a.LinearProgress, "primaryBg", Y(a.primary.main, 0.5)), l(a.LinearProgress, "secondaryBg", Y(a.secondary.main, 0.5)), l(a.LinearProgress, "errorBg", Y(a.error.main, 0.5)), l(a.LinearProgress, "infoBg", Y(a.info.main, 0.5)), l(a.LinearProgress, "successBg", Y(a.success.main, 0.5)), l(a.LinearProgress, "warningBg", Y(a.warning.main, 0.5)), l(a.Skeleton, "bg", `rgba(${C("palette-text-primaryChannel")} / 0.13)`), l(a.Slider, "primaryTrack", Y(a.primary.main, 0.5)), l(a.Slider, "secondaryTrack", Y(a.secondary.main, 0.5)), l(a.Slider, "errorTrack", Y(a.error.main, 0.5)), l(a.Slider, "infoTrack", Y(a.info.main, 0.5)), l(a.Slider, "successTrack", Y(a.success.main, 0.5)), l(a.Slider, "warningTrack", Y(a.warning.main, 0.5));
3294
- const O = Be(a.background.default, 0.98);
3295
- l(a.SnackbarContent, "bg", O), l(a.SnackbarContent, "color", ue(() => a.getContrastText(O))), l(a.SpeedDialAction, "fabHoverBg", Be(a.background.paper, 0.15)), l(a.StepConnector, "border", C("palette-grey-600")), l(a.StepContent, "border", C("palette-grey-600")), l(a.Switch, "defaultColor", C("palette-grey-300")), l(a.Switch, "defaultDisabledColor", C("palette-grey-600")), l(a.Switch, "primaryDisabledColor", Y(a.primary.main, 0.55)), l(a.Switch, "secondaryDisabledColor", Y(a.secondary.main, 0.55)), l(a.Switch, "errorDisabledColor", Y(a.error.main, 0.55)), l(a.Switch, "infoDisabledColor", Y(a.info.main, 0.55)), l(a.Switch, "successDisabledColor", Y(a.success.main, 0.55)), l(a.Switch, "warningDisabledColor", Y(a.warning.main, 0.55)), l(a.TableCell, "border", Y(De(a.divider, 1), 0.68)), l(a.Tooltip, "bg", De(a.grey[700], 0.92));
3296
- }
3297
- le(a.background, "default"), le(a.background, "paper"), le(a.common, "background"), le(a.common, "onBackground"), le(a, "divider"), Object.keys(a).forEach((O) => {
3298
- const D = a[O];
3299
- O !== "tonalOffset" && D && typeof D == "object" && (D.main && l(a[O], "mainChannel", Oe(Ae(D.main))), D.light && l(a[O], "lightChannel", Oe(Ae(D.light))), D.dark && l(a[O], "darkChannel", Oe(Ae(D.dark))), D.contrastText && l(a[O], "contrastTextChannel", Oe(Ae(D.contrastText))), O === "text" && (le(a[O], "primary"), le(a[O], "secondary")), O === "action" && (D.active && le(a[O], "active"), D.selected && le(a[O], "selected")));
3300
- });
3301
- }), T = r.reduce((Z, a) => oe(Z, a), T);
3302
- const h = {
3303
- prefix: i,
3304
- disableCssColorScheme: o,
3305
- shouldSkipGeneratingVar: s,
3306
- getSelector: Vo(T)
3307
- }, {
3308
- vars: j,
3309
- generateThemeVars: X,
3310
- generateStyleSheets: J
3311
- } = lo(T, h);
3312
- return T.vars = j, Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([Z, a]) => {
3313
- T[Z] = a;
3314
- }), T.generateThemeVars = X, T.generateStyleSheets = J, T.generateSpacing = function() {
3315
- return lt(d.spacing, Sr(this));
3316
- }, T.getColorSchemeSelector = fo(u), T.spacing = T.generateSpacing(), T.shouldSkipGeneratingVar = s, T.unstable_sxConfig = {
3317
- ...er,
3318
- ...d == null ? void 0 : d.unstable_sxConfig
3319
- }, T.unstable_sx = function(a) {
3320
- return xe({
3321
- sx: a,
3322
- theme: this
3323
- });
3324
- }, T.toRuntimeSource = yt, T;
3325
- }
3326
- function et(e, r, t) {
3327
- e.colorSchemes && t && (e.colorSchemes[r] = {
3328
- ...t !== !0 && t,
3329
- palette: Cr({
3330
- ...t === !0 ? {} : t.palette,
3331
- mode: r
3332
- })
3333
- // cast type to skip module augmentation test
3334
- });
3335
- }
3336
- function zo(e = {}, ...r) {
3337
- const {
3338
- palette: t,
3339
- cssVariables: n = !1,
3340
- colorSchemes: o = t ? void 0 : {
3341
- light: !0
3342
- },
3343
- defaultColorScheme: i = t == null ? void 0 : t.mode,
3344
- ...s
3345
- } = e, u = i || "light", f = o == null ? void 0 : o[u], d = {
3346
- ...o,
3347
- ...t ? {
3348
- [u]: {
3349
- ...typeof f != "boolean" && f,
3350
- palette: t
3351
- }
3352
- } : void 0
3353
- };
3354
- if (n === !1) {
3355
- if (!("colorSchemes" in e))
3356
- return mr(e, ...r);
3357
- let g = t;
3358
- "palette" in e || d[u] && (d[u] !== !0 ? g = d[u].palette : u === "dark" && (g = {
3359
- mode: "dark"
3360
- }));
3361
- const p = mr({
3362
- ...e,
3363
- palette: g
3364
- }, ...r);
3365
- return p.defaultColorScheme = u, p.colorSchemes = d, p.palette.mode === "light" && (p.colorSchemes.light = {
3366
- ...d.light !== !0 && d.light,
3367
- palette: p.palette
3368
- }, et(p, "dark", d.dark)), p.palette.mode === "dark" && (p.colorSchemes.dark = {
3369
- ...d.dark !== !0 && d.dark,
3370
- palette: p.palette
3371
- }, et(p, "light", d.light)), p;
3372
- }
3373
- return !t && !("light" in d) && u === "light" && (d.light = !0), Uo({
3374
- ...s,
3375
- colorSchemes: d,
3376
- defaultColorScheme: u,
3377
- ...typeof n != "boolean" && n
3378
- }, ...r);
3379
- }
3380
- const Go = zo(), qo = "$$material";
3381
- function Ko(e) {
3382
- return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
3383
- }
3384
- const Ho = (e) => Ko(e) && e !== "classes", ai = Jn({
3385
- themeId: qo,
3386
- defaultTheme: Go,
3387
- rootShouldForwardProp: Ho
3388
- }), si = ao;
3389
- process.env.NODE_ENV !== "production" && (fe.node, fe.object.isRequired);
3390
- function ci(e) {
3391
- return io(e);
3392
- }
3393
- function Qo(e) {
3394
- return typeof e.main == "string";
3395
- }
3396
- function Xo(e, r = []) {
3397
- if (!Qo(e))
3398
- return !1;
3399
- for (const t of r)
3400
- if (!e.hasOwnProperty(t) || typeof e[t] != "string")
3401
- return !1;
3402
- return !0;
3403
- }
3404
- function ui(e = []) {
3405
- return ([, r]) => r && Xo(r, e);
3406
- }
3407
- export {
3408
- Ve as A,
3409
- Ko as B,
3410
- Vt as C,
3411
- fe as P,
3412
- qo as T,
3413
- ii as a,
3414
- vr as b,
3415
- ti as c,
3416
- ni as d,
3417
- ui as e,
3418
- oi as f,
3419
- st as g,
3420
- Ho as h,
3421
- It as i,
3422
- de as j,
3423
- er as k,
3424
- ft as l,
3425
- si as m,
3426
- Yn as n,
3427
- xe as o,
3428
- zo as p,
3429
- Jn as q,
3430
- dr as r,
3431
- ai as s,
3432
- Go as t,
3433
- ci as u,
3434
- Mo as v,
3435
- yr as w,
3436
- br as x,
3437
- ge as y,
3438
- oe as z
3439
- };