@amateescu/portal-ui-components 0.0.43 → 0.0.44

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