ymy-components 0.0.22 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +68 -23
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +1090 -1019
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import te, { useState as gr, useRef as
|
|
3
|
-
import { unstable_batchedUpdates as
|
|
4
|
-
var rr = { exports: {} },
|
|
1
|
+
import * as zn from "react";
|
|
2
|
+
import te, { useState as gr, useRef as Se, useEffect as Ge, useLayoutEffect as Ea, forwardRef as Sa, useCallback as xa, useContext as Fn, useMemo as tr, useDebugValue as Ei, createElement as Oa } from "react";
|
|
3
|
+
import { unstable_batchedUpdates as ka } from "react-dom";
|
|
4
|
+
var rr = { exports: {} }, xt = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
7
7
|
* react-jsx-runtime.production.min.js
|
|
@@ -13,7 +13,7 @@ var rr = { exports: {} }, St = {};
|
|
|
13
13
|
*/
|
|
14
14
|
var Si;
|
|
15
15
|
function Na() {
|
|
16
|
-
if (Si) return
|
|
16
|
+
if (Si) return xt;
|
|
17
17
|
Si = 1;
|
|
18
18
|
var e = te, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
19
19
|
function s(a, u, l) {
|
|
@@ -23,7 +23,7 @@ function Na() {
|
|
|
23
23
|
if (a && a.defaultProps) for (f in u = a.defaultProps, u) d[f] === void 0 && (d[f] = u[f]);
|
|
24
24
|
return { $$typeof: t, type: a, key: h, ref: p, props: d, _owner: i.current };
|
|
25
25
|
}
|
|
26
|
-
return
|
|
26
|
+
return xt.Fragment = r, xt.jsx = s, xt.jsxs = s, xt;
|
|
27
27
|
}
|
|
28
28
|
var Ot = {};
|
|
29
29
|
/**
|
|
@@ -35,9 +35,9 @@ var Ot = {};
|
|
|
35
35
|
* This source code is licensed under the MIT license found in the
|
|
36
36
|
* LICENSE file in the root directory of this source tree.
|
|
37
37
|
*/
|
|
38
|
-
var
|
|
38
|
+
var xi;
|
|
39
39
|
function Pa() {
|
|
40
|
-
return
|
|
40
|
+
return xi || (xi = 1, process.env.NODE_ENV !== "production" && function() {
|
|
41
41
|
var e = te, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), a = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), y = Symbol.iterator, E = "@@iterator";
|
|
42
42
|
function w(c) {
|
|
43
43
|
if (c === null || typeof c != "object")
|
|
@@ -48,41 +48,41 @@ function Pa() {
|
|
|
48
48
|
var v = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
49
49
|
function b(c) {
|
|
50
50
|
{
|
|
51
|
-
for (var g = arguments.length,
|
|
52
|
-
|
|
53
|
-
m("error", c,
|
|
51
|
+
for (var g = arguments.length, x = new Array(g > 1 ? g - 1 : 0), P = 1; P < g; P++)
|
|
52
|
+
x[P - 1] = arguments[P];
|
|
53
|
+
m("error", c, x);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
function m(c, g,
|
|
56
|
+
function m(c, g, x) {
|
|
57
57
|
{
|
|
58
58
|
var P = v.ReactDebugCurrentFrame, j = P.getStackAddendum();
|
|
59
|
-
j !== "" && (g += "%s",
|
|
60
|
-
var $ =
|
|
61
|
-
return String(
|
|
59
|
+
j !== "" && (g += "%s", x = x.concat([j]));
|
|
60
|
+
var $ = x.map(function(I) {
|
|
61
|
+
return String(I);
|
|
62
62
|
});
|
|
63
63
|
$.unshift("Warning: " + g), Function.prototype.apply.call(console[c], console, $);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
var S = !1,
|
|
67
|
-
|
|
68
|
-
function
|
|
69
|
-
return !!(typeof c == "string" || typeof c == "function" || c === n || c === o ||
|
|
66
|
+
var S = !1, k = !1, N = !1, O = !1, D = !1, M;
|
|
67
|
+
M = Symbol.for("react.module.reference");
|
|
68
|
+
function fe(c) {
|
|
69
|
+
return !!(typeof c == "string" || typeof c == "function" || c === n || c === o || D || c === i || c === l || c === f || O || c === p || S || k || 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.
|
|
73
|
-
c.$$typeof ===
|
|
73
|
+
c.$$typeof === M || c.getModuleId !== void 0));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Y(c, g, x) {
|
|
76
76
|
var P = c.displayName;
|
|
77
77
|
if (P)
|
|
78
78
|
return P;
|
|
79
79
|
var j = g.displayName || g.name || "";
|
|
80
|
-
return j !== "" ?
|
|
80
|
+
return j !== "" ? x + "(" + j + ")" : x;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function de(c) {
|
|
83
83
|
return c.displayName || "Context";
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function W(c) {
|
|
86
86
|
if (c == null)
|
|
87
87
|
return null;
|
|
88
88
|
if (typeof c.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
|
|
@@ -107,19 +107,19 @@ function Pa() {
|
|
|
107
107
|
switch (c.$$typeof) {
|
|
108
108
|
case a:
|
|
109
109
|
var g = c;
|
|
110
|
-
return
|
|
110
|
+
return de(g) + ".Consumer";
|
|
111
111
|
case s:
|
|
112
|
-
var
|
|
113
|
-
return
|
|
112
|
+
var x = c;
|
|
113
|
+
return de(x._context) + ".Provider";
|
|
114
114
|
case u:
|
|
115
|
-
return
|
|
115
|
+
return Y(c, c.render, "ForwardRef");
|
|
116
116
|
case d:
|
|
117
117
|
var P = c.displayName || null;
|
|
118
|
-
return P !== null ? P :
|
|
118
|
+
return P !== null ? P : W(c.type) || "Memo";
|
|
119
119
|
case h: {
|
|
120
|
-
var j = c, $ = j._payload,
|
|
120
|
+
var j = c, $ = j._payload, I = j._init;
|
|
121
121
|
try {
|
|
122
|
-
return
|
|
122
|
+
return W(I($));
|
|
123
123
|
} catch {
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
@@ -127,18 +127,18 @@ function Pa() {
|
|
|
127
127
|
}
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
130
|
-
var
|
|
131
|
-
function
|
|
130
|
+
var he = Object.assign, ze = 0, Jt, tt, _t, se, Ce, Re, K;
|
|
131
|
+
function rt() {
|
|
132
132
|
}
|
|
133
|
-
|
|
134
|
-
function
|
|
133
|
+
rt.__reactDisabledLog = !0;
|
|
134
|
+
function Et() {
|
|
135
135
|
{
|
|
136
|
-
if (
|
|
137
|
-
Jt = console.log,
|
|
136
|
+
if (ze === 0) {
|
|
137
|
+
Jt = console.log, tt = console.info, _t = console.warn, se = console.error, Ce = console.group, Re = console.groupCollapsed, K = console.groupEnd;
|
|
138
138
|
var c = {
|
|
139
139
|
configurable: !0,
|
|
140
140
|
enumerable: !0,
|
|
141
|
-
value:
|
|
141
|
+
value: rt,
|
|
142
142
|
writable: !0
|
|
143
143
|
};
|
|
144
144
|
Object.defineProperties(console, {
|
|
@@ -151,100 +151,100 @@ function Pa() {
|
|
|
151
151
|
groupEnd: c
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
-
|
|
154
|
+
ze++;
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function nt() {
|
|
158
158
|
{
|
|
159
|
-
if (
|
|
159
|
+
if (ze--, ze === 0) {
|
|
160
160
|
var c = {
|
|
161
161
|
configurable: !0,
|
|
162
162
|
enumerable: !0,
|
|
163
163
|
writable: !0
|
|
164
164
|
};
|
|
165
165
|
Object.defineProperties(console, {
|
|
166
|
-
log:
|
|
166
|
+
log: he({}, c, {
|
|
167
167
|
value: Jt
|
|
168
168
|
}),
|
|
169
|
-
info:
|
|
170
|
-
value:
|
|
169
|
+
info: he({}, c, {
|
|
170
|
+
value: tt
|
|
171
171
|
}),
|
|
172
|
-
warn:
|
|
173
|
-
value:
|
|
172
|
+
warn: he({}, c, {
|
|
173
|
+
value: _t
|
|
174
174
|
}),
|
|
175
|
-
error:
|
|
176
|
-
value:
|
|
175
|
+
error: he({}, c, {
|
|
176
|
+
value: se
|
|
177
177
|
}),
|
|
178
|
-
group:
|
|
179
|
-
value: Pe
|
|
180
|
-
}),
|
|
181
|
-
groupCollapsed: de({}, c, {
|
|
178
|
+
group: he({}, c, {
|
|
182
179
|
value: Ce
|
|
183
180
|
}),
|
|
184
|
-
|
|
181
|
+
groupCollapsed: he({}, c, {
|
|
182
|
+
value: Re
|
|
183
|
+
}),
|
|
184
|
+
groupEnd: he({}, c, {
|
|
185
185
|
value: K
|
|
186
186
|
})
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
|
-
|
|
189
|
+
ze < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
var Oe = v.ReactCurrentDispatcher,
|
|
193
|
-
function
|
|
192
|
+
var Oe = v.ReactCurrentDispatcher, Ae;
|
|
193
|
+
function pe(c, g, x) {
|
|
194
194
|
{
|
|
195
|
-
if (
|
|
195
|
+
if (Ae === void 0)
|
|
196
196
|
try {
|
|
197
197
|
throw Error();
|
|
198
198
|
} catch (j) {
|
|
199
199
|
var P = j.stack.trim().match(/\n( *(at )?)/);
|
|
200
|
-
|
|
200
|
+
Ae = P && P[1] || "";
|
|
201
201
|
}
|
|
202
202
|
return `
|
|
203
|
-
` +
|
|
203
|
+
` + Ae + c;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
var
|
|
206
|
+
var me = !1, Te;
|
|
207
207
|
{
|
|
208
|
-
var
|
|
209
|
-
|
|
208
|
+
var it = typeof WeakMap == "function" ? WeakMap : Map;
|
|
209
|
+
Te = new it();
|
|
210
210
|
}
|
|
211
|
-
function
|
|
212
|
-
if (!c ||
|
|
211
|
+
function ye(c, g) {
|
|
212
|
+
if (!c || me)
|
|
213
213
|
return "";
|
|
214
214
|
{
|
|
215
|
-
var
|
|
216
|
-
if (
|
|
217
|
-
return
|
|
215
|
+
var x = Te.get(c);
|
|
216
|
+
if (x !== void 0)
|
|
217
|
+
return x;
|
|
218
218
|
}
|
|
219
219
|
var P;
|
|
220
|
-
|
|
220
|
+
me = !0;
|
|
221
221
|
var j = Error.prepareStackTrace;
|
|
222
222
|
Error.prepareStackTrace = void 0;
|
|
223
223
|
var $;
|
|
224
|
-
$ = Oe.current, Oe.current = null,
|
|
224
|
+
$ = Oe.current, Oe.current = null, Et();
|
|
225
225
|
try {
|
|
226
226
|
if (g) {
|
|
227
|
-
var
|
|
227
|
+
var I = function() {
|
|
228
228
|
throw Error();
|
|
229
229
|
};
|
|
230
|
-
if (Object.defineProperty(
|
|
230
|
+
if (Object.defineProperty(I.prototype, "props", {
|
|
231
231
|
set: function() {
|
|
232
232
|
throw Error();
|
|
233
233
|
}
|
|
234
234
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
235
235
|
try {
|
|
236
|
-
Reflect.construct(
|
|
236
|
+
Reflect.construct(I, []);
|
|
237
237
|
} catch (X) {
|
|
238
238
|
P = X;
|
|
239
239
|
}
|
|
240
|
-
Reflect.construct(c, [],
|
|
240
|
+
Reflect.construct(c, [], I);
|
|
241
241
|
} else {
|
|
242
242
|
try {
|
|
243
|
-
|
|
243
|
+
I.call();
|
|
244
244
|
} catch (X) {
|
|
245
245
|
P = X;
|
|
246
246
|
}
|
|
247
|
-
c.call(
|
|
247
|
+
c.call(I.prototype);
|
|
248
248
|
}
|
|
249
249
|
} else {
|
|
250
250
|
try {
|
|
@@ -258,87 +258,87 @@ 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
|
-
`),
|
|
261
|
+
`), B = A.length - 1, U = Q.length - 1; B >= 1 && U >= 0 && A[B] !== Q[U]; )
|
|
262
262
|
U--;
|
|
263
|
-
for (;
|
|
264
|
-
if (A[
|
|
265
|
-
if (
|
|
263
|
+
for (; B >= 1 && U >= 0; B--, U--)
|
|
264
|
+
if (A[B] !== Q[U]) {
|
|
265
|
+
if (B !== 1 || U !== 1)
|
|
266
266
|
do
|
|
267
|
-
if (
|
|
268
|
-
var
|
|
269
|
-
` + A[
|
|
270
|
-
return c.displayName &&
|
|
267
|
+
if (B--, U--, U < 0 || A[B] !== Q[U]) {
|
|
268
|
+
var ae = `
|
|
269
|
+
` + A[B].replace(" at new ", " at ");
|
|
270
|
+
return c.displayName && ae.includes("<anonymous>") && (ae = ae.replace("<anonymous>", c.displayName)), typeof c == "function" && Te.set(c, ae), ae;
|
|
271
271
|
}
|
|
272
|
-
while (
|
|
272
|
+
while (B >= 1 && U >= 0);
|
|
273
273
|
break;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
} finally {
|
|
277
|
-
|
|
277
|
+
me = !1, Oe.current = $, nt(), Error.prepareStackTrace = j;
|
|
278
278
|
}
|
|
279
|
-
var
|
|
280
|
-
return typeof c == "function" &&
|
|
279
|
+
var st = c ? c.displayName || c.name : "", Fe = st ? pe(st) : "";
|
|
280
|
+
return typeof c == "function" && Te.set(c, Fe), Fe;
|
|
281
281
|
}
|
|
282
|
-
function Js(c, g,
|
|
283
|
-
return
|
|
282
|
+
function Js(c, g, x) {
|
|
283
|
+
return ye(c, !1);
|
|
284
284
|
}
|
|
285
285
|
function Zs(c) {
|
|
286
286
|
var g = c.prototype;
|
|
287
287
|
return !!(g && g.isReactComponent);
|
|
288
288
|
}
|
|
289
|
-
function Zt(c, g,
|
|
289
|
+
function Zt(c, g, x) {
|
|
290
290
|
if (c == null)
|
|
291
291
|
return "";
|
|
292
292
|
if (typeof c == "function")
|
|
293
|
-
return
|
|
293
|
+
return ye(c, Zs(c));
|
|
294
294
|
if (typeof c == "string")
|
|
295
|
-
return
|
|
295
|
+
return pe(c);
|
|
296
296
|
switch (c) {
|
|
297
297
|
case l:
|
|
298
|
-
return
|
|
298
|
+
return pe("Suspense");
|
|
299
299
|
case f:
|
|
300
|
-
return
|
|
300
|
+
return pe("SuspenseList");
|
|
301
301
|
}
|
|
302
302
|
if (typeof c == "object")
|
|
303
303
|
switch (c.$$typeof) {
|
|
304
304
|
case u:
|
|
305
305
|
return Js(c.render);
|
|
306
306
|
case d:
|
|
307
|
-
return Zt(c.type, g,
|
|
307
|
+
return Zt(c.type, g, x);
|
|
308
308
|
case h: {
|
|
309
309
|
var P = c, j = P._payload, $ = P._init;
|
|
310
310
|
try {
|
|
311
|
-
return Zt($(j), g,
|
|
311
|
+
return Zt($(j), g, x);
|
|
312
312
|
} catch {
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
return "";
|
|
317
317
|
}
|
|
318
|
-
var
|
|
318
|
+
var St = Object.prototype.hasOwnProperty, ci = {}, ui = v.ReactDebugCurrentFrame;
|
|
319
319
|
function er(c) {
|
|
320
320
|
if (c) {
|
|
321
|
-
var g = c._owner,
|
|
322
|
-
ui.setExtraStackFrame(
|
|
321
|
+
var g = c._owner, x = Zt(c.type, c._source, g ? g.type : null);
|
|
322
|
+
ui.setExtraStackFrame(x);
|
|
323
323
|
} else
|
|
324
324
|
ui.setExtraStackFrame(null);
|
|
325
325
|
}
|
|
326
|
-
function ea(c, g,
|
|
326
|
+
function ea(c, g, x, P, j) {
|
|
327
327
|
{
|
|
328
|
-
var $ = Function.call.bind(
|
|
329
|
-
for (var
|
|
330
|
-
if ($(c,
|
|
328
|
+
var $ = Function.call.bind(St);
|
|
329
|
+
for (var I in c)
|
|
330
|
+
if ($(c, I)) {
|
|
331
331
|
var A = void 0;
|
|
332
332
|
try {
|
|
333
|
-
if (typeof c[
|
|
334
|
-
var Q = Error((P || "React class") + ": " +
|
|
333
|
+
if (typeof c[I] != "function") {
|
|
334
|
+
var Q = Error((P || "React class") + ": " + x + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
335
335
|
throw Q.name = "Invariant Violation", Q;
|
|
336
336
|
}
|
|
337
|
-
A = c[
|
|
338
|
-
} catch (
|
|
339
|
-
A =
|
|
337
|
+
A = c[I](g, I, P, x, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
338
|
+
} catch (B) {
|
|
339
|
+
A = B;
|
|
340
340
|
}
|
|
341
|
-
A && !(A instanceof Error) && (er(j), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", P || "React class",
|
|
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", x, I, typeof A), er(null)), A instanceof Error && !(A.message in ci) && (ci[A.message] = !0, er(j), b("Failed %s type: %s", x, A.message), er(null));
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
}
|
|
@@ -348,8 +348,8 @@ function Pa() {
|
|
|
348
348
|
}
|
|
349
349
|
function ra(c) {
|
|
350
350
|
{
|
|
351
|
-
var g = typeof Symbol == "function" && Symbol.toStringTag,
|
|
352
|
-
return
|
|
351
|
+
var g = typeof Symbol == "function" && Symbol.toStringTag, x = g && c[Symbol.toStringTag] || c.constructor.name || "Object";
|
|
352
|
+
return x;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
function na(c) {
|
|
@@ -373,7 +373,7 @@ function Pa() {
|
|
|
373
373
|
__source: !0
|
|
374
374
|
}, hi, pi;
|
|
375
375
|
function oa(c) {
|
|
376
|
-
if (
|
|
376
|
+
if (St.call(c, "ref")) {
|
|
377
377
|
var g = Object.getOwnPropertyDescriptor(c, "ref").get;
|
|
378
378
|
if (g && g.isReactWarning)
|
|
379
379
|
return !1;
|
|
@@ -381,7 +381,7 @@ function Pa() {
|
|
|
381
381
|
return c.ref !== void 0;
|
|
382
382
|
}
|
|
383
383
|
function sa(c) {
|
|
384
|
-
if (
|
|
384
|
+
if (St.call(c, "key")) {
|
|
385
385
|
var g = Object.getOwnPropertyDescriptor(c, "key").get;
|
|
386
386
|
if (g && g.isReactWarning)
|
|
387
387
|
return !1;
|
|
@@ -393,35 +393,35 @@ function Pa() {
|
|
|
393
393
|
}
|
|
394
394
|
function ca(c, g) {
|
|
395
395
|
{
|
|
396
|
-
var
|
|
396
|
+
var x = function() {
|
|
397
397
|
hi || (hi = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", g));
|
|
398
398
|
};
|
|
399
|
-
|
|
400
|
-
get:
|
|
399
|
+
x.isReactWarning = !0, Object.defineProperty(c, "key", {
|
|
400
|
+
get: x,
|
|
401
401
|
configurable: !0
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
function ua(c, g) {
|
|
406
406
|
{
|
|
407
|
-
var
|
|
407
|
+
var x = function() {
|
|
408
408
|
pi || (pi = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", g));
|
|
409
409
|
};
|
|
410
|
-
|
|
411
|
-
get:
|
|
410
|
+
x.isReactWarning = !0, Object.defineProperty(c, "ref", {
|
|
411
|
+
get: x,
|
|
412
412
|
configurable: !0
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
var la = function(c, g,
|
|
416
|
+
var la = function(c, g, x, P, j, $, I) {
|
|
417
417
|
var A = {
|
|
418
418
|
// This tag allows us to uniquely identify this as a React Element
|
|
419
419
|
$$typeof: t,
|
|
420
420
|
// Built-in properties that belong on the element
|
|
421
421
|
type: c,
|
|
422
422
|
key: g,
|
|
423
|
-
ref:
|
|
424
|
-
props:
|
|
423
|
+
ref: x,
|
|
424
|
+
props: I,
|
|
425
425
|
// Record the component responsible for creating this element.
|
|
426
426
|
_owner: $
|
|
427
427
|
};
|
|
@@ -442,29 +442,29 @@ function Pa() {
|
|
|
442
442
|
value: j
|
|
443
443
|
}), Object.freeze && (Object.freeze(A.props), Object.freeze(A)), A;
|
|
444
444
|
};
|
|
445
|
-
function fa(c, g,
|
|
445
|
+
function fa(c, g, x, P, j) {
|
|
446
446
|
{
|
|
447
|
-
var $,
|
|
448
|
-
|
|
447
|
+
var $, I = {}, A = null, Q = null;
|
|
448
|
+
x !== void 0 && (fi(x), A = "" + x), sa(g) && (fi(g.key), A = "" + g.key), oa(g) && (Q = g.ref, aa(g, j));
|
|
449
449
|
for ($ in g)
|
|
450
|
-
|
|
450
|
+
St.call(g, $) && !ia.hasOwnProperty($) && (I[$] = g[$]);
|
|
451
451
|
if (c && c.defaultProps) {
|
|
452
|
-
var
|
|
453
|
-
for ($ in
|
|
454
|
-
|
|
452
|
+
var B = c.defaultProps;
|
|
453
|
+
for ($ in B)
|
|
454
|
+
I[$] === void 0 && (I[$] = B[$]);
|
|
455
455
|
}
|
|
456
456
|
if (A || Q) {
|
|
457
457
|
var U = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
|
|
458
|
-
A && ca(
|
|
458
|
+
A && ca(I, U), Q && ua(I, U);
|
|
459
459
|
}
|
|
460
|
-
return la(c, A, Q, j, P, di.current,
|
|
460
|
+
return la(c, A, Q, j, P, di.current, I);
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
var Qr = v.ReactCurrentOwner, mi = v.ReactDebugCurrentFrame;
|
|
464
|
-
function
|
|
464
|
+
function ot(c) {
|
|
465
465
|
if (c) {
|
|
466
|
-
var g = c._owner,
|
|
467
|
-
mi.setExtraStackFrame(
|
|
466
|
+
var g = c._owner, x = Zt(c.type, c._source, g ? g.type : null);
|
|
467
|
+
mi.setExtraStackFrame(x);
|
|
468
468
|
} else
|
|
469
469
|
mi.setExtraStackFrame(null);
|
|
470
470
|
}
|
|
@@ -476,7 +476,7 @@ function Pa() {
|
|
|
476
476
|
function yi() {
|
|
477
477
|
{
|
|
478
478
|
if (Qr.current) {
|
|
479
|
-
var c =
|
|
479
|
+
var c = W(Qr.current.type);
|
|
480
480
|
if (c)
|
|
481
481
|
return `
|
|
482
482
|
|
|
@@ -493,10 +493,10 @@ Check the render method of \`` + c + "`.";
|
|
|
493
493
|
{
|
|
494
494
|
var g = yi();
|
|
495
495
|
if (!g) {
|
|
496
|
-
var
|
|
497
|
-
|
|
496
|
+
var x = typeof c == "string" ? c : c.displayName || c.name;
|
|
497
|
+
x && (g = `
|
|
498
498
|
|
|
499
|
-
Check the top-level render call using <` +
|
|
499
|
+
Check the top-level render call using <` + x + ">.");
|
|
500
500
|
}
|
|
501
501
|
return g;
|
|
502
502
|
}
|
|
@@ -506,12 +506,12 @@ Check the top-level render call using <` + O + ">.");
|
|
|
506
506
|
if (!c._store || c._store.validated || c.key != null)
|
|
507
507
|
return;
|
|
508
508
|
c._store.validated = !0;
|
|
509
|
-
var
|
|
510
|
-
if (gi[
|
|
509
|
+
var x = ha(g);
|
|
510
|
+
if (gi[x])
|
|
511
511
|
return;
|
|
512
|
-
gi[
|
|
512
|
+
gi[x] = !0;
|
|
513
513
|
var P = "";
|
|
514
|
-
c && c._owner && c._owner !== Qr.current && (P = " It was passed a child from " +
|
|
514
|
+
c && c._owner && c._owner !== Qr.current && (P = " It was passed a child from " + W(c._owner.type) + "."), ot(c), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', x, P), ot(null);
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
function bi(c, g) {
|
|
@@ -519,8 +519,8 @@ Check the top-level render call using <` + O + ">.");
|
|
|
519
519
|
if (typeof c != "object")
|
|
520
520
|
return;
|
|
521
521
|
if (Kr(c))
|
|
522
|
-
for (var
|
|
523
|
-
var P = c[
|
|
522
|
+
for (var x = 0; x < c.length; x++) {
|
|
523
|
+
var P = c[x];
|
|
524
524
|
Jr(P) && vi(P, g);
|
|
525
525
|
}
|
|
526
526
|
else if (Jr(c))
|
|
@@ -528,8 +528,8 @@ Check the top-level render call using <` + O + ">.");
|
|
|
528
528
|
else if (c) {
|
|
529
529
|
var j = w(c);
|
|
530
530
|
if (typeof j == "function" && j !== c.entries)
|
|
531
|
-
for (var $ = j.call(c),
|
|
532
|
-
Jr(
|
|
531
|
+
for (var $ = j.call(c), I; !(I = $.next()).done; )
|
|
532
|
+
Jr(I.value) && vi(I.value, g);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
}
|
|
@@ -538,21 +538,21 @@ Check the top-level render call using <` + O + ">.");
|
|
|
538
538
|
var g = c.type;
|
|
539
539
|
if (g == null || typeof g == "string")
|
|
540
540
|
return;
|
|
541
|
-
var
|
|
541
|
+
var x;
|
|
542
542
|
if (typeof g == "function")
|
|
543
|
-
|
|
543
|
+
x = g.propTypes;
|
|
544
544
|
else if (typeof g == "object" && (g.$$typeof === u || // Note: Memo only checks outer props here.
|
|
545
545
|
// Inner props are checked in the reconciler.
|
|
546
546
|
g.$$typeof === d))
|
|
547
|
-
|
|
547
|
+
x = g.propTypes;
|
|
548
548
|
else
|
|
549
549
|
return;
|
|
550
|
-
if (
|
|
551
|
-
var P =
|
|
552
|
-
ea(
|
|
550
|
+
if (x) {
|
|
551
|
+
var P = W(g);
|
|
552
|
+
ea(x, c.props, "prop", P, c);
|
|
553
553
|
} else if (g.PropTypes !== void 0 && !Xr) {
|
|
554
554
|
Xr = !0;
|
|
555
|
-
var j =
|
|
555
|
+
var j = W(g);
|
|
556
556
|
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", j || "Unknown");
|
|
557
557
|
}
|
|
558
558
|
typeof g.getDefaultProps == "function" && !g.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -560,94 +560,94 @@ Check the top-level render call using <` + O + ">.");
|
|
|
560
560
|
}
|
|
561
561
|
function ma(c) {
|
|
562
562
|
{
|
|
563
|
-
for (var g = Object.keys(c.props),
|
|
564
|
-
var P = g[
|
|
563
|
+
for (var g = Object.keys(c.props), x = 0; x < g.length; x++) {
|
|
564
|
+
var P = g[x];
|
|
565
565
|
if (P !== "children" && P !== "key") {
|
|
566
|
-
|
|
566
|
+
ot(c), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", P), ot(null);
|
|
567
567
|
break;
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
|
-
c.ref !== null && (
|
|
570
|
+
c.ref !== null && (ot(c), b("Invalid attribute `ref` supplied to `React.Fragment`."), ot(null));
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
var wi = {};
|
|
574
|
-
function _i(c, g,
|
|
574
|
+
function _i(c, g, x, P, j, $) {
|
|
575
575
|
{
|
|
576
|
-
var
|
|
577
|
-
if (!
|
|
576
|
+
var I = fe(c);
|
|
577
|
+
if (!I) {
|
|
578
578
|
var A = "";
|
|
579
579
|
(c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (A += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
580
580
|
var Q = da();
|
|
581
581
|
Q ? A += Q : A += yi();
|
|
582
|
-
var
|
|
583
|
-
c === null ?
|
|
582
|
+
var B;
|
|
583
|
+
c === null ? B = "null" : Kr(c) ? B = "array" : c !== void 0 && c.$$typeof === t ? (B = "<" + (W(c.type) || "Unknown") + " />", A = " Did you accidentally export a JSX literal instead of a component?") : B = 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", B, A);
|
|
584
584
|
}
|
|
585
|
-
var U = fa(c, g,
|
|
585
|
+
var U = fa(c, g, x, j, $);
|
|
586
586
|
if (U == null)
|
|
587
587
|
return U;
|
|
588
|
-
if (
|
|
589
|
-
var
|
|
590
|
-
if (
|
|
588
|
+
if (I) {
|
|
589
|
+
var ae = g.children;
|
|
590
|
+
if (ae !== void 0)
|
|
591
591
|
if (P)
|
|
592
|
-
if (Kr(
|
|
593
|
-
for (var
|
|
594
|
-
bi(
|
|
595
|
-
Object.freeze && Object.freeze(
|
|
592
|
+
if (Kr(ae)) {
|
|
593
|
+
for (var st = 0; st < ae.length; st++)
|
|
594
|
+
bi(ae[st], c);
|
|
595
|
+
Object.freeze && Object.freeze(ae);
|
|
596
596
|
} else
|
|
597
597
|
b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
598
598
|
else
|
|
599
|
-
bi(
|
|
599
|
+
bi(ae, c);
|
|
600
600
|
}
|
|
601
|
-
if (
|
|
602
|
-
var
|
|
601
|
+
if (St.call(g, "key")) {
|
|
602
|
+
var Fe = W(c), X = Object.keys(g).filter(function(_a) {
|
|
603
603
|
return _a !== "key";
|
|
604
604
|
}), Zr = X.length > 0 ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
605
|
-
if (!wi[
|
|
605
|
+
if (!wi[Fe + Zr]) {
|
|
606
606
|
var wa = X.length > 0 ? "{" + X.join(": ..., ") + ": ...}" : "{}";
|
|
607
607
|
b(`A props object containing a "key" prop is being spread into JSX:
|
|
608
608
|
let props = %s;
|
|
609
609
|
<%s {...props} />
|
|
610
610
|
React keys must be passed directly to JSX without using spread:
|
|
611
611
|
let props = %s;
|
|
612
|
-
<%s key={someKey} {...props} />`, Zr,
|
|
612
|
+
<%s key={someKey} {...props} />`, Zr, Fe, wa, Fe), wi[Fe + Zr] = !0;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
return c === n ? ma(U) : pa(U), U;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
function ya(c, g,
|
|
619
|
-
return _i(c, g,
|
|
618
|
+
function ya(c, g, x) {
|
|
619
|
+
return _i(c, g, x, !0);
|
|
620
620
|
}
|
|
621
|
-
function ga(c, g,
|
|
622
|
-
return _i(c, g,
|
|
621
|
+
function ga(c, g, x) {
|
|
622
|
+
return _i(c, g, x, !1);
|
|
623
623
|
}
|
|
624
624
|
var va = ga, ba = ya;
|
|
625
625
|
Ot.Fragment = n, Ot.jsx = va, Ot.jsxs = ba;
|
|
626
626
|
}()), Ot;
|
|
627
627
|
}
|
|
628
|
-
var
|
|
628
|
+
var Oi;
|
|
629
629
|
function Ca() {
|
|
630
|
-
return
|
|
631
|
-
}
|
|
632
|
-
var
|
|
633
|
-
C.write = (e) =>
|
|
634
|
-
var Ar =
|
|
635
|
-
C.onStart = (e) =>
|
|
636
|
-
var
|
|
637
|
-
C.onFrame = (e) =>
|
|
638
|
-
var qn =
|
|
639
|
-
C.onFinish = (e) =>
|
|
640
|
-
var
|
|
630
|
+
return Oi || (Oi = 1, process.env.NODE_ENV === "production" ? rr.exports = Na() : rr.exports = Pa()), rr.exports;
|
|
631
|
+
}
|
|
632
|
+
var L = Ca(), Ln = Kt(), C = (e) => Gt(e, Ln), Bn = Kt();
|
|
633
|
+
C.write = (e) => Gt(e, Bn);
|
|
634
|
+
var Ar = Kt();
|
|
635
|
+
C.onStart = (e) => Gt(e, Ar);
|
|
636
|
+
var Un = Kt();
|
|
637
|
+
C.onFrame = (e) => Gt(e, Un);
|
|
638
|
+
var qn = Kt();
|
|
639
|
+
C.onFinish = (e) => Gt(e, qn);
|
|
640
|
+
var ut = [];
|
|
641
641
|
C.setTimeout = (e, t) => {
|
|
642
642
|
const r = C.now() + t, n = () => {
|
|
643
|
-
const o =
|
|
644
|
-
~o &&
|
|
643
|
+
const o = ut.findIndex((s) => s.cancel == n);
|
|
644
|
+
~o && ut.splice(o, 1), $e -= ~o ? 1 : 0;
|
|
645
645
|
}, i = { time: r, handler: e, cancel: n };
|
|
646
|
-
return
|
|
646
|
+
return ut.splice(So(r), 0, i), $e += 1, xo(), i;
|
|
647
647
|
};
|
|
648
|
-
var So = (e) => ~(~
|
|
648
|
+
var So = (e) => ~(~ut.findIndex((t) => t.time > e) || ~ut.length);
|
|
649
649
|
C.cancel = (e) => {
|
|
650
|
-
Ar.delete(e),
|
|
650
|
+
Ar.delete(e), Un.delete(e), qn.delete(e), Ln.delete(e), Bn.delete(e);
|
|
651
651
|
};
|
|
652
652
|
C.sync = (e) => {
|
|
653
653
|
pn = !0, C.batchedUpdates(e), pn = !1;
|
|
@@ -681,42 +681,42 @@ 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
|
+
) : ko();
|
|
685
685
|
};
|
|
686
|
-
var
|
|
687
|
-
function
|
|
688
|
-
pn ? (t.delete(e), e(0)) : (t.add(e),
|
|
686
|
+
var Ve = -1, $e = 0, pn = !1;
|
|
687
|
+
function Gt(e, t) {
|
|
688
|
+
pn ? (t.delete(e), e(0)) : (t.add(e), xo());
|
|
689
689
|
}
|
|
690
|
-
function
|
|
691
|
-
|
|
690
|
+
function xo() {
|
|
691
|
+
Ve < 0 && (Ve = 0, C.frameLoop !== "demand" && Wn(Oo));
|
|
692
692
|
}
|
|
693
693
|
function Ra() {
|
|
694
|
-
|
|
694
|
+
Ve = -1;
|
|
695
695
|
}
|
|
696
|
-
function
|
|
697
|
-
~
|
|
696
|
+
function Oo() {
|
|
697
|
+
~Ve && (Wn(Oo), C.batchedUpdates(ko));
|
|
698
698
|
}
|
|
699
|
-
function
|
|
700
|
-
const e =
|
|
701
|
-
|
|
702
|
-
const t = So(
|
|
703
|
-
if (t && (No(
|
|
699
|
+
function ko() {
|
|
700
|
+
const e = Ve;
|
|
701
|
+
Ve = C.now();
|
|
702
|
+
const t = So(Ve);
|
|
703
|
+
if (t && (No(ut.splice(0, t), (r) => r.handler()), $e -= t), !$e) {
|
|
704
704
|
Ra();
|
|
705
705
|
return;
|
|
706
706
|
}
|
|
707
|
-
Ar.flush(), Ln.flush(e ? Math.min(64,
|
|
707
|
+
Ar.flush(), Ln.flush(e ? Math.min(64, Ve - e) : 16.667), Un.flush(), Bn.flush(), qn.flush();
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function Kt() {
|
|
710
710
|
let e = /* @__PURE__ */ new Set(), t = e;
|
|
711
711
|
return {
|
|
712
712
|
add(r) {
|
|
713
|
-
|
|
713
|
+
$e += t == e && !e.has(r) ? 1 : 0, e.add(r);
|
|
714
714
|
},
|
|
715
715
|
delete(r) {
|
|
716
|
-
return
|
|
716
|
+
return $e -= t == e && e.has(r) ? 1 : 0, e.delete(r);
|
|
717
717
|
},
|
|
718
718
|
flush(r) {
|
|
719
|
-
t.size && (e = /* @__PURE__ */ new Set(),
|
|
719
|
+
t.size && (e = /* @__PURE__ */ new Set(), $e -= t.size, No(t, (n) => n(r) && e.add(n)), $e += e.size, t = e);
|
|
720
720
|
}
|
|
721
721
|
};
|
|
722
722
|
}
|
|
@@ -732,10 +732,10 @@ function No(e, t) {
|
|
|
732
732
|
var Aa = Object.defineProperty, Ta = (e, t) => {
|
|
733
733
|
for (var r in t)
|
|
734
734
|
Aa(e, r, { get: t[r], enumerable: !0 });
|
|
735
|
-
},
|
|
736
|
-
Ta(
|
|
737
|
-
assign: () =>
|
|
738
|
-
colors: () =>
|
|
735
|
+
}, we = {};
|
|
736
|
+
Ta(we, {
|
|
737
|
+
assign: () => Da,
|
|
738
|
+
colors: () => Me,
|
|
739
739
|
createStringInterpolator: () => Yn,
|
|
740
740
|
skipAnimation: () => Co,
|
|
741
741
|
to: () => Po,
|
|
@@ -743,7 +743,7 @@ Ta(be, {
|
|
|
743
743
|
});
|
|
744
744
|
function mn() {
|
|
745
745
|
}
|
|
746
|
-
var
|
|
746
|
+
var Ia = (e, t, r) => Object.defineProperty(e, t, { value: r, writable: !0, configurable: !0 }), _ = {
|
|
747
747
|
arr: Array.isArray,
|
|
748
748
|
obj: (e) => !!e && e.constructor.name === "Object",
|
|
749
749
|
fun: (e) => typeof e == "function",
|
|
@@ -763,7 +763,7 @@ function ke(e, t) {
|
|
|
763
763
|
return e === t;
|
|
764
764
|
}
|
|
765
765
|
var T = (e, t) => e.forEach(t);
|
|
766
|
-
function
|
|
766
|
+
function xe(e, t, r) {
|
|
767
767
|
if (_.arr(e)) {
|
|
768
768
|
for (let n = 0; n < e.length; n++)
|
|
769
769
|
t.call(r, e[n], `${n}`);
|
|
@@ -772,22 +772,22 @@ function Se(e, t, r) {
|
|
|
772
772
|
for (const n in e)
|
|
773
773
|
e.hasOwnProperty(n) && t.call(r, e[n], n);
|
|
774
774
|
}
|
|
775
|
-
var
|
|
776
|
-
function
|
|
775
|
+
var ne = (e) => _.und(e) ? [] : _.arr(e) ? e : [e];
|
|
776
|
+
function Tt(e, t) {
|
|
777
777
|
if (e.size) {
|
|
778
778
|
const r = Array.from(e);
|
|
779
779
|
e.clear(), T(r, t);
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
|
-
var
|
|
783
|
-
e.to && (Po = e.to), e.now && (C.now = e.now), e.colors !== void 0 && (
|
|
784
|
-
},
|
|
782
|
+
var Ct = (e, ...t) => Tt(e, (r) => r(...t)), Hn = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), Yn, Po, Me = null, Co = !1, Gn = mn, Da = (e) => {
|
|
783
|
+
e.to && (Po = e.to), e.now && (C.now = e.now), e.colors !== void 0 && (Me = e.colors), e.skipAnimation != null && (Co = e.skipAnimation), e.createStringInterpolator && (Yn = e.createStringInterpolator), e.requestAnimationFrame && C.use(e.requestAnimationFrame), e.batchedUpdates && (C.batchedUpdates = e.batchedUpdates), e.willAdvance && (Gn = e.willAdvance), e.frameLoop && (C.frameLoop = e.frameLoop);
|
|
784
|
+
}, It = /* @__PURE__ */ new Set(), ue = [], en = [], vr = 0, Tr = {
|
|
785
785
|
get idle() {
|
|
786
|
-
return !
|
|
786
|
+
return !It.size && !ue.length;
|
|
787
787
|
},
|
|
788
788
|
/** Advance the given animation on every frame until idle. */
|
|
789
789
|
start(e) {
|
|
790
|
-
vr > e.priority ? (
|
|
790
|
+
vr > e.priority ? (It.add(e), C.onStart(ja)) : (Ro(e), C(yn));
|
|
791
791
|
},
|
|
792
792
|
/** Advance all animations by the given time. */
|
|
793
793
|
advance: yn,
|
|
@@ -796,8 +796,8 @@ var Pt = (e, ...t) => At(e, (r) => r(...t)), Hn = () => typeof window > "u" || !
|
|
|
796
796
|
if (vr)
|
|
797
797
|
C.onFrame(() => Tr.sort(e));
|
|
798
798
|
else {
|
|
799
|
-
const t =
|
|
800
|
-
~t && (
|
|
799
|
+
const t = ue.indexOf(e);
|
|
800
|
+
~t && (ue.splice(t, 1), Ao(e));
|
|
801
801
|
}
|
|
802
802
|
},
|
|
803
803
|
/**
|
|
@@ -806,29 +806,29 @@ var Pt = (e, ...t) => At(e, (r) => r(...t)), Hn = () => typeof window > "u" || !
|
|
|
806
806
|
* ☠️ Never call this from within the frameloop.
|
|
807
807
|
*/
|
|
808
808
|
clear() {
|
|
809
|
-
|
|
809
|
+
ue = [], It.clear();
|
|
810
810
|
}
|
|
811
811
|
};
|
|
812
812
|
function ja() {
|
|
813
|
-
|
|
813
|
+
It.forEach(Ro), It.clear(), C(yn);
|
|
814
814
|
}
|
|
815
815
|
function Ro(e) {
|
|
816
|
-
|
|
816
|
+
ue.includes(e) || Ao(e);
|
|
817
817
|
}
|
|
818
818
|
function Ao(e) {
|
|
819
|
-
|
|
820
|
-
Va(
|
|
819
|
+
ue.splice(
|
|
820
|
+
Va(ue, (t) => t.priority > e.priority),
|
|
821
821
|
0,
|
|
822
822
|
e
|
|
823
823
|
);
|
|
824
824
|
}
|
|
825
825
|
function yn(e) {
|
|
826
826
|
const t = en;
|
|
827
|
-
for (let r = 0; r <
|
|
828
|
-
const n =
|
|
827
|
+
for (let r = 0; r < ue.length; r++) {
|
|
828
|
+
const n = ue[r];
|
|
829
829
|
vr = n.priority, n.idle || (Gn(n), n.advance(e), n.idle || t.push(n));
|
|
830
830
|
}
|
|
831
|
-
return vr = 0, en =
|
|
831
|
+
return vr = 0, en = ue, en.length = 0, ue = t, ue.length > 0;
|
|
832
832
|
}
|
|
833
833
|
function Va(e, t) {
|
|
834
834
|
const r = e.findIndex(t);
|
|
@@ -985,38 +985,38 @@ var $a = {
|
|
|
985
985
|
whitesmoke: 4126537215,
|
|
986
986
|
yellow: 4294902015,
|
|
987
987
|
yellowgreen: 2597139199
|
|
988
|
-
},
|
|
989
|
-
function
|
|
988
|
+
}, ve = "[-+]?\\d*\\.?\\d+", br = ve + "%";
|
|
989
|
+
function Ir(...e) {
|
|
990
990
|
return "\\(\\s*(" + e.join(")\\s*,\\s*(") + ")\\s*\\)";
|
|
991
991
|
}
|
|
992
|
-
var
|
|
993
|
-
"hsla" +
|
|
994
|
-
),
|
|
992
|
+
var Ma = new RegExp("rgb" + Ir(ve, ve, ve)), za = new RegExp("rgba" + Ir(ve, ve, ve, ve)), Fa = new RegExp("hsl" + Ir(ve, br, br)), La = new RegExp(
|
|
993
|
+
"hsla" + Ir(ve, br, br, ve)
|
|
994
|
+
), Ba = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, Ua = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, qa = /^#([0-9a-fA-F]{6})$/, Wa = /^#([0-9a-fA-F]{8})$/;
|
|
995
995
|
function Ha(e) {
|
|
996
996
|
let t;
|
|
997
|
-
return typeof e == "number" ? e >>> 0 === e && e >= 0 && e <= 4294967295 ? e : null : (t = qa.exec(e)) ? parseInt(t[1] + "ff", 16) >>> 0 :
|
|
998
|
-
|
|
999
|
-
|
|
997
|
+
return typeof e == "number" ? e >>> 0 === e && e >= 0 && e <= 4294967295 ? e : null : (t = qa.exec(e)) ? parseInt(t[1] + "ff", 16) >>> 0 : Me && Me[e] !== void 0 ? Me[e] : (t = Ma.exec(e)) ? (at(t[1]) << 24 | // r
|
|
998
|
+
at(t[2]) << 16 | // g
|
|
999
|
+
at(t[3]) << 8 | // b
|
|
1000
1000
|
255) >>> // a
|
|
1001
|
-
0 : (t =
|
|
1002
|
-
|
|
1003
|
-
|
|
1001
|
+
0 : (t = za.exec(e)) ? (at(t[1]) << 24 | // r
|
|
1002
|
+
at(t[2]) << 16 | // g
|
|
1003
|
+
at(t[3]) << 8 | // b
|
|
1004
1004
|
Pi(t[4])) >>> // a
|
|
1005
|
-
0 : (t =
|
|
1005
|
+
0 : (t = Ba.exec(e)) ? parseInt(
|
|
1006
1006
|
t[1] + t[1] + // r
|
|
1007
1007
|
t[2] + t[2] + // g
|
|
1008
1008
|
t[3] + t[3] + // b
|
|
1009
1009
|
"ff",
|
|
1010
1010
|
// a
|
|
1011
1011
|
16
|
|
1012
|
-
) >>> 0 : (t = Wa.exec(e)) ? parseInt(t[1], 16) >>> 0 : (t =
|
|
1012
|
+
) >>> 0 : (t = Wa.exec(e)) ? parseInt(t[1], 16) >>> 0 : (t = Ua.exec(e)) ? parseInt(
|
|
1013
1013
|
t[1] + t[1] + // r
|
|
1014
1014
|
t[2] + t[2] + // g
|
|
1015
1015
|
t[3] + t[3] + // b
|
|
1016
1016
|
t[4] + t[4],
|
|
1017
1017
|
// a
|
|
1018
1018
|
16
|
|
1019
|
-
) >>> 0 : (t =
|
|
1019
|
+
) >>> 0 : (t = Fa.exec(e)) ? (ki(
|
|
1020
1020
|
Ni(t[1]),
|
|
1021
1021
|
// h
|
|
1022
1022
|
nr(t[2]),
|
|
@@ -1024,7 +1024,7 @@ function Ha(e) {
|
|
|
1024
1024
|
nr(t[3])
|
|
1025
1025
|
// l
|
|
1026
1026
|
) | 255) >>> // a
|
|
1027
|
-
0 : (t = La.exec(e)) ? (
|
|
1027
|
+
0 : (t = La.exec(e)) ? (ki(
|
|
1028
1028
|
Ni(t[1]),
|
|
1029
1029
|
// h
|
|
1030
1030
|
nr(t[2]),
|
|
@@ -1037,11 +1037,11 @@ 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 ki(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
|
}
|
|
1044
|
-
function
|
|
1044
|
+
function at(e) {
|
|
1045
1045
|
const t = parseInt(e, 10);
|
|
1046
1046
|
return t < 0 ? 0 : t > 255 ? 255 : t;
|
|
1047
1047
|
}
|
|
@@ -1064,11 +1064,11 @@ function Ci(e) {
|
|
|
1064
1064
|
const r = (t & 4278190080) >>> 24, n = (t & 16711680) >>> 16, i = (t & 65280) >>> 8, o = (t & 255) / 255;
|
|
1065
1065
|
return `rgba(${r}, ${n}, ${i}, ${o})`;
|
|
1066
1066
|
}
|
|
1067
|
-
var
|
|
1067
|
+
var $t = (e, t, r) => {
|
|
1068
1068
|
if (_.fun(e))
|
|
1069
1069
|
return e;
|
|
1070
1070
|
if (_.arr(e))
|
|
1071
|
-
return
|
|
1071
|
+
return $t({
|
|
1072
1072
|
range: e,
|
|
1073
1073
|
output: t,
|
|
1074
1074
|
extrapolate: r
|
|
@@ -1112,12 +1112,12 @@ function Ga(e, t) {
|
|
|
1112
1112
|
}
|
|
1113
1113
|
var Ka = {
|
|
1114
1114
|
linear: (e) => e
|
|
1115
|
-
},
|
|
1115
|
+
}, Mt = Symbol.for("FluidValue.get"), ft = Symbol.for("FluidValue.observers"), ce = (e) => !!(e && e[Mt]), J = (e) => e && e[Mt] ? e[Mt]() : e, Ri = (e) => e[ft] || null;
|
|
1116
1116
|
function Qa(e, t) {
|
|
1117
1117
|
e.eventObserved ? e.eventObserved(t) : e(t);
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1120
|
-
const r = e[
|
|
1119
|
+
function zt(e, t) {
|
|
1120
|
+
const r = e[ft];
|
|
1121
1121
|
r && r.forEach((n) => {
|
|
1122
1122
|
Qa(n, t);
|
|
1123
1123
|
});
|
|
@@ -1128,26 +1128,26 @@ var To = class {
|
|
|
1128
1128
|
throw Error("Unknown getter");
|
|
1129
1129
|
Xa(this, e);
|
|
1130
1130
|
}
|
|
1131
|
-
}, Xa = (e, t) =>
|
|
1132
|
-
function
|
|
1133
|
-
if (e[
|
|
1134
|
-
let r = e[
|
|
1135
|
-
r ||
|
|
1131
|
+
}, Xa = (e, t) => Io(e, Mt, t);
|
|
1132
|
+
function vt(e, t) {
|
|
1133
|
+
if (e[Mt]) {
|
|
1134
|
+
let r = e[ft];
|
|
1135
|
+
r || Io(e, ft, r = /* @__PURE__ */ new Set()), r.has(t) || (r.add(t), e.observerAdded && e.observerAdded(r.size, t));
|
|
1136
1136
|
}
|
|
1137
1137
|
return t;
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1140
|
-
const r = e[
|
|
1139
|
+
function Ft(e, t) {
|
|
1140
|
+
const r = e[ft];
|
|
1141
1141
|
if (r && r.has(t)) {
|
|
1142
1142
|
const n = r.size - 1;
|
|
1143
|
-
n ? r.delete(t) : e[
|
|
1143
|
+
n ? r.delete(t) : e[ft] = null, e.observerRemoved && e.observerRemoved(n, t);
|
|
1144
1144
|
}
|
|
1145
1145
|
}
|
|
1146
|
-
var
|
|
1146
|
+
var Io = (e, t, r) => Object.defineProperty(e, t, {
|
|
1147
1147
|
value: r,
|
|
1148
1148
|
writable: !0,
|
|
1149
1149
|
configurable: !0
|
|
1150
|
-
}), lr = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, Ja = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi, Ai = new RegExp(`(${lr.source})(%|[a-z]+)`, "i"), Za = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,
|
|
1150
|
+
}), lr = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, Ja = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi, Ai = new RegExp(`(${lr.source})(%|[a-z]+)`, "i"), Za = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi, Dr = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/, Do = (e) => {
|
|
1151
1151
|
const [t, r] = ec(e);
|
|
1152
1152
|
if (!t || Hn())
|
|
1153
1153
|
return e;
|
|
@@ -1158,34 +1158,34 @@ 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 &&
|
|
1162
|
-
return
|
|
1161
|
+
if (r && Dr.test(r))
|
|
1162
|
+
return Do(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 = Dr.exec(e);
|
|
1169
1169
|
if (!t)
|
|
1170
1170
|
return [,];
|
|
1171
1171
|
const [, r, n] = t;
|
|
1172
1172
|
return [r, n];
|
|
1173
1173
|
}, rn, tc = (e, t, r, n, i) => `rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`, jo = (e) => {
|
|
1174
|
-
rn || (rn =
|
|
1174
|
+
rn || (rn = Me ? (
|
|
1175
1175
|
// match color names, ignore partial matches
|
|
1176
|
-
new RegExp(`(${Object.keys(
|
|
1176
|
+
new RegExp(`(${Object.keys(Me).join("|")})(?!\\w)`, "g")
|
|
1177
1177
|
) : (
|
|
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(Dr, Do).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');
|
|
1185
1185
|
return a[s];
|
|
1186
1186
|
})
|
|
1187
1187
|
).map(
|
|
1188
|
-
(o) =>
|
|
1188
|
+
(o) => $t({ ...e, output: o })
|
|
1189
1189
|
);
|
|
1190
1190
|
return (o) => {
|
|
1191
1191
|
var u;
|
|
@@ -1218,10 +1218,10 @@ function oc() {
|
|
|
1218
1218
|
}
|
|
1219
1219
|
function jr(e) {
|
|
1220
1220
|
return _.str(e) && (e[0] == "#" || /\d/.test(e) || // Do not identify a CSS variable as an AnimatedString if its SSR
|
|
1221
|
-
!Hn() &&
|
|
1221
|
+
!Hn() && Dr.test(e) || e in (Me || {}));
|
|
1222
1222
|
}
|
|
1223
|
-
var Qn = Hn() ?
|
|
1224
|
-
const e =
|
|
1223
|
+
var Qn = Hn() ? Ge : Ea, sc = () => {
|
|
1224
|
+
const e = Se(!1);
|
|
1225
1225
|
return Qn(() => (e.current = !0, () => {
|
|
1226
1226
|
e.current = !1;
|
|
1227
1227
|
}), []), e;
|
|
@@ -1238,12 +1238,12 @@ function ac(e, t) {
|
|
|
1238
1238
|
inputs: t,
|
|
1239
1239
|
result: e()
|
|
1240
1240
|
})
|
|
1241
|
-
), n =
|
|
1241
|
+
), n = Se(), i = n.current;
|
|
1242
1242
|
let o = i;
|
|
1243
1243
|
return o ? t && o.inputs && cc(t, o.inputs) || (o = {
|
|
1244
1244
|
inputs: t,
|
|
1245
1245
|
result: e()
|
|
1246
|
-
}) : o = r,
|
|
1246
|
+
}) : o = r, Ge(() => {
|
|
1247
1247
|
n.current = o, i == r && (r.inputs = r.result = void 0);
|
|
1248
1248
|
}, [o]), o.result;
|
|
1249
1249
|
}
|
|
@@ -1255,14 +1255,14 @@ function cc(e, t) {
|
|
|
1255
1255
|
return !1;
|
|
1256
1256
|
return !0;
|
|
1257
1257
|
}
|
|
1258
|
-
var
|
|
1258
|
+
var Mo = (e) => Ge(e, uc), uc = [];
|
|
1259
1259
|
function Ti(e) {
|
|
1260
|
-
const t =
|
|
1261
|
-
return
|
|
1260
|
+
const t = Se();
|
|
1261
|
+
return Ge(() => {
|
|
1262
1262
|
t.current = e;
|
|
1263
1263
|
}), t.current;
|
|
1264
1264
|
}
|
|
1265
|
-
var
|
|
1265
|
+
var Lt = Symbol.for("Animated:node"), lc = (e) => !!e && e[Lt] === e, _e = (e) => e && e[Lt], Xn = (e, t) => Ia(e, Lt, t), Vr = (e) => e && e[Lt] && e[Lt].getPayload(), zo = class {
|
|
1266
1266
|
constructor() {
|
|
1267
1267
|
Xn(this, this);
|
|
1268
1268
|
}
|
|
@@ -1270,13 +1270,13 @@ var zt = Symbol.for("Animated:node"), lc = (e) => !!e && e[zt] === e, we = (e) =
|
|
|
1270
1270
|
getPayload() {
|
|
1271
1271
|
return this.payload || [];
|
|
1272
1272
|
}
|
|
1273
|
-
},
|
|
1273
|
+
}, Qt = class extends zo {
|
|
1274
1274
|
constructor(e) {
|
|
1275
1275
|
super(), this._value = e, this.done = !0, this.durationProgress = 0, _.num(this._value) && (this.lastPosition = this._value);
|
|
1276
1276
|
}
|
|
1277
1277
|
/** @internal */
|
|
1278
1278
|
static create(e) {
|
|
1279
|
-
return new
|
|
1279
|
+
return new Qt(e);
|
|
1280
1280
|
}
|
|
1281
1281
|
getPayload() {
|
|
1282
1282
|
return [this];
|
|
@@ -1291,15 +1291,15 @@ 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
|
+
}, Bt = class extends Qt {
|
|
1295
1295
|
constructor(e) {
|
|
1296
|
-
super(0), this._string = null, this._toString =
|
|
1296
|
+
super(0), this._string = null, this._toString = $t({
|
|
1297
1297
|
output: [e, e]
|
|
1298
1298
|
});
|
|
1299
1299
|
}
|
|
1300
1300
|
/** @internal */
|
|
1301
1301
|
static create(e) {
|
|
1302
|
-
return new
|
|
1302
|
+
return new Bt(e);
|
|
1303
1303
|
}
|
|
1304
1304
|
getValue() {
|
|
1305
1305
|
const e = this._string;
|
|
@@ -1317,18 +1317,18 @@ var zt = Symbol.for("Animated:node"), lc = (e) => !!e && e[zt] === e, we = (e) =
|
|
|
1317
1317
|
return !0;
|
|
1318
1318
|
}
|
|
1319
1319
|
reset(e) {
|
|
1320
|
-
e && (this._toString =
|
|
1320
|
+
e && (this._toString = $t({
|
|
1321
1321
|
output: [this.getValue(), e]
|
|
1322
1322
|
})), this._value = 0, super.reset();
|
|
1323
1323
|
}
|
|
1324
|
-
}, wr = { dependencies: null }, $r = class extends
|
|
1324
|
+
}, wr = { dependencies: null }, $r = class extends zo {
|
|
1325
1325
|
constructor(e) {
|
|
1326
1326
|
super(), this.source = e, this.setValue(e);
|
|
1327
1327
|
}
|
|
1328
1328
|
getValue(e) {
|
|
1329
1329
|
const t = {};
|
|
1330
|
-
return
|
|
1331
|
-
lc(r) ? t[n] = r.getValue(e) :
|
|
1330
|
+
return xe(this.source, (r, n) => {
|
|
1331
|
+
lc(r) ? t[n] = r.getValue(e) : ce(r) ? t[n] = J(r) : e || (t[n] = r);
|
|
1332
1332
|
}), t;
|
|
1333
1333
|
}
|
|
1334
1334
|
/** Replace the raw object data */
|
|
@@ -1342,22 +1342,22 @@ var zt = Symbol.for("Animated:node"), lc = (e) => !!e && e[zt] === e, we = (e) =
|
|
|
1342
1342
|
_makePayload(e) {
|
|
1343
1343
|
if (e) {
|
|
1344
1344
|
const t = /* @__PURE__ */ new Set();
|
|
1345
|
-
return
|
|
1345
|
+
return xe(e, this._addToPayload, t), Array.from(t);
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
1348
|
/** Add to a payload set. */
|
|
1349
1349
|
_addToPayload(e) {
|
|
1350
|
-
wr.dependencies &&
|
|
1350
|
+
wr.dependencies && ce(e) && wr.dependencies.add(e);
|
|
1351
1351
|
const t = Vr(e);
|
|
1352
1352
|
t && T(t, (r) => this.add(r));
|
|
1353
1353
|
}
|
|
1354
|
-
},
|
|
1354
|
+
}, Fo = class extends $r {
|
|
1355
1355
|
constructor(e) {
|
|
1356
1356
|
super(e);
|
|
1357
1357
|
}
|
|
1358
1358
|
/** @internal */
|
|
1359
1359
|
static create(e) {
|
|
1360
|
-
return new
|
|
1360
|
+
return new Fo(e);
|
|
1361
1361
|
}
|
|
1362
1362
|
getValue() {
|
|
1363
1363
|
return this.source.map((e) => e.getValue());
|
|
@@ -1368,21 +1368,21 @@ 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 (jr(e) ?
|
|
1371
|
+
return (jr(e) ? Bt : Qt).create(e);
|
|
1372
1372
|
}
|
|
1373
1373
|
function gn(e) {
|
|
1374
|
-
const t =
|
|
1375
|
-
return t ? t.constructor : _.arr(e) ?
|
|
1374
|
+
const t = _e(e);
|
|
1375
|
+
return t ? t.constructor : _.arr(e) ? Fo : jr(e) ? Bt : Qt;
|
|
1376
1376
|
}
|
|
1377
|
-
var
|
|
1377
|
+
var Ii = (e, t) => {
|
|
1378
1378
|
const r = (
|
|
1379
1379
|
// Function components must use "forwardRef" to avoid being
|
|
1380
1380
|
// re-rendered on every animation frame.
|
|
1381
1381
|
!_.fun(e) || e.prototype && e.prototype.isReactComponent
|
|
1382
1382
|
);
|
|
1383
1383
|
return Sa((n, i) => {
|
|
1384
|
-
const o =
|
|
1385
|
-
|
|
1384
|
+
const o = Se(null), s = r && // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1385
|
+
xa(
|
|
1386
1386
|
(y) => {
|
|
1387
1387
|
o.current = pc(i, y);
|
|
1388
1388
|
},
|
|
@@ -1392,18 +1392,18 @@ var Di = (e, t) => {
|
|
|
1392
1392
|
if (r && !y)
|
|
1393
1393
|
return;
|
|
1394
1394
|
(y ? t.applyAnimatedValues(y, a.getValue(!0)) : !1) === !1 && l();
|
|
1395
|
-
}, d = new dc(f, u), h =
|
|
1396
|
-
Qn(() => (h.current = d, T(u, (y) =>
|
|
1395
|
+
}, d = new dc(f, u), h = Se();
|
|
1396
|
+
Qn(() => (h.current = d, T(u, (y) => vt(y, d)), () => {
|
|
1397
1397
|
h.current && (T(
|
|
1398
1398
|
h.current.deps,
|
|
1399
|
-
(y) =>
|
|
1399
|
+
(y) => Ft(y, h.current)
|
|
1400
1400
|
), C.cancel(h.current.update));
|
|
1401
|
-
})),
|
|
1401
|
+
})), Ge(f, []), Mo(() => () => {
|
|
1402
1402
|
const y = h.current;
|
|
1403
|
-
T(y.deps, (E) =>
|
|
1403
|
+
T(y.deps, (E) => Ft(E, y));
|
|
1404
1404
|
});
|
|
1405
1405
|
const p = t.getComponentProps(a.getValue());
|
|
1406
|
-
return /* @__PURE__ */
|
|
1406
|
+
return /* @__PURE__ */ zn.createElement(e, { ...p, ref: s });
|
|
1407
1407
|
});
|
|
1408
1408
|
}, dc = class {
|
|
1409
1409
|
constructor(e, t) {
|
|
@@ -1423,7 +1423,7 @@ function hc(e, t) {
|
|
|
1423
1423
|
function pc(e, t) {
|
|
1424
1424
|
return e && (_.fun(e) ? e(t) : e.current = t), t;
|
|
1425
1425
|
}
|
|
1426
|
-
var
|
|
1426
|
+
var Di = Symbol.for("AnimatedComponent"), mc = (e, {
|
|
1427
1427
|
applyAnimatedValues: t = () => !1,
|
|
1428
1428
|
createAnimatedStyle: r = (i) => new $r(i),
|
|
1429
1429
|
getComponentProps: n = (i) => i
|
|
@@ -1434,18 +1434,18 @@ var Ii = Symbol.for("AnimatedComponent"), mc = (e, {
|
|
|
1434
1434
|
getComponentProps: n
|
|
1435
1435
|
}, o = (s) => {
|
|
1436
1436
|
const a = ji(s) || "Anonymous";
|
|
1437
|
-
return _.str(s) ? s = o[s] || (o[s] =
|
|
1437
|
+
return _.str(s) ? s = o[s] || (o[s] = Ii(s, i)) : s = s[Di] || (s[Di] = Ii(s, i)), s.displayName = `Animated(${a})`, s;
|
|
1438
1438
|
};
|
|
1439
|
-
return
|
|
1439
|
+
return xe(e, (s, a) => {
|
|
1440
1440
|
_.arr(e) && (a = ji(s)), o[a] = o(s);
|
|
1441
1441
|
}), {
|
|
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 Be(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) :
|
|
1448
|
+
var Dt = (e, t) => e === !0 || !!(t && e && (_.fun(e) ? e(t) : ne(e).includes(t))), Lo = (e, t) => _.obj(e) ? t && e[t] : e, Bo = (e, t) => e.default === !0 ? e[t] : e.default ? e.default[t] : void 0, yc = (e) => e, Jn = (e, t = yc) => {
|
|
1449
1449
|
let r = gc;
|
|
1450
1450
|
e.default && e.default !== !0 && (e = e.default, r = Object.keys(e));
|
|
1451
1451
|
const n = {};
|
|
@@ -1501,21 +1501,21 @@ var Dt = (e, t) => e === !0 || !!(t && e && (_.fun(e) ? e(t) : re(e).includes(t)
|
|
|
1501
1501
|
function bc(e) {
|
|
1502
1502
|
const t = {};
|
|
1503
1503
|
let r = 0;
|
|
1504
|
-
if (
|
|
1504
|
+
if (xe(e, (n, i) => {
|
|
1505
1505
|
vc[i] || (t[i] = n, r++);
|
|
1506
1506
|
}), r)
|
|
1507
1507
|
return t;
|
|
1508
1508
|
}
|
|
1509
|
-
function
|
|
1509
|
+
function Uo(e) {
|
|
1510
1510
|
const t = bc(e);
|
|
1511
1511
|
if (t) {
|
|
1512
1512
|
const r = { to: t };
|
|
1513
|
-
return
|
|
1513
|
+
return xe(e, (n, i) => i in t || (r[i] = n)), r;
|
|
1514
1514
|
}
|
|
1515
1515
|
return { ...e };
|
|
1516
1516
|
}
|
|
1517
1517
|
function Ut(e) {
|
|
1518
|
-
return e = J(e), _.arr(e) ? e.map(Ut) : jr(e) ?
|
|
1518
|
+
return e = J(e), _.arr(e) ? e.map(Ut) : jr(e) ? we.createStringInterpolator({
|
|
1519
1519
|
range: [0, 1],
|
|
1520
1520
|
output: [e, e]
|
|
1521
1521
|
})(1) : e;
|
|
@@ -1544,12 +1544,12 @@ var Sc = {
|
|
|
1544
1544
|
damping: 1,
|
|
1545
1545
|
easing: Ka.linear,
|
|
1546
1546
|
clamp: !1
|
|
1547
|
-
},
|
|
1547
|
+
}, xc = class {
|
|
1548
1548
|
constructor() {
|
|
1549
1549
|
this.velocity = 0, Object.assign(this, bn);
|
|
1550
1550
|
}
|
|
1551
1551
|
};
|
|
1552
|
-
function
|
|
1552
|
+
function Oc(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,9 +1565,9 @@ 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 = [], kc = class {
|
|
1569
1569
|
constructor() {
|
|
1570
|
-
this.changed = !1, this.values = $i, this.toValues = null, this.fromValues = $i, this.config = new
|
|
1570
|
+
this.changed = !1, this.values = $i, this.toValues = null, this.fromValues = $i, this.config = new xc(), this.immediate = !1;
|
|
1571
1571
|
}
|
|
1572
1572
|
};
|
|
1573
1573
|
function qo(e, { key: t, props: r, defaultProps: n, state: i, actions: o }) {
|
|
@@ -1578,13 +1578,13 @@ 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 = Be(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();
|
|
1585
1585
|
}
|
|
1586
1586
|
function h() {
|
|
1587
|
-
u > 0 && !
|
|
1587
|
+
u > 0 && !we.skipAnimation ? (i.delayed = !0, l = C.setTimeout(p, u), i.pauseQueue.add(d), i.timeouts.add(l)) : p();
|
|
1588
1588
|
}
|
|
1589
1589
|
function p() {
|
|
1590
1590
|
i.delayed && (i.delayed = !1), i.pauseQueue.delete(d), i.timeouts.delete(l), e <= (i.cancelId || 0) && (f = !0);
|
|
@@ -1596,7 +1596,7 @@ function qo(e, { key: t, props: r, defaultProps: n, state: i, actions: o }) {
|
|
|
1596
1596
|
}
|
|
1597
1597
|
});
|
|
1598
1598
|
}
|
|
1599
|
-
var Zn = (e, t) => t.length == 1 ? t[0] : t.some((r) => r.cancelled) ?
|
|
1599
|
+
var Zn = (e, t) => t.length == 1 ? t[0] : t.some((r) => r.cancelled) ? lt(e.get()) : t.every((r) => r.noop) ? Wo(e.get()) : ge(
|
|
1600
1600
|
e.get(),
|
|
1601
1601
|
t.every((r) => r.finished)
|
|
1602
1602
|
), Wo = (e) => ({
|
|
@@ -1604,11 +1604,11 @@ var Zn = (e, t) => t.length == 1 ? t[0] : t.some((r) => r.cancelled) ? ct(e.get(
|
|
|
1604
1604
|
noop: !0,
|
|
1605
1605
|
finished: !0,
|
|
1606
1606
|
cancelled: !1
|
|
1607
|
-
}),
|
|
1607
|
+
}), ge = (e, t, r = !1) => ({
|
|
1608
1608
|
value: e,
|
|
1609
1609
|
finished: t,
|
|
1610
1610
|
cancelled: r
|
|
1611
|
-
}),
|
|
1611
|
+
}), lt = (e) => ({
|
|
1612
1612
|
value: e,
|
|
1613
1613
|
cancelled: !0,
|
|
1614
1614
|
finished: !1
|
|
@@ -1630,40 +1630,40 @@ function Ho(e, t, r, n) {
|
|
|
1630
1630
|
), p = (w) => {
|
|
1631
1631
|
const v = (
|
|
1632
1632
|
// The `cancel` prop or `stop` method was used.
|
|
1633
|
-
i <= (r.cancelId || 0) &&
|
|
1634
|
-
i !== r.asyncId &&
|
|
1633
|
+
i <= (r.cancelId || 0) && lt(n) || // The async `to` prop was replaced.
|
|
1634
|
+
i !== r.asyncId && ge(n, !1)
|
|
1635
1635
|
);
|
|
1636
1636
|
if (v)
|
|
1637
1637
|
throw w.result = v, d(w), w;
|
|
1638
1638
|
}, y = (w, v) => {
|
|
1639
|
-
const b = new
|
|
1639
|
+
const b = new Mi(), m = new zi();
|
|
1640
1640
|
return (async () => {
|
|
1641
|
-
if (
|
|
1642
|
-
throw
|
|
1641
|
+
if (we.skipAnimation)
|
|
1642
|
+
throw qt(r), m.result = ge(n, !1), d(m), m;
|
|
1643
1643
|
p(b);
|
|
1644
1644
|
const S = _.obj(w) ? { ...w } : { ...v, to: w };
|
|
1645
|
-
S.parentId = i,
|
|
1646
|
-
_.und(S[
|
|
1645
|
+
S.parentId = i, xe(l, (N, O) => {
|
|
1646
|
+
_.und(S[O]) && (S[O] = N);
|
|
1647
1647
|
});
|
|
1648
|
-
const
|
|
1648
|
+
const k = await n.start(S);
|
|
1649
1649
|
return p(b), r.paused && await new Promise((N) => {
|
|
1650
1650
|
r.resumeQueue.add(N);
|
|
1651
|
-
}),
|
|
1651
|
+
}), k;
|
|
1652
1652
|
})();
|
|
1653
1653
|
};
|
|
1654
1654
|
let E;
|
|
1655
|
-
if (
|
|
1656
|
-
return
|
|
1655
|
+
if (we.skipAnimation)
|
|
1656
|
+
return qt(r), ge(n, !1);
|
|
1657
1657
|
try {
|
|
1658
1658
|
let w;
|
|
1659
1659
|
_.arr(e) ? w = (async (v) => {
|
|
1660
1660
|
for (const b of v)
|
|
1661
1661
|
await y(b);
|
|
1662
|
-
})(e) : w = Promise.resolve(e(y, n.stop.bind(n))), await Promise.all([w.then(f), h]), E =
|
|
1662
|
+
})(e) : w = Promise.resolve(e(y, n.stop.bind(n))), await Promise.all([w.then(f), h]), E = ge(n.get(), !0, !1);
|
|
1663
1663
|
} catch (w) {
|
|
1664
|
-
if (w instanceof
|
|
1664
|
+
if (w instanceof Mi)
|
|
1665
1665
|
E = w.result;
|
|
1666
|
-
else if (w instanceof
|
|
1666
|
+
else if (w instanceof zi)
|
|
1667
1667
|
E = w.result;
|
|
1668
1668
|
else
|
|
1669
1669
|
throw w;
|
|
@@ -1675,16 +1675,16 @@ function Ho(e, t, r, n) {
|
|
|
1675
1675
|
}), E;
|
|
1676
1676
|
})();
|
|
1677
1677
|
}
|
|
1678
|
-
function
|
|
1679
|
-
|
|
1678
|
+
function qt(e, t) {
|
|
1679
|
+
Tt(e.timeouts, (r) => r.cancel()), e.pauseQueue.clear(), e.resumeQueue.clear(), e.asyncId = e.asyncTo = e.promise = void 0, t && (e.cancelId = t);
|
|
1680
1680
|
}
|
|
1681
|
-
var
|
|
1681
|
+
var Mi = class extends Error {
|
|
1682
1682
|
constructor() {
|
|
1683
1683
|
super(
|
|
1684
1684
|
"An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."
|
|
1685
1685
|
);
|
|
1686
1686
|
}
|
|
1687
|
-
},
|
|
1687
|
+
}, zi = class extends Error {
|
|
1688
1688
|
constructor() {
|
|
1689
1689
|
super("SkipAnimationSignal");
|
|
1690
1690
|
}
|
|
@@ -1700,16 +1700,16 @@ var Fi = class extends Error {
|
|
|
1700
1700
|
}
|
|
1701
1701
|
/** Get the current value */
|
|
1702
1702
|
get() {
|
|
1703
|
-
const e =
|
|
1703
|
+
const e = _e(this);
|
|
1704
1704
|
return e && e.getValue();
|
|
1705
1705
|
}
|
|
1706
1706
|
/** Create a spring that maps our value to another value */
|
|
1707
1707
|
to(...e) {
|
|
1708
|
-
return
|
|
1708
|
+
return we.to(this, e);
|
|
1709
1709
|
}
|
|
1710
1710
|
/** @deprecated Use the `to` method instead. */
|
|
1711
1711
|
interpolate(...e) {
|
|
1712
|
-
return nc(),
|
|
1712
|
+
return nc(), we.to(this, e);
|
|
1713
1713
|
}
|
|
1714
1714
|
toJSON() {
|
|
1715
1715
|
return this.get();
|
|
@@ -1728,7 +1728,7 @@ var Fi = class extends Error {
|
|
|
1728
1728
|
}
|
|
1729
1729
|
/** Tell our children about our new value */
|
|
1730
1730
|
_onChange(e, t = !1) {
|
|
1731
|
-
|
|
1731
|
+
zt(this, {
|
|
1732
1732
|
type: "change",
|
|
1733
1733
|
parent: this,
|
|
1734
1734
|
value: 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 || Tr.sort(this),
|
|
1740
|
+
this.idle || Tr.sort(this), zt(this, {
|
|
1741
1741
|
type: "priority",
|
|
1742
1742
|
parent: this,
|
|
1743
1743
|
priority: e
|
|
1744
1744
|
});
|
|
1745
1745
|
}
|
|
1746
|
-
},
|
|
1746
|
+
}, Ke = Symbol.for("SpringPhase"), Yo = 1, Go = 2, Ko = 4, nn = (e) => (e[Ke] & Yo) > 0, Ie = (e) => (e[Ke] & Go) > 0, kt = (e) => (e[Ke] & Ko) > 0, Fi = (e, t) => t ? e[Ke] |= Go | Yo : e[Ke] &= -3, Li = (e, t) => t ? e[Ke] |= Ko : e[Ke] &= -5, Pc = class extends ei {
|
|
1747
1747
|
constructor(e, t) {
|
|
1748
|
-
if (super(), this.animation = new
|
|
1748
|
+
if (super(), this.animation = new kc(), this.defaultProps = {}, this._state = {
|
|
1749
1749
|
paused: !1,
|
|
1750
1750
|
delayed: !1,
|
|
1751
1751
|
pauseQueue: /* @__PURE__ */ new Set(),
|
|
@@ -1758,14 +1758,14 @@ var Fi = class extends Error {
|
|
|
1758
1758
|
}
|
|
1759
1759
|
/** Equals true when not advancing on each frame. */
|
|
1760
1760
|
get idle() {
|
|
1761
|
-
return !(
|
|
1761
|
+
return !(Ie(this) || this._state.asyncTo) || kt(this);
|
|
1762
1762
|
}
|
|
1763
1763
|
get goal() {
|
|
1764
1764
|
return J(this.animation.to);
|
|
1765
1765
|
}
|
|
1766
1766
|
get velocity() {
|
|
1767
|
-
const e =
|
|
1768
|
-
return e instanceof
|
|
1767
|
+
const e = _e(this);
|
|
1768
|
+
return e instanceof Qt ? e.lastVelocity || 0 : e.getPayload().map((t) => t.lastVelocity || 0);
|
|
1769
1769
|
}
|
|
1770
1770
|
/**
|
|
1771
1771
|
* When true, this value has been animated at least once.
|
|
@@ -1778,7 +1778,7 @@ var Fi = class extends Error {
|
|
|
1778
1778
|
* which is either active or paused.
|
|
1779
1779
|
*/
|
|
1780
1780
|
get isAnimating() {
|
|
1781
|
-
return
|
|
1781
|
+
return Ie(this);
|
|
1782
1782
|
}
|
|
1783
1783
|
/**
|
|
1784
1784
|
* When true, all current and future animations are paused.
|
|
@@ -1799,12 +1799,12 @@ var Fi = class extends Error {
|
|
|
1799
1799
|
const n = this.animation;
|
|
1800
1800
|
let { toValues: i } = n;
|
|
1801
1801
|
const { config: o } = n, s = Vr(n.to);
|
|
1802
|
-
!s &&
|
|
1802
|
+
!s && ce(n.to) && (i = ne(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 == Bt ? 1 : s ? s[f].lastPosition : i[f]
|
|
1808
1808
|
);
|
|
1809
1809
|
let h = n.immediate, p = d;
|
|
1810
1810
|
if (!h) {
|
|
@@ -1822,13 +1822,13 @@ 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
|
|
1827
|
-
const
|
|
1828
|
-
for (let
|
|
1829
|
-
|
|
1830
|
-
const
|
|
1831
|
-
v = v +
|
|
1825
|
+
const m = o.restVelocity || b / 10, S = o.clamp ? 0 : o.bounce, k = !_.und(S), N = E == d ? l.v0 > 0 : E < d;
|
|
1826
|
+
let O, D = !1;
|
|
1827
|
+
const M = 1, fe = Math.ceil(e / M);
|
|
1828
|
+
for (let Y = 0; Y < fe && (O = Math.abs(v) > m, !(!O && (h = Math.abs(d - p) <= b, h))); ++Y) {
|
|
1829
|
+
k && (D = p == d || p > d == N, D && (v = -v * S, p = d));
|
|
1830
|
+
const de = -o.tension * 1e-6 * (p - d), W = -o.friction * 1e-3 * v, he = (de + W) / o.mass;
|
|
1831
|
+
v = v + he * M, p = p + v * M;
|
|
1832
1832
|
}
|
|
1833
1833
|
}
|
|
1834
1834
|
else {
|
|
@@ -1839,7 +1839,7 @@ var Fi = class extends Error {
|
|
|
1839
1839
|
}
|
|
1840
1840
|
s && !s[f].done && (h = !1), h ? l.done = !0 : t = !1, l.setValue(p, o.round) && (r = !0);
|
|
1841
1841
|
});
|
|
1842
|
-
const a =
|
|
1842
|
+
const a = _e(this), u = a.getValue();
|
|
1843
1843
|
if (t) {
|
|
1844
1844
|
const l = J(n.to);
|
|
1845
1845
|
(u !== l || r) && !o.decay ? (a.setValue(l), this._onChange(l)) : r && o.decay && this._onChange(u), this._stop();
|
|
@@ -1864,7 +1864,7 @@ var Fi = class extends Error {
|
|
|
1864
1864
|
}
|
|
1865
1865
|
/** Skip to the end of the current animation. */
|
|
1866
1866
|
finish() {
|
|
1867
|
-
if (
|
|
1867
|
+
if (Ie(this)) {
|
|
1868
1868
|
const { to: e, config: t } = this.animation;
|
|
1869
1869
|
C.batchedUpdates(() => {
|
|
1870
1870
|
this._onStart(), t.decay || this._set(e, !1), this._stop();
|
|
@@ -1889,7 +1889,7 @@ var Fi = class extends Error {
|
|
|
1889
1889
|
*/
|
|
1890
1890
|
stop(e) {
|
|
1891
1891
|
const { to: t } = this.animation;
|
|
1892
|
-
return this._focus(this.get()),
|
|
1892
|
+
return this._focus(this.get()), qt(this._state, e && this._lastCallId), C.batchedUpdates(() => this._stop(t, e)), this;
|
|
1893
1893
|
}
|
|
1894
1894
|
/** Restart the animation. */
|
|
1895
1895
|
reset() {
|
|
@@ -1910,7 +1910,7 @@ var Fi = class extends Error {
|
|
|
1910
1910
|
let { to: r, from: n } = e;
|
|
1911
1911
|
r = _.obj(r) ? r[t] : r, (r == null || vn(r)) && (r = void 0), n = _.obj(n) ? n[t] : n, n == null && (n = void 0);
|
|
1912
1912
|
const i = { to: r, from: n };
|
|
1913
|
-
return nn(this) || (e.reverse && ([r, n] = [n, r]), n = J(n), _.und(n) ?
|
|
1913
|
+
return nn(this) || (e.reverse && ([r, n] = [n, r]), n = J(n), _.und(n) ? _e(this) || this._set(r) : this._set(n)), i;
|
|
1914
1914
|
}
|
|
1915
1915
|
/** Every update is processed by this method before merging. */
|
|
1916
1916
|
_update({ ...e }, t) {
|
|
@@ -1921,7 +1921,7 @@ var Fi = class extends Error {
|
|
|
1921
1921
|
e,
|
|
1922
1922
|
(s, a) => /^on/.test(a) ? Lo(s, r) : s
|
|
1923
1923
|
)
|
|
1924
|
-
),
|
|
1924
|
+
), Ui(this, e, "onProps"), Pt(this, "onProps", e, this);
|
|
1925
1925
|
const i = this._prepareNode(e);
|
|
1926
1926
|
if (Object.isFrozen(this))
|
|
1927
1927
|
throw Error(
|
|
@@ -1935,18 +1935,18 @@ var Fi = class extends Error {
|
|
|
1935
1935
|
state: o,
|
|
1936
1936
|
actions: {
|
|
1937
1937
|
pause: () => {
|
|
1938
|
-
kt(this) || (Li(this, !0),
|
|
1938
|
+
kt(this) || (Li(this, !0), Ct(o.pauseQueue), Pt(
|
|
1939
1939
|
this,
|
|
1940
1940
|
"onPause",
|
|
1941
|
-
|
|
1941
|
+
ge(this, Nt(this, this.animation.to)),
|
|
1942
1942
|
this
|
|
1943
1943
|
));
|
|
1944
1944
|
},
|
|
1945
1945
|
resume: () => {
|
|
1946
|
-
kt(this) && (Li(this, !1),
|
|
1946
|
+
kt(this) && (Li(this, !1), Ie(this) && this._resume(), Ct(o.resumeQueue), Pt(
|
|
1947
1947
|
this,
|
|
1948
1948
|
"onResume",
|
|
1949
|
-
|
|
1949
|
+
ge(this, Nt(this, this.animation.to)),
|
|
1950
1950
|
this
|
|
1951
1951
|
));
|
|
1952
1952
|
},
|
|
@@ -1964,13 +1964,13 @@ var Fi = class extends Error {
|
|
|
1964
1964
|
/** Merge props into the current animation */
|
|
1965
1965
|
_merge(e, t, r) {
|
|
1966
1966
|
if (t.cancel)
|
|
1967
|
-
return this.stop(!0), r(
|
|
1967
|
+
return this.stop(!0), r(lt(this));
|
|
1968
1968
|
const n = !_.und(e.to), i = !_.und(e.from);
|
|
1969
1969
|
if (n || i)
|
|
1970
1970
|
if (t.callId > this._lastToId)
|
|
1971
1971
|
this._lastToId = t.callId;
|
|
1972
1972
|
else
|
|
1973
|
-
return r(
|
|
1973
|
+
return r(lt(this));
|
|
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]);
|
|
@@ -1979,47 +1979,47 @@ var Fi = class extends Error {
|
|
|
1979
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 && Oc(
|
|
1983
1983
|
E,
|
|
1984
|
-
|
|
1984
|
+
Be(t.config, o),
|
|
1985
1985
|
// Avoid calling the same "config" prop twice.
|
|
1986
|
-
t.config !== s.config ?
|
|
1986
|
+
t.config !== s.config ? Be(s.config, o) : void 0
|
|
1987
1987
|
);
|
|
1988
|
-
let b =
|
|
1988
|
+
let b = _e(this);
|
|
1989
1989
|
if (!b || _.und(f))
|
|
1990
|
-
return r(
|
|
1990
|
+
return r(ge(this, !0));
|
|
1991
1991
|
const m = (
|
|
1992
1992
|
// When `reset` is undefined, the `from` prop implies `reset: true`,
|
|
1993
1993
|
// except for declarative updates. When `reset` is defined, there
|
|
1994
1994
|
// must exist a value to animate from.
|
|
1995
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(), k = Ut(f), N = _.num(k) || _.arr(k) || jr(k), O = !y && (!N || Dt(s.immediate || t.immediate, o));
|
|
1997
1997
|
if (p) {
|
|
1998
|
-
const
|
|
1999
|
-
if (
|
|
2000
|
-
if (
|
|
2001
|
-
b = this._set(
|
|
1998
|
+
const Y = gn(f);
|
|
1999
|
+
if (Y !== b.constructor)
|
|
2000
|
+
if (O)
|
|
2001
|
+
b = this._set(k);
|
|
2002
2002
|
else
|
|
2003
2003
|
throw Error(
|
|
2004
|
-
`Cannot animate between ${b.constructor.name} and ${
|
|
2004
|
+
`Cannot animate between ${b.constructor.name} and ${Y.name}, as the "to" prop suggests`
|
|
2005
2005
|
);
|
|
2006
2006
|
}
|
|
2007
|
-
const
|
|
2008
|
-
let
|
|
2009
|
-
if (!
|
|
2010
|
-
const
|
|
2011
|
-
(p ||
|
|
2007
|
+
const D = b.constructor;
|
|
2008
|
+
let M = ce(f), fe = !1;
|
|
2009
|
+
if (!M) {
|
|
2010
|
+
const Y = m || !nn(this) && h;
|
|
2011
|
+
(p || Y) && (fe = ke(Ut(S), k), M = !fe), (!ke(a.immediate, O) && !O || !ke(E.decay, w) || !ke(E.velocity, v)) && (M = !0);
|
|
2012
2012
|
}
|
|
2013
|
-
if (
|
|
2014
|
-
const { onRest:
|
|
2015
|
-
T(Rc, (
|
|
2016
|
-
const
|
|
2017
|
-
|
|
2018
|
-
var
|
|
2019
|
-
a.changed = !m,
|
|
2013
|
+
if (fe && Ie(this) && (a.changed && !m ? M = !0 : M || this._stop(u)), !y && ((M || ce(u)) && (a.values = b.getPayload(), a.toValues = ce(f) ? null : D == Bt ? [1] : ne(k)), a.immediate != O && (a.immediate = O, !O && !m && this._set(u)), M)) {
|
|
2014
|
+
const { onRest: Y } = a;
|
|
2015
|
+
T(Rc, (W) => Ui(this, t, W));
|
|
2016
|
+
const de = ge(this, Nt(this, u));
|
|
2017
|
+
Ct(this._pendingCalls, de), this._pendingCalls.add(r), a.changed && C.batchedUpdates(() => {
|
|
2018
|
+
var W;
|
|
2019
|
+
a.changed = !m, Y == null || Y(de, this), m ? Be(s.onRest, de) : (W = a.onStart) == null || W.call(a, de, this);
|
|
2020
2020
|
});
|
|
2021
2021
|
}
|
|
2022
|
-
m && this._set(S), y ? r(Ho(t.to, t, this._state, this)) :
|
|
2022
|
+
m && this._set(S), y ? r(Ho(t.to, t, this._state, this)) : M ? this._start() : Ie(this) && !p ? this._pendingCalls.add(r) : r(Wo(S));
|
|
2023
2023
|
}
|
|
2024
2024
|
/** Update the `animation.to` value, which might be a `FluidValue` */
|
|
2025
2025
|
_focus(e) {
|
|
@@ -2029,11 +2029,11 @@ var Fi = class extends Error {
|
|
|
2029
2029
|
_attach() {
|
|
2030
2030
|
let e = 0;
|
|
2031
2031
|
const { to: t } = this.animation;
|
|
2032
|
-
|
|
2032
|
+
ce(t) && (vt(t, this), wn(t) && (e = t.priority + 1)), this.priority = e;
|
|
2033
2033
|
}
|
|
2034
2034
|
_detach() {
|
|
2035
2035
|
const { to: e } = this.animation;
|
|
2036
|
-
|
|
2036
|
+
ce(e) && Ft(e, this);
|
|
2037
2037
|
}
|
|
2038
2038
|
/**
|
|
2039
2039
|
* Update the current value from outside the frameloop,
|
|
@@ -2042,7 +2042,7 @@ var Fi = class extends Error {
|
|
|
2042
2042
|
_set(e, t = !0) {
|
|
2043
2043
|
const r = J(e);
|
|
2044
2044
|
if (!_.und(r)) {
|
|
2045
|
-
const n =
|
|
2045
|
+
const n = _e(this);
|
|
2046
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(() => {
|
|
@@ -2050,29 +2050,29 @@ var Fi = class extends Error {
|
|
|
2050
2050
|
});
|
|
2051
2051
|
}
|
|
2052
2052
|
}
|
|
2053
|
-
return
|
|
2053
|
+
return _e(this);
|
|
2054
2054
|
}
|
|
2055
2055
|
_onStart() {
|
|
2056
2056
|
const e = this.animation;
|
|
2057
|
-
e.changed || (e.changed = !0,
|
|
2057
|
+
e.changed || (e.changed = !0, Pt(
|
|
2058
2058
|
this,
|
|
2059
2059
|
"onStart",
|
|
2060
|
-
|
|
2060
|
+
ge(this, Nt(this, e.to)),
|
|
2061
2061
|
this
|
|
2062
2062
|
));
|
|
2063
2063
|
}
|
|
2064
2064
|
_onChange(e, t) {
|
|
2065
|
-
t || (this._onStart(),
|
|
2065
|
+
t || (this._onStart(), Be(this.animation.onChange, e, this)), Be(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
|
-
|
|
2072
|
+
_e(this).reset(J(e.to)), e.immediate || (e.fromValues = e.values.map((t) => t.lastPosition)), Ie(this) || (Fi(this, !0), kt(this) || this._resume());
|
|
2073
2073
|
}
|
|
2074
2074
|
_resume() {
|
|
2075
|
-
|
|
2075
|
+
we.skipAnimation ? this.finish() : Tr.start(this);
|
|
2076
2076
|
}
|
|
2077
2077
|
/**
|
|
2078
2078
|
* Exit the frameloop and notify `onRest` listeners.
|
|
@@ -2080,29 +2080,29 @@ var Fi = class extends Error {
|
|
|
2080
2080
|
* Always wrap `_stop` calls with `batchedUpdates`.
|
|
2081
2081
|
*/
|
|
2082
2082
|
_stop(e, t) {
|
|
2083
|
-
if (
|
|
2084
|
-
|
|
2083
|
+
if (Ie(this)) {
|
|
2084
|
+
Fi(this, !1);
|
|
2085
2085
|
const r = this.animation;
|
|
2086
2086
|
T(r.values, (i) => {
|
|
2087
2087
|
i.done = !0;
|
|
2088
|
-
}), r.toValues && (r.onChange = r.onPause = r.onResume = void 0),
|
|
2088
|
+
}), r.toValues && (r.onChange = r.onPause = r.onResume = void 0), zt(this, {
|
|
2089
2089
|
type: "idle",
|
|
2090
2090
|
parent: this
|
|
2091
2091
|
});
|
|
2092
|
-
const n = t ?
|
|
2093
|
-
|
|
2092
|
+
const n = t ? lt(this.get()) : ge(this.get(), Nt(this, e ?? r.to));
|
|
2093
|
+
Ct(this._pendingCalls, n), r.changed && (r.changed = !1, Pt(this, "onRest", n, this));
|
|
2094
2094
|
}
|
|
2095
2095
|
}
|
|
2096
2096
|
};
|
|
2097
|
-
function
|
|
2097
|
+
function Nt(e, t) {
|
|
2098
2098
|
const r = Ut(t), n = Ut(e.get());
|
|
2099
2099
|
return ke(n, r);
|
|
2100
2100
|
}
|
|
2101
2101
|
function Qo(e, t = e.loop, r = e.to) {
|
|
2102
|
-
const n =
|
|
2102
|
+
const n = Be(t);
|
|
2103
2103
|
if (n) {
|
|
2104
|
-
const i = n !== !0 &&
|
|
2105
|
-
return
|
|
2104
|
+
const i = n !== !0 && Uo(n), o = (i || e).reverse, s = !i || i.reset;
|
|
2105
|
+
return Wt({
|
|
2106
2106
|
...e,
|
|
2107
2107
|
loop: t,
|
|
2108
2108
|
// Avoid updating default props when looping.
|
|
@@ -2122,16 +2122,16 @@ function Qo(e, t = e.loop, r = e.to) {
|
|
|
2122
2122
|
});
|
|
2123
2123
|
}
|
|
2124
2124
|
}
|
|
2125
|
-
function
|
|
2126
|
-
const { to: t, from: r } = e =
|
|
2127
|
-
return _.obj(t) &&
|
|
2125
|
+
function Wt(e) {
|
|
2126
|
+
const { to: t, from: r } = e = Uo(e), n = /* @__PURE__ */ new Set();
|
|
2127
|
+
return _.obj(t) && Bi(t, n), _.obj(r) && Bi(r, n), e.keys = n.size ? Array.from(n) : null, e;
|
|
2128
2128
|
}
|
|
2129
2129
|
function Cc(e) {
|
|
2130
|
-
const t =
|
|
2130
|
+
const t = Wt(e);
|
|
2131
2131
|
return _.und(t.default) && (t.default = Jn(t)), t;
|
|
2132
2132
|
}
|
|
2133
|
-
function
|
|
2134
|
-
|
|
2133
|
+
function Bi(e, t) {
|
|
2134
|
+
xe(e, (r, n) => r != null && t.add(n));
|
|
2135
2135
|
}
|
|
2136
2136
|
var Rc = [
|
|
2137
2137
|
"onStart",
|
|
@@ -2140,14 +2140,14 @@ var Rc = [
|
|
|
2140
2140
|
"onPause",
|
|
2141
2141
|
"onResume"
|
|
2142
2142
|
];
|
|
2143
|
-
function
|
|
2144
|
-
e.animation[r] = t[r] !==
|
|
2143
|
+
function Ui(e, t, r) {
|
|
2144
|
+
e.animation[r] = t[r] !== Bo(t, r) ? Lo(t[r], e.key) : void 0;
|
|
2145
2145
|
}
|
|
2146
|
-
function
|
|
2146
|
+
function Pt(e, t, ...r) {
|
|
2147
2147
|
var n, i, o, s;
|
|
2148
2148
|
(i = (n = e.animation)[t]) == null || i.call(n, ...r), (s = (o = e.defaultProps)[t]) == null || s.call(o, ...r);
|
|
2149
2149
|
}
|
|
2150
|
-
var Ac = ["onStart", "onChange", "onRest"], Tc = 1,
|
|
2150
|
+
var Ac = ["onStart", "onChange", "onRest"], Tc = 1, Ic = class {
|
|
2151
2151
|
constructor(e, t) {
|
|
2152
2152
|
this.id = Tc++, this.springs = {}, this.queue = [], this._lastAsyncId = 0, this._active = /* @__PURE__ */ new Set(), this._changed = /* @__PURE__ */ new Set(), this._started = !1, this._state = {
|
|
2153
2153
|
paused: !1,
|
|
@@ -2187,7 +2187,7 @@ var Ac = ["onStart", "onChange", "onRest"], Tc = 1, Dc = class {
|
|
|
2187
2187
|
}
|
|
2188
2188
|
/** Push an update onto the queue of each value. */
|
|
2189
2189
|
update(e) {
|
|
2190
|
-
return e && this.queue.push(
|
|
2190
|
+
return e && this.queue.push(Wt(e)), this;
|
|
2191
2191
|
}
|
|
2192
2192
|
/**
|
|
2193
2193
|
* Start the queued animations for every spring, and resolve the returned
|
|
@@ -2198,15 +2198,15 @@ var Ac = ["onStart", "onChange", "onRest"], Tc = 1, Dc = class {
|
|
|
2198
2198
|
*/
|
|
2199
2199
|
start(e) {
|
|
2200
2200
|
let { queue: t } = this;
|
|
2201
|
-
return e ? t =
|
|
2201
|
+
return e ? t = ne(e).map(Wt) : this.queue = [], this._flush ? this._flush(this, t) : (ts(this, t), _n(this, t));
|
|
2202
2202
|
}
|
|
2203
2203
|
/** @internal */
|
|
2204
2204
|
stop(e, t) {
|
|
2205
2205
|
if (e !== !!e && (t = e), t) {
|
|
2206
2206
|
const r = this.springs;
|
|
2207
|
-
T(
|
|
2207
|
+
T(ne(t), (n) => r[n].stop(!!e));
|
|
2208
2208
|
} else
|
|
2209
|
-
|
|
2209
|
+
qt(this._state, this._lastAsyncId), this.each((r) => r.stop(!!e));
|
|
2210
2210
|
return this;
|
|
2211
2211
|
}
|
|
2212
2212
|
/** Freeze the active animation in time */
|
|
@@ -2215,7 +2215,7 @@ var Ac = ["onStart", "onChange", "onRest"], Tc = 1, Dc = class {
|
|
|
2215
2215
|
this.start({ pause: !0 });
|
|
2216
2216
|
else {
|
|
2217
2217
|
const t = this.springs;
|
|
2218
|
-
T(
|
|
2218
|
+
T(ne(e), (r) => t[r].pause());
|
|
2219
2219
|
}
|
|
2220
2220
|
return this;
|
|
2221
2221
|
}
|
|
@@ -2225,24 +2225,24 @@ var Ac = ["onStart", "onChange", "onRest"], Tc = 1, Dc = class {
|
|
|
2225
2225
|
this.start({ pause: !1 });
|
|
2226
2226
|
else {
|
|
2227
2227
|
const t = this.springs;
|
|
2228
|
-
T(
|
|
2228
|
+
T(ne(e), (r) => t[r].resume());
|
|
2229
2229
|
}
|
|
2230
2230
|
return this;
|
|
2231
2231
|
}
|
|
2232
2232
|
/** Call a function once per spring value */
|
|
2233
2233
|
each(e) {
|
|
2234
|
-
|
|
2234
|
+
xe(this.springs, e);
|
|
2235
2235
|
}
|
|
2236
2236
|
/** @internal Called at the end of every animation frame */
|
|
2237
2237
|
_onFrame() {
|
|
2238
2238
|
const { onStart: e, onChange: t, onRest: r } = this._events, n = this._active.size > 0, i = this._changed.size > 0;
|
|
2239
|
-
(n && !this._started || i && !this._started) && (this._started = !0,
|
|
2239
|
+
(n && !this._started || i && !this._started) && (this._started = !0, Tt(e, ([a, u]) => {
|
|
2240
2240
|
u.value = this.get(), a(u, this, this._item);
|
|
2241
2241
|
}));
|
|
2242
2242
|
const o = !n && this._started, s = i || o && r.size ? this.get() : null;
|
|
2243
|
-
i && t.size &&
|
|
2243
|
+
i && t.size && Tt(t, ([a, u]) => {
|
|
2244
2244
|
u.value = s, a(u, this, this._item);
|
|
2245
|
-
}), o && (this._started = !1,
|
|
2245
|
+
}), o && (this._started = !1, Tt(r, ([a, u]) => {
|
|
2246
2246
|
u.value = s, a(u, this, this._item);
|
|
2247
2247
|
}));
|
|
2248
2248
|
}
|
|
@@ -2281,10 +2281,10 @@ async function Xo(e, t, r) {
|
|
|
2281
2281
|
}
|
|
2282
2282
|
});
|
|
2283
2283
|
const d = e._state;
|
|
2284
|
-
t.pause === !d.paused ? (d.paused = t.pause,
|
|
2284
|
+
t.pause === !d.paused ? (d.paused = t.pause, Ct(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 || Bo(t, "cancel") === !0;
|
|
2288
2288
|
(f || p && d.asyncId) && h.push(
|
|
2289
2289
|
qo(++e._lastAsyncId, {
|
|
2290
2290
|
props: t,
|
|
@@ -2293,7 +2293,7 @@ async function Xo(e, t, r) {
|
|
|
2293
2293
|
pause: mn,
|
|
2294
2294
|
resume: mn,
|
|
2295
2295
|
start(E, w) {
|
|
2296
|
-
p ? (
|
|
2296
|
+
p ? (qt(d, e._lastAsyncId), w(lt(e))) : (E.onRest = a, w(
|
|
2297
2297
|
Ho(
|
|
2298
2298
|
f,
|
|
2299
2299
|
E,
|
|
@@ -2317,18 +2317,18 @@ async function Xo(e, t, r) {
|
|
|
2317
2317
|
}
|
|
2318
2318
|
function qi(e, t) {
|
|
2319
2319
|
const r = { ...e.springs };
|
|
2320
|
-
return t && T(
|
|
2321
|
-
_.und(n.keys) && (n =
|
|
2320
|
+
return t && T(ne(t), (n) => {
|
|
2321
|
+
_.und(n.keys) && (n = Wt(n)), _.obj(n.to) || (n = { ...n, to: void 0 }), es(r, n, (i) => Zo(i));
|
|
2322
2322
|
}), Jo(e, r), r;
|
|
2323
2323
|
}
|
|
2324
2324
|
function Jo(e, t) {
|
|
2325
|
-
|
|
2326
|
-
e.springs[n] || (e.springs[n] = r,
|
|
2325
|
+
xe(t, (r, n) => {
|
|
2326
|
+
e.springs[n] || (e.springs[n] = r, vt(r, e));
|
|
2327
2327
|
});
|
|
2328
2328
|
}
|
|
2329
2329
|
function Zo(e, t) {
|
|
2330
2330
|
const r = new Pc();
|
|
2331
|
-
return r.key = e, t &&
|
|
2331
|
+
return r.key = e, t && vt(r, t), r;
|
|
2332
2332
|
}
|
|
2333
2333
|
function es(e, t, r) {
|
|
2334
2334
|
t.keys && T(t.keys, (n) => {
|
|
@@ -2340,19 +2340,19 @@ function ts(e, t) {
|
|
|
2340
2340
|
es(e.springs, r, (n) => Zo(n, e));
|
|
2341
2341
|
});
|
|
2342
2342
|
}
|
|
2343
|
-
var
|
|
2343
|
+
var Mr = ({
|
|
2344
2344
|
children: e,
|
|
2345
2345
|
...t
|
|
2346
2346
|
}) => {
|
|
2347
|
-
const r =
|
|
2347
|
+
const r = Fn(_r), n = t.pause || !!r.pause, i = t.immediate || !!r.immediate;
|
|
2348
2348
|
t = ac(() => ({ pause: n, immediate: i }), [n, i]);
|
|
2349
2349
|
const { Provider: o } = _r;
|
|
2350
|
-
return /* @__PURE__ */
|
|
2351
|
-
}, _r =
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
function
|
|
2355
|
-
return Object.assign(e,
|
|
2350
|
+
return /* @__PURE__ */ zn.createElement(o, { value: t }, e);
|
|
2351
|
+
}, _r = Dc(Mr, {});
|
|
2352
|
+
Mr.Provider = _r.Provider;
|
|
2353
|
+
Mr.Consumer = _r.Consumer;
|
|
2354
|
+
function Dc(e, t) {
|
|
2355
|
+
return Object.assign(e, zn.createContext(t)), e.Provider._context = e, e.Consumer._context = e, e;
|
|
2356
2356
|
}
|
|
2357
2357
|
var jc = () => {
|
|
2358
2358
|
const e = [], t = function(n) {
|
|
@@ -2407,21 +2407,21 @@ function Vc(e, t, r) {
|
|
|
2407
2407
|
const i = tr(
|
|
2408
2408
|
() => n || arguments.length == 3 ? jc() : void 0,
|
|
2409
2409
|
[]
|
|
2410
|
-
), o =
|
|
2410
|
+
), o = Se(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((k) => !v.springs[k]) ? _n(v, b) : new Promise((k) => {
|
|
2417
2417
|
Jo(v, m), a.queue.push(() => {
|
|
2418
|
-
|
|
2418
|
+
k(_n(v, b));
|
|
2419
2419
|
}), s();
|
|
2420
2420
|
});
|
|
2421
2421
|
}
|
|
2422
2422
|
}),
|
|
2423
2423
|
[]
|
|
2424
|
-
), u =
|
|
2424
|
+
), u = Se([...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);
|
|
@@ -2431,11 +2431,11 @@ function Vc(e, t, r) {
|
|
|
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
|
|
2435
|
-
|
|
2434
|
+
const S = u.current[m] || (u.current[m] = new Ic(null, a.flush)), k = n ? n(m, S) : t[m];
|
|
2435
|
+
k && (l[m] = Cc(k));
|
|
2436
2436
|
}
|
|
2437
2437
|
}
|
|
2438
|
-
const h = u.current.map((v, b) => qi(v, l[b])), p =
|
|
2438
|
+
const h = u.current.map((v, b) => qi(v, l[b])), p = Fn(Mr), 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;
|
|
@@ -2444,7 +2444,7 @@ function Vc(e, t, r) {
|
|
|
2444
2444
|
const S = l[m];
|
|
2445
2445
|
S && (Ec(b, S.ref), b.ref ? b.queue.push(S) : b.start(S));
|
|
2446
2446
|
});
|
|
2447
|
-
}),
|
|
2447
|
+
}), Mo(() => () => {
|
|
2448
2448
|
T(a.ctrls, (v) => v.stop(!0));
|
|
2449
2449
|
});
|
|
2450
2450
|
const w = h.map((v) => ({ ...v }));
|
|
@@ -2460,68 +2460,68 @@ function rs(e, t) {
|
|
|
2460
2460
|
}
|
|
2461
2461
|
var $c = class extends ei {
|
|
2462
2462
|
constructor(e, t) {
|
|
2463
|
-
super(), this.source = e, this.idle = !0, this._active = /* @__PURE__ */ new Set(), this.calc =
|
|
2463
|
+
super(), this.source = e, this.idle = !0, this._active = /* @__PURE__ */ new Set(), this.calc = $t(...t);
|
|
2464
2464
|
const r = this._get(), n = gn(r);
|
|
2465
2465
|
Xn(this, n.create(r));
|
|
2466
2466
|
}
|
|
2467
2467
|
advance(e) {
|
|
2468
2468
|
const t = this._get(), r = this.get();
|
|
2469
|
-
ke(t, r) || (
|
|
2469
|
+
ke(t, r) || (_e(this).setValue(t), this._onChange(t, this.idle)), !this.idle && Wi(this._active) && on(this);
|
|
2470
2470
|
}
|
|
2471
2471
|
_get() {
|
|
2472
|
-
const e = _.arr(this.source) ? this.source.map(J) :
|
|
2472
|
+
const e = _.arr(this.source) ? this.source.map(J) : ne(J(this.source));
|
|
2473
2473
|
return this.calc(...e);
|
|
2474
2474
|
}
|
|
2475
2475
|
_start() {
|
|
2476
2476
|
this.idle && !Wi(this._active) && (this.idle = !1, T(Vr(this), (e) => {
|
|
2477
2477
|
e.done = !1;
|
|
2478
|
-
}),
|
|
2478
|
+
}), we.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() {
|
|
2482
2482
|
let e = 1;
|
|
2483
|
-
T(
|
|
2484
|
-
|
|
2483
|
+
T(ne(this.source), (t) => {
|
|
2484
|
+
ce(t) && vt(t, this), wn(t) && (t.idle || this._active.add(t), e = Math.max(e, t.priority + 1));
|
|
2485
2485
|
}), this.priority = e, this._start();
|
|
2486
2486
|
}
|
|
2487
2487
|
// Stop observing our sources once we have no observers.
|
|
2488
2488
|
_detach() {
|
|
2489
|
-
T(
|
|
2490
|
-
|
|
2489
|
+
T(ne(this.source), (e) => {
|
|
2490
|
+
ce(e) && Ft(e, this);
|
|
2491
2491
|
}), this._active.clear(), on(this);
|
|
2492
2492
|
}
|
|
2493
2493
|
/** @internal */
|
|
2494
2494
|
eventObserved(e) {
|
|
2495
|
-
e.type == "change" ? e.idle ? this.advance() : (this._active.add(e.parent), this._start()) : e.type == "idle" ? this._active.delete(e.parent) : e.type == "priority" && (this.priority =
|
|
2495
|
+
e.type == "change" ? e.idle ? this.advance() : (this._active.add(e.parent), this._start()) : e.type == "idle" ? this._active.delete(e.parent) : e.type == "priority" && (this.priority = ne(this.source).reduce(
|
|
2496
2496
|
(t, r) => Math.max(t, (wn(r) ? r.priority : 0) + 1),
|
|
2497
2497
|
0
|
|
2498
2498
|
));
|
|
2499
2499
|
}
|
|
2500
2500
|
};
|
|
2501
|
-
function
|
|
2501
|
+
function Mc(e) {
|
|
2502
2502
|
return e.idle !== !1;
|
|
2503
2503
|
}
|
|
2504
2504
|
function Wi(e) {
|
|
2505
|
-
return !e.size || Array.from(e).every(
|
|
2505
|
+
return !e.size || Array.from(e).every(Mc);
|
|
2506
2506
|
}
|
|
2507
2507
|
function on(e) {
|
|
2508
2508
|
e.idle || (e.idle = !0, T(Vr(e), (t) => {
|
|
2509
2509
|
t.done = !0;
|
|
2510
|
-
}),
|
|
2510
|
+
}), zt(e, {
|
|
2511
2511
|
type: "idle",
|
|
2512
2512
|
parent: e
|
|
2513
2513
|
}));
|
|
2514
2514
|
}
|
|
2515
|
-
|
|
2515
|
+
we.assign({
|
|
2516
2516
|
createStringInterpolator: jo,
|
|
2517
2517
|
to: (e, t) => new $c(e, t)
|
|
2518
2518
|
});
|
|
2519
2519
|
var ns = /^--/;
|
|
2520
|
-
function
|
|
2521
|
-
return t == null || typeof t == "boolean" || t === "" ? "" : typeof t == "number" && t !== 0 && !ns.test(e) && !(
|
|
2520
|
+
function zc(e, t) {
|
|
2521
|
+
return t == null || typeof t == "boolean" || t === "" ? "" : typeof t == "number" && t !== 0 && !ns.test(e) && !(jt.hasOwnProperty(e) && jt[e]) ? t + "px" : ("" + t).trim();
|
|
2522
2522
|
}
|
|
2523
2523
|
var Hi = {};
|
|
2524
|
-
function
|
|
2524
|
+
function Fc(e, t) {
|
|
2525
2525
|
if (!e.nodeType || !e.setAttribute)
|
|
2526
2526
|
return !1;
|
|
2527
2527
|
const r = e.nodeName === "filter" || e.parentNode && e.parentNode.nodeName === "filter", {
|
|
@@ -2542,14 +2542,14 @@ function zc(e, t) {
|
|
|
2542
2542
|
o !== void 0 && (e.textContent = o);
|
|
2543
2543
|
for (const h in i)
|
|
2544
2544
|
if (i.hasOwnProperty(h)) {
|
|
2545
|
-
const p =
|
|
2545
|
+
const p = zc(h, i[h]);
|
|
2546
2546
|
ns.test(h) ? e.style.setProperty(h, p) : e.style[h] = p;
|
|
2547
2547
|
}
|
|
2548
2548
|
d.forEach((h, p) => {
|
|
2549
2549
|
e.setAttribute(h, f[p]);
|
|
2550
2550
|
}), n !== void 0 && (e.className = n), s !== void 0 && (e.scrollTop = s), a !== void 0 && (e.scrollLeft = a), u !== void 0 && e.setAttribute("viewBox", u);
|
|
2551
2551
|
}
|
|
2552
|
-
var
|
|
2552
|
+
var jt = {
|
|
2553
2553
|
animationIterationCount: !0,
|
|
2554
2554
|
borderImageOutset: !0,
|
|
2555
2555
|
borderImageSlice: !0,
|
|
@@ -2592,23 +2592,23 @@ var It = {
|
|
|
2592
2592
|
strokeMiterlimit: !0,
|
|
2593
2593
|
strokeOpacity: !0,
|
|
2594
2594
|
strokeWidth: !0
|
|
2595
|
-
}, Lc = (e, t) => e + t.charAt(0).toUpperCase() + t.substring(1),
|
|
2596
|
-
|
|
2597
|
-
var
|
|
2595
|
+
}, Lc = (e, t) => e + t.charAt(0).toUpperCase() + t.substring(1), Bc = ["Webkit", "Ms", "Moz", "O"];
|
|
2596
|
+
jt = Object.keys(jt).reduce((e, t) => (Bc.forEach((r) => e[Lc(r, t)] = e[t]), e), jt);
|
|
2597
|
+
var Uc = /^(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
|
+
])), xe(n, (s, a) => {
|
|
2605
2605
|
if (a === "transform")
|
|
2606
2606
|
i.push([s || ""]), o.push((u) => [u, u === ""]);
|
|
2607
|
-
else if (
|
|
2607
|
+
else if (Uc.test(a)) {
|
|
2608
2608
|
if (delete n[a], _.und(s))
|
|
2609
2609
|
return;
|
|
2610
2610
|
const u = qc.test(a) ? "px" : Wc.test(a) ? "deg" : "";
|
|
2611
|
-
i.push(
|
|
2611
|
+
i.push(ne(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)
|
|
@@ -2642,7 +2642,7 @@ var Bc = /^(matrix|translate|scale|rotate|skew)/, qc = /^(translate)/, Wc = /^(r
|
|
|
2642
2642
|
this.inputs,
|
|
2643
2643
|
(t) => T(
|
|
2644
2644
|
t,
|
|
2645
|
-
(r) =>
|
|
2645
|
+
(r) => ce(r) && vt(r, this)
|
|
2646
2646
|
)
|
|
2647
2647
|
);
|
|
2648
2648
|
}
|
|
@@ -2652,12 +2652,12 @@ var Bc = /^(matrix|translate|scale|rotate|skew)/, qc = /^(translate)/, Wc = /^(r
|
|
|
2652
2652
|
this.inputs,
|
|
2653
2653
|
(t) => T(
|
|
2654
2654
|
t,
|
|
2655
|
-
(r) =>
|
|
2655
|
+
(r) => ce(r) && Ft(r, this)
|
|
2656
2656
|
)
|
|
2657
2657
|
);
|
|
2658
2658
|
}
|
|
2659
2659
|
eventObserved(e) {
|
|
2660
|
-
e.type == "change" && (this._value = null),
|
|
2660
|
+
e.type == "change" && (this._value = null), zt(this, e);
|
|
2661
2661
|
}
|
|
2662
2662
|
}, Gc = [
|
|
2663
2663
|
"a",
|
|
@@ -2795,19 +2795,19 @@ var Bc = /^(matrix|translate|scale|rotate|skew)/, qc = /^(translate)/, Wc = /^(r
|
|
|
2795
2795
|
"text",
|
|
2796
2796
|
"tspan"
|
|
2797
2797
|
];
|
|
2798
|
-
|
|
2799
|
-
batchedUpdates:
|
|
2798
|
+
we.assign({
|
|
2799
|
+
batchedUpdates: ka,
|
|
2800
2800
|
createStringInterpolator: jo,
|
|
2801
2801
|
colors: $a
|
|
2802
2802
|
});
|
|
2803
2803
|
var Kc = mc(Gc, {
|
|
2804
|
-
applyAnimatedValues:
|
|
2804
|
+
applyAnimatedValues: Fc,
|
|
2805
2805
|
createAnimatedStyle: (e) => new Hc(e),
|
|
2806
2806
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2807
2807
|
getComponentProps: ({ scrollTop: e, scrollLeft: t, ...r }) => r
|
|
2808
2808
|
}), is = Kc.animated;
|
|
2809
2809
|
function Qc(e) {
|
|
2810
|
-
const t = e.htmlElement ?? "div", [r, n] = gr(!1), i =
|
|
2810
|
+
const t = e.htmlElement ?? "div", [r, n] = gr(!1), i = Se(null), o = Se(null), [s, a] = gr(null), [u, l] = rs(() => ({
|
|
2811
2811
|
from: {
|
|
2812
2812
|
opacity: 0,
|
|
2813
2813
|
transform: "scale(0)"
|
|
@@ -2817,12 +2817,12 @@ function Qc(e) {
|
|
|
2817
2817
|
transform: "scale(1)"
|
|
2818
2818
|
}
|
|
2819
2819
|
})), f = (p, y) => Math.floor(Math.random() * (y - p + 1)) + p;
|
|
2820
|
-
|
|
2820
|
+
Ge(() => {
|
|
2821
2821
|
if (i.current && o.current) {
|
|
2822
2822
|
const p = i.current.getBoundingClientRect(), y = o.current.getBoundingClientRect(), E = Math.max(p.height, y.height);
|
|
2823
2823
|
a(E);
|
|
2824
2824
|
}
|
|
2825
|
-
}, []),
|
|
2825
|
+
}, []), Ge(() => {
|
|
2826
2826
|
if (!e.animate) return;
|
|
2827
2827
|
const p = setTimeout(() => {
|
|
2828
2828
|
l({
|
|
@@ -2847,8 +2847,8 @@ function Qc(e) {
|
|
|
2847
2847
|
// helps keep the bounding box stable,
|
|
2848
2848
|
alignContent: "center"
|
|
2849
2849
|
};
|
|
2850
|
-
return /* @__PURE__ */
|
|
2851
|
-
/* @__PURE__ */
|
|
2850
|
+
return /* @__PURE__ */ L.jsxs(L.Fragment, { children: [
|
|
2851
|
+
/* @__PURE__ */ L.jsx(
|
|
2852
2852
|
"div",
|
|
2853
2853
|
{
|
|
2854
2854
|
ref: i,
|
|
@@ -2864,7 +2864,7 @@ function Qc(e) {
|
|
|
2864
2864
|
children: e.content.english
|
|
2865
2865
|
}
|
|
2866
2866
|
),
|
|
2867
|
-
/* @__PURE__ */
|
|
2867
|
+
/* @__PURE__ */ L.jsx(
|
|
2868
2868
|
"div",
|
|
2869
2869
|
{
|
|
2870
2870
|
ref: o,
|
|
@@ -2878,7 +2878,7 @@ function Qc(e) {
|
|
|
2878
2878
|
children: e.content.simplified
|
|
2879
2879
|
}
|
|
2880
2880
|
),
|
|
2881
|
-
/* @__PURE__ */
|
|
2881
|
+
/* @__PURE__ */ L.jsx(is.div, { style: u, children: /* @__PURE__ */ L.jsx(t, { style: h, children: d }) })
|
|
2882
2882
|
] });
|
|
2883
2883
|
}
|
|
2884
2884
|
var ee = function() {
|
|
@@ -2890,7 +2890,7 @@ var ee = function() {
|
|
|
2890
2890
|
return t;
|
|
2891
2891
|
}, ee.apply(this, arguments);
|
|
2892
2892
|
};
|
|
2893
|
-
function
|
|
2893
|
+
function Qe(e, t, r) {
|
|
2894
2894
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
2895
2895
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
2896
2896
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
@@ -2906,14 +2906,14 @@ 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
|
-
),
|
|
2909
|
+
), z = "-ms-", Vt = "-moz-", V = "-webkit-", os = "comm", zr = "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
|
-
return
|
|
2911
|
+
return H(e, 0) ^ 45 ? (((t << 2 ^ H(e, 0)) << 2 ^ H(e, 1)) << 2 ^ H(e, 2)) << 2 ^ H(e, 3) : 0;
|
|
2912
2912
|
}
|
|
2913
2913
|
function cs(e) {
|
|
2914
2914
|
return e.trim();
|
|
2915
2915
|
}
|
|
2916
|
-
function
|
|
2916
|
+
function Ne(e, t) {
|
|
2917
2917
|
return (e = t.exec(e)) ? e[0] : e;
|
|
2918
2918
|
}
|
|
2919
2919
|
function R(e, t, r) {
|
|
@@ -2922,19 +2922,19 @@ function R(e, t, r) {
|
|
|
2922
2922
|
function dr(e, t, r) {
|
|
2923
2923
|
return e.indexOf(t, r);
|
|
2924
2924
|
}
|
|
2925
|
-
function
|
|
2925
|
+
function H(e, t) {
|
|
2926
2926
|
return e.charCodeAt(t) | 0;
|
|
2927
2927
|
}
|
|
2928
|
-
function
|
|
2928
|
+
function dt(e, t, r) {
|
|
2929
2929
|
return e.slice(t, r);
|
|
2930
2930
|
}
|
|
2931
|
-
function
|
|
2931
|
+
function Ee(e) {
|
|
2932
2932
|
return e.length;
|
|
2933
2933
|
}
|
|
2934
2934
|
function us(e) {
|
|
2935
2935
|
return e.length;
|
|
2936
2936
|
}
|
|
2937
|
-
function
|
|
2937
|
+
function Rt(e, t) {
|
|
2938
2938
|
return t.push(e), e;
|
|
2939
2939
|
}
|
|
2940
2940
|
function nu(e, t) {
|
|
@@ -2942,38 +2942,38 @@ function nu(e, t) {
|
|
|
2942
2942
|
}
|
|
2943
2943
|
function Yi(e, t) {
|
|
2944
2944
|
return e.filter(function(r) {
|
|
2945
|
-
return !
|
|
2945
|
+
return !Ne(r, t);
|
|
2946
2946
|
});
|
|
2947
2947
|
}
|
|
2948
|
-
var
|
|
2948
|
+
var Fr = 1, ht = 1, ls = 0, le = 0, q = 0, bt = "";
|
|
2949
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:
|
|
2950
|
+
return { value: e, root: t, parent: r, type: n, props: i, children: o, line: Fr, column: ht, length: s, return: "", siblings: a };
|
|
2951
2951
|
}
|
|
2952
2952
|
function De(e, t) {
|
|
2953
2953
|
return En(Lr("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
2954
2954
|
}
|
|
2955
|
-
function
|
|
2955
|
+
function ct(e) {
|
|
2956
2956
|
for (; e.root; )
|
|
2957
2957
|
e = De(e.root, { children: [e] });
|
|
2958
|
-
|
|
2958
|
+
Rt(e, e.siblings);
|
|
2959
2959
|
}
|
|
2960
2960
|
function iu() {
|
|
2961
|
-
return
|
|
2961
|
+
return q;
|
|
2962
2962
|
}
|
|
2963
2963
|
function ou() {
|
|
2964
|
-
return
|
|
2964
|
+
return q = le > 0 ? H(bt, --le) : 0, ht--, q === 10 && (ht = 1, Fr--), q;
|
|
2965
2965
|
}
|
|
2966
|
-
function
|
|
2967
|
-
return
|
|
2966
|
+
function be() {
|
|
2967
|
+
return q = le < ls ? H(bt, le++) : 0, ht++, q === 10 && (ht = 1, Fr++), q;
|
|
2968
2968
|
}
|
|
2969
|
-
function
|
|
2970
|
-
return
|
|
2969
|
+
function We() {
|
|
2970
|
+
return H(bt, le);
|
|
2971
2971
|
}
|
|
2972
2972
|
function hr() {
|
|
2973
|
-
return
|
|
2973
|
+
return le;
|
|
2974
2974
|
}
|
|
2975
|
-
function
|
|
2976
|
-
return
|
|
2975
|
+
function Br(e, t) {
|
|
2976
|
+
return dt(bt, e, t);
|
|
2977
2977
|
}
|
|
2978
2978
|
function Sn(e) {
|
|
2979
2979
|
switch (e) {
|
|
@@ -3014,100 +3014,100 @@ function Sn(e) {
|
|
|
3014
3014
|
return 0;
|
|
3015
3015
|
}
|
|
3016
3016
|
function su(e) {
|
|
3017
|
-
return
|
|
3017
|
+
return Fr = ht = 1, ls = Ee(bt = e), le = 0, [];
|
|
3018
3018
|
}
|
|
3019
3019
|
function au(e) {
|
|
3020
|
-
return
|
|
3020
|
+
return bt = "", e;
|
|
3021
3021
|
}
|
|
3022
3022
|
function an(e) {
|
|
3023
|
-
return cs(
|
|
3023
|
+
return cs(Br(le - 1, xn(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
3024
3024
|
}
|
|
3025
3025
|
function cu(e) {
|
|
3026
|
-
for (; (
|
|
3027
|
-
|
|
3028
|
-
return Sn(e) > 2 || Sn(
|
|
3026
|
+
for (; (q = We()) && q < 33; )
|
|
3027
|
+
be();
|
|
3028
|
+
return Sn(e) > 2 || Sn(q) > 3 ? "" : " ";
|
|
3029
3029
|
}
|
|
3030
3030
|
function uu(e, t) {
|
|
3031
|
-
for (; --t &&
|
|
3031
|
+
for (; --t && be() && !(q < 48 || q > 102 || q > 57 && q < 65 || q > 70 && q < 97); )
|
|
3032
3032
|
;
|
|
3033
|
-
return
|
|
3033
|
+
return Br(e, hr() + (t < 6 && We() == 32 && be() == 32));
|
|
3034
3034
|
}
|
|
3035
|
-
function
|
|
3036
|
-
for (;
|
|
3037
|
-
switch (
|
|
3035
|
+
function xn(e) {
|
|
3036
|
+
for (; be(); )
|
|
3037
|
+
switch (q) {
|
|
3038
3038
|
// ] ) " '
|
|
3039
3039
|
case e:
|
|
3040
|
-
return
|
|
3040
|
+
return le;
|
|
3041
3041
|
// " '
|
|
3042
3042
|
case 34:
|
|
3043
3043
|
case 39:
|
|
3044
|
-
e !== 34 && e !== 39 &&
|
|
3044
|
+
e !== 34 && e !== 39 && xn(q);
|
|
3045
3045
|
break;
|
|
3046
3046
|
// (
|
|
3047
3047
|
case 40:
|
|
3048
|
-
e === 41 &&
|
|
3048
|
+
e === 41 && xn(e);
|
|
3049
3049
|
break;
|
|
3050
3050
|
// \
|
|
3051
3051
|
case 92:
|
|
3052
|
-
|
|
3052
|
+
be();
|
|
3053
3053
|
break;
|
|
3054
3054
|
}
|
|
3055
|
-
return
|
|
3055
|
+
return le;
|
|
3056
3056
|
}
|
|
3057
3057
|
function lu(e, t) {
|
|
3058
|
-
for (;
|
|
3059
|
-
if (e +
|
|
3058
|
+
for (; be() && e + q !== 57; )
|
|
3059
|
+
if (e + q === 84 && We() === 47)
|
|
3060
3060
|
break;
|
|
3061
|
-
return "/*" +
|
|
3061
|
+
return "/*" + Br(t, le - 1) + "*" + ri(e === 47 ? e : be());
|
|
3062
3062
|
}
|
|
3063
3063
|
function fu(e) {
|
|
3064
|
-
for (; !Sn(
|
|
3065
|
-
|
|
3066
|
-
return
|
|
3064
|
+
for (; !Sn(We()); )
|
|
3065
|
+
be();
|
|
3066
|
+
return Br(e, le);
|
|
3067
3067
|
}
|
|
3068
3068
|
function du(e) {
|
|
3069
3069
|
return au(pr("", null, null, null, [""], e = su(e), 0, [0], e));
|
|
3070
3070
|
}
|
|
3071
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,
|
|
3073
|
-
switch (y = b, b =
|
|
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, k = o, N = n, O = m; w; )
|
|
3073
|
+
switch (y = b, b = be()) {
|
|
3074
3074
|
// (
|
|
3075
3075
|
case 40:
|
|
3076
|
-
if (y != 108 &&
|
|
3077
|
-
dr(
|
|
3076
|
+
if (y != 108 && H(O, d - 1) == 58) {
|
|
3077
|
+
dr(O += 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
|
+
O += 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
|
+
O += cu(y);
|
|
3092
3092
|
break;
|
|
3093
3093
|
// \
|
|
3094
3094
|
case 92:
|
|
3095
|
-
|
|
3095
|
+
O += uu(hr() - 1, 7);
|
|
3096
3096
|
continue;
|
|
3097
3097
|
// /
|
|
3098
3098
|
case 47:
|
|
3099
|
-
switch (
|
|
3099
|
+
switch (We()) {
|
|
3100
3100
|
case 42:
|
|
3101
3101
|
case 47:
|
|
3102
|
-
|
|
3102
|
+
Rt(hu(lu(be(), hr()), t, r, u), u);
|
|
3103
3103
|
break;
|
|
3104
3104
|
default:
|
|
3105
|
-
|
|
3105
|
+
O += "/";
|
|
3106
3106
|
}
|
|
3107
3107
|
break;
|
|
3108
3108
|
// {
|
|
3109
3109
|
case 123 * E:
|
|
3110
|
-
a[l++] =
|
|
3110
|
+
a[l++] = Ee(O) * v;
|
|
3111
3111
|
// } ; \0
|
|
3112
3112
|
case 125 * E:
|
|
3113
3113
|
case 59:
|
|
@@ -3119,34 +3119,34 @@ function pr(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 && (O = R(O, /\f/g, "")), p > 0 && Ee(O) - d && Rt(p > 32 ? Ki(O + ";", n, r, d - 1, u) : Ki(R(O, " ", "") + ";", n, r, d - 2, u), u);
|
|
3123
3123
|
break;
|
|
3124
3124
|
// @ ;
|
|
3125
3125
|
case 59:
|
|
3126
|
-
|
|
3126
|
+
O += ";";
|
|
3127
3127
|
// { rule/at-rule
|
|
3128
3128
|
default:
|
|
3129
|
-
if (
|
|
3129
|
+
if (Rt(N = Gi(O, t, r, l, f, i, a, m, S = [], k = [], d, o), o), b === 123)
|
|
3130
3130
|
if (f === 0)
|
|
3131
|
-
pr(
|
|
3131
|
+
pr(O, t, N, N, S, o, d, a, k);
|
|
3132
3132
|
else
|
|
3133
|
-
switch (h === 99 &&
|
|
3133
|
+
switch (h === 99 && H(O, 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
|
-
pr(e, N, N, n &&
|
|
3139
|
+
pr(e, N, N, n && Rt(Gi(e, N, N, 0, 0, i, a, m, i, S = [], d, k), k), i, k, d, a, n ? S : k);
|
|
3140
3140
|
break;
|
|
3141
3141
|
default:
|
|
3142
|
-
pr(
|
|
3142
|
+
pr(O, N, N, N, [""], k, 0, a, k);
|
|
3143
3143
|
}
|
|
3144
3144
|
}
|
|
3145
|
-
l = f = p = 0, E = v = 1, m =
|
|
3145
|
+
l = f = p = 0, E = v = 1, m = O = "", d = s;
|
|
3146
3146
|
break;
|
|
3147
3147
|
// :
|
|
3148
3148
|
case 58:
|
|
3149
|
-
d = 1 +
|
|
3149
|
+
d = 1 + Ee(O), p = y;
|
|
3150
3150
|
default:
|
|
3151
3151
|
if (E < 1) {
|
|
3152
3152
|
if (b == 123)
|
|
@@ -3154,37 +3154,37 @@ function pr(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 (O += ri(b), b * E) {
|
|
3158
3158
|
// &
|
|
3159
3159
|
case 38:
|
|
3160
|
-
v = f > 0 ? 1 : (
|
|
3160
|
+
v = f > 0 ? 1 : (O += "\f", -1);
|
|
3161
3161
|
break;
|
|
3162
3162
|
// ,
|
|
3163
3163
|
case 44:
|
|
3164
|
-
a[l++] = (
|
|
3164
|
+
a[l++] = (Ee(O) - 1) * v, v = 1;
|
|
3165
3165
|
break;
|
|
3166
3166
|
// @
|
|
3167
3167
|
case 64:
|
|
3168
|
-
|
|
3168
|
+
We() === 45 && (O += an(be())), h = We(), f = d = Ee(m = O += fu(hr())), b++;
|
|
3169
3169
|
break;
|
|
3170
3170
|
// -
|
|
3171
3171
|
case 45:
|
|
3172
|
-
y === 45 &&
|
|
3172
|
+
y === 45 && Ee(O) == 2 && (E = 0);
|
|
3173
3173
|
}
|
|
3174
3174
|
}
|
|
3175
3175
|
return o;
|
|
3176
3176
|
}
|
|
3177
3177
|
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
|
-
for (var b = 0, m =
|
|
3179
|
+
for (var b = 0, m = dt(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 Lr(e, t, r, i === 0 ?
|
|
3181
|
+
return Lr(e, t, r, i === 0 ? zr : a, u, l, f, d);
|
|
3182
3182
|
}
|
|
3183
3183
|
function hu(e, t, r, n) {
|
|
3184
|
-
return Lr(e, t, r, os, ri(iu()),
|
|
3184
|
+
return Lr(e, t, r, os, ri(iu()), dt(e, 2, -2), 0, n);
|
|
3185
3185
|
}
|
|
3186
3186
|
function Ki(e, t, r, n, i) {
|
|
3187
|
-
return Lr(e, t, r, ti,
|
|
3187
|
+
return Lr(e, t, r, ti, dt(e, 0, n), dt(e, n + 1, -1), n, i);
|
|
3188
3188
|
}
|
|
3189
3189
|
function fs(e, t, r) {
|
|
3190
3190
|
switch (ru(e, t)) {
|
|
@@ -3223,53 +3223,53 @@ function fs(e, t, r) {
|
|
|
3223
3223
|
return V + e + e;
|
|
3224
3224
|
// tab-size
|
|
3225
3225
|
case 4789:
|
|
3226
|
-
return
|
|
3226
|
+
return Vt + e + e;
|
|
3227
3227
|
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
3228
3228
|
case 5349:
|
|
3229
3229
|
case 4246:
|
|
3230
3230
|
case 4810:
|
|
3231
3231
|
case 6968:
|
|
3232
3232
|
case 2756:
|
|
3233
|
-
return V + e +
|
|
3233
|
+
return V + e + Vt + e + z + e + e;
|
|
3234
3234
|
// writing-mode
|
|
3235
3235
|
case 5936:
|
|
3236
|
-
switch (
|
|
3236
|
+
switch (H(e, t + 11)) {
|
|
3237
3237
|
// vertical-l(r)
|
|
3238
3238
|
case 114:
|
|
3239
|
-
return V + e +
|
|
3239
|
+
return V + e + z + R(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
3240
3240
|
// vertical-r(l)
|
|
3241
3241
|
case 108:
|
|
3242
|
-
return V + e +
|
|
3242
|
+
return V + e + z + R(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
3243
3243
|
// horizontal(-)tb
|
|
3244
3244
|
case 45:
|
|
3245
|
-
return V + e +
|
|
3245
|
+
return V + e + z + R(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
3246
3246
|
}
|
|
3247
3247
|
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
3248
3248
|
case 6828:
|
|
3249
3249
|
case 4268:
|
|
3250
3250
|
case 2903:
|
|
3251
|
-
return V + e +
|
|
3251
|
+
return V + e + z + e + e;
|
|
3252
3252
|
// order
|
|
3253
3253
|
case 6165:
|
|
3254
|
-
return V + e +
|
|
3254
|
+
return V + e + z + "flex-" + e + e;
|
|
3255
3255
|
// align-items
|
|
3256
3256
|
case 5187:
|
|
3257
|
-
return V + e + R(e, /(\w+).+(:[^]+)/, V + "box-$1$2" +
|
|
3257
|
+
return V + e + R(e, /(\w+).+(:[^]+)/, V + "box-$1$2" + z + "flex-$1$2") + e;
|
|
3258
3258
|
// align-self
|
|
3259
3259
|
case 5443:
|
|
3260
|
-
return V + e +
|
|
3260
|
+
return V + e + z + "flex-item-" + R(e, /flex-|-self/g, "") + (Ne(e, /flex-|baseline/) ? "" : z + "grid-row-" + R(e, /flex-|-self/g, "")) + e;
|
|
3261
3261
|
// align-content
|
|
3262
3262
|
case 4675:
|
|
3263
|
-
return V + e +
|
|
3263
|
+
return V + e + z + "flex-line-pack" + R(e, /align-content|flex-|-self/g, "") + e;
|
|
3264
3264
|
// flex-shrink
|
|
3265
3265
|
case 5548:
|
|
3266
|
-
return V + e +
|
|
3266
|
+
return V + e + z + R(e, "shrink", "negative") + e;
|
|
3267
3267
|
// flex-basis
|
|
3268
3268
|
case 5292:
|
|
3269
|
-
return V + e +
|
|
3269
|
+
return V + e + z + R(e, "basis", "preferred-size") + e;
|
|
3270
3270
|
// flex-grow
|
|
3271
3271
|
case 6060:
|
|
3272
|
-
return V + "box-" + R(e, "-grow", "") + V + e +
|
|
3272
|
+
return V + "box-" + R(e, "-grow", "") + V + e + z + R(e, "grow", "positive") + e;
|
|
3273
3273
|
// transition
|
|
3274
3274
|
case 4554:
|
|
3275
3275
|
return V + R(e, /([^-])(transform)/g, "$1" + V + "$2") + e;
|
|
@@ -3282,27 +3282,27 @@ function fs(e, t, r) {
|
|
|
3282
3282
|
return R(e, /(image-set\([^]*)/, V + "$1$`$1");
|
|
3283
3283
|
// justify-content
|
|
3284
3284
|
case 4968:
|
|
3285
|
-
return R(R(e, /(.+:)(flex-)?(.*)/, V + "box-pack:$3" +
|
|
3285
|
+
return R(R(e, /(.+:)(flex-)?(.*)/, V + "box-pack:$3" + z + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + V + e + e;
|
|
3286
3286
|
// justify-self
|
|
3287
3287
|
case 4200:
|
|
3288
|
-
if (!
|
|
3288
|
+
if (!Ne(e, /flex-|baseline/)) return z + "grid-column-align" + dt(e, t) + e;
|
|
3289
3289
|
break;
|
|
3290
3290
|
// grid-template-(columns|rows)
|
|
3291
3291
|
case 2592:
|
|
3292
3292
|
case 3360:
|
|
3293
|
-
return
|
|
3293
|
+
return z + R(e, "template-", "") + e;
|
|
3294
3294
|
// grid-(row|column)-start
|
|
3295
3295
|
case 4384:
|
|
3296
3296
|
case 3616:
|
|
3297
3297
|
return r && r.some(function(n, i) {
|
|
3298
|
-
return t = i,
|
|
3299
|
-
}) ? ~dr(e + (r = r[t].value), "span", 0) ? e :
|
|
3298
|
+
return t = i, Ne(n.props, /grid-\w+-end/);
|
|
3299
|
+
}) ? ~dr(e + (r = r[t].value), "span", 0) ? e : z + R(e, "-start", "") + e + z + "grid-row-span:" + (~dr(r, "span", 0) ? Ne(r, /\d+/) : +Ne(r, /\d+/) - +Ne(e, /\d+/)) + ";" : z + 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
|
|
3305
|
-
}) ? e :
|
|
3304
|
+
return Ne(n.props, /grid-\w+-start/);
|
|
3305
|
+
}) ? e : z + R(R(e, "-end", "-span"), "span ", "") + e;
|
|
3306
3306
|
// (margin|padding)-inline-(start|end)
|
|
3307
3307
|
case 4095:
|
|
3308
3308
|
case 3583:
|
|
@@ -3322,15 +3322,15 @@ function fs(e, t, r) {
|
|
|
3322
3322
|
case 5789:
|
|
3323
3323
|
case 5021:
|
|
3324
3324
|
case 4765:
|
|
3325
|
-
if (
|
|
3326
|
-
switch (
|
|
3325
|
+
if (Ee(e) - 1 - t > 6)
|
|
3326
|
+
switch (H(e, t + 1)) {
|
|
3327
3327
|
// (m)ax-content, (m)in-content
|
|
3328
3328
|
case 109:
|
|
3329
|
-
if (
|
|
3329
|
+
if (H(e, t + 4) !== 45)
|
|
3330
3330
|
break;
|
|
3331
3331
|
// (f)ill-available, (f)it-content
|
|
3332
3332
|
case 102:
|
|
3333
|
-
return R(e, /(.+:)(.+)-([^]+)/, "$1" + V + "$2-$3$1" +
|
|
3333
|
+
return R(e, /(.+:)(.+)-([^]+)/, "$1" + V + "$2-$3$1" + Vt + (H(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
3334
3334
|
// (s)tretch
|
|
3335
3335
|
case 115:
|
|
3336
3336
|
return ~dr(e, "stretch", 0) ? fs(R(e, "stretch", "fill-available"), t, r) + e : e;
|
|
@@ -3340,22 +3340,22 @@ function fs(e, t, r) {
|
|
|
3340
3340
|
case 5152:
|
|
3341
3341
|
case 5920:
|
|
3342
3342
|
return R(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, i, o, s, a, u, l) {
|
|
3343
|
-
return
|
|
3343
|
+
return z + i + ":" + o + l + (s ? z + i + "-span:" + (a ? u : +u - +o) + l : "") + e;
|
|
3344
3344
|
});
|
|
3345
3345
|
// position: sticky
|
|
3346
3346
|
case 4949:
|
|
3347
|
-
if (
|
|
3347
|
+
if (H(e, t + 6) === 121)
|
|
3348
3348
|
return R(e, ":", ":" + V) + e;
|
|
3349
3349
|
break;
|
|
3350
3350
|
// display: (flex|inline-flex|grid|inline-grid)
|
|
3351
3351
|
case 6444:
|
|
3352
|
-
switch (
|
|
3352
|
+
switch (H(e, H(e, 14) === 45 ? 18 : 11)) {
|
|
3353
3353
|
// (inline-)?fle(x)
|
|
3354
3354
|
case 120:
|
|
3355
|
-
return R(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + V + (
|
|
3355
|
+
return R(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + V + (H(e, 14) === 45 ? "inline-" : "") + "box$3$1" + V + "$2$3$1" + z + "$2box$3") + e;
|
|
3356
3356
|
// (inline-)?gri(d)
|
|
3357
3357
|
case 100:
|
|
3358
|
-
return R(e, ":", ":" +
|
|
3358
|
+
return R(e, ":", ":" + z) + e;
|
|
3359
3359
|
}
|
|
3360
3360
|
break;
|
|
3361
3361
|
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
@@ -3384,10 +3384,10 @@ function pu(e, t, r, n) {
|
|
|
3384
3384
|
return "";
|
|
3385
3385
|
case ss:
|
|
3386
3386
|
return e.return = e.value + "{" + Er(e.children, n) + "}";
|
|
3387
|
-
case
|
|
3388
|
-
if (!
|
|
3387
|
+
case zr:
|
|
3388
|
+
if (!Ee(e.value = e.props.join(","))) return "";
|
|
3389
3389
|
}
|
|
3390
|
-
return
|
|
3390
|
+
return Ee(r = Er(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
3391
3391
|
}
|
|
3392
3392
|
function mu(e) {
|
|
3393
3393
|
var t = us(e);
|
|
@@ -3410,18 +3410,18 @@ function gu(e, t, r, n) {
|
|
|
3410
3410
|
return;
|
|
3411
3411
|
case ss:
|
|
3412
3412
|
return Er([De(e, { value: R(e.value, "@", "@" + V) })], n);
|
|
3413
|
-
case
|
|
3413
|
+
case zr:
|
|
3414
3414
|
if (e.length)
|
|
3415
3415
|
return nu(r = e.props, function(i) {
|
|
3416
|
-
switch (
|
|
3416
|
+
switch (Ne(i, n = /(::plac\w+|:read-\w+)/)) {
|
|
3417
3417
|
// :read-(only|write)
|
|
3418
3418
|
case ":read-only":
|
|
3419
3419
|
case ":read-write":
|
|
3420
|
-
|
|
3420
|
+
ct(De(e, { props: [R(i, /:(read-\w+)/, ":" + Vt + "$1")] })), ct(De(e, { props: [i] })), En(e, { props: Yi(r, n) });
|
|
3421
3421
|
break;
|
|
3422
3422
|
// :placeholder
|
|
3423
3423
|
case "::placeholder":
|
|
3424
|
-
|
|
3424
|
+
ct(De(e, { props: [R(i, /:(plac\w+)/, ":" + V + "input-$1")] })), ct(De(e, { props: [R(i, /:(plac\w+)/, ":" + Vt + "$1")] })), ct(De(e, { props: [R(i, /:(plac\w+)/, z + "input-$1")] })), ct(De(e, { props: [i] })), En(e, { props: Yi(r, n) });
|
|
3425
3425
|
break;
|
|
3426
3426
|
}
|
|
3427
3427
|
return "";
|
|
@@ -3476,7 +3476,7 @@ var vu = {
|
|
|
3476
3476
|
strokeMiterlimit: 1,
|
|
3477
3477
|
strokeOpacity: 1,
|
|
3478
3478
|
strokeWidth: 1
|
|
3479
|
-
},
|
|
3479
|
+
}, Xe = 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", Ur = "6.1.16", ni = `/*!sc*/
|
|
3480
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.
|
|
@@ -3486,29 +3486,29 @@ 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, ir.delete(n)) : i.apply(void 0,
|
|
3490
|
-
},
|
|
3489
|
+
Qi.test(s) ? (o = !1, ir.delete(n)) : i.apply(void 0, Qe([s], a, !1));
|
|
3490
|
+
}, Se(), o && !ir.has(n) && (console.warn(n), ir.add(n));
|
|
3491
3491
|
} catch (s) {
|
|
3492
3492
|
Qi.test(s.message) && ir.delete(n);
|
|
3493
3493
|
} finally {
|
|
3494
3494
|
console.error = i;
|
|
3495
3495
|
}
|
|
3496
3496
|
}
|
|
3497
|
-
}, qr = Object.freeze([]),
|
|
3497
|
+
}, qr = Object.freeze([]), pt = Object.freeze({});
|
|
3498
3498
|
function _u(e, t, r) {
|
|
3499
|
-
return r === void 0 && (r =
|
|
3499
|
+
return r === void 0 && (r = pt), e.theme !== r.theme && e.theme || t || r.theme;
|
|
3500
3500
|
}
|
|
3501
|
-
var
|
|
3501
|
+
var On = /* @__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
|
|
3505
|
+
var xu = /(a)(d)/gi, or = 52, Ji = function(e) {
|
|
3506
3506
|
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
3507
3507
|
};
|
|
3508
|
-
function
|
|
3508
|
+
function kn(e) {
|
|
3509
3509
|
var t, r = "";
|
|
3510
3510
|
for (t = Math.abs(e); t > or; t = t / or | 0) r = Ji(t % or) + r;
|
|
3511
|
-
return (Ji(t % or) + r).replace(
|
|
3511
|
+
return (Ji(t % or) + r).replace(xu, "$1-$2");
|
|
3512
3512
|
}
|
|
3513
3513
|
var cn, ps = 5381, Ue = function(e, t) {
|
|
3514
3514
|
for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
|
|
@@ -3517,7 +3517,7 @@ var cn, ps = 5381, Ue = function(e, t) {
|
|
|
3517
3517
|
return Ue(ps, e);
|
|
3518
3518
|
};
|
|
3519
3519
|
function ys(e) {
|
|
3520
|
-
return
|
|
3520
|
+
return kn(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, Ou = vs ? Symbol.for("react.forward_ref") : 60112, ku = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, 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 = {})[Ou] = { $$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] : ku;
|
|
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;
|
|
@@ -3552,13 +3552,13 @@ function _s(e, t, r) {
|
|
|
3552
3552
|
}
|
|
3553
3553
|
return e;
|
|
3554
3554
|
}
|
|
3555
|
-
function
|
|
3555
|
+
function mt(e) {
|
|
3556
3556
|
return typeof e == "function";
|
|
3557
3557
|
}
|
|
3558
3558
|
function ii(e) {
|
|
3559
3559
|
return typeof e == "object" && "styledComponentId" in e;
|
|
3560
3560
|
}
|
|
3561
|
-
function
|
|
3561
|
+
function qe(e, t) {
|
|
3562
3562
|
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
3563
3563
|
}
|
|
3564
3564
|
function Nn(e, t) {
|
|
@@ -3566,19 +3566,19 @@ function Nn(e, t) {
|
|
|
3566
3566
|
for (var r = e[0], n = 1; n < e.length; n++) r += e[n];
|
|
3567
3567
|
return r;
|
|
3568
3568
|
}
|
|
3569
|
-
function
|
|
3569
|
+
function yt(e) {
|
|
3570
3570
|
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
3571
3571
|
}
|
|
3572
3572
|
function Pn(e, t, r) {
|
|
3573
|
-
if (r === void 0 && (r = !1), !r && !
|
|
3573
|
+
if (r === void 0 && (r = !1), !r && !yt(e) && !Array.isArray(e)) return t;
|
|
3574
3574
|
if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = Pn(e[n], t[n]);
|
|
3575
|
-
else if (
|
|
3575
|
+
else if (yt(t)) for (var n in t) e[n] = Pn(e[n], t[n]);
|
|
3576
3576
|
return e;
|
|
3577
3577
|
}
|
|
3578
3578
|
function oi(e, t) {
|
|
3579
3579
|
Object.defineProperty(e, "toString", { value: t });
|
|
3580
3580
|
}
|
|
3581
|
-
var
|
|
3581
|
+
var Iu = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
3582
3582
|
|
|
3583
3583
|
`, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
3584
3584
|
|
|
@@ -3620,16 +3620,16 @@ as for instance in your render method then you may be running into this limitati
|
|
|
3620
3620
|
`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
|
|
3621
3621
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
3622
3622
|
`, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
3623
|
-
function
|
|
3623
|
+
function Du() {
|
|
3624
3624
|
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
3625
3625
|
for (var r = e[0], n = [], i = 1, o = e.length; i < o; i += 1) n.push(e[i]);
|
|
3626
3626
|
return n.forEach(function(s) {
|
|
3627
3627
|
r = r.replace(/%[a-z]/, s);
|
|
3628
3628
|
}), r;
|
|
3629
3629
|
}
|
|
3630
|
-
function
|
|
3630
|
+
function wt(e) {
|
|
3631
3631
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
3632
|
-
return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(
|
|
3632
|
+
return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(Du.apply(void 0, Qe([Iu[e]], t, !1)).trim());
|
|
3633
3633
|
}
|
|
3634
3634
|
var ju = function() {
|
|
3635
3635
|
function e(t) {
|
|
@@ -3640,7 +3640,7 @@ var ju = function() {
|
|
|
3640
3640
|
return r;
|
|
3641
3641
|
}, e.prototype.insertRules = function(t, r) {
|
|
3642
3642
|
if (t >= this.groupSizes.length) {
|
|
3643
|
-
for (var n = this.groupSizes, i = n.length, o = i; t >= o; ) if ((o <<= 1) < 0) throw
|
|
3643
|
+
for (var n = this.groupSizes, i = n.length, o = i; t >= o; ) if ((o <<= 1) < 0) throw wt(16, "".concat(t));
|
|
3644
3644
|
this.groupSizes = new Uint32Array(o), this.groupSizes.set(n), this.length = o;
|
|
3645
3645
|
for (var s = i; s < o; s++) this.groupSizes[s] = 0;
|
|
3646
3646
|
}
|
|
@@ -3657,45 +3657,45 @@ 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, mr = /* @__PURE__ */ new Map(),
|
|
3660
|
+
}(), Vu = 1 << 30, mr = /* @__PURE__ */ new Map(), xr = /* @__PURE__ */ new Map(), yr = 1, sr = function(e) {
|
|
3661
3661
|
if (mr.has(e)) return mr.get(e);
|
|
3662
|
-
for (;
|
|
3662
|
+
for (; xr.has(yr); ) yr++;
|
|
3663
3663
|
var t = yr++;
|
|
3664
|
-
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > Vu)) throw
|
|
3665
|
-
return mr.set(e, t),
|
|
3664
|
+
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > Vu)) throw wt(16, "".concat(t));
|
|
3665
|
+
return mr.set(e, t), xr.set(t, e), t;
|
|
3666
3666
|
}, $u = function(e, t) {
|
|
3667
|
-
yr = t + 1, mr.set(e, t),
|
|
3668
|
-
},
|
|
3667
|
+
yr = t + 1, mr.set(e, t), xr.set(t, e);
|
|
3668
|
+
}, Mu = "style[".concat(Xe, "][").concat(hs, '="').concat(Ur, '"]'), zu = new RegExp("^".concat(Xe, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Fu = 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) {
|
|
3674
|
-
var u = a.match(
|
|
3674
|
+
var u = a.match(zu);
|
|
3675
3675
|
if (u) {
|
|
3676
3676
|
var l = 0 | parseInt(u[1], 10), f = u[2];
|
|
3677
|
-
l !== 0 && ($u(f, l),
|
|
3677
|
+
l !== 0 && ($u(f, l), Fu(e, f, u[3]), e.getTag().insertRules(l, i)), i.length = 0;
|
|
3678
3678
|
} else i.push(a);
|
|
3679
3679
|
}
|
|
3680
3680
|
}
|
|
3681
3681
|
}, ro = function(e) {
|
|
3682
|
-
for (var t = document.querySelectorAll(
|
|
3682
|
+
for (var t = document.querySelectorAll(Mu), r = 0, n = t.length; r < n; r++) {
|
|
3683
3683
|
var i = t[r];
|
|
3684
|
-
i && i.getAttribute(
|
|
3684
|
+
i && i.getAttribute(Xe) !== ds && (Lu(e, i), i.parentNode && i.parentNode.removeChild(i));
|
|
3685
3685
|
}
|
|
3686
3686
|
};
|
|
3687
|
-
function
|
|
3687
|
+
function Bu() {
|
|
3688
3688
|
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
3689
3689
|
}
|
|
3690
3690
|
var Es = function(e) {
|
|
3691
3691
|
var t = document.head, r = e || t, n = document.createElement("style"), i = function(a) {
|
|
3692
|
-
var u = Array.from(a.querySelectorAll("style[".concat(
|
|
3692
|
+
var u = Array.from(a.querySelectorAll("style[".concat(Xe, "]")));
|
|
3693
3693
|
return u[u.length - 1];
|
|
3694
3694
|
}(r), o = i !== void 0 ? i.nextSibling : null;
|
|
3695
|
-
n.setAttribute(
|
|
3696
|
-
var s =
|
|
3695
|
+
n.setAttribute(Xe, ds), n.setAttribute(hs, Ur);
|
|
3696
|
+
var s = Bu();
|
|
3697
3697
|
return s && n.setAttribute("nonce", s), r.insertBefore(n, o), n;
|
|
3698
|
-
},
|
|
3698
|
+
}, Uu = function() {
|
|
3699
3699
|
function e(t) {
|
|
3700
3700
|
this.element = Es(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) {
|
|
3701
3701
|
if (r.sheet) return r.sheet;
|
|
@@ -3703,7 +3703,7 @@ var Es = function(e) {
|
|
|
3703
3703
|
var s = n[i];
|
|
3704
3704
|
if (s.ownerNode === r) return s;
|
|
3705
3705
|
}
|
|
3706
|
-
throw
|
|
3706
|
+
throw wt(17);
|
|
3707
3707
|
}(this.element), this.length = 0;
|
|
3708
3708
|
}
|
|
3709
3709
|
return e.prototype.insertRule = function(t, r) {
|
|
@@ -3746,18 +3746,18 @@ var Es = function(e) {
|
|
|
3746
3746
|
}, e;
|
|
3747
3747
|
}(), no = Sr, Hu = { isServer: !Sr, useCSSOMInjection: !bu }, Ss = function() {
|
|
3748
3748
|
function e(t, r, n) {
|
|
3749
|
-
t === void 0 && (t =
|
|
3749
|
+
t === void 0 && (t = pt), r === void 0 && (r = {});
|
|
3750
3750
|
var i = this;
|
|
3751
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 xr.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);
|
|
3759
3759
|
if (p === void 0 || !p.size || y.length === 0) return "continue";
|
|
3760
|
-
var E = "".concat(
|
|
3760
|
+
var E = "".concat(Xe, ".g").concat(d, '[id="').concat(h, '"]'), w = "";
|
|
3761
3761
|
p !== void 0 && p.forEach(function(v) {
|
|
3762
3762
|
v.length > 0 && (w += "".concat(v, ","));
|
|
3763
3763
|
}), u += "".concat(y).concat(E, '{content:"').concat(w, '"}').concat(ni);
|
|
@@ -3777,7 +3777,7 @@ var Es = function(e) {
|
|
|
3777
3777
|
}, e.prototype.getTag = function() {
|
|
3778
3778
|
return this.tag || (this.tag = (t = function(r) {
|
|
3779
3779
|
var n = r.useCSSOMInjection, i = r.target;
|
|
3780
|
-
return r.isServer ? new Wu(i) : n ? new
|
|
3780
|
+
return r.isServer ? new Wu(i) : n ? new Uu(i) : new qu(i);
|
|
3781
3781
|
}(this.options), new ju(t)));
|
|
3782
3782
|
var t;
|
|
3783
3783
|
}, e.prototype.hasNameForId = function(t, r) {
|
|
@@ -3798,38 +3798,38 @@ var Es = function(e) {
|
|
|
3798
3798
|
this.tag = void 0;
|
|
3799
3799
|
}, e;
|
|
3800
3800
|
}(), Yu = /&/g, Gu = /^\s*\/\/.*$/gm;
|
|
3801
|
-
function
|
|
3801
|
+
function xs(e, t) {
|
|
3802
3802
|
return e.map(function(r) {
|
|
3803
3803
|
return r.type === "rule" && (r.value = "".concat(t, " ").concat(r.value), r.value = r.value.replaceAll(",", ",".concat(t, " ")), r.props = r.props.map(function(n) {
|
|
3804
3804
|
return "".concat(t, " ").concat(n);
|
|
3805
|
-
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children =
|
|
3805
|
+
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = xs(r.children, t)), r;
|
|
3806
3806
|
});
|
|
3807
3807
|
}
|
|
3808
3808
|
function Ku(e) {
|
|
3809
|
-
var t, r, n, i =
|
|
3809
|
+
var t, r, n, i = pt, o = i.options, s = o === void 0 ? pt : o, a = i.plugins, u = a === void 0 ? qr : a, l = function(h, p, 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 === zr && 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
|
-
s.namespace && (v =
|
|
3818
|
+
s.namespace && (v = xs(v, s.namespace));
|
|
3819
3819
|
var b = [];
|
|
3820
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 ||
|
|
3825
|
+
return p.name || wt(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(), Os = te.createContext({ shouldForwardProp: void 0, styleSheet: Qu, stylis: Cn });
|
|
3829
|
+
Os.Consumer;
|
|
3830
3830
|
te.createContext(void 0);
|
|
3831
3831
|
function io() {
|
|
3832
|
-
return
|
|
3832
|
+
return Fn(Os);
|
|
3833
3833
|
}
|
|
3834
3834
|
var Rn = function() {
|
|
3835
3835
|
function e(t, r) {
|
|
@@ -3839,7 +3839,7 @@ var Rn = function() {
|
|
|
3839
3839
|
var s = n.name + o.hash;
|
|
3840
3840
|
i.hasNameForId(n.id, s) || i.insertRules(n.id, s, o(n.rules, s, "@keyframes"));
|
|
3841
3841
|
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, oi(this, function() {
|
|
3842
|
-
throw
|
|
3842
|
+
throw wt(12, String(n.name));
|
|
3843
3843
|
});
|
|
3844
3844
|
}
|
|
3845
3845
|
return e.prototype.getName = function(t) {
|
|
@@ -3856,63 +3856,63 @@ function oo(e) {
|
|
|
3856
3856
|
}
|
|
3857
3857
|
return t.startsWith("ms-") ? "-" + t : t;
|
|
3858
3858
|
}
|
|
3859
|
-
var
|
|
3859
|
+
var ks = 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) && !ks(o) && (Array.isArray(o) && o.isCss || mt(o) ? n.push("".concat(oo(i), ":"), o, ";") : yt(o) ? n.push.apply(n, Qe(Qe(["".concat(i, " {")], 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
|
-
function
|
|
3870
|
-
if (
|
|
3869
|
+
function He(e, t, r, n) {
|
|
3870
|
+
if (ks(e)) return [];
|
|
3871
3871
|
if (ii(e)) return [".".concat(e.styledComponentId)];
|
|
3872
|
-
if (
|
|
3873
|
-
if (!
|
|
3872
|
+
if (mt(e)) {
|
|
3873
|
+
if (!mt(o = e) || o.prototype && o.prototype.isReactComponent || !t) return [e];
|
|
3874
3874
|
var i = e(t);
|
|
3875
|
-
return process.env.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof Rn ||
|
|
3875
|
+
return process.env.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof Rn || yt(i) || i === null || console.error("".concat(gs(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), He(i, t, r, n);
|
|
3876
3876
|
}
|
|
3877
3877
|
var o;
|
|
3878
|
-
return e instanceof Rn ? r ? (e.inject(r, n), [e.getName(n)]) : [e] :
|
|
3879
|
-
return
|
|
3878
|
+
return e instanceof Rn ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : yt(e) ? Ns(e) : Array.isArray(e) ? Array.prototype.concat.apply(qr, e.map(function(s) {
|
|
3879
|
+
return He(s, t, r, n);
|
|
3880
3880
|
})) : [e.toString()];
|
|
3881
3881
|
}
|
|
3882
3882
|
function Ju(e) {
|
|
3883
3883
|
for (var t = 0; t < e.length; t += 1) {
|
|
3884
3884
|
var r = e[t];
|
|
3885
|
-
if (
|
|
3885
|
+
if (mt(r) && !ii(r)) return !1;
|
|
3886
3886
|
}
|
|
3887
3887
|
return !0;
|
|
3888
3888
|
}
|
|
3889
|
-
var Zu = ms(
|
|
3889
|
+
var Zu = ms(Ur), el = function() {
|
|
3890
3890
|
function e(t, r, n) {
|
|
3891
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
|
-
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) i =
|
|
3895
|
+
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) i = qe(i, this.staticRulesId);
|
|
3896
3896
|
else {
|
|
3897
|
-
var o = Nn(
|
|
3897
|
+
var o = Nn(He(this.rules, t, r, n)), s = kn(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);
|
|
3901
3901
|
}
|
|
3902
|
-
i =
|
|
3902
|
+
i = qe(i, s), this.staticRulesId = s;
|
|
3903
3903
|
}
|
|
3904
3904
|
else {
|
|
3905
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
3907
|
if (typeof d == "string") l += d, process.env.NODE_ENV !== "production" && (u = Ue(u, d));
|
|
3908
3908
|
else if (d) {
|
|
3909
|
-
var h = Nn(
|
|
3909
|
+
var h = Nn(He(d, t, r, n));
|
|
3910
3910
|
u = Ue(u, h + f), l += h;
|
|
3911
3911
|
}
|
|
3912
3912
|
}
|
|
3913
3913
|
if (l) {
|
|
3914
|
-
var p =
|
|
3915
|
-
r.hasNameForId(this.componentId, p) || r.insertRules(this.componentId, p, n(l, ".".concat(p), void 0, this.componentId)), i =
|
|
3914
|
+
var p = kn(u >>> 0);
|
|
3915
|
+
r.hasNameForId(this.componentId, p) || r.insertRules(this.componentId, p, n(l, ".".concat(p), void 0, this.componentId)), i = qe(i, p);
|
|
3916
3916
|
}
|
|
3917
3917
|
}
|
|
3918
3918
|
return i;
|
|
@@ -3921,11 +3921,11 @@ var Zu = ms(Br), 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 ? qr : s, u = t.componentId, l = u === void 0 ? function(S,
|
|
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, k) {
|
|
3925
3925
|
var N = typeof S != "string" ? "sc" : Xi(S);
|
|
3926
3926
|
ln[N] = (ln[N] || 0) + 1;
|
|
3927
|
-
var
|
|
3928
|
-
return
|
|
3927
|
+
var O = "".concat(N, "-").concat(ys(Ur + N + ln[N]));
|
|
3928
|
+
return k ? "".concat(k, "-").concat(O) : O;
|
|
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,49 +3933,49 @@ 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, k) {
|
|
3937
|
+
return E(S, k) && w(S, k);
|
|
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
|
|
3945
|
-
process.env.NODE_ENV !== "production" && Ei(
|
|
3946
|
-
var
|
|
3947
|
-
for (var
|
|
3948
|
-
var
|
|
3949
|
-
for (var
|
|
3942
|
+
function b(S, k) {
|
|
3943
|
+
return function(N, O, D) {
|
|
3944
|
+
var M = N.attrs, fe = N.componentStyle, Y = N.defaultProps, de = N.foldedComponentIds, W = N.styledComponentId, he = N.target, ze = te.useContext(Ps), Jt = io(), tt = N.shouldForwardProp || Jt.shouldForwardProp;
|
|
3945
|
+
process.env.NODE_ENV !== "production" && Ei(W);
|
|
3946
|
+
var _t = _u(O, ze, Y) || pt, se = function(nt, Oe, Ae) {
|
|
3947
|
+
for (var pe, me = ee(ee({}, Oe), { className: void 0, theme: Ae }), Te = 0; Te < nt.length; Te += 1) {
|
|
3948
|
+
var it = mt(pe = nt[Te]) ? pe(me) : pe;
|
|
3949
|
+
for (var ye in it) me[ye] = ye === "className" ? qe(me[ye], it[ye]) : ye === "style" ? ee(ee({}, me[ye]), it[ye]) : it[ye];
|
|
3950
3950
|
}
|
|
3951
|
-
return Oe.className && (
|
|
3952
|
-
}(
|
|
3953
|
-
for (var K in
|
|
3954
|
-
var
|
|
3955
|
-
var
|
|
3956
|
-
return process.env.NODE_ENV !== "production" && Ei(
|
|
3957
|
-
}(
|
|
3958
|
-
process.env.NODE_ENV !== "production" && N.warnTooManyClasses && N.warnTooManyClasses(
|
|
3959
|
-
var
|
|
3960
|
-
return
|
|
3961
|
-
}(m, S,
|
|
3951
|
+
return Oe.className && (me.className = qe(me.className, Oe.className)), me;
|
|
3952
|
+
}(M, O, _t), Ce = se.as || he, Re = {};
|
|
3953
|
+
for (var K in se) se[K] === void 0 || K[0] === "$" || K === "as" || K === "theme" && se.theme === _t || (K === "forwardedAs" ? Re.as = se.forwardedAs : tt && !tt(K, Ce) || (Re[K] = se[K], tt || process.env.NODE_ENV !== "development" || Zc(K) || so.has(K) || !On.has(Ce) || (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
|
+
var rt = function(nt, Oe) {
|
|
3955
|
+
var Ae = io(), pe = nt.generateAndInjectStyles(Oe, Ae.styleSheet, Ae.stylis);
|
|
3956
|
+
return process.env.NODE_ENV !== "production" && Ei(pe), pe;
|
|
3957
|
+
}(fe, se);
|
|
3958
|
+
process.env.NODE_ENV !== "production" && N.warnTooManyClasses && N.warnTooManyClasses(rt);
|
|
3959
|
+
var Et = qe(de, W);
|
|
3960
|
+
return rt && (Et += " " + rt), se.className && (Et += " " + se.className), Re[un(Ce) && !On.has(Ce) ? "class" : "className"] = Et, D && (Re.ref = D), Oa(Ce, Re);
|
|
3961
|
+
}(m, S, k);
|
|
3962
3962
|
}
|
|
3963
3963
|
b.displayName = d;
|
|
3964
3964
|
var m = te.forwardRef(b);
|
|
3965
|
-
return m.attrs = p, m.componentStyle = v, m.displayName = d, m.shouldForwardProp = y, m.foldedComponentIds = n ?
|
|
3965
|
+
return m.attrs = p, m.componentStyle = v, m.displayName = d, m.shouldForwardProp = y, m.foldedComponentIds = n ? qe(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
|
|
3971
|
-
return
|
|
3968
|
+
this._foldedDefaultProps = n ? function(k) {
|
|
3969
|
+
for (var N = [], O = 1; O < arguments.length; O++) N[O - 1] = arguments[O];
|
|
3970
|
+
for (var D = 0, M = N; D < M.length; D++) Pn(k, M[D], !0);
|
|
3971
|
+
return k;
|
|
3972
3972
|
}({}, i.defaultProps, S) : S;
|
|
3973
|
-
} }), process.env.NODE_ENV !== "production" && (wu(d, h), m.warnTooManyClasses = /* @__PURE__ */ function(S,
|
|
3974
|
-
var N = {},
|
|
3975
|
-
return function(
|
|
3976
|
-
if (!
|
|
3977
|
-
var
|
|
3978
|
-
console.warn("Over ".concat(200, " classes were generated for component ").concat(S).concat(
|
|
3973
|
+
} }), process.env.NODE_ENV !== "production" && (wu(d, h), m.warnTooManyClasses = /* @__PURE__ */ function(S, k) {
|
|
3974
|
+
var N = {}, O = !1;
|
|
3975
|
+
return function(D) {
|
|
3976
|
+
if (!O && (N[D] = !0, Object.keys(N).length >= 200)) {
|
|
3977
|
+
var M = k ? ' with the id of "'.concat(k, '"') : "";
|
|
3978
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(S).concat(M, `.
|
|
3979
3979
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
3980
3980
|
Example:
|
|
3981
3981
|
const Component = styled.div.attrs(props => ({
|
|
@@ -3984,7 +3984,7 @@ Example:
|
|
|
3984
3984
|
},
|
|
3985
3985
|
}))\`width: 100%;\`
|
|
3986
3986
|
|
|
3987
|
-
<Component />`),
|
|
3987
|
+
<Component />`), O = !0, N = {};
|
|
3988
3988
|
}
|
|
3989
3989
|
};
|
|
3990
3990
|
}(d, h)), oi(m, function() {
|
|
@@ -4000,15 +4000,15 @@ 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 (
|
|
4003
|
+
if (mt(e) || yt(e)) return co(He(ao(qr, Qe([e], t, !0))));
|
|
4004
4004
|
var n = e;
|
|
4005
|
-
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ?
|
|
4005
|
+
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? He(n) : co(He(ao(n, t)));
|
|
4006
4006
|
}
|
|
4007
4007
|
function An(e, t, r) {
|
|
4008
|
-
if (r === void 0 && (r =
|
|
4008
|
+
if (r === void 0 && (r = pt), !t) throw wt(1, t);
|
|
4009
4009
|
var n = function(i) {
|
|
4010
4010
|
for (var o = [], s = 1; s < arguments.length; s++) o[s - 1] = arguments[s];
|
|
4011
|
-
return e(t, r, Cs.apply(void 0,
|
|
4011
|
+
return e(t, r, Cs.apply(void 0, Qe([i], o, !1)));
|
|
4012
4012
|
};
|
|
4013
4013
|
return n.attrs = function(i) {
|
|
4014
4014
|
return An(e, t, ee(ee({}, r), { attrs: Array.prototype.concat(r.attrs, i).filter(Boolean) }));
|
|
@@ -4018,20 +4018,20 @@ function An(e, t, r) {
|
|
|
4018
4018
|
}
|
|
4019
4019
|
var Rs = function(e) {
|
|
4020
4020
|
return An(tl, e);
|
|
4021
|
-
},
|
|
4022
|
-
|
|
4023
|
-
|
|
4021
|
+
}, re = Rs;
|
|
4022
|
+
On.forEach(function(e) {
|
|
4023
|
+
re[e] = Rs(e);
|
|
4024
4024
|
});
|
|
4025
4025
|
function rl(e) {
|
|
4026
4026
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
4027
4027
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
|
|
4028
|
-
var n = Nn(Cs.apply(void 0,
|
|
4028
|
+
var n = Nn(Cs.apply(void 0, Qe([e], t, !1))), i = ys(n);
|
|
4029
4029
|
return new Rn(i, n);
|
|
4030
4030
|
}
|
|
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 ar = "__sc-".concat(
|
|
4034
|
+
var ar = "__sc-".concat(Xe, "__");
|
|
4035
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
4037
|
See https://s-c.sh/2BAXzed for more info.`), window[ar] += 1);
|
|
@@ -4045,7 +4045,7 @@ const nl = rl`
|
|
|
4045
4045
|
100% {
|
|
4046
4046
|
transform: scale(1);
|
|
4047
4047
|
}
|
|
4048
|
-
`, il =
|
|
4048
|
+
`, il = re.div`
|
|
4049
4049
|
display: inline-block;
|
|
4050
4050
|
position: relative;
|
|
4051
4051
|
overflow: hidden;
|
|
@@ -4056,7 +4056,7 @@ const nl = rl`
|
|
|
4056
4056
|
&:active {
|
|
4057
4057
|
animation: ${nl} 0.2s;
|
|
4058
4058
|
}
|
|
4059
|
-
`, ol =
|
|
4059
|
+
`, ol = re.button`
|
|
4060
4060
|
display: flex;
|
|
4061
4061
|
align-items: center;
|
|
4062
4062
|
position: relative;
|
|
@@ -4075,7 +4075,7 @@ const nl = rl`
|
|
|
4075
4075
|
background-color: #ffb652;
|
|
4076
4076
|
color: black;
|
|
4077
4077
|
}
|
|
4078
|
-
`, sl =
|
|
4078
|
+
`, sl = re.div`
|
|
4079
4079
|
margin-right: 1.25rem;
|
|
4080
4080
|
|
|
4081
4081
|
@media (min-width: 640px) {
|
|
@@ -4109,15 +4109,15 @@ function ul(e, t) {
|
|
|
4109
4109
|
}
|
|
4110
4110
|
return r;
|
|
4111
4111
|
}
|
|
4112
|
-
function
|
|
4113
|
-
return
|
|
4112
|
+
function Or() {
|
|
4113
|
+
return Or = 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
|
+
}, Or.apply(this, arguments);
|
|
4121
4121
|
}
|
|
4122
4122
|
function lo(e, t) {
|
|
4123
4123
|
var r = Object.keys(e);
|
|
@@ -4129,7 +4129,7 @@ function lo(e, t) {
|
|
|
4129
4129
|
}
|
|
4130
4130
|
return r;
|
|
4131
4131
|
}
|
|
4132
|
-
function
|
|
4132
|
+
function kr(e) {
|
|
4133
4133
|
for (var t = 1; t < arguments.length; t++) {
|
|
4134
4134
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
4135
4135
|
t % 2 ? lo(Object(r), !0).forEach(function(n) {
|
|
@@ -4158,13 +4158,13 @@ function dl(e, t) {
|
|
|
4158
4158
|
return (t === "string" ? String : Number)(e);
|
|
4159
4159
|
}
|
|
4160
4160
|
function Ts(e) {
|
|
4161
|
-
return e && e.map((t, r) => /* @__PURE__ */ te.createElement(t.tag,
|
|
4161
|
+
return e && e.map((t, r) => /* @__PURE__ */ te.createElement(t.tag, kr({
|
|
4162
4162
|
key: r
|
|
4163
4163
|
}, t.attr), Ts(t.child)));
|
|
4164
4164
|
}
|
|
4165
|
-
function
|
|
4166
|
-
return (t) => /* @__PURE__ */ te.createElement(hl,
|
|
4167
|
-
attr:
|
|
4165
|
+
function et(e) {
|
|
4166
|
+
return (t) => /* @__PURE__ */ te.createElement(hl, Or({
|
|
4167
|
+
attr: kr({}, e.attr)
|
|
4168
4168
|
}, t), Ts(e.child));
|
|
4169
4169
|
}
|
|
4170
4170
|
function hl(e) {
|
|
@@ -4174,13 +4174,13 @@ 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", Or({
|
|
4178
4178
|
stroke: "currentColor",
|
|
4179
4179
|
fill: "currentColor",
|
|
4180
4180
|
strokeWidth: "0"
|
|
4181
4181
|
}, r.attr, n, s, {
|
|
4182
4182
|
className: u,
|
|
4183
|
-
style:
|
|
4183
|
+
style: kr(kr({
|
|
4184
4184
|
color: e.color || r.color
|
|
4185
4185
|
}, r.style), e.style),
|
|
4186
4186
|
height: a,
|
|
@@ -4191,27 +4191,27 @@ 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 et({ 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 et({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "line", attr: { x1: "22", y1: "2", x2: "11", y2: "13" }, child: [] }, { tag: "polygon", attr: { points: "22 2 15 22 11 13 2 9 22 2" }, child: [] }] })(e);
|
|
4198
4198
|
}
|
|
4199
|
-
const
|
|
4199
|
+
const Nf = ({
|
|
4200
4200
|
iconComponent: e,
|
|
4201
4201
|
buttonText: t,
|
|
4202
4202
|
buttonType: r = "primary",
|
|
4203
4203
|
onClick: n
|
|
4204
4204
|
}) => {
|
|
4205
4205
|
let i;
|
|
4206
|
-
e === "plus" ? i = /* @__PURE__ */
|
|
4206
|
+
e === "plus" ? i = /* @__PURE__ */ L.jsx(pl, {}) : e === "send" && (i = /* @__PURE__ */ L.jsx(ml, {}));
|
|
4207
4207
|
const o = () => {
|
|
4208
4208
|
n && n();
|
|
4209
4209
|
};
|
|
4210
|
-
return /* @__PURE__ */
|
|
4211
|
-
/* @__PURE__ */
|
|
4212
|
-
/* @__PURE__ */
|
|
4210
|
+
return /* @__PURE__ */ L.jsx(il, { onClick: o, children: /* @__PURE__ */ L.jsxs(ol, { className: r, children: [
|
|
4211
|
+
/* @__PURE__ */ L.jsx(sl, { children: i }),
|
|
4212
|
+
/* @__PURE__ */ L.jsx(Qc, { textStyles: { minWidth: "3rem" }, content: t, animate: !0 })
|
|
4213
4213
|
] }) });
|
|
4214
|
-
}, yl =
|
|
4214
|
+
}, yl = re(is.div)`
|
|
4215
4215
|
width: 2.5rem;
|
|
4216
4216
|
height: 2.5rem;
|
|
4217
4217
|
border-radius: 50%;
|
|
@@ -4220,18 +4220,18 @@ const wf = ({
|
|
|
4220
4220
|
align-items: center;
|
|
4221
4221
|
justify-content: center;
|
|
4222
4222
|
cursor: pointer;
|
|
4223
|
-
`, gl =
|
|
4223
|
+
`, gl = re.span`
|
|
4224
4224
|
display: flex;
|
|
4225
4225
|
color: black;
|
|
4226
4226
|
font-size: 1.125rem;
|
|
4227
4227
|
`;
|
|
4228
4228
|
function vl(e) {
|
|
4229
|
-
return
|
|
4229
|
+
return et({ 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 et({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M0 .5A.5.5 0 0 1 .5 0h3a.5.5 0 0 1 0 1H1v2.5a.5.5 0 0 1-1 0zm12 0a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-1 0V1h-2.5a.5.5 0 0 1-.5-.5M.5 12a.5.5 0 0 1 .5.5V15h2.5a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5m15 0a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1 0-1H15v-2.5a.5.5 0 0 1 .5-.5M4 4h1v1H4z" }, child: [] }, { tag: "path", attr: { d: "M7 2H2v5h5zM3 3h3v3H3zm2 8H4v1h1z" }, child: [] }, { tag: "path", attr: { d: "M7 9H2v5h5zm-4 1h3v3H3zm8-6h1v1h-1z" }, child: [] }, { tag: "path", attr: { d: "M9 2h5v5H9zm1 1v3h3V3zM8 8v2h1v1H8v1h2v-2h1v2h1v-1h2v-1h-3V8zm2 2H9V9h1zm4 2h-1v1h-2v1h3zm-4 2v-1H8v1z" }, child: [] }, { tag: "path", attr: { d: "M12 9h2V8h-2z" }, child: [] }] })(e);
|
|
4233
4233
|
}
|
|
4234
|
-
const
|
|
4234
|
+
const Pf = ({ 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)" }
|
|
@@ -4239,25 +4239,94 @@ const _f = ({ iconComponent: e, onClick: t }) => {
|
|
|
4239
4239
|
t && t();
|
|
4240
4240
|
};
|
|
4241
4241
|
let i;
|
|
4242
|
-
return e === "person" ? i = /* @__PURE__ */
|
|
4242
|
+
return e === "person" ? i = /* @__PURE__ */ L.jsx(vl, {}) : e === "qr" && (i = /* @__PURE__ */ L.jsx(bl, {})), /* @__PURE__ */ L.jsx(yl, { style: r, onClick: n, children: /* @__PURE__ */ L.jsx(gl, { children: i }) });
|
|
4243
4243
|
};
|
|
4244
4244
|
function wl(e) {
|
|
4245
|
-
return
|
|
4245
|
+
return et({ 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
4246
|
}
|
|
4247
|
-
const
|
|
4247
|
+
const Cf = ({ size: e, onClick: t }) => {
|
|
4248
4248
|
const r = () => {
|
|
4249
4249
|
t && t();
|
|
4250
4250
|
};
|
|
4251
|
-
return /* @__PURE__ */
|
|
4251
|
+
return /* @__PURE__ */ L.jsx(wl, { size: e ?? "1.5rem", onClick: r });
|
|
4252
4252
|
};
|
|
4253
|
-
|
|
4253
|
+
re.div`
|
|
4254
|
+
position: absolute;
|
|
4255
|
+
left: 0;
|
|
4256
|
+
right: 0;
|
|
4257
|
+
display: flex;
|
|
4258
|
+
flex-direction: column;
|
|
4259
|
+
z-index: 1;
|
|
4260
|
+
`;
|
|
4261
|
+
re.div`
|
|
4262
|
+
display: flex;
|
|
4263
|
+
flex-direction: column;
|
|
4264
|
+
padding: 1.5rem var(--app-standard-padding);
|
|
4265
|
+
color: black;
|
|
4266
|
+
gap: 2rem;
|
|
4267
|
+
justify-self: center;
|
|
4268
|
+
`;
|
|
4269
|
+
re.div`
|
|
4270
|
+
display: flex;
|
|
4271
|
+
flex-direction: column;
|
|
4272
|
+
gap: 1.5rem;
|
|
4273
|
+
`;
|
|
4274
|
+
const Rf = re.ul`
|
|
4275
|
+
display: flex;
|
|
4276
|
+
flex-direction: column;
|
|
4277
|
+
justify-content: center;
|
|
4278
|
+
padding-inline-start: unset;
|
|
4279
|
+
`, _l = re.li`
|
|
4280
|
+
position: relative;
|
|
4281
|
+
list-style: none;
|
|
4282
|
+
|
|
4283
|
+
&::after {
|
|
4284
|
+
content: '';
|
|
4285
|
+
position: absolute;
|
|
4286
|
+
left: 0;
|
|
4287
|
+
width: 100%;
|
|
4288
|
+
height: 1px;
|
|
4289
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
4290
|
+
}
|
|
4291
|
+
`, El = re.div`
|
|
4292
|
+
display: flex;
|
|
4293
|
+
flex-direction: row;
|
|
4294
|
+
gap: 2rem;
|
|
4295
|
+
`, Sl = re.div`
|
|
4296
|
+
display: flex;
|
|
4297
|
+
flex-direction: column;
|
|
4298
|
+
justify-content: center;
|
|
4299
|
+
`, xl = re.p`
|
|
4300
|
+
font-size: 1.2rem;
|
|
4301
|
+
`;
|
|
4302
|
+
function Ol(e) {
|
|
4303
|
+
return et({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "m12.87 15.07-2.54-2.51.03-.03A17.52 17.52 0 0 0 14.07 6H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7 1.62-4.33L19.12 17h-3.24z" }, child: [] }] })(e);
|
|
4304
|
+
}
|
|
4305
|
+
function kl(e) {
|
|
4306
|
+
return et({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79zM1 10.5h3v2H1zM11 .55h2V3.5h-2zm8.04 2.495 1.408 1.407-1.79 1.79-1.407-1.408zm-1.8 15.115 1.79 1.8 1.41-1.41-1.8-1.79zM20 10.5h3v2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm-1 4h2v2.95h-2zm-7.45-.96 1.41 1.41 1.79-1.8-1.41-1.41z" }, child: [] }] })(e);
|
|
4307
|
+
}
|
|
4308
|
+
const Nl = {
|
|
4309
|
+
translate: Ol,
|
|
4310
|
+
sunny: kl,
|
|
4311
|
+
character: () => /* @__PURE__ */ L.jsx("p", { style: { fontSize: "1rem", fontWeight: 500 }, children: "字" })
|
|
4312
|
+
}, Af = ({ icon: e, text: t, onClick: r, styles: n }) => {
|
|
4313
|
+
const i = Nl[e];
|
|
4314
|
+
return /* @__PURE__ */ L.jsx(_l, { onClick: r, style: n, children: /* @__PURE__ */ L.jsxs(El, { children: [
|
|
4315
|
+
/* @__PURE__ */ L.jsxs(Sl, { children: [
|
|
4316
|
+
/* @__PURE__ */ L.jsx(i, { size: "1.2rem" }),
|
|
4317
|
+
" "
|
|
4318
|
+
] }),
|
|
4319
|
+
/* @__PURE__ */ L.jsx(xl, { children: t })
|
|
4320
|
+
] }) });
|
|
4321
|
+
};
|
|
4322
|
+
function G(e) {
|
|
4254
4323
|
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. `;
|
|
4255
4324
|
}
|
|
4256
|
-
var
|
|
4325
|
+
var Pl = typeof Symbol == "function" && Symbol.observable || "@@observable", fo = Pl, fn = () => Math.random().toString(36).substring(7).split("").join("."), Cl = {
|
|
4257
4326
|
INIT: `@@redux/INIT${/* @__PURE__ */ fn()}`,
|
|
4258
4327
|
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ fn()}`,
|
|
4259
4328
|
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${fn()}`
|
|
4260
|
-
},
|
|
4329
|
+
}, Ye = Cl;
|
|
4261
4330
|
function Xt(e) {
|
|
4262
4331
|
if (typeof e != "object" || e === null)
|
|
4263
4332
|
return !1;
|
|
@@ -4266,7 +4335,7 @@ function Xt(e) {
|
|
|
4266
4335
|
t = Object.getPrototypeOf(t);
|
|
4267
4336
|
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
|
|
4268
4337
|
}
|
|
4269
|
-
function
|
|
4338
|
+
function Rl(e) {
|
|
4270
4339
|
if (e === void 0)
|
|
4271
4340
|
return "undefined";
|
|
4272
4341
|
if (e === null)
|
|
@@ -4282,11 +4351,11 @@ function Sl(e) {
|
|
|
4282
4351
|
}
|
|
4283
4352
|
if (Array.isArray(e))
|
|
4284
4353
|
return "array";
|
|
4285
|
-
if (
|
|
4354
|
+
if (Il(e))
|
|
4286
4355
|
return "date";
|
|
4287
|
-
if (
|
|
4356
|
+
if (Tl(e))
|
|
4288
4357
|
return "error";
|
|
4289
|
-
const r =
|
|
4358
|
+
const r = Al(e);
|
|
4290
4359
|
switch (r) {
|
|
4291
4360
|
case "Symbol":
|
|
4292
4361
|
case "Promise":
|
|
@@ -4298,28 +4367,28 @@ function Sl(e) {
|
|
|
4298
4367
|
}
|
|
4299
4368
|
return Object.prototype.toString.call(e).slice(8, -1).toLowerCase().replace(/\s/g, "");
|
|
4300
4369
|
}
|
|
4301
|
-
function
|
|
4370
|
+
function Al(e) {
|
|
4302
4371
|
return typeof e.constructor == "function" ? e.constructor.name : null;
|
|
4303
4372
|
}
|
|
4304
|
-
function
|
|
4373
|
+
function Tl(e) {
|
|
4305
4374
|
return e instanceof Error || typeof e.message == "string" && e.constructor && typeof e.constructor.stackTraceLimit == "number";
|
|
4306
4375
|
}
|
|
4307
|
-
function
|
|
4376
|
+
function Il(e) {
|
|
4308
4377
|
return e instanceof Date ? !0 : typeof e.toDateString == "function" && typeof e.getDate == "function" && typeof e.setDate == "function";
|
|
4309
4378
|
}
|
|
4310
|
-
function
|
|
4379
|
+
function je(e) {
|
|
4311
4380
|
let t = typeof e;
|
|
4312
|
-
return process.env.NODE_ENV !== "production" && (t =
|
|
4381
|
+
return process.env.NODE_ENV !== "production" && (t = Rl(e)), t;
|
|
4313
4382
|
}
|
|
4314
|
-
function
|
|
4383
|
+
function Is(e, t, r) {
|
|
4315
4384
|
if (typeof e != "function")
|
|
4316
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4385
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(2) : `Expected the root reducer to be a function. Instead, received: '${je(e)}'`);
|
|
4317
4386
|
if (typeof t == "function" && typeof r == "function" || typeof r == "function" && typeof arguments[3] == "function")
|
|
4318
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4387
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(0) : "It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");
|
|
4319
4388
|
if (typeof t == "function" && typeof r > "u" && (r = t, t = void 0), typeof r < "u") {
|
|
4320
4389
|
if (typeof r != "function")
|
|
4321
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4322
|
-
return r(
|
|
4390
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(1) : `Expected the enhancer to be a function. Instead, received: '${je(r)}'`);
|
|
4391
|
+
return r(Is)(e, t);
|
|
4323
4392
|
}
|
|
4324
4393
|
let n = e, i = t, o = /* @__PURE__ */ new Map(), s = o, a = 0, u = !1;
|
|
4325
4394
|
function l() {
|
|
@@ -4329,34 +4398,34 @@ function Ds(e, t, r) {
|
|
|
4329
4398
|
}
|
|
4330
4399
|
function f() {
|
|
4331
4400
|
if (u)
|
|
4332
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4401
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(3) : "You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");
|
|
4333
4402
|
return i;
|
|
4334
4403
|
}
|
|
4335
4404
|
function d(w) {
|
|
4336
4405
|
if (typeof w != "function")
|
|
4337
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4406
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(4) : `Expected the listener to be a function. Instead, received: '${je(w)}'`);
|
|
4338
4407
|
if (u)
|
|
4339
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4408
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
4340
4409
|
let v = !0;
|
|
4341
4410
|
l();
|
|
4342
4411
|
const b = a++;
|
|
4343
4412
|
return s.set(b, w), function() {
|
|
4344
4413
|
if (v) {
|
|
4345
4414
|
if (u)
|
|
4346
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4415
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
4347
4416
|
v = !1, l(), s.delete(b), o = null;
|
|
4348
4417
|
}
|
|
4349
4418
|
};
|
|
4350
4419
|
}
|
|
4351
4420
|
function h(w) {
|
|
4352
4421
|
if (!Xt(w))
|
|
4353
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4422
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(7) : `Actions must be plain objects. Instead, the actual type was: '${je(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.`);
|
|
4354
4423
|
if (typeof w.type > "u")
|
|
4355
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4424
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
|
|
4356
4425
|
if (typeof w.type != "string")
|
|
4357
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4426
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(17) : `Action "type" property must be a string. Instead, the actual type was: '${je(w.type)}'. Value was: '${w.type}' (stringified)`);
|
|
4358
4427
|
if (u)
|
|
4359
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4428
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(9) : "Reducers may not dispatch actions.");
|
|
4360
4429
|
try {
|
|
4361
4430
|
u = !0, i = n(i, w);
|
|
4362
4431
|
} finally {
|
|
@@ -4368,9 +4437,9 @@ function Ds(e, t, r) {
|
|
|
4368
4437
|
}
|
|
4369
4438
|
function p(w) {
|
|
4370
4439
|
if (typeof w != "function")
|
|
4371
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4440
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(10) : `Expected the nextReducer to be a function. Instead, received: '${je(w)}`);
|
|
4372
4441
|
n = w, h({
|
|
4373
|
-
type:
|
|
4442
|
+
type: Ye.REPLACE
|
|
4374
4443
|
});
|
|
4375
4444
|
}
|
|
4376
4445
|
function y() {
|
|
@@ -4386,7 +4455,7 @@ function Ds(e, t, r) {
|
|
|
4386
4455
|
*/
|
|
4387
4456
|
subscribe(v) {
|
|
4388
4457
|
if (typeof v != "object" || v === null)
|
|
4389
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4458
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(11) : `Expected the observer to be an object. Instead, received: '${je(v)}'`);
|
|
4390
4459
|
function b() {
|
|
4391
4460
|
const S = v;
|
|
4392
4461
|
S.next && S.next(f());
|
|
@@ -4401,7 +4470,7 @@ function Ds(e, t, r) {
|
|
|
4401
4470
|
};
|
|
4402
4471
|
}
|
|
4403
4472
|
return h({
|
|
4404
|
-
type:
|
|
4473
|
+
type: Ye.INIT
|
|
4405
4474
|
}), {
|
|
4406
4475
|
dispatch: h,
|
|
4407
4476
|
subscribe: d,
|
|
@@ -4417,32 +4486,32 @@ function ho(e) {
|
|
|
4417
4486
|
} catch {
|
|
4418
4487
|
}
|
|
4419
4488
|
}
|
|
4420
|
-
function
|
|
4421
|
-
const i = Object.keys(t), o = r && r.type ===
|
|
4489
|
+
function Dl(e, t, r, n) {
|
|
4490
|
+
const i = Object.keys(t), o = r && r.type === Ye.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer";
|
|
4422
4491
|
if (i.length === 0)
|
|
4423
4492
|
return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";
|
|
4424
4493
|
if (!Xt(e))
|
|
4425
|
-
return `The ${o} has unexpected type of "${
|
|
4494
|
+
return `The ${o} has unexpected type of "${je(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;
|
|
4426
4495
|
const s = Object.keys(e).filter((a) => !t.hasOwnProperty(a) && !n[a]);
|
|
4427
4496
|
if (s.forEach((a) => {
|
|
4428
4497
|
n[a] = !0;
|
|
4429
|
-
}), !(r && r.type ===
|
|
4498
|
+
}), !(r && r.type === Ye.REPLACE) && s.length > 0)
|
|
4430
4499
|
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.`;
|
|
4431
4500
|
}
|
|
4432
|
-
function
|
|
4501
|
+
function jl(e) {
|
|
4433
4502
|
Object.keys(e).forEach((t) => {
|
|
4434
4503
|
const r = e[t];
|
|
4435
4504
|
if (typeof r(void 0, {
|
|
4436
|
-
type:
|
|
4505
|
+
type: Ye.INIT
|
|
4437
4506
|
}) > "u")
|
|
4438
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4507
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(12) : `The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);
|
|
4439
4508
|
if (typeof r(void 0, {
|
|
4440
|
-
type:
|
|
4509
|
+
type: Ye.PROBE_UNKNOWN_ACTION()
|
|
4441
4510
|
}) > "u")
|
|
4442
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4511
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(13) : `The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Ye.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`);
|
|
4443
4512
|
});
|
|
4444
4513
|
}
|
|
4445
|
-
function
|
|
4514
|
+
function Ds(e) {
|
|
4446
4515
|
const t = Object.keys(e), r = {};
|
|
4447
4516
|
for (let s = 0; s < t.length; s++) {
|
|
4448
4517
|
const a = t[s];
|
|
@@ -4453,7 +4522,7 @@ function Is(e) {
|
|
|
4453
4522
|
process.env.NODE_ENV !== "production" && (i = {});
|
|
4454
4523
|
let o;
|
|
4455
4524
|
try {
|
|
4456
|
-
|
|
4525
|
+
jl(r);
|
|
4457
4526
|
} catch (s) {
|
|
4458
4527
|
o = s;
|
|
4459
4528
|
}
|
|
@@ -4461,7 +4530,7 @@ function Is(e) {
|
|
|
4461
4530
|
if (o)
|
|
4462
4531
|
throw o;
|
|
4463
4532
|
if (process.env.NODE_ENV !== "production") {
|
|
4464
|
-
const d =
|
|
4533
|
+
const d = Dl(a, r, u, i);
|
|
4465
4534
|
d && ho(d);
|
|
4466
4535
|
}
|
|
4467
4536
|
let l = !1;
|
|
@@ -4470,7 +4539,7 @@ function Is(e) {
|
|
|
4470
4539
|
const h = n[d], p = r[h], y = a[h], E = p(y, u);
|
|
4471
4540
|
if (typeof E > "u") {
|
|
4472
4541
|
const w = u && u.type;
|
|
4473
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4542
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(14) : `When called with an action of type ${w ? `"${String(w)}"` : "(unknown type)"}, the slice reducer for key "${h}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`);
|
|
4474
4543
|
}
|
|
4475
4544
|
f[h] = E, l = l || E !== y;
|
|
4476
4545
|
}
|
|
@@ -4480,11 +4549,11 @@ function Is(e) {
|
|
|
4480
4549
|
function Nr(...e) {
|
|
4481
4550
|
return e.length === 0 ? (t) => t : e.length === 1 ? e[0] : e.reduce((t, r) => (...n) => t(r(...n)));
|
|
4482
4551
|
}
|
|
4483
|
-
function
|
|
4552
|
+
function Vl(...e) {
|
|
4484
4553
|
return (t) => (r, n) => {
|
|
4485
4554
|
const i = t(r, n);
|
|
4486
4555
|
let o = () => {
|
|
4487
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4556
|
+
throw new Error(process.env.NODE_ENV === "production" ? G(15) : "Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");
|
|
4488
4557
|
};
|
|
4489
4558
|
const s = {
|
|
4490
4559
|
getState: i.getState,
|
|
@@ -4499,7 +4568,7 @@ function Cl(...e) {
|
|
|
4499
4568
|
function js(e) {
|
|
4500
4569
|
return Xt(e) && "type" in e && typeof e.type == "string";
|
|
4501
4570
|
}
|
|
4502
|
-
var Vs = Symbol.for("immer-nothing"), po = Symbol.for("immer-draftable"),
|
|
4571
|
+
var Vs = Symbol.for("immer-nothing"), po = Symbol.for("immer-draftable"), ie = Symbol.for("immer-state"), $l = process.env.NODE_ENV !== "production" ? [
|
|
4503
4572
|
// All error codes, starting by 0:
|
|
4504
4573
|
function(e) {
|
|
4505
4574
|
return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
|
|
@@ -4532,30 +4601,30 @@ var Vs = Symbol.for("immer-nothing"), po = Symbol.for("immer-draftable"), ne = S
|
|
|
4532
4601
|
] : [];
|
|
4533
4602
|
function Z(e, ...t) {
|
|
4534
4603
|
if (process.env.NODE_ENV !== "production") {
|
|
4535
|
-
const r =
|
|
4604
|
+
const r = $l[e], n = typeof r == "function" ? r.apply(null, t) : r;
|
|
4536
4605
|
throw new Error(`[Immer] ${n}`);
|
|
4537
4606
|
}
|
|
4538
4607
|
throw new Error(
|
|
4539
4608
|
`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
|
|
4540
4609
|
);
|
|
4541
4610
|
}
|
|
4542
|
-
var
|
|
4543
|
-
function
|
|
4544
|
-
return !!e && !!e[
|
|
4611
|
+
var gt = Object.getPrototypeOf;
|
|
4612
|
+
function Je(e) {
|
|
4613
|
+
return !!e && !!e[ie];
|
|
4545
4614
|
}
|
|
4546
|
-
function
|
|
4615
|
+
function Pe(e) {
|
|
4547
4616
|
var t;
|
|
4548
4617
|
return e ? $s(e) || Array.isArray(e) || !!e[po] || !!((t = e.constructor) != null && t[po]) || Hr(e) || Yr(e) : !1;
|
|
4549
4618
|
}
|
|
4550
|
-
var
|
|
4619
|
+
var Ml = Object.prototype.constructor.toString();
|
|
4551
4620
|
function $s(e) {
|
|
4552
4621
|
if (!e || typeof e != "object")
|
|
4553
4622
|
return !1;
|
|
4554
|
-
const t =
|
|
4623
|
+
const t = gt(e);
|
|
4555
4624
|
if (t === null)
|
|
4556
4625
|
return !0;
|
|
4557
4626
|
const r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
4558
|
-
return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) ===
|
|
4627
|
+
return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === Ml;
|
|
4559
4628
|
}
|
|
4560
4629
|
function Pr(e, t) {
|
|
4561
4630
|
Wr(e) === 0 ? Reflect.ownKeys(e).forEach((r) => {
|
|
@@ -4563,17 +4632,17 @@ function Pr(e, t) {
|
|
|
4563
4632
|
}) : e.forEach((r, n) => t(n, r, e));
|
|
4564
4633
|
}
|
|
4565
4634
|
function Wr(e) {
|
|
4566
|
-
const t = e[
|
|
4635
|
+
const t = e[ie];
|
|
4567
4636
|
return t ? t.type_ : Array.isArray(e) ? 1 : Hr(e) ? 2 : Yr(e) ? 3 : 0;
|
|
4568
4637
|
}
|
|
4569
4638
|
function Tn(e, t) {
|
|
4570
4639
|
return Wr(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
|
|
4571
4640
|
}
|
|
4572
|
-
function
|
|
4641
|
+
function Ms(e, t, r) {
|
|
4573
4642
|
const n = Wr(e);
|
|
4574
4643
|
n === 2 ? e.set(t, r) : n === 3 ? e.add(r) : e[t] = r;
|
|
4575
4644
|
}
|
|
4576
|
-
function
|
|
4645
|
+
function zl(e, t) {
|
|
4577
4646
|
return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
|
|
4578
4647
|
}
|
|
4579
4648
|
function Hr(e) {
|
|
@@ -4582,10 +4651,10 @@ function Hr(e) {
|
|
|
4582
4651
|
function Yr(e) {
|
|
4583
4652
|
return e instanceof Set;
|
|
4584
4653
|
}
|
|
4585
|
-
function
|
|
4654
|
+
function Le(e) {
|
|
4586
4655
|
return e.copy_ || e.base_;
|
|
4587
4656
|
}
|
|
4588
|
-
function
|
|
4657
|
+
function In(e, t) {
|
|
4589
4658
|
if (Hr(e))
|
|
4590
4659
|
return new Map(e);
|
|
4591
4660
|
if (Yr(e))
|
|
@@ -4595,7 +4664,7 @@ function Dn(e, t) {
|
|
|
4595
4664
|
const r = $s(e);
|
|
4596
4665
|
if (t === !0 || t === "class_only" && !r) {
|
|
4597
4666
|
const n = Object.getOwnPropertyDescriptors(e);
|
|
4598
|
-
delete n[
|
|
4667
|
+
delete n[ie];
|
|
4599
4668
|
let i = Reflect.ownKeys(n);
|
|
4600
4669
|
for (let o = 0; o < i.length; o++) {
|
|
4601
4670
|
const s = i[o], a = n[s];
|
|
@@ -4607,9 +4676,9 @@ function Dn(e, t) {
|
|
|
4607
4676
|
value: e[s]
|
|
4608
4677
|
});
|
|
4609
4678
|
}
|
|
4610
|
-
return Object.create(
|
|
4679
|
+
return Object.create(gt(e), n);
|
|
4611
4680
|
} else {
|
|
4612
|
-
const n =
|
|
4681
|
+
const n = gt(e);
|
|
4613
4682
|
if (n !== null && r)
|
|
4614
4683
|
return { ...e };
|
|
4615
4684
|
const i = Object.create(n);
|
|
@@ -4617,24 +4686,24 @@ function Dn(e, t) {
|
|
|
4617
4686
|
}
|
|
4618
4687
|
}
|
|
4619
4688
|
function si(e, t = !1) {
|
|
4620
|
-
return Gr(e) ||
|
|
4689
|
+
return Gr(e) || Je(e) || !Pe(e) || (Wr(e) > 1 && (e.set = e.add = e.clear = e.delete = Fl), Object.freeze(e), t && Object.entries(e).forEach(([r, n]) => si(n, !0))), e;
|
|
4621
4690
|
}
|
|
4622
|
-
function
|
|
4691
|
+
function Fl() {
|
|
4623
4692
|
Z(2);
|
|
4624
4693
|
}
|
|
4625
4694
|
function Gr(e) {
|
|
4626
4695
|
return Object.isFrozen(e);
|
|
4627
4696
|
}
|
|
4628
|
-
var
|
|
4629
|
-
function
|
|
4630
|
-
const t =
|
|
4697
|
+
var Ll = {};
|
|
4698
|
+
function Ze(e) {
|
|
4699
|
+
const t = Ll[e];
|
|
4631
4700
|
return t || Z(0, e), t;
|
|
4632
4701
|
}
|
|
4633
|
-
var
|
|
4634
|
-
function
|
|
4635
|
-
return
|
|
4702
|
+
var Ht;
|
|
4703
|
+
function zs() {
|
|
4704
|
+
return Ht;
|
|
4636
4705
|
}
|
|
4637
|
-
function
|
|
4706
|
+
function Bl(e, t) {
|
|
4638
4707
|
return {
|
|
4639
4708
|
drafts_: [],
|
|
4640
4709
|
parent_: e,
|
|
@@ -4646,35 +4715,35 @@ function jl(e, t) {
|
|
|
4646
4715
|
};
|
|
4647
4716
|
}
|
|
4648
4717
|
function mo(e, t) {
|
|
4649
|
-
t && (
|
|
4718
|
+
t && (Ze("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
4650
4719
|
}
|
|
4651
|
-
function
|
|
4652
|
-
jn(e), e.drafts_.forEach(
|
|
4720
|
+
function Dn(e) {
|
|
4721
|
+
jn(e), e.drafts_.forEach(Ul), e.drafts_ = null;
|
|
4653
4722
|
}
|
|
4654
4723
|
function jn(e) {
|
|
4655
|
-
e ===
|
|
4724
|
+
e === Ht && (Ht = e.parent_);
|
|
4656
4725
|
}
|
|
4657
4726
|
function yo(e) {
|
|
4658
|
-
return
|
|
4727
|
+
return Ht = Bl(Ht, e);
|
|
4659
4728
|
}
|
|
4660
|
-
function
|
|
4661
|
-
const t = e[
|
|
4729
|
+
function Ul(e) {
|
|
4730
|
+
const t = e[ie];
|
|
4662
4731
|
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
4663
4732
|
}
|
|
4664
4733
|
function go(e, t) {
|
|
4665
4734
|
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
4666
4735
|
const r = t.drafts_[0];
|
|
4667
|
-
return e !== void 0 && e !== r ? (r[
|
|
4668
|
-
r[
|
|
4736
|
+
return e !== void 0 && e !== r ? (r[ie].modified_ && (Dn(t), Z(4)), Pe(e) && (e = Cr(t, e), t.parent_ || Rr(t, e)), t.patches_ && Ze("Patches").generateReplacementPatches_(
|
|
4737
|
+
r[ie].base_,
|
|
4669
4738
|
e,
|
|
4670
4739
|
t.patches_,
|
|
4671
4740
|
t.inversePatches_
|
|
4672
|
-
)) : e = Cr(t, r, []),
|
|
4741
|
+
)) : e = Cr(t, r, []), Dn(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== Vs ? e : void 0;
|
|
4673
4742
|
}
|
|
4674
4743
|
function Cr(e, t, r) {
|
|
4675
4744
|
if (Gr(t))
|
|
4676
4745
|
return t;
|
|
4677
|
-
const n = t[
|
|
4746
|
+
const n = t[ie];
|
|
4678
4747
|
if (!n)
|
|
4679
4748
|
return Pr(
|
|
4680
4749
|
t,
|
|
@@ -4691,7 +4760,7 @@ function Cr(e, t, r) {
|
|
|
4691
4760
|
n.type_ === 3 && (o = new Set(i), i.clear(), s = !0), Pr(
|
|
4692
4761
|
o,
|
|
4693
4762
|
(a, u) => vo(e, n, i, a, u, r, s)
|
|
4694
|
-
), Rr(e, i, !1), r && e.patches_ &&
|
|
4763
|
+
), Rr(e, i, !1), r && e.patches_ && Ze("Patches").generatePatches_(
|
|
4695
4764
|
n,
|
|
4696
4765
|
r,
|
|
4697
4766
|
e.patches_,
|
|
@@ -4701,15 +4770,15 @@ function Cr(e, t, r) {
|
|
|
4701
4770
|
return n.copy_;
|
|
4702
4771
|
}
|
|
4703
4772
|
function vo(e, t, r, n, i, o, s) {
|
|
4704
|
-
if (process.env.NODE_ENV !== "production" && i === r && Z(5),
|
|
4773
|
+
if (process.env.NODE_ENV !== "production" && i === r && Z(5), Je(i)) {
|
|
4705
4774
|
const a = o && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
4706
4775
|
!Tn(t.assigned_, n) ? o.concat(n) : void 0, u = Cr(e, i, a);
|
|
4707
|
-
if (
|
|
4776
|
+
if (Ms(r, n, u), Je(u))
|
|
4708
4777
|
e.canAutoFreeze_ = !1;
|
|
4709
4778
|
else
|
|
4710
4779
|
return;
|
|
4711
4780
|
} else s && r.add(i);
|
|
4712
|
-
if (
|
|
4781
|
+
if (Pe(i) && !Gr(i)) {
|
|
4713
4782
|
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
|
|
4714
4783
|
return;
|
|
4715
4784
|
Cr(e, i), (!t || !t.scope_.parent_) && typeof n != "symbol" && Object.prototype.propertyIsEnumerable.call(r, n) && Rr(e, i);
|
|
@@ -4718,11 +4787,11 @@ function vo(e, t, r, n, i, o, s) {
|
|
|
4718
4787
|
function Rr(e, t, r = !1) {
|
|
4719
4788
|
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && si(t, r);
|
|
4720
4789
|
}
|
|
4721
|
-
function
|
|
4790
|
+
function ql(e, t) {
|
|
4722
4791
|
const r = Array.isArray(e), n = {
|
|
4723
4792
|
type_: r ? 1 : 0,
|
|
4724
4793
|
// Track which produce call this is associated with.
|
|
4725
|
-
scope_: t ? t.scope_ :
|
|
4794
|
+
scope_: t ? t.scope_ : zs(),
|
|
4726
4795
|
// True for both shallow and deep changes.
|
|
4727
4796
|
modified_: !1,
|
|
4728
4797
|
// Used during finalization.
|
|
@@ -4743,35 +4812,35 @@ function $l(e, t) {
|
|
|
4743
4812
|
isManual_: !1
|
|
4744
4813
|
};
|
|
4745
4814
|
let i = n, o = ai;
|
|
4746
|
-
r && (i = [n], o =
|
|
4815
|
+
r && (i = [n], o = Yt);
|
|
4747
4816
|
const { revoke: s, proxy: a } = Proxy.revocable(i, o);
|
|
4748
4817
|
return n.draft_ = a, n.revoke_ = s, a;
|
|
4749
4818
|
}
|
|
4750
4819
|
var ai = {
|
|
4751
4820
|
get(e, t) {
|
|
4752
|
-
if (t ===
|
|
4821
|
+
if (t === ie)
|
|
4753
4822
|
return e;
|
|
4754
|
-
const r =
|
|
4823
|
+
const r = Le(e);
|
|
4755
4824
|
if (!Tn(r, t))
|
|
4756
|
-
return
|
|
4825
|
+
return Wl(e, r, t);
|
|
4757
4826
|
const n = r[t];
|
|
4758
|
-
return e.finalized_ || !
|
|
4827
|
+
return e.finalized_ || !Pe(n) ? n : n === dn(e.base_, t) ? (hn(e), e.copy_[t] = $n(n, e)) : n;
|
|
4759
4828
|
},
|
|
4760
4829
|
has(e, t) {
|
|
4761
|
-
return t in
|
|
4830
|
+
return t in Le(e);
|
|
4762
4831
|
},
|
|
4763
4832
|
ownKeys(e) {
|
|
4764
|
-
return Reflect.ownKeys(
|
|
4833
|
+
return Reflect.ownKeys(Le(e));
|
|
4765
4834
|
},
|
|
4766
4835
|
set(e, t, r) {
|
|
4767
|
-
const n =
|
|
4836
|
+
const n = Fs(Le(e), t);
|
|
4768
4837
|
if (n != null && n.set)
|
|
4769
4838
|
return n.set.call(e.draft_, r), !0;
|
|
4770
4839
|
if (!e.modified_) {
|
|
4771
|
-
const i = dn(
|
|
4840
|
+
const i = dn(Le(e), t), o = i == null ? void 0 : i[ie];
|
|
4772
4841
|
if (o && o.base_ === r)
|
|
4773
4842
|
return e.copy_[t] = r, e.assigned_[t] = !1, !0;
|
|
4774
|
-
if (
|
|
4843
|
+
if (zl(r, i) && (r !== void 0 || Tn(e.base_, t)))
|
|
4775
4844
|
return !0;
|
|
4776
4845
|
hn(e), Vn(e);
|
|
4777
4846
|
}
|
|
@@ -4785,7 +4854,7 @@ var ai = {
|
|
|
4785
4854
|
// Note: We never coerce `desc.value` into an Immer draft, because we can't make
|
|
4786
4855
|
// the same guarantee in ES5 mode.
|
|
4787
4856
|
getOwnPropertyDescriptor(e, t) {
|
|
4788
|
-
const r =
|
|
4857
|
+
const r = Le(e), n = Reflect.getOwnPropertyDescriptor(r, t);
|
|
4789
4858
|
return n && {
|
|
4790
4859
|
writable: !0,
|
|
4791
4860
|
configurable: e.type_ !== 1 || t !== "length",
|
|
@@ -4797,57 +4866,57 @@ var ai = {
|
|
|
4797
4866
|
Z(11);
|
|
4798
4867
|
},
|
|
4799
4868
|
getPrototypeOf(e) {
|
|
4800
|
-
return
|
|
4869
|
+
return gt(e.base_);
|
|
4801
4870
|
},
|
|
4802
4871
|
setPrototypeOf() {
|
|
4803
4872
|
Z(12);
|
|
4804
4873
|
}
|
|
4805
|
-
},
|
|
4874
|
+
}, Yt = {};
|
|
4806
4875
|
Pr(ai, (e, t) => {
|
|
4807
|
-
|
|
4876
|
+
Yt[e] = function() {
|
|
4808
4877
|
return arguments[0] = arguments[0][0], t.apply(this, arguments);
|
|
4809
4878
|
};
|
|
4810
4879
|
});
|
|
4811
|
-
|
|
4812
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && Z(13),
|
|
4880
|
+
Yt.deleteProperty = function(e, t) {
|
|
4881
|
+
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && Z(13), Yt.set.call(this, e, t, void 0);
|
|
4813
4882
|
};
|
|
4814
|
-
|
|
4883
|
+
Yt.set = function(e, t, r) {
|
|
4815
4884
|
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && Z(14), ai.set.call(this, e[0], t, r, e[0]);
|
|
4816
4885
|
};
|
|
4817
4886
|
function dn(e, t) {
|
|
4818
|
-
const r = e[
|
|
4819
|
-
return (r ?
|
|
4887
|
+
const r = e[ie];
|
|
4888
|
+
return (r ? Le(r) : e)[t];
|
|
4820
4889
|
}
|
|
4821
|
-
function
|
|
4890
|
+
function Wl(e, t, r) {
|
|
4822
4891
|
var i;
|
|
4823
|
-
const n =
|
|
4892
|
+
const n = Fs(t, r);
|
|
4824
4893
|
return n ? "value" in n ? n.value : (
|
|
4825
4894
|
// This is a very special case, if the prop is a getter defined by the
|
|
4826
4895
|
// prototype, we should invoke it with the draft as context!
|
|
4827
4896
|
(i = n.get) == null ? void 0 : i.call(e.draft_)
|
|
4828
4897
|
) : void 0;
|
|
4829
4898
|
}
|
|
4830
|
-
function
|
|
4899
|
+
function Fs(e, t) {
|
|
4831
4900
|
if (!(t in e))
|
|
4832
4901
|
return;
|
|
4833
|
-
let r =
|
|
4902
|
+
let r = gt(e);
|
|
4834
4903
|
for (; r; ) {
|
|
4835
4904
|
const n = Object.getOwnPropertyDescriptor(r, t);
|
|
4836
4905
|
if (n)
|
|
4837
4906
|
return n;
|
|
4838
|
-
r =
|
|
4907
|
+
r = gt(r);
|
|
4839
4908
|
}
|
|
4840
4909
|
}
|
|
4841
4910
|
function Vn(e) {
|
|
4842
4911
|
e.modified_ || (e.modified_ = !0, e.parent_ && Vn(e.parent_));
|
|
4843
4912
|
}
|
|
4844
4913
|
function hn(e) {
|
|
4845
|
-
e.copy_ || (e.copy_ =
|
|
4914
|
+
e.copy_ || (e.copy_ = In(
|
|
4846
4915
|
e.base_,
|
|
4847
4916
|
e.scope_.immer_.useStrictShallowCopy_
|
|
4848
4917
|
));
|
|
4849
4918
|
}
|
|
4850
|
-
var
|
|
4919
|
+
var Hl = class {
|
|
4851
4920
|
constructor(e) {
|
|
4852
4921
|
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (t, r, n) => {
|
|
4853
4922
|
if (typeof t == "function" && typeof r != "function") {
|
|
@@ -4860,19 +4929,19 @@ var Ml = class {
|
|
|
4860
4929
|
}
|
|
4861
4930
|
typeof r != "function" && Z(6), n !== void 0 && typeof n != "function" && Z(7);
|
|
4862
4931
|
let i;
|
|
4863
|
-
if (
|
|
4932
|
+
if (Pe(t)) {
|
|
4864
4933
|
const o = yo(this), s = $n(t, void 0);
|
|
4865
4934
|
let a = !0;
|
|
4866
4935
|
try {
|
|
4867
4936
|
i = r(s), a = !1;
|
|
4868
4937
|
} finally {
|
|
4869
|
-
a ?
|
|
4938
|
+
a ? Dn(o) : jn(o);
|
|
4870
4939
|
}
|
|
4871
4940
|
return mo(o, n), go(i, o);
|
|
4872
4941
|
} else if (!t || typeof t != "object") {
|
|
4873
4942
|
if (i = r(t), i === void 0 && (i = t), i === Vs && (i = void 0), this.autoFreeze_ && si(i, !0), n) {
|
|
4874
4943
|
const o = [], s = [];
|
|
4875
|
-
|
|
4944
|
+
Ze("Patches").generateReplacementPatches_(t, i, o, s), n(o, s);
|
|
4876
4945
|
}
|
|
4877
4946
|
return i;
|
|
4878
4947
|
} else
|
|
@@ -4887,12 +4956,12 @@ var Ml = class {
|
|
|
4887
4956
|
}, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
|
|
4888
4957
|
}
|
|
4889
4958
|
createDraft(e) {
|
|
4890
|
-
|
|
4959
|
+
Pe(e) || Z(8), Je(e) && (e = Yl(e));
|
|
4891
4960
|
const t = yo(this), r = $n(e, void 0);
|
|
4892
|
-
return r[
|
|
4961
|
+
return r[ie].isManual_ = !0, jn(t), r;
|
|
4893
4962
|
}
|
|
4894
4963
|
finishDraft(e, t) {
|
|
4895
|
-
const r = e && e[
|
|
4964
|
+
const r = e && e[ie];
|
|
4896
4965
|
(!r || !r.isManual_) && Z(9);
|
|
4897
4966
|
const { scope_: n } = r;
|
|
4898
4967
|
return mo(n, t), go(void 0, n);
|
|
@@ -4923,57 +4992,57 @@ var Ml = class {
|
|
|
4923
4992
|
}
|
|
4924
4993
|
}
|
|
4925
4994
|
r > -1 && (t = t.slice(r + 1));
|
|
4926
|
-
const n =
|
|
4927
|
-
return
|
|
4995
|
+
const n = Ze("Patches").applyPatches_;
|
|
4996
|
+
return Je(e) ? n(e, t) : this.produce(
|
|
4928
4997
|
e,
|
|
4929
4998
|
(i) => n(i, t)
|
|
4930
4999
|
);
|
|
4931
5000
|
}
|
|
4932
5001
|
};
|
|
4933
5002
|
function $n(e, t) {
|
|
4934
|
-
const r = Hr(e) ?
|
|
4935
|
-
return (t ? t.scope_ :
|
|
5003
|
+
const r = Hr(e) ? Ze("MapSet").proxyMap_(e, t) : Yr(e) ? Ze("MapSet").proxySet_(e, t) : ql(e, t);
|
|
5004
|
+
return (t ? t.scope_ : zs()).drafts_.push(r), r;
|
|
4936
5005
|
}
|
|
4937
|
-
function
|
|
4938
|
-
return
|
|
5006
|
+
function Yl(e) {
|
|
5007
|
+
return Je(e) || Z(10, e), Ls(e);
|
|
4939
5008
|
}
|
|
4940
5009
|
function Ls(e) {
|
|
4941
|
-
if (!
|
|
5010
|
+
if (!Pe(e) || Gr(e))
|
|
4942
5011
|
return e;
|
|
4943
|
-
const t = e[
|
|
5012
|
+
const t = e[ie];
|
|
4944
5013
|
let r;
|
|
4945
5014
|
if (t) {
|
|
4946
5015
|
if (!t.modified_)
|
|
4947
5016
|
return t.base_;
|
|
4948
|
-
t.finalized_ = !0, r =
|
|
5017
|
+
t.finalized_ = !0, r = In(e, t.scope_.immer_.useStrictShallowCopy_);
|
|
4949
5018
|
} else
|
|
4950
|
-
r =
|
|
5019
|
+
r = In(e, !0);
|
|
4951
5020
|
return Pr(r, (n, i) => {
|
|
4952
|
-
|
|
5021
|
+
Ms(r, n, Ls(i));
|
|
4953
5022
|
}), t && (t.finalized_ = !1), r;
|
|
4954
5023
|
}
|
|
4955
|
-
var
|
|
4956
|
-
|
|
4957
|
-
|
|
5024
|
+
var oe = new Hl(), Bs = oe.produce;
|
|
5025
|
+
oe.produceWithPatches.bind(
|
|
5026
|
+
oe
|
|
4958
5027
|
);
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
function
|
|
5028
|
+
oe.setAutoFreeze.bind(oe);
|
|
5029
|
+
oe.setUseStrictShallowCopy.bind(oe);
|
|
5030
|
+
oe.applyPatches.bind(oe);
|
|
5031
|
+
oe.createDraft.bind(oe);
|
|
5032
|
+
oe.finishDraft.bind(oe);
|
|
5033
|
+
function Us(e) {
|
|
4965
5034
|
return ({ dispatch: r, getState: n }) => (i) => (o) => typeof o == "function" ? o(r, n, e) : i(o);
|
|
4966
5035
|
}
|
|
4967
|
-
var
|
|
5036
|
+
var Gl = Us(), Kl = Us, Ql = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
|
|
4968
5037
|
if (arguments.length !== 0)
|
|
4969
5038
|
return typeof arguments[0] == "object" ? Nr : Nr.apply(null, arguments);
|
|
4970
|
-
},
|
|
5039
|
+
}, Xl = (e) => e && typeof e.match == "function";
|
|
4971
5040
|
function bo(e, t) {
|
|
4972
5041
|
function r(...n) {
|
|
4973
5042
|
if (t) {
|
|
4974
5043
|
let i = t(...n);
|
|
4975
5044
|
if (!i)
|
|
4976
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5045
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(0) : "prepareAction did not return an object");
|
|
4977
5046
|
return {
|
|
4978
5047
|
type: e,
|
|
4979
5048
|
payload: i.payload,
|
|
@@ -4992,22 +5061,22 @@ function bo(e, t) {
|
|
|
4992
5061
|
}
|
|
4993
5062
|
return r.toString = () => `${e}`, r.type = e, r.match = (n) => js(n) && n.type === e, r;
|
|
4994
5063
|
}
|
|
4995
|
-
function
|
|
5064
|
+
function Jl(e) {
|
|
4996
5065
|
return typeof e == "function" && "type" in e && // hasMatchFunction only wants Matchers but I don't see the point in rewriting it
|
|
4997
|
-
|
|
5066
|
+
Xl(e);
|
|
4998
5067
|
}
|
|
4999
|
-
function
|
|
5068
|
+
function Zl(e) {
|
|
5000
5069
|
const t = e ? `${e}`.split("/") : [], r = t[t.length - 1] || "actionCreator";
|
|
5001
5070
|
return `Detected an action creator with type "${e || "unknown"}" being dispatched.
|
|
5002
5071
|
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.`;
|
|
5003
5072
|
}
|
|
5004
|
-
function
|
|
5073
|
+
function ef(e = {}) {
|
|
5005
5074
|
if (process.env.NODE_ENV === "production")
|
|
5006
5075
|
return () => (r) => (n) => r(n);
|
|
5007
5076
|
const {
|
|
5008
|
-
isActionCreator: t =
|
|
5077
|
+
isActionCreator: t = Jl
|
|
5009
5078
|
} = e;
|
|
5010
|
-
return () => (r) => (n) => (t(n) && console.warn(
|
|
5079
|
+
return () => (r) => (n) => (t(n) && console.warn(Zl(n.type)), r(n));
|
|
5011
5080
|
}
|
|
5012
5081
|
function qs(e, t) {
|
|
5013
5082
|
let r = 0;
|
|
@@ -5028,31 +5097,31 @@ It is disabled in production builds, so you don't need to worry about that.`);
|
|
|
5028
5097
|
}
|
|
5029
5098
|
};
|
|
5030
5099
|
}
|
|
5031
|
-
var Ws = class
|
|
5100
|
+
var Ws = class At extends Array {
|
|
5032
5101
|
constructor(...t) {
|
|
5033
|
-
super(...t), Object.setPrototypeOf(this,
|
|
5102
|
+
super(...t), Object.setPrototypeOf(this, At.prototype);
|
|
5034
5103
|
}
|
|
5035
5104
|
static get [Symbol.species]() {
|
|
5036
|
-
return
|
|
5105
|
+
return At;
|
|
5037
5106
|
}
|
|
5038
5107
|
concat(...t) {
|
|
5039
5108
|
return super.concat.apply(this, t);
|
|
5040
5109
|
}
|
|
5041
5110
|
prepend(...t) {
|
|
5042
|
-
return t.length === 1 && Array.isArray(t[0]) ? new
|
|
5111
|
+
return t.length === 1 && Array.isArray(t[0]) ? new At(...t[0].concat(this)) : new At(...t.concat(this));
|
|
5043
5112
|
}
|
|
5044
5113
|
};
|
|
5045
5114
|
function wo(e) {
|
|
5046
|
-
return
|
|
5115
|
+
return Pe(e) ? Bs(e, () => {
|
|
5047
5116
|
}) : e;
|
|
5048
5117
|
}
|
|
5049
5118
|
function _o(e, t, r) {
|
|
5050
5119
|
return e.has(t) ? e.get(t) : e.set(t, r(t)).get(t);
|
|
5051
5120
|
}
|
|
5052
|
-
function
|
|
5121
|
+
function tf(e) {
|
|
5053
5122
|
return typeof e != "object" || e == null || Object.isFrozen(e);
|
|
5054
5123
|
}
|
|
5055
|
-
function
|
|
5124
|
+
function rf(e, t, r) {
|
|
5056
5125
|
const n = Hs(e, t, r);
|
|
5057
5126
|
return {
|
|
5058
5127
|
detectMutations() {
|
|
@@ -5102,7 +5171,7 @@ function Ys(e, t = [], r, n, i = !1, o = "") {
|
|
|
5102
5171
|
wasMutated: !1
|
|
5103
5172
|
};
|
|
5104
5173
|
}
|
|
5105
|
-
function
|
|
5174
|
+
function nf(e = {}) {
|
|
5106
5175
|
if (process.env.NODE_ENV === "production")
|
|
5107
5176
|
return () => (t) => (r) => t(r);
|
|
5108
5177
|
{
|
|
@@ -5120,11 +5189,11 @@ function Ql(e = {}) {
|
|
|
5120
5189
|
return a == null ? h : a.call(this, d, h);
|
|
5121
5190
|
};
|
|
5122
5191
|
}, {
|
|
5123
|
-
isImmutable: n =
|
|
5192
|
+
isImmutable: n = tf,
|
|
5124
5193
|
ignoredPaths: i,
|
|
5125
5194
|
warnAfter: o = 32
|
|
5126
5195
|
} = e;
|
|
5127
|
-
const s =
|
|
5196
|
+
const s = rf.bind(null, n, i);
|
|
5128
5197
|
return ({
|
|
5129
5198
|
getState: a
|
|
5130
5199
|
}) => {
|
|
@@ -5133,12 +5202,12 @@ function Ql(e = {}) {
|
|
|
5133
5202
|
const p = qs(o, "ImmutableStateInvariantMiddleware");
|
|
5134
5203
|
p.measureTime(() => {
|
|
5135
5204
|
if (u = a(), f = l.detectMutations(), l = s(u), f.wasMutated)
|
|
5136
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5205
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(19) : `A state mutation was detected between dispatches, in the path '${f.path || ""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);
|
|
5137
5206
|
});
|
|
5138
5207
|
const y = d(h);
|
|
5139
5208
|
return p.measureTime(() => {
|
|
5140
5209
|
if (u = a(), f = l.detectMutations(), l = s(u), f.wasMutated)
|
|
5141
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5210
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(20) : `A state mutation was detected inside a dispatch, in the path: ${f.path || ""}. Take a look at the reducer(s) handling the action ${t(h)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);
|
|
5142
5211
|
}), p.warnIfExceeded(), y;
|
|
5143
5212
|
};
|
|
5144
5213
|
};
|
|
@@ -5148,7 +5217,7 @@ function Gs(e) {
|
|
|
5148
5217
|
const t = typeof e;
|
|
5149
5218
|
return e == null || t === "string" || t === "boolean" || t === "number" || Array.isArray(e) || Xt(e);
|
|
5150
5219
|
}
|
|
5151
|
-
function
|
|
5220
|
+
function Mn(e, t = "", r = Gs, n, i = [], o) {
|
|
5152
5221
|
let s;
|
|
5153
5222
|
if (!r(e))
|
|
5154
5223
|
return {
|
|
@@ -5165,7 +5234,7 @@ function Fn(e, t = "", r = Gs, n, i = [], o) {
|
|
|
5165
5234
|
keyPath: d,
|
|
5166
5235
|
value: f
|
|
5167
5236
|
};
|
|
5168
|
-
if (typeof f == "object" && (s =
|
|
5237
|
+
if (typeof f == "object" && (s = Mn(f, d, r, n, i, o), s))
|
|
5169
5238
|
return s;
|
|
5170
5239
|
}
|
|
5171
5240
|
}
|
|
@@ -5178,7 +5247,7 @@ function Ks(e) {
|
|
|
5178
5247
|
return !1;
|
|
5179
5248
|
return !0;
|
|
5180
5249
|
}
|
|
5181
|
-
function
|
|
5250
|
+
function of(e = {}) {
|
|
5182
5251
|
if (process.env.NODE_ENV === "production")
|
|
5183
5252
|
return () => (t) => (r) => t(r);
|
|
5184
5253
|
{
|
|
@@ -5198,7 +5267,7 @@ function Xl(e = {}) {
|
|
|
5198
5267
|
return h(p);
|
|
5199
5268
|
const y = h(p), E = qs(s, "SerializableStateInvariantMiddleware");
|
|
5200
5269
|
return !u && !(n.length && n.indexOf(p.type) !== -1) && E.measureTime(() => {
|
|
5201
|
-
const w =
|
|
5270
|
+
const w = Mn(p, "", t, r, i, f);
|
|
5202
5271
|
if (w) {
|
|
5203
5272
|
const {
|
|
5204
5273
|
keyPath: v,
|
|
@@ -5210,7 +5279,7 @@ Take a look at the logic that dispatched this action: `, p, `
|
|
|
5210
5279
|
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`);
|
|
5211
5280
|
}
|
|
5212
5281
|
}), a || (E.measureTime(() => {
|
|
5213
|
-
const w = d.getState(), v =
|
|
5282
|
+
const w = d.getState(), v = Mn(w, "", t, r, o, f);
|
|
5214
5283
|
if (v) {
|
|
5215
5284
|
const {
|
|
5216
5285
|
keyPath: b,
|
|
@@ -5227,7 +5296,7 @@ Take a look at the reducer(s) handling this action type: ${p.type}.
|
|
|
5227
5296
|
function cr(e) {
|
|
5228
5297
|
return typeof e == "boolean";
|
|
5229
5298
|
}
|
|
5230
|
-
var
|
|
5299
|
+
var sf = () => function(t) {
|
|
5231
5300
|
const {
|
|
5232
5301
|
thunk: r = !0,
|
|
5233
5302
|
immutableCheck: n = !0,
|
|
@@ -5235,24 +5304,24 @@ var Jl = () => function(t) {
|
|
|
5235
5304
|
actionCreatorCheck: o = !0
|
|
5236
5305
|
} = t ?? {};
|
|
5237
5306
|
let s = new Ws();
|
|
5238
|
-
if (r && (cr(r) ? s.push(
|
|
5307
|
+
if (r && (cr(r) ? s.push(Gl) : s.push(Kl(r.extraArgument))), process.env.NODE_ENV !== "production") {
|
|
5239
5308
|
if (n) {
|
|
5240
5309
|
let a = {};
|
|
5241
|
-
cr(n) || (a = n), s.unshift(
|
|
5310
|
+
cr(n) || (a = n), s.unshift(nf(a));
|
|
5242
5311
|
}
|
|
5243
5312
|
if (i) {
|
|
5244
5313
|
let a = {};
|
|
5245
|
-
cr(i) || (a = i), s.push(
|
|
5314
|
+
cr(i) || (a = i), s.push(of(a));
|
|
5246
5315
|
}
|
|
5247
5316
|
if (o) {
|
|
5248
5317
|
let a = {};
|
|
5249
|
-
cr(o) || (a = o), s.unshift(
|
|
5318
|
+
cr(o) || (a = o), s.unshift(ef(a));
|
|
5250
5319
|
}
|
|
5251
5320
|
}
|
|
5252
5321
|
return s;
|
|
5253
|
-
},
|
|
5322
|
+
}, af = "RTK_autoBatch", Eo = (e) => (t) => {
|
|
5254
5323
|
setTimeout(t, e);
|
|
5255
|
-
},
|
|
5324
|
+
}, cf = (e = {
|
|
5256
5325
|
type: "raf"
|
|
5257
5326
|
}) => (t) => (...r) => {
|
|
5258
5327
|
const n = t(...r);
|
|
@@ -5277,21 +5346,21 @@ var Jl = () => function(t) {
|
|
|
5277
5346
|
dispatch(f) {
|
|
5278
5347
|
var d;
|
|
5279
5348
|
try {
|
|
5280
|
-
return i = !((d = f == null ? void 0 : f.meta) != null && d[
|
|
5349
|
+
return i = !((d = f == null ? void 0 : f.meta) != null && d[af]), o = !i, o && (s || (s = !0, u(l))), n.dispatch(f);
|
|
5281
5350
|
} finally {
|
|
5282
5351
|
i = !0;
|
|
5283
5352
|
}
|
|
5284
5353
|
}
|
|
5285
5354
|
});
|
|
5286
|
-
},
|
|
5355
|
+
}, uf = (e) => function(r) {
|
|
5287
5356
|
const {
|
|
5288
5357
|
autoBatch: n = !0
|
|
5289
5358
|
} = r ?? {};
|
|
5290
5359
|
let i = new Ws(e);
|
|
5291
|
-
return n && i.push(
|
|
5360
|
+
return n && i.push(cf(typeof n == "object" ? n : void 0)), i;
|
|
5292
5361
|
};
|
|
5293
|
-
function
|
|
5294
|
-
const t =
|
|
5362
|
+
function lf(e) {
|
|
5363
|
+
const t = sf(), {
|
|
5295
5364
|
reducer: r = void 0,
|
|
5296
5365
|
middleware: n,
|
|
5297
5366
|
devTools: i = !0,
|
|
@@ -5302,36 +5371,36 @@ function rf(e) {
|
|
|
5302
5371
|
if (typeof r == "function")
|
|
5303
5372
|
a = r;
|
|
5304
5373
|
else if (Xt(r))
|
|
5305
|
-
a =
|
|
5374
|
+
a = Ds(r);
|
|
5306
5375
|
else
|
|
5307
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5376
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(1) : "`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");
|
|
5308
5377
|
if (process.env.NODE_ENV !== "production" && n && typeof n != "function")
|
|
5309
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5378
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(2) : "`middleware` field must be a callback");
|
|
5310
5379
|
let u;
|
|
5311
5380
|
if (typeof n == "function") {
|
|
5312
5381
|
if (u = n(t), process.env.NODE_ENV !== "production" && !Array.isArray(u))
|
|
5313
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5382
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(3) : "when using a middleware builder function, an array of middleware must be returned");
|
|
5314
5383
|
} else
|
|
5315
5384
|
u = t();
|
|
5316
5385
|
if (process.env.NODE_ENV !== "production" && u.some((y) => typeof y != "function"))
|
|
5317
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5386
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(4) : "each middleware provided to configureStore must be a function");
|
|
5318
5387
|
let l = Nr;
|
|
5319
|
-
i && (l =
|
|
5388
|
+
i && (l = Ql({
|
|
5320
5389
|
// Enable capture of stack traces for dispatched Redux actions
|
|
5321
5390
|
trace: process.env.NODE_ENV !== "production",
|
|
5322
5391
|
...typeof i == "object" && i
|
|
5323
5392
|
}));
|
|
5324
|
-
const f =
|
|
5393
|
+
const f = Vl(...u), d = uf(f);
|
|
5325
5394
|
if (process.env.NODE_ENV !== "production" && s && typeof s != "function")
|
|
5326
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5395
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(5) : "`enhancers` field must be a callback");
|
|
5327
5396
|
let h = typeof s == "function" ? s(d) : d();
|
|
5328
5397
|
if (process.env.NODE_ENV !== "production" && !Array.isArray(h))
|
|
5329
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5398
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(6) : "`enhancers` callback must return an array");
|
|
5330
5399
|
if (process.env.NODE_ENV !== "production" && h.some((y) => typeof y != "function"))
|
|
5331
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5400
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(7) : "each enhancer provided to configureStore must be a function");
|
|
5332
5401
|
process.env.NODE_ENV !== "production" && u.length && !h.includes(f) && console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");
|
|
5333
5402
|
const p = l(...h);
|
|
5334
|
-
return
|
|
5403
|
+
return Is(a, o, p);
|
|
5335
5404
|
}
|
|
5336
5405
|
function Qs(e) {
|
|
5337
5406
|
const t = {}, r = [];
|
|
@@ -5340,20 +5409,20 @@ function Qs(e) {
|
|
|
5340
5409
|
addCase(o, s) {
|
|
5341
5410
|
if (process.env.NODE_ENV !== "production") {
|
|
5342
5411
|
if (r.length > 0)
|
|
5343
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5412
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(26) : "`builder.addCase` should only be called before calling `builder.addMatcher`");
|
|
5344
5413
|
if (n)
|
|
5345
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5414
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(27) : "`builder.addCase` should only be called before calling `builder.addDefaultCase`");
|
|
5346
5415
|
}
|
|
5347
5416
|
const a = typeof o == "string" ? o : o.type;
|
|
5348
5417
|
if (!a)
|
|
5349
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5418
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(28) : "`builder.addCase` cannot be called with an empty action type");
|
|
5350
5419
|
if (a in t)
|
|
5351
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5420
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(29) : `\`builder.addCase\` cannot be called with two reducers for the same action type '${a}'`);
|
|
5352
5421
|
return t[a] = s, i;
|
|
5353
5422
|
},
|
|
5354
5423
|
addMatcher(o, s) {
|
|
5355
5424
|
if (process.env.NODE_ENV !== "production" && n)
|
|
5356
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5425
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(30) : "`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
|
|
5357
5426
|
return r.push({
|
|
5358
5427
|
matcher: o,
|
|
5359
5428
|
reducer: s
|
|
@@ -5361,20 +5430,20 @@ function Qs(e) {
|
|
|
5361
5430
|
},
|
|
5362
5431
|
addDefaultCase(o) {
|
|
5363
5432
|
if (process.env.NODE_ENV !== "production" && n)
|
|
5364
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5433
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(31) : "`builder.addDefaultCase` can only be called once");
|
|
5365
5434
|
return n = o, i;
|
|
5366
5435
|
}
|
|
5367
5436
|
};
|
|
5368
5437
|
return e(i), [t, r, n];
|
|
5369
5438
|
}
|
|
5370
|
-
function
|
|
5439
|
+
function ff(e) {
|
|
5371
5440
|
return typeof e == "function";
|
|
5372
5441
|
}
|
|
5373
|
-
function
|
|
5442
|
+
function df(e, t) {
|
|
5374
5443
|
if (process.env.NODE_ENV !== "production" && typeof t == "object")
|
|
5375
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5444
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(8) : "The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
|
|
5376
5445
|
let [r, n, i] = Qs(t), o;
|
|
5377
|
-
if (
|
|
5446
|
+
if (ff(e))
|
|
5378
5447
|
o = () => wo(e());
|
|
5379
5448
|
else {
|
|
5380
5449
|
const a = wo(e);
|
|
@@ -5388,12 +5457,12 @@ function of(e, t) {
|
|
|
5388
5457
|
}) => f)];
|
|
5389
5458
|
return l.filter((f) => !!f).length === 0 && (l = [i]), l.reduce((f, d) => {
|
|
5390
5459
|
if (d)
|
|
5391
|
-
if (
|
|
5460
|
+
if (Je(f)) {
|
|
5392
5461
|
const p = d(f, u);
|
|
5393
5462
|
return p === void 0 ? f : p;
|
|
5394
5463
|
} else {
|
|
5395
|
-
if (
|
|
5396
|
-
return
|
|
5464
|
+
if (Pe(f))
|
|
5465
|
+
return Bs(f, (h) => d(h, u));
|
|
5397
5466
|
{
|
|
5398
5467
|
const h = d(f, u);
|
|
5399
5468
|
if (h === void 0) {
|
|
@@ -5409,36 +5478,36 @@ function of(e, t) {
|
|
|
5409
5478
|
}
|
|
5410
5479
|
return s.getInitialState = o, s;
|
|
5411
5480
|
}
|
|
5412
|
-
var
|
|
5413
|
-
function
|
|
5481
|
+
var hf = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
|
|
5482
|
+
function pf(e, t) {
|
|
5414
5483
|
return `${e}/${t}`;
|
|
5415
5484
|
}
|
|
5416
|
-
function
|
|
5485
|
+
function mf({
|
|
5417
5486
|
creators: e
|
|
5418
5487
|
} = {}) {
|
|
5419
5488
|
var r;
|
|
5420
|
-
const t = (r = e == null ? void 0 : e.asyncThunk) == null ? void 0 : r[
|
|
5489
|
+
const t = (r = e == null ? void 0 : e.asyncThunk) == null ? void 0 : r[hf];
|
|
5421
5490
|
return function(i) {
|
|
5422
5491
|
const {
|
|
5423
5492
|
name: o,
|
|
5424
5493
|
reducerPath: s = o
|
|
5425
5494
|
} = i;
|
|
5426
5495
|
if (!o)
|
|
5427
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5496
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(11) : "`name` is a required option for createSlice");
|
|
5428
5497
|
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`");
|
|
5429
|
-
const a = (typeof i.reducers == "function" ? i.reducers(
|
|
5498
|
+
const a = (typeof i.reducers == "function" ? i.reducers(vf()) : i.reducers) || {}, u = Object.keys(a), l = {
|
|
5430
5499
|
sliceCaseReducersByName: {},
|
|
5431
5500
|
sliceCaseReducersByType: {},
|
|
5432
5501
|
actionCreators: {},
|
|
5433
5502
|
sliceMatchers: []
|
|
5434
5503
|
}, f = {
|
|
5435
5504
|
addCase(m, S) {
|
|
5436
|
-
const
|
|
5437
|
-
if (!
|
|
5438
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5439
|
-
if (
|
|
5440
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5441
|
-
return l.sliceCaseReducersByType[
|
|
5505
|
+
const k = typeof m == "string" ? m : m.type;
|
|
5506
|
+
if (!k)
|
|
5507
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(12) : "`context.addCase` cannot be called with an empty action type");
|
|
5508
|
+
if (k in l.sliceCaseReducersByType)
|
|
5509
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + k);
|
|
5510
|
+
return l.sliceCaseReducersByType[k] = S, f;
|
|
5442
5511
|
},
|
|
5443
5512
|
addMatcher(m, S) {
|
|
5444
5513
|
return l.sliceMatchers.push({
|
|
@@ -5454,28 +5523,28 @@ function cf({
|
|
|
5454
5523
|
}
|
|
5455
5524
|
};
|
|
5456
5525
|
u.forEach((m) => {
|
|
5457
|
-
const S = a[m],
|
|
5526
|
+
const S = a[m], k = {
|
|
5458
5527
|
reducerName: m,
|
|
5459
|
-
type:
|
|
5528
|
+
type: pf(o, m),
|
|
5460
5529
|
createNotation: typeof i.reducers == "function"
|
|
5461
5530
|
};
|
|
5462
|
-
|
|
5531
|
+
wf(S) ? Ef(k, S, f, t) : bf(k, S, f);
|
|
5463
5532
|
});
|
|
5464
5533
|
function d() {
|
|
5465
5534
|
if (process.env.NODE_ENV !== "production" && typeof i.extraReducers == "object")
|
|
5466
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5467
|
-
const [m = {}, S = [],
|
|
5535
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
|
|
5536
|
+
const [m = {}, S = [], k = void 0] = typeof i.extraReducers == "function" ? Qs(i.extraReducers) : [i.extraReducers], N = {
|
|
5468
5537
|
...m,
|
|
5469
5538
|
...l.sliceCaseReducersByType
|
|
5470
5539
|
};
|
|
5471
|
-
return
|
|
5472
|
-
for (let
|
|
5473
|
-
|
|
5474
|
-
for (let
|
|
5475
|
-
|
|
5476
|
-
for (let
|
|
5477
|
-
|
|
5478
|
-
|
|
5540
|
+
return df(i.initialState, (O) => {
|
|
5541
|
+
for (let D in N)
|
|
5542
|
+
O.addCase(D, N[D]);
|
|
5543
|
+
for (let D of l.sliceMatchers)
|
|
5544
|
+
O.addMatcher(D.matcher, D.reducer);
|
|
5545
|
+
for (let D of S)
|
|
5546
|
+
O.addMatcher(D.matcher, D.reducer);
|
|
5547
|
+
k && O.addDefaultCase(k);
|
|
5479
5548
|
});
|
|
5480
5549
|
}
|
|
5481
5550
|
const h = (m) => m, p = /* @__PURE__ */ new Map();
|
|
@@ -5487,32 +5556,32 @@ function cf({
|
|
|
5487
5556
|
return y || (y = d()), y.getInitialState();
|
|
5488
5557
|
}
|
|
5489
5558
|
function v(m, S = !1) {
|
|
5490
|
-
function
|
|
5491
|
-
let
|
|
5492
|
-
if (typeof
|
|
5559
|
+
function k(O) {
|
|
5560
|
+
let D = O[m];
|
|
5561
|
+
if (typeof D > "u") {
|
|
5493
5562
|
if (S)
|
|
5494
|
-
|
|
5563
|
+
D = w();
|
|
5495
5564
|
else if (process.env.NODE_ENV !== "production")
|
|
5496
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5565
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(15) : "selectSlice returned undefined for an uninjected slice reducer");
|
|
5497
5566
|
}
|
|
5498
|
-
return
|
|
5567
|
+
return D;
|
|
5499
5568
|
}
|
|
5500
|
-
function N(
|
|
5501
|
-
const
|
|
5502
|
-
return _o(
|
|
5503
|
-
const
|
|
5504
|
-
for (const [
|
|
5505
|
-
|
|
5506
|
-
return
|
|
5569
|
+
function N(O = h) {
|
|
5570
|
+
const D = _o(p, S, () => /* @__PURE__ */ new WeakMap());
|
|
5571
|
+
return _o(D, O, () => {
|
|
5572
|
+
const M = {};
|
|
5573
|
+
for (const [fe, Y] of Object.entries(i.selectors ?? {}))
|
|
5574
|
+
M[fe] = yf(Y, O, w, S);
|
|
5575
|
+
return M;
|
|
5507
5576
|
});
|
|
5508
5577
|
}
|
|
5509
5578
|
return {
|
|
5510
5579
|
reducerPath: m,
|
|
5511
5580
|
getSelectors: N,
|
|
5512
5581
|
get selectors() {
|
|
5513
|
-
return N(
|
|
5582
|
+
return N(k);
|
|
5514
5583
|
},
|
|
5515
|
-
selectSlice:
|
|
5584
|
+
selectSlice: k
|
|
5516
5585
|
};
|
|
5517
5586
|
}
|
|
5518
5587
|
const b = {
|
|
@@ -5524,13 +5593,13 @@ function cf({
|
|
|
5524
5593
|
...v(s),
|
|
5525
5594
|
injectInto(m, {
|
|
5526
5595
|
reducerPath: S,
|
|
5527
|
-
...
|
|
5596
|
+
...k
|
|
5528
5597
|
} = {}) {
|
|
5529
5598
|
const N = S ?? s;
|
|
5530
5599
|
return m.inject({
|
|
5531
5600
|
reducerPath: N,
|
|
5532
5601
|
reducer: E
|
|
5533
|
-
},
|
|
5602
|
+
}, k), {
|
|
5534
5603
|
...b,
|
|
5535
5604
|
...v(N, !0)
|
|
5536
5605
|
};
|
|
@@ -5539,21 +5608,21 @@ function cf({
|
|
|
5539
5608
|
return b;
|
|
5540
5609
|
};
|
|
5541
5610
|
}
|
|
5542
|
-
function
|
|
5611
|
+
function yf(e, t, r, n) {
|
|
5543
5612
|
function i(o, ...s) {
|
|
5544
5613
|
let a = t(o);
|
|
5545
5614
|
if (typeof a > "u") {
|
|
5546
5615
|
if (n)
|
|
5547
5616
|
a = r();
|
|
5548
5617
|
else if (process.env.NODE_ENV !== "production")
|
|
5549
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5618
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(16) : "selectState returned undefined for an uninjected slice reducer");
|
|
5550
5619
|
}
|
|
5551
5620
|
return e(a, ...s);
|
|
5552
5621
|
}
|
|
5553
5622
|
return i.unwrapped = e, i;
|
|
5554
5623
|
}
|
|
5555
|
-
var
|
|
5556
|
-
function
|
|
5624
|
+
var gf = /* @__PURE__ */ mf();
|
|
5625
|
+
function vf() {
|
|
5557
5626
|
function e(t, r) {
|
|
5558
5627
|
return {
|
|
5559
5628
|
_reducerDefinitionType: "asyncThunk",
|
|
@@ -5584,32 +5653,32 @@ function ff() {
|
|
|
5584
5653
|
asyncThunk: e
|
|
5585
5654
|
};
|
|
5586
5655
|
}
|
|
5587
|
-
function
|
|
5656
|
+
function bf({
|
|
5588
5657
|
type: e,
|
|
5589
5658
|
reducerName: t,
|
|
5590
5659
|
createNotation: r
|
|
5591
5660
|
}, n, i) {
|
|
5592
5661
|
let o, s;
|
|
5593
5662
|
if ("reducer" in n) {
|
|
5594
|
-
if (r && !
|
|
5595
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5663
|
+
if (r && !_f(n))
|
|
5664
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(17) : "Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");
|
|
5596
5665
|
o = n.reducer, s = n.prepare;
|
|
5597
5666
|
} else
|
|
5598
5667
|
o = n;
|
|
5599
5668
|
i.addCase(e, o).exposeCaseReducer(t, o).exposeAction(t, s ? bo(e, s) : bo(e));
|
|
5600
5669
|
}
|
|
5601
|
-
function
|
|
5670
|
+
function wf(e) {
|
|
5602
5671
|
return e._reducerDefinitionType === "asyncThunk";
|
|
5603
5672
|
}
|
|
5604
|
-
function
|
|
5673
|
+
function _f(e) {
|
|
5605
5674
|
return e._reducerDefinitionType === "reducerWithPrepare";
|
|
5606
5675
|
}
|
|
5607
|
-
function
|
|
5676
|
+
function Ef({
|
|
5608
5677
|
type: e,
|
|
5609
5678
|
reducerName: t
|
|
5610
5679
|
}, r, n, i) {
|
|
5611
5680
|
if (!i)
|
|
5612
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
5681
|
+
throw new Error(process.env.NODE_ENV === "production" ? F(18) : "Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");
|
|
5613
5682
|
const {
|
|
5614
5683
|
payloadCreator: o,
|
|
5615
5684
|
fulfilled: s,
|
|
@@ -5627,26 +5696,28 @@ function mf({
|
|
|
5627
5696
|
}
|
|
5628
5697
|
function ur() {
|
|
5629
5698
|
}
|
|
5630
|
-
function
|
|
5699
|
+
function F(e) {
|
|
5631
5700
|
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. `;
|
|
5632
5701
|
}
|
|
5633
|
-
const
|
|
5702
|
+
const Sf = {
|
|
5634
5703
|
cardPosition: "transit-to-home"
|
|
5635
|
-
}, Xs =
|
|
5704
|
+
}, Xs = gf({
|
|
5636
5705
|
name: "navigation",
|
|
5637
|
-
initialState:
|
|
5706
|
+
initialState: Sf,
|
|
5638
5707
|
reducers: {
|
|
5639
5708
|
setCardState: (e, t) => (e.cardPosition = t.payload.state, e)
|
|
5640
5709
|
}
|
|
5641
|
-
}), { setCardState:
|
|
5710
|
+
}), { setCardState: Tf } = Xs.actions, xf = Ds({
|
|
5642
5711
|
navigation: Xs.reducer
|
|
5643
|
-
}),
|
|
5644
|
-
reducer:
|
|
5712
|
+
}), If = lf({
|
|
5713
|
+
reducer: xf
|
|
5645
5714
|
});
|
|
5646
5715
|
export {
|
|
5647
5716
|
Qc as AnimatedText,
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5717
|
+
Cf as BackButton,
|
|
5718
|
+
Nf as BannerButton,
|
|
5719
|
+
Pf as CircleIconButton,
|
|
5720
|
+
Af as ListItem,
|
|
5721
|
+
Rf as UnorderedListItemContainer,
|
|
5722
|
+
If as ymyStore
|
|
5652
5723
|
};
|