ymy-components 0.0.23 → 0.0.25
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/index.es.js
CHANGED
|
@@ -12,7 +12,7 @@ var rr = { exports: {} }, xt = {};
|
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
14
|
var Si;
|
|
15
|
-
function
|
|
15
|
+
function Pa() {
|
|
16
16
|
if (Si) return xt;
|
|
17
17
|
Si = 1;
|
|
18
18
|
var e = te, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
@@ -36,46 +36,46 @@ var Ot = {};
|
|
|
36
36
|
* LICENSE file in the root directory of this source tree.
|
|
37
37
|
*/
|
|
38
38
|
var xi;
|
|
39
|
-
function
|
|
39
|
+
function Na() {
|
|
40
40
|
return xi || (xi = 1, process.env.NODE_ENV !== "production" && function() {
|
|
41
|
-
var e = te, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), a = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"),
|
|
41
|
+
var e = te, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), a = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), v = Symbol.iterator, E = "@@iterator";
|
|
42
42
|
function w(c) {
|
|
43
43
|
if (c === null || typeof c != "object")
|
|
44
44
|
return null;
|
|
45
|
-
var g =
|
|
45
|
+
var g = v && c[v] || c[E];
|
|
46
46
|
return typeof g == "function" ? g : null;
|
|
47
47
|
}
|
|
48
|
-
var
|
|
48
|
+
var m = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
49
49
|
function b(c) {
|
|
50
50
|
{
|
|
51
|
-
for (var g = arguments.length, x = new Array(g > 1 ? g - 1 : 0),
|
|
52
|
-
x[
|
|
53
|
-
|
|
51
|
+
for (var g = arguments.length, x = new Array(g > 1 ? g - 1 : 0), N = 1; N < g; N++)
|
|
52
|
+
x[N - 1] = arguments[N];
|
|
53
|
+
y("error", c, x);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function y(c, g, x) {
|
|
57
57
|
{
|
|
58
|
-
var
|
|
58
|
+
var N = m.ReactDebugCurrentFrame, j = N.getStackAddendum();
|
|
59
59
|
j !== "" && (g += "%s", x = x.concat([j]));
|
|
60
|
-
var $ = x.map(function(
|
|
61
|
-
return String(
|
|
60
|
+
var $ = x.map(function(D) {
|
|
61
|
+
return String(D);
|
|
62
62
|
});
|
|
63
63
|
$.unshift("Warning: " + g), Function.prototype.apply.call(console[c], console, $);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
var S = !1, k = !1,
|
|
66
|
+
var S = !1, k = !1, P = !1, O = !1, I = !1, M;
|
|
67
67
|
M = Symbol.for("react.module.reference");
|
|
68
68
|
function fe(c) {
|
|
69
|
-
return !!(typeof c == "string" || typeof c == "function" || c === n || c === o ||
|
|
69
|
+
return !!(typeof c == "string" || typeof c == "function" || c === n || c === o || I || c === i || c === l || c === f || O || c === p || S || k || P || typeof c == "object" && c !== null && (c.$$typeof === h || c.$$typeof === d || c.$$typeof === s || c.$$typeof === a || c.$$typeof === u || // This needs to include all possible module reference object
|
|
70
70
|
// types supported by any Flight configuration anywhere since
|
|
71
71
|
// we don't know which Flight build this will end up being used
|
|
72
72
|
// with.
|
|
73
73
|
c.$$typeof === M || c.getModuleId !== void 0));
|
|
74
74
|
}
|
|
75
75
|
function Y(c, g, x) {
|
|
76
|
-
var
|
|
77
|
-
if (
|
|
78
|
-
return
|
|
76
|
+
var N = c.displayName;
|
|
77
|
+
if (N)
|
|
78
|
+
return N;
|
|
79
79
|
var j = g.displayName || g.name || "";
|
|
80
80
|
return j !== "" ? x + "(" + j + ")" : x;
|
|
81
81
|
}
|
|
@@ -114,12 +114,12 @@ function Pa() {
|
|
|
114
114
|
case u:
|
|
115
115
|
return Y(c, c.render, "ForwardRef");
|
|
116
116
|
case d:
|
|
117
|
-
var
|
|
118
|
-
return
|
|
117
|
+
var N = c.displayName || null;
|
|
118
|
+
return N !== null ? N : W(c.type) || "Memo";
|
|
119
119
|
case h: {
|
|
120
|
-
var j = c, $ = j._payload,
|
|
120
|
+
var j = c, $ = j._payload, D = j._init;
|
|
121
121
|
try {
|
|
122
|
-
return W(
|
|
122
|
+
return W(D($));
|
|
123
123
|
} catch {
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
@@ -189,15 +189,15 @@ function Pa() {
|
|
|
189
189
|
ze < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
var Oe =
|
|
192
|
+
var Oe = m.ReactCurrentDispatcher, Ae;
|
|
193
193
|
function pe(c, g, x) {
|
|
194
194
|
{
|
|
195
195
|
if (Ae === void 0)
|
|
196
196
|
try {
|
|
197
197
|
throw Error();
|
|
198
198
|
} catch (j) {
|
|
199
|
-
var
|
|
200
|
-
Ae =
|
|
199
|
+
var N = j.stack.trim().match(/\n( *(at )?)/);
|
|
200
|
+
Ae = N && N[1] || "";
|
|
201
201
|
}
|
|
202
202
|
return `
|
|
203
203
|
` + Ae + c;
|
|
@@ -216,7 +216,7 @@ function Pa() {
|
|
|
216
216
|
if (x !== void 0)
|
|
217
217
|
return x;
|
|
218
218
|
}
|
|
219
|
-
var
|
|
219
|
+
var N;
|
|
220
220
|
me = !0;
|
|
221
221
|
var j = Error.prepareStackTrace;
|
|
222
222
|
Error.prepareStackTrace = void 0;
|
|
@@ -224,40 +224,40 @@ function Pa() {
|
|
|
224
224
|
$ = Oe.current, Oe.current = null, Et();
|
|
225
225
|
try {
|
|
226
226
|
if (g) {
|
|
227
|
-
var
|
|
227
|
+
var D = function() {
|
|
228
228
|
throw Error();
|
|
229
229
|
};
|
|
230
|
-
if (Object.defineProperty(
|
|
230
|
+
if (Object.defineProperty(D.prototype, "props", {
|
|
231
231
|
set: function() {
|
|
232
232
|
throw Error();
|
|
233
233
|
}
|
|
234
234
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
235
235
|
try {
|
|
236
|
-
Reflect.construct(
|
|
236
|
+
Reflect.construct(D, []);
|
|
237
237
|
} catch (X) {
|
|
238
|
-
|
|
238
|
+
N = X;
|
|
239
239
|
}
|
|
240
|
-
Reflect.construct(c, [],
|
|
240
|
+
Reflect.construct(c, [], D);
|
|
241
241
|
} else {
|
|
242
242
|
try {
|
|
243
|
-
|
|
243
|
+
D.call();
|
|
244
244
|
} catch (X) {
|
|
245
|
-
|
|
245
|
+
N = X;
|
|
246
246
|
}
|
|
247
|
-
c.call(
|
|
247
|
+
c.call(D.prototype);
|
|
248
248
|
}
|
|
249
249
|
} else {
|
|
250
250
|
try {
|
|
251
251
|
throw Error();
|
|
252
252
|
} catch (X) {
|
|
253
|
-
|
|
253
|
+
N = X;
|
|
254
254
|
}
|
|
255
255
|
c();
|
|
256
256
|
}
|
|
257
257
|
} catch (X) {
|
|
258
|
-
if (X &&
|
|
258
|
+
if (X && N && typeof X.stack == "string") {
|
|
259
259
|
for (var A = X.stack.split(`
|
|
260
|
-
`), Q =
|
|
260
|
+
`), Q = N.stack.split(`
|
|
261
261
|
`), B = A.length - 1, U = Q.length - 1; B >= 1 && U >= 0 && A[B] !== Q[U]; )
|
|
262
262
|
U--;
|
|
263
263
|
for (; B >= 1 && U >= 0; B--, U--)
|
|
@@ -306,7 +306,7 @@ function Pa() {
|
|
|
306
306
|
case d:
|
|
307
307
|
return Zt(c.type, g, x);
|
|
308
308
|
case h: {
|
|
309
|
-
var
|
|
309
|
+
var N = c, j = N._payload, $ = N._init;
|
|
310
310
|
try {
|
|
311
311
|
return Zt($(j), g, x);
|
|
312
312
|
} catch {
|
|
@@ -315,7 +315,7 @@ function Pa() {
|
|
|
315
315
|
}
|
|
316
316
|
return "";
|
|
317
317
|
}
|
|
318
|
-
var St = Object.prototype.hasOwnProperty, ci = {}, ui =
|
|
318
|
+
var St = Object.prototype.hasOwnProperty, ci = {}, ui = m.ReactDebugCurrentFrame;
|
|
319
319
|
function er(c) {
|
|
320
320
|
if (c) {
|
|
321
321
|
var g = c._owner, x = Zt(c.type, c._source, g ? g.type : null);
|
|
@@ -323,22 +323,22 @@ function Pa() {
|
|
|
323
323
|
} else
|
|
324
324
|
ui.setExtraStackFrame(null);
|
|
325
325
|
}
|
|
326
|
-
function ea(c, g, x,
|
|
326
|
+
function ea(c, g, x, N, j) {
|
|
327
327
|
{
|
|
328
328
|
var $ = Function.call.bind(St);
|
|
329
|
-
for (var
|
|
330
|
-
if ($(c,
|
|
329
|
+
for (var D in c)
|
|
330
|
+
if ($(c, D)) {
|
|
331
331
|
var A = void 0;
|
|
332
332
|
try {
|
|
333
|
-
if (typeof c[
|
|
334
|
-
var Q = Error((
|
|
333
|
+
if (typeof c[D] != "function") {
|
|
334
|
+
var Q = Error((N || "React class") + ": " + x + " type `" + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[D] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
335
335
|
throw Q.name = "Invariant Violation", Q;
|
|
336
336
|
}
|
|
337
|
-
A = c[
|
|
337
|
+
A = c[D](g, D, N, x, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
338
338
|
} catch (B) {
|
|
339
339
|
A = B;
|
|
340
340
|
}
|
|
341
|
-
A && !(A instanceof Error) && (er(j), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",
|
|
341
|
+
A && !(A instanceof Error) && (er(j), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", N || "React class", x, D, typeof A), er(null)), A instanceof Error && !(A.message in ci) && (ci[A.message] = !0, er(j), b("Failed %s type: %s", x, A.message), er(null));
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
}
|
|
@@ -366,7 +366,7 @@ function Pa() {
|
|
|
366
366
|
if (na(c))
|
|
367
367
|
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ra(c)), li(c);
|
|
368
368
|
}
|
|
369
|
-
var di =
|
|
369
|
+
var di = m.ReactCurrentOwner, ia = {
|
|
370
370
|
key: !0,
|
|
371
371
|
ref: !0,
|
|
372
372
|
__self: !0,
|
|
@@ -413,7 +413,7 @@ function Pa() {
|
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
var la = function(c, g, x,
|
|
416
|
+
var la = function(c, g, x, N, j, $, D) {
|
|
417
417
|
var A = {
|
|
418
418
|
// This tag allows us to uniquely identify this as a React Element
|
|
419
419
|
$$typeof: t,
|
|
@@ -421,7 +421,7 @@ function Pa() {
|
|
|
421
421
|
type: c,
|
|
422
422
|
key: g,
|
|
423
423
|
ref: x,
|
|
424
|
-
props:
|
|
424
|
+
props: D,
|
|
425
425
|
// Record the component responsible for creating this element.
|
|
426
426
|
_owner: $
|
|
427
427
|
};
|
|
@@ -434,7 +434,7 @@ function Pa() {
|
|
|
434
434
|
configurable: !1,
|
|
435
435
|
enumerable: !1,
|
|
436
436
|
writable: !1,
|
|
437
|
-
value:
|
|
437
|
+
value: N
|
|
438
438
|
}), Object.defineProperty(A, "_source", {
|
|
439
439
|
configurable: !1,
|
|
440
440
|
enumerable: !1,
|
|
@@ -442,25 +442,25 @@ function Pa() {
|
|
|
442
442
|
value: j
|
|
443
443
|
}), Object.freeze && (Object.freeze(A.props), Object.freeze(A)), A;
|
|
444
444
|
};
|
|
445
|
-
function fa(c, g, x,
|
|
445
|
+
function fa(c, g, x, N, j) {
|
|
446
446
|
{
|
|
447
|
-
var $,
|
|
447
|
+
var $, D = {}, A = null, Q = null;
|
|
448
448
|
x !== void 0 && (fi(x), A = "" + x), sa(g) && (fi(g.key), A = "" + g.key), oa(g) && (Q = g.ref, aa(g, j));
|
|
449
449
|
for ($ in g)
|
|
450
|
-
St.call(g, $) && !ia.hasOwnProperty($) && (
|
|
450
|
+
St.call(g, $) && !ia.hasOwnProperty($) && (D[$] = g[$]);
|
|
451
451
|
if (c && c.defaultProps) {
|
|
452
452
|
var B = c.defaultProps;
|
|
453
453
|
for ($ in B)
|
|
454
|
-
|
|
454
|
+
D[$] === void 0 && (D[$] = B[$]);
|
|
455
455
|
}
|
|
456
456
|
if (A || Q) {
|
|
457
457
|
var U = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
|
|
458
|
-
A && ca(
|
|
458
|
+
A && ca(D, U), Q && ua(D, U);
|
|
459
459
|
}
|
|
460
|
-
return la(c, A, Q, j,
|
|
460
|
+
return la(c, A, Q, j, N, di.current, D);
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
var Qr =
|
|
463
|
+
var Qr = m.ReactCurrentOwner, mi = m.ReactDebugCurrentFrame;
|
|
464
464
|
function ot(c) {
|
|
465
465
|
if (c) {
|
|
466
466
|
var g = c._owner, x = Zt(c.type, c._source, g ? g.type : null);
|
|
@@ -510,8 +510,8 @@ Check the top-level render call using <` + x + ">.");
|
|
|
510
510
|
if (gi[x])
|
|
511
511
|
return;
|
|
512
512
|
gi[x] = !0;
|
|
513
|
-
var
|
|
514
|
-
c && c._owner && c._owner !== Qr.current && (
|
|
513
|
+
var N = "";
|
|
514
|
+
c && c._owner && c._owner !== Qr.current && (N = " It was passed a child from " + W(c._owner.type) + "."), ot(c), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', x, N), ot(null);
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
function bi(c, g) {
|
|
@@ -520,16 +520,16 @@ Check the top-level render call using <` + x + ">.");
|
|
|
520
520
|
return;
|
|
521
521
|
if (Kr(c))
|
|
522
522
|
for (var x = 0; x < c.length; x++) {
|
|
523
|
-
var
|
|
524
|
-
Jr(
|
|
523
|
+
var N = c[x];
|
|
524
|
+
Jr(N) && vi(N, g);
|
|
525
525
|
}
|
|
526
526
|
else if (Jr(c))
|
|
527
527
|
c._store && (c._store.validated = !0);
|
|
528
528
|
else if (c) {
|
|
529
529
|
var j = w(c);
|
|
530
530
|
if (typeof j == "function" && j !== c.entries)
|
|
531
|
-
for (var $ = j.call(c),
|
|
532
|
-
Jr(
|
|
531
|
+
for (var $ = j.call(c), D; !(D = $.next()).done; )
|
|
532
|
+
Jr(D.value) && vi(D.value, g);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
}
|
|
@@ -548,8 +548,8 @@ Check the top-level render call using <` + x + ">.");
|
|
|
548
548
|
else
|
|
549
549
|
return;
|
|
550
550
|
if (x) {
|
|
551
|
-
var
|
|
552
|
-
ea(x, c.props, "prop",
|
|
551
|
+
var N = W(g);
|
|
552
|
+
ea(x, c.props, "prop", N, c);
|
|
553
553
|
} else if (g.PropTypes !== void 0 && !Xr) {
|
|
554
554
|
Xr = !0;
|
|
555
555
|
var j = W(g);
|
|
@@ -561,9 +561,9 @@ Check the top-level render call using <` + x + ">.");
|
|
|
561
561
|
function ma(c) {
|
|
562
562
|
{
|
|
563
563
|
for (var g = Object.keys(c.props), x = 0; x < g.length; x++) {
|
|
564
|
-
var
|
|
565
|
-
if (
|
|
566
|
-
ot(c), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
564
|
+
var N = g[x];
|
|
565
|
+
if (N !== "children" && N !== "key") {
|
|
566
|
+
ot(c), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", N), ot(null);
|
|
567
567
|
break;
|
|
568
568
|
}
|
|
569
569
|
}
|
|
@@ -571,10 +571,10 @@ Check the top-level render call using <` + x + ">.");
|
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
var wi = {};
|
|
574
|
-
function _i(c, g, x,
|
|
574
|
+
function _i(c, g, x, N, j, $) {
|
|
575
575
|
{
|
|
576
|
-
var
|
|
577
|
-
if (!
|
|
576
|
+
var D = fe(c);
|
|
577
|
+
if (!D) {
|
|
578
578
|
var A = "";
|
|
579
579
|
(c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (A += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
580
580
|
var Q = da();
|
|
@@ -585,10 +585,10 @@ Check the top-level render call using <` + x + ">.");
|
|
|
585
585
|
var U = fa(c, g, x, j, $);
|
|
586
586
|
if (U == null)
|
|
587
587
|
return U;
|
|
588
|
-
if (
|
|
588
|
+
if (D) {
|
|
589
589
|
var ae = g.children;
|
|
590
590
|
if (ae !== void 0)
|
|
591
|
-
if (
|
|
591
|
+
if (N)
|
|
592
592
|
if (Kr(ae)) {
|
|
593
593
|
for (var st = 0; st < ae.length; st++)
|
|
594
594
|
bi(ae[st], c);
|
|
@@ -627,7 +627,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
627
627
|
}
|
|
628
628
|
var Oi;
|
|
629
629
|
function Ca() {
|
|
630
|
-
return Oi || (Oi = 1, process.env.NODE_ENV === "production" ? rr.exports =
|
|
630
|
+
return Oi || (Oi = 1, process.env.NODE_ENV === "production" ? rr.exports = Pa() : rr.exports = Na()), rr.exports;
|
|
631
631
|
}
|
|
632
632
|
var L = Ca(), Ln = Kt(), C = (e) => Gt(e, Ln), Bn = Kt();
|
|
633
633
|
C.write = (e) => Gt(e, Bn);
|
|
@@ -700,7 +700,7 @@ function ko() {
|
|
|
700
700
|
const e = Ve;
|
|
701
701
|
Ve = C.now();
|
|
702
702
|
const t = So(Ve);
|
|
703
|
-
if (t && (
|
|
703
|
+
if (t && (Po(ut.splice(0, t), (r) => r.handler()), $e -= t), !$e) {
|
|
704
704
|
Ra();
|
|
705
705
|
return;
|
|
706
706
|
}
|
|
@@ -716,11 +716,11 @@ function Kt() {
|
|
|
716
716
|
return $e -= t == e && e.has(r) ? 1 : 0, e.delete(r);
|
|
717
717
|
},
|
|
718
718
|
flush(r) {
|
|
719
|
-
t.size && (e = /* @__PURE__ */ new Set(), $e -= t.size,
|
|
719
|
+
t.size && (e = /* @__PURE__ */ new Set(), $e -= t.size, Po(t, (n) => n(r) && e.add(n)), $e += e.size, t = e);
|
|
720
720
|
}
|
|
721
721
|
};
|
|
722
722
|
}
|
|
723
|
-
function
|
|
723
|
+
function Po(e, t) {
|
|
724
724
|
e.forEach((r) => {
|
|
725
725
|
try {
|
|
726
726
|
t(r);
|
|
@@ -734,16 +734,16 @@ var Aa = Object.defineProperty, Ta = (e, t) => {
|
|
|
734
734
|
Aa(e, r, { get: t[r], enumerable: !0 });
|
|
735
735
|
}, we = {};
|
|
736
736
|
Ta(we, {
|
|
737
|
-
assign: () =>
|
|
737
|
+
assign: () => Ia,
|
|
738
738
|
colors: () => Me,
|
|
739
739
|
createStringInterpolator: () => Yn,
|
|
740
740
|
skipAnimation: () => Co,
|
|
741
|
-
to: () =>
|
|
741
|
+
to: () => No,
|
|
742
742
|
willAdvance: () => Gn
|
|
743
743
|
});
|
|
744
744
|
function mn() {
|
|
745
745
|
}
|
|
746
|
-
var
|
|
746
|
+
var Da = (e, t, r) => Object.defineProperty(e, t, { value: r, writable: !0, configurable: !0 }), _ = {
|
|
747
747
|
arr: Array.isArray,
|
|
748
748
|
obj: (e) => !!e && e.constructor.name === "Object",
|
|
749
749
|
fun: (e) => typeof e == "function",
|
|
@@ -779,15 +779,15 @@ function Tt(e, t) {
|
|
|
779
779
|
e.clear(), T(r, t);
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
|
-
var Ct = (e, ...t) => Tt(e, (r) => r(...t)), Hn = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), Yn,
|
|
783
|
-
e.to && (
|
|
784
|
-
},
|
|
782
|
+
var Ct = (e, ...t) => Tt(e, (r) => r(...t)), Hn = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), Yn, No, Me = null, Co = !1, Gn = mn, Ia = (e) => {
|
|
783
|
+
e.to && (No = e.to), e.now && (C.now = e.now), e.colors !== void 0 && (Me = e.colors), e.skipAnimation != null && (Co = e.skipAnimation), e.createStringInterpolator && (Yn = e.createStringInterpolator), e.requestAnimationFrame && C.use(e.requestAnimationFrame), e.batchedUpdates && (C.batchedUpdates = e.batchedUpdates), e.willAdvance && (Gn = e.willAdvance), e.frameLoop && (C.frameLoop = e.frameLoop);
|
|
784
|
+
}, Dt = /* @__PURE__ */ new Set(), ue = [], en = [], vr = 0, Tr = {
|
|
785
785
|
get idle() {
|
|
786
|
-
return !
|
|
786
|
+
return !Dt.size && !ue.length;
|
|
787
787
|
},
|
|
788
788
|
/** Advance the given animation on every frame until idle. */
|
|
789
789
|
start(e) {
|
|
790
|
-
vr > e.priority ? (
|
|
790
|
+
vr > e.priority ? (Dt.add(e), C.onStart(ja)) : (Ro(e), C(yn));
|
|
791
791
|
},
|
|
792
792
|
/** Advance all animations by the given time. */
|
|
793
793
|
advance: yn,
|
|
@@ -806,11 +806,11 @@ var Ct = (e, ...t) => Tt(e, (r) => r(...t)), Hn = () => typeof window > "u" || !
|
|
|
806
806
|
* ☠️ Never call this from within the frameloop.
|
|
807
807
|
*/
|
|
808
808
|
clear() {
|
|
809
|
-
ue = [],
|
|
809
|
+
ue = [], Dt.clear();
|
|
810
810
|
}
|
|
811
811
|
};
|
|
812
812
|
function ja() {
|
|
813
|
-
|
|
813
|
+
Dt.forEach(Ro), Dt.clear(), C(yn);
|
|
814
814
|
}
|
|
815
815
|
function Ro(e) {
|
|
816
816
|
ue.includes(e) || Ao(e);
|
|
@@ -986,11 +986,11 @@ var $a = {
|
|
|
986
986
|
yellow: 4294902015,
|
|
987
987
|
yellowgreen: 2597139199
|
|
988
988
|
}, ve = "[-+]?\\d*\\.?\\d+", br = ve + "%";
|
|
989
|
-
function
|
|
989
|
+
function Dr(...e) {
|
|
990
990
|
return "\\(\\s*(" + e.join(")\\s*,\\s*(") + ")\\s*\\)";
|
|
991
991
|
}
|
|
992
|
-
var Ma = new RegExp("rgb" +
|
|
993
|
-
"hsla" +
|
|
992
|
+
var Ma = new RegExp("rgb" + Dr(ve, ve, ve)), za = new RegExp("rgba" + Dr(ve, ve, ve, ve)), Fa = new RegExp("hsl" + Dr(ve, br, br)), La = new RegExp(
|
|
993
|
+
"hsla" + Dr(ve, br, br, ve)
|
|
994
994
|
), Ba = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, Ua = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, qa = /^#([0-9a-fA-F]{6})$/, Wa = /^#([0-9a-fA-F]{8})$/;
|
|
995
995
|
function Ha(e) {
|
|
996
996
|
let t;
|
|
@@ -1001,7 +1001,7 @@ function Ha(e) {
|
|
|
1001
1001
|
0 : (t = za.exec(e)) ? (at(t[1]) << 24 | // r
|
|
1002
1002
|
at(t[2]) << 16 | // g
|
|
1003
1003
|
at(t[3]) << 8 | // b
|
|
1004
|
-
|
|
1004
|
+
Ni(t[4])) >>> // a
|
|
1005
1005
|
0 : (t = Ba.exec(e)) ? parseInt(
|
|
1006
1006
|
t[1] + t[1] + // r
|
|
1007
1007
|
t[2] + t[2] + // g
|
|
@@ -1017,7 +1017,7 @@ function Ha(e) {
|
|
|
1017
1017
|
// a
|
|
1018
1018
|
16
|
|
1019
1019
|
) >>> 0 : (t = Fa.exec(e)) ? (ki(
|
|
1020
|
-
|
|
1020
|
+
Pi(t[1]),
|
|
1021
1021
|
// h
|
|
1022
1022
|
nr(t[2]),
|
|
1023
1023
|
// s
|
|
@@ -1025,13 +1025,13 @@ function Ha(e) {
|
|
|
1025
1025
|
// l
|
|
1026
1026
|
) | 255) >>> // a
|
|
1027
1027
|
0 : (t = La.exec(e)) ? (ki(
|
|
1028
|
-
|
|
1028
|
+
Pi(t[1]),
|
|
1029
1029
|
// h
|
|
1030
1030
|
nr(t[2]),
|
|
1031
1031
|
// s
|
|
1032
1032
|
nr(t[3])
|
|
1033
1033
|
// l
|
|
1034
|
-
) |
|
|
1034
|
+
) | Ni(t[4])) >>> // a
|
|
1035
1035
|
0 : null;
|
|
1036
1036
|
}
|
|
1037
1037
|
function tn(e, t, r) {
|
|
@@ -1045,10 +1045,10 @@ function at(e) {
|
|
|
1045
1045
|
const t = parseInt(e, 10);
|
|
1046
1046
|
return t < 0 ? 0 : t > 255 ? 255 : t;
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1048
|
+
function Pi(e) {
|
|
1049
1049
|
return (parseFloat(e) % 360 + 360) % 360 / 360;
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1051
|
+
function Ni(e) {
|
|
1052
1052
|
const t = parseFloat(e);
|
|
1053
1053
|
return t < 0 ? 0 : t > 1 ? 255 : Math.round(t * 255);
|
|
1054
1054
|
}
|
|
@@ -1128,11 +1128,11 @@ var To = class {
|
|
|
1128
1128
|
throw Error("Unknown getter");
|
|
1129
1129
|
Xa(this, e);
|
|
1130
1130
|
}
|
|
1131
|
-
}, Xa = (e, t) =>
|
|
1131
|
+
}, Xa = (e, t) => Do(e, Mt, t);
|
|
1132
1132
|
function vt(e, t) {
|
|
1133
1133
|
if (e[Mt]) {
|
|
1134
1134
|
let r = e[ft];
|
|
1135
|
-
r ||
|
|
1135
|
+
r || Do(e, ft, r = /* @__PURE__ */ new Set()), r.has(t) || (r.add(t), e.observerAdded && e.observerAdded(r.size, t));
|
|
1136
1136
|
}
|
|
1137
1137
|
return t;
|
|
1138
1138
|
}
|
|
@@ -1143,11 +1143,11 @@ function Ft(e, t) {
|
|
|
1143
1143
|
n ? r.delete(t) : e[ft] = null, e.observerRemoved && e.observerRemoved(n, t);
|
|
1144
1144
|
}
|
|
1145
1145
|
}
|
|
1146
|
-
var
|
|
1146
|
+
var Do = (e, t, r) => Object.defineProperty(e, t, {
|
|
1147
1147
|
value: r,
|
|
1148
1148
|
writable: !0,
|
|
1149
1149
|
configurable: !0
|
|
1150
|
-
}), lr = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, Ja = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi, Ai = new RegExp(`(${lr.source})(%|[a-z]+)`, "i"), Za = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,
|
|
1150
|
+
}), lr = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, Ja = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi, Ai = new RegExp(`(${lr.source})(%|[a-z]+)`, "i"), Za = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi, Ir = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/, Io = (e) => {
|
|
1151
1151
|
const [t, r] = ec(e);
|
|
1152
1152
|
if (!t || Hn())
|
|
1153
1153
|
return e;
|
|
@@ -1158,14 +1158,14 @@ var Io = (e, t, r) => Object.defineProperty(e, t, {
|
|
|
1158
1158
|
const i = window.getComputedStyle(document.documentElement).getPropertyValue(r);
|
|
1159
1159
|
return i || e;
|
|
1160
1160
|
} else {
|
|
1161
|
-
if (r &&
|
|
1162
|
-
return
|
|
1161
|
+
if (r && Ir.test(r))
|
|
1162
|
+
return Io(r);
|
|
1163
1163
|
if (r)
|
|
1164
1164
|
return r;
|
|
1165
1165
|
}
|
|
1166
1166
|
return e;
|
|
1167
1167
|
}, ec = (e) => {
|
|
1168
|
-
const t =
|
|
1168
|
+
const t = Ir.exec(e);
|
|
1169
1169
|
if (!t)
|
|
1170
1170
|
return [,];
|
|
1171
1171
|
const [, r, n] = t;
|
|
@@ -1178,7 +1178,7 @@ var Io = (e, t, r) => Object.defineProperty(e, t, {
|
|
|
1178
1178
|
// never match
|
|
1179
1179
|
/^\b$/
|
|
1180
1180
|
));
|
|
1181
|
-
const t = e.output.map((o) => J(o).replace(
|
|
1181
|
+
const t = e.output.map((o) => J(o).replace(Ir, Io).replace(Ja, Ci).replace(rn, Ci)), r = t.map((o) => o.match(lr).map(Number)), i = r[0].map(
|
|
1182
1182
|
(o, s) => r.map((a) => {
|
|
1183
1183
|
if (!(s in a))
|
|
1184
1184
|
throw Error('The arity of each "output" value must be equal');
|
|
@@ -1218,7 +1218,7 @@ function oc() {
|
|
|
1218
1218
|
}
|
|
1219
1219
|
function jr(e) {
|
|
1220
1220
|
return _.str(e) && (e[0] == "#" || /\d/.test(e) || // Do not identify a CSS variable as an AnimatedString if its SSR
|
|
1221
|
-
!Hn() &&
|
|
1221
|
+
!Hn() && Ir.test(e) || e in (Me || {}));
|
|
1222
1222
|
}
|
|
1223
1223
|
var Qn = Hn() ? Ge : Ea, sc = () => {
|
|
1224
1224
|
const e = Se(!1);
|
|
@@ -1262,7 +1262,7 @@ function Ti(e) {
|
|
|
1262
1262
|
t.current = e;
|
|
1263
1263
|
}), t.current;
|
|
1264
1264
|
}
|
|
1265
|
-
var Lt = Symbol.for("Animated:node"), lc = (e) => !!e && e[Lt] === e, _e = (e) => e && e[Lt], Xn = (e, t) =>
|
|
1265
|
+
var Lt = Symbol.for("Animated:node"), lc = (e) => !!e && e[Lt] === e, _e = (e) => e && e[Lt], Xn = (e, t) => Da(e, Lt, t), Vr = (e) => e && e[Lt] && e[Lt].getPayload(), zo = class {
|
|
1266
1266
|
constructor() {
|
|
1267
1267
|
Xn(this, this);
|
|
1268
1268
|
}
|
|
@@ -1374,7 +1374,7 @@ function gn(e) {
|
|
|
1374
1374
|
const t = _e(e);
|
|
1375
1375
|
return t ? t.constructor : _.arr(e) ? Fo : jr(e) ? Bt : Qt;
|
|
1376
1376
|
}
|
|
1377
|
-
var
|
|
1377
|
+
var Di = (e, t) => {
|
|
1378
1378
|
const r = (
|
|
1379
1379
|
// Function components must use "forwardRef" to avoid being
|
|
1380
1380
|
// re-rendered on every animation frame.
|
|
@@ -1383,24 +1383,24 @@ var Ii = (e, t) => {
|
|
|
1383
1383
|
return Sa((n, i) => {
|
|
1384
1384
|
const o = Se(null), s = r && // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1385
1385
|
xa(
|
|
1386
|
-
(
|
|
1387
|
-
o.current = pc(i,
|
|
1386
|
+
(v) => {
|
|
1387
|
+
o.current = pc(i, v);
|
|
1388
1388
|
},
|
|
1389
1389
|
[i]
|
|
1390
1390
|
), [a, u] = hc(n, t), l = $o(), f = () => {
|
|
1391
|
-
const
|
|
1392
|
-
if (r && !
|
|
1391
|
+
const v = o.current;
|
|
1392
|
+
if (r && !v)
|
|
1393
1393
|
return;
|
|
1394
|
-
(
|
|
1394
|
+
(v ? t.applyAnimatedValues(v, a.getValue(!0)) : !1) === !1 && l();
|
|
1395
1395
|
}, d = new dc(f, u), h = Se();
|
|
1396
|
-
Qn(() => (h.current = d, T(u, (
|
|
1396
|
+
Qn(() => (h.current = d, T(u, (v) => vt(v, d)), () => {
|
|
1397
1397
|
h.current && (T(
|
|
1398
1398
|
h.current.deps,
|
|
1399
|
-
(
|
|
1399
|
+
(v) => Ft(v, h.current)
|
|
1400
1400
|
), C.cancel(h.current.update));
|
|
1401
1401
|
})), Ge(f, []), Mo(() => () => {
|
|
1402
|
-
const
|
|
1403
|
-
T(
|
|
1402
|
+
const v = h.current;
|
|
1403
|
+
T(v.deps, (E) => Ft(E, v));
|
|
1404
1404
|
});
|
|
1405
1405
|
const p = t.getComponentProps(a.getValue());
|
|
1406
1406
|
return /* @__PURE__ */ zn.createElement(e, { ...p, ref: s });
|
|
@@ -1423,7 +1423,7 @@ function hc(e, t) {
|
|
|
1423
1423
|
function pc(e, t) {
|
|
1424
1424
|
return e && (_.fun(e) ? e(t) : e.current = t), t;
|
|
1425
1425
|
}
|
|
1426
|
-
var
|
|
1426
|
+
var Ii = Symbol.for("AnimatedComponent"), mc = (e, {
|
|
1427
1427
|
applyAnimatedValues: t = () => !1,
|
|
1428
1428
|
createAnimatedStyle: r = (i) => new $r(i),
|
|
1429
1429
|
getComponentProps: n = (i) => i
|
|
@@ -1434,7 +1434,7 @@ var Di = Symbol.for("AnimatedComponent"), mc = (e, {
|
|
|
1434
1434
|
getComponentProps: n
|
|
1435
1435
|
}, o = (s) => {
|
|
1436
1436
|
const a = ji(s) || "Anonymous";
|
|
1437
|
-
return _.str(s) ? s = o[s] || (o[s] =
|
|
1437
|
+
return _.str(s) ? s = o[s] || (o[s] = Di(s, i)) : s = s[Ii] || (s[Ii] = Di(s, i)), s.displayName = `Animated(${a})`, s;
|
|
1438
1438
|
};
|
|
1439
1439
|
return xe(e, (s, a) => {
|
|
1440
1440
|
_.arr(e) && (a = ji(s)), o[a] = o(s);
|
|
@@ -1445,7 +1445,7 @@ var Di = Symbol.for("AnimatedComponent"), mc = (e, {
|
|
|
1445
1445
|
function Be(e, ...t) {
|
|
1446
1446
|
return _.fun(e) ? e(...t) : e;
|
|
1447
1447
|
}
|
|
1448
|
-
var
|
|
1448
|
+
var It = (e, t) => e === !0 || !!(t && e && (_.fun(e) ? e(t) : ne(e).includes(t))), Lo = (e, t) => _.obj(e) ? t && e[t] : e, Bo = (e, t) => e.default === !0 ? e[t] : e.default ? e.default[t] : void 0, yc = (e) => e, Jn = (e, t = yc) => {
|
|
1449
1449
|
let r = gc;
|
|
1450
1450
|
e.default && e.default !== !0 && (e = e.default, r = Object.keys(e));
|
|
1451
1451
|
const n = {};
|
|
@@ -1572,13 +1572,13 @@ var $i = [], kc = class {
|
|
|
1572
1572
|
};
|
|
1573
1573
|
function qo(e, { key: t, props: r, defaultProps: n, state: i, actions: o }) {
|
|
1574
1574
|
return new Promise((s, a) => {
|
|
1575
|
-
let u, l, f =
|
|
1575
|
+
let u, l, f = It(r.cancel ?? (n == null ? void 0 : n.cancel), t);
|
|
1576
1576
|
if (f)
|
|
1577
1577
|
p();
|
|
1578
1578
|
else {
|
|
1579
|
-
_.und(r.pause) || (i.paused =
|
|
1580
|
-
let
|
|
1581
|
-
|
|
1579
|
+
_.und(r.pause) || (i.paused = It(r.pause, t));
|
|
1580
|
+
let v = n == null ? void 0 : n.pause;
|
|
1581
|
+
v !== !0 && (v = i.paused || It(v, t)), u = Be(r.delay || 0, t), v ? (i.resumeQueue.add(h), o.pause()) : (o.resume(), h());
|
|
1582
1582
|
}
|
|
1583
1583
|
function d() {
|
|
1584
1584
|
i.resumeQueue.add(h), i.timeouts.delete(l), l.cancel(), u = l.time - C.now();
|
|
@@ -1590,8 +1590,8 @@ function qo(e, { key: t, props: r, defaultProps: n, state: i, actions: o }) {
|
|
|
1590
1590
|
i.delayed && (i.delayed = !1), i.pauseQueue.delete(d), i.timeouts.delete(l), e <= (i.cancelId || 0) && (f = !0);
|
|
1591
1591
|
try {
|
|
1592
1592
|
o.start({ ...r, callId: e, cancel: f }, s);
|
|
1593
|
-
} catch (
|
|
1594
|
-
a(
|
|
1593
|
+
} catch (v) {
|
|
1594
|
+
a(v);
|
|
1595
1595
|
}
|
|
1596
1596
|
}
|
|
1597
1597
|
});
|
|
@@ -1619,35 +1619,35 @@ function Ho(e, t, r, n) {
|
|
|
1619
1619
|
r.asyncId = i, r.asyncTo = e;
|
|
1620
1620
|
const l = Jn(
|
|
1621
1621
|
t,
|
|
1622
|
-
(w,
|
|
1622
|
+
(w, m) => (
|
|
1623
1623
|
// The `onRest` prop is only called when the `runAsync` promise is resolved.
|
|
1624
|
-
|
|
1624
|
+
m === "onRest" ? void 0 : w
|
|
1625
1625
|
)
|
|
1626
1626
|
);
|
|
1627
1627
|
let f, d;
|
|
1628
1628
|
const h = new Promise(
|
|
1629
|
-
(w,
|
|
1629
|
+
(w, m) => (f = w, d = m)
|
|
1630
1630
|
), p = (w) => {
|
|
1631
|
-
const
|
|
1631
|
+
const m = (
|
|
1632
1632
|
// The `cancel` prop or `stop` method was used.
|
|
1633
1633
|
i <= (r.cancelId || 0) && lt(n) || // The async `to` prop was replaced.
|
|
1634
1634
|
i !== r.asyncId && ge(n, !1)
|
|
1635
1635
|
);
|
|
1636
|
-
if (
|
|
1637
|
-
throw w.result =
|
|
1638
|
-
},
|
|
1639
|
-
const b = new Mi(),
|
|
1636
|
+
if (m)
|
|
1637
|
+
throw w.result = m, d(w), w;
|
|
1638
|
+
}, v = (w, m) => {
|
|
1639
|
+
const b = new Mi(), y = new zi();
|
|
1640
1640
|
return (async () => {
|
|
1641
1641
|
if (we.skipAnimation)
|
|
1642
|
-
throw qt(r),
|
|
1642
|
+
throw qt(r), y.result = ge(n, !1), d(y), y;
|
|
1643
1643
|
p(b);
|
|
1644
|
-
const S = _.obj(w) ? { ...w } : { ...
|
|
1645
|
-
S.parentId = i, xe(l, (
|
|
1646
|
-
_.und(S[O]) && (S[O] =
|
|
1644
|
+
const S = _.obj(w) ? { ...w } : { ...m, to: w };
|
|
1645
|
+
S.parentId = i, xe(l, (P, O) => {
|
|
1646
|
+
_.und(S[O]) && (S[O] = P);
|
|
1647
1647
|
});
|
|
1648
1648
|
const k = await n.start(S);
|
|
1649
|
-
return p(b), r.paused && await new Promise((
|
|
1650
|
-
r.resumeQueue.add(
|
|
1649
|
+
return p(b), r.paused && await new Promise((P) => {
|
|
1650
|
+
r.resumeQueue.add(P);
|
|
1651
1651
|
}), k;
|
|
1652
1652
|
})();
|
|
1653
1653
|
};
|
|
@@ -1656,10 +1656,10 @@ function Ho(e, t, r, n) {
|
|
|
1656
1656
|
return qt(r), ge(n, !1);
|
|
1657
1657
|
try {
|
|
1658
1658
|
let w;
|
|
1659
|
-
_.arr(e) ? w = (async (
|
|
1660
|
-
for (const b of
|
|
1661
|
-
await
|
|
1662
|
-
})(e) : w = Promise.resolve(e(
|
|
1659
|
+
_.arr(e) ? w = (async (m) => {
|
|
1660
|
+
for (const b of m)
|
|
1661
|
+
await v(b);
|
|
1662
|
+
})(e) : w = Promise.resolve(e(v, n.stop.bind(n))), await Promise.all([w.then(f), h]), E = ge(n.get(), !0, !1);
|
|
1663
1663
|
} catch (w) {
|
|
1664
1664
|
if (w instanceof Mi)
|
|
1665
1665
|
E = w.result;
|
|
@@ -1688,9 +1688,9 @@ var Mi = class extends Error {
|
|
|
1688
1688
|
constructor() {
|
|
1689
1689
|
super("SkipAnimationSignal");
|
|
1690
1690
|
}
|
|
1691
|
-
}, wn = (e) => e instanceof ei,
|
|
1691
|
+
}, wn = (e) => e instanceof ei, Pc = 1, ei = class extends To {
|
|
1692
1692
|
constructor() {
|
|
1693
|
-
super(...arguments), this.id =
|
|
1693
|
+
super(...arguments), this.id = Pc++, this._priority = 0;
|
|
1694
1694
|
}
|
|
1695
1695
|
get priority() {
|
|
1696
1696
|
return this._priority;
|
|
@@ -1743,7 +1743,7 @@ var Mi = class extends Error {
|
|
|
1743
1743
|
priority: e
|
|
1744
1744
|
});
|
|
1745
1745
|
}
|
|
1746
|
-
}, Ke = Symbol.for("SpringPhase"), Yo = 1, Go = 2, Ko = 4, nn = (e) => (e[Ke] & Yo) > 0,
|
|
1746
|
+
}, Ke = Symbol.for("SpringPhase"), Yo = 1, Go = 2, Ko = 4, nn = (e) => (e[Ke] & Yo) > 0, De = (e) => (e[Ke] & Go) > 0, kt = (e) => (e[Ke] & Ko) > 0, Fi = (e, t) => t ? e[Ke] |= Go | Yo : e[Ke] &= -3, Li = (e, t) => t ? e[Ke] |= Ko : e[Ke] &= -5, Nc = class extends ei {
|
|
1747
1747
|
constructor(e, t) {
|
|
1748
1748
|
if (super(), this.animation = new kc(), this.defaultProps = {}, this._state = {
|
|
1749
1749
|
paused: !1,
|
|
@@ -1758,7 +1758,7 @@ var Mi = class extends Error {
|
|
|
1758
1758
|
}
|
|
1759
1759
|
/** Equals true when not advancing on each frame. */
|
|
1760
1760
|
get idle() {
|
|
1761
|
-
return !(
|
|
1761
|
+
return !(De(this) || this._state.asyncTo) || kt(this);
|
|
1762
1762
|
}
|
|
1763
1763
|
get goal() {
|
|
1764
1764
|
return J(this.animation.to);
|
|
@@ -1778,7 +1778,7 @@ var Mi = class extends Error {
|
|
|
1778
1778
|
* which is either active or paused.
|
|
1779
1779
|
*/
|
|
1780
1780
|
get isAnimating() {
|
|
1781
|
-
return
|
|
1781
|
+
return De(this);
|
|
1782
1782
|
}
|
|
1783
1783
|
/**
|
|
1784
1784
|
* When true, all current and future animations are paused.
|
|
@@ -1812,30 +1812,30 @@ var Mi = class extends Error {
|
|
|
1812
1812
|
l.done = !0;
|
|
1813
1813
|
return;
|
|
1814
1814
|
}
|
|
1815
|
-
let
|
|
1815
|
+
let v = l.elapsedTime += e;
|
|
1816
1816
|
const E = n.fromValues[f], w = l.v0 != null ? l.v0 : l.v0 = _.arr(o.velocity) ? o.velocity[f] : o.velocity;
|
|
1817
|
-
let
|
|
1817
|
+
let m;
|
|
1818
1818
|
const b = o.precision || (E == d ? 5e-3 : Math.min(1, Math.abs(d - E) * 1e-3));
|
|
1819
1819
|
if (_.und(o.duration))
|
|
1820
1820
|
if (o.decay) {
|
|
1821
|
-
const
|
|
1822
|
-
p = E + w / (1 -
|
|
1821
|
+
const y = o.decay === !0 ? 0.998 : o.decay, S = Math.exp(-(1 - y) * v);
|
|
1822
|
+
p = E + w / (1 - y) * (1 - S), h = Math.abs(l.lastPosition - p) <= b, m = w * S;
|
|
1823
1823
|
} else {
|
|
1824
|
-
|
|
1825
|
-
const
|
|
1826
|
-
let O,
|
|
1824
|
+
m = l.lastVelocity == null ? w : l.lastVelocity;
|
|
1825
|
+
const y = o.restVelocity || b / 10, S = o.clamp ? 0 : o.bounce, k = !_.und(S), P = E == d ? l.v0 > 0 : E < d;
|
|
1826
|
+
let O, I = !1;
|
|
1827
1827
|
const M = 1, fe = Math.ceil(e / M);
|
|
1828
|
-
for (let Y = 0; Y < fe && (O = Math.abs(
|
|
1829
|
-
k && (
|
|
1830
|
-
const de = -o.tension * 1e-6 * (p - d), W = -o.friction * 1e-3 *
|
|
1831
|
-
|
|
1828
|
+
for (let Y = 0; Y < fe && (O = Math.abs(m) > y, !(!O && (h = Math.abs(d - p) <= b, h))); ++Y) {
|
|
1829
|
+
k && (I = p == d || p > d == P, I && (m = -m * S, p = d));
|
|
1830
|
+
const de = -o.tension * 1e-6 * (p - d), W = -o.friction * 1e-3 * m, he = (de + W) / o.mass;
|
|
1831
|
+
m = m + he * M, p = p + m * M;
|
|
1832
1832
|
}
|
|
1833
1833
|
}
|
|
1834
1834
|
else {
|
|
1835
|
-
let
|
|
1836
|
-
o.duration > 0 && (this._memoizedDuration !== o.duration && (this._memoizedDuration = o.duration, l.durationProgress > 0 && (l.elapsedTime = o.duration * l.durationProgress,
|
|
1835
|
+
let y = 1;
|
|
1836
|
+
o.duration > 0 && (this._memoizedDuration !== o.duration && (this._memoizedDuration = o.duration, l.durationProgress > 0 && (l.elapsedTime = o.duration * l.durationProgress, v = l.elapsedTime += e)), y = (o.progress || 0) + v / this._memoizedDuration, y = y > 1 ? 1 : y < 0 ? 0 : y, l.durationProgress = y), p = E + o.easing(y) * (d - E), m = (p - l.lastPosition) / e, h = y == 1;
|
|
1837
1837
|
}
|
|
1838
|
-
l.lastVelocity =
|
|
1838
|
+
l.lastVelocity = m, Number.isNaN(p) && (console.warn("Got NaN while animating:", this), h = !0);
|
|
1839
1839
|
}
|
|
1840
1840
|
s && !s[f].done && (h = !1), h ? l.done = !0 : t = !1, l.setValue(p, o.round) && (r = !0);
|
|
1841
1841
|
});
|
|
@@ -1864,7 +1864,7 @@ var Mi = class extends Error {
|
|
|
1864
1864
|
}
|
|
1865
1865
|
/** Skip to the end of the current animation. */
|
|
1866
1866
|
finish() {
|
|
1867
|
-
if (
|
|
1867
|
+
if (De(this)) {
|
|
1868
1868
|
const { to: e, config: t } = this.animation;
|
|
1869
1869
|
C.batchedUpdates(() => {
|
|
1870
1870
|
this._onStart(), t.decay || this._set(e, !1), this._stop();
|
|
@@ -1921,7 +1921,7 @@ var Mi = class extends Error {
|
|
|
1921
1921
|
e,
|
|
1922
1922
|
(s, a) => /^on/.test(a) ? Lo(s, r) : s
|
|
1923
1923
|
)
|
|
1924
|
-
), Ui(this, e, "onProps"),
|
|
1924
|
+
), Ui(this, e, "onProps"), Nt(this, "onProps", e, this);
|
|
1925
1925
|
const i = this._prepareNode(e);
|
|
1926
1926
|
if (Object.isFrozen(this))
|
|
1927
1927
|
throw Error(
|
|
@@ -1935,18 +1935,18 @@ var Mi = class extends Error {
|
|
|
1935
1935
|
state: o,
|
|
1936
1936
|
actions: {
|
|
1937
1937
|
pause: () => {
|
|
1938
|
-
kt(this) || (Li(this, !0), Ct(o.pauseQueue),
|
|
1938
|
+
kt(this) || (Li(this, !0), Ct(o.pauseQueue), Nt(
|
|
1939
1939
|
this,
|
|
1940
1940
|
"onPause",
|
|
1941
|
-
ge(this,
|
|
1941
|
+
ge(this, Pt(this, this.animation.to)),
|
|
1942
1942
|
this
|
|
1943
1943
|
));
|
|
1944
1944
|
},
|
|
1945
1945
|
resume: () => {
|
|
1946
|
-
kt(this) && (Li(this, !1),
|
|
1946
|
+
kt(this) && (Li(this, !1), De(this) && this._resume(), Ct(o.resumeQueue), Nt(
|
|
1947
1947
|
this,
|
|
1948
1948
|
"onResume",
|
|
1949
|
-
ge(this,
|
|
1949
|
+
ge(this, Pt(this, this.animation.to)),
|
|
1950
1950
|
this
|
|
1951
1951
|
));
|
|
1952
1952
|
},
|
|
@@ -1978,8 +1978,8 @@ var Mi = class extends Error {
|
|
|
1978
1978
|
h && (a.from = d), d = J(d);
|
|
1979
1979
|
const p = !ke(f, u);
|
|
1980
1980
|
p && this._focus(f);
|
|
1981
|
-
const
|
|
1982
|
-
(n || i) && (E.velocity = 0), t.config && !
|
|
1981
|
+
const v = vn(t.to), { config: E } = a, { decay: w, velocity: m } = E;
|
|
1982
|
+
(n || i) && (E.velocity = 0), t.config && !v && Oc(
|
|
1983
1983
|
E,
|
|
1984
1984
|
Be(t.config, o),
|
|
1985
1985
|
// Avoid calling the same "config" prop twice.
|
|
@@ -1988,12 +1988,12 @@ var Mi = class extends Error {
|
|
|
1988
1988
|
let b = _e(this);
|
|
1989
1989
|
if (!b || _.und(f))
|
|
1990
1990
|
return r(ge(this, !0));
|
|
1991
|
-
const
|
|
1991
|
+
const y = (
|
|
1992
1992
|
// When `reset` is undefined, the `from` prop implies `reset: true`,
|
|
1993
1993
|
// except for declarative updates. When `reset` is defined, there
|
|
1994
1994
|
// must exist a value to animate from.
|
|
1995
|
-
_.und(t.reset) ? i && !t.default : !_.und(d) &&
|
|
1996
|
-
), S =
|
|
1995
|
+
_.und(t.reset) ? i && !t.default : !_.und(d) && It(t.reset, o)
|
|
1996
|
+
), S = y ? d : this.get(), k = Ut(f), P = _.num(k) || _.arr(k) || jr(k), O = !v && (!P || It(s.immediate || t.immediate, o));
|
|
1997
1997
|
if (p) {
|
|
1998
1998
|
const Y = gn(f);
|
|
1999
1999
|
if (Y !== b.constructor)
|
|
@@ -2004,22 +2004,22 @@ var Mi = class extends Error {
|
|
|
2004
2004
|
`Cannot animate between ${b.constructor.name} and ${Y.name}, as the "to" prop suggests`
|
|
2005
2005
|
);
|
|
2006
2006
|
}
|
|
2007
|
-
const
|
|
2007
|
+
const I = b.constructor;
|
|
2008
2008
|
let M = ce(f), fe = !1;
|
|
2009
2009
|
if (!M) {
|
|
2010
|
-
const Y =
|
|
2011
|
-
(p || Y) && (fe = ke(Ut(S), k), M = !fe), (!ke(a.immediate, O) && !O || !ke(E.decay, w) || !ke(E.velocity,
|
|
2010
|
+
const Y = y || !nn(this) && h;
|
|
2011
|
+
(p || Y) && (fe = ke(Ut(S), k), M = !fe), (!ke(a.immediate, O) && !O || !ke(E.decay, w) || !ke(E.velocity, m)) && (M = !0);
|
|
2012
2012
|
}
|
|
2013
|
-
if (fe &&
|
|
2013
|
+
if (fe && De(this) && (a.changed && !y ? M = !0 : M || this._stop(u)), !v && ((M || ce(u)) && (a.values = b.getPayload(), a.toValues = ce(f) ? null : I == Bt ? [1] : ne(k)), a.immediate != O && (a.immediate = O, !O && !y && this._set(u)), M)) {
|
|
2014
2014
|
const { onRest: Y } = a;
|
|
2015
2015
|
T(Rc, (W) => Ui(this, t, W));
|
|
2016
|
-
const de = ge(this,
|
|
2016
|
+
const de = ge(this, Pt(this, u));
|
|
2017
2017
|
Ct(this._pendingCalls, de), this._pendingCalls.add(r), a.changed && C.batchedUpdates(() => {
|
|
2018
2018
|
var W;
|
|
2019
|
-
a.changed = !
|
|
2019
|
+
a.changed = !y, Y == null || Y(de, this), y ? Be(s.onRest, de) : (W = a.onStart) == null || W.call(a, de, this);
|
|
2020
2020
|
});
|
|
2021
2021
|
}
|
|
2022
|
-
|
|
2022
|
+
y && this._set(S), v ? r(Ho(t.to, t, this._state, this)) : M ? this._start() : De(this) && !p ? this._pendingCalls.add(r) : r(Wo(S));
|
|
2023
2023
|
}
|
|
2024
2024
|
/** Update the `animation.to` value, which might be a `FluidValue` */
|
|
2025
2025
|
_focus(e) {
|
|
@@ -2054,10 +2054,10 @@ var Mi = class extends Error {
|
|
|
2054
2054
|
}
|
|
2055
2055
|
_onStart() {
|
|
2056
2056
|
const e = this.animation;
|
|
2057
|
-
e.changed || (e.changed = !0,
|
|
2057
|
+
e.changed || (e.changed = !0, Nt(
|
|
2058
2058
|
this,
|
|
2059
2059
|
"onStart",
|
|
2060
|
-
ge(this,
|
|
2060
|
+
ge(this, Pt(this, e.to)),
|
|
2061
2061
|
this
|
|
2062
2062
|
));
|
|
2063
2063
|
}
|
|
@@ -2069,7 +2069,7 @@ var Mi = class extends Error {
|
|
|
2069
2069
|
// is added to the frameloop.
|
|
2070
2070
|
_start() {
|
|
2071
2071
|
const e = this.animation;
|
|
2072
|
-
_e(this).reset(J(e.to)), e.immediate || (e.fromValues = e.values.map((t) => t.lastPosition)),
|
|
2072
|
+
_e(this).reset(J(e.to)), e.immediate || (e.fromValues = e.values.map((t) => t.lastPosition)), De(this) || (Fi(this, !0), kt(this) || this._resume());
|
|
2073
2073
|
}
|
|
2074
2074
|
_resume() {
|
|
2075
2075
|
we.skipAnimation ? this.finish() : Tr.start(this);
|
|
@@ -2080,7 +2080,7 @@ var Mi = class extends Error {
|
|
|
2080
2080
|
* Always wrap `_stop` calls with `batchedUpdates`.
|
|
2081
2081
|
*/
|
|
2082
2082
|
_stop(e, t) {
|
|
2083
|
-
if (
|
|
2083
|
+
if (De(this)) {
|
|
2084
2084
|
Fi(this, !1);
|
|
2085
2085
|
const r = this.animation;
|
|
2086
2086
|
T(r.values, (i) => {
|
|
@@ -2089,12 +2089,12 @@ var Mi = class extends Error {
|
|
|
2089
2089
|
type: "idle",
|
|
2090
2090
|
parent: this
|
|
2091
2091
|
});
|
|
2092
|
-
const n = t ? lt(this.get()) : ge(this.get(),
|
|
2093
|
-
Ct(this._pendingCalls, n), r.changed && (r.changed = !1,
|
|
2092
|
+
const n = t ? lt(this.get()) : ge(this.get(), Pt(this, e ?? r.to));
|
|
2093
|
+
Ct(this._pendingCalls, n), r.changed && (r.changed = !1, Nt(this, "onRest", n, this));
|
|
2094
2094
|
}
|
|
2095
2095
|
}
|
|
2096
2096
|
};
|
|
2097
|
-
function
|
|
2097
|
+
function Pt(e, t) {
|
|
2098
2098
|
const r = Ut(t), n = Ut(e.get());
|
|
2099
2099
|
return ke(n, r);
|
|
2100
2100
|
}
|
|
@@ -2143,11 +2143,11 @@ var Rc = [
|
|
|
2143
2143
|
function Ui(e, t, r) {
|
|
2144
2144
|
e.animation[r] = t[r] !== Bo(t, r) ? Lo(t[r], e.key) : void 0;
|
|
2145
2145
|
}
|
|
2146
|
-
function
|
|
2146
|
+
function Nt(e, t, ...r) {
|
|
2147
2147
|
var n, i, o, s;
|
|
2148
2148
|
(i = (n = e.animation)[t]) == null || i.call(n, ...r), (s = (o = e.defaultProps)[t]) == null || s.call(o, ...r);
|
|
2149
2149
|
}
|
|
2150
|
-
var Ac = ["onStart", "onChange", "onRest"], Tc = 1,
|
|
2150
|
+
var Ac = ["onStart", "onChange", "onRest"], Tc = 1, Dc = class {
|
|
2151
2151
|
constructor(e, t) {
|
|
2152
2152
|
this.id = Tc++, this.springs = {}, this.queue = [], this._lastAsyncId = 0, this._active = /* @__PURE__ */ new Set(), this._changed = /* @__PURE__ */ new Set(), this._started = !1, this._state = {
|
|
2153
2153
|
paused: !1,
|
|
@@ -2269,13 +2269,13 @@ async function Xo(e, t, r) {
|
|
|
2269
2269
|
f ? (t.to = void 0, t.onRest = void 0, l && (l.onRest = void 0)) : T(Ac, (E) => {
|
|
2270
2270
|
const w = t[E];
|
|
2271
2271
|
if (_.fun(w)) {
|
|
2272
|
-
const
|
|
2273
|
-
t[E] = ({ finished: b, cancelled:
|
|
2274
|
-
const S =
|
|
2275
|
-
S ? (b || (S.finished = !1),
|
|
2272
|
+
const m = e._events[E];
|
|
2273
|
+
t[E] = ({ finished: b, cancelled: y }) => {
|
|
2274
|
+
const S = m.get(w);
|
|
2275
|
+
S ? (b || (S.finished = !1), y && (S.cancelled = !0)) : m.set(w, {
|
|
2276
2276
|
value: null,
|
|
2277
2277
|
finished: b || !1,
|
|
2278
|
-
cancelled:
|
|
2278
|
+
cancelled: y || !1
|
|
2279
2279
|
});
|
|
2280
2280
|
}, l && (l[E] = t[E]);
|
|
2281
2281
|
}
|
|
@@ -2307,13 +2307,13 @@ async function Xo(e, t, r) {
|
|
|
2307
2307
|
), d.paused && await new Promise((E) => {
|
|
2308
2308
|
d.resumeQueue.add(E);
|
|
2309
2309
|
});
|
|
2310
|
-
const
|
|
2311
|
-
if (s &&
|
|
2310
|
+
const v = Zn(e, await Promise.all(h));
|
|
2311
|
+
if (s && v.finished && !(r && v.noop)) {
|
|
2312
2312
|
const E = Qo(t, s, i);
|
|
2313
2313
|
if (E)
|
|
2314
2314
|
return ts(e, [E]), Xo(e, E, !0);
|
|
2315
2315
|
}
|
|
2316
|
-
return u && C.batchedUpdates(() => u(
|
|
2316
|
+
return u && C.batchedUpdates(() => u(v, e, e.item)), v;
|
|
2317
2317
|
}
|
|
2318
2318
|
function qi(e, t) {
|
|
2319
2319
|
const r = { ...e.springs };
|
|
@@ -2327,7 +2327,7 @@ function Jo(e, t) {
|
|
|
2327
2327
|
});
|
|
2328
2328
|
}
|
|
2329
2329
|
function Zo(e, t) {
|
|
2330
|
-
const r = new
|
|
2330
|
+
const r = new Nc();
|
|
2331
2331
|
return r.key = e, t && vt(r, t), r;
|
|
2332
2332
|
}
|
|
2333
2333
|
function es(e, t, r) {
|
|
@@ -2348,10 +2348,10 @@ var Mr = ({
|
|
|
2348
2348
|
t = ac(() => ({ pause: n, immediate: i }), [n, i]);
|
|
2349
2349
|
const { Provider: o } = _r;
|
|
2350
2350
|
return /* @__PURE__ */ zn.createElement(o, { value: t }, e);
|
|
2351
|
-
}, _r =
|
|
2351
|
+
}, _r = Ic(Mr, {});
|
|
2352
2352
|
Mr.Provider = _r.Provider;
|
|
2353
2353
|
Mr.Consumer = _r.Consumer;
|
|
2354
|
-
function
|
|
2354
|
+
function Ic(e, t) {
|
|
2355
2355
|
return Object.assign(e, zn.createContext(t)), e.Provider._context = e, e.Consumer._context = e, e;
|
|
2356
2356
|
}
|
|
2357
2357
|
var jc = () => {
|
|
@@ -2411,11 +2411,11 @@ function Vc(e, t, r) {
|
|
|
2411
2411
|
() => ({
|
|
2412
2412
|
ctrls: [],
|
|
2413
2413
|
queue: [],
|
|
2414
|
-
flush(
|
|
2415
|
-
const
|
|
2416
|
-
return o.current > 0 && !a.queue.length && !Object.keys(
|
|
2417
|
-
Jo(
|
|
2418
|
-
k(_n(
|
|
2414
|
+
flush(m, b) {
|
|
2415
|
+
const y = qi(m, b);
|
|
2416
|
+
return o.current > 0 && !a.queue.length && !Object.keys(y).some((k) => !m.springs[k]) ? _n(m, b) : new Promise((k) => {
|
|
2417
|
+
Jo(m, y), a.queue.push(() => {
|
|
2418
|
+
k(_n(m, b));
|
|
2419
2419
|
}), s();
|
|
2420
2420
|
});
|
|
2421
2421
|
}
|
|
@@ -2423,31 +2423,31 @@ function Vc(e, t, r) {
|
|
|
2423
2423
|
[]
|
|
2424
2424
|
), u = Se([...a.ctrls]), l = [], f = Ti(e) || 0;
|
|
2425
2425
|
tr(() => {
|
|
2426
|
-
T(u.current.slice(e, f), (
|
|
2427
|
-
_c(
|
|
2426
|
+
T(u.current.slice(e, f), (m) => {
|
|
2427
|
+
_c(m, i), m.stop(!0);
|
|
2428
2428
|
}), u.current.length = e, d(f, e);
|
|
2429
2429
|
}, [e]), tr(() => {
|
|
2430
2430
|
d(0, Math.min(f, e));
|
|
2431
2431
|
}, r);
|
|
2432
|
-
function d(
|
|
2433
|
-
for (let
|
|
2434
|
-
const S = u.current[
|
|
2435
|
-
k && (l[
|
|
2432
|
+
function d(m, b) {
|
|
2433
|
+
for (let y = m; y < b; y++) {
|
|
2434
|
+
const S = u.current[y] || (u.current[y] = new Dc(null, a.flush)), k = n ? n(y, S) : t[y];
|
|
2435
|
+
k && (l[y] = Cc(k));
|
|
2436
2436
|
}
|
|
2437
2437
|
}
|
|
2438
|
-
const h = u.current.map((
|
|
2438
|
+
const h = u.current.map((m, b) => qi(m, l[b])), p = Fn(Mr), v = Ti(p), E = p !== v && wc(p);
|
|
2439
2439
|
Qn(() => {
|
|
2440
2440
|
o.current++, a.ctrls = u.current;
|
|
2441
|
-
const { queue:
|
|
2442
|
-
|
|
2441
|
+
const { queue: m } = a;
|
|
2442
|
+
m.length && (a.queue = [], T(m, (b) => b())), T(u.current, (b, y) => {
|
|
2443
2443
|
i == null || i.add(b), E && b.start({ default: p });
|
|
2444
|
-
const S = l[
|
|
2444
|
+
const S = l[y];
|
|
2445
2445
|
S && (Ec(b, S.ref), b.ref ? b.queue.push(S) : b.start(S));
|
|
2446
2446
|
});
|
|
2447
2447
|
}), Mo(() => () => {
|
|
2448
|
-
T(a.ctrls, (
|
|
2448
|
+
T(a.ctrls, (m) => m.stop(!0));
|
|
2449
2449
|
});
|
|
2450
|
-
const w = h.map((
|
|
2450
|
+
const w = h.map((m) => ({ ...m }));
|
|
2451
2451
|
return i ? [w, i] : w;
|
|
2452
2452
|
}
|
|
2453
2453
|
function rs(e, t) {
|
|
@@ -2806,68 +2806,61 @@ var Kc = mc(Gc, {
|
|
|
2806
2806
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2807
2807
|
getComponentProps: ({ scrollTop: e, scrollLeft: t, ...r }) => r
|
|
2808
2808
|
}), is = Kc.animated;
|
|
2809
|
-
function Qc(
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2809
|
+
function Qc({
|
|
2810
|
+
animate: e,
|
|
2811
|
+
content: t,
|
|
2812
|
+
textStyles: r,
|
|
2813
|
+
htmlElement: n,
|
|
2814
|
+
fadeIn: i
|
|
2815
|
+
}) {
|
|
2816
|
+
const o = n ?? "div", s = Se(null), a = Se(null), [u, l] = gr(null), [f, d] = gr(!1), [h, p] = rs(() => ({
|
|
2817
|
+
opacity: i ? 0 : 1,
|
|
2818
|
+
transform: i ? "scale(0)" : "scale(1)",
|
|
2819
|
+
config: { duration: 200 }
|
|
2820
|
+
}));
|
|
2820
2821
|
Ge(() => {
|
|
2821
|
-
if (
|
|
2822
|
-
const
|
|
2823
|
-
|
|
2822
|
+
if (s.current && a.current) {
|
|
2823
|
+
const w = s.current.getBoundingClientRect().height, m = a.current.getBoundingClientRect().height;
|
|
2824
|
+
l(Math.max(w, m));
|
|
2824
2825
|
}
|
|
2825
2826
|
}, []), Ge(() => {
|
|
2826
|
-
if (!e
|
|
2827
|
-
const
|
|
2828
|
-
|
|
2827
|
+
if (!e) return;
|
|
2828
|
+
const w = Math.floor(Math.random() * 11501) + 3500, m = setTimeout(() => {
|
|
2829
|
+
p.start({
|
|
2829
2830
|
opacity: 0,
|
|
2830
2831
|
transform: "translateY(15px)",
|
|
2831
|
-
config: { duration: 200 },
|
|
2832
2832
|
onRest: () => {
|
|
2833
|
-
|
|
2834
|
-
opacity: 1,
|
|
2835
|
-
transform: "translateY(0px)",
|
|
2836
|
-
config: { duration: 200 }
|
|
2837
|
-
});
|
|
2833
|
+
d((b) => !b), p.start({ opacity: 1, transform: "translateY(0px)" });
|
|
2838
2834
|
}
|
|
2839
2835
|
});
|
|
2840
|
-
},
|
|
2841
|
-
return () => clearTimeout(
|
|
2842
|
-
}, [
|
|
2843
|
-
const
|
|
2844
|
-
...
|
|
2845
|
-
minHeight:
|
|
2836
|
+
}, w);
|
|
2837
|
+
return () => clearTimeout(m);
|
|
2838
|
+
}, [f, e, p]);
|
|
2839
|
+
const v = e && f ? t.simplified : t.english, E = {
|
|
2840
|
+
...r,
|
|
2841
|
+
minHeight: u != null ? `${u}px` : void 0,
|
|
2846
2842
|
display: "inline-block",
|
|
2847
|
-
// helps keep the bounding box stable,
|
|
2848
2843
|
alignContent: "center"
|
|
2849
2844
|
};
|
|
2850
2845
|
return /* @__PURE__ */ L.jsxs(L.Fragment, { children: [
|
|
2851
2846
|
/* @__PURE__ */ L.jsx(
|
|
2852
2847
|
"div",
|
|
2853
2848
|
{
|
|
2854
|
-
ref:
|
|
2849
|
+
ref: s,
|
|
2855
2850
|
style: {
|
|
2856
2851
|
position: "absolute",
|
|
2857
2852
|
visibility: "hidden",
|
|
2858
2853
|
pointerEvents: "none",
|
|
2859
2854
|
whiteSpace: "nowrap",
|
|
2860
|
-
// Keep text on one line if needed, or remove if multiline
|
|
2861
2855
|
font: "inherit"
|
|
2862
|
-
// Inherit font styling to get accurate measurement
|
|
2863
2856
|
},
|
|
2864
|
-
children:
|
|
2857
|
+
children: t.english
|
|
2865
2858
|
}
|
|
2866
2859
|
),
|
|
2867
2860
|
/* @__PURE__ */ L.jsx(
|
|
2868
2861
|
"div",
|
|
2869
2862
|
{
|
|
2870
|
-
ref:
|
|
2863
|
+
ref: a,
|
|
2871
2864
|
style: {
|
|
2872
2865
|
position: "absolute",
|
|
2873
2866
|
visibility: "hidden",
|
|
@@ -2875,10 +2868,10 @@ function Qc(e) {
|
|
|
2875
2868
|
whiteSpace: "nowrap",
|
|
2876
2869
|
font: "inherit"
|
|
2877
2870
|
},
|
|
2878
|
-
children:
|
|
2871
|
+
children: t.simplified
|
|
2879
2872
|
}
|
|
2880
2873
|
),
|
|
2881
|
-
/* @__PURE__ */ L.jsx(is.div, { style:
|
|
2874
|
+
/* @__PURE__ */ L.jsx(is.div, { style: h, children: /* @__PURE__ */ L.jsx(o, { style: E, children: v }) })
|
|
2882
2875
|
] });
|
|
2883
2876
|
}
|
|
2884
2877
|
var ee = function() {
|
|
@@ -2913,7 +2906,7 @@ function ru(e, t) {
|
|
|
2913
2906
|
function cs(e) {
|
|
2914
2907
|
return e.trim();
|
|
2915
2908
|
}
|
|
2916
|
-
function
|
|
2909
|
+
function Pe(e, t) {
|
|
2917
2910
|
return (e = t.exec(e)) ? e[0] : e;
|
|
2918
2911
|
}
|
|
2919
2912
|
function R(e, t, r) {
|
|
@@ -2942,19 +2935,19 @@ function nu(e, t) {
|
|
|
2942
2935
|
}
|
|
2943
2936
|
function Yi(e, t) {
|
|
2944
2937
|
return e.filter(function(r) {
|
|
2945
|
-
return !
|
|
2938
|
+
return !Pe(r, t);
|
|
2946
2939
|
});
|
|
2947
2940
|
}
|
|
2948
2941
|
var Fr = 1, ht = 1, ls = 0, le = 0, q = 0, bt = "";
|
|
2949
2942
|
function Lr(e, t, r, n, i, o, s, a) {
|
|
2950
2943
|
return { value: e, root: t, parent: r, type: n, props: i, children: o, line: Fr, column: ht, length: s, return: "", siblings: a };
|
|
2951
2944
|
}
|
|
2952
|
-
function
|
|
2945
|
+
function Ie(e, t) {
|
|
2953
2946
|
return En(Lr("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
2954
2947
|
}
|
|
2955
2948
|
function ct(e) {
|
|
2956
2949
|
for (; e.root; )
|
|
2957
|
-
e =
|
|
2950
|
+
e = Ie(e.root, { children: [e] });
|
|
2958
2951
|
Rt(e, e.siblings);
|
|
2959
2952
|
}
|
|
2960
2953
|
function iu() {
|
|
@@ -3069,12 +3062,12 @@ function du(e) {
|
|
|
3069
3062
|
return au(pr("", null, null, null, [""], e = su(e), 0, [0], e));
|
|
3070
3063
|
}
|
|
3071
3064
|
function pr(e, t, r, n, i, o, s, a, u) {
|
|
3072
|
-
for (var l = 0, f = 0, d = s, h = 0, p = 0,
|
|
3073
|
-
switch (
|
|
3065
|
+
for (var l = 0, f = 0, d = s, h = 0, p = 0, v = 0, E = 1, w = 1, m = 1, b = 0, y = "", S = i, k = o, P = n, O = y; w; )
|
|
3066
|
+
switch (v = b, b = be()) {
|
|
3074
3067
|
// (
|
|
3075
3068
|
case 40:
|
|
3076
|
-
if (
|
|
3077
|
-
dr(O += R(an(b), "&", "&\f"), "&\f", as(l ? a[l - 1] : 0)) != -1 && (
|
|
3069
|
+
if (v != 108 && H(O, d - 1) == 58) {
|
|
3070
|
+
dr(O += R(an(b), "&", "&\f"), "&\f", as(l ? a[l - 1] : 0)) != -1 && (m = -1);
|
|
3078
3071
|
break;
|
|
3079
3072
|
}
|
|
3080
3073
|
// " ' [
|
|
@@ -3088,7 +3081,7 @@ function pr(e, t, r, n, i, o, s, a, u) {
|
|
|
3088
3081
|
case 10:
|
|
3089
3082
|
case 13:
|
|
3090
3083
|
case 32:
|
|
3091
|
-
O += cu(
|
|
3084
|
+
O += cu(v);
|
|
3092
3085
|
break;
|
|
3093
3086
|
// \
|
|
3094
3087
|
case 92:
|
|
@@ -3107,7 +3100,7 @@ function pr(e, t, r, n, i, o, s, a, u) {
|
|
|
3107
3100
|
break;
|
|
3108
3101
|
// {
|
|
3109
3102
|
case 123 * E:
|
|
3110
|
-
a[l++] = Ee(O) *
|
|
3103
|
+
a[l++] = Ee(O) * m;
|
|
3111
3104
|
// } ; \0
|
|
3112
3105
|
case 125 * E:
|
|
3113
3106
|
case 59:
|
|
@@ -3119,16 +3112,16 @@ function pr(e, t, r, n, i, o, s, a, u) {
|
|
|
3119
3112
|
w = 0;
|
|
3120
3113
|
// ;
|
|
3121
3114
|
case 59 + f:
|
|
3122
|
-
|
|
3115
|
+
m == -1 && (O = R(O, /\f/g, "")), p > 0 && Ee(O) - d && Rt(p > 32 ? Ki(O + ";", n, r, d - 1, u) : Ki(R(O, " ", "") + ";", n, r, d - 2, u), u);
|
|
3123
3116
|
break;
|
|
3124
3117
|
// @ ;
|
|
3125
3118
|
case 59:
|
|
3126
3119
|
O += ";";
|
|
3127
3120
|
// { rule/at-rule
|
|
3128
3121
|
default:
|
|
3129
|
-
if (Rt(
|
|
3122
|
+
if (Rt(P = Gi(O, t, r, l, f, i, a, y, S = [], k = [], d, o), o), b === 123)
|
|
3130
3123
|
if (f === 0)
|
|
3131
|
-
pr(O, t,
|
|
3124
|
+
pr(O, t, P, P, S, o, d, a, k);
|
|
3132
3125
|
else
|
|
3133
3126
|
switch (h === 99 && H(O, 3) === 110 ? 100 : h) {
|
|
3134
3127
|
// d l m s
|
|
@@ -3136,17 +3129,17 @@ function pr(e, t, r, n, i, o, s, a, u) {
|
|
|
3136
3129
|
case 108:
|
|
3137
3130
|
case 109:
|
|
3138
3131
|
case 115:
|
|
3139
|
-
pr(e,
|
|
3132
|
+
pr(e, P, P, n && Rt(Gi(e, P, P, 0, 0, i, a, y, i, S = [], d, k), k), i, k, d, a, n ? S : k);
|
|
3140
3133
|
break;
|
|
3141
3134
|
default:
|
|
3142
|
-
pr(O,
|
|
3135
|
+
pr(O, P, P, P, [""], k, 0, a, k);
|
|
3143
3136
|
}
|
|
3144
3137
|
}
|
|
3145
|
-
l = f = p = 0, E =
|
|
3138
|
+
l = f = p = 0, E = m = 1, y = O = "", d = s;
|
|
3146
3139
|
break;
|
|
3147
3140
|
// :
|
|
3148
3141
|
case 58:
|
|
3149
|
-
d = 1 + Ee(O), p =
|
|
3142
|
+
d = 1 + Ee(O), p = v;
|
|
3150
3143
|
default:
|
|
3151
3144
|
if (E < 1) {
|
|
3152
3145
|
if (b == 123)
|
|
@@ -3157,27 +3150,27 @@ function pr(e, t, r, n, i, o, s, a, u) {
|
|
|
3157
3150
|
switch (O += ri(b), b * E) {
|
|
3158
3151
|
// &
|
|
3159
3152
|
case 38:
|
|
3160
|
-
|
|
3153
|
+
m = f > 0 ? 1 : (O += "\f", -1);
|
|
3161
3154
|
break;
|
|
3162
3155
|
// ,
|
|
3163
3156
|
case 44:
|
|
3164
|
-
a[l++] = (Ee(O) - 1) *
|
|
3157
|
+
a[l++] = (Ee(O) - 1) * m, m = 1;
|
|
3165
3158
|
break;
|
|
3166
3159
|
// @
|
|
3167
3160
|
case 64:
|
|
3168
|
-
We() === 45 && (O += an(be())), h = We(), f = d = Ee(
|
|
3161
|
+
We() === 45 && (O += an(be())), h = We(), f = d = Ee(y = O += fu(hr())), b++;
|
|
3169
3162
|
break;
|
|
3170
3163
|
// -
|
|
3171
3164
|
case 45:
|
|
3172
|
-
|
|
3165
|
+
v === 45 && Ee(O) == 2 && (E = 0);
|
|
3173
3166
|
}
|
|
3174
3167
|
}
|
|
3175
3168
|
return o;
|
|
3176
3169
|
}
|
|
3177
3170
|
function Gi(e, t, r, n, i, o, s, a, u, l, f, d) {
|
|
3178
|
-
for (var h = i - 1, p = i === 0 ? o : [""],
|
|
3179
|
-
for (var b = 0,
|
|
3180
|
-
(S = cs(w > 0 ? p[b] + " " +
|
|
3171
|
+
for (var h = i - 1, p = i === 0 ? o : [""], v = us(p), E = 0, w = 0, m = 0; E < n; ++E)
|
|
3172
|
+
for (var b = 0, y = dt(e, h + 1, h = as(w = s[E])), S = e; b < v; ++b)
|
|
3173
|
+
(S = cs(w > 0 ? p[b] + " " + y : R(y, /&\f/g, p[b]))) && (u[m++] = S);
|
|
3181
3174
|
return Lr(e, t, r, i === 0 ? zr : a, u, l, f, d);
|
|
3182
3175
|
}
|
|
3183
3176
|
function hu(e, t, r, n) {
|
|
@@ -3257,7 +3250,7 @@ function fs(e, t, r) {
|
|
|
3257
3250
|
return V + e + R(e, /(\w+).+(:[^]+)/, V + "box-$1$2" + z + "flex-$1$2") + e;
|
|
3258
3251
|
// align-self
|
|
3259
3252
|
case 5443:
|
|
3260
|
-
return V + e + z + "flex-item-" + R(e, /flex-|-self/g, "") + (
|
|
3253
|
+
return V + e + z + "flex-item-" + R(e, /flex-|-self/g, "") + (Pe(e, /flex-|baseline/) ? "" : z + "grid-row-" + R(e, /flex-|-self/g, "")) + e;
|
|
3261
3254
|
// align-content
|
|
3262
3255
|
case 4675:
|
|
3263
3256
|
return V + e + z + "flex-line-pack" + R(e, /align-content|flex-|-self/g, "") + e;
|
|
@@ -3285,7 +3278,7 @@ function fs(e, t, r) {
|
|
|
3285
3278
|
return R(R(e, /(.+:)(flex-)?(.*)/, V + "box-pack:$3" + z + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + V + e + e;
|
|
3286
3279
|
// justify-self
|
|
3287
3280
|
case 4200:
|
|
3288
|
-
if (!
|
|
3281
|
+
if (!Pe(e, /flex-|baseline/)) return z + "grid-column-align" + dt(e, t) + e;
|
|
3289
3282
|
break;
|
|
3290
3283
|
// grid-template-(columns|rows)
|
|
3291
3284
|
case 2592:
|
|
@@ -3295,13 +3288,13 @@ function fs(e, t, r) {
|
|
|
3295
3288
|
case 4384:
|
|
3296
3289
|
case 3616:
|
|
3297
3290
|
return r && r.some(function(n, i) {
|
|
3298
|
-
return t = i,
|
|
3299
|
-
}) ? ~dr(e + (r = r[t].value), "span", 0) ? e : z + R(e, "-start", "") + e + z + "grid-row-span:" + (~dr(r, "span", 0) ?
|
|
3291
|
+
return t = i, Pe(n.props, /grid-\w+-end/);
|
|
3292
|
+
}) ? ~dr(e + (r = r[t].value), "span", 0) ? e : z + R(e, "-start", "") + e + z + "grid-row-span:" + (~dr(r, "span", 0) ? Pe(r, /\d+/) : +Pe(r, /\d+/) - +Pe(e, /\d+/)) + ";" : z + R(e, "-start", "") + e;
|
|
3300
3293
|
// grid-(row|column)-end
|
|
3301
3294
|
case 4896:
|
|
3302
3295
|
case 4128:
|
|
3303
3296
|
return r && r.some(function(n) {
|
|
3304
|
-
return
|
|
3297
|
+
return Pe(n.props, /grid-\w+-start/);
|
|
3305
3298
|
}) ? e : z + R(R(e, "-end", "-span"), "span ", "") + e;
|
|
3306
3299
|
// (margin|padding)-inline-(start|end)
|
|
3307
3300
|
case 4095:
|
|
@@ -3409,19 +3402,19 @@ function gu(e, t, r, n) {
|
|
|
3409
3402
|
e.return = fs(e.value, e.length, r);
|
|
3410
3403
|
return;
|
|
3411
3404
|
case ss:
|
|
3412
|
-
return Er([
|
|
3405
|
+
return Er([Ie(e, { value: R(e.value, "@", "@" + V) })], n);
|
|
3413
3406
|
case zr:
|
|
3414
3407
|
if (e.length)
|
|
3415
3408
|
return nu(r = e.props, function(i) {
|
|
3416
|
-
switch (
|
|
3409
|
+
switch (Pe(i, n = /(::plac\w+|:read-\w+)/)) {
|
|
3417
3410
|
// :read-(only|write)
|
|
3418
3411
|
case ":read-only":
|
|
3419
3412
|
case ":read-write":
|
|
3420
|
-
ct(
|
|
3413
|
+
ct(Ie(e, { props: [R(i, /:(read-\w+)/, ":" + Vt + "$1")] })), ct(Ie(e, { props: [i] })), En(e, { props: Yi(r, n) });
|
|
3421
3414
|
break;
|
|
3422
3415
|
// :placeholder
|
|
3423
3416
|
case "::placeholder":
|
|
3424
|
-
ct(
|
|
3417
|
+
ct(Ie(e, { props: [R(i, /:(plac\w+)/, ":" + V + "input-$1")] })), ct(Ie(e, { props: [R(i, /:(plac\w+)/, ":" + Vt + "$1")] })), ct(Ie(e, { props: [R(i, /:(plac\w+)/, z + "input-$1")] })), ct(Ie(e, { props: [i] })), En(e, { props: Yi(r, n) });
|
|
3425
3418
|
break;
|
|
3426
3419
|
}
|
|
3427
3420
|
return "";
|
|
@@ -3525,9 +3518,9 @@ function gs(e) {
|
|
|
3525
3518
|
function un(e) {
|
|
3526
3519
|
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
3527
3520
|
}
|
|
3528
|
-
var vs = typeof Symbol == "function" && Symbol.for, bs = vs ? Symbol.for("react.memo") : 60115, Ou = vs ? Symbol.for("react.forward_ref") : 60112, ku = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 },
|
|
3521
|
+
var vs = typeof Symbol == "function" && Symbol.for, bs = vs ? Symbol.for("react.memo") : 60115, Ou = vs ? Symbol.for("react.forward_ref") : 60112, ku = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Pu = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, ws = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Nu = ((cn = {})[Ou] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, cn[bs] = ws, cn);
|
|
3529
3522
|
function Zi(e) {
|
|
3530
|
-
return ("type" in (t = e) && t.type.$$typeof) === bs ? ws : "$$typeof" in e ?
|
|
3523
|
+
return ("type" in (t = e) && t.type.$$typeof) === bs ? ws : "$$typeof" in e ? Nu[e.$$typeof] : ku;
|
|
3531
3524
|
var t;
|
|
3532
3525
|
}
|
|
3533
3526
|
var Cu = Object.defineProperty, Ru = Object.getOwnPropertyNames, eo = Object.getOwnPropertySymbols, Au = Object.getOwnPropertyDescriptor, Tu = Object.getPrototypeOf, to = Object.prototype;
|
|
@@ -3541,7 +3534,7 @@ function _s(e, t, r) {
|
|
|
3541
3534
|
eo && (i = i.concat(eo(t)));
|
|
3542
3535
|
for (var o = Zi(e), s = Zi(t), a = 0; a < i.length; ++a) {
|
|
3543
3536
|
var u = i[a];
|
|
3544
|
-
if (!(u in
|
|
3537
|
+
if (!(u in Pu || r && r[u] || s && u in s || o && u in o)) {
|
|
3545
3538
|
var l = Au(t, u);
|
|
3546
3539
|
try {
|
|
3547
3540
|
Cu(e, u, l);
|
|
@@ -3561,7 +3554,7 @@ function ii(e) {
|
|
|
3561
3554
|
function qe(e, t) {
|
|
3562
3555
|
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
3563
3556
|
}
|
|
3564
|
-
function
|
|
3557
|
+
function Pn(e, t) {
|
|
3565
3558
|
if (e.length === 0) return "";
|
|
3566
3559
|
for (var r = e[0], n = 1; n < e.length; n++) r += e[n];
|
|
3567
3560
|
return r;
|
|
@@ -3569,16 +3562,16 @@ function Nn(e, t) {
|
|
|
3569
3562
|
function yt(e) {
|
|
3570
3563
|
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
3571
3564
|
}
|
|
3572
|
-
function
|
|
3565
|
+
function Nn(e, t, r) {
|
|
3573
3566
|
if (r === void 0 && (r = !1), !r && !yt(e) && !Array.isArray(e)) return t;
|
|
3574
|
-
if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] =
|
|
3575
|
-
else if (yt(t)) for (var n in t) e[n] =
|
|
3567
|
+
if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = Nn(e[n], t[n]);
|
|
3568
|
+
else if (yt(t)) for (var n in t) e[n] = Nn(e[n], t[n]);
|
|
3576
3569
|
return e;
|
|
3577
3570
|
}
|
|
3578
3571
|
function oi(e, t) {
|
|
3579
3572
|
Object.defineProperty(e, "toString", { value: t });
|
|
3580
3573
|
}
|
|
3581
|
-
var
|
|
3574
|
+
var Du = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
3582
3575
|
|
|
3583
3576
|
`, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
3584
3577
|
|
|
@@ -3620,7 +3613,7 @@ as for instance in your render method then you may be running into this limitati
|
|
|
3620
3613
|
`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
|
|
3621
3614
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
3622
3615
|
`, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
3623
|
-
function
|
|
3616
|
+
function Iu() {
|
|
3624
3617
|
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
3625
3618
|
for (var r = e[0], n = [], i = 1, o = e.length; i < o; i += 1) n.push(e[i]);
|
|
3626
3619
|
return n.forEach(function(s) {
|
|
@@ -3629,7 +3622,7 @@ function Du() {
|
|
|
3629
3622
|
}
|
|
3630
3623
|
function wt(e) {
|
|
3631
3624
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
3632
|
-
return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(
|
|
3625
|
+
return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(Iu.apply(void 0, Qe([Du[e]], t, !1)).trim());
|
|
3633
3626
|
}
|
|
3634
3627
|
var ju = function() {
|
|
3635
3628
|
function e(t) {
|
|
@@ -3751,16 +3744,16 @@ var Es = function(e) {
|
|
|
3751
3744
|
this.options = ee(ee({}, Hu), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && Sr && no && (no = !1, ro(this)), oi(this, function() {
|
|
3752
3745
|
return function(o) {
|
|
3753
3746
|
for (var s = o.getTag(), a = s.length, u = "", l = function(d) {
|
|
3754
|
-
var h = function(
|
|
3755
|
-
return xr.get(
|
|
3747
|
+
var h = function(m) {
|
|
3748
|
+
return xr.get(m);
|
|
3756
3749
|
}(d);
|
|
3757
3750
|
if (h === void 0) return "continue";
|
|
3758
|
-
var p = o.names.get(h),
|
|
3759
|
-
if (p === void 0 || !p.size ||
|
|
3751
|
+
var p = o.names.get(h), v = s.getGroup(d);
|
|
3752
|
+
if (p === void 0 || !p.size || v.length === 0) return "continue";
|
|
3760
3753
|
var E = "".concat(Xe, ".g").concat(d, '[id="').concat(h, '"]'), w = "";
|
|
3761
|
-
p !== void 0 && p.forEach(function(
|
|
3762
|
-
|
|
3763
|
-
}), u += "".concat(
|
|
3754
|
+
p !== void 0 && p.forEach(function(m) {
|
|
3755
|
+
m.length > 0 && (w += "".concat(m, ","));
|
|
3756
|
+
}), u += "".concat(v).concat(E, '{content:"').concat(w, '"}').concat(ni);
|
|
3764
3757
|
}, f = 0; f < a; f++) l(f);
|
|
3765
3758
|
return u;
|
|
3766
3759
|
}(i);
|
|
@@ -3806,19 +3799,19 @@ function xs(e, t) {
|
|
|
3806
3799
|
});
|
|
3807
3800
|
}
|
|
3808
3801
|
function Ku(e) {
|
|
3809
|
-
var t, r, n, i = pt, o = i.options, s = o === void 0 ? pt : o, a = i.plugins, u = a === void 0 ? qr : a, l = function(h, p,
|
|
3810
|
-
return
|
|
3802
|
+
var t, r, n, i = pt, o = i.options, s = o === void 0 ? pt : o, a = i.plugins, u = a === void 0 ? qr : a, l = function(h, p, v) {
|
|
3803
|
+
return v.startsWith(r) && v.endsWith(r) && v.replaceAll(r, "").length > 0 ? ".".concat(t) : h;
|
|
3811
3804
|
}, f = u.slice();
|
|
3812
3805
|
f.push(function(h) {
|
|
3813
3806
|
h.type === zr && h.value.includes("&") && (h.props[0] = h.props[0].replace(Yu, r).replace(n, l));
|
|
3814
3807
|
}), s.prefix && f.push(gu), f.push(pu);
|
|
3815
|
-
var d = function(h, p,
|
|
3816
|
-
p === void 0 && (p = ""),
|
|
3817
|
-
var w = h.replace(Gu, ""),
|
|
3818
|
-
s.namespace && (
|
|
3808
|
+
var d = function(h, p, v, E) {
|
|
3809
|
+
p === void 0 && (p = ""), v === void 0 && (v = ""), E === void 0 && (E = "&"), t = E, r = p, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
3810
|
+
var w = h.replace(Gu, ""), m = du(v || p ? "".concat(v, " ").concat(p, " { ").concat(w, " }") : w);
|
|
3811
|
+
s.namespace && (m = xs(m, s.namespace));
|
|
3819
3812
|
var b = [];
|
|
3820
|
-
return Er(
|
|
3821
|
-
return b.push(
|
|
3813
|
+
return Er(m, mu(f.concat(yu(function(y) {
|
|
3814
|
+
return b.push(y);
|
|
3822
3815
|
})))), b;
|
|
3823
3816
|
};
|
|
3824
3817
|
return d.hash = u.length ? u.reduce(function(h, p) {
|
|
@@ -3858,11 +3851,11 @@ function oo(e) {
|
|
|
3858
3851
|
}
|
|
3859
3852
|
var ks = function(e) {
|
|
3860
3853
|
return e == null || e === !1 || e === "";
|
|
3861
|
-
},
|
|
3854
|
+
}, Ps = function(e) {
|
|
3862
3855
|
var t, r, n = [];
|
|
3863
3856
|
for (var i in e) {
|
|
3864
3857
|
var o = e[i];
|
|
3865
|
-
e.hasOwnProperty(i) && !ks(o) && (Array.isArray(o) && o.isCss || mt(o) ? n.push("".concat(oo(i), ":"), o, ";") : yt(o) ? n.push.apply(n, Qe(Qe(["".concat(i, " {")],
|
|
3858
|
+
e.hasOwnProperty(i) && !ks(o) && (Array.isArray(o) && o.isCss || mt(o) ? n.push("".concat(oo(i), ":"), o, ";") : yt(o) ? n.push.apply(n, Qe(Qe(["".concat(i, " {")], Ps(o), !1), ["}"], !1)) : n.push("".concat(oo(i), ": ").concat((t = i, (r = o) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in vu || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
|
|
3866
3859
|
}
|
|
3867
3860
|
return n;
|
|
3868
3861
|
};
|
|
@@ -3875,7 +3868,7 @@ function He(e, t, r, n) {
|
|
|
3875
3868
|
return process.env.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof Rn || yt(i) || i === null || console.error("".concat(gs(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), He(i, t, r, n);
|
|
3876
3869
|
}
|
|
3877
3870
|
var o;
|
|
3878
|
-
return e instanceof Rn ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : yt(e) ?
|
|
3871
|
+
return e instanceof Rn ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : yt(e) ? Ps(e) : Array.isArray(e) ? Array.prototype.concat.apply(qr, e.map(function(s) {
|
|
3879
3872
|
return He(s, t, r, n);
|
|
3880
3873
|
})) : [e.toString()];
|
|
3881
3874
|
}
|
|
@@ -3894,7 +3887,7 @@ var Zu = ms(Ur), el = function() {
|
|
|
3894
3887
|
var i = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
|
|
3895
3888
|
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) i = qe(i, this.staticRulesId);
|
|
3896
3889
|
else {
|
|
3897
|
-
var o =
|
|
3890
|
+
var o = Pn(He(this.rules, t, r, n)), s = kn(Ue(this.baseHash, o) >>> 0);
|
|
3898
3891
|
if (!r.hasNameForId(this.componentId, s)) {
|
|
3899
3892
|
var a = n(o, ".".concat(s), void 0, this.componentId);
|
|
3900
3893
|
r.insertRules(this.componentId, s, a);
|
|
@@ -3906,7 +3899,7 @@ var Zu = ms(Ur), el = function() {
|
|
|
3906
3899
|
var d = this.rules[f];
|
|
3907
3900
|
if (typeof d == "string") l += d, process.env.NODE_ENV !== "production" && (u = Ue(u, d));
|
|
3908
3901
|
else if (d) {
|
|
3909
|
-
var h =
|
|
3902
|
+
var h = Pn(He(d, t, r, n));
|
|
3910
3903
|
u = Ue(u, h + f), l += h;
|
|
3911
3904
|
}
|
|
3912
3905
|
}
|
|
@@ -3917,31 +3910,31 @@ var Zu = ms(Ur), el = function() {
|
|
|
3917
3910
|
}
|
|
3918
3911
|
return i;
|
|
3919
3912
|
}, e;
|
|
3920
|
-
}(),
|
|
3921
|
-
|
|
3913
|
+
}(), Ns = te.createContext(void 0);
|
|
3914
|
+
Ns.Consumer;
|
|
3922
3915
|
var ln = {}, so = /* @__PURE__ */ new Set();
|
|
3923
3916
|
function tl(e, t, r) {
|
|
3924
3917
|
var n = ii(e), i = e, o = !un(e), s = t.attrs, a = s === void 0 ? qr : s, u = t.componentId, l = u === void 0 ? function(S, k) {
|
|
3925
|
-
var
|
|
3926
|
-
ln[
|
|
3927
|
-
var O = "".concat(
|
|
3918
|
+
var P = typeof S != "string" ? "sc" : Xi(S);
|
|
3919
|
+
ln[P] = (ln[P] || 0) + 1;
|
|
3920
|
+
var O = "".concat(P, "-").concat(ys(Ur + P + ln[P]));
|
|
3928
3921
|
return k ? "".concat(k, "-").concat(O) : O;
|
|
3929
3922
|
}(t.displayName, t.parentComponentId) : u, f = t.displayName, d = f === void 0 ? function(S) {
|
|
3930
3923
|
return un(S) ? "styled.".concat(S) : "Styled(".concat(gs(S), ")");
|
|
3931
|
-
}(e) : f, h = t.displayName && t.componentId ? "".concat(Xi(t.displayName), "-").concat(t.componentId) : t.componentId || l, p = n && i.attrs ? i.attrs.concat(a).filter(Boolean) : a,
|
|
3924
|
+
}(e) : f, h = t.displayName && t.componentId ? "".concat(Xi(t.displayName), "-").concat(t.componentId) : t.componentId || l, p = n && i.attrs ? i.attrs.concat(a).filter(Boolean) : a, v = t.shouldForwardProp;
|
|
3932
3925
|
if (n && i.shouldForwardProp) {
|
|
3933
3926
|
var E = i.shouldForwardProp;
|
|
3934
3927
|
if (t.shouldForwardProp) {
|
|
3935
3928
|
var w = t.shouldForwardProp;
|
|
3936
|
-
|
|
3929
|
+
v = function(S, k) {
|
|
3937
3930
|
return E(S, k) && w(S, k);
|
|
3938
3931
|
};
|
|
3939
|
-
} else
|
|
3932
|
+
} else v = E;
|
|
3940
3933
|
}
|
|
3941
|
-
var
|
|
3934
|
+
var m = new el(r, h, n ? i.componentStyle : void 0);
|
|
3942
3935
|
function b(S, k) {
|
|
3943
|
-
return function(
|
|
3944
|
-
var M =
|
|
3936
|
+
return function(P, O, I) {
|
|
3937
|
+
var M = P.attrs, fe = P.componentStyle, Y = P.defaultProps, de = P.foldedComponentIds, W = P.styledComponentId, he = P.target, ze = te.useContext(Ns), Jt = io(), tt = P.shouldForwardProp || Jt.shouldForwardProp;
|
|
3945
3938
|
process.env.NODE_ENV !== "production" && Ei(W);
|
|
3946
3939
|
var _t = _u(O, ze, Y) || pt, se = function(nt, Oe, Ae) {
|
|
3947
3940
|
for (var pe, me = ee(ee({}, Oe), { className: void 0, theme: Ae }), Te = 0; Te < nt.length; Te += 1) {
|
|
@@ -3955,25 +3948,25 @@ function tl(e, t, r) {
|
|
|
3955
3948
|
var Ae = io(), pe = nt.generateAndInjectStyles(Oe, Ae.styleSheet, Ae.stylis);
|
|
3956
3949
|
return process.env.NODE_ENV !== "production" && Ei(pe), pe;
|
|
3957
3950
|
}(fe, se);
|
|
3958
|
-
process.env.NODE_ENV !== "production" &&
|
|
3951
|
+
process.env.NODE_ENV !== "production" && P.warnTooManyClasses && P.warnTooManyClasses(rt);
|
|
3959
3952
|
var Et = qe(de, W);
|
|
3960
|
-
return rt && (Et += " " + rt), se.className && (Et += " " + se.className), Re[un(Ce) && !On.has(Ce) ? "class" : "className"] = Et,
|
|
3961
|
-
}(
|
|
3953
|
+
return rt && (Et += " " + rt), se.className && (Et += " " + se.className), Re[un(Ce) && !On.has(Ce) ? "class" : "className"] = Et, I && (Re.ref = I), Oa(Ce, Re);
|
|
3954
|
+
}(y, S, k);
|
|
3962
3955
|
}
|
|
3963
3956
|
b.displayName = d;
|
|
3964
|
-
var
|
|
3965
|
-
return
|
|
3957
|
+
var y = te.forwardRef(b);
|
|
3958
|
+
return y.attrs = p, y.componentStyle = m, y.displayName = d, y.shouldForwardProp = v, y.foldedComponentIds = n ? qe(i.foldedComponentIds, i.styledComponentId) : "", y.styledComponentId = h, y.target = n ? i.target : e, Object.defineProperty(y, "defaultProps", { get: function() {
|
|
3966
3959
|
return this._foldedDefaultProps;
|
|
3967
3960
|
}, set: function(S) {
|
|
3968
3961
|
this._foldedDefaultProps = n ? function(k) {
|
|
3969
|
-
for (var
|
|
3970
|
-
for (var
|
|
3962
|
+
for (var P = [], O = 1; O < arguments.length; O++) P[O - 1] = arguments[O];
|
|
3963
|
+
for (var I = 0, M = P; I < M.length; I++) Nn(k, M[I], !0);
|
|
3971
3964
|
return k;
|
|
3972
3965
|
}({}, i.defaultProps, S) : S;
|
|
3973
|
-
} }), process.env.NODE_ENV !== "production" && (wu(d, h),
|
|
3974
|
-
var
|
|
3975
|
-
return function(
|
|
3976
|
-
if (!O && (
|
|
3966
|
+
} }), process.env.NODE_ENV !== "production" && (wu(d, h), y.warnTooManyClasses = /* @__PURE__ */ function(S, k) {
|
|
3967
|
+
var P = {}, O = !1;
|
|
3968
|
+
return function(I) {
|
|
3969
|
+
if (!O && (P[I] = !0, Object.keys(P).length >= 200)) {
|
|
3977
3970
|
var M = k ? ' with the id of "'.concat(k, '"') : "";
|
|
3978
3971
|
console.warn("Over ".concat(200, " classes were generated for component ").concat(S).concat(M, `.
|
|
3979
3972
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
@@ -3984,12 +3977,12 @@ Example:
|
|
|
3984
3977
|
},
|
|
3985
3978
|
}))\`width: 100%;\`
|
|
3986
3979
|
|
|
3987
|
-
<Component />`), O = !0,
|
|
3980
|
+
<Component />`), O = !0, P = {};
|
|
3988
3981
|
}
|
|
3989
3982
|
};
|
|
3990
|
-
}(d, h)), oi(
|
|
3991
|
-
return ".".concat(
|
|
3992
|
-
}), o && _s(
|
|
3983
|
+
}(d, h)), oi(y, function() {
|
|
3984
|
+
return ".".concat(y.styledComponentId);
|
|
3985
|
+
}), o && _s(y, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), y;
|
|
3993
3986
|
}
|
|
3994
3987
|
function ao(e, t) {
|
|
3995
3988
|
for (var r = [e[0]], n = 0, i = t.length; n < i; n += 1) r.push(t[n], e[n + 1]);
|
|
@@ -4025,7 +4018,7 @@ On.forEach(function(e) {
|
|
|
4025
4018
|
function rl(e) {
|
|
4026
4019
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
4027
4020
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
|
|
4028
|
-
var n =
|
|
4021
|
+
var n = Pn(Cs.apply(void 0, Qe([e], t, !1))), i = ys(n);
|
|
4029
4022
|
return new Rn(i, n);
|
|
4030
4023
|
}
|
|
4031
4024
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
@@ -4196,7 +4189,7 @@ function pl(e) {
|
|
|
4196
4189
|
function ml(e) {
|
|
4197
4190
|
return et({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "line", attr: { x1: "22", y1: "2", x2: "11", y2: "13" }, child: [] }, { tag: "polygon", attr: { points: "22 2 15 22 11 13 2 9 22 2" }, child: [] }] })(e);
|
|
4198
4191
|
}
|
|
4199
|
-
const
|
|
4192
|
+
const Pf = ({
|
|
4200
4193
|
iconComponent: e,
|
|
4201
4194
|
buttonText: t,
|
|
4202
4195
|
buttonType: r = "primary",
|
|
@@ -4231,7 +4224,7 @@ function vl(e) {
|
|
|
4231
4224
|
function bl(e) {
|
|
4232
4225
|
return et({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M0 .5A.5.5 0 0 1 .5 0h3a.5.5 0 0 1 0 1H1v2.5a.5.5 0 0 1-1 0zm12 0a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-1 0V1h-2.5a.5.5 0 0 1-.5-.5M.5 12a.5.5 0 0 1 .5.5V15h2.5a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5m15 0a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1 0-1H15v-2.5a.5.5 0 0 1 .5-.5M4 4h1v1H4z" }, child: [] }, { tag: "path", attr: { d: "M7 2H2v5h5zM3 3h3v3H3zm2 8H4v1h1z" }, child: [] }, { tag: "path", attr: { d: "M7 9H2v5h5zm-4 1h3v3H3zm8-6h1v1h-1z" }, child: [] }, { tag: "path", attr: { d: "M9 2h5v5H9zm1 1v3h3V3zM8 8v2h1v1H8v1h2v-2h1v2h1v-1h2v-1h-3V8zm2 2H9V9h1zm4 2h-1v1h-2v1h3zm-4 2v-1H8v1z" }, child: [] }, { tag: "path", attr: { d: "M12 9h2V8h-2z" }, child: [] }] })(e);
|
|
4233
4226
|
}
|
|
4234
|
-
const
|
|
4227
|
+
const Nf = ({ iconComponent: e, onClick: t }) => {
|
|
4235
4228
|
const r = rs({
|
|
4236
4229
|
from: { opacity: 0, transform: "scale(0.5)" },
|
|
4237
4230
|
to: { opacity: 1, transform: "scale(1)" }
|
|
@@ -4305,12 +4298,12 @@ function Ol(e) {
|
|
|
4305
4298
|
function kl(e) {
|
|
4306
4299
|
return et({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79zM1 10.5h3v2H1zM11 .55h2V3.5h-2zm8.04 2.495 1.408 1.407-1.79 1.79-1.407-1.408zm-1.8 15.115 1.79 1.8 1.41-1.41-1.8-1.79zM20 10.5h3v2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm-1 4h2v2.95h-2zm-7.45-.96 1.41 1.41 1.79-1.8-1.41-1.41z" }, child: [] }] })(e);
|
|
4307
4300
|
}
|
|
4308
|
-
const
|
|
4301
|
+
const Pl = {
|
|
4309
4302
|
translate: Ol,
|
|
4310
4303
|
sunny: kl,
|
|
4311
4304
|
character: () => /* @__PURE__ */ L.jsx("p", { style: { fontSize: "1rem", fontWeight: 500 }, children: "字" })
|
|
4312
4305
|
}, Af = ({ icon: e, text: t, onClick: r, styles: n }) => {
|
|
4313
|
-
const i =
|
|
4306
|
+
const i = Pl[e];
|
|
4314
4307
|
return /* @__PURE__ */ L.jsx(_l, { onClick: r, style: n, children: /* @__PURE__ */ L.jsxs(El, { children: [
|
|
4315
4308
|
/* @__PURE__ */ L.jsxs(Sl, { children: [
|
|
4316
4309
|
/* @__PURE__ */ L.jsx(i, { size: "1.2rem" }),
|
|
@@ -4322,7 +4315,7 @@ const Nl = {
|
|
|
4322
4315
|
function G(e) {
|
|
4323
4316
|
return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
4324
4317
|
}
|
|
4325
|
-
var
|
|
4318
|
+
var Nl = typeof Symbol == "function" && Symbol.observable || "@@observable", fo = Nl, fn = () => Math.random().toString(36).substring(7).split("").join("."), Cl = {
|
|
4326
4319
|
INIT: `@@redux/INIT${/* @__PURE__ */ fn()}`,
|
|
4327
4320
|
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ fn()}`,
|
|
4328
4321
|
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${fn()}`
|
|
@@ -4351,7 +4344,7 @@ function Rl(e) {
|
|
|
4351
4344
|
}
|
|
4352
4345
|
if (Array.isArray(e))
|
|
4353
4346
|
return "array";
|
|
4354
|
-
if (
|
|
4347
|
+
if (Dl(e))
|
|
4355
4348
|
return "date";
|
|
4356
4349
|
if (Tl(e))
|
|
4357
4350
|
return "error";
|
|
@@ -4373,14 +4366,14 @@ function Al(e) {
|
|
|
4373
4366
|
function Tl(e) {
|
|
4374
4367
|
return e instanceof Error || typeof e.message == "string" && e.constructor && typeof e.constructor.stackTraceLimit == "number";
|
|
4375
4368
|
}
|
|
4376
|
-
function
|
|
4369
|
+
function Dl(e) {
|
|
4377
4370
|
return e instanceof Date ? !0 : typeof e.toDateString == "function" && typeof e.getDate == "function" && typeof e.setDate == "function";
|
|
4378
4371
|
}
|
|
4379
4372
|
function je(e) {
|
|
4380
4373
|
let t = typeof e;
|
|
4381
4374
|
return process.env.NODE_ENV !== "production" && (t = Rl(e)), t;
|
|
4382
4375
|
}
|
|
4383
|
-
function
|
|
4376
|
+
function Ds(e, t, r) {
|
|
4384
4377
|
if (typeof e != "function")
|
|
4385
4378
|
throw new Error(process.env.NODE_ENV === "production" ? G(2) : `Expected the root reducer to be a function. Instead, received: '${je(e)}'`);
|
|
4386
4379
|
if (typeof t == "function" && typeof r == "function" || typeof r == "function" && typeof arguments[3] == "function")
|
|
@@ -4388,12 +4381,12 @@ function Is(e, t, r) {
|
|
|
4388
4381
|
if (typeof t == "function" && typeof r > "u" && (r = t, t = void 0), typeof r < "u") {
|
|
4389
4382
|
if (typeof r != "function")
|
|
4390
4383
|
throw new Error(process.env.NODE_ENV === "production" ? G(1) : `Expected the enhancer to be a function. Instead, received: '${je(r)}'`);
|
|
4391
|
-
return r(
|
|
4384
|
+
return r(Ds)(e, t);
|
|
4392
4385
|
}
|
|
4393
4386
|
let n = e, i = t, o = /* @__PURE__ */ new Map(), s = o, a = 0, u = !1;
|
|
4394
4387
|
function l() {
|
|
4395
|
-
s === o && (s = /* @__PURE__ */ new Map(), o.forEach((w,
|
|
4396
|
-
s.set(
|
|
4388
|
+
s === o && (s = /* @__PURE__ */ new Map(), o.forEach((w, m) => {
|
|
4389
|
+
s.set(m, w);
|
|
4397
4390
|
}));
|
|
4398
4391
|
}
|
|
4399
4392
|
function f() {
|
|
@@ -4406,14 +4399,14 @@ function Is(e, t, r) {
|
|
|
4406
4399
|
throw new Error(process.env.NODE_ENV === "production" ? G(4) : `Expected the listener to be a function. Instead, received: '${je(w)}'`);
|
|
4407
4400
|
if (u)
|
|
4408
4401
|
throw new Error(process.env.NODE_ENV === "production" ? G(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
4409
|
-
let
|
|
4402
|
+
let m = !0;
|
|
4410
4403
|
l();
|
|
4411
4404
|
const b = a++;
|
|
4412
4405
|
return s.set(b, w), function() {
|
|
4413
|
-
if (
|
|
4406
|
+
if (m) {
|
|
4414
4407
|
if (u)
|
|
4415
4408
|
throw new Error(process.env.NODE_ENV === "production" ? G(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
4416
|
-
|
|
4409
|
+
m = !1, l(), s.delete(b), o = null;
|
|
4417
4410
|
}
|
|
4418
4411
|
};
|
|
4419
4412
|
}
|
|
@@ -4442,7 +4435,7 @@ function Is(e, t, r) {
|
|
|
4442
4435
|
type: Ye.REPLACE
|
|
4443
4436
|
});
|
|
4444
4437
|
}
|
|
4445
|
-
function
|
|
4438
|
+
function v() {
|
|
4446
4439
|
const w = d;
|
|
4447
4440
|
return {
|
|
4448
4441
|
/**
|
|
@@ -4453,11 +4446,11 @@ function Is(e, t, r) {
|
|
|
4453
4446
|
* be used to unsubscribe the observable from the store, and prevent further
|
|
4454
4447
|
* emission of values from the observable.
|
|
4455
4448
|
*/
|
|
4456
|
-
subscribe(
|
|
4457
|
-
if (typeof
|
|
4458
|
-
throw new Error(process.env.NODE_ENV === "production" ? G(11) : `Expected the observer to be an object. Instead, received: '${je(
|
|
4449
|
+
subscribe(m) {
|
|
4450
|
+
if (typeof m != "object" || m === null)
|
|
4451
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(11) : `Expected the observer to be an object. Instead, received: '${je(m)}'`);
|
|
4459
4452
|
function b() {
|
|
4460
|
-
const S =
|
|
4453
|
+
const S = m;
|
|
4461
4454
|
S.next && S.next(f());
|
|
4462
4455
|
}
|
|
4463
4456
|
return b(), {
|
|
@@ -4476,7 +4469,7 @@ function Is(e, t, r) {
|
|
|
4476
4469
|
subscribe: d,
|
|
4477
4470
|
getState: f,
|
|
4478
4471
|
replaceReducer: p,
|
|
4479
|
-
[fo]:
|
|
4472
|
+
[fo]: v
|
|
4480
4473
|
};
|
|
4481
4474
|
}
|
|
4482
4475
|
function ho(e) {
|
|
@@ -4486,7 +4479,7 @@ function ho(e) {
|
|
|
4486
4479
|
} catch {
|
|
4487
4480
|
}
|
|
4488
4481
|
}
|
|
4489
|
-
function
|
|
4482
|
+
function Il(e, t, r, n) {
|
|
4490
4483
|
const i = Object.keys(t), o = r && r.type === Ye.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer";
|
|
4491
4484
|
if (i.length === 0)
|
|
4492
4485
|
return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";
|
|
@@ -4511,7 +4504,7 @@ function jl(e) {
|
|
|
4511
4504
|
throw new Error(process.env.NODE_ENV === "production" ? G(13) : `The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Ye.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`);
|
|
4512
4505
|
});
|
|
4513
4506
|
}
|
|
4514
|
-
function
|
|
4507
|
+
function Is(e) {
|
|
4515
4508
|
const t = Object.keys(e), r = {};
|
|
4516
4509
|
for (let s = 0; s < t.length; s++) {
|
|
4517
4510
|
const a = t[s];
|
|
@@ -4530,23 +4523,23 @@ function Ds(e) {
|
|
|
4530
4523
|
if (o)
|
|
4531
4524
|
throw o;
|
|
4532
4525
|
if (process.env.NODE_ENV !== "production") {
|
|
4533
|
-
const d =
|
|
4526
|
+
const d = Il(a, r, u, i);
|
|
4534
4527
|
d && ho(d);
|
|
4535
4528
|
}
|
|
4536
4529
|
let l = !1;
|
|
4537
4530
|
const f = {};
|
|
4538
4531
|
for (let d = 0; d < n.length; d++) {
|
|
4539
|
-
const h = n[d], p = r[h],
|
|
4532
|
+
const h = n[d], p = r[h], v = a[h], E = p(v, u);
|
|
4540
4533
|
if (typeof E > "u") {
|
|
4541
4534
|
const w = u && u.type;
|
|
4542
4535
|
throw new Error(process.env.NODE_ENV === "production" ? G(14) : `When called with an action of type ${w ? `"${String(w)}"` : "(unknown type)"}, the slice reducer for key "${h}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`);
|
|
4543
4536
|
}
|
|
4544
|
-
f[h] = E, l = l || E !==
|
|
4537
|
+
f[h] = E, l = l || E !== v;
|
|
4545
4538
|
}
|
|
4546
4539
|
return l = l || n.length !== Object.keys(a).length, l ? f : a;
|
|
4547
4540
|
};
|
|
4548
4541
|
}
|
|
4549
|
-
function
|
|
4542
|
+
function Pr(...e) {
|
|
4550
4543
|
return e.length === 0 ? (t) => t : e.length === 1 ? e[0] : e.reduce((t, r) => (...n) => t(r(...n)));
|
|
4551
4544
|
}
|
|
4552
4545
|
function Vl(...e) {
|
|
@@ -4559,7 +4552,7 @@ function Vl(...e) {
|
|
|
4559
4552
|
getState: i.getState,
|
|
4560
4553
|
dispatch: (u, ...l) => o(u, ...l)
|
|
4561
4554
|
}, a = e.map((u) => u(s));
|
|
4562
|
-
return o =
|
|
4555
|
+
return o = Pr(...a)(i.dispatch), {
|
|
4563
4556
|
...i,
|
|
4564
4557
|
dispatch: o
|
|
4565
4558
|
};
|
|
@@ -4612,7 +4605,7 @@ var gt = Object.getPrototypeOf;
|
|
|
4612
4605
|
function Je(e) {
|
|
4613
4606
|
return !!e && !!e[ie];
|
|
4614
4607
|
}
|
|
4615
|
-
function
|
|
4608
|
+
function Ne(e) {
|
|
4616
4609
|
var t;
|
|
4617
4610
|
return e ? $s(e) || Array.isArray(e) || !!e[po] || !!((t = e.constructor) != null && t[po]) || Hr(e) || Yr(e) : !1;
|
|
4618
4611
|
}
|
|
@@ -4626,7 +4619,7 @@ function $s(e) {
|
|
|
4626
4619
|
const r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
4627
4620
|
return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === Ml;
|
|
4628
4621
|
}
|
|
4629
|
-
function
|
|
4622
|
+
function Nr(e, t) {
|
|
4630
4623
|
Wr(e) === 0 ? Reflect.ownKeys(e).forEach((r) => {
|
|
4631
4624
|
t(r, e[r], e);
|
|
4632
4625
|
}) : e.forEach((r, n) => t(n, r, e));
|
|
@@ -4654,7 +4647,7 @@ function Yr(e) {
|
|
|
4654
4647
|
function Le(e) {
|
|
4655
4648
|
return e.copy_ || e.base_;
|
|
4656
4649
|
}
|
|
4657
|
-
function
|
|
4650
|
+
function Dn(e, t) {
|
|
4658
4651
|
if (Hr(e))
|
|
4659
4652
|
return new Map(e);
|
|
4660
4653
|
if (Yr(e))
|
|
@@ -4686,7 +4679,7 @@ function In(e, t) {
|
|
|
4686
4679
|
}
|
|
4687
4680
|
}
|
|
4688
4681
|
function si(e, t = !1) {
|
|
4689
|
-
return Gr(e) || Je(e) || !
|
|
4682
|
+
return Gr(e) || Je(e) || !Ne(e) || (Wr(e) > 1 && (e.set = e.add = e.clear = e.delete = Fl), Object.freeze(e), t && Object.entries(e).forEach(([r, n]) => si(n, !0))), e;
|
|
4690
4683
|
}
|
|
4691
4684
|
function Fl() {
|
|
4692
4685
|
Z(2);
|
|
@@ -4717,7 +4710,7 @@ function Bl(e, t) {
|
|
|
4717
4710
|
function mo(e, t) {
|
|
4718
4711
|
t && (Ze("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
4719
4712
|
}
|
|
4720
|
-
function
|
|
4713
|
+
function In(e) {
|
|
4721
4714
|
jn(e), e.drafts_.forEach(Ul), e.drafts_ = null;
|
|
4722
4715
|
}
|
|
4723
4716
|
function jn(e) {
|
|
@@ -4733,19 +4726,19 @@ function Ul(e) {
|
|
|
4733
4726
|
function go(e, t) {
|
|
4734
4727
|
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
4735
4728
|
const r = t.drafts_[0];
|
|
4736
|
-
return e !== void 0 && e !== r ? (r[ie].modified_ && (
|
|
4729
|
+
return e !== void 0 && e !== r ? (r[ie].modified_ && (In(t), Z(4)), Ne(e) && (e = Cr(t, e), t.parent_ || Rr(t, e)), t.patches_ && Ze("Patches").generateReplacementPatches_(
|
|
4737
4730
|
r[ie].base_,
|
|
4738
4731
|
e,
|
|
4739
4732
|
t.patches_,
|
|
4740
4733
|
t.inversePatches_
|
|
4741
|
-
)) : e = Cr(t, r, []),
|
|
4734
|
+
)) : e = Cr(t, r, []), In(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== Vs ? e : void 0;
|
|
4742
4735
|
}
|
|
4743
4736
|
function Cr(e, t, r) {
|
|
4744
4737
|
if (Gr(t))
|
|
4745
4738
|
return t;
|
|
4746
4739
|
const n = t[ie];
|
|
4747
4740
|
if (!n)
|
|
4748
|
-
return
|
|
4741
|
+
return Nr(
|
|
4749
4742
|
t,
|
|
4750
4743
|
(i, o) => vo(e, n, t, i, o, r)
|
|
4751
4744
|
), t;
|
|
@@ -4757,7 +4750,7 @@ function Cr(e, t, r) {
|
|
|
4757
4750
|
n.finalized_ = !0, n.scope_.unfinalizedDrafts_--;
|
|
4758
4751
|
const i = n.copy_;
|
|
4759
4752
|
let o = i, s = !1;
|
|
4760
|
-
n.type_ === 3 && (o = new Set(i), i.clear(), s = !0),
|
|
4753
|
+
n.type_ === 3 && (o = new Set(i), i.clear(), s = !0), Nr(
|
|
4761
4754
|
o,
|
|
4762
4755
|
(a, u) => vo(e, n, i, a, u, r, s)
|
|
4763
4756
|
), Rr(e, i, !1), r && e.patches_ && Ze("Patches").generatePatches_(
|
|
@@ -4778,7 +4771,7 @@ function vo(e, t, r, n, i, o, s) {
|
|
|
4778
4771
|
else
|
|
4779
4772
|
return;
|
|
4780
4773
|
} else s && r.add(i);
|
|
4781
|
-
if (
|
|
4774
|
+
if (Ne(i) && !Gr(i)) {
|
|
4782
4775
|
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
|
|
4783
4776
|
return;
|
|
4784
4777
|
Cr(e, i), (!t || !t.scope_.parent_) && typeof n != "symbol" && Object.prototype.propertyIsEnumerable.call(r, n) && Rr(e, i);
|
|
@@ -4824,7 +4817,7 @@ var ai = {
|
|
|
4824
4817
|
if (!Tn(r, t))
|
|
4825
4818
|
return Wl(e, r, t);
|
|
4826
4819
|
const n = r[t];
|
|
4827
|
-
return e.finalized_ || !
|
|
4820
|
+
return e.finalized_ || !Ne(n) ? n : n === dn(e.base_, t) ? (hn(e), e.copy_[t] = $n(n, e)) : n;
|
|
4828
4821
|
},
|
|
4829
4822
|
has(e, t) {
|
|
4830
4823
|
return t in Le(e);
|
|
@@ -4872,7 +4865,7 @@ var ai = {
|
|
|
4872
4865
|
Z(12);
|
|
4873
4866
|
}
|
|
4874
4867
|
}, Yt = {};
|
|
4875
|
-
|
|
4868
|
+
Nr(ai, (e, t) => {
|
|
4876
4869
|
Yt[e] = function() {
|
|
4877
4870
|
return arguments[0] = arguments[0][0], t.apply(this, arguments);
|
|
4878
4871
|
};
|
|
@@ -4911,7 +4904,7 @@ function Vn(e) {
|
|
|
4911
4904
|
e.modified_ || (e.modified_ = !0, e.parent_ && Vn(e.parent_));
|
|
4912
4905
|
}
|
|
4913
4906
|
function hn(e) {
|
|
4914
|
-
e.copy_ || (e.copy_ =
|
|
4907
|
+
e.copy_ || (e.copy_ = Dn(
|
|
4915
4908
|
e.base_,
|
|
4916
4909
|
e.scope_.immer_.useStrictShallowCopy_
|
|
4917
4910
|
));
|
|
@@ -4929,13 +4922,13 @@ var Hl = class {
|
|
|
4929
4922
|
}
|
|
4930
4923
|
typeof r != "function" && Z(6), n !== void 0 && typeof n != "function" && Z(7);
|
|
4931
4924
|
let i;
|
|
4932
|
-
if (
|
|
4925
|
+
if (Ne(t)) {
|
|
4933
4926
|
const o = yo(this), s = $n(t, void 0);
|
|
4934
4927
|
let a = !0;
|
|
4935
4928
|
try {
|
|
4936
4929
|
i = r(s), a = !1;
|
|
4937
4930
|
} finally {
|
|
4938
|
-
a ?
|
|
4931
|
+
a ? In(o) : jn(o);
|
|
4939
4932
|
}
|
|
4940
4933
|
return mo(o, n), go(i, o);
|
|
4941
4934
|
} else if (!t || typeof t != "object") {
|
|
@@ -4956,7 +4949,7 @@ var Hl = class {
|
|
|
4956
4949
|
}, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
|
|
4957
4950
|
}
|
|
4958
4951
|
createDraft(e) {
|
|
4959
|
-
|
|
4952
|
+
Ne(e) || Z(8), Je(e) && (e = Yl(e));
|
|
4960
4953
|
const t = yo(this), r = $n(e, void 0);
|
|
4961
4954
|
return r[ie].isManual_ = !0, jn(t), r;
|
|
4962
4955
|
}
|
|
@@ -5007,17 +5000,17 @@ function Yl(e) {
|
|
|
5007
5000
|
return Je(e) || Z(10, e), Ls(e);
|
|
5008
5001
|
}
|
|
5009
5002
|
function Ls(e) {
|
|
5010
|
-
if (!
|
|
5003
|
+
if (!Ne(e) || Gr(e))
|
|
5011
5004
|
return e;
|
|
5012
5005
|
const t = e[ie];
|
|
5013
5006
|
let r;
|
|
5014
5007
|
if (t) {
|
|
5015
5008
|
if (!t.modified_)
|
|
5016
5009
|
return t.base_;
|
|
5017
|
-
t.finalized_ = !0, r =
|
|
5010
|
+
t.finalized_ = !0, r = Dn(e, t.scope_.immer_.useStrictShallowCopy_);
|
|
5018
5011
|
} else
|
|
5019
|
-
r =
|
|
5020
|
-
return
|
|
5012
|
+
r = Dn(e, !0);
|
|
5013
|
+
return Nr(r, (n, i) => {
|
|
5021
5014
|
Ms(r, n, Ls(i));
|
|
5022
5015
|
}), t && (t.finalized_ = !1), r;
|
|
5023
5016
|
}
|
|
@@ -5035,7 +5028,7 @@ function Us(e) {
|
|
|
5035
5028
|
}
|
|
5036
5029
|
var Gl = Us(), Kl = Us, Ql = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
|
|
5037
5030
|
if (arguments.length !== 0)
|
|
5038
|
-
return typeof arguments[0] == "object" ?
|
|
5031
|
+
return typeof arguments[0] == "object" ? Pr : Pr.apply(null, arguments);
|
|
5039
5032
|
}, Xl = (e) => e && typeof e.match == "function";
|
|
5040
5033
|
function bo(e, t) {
|
|
5041
5034
|
function r(...n) {
|
|
@@ -5112,7 +5105,7 @@ var Ws = class At extends Array {
|
|
|
5112
5105
|
}
|
|
5113
5106
|
};
|
|
5114
5107
|
function wo(e) {
|
|
5115
|
-
return
|
|
5108
|
+
return Ne(e) ? Bs(e, () => {
|
|
5116
5109
|
}) : e;
|
|
5117
5110
|
}
|
|
5118
5111
|
function _o(e, t, r) {
|
|
@@ -5161,7 +5154,7 @@ function Ys(e, t = [], r, n, i = !1, o = "") {
|
|
|
5161
5154
|
const l = t.length > 0;
|
|
5162
5155
|
for (let f in u) {
|
|
5163
5156
|
const d = o ? o + "." + f : f;
|
|
5164
|
-
if (l && t.some((
|
|
5157
|
+
if (l && t.some((v) => v instanceof RegExp ? v.test(d) : d === v))
|
|
5165
5158
|
continue;
|
|
5166
5159
|
const h = Ys(e, t, r.children[f], n[f], a, d);
|
|
5167
5160
|
if (h.wasMutated)
|
|
@@ -5204,11 +5197,11 @@ function nf(e = {}) {
|
|
|
5204
5197
|
if (u = a(), f = l.detectMutations(), l = s(u), f.wasMutated)
|
|
5205
5198
|
throw new Error(process.env.NODE_ENV === "production" ? F(19) : `A state mutation was detected between dispatches, in the path '${f.path || ""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);
|
|
5206
5199
|
});
|
|
5207
|
-
const
|
|
5200
|
+
const v = d(h);
|
|
5208
5201
|
return p.measureTime(() => {
|
|
5209
5202
|
if (u = a(), f = l.detectMutations(), l = s(u), f.wasMutated)
|
|
5210
5203
|
throw new Error(process.env.NODE_ENV === "production" ? F(20) : `A state mutation was detected inside a dispatch, in the path: ${f.path || ""}. Take a look at the reducer(s) handling the action ${t(h)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);
|
|
5211
|
-
}), p.warnIfExceeded(),
|
|
5204
|
+
}), p.warnIfExceeded(), v;
|
|
5212
5205
|
};
|
|
5213
5206
|
};
|
|
5214
5207
|
}
|
|
@@ -5265,31 +5258,31 @@ function of(e = {}) {
|
|
|
5265
5258
|
return (d) => (h) => (p) => {
|
|
5266
5259
|
if (!js(p))
|
|
5267
5260
|
return h(p);
|
|
5268
|
-
const
|
|
5261
|
+
const v = h(p), E = qs(s, "SerializableStateInvariantMiddleware");
|
|
5269
5262
|
return !u && !(n.length && n.indexOf(p.type) !== -1) && E.measureTime(() => {
|
|
5270
5263
|
const w = Mn(p, "", t, r, i, f);
|
|
5271
5264
|
if (w) {
|
|
5272
5265
|
const {
|
|
5273
|
-
keyPath:
|
|
5266
|
+
keyPath: m,
|
|
5274
5267
|
value: b
|
|
5275
5268
|
} = w;
|
|
5276
|
-
console.error(`A non-serializable value was detected in an action, in the path: \`${
|
|
5269
|
+
console.error(`A non-serializable value was detected in an action, in the path: \`${m}\`. Value:`, b, `
|
|
5277
5270
|
Take a look at the logic that dispatched this action: `, p, `
|
|
5278
5271
|
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`, `
|
|
5279
5272
|
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`);
|
|
5280
5273
|
}
|
|
5281
5274
|
}), a || (E.measureTime(() => {
|
|
5282
|
-
const w = d.getState(),
|
|
5283
|
-
if (
|
|
5275
|
+
const w = d.getState(), m = Mn(w, "", t, r, o, f);
|
|
5276
|
+
if (m) {
|
|
5284
5277
|
const {
|
|
5285
5278
|
keyPath: b,
|
|
5286
|
-
value:
|
|
5287
|
-
} =
|
|
5288
|
-
console.error(`A non-serializable value was detected in the state, in the path: \`${b}\`. Value:`,
|
|
5279
|
+
value: y
|
|
5280
|
+
} = m;
|
|
5281
|
+
console.error(`A non-serializable value was detected in the state, in the path: \`${b}\`. Value:`, y, `
|
|
5289
5282
|
Take a look at the reducer(s) handling this action type: ${p.type}.
|
|
5290
5283
|
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`);
|
|
5291
5284
|
}
|
|
5292
|
-
}), E.warnIfExceeded()),
|
|
5285
|
+
}), E.warnIfExceeded()), v;
|
|
5293
5286
|
};
|
|
5294
5287
|
}
|
|
5295
5288
|
}
|
|
@@ -5371,7 +5364,7 @@ function lf(e) {
|
|
|
5371
5364
|
if (typeof r == "function")
|
|
5372
5365
|
a = r;
|
|
5373
5366
|
else if (Xt(r))
|
|
5374
|
-
a =
|
|
5367
|
+
a = Is(r);
|
|
5375
5368
|
else
|
|
5376
5369
|
throw new Error(process.env.NODE_ENV === "production" ? F(1) : "`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");
|
|
5377
5370
|
if (process.env.NODE_ENV !== "production" && n && typeof n != "function")
|
|
@@ -5382,9 +5375,9 @@ function lf(e) {
|
|
|
5382
5375
|
throw new Error(process.env.NODE_ENV === "production" ? F(3) : "when using a middleware builder function, an array of middleware must be returned");
|
|
5383
5376
|
} else
|
|
5384
5377
|
u = t();
|
|
5385
|
-
if (process.env.NODE_ENV !== "production" && u.some((
|
|
5378
|
+
if (process.env.NODE_ENV !== "production" && u.some((v) => typeof v != "function"))
|
|
5386
5379
|
throw new Error(process.env.NODE_ENV === "production" ? F(4) : "each middleware provided to configureStore must be a function");
|
|
5387
|
-
let l =
|
|
5380
|
+
let l = Pr;
|
|
5388
5381
|
i && (l = Ql({
|
|
5389
5382
|
// Enable capture of stack traces for dispatched Redux actions
|
|
5390
5383
|
trace: process.env.NODE_ENV !== "production",
|
|
@@ -5396,11 +5389,11 @@ function lf(e) {
|
|
|
5396
5389
|
let h = typeof s == "function" ? s(d) : d();
|
|
5397
5390
|
if (process.env.NODE_ENV !== "production" && !Array.isArray(h))
|
|
5398
5391
|
throw new Error(process.env.NODE_ENV === "production" ? F(6) : "`enhancers` callback must return an array");
|
|
5399
|
-
if (process.env.NODE_ENV !== "production" && h.some((
|
|
5392
|
+
if (process.env.NODE_ENV !== "production" && h.some((v) => typeof v != "function"))
|
|
5400
5393
|
throw new Error(process.env.NODE_ENV === "production" ? F(7) : "each enhancer provided to configureStore must be a function");
|
|
5401
5394
|
process.env.NODE_ENV !== "production" && u.length && !h.includes(f) && console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");
|
|
5402
5395
|
const p = l(...h);
|
|
5403
|
-
return
|
|
5396
|
+
return Ds(a, o, p);
|
|
5404
5397
|
}
|
|
5405
5398
|
function Qs(e) {
|
|
5406
5399
|
const t = {}, r = [];
|
|
@@ -5461,7 +5454,7 @@ function df(e, t) {
|
|
|
5461
5454
|
const p = d(f, u);
|
|
5462
5455
|
return p === void 0 ? f : p;
|
|
5463
5456
|
} else {
|
|
5464
|
-
if (
|
|
5457
|
+
if (Ne(f))
|
|
5465
5458
|
return Bs(f, (h) => d(h, u));
|
|
5466
5459
|
{
|
|
5467
5460
|
const h = d(f, u);
|
|
@@ -5501,31 +5494,31 @@ function mf({
|
|
|
5501
5494
|
actionCreators: {},
|
|
5502
5495
|
sliceMatchers: []
|
|
5503
5496
|
}, f = {
|
|
5504
|
-
addCase(
|
|
5505
|
-
const k = typeof
|
|
5497
|
+
addCase(y, S) {
|
|
5498
|
+
const k = typeof y == "string" ? y : y.type;
|
|
5506
5499
|
if (!k)
|
|
5507
5500
|
throw new Error(process.env.NODE_ENV === "production" ? F(12) : "`context.addCase` cannot be called with an empty action type");
|
|
5508
5501
|
if (k in l.sliceCaseReducersByType)
|
|
5509
5502
|
throw new Error(process.env.NODE_ENV === "production" ? F(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + k);
|
|
5510
5503
|
return l.sliceCaseReducersByType[k] = S, f;
|
|
5511
5504
|
},
|
|
5512
|
-
addMatcher(
|
|
5505
|
+
addMatcher(y, S) {
|
|
5513
5506
|
return l.sliceMatchers.push({
|
|
5514
|
-
matcher:
|
|
5507
|
+
matcher: y,
|
|
5515
5508
|
reducer: S
|
|
5516
5509
|
}), f;
|
|
5517
5510
|
},
|
|
5518
|
-
exposeAction(
|
|
5519
|
-
return l.actionCreators[
|
|
5511
|
+
exposeAction(y, S) {
|
|
5512
|
+
return l.actionCreators[y] = S, f;
|
|
5520
5513
|
},
|
|
5521
|
-
exposeCaseReducer(
|
|
5522
|
-
return l.sliceCaseReducersByName[
|
|
5514
|
+
exposeCaseReducer(y, S) {
|
|
5515
|
+
return l.sliceCaseReducersByName[y] = S, f;
|
|
5523
5516
|
}
|
|
5524
5517
|
};
|
|
5525
|
-
u.forEach((
|
|
5526
|
-
const S = a[
|
|
5527
|
-
reducerName:
|
|
5528
|
-
type: pf(o,
|
|
5518
|
+
u.forEach((y) => {
|
|
5519
|
+
const S = a[y], k = {
|
|
5520
|
+
reducerName: y,
|
|
5521
|
+
type: pf(o, y),
|
|
5529
5522
|
createNotation: typeof i.reducers == "function"
|
|
5530
5523
|
};
|
|
5531
5524
|
wf(S) ? Ef(k, S, f, t) : bf(k, S, f);
|
|
@@ -5533,42 +5526,42 @@ function mf({
|
|
|
5533
5526
|
function d() {
|
|
5534
5527
|
if (process.env.NODE_ENV !== "production" && typeof i.extraReducers == "object")
|
|
5535
5528
|
throw new Error(process.env.NODE_ENV === "production" ? F(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
|
|
5536
|
-
const [
|
|
5537
|
-
...
|
|
5529
|
+
const [y = {}, S = [], k = void 0] = typeof i.extraReducers == "function" ? Qs(i.extraReducers) : [i.extraReducers], P = {
|
|
5530
|
+
...y,
|
|
5538
5531
|
...l.sliceCaseReducersByType
|
|
5539
5532
|
};
|
|
5540
5533
|
return df(i.initialState, (O) => {
|
|
5541
|
-
for (let
|
|
5542
|
-
O.addCase(
|
|
5543
|
-
for (let
|
|
5544
|
-
O.addMatcher(
|
|
5545
|
-
for (let
|
|
5546
|
-
O.addMatcher(
|
|
5534
|
+
for (let I in P)
|
|
5535
|
+
O.addCase(I, P[I]);
|
|
5536
|
+
for (let I of l.sliceMatchers)
|
|
5537
|
+
O.addMatcher(I.matcher, I.reducer);
|
|
5538
|
+
for (let I of S)
|
|
5539
|
+
O.addMatcher(I.matcher, I.reducer);
|
|
5547
5540
|
k && O.addDefaultCase(k);
|
|
5548
5541
|
});
|
|
5549
5542
|
}
|
|
5550
|
-
const h = (
|
|
5551
|
-
let
|
|
5552
|
-
function E(
|
|
5553
|
-
return
|
|
5543
|
+
const h = (y) => y, p = /* @__PURE__ */ new Map();
|
|
5544
|
+
let v;
|
|
5545
|
+
function E(y, S) {
|
|
5546
|
+
return v || (v = d()), v(y, S);
|
|
5554
5547
|
}
|
|
5555
5548
|
function w() {
|
|
5556
|
-
return
|
|
5549
|
+
return v || (v = d()), v.getInitialState();
|
|
5557
5550
|
}
|
|
5558
|
-
function
|
|
5551
|
+
function m(y, S = !1) {
|
|
5559
5552
|
function k(O) {
|
|
5560
|
-
let
|
|
5561
|
-
if (typeof
|
|
5553
|
+
let I = O[y];
|
|
5554
|
+
if (typeof I > "u") {
|
|
5562
5555
|
if (S)
|
|
5563
|
-
|
|
5556
|
+
I = w();
|
|
5564
5557
|
else if (process.env.NODE_ENV !== "production")
|
|
5565
5558
|
throw new Error(process.env.NODE_ENV === "production" ? F(15) : "selectSlice returned undefined for an uninjected slice reducer");
|
|
5566
5559
|
}
|
|
5567
|
-
return
|
|
5560
|
+
return I;
|
|
5568
5561
|
}
|
|
5569
|
-
function
|
|
5570
|
-
const
|
|
5571
|
-
return _o(
|
|
5562
|
+
function P(O = h) {
|
|
5563
|
+
const I = _o(p, S, () => /* @__PURE__ */ new WeakMap());
|
|
5564
|
+
return _o(I, O, () => {
|
|
5572
5565
|
const M = {};
|
|
5573
5566
|
for (const [fe, Y] of Object.entries(i.selectors ?? {}))
|
|
5574
5567
|
M[fe] = yf(Y, O, w, S);
|
|
@@ -5576,10 +5569,10 @@ function mf({
|
|
|
5576
5569
|
});
|
|
5577
5570
|
}
|
|
5578
5571
|
return {
|
|
5579
|
-
reducerPath:
|
|
5580
|
-
getSelectors:
|
|
5572
|
+
reducerPath: y,
|
|
5573
|
+
getSelectors: P,
|
|
5581
5574
|
get selectors() {
|
|
5582
|
-
return
|
|
5575
|
+
return P(k);
|
|
5583
5576
|
},
|
|
5584
5577
|
selectSlice: k
|
|
5585
5578
|
};
|
|
@@ -5590,18 +5583,18 @@ function mf({
|
|
|
5590
5583
|
actions: l.actionCreators,
|
|
5591
5584
|
caseReducers: l.sliceCaseReducersByName,
|
|
5592
5585
|
getInitialState: w,
|
|
5593
|
-
...
|
|
5594
|
-
injectInto(
|
|
5586
|
+
...m(s),
|
|
5587
|
+
injectInto(y, {
|
|
5595
5588
|
reducerPath: S,
|
|
5596
5589
|
...k
|
|
5597
5590
|
} = {}) {
|
|
5598
|
-
const
|
|
5599
|
-
return
|
|
5600
|
-
reducerPath:
|
|
5591
|
+
const P = S ?? s;
|
|
5592
|
+
return y.inject({
|
|
5593
|
+
reducerPath: P,
|
|
5601
5594
|
reducer: E
|
|
5602
5595
|
}, k), {
|
|
5603
5596
|
...b,
|
|
5604
|
-
...
|
|
5597
|
+
...m(P, !0)
|
|
5605
5598
|
};
|
|
5606
5599
|
}
|
|
5607
5600
|
};
|
|
@@ -5707,17 +5700,17 @@ const Sf = {
|
|
|
5707
5700
|
reducers: {
|
|
5708
5701
|
setCardState: (e, t) => (e.cardPosition = t.payload.state, e)
|
|
5709
5702
|
}
|
|
5710
|
-
}), { setCardState: Tf } = Xs.actions, xf =
|
|
5703
|
+
}), { setCardState: Tf } = Xs.actions, xf = Is({
|
|
5711
5704
|
navigation: Xs.reducer
|
|
5712
|
-
}),
|
|
5705
|
+
}), Df = lf({
|
|
5713
5706
|
reducer: xf
|
|
5714
5707
|
});
|
|
5715
5708
|
export {
|
|
5716
5709
|
Qc as AnimatedText,
|
|
5717
5710
|
Cf as BackButton,
|
|
5718
|
-
|
|
5719
|
-
|
|
5711
|
+
Pf as BannerButton,
|
|
5712
|
+
Nf as CircleIconButton,
|
|
5720
5713
|
Af as ListItem,
|
|
5721
5714
|
Rf as UnorderedListItemContainer,
|
|
5722
|
-
|
|
5715
|
+
Df as ymyStore
|
|
5723
5716
|
};
|