@codeplex-sac/theme 0.0.5 → 0.0.7
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/index.cjs +9 -9
- package/index.js +242 -239
- package/package.json +7 -7
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as ne, jsxs as $t } from "react/jsx-runtime";
|
|
2
2
|
import * as _ from "react";
|
|
3
|
-
import xo, { forwardRef as wo, useContext as $o, createContext as Oo, useState as ko, useCallback as qt, useEffect as
|
|
3
|
+
import xo, { forwardRef as wo, useContext as $o, createContext as Oo, useState as ko, useCallback as qt, useEffect as ir, useMemo as _o } from "react";
|
|
4
4
|
const tt = {
|
|
5
5
|
black: "#000",
|
|
6
6
|
white: "#fff"
|
|
@@ -63,14 +63,14 @@ function Re(e, ...t) {
|
|
|
63
63
|
return t.forEach((n) => r.searchParams.append("args[]", n)), `Minified MUI error #${e}; visit ${r} for the full message.`;
|
|
64
64
|
}
|
|
65
65
|
const Le = "$$material";
|
|
66
|
-
function
|
|
67
|
-
return
|
|
66
|
+
function ar() {
|
|
67
|
+
return ar = Object.assign ? Object.assign.bind() : function(e) {
|
|
68
68
|
for (var t = 1; t < arguments.length; t++) {
|
|
69
69
|
var r = arguments[t];
|
|
70
70
|
for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
71
71
|
}
|
|
72
72
|
return e;
|
|
73
|
-
},
|
|
73
|
+
}, ar.apply(null, arguments);
|
|
74
74
|
}
|
|
75
75
|
function Ao(e) {
|
|
76
76
|
if (e.sheet)
|
|
@@ -112,7 +112,7 @@ var No = /* @__PURE__ */ (function() {
|
|
|
112
112
|
return (o = n.parentNode) == null ? void 0 : o.removeChild(n);
|
|
113
113
|
}), this.tags = [], this.ctr = 0;
|
|
114
114
|
}, e;
|
|
115
|
-
})(), de = "-ms-", Tt = "-moz-", K = "-webkit-", Nn = "comm",
|
|
115
|
+
})(), de = "-ms-", Tt = "-moz-", K = "-webkit-", Nn = "comm", hr = "rule", gr = "decl", Mo = "@import", Mn = "@keyframes", Io = "@layer", Do = Math.abs, Ot = String.fromCharCode, jo = Object.assign;
|
|
116
116
|
function Lo(e, t) {
|
|
117
117
|
return le(e, 0) ^ 45 ? (((t << 2 ^ le(e, 0)) << 2 ^ le(e, 1)) << 2 ^ le(e, 2)) << 2 ^ le(e, 3) : 0;
|
|
118
118
|
}
|
|
@@ -125,7 +125,7 @@ function Bo(e, t) {
|
|
|
125
125
|
function H(e, t, r) {
|
|
126
126
|
return e.replace(t, r);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function sr(e, t) {
|
|
129
129
|
return e.indexOf(t);
|
|
130
130
|
}
|
|
131
131
|
function le(e, t) {
|
|
@@ -137,7 +137,7 @@ function rt(e, t, r) {
|
|
|
137
137
|
function $e(e) {
|
|
138
138
|
return e.length;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function yr(e) {
|
|
141
141
|
return e.length;
|
|
142
142
|
}
|
|
143
143
|
function pt(e, t) {
|
|
@@ -216,7 +216,7 @@ function Ln(e) {
|
|
|
216
216
|
return Ge = "", e;
|
|
217
217
|
}
|
|
218
218
|
function St(e) {
|
|
219
|
-
return In(at(he - 1,
|
|
219
|
+
return In(at(he - 1, cr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
220
220
|
}
|
|
221
221
|
function Uo(e) {
|
|
222
222
|
for (; (ce = ke()) && ce < 33; )
|
|
@@ -228,7 +228,7 @@ function zo(e, t) {
|
|
|
228
228
|
;
|
|
229
229
|
return at(e, vt() + (t < 6 && ke() == 32 && be() == 32));
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function cr(e) {
|
|
232
232
|
for (; be(); )
|
|
233
233
|
switch (ce) {
|
|
234
234
|
// ] ) " '
|
|
@@ -237,11 +237,11 @@ function sr(e) {
|
|
|
237
237
|
// " '
|
|
238
238
|
case 34:
|
|
239
239
|
case 39:
|
|
240
|
-
e !== 34 && e !== 39 &&
|
|
240
|
+
e !== 34 && e !== 39 && cr(ce);
|
|
241
241
|
break;
|
|
242
242
|
// (
|
|
243
243
|
case 40:
|
|
244
|
-
e === 41 &&
|
|
244
|
+
e === 41 && cr(e);
|
|
245
245
|
break;
|
|
246
246
|
// \
|
|
247
247
|
case 92:
|
|
@@ -270,7 +270,7 @@ function Ct(e, t, r, n, o, i, a, c, u) {
|
|
|
270
270
|
// (
|
|
271
271
|
case 40:
|
|
272
272
|
if (g != 108 && le(I, p - 1) == 58) {
|
|
273
|
-
|
|
273
|
+
sr(I += H(St(k), "&", "&\f"), "&\f") != -1 && (E = -1);
|
|
274
274
|
break;
|
|
275
275
|
}
|
|
276
276
|
// " ' [
|
|
@@ -315,14 +315,14 @@ function Ct(e, t, r, n, o, i, a, c, u) {
|
|
|
315
315
|
y = 0;
|
|
316
316
|
// ;
|
|
317
317
|
case 59 + d:
|
|
318
|
-
E == -1 && (I = H(I, /\f/g, "")), v > 0 && $e(I) - p && pt(v > 32 ?
|
|
318
|
+
E == -1 && (I = H(I, /\f/g, "")), v > 0 && $e(I) - p && pt(v > 32 ? Fr(I + ";", n, r, p - 1) : Fr(H(I, " ", "") + ";", n, r, p - 2), u);
|
|
319
319
|
break;
|
|
320
320
|
// @ ;
|
|
321
321
|
case 59:
|
|
322
322
|
I += ";";
|
|
323
323
|
// { rule/at-rule
|
|
324
324
|
default:
|
|
325
|
-
if (pt(T =
|
|
325
|
+
if (pt(T = Vr(I, t, r, f, d, o, c, P, C = [], b = [], p), i), k === 123)
|
|
326
326
|
if (d === 0)
|
|
327
327
|
Ct(I, t, T, T, C, i, p, c, b);
|
|
328
328
|
else
|
|
@@ -332,7 +332,7 @@ function Ct(e, t, r, n, o, i, a, c, u) {
|
|
|
332
332
|
case 108:
|
|
333
333
|
case 109:
|
|
334
334
|
case 115:
|
|
335
|
-
Ct(e, T, T, n && pt(
|
|
335
|
+
Ct(e, T, T, n && pt(Vr(e, T, T, 0, 0, o, c, P, o, C = [], p), b), o, b, p, c, n ? C : b);
|
|
336
336
|
break;
|
|
337
337
|
default:
|
|
338
338
|
Ct(I, T, T, T, [""], b, 0, c, b);
|
|
@@ -370,20 +370,20 @@ function Ct(e, t, r, n, o, i, a, c, u) {
|
|
|
370
370
|
}
|
|
371
371
|
return i;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
374
|
-
for (var p = o - 1, h = o === 0 ? i : [""], v =
|
|
373
|
+
function Vr(e, t, r, n, o, i, a, c, u, f, d) {
|
|
374
|
+
for (var p = o - 1, h = o === 0 ? i : [""], v = yr(h), g = 0, l = 0, y = 0; g < n; ++g)
|
|
375
375
|
for (var E = 0, k = rt(e, p + 1, p = Do(l = a[g])), P = e; E < v; ++E)
|
|
376
376
|
(P = In(l > 0 ? h[E] + " " + k : H(k, /&\f/g, h[E]))) && (u[y++] = P);
|
|
377
|
-
return _t(e, t, r, o === 0 ?
|
|
377
|
+
return _t(e, t, r, o === 0 ? hr : c, u, f, d);
|
|
378
378
|
}
|
|
379
379
|
function Ko(e, t, r) {
|
|
380
380
|
return _t(e, t, r, Nn, Ot(Fo()), rt(e, 2, -2), 0);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
return _t(e, t, r,
|
|
382
|
+
function Fr(e, t, r, n) {
|
|
383
|
+
return _t(e, t, r, gr, rt(e, 0, n), rt(e, n + 1, -1), n);
|
|
384
384
|
}
|
|
385
385
|
function ze(e, t) {
|
|
386
|
-
for (var r = "", n =
|
|
386
|
+
for (var r = "", n = yr(e), o = 0; o < n; o++)
|
|
387
387
|
r += t(e[o], o, e, t) || "";
|
|
388
388
|
return r;
|
|
389
389
|
}
|
|
@@ -392,19 +392,19 @@ function Ho(e, t, r, n) {
|
|
|
392
392
|
case Io:
|
|
393
393
|
if (e.children.length) break;
|
|
394
394
|
case Mo:
|
|
395
|
-
case
|
|
395
|
+
case gr:
|
|
396
396
|
return e.return = e.return || e.value;
|
|
397
397
|
case Nn:
|
|
398
398
|
return "";
|
|
399
399
|
case Mn:
|
|
400
400
|
return e.return = e.value + "{" + ze(e.children, n) + "}";
|
|
401
|
-
case
|
|
401
|
+
case hr:
|
|
402
402
|
e.value = e.props.join(",");
|
|
403
403
|
}
|
|
404
404
|
return $e(r = ze(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
405
405
|
}
|
|
406
406
|
function Xo(e) {
|
|
407
|
-
var t =
|
|
407
|
+
var t = yr(e);
|
|
408
408
|
return function(r, n, o, i) {
|
|
409
409
|
for (var a = "", c = 0; c < t; c++)
|
|
410
410
|
a += e[c](r, n, o, i) || "";
|
|
@@ -449,14 +449,14 @@ var Qo = function(t, r, n) {
|
|
|
449
449
|
return t;
|
|
450
450
|
}, ei = function(t, r) {
|
|
451
451
|
return Ln(Zo(jn(t), r));
|
|
452
|
-
},
|
|
452
|
+
}, Wr = /* @__PURE__ */ new WeakMap(), ti = function(t) {
|
|
453
453
|
if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
|
|
454
454
|
// negative .length indicates that this rule has been already prefixed
|
|
455
455
|
t.length < 1)) {
|
|
456
456
|
for (var r = t.value, n = t.parent, o = t.column === n.column && t.line === n.line; n.type !== "rule"; )
|
|
457
457
|
if (n = n.parent, !n) return;
|
|
458
|
-
if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !
|
|
459
|
-
|
|
458
|
+
if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !Wr.get(n)) && !o) {
|
|
459
|
+
Wr.set(t, !0);
|
|
460
460
|
for (var i = [], a = ei(r, i), c = n.props, u = 0, f = 0; u < a.length; u++)
|
|
461
461
|
for (var d = 0; d < c.length; d++, f++)
|
|
462
462
|
t.props[f] = i[u] ? a[u].replace(/&\f/g, c[d]) : c[d] + " " + a[u];
|
|
@@ -578,7 +578,7 @@ function Vn(e, t) {
|
|
|
578
578
|
return H(e, /(.+:)(.+)-([^]+)/, "$1" + K + "$2-$3$1" + Tt + (le(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
579
579
|
// (s)tretch
|
|
580
580
|
case 115:
|
|
581
|
-
return ~
|
|
581
|
+
return ~sr(e, "stretch") ? Vn(H(e, "stretch", "fill-available"), t) + e : e;
|
|
582
582
|
}
|
|
583
583
|
break;
|
|
584
584
|
// position: sticky
|
|
@@ -586,7 +586,7 @@ function Vn(e, t) {
|
|
|
586
586
|
if (le(e, t + 1) !== 115) break;
|
|
587
587
|
// display: (flex|inline-flex)
|
|
588
588
|
case 6444:
|
|
589
|
-
switch (le(e, $e(e) - 3 - (~
|
|
589
|
+
switch (le(e, $e(e) - 3 - (~sr(e, "!important") && 10))) {
|
|
590
590
|
// stic(k)y
|
|
591
591
|
case 107:
|
|
592
592
|
return H(e, ":", ":" + K) + e;
|
|
@@ -614,14 +614,14 @@ function Vn(e, t) {
|
|
|
614
614
|
}
|
|
615
615
|
var ni = function(t, r, n, o) {
|
|
616
616
|
if (t.length > -1 && !t.return) switch (t.type) {
|
|
617
|
-
case
|
|
617
|
+
case gr:
|
|
618
618
|
t.return = Vn(t.value, t.length);
|
|
619
619
|
break;
|
|
620
620
|
case Mn:
|
|
621
621
|
return ze([Je(t, {
|
|
622
622
|
value: H(t.value, "@", "@" + K)
|
|
623
623
|
})], o);
|
|
624
|
-
case
|
|
624
|
+
case hr:
|
|
625
625
|
if (t.length) return Vo(t.props, function(i) {
|
|
626
626
|
switch (Bo(i, /(::plac\w+|:read-\w+)/)) {
|
|
627
627
|
// :read-(only|write)
|
|
@@ -695,10 +695,10 @@ function ai(e) {
|
|
|
695
695
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
696
696
|
}
|
|
697
697
|
var mt = { exports: {} }, X = {};
|
|
698
|
-
var
|
|
698
|
+
var Ur;
|
|
699
699
|
function si() {
|
|
700
|
-
if (
|
|
701
|
-
|
|
700
|
+
if (Ur) return X;
|
|
701
|
+
Ur = 1;
|
|
702
702
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, c = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, u = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, f = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, d = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, p = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, h = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, v = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, g = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, l = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, y = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, E = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, k = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
703
703
|
function P(b) {
|
|
704
704
|
if (typeof b == "object" && b !== null) {
|
|
@@ -762,9 +762,9 @@ function si() {
|
|
|
762
762
|
}, X.typeOf = P, X;
|
|
763
763
|
}
|
|
764
764
|
var J = {};
|
|
765
|
-
var
|
|
765
|
+
var zr;
|
|
766
766
|
function ci() {
|
|
767
|
-
return
|
|
767
|
+
return zr || (zr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
768
768
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, c = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, u = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, f = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, d = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, p = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, h = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, v = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, g = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, l = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, y = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, E = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, k = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
769
769
|
function P(w) {
|
|
770
770
|
return typeof w == "string" || typeof w == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
@@ -845,15 +845,15 @@ function ci() {
|
|
|
845
845
|
J.AsyncMode = b, J.ConcurrentMode = T, J.ContextConsumer = I, J.ContextProvider = L, J.Element = R, J.ForwardRef = N, J.Fragment = D, J.Lazy = s, J.Memo = M, J.Portal = x, J.Profiler = q, J.StrictMode = Y, J.Suspense = ue, J.isAsyncMode = Ie, J.isConcurrentMode = S, J.isContextConsumer = O, J.isContextProvider = A, J.isElement = j, J.isForwardRef = B, J.isFragment = W, J.isLazy = F, J.isMemo = V, J.isPortal = U, J.isProfiler = G, J.isStrictMode = z, J.isSuspense = fe, J.isValidElementType = P, J.typeOf = C;
|
|
846
846
|
})()), J;
|
|
847
847
|
}
|
|
848
|
-
var
|
|
849
|
-
function
|
|
850
|
-
return
|
|
848
|
+
var Yr;
|
|
849
|
+
function br() {
|
|
850
|
+
return Yr || (Yr = 1, process.env.NODE_ENV === "production" ? mt.exports = si() : mt.exports = ci()), mt.exports;
|
|
851
851
|
}
|
|
852
|
-
var Gt,
|
|
852
|
+
var Gt, qr;
|
|
853
853
|
function li() {
|
|
854
|
-
if (
|
|
855
|
-
|
|
856
|
-
var e =
|
|
854
|
+
if (qr) return Gt;
|
|
855
|
+
qr = 1;
|
|
856
|
+
var e = br(), t = {
|
|
857
857
|
childContextTypes: !0,
|
|
858
858
|
contextType: !0,
|
|
859
859
|
contextTypes: !0,
|
|
@@ -923,7 +923,7 @@ function Fn(e, t, r) {
|
|
|
923
923
|
e[o] !== void 0 ? t.push(e[o] + ";") : o && (n += o + " ");
|
|
924
924
|
}), n;
|
|
925
925
|
}
|
|
926
|
-
var
|
|
926
|
+
var vr = function(t, r, n) {
|
|
927
927
|
var o = t.key + "-" + r.name;
|
|
928
928
|
// we only need to add the styles to the registered cache if the
|
|
929
929
|
// class name could be used further down
|
|
@@ -935,8 +935,8 @@ var br = function(t, r, n) {
|
|
|
935
935
|
// the registered cache to know whether a style is global or not
|
|
936
936
|
// also, note that this check will be dead code eliminated in the browser
|
|
937
937
|
ui === !1) && t.registered[o] === void 0 && (t.registered[o] = r.styles);
|
|
938
|
-
},
|
|
939
|
-
|
|
938
|
+
}, Sr = function(t, r, n) {
|
|
939
|
+
vr(t, r, n);
|
|
940
940
|
var o = t.key + "-" + r.name;
|
|
941
941
|
if (t.inserted[r.name] === void 0) {
|
|
942
942
|
var i = r;
|
|
@@ -1015,11 +1015,11 @@ var di = {
|
|
|
1015
1015
|
strokeWidth: 1
|
|
1016
1016
|
}, pi = /[A-Z]|^ms/g, mi = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Wn = function(t) {
|
|
1017
1017
|
return t.charCodeAt(1) === 45;
|
|
1018
|
-
},
|
|
1018
|
+
}, Gr = function(t) {
|
|
1019
1019
|
return t != null && typeof t != "boolean";
|
|
1020
1020
|
}, Kt = /* @__PURE__ */ Bn(function(e) {
|
|
1021
1021
|
return Wn(e) ? e : e.replace(pi, "-$&").toLowerCase();
|
|
1022
|
-
}),
|
|
1022
|
+
}), Kr = function(t, r) {
|
|
1023
1023
|
switch (t) {
|
|
1024
1024
|
case "animation":
|
|
1025
1025
|
case "animationName":
|
|
@@ -1090,10 +1090,10 @@ function hi(e, t, r) {
|
|
|
1090
1090
|
var a = r[i];
|
|
1091
1091
|
if (typeof a != "object") {
|
|
1092
1092
|
var c = a;
|
|
1093
|
-
t != null && t[c] !== void 0 ? n += i + "{" + t[c] + "}" :
|
|
1093
|
+
t != null && t[c] !== void 0 ? n += i + "{" + t[c] + "}" : Gr(c) && (n += Kt(i) + ":" + Kr(i, c) + ";");
|
|
1094
1094
|
} else if (Array.isArray(a) && typeof a[0] == "string" && (t == null || t[a[0]] === void 0))
|
|
1095
1095
|
for (var u = 0; u < a.length; u++)
|
|
1096
|
-
|
|
1096
|
+
Gr(a[u]) && (n += Kt(i) + ":" + Kr(i, a[u]) + ";");
|
|
1097
1097
|
else {
|
|
1098
1098
|
var f = ot(e, t, a);
|
|
1099
1099
|
switch (i) {
|
|
@@ -1109,7 +1109,7 @@ function hi(e, t, r) {
|
|
|
1109
1109
|
}
|
|
1110
1110
|
return n;
|
|
1111
1111
|
}
|
|
1112
|
-
var
|
|
1112
|
+
var Hr = /label:\s*([^\s;{]+)\s*(;|$)/g, Oe;
|
|
1113
1113
|
function Pt(e, t, r) {
|
|
1114
1114
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1115
1115
|
return e[0];
|
|
@@ -1127,8 +1127,8 @@ function Pt(e, t, r) {
|
|
|
1127
1127
|
var u = i;
|
|
1128
1128
|
o += u[c];
|
|
1129
1129
|
}
|
|
1130
|
-
|
|
1131
|
-
for (var f = "", d; (d =
|
|
1130
|
+
Hr.lastIndex = 0;
|
|
1131
|
+
for (var f = "", d; (d = Hr.exec(o)) !== null; )
|
|
1132
1132
|
f += "-" + d[1];
|
|
1133
1133
|
var p = fi(o) + f;
|
|
1134
1134
|
return {
|
|
@@ -1139,7 +1139,7 @@ function Pt(e, t, r) {
|
|
|
1139
1139
|
}
|
|
1140
1140
|
var gi = function(t) {
|
|
1141
1141
|
return t();
|
|
1142
|
-
}, Un = _.useInsertionEffect ? _.useInsertionEffect : !1, zn = Un || gi,
|
|
1142
|
+
}, Un = _.useInsertionEffect ? _.useInsertionEffect : !1, zn = Un || gi, Xr = Un || _.useLayoutEffect, Yn = /* @__PURE__ */ _.createContext(
|
|
1143
1143
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1144
1144
|
// because this module is primarily intended for the browser and node
|
|
1145
1145
|
// but it's also required in react native and similar environments sometimes
|
|
@@ -1151,39 +1151,39 @@ var gi = function(t) {
|
|
|
1151
1151
|
}) : null
|
|
1152
1152
|
);
|
|
1153
1153
|
Yn.Provider;
|
|
1154
|
-
var
|
|
1154
|
+
var Cr = function(t) {
|
|
1155
1155
|
return /* @__PURE__ */ wo(function(r, n) {
|
|
1156
1156
|
var o = $o(Yn);
|
|
1157
1157
|
return t(r, o, n);
|
|
1158
1158
|
});
|
|
1159
|
-
}, st = /* @__PURE__ */ _.createContext({}),
|
|
1159
|
+
}, st = /* @__PURE__ */ _.createContext({}), Er = {}.hasOwnProperty, lr = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", yi = function(t, r) {
|
|
1160
1160
|
var n = {};
|
|
1161
1161
|
for (var o in r)
|
|
1162
|
-
|
|
1163
|
-
return n[
|
|
1162
|
+
Er.call(r, o) && (n[o] = r[o]);
|
|
1163
|
+
return n[lr] = t, n;
|
|
1164
1164
|
}, bi = function(t) {
|
|
1165
1165
|
var r = t.cache, n = t.serialized, o = t.isStringTag;
|
|
1166
|
-
return
|
|
1167
|
-
return
|
|
1166
|
+
return vr(r, n, o), zn(function() {
|
|
1167
|
+
return Sr(r, n, o);
|
|
1168
1168
|
}), null;
|
|
1169
|
-
}, vi = /* @__PURE__ */
|
|
1169
|
+
}, vi = /* @__PURE__ */ Cr(function(e, t, r) {
|
|
1170
1170
|
var n = e.css;
|
|
1171
1171
|
typeof n == "string" && t.registered[n] !== void 0 && (n = t.registered[n]);
|
|
1172
|
-
var o = e[
|
|
1172
|
+
var o = e[lr], i = [n], a = "";
|
|
1173
1173
|
typeof e.className == "string" ? a = Fn(t.registered, i, e.className) : e.className != null && (a = e.className + " ");
|
|
1174
1174
|
var c = Pt(i, void 0, _.useContext(st));
|
|
1175
1175
|
a += t.key + "-" + c.name;
|
|
1176
1176
|
var u = {};
|
|
1177
1177
|
for (var f in e)
|
|
1178
|
-
|
|
1178
|
+
Er.call(e, f) && f !== "css" && f !== lr && (u[f] = e[f]);
|
|
1179
1179
|
return u.className = a, r && (u.ref = r), /* @__PURE__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.createElement(bi, {
|
|
1180
1180
|
cache: t,
|
|
1181
1181
|
serialized: c,
|
|
1182
1182
|
isStringTag: typeof o == "string"
|
|
1183
1183
|
}), /* @__PURE__ */ _.createElement(o, u));
|
|
1184
|
-
}), Si = vi,
|
|
1184
|
+
}), Si = vi, Jr = function(t, r) {
|
|
1185
1185
|
var n = arguments;
|
|
1186
|
-
if (r == null || !
|
|
1186
|
+
if (r == null || !Er.call(r, "css"))
|
|
1187
1187
|
return _.createElement.apply(void 0, n);
|
|
1188
1188
|
var o = n.length, i = new Array(o);
|
|
1189
1189
|
i[0] = Si, i[1] = yi(t, r);
|
|
@@ -1194,10 +1194,10 @@ var Sr = function(t) {
|
|
|
1194
1194
|
(function(e) {
|
|
1195
1195
|
var t;
|
|
1196
1196
|
t || (t = e.JSX || (e.JSX = {}));
|
|
1197
|
-
})(
|
|
1198
|
-
var Ci = /* @__PURE__ */
|
|
1197
|
+
})(Jr || (Jr = {}));
|
|
1198
|
+
var Ci = /* @__PURE__ */ Cr(function(e, t) {
|
|
1199
1199
|
var r = e.styles, n = Pt([r], void 0, _.useContext(st)), o = _.useRef();
|
|
1200
|
-
return
|
|
1200
|
+
return Xr(function() {
|
|
1201
1201
|
var i = t.key + "-global", a = new t.sheet.constructor({
|
|
1202
1202
|
key: i,
|
|
1203
1203
|
nonce: t.sheet.nonce,
|
|
@@ -1207,13 +1207,13 @@ var Ci = /* @__PURE__ */ Sr(function(e, t) {
|
|
|
1207
1207
|
return t.sheet.tags.length && (a.before = t.sheet.tags[0]), u !== null && (c = !0, u.setAttribute("data-emotion", i), a.hydrate([u])), o.current = [a, c], function() {
|
|
1208
1208
|
a.flush();
|
|
1209
1209
|
};
|
|
1210
|
-
}, [t]),
|
|
1210
|
+
}, [t]), Xr(function() {
|
|
1211
1211
|
var i = o.current, a = i[0], c = i[1];
|
|
1212
1212
|
if (c) {
|
|
1213
1213
|
i[1] = !1;
|
|
1214
1214
|
return;
|
|
1215
1215
|
}
|
|
1216
|
-
if (n.next !== void 0 &&
|
|
1216
|
+
if (n.next !== void 0 && Sr(t, n.next, !0), a.tags.length) {
|
|
1217
1217
|
var u = a.tags[a.tags.length - 1].nextElementSibling;
|
|
1218
1218
|
a.before = u, a.flush();
|
|
1219
1219
|
}
|
|
@@ -1226,12 +1226,12 @@ var Ci = /* @__PURE__ */ Sr(function(e, t) {
|
|
|
1226
1226
|
/* Z+1 */
|
|
1227
1227
|
), xi = Ti, wi = function(t) {
|
|
1228
1228
|
return t !== "theme";
|
|
1229
|
-
},
|
|
1229
|
+
}, Qr = function(t) {
|
|
1230
1230
|
return typeof t == "string" && // 96 is one less than the char code
|
|
1231
1231
|
// for "a" so this is checking that
|
|
1232
1232
|
// it's a lowercase character
|
|
1233
1233
|
t.charCodeAt(0) > 96 ? xi : wi;
|
|
1234
|
-
},
|
|
1234
|
+
}, Zr = function(t, r, n) {
|
|
1235
1235
|
var o;
|
|
1236
1236
|
if (r) {
|
|
1237
1237
|
var i = r.shouldForwardProp;
|
|
@@ -1242,13 +1242,13 @@ var Ci = /* @__PURE__ */ Sr(function(e, t) {
|
|
|
1242
1242
|
return typeof o != "function" && n && (o = t.__emotion_forwardProp), o;
|
|
1243
1243
|
}, $i = function(t) {
|
|
1244
1244
|
var r = t.cache, n = t.serialized, o = t.isStringTag;
|
|
1245
|
-
return
|
|
1246
|
-
return
|
|
1245
|
+
return vr(r, n, o), zn(function() {
|
|
1246
|
+
return Sr(r, n, o);
|
|
1247
1247
|
}), null;
|
|
1248
1248
|
}, Oi = function e(t, r) {
|
|
1249
1249
|
var n = t.__emotion_real === t, o = n && t.__emotion_base || t, i, a;
|
|
1250
1250
|
r !== void 0 && (i = r.label, a = r.target);
|
|
1251
|
-
var c =
|
|
1251
|
+
var c = Zr(t, r, n), u = c || Qr(o), f = !u("as");
|
|
1252
1252
|
return function() {
|
|
1253
1253
|
var d = arguments, p = n && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
|
|
1254
1254
|
if (i !== void 0 && p.push("label:" + i + ";"), d[0] == null || d[0].raw === void 0)
|
|
@@ -1259,7 +1259,7 @@ var Ci = /* @__PURE__ */ Sr(function(e, t) {
|
|
|
1259
1259
|
for (var v = d.length, g = 1; g < v; g++)
|
|
1260
1260
|
p.push(d[g], h[g]);
|
|
1261
1261
|
}
|
|
1262
|
-
var l =
|
|
1262
|
+
var l = Cr(function(y, E, k) {
|
|
1263
1263
|
var P = f && y.as || o, C = "", b = [], T = y;
|
|
1264
1264
|
if (y.theme == null) {
|
|
1265
1265
|
T = {};
|
|
@@ -1270,7 +1270,7 @@ var Ci = /* @__PURE__ */ Sr(function(e, t) {
|
|
|
1270
1270
|
typeof y.className == "string" ? C = Fn(E.registered, b, y.className) : y.className != null && (C = y.className + " ");
|
|
1271
1271
|
var L = Pt(p.concat(b), E.registered, T);
|
|
1272
1272
|
C += E.key + "-" + L.name, a !== void 0 && (C += " " + a);
|
|
1273
|
-
var R = f && c === void 0 ?
|
|
1273
|
+
var R = f && c === void 0 ? Qr(P) : u, N = {};
|
|
1274
1274
|
for (var D in y)
|
|
1275
1275
|
f && D === "as" || R(D) && (N[D] = y[D]);
|
|
1276
1276
|
return N.className = C, k && (N.ref = k), /* @__PURE__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.createElement($i, {
|
|
@@ -1284,8 +1284,8 @@ var Ci = /* @__PURE__ */ Sr(function(e, t) {
|
|
|
1284
1284
|
return "." + a;
|
|
1285
1285
|
}
|
|
1286
1286
|
}), l.withComponent = function(y, E) {
|
|
1287
|
-
var k = e(y,
|
|
1288
|
-
shouldForwardProp:
|
|
1287
|
+
var k = e(y, ar({}, r, E, {
|
|
1288
|
+
shouldForwardProp: Zr(l, E, !0)
|
|
1289
1289
|
}));
|
|
1290
1290
|
return k.apply(void 0, p);
|
|
1291
1291
|
}, l;
|
|
@@ -1426,15 +1426,15 @@ var Ci = /* @__PURE__ */ Sr(function(e, t) {
|
|
|
1426
1426
|
"svg",
|
|
1427
1427
|
"text",
|
|
1428
1428
|
"tspan"
|
|
1429
|
-
],
|
|
1429
|
+
], en = Oi.bind(null);
|
|
1430
1430
|
ki.forEach(function(e) {
|
|
1431
|
-
|
|
1431
|
+
en[e] = en(e);
|
|
1432
1432
|
});
|
|
1433
1433
|
var ht = { exports: {} };
|
|
1434
|
-
var Ht,
|
|
1434
|
+
var Ht, tn;
|
|
1435
1435
|
function _i() {
|
|
1436
|
-
if (
|
|
1437
|
-
|
|
1436
|
+
if (tn) return Ht;
|
|
1437
|
+
tn = 1;
|
|
1438
1438
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
1439
1439
|
function n(i) {
|
|
1440
1440
|
if (i == null)
|
|
@@ -1477,25 +1477,25 @@ function _i() {
|
|
|
1477
1477
|
return u;
|
|
1478
1478
|
}, Ht;
|
|
1479
1479
|
}
|
|
1480
|
-
var Xt,
|
|
1481
|
-
function
|
|
1482
|
-
if (
|
|
1483
|
-
|
|
1480
|
+
var Xt, rn;
|
|
1481
|
+
function Tr() {
|
|
1482
|
+
if (rn) return Xt;
|
|
1483
|
+
rn = 1;
|
|
1484
1484
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
1485
1485
|
return Xt = e, Xt;
|
|
1486
1486
|
}
|
|
1487
|
-
var Jt,
|
|
1487
|
+
var Jt, nn;
|
|
1488
1488
|
function qn() {
|
|
1489
|
-
return
|
|
1489
|
+
return nn || (nn = 1, Jt = Function.call.bind(Object.prototype.hasOwnProperty)), Jt;
|
|
1490
1490
|
}
|
|
1491
|
-
var Qt,
|
|
1491
|
+
var Qt, on;
|
|
1492
1492
|
function Pi() {
|
|
1493
|
-
if (
|
|
1494
|
-
|
|
1493
|
+
if (on) return Qt;
|
|
1494
|
+
on = 1;
|
|
1495
1495
|
var e = function() {
|
|
1496
1496
|
};
|
|
1497
1497
|
if (process.env.NODE_ENV !== "production") {
|
|
1498
|
-
var t = /* @__PURE__ */
|
|
1498
|
+
var t = /* @__PURE__ */ Tr(), r = {}, n = /* @__PURE__ */ qn();
|
|
1499
1499
|
e = function(i) {
|
|
1500
1500
|
var a = "Warning: " + i;
|
|
1501
1501
|
typeof console < "u" && console.error(a);
|
|
@@ -1537,11 +1537,11 @@ function Pi() {
|
|
|
1537
1537
|
process.env.NODE_ENV !== "production" && (r = {});
|
|
1538
1538
|
}, Qt = o, Qt;
|
|
1539
1539
|
}
|
|
1540
|
-
var Zt,
|
|
1540
|
+
var Zt, an;
|
|
1541
1541
|
function Ai() {
|
|
1542
|
-
if (
|
|
1543
|
-
|
|
1544
|
-
var e =
|
|
1542
|
+
if (an) return Zt;
|
|
1543
|
+
an = 1;
|
|
1544
|
+
var e = br(), t = _i(), r = /* @__PURE__ */ Tr(), n = /* @__PURE__ */ qn(), o = /* @__PURE__ */ Pi(), i = function() {
|
|
1545
1545
|
};
|
|
1546
1546
|
process.env.NODE_ENV !== "production" && (i = function(c) {
|
|
1547
1547
|
var u = "Warning: " + c;
|
|
@@ -1858,11 +1858,11 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
|
1858
1858
|
return v.checkPropTypes = o, v.resetWarningCache = o.resetWarningCache, v.PropTypes = v, v;
|
|
1859
1859
|
}, Zt;
|
|
1860
1860
|
}
|
|
1861
|
-
var er,
|
|
1861
|
+
var er, sn;
|
|
1862
1862
|
function Ri() {
|
|
1863
|
-
if (
|
|
1864
|
-
|
|
1865
|
-
var e = /* @__PURE__ */
|
|
1863
|
+
if (sn) return er;
|
|
1864
|
+
sn = 1;
|
|
1865
|
+
var e = /* @__PURE__ */ Tr();
|
|
1866
1866
|
function t() {
|
|
1867
1867
|
}
|
|
1868
1868
|
function r() {
|
|
@@ -1906,11 +1906,11 @@ function Ri() {
|
|
|
1906
1906
|
return i.PropTypes = i, i;
|
|
1907
1907
|
}, er;
|
|
1908
1908
|
}
|
|
1909
|
-
var
|
|
1909
|
+
var cn;
|
|
1910
1910
|
function Ni() {
|
|
1911
|
-
if (
|
|
1912
|
-
if (
|
|
1913
|
-
var e =
|
|
1911
|
+
if (cn) return ht.exports;
|
|
1912
|
+
if (cn = 1, process.env.NODE_ENV !== "production") {
|
|
1913
|
+
var e = br(), t = !0;
|
|
1914
1914
|
ht.exports = /* @__PURE__ */ Ai()(e.isElement, t);
|
|
1915
1915
|
} else
|
|
1916
1916
|
ht.exports = /* @__PURE__ */ Ri()();
|
|
@@ -1921,7 +1921,7 @@ const $ = /* @__PURE__ */ ai(Mi);
|
|
|
1921
1921
|
function Ii(e) {
|
|
1922
1922
|
return e == null || Object.keys(e).length === 0;
|
|
1923
1923
|
}
|
|
1924
|
-
function
|
|
1924
|
+
function xr(e) {
|
|
1925
1925
|
const {
|
|
1926
1926
|
styles: t,
|
|
1927
1927
|
defaultTheme: r = {}
|
|
@@ -1930,19 +1930,19 @@ function Tr(e) {
|
|
|
1930
1930
|
styles: typeof t == "function" ? (o) => t(Ii(o) ? r : o) : t
|
|
1931
1931
|
});
|
|
1932
1932
|
}
|
|
1933
|
-
process.env.NODE_ENV !== "production" && (
|
|
1933
|
+
process.env.NODE_ENV !== "production" && (xr.propTypes = {
|
|
1934
1934
|
defaultTheme: $.object,
|
|
1935
1935
|
styles: $.oneOfType([$.array, $.string, $.object, $.func])
|
|
1936
1936
|
});
|
|
1937
|
-
const
|
|
1937
|
+
const ln = [];
|
|
1938
1938
|
function Di(e) {
|
|
1939
|
-
return
|
|
1939
|
+
return ln[0] = e, Pt(ln);
|
|
1940
1940
|
}
|
|
1941
1941
|
var gt = { exports: {} }, ee = {};
|
|
1942
|
-
var
|
|
1942
|
+
var un;
|
|
1943
1943
|
function ji() {
|
|
1944
|
-
if (
|
|
1945
|
-
|
|
1944
|
+
if (un) return ee;
|
|
1945
|
+
un = 1;
|
|
1946
1946
|
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.portal"), r = /* @__PURE__ */ Symbol.for("react.fragment"), n = /* @__PURE__ */ Symbol.for("react.strict_mode"), o = /* @__PURE__ */ Symbol.for("react.profiler"), i = /* @__PURE__ */ Symbol.for("react.consumer"), a = /* @__PURE__ */ Symbol.for("react.context"), c = /* @__PURE__ */ Symbol.for("react.forward_ref"), u = /* @__PURE__ */ Symbol.for("react.suspense"), f = /* @__PURE__ */ Symbol.for("react.suspense_list"), d = /* @__PURE__ */ Symbol.for("react.memo"), p = /* @__PURE__ */ Symbol.for("react.lazy"), h = /* @__PURE__ */ Symbol.for("react.view_transition"), v = /* @__PURE__ */ Symbol.for("react.client.reference");
|
|
1947
1947
|
function g(l) {
|
|
1948
1948
|
if (typeof l == "object" && l !== null) {
|
|
@@ -2004,9 +2004,9 @@ function ji() {
|
|
|
2004
2004
|
}, ee.typeOf = g, ee;
|
|
2005
2005
|
}
|
|
2006
2006
|
var te = {};
|
|
2007
|
-
var
|
|
2007
|
+
var fn;
|
|
2008
2008
|
function Li() {
|
|
2009
|
-
return
|
|
2009
|
+
return fn || (fn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
2010
2010
|
function e(l) {
|
|
2011
2011
|
if (typeof l == "object" && l !== null) {
|
|
2012
2012
|
var y = l.$$typeof;
|
|
@@ -2068,9 +2068,9 @@ function Li() {
|
|
|
2068
2068
|
}, te.typeOf = e;
|
|
2069
2069
|
})()), te;
|
|
2070
2070
|
}
|
|
2071
|
-
var
|
|
2071
|
+
var dn;
|
|
2072
2072
|
function Bi() {
|
|
2073
|
-
return
|
|
2073
|
+
return dn || (dn = 1, process.env.NODE_ENV === "production" ? gt.exports = /* @__PURE__ */ ji() : gt.exports = /* @__PURE__ */ Li()), gt.exports;
|
|
2074
2074
|
}
|
|
2075
2075
|
var Gn = /* @__PURE__ */ Bi();
|
|
2076
2076
|
function Ae(e) {
|
|
@@ -2157,7 +2157,7 @@ function Fi(e) {
|
|
|
2157
2157
|
...o
|
|
2158
2158
|
};
|
|
2159
2159
|
}
|
|
2160
|
-
function
|
|
2160
|
+
function pn(e, t) {
|
|
2161
2161
|
if (!e.containerQueries)
|
|
2162
2162
|
return t;
|
|
2163
2163
|
const r = Object.keys(t).filter((n) => n.startsWith("@container")).sort((n, o) => {
|
|
@@ -2219,7 +2219,7 @@ const At = {
|
|
|
2219
2219
|
// desktop
|
|
2220
2220
|
xl: 1536
|
|
2221
2221
|
// large screen
|
|
2222
|
-
},
|
|
2222
|
+
}, mn = {
|
|
2223
2223
|
// Sorted ASC by size. That's important.
|
|
2224
2224
|
// It can't be configured as it's used statically for propTypes.
|
|
2225
2225
|
keys: ["xs", "sm", "md", "lg", "xl"],
|
|
@@ -2235,11 +2235,11 @@ const At = {
|
|
|
2235
2235
|
function Pe(e, t, r) {
|
|
2236
2236
|
const n = e.theme || {};
|
|
2237
2237
|
if (Array.isArray(t)) {
|
|
2238
|
-
const i = n.breakpoints ||
|
|
2238
|
+
const i = n.breakpoints || mn;
|
|
2239
2239
|
return t.reduce((a, c, u) => (a[i.up(i.keys[u])] = r(t[u]), a), {});
|
|
2240
2240
|
}
|
|
2241
2241
|
if (typeof t == "object") {
|
|
2242
|
-
const i = n.breakpoints ||
|
|
2242
|
+
const i = n.breakpoints || mn;
|
|
2243
2243
|
return Object.keys(t).reduce((a, c) => {
|
|
2244
2244
|
if (Wi(i.keys, c)) {
|
|
2245
2245
|
const u = Ui(n.containerQueries ? n : qi, c);
|
|
@@ -2262,7 +2262,7 @@ function Gi(e = {}) {
|
|
|
2262
2262
|
return r[o] = {}, r;
|
|
2263
2263
|
}, {}) || {};
|
|
2264
2264
|
}
|
|
2265
|
-
function
|
|
2265
|
+
function hn(e, t) {
|
|
2266
2266
|
return e.reduce((r, n) => {
|
|
2267
2267
|
const o = r[n];
|
|
2268
2268
|
return (!o || Object.keys(o).length === 0) && delete r[n], r;
|
|
@@ -2322,15 +2322,15 @@ const Hi = {
|
|
|
2322
2322
|
l: "Left",
|
|
2323
2323
|
x: ["Left", "Right"],
|
|
2324
2324
|
y: ["Top", "Bottom"]
|
|
2325
|
-
},
|
|
2325
|
+
}, gn = {
|
|
2326
2326
|
marginX: "mx",
|
|
2327
2327
|
marginY: "my",
|
|
2328
2328
|
paddingX: "px",
|
|
2329
2329
|
paddingY: "py"
|
|
2330
2330
|
}, Ji = Ki((e) => {
|
|
2331
2331
|
if (e.length > 2)
|
|
2332
|
-
if (
|
|
2333
|
-
e =
|
|
2332
|
+
if (gn[e])
|
|
2333
|
+
e = gn[e];
|
|
2334
2334
|
else
|
|
2335
2335
|
return [e];
|
|
2336
2336
|
const [t, r] = e.split(""), n = Hi[t], o = Xi[r] || "";
|
|
@@ -2351,7 +2351,7 @@ function ct(e, t, r, n) {
|
|
|
2351
2351
|
`)), () => {
|
|
2352
2352
|
});
|
|
2353
2353
|
}
|
|
2354
|
-
function
|
|
2354
|
+
function wr(e) {
|
|
2355
2355
|
return ct(e, "spacing", 8, "spacing");
|
|
2356
2356
|
}
|
|
2357
2357
|
function lt(e, t) {
|
|
@@ -2367,7 +2367,7 @@ function ea(e, t, r, n) {
|
|
|
2367
2367
|
return Pe(e, a, i);
|
|
2368
2368
|
}
|
|
2369
2369
|
function Xn(e, t) {
|
|
2370
|
-
const r =
|
|
2370
|
+
const r = wr(e.theme);
|
|
2371
2371
|
return Object.keys(e).map((n) => ea(e, t, n, r)).reduce(et, {});
|
|
2372
2372
|
}
|
|
2373
2373
|
function oe(e) {
|
|
@@ -2381,7 +2381,7 @@ function ie(e) {
|
|
|
2381
2381
|
ie.propTypes = process.env.NODE_ENV !== "production" ? Mt.reduce((e, t) => (e[t] = Me, e), {}) : {};
|
|
2382
2382
|
ie.filterProps = Mt;
|
|
2383
2383
|
process.env.NODE_ENV !== "production" && Qi.reduce((e, t) => (e[t] = Me, e), {});
|
|
2384
|
-
function Jn(e = 8, t =
|
|
2384
|
+
function Jn(e = 8, t = wr({
|
|
2385
2385
|
spacing: e
|
|
2386
2386
|
})) {
|
|
2387
2387
|
if (e.mui)
|
|
@@ -2505,7 +2505,7 @@ function ye(e) {
|
|
|
2505
2505
|
const wa = se({
|
|
2506
2506
|
prop: "width",
|
|
2507
2507
|
transform: ye
|
|
2508
|
-
}),
|
|
2508
|
+
}), $r = (e) => {
|
|
2509
2509
|
if (e.maxWidth !== void 0 && e.maxWidth !== null) {
|
|
2510
2510
|
const t = (r) => {
|
|
2511
2511
|
const n = e.theme?.breakpoints?.values?.[r] || At[r];
|
|
@@ -2521,7 +2521,7 @@ const wa = se({
|
|
|
2521
2521
|
}
|
|
2522
2522
|
return null;
|
|
2523
2523
|
};
|
|
2524
|
-
|
|
2524
|
+
$r.filterProps = ["maxWidth"];
|
|
2525
2525
|
const $a = se({
|
|
2526
2526
|
prop: "minWidth",
|
|
2527
2527
|
transform: ye
|
|
@@ -2548,7 +2548,7 @@ se({
|
|
|
2548
2548
|
const Pa = se({
|
|
2549
2549
|
prop: "boxSizing"
|
|
2550
2550
|
});
|
|
2551
|
-
It(wa,
|
|
2551
|
+
It(wa, $r, $a, Oa, ka, _a, Pa);
|
|
2552
2552
|
const Vt = {
|
|
2553
2553
|
// borders
|
|
2554
2554
|
border: {
|
|
@@ -2797,7 +2797,7 @@ const Vt = {
|
|
|
2797
2797
|
transform: ye
|
|
2798
2798
|
},
|
|
2799
2799
|
maxWidth: {
|
|
2800
|
-
style:
|
|
2800
|
+
style: $r
|
|
2801
2801
|
},
|
|
2802
2802
|
minWidth: {
|
|
2803
2803
|
transform: ye
|
|
@@ -2914,8 +2914,8 @@ function Na() {
|
|
|
2914
2914
|
else
|
|
2915
2915
|
h = et(h, e(v, g, o, a));
|
|
2916
2916
|
}), !i && o.modularCssLayers ? {
|
|
2917
|
-
"@layer sx":
|
|
2918
|
-
} :
|
|
2917
|
+
"@layer sx": pn(o, hn(p, h))
|
|
2918
|
+
} : pn(o, hn(p, h));
|
|
2919
2919
|
}
|
|
2920
2920
|
return Array.isArray(n) ? n.map(c) : c(n);
|
|
2921
2921
|
}
|
|
@@ -2971,30 +2971,30 @@ function Qn(e = {}, ...t) {
|
|
|
2971
2971
|
function Ia(e) {
|
|
2972
2972
|
return Object.keys(e).length === 0;
|
|
2973
2973
|
}
|
|
2974
|
-
function
|
|
2974
|
+
function Or(e = null) {
|
|
2975
2975
|
const t = _.useContext(st);
|
|
2976
2976
|
return !t || Ia(t) ? e : t;
|
|
2977
2977
|
}
|
|
2978
2978
|
const Da = Qn();
|
|
2979
2979
|
function ja(e = Da) {
|
|
2980
|
-
return
|
|
2980
|
+
return Or(e);
|
|
2981
2981
|
}
|
|
2982
2982
|
function tr(e) {
|
|
2983
2983
|
const t = Di(e);
|
|
2984
2984
|
return e !== t && t.styles ? (t.styles.match(/^@layer\s+[^{]*$/) || (t.styles = `@layer global{${t.styles}}`), t) : e;
|
|
2985
2985
|
}
|
|
2986
|
-
function
|
|
2986
|
+
function kr({
|
|
2987
2987
|
styles: e,
|
|
2988
2988
|
themeId: t,
|
|
2989
2989
|
defaultTheme: r = {}
|
|
2990
2990
|
}) {
|
|
2991
2991
|
const n = ja(r), o = t && n[t] || n;
|
|
2992
2992
|
let i = typeof e == "function" ? e(o) : e;
|
|
2993
|
-
return o.modularCssLayers && (Array.isArray(i) ? i = i.map((a) => tr(typeof a == "function" ? a(o) : a)) : i = tr(i)), /* @__PURE__ */ ne(
|
|
2993
|
+
return o.modularCssLayers && (Array.isArray(i) ? i = i.map((a) => tr(typeof a == "function" ? a(o) : a)) : i = tr(i)), /* @__PURE__ */ ne(xr, {
|
|
2994
2994
|
styles: i
|
|
2995
2995
|
});
|
|
2996
2996
|
}
|
|
2997
|
-
process.env.NODE_ENV !== "production" && (
|
|
2997
|
+
process.env.NODE_ENV !== "production" && (kr.propTypes = {
|
|
2998
2998
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2999
2999
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
3000
3000
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -3012,8 +3012,8 @@ process.env.NODE_ENV !== "production" && (Or.propTypes = {
|
|
|
3012
3012
|
*/
|
|
3013
3013
|
themeId: $.string
|
|
3014
3014
|
});
|
|
3015
|
-
const
|
|
3016
|
-
let e =
|
|
3015
|
+
const yn = (e) => e, La = () => {
|
|
3016
|
+
let e = yn;
|
|
3017
3017
|
return {
|
|
3018
3018
|
configure(t) {
|
|
3019
3019
|
e = t;
|
|
@@ -3022,7 +3022,7 @@ const gn = (e) => e, La = () => {
|
|
|
3022
3022
|
return e(t);
|
|
3023
3023
|
},
|
|
3024
3024
|
reset() {
|
|
3025
|
-
e =
|
|
3025
|
+
e = yn;
|
|
3026
3026
|
}
|
|
3027
3027
|
};
|
|
3028
3028
|
}, Ba = La();
|
|
@@ -3057,7 +3057,7 @@ function Wa(e, t, r = "Mui") {
|
|
|
3057
3057
|
const n = Fa[t];
|
|
3058
3058
|
return n ? `${r}-${n}` : `${Ba.generate(e)}-${t}`;
|
|
3059
3059
|
}
|
|
3060
|
-
function
|
|
3060
|
+
function ur(e, t, r = !1) {
|
|
3061
3061
|
const n = {
|
|
3062
3062
|
...t
|
|
3063
3063
|
};
|
|
@@ -3082,7 +3082,7 @@ function lr(e, t, r = !1) {
|
|
|
3082
3082
|
for (const u in a)
|
|
3083
3083
|
if (Object.prototype.hasOwnProperty.call(a, u)) {
|
|
3084
3084
|
const f = u;
|
|
3085
|
-
n[i][f] =
|
|
3085
|
+
n[i][f] = ur(a[f], c[f], r);
|
|
3086
3086
|
}
|
|
3087
3087
|
}
|
|
3088
3088
|
} else i === "className" && r && t.className ? n.className = Va(e?.className, t?.className) : i === "style" && r && t.style ? n.style = {
|
|
@@ -3096,7 +3096,7 @@ const eo = typeof window < "u" ? _.useLayoutEffect : _.useEffect;
|
|
|
3096
3096
|
function Ua(e, t = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
|
|
3097
3097
|
return Math.max(t, Math.min(e, r));
|
|
3098
3098
|
}
|
|
3099
|
-
function
|
|
3099
|
+
function _r(e, t = 0, r = 1) {
|
|
3100
3100
|
return process.env.NODE_ENV !== "production" && (e < t || e > r) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`), Ua(e, t, r);
|
|
3101
3101
|
}
|
|
3102
3102
|
function za(e) {
|
|
@@ -3159,17 +3159,17 @@ function to(e) {
|
|
|
3159
3159
|
values: u
|
|
3160
3160
|
});
|
|
3161
3161
|
}
|
|
3162
|
-
function
|
|
3162
|
+
function fr(e) {
|
|
3163
3163
|
e = Ne(e);
|
|
3164
3164
|
let t = e.type === "hsl" || e.type === "hsla" ? Ne(to(e)).values : e.values;
|
|
3165
3165
|
return t = t.map((r) => (e.type !== "color" && (r /= 255), r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4)), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3));
|
|
3166
3166
|
}
|
|
3167
|
-
function
|
|
3168
|
-
const r =
|
|
3167
|
+
function bn(e, t) {
|
|
3168
|
+
const r = fr(e), n = fr(t);
|
|
3169
3169
|
return (Math.max(r, n) + 0.05) / (Math.min(r, n) + 0.05);
|
|
3170
3170
|
}
|
|
3171
3171
|
function ro(e, t) {
|
|
3172
|
-
return e = Ne(e), t =
|
|
3172
|
+
return e = Ne(e), t = _r(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, Ft(e);
|
|
3173
3173
|
}
|
|
3174
3174
|
function je(e, t, r) {
|
|
3175
3175
|
try {
|
|
@@ -3179,7 +3179,7 @@ function je(e, t, r) {
|
|
|
3179
3179
|
}
|
|
3180
3180
|
}
|
|
3181
3181
|
function Wt(e, t) {
|
|
3182
|
-
if (e = Ne(e), t =
|
|
3182
|
+
if (e = Ne(e), t = _r(t), e.type.includes("hsl"))
|
|
3183
3183
|
e.values[2] *= 1 - t;
|
|
3184
3184
|
else if (e.type.includes("rgb") || e.type.includes("color"))
|
|
3185
3185
|
for (let r = 0; r < 3; r += 1)
|
|
@@ -3194,7 +3194,7 @@ function Q(e, t, r) {
|
|
|
3194
3194
|
}
|
|
3195
3195
|
}
|
|
3196
3196
|
function Ut(e, t) {
|
|
3197
|
-
if (e = Ne(e), t =
|
|
3197
|
+
if (e = Ne(e), t = _r(t), e.type.includes("hsl"))
|
|
3198
3198
|
e.values[2] += (100 - e.values[2]) * t;
|
|
3199
3199
|
else if (e.type.includes("rgb"))
|
|
3200
3200
|
for (let r = 0; r < 3; r += 1)
|
|
@@ -3212,7 +3212,7 @@ function Z(e, t, r) {
|
|
|
3212
3212
|
}
|
|
3213
3213
|
}
|
|
3214
3214
|
function qa(e, t = 0.15) {
|
|
3215
|
-
return
|
|
3215
|
+
return fr(e) > 0.5 ? Wt(e, t) : Ut(e, t);
|
|
3216
3216
|
}
|
|
3217
3217
|
function yt(e, t, r) {
|
|
3218
3218
|
try {
|
|
@@ -3231,10 +3231,10 @@ function no(e) {
|
|
|
3231
3231
|
}
|
|
3232
3232
|
};
|
|
3233
3233
|
}
|
|
3234
|
-
const
|
|
3235
|
-
process.env.NODE_ENV !== "production" && (
|
|
3236
|
-
function
|
|
3237
|
-
const e = _.useContext(
|
|
3234
|
+
const Pr = /* @__PURE__ */ _.createContext(null);
|
|
3235
|
+
process.env.NODE_ENV !== "production" && (Pr.displayName = "ThemeContext");
|
|
3236
|
+
function Ar() {
|
|
3237
|
+
const e = _.useContext(Pr);
|
|
3238
3238
|
return process.env.NODE_ENV !== "production" && _.useDebugValue(e), e;
|
|
3239
3239
|
}
|
|
3240
3240
|
const Ka = typeof Symbol == "function" && Symbol.for, Ha = Ka ? /* @__PURE__ */ Symbol.for("mui.nested") : "__THEME_NESTED__";
|
|
@@ -3253,7 +3253,7 @@ function wt(e) {
|
|
|
3253
3253
|
const {
|
|
3254
3254
|
children: t,
|
|
3255
3255
|
theme: r
|
|
3256
|
-
} = e, n =
|
|
3256
|
+
} = e, n = Ar();
|
|
3257
3257
|
process.env.NODE_ENV !== "production" && n === null && typeof r == "function" && console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:", "<ThemeProvider theme={outerTheme => outerTheme} />", "", "However, no outer theme is present.", "Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
|
|
3258
3258
|
`));
|
|
3259
3259
|
const o = _.useMemo(() => {
|
|
@@ -3262,7 +3262,7 @@ function wt(e) {
|
|
|
3262
3262
|
} : Xa(n, r);
|
|
3263
3263
|
return i != null && (i[Ha] = n !== null), i;
|
|
3264
3264
|
}, [r, n]);
|
|
3265
|
-
return /* @__PURE__ */ ne(
|
|
3265
|
+
return /* @__PURE__ */ ne(Pr.Provider, {
|
|
3266
3266
|
value: o,
|
|
3267
3267
|
children: t
|
|
3268
3268
|
});
|
|
@@ -3325,7 +3325,7 @@ function Qa(e) {
|
|
|
3325
3325
|
if (!t || !t.components || !t.components[r])
|
|
3326
3326
|
return n;
|
|
3327
3327
|
const o = t.components[r];
|
|
3328
|
-
return o.defaultProps ?
|
|
3328
|
+
return o.defaultProps ? ur(o.defaultProps, n, t.components.mergeClassNameAndStyle) : !o.styleOverrides && !o.variants ? ur(o, n, t.components.mergeClassNameAndStyle) : n;
|
|
3329
3329
|
}
|
|
3330
3330
|
function Za({
|
|
3331
3331
|
props: e,
|
|
@@ -3340,21 +3340,21 @@ function Za({
|
|
|
3340
3340
|
}
|
|
3341
3341
|
});
|
|
3342
3342
|
}
|
|
3343
|
-
let
|
|
3343
|
+
let vn = 0;
|
|
3344
3344
|
function es(e) {
|
|
3345
3345
|
const [t, r] = _.useState(e), n = e || t;
|
|
3346
3346
|
return _.useEffect(() => {
|
|
3347
|
-
t == null && (
|
|
3347
|
+
t == null && (vn += 1, r(`mui-${vn}`));
|
|
3348
3348
|
}, [t]), n;
|
|
3349
3349
|
}
|
|
3350
3350
|
const ts = {
|
|
3351
3351
|
..._
|
|
3352
|
-
},
|
|
3352
|
+
}, Sn = ts.useId;
|
|
3353
3353
|
function rs(e) {
|
|
3354
|
-
return
|
|
3354
|
+
return Sn !== void 0 ? Sn() : es(e);
|
|
3355
3355
|
}
|
|
3356
3356
|
function ns(e) {
|
|
3357
|
-
const t =
|
|
3357
|
+
const t = Or(), r = rs() || "", {
|
|
3358
3358
|
modularCssLayers: n
|
|
3359
3359
|
} = e;
|
|
3360
3360
|
let o = "mui.global, mui.components, mui.theme, mui.custom, mui.sx";
|
|
@@ -3370,12 +3370,12 @@ function ns(e) {
|
|
|
3370
3370
|
c.setAttribute("data-mui-layer-order", r), c.textContent = o, i.prepend(c);
|
|
3371
3371
|
} else
|
|
3372
3372
|
i.querySelector(`style[data-mui-layer-order="${r}"]`)?.remove();
|
|
3373
|
-
}, [o, r]), o ? /* @__PURE__ */ ne(
|
|
3373
|
+
}, [o, r]), o ? /* @__PURE__ */ ne(kr, {
|
|
3374
3374
|
styles: o
|
|
3375
3375
|
}) : null;
|
|
3376
3376
|
}
|
|
3377
|
-
const
|
|
3378
|
-
function
|
|
3377
|
+
const Cn = {};
|
|
3378
|
+
function En(e, t, r, n = !1) {
|
|
3379
3379
|
return _.useMemo(() => {
|
|
3380
3380
|
const o = e && t[e] || t;
|
|
3381
3381
|
if (typeof r == "function") {
|
|
@@ -3399,10 +3399,10 @@ function it(e) {
|
|
|
3399
3399
|
children: t,
|
|
3400
3400
|
theme: r,
|
|
3401
3401
|
themeId: n
|
|
3402
|
-
} = e, o =
|
|
3402
|
+
} = e, o = Or(Cn), i = Ar() || Cn;
|
|
3403
3403
|
process.env.NODE_ENV !== "production" && (o === null && typeof r == "function" || n && o && !o[n] && typeof r == "function") && console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:", "<ThemeProvider theme={outerTheme => outerTheme} />", "", "However, no outer theme is present.", "Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
|
|
3404
3404
|
`));
|
|
3405
|
-
const a =
|
|
3405
|
+
const a = En(n, o, r), c = En(n, i, r, !0), u = (n ? a[n] : a).direction === "rtl", f = ns(a);
|
|
3406
3406
|
return /* @__PURE__ */ ne(wt, {
|
|
3407
3407
|
theme: c,
|
|
3408
3408
|
children: /* @__PURE__ */ ne(st.Provider, {
|
|
@@ -3436,14 +3436,14 @@ process.env.NODE_ENV !== "production" && (it.propTypes = {
|
|
|
3436
3436
|
themeId: $.string
|
|
3437
3437
|
});
|
|
3438
3438
|
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && (it.propTypes = no(it.propTypes));
|
|
3439
|
-
const
|
|
3439
|
+
const Rr = "mode", Nr = "color-scheme", os = "data-color-scheme";
|
|
3440
3440
|
function is(e) {
|
|
3441
3441
|
const {
|
|
3442
3442
|
defaultMode: t = "system",
|
|
3443
3443
|
defaultLightColorScheme: r = "light",
|
|
3444
3444
|
defaultDarkColorScheme: n = "dark",
|
|
3445
|
-
modeStorageKey: o =
|
|
3446
|
-
colorSchemeStorageKey: i =
|
|
3445
|
+
modeStorageKey: o = Rr,
|
|
3446
|
+
colorSchemeStorageKey: i = Nr,
|
|
3447
3447
|
attribute: a = os,
|
|
3448
3448
|
colorSchemeNode: c = "document.documentElement",
|
|
3449
3449
|
nonce: u
|
|
@@ -3532,7 +3532,7 @@ const ss = ({
|
|
|
3532
3532
|
});
|
|
3533
3533
|
function rr() {
|
|
3534
3534
|
}
|
|
3535
|
-
function
|
|
3535
|
+
function Tn(e) {
|
|
3536
3536
|
if (typeof window < "u" && typeof window.matchMedia == "function" && e === "system")
|
|
3537
3537
|
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
3538
3538
|
}
|
|
@@ -3556,8 +3556,8 @@ function ls(e) {
|
|
|
3556
3556
|
defaultLightColorScheme: r,
|
|
3557
3557
|
defaultDarkColorScheme: n,
|
|
3558
3558
|
supportedColorSchemes: o = [],
|
|
3559
|
-
modeStorageKey: i =
|
|
3560
|
-
colorSchemeStorageKey: a =
|
|
3559
|
+
modeStorageKey: i = Rr,
|
|
3560
|
+
colorSchemeStorageKey: a = Nr,
|
|
3561
3561
|
storageWindow: c = typeof window > "u" ? void 0 : window,
|
|
3562
3562
|
storageManager: u = ss,
|
|
3563
3563
|
noSsr: f = !1
|
|
@@ -3574,7 +3574,7 @@ function ls(e) {
|
|
|
3574
3574
|
const L = h?.get(t) || t, R = v?.get(r) || r, N = g?.get(n) || n;
|
|
3575
3575
|
return {
|
|
3576
3576
|
mode: L,
|
|
3577
|
-
systemMode:
|
|
3577
|
+
systemMode: Tn(L),
|
|
3578
3578
|
lightColorScheme: R,
|
|
3579
3579
|
darkColorScheme: N
|
|
3580
3580
|
};
|
|
@@ -3590,7 +3590,7 @@ function ls(e) {
|
|
|
3590
3590
|
return h?.set(N), {
|
|
3591
3591
|
...R,
|
|
3592
3592
|
mode: N,
|
|
3593
|
-
systemMode:
|
|
3593
|
+
systemMode: Tn(N)
|
|
3594
3594
|
};
|
|
3595
3595
|
});
|
|
3596
3596
|
}, [h, t]), b = _.useCallback((L) => {
|
|
@@ -3664,8 +3664,8 @@ function fs(e) {
|
|
|
3664
3664
|
* It should also ideally have a vars object created using `prepareCssVars`.
|
|
3665
3665
|
*/
|
|
3666
3666
|
theme: r = {},
|
|
3667
|
-
modeStorageKey: n =
|
|
3668
|
-
colorSchemeStorageKey: o =
|
|
3667
|
+
modeStorageKey: n = Rr,
|
|
3668
|
+
colorSchemeStorageKey: o = Nr,
|
|
3669
3669
|
disableTransitionOnChange: i = !1,
|
|
3670
3670
|
defaultColorScheme: a,
|
|
3671
3671
|
resolveTheme: c
|
|
@@ -3699,7 +3699,7 @@ function fs(e) {
|
|
|
3699
3699
|
defaultMode: M = "system",
|
|
3700
3700
|
forceThemeRerender: x = !1,
|
|
3701
3701
|
noSsr: q
|
|
3702
|
-
} = E, Y = _.useRef(!1), ue =
|
|
3702
|
+
} = E, Y = _.useRef(!1), ue = Ar(), pe = _.useContext(f), Ie = !!pe && !D, S = _.useMemo(() => P || (typeof r == "function" ? r() : r), [P]), O = S[t], A = O || S, {
|
|
3703
3703
|
colorSchemes: j = p,
|
|
3704
3704
|
components: B = h,
|
|
3705
3705
|
cssVarPrefix: W
|
|
@@ -3710,7 +3710,7 @@ function fs(e) {
|
|
|
3710
3710
|
lightColorScheme: De,
|
|
3711
3711
|
darkColorScheme: Ke,
|
|
3712
3712
|
colorScheme: Co,
|
|
3713
|
-
setColorScheme:
|
|
3713
|
+
setColorScheme: jr
|
|
3714
3714
|
} = ls({
|
|
3715
3715
|
supportedColorSchemes: V,
|
|
3716
3716
|
defaultLightColorScheme: U,
|
|
@@ -3783,27 +3783,27 @@ function fs(e) {
|
|
|
3783
3783
|
darkColorScheme: Ke,
|
|
3784
3784
|
lightColorScheme: De,
|
|
3785
3785
|
mode: zt,
|
|
3786
|
-
setColorScheme:
|
|
3786
|
+
setColorScheme: jr,
|
|
3787
3787
|
setMode: process.env.NODE_ENV === "production" ? w : (me) => {
|
|
3788
3788
|
dt.colorSchemeSelector === "media" && console.error(["MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).", "To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.", "To learn more, visit https://mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually"].join(`
|
|
3789
3789
|
`)), w(me);
|
|
3790
3790
|
},
|
|
3791
3791
|
systemMode: ge
|
|
3792
|
-
}), [V, Te, Ke, De, zt,
|
|
3793
|
-
let
|
|
3794
|
-
(s || A.cssVariables === !1 || Ie && ue?.cssVarPrefix === W) && (
|
|
3795
|
-
const
|
|
3792
|
+
}), [V, Te, Ke, De, zt, jr, w, ge, dt.colorSchemeSelector]);
|
|
3793
|
+
let Lr = !0;
|
|
3794
|
+
(s || A.cssVariables === !1 || Ie && ue?.cssVarPrefix === W) && (Lr = !1);
|
|
3795
|
+
const Br = /* @__PURE__ */ $t(_.Fragment, {
|
|
3796
3796
|
children: [/* @__PURE__ */ ne(it, {
|
|
3797
3797
|
themeId: O ? t : void 0,
|
|
3798
3798
|
theme: dt,
|
|
3799
3799
|
children: k
|
|
3800
|
-
}),
|
|
3800
|
+
}), Lr && /* @__PURE__ */ ne(xr, {
|
|
3801
3801
|
styles: dt.generateStyleSheets?.() || []
|
|
3802
3802
|
})]
|
|
3803
3803
|
});
|
|
3804
|
-
return Ie ?
|
|
3804
|
+
return Ie ? Br : /* @__PURE__ */ ne(f.Provider, {
|
|
3805
3805
|
value: Eo,
|
|
3806
|
-
children:
|
|
3806
|
+
children: Br
|
|
3807
3807
|
});
|
|
3808
3808
|
}
|
|
3809
3809
|
process.env.NODE_ENV !== "production" && (v.propTypes = {
|
|
@@ -3892,7 +3892,7 @@ function ds(e = "") {
|
|
|
3892
3892
|
}
|
|
3893
3893
|
return (n, ...o) => `var(--${e ? `${e}-` : ""}${n}${t(...o)})`;
|
|
3894
3894
|
}
|
|
3895
|
-
const
|
|
3895
|
+
const xn = (e, t, r, n = []) => {
|
|
3896
3896
|
let o = e;
|
|
3897
3897
|
t.forEach((i, a) => {
|
|
3898
3898
|
a === t.length - 1 ? Array.isArray(o) ? o[Number(i)] = r : o && typeof o == "object" && (o[i] = r) : o && typeof o == "object" && (o[i] || (o[i] = n.includes(i) ? [] : {}), o = o[i]);
|
|
@@ -3917,7 +3917,7 @@ function nr(e, t) {
|
|
|
3917
3917
|
const d = `--${r ? `${r}-` : ""}${c.join("-")}`, p = ms(c, u);
|
|
3918
3918
|
Object.assign(o, {
|
|
3919
3919
|
[d]: p
|
|
3920
|
-
}),
|
|
3920
|
+
}), xn(i, c, `var(${d})`, f), xn(a, c, `var(${d}, ${p})`, f);
|
|
3921
3921
|
}
|
|
3922
3922
|
},
|
|
3923
3923
|
(c) => c[0] === "vars"
|
|
@@ -4123,12 +4123,12 @@ function uo() {
|
|
|
4123
4123
|
}
|
|
4124
4124
|
};
|
|
4125
4125
|
}
|
|
4126
|
-
const
|
|
4127
|
-
function
|
|
4126
|
+
const dr = uo();
|
|
4127
|
+
function wn(e, t, r, n) {
|
|
4128
4128
|
const o = n.light || n, i = n.dark || n * 1.5;
|
|
4129
4129
|
e[t] || (e.hasOwnProperty(r) ? e[t] = e[r] : t === "light" ? e.light = Ut(e.main, o) : t === "dark" && (e.dark = Wt(e.main, i)));
|
|
4130
4130
|
}
|
|
4131
|
-
function
|
|
4131
|
+
function $n(e, t, r, n, o) {
|
|
4132
4132
|
const i = o.light || o, a = o.dark || o * 1.5;
|
|
4133
4133
|
t[r] || (t.hasOwnProperty(n) ? t[r] = t[n] : r === "light" ? t.light = `color-mix(in ${e}, ${t.main}, #fff ${(i * 100).toFixed(0)}%)` : r === "dark" && (t.dark = `color-mix(in ${e}, ${t.main}, #000 ${(a * 100).toFixed(0)}%)`));
|
|
4134
4134
|
}
|
|
@@ -4202,7 +4202,7 @@ function Es(e = "light") {
|
|
|
4202
4202
|
function Ts(e) {
|
|
4203
4203
|
return `oklch(from ${e} var(--__l) 0 h / var(--__a))`;
|
|
4204
4204
|
}
|
|
4205
|
-
function
|
|
4205
|
+
function Mr(e) {
|
|
4206
4206
|
const {
|
|
4207
4207
|
mode: t = "light",
|
|
4208
4208
|
contrastThreshold: r = 3,
|
|
@@ -4213,9 +4213,9 @@ function Nr(e) {
|
|
|
4213
4213
|
function h(y) {
|
|
4214
4214
|
if (o)
|
|
4215
4215
|
return Ts(y);
|
|
4216
|
-
const E =
|
|
4216
|
+
const E = bn(y, dr.text.primary) >= r ? dr.text.primary : lo.text.primary;
|
|
4217
4217
|
if (process.env.NODE_ENV !== "production") {
|
|
4218
|
-
const k =
|
|
4218
|
+
const k = bn(y, E);
|
|
4219
4219
|
k < 3 && console.error([`MUI: The contrast ratio of ${k}:1 for ${E} on ${y}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
4220
4220
|
`));
|
|
4221
4221
|
}
|
|
@@ -4248,7 +4248,7 @@ const theme1 = createTheme({ palette: {
|
|
|
4248
4248
|
const theme2 = createTheme({ palette: {
|
|
4249
4249
|
primary: { main: green[500] },
|
|
4250
4250
|
} });` : Re(12, E ? ` (${E})` : "", JSON.stringify(y.main)));
|
|
4251
|
-
return o ? (
|
|
4251
|
+
return o ? ($n(o, y, "light", P, n), $n(o, y, "dark", C, n)) : (wn(y, "light", P, n), wn(y, "dark", C, n)), y.contrastText || (y.contrastText = h(y.main)), y;
|
|
4252
4252
|
};
|
|
4253
4253
|
let g;
|
|
4254
4254
|
return t === "light" ? g = co() : t === "dark" && (g = uo()), process.env.NODE_ENV !== "production" && (g || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), ve({
|
|
@@ -4335,12 +4335,12 @@ function ws(e, t) {
|
|
|
4335
4335
|
function $s(e) {
|
|
4336
4336
|
return Math.round(e * 1e5) / 1e5;
|
|
4337
4337
|
}
|
|
4338
|
-
const
|
|
4338
|
+
const On = {
|
|
4339
4339
|
textTransform: "uppercase"
|
|
4340
|
-
},
|
|
4340
|
+
}, kn = '"Roboto", "Helvetica", "Arial", sans-serif';
|
|
4341
4341
|
function fo(e, t) {
|
|
4342
4342
|
const {
|
|
4343
|
-
fontFamily: r =
|
|
4343
|
+
fontFamily: r = kn,
|
|
4344
4344
|
// The default font size of the Material Specification.
|
|
4345
4345
|
fontSize: n = 14,
|
|
4346
4346
|
// px
|
|
@@ -4365,7 +4365,7 @@ function fo(e, t) {
|
|
|
4365
4365
|
lineHeight: k,
|
|
4366
4366
|
// The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
|
|
4367
4367
|
// across font-families can cause issues with the kerning.
|
|
4368
|
-
...r ===
|
|
4368
|
+
...r === kn ? {
|
|
4369
4369
|
letterSpacing: `${$s(P / E)}em`
|
|
4370
4370
|
} : {},
|
|
4371
4371
|
...C,
|
|
@@ -4381,9 +4381,9 @@ function fo(e, t) {
|
|
|
4381
4381
|
subtitle2: g(a, 14, 1.57, 0.1),
|
|
4382
4382
|
body1: g(i, 16, 1.5, 0.15),
|
|
4383
4383
|
body2: g(i, 14, 1.43, 0.15),
|
|
4384
|
-
button: g(a, 14, 1.75, 0.4,
|
|
4384
|
+
button: g(a, 14, 1.75, 0.4, On),
|
|
4385
4385
|
caption: g(i, 12, 1.66, 0.4),
|
|
4386
|
-
overline: g(i, 12, 2.66, 1,
|
|
4386
|
+
overline: g(i, 12, 2.66, 1, On),
|
|
4387
4387
|
// 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.
|
|
4388
4388
|
inherit: {
|
|
4389
4389
|
fontFamily: "inherit",
|
|
@@ -4435,7 +4435,7 @@ const Ps = ["none", re(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), re(0, 3, 1, -2, 0,
|
|
|
4435
4435
|
// recommended when something is leaving screen
|
|
4436
4436
|
leavingScreen: 195
|
|
4437
4437
|
};
|
|
4438
|
-
function
|
|
4438
|
+
function _n(e) {
|
|
4439
4439
|
return `${Math.round(e)}ms`;
|
|
4440
4440
|
}
|
|
4441
4441
|
function Ns(e) {
|
|
@@ -4466,7 +4466,7 @@ function Ms(e) {
|
|
|
4466
4466
|
!d(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !p(a) && !d(a) && console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`), d(c) || console.error('MUI: Argument "easing" must be a string.'), !p(u) && !d(u) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof i != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
4467
4467
|
`)), Object.keys(f).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(f).join(",")}].`);
|
|
4468
4468
|
}
|
|
4469
|
-
return (Array.isArray(o) ? o : [o]).map((d) => `${d} ${typeof a == "string" ? a :
|
|
4469
|
+
return (Array.isArray(o) ? o : [o]).map((d) => `${d} ${typeof a == "string" ? a : _n(a)} ${c} ${typeof u == "string" ? u : _n(u)}`).join(",");
|
|
4470
4470
|
},
|
|
4471
4471
|
...e,
|
|
4472
4472
|
easing: t,
|
|
@@ -4508,7 +4508,7 @@ theme.transitions = createTransitions(theme.transitions || {});
|
|
|
4508
4508
|
|
|
4509
4509
|
export default theme;`;
|
|
4510
4510
|
}
|
|
4511
|
-
function
|
|
4511
|
+
function Pn(e) {
|
|
4512
4512
|
return typeof e == "number" ? `${(e * 100).toFixed(0)}%` : `calc((${e}) * 100%)`;
|
|
4513
4513
|
}
|
|
4514
4514
|
const js = (e) => {
|
|
@@ -4530,15 +4530,15 @@ function Ls(e) {
|
|
|
4530
4530
|
},
|
|
4531
4531
|
lighten(t, r) {
|
|
4532
4532
|
const n = this || e;
|
|
4533
|
-
return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${t}, #fff ${
|
|
4533
|
+
return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${t}, #fff ${Pn(r)})` : Ut(t, r);
|
|
4534
4534
|
},
|
|
4535
4535
|
darken(t, r) {
|
|
4536
4536
|
const n = this || e;
|
|
4537
|
-
return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${t}, #000 ${
|
|
4537
|
+
return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${t}, #000 ${Pn(r)})` : Wt(t, r);
|
|
4538
4538
|
}
|
|
4539
4539
|
});
|
|
4540
4540
|
}
|
|
4541
|
-
function
|
|
4541
|
+
function pr(e = {}, ...t) {
|
|
4542
4542
|
const {
|
|
4543
4543
|
breakpoints: r,
|
|
4544
4544
|
mixins: n = {},
|
|
@@ -4554,7 +4554,7 @@ function dr(e = {}, ...t) {
|
|
|
4554
4554
|
// `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.
|
|
4555
4555
|
e.generateThemeVars === void 0)
|
|
4556
4556
|
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." : Re(20));
|
|
4557
|
-
const p =
|
|
4557
|
+
const p = Mr({
|
|
4558
4558
|
...i,
|
|
4559
4559
|
colorSpace: f
|
|
4560
4560
|
}), h = Qn(e);
|
|
@@ -4634,7 +4634,7 @@ function Fs(e) {
|
|
|
4634
4634
|
overlays: n,
|
|
4635
4635
|
colorSpace: o,
|
|
4636
4636
|
...i
|
|
4637
|
-
} = e, a =
|
|
4637
|
+
} = e, a = Mr({
|
|
4638
4638
|
...t,
|
|
4639
4639
|
colorSpace: o
|
|
4640
4640
|
});
|
|
@@ -4732,7 +4732,7 @@ function or(e, t, r, n, o) {
|
|
|
4732
4732
|
const {
|
|
4733
4733
|
palette: a,
|
|
4734
4734
|
...c
|
|
4735
|
-
} =
|
|
4735
|
+
} = pr({
|
|
4736
4736
|
...n,
|
|
4737
4737
|
palette: {
|
|
4738
4738
|
mode: i,
|
|
@@ -4808,7 +4808,7 @@ function Ks(e = {}, ...t) {
|
|
|
4808
4808
|
if (Ys(s, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), s.mode === "light") {
|
|
4809
4809
|
m(s.Alert, "errorColor", x(Q, s.error.light, 0.6)), m(s.Alert, "infoColor", x(Q, s.info.light, 0.6)), m(s.Alert, "successColor", x(Q, s.success.light, 0.6)), m(s.Alert, "warningColor", x(Q, s.warning.light, 0.6)), m(s.Alert, "errorFilledBg", M("palette-error-main")), m(s.Alert, "infoFilledBg", M("palette-info-main")), m(s.Alert, "successFilledBg", M("palette-success-main")), m(s.Alert, "warningFilledBg", M("palette-warning-main")), m(s.Alert, "errorFilledColor", we(() => s.getContrastText(s.error.main))), m(s.Alert, "infoFilledColor", we(() => s.getContrastText(s.info.main))), m(s.Alert, "successFilledColor", we(() => s.getContrastText(s.success.main))), m(s.Alert, "warningFilledColor", we(() => s.getContrastText(s.warning.main))), m(s.Alert, "errorStandardBg", x(Z, s.error.light, 0.9)), m(s.Alert, "infoStandardBg", x(Z, s.info.light, 0.9)), m(s.Alert, "successStandardBg", x(Z, s.success.light, 0.9)), m(s.Alert, "warningStandardBg", x(Z, s.warning.light, 0.9)), m(s.Alert, "errorIconColor", M("palette-error-main")), m(s.Alert, "infoIconColor", M("palette-info-main")), m(s.Alert, "successIconColor", M("palette-success-main")), m(s.Alert, "warningIconColor", M("palette-warning-main")), m(s.AppBar, "defaultBg", M("palette-grey-100")), m(s.Avatar, "defaultBg", M("palette-grey-400")), m(s.Button, "inheritContainedBg", M("palette-grey-300")), m(s.Button, "inheritContainedHoverBg", M("palette-grey-A100")), m(s.Chip, "defaultBorder", M("palette-grey-400")), m(s.Chip, "defaultAvatarColor", M("palette-grey-700")), m(s.Chip, "defaultIconColor", M("palette-grey-700")), m(s.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), m(s.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), m(s.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), m(s.LinearProgress, "primaryBg", x(Z, s.primary.main, 0.62)), m(s.LinearProgress, "secondaryBg", x(Z, s.secondary.main, 0.62)), m(s.LinearProgress, "errorBg", x(Z, s.error.main, 0.62)), m(s.LinearProgress, "infoBg", x(Z, s.info.main, 0.62)), m(s.LinearProgress, "successBg", x(Z, s.success.main, 0.62)), m(s.LinearProgress, "warningBg", x(Z, s.warning.main, 0.62)), m(s.Skeleton, "bg", C ? x(je, s.text.primary, 0.11) : `rgba(${M("palette-text-primaryChannel")} / 0.11)`), m(s.Slider, "primaryTrack", x(Z, s.primary.main, 0.62)), m(s.Slider, "secondaryTrack", x(Z, s.secondary.main, 0.62)), m(s.Slider, "errorTrack", x(Z, s.error.main, 0.62)), m(s.Slider, "infoTrack", x(Z, s.info.main, 0.62)), m(s.Slider, "successTrack", x(Z, s.success.main, 0.62)), m(s.Slider, "warningTrack", x(Z, s.warning.main, 0.62));
|
|
4810
4810
|
const q = C ? x(Q, s.background.default, 0.6825) : yt(s.background.default, 0.8);
|
|
4811
|
-
m(s.SnackbarContent, "bg", q), m(s.SnackbarContent, "color", we(() => C ?
|
|
4811
|
+
m(s.SnackbarContent, "bg", q), m(s.SnackbarContent, "color", we(() => C ? dr.text.primary : s.getContrastText(q))), m(s.SpeedDialAction, "fabHoverBg", yt(s.background.paper, 0.15)), m(s.StepConnector, "border", M("palette-grey-400")), m(s.StepContent, "border", M("palette-grey-400")), m(s.Switch, "defaultColor", M("palette-common-white")), m(s.Switch, "defaultDisabledColor", M("palette-grey-100")), m(s.Switch, "primaryDisabledColor", x(Z, s.primary.main, 0.62)), m(s.Switch, "secondaryDisabledColor", x(Z, s.secondary.main, 0.62)), m(s.Switch, "errorDisabledColor", x(Z, s.error.main, 0.62)), m(s.Switch, "infoDisabledColor", x(Z, s.info.main, 0.62)), m(s.Switch, "successDisabledColor", x(Z, s.success.main, 0.62)), m(s.Switch, "warningDisabledColor", x(Z, s.warning.main, 0.62)), m(s.TableCell, "border", x(Z, x(je, s.divider, 1), 0.88)), m(s.Tooltip, "bg", x(je, s.grey[700], 0.92));
|
|
4812
4812
|
}
|
|
4813
4813
|
if (s.mode === "dark") {
|
|
4814
4814
|
m(s.Alert, "errorColor", x(Z, s.error.light, 0.6)), m(s.Alert, "infoColor", x(Z, s.info.light, 0.6)), m(s.Alert, "successColor", x(Z, s.success.light, 0.6)), m(s.Alert, "warningColor", x(Z, s.warning.light, 0.6)), m(s.Alert, "errorFilledBg", M("palette-error-dark")), m(s.Alert, "infoFilledBg", M("palette-info-dark")), m(s.Alert, "successFilledBg", M("palette-success-dark")), m(s.Alert, "warningFilledBg", M("palette-warning-dark")), m(s.Alert, "errorFilledColor", we(() => s.getContrastText(s.error.dark))), m(s.Alert, "infoFilledColor", we(() => s.getContrastText(s.info.dark))), m(s.Alert, "successFilledColor", we(() => s.getContrastText(s.success.dark))), m(s.Alert, "warningFilledColor", we(() => s.getContrastText(s.warning.dark))), m(s.Alert, "errorStandardBg", x(Q, s.error.light, 0.9)), m(s.Alert, "infoStandardBg", x(Q, s.info.light, 0.9)), m(s.Alert, "successStandardBg", x(Q, s.success.light, 0.9)), m(s.Alert, "warningStandardBg", x(Q, s.warning.light, 0.9)), m(s.Alert, "errorIconColor", M("palette-error-main")), m(s.Alert, "infoIconColor", M("palette-info-main")), m(s.Alert, "successIconColor", M("palette-success-main")), m(s.Alert, "warningIconColor", M("palette-warning-main")), m(s.AppBar, "defaultBg", M("palette-grey-900")), m(s.AppBar, "darkBg", M("palette-background-paper")), m(s.AppBar, "darkColor", M("palette-text-primary")), m(s.Avatar, "defaultBg", M("palette-grey-600")), m(s.Button, "inheritContainedBg", M("palette-grey-800")), m(s.Button, "inheritContainedHoverBg", M("palette-grey-700")), m(s.Chip, "defaultBorder", M("palette-grey-700")), m(s.Chip, "defaultAvatarColor", M("palette-grey-300")), m(s.Chip, "defaultIconColor", M("palette-grey-300")), m(s.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), m(s.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), m(s.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), m(s.LinearProgress, "primaryBg", x(Q, s.primary.main, 0.5)), m(s.LinearProgress, "secondaryBg", x(Q, s.secondary.main, 0.5)), m(s.LinearProgress, "errorBg", x(Q, s.error.main, 0.5)), m(s.LinearProgress, "infoBg", x(Q, s.info.main, 0.5)), m(s.LinearProgress, "successBg", x(Q, s.success.main, 0.5)), m(s.LinearProgress, "warningBg", x(Q, s.warning.main, 0.5)), m(s.Skeleton, "bg", C ? x(je, s.text.primary, 0.13) : `rgba(${M("palette-text-primaryChannel")} / 0.13)`), m(s.Slider, "primaryTrack", x(Q, s.primary.main, 0.5)), m(s.Slider, "secondaryTrack", x(Q, s.secondary.main, 0.5)), m(s.Slider, "errorTrack", x(Q, s.error.main, 0.5)), m(s.Slider, "infoTrack", x(Q, s.info.main, 0.5)), m(s.Slider, "successTrack", x(Q, s.success.main, 0.5)), m(s.Slider, "warningTrack", x(Q, s.warning.main, 0.5));
|
|
@@ -4834,7 +4834,7 @@ function Ks(e = {}, ...t) {
|
|
|
4834
4834
|
return T.vars = L, Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([D, s]) => {
|
|
4835
4835
|
T[D] = s;
|
|
4836
4836
|
}), T.generateThemeVars = R, T.generateStyleSheets = N, T.generateSpacing = function() {
|
|
4837
|
-
return Jn(d.spacing,
|
|
4837
|
+
return Jn(d.spacing, wr(this));
|
|
4838
4838
|
}, T.getColorSchemeSelector = gs(u), T.spacing = T.generateSpacing(), T.shouldSkipGeneratingVar = c, T.unstable_sxConfig = {
|
|
4839
4839
|
...Vt,
|
|
4840
4840
|
...d?.unstable_sxConfig
|
|
@@ -4845,17 +4845,17 @@ function Ks(e = {}, ...t) {
|
|
|
4845
4845
|
});
|
|
4846
4846
|
}, T.toRuntimeSource = po, T;
|
|
4847
4847
|
}
|
|
4848
|
-
function
|
|
4848
|
+
function An(e, t, r) {
|
|
4849
4849
|
e.colorSchemes && r && (e.colorSchemes[t] = {
|
|
4850
4850
|
...r !== !0 && r,
|
|
4851
|
-
palette:
|
|
4851
|
+
palette: Mr({
|
|
4852
4852
|
...r === !0 ? {} : r.palette,
|
|
4853
4853
|
mode: t
|
|
4854
4854
|
})
|
|
4855
4855
|
// cast type to skip module augmentation test
|
|
4856
4856
|
});
|
|
4857
4857
|
}
|
|
4858
|
-
function
|
|
4858
|
+
function Ir(e = {}, ...t) {
|
|
4859
4859
|
const {
|
|
4860
4860
|
palette: r,
|
|
4861
4861
|
cssVariables: n = !1,
|
|
@@ -4875,22 +4875,22 @@ function Mr(e = {}, ...t) {
|
|
|
4875
4875
|
};
|
|
4876
4876
|
if (n === !1) {
|
|
4877
4877
|
if (!("colorSchemes" in e))
|
|
4878
|
-
return
|
|
4878
|
+
return pr(e, ...t);
|
|
4879
4879
|
let d = r;
|
|
4880
4880
|
"palette" in e || f[c] && (f[c] !== !0 ? d = f[c].palette : c === "dark" && (d = {
|
|
4881
4881
|
mode: "dark"
|
|
4882
4882
|
}));
|
|
4883
|
-
const p =
|
|
4883
|
+
const p = pr({
|
|
4884
4884
|
...e,
|
|
4885
4885
|
palette: d
|
|
4886
4886
|
}, ...t);
|
|
4887
4887
|
return p.defaultColorScheme = c, p.colorSchemes = f, p.palette.mode === "light" && (p.colorSchemes.light = {
|
|
4888
4888
|
...f.light !== !0 && f.light,
|
|
4889
4889
|
palette: p.palette
|
|
4890
|
-
},
|
|
4890
|
+
}, An(p, "dark", f.dark)), p.palette.mode === "dark" && (p.colorSchemes.dark = {
|
|
4891
4891
|
...f.dark !== !0 && f.dark,
|
|
4892
4892
|
palette: p.palette
|
|
4893
|
-
},
|
|
4893
|
+
}, An(p, "light", f.light)), p;
|
|
4894
4894
|
}
|
|
4895
4895
|
return !r && !("light" in f) && c === "light" && (f.light = !0), Ks({
|
|
4896
4896
|
...a,
|
|
@@ -4899,7 +4899,7 @@ function Mr(e = {}, ...t) {
|
|
|
4899
4899
|
...typeof n != "boolean" && n
|
|
4900
4900
|
}, ...t);
|
|
4901
4901
|
}
|
|
4902
|
-
const Hs =
|
|
4902
|
+
const Hs = Ir();
|
|
4903
4903
|
function Xs({
|
|
4904
4904
|
theme: e,
|
|
4905
4905
|
...t
|
|
@@ -4923,7 +4923,7 @@ const {
|
|
|
4923
4923
|
} = fs({
|
|
4924
4924
|
themeId: Le,
|
|
4925
4925
|
// @ts-ignore ignore module augmentation tests
|
|
4926
|
-
theme: () =>
|
|
4926
|
+
theme: () => Ir({
|
|
4927
4927
|
cssVariables: !0
|
|
4928
4928
|
}),
|
|
4929
4929
|
colorSchemeStorageKey: bt.colorSchemeStorageKey,
|
|
@@ -4967,7 +4967,7 @@ function Zs({
|
|
|
4967
4967
|
});
|
|
4968
4968
|
}
|
|
4969
4969
|
function go(e) {
|
|
4970
|
-
return /* @__PURE__ */ ne(
|
|
4970
|
+
return /* @__PURE__ */ ne(kr, {
|
|
4971
4971
|
...e,
|
|
4972
4972
|
defaultTheme: Hs,
|
|
4973
4973
|
themeId: Le
|
|
@@ -5000,7 +5000,7 @@ process.env.NODE_ENV !== "production" && ($.node, $.object.isRequired);
|
|
|
5000
5000
|
function ec(e) {
|
|
5001
5001
|
return Za(e);
|
|
5002
5002
|
}
|
|
5003
|
-
const
|
|
5003
|
+
const mr = typeof yo({}) == "function", tc = (e, t) => ({
|
|
5004
5004
|
WebkitFontSmoothing: "antialiased",
|
|
5005
5005
|
// Antialiasing.
|
|
5006
5006
|
MozOsxFontSmoothing: "grayscale",
|
|
@@ -5072,7 +5072,7 @@ const pr = typeof yo({}) == "function", tc = (e, t) => ({
|
|
|
5072
5072
|
}
|
|
5073
5073
|
};
|
|
5074
5074
|
}), t;
|
|
5075
|
-
}, oc = yo(
|
|
5075
|
+
}, oc = yo(mr ? ({
|
|
5076
5076
|
theme: e,
|
|
5077
5077
|
enableColorScheme: t
|
|
5078
5078
|
}) => bo(e, t) : ({
|
|
@@ -5087,9 +5087,9 @@ function vo(e) {
|
|
|
5087
5087
|
enableColorScheme: n = !1
|
|
5088
5088
|
} = t;
|
|
5089
5089
|
return /* @__PURE__ */ $t(_.Fragment, {
|
|
5090
|
-
children: [
|
|
5090
|
+
children: [mr && /* @__PURE__ */ ne(oc, {
|
|
5091
5091
|
enableColorScheme: n
|
|
5092
|
-
}), !
|
|
5092
|
+
}), !mr && !n && /* @__PURE__ */ ne("span", {
|
|
5093
5093
|
className: Et,
|
|
5094
5094
|
style: {
|
|
5095
5095
|
display: "none"
|
|
@@ -5114,13 +5114,13 @@ process.env.NODE_ENV !== "production" && (vo.propTypes = {
|
|
|
5114
5114
|
*/
|
|
5115
5115
|
enableColorScheme: $.bool
|
|
5116
5116
|
});
|
|
5117
|
-
const
|
|
5117
|
+
const Dr = Oo(void 0), Rn = "codeplex-theme", ic = ({
|
|
5118
5118
|
children: e,
|
|
5119
5119
|
temaPorDefecto: t = "light"
|
|
5120
5120
|
}) => {
|
|
5121
5121
|
const [r, n] = ko(() => {
|
|
5122
5122
|
if (typeof window < "u") {
|
|
5123
|
-
const c = localStorage.getItem(
|
|
5123
|
+
const c = localStorage.getItem(Rn);
|
|
5124
5124
|
if (c === "light" || c === "dark")
|
|
5125
5125
|
return c;
|
|
5126
5126
|
if (window.matchMedia("(prefers-color-scheme: dark)").matches)
|
|
@@ -5129,9 +5129,9 @@ const Ir = Oo(void 0), An = "codeplex-theme", ic = ({
|
|
|
5129
5129
|
return t;
|
|
5130
5130
|
}), o = qt((c) => {
|
|
5131
5131
|
const u = document.documentElement;
|
|
5132
|
-
u.classList.remove("light", "dark"), u.classList.add(c), localStorage.setItem(
|
|
5132
|
+
u.classList.remove("light", "dark"), u.classList.add(c), localStorage.setItem(Rn, c);
|
|
5133
5133
|
}, []);
|
|
5134
|
-
|
|
5134
|
+
ir(() => {
|
|
5135
5135
|
o(r);
|
|
5136
5136
|
}, [r, o]);
|
|
5137
5137
|
const i = qt((c) => {
|
|
@@ -5139,14 +5139,14 @@ const Ir = Oo(void 0), An = "codeplex-theme", ic = ({
|
|
|
5139
5139
|
}, []), a = qt(() => {
|
|
5140
5140
|
n((c) => c === "light" ? "dark" : "light");
|
|
5141
5141
|
}, []);
|
|
5142
|
-
return /* @__PURE__ */ ne(
|
|
5143
|
-
}, cc = ({ defaultTheme: e, ...t }) => /* @__PURE__ */ ne(ic, { temaPorDefecto: e, ...t }), lc =
|
|
5144
|
-
const e = xo.useContext(
|
|
5142
|
+
return /* @__PURE__ */ ne(Dr.Provider, { value: { tema: r, alternarTema: a, establecerTema: i }, children: e });
|
|
5143
|
+
}, cc = ({ defaultTheme: e, ...t }) => /* @__PURE__ */ ne(ic, { temaPorDefecto: e, ...t }), lc = Dr, So = () => {
|
|
5144
|
+
const e = xo.useContext(Dr);
|
|
5145
5145
|
if (!e)
|
|
5146
5146
|
throw new Error("usarTema debe ser usado dentro de un CodeplexProveedorTema");
|
|
5147
5147
|
return e;
|
|
5148
5148
|
}, uc = So, fc = ({ children: e }) => {
|
|
5149
|
-
const { tema: t } = So(), r = _o(() =>
|
|
5149
|
+
const { tema: t } = So(), r = _o(() => Ir({
|
|
5150
5150
|
palette: {
|
|
5151
5151
|
mode: t,
|
|
5152
5152
|
primary: {
|
|
@@ -5189,7 +5189,10 @@ const Ir = Oo(void 0), An = "codeplex-theme", ic = ({
|
|
|
5189
5189
|
}
|
|
5190
5190
|
}
|
|
5191
5191
|
}), [t]);
|
|
5192
|
-
return
|
|
5192
|
+
return ir(() => {
|
|
5193
|
+
const n = document.documentElement, o = r.palette;
|
|
5194
|
+
n.style.setProperty("--cp-primary-main", o.primary.main), n.style.setProperty("--cp-bg-default", o.background.default), n.style.setProperty("--cp-bg-paper", o.background.paper), n.style.setProperty("--cp-text-primary", o.text.primary), n.style.setProperty("--cp-text-secondary", o.text.secondary), n.style.setProperty("--cp-divider", o.divider);
|
|
5195
|
+
}, [r]), ir(() => {
|
|
5193
5196
|
const n = "codeplex-google-resources";
|
|
5194
5197
|
if (!document.getElementById(n)) {
|
|
5195
5198
|
const o = document.createElement("link");
|
|
@@ -5207,7 +5210,7 @@ export {
|
|
|
5207
5210
|
fc as CodeplexProveedorMui,
|
|
5208
5211
|
ic as CodeplexProveedorTema,
|
|
5209
5212
|
cc as CodeplexThemeProvider,
|
|
5210
|
-
|
|
5213
|
+
Dr as ContextoTema,
|
|
5211
5214
|
lc as ThemeContext,
|
|
5212
5215
|
dc as tema,
|
|
5213
5216
|
So as usarTema,
|