@cgi-learning-hub/ui 0.0.1-dev.1708363971 → 0.0.1-dev.1708424507

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/Button-8coRSZ3M.cjs +1 -0
  2. package/dist/Button-BJMp7Tz3.js +355 -0
  3. package/dist/ButtonBase-DfYGPVje.js +892 -0
  4. package/dist/ButtonBase-xIJbOm-V.cjs +75 -0
  5. package/dist/Input-DS9hzPC3.js +322 -0
  6. package/dist/Input-DWEaLJ-2.cjs +1 -0
  7. package/dist/{InputBase-CGq779n2.js → InputBase-B31rEvBe.js} +59 -60
  8. package/dist/InputBase-BuseI3Oe.cjs +4 -0
  9. package/dist/components/AnotherComponent/AnotherComponent.cjs.js +1 -1
  10. package/dist/components/AnotherComponent/AnotherComponent.es.js +7 -6
  11. package/dist/components/AnotherComponent/AnotherComponent.stories.d.ts +1 -1
  12. package/dist/components/BasicButtons/BasicButtons.cjs.js +1 -1
  13. package/dist/components/BasicButtons/BasicButtons.es.js +22 -23
  14. package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
  15. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +3 -3
  16. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  17. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +12 -13
  18. package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
  19. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
  20. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  21. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  22. package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
  23. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
  24. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  25. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  26. package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
  27. package/dist/components/inputs/SearchInput/SearchInput.es.js +18 -19
  28. package/dist/components/inputs/TextInput/TextInput.cjs.js +13 -13
  29. package/dist/components/inputs/TextInput/TextInput.es.js +1015 -1329
  30. package/dist/{createSvgIcon-CHLyeSLU.js → createSvgIcon-BPyRt0N5.js} +12 -13
  31. package/dist/createSvgIcon-Cz9hf1Fl.cjs +1 -0
  32. package/dist/{extendSxProp-BqGiF689.js → extendSxProp-DzGZiKZk.js} +1 -1
  33. package/dist/extendSxProp-LEI89AMt.cjs +1 -0
  34. package/dist/{useForkRef-GL_-ZsET.js → useForkRef-C0Hk1SEc.js} +1 -1
  35. package/dist/useForkRef-YQvz-OME.cjs +1 -0
  36. package/dist/useTheme-BzgwMQvX.cjs +1 -0
  37. package/dist/{TransitionGroupContext-BjDSFqZJ.js → useTheme-D1_U7jx5.js} +20 -14
  38. package/dist/useThemeProps-Aqe6oH65.cjs +65 -0
  39. package/dist/useThemeProps-Dkkbtzcg.js +2696 -0
  40. package/package.json +1 -1
  41. package/dist/Button-D0o8tGej.cjs +0 -75
  42. package/dist/Button-D0z_AY3E.js +0 -1241
  43. package/dist/InputBase-lIiwyvaO.cjs +0 -4
  44. package/dist/TransitionGroupContext-B6r0bfvS.cjs +0 -1
  45. package/dist/createSvgIcon-DHY1YrJ8.cjs +0 -1
  46. package/dist/defaultTheme-BKohU5FP.js +0 -2232
  47. package/dist/defaultTheme-DdZ2uQhZ.cjs +0 -42
  48. package/dist/extendSxProp-DRVELas3.cjs +0 -1
  49. package/dist/styled-1ec4DLGK.js +0 -472
  50. package/dist/styled-DqWU6H76.cjs +0 -24
  51. package/dist/useForkRef-BkcfGVSE.cjs +0 -1
  52. package/dist/useTheme-B4qd7ENB.js +0 -9
  53. package/dist/useTheme-DjsJvzN5.cjs +0 -1
