@js-smart/react-kit 5.10.0 → 5.12.0-beta.1
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.
- package/.editorconfig +13 -0
- package/.eslintignore +1 -0
- package/.eslintrc.json +41 -0
- package/.github/copilot-instructions.md +11 -0
- package/.github/workflows/build.yml +45 -0
- package/.github/workflows/release.yml +65 -0
- package/.prettierignore +5 -0
- package/.prettierrc +9 -0
- package/.vscode/extensions.json +7 -0
- package/CHANGELOG.md +24 -0
- package/CODE_OF_CONDUCT.md +128 -0
- package/FUNDING.yml +1 -0
- package/LICENSE +21 -0
- package/README.md +1 -0
- package/apps/react-kit-demo/.eslintrc.json +22 -0
- package/apps/react-kit-demo/index.html +16 -0
- package/apps/react-kit-demo/project.json +9 -0
- package/apps/react-kit-demo/public/favicon.ico +0 -0
- package/apps/react-kit-demo/src/app/Home.tsx +17 -0
- package/apps/react-kit-demo/src/app/all-books/AllBooks.tsx +68 -0
- package/apps/react-kit-demo/src/app/app.module.scss +1 -0
- package/apps/react-kit-demo/src/app/app.tsx +29 -0
- package/apps/react-kit-demo/src/app/buttons/ButtonsDemo.tsx +58 -0
- package/apps/react-kit-demo/src/app/dialog/DialogDemo.tsx +23 -0
- package/apps/react-kit-demo/src/app/links/LinksDemo.tsx +20 -0
- package/apps/react-kit-demo/src/app/progress-bar/CenterCircularProgressDemo.tsx +10 -0
- package/apps/react-kit-demo/src/app/react-if/ReactIfDemo.tsx +44 -0
- package/apps/react-kit-demo/src/app/snack-bar/SnackBarDemo.tsx +35 -0
- package/apps/react-kit-demo/src/assets/.gitkeep +0 -0
- package/apps/react-kit-demo/src/constants/ApiConstants.ts +7 -0
- package/apps/react-kit-demo/src/constants/DialogMode.ts +2 -0
- package/apps/react-kit-demo/src/constants/HttpConstants.ts +18 -0
- package/apps/react-kit-demo/src/constants/StateConstants.ts +2 -0
- package/apps/react-kit-demo/src/main.tsx +17 -0
- package/apps/react-kit-demo/src/routes/Routes.tsx +55 -0
- package/apps/react-kit-demo/src/services/BookService.ts +21 -0
- package/apps/react-kit-demo/src/styles.scss +36 -0
- package/apps/react-kit-demo/src/theme.ts +46 -0
- package/apps/react-kit-demo/src/types/Book.ts +8 -0
- package/{lib/utils/CssUtils.d.ts → apps/react-kit-demo/src/utils/CssUtils.ts} +3 -1
- package/apps/react-kit-demo/tsconfig.app.json +18 -0
- package/apps/react-kit-demo/tsconfig.json +21 -0
- package/apps/react-kit-demo/tsconfig.spec.json +28 -0
- package/apps/react-kit-demo/vite.config.ts +50 -0
- package/nx.json +52 -0
- package/package.json +99 -44
- package/react-kit/.babelrc +12 -0
- package/react-kit/.eslintrc.json +18 -0
- package/react-kit/README.md +7 -0
- package/react-kit/package-lock.json +1330 -0
- package/react-kit/package.json +45 -0
- package/react-kit/project.json +10 -0
- package/{index.d.ts → react-kit/src/index.ts} +9 -0
- package/react-kit/src/lib/components/CenteredCircularProgress.tsx +15 -0
- package/react-kit/src/lib/components/ConfirmationDialog.tsx +28 -0
- package/react-kit/src/lib/components/DismissibleAlert.tsx +60 -0
- package/react-kit/src/lib/components/NextLink.tsx +26 -0
- package/react-kit/src/lib/components/OpenInNewIconLink.tsx +42 -0
- package/react-kit/src/lib/components/ReactIf.tsx +53 -0
- package/react-kit/src/lib/components/buttons/CancelButton.tsx +45 -0
- package/react-kit/src/lib/components/buttons/DeleteButton.tsx +35 -0
- package/react-kit/src/lib/components/buttons/EditIconButton.tsx +23 -0
- package/react-kit/src/lib/components/buttons/ExcelButton.tsx +43 -0
- package/react-kit/src/lib/components/buttons/GoBackButton.tsx +22 -0
- package/react-kit/src/lib/components/buttons/HistoryButton.tsx +45 -0
- package/react-kit/src/lib/components/buttons/LoadingSuccessButton.tsx +53 -0
- package/react-kit/src/lib/components/buttons/ManageButton.tsx +31 -0
- package/react-kit/src/lib/components/buttons/SuccessButton.tsx +44 -0
- package/react-kit/src/lib/components/snack-bar/AppSnackBar.tsx +46 -0
- package/react-kit/src/lib/components/snack-bar/QuerySnackBar.tsx +62 -0
- package/react-kit/src/lib/components/table/TablePaginationActions.tsx +58 -0
- package/react-kit/src/lib/components/tabs/TabPanel.tsx +26 -0
- package/react-kit/src/lib/constants/AppConstants.ts +17 -0
- package/react-kit/src/lib/types/ProgressState.ts +7 -0
- package/react-kit/src/lib/utils/BooleanUtils.ts +13 -0
- package/react-kit/src/lib/utils/CssUtils.ts +13 -0
- package/react-kit/src/lib/utils/DateUtils.ts +43 -0
- package/react-kit/src/lib/utils/NumberUtils.ts +12 -0
- package/react-kit/src/lib/utils/ProgressStateUtils.ts +68 -0
- package/react-kit/src/lib/utils/StringUtils.ts +14 -0
- package/react-kit/src/lib/utils/UrlUtils.ts +19 -0
- package/react-kit/src/lib/utils/fetchClient.ts +64 -0
- package/react-kit/src/tests/buttons/CancelButton.test.tsx +69 -0
- package/react-kit/src/tests/buttons/DeleteButton.test.tsx +63 -0
- package/react-kit/src/tests/buttons/EditIconButton.test.tsx +34 -0
- package/react-kit/src/tests/buttons/HistoryButton.test.tsx +46 -0
- package/react-kit/src/tests/buttons/LoadingSuccessButton.test.tsx +53 -0
- package/react-kit/src/tests/buttons/ManageButton.test.tsx +49 -0
- package/react-kit/src/tests/buttons/SuccessButton.test.tsx +46 -0
- package/react-kit/src/tests/snack-bar/AppSnackBar.test.tsx +54 -0
- package/react-kit/src/tests/utils/BooleanUtils.test.ts +35 -0
- package/react-kit/src/tests/utils/CssUtils.test.ts +17 -0
- package/react-kit/src/tests/utils/DateUtils.test.ts +46 -0
- package/react-kit/src/tests/utils/NumberUtils.test.ts +19 -0
- package/react-kit/src/tests/utils/ProgressStateUtils.test.ts +131 -0
- package/react-kit/src/tests/utils/StringUtils.test.ts +33 -0
- package/react-kit/src/tests/utils/UrlUtils.test.ts +19 -0
- package/react-kit/tsconfig.json +22 -0
- package/react-kit/tsconfig.lib.json +24 -0
- package/react-kit/tsconfig.spec.json +27 -0
- package/react-kit/vite.config.ts +72 -0
- package/release.sh +28 -0
- package/tsconfig.base.json +22 -0
- package/vitest.workspace.js +3 -0
- package/vitest.workspace.ts +1 -0
- package/index.cjs +0 -74
- package/index.js +0 -4120
- package/index.mjs +0 -4108
- package/lib/components/CenteredCircularProgress.d.ts +0 -7
- package/lib/components/ConfirmationDialog.d.ts +0 -11
- package/lib/components/DismissibleAlert.d.ts +0 -17
- package/lib/components/NextLink.d.ts +0 -17
- package/lib/components/OpenInNewIconLink.d.ts +0 -17
- package/lib/components/ReactIf.d.ts +0 -36
- package/lib/components/buttons/CancelButton.d.ts +0 -28
- package/lib/components/buttons/DeleteButton.d.ts +0 -16
- package/lib/components/buttons/EditIconButton.d.ts +0 -8
- package/lib/components/buttons/ExcelButton.d.ts +0 -26
- package/lib/components/buttons/GoBackButton.d.ts +0 -10
- package/lib/components/buttons/HistoryButton.d.ts +0 -28
- package/lib/components/buttons/LoadingSuccessButton.d.ts +0 -28
- package/lib/components/buttons/ManageButton.d.ts +0 -14
- package/lib/components/buttons/SuccessButton.d.ts +0 -28
- package/lib/components/snack-bar/AppSnackBar.d.ts +0 -6
- package/lib/components/snack-bar/QuerySnackBar.d.ts +0 -18
- package/lib/components/table/TablePaginationActions.d.ts +0 -9
- package/lib/components/tabs/TabPanel.d.ts +0 -12
- package/lib/constants/AppConstants.d.ts +0 -15
- package/lib/types/ProgressState.d.ts +0 -7
- package/lib/utils/BooleanUtils.d.ts +0 -7
- package/lib/utils/DateUtils.d.ts +0 -22
- package/lib/utils/NumberUtils.d.ts +0 -7
- package/lib/utils/ProgressStateUtils.d.ts +0 -38
- package/lib/utils/StringUtils.d.ts +0 -7
- package/lib/utils/UrlUtils.d.ts +0 -11
- package/lib/utils/fetchClient.d.ts +0 -12
package/index.js
DELETED
|
@@ -1,4120 +0,0 @@
|
|
|
1
|
-
var Qr = Object.defineProperty;
|
|
2
|
-
var Jr = (e, t, r) => t in e ? Qr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
-
var Be = (e, t, r) => Jr(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { jsxs as Se, jsx as v, Fragment as Er } from "react/jsx-runtime";
|
|
5
|
-
import { Button as ye, Tooltip as Tr, IconButton as ge, Snackbar as Ze, Alert as Fe, Slide as xr, Box as wr, Typography as Xr, Link as Or, CircularProgress as Zr, Dialog as en, DialogTitle as tn, DialogContent as rn, DialogActions as nn, Icon as on } from "@mui/material";
|
|
6
|
-
import * as me from "react";
|
|
7
|
-
import { useState as Me, useEffect as $r } from "react";
|
|
8
|
-
import an from "@emotion/styled";
|
|
9
|
-
import { ThemeContext as sn } from "@emotion/react";
|
|
10
|
-
import { Link as _r } from "react-router-dom";
|
|
11
|
-
import { format as Ar, parseISO as cn } from "date-fns";
|
|
12
|
-
const jt = (e) => e, ln = () => {
|
|
13
|
-
let e = jt;
|
|
14
|
-
return {
|
|
15
|
-
configure(t) {
|
|
16
|
-
e = t;
|
|
17
|
-
},
|
|
18
|
-
generate(t) {
|
|
19
|
-
return e(t);
|
|
20
|
-
},
|
|
21
|
-
reset() {
|
|
22
|
-
e = jt;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
}, un = ln();
|
|
26
|
-
function Ce(e, ...t) {
|
|
27
|
-
const r = new URL(`https://mui.com/production-error/?code=${e}`);
|
|
28
|
-
return t.forEach((n) => r.searchParams.append("args[]", n)), `Minified MUI error #${e}; visit ${r} for the full message.`;
|
|
29
|
-
}
|
|
30
|
-
function $e(e) {
|
|
31
|
-
if (typeof e != "string")
|
|
32
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : Ce(7));
|
|
33
|
-
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
34
|
-
}
|
|
35
|
-
function fn(e) {
|
|
36
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
37
|
-
}
|
|
38
|
-
var Ge = { exports: {} }, Ke = { exports: {} }, j = {};
|
|
39
|
-
/** @license React v16.13.1
|
|
40
|
-
* react-is.production.min.js
|
|
41
|
-
*
|
|
42
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
43
|
-
*
|
|
44
|
-
* This source code is licensed under the MIT license found in the
|
|
45
|
-
* LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/
|
|
47
|
-
var zt;
|
|
48
|
-
function dn() {
|
|
49
|
-
if (zt) return j;
|
|
50
|
-
zt = 1;
|
|
51
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, C = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, s = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, Q = e ? Symbol.for("react.scope") : 60119;
|
|
52
|
-
function O(g) {
|
|
53
|
-
if (typeof g == "object" && g !== null) {
|
|
54
|
-
var V = g.$$typeof;
|
|
55
|
-
switch (V) {
|
|
56
|
-
case t:
|
|
57
|
-
switch (g = g.type, g) {
|
|
58
|
-
case u:
|
|
59
|
-
case f:
|
|
60
|
-
case n:
|
|
61
|
-
case i:
|
|
62
|
-
case o:
|
|
63
|
-
case h:
|
|
64
|
-
return g;
|
|
65
|
-
default:
|
|
66
|
-
switch (g = g && g.$$typeof, g) {
|
|
67
|
-
case l:
|
|
68
|
-
case m:
|
|
69
|
-
case b:
|
|
70
|
-
case C:
|
|
71
|
-
case c:
|
|
72
|
-
return g;
|
|
73
|
-
default:
|
|
74
|
-
return V;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
case r:
|
|
78
|
-
return V;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
function w(g) {
|
|
83
|
-
return O(g) === f;
|
|
84
|
-
}
|
|
85
|
-
return j.AsyncMode = u, j.ConcurrentMode = f, j.ContextConsumer = l, j.ContextProvider = c, j.Element = t, j.ForwardRef = m, j.Fragment = n, j.Lazy = b, j.Memo = C, j.Portal = r, j.Profiler = i, j.StrictMode = o, j.Suspense = h, j.isAsyncMode = function(g) {
|
|
86
|
-
return w(g) || O(g) === u;
|
|
87
|
-
}, j.isConcurrentMode = w, j.isContextConsumer = function(g) {
|
|
88
|
-
return O(g) === l;
|
|
89
|
-
}, j.isContextProvider = function(g) {
|
|
90
|
-
return O(g) === c;
|
|
91
|
-
}, j.isElement = function(g) {
|
|
92
|
-
return typeof g == "object" && g !== null && g.$$typeof === t;
|
|
93
|
-
}, j.isForwardRef = function(g) {
|
|
94
|
-
return O(g) === m;
|
|
95
|
-
}, j.isFragment = function(g) {
|
|
96
|
-
return O(g) === n;
|
|
97
|
-
}, j.isLazy = function(g) {
|
|
98
|
-
return O(g) === b;
|
|
99
|
-
}, j.isMemo = function(g) {
|
|
100
|
-
return O(g) === C;
|
|
101
|
-
}, j.isPortal = function(g) {
|
|
102
|
-
return O(g) === r;
|
|
103
|
-
}, j.isProfiler = function(g) {
|
|
104
|
-
return O(g) === i;
|
|
105
|
-
}, j.isStrictMode = function(g) {
|
|
106
|
-
return O(g) === o;
|
|
107
|
-
}, j.isSuspense = function(g) {
|
|
108
|
-
return O(g) === h;
|
|
109
|
-
}, j.isValidElementType = function(g) {
|
|
110
|
-
return typeof g == "string" || typeof g == "function" || g === n || g === f || g === i || g === o || g === h || g === p || typeof g == "object" && g !== null && (g.$$typeof === b || g.$$typeof === C || g.$$typeof === c || g.$$typeof === l || g.$$typeof === m || g.$$typeof === T || g.$$typeof === $ || g.$$typeof === Q || g.$$typeof === s);
|
|
111
|
-
}, j.typeOf = O, j;
|
|
112
|
-
}
|
|
113
|
-
var z = {};
|
|
114
|
-
/** @license React v16.13.1
|
|
115
|
-
* react-is.development.js
|
|
116
|
-
*
|
|
117
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
118
|
-
*
|
|
119
|
-
* This source code is licensed under the MIT license found in the
|
|
120
|
-
* LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/
|
|
122
|
-
var Ft;
|
|
123
|
-
function mn() {
|
|
124
|
-
return Ft || (Ft = 1, process.env.NODE_ENV !== "production" && function() {
|
|
125
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, C = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, s = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, Q = e ? Symbol.for("react.scope") : 60119;
|
|
126
|
-
function O(S) {
|
|
127
|
-
return typeof S == "string" || typeof S == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
128
|
-
S === n || S === f || S === i || S === o || S === h || S === p || typeof S == "object" && S !== null && (S.$$typeof === b || S.$$typeof === C || S.$$typeof === c || S.$$typeof === l || S.$$typeof === m || S.$$typeof === T || S.$$typeof === $ || S.$$typeof === Q || S.$$typeof === s);
|
|
129
|
-
}
|
|
130
|
-
function w(S) {
|
|
131
|
-
if (typeof S == "object" && S !== null) {
|
|
132
|
-
var fe = S.$$typeof;
|
|
133
|
-
switch (fe) {
|
|
134
|
-
case t:
|
|
135
|
-
var He = S.type;
|
|
136
|
-
switch (He) {
|
|
137
|
-
case u:
|
|
138
|
-
case f:
|
|
139
|
-
case n:
|
|
140
|
-
case i:
|
|
141
|
-
case o:
|
|
142
|
-
case h:
|
|
143
|
-
return He;
|
|
144
|
-
default:
|
|
145
|
-
var Vt = He && He.$$typeof;
|
|
146
|
-
switch (Vt) {
|
|
147
|
-
case l:
|
|
148
|
-
case m:
|
|
149
|
-
case b:
|
|
150
|
-
case C:
|
|
151
|
-
case c:
|
|
152
|
-
return Vt;
|
|
153
|
-
default:
|
|
154
|
-
return fe;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
case r:
|
|
158
|
-
return fe;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
var g = u, V = f, G = l, re = c, K = t, a = m, x = n, R = b, M = C, ee = r, te = i, ne = o, ie = h, xe = !1;
|
|
163
|
-
function _e(S) {
|
|
164
|
-
return xe || (xe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), y(S) || w(S) === u;
|
|
165
|
-
}
|
|
166
|
-
function y(S) {
|
|
167
|
-
return w(S) === f;
|
|
168
|
-
}
|
|
169
|
-
function E(S) {
|
|
170
|
-
return w(S) === l;
|
|
171
|
-
}
|
|
172
|
-
function P(S) {
|
|
173
|
-
return w(S) === c;
|
|
174
|
-
}
|
|
175
|
-
function k(S) {
|
|
176
|
-
return typeof S == "object" && S !== null && S.$$typeof === t;
|
|
177
|
-
}
|
|
178
|
-
function _(S) {
|
|
179
|
-
return w(S) === m;
|
|
180
|
-
}
|
|
181
|
-
function N(S) {
|
|
182
|
-
return w(S) === n;
|
|
183
|
-
}
|
|
184
|
-
function A(S) {
|
|
185
|
-
return w(S) === b;
|
|
186
|
-
}
|
|
187
|
-
function I(S) {
|
|
188
|
-
return w(S) === C;
|
|
189
|
-
}
|
|
190
|
-
function D(S) {
|
|
191
|
-
return w(S) === r;
|
|
192
|
-
}
|
|
193
|
-
function F(S) {
|
|
194
|
-
return w(S) === i;
|
|
195
|
-
}
|
|
196
|
-
function B(S) {
|
|
197
|
-
return w(S) === o;
|
|
198
|
-
}
|
|
199
|
-
function oe(S) {
|
|
200
|
-
return w(S) === h;
|
|
201
|
-
}
|
|
202
|
-
z.AsyncMode = g, z.ConcurrentMode = V, z.ContextConsumer = G, z.ContextProvider = re, z.Element = K, z.ForwardRef = a, z.Fragment = x, z.Lazy = R, z.Memo = M, z.Portal = ee, z.Profiler = te, z.StrictMode = ne, z.Suspense = ie, z.isAsyncMode = _e, z.isConcurrentMode = y, z.isContextConsumer = E, z.isContextProvider = P, z.isElement = k, z.isForwardRef = _, z.isFragment = N, z.isLazy = A, z.isMemo = I, z.isPortal = D, z.isProfiler = F, z.isStrictMode = B, z.isSuspense = oe, z.isValidElementType = O, z.typeOf = w;
|
|
203
|
-
}()), z;
|
|
204
|
-
}
|
|
205
|
-
var Ut;
|
|
206
|
-
function Rr() {
|
|
207
|
-
return Ut || (Ut = 1, process.env.NODE_ENV === "production" ? Ke.exports = dn() : Ke.exports = mn()), Ke.exports;
|
|
208
|
-
}
|
|
209
|
-
/*
|
|
210
|
-
object-assign
|
|
211
|
-
(c) Sindre Sorhus
|
|
212
|
-
@license MIT
|
|
213
|
-
*/
|
|
214
|
-
var ht, Yt;
|
|
215
|
-
function pn() {
|
|
216
|
-
if (Yt) return ht;
|
|
217
|
-
Yt = 1;
|
|
218
|
-
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
219
|
-
function n(i) {
|
|
220
|
-
if (i == null)
|
|
221
|
-
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
222
|
-
return Object(i);
|
|
223
|
-
}
|
|
224
|
-
function o() {
|
|
225
|
-
try {
|
|
226
|
-
if (!Object.assign)
|
|
227
|
-
return !1;
|
|
228
|
-
var i = new String("abc");
|
|
229
|
-
if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
|
|
230
|
-
return !1;
|
|
231
|
-
for (var c = {}, l = 0; l < 10; l++)
|
|
232
|
-
c["_" + String.fromCharCode(l)] = l;
|
|
233
|
-
var u = Object.getOwnPropertyNames(c).map(function(m) {
|
|
234
|
-
return c[m];
|
|
235
|
-
});
|
|
236
|
-
if (u.join("") !== "0123456789")
|
|
237
|
-
return !1;
|
|
238
|
-
var f = {};
|
|
239
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(m) {
|
|
240
|
-
f[m] = m;
|
|
241
|
-
}), Object.keys(Object.assign({}, f)).join("") === "abcdefghijklmnopqrst";
|
|
242
|
-
} catch {
|
|
243
|
-
return !1;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
return ht = o() ? Object.assign : function(i, c) {
|
|
247
|
-
for (var l, u = n(i), f, m = 1; m < arguments.length; m++) {
|
|
248
|
-
l = Object(arguments[m]);
|
|
249
|
-
for (var h in l)
|
|
250
|
-
t.call(l, h) && (u[h] = l[h]);
|
|
251
|
-
if (e) {
|
|
252
|
-
f = e(l);
|
|
253
|
-
for (var p = 0; p < f.length; p++)
|
|
254
|
-
r.call(l, f[p]) && (u[f[p]] = l[f[p]]);
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
return u;
|
|
258
|
-
}, ht;
|
|
259
|
-
}
|
|
260
|
-
var gt, Wt;
|
|
261
|
-
function _t() {
|
|
262
|
-
if (Wt) return gt;
|
|
263
|
-
Wt = 1;
|
|
264
|
-
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
265
|
-
return gt = e, gt;
|
|
266
|
-
}
|
|
267
|
-
var yt, Ht;
|
|
268
|
-
function kr() {
|
|
269
|
-
return Ht || (Ht = 1, yt = Function.call.bind(Object.prototype.hasOwnProperty)), yt;
|
|
270
|
-
}
|
|
271
|
-
var bt, Gt;
|
|
272
|
-
function hn() {
|
|
273
|
-
if (Gt) return bt;
|
|
274
|
-
Gt = 1;
|
|
275
|
-
var e = function() {
|
|
276
|
-
};
|
|
277
|
-
if (process.env.NODE_ENV !== "production") {
|
|
278
|
-
var t = /* @__PURE__ */ _t(), r = {}, n = /* @__PURE__ */ kr();
|
|
279
|
-
e = function(i) {
|
|
280
|
-
var c = "Warning: " + i;
|
|
281
|
-
typeof console < "u" && console.error(c);
|
|
282
|
-
try {
|
|
283
|
-
throw new Error(c);
|
|
284
|
-
} catch {
|
|
285
|
-
}
|
|
286
|
-
};
|
|
287
|
-
}
|
|
288
|
-
function o(i, c, l, u, f) {
|
|
289
|
-
if (process.env.NODE_ENV !== "production") {
|
|
290
|
-
for (var m in i)
|
|
291
|
-
if (n(i, m)) {
|
|
292
|
-
var h;
|
|
293
|
-
try {
|
|
294
|
-
if (typeof i[m] != "function") {
|
|
295
|
-
var p = Error(
|
|
296
|
-
(u || "React class") + ": " + l + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
297
|
-
);
|
|
298
|
-
throw p.name = "Invariant Violation", p;
|
|
299
|
-
}
|
|
300
|
-
h = i[m](c, m, u, l, null, t);
|
|
301
|
-
} catch (b) {
|
|
302
|
-
h = b;
|
|
303
|
-
}
|
|
304
|
-
if (h && !(h instanceof Error) && e(
|
|
305
|
-
(u || "React class") + ": type specification of " + l + " `" + m + "` 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)."
|
|
306
|
-
), h instanceof Error && !(h.message in r)) {
|
|
307
|
-
r[h.message] = !0;
|
|
308
|
-
var C = f ? f() : "";
|
|
309
|
-
e(
|
|
310
|
-
"Failed " + l + " type: " + h.message + (C ?? "")
|
|
311
|
-
);
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
return o.resetWarningCache = function() {
|
|
317
|
-
process.env.NODE_ENV !== "production" && (r = {});
|
|
318
|
-
}, bt = o, bt;
|
|
319
|
-
}
|
|
320
|
-
var vt, Kt;
|
|
321
|
-
function gn() {
|
|
322
|
-
if (Kt) return vt;
|
|
323
|
-
Kt = 1;
|
|
324
|
-
var e = Rr(), t = pn(), r = /* @__PURE__ */ _t(), n = /* @__PURE__ */ kr(), o = /* @__PURE__ */ hn(), i = function() {
|
|
325
|
-
};
|
|
326
|
-
process.env.NODE_ENV !== "production" && (i = function(l) {
|
|
327
|
-
var u = "Warning: " + l;
|
|
328
|
-
typeof console < "u" && console.error(u);
|
|
329
|
-
try {
|
|
330
|
-
throw new Error(u);
|
|
331
|
-
} catch {
|
|
332
|
-
}
|
|
333
|
-
});
|
|
334
|
-
function c() {
|
|
335
|
-
return null;
|
|
336
|
-
}
|
|
337
|
-
return vt = function(l, u) {
|
|
338
|
-
var f = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
|
|
339
|
-
function h(y) {
|
|
340
|
-
var E = y && (f && y[f] || y[m]);
|
|
341
|
-
if (typeof E == "function")
|
|
342
|
-
return E;
|
|
343
|
-
}
|
|
344
|
-
var p = "<<anonymous>>", C = {
|
|
345
|
-
array: $("array"),
|
|
346
|
-
bigint: $("bigint"),
|
|
347
|
-
bool: $("boolean"),
|
|
348
|
-
func: $("function"),
|
|
349
|
-
number: $("number"),
|
|
350
|
-
object: $("object"),
|
|
351
|
-
string: $("string"),
|
|
352
|
-
symbol: $("symbol"),
|
|
353
|
-
any: Q(),
|
|
354
|
-
arrayOf: O,
|
|
355
|
-
element: w(),
|
|
356
|
-
elementType: g(),
|
|
357
|
-
instanceOf: V,
|
|
358
|
-
node: a(),
|
|
359
|
-
objectOf: re,
|
|
360
|
-
oneOf: G,
|
|
361
|
-
oneOfType: K,
|
|
362
|
-
shape: R,
|
|
363
|
-
exact: M
|
|
364
|
-
};
|
|
365
|
-
function b(y, E) {
|
|
366
|
-
return y === E ? y !== 0 || 1 / y === 1 / E : y !== y && E !== E;
|
|
367
|
-
}
|
|
368
|
-
function s(y, E) {
|
|
369
|
-
this.message = y, this.data = E && typeof E == "object" ? E : {}, this.stack = "";
|
|
370
|
-
}
|
|
371
|
-
s.prototype = Error.prototype;
|
|
372
|
-
function T(y) {
|
|
373
|
-
if (process.env.NODE_ENV !== "production")
|
|
374
|
-
var E = {}, P = 0;
|
|
375
|
-
function k(N, A, I, D, F, B, oe) {
|
|
376
|
-
if (D = D || p, B = B || I, oe !== r) {
|
|
377
|
-
if (u) {
|
|
378
|
-
var S = new Error(
|
|
379
|
-
"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"
|
|
380
|
-
);
|
|
381
|
-
throw S.name = "Invariant Violation", S;
|
|
382
|
-
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
383
|
-
var fe = D + ":" + I;
|
|
384
|
-
!E[fe] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
385
|
-
P < 3 && (i(
|
|
386
|
-
"You are manually calling a React.PropTypes validation function for the `" + B + "` prop on `" + D + "`. 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."
|
|
387
|
-
), E[fe] = !0, P++);
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
return A[I] == null ? N ? A[I] === null ? new s("The " + F + " `" + B + "` is marked as required " + ("in `" + D + "`, but its value is `null`.")) : new s("The " + F + " `" + B + "` is marked as required in " + ("`" + D + "`, but its value is `undefined`.")) : null : y(A, I, D, F, B);
|
|
391
|
-
}
|
|
392
|
-
var _ = k.bind(null, !1);
|
|
393
|
-
return _.isRequired = k.bind(null, !0), _;
|
|
394
|
-
}
|
|
395
|
-
function $(y) {
|
|
396
|
-
function E(P, k, _, N, A, I) {
|
|
397
|
-
var D = P[k], F = ne(D);
|
|
398
|
-
if (F !== y) {
|
|
399
|
-
var B = ie(D);
|
|
400
|
-
return new s(
|
|
401
|
-
"Invalid " + N + " `" + A + "` of type " + ("`" + B + "` supplied to `" + _ + "`, expected ") + ("`" + y + "`."),
|
|
402
|
-
{ expectedType: y }
|
|
403
|
-
);
|
|
404
|
-
}
|
|
405
|
-
return null;
|
|
406
|
-
}
|
|
407
|
-
return T(E);
|
|
408
|
-
}
|
|
409
|
-
function Q() {
|
|
410
|
-
return T(c);
|
|
411
|
-
}
|
|
412
|
-
function O(y) {
|
|
413
|
-
function E(P, k, _, N, A) {
|
|
414
|
-
if (typeof y != "function")
|
|
415
|
-
return new s("Property `" + A + "` of component `" + _ + "` has invalid PropType notation inside arrayOf.");
|
|
416
|
-
var I = P[k];
|
|
417
|
-
if (!Array.isArray(I)) {
|
|
418
|
-
var D = ne(I);
|
|
419
|
-
return new s("Invalid " + N + " `" + A + "` of type " + ("`" + D + "` supplied to `" + _ + "`, expected an array."));
|
|
420
|
-
}
|
|
421
|
-
for (var F = 0; F < I.length; F++) {
|
|
422
|
-
var B = y(I, F, _, N, A + "[" + F + "]", r);
|
|
423
|
-
if (B instanceof Error)
|
|
424
|
-
return B;
|
|
425
|
-
}
|
|
426
|
-
return null;
|
|
427
|
-
}
|
|
428
|
-
return T(E);
|
|
429
|
-
}
|
|
430
|
-
function w() {
|
|
431
|
-
function y(E, P, k, _, N) {
|
|
432
|
-
var A = E[P];
|
|
433
|
-
if (!l(A)) {
|
|
434
|
-
var I = ne(A);
|
|
435
|
-
return new s("Invalid " + _ + " `" + N + "` of type " + ("`" + I + "` supplied to `" + k + "`, expected a single ReactElement."));
|
|
436
|
-
}
|
|
437
|
-
return null;
|
|
438
|
-
}
|
|
439
|
-
return T(y);
|
|
440
|
-
}
|
|
441
|
-
function g() {
|
|
442
|
-
function y(E, P, k, _, N) {
|
|
443
|
-
var A = E[P];
|
|
444
|
-
if (!e.isValidElementType(A)) {
|
|
445
|
-
var I = ne(A);
|
|
446
|
-
return new s("Invalid " + _ + " `" + N + "` of type " + ("`" + I + "` supplied to `" + k + "`, expected a single ReactElement type."));
|
|
447
|
-
}
|
|
448
|
-
return null;
|
|
449
|
-
}
|
|
450
|
-
return T(y);
|
|
451
|
-
}
|
|
452
|
-
function V(y) {
|
|
453
|
-
function E(P, k, _, N, A) {
|
|
454
|
-
if (!(P[k] instanceof y)) {
|
|
455
|
-
var I = y.name || p, D = _e(P[k]);
|
|
456
|
-
return new s("Invalid " + N + " `" + A + "` of type " + ("`" + D + "` supplied to `" + _ + "`, expected ") + ("instance of `" + I + "`."));
|
|
457
|
-
}
|
|
458
|
-
return null;
|
|
459
|
-
}
|
|
460
|
-
return T(E);
|
|
461
|
-
}
|
|
462
|
-
function G(y) {
|
|
463
|
-
if (!Array.isArray(y))
|
|
464
|
-
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
465
|
-
"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])."
|
|
466
|
-
) : i("Invalid argument supplied to oneOf, expected an array.")), c;
|
|
467
|
-
function E(P, k, _, N, A) {
|
|
468
|
-
for (var I = P[k], D = 0; D < y.length; D++)
|
|
469
|
-
if (b(I, y[D]))
|
|
470
|
-
return null;
|
|
471
|
-
var F = JSON.stringify(y, function(oe, S) {
|
|
472
|
-
var fe = ie(S);
|
|
473
|
-
return fe === "symbol" ? String(S) : S;
|
|
474
|
-
});
|
|
475
|
-
return new s("Invalid " + N + " `" + A + "` of value `" + String(I) + "` " + ("supplied to `" + _ + "`, expected one of " + F + "."));
|
|
476
|
-
}
|
|
477
|
-
return T(E);
|
|
478
|
-
}
|
|
479
|
-
function re(y) {
|
|
480
|
-
function E(P, k, _, N, A) {
|
|
481
|
-
if (typeof y != "function")
|
|
482
|
-
return new s("Property `" + A + "` of component `" + _ + "` has invalid PropType notation inside objectOf.");
|
|
483
|
-
var I = P[k], D = ne(I);
|
|
484
|
-
if (D !== "object")
|
|
485
|
-
return new s("Invalid " + N + " `" + A + "` of type " + ("`" + D + "` supplied to `" + _ + "`, expected an object."));
|
|
486
|
-
for (var F in I)
|
|
487
|
-
if (n(I, F)) {
|
|
488
|
-
var B = y(I, F, _, N, A + "." + F, r);
|
|
489
|
-
if (B instanceof Error)
|
|
490
|
-
return B;
|
|
491
|
-
}
|
|
492
|
-
return null;
|
|
493
|
-
}
|
|
494
|
-
return T(E);
|
|
495
|
-
}
|
|
496
|
-
function K(y) {
|
|
497
|
-
if (!Array.isArray(y))
|
|
498
|
-
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), c;
|
|
499
|
-
for (var E = 0; E < y.length; E++) {
|
|
500
|
-
var P = y[E];
|
|
501
|
-
if (typeof P != "function")
|
|
502
|
-
return i(
|
|
503
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + xe(P) + " at index " + E + "."
|
|
504
|
-
), c;
|
|
505
|
-
}
|
|
506
|
-
function k(_, N, A, I, D) {
|
|
507
|
-
for (var F = [], B = 0; B < y.length; B++) {
|
|
508
|
-
var oe = y[B], S = oe(_, N, A, I, D, r);
|
|
509
|
-
if (S == null)
|
|
510
|
-
return null;
|
|
511
|
-
S.data && n(S.data, "expectedType") && F.push(S.data.expectedType);
|
|
512
|
-
}
|
|
513
|
-
var fe = F.length > 0 ? ", expected one of type [" + F.join(", ") + "]" : "";
|
|
514
|
-
return new s("Invalid " + I + " `" + D + "` supplied to " + ("`" + A + "`" + fe + "."));
|
|
515
|
-
}
|
|
516
|
-
return T(k);
|
|
517
|
-
}
|
|
518
|
-
function a() {
|
|
519
|
-
function y(E, P, k, _, N) {
|
|
520
|
-
return ee(E[P]) ? null : new s("Invalid " + _ + " `" + N + "` supplied to " + ("`" + k + "`, expected a ReactNode."));
|
|
521
|
-
}
|
|
522
|
-
return T(y);
|
|
523
|
-
}
|
|
524
|
-
function x(y, E, P, k, _) {
|
|
525
|
-
return new s(
|
|
526
|
-
(y || "React class") + ": " + E + " type `" + P + "." + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + _ + "`."
|
|
527
|
-
);
|
|
528
|
-
}
|
|
529
|
-
function R(y) {
|
|
530
|
-
function E(P, k, _, N, A) {
|
|
531
|
-
var I = P[k], D = ne(I);
|
|
532
|
-
if (D !== "object")
|
|
533
|
-
return new s("Invalid " + N + " `" + A + "` of type `" + D + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
534
|
-
for (var F in y) {
|
|
535
|
-
var B = y[F];
|
|
536
|
-
if (typeof B != "function")
|
|
537
|
-
return x(_, N, A, F, ie(B));
|
|
538
|
-
var oe = B(I, F, _, N, A + "." + F, r);
|
|
539
|
-
if (oe)
|
|
540
|
-
return oe;
|
|
541
|
-
}
|
|
542
|
-
return null;
|
|
543
|
-
}
|
|
544
|
-
return T(E);
|
|
545
|
-
}
|
|
546
|
-
function M(y) {
|
|
547
|
-
function E(P, k, _, N, A) {
|
|
548
|
-
var I = P[k], D = ne(I);
|
|
549
|
-
if (D !== "object")
|
|
550
|
-
return new s("Invalid " + N + " `" + A + "` of type `" + D + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
551
|
-
var F = t({}, P[k], y);
|
|
552
|
-
for (var B in F) {
|
|
553
|
-
var oe = y[B];
|
|
554
|
-
if (n(y, B) && typeof oe != "function")
|
|
555
|
-
return x(_, N, A, B, ie(oe));
|
|
556
|
-
if (!oe)
|
|
557
|
-
return new s(
|
|
558
|
-
"Invalid " + N + " `" + A + "` key `" + B + "` supplied to `" + _ + "`.\nBad object: " + JSON.stringify(P[k], null, " ") + `
|
|
559
|
-
Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
|
|
560
|
-
);
|
|
561
|
-
var S = oe(I, B, _, N, A + "." + B, r);
|
|
562
|
-
if (S)
|
|
563
|
-
return S;
|
|
564
|
-
}
|
|
565
|
-
return null;
|
|
566
|
-
}
|
|
567
|
-
return T(E);
|
|
568
|
-
}
|
|
569
|
-
function ee(y) {
|
|
570
|
-
switch (typeof y) {
|
|
571
|
-
case "number":
|
|
572
|
-
case "string":
|
|
573
|
-
case "undefined":
|
|
574
|
-
return !0;
|
|
575
|
-
case "boolean":
|
|
576
|
-
return !y;
|
|
577
|
-
case "object":
|
|
578
|
-
if (Array.isArray(y))
|
|
579
|
-
return y.every(ee);
|
|
580
|
-
if (y === null || l(y))
|
|
581
|
-
return !0;
|
|
582
|
-
var E = h(y);
|
|
583
|
-
if (E) {
|
|
584
|
-
var P = E.call(y), k;
|
|
585
|
-
if (E !== y.entries) {
|
|
586
|
-
for (; !(k = P.next()).done; )
|
|
587
|
-
if (!ee(k.value))
|
|
588
|
-
return !1;
|
|
589
|
-
} else
|
|
590
|
-
for (; !(k = P.next()).done; ) {
|
|
591
|
-
var _ = k.value;
|
|
592
|
-
if (_ && !ee(_[1]))
|
|
593
|
-
return !1;
|
|
594
|
-
}
|
|
595
|
-
} else
|
|
596
|
-
return !1;
|
|
597
|
-
return !0;
|
|
598
|
-
default:
|
|
599
|
-
return !1;
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
function te(y, E) {
|
|
603
|
-
return y === "symbol" ? !0 : E ? E["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && E instanceof Symbol : !1;
|
|
604
|
-
}
|
|
605
|
-
function ne(y) {
|
|
606
|
-
var E = typeof y;
|
|
607
|
-
return Array.isArray(y) ? "array" : y instanceof RegExp ? "object" : te(E, y) ? "symbol" : E;
|
|
608
|
-
}
|
|
609
|
-
function ie(y) {
|
|
610
|
-
if (typeof y > "u" || y === null)
|
|
611
|
-
return "" + y;
|
|
612
|
-
var E = ne(y);
|
|
613
|
-
if (E === "object") {
|
|
614
|
-
if (y instanceof Date)
|
|
615
|
-
return "date";
|
|
616
|
-
if (y instanceof RegExp)
|
|
617
|
-
return "regexp";
|
|
618
|
-
}
|
|
619
|
-
return E;
|
|
620
|
-
}
|
|
621
|
-
function xe(y) {
|
|
622
|
-
var E = ie(y);
|
|
623
|
-
switch (E) {
|
|
624
|
-
case "array":
|
|
625
|
-
case "object":
|
|
626
|
-
return "an " + E;
|
|
627
|
-
case "boolean":
|
|
628
|
-
case "date":
|
|
629
|
-
case "regexp":
|
|
630
|
-
return "a " + E;
|
|
631
|
-
default:
|
|
632
|
-
return E;
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
function _e(y) {
|
|
636
|
-
return !y.constructor || !y.constructor.name ? p : y.constructor.name;
|
|
637
|
-
}
|
|
638
|
-
return C.checkPropTypes = o, C.resetWarningCache = o.resetWarningCache, C.PropTypes = C, C;
|
|
639
|
-
}, vt;
|
|
640
|
-
}
|
|
641
|
-
var St, qt;
|
|
642
|
-
function yn() {
|
|
643
|
-
if (qt) return St;
|
|
644
|
-
qt = 1;
|
|
645
|
-
var e = /* @__PURE__ */ _t();
|
|
646
|
-
function t() {
|
|
647
|
-
}
|
|
648
|
-
function r() {
|
|
649
|
-
}
|
|
650
|
-
return r.resetWarningCache = t, St = function() {
|
|
651
|
-
function n(c, l, u, f, m, h) {
|
|
652
|
-
if (h !== e) {
|
|
653
|
-
var p = new Error(
|
|
654
|
-
"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"
|
|
655
|
-
);
|
|
656
|
-
throw p.name = "Invariant Violation", p;
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
n.isRequired = n;
|
|
660
|
-
function o() {
|
|
661
|
-
return n;
|
|
662
|
-
}
|
|
663
|
-
var i = {
|
|
664
|
-
array: n,
|
|
665
|
-
bigint: n,
|
|
666
|
-
bool: n,
|
|
667
|
-
func: n,
|
|
668
|
-
number: n,
|
|
669
|
-
object: n,
|
|
670
|
-
string: n,
|
|
671
|
-
symbol: n,
|
|
672
|
-
any: n,
|
|
673
|
-
arrayOf: o,
|
|
674
|
-
element: n,
|
|
675
|
-
elementType: n,
|
|
676
|
-
instanceOf: o,
|
|
677
|
-
node: n,
|
|
678
|
-
objectOf: o,
|
|
679
|
-
oneOf: o,
|
|
680
|
-
oneOfType: o,
|
|
681
|
-
shape: o,
|
|
682
|
-
exact: o,
|
|
683
|
-
checkPropTypes: r,
|
|
684
|
-
resetWarningCache: t
|
|
685
|
-
};
|
|
686
|
-
return i.PropTypes = i, i;
|
|
687
|
-
}, St;
|
|
688
|
-
}
|
|
689
|
-
var Qt;
|
|
690
|
-
function bn() {
|
|
691
|
-
if (Qt) return Ge.exports;
|
|
692
|
-
if (Qt = 1, process.env.NODE_ENV !== "production") {
|
|
693
|
-
var e = Rr(), t = !0;
|
|
694
|
-
Ge.exports = /* @__PURE__ */ gn()(e.isElement, t);
|
|
695
|
-
} else
|
|
696
|
-
Ge.exports = /* @__PURE__ */ yn()();
|
|
697
|
-
return Ge.exports;
|
|
698
|
-
}
|
|
699
|
-
var vn = /* @__PURE__ */ bn();
|
|
700
|
-
const L = /* @__PURE__ */ fn(vn);
|
|
701
|
-
function Ir(e) {
|
|
702
|
-
var t, r, n = "";
|
|
703
|
-
if (typeof e == "string" || typeof e == "number") n += e;
|
|
704
|
-
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
705
|
-
var o = e.length;
|
|
706
|
-
for (t = 0; t < o; t++) e[t] && (r = Ir(e[t])) && (n && (n += " "), n += r);
|
|
707
|
-
} else for (r in e) e[r] && (n && (n += " "), n += r);
|
|
708
|
-
return n;
|
|
709
|
-
}
|
|
710
|
-
function Pr() {
|
|
711
|
-
for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = Ir(e)) && (n && (n += " "), n += t);
|
|
712
|
-
return n;
|
|
713
|
-
}
|
|
714
|
-
function Sn(e, t, r = void 0) {
|
|
715
|
-
const n = {};
|
|
716
|
-
for (const o in e) {
|
|
717
|
-
const i = e[o];
|
|
718
|
-
let c = "", l = !0;
|
|
719
|
-
for (let u = 0; u < i.length; u += 1) {
|
|
720
|
-
const f = i[u];
|
|
721
|
-
f && (c += (l === !0 ? "" : " ") + t(f), l = !1, r && r[f] && (c += " " + r[f]));
|
|
722
|
-
}
|
|
723
|
-
n[o] = c;
|
|
724
|
-
}
|
|
725
|
-
return n;
|
|
726
|
-
}
|
|
727
|
-
var qe = { exports: {} }, U = {};
|
|
728
|
-
/**
|
|
729
|
-
* @license React
|
|
730
|
-
* react-is.production.js
|
|
731
|
-
*
|
|
732
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
733
|
-
*
|
|
734
|
-
* This source code is licensed under the MIT license found in the
|
|
735
|
-
* LICENSE file in the root directory of this source tree.
|
|
736
|
-
*/
|
|
737
|
-
var Jt;
|
|
738
|
-
function Cn() {
|
|
739
|
-
if (Jt) return U;
|
|
740
|
-
Jt = 1;
|
|
741
|
-
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), p = Symbol.for("react.view_transition"), C = Symbol.for("react.client.reference");
|
|
742
|
-
function b(s) {
|
|
743
|
-
if (typeof s == "object" && s !== null) {
|
|
744
|
-
var T = s.$$typeof;
|
|
745
|
-
switch (T) {
|
|
746
|
-
case e:
|
|
747
|
-
switch (s = s.type, s) {
|
|
748
|
-
case r:
|
|
749
|
-
case o:
|
|
750
|
-
case n:
|
|
751
|
-
case u:
|
|
752
|
-
case f:
|
|
753
|
-
case p:
|
|
754
|
-
return s;
|
|
755
|
-
default:
|
|
756
|
-
switch (s = s && s.$$typeof, s) {
|
|
757
|
-
case c:
|
|
758
|
-
case l:
|
|
759
|
-
case h:
|
|
760
|
-
case m:
|
|
761
|
-
return s;
|
|
762
|
-
case i:
|
|
763
|
-
return s;
|
|
764
|
-
default:
|
|
765
|
-
return T;
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
case t:
|
|
769
|
-
return T;
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
return U.ContextConsumer = i, U.ContextProvider = c, U.Element = e, U.ForwardRef = l, U.Fragment = r, U.Lazy = h, U.Memo = m, U.Portal = t, U.Profiler = o, U.StrictMode = n, U.Suspense = u, U.SuspenseList = f, U.isContextConsumer = function(s) {
|
|
774
|
-
return b(s) === i;
|
|
775
|
-
}, U.isContextProvider = function(s) {
|
|
776
|
-
return b(s) === c;
|
|
777
|
-
}, U.isElement = function(s) {
|
|
778
|
-
return typeof s == "object" && s !== null && s.$$typeof === e;
|
|
779
|
-
}, U.isForwardRef = function(s) {
|
|
780
|
-
return b(s) === l;
|
|
781
|
-
}, U.isFragment = function(s) {
|
|
782
|
-
return b(s) === r;
|
|
783
|
-
}, U.isLazy = function(s) {
|
|
784
|
-
return b(s) === h;
|
|
785
|
-
}, U.isMemo = function(s) {
|
|
786
|
-
return b(s) === m;
|
|
787
|
-
}, U.isPortal = function(s) {
|
|
788
|
-
return b(s) === t;
|
|
789
|
-
}, U.isProfiler = function(s) {
|
|
790
|
-
return b(s) === o;
|
|
791
|
-
}, U.isStrictMode = function(s) {
|
|
792
|
-
return b(s) === n;
|
|
793
|
-
}, U.isSuspense = function(s) {
|
|
794
|
-
return b(s) === u;
|
|
795
|
-
}, U.isSuspenseList = function(s) {
|
|
796
|
-
return b(s) === f;
|
|
797
|
-
}, U.isValidElementType = function(s) {
|
|
798
|
-
return typeof s == "string" || typeof s == "function" || s === r || s === o || s === n || s === u || s === f || typeof s == "object" && s !== null && (s.$$typeof === h || s.$$typeof === m || s.$$typeof === c || s.$$typeof === i || s.$$typeof === l || s.$$typeof === C || s.getModuleId !== void 0);
|
|
799
|
-
}, U.typeOf = b, U;
|
|
800
|
-
}
|
|
801
|
-
var Y = {};
|
|
802
|
-
/**
|
|
803
|
-
* @license React
|
|
804
|
-
* react-is.development.js
|
|
805
|
-
*
|
|
806
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
807
|
-
*
|
|
808
|
-
* This source code is licensed under the MIT license found in the
|
|
809
|
-
* LICENSE file in the root directory of this source tree.
|
|
810
|
-
*/
|
|
811
|
-
var Xt;
|
|
812
|
-
function En() {
|
|
813
|
-
return Xt || (Xt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
814
|
-
function e(s) {
|
|
815
|
-
if (typeof s == "object" && s !== null) {
|
|
816
|
-
var T = s.$$typeof;
|
|
817
|
-
switch (T) {
|
|
818
|
-
case t:
|
|
819
|
-
switch (s = s.type, s) {
|
|
820
|
-
case n:
|
|
821
|
-
case i:
|
|
822
|
-
case o:
|
|
823
|
-
case f:
|
|
824
|
-
case m:
|
|
825
|
-
case C:
|
|
826
|
-
return s;
|
|
827
|
-
default:
|
|
828
|
-
switch (s = s && s.$$typeof, s) {
|
|
829
|
-
case l:
|
|
830
|
-
case u:
|
|
831
|
-
case p:
|
|
832
|
-
case h:
|
|
833
|
-
return s;
|
|
834
|
-
case c:
|
|
835
|
-
return s;
|
|
836
|
-
default:
|
|
837
|
-
return T;
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
case r:
|
|
841
|
-
return T;
|
|
842
|
-
}
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.consumer"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), C = Symbol.for("react.view_transition"), b = Symbol.for("react.client.reference");
|
|
846
|
-
Y.ContextConsumer = c, Y.ContextProvider = l, Y.Element = t, Y.ForwardRef = u, Y.Fragment = n, Y.Lazy = p, Y.Memo = h, Y.Portal = r, Y.Profiler = i, Y.StrictMode = o, Y.Suspense = f, Y.SuspenseList = m, Y.isContextConsumer = function(s) {
|
|
847
|
-
return e(s) === c;
|
|
848
|
-
}, Y.isContextProvider = function(s) {
|
|
849
|
-
return e(s) === l;
|
|
850
|
-
}, Y.isElement = function(s) {
|
|
851
|
-
return typeof s == "object" && s !== null && s.$$typeof === t;
|
|
852
|
-
}, Y.isForwardRef = function(s) {
|
|
853
|
-
return e(s) === u;
|
|
854
|
-
}, Y.isFragment = function(s) {
|
|
855
|
-
return e(s) === n;
|
|
856
|
-
}, Y.isLazy = function(s) {
|
|
857
|
-
return e(s) === p;
|
|
858
|
-
}, Y.isMemo = function(s) {
|
|
859
|
-
return e(s) === h;
|
|
860
|
-
}, Y.isPortal = function(s) {
|
|
861
|
-
return e(s) === r;
|
|
862
|
-
}, Y.isProfiler = function(s) {
|
|
863
|
-
return e(s) === i;
|
|
864
|
-
}, Y.isStrictMode = function(s) {
|
|
865
|
-
return e(s) === o;
|
|
866
|
-
}, Y.isSuspense = function(s) {
|
|
867
|
-
return e(s) === f;
|
|
868
|
-
}, Y.isSuspenseList = function(s) {
|
|
869
|
-
return e(s) === m;
|
|
870
|
-
}, Y.isValidElementType = function(s) {
|
|
871
|
-
return typeof s == "string" || typeof s == "function" || s === n || s === i || s === o || s === f || s === m || typeof s == "object" && s !== null && (s.$$typeof === p || s.$$typeof === h || s.$$typeof === l || s.$$typeof === c || s.$$typeof === u || s.$$typeof === b || s.getModuleId !== void 0);
|
|
872
|
-
}, Y.typeOf = e;
|
|
873
|
-
}()), Y;
|
|
874
|
-
}
|
|
875
|
-
var Zt;
|
|
876
|
-
function Tn() {
|
|
877
|
-
return Zt || (Zt = 1, process.env.NODE_ENV === "production" ? qe.exports = /* @__PURE__ */ Cn() : qe.exports = /* @__PURE__ */ En()), qe.exports;
|
|
878
|
-
}
|
|
879
|
-
var et = /* @__PURE__ */ Tn();
|
|
880
|
-
function he(e) {
|
|
881
|
-
if (typeof e != "object" || e === null)
|
|
882
|
-
return !1;
|
|
883
|
-
const t = Object.getPrototypeOf(e);
|
|
884
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
885
|
-
}
|
|
886
|
-
function Mr(e) {
|
|
887
|
-
if (/* @__PURE__ */ me.isValidElement(e) || et.isValidElementType(e) || !he(e))
|
|
888
|
-
return e;
|
|
889
|
-
const t = {};
|
|
890
|
-
return Object.keys(e).forEach((r) => {
|
|
891
|
-
t[r] = Mr(e[r]);
|
|
892
|
-
}), t;
|
|
893
|
-
}
|
|
894
|
-
function se(e, t, r = {
|
|
895
|
-
clone: !0
|
|
896
|
-
}) {
|
|
897
|
-
const n = r.clone ? {
|
|
898
|
-
...e
|
|
899
|
-
} : e;
|
|
900
|
-
return he(e) && he(t) && Object.keys(t).forEach((o) => {
|
|
901
|
-
/* @__PURE__ */ me.isValidElement(t[o]) || et.isValidElementType(t[o]) ? n[o] = t[o] : he(t[o]) && // Avoid prototype pollution
|
|
902
|
-
Object.prototype.hasOwnProperty.call(e, o) && he(e[o]) ? n[o] = se(e[o], t[o], r) : r.clone ? n[o] = he(t[o]) ? Mr(t[o]) : t[o] : n[o] = t[o];
|
|
903
|
-
}), n;
|
|
904
|
-
}
|
|
905
|
-
function ze(e, t) {
|
|
906
|
-
return t ? se(e, t, {
|
|
907
|
-
clone: !1
|
|
908
|
-
// No need to clone deep, it's way faster.
|
|
909
|
-
}) : e;
|
|
910
|
-
}
|
|
911
|
-
const Te = process.env.NODE_ENV !== "production" ? L.oneOfType([L.number, L.string, L.object, L.array]) : {};
|
|
912
|
-
function er(e, t) {
|
|
913
|
-
if (!e.containerQueries)
|
|
914
|
-
return t;
|
|
915
|
-
const r = Object.keys(t).filter((n) => n.startsWith("@container")).sort((n, o) => {
|
|
916
|
-
var c, l;
|
|
917
|
-
const i = /min-width:\s*([0-9.]+)/;
|
|
918
|
-
return +(((c = n.match(i)) == null ? void 0 : c[1]) || 0) - +(((l = o.match(i)) == null ? void 0 : l[1]) || 0);
|
|
919
|
-
});
|
|
920
|
-
return r.length ? r.reduce((n, o) => {
|
|
921
|
-
const i = t[o];
|
|
922
|
-
return delete n[o], n[o] = i, n;
|
|
923
|
-
}, {
|
|
924
|
-
...t
|
|
925
|
-
}) : t;
|
|
926
|
-
}
|
|
927
|
-
function xn(e, t) {
|
|
928
|
-
return t === "@" || t.startsWith("@") && (e.some((r) => t.startsWith(`@${r}`)) || !!t.match(/^@\d/));
|
|
929
|
-
}
|
|
930
|
-
function wn(e, t) {
|
|
931
|
-
const r = t.match(/^@([^/]+)?\/?(.+)?$/);
|
|
932
|
-
if (!r) {
|
|
933
|
-
if (process.env.NODE_ENV !== "production")
|
|
934
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
935
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : Ce(18, `(${t})`));
|
|
936
|
-
return null;
|
|
937
|
-
}
|
|
938
|
-
const [, n, o] = r, i = Number.isNaN(+n) ? n || 0 : +n;
|
|
939
|
-
return e.containerQueries(o).up(i);
|
|
940
|
-
}
|
|
941
|
-
function On(e) {
|
|
942
|
-
const t = (i, c) => i.replace("@media", c ? `@container ${c}` : "@container");
|
|
943
|
-
function r(i, c) {
|
|
944
|
-
i.up = (...l) => t(e.breakpoints.up(...l), c), i.down = (...l) => t(e.breakpoints.down(...l), c), i.between = (...l) => t(e.breakpoints.between(...l), c), i.only = (...l) => t(e.breakpoints.only(...l), c), i.not = (...l) => {
|
|
945
|
-
const u = t(e.breakpoints.not(...l), c);
|
|
946
|
-
return u.includes("not all and") ? u.replace("not all and ", "").replace("min-width:", "width<").replace("max-width:", "width>").replace("and", "or") : u;
|
|
947
|
-
};
|
|
948
|
-
}
|
|
949
|
-
const n = {}, o = (i) => (r(n, i), n);
|
|
950
|
-
return r(o), {
|
|
951
|
-
...e,
|
|
952
|
-
containerQueries: o
|
|
953
|
-
};
|
|
954
|
-
}
|
|
955
|
-
const ot = {
|
|
956
|
-
xs: 0,
|
|
957
|
-
// phone
|
|
958
|
-
sm: 600,
|
|
959
|
-
// tablet
|
|
960
|
-
md: 900,
|
|
961
|
-
// small laptop
|
|
962
|
-
lg: 1200,
|
|
963
|
-
// desktop
|
|
964
|
-
xl: 1536
|
|
965
|
-
// large screen
|
|
966
|
-
}, tr = {
|
|
967
|
-
// Sorted ASC by size. That's important.
|
|
968
|
-
// It can't be configured as it's used statically for propTypes.
|
|
969
|
-
keys: ["xs", "sm", "md", "lg", "xl"],
|
|
970
|
-
up: (e) => `@media (min-width:${ot[e]}px)`
|
|
971
|
-
}, $n = {
|
|
972
|
-
containerQueries: (e) => ({
|
|
973
|
-
up: (t) => {
|
|
974
|
-
let r = typeof t == "number" ? t : ot[t] || t;
|
|
975
|
-
return typeof r == "number" && (r = `${r}px`), e ? `@container ${e} (min-width:${r})` : `@container (min-width:${r})`;
|
|
976
|
-
}
|
|
977
|
-
})
|
|
978
|
-
};
|
|
979
|
-
function be(e, t, r) {
|
|
980
|
-
const n = e.theme || {};
|
|
981
|
-
if (Array.isArray(t)) {
|
|
982
|
-
const i = n.breakpoints || tr;
|
|
983
|
-
return t.reduce((c, l, u) => (c[i.up(i.keys[u])] = r(t[u]), c), {});
|
|
984
|
-
}
|
|
985
|
-
if (typeof t == "object") {
|
|
986
|
-
const i = n.breakpoints || tr;
|
|
987
|
-
return Object.keys(t).reduce((c, l) => {
|
|
988
|
-
if (xn(i.keys, l)) {
|
|
989
|
-
const u = wn(n.containerQueries ? n : $n, l);
|
|
990
|
-
u && (c[u] = r(t[l], l));
|
|
991
|
-
} else if (Object.keys(i.values || ot).includes(l)) {
|
|
992
|
-
const u = i.up(l);
|
|
993
|
-
c[u] = r(t[l], l);
|
|
994
|
-
} else {
|
|
995
|
-
const u = l;
|
|
996
|
-
c[u] = t[u];
|
|
997
|
-
}
|
|
998
|
-
return c;
|
|
999
|
-
}, {});
|
|
1000
|
-
}
|
|
1001
|
-
return r(t);
|
|
1002
|
-
}
|
|
1003
|
-
function _n(e = {}) {
|
|
1004
|
-
var r;
|
|
1005
|
-
return ((r = e.keys) == null ? void 0 : r.reduce((n, o) => {
|
|
1006
|
-
const i = e.up(o);
|
|
1007
|
-
return n[i] = {}, n;
|
|
1008
|
-
}, {})) || {};
|
|
1009
|
-
}
|
|
1010
|
-
function rr(e, t) {
|
|
1011
|
-
return e.reduce((r, n) => {
|
|
1012
|
-
const o = r[n];
|
|
1013
|
-
return (!o || Object.keys(o).length === 0) && delete r[n], r;
|
|
1014
|
-
}, t);
|
|
1015
|
-
}
|
|
1016
|
-
function it(e, t, r = !0) {
|
|
1017
|
-
if (!t || typeof t != "string")
|
|
1018
|
-
return null;
|
|
1019
|
-
if (e && e.vars && r) {
|
|
1020
|
-
const n = `vars.${t}`.split(".").reduce((o, i) => o && o[i] ? o[i] : null, e);
|
|
1021
|
-
if (n != null)
|
|
1022
|
-
return n;
|
|
1023
|
-
}
|
|
1024
|
-
return t.split(".").reduce((n, o) => n && n[o] != null ? n[o] : null, e);
|
|
1025
|
-
}
|
|
1026
|
-
function tt(e, t, r, n = r) {
|
|
1027
|
-
let o;
|
|
1028
|
-
return typeof e == "function" ? o = e(r) : Array.isArray(e) ? o = e[r] || n : o = it(e, r) || n, t && (o = t(o, n, e)), o;
|
|
1029
|
-
}
|
|
1030
|
-
function Z(e) {
|
|
1031
|
-
const {
|
|
1032
|
-
prop: t,
|
|
1033
|
-
cssProperty: r = e.prop,
|
|
1034
|
-
themeKey: n,
|
|
1035
|
-
transform: o
|
|
1036
|
-
} = e, i = (c) => {
|
|
1037
|
-
if (c[t] == null)
|
|
1038
|
-
return null;
|
|
1039
|
-
const l = c[t], u = c.theme, f = it(u, n) || {};
|
|
1040
|
-
return be(c, l, (h) => {
|
|
1041
|
-
let p = tt(f, o, h);
|
|
1042
|
-
return h === p && typeof h == "string" && (p = tt(f, o, `${t}${h === "default" ? "" : $e(h)}`, h)), r === !1 ? p : {
|
|
1043
|
-
[r]: p
|
|
1044
|
-
};
|
|
1045
|
-
});
|
|
1046
|
-
};
|
|
1047
|
-
return i.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1048
|
-
[t]: Te
|
|
1049
|
-
} : {}, i.filterProps = [t], i;
|
|
1050
|
-
}
|
|
1051
|
-
function An(e) {
|
|
1052
|
-
const t = {};
|
|
1053
|
-
return (r) => (t[r] === void 0 && (t[r] = e(r)), t[r]);
|
|
1054
|
-
}
|
|
1055
|
-
const Rn = {
|
|
1056
|
-
m: "margin",
|
|
1057
|
-
p: "padding"
|
|
1058
|
-
}, kn = {
|
|
1059
|
-
t: "Top",
|
|
1060
|
-
r: "Right",
|
|
1061
|
-
b: "Bottom",
|
|
1062
|
-
l: "Left",
|
|
1063
|
-
x: ["Left", "Right"],
|
|
1064
|
-
y: ["Top", "Bottom"]
|
|
1065
|
-
}, nr = {
|
|
1066
|
-
marginX: "mx",
|
|
1067
|
-
marginY: "my",
|
|
1068
|
-
paddingX: "px",
|
|
1069
|
-
paddingY: "py"
|
|
1070
|
-
}, In = An((e) => {
|
|
1071
|
-
if (e.length > 2)
|
|
1072
|
-
if (nr[e])
|
|
1073
|
-
e = nr[e];
|
|
1074
|
-
else
|
|
1075
|
-
return [e];
|
|
1076
|
-
const [t, r] = e.split(""), n = Rn[t], o = kn[r] || "";
|
|
1077
|
-
return Array.isArray(o) ? o.map((i) => n + i) : [n + o];
|
|
1078
|
-
}), at = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], st = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], Pn = [...at, ...st];
|
|
1079
|
-
function Ye(e, t, r, n) {
|
|
1080
|
-
const o = it(e, t, !0) ?? r;
|
|
1081
|
-
return typeof o == "number" || typeof o == "string" ? (i) => typeof i == "string" ? i : (process.env.NODE_ENV !== "production" && typeof i != "number" && console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`), typeof o == "string" ? o.startsWith("var(") && i === 0 ? 0 : o.startsWith("var(") && i === 1 ? o : `calc(${i} * ${o})` : o * i) : Array.isArray(o) ? (i) => {
|
|
1082
|
-
if (typeof i == "string")
|
|
1083
|
-
return i;
|
|
1084
|
-
const c = Math.abs(i);
|
|
1085
|
-
process.env.NODE_ENV !== "production" && (Number.isInteger(c) ? c > o.length - 1 && console.error([`MUI: The value provided (${c}) overflows.`, `The supported values are: ${JSON.stringify(o)}.`, `${c} > ${o.length - 1}, you need to add the missing values.`].join(`
|
|
1086
|
-
`)) : 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(`
|
|
1087
|
-
`)));
|
|
1088
|
-
const l = o[c];
|
|
1089
|
-
return i >= 0 ? l : typeof l == "number" ? -l : typeof l == "string" && l.startsWith("var(") ? `calc(-1 * ${l})` : `-${l}`;
|
|
1090
|
-
} : typeof o == "function" ? o : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`, "It should be a number, an array or a function."].join(`
|
|
1091
|
-
`)), () => {
|
|
1092
|
-
});
|
|
1093
|
-
}
|
|
1094
|
-
function At(e) {
|
|
1095
|
-
return Ye(e, "spacing", 8, "spacing");
|
|
1096
|
-
}
|
|
1097
|
-
function We(e, t) {
|
|
1098
|
-
return typeof t == "string" || t == null ? t : e(t);
|
|
1099
|
-
}
|
|
1100
|
-
function Mn(e, t) {
|
|
1101
|
-
return (r) => e.reduce((n, o) => (n[o] = We(t, r), n), {});
|
|
1102
|
-
}
|
|
1103
|
-
function Nn(e, t, r, n) {
|
|
1104
|
-
if (!t.includes(r))
|
|
1105
|
-
return null;
|
|
1106
|
-
const o = In(r), i = Mn(o, n), c = e[r];
|
|
1107
|
-
return be(e, c, i);
|
|
1108
|
-
}
|
|
1109
|
-
function Nr(e, t) {
|
|
1110
|
-
const r = At(e.theme);
|
|
1111
|
-
return Object.keys(e).map((n) => Nn(e, t, n, r)).reduce(ze, {});
|
|
1112
|
-
}
|
|
1113
|
-
function J(e) {
|
|
1114
|
-
return Nr(e, at);
|
|
1115
|
-
}
|
|
1116
|
-
J.propTypes = process.env.NODE_ENV !== "production" ? at.reduce((e, t) => (e[t] = Te, e), {}) : {};
|
|
1117
|
-
J.filterProps = at;
|
|
1118
|
-
function X(e) {
|
|
1119
|
-
return Nr(e, st);
|
|
1120
|
-
}
|
|
1121
|
-
X.propTypes = process.env.NODE_ENV !== "production" ? st.reduce((e, t) => (e[t] = Te, e), {}) : {};
|
|
1122
|
-
X.filterProps = st;
|
|
1123
|
-
process.env.NODE_ENV !== "production" && Pn.reduce((e, t) => (e[t] = Te, e), {});
|
|
1124
|
-
function ct(...e) {
|
|
1125
|
-
const t = e.reduce((n, o) => (o.filterProps.forEach((i) => {
|
|
1126
|
-
n[i] = o;
|
|
1127
|
-
}), n), {}), r = (n) => Object.keys(n).reduce((o, i) => t[i] ? ze(o, t[i](n)) : o, {});
|
|
1128
|
-
return r.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((n, o) => Object.assign(n, o.propTypes), {}) : {}, r.filterProps = e.reduce((n, o) => n.concat(o.filterProps), []), r;
|
|
1129
|
-
}
|
|
1130
|
-
function le(e) {
|
|
1131
|
-
return typeof e != "number" ? e : `${e}px solid`;
|
|
1132
|
-
}
|
|
1133
|
-
function ue(e, t) {
|
|
1134
|
-
return Z({
|
|
1135
|
-
prop: e,
|
|
1136
|
-
themeKey: "borders",
|
|
1137
|
-
transform: t
|
|
1138
|
-
});
|
|
1139
|
-
}
|
|
1140
|
-
const Dn = ue("border", le), Bn = ue("borderTop", le), Ln = ue("borderRight", le), Vn = ue("borderBottom", le), jn = ue("borderLeft", le), zn = ue("borderColor"), Fn = ue("borderTopColor"), Un = ue("borderRightColor"), Yn = ue("borderBottomColor"), Wn = ue("borderLeftColor"), Hn = ue("outline", le), Gn = ue("outlineColor"), lt = (e) => {
|
|
1141
|
-
if (e.borderRadius !== void 0 && e.borderRadius !== null) {
|
|
1142
|
-
const t = Ye(e.theme, "shape.borderRadius", 4, "borderRadius"), r = (n) => ({
|
|
1143
|
-
borderRadius: We(t, n)
|
|
1144
|
-
});
|
|
1145
|
-
return be(e, e.borderRadius, r);
|
|
1146
|
-
}
|
|
1147
|
-
return null;
|
|
1148
|
-
};
|
|
1149
|
-
lt.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1150
|
-
borderRadius: Te
|
|
1151
|
-
} : {};
|
|
1152
|
-
lt.filterProps = ["borderRadius"];
|
|
1153
|
-
ct(Dn, Bn, Ln, Vn, jn, zn, Fn, Un, Yn, Wn, lt, Hn, Gn);
|
|
1154
|
-
const ut = (e) => {
|
|
1155
|
-
if (e.gap !== void 0 && e.gap !== null) {
|
|
1156
|
-
const t = Ye(e.theme, "spacing", 8, "gap"), r = (n) => ({
|
|
1157
|
-
gap: We(t, n)
|
|
1158
|
-
});
|
|
1159
|
-
return be(e, e.gap, r);
|
|
1160
|
-
}
|
|
1161
|
-
return null;
|
|
1162
|
-
};
|
|
1163
|
-
ut.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1164
|
-
gap: Te
|
|
1165
|
-
} : {};
|
|
1166
|
-
ut.filterProps = ["gap"];
|
|
1167
|
-
const ft = (e) => {
|
|
1168
|
-
if (e.columnGap !== void 0 && e.columnGap !== null) {
|
|
1169
|
-
const t = Ye(e.theme, "spacing", 8, "columnGap"), r = (n) => ({
|
|
1170
|
-
columnGap: We(t, n)
|
|
1171
|
-
});
|
|
1172
|
-
return be(e, e.columnGap, r);
|
|
1173
|
-
}
|
|
1174
|
-
return null;
|
|
1175
|
-
};
|
|
1176
|
-
ft.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1177
|
-
columnGap: Te
|
|
1178
|
-
} : {};
|
|
1179
|
-
ft.filterProps = ["columnGap"];
|
|
1180
|
-
const dt = (e) => {
|
|
1181
|
-
if (e.rowGap !== void 0 && e.rowGap !== null) {
|
|
1182
|
-
const t = Ye(e.theme, "spacing", 8, "rowGap"), r = (n) => ({
|
|
1183
|
-
rowGap: We(t, n)
|
|
1184
|
-
});
|
|
1185
|
-
return be(e, e.rowGap, r);
|
|
1186
|
-
}
|
|
1187
|
-
return null;
|
|
1188
|
-
};
|
|
1189
|
-
dt.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1190
|
-
rowGap: Te
|
|
1191
|
-
} : {};
|
|
1192
|
-
dt.filterProps = ["rowGap"];
|
|
1193
|
-
const Kn = Z({
|
|
1194
|
-
prop: "gridColumn"
|
|
1195
|
-
}), qn = Z({
|
|
1196
|
-
prop: "gridRow"
|
|
1197
|
-
}), Qn = Z({
|
|
1198
|
-
prop: "gridAutoFlow"
|
|
1199
|
-
}), Jn = Z({
|
|
1200
|
-
prop: "gridAutoColumns"
|
|
1201
|
-
}), Xn = Z({
|
|
1202
|
-
prop: "gridAutoRows"
|
|
1203
|
-
}), Zn = Z({
|
|
1204
|
-
prop: "gridTemplateColumns"
|
|
1205
|
-
}), eo = Z({
|
|
1206
|
-
prop: "gridTemplateRows"
|
|
1207
|
-
}), to = Z({
|
|
1208
|
-
prop: "gridTemplateAreas"
|
|
1209
|
-
}), ro = Z({
|
|
1210
|
-
prop: "gridArea"
|
|
1211
|
-
});
|
|
1212
|
-
ct(ut, ft, dt, Kn, qn, Qn, Jn, Xn, Zn, eo, to, ro);
|
|
1213
|
-
function Ne(e, t) {
|
|
1214
|
-
return t === "grey" ? t : e;
|
|
1215
|
-
}
|
|
1216
|
-
const no = Z({
|
|
1217
|
-
prop: "color",
|
|
1218
|
-
themeKey: "palette",
|
|
1219
|
-
transform: Ne
|
|
1220
|
-
}), oo = Z({
|
|
1221
|
-
prop: "bgcolor",
|
|
1222
|
-
cssProperty: "backgroundColor",
|
|
1223
|
-
themeKey: "palette",
|
|
1224
|
-
transform: Ne
|
|
1225
|
-
}), io = Z({
|
|
1226
|
-
prop: "backgroundColor",
|
|
1227
|
-
themeKey: "palette",
|
|
1228
|
-
transform: Ne
|
|
1229
|
-
});
|
|
1230
|
-
ct(no, oo, io);
|
|
1231
|
-
function ae(e) {
|
|
1232
|
-
return e <= 1 && e !== 0 ? `${e * 100}%` : e;
|
|
1233
|
-
}
|
|
1234
|
-
const ao = Z({
|
|
1235
|
-
prop: "width",
|
|
1236
|
-
transform: ae
|
|
1237
|
-
}), Rt = (e) => {
|
|
1238
|
-
if (e.maxWidth !== void 0 && e.maxWidth !== null) {
|
|
1239
|
-
const t = (r) => {
|
|
1240
|
-
var o, i, c, l, u;
|
|
1241
|
-
const n = ((c = (i = (o = e.theme) == null ? void 0 : o.breakpoints) == null ? void 0 : i.values) == null ? void 0 : c[r]) || ot[r];
|
|
1242
|
-
return n ? ((u = (l = e.theme) == null ? void 0 : l.breakpoints) == null ? void 0 : u.unit) !== "px" ? {
|
|
1243
|
-
maxWidth: `${n}${e.theme.breakpoints.unit}`
|
|
1244
|
-
} : {
|
|
1245
|
-
maxWidth: n
|
|
1246
|
-
} : {
|
|
1247
|
-
maxWidth: ae(r)
|
|
1248
|
-
};
|
|
1249
|
-
};
|
|
1250
|
-
return be(e, e.maxWidth, t);
|
|
1251
|
-
}
|
|
1252
|
-
return null;
|
|
1253
|
-
};
|
|
1254
|
-
Rt.filterProps = ["maxWidth"];
|
|
1255
|
-
const so = Z({
|
|
1256
|
-
prop: "minWidth",
|
|
1257
|
-
transform: ae
|
|
1258
|
-
}), co = Z({
|
|
1259
|
-
prop: "height",
|
|
1260
|
-
transform: ae
|
|
1261
|
-
}), lo = Z({
|
|
1262
|
-
prop: "maxHeight",
|
|
1263
|
-
transform: ae
|
|
1264
|
-
}), uo = Z({
|
|
1265
|
-
prop: "minHeight",
|
|
1266
|
-
transform: ae
|
|
1267
|
-
});
|
|
1268
|
-
Z({
|
|
1269
|
-
prop: "size",
|
|
1270
|
-
cssProperty: "width",
|
|
1271
|
-
transform: ae
|
|
1272
|
-
});
|
|
1273
|
-
Z({
|
|
1274
|
-
prop: "size",
|
|
1275
|
-
cssProperty: "height",
|
|
1276
|
-
transform: ae
|
|
1277
|
-
});
|
|
1278
|
-
const fo = Z({
|
|
1279
|
-
prop: "boxSizing"
|
|
1280
|
-
});
|
|
1281
|
-
ct(ao, Rt, so, co, lo, uo, fo);
|
|
1282
|
-
const mt = {
|
|
1283
|
-
// borders
|
|
1284
|
-
border: {
|
|
1285
|
-
themeKey: "borders",
|
|
1286
|
-
transform: le
|
|
1287
|
-
},
|
|
1288
|
-
borderTop: {
|
|
1289
|
-
themeKey: "borders",
|
|
1290
|
-
transform: le
|
|
1291
|
-
},
|
|
1292
|
-
borderRight: {
|
|
1293
|
-
themeKey: "borders",
|
|
1294
|
-
transform: le
|
|
1295
|
-
},
|
|
1296
|
-
borderBottom: {
|
|
1297
|
-
themeKey: "borders",
|
|
1298
|
-
transform: le
|
|
1299
|
-
},
|
|
1300
|
-
borderLeft: {
|
|
1301
|
-
themeKey: "borders",
|
|
1302
|
-
transform: le
|
|
1303
|
-
},
|
|
1304
|
-
borderColor: {
|
|
1305
|
-
themeKey: "palette"
|
|
1306
|
-
},
|
|
1307
|
-
borderTopColor: {
|
|
1308
|
-
themeKey: "palette"
|
|
1309
|
-
},
|
|
1310
|
-
borderRightColor: {
|
|
1311
|
-
themeKey: "palette"
|
|
1312
|
-
},
|
|
1313
|
-
borderBottomColor: {
|
|
1314
|
-
themeKey: "palette"
|
|
1315
|
-
},
|
|
1316
|
-
borderLeftColor: {
|
|
1317
|
-
themeKey: "palette"
|
|
1318
|
-
},
|
|
1319
|
-
outline: {
|
|
1320
|
-
themeKey: "borders",
|
|
1321
|
-
transform: le
|
|
1322
|
-
},
|
|
1323
|
-
outlineColor: {
|
|
1324
|
-
themeKey: "palette"
|
|
1325
|
-
},
|
|
1326
|
-
borderRadius: {
|
|
1327
|
-
themeKey: "shape.borderRadius",
|
|
1328
|
-
style: lt
|
|
1329
|
-
},
|
|
1330
|
-
// palette
|
|
1331
|
-
color: {
|
|
1332
|
-
themeKey: "palette",
|
|
1333
|
-
transform: Ne
|
|
1334
|
-
},
|
|
1335
|
-
bgcolor: {
|
|
1336
|
-
themeKey: "palette",
|
|
1337
|
-
cssProperty: "backgroundColor",
|
|
1338
|
-
transform: Ne
|
|
1339
|
-
},
|
|
1340
|
-
backgroundColor: {
|
|
1341
|
-
themeKey: "palette",
|
|
1342
|
-
transform: Ne
|
|
1343
|
-
},
|
|
1344
|
-
// spacing
|
|
1345
|
-
p: {
|
|
1346
|
-
style: X
|
|
1347
|
-
},
|
|
1348
|
-
pt: {
|
|
1349
|
-
style: X
|
|
1350
|
-
},
|
|
1351
|
-
pr: {
|
|
1352
|
-
style: X
|
|
1353
|
-
},
|
|
1354
|
-
pb: {
|
|
1355
|
-
style: X
|
|
1356
|
-
},
|
|
1357
|
-
pl: {
|
|
1358
|
-
style: X
|
|
1359
|
-
},
|
|
1360
|
-
px: {
|
|
1361
|
-
style: X
|
|
1362
|
-
},
|
|
1363
|
-
py: {
|
|
1364
|
-
style: X
|
|
1365
|
-
},
|
|
1366
|
-
padding: {
|
|
1367
|
-
style: X
|
|
1368
|
-
},
|
|
1369
|
-
paddingTop: {
|
|
1370
|
-
style: X
|
|
1371
|
-
},
|
|
1372
|
-
paddingRight: {
|
|
1373
|
-
style: X
|
|
1374
|
-
},
|
|
1375
|
-
paddingBottom: {
|
|
1376
|
-
style: X
|
|
1377
|
-
},
|
|
1378
|
-
paddingLeft: {
|
|
1379
|
-
style: X
|
|
1380
|
-
},
|
|
1381
|
-
paddingX: {
|
|
1382
|
-
style: X
|
|
1383
|
-
},
|
|
1384
|
-
paddingY: {
|
|
1385
|
-
style: X
|
|
1386
|
-
},
|
|
1387
|
-
paddingInline: {
|
|
1388
|
-
style: X
|
|
1389
|
-
},
|
|
1390
|
-
paddingInlineStart: {
|
|
1391
|
-
style: X
|
|
1392
|
-
},
|
|
1393
|
-
paddingInlineEnd: {
|
|
1394
|
-
style: X
|
|
1395
|
-
},
|
|
1396
|
-
paddingBlock: {
|
|
1397
|
-
style: X
|
|
1398
|
-
},
|
|
1399
|
-
paddingBlockStart: {
|
|
1400
|
-
style: X
|
|
1401
|
-
},
|
|
1402
|
-
paddingBlockEnd: {
|
|
1403
|
-
style: X
|
|
1404
|
-
},
|
|
1405
|
-
m: {
|
|
1406
|
-
style: J
|
|
1407
|
-
},
|
|
1408
|
-
mt: {
|
|
1409
|
-
style: J
|
|
1410
|
-
},
|
|
1411
|
-
mr: {
|
|
1412
|
-
style: J
|
|
1413
|
-
},
|
|
1414
|
-
mb: {
|
|
1415
|
-
style: J
|
|
1416
|
-
},
|
|
1417
|
-
ml: {
|
|
1418
|
-
style: J
|
|
1419
|
-
},
|
|
1420
|
-
mx: {
|
|
1421
|
-
style: J
|
|
1422
|
-
},
|
|
1423
|
-
my: {
|
|
1424
|
-
style: J
|
|
1425
|
-
},
|
|
1426
|
-
margin: {
|
|
1427
|
-
style: J
|
|
1428
|
-
},
|
|
1429
|
-
marginTop: {
|
|
1430
|
-
style: J
|
|
1431
|
-
},
|
|
1432
|
-
marginRight: {
|
|
1433
|
-
style: J
|
|
1434
|
-
},
|
|
1435
|
-
marginBottom: {
|
|
1436
|
-
style: J
|
|
1437
|
-
},
|
|
1438
|
-
marginLeft: {
|
|
1439
|
-
style: J
|
|
1440
|
-
},
|
|
1441
|
-
marginX: {
|
|
1442
|
-
style: J
|
|
1443
|
-
},
|
|
1444
|
-
marginY: {
|
|
1445
|
-
style: J
|
|
1446
|
-
},
|
|
1447
|
-
marginInline: {
|
|
1448
|
-
style: J
|
|
1449
|
-
},
|
|
1450
|
-
marginInlineStart: {
|
|
1451
|
-
style: J
|
|
1452
|
-
},
|
|
1453
|
-
marginInlineEnd: {
|
|
1454
|
-
style: J
|
|
1455
|
-
},
|
|
1456
|
-
marginBlock: {
|
|
1457
|
-
style: J
|
|
1458
|
-
},
|
|
1459
|
-
marginBlockStart: {
|
|
1460
|
-
style: J
|
|
1461
|
-
},
|
|
1462
|
-
marginBlockEnd: {
|
|
1463
|
-
style: J
|
|
1464
|
-
},
|
|
1465
|
-
// display
|
|
1466
|
-
displayPrint: {
|
|
1467
|
-
cssProperty: !1,
|
|
1468
|
-
transform: (e) => ({
|
|
1469
|
-
"@media print": {
|
|
1470
|
-
display: e
|
|
1471
|
-
}
|
|
1472
|
-
})
|
|
1473
|
-
},
|
|
1474
|
-
display: {},
|
|
1475
|
-
overflow: {},
|
|
1476
|
-
textOverflow: {},
|
|
1477
|
-
visibility: {},
|
|
1478
|
-
whiteSpace: {},
|
|
1479
|
-
// flexbox
|
|
1480
|
-
flexBasis: {},
|
|
1481
|
-
flexDirection: {},
|
|
1482
|
-
flexWrap: {},
|
|
1483
|
-
justifyContent: {},
|
|
1484
|
-
alignItems: {},
|
|
1485
|
-
alignContent: {},
|
|
1486
|
-
order: {},
|
|
1487
|
-
flex: {},
|
|
1488
|
-
flexGrow: {},
|
|
1489
|
-
flexShrink: {},
|
|
1490
|
-
alignSelf: {},
|
|
1491
|
-
justifyItems: {},
|
|
1492
|
-
justifySelf: {},
|
|
1493
|
-
// grid
|
|
1494
|
-
gap: {
|
|
1495
|
-
style: ut
|
|
1496
|
-
},
|
|
1497
|
-
rowGap: {
|
|
1498
|
-
style: dt
|
|
1499
|
-
},
|
|
1500
|
-
columnGap: {
|
|
1501
|
-
style: ft
|
|
1502
|
-
},
|
|
1503
|
-
gridColumn: {},
|
|
1504
|
-
gridRow: {},
|
|
1505
|
-
gridAutoFlow: {},
|
|
1506
|
-
gridAutoColumns: {},
|
|
1507
|
-
gridAutoRows: {},
|
|
1508
|
-
gridTemplateColumns: {},
|
|
1509
|
-
gridTemplateRows: {},
|
|
1510
|
-
gridTemplateAreas: {},
|
|
1511
|
-
gridArea: {},
|
|
1512
|
-
// positions
|
|
1513
|
-
position: {},
|
|
1514
|
-
zIndex: {
|
|
1515
|
-
themeKey: "zIndex"
|
|
1516
|
-
},
|
|
1517
|
-
top: {},
|
|
1518
|
-
right: {},
|
|
1519
|
-
bottom: {},
|
|
1520
|
-
left: {},
|
|
1521
|
-
// shadows
|
|
1522
|
-
boxShadow: {
|
|
1523
|
-
themeKey: "shadows"
|
|
1524
|
-
},
|
|
1525
|
-
// sizing
|
|
1526
|
-
width: {
|
|
1527
|
-
transform: ae
|
|
1528
|
-
},
|
|
1529
|
-
maxWidth: {
|
|
1530
|
-
style: Rt
|
|
1531
|
-
},
|
|
1532
|
-
minWidth: {
|
|
1533
|
-
transform: ae
|
|
1534
|
-
},
|
|
1535
|
-
height: {
|
|
1536
|
-
transform: ae
|
|
1537
|
-
},
|
|
1538
|
-
maxHeight: {
|
|
1539
|
-
transform: ae
|
|
1540
|
-
},
|
|
1541
|
-
minHeight: {
|
|
1542
|
-
transform: ae
|
|
1543
|
-
},
|
|
1544
|
-
boxSizing: {},
|
|
1545
|
-
// typography
|
|
1546
|
-
font: {
|
|
1547
|
-
themeKey: "font"
|
|
1548
|
-
},
|
|
1549
|
-
fontFamily: {
|
|
1550
|
-
themeKey: "typography"
|
|
1551
|
-
},
|
|
1552
|
-
fontSize: {
|
|
1553
|
-
themeKey: "typography"
|
|
1554
|
-
},
|
|
1555
|
-
fontStyle: {
|
|
1556
|
-
themeKey: "typography"
|
|
1557
|
-
},
|
|
1558
|
-
fontWeight: {
|
|
1559
|
-
themeKey: "typography"
|
|
1560
|
-
},
|
|
1561
|
-
letterSpacing: {},
|
|
1562
|
-
textTransform: {},
|
|
1563
|
-
lineHeight: {},
|
|
1564
|
-
textAlign: {},
|
|
1565
|
-
typography: {
|
|
1566
|
-
cssProperty: !1,
|
|
1567
|
-
themeKey: "typography"
|
|
1568
|
-
}
|
|
1569
|
-
};
|
|
1570
|
-
function mo(...e) {
|
|
1571
|
-
const t = e.reduce((n, o) => n.concat(Object.keys(o)), []), r = new Set(t);
|
|
1572
|
-
return e.every((n) => r.size === Object.keys(n).length);
|
|
1573
|
-
}
|
|
1574
|
-
function po(e, t) {
|
|
1575
|
-
return typeof e == "function" ? e(t) : e;
|
|
1576
|
-
}
|
|
1577
|
-
function ho() {
|
|
1578
|
-
function e(r, n, o, i) {
|
|
1579
|
-
const c = {
|
|
1580
|
-
[r]: n,
|
|
1581
|
-
theme: o
|
|
1582
|
-
}, l = i[r];
|
|
1583
|
-
if (!l)
|
|
1584
|
-
return {
|
|
1585
|
-
[r]: n
|
|
1586
|
-
};
|
|
1587
|
-
const {
|
|
1588
|
-
cssProperty: u = r,
|
|
1589
|
-
themeKey: f,
|
|
1590
|
-
transform: m,
|
|
1591
|
-
style: h
|
|
1592
|
-
} = l;
|
|
1593
|
-
if (n == null)
|
|
1594
|
-
return null;
|
|
1595
|
-
if (f === "typography" && n === "inherit")
|
|
1596
|
-
return {
|
|
1597
|
-
[r]: n
|
|
1598
|
-
};
|
|
1599
|
-
const p = it(o, f) || {};
|
|
1600
|
-
return h ? h(c) : be(c, n, (b) => {
|
|
1601
|
-
let s = tt(p, m, b);
|
|
1602
|
-
return b === s && typeof b == "string" && (s = tt(p, m, `${r}${b === "default" ? "" : $e(b)}`, b)), u === !1 ? s : {
|
|
1603
|
-
[u]: s
|
|
1604
|
-
};
|
|
1605
|
-
});
|
|
1606
|
-
}
|
|
1607
|
-
function t(r) {
|
|
1608
|
-
const {
|
|
1609
|
-
sx: n,
|
|
1610
|
-
theme: o = {},
|
|
1611
|
-
nested: i
|
|
1612
|
-
} = r || {};
|
|
1613
|
-
if (!n)
|
|
1614
|
-
return null;
|
|
1615
|
-
const c = o.unstable_sxConfig ?? mt;
|
|
1616
|
-
function l(u) {
|
|
1617
|
-
let f = u;
|
|
1618
|
-
if (typeof u == "function")
|
|
1619
|
-
f = u(o);
|
|
1620
|
-
else if (typeof u != "object")
|
|
1621
|
-
return u;
|
|
1622
|
-
if (!f)
|
|
1623
|
-
return null;
|
|
1624
|
-
const m = _n(o.breakpoints), h = Object.keys(m);
|
|
1625
|
-
let p = m;
|
|
1626
|
-
return Object.keys(f).forEach((C) => {
|
|
1627
|
-
const b = po(f[C], o);
|
|
1628
|
-
if (b != null)
|
|
1629
|
-
if (typeof b == "object")
|
|
1630
|
-
if (c[C])
|
|
1631
|
-
p = ze(p, e(C, b, o, c));
|
|
1632
|
-
else {
|
|
1633
|
-
const s = be({
|
|
1634
|
-
theme: o
|
|
1635
|
-
}, b, (T) => ({
|
|
1636
|
-
[C]: T
|
|
1637
|
-
}));
|
|
1638
|
-
mo(s, b) ? p[C] = t({
|
|
1639
|
-
sx: b,
|
|
1640
|
-
theme: o,
|
|
1641
|
-
nested: !0
|
|
1642
|
-
}) : p = ze(p, s);
|
|
1643
|
-
}
|
|
1644
|
-
else
|
|
1645
|
-
p = ze(p, e(C, b, o, c));
|
|
1646
|
-
}), !i && o.modularCssLayers ? {
|
|
1647
|
-
"@layer sx": er(o, rr(h, p))
|
|
1648
|
-
} : er(o, rr(h, p));
|
|
1649
|
-
}
|
|
1650
|
-
return Array.isArray(n) ? n.map(l) : l(n);
|
|
1651
|
-
}
|
|
1652
|
-
return t;
|
|
1653
|
-
}
|
|
1654
|
-
const De = ho();
|
|
1655
|
-
De.filterProps = ["sx"];
|
|
1656
|
-
function go(e) {
|
|
1657
|
-
for (var t = 0, r, n = 0, o = e.length; o >= 4; ++n, o -= 4)
|
|
1658
|
-
r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */
|
|
1659
|
-
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
|
|
1660
|
-
r >>> 24, t = /* Math.imul(k, m): */
|
|
1661
|
-
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
1662
|
-
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
1663
|
-
switch (o) {
|
|
1664
|
-
case 3:
|
|
1665
|
-
t ^= (e.charCodeAt(n + 2) & 255) << 16;
|
|
1666
|
-
case 2:
|
|
1667
|
-
t ^= (e.charCodeAt(n + 1) & 255) << 8;
|
|
1668
|
-
case 1:
|
|
1669
|
-
t ^= e.charCodeAt(n) & 255, t = /* Math.imul(h, m): */
|
|
1670
|
-
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
1671
|
-
}
|
|
1672
|
-
return t ^= t >>> 13, t = /* Math.imul(h, m): */
|
|
1673
|
-
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
|
1674
|
-
}
|
|
1675
|
-
var yo = {
|
|
1676
|
-
animationIterationCount: 1,
|
|
1677
|
-
aspectRatio: 1,
|
|
1678
|
-
borderImageOutset: 1,
|
|
1679
|
-
borderImageSlice: 1,
|
|
1680
|
-
borderImageWidth: 1,
|
|
1681
|
-
boxFlex: 1,
|
|
1682
|
-
boxFlexGroup: 1,
|
|
1683
|
-
boxOrdinalGroup: 1,
|
|
1684
|
-
columnCount: 1,
|
|
1685
|
-
columns: 1,
|
|
1686
|
-
flex: 1,
|
|
1687
|
-
flexGrow: 1,
|
|
1688
|
-
flexPositive: 1,
|
|
1689
|
-
flexShrink: 1,
|
|
1690
|
-
flexNegative: 1,
|
|
1691
|
-
flexOrder: 1,
|
|
1692
|
-
gridRow: 1,
|
|
1693
|
-
gridRowEnd: 1,
|
|
1694
|
-
gridRowSpan: 1,
|
|
1695
|
-
gridRowStart: 1,
|
|
1696
|
-
gridColumn: 1,
|
|
1697
|
-
gridColumnEnd: 1,
|
|
1698
|
-
gridColumnSpan: 1,
|
|
1699
|
-
gridColumnStart: 1,
|
|
1700
|
-
msGridRow: 1,
|
|
1701
|
-
msGridRowSpan: 1,
|
|
1702
|
-
msGridColumn: 1,
|
|
1703
|
-
msGridColumnSpan: 1,
|
|
1704
|
-
fontWeight: 1,
|
|
1705
|
-
lineHeight: 1,
|
|
1706
|
-
opacity: 1,
|
|
1707
|
-
order: 1,
|
|
1708
|
-
orphans: 1,
|
|
1709
|
-
scale: 1,
|
|
1710
|
-
tabSize: 1,
|
|
1711
|
-
widows: 1,
|
|
1712
|
-
zIndex: 1,
|
|
1713
|
-
zoom: 1,
|
|
1714
|
-
WebkitLineClamp: 1,
|
|
1715
|
-
// SVG-related properties
|
|
1716
|
-
fillOpacity: 1,
|
|
1717
|
-
floodOpacity: 1,
|
|
1718
|
-
stopOpacity: 1,
|
|
1719
|
-
strokeDasharray: 1,
|
|
1720
|
-
strokeDashoffset: 1,
|
|
1721
|
-
strokeMiterlimit: 1,
|
|
1722
|
-
strokeOpacity: 1,
|
|
1723
|
-
strokeWidth: 1
|
|
1724
|
-
};
|
|
1725
|
-
function bo(e) {
|
|
1726
|
-
var t = /* @__PURE__ */ Object.create(null);
|
|
1727
|
-
return function(r) {
|
|
1728
|
-
return t[r] === void 0 && (t[r] = e(r)), t[r];
|
|
1729
|
-
};
|
|
1730
|
-
}
|
|
1731
|
-
var vo = /[A-Z]|^ms/g, So = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Dr = function(t) {
|
|
1732
|
-
return t.charCodeAt(1) === 45;
|
|
1733
|
-
}, or = function(t) {
|
|
1734
|
-
return t != null && typeof t != "boolean";
|
|
1735
|
-
}, Ct = /* @__PURE__ */ bo(function(e) {
|
|
1736
|
-
return Dr(e) ? e : e.replace(vo, "-$&").toLowerCase();
|
|
1737
|
-
}), ir = function(t, r) {
|
|
1738
|
-
switch (t) {
|
|
1739
|
-
case "animation":
|
|
1740
|
-
case "animationName":
|
|
1741
|
-
if (typeof r == "string")
|
|
1742
|
-
return r.replace(So, function(n, o, i) {
|
|
1743
|
-
return ve = {
|
|
1744
|
-
name: o,
|
|
1745
|
-
styles: i,
|
|
1746
|
-
next: ve
|
|
1747
|
-
}, o;
|
|
1748
|
-
});
|
|
1749
|
-
}
|
|
1750
|
-
return yo[t] !== 1 && !Dr(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
|
|
1751
|
-
};
|
|
1752
|
-
function rt(e, t, r) {
|
|
1753
|
-
if (r == null)
|
|
1754
|
-
return "";
|
|
1755
|
-
var n = r;
|
|
1756
|
-
if (n.__emotion_styles !== void 0)
|
|
1757
|
-
return n;
|
|
1758
|
-
switch (typeof r) {
|
|
1759
|
-
case "boolean":
|
|
1760
|
-
return "";
|
|
1761
|
-
case "object": {
|
|
1762
|
-
var o = r;
|
|
1763
|
-
if (o.anim === 1)
|
|
1764
|
-
return ve = {
|
|
1765
|
-
name: o.name,
|
|
1766
|
-
styles: o.styles,
|
|
1767
|
-
next: ve
|
|
1768
|
-
}, o.name;
|
|
1769
|
-
var i = r;
|
|
1770
|
-
if (i.styles !== void 0) {
|
|
1771
|
-
var c = i.next;
|
|
1772
|
-
if (c !== void 0)
|
|
1773
|
-
for (; c !== void 0; )
|
|
1774
|
-
ve = {
|
|
1775
|
-
name: c.name,
|
|
1776
|
-
styles: c.styles,
|
|
1777
|
-
next: ve
|
|
1778
|
-
}, c = c.next;
|
|
1779
|
-
var l = i.styles + ";";
|
|
1780
|
-
return l;
|
|
1781
|
-
}
|
|
1782
|
-
return Co(e, t, r);
|
|
1783
|
-
}
|
|
1784
|
-
}
|
|
1785
|
-
var u = r;
|
|
1786
|
-
return u;
|
|
1787
|
-
}
|
|
1788
|
-
function Co(e, t, r) {
|
|
1789
|
-
var n = "";
|
|
1790
|
-
if (Array.isArray(r))
|
|
1791
|
-
for (var o = 0; o < r.length; o++)
|
|
1792
|
-
n += rt(e, t, r[o]) + ";";
|
|
1793
|
-
else
|
|
1794
|
-
for (var i in r) {
|
|
1795
|
-
var c = r[i];
|
|
1796
|
-
if (typeof c != "object") {
|
|
1797
|
-
var l = c;
|
|
1798
|
-
or(l) && (n += Ct(i) + ":" + ir(i, l) + ";");
|
|
1799
|
-
} else if (Array.isArray(c) && typeof c[0] == "string" && t == null)
|
|
1800
|
-
for (var u = 0; u < c.length; u++)
|
|
1801
|
-
or(c[u]) && (n += Ct(i) + ":" + ir(i, c[u]) + ";");
|
|
1802
|
-
else {
|
|
1803
|
-
var f = rt(e, t, c);
|
|
1804
|
-
switch (i) {
|
|
1805
|
-
case "animation":
|
|
1806
|
-
case "animationName": {
|
|
1807
|
-
n += Ct(i) + ":" + f + ";";
|
|
1808
|
-
break;
|
|
1809
|
-
}
|
|
1810
|
-
default:
|
|
1811
|
-
n += i + "{" + f + "}";
|
|
1812
|
-
}
|
|
1813
|
-
}
|
|
1814
|
-
}
|
|
1815
|
-
return n;
|
|
1816
|
-
}
|
|
1817
|
-
var ar = /label:\s*([^\s;{]+)\s*(;|$)/g, ve;
|
|
1818
|
-
function Eo(e, t, r) {
|
|
1819
|
-
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1820
|
-
return e[0];
|
|
1821
|
-
var n = !0, o = "";
|
|
1822
|
-
ve = void 0;
|
|
1823
|
-
var i = e[0];
|
|
1824
|
-
if (i == null || i.raw === void 0)
|
|
1825
|
-
n = !1, o += rt(r, t, i);
|
|
1826
|
-
else {
|
|
1827
|
-
var c = i;
|
|
1828
|
-
o += c[0];
|
|
1829
|
-
}
|
|
1830
|
-
for (var l = 1; l < e.length; l++)
|
|
1831
|
-
if (o += rt(r, t, e[l]), n) {
|
|
1832
|
-
var u = i;
|
|
1833
|
-
o += u[l];
|
|
1834
|
-
}
|
|
1835
|
-
ar.lastIndex = 0;
|
|
1836
|
-
for (var f = "", m; (m = ar.exec(o)) !== null; )
|
|
1837
|
-
f += "-" + m[1];
|
|
1838
|
-
var h = go(o) + f;
|
|
1839
|
-
return {
|
|
1840
|
-
name: h,
|
|
1841
|
-
styles: o,
|
|
1842
|
-
next: ve
|
|
1843
|
-
};
|
|
1844
|
-
}
|
|
1845
|
-
/**
|
|
1846
|
-
* @mui/styled-engine v7.2.0
|
|
1847
|
-
*
|
|
1848
|
-
* @license MIT
|
|
1849
|
-
* This source code is licensed under the MIT license found in the
|
|
1850
|
-
* LICENSE file in the root directory of this source tree.
|
|
1851
|
-
*/
|
|
1852
|
-
function To(e, t) {
|
|
1853
|
-
const r = an(e, t);
|
|
1854
|
-
return process.env.NODE_ENV !== "production" ? (...n) => {
|
|
1855
|
-
const o = typeof e == "string" ? `"${e}"` : "component";
|
|
1856
|
-
return n.length === 0 ? console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
1857
|
-
`)) : n.some((i) => i === void 0) && console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`), r(...n);
|
|
1858
|
-
} : r;
|
|
1859
|
-
}
|
|
1860
|
-
function xo(e, t) {
|
|
1861
|
-
Array.isArray(e.__emotion_styles) && (e.__emotion_styles = t(e.__emotion_styles));
|
|
1862
|
-
}
|
|
1863
|
-
const sr = [];
|
|
1864
|
-
function Oe(e) {
|
|
1865
|
-
return sr[0] = e, Eo(sr);
|
|
1866
|
-
}
|
|
1867
|
-
const wo = (e) => {
|
|
1868
|
-
const t = Object.keys(e).map((r) => ({
|
|
1869
|
-
key: r,
|
|
1870
|
-
val: e[r]
|
|
1871
|
-
})) || [];
|
|
1872
|
-
return t.sort((r, n) => r.val - n.val), t.reduce((r, n) => ({
|
|
1873
|
-
...r,
|
|
1874
|
-
[n.key]: n.val
|
|
1875
|
-
}), {});
|
|
1876
|
-
};
|
|
1877
|
-
function Oo(e) {
|
|
1878
|
-
const {
|
|
1879
|
-
// The breakpoint **start** at this value.
|
|
1880
|
-
// For instance with the first breakpoint xs: [xs, sm).
|
|
1881
|
-
values: t = {
|
|
1882
|
-
xs: 0,
|
|
1883
|
-
// phone
|
|
1884
|
-
sm: 600,
|
|
1885
|
-
// tablet
|
|
1886
|
-
md: 900,
|
|
1887
|
-
// small laptop
|
|
1888
|
-
lg: 1200,
|
|
1889
|
-
// desktop
|
|
1890
|
-
xl: 1536
|
|
1891
|
-
// large screen
|
|
1892
|
-
},
|
|
1893
|
-
unit: r = "px",
|
|
1894
|
-
step: n = 5,
|
|
1895
|
-
...o
|
|
1896
|
-
} = e, i = wo(t), c = Object.keys(i);
|
|
1897
|
-
function l(p) {
|
|
1898
|
-
return `@media (min-width:${typeof t[p] == "number" ? t[p] : p}${r})`;
|
|
1899
|
-
}
|
|
1900
|
-
function u(p) {
|
|
1901
|
-
return `@media (max-width:${(typeof t[p] == "number" ? t[p] : p) - n / 100}${r})`;
|
|
1902
|
-
}
|
|
1903
|
-
function f(p, C) {
|
|
1904
|
-
const b = c.indexOf(C);
|
|
1905
|
-
return `@media (min-width:${typeof t[p] == "number" ? t[p] : p}${r}) and (max-width:${(b !== -1 && typeof t[c[b]] == "number" ? t[c[b]] : C) - n / 100}${r})`;
|
|
1906
|
-
}
|
|
1907
|
-
function m(p) {
|
|
1908
|
-
return c.indexOf(p) + 1 < c.length ? f(p, c[c.indexOf(p) + 1]) : l(p);
|
|
1909
|
-
}
|
|
1910
|
-
function h(p) {
|
|
1911
|
-
const C = c.indexOf(p);
|
|
1912
|
-
return C === 0 ? l(c[1]) : C === c.length - 1 ? u(c[C]) : f(p, c[c.indexOf(p) + 1]).replace("@media", "@media not all and");
|
|
1913
|
-
}
|
|
1914
|
-
return {
|
|
1915
|
-
keys: c,
|
|
1916
|
-
values: i,
|
|
1917
|
-
up: l,
|
|
1918
|
-
down: u,
|
|
1919
|
-
between: f,
|
|
1920
|
-
only: m,
|
|
1921
|
-
not: h,
|
|
1922
|
-
unit: r,
|
|
1923
|
-
...o
|
|
1924
|
-
};
|
|
1925
|
-
}
|
|
1926
|
-
const $o = {
|
|
1927
|
-
borderRadius: 4
|
|
1928
|
-
};
|
|
1929
|
-
function Br(e = 8, t = At({
|
|
1930
|
-
spacing: e
|
|
1931
|
-
})) {
|
|
1932
|
-
if (e.mui)
|
|
1933
|
-
return e;
|
|
1934
|
-
const r = (...n) => (process.env.NODE_ENV !== "production" && (n.length <= 4 || console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)), (n.length === 0 ? [1] : n).map((i) => {
|
|
1935
|
-
const c = t(i);
|
|
1936
|
-
return typeof c == "number" ? `${c}px` : c;
|
|
1937
|
-
}).join(" "));
|
|
1938
|
-
return r.mui = !0, r;
|
|
1939
|
-
}
|
|
1940
|
-
function _o(e, t) {
|
|
1941
|
-
var n;
|
|
1942
|
-
const r = this;
|
|
1943
|
-
if (r.vars) {
|
|
1944
|
-
if (!((n = r.colorSchemes) != null && n[e]) || typeof r.getColorSchemeSelector != "function")
|
|
1945
|
-
return {};
|
|
1946
|
-
let o = r.getColorSchemeSelector(e);
|
|
1947
|
-
return o === "&" ? t : ((o.includes("data-") || o.includes(".")) && (o = `*:where(${o.replace(/\s*&$/, "")}) &`), {
|
|
1948
|
-
[o]: t
|
|
1949
|
-
});
|
|
1950
|
-
}
|
|
1951
|
-
return r.palette.mode === e ? t : {};
|
|
1952
|
-
}
|
|
1953
|
-
function kt(e = {}, ...t) {
|
|
1954
|
-
const {
|
|
1955
|
-
breakpoints: r = {},
|
|
1956
|
-
palette: n = {},
|
|
1957
|
-
spacing: o,
|
|
1958
|
-
shape: i = {},
|
|
1959
|
-
...c
|
|
1960
|
-
} = e, l = Oo(r), u = Br(o);
|
|
1961
|
-
let f = se({
|
|
1962
|
-
breakpoints: l,
|
|
1963
|
-
direction: "ltr",
|
|
1964
|
-
components: {},
|
|
1965
|
-
// Inject component definitions.
|
|
1966
|
-
palette: {
|
|
1967
|
-
mode: "light",
|
|
1968
|
-
...n
|
|
1969
|
-
},
|
|
1970
|
-
spacing: u,
|
|
1971
|
-
shape: {
|
|
1972
|
-
...$o,
|
|
1973
|
-
...i
|
|
1974
|
-
}
|
|
1975
|
-
}, c);
|
|
1976
|
-
return f = On(f), f.applyStyles = _o, f = t.reduce((m, h) => se(m, h), f), f.unstable_sxConfig = {
|
|
1977
|
-
...mt,
|
|
1978
|
-
...c == null ? void 0 : c.unstable_sxConfig
|
|
1979
|
-
}, f.unstable_sx = function(h) {
|
|
1980
|
-
return De({
|
|
1981
|
-
sx: h,
|
|
1982
|
-
theme: this
|
|
1983
|
-
});
|
|
1984
|
-
}, f;
|
|
1985
|
-
}
|
|
1986
|
-
function Ao(e) {
|
|
1987
|
-
return Object.keys(e).length === 0;
|
|
1988
|
-
}
|
|
1989
|
-
function Ro(e = null) {
|
|
1990
|
-
const t = me.useContext(sn);
|
|
1991
|
-
return !t || Ao(t) ? e : t;
|
|
1992
|
-
}
|
|
1993
|
-
const ko = kt();
|
|
1994
|
-
function Io(e = ko) {
|
|
1995
|
-
return Ro(e);
|
|
1996
|
-
}
|
|
1997
|
-
const Po = {
|
|
1998
|
-
active: "active",
|
|
1999
|
-
checked: "checked",
|
|
2000
|
-
completed: "completed",
|
|
2001
|
-
disabled: "disabled",
|
|
2002
|
-
error: "error",
|
|
2003
|
-
expanded: "expanded",
|
|
2004
|
-
focused: "focused",
|
|
2005
|
-
focusVisible: "focusVisible",
|
|
2006
|
-
open: "open",
|
|
2007
|
-
readOnly: "readOnly",
|
|
2008
|
-
required: "required",
|
|
2009
|
-
selected: "selected"
|
|
2010
|
-
};
|
|
2011
|
-
function It(e, t, r = "Mui") {
|
|
2012
|
-
const n = Po[t];
|
|
2013
|
-
return n ? `${r}-${n}` : `${un.generate(e)}-${t}`;
|
|
2014
|
-
}
|
|
2015
|
-
function Mo(e, t, r = "Mui") {
|
|
2016
|
-
const n = {};
|
|
2017
|
-
return t.forEach((o) => {
|
|
2018
|
-
n[o] = It(e, o, r);
|
|
2019
|
-
}), n;
|
|
2020
|
-
}
|
|
2021
|
-
function Lr(e, t = "") {
|
|
2022
|
-
return e.displayName || e.name || t;
|
|
2023
|
-
}
|
|
2024
|
-
function cr(e, t, r) {
|
|
2025
|
-
const n = Lr(t);
|
|
2026
|
-
return e.displayName || (n !== "" ? `${r}(${n})` : r);
|
|
2027
|
-
}
|
|
2028
|
-
function No(e) {
|
|
2029
|
-
if (e != null) {
|
|
2030
|
-
if (typeof e == "string")
|
|
2031
|
-
return e;
|
|
2032
|
-
if (typeof e == "function")
|
|
2033
|
-
return Lr(e, "Component");
|
|
2034
|
-
if (typeof e == "object")
|
|
2035
|
-
switch (e.$$typeof) {
|
|
2036
|
-
case et.ForwardRef:
|
|
2037
|
-
return cr(e, e.render, "ForwardRef");
|
|
2038
|
-
case et.Memo:
|
|
2039
|
-
return cr(e, e.type, "memo");
|
|
2040
|
-
default:
|
|
2041
|
-
return;
|
|
2042
|
-
}
|
|
2043
|
-
}
|
|
2044
|
-
}
|
|
2045
|
-
function Vr(e) {
|
|
2046
|
-
const {
|
|
2047
|
-
variants: t,
|
|
2048
|
-
...r
|
|
2049
|
-
} = e, n = {
|
|
2050
|
-
variants: t,
|
|
2051
|
-
style: Oe(r),
|
|
2052
|
-
isProcessed: !0
|
|
2053
|
-
};
|
|
2054
|
-
return n.style === r || t && t.forEach((o) => {
|
|
2055
|
-
typeof o.style != "function" && (o.style = Oe(o.style));
|
|
2056
|
-
}), n;
|
|
2057
|
-
}
|
|
2058
|
-
const Do = kt();
|
|
2059
|
-
function Et(e) {
|
|
2060
|
-
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
2061
|
-
}
|
|
2062
|
-
function we(e, t) {
|
|
2063
|
-
return t && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${t}{${String(e.styles)}}`), e;
|
|
2064
|
-
}
|
|
2065
|
-
function Bo(e) {
|
|
2066
|
-
return e ? (t, r) => r[e] : null;
|
|
2067
|
-
}
|
|
2068
|
-
function Lo(e, t, r) {
|
|
2069
|
-
e.theme = Fo(e.theme) ? r : e.theme[t] || e.theme;
|
|
2070
|
-
}
|
|
2071
|
-
function Xe(e, t, r) {
|
|
2072
|
-
const n = typeof t == "function" ? t(e) : t;
|
|
2073
|
-
if (Array.isArray(n))
|
|
2074
|
-
return n.flatMap((o) => Xe(e, o, r));
|
|
2075
|
-
if (Array.isArray(n == null ? void 0 : n.variants)) {
|
|
2076
|
-
let o;
|
|
2077
|
-
if (n.isProcessed)
|
|
2078
|
-
o = r ? we(n.style, r) : n.style;
|
|
2079
|
-
else {
|
|
2080
|
-
const {
|
|
2081
|
-
variants: i,
|
|
2082
|
-
...c
|
|
2083
|
-
} = n;
|
|
2084
|
-
o = r ? we(Oe(c), r) : c;
|
|
2085
|
-
}
|
|
2086
|
-
return jr(e, n.variants, [o], r);
|
|
2087
|
-
}
|
|
2088
|
-
return n != null && n.isProcessed ? r ? we(Oe(n.style), r) : n.style : r ? we(Oe(n), r) : n;
|
|
2089
|
-
}
|
|
2090
|
-
function jr(e, t, r = [], n = void 0) {
|
|
2091
|
-
var i;
|
|
2092
|
-
let o;
|
|
2093
|
-
e: for (let c = 0; c < t.length; c += 1) {
|
|
2094
|
-
const l = t[c];
|
|
2095
|
-
if (typeof l.props == "function") {
|
|
2096
|
-
if (o ?? (o = {
|
|
2097
|
-
...e,
|
|
2098
|
-
...e.ownerState,
|
|
2099
|
-
ownerState: e.ownerState
|
|
2100
|
-
}), !l.props(o))
|
|
2101
|
-
continue;
|
|
2102
|
-
} else
|
|
2103
|
-
for (const u in l.props)
|
|
2104
|
-
if (e[u] !== l.props[u] && ((i = e.ownerState) == null ? void 0 : i[u]) !== l.props[u])
|
|
2105
|
-
continue e;
|
|
2106
|
-
typeof l.style == "function" ? (o ?? (o = {
|
|
2107
|
-
...e,
|
|
2108
|
-
...e.ownerState,
|
|
2109
|
-
ownerState: e.ownerState
|
|
2110
|
-
}), r.push(n ? we(Oe(l.style(o)), n) : l.style(o))) : r.push(n ? we(Oe(l.style), n) : l.style);
|
|
2111
|
-
}
|
|
2112
|
-
return r;
|
|
2113
|
-
}
|
|
2114
|
-
function Vo(e = {}) {
|
|
2115
|
-
const {
|
|
2116
|
-
themeId: t,
|
|
2117
|
-
defaultTheme: r = Do,
|
|
2118
|
-
rootShouldForwardProp: n = Et,
|
|
2119
|
-
slotShouldForwardProp: o = Et
|
|
2120
|
-
} = e;
|
|
2121
|
-
function i(l) {
|
|
2122
|
-
Lo(l, t, r);
|
|
2123
|
-
}
|
|
2124
|
-
return (l, u = {}) => {
|
|
2125
|
-
xo(l, (V) => V.filter((G) => G !== De));
|
|
2126
|
-
const {
|
|
2127
|
-
name: f,
|
|
2128
|
-
slot: m,
|
|
2129
|
-
skipVariantsResolver: h,
|
|
2130
|
-
skipSx: p,
|
|
2131
|
-
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
2132
|
-
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
2133
|
-
overridesResolver: C = Bo(zr(m)),
|
|
2134
|
-
...b
|
|
2135
|
-
} = u, s = f && f.startsWith("Mui") || m ? "components" : "custom", T = h !== void 0 ? h : (
|
|
2136
|
-
// TODO v6: remove `Root` in the next major release
|
|
2137
|
-
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
2138
|
-
m && m !== "Root" && m !== "root" || !1
|
|
2139
|
-
), $ = p || !1;
|
|
2140
|
-
let Q = Et;
|
|
2141
|
-
m === "Root" || m === "root" ? Q = n : m ? Q = o : Uo(l) && (Q = void 0);
|
|
2142
|
-
const O = To(l, {
|
|
2143
|
-
shouldForwardProp: Q,
|
|
2144
|
-
label: zo(f, m),
|
|
2145
|
-
...b
|
|
2146
|
-
}), w = (V) => {
|
|
2147
|
-
if (V.__emotion_real === V)
|
|
2148
|
-
return V;
|
|
2149
|
-
if (typeof V == "function")
|
|
2150
|
-
return function(re) {
|
|
2151
|
-
return Xe(re, V, re.theme.modularCssLayers ? s : void 0);
|
|
2152
|
-
};
|
|
2153
|
-
if (he(V)) {
|
|
2154
|
-
const G = Vr(V);
|
|
2155
|
-
return function(K) {
|
|
2156
|
-
return G.variants ? Xe(K, G, K.theme.modularCssLayers ? s : void 0) : K.theme.modularCssLayers ? we(G.style, s) : G.style;
|
|
2157
|
-
};
|
|
2158
|
-
}
|
|
2159
|
-
return V;
|
|
2160
|
-
}, g = (...V) => {
|
|
2161
|
-
const G = [], re = V.map(w), K = [];
|
|
2162
|
-
if (G.push(i), f && C && K.push(function(M) {
|
|
2163
|
-
var ie, xe;
|
|
2164
|
-
const te = (xe = (ie = M.theme.components) == null ? void 0 : ie[f]) == null ? void 0 : xe.styleOverrides;
|
|
2165
|
-
if (!te)
|
|
2166
|
-
return null;
|
|
2167
|
-
const ne = {};
|
|
2168
|
-
for (const _e in te)
|
|
2169
|
-
ne[_e] = Xe(M, te[_e], M.theme.modularCssLayers ? "theme" : void 0);
|
|
2170
|
-
return C(M, ne);
|
|
2171
|
-
}), f && !T && K.push(function(M) {
|
|
2172
|
-
var ne, ie;
|
|
2173
|
-
const ee = M.theme, te = (ie = (ne = ee == null ? void 0 : ee.components) == null ? void 0 : ne[f]) == null ? void 0 : ie.variants;
|
|
2174
|
-
return te ? jr(M, te, [], M.theme.modularCssLayers ? "theme" : void 0) : null;
|
|
2175
|
-
}), $ || K.push(De), Array.isArray(re[0])) {
|
|
2176
|
-
const R = re.shift(), M = new Array(G.length).fill(""), ee = new Array(K.length).fill("");
|
|
2177
|
-
let te;
|
|
2178
|
-
te = [...M, ...R, ...ee], te.raw = [...M, ...R.raw, ...ee], G.unshift(te);
|
|
2179
|
-
}
|
|
2180
|
-
const a = [...G, ...re, ...K], x = O(...a);
|
|
2181
|
-
return l.muiName && (x.muiName = l.muiName), process.env.NODE_ENV !== "production" && (x.displayName = jo(f, m, l)), x;
|
|
2182
|
-
};
|
|
2183
|
-
return O.withConfig && (g.withConfig = O.withConfig), g;
|
|
2184
|
-
};
|
|
2185
|
-
}
|
|
2186
|
-
function jo(e, t, r) {
|
|
2187
|
-
return e ? `${e}${$e(t || "")}` : `Styled(${No(r)})`;
|
|
2188
|
-
}
|
|
2189
|
-
function zo(e, t) {
|
|
2190
|
-
let r;
|
|
2191
|
-
return process.env.NODE_ENV !== "production" && e && (r = `${e}-${zr(t || "Root")}`), r;
|
|
2192
|
-
}
|
|
2193
|
-
function Fo(e) {
|
|
2194
|
-
for (const t in e)
|
|
2195
|
-
return !1;
|
|
2196
|
-
return !0;
|
|
2197
|
-
}
|
|
2198
|
-
function Uo(e) {
|
|
2199
|
-
return typeof e == "string" && // 96 is one less than the char code
|
|
2200
|
-
// for "a" so this is checking that
|
|
2201
|
-
// it's a lowercase character
|
|
2202
|
-
e.charCodeAt(0) > 96;
|
|
2203
|
-
}
|
|
2204
|
-
function zr(e) {
|
|
2205
|
-
return e && e.charAt(0).toLowerCase() + e.slice(1);
|
|
2206
|
-
}
|
|
2207
|
-
function wt(e, t, r = !1) {
|
|
2208
|
-
const n = {
|
|
2209
|
-
...t
|
|
2210
|
-
};
|
|
2211
|
-
for (const o in e)
|
|
2212
|
-
if (Object.prototype.hasOwnProperty.call(e, o)) {
|
|
2213
|
-
const i = o;
|
|
2214
|
-
if (i === "components" || i === "slots")
|
|
2215
|
-
n[i] = {
|
|
2216
|
-
...e[i],
|
|
2217
|
-
...n[i]
|
|
2218
|
-
};
|
|
2219
|
-
else if (i === "componentsProps" || i === "slotProps") {
|
|
2220
|
-
const c = e[i], l = t[i];
|
|
2221
|
-
if (!l)
|
|
2222
|
-
n[i] = c || {};
|
|
2223
|
-
else if (!c)
|
|
2224
|
-
n[i] = l;
|
|
2225
|
-
else {
|
|
2226
|
-
n[i] = {
|
|
2227
|
-
...l
|
|
2228
|
-
};
|
|
2229
|
-
for (const u in c)
|
|
2230
|
-
if (Object.prototype.hasOwnProperty.call(c, u)) {
|
|
2231
|
-
const f = u;
|
|
2232
|
-
n[i][f] = wt(c[f], l[f], r);
|
|
2233
|
-
}
|
|
2234
|
-
}
|
|
2235
|
-
} else i === "className" && r && t.className ? n.className = Pr(e == null ? void 0 : e.className, t == null ? void 0 : t.className) : i === "style" && r && t.style ? n.style = {
|
|
2236
|
-
...e == null ? void 0 : e.style,
|
|
2237
|
-
...t == null ? void 0 : t.style
|
|
2238
|
-
} : n[i] === void 0 && (n[i] = e[i]);
|
|
2239
|
-
}
|
|
2240
|
-
return n;
|
|
2241
|
-
}
|
|
2242
|
-
function Yo(e, t = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
|
|
2243
|
-
return Math.max(t, Math.min(e, r));
|
|
2244
|
-
}
|
|
2245
|
-
function Pt(e, t = 0, r = 1) {
|
|
2246
|
-
return process.env.NODE_ENV !== "production" && (e < t || e > r) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`), Yo(e, t, r);
|
|
2247
|
-
}
|
|
2248
|
-
function Wo(e) {
|
|
2249
|
-
e = e.slice(1);
|
|
2250
|
-
const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
|
|
2251
|
-
let r = e.match(t);
|
|
2252
|
-
return r && r[0].length === 1 && (r = r.map((n) => n + n)), process.env.NODE_ENV !== "production" && e.length !== e.trim().length && console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`), r ? `rgb${r.length === 4 ? "a" : ""}(${r.map((n, o) => o < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
|
|
2253
|
-
}
|
|
2254
|
-
function Ee(e) {
|
|
2255
|
-
if (e.type)
|
|
2256
|
-
return e;
|
|
2257
|
-
if (e.charAt(0) === "#")
|
|
2258
|
-
return Ee(Wo(e));
|
|
2259
|
-
const t = e.indexOf("("), r = e.substring(0, t);
|
|
2260
|
-
if (!["rgb", "rgba", "hsl", "hsla", "color"].includes(r))
|
|
2261
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
|
|
2262
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : Ce(9, e));
|
|
2263
|
-
let n = e.substring(t + 1, e.length - 1), o;
|
|
2264
|
-
if (r === "color") {
|
|
2265
|
-
if (n = n.split(" "), o = n.shift(), n.length === 4 && n[3].charAt(0) === "/" && (n[3] = n[3].slice(1)), !["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].includes(o))
|
|
2266
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${o}\` color space.
|
|
2267
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : Ce(10, o));
|
|
2268
|
-
} else
|
|
2269
|
-
n = n.split(",");
|
|
2270
|
-
return n = n.map((i) => parseFloat(i)), {
|
|
2271
|
-
type: r,
|
|
2272
|
-
values: n,
|
|
2273
|
-
colorSpace: o
|
|
2274
|
-
};
|
|
2275
|
-
}
|
|
2276
|
-
const Ho = (e) => {
|
|
2277
|
-
const t = Ee(e);
|
|
2278
|
-
return t.values.slice(0, 3).map((r, n) => t.type.includes("hsl") && n !== 0 ? `${r}%` : r).join(" ");
|
|
2279
|
-
}, Ve = (e, t) => {
|
|
2280
|
-
try {
|
|
2281
|
-
return Ho(e);
|
|
2282
|
-
} catch {
|
|
2283
|
-
return t && process.env.NODE_ENV !== "production" && console.warn(t), e;
|
|
2284
|
-
}
|
|
2285
|
-
};
|
|
2286
|
-
function pt(e) {
|
|
2287
|
-
const {
|
|
2288
|
-
type: t,
|
|
2289
|
-
colorSpace: r
|
|
2290
|
-
} = e;
|
|
2291
|
-
let {
|
|
2292
|
-
values: n
|
|
2293
|
-
} = e;
|
|
2294
|
-
return t.includes("rgb") ? n = n.map((o, i) => i < 3 ? parseInt(o, 10) : o) : t.includes("hsl") && (n[1] = `${n[1]}%`, n[2] = `${n[2]}%`), t.includes("color") ? n = `${r} ${n.join(" ")}` : n = `${n.join(", ")}`, `${t}(${n})`;
|
|
2295
|
-
}
|
|
2296
|
-
function Fr(e) {
|
|
2297
|
-
e = Ee(e);
|
|
2298
|
-
const {
|
|
2299
|
-
values: t
|
|
2300
|
-
} = e, r = t[0], n = t[1] / 100, o = t[2] / 100, i = n * Math.min(o, 1 - o), c = (f, m = (f + r / 30) % 12) => o - i * Math.max(Math.min(m - 3, 9 - m, 1), -1);
|
|
2301
|
-
let l = "rgb";
|
|
2302
|
-
const u = [Math.round(c(0) * 255), Math.round(c(8) * 255), Math.round(c(4) * 255)];
|
|
2303
|
-
return e.type === "hsla" && (l += "a", u.push(t[3])), pt({
|
|
2304
|
-
type: l,
|
|
2305
|
-
values: u
|
|
2306
|
-
});
|
|
2307
|
-
}
|
|
2308
|
-
function Ot(e) {
|
|
2309
|
-
e = Ee(e);
|
|
2310
|
-
let t = e.type === "hsl" || e.type === "hsla" ? Ee(Fr(e)).values : e.values;
|
|
2311
|
-
return t = t.map((r) => (e.type !== "color" && (r /= 255), r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4)), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3));
|
|
2312
|
-
}
|
|
2313
|
-
function lr(e, t) {
|
|
2314
|
-
const r = Ot(e), n = Ot(t);
|
|
2315
|
-
return (Math.max(r, n) + 0.05) / (Math.min(r, n) + 0.05);
|
|
2316
|
-
}
|
|
2317
|
-
function Go(e, t) {
|
|
2318
|
-
return e = Ee(e), t = Pt(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, pt(e);
|
|
2319
|
-
}
|
|
2320
|
-
function Qe(e, t, r) {
|
|
2321
|
-
try {
|
|
2322
|
-
return Go(e, t);
|
|
2323
|
-
} catch {
|
|
2324
|
-
return e;
|
|
2325
|
-
}
|
|
2326
|
-
}
|
|
2327
|
-
function Mt(e, t) {
|
|
2328
|
-
if (e = Ee(e), t = Pt(t), e.type.includes("hsl"))
|
|
2329
|
-
e.values[2] *= 1 - t;
|
|
2330
|
-
else if (e.type.includes("rgb") || e.type.includes("color"))
|
|
2331
|
-
for (let r = 0; r < 3; r += 1)
|
|
2332
|
-
e.values[r] *= 1 - t;
|
|
2333
|
-
return pt(e);
|
|
2334
|
-
}
|
|
2335
|
-
function W(e, t, r) {
|
|
2336
|
-
try {
|
|
2337
|
-
return Mt(e, t);
|
|
2338
|
-
} catch {
|
|
2339
|
-
return e;
|
|
2340
|
-
}
|
|
2341
|
-
}
|
|
2342
|
-
function Nt(e, t) {
|
|
2343
|
-
if (e = Ee(e), t = Pt(t), e.type.includes("hsl"))
|
|
2344
|
-
e.values[2] += (100 - e.values[2]) * t;
|
|
2345
|
-
else if (e.type.includes("rgb"))
|
|
2346
|
-
for (let r = 0; r < 3; r += 1)
|
|
2347
|
-
e.values[r] += (255 - e.values[r]) * t;
|
|
2348
|
-
else if (e.type.includes("color"))
|
|
2349
|
-
for (let r = 0; r < 3; r += 1)
|
|
2350
|
-
e.values[r] += (1 - e.values[r]) * t;
|
|
2351
|
-
return pt(e);
|
|
2352
|
-
}
|
|
2353
|
-
function H(e, t, r) {
|
|
2354
|
-
try {
|
|
2355
|
-
return Nt(e, t);
|
|
2356
|
-
} catch {
|
|
2357
|
-
return e;
|
|
2358
|
-
}
|
|
2359
|
-
}
|
|
2360
|
-
function Ko(e, t = 0.15) {
|
|
2361
|
-
return Ot(e) > 0.5 ? Mt(e, t) : Nt(e, t);
|
|
2362
|
-
}
|
|
2363
|
-
function Je(e, t, r) {
|
|
2364
|
-
try {
|
|
2365
|
-
return Ko(e, t);
|
|
2366
|
-
} catch {
|
|
2367
|
-
return e;
|
|
2368
|
-
}
|
|
2369
|
-
}
|
|
2370
|
-
const qo = /* @__PURE__ */ me.createContext(void 0);
|
|
2371
|
-
process.env.NODE_ENV !== "production" && (L.node, L.object);
|
|
2372
|
-
function Qo(e) {
|
|
2373
|
-
const {
|
|
2374
|
-
theme: t,
|
|
2375
|
-
name: r,
|
|
2376
|
-
props: n
|
|
2377
|
-
} = e;
|
|
2378
|
-
if (!t || !t.components || !t.components[r])
|
|
2379
|
-
return n;
|
|
2380
|
-
const o = t.components[r];
|
|
2381
|
-
return o.defaultProps ? wt(o.defaultProps, n, t.components.mergeClassNameAndStyle) : !o.styleOverrides && !o.variants ? wt(o, n, t.components.mergeClassNameAndStyle) : n;
|
|
2382
|
-
}
|
|
2383
|
-
function Jo({
|
|
2384
|
-
props: e,
|
|
2385
|
-
name: t
|
|
2386
|
-
}) {
|
|
2387
|
-
const r = me.useContext(qo);
|
|
2388
|
-
return Qo({
|
|
2389
|
-
props: e,
|
|
2390
|
-
name: t,
|
|
2391
|
-
theme: {
|
|
2392
|
-
components: r
|
|
2393
|
-
}
|
|
2394
|
-
});
|
|
2395
|
-
}
|
|
2396
|
-
const ur = {
|
|
2397
|
-
theme: void 0
|
|
2398
|
-
};
|
|
2399
|
-
function Xo(e) {
|
|
2400
|
-
let t, r;
|
|
2401
|
-
return function(o) {
|
|
2402
|
-
let i = t;
|
|
2403
|
-
return (i === void 0 || o.theme !== r) && (ur.theme = o.theme, i = Vr(e(ur)), t = i, r = o.theme), i;
|
|
2404
|
-
};
|
|
2405
|
-
}
|
|
2406
|
-
function Zo(e = "") {
|
|
2407
|
-
function t(...n) {
|
|
2408
|
-
if (!n.length)
|
|
2409
|
-
return "";
|
|
2410
|
-
const o = n[0];
|
|
2411
|
-
return typeof o == "string" && !o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/) ? `, var(--${e ? `${e}-` : ""}${o}${t(...n.slice(1))})` : `, ${o}`;
|
|
2412
|
-
}
|
|
2413
|
-
return (n, ...o) => `var(--${e ? `${e}-` : ""}${n}${t(...o)})`;
|
|
2414
|
-
}
|
|
2415
|
-
const fr = (e, t, r, n = []) => {
|
|
2416
|
-
let o = e;
|
|
2417
|
-
t.forEach((i, c) => {
|
|
2418
|
-
c === t.length - 1 ? Array.isArray(o) ? o[Number(i)] = r : o && typeof o == "object" && (o[i] = r) : o && typeof o == "object" && (o[i] || (o[i] = n.includes(i) ? [] : {}), o = o[i]);
|
|
2419
|
-
});
|
|
2420
|
-
}, ei = (e, t, r) => {
|
|
2421
|
-
function n(o, i = [], c = []) {
|
|
2422
|
-
Object.entries(o).forEach(([l, u]) => {
|
|
2423
|
-
(!r || r && !r([...i, l])) && u != null && (typeof u == "object" && Object.keys(u).length > 0 ? n(u, [...i, l], Array.isArray(u) ? [...c, l] : c) : t([...i, l], u, c));
|
|
2424
|
-
});
|
|
2425
|
-
}
|
|
2426
|
-
n(e);
|
|
2427
|
-
}, ti = (e, t) => typeof t == "number" ? ["lineHeight", "fontWeight", "opacity", "zIndex"].some((n) => e.includes(n)) || e[e.length - 1].toLowerCase().includes("opacity") ? t : `${t}px` : t;
|
|
2428
|
-
function Tt(e, t) {
|
|
2429
|
-
const {
|
|
2430
|
-
prefix: r,
|
|
2431
|
-
shouldSkipGeneratingVar: n
|
|
2432
|
-
} = t || {}, o = {}, i = {}, c = {};
|
|
2433
|
-
return ei(
|
|
2434
|
-
e,
|
|
2435
|
-
(l, u, f) => {
|
|
2436
|
-
if ((typeof u == "string" || typeof u == "number") && (!n || !n(l, u))) {
|
|
2437
|
-
const m = `--${r ? `${r}-` : ""}${l.join("-")}`, h = ti(l, u);
|
|
2438
|
-
Object.assign(o, {
|
|
2439
|
-
[m]: h
|
|
2440
|
-
}), fr(i, l, `var(${m})`, f), fr(c, l, `var(${m}, ${h})`, f);
|
|
2441
|
-
}
|
|
2442
|
-
},
|
|
2443
|
-
(l) => l[0] === "vars"
|
|
2444
|
-
// skip 'vars/*' paths
|
|
2445
|
-
), {
|
|
2446
|
-
css: o,
|
|
2447
|
-
vars: i,
|
|
2448
|
-
varsWithDefaults: c
|
|
2449
|
-
};
|
|
2450
|
-
}
|
|
2451
|
-
function ri(e, t = {}) {
|
|
2452
|
-
const {
|
|
2453
|
-
getSelector: r = T,
|
|
2454
|
-
disableCssColorScheme: n,
|
|
2455
|
-
colorSchemeSelector: o
|
|
2456
|
-
} = t, {
|
|
2457
|
-
colorSchemes: i = {},
|
|
2458
|
-
components: c,
|
|
2459
|
-
defaultColorScheme: l = "light",
|
|
2460
|
-
...u
|
|
2461
|
-
} = e, {
|
|
2462
|
-
vars: f,
|
|
2463
|
-
css: m,
|
|
2464
|
-
varsWithDefaults: h
|
|
2465
|
-
} = Tt(u, t);
|
|
2466
|
-
let p = h;
|
|
2467
|
-
const C = {}, {
|
|
2468
|
-
[l]: b,
|
|
2469
|
-
...s
|
|
2470
|
-
} = i;
|
|
2471
|
-
if (Object.entries(s || {}).forEach(([O, w]) => {
|
|
2472
|
-
const {
|
|
2473
|
-
vars: g,
|
|
2474
|
-
css: V,
|
|
2475
|
-
varsWithDefaults: G
|
|
2476
|
-
} = Tt(w, t);
|
|
2477
|
-
p = se(p, G), C[O] = {
|
|
2478
|
-
css: V,
|
|
2479
|
-
vars: g
|
|
2480
|
-
};
|
|
2481
|
-
}), b) {
|
|
2482
|
-
const {
|
|
2483
|
-
css: O,
|
|
2484
|
-
vars: w,
|
|
2485
|
-
varsWithDefaults: g
|
|
2486
|
-
} = Tt(b, t);
|
|
2487
|
-
p = se(p, g), C[l] = {
|
|
2488
|
-
css: O,
|
|
2489
|
-
vars: w
|
|
2490
|
-
};
|
|
2491
|
-
}
|
|
2492
|
-
function T(O, w) {
|
|
2493
|
-
var V, G;
|
|
2494
|
-
let g = o;
|
|
2495
|
-
if (o === "class" && (g = ".%s"), o === "data" && (g = "[data-%s]"), o != null && o.startsWith("data-") && !o.includes("%s") && (g = `[${o}="%s"]`), O) {
|
|
2496
|
-
if (g === "media")
|
|
2497
|
-
return e.defaultColorScheme === O ? ":root" : {
|
|
2498
|
-
[`@media (prefers-color-scheme: ${((G = (V = i[O]) == null ? void 0 : V.palette) == null ? void 0 : G.mode) || O})`]: {
|
|
2499
|
-
":root": w
|
|
2500
|
-
}
|
|
2501
|
-
};
|
|
2502
|
-
if (g)
|
|
2503
|
-
return e.defaultColorScheme === O ? `:root, ${g.replace("%s", String(O))}` : g.replace("%s", String(O));
|
|
2504
|
-
}
|
|
2505
|
-
return ":root";
|
|
2506
|
-
}
|
|
2507
|
-
return {
|
|
2508
|
-
vars: p,
|
|
2509
|
-
generateThemeVars: () => {
|
|
2510
|
-
let O = {
|
|
2511
|
-
...f
|
|
2512
|
-
};
|
|
2513
|
-
return Object.entries(C).forEach(([, {
|
|
2514
|
-
vars: w
|
|
2515
|
-
}]) => {
|
|
2516
|
-
O = se(O, w);
|
|
2517
|
-
}), O;
|
|
2518
|
-
},
|
|
2519
|
-
generateStyleSheets: () => {
|
|
2520
|
-
var re, K;
|
|
2521
|
-
const O = [], w = e.defaultColorScheme || "light";
|
|
2522
|
-
function g(a, x) {
|
|
2523
|
-
Object.keys(x).length && O.push(typeof a == "string" ? {
|
|
2524
|
-
[a]: {
|
|
2525
|
-
...x
|
|
2526
|
-
}
|
|
2527
|
-
} : a);
|
|
2528
|
-
}
|
|
2529
|
-
g(r(void 0, {
|
|
2530
|
-
...m
|
|
2531
|
-
}), m);
|
|
2532
|
-
const {
|
|
2533
|
-
[w]: V,
|
|
2534
|
-
...G
|
|
2535
|
-
} = C;
|
|
2536
|
-
if (V) {
|
|
2537
|
-
const {
|
|
2538
|
-
css: a
|
|
2539
|
-
} = V, x = (K = (re = i[w]) == null ? void 0 : re.palette) == null ? void 0 : K.mode, R = !n && x ? {
|
|
2540
|
-
colorScheme: x,
|
|
2541
|
-
...a
|
|
2542
|
-
} : {
|
|
2543
|
-
...a
|
|
2544
|
-
};
|
|
2545
|
-
g(r(w, {
|
|
2546
|
-
...R
|
|
2547
|
-
}), R);
|
|
2548
|
-
}
|
|
2549
|
-
return Object.entries(G).forEach(([a, {
|
|
2550
|
-
css: x
|
|
2551
|
-
}]) => {
|
|
2552
|
-
var ee, te;
|
|
2553
|
-
const R = (te = (ee = i[a]) == null ? void 0 : ee.palette) == null ? void 0 : te.mode, M = !n && R ? {
|
|
2554
|
-
colorScheme: R,
|
|
2555
|
-
...x
|
|
2556
|
-
} : {
|
|
2557
|
-
...x
|
|
2558
|
-
};
|
|
2559
|
-
g(r(a, {
|
|
2560
|
-
...M
|
|
2561
|
-
}), M);
|
|
2562
|
-
}), O;
|
|
2563
|
-
}
|
|
2564
|
-
};
|
|
2565
|
-
}
|
|
2566
|
-
function ni(e) {
|
|
2567
|
-
return function(r) {
|
|
2568
|
-
return e === "media" ? (process.env.NODE_ENV !== "production" && r !== "light" && r !== "dark" && console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`), `@media (prefers-color-scheme: ${r})`) : e ? e.startsWith("data-") && !e.includes("%s") ? `[${e}="${r}"] &` : e === "class" ? `.${r} &` : e === "data" ? `[data-${r}] &` : `${e.replace("%s", r)} &` : "&";
|
|
2569
|
-
};
|
|
2570
|
-
}
|
|
2571
|
-
const Ue = {
|
|
2572
|
-
black: "#000",
|
|
2573
|
-
white: "#fff"
|
|
2574
|
-
}, oi = {
|
|
2575
|
-
50: "#fafafa",
|
|
2576
|
-
100: "#f5f5f5",
|
|
2577
|
-
200: "#eeeeee",
|
|
2578
|
-
300: "#e0e0e0",
|
|
2579
|
-
400: "#bdbdbd",
|
|
2580
|
-
500: "#9e9e9e",
|
|
2581
|
-
600: "#757575",
|
|
2582
|
-
700: "#616161",
|
|
2583
|
-
800: "#424242",
|
|
2584
|
-
900: "#212121",
|
|
2585
|
-
A100: "#f5f5f5",
|
|
2586
|
-
A200: "#eeeeee",
|
|
2587
|
-
A400: "#bdbdbd",
|
|
2588
|
-
A700: "#616161"
|
|
2589
|
-
}, Ae = {
|
|
2590
|
-
50: "#f3e5f5",
|
|
2591
|
-
200: "#ce93d8",
|
|
2592
|
-
300: "#ba68c8",
|
|
2593
|
-
400: "#ab47bc",
|
|
2594
|
-
500: "#9c27b0",
|
|
2595
|
-
700: "#7b1fa2"
|
|
2596
|
-
}, Re = {
|
|
2597
|
-
300: "#e57373",
|
|
2598
|
-
400: "#ef5350",
|
|
2599
|
-
500: "#f44336",
|
|
2600
|
-
700: "#d32f2f",
|
|
2601
|
-
800: "#c62828"
|
|
2602
|
-
}, Le = {
|
|
2603
|
-
300: "#ffb74d",
|
|
2604
|
-
400: "#ffa726",
|
|
2605
|
-
500: "#ff9800",
|
|
2606
|
-
700: "#f57c00",
|
|
2607
|
-
900: "#e65100"
|
|
2608
|
-
}, ke = {
|
|
2609
|
-
50: "#e3f2fd",
|
|
2610
|
-
200: "#90caf9",
|
|
2611
|
-
400: "#42a5f5",
|
|
2612
|
-
700: "#1976d2",
|
|
2613
|
-
800: "#1565c0"
|
|
2614
|
-
}, Ie = {
|
|
2615
|
-
300: "#4fc3f7",
|
|
2616
|
-
400: "#29b6f6",
|
|
2617
|
-
500: "#03a9f4",
|
|
2618
|
-
700: "#0288d1",
|
|
2619
|
-
900: "#01579b"
|
|
2620
|
-
}, Pe = {
|
|
2621
|
-
300: "#81c784",
|
|
2622
|
-
400: "#66bb6a",
|
|
2623
|
-
500: "#4caf50",
|
|
2624
|
-
700: "#388e3c",
|
|
2625
|
-
800: "#2e7d32",
|
|
2626
|
-
900: "#1b5e20"
|
|
2627
|
-
};
|
|
2628
|
-
function Ur() {
|
|
2629
|
-
return {
|
|
2630
|
-
// The colors used to style the text.
|
|
2631
|
-
text: {
|
|
2632
|
-
// The most important text.
|
|
2633
|
-
primary: "rgba(0, 0, 0, 0.87)",
|
|
2634
|
-
// Secondary text.
|
|
2635
|
-
secondary: "rgba(0, 0, 0, 0.6)",
|
|
2636
|
-
// Disabled text have even lower visual prominence.
|
|
2637
|
-
disabled: "rgba(0, 0, 0, 0.38)"
|
|
2638
|
-
},
|
|
2639
|
-
// The color used to divide different elements.
|
|
2640
|
-
divider: "rgba(0, 0, 0, 0.12)",
|
|
2641
|
-
// The background colors used to style the surfaces.
|
|
2642
|
-
// Consistency between these values is important.
|
|
2643
|
-
background: {
|
|
2644
|
-
paper: Ue.white,
|
|
2645
|
-
default: Ue.white
|
|
2646
|
-
},
|
|
2647
|
-
// The colors used to style the action elements.
|
|
2648
|
-
action: {
|
|
2649
|
-
// The color of an active action like an icon button.
|
|
2650
|
-
active: "rgba(0, 0, 0, 0.54)",
|
|
2651
|
-
// The color of an hovered action.
|
|
2652
|
-
hover: "rgba(0, 0, 0, 0.04)",
|
|
2653
|
-
hoverOpacity: 0.04,
|
|
2654
|
-
// The color of a selected action.
|
|
2655
|
-
selected: "rgba(0, 0, 0, 0.08)",
|
|
2656
|
-
selectedOpacity: 0.08,
|
|
2657
|
-
// The color of a disabled action.
|
|
2658
|
-
disabled: "rgba(0, 0, 0, 0.26)",
|
|
2659
|
-
// The background color of a disabled action.
|
|
2660
|
-
disabledBackground: "rgba(0, 0, 0, 0.12)",
|
|
2661
|
-
disabledOpacity: 0.38,
|
|
2662
|
-
focus: "rgba(0, 0, 0, 0.12)",
|
|
2663
|
-
focusOpacity: 0.12,
|
|
2664
|
-
activatedOpacity: 0.12
|
|
2665
|
-
}
|
|
2666
|
-
};
|
|
2667
|
-
}
|
|
2668
|
-
const ii = Ur();
|
|
2669
|
-
function Yr() {
|
|
2670
|
-
return {
|
|
2671
|
-
text: {
|
|
2672
|
-
primary: Ue.white,
|
|
2673
|
-
secondary: "rgba(255, 255, 255, 0.7)",
|
|
2674
|
-
disabled: "rgba(255, 255, 255, 0.5)",
|
|
2675
|
-
icon: "rgba(255, 255, 255, 0.5)"
|
|
2676
|
-
},
|
|
2677
|
-
divider: "rgba(255, 255, 255, 0.12)",
|
|
2678
|
-
background: {
|
|
2679
|
-
paper: "#121212",
|
|
2680
|
-
default: "#121212"
|
|
2681
|
-
},
|
|
2682
|
-
action: {
|
|
2683
|
-
active: Ue.white,
|
|
2684
|
-
hover: "rgba(255, 255, 255, 0.08)",
|
|
2685
|
-
hoverOpacity: 0.08,
|
|
2686
|
-
selected: "rgba(255, 255, 255, 0.16)",
|
|
2687
|
-
selectedOpacity: 0.16,
|
|
2688
|
-
disabled: "rgba(255, 255, 255, 0.3)",
|
|
2689
|
-
disabledBackground: "rgba(255, 255, 255, 0.12)",
|
|
2690
|
-
disabledOpacity: 0.38,
|
|
2691
|
-
focus: "rgba(255, 255, 255, 0.12)",
|
|
2692
|
-
focusOpacity: 0.12,
|
|
2693
|
-
activatedOpacity: 0.24
|
|
2694
|
-
}
|
|
2695
|
-
};
|
|
2696
|
-
}
|
|
2697
|
-
const dr = Yr();
|
|
2698
|
-
function mr(e, t, r, n) {
|
|
2699
|
-
const o = n.light || n, i = n.dark || n * 1.5;
|
|
2700
|
-
e[t] || (e.hasOwnProperty(r) ? e[t] = e[r] : t === "light" ? e.light = Nt(e.main, o) : t === "dark" && (e.dark = Mt(e.main, i)));
|
|
2701
|
-
}
|
|
2702
|
-
function ai(e = "light") {
|
|
2703
|
-
return e === "dark" ? {
|
|
2704
|
-
main: ke[200],
|
|
2705
|
-
light: ke[50],
|
|
2706
|
-
dark: ke[400]
|
|
2707
|
-
} : {
|
|
2708
|
-
main: ke[700],
|
|
2709
|
-
light: ke[400],
|
|
2710
|
-
dark: ke[800]
|
|
2711
|
-
};
|
|
2712
|
-
}
|
|
2713
|
-
function si(e = "light") {
|
|
2714
|
-
return e === "dark" ? {
|
|
2715
|
-
main: Ae[200],
|
|
2716
|
-
light: Ae[50],
|
|
2717
|
-
dark: Ae[400]
|
|
2718
|
-
} : {
|
|
2719
|
-
main: Ae[500],
|
|
2720
|
-
light: Ae[300],
|
|
2721
|
-
dark: Ae[700]
|
|
2722
|
-
};
|
|
2723
|
-
}
|
|
2724
|
-
function ci(e = "light") {
|
|
2725
|
-
return e === "dark" ? {
|
|
2726
|
-
main: Re[500],
|
|
2727
|
-
light: Re[300],
|
|
2728
|
-
dark: Re[700]
|
|
2729
|
-
} : {
|
|
2730
|
-
main: Re[700],
|
|
2731
|
-
light: Re[400],
|
|
2732
|
-
dark: Re[800]
|
|
2733
|
-
};
|
|
2734
|
-
}
|
|
2735
|
-
function li(e = "light") {
|
|
2736
|
-
return e === "dark" ? {
|
|
2737
|
-
main: Ie[400],
|
|
2738
|
-
light: Ie[300],
|
|
2739
|
-
dark: Ie[700]
|
|
2740
|
-
} : {
|
|
2741
|
-
main: Ie[700],
|
|
2742
|
-
light: Ie[500],
|
|
2743
|
-
dark: Ie[900]
|
|
2744
|
-
};
|
|
2745
|
-
}
|
|
2746
|
-
function ui(e = "light") {
|
|
2747
|
-
return e === "dark" ? {
|
|
2748
|
-
main: Pe[400],
|
|
2749
|
-
light: Pe[300],
|
|
2750
|
-
dark: Pe[700]
|
|
2751
|
-
} : {
|
|
2752
|
-
main: Pe[800],
|
|
2753
|
-
light: Pe[500],
|
|
2754
|
-
dark: Pe[900]
|
|
2755
|
-
};
|
|
2756
|
-
}
|
|
2757
|
-
function fi(e = "light") {
|
|
2758
|
-
return e === "dark" ? {
|
|
2759
|
-
main: Le[400],
|
|
2760
|
-
light: Le[300],
|
|
2761
|
-
dark: Le[700]
|
|
2762
|
-
} : {
|
|
2763
|
-
main: "#ed6c02",
|
|
2764
|
-
// closest to orange[800] that pass 3:1.
|
|
2765
|
-
light: Le[500],
|
|
2766
|
-
dark: Le[900]
|
|
2767
|
-
};
|
|
2768
|
-
}
|
|
2769
|
-
function Dt(e) {
|
|
2770
|
-
const {
|
|
2771
|
-
mode: t = "light",
|
|
2772
|
-
contrastThreshold: r = 3,
|
|
2773
|
-
tonalOffset: n = 0.2,
|
|
2774
|
-
...o
|
|
2775
|
-
} = e, i = e.primary || ai(t), c = e.secondary || si(t), l = e.error || ci(t), u = e.info || li(t), f = e.success || ui(t), m = e.warning || fi(t);
|
|
2776
|
-
function h(s) {
|
|
2777
|
-
const T = lr(s, dr.text.primary) >= r ? dr.text.primary : ii.text.primary;
|
|
2778
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2779
|
-
const $ = lr(s, T);
|
|
2780
|
-
$ < 3 && console.error([`MUI: The contrast ratio of ${$}:1 for ${T} on ${s}`, "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(`
|
|
2781
|
-
`));
|
|
2782
|
-
}
|
|
2783
|
-
return T;
|
|
2784
|
-
}
|
|
2785
|
-
const p = ({
|
|
2786
|
-
color: s,
|
|
2787
|
-
name: T,
|
|
2788
|
-
mainShade: $ = 500,
|
|
2789
|
-
lightShade: Q = 300,
|
|
2790
|
-
darkShade: O = 700
|
|
2791
|
-
}) => {
|
|
2792
|
-
if (s = {
|
|
2793
|
-
...s
|
|
2794
|
-
}, !s.main && s[$] && (s.main = s[$]), !s.hasOwnProperty("main"))
|
|
2795
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${T ? ` (${T})` : ""} provided to augmentColor(color) is invalid.
|
|
2796
|
-
The color object needs to have a \`main\` property or a \`${$}\` property.` : Ce(11, T ? ` (${T})` : "", $));
|
|
2797
|
-
if (typeof s.main != "string")
|
|
2798
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${T ? ` (${T})` : ""} provided to augmentColor(color) is invalid.
|
|
2799
|
-
\`color.main\` should be a string, but \`${JSON.stringify(s.main)}\` was provided instead.
|
|
2800
|
-
|
|
2801
|
-
Did you intend to use one of the following approaches?
|
|
2802
|
-
|
|
2803
|
-
import { green } from "@mui/material/colors";
|
|
2804
|
-
|
|
2805
|
-
const theme1 = createTheme({ palette: {
|
|
2806
|
-
primary: green,
|
|
2807
|
-
} });
|
|
2808
|
-
|
|
2809
|
-
const theme2 = createTheme({ palette: {
|
|
2810
|
-
primary: { main: green[500] },
|
|
2811
|
-
} });` : Ce(12, T ? ` (${T})` : "", JSON.stringify(s.main)));
|
|
2812
|
-
return mr(s, "light", Q, n), mr(s, "dark", O, n), s.contrastText || (s.contrastText = h(s.main)), s;
|
|
2813
|
-
};
|
|
2814
|
-
let C;
|
|
2815
|
-
return t === "light" ? C = Ur() : t === "dark" && (C = Yr()), process.env.NODE_ENV !== "production" && (C || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), se({
|
|
2816
|
-
// A collection of common colors.
|
|
2817
|
-
common: {
|
|
2818
|
-
...Ue
|
|
2819
|
-
},
|
|
2820
|
-
// prevent mutable object.
|
|
2821
|
-
// The palette mode, can be light or dark.
|
|
2822
|
-
mode: t,
|
|
2823
|
-
// The colors used to represent primary interface elements for a user.
|
|
2824
|
-
primary: p({
|
|
2825
|
-
color: i,
|
|
2826
|
-
name: "primary"
|
|
2827
|
-
}),
|
|
2828
|
-
// The colors used to represent secondary interface elements for a user.
|
|
2829
|
-
secondary: p({
|
|
2830
|
-
color: c,
|
|
2831
|
-
name: "secondary",
|
|
2832
|
-
mainShade: "A400",
|
|
2833
|
-
lightShade: "A200",
|
|
2834
|
-
darkShade: "A700"
|
|
2835
|
-
}),
|
|
2836
|
-
// The colors used to represent interface elements that the user should be made aware of.
|
|
2837
|
-
error: p({
|
|
2838
|
-
color: l,
|
|
2839
|
-
name: "error"
|
|
2840
|
-
}),
|
|
2841
|
-
// The colors used to represent potentially dangerous actions or important messages.
|
|
2842
|
-
warning: p({
|
|
2843
|
-
color: m,
|
|
2844
|
-
name: "warning"
|
|
2845
|
-
}),
|
|
2846
|
-
// The colors used to present information to the user that is neutral and not necessarily important.
|
|
2847
|
-
info: p({
|
|
2848
|
-
color: u,
|
|
2849
|
-
name: "info"
|
|
2850
|
-
}),
|
|
2851
|
-
// The colors used to indicate the successful completion of an action that user triggered.
|
|
2852
|
-
success: p({
|
|
2853
|
-
color: f,
|
|
2854
|
-
name: "success"
|
|
2855
|
-
}),
|
|
2856
|
-
// The grey colors.
|
|
2857
|
-
grey: oi,
|
|
2858
|
-
// Used by `getContrastText()` to maximize the contrast between
|
|
2859
|
-
// the background and the text.
|
|
2860
|
-
contrastThreshold: r,
|
|
2861
|
-
// Takes a background color and returns the text color that maximizes the contrast.
|
|
2862
|
-
getContrastText: h,
|
|
2863
|
-
// Generate a rich color object.
|
|
2864
|
-
augmentColor: p,
|
|
2865
|
-
// Used by the functions below to shift a color's luminance by approximately
|
|
2866
|
-
// two indexes within its tonal palette.
|
|
2867
|
-
// E.g., shift from Red 500 to Red 300 or Red 700.
|
|
2868
|
-
tonalOffset: n,
|
|
2869
|
-
// The light and dark mode object.
|
|
2870
|
-
...C
|
|
2871
|
-
}, o);
|
|
2872
|
-
}
|
|
2873
|
-
function di(e) {
|
|
2874
|
-
const t = {};
|
|
2875
|
-
return Object.entries(e).forEach((n) => {
|
|
2876
|
-
const [o, i] = n;
|
|
2877
|
-
typeof i == "object" && (t[o] = `${i.fontStyle ? `${i.fontStyle} ` : ""}${i.fontVariant ? `${i.fontVariant} ` : ""}${i.fontWeight ? `${i.fontWeight} ` : ""}${i.fontStretch ? `${i.fontStretch} ` : ""}${i.fontSize || ""}${i.lineHeight ? `/${i.lineHeight} ` : ""}${i.fontFamily || ""}`);
|
|
2878
|
-
}), t;
|
|
2879
|
-
}
|
|
2880
|
-
function mi(e, t) {
|
|
2881
|
-
return {
|
|
2882
|
-
toolbar: {
|
|
2883
|
-
minHeight: 56,
|
|
2884
|
-
[e.up("xs")]: {
|
|
2885
|
-
"@media (orientation: landscape)": {
|
|
2886
|
-
minHeight: 48
|
|
2887
|
-
}
|
|
2888
|
-
},
|
|
2889
|
-
[e.up("sm")]: {
|
|
2890
|
-
minHeight: 64
|
|
2891
|
-
}
|
|
2892
|
-
},
|
|
2893
|
-
...t
|
|
2894
|
-
};
|
|
2895
|
-
}
|
|
2896
|
-
function pi(e) {
|
|
2897
|
-
return Math.round(e * 1e5) / 1e5;
|
|
2898
|
-
}
|
|
2899
|
-
const pr = {
|
|
2900
|
-
textTransform: "uppercase"
|
|
2901
|
-
}, hr = '"Roboto", "Helvetica", "Arial", sans-serif';
|
|
2902
|
-
function hi(e, t) {
|
|
2903
|
-
const {
|
|
2904
|
-
fontFamily: r = hr,
|
|
2905
|
-
// The default font size of the Material Specification.
|
|
2906
|
-
fontSize: n = 14,
|
|
2907
|
-
// px
|
|
2908
|
-
fontWeightLight: o = 300,
|
|
2909
|
-
fontWeightRegular: i = 400,
|
|
2910
|
-
fontWeightMedium: c = 500,
|
|
2911
|
-
fontWeightBold: l = 700,
|
|
2912
|
-
// Tell MUI what's the font-size on the html element.
|
|
2913
|
-
// 16px is the default font-size used by browsers.
|
|
2914
|
-
htmlFontSize: u = 16,
|
|
2915
|
-
// Apply the CSS properties to all the variants.
|
|
2916
|
-
allVariants: f,
|
|
2917
|
-
pxToRem: m,
|
|
2918
|
-
...h
|
|
2919
|
-
} = typeof t == "function" ? t(e) : t;
|
|
2920
|
-
process.env.NODE_ENV !== "production" && (typeof n != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof u != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
2921
|
-
const p = n / 14, C = m || ((T) => `${T / u * p}rem`), b = (T, $, Q, O, w) => ({
|
|
2922
|
-
fontFamily: r,
|
|
2923
|
-
fontWeight: T,
|
|
2924
|
-
fontSize: C($),
|
|
2925
|
-
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
2926
|
-
lineHeight: Q,
|
|
2927
|
-
// The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
|
|
2928
|
-
// across font-families can cause issues with the kerning.
|
|
2929
|
-
...r === hr ? {
|
|
2930
|
-
letterSpacing: `${pi(O / $)}em`
|
|
2931
|
-
} : {},
|
|
2932
|
-
...w,
|
|
2933
|
-
...f
|
|
2934
|
-
}), s = {
|
|
2935
|
-
h1: b(o, 96, 1.167, -1.5),
|
|
2936
|
-
h2: b(o, 60, 1.2, -0.5),
|
|
2937
|
-
h3: b(i, 48, 1.167, 0),
|
|
2938
|
-
h4: b(i, 34, 1.235, 0.25),
|
|
2939
|
-
h5: b(i, 24, 1.334, 0),
|
|
2940
|
-
h6: b(c, 20, 1.6, 0.15),
|
|
2941
|
-
subtitle1: b(i, 16, 1.75, 0.15),
|
|
2942
|
-
subtitle2: b(c, 14, 1.57, 0.1),
|
|
2943
|
-
body1: b(i, 16, 1.5, 0.15),
|
|
2944
|
-
body2: b(i, 14, 1.43, 0.15),
|
|
2945
|
-
button: b(c, 14, 1.75, 0.4, pr),
|
|
2946
|
-
caption: b(i, 12, 1.66, 0.4),
|
|
2947
|
-
overline: b(i, 12, 2.66, 1, pr),
|
|
2948
|
-
// 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.
|
|
2949
|
-
inherit: {
|
|
2950
|
-
fontFamily: "inherit",
|
|
2951
|
-
fontWeight: "inherit",
|
|
2952
|
-
fontSize: "inherit",
|
|
2953
|
-
lineHeight: "inherit",
|
|
2954
|
-
letterSpacing: "inherit"
|
|
2955
|
-
}
|
|
2956
|
-
};
|
|
2957
|
-
return se({
|
|
2958
|
-
htmlFontSize: u,
|
|
2959
|
-
pxToRem: C,
|
|
2960
|
-
fontFamily: r,
|
|
2961
|
-
fontSize: n,
|
|
2962
|
-
fontWeightLight: o,
|
|
2963
|
-
fontWeightRegular: i,
|
|
2964
|
-
fontWeightMedium: c,
|
|
2965
|
-
fontWeightBold: l,
|
|
2966
|
-
...s
|
|
2967
|
-
}, h, {
|
|
2968
|
-
clone: !1
|
|
2969
|
-
// No need to clone deep
|
|
2970
|
-
});
|
|
2971
|
-
}
|
|
2972
|
-
const gi = 0.2, yi = 0.14, bi = 0.12;
|
|
2973
|
-
function q(...e) {
|
|
2974
|
-
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${gi})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${yi})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${bi})`].join(",");
|
|
2975
|
-
}
|
|
2976
|
-
const vi = ["none", q(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), q(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), q(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), q(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), q(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), q(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), q(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), q(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), q(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), q(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), q(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), q(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), q(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), q(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), q(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), q(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), q(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), q(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), q(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), q(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), q(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), q(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), q(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), q(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], Si = {
|
|
2977
|
-
// This is the most common easing curve.
|
|
2978
|
-
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
2979
|
-
// Objects enter the screen at full velocity from off-screen and
|
|
2980
|
-
// slowly decelerate to a resting point.
|
|
2981
|
-
easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
|
|
2982
|
-
// Objects leave the screen at full velocity. They do not decelerate when off-screen.
|
|
2983
|
-
easeIn: "cubic-bezier(0.4, 0, 1, 1)",
|
|
2984
|
-
// The sharp curve is used by objects that may return to the screen at any time.
|
|
2985
|
-
sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
|
|
2986
|
-
}, Ci = {
|
|
2987
|
-
shortest: 150,
|
|
2988
|
-
shorter: 200,
|
|
2989
|
-
short: 250,
|
|
2990
|
-
// most basic recommended timing
|
|
2991
|
-
standard: 300,
|
|
2992
|
-
// this is to be used in complex animations
|
|
2993
|
-
complex: 375,
|
|
2994
|
-
// recommended when something is entering screen
|
|
2995
|
-
enteringScreen: 225,
|
|
2996
|
-
// recommended when something is leaving screen
|
|
2997
|
-
leavingScreen: 195
|
|
2998
|
-
};
|
|
2999
|
-
function gr(e) {
|
|
3000
|
-
return `${Math.round(e)}ms`;
|
|
3001
|
-
}
|
|
3002
|
-
function Ei(e) {
|
|
3003
|
-
if (!e)
|
|
3004
|
-
return 0;
|
|
3005
|
-
const t = e / 36;
|
|
3006
|
-
return Math.min(Math.round((4 + 15 * t ** 0.25 + t / 5) * 10), 3e3);
|
|
3007
|
-
}
|
|
3008
|
-
function Ti(e) {
|
|
3009
|
-
const t = {
|
|
3010
|
-
...Si,
|
|
3011
|
-
...e.easing
|
|
3012
|
-
}, r = {
|
|
3013
|
-
...Ci,
|
|
3014
|
-
...e.duration
|
|
3015
|
-
};
|
|
3016
|
-
return {
|
|
3017
|
-
getAutoHeightDuration: Ei,
|
|
3018
|
-
create: (o = ["all"], i = {}) => {
|
|
3019
|
-
const {
|
|
3020
|
-
duration: c = r.standard,
|
|
3021
|
-
easing: l = t.easeInOut,
|
|
3022
|
-
delay: u = 0,
|
|
3023
|
-
...f
|
|
3024
|
-
} = i;
|
|
3025
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3026
|
-
const m = (p) => typeof p == "string", h = (p) => !Number.isNaN(parseFloat(p));
|
|
3027
|
-
!m(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !h(c) && !m(c) && console.error(`MUI: Argument "duration" must be a number or a string but found ${c}.`), m(l) || console.error('MUI: Argument "easing" must be a string.'), !h(u) && !m(u) && 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(`
|
|
3028
|
-
`)), Object.keys(f).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(f).join(",")}].`);
|
|
3029
|
-
}
|
|
3030
|
-
return (Array.isArray(o) ? o : [o]).map((m) => `${m} ${typeof c == "string" ? c : gr(c)} ${l} ${typeof u == "string" ? u : gr(u)}`).join(",");
|
|
3031
|
-
},
|
|
3032
|
-
...e,
|
|
3033
|
-
easing: t,
|
|
3034
|
-
duration: r
|
|
3035
|
-
};
|
|
3036
|
-
}
|
|
3037
|
-
const xi = {
|
|
3038
|
-
mobileStepper: 1e3,
|
|
3039
|
-
fab: 1050,
|
|
3040
|
-
speedDial: 1050,
|
|
3041
|
-
appBar: 1100,
|
|
3042
|
-
drawer: 1200,
|
|
3043
|
-
modal: 1300,
|
|
3044
|
-
snackbar: 1400,
|
|
3045
|
-
tooltip: 1500
|
|
3046
|
-
};
|
|
3047
|
-
function wi(e) {
|
|
3048
|
-
return he(e) || typeof e > "u" || typeof e == "string" || typeof e == "boolean" || typeof e == "number" || Array.isArray(e);
|
|
3049
|
-
}
|
|
3050
|
-
function Wr(e = {}) {
|
|
3051
|
-
const t = {
|
|
3052
|
-
...e
|
|
3053
|
-
};
|
|
3054
|
-
function r(n) {
|
|
3055
|
-
const o = Object.entries(n);
|
|
3056
|
-
for (let i = 0; i < o.length; i++) {
|
|
3057
|
-
const [c, l] = o[i];
|
|
3058
|
-
!wi(l) || c.startsWith("unstable_") ? delete n[c] : he(l) && (n[c] = {
|
|
3059
|
-
...l
|
|
3060
|
-
}, r(n[c]));
|
|
3061
|
-
}
|
|
3062
|
-
}
|
|
3063
|
-
return r(t), `import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
3064
|
-
|
|
3065
|
-
const theme = ${JSON.stringify(t, null, 2)};
|
|
3066
|
-
|
|
3067
|
-
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
3068
|
-
theme.transitions = createTransitions(theme.transitions || {});
|
|
3069
|
-
|
|
3070
|
-
export default theme;`;
|
|
3071
|
-
}
|
|
3072
|
-
function $t(e = {}, ...t) {
|
|
3073
|
-
const {
|
|
3074
|
-
breakpoints: r,
|
|
3075
|
-
mixins: n = {},
|
|
3076
|
-
spacing: o,
|
|
3077
|
-
palette: i = {},
|
|
3078
|
-
transitions: c = {},
|
|
3079
|
-
typography: l = {},
|
|
3080
|
-
shape: u,
|
|
3081
|
-
...f
|
|
3082
|
-
} = e;
|
|
3083
|
-
if (e.vars && // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.
|
|
3084
|
-
// `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider.
|
|
3085
|
-
e.generateThemeVars === void 0)
|
|
3086
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." : Ce(20));
|
|
3087
|
-
const m = Dt(i), h = kt(e);
|
|
3088
|
-
let p = se(h, {
|
|
3089
|
-
mixins: mi(h.breakpoints, n),
|
|
3090
|
-
palette: m,
|
|
3091
|
-
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
3092
|
-
shadows: vi.slice(),
|
|
3093
|
-
typography: hi(m, l),
|
|
3094
|
-
transitions: Ti(c),
|
|
3095
|
-
zIndex: {
|
|
3096
|
-
...xi
|
|
3097
|
-
}
|
|
3098
|
-
});
|
|
3099
|
-
if (p = se(p, f), p = t.reduce((C, b) => se(C, b), p), process.env.NODE_ENV !== "production") {
|
|
3100
|
-
const C = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], b = (s, T) => {
|
|
3101
|
-
let $;
|
|
3102
|
-
for ($ in s) {
|
|
3103
|
-
const Q = s[$];
|
|
3104
|
-
if (C.includes($) && Object.keys(Q).length > 0) {
|
|
3105
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3106
|
-
const O = It("", $);
|
|
3107
|
-
console.error([`MUI: The \`${T}\` component increases the CSS specificity of the \`${$}\` internal state.`, "You can not override it like this: ", JSON.stringify(s, null, 2), "", `Instead, you need to use the '&.${O}' syntax:`, JSON.stringify({
|
|
3108
|
-
root: {
|
|
3109
|
-
[`&.${O}`]: Q
|
|
3110
|
-
}
|
|
3111
|
-
}, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
|
|
3112
|
-
`));
|
|
3113
|
-
}
|
|
3114
|
-
s[$] = {};
|
|
3115
|
-
}
|
|
3116
|
-
}
|
|
3117
|
-
};
|
|
3118
|
-
Object.keys(p.components).forEach((s) => {
|
|
3119
|
-
const T = p.components[s].styleOverrides;
|
|
3120
|
-
T && s.startsWith("Mui") && b(T, s);
|
|
3121
|
-
});
|
|
3122
|
-
}
|
|
3123
|
-
return p.unstable_sxConfig = {
|
|
3124
|
-
...mt,
|
|
3125
|
-
...f == null ? void 0 : f.unstable_sxConfig
|
|
3126
|
-
}, p.unstable_sx = function(b) {
|
|
3127
|
-
return De({
|
|
3128
|
-
sx: b,
|
|
3129
|
-
theme: this
|
|
3130
|
-
});
|
|
3131
|
-
}, p.toRuntimeSource = Wr, p;
|
|
3132
|
-
}
|
|
3133
|
-
function Oi(e) {
|
|
3134
|
-
let t;
|
|
3135
|
-
return e < 1 ? t = 5.11916 * e ** 2 : t = 4.5 * Math.log(e + 1) + 2, Math.round(t * 10) / 1e3;
|
|
3136
|
-
}
|
|
3137
|
-
const $i = [...Array(25)].map((e, t) => {
|
|
3138
|
-
if (t === 0)
|
|
3139
|
-
return "none";
|
|
3140
|
-
const r = Oi(t);
|
|
3141
|
-
return `linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`;
|
|
3142
|
-
});
|
|
3143
|
-
function Hr(e) {
|
|
3144
|
-
return {
|
|
3145
|
-
inputPlaceholder: e === "dark" ? 0.5 : 0.42,
|
|
3146
|
-
inputUnderline: e === "dark" ? 0.7 : 0.42,
|
|
3147
|
-
switchTrackDisabled: e === "dark" ? 0.2 : 0.12,
|
|
3148
|
-
switchTrack: e === "dark" ? 0.3 : 0.38
|
|
3149
|
-
};
|
|
3150
|
-
}
|
|
3151
|
-
function Gr(e) {
|
|
3152
|
-
return e === "dark" ? $i : [];
|
|
3153
|
-
}
|
|
3154
|
-
function _i(e) {
|
|
3155
|
-
const {
|
|
3156
|
-
palette: t = {
|
|
3157
|
-
mode: "light"
|
|
3158
|
-
},
|
|
3159
|
-
// need to cast to avoid module augmentation test
|
|
3160
|
-
opacity: r,
|
|
3161
|
-
overlays: n,
|
|
3162
|
-
...o
|
|
3163
|
-
} = e, i = Dt(t);
|
|
3164
|
-
return {
|
|
3165
|
-
palette: i,
|
|
3166
|
-
opacity: {
|
|
3167
|
-
...Hr(i.mode),
|
|
3168
|
-
...r
|
|
3169
|
-
},
|
|
3170
|
-
overlays: n || Gr(i.mode),
|
|
3171
|
-
...o
|
|
3172
|
-
};
|
|
3173
|
-
}
|
|
3174
|
-
function Ai(e) {
|
|
3175
|
-
var t;
|
|
3176
|
-
return !!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!e[0].match(/sxConfig$/) || // ends with sxConfig
|
|
3177
|
-
e[0] === "palette" && !!((t = e[1]) != null && t.match(/(mode|contrastThreshold|tonalOffset)/));
|
|
3178
|
-
}
|
|
3179
|
-
const Ri = (e) => [...[...Array(25)].map((t, r) => `--${e ? `${e}-` : ""}overlays-${r}`), `--${e ? `${e}-` : ""}palette-AppBar-darkBg`, `--${e ? `${e}-` : ""}palette-AppBar-darkColor`], ki = (e) => (t, r) => {
|
|
3180
|
-
const n = e.rootSelector || ":root", o = e.colorSchemeSelector;
|
|
3181
|
-
let i = o;
|
|
3182
|
-
if (o === "class" && (i = ".%s"), o === "data" && (i = "[data-%s]"), o != null && o.startsWith("data-") && !o.includes("%s") && (i = `[${o}="%s"]`), e.defaultColorScheme === t) {
|
|
3183
|
-
if (t === "dark") {
|
|
3184
|
-
const c = {};
|
|
3185
|
-
return Ri(e.cssVarPrefix).forEach((l) => {
|
|
3186
|
-
c[l] = r[l], delete r[l];
|
|
3187
|
-
}), i === "media" ? {
|
|
3188
|
-
[n]: r,
|
|
3189
|
-
"@media (prefers-color-scheme: dark)": {
|
|
3190
|
-
[n]: c
|
|
3191
|
-
}
|
|
3192
|
-
} : i ? {
|
|
3193
|
-
[i.replace("%s", t)]: c,
|
|
3194
|
-
[`${n}, ${i.replace("%s", t)}`]: r
|
|
3195
|
-
} : {
|
|
3196
|
-
[n]: {
|
|
3197
|
-
...r,
|
|
3198
|
-
...c
|
|
3199
|
-
}
|
|
3200
|
-
};
|
|
3201
|
-
}
|
|
3202
|
-
if (i && i !== "media")
|
|
3203
|
-
return `${n}, ${i.replace("%s", String(t))}`;
|
|
3204
|
-
} else if (t) {
|
|
3205
|
-
if (i === "media")
|
|
3206
|
-
return {
|
|
3207
|
-
[`@media (prefers-color-scheme: ${String(t)})`]: {
|
|
3208
|
-
[n]: r
|
|
3209
|
-
}
|
|
3210
|
-
};
|
|
3211
|
-
if (i)
|
|
3212
|
-
return i.replace("%s", String(t));
|
|
3213
|
-
}
|
|
3214
|
-
return n;
|
|
3215
|
-
};
|
|
3216
|
-
function Ii(e, t) {
|
|
3217
|
-
t.forEach((r) => {
|
|
3218
|
-
e[r] || (e[r] = {});
|
|
3219
|
-
});
|
|
3220
|
-
}
|
|
3221
|
-
function d(e, t, r) {
|
|
3222
|
-
!e[t] && r && (e[t] = r);
|
|
3223
|
-
}
|
|
3224
|
-
function je(e) {
|
|
3225
|
-
return typeof e != "string" || !e.startsWith("hsl") ? e : Fr(e);
|
|
3226
|
-
}
|
|
3227
|
-
function pe(e, t) {
|
|
3228
|
-
`${t}Channel` in e || (e[`${t}Channel`] = Ve(je(e[t]), `MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
3229
|
-
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`));
|
|
3230
|
-
}
|
|
3231
|
-
function Pi(e) {
|
|
3232
|
-
return typeof e == "number" ? `${e}px` : typeof e == "string" || typeof e == "function" || Array.isArray(e) ? e : "8px";
|
|
3233
|
-
}
|
|
3234
|
-
const de = (e) => {
|
|
3235
|
-
try {
|
|
3236
|
-
return e();
|
|
3237
|
-
} catch {
|
|
3238
|
-
}
|
|
3239
|
-
}, Mi = (e = "mui") => Zo(e);
|
|
3240
|
-
function xt(e, t, r, n) {
|
|
3241
|
-
if (!t)
|
|
3242
|
-
return;
|
|
3243
|
-
t = t === !0 ? {} : t;
|
|
3244
|
-
const o = n === "dark" ? "dark" : "light";
|
|
3245
|
-
if (!r) {
|
|
3246
|
-
e[n] = _i({
|
|
3247
|
-
...t,
|
|
3248
|
-
palette: {
|
|
3249
|
-
mode: o,
|
|
3250
|
-
...t == null ? void 0 : t.palette
|
|
3251
|
-
}
|
|
3252
|
-
});
|
|
3253
|
-
return;
|
|
3254
|
-
}
|
|
3255
|
-
const {
|
|
3256
|
-
palette: i,
|
|
3257
|
-
...c
|
|
3258
|
-
} = $t({
|
|
3259
|
-
...r,
|
|
3260
|
-
palette: {
|
|
3261
|
-
mode: o,
|
|
3262
|
-
...t == null ? void 0 : t.palette
|
|
3263
|
-
}
|
|
3264
|
-
});
|
|
3265
|
-
return e[n] = {
|
|
3266
|
-
...t,
|
|
3267
|
-
palette: i,
|
|
3268
|
-
opacity: {
|
|
3269
|
-
...Hr(o),
|
|
3270
|
-
...t == null ? void 0 : t.opacity
|
|
3271
|
-
},
|
|
3272
|
-
overlays: (t == null ? void 0 : t.overlays) || Gr(o)
|
|
3273
|
-
}, c;
|
|
3274
|
-
}
|
|
3275
|
-
function Ni(e = {}, ...t) {
|
|
3276
|
-
const {
|
|
3277
|
-
colorSchemes: r = {
|
|
3278
|
-
light: !0
|
|
3279
|
-
},
|
|
3280
|
-
defaultColorScheme: n,
|
|
3281
|
-
disableCssColorScheme: o = !1,
|
|
3282
|
-
cssVarPrefix: i = "mui",
|
|
3283
|
-
shouldSkipGeneratingVar: c = Ai,
|
|
3284
|
-
colorSchemeSelector: l = r.light && r.dark ? "media" : void 0,
|
|
3285
|
-
rootSelector: u = ":root",
|
|
3286
|
-
...f
|
|
3287
|
-
} = e, m = Object.keys(r)[0], h = n || (r.light && m !== "light" ? "light" : m), p = Mi(i), {
|
|
3288
|
-
[h]: C,
|
|
3289
|
-
light: b,
|
|
3290
|
-
dark: s,
|
|
3291
|
-
...T
|
|
3292
|
-
} = r, $ = {
|
|
3293
|
-
...T
|
|
3294
|
-
};
|
|
3295
|
-
let Q = C;
|
|
3296
|
-
if ((h === "dark" && !("dark" in r) || h === "light" && !("light" in r)) && (Q = !0), !Q)
|
|
3297
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${h}\` option is either missing or invalid.` : Ce(21, h));
|
|
3298
|
-
const O = xt($, Q, f, h);
|
|
3299
|
-
b && !$.light && xt($, b, void 0, "light"), s && !$.dark && xt($, s, void 0, "dark");
|
|
3300
|
-
let w = {
|
|
3301
|
-
defaultColorScheme: h,
|
|
3302
|
-
...O,
|
|
3303
|
-
cssVarPrefix: i,
|
|
3304
|
-
colorSchemeSelector: l,
|
|
3305
|
-
rootSelector: u,
|
|
3306
|
-
getCssVar: p,
|
|
3307
|
-
colorSchemes: $,
|
|
3308
|
-
font: {
|
|
3309
|
-
...di(O.typography),
|
|
3310
|
-
...O.font
|
|
3311
|
-
},
|
|
3312
|
-
spacing: Pi(f.spacing)
|
|
3313
|
-
};
|
|
3314
|
-
Object.keys(w.colorSchemes).forEach((K) => {
|
|
3315
|
-
const a = w.colorSchemes[K].palette, x = (R) => {
|
|
3316
|
-
const M = R.split("-"), ee = M[1], te = M[2];
|
|
3317
|
-
return p(R, a[ee][te]);
|
|
3318
|
-
};
|
|
3319
|
-
if (a.mode === "light" && (d(a.common, "background", "#fff"), d(a.common, "onBackground", "#000")), a.mode === "dark" && (d(a.common, "background", "#000"), d(a.common, "onBackground", "#fff")), Ii(a, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), a.mode === "light") {
|
|
3320
|
-
d(a.Alert, "errorColor", W(a.error.light, 0.6)), d(a.Alert, "infoColor", W(a.info.light, 0.6)), d(a.Alert, "successColor", W(a.success.light, 0.6)), d(a.Alert, "warningColor", W(a.warning.light, 0.6)), d(a.Alert, "errorFilledBg", x("palette-error-main")), d(a.Alert, "infoFilledBg", x("palette-info-main")), d(a.Alert, "successFilledBg", x("palette-success-main")), d(a.Alert, "warningFilledBg", x("palette-warning-main")), d(a.Alert, "errorFilledColor", de(() => a.getContrastText(a.error.main))), d(a.Alert, "infoFilledColor", de(() => a.getContrastText(a.info.main))), d(a.Alert, "successFilledColor", de(() => a.getContrastText(a.success.main))), d(a.Alert, "warningFilledColor", de(() => a.getContrastText(a.warning.main))), d(a.Alert, "errorStandardBg", H(a.error.light, 0.9)), d(a.Alert, "infoStandardBg", H(a.info.light, 0.9)), d(a.Alert, "successStandardBg", H(a.success.light, 0.9)), d(a.Alert, "warningStandardBg", H(a.warning.light, 0.9)), d(a.Alert, "errorIconColor", x("palette-error-main")), d(a.Alert, "infoIconColor", x("palette-info-main")), d(a.Alert, "successIconColor", x("palette-success-main")), d(a.Alert, "warningIconColor", x("palette-warning-main")), d(a.AppBar, "defaultBg", x("palette-grey-100")), d(a.Avatar, "defaultBg", x("palette-grey-400")), d(a.Button, "inheritContainedBg", x("palette-grey-300")), d(a.Button, "inheritContainedHoverBg", x("palette-grey-A100")), d(a.Chip, "defaultBorder", x("palette-grey-400")), d(a.Chip, "defaultAvatarColor", x("palette-grey-700")), d(a.Chip, "defaultIconColor", x("palette-grey-700")), d(a.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), d(a.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), d(a.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), d(a.LinearProgress, "primaryBg", H(a.primary.main, 0.62)), d(a.LinearProgress, "secondaryBg", H(a.secondary.main, 0.62)), d(a.LinearProgress, "errorBg", H(a.error.main, 0.62)), d(a.LinearProgress, "infoBg", H(a.info.main, 0.62)), d(a.LinearProgress, "successBg", H(a.success.main, 0.62)), d(a.LinearProgress, "warningBg", H(a.warning.main, 0.62)), d(a.Skeleton, "bg", `rgba(${x("palette-text-primaryChannel")} / 0.11)`), d(a.Slider, "primaryTrack", H(a.primary.main, 0.62)), d(a.Slider, "secondaryTrack", H(a.secondary.main, 0.62)), d(a.Slider, "errorTrack", H(a.error.main, 0.62)), d(a.Slider, "infoTrack", H(a.info.main, 0.62)), d(a.Slider, "successTrack", H(a.success.main, 0.62)), d(a.Slider, "warningTrack", H(a.warning.main, 0.62));
|
|
3321
|
-
const R = Je(a.background.default, 0.8);
|
|
3322
|
-
d(a.SnackbarContent, "bg", R), d(a.SnackbarContent, "color", de(() => a.getContrastText(R))), d(a.SpeedDialAction, "fabHoverBg", Je(a.background.paper, 0.15)), d(a.StepConnector, "border", x("palette-grey-400")), d(a.StepContent, "border", x("palette-grey-400")), d(a.Switch, "defaultColor", x("palette-common-white")), d(a.Switch, "defaultDisabledColor", x("palette-grey-100")), d(a.Switch, "primaryDisabledColor", H(a.primary.main, 0.62)), d(a.Switch, "secondaryDisabledColor", H(a.secondary.main, 0.62)), d(a.Switch, "errorDisabledColor", H(a.error.main, 0.62)), d(a.Switch, "infoDisabledColor", H(a.info.main, 0.62)), d(a.Switch, "successDisabledColor", H(a.success.main, 0.62)), d(a.Switch, "warningDisabledColor", H(a.warning.main, 0.62)), d(a.TableCell, "border", H(Qe(a.divider, 1), 0.88)), d(a.Tooltip, "bg", Qe(a.grey[700], 0.92));
|
|
3323
|
-
}
|
|
3324
|
-
if (a.mode === "dark") {
|
|
3325
|
-
d(a.Alert, "errorColor", H(a.error.light, 0.6)), d(a.Alert, "infoColor", H(a.info.light, 0.6)), d(a.Alert, "successColor", H(a.success.light, 0.6)), d(a.Alert, "warningColor", H(a.warning.light, 0.6)), d(a.Alert, "errorFilledBg", x("palette-error-dark")), d(a.Alert, "infoFilledBg", x("palette-info-dark")), d(a.Alert, "successFilledBg", x("palette-success-dark")), d(a.Alert, "warningFilledBg", x("palette-warning-dark")), d(a.Alert, "errorFilledColor", de(() => a.getContrastText(a.error.dark))), d(a.Alert, "infoFilledColor", de(() => a.getContrastText(a.info.dark))), d(a.Alert, "successFilledColor", de(() => a.getContrastText(a.success.dark))), d(a.Alert, "warningFilledColor", de(() => a.getContrastText(a.warning.dark))), d(a.Alert, "errorStandardBg", W(a.error.light, 0.9)), d(a.Alert, "infoStandardBg", W(a.info.light, 0.9)), d(a.Alert, "successStandardBg", W(a.success.light, 0.9)), d(a.Alert, "warningStandardBg", W(a.warning.light, 0.9)), d(a.Alert, "errorIconColor", x("palette-error-main")), d(a.Alert, "infoIconColor", x("palette-info-main")), d(a.Alert, "successIconColor", x("palette-success-main")), d(a.Alert, "warningIconColor", x("palette-warning-main")), d(a.AppBar, "defaultBg", x("palette-grey-900")), d(a.AppBar, "darkBg", x("palette-background-paper")), d(a.AppBar, "darkColor", x("palette-text-primary")), d(a.Avatar, "defaultBg", x("palette-grey-600")), d(a.Button, "inheritContainedBg", x("palette-grey-800")), d(a.Button, "inheritContainedHoverBg", x("palette-grey-700")), d(a.Chip, "defaultBorder", x("palette-grey-700")), d(a.Chip, "defaultAvatarColor", x("palette-grey-300")), d(a.Chip, "defaultIconColor", x("palette-grey-300")), d(a.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), d(a.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), d(a.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), d(a.LinearProgress, "primaryBg", W(a.primary.main, 0.5)), d(a.LinearProgress, "secondaryBg", W(a.secondary.main, 0.5)), d(a.LinearProgress, "errorBg", W(a.error.main, 0.5)), d(a.LinearProgress, "infoBg", W(a.info.main, 0.5)), d(a.LinearProgress, "successBg", W(a.success.main, 0.5)), d(a.LinearProgress, "warningBg", W(a.warning.main, 0.5)), d(a.Skeleton, "bg", `rgba(${x("palette-text-primaryChannel")} / 0.13)`), d(a.Slider, "primaryTrack", W(a.primary.main, 0.5)), d(a.Slider, "secondaryTrack", W(a.secondary.main, 0.5)), d(a.Slider, "errorTrack", W(a.error.main, 0.5)), d(a.Slider, "infoTrack", W(a.info.main, 0.5)), d(a.Slider, "successTrack", W(a.success.main, 0.5)), d(a.Slider, "warningTrack", W(a.warning.main, 0.5));
|
|
3326
|
-
const R = Je(a.background.default, 0.98);
|
|
3327
|
-
d(a.SnackbarContent, "bg", R), d(a.SnackbarContent, "color", de(() => a.getContrastText(R))), d(a.SpeedDialAction, "fabHoverBg", Je(a.background.paper, 0.15)), d(a.StepConnector, "border", x("palette-grey-600")), d(a.StepContent, "border", x("palette-grey-600")), d(a.Switch, "defaultColor", x("palette-grey-300")), d(a.Switch, "defaultDisabledColor", x("palette-grey-600")), d(a.Switch, "primaryDisabledColor", W(a.primary.main, 0.55)), d(a.Switch, "secondaryDisabledColor", W(a.secondary.main, 0.55)), d(a.Switch, "errorDisabledColor", W(a.error.main, 0.55)), d(a.Switch, "infoDisabledColor", W(a.info.main, 0.55)), d(a.Switch, "successDisabledColor", W(a.success.main, 0.55)), d(a.Switch, "warningDisabledColor", W(a.warning.main, 0.55)), d(a.TableCell, "border", W(Qe(a.divider, 1), 0.68)), d(a.Tooltip, "bg", Qe(a.grey[700], 0.92));
|
|
3328
|
-
}
|
|
3329
|
-
pe(a.background, "default"), pe(a.background, "paper"), pe(a.common, "background"), pe(a.common, "onBackground"), pe(a, "divider"), Object.keys(a).forEach((R) => {
|
|
3330
|
-
const M = a[R];
|
|
3331
|
-
R !== "tonalOffset" && M && typeof M == "object" && (M.main && d(a[R], "mainChannel", Ve(je(M.main))), M.light && d(a[R], "lightChannel", Ve(je(M.light))), M.dark && d(a[R], "darkChannel", Ve(je(M.dark))), M.contrastText && d(a[R], "contrastTextChannel", Ve(je(M.contrastText))), R === "text" && (pe(a[R], "primary"), pe(a[R], "secondary")), R === "action" && (M.active && pe(a[R], "active"), M.selected && pe(a[R], "selected")));
|
|
3332
|
-
});
|
|
3333
|
-
}), w = t.reduce((K, a) => se(K, a), w);
|
|
3334
|
-
const g = {
|
|
3335
|
-
prefix: i,
|
|
3336
|
-
disableCssColorScheme: o,
|
|
3337
|
-
shouldSkipGeneratingVar: c,
|
|
3338
|
-
getSelector: ki(w)
|
|
3339
|
-
}, {
|
|
3340
|
-
vars: V,
|
|
3341
|
-
generateThemeVars: G,
|
|
3342
|
-
generateStyleSheets: re
|
|
3343
|
-
} = ri(w, g);
|
|
3344
|
-
return w.vars = V, Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([K, a]) => {
|
|
3345
|
-
w[K] = a;
|
|
3346
|
-
}), w.generateThemeVars = G, w.generateStyleSheets = re, w.generateSpacing = function() {
|
|
3347
|
-
return Br(f.spacing, At(this));
|
|
3348
|
-
}, w.getColorSchemeSelector = ni(l), w.spacing = w.generateSpacing(), w.shouldSkipGeneratingVar = c, w.unstable_sxConfig = {
|
|
3349
|
-
...mt,
|
|
3350
|
-
...f == null ? void 0 : f.unstable_sxConfig
|
|
3351
|
-
}, w.unstable_sx = function(a) {
|
|
3352
|
-
return De({
|
|
3353
|
-
sx: a,
|
|
3354
|
-
theme: this
|
|
3355
|
-
});
|
|
3356
|
-
}, w.toRuntimeSource = Wr, w;
|
|
3357
|
-
}
|
|
3358
|
-
function yr(e, t, r) {
|
|
3359
|
-
e.colorSchemes && r && (e.colorSchemes[t] = {
|
|
3360
|
-
...r !== !0 && r,
|
|
3361
|
-
palette: Dt({
|
|
3362
|
-
...r === !0 ? {} : r.palette,
|
|
3363
|
-
mode: t
|
|
3364
|
-
})
|
|
3365
|
-
// cast type to skip module augmentation test
|
|
3366
|
-
});
|
|
3367
|
-
}
|
|
3368
|
-
function Di(e = {}, ...t) {
|
|
3369
|
-
const {
|
|
3370
|
-
palette: r,
|
|
3371
|
-
cssVariables: n = !1,
|
|
3372
|
-
colorSchemes: o = r ? void 0 : {
|
|
3373
|
-
light: !0
|
|
3374
|
-
},
|
|
3375
|
-
defaultColorScheme: i = r == null ? void 0 : r.mode,
|
|
3376
|
-
...c
|
|
3377
|
-
} = e, l = i || "light", u = o == null ? void 0 : o[l], f = {
|
|
3378
|
-
...o,
|
|
3379
|
-
...r ? {
|
|
3380
|
-
[l]: {
|
|
3381
|
-
...typeof u != "boolean" && u,
|
|
3382
|
-
palette: r
|
|
3383
|
-
}
|
|
3384
|
-
} : void 0
|
|
3385
|
-
};
|
|
3386
|
-
if (n === !1) {
|
|
3387
|
-
if (!("colorSchemes" in e))
|
|
3388
|
-
return $t(e, ...t);
|
|
3389
|
-
let m = r;
|
|
3390
|
-
"palette" in e || f[l] && (f[l] !== !0 ? m = f[l].palette : l === "dark" && (m = {
|
|
3391
|
-
mode: "dark"
|
|
3392
|
-
}));
|
|
3393
|
-
const h = $t({
|
|
3394
|
-
...e,
|
|
3395
|
-
palette: m
|
|
3396
|
-
}, ...t);
|
|
3397
|
-
return h.defaultColorScheme = l, h.colorSchemes = f, h.palette.mode === "light" && (h.colorSchemes.light = {
|
|
3398
|
-
...f.light !== !0 && f.light,
|
|
3399
|
-
palette: h.palette
|
|
3400
|
-
}, yr(h, "dark", f.dark)), h.palette.mode === "dark" && (h.colorSchemes.dark = {
|
|
3401
|
-
...f.dark !== !0 && f.dark,
|
|
3402
|
-
palette: h.palette
|
|
3403
|
-
}, yr(h, "light", f.light)), h;
|
|
3404
|
-
}
|
|
3405
|
-
return !r && !("light" in f) && l === "light" && (f.light = !0), Ni({
|
|
3406
|
-
...c,
|
|
3407
|
-
colorSchemes: f,
|
|
3408
|
-
defaultColorScheme: l,
|
|
3409
|
-
...typeof n != "boolean" && n
|
|
3410
|
-
}, ...t);
|
|
3411
|
-
}
|
|
3412
|
-
const Kr = Di(), qr = "$$material";
|
|
3413
|
-
function Bi() {
|
|
3414
|
-
const e = Io(Kr);
|
|
3415
|
-
return process.env.NODE_ENV !== "production" && me.useDebugValue(e), e[qr] || e;
|
|
3416
|
-
}
|
|
3417
|
-
function Li(e) {
|
|
3418
|
-
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
3419
|
-
}
|
|
3420
|
-
const Vi = (e) => Li(e) && e !== "classes", ji = Vo({
|
|
3421
|
-
themeId: qr,
|
|
3422
|
-
defaultTheme: Kr,
|
|
3423
|
-
rootShouldForwardProp: Vi
|
|
3424
|
-
}), zi = Xo;
|
|
3425
|
-
process.env.NODE_ENV !== "production" && (L.node, L.object.isRequired);
|
|
3426
|
-
function Fi(e) {
|
|
3427
|
-
return Jo(e);
|
|
3428
|
-
}
|
|
3429
|
-
function Ui(e) {
|
|
3430
|
-
return It("MuiSvgIcon", e);
|
|
3431
|
-
}
|
|
3432
|
-
Mo("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
3433
|
-
const Yi = (e) => {
|
|
3434
|
-
const {
|
|
3435
|
-
color: t,
|
|
3436
|
-
fontSize: r,
|
|
3437
|
-
classes: n
|
|
3438
|
-
} = e, o = {
|
|
3439
|
-
root: ["root", t !== "inherit" && `color${$e(t)}`, `fontSize${$e(r)}`]
|
|
3440
|
-
};
|
|
3441
|
-
return Sn(o, Ui, n);
|
|
3442
|
-
}, Wi = ji("svg", {
|
|
3443
|
-
name: "MuiSvgIcon",
|
|
3444
|
-
slot: "Root",
|
|
3445
|
-
overridesResolver: (e, t) => {
|
|
3446
|
-
const {
|
|
3447
|
-
ownerState: r
|
|
3448
|
-
} = e;
|
|
3449
|
-
return [t.root, r.color !== "inherit" && t[`color${$e(r.color)}`], t[`fontSize${$e(r.fontSize)}`]];
|
|
3450
|
-
}
|
|
3451
|
-
})(zi(({
|
|
3452
|
-
theme: e
|
|
3453
|
-
}) => {
|
|
3454
|
-
var t, r, n, o, i, c, l, u, f, m, h, p, C, b;
|
|
3455
|
-
return {
|
|
3456
|
-
userSelect: "none",
|
|
3457
|
-
width: "1em",
|
|
3458
|
-
height: "1em",
|
|
3459
|
-
display: "inline-block",
|
|
3460
|
-
flexShrink: 0,
|
|
3461
|
-
transition: (o = (t = e.transitions) == null ? void 0 : t.create) == null ? void 0 : o.call(t, "fill", {
|
|
3462
|
-
duration: (n = (r = (e.vars ?? e).transitions) == null ? void 0 : r.duration) == null ? void 0 : n.shorter
|
|
3463
|
-
}),
|
|
3464
|
-
variants: [
|
|
3465
|
-
{
|
|
3466
|
-
props: (s) => !s.hasSvgAsChild,
|
|
3467
|
-
style: {
|
|
3468
|
-
// the <svg> will define the property that has `currentColor`
|
|
3469
|
-
// for example heroicons uses fill="none" and stroke="currentColor"
|
|
3470
|
-
fill: "currentColor"
|
|
3471
|
-
}
|
|
3472
|
-
},
|
|
3473
|
-
{
|
|
3474
|
-
props: {
|
|
3475
|
-
fontSize: "inherit"
|
|
3476
|
-
},
|
|
3477
|
-
style: {
|
|
3478
|
-
fontSize: "inherit"
|
|
3479
|
-
}
|
|
3480
|
-
},
|
|
3481
|
-
{
|
|
3482
|
-
props: {
|
|
3483
|
-
fontSize: "small"
|
|
3484
|
-
},
|
|
3485
|
-
style: {
|
|
3486
|
-
fontSize: ((c = (i = e.typography) == null ? void 0 : i.pxToRem) == null ? void 0 : c.call(i, 20)) || "1.25rem"
|
|
3487
|
-
}
|
|
3488
|
-
},
|
|
3489
|
-
{
|
|
3490
|
-
props: {
|
|
3491
|
-
fontSize: "medium"
|
|
3492
|
-
},
|
|
3493
|
-
style: {
|
|
3494
|
-
fontSize: ((u = (l = e.typography) == null ? void 0 : l.pxToRem) == null ? void 0 : u.call(l, 24)) || "1.5rem"
|
|
3495
|
-
}
|
|
3496
|
-
},
|
|
3497
|
-
{
|
|
3498
|
-
props: {
|
|
3499
|
-
fontSize: "large"
|
|
3500
|
-
},
|
|
3501
|
-
style: {
|
|
3502
|
-
fontSize: ((m = (f = e.typography) == null ? void 0 : f.pxToRem) == null ? void 0 : m.call(f, 35)) || "2.1875rem"
|
|
3503
|
-
}
|
|
3504
|
-
},
|
|
3505
|
-
// TODO v5 deprecate color prop, v6 remove for sx
|
|
3506
|
-
...Object.entries((e.vars ?? e).palette).filter(([, s]) => s && s.main).map(([s]) => {
|
|
3507
|
-
var T, $;
|
|
3508
|
-
return {
|
|
3509
|
-
props: {
|
|
3510
|
-
color: s
|
|
3511
|
-
},
|
|
3512
|
-
style: {
|
|
3513
|
-
color: ($ = (T = (e.vars ?? e).palette) == null ? void 0 : T[s]) == null ? void 0 : $.main
|
|
3514
|
-
}
|
|
3515
|
-
};
|
|
3516
|
-
}),
|
|
3517
|
-
{
|
|
3518
|
-
props: {
|
|
3519
|
-
color: "action"
|
|
3520
|
-
},
|
|
3521
|
-
style: {
|
|
3522
|
-
color: (p = (h = (e.vars ?? e).palette) == null ? void 0 : h.action) == null ? void 0 : p.active
|
|
3523
|
-
}
|
|
3524
|
-
},
|
|
3525
|
-
{
|
|
3526
|
-
props: {
|
|
3527
|
-
color: "disabled"
|
|
3528
|
-
},
|
|
3529
|
-
style: {
|
|
3530
|
-
color: (b = (C = (e.vars ?? e).palette) == null ? void 0 : C.action) == null ? void 0 : b.disabled
|
|
3531
|
-
}
|
|
3532
|
-
},
|
|
3533
|
-
{
|
|
3534
|
-
props: {
|
|
3535
|
-
color: "inherit"
|
|
3536
|
-
},
|
|
3537
|
-
style: {
|
|
3538
|
-
color: void 0
|
|
3539
|
-
}
|
|
3540
|
-
}
|
|
3541
|
-
]
|
|
3542
|
-
};
|
|
3543
|
-
})), nt = /* @__PURE__ */ me.forwardRef(function(t, r) {
|
|
3544
|
-
const n = Fi({
|
|
3545
|
-
props: t,
|
|
3546
|
-
name: "MuiSvgIcon"
|
|
3547
|
-
}), {
|
|
3548
|
-
children: o,
|
|
3549
|
-
className: i,
|
|
3550
|
-
color: c = "inherit",
|
|
3551
|
-
component: l = "svg",
|
|
3552
|
-
fontSize: u = "medium",
|
|
3553
|
-
htmlColor: f,
|
|
3554
|
-
inheritViewBox: m = !1,
|
|
3555
|
-
titleAccess: h,
|
|
3556
|
-
viewBox: p = "0 0 24 24",
|
|
3557
|
-
...C
|
|
3558
|
-
} = n, b = /* @__PURE__ */ me.isValidElement(o) && o.type === "svg", s = {
|
|
3559
|
-
...n,
|
|
3560
|
-
color: c,
|
|
3561
|
-
component: l,
|
|
3562
|
-
fontSize: u,
|
|
3563
|
-
instanceFontSize: t.fontSize,
|
|
3564
|
-
inheritViewBox: m,
|
|
3565
|
-
viewBox: p,
|
|
3566
|
-
hasSvgAsChild: b
|
|
3567
|
-
}, T = {};
|
|
3568
|
-
m || (T.viewBox = p);
|
|
3569
|
-
const $ = Yi(s);
|
|
3570
|
-
return /* @__PURE__ */ Se(Wi, {
|
|
3571
|
-
as: l,
|
|
3572
|
-
className: Pr($.root, i),
|
|
3573
|
-
focusable: "false",
|
|
3574
|
-
color: f,
|
|
3575
|
-
"aria-hidden": h ? void 0 : !0,
|
|
3576
|
-
role: h ? "img" : void 0,
|
|
3577
|
-
ref: r,
|
|
3578
|
-
...T,
|
|
3579
|
-
...C,
|
|
3580
|
-
...b && o.props,
|
|
3581
|
-
ownerState: s,
|
|
3582
|
-
children: [b ? o.props.children : o, h ? /* @__PURE__ */ v("title", {
|
|
3583
|
-
children: h
|
|
3584
|
-
}) : null]
|
|
3585
|
-
});
|
|
3586
|
-
});
|
|
3587
|
-
process.env.NODE_ENV !== "production" && (nt.propTypes = {
|
|
3588
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
3589
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
3590
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
3591
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
3592
|
-
/**
|
|
3593
|
-
* Node passed into the SVG element.
|
|
3594
|
-
*/
|
|
3595
|
-
children: L.node,
|
|
3596
|
-
/**
|
|
3597
|
-
* Override or extend the styles applied to the component.
|
|
3598
|
-
*/
|
|
3599
|
-
classes: L.object,
|
|
3600
|
-
/**
|
|
3601
|
-
* @ignore
|
|
3602
|
-
*/
|
|
3603
|
-
className: L.string,
|
|
3604
|
-
/**
|
|
3605
|
-
* The color of the component.
|
|
3606
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
3607
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
3608
|
-
* You can use the `htmlColor` prop to apply a color attribute to the SVG element.
|
|
3609
|
-
* @default 'inherit'
|
|
3610
|
-
*/
|
|
3611
|
-
color: L.oneOfType([L.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), L.string]),
|
|
3612
|
-
/**
|
|
3613
|
-
* The component used for the root node.
|
|
3614
|
-
* Either a string to use a HTML element or a component.
|
|
3615
|
-
*/
|
|
3616
|
-
component: L.elementType,
|
|
3617
|
-
/**
|
|
3618
|
-
* The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
|
|
3619
|
-
* @default 'medium'
|
|
3620
|
-
*/
|
|
3621
|
-
fontSize: L.oneOfType([L.oneOf(["inherit", "large", "medium", "small"]), L.string]),
|
|
3622
|
-
/**
|
|
3623
|
-
* Applies a color attribute to the SVG element.
|
|
3624
|
-
*/
|
|
3625
|
-
htmlColor: L.string,
|
|
3626
|
-
/**
|
|
3627
|
-
* If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
|
|
3628
|
-
* prop will be ignored.
|
|
3629
|
-
* Useful when you want to reference a custom `component` and have `SvgIcon` pass that
|
|
3630
|
-
* `component`'s viewBox to the root node.
|
|
3631
|
-
* @default false
|
|
3632
|
-
*/
|
|
3633
|
-
inheritViewBox: L.bool,
|
|
3634
|
-
/**
|
|
3635
|
-
* The shape-rendering attribute. The behavior of the different options is described on the
|
|
3636
|
-
* [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/shape-rendering).
|
|
3637
|
-
* If you are having issues with blurry icons you should investigate this prop.
|
|
3638
|
-
*/
|
|
3639
|
-
shapeRendering: L.string,
|
|
3640
|
-
/**
|
|
3641
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
3642
|
-
*/
|
|
3643
|
-
sx: L.oneOfType([L.arrayOf(L.oneOfType([L.func, L.object, L.bool])), L.func, L.object]),
|
|
3644
|
-
/**
|
|
3645
|
-
* Provides a human-readable title for the element that contains it.
|
|
3646
|
-
* https://www.w3.org/TR/SVG-access/#Equivalent
|
|
3647
|
-
*/
|
|
3648
|
-
titleAccess: L.string,
|
|
3649
|
-
/**
|
|
3650
|
-
* Allows you to redefine what the coordinates without units mean inside an SVG element.
|
|
3651
|
-
* For example, if the SVG element is 500 (width) by 200 (height),
|
|
3652
|
-
* and you pass viewBox="0 0 50 20",
|
|
3653
|
-
* this means that the coordinates inside the SVG will go from the top left corner (0,0)
|
|
3654
|
-
* to bottom right (50,20) and each unit will be worth 10px.
|
|
3655
|
-
* @default '0 0 24 24'
|
|
3656
|
-
*/
|
|
3657
|
-
viewBox: L.string
|
|
3658
|
-
});
|
|
3659
|
-
nt.muiName = "SvgIcon";
|
|
3660
|
-
function ce(e, t) {
|
|
3661
|
-
function r(n, o) {
|
|
3662
|
-
return /* @__PURE__ */ v(nt, {
|
|
3663
|
-
"data-testid": process.env.NODE_ENV !== "production" ? `${t}Icon` : void 0,
|
|
3664
|
-
ref: o,
|
|
3665
|
-
...n,
|
|
3666
|
-
children: e
|
|
3667
|
-
});
|
|
3668
|
-
}
|
|
3669
|
-
return process.env.NODE_ENV !== "production" && (r.displayName = `${t}Icon`), r.muiName = nt.muiName, /* @__PURE__ */ me.memo(/* @__PURE__ */ me.forwardRef(r));
|
|
3670
|
-
}
|
|
3671
|
-
const Hi = ce(/* @__PURE__ */ v("path", {
|
|
3672
|
-
d: "M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"
|
|
3673
|
-
}), "Undo");
|
|
3674
|
-
function ua(e) {
|
|
3675
|
-
return /* @__PURE__ */ v(
|
|
3676
|
-
ye,
|
|
3677
|
-
{
|
|
3678
|
-
name: e.name,
|
|
3679
|
-
"data-cy": e.dataCy ?? "cancel-button",
|
|
3680
|
-
className: e.className,
|
|
3681
|
-
sx: e.sx,
|
|
3682
|
-
startIcon: e.startIcon ?? /* @__PURE__ */ v(Hi, {}),
|
|
3683
|
-
variant: e.variant ?? "contained",
|
|
3684
|
-
color: e.color ?? "secondary",
|
|
3685
|
-
type: e.type ?? "button",
|
|
3686
|
-
onClick: () => e.onClick(),
|
|
3687
|
-
children: e.children ?? e.name
|
|
3688
|
-
}
|
|
3689
|
-
);
|
|
3690
|
-
}
|
|
3691
|
-
const Gi = ce(/* @__PURE__ */ v("path", {
|
|
3692
|
-
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"
|
|
3693
|
-
}), "DeleteForever");
|
|
3694
|
-
function fa(e) {
|
|
3695
|
-
return /* @__PURE__ */ v(
|
|
3696
|
-
ye,
|
|
3697
|
-
{
|
|
3698
|
-
"data-cy": e.dataCy ?? "delete-button",
|
|
3699
|
-
loading: e.loading ?? !1,
|
|
3700
|
-
loadingPosition: e.loadingPosition ?? "start",
|
|
3701
|
-
startIcon: e.startIcon ?? /* @__PURE__ */ v(Gi, {}),
|
|
3702
|
-
name: e.name,
|
|
3703
|
-
variant: e.variant ?? "contained",
|
|
3704
|
-
color: e.color ?? "error",
|
|
3705
|
-
sx: { m: 1 },
|
|
3706
|
-
type: e.type ?? "button",
|
|
3707
|
-
onClick: e.onClick,
|
|
3708
|
-
children: e.label ? e.label : "Delete"
|
|
3709
|
-
}
|
|
3710
|
-
);
|
|
3711
|
-
}
|
|
3712
|
-
const Ki = ce(/* @__PURE__ */ v("path", {
|
|
3713
|
-
d: "M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"
|
|
3714
|
-
}), "ArrowBackIos");
|
|
3715
|
-
function da(e) {
|
|
3716
|
-
return /* @__PURE__ */ v(Tr, { title: "Go Back to Previous Page", children: /* @__PURE__ */ Se(ge, { name: e.name, color: e.color ?? "primary", onClick: () => e.navigate(-1), children: [
|
|
3717
|
-
/* @__PURE__ */ v(Ki, {}),
|
|
3718
|
-
e.children
|
|
3719
|
-
] }) });
|
|
3720
|
-
}
|
|
3721
|
-
const qi = ce(/* @__PURE__ */ v("path", {
|
|
3722
|
-
d: "M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"
|
|
3723
|
-
}), "History");
|
|
3724
|
-
function ma(e) {
|
|
3725
|
-
return /* @__PURE__ */ v(
|
|
3726
|
-
ye,
|
|
3727
|
-
{
|
|
3728
|
-
name: e.name,
|
|
3729
|
-
"data-cy": e.dataCy ?? "history-button",
|
|
3730
|
-
className: e.className,
|
|
3731
|
-
sx: e.sx ?? { p: 1, m: 1 },
|
|
3732
|
-
startIcon: e.startIcon ?? /* @__PURE__ */ v(qi, {}),
|
|
3733
|
-
variant: e.variant ?? "contained",
|
|
3734
|
-
color: e.color ?? "primary",
|
|
3735
|
-
type: e.type ?? "button",
|
|
3736
|
-
onClick: () => e.onClick(),
|
|
3737
|
-
children: e.children ?? e.name
|
|
3738
|
-
}
|
|
3739
|
-
);
|
|
3740
|
-
}
|
|
3741
|
-
const Qi = ce(/* @__PURE__ */ v("path", {
|
|
3742
|
-
d: "M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"
|
|
3743
|
-
}), "Save"), Ji = {
|
|
3744
|
-
backgroundColor: "$primary-color",
|
|
3745
|
-
color: "var(--white-color)",
|
|
3746
|
-
margin: "20px"
|
|
3747
|
-
};
|
|
3748
|
-
function pa(e) {
|
|
3749
|
-
return /* @__PURE__ */ v(
|
|
3750
|
-
ye,
|
|
3751
|
-
{
|
|
3752
|
-
name: e.name,
|
|
3753
|
-
"data-cy": e.dataCy ?? "loading-success-button",
|
|
3754
|
-
variant: e.variant ?? "contained",
|
|
3755
|
-
color: e.color ?? "success",
|
|
3756
|
-
loadingPosition: "start",
|
|
3757
|
-
startIcon: e.startIcon ?? /* @__PURE__ */ v(Qi, {}),
|
|
3758
|
-
loading: e.loading,
|
|
3759
|
-
type: e.type ?? "button",
|
|
3760
|
-
style: Ji,
|
|
3761
|
-
sx: e.sx,
|
|
3762
|
-
onClick: e.onClick,
|
|
3763
|
-
children: e.children ?? e.name
|
|
3764
|
-
}
|
|
3765
|
-
);
|
|
3766
|
-
}
|
|
3767
|
-
const Xi = ce(/* @__PURE__ */ v("path", {
|
|
3768
|
-
d: "M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"
|
|
3769
|
-
}), "Settings");
|
|
3770
|
-
function ha(e) {
|
|
3771
|
-
return /* @__PURE__ */ v(
|
|
3772
|
-
ye,
|
|
3773
|
-
{
|
|
3774
|
-
name: e.name,
|
|
3775
|
-
"data-cy": e.dataCy ?? "manage-button",
|
|
3776
|
-
className: e.className,
|
|
3777
|
-
onClick: () => e.onClick(),
|
|
3778
|
-
variant: e.variant ?? "contained",
|
|
3779
|
-
color: e.color ?? "primary",
|
|
3780
|
-
size: e.size ?? "large",
|
|
3781
|
-
startIcon: e.startIcon ?? /* @__PURE__ */ v(Xi, {}),
|
|
3782
|
-
children: e.children ? e.children : "Manage"
|
|
3783
|
-
}
|
|
3784
|
-
);
|
|
3785
|
-
}
|
|
3786
|
-
function ga(e) {
|
|
3787
|
-
return /* @__PURE__ */ v(
|
|
3788
|
-
ye,
|
|
3789
|
-
{
|
|
3790
|
-
name: e.name,
|
|
3791
|
-
"data-cy": e.dataCy ?? "success-button",
|
|
3792
|
-
className: e.className,
|
|
3793
|
-
sx: e.sx,
|
|
3794
|
-
startIcon: e.startIcon,
|
|
3795
|
-
variant: e.variant ?? "contained",
|
|
3796
|
-
color: e.color ?? "success",
|
|
3797
|
-
type: e.type ?? "button",
|
|
3798
|
-
onClick: () => e.onClick(),
|
|
3799
|
-
children: e.children ?? e.name
|
|
3800
|
-
}
|
|
3801
|
-
);
|
|
3802
|
-
}
|
|
3803
|
-
function ya(e) {
|
|
3804
|
-
return /* @__PURE__ */ v(
|
|
3805
|
-
ye,
|
|
3806
|
-
{
|
|
3807
|
-
"data-cy": e.dataCy ?? "excel-button",
|
|
3808
|
-
style: { borderRadius: "20px" },
|
|
3809
|
-
className: e.className,
|
|
3810
|
-
name: e.name,
|
|
3811
|
-
sx: e.sx,
|
|
3812
|
-
startIcon: e.startIcon,
|
|
3813
|
-
variant: "contained",
|
|
3814
|
-
color: "success",
|
|
3815
|
-
type: e.type ?? "button",
|
|
3816
|
-
onClick: () => e.onClick(),
|
|
3817
|
-
children: e.children ?? e.name
|
|
3818
|
-
}
|
|
3819
|
-
);
|
|
3820
|
-
}
|
|
3821
|
-
const Zi = ce(/* @__PURE__ */ v("path", {
|
|
3822
|
-
d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"
|
|
3823
|
-
}), "Edit");
|
|
3824
|
-
function ba(e) {
|
|
3825
|
-
return /* @__PURE__ */ v(Tr, { title: e.tooltipTitle, children: /* @__PURE__ */ v(
|
|
3826
|
-
ge,
|
|
3827
|
-
{
|
|
3828
|
-
sx: { pt: 0, pb: 0 },
|
|
3829
|
-
color: e.color ?? "primary",
|
|
3830
|
-
onClick: () => e.onClick(!0),
|
|
3831
|
-
"aria-label": e.tooltipTitle,
|
|
3832
|
-
children: /* @__PURE__ */ v(Zi, {})
|
|
3833
|
-
}
|
|
3834
|
-
) });
|
|
3835
|
-
}
|
|
3836
|
-
const Bt = ce(/* @__PURE__ */ v("path", {
|
|
3837
|
-
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
3838
|
-
}), "Close"), va = (e) => {
|
|
3839
|
-
const [t, r] = Me(!1);
|
|
3840
|
-
$r(() => {
|
|
3841
|
-
r(e.open);
|
|
3842
|
-
}, [e.open, e.progressState]);
|
|
3843
|
-
const n = /* @__PURE__ */ v(ge, { size: "small", "aria-label": "close", color: "inherit", onClick: () => r(!1), children: /* @__PURE__ */ v(Bt, { fontSize: "small" }) });
|
|
3844
|
-
return /* @__PURE__ */ Se(Er, { children: [
|
|
3845
|
-
/* @__PURE__ */ v(
|
|
3846
|
-
Ze,
|
|
3847
|
-
{
|
|
3848
|
-
anchorOrigin: { vertical: "bottom", horizontal: "center" },
|
|
3849
|
-
open: t && e.progressState.isSuccess,
|
|
3850
|
-
autoHideDuration: e.autoHideDuration ?? 3e3,
|
|
3851
|
-
onClose: () => r(!1),
|
|
3852
|
-
children: /* @__PURE__ */ v(Fe, { variant: "filled", severity: "success", sx: { width: "100%" }, action: n, children: e.progressState.message })
|
|
3853
|
-
}
|
|
3854
|
-
),
|
|
3855
|
-
/* @__PURE__ */ v(
|
|
3856
|
-
Ze,
|
|
3857
|
-
{
|
|
3858
|
-
anchorOrigin: { vertical: "bottom", horizontal: "center" },
|
|
3859
|
-
open: t && e.progressState.isError,
|
|
3860
|
-
TransitionComponent: xr,
|
|
3861
|
-
autoHideDuration: e.autoHideDuration ?? 3e3,
|
|
3862
|
-
onClose: () => r(!1),
|
|
3863
|
-
children: /* @__PURE__ */ v(Fe, { variant: "filled", sx: { width: "100%" }, severity: "error", action: n, children: e.progressState.message })
|
|
3864
|
-
}
|
|
3865
|
-
)
|
|
3866
|
-
] });
|
|
3867
|
-
}, Sa = (e) => {
|
|
3868
|
-
const [t, r] = Me(!1);
|
|
3869
|
-
$r(() => {
|
|
3870
|
-
r(e.open);
|
|
3871
|
-
}, [e.open, e]);
|
|
3872
|
-
const n = /* @__PURE__ */ v(ge, { size: "small", "aria-label": "close", color: "inherit", onClick: () => r(!1), children: /* @__PURE__ */ v(Bt, { fontSize: "small" }) });
|
|
3873
|
-
return /* @__PURE__ */ Se(Er, { children: [
|
|
3874
|
-
/* @__PURE__ */ v(
|
|
3875
|
-
Ze,
|
|
3876
|
-
{
|
|
3877
|
-
anchorOrigin: { vertical: "bottom", horizontal: "center" },
|
|
3878
|
-
open: t && e.isSuccess,
|
|
3879
|
-
autoHideDuration: e.autoHideDuration ?? 3e3,
|
|
3880
|
-
onClose: () => r(!1),
|
|
3881
|
-
children: /* @__PURE__ */ v(Fe, { variant: "filled", severity: "success", sx: { width: "100%" }, action: n, children: e.message })
|
|
3882
|
-
}
|
|
3883
|
-
),
|
|
3884
|
-
/* @__PURE__ */ v(
|
|
3885
|
-
Ze,
|
|
3886
|
-
{
|
|
3887
|
-
anchorOrigin: { vertical: "bottom", horizontal: "center" },
|
|
3888
|
-
open: t && e.isError,
|
|
3889
|
-
TransitionComponent: xr,
|
|
3890
|
-
autoHideDuration: e.autoHideDuration ?? 3e3,
|
|
3891
|
-
onClose: () => r(!1),
|
|
3892
|
-
children: /* @__PURE__ */ v(Fe, { variant: "filled", sx: { width: "100%" }, severity: "error", action: n, children: e.message })
|
|
3893
|
-
}
|
|
3894
|
-
)
|
|
3895
|
-
] });
|
|
3896
|
-
}, br = ce(/* @__PURE__ */ v("path", {
|
|
3897
|
-
d: "M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"
|
|
3898
|
-
}), "FirstPage"), vr = ce(/* @__PURE__ */ v("path", {
|
|
3899
|
-
d: "M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"
|
|
3900
|
-
}), "KeyboardArrowLeft"), Sr = ce(/* @__PURE__ */ v("path", {
|
|
3901
|
-
d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"
|
|
3902
|
-
}), "KeyboardArrowRight"), Cr = ce(/* @__PURE__ */ v("path", {
|
|
3903
|
-
d: "M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"
|
|
3904
|
-
}), "LastPage");
|
|
3905
|
-
function Ca(e) {
|
|
3906
|
-
const t = Bi(), { count: r, page: n, rowsPerPage: o, onPageChange: i } = e, c = (m) => {
|
|
3907
|
-
i(m, 0);
|
|
3908
|
-
}, l = (m) => {
|
|
3909
|
-
i(m, n - 1);
|
|
3910
|
-
}, u = (m) => {
|
|
3911
|
-
i(m, n + 1);
|
|
3912
|
-
}, f = (m) => {
|
|
3913
|
-
i(m, Math.max(0, Math.ceil(r / o) - 1));
|
|
3914
|
-
};
|
|
3915
|
-
return /* @__PURE__ */ Se(wr, { sx: { flexShrink: 0, ml: 2.5 }, children: [
|
|
3916
|
-
/* @__PURE__ */ v(ge, { onClick: c, disabled: n === 0, "aria-label": "first page", children: t.direction === "rtl" ? /* @__PURE__ */ v(Cr, {}) : /* @__PURE__ */ v(br, {}) }),
|
|
3917
|
-
/* @__PURE__ */ v(ge, { onClick: l, disabled: n === 0, "aria-label": "previous page", children: t.direction === "rtl" ? /* @__PURE__ */ v(Sr, {}) : /* @__PURE__ */ v(vr, {}) }),
|
|
3918
|
-
/* @__PURE__ */ v(ge, { onClick: u, disabled: n >= Math.ceil(r / o) - 1, "aria-label": "next page", children: t.direction === "rtl" ? /* @__PURE__ */ v(vr, {}) : /* @__PURE__ */ v(Sr, {}) }),
|
|
3919
|
-
/* @__PURE__ */ v(ge, { onClick: f, disabled: n >= Math.ceil(r / o) - 1, "aria-label": "last page", children: t.direction === "rtl" ? /* @__PURE__ */ v(br, {}) : /* @__PURE__ */ v(Cr, {}) })
|
|
3920
|
-
] });
|
|
3921
|
-
}
|
|
3922
|
-
function Ea(e) {
|
|
3923
|
-
const { children: t, index: r, ...n } = e;
|
|
3924
|
-
return /* @__PURE__ */ v("div", { className: "tabPanel", role: "tabpanel", id: `vertical-tabpanel-${r}`, "aria-labelledby": `vertical-tab-${r}`, ...n, children: /* @__PURE__ */ v(wr, { sx: { p: 3 }, children: /* @__PURE__ */ v(Xr, { component: "span", children: t }) }) });
|
|
3925
|
-
}
|
|
3926
|
-
function Ta(e) {
|
|
3927
|
-
return {
|
|
3928
|
-
id: `vertical-tab-${e}`,
|
|
3929
|
-
"aria-controls": `vertical-tabpanel-${e}`
|
|
3930
|
-
};
|
|
3931
|
-
}
|
|
3932
|
-
function xa(e) {
|
|
3933
|
-
return /* @__PURE__ */ v(Or, { component: _r, to: e.href, className: "next-btn-link", underline: "hover", children: e.linkText ?? e.children });
|
|
3934
|
-
}
|
|
3935
|
-
function wa() {
|
|
3936
|
-
return /* @__PURE__ */ v("div", { style: { margin: "1.5rem" }, className: "app-flex-justify-center", children: /* @__PURE__ */ v(Zr, {}) });
|
|
3937
|
-
}
|
|
3938
|
-
function Oa(e) {
|
|
3939
|
-
const { onClose: t, title: r, message: n, open: o, ...i } = e;
|
|
3940
|
-
return /* @__PURE__ */ Se(en, { sx: { "& .MuiDialog-paper": { width: "80%", maxHeight: 435 } }, maxWidth: "xs", open: o, ...i, children: [
|
|
3941
|
-
/* @__PURE__ */ v(tn, { children: r ?? "Confirm" }),
|
|
3942
|
-
/* @__PURE__ */ v(rn, { dividers: !0, children: n }),
|
|
3943
|
-
/* @__PURE__ */ Se(nn, { children: [
|
|
3944
|
-
/* @__PURE__ */ v(ye, { autoFocus: !0, onClick: () => t("No"), children: "Cancel" }),
|
|
3945
|
-
/* @__PURE__ */ v(ye, { onClick: () => t("Yes"), children: "Yes" })
|
|
3946
|
-
] })
|
|
3947
|
-
] });
|
|
3948
|
-
}
|
|
3949
|
-
function $a(e) {
|
|
3950
|
-
const [t, r] = Me(!0), [n] = Me(e.dismissible ?? !0), [o] = Me(e.dismissOnTimeOut ?? !0), [i] = Me(e.dismissTimeOut ?? 5e3);
|
|
3951
|
-
return setTimeout(() => {
|
|
3952
|
-
r(o ? !1 : t);
|
|
3953
|
-
}, i), /* @__PURE__ */ v("span", { children: t && /* @__PURE__ */ v(
|
|
3954
|
-
Fe,
|
|
3955
|
-
{
|
|
3956
|
-
action: n ? /* @__PURE__ */ v(
|
|
3957
|
-
ge,
|
|
3958
|
-
{
|
|
3959
|
-
"aria-label": "close",
|
|
3960
|
-
color: "inherit",
|
|
3961
|
-
size: "small",
|
|
3962
|
-
onClick: () => {
|
|
3963
|
-
r(!1);
|
|
3964
|
-
},
|
|
3965
|
-
children: /* @__PURE__ */ v(Bt, { fontSize: "inherit" })
|
|
3966
|
-
}
|
|
3967
|
-
) : null,
|
|
3968
|
-
style: { margin: "20px" },
|
|
3969
|
-
...e,
|
|
3970
|
-
children: e.message
|
|
3971
|
-
}
|
|
3972
|
-
) });
|
|
3973
|
-
}
|
|
3974
|
-
const ea = ce(/* @__PURE__ */ v("path", {
|
|
3975
|
-
d: "M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"
|
|
3976
|
-
}), "OpenInNew");
|
|
3977
|
-
function _a(e) {
|
|
3978
|
-
return /* @__PURE__ */ Se(
|
|
3979
|
-
Or,
|
|
3980
|
-
{
|
|
3981
|
-
component: _r,
|
|
3982
|
-
to: e.href,
|
|
3983
|
-
target: e.target || "_blank",
|
|
3984
|
-
rel: "noreferrer",
|
|
3985
|
-
className: "next-btn-link",
|
|
3986
|
-
underline: "hover",
|
|
3987
|
-
children: [
|
|
3988
|
-
e.linkText ?? e.children,
|
|
3989
|
-
/* @__PURE__ */ v(
|
|
3990
|
-
on,
|
|
3991
|
-
{
|
|
3992
|
-
sx: {
|
|
3993
|
-
fontSize: "1.1rem",
|
|
3994
|
-
mx: 0.75,
|
|
3995
|
-
verticalAlign: "middle",
|
|
3996
|
-
display: "inline-flex"
|
|
3997
|
-
},
|
|
3998
|
-
component: ea
|
|
3999
|
-
}
|
|
4000
|
-
)
|
|
4001
|
-
]
|
|
4002
|
-
}
|
|
4003
|
-
);
|
|
4004
|
-
}
|
|
4005
|
-
function Aa(e) {
|
|
4006
|
-
const { condition: t, children: r, else: n } = e;
|
|
4007
|
-
return t ? typeof r == "function" ? r() : r : n ? typeof n == "function" ? n() : n : null;
|
|
4008
|
-
}
|
|
4009
|
-
function Ra(e) {
|
|
4010
|
-
return typeof e == "boolean" ? e : typeof e == "string" ? e.toLowerCase() === "true" : !1;
|
|
4011
|
-
}
|
|
4012
|
-
var Lt = /* @__PURE__ */ ((e) => (e.SYSTEM_TIME_ZONE = "America/New_York", e.SYSTEM_LOCALE = "en-US", e.SYSTEM_DATE_FORMAT = "MM/dd/yyyy", e.SYSTEM_DATE_TIME_FORMAT = "MM/dd/yyyy hh:mm:ss a", e.ISO_DATE_FORMAT = "yyyy-MM-dd", e[e.SYSTEM_COOKIE_TIMEOUT_HOURS = 24] = "SYSTEM_COOKIE_TIMEOUT_HOURS", e[e.SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS = 36e5] = "SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS", e))(Lt || {});
|
|
4013
|
-
const ka = () => {
|
|
4014
|
-
const e = +/* @__PURE__ */ new Date();
|
|
4015
|
-
return new Date(e + Lt.SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS);
|
|
4016
|
-
}, Ia = (e) => Ar(new Date(e), Lt.ISO_DATE_FORMAT), Pa = (e, t) => e ? Ar(cn(e), t) : "";
|
|
4017
|
-
function Ma(e) {
|
|
4018
|
-
if (typeof e == "string")
|
|
4019
|
-
return Number.parseInt(e, 10);
|
|
4020
|
-
}
|
|
4021
|
-
const Na = () => ({
|
|
4022
|
-
isLoading: !1,
|
|
4023
|
-
isSuccess: !1,
|
|
4024
|
-
isError: !1,
|
|
4025
|
-
isComplete: !1,
|
|
4026
|
-
message: ""
|
|
4027
|
-
}), Da = (e) => ({
|
|
4028
|
-
...e,
|
|
4029
|
-
isLoading: !0,
|
|
4030
|
-
isSuccess: !1,
|
|
4031
|
-
isError: !1,
|
|
4032
|
-
message: ""
|
|
4033
|
-
}), Ba = (e, t) => ({
|
|
4034
|
-
...e,
|
|
4035
|
-
isLoading: !1,
|
|
4036
|
-
isSuccess: !0,
|
|
4037
|
-
isError: !1,
|
|
4038
|
-
isComplete: !0,
|
|
4039
|
-
message: t || ""
|
|
4040
|
-
}), La = (e, t) => ({
|
|
4041
|
-
...e,
|
|
4042
|
-
isLoading: !1,
|
|
4043
|
-
isSuccess: !1,
|
|
4044
|
-
isError: !0,
|
|
4045
|
-
isComplete: !0,
|
|
4046
|
-
message: t || ""
|
|
4047
|
-
});
|
|
4048
|
-
function Va(e) {
|
|
4049
|
-
return e == null ? !0 : typeof e == "string" ? e.trim() === "" : !1;
|
|
4050
|
-
}
|
|
4051
|
-
const ja = (e) => {
|
|
4052
|
-
try {
|
|
4053
|
-
return decodeURIComponent(e) !== e;
|
|
4054
|
-
} catch {
|
|
4055
|
-
return !1;
|
|
4056
|
-
}
|
|
4057
|
-
};
|
|
4058
|
-
class ta extends Error {
|
|
4059
|
-
constructor(r, { status: n, statusText: o, redirected: i, type: c }) {
|
|
4060
|
-
super(r);
|
|
4061
|
-
Be(this, "status");
|
|
4062
|
-
Be(this, "statusText");
|
|
4063
|
-
Be(this, "redirected");
|
|
4064
|
-
Be(this, "type");
|
|
4065
|
-
this.status = n, this.statusText = o, this.statusText = c, this.redirected = i, this.name = "HttpError";
|
|
4066
|
-
}
|
|
4067
|
-
}
|
|
4068
|
-
async function za(e, t = {}) {
|
|
4069
|
-
const r = new Headers(t.headers || {});
|
|
4070
|
-
t.body instanceof FormData || typeof t.body == "object" && (t.body = JSON.stringify(t.body), r.set("Content-Type", "application/json"));
|
|
4071
|
-
const n = {
|
|
4072
|
-
...t,
|
|
4073
|
-
headers: r
|
|
4074
|
-
};
|
|
4075
|
-
n.body && typeof n.body == "object" && (n.body = JSON.stringify(n.body));
|
|
4076
|
-
const o = await fetch(e, n);
|
|
4077
|
-
if (o.type === "error") {
|
|
4078
|
-
const i = await o.text();
|
|
4079
|
-
throw new ta(i, o);
|
|
4080
|
-
}
|
|
4081
|
-
return await o.json();
|
|
4082
|
-
}
|
|
4083
|
-
function Fa(e) {
|
|
4084
|
-
return getComputedStyle(document.documentElement).getPropertyValue(e).trim();
|
|
4085
|
-
}
|
|
4086
|
-
export {
|
|
4087
|
-
va as AppSnackBar,
|
|
4088
|
-
ua as CancelButton,
|
|
4089
|
-
wa as CenteredCircularProgress,
|
|
4090
|
-
Oa as ConfirmDialog,
|
|
4091
|
-
fa as DeleteButton,
|
|
4092
|
-
$a as DismissibleAlert,
|
|
4093
|
-
ba as EditIconButton,
|
|
4094
|
-
ya as ExcelButton,
|
|
4095
|
-
da as GoBackButton,
|
|
4096
|
-
ma as HistoryButton,
|
|
4097
|
-
pa as LoadingSuccessButton,
|
|
4098
|
-
ha as ManageButton,
|
|
4099
|
-
xa as NextLink,
|
|
4100
|
-
_a as OpenInNewIconLink,
|
|
4101
|
-
Sa as QuerySnackBar,
|
|
4102
|
-
Aa as ReactIf,
|
|
4103
|
-
ga as SuccessButton,
|
|
4104
|
-
Ea as TabPanel,
|
|
4105
|
-
Ca as TablePaginationActions,
|
|
4106
|
-
Ta as a11yProps,
|
|
4107
|
-
Ia as convertToIsoDate,
|
|
4108
|
-
za as fetchClient,
|
|
4109
|
-
Pa as formatDate,
|
|
4110
|
-
Fa as getCssVariable,
|
|
4111
|
-
Na as initializeState,
|
|
4112
|
-
Va as isBlankOrEmpty,
|
|
4113
|
-
ja as isEncoded,
|
|
4114
|
-
La as markError,
|
|
4115
|
-
Da as markLoading,
|
|
4116
|
-
Ba as markSuccess,
|
|
4117
|
-
Ra as parseBoolean,
|
|
4118
|
-
Ma as parseNumber,
|
|
4119
|
-
ka as setCookieExpirationDate
|
|
4120
|
-
};
|