@genai-fi/base 4.3.7 → 4.3.9
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/dist/{Button-BgSe1MyE.js → Button-HlUfDiMM.js} +3 -3
- package/dist/{CircularProgress-DgKnRiq7.js → CircularProgress-DZ8YZ0Dt.js} +345 -310
- package/dist/{Close-Cv_QwhIN.js → Close-TS8H1lQg.js} +1 -1
- package/dist/{DefaultPropsProvider-BurgXZzw.js → DefaultPropsProvider-B_x1hwuY.js} +2 -2
- package/dist/{DialogQR-DoM8ZHBM.js → DialogQR-ByOert0g.js} +4 -4
- package/dist/{FileSaver.min-DhePf63e.js → FileSaver.min-CDwyANUI.js} +57 -57
- package/dist/{FlashWifi-slUpI7sB.js → FlashWifi-CNanHNye.js} +1 -1
- package/dist/{Portal-MiwrHMB_.js → Portal-BdRLJx1y.js} +140 -133
- package/dist/assets/SidePanel.css +1 -1
- package/dist/assets/SvgLayer.css +1 -1
- package/dist/assets/Widget.css +1 -1
- package/dist/{browser-HW-wgeM2.js → browser-DWbgwj89.js} +421 -451
- package/dist/components/AlertPara/AlertPara.js +1 -1
- package/dist/components/Application/Application.js +724 -689
- package/dist/components/BusyButton/BusyButton.d.ts +4 -4
- package/dist/components/BusyButton/BusyButton.js +1 -1
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/ConnectionStatus/ConnectionStatus.js +3 -3
- package/dist/components/ConnectionStatus/FlashWifi.js +1 -1
- package/dist/components/Feedback/Feedback.js +4 -4
- package/dist/components/Feedback/Rating.js +1 -1
- package/dist/components/Help/Help.js +5 -5
- package/dist/components/LangSelect/LangSelect.js +1 -1
- package/dist/components/Motd/Motd.js +1 -1
- package/dist/components/PieScore/PieScore.js +9609 -6092
- package/dist/components/QRCode/DialogQR.js +4 -4
- package/dist/components/QRCode/QRCode.js +2 -2
- package/dist/components/SidePanel/SidePanel.d.ts +2 -1
- package/dist/components/SidePanel/SidePanel.js +91 -73
- package/dist/components/Webcam/Webcam.js +3 -3
- package/dist/components/WorkflowLayout/Widget.js +1460 -1438
- package/dist/{createSvgIcon-BM4dw4Lw.js → createSvgIcon-DjQWJ3wn.js} +2 -2
- package/dist/{createTheme-DV959X3d.js → createTheme-DnBeI7Zz.js} +752 -749
- package/dist/hooks/peer.js +1 -1
- package/dist/{index-SOhdqzHq.js → index-B_zFkp-8.js} +2 -2
- package/dist/react-CiLnfHJp.js +140 -0
- package/dist/services/peer2peer/Incoming.js +1 -1
- package/dist/services/peer2peer/Outgoing.js +1 -1
- package/dist/services/peer2peer/Peer2Peer.js +538 -541
- package/dist/services/peer2peer/PeerConnection.js +1 -1
- package/dist/state/webrtcState.js +1 -1
- package/dist/style/theme.js +1 -1
- package/dist/util/Observer.js +1 -1
- package/dist/util/zip.js +1 -1
- package/dist/vanilla-OLGM3aAq.js +439 -0
- package/package.json +3 -3
- package/dist/react-B9NW8BS7.js +0 -112
- package/dist/vanilla-BJxibF1U.js +0 -404
|
@@ -14,16 +14,16 @@ const hr = (e) => e, at = () => {
|
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
}, st = at();
|
|
17
|
-
function
|
|
17
|
+
function ye(e, ...r) {
|
|
18
18
|
const t = new URL(`https://mui.com/production-error/?code=${e}`);
|
|
19
19
|
return r.forEach((n) => t.searchParams.append("args[]", n)), `Minified MUI error #${e}; visit ${t} for the full message.`;
|
|
20
20
|
}
|
|
21
21
|
function Ur(e) {
|
|
22
22
|
if (typeof e != "string")
|
|
23
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." :
|
|
23
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : ye(7));
|
|
24
24
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
25
25
|
}
|
|
26
|
-
var Ie = { exports: {} }, Ne = { exports: {} },
|
|
26
|
+
var Ie = { exports: {} }, Ne = { exports: {} }, L = {};
|
|
27
27
|
/** @license React v16.13.1
|
|
28
28
|
* react-is.production.min.js
|
|
29
29
|
*
|
|
@@ -34,71 +34,71 @@ var Ie = { exports: {} }, Ne = { exports: {} }, V = {};
|
|
|
34
34
|
*/
|
|
35
35
|
var yr;
|
|
36
36
|
function ct() {
|
|
37
|
-
if (yr) return
|
|
37
|
+
if (yr) return L;
|
|
38
38
|
yr = 1;
|
|
39
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108,
|
|
40
|
-
function F(
|
|
41
|
-
if (typeof
|
|
42
|
-
var
|
|
43
|
-
switch (
|
|
39
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, c = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
|
|
40
|
+
function F(b) {
|
|
41
|
+
if (typeof b == "object" && b !== null) {
|
|
42
|
+
var x = b.$$typeof;
|
|
43
|
+
switch (x) {
|
|
44
44
|
case r:
|
|
45
|
-
switch (
|
|
46
|
-
case f:
|
|
45
|
+
switch (b = b.type, b) {
|
|
47
46
|
case d:
|
|
47
|
+
case p:
|
|
48
48
|
case n:
|
|
49
|
-
case
|
|
49
|
+
case s:
|
|
50
50
|
case o:
|
|
51
|
-
case
|
|
52
|
-
return
|
|
51
|
+
case g:
|
|
52
|
+
return b;
|
|
53
53
|
default:
|
|
54
|
-
switch (
|
|
54
|
+
switch (b = b && b.$$typeof, b) {
|
|
55
|
+
case l:
|
|
56
|
+
case m:
|
|
57
|
+
case v:
|
|
55
58
|
case u:
|
|
56
|
-
case
|
|
57
|
-
|
|
58
|
-
case S:
|
|
59
|
-
case s:
|
|
60
|
-
return y;
|
|
59
|
+
case a:
|
|
60
|
+
return b;
|
|
61
61
|
default:
|
|
62
|
-
return
|
|
62
|
+
return x;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
case t:
|
|
66
|
-
return
|
|
66
|
+
return x;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
function $(
|
|
71
|
-
return F(
|
|
70
|
+
function $(b) {
|
|
71
|
+
return F(b) === p;
|
|
72
72
|
}
|
|
73
|
-
return
|
|
74
|
-
return $(
|
|
75
|
-
},
|
|
76
|
-
return F(
|
|
77
|
-
},
|
|
78
|
-
return F(
|
|
79
|
-
},
|
|
80
|
-
return typeof
|
|
81
|
-
},
|
|
82
|
-
return F(
|
|
83
|
-
},
|
|
84
|
-
return F(
|
|
85
|
-
},
|
|
86
|
-
return F(
|
|
87
|
-
},
|
|
88
|
-
return F(
|
|
89
|
-
},
|
|
90
|
-
return F(
|
|
91
|
-
},
|
|
92
|
-
return F(
|
|
93
|
-
},
|
|
94
|
-
return F(
|
|
95
|
-
},
|
|
96
|
-
return F(
|
|
97
|
-
},
|
|
98
|
-
return typeof
|
|
99
|
-
},
|
|
100
|
-
}
|
|
101
|
-
var
|
|
73
|
+
return L.AsyncMode = d, L.ConcurrentMode = p, L.ContextConsumer = l, L.ContextProvider = a, L.Element = r, L.ForwardRef = m, L.Fragment = n, L.Lazy = v, L.Memo = u, L.Portal = t, L.Profiler = s, L.StrictMode = o, L.Suspense = g, L.isAsyncMode = function(b) {
|
|
74
|
+
return $(b) || F(b) === d;
|
|
75
|
+
}, L.isConcurrentMode = $, L.isContextConsumer = function(b) {
|
|
76
|
+
return F(b) === l;
|
|
77
|
+
}, L.isContextProvider = function(b) {
|
|
78
|
+
return F(b) === a;
|
|
79
|
+
}, L.isElement = function(b) {
|
|
80
|
+
return typeof b == "object" && b !== null && b.$$typeof === r;
|
|
81
|
+
}, L.isForwardRef = function(b) {
|
|
82
|
+
return F(b) === m;
|
|
83
|
+
}, L.isFragment = function(b) {
|
|
84
|
+
return F(b) === n;
|
|
85
|
+
}, L.isLazy = function(b) {
|
|
86
|
+
return F(b) === v;
|
|
87
|
+
}, L.isMemo = function(b) {
|
|
88
|
+
return F(b) === u;
|
|
89
|
+
}, L.isPortal = function(b) {
|
|
90
|
+
return F(b) === t;
|
|
91
|
+
}, L.isProfiler = function(b) {
|
|
92
|
+
return F(b) === s;
|
|
93
|
+
}, L.isStrictMode = function(b) {
|
|
94
|
+
return F(b) === o;
|
|
95
|
+
}, L.isSuspense = function(b) {
|
|
96
|
+
return F(b) === g;
|
|
97
|
+
}, L.isValidElementType = function(b) {
|
|
98
|
+
return typeof b == "string" || typeof b == "function" || b === n || b === p || b === s || b === o || b === g || b === h || typeof b == "object" && b !== null && (b.$$typeof === v || b.$$typeof === u || b.$$typeof === a || b.$$typeof === l || b.$$typeof === m || b.$$typeof === E || b.$$typeof === _ || b.$$typeof === j || b.$$typeof === c);
|
|
99
|
+
}, L.typeOf = F, L;
|
|
100
|
+
}
|
|
101
|
+
var V = {};
|
|
102
102
|
/** @license React v16.13.1
|
|
103
103
|
* react-is.development.js
|
|
104
104
|
*
|
|
@@ -108,12 +108,12 @@ var L = {};
|
|
|
108
108
|
* LICENSE file in the root directory of this source tree.
|
|
109
109
|
*/
|
|
110
110
|
var br;
|
|
111
|
-
function
|
|
112
|
-
return br || (br = 1, process.env.NODE_ENV !== "production" && function() {
|
|
113
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108,
|
|
111
|
+
function lt() {
|
|
112
|
+
return br || (br = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
113
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, c = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
|
|
114
114
|
function F(C) {
|
|
115
115
|
return typeof C == "string" || typeof C == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
116
|
-
C === n || C ===
|
|
116
|
+
C === n || C === p || C === s || C === o || C === g || C === h || typeof C == "object" && C !== null && (C.$$typeof === v || C.$$typeof === u || C.$$typeof === a || C.$$typeof === l || C.$$typeof === m || C.$$typeof === E || C.$$typeof === _ || C.$$typeof === j || C.$$typeof === c);
|
|
117
117
|
}
|
|
118
118
|
function $(C) {
|
|
119
119
|
if (typeof C == "object" && C !== null) {
|
|
@@ -122,21 +122,21 @@ function ut() {
|
|
|
122
122
|
case r:
|
|
123
123
|
var ke = C.type;
|
|
124
124
|
switch (ke) {
|
|
125
|
-
case f:
|
|
126
125
|
case d:
|
|
126
|
+
case p:
|
|
127
127
|
case n:
|
|
128
|
-
case
|
|
128
|
+
case s:
|
|
129
129
|
case o:
|
|
130
|
-
case
|
|
130
|
+
case g:
|
|
131
131
|
return ke;
|
|
132
132
|
default:
|
|
133
133
|
var gr = ke && ke.$$typeof;
|
|
134
134
|
switch (gr) {
|
|
135
|
+
case l:
|
|
136
|
+
case m:
|
|
137
|
+
case v:
|
|
135
138
|
case u:
|
|
136
|
-
case
|
|
137
|
-
case b:
|
|
138
|
-
case S:
|
|
139
|
-
case s:
|
|
139
|
+
case a:
|
|
140
140
|
return gr;
|
|
141
141
|
default:
|
|
142
142
|
return se;
|
|
@@ -147,52 +147,52 @@ function ut() {
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
var
|
|
150
|
+
var b = d, x = p, ee = l, ne = a, le = r, de = m, K = n, i = v, w = u, S = t, I = s, N = o, J = g, ae = !1;
|
|
151
151
|
function Je(C) {
|
|
152
|
-
return ae || (ae = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),
|
|
152
|
+
return ae || (ae = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), y(C) || $(C) === d;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
return $(C) ===
|
|
154
|
+
function y(C) {
|
|
155
|
+
return $(C) === p;
|
|
156
156
|
}
|
|
157
157
|
function T(C) {
|
|
158
|
-
return $(C) ===
|
|
158
|
+
return $(C) === l;
|
|
159
159
|
}
|
|
160
160
|
function k(C) {
|
|
161
|
-
return $(C) ===
|
|
161
|
+
return $(C) === a;
|
|
162
162
|
}
|
|
163
163
|
function R(C) {
|
|
164
164
|
return typeof C == "object" && C !== null && C.$$typeof === r;
|
|
165
165
|
}
|
|
166
166
|
function O(C) {
|
|
167
|
-
return $(C) ===
|
|
167
|
+
return $(C) === m;
|
|
168
168
|
}
|
|
169
169
|
function M(C) {
|
|
170
170
|
return $(C) === n;
|
|
171
171
|
}
|
|
172
172
|
function A(C) {
|
|
173
|
-
return $(C) ===
|
|
173
|
+
return $(C) === v;
|
|
174
174
|
}
|
|
175
175
|
function P(C) {
|
|
176
|
-
return $(C) ===
|
|
176
|
+
return $(C) === u;
|
|
177
177
|
}
|
|
178
178
|
function B(C) {
|
|
179
179
|
return $(C) === t;
|
|
180
180
|
}
|
|
181
181
|
function W(C) {
|
|
182
|
-
return $(C) ===
|
|
182
|
+
return $(C) === s;
|
|
183
183
|
}
|
|
184
184
|
function D(C) {
|
|
185
185
|
return $(C) === o;
|
|
186
186
|
}
|
|
187
187
|
function Z(C) {
|
|
188
|
-
return $(C) ===
|
|
188
|
+
return $(C) === g;
|
|
189
189
|
}
|
|
190
|
-
|
|
191
|
-
}()),
|
|
190
|
+
V.AsyncMode = b, V.ConcurrentMode = x, V.ContextConsumer = ee, V.ContextProvider = ne, V.Element = le, V.ForwardRef = de, V.Fragment = K, V.Lazy = i, V.Memo = w, V.Portal = S, V.Profiler = I, V.StrictMode = N, V.Suspense = J, V.isAsyncMode = Je, V.isConcurrentMode = y, V.isContextConsumer = T, V.isContextProvider = k, V.isElement = R, V.isForwardRef = O, V.isFragment = M, V.isLazy = A, V.isMemo = P, V.isPortal = B, V.isProfiler = W, V.isStrictMode = D, V.isSuspense = Z, V.isValidElementType = F, V.typeOf = $;
|
|
191
|
+
})()), V;
|
|
192
192
|
}
|
|
193
193
|
var vr;
|
|
194
194
|
function zr() {
|
|
195
|
-
return vr || (vr = 1, process.env.NODE_ENV === "production" ? Ne.exports = ct() : Ne.exports =
|
|
195
|
+
return vr || (vr = 1, process.env.NODE_ENV === "production" ? Ne.exports = ct() : Ne.exports = lt()), Ne.exports;
|
|
196
196
|
}
|
|
197
197
|
/*
|
|
198
198
|
object-assign
|
|
@@ -200,53 +200,53 @@ object-assign
|
|
|
200
200
|
@license MIT
|
|
201
201
|
*/
|
|
202
202
|
var Ze, Sr;
|
|
203
|
-
function
|
|
203
|
+
function ut() {
|
|
204
204
|
if (Sr) return Ze;
|
|
205
205
|
Sr = 1;
|
|
206
206
|
var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
207
|
-
function n(
|
|
208
|
-
if (
|
|
207
|
+
function n(s) {
|
|
208
|
+
if (s == null)
|
|
209
209
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
210
|
-
return Object(
|
|
210
|
+
return Object(s);
|
|
211
211
|
}
|
|
212
212
|
function o() {
|
|
213
213
|
try {
|
|
214
214
|
if (!Object.assign)
|
|
215
215
|
return !1;
|
|
216
|
-
var
|
|
217
|
-
if (
|
|
216
|
+
var s = new String("abc");
|
|
217
|
+
if (s[5] = "de", Object.getOwnPropertyNames(s)[0] === "5")
|
|
218
218
|
return !1;
|
|
219
|
-
for (var
|
|
220
|
-
|
|
221
|
-
var
|
|
222
|
-
return
|
|
219
|
+
for (var a = {}, l = 0; l < 10; l++)
|
|
220
|
+
a["_" + String.fromCharCode(l)] = l;
|
|
221
|
+
var d = Object.getOwnPropertyNames(a).map(function(m) {
|
|
222
|
+
return a[m];
|
|
223
223
|
});
|
|
224
|
-
if (
|
|
224
|
+
if (d.join("") !== "0123456789")
|
|
225
225
|
return !1;
|
|
226
|
-
var
|
|
227
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
228
|
-
|
|
229
|
-
}), Object.keys(Object.assign({},
|
|
226
|
+
var p = {};
|
|
227
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(m) {
|
|
228
|
+
p[m] = m;
|
|
229
|
+
}), Object.keys(Object.assign({}, p)).join("") === "abcdefghijklmnopqrst";
|
|
230
230
|
} catch {
|
|
231
231
|
return !1;
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
return Ze = o() ? Object.assign : function(
|
|
235
|
-
for (var
|
|
236
|
-
|
|
237
|
-
for (var
|
|
238
|
-
r.call(
|
|
234
|
+
return Ze = o() ? Object.assign : function(s, a) {
|
|
235
|
+
for (var l, d = n(s), p, m = 1; m < arguments.length; m++) {
|
|
236
|
+
l = Object(arguments[m]);
|
|
237
|
+
for (var g in l)
|
|
238
|
+
r.call(l, g) && (d[g] = l[g]);
|
|
239
239
|
if (e) {
|
|
240
|
-
|
|
241
|
-
for (var
|
|
242
|
-
t.call(
|
|
240
|
+
p = e(l);
|
|
241
|
+
for (var h = 0; h < p.length; h++)
|
|
242
|
+
t.call(l, p[h]) && (d[p[h]] = l[p[h]]);
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
|
-
return
|
|
245
|
+
return d;
|
|
246
246
|
}, Ze;
|
|
247
247
|
}
|
|
248
248
|
var er, Er;
|
|
249
|
-
function
|
|
249
|
+
function ur() {
|
|
250
250
|
if (Er) return er;
|
|
251
251
|
Er = 1;
|
|
252
252
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
@@ -263,39 +263,39 @@ function ft() {
|
|
|
263
263
|
var e = function() {
|
|
264
264
|
};
|
|
265
265
|
if (process.env.NODE_ENV !== "production") {
|
|
266
|
-
var r = /* @__PURE__ */
|
|
267
|
-
e = function(
|
|
268
|
-
var
|
|
269
|
-
typeof console < "u" && console.error(
|
|
266
|
+
var r = /* @__PURE__ */ ur(), t = {}, n = /* @__PURE__ */ qr();
|
|
267
|
+
e = function(s) {
|
|
268
|
+
var a = "Warning: " + s;
|
|
269
|
+
typeof console < "u" && console.error(a);
|
|
270
270
|
try {
|
|
271
|
-
throw new Error(
|
|
271
|
+
throw new Error(a);
|
|
272
272
|
} catch {
|
|
273
273
|
}
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
|
-
function o(
|
|
276
|
+
function o(s, a, l, d, p) {
|
|
277
277
|
if (process.env.NODE_ENV !== "production") {
|
|
278
|
-
for (var
|
|
279
|
-
if (n(
|
|
280
|
-
var
|
|
278
|
+
for (var m in s)
|
|
279
|
+
if (n(s, m)) {
|
|
280
|
+
var g;
|
|
281
281
|
try {
|
|
282
|
-
if (typeof
|
|
283
|
-
var
|
|
284
|
-
(
|
|
282
|
+
if (typeof s[m] != "function") {
|
|
283
|
+
var h = Error(
|
|
284
|
+
(d || "React class") + ": " + l + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
285
285
|
);
|
|
286
|
-
throw
|
|
286
|
+
throw h.name = "Invariant Violation", h;
|
|
287
287
|
}
|
|
288
|
-
|
|
289
|
-
} catch (
|
|
290
|
-
|
|
288
|
+
g = s[m](a, m, d, l, null, r);
|
|
289
|
+
} catch (v) {
|
|
290
|
+
g = v;
|
|
291
291
|
}
|
|
292
|
-
if (
|
|
293
|
-
(
|
|
294
|
-
),
|
|
295
|
-
t[
|
|
296
|
-
var
|
|
292
|
+
if (g && !(g instanceof Error) && e(
|
|
293
|
+
(d || "React class") + ": type specification of " + l + " `" + m + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof g + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
294
|
+
), g instanceof Error && !(g.message in t)) {
|
|
295
|
+
t[g.message] = !0;
|
|
296
|
+
var u = p ? p() : "";
|
|
297
297
|
e(
|
|
298
|
-
"Failed " +
|
|
298
|
+
"Failed " + l + " type: " + g.message + (u ?? "")
|
|
299
299
|
);
|
|
300
300
|
}
|
|
301
301
|
}
|
|
@@ -309,27 +309,27 @@ var nr, $r;
|
|
|
309
309
|
function dt() {
|
|
310
310
|
if ($r) return nr;
|
|
311
311
|
$r = 1;
|
|
312
|
-
var e = zr(), r =
|
|
312
|
+
var e = zr(), r = ut(), t = /* @__PURE__ */ ur(), n = /* @__PURE__ */ qr(), o = /* @__PURE__ */ ft(), s = function() {
|
|
313
313
|
};
|
|
314
|
-
process.env.NODE_ENV !== "production" && (
|
|
315
|
-
var
|
|
316
|
-
typeof console < "u" && console.error(
|
|
314
|
+
process.env.NODE_ENV !== "production" && (s = function(l) {
|
|
315
|
+
var d = "Warning: " + l;
|
|
316
|
+
typeof console < "u" && console.error(d);
|
|
317
317
|
try {
|
|
318
|
-
throw new Error(
|
|
318
|
+
throw new Error(d);
|
|
319
319
|
} catch {
|
|
320
320
|
}
|
|
321
321
|
});
|
|
322
|
-
function
|
|
322
|
+
function a() {
|
|
323
323
|
return null;
|
|
324
324
|
}
|
|
325
|
-
return nr = function(
|
|
326
|
-
var
|
|
327
|
-
function
|
|
328
|
-
var T =
|
|
325
|
+
return nr = function(l, d) {
|
|
326
|
+
var p = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
|
|
327
|
+
function g(y) {
|
|
328
|
+
var T = y && (p && y[p] || y[m]);
|
|
329
329
|
if (typeof T == "function")
|
|
330
330
|
return T;
|
|
331
331
|
}
|
|
332
|
-
var
|
|
332
|
+
var h = "<<anonymous>>", u = {
|
|
333
333
|
array: _("array"),
|
|
334
334
|
bigint: _("bigint"),
|
|
335
335
|
bool: _("boolean"),
|
|
@@ -341,28 +341,28 @@ function dt() {
|
|
|
341
341
|
any: j(),
|
|
342
342
|
arrayOf: F,
|
|
343
343
|
element: $(),
|
|
344
|
-
elementType:
|
|
345
|
-
instanceOf:
|
|
344
|
+
elementType: b(),
|
|
345
|
+
instanceOf: x,
|
|
346
346
|
node: de(),
|
|
347
347
|
objectOf: ne,
|
|
348
348
|
oneOf: ee,
|
|
349
|
-
oneOfType:
|
|
349
|
+
oneOfType: le,
|
|
350
350
|
shape: i,
|
|
351
|
-
exact:
|
|
351
|
+
exact: w
|
|
352
352
|
};
|
|
353
|
-
function
|
|
354
|
-
return
|
|
353
|
+
function v(y, T) {
|
|
354
|
+
return y === T ? y !== 0 || 1 / y === 1 / T : y !== y && T !== T;
|
|
355
355
|
}
|
|
356
|
-
function c(
|
|
357
|
-
this.message =
|
|
356
|
+
function c(y, T) {
|
|
357
|
+
this.message = y, this.data = T && typeof T == "object" ? T : {}, this.stack = "";
|
|
358
358
|
}
|
|
359
359
|
c.prototype = Error.prototype;
|
|
360
|
-
function E(
|
|
360
|
+
function E(y) {
|
|
361
361
|
if (process.env.NODE_ENV !== "production")
|
|
362
362
|
var T = {}, k = 0;
|
|
363
363
|
function R(M, A, P, B, W, D, Z) {
|
|
364
|
-
if (B = B ||
|
|
365
|
-
if (
|
|
364
|
+
if (B = B || h, D = D || P, Z !== t) {
|
|
365
|
+
if (d) {
|
|
366
366
|
var C = new Error(
|
|
367
367
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
368
368
|
);
|
|
@@ -370,24 +370,24 @@ function dt() {
|
|
|
370
370
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
371
371
|
var se = B + ":" + P;
|
|
372
372
|
!T[se] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
373
|
-
k < 3 && (
|
|
373
|
+
k < 3 && (s(
|
|
374
374
|
"You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + B + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
375
375
|
), T[se] = !0, k++);
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
return A[P] == null ? M ? A[P] === null ? new c("The " + W + " `" + D + "` is marked as required " + ("in `" + B + "`, but its value is `null`.")) : new c("The " + W + " `" + D + "` is marked as required in " + ("`" + B + "`, but its value is `undefined`.")) : null :
|
|
378
|
+
return A[P] == null ? M ? A[P] === null ? new c("The " + W + " `" + D + "` is marked as required " + ("in `" + B + "`, but its value is `null`.")) : new c("The " + W + " `" + D + "` is marked as required in " + ("`" + B + "`, but its value is `undefined`.")) : null : y(A, P, B, W, D);
|
|
379
379
|
}
|
|
380
380
|
var O = R.bind(null, !1);
|
|
381
381
|
return O.isRequired = R.bind(null, !0), O;
|
|
382
382
|
}
|
|
383
|
-
function _(
|
|
383
|
+
function _(y) {
|
|
384
384
|
function T(k, R, O, M, A, P) {
|
|
385
385
|
var B = k[R], W = N(B);
|
|
386
|
-
if (W !==
|
|
386
|
+
if (W !== y) {
|
|
387
387
|
var D = J(B);
|
|
388
388
|
return new c(
|
|
389
|
-
"Invalid " + M + " `" + A + "` of type " + ("`" + D + "` supplied to `" + O + "`, expected ") + ("`" +
|
|
390
|
-
{ expectedType:
|
|
389
|
+
"Invalid " + M + " `" + A + "` of type " + ("`" + D + "` supplied to `" + O + "`, expected ") + ("`" + y + "`."),
|
|
390
|
+
{ expectedType: y }
|
|
391
391
|
);
|
|
392
392
|
}
|
|
393
393
|
return null;
|
|
@@ -395,11 +395,11 @@ function dt() {
|
|
|
395
395
|
return E(T);
|
|
396
396
|
}
|
|
397
397
|
function j() {
|
|
398
|
-
return E(
|
|
398
|
+
return E(a);
|
|
399
399
|
}
|
|
400
|
-
function F(
|
|
400
|
+
function F(y) {
|
|
401
401
|
function T(k, R, O, M, A) {
|
|
402
|
-
if (typeof
|
|
402
|
+
if (typeof y != "function")
|
|
403
403
|
return new c("Property `" + A + "` of component `" + O + "` has invalid PropType notation inside arrayOf.");
|
|
404
404
|
var P = k[R];
|
|
405
405
|
if (!Array.isArray(P)) {
|
|
@@ -407,7 +407,7 @@ function dt() {
|
|
|
407
407
|
return new c("Invalid " + M + " `" + A + "` of type " + ("`" + B + "` supplied to `" + O + "`, expected an array."));
|
|
408
408
|
}
|
|
409
409
|
for (var W = 0; W < P.length; W++) {
|
|
410
|
-
var D =
|
|
410
|
+
var D = y(P, W, O, M, A + "[" + W + "]", t);
|
|
411
411
|
if (D instanceof Error)
|
|
412
412
|
return D;
|
|
413
413
|
}
|
|
@@ -416,18 +416,18 @@ function dt() {
|
|
|
416
416
|
return E(T);
|
|
417
417
|
}
|
|
418
418
|
function $() {
|
|
419
|
-
function
|
|
419
|
+
function y(T, k, R, O, M) {
|
|
420
420
|
var A = T[k];
|
|
421
|
-
if (!
|
|
421
|
+
if (!l(A)) {
|
|
422
422
|
var P = N(A);
|
|
423
423
|
return new c("Invalid " + O + " `" + M + "` of type " + ("`" + P + "` supplied to `" + R + "`, expected a single ReactElement."));
|
|
424
424
|
}
|
|
425
425
|
return null;
|
|
426
426
|
}
|
|
427
|
-
return E(
|
|
427
|
+
return E(y);
|
|
428
428
|
}
|
|
429
|
-
function
|
|
430
|
-
function
|
|
429
|
+
function b() {
|
|
430
|
+
function y(T, k, R, O, M) {
|
|
431
431
|
var A = T[k];
|
|
432
432
|
if (!e.isValidElementType(A)) {
|
|
433
433
|
var P = N(A);
|
|
@@ -435,28 +435,28 @@ function dt() {
|
|
|
435
435
|
}
|
|
436
436
|
return null;
|
|
437
437
|
}
|
|
438
|
-
return E(
|
|
438
|
+
return E(y);
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function x(y) {
|
|
441
441
|
function T(k, R, O, M, A) {
|
|
442
|
-
if (!(k[R] instanceof
|
|
443
|
-
var P =
|
|
442
|
+
if (!(k[R] instanceof y)) {
|
|
443
|
+
var P = y.name || h, B = Je(k[R]);
|
|
444
444
|
return new c("Invalid " + M + " `" + A + "` of type " + ("`" + B + "` supplied to `" + O + "`, expected ") + ("instance of `" + P + "`."));
|
|
445
445
|
}
|
|
446
446
|
return null;
|
|
447
447
|
}
|
|
448
448
|
return E(T);
|
|
449
449
|
}
|
|
450
|
-
function ee(
|
|
451
|
-
if (!Array.isArray(
|
|
452
|
-
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ?
|
|
450
|
+
function ee(y) {
|
|
451
|
+
if (!Array.isArray(y))
|
|
452
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
|
|
453
453
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
454
|
-
) :
|
|
454
|
+
) : s("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
455
455
|
function T(k, R, O, M, A) {
|
|
456
|
-
for (var P = k[R], B = 0; B <
|
|
457
|
-
if (
|
|
456
|
+
for (var P = k[R], B = 0; B < y.length; B++)
|
|
457
|
+
if (v(P, y[B]))
|
|
458
458
|
return null;
|
|
459
|
-
var W = JSON.stringify(
|
|
459
|
+
var W = JSON.stringify(y, function(Z, C) {
|
|
460
460
|
var se = J(C);
|
|
461
461
|
return se === "symbol" ? String(C) : C;
|
|
462
462
|
});
|
|
@@ -464,16 +464,16 @@ function dt() {
|
|
|
464
464
|
}
|
|
465
465
|
return E(T);
|
|
466
466
|
}
|
|
467
|
-
function ne(
|
|
467
|
+
function ne(y) {
|
|
468
468
|
function T(k, R, O, M, A) {
|
|
469
|
-
if (typeof
|
|
469
|
+
if (typeof y != "function")
|
|
470
470
|
return new c("Property `" + A + "` of component `" + O + "` has invalid PropType notation inside objectOf.");
|
|
471
471
|
var P = k[R], B = N(P);
|
|
472
472
|
if (B !== "object")
|
|
473
473
|
return new c("Invalid " + M + " `" + A + "` of type " + ("`" + B + "` supplied to `" + O + "`, expected an object."));
|
|
474
474
|
for (var W in P)
|
|
475
475
|
if (n(P, W)) {
|
|
476
|
-
var D =
|
|
476
|
+
var D = y(P, W, O, M, A + "." + W, t);
|
|
477
477
|
if (D instanceof Error)
|
|
478
478
|
return D;
|
|
479
479
|
}
|
|
@@ -481,19 +481,19 @@ function dt() {
|
|
|
481
481
|
}
|
|
482
482
|
return E(T);
|
|
483
483
|
}
|
|
484
|
-
function
|
|
485
|
-
if (!Array.isArray(
|
|
486
|
-
return process.env.NODE_ENV !== "production" &&
|
|
487
|
-
for (var T = 0; T <
|
|
488
|
-
var k =
|
|
484
|
+
function le(y) {
|
|
485
|
+
if (!Array.isArray(y))
|
|
486
|
+
return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), a;
|
|
487
|
+
for (var T = 0; T < y.length; T++) {
|
|
488
|
+
var k = y[T];
|
|
489
489
|
if (typeof k != "function")
|
|
490
|
-
return
|
|
490
|
+
return s(
|
|
491
491
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ae(k) + " at index " + T + "."
|
|
492
|
-
),
|
|
492
|
+
), a;
|
|
493
493
|
}
|
|
494
494
|
function R(O, M, A, P, B) {
|
|
495
|
-
for (var W = [], D = 0; D <
|
|
496
|
-
var Z =
|
|
495
|
+
for (var W = [], D = 0; D < y.length; D++) {
|
|
496
|
+
var Z = y[D], C = Z(O, M, A, P, B, t);
|
|
497
497
|
if (C == null)
|
|
498
498
|
return null;
|
|
499
499
|
C.data && n(C.data, "expectedType") && W.push(C.data.expectedType);
|
|
@@ -504,23 +504,23 @@ function dt() {
|
|
|
504
504
|
return E(R);
|
|
505
505
|
}
|
|
506
506
|
function de() {
|
|
507
|
-
function
|
|
508
|
-
return
|
|
507
|
+
function y(T, k, R, O, M) {
|
|
508
|
+
return S(T[k]) ? null : new c("Invalid " + O + " `" + M + "` supplied to " + ("`" + R + "`, expected a ReactNode."));
|
|
509
509
|
}
|
|
510
|
-
return E(
|
|
510
|
+
return E(y);
|
|
511
511
|
}
|
|
512
|
-
function K(
|
|
512
|
+
function K(y, T, k, R, O) {
|
|
513
513
|
return new c(
|
|
514
|
-
(
|
|
514
|
+
(y || "React class") + ": " + T + " type `" + k + "." + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + O + "`."
|
|
515
515
|
);
|
|
516
516
|
}
|
|
517
|
-
function i(
|
|
517
|
+
function i(y) {
|
|
518
518
|
function T(k, R, O, M, A) {
|
|
519
519
|
var P = k[R], B = N(P);
|
|
520
520
|
if (B !== "object")
|
|
521
521
|
return new c("Invalid " + M + " `" + A + "` of type `" + B + "` " + ("supplied to `" + O + "`, expected `object`."));
|
|
522
|
-
for (var W in
|
|
523
|
-
var D =
|
|
522
|
+
for (var W in y) {
|
|
523
|
+
var D = y[W];
|
|
524
524
|
if (typeof D != "function")
|
|
525
525
|
return K(O, M, A, W, J(D));
|
|
526
526
|
var Z = D(P, W, O, M, A + "." + W, t);
|
|
@@ -531,20 +531,20 @@ function dt() {
|
|
|
531
531
|
}
|
|
532
532
|
return E(T);
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function w(y) {
|
|
535
535
|
function T(k, R, O, M, A) {
|
|
536
536
|
var P = k[R], B = N(P);
|
|
537
537
|
if (B !== "object")
|
|
538
538
|
return new c("Invalid " + M + " `" + A + "` of type `" + B + "` " + ("supplied to `" + O + "`, expected `object`."));
|
|
539
|
-
var W = r({}, k[R],
|
|
539
|
+
var W = r({}, k[R], y);
|
|
540
540
|
for (var D in W) {
|
|
541
|
-
var Z =
|
|
542
|
-
if (n(
|
|
541
|
+
var Z = y[D];
|
|
542
|
+
if (n(y, D) && typeof Z != "function")
|
|
543
543
|
return K(O, M, A, D, J(Z));
|
|
544
544
|
if (!Z)
|
|
545
545
|
return new c(
|
|
546
546
|
"Invalid " + M + " `" + A + "` key `" + D + "` supplied to `" + O + "`.\nBad object: " + JSON.stringify(k[R], null, " ") + `
|
|
547
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
547
|
+
Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
|
|
548
548
|
);
|
|
549
549
|
var C = Z(P, D, O, M, A + "." + D, t);
|
|
550
550
|
if (C)
|
|
@@ -554,30 +554,30 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
554
554
|
}
|
|
555
555
|
return E(T);
|
|
556
556
|
}
|
|
557
|
-
function
|
|
558
|
-
switch (typeof
|
|
557
|
+
function S(y) {
|
|
558
|
+
switch (typeof y) {
|
|
559
559
|
case "number":
|
|
560
560
|
case "string":
|
|
561
561
|
case "undefined":
|
|
562
562
|
return !0;
|
|
563
563
|
case "boolean":
|
|
564
|
-
return !
|
|
564
|
+
return !y;
|
|
565
565
|
case "object":
|
|
566
|
-
if (Array.isArray(
|
|
567
|
-
return
|
|
568
|
-
if (
|
|
566
|
+
if (Array.isArray(y))
|
|
567
|
+
return y.every(S);
|
|
568
|
+
if (y === null || l(y))
|
|
569
569
|
return !0;
|
|
570
|
-
var T =
|
|
570
|
+
var T = g(y);
|
|
571
571
|
if (T) {
|
|
572
|
-
var k = T.call(
|
|
573
|
-
if (T !==
|
|
572
|
+
var k = T.call(y), R;
|
|
573
|
+
if (T !== y.entries) {
|
|
574
574
|
for (; !(R = k.next()).done; )
|
|
575
|
-
if (!
|
|
575
|
+
if (!S(R.value))
|
|
576
576
|
return !1;
|
|
577
577
|
} else
|
|
578
578
|
for (; !(R = k.next()).done; ) {
|
|
579
579
|
var O = R.value;
|
|
580
|
-
if (O && !
|
|
580
|
+
if (O && !S(O[1]))
|
|
581
581
|
return !1;
|
|
582
582
|
}
|
|
583
583
|
} else
|
|
@@ -587,27 +587,27 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
587
587
|
return !1;
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
function I(
|
|
591
|
-
return
|
|
590
|
+
function I(y, T) {
|
|
591
|
+
return y === "symbol" ? !0 : T ? T["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && T instanceof Symbol : !1;
|
|
592
592
|
}
|
|
593
|
-
function N(
|
|
594
|
-
var T = typeof
|
|
595
|
-
return Array.isArray(
|
|
593
|
+
function N(y) {
|
|
594
|
+
var T = typeof y;
|
|
595
|
+
return Array.isArray(y) ? "array" : y instanceof RegExp ? "object" : I(T, y) ? "symbol" : T;
|
|
596
596
|
}
|
|
597
|
-
function J(
|
|
598
|
-
if (typeof
|
|
599
|
-
return "" +
|
|
600
|
-
var T = N(
|
|
597
|
+
function J(y) {
|
|
598
|
+
if (typeof y > "u" || y === null)
|
|
599
|
+
return "" + y;
|
|
600
|
+
var T = N(y);
|
|
601
601
|
if (T === "object") {
|
|
602
|
-
if (
|
|
602
|
+
if (y instanceof Date)
|
|
603
603
|
return "date";
|
|
604
|
-
if (
|
|
604
|
+
if (y instanceof RegExp)
|
|
605
605
|
return "regexp";
|
|
606
606
|
}
|
|
607
607
|
return T;
|
|
608
608
|
}
|
|
609
|
-
function ae(
|
|
610
|
-
var T = J(
|
|
609
|
+
function ae(y) {
|
|
610
|
+
var T = J(y);
|
|
611
611
|
switch (T) {
|
|
612
612
|
case "array":
|
|
613
613
|
case "object":
|
|
@@ -620,35 +620,35 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
620
620
|
return T;
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
function Je(
|
|
624
|
-
return !
|
|
623
|
+
function Je(y) {
|
|
624
|
+
return !y.constructor || !y.constructor.name ? h : y.constructor.name;
|
|
625
625
|
}
|
|
626
|
-
return
|
|
626
|
+
return u.checkPropTypes = o, u.resetWarningCache = o.resetWarningCache, u.PropTypes = u, u;
|
|
627
627
|
}, nr;
|
|
628
628
|
}
|
|
629
|
-
var or,
|
|
629
|
+
var or, wr;
|
|
630
630
|
function pt() {
|
|
631
|
-
if (
|
|
632
|
-
|
|
633
|
-
var e = /* @__PURE__ */
|
|
631
|
+
if (wr) return or;
|
|
632
|
+
wr = 1;
|
|
633
|
+
var e = /* @__PURE__ */ ur();
|
|
634
634
|
function r() {
|
|
635
635
|
}
|
|
636
636
|
function t() {
|
|
637
637
|
}
|
|
638
638
|
return t.resetWarningCache = r, or = function() {
|
|
639
|
-
function n(
|
|
640
|
-
if (
|
|
641
|
-
var
|
|
639
|
+
function n(a, l, d, p, m, g) {
|
|
640
|
+
if (g !== e) {
|
|
641
|
+
var h = new Error(
|
|
642
642
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
643
643
|
);
|
|
644
|
-
throw
|
|
644
|
+
throw h.name = "Invariant Violation", h;
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
n.isRequired = n;
|
|
648
648
|
function o() {
|
|
649
649
|
return n;
|
|
650
650
|
}
|
|
651
|
-
var
|
|
651
|
+
var s = {
|
|
652
652
|
array: n,
|
|
653
653
|
bigint: n,
|
|
654
654
|
bool: n,
|
|
@@ -671,13 +671,13 @@ function pt() {
|
|
|
671
671
|
checkPropTypes: t,
|
|
672
672
|
resetWarningCache: r
|
|
673
673
|
};
|
|
674
|
-
return
|
|
674
|
+
return s.PropTypes = s, s;
|
|
675
675
|
}, or;
|
|
676
676
|
}
|
|
677
|
-
var
|
|
677
|
+
var xr;
|
|
678
678
|
function mt() {
|
|
679
|
-
if (
|
|
680
|
-
if (
|
|
679
|
+
if (xr) return Ie.exports;
|
|
680
|
+
if (xr = 1, process.env.NODE_ENV !== "production") {
|
|
681
681
|
var e = zr(), r = !0;
|
|
682
682
|
Ie.exports = /* @__PURE__ */ dt()(e.isElement, r);
|
|
683
683
|
} else
|
|
@@ -700,8 +700,8 @@ var Or;
|
|
|
700
700
|
function ht() {
|
|
701
701
|
if (Or) return z;
|
|
702
702
|
Or = 1;
|
|
703
|
-
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"),
|
|
704
|
-
function
|
|
703
|
+
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), h = Symbol.for("react.view_transition"), u = Symbol.for("react.client.reference");
|
|
704
|
+
function v(c) {
|
|
705
705
|
if (typeof c == "object" && c !== null) {
|
|
706
706
|
var E = c.$$typeof;
|
|
707
707
|
switch (E) {
|
|
@@ -710,18 +710,18 @@ function ht() {
|
|
|
710
710
|
case t:
|
|
711
711
|
case o:
|
|
712
712
|
case n:
|
|
713
|
-
case f:
|
|
714
713
|
case d:
|
|
715
|
-
case
|
|
714
|
+
case p:
|
|
715
|
+
case h:
|
|
716
716
|
return c;
|
|
717
717
|
default:
|
|
718
718
|
switch (c = c && c.$$typeof, c) {
|
|
719
|
-
case
|
|
720
|
-
case
|
|
719
|
+
case a:
|
|
720
|
+
case l:
|
|
721
|
+
case g:
|
|
721
722
|
case m:
|
|
722
|
-
case p:
|
|
723
723
|
return c;
|
|
724
|
-
case
|
|
724
|
+
case s:
|
|
725
725
|
return c;
|
|
726
726
|
default:
|
|
727
727
|
return E;
|
|
@@ -732,33 +732,33 @@ function ht() {
|
|
|
732
732
|
}
|
|
733
733
|
}
|
|
734
734
|
}
|
|
735
|
-
return z.ContextConsumer =
|
|
736
|
-
return
|
|
735
|
+
return z.ContextConsumer = s, z.ContextProvider = a, z.Element = e, z.ForwardRef = l, z.Fragment = t, z.Lazy = g, z.Memo = m, z.Portal = r, z.Profiler = o, z.StrictMode = n, z.Suspense = d, z.SuspenseList = p, z.isContextConsumer = function(c) {
|
|
736
|
+
return v(c) === s;
|
|
737
737
|
}, z.isContextProvider = function(c) {
|
|
738
|
-
return
|
|
738
|
+
return v(c) === a;
|
|
739
739
|
}, z.isElement = function(c) {
|
|
740
740
|
return typeof c == "object" && c !== null && c.$$typeof === e;
|
|
741
741
|
}, z.isForwardRef = function(c) {
|
|
742
|
-
return
|
|
742
|
+
return v(c) === l;
|
|
743
743
|
}, z.isFragment = function(c) {
|
|
744
|
-
return
|
|
744
|
+
return v(c) === t;
|
|
745
745
|
}, z.isLazy = function(c) {
|
|
746
|
-
return
|
|
746
|
+
return v(c) === g;
|
|
747
747
|
}, z.isMemo = function(c) {
|
|
748
|
-
return
|
|
748
|
+
return v(c) === m;
|
|
749
749
|
}, z.isPortal = function(c) {
|
|
750
|
-
return
|
|
750
|
+
return v(c) === r;
|
|
751
751
|
}, z.isProfiler = function(c) {
|
|
752
|
-
return
|
|
752
|
+
return v(c) === o;
|
|
753
753
|
}, z.isStrictMode = function(c) {
|
|
754
|
-
return
|
|
754
|
+
return v(c) === n;
|
|
755
755
|
}, z.isSuspense = function(c) {
|
|
756
|
-
return
|
|
756
|
+
return v(c) === d;
|
|
757
757
|
}, z.isSuspenseList = function(c) {
|
|
758
|
-
return
|
|
758
|
+
return v(c) === p;
|
|
759
759
|
}, z.isValidElementType = function(c) {
|
|
760
|
-
return typeof c == "string" || typeof c == "function" || c === t || c === o || c === n || c ===
|
|
761
|
-
}, z.typeOf =
|
|
760
|
+
return typeof c == "string" || typeof c == "function" || c === t || c === o || c === n || c === d || c === p || typeof c == "object" && c !== null && (c.$$typeof === g || c.$$typeof === m || c.$$typeof === a || c.$$typeof === s || c.$$typeof === l || c.$$typeof === u || c.getModuleId !== void 0);
|
|
761
|
+
}, z.typeOf = v, z;
|
|
762
762
|
}
|
|
763
763
|
var q = {};
|
|
764
764
|
/**
|
|
@@ -772,7 +772,7 @@ var q = {};
|
|
|
772
772
|
*/
|
|
773
773
|
var _r;
|
|
774
774
|
function yt() {
|
|
775
|
-
return _r || (_r = 1, process.env.NODE_ENV !== "production" && function() {
|
|
775
|
+
return _r || (_r = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
776
776
|
function e(c) {
|
|
777
777
|
if (typeof c == "object" && c !== null) {
|
|
778
778
|
var E = c.$$typeof;
|
|
@@ -780,20 +780,20 @@ function yt() {
|
|
|
780
780
|
case r:
|
|
781
781
|
switch (c = c.type, c) {
|
|
782
782
|
case n:
|
|
783
|
-
case
|
|
783
|
+
case s:
|
|
784
784
|
case o:
|
|
785
|
-
case d:
|
|
786
785
|
case p:
|
|
787
|
-
case
|
|
786
|
+
case m:
|
|
787
|
+
case u:
|
|
788
788
|
return c;
|
|
789
789
|
default:
|
|
790
790
|
switch (c = c && c.$$typeof, c) {
|
|
791
|
-
case
|
|
792
|
-
case
|
|
791
|
+
case l:
|
|
792
|
+
case d:
|
|
793
|
+
case h:
|
|
793
794
|
case g:
|
|
794
|
-
case m:
|
|
795
795
|
return c;
|
|
796
|
-
case
|
|
796
|
+
case a:
|
|
797
797
|
return c;
|
|
798
798
|
default:
|
|
799
799
|
return E;
|
|
@@ -804,35 +804,35 @@ function yt() {
|
|
|
804
804
|
}
|
|
805
805
|
}
|
|
806
806
|
}
|
|
807
|
-
var r = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"),
|
|
808
|
-
q.ContextConsumer =
|
|
809
|
-
return e(c) ===
|
|
807
|
+
var r = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), u = Symbol.for("react.view_transition"), v = Symbol.for("react.client.reference");
|
|
808
|
+
q.ContextConsumer = a, q.ContextProvider = l, q.Element = r, q.ForwardRef = d, q.Fragment = n, q.Lazy = h, q.Memo = g, q.Portal = t, q.Profiler = s, q.StrictMode = o, q.Suspense = p, q.SuspenseList = m, q.isContextConsumer = function(c) {
|
|
809
|
+
return e(c) === a;
|
|
810
810
|
}, q.isContextProvider = function(c) {
|
|
811
|
-
return e(c) ===
|
|
811
|
+
return e(c) === l;
|
|
812
812
|
}, q.isElement = function(c) {
|
|
813
813
|
return typeof c == "object" && c !== null && c.$$typeof === r;
|
|
814
814
|
}, q.isForwardRef = function(c) {
|
|
815
|
-
return e(c) ===
|
|
815
|
+
return e(c) === d;
|
|
816
816
|
}, q.isFragment = function(c) {
|
|
817
817
|
return e(c) === n;
|
|
818
818
|
}, q.isLazy = function(c) {
|
|
819
|
-
return e(c) ===
|
|
819
|
+
return e(c) === h;
|
|
820
820
|
}, q.isMemo = function(c) {
|
|
821
|
-
return e(c) ===
|
|
821
|
+
return e(c) === g;
|
|
822
822
|
}, q.isPortal = function(c) {
|
|
823
823
|
return e(c) === t;
|
|
824
824
|
}, q.isProfiler = function(c) {
|
|
825
|
-
return e(c) ===
|
|
825
|
+
return e(c) === s;
|
|
826
826
|
}, q.isStrictMode = function(c) {
|
|
827
827
|
return e(c) === o;
|
|
828
828
|
}, q.isSuspense = function(c) {
|
|
829
|
-
return e(c) === d;
|
|
830
|
-
}, q.isSuspenseList = function(c) {
|
|
831
829
|
return e(c) === p;
|
|
830
|
+
}, q.isSuspenseList = function(c) {
|
|
831
|
+
return e(c) === m;
|
|
832
832
|
}, q.isValidElementType = function(c) {
|
|
833
|
-
return typeof c == "string" || typeof c == "function" || c === n || c ===
|
|
833
|
+
return typeof c == "string" || typeof c == "function" || c === n || c === s || c === o || c === p || c === m || typeof c == "object" && c !== null && (c.$$typeof === h || c.$$typeof === g || c.$$typeof === l || c.$$typeof === a || c.$$typeof === d || c.$$typeof === v || c.getModuleId !== void 0);
|
|
834
834
|
}, q.typeOf = e;
|
|
835
|
-
}()), q;
|
|
835
|
+
})()), q;
|
|
836
836
|
}
|
|
837
837
|
var Ar;
|
|
838
838
|
function bt() {
|
|
@@ -870,18 +870,18 @@ function _e(e, r) {
|
|
|
870
870
|
// No need to clone deep, it's way faster.
|
|
871
871
|
}) : e;
|
|
872
872
|
}
|
|
873
|
-
const
|
|
873
|
+
const ge = process.env.NODE_ENV !== "production" ? $e.oneOfType([$e.number, $e.string, $e.object, $e.array]) : {};
|
|
874
874
|
function Rr(e, r) {
|
|
875
875
|
if (!e.containerQueries)
|
|
876
876
|
return r;
|
|
877
877
|
const t = Object.keys(r).filter((n) => n.startsWith("@container")).sort((n, o) => {
|
|
878
|
-
var
|
|
879
|
-
const
|
|
880
|
-
return +(((
|
|
878
|
+
var a, l;
|
|
879
|
+
const s = /min-width:\s*([0-9.]+)/;
|
|
880
|
+
return +(((a = n.match(s)) == null ? void 0 : a[1]) || 0) - +(((l = o.match(s)) == null ? void 0 : l[1]) || 0);
|
|
881
881
|
});
|
|
882
882
|
return t.length ? t.reduce((n, o) => {
|
|
883
|
-
const
|
|
884
|
-
return delete n[o], n[o] =
|
|
883
|
+
const s = r[o];
|
|
884
|
+
return delete n[o], n[o] = s, n;
|
|
885
885
|
}, {
|
|
886
886
|
...r
|
|
887
887
|
}) : r;
|
|
@@ -893,22 +893,25 @@ function St(e, r) {
|
|
|
893
893
|
const t = r.match(/^@([^/]+)?\/?(.+)?$/);
|
|
894
894
|
if (!t) {
|
|
895
895
|
if (process.env.NODE_ENV !== "production")
|
|
896
|
-
throw
|
|
897
|
-
|
|
896
|
+
throw (
|
|
897
|
+
/* minify-error */
|
|
898
|
+
new Error(`MUI: The provided shorthand ${`(${r})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
899
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`)
|
|
900
|
+
);
|
|
898
901
|
return null;
|
|
899
902
|
}
|
|
900
|
-
const [, n, o] = t,
|
|
901
|
-
return e.containerQueries(o).up(
|
|
903
|
+
const [, n, o] = t, s = Number.isNaN(+n) ? n || 0 : +n;
|
|
904
|
+
return e.containerQueries(o).up(s);
|
|
902
905
|
}
|
|
903
906
|
function Et(e) {
|
|
904
|
-
const r = (
|
|
905
|
-
function t(
|
|
906
|
-
|
|
907
|
-
const
|
|
908
|
-
return
|
|
907
|
+
const r = (s, a) => s.replace("@media", a ? `@container ${a}` : "@container");
|
|
908
|
+
function t(s, a) {
|
|
909
|
+
s.up = (...l) => r(e.breakpoints.up(...l), a), s.down = (...l) => r(e.breakpoints.down(...l), a), s.between = (...l) => r(e.breakpoints.between(...l), a), s.only = (...l) => r(e.breakpoints.only(...l), a), s.not = (...l) => {
|
|
910
|
+
const d = r(e.breakpoints.not(...l), a);
|
|
911
|
+
return d.includes("not all and") ? d.replace("not all and ", "").replace("min-width:", "width<").replace("max-width:", "width>").replace("and", "or") : d;
|
|
909
912
|
};
|
|
910
913
|
}
|
|
911
|
-
const n = {}, o = (
|
|
914
|
+
const n = {}, o = (s) => (t(n, s), n);
|
|
912
915
|
return t(o), {
|
|
913
916
|
...e,
|
|
914
917
|
containerQueries: o
|
|
@@ -941,23 +944,23 @@ const je = {
|
|
|
941
944
|
function fe(e, r, t) {
|
|
942
945
|
const n = e.theme || {};
|
|
943
946
|
if (Array.isArray(r)) {
|
|
944
|
-
const
|
|
945
|
-
return r.reduce((
|
|
947
|
+
const s = n.breakpoints || Pr;
|
|
948
|
+
return r.reduce((a, l, d) => (a[s.up(s.keys[d])] = t(r[d]), a), {});
|
|
946
949
|
}
|
|
947
950
|
if (typeof r == "object") {
|
|
948
|
-
const
|
|
949
|
-
return Object.keys(r).reduce((
|
|
950
|
-
if (vt(
|
|
951
|
-
const
|
|
952
|
-
|
|
953
|
-
} else if (Object.keys(
|
|
954
|
-
const
|
|
955
|
-
|
|
951
|
+
const s = n.breakpoints || Pr;
|
|
952
|
+
return Object.keys(r).reduce((a, l) => {
|
|
953
|
+
if (vt(s.keys, l)) {
|
|
954
|
+
const d = St(n.containerQueries ? n : Ct, l);
|
|
955
|
+
d && (a[d] = t(r[l], l));
|
|
956
|
+
} else if (Object.keys(s.values || je).includes(l)) {
|
|
957
|
+
const d = s.up(l);
|
|
958
|
+
a[d] = t(r[l], l);
|
|
956
959
|
} else {
|
|
957
|
-
const
|
|
958
|
-
|
|
960
|
+
const d = l;
|
|
961
|
+
a[d] = r[d];
|
|
959
962
|
}
|
|
960
|
-
return
|
|
963
|
+
return a;
|
|
961
964
|
}, {});
|
|
962
965
|
}
|
|
963
966
|
return t(r);
|
|
@@ -965,8 +968,8 @@ function fe(e, r, t) {
|
|
|
965
968
|
function Tt(e = {}) {
|
|
966
969
|
var t;
|
|
967
970
|
return ((t = e.keys) == null ? void 0 : t.reduce((n, o) => {
|
|
968
|
-
const
|
|
969
|
-
return n[
|
|
971
|
+
const s = e.up(o);
|
|
972
|
+
return n[s] = {}, n;
|
|
970
973
|
}, {})) || {};
|
|
971
974
|
}
|
|
972
975
|
function kr(e, r) {
|
|
@@ -979,7 +982,7 @@ function Fe(e, r, t = !0) {
|
|
|
979
982
|
if (!r || typeof r != "string")
|
|
980
983
|
return null;
|
|
981
984
|
if (e && e.vars && t) {
|
|
982
|
-
const n = `vars.${r}`.split(".").reduce((o,
|
|
985
|
+
const n = `vars.${r}`.split(".").reduce((o, s) => o && o[s] ? o[s] : null, e);
|
|
983
986
|
if (n != null)
|
|
984
987
|
return n;
|
|
985
988
|
}
|
|
@@ -995,29 +998,29 @@ function X(e) {
|
|
|
995
998
|
cssProperty: t = e.prop,
|
|
996
999
|
themeKey: n,
|
|
997
1000
|
transform: o
|
|
998
|
-
} = e,
|
|
999
|
-
if (
|
|
1001
|
+
} = e, s = (a) => {
|
|
1002
|
+
if (a[r] == null)
|
|
1000
1003
|
return null;
|
|
1001
|
-
const
|
|
1002
|
-
return fe(
|
|
1003
|
-
let
|
|
1004
|
-
return
|
|
1005
|
-
[t]:
|
|
1004
|
+
const l = a[r], d = a.theme, p = Fe(d, n) || {};
|
|
1005
|
+
return fe(a, l, (g) => {
|
|
1006
|
+
let h = De(p, o, g);
|
|
1007
|
+
return g === h && typeof g == "string" && (h = De(p, o, `${r}${g === "default" ? "" : Ur(g)}`, g)), t === !1 ? h : {
|
|
1008
|
+
[t]: h
|
|
1006
1009
|
};
|
|
1007
1010
|
});
|
|
1008
1011
|
};
|
|
1009
|
-
return
|
|
1010
|
-
[r]:
|
|
1011
|
-
} : {},
|
|
1012
|
+
return s.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1013
|
+
[r]: ge
|
|
1014
|
+
} : {}, s.filterProps = [r], s;
|
|
1012
1015
|
}
|
|
1013
1016
|
function $t(e) {
|
|
1014
1017
|
const r = {};
|
|
1015
1018
|
return (t) => (r[t] === void 0 && (r[t] = e(t)), r[t]);
|
|
1016
1019
|
}
|
|
1017
|
-
const
|
|
1020
|
+
const wt = {
|
|
1018
1021
|
m: "margin",
|
|
1019
1022
|
p: "padding"
|
|
1020
|
-
},
|
|
1023
|
+
}, xt = {
|
|
1021
1024
|
t: "Top",
|
|
1022
1025
|
r: "Right",
|
|
1023
1026
|
b: "Bottom",
|
|
@@ -1035,20 +1038,20 @@ const xt = {
|
|
|
1035
1038
|
e = Ir[e];
|
|
1036
1039
|
else
|
|
1037
1040
|
return [e];
|
|
1038
|
-
const [r, t] = e.split(""), n =
|
|
1039
|
-
return Array.isArray(o) ? o.map((
|
|
1040
|
-
}),
|
|
1041
|
+
const [r, t] = e.split(""), n = wt[r], o = xt[t] || "";
|
|
1042
|
+
return Array.isArray(o) ? o.map((s) => n + s) : [n + o];
|
|
1043
|
+
}), Le = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], Ve = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], _t = [...Le, ...Ve];
|
|
1041
1044
|
function Re(e, r, t, n) {
|
|
1042
1045
|
const o = Fe(e, r, !0) ?? t;
|
|
1043
|
-
return typeof o == "number" || typeof o == "string" ? (
|
|
1044
|
-
if (typeof
|
|
1045
|
-
return
|
|
1046
|
-
const
|
|
1047
|
-
process.env.NODE_ENV !== "production" && (Number.isInteger(
|
|
1046
|
+
return typeof o == "number" || typeof o == "string" ? (s) => typeof s == "string" ? s : (process.env.NODE_ENV !== "production" && typeof s != "number" && console.error(`MUI: Expected ${n} argument to be a number or a string, got ${s}.`), typeof o == "string" ? o.startsWith("var(") && s === 0 ? 0 : o.startsWith("var(") && s === 1 ? o : `calc(${s} * ${o})` : o * s) : Array.isArray(o) ? (s) => {
|
|
1047
|
+
if (typeof s == "string")
|
|
1048
|
+
return s;
|
|
1049
|
+
const a = Math.abs(s);
|
|
1050
|
+
process.env.NODE_ENV !== "production" && (Number.isInteger(a) ? a > o.length - 1 && console.error([`MUI: The value provided (${a}) overflows.`, `The supported values are: ${JSON.stringify(o)}.`, `${a} > ${o.length - 1}, you need to add the missing values.`].join(`
|
|
1048
1051
|
`)) : console.error([`MUI: The \`theme.${r}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${r}\` as a number.`].join(`
|
|
1049
1052
|
`)));
|
|
1050
|
-
const
|
|
1051
|
-
return
|
|
1053
|
+
const l = o[a];
|
|
1054
|
+
return s >= 0 ? l : typeof l == "number" ? -l : typeof l == "string" && l.startsWith("var(") ? `calc(-1 * ${l})` : `-${l}`;
|
|
1052
1055
|
} : typeof o == "function" ? o : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${r}\` value (${o}) is invalid.`, "It should be a number, an array or a function."].join(`
|
|
1053
1056
|
`)), () => {
|
|
1054
1057
|
});
|
|
@@ -1065,28 +1068,28 @@ function At(e, r) {
|
|
|
1065
1068
|
function Rt(e, r, t, n) {
|
|
1066
1069
|
if (!r.includes(t))
|
|
1067
1070
|
return null;
|
|
1068
|
-
const o = Ot(t),
|
|
1069
|
-
return fe(e,
|
|
1071
|
+
const o = Ot(t), s = At(o, n), a = e[t];
|
|
1072
|
+
return fe(e, a, s);
|
|
1070
1073
|
}
|
|
1071
1074
|
function Hr(e, r) {
|
|
1072
1075
|
const t = fr(e.theme);
|
|
1073
1076
|
return Object.keys(e).map((n) => Rt(e, r, n, t)).reduce(_e, {});
|
|
1074
1077
|
}
|
|
1075
1078
|
function H(e) {
|
|
1076
|
-
return Hr(e,
|
|
1079
|
+
return Hr(e, Le);
|
|
1077
1080
|
}
|
|
1078
|
-
H.propTypes = process.env.NODE_ENV !== "production" ?
|
|
1079
|
-
H.filterProps =
|
|
1081
|
+
H.propTypes = process.env.NODE_ENV !== "production" ? Le.reduce((e, r) => (e[r] = ge, e), {}) : {};
|
|
1082
|
+
H.filterProps = Le;
|
|
1080
1083
|
function Q(e) {
|
|
1081
|
-
return Hr(e,
|
|
1084
|
+
return Hr(e, Ve);
|
|
1082
1085
|
}
|
|
1083
|
-
Q.propTypes = process.env.NODE_ENV !== "production" ?
|
|
1084
|
-
Q.filterProps =
|
|
1085
|
-
process.env.NODE_ENV !== "production" && _t.reduce((e, r) => (e[r] =
|
|
1086
|
+
Q.propTypes = process.env.NODE_ENV !== "production" ? Ve.reduce((e, r) => (e[r] = ge, e), {}) : {};
|
|
1087
|
+
Q.filterProps = Ve;
|
|
1088
|
+
process.env.NODE_ENV !== "production" && _t.reduce((e, r) => (e[r] = ge, e), {});
|
|
1086
1089
|
function We(...e) {
|
|
1087
|
-
const r = e.reduce((n, o) => (o.filterProps.forEach((
|
|
1088
|
-
n[
|
|
1089
|
-
}), n), {}), t = (n) => Object.keys(n).reduce((o,
|
|
1090
|
+
const r = e.reduce((n, o) => (o.filterProps.forEach((s) => {
|
|
1091
|
+
n[s] = o;
|
|
1092
|
+
}), n), {}), t = (n) => Object.keys(n).reduce((o, s) => r[s] ? _e(o, r[s](n)) : o, {});
|
|
1090
1093
|
return t.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((n, o) => Object.assign(n, o.propTypes), {}) : {}, t.filterProps = e.reduce((n, o) => n.concat(o.filterProps), []), t;
|
|
1091
1094
|
}
|
|
1092
1095
|
function oe(e) {
|
|
@@ -1099,7 +1102,7 @@ function ie(e, r) {
|
|
|
1099
1102
|
transform: r
|
|
1100
1103
|
});
|
|
1101
1104
|
}
|
|
1102
|
-
const Pt = ie("border", oe), kt = ie("borderTop", oe), It = ie("borderRight", oe), Nt = ie("borderBottom", oe), Mt = ie("borderLeft", oe), Bt = ie("borderColor"), Dt = ie("borderTopColor"), jt = ie("borderRightColor"), Ft = ie("borderBottomColor"),
|
|
1105
|
+
const Pt = ie("border", oe), kt = ie("borderTop", oe), It = ie("borderRight", oe), Nt = ie("borderBottom", oe), Mt = ie("borderLeft", oe), Bt = ie("borderColor"), Dt = ie("borderTopColor"), jt = ie("borderRightColor"), Ft = ie("borderBottomColor"), Lt = ie("borderLeftColor"), Vt = ie("outline", oe), Wt = ie("outlineColor"), Ye = (e) => {
|
|
1103
1106
|
if (e.borderRadius !== void 0 && e.borderRadius !== null) {
|
|
1104
1107
|
const r = Re(e.theme, "shape.borderRadius", 4, "borderRadius"), t = (n) => ({
|
|
1105
1108
|
borderRadius: Pe(r, n)
|
|
@@ -1109,10 +1112,10 @@ const Pt = ie("border", oe), kt = ie("borderTop", oe), It = ie("borderRight", oe
|
|
|
1109
1112
|
return null;
|
|
1110
1113
|
};
|
|
1111
1114
|
Ye.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1112
|
-
borderRadius:
|
|
1115
|
+
borderRadius: ge
|
|
1113
1116
|
} : {};
|
|
1114
1117
|
Ye.filterProps = ["borderRadius"];
|
|
1115
|
-
We(Pt, kt, It, Nt, Mt, Bt, Dt, jt, Ft,
|
|
1118
|
+
We(Pt, kt, It, Nt, Mt, Bt, Dt, jt, Ft, Lt, Ye, Vt, Wt);
|
|
1116
1119
|
const Ue = (e) => {
|
|
1117
1120
|
if (e.gap !== void 0 && e.gap !== null) {
|
|
1118
1121
|
const r = Re(e.theme, "spacing", 8, "gap"), t = (n) => ({
|
|
@@ -1123,7 +1126,7 @@ const Ue = (e) => {
|
|
|
1123
1126
|
return null;
|
|
1124
1127
|
};
|
|
1125
1128
|
Ue.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1126
|
-
gap:
|
|
1129
|
+
gap: ge
|
|
1127
1130
|
} : {};
|
|
1128
1131
|
Ue.filterProps = ["gap"];
|
|
1129
1132
|
const ze = (e) => {
|
|
@@ -1136,7 +1139,7 @@ const ze = (e) => {
|
|
|
1136
1139
|
return null;
|
|
1137
1140
|
};
|
|
1138
1141
|
ze.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1139
|
-
columnGap:
|
|
1142
|
+
columnGap: ge
|
|
1140
1143
|
} : {};
|
|
1141
1144
|
ze.filterProps = ["columnGap"];
|
|
1142
1145
|
const qe = (e) => {
|
|
@@ -1149,7 +1152,7 @@ const qe = (e) => {
|
|
|
1149
1152
|
return null;
|
|
1150
1153
|
};
|
|
1151
1154
|
qe.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1152
|
-
rowGap:
|
|
1155
|
+
rowGap: ge
|
|
1153
1156
|
} : {};
|
|
1154
1157
|
qe.filterProps = ["rowGap"];
|
|
1155
1158
|
const Yt = X({
|
|
@@ -1199,9 +1202,9 @@ const rn = X({
|
|
|
1199
1202
|
}), dr = (e) => {
|
|
1200
1203
|
if (e.maxWidth !== void 0 && e.maxWidth !== null) {
|
|
1201
1204
|
const r = (t) => {
|
|
1202
|
-
var o,
|
|
1203
|
-
const n = ((
|
|
1204
|
-
return n ? ((
|
|
1205
|
+
var o, s, a, l, d;
|
|
1206
|
+
const n = ((a = (s = (o = e.theme) == null ? void 0 : o.breakpoints) == null ? void 0 : s.values) == null ? void 0 : a[t]) || je[t];
|
|
1207
|
+
return n ? ((d = (l = e.theme) == null ? void 0 : l.breakpoints) == null ? void 0 : d.unit) !== "px" ? {
|
|
1205
1208
|
maxWidth: `${n}${e.theme.breakpoints.unit}`
|
|
1206
1209
|
} : {
|
|
1207
1210
|
maxWidth: n
|
|
@@ -1533,36 +1536,36 @@ function cn(...e) {
|
|
|
1533
1536
|
const r = e.reduce((n, o) => n.concat(Object.keys(o)), []), t = new Set(r);
|
|
1534
1537
|
return e.every((n) => t.size === Object.keys(n).length);
|
|
1535
1538
|
}
|
|
1536
|
-
function
|
|
1539
|
+
function ln(e, r) {
|
|
1537
1540
|
return typeof e == "function" ? e(r) : e;
|
|
1538
1541
|
}
|
|
1539
|
-
function
|
|
1540
|
-
function e(t, n, o,
|
|
1541
|
-
const
|
|
1542
|
+
function un() {
|
|
1543
|
+
function e(t, n, o, s) {
|
|
1544
|
+
const a = {
|
|
1542
1545
|
[t]: n,
|
|
1543
1546
|
theme: o
|
|
1544
|
-
},
|
|
1545
|
-
if (!
|
|
1547
|
+
}, l = s[t];
|
|
1548
|
+
if (!l)
|
|
1546
1549
|
return {
|
|
1547
1550
|
[t]: n
|
|
1548
1551
|
};
|
|
1549
1552
|
const {
|
|
1550
|
-
cssProperty:
|
|
1551
|
-
themeKey:
|
|
1552
|
-
transform:
|
|
1553
|
-
style:
|
|
1554
|
-
} =
|
|
1553
|
+
cssProperty: d = t,
|
|
1554
|
+
themeKey: p,
|
|
1555
|
+
transform: m,
|
|
1556
|
+
style: g
|
|
1557
|
+
} = l;
|
|
1555
1558
|
if (n == null)
|
|
1556
1559
|
return null;
|
|
1557
|
-
if (
|
|
1560
|
+
if (p === "typography" && n === "inherit")
|
|
1558
1561
|
return {
|
|
1559
1562
|
[t]: n
|
|
1560
1563
|
};
|
|
1561
|
-
const
|
|
1562
|
-
return
|
|
1563
|
-
let c = De(
|
|
1564
|
-
return
|
|
1565
|
-
[
|
|
1564
|
+
const h = Fe(o, p) || {};
|
|
1565
|
+
return g ? g(a) : fe(a, n, (v) => {
|
|
1566
|
+
let c = De(h, m, v);
|
|
1567
|
+
return v === c && typeof v == "string" && (c = De(h, m, `${t}${v === "default" ? "" : Ur(v)}`, v)), d === !1 ? c : {
|
|
1568
|
+
[d]: c
|
|
1566
1569
|
};
|
|
1567
1570
|
});
|
|
1568
1571
|
}
|
|
@@ -1570,50 +1573,50 @@ function ln() {
|
|
|
1570
1573
|
const {
|
|
1571
1574
|
sx: n,
|
|
1572
1575
|
theme: o = {},
|
|
1573
|
-
nested:
|
|
1576
|
+
nested: s
|
|
1574
1577
|
} = t || {};
|
|
1575
1578
|
if (!n)
|
|
1576
1579
|
return null;
|
|
1577
|
-
const
|
|
1578
|
-
function
|
|
1579
|
-
let
|
|
1580
|
-
if (typeof
|
|
1581
|
-
|
|
1582
|
-
else if (typeof
|
|
1583
|
-
return
|
|
1584
|
-
if (!
|
|
1580
|
+
const a = o.unstable_sxConfig ?? Ge;
|
|
1581
|
+
function l(d) {
|
|
1582
|
+
let p = d;
|
|
1583
|
+
if (typeof d == "function")
|
|
1584
|
+
p = d(o);
|
|
1585
|
+
else if (typeof d != "object")
|
|
1586
|
+
return d;
|
|
1587
|
+
if (!p)
|
|
1585
1588
|
return null;
|
|
1586
|
-
const
|
|
1587
|
-
let
|
|
1588
|
-
return Object.keys(
|
|
1589
|
-
const
|
|
1590
|
-
if (
|
|
1591
|
-
if (typeof
|
|
1592
|
-
if (
|
|
1593
|
-
|
|
1589
|
+
const m = Tt(o.breakpoints), g = Object.keys(m);
|
|
1590
|
+
let h = m;
|
|
1591
|
+
return Object.keys(p).forEach((u) => {
|
|
1592
|
+
const v = ln(p[u], o);
|
|
1593
|
+
if (v != null)
|
|
1594
|
+
if (typeof v == "object")
|
|
1595
|
+
if (a[u])
|
|
1596
|
+
h = _e(h, e(u, v, o, a));
|
|
1594
1597
|
else {
|
|
1595
1598
|
const c = fe({
|
|
1596
1599
|
theme: o
|
|
1597
|
-
},
|
|
1598
|
-
[
|
|
1600
|
+
}, v, (E) => ({
|
|
1601
|
+
[u]: E
|
|
1599
1602
|
}));
|
|
1600
|
-
cn(c,
|
|
1601
|
-
sx:
|
|
1603
|
+
cn(c, v) ? h[u] = r({
|
|
1604
|
+
sx: v,
|
|
1602
1605
|
theme: o,
|
|
1603
1606
|
nested: !0
|
|
1604
|
-
}) :
|
|
1607
|
+
}) : h = _e(h, c);
|
|
1605
1608
|
}
|
|
1606
1609
|
else
|
|
1607
|
-
|
|
1608
|
-
}), !
|
|
1609
|
-
"@layer sx": Rr(o, kr(
|
|
1610
|
-
} : Rr(o, kr(
|
|
1610
|
+
h = _e(h, e(u, v, o, a));
|
|
1611
|
+
}), !s && o.modularCssLayers ? {
|
|
1612
|
+
"@layer sx": Rr(o, kr(g, h))
|
|
1613
|
+
} : Rr(o, kr(g, h));
|
|
1611
1614
|
}
|
|
1612
|
-
return Array.isArray(n) ? n.map(
|
|
1615
|
+
return Array.isArray(n) ? n.map(l) : l(n);
|
|
1613
1616
|
}
|
|
1614
1617
|
return r;
|
|
1615
1618
|
}
|
|
1616
|
-
const Ke =
|
|
1619
|
+
const Ke = un();
|
|
1617
1620
|
Ke.filterProps = ["sx"];
|
|
1618
1621
|
const fn = (e) => {
|
|
1619
1622
|
const r = Object.keys(e).map((t) => ({
|
|
@@ -1644,32 +1647,32 @@ function dn(e) {
|
|
|
1644
1647
|
unit: t = "px",
|
|
1645
1648
|
step: n = 5,
|
|
1646
1649
|
...o
|
|
1647
|
-
} = e,
|
|
1648
|
-
function
|
|
1649
|
-
return `@media (min-width:${typeof r[
|
|
1650
|
+
} = e, s = fn(r), a = Object.keys(s);
|
|
1651
|
+
function l(h) {
|
|
1652
|
+
return `@media (min-width:${typeof r[h] == "number" ? r[h] : h}${t})`;
|
|
1650
1653
|
}
|
|
1651
|
-
function
|
|
1652
|
-
return `@media (max-width:${(typeof r[
|
|
1654
|
+
function d(h) {
|
|
1655
|
+
return `@media (max-width:${(typeof r[h] == "number" ? r[h] : h) - n / 100}${t})`;
|
|
1653
1656
|
}
|
|
1654
|
-
function
|
|
1655
|
-
const
|
|
1656
|
-
return `@media (min-width:${typeof r[
|
|
1657
|
+
function p(h, u) {
|
|
1658
|
+
const v = a.indexOf(u);
|
|
1659
|
+
return `@media (min-width:${typeof r[h] == "number" ? r[h] : h}${t}) and (max-width:${(v !== -1 && typeof r[a[v]] == "number" ? r[a[v]] : u) - n / 100}${t})`;
|
|
1657
1660
|
}
|
|
1658
|
-
function
|
|
1659
|
-
return
|
|
1661
|
+
function m(h) {
|
|
1662
|
+
return a.indexOf(h) + 1 < a.length ? p(h, a[a.indexOf(h) + 1]) : l(h);
|
|
1660
1663
|
}
|
|
1661
|
-
function
|
|
1662
|
-
const
|
|
1663
|
-
return
|
|
1664
|
+
function g(h) {
|
|
1665
|
+
const u = a.indexOf(h);
|
|
1666
|
+
return u === 0 ? l(a[1]) : u === a.length - 1 ? d(a[u]) : p(h, a[a.indexOf(h) + 1]).replace("@media", "@media not all and");
|
|
1664
1667
|
}
|
|
1665
1668
|
return {
|
|
1666
|
-
keys:
|
|
1667
|
-
values:
|
|
1668
|
-
up:
|
|
1669
|
-
down:
|
|
1670
|
-
between:
|
|
1671
|
-
only:
|
|
1672
|
-
not:
|
|
1669
|
+
keys: a,
|
|
1670
|
+
values: s,
|
|
1671
|
+
up: l,
|
|
1672
|
+
down: d,
|
|
1673
|
+
between: p,
|
|
1674
|
+
only: m,
|
|
1675
|
+
not: g,
|
|
1673
1676
|
unit: t,
|
|
1674
1677
|
...o
|
|
1675
1678
|
};
|
|
@@ -1682,9 +1685,9 @@ function Qr(e = 8, r = fr({
|
|
|
1682
1685
|
})) {
|
|
1683
1686
|
if (e.mui)
|
|
1684
1687
|
return e;
|
|
1685
|
-
const t = (...n) => (process.env.NODE_ENV !== "production" && (n.length <= 4 || console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)), (n.length === 0 ? [1] : n).map((
|
|
1686
|
-
const
|
|
1687
|
-
return typeof
|
|
1688
|
+
const t = (...n) => (process.env.NODE_ENV !== "production" && (n.length <= 4 || console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)), (n.length === 0 ? [1] : n).map((s) => {
|
|
1689
|
+
const a = r(s);
|
|
1690
|
+
return typeof a == "number" ? `${a}px` : a;
|
|
1688
1691
|
}).join(" "));
|
|
1689
1692
|
return t.mui = !0, t;
|
|
1690
1693
|
}
|
|
@@ -1706,11 +1709,11 @@ function gn(e = {}, ...r) {
|
|
|
1706
1709
|
breakpoints: t = {},
|
|
1707
1710
|
palette: n = {},
|
|
1708
1711
|
spacing: o,
|
|
1709
|
-
shape:
|
|
1710
|
-
...
|
|
1711
|
-
} = e,
|
|
1712
|
-
let
|
|
1713
|
-
breakpoints:
|
|
1712
|
+
shape: s = {},
|
|
1713
|
+
...a
|
|
1714
|
+
} = e, l = dn(t), d = Qr(o);
|
|
1715
|
+
let p = te({
|
|
1716
|
+
breakpoints: l,
|
|
1714
1717
|
direction: "ltr",
|
|
1715
1718
|
components: {},
|
|
1716
1719
|
// Inject component definitions.
|
|
@@ -1718,21 +1721,21 @@ function gn(e = {}, ...r) {
|
|
|
1718
1721
|
mode: "light",
|
|
1719
1722
|
...n
|
|
1720
1723
|
},
|
|
1721
|
-
spacing:
|
|
1724
|
+
spacing: d,
|
|
1722
1725
|
shape: {
|
|
1723
1726
|
...pn,
|
|
1724
|
-
...
|
|
1727
|
+
...s
|
|
1725
1728
|
}
|
|
1726
|
-
},
|
|
1727
|
-
return
|
|
1729
|
+
}, a);
|
|
1730
|
+
return p = Et(p), p.applyStyles = mn, p = r.reduce((m, g) => te(m, g), p), p.unstable_sxConfig = {
|
|
1728
1731
|
...Ge,
|
|
1729
|
-
...
|
|
1730
|
-
},
|
|
1732
|
+
...a == null ? void 0 : a.unstable_sxConfig
|
|
1733
|
+
}, p.unstable_sx = function(g) {
|
|
1731
1734
|
return Ke({
|
|
1732
|
-
sx:
|
|
1735
|
+
sx: g,
|
|
1733
1736
|
theme: this
|
|
1734
1737
|
});
|
|
1735
|
-
},
|
|
1738
|
+
}, p;
|
|
1736
1739
|
}
|
|
1737
1740
|
const hn = {
|
|
1738
1741
|
active: "active",
|
|
@@ -1764,32 +1767,32 @@ function vn(e) {
|
|
|
1764
1767
|
let t = e.match(r);
|
|
1765
1768
|
return t && t[0].length === 1 && (t = t.map((n) => n + n)), process.env.NODE_ENV !== "production" && e.length !== e.trim().length && console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`), t ? `rgb${t.length === 4 ? "a" : ""}(${t.map((n, o) => o < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
|
|
1766
1769
|
}
|
|
1767
|
-
function
|
|
1770
|
+
function me(e) {
|
|
1768
1771
|
if (e.type)
|
|
1769
1772
|
return e;
|
|
1770
1773
|
if (e.charAt(0) === "#")
|
|
1771
|
-
return
|
|
1774
|
+
return me(vn(e));
|
|
1772
1775
|
const r = e.indexOf("("), t = e.substring(0, r);
|
|
1773
1776
|
if (!["rgb", "rgba", "hsl", "hsla", "color"].includes(t))
|
|
1774
1777
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
|
|
1775
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` :
|
|
1778
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : ye(9, e));
|
|
1776
1779
|
let n = e.substring(r + 1, e.length - 1), o;
|
|
1777
1780
|
if (t === "color") {
|
|
1778
1781
|
if (n = n.split(" "), o = n.shift(), n.length === 4 && n[3].charAt(0) === "/" && (n[3] = n[3].slice(1)), !["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].includes(o))
|
|
1779
1782
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${o}\` color space.
|
|
1780
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` :
|
|
1783
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : ye(10, o));
|
|
1781
1784
|
} else
|
|
1782
1785
|
n = n.split(",");
|
|
1783
|
-
return n = n.map((
|
|
1786
|
+
return n = n.map((s) => parseFloat(s)), {
|
|
1784
1787
|
type: t,
|
|
1785
1788
|
values: n,
|
|
1786
1789
|
colorSpace: o
|
|
1787
1790
|
};
|
|
1788
1791
|
}
|
|
1789
1792
|
const Sn = (e) => {
|
|
1790
|
-
const r =
|
|
1793
|
+
const r = me(e);
|
|
1791
1794
|
return r.values.slice(0, 3).map((t, n) => r.type.includes("hsl") && n !== 0 ? `${t}%` : t).join(" ");
|
|
1792
|
-
},
|
|
1795
|
+
}, xe = (e, r) => {
|
|
1793
1796
|
try {
|
|
1794
1797
|
return Sn(e);
|
|
1795
1798
|
} catch {
|
|
@@ -1804,23 +1807,23 @@ function He(e) {
|
|
|
1804
1807
|
let {
|
|
1805
1808
|
values: n
|
|
1806
1809
|
} = e;
|
|
1807
|
-
return r.includes("rgb") ? n = n.map((o,
|
|
1810
|
+
return r.includes("rgb") ? n = n.map((o, s) => s < 3 ? parseInt(o, 10) : o) : r.includes("hsl") && (n[1] = `${n[1]}%`, n[2] = `${n[2]}%`), r.includes("color") ? n = `${t} ${n.join(" ")}` : n = `${n.join(", ")}`, `${r}(${n})`;
|
|
1808
1811
|
}
|
|
1809
1812
|
function Xr(e) {
|
|
1810
|
-
e =
|
|
1813
|
+
e = me(e);
|
|
1811
1814
|
const {
|
|
1812
1815
|
values: r
|
|
1813
|
-
} = e, t = r[0], n = r[1] / 100, o = r[2] / 100,
|
|
1814
|
-
let
|
|
1815
|
-
const
|
|
1816
|
-
return e.type === "hsla" && (
|
|
1817
|
-
type:
|
|
1818
|
-
values:
|
|
1816
|
+
} = e, t = r[0], n = r[1] / 100, o = r[2] / 100, s = n * Math.min(o, 1 - o), a = (p, m = (p + t / 30) % 12) => o - s * Math.max(Math.min(m - 3, 9 - m, 1), -1);
|
|
1817
|
+
let l = "rgb";
|
|
1818
|
+
const d = [Math.round(a(0) * 255), Math.round(a(8) * 255), Math.round(a(4) * 255)];
|
|
1819
|
+
return e.type === "hsla" && (l += "a", d.push(r[3])), He({
|
|
1820
|
+
type: l,
|
|
1821
|
+
values: d
|
|
1819
1822
|
});
|
|
1820
1823
|
}
|
|
1821
1824
|
function sr(e) {
|
|
1822
|
-
e =
|
|
1823
|
-
let r = e.type === "hsl" || e.type === "hsla" ?
|
|
1825
|
+
e = me(e);
|
|
1826
|
+
let r = e.type === "hsl" || e.type === "hsla" ? me(Xr(e)).values : e.values;
|
|
1824
1827
|
return r = r.map((t) => (e.type !== "color" && (t /= 255), t <= 0.03928 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4)), Number((0.2126 * r[0] + 0.7152 * r[1] + 0.0722 * r[2]).toFixed(3));
|
|
1825
1828
|
}
|
|
1826
1829
|
function Nr(e, r) {
|
|
@@ -1828,9 +1831,9 @@ function Nr(e, r) {
|
|
|
1828
1831
|
return (Math.max(t, n) + 0.05) / (Math.min(t, n) + 0.05);
|
|
1829
1832
|
}
|
|
1830
1833
|
function Jr(e, r) {
|
|
1831
|
-
return e =
|
|
1834
|
+
return e = me(e), r = pr(r), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${r}` : e.values[3] = r, He(e);
|
|
1832
1835
|
}
|
|
1833
|
-
function
|
|
1836
|
+
function he(e, r, t) {
|
|
1834
1837
|
try {
|
|
1835
1838
|
return Jr(e, r);
|
|
1836
1839
|
} catch {
|
|
@@ -1838,7 +1841,7 @@ function ye(e, r, t) {
|
|
|
1838
1841
|
}
|
|
1839
1842
|
}
|
|
1840
1843
|
function Qe(e, r) {
|
|
1841
|
-
if (e =
|
|
1844
|
+
if (e = me(e), r = pr(r), e.type.includes("hsl"))
|
|
1842
1845
|
e.values[2] *= 1 - r;
|
|
1843
1846
|
else if (e.type.includes("rgb") || e.type.includes("color"))
|
|
1844
1847
|
for (let t = 0; t < 3; t += 1)
|
|
@@ -1853,7 +1856,7 @@ function Y(e, r, t) {
|
|
|
1853
1856
|
}
|
|
1854
1857
|
}
|
|
1855
1858
|
function Xe(e, r) {
|
|
1856
|
-
if (e =
|
|
1859
|
+
if (e = me(e), r = pr(r), e.type.includes("hsl"))
|
|
1857
1860
|
e.values[2] += (100 - e.values[2]) * r;
|
|
1858
1861
|
else if (e.type.includes("rgb"))
|
|
1859
1862
|
for (let t = 0; t < 3; t += 1)
|
|
@@ -1891,13 +1894,13 @@ function Cn(e = "") {
|
|
|
1891
1894
|
}
|
|
1892
1895
|
const Mr = (e, r, t, n = []) => {
|
|
1893
1896
|
let o = e;
|
|
1894
|
-
r.forEach((
|
|
1895
|
-
|
|
1897
|
+
r.forEach((s, a) => {
|
|
1898
|
+
a === r.length - 1 ? Array.isArray(o) ? o[Number(s)] = t : o && typeof o == "object" && (o[s] = t) : o && typeof o == "object" && (o[s] || (o[s] = n.includes(s) ? [] : {}), o = o[s]);
|
|
1896
1899
|
});
|
|
1897
1900
|
}, Tn = (e, r, t) => {
|
|
1898
|
-
function n(o,
|
|
1899
|
-
Object.entries(o).forEach(([
|
|
1900
|
-
(!t || t && !t([...
|
|
1901
|
+
function n(o, s = [], a = []) {
|
|
1902
|
+
Object.entries(o).forEach(([l, d]) => {
|
|
1903
|
+
(!t || t && !t([...s, l])) && d != null && (typeof d == "object" && Object.keys(d).length > 0 ? n(d, [...s, l], Array.isArray(d) ? [...a, l] : a) : r([...s, l], d, a));
|
|
1901
1904
|
});
|
|
1902
1905
|
}
|
|
1903
1906
|
n(e);
|
|
@@ -1906,138 +1909,138 @@ function ir(e, r) {
|
|
|
1906
1909
|
const {
|
|
1907
1910
|
prefix: t,
|
|
1908
1911
|
shouldSkipGeneratingVar: n
|
|
1909
|
-
} = r || {}, o = {},
|
|
1912
|
+
} = r || {}, o = {}, s = {}, a = {};
|
|
1910
1913
|
return Tn(
|
|
1911
1914
|
e,
|
|
1912
|
-
(
|
|
1913
|
-
if ((typeof
|
|
1914
|
-
const
|
|
1915
|
+
(l, d, p) => {
|
|
1916
|
+
if ((typeof d == "string" || typeof d == "number") && (!n || !n(l, d))) {
|
|
1917
|
+
const m = `--${t ? `${t}-` : ""}${l.join("-")}`, g = $n(l, d);
|
|
1915
1918
|
Object.assign(o, {
|
|
1916
|
-
[
|
|
1917
|
-
}), Mr(
|
|
1919
|
+
[m]: g
|
|
1920
|
+
}), Mr(s, l, `var(${m})`, p), Mr(a, l, `var(${m}, ${g})`, p);
|
|
1918
1921
|
}
|
|
1919
1922
|
},
|
|
1920
|
-
(
|
|
1923
|
+
(l) => l[0] === "vars"
|
|
1921
1924
|
// skip 'vars/*' paths
|
|
1922
1925
|
), {
|
|
1923
1926
|
css: o,
|
|
1924
|
-
vars:
|
|
1925
|
-
varsWithDefaults:
|
|
1927
|
+
vars: s,
|
|
1928
|
+
varsWithDefaults: a
|
|
1926
1929
|
};
|
|
1927
1930
|
}
|
|
1928
|
-
function
|
|
1931
|
+
function wn(e, r = {}) {
|
|
1929
1932
|
const {
|
|
1930
1933
|
getSelector: t = _,
|
|
1931
1934
|
disableCssColorScheme: n,
|
|
1932
1935
|
colorSchemeSelector: o,
|
|
1933
|
-
enableContrastVars:
|
|
1936
|
+
enableContrastVars: s
|
|
1934
1937
|
} = r, {
|
|
1935
|
-
colorSchemes:
|
|
1936
|
-
components:
|
|
1937
|
-
defaultColorScheme:
|
|
1938
|
-
...
|
|
1938
|
+
colorSchemes: a = {},
|
|
1939
|
+
components: l,
|
|
1940
|
+
defaultColorScheme: d = "light",
|
|
1941
|
+
...p
|
|
1939
1942
|
} = e, {
|
|
1940
|
-
vars:
|
|
1941
|
-
css:
|
|
1942
|
-
varsWithDefaults:
|
|
1943
|
-
} = ir(
|
|
1944
|
-
let
|
|
1945
|
-
const
|
|
1946
|
-
[
|
|
1943
|
+
vars: m,
|
|
1944
|
+
css: g,
|
|
1945
|
+
varsWithDefaults: h
|
|
1946
|
+
} = ir(p, r);
|
|
1947
|
+
let u = h;
|
|
1948
|
+
const v = {}, {
|
|
1949
|
+
[d]: c,
|
|
1947
1950
|
...E
|
|
1948
|
-
} =
|
|
1949
|
-
if (Object.entries(E || {}).forEach(([$,
|
|
1951
|
+
} = a;
|
|
1952
|
+
if (Object.entries(E || {}).forEach(([$, b]) => {
|
|
1950
1953
|
const {
|
|
1951
|
-
vars:
|
|
1954
|
+
vars: x,
|
|
1952
1955
|
css: ee,
|
|
1953
1956
|
varsWithDefaults: ne
|
|
1954
|
-
} = ir(
|
|
1955
|
-
|
|
1957
|
+
} = ir(b, r);
|
|
1958
|
+
u = te(u, ne), v[$] = {
|
|
1956
1959
|
css: ee,
|
|
1957
|
-
vars:
|
|
1960
|
+
vars: x
|
|
1958
1961
|
};
|
|
1959
1962
|
}), c) {
|
|
1960
1963
|
const {
|
|
1961
1964
|
css: $,
|
|
1962
|
-
vars:
|
|
1963
|
-
varsWithDefaults:
|
|
1965
|
+
vars: b,
|
|
1966
|
+
varsWithDefaults: x
|
|
1964
1967
|
} = ir(c, r);
|
|
1965
|
-
|
|
1968
|
+
u = te(u, x), v[d] = {
|
|
1966
1969
|
css: $,
|
|
1967
|
-
vars:
|
|
1970
|
+
vars: b
|
|
1968
1971
|
};
|
|
1969
1972
|
}
|
|
1970
|
-
function _($,
|
|
1973
|
+
function _($, b) {
|
|
1971
1974
|
var ee, ne;
|
|
1972
|
-
let
|
|
1973
|
-
if (o === "class" && (
|
|
1974
|
-
if (
|
|
1975
|
+
let x = o;
|
|
1976
|
+
if (o === "class" && (x = ".%s"), o === "data" && (x = "[data-%s]"), o != null && o.startsWith("data-") && !o.includes("%s") && (x = `[${o}="%s"]`), $) {
|
|
1977
|
+
if (x === "media")
|
|
1975
1978
|
return e.defaultColorScheme === $ ? ":root" : {
|
|
1976
|
-
[`@media (prefers-color-scheme: ${((ne = (ee =
|
|
1977
|
-
":root":
|
|
1979
|
+
[`@media (prefers-color-scheme: ${((ne = (ee = a[$]) == null ? void 0 : ee.palette) == null ? void 0 : ne.mode) || $})`]: {
|
|
1980
|
+
":root": b
|
|
1978
1981
|
}
|
|
1979
1982
|
};
|
|
1980
|
-
if (
|
|
1981
|
-
return e.defaultColorScheme === $ ? `:root, ${
|
|
1983
|
+
if (x)
|
|
1984
|
+
return e.defaultColorScheme === $ ? `:root, ${x.replace("%s", String($))}` : x.replace("%s", String($));
|
|
1982
1985
|
}
|
|
1983
1986
|
return ":root";
|
|
1984
1987
|
}
|
|
1985
1988
|
return {
|
|
1986
|
-
vars:
|
|
1989
|
+
vars: u,
|
|
1987
1990
|
generateThemeVars: () => {
|
|
1988
1991
|
let $ = {
|
|
1989
|
-
...
|
|
1992
|
+
...m
|
|
1990
1993
|
};
|
|
1991
|
-
return Object.entries(
|
|
1992
|
-
vars:
|
|
1994
|
+
return Object.entries(v).forEach(([, {
|
|
1995
|
+
vars: b
|
|
1993
1996
|
}]) => {
|
|
1994
|
-
$ = te($,
|
|
1997
|
+
$ = te($, b);
|
|
1995
1998
|
}), $;
|
|
1996
1999
|
},
|
|
1997
2000
|
generateStyleSheets: () => {
|
|
1998
|
-
var
|
|
1999
|
-
const $ = [],
|
|
2000
|
-
function
|
|
2001
|
+
var le, de;
|
|
2002
|
+
const $ = [], b = e.defaultColorScheme || "light";
|
|
2003
|
+
function x(K, i) {
|
|
2001
2004
|
Object.keys(i).length && $.push(typeof K == "string" ? {
|
|
2002
2005
|
[K]: {
|
|
2003
2006
|
...i
|
|
2004
2007
|
}
|
|
2005
2008
|
} : K);
|
|
2006
2009
|
}
|
|
2007
|
-
|
|
2008
|
-
...
|
|
2009
|
-
}),
|
|
2010
|
+
x(t(void 0, {
|
|
2011
|
+
...g
|
|
2012
|
+
}), g);
|
|
2010
2013
|
const {
|
|
2011
|
-
[
|
|
2014
|
+
[b]: ee,
|
|
2012
2015
|
...ne
|
|
2013
|
-
} =
|
|
2016
|
+
} = v;
|
|
2014
2017
|
if (ee) {
|
|
2015
2018
|
const {
|
|
2016
2019
|
css: K
|
|
2017
|
-
} = ee, i = (de = (
|
|
2020
|
+
} = ee, i = (de = (le = a[b]) == null ? void 0 : le.palette) == null ? void 0 : de.mode, w = !n && i ? {
|
|
2018
2021
|
colorScheme: i,
|
|
2019
2022
|
...K
|
|
2020
2023
|
} : {
|
|
2021
2024
|
...K
|
|
2022
2025
|
};
|
|
2023
|
-
|
|
2024
|
-
...
|
|
2025
|
-
}),
|
|
2026
|
+
x(t(b, {
|
|
2027
|
+
...w
|
|
2028
|
+
}), w);
|
|
2026
2029
|
}
|
|
2027
2030
|
return Object.entries(ne).forEach(([K, {
|
|
2028
2031
|
css: i
|
|
2029
2032
|
}]) => {
|
|
2030
2033
|
var I, N;
|
|
2031
|
-
const
|
|
2032
|
-
colorScheme:
|
|
2034
|
+
const w = (N = (I = a[K]) == null ? void 0 : I.palette) == null ? void 0 : N.mode, S = !n && w ? {
|
|
2035
|
+
colorScheme: w,
|
|
2033
2036
|
...i
|
|
2034
2037
|
} : {
|
|
2035
2038
|
...i
|
|
2036
2039
|
};
|
|
2037
|
-
|
|
2038
|
-
...
|
|
2039
|
-
}),
|
|
2040
|
-
}),
|
|
2040
|
+
x(t(K, {
|
|
2041
|
+
...S
|
|
2042
|
+
}), S);
|
|
2043
|
+
}), s && $.push({
|
|
2041
2044
|
":root": {
|
|
2042
2045
|
// use double underscore to indicate that these are private variables
|
|
2043
2046
|
"--__l-threshold": "0.7",
|
|
@@ -2049,7 +2052,7 @@ function xn(e, r = {}) {
|
|
|
2049
2052
|
}
|
|
2050
2053
|
};
|
|
2051
2054
|
}
|
|
2052
|
-
function
|
|
2055
|
+
function xn(e) {
|
|
2053
2056
|
return function(t) {
|
|
2054
2057
|
return e === "media" ? (process.env.NODE_ENV !== "production" && t !== "light" && t !== "dark" && console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`), `@media (prefers-color-scheme: ${t})`) : e ? e.startsWith("data-") && !e.includes("%s") ? `[${e}="${t}"] &` : e === "class" ? `.${t} &` : e === "data" ? `[data-${t}] &` : `${e.replace("%s", t)} &` : "&";
|
|
2055
2058
|
};
|
|
@@ -2085,7 +2088,7 @@ const Ae = {
|
|
|
2085
2088
|
500: "#f44336",
|
|
2086
2089
|
700: "#d32f2f",
|
|
2087
2090
|
800: "#c62828"
|
|
2088
|
-
},
|
|
2091
|
+
}, we = {
|
|
2089
2092
|
300: "#ffb74d",
|
|
2090
2093
|
400: "#ffa726",
|
|
2091
2094
|
500: "#ff9800",
|
|
@@ -2182,12 +2185,12 @@ function rt() {
|
|
|
2182
2185
|
}
|
|
2183
2186
|
const cr = rt();
|
|
2184
2187
|
function Br(e, r, t, n) {
|
|
2185
|
-
const o = n.light || n,
|
|
2186
|
-
e[r] || (e.hasOwnProperty(t) ? e[r] = e[t] : r === "light" ? e.light = Xe(e.main, o) : r === "dark" && (e.dark = Qe(e.main,
|
|
2188
|
+
const o = n.light || n, s = n.dark || n * 1.5;
|
|
2189
|
+
e[r] || (e.hasOwnProperty(t) ? e[r] = e[t] : r === "light" ? e.light = Xe(e.main, o) : r === "dark" && (e.dark = Qe(e.main, s)));
|
|
2187
2190
|
}
|
|
2188
2191
|
function Dr(e, r, t, n, o) {
|
|
2189
|
-
const
|
|
2190
|
-
r[t] || (r.hasOwnProperty(n) ? r[t] = r[n] : t === "light" ? r.light = `color-mix(in ${e}, ${r.main}, #fff ${(
|
|
2192
|
+
const s = o.light || o, a = o.dark || o * 1.5;
|
|
2193
|
+
r[t] || (r.hasOwnProperty(n) ? r[t] = r[n] : t === "light" ? r.light = `color-mix(in ${e}, ${r.main}, #fff ${(s * 100).toFixed(0)}%)` : t === "dark" && (r.dark = `color-mix(in ${e}, ${r.main}, #000 ${(a * 100).toFixed(0)}%)`));
|
|
2191
2194
|
}
|
|
2192
2195
|
function _n(e = "light") {
|
|
2193
2196
|
return e === "dark" ? {
|
|
@@ -2246,14 +2249,14 @@ function kn(e = "light") {
|
|
|
2246
2249
|
}
|
|
2247
2250
|
function In(e = "light") {
|
|
2248
2251
|
return e === "dark" ? {
|
|
2249
|
-
main:
|
|
2250
|
-
light:
|
|
2251
|
-
dark:
|
|
2252
|
+
main: we[400],
|
|
2253
|
+
light: we[300],
|
|
2254
|
+
dark: we[700]
|
|
2252
2255
|
} : {
|
|
2253
2256
|
main: "#ed6c02",
|
|
2254
2257
|
// closest to orange[800] that pass 3:1.
|
|
2255
|
-
light:
|
|
2256
|
-
dark:
|
|
2258
|
+
light: we[500],
|
|
2259
|
+
dark: we[900]
|
|
2257
2260
|
};
|
|
2258
2261
|
}
|
|
2259
2262
|
function Nn(e) {
|
|
@@ -2265,9 +2268,9 @@ function mr(e) {
|
|
|
2265
2268
|
contrastThreshold: t = 3,
|
|
2266
2269
|
tonalOffset: n = 0.2,
|
|
2267
2270
|
colorSpace: o,
|
|
2268
|
-
...
|
|
2269
|
-
} = e,
|
|
2270
|
-
function
|
|
2271
|
+
...s
|
|
2272
|
+
} = e, a = e.primary || _n(r), l = e.secondary || An(r), d = e.error || Rn(r), p = e.info || Pn(r), m = e.success || kn(r), g = e.warning || In(r);
|
|
2273
|
+
function h(E) {
|
|
2271
2274
|
if (o)
|
|
2272
2275
|
return Nn(E);
|
|
2273
2276
|
const _ = Nr(E, cr.text.primary) >= t ? cr.text.primary : et.text.primary;
|
|
@@ -2278,7 +2281,7 @@ function mr(e) {
|
|
|
2278
2281
|
}
|
|
2279
2282
|
return _;
|
|
2280
2283
|
}
|
|
2281
|
-
const
|
|
2284
|
+
const u = ({
|
|
2282
2285
|
color: E,
|
|
2283
2286
|
name: _,
|
|
2284
2287
|
mainShade: j = 500,
|
|
@@ -2289,7 +2292,7 @@ function mr(e) {
|
|
|
2289
2292
|
...E
|
|
2290
2293
|
}, !E.main && E[j] && (E.main = E[j]), !E.hasOwnProperty("main"))
|
|
2291
2294
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${_ ? ` (${_})` : ""} provided to augmentColor(color) is invalid.
|
|
2292
|
-
The color object needs to have a \`main\` property or a \`${j}\` property.` :
|
|
2295
|
+
The color object needs to have a \`main\` property or a \`${j}\` property.` : ye(11, _ ? ` (${_})` : "", j));
|
|
2293
2296
|
if (typeof E.main != "string")
|
|
2294
2297
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${_ ? ` (${_})` : ""} provided to augmentColor(color) is invalid.
|
|
2295
2298
|
\`color.main\` should be a string, but \`${JSON.stringify(E.main)}\` was provided instead.
|
|
@@ -2304,11 +2307,11 @@ const theme1 = createTheme({ palette: {
|
|
|
2304
2307
|
|
|
2305
2308
|
const theme2 = createTheme({ palette: {
|
|
2306
2309
|
primary: { main: green[500] },
|
|
2307
|
-
} });` :
|
|
2308
|
-
return o ? (Dr(o, E, "light", F, n), Dr(o, E, "dark", $, n)) : (Br(E, "light", F, n), Br(E, "dark", $, n)), E.contrastText || (E.contrastText =
|
|
2310
|
+
} });` : ye(12, _ ? ` (${_})` : "", JSON.stringify(E.main)));
|
|
2311
|
+
return o ? (Dr(o, E, "light", F, n), Dr(o, E, "dark", $, n)) : (Br(E, "light", F, n), Br(E, "dark", $, n)), E.contrastText || (E.contrastText = h(E.main)), E;
|
|
2309
2312
|
};
|
|
2310
|
-
let
|
|
2311
|
-
return r === "light" ?
|
|
2313
|
+
let v;
|
|
2314
|
+
return r === "light" ? v = Zr() : r === "dark" && (v = rt()), process.env.NODE_ENV !== "production" && (v || console.error(`MUI: The palette mode \`${r}\` is not supported.`)), te({
|
|
2312
2315
|
// A collection of common colors.
|
|
2313
2316
|
common: {
|
|
2314
2317
|
...Ae
|
|
@@ -2317,36 +2320,36 @@ const theme2 = createTheme({ palette: {
|
|
|
2317
2320
|
// The palette mode, can be light or dark.
|
|
2318
2321
|
mode: r,
|
|
2319
2322
|
// The colors used to represent primary interface elements for a user.
|
|
2320
|
-
primary:
|
|
2321
|
-
color:
|
|
2323
|
+
primary: u({
|
|
2324
|
+
color: a,
|
|
2322
2325
|
name: "primary"
|
|
2323
2326
|
}),
|
|
2324
2327
|
// The colors used to represent secondary interface elements for a user.
|
|
2325
|
-
secondary:
|
|
2326
|
-
color:
|
|
2328
|
+
secondary: u({
|
|
2329
|
+
color: l,
|
|
2327
2330
|
name: "secondary",
|
|
2328
2331
|
mainShade: "A400",
|
|
2329
2332
|
lightShade: "A200",
|
|
2330
2333
|
darkShade: "A700"
|
|
2331
2334
|
}),
|
|
2332
2335
|
// The colors used to represent interface elements that the user should be made aware of.
|
|
2333
|
-
error:
|
|
2334
|
-
color:
|
|
2336
|
+
error: u({
|
|
2337
|
+
color: d,
|
|
2335
2338
|
name: "error"
|
|
2336
2339
|
}),
|
|
2337
2340
|
// The colors used to represent potentially dangerous actions or important messages.
|
|
2338
|
-
warning:
|
|
2339
|
-
color:
|
|
2341
|
+
warning: u({
|
|
2342
|
+
color: g,
|
|
2340
2343
|
name: "warning"
|
|
2341
2344
|
}),
|
|
2342
2345
|
// The colors used to present information to the user that is neutral and not necessarily important.
|
|
2343
|
-
info:
|
|
2344
|
-
color:
|
|
2346
|
+
info: u({
|
|
2347
|
+
color: p,
|
|
2345
2348
|
name: "info"
|
|
2346
2349
|
}),
|
|
2347
2350
|
// The colors used to indicate the successful completion of an action that user triggered.
|
|
2348
|
-
success:
|
|
2349
|
-
color:
|
|
2351
|
+
success: u({
|
|
2352
|
+
color: m,
|
|
2350
2353
|
name: "success"
|
|
2351
2354
|
}),
|
|
2352
2355
|
// The grey colors.
|
|
@@ -2355,22 +2358,22 @@ const theme2 = createTheme({ palette: {
|
|
|
2355
2358
|
// the background and the text.
|
|
2356
2359
|
contrastThreshold: t,
|
|
2357
2360
|
// Takes a background color and returns the text color that maximizes the contrast.
|
|
2358
|
-
getContrastText:
|
|
2361
|
+
getContrastText: h,
|
|
2359
2362
|
// Generate a rich color object.
|
|
2360
|
-
augmentColor:
|
|
2363
|
+
augmentColor: u,
|
|
2361
2364
|
// Used by the functions below to shift a color's luminance by approximately
|
|
2362
2365
|
// two indexes within its tonal palette.
|
|
2363
2366
|
// E.g., shift from Red 500 to Red 300 or Red 700.
|
|
2364
2367
|
tonalOffset: n,
|
|
2365
2368
|
// The light and dark mode object.
|
|
2366
|
-
...
|
|
2367
|
-
},
|
|
2369
|
+
...v
|
|
2370
|
+
}, s);
|
|
2368
2371
|
}
|
|
2369
2372
|
function Mn(e) {
|
|
2370
2373
|
const r = {};
|
|
2371
2374
|
return Object.entries(e).forEach((n) => {
|
|
2372
|
-
const [o,
|
|
2373
|
-
typeof
|
|
2375
|
+
const [o, s] = n;
|
|
2376
|
+
typeof s == "object" && (r[o] = `${s.fontStyle ? `${s.fontStyle} ` : ""}${s.fontVariant ? `${s.fontVariant} ` : ""}${s.fontWeight ? `${s.fontWeight} ` : ""}${s.fontStretch ? `${s.fontStretch} ` : ""}${s.fontSize || ""}${s.lineHeight ? `/${s.lineHeight} ` : ""}${s.fontFamily || ""}`);
|
|
2374
2377
|
}), r;
|
|
2375
2378
|
}
|
|
2376
2379
|
function Bn(e, r) {
|
|
@@ -2402,22 +2405,22 @@ function jn(e, r) {
|
|
|
2402
2405
|
fontSize: n = 14,
|
|
2403
2406
|
// px
|
|
2404
2407
|
fontWeightLight: o = 300,
|
|
2405
|
-
fontWeightRegular:
|
|
2406
|
-
fontWeightMedium:
|
|
2407
|
-
fontWeightBold:
|
|
2408
|
+
fontWeightRegular: s = 400,
|
|
2409
|
+
fontWeightMedium: a = 500,
|
|
2410
|
+
fontWeightBold: l = 700,
|
|
2408
2411
|
// Tell MUI what's the font-size on the html element.
|
|
2409
2412
|
// 16px is the default font-size used by browsers.
|
|
2410
|
-
htmlFontSize:
|
|
2413
|
+
htmlFontSize: d = 16,
|
|
2411
2414
|
// Apply the CSS properties to all the variants.
|
|
2412
|
-
allVariants:
|
|
2413
|
-
pxToRem:
|
|
2414
|
-
...
|
|
2415
|
+
allVariants: p,
|
|
2416
|
+
pxToRem: m,
|
|
2417
|
+
...g
|
|
2415
2418
|
} = typeof r == "function" ? r(e) : r;
|
|
2416
|
-
process.env.NODE_ENV !== "production" && (typeof n != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof
|
|
2417
|
-
const
|
|
2419
|
+
process.env.NODE_ENV !== "production" && (typeof n != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof d != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
2420
|
+
const h = n / 14, u = m || ((E) => `${E / d * h}rem`), v = (E, _, j, F, $) => ({
|
|
2418
2421
|
fontFamily: t,
|
|
2419
2422
|
fontWeight: E,
|
|
2420
|
-
fontSize:
|
|
2423
|
+
fontSize: u(_),
|
|
2421
2424
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
2422
2425
|
lineHeight: j,
|
|
2423
2426
|
// The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
|
|
@@ -2426,21 +2429,21 @@ function jn(e, r) {
|
|
|
2426
2429
|
letterSpacing: `${Dn(F / _)}em`
|
|
2427
2430
|
} : {},
|
|
2428
2431
|
...$,
|
|
2429
|
-
...
|
|
2432
|
+
...p
|
|
2430
2433
|
}), c = {
|
|
2431
|
-
h1:
|
|
2432
|
-
h2:
|
|
2433
|
-
h3:
|
|
2434
|
-
h4:
|
|
2435
|
-
h5:
|
|
2436
|
-
h6:
|
|
2437
|
-
subtitle1:
|
|
2438
|
-
subtitle2:
|
|
2439
|
-
body1:
|
|
2440
|
-
body2:
|
|
2441
|
-
button:
|
|
2442
|
-
caption:
|
|
2443
|
-
overline:
|
|
2434
|
+
h1: v(o, 96, 1.167, -1.5),
|
|
2435
|
+
h2: v(o, 60, 1.2, -0.5),
|
|
2436
|
+
h3: v(s, 48, 1.167, 0),
|
|
2437
|
+
h4: v(s, 34, 1.235, 0.25),
|
|
2438
|
+
h5: v(s, 24, 1.334, 0),
|
|
2439
|
+
h6: v(a, 20, 1.6, 0.15),
|
|
2440
|
+
subtitle1: v(s, 16, 1.75, 0.15),
|
|
2441
|
+
subtitle2: v(a, 14, 1.57, 0.1),
|
|
2442
|
+
body1: v(s, 16, 1.5, 0.15),
|
|
2443
|
+
body2: v(s, 14, 1.43, 0.15),
|
|
2444
|
+
button: v(a, 14, 1.75, 0.4, jr),
|
|
2445
|
+
caption: v(s, 12, 1.66, 0.4),
|
|
2446
|
+
overline: v(s, 12, 2.66, 1, jr),
|
|
2444
2447
|
// TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.
|
|
2445
2448
|
inherit: {
|
|
2446
2449
|
fontFamily: "inherit",
|
|
@@ -2451,23 +2454,23 @@ function jn(e, r) {
|
|
|
2451
2454
|
}
|
|
2452
2455
|
};
|
|
2453
2456
|
return te({
|
|
2454
|
-
htmlFontSize:
|
|
2455
|
-
pxToRem:
|
|
2457
|
+
htmlFontSize: d,
|
|
2458
|
+
pxToRem: u,
|
|
2456
2459
|
fontFamily: t,
|
|
2457
2460
|
fontSize: n,
|
|
2458
2461
|
fontWeightLight: o,
|
|
2459
|
-
fontWeightRegular:
|
|
2460
|
-
fontWeightMedium:
|
|
2461
|
-
fontWeightBold:
|
|
2462
|
+
fontWeightRegular: s,
|
|
2463
|
+
fontWeightMedium: a,
|
|
2464
|
+
fontWeightBold: l,
|
|
2462
2465
|
...c
|
|
2463
|
-
},
|
|
2466
|
+
}, g, {
|
|
2464
2467
|
clone: !1
|
|
2465
2468
|
// No need to clone deep
|
|
2466
2469
|
});
|
|
2467
2470
|
}
|
|
2468
|
-
const Fn = 0.2,
|
|
2471
|
+
const Fn = 0.2, Ln = 0.14, Vn = 0.12;
|
|
2469
2472
|
function G(...e) {
|
|
2470
|
-
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Fn})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${
|
|
2473
|
+
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Fn})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ln})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Vn})`].join(",");
|
|
2471
2474
|
}
|
|
2472
2475
|
const Wn = ["none", G(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), G(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), G(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), G(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), G(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), G(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), G(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), G(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), G(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), G(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), G(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), G(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), G(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), G(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), G(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), G(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), G(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), G(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), G(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), G(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), G(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), G(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), G(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), G(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], Yn = {
|
|
2473
2476
|
// This is the most common easing curve.
|
|
@@ -2492,7 +2495,7 @@ const Wn = ["none", G(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), G(0, 3, 1, -2, 0, 2,
|
|
|
2492
2495
|
// recommended when something is leaving screen
|
|
2493
2496
|
leavingScreen: 195
|
|
2494
2497
|
};
|
|
2495
|
-
function
|
|
2498
|
+
function Lr(e) {
|
|
2496
2499
|
return `${Math.round(e)}ms`;
|
|
2497
2500
|
}
|
|
2498
2501
|
function zn(e) {
|
|
@@ -2511,19 +2514,19 @@ function qn(e) {
|
|
|
2511
2514
|
};
|
|
2512
2515
|
return {
|
|
2513
2516
|
getAutoHeightDuration: zn,
|
|
2514
|
-
create: (o = ["all"],
|
|
2517
|
+
create: (o = ["all"], s = {}) => {
|
|
2515
2518
|
const {
|
|
2516
|
-
duration:
|
|
2517
|
-
easing:
|
|
2518
|
-
delay:
|
|
2519
|
-
...
|
|
2520
|
-
} =
|
|
2519
|
+
duration: a = t.standard,
|
|
2520
|
+
easing: l = r.easeInOut,
|
|
2521
|
+
delay: d = 0,
|
|
2522
|
+
...p
|
|
2523
|
+
} = s;
|
|
2521
2524
|
if (process.env.NODE_ENV !== "production") {
|
|
2522
|
-
const
|
|
2523
|
-
!
|
|
2524
|
-
`)), Object.keys(
|
|
2525
|
+
const m = (h) => typeof h == "string", g = (h) => !Number.isNaN(parseFloat(h));
|
|
2526
|
+
!m(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !g(a) && !m(a) && console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`), m(l) || console.error('MUI: Argument "easing" must be a string.'), !g(d) && !m(d) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof s != "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(`
|
|
2527
|
+
`)), Object.keys(p).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(p).join(",")}].`);
|
|
2525
2528
|
}
|
|
2526
|
-
return (Array.isArray(o) ? o : [o]).map((
|
|
2529
|
+
return (Array.isArray(o) ? o : [o]).map((m) => `${m} ${typeof a == "string" ? a : Lr(a)} ${l} ${typeof d == "string" ? d : Lr(d)}`).join(",");
|
|
2527
2530
|
},
|
|
2528
2531
|
...e,
|
|
2529
2532
|
easing: r,
|
|
@@ -2549,11 +2552,11 @@ function tt(e = {}) {
|
|
|
2549
2552
|
};
|
|
2550
2553
|
function t(n) {
|
|
2551
2554
|
const o = Object.entries(n);
|
|
2552
|
-
for (let
|
|
2553
|
-
const [
|
|
2554
|
-
!Kn(
|
|
2555
|
-
...
|
|
2556
|
-
}, t(n[
|
|
2555
|
+
for (let s = 0; s < o.length; s++) {
|
|
2556
|
+
const [a, l] = o[s];
|
|
2557
|
+
!Kn(l) || a.startsWith("unstable_") ? delete n[a] : pe(l) && (n[a] = {
|
|
2558
|
+
...l
|
|
2559
|
+
}, t(n[a]));
|
|
2557
2560
|
}
|
|
2558
2561
|
}
|
|
2559
2562
|
return t(r), `import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
@@ -2565,7 +2568,7 @@ theme.transitions = createTransitions(theme.transitions || {});
|
|
|
2565
2568
|
|
|
2566
2569
|
export default theme;`;
|
|
2567
2570
|
}
|
|
2568
|
-
function
|
|
2571
|
+
function Vr(e) {
|
|
2569
2572
|
return typeof e == "number" ? `${(e * 100).toFixed(0)}%` : `calc((${e}) * 100%)`;
|
|
2570
2573
|
}
|
|
2571
2574
|
const Hn = (e) => {
|
|
@@ -2587,51 +2590,51 @@ function Qn(e) {
|
|
|
2587
2590
|
},
|
|
2588
2591
|
lighten(r, t) {
|
|
2589
2592
|
const n = this || e;
|
|
2590
|
-
return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${r}, #fff ${
|
|
2593
|
+
return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${r}, #fff ${Vr(t)})` : Xe(r, t);
|
|
2591
2594
|
},
|
|
2592
2595
|
darken(r, t) {
|
|
2593
2596
|
const n = this || e;
|
|
2594
|
-
return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${r}, #000 ${
|
|
2597
|
+
return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${r}, #000 ${Vr(t)})` : Qe(r, t);
|
|
2595
2598
|
}
|
|
2596
2599
|
});
|
|
2597
2600
|
}
|
|
2598
|
-
function
|
|
2601
|
+
function lr(e = {}, ...r) {
|
|
2599
2602
|
const {
|
|
2600
2603
|
breakpoints: t,
|
|
2601
2604
|
mixins: n = {},
|
|
2602
2605
|
spacing: o,
|
|
2603
|
-
palette:
|
|
2604
|
-
transitions:
|
|
2605
|
-
typography:
|
|
2606
|
-
shape:
|
|
2607
|
-
colorSpace:
|
|
2608
|
-
...
|
|
2606
|
+
palette: s = {},
|
|
2607
|
+
transitions: a = {},
|
|
2608
|
+
typography: l = {},
|
|
2609
|
+
shape: d,
|
|
2610
|
+
colorSpace: p,
|
|
2611
|
+
...m
|
|
2609
2612
|
} = e;
|
|
2610
2613
|
if (e.vars && // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.
|
|
2611
2614
|
// `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider.
|
|
2612
2615
|
e.generateThemeVars === void 0)
|
|
2613
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." :
|
|
2614
|
-
const
|
|
2615
|
-
...
|
|
2616
|
-
colorSpace:
|
|
2617
|
-
}),
|
|
2618
|
-
let
|
|
2619
|
-
mixins: Bn(
|
|
2620
|
-
palette:
|
|
2616
|
+
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." : ye(20));
|
|
2617
|
+
const g = mr({
|
|
2618
|
+
...s,
|
|
2619
|
+
colorSpace: p
|
|
2620
|
+
}), h = gn(e);
|
|
2621
|
+
let u = te(h, {
|
|
2622
|
+
mixins: Bn(h.breakpoints, n),
|
|
2623
|
+
palette: g,
|
|
2621
2624
|
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
2622
2625
|
shadows: Wn.slice(),
|
|
2623
|
-
typography: jn(
|
|
2624
|
-
transitions: qn(
|
|
2626
|
+
typography: jn(g, l),
|
|
2627
|
+
transitions: qn(a),
|
|
2625
2628
|
zIndex: {
|
|
2626
2629
|
...Gn
|
|
2627
2630
|
}
|
|
2628
2631
|
});
|
|
2629
|
-
if (
|
|
2630
|
-
const
|
|
2632
|
+
if (u = te(u, m), u = r.reduce((v, c) => te(v, c), u), process.env.NODE_ENV !== "production") {
|
|
2633
|
+
const v = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], c = (E, _) => {
|
|
2631
2634
|
let j;
|
|
2632
2635
|
for (j in E) {
|
|
2633
2636
|
const F = E[j];
|
|
2634
|
-
if (
|
|
2637
|
+
if (v.includes(j) && Object.keys(F).length > 0) {
|
|
2635
2638
|
if (process.env.NODE_ENV !== "production") {
|
|
2636
2639
|
const $ = yn("", j);
|
|
2637
2640
|
console.error([`MUI: The \`${_}\` component increases the CSS specificity of the \`${j}\` internal state.`, "You can not override it like this: ", JSON.stringify(E, null, 2), "", `Instead, you need to use the '&.${$}' syntax:`, JSON.stringify({
|
|
@@ -2645,20 +2648,20 @@ function ur(e = {}, ...r) {
|
|
|
2645
2648
|
}
|
|
2646
2649
|
}
|
|
2647
2650
|
};
|
|
2648
|
-
Object.keys(
|
|
2649
|
-
const _ =
|
|
2651
|
+
Object.keys(u.components).forEach((E) => {
|
|
2652
|
+
const _ = u.components[E].styleOverrides;
|
|
2650
2653
|
_ && E.startsWith("Mui") && c(_, E);
|
|
2651
2654
|
});
|
|
2652
2655
|
}
|
|
2653
|
-
return
|
|
2656
|
+
return u.unstable_sxConfig = {
|
|
2654
2657
|
...Ge,
|
|
2655
|
-
...
|
|
2656
|
-
},
|
|
2658
|
+
...m == null ? void 0 : m.unstable_sxConfig
|
|
2659
|
+
}, u.unstable_sx = function(c) {
|
|
2657
2660
|
return Ke({
|
|
2658
2661
|
sx: c,
|
|
2659
2662
|
theme: this
|
|
2660
2663
|
});
|
|
2661
|
-
},
|
|
2664
|
+
}, u.toRuntimeSource = tt, Qn(u), u;
|
|
2662
2665
|
}
|
|
2663
2666
|
function Xn(e) {
|
|
2664
2667
|
let r;
|
|
@@ -2690,19 +2693,19 @@ function Zn(e) {
|
|
|
2690
2693
|
opacity: t,
|
|
2691
2694
|
overlays: n,
|
|
2692
2695
|
colorSpace: o,
|
|
2693
|
-
...
|
|
2694
|
-
} = e,
|
|
2696
|
+
...s
|
|
2697
|
+
} = e, a = mr({
|
|
2695
2698
|
...r,
|
|
2696
2699
|
colorSpace: o
|
|
2697
2700
|
});
|
|
2698
2701
|
return {
|
|
2699
|
-
palette:
|
|
2702
|
+
palette: a,
|
|
2700
2703
|
opacity: {
|
|
2701
|
-
...nt(
|
|
2704
|
+
...nt(a.mode),
|
|
2702
2705
|
...t
|
|
2703
2706
|
},
|
|
2704
|
-
overlays: n || ot(
|
|
2705
|
-
...
|
|
2707
|
+
overlays: n || ot(a.mode),
|
|
2708
|
+
...s
|
|
2706
2709
|
};
|
|
2707
2710
|
}
|
|
2708
2711
|
function eo(e) {
|
|
@@ -2712,38 +2715,38 @@ function eo(e) {
|
|
|
2712
2715
|
}
|
|
2713
2716
|
const ro = (e) => [...[...Array(25)].map((r, t) => `--${e ? `${e}-` : ""}overlays-${t}`), `--${e ? `${e}-` : ""}palette-AppBar-darkBg`, `--${e ? `${e}-` : ""}palette-AppBar-darkColor`], to = (e) => (r, t) => {
|
|
2714
2717
|
const n = e.rootSelector || ":root", o = e.colorSchemeSelector;
|
|
2715
|
-
let
|
|
2716
|
-
if (o === "class" && (
|
|
2718
|
+
let s = o;
|
|
2719
|
+
if (o === "class" && (s = ".%s"), o === "data" && (s = "[data-%s]"), o != null && o.startsWith("data-") && !o.includes("%s") && (s = `[${o}="%s"]`), e.defaultColorScheme === r) {
|
|
2717
2720
|
if (r === "dark") {
|
|
2718
|
-
const
|
|
2719
|
-
return ro(e.cssVarPrefix).forEach((
|
|
2720
|
-
|
|
2721
|
-
}),
|
|
2721
|
+
const a = {};
|
|
2722
|
+
return ro(e.cssVarPrefix).forEach((l) => {
|
|
2723
|
+
a[l] = t[l], delete t[l];
|
|
2724
|
+
}), s === "media" ? {
|
|
2722
2725
|
[n]: t,
|
|
2723
2726
|
"@media (prefers-color-scheme: dark)": {
|
|
2724
|
-
[n]:
|
|
2727
|
+
[n]: a
|
|
2725
2728
|
}
|
|
2726
|
-
} :
|
|
2727
|
-
[
|
|
2728
|
-
[`${n}, ${
|
|
2729
|
+
} : s ? {
|
|
2730
|
+
[s.replace("%s", r)]: a,
|
|
2731
|
+
[`${n}, ${s.replace("%s", r)}`]: t
|
|
2729
2732
|
} : {
|
|
2730
2733
|
[n]: {
|
|
2731
2734
|
...t,
|
|
2732
|
-
...
|
|
2735
|
+
...a
|
|
2733
2736
|
}
|
|
2734
2737
|
};
|
|
2735
2738
|
}
|
|
2736
|
-
if (
|
|
2737
|
-
return `${n}, ${
|
|
2739
|
+
if (s && s !== "media")
|
|
2740
|
+
return `${n}, ${s.replace("%s", String(r))}`;
|
|
2738
2741
|
} else if (r) {
|
|
2739
|
-
if (
|
|
2742
|
+
if (s === "media")
|
|
2740
2743
|
return {
|
|
2741
2744
|
[`@media (prefers-color-scheme: ${String(r)})`]: {
|
|
2742
2745
|
[n]: t
|
|
2743
2746
|
}
|
|
2744
2747
|
};
|
|
2745
|
-
if (
|
|
2746
|
-
return
|
|
2748
|
+
if (s)
|
|
2749
|
+
return s.replace("%s", String(r));
|
|
2747
2750
|
}
|
|
2748
2751
|
return n;
|
|
2749
2752
|
};
|
|
@@ -2752,14 +2755,14 @@ function no(e, r) {
|
|
|
2752
2755
|
e[t] || (e[t] = {});
|
|
2753
2756
|
});
|
|
2754
2757
|
}
|
|
2755
|
-
function
|
|
2758
|
+
function f(e, r, t) {
|
|
2756
2759
|
!e[r] && t && (e[r] = t);
|
|
2757
2760
|
}
|
|
2758
2761
|
function Oe(e) {
|
|
2759
2762
|
return typeof e != "string" || !e.startsWith("hsl") ? e : Xr(e);
|
|
2760
2763
|
}
|
|
2761
|
-
function
|
|
2762
|
-
`${r}Channel` in e || (e[`${r}Channel`] =
|
|
2764
|
+
function ue(e, r) {
|
|
2765
|
+
`${r}Channel` in e || (e[`${r}Channel`] = xe(Oe(e[r]), `MUI: Can't create \`palette.${r}Channel\` because \`palette.${r}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
2763
2766
|
To suppress this warning, you need to explicitly provide the \`palette.${r}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`));
|
|
2764
2767
|
}
|
|
2765
2768
|
function oo(e) {
|
|
@@ -2775,12 +2778,12 @@ function ar(e, r, t, n, o) {
|
|
|
2775
2778
|
if (!t)
|
|
2776
2779
|
return;
|
|
2777
2780
|
t = t === !0 ? {} : t;
|
|
2778
|
-
const
|
|
2781
|
+
const s = o === "dark" ? "dark" : "light";
|
|
2779
2782
|
if (!n) {
|
|
2780
2783
|
r[o] = Zn({
|
|
2781
2784
|
...t,
|
|
2782
2785
|
palette: {
|
|
2783
|
-
mode:
|
|
2786
|
+
mode: s,
|
|
2784
2787
|
...t == null ? void 0 : t.palette
|
|
2785
2788
|
},
|
|
2786
2789
|
colorSpace: e
|
|
@@ -2788,25 +2791,25 @@ function ar(e, r, t, n, o) {
|
|
|
2788
2791
|
return;
|
|
2789
2792
|
}
|
|
2790
2793
|
const {
|
|
2791
|
-
palette:
|
|
2792
|
-
...
|
|
2793
|
-
} =
|
|
2794
|
+
palette: a,
|
|
2795
|
+
...l
|
|
2796
|
+
} = lr({
|
|
2794
2797
|
...n,
|
|
2795
2798
|
palette: {
|
|
2796
|
-
mode:
|
|
2799
|
+
mode: s,
|
|
2797
2800
|
...t == null ? void 0 : t.palette
|
|
2798
2801
|
},
|
|
2799
2802
|
colorSpace: e
|
|
2800
2803
|
});
|
|
2801
2804
|
return r[o] = {
|
|
2802
2805
|
...t,
|
|
2803
|
-
palette:
|
|
2806
|
+
palette: a,
|
|
2804
2807
|
opacity: {
|
|
2805
|
-
...nt(
|
|
2808
|
+
...nt(s),
|
|
2806
2809
|
...t == null ? void 0 : t.opacity
|
|
2807
2810
|
},
|
|
2808
|
-
overlays: (t == null ? void 0 : t.overlays) || ot(
|
|
2809
|
-
},
|
|
2811
|
+
overlays: (t == null ? void 0 : t.overlays) || ot(s)
|
|
2812
|
+
}, l;
|
|
2810
2813
|
}
|
|
2811
2814
|
function ao(e = {}, ...r) {
|
|
2812
2815
|
const {
|
|
@@ -2815,93 +2818,93 @@ function ao(e = {}, ...r) {
|
|
|
2815
2818
|
},
|
|
2816
2819
|
defaultColorScheme: n,
|
|
2817
2820
|
disableCssColorScheme: o = !1,
|
|
2818
|
-
cssVarPrefix:
|
|
2819
|
-
nativeColor:
|
|
2820
|
-
shouldSkipGeneratingVar:
|
|
2821
|
-
colorSchemeSelector:
|
|
2822
|
-
rootSelector:
|
|
2823
|
-
...
|
|
2824
|
-
} = e,
|
|
2825
|
-
[
|
|
2821
|
+
cssVarPrefix: s = "mui",
|
|
2822
|
+
nativeColor: a = !1,
|
|
2823
|
+
shouldSkipGeneratingVar: l = eo,
|
|
2824
|
+
colorSchemeSelector: d = t.light && t.dark ? "media" : void 0,
|
|
2825
|
+
rootSelector: p = ":root",
|
|
2826
|
+
...m
|
|
2827
|
+
} = e, g = Object.keys(t)[0], h = n || (t.light && g !== "light" ? "light" : g), u = io(s), {
|
|
2828
|
+
[h]: v,
|
|
2826
2829
|
light: c,
|
|
2827
2830
|
dark: E,
|
|
2828
2831
|
..._
|
|
2829
2832
|
} = t, j = {
|
|
2830
2833
|
..._
|
|
2831
2834
|
};
|
|
2832
|
-
let F =
|
|
2833
|
-
if ((
|
|
2834
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${
|
|
2835
|
+
let F = v;
|
|
2836
|
+
if ((h === "dark" && !("dark" in t) || h === "light" && !("light" in t)) && (F = !0), !F)
|
|
2837
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${h}\` option is either missing or invalid.` : ye(21, h));
|
|
2835
2838
|
let $;
|
|
2836
|
-
|
|
2837
|
-
const
|
|
2839
|
+
a && ($ = "oklch");
|
|
2840
|
+
const b = ar($, j, F, m, h);
|
|
2838
2841
|
c && !j.light && ar($, j, c, void 0, "light"), E && !j.dark && ar($, j, E, void 0, "dark");
|
|
2839
|
-
let
|
|
2840
|
-
defaultColorScheme:
|
|
2841
|
-
...
|
|
2842
|
-
cssVarPrefix:
|
|
2843
|
-
colorSchemeSelector:
|
|
2844
|
-
rootSelector:
|
|
2845
|
-
getCssVar:
|
|
2842
|
+
let x = {
|
|
2843
|
+
defaultColorScheme: h,
|
|
2844
|
+
...b,
|
|
2845
|
+
cssVarPrefix: s,
|
|
2846
|
+
colorSchemeSelector: d,
|
|
2847
|
+
rootSelector: p,
|
|
2848
|
+
getCssVar: u,
|
|
2846
2849
|
colorSchemes: j,
|
|
2847
2850
|
font: {
|
|
2848
|
-
...Mn(
|
|
2849
|
-
...
|
|
2851
|
+
...Mn(b.typography),
|
|
2852
|
+
...b.font
|
|
2850
2853
|
},
|
|
2851
|
-
spacing: oo(
|
|
2854
|
+
spacing: oo(m.spacing)
|
|
2852
2855
|
};
|
|
2853
|
-
Object.keys(
|
|
2854
|
-
const i =
|
|
2856
|
+
Object.keys(x.colorSchemes).forEach((K) => {
|
|
2857
|
+
const i = x.colorSchemes[K].palette, w = (I) => {
|
|
2855
2858
|
const N = I.split("-"), J = N[1], ae = N[2];
|
|
2856
|
-
return
|
|
2859
|
+
return u(I, i[J][ae]);
|
|
2857
2860
|
};
|
|
2858
|
-
i.mode === "light" && (
|
|
2859
|
-
function
|
|
2861
|
+
i.mode === "light" && (f(i.common, "background", "#fff"), f(i.common, "onBackground", "#000")), i.mode === "dark" && (f(i.common, "background", "#000"), f(i.common, "onBackground", "#fff"));
|
|
2862
|
+
function S(I, N, J) {
|
|
2860
2863
|
if ($) {
|
|
2861
2864
|
let ae;
|
|
2862
|
-
return I ===
|
|
2865
|
+
return I === he && (ae = `transparent ${((1 - J) * 100).toFixed(0)}%`), I === Y && (ae = `#000 ${(J * 100).toFixed(0)}%`), I === U && (ae = `#fff ${(J * 100).toFixed(0)}%`), `color-mix(in ${$}, ${N}, ${ae})`;
|
|
2863
2866
|
}
|
|
2864
2867
|
return I(N, J);
|
|
2865
2868
|
}
|
|
2866
2869
|
if (no(i, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), i.mode === "light") {
|
|
2867
|
-
|
|
2868
|
-
const I = $ ?
|
|
2869
|
-
|
|
2870
|
+
f(i.Alert, "errorColor", S(Y, a ? u("palette-error-light") : i.error.light, 0.6)), f(i.Alert, "infoColor", S(Y, a ? u("palette-info-light") : i.info.light, 0.6)), f(i.Alert, "successColor", S(Y, a ? u("palette-success-light") : i.success.light, 0.6)), f(i.Alert, "warningColor", S(Y, a ? u("palette-warning-light") : i.warning.light, 0.6)), f(i.Alert, "errorFilledBg", w("palette-error-main")), f(i.Alert, "infoFilledBg", w("palette-info-main")), f(i.Alert, "successFilledBg", w("palette-success-main")), f(i.Alert, "warningFilledBg", w("palette-warning-main")), f(i.Alert, "errorFilledColor", ce(() => i.getContrastText(i.error.main))), f(i.Alert, "infoFilledColor", ce(() => i.getContrastText(i.info.main))), f(i.Alert, "successFilledColor", ce(() => i.getContrastText(i.success.main))), f(i.Alert, "warningFilledColor", ce(() => i.getContrastText(i.warning.main))), f(i.Alert, "errorStandardBg", S(U, a ? u("palette-error-light") : i.error.light, 0.9)), f(i.Alert, "infoStandardBg", S(U, a ? u("palette-info-light") : i.info.light, 0.9)), f(i.Alert, "successStandardBg", S(U, a ? u("palette-success-light") : i.success.light, 0.9)), f(i.Alert, "warningStandardBg", S(U, a ? u("palette-warning-light") : i.warning.light, 0.9)), f(i.Alert, "errorIconColor", w("palette-error-main")), f(i.Alert, "infoIconColor", w("palette-info-main")), f(i.Alert, "successIconColor", w("palette-success-main")), f(i.Alert, "warningIconColor", w("palette-warning-main")), f(i.AppBar, "defaultBg", w("palette-grey-100")), f(i.Avatar, "defaultBg", w("palette-grey-400")), f(i.Button, "inheritContainedBg", w("palette-grey-300")), f(i.Button, "inheritContainedHoverBg", w("palette-grey-A100")), f(i.Chip, "defaultBorder", w("palette-grey-400")), f(i.Chip, "defaultAvatarColor", w("palette-grey-700")), f(i.Chip, "defaultIconColor", w("palette-grey-700")), f(i.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), f(i.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), f(i.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), f(i.LinearProgress, "primaryBg", S(U, a ? u("palette-primary-main") : i.primary.main, 0.62)), f(i.LinearProgress, "secondaryBg", S(U, a ? u("palette-secondary-main") : i.secondary.main, 0.62)), f(i.LinearProgress, "errorBg", S(U, a ? u("palette-error-main") : i.error.main, 0.62)), f(i.LinearProgress, "infoBg", S(U, a ? u("palette-info-main") : i.info.main, 0.62)), f(i.LinearProgress, "successBg", S(U, a ? u("palette-success-main") : i.success.main, 0.62)), f(i.LinearProgress, "warningBg", S(U, a ? u("palette-warning-light") : i.warning.main, 0.62)), f(i.Skeleton, "bg", $ ? S(he, a ? u("palette-text-primary") : i.text.primary, 0.11) : `rgba(${w("palette-text-primaryChannel")} / 0.11)`), f(i.Slider, "primaryTrack", S(U, a ? u("palette-primary-main") : i.primary.main, 0.62)), f(i.Slider, "secondaryTrack", S(U, a ? u("palette-secondary-main") : i.secondary.main, 0.62)), f(i.Slider, "errorTrack", S(U, a ? u("palette-error-main") : i.error.main, 0.62)), f(i.Slider, "infoTrack", S(U, a ? u("palette-info-main") : i.info.main, 0.62)), f(i.Slider, "successTrack", S(U, a ? u("palette-success-main") : i.success.main, 0.62)), f(i.Slider, "warningTrack", S(U, a ? u("palette-warning-main") : i.warning.main, 0.62));
|
|
2871
|
+
const I = $ ? S(Y, a ? u("palette-background-default") : i.background.default, 0.6825) : Be(i.background.default, 0.8);
|
|
2872
|
+
f(i.SnackbarContent, "bg", I), f(i.SnackbarContent, "color", ce(() => $ ? cr.text.primary : i.getContrastText(I))), f(i.SpeedDialAction, "fabHoverBg", Be(i.background.paper, 0.15)), f(i.StepConnector, "border", w("palette-grey-400")), f(i.StepContent, "border", w("palette-grey-400")), f(i.Switch, "defaultColor", w("palette-common-white")), f(i.Switch, "defaultDisabledColor", w("palette-grey-100")), f(i.Switch, "primaryDisabledColor", S(U, a ? u("palette-primary-main") : i.primary.main, 0.62)), f(i.Switch, "secondaryDisabledColor", S(U, a ? u("palette-secondary-main") : i.secondary.main, 0.62)), f(i.Switch, "errorDisabledColor", S(U, a ? u("palette-error-main") : i.error.main, 0.62)), f(i.Switch, "infoDisabledColor", S(U, a ? u("palette-info-main") : i.info.main, 0.62)), f(i.Switch, "successDisabledColor", S(U, a ? u("palette-success-main") : i.success.main, 0.62)), f(i.Switch, "warningDisabledColor", S(U, a ? u("palette-warning-main") : i.warning.main, 0.62)), f(i.TableCell, "border", S(U, he(a ? u("palette-divider") : i.divider, 1), 0.88)), f(i.Tooltip, "bg", S(he, a ? u("palette-grey-700") : i.grey[700], 0.92));
|
|
2870
2873
|
}
|
|
2871
2874
|
if (i.mode === "dark") {
|
|
2872
|
-
|
|
2873
|
-
const I = $ ?
|
|
2874
|
-
|
|
2875
|
+
f(i.Alert, "errorColor", S(U, a ? u("palette-error-light") : i.error.light, 0.6)), f(i.Alert, "infoColor", S(U, a ? u("palette-info-light") : i.info.light, 0.6)), f(i.Alert, "successColor", S(U, a ? u("palette-success-light") : i.success.light, 0.6)), f(i.Alert, "warningColor", S(U, a ? u("palette-warning-light") : i.warning.light, 0.6)), f(i.Alert, "errorFilledBg", w("palette-error-dark")), f(i.Alert, "infoFilledBg", w("palette-info-dark")), f(i.Alert, "successFilledBg", w("palette-success-dark")), f(i.Alert, "warningFilledBg", w("palette-warning-dark")), f(i.Alert, "errorFilledColor", ce(() => i.getContrastText(i.error.dark))), f(i.Alert, "infoFilledColor", ce(() => i.getContrastText(i.info.dark))), f(i.Alert, "successFilledColor", ce(() => i.getContrastText(i.success.dark))), f(i.Alert, "warningFilledColor", ce(() => i.getContrastText(i.warning.dark))), f(i.Alert, "errorStandardBg", S(Y, a ? u("palette-error-light") : i.error.light, 0.9)), f(i.Alert, "infoStandardBg", S(Y, a ? u("palette-info-light") : i.info.light, 0.9)), f(i.Alert, "successStandardBg", S(Y, a ? u("palette-success-light") : i.success.light, 0.9)), f(i.Alert, "warningStandardBg", S(Y, a ? u("palette-warning-light") : i.warning.light, 0.9)), f(i.Alert, "errorIconColor", w("palette-error-main")), f(i.Alert, "infoIconColor", w("palette-info-main")), f(i.Alert, "successIconColor", w("palette-success-main")), f(i.Alert, "warningIconColor", w("palette-warning-main")), f(i.AppBar, "defaultBg", w("palette-grey-900")), f(i.AppBar, "darkBg", w("palette-background-paper")), f(i.AppBar, "darkColor", w("palette-text-primary")), f(i.Avatar, "defaultBg", w("palette-grey-600")), f(i.Button, "inheritContainedBg", w("palette-grey-800")), f(i.Button, "inheritContainedHoverBg", w("palette-grey-700")), f(i.Chip, "defaultBorder", w("palette-grey-700")), f(i.Chip, "defaultAvatarColor", w("palette-grey-300")), f(i.Chip, "defaultIconColor", w("palette-grey-300")), f(i.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), f(i.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), f(i.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), f(i.LinearProgress, "primaryBg", S(Y, a ? u("palette-primary-main") : i.primary.main, 0.5)), f(i.LinearProgress, "secondaryBg", S(Y, a ? u("palette-secondary-main") : i.secondary.main, 0.5)), f(i.LinearProgress, "errorBg", S(Y, a ? u("palette-error-main") : i.error.main, 0.5)), f(i.LinearProgress, "infoBg", S(Y, a ? u("palette-info-main") : i.info.main, 0.5)), f(i.LinearProgress, "successBg", S(Y, a ? u("palette-success-main") : i.success.main, 0.5)), f(i.LinearProgress, "warningBg", S(Y, a ? u("palette-warning-main") : i.warning.main, 0.5)), f(i.Skeleton, "bg", $ ? S(he, a ? u("palette-text-primary") : i.text.primary, 0.13) : `rgba(${w("palette-text-primaryChannel")} / 0.13)`), f(i.Slider, "primaryTrack", S(Y, a ? u("palette-primary-main") : i.primary.main, 0.5)), f(i.Slider, "secondaryTrack", S(Y, a ? u("palette-secondary-main") : i.secondary.main, 0.5)), f(i.Slider, "errorTrack", S(Y, a ? u("palette-error-main") : i.error.main, 0.5)), f(i.Slider, "infoTrack", S(Y, a ? u("palette-info-main") : i.info.main, 0.5)), f(i.Slider, "successTrack", S(Y, a ? u("palette-success-main") : i.success.main, 0.5)), f(i.Slider, "warningTrack", S(Y, a ? u("palette-warning-light") : i.warning.main, 0.5));
|
|
2876
|
+
const I = $ ? S(U, a ? u("palette-background-default") : i.background.default, 0.985) : Be(i.background.default, 0.98);
|
|
2877
|
+
f(i.SnackbarContent, "bg", I), f(i.SnackbarContent, "color", ce(() => $ ? et.text.primary : i.getContrastText(I))), f(i.SpeedDialAction, "fabHoverBg", Be(i.background.paper, 0.15)), f(i.StepConnector, "border", w("palette-grey-600")), f(i.StepContent, "border", w("palette-grey-600")), f(i.Switch, "defaultColor", w("palette-grey-300")), f(i.Switch, "defaultDisabledColor", w("palette-grey-600")), f(i.Switch, "primaryDisabledColor", S(Y, a ? u("palette-primary-main") : i.primary.main, 0.55)), f(i.Switch, "secondaryDisabledColor", S(Y, a ? u("palette-secondary-main") : i.secondary.main, 0.55)), f(i.Switch, "errorDisabledColor", S(Y, a ? u("palette-error-main") : i.error.main, 0.55)), f(i.Switch, "infoDisabledColor", S(Y, a ? u("palette-info-main") : i.info.main, 0.55)), f(i.Switch, "successDisabledColor", S(Y, a ? u("palette-success-main") : i.success.main, 0.55)), f(i.Switch, "warningDisabledColor", S(Y, a ? u("palette-warning-light") : i.warning.main, 0.55)), f(i.TableCell, "border", S(Y, he(a ? u("palette-divider") : i.divider, 1), 0.68)), f(i.Tooltip, "bg", S(he, a ? u("palette-grey-700") : i.grey[700], 0.92));
|
|
2875
2878
|
}
|
|
2876
|
-
|
|
2879
|
+
ue(i.background, "default"), ue(i.background, "paper"), ue(i.common, "background"), ue(i.common, "onBackground"), ue(i, "divider"), Object.keys(i).forEach((I) => {
|
|
2877
2880
|
const N = i[I];
|
|
2878
|
-
I !== "tonalOffset" && N && typeof N == "object" && (N.main &&
|
|
2881
|
+
I !== "tonalOffset" && N && typeof N == "object" && (N.main && f(i[I], "mainChannel", xe(Oe(N.main))), N.light && f(i[I], "lightChannel", xe(Oe(N.light))), N.dark && f(i[I], "darkChannel", xe(Oe(N.dark))), N.contrastText && f(i[I], "contrastTextChannel", xe(Oe(N.contrastText))), I === "text" && (ue(i[I], "primary"), ue(i[I], "secondary")), I === "action" && (N.active && ue(i[I], "active"), N.selected && ue(i[I], "selected")));
|
|
2879
2882
|
});
|
|
2880
|
-
}),
|
|
2883
|
+
}), x = r.reduce((K, i) => te(K, i), x);
|
|
2881
2884
|
const ee = {
|
|
2882
|
-
prefix:
|
|
2885
|
+
prefix: s,
|
|
2883
2886
|
disableCssColorScheme: o,
|
|
2884
|
-
shouldSkipGeneratingVar:
|
|
2885
|
-
getSelector: to(
|
|
2886
|
-
enableContrastVars:
|
|
2887
|
+
shouldSkipGeneratingVar: l,
|
|
2888
|
+
getSelector: to(x),
|
|
2889
|
+
enableContrastVars: a
|
|
2887
2890
|
}, {
|
|
2888
2891
|
vars: ne,
|
|
2889
|
-
generateThemeVars:
|
|
2892
|
+
generateThemeVars: le,
|
|
2890
2893
|
generateStyleSheets: de
|
|
2891
|
-
} =
|
|
2892
|
-
return
|
|
2893
|
-
|
|
2894
|
-
}),
|
|
2895
|
-
return Qr(
|
|
2896
|
-
},
|
|
2894
|
+
} = wn(x, ee);
|
|
2895
|
+
return x.vars = ne, Object.entries(x.colorSchemes[x.defaultColorScheme]).forEach(([K, i]) => {
|
|
2896
|
+
x[K] = i;
|
|
2897
|
+
}), x.generateThemeVars = le, x.generateStyleSheets = de, x.generateSpacing = function() {
|
|
2898
|
+
return Qr(m.spacing, fr(this));
|
|
2899
|
+
}, x.getColorSchemeSelector = xn(d), x.spacing = x.generateSpacing(), x.shouldSkipGeneratingVar = l, x.unstable_sxConfig = {
|
|
2897
2900
|
...Ge,
|
|
2898
|
-
...
|
|
2899
|
-
},
|
|
2901
|
+
...m == null ? void 0 : m.unstable_sxConfig
|
|
2902
|
+
}, x.unstable_sx = function(i) {
|
|
2900
2903
|
return Ke({
|
|
2901
2904
|
sx: i,
|
|
2902
2905
|
theme: this
|
|
2903
2906
|
});
|
|
2904
|
-
},
|
|
2907
|
+
}, x.toRuntimeSource = tt, x;
|
|
2905
2908
|
}
|
|
2906
2909
|
function Wr(e, r, t) {
|
|
2907
2910
|
e.colorSchemes && t && (e.colorSchemes[r] = {
|
|
@@ -2920,40 +2923,40 @@ function co(e = {}, ...r) {
|
|
|
2920
2923
|
colorSchemes: o = t ? void 0 : {
|
|
2921
2924
|
light: !0
|
|
2922
2925
|
},
|
|
2923
|
-
defaultColorScheme:
|
|
2924
|
-
...
|
|
2925
|
-
} = e,
|
|
2926
|
+
defaultColorScheme: s = t == null ? void 0 : t.mode,
|
|
2927
|
+
...a
|
|
2928
|
+
} = e, l = s || "light", d = o == null ? void 0 : o[l], p = {
|
|
2926
2929
|
...o,
|
|
2927
2930
|
...t ? {
|
|
2928
|
-
[
|
|
2929
|
-
...typeof
|
|
2931
|
+
[l]: {
|
|
2932
|
+
...typeof d != "boolean" && d,
|
|
2930
2933
|
palette: t
|
|
2931
2934
|
}
|
|
2932
2935
|
} : void 0
|
|
2933
2936
|
};
|
|
2934
2937
|
if (n === !1) {
|
|
2935
2938
|
if (!("colorSchemes" in e))
|
|
2936
|
-
return
|
|
2937
|
-
let
|
|
2938
|
-
"palette" in e ||
|
|
2939
|
+
return lr(e, ...r);
|
|
2940
|
+
let m = t;
|
|
2941
|
+
"palette" in e || p[l] && (p[l] !== !0 ? m = p[l].palette : l === "dark" && (m = {
|
|
2939
2942
|
mode: "dark"
|
|
2940
2943
|
}));
|
|
2941
|
-
const
|
|
2944
|
+
const g = lr({
|
|
2942
2945
|
...e,
|
|
2943
|
-
palette:
|
|
2946
|
+
palette: m
|
|
2944
2947
|
}, ...r);
|
|
2945
|
-
return
|
|
2946
|
-
...
|
|
2947
|
-
palette:
|
|
2948
|
-
}, Wr(
|
|
2949
|
-
...
|
|
2950
|
-
palette:
|
|
2951
|
-
}, Wr(
|
|
2948
|
+
return g.defaultColorScheme = l, g.colorSchemes = p, g.palette.mode === "light" && (g.colorSchemes.light = {
|
|
2949
|
+
...p.light !== !0 && p.light,
|
|
2950
|
+
palette: g.palette
|
|
2951
|
+
}, Wr(g, "dark", p.dark)), g.palette.mode === "dark" && (g.colorSchemes.dark = {
|
|
2952
|
+
...p.dark !== !0 && p.dark,
|
|
2953
|
+
palette: g.palette
|
|
2954
|
+
}, Wr(g, "light", p.light)), g;
|
|
2952
2955
|
}
|
|
2953
|
-
return !t && !("light" in
|
|
2954
|
-
...
|
|
2955
|
-
colorSchemes:
|
|
2956
|
-
defaultColorScheme:
|
|
2956
|
+
return !t && !("light" in p) && l === "light" && (p.light = !0), ao({
|
|
2957
|
+
...a,
|
|
2958
|
+
colorSchemes: p,
|
|
2959
|
+
defaultColorScheme: l,
|
|
2957
2960
|
...typeof n != "boolean" && n
|
|
2958
2961
|
}, ...r);
|
|
2959
2962
|
}
|
|
@@ -2964,7 +2967,7 @@ export {
|
|
|
2964
2967
|
co as c,
|
|
2965
2968
|
Ge as d,
|
|
2966
2969
|
te as e,
|
|
2967
|
-
|
|
2970
|
+
ye as f,
|
|
2968
2971
|
yn as g,
|
|
2969
2972
|
Jr as h,
|
|
2970
2973
|
pe as i,
|