@@ -1,2232 +0,0 @@
1
- import * as wt from "react";
2
- import { ThemeContext as _t } from "@emotion/react";
3
- function ae(e) {
4
- let t = "https://mui.com/production-error/?code=" + e;
5
- for (let n = 1; n < arguments.length; n += 1)
6
- t += "&args[]=" + encodeURIComponent(arguments[n]);
7
- return "Minified MUI error #" + e + "; visit " + t + " for the full message.";
8
- }
9
- const Pn = "$$material";
10
- function U() {
11
- return U = Object.assign ? Object.assign.bind() : function(e) {
12
- for (var t = 1; t < arguments.length; t++) {
13
- var n = arguments[t];
14
- for (var r in n)
15
- Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
16
- }
17
- return e;
18
- }, U.apply(this, arguments);
19
- }
20
- function ce(e, t) {
21
- if (e == null)
22
- return {};
23
- var n = {}, r = Object.keys(e), o, i;
24
- for (i = 0; i < r.length; i++)
25
- o = r[i], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
26
- return n;
27
- }
28
- function At(e) {
29
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
30
- }
31
- var Ye = { exports: {} }, be = { exports: {} }, C = {};
32
- /** @license React v16.13.1
33
- * react-is.production.min.js
34
- *
35
- * Copyright (c) Facebook, Inc. and its affiliates.
36
- *
37
- * This source code is licensed under the MIT license found in the
38
- * LICENSE file in the root directory of this source tree.
39
- */
40
- var Ze;
41
- function Ct() {
42
- if (Ze)
43
- return C;
44
- Ze = 1;
45
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, g = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, c = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, l = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, I = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
46
- function N(y) {
47
- if (typeof y == "object" && y !== null) {
48
- var X = y.$$typeof;
49
- switch (X) {
50
- case t:
51
- switch (y = y.type, y) {
52
- case p:
53
- case f:
54
- case r:
55
- case i:
56
- case o:
57
- case h:
58
- return y;
59
- default:
60
- switch (y = y && y.$$typeof, y) {
61
- case u:
62
- case g:
63
- case v:
64
- case b:
65
- case s:
66
- return y;
67
- default:
68
- return X;
69
- }
70
- }
71
- case n:
72
- return X;
73
- }
74
- }
75
- }
76
- function B(y) {
77
- return N(y) === f;
78
- }
79
- return C.AsyncMode = p, C.ConcurrentMode = f, C.ContextConsumer = u, C.ContextProvider = s, C.Element = t, C.ForwardRef = g, C.Fragment = r, C.Lazy = v, C.Memo = b, C.Portal = n, C.Profiler = i, C.StrictMode = o, C.Suspense = h, C.isAsyncMode = function(y) {
80
- return B(y) || N(y) === p;
81
- }, C.isConcurrentMode = B, C.isContextConsumer = function(y) {
82
- return N(y) === u;
83
- }, C.isContextProvider = function(y) {
84
- return N(y) === s;
85
- }, C.isElement = function(y) {
86
- return typeof y == "object" && y !== null && y.$$typeof === t;
87
- }, C.isForwardRef = function(y) {
88
- return N(y) === g;
89
- }, C.isFragment = function(y) {
90
- return N(y) === r;
91
- }, C.isLazy = function(y) {
92
- return N(y) === v;
93
- }, C.isMemo = function(y) {
94
- return N(y) === b;
95
- }, C.isPortal = function(y) {
96
- return N(y) === n;
97
- }, C.isProfiler = function(y) {
98
- return N(y) === i;
99
- }, C.isStrictMode = function(y) {
100
- return N(y) === o;
101
- }, C.isSuspense = function(y) {
102
- return N(y) === h;
103
- }, C.isValidElementType = function(y) {
104
- return typeof y == "string" || typeof y == "function" || y === r || y === f || y === i || y === o || y === h || y === c || typeof y == "object" && y !== null && (y.$$typeof === v || y.$$typeof === b || y.$$typeof === s || y.$$typeof === u || y.$$typeof === g || y.$$typeof === T || y.$$typeof === I || y.$$typeof === Y || y.$$typeof === l);
105
- }, C.typeOf = N, C;
106
- }
107
- var P = {};
108
- /** @license React v16.13.1
109
- * react-is.development.js
110
- *
111
- * Copyright (c) Facebook, Inc. and its affiliates.
112
- *
113
- * This source code is licensed under the MIT license found in the
114
- * LICENSE file in the root directory of this source tree.
115
- */
116
- var Qe;
117
- function Pt() {
118
- return Qe || (Qe = 1, process.env.NODE_ENV !== "production" && function() {
119
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, g = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, c = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, l = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, I = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
120
- function N(d) {
121
- return typeof d == "string" || typeof d == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
122
- d === r || d === f || d === i || d === o || d === h || d === c || typeof d == "object" && d !== null && (d.$$typeof === v || d.$$typeof === b || d.$$typeof === s || d.$$typeof === u || d.$$typeof === g || d.$$typeof === T || d.$$typeof === I || d.$$typeof === Y || d.$$typeof === l);
123
- }
124
- function B(d) {
125
- if (typeof d == "object" && d !== null) {
126
- var F = d.$$typeof;
127
- switch (F) {
128
- case t:
129
- var he = d.type;
130
- switch (he) {
131
- case p:
132
- case f:
133
- case r:
134
- case i:
135
- case o:
136
- case h:
137
- return he;
138
- default:
139
- var Je = he && he.$$typeof;
140
- switch (Je) {
141
- case u:
142
- case g:
143
- case v:
144
- case b:
145
- case s:
146
- return Je;
147
- default:
148
- return F;
149
- }
150
- }
151
- case n:
152
- return F;
153
- }
154
- }
155
- }
156
- var y = p, X = f, Ce = u, Pe = s, Re = t, Ie = g, me = r, je = v, ke = b, Q = n, Me = i, q = o, J = h, ge = !1;
157
- function Ne(d) {
158
- return ge || (ge = !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.")), a(d) || B(d) === p;
159
- }
160
- function a(d) {
161
- return B(d) === f;
162
- }
163
- function m(d) {
164
- return B(d) === u;
165
- }
166
- function $(d) {
167
- return B(d) === s;
168
- }
169
- function x(d) {
170
- return typeof d == "object" && d !== null && d.$$typeof === t;
171
- }
172
- function E(d) {
173
- return B(d) === g;
174
- }
175
- function w(d) {
176
- return B(d) === r;
177
- }
178
- function O(d) {
179
- return B(d) === v;
180
- }
181
- function S(d) {
182
- return B(d) === b;
183
- }
184
- function _(d) {
185
- return B(d) === n;
186
- }
187
- function R(d) {
188
- return B(d) === i;
189
- }
190
- function A(d) {
191
- return B(d) === o;
192
- }
193
- function W(d) {
194
- return B(d) === h;
195
- }
196
- P.AsyncMode = y, P.ConcurrentMode = X, P.ContextConsumer = Ce, P.ContextProvider = Pe, P.Element = Re, P.ForwardRef = Ie, P.Fragment = me, P.Lazy = je, P.Memo = ke, P.Portal = Q, P.Profiler = Me, P.StrictMode = q, P.Suspense = J, P.isAsyncMode = Ne, P.isConcurrentMode = a, P.isContextConsumer = m, P.isContextProvider = $, P.isElement = x, P.isForwardRef = E, P.isFragment = w, P.isLazy = O, P.isMemo = S, P.isPortal = _, P.isProfiler = R, P.isStrictMode = A, P.isSuspense = W, P.isValidElementType = N, P.typeOf = B;
197
- }()), P;
198
- }
199
- var et;
200
- function ht() {
201
- return et || (et = 1, process.env.NODE_ENV === "production" ? be.exports = Ct() : be.exports = Pt()), be.exports;
202
- }
203
- /*
204
- object-assign
205
- (c) Sindre Sorhus
206
- @license MIT
207
- */
208
- var De, tt;
209
- function Rt() {
210
- if (tt)
211
- return De;
212
- tt = 1;
213
- var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
214
- function r(i) {
215
- if (i == null)
216
- throw new TypeError("Object.assign cannot be called with null or undefined");
217
- return Object(i);
218
- }
219
- function o() {
220
- try {
221
- if (!Object.assign)
222
- return !1;
223
- var i = new String("abc");
224
- if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
225
- return !1;
226
- for (var s = {}, u = 0; u < 10; u++)
227
- s["_" + String.fromCharCode(u)] = u;
228
- var p = Object.getOwnPropertyNames(s).map(function(g) {
229
- return s[g];
230
- });
231
- if (p.join("") !== "0123456789")
232
- return !1;
233
- var f = {};
234
- return "abcdefghijklmnopqrst".split("").forEach(function(g) {
235
- f[g] = g;
236
- }), Object.keys(Object.assign({}, f)).join("") === "abcdefghijklmnopqrst";
237
- } catch {
238
- return !1;
239
- }
240
- }
241
- return De = o() ? Object.assign : function(i, s) {
242
- for (var u, p = r(i), f, g = 1; g < arguments.length; g++) {
243
- u = Object(arguments[g]);
244
- for (var h in u)
245
- t.call(u, h) && (p[h] = u[h]);
246
- if (e) {
247
- f = e(u);
248
- for (var c = 0; c < f.length; c++)
249
- n.call(u, f[c]) && (p[f[c]] = u[f[c]]);
250
- }
251
- }
252
- return p;
253
- }, De;
254
- }
255
- var Be, rt;
256
- function qe() {
257
- if (rt)
258
- return Be;
259
- rt = 1;
260
- var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
261
- return Be = e, Be;
262
- }
263
- var Ue, nt;
264
- function bt() {
265
- return nt || (nt = 1, Ue = Function.call.bind(Object.prototype.hasOwnProperty)), Ue;
266
- }
267
- var We, ot;
268
- function It() {
269
- if (ot)
270
- return We;
271
- ot = 1;
272
- var e = function() {
273
- };
274
- if (process.env.NODE_ENV !== "production") {
275
- var t = qe(), n = {}, r = bt();
276
- e = function(i) {
277
- var s = "Warning: " + i;
278
- typeof console < "u" && console.error(s);
279
- try {
280
- throw new Error(s);
281
- } catch {
282
- }
283
- };
284
- }
285
- function o(i, s, u, p, f) {
286
- if (process.env.NODE_ENV !== "production") {
287
- for (var g in i)
288
- if (r(i, g)) {
289
- var h;
290
- try {
291
- if (typeof i[g] != "function") {
292
- var c = Error(
293
- (p || "React class") + ": " + u + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
294
- );
295
- throw c.name = "Invariant Violation", c;
296
- }
297
- h = i[g](s, g, p, u, null, t);
298
- } catch (v) {
299
- h = v;
300
- }
301
- if (h && !(h instanceof Error) && e(
302
- (p || "React class") + ": type specification of " + u + " `" + g + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
303
- ), h instanceof Error && !(h.message in n)) {
304
- n[h.message] = !0;
305
- var b = f ? f() : "";
306
- e(
307
- "Failed " + u + " type: " + h.message + (b ?? "")
308
- );
309
- }
310
- }
311
- }
312
- }
313
- return o.resetWarningCache = function() {
314
- process.env.NODE_ENV !== "production" && (n = {});
315
- }, We = o, We;
316
- }
317
- var ze, it;
318
- function jt() {
319
- if (it)
320
- return ze;
321
- it = 1;
322
- var e = ht(), t = Rt(), n = qe(), r = bt(), o = It(), i = function() {
323
- };
324
- process.env.NODE_ENV !== "production" && (i = function(u) {
325
- var p = "Warning: " + u;
326
- typeof console < "u" && console.error(p);
327
- try {
328
- throw new Error(p);
329
- } catch {
330
- }
331
- });
332
- function s() {
333
- return null;
334
- }
335
- return ze = function(u, p) {
336
- var f = typeof Symbol == "function" && Symbol.iterator, g = "@@iterator";
337
- function h(a) {
338
- var m = a && (f && a[f] || a[g]);
339
- if (typeof m == "function")
340
- return m;
341
- }
342
- var c = "<<anonymous>>", b = {
343
- array: I("array"),
344
- bigint: I("bigint"),
345
- bool: I("boolean"),
346
- func: I("function"),
347
- number: I("number"),
348
- object: I("object"),
349
- string: I("string"),
350
- symbol: I("symbol"),
351
- any: Y(),
352
- arrayOf: N,
353
- element: B(),
354
- elementType: y(),
355
- instanceOf: X,
356
- node: Ie(),
357
- objectOf: Pe,
358
- oneOf: Ce,
359
- oneOfType: Re,
360
- shape: je,
361
- exact: ke
362
- };
363
- function v(a, m) {
364
- return a === m ? a !== 0 || 1 / a === 1 / m : a !== a && m !== m;
365
- }
366
- function l(a, m) {
367
- this.message = a, this.data = m && typeof m == "object" ? m : {}, this.stack = "";
368
- }
369
- l.prototype = Error.prototype;
370
- function T(a) {
371
- if (process.env.NODE_ENV !== "production")
372
- var m = {}, $ = 0;
373
- function x(w, O, S, _, R, A, W) {
374
- if (_ = _ || c, A = A || S, W !== n) {
375
- if (p) {
376
- var d = new Error(
377
- "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"
378
- );
379
- throw d.name = "Invariant Violation", d;
380
- } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
381
- var F = _ + ":" + S;
382
- !m[F] && // Avoid spamming the console because they are often not actionable except for lib authors
383
- $ < 3 && (i(
384
- "You are manually calling a React.PropTypes validation function for the `" + A + "` prop on `" + _ + "`. 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."
385
- ), m[F] = !0, $++);
386
- }
387
- }
388
- return O[S] == null ? w ? O[S] === null ? new l("The " + R + " `" + A + "` is marked as required " + ("in `" + _ + "`, but its value is `null`.")) : new l("The " + R + " `" + A + "` is marked as required in " + ("`" + _ + "`, but its value is `undefined`.")) : null : a(O, S, _, R, A);
389
- }
390
- var E = x.bind(null, !1);
391
- return E.isRequired = x.bind(null, !0), E;
392
- }
393
- function I(a) {
394
- function m($, x, E, w, O, S) {
395
- var _ = $[x], R = q(_);
396
- if (R !== a) {
397
- var A = J(_);
398
- return new l(
399
- "Invalid " + w + " `" + O + "` of type " + ("`" + A + "` supplied to `" + E + "`, expected ") + ("`" + a + "`."),
400
- { expectedType: a }
401
- );
402
- }
403
- return null;
404
- }
405
- return T(m);
406
- }
407
- function Y() {
408
- return T(s);
409
- }
410
- function N(a) {
411
- function m($, x, E, w, O) {
412
- if (typeof a != "function")
413
- return new l("Property `" + O + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
414
- var S = $[x];
415
- if (!Array.isArray(S)) {
416
- var _ = q(S);
417
- return new l("Invalid " + w + " `" + O + "` of type " + ("`" + _ + "` supplied to `" + E + "`, expected an array."));
418
- }
419
- for (var R = 0; R < S.length; R++) {
420
- var A = a(S, R, E, w, O + "[" + R + "]", n);
421
- if (A instanceof Error)
422
- return A;
423
- }
424
- return null;
425
- }
426
- return T(m);
427
- }
428
- function B() {
429
- function a(m, $, x, E, w) {
430
- var O = m[$];
431
- if (!u(O)) {
432
- var S = q(O);
433
- return new l("Invalid " + E + " `" + w + "` of type " + ("`" + S + "` supplied to `" + x + "`, expected a single ReactElement."));
434
- }
435
- return null;
436
- }
437
- return T(a);
438
- }
439
- function y() {
440
- function a(m, $, x, E, w) {
441
- var O = m[$];
442
- if (!e.isValidElementType(O)) {
443
- var S = q(O);
444
- return new l("Invalid " + E + " `" + w + "` of type " + ("`" + S + "` supplied to `" + x + "`, expected a single ReactElement type."));
445
- }
446
- return null;
447
- }
448
- return T(a);
449
- }
450
- function X(a) {
451
- function m($, x, E, w, O) {
452
- if (!($[x] instanceof a)) {
453
- var S = a.name || c, _ = Ne($[x]);
454
- return new l("Invalid " + w + " `" + O + "` of type " + ("`" + _ + "` supplied to `" + E + "`, expected ") + ("instance of `" + S + "`."));
455
- }
456
- return null;
457
- }
458
- return T(m);
459
- }
460
- function Ce(a) {
461
- if (!Array.isArray(a))
462
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
463
- "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])."
464
- ) : i("Invalid argument supplied to oneOf, expected an array.")), s;
465
- function m($, x, E, w, O) {
466
- for (var S = $[x], _ = 0; _ < a.length; _++)
467
- if (v(S, a[_]))
468
- return null;
469
- var R = JSON.stringify(a, function(W, d) {
470
- var F = J(d);
471
- return F === "symbol" ? String(d) : d;
472
- });
473
- return new l("Invalid " + w + " `" + O + "` of value `" + String(S) + "` " + ("supplied to `" + E + "`, expected one of " + R + "."));
474
- }
475
- return T(m);
476
- }
477
- function Pe(a) {
478
- function m($, x, E, w, O) {
479
- if (typeof a != "function")
480
- return new l("Property `" + O + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
481
- var S = $[x], _ = q(S);
482
- if (_ !== "object")
483
- return new l("Invalid " + w + " `" + O + "` of type " + ("`" + _ + "` supplied to `" + E + "`, expected an object."));
484
- for (var R in S)
485
- if (r(S, R)) {
486
- var A = a(S, R, E, w, O + "." + R, n);
487
- if (A instanceof Error)
488
- return A;
489
- }
490
- return null;
491
- }
492
- return T(m);
493
- }
494
- function Re(a) {
495
- if (!Array.isArray(a))
496
- return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
497
- for (var m = 0; m < a.length; m++) {
498
- var $ = a[m];
499
- if (typeof $ != "function")
500
- return i(
501
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ge($) + " at index " + m + "."
502
- ), s;
503
- }
504
- function x(E, w, O, S, _) {
505
- for (var R = [], A = 0; A < a.length; A++) {
506
- var W = a[A], d = W(E, w, O, S, _, n);
507
- if (d == null)
508
- return null;
509
- d.data && r(d.data, "expectedType") && R.push(d.data.expectedType);
510
- }
511
- var F = R.length > 0 ? ", expected one of type [" + R.join(", ") + "]" : "";
512
- return new l("Invalid " + S + " `" + _ + "` supplied to " + ("`" + O + "`" + F + "."));
513
- }
514
- return T(x);
515
- }
516
- function Ie() {
517
- function a(m, $, x, E, w) {
518
- return Q(m[$]) ? null : new l("Invalid " + E + " `" + w + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
519
- }
520
- return T(a);
521
- }
522
- function me(a, m, $, x, E) {
523
- return new l(
524
- (a || "React class") + ": " + m + " type `" + $ + "." + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
525
- );
526
- }
527
- function je(a) {
528
- function m($, x, E, w, O) {
529
- var S = $[x], _ = q(S);
530
- if (_ !== "object")
531
- return new l("Invalid " + w + " `" + O + "` of type `" + _ + "` " + ("supplied to `" + E + "`, expected `object`."));
532
- for (var R in a) {
533
- var A = a[R];
534
- if (typeof A != "function")
535
- return me(E, w, O, R, J(A));
536
- var W = A(S, R, E, w, O + "." + R, n);
537
- if (W)
538
- return W;
539
- }
540
- return null;
541
- }
542
- return T(m);
543
- }
544
- function ke(a) {
545
- function m($, x, E, w, O) {
546
- var S = $[x], _ = q(S);
547
- if (_ !== "object")
548
- return new l("Invalid " + w + " `" + O + "` of type `" + _ + "` " + ("supplied to `" + E + "`, expected `object`."));
549
- var R = t({}, $[x], a);
550
- for (var A in R) {
551
- var W = a[A];
552
- if (r(a, A) && typeof W != "function")
553
- return me(E, w, O, A, J(W));
554
- if (!W)
555
- return new l(
556
- "Invalid " + w + " `" + O + "` key `" + A + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify($[x], null, " ") + `
557
- Valid keys: ` + JSON.stringify(Object.keys(a), null, " ")
558
- );
559
- var d = W(S, A, E, w, O + "." + A, n);
560
- if (d)
561
- return d;
562
- }
563
- return null;
564
- }
565
- return T(m);
566
- }
567
- function Q(a) {
568
- switch (typeof a) {
569
- case "number":
570
- case "string":
571
- case "undefined":
572
- return !0;
573
- case "boolean":
574
- return !a;
575
- case "object":
576
- if (Array.isArray(a))
577
- return a.every(Q);
578
- if (a === null || u(a))
579
- return !0;
580
- var m = h(a);
581
- if (m) {
582
- var $ = m.call(a), x;
583
- if (m !== a.entries) {
584
- for (; !(x = $.next()).done; )
585
- if (!Q(x.value))
586
- return !1;
587
- } else
588
- for (; !(x = $.next()).done; ) {
589
- var E = x.value;
590
- if (E && !Q(E[1]))
591
- return !1;
592
- }
593
- } else
594
- return !1;
595
- return !0;
596
- default:
597
- return !1;
598
- }
599
- }
600
- function Me(a, m) {
601
- return a === "symbol" ? !0 : m ? m["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && m instanceof Symbol : !1;
602
- }
603
- function q(a) {
604
- var m = typeof a;
605
- return Array.isArray(a) ? "array" : a instanceof RegExp ? "object" : Me(m, a) ? "symbol" : m;
606
- }
607
- function J(a) {
608
- if (typeof a > "u" || a === null)
609
- return "" + a;
610
- var m = q(a);
611
- if (m === "object") {
612
- if (a instanceof Date)
613
- return "date";
614
- if (a instanceof RegExp)
615
- return "regexp";
616
- }
617
- return m;
618
- }
619
- function ge(a) {
620
- var m = J(a);
621
- switch (m) {
622
- case "array":
623
- case "object":
624
- return "an " + m;
625
- case "boolean":
626
- case "date":
627
- case "regexp":
628
- return "a " + m;
629
- default:
630
- return m;
631
- }
632
- }
633
- function Ne(a) {
634
- return !a.constructor || !a.constructor.name ? c : a.constructor.name;
635
- }
636
- return b.checkPropTypes = o, b.resetWarningCache = o.resetWarningCache, b.PropTypes = b, b;
637
- }, ze;
638
- }
639
- var Ke, st;
640
- function kt() {
641
- if (st)
642
- return Ke;
643
- st = 1;
644
- var e = qe();
645
- function t() {
646
- }
647
- function n() {
648
- }
649
- return n.resetWarningCache = t, Ke = function() {
650
- function r(s, u, p, f, g, h) {
651
- if (h !== e) {
652
- var c = new Error(
653
- "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"
654
- );
655
- throw c.name = "Invariant Violation", c;
656
- }
657
- }
658
- r.isRequired = r;
659
- function o() {
660
- return r;
661
- }
662
- var i = {
663
- array: r,
664
- bigint: r,
665
- bool: r,
666
- func: r,
667
- number: r,
668
- object: r,
669
- string: r,
670
- symbol: r,
671
- any: r,
672
- arrayOf: o,
673
- element: r,
674
- elementType: r,
675
- instanceOf: o,
676
- node: r,
677
- objectOf: o,
678
- oneOf: o,
679
- oneOfType: o,
680
- shape: o,
681
- exact: o,
682
- checkPropTypes: n,
683
- resetWarningCache: t
684
- };
685
- return i.PropTypes = i, i;
686
- }, Ke;
687
- }
688
- if (process.env.NODE_ENV !== "production") {
689
- var Mt = ht(), Nt = !0;
690
- Ye.exports = jt()(Mt.isElement, Nt);
691
- } else
692
- Ye.exports = kt()();
693
- var Dt = Ye.exports;
694
- const ue = /* @__PURE__ */ At(Dt);
695
- function ie(e) {
696
- if (typeof e != "object" || e === null)
697
- return !1;
698
- const t = Object.getPrototypeOf(e);
699
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
700
- }
701
- function vt(e) {
702
- if (!ie(e))
703
- return e;
704
- const t = {};
705
- return Object.keys(e).forEach((n) => {
706
- t[n] = vt(e[n]);
707
- }), t;
708
- }
709
- function G(e, t, n = {
710
- clone: !0
711
- }) {
712
- const r = n.clone ? U({}, e) : e;
713
- return ie(e) && ie(t) && Object.keys(t).forEach((o) => {
714
- o !== "__proto__" && (ie(t[o]) && o in e && ie(e[o]) ? r[o] = G(e[o], t[o], n) : n.clone ? r[o] = ie(t[o]) ? vt(t[o]) : t[o] : r[o] = t[o]);
715
- }), r;
716
- }
717
- function Et(e) {
718
- if (typeof e != "string")
719
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : ae(7));
720
- return e.charAt(0).toUpperCase() + e.slice(1);
721
- }
722
- const at = (e) => e, Bt = () => {
723
- let e = at;
724
- return {
725
- configure(t) {
726
- e = t;
727
- },
728
- generate(t) {
729
- return e(t);
730
- },
731
- reset() {
732
- e = at;
733
- }
734
- };
735
- }, Ut = Bt(), Wt = {
736
- active: "active",
737
- checked: "checked",
738
- completed: "completed",
739
- disabled: "disabled",
740
- error: "error",
741
- expanded: "expanded",
742
- focused: "focused",
743
- focusVisible: "focusVisible",
744
- open: "open",
745
- readOnly: "readOnly",
746
- required: "required",
747
- selected: "selected"
748
- };
749
- function zt(e, t, n = "Mui") {
750
- const r = Wt[t];
751
- return r ? `${n}-${r}` : `${Ut.generate(e)}-${t}`;
752
- }
753
- function Kt(e, t = Number.MIN_SAFE_INTEGER, n = Number.MAX_SAFE_INTEGER) {
754
- return Math.max(t, Math.min(e, n));
755
- }
756
- const Lt = ["values", "unit", "step"], Yt = (e) => {
757
- const t = Object.keys(e).map((n) => ({
758
- key: n,
759
- val: e[n]
760
- })) || [];
761
- return t.sort((n, r) => n.val - r.val), t.reduce((n, r) => U({}, n, {
762
- [r.key]: r.val
763
- }), {});
764
- };
765
- function qt(e) {
766
- const {
767
- // The breakpoint **start** at this value.
768
- // For instance with the first breakpoint xs: [xs, sm).
769
- values: t = {
770
- xs: 0,
771
- // phone
772
- sm: 600,
773
- // tablet
774
- md: 900,
775
- // small laptop
776
- lg: 1200,
777
- // desktop
778
- xl: 1536
779
- // large screen
780
- },
781
- unit: n = "px",
782
- step: r = 5
783
- } = e, o = ce(e, Lt), i = Yt(t), s = Object.keys(i);
784
- function u(c) {
785
- return `@media (min-width:${typeof t[c] == "number" ? t[c] : c}${n})`;
786
- }
787
- function p(c) {
788
- return `@media (max-width:${(typeof t[c] == "number" ? t[c] : c) - r / 100}${n})`;
789
- }
790
- function f(c, b) {
791
- const v = s.indexOf(b);
792
- return `@media (min-width:${typeof t[c] == "number" ? t[c] : c}${n}) and (max-width:${(v !== -1 && typeof t[s[v]] == "number" ? t[s[v]] : b) - r / 100}${n})`;
793
- }
794
- function g(c) {
795
- return s.indexOf(c) + 1 < s.length ? f(c, s[s.indexOf(c) + 1]) : u(c);
796
- }
797
- function h(c) {
798
- const b = s.indexOf(c);
799
- return b === 0 ? u(s[1]) : b === s.length - 1 ? p(s[b]) : f(c, s[s.indexOf(c) + 1]).replace("@media", "@media not all and");
800
- }
801
- return U({
802
- keys: s,
803
- values: i,
804
- up: u,
805
- down: p,
806
- between: f,
807
- only: g,
808
- not: h,
809
- unit: n
810
- }, o);
811
- }
812
- const Ft = {
813
- borderRadius: 4
814
- }, Gt = Ft, Ht = process.env.NODE_ENV !== "production" ? ue.oneOfType([ue.number, ue.string, ue.object, ue.array]) : {}, V = Ht;
815
- function le(e, t) {
816
- return t ? G(e, t, {
817
- clone: !1
818
- // No need to clone deep, it's way faster.
819
- }) : e;
820
- }
821
- const Fe = {
822
- xs: 0,
823
- // phone
824
- sm: 600,
825
- // tablet
826
- md: 900,
827
- // small laptop
828
- lg: 1200,
829
- // desktop
830
- xl: 1536
831
- // large screen
832
- }, ct = {
833
- // Sorted ASC by size. That's important.
834
- // It can't be configured as it's used statically for propTypes.
835
- keys: ["xs", "sm", "md", "lg", "xl"],
836
- up: (e) => `@media (min-width:${Fe[e]}px)`
837
- };
838
- function H(e, t, n) {
839
- const r = e.theme || {};
840
- if (Array.isArray(t)) {
841
- const i = r.breakpoints || ct;
842
- return t.reduce((s, u, p) => (s[i.up(i.keys[p])] = n(t[p]), s), {});
843
- }
844
- if (typeof t == "object") {
845
- const i = r.breakpoints || ct;
846
- return Object.keys(t).reduce((s, u) => {
847
- if (Object.keys(i.values || Fe).indexOf(u) !== -1) {
848
- const p = i.up(u);
849
- s[p] = n(t[u], u);
850
- } else {
851
- const p = u;
852
- s[p] = t[p];
853
- }
854
- return s;
855
- }, {});
856
- }
857
- return n(t);
858
- }
859
- function Ot(e = {}) {
860
- var t;
861
- return ((t = e.keys) == null ? void 0 : t.reduce((r, o) => {
862
- const i = e.up(o);
863
- return r[i] = {}, r;
864
- }, {})) || {};
865
- }
866
- function Tt(e, t) {
867
- return e.reduce((n, r) => {
868
- const o = n[r];
869
- return (!o || Object.keys(o).length === 0) && delete n[r], n;
870
- }, t);
871
- }
872
- function Rn(e, ...t) {
873
- const n = Ot(e), r = [n, ...t].reduce((o, i) => G(o, i), {});
874
- return Tt(Object.keys(n), r);
875
- }
876
- function Vt(e, t) {
877
- if (typeof e != "object")
878
- return {};
879
- const n = {}, r = Object.keys(t);
880
- return Array.isArray(e) ? r.forEach((o, i) => {
881
- i < e.length && (n[o] = !0);
882
- }) : r.forEach((o) => {
883
- e[o] != null && (n[o] = !0);
884
- }), n;
885
- }
886
- function In({
887
- values: e,
888
- breakpoints: t,
889
- base: n
890
- }) {
891
- const r = n || Vt(e, t), o = Object.keys(r);
892
- if (o.length === 0)
893
- return e;
894
- let i;
895
- return o.reduce((s, u, p) => (Array.isArray(e) ? (s[u] = e[p] != null ? e[p] : e[i], i = p) : typeof e == "object" ? (s[u] = e[u] != null ? e[u] : e[i], i = u) : s[u] = e, s), {});
896
- }
897
- function Ee(e, t, n = !0) {
898
- if (!t || typeof t != "string")
899
- return null;
900
- if (e && e.vars && n) {
901
- const r = `vars.${t}`.split(".").reduce((o, i) => o && o[i] ? o[i] : null, e);
902
- if (r != null)
903
- return r;
904
- }
905
- return t.split(".").reduce((r, o) => r && r[o] != null ? r[o] : null, e);
906
- }
907
- function ve(e, t, n, r = n) {
908
- let o;
909
- return typeof e == "function" ? o = e(n) : Array.isArray(e) ? o = e[n] || r : o = Ee(e, n) || r, t && (o = t(o, r, e)), o;
910
- }
911
- function D(e) {
912
- const {
913
- prop: t,
914
- cssProperty: n = e.prop,
915
- themeKey: r,
916
- transform: o
917
- } = e, i = (s) => {
918
- if (s[t] == null)
919
- return null;
920
- const u = s[t], p = s.theme, f = Ee(p, r) || {};
921
- return H(s, u, (h) => {
922
- let c = ve(f, o, h);
923
- return h === c && typeof h == "string" && (c = ve(f, o, `${t}${h === "default" ? "" : Et(h)}`, h)), n === !1 ? c : {
924
- [n]: c
925
- };
926
- });
927
- };
928
- return i.propTypes = process.env.NODE_ENV !== "production" ? {
929
- [t]: V
930
- } : {}, i.filterProps = [t], i;
931
- }
932
- function Xt(e) {
933
- const t = {};
934
- return (n) => (t[n] === void 0 && (t[n] = e(n)), t[n]);
935
- }
936
- const Jt = {
937
- m: "margin",
938
- p: "padding"
939
- }, Zt = {
940
- t: "Top",
941
- r: "Right",
942
- b: "Bottom",
943
- l: "Left",
944
- x: ["Left", "Right"],
945
- y: ["Top", "Bottom"]
946
- }, ut = {
947
- marginX: "mx",
948
- marginY: "my",
949
- paddingX: "px",
950
- paddingY: "py"
951
- }, Qt = Xt((e) => {
952
- if (e.length > 2)
953
- if (ut[e])
954
- e = ut[e];
955
- else
956
- return [e];
957
- const [t, n] = e.split(""), r = Jt[t], o = Zt[n] || "";
958
- return Array.isArray(o) ? o.map((i) => r + i) : [r + o];
959
- }), Oe = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], Te = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], er = [...Oe, ...Te];
960
- function pe(e, t, n, r) {
961
- var o;
962
- const i = (o = Ee(e, t, !1)) != null ? o : n;
963
- return typeof i == "number" ? (s) => typeof s == "string" ? s : (process.env.NODE_ENV !== "production" && typeof s != "number" && console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`), i * s) : Array.isArray(i) ? (s) => typeof s == "string" ? s : (process.env.NODE_ENV !== "production" && (Number.isInteger(s) ? s > i.length - 1 && console.error([`MUI: The value provided (${s}) overflows.`, `The supported values are: ${JSON.stringify(i)}.`, `${s} > ${i.length - 1}, you need to add the missing values.`].join(`
964
- `)) : console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
965
- `))), i[s]) : typeof i == "function" ? i : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`, "It should be a number, an array or a function."].join(`
966
- `)), () => {
967
- });
968
- }
969
- function xt(e) {
970
- return pe(e, "spacing", 8, "spacing");
971
- }
972
- function ye(e, t) {
973
- if (typeof t == "string" || t == null)
974
- return t;
975
- const n = Math.abs(t), r = e(n);
976
- return t >= 0 ? r : typeof r == "number" ? -r : `-${r}`;
977
- }
978
- function tr(e, t) {
979
- return (n) => e.reduce((r, o) => (r[o] = ye(t, n), r), {});
980
- }
981
- function rr(e, t, n, r) {
982
- if (t.indexOf(n) === -1)
983
- return null;
984
- const o = Qt(n), i = tr(o, r), s = e[n];
985
- return H(e, s, i);
986
- }
987
- function St(e, t) {
988
- const n = xt(e.theme);
989
- return Object.keys(e).map((r) => rr(e, t, r, n)).reduce(le, {});
990
- }
991
- function k(e) {
992
- return St(e, Oe);
993
- }
994
- k.propTypes = process.env.NODE_ENV !== "production" ? Oe.reduce((e, t) => (e[t] = V, e), {}) : {};
995
- k.filterProps = Oe;
996
- function M(e) {
997
- return St(e, Te);
998
- }
999
- M.propTypes = process.env.NODE_ENV !== "production" ? Te.reduce((e, t) => (e[t] = V, e), {}) : {};
1000
- M.filterProps = Te;
1001
- process.env.NODE_ENV !== "production" && er.reduce((e, t) => (e[t] = V, e), {});
1002
- function nr(e = 8) {
1003
- if (e.mui)
1004
- return e;
1005
- const t = xt({
1006
- spacing: e
1007
- }), n = (...r) => (process.env.NODE_ENV !== "production" && (r.length <= 4 || console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)), (r.length === 0 ? [1] : r).map((i) => {
1008
- const s = t(i);
1009
- return typeof s == "number" ? `${s}px` : s;
1010
- }).join(" "));
1011
- return n.mui = !0, n;
1012
- }
1013
- function xe(...e) {
1014
- const t = e.reduce((r, o) => (o.filterProps.forEach((i) => {
1015
- r[i] = o;
1016
- }), r), {}), n = (r) => Object.keys(r).reduce((o, i) => t[i] ? le(o, t[i](r)) : o, {});
1017
- return n.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((r, o) => Object.assign(r, o.propTypes), {}) : {}, n.filterProps = e.reduce((r, o) => r.concat(o.filterProps), []), n;
1018
- }
1019
- function K(e) {
1020
- return typeof e != "number" ? e : `${e}px solid`;
1021
- }
1022
- function L(e, t) {
1023
- return D({
1024
- prop: e,
1025
- themeKey: "borders",
1026
- transform: t
1027
- });
1028
- }
1029
- const or = L("border", K), ir = L("borderTop", K), sr = L("borderRight", K), ar = L("borderBottom", K), cr = L("borderLeft", K), ur = L("borderColor"), fr = L("borderTopColor"), lr = L("borderRightColor"), dr = L("borderBottomColor"), pr = L("borderLeftColor"), yr = L("outline", K), mr = L("outlineColor"), Se = (e) => {
1030
- if (e.borderRadius !== void 0 && e.borderRadius !== null) {
1031
- const t = pe(e.theme, "shape.borderRadius", 4, "borderRadius"), n = (r) => ({
1032
- borderRadius: ye(t, r)
1033
- });
1034
- return H(e, e.borderRadius, n);
1035
- }
1036
- return null;
1037
- };
1038
- Se.propTypes = process.env.NODE_ENV !== "production" ? {
1039
- borderRadius: V
1040
- } : {};
1041
- Se.filterProps = ["borderRadius"];
1042
- xe(or, ir, sr, ar, cr, ur, fr, lr, dr, pr, Se, yr, mr);
1043
- const $e = (e) => {
1044
- if (e.gap !== void 0 && e.gap !== null) {
1045
- const t = pe(e.theme, "spacing", 8, "gap"), n = (r) => ({
1046
- gap: ye(t, r)
1047
- });
1048
- return H(e, e.gap, n);
1049
- }
1050
- return null;
1051
- };
1052
- $e.propTypes = process.env.NODE_ENV !== "production" ? {
1053
- gap: V
1054
- } : {};
1055
- $e.filterProps = ["gap"];
1056
- const we = (e) => {
1057
- if (e.columnGap !== void 0 && e.columnGap !== null) {
1058
- const t = pe(e.theme, "spacing", 8, "columnGap"), n = (r) => ({
1059
- columnGap: ye(t, r)
1060
- });
1061
- return H(e, e.columnGap, n);
1062
- }
1063
- return null;
1064
- };
1065
- we.propTypes = process.env.NODE_ENV !== "production" ? {
1066
- columnGap: V
1067
- } : {};
1068
- we.filterProps = ["columnGap"];
1069
- const _e = (e) => {
1070
- if (e.rowGap !== void 0 && e.rowGap !== null) {
1071
- const t = pe(e.theme, "spacing", 8, "rowGap"), n = (r) => ({
1072
- rowGap: ye(t, r)
1073
- });
1074
- return H(e, e.rowGap, n);
1075
- }
1076
- return null;
1077
- };
1078
- _e.propTypes = process.env.NODE_ENV !== "production" ? {
1079
- rowGap: V
1080
- } : {};
1081
- _e.filterProps = ["rowGap"];
1082
- const gr = D({
1083
- prop: "gridColumn"
1084
- }), hr = D({
1085
- prop: "gridRow"
1086
- }), br = D({
1087
- prop: "gridAutoFlow"
1088
- }), vr = D({
1089
- prop: "gridAutoColumns"
1090
- }), Er = D({
1091
- prop: "gridAutoRows"
1092
- }), Or = D({
1093
- prop: "gridTemplateColumns"
1094
- }), Tr = D({
1095
- prop: "gridTemplateRows"
1096
- }), xr = D({
1097
- prop: "gridTemplateAreas"
1098
- }), Sr = D({
1099
- prop: "gridArea"
1100
- });
1101
- xe($e, we, _e, gr, hr, br, vr, Er, Or, Tr, xr, Sr);
1102
- function se(e, t) {
1103
- return t === "grey" ? t : e;
1104
- }
1105
- const $r = D({
1106
- prop: "color",
1107
- themeKey: "palette",
1108
- transform: se
1109
- }), wr = D({
1110
- prop: "bgcolor",
1111
- cssProperty: "backgroundColor",
1112
- themeKey: "palette",
1113
- transform: se
1114
- }), _r = D({
1115
- prop: "backgroundColor",
1116
- themeKey: "palette",
1117
- transform: se
1118
- });
1119
- xe($r, wr, _r);
1120
- function z(e) {
1121
- return e <= 1 && e !== 0 ? `${e * 100}%` : e;
1122
- }
1123
- const Ar = D({
1124
- prop: "width",
1125
- transform: z
1126
- }), Ge = (e) => {
1127
- if (e.maxWidth !== void 0 && e.maxWidth !== null) {
1128
- const t = (n) => {
1129
- var r, o;
1130
- const i = ((r = e.theme) == null || (r = r.breakpoints) == null || (r = r.values) == null ? void 0 : r[n]) || Fe[n];
1131
- return i ? ((o = e.theme) == null || (o = o.breakpoints) == null ? void 0 : o.unit) !== "px" ? {
1132
- maxWidth: `${i}${e.theme.breakpoints.unit}`
1133
- } : {
1134
- maxWidth: i
1135
- } : {
1136
- maxWidth: z(n)
1137
- };
1138
- };
1139
- return H(e, e.maxWidth, t);
1140
- }
1141
- return null;
1142
- };
1143
- Ge.filterProps = ["maxWidth"];
1144
- const Cr = D({
1145
- prop: "minWidth",
1146
- transform: z
1147
- }), Pr = D({
1148
- prop: "height",
1149
- transform: z
1150
- }), Rr = D({
1151
- prop: "maxHeight",
1152
- transform: z
1153
- }), Ir = D({
1154
- prop: "minHeight",
1155
- transform: z
1156
- });
1157
- D({
1158
- prop: "size",
1159
- cssProperty: "width",
1160
- transform: z
1161
- });
1162
- D({
1163
- prop: "size",
1164
- cssProperty: "height",
1165
- transform: z
1166
- });
1167
- const jr = D({
1168
- prop: "boxSizing"
1169
- });
1170
- xe(Ar, Ge, Cr, Pr, Rr, Ir, jr);
1171
- const kr = {
1172
- // borders
1173
- border: {
1174
- themeKey: "borders",
1175
- transform: K
1176
- },
1177
- borderTop: {
1178
- themeKey: "borders",
1179
- transform: K
1180
- },
1181
- borderRight: {
1182
- themeKey: "borders",
1183
- transform: K
1184
- },
1185
- borderBottom: {
1186
- themeKey: "borders",
1187
- transform: K
1188
- },
1189
- borderLeft: {
1190
- themeKey: "borders",
1191
- transform: K
1192
- },
1193
- borderColor: {
1194
- themeKey: "palette"
1195
- },
1196
- borderTopColor: {
1197
- themeKey: "palette"
1198
- },
1199
- borderRightColor: {
1200
- themeKey: "palette"
1201
- },
1202
- borderBottomColor: {
1203
- themeKey: "palette"
1204
- },
1205
- borderLeftColor: {
1206
- themeKey: "palette"
1207
- },
1208
- outline: {
1209
- themeKey: "borders",
1210
- transform: K
1211
- },
1212
- outlineColor: {
1213
- themeKey: "palette"
1214
- },
1215
- borderRadius: {
1216
- themeKey: "shape.borderRadius",
1217
- style: Se
1218
- },
1219
- // palette
1220
- color: {
1221
- themeKey: "palette",
1222
- transform: se
1223
- },
1224
- bgcolor: {
1225
- themeKey: "palette",
1226
- cssProperty: "backgroundColor",
1227
- transform: se
1228
- },
1229
- backgroundColor: {
1230
- themeKey: "palette",
1231
- transform: se
1232
- },
1233
- // spacing
1234
- p: {
1235
- style: M
1236
- },
1237
- pt: {
1238
- style: M
1239
- },
1240
- pr: {
1241
- style: M
1242
- },
1243
- pb: {
1244
- style: M
1245
- },
1246
- pl: {
1247
- style: M
1248
- },
1249
- px: {
1250
- style: M
1251
- },
1252
- py: {
1253
- style: M
1254
- },
1255
- padding: {
1256
- style: M
1257
- },
1258
- paddingTop: {
1259
- style: M
1260
- },
1261
- paddingRight: {
1262
- style: M
1263
- },
1264
- paddingBottom: {
1265
- style: M
1266
- },
1267
- paddingLeft: {
1268
- style: M
1269
- },
1270
- paddingX: {
1271
- style: M
1272
- },
1273
- paddingY: {
1274
- style: M
1275
- },
1276
- paddingInline: {
1277
- style: M
1278
- },
1279
- paddingInlineStart: {
1280
- style: M
1281
- },
1282
- paddingInlineEnd: {
1283
- style: M
1284
- },
1285
- paddingBlock: {
1286
- style: M
1287
- },
1288
- paddingBlockStart: {
1289
- style: M
1290
- },
1291
- paddingBlockEnd: {
1292
- style: M
1293
- },
1294
- m: {
1295
- style: k
1296
- },
1297
- mt: {
1298
- style: k
1299
- },
1300
- mr: {
1301
- style: k
1302
- },
1303
- mb: {
1304
- style: k
1305
- },
1306
- ml: {
1307
- style: k
1308
- },
1309
- mx: {
1310
- style: k
1311
- },
1312
- my: {
1313
- style: k
1314
- },
1315
- margin: {
1316
- style: k
1317
- },
1318
- marginTop: {
1319
- style: k
1320
- },
1321
- marginRight: {
1322
- style: k
1323
- },
1324
- marginBottom: {
1325
- style: k
1326
- },
1327
- marginLeft: {
1328
- style: k
1329
- },
1330
- marginX: {
1331
- style: k
1332
- },
1333
- marginY: {
1334
- style: k
1335
- },
1336
- marginInline: {
1337
- style: k
1338
- },
1339
- marginInlineStart: {
1340
- style: k
1341
- },
1342
- marginInlineEnd: {
1343
- style: k
1344
- },
1345
- marginBlock: {
1346
- style: k
1347
- },
1348
- marginBlockStart: {
1349
- style: k
1350
- },
1351
- marginBlockEnd: {
1352
- style: k
1353
- },
1354
- // display
1355
- displayPrint: {
1356
- cssProperty: !1,
1357
- transform: (e) => ({
1358
- "@media print": {
1359
- display: e
1360
- }
1361
- })
1362
- },
1363
- display: {},
1364
- overflow: {},
1365
- textOverflow: {},
1366
- visibility: {},
1367
- whiteSpace: {},
1368
- // flexbox
1369
- flexBasis: {},
1370
- flexDirection: {},
1371
- flexWrap: {},
1372
- justifyContent: {},
1373
- alignItems: {},
1374
- alignContent: {},
1375
- order: {},
1376
- flex: {},
1377
- flexGrow: {},
1378
- flexShrink: {},
1379
- alignSelf: {},
1380
- justifyItems: {},
1381
- justifySelf: {},
1382
- // grid
1383
- gap: {
1384
- style: $e
1385
- },
1386
- rowGap: {
1387
- style: _e
1388
- },
1389
- columnGap: {
1390
- style: we
1391
- },
1392
- gridColumn: {},
1393
- gridRow: {},
1394
- gridAutoFlow: {},
1395
- gridAutoColumns: {},
1396
- gridAutoRows: {},
1397
- gridTemplateColumns: {},
1398
- gridTemplateRows: {},
1399
- gridTemplateAreas: {},
1400
- gridArea: {},
1401
- // positions
1402
- position: {},
1403
- zIndex: {
1404
- themeKey: "zIndex"
1405
- },
1406
- top: {},
1407
- right: {},
1408
- bottom: {},
1409
- left: {},
1410
- // shadows
1411
- boxShadow: {
1412
- themeKey: "shadows"
1413
- },
1414
- // sizing
1415
- width: {
1416
- transform: z
1417
- },
1418
- maxWidth: {
1419
- style: Ge
1420
- },
1421
- minWidth: {
1422
- transform: z
1423
- },
1424
- height: {
1425
- transform: z
1426
- },
1427
- maxHeight: {
1428
- transform: z
1429
- },
1430
- minHeight: {
1431
- transform: z
1432
- },
1433
- boxSizing: {},
1434
- // typography
1435
- fontFamily: {
1436
- themeKey: "typography"
1437
- },
1438
- fontSize: {
1439
- themeKey: "typography"
1440
- },
1441
- fontStyle: {
1442
- themeKey: "typography"
1443
- },
1444
- fontWeight: {
1445
- themeKey: "typography"
1446
- },
1447
- letterSpacing: {},
1448
- textTransform: {},
1449
- lineHeight: {},
1450
- textAlign: {},
1451
- typography: {
1452
- cssProperty: !1,
1453
- themeKey: "typography"
1454
- }
1455
- }, He = kr;
1456
- function Mr(...e) {
1457
- const t = e.reduce((r, o) => r.concat(Object.keys(o)), []), n = new Set(t);
1458
- return e.every((r) => n.size === Object.keys(r).length);
1459
- }
1460
- function Nr(e, t) {
1461
- return typeof e == "function" ? e(t) : e;
1462
- }
1463
- function Dr() {
1464
- function e(n, r, o, i) {
1465
- const s = {
1466
- [n]: r,
1467
- theme: o
1468
- }, u = i[n];
1469
- if (!u)
1470
- return {
1471
- [n]: r
1472
- };
1473
- const {
1474
- cssProperty: p = n,
1475
- themeKey: f,
1476
- transform: g,
1477
- style: h
1478
- } = u;
1479
- if (r == null)
1480
- return null;
1481
- if (f === "typography" && r === "inherit")
1482
- return {
1483
- [n]: r
1484
- };
1485
- const c = Ee(o, f) || {};
1486
- return h ? h(s) : H(s, r, (v) => {
1487
- let l = ve(c, g, v);
1488
- return v === l && typeof v == "string" && (l = ve(c, g, `${n}${v === "default" ? "" : Et(v)}`, v)), p === !1 ? l : {
1489
- [p]: l
1490
- };
1491
- });
1492
- }
1493
- function t(n) {
1494
- var r;
1495
- const {
1496
- sx: o,
1497
- theme: i = {}
1498
- } = n || {};
1499
- if (!o)
1500
- return null;
1501
- const s = (r = i.unstable_sxConfig) != null ? r : He;
1502
- function u(p) {
1503
- let f = p;
1504
- if (typeof p == "function")
1505
- f = p(i);
1506
- else if (typeof p != "object")
1507
- return p;
1508
- if (!f)
1509
- return null;
1510
- const g = Ot(i.breakpoints), h = Object.keys(g);
1511
- let c = g;
1512
- return Object.keys(f).forEach((b) => {
1513
- const v = Nr(f[b], i);
1514
- if (v != null)
1515
- if (typeof v == "object")
1516
- if (s[b])
1517
- c = le(c, e(b, v, i, s));
1518
- else {
1519
- const l = H({
1520
- theme: i
1521
- }, v, (T) => ({
1522
- [b]: T
1523
- }));
1524
- Mr(l, v) ? c[b] = t({
1525
- sx: v,
1526
- theme: i
1527
- }) : c = le(c, l);
1528
- }
1529
- else
1530
- c = le(c, e(b, v, i, s));
1531
- }), Tt(h, c);
1532
- }
1533
- return Array.isArray(o) ? o.map(u) : u(o);
1534
- }
1535
- return t;
1536
- }
1537
- const Ve = Dr();
1538
- Ve.filterProps = ["sx"];
1539
- function Br(e, t) {
1540
- const n = this;
1541
- return n.vars && typeof n.getColorSchemeSelector == "function" ? {
1542
- [n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/, "*:where($1)")]: t
1543
- } : n.palette.mode === e ? t : {};
1544
- }
1545
- const Ur = ["breakpoints", "palette", "spacing", "shape"];
1546
- function $t(e = {}, ...t) {
1547
- const {
1548
- breakpoints: n = {},
1549
- palette: r = {},
1550
- spacing: o,
1551
- shape: i = {}
1552
- } = e, s = ce(e, Ur), u = qt(n), p = nr(o);
1553
- let f = G({
1554
- breakpoints: u,
1555
- direction: "ltr",
1556
- components: {},
1557
- // Inject component definitions.
1558
- palette: U({
1559
- mode: "light"
1560
- }, r),
1561
- spacing: p,
1562
- shape: U({}, Gt, i)
1563
- }, s);
1564
- return f.applyStyles = Br, f = t.reduce((g, h) => G(g, h), f), f.unstable_sxConfig = U({}, He, s == null ? void 0 : s.unstable_sxConfig), f.unstable_sx = function(h) {
1565
- return Ve({
1566
- sx: h,
1567
- theme: this
1568
- });
1569
- }, f;
1570
- }
1571
- function Wr(e) {
1572
- return Object.keys(e).length === 0;
1573
- }
1574
- function zr(e = null) {
1575
- const t = wt.useContext(_t);
1576
- return !t || Wr(t) ? e : t;
1577
- }
1578
- const Kr = $t();
1579
- function jn(e = Kr) {
1580
- return zr(e);
1581
- }
1582
- function Xe(e, t = 0, n = 1) {
1583
- return process.env.NODE_ENV !== "production" && (e < t || e > n) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`), Kt(e, t, n);
1584
- }
1585
- function Lr(e) {
1586
- e = e.slice(1);
1587
- const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
1588
- let n = e.match(t);
1589
- return n && n[0].length === 1 && (n = n.map((r) => r + r)), n ? `rgb${n.length === 4 ? "a" : ""}(${n.map((r, o) => o < 3 ? parseInt(r, 16) : Math.round(parseInt(r, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
1590
- }
1591
- function Z(e) {
1592
- if (e.type)
1593
- return e;
1594
- if (e.charAt(0) === "#")
1595
- return Z(Lr(e));
1596
- const t = e.indexOf("("), n = e.substring(0, t);
1597
- if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(n) === -1)
1598
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
1599
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : ae(9, e));
1600
- let r = e.substring(t + 1, e.length - 1), o;
1601
- if (n === "color") {
1602
- if (r = r.split(" "), o = r.shift(), r.length === 4 && r[3].charAt(0) === "/" && (r[3] = r[3].slice(1)), ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(o) === -1)
1603
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${o}\` color space.
1604
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : ae(10, o));
1605
- } else
1606
- r = r.split(",");
1607
- return r = r.map((i) => parseFloat(i)), {
1608
- type: n,
1609
- values: r,
1610
- colorSpace: o
1611
- };
1612
- }
1613
- function Ae(e) {
1614
- const {
1615
- type: t,
1616
- colorSpace: n
1617
- } = e;
1618
- let {
1619
- values: r
1620
- } = e;
1621
- return t.indexOf("rgb") !== -1 ? r = r.map((o, i) => i < 3 ? parseInt(o, 10) : o) : t.indexOf("hsl") !== -1 && (r[1] = `${r[1]}%`, r[2] = `${r[2]}%`), t.indexOf("color") !== -1 ? r = `${n} ${r.join(" ")}` : r = `${r.join(", ")}`, `${t}(${r})`;
1622
- }
1623
- function Yr(e) {
1624
- e = Z(e);
1625
- const {
1626
- values: t
1627
- } = e, n = t[0], r = t[1] / 100, o = t[2] / 100, i = r * Math.min(o, 1 - o), s = (f, g = (f + n / 30) % 12) => o - i * Math.max(Math.min(g - 3, 9 - g, 1), -1);
1628
- let u = "rgb";
1629
- const p = [Math.round(s(0) * 255), Math.round(s(8) * 255), Math.round(s(4) * 255)];
1630
- return e.type === "hsla" && (u += "a", p.push(t[3])), Ae({
1631
- type: u,
1632
- values: p
1633
- });
1634
- }
1635
- function ft(e) {
1636
- e = Z(e);
1637
- let t = e.type === "hsl" || e.type === "hsla" ? Z(Yr(e)).values : e.values;
1638
- return t = t.map((n) => (e.type !== "color" && (n /= 255), n <= 0.03928 ? n / 12.92 : ((n + 0.055) / 1.055) ** 2.4)), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3));
1639
- }
1640
- function lt(e, t) {
1641
- const n = ft(e), r = ft(t);
1642
- return (Math.max(n, r) + 0.05) / (Math.min(n, r) + 0.05);
1643
- }
1644
- function kn(e, t) {
1645
- return e = Z(e), t = Xe(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, Ae(e);
1646
- }
1647
- function qr(e, t) {
1648
- if (e = Z(e), t = Xe(t), e.type.indexOf("hsl") !== -1)
1649
- e.values[2] *= 1 - t;
1650
- else if (e.type.indexOf("rgb") !== -1 || e.type.indexOf("color") !== -1)
1651
- for (let n = 0; n < 3; n += 1)
1652
- e.values[n] *= 1 - t;
1653
- return Ae(e);
1654
- }
1655
- function Fr(e, t) {
1656
- if (e = Z(e), t = Xe(t), e.type.indexOf("hsl") !== -1)
1657
- e.values[2] += (100 - e.values[2]) * t;
1658
- else if (e.type.indexOf("rgb") !== -1)
1659
- for (let n = 0; n < 3; n += 1)
1660
- e.values[n] += (255 - e.values[n]) * t;
1661
- else if (e.type.indexOf("color") !== -1)
1662
- for (let n = 0; n < 3; n += 1)
1663
- e.values[n] += (1 - e.values[n]) * t;
1664
- return Ae(e);
1665
- }
1666
- function Gr(e, t) {
1667
- return U({
1668
- toolbar: {
1669
- minHeight: 56,
1670
- [e.up("xs")]: {
1671
- "@media (orientation: landscape)": {
1672
- minHeight: 48
1673
- }
1674
- },
1675
- [e.up("sm")]: {
1676
- minHeight: 64
1677
- }
1678
- }
1679
- }, t);
1680
- }
1681
- const Hr = {
1682
- black: "#000",
1683
- white: "#fff"
1684
- }, de = Hr, Vr = {
1685
- 50: "#fafafa",
1686
- 100: "#f5f5f5",
1687
- 200: "#eeeeee",
1688
- 300: "#e0e0e0",
1689
- 400: "#bdbdbd",
1690
- 500: "#9e9e9e",
1691
- 600: "#757575",
1692
- 700: "#616161",
1693
- 800: "#424242",
1694
- 900: "#212121",
1695
- A100: "#f5f5f5",
1696
- A200: "#eeeeee",
1697
- A400: "#bdbdbd",
1698
- A700: "#616161"
1699
- }, Xr = Vr, Jr = {
1700
- 50: "#f3e5f5",
1701
- 100: "#e1bee7",
1702
- 200: "#ce93d8",
1703
- 300: "#ba68c8",
1704
- 400: "#ab47bc",
1705
- 500: "#9c27b0",
1706
- 600: "#8e24aa",
1707
- 700: "#7b1fa2",
1708
- 800: "#6a1b9a",
1709
- 900: "#4a148c",
1710
- A100: "#ea80fc",
1711
- A200: "#e040fb",
1712
- A400: "#d500f9",
1713
- A700: "#aa00ff"
1714
- }, ee = Jr, Zr = {
1715
- 50: "#ffebee",
1716
- 100: "#ffcdd2",
1717
- 200: "#ef9a9a",
1718
- 300: "#e57373",
1719
- 400: "#ef5350",
1720
- 500: "#f44336",
1721
- 600: "#e53935",
1722
- 700: "#d32f2f",
1723
- 800: "#c62828",
1724
- 900: "#b71c1c",
1725
- A100: "#ff8a80",
1726
- A200: "#ff5252",
1727
- A400: "#ff1744",
1728
- A700: "#d50000"
1729
- }, te = Zr, Qr = {
1730
- 50: "#fff3e0",
1731
- 100: "#ffe0b2",
1732
- 200: "#ffcc80",
1733
- 300: "#ffb74d",
1734
- 400: "#ffa726",
1735
- 500: "#ff9800",
1736
- 600: "#fb8c00",
1737
- 700: "#f57c00",
1738
- 800: "#ef6c00",
1739
- 900: "#e65100",
1740
- A100: "#ffd180",
1741
- A200: "#ffab40",
1742
- A400: "#ff9100",
1743
- A700: "#ff6d00"
1744
- }, fe = Qr, en = {
1745
- 50: "#e3f2fd",
1746
- 100: "#bbdefb",
1747
- 200: "#90caf9",
1748
- 300: "#64b5f6",
1749
- 400: "#42a5f5",
1750
- 500: "#2196f3",
1751
- 600: "#1e88e5",
1752
- 700: "#1976d2",
1753
- 800: "#1565c0",
1754
- 900: "#0d47a1",
1755
- A100: "#82b1ff",
1756
- A200: "#448aff",
1757
- A400: "#2979ff",
1758
- A700: "#2962ff"
1759
- }, re = en, tn = {
1760
- 50: "#e1f5fe",
1761
- 100: "#b3e5fc",
1762
- 200: "#81d4fa",
1763
- 300: "#4fc3f7",
1764
- 400: "#29b6f6",
1765
- 500: "#03a9f4",
1766
- 600: "#039be5",
1767
- 700: "#0288d1",
1768
- 800: "#0277bd",
1769
- 900: "#01579b",
1770
- A100: "#80d8ff",
1771
- A200: "#40c4ff",
1772
- A400: "#00b0ff",
1773
- A700: "#0091ea"
1774
- }, ne = tn, rn = {
1775
- 50: "#e8f5e9",
1776
- 100: "#c8e6c9",
1777
- 200: "#a5d6a7",
1778
- 300: "#81c784",
1779
- 400: "#66bb6a",
1780
- 500: "#4caf50",
1781
- 600: "#43a047",
1782
- 700: "#388e3c",
1783
- 800: "#2e7d32",
1784
- 900: "#1b5e20",
1785
- A100: "#b9f6ca",
1786
- A200: "#69f0ae",
1787
- A400: "#00e676",
1788
- A700: "#00c853"
1789
- }, oe = rn, nn = ["mode", "contrastThreshold", "tonalOffset"], dt = {
1790
- // The colors used to style the text.
1791
- text: {
1792
- // The most important text.
1793
- primary: "rgba(0, 0, 0, 0.87)",
1794
- // Secondary text.
1795
- secondary: "rgba(0, 0, 0, 0.6)",
1796
- // Disabled text have even lower visual prominence.
1797
- disabled: "rgba(0, 0, 0, 0.38)"
1798
- },
1799
- // The color used to divide different elements.
1800
- divider: "rgba(0, 0, 0, 0.12)",
1801
- // The background colors used to style the surfaces.
1802
- // Consistency between these values is important.
1803
- background: {
1804
- paper: de.white,
1805
- default: de.white
1806
- },
1807
- // The colors used to style the action elements.
1808
- action: {
1809
- // The color of an active action like an icon button.
1810
- active: "rgba(0, 0, 0, 0.54)",
1811
- // The color of an hovered action.
1812
- hover: "rgba(0, 0, 0, 0.04)",
1813
- hoverOpacity: 0.04,
1814
- // The color of a selected action.
1815
- selected: "rgba(0, 0, 0, 0.08)",
1816
- selectedOpacity: 0.08,
1817
- // The color of a disabled action.
1818
- disabled: "rgba(0, 0, 0, 0.26)",
1819
- // The background color of a disabled action.
1820
- disabledBackground: "rgba(0, 0, 0, 0.12)",
1821
- disabledOpacity: 0.38,
1822
- focus: "rgba(0, 0, 0, 0.12)",
1823
- focusOpacity: 0.12,
1824
- activatedOpacity: 0.12
1825
- }
1826
- }, Le = {
1827
- text: {
1828
- primary: de.white,
1829
- secondary: "rgba(255, 255, 255, 0.7)",
1830
- disabled: "rgba(255, 255, 255, 0.5)",
1831
- icon: "rgba(255, 255, 255, 0.5)"
1832
- },
1833
- divider: "rgba(255, 255, 255, 0.12)",
1834
- background: {
1835
- paper: "#121212",
1836
- default: "#121212"
1837
- },
1838
- action: {
1839
- active: de.white,
1840
- hover: "rgba(255, 255, 255, 0.08)",
1841
- hoverOpacity: 0.08,
1842
- selected: "rgba(255, 255, 255, 0.16)",
1843
- selectedOpacity: 0.16,
1844
- disabled: "rgba(255, 255, 255, 0.3)",
1845
- disabledBackground: "rgba(255, 255, 255, 0.12)",
1846
- disabledOpacity: 0.38,
1847
- focus: "rgba(255, 255, 255, 0.12)",
1848
- focusOpacity: 0.12,
1849
- activatedOpacity: 0.24
1850
- }
1851
- };
1852
- function pt(e, t, n, r) {
1853
- const o = r.light || r, i = r.dark || r * 1.5;
1854
- e[t] || (e.hasOwnProperty(n) ? e[t] = e[n] : t === "light" ? e.light = Fr(e.main, o) : t === "dark" && (e.dark = qr(e.main, i)));
1855
- }
1856
- function on(e = "light") {
1857
- return e === "dark" ? {
1858
- main: re[200],
1859
- light: re[50],
1860
- dark: re[400]
1861
- } : {
1862
- main: re[700],
1863
- light: re[400],
1864
- dark: re[800]
1865
- };
1866
- }
1867
- function sn(e = "light") {
1868
- return e === "dark" ? {
1869
- main: ee[200],
1870
- light: ee[50],
1871
- dark: ee[400]
1872
- } : {
1873
- main: ee[500],
1874
- light: ee[300],
1875
- dark: ee[700]
1876
- };
1877
- }
1878
- function an(e = "light") {
1879
- return e === "dark" ? {
1880
- main: te[500],
1881
- light: te[300],
1882
- dark: te[700]
1883
- } : {
1884
- main: te[700],
1885
- light: te[400],
1886
- dark: te[800]
1887
- };
1888
- }
1889
- function cn(e = "light") {
1890
- return e === "dark" ? {
1891
- main: ne[400],
1892
- light: ne[300],
1893
- dark: ne[700]
1894
- } : {
1895
- main: ne[700],
1896
- light: ne[500],
1897
- dark: ne[900]
1898
- };
1899
- }
1900
- function un(e = "light") {
1901
- return e === "dark" ? {
1902
- main: oe[400],
1903
- light: oe[300],
1904
- dark: oe[700]
1905
- } : {
1906
- main: oe[800],
1907
- light: oe[500],
1908
- dark: oe[900]
1909
- };
1910
- }
1911
- function fn(e = "light") {
1912
- return e === "dark" ? {
1913
- main: fe[400],
1914
- light: fe[300],
1915
- dark: fe[700]
1916
- } : {
1917
- main: "#ed6c02",
1918
- // closest to orange[800] that pass 3:1.
1919
- light: fe[500],
1920
- dark: fe[900]
1921
- };
1922
- }
1923
- function ln(e) {
1924
- const {
1925
- mode: t = "light",
1926
- contrastThreshold: n = 3,
1927
- tonalOffset: r = 0.2
1928
- } = e, o = ce(e, nn), i = e.primary || on(t), s = e.secondary || sn(t), u = e.error || an(t), p = e.info || cn(t), f = e.success || un(t), g = e.warning || fn(t);
1929
- function h(l) {
1930
- const T = lt(l, Le.text.primary) >= n ? Le.text.primary : dt.text.primary;
1931
- if (process.env.NODE_ENV !== "production") {
1932
- const I = lt(l, T);
1933
- I < 3 && console.error([`MUI: The contrast ratio of ${I}:1 for ${T} on ${l}`, "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(`
1934
- `));
1935
- }
1936
- return T;
1937
- }
1938
- const c = ({
1939
- color: l,
1940
- name: T,
1941
- mainShade: I = 500,
1942
- lightShade: Y = 300,
1943
- darkShade: N = 700
1944
- }) => {
1945
- if (l = U({}, l), !l.main && l[I] && (l.main = l[I]), !l.hasOwnProperty("main"))
1946
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${T ? ` (${T})` : ""} provided to augmentColor(color) is invalid.
1947
- The color object needs to have a \`main\` property or a \`${I}\` property.` : ae(11, T ? ` (${T})` : "", I));
1948
- if (typeof l.main != "string")
1949
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${T ? ` (${T})` : ""} provided to augmentColor(color) is invalid.
1950
- \`color.main\` should be a string, but \`${JSON.stringify(l.main)}\` was provided instead.
1951
-
1952
- Did you intend to use one of the following approaches?
1953
-
1954
- import { green } from "@mui/material/colors";
1955
-
1956
- const theme1 = createTheme({ palette: {
1957
- primary: green,
1958
- } });
1959
-
1960
- const theme2 = createTheme({ palette: {
1961
- primary: { main: green[500] },
1962
- } });` : ae(12, T ? ` (${T})` : "", JSON.stringify(l.main)));
1963
- return pt(l, "light", Y, r), pt(l, "dark", N, r), l.contrastText || (l.contrastText = h(l.main)), l;
1964
- }, b = {
1965
- dark: Le,
1966
- light: dt
1967
- };
1968
- return process.env.NODE_ENV !== "production" && (b[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), G(U({
1969
- // A collection of common colors.
1970
- common: U({}, de),
1971
- // prevent mutable object.
1972
- // The palette mode, can be light or dark.
1973
- mode: t,
1974
- // The colors used to represent primary interface elements for a user.
1975
- primary: c({
1976
- color: i,
1977
- name: "primary"
1978
- }),
1979
- // The colors used to represent secondary interface elements for a user.
1980
- secondary: c({
1981
- color: s,
1982
- name: "secondary",
1983
- mainShade: "A400",
1984
- lightShade: "A200",
1985
- darkShade: "A700"
1986
- }),
1987
- // The colors used to represent interface elements that the user should be made aware of.
1988
- error: c({
1989
- color: u,
1990
- name: "error"
1991
- }),
1992
- // The colors used to represent potentially dangerous actions or important messages.
1993
- warning: c({
1994
- color: g,
1995
- name: "warning"
1996
- }),
1997
- // The colors used to present information to the user that is neutral and not necessarily important.
1998
- info: c({
1999
- color: p,
2000
- name: "info"
2001
- }),
2002
- // The colors used to indicate the successful completion of an action that user triggered.
2003
- success: c({
2004
- color: f,
2005
- name: "success"
2006
- }),
2007
- // The grey colors.
2008
- grey: Xr,
2009
- // Used by `getContrastText()` to maximize the contrast between
2010
- // the background and the text.
2011
- contrastThreshold: n,
2012
- // Takes a background color and returns the text color that maximizes the contrast.
2013
- getContrastText: h,
2014
- // Generate a rich color object.
2015
- augmentColor: c,
2016
- // Used by the functions below to shift a color's luminance by approximately
2017
- // two indexes within its tonal palette.
2018
- // E.g., shift from Red 500 to Red 300 or Red 700.
2019
- tonalOffset: r
2020
- }, b[t]), o);
2021
- }
2022
- const dn = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
2023
- function pn(e) {
2024
- return Math.round(e * 1e5) / 1e5;
2025
- }
2026
- const yt = {
2027
- textTransform: "uppercase"
2028
- }, mt = '"Roboto", "Helvetica", "Arial", sans-serif';
2029
- function yn(e, t) {
2030
- const n = typeof t == "function" ? t(e) : t, {
2031
- fontFamily: r = mt,
2032
- // The default font size of the Material Specification.
2033
- fontSize: o = 14,
2034
- // px
2035
- fontWeightLight: i = 300,
2036
- fontWeightRegular: s = 400,
2037
- fontWeightMedium: u = 500,
2038
- fontWeightBold: p = 700,
2039
- // Tell MUI what's the font-size on the html element.
2040
- // 16px is the default font-size used by browsers.
2041
- htmlFontSize: f = 16,
2042
- // Apply the CSS properties to all the variants.
2043
- allVariants: g,
2044
- pxToRem: h
2045
- } = n, c = ce(n, dn);
2046
- process.env.NODE_ENV !== "production" && (typeof o != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof f != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
2047
- const b = o / 14, v = h || ((I) => `${I / f * b}rem`), l = (I, Y, N, B, y) => U({
2048
- fontFamily: r,
2049
- fontWeight: I,
2050
- fontSize: v(Y),
2051
- // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
2052
- lineHeight: N
2053
- }, r === mt ? {
2054
- letterSpacing: `${pn(B / Y)}em`
2055
- } : {}, y, g), T = {
2056
- h1: l(i, 96, 1.167, -1.5),
2057
- h2: l(i, 60, 1.2, -0.5),
2058
- h3: l(s, 48, 1.167, 0),
2059
- h4: l(s, 34, 1.235, 0.25),
2060
- h5: l(s, 24, 1.334, 0),
2061
- h6: l(u, 20, 1.6, 0.15),
2062
- subtitle1: l(s, 16, 1.75, 0.15),
2063
- subtitle2: l(u, 14, 1.57, 0.1),
2064
- body1: l(s, 16, 1.5, 0.15),
2065
- body2: l(s, 14, 1.43, 0.15),
2066
- button: l(u, 14, 1.75, 0.4, yt),
2067
- caption: l(s, 12, 1.66, 0.4),
2068
- overline: l(s, 12, 2.66, 1, yt),
2069
- // 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.
2070
- inherit: {
2071
- fontFamily: "inherit",
2072
- fontWeight: "inherit",
2073
- fontSize: "inherit",
2074
- lineHeight: "inherit",
2075
- letterSpacing: "inherit"
2076
- }
2077
- };
2078
- return G(U({
2079
- htmlFontSize: f,
2080
- pxToRem: v,
2081
- fontFamily: r,
2082
- fontSize: o,
2083
- fontWeightLight: i,
2084
- fontWeightRegular: s,
2085
- fontWeightMedium: u,
2086
- fontWeightBold: p
2087
- }, T), c, {
2088
- clone: !1
2089
- // No need to clone deep
2090
- });
2091
- }
2092
- const mn = 0.2, gn = 0.14, hn = 0.12;
2093
- function j(...e) {
2094
- return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${mn})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${gn})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${hn})`].join(",");
2095
- }
2096
- const bn = ["none", j(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), j(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), j(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), j(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), j(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), j(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), j(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), j(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), j(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), j(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), j(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), j(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), j(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), j(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), j(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), j(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), j(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), j(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), j(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), j(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), j(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), j(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), j(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), j(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], vn = ["duration", "easing", "delay"], En = {
2097
- // This is the most common easing curve.
2098
- easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
2099
- // Objects enter the screen at full velocity from off-screen and
2100
- // slowly decelerate to a resting point.
2101
- easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
2102
- // Objects leave the screen at full velocity. They do not decelerate when off-screen.
2103
- easeIn: "cubic-bezier(0.4, 0, 1, 1)",
2104
- // The sharp curve is used by objects that may return to the screen at any time.
2105
- sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
2106
- }, On = {
2107
- shortest: 150,
2108
- shorter: 200,
2109
- short: 250,
2110
- // most basic recommended timing
2111
- standard: 300,
2112
- // this is to be used in complex animations
2113
- complex: 375,
2114
- // recommended when something is entering screen
2115
- enteringScreen: 225,
2116
- // recommended when something is leaving screen
2117
- leavingScreen: 195
2118
- };
2119
- function gt(e) {
2120
- return `${Math.round(e)}ms`;
2121
- }
2122
- function Tn(e) {
2123
- if (!e)
2124
- return 0;
2125
- const t = e / 36;
2126
- return Math.round((4 + 15 * t ** 0.25 + t / 5) * 10);
2127
- }
2128
- function xn(e) {
2129
- const t = U({}, En, e.easing), n = U({}, On, e.duration);
2130
- return U({
2131
- getAutoHeightDuration: Tn,
2132
- create: (o = ["all"], i = {}) => {
2133
- const {
2134
- duration: s = n.standard,
2135
- easing: u = t.easeInOut,
2136
- delay: p = 0
2137
- } = i, f = ce(i, vn);
2138
- if (process.env.NODE_ENV !== "production") {
2139
- const g = (c) => typeof c == "string", h = (c) => !isNaN(parseFloat(c));
2140
- !g(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !h(s) && !g(s) && console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`), g(u) || console.error('MUI: Argument "easing" must be a string.'), !h(p) && !g(p) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof i != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
2141
- `)), Object.keys(f).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(f).join(",")}].`);
2142
- }
2143
- return (Array.isArray(o) ? o : [o]).map((g) => `${g} ${typeof s == "string" ? s : gt(s)} ${u} ${typeof p == "string" ? p : gt(p)}`).join(",");
2144
- }
2145
- }, e, {
2146
- easing: t,
2147
- duration: n
2148
- });
2149
- }
2150
- const Sn = {
2151
- mobileStepper: 1e3,
2152
- fab: 1050,
2153
- speedDial: 1050,
2154
- appBar: 1100,
2155
- drawer: 1200,
2156
- modal: 1300,
2157
- snackbar: 1400,
2158
- tooltip: 1500
2159
- }, $n = Sn, wn = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
2160
- function _n(e = {}, ...t) {
2161
- const {
2162
- mixins: n = {},
2163
- palette: r = {},
2164
- transitions: o = {},
2165
- typography: i = {}
2166
- } = e, s = ce(e, wn);
2167
- if (e.vars)
2168
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : ae(18));
2169
- const u = ln(r), p = $t(e);
2170
- let f = G(p, {
2171
- mixins: Gr(p.breakpoints, n),
2172
- palette: u,
2173
- // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
2174
- shadows: bn.slice(),
2175
- typography: yn(u, i),
2176
- transitions: xn(o),
2177
- zIndex: U({}, $n)
2178
- });
2179
- if (f = G(f, s), f = t.reduce((g, h) => G(g, h), f), process.env.NODE_ENV !== "production") {
2180
- const g = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], h = (c, b) => {
2181
- let v;
2182
- for (v in c) {
2183
- const l = c[v];
2184
- if (g.indexOf(v) !== -1 && Object.keys(l).length > 0) {
2185
- if (process.env.NODE_ENV !== "production") {
2186
- const T = zt("", v);
2187
- console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${v}\` internal state.`, "You can not override it like this: ", JSON.stringify(c, null, 2), "", `Instead, you need to use the '&.${T}' syntax:`, JSON.stringify({
2188
- root: {
2189
- [`&.${T}`]: l
2190
- }
2191
- }, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
2192
- `));
2193
- }
2194
- c[v] = {};
2195
- }
2196
- }
2197
- };
2198
- Object.keys(f.components).forEach((c) => {
2199
- const b = f.components[c].styleOverrides;
2200
- b && c.indexOf("Mui") === 0 && h(b, c);
2201
- });
2202
- }
2203
- return f.unstable_sxConfig = U({}, He, s == null ? void 0 : s.unstable_sxConfig), f.unstable_sx = function(h) {
2204
- return Ve({
2205
- sx: h,
2206
- theme: this
2207
- });
2208
- }, f;
2209
- }
2210
- const An = _n(), Mn = An;
2211
- export {
2212
- ue as P,
2213
- Pn as T,
2214
- ce as _,
2215
- U as a,
2216
- Mn as b,
2217
- Et as c,
2218
- He as d,
2219
- $t as e,
2220
- xt as f,
2221
- zt as g,
2222
- H as h,
2223
- ie as i,
2224
- G as j,
2225
- ye as k,
2226
- kn as l,
2227
- Rn as m,
2228
- ae as n,
2229
- In as r,
2230
- Ve as s,
2231
- jn as u
2232
- };