ymy-components 0.0.18 → 0.0.21
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/buttons/BackButton.d.ts +4 -0
- package/dist/buttons/BackButton.types.d.ts +11 -0
- package/dist/index.cjs.js +17 -17
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +475 -465
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Mn from "react";
|
|
2
|
-
import te, { useState as
|
|
3
|
-
import { unstable_batchedUpdates as
|
|
4
|
-
var
|
|
2
|
+
import te, { useState as gr, useRef as Ee, useEffect as Ye, useLayoutEffect as Ea, forwardRef as Sa, useCallback as Oa, useContext as zn, useMemo as tr, useDebugValue as Ei, createElement as ka } from "react";
|
|
3
|
+
import { unstable_batchedUpdates as xa } from "react-dom";
|
|
4
|
+
var rr = { exports: {} }, St = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
7
7
|
* react-jsx-runtime.production.min.js
|
|
@@ -63,10 +63,10 @@ function Pa() {
|
|
|
63
63
|
$.unshift("Warning: " + g), Function.prototype.apply.call(console[c], console, $);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
var S = !1,
|
|
66
|
+
var S = !1, x = !1, N = !1, k = !1, I = !1, F;
|
|
67
67
|
F = Symbol.for("react.module.reference");
|
|
68
68
|
function le(c) {
|
|
69
|
-
return !!(typeof c == "string" || typeof c == "function" || c === n || c === o || I || c === i || c === l || c === f ||
|
|
69
|
+
return !!(typeof c == "string" || typeof c == "function" || c === n || c === o || I || c === i || c === l || c === f || k || c === p || S || x || N || 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.
|
|
@@ -127,14 +127,14 @@ function Pa() {
|
|
|
127
127
|
}
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
130
|
-
var de = Object.assign, Fe = 0,
|
|
130
|
+
var de = Object.assign, Fe = 0, Jt, Ze, wt, oe, Pe, Ce, K;
|
|
131
131
|
function et() {
|
|
132
132
|
}
|
|
133
133
|
et.__reactDisabledLog = !0;
|
|
134
134
|
function _t() {
|
|
135
135
|
{
|
|
136
136
|
if (Fe === 0) {
|
|
137
|
-
|
|
137
|
+
Jt = console.log, Ze = console.info, wt = console.warn, oe = console.error, Pe = console.group, Ce = console.groupCollapsed, K = console.groupEnd;
|
|
138
138
|
var c = {
|
|
139
139
|
configurable: !0,
|
|
140
140
|
enumerable: !0,
|
|
@@ -164,7 +164,7 @@ function Pa() {
|
|
|
164
164
|
};
|
|
165
165
|
Object.defineProperties(console, {
|
|
166
166
|
log: de({}, c, {
|
|
167
|
-
value:
|
|
167
|
+
value: Jt
|
|
168
168
|
}),
|
|
169
169
|
info: de({}, c, {
|
|
170
170
|
value: Ze
|
|
@@ -258,18 +258,18 @@ function Pa() {
|
|
|
258
258
|
if (X && P && typeof X.stack == "string") {
|
|
259
259
|
for (var A = X.stack.split(`
|
|
260
260
|
`), Q = P.stack.split(`
|
|
261
|
-
`),
|
|
262
|
-
|
|
263
|
-
for (;
|
|
264
|
-
if (A[
|
|
265
|
-
if (
|
|
261
|
+
`), L = A.length - 1, U = Q.length - 1; L >= 1 && U >= 0 && A[L] !== Q[U]; )
|
|
262
|
+
U--;
|
|
263
|
+
for (; L >= 1 && U >= 0; L--, U--)
|
|
264
|
+
if (A[L] !== Q[U]) {
|
|
265
|
+
if (L !== 1 || U !== 1)
|
|
266
266
|
do
|
|
267
|
-
if (
|
|
267
|
+
if (L--, U--, U < 0 || A[L] !== Q[U]) {
|
|
268
268
|
var se = `
|
|
269
|
-
` + A[
|
|
269
|
+
` + A[L].replace(" at new ", " at ");
|
|
270
270
|
return c.displayName && se.includes("<anonymous>") && (se = se.replace("<anonymous>", c.displayName)), typeof c == "function" && Ae.set(c, se), se;
|
|
271
271
|
}
|
|
272
|
-
while (
|
|
272
|
+
while (L >= 1 && U >= 0);
|
|
273
273
|
break;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
@@ -286,7 +286,7 @@ function Pa() {
|
|
|
286
286
|
var g = c.prototype;
|
|
287
287
|
return !!(g && g.isReactComponent);
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function Zt(c, g, O) {
|
|
290
290
|
if (c == null)
|
|
291
291
|
return "";
|
|
292
292
|
if (typeof c == "function")
|
|
@@ -304,11 +304,11 @@ function Pa() {
|
|
|
304
304
|
case u:
|
|
305
305
|
return Js(c.render);
|
|
306
306
|
case d:
|
|
307
|
-
return
|
|
307
|
+
return Zt(c.type, g, O);
|
|
308
308
|
case h: {
|
|
309
309
|
var P = c, j = P._payload, $ = P._init;
|
|
310
310
|
try {
|
|
311
|
-
return
|
|
311
|
+
return Zt($(j), g, O);
|
|
312
312
|
} catch {
|
|
313
313
|
}
|
|
314
314
|
}
|
|
@@ -316,9 +316,9 @@ function Pa() {
|
|
|
316
316
|
return "";
|
|
317
317
|
}
|
|
318
318
|
var Et = Object.prototype.hasOwnProperty, ci = {}, ui = v.ReactDebugCurrentFrame;
|
|
319
|
-
function
|
|
319
|
+
function er(c) {
|
|
320
320
|
if (c) {
|
|
321
|
-
var g = c._owner, O =
|
|
321
|
+
var g = c._owner, O = Zt(c.type, c._source, g ? g.type : null);
|
|
322
322
|
ui.setExtraStackFrame(O);
|
|
323
323
|
} else
|
|
324
324
|
ui.setExtraStackFrame(null);
|
|
@@ -335,10 +335,10 @@ function Pa() {
|
|
|
335
335
|
throw Q.name = "Invariant Violation", Q;
|
|
336
336
|
}
|
|
337
337
|
A = c[D](g, D, P, O, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
338
|
-
} catch (
|
|
339
|
-
A =
|
|
338
|
+
} catch (L) {
|
|
339
|
+
A = L;
|
|
340
340
|
}
|
|
341
|
-
A && !(A instanceof Error) && (
|
|
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).", P || "React class", O, D, typeof A), er(null)), A instanceof Error && !(A.message in ci) && (ci[A.message] = !0, er(j), b("Failed %s type: %s", O, A.message), er(null));
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
}
|
|
@@ -449,13 +449,13 @@ function Pa() {
|
|
|
449
449
|
for ($ in g)
|
|
450
450
|
Et.call(g, $) && !ia.hasOwnProperty($) && (D[$] = g[$]);
|
|
451
451
|
if (c && c.defaultProps) {
|
|
452
|
-
var
|
|
453
|
-
for ($ in
|
|
454
|
-
D[$] === void 0 && (D[$] =
|
|
452
|
+
var L = c.defaultProps;
|
|
453
|
+
for ($ in L)
|
|
454
|
+
D[$] === void 0 && (D[$] = L[$]);
|
|
455
455
|
}
|
|
456
456
|
if (A || Q) {
|
|
457
|
-
var
|
|
458
|
-
A && ca(D,
|
|
457
|
+
var U = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
|
|
458
|
+
A && ca(D, U), Q && ua(D, U);
|
|
459
459
|
}
|
|
460
460
|
return la(c, A, Q, j, P, di.current, D);
|
|
461
461
|
}
|
|
@@ -463,7 +463,7 @@ function Pa() {
|
|
|
463
463
|
var Qr = v.ReactCurrentOwner, mi = v.ReactDebugCurrentFrame;
|
|
464
464
|
function nt(c) {
|
|
465
465
|
if (c) {
|
|
466
|
-
var g = c._owner, O =
|
|
466
|
+
var g = c._owner, O = Zt(c.type, c._source, g ? g.type : null);
|
|
467
467
|
mi.setExtraStackFrame(O);
|
|
468
468
|
} else
|
|
469
469
|
mi.setExtraStackFrame(null);
|
|
@@ -579,12 +579,12 @@ Check the top-level render call using <` + O + ">.");
|
|
|
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();
|
|
581
581
|
Q ? A += Q : A += yi();
|
|
582
|
-
var
|
|
583
|
-
c === null ?
|
|
582
|
+
var L;
|
|
583
|
+
c === null ? L = "null" : Kr(c) ? L = "array" : c !== void 0 && c.$$typeof === t ? (L = "<" + (q(c.type) || "Unknown") + " />", A = " Did you accidentally export a JSX literal instead of a component?") : L = typeof c, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, A);
|
|
584
584
|
}
|
|
585
|
-
var
|
|
586
|
-
if (
|
|
587
|
-
return
|
|
585
|
+
var U = fa(c, g, O, j, $);
|
|
586
|
+
if (U == null)
|
|
587
|
+
return U;
|
|
588
588
|
if (D) {
|
|
589
589
|
var se = g.children;
|
|
590
590
|
if (se !== void 0)
|
|
@@ -612,7 +612,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
612
612
|
<%s key={someKey} {...props} />`, Zr, Me, wa, Me), wi[Me + Zr] = !0;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
return c === n ? ma(
|
|
615
|
+
return c === n ? ma(U) : pa(U), U;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
618
|
function ya(c, g, O) {
|
|
@@ -625,14 +625,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
625
625
|
Ot.Fragment = n, Ot.jsx = va, Ot.jsxs = ba;
|
|
626
626
|
}()), Ot;
|
|
627
627
|
}
|
|
628
|
-
var
|
|
628
|
+
var ki;
|
|
629
629
|
function Ca() {
|
|
630
|
-
return
|
|
630
|
+
return ki || (ki = 1, process.env.NODE_ENV === "production" ? rr.exports = Na() : rr.exports = Pa()), rr.exports;
|
|
631
631
|
}
|
|
632
|
-
var G = Ca(),
|
|
633
|
-
C.write = (e) => Yt(e,
|
|
634
|
-
var
|
|
635
|
-
C.onStart = (e) => Yt(e,
|
|
632
|
+
var G = Ca(), Ln = Gt(), C = (e) => Yt(e, Ln), Un = Gt();
|
|
633
|
+
C.write = (e) => Yt(e, Un);
|
|
634
|
+
var Ar = Gt();
|
|
635
|
+
C.onStart = (e) => Yt(e, Ar);
|
|
636
636
|
var Bn = Gt();
|
|
637
637
|
C.onFrame = (e) => Yt(e, Bn);
|
|
638
638
|
var qn = Gt();
|
|
@@ -647,7 +647,7 @@ C.setTimeout = (e, t) => {
|
|
|
647
647
|
};
|
|
648
648
|
var So = (e) => ~(~at.findIndex((t) => t.time > e) || ~at.length);
|
|
649
649
|
C.cancel = (e) => {
|
|
650
|
-
|
|
650
|
+
Ar.delete(e), Bn.delete(e), qn.delete(e), Ln.delete(e), Un.delete(e);
|
|
651
651
|
};
|
|
652
652
|
C.sync = (e) => {
|
|
653
653
|
pn = !0, C.batchedUpdates(e), pn = !1;
|
|
@@ -665,7 +665,7 @@ C.throttle = (e) => {
|
|
|
665
665
|
t = i, C.onStart(r);
|
|
666
666
|
}
|
|
667
667
|
return n.handler = e, n.cancel = () => {
|
|
668
|
-
|
|
668
|
+
Ar.delete(r), t = null;
|
|
669
669
|
}, n;
|
|
670
670
|
};
|
|
671
671
|
var Wn = typeof window < "u" ? window.requestAnimationFrame : (
|
|
@@ -681,22 +681,22 @@ C.frameLoop = "always";
|
|
|
681
681
|
C.advance = () => {
|
|
682
682
|
C.frameLoop !== "demand" ? console.warn(
|
|
683
683
|
"Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"
|
|
684
|
-
) :
|
|
684
|
+
) : xo();
|
|
685
685
|
};
|
|
686
686
|
var je = -1, Ve = 0, pn = !1;
|
|
687
687
|
function Yt(e, t) {
|
|
688
688
|
pn ? (t.delete(e), e(0)) : (t.add(e), Oo());
|
|
689
689
|
}
|
|
690
690
|
function Oo() {
|
|
691
|
-
je < 0 && (je = 0, C.frameLoop !== "demand" && Wn(
|
|
691
|
+
je < 0 && (je = 0, C.frameLoop !== "demand" && Wn(ko));
|
|
692
692
|
}
|
|
693
693
|
function Ra() {
|
|
694
694
|
je = -1;
|
|
695
695
|
}
|
|
696
|
-
function xo() {
|
|
697
|
-
~je && (Wn(xo), C.batchedUpdates(ko));
|
|
698
|
-
}
|
|
699
696
|
function ko() {
|
|
697
|
+
~je && (Wn(ko), C.batchedUpdates(xo));
|
|
698
|
+
}
|
|
699
|
+
function xo() {
|
|
700
700
|
const e = je;
|
|
701
701
|
je = C.now();
|
|
702
702
|
const t = So(je);
|
|
@@ -704,7 +704,7 @@ function ko() {
|
|
|
704
704
|
Ra();
|
|
705
705
|
return;
|
|
706
706
|
}
|
|
707
|
-
|
|
707
|
+
Ar.flush(), Ln.flush(e ? Math.min(64, je - e) : 16.667), Bn.flush(), Un.flush(), qn.flush();
|
|
708
708
|
}
|
|
709
709
|
function Gt() {
|
|
710
710
|
let e = /* @__PURE__ */ new Set(), t = e;
|
|
@@ -751,7 +751,7 @@ var Da = (e, t, r) => Object.defineProperty(e, t, { value: r, writable: !0, conf
|
|
|
751
751
|
num: (e) => typeof e == "number",
|
|
752
752
|
und: (e) => e === void 0
|
|
753
753
|
};
|
|
754
|
-
function
|
|
754
|
+
function ke(e, t) {
|
|
755
755
|
if (_.arr(e)) {
|
|
756
756
|
if (!_.arr(t) || e.length !== t.length)
|
|
757
757
|
return !1;
|
|
@@ -781,20 +781,20 @@ function At(e, t) {
|
|
|
781
781
|
}
|
|
782
782
|
var Pt = (e, ...t) => At(e, (r) => r(...t)), Hn = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), Yn, Po, $e = null, Co = !1, Gn = mn, Ia = (e) => {
|
|
783
783
|
e.to && (Po = e.to), e.now && (C.now = e.now), e.colors !== void 0 && ($e = 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
|
-
}, Tt = /* @__PURE__ */ new Set(), ce = [], en = [],
|
|
784
|
+
}, Tt = /* @__PURE__ */ new Set(), ce = [], en = [], vr = 0, Tr = {
|
|
785
785
|
get idle() {
|
|
786
786
|
return !Tt.size && !ce.length;
|
|
787
787
|
},
|
|
788
788
|
/** Advance the given animation on every frame until idle. */
|
|
789
789
|
start(e) {
|
|
790
|
-
|
|
790
|
+
vr > e.priority ? (Tt.add(e), C.onStart(ja)) : (Ro(e), C(yn));
|
|
791
791
|
},
|
|
792
792
|
/** Advance all animations by the given time. */
|
|
793
793
|
advance: yn,
|
|
794
794
|
/** Call this when an animation's priority changes. */
|
|
795
795
|
sort(e) {
|
|
796
|
-
if (
|
|
797
|
-
C.onFrame(() =>
|
|
796
|
+
if (vr)
|
|
797
|
+
C.onFrame(() => Tr.sort(e));
|
|
798
798
|
else {
|
|
799
799
|
const t = ce.indexOf(e);
|
|
800
800
|
~t && (ce.splice(t, 1), Ao(e));
|
|
@@ -826,9 +826,9 @@ function yn(e) {
|
|
|
826
826
|
const t = en;
|
|
827
827
|
for (let r = 0; r < ce.length; r++) {
|
|
828
828
|
const n = ce[r];
|
|
829
|
-
|
|
829
|
+
vr = n.priority, n.idle || (Gn(n), n.advance(e), n.idle || t.push(n));
|
|
830
830
|
}
|
|
831
|
-
return
|
|
831
|
+
return vr = 0, en = ce, en.length = 0, ce = t, ce.length > 0;
|
|
832
832
|
}
|
|
833
833
|
function Va(e, t) {
|
|
834
834
|
const r = e.findIndex(t);
|
|
@@ -985,13 +985,13 @@ var $a = {
|
|
|
985
985
|
whitesmoke: 4126537215,
|
|
986
986
|
yellow: 4294902015,
|
|
987
987
|
yellowgreen: 2597139199
|
|
988
|
-
}, ge = "[-+]?\\d*\\.?\\d+",
|
|
989
|
-
function
|
|
988
|
+
}, ge = "[-+]?\\d*\\.?\\d+", br = ge + "%";
|
|
989
|
+
function Dr(...e) {
|
|
990
990
|
return "\\(\\s*(" + e.join(")\\s*,\\s*(") + ")\\s*\\)";
|
|
991
991
|
}
|
|
992
|
-
var Fa = new RegExp("rgb" +
|
|
993
|
-
"hsla" +
|
|
994
|
-
),
|
|
992
|
+
var Fa = new RegExp("rgb" + Dr(ge, ge, ge)), Ma = new RegExp("rgba" + Dr(ge, ge, ge, ge)), za = new RegExp("hsl" + Dr(ge, br, br)), La = new RegExp(
|
|
993
|
+
"hsla" + Dr(ge, br, br, ge)
|
|
994
|
+
), Ua = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, Ba = /^#([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;
|
|
997
997
|
return typeof e == "number" ? e >>> 0 === e && e >= 0 && e <= 4294967295 ? e : null : (t = qa.exec(e)) ? parseInt(t[1] + "ff", 16) >>> 0 : $e && $e[e] !== void 0 ? $e[e] : (t = Fa.exec(e)) ? (ot(t[1]) << 24 | // r
|
|
@@ -1002,7 +1002,7 @@ function Ha(e) {
|
|
|
1002
1002
|
ot(t[2]) << 16 | // g
|
|
1003
1003
|
ot(t[3]) << 8 | // b
|
|
1004
1004
|
Pi(t[4])) >>> // a
|
|
1005
|
-
0 : (t =
|
|
1005
|
+
0 : (t = Ua.exec(e)) ? parseInt(
|
|
1006
1006
|
t[1] + t[1] + // r
|
|
1007
1007
|
t[2] + t[2] + // g
|
|
1008
1008
|
t[3] + t[3] + // b
|
|
@@ -1016,20 +1016,20 @@ function Ha(e) {
|
|
|
1016
1016
|
t[4] + t[4],
|
|
1017
1017
|
// a
|
|
1018
1018
|
16
|
|
1019
|
-
) >>> 0 : (t = za.exec(e)) ? (
|
|
1019
|
+
) >>> 0 : (t = za.exec(e)) ? (xi(
|
|
1020
1020
|
Ni(t[1]),
|
|
1021
1021
|
// h
|
|
1022
|
-
|
|
1022
|
+
nr(t[2]),
|
|
1023
1023
|
// s
|
|
1024
|
-
|
|
1024
|
+
nr(t[3])
|
|
1025
1025
|
// l
|
|
1026
1026
|
) | 255) >>> // a
|
|
1027
|
-
0 : (t =
|
|
1027
|
+
0 : (t = La.exec(e)) ? (xi(
|
|
1028
1028
|
Ni(t[1]),
|
|
1029
1029
|
// h
|
|
1030
|
-
|
|
1030
|
+
nr(t[2]),
|
|
1031
1031
|
// s
|
|
1032
|
-
|
|
1032
|
+
nr(t[3])
|
|
1033
1033
|
// l
|
|
1034
1034
|
) | Pi(t[4])) >>> // a
|
|
1035
1035
|
0 : null;
|
|
@@ -1037,7 +1037,7 @@ function Ha(e) {
|
|
|
1037
1037
|
function tn(e, t, r) {
|
|
1038
1038
|
return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + (t - e) * 6 * r : r < 1 / 2 ? t : r < 2 / 3 ? e + (t - e) * (2 / 3 - r) * 6 : e;
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function xi(e, t, r) {
|
|
1041
1041
|
const n = r < 0.5 ? r * (1 + t) : r + t - r * t, i = 2 * r - n, o = tn(i, n, e + 1 / 3), s = tn(i, n, e), a = tn(i, n, e - 1 / 3);
|
|
1042
1042
|
return Math.round(o * 255) << 24 | Math.round(s * 255) << 16 | Math.round(a * 255) << 8;
|
|
1043
1043
|
}
|
|
@@ -1052,7 +1052,7 @@ function Pi(e) {
|
|
|
1052
1052
|
const t = parseFloat(e);
|
|
1053
1053
|
return t < 0 ? 0 : t > 1 ? 255 : Math.round(t * 255);
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1055
|
+
function nr(e) {
|
|
1056
1056
|
const t = parseFloat(e);
|
|
1057
1057
|
return t < 0 ? 0 : t > 100 ? 1 : t / 100;
|
|
1058
1058
|
}
|
|
@@ -1147,7 +1147,7 @@ var Do = (e, t, r) => Object.defineProperty(e, t, {
|
|
|
1147
1147
|
value: r,
|
|
1148
1148
|
writable: !0,
|
|
1149
1149
|
configurable: !0
|
|
1150
|
-
}),
|
|
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 Do = (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 &&
|
|
1161
|
+
if (r && Ir.test(r))
|
|
1162
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 Do = (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');
|
|
@@ -1189,10 +1189,10 @@ var Do = (e, t, r) => Object.defineProperty(e, t, {
|
|
|
1189
1189
|
);
|
|
1190
1190
|
return (o) => {
|
|
1191
1191
|
var u;
|
|
1192
|
-
const s = !Ai.test(t[0]) && ((u = t.find((l) => Ai.test(l))) == null ? void 0 : u.replace(
|
|
1192
|
+
const s = !Ai.test(t[0]) && ((u = t.find((l) => Ai.test(l))) == null ? void 0 : u.replace(lr, ""));
|
|
1193
1193
|
let a = 0;
|
|
1194
1194
|
return t[0].replace(
|
|
1195
|
-
|
|
1195
|
+
lr,
|
|
1196
1196
|
() => `${i[a++](o)}${s || ""}`
|
|
1197
1197
|
).replace(Za, tc);
|
|
1198
1198
|
};
|
|
@@ -1216,9 +1216,9 @@ function oc() {
|
|
|
1216
1216
|
`${Kn}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`
|
|
1217
1217
|
);
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
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 ($e || {}));
|
|
1222
1222
|
}
|
|
1223
1223
|
var Qn = Hn() ? Ye : Ea, sc = () => {
|
|
1224
1224
|
const e = Ee(!1);
|
|
@@ -1227,13 +1227,13 @@ var Qn = Hn() ? Ye : Ea, sc = () => {
|
|
|
1227
1227
|
}), []), e;
|
|
1228
1228
|
};
|
|
1229
1229
|
function $o() {
|
|
1230
|
-
const e =
|
|
1230
|
+
const e = gr()[1], t = sc();
|
|
1231
1231
|
return () => {
|
|
1232
1232
|
t.current && e(Math.random());
|
|
1233
1233
|
};
|
|
1234
1234
|
}
|
|
1235
1235
|
function ac(e, t) {
|
|
1236
|
-
const [r] =
|
|
1236
|
+
const [r] = gr(
|
|
1237
1237
|
() => ({
|
|
1238
1238
|
inputs: t,
|
|
1239
1239
|
result: e()
|
|
@@ -1262,7 +1262,7 @@ function Ti(e) {
|
|
|
1262
1262
|
t.current = e;
|
|
1263
1263
|
}), t.current;
|
|
1264
1264
|
}
|
|
1265
|
-
var zt = Symbol.for("Animated:node"), lc = (e) => !!e && e[zt] === e, we = (e) => e && e[zt], Xn = (e, t) => Da(e, zt, t),
|
|
1265
|
+
var zt = Symbol.for("Animated:node"), lc = (e) => !!e && e[zt] === e, we = (e) => e && e[zt], Xn = (e, t) => Da(e, zt, t), Vr = (e) => e && e[zt] && e[zt].getPayload(), Mo = class {
|
|
1266
1266
|
constructor() {
|
|
1267
1267
|
Xn(this, this);
|
|
1268
1268
|
}
|
|
@@ -1291,7 +1291,7 @@ var zt = Symbol.for("Animated:node"), lc = (e) => !!e && e[zt] === e, we = (e) =
|
|
|
1291
1291
|
const { done: e } = this;
|
|
1292
1292
|
this.done = !1, _.num(this._value) && (this.elapsedTime = 0, this.durationProgress = 0, this.lastPosition = this._value, e && (this.lastVelocity = null), this.v0 = null);
|
|
1293
1293
|
}
|
|
1294
|
-
},
|
|
1294
|
+
}, Lt = class extends Kt {
|
|
1295
1295
|
constructor(e) {
|
|
1296
1296
|
super(0), this._string = null, this._toString = Vt({
|
|
1297
1297
|
output: [e, e]
|
|
@@ -1299,7 +1299,7 @@ var zt = Symbol.for("Animated:node"), lc = (e) => !!e && e[zt] === e, we = (e) =
|
|
|
1299
1299
|
}
|
|
1300
1300
|
/** @internal */
|
|
1301
1301
|
static create(e) {
|
|
1302
|
-
return new
|
|
1302
|
+
return new Lt(e);
|
|
1303
1303
|
}
|
|
1304
1304
|
getValue() {
|
|
1305
1305
|
const e = this._string;
|
|
@@ -1321,7 +1321,7 @@ var zt = Symbol.for("Animated:node"), lc = (e) => !!e && e[zt] === e, we = (e) =
|
|
|
1321
1321
|
output: [this.getValue(), e]
|
|
1322
1322
|
})), this._value = 0, super.reset();
|
|
1323
1323
|
}
|
|
1324
|
-
},
|
|
1324
|
+
}, wr = { dependencies: null }, $r = class extends Mo {
|
|
1325
1325
|
constructor(e) {
|
|
1326
1326
|
super(), this.source = e, this.setValue(e);
|
|
1327
1327
|
}
|
|
@@ -1347,11 +1347,11 @@ var zt = Symbol.for("Animated:node"), lc = (e) => !!e && e[zt] === e, we = (e) =
|
|
|
1347
1347
|
}
|
|
1348
1348
|
/** Add to a payload set. */
|
|
1349
1349
|
_addToPayload(e) {
|
|
1350
|
-
|
|
1351
|
-
const t =
|
|
1350
|
+
wr.dependencies && ae(e) && wr.dependencies.add(e);
|
|
1351
|
+
const t = Vr(e);
|
|
1352
1352
|
t && T(t, (r) => this.add(r));
|
|
1353
1353
|
}
|
|
1354
|
-
}, zo = class extends
|
|
1354
|
+
}, zo = class extends $r {
|
|
1355
1355
|
constructor(e) {
|
|
1356
1356
|
super(e);
|
|
1357
1357
|
}
|
|
@@ -1368,11 +1368,11 @@ var zt = Symbol.for("Animated:node"), lc = (e) => !!e && e[zt] === e, we = (e) =
|
|
|
1368
1368
|
}
|
|
1369
1369
|
};
|
|
1370
1370
|
function fc(e) {
|
|
1371
|
-
return (
|
|
1371
|
+
return (jr(e) ? Lt : Kt).create(e);
|
|
1372
1372
|
}
|
|
1373
1373
|
function gn(e) {
|
|
1374
1374
|
const t = we(e);
|
|
1375
|
-
return t ? t.constructor : _.arr(e) ? zo :
|
|
1375
|
+
return t ? t.constructor : _.arr(e) ? zo : jr(e) ? Lt : Kt;
|
|
1376
1376
|
}
|
|
1377
1377
|
var Di = (e, t) => {
|
|
1378
1378
|
const r = (
|
|
@@ -1415,17 +1415,17 @@ var Di = (e, t) => {
|
|
|
1415
1415
|
};
|
|
1416
1416
|
function hc(e, t) {
|
|
1417
1417
|
const r = /* @__PURE__ */ new Set();
|
|
1418
|
-
return
|
|
1418
|
+
return wr.dependencies = r, e.style && (e = {
|
|
1419
1419
|
...e,
|
|
1420
1420
|
style: t.createAnimatedStyle(e.style)
|
|
1421
|
-
}), e = new
|
|
1421
|
+
}), e = new $r(e), wr.dependencies = null, [e, r];
|
|
1422
1422
|
}
|
|
1423
1423
|
function pc(e, t) {
|
|
1424
1424
|
return e && (_.fun(e) ? e(t) : e.current = t), t;
|
|
1425
1425
|
}
|
|
1426
1426
|
var Ii = Symbol.for("AnimatedComponent"), mc = (e, {
|
|
1427
1427
|
applyAnimatedValues: t = () => !1,
|
|
1428
|
-
createAnimatedStyle: r = (i) => new
|
|
1428
|
+
createAnimatedStyle: r = (i) => new $r(i),
|
|
1429
1429
|
getComponentProps: n = (i) => i
|
|
1430
1430
|
} = {}) => {
|
|
1431
1431
|
const i = {
|
|
@@ -1442,10 +1442,10 @@ var Ii = Symbol.for("AnimatedComponent"), mc = (e, {
|
|
|
1442
1442
|
animated: o
|
|
1443
1443
|
};
|
|
1444
1444
|
}, ji = (e) => _.str(e) ? e : e && _.str(e.displayName) ? e.displayName : _.fun(e) && e.name || null;
|
|
1445
|
-
function
|
|
1445
|
+
function Le(e, ...t) {
|
|
1446
1446
|
return _.fun(e) ? e(...t) : e;
|
|
1447
1447
|
}
|
|
1448
|
-
var Dt = (e, t) => e === !0 || !!(t && e && (_.fun(e) ? e(t) : re(e).includes(t))),
|
|
1448
|
+
var Dt = (e, t) => e === !0 || !!(t && e && (_.fun(e) ? e(t) : re(e).includes(t))), Lo = (e, t) => _.obj(e) ? t && e[t] : e, Uo = (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 = {};
|
|
@@ -1514,8 +1514,8 @@ function Bo(e) {
|
|
|
1514
1514
|
}
|
|
1515
1515
|
return { ...e };
|
|
1516
1516
|
}
|
|
1517
|
-
function
|
|
1518
|
-
return e = J(e), _.arr(e) ? e.map(
|
|
1517
|
+
function Ut(e) {
|
|
1518
|
+
return e = J(e), _.arr(e) ? e.map(Ut) : jr(e) ? be.createStringInterpolator({
|
|
1519
1519
|
range: [0, 1],
|
|
1520
1520
|
output: [e, e]
|
|
1521
1521
|
})(1) : e;
|
|
@@ -1549,7 +1549,7 @@ var Sc = {
|
|
|
1549
1549
|
this.velocity = 0, Object.assign(this, bn);
|
|
1550
1550
|
}
|
|
1551
1551
|
};
|
|
1552
|
-
function
|
|
1552
|
+
function kc(e, t, r) {
|
|
1553
1553
|
r && (r = { ...r }, Vi(r, t), t = { ...r, ...t }), Vi(e, t), Object.assign(e, t);
|
|
1554
1554
|
for (const s in bn)
|
|
1555
1555
|
e[s] == null && (e[s] = bn[s]);
|
|
@@ -1565,7 +1565,7 @@ function Vi(e, t) {
|
|
|
1565
1565
|
(r || !_.und(t.frequency) || !_.und(t.damping) || !_.und(t.mass)) && (e.duration = void 0, e.decay = void 0), r && (e.frequency = void 0);
|
|
1566
1566
|
}
|
|
1567
1567
|
}
|
|
1568
|
-
var $i = [],
|
|
1568
|
+
var $i = [], xc = class {
|
|
1569
1569
|
constructor() {
|
|
1570
1570
|
this.changed = !1, this.values = $i, this.toValues = null, this.fromValues = $i, this.config = new Oc(), this.immediate = !1;
|
|
1571
1571
|
}
|
|
@@ -1578,7 +1578,7 @@ function qo(e, { key: t, props: r, defaultProps: n, state: i, actions: o }) {
|
|
|
1578
1578
|
else {
|
|
1579
1579
|
_.und(r.pause) || (i.paused = Dt(r.pause, t));
|
|
1580
1580
|
let y = n == null ? void 0 : n.pause;
|
|
1581
|
-
y !== !0 && (y = i.paused || Dt(y, t)), u =
|
|
1581
|
+
y !== !0 && (y = i.paused || Dt(y, t)), u = Le(r.delay || 0, t), y ? (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();
|
|
@@ -1642,13 +1642,13 @@ function Ho(e, t, r, n) {
|
|
|
1642
1642
|
throw Bt(r), m.result = ye(n, !1), d(m), m;
|
|
1643
1643
|
p(b);
|
|
1644
1644
|
const S = _.obj(w) ? { ...w } : { ...v, to: w };
|
|
1645
|
-
S.parentId = i, Se(l, (N,
|
|
1646
|
-
_.und(S[
|
|
1645
|
+
S.parentId = i, Se(l, (N, k) => {
|
|
1646
|
+
_.und(S[k]) && (S[k] = N);
|
|
1647
1647
|
});
|
|
1648
|
-
const
|
|
1648
|
+
const x = await n.start(S);
|
|
1649
1649
|
return p(b), r.paused && await new Promise((N) => {
|
|
1650
1650
|
r.resumeQueue.add(N);
|
|
1651
|
-
}),
|
|
1651
|
+
}), x;
|
|
1652
1652
|
})();
|
|
1653
1653
|
};
|
|
1654
1654
|
let E;
|
|
@@ -1737,15 +1737,15 @@ var Fi = class extends Error {
|
|
|
1737
1737
|
}
|
|
1738
1738
|
/** Tell our children about our new priority */
|
|
1739
1739
|
_onPriorityChange(e) {
|
|
1740
|
-
this.idle ||
|
|
1740
|
+
this.idle || Tr.sort(this), Ft(this, {
|
|
1741
1741
|
type: "priority",
|
|
1742
1742
|
parent: this,
|
|
1743
1743
|
priority: e
|
|
1744
1744
|
});
|
|
1745
1745
|
}
|
|
1746
|
-
}, Ge = Symbol.for("SpringPhase"), Yo = 1, Go = 2, Ko = 4, nn = (e) => (e[Ge] & Yo) > 0, Te = (e) => (e[Ge] & Go) > 0,
|
|
1746
|
+
}, Ge = Symbol.for("SpringPhase"), Yo = 1, Go = 2, Ko = 4, nn = (e) => (e[Ge] & Yo) > 0, Te = (e) => (e[Ge] & Go) > 0, kt = (e) => (e[Ge] & Ko) > 0, zi = (e, t) => t ? e[Ge] |= Go | Yo : e[Ge] &= -3, Li = (e, t) => t ? e[Ge] |= Ko : e[Ge] &= -5, Pc = class extends ei {
|
|
1747
1747
|
constructor(e, t) {
|
|
1748
|
-
if (super(), this.animation = new
|
|
1748
|
+
if (super(), this.animation = new xc(), this.defaultProps = {}, this._state = {
|
|
1749
1749
|
paused: !1,
|
|
1750
1750
|
delayed: !1,
|
|
1751
1751
|
pauseQueue: /* @__PURE__ */ new Set(),
|
|
@@ -1758,7 +1758,7 @@ var Fi = class extends Error {
|
|
|
1758
1758
|
}
|
|
1759
1759
|
/** Equals true when not advancing on each frame. */
|
|
1760
1760
|
get idle() {
|
|
1761
|
-
return !(Te(this) || this._state.asyncTo) ||
|
|
1761
|
+
return !(Te(this) || this._state.asyncTo) || kt(this);
|
|
1762
1762
|
}
|
|
1763
1763
|
get goal() {
|
|
1764
1764
|
return J(this.animation.to);
|
|
@@ -1784,7 +1784,7 @@ var Fi = class extends Error {
|
|
|
1784
1784
|
* When true, all current and future animations are paused.
|
|
1785
1785
|
*/
|
|
1786
1786
|
get isPaused() {
|
|
1787
|
-
return
|
|
1787
|
+
return kt(this);
|
|
1788
1788
|
}
|
|
1789
1789
|
/**
|
|
1790
1790
|
*
|
|
@@ -1798,13 +1798,13 @@ var Fi = class extends Error {
|
|
|
1798
1798
|
let t = !0, r = !1;
|
|
1799
1799
|
const n = this.animation;
|
|
1800
1800
|
let { toValues: i } = n;
|
|
1801
|
-
const { config: o } = n, s =
|
|
1801
|
+
const { config: o } = n, s = Vr(n.to);
|
|
1802
1802
|
!s && ae(n.to) && (i = re(J(n.to))), n.values.forEach((l, f) => {
|
|
1803
1803
|
if (l.done)
|
|
1804
1804
|
return;
|
|
1805
1805
|
const d = (
|
|
1806
1806
|
// Animated strings always go from 0 to 1.
|
|
1807
|
-
l.constructor ==
|
|
1807
|
+
l.constructor == Lt ? 1 : s ? s[f].lastPosition : i[f]
|
|
1808
1808
|
);
|
|
1809
1809
|
let h = n.immediate, p = d;
|
|
1810
1810
|
if (!h) {
|
|
@@ -1822,11 +1822,11 @@ var Fi = class extends Error {
|
|
|
1822
1822
|
p = E + w / (1 - m) * (1 - S), h = Math.abs(l.lastPosition - p) <= b, v = w * S;
|
|
1823
1823
|
} else {
|
|
1824
1824
|
v = l.lastVelocity == null ? w : l.lastVelocity;
|
|
1825
|
-
const m = o.restVelocity || b / 10, S = o.clamp ? 0 : o.bounce,
|
|
1826
|
-
let
|
|
1825
|
+
const m = o.restVelocity || b / 10, S = o.clamp ? 0 : o.bounce, x = !_.und(S), N = E == d ? l.v0 > 0 : E < d;
|
|
1826
|
+
let k, I = !1;
|
|
1827
1827
|
const F = 1, le = Math.ceil(e / F);
|
|
1828
|
-
for (let H = 0; H < le && (
|
|
1829
|
-
|
|
1828
|
+
for (let H = 0; H < le && (k = Math.abs(v) > m, !(!k && (h = Math.abs(d - p) <= b, h))); ++H) {
|
|
1829
|
+
x && (I = p == d || p > d == N, I && (v = -v * S, p = d));
|
|
1830
1830
|
const fe = -o.tension * 1e-6 * (p - d), q = -o.friction * 1e-3 * v, de = (fe + q) / o.mass;
|
|
1831
1831
|
v = v + de * F, p = p + v * F;
|
|
1832
1832
|
}
|
|
@@ -1919,7 +1919,7 @@ var Fi = class extends Error {
|
|
|
1919
1919
|
n,
|
|
1920
1920
|
Jn(
|
|
1921
1921
|
e,
|
|
1922
|
-
(s, a) => /^on/.test(a) ?
|
|
1922
|
+
(s, a) => /^on/.test(a) ? Lo(s, r) : s
|
|
1923
1923
|
)
|
|
1924
1924
|
), Bi(this, e, "onProps"), Nt(this, "onProps", e, this);
|
|
1925
1925
|
const i = this._prepareNode(e);
|
|
@@ -1935,18 +1935,18 @@ var Fi = class extends Error {
|
|
|
1935
1935
|
state: o,
|
|
1936
1936
|
actions: {
|
|
1937
1937
|
pause: () => {
|
|
1938
|
-
|
|
1938
|
+
kt(this) || (Li(this, !0), Pt(o.pauseQueue), Nt(
|
|
1939
1939
|
this,
|
|
1940
1940
|
"onPause",
|
|
1941
|
-
ye(this,
|
|
1941
|
+
ye(this, xt(this, this.animation.to)),
|
|
1942
1942
|
this
|
|
1943
1943
|
));
|
|
1944
1944
|
},
|
|
1945
1945
|
resume: () => {
|
|
1946
|
-
|
|
1946
|
+
kt(this) && (Li(this, !1), Te(this) && this._resume(), Pt(o.resumeQueue), Nt(
|
|
1947
1947
|
this,
|
|
1948
1948
|
"onResume",
|
|
1949
|
-
ye(this,
|
|
1949
|
+
ye(this, xt(this, this.animation.to)),
|
|
1950
1950
|
this
|
|
1951
1951
|
));
|
|
1952
1952
|
},
|
|
@@ -1974,16 +1974,16 @@ var Fi = class extends Error {
|
|
|
1974
1974
|
const { key: o, defaultProps: s, animation: a } = this, { to: u, from: l } = a;
|
|
1975
1975
|
let { to: f = u, from: d = l } = e;
|
|
1976
1976
|
i && !n && (!t.default || _.und(f)) && (f = d), t.reverse && ([f, d] = [d, f]);
|
|
1977
|
-
const h = !
|
|
1977
|
+
const h = !ke(d, l);
|
|
1978
1978
|
h && (a.from = d), d = J(d);
|
|
1979
|
-
const p = !
|
|
1979
|
+
const p = !ke(f, u);
|
|
1980
1980
|
p && this._focus(f);
|
|
1981
1981
|
const y = vn(t.to), { config: E } = a, { decay: w, velocity: v } = E;
|
|
1982
|
-
(n || i) && (E.velocity = 0), t.config && !y &&
|
|
1982
|
+
(n || i) && (E.velocity = 0), t.config && !y && kc(
|
|
1983
1983
|
E,
|
|
1984
|
-
|
|
1984
|
+
Le(t.config, o),
|
|
1985
1985
|
// Avoid calling the same "config" prop twice.
|
|
1986
|
-
t.config !== s.config ?
|
|
1986
|
+
t.config !== s.config ? Le(s.config, o) : void 0
|
|
1987
1987
|
);
|
|
1988
1988
|
let b = we(this);
|
|
1989
1989
|
if (!b || _.und(f))
|
|
@@ -1993,12 +1993,12 @@ var Fi = class extends Error {
|
|
|
1993
1993
|
// except for declarative updates. When `reset` is defined, there
|
|
1994
1994
|
// must exist a value to animate from.
|
|
1995
1995
|
_.und(t.reset) ? i && !t.default : !_.und(d) && Dt(t.reset, o)
|
|
1996
|
-
), S = m ? d : this.get(),
|
|
1996
|
+
), S = m ? d : this.get(), x = Ut(f), N = _.num(x) || _.arr(x) || jr(x), k = !y && (!N || Dt(s.immediate || t.immediate, o));
|
|
1997
1997
|
if (p) {
|
|
1998
1998
|
const H = gn(f);
|
|
1999
1999
|
if (H !== b.constructor)
|
|
2000
|
-
if (
|
|
2001
|
-
b = this._set(
|
|
2000
|
+
if (k)
|
|
2001
|
+
b = this._set(x);
|
|
2002
2002
|
else
|
|
2003
2003
|
throw Error(
|
|
2004
2004
|
`Cannot animate between ${b.constructor.name} and ${H.name}, as the "to" prop suggests`
|
|
@@ -2008,15 +2008,15 @@ var Fi = class extends Error {
|
|
|
2008
2008
|
let F = ae(f), le = !1;
|
|
2009
2009
|
if (!F) {
|
|
2010
2010
|
const H = m || !nn(this) && h;
|
|
2011
|
-
(p || H) && (le =
|
|
2011
|
+
(p || H) && (le = ke(Ut(S), x), F = !le), (!ke(a.immediate, k) && !k || !ke(E.decay, w) || !ke(E.velocity, v)) && (F = !0);
|
|
2012
2012
|
}
|
|
2013
|
-
if (le && Te(this) && (a.changed && !m ? F = !0 : F || this._stop(u)), !y && ((F || ae(u)) && (a.values = b.getPayload(), a.toValues = ae(f) ? null : I ==
|
|
2013
|
+
if (le && Te(this) && (a.changed && !m ? F = !0 : F || this._stop(u)), !y && ((F || ae(u)) && (a.values = b.getPayload(), a.toValues = ae(f) ? null : I == Lt ? [1] : re(x)), a.immediate != k && (a.immediate = k, !k && !m && this._set(u)), F)) {
|
|
2014
2014
|
const { onRest: H } = a;
|
|
2015
2015
|
T(Rc, (q) => Bi(this, t, q));
|
|
2016
|
-
const fe = ye(this,
|
|
2016
|
+
const fe = ye(this, xt(this, u));
|
|
2017
2017
|
Pt(this._pendingCalls, fe), this._pendingCalls.add(r), a.changed && C.batchedUpdates(() => {
|
|
2018
2018
|
var q;
|
|
2019
|
-
a.changed = !m, H == null || H(fe, this), m ?
|
|
2019
|
+
a.changed = !m, H == null || H(fe, this), m ? Le(s.onRest, fe) : (q = a.onStart) == null || q.call(a, fe, this);
|
|
2020
2020
|
});
|
|
2021
2021
|
}
|
|
2022
2022
|
m && this._set(S), y ? r(Ho(t.to, t, this._state, this)) : F ? this._start() : Te(this) && !p ? this._pendingCalls.add(r) : r(Wo(S));
|
|
@@ -2043,7 +2043,7 @@ var Fi = class extends Error {
|
|
|
2043
2043
|
const r = J(e);
|
|
2044
2044
|
if (!_.und(r)) {
|
|
2045
2045
|
const n = we(this);
|
|
2046
|
-
if (!n || !
|
|
2046
|
+
if (!n || !ke(r, n.getValue())) {
|
|
2047
2047
|
const i = gn(r);
|
|
2048
2048
|
!n || n.constructor != i ? Xn(this, i.create(r)) : n.setValue(r), n && C.batchedUpdates(() => {
|
|
2049
2049
|
this._onChange(r, t);
|
|
@@ -2057,22 +2057,22 @@ var Fi = class extends Error {
|
|
|
2057
2057
|
e.changed || (e.changed = !0, Nt(
|
|
2058
2058
|
this,
|
|
2059
2059
|
"onStart",
|
|
2060
|
-
ye(this,
|
|
2060
|
+
ye(this, xt(this, e.to)),
|
|
2061
2061
|
this
|
|
2062
2062
|
));
|
|
2063
2063
|
}
|
|
2064
2064
|
_onChange(e, t) {
|
|
2065
|
-
t || (this._onStart(),
|
|
2065
|
+
t || (this._onStart(), Le(this.animation.onChange, e, this)), Le(this.defaultProps.onChange, e, this), super._onChange(e, t);
|
|
2066
2066
|
}
|
|
2067
2067
|
// This method resets the animation state (even if already animating) to
|
|
2068
2068
|
// ensure the latest from/to range is used, and it also ensures this spring
|
|
2069
2069
|
// is added to the frameloop.
|
|
2070
2070
|
_start() {
|
|
2071
2071
|
const e = this.animation;
|
|
2072
|
-
we(this).reset(J(e.to)), e.immediate || (e.fromValues = e.values.map((t) => t.lastPosition)), Te(this) || (zi(this, !0),
|
|
2072
|
+
we(this).reset(J(e.to)), e.immediate || (e.fromValues = e.values.map((t) => t.lastPosition)), Te(this) || (zi(this, !0), kt(this) || this._resume());
|
|
2073
2073
|
}
|
|
2074
2074
|
_resume() {
|
|
2075
|
-
be.skipAnimation ? this.finish() :
|
|
2075
|
+
be.skipAnimation ? this.finish() : Tr.start(this);
|
|
2076
2076
|
}
|
|
2077
2077
|
/**
|
|
2078
2078
|
* Exit the frameloop and notify `onRest` listeners.
|
|
@@ -2089,17 +2089,17 @@ var Fi = class extends Error {
|
|
|
2089
2089
|
type: "idle",
|
|
2090
2090
|
parent: this
|
|
2091
2091
|
});
|
|
2092
|
-
const n = t ? ct(this.get()) : ye(this.get(),
|
|
2092
|
+
const n = t ? ct(this.get()) : ye(this.get(), xt(this, e ?? r.to));
|
|
2093
2093
|
Pt(this._pendingCalls, n), r.changed && (r.changed = !1, Nt(this, "onRest", n, this));
|
|
2094
2094
|
}
|
|
2095
2095
|
}
|
|
2096
2096
|
};
|
|
2097
|
-
function
|
|
2098
|
-
const r =
|
|
2099
|
-
return
|
|
2097
|
+
function xt(e, t) {
|
|
2098
|
+
const r = Ut(t), n = Ut(e.get());
|
|
2099
|
+
return ke(n, r);
|
|
2100
2100
|
}
|
|
2101
2101
|
function Qo(e, t = e.loop, r = e.to) {
|
|
2102
|
-
const n =
|
|
2102
|
+
const n = Le(t);
|
|
2103
2103
|
if (n) {
|
|
2104
2104
|
const i = n !== !0 && Bo(n), o = (i || e).reverse, s = !i || i.reset;
|
|
2105
2105
|
return qt({
|
|
@@ -2124,13 +2124,13 @@ function Qo(e, t = e.loop, r = e.to) {
|
|
|
2124
2124
|
}
|
|
2125
2125
|
function qt(e) {
|
|
2126
2126
|
const { to: t, from: r } = e = Bo(e), n = /* @__PURE__ */ new Set();
|
|
2127
|
-
return _.obj(t) &&
|
|
2127
|
+
return _.obj(t) && Ui(t, n), _.obj(r) && Ui(r, n), e.keys = n.size ? Array.from(n) : null, e;
|
|
2128
2128
|
}
|
|
2129
2129
|
function Cc(e) {
|
|
2130
2130
|
const t = qt(e);
|
|
2131
2131
|
return _.und(t.default) && (t.default = Jn(t)), t;
|
|
2132
2132
|
}
|
|
2133
|
-
function
|
|
2133
|
+
function Ui(e, t) {
|
|
2134
2134
|
Se(e, (r, n) => r != null && t.add(n));
|
|
2135
2135
|
}
|
|
2136
2136
|
var Rc = [
|
|
@@ -2141,7 +2141,7 @@ var Rc = [
|
|
|
2141
2141
|
"onResume"
|
|
2142
2142
|
];
|
|
2143
2143
|
function Bi(e, t, r) {
|
|
2144
|
-
e.animation[r] = t[r] !==
|
|
2144
|
+
e.animation[r] = t[r] !== Uo(t, r) ? Lo(t[r], e.key) : void 0;
|
|
2145
2145
|
}
|
|
2146
2146
|
function Nt(e, t, ...r) {
|
|
2147
2147
|
var n, i, o, s;
|
|
@@ -2284,7 +2284,7 @@ async function Xo(e, t, r) {
|
|
|
2284
2284
|
t.pause === !d.paused ? (d.paused = t.pause, Pt(t.pause ? d.pauseQueue : d.resumeQueue)) : d.paused && (t.pause = !0);
|
|
2285
2285
|
const h = (n || Object.keys(e.springs)).map(
|
|
2286
2286
|
(E) => e.springs[E].start(t)
|
|
2287
|
-
), p = t.cancel === !0 ||
|
|
2287
|
+
), p = t.cancel === !0 || Uo(t, "cancel") === !0;
|
|
2288
2288
|
(f || p && d.asyncId) && h.push(
|
|
2289
2289
|
qo(++e._lastAsyncId, {
|
|
2290
2290
|
props: t,
|
|
@@ -2340,17 +2340,17 @@ function ts(e, t) {
|
|
|
2340
2340
|
es(e.springs, r, (n) => Zo(n, e));
|
|
2341
2341
|
});
|
|
2342
2342
|
}
|
|
2343
|
-
var
|
|
2343
|
+
var Fr = ({
|
|
2344
2344
|
children: e,
|
|
2345
2345
|
...t
|
|
2346
2346
|
}) => {
|
|
2347
|
-
const r = zn(
|
|
2347
|
+
const r = zn(_r), n = t.pause || !!r.pause, i = t.immediate || !!r.immediate;
|
|
2348
2348
|
t = ac(() => ({ pause: n, immediate: i }), [n, i]);
|
|
2349
|
-
const { Provider: o } =
|
|
2349
|
+
const { Provider: o } = _r;
|
|
2350
2350
|
return /* @__PURE__ */ Mn.createElement(o, { value: t }, e);
|
|
2351
|
-
},
|
|
2352
|
-
|
|
2353
|
-
|
|
2351
|
+
}, _r = Ic(Fr, {});
|
|
2352
|
+
Fr.Provider = _r.Provider;
|
|
2353
|
+
Fr.Consumer = _r.Consumer;
|
|
2354
2354
|
function Ic(e, t) {
|
|
2355
2355
|
return Object.assign(e, Mn.createContext(t)), e.Provider._context = e, e.Consumer._context = e, e;
|
|
2356
2356
|
}
|
|
@@ -2404,38 +2404,38 @@ var jc = () => {
|
|
|
2404
2404
|
function Vc(e, t, r) {
|
|
2405
2405
|
const n = _.fun(t) && t;
|
|
2406
2406
|
n && !r && (r = []);
|
|
2407
|
-
const i =
|
|
2407
|
+
const i = tr(
|
|
2408
2408
|
() => n || arguments.length == 3 ? jc() : void 0,
|
|
2409
2409
|
[]
|
|
2410
|
-
), o = Ee(0), s = $o(), a =
|
|
2410
|
+
), o = Ee(0), s = $o(), a = tr(
|
|
2411
2411
|
() => ({
|
|
2412
2412
|
ctrls: [],
|
|
2413
2413
|
queue: [],
|
|
2414
2414
|
flush(v, b) {
|
|
2415
2415
|
const m = qi(v, b);
|
|
2416
|
-
return o.current > 0 && !a.queue.length && !Object.keys(m).some((
|
|
2416
|
+
return o.current > 0 && !a.queue.length && !Object.keys(m).some((x) => !v.springs[x]) ? _n(v, b) : new Promise((x) => {
|
|
2417
2417
|
Jo(v, m), a.queue.push(() => {
|
|
2418
|
-
|
|
2418
|
+
x(_n(v, b));
|
|
2419
2419
|
}), s();
|
|
2420
2420
|
});
|
|
2421
2421
|
}
|
|
2422
2422
|
}),
|
|
2423
2423
|
[]
|
|
2424
2424
|
), u = Ee([...a.ctrls]), l = [], f = Ti(e) || 0;
|
|
2425
|
-
|
|
2425
|
+
tr(() => {
|
|
2426
2426
|
T(u.current.slice(e, f), (v) => {
|
|
2427
2427
|
_c(v, i), v.stop(!0);
|
|
2428
2428
|
}), u.current.length = e, d(f, e);
|
|
2429
|
-
}, [e]),
|
|
2429
|
+
}, [e]), tr(() => {
|
|
2430
2430
|
d(0, Math.min(f, e));
|
|
2431
2431
|
}, r);
|
|
2432
2432
|
function d(v, b) {
|
|
2433
2433
|
for (let m = v; m < b; m++) {
|
|
2434
|
-
const S = u.current[m] || (u.current[m] = new Dc(null, a.flush)),
|
|
2435
|
-
|
|
2434
|
+
const S = u.current[m] || (u.current[m] = new Dc(null, a.flush)), x = n ? n(m, S) : t[m];
|
|
2435
|
+
x && (l[m] = Cc(x));
|
|
2436
2436
|
}
|
|
2437
2437
|
}
|
|
2438
|
-
const h = u.current.map((v, b) => qi(v, l[b])), p = zn(
|
|
2438
|
+
const h = u.current.map((v, b) => qi(v, l[b])), p = zn(Fr), y = Ti(p), E = p !== y && wc(p);
|
|
2439
2439
|
Qn(() => {
|
|
2440
2440
|
o.current++, a.ctrls = u.current;
|
|
2441
2441
|
const { queue: v } = a;
|
|
@@ -2466,16 +2466,16 @@ var $c = class extends ei {
|
|
|
2466
2466
|
}
|
|
2467
2467
|
advance(e) {
|
|
2468
2468
|
const t = this._get(), r = this.get();
|
|
2469
|
-
|
|
2469
|
+
ke(t, r) || (we(this).setValue(t), this._onChange(t, this.idle)), !this.idle && Wi(this._active) && on(this);
|
|
2470
2470
|
}
|
|
2471
2471
|
_get() {
|
|
2472
2472
|
const e = _.arr(this.source) ? this.source.map(J) : re(J(this.source));
|
|
2473
2473
|
return this.calc(...e);
|
|
2474
2474
|
}
|
|
2475
2475
|
_start() {
|
|
2476
|
-
this.idle && !Wi(this._active) && (this.idle = !1, T(
|
|
2476
|
+
this.idle && !Wi(this._active) && (this.idle = !1, T(Vr(this), (e) => {
|
|
2477
2477
|
e.done = !1;
|
|
2478
|
-
}), be.skipAnimation ? (C.batchedUpdates(() => this.advance()), on(this)) :
|
|
2478
|
+
}), be.skipAnimation ? (C.batchedUpdates(() => this.advance()), on(this)) : Tr.start(this));
|
|
2479
2479
|
}
|
|
2480
2480
|
// Observe our sources only when we're observed.
|
|
2481
2481
|
_attach() {
|
|
@@ -2505,7 +2505,7 @@ function Wi(e) {
|
|
|
2505
2505
|
return !e.size || Array.from(e).every(Fc);
|
|
2506
2506
|
}
|
|
2507
2507
|
function on(e) {
|
|
2508
|
-
e.idle || (e.idle = !0, T(
|
|
2508
|
+
e.idle || (e.idle = !0, T(Vr(e), (t) => {
|
|
2509
2509
|
t.done = !0;
|
|
2510
2510
|
}), Ft(e, {
|
|
2511
2511
|
type: "idle",
|
|
@@ -2592,15 +2592,15 @@ var It = {
|
|
|
2592
2592
|
strokeMiterlimit: !0,
|
|
2593
2593
|
strokeOpacity: !0,
|
|
2594
2594
|
strokeWidth: !0
|
|
2595
|
-
},
|
|
2596
|
-
It = Object.keys(It).reduce((e, t) => (
|
|
2597
|
-
var Bc = /^(matrix|translate|scale|rotate|skew)/, qc = /^(translate)/, Wc = /^(rotate|skew)/, sn = (e, t) => _.num(e) && e !== 0 ? e + t : e,
|
|
2595
|
+
}, Lc = (e, t) => e + t.charAt(0).toUpperCase() + t.substring(1), Uc = ["Webkit", "Ms", "Moz", "O"];
|
|
2596
|
+
It = Object.keys(It).reduce((e, t) => (Uc.forEach((r) => e[Lc(r, t)] = e[t]), e), It);
|
|
2597
|
+
var Bc = /^(matrix|translate|scale|rotate|skew)/, qc = /^(translate)/, Wc = /^(rotate|skew)/, sn = (e, t) => _.num(e) && e !== 0 ? e + t : e, fr = (e, t) => _.arr(e) ? e.every((r) => fr(r, t)) : _.num(e) ? e === t : parseFloat(e) === t, Hc = class extends $r {
|
|
2598
2598
|
constructor({ x: e, y: t, z: r, ...n }) {
|
|
2599
2599
|
const i = [], o = [];
|
|
2600
2600
|
(e || t || r) && (i.push([e || 0, t || 0, r || 0]), o.push((s) => [
|
|
2601
2601
|
`translate3d(${s.map((a) => sn(a, "px")).join(",")})`,
|
|
2602
2602
|
// prettier-ignore
|
|
2603
|
-
|
|
2603
|
+
fr(s, 0)
|
|
2604
2604
|
])), Se(n, (s, a) => {
|
|
2605
2605
|
if (a === "transform")
|
|
2606
2606
|
i.push([s || ""]), o.push((u) => [u, u === ""]);
|
|
@@ -2611,10 +2611,10 @@ var Bc = /^(matrix|translate|scale|rotate|skew)/, qc = /^(translate)/, Wc = /^(r
|
|
|
2611
2611
|
i.push(re(s)), o.push(
|
|
2612
2612
|
a === "rotate3d" ? ([l, f, d, h]) => [
|
|
2613
2613
|
`rotate3d(${l},${f},${d},${sn(h, u)})`,
|
|
2614
|
-
|
|
2614
|
+
fr(h, 0)
|
|
2615
2615
|
] : (l) => [
|
|
2616
2616
|
`${a}(${l.map((f) => sn(f, u)).join(",")})`,
|
|
2617
|
-
|
|
2617
|
+
fr(l, a.startsWith("scale") ? 1 : 0)
|
|
2618
2618
|
]
|
|
2619
2619
|
);
|
|
2620
2620
|
}
|
|
@@ -2796,7 +2796,7 @@ var Bc = /^(matrix|translate|scale|rotate|skew)/, qc = /^(translate)/, Wc = /^(r
|
|
|
2796
2796
|
"tspan"
|
|
2797
2797
|
];
|
|
2798
2798
|
be.assign({
|
|
2799
|
-
batchedUpdates:
|
|
2799
|
+
batchedUpdates: xa,
|
|
2800
2800
|
createStringInterpolator: jo,
|
|
2801
2801
|
colors: $a
|
|
2802
2802
|
});
|
|
@@ -2807,7 +2807,7 @@ var Kc = mc(Gc, {
|
|
|
2807
2807
|
getComponentProps: ({ scrollTop: e, scrollLeft: t, ...r }) => r
|
|
2808
2808
|
}), is = Kc.animated;
|
|
2809
2809
|
function Qc(e) {
|
|
2810
|
-
const t = e.htmlElement ?? "div", [r, n] =
|
|
2810
|
+
const t = e.htmlElement ?? "div", [r, n] = gr(!1), i = Ee(null), o = Ee(null), [s, a] = gr(null), [u, l] = rs(() => ({
|
|
2811
2811
|
from: {
|
|
2812
2812
|
opacity: 0,
|
|
2813
2813
|
transform: "scale(0)"
|
|
@@ -2906,20 +2906,20 @@ var Jc = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
2906
2906
|
return Jc.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
2907
2907
|
}
|
|
2908
2908
|
/* Z+1 */
|
|
2909
|
-
), M = "-ms-", jt = "-moz-", V = "-webkit-", os = "comm",
|
|
2909
|
+
), M = "-ms-", jt = "-moz-", V = "-webkit-", os = "comm", Mr = "rule", ti = "decl", eu = "@import", ss = "@keyframes", tu = "@layer", as = Math.abs, ri = String.fromCharCode, En = Object.assign;
|
|
2910
2910
|
function ru(e, t) {
|
|
2911
2911
|
return W(e, 0) ^ 45 ? (((t << 2 ^ W(e, 0)) << 2 ^ W(e, 1)) << 2 ^ W(e, 2)) << 2 ^ W(e, 3) : 0;
|
|
2912
2912
|
}
|
|
2913
2913
|
function cs(e) {
|
|
2914
2914
|
return e.trim();
|
|
2915
2915
|
}
|
|
2916
|
-
function
|
|
2916
|
+
function xe(e, t) {
|
|
2917
2917
|
return (e = t.exec(e)) ? e[0] : e;
|
|
2918
2918
|
}
|
|
2919
2919
|
function R(e, t, r) {
|
|
2920
2920
|
return e.replace(t, r);
|
|
2921
2921
|
}
|
|
2922
|
-
function
|
|
2922
|
+
function dr(e, t, r) {
|
|
2923
2923
|
return e.indexOf(t, r);
|
|
2924
2924
|
}
|
|
2925
2925
|
function W(e, t) {
|
|
@@ -2942,15 +2942,15 @@ function nu(e, t) {
|
|
|
2942
2942
|
}
|
|
2943
2943
|
function Yi(e, t) {
|
|
2944
2944
|
return e.filter(function(r) {
|
|
2945
|
-
return !
|
|
2945
|
+
return !xe(r, t);
|
|
2946
2946
|
});
|
|
2947
2947
|
}
|
|
2948
|
-
var
|
|
2949
|
-
function
|
|
2950
|
-
return { value: e, root: t, parent: r, type: n, props: i, children: o, line:
|
|
2948
|
+
var zr = 1, ft = 1, ls = 0, ue = 0, B = 0, gt = "";
|
|
2949
|
+
function Lr(e, t, r, n, i, o, s, a) {
|
|
2950
|
+
return { value: e, root: t, parent: r, type: n, props: i, children: o, line: zr, column: ft, length: s, return: "", siblings: a };
|
|
2951
2951
|
}
|
|
2952
2952
|
function De(e, t) {
|
|
2953
|
-
return En(
|
|
2953
|
+
return En(Lr("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
2954
2954
|
}
|
|
2955
2955
|
function st(e) {
|
|
2956
2956
|
for (; e.root; )
|
|
@@ -2961,15 +2961,15 @@ function iu() {
|
|
|
2961
2961
|
return B;
|
|
2962
2962
|
}
|
|
2963
2963
|
function ou() {
|
|
2964
|
-
return B = ue > 0 ? W(gt, --ue) : 0, ft--, B === 10 && (ft = 1,
|
|
2964
|
+
return B = ue > 0 ? W(gt, --ue) : 0, ft--, B === 10 && (ft = 1, zr--), B;
|
|
2965
2965
|
}
|
|
2966
2966
|
function ve() {
|
|
2967
|
-
return B = ue < ls ? W(gt, ue++) : 0, ft++, B === 10 && (ft = 1,
|
|
2967
|
+
return B = ue < ls ? W(gt, ue++) : 0, ft++, B === 10 && (ft = 1, zr++), B;
|
|
2968
2968
|
}
|
|
2969
2969
|
function qe() {
|
|
2970
2970
|
return W(gt, ue);
|
|
2971
2971
|
}
|
|
2972
|
-
function
|
|
2972
|
+
function hr() {
|
|
2973
2973
|
return ue;
|
|
2974
2974
|
}
|
|
2975
2975
|
function Ur(e, t) {
|
|
@@ -3014,7 +3014,7 @@ function Sn(e) {
|
|
|
3014
3014
|
return 0;
|
|
3015
3015
|
}
|
|
3016
3016
|
function su(e) {
|
|
3017
|
-
return
|
|
3017
|
+
return zr = ft = 1, ls = _e(gt = e), ue = 0, [];
|
|
3018
3018
|
}
|
|
3019
3019
|
function au(e) {
|
|
3020
3020
|
return gt = "", e;
|
|
@@ -3030,7 +3030,7 @@ function cu(e) {
|
|
|
3030
3030
|
function uu(e, t) {
|
|
3031
3031
|
for (; --t && ve() && !(B < 48 || B > 102 || B > 57 && B < 65 || B > 70 && B < 97); )
|
|
3032
3032
|
;
|
|
3033
|
-
return Ur(e,
|
|
3033
|
+
return Ur(e, hr() + (t < 6 && qe() == 32 && ve() == 32));
|
|
3034
3034
|
}
|
|
3035
3035
|
function On(e) {
|
|
3036
3036
|
for (; ve(); )
|
|
@@ -3066,48 +3066,48 @@ function fu(e) {
|
|
|
3066
3066
|
return Ur(e, ue);
|
|
3067
3067
|
}
|
|
3068
3068
|
function du(e) {
|
|
3069
|
-
return au(
|
|
3069
|
+
return au(pr("", null, null, null, [""], e = su(e), 0, [0], e));
|
|
3070
3070
|
}
|
|
3071
|
-
function
|
|
3072
|
-
for (var l = 0, f = 0, d = s, h = 0, p = 0, y = 0, E = 1, w = 1, v = 1, b = 0, m = "", S = i,
|
|
3071
|
+
function pr(e, t, r, n, i, o, s, a, u) {
|
|
3072
|
+
for (var l = 0, f = 0, d = s, h = 0, p = 0, y = 0, E = 1, w = 1, v = 1, b = 0, m = "", S = i, x = o, N = n, k = m; w; )
|
|
3073
3073
|
switch (y = b, b = ve()) {
|
|
3074
3074
|
// (
|
|
3075
3075
|
case 40:
|
|
3076
|
-
if (y != 108 && W(
|
|
3077
|
-
|
|
3076
|
+
if (y != 108 && W(k, d - 1) == 58) {
|
|
3077
|
+
dr(k += R(an(b), "&", "&\f"), "&\f", as(l ? a[l - 1] : 0)) != -1 && (v = -1);
|
|
3078
3078
|
break;
|
|
3079
3079
|
}
|
|
3080
3080
|
// " ' [
|
|
3081
3081
|
case 34:
|
|
3082
3082
|
case 39:
|
|
3083
3083
|
case 91:
|
|
3084
|
-
|
|
3084
|
+
k += an(b);
|
|
3085
3085
|
break;
|
|
3086
3086
|
// \t \n \r \s
|
|
3087
3087
|
case 9:
|
|
3088
3088
|
case 10:
|
|
3089
3089
|
case 13:
|
|
3090
3090
|
case 32:
|
|
3091
|
-
|
|
3091
|
+
k += cu(y);
|
|
3092
3092
|
break;
|
|
3093
3093
|
// \
|
|
3094
3094
|
case 92:
|
|
3095
|
-
|
|
3095
|
+
k += uu(hr() - 1, 7);
|
|
3096
3096
|
continue;
|
|
3097
3097
|
// /
|
|
3098
3098
|
case 47:
|
|
3099
3099
|
switch (qe()) {
|
|
3100
3100
|
case 42:
|
|
3101
3101
|
case 47:
|
|
3102
|
-
Ct(hu(lu(ve(),
|
|
3102
|
+
Ct(hu(lu(ve(), hr()), t, r, u), u);
|
|
3103
3103
|
break;
|
|
3104
3104
|
default:
|
|
3105
|
-
|
|
3105
|
+
k += "/";
|
|
3106
3106
|
}
|
|
3107
3107
|
break;
|
|
3108
3108
|
// {
|
|
3109
3109
|
case 123 * E:
|
|
3110
|
-
a[l++] = _e(
|
|
3110
|
+
a[l++] = _e(k) * v;
|
|
3111
3111
|
// } ; \0
|
|
3112
3112
|
case 125 * E:
|
|
3113
3113
|
case 59:
|
|
@@ -3119,34 +3119,34 @@ function hr(e, t, r, n, i, o, s, a, u) {
|
|
|
3119
3119
|
w = 0;
|
|
3120
3120
|
// ;
|
|
3121
3121
|
case 59 + f:
|
|
3122
|
-
v == -1 && (
|
|
3122
|
+
v == -1 && (k = R(k, /\f/g, "")), p > 0 && _e(k) - d && Ct(p > 32 ? Ki(k + ";", n, r, d - 1, u) : Ki(R(k, " ", "") + ";", n, r, d - 2, u), u);
|
|
3123
3123
|
break;
|
|
3124
3124
|
// @ ;
|
|
3125
3125
|
case 59:
|
|
3126
|
-
|
|
3126
|
+
k += ";";
|
|
3127
3127
|
// { rule/at-rule
|
|
3128
3128
|
default:
|
|
3129
|
-
if (Ct(N = Gi(
|
|
3129
|
+
if (Ct(N = Gi(k, t, r, l, f, i, a, m, S = [], x = [], d, o), o), b === 123)
|
|
3130
3130
|
if (f === 0)
|
|
3131
|
-
|
|
3131
|
+
pr(k, t, N, N, S, o, d, a, x);
|
|
3132
3132
|
else
|
|
3133
|
-
switch (h === 99 && W(
|
|
3133
|
+
switch (h === 99 && W(k, 3) === 110 ? 100 : h) {
|
|
3134
3134
|
// d l m s
|
|
3135
3135
|
case 100:
|
|
3136
3136
|
case 108:
|
|
3137
3137
|
case 109:
|
|
3138
3138
|
case 115:
|
|
3139
|
-
|
|
3139
|
+
pr(e, N, N, n && Ct(Gi(e, N, N, 0, 0, i, a, m, i, S = [], d, x), x), i, x, d, a, n ? S : x);
|
|
3140
3140
|
break;
|
|
3141
3141
|
default:
|
|
3142
|
-
|
|
3142
|
+
pr(k, N, N, N, [""], x, 0, a, x);
|
|
3143
3143
|
}
|
|
3144
3144
|
}
|
|
3145
|
-
l = f = p = 0, E = v = 1, m =
|
|
3145
|
+
l = f = p = 0, E = v = 1, m = k = "", d = s;
|
|
3146
3146
|
break;
|
|
3147
3147
|
// :
|
|
3148
3148
|
case 58:
|
|
3149
|
-
d = 1 + _e(
|
|
3149
|
+
d = 1 + _e(k), p = y;
|
|
3150
3150
|
default:
|
|
3151
3151
|
if (E < 1) {
|
|
3152
3152
|
if (b == 123)
|
|
@@ -3154,22 +3154,22 @@ function hr(e, t, r, n, i, o, s, a, u) {
|
|
|
3154
3154
|
else if (b == 125 && E++ == 0 && ou() == 125)
|
|
3155
3155
|
continue;
|
|
3156
3156
|
}
|
|
3157
|
-
switch (
|
|
3157
|
+
switch (k += ri(b), b * E) {
|
|
3158
3158
|
// &
|
|
3159
3159
|
case 38:
|
|
3160
|
-
v = f > 0 ? 1 : (
|
|
3160
|
+
v = f > 0 ? 1 : (k += "\f", -1);
|
|
3161
3161
|
break;
|
|
3162
3162
|
// ,
|
|
3163
3163
|
case 44:
|
|
3164
|
-
a[l++] = (_e(
|
|
3164
|
+
a[l++] = (_e(k) - 1) * v, v = 1;
|
|
3165
3165
|
break;
|
|
3166
3166
|
// @
|
|
3167
3167
|
case 64:
|
|
3168
|
-
qe() === 45 && (
|
|
3168
|
+
qe() === 45 && (k += an(ve())), h = qe(), f = d = _e(m = k += fu(hr())), b++;
|
|
3169
3169
|
break;
|
|
3170
3170
|
// -
|
|
3171
3171
|
case 45:
|
|
3172
|
-
y === 45 && _e(
|
|
3172
|
+
y === 45 && _e(k) == 2 && (E = 0);
|
|
3173
3173
|
}
|
|
3174
3174
|
}
|
|
3175
3175
|
return o;
|
|
@@ -3178,13 +3178,13 @@ function Gi(e, t, r, n, i, o, s, a, u, l, f, d) {
|
|
|
3178
3178
|
for (var h = i - 1, p = i === 0 ? o : [""], y = us(p), E = 0, w = 0, v = 0; E < n; ++E)
|
|
3179
3179
|
for (var b = 0, m = lt(e, h + 1, h = as(w = s[E])), S = e; b < y; ++b)
|
|
3180
3180
|
(S = cs(w > 0 ? p[b] + " " + m : R(m, /&\f/g, p[b]))) && (u[v++] = S);
|
|
3181
|
-
return
|
|
3181
|
+
return Lr(e, t, r, i === 0 ? Mr : a, u, l, f, d);
|
|
3182
3182
|
}
|
|
3183
3183
|
function hu(e, t, r, n) {
|
|
3184
|
-
return
|
|
3184
|
+
return Lr(e, t, r, os, ri(iu()), lt(e, 2, -2), 0, n);
|
|
3185
3185
|
}
|
|
3186
3186
|
function Ki(e, t, r, n, i) {
|
|
3187
|
-
return
|
|
3187
|
+
return Lr(e, t, r, ti, lt(e, 0, n), lt(e, n + 1, -1), n, i);
|
|
3188
3188
|
}
|
|
3189
3189
|
function fs(e, t, r) {
|
|
3190
3190
|
switch (ru(e, t)) {
|
|
@@ -3257,7 +3257,7 @@ function fs(e, t, r) {
|
|
|
3257
3257
|
return V + e + R(e, /(\w+).+(:[^]+)/, V + "box-$1$2" + M + "flex-$1$2") + e;
|
|
3258
3258
|
// align-self
|
|
3259
3259
|
case 5443:
|
|
3260
|
-
return V + e + M + "flex-item-" + R(e, /flex-|-self/g, "") + (
|
|
3260
|
+
return V + e + M + "flex-item-" + R(e, /flex-|-self/g, "") + (xe(e, /flex-|baseline/) ? "" : M + "grid-row-" + R(e, /flex-|-self/g, "")) + e;
|
|
3261
3261
|
// align-content
|
|
3262
3262
|
case 4675:
|
|
3263
3263
|
return V + e + M + "flex-line-pack" + R(e, /align-content|flex-|-self/g, "") + e;
|
|
@@ -3285,7 +3285,7 @@ function fs(e, t, r) {
|
|
|
3285
3285
|
return R(R(e, /(.+:)(flex-)?(.*)/, V + "box-pack:$3" + M + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + V + e + e;
|
|
3286
3286
|
// justify-self
|
|
3287
3287
|
case 4200:
|
|
3288
|
-
if (!
|
|
3288
|
+
if (!xe(e, /flex-|baseline/)) return M + "grid-column-align" + lt(e, t) + e;
|
|
3289
3289
|
break;
|
|
3290
3290
|
// grid-template-(columns|rows)
|
|
3291
3291
|
case 2592:
|
|
@@ -3295,13 +3295,13 @@ function fs(e, t, r) {
|
|
|
3295
3295
|
case 4384:
|
|
3296
3296
|
case 3616:
|
|
3297
3297
|
return r && r.some(function(n, i) {
|
|
3298
|
-
return t = i,
|
|
3299
|
-
}) ? ~
|
|
3298
|
+
return t = i, xe(n.props, /grid-\w+-end/);
|
|
3299
|
+
}) ? ~dr(e + (r = r[t].value), "span", 0) ? e : M + R(e, "-start", "") + e + M + "grid-row-span:" + (~dr(r, "span", 0) ? xe(r, /\d+/) : +xe(r, /\d+/) - +xe(e, /\d+/)) + ";" : M + R(e, "-start", "") + e;
|
|
3300
3300
|
// grid-(row|column)-end
|
|
3301
3301
|
case 4896:
|
|
3302
3302
|
case 4128:
|
|
3303
3303
|
return r && r.some(function(n) {
|
|
3304
|
-
return
|
|
3304
|
+
return xe(n.props, /grid-\w+-start/);
|
|
3305
3305
|
}) ? e : M + R(R(e, "-end", "-span"), "span ", "") + e;
|
|
3306
3306
|
// (margin|padding)-inline-(start|end)
|
|
3307
3307
|
case 4095:
|
|
@@ -3333,7 +3333,7 @@ function fs(e, t, r) {
|
|
|
3333
3333
|
return R(e, /(.+:)(.+)-([^]+)/, "$1" + V + "$2-$3$1" + jt + (W(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
3334
3334
|
// (s)tretch
|
|
3335
3335
|
case 115:
|
|
3336
|
-
return ~
|
|
3336
|
+
return ~dr(e, "stretch", 0) ? fs(R(e, "stretch", "fill-available"), t, r) + e : e;
|
|
3337
3337
|
}
|
|
3338
3338
|
break;
|
|
3339
3339
|
// grid-(column|row)
|
|
@@ -3368,7 +3368,7 @@ function fs(e, t, r) {
|
|
|
3368
3368
|
}
|
|
3369
3369
|
return e;
|
|
3370
3370
|
}
|
|
3371
|
-
function
|
|
3371
|
+
function Er(e, t) {
|
|
3372
3372
|
for (var r = "", n = 0; n < e.length; n++)
|
|
3373
3373
|
r += t(e[n], n, e, t) || "";
|
|
3374
3374
|
return r;
|
|
@@ -3383,11 +3383,11 @@ function pu(e, t, r, n) {
|
|
|
3383
3383
|
case os:
|
|
3384
3384
|
return "";
|
|
3385
3385
|
case ss:
|
|
3386
|
-
return e.return = e.value + "{" +
|
|
3387
|
-
case
|
|
3386
|
+
return e.return = e.value + "{" + Er(e.children, n) + "}";
|
|
3387
|
+
case Mr:
|
|
3388
3388
|
if (!_e(e.value = e.props.join(","))) return "";
|
|
3389
3389
|
}
|
|
3390
|
-
return _e(r =
|
|
3390
|
+
return _e(r = Er(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
3391
3391
|
}
|
|
3392
3392
|
function mu(e) {
|
|
3393
3393
|
var t = us(e);
|
|
@@ -3409,11 +3409,11 @@ function gu(e, t, r, n) {
|
|
|
3409
3409
|
e.return = fs(e.value, e.length, r);
|
|
3410
3410
|
return;
|
|
3411
3411
|
case ss:
|
|
3412
|
-
return
|
|
3413
|
-
case
|
|
3412
|
+
return Er([De(e, { value: R(e.value, "@", "@" + V) })], n);
|
|
3413
|
+
case Mr:
|
|
3414
3414
|
if (e.length)
|
|
3415
3415
|
return nu(r = e.props, function(i) {
|
|
3416
|
-
switch (
|
|
3416
|
+
switch (xe(i, n = /(::plac\w+|:read-\w+)/)) {
|
|
3417
3417
|
// :read-(only|write)
|
|
3418
3418
|
case ":read-only":
|
|
3419
3419
|
case ":read-write":
|
|
@@ -3476,8 +3476,8 @@ var vu = {
|
|
|
3476
3476
|
strokeMiterlimit: 1,
|
|
3477
3477
|
strokeOpacity: 1,
|
|
3478
3478
|
strokeWidth: 1
|
|
3479
|
-
}, Qe = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", ds = "active", hs = "data-styled-version",
|
|
3480
|
-
`,
|
|
3479
|
+
}, Qe = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", ds = "active", hs = "data-styled-version", Br = "6.1.16", ni = `/*!sc*/
|
|
3480
|
+
`, Sr = typeof window < "u" && "HTMLElement" in window, bu = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Qi = /invalid hook call/i, ir = /* @__PURE__ */ new Set(), wu = function(e, t) {
|
|
3481
3481
|
if (process.env.NODE_ENV !== "production") {
|
|
3482
3482
|
var r = t ? ' with the id of "'.concat(t, '"') : "", n = "The component ".concat(e).concat(r, ` has been created dynamically.
|
|
3483
3483
|
`) + `You may see this warning because you've called styled inside another component.
|
|
@@ -3486,38 +3486,38 @@ To resolve this only create new StyledComponents outside of any render method an
|
|
|
3486
3486
|
var o = !0;
|
|
3487
3487
|
console.error = function(s) {
|
|
3488
3488
|
for (var a = [], u = 1; u < arguments.length; u++) a[u - 1] = arguments[u];
|
|
3489
|
-
Qi.test(s) ? (o = !1,
|
|
3490
|
-
}, Ee(), o && !
|
|
3489
|
+
Qi.test(s) ? (o = !1, ir.delete(n)) : i.apply(void 0, Ke([s], a, !1));
|
|
3490
|
+
}, Ee(), o && !ir.has(n) && (console.warn(n), ir.add(n));
|
|
3491
3491
|
} catch (s) {
|
|
3492
|
-
Qi.test(s.message) &&
|
|
3492
|
+
Qi.test(s.message) && ir.delete(n);
|
|
3493
3493
|
} finally {
|
|
3494
3494
|
console.error = i;
|
|
3495
3495
|
}
|
|
3496
3496
|
}
|
|
3497
|
-
},
|
|
3497
|
+
}, qr = Object.freeze([]), dt = Object.freeze({});
|
|
3498
3498
|
function _u(e, t, r) {
|
|
3499
3499
|
return r === void 0 && (r = dt), e.theme !== r.theme && e.theme || t || r.theme;
|
|
3500
3500
|
}
|
|
3501
|
-
var
|
|
3501
|
+
var kn = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Eu = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Su = /(^-|-$)/g;
|
|
3502
3502
|
function Xi(e) {
|
|
3503
3503
|
return e.replace(Eu, "-").replace(Su, "");
|
|
3504
3504
|
}
|
|
3505
|
-
var Ou = /(a)(d)/gi,
|
|
3505
|
+
var Ou = /(a)(d)/gi, or = 52, Ji = function(e) {
|
|
3506
3506
|
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
3507
3507
|
};
|
|
3508
|
-
function
|
|
3508
|
+
function xn(e) {
|
|
3509
3509
|
var t, r = "";
|
|
3510
|
-
for (t = Math.abs(e); t >
|
|
3511
|
-
return (Ji(t %
|
|
3510
|
+
for (t = Math.abs(e); t > or; t = t / or | 0) r = Ji(t % or) + r;
|
|
3511
|
+
return (Ji(t % or) + r).replace(Ou, "$1-$2");
|
|
3512
3512
|
}
|
|
3513
|
-
var cn, ps = 5381,
|
|
3513
|
+
var cn, ps = 5381, Ue = function(e, t) {
|
|
3514
3514
|
for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
|
|
3515
3515
|
return e;
|
|
3516
3516
|
}, ms = function(e) {
|
|
3517
|
-
return
|
|
3517
|
+
return Ue(ps, e);
|
|
3518
3518
|
};
|
|
3519
3519
|
function ys(e) {
|
|
3520
|
-
return
|
|
3520
|
+
return xn(ms(e) >>> 0);
|
|
3521
3521
|
}
|
|
3522
3522
|
function gs(e) {
|
|
3523
3523
|
return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
@@ -3525,9 +3525,9 @@ function gs(e) {
|
|
|
3525
3525
|
function un(e) {
|
|
3526
3526
|
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
3527
3527
|
}
|
|
3528
|
-
var vs = typeof Symbol == "function" && Symbol.for, bs = vs ? Symbol.for("react.memo") : 60115,
|
|
3528
|
+
var vs = typeof Symbol == "function" && Symbol.for, bs = vs ? Symbol.for("react.memo") : 60115, ku = vs ? Symbol.for("react.forward_ref") : 60112, xu = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Nu = { 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 }, Pu = ((cn = {})[ku] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, cn[bs] = ws, cn);
|
|
3529
3529
|
function Zi(e) {
|
|
3530
|
-
return ("type" in (t = e) && t.type.$$typeof) === bs ? ws : "$$typeof" in e ? Pu[e.$$typeof] :
|
|
3530
|
+
return ("type" in (t = e) && t.type.$$typeof) === bs ? ws : "$$typeof" in e ? Pu[e.$$typeof] : xu;
|
|
3531
3531
|
var t;
|
|
3532
3532
|
}
|
|
3533
3533
|
var Cu = Object.defineProperty, Ru = Object.getOwnPropertyNames, eo = Object.getOwnPropertySymbols, Au = Object.getOwnPropertyDescriptor, Tu = Object.getPrototypeOf, to = Object.prototype;
|
|
@@ -3657,17 +3657,17 @@ var ju = function() {
|
|
|
3657
3657
|
for (var n = this.groupSizes[t], i = this.indexOfGroup(t), o = i + n, s = i; s < o; s++) r += "".concat(this.tag.getRule(s)).concat(ni);
|
|
3658
3658
|
return r;
|
|
3659
3659
|
}, e;
|
|
3660
|
-
}(), Vu = 1 << 30,
|
|
3661
|
-
if (
|
|
3662
|
-
for (;
|
|
3663
|
-
var t =
|
|
3660
|
+
}(), Vu = 1 << 30, mr = /* @__PURE__ */ new Map(), Or = /* @__PURE__ */ new Map(), yr = 1, sr = function(e) {
|
|
3661
|
+
if (mr.has(e)) return mr.get(e);
|
|
3662
|
+
for (; Or.has(yr); ) yr++;
|
|
3663
|
+
var t = yr++;
|
|
3664
3664
|
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > Vu)) throw vt(16, "".concat(t));
|
|
3665
|
-
return
|
|
3665
|
+
return mr.set(e, t), Or.set(t, e), t;
|
|
3666
3666
|
}, $u = function(e, t) {
|
|
3667
|
-
|
|
3668
|
-
}, Fu = "style[".concat(Qe, "][").concat(hs, '="').concat(
|
|
3667
|
+
yr = t + 1, mr.set(e, t), Or.set(t, e);
|
|
3668
|
+
}, Fu = "style[".concat(Qe, "][").concat(hs, '="').concat(Br, '"]'), Mu = new RegExp("^".concat(Qe, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), zu = function(e, t, r) {
|
|
3669
3669
|
for (var n, i = r.split(","), o = 0, s = i.length; o < s; o++) (n = i[o]) && e.registerName(t, n);
|
|
3670
|
-
},
|
|
3670
|
+
}, Lu = function(e, t) {
|
|
3671
3671
|
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(ni), i = [], o = 0, s = n.length; o < s; o++) {
|
|
3672
3672
|
var a = n[o].trim();
|
|
3673
3673
|
if (a) {
|
|
@@ -3681,10 +3681,10 @@ var ju = function() {
|
|
|
3681
3681
|
}, ro = function(e) {
|
|
3682
3682
|
for (var t = document.querySelectorAll(Fu), r = 0, n = t.length; r < n; r++) {
|
|
3683
3683
|
var i = t[r];
|
|
3684
|
-
i && i.getAttribute(Qe) !== ds && (
|
|
3684
|
+
i && i.getAttribute(Qe) !== ds && (Lu(e, i), i.parentNode && i.parentNode.removeChild(i));
|
|
3685
3685
|
}
|
|
3686
3686
|
};
|
|
3687
|
-
function
|
|
3687
|
+
function Uu() {
|
|
3688
3688
|
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
3689
3689
|
}
|
|
3690
3690
|
var Es = function(e) {
|
|
@@ -3692,8 +3692,8 @@ var Es = function(e) {
|
|
|
3692
3692
|
var u = Array.from(a.querySelectorAll("style[".concat(Qe, "]")));
|
|
3693
3693
|
return u[u.length - 1];
|
|
3694
3694
|
}(r), o = i !== void 0 ? i.nextSibling : null;
|
|
3695
|
-
n.setAttribute(Qe, ds), n.setAttribute(hs,
|
|
3696
|
-
var s =
|
|
3695
|
+
n.setAttribute(Qe, ds), n.setAttribute(hs, Br);
|
|
3696
|
+
var s = Uu();
|
|
3697
3697
|
return s && n.setAttribute("nonce", s), r.insertBefore(n, o), n;
|
|
3698
3698
|
}, Bu = function() {
|
|
3699
3699
|
function e(t) {
|
|
@@ -3744,15 +3744,15 @@ var Es = function(e) {
|
|
|
3744
3744
|
}, e.prototype.getRule = function(t) {
|
|
3745
3745
|
return t < this.length ? this.rules[t] : "";
|
|
3746
3746
|
}, e;
|
|
3747
|
-
}(), no =
|
|
3747
|
+
}(), no = Sr, Hu = { isServer: !Sr, useCSSOMInjection: !bu }, Ss = function() {
|
|
3748
3748
|
function e(t, r, n) {
|
|
3749
3749
|
t === void 0 && (t = dt), r === void 0 && (r = {});
|
|
3750
3750
|
var i = this;
|
|
3751
|
-
this.options = ee(ee({}, Hu), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server &&
|
|
3751
|
+
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
3752
|
return function(o) {
|
|
3753
3753
|
for (var s = o.getTag(), a = s.length, u = "", l = function(d) {
|
|
3754
3754
|
var h = function(v) {
|
|
3755
|
-
return
|
|
3755
|
+
return Or.get(v);
|
|
3756
3756
|
}(d);
|
|
3757
3757
|
if (h === void 0) return "continue";
|
|
3758
3758
|
var p = o.names.get(h), y = s.getGroup(d);
|
|
@@ -3767,9 +3767,9 @@ var Es = function(e) {
|
|
|
3767
3767
|
});
|
|
3768
3768
|
}
|
|
3769
3769
|
return e.registerId = function(t) {
|
|
3770
|
-
return
|
|
3770
|
+
return sr(t);
|
|
3771
3771
|
}, e.prototype.rehydrate = function() {
|
|
3772
|
-
!this.server &&
|
|
3772
|
+
!this.server && Sr && ro(this);
|
|
3773
3773
|
}, e.prototype.reconstructWithOptions = function(t, r) {
|
|
3774
3774
|
return r === void 0 && (r = !0), new e(ee(ee({}, this.options), t), this.gs, r && this.names || void 0);
|
|
3775
3775
|
}, e.prototype.allocateGSInstance = function(t) {
|
|
@@ -3783,17 +3783,17 @@ var Es = function(e) {
|
|
|
3783
3783
|
}, e.prototype.hasNameForId = function(t, r) {
|
|
3784
3784
|
return this.names.has(t) && this.names.get(t).has(r);
|
|
3785
3785
|
}, e.prototype.registerName = function(t, r) {
|
|
3786
|
-
if (
|
|
3786
|
+
if (sr(t), this.names.has(t)) this.names.get(t).add(r);
|
|
3787
3787
|
else {
|
|
3788
3788
|
var n = /* @__PURE__ */ new Set();
|
|
3789
3789
|
n.add(r), this.names.set(t, n);
|
|
3790
3790
|
}
|
|
3791
3791
|
}, e.prototype.insertRules = function(t, r, n) {
|
|
3792
|
-
this.registerName(t, r), this.getTag().insertRules(
|
|
3792
|
+
this.registerName(t, r), this.getTag().insertRules(sr(t), n);
|
|
3793
3793
|
}, e.prototype.clearNames = function(t) {
|
|
3794
3794
|
this.names.has(t) && this.names.get(t).clear();
|
|
3795
3795
|
}, e.prototype.clearRules = function(t) {
|
|
3796
|
-
this.getTag().clearGroup(
|
|
3796
|
+
this.getTag().clearGroup(sr(t)), this.clearNames(t);
|
|
3797
3797
|
}, e.prototype.clearTag = function() {
|
|
3798
3798
|
this.tag = void 0;
|
|
3799
3799
|
}, e;
|
|
@@ -3806,30 +3806,30 @@ function Os(e, t) {
|
|
|
3806
3806
|
});
|
|
3807
3807
|
}
|
|
3808
3808
|
function Ku(e) {
|
|
3809
|
-
var t, r, n, i = dt, o = i.options, s = o === void 0 ? dt : o, a = i.plugins, u = a === void 0 ?
|
|
3809
|
+
var t, r, n, i = dt, o = i.options, s = o === void 0 ? dt : o, a = i.plugins, u = a === void 0 ? qr : a, l = function(h, p, y) {
|
|
3810
3810
|
return y.startsWith(r) && y.endsWith(r) && y.replaceAll(r, "").length > 0 ? ".".concat(t) : h;
|
|
3811
3811
|
}, f = u.slice();
|
|
3812
3812
|
f.push(function(h) {
|
|
3813
|
-
h.type ===
|
|
3813
|
+
h.type === Mr && h.value.includes("&") && (h.props[0] = h.props[0].replace(Yu, r).replace(n, l));
|
|
3814
3814
|
}), s.prefix && f.push(gu), f.push(pu);
|
|
3815
3815
|
var d = function(h, p, y, E) {
|
|
3816
3816
|
p === void 0 && (p = ""), y === void 0 && (y = ""), E === void 0 && (E = "&"), t = E, r = p, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
3817
3817
|
var w = h.replace(Gu, ""), v = du(y || p ? "".concat(y, " ").concat(p, " { ").concat(w, " }") : w);
|
|
3818
3818
|
s.namespace && (v = Os(v, s.namespace));
|
|
3819
3819
|
var b = [];
|
|
3820
|
-
return
|
|
3820
|
+
return Er(v, mu(f.concat(yu(function(m) {
|
|
3821
3821
|
return b.push(m);
|
|
3822
3822
|
})))), b;
|
|
3823
3823
|
};
|
|
3824
3824
|
return d.hash = u.length ? u.reduce(function(h, p) {
|
|
3825
|
-
return p.name || vt(15),
|
|
3825
|
+
return p.name || vt(15), Ue(h, p.name);
|
|
3826
3826
|
}, ps).toString() : "", d;
|
|
3827
3827
|
}
|
|
3828
|
-
var Qu = new Ss(), Cn = Ku(),
|
|
3829
|
-
|
|
3828
|
+
var Qu = new Ss(), Cn = Ku(), ks = te.createContext({ shouldForwardProp: void 0, styleSheet: Qu, stylis: Cn });
|
|
3829
|
+
ks.Consumer;
|
|
3830
3830
|
te.createContext(void 0);
|
|
3831
3831
|
function io() {
|
|
3832
|
-
return zn(
|
|
3832
|
+
return zn(ks);
|
|
3833
3833
|
}
|
|
3834
3834
|
var Rn = function() {
|
|
3835
3835
|
function e(t, r) {
|
|
@@ -3856,18 +3856,18 @@ function oo(e) {
|
|
|
3856
3856
|
}
|
|
3857
3857
|
return t.startsWith("ms-") ? "-" + t : t;
|
|
3858
3858
|
}
|
|
3859
|
-
var
|
|
3859
|
+
var xs = function(e) {
|
|
3860
3860
|
return e == null || e === !1 || e === "";
|
|
3861
3861
|
}, Ns = function(e) {
|
|
3862
3862
|
var t, r, n = [];
|
|
3863
3863
|
for (var i in e) {
|
|
3864
3864
|
var o = e[i];
|
|
3865
|
-
e.hasOwnProperty(i) && !
|
|
3865
|
+
e.hasOwnProperty(i) && !xs(o) && (Array.isArray(o) && o.isCss || ht(o) ? n.push("".concat(oo(i), ":"), o, ";") : pt(o) ? n.push.apply(n, Ke(Ke(["".concat(i, " {")], Ns(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
3866
|
}
|
|
3867
3867
|
return n;
|
|
3868
3868
|
};
|
|
3869
3869
|
function We(e, t, r, n) {
|
|
3870
|
-
if (
|
|
3870
|
+
if (xs(e)) return [];
|
|
3871
3871
|
if (ii(e)) return [".".concat(e.styledComponentId)];
|
|
3872
3872
|
if (ht(e)) {
|
|
3873
3873
|
if (!ht(o = e) || o.prototype && o.prototype.isReactComponent || !t) return [e];
|
|
@@ -3875,7 +3875,7 @@ function We(e, t, r, n) {
|
|
|
3875
3875
|
return process.env.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof Rn || pt(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.")), We(i, t, r, n);
|
|
3876
3876
|
}
|
|
3877
3877
|
var o;
|
|
3878
|
-
return e instanceof Rn ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : pt(e) ? Ns(e) : Array.isArray(e) ? Array.prototype.concat.apply(
|
|
3878
|
+
return e instanceof Rn ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : pt(e) ? Ns(e) : Array.isArray(e) ? Array.prototype.concat.apply(qr, e.map(function(s) {
|
|
3879
3879
|
return We(s, t, r, n);
|
|
3880
3880
|
})) : [e.toString()];
|
|
3881
3881
|
}
|
|
@@ -3886,15 +3886,15 @@ function Ju(e) {
|
|
|
3886
3886
|
}
|
|
3887
3887
|
return !0;
|
|
3888
3888
|
}
|
|
3889
|
-
var Zu = ms(
|
|
3889
|
+
var Zu = ms(Br), el = function() {
|
|
3890
3890
|
function e(t, r, n) {
|
|
3891
|
-
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && Ju(t), this.componentId = r, this.baseHash =
|
|
3891
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && Ju(t), this.componentId = r, this.baseHash = Ue(Zu, r), this.baseStyle = n, Ss.registerId(r);
|
|
3892
3892
|
}
|
|
3893
3893
|
return e.prototype.generateAndInjectStyles = function(t, r, n) {
|
|
3894
3894
|
var i = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
|
|
3895
3895
|
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) i = Be(i, this.staticRulesId);
|
|
3896
3896
|
else {
|
|
3897
|
-
var o = Nn(We(this.rules, t, r, n)), s =
|
|
3897
|
+
var o = Nn(We(this.rules, t, r, n)), s = xn(Ue(this.baseHash, o) >>> 0);
|
|
3898
3898
|
if (!r.hasNameForId(this.componentId, s)) {
|
|
3899
3899
|
var a = n(o, ".".concat(s), void 0, this.componentId);
|
|
3900
3900
|
r.insertRules(this.componentId, s, a);
|
|
@@ -3902,16 +3902,16 @@ var Zu = ms(Lr), el = function() {
|
|
|
3902
3902
|
i = Be(i, s), this.staticRulesId = s;
|
|
3903
3903
|
}
|
|
3904
3904
|
else {
|
|
3905
|
-
for (var u =
|
|
3905
|
+
for (var u = Ue(this.baseHash, n.hash), l = "", f = 0; f < this.rules.length; f++) {
|
|
3906
3906
|
var d = this.rules[f];
|
|
3907
|
-
if (typeof d == "string") l += d, process.env.NODE_ENV !== "production" && (u =
|
|
3907
|
+
if (typeof d == "string") l += d, process.env.NODE_ENV !== "production" && (u = Ue(u, d));
|
|
3908
3908
|
else if (d) {
|
|
3909
3909
|
var h = Nn(We(d, t, r, n));
|
|
3910
|
-
u =
|
|
3910
|
+
u = Ue(u, h + f), l += h;
|
|
3911
3911
|
}
|
|
3912
3912
|
}
|
|
3913
3913
|
if (l) {
|
|
3914
|
-
var p =
|
|
3914
|
+
var p = xn(u >>> 0);
|
|
3915
3915
|
r.hasNameForId(this.componentId, p) || r.insertRules(this.componentId, p, n(l, ".".concat(p), void 0, this.componentId)), i = Be(i, p);
|
|
3916
3916
|
}
|
|
3917
3917
|
}
|
|
@@ -3921,11 +3921,11 @@ var Zu = ms(Lr), el = function() {
|
|
|
3921
3921
|
Ps.Consumer;
|
|
3922
3922
|
var ln = {}, so = /* @__PURE__ */ new Set();
|
|
3923
3923
|
function tl(e, t, r) {
|
|
3924
|
-
var n = ii(e), i = e, o = !un(e), s = t.attrs, a = s === void 0 ?
|
|
3924
|
+
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, x) {
|
|
3925
3925
|
var N = typeof S != "string" ? "sc" : Xi(S);
|
|
3926
3926
|
ln[N] = (ln[N] || 0) + 1;
|
|
3927
|
-
var
|
|
3928
|
-
return
|
|
3927
|
+
var k = "".concat(N, "-").concat(ys(Br + N + ln[N]));
|
|
3928
|
+
return x ? "".concat(x, "-").concat(k) : k;
|
|
3929
3929
|
}(t.displayName, t.parentComponentId) : u, f = t.displayName, d = f === void 0 ? function(S) {
|
|
3930
3930
|
return un(S) ? "styled.".concat(S) : "Styled(".concat(gs(S), ")");
|
|
3931
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, y = t.shouldForwardProp;
|
|
@@ -3933,48 +3933,48 @@ function tl(e, t, r) {
|
|
|
3933
3933
|
var E = i.shouldForwardProp;
|
|
3934
3934
|
if (t.shouldForwardProp) {
|
|
3935
3935
|
var w = t.shouldForwardProp;
|
|
3936
|
-
y = function(S,
|
|
3937
|
-
return E(S,
|
|
3936
|
+
y = function(S, x) {
|
|
3937
|
+
return E(S, x) && w(S, x);
|
|
3938
3938
|
};
|
|
3939
3939
|
} else y = E;
|
|
3940
3940
|
}
|
|
3941
3941
|
var v = new el(r, h, n ? i.componentStyle : void 0);
|
|
3942
|
-
function b(S,
|
|
3943
|
-
return function(N,
|
|
3944
|
-
var F = N.attrs, le = N.componentStyle, H = N.defaultProps, fe = N.foldedComponentIds, q = N.styledComponentId, de = N.target, Fe = te.useContext(Ps),
|
|
3942
|
+
function b(S, x) {
|
|
3943
|
+
return function(N, k, I) {
|
|
3944
|
+
var F = N.attrs, le = N.componentStyle, H = N.defaultProps, fe = N.foldedComponentIds, q = N.styledComponentId, de = N.target, Fe = te.useContext(Ps), Jt = io(), Ze = N.shouldForwardProp || Jt.shouldForwardProp;
|
|
3945
3945
|
process.env.NODE_ENV !== "production" && Ei(q);
|
|
3946
|
-
var wt = _u(
|
|
3946
|
+
var wt = _u(k, Fe, H) || dt, oe = function(tt, Oe, Re) {
|
|
3947
3947
|
for (var he, pe = ee(ee({}, Oe), { className: void 0, theme: Re }), Ae = 0; Ae < tt.length; Ae += 1) {
|
|
3948
3948
|
var rt = ht(he = tt[Ae]) ? he(pe) : he;
|
|
3949
3949
|
for (var me in rt) pe[me] = me === "className" ? Be(pe[me], rt[me]) : me === "style" ? ee(ee({}, pe[me]), rt[me]) : rt[me];
|
|
3950
3950
|
}
|
|
3951
3951
|
return Oe.className && (pe.className = Be(pe.className, Oe.className)), pe;
|
|
3952
|
-
}(F,
|
|
3953
|
-
for (var K in oe) oe[K] === void 0 || K[0] === "$" || K === "as" || K === "theme" && oe.theme === wt || (K === "forwardedAs" ? Ce.as = oe.forwardedAs : Ze && !Ze(K, Pe) || (Ce[K] = oe[K], Ze || process.env.NODE_ENV !== "development" || Zc(K) || so.has(K) || !
|
|
3952
|
+
}(F, k, wt), Pe = oe.as || de, Ce = {};
|
|
3953
|
+
for (var K in oe) oe[K] === void 0 || K[0] === "$" || K === "as" || K === "theme" && oe.theme === wt || (K === "forwardedAs" ? Ce.as = oe.forwardedAs : Ze && !Ze(K, Pe) || (Ce[K] = oe[K], Ze || process.env.NODE_ENV !== "development" || Zc(K) || so.has(K) || !kn.has(Pe) || (so.add(K), console.warn('styled-components: it looks like an unknown prop "'.concat(K, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
3954
3954
|
var et = function(tt, Oe) {
|
|
3955
3955
|
var Re = io(), he = tt.generateAndInjectStyles(Oe, Re.styleSheet, Re.stylis);
|
|
3956
3956
|
return process.env.NODE_ENV !== "production" && Ei(he), he;
|
|
3957
3957
|
}(le, oe);
|
|
3958
3958
|
process.env.NODE_ENV !== "production" && N.warnTooManyClasses && N.warnTooManyClasses(et);
|
|
3959
3959
|
var _t = Be(fe, q);
|
|
3960
|
-
return et && (_t += " " + et), oe.className && (_t += " " + oe.className), Ce[un(Pe) && !
|
|
3961
|
-
}(m, S,
|
|
3960
|
+
return et && (_t += " " + et), oe.className && (_t += " " + oe.className), Ce[un(Pe) && !kn.has(Pe) ? "class" : "className"] = _t, I && (Ce.ref = I), ka(Pe, Ce);
|
|
3961
|
+
}(m, S, x);
|
|
3962
3962
|
}
|
|
3963
3963
|
b.displayName = d;
|
|
3964
3964
|
var m = te.forwardRef(b);
|
|
3965
3965
|
return m.attrs = p, m.componentStyle = v, m.displayName = d, m.shouldForwardProp = y, m.foldedComponentIds = n ? Be(i.foldedComponentIds, i.styledComponentId) : "", m.styledComponentId = h, m.target = n ? i.target : e, Object.defineProperty(m, "defaultProps", { get: function() {
|
|
3966
3966
|
return this._foldedDefaultProps;
|
|
3967
3967
|
}, set: function(S) {
|
|
3968
|
-
this._foldedDefaultProps = n ? function(
|
|
3969
|
-
for (var N = [],
|
|
3970
|
-
for (var I = 0, F = N; I < F.length; I++) Pn(
|
|
3971
|
-
return
|
|
3968
|
+
this._foldedDefaultProps = n ? function(x) {
|
|
3969
|
+
for (var N = [], k = 1; k < arguments.length; k++) N[k - 1] = arguments[k];
|
|
3970
|
+
for (var I = 0, F = N; I < F.length; I++) Pn(x, F[I], !0);
|
|
3971
|
+
return x;
|
|
3972
3972
|
}({}, i.defaultProps, S) : S;
|
|
3973
|
-
} }), process.env.NODE_ENV !== "production" && (wu(d, h), m.warnTooManyClasses = /* @__PURE__ */ function(S,
|
|
3974
|
-
var N = {},
|
|
3973
|
+
} }), process.env.NODE_ENV !== "production" && (wu(d, h), m.warnTooManyClasses = /* @__PURE__ */ function(S, x) {
|
|
3974
|
+
var N = {}, k = !1;
|
|
3975
3975
|
return function(I) {
|
|
3976
|
-
if (!
|
|
3977
|
-
var F =
|
|
3976
|
+
if (!k && (N[I] = !0, Object.keys(N).length >= 200)) {
|
|
3977
|
+
var F = x ? ' with the id of "'.concat(x, '"') : "";
|
|
3978
3978
|
console.warn("Over ".concat(200, " classes were generated for component ").concat(S).concat(F, `.
|
|
3979
3979
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
3980
3980
|
Example:
|
|
@@ -3984,7 +3984,7 @@ Example:
|
|
|
3984
3984
|
},
|
|
3985
3985
|
}))\`width: 100%;\`
|
|
3986
3986
|
|
|
3987
|
-
<Component />`),
|
|
3987
|
+
<Component />`), k = !0, N = {};
|
|
3988
3988
|
}
|
|
3989
3989
|
};
|
|
3990
3990
|
}(d, h)), oi(m, function() {
|
|
@@ -4000,7 +4000,7 @@ var co = function(e) {
|
|
|
4000
4000
|
};
|
|
4001
4001
|
function Cs(e) {
|
|
4002
4002
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
4003
|
-
if (ht(e) || pt(e)) return co(We(ao(
|
|
4003
|
+
if (ht(e) || pt(e)) return co(We(ao(qr, Ke([e], t, !0))));
|
|
4004
4004
|
var n = e;
|
|
4005
4005
|
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? We(n) : co(We(ao(n, t)));
|
|
4006
4006
|
}
|
|
@@ -4019,7 +4019,7 @@ function An(e, t, r) {
|
|
|
4019
4019
|
var Rs = function(e) {
|
|
4020
4020
|
return An(tl, e);
|
|
4021
4021
|
}, bt = Rs;
|
|
4022
|
-
|
|
4022
|
+
kn.forEach(function(e) {
|
|
4023
4023
|
bt[e] = Rs(e);
|
|
4024
4024
|
});
|
|
4025
4025
|
function rl(e) {
|
|
@@ -4031,10 +4031,10 @@ function rl(e) {
|
|
|
4031
4031
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
4032
4032
|
Perhaps you're looking to import 'styled-components/native'?
|
|
4033
4033
|
Read more about this at https://www.styled-components.com/docs/basics#react-native`);
|
|
4034
|
-
var
|
|
4035
|
-
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[
|
|
4034
|
+
var ar = "__sc-".concat(Qe, "__");
|
|
4035
|
+
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[ar] || (window[ar] = 0), window[ar] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
4036
4036
|
|
|
4037
|
-
See https://s-c.sh/2BAXzed for more info.`), window[
|
|
4037
|
+
See https://s-c.sh/2BAXzed for more info.`), window[ar] += 1);
|
|
4038
4038
|
const nl = rl`
|
|
4039
4039
|
0% {
|
|
4040
4040
|
transform: scale(1);
|
|
@@ -4109,15 +4109,15 @@ function ul(e, t) {
|
|
|
4109
4109
|
}
|
|
4110
4110
|
return r;
|
|
4111
4111
|
}
|
|
4112
|
-
function
|
|
4113
|
-
return
|
|
4112
|
+
function kr() {
|
|
4113
|
+
return kr = Object.assign ? Object.assign.bind() : function(e) {
|
|
4114
4114
|
for (var t = 1; t < arguments.length; t++) {
|
|
4115
4115
|
var r = arguments[t];
|
|
4116
4116
|
for (var n in r)
|
|
4117
4117
|
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
4118
4118
|
}
|
|
4119
4119
|
return e;
|
|
4120
|
-
},
|
|
4120
|
+
}, kr.apply(this, arguments);
|
|
4121
4121
|
}
|
|
4122
4122
|
function lo(e, t) {
|
|
4123
4123
|
var r = Object.keys(e);
|
|
@@ -4162,8 +4162,8 @@ function Ts(e) {
|
|
|
4162
4162
|
key: r
|
|
4163
4163
|
}, t.attr), Ts(t.child)));
|
|
4164
4164
|
}
|
|
4165
|
-
function
|
|
4166
|
-
return (t) => /* @__PURE__ */ te.createElement(hl,
|
|
4165
|
+
function Qt(e) {
|
|
4166
|
+
return (t) => /* @__PURE__ */ te.createElement(hl, kr({
|
|
4167
4167
|
attr: xr({}, e.attr)
|
|
4168
4168
|
}, t), Ts(e.child));
|
|
4169
4169
|
}
|
|
@@ -4174,7 +4174,7 @@ function hl(e) {
|
|
|
4174
4174
|
size: i,
|
|
4175
4175
|
title: o
|
|
4176
4176
|
} = e, s = cl(e, al), a = i || r.size || "1em", u;
|
|
4177
|
-
return r.className && (u = r.className), e.className && (u = (u ? u + " " : "") + e.className), /* @__PURE__ */ te.createElement("svg",
|
|
4177
|
+
return r.className && (u = r.className), e.className && (u = (u ? u + " " : "") + e.className), /* @__PURE__ */ te.createElement("svg", kr({
|
|
4178
4178
|
stroke: "currentColor",
|
|
4179
4179
|
fill: "currentColor",
|
|
4180
4180
|
strokeWidth: "0"
|
|
@@ -4191,12 +4191,12 @@ function hl(e) {
|
|
|
4191
4191
|
return uo !== void 0 ? /* @__PURE__ */ te.createElement(uo.Consumer, null, (r) => t(r)) : t(As);
|
|
4192
4192
|
}
|
|
4193
4193
|
function pl(e) {
|
|
4194
|
-
return
|
|
4194
|
+
return Qt({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z" }, child: [] }] })(e);
|
|
4195
4195
|
}
|
|
4196
4196
|
function ml(e) {
|
|
4197
|
-
return
|
|
4197
|
+
return Qt({ 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
4198
|
}
|
|
4199
|
-
const
|
|
4199
|
+
const wf = ({
|
|
4200
4200
|
iconComponent: e,
|
|
4201
4201
|
buttonText: t,
|
|
4202
4202
|
buttonType: r = "primary",
|
|
@@ -4226,12 +4226,12 @@ const bf = ({
|
|
|
4226
4226
|
font-size: 1.125rem;
|
|
4227
4227
|
`;
|
|
4228
4228
|
function vl(e) {
|
|
4229
|
-
return
|
|
4229
|
+
return Qt({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6m2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0m4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4m-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10s-3.516.68-4.168 1.332c-.678.678-.83 1.418-.832 1.664z" }, child: [] }] })(e);
|
|
4230
4230
|
}
|
|
4231
4231
|
function bl(e) {
|
|
4232
|
-
return
|
|
4232
|
+
return Qt({ 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
4233
|
}
|
|
4234
|
-
const
|
|
4234
|
+
const _f = ({ iconComponent: e, onClick: t }) => {
|
|
4235
4235
|
const r = rs({
|
|
4236
4236
|
from: { opacity: 0, transform: "scale(0.5)" },
|
|
4237
4237
|
to: { opacity: 1, transform: "scale(1)" }
|
|
@@ -4241,15 +4241,24 @@ const wf = ({ iconComponent: e, onClick: t }) => {
|
|
|
4241
4241
|
let i;
|
|
4242
4242
|
return e === "person" ? i = /* @__PURE__ */ G.jsx(vl, {}) : e === "qr" && (i = /* @__PURE__ */ G.jsx(bl, {})), /* @__PURE__ */ G.jsx(yl, { style: r, onClick: n, children: /* @__PURE__ */ G.jsx(gl, { children: i }) });
|
|
4243
4243
|
};
|
|
4244
|
+
function wl(e) {
|
|
4245
|
+
return Qt({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "48", d: "M328 112 184 256l144 144" }, child: [] }] })(e);
|
|
4246
|
+
}
|
|
4247
|
+
const Ef = ({ size: e, onClick: t }) => {
|
|
4248
|
+
const r = () => {
|
|
4249
|
+
t && t();
|
|
4250
|
+
};
|
|
4251
|
+
return /* @__PURE__ */ G.jsx(wl, { size: e ?? "1.5rem", onClick: r });
|
|
4252
|
+
};
|
|
4244
4253
|
function Y(e) {
|
|
4245
4254
|
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. `;
|
|
4246
4255
|
}
|
|
4247
|
-
var
|
|
4256
|
+
var _l = typeof Symbol == "function" && Symbol.observable || "@@observable", fo = _l, fn = () => Math.random().toString(36).substring(7).split("").join("."), El = {
|
|
4248
4257
|
INIT: `@@redux/INIT${/* @__PURE__ */ fn()}`,
|
|
4249
4258
|
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ fn()}`,
|
|
4250
4259
|
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${fn()}`
|
|
4251
|
-
}, He =
|
|
4252
|
-
function
|
|
4260
|
+
}, He = El;
|
|
4261
|
+
function Xt(e) {
|
|
4253
4262
|
if (typeof e != "object" || e === null)
|
|
4254
4263
|
return !1;
|
|
4255
4264
|
let t = e;
|
|
@@ -4257,7 +4266,7 @@ function Qt(e) {
|
|
|
4257
4266
|
t = Object.getPrototypeOf(t);
|
|
4258
4267
|
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
|
|
4259
4268
|
}
|
|
4260
|
-
function
|
|
4269
|
+
function Sl(e) {
|
|
4261
4270
|
if (e === void 0)
|
|
4262
4271
|
return "undefined";
|
|
4263
4272
|
if (e === null)
|
|
@@ -4275,9 +4284,9 @@ function El(e) {
|
|
|
4275
4284
|
return "array";
|
|
4276
4285
|
if (xl(e))
|
|
4277
4286
|
return "date";
|
|
4278
|
-
if (
|
|
4287
|
+
if (kl(e))
|
|
4279
4288
|
return "error";
|
|
4280
|
-
const r =
|
|
4289
|
+
const r = Ol(e);
|
|
4281
4290
|
switch (r) {
|
|
4282
4291
|
case "Symbol":
|
|
4283
4292
|
case "Promise":
|
|
@@ -4289,10 +4298,10 @@ function El(e) {
|
|
|
4289
4298
|
}
|
|
4290
4299
|
return Object.prototype.toString.call(e).slice(8, -1).toLowerCase().replace(/\s/g, "");
|
|
4291
4300
|
}
|
|
4292
|
-
function
|
|
4301
|
+
function Ol(e) {
|
|
4293
4302
|
return typeof e.constructor == "function" ? e.constructor.name : null;
|
|
4294
4303
|
}
|
|
4295
|
-
function
|
|
4304
|
+
function kl(e) {
|
|
4296
4305
|
return e instanceof Error || typeof e.message == "string" && e.constructor && typeof e.constructor.stackTraceLimit == "number";
|
|
4297
4306
|
}
|
|
4298
4307
|
function xl(e) {
|
|
@@ -4300,7 +4309,7 @@ function xl(e) {
|
|
|
4300
4309
|
}
|
|
4301
4310
|
function Ie(e) {
|
|
4302
4311
|
let t = typeof e;
|
|
4303
|
-
return process.env.NODE_ENV !== "production" && (t =
|
|
4312
|
+
return process.env.NODE_ENV !== "production" && (t = Sl(e)), t;
|
|
4304
4313
|
}
|
|
4305
4314
|
function Ds(e, t, r) {
|
|
4306
4315
|
if (typeof e != "function")
|
|
@@ -4340,7 +4349,7 @@ function Ds(e, t, r) {
|
|
|
4340
4349
|
};
|
|
4341
4350
|
}
|
|
4342
4351
|
function h(w) {
|
|
4343
|
-
if (!
|
|
4352
|
+
if (!Xt(w))
|
|
4344
4353
|
throw new Error(process.env.NODE_ENV === "production" ? Y(7) : `Actions must be plain objects. Instead, the actual type was: '${Ie(w)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);
|
|
4345
4354
|
if (typeof w.type > "u")
|
|
4346
4355
|
throw new Error(process.env.NODE_ENV === "production" ? Y(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
|
|
@@ -4408,11 +4417,11 @@ function ho(e) {
|
|
|
4408
4417
|
} catch {
|
|
4409
4418
|
}
|
|
4410
4419
|
}
|
|
4411
|
-
function
|
|
4420
|
+
function Nl(e, t, r, n) {
|
|
4412
4421
|
const i = Object.keys(t), o = r && r.type === He.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer";
|
|
4413
4422
|
if (i.length === 0)
|
|
4414
4423
|
return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";
|
|
4415
|
-
if (!
|
|
4424
|
+
if (!Xt(e))
|
|
4416
4425
|
return `The ${o} has unexpected type of "${Ie(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;
|
|
4417
4426
|
const s = Object.keys(e).filter((a) => !t.hasOwnProperty(a) && !n[a]);
|
|
4418
4427
|
if (s.forEach((a) => {
|
|
@@ -4420,7 +4429,7 @@ function kl(e, t, r, n) {
|
|
|
4420
4429
|
}), !(r && r.type === He.REPLACE) && s.length > 0)
|
|
4421
4430
|
return `Unexpected ${s.length > 1 ? "keys" : "key"} "${s.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`;
|
|
4422
4431
|
}
|
|
4423
|
-
function
|
|
4432
|
+
function Pl(e) {
|
|
4424
4433
|
Object.keys(e).forEach((t) => {
|
|
4425
4434
|
const r = e[t];
|
|
4426
4435
|
if (typeof r(void 0, {
|
|
@@ -4444,7 +4453,7 @@ function Is(e) {
|
|
|
4444
4453
|
process.env.NODE_ENV !== "production" && (i = {});
|
|
4445
4454
|
let o;
|
|
4446
4455
|
try {
|
|
4447
|
-
|
|
4456
|
+
Pl(r);
|
|
4448
4457
|
} catch (s) {
|
|
4449
4458
|
o = s;
|
|
4450
4459
|
}
|
|
@@ -4452,7 +4461,7 @@ function Is(e) {
|
|
|
4452
4461
|
if (o)
|
|
4453
4462
|
throw o;
|
|
4454
4463
|
if (process.env.NODE_ENV !== "production") {
|
|
4455
|
-
const d =
|
|
4464
|
+
const d = Nl(a, r, u, i);
|
|
4456
4465
|
d && ho(d);
|
|
4457
4466
|
}
|
|
4458
4467
|
let l = !1;
|
|
@@ -4468,10 +4477,10 @@ function Is(e) {
|
|
|
4468
4477
|
return l = l || n.length !== Object.keys(a).length, l ? f : a;
|
|
4469
4478
|
};
|
|
4470
4479
|
}
|
|
4471
|
-
function
|
|
4480
|
+
function Nr(...e) {
|
|
4472
4481
|
return e.length === 0 ? (t) => t : e.length === 1 ? e[0] : e.reduce((t, r) => (...n) => t(r(...n)));
|
|
4473
4482
|
}
|
|
4474
|
-
function
|
|
4483
|
+
function Cl(...e) {
|
|
4475
4484
|
return (t) => (r, n) => {
|
|
4476
4485
|
const i = t(r, n);
|
|
4477
4486
|
let o = () => {
|
|
@@ -4481,16 +4490,16 @@ function Pl(...e) {
|
|
|
4481
4490
|
getState: i.getState,
|
|
4482
4491
|
dispatch: (u, ...l) => o(u, ...l)
|
|
4483
4492
|
}, a = e.map((u) => u(s));
|
|
4484
|
-
return o =
|
|
4493
|
+
return o = Nr(...a)(i.dispatch), {
|
|
4485
4494
|
...i,
|
|
4486
4495
|
dispatch: o
|
|
4487
4496
|
};
|
|
4488
4497
|
};
|
|
4489
4498
|
}
|
|
4490
4499
|
function js(e) {
|
|
4491
|
-
return
|
|
4500
|
+
return Xt(e) && "type" in e && typeof e.type == "string";
|
|
4492
4501
|
}
|
|
4493
|
-
var Vs = Symbol.for("immer-nothing"), po = Symbol.for("immer-draftable"), ne = Symbol.for("immer-state"),
|
|
4502
|
+
var Vs = Symbol.for("immer-nothing"), po = Symbol.for("immer-draftable"), ne = Symbol.for("immer-state"), Rl = process.env.NODE_ENV !== "production" ? [
|
|
4494
4503
|
// All error codes, starting by 0:
|
|
4495
4504
|
function(e) {
|
|
4496
4505
|
return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
|
|
@@ -4523,7 +4532,7 @@ var Vs = Symbol.for("immer-nothing"), po = Symbol.for("immer-draftable"), ne = S
|
|
|
4523
4532
|
] : [];
|
|
4524
4533
|
function Z(e, ...t) {
|
|
4525
4534
|
if (process.env.NODE_ENV !== "production") {
|
|
4526
|
-
const r =
|
|
4535
|
+
const r = Rl[e], n = typeof r == "function" ? r.apply(null, t) : r;
|
|
4527
4536
|
throw new Error(`[Immer] ${n}`);
|
|
4528
4537
|
}
|
|
4529
4538
|
throw new Error(
|
|
@@ -4538,7 +4547,7 @@ function Ne(e) {
|
|
|
4538
4547
|
var t;
|
|
4539
4548
|
return e ? $s(e) || Array.isArray(e) || !!e[po] || !!((t = e.constructor) != null && t[po]) || Hr(e) || Yr(e) : !1;
|
|
4540
4549
|
}
|
|
4541
|
-
var
|
|
4550
|
+
var Al = Object.prototype.constructor.toString();
|
|
4542
4551
|
function $s(e) {
|
|
4543
4552
|
if (!e || typeof e != "object")
|
|
4544
4553
|
return !1;
|
|
@@ -4546,9 +4555,9 @@ function $s(e) {
|
|
|
4546
4555
|
if (t === null)
|
|
4547
4556
|
return !0;
|
|
4548
4557
|
const r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
4549
|
-
return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) ===
|
|
4558
|
+
return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === Al;
|
|
4550
4559
|
}
|
|
4551
|
-
function
|
|
4560
|
+
function Pr(e, t) {
|
|
4552
4561
|
Wr(e) === 0 ? Reflect.ownKeys(e).forEach((r) => {
|
|
4553
4562
|
t(r, e[r], e);
|
|
4554
4563
|
}) : e.forEach((r, n) => t(n, r, e));
|
|
@@ -4564,7 +4573,7 @@ function Fs(e, t, r) {
|
|
|
4564
4573
|
const n = Wr(e);
|
|
4565
4574
|
n === 2 ? e.set(t, r) : n === 3 ? e.add(r) : e[t] = r;
|
|
4566
4575
|
}
|
|
4567
|
-
function
|
|
4576
|
+
function Tl(e, t) {
|
|
4568
4577
|
return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
|
|
4569
4578
|
}
|
|
4570
4579
|
function Hr(e) {
|
|
@@ -4608,24 +4617,24 @@ function Dn(e, t) {
|
|
|
4608
4617
|
}
|
|
4609
4618
|
}
|
|
4610
4619
|
function si(e, t = !1) {
|
|
4611
|
-
return Gr(e) || Xe(e) || !Ne(e) || (Wr(e) > 1 && (e.set = e.add = e.clear = e.delete =
|
|
4620
|
+
return Gr(e) || Xe(e) || !Ne(e) || (Wr(e) > 1 && (e.set = e.add = e.clear = e.delete = Dl), Object.freeze(e), t && Object.entries(e).forEach(([r, n]) => si(n, !0))), e;
|
|
4612
4621
|
}
|
|
4613
|
-
function
|
|
4622
|
+
function Dl() {
|
|
4614
4623
|
Z(2);
|
|
4615
4624
|
}
|
|
4616
4625
|
function Gr(e) {
|
|
4617
4626
|
return Object.isFrozen(e);
|
|
4618
4627
|
}
|
|
4619
|
-
var
|
|
4628
|
+
var Il = {};
|
|
4620
4629
|
function Je(e) {
|
|
4621
|
-
const t =
|
|
4630
|
+
const t = Il[e];
|
|
4622
4631
|
return t || Z(0, e), t;
|
|
4623
4632
|
}
|
|
4624
4633
|
var Wt;
|
|
4625
4634
|
function Ms() {
|
|
4626
4635
|
return Wt;
|
|
4627
4636
|
}
|
|
4628
|
-
function
|
|
4637
|
+
function jl(e, t) {
|
|
4629
4638
|
return {
|
|
4630
4639
|
drafts_: [],
|
|
4631
4640
|
parent_: e,
|
|
@@ -4640,49 +4649,49 @@ function mo(e, t) {
|
|
|
4640
4649
|
t && (Je("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
4641
4650
|
}
|
|
4642
4651
|
function In(e) {
|
|
4643
|
-
jn(e), e.drafts_.forEach(
|
|
4652
|
+
jn(e), e.drafts_.forEach(Vl), e.drafts_ = null;
|
|
4644
4653
|
}
|
|
4645
4654
|
function jn(e) {
|
|
4646
4655
|
e === Wt && (Wt = e.parent_);
|
|
4647
4656
|
}
|
|
4648
4657
|
function yo(e) {
|
|
4649
|
-
return Wt =
|
|
4658
|
+
return Wt = jl(Wt, e);
|
|
4650
4659
|
}
|
|
4651
|
-
function
|
|
4660
|
+
function Vl(e) {
|
|
4652
4661
|
const t = e[ne];
|
|
4653
4662
|
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
4654
4663
|
}
|
|
4655
4664
|
function go(e, t) {
|
|
4656
4665
|
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
4657
4666
|
const r = t.drafts_[0];
|
|
4658
|
-
return e !== void 0 && e !== r ? (r[ne].modified_ && (In(t), Z(4)), Ne(e) && (e =
|
|
4667
|
+
return e !== void 0 && e !== r ? (r[ne].modified_ && (In(t), Z(4)), Ne(e) && (e = Cr(t, e), t.parent_ || Rr(t, e)), t.patches_ && Je("Patches").generateReplacementPatches_(
|
|
4659
4668
|
r[ne].base_,
|
|
4660
4669
|
e,
|
|
4661
4670
|
t.patches_,
|
|
4662
4671
|
t.inversePatches_
|
|
4663
|
-
)) : e =
|
|
4672
|
+
)) : e = Cr(t, r, []), In(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== Vs ? e : void 0;
|
|
4664
4673
|
}
|
|
4665
|
-
function
|
|
4674
|
+
function Cr(e, t, r) {
|
|
4666
4675
|
if (Gr(t))
|
|
4667
4676
|
return t;
|
|
4668
4677
|
const n = t[ne];
|
|
4669
4678
|
if (!n)
|
|
4670
|
-
return
|
|
4679
|
+
return Pr(
|
|
4671
4680
|
t,
|
|
4672
4681
|
(i, o) => vo(e, n, t, i, o, r)
|
|
4673
4682
|
), t;
|
|
4674
4683
|
if (n.scope_ !== e)
|
|
4675
4684
|
return t;
|
|
4676
4685
|
if (!n.modified_)
|
|
4677
|
-
return
|
|
4686
|
+
return Rr(e, n.base_, !0), n.base_;
|
|
4678
4687
|
if (!n.finalized_) {
|
|
4679
4688
|
n.finalized_ = !0, n.scope_.unfinalizedDrafts_--;
|
|
4680
4689
|
const i = n.copy_;
|
|
4681
4690
|
let o = i, s = !1;
|
|
4682
|
-
n.type_ === 3 && (o = new Set(i), i.clear(), s = !0),
|
|
4691
|
+
n.type_ === 3 && (o = new Set(i), i.clear(), s = !0), Pr(
|
|
4683
4692
|
o,
|
|
4684
4693
|
(a, u) => vo(e, n, i, a, u, r, s)
|
|
4685
|
-
),
|
|
4694
|
+
), Rr(e, i, !1), r && e.patches_ && Je("Patches").generatePatches_(
|
|
4686
4695
|
n,
|
|
4687
4696
|
r,
|
|
4688
4697
|
e.patches_,
|
|
@@ -4694,7 +4703,7 @@ function Pr(e, t, r) {
|
|
|
4694
4703
|
function vo(e, t, r, n, i, o, s) {
|
|
4695
4704
|
if (process.env.NODE_ENV !== "production" && i === r && Z(5), Xe(i)) {
|
|
4696
4705
|
const a = o && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
4697
|
-
!Tn(t.assigned_, n) ? o.concat(n) : void 0, u =
|
|
4706
|
+
!Tn(t.assigned_, n) ? o.concat(n) : void 0, u = Cr(e, i, a);
|
|
4698
4707
|
if (Fs(r, n, u), Xe(u))
|
|
4699
4708
|
e.canAutoFreeze_ = !1;
|
|
4700
4709
|
else
|
|
@@ -4703,13 +4712,13 @@ function vo(e, t, r, n, i, o, s) {
|
|
|
4703
4712
|
if (Ne(i) && !Gr(i)) {
|
|
4704
4713
|
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
|
|
4705
4714
|
return;
|
|
4706
|
-
|
|
4715
|
+
Cr(e, i), (!t || !t.scope_.parent_) && typeof n != "symbol" && Object.prototype.propertyIsEnumerable.call(r, n) && Rr(e, i);
|
|
4707
4716
|
}
|
|
4708
4717
|
}
|
|
4709
|
-
function
|
|
4718
|
+
function Rr(e, t, r = !1) {
|
|
4710
4719
|
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && si(t, r);
|
|
4711
4720
|
}
|
|
4712
|
-
function
|
|
4721
|
+
function $l(e, t) {
|
|
4713
4722
|
const r = Array.isArray(e), n = {
|
|
4714
4723
|
type_: r ? 1 : 0,
|
|
4715
4724
|
// Track which produce call this is associated with.
|
|
@@ -4744,7 +4753,7 @@ var ai = {
|
|
|
4744
4753
|
return e;
|
|
4745
4754
|
const r = ze(e);
|
|
4746
4755
|
if (!Tn(r, t))
|
|
4747
|
-
return
|
|
4756
|
+
return Fl(e, r, t);
|
|
4748
4757
|
const n = r[t];
|
|
4749
4758
|
return e.finalized_ || !Ne(n) ? n : n === dn(e.base_, t) ? (hn(e), e.copy_[t] = $n(n, e)) : n;
|
|
4750
4759
|
},
|
|
@@ -4762,7 +4771,7 @@ var ai = {
|
|
|
4762
4771
|
const i = dn(ze(e), t), o = i == null ? void 0 : i[ne];
|
|
4763
4772
|
if (o && o.base_ === r)
|
|
4764
4773
|
return e.copy_[t] = r, e.assigned_[t] = !1, !0;
|
|
4765
|
-
if (
|
|
4774
|
+
if (Tl(r, i) && (r !== void 0 || Tn(e.base_, t)))
|
|
4766
4775
|
return !0;
|
|
4767
4776
|
hn(e), Vn(e);
|
|
4768
4777
|
}
|
|
@@ -4794,7 +4803,7 @@ var ai = {
|
|
|
4794
4803
|
Z(12);
|
|
4795
4804
|
}
|
|
4796
4805
|
}, Ht = {};
|
|
4797
|
-
|
|
4806
|
+
Pr(ai, (e, t) => {
|
|
4798
4807
|
Ht[e] = function() {
|
|
4799
4808
|
return arguments[0] = arguments[0][0], t.apply(this, arguments);
|
|
4800
4809
|
};
|
|
@@ -4809,7 +4818,7 @@ function dn(e, t) {
|
|
|
4809
4818
|
const r = e[ne];
|
|
4810
4819
|
return (r ? ze(r) : e)[t];
|
|
4811
4820
|
}
|
|
4812
|
-
function
|
|
4821
|
+
function Fl(e, t, r) {
|
|
4813
4822
|
var i;
|
|
4814
4823
|
const n = zs(t, r);
|
|
4815
4824
|
return n ? "value" in n ? n.value : (
|
|
@@ -4838,7 +4847,7 @@ function hn(e) {
|
|
|
4838
4847
|
e.scope_.immer_.useStrictShallowCopy_
|
|
4839
4848
|
));
|
|
4840
4849
|
}
|
|
4841
|
-
var
|
|
4850
|
+
var Ml = class {
|
|
4842
4851
|
constructor(e) {
|
|
4843
4852
|
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (t, r, n) => {
|
|
4844
4853
|
if (typeof t == "function" && typeof r != "function") {
|
|
@@ -4878,7 +4887,7 @@ var Fl = class {
|
|
|
4878
4887
|
}, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
|
|
4879
4888
|
}
|
|
4880
4889
|
createDraft(e) {
|
|
4881
|
-
Ne(e) || Z(8), Xe(e) && (e =
|
|
4890
|
+
Ne(e) || Z(8), Xe(e) && (e = zl(e));
|
|
4882
4891
|
const t = yo(this), r = $n(e, void 0);
|
|
4883
4892
|
return r[ne].isManual_ = !0, jn(t), r;
|
|
4884
4893
|
}
|
|
@@ -4922,13 +4931,13 @@ var Fl = class {
|
|
|
4922
4931
|
}
|
|
4923
4932
|
};
|
|
4924
4933
|
function $n(e, t) {
|
|
4925
|
-
const r = Hr(e) ? Je("MapSet").proxyMap_(e, t) : Yr(e) ? Je("MapSet").proxySet_(e, t) :
|
|
4934
|
+
const r = Hr(e) ? Je("MapSet").proxyMap_(e, t) : Yr(e) ? Je("MapSet").proxySet_(e, t) : $l(e, t);
|
|
4926
4935
|
return (t ? t.scope_ : Ms()).drafts_.push(r), r;
|
|
4927
4936
|
}
|
|
4928
|
-
function
|
|
4929
|
-
return Xe(e) || Z(10, e),
|
|
4937
|
+
function zl(e) {
|
|
4938
|
+
return Xe(e) || Z(10, e), Ls(e);
|
|
4930
4939
|
}
|
|
4931
|
-
function
|
|
4940
|
+
function Ls(e) {
|
|
4932
4941
|
if (!Ne(e) || Gr(e))
|
|
4933
4942
|
return e;
|
|
4934
4943
|
const t = e[ne];
|
|
@@ -4939,11 +4948,11 @@ function Us(e) {
|
|
|
4939
4948
|
t.finalized_ = !0, r = Dn(e, t.scope_.immer_.useStrictShallowCopy_);
|
|
4940
4949
|
} else
|
|
4941
4950
|
r = Dn(e, !0);
|
|
4942
|
-
return
|
|
4943
|
-
Fs(r, n,
|
|
4951
|
+
return Pr(r, (n, i) => {
|
|
4952
|
+
Fs(r, n, Ls(i));
|
|
4944
4953
|
}), t && (t.finalized_ = !1), r;
|
|
4945
4954
|
}
|
|
4946
|
-
var ie = new
|
|
4955
|
+
var ie = new Ml(), Us = ie.produce;
|
|
4947
4956
|
ie.produceWithPatches.bind(
|
|
4948
4957
|
ie
|
|
4949
4958
|
);
|
|
@@ -4955,10 +4964,10 @@ ie.finishDraft.bind(ie);
|
|
|
4955
4964
|
function Bs(e) {
|
|
4956
4965
|
return ({ dispatch: r, getState: n }) => (i) => (o) => typeof o == "function" ? o(r, n, e) : i(o);
|
|
4957
4966
|
}
|
|
4958
|
-
var
|
|
4967
|
+
var Ll = Bs(), Ul = Bs, Bl = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
|
|
4959
4968
|
if (arguments.length !== 0)
|
|
4960
|
-
return typeof arguments[0] == "object" ?
|
|
4961
|
-
},
|
|
4969
|
+
return typeof arguments[0] == "object" ? Nr : Nr.apply(null, arguments);
|
|
4970
|
+
}, ql = (e) => e && typeof e.match == "function";
|
|
4962
4971
|
function bo(e, t) {
|
|
4963
4972
|
function r(...n) {
|
|
4964
4973
|
if (t) {
|
|
@@ -4983,22 +4992,22 @@ function bo(e, t) {
|
|
|
4983
4992
|
}
|
|
4984
4993
|
return r.toString = () => `${e}`, r.type = e, r.match = (n) => js(n) && n.type === e, r;
|
|
4985
4994
|
}
|
|
4986
|
-
function
|
|
4995
|
+
function Wl(e) {
|
|
4987
4996
|
return typeof e == "function" && "type" in e && // hasMatchFunction only wants Matchers but I don't see the point in rewriting it
|
|
4988
|
-
|
|
4997
|
+
ql(e);
|
|
4989
4998
|
}
|
|
4990
|
-
function
|
|
4999
|
+
function Hl(e) {
|
|
4991
5000
|
const t = e ? `${e}`.split("/") : [], r = t[t.length - 1] || "actionCreator";
|
|
4992
5001
|
return `Detected an action creator with type "${e || "unknown"}" being dispatched.
|
|
4993
5002
|
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`;
|
|
4994
5003
|
}
|
|
4995
|
-
function
|
|
5004
|
+
function Yl(e = {}) {
|
|
4996
5005
|
if (process.env.NODE_ENV === "production")
|
|
4997
5006
|
return () => (r) => (n) => r(n);
|
|
4998
5007
|
const {
|
|
4999
|
-
isActionCreator: t =
|
|
5008
|
+
isActionCreator: t = Wl
|
|
5000
5009
|
} = e;
|
|
5001
|
-
return () => (r) => (n) => (t(n) && console.warn(
|
|
5010
|
+
return () => (r) => (n) => (t(n) && console.warn(Hl(n.type)), r(n));
|
|
5002
5011
|
}
|
|
5003
5012
|
function qs(e, t) {
|
|
5004
5013
|
let r = 0;
|
|
@@ -5034,16 +5043,16 @@ var Ws = class Rt extends Array {
|
|
|
5034
5043
|
}
|
|
5035
5044
|
};
|
|
5036
5045
|
function wo(e) {
|
|
5037
|
-
return Ne(e) ?
|
|
5046
|
+
return Ne(e) ? Us(e, () => {
|
|
5038
5047
|
}) : e;
|
|
5039
5048
|
}
|
|
5040
5049
|
function _o(e, t, r) {
|
|
5041
5050
|
return e.has(t) ? e.get(t) : e.set(t, r(t)).get(t);
|
|
5042
5051
|
}
|
|
5043
|
-
function
|
|
5052
|
+
function Gl(e) {
|
|
5044
5053
|
return typeof e != "object" || e == null || Object.isFrozen(e);
|
|
5045
5054
|
}
|
|
5046
|
-
function
|
|
5055
|
+
function Kl(e, t, r) {
|
|
5047
5056
|
const n = Hs(e, t, r);
|
|
5048
5057
|
return {
|
|
5049
5058
|
detectMutations() {
|
|
@@ -5093,7 +5102,7 @@ function Ys(e, t = [], r, n, i = !1, o = "") {
|
|
|
5093
5102
|
wasMutated: !1
|
|
5094
5103
|
};
|
|
5095
5104
|
}
|
|
5096
|
-
function
|
|
5105
|
+
function Ql(e = {}) {
|
|
5097
5106
|
if (process.env.NODE_ENV === "production")
|
|
5098
5107
|
return () => (t) => (r) => t(r);
|
|
5099
5108
|
{
|
|
@@ -5111,11 +5120,11 @@ function Kl(e = {}) {
|
|
|
5111
5120
|
return a == null ? h : a.call(this, d, h);
|
|
5112
5121
|
};
|
|
5113
5122
|
}, {
|
|
5114
|
-
isImmutable: n =
|
|
5123
|
+
isImmutable: n = Gl,
|
|
5115
5124
|
ignoredPaths: i,
|
|
5116
5125
|
warnAfter: o = 32
|
|
5117
5126
|
} = e;
|
|
5118
|
-
const s =
|
|
5127
|
+
const s = Kl.bind(null, n, i);
|
|
5119
5128
|
return ({
|
|
5120
5129
|
getState: a
|
|
5121
5130
|
}) => {
|
|
@@ -5137,7 +5146,7 @@ function Kl(e = {}) {
|
|
|
5137
5146
|
}
|
|
5138
5147
|
function Gs(e) {
|
|
5139
5148
|
const t = typeof e;
|
|
5140
|
-
return e == null || t === "string" || t === "boolean" || t === "number" || Array.isArray(e) ||
|
|
5149
|
+
return e == null || t === "string" || t === "boolean" || t === "number" || Array.isArray(e) || Xt(e);
|
|
5141
5150
|
}
|
|
5142
5151
|
function Fn(e, t = "", r = Gs, n, i = [], o) {
|
|
5143
5152
|
let s;
|
|
@@ -5169,7 +5178,7 @@ function Ks(e) {
|
|
|
5169
5178
|
return !1;
|
|
5170
5179
|
return !0;
|
|
5171
5180
|
}
|
|
5172
|
-
function
|
|
5181
|
+
function Xl(e = {}) {
|
|
5173
5182
|
if (process.env.NODE_ENV === "production")
|
|
5174
5183
|
return () => (t) => (r) => t(r);
|
|
5175
5184
|
{
|
|
@@ -5215,10 +5224,10 @@ Take a look at the reducer(s) handling this action type: ${p.type}.
|
|
|
5215
5224
|
};
|
|
5216
5225
|
}
|
|
5217
5226
|
}
|
|
5218
|
-
function
|
|
5227
|
+
function cr(e) {
|
|
5219
5228
|
return typeof e == "boolean";
|
|
5220
5229
|
}
|
|
5221
|
-
var
|
|
5230
|
+
var Jl = () => function(t) {
|
|
5222
5231
|
const {
|
|
5223
5232
|
thunk: r = !0,
|
|
5224
5233
|
immutableCheck: n = !0,
|
|
@@ -5226,24 +5235,24 @@ var Xl = () => function(t) {
|
|
|
5226
5235
|
actionCreatorCheck: o = !0
|
|
5227
5236
|
} = t ?? {};
|
|
5228
5237
|
let s = new Ws();
|
|
5229
|
-
if (r && (
|
|
5238
|
+
if (r && (cr(r) ? s.push(Ll) : s.push(Ul(r.extraArgument))), process.env.NODE_ENV !== "production") {
|
|
5230
5239
|
if (n) {
|
|
5231
5240
|
let a = {};
|
|
5232
|
-
|
|
5241
|
+
cr(n) || (a = n), s.unshift(Ql(a));
|
|
5233
5242
|
}
|
|
5234
5243
|
if (i) {
|
|
5235
5244
|
let a = {};
|
|
5236
|
-
|
|
5245
|
+
cr(i) || (a = i), s.push(Xl(a));
|
|
5237
5246
|
}
|
|
5238
5247
|
if (o) {
|
|
5239
5248
|
let a = {};
|
|
5240
|
-
|
|
5249
|
+
cr(o) || (a = o), s.unshift(Yl(a));
|
|
5241
5250
|
}
|
|
5242
5251
|
}
|
|
5243
5252
|
return s;
|
|
5244
|
-
},
|
|
5253
|
+
}, Zl = "RTK_autoBatch", Eo = (e) => (t) => {
|
|
5245
5254
|
setTimeout(t, e);
|
|
5246
|
-
},
|
|
5255
|
+
}, ef = (e = {
|
|
5247
5256
|
type: "raf"
|
|
5248
5257
|
}) => (t) => (...r) => {
|
|
5249
5258
|
const n = t(...r);
|
|
@@ -5268,21 +5277,21 @@ var Xl = () => function(t) {
|
|
|
5268
5277
|
dispatch(f) {
|
|
5269
5278
|
var d;
|
|
5270
5279
|
try {
|
|
5271
|
-
return i = !((d = f == null ? void 0 : f.meta) != null && d[
|
|
5280
|
+
return i = !((d = f == null ? void 0 : f.meta) != null && d[Zl]), o = !i, o && (s || (s = !0, u(l))), n.dispatch(f);
|
|
5272
5281
|
} finally {
|
|
5273
5282
|
i = !0;
|
|
5274
5283
|
}
|
|
5275
5284
|
}
|
|
5276
5285
|
});
|
|
5277
|
-
},
|
|
5286
|
+
}, tf = (e) => function(r) {
|
|
5278
5287
|
const {
|
|
5279
5288
|
autoBatch: n = !0
|
|
5280
5289
|
} = r ?? {};
|
|
5281
5290
|
let i = new Ws(e);
|
|
5282
|
-
return n && i.push(
|
|
5291
|
+
return n && i.push(ef(typeof n == "object" ? n : void 0)), i;
|
|
5283
5292
|
};
|
|
5284
|
-
function
|
|
5285
|
-
const t =
|
|
5293
|
+
function rf(e) {
|
|
5294
|
+
const t = Jl(), {
|
|
5286
5295
|
reducer: r = void 0,
|
|
5287
5296
|
middleware: n,
|
|
5288
5297
|
devTools: i = !0,
|
|
@@ -5292,7 +5301,7 @@ function tf(e) {
|
|
|
5292
5301
|
let a;
|
|
5293
5302
|
if (typeof r == "function")
|
|
5294
5303
|
a = r;
|
|
5295
|
-
else if (
|
|
5304
|
+
else if (Xt(r))
|
|
5296
5305
|
a = Is(r);
|
|
5297
5306
|
else
|
|
5298
5307
|
throw new Error(process.env.NODE_ENV === "production" ? z(1) : "`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");
|
|
@@ -5306,13 +5315,13 @@ function tf(e) {
|
|
|
5306
5315
|
u = t();
|
|
5307
5316
|
if (process.env.NODE_ENV !== "production" && u.some((y) => typeof y != "function"))
|
|
5308
5317
|
throw new Error(process.env.NODE_ENV === "production" ? z(4) : "each middleware provided to configureStore must be a function");
|
|
5309
|
-
let l =
|
|
5310
|
-
i && (l =
|
|
5318
|
+
let l = Nr;
|
|
5319
|
+
i && (l = Bl({
|
|
5311
5320
|
// Enable capture of stack traces for dispatched Redux actions
|
|
5312
5321
|
trace: process.env.NODE_ENV !== "production",
|
|
5313
5322
|
...typeof i == "object" && i
|
|
5314
5323
|
}));
|
|
5315
|
-
const f =
|
|
5324
|
+
const f = Cl(...u), d = tf(f);
|
|
5316
5325
|
if (process.env.NODE_ENV !== "production" && s && typeof s != "function")
|
|
5317
5326
|
throw new Error(process.env.NODE_ENV === "production" ? z(5) : "`enhancers` field must be a callback");
|
|
5318
5327
|
let h = typeof s == "function" ? s(d) : d();
|
|
@@ -5358,14 +5367,14 @@ function Qs(e) {
|
|
|
5358
5367
|
};
|
|
5359
5368
|
return e(i), [t, r, n];
|
|
5360
5369
|
}
|
|
5361
|
-
function
|
|
5370
|
+
function nf(e) {
|
|
5362
5371
|
return typeof e == "function";
|
|
5363
5372
|
}
|
|
5364
|
-
function
|
|
5373
|
+
function of(e, t) {
|
|
5365
5374
|
if (process.env.NODE_ENV !== "production" && typeof t == "object")
|
|
5366
5375
|
throw new Error(process.env.NODE_ENV === "production" ? z(8) : "The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
|
|
5367
5376
|
let [r, n, i] = Qs(t), o;
|
|
5368
|
-
if (
|
|
5377
|
+
if (nf(e))
|
|
5369
5378
|
o = () => wo(e());
|
|
5370
5379
|
else {
|
|
5371
5380
|
const a = wo(e);
|
|
@@ -5384,7 +5393,7 @@ function nf(e, t) {
|
|
|
5384
5393
|
return p === void 0 ? f : p;
|
|
5385
5394
|
} else {
|
|
5386
5395
|
if (Ne(f))
|
|
5387
|
-
return
|
|
5396
|
+
return Us(f, (h) => d(h, u));
|
|
5388
5397
|
{
|
|
5389
5398
|
const h = d(f, u);
|
|
5390
5399
|
if (h === void 0) {
|
|
@@ -5400,15 +5409,15 @@ function nf(e, t) {
|
|
|
5400
5409
|
}
|
|
5401
5410
|
return s.getInitialState = o, s;
|
|
5402
5411
|
}
|
|
5403
|
-
var
|
|
5404
|
-
function
|
|
5412
|
+
var sf = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
|
|
5413
|
+
function af(e, t) {
|
|
5405
5414
|
return `${e}/${t}`;
|
|
5406
5415
|
}
|
|
5407
|
-
function
|
|
5416
|
+
function cf({
|
|
5408
5417
|
creators: e
|
|
5409
5418
|
} = {}) {
|
|
5410
5419
|
var r;
|
|
5411
|
-
const t = (r = e == null ? void 0 : e.asyncThunk) == null ? void 0 : r[
|
|
5420
|
+
const t = (r = e == null ? void 0 : e.asyncThunk) == null ? void 0 : r[sf];
|
|
5412
5421
|
return function(i) {
|
|
5413
5422
|
const {
|
|
5414
5423
|
name: o,
|
|
@@ -5417,19 +5426,19 @@ function af({
|
|
|
5417
5426
|
if (!o)
|
|
5418
5427
|
throw new Error(process.env.NODE_ENV === "production" ? z(11) : "`name` is a required option for createSlice");
|
|
5419
5428
|
typeof process < "u" && process.env.NODE_ENV === "development" && i.initialState === void 0 && console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
|
|
5420
|
-
const a = (typeof i.reducers == "function" ? i.reducers(
|
|
5429
|
+
const a = (typeof i.reducers == "function" ? i.reducers(ff()) : i.reducers) || {}, u = Object.keys(a), l = {
|
|
5421
5430
|
sliceCaseReducersByName: {},
|
|
5422
5431
|
sliceCaseReducersByType: {},
|
|
5423
5432
|
actionCreators: {},
|
|
5424
5433
|
sliceMatchers: []
|
|
5425
5434
|
}, f = {
|
|
5426
5435
|
addCase(m, S) {
|
|
5427
|
-
const
|
|
5428
|
-
if (!
|
|
5436
|
+
const x = typeof m == "string" ? m : m.type;
|
|
5437
|
+
if (!x)
|
|
5429
5438
|
throw new Error(process.env.NODE_ENV === "production" ? z(12) : "`context.addCase` cannot be called with an empty action type");
|
|
5430
|
-
if (
|
|
5431
|
-
throw new Error(process.env.NODE_ENV === "production" ? z(13) : "`context.addCase` cannot be called with two reducers for the same action type: " +
|
|
5432
|
-
return l.sliceCaseReducersByType[
|
|
5439
|
+
if (x in l.sliceCaseReducersByType)
|
|
5440
|
+
throw new Error(process.env.NODE_ENV === "production" ? z(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + x);
|
|
5441
|
+
return l.sliceCaseReducersByType[x] = S, f;
|
|
5433
5442
|
},
|
|
5434
5443
|
addMatcher(m, S) {
|
|
5435
5444
|
return l.sliceMatchers.push({
|
|
@@ -5445,28 +5454,28 @@ function af({
|
|
|
5445
5454
|
}
|
|
5446
5455
|
};
|
|
5447
5456
|
u.forEach((m) => {
|
|
5448
|
-
const S = a[m],
|
|
5457
|
+
const S = a[m], x = {
|
|
5449
5458
|
reducerName: m,
|
|
5450
|
-
type:
|
|
5459
|
+
type: af(o, m),
|
|
5451
5460
|
createNotation: typeof i.reducers == "function"
|
|
5452
5461
|
};
|
|
5453
|
-
|
|
5462
|
+
hf(S) ? mf(x, S, f, t) : df(x, S, f);
|
|
5454
5463
|
});
|
|
5455
5464
|
function d() {
|
|
5456
5465
|
if (process.env.NODE_ENV !== "production" && typeof i.extraReducers == "object")
|
|
5457
5466
|
throw new Error(process.env.NODE_ENV === "production" ? z(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
|
|
5458
|
-
const [m = {}, S = [],
|
|
5467
|
+
const [m = {}, S = [], x = void 0] = typeof i.extraReducers == "function" ? Qs(i.extraReducers) : [i.extraReducers], N = {
|
|
5459
5468
|
...m,
|
|
5460
5469
|
...l.sliceCaseReducersByType
|
|
5461
5470
|
};
|
|
5462
|
-
return
|
|
5471
|
+
return of(i.initialState, (k) => {
|
|
5463
5472
|
for (let I in N)
|
|
5464
|
-
|
|
5473
|
+
k.addCase(I, N[I]);
|
|
5465
5474
|
for (let I of l.sliceMatchers)
|
|
5466
|
-
|
|
5475
|
+
k.addMatcher(I.matcher, I.reducer);
|
|
5467
5476
|
for (let I of S)
|
|
5468
|
-
|
|
5469
|
-
|
|
5477
|
+
k.addMatcher(I.matcher, I.reducer);
|
|
5478
|
+
x && k.addDefaultCase(x);
|
|
5470
5479
|
});
|
|
5471
5480
|
}
|
|
5472
5481
|
const h = (m) => m, p = /* @__PURE__ */ new Map();
|
|
@@ -5478,8 +5487,8 @@ function af({
|
|
|
5478
5487
|
return y || (y = d()), y.getInitialState();
|
|
5479
5488
|
}
|
|
5480
5489
|
function v(m, S = !1) {
|
|
5481
|
-
function k
|
|
5482
|
-
let I =
|
|
5490
|
+
function x(k) {
|
|
5491
|
+
let I = k[m];
|
|
5483
5492
|
if (typeof I > "u") {
|
|
5484
5493
|
if (S)
|
|
5485
5494
|
I = w();
|
|
@@ -5488,12 +5497,12 @@ function af({
|
|
|
5488
5497
|
}
|
|
5489
5498
|
return I;
|
|
5490
5499
|
}
|
|
5491
|
-
function N(
|
|
5500
|
+
function N(k = h) {
|
|
5492
5501
|
const I = _o(p, S, () => /* @__PURE__ */ new WeakMap());
|
|
5493
|
-
return _o(I,
|
|
5502
|
+
return _o(I, k, () => {
|
|
5494
5503
|
const F = {};
|
|
5495
5504
|
for (const [le, H] of Object.entries(i.selectors ?? {}))
|
|
5496
|
-
F[le] =
|
|
5505
|
+
F[le] = uf(H, k, w, S);
|
|
5497
5506
|
return F;
|
|
5498
5507
|
});
|
|
5499
5508
|
}
|
|
@@ -5501,9 +5510,9 @@ function af({
|
|
|
5501
5510
|
reducerPath: m,
|
|
5502
5511
|
getSelectors: N,
|
|
5503
5512
|
get selectors() {
|
|
5504
|
-
return N(
|
|
5513
|
+
return N(x);
|
|
5505
5514
|
},
|
|
5506
|
-
selectSlice:
|
|
5515
|
+
selectSlice: x
|
|
5507
5516
|
};
|
|
5508
5517
|
}
|
|
5509
5518
|
const b = {
|
|
@@ -5515,13 +5524,13 @@ function af({
|
|
|
5515
5524
|
...v(s),
|
|
5516
5525
|
injectInto(m, {
|
|
5517
5526
|
reducerPath: S,
|
|
5518
|
-
...
|
|
5527
|
+
...x
|
|
5519
5528
|
} = {}) {
|
|
5520
5529
|
const N = S ?? s;
|
|
5521
5530
|
return m.inject({
|
|
5522
5531
|
reducerPath: N,
|
|
5523
5532
|
reducer: E
|
|
5524
|
-
},
|
|
5533
|
+
}, x), {
|
|
5525
5534
|
...b,
|
|
5526
5535
|
...v(N, !0)
|
|
5527
5536
|
};
|
|
@@ -5530,7 +5539,7 @@ function af({
|
|
|
5530
5539
|
return b;
|
|
5531
5540
|
};
|
|
5532
5541
|
}
|
|
5533
|
-
function
|
|
5542
|
+
function uf(e, t, r, n) {
|
|
5534
5543
|
function i(o, ...s) {
|
|
5535
5544
|
let a = t(o);
|
|
5536
5545
|
if (typeof a > "u") {
|
|
@@ -5543,8 +5552,8 @@ function cf(e, t, r, n) {
|
|
|
5543
5552
|
}
|
|
5544
5553
|
return i.unwrapped = e, i;
|
|
5545
5554
|
}
|
|
5546
|
-
var
|
|
5547
|
-
function
|
|
5555
|
+
var lf = /* @__PURE__ */ cf();
|
|
5556
|
+
function ff() {
|
|
5548
5557
|
function e(t, r) {
|
|
5549
5558
|
return {
|
|
5550
5559
|
_reducerDefinitionType: "asyncThunk",
|
|
@@ -5575,27 +5584,27 @@ function lf() {
|
|
|
5575
5584
|
asyncThunk: e
|
|
5576
5585
|
};
|
|
5577
5586
|
}
|
|
5578
|
-
function
|
|
5587
|
+
function df({
|
|
5579
5588
|
type: e,
|
|
5580
5589
|
reducerName: t,
|
|
5581
5590
|
createNotation: r
|
|
5582
5591
|
}, n, i) {
|
|
5583
5592
|
let o, s;
|
|
5584
5593
|
if ("reducer" in n) {
|
|
5585
|
-
if (r && !
|
|
5594
|
+
if (r && !pf(n))
|
|
5586
5595
|
throw new Error(process.env.NODE_ENV === "production" ? z(17) : "Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");
|
|
5587
5596
|
o = n.reducer, s = n.prepare;
|
|
5588
5597
|
} else
|
|
5589
5598
|
o = n;
|
|
5590
5599
|
i.addCase(e, o).exposeCaseReducer(t, o).exposeAction(t, s ? bo(e, s) : bo(e));
|
|
5591
5600
|
}
|
|
5592
|
-
function
|
|
5601
|
+
function hf(e) {
|
|
5593
5602
|
return e._reducerDefinitionType === "asyncThunk";
|
|
5594
5603
|
}
|
|
5595
|
-
function
|
|
5604
|
+
function pf(e) {
|
|
5596
5605
|
return e._reducerDefinitionType === "reducerWithPrepare";
|
|
5597
5606
|
}
|
|
5598
|
-
function
|
|
5607
|
+
function mf({
|
|
5599
5608
|
type: e,
|
|
5600
5609
|
reducerName: t
|
|
5601
5610
|
}, r, n, i) {
|
|
@@ -5610,33 +5619,34 @@ function pf({
|
|
|
5610
5619
|
options: f
|
|
5611
5620
|
} = r, d = i(e, o, f);
|
|
5612
5621
|
n.exposeAction(t, d), s && n.addCase(d.fulfilled, s), a && n.addCase(d.pending, a), u && n.addCase(d.rejected, u), l && n.addMatcher(d.settled, l), n.exposeCaseReducer(t, {
|
|
5613
|
-
fulfilled: s ||
|
|
5614
|
-
pending: a ||
|
|
5615
|
-
rejected: u ||
|
|
5616
|
-
settled: l ||
|
|
5622
|
+
fulfilled: s || ur,
|
|
5623
|
+
pending: a || ur,
|
|
5624
|
+
rejected: u || ur,
|
|
5625
|
+
settled: l || ur
|
|
5617
5626
|
});
|
|
5618
5627
|
}
|
|
5619
|
-
function
|
|
5628
|
+
function ur() {
|
|
5620
5629
|
}
|
|
5621
5630
|
function z(e) {
|
|
5622
5631
|
return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
5623
5632
|
}
|
|
5624
|
-
const
|
|
5633
|
+
const yf = {
|
|
5625
5634
|
cardPosition: "transit-to-home"
|
|
5626
|
-
}, Xs =
|
|
5635
|
+
}, Xs = lf({
|
|
5627
5636
|
name: "navigation",
|
|
5628
|
-
initialState:
|
|
5637
|
+
initialState: yf,
|
|
5629
5638
|
reducers: {
|
|
5630
5639
|
setCardState: (e, t) => (e.cardPosition = t.payload.state, e)
|
|
5631
5640
|
}
|
|
5632
|
-
}), { setCardState:
|
|
5641
|
+
}), { setCardState: Sf } = Xs.actions, gf = Is({
|
|
5633
5642
|
navigation: Xs.reducer
|
|
5634
|
-
}),
|
|
5635
|
-
reducer:
|
|
5643
|
+
}), Of = rf({
|
|
5644
|
+
reducer: gf
|
|
5636
5645
|
});
|
|
5637
5646
|
export {
|
|
5638
5647
|
Qc as AnimatedText,
|
|
5639
|
-
|
|
5640
|
-
wf as
|
|
5641
|
-
|
|
5648
|
+
Ef as BackButton,
|
|
5649
|
+
wf as BannerButton,
|
|
5650
|
+
_f as CircleIconButton,
|
|
5651
|
+
Of as ymyStore
|
|
5642
5652
|
};
|