@cgi-learning-hub/ui 0.0.1-dev.1708424596 → 0.0.1-dev.1708424719

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