@genai-fi/base 4.0.2 → 4.0.3

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