ymy-components 0.0.39 → 0.0.41
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/collections/ListItem.d.ts +6 -2
- package/dist/index.cjs.js +37 -37
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +1018 -1000
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Fn from "react";
|
|
2
|
-
import
|
|
3
|
-
import { unstable_batchedUpdates as
|
|
4
|
-
var nr = { exports: {} },
|
|
2
|
+
import ie, { useState as lt, useRef as Se, useEffect as vt, useLayoutEffect as ko, forwardRef as Pa, useCallback as Na, useContext as Ln, useMemo as rr, useDebugValue as Si, createElement as Ca } from "react";
|
|
3
|
+
import { unstable_batchedUpdates as Ra } from "react-dom";
|
|
4
|
+
var nr = { exports: {} }, kt = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
7
7
|
* react-jsx-runtime.production.min.js
|
|
@@ -12,10 +12,10 @@ var nr = { exports: {} }, xt = {};
|
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
14
|
var xi;
|
|
15
|
-
function
|
|
16
|
-
if (xi) return
|
|
15
|
+
function Aa() {
|
|
16
|
+
if (xi) return kt;
|
|
17
17
|
xi = 1;
|
|
18
|
-
var e =
|
|
18
|
+
var e = ie, 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) {
|
|
20
20
|
var f, d = {}, h = null, p = null;
|
|
21
21
|
l !== void 0 && (h = "" + l), u.key !== void 0 && (h = "" + u.key), u.ref !== void 0 && (p = u.ref);
|
|
@@ -23,9 +23,9 @@ function Ra() {
|
|
|
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 kt.Fragment = r, kt.jsx = s, kt.jsxs = s, kt;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
28
|
+
var Ot = {};
|
|
29
29
|
/**
|
|
30
30
|
* @license React
|
|
31
31
|
* react-jsx-runtime.development.js
|
|
@@ -36,53 +36,53 @@ var kt = {};
|
|
|
36
36
|
* LICENSE file in the root directory of this source tree.
|
|
37
37
|
*/
|
|
38
38
|
var ki;
|
|
39
|
-
function
|
|
39
|
+
function Ta() {
|
|
40
40
|
return ki || (ki = 1, process.env.NODE_ENV !== "production" && function() {
|
|
41
|
-
var e =
|
|
41
|
+
var e = ie, 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"), g = Symbol.iterator, E = "@@iterator";
|
|
42
42
|
function w(c) {
|
|
43
43
|
if (c === null || typeof c != "object")
|
|
44
44
|
return null;
|
|
45
|
-
var
|
|
46
|
-
return typeof
|
|
45
|
+
var v = g && c[g] || c[E];
|
|
46
|
+
return typeof v == "function" ? v : null;
|
|
47
47
|
}
|
|
48
48
|
var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
49
49
|
function b(c) {
|
|
50
50
|
{
|
|
51
|
-
for (var
|
|
51
|
+
for (var v = arguments.length, x = new Array(v > 1 ? v - 1 : 0), N = 1; N < v; N++)
|
|
52
52
|
x[N - 1] = arguments[N];
|
|
53
53
|
m("error", c, x);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
function m(c,
|
|
56
|
+
function m(c, v, x) {
|
|
57
57
|
{
|
|
58
|
-
var N = y.ReactDebugCurrentFrame,
|
|
59
|
-
|
|
58
|
+
var N = y.ReactDebugCurrentFrame, V = N.getStackAddendum();
|
|
59
|
+
V !== "" && (v += "%s", x = x.concat([V]));
|
|
60
60
|
var z = x.map(function(I) {
|
|
61
61
|
return String(I);
|
|
62
62
|
});
|
|
63
|
-
z.unshift("Warning: " +
|
|
63
|
+
z.unshift("Warning: " + v), Function.prototype.apply.call(console[c], console, z);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
var S = !1, O = !1, P = !1, k = !1, D = !1, M;
|
|
67
67
|
M = Symbol.for("react.module.reference");
|
|
68
|
-
function
|
|
68
|
+
function G(c) {
|
|
69
69
|
return !!(typeof c == "string" || typeof c == "function" || c === n || c === o || D || c === i || c === l || c === f || k || c === p || S || O || P || typeof c == "object" && c !== null && (c.$$typeof === h || c.$$typeof === d || c.$$typeof === s || c.$$typeof === a || c.$$typeof === u || // This needs to include all possible module reference object
|
|
70
70
|
// types supported by any Flight configuration anywhere since
|
|
71
71
|
// we don't know which Flight build this will end up being used
|
|
72
72
|
// with.
|
|
73
73
|
c.$$typeof === M || c.getModuleId !== void 0));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function U(c, v, x) {
|
|
76
76
|
var N = c.displayName;
|
|
77
77
|
if (N)
|
|
78
78
|
return N;
|
|
79
|
-
var
|
|
80
|
-
return
|
|
79
|
+
var V = v.displayName || v.name || "";
|
|
80
|
+
return V !== "" ? x + "(" + V + ")" : x;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function X(c) {
|
|
83
83
|
return c.displayName || "Context";
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function B(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")
|
|
@@ -106,20 +106,20 @@ function Aa() {
|
|
|
106
106
|
if (typeof c == "object")
|
|
107
107
|
switch (c.$$typeof) {
|
|
108
108
|
case a:
|
|
109
|
-
var
|
|
110
|
-
return
|
|
109
|
+
var v = c;
|
|
110
|
+
return X(v) + ".Consumer";
|
|
111
111
|
case s:
|
|
112
112
|
var x = c;
|
|
113
|
-
return
|
|
113
|
+
return X(x._context) + ".Provider";
|
|
114
114
|
case u:
|
|
115
|
-
return
|
|
115
|
+
return U(c, c.render, "ForwardRef");
|
|
116
116
|
case d:
|
|
117
117
|
var N = c.displayName || null;
|
|
118
|
-
return N !== null ? N :
|
|
118
|
+
return N !== null ? N : B(c.type) || "Memo";
|
|
119
119
|
case h: {
|
|
120
|
-
var
|
|
120
|
+
var V = c, z = V._payload, I = V._init;
|
|
121
121
|
try {
|
|
122
|
-
return
|
|
122
|
+
return B(I(z));
|
|
123
123
|
} catch {
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
@@ -127,14 +127,14 @@ function Aa() {
|
|
|
127
127
|
}
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
130
|
-
var
|
|
130
|
+
var oe = Object.assign, Fe = 0, Zt, et, Et, ue, Ce, Re, J;
|
|
131
131
|
function tt() {
|
|
132
132
|
}
|
|
133
133
|
tt.__reactDisabledLog = !0;
|
|
134
|
-
function
|
|
134
|
+
function St() {
|
|
135
135
|
{
|
|
136
136
|
if (Fe === 0) {
|
|
137
|
-
Zt = console.log, et = console.info,
|
|
137
|
+
Zt = console.log, et = console.info, Et = console.warn, ue = console.error, Ce = console.group, Re = console.groupCollapsed, J = console.groupEnd;
|
|
138
138
|
var c = {
|
|
139
139
|
configurable: !0,
|
|
140
140
|
enumerable: !0,
|
|
@@ -163,40 +163,40 @@ function Aa() {
|
|
|
163
163
|
writable: !0
|
|
164
164
|
};
|
|
165
165
|
Object.defineProperties(console, {
|
|
166
|
-
log:
|
|
166
|
+
log: oe({}, c, {
|
|
167
167
|
value: Zt
|
|
168
168
|
}),
|
|
169
|
-
info:
|
|
169
|
+
info: oe({}, c, {
|
|
170
170
|
value: et
|
|
171
171
|
}),
|
|
172
|
-
warn:
|
|
173
|
-
value:
|
|
172
|
+
warn: oe({}, c, {
|
|
173
|
+
value: Et
|
|
174
174
|
}),
|
|
175
|
-
error:
|
|
176
|
-
value:
|
|
175
|
+
error: oe({}, c, {
|
|
176
|
+
value: ue
|
|
177
177
|
}),
|
|
178
|
-
group:
|
|
178
|
+
group: oe({}, c, {
|
|
179
179
|
value: Ce
|
|
180
180
|
}),
|
|
181
|
-
groupCollapsed:
|
|
181
|
+
groupCollapsed: oe({}, c, {
|
|
182
182
|
value: Re
|
|
183
183
|
}),
|
|
184
|
-
groupEnd:
|
|
185
|
-
value:
|
|
184
|
+
groupEnd: oe({}, c, {
|
|
185
|
+
value: J
|
|
186
186
|
})
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
189
|
Fe < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
var
|
|
193
|
-
function pe(c,
|
|
192
|
+
var ke = y.ReactCurrentDispatcher, Ae;
|
|
193
|
+
function pe(c, v, x) {
|
|
194
194
|
{
|
|
195
195
|
if (Ae === void 0)
|
|
196
196
|
try {
|
|
197
197
|
throw Error();
|
|
198
|
-
} catch (
|
|
199
|
-
var N =
|
|
198
|
+
} catch (V) {
|
|
199
|
+
var N = V.stack.trim().match(/\n( *(at )?)/);
|
|
200
200
|
Ae = N && N[1] || "";
|
|
201
201
|
}
|
|
202
202
|
return `
|
|
@@ -208,7 +208,7 @@ function Aa() {
|
|
|
208
208
|
var nt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
209
209
|
Te = new nt();
|
|
210
210
|
}
|
|
211
|
-
function ye(c,
|
|
211
|
+
function ye(c, v) {
|
|
212
212
|
if (!c || me)
|
|
213
213
|
return "";
|
|
214
214
|
{
|
|
@@ -218,12 +218,12 @@ function Aa() {
|
|
|
218
218
|
}
|
|
219
219
|
var N;
|
|
220
220
|
me = !0;
|
|
221
|
-
var
|
|
221
|
+
var V = Error.prepareStackTrace;
|
|
222
222
|
Error.prepareStackTrace = void 0;
|
|
223
223
|
var z;
|
|
224
|
-
z =
|
|
224
|
+
z = ke.current, ke.current = null, St();
|
|
225
225
|
try {
|
|
226
|
-
if (
|
|
226
|
+
if (v) {
|
|
227
227
|
var I = function() {
|
|
228
228
|
throw Error();
|
|
229
229
|
};
|
|
@@ -234,63 +234,63 @@ function Aa() {
|
|
|
234
234
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
235
235
|
try {
|
|
236
236
|
Reflect.construct(I, []);
|
|
237
|
-
} catch (
|
|
238
|
-
N =
|
|
237
|
+
} catch (ee) {
|
|
238
|
+
N = ee;
|
|
239
239
|
}
|
|
240
240
|
Reflect.construct(c, [], I);
|
|
241
241
|
} else {
|
|
242
242
|
try {
|
|
243
243
|
I.call();
|
|
244
|
-
} catch (
|
|
245
|
-
N =
|
|
244
|
+
} catch (ee) {
|
|
245
|
+
N = ee;
|
|
246
246
|
}
|
|
247
247
|
c.call(I.prototype);
|
|
248
248
|
}
|
|
249
249
|
} else {
|
|
250
250
|
try {
|
|
251
251
|
throw Error();
|
|
252
|
-
} catch (
|
|
253
|
-
N =
|
|
252
|
+
} catch (ee) {
|
|
253
|
+
N = ee;
|
|
254
254
|
}
|
|
255
255
|
c();
|
|
256
256
|
}
|
|
257
|
-
} catch (
|
|
258
|
-
if (
|
|
259
|
-
for (var A =
|
|
260
|
-
`),
|
|
261
|
-
`),
|
|
262
|
-
|
|
263
|
-
for (;
|
|
264
|
-
if (A[
|
|
265
|
-
if (
|
|
257
|
+
} catch (ee) {
|
|
258
|
+
if (ee && N && typeof ee.stack == "string") {
|
|
259
|
+
for (var A = ee.stack.split(`
|
|
260
|
+
`), Z = N.stack.split(`
|
|
261
|
+
`), W = A.length - 1, H = Z.length - 1; W >= 1 && H >= 0 && A[W] !== Z[H]; )
|
|
262
|
+
H--;
|
|
263
|
+
for (; W >= 1 && H >= 0; W--, H--)
|
|
264
|
+
if (A[W] !== Z[H]) {
|
|
265
|
+
if (W !== 1 || H !== 1)
|
|
266
266
|
do
|
|
267
|
-
if (
|
|
268
|
-
var
|
|
269
|
-
` + A[
|
|
270
|
-
return c.displayName &&
|
|
267
|
+
if (W--, H--, H < 0 || A[W] !== Z[H]) {
|
|
268
|
+
var le = `
|
|
269
|
+
` + A[W].replace(" at new ", " at ");
|
|
270
|
+
return c.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", c.displayName)), typeof c == "function" && Te.set(c, le), le;
|
|
271
271
|
}
|
|
272
|
-
while (
|
|
272
|
+
while (W >= 1 && H >= 0);
|
|
273
273
|
break;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
} finally {
|
|
277
|
-
me = !1,
|
|
277
|
+
me = !1, ke.current = z, rt(), Error.prepareStackTrace = V;
|
|
278
278
|
}
|
|
279
279
|
var ot = c ? c.displayName || c.name : "", Le = ot ? pe(ot) : "";
|
|
280
280
|
return typeof c == "function" && Te.set(c, Le), Le;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function na(c, v, x) {
|
|
283
283
|
return ye(c, !1);
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
var
|
|
287
|
-
return !!(
|
|
285
|
+
function ia(c) {
|
|
286
|
+
var v = c.prototype;
|
|
287
|
+
return !!(v && v.isReactComponent);
|
|
288
288
|
}
|
|
289
|
-
function er(c,
|
|
289
|
+
function er(c, v, x) {
|
|
290
290
|
if (c == null)
|
|
291
291
|
return "";
|
|
292
292
|
if (typeof c == "function")
|
|
293
|
-
return ye(c,
|
|
293
|
+
return ye(c, ia(c));
|
|
294
294
|
if (typeof c == "string")
|
|
295
295
|
return pe(c);
|
|
296
296
|
switch (c) {
|
|
@@ -302,57 +302,57 @@ function Aa() {
|
|
|
302
302
|
if (typeof c == "object")
|
|
303
303
|
switch (c.$$typeof) {
|
|
304
304
|
case u:
|
|
305
|
-
return
|
|
305
|
+
return na(c.render);
|
|
306
306
|
case d:
|
|
307
|
-
return er(c.type,
|
|
307
|
+
return er(c.type, v, x);
|
|
308
308
|
case h: {
|
|
309
|
-
var N = c,
|
|
309
|
+
var N = c, V = N._payload, z = N._init;
|
|
310
310
|
try {
|
|
311
|
-
return er(z(
|
|
311
|
+
return er(z(V), v, x);
|
|
312
312
|
} catch {
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
return "";
|
|
317
317
|
}
|
|
318
|
-
var
|
|
318
|
+
var xt = Object.prototype.hasOwnProperty, ui = {}, li = y.ReactDebugCurrentFrame;
|
|
319
319
|
function tr(c) {
|
|
320
320
|
if (c) {
|
|
321
|
-
var
|
|
321
|
+
var v = c._owner, x = er(c.type, c._source, v ? v.type : null);
|
|
322
322
|
li.setExtraStackFrame(x);
|
|
323
323
|
} else
|
|
324
324
|
li.setExtraStackFrame(null);
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function oa(c, v, x, N, V) {
|
|
327
327
|
{
|
|
328
|
-
var z = Function.call.bind(
|
|
328
|
+
var z = Function.call.bind(xt);
|
|
329
329
|
for (var I in c)
|
|
330
330
|
if (z(c, I)) {
|
|
331
331
|
var A = void 0;
|
|
332
332
|
try {
|
|
333
333
|
if (typeof c[I] != "function") {
|
|
334
|
-
var
|
|
335
|
-
throw
|
|
334
|
+
var Z = Error((N || "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
|
+
throw Z.name = "Invariant Violation", Z;
|
|
336
336
|
}
|
|
337
|
-
A = c[I](
|
|
338
|
-
} catch (
|
|
339
|
-
A =
|
|
337
|
+
A = c[I](v, I, N, x, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
338
|
+
} catch (W) {
|
|
339
|
+
A = W;
|
|
340
340
|
}
|
|
341
|
-
A && !(A instanceof Error) && (tr(
|
|
341
|
+
A && !(A instanceof Error) && (tr(V), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", N || "React class", x, I, typeof A), tr(null)), A instanceof Error && !(A.message in ui) && (ui[A.message] = !0, tr(V), b("Failed %s type: %s", x, A.message), tr(null));
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
var
|
|
345
|
+
var sa = Array.isArray;
|
|
346
346
|
function Kr(c) {
|
|
347
|
-
return
|
|
347
|
+
return sa(c);
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function aa(c) {
|
|
350
350
|
{
|
|
351
|
-
var
|
|
351
|
+
var v = typeof Symbol == "function" && Symbol.toStringTag, x = v && c[Symbol.toStringTag] || c.constructor.name || "Object";
|
|
352
352
|
return x;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function ca(c) {
|
|
356
356
|
try {
|
|
357
357
|
return fi(c), !1;
|
|
358
358
|
} catch {
|
|
@@ -363,38 +363,38 @@ function Aa() {
|
|
|
363
363
|
return "" + c;
|
|
364
364
|
}
|
|
365
365
|
function di(c) {
|
|
366
|
-
if (
|
|
367
|
-
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
366
|
+
if (ca(c))
|
|
367
|
+
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", aa(c)), fi(c);
|
|
368
368
|
}
|
|
369
|
-
var hi = y.ReactCurrentOwner,
|
|
369
|
+
var hi = y.ReactCurrentOwner, ua = {
|
|
370
370
|
key: !0,
|
|
371
371
|
ref: !0,
|
|
372
372
|
__self: !0,
|
|
373
373
|
__source: !0
|
|
374
374
|
}, pi, mi;
|
|
375
|
-
function
|
|
376
|
-
if (
|
|
377
|
-
var
|
|
378
|
-
if (
|
|
375
|
+
function la(c) {
|
|
376
|
+
if (xt.call(c, "ref")) {
|
|
377
|
+
var v = Object.getOwnPropertyDescriptor(c, "ref").get;
|
|
378
|
+
if (v && v.isReactWarning)
|
|
379
379
|
return !1;
|
|
380
380
|
}
|
|
381
381
|
return c.ref !== void 0;
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
if (
|
|
385
|
-
var
|
|
386
|
-
if (
|
|
383
|
+
function fa(c) {
|
|
384
|
+
if (xt.call(c, "key")) {
|
|
385
|
+
var v = Object.getOwnPropertyDescriptor(c, "key").get;
|
|
386
|
+
if (v && v.isReactWarning)
|
|
387
387
|
return !1;
|
|
388
388
|
}
|
|
389
389
|
return c.key !== void 0;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function da(c, v) {
|
|
392
392
|
typeof c.ref == "string" && hi.current;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function ha(c, v) {
|
|
395
395
|
{
|
|
396
396
|
var x = function() {
|
|
397
|
-
pi || (pi = !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)",
|
|
397
|
+
pi || (pi = !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)", v));
|
|
398
398
|
};
|
|
399
399
|
x.isReactWarning = !0, Object.defineProperty(c, "key", {
|
|
400
400
|
get: x,
|
|
@@ -402,10 +402,10 @@ function Aa() {
|
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function pa(c, v) {
|
|
406
406
|
{
|
|
407
407
|
var x = function() {
|
|
408
|
-
mi || (mi = !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)",
|
|
408
|
+
mi || (mi = !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)", v));
|
|
409
409
|
};
|
|
410
410
|
x.isReactWarning = !0, Object.defineProperty(c, "ref", {
|
|
411
411
|
get: x,
|
|
@@ -413,13 +413,13 @@ function Aa() {
|
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
var
|
|
416
|
+
var ma = function(c, v, x, N, V, z, 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
|
-
key:
|
|
422
|
+
key: v,
|
|
423
423
|
ref: x,
|
|
424
424
|
props: I,
|
|
425
425
|
// Record the component responsible for creating this element.
|
|
@@ -439,31 +439,31 @@ function Aa() {
|
|
|
439
439
|
configurable: !1,
|
|
440
440
|
enumerable: !1,
|
|
441
441
|
writable: !1,
|
|
442
|
-
value:
|
|
442
|
+
value: V
|
|
443
443
|
}), Object.freeze && (Object.freeze(A.props), Object.freeze(A)), A;
|
|
444
444
|
};
|
|
445
|
-
function
|
|
445
|
+
function ya(c, v, x, N, V) {
|
|
446
446
|
{
|
|
447
|
-
var z, I = {}, A = null,
|
|
448
|
-
x !== void 0 && (di(x), A = "" + x),
|
|
449
|
-
for (z in
|
|
450
|
-
|
|
447
|
+
var z, I = {}, A = null, Z = null;
|
|
448
|
+
x !== void 0 && (di(x), A = "" + x), fa(v) && (di(v.key), A = "" + v.key), la(v) && (Z = v.ref, da(v, V));
|
|
449
|
+
for (z in v)
|
|
450
|
+
xt.call(v, z) && !ua.hasOwnProperty(z) && (I[z] = v[z]);
|
|
451
451
|
if (c && c.defaultProps) {
|
|
452
|
-
var
|
|
453
|
-
for (z in
|
|
454
|
-
I[z] === void 0 && (I[z] =
|
|
452
|
+
var W = c.defaultProps;
|
|
453
|
+
for (z in W)
|
|
454
|
+
I[z] === void 0 && (I[z] = W[z]);
|
|
455
455
|
}
|
|
456
|
-
if (A ||
|
|
457
|
-
var
|
|
458
|
-
A &&
|
|
456
|
+
if (A || Z) {
|
|
457
|
+
var H = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
|
|
458
|
+
A && ha(I, H), Z && pa(I, H);
|
|
459
459
|
}
|
|
460
|
-
return
|
|
460
|
+
return ma(c, A, Z, V, N, hi.current, I);
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
var Qr = y.ReactCurrentOwner, yi = y.ReactDebugCurrentFrame;
|
|
464
464
|
function it(c) {
|
|
465
465
|
if (c) {
|
|
466
|
-
var
|
|
466
|
+
var v = c._owner, x = er(c.type, c._source, v ? v.type : null);
|
|
467
467
|
yi.setExtraStackFrame(x);
|
|
468
468
|
} else
|
|
469
469
|
yi.setExtraStackFrame(null);
|
|
@@ -476,7 +476,7 @@ function Aa() {
|
|
|
476
476
|
function gi() {
|
|
477
477
|
{
|
|
478
478
|
if (Qr.current) {
|
|
479
|
-
var c =
|
|
479
|
+
var c = B(Qr.current.type);
|
|
480
480
|
if (c)
|
|
481
481
|
return `
|
|
482
482
|
|
|
@@ -485,83 +485,83 @@ Check the render method of \`` + c + "`.";
|
|
|
485
485
|
return "";
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function ga(c) {
|
|
489
489
|
return "";
|
|
490
490
|
}
|
|
491
491
|
var vi = {};
|
|
492
|
-
function
|
|
492
|
+
function va(c) {
|
|
493
493
|
{
|
|
494
|
-
var
|
|
495
|
-
if (!
|
|
494
|
+
var v = gi();
|
|
495
|
+
if (!v) {
|
|
496
496
|
var x = typeof c == "string" ? c : c.displayName || c.name;
|
|
497
|
-
x && (
|
|
497
|
+
x && (v = `
|
|
498
498
|
|
|
499
499
|
Check the top-level render call using <` + x + ">.");
|
|
500
500
|
}
|
|
501
|
-
return
|
|
501
|
+
return v;
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
function bi(c,
|
|
504
|
+
function bi(c, v) {
|
|
505
505
|
{
|
|
506
506
|
if (!c._store || c._store.validated || c.key != null)
|
|
507
507
|
return;
|
|
508
508
|
c._store.validated = !0;
|
|
509
|
-
var x =
|
|
509
|
+
var x = va(v);
|
|
510
510
|
if (vi[x])
|
|
511
511
|
return;
|
|
512
512
|
vi[x] = !0;
|
|
513
513
|
var N = "";
|
|
514
|
-
c && c._owner && c._owner !== Qr.current && (N = " It was passed a child from " +
|
|
514
|
+
c && c._owner && c._owner !== Qr.current && (N = " It was passed a child from " + B(c._owner.type) + "."), it(c), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', x, N), it(null);
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
function wi(c,
|
|
517
|
+
function wi(c, v) {
|
|
518
518
|
{
|
|
519
519
|
if (typeof c != "object")
|
|
520
520
|
return;
|
|
521
521
|
if (Kr(c))
|
|
522
522
|
for (var x = 0; x < c.length; x++) {
|
|
523
523
|
var N = c[x];
|
|
524
|
-
Jr(N) && bi(N,
|
|
524
|
+
Jr(N) && bi(N, v);
|
|
525
525
|
}
|
|
526
526
|
else if (Jr(c))
|
|
527
527
|
c._store && (c._store.validated = !0);
|
|
528
528
|
else if (c) {
|
|
529
|
-
var
|
|
530
|
-
if (typeof
|
|
531
|
-
for (var z =
|
|
532
|
-
Jr(I.value) && bi(I.value,
|
|
529
|
+
var V = w(c);
|
|
530
|
+
if (typeof V == "function" && V !== c.entries)
|
|
531
|
+
for (var z = V.call(c), I; !(I = z.next()).done; )
|
|
532
|
+
Jr(I.value) && bi(I.value, v);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function ba(c) {
|
|
537
537
|
{
|
|
538
|
-
var
|
|
539
|
-
if (
|
|
538
|
+
var v = c.type;
|
|
539
|
+
if (v == null || typeof v == "string")
|
|
540
540
|
return;
|
|
541
541
|
var x;
|
|
542
|
-
if (typeof
|
|
543
|
-
x =
|
|
544
|
-
else if (typeof
|
|
542
|
+
if (typeof v == "function")
|
|
543
|
+
x = v.propTypes;
|
|
544
|
+
else if (typeof v == "object" && (v.$$typeof === u || // Note: Memo only checks outer props here.
|
|
545
545
|
// Inner props are checked in the reconciler.
|
|
546
|
-
|
|
547
|
-
x =
|
|
546
|
+
v.$$typeof === d))
|
|
547
|
+
x = v.propTypes;
|
|
548
548
|
else
|
|
549
549
|
return;
|
|
550
550
|
if (x) {
|
|
551
|
-
var N =
|
|
552
|
-
|
|
553
|
-
} else if (
|
|
551
|
+
var N = B(v);
|
|
552
|
+
oa(x, c.props, "prop", N, c);
|
|
553
|
+
} else if (v.PropTypes !== void 0 && !Xr) {
|
|
554
554
|
Xr = !0;
|
|
555
|
-
var
|
|
556
|
-
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
555
|
+
var V = B(v);
|
|
556
|
+
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", V || "Unknown");
|
|
557
557
|
}
|
|
558
|
-
typeof
|
|
558
|
+
typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function wa(c) {
|
|
562
562
|
{
|
|
563
|
-
for (var
|
|
564
|
-
var N =
|
|
563
|
+
for (var v = Object.keys(c.props), x = 0; x < v.length; x++) {
|
|
564
|
+
var N = v[x];
|
|
565
565
|
if (N !== "children" && N !== "key") {
|
|
566
566
|
it(c), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", N), it(null);
|
|
567
567
|
break;
|
|
@@ -571,83 +571,83 @@ Check the top-level render call using <` + x + ">.");
|
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
var _i = {};
|
|
574
|
-
function Ei(c,
|
|
574
|
+
function Ei(c, v, x, N, V, z) {
|
|
575
575
|
{
|
|
576
|
-
var I =
|
|
576
|
+
var I = G(c);
|
|
577
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
|
-
var
|
|
581
|
-
|
|
582
|
-
var
|
|
583
|
-
c === null ?
|
|
580
|
+
var Z = ga();
|
|
581
|
+
Z ? A += Z : A += gi();
|
|
582
|
+
var W;
|
|
583
|
+
c === null ? W = "null" : Kr(c) ? W = "array" : c !== void 0 && c.$$typeof === t ? (W = "<" + (B(c.type) || "Unknown") + " />", A = " Did you accidentally export a JSX literal instead of a component?") : W = 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", W, A);
|
|
584
584
|
}
|
|
585
|
-
var
|
|
586
|
-
if (
|
|
587
|
-
return
|
|
585
|
+
var H = ya(c, v, x, V, z);
|
|
586
|
+
if (H == null)
|
|
587
|
+
return H;
|
|
588
588
|
if (I) {
|
|
589
|
-
var
|
|
590
|
-
if (
|
|
589
|
+
var le = v.children;
|
|
590
|
+
if (le !== void 0)
|
|
591
591
|
if (N)
|
|
592
|
-
if (Kr(
|
|
593
|
-
for (var ot = 0; ot <
|
|
594
|
-
wi(
|
|
595
|
-
Object.freeze && Object.freeze(
|
|
592
|
+
if (Kr(le)) {
|
|
593
|
+
for (var ot = 0; ot < le.length; ot++)
|
|
594
|
+
wi(le[ot], c);
|
|
595
|
+
Object.freeze && Object.freeze(le);
|
|
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
|
-
wi(
|
|
599
|
+
wi(le, c);
|
|
600
600
|
}
|
|
601
|
-
if (
|
|
602
|
-
var Le =
|
|
603
|
-
return
|
|
604
|
-
}), Zr =
|
|
601
|
+
if (xt.call(v, "key")) {
|
|
602
|
+
var Le = B(c), ee = Object.keys(v).filter(function(Oa) {
|
|
603
|
+
return Oa !== "key";
|
|
604
|
+
}), Zr = ee.length > 0 ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
605
605
|
if (!_i[Le + Zr]) {
|
|
606
|
-
var
|
|
606
|
+
var ka = ee.length > 0 ? "{" + ee.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, Le,
|
|
612
|
+
<%s key={someKey} {...props} />`, Zr, Le, ka, Le), _i[Le + Zr] = !0;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
return c === n ?
|
|
615
|
+
return c === n ? wa(H) : ba(H), H;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
function
|
|
619
|
-
return Ei(c,
|
|
618
|
+
function _a(c, v, x) {
|
|
619
|
+
return Ei(c, v, x, !0);
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
return Ei(c,
|
|
621
|
+
function Ea(c, v, x) {
|
|
622
|
+
return Ei(c, v, x, !1);
|
|
623
623
|
}
|
|
624
|
-
var
|
|
625
|
-
|
|
626
|
-
}()),
|
|
624
|
+
var Sa = Ea, xa = _a;
|
|
625
|
+
Ot.Fragment = n, Ot.jsx = Sa, Ot.jsxs = xa;
|
|
626
|
+
}()), Ot;
|
|
627
627
|
}
|
|
628
628
|
var Oi;
|
|
629
|
-
function
|
|
630
|
-
return Oi || (Oi = 1, process.env.NODE_ENV === "production" ? nr.exports =
|
|
629
|
+
function Ia() {
|
|
630
|
+
return Oi || (Oi = 1, process.env.NODE_ENV === "production" ? nr.exports = Aa() : nr.exports = Ta()), nr.exports;
|
|
631
631
|
}
|
|
632
|
-
var
|
|
632
|
+
var j = Ia(), Bn = Qt(), C = (e) => Kt(e, Bn), Un = Qt();
|
|
633
633
|
C.write = (e) => Kt(e, Un);
|
|
634
634
|
var Ar = Qt();
|
|
635
635
|
C.onStart = (e) => Kt(e, Ar);
|
|
636
|
-
var qn = Qt();
|
|
637
|
-
C.onFrame = (e) => Kt(e, qn);
|
|
638
636
|
var Wn = Qt();
|
|
639
|
-
C.
|
|
637
|
+
C.onFrame = (e) => Kt(e, Wn);
|
|
638
|
+
var qn = Qt();
|
|
639
|
+
C.onFinish = (e) => Kt(e, qn);
|
|
640
640
|
var ct = [];
|
|
641
641
|
C.setTimeout = (e, t) => {
|
|
642
642
|
const r = C.now() + t, n = () => {
|
|
643
643
|
const o = ct.findIndex((s) => s.cancel == n);
|
|
644
644
|
~o && ct.splice(o, 1), $e -= ~o ? 1 : 0;
|
|
645
645
|
}, i = { time: r, handler: e, cancel: n };
|
|
646
|
-
return ct.splice(
|
|
646
|
+
return ct.splice(Oo(r), 0, i), $e += 1, Po(), i;
|
|
647
647
|
};
|
|
648
|
-
var
|
|
648
|
+
var Oo = (e) => ~(~ct.findIndex((t) => t.time > e) || ~ct.length);
|
|
649
649
|
C.cancel = (e) => {
|
|
650
|
-
Ar.delete(e),
|
|
650
|
+
Ar.delete(e), Wn.delete(e), qn.delete(e), Bn.delete(e), Un.delete(e);
|
|
651
651
|
};
|
|
652
652
|
C.sync = (e) => {
|
|
653
653
|
pn = !0, C.batchedUpdates(e), pn = !1;
|
|
@@ -681,30 +681,30 @@ 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
|
+
) : Co();
|
|
685
685
|
};
|
|
686
686
|
var Ve = -1, $e = 0, pn = !1;
|
|
687
687
|
function Kt(e, t) {
|
|
688
|
-
pn ? (t.delete(e), e(0)) : (t.add(e),
|
|
688
|
+
pn ? (t.delete(e), e(0)) : (t.add(e), Po());
|
|
689
689
|
}
|
|
690
|
-
function
|
|
691
|
-
Ve < 0 && (Ve = 0, C.frameLoop !== "demand" && Hn(
|
|
690
|
+
function Po() {
|
|
691
|
+
Ve < 0 && (Ve = 0, C.frameLoop !== "demand" && Hn(No));
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function Da() {
|
|
694
694
|
Ve = -1;
|
|
695
695
|
}
|
|
696
|
-
function Po() {
|
|
697
|
-
~Ve && (Hn(Po), C.batchedUpdates(No));
|
|
698
|
-
}
|
|
699
696
|
function No() {
|
|
697
|
+
~Ve && (Hn(No), C.batchedUpdates(Co));
|
|
698
|
+
}
|
|
699
|
+
function Co() {
|
|
700
700
|
const e = Ve;
|
|
701
701
|
Ve = C.now();
|
|
702
|
-
const t =
|
|
703
|
-
if (t && (
|
|
704
|
-
|
|
702
|
+
const t = Oo(Ve);
|
|
703
|
+
if (t && (Ro(ct.splice(0, t), (r) => r.handler()), $e -= t), !$e) {
|
|
704
|
+
Da();
|
|
705
705
|
return;
|
|
706
706
|
}
|
|
707
|
-
Ar.flush(), Bn.flush(e ? Math.min(64, Ve - e) : 16.667),
|
|
707
|
+
Ar.flush(), Bn.flush(e ? Math.min(64, Ve - e) : 16.667), Wn.flush(), Un.flush(), qn.flush();
|
|
708
708
|
}
|
|
709
709
|
function Qt() {
|
|
710
710
|
let e = /* @__PURE__ */ new Set(), t = e;
|
|
@@ -716,11 +716,11 @@ function Qt() {
|
|
|
716
716
|
return $e -= t == e && e.has(r) ? 1 : 0, e.delete(r);
|
|
717
717
|
},
|
|
718
718
|
flush(r) {
|
|
719
|
-
t.size && (e = /* @__PURE__ */ new Set(), $e -= t.size,
|
|
719
|
+
t.size && (e = /* @__PURE__ */ new Set(), $e -= t.size, Ro(t, (n) => n(r) && e.add(n)), $e += e.size, t = e);
|
|
720
720
|
}
|
|
721
721
|
};
|
|
722
722
|
}
|
|
723
|
-
function
|
|
723
|
+
function Ro(e, t) {
|
|
724
724
|
e.forEach((r) => {
|
|
725
725
|
try {
|
|
726
726
|
t(r);
|
|
@@ -729,21 +729,21 @@ function Co(e, t) {
|
|
|
729
729
|
}
|
|
730
730
|
});
|
|
731
731
|
}
|
|
732
|
-
var
|
|
732
|
+
var ja = Object.defineProperty, Va = (e, t) => {
|
|
733
733
|
for (var r in t)
|
|
734
|
-
|
|
734
|
+
ja(e, r, { get: t[r], enumerable: !0 });
|
|
735
735
|
}, we = {};
|
|
736
|
-
|
|
737
|
-
assign: () =>
|
|
736
|
+
Va(we, {
|
|
737
|
+
assign: () => Ma,
|
|
738
738
|
colors: () => Me,
|
|
739
739
|
createStringInterpolator: () => Gn,
|
|
740
|
-
skipAnimation: () =>
|
|
741
|
-
to: () =>
|
|
740
|
+
skipAnimation: () => To,
|
|
741
|
+
to: () => Ao,
|
|
742
742
|
willAdvance: () => Kn
|
|
743
743
|
});
|
|
744
744
|
function mn() {
|
|
745
745
|
}
|
|
746
|
-
var
|
|
746
|
+
var $a = (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",
|
|
@@ -751,7 +751,7 @@ var Va = (e, t, r) => Object.defineProperty(e, t, { value: r, writable: !0, conf
|
|
|
751
751
|
num: (e) => typeof e == "number",
|
|
752
752
|
und: (e) => e === void 0
|
|
753
753
|
};
|
|
754
|
-
function
|
|
754
|
+
function Oe(e, t) {
|
|
755
755
|
if (_.arr(e)) {
|
|
756
756
|
if (!_.arr(t) || e.length !== t.length)
|
|
757
757
|
return !1;
|
|
@@ -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 se = (e) => _.und(e) ? [] : _.arr(e) ? e : [e];
|
|
776
|
+
function It(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 && (
|
|
784
|
-
},
|
|
782
|
+
var Rt = (e, ...t) => It(e, (r) => r(...t)), Yn = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), Gn, Ao, Me = null, To = !1, Kn = mn, Ma = (e) => {
|
|
783
|
+
e.to && (Ao = e.to), e.now && (C.now = e.now), e.colors !== void 0 && (Me = e.colors), e.skipAnimation != null && (To = e.skipAnimation), e.createStringInterpolator && (Gn = e.createStringInterpolator), e.requestAnimationFrame && C.use(e.requestAnimationFrame), e.batchedUpdates && (C.batchedUpdates = e.batchedUpdates), e.willAdvance && (Kn = e.willAdvance), e.frameLoop && (C.frameLoop = e.frameLoop);
|
|
784
|
+
}, Dt = /* @__PURE__ */ new Set(), de = [], en = [], vr = 0, Tr = {
|
|
785
785
|
get idle() {
|
|
786
|
-
return !
|
|
786
|
+
return !Dt.size && !de.length;
|
|
787
787
|
},
|
|
788
788
|
/** Advance the given animation on every frame until idle. */
|
|
789
789
|
start(e) {
|
|
790
|
-
vr > e.priority ? (
|
|
790
|
+
vr > e.priority ? (Dt.add(e), C.onStart(za)) : (Io(e), C(yn));
|
|
791
791
|
},
|
|
792
792
|
/** Advance all animations by the given time. */
|
|
793
793
|
advance: yn,
|
|
@@ -796,8 +796,8 @@ var Ct = (e, ...t) => Tt(e, (r) => r(...t)), Yn = () => 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 = de.indexOf(e);
|
|
800
|
+
~t && (de.splice(t, 1), Do(e));
|
|
801
801
|
}
|
|
802
802
|
},
|
|
803
803
|
/**
|
|
@@ -806,35 +806,35 @@ var Ct = (e, ...t) => Tt(e, (r) => r(...t)), Yn = () => typeof window > "u" || !
|
|
|
806
806
|
* ☠️ Never call this from within the frameloop.
|
|
807
807
|
*/
|
|
808
808
|
clear() {
|
|
809
|
-
|
|
809
|
+
de = [], Dt.clear();
|
|
810
810
|
}
|
|
811
811
|
};
|
|
812
|
-
function
|
|
813
|
-
|
|
814
|
-
}
|
|
815
|
-
function To(e) {
|
|
816
|
-
le.includes(e) || Io(e);
|
|
812
|
+
function za() {
|
|
813
|
+
Dt.forEach(Io), Dt.clear(), C(yn);
|
|
817
814
|
}
|
|
818
815
|
function Io(e) {
|
|
819
|
-
|
|
820
|
-
|
|
816
|
+
de.includes(e) || Do(e);
|
|
817
|
+
}
|
|
818
|
+
function Do(e) {
|
|
819
|
+
de.splice(
|
|
820
|
+
Fa(de, (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 < de.length; r++) {
|
|
828
|
+
const n = de[r];
|
|
829
829
|
vr = n.priority, n.idle || (Kn(n), n.advance(e), n.idle || t.push(n));
|
|
830
830
|
}
|
|
831
|
-
return vr = 0, en =
|
|
831
|
+
return vr = 0, en = de, en.length = 0, de = t, de.length > 0;
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function Fa(e, t) {
|
|
834
834
|
const r = e.findIndex(t);
|
|
835
835
|
return r < 0 ? e.length : r;
|
|
836
836
|
}
|
|
837
|
-
var
|
|
837
|
+
var La = {
|
|
838
838
|
transparent: 0,
|
|
839
839
|
aliceblue: 4042850303,
|
|
840
840
|
antiquewhite: 4209760255,
|
|
@@ -989,34 +989,34 @@ var Fa = {
|
|
|
989
989
|
function Ir(...e) {
|
|
990
990
|
return "\\(\\s*(" + e.join(")\\s*,\\s*(") + ")\\s*\\)";
|
|
991
991
|
}
|
|
992
|
-
var
|
|
992
|
+
var Ba = new RegExp("rgb" + Ir(ve, ve, ve)), Ua = new RegExp("rgba" + Ir(ve, ve, ve, ve)), Wa = new RegExp("hsl" + Ir(ve, br, br)), qa = new RegExp(
|
|
993
993
|
"hsla" + Ir(ve, br, br, ve)
|
|
994
|
-
),
|
|
995
|
-
function
|
|
994
|
+
), Ha = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, Ya = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, Ga = /^#([0-9a-fA-F]{6})$/, Ka = /^#([0-9a-fA-F]{8})$/;
|
|
995
|
+
function Qa(e) {
|
|
996
996
|
let t;
|
|
997
|
-
return typeof e == "number" ? e >>> 0 === e && e >= 0 && e <= 4294967295 ? e : null : (t =
|
|
997
|
+
return typeof e == "number" ? e >>> 0 === e && e >= 0 && e <= 4294967295 ? e : null : (t = Ga.exec(e)) ? parseInt(t[1] + "ff", 16) >>> 0 : Me && Me[e] !== void 0 ? Me[e] : (t = Ba.exec(e)) ? (st(t[1]) << 24 | // r
|
|
998
998
|
st(t[2]) << 16 | // g
|
|
999
999
|
st(t[3]) << 8 | // b
|
|
1000
1000
|
255) >>> // a
|
|
1001
|
-
0 : (t =
|
|
1001
|
+
0 : (t = Ua.exec(e)) ? (st(t[1]) << 24 | // r
|
|
1002
1002
|
st(t[2]) << 16 | // g
|
|
1003
1003
|
st(t[3]) << 8 | // b
|
|
1004
1004
|
Ci(t[4])) >>> // a
|
|
1005
|
-
0 : (t =
|
|
1005
|
+
0 : (t = Ha.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 =
|
|
1012
|
+
) >>> 0 : (t = Ka.exec(e)) ? parseInt(t[1], 16) >>> 0 : (t = Ya.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 = Wa.exec(e)) ? (Pi(
|
|
1020
1020
|
Ni(t[1]),
|
|
1021
1021
|
// h
|
|
1022
1022
|
ir(t[2]),
|
|
@@ -1057,18 +1057,18 @@ function ir(e) {
|
|
|
1057
1057
|
return t < 0 ? 0 : t > 100 ? 1 : t / 100;
|
|
1058
1058
|
}
|
|
1059
1059
|
function Ri(e) {
|
|
1060
|
-
let t =
|
|
1060
|
+
let t = Qa(e);
|
|
1061
1061
|
if (t === null)
|
|
1062
1062
|
return e;
|
|
1063
1063
|
t = t || 0;
|
|
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 Mt = (e, t, r) => {
|
|
1068
1068
|
if (_.fun(e))
|
|
1069
1069
|
return e;
|
|
1070
1070
|
if (_.arr(e))
|
|
1071
|
-
return
|
|
1071
|
+
return Mt({
|
|
1072
1072
|
range: e,
|
|
1073
1073
|
output: t,
|
|
1074
1074
|
extrapolate: r
|
|
@@ -1077,8 +1077,8 @@ var $t = (e, t, r) => {
|
|
|
1077
1077
|
return Gn(e);
|
|
1078
1078
|
const n = e, i = n.output, o = n.range || [0, 1], s = n.extrapolateLeft || n.extrapolate || "extend", a = n.extrapolateRight || n.extrapolate || "extend", u = n.easing || ((l) => l);
|
|
1079
1079
|
return (l) => {
|
|
1080
|
-
const f =
|
|
1081
|
-
return
|
|
1080
|
+
const f = Ja(l, o);
|
|
1081
|
+
return Xa(
|
|
1082
1082
|
l,
|
|
1083
1083
|
o[f],
|
|
1084
1084
|
o[f + 1],
|
|
@@ -1091,7 +1091,7 @@ var $t = (e, t, r) => {
|
|
|
1091
1091
|
);
|
|
1092
1092
|
};
|
|
1093
1093
|
};
|
|
1094
|
-
function
|
|
1094
|
+
function Xa(e, t, r, n, i, o, s, a, u) {
|
|
1095
1095
|
let l = u ? u(e) : e;
|
|
1096
1096
|
if (l < t) {
|
|
1097
1097
|
if (s === "identity")
|
|
@@ -1105,50 +1105,50 @@ function Qa(e, t, r, n, i, o, s, a, u) {
|
|
|
1105
1105
|
}
|
|
1106
1106
|
return n === i ? n : t === r ? e <= t ? n : i : (t === -1 / 0 ? l = -l : r === 1 / 0 ? l = l - t : l = (l - t) / (r - t), l = o(l), n === -1 / 0 ? l = -l : i === 1 / 0 ? l = l + n : l = l * (i - n) + n, l);
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1108
|
+
function Ja(e, t) {
|
|
1109
1109
|
for (var r = 1; r < t.length - 1 && !(t[r] >= e); ++r)
|
|
1110
1110
|
;
|
|
1111
1111
|
return r - 1;
|
|
1112
1112
|
}
|
|
1113
|
-
var
|
|
1113
|
+
var Za = {
|
|
1114
1114
|
linear: (e) => e
|
|
1115
|
-
},
|
|
1116
|
-
function
|
|
1115
|
+
}, zt = Symbol.for("FluidValue.get"), ft = Symbol.for("FluidValue.observers"), fe = (e) => !!(e && e[zt]), te = (e) => e && e[zt] ? e[zt]() : e, Ai = (e) => e[ft] || null;
|
|
1116
|
+
function ec(e, t) {
|
|
1117
1117
|
e.eventObserved ? e.eventObserved(t) : e(t);
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1120
|
-
const r = e[
|
|
1119
|
+
function Ft(e, t) {
|
|
1120
|
+
const r = e[ft];
|
|
1121
1121
|
r && r.forEach((n) => {
|
|
1122
|
-
|
|
1122
|
+
ec(n, t);
|
|
1123
1123
|
});
|
|
1124
1124
|
}
|
|
1125
|
-
var
|
|
1125
|
+
var jo = class {
|
|
1126
1126
|
constructor(e) {
|
|
1127
1127
|
if (!e && !(e = this.get))
|
|
1128
1128
|
throw Error("Unknown getter");
|
|
1129
|
-
|
|
1129
|
+
tc(this, e);
|
|
1130
1130
|
}
|
|
1131
|
-
},
|
|
1132
|
-
function
|
|
1133
|
-
if (e[
|
|
1134
|
-
let r = e[
|
|
1135
|
-
r ||
|
|
1131
|
+
}, tc = (e, t) => Vo(e, zt, t);
|
|
1132
|
+
function bt(e, t) {
|
|
1133
|
+
if (e[zt]) {
|
|
1134
|
+
let r = e[ft];
|
|
1135
|
+
r || Vo(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 Lt(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 Vo = (e, t, r) => Object.defineProperty(e, t, {
|
|
1147
1147
|
value: r,
|
|
1148
1148
|
writable: !0,
|
|
1149
1149
|
configurable: !0
|
|
1150
|
-
}), fr = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
|
|
1151
|
-
const [t, r] =
|
|
1150
|
+
}), fr = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, rc = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi, Ti = new RegExp(`(${fr.source})(%|[a-z]+)`, "i"), nc = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi, Dr = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/, $o = (e) => {
|
|
1151
|
+
const [t, r] = ic(e);
|
|
1152
1152
|
if (!t || Yn())
|
|
1153
1153
|
return e;
|
|
1154
1154
|
const n = window.getComputedStyle(document.documentElement).getPropertyValue(t);
|
|
@@ -1159,18 +1159,18 @@ var jo = (e, t, r) => Object.defineProperty(e, t, {
|
|
|
1159
1159
|
return i || e;
|
|
1160
1160
|
} else {
|
|
1161
1161
|
if (r && Dr.test(r))
|
|
1162
|
-
return
|
|
1162
|
+
return $o(r);
|
|
1163
1163
|
if (r)
|
|
1164
1164
|
return r;
|
|
1165
1165
|
}
|
|
1166
1166
|
return e;
|
|
1167
|
-
},
|
|
1167
|
+
}, ic = (e) => {
|
|
1168
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
|
-
}, rn,
|
|
1173
|
+
}, rn, oc = (e, t, r, n, i) => `rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`, Mo = (e) => {
|
|
1174
1174
|
rn || (rn = Me ? (
|
|
1175
1175
|
// match color names, ignore partial matches
|
|
1176
1176
|
new RegExp(`(${Object.keys(Me).join("|")})(?!\\w)`, "g")
|
|
@@ -1178,14 +1178,14 @@ var jo = (e, t, r) => Object.defineProperty(e, t, {
|
|
|
1178
1178
|
// never match
|
|
1179
1179
|
/^\b$/
|
|
1180
1180
|
));
|
|
1181
|
-
const t = e.output.map((o) =>
|
|
1181
|
+
const t = e.output.map((o) => te(o).replace(Dr, $o).replace(rc, Ri).replace(rn, Ri)), r = t.map((o) => o.match(fr).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) => Mt({ ...e, output: o })
|
|
1189
1189
|
);
|
|
1190
1190
|
return (o) => {
|
|
1191
1191
|
var u;
|
|
@@ -1194,9 +1194,9 @@ var jo = (e, t, r) => Object.defineProperty(e, t, {
|
|
|
1194
1194
|
return t[0].replace(
|
|
1195
1195
|
fr,
|
|
1196
1196
|
() => `${i[a++](o)}${s || ""}`
|
|
1197
|
-
).replace(
|
|
1197
|
+
).replace(nc, oc);
|
|
1198
1198
|
};
|
|
1199
|
-
}, Qn = "react-spring: ",
|
|
1199
|
+
}, Qn = "react-spring: ", zo = (e) => {
|
|
1200
1200
|
const t = e;
|
|
1201
1201
|
let r = !1;
|
|
1202
1202
|
if (typeof t != "function")
|
|
@@ -1204,15 +1204,15 @@ var jo = (e, t, r) => Object.defineProperty(e, t, {
|
|
|
1204
1204
|
return (...n) => {
|
|
1205
1205
|
r || (t(...n), r = !0);
|
|
1206
1206
|
};
|
|
1207
|
-
},
|
|
1208
|
-
function
|
|
1209
|
-
|
|
1207
|
+
}, sc = zo(console.warn);
|
|
1208
|
+
function ac() {
|
|
1209
|
+
sc(
|
|
1210
1210
|
`${Qn}The "interpolate" function is deprecated in v9 (use "to" instead)`
|
|
1211
1211
|
);
|
|
1212
1212
|
}
|
|
1213
|
-
var
|
|
1214
|
-
function
|
|
1215
|
-
|
|
1213
|
+
var cc = zo(console.warn);
|
|
1214
|
+
function uc() {
|
|
1215
|
+
cc(
|
|
1216
1216
|
`${Qn}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`
|
|
1217
1217
|
);
|
|
1218
1218
|
}
|
|
@@ -1220,34 +1220,34 @@ 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
1221
|
!Yn() && Dr.test(e) || e in (Me || {}));
|
|
1222
1222
|
}
|
|
1223
|
-
var Xn = Yn() ?
|
|
1224
|
-
const e =
|
|
1223
|
+
var Xn = Yn() ? vt : ko, lc = () => {
|
|
1224
|
+
const e = Se(!1);
|
|
1225
1225
|
return Xn(() => (e.current = !0, () => {
|
|
1226
1226
|
e.current = !1;
|
|
1227
1227
|
}), []), e;
|
|
1228
1228
|
};
|
|
1229
|
-
function
|
|
1230
|
-
const e =
|
|
1229
|
+
function Fo() {
|
|
1230
|
+
const e = lt()[1], t = lc();
|
|
1231
1231
|
return () => {
|
|
1232
1232
|
t.current && e(Math.random());
|
|
1233
1233
|
};
|
|
1234
1234
|
}
|
|
1235
|
-
function
|
|
1236
|
-
const [r] =
|
|
1235
|
+
function fc(e, t) {
|
|
1236
|
+
const [r] = lt(
|
|
1237
1237
|
() => ({
|
|
1238
1238
|
inputs: t,
|
|
1239
1239
|
result: e()
|
|
1240
1240
|
})
|
|
1241
|
-
), n =
|
|
1241
|
+
), n = Se(), i = n.current;
|
|
1242
1242
|
let o = i;
|
|
1243
|
-
return o ? t && o.inputs &&
|
|
1243
|
+
return o ? t && o.inputs && dc(t, o.inputs) || (o = {
|
|
1244
1244
|
inputs: t,
|
|
1245
1245
|
result: e()
|
|
1246
|
-
}) : o = r,
|
|
1246
|
+
}) : o = r, vt(() => {
|
|
1247
1247
|
n.current = o, i == r && (r.inputs = r.result = void 0);
|
|
1248
1248
|
}, [o]), o.result;
|
|
1249
1249
|
}
|
|
1250
|
-
function
|
|
1250
|
+
function dc(e, t) {
|
|
1251
1251
|
if (e.length !== t.length)
|
|
1252
1252
|
return !1;
|
|
1253
1253
|
for (let r = 0; r < e.length; r++)
|
|
@@ -1255,14 +1255,14 @@ function fc(e, t) {
|
|
|
1255
1255
|
return !1;
|
|
1256
1256
|
return !0;
|
|
1257
1257
|
}
|
|
1258
|
-
var
|
|
1258
|
+
var Lo = (e) => vt(e, hc), hc = [];
|
|
1259
1259
|
function Ii(e) {
|
|
1260
|
-
const t =
|
|
1261
|
-
return
|
|
1260
|
+
const t = Se();
|
|
1261
|
+
return vt(() => {
|
|
1262
1262
|
t.current = e;
|
|
1263
1263
|
}), t.current;
|
|
1264
1264
|
}
|
|
1265
|
-
var
|
|
1265
|
+
var Bt = Symbol.for("Animated:node"), pc = (e) => !!e && e[Bt] === e, _e = (e) => e && e[Bt], Jn = (e, t) => $a(e, Bt, t), Vr = (e) => e && e[Bt] && e[Bt].getPayload(), Bo = class {
|
|
1266
1266
|
constructor() {
|
|
1267
1267
|
Jn(this, this);
|
|
1268
1268
|
}
|
|
@@ -1270,7 +1270,7 @@ var Lt = Symbol.for("Animated:node"), hc = (e) => !!e && e[Lt] === e, _e = (e) =
|
|
|
1270
1270
|
getPayload() {
|
|
1271
1271
|
return this.payload || [];
|
|
1272
1272
|
}
|
|
1273
|
-
}, Xt = class extends
|
|
1273
|
+
}, Xt = class extends Bo {
|
|
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
|
}
|
|
@@ -1291,15 +1291,15 @@ var Lt = Symbol.for("Animated:node"), hc = (e) => !!e && e[Lt] === e, _e = (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
|
+
}, Ut = class extends Xt {
|
|
1295
1295
|
constructor(e) {
|
|
1296
|
-
super(0), this._string = null, this._toString =
|
|
1296
|
+
super(0), this._string = null, this._toString = Mt({
|
|
1297
1297
|
output: [e, e]
|
|
1298
1298
|
});
|
|
1299
1299
|
}
|
|
1300
1300
|
/** @internal */
|
|
1301
1301
|
static create(e) {
|
|
1302
|
-
return new
|
|
1302
|
+
return new Ut(e);
|
|
1303
1303
|
}
|
|
1304
1304
|
getValue() {
|
|
1305
1305
|
const e = this._string;
|
|
@@ -1317,18 +1317,18 @@ var Lt = Symbol.for("Animated:node"), hc = (e) => !!e && e[Lt] === e, _e = (e) =
|
|
|
1317
1317
|
return !0;
|
|
1318
1318
|
}
|
|
1319
1319
|
reset(e) {
|
|
1320
|
-
e && (this._toString =
|
|
1320
|
+
e && (this._toString = Mt({
|
|
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 Bo {
|
|
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
|
-
|
|
1330
|
+
return xe(this.source, (r, n) => {
|
|
1331
|
+
pc(r) ? t[n] = r.getValue(e) : fe(r) ? t[n] = te(r) : e || (t[n] = r);
|
|
1332
1332
|
}), t;
|
|
1333
1333
|
}
|
|
1334
1334
|
/** Replace the raw object data */
|
|
@@ -1342,37 +1342,37 @@ var Lt = Symbol.for("Animated:node"), hc = (e) => !!e && e[Lt] === e, _e = (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 && fe(e) && wr.dependencies.add(e);
|
|
1351
1351
|
const t = Vr(e);
|
|
1352
1352
|
t && T(t, (r) => this.add(r));
|
|
1353
1353
|
}
|
|
1354
|
-
},
|
|
1354
|
+
}, Uo = 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 Uo(e);
|
|
1361
1361
|
}
|
|
1362
1362
|
getValue() {
|
|
1363
1363
|
return this.source.map((e) => e.getValue());
|
|
1364
1364
|
}
|
|
1365
1365
|
setValue(e) {
|
|
1366
1366
|
const t = this.getPayload();
|
|
1367
|
-
return e.length == t.length ? t.map((r, n) => r.setValue(e[n])).some(Boolean) : (super.setValue(e.map(
|
|
1367
|
+
return e.length == t.length ? t.map((r, n) => r.setValue(e[n])).some(Boolean) : (super.setValue(e.map(mc)), !0);
|
|
1368
1368
|
}
|
|
1369
1369
|
};
|
|
1370
|
-
function
|
|
1371
|
-
return (jr(e) ?
|
|
1370
|
+
function mc(e) {
|
|
1371
|
+
return (jr(e) ? Ut : Xt).create(e);
|
|
1372
1372
|
}
|
|
1373
1373
|
function gn(e) {
|
|
1374
1374
|
const t = _e(e);
|
|
1375
|
-
return t ? t.constructor : _.arr(e) ?
|
|
1375
|
+
return t ? t.constructor : _.arr(e) ? Uo : jr(e) ? Ut : Xt;
|
|
1376
1376
|
}
|
|
1377
1377
|
var Di = (e, t) => {
|
|
1378
1378
|
const r = (
|
|
@@ -1380,32 +1380,32 @@ var Di = (e, t) => {
|
|
|
1380
1380
|
// re-rendered on every animation frame.
|
|
1381
1381
|
!_.fun(e) || e.prototype && e.prototype.isReactComponent
|
|
1382
1382
|
);
|
|
1383
|
-
return
|
|
1384
|
-
const o =
|
|
1385
|
-
|
|
1386
|
-
(
|
|
1387
|
-
o.current =
|
|
1383
|
+
return Pa((n, i) => {
|
|
1384
|
+
const o = Se(null), s = r && // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1385
|
+
Na(
|
|
1386
|
+
(g) => {
|
|
1387
|
+
o.current = vc(i, g);
|
|
1388
1388
|
},
|
|
1389
1389
|
[i]
|
|
1390
|
-
), [a, u] =
|
|
1391
|
-
const
|
|
1392
|
-
if (r && !
|
|
1390
|
+
), [a, u] = gc(n, t), l = Fo(), f = () => {
|
|
1391
|
+
const g = o.current;
|
|
1392
|
+
if (r && !g)
|
|
1393
1393
|
return;
|
|
1394
|
-
(
|
|
1395
|
-
}, d = new
|
|
1396
|
-
Xn(() => (h.current = d, T(u, (
|
|
1394
|
+
(g ? t.applyAnimatedValues(g, a.getValue(!0)) : !1) === !1 && l();
|
|
1395
|
+
}, d = new yc(f, u), h = Se();
|
|
1396
|
+
Xn(() => (h.current = d, T(u, (g) => bt(g, d)), () => {
|
|
1397
1397
|
h.current && (T(
|
|
1398
1398
|
h.current.deps,
|
|
1399
|
-
(
|
|
1399
|
+
(g) => Lt(g, h.current)
|
|
1400
1400
|
), C.cancel(h.current.update));
|
|
1401
|
-
})),
|
|
1402
|
-
const
|
|
1403
|
-
T(
|
|
1401
|
+
})), vt(f, []), Lo(() => () => {
|
|
1402
|
+
const g = h.current;
|
|
1403
|
+
T(g.deps, (E) => Lt(E, g));
|
|
1404
1404
|
});
|
|
1405
1405
|
const p = t.getComponentProps(a.getValue());
|
|
1406
1406
|
return /* @__PURE__ */ Fn.createElement(e, { ...p, ref: s });
|
|
1407
1407
|
});
|
|
1408
|
-
},
|
|
1408
|
+
}, yc = class {
|
|
1409
1409
|
constructor(e, t) {
|
|
1410
1410
|
this.update = e, this.deps = t;
|
|
1411
1411
|
}
|
|
@@ -1413,17 +1413,17 @@ var Di = (e, t) => {
|
|
|
1413
1413
|
e.type == "change" && C.write(this.update);
|
|
1414
1414
|
}
|
|
1415
1415
|
};
|
|
1416
|
-
function
|
|
1416
|
+
function gc(e, t) {
|
|
1417
1417
|
const r = /* @__PURE__ */ new Set();
|
|
1418
1418
|
return wr.dependencies = r, e.style && (e = {
|
|
1419
1419
|
...e,
|
|
1420
1420
|
style: t.createAnimatedStyle(e.style)
|
|
1421
1421
|
}), e = new $r(e), wr.dependencies = null, [e, r];
|
|
1422
1422
|
}
|
|
1423
|
-
function
|
|
1423
|
+
function vc(e, t) {
|
|
1424
1424
|
return e && (_.fun(e) ? e(t) : e.current = t), t;
|
|
1425
1425
|
}
|
|
1426
|
-
var ji = Symbol.for("AnimatedComponent"),
|
|
1426
|
+
var ji = Symbol.for("AnimatedComponent"), bc = (e, {
|
|
1427
1427
|
applyAnimatedValues: t = () => !1,
|
|
1428
1428
|
createAnimatedStyle: r = (i) => new $r(i),
|
|
1429
1429
|
getComponentProps: n = (i) => i
|
|
@@ -1436,7 +1436,7 @@ var ji = Symbol.for("AnimatedComponent"), vc = (e, {
|
|
|
1436
1436
|
const a = Vi(s) || "Anonymous";
|
|
1437
1437
|
return _.str(s) ? s = o[s] || (o[s] = Di(s, i)) : s = s[ji] || (s[ji] = Di(s, i)), s.displayName = `Animated(${a})`, s;
|
|
1438
1438
|
};
|
|
1439
|
-
return
|
|
1439
|
+
return xe(e, (s, a) => {
|
|
1440
1440
|
_.arr(e) && (a = Vi(s)), o[a] = o(s);
|
|
1441
1441
|
}), {
|
|
1442
1442
|
animated: o
|
|
@@ -1445,8 +1445,8 @@ var ji = Symbol.for("AnimatedComponent"), vc = (e, {
|
|
|
1445
1445
|
function Ue(e, ...t) {
|
|
1446
1446
|
return _.fun(e) ? e(...t) : e;
|
|
1447
1447
|
}
|
|
1448
|
-
var
|
|
1449
|
-
let r =
|
|
1448
|
+
var jt = (e, t) => e === !0 || !!(t && e && (_.fun(e) ? e(t) : se(e).includes(t))), Wo = (e, t) => _.obj(e) ? t && e[t] : e, qo = (e, t) => e.default === !0 ? e[t] : e.default ? e.default[t] : void 0, wc = (e) => e, Zn = (e, t = wc) => {
|
|
1449
|
+
let r = _c;
|
|
1450
1450
|
e.default && e.default !== !0 && (e = e.default, r = Object.keys(e));
|
|
1451
1451
|
const n = {};
|
|
1452
1452
|
for (const i of r) {
|
|
@@ -1454,7 +1454,7 @@ var Dt = (e, t) => e === !0 || !!(t && e && (_.fun(e) ? e(t) : ie(e).includes(t)
|
|
|
1454
1454
|
_.und(o) || (n[i] = o);
|
|
1455
1455
|
}
|
|
1456
1456
|
return n;
|
|
1457
|
-
},
|
|
1457
|
+
}, _c = [
|
|
1458
1458
|
"config",
|
|
1459
1459
|
"onProps",
|
|
1460
1460
|
"onStart",
|
|
@@ -1462,7 +1462,7 @@ var Dt = (e, t) => e === !0 || !!(t && e && (_.fun(e) ? e(t) : ie(e).includes(t)
|
|
|
1462
1462
|
"onPause",
|
|
1463
1463
|
"onResume",
|
|
1464
1464
|
"onRest"
|
|
1465
|
-
],
|
|
1465
|
+
], Ec = {
|
|
1466
1466
|
config: 1,
|
|
1467
1467
|
from: 1,
|
|
1468
1468
|
to: 1,
|
|
@@ -1498,29 +1498,29 @@ var Dt = (e, t) => e === !0 || !!(t && e && (_.fun(e) ? e(t) : ie(e).includes(t)
|
|
|
1498
1498
|
callId: 1,
|
|
1499
1499
|
parentId: 1
|
|
1500
1500
|
};
|
|
1501
|
-
function
|
|
1501
|
+
function Sc(e) {
|
|
1502
1502
|
const t = {};
|
|
1503
1503
|
let r = 0;
|
|
1504
|
-
if (
|
|
1505
|
-
|
|
1504
|
+
if (xe(e, (n, i) => {
|
|
1505
|
+
Ec[i] || (t[i] = n, r++);
|
|
1506
1506
|
}), r)
|
|
1507
1507
|
return t;
|
|
1508
1508
|
}
|
|
1509
|
-
function
|
|
1510
|
-
const t =
|
|
1509
|
+
function Ho(e) {
|
|
1510
|
+
const t = Sc(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
|
-
function
|
|
1518
|
-
return e =
|
|
1517
|
+
function Wt(e) {
|
|
1518
|
+
return e = te(e), _.arr(e) ? e.map(Wt) : jr(e) ? we.createStringInterpolator({
|
|
1519
1519
|
range: [0, 1],
|
|
1520
1520
|
output: [e, e]
|
|
1521
1521
|
})(1) : e;
|
|
1522
1522
|
}
|
|
1523
|
-
function
|
|
1523
|
+
function xc(e) {
|
|
1524
1524
|
for (const t in e)
|
|
1525
1525
|
return !0;
|
|
1526
1526
|
return !1;
|
|
@@ -1528,28 +1528,28 @@ function Sc(e) {
|
|
|
1528
1528
|
function vn(e) {
|
|
1529
1529
|
return _.fun(e) || _.arr(e) && _.obj(e[0]);
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1531
|
+
function kc(e, t) {
|
|
1532
1532
|
var r;
|
|
1533
1533
|
(r = e.ref) == null || r.delete(e), t == null || t.delete(e);
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1535
|
+
function Oc(e, t) {
|
|
1536
1536
|
var r;
|
|
1537
1537
|
t && e.ref !== t && ((r = e.ref) == null || r.delete(e), t.add(e), e.ref = t);
|
|
1538
1538
|
}
|
|
1539
|
-
var
|
|
1539
|
+
var Pc = {
|
|
1540
1540
|
default: { tension: 170, friction: 26 }
|
|
1541
1541
|
}, bn = {
|
|
1542
|
-
...
|
|
1542
|
+
...Pc.default,
|
|
1543
1543
|
mass: 1,
|
|
1544
1544
|
damping: 1,
|
|
1545
|
-
easing:
|
|
1545
|
+
easing: Za.linear,
|
|
1546
1546
|
clamp: !1
|
|
1547
|
-
},
|
|
1547
|
+
}, Nc = class {
|
|
1548
1548
|
constructor() {
|
|
1549
1549
|
this.velocity = 0, Object.assign(this, bn);
|
|
1550
1550
|
}
|
|
1551
1551
|
};
|
|
1552
|
-
function
|
|
1552
|
+
function Cc(e, t, r) {
|
|
1553
1553
|
r && (r = { ...r }, $i(r, t), t = { ...r, ...t }), $i(e, t), Object.assign(e, t);
|
|
1554
1554
|
for (const s in bn)
|
|
1555
1555
|
e[s] == null && (e[s] = bn[s]);
|
|
@@ -1565,20 +1565,20 @@ function $i(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 Mi = [],
|
|
1568
|
+
var Mi = [], Rc = class {
|
|
1569
1569
|
constructor() {
|
|
1570
|
-
this.changed = !1, this.values = Mi, this.toValues = null, this.fromValues = Mi, this.config = new
|
|
1570
|
+
this.changed = !1, this.values = Mi, this.toValues = null, this.fromValues = Mi, this.config = new Nc(), this.immediate = !1;
|
|
1571
1571
|
}
|
|
1572
1572
|
};
|
|
1573
|
-
function
|
|
1573
|
+
function Yo(e, { key: t, props: r, defaultProps: n, state: i, actions: o }) {
|
|
1574
1574
|
return new Promise((s, a) => {
|
|
1575
|
-
let u, l, f =
|
|
1575
|
+
let u, l, f = jt(r.cancel ?? (n == null ? void 0 : n.cancel), t);
|
|
1576
1576
|
if (f)
|
|
1577
1577
|
p();
|
|
1578
1578
|
else {
|
|
1579
|
-
_.und(r.pause) || (i.paused =
|
|
1580
|
-
let
|
|
1581
|
-
|
|
1579
|
+
_.und(r.pause) || (i.paused = jt(r.pause, t));
|
|
1580
|
+
let g = n == null ? void 0 : n.pause;
|
|
1581
|
+
g !== !0 && (g = i.paused || jt(g, t)), u = Ue(r.delay || 0, t), g ? (i.resumeQueue.add(h), o.pause()) : (o.resume(), h());
|
|
1582
1582
|
}
|
|
1583
1583
|
function d() {
|
|
1584
1584
|
i.resumeQueue.add(h), i.timeouts.delete(l), l.cancel(), u = l.time - C.now();
|
|
@@ -1590,16 +1590,16 @@ function Ho(e, { key: t, props: r, defaultProps: n, state: i, actions: o }) {
|
|
|
1590
1590
|
i.delayed && (i.delayed = !1), i.pauseQueue.delete(d), i.timeouts.delete(l), e <= (i.cancelId || 0) && (f = !0);
|
|
1591
1591
|
try {
|
|
1592
1592
|
o.start({ ...r, callId: e, cancel: f }, s);
|
|
1593
|
-
} catch (
|
|
1594
|
-
a(
|
|
1593
|
+
} catch (g) {
|
|
1594
|
+
a(g);
|
|
1595
1595
|
}
|
|
1596
1596
|
}
|
|
1597
1597
|
});
|
|
1598
1598
|
}
|
|
1599
|
-
var ei = (e, t) => t.length == 1 ? t[0] : t.some((r) => r.cancelled) ? ut(e.get()) : t.every((r) => r.noop) ?
|
|
1599
|
+
var ei = (e, t) => t.length == 1 ? t[0] : t.some((r) => r.cancelled) ? ut(e.get()) : t.every((r) => r.noop) ? Go(e.get()) : ge(
|
|
1600
1600
|
e.get(),
|
|
1601
1601
|
t.every((r) => r.finished)
|
|
1602
|
-
),
|
|
1602
|
+
), Go = (e) => ({
|
|
1603
1603
|
value: e,
|
|
1604
1604
|
noop: !0,
|
|
1605
1605
|
finished: !0,
|
|
@@ -1613,7 +1613,7 @@ var ei = (e, t) => t.length == 1 ? t[0] : t.some((r) => r.cancelled) ? ut(e.get(
|
|
|
1613
1613
|
cancelled: !0,
|
|
1614
1614
|
finished: !1
|
|
1615
1615
|
});
|
|
1616
|
-
function
|
|
1616
|
+
function Ko(e, t, r, n) {
|
|
1617
1617
|
const { callId: i, parentId: o, onRest: s } = t, { asyncTo: a, promise: u } = r;
|
|
1618
1618
|
return !o && e === a && !t.reset ? u : r.promise = (async () => {
|
|
1619
1619
|
r.asyncId = i, r.asyncTo = e;
|
|
@@ -1635,14 +1635,14 @@ function Go(e, t, r, n) {
|
|
|
1635
1635
|
);
|
|
1636
1636
|
if (y)
|
|
1637
1637
|
throw w.result = y, d(w), w;
|
|
1638
|
-
},
|
|
1638
|
+
}, g = (w, y) => {
|
|
1639
1639
|
const b = new zi(), m = new Fi();
|
|
1640
1640
|
return (async () => {
|
|
1641
1641
|
if (we.skipAnimation)
|
|
1642
1642
|
throw qt(r), m.result = ge(n, !1), d(m), m;
|
|
1643
1643
|
p(b);
|
|
1644
1644
|
const S = _.obj(w) ? { ...w } : { ...y, to: w };
|
|
1645
|
-
S.parentId = i,
|
|
1645
|
+
S.parentId = i, xe(l, (P, k) => {
|
|
1646
1646
|
_.und(S[k]) && (S[k] = P);
|
|
1647
1647
|
});
|
|
1648
1648
|
const O = await n.start(S);
|
|
@@ -1658,8 +1658,8 @@ function Go(e, t, r, n) {
|
|
|
1658
1658
|
let w;
|
|
1659
1659
|
_.arr(e) ? w = (async (y) => {
|
|
1660
1660
|
for (const b of y)
|
|
1661
|
-
await
|
|
1662
|
-
})(e) : w = Promise.resolve(e(
|
|
1661
|
+
await g(b);
|
|
1662
|
+
})(e) : w = Promise.resolve(e(g, n.stop.bind(n))), await Promise.all([w.then(f), h]), E = ge(n.get(), !0, !1);
|
|
1663
1663
|
} catch (w) {
|
|
1664
1664
|
if (w instanceof zi)
|
|
1665
1665
|
E = w.result;
|
|
@@ -1676,7 +1676,7 @@ function Go(e, t, r, n) {
|
|
|
1676
1676
|
})();
|
|
1677
1677
|
}
|
|
1678
1678
|
function qt(e, t) {
|
|
1679
|
-
|
|
1679
|
+
It(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
1681
|
var zi = class extends Error {
|
|
1682
1682
|
constructor() {
|
|
@@ -1688,9 +1688,9 @@ var zi = class extends Error {
|
|
|
1688
1688
|
constructor() {
|
|
1689
1689
|
super("SkipAnimationSignal");
|
|
1690
1690
|
}
|
|
1691
|
-
}, wn = (e) => e instanceof ti,
|
|
1691
|
+
}, wn = (e) => e instanceof ti, Ac = 1, ti = class extends jo {
|
|
1692
1692
|
constructor() {
|
|
1693
|
-
super(...arguments), this.id =
|
|
1693
|
+
super(...arguments), this.id = Ac++, this._priority = 0;
|
|
1694
1694
|
}
|
|
1695
1695
|
get priority() {
|
|
1696
1696
|
return this._priority;
|
|
@@ -1709,7 +1709,7 @@ var zi = class extends Error {
|
|
|
1709
1709
|
}
|
|
1710
1710
|
/** @deprecated Use the `to` method instead. */
|
|
1711
1711
|
interpolate(...e) {
|
|
1712
|
-
return
|
|
1712
|
+
return ac(), we.to(this, e);
|
|
1713
1713
|
}
|
|
1714
1714
|
toJSON() {
|
|
1715
1715
|
return this.get();
|
|
@@ -1728,7 +1728,7 @@ var zi = class extends Error {
|
|
|
1728
1728
|
}
|
|
1729
1729
|
/** Tell our children about our new value */
|
|
1730
1730
|
_onChange(e, t = !1) {
|
|
1731
|
-
|
|
1731
|
+
Ft(this, {
|
|
1732
1732
|
type: "change",
|
|
1733
1733
|
parent: this,
|
|
1734
1734
|
value: e,
|
|
@@ -1737,15 +1737,15 @@ var zi = 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), Ft(this, {
|
|
1741
1741
|
type: "priority",
|
|
1742
1742
|
parent: this,
|
|
1743
1743
|
priority: e
|
|
1744
1744
|
});
|
|
1745
1745
|
}
|
|
1746
|
-
}, Ke = Symbol.for("SpringPhase"),
|
|
1746
|
+
}, Ke = Symbol.for("SpringPhase"), Qo = 1, Xo = 2, Jo = 4, nn = (e) => (e[Ke] & Qo) > 0, Ie = (e) => (e[Ke] & Xo) > 0, Pt = (e) => (e[Ke] & Jo) > 0, Li = (e, t) => t ? e[Ke] |= Xo | Qo : e[Ke] &= -3, Bi = (e, t) => t ? e[Ke] |= Jo : e[Ke] &= -5, Tc = class extends ti {
|
|
1747
1747
|
constructor(e, t) {
|
|
1748
|
-
if (super(), this.animation = new
|
|
1748
|
+
if (super(), this.animation = new Rc(), this.defaultProps = {}, this._state = {
|
|
1749
1749
|
paused: !1,
|
|
1750
1750
|
delayed: !1,
|
|
1751
1751
|
pauseQueue: /* @__PURE__ */ new Set(),
|
|
@@ -1758,10 +1758,10 @@ var zi = class extends Error {
|
|
|
1758
1758
|
}
|
|
1759
1759
|
/** Equals true when not advancing on each frame. */
|
|
1760
1760
|
get idle() {
|
|
1761
|
-
return !(Ie(this) || this._state.asyncTo) ||
|
|
1761
|
+
return !(Ie(this) || this._state.asyncTo) || Pt(this);
|
|
1762
1762
|
}
|
|
1763
1763
|
get goal() {
|
|
1764
|
-
return
|
|
1764
|
+
return te(this.animation.to);
|
|
1765
1765
|
}
|
|
1766
1766
|
get velocity() {
|
|
1767
1767
|
const e = _e(this);
|
|
@@ -1784,7 +1784,7 @@ var zi = class extends Error {
|
|
|
1784
1784
|
* When true, all current and future animations are paused.
|
|
1785
1785
|
*/
|
|
1786
1786
|
get isPaused() {
|
|
1787
|
-
return
|
|
1787
|
+
return Pt(this);
|
|
1788
1788
|
}
|
|
1789
1789
|
/**
|
|
1790
1790
|
*
|
|
@@ -1799,12 +1799,12 @@ var zi = 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 && fe(n.to) && (i = se(te(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 == Ut ? 1 : s ? s[f].lastPosition : i[f]
|
|
1808
1808
|
);
|
|
1809
1809
|
let h = n.immediate, p = d;
|
|
1810
1810
|
if (!h) {
|
|
@@ -1812,28 +1812,28 @@ var zi = class extends Error {
|
|
|
1812
1812
|
l.done = !0;
|
|
1813
1813
|
return;
|
|
1814
1814
|
}
|
|
1815
|
-
let
|
|
1815
|
+
let g = l.elapsedTime += e;
|
|
1816
1816
|
const E = n.fromValues[f], w = l.v0 != null ? l.v0 : l.v0 = _.arr(o.velocity) ? o.velocity[f] : o.velocity;
|
|
1817
1817
|
let y;
|
|
1818
1818
|
const b = o.precision || (E == d ? 5e-3 : Math.min(1, Math.abs(d - E) * 1e-3));
|
|
1819
1819
|
if (_.und(o.duration))
|
|
1820
1820
|
if (o.decay) {
|
|
1821
|
-
const m = o.decay === !0 ? 0.998 : o.decay, S = Math.exp(-(1 - m) *
|
|
1821
|
+
const m = o.decay === !0 ? 0.998 : o.decay, S = Math.exp(-(1 - m) * g);
|
|
1822
1822
|
p = E + w / (1 - m) * (1 - S), h = Math.abs(l.lastPosition - p) <= b, y = w * S;
|
|
1823
1823
|
} else {
|
|
1824
1824
|
y = l.lastVelocity == null ? w : l.lastVelocity;
|
|
1825
1825
|
const m = o.restVelocity || b / 10, S = o.clamp ? 0 : o.bounce, O = !_.und(S), P = E == d ? l.v0 > 0 : E < d;
|
|
1826
1826
|
let k, D = !1;
|
|
1827
|
-
const M = 1,
|
|
1828
|
-
for (let
|
|
1827
|
+
const M = 1, G = Math.ceil(e / M);
|
|
1828
|
+
for (let U = 0; U < G && (k = Math.abs(y) > m, !(!k && (h = Math.abs(d - p) <= b, h))); ++U) {
|
|
1829
1829
|
O && (D = p == d || p > d == P, D && (y = -y * S, p = d));
|
|
1830
|
-
const
|
|
1831
|
-
y = y +
|
|
1830
|
+
const X = -o.tension * 1e-6 * (p - d), B = -o.friction * 1e-3 * y, oe = (X + B) / o.mass;
|
|
1831
|
+
y = y + oe * M, p = p + y * M;
|
|
1832
1832
|
}
|
|
1833
1833
|
}
|
|
1834
1834
|
else {
|
|
1835
1835
|
let m = 1;
|
|
1836
|
-
o.duration > 0 && (this._memoizedDuration !== o.duration && (this._memoizedDuration = o.duration, l.durationProgress > 0 && (l.elapsedTime = o.duration * l.durationProgress,
|
|
1836
|
+
o.duration > 0 && (this._memoizedDuration !== o.duration && (this._memoizedDuration = o.duration, l.durationProgress > 0 && (l.elapsedTime = o.duration * l.durationProgress, g = l.elapsedTime += e)), m = (o.progress || 0) + g / this._memoizedDuration, m = m > 1 ? 1 : m < 0 ? 0 : m, l.durationProgress = m), p = E + o.easing(m) * (d - E), y = (p - l.lastPosition) / e, h = m == 1;
|
|
1837
1837
|
}
|
|
1838
1838
|
l.lastVelocity = y, Number.isNaN(p) && (console.warn("Got NaN while animating:", this), h = !0);
|
|
1839
1839
|
}
|
|
@@ -1841,7 +1841,7 @@ var zi = class extends Error {
|
|
|
1841
1841
|
});
|
|
1842
1842
|
const a = _e(this), u = a.getValue();
|
|
1843
1843
|
if (t) {
|
|
1844
|
-
const l =
|
|
1844
|
+
const l = te(n.to);
|
|
1845
1845
|
(u !== l || r) && !o.decay ? (a.setValue(l), this._onChange(l)) : r && o.decay && this._onChange(u), this._stop();
|
|
1846
1846
|
} else r && this._onChange(u);
|
|
1847
1847
|
}
|
|
@@ -1910,7 +1910,7 @@ var zi = 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 =
|
|
1913
|
+
return nn(this) || (e.reverse && ([r, n] = [n, r]), n = te(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) {
|
|
@@ -1919,34 +1919,34 @@ var zi = class extends Error {
|
|
|
1919
1919
|
n,
|
|
1920
1920
|
Zn(
|
|
1921
1921
|
e,
|
|
1922
|
-
(s, a) => /^on/.test(a) ?
|
|
1922
|
+
(s, a) => /^on/.test(a) ? Wo(s, r) : s
|
|
1923
1923
|
)
|
|
1924
|
-
),
|
|
1924
|
+
), Wi(this, e, "onProps"), Ct(this, "onProps", e, this);
|
|
1925
1925
|
const i = this._prepareNode(e);
|
|
1926
1926
|
if (Object.isFrozen(this))
|
|
1927
1927
|
throw Error(
|
|
1928
1928
|
"Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?"
|
|
1929
1929
|
);
|
|
1930
1930
|
const o = this._state;
|
|
1931
|
-
return
|
|
1931
|
+
return Yo(++this._lastCallId, {
|
|
1932
1932
|
key: r,
|
|
1933
1933
|
props: e,
|
|
1934
1934
|
defaultProps: n,
|
|
1935
1935
|
state: o,
|
|
1936
1936
|
actions: {
|
|
1937
1937
|
pause: () => {
|
|
1938
|
-
|
|
1938
|
+
Pt(this) || (Bi(this, !0), Rt(o.pauseQueue), Ct(
|
|
1939
1939
|
this,
|
|
1940
1940
|
"onPause",
|
|
1941
|
-
ge(this,
|
|
1941
|
+
ge(this, Nt(this, this.animation.to)),
|
|
1942
1942
|
this
|
|
1943
1943
|
));
|
|
1944
1944
|
},
|
|
1945
1945
|
resume: () => {
|
|
1946
|
-
|
|
1946
|
+
Pt(this) && (Bi(this, !1), Ie(this) && this._resume(), Rt(o.resumeQueue), Ct(
|
|
1947
1947
|
this,
|
|
1948
1948
|
"onResume",
|
|
1949
|
-
ge(this,
|
|
1949
|
+
ge(this, Nt(this, this.animation.to)),
|
|
1950
1950
|
this
|
|
1951
1951
|
));
|
|
1952
1952
|
},
|
|
@@ -1954,7 +1954,7 @@ var zi = class extends Error {
|
|
|
1954
1954
|
}
|
|
1955
1955
|
}).then((s) => {
|
|
1956
1956
|
if (e.loop && s.finished && !(t && s.noop)) {
|
|
1957
|
-
const a =
|
|
1957
|
+
const a = Zo(e);
|
|
1958
1958
|
if (a)
|
|
1959
1959
|
return this._update(a, !0);
|
|
1960
1960
|
}
|
|
@@ -1974,12 +1974,12 @@ var zi = class extends Error {
|
|
|
1974
1974
|
const { key: o, defaultProps: s, animation: a } = this, { to: u, from: l } = a;
|
|
1975
1975
|
let { to: f = u, from: d = l } = e;
|
|
1976
1976
|
i && !n && (!t.default || _.und(f)) && (f = d), t.reverse && ([f, d] = [d, f]);
|
|
1977
|
-
const h = !
|
|
1978
|
-
h && (a.from = d), d =
|
|
1979
|
-
const p = !
|
|
1977
|
+
const h = !Oe(d, l);
|
|
1978
|
+
h && (a.from = d), d = te(d);
|
|
1979
|
+
const p = !Oe(f, u);
|
|
1980
1980
|
p && this._focus(f);
|
|
1981
|
-
const
|
|
1982
|
-
(n || i) && (E.velocity = 0), t.config && !
|
|
1981
|
+
const g = vn(t.to), { config: E } = a, { decay: w, velocity: y } = E;
|
|
1982
|
+
(n || i) && (E.velocity = 0), t.config && !g && Cc(
|
|
1983
1983
|
E,
|
|
1984
1984
|
Ue(t.config, o),
|
|
1985
1985
|
// Avoid calling the same "config" prop twice.
|
|
@@ -1992,34 +1992,34 @@ var zi = class extends Error {
|
|
|
1992
1992
|
// When `reset` is undefined, the `from` prop implies `reset: true`,
|
|
1993
1993
|
// except for declarative updates. When `reset` is defined, there
|
|
1994
1994
|
// must exist a value to animate from.
|
|
1995
|
-
_.und(t.reset) ? i && !t.default : !_.und(d) &&
|
|
1996
|
-
), S = m ? d : this.get(), O =
|
|
1995
|
+
_.und(t.reset) ? i && !t.default : !_.und(d) && jt(t.reset, o)
|
|
1996
|
+
), S = m ? d : this.get(), O = Wt(f), P = _.num(O) || _.arr(O) || jr(O), k = !g && (!P || jt(s.immediate || t.immediate, o));
|
|
1997
1997
|
if (p) {
|
|
1998
|
-
const
|
|
1999
|
-
if (
|
|
1998
|
+
const U = gn(f);
|
|
1999
|
+
if (U !== b.constructor)
|
|
2000
2000
|
if (k)
|
|
2001
2001
|
b = this._set(O);
|
|
2002
2002
|
else
|
|
2003
2003
|
throw Error(
|
|
2004
|
-
`Cannot animate between ${b.constructor.name} and ${
|
|
2004
|
+
`Cannot animate between ${b.constructor.name} and ${U.name}, as the "to" prop suggests`
|
|
2005
2005
|
);
|
|
2006
2006
|
}
|
|
2007
2007
|
const D = b.constructor;
|
|
2008
|
-
let M =
|
|
2008
|
+
let M = fe(f), G = !1;
|
|
2009
2009
|
if (!M) {
|
|
2010
|
-
const
|
|
2011
|
-
(p ||
|
|
2010
|
+
const U = m || !nn(this) && h;
|
|
2011
|
+
(p || U) && (G = Oe(Wt(S), O), M = !G), (!Oe(a.immediate, k) && !k || !Oe(E.decay, w) || !Oe(E.velocity, y)) && (M = !0);
|
|
2012
2012
|
}
|
|
2013
|
-
if (
|
|
2014
|
-
const { onRest:
|
|
2015
|
-
T(
|
|
2016
|
-
const
|
|
2017
|
-
|
|
2018
|
-
var
|
|
2019
|
-
a.changed = !m,
|
|
2013
|
+
if (G && Ie(this) && (a.changed && !m ? M = !0 : M || this._stop(u)), !g && ((M || fe(u)) && (a.values = b.getPayload(), a.toValues = fe(f) ? null : D == Ut ? [1] : se(O)), a.immediate != k && (a.immediate = k, !k && !m && this._set(u)), M)) {
|
|
2014
|
+
const { onRest: U } = a;
|
|
2015
|
+
T(Dc, (B) => Wi(this, t, B));
|
|
2016
|
+
const X = ge(this, Nt(this, u));
|
|
2017
|
+
Rt(this._pendingCalls, X), this._pendingCalls.add(r), a.changed && C.batchedUpdates(() => {
|
|
2018
|
+
var B;
|
|
2019
|
+
a.changed = !m, U == null || U(X, this), m ? Ue(s.onRest, X) : (B = a.onStart) == null || B.call(a, X, this);
|
|
2020
2020
|
});
|
|
2021
2021
|
}
|
|
2022
|
-
m && this._set(S),
|
|
2022
|
+
m && this._set(S), g ? r(Ko(t.to, t, this._state, this)) : M ? this._start() : Ie(this) && !p ? this._pendingCalls.add(r) : r(Go(S));
|
|
2023
2023
|
}
|
|
2024
2024
|
/** Update the `animation.to` value, which might be a `FluidValue` */
|
|
2025
2025
|
_focus(e) {
|
|
@@ -2029,21 +2029,21 @@ var zi = class extends Error {
|
|
|
2029
2029
|
_attach() {
|
|
2030
2030
|
let e = 0;
|
|
2031
2031
|
const { to: t } = this.animation;
|
|
2032
|
-
|
|
2032
|
+
fe(t) && (bt(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
|
+
fe(e) && Lt(e, this);
|
|
2037
2037
|
}
|
|
2038
2038
|
/**
|
|
2039
2039
|
* Update the current value from outside the frameloop,
|
|
2040
2040
|
* and return the `Animated` node.
|
|
2041
2041
|
*/
|
|
2042
2042
|
_set(e, t = !0) {
|
|
2043
|
-
const r =
|
|
2043
|
+
const r = te(e);
|
|
2044
2044
|
if (!_.und(r)) {
|
|
2045
2045
|
const n = _e(this);
|
|
2046
|
-
if (!n || !
|
|
2046
|
+
if (!n || !Oe(r, n.getValue())) {
|
|
2047
2047
|
const i = gn(r);
|
|
2048
2048
|
!n || n.constructor != i ? Jn(this, i.create(r)) : n.setValue(r), n && C.batchedUpdates(() => {
|
|
2049
2049
|
this._onChange(r, t);
|
|
@@ -2054,10 +2054,10 @@ var zi = class extends Error {
|
|
|
2054
2054
|
}
|
|
2055
2055
|
_onStart() {
|
|
2056
2056
|
const e = this.animation;
|
|
2057
|
-
e.changed || (e.changed = !0,
|
|
2057
|
+
e.changed || (e.changed = !0, Ct(
|
|
2058
2058
|
this,
|
|
2059
2059
|
"onStart",
|
|
2060
|
-
ge(this,
|
|
2060
|
+
ge(this, Nt(this, e.to)),
|
|
2061
2061
|
this
|
|
2062
2062
|
));
|
|
2063
2063
|
}
|
|
@@ -2069,7 +2069,7 @@ var zi = class extends Error {
|
|
|
2069
2069
|
// is added to the frameloop.
|
|
2070
2070
|
_start() {
|
|
2071
2071
|
const e = this.animation;
|
|
2072
|
-
_e(this).reset(
|
|
2072
|
+
_e(this).reset(te(e.to)), e.immediate || (e.fromValues = e.values.map((t) => t.lastPosition)), Ie(this) || (Li(this, !0), Pt(this) || this._resume());
|
|
2073
2073
|
}
|
|
2074
2074
|
_resume() {
|
|
2075
2075
|
we.skipAnimation ? this.finish() : Tr.start(this);
|
|
@@ -2085,24 +2085,24 @@ var zi = class extends Error {
|
|
|
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), Ft(this, {
|
|
2089
2089
|
type: "idle",
|
|
2090
2090
|
parent: this
|
|
2091
2091
|
});
|
|
2092
|
-
const n = t ? ut(this.get()) : ge(this.get(),
|
|
2093
|
-
|
|
2092
|
+
const n = t ? ut(this.get()) : ge(this.get(), Nt(this, e ?? r.to));
|
|
2093
|
+
Rt(this._pendingCalls, n), r.changed && (r.changed = !1, Ct(this, "onRest", n, this));
|
|
2094
2094
|
}
|
|
2095
2095
|
}
|
|
2096
2096
|
};
|
|
2097
|
-
function
|
|
2098
|
-
const r =
|
|
2099
|
-
return
|
|
2097
|
+
function Nt(e, t) {
|
|
2098
|
+
const r = Wt(t), n = Wt(e.get());
|
|
2099
|
+
return Oe(n, r);
|
|
2100
2100
|
}
|
|
2101
|
-
function
|
|
2101
|
+
function Zo(e, t = e.loop, r = e.to) {
|
|
2102
2102
|
const n = Ue(t);
|
|
2103
2103
|
if (n) {
|
|
2104
|
-
const i = n !== !0 &&
|
|
2105
|
-
return
|
|
2104
|
+
const i = n !== !0 && Ho(n), o = (i || e).reverse, s = !i || i.reset;
|
|
2105
|
+
return Ht({
|
|
2106
2106
|
...e,
|
|
2107
2107
|
loop: t,
|
|
2108
2108
|
// Avoid updating default props when looping.
|
|
@@ -2122,34 +2122,34 @@ function Jo(e, t = e.loop, r = e.to) {
|
|
|
2122
2122
|
});
|
|
2123
2123
|
}
|
|
2124
2124
|
}
|
|
2125
|
-
function
|
|
2126
|
-
const { to: t, from: r } = e =
|
|
2125
|
+
function Ht(e) {
|
|
2126
|
+
const { to: t, from: r } = e = Ho(e), n = /* @__PURE__ */ new Set();
|
|
2127
2127
|
return _.obj(t) && Ui(t, n), _.obj(r) && Ui(r, n), e.keys = n.size ? Array.from(n) : null, e;
|
|
2128
2128
|
}
|
|
2129
|
-
function
|
|
2130
|
-
const t =
|
|
2129
|
+
function Ic(e) {
|
|
2130
|
+
const t = Ht(e);
|
|
2131
2131
|
return _.und(t.default) && (t.default = Zn(t)), t;
|
|
2132
2132
|
}
|
|
2133
2133
|
function Ui(e, t) {
|
|
2134
|
-
|
|
2134
|
+
xe(e, (r, n) => r != null && t.add(n));
|
|
2135
2135
|
}
|
|
2136
|
-
var
|
|
2136
|
+
var Dc = [
|
|
2137
2137
|
"onStart",
|
|
2138
2138
|
"onRest",
|
|
2139
2139
|
"onChange",
|
|
2140
2140
|
"onPause",
|
|
2141
2141
|
"onResume"
|
|
2142
2142
|
];
|
|
2143
|
-
function
|
|
2144
|
-
e.animation[r] = t[r] !== qo(t, r) ?
|
|
2143
|
+
function Wi(e, t, r) {
|
|
2144
|
+
e.animation[r] = t[r] !== qo(t, r) ? Wo(t[r], e.key) : void 0;
|
|
2145
2145
|
}
|
|
2146
|
-
function
|
|
2146
|
+
function Ct(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
|
|
2150
|
+
var jc = ["onStart", "onChange", "onRest"], Vc = 1, $c = class {
|
|
2151
2151
|
constructor(e, t) {
|
|
2152
|
-
this.id =
|
|
2152
|
+
this.id = Vc++, 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,
|
|
2154
2154
|
pauseQueue: /* @__PURE__ */ new Set(),
|
|
2155
2155
|
resumeQueue: /* @__PURE__ */ new Set(),
|
|
@@ -2187,7 +2187,7 @@ var Dc = ["onStart", "onChange", "onRest"], jc = 1, Vc = 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(Ht(e)), this;
|
|
2191
2191
|
}
|
|
2192
2192
|
/**
|
|
2193
2193
|
* Start the queued animations for every spring, and resolve the returned
|
|
@@ -2198,13 +2198,13 @@ var Dc = ["onStart", "onChange", "onRest"], jc = 1, Vc = class {
|
|
|
2198
2198
|
*/
|
|
2199
2199
|
start(e) {
|
|
2200
2200
|
let { queue: t } = this;
|
|
2201
|
-
return e ? t =
|
|
2201
|
+
return e ? t = se(e).map(Ht) : this.queue = [], this._flush ? this._flush(this, t) : (is(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(se(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;
|
|
@@ -2215,7 +2215,7 @@ var Dc = ["onStart", "onChange", "onRest"], jc = 1, Vc = class {
|
|
|
2215
2215
|
this.start({ pause: !0 });
|
|
2216
2216
|
else {
|
|
2217
2217
|
const t = this.springs;
|
|
2218
|
-
T(
|
|
2218
|
+
T(se(e), (r) => t[r].pause());
|
|
2219
2219
|
}
|
|
2220
2220
|
return this;
|
|
2221
2221
|
}
|
|
@@ -2225,24 +2225,24 @@ var Dc = ["onStart", "onChange", "onRest"], jc = 1, Vc = class {
|
|
|
2225
2225
|
this.start({ pause: !1 });
|
|
2226
2226
|
else {
|
|
2227
2227
|
const t = this.springs;
|
|
2228
|
-
T(
|
|
2228
|
+
T(se(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, It(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 && It(t, ([a, u]) => {
|
|
2244
2244
|
u.value = s, a(u, this, this._item);
|
|
2245
|
-
}), o && (this._started = !1,
|
|
2245
|
+
}), o && (this._started = !1, It(r, ([a, u]) => {
|
|
2246
2246
|
u.value = s, a(u, this, this._item);
|
|
2247
2247
|
}));
|
|
2248
2248
|
}
|
|
@@ -2258,15 +2258,15 @@ var Dc = ["onStart", "onChange", "onRest"], jc = 1, Vc = class {
|
|
|
2258
2258
|
}
|
|
2259
2259
|
};
|
|
2260
2260
|
function _n(e, t) {
|
|
2261
|
-
return Promise.all(t.map((r) =>
|
|
2261
|
+
return Promise.all(t.map((r) => es(e, r))).then(
|
|
2262
2262
|
(r) => ei(e, r)
|
|
2263
2263
|
);
|
|
2264
2264
|
}
|
|
2265
|
-
async function
|
|
2265
|
+
async function es(e, t, r) {
|
|
2266
2266
|
const { keys: n, to: i, from: o, loop: s, onRest: a, onResolve: u } = t, l = _.obj(t.default) && t.default;
|
|
2267
2267
|
s && (t.loop = !1), i === !1 && (t.to = null), o === !1 && (t.from = null);
|
|
2268
2268
|
const f = _.arr(i) || _.fun(i) ? i : void 0;
|
|
2269
|
-
f ? (t.to = void 0, t.onRest = void 0, l && (l.onRest = void 0)) : T(
|
|
2269
|
+
f ? (t.to = void 0, t.onRest = void 0, l && (l.onRest = void 0)) : T(jc, (E) => {
|
|
2270
2270
|
const w = t[E];
|
|
2271
2271
|
if (_.fun(w)) {
|
|
2272
2272
|
const y = e._events[E];
|
|
@@ -2281,12 +2281,12 @@ async function Zo(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, Rt(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
2287
|
), p = t.cancel === !0 || qo(t, "cancel") === !0;
|
|
2288
2288
|
(f || p && d.asyncId) && h.push(
|
|
2289
|
-
|
|
2289
|
+
Yo(++e._lastAsyncId, {
|
|
2290
2290
|
props: t,
|
|
2291
2291
|
state: d,
|
|
2292
2292
|
actions: {
|
|
@@ -2294,7 +2294,7 @@ async function Zo(e, t, r) {
|
|
|
2294
2294
|
resume: mn,
|
|
2295
2295
|
start(E, w) {
|
|
2296
2296
|
p ? (qt(d, e._lastAsyncId), w(ut(e))) : (E.onRest = a, w(
|
|
2297
|
-
|
|
2297
|
+
Ko(
|
|
2298
2298
|
f,
|
|
2299
2299
|
E,
|
|
2300
2300
|
d,
|
|
@@ -2307,37 +2307,37 @@ async function Zo(e, t, r) {
|
|
|
2307
2307
|
), d.paused && await new Promise((E) => {
|
|
2308
2308
|
d.resumeQueue.add(E);
|
|
2309
2309
|
});
|
|
2310
|
-
const
|
|
2311
|
-
if (s &&
|
|
2312
|
-
const E =
|
|
2310
|
+
const g = ei(e, await Promise.all(h));
|
|
2311
|
+
if (s && g.finished && !(r && g.noop)) {
|
|
2312
|
+
const E = Zo(t, s, i);
|
|
2313
2313
|
if (E)
|
|
2314
|
-
return
|
|
2314
|
+
return is(e, [E]), es(e, E, !0);
|
|
2315
2315
|
}
|
|
2316
|
-
return u && C.batchedUpdates(() => u(
|
|
2316
|
+
return u && C.batchedUpdates(() => u(g, e, e.item)), g;
|
|
2317
2317
|
}
|
|
2318
|
-
function
|
|
2318
|
+
function qi(e, t) {
|
|
2319
2319
|
const r = { ...e.springs };
|
|
2320
|
-
return t && T(
|
|
2321
|
-
_.und(n.keys) && (n =
|
|
2322
|
-
}),
|
|
2320
|
+
return t && T(se(t), (n) => {
|
|
2321
|
+
_.und(n.keys) && (n = Ht(n)), _.obj(n.to) || (n = { ...n, to: void 0 }), ns(r, n, (i) => rs(i));
|
|
2322
|
+
}), ts(e, r), r;
|
|
2323
2323
|
}
|
|
2324
|
-
function
|
|
2325
|
-
|
|
2326
|
-
e.springs[n] || (e.springs[n] = r,
|
|
2324
|
+
function ts(e, t) {
|
|
2325
|
+
xe(t, (r, n) => {
|
|
2326
|
+
e.springs[n] || (e.springs[n] = r, bt(r, e));
|
|
2327
2327
|
});
|
|
2328
2328
|
}
|
|
2329
|
-
function
|
|
2330
|
-
const r = new
|
|
2331
|
-
return r.key = e, t &&
|
|
2329
|
+
function rs(e, t) {
|
|
2330
|
+
const r = new Tc();
|
|
2331
|
+
return r.key = e, t && bt(r, t), r;
|
|
2332
2332
|
}
|
|
2333
|
-
function
|
|
2333
|
+
function ns(e, t, r) {
|
|
2334
2334
|
t.keys && T(t.keys, (n) => {
|
|
2335
2335
|
(e[n] || (e[n] = r(n)))._prepareNode(t);
|
|
2336
2336
|
});
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2338
|
+
function is(e, t) {
|
|
2339
2339
|
T(t, (r) => {
|
|
2340
|
-
|
|
2340
|
+
ns(e.springs, r, (n) => rs(n, e));
|
|
2341
2341
|
});
|
|
2342
2342
|
}
|
|
2343
2343
|
var Mr = ({
|
|
@@ -2345,18 +2345,18 @@ var Mr = ({
|
|
|
2345
2345
|
...t
|
|
2346
2346
|
}) => {
|
|
2347
2347
|
const r = Ln(_r), n = t.pause || !!r.pause, i = t.immediate || !!r.immediate;
|
|
2348
|
-
t =
|
|
2348
|
+
t = fc(() => ({ pause: n, immediate: i }), [n, i]);
|
|
2349
2349
|
const { Provider: o } = _r;
|
|
2350
2350
|
return /* @__PURE__ */ Fn.createElement(o, { value: t }, e);
|
|
2351
|
-
}, _r =
|
|
2351
|
+
}, _r = Mc(Mr, {});
|
|
2352
2352
|
Mr.Provider = _r.Provider;
|
|
2353
2353
|
Mr.Consumer = _r.Consumer;
|
|
2354
|
-
function
|
|
2354
|
+
function Mc(e, t) {
|
|
2355
2355
|
return Object.assign(e, Fn.createContext(t)), e.Provider._context = e, e.Consumer._context = e, e;
|
|
2356
2356
|
}
|
|
2357
|
-
var
|
|
2357
|
+
var zc = () => {
|
|
2358
2358
|
const e = [], t = function(n) {
|
|
2359
|
-
|
|
2359
|
+
uc();
|
|
2360
2360
|
const i = [];
|
|
2361
2361
|
return T(e, (o, s) => {
|
|
2362
2362
|
if (_.und(n))
|
|
@@ -2401,75 +2401,75 @@ var Mc = () => {
|
|
|
2401
2401
|
};
|
|
2402
2402
|
return t._getProps = r, t;
|
|
2403
2403
|
};
|
|
2404
|
-
function
|
|
2404
|
+
function Fc(e, t, r) {
|
|
2405
2405
|
const n = _.fun(t) && t;
|
|
2406
2406
|
n && !r && (r = []);
|
|
2407
2407
|
const i = rr(
|
|
2408
|
-
() => n || arguments.length == 3 ?
|
|
2408
|
+
() => n || arguments.length == 3 ? zc() : void 0,
|
|
2409
2409
|
[]
|
|
2410
|
-
), o =
|
|
2410
|
+
), o = Se(0), s = Fo(), a = rr(
|
|
2411
2411
|
() => ({
|
|
2412
2412
|
ctrls: [],
|
|
2413
2413
|
queue: [],
|
|
2414
2414
|
flush(y, b) {
|
|
2415
|
-
const m =
|
|
2415
|
+
const m = qi(y, b);
|
|
2416
2416
|
return o.current > 0 && !a.queue.length && !Object.keys(m).some((O) => !y.springs[O]) ? _n(y, b) : new Promise((O) => {
|
|
2417
|
-
|
|
2417
|
+
ts(y, m), a.queue.push(() => {
|
|
2418
2418
|
O(_n(y, b));
|
|
2419
2419
|
}), s();
|
|
2420
2420
|
});
|
|
2421
2421
|
}
|
|
2422
2422
|
}),
|
|
2423
2423
|
[]
|
|
2424
|
-
), u =
|
|
2424
|
+
), u = Se([...a.ctrls]), l = [], f = Ii(e) || 0;
|
|
2425
2425
|
rr(() => {
|
|
2426
2426
|
T(u.current.slice(e, f), (y) => {
|
|
2427
|
-
|
|
2427
|
+
kc(y, i), y.stop(!0);
|
|
2428
2428
|
}), u.current.length = e, d(f, e);
|
|
2429
2429
|
}, [e]), rr(() => {
|
|
2430
2430
|
d(0, Math.min(f, e));
|
|
2431
2431
|
}, r);
|
|
2432
2432
|
function d(y, b) {
|
|
2433
2433
|
for (let m = y; m < b; m++) {
|
|
2434
|
-
const S = u.current[m] || (u.current[m] = new
|
|
2435
|
-
O && (l[m] =
|
|
2434
|
+
const S = u.current[m] || (u.current[m] = new $c(null, a.flush)), O = n ? n(m, S) : t[m];
|
|
2435
|
+
O && (l[m] = Ic(O));
|
|
2436
2436
|
}
|
|
2437
2437
|
}
|
|
2438
|
-
const h = u.current.map((y, b) =>
|
|
2438
|
+
const h = u.current.map((y, b) => qi(y, l[b])), p = Ln(Mr), g = Ii(p), E = p !== g && xc(p);
|
|
2439
2439
|
Xn(() => {
|
|
2440
2440
|
o.current++, a.ctrls = u.current;
|
|
2441
2441
|
const { queue: y } = a;
|
|
2442
2442
|
y.length && (a.queue = [], T(y, (b) => b())), T(u.current, (b, m) => {
|
|
2443
2443
|
i == null || i.add(b), E && b.start({ default: p });
|
|
2444
2444
|
const S = l[m];
|
|
2445
|
-
S && (
|
|
2445
|
+
S && (Oc(b, S.ref), b.ref ? b.queue.push(S) : b.start(S));
|
|
2446
2446
|
});
|
|
2447
|
-
}),
|
|
2447
|
+
}), Lo(() => () => {
|
|
2448
2448
|
T(a.ctrls, (y) => y.stop(!0));
|
|
2449
2449
|
});
|
|
2450
2450
|
const w = h.map((y) => ({ ...y }));
|
|
2451
2451
|
return i ? [w, i] : w;
|
|
2452
2452
|
}
|
|
2453
|
-
function
|
|
2454
|
-
const r = _.fun(e), [[n], i] =
|
|
2453
|
+
function os(e, t) {
|
|
2454
|
+
const r = _.fun(e), [[n], i] = Fc(
|
|
2455
2455
|
1,
|
|
2456
2456
|
r ? e : [e],
|
|
2457
2457
|
r ? [] : t
|
|
2458
2458
|
);
|
|
2459
2459
|
return r || arguments.length == 2 ? [n, i] : n;
|
|
2460
2460
|
}
|
|
2461
|
-
var
|
|
2461
|
+
var Lc = class extends ti {
|
|
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 = Mt(...t);
|
|
2464
2464
|
const r = this._get(), n = gn(r);
|
|
2465
2465
|
Jn(this, n.create(r));
|
|
2466
2466
|
}
|
|
2467
2467
|
advance(e) {
|
|
2468
2468
|
const t = this._get(), r = this.get();
|
|
2469
|
-
|
|
2469
|
+
Oe(t, r) || (_e(this).setValue(t), this._onChange(t, this.idle)), !this.idle && Hi(this._active) && on(this);
|
|
2470
2470
|
}
|
|
2471
2471
|
_get() {
|
|
2472
|
-
const e = _.arr(this.source) ? this.source.map(
|
|
2472
|
+
const e = _.arr(this.source) ? this.source.map(te) : se(te(this.source));
|
|
2473
2473
|
return this.calc(...e);
|
|
2474
2474
|
}
|
|
2475
2475
|
_start() {
|
|
@@ -2480,48 +2480,48 @@ var Fc = class extends ti {
|
|
|
2480
2480
|
// Observe our sources only when we're observed.
|
|
2481
2481
|
_attach() {
|
|
2482
2482
|
let e = 1;
|
|
2483
|
-
T(
|
|
2484
|
-
|
|
2483
|
+
T(se(this.source), (t) => {
|
|
2484
|
+
fe(t) && bt(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(se(this.source), (e) => {
|
|
2490
|
+
fe(e) && Lt(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 = se(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 Bc(e) {
|
|
2502
2502
|
return e.idle !== !1;
|
|
2503
2503
|
}
|
|
2504
2504
|
function Hi(e) {
|
|
2505
|
-
return !e.size || Array.from(e).every(
|
|
2505
|
+
return !e.size || Array.from(e).every(Bc);
|
|
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
|
+
}), Ft(e, {
|
|
2511
2511
|
type: "idle",
|
|
2512
2512
|
parent: e
|
|
2513
2513
|
}));
|
|
2514
2514
|
}
|
|
2515
2515
|
we.assign({
|
|
2516
|
-
createStringInterpolator:
|
|
2517
|
-
to: (e, t) => new
|
|
2516
|
+
createStringInterpolator: Mo,
|
|
2517
|
+
to: (e, t) => new Lc(e, t)
|
|
2518
2518
|
});
|
|
2519
|
-
var
|
|
2520
|
-
function
|
|
2521
|
-
return t == null || typeof t == "boolean" || t === "" ? "" : typeof t == "number" && t !== 0 && !
|
|
2519
|
+
var ss = /^--/;
|
|
2520
|
+
function Uc(e, t) {
|
|
2521
|
+
return t == null || typeof t == "boolean" || t === "" ? "" : typeof t == "number" && t !== 0 && !ss.test(e) && !(Vt.hasOwnProperty(e) && Vt[e]) ? t + "px" : ("" + t).trim();
|
|
2522
2522
|
}
|
|
2523
2523
|
var Yi = {};
|
|
2524
|
-
function
|
|
2524
|
+
function Wc(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 Uc(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 =
|
|
2546
|
-
|
|
2545
|
+
const p = Uc(h, i[h]);
|
|
2546
|
+
ss.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 Vt = {
|
|
2553
2553
|
animationIterationCount: !0,
|
|
2554
2554
|
borderImageOutset: !0,
|
|
2555
2555
|
borderImageSlice: !0,
|
|
@@ -2592,23 +2592,23 @@ var jt = {
|
|
|
2592
2592
|
strokeMiterlimit: !0,
|
|
2593
2593
|
strokeOpacity: !0,
|
|
2594
2594
|
strokeWidth: !0
|
|
2595
|
-
}, qc = (e, t) => e + t.charAt(0).toUpperCase() + t.substring(1),
|
|
2596
|
-
|
|
2597
|
-
var
|
|
2595
|
+
}, qc = (e, t) => e + t.charAt(0).toUpperCase() + t.substring(1), Hc = ["Webkit", "Ms", "Moz", "O"];
|
|
2596
|
+
Vt = Object.keys(Vt).reduce((e, t) => (Hc.forEach((r) => e[qc(r, t)] = e[t]), e), Vt);
|
|
2597
|
+
var Yc = /^(matrix|translate|scale|rotate|skew)/, Gc = /^(translate)/, Kc = /^(rotate|skew)/, sn = (e, t) => _.num(e) && e !== 0 ? e + t : e, dr = (e, t) => _.arr(e) ? e.every((r) => dr(r, t)) : _.num(e) ? e === t : parseFloat(e) === t, Qc = 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
|
dr(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 (Yc.test(a)) {
|
|
2608
2608
|
if (delete n[a], _.und(s))
|
|
2609
2609
|
return;
|
|
2610
|
-
const u =
|
|
2611
|
-
i.push(
|
|
2610
|
+
const u = Gc.test(a) ? "px" : Kc.test(a) ? "deg" : "";
|
|
2611
|
+
i.push(se(s)), o.push(
|
|
2612
2612
|
a === "rotate3d" ? ([l, f, d, h]) => [
|
|
2613
2613
|
`rotate3d(${l},${f},${d},${sn(h, u)})`,
|
|
2614
2614
|
dr(h, 0)
|
|
@@ -2618,9 +2618,9 @@ var Hc = /^(matrix|translate|scale|rotate|skew)/, Yc = /^(translate)/, Gc = /^(r
|
|
|
2618
2618
|
]
|
|
2619
2619
|
);
|
|
2620
2620
|
}
|
|
2621
|
-
}), i.length && (n.transform = new
|
|
2621
|
+
}), i.length && (n.transform = new Xc(i, o)), super(n);
|
|
2622
2622
|
}
|
|
2623
|
-
},
|
|
2623
|
+
}, Xc = class extends jo {
|
|
2624
2624
|
constructor(e, t) {
|
|
2625
2625
|
super(), this.inputs = e, this.transforms = t, this._value = null;
|
|
2626
2626
|
}
|
|
@@ -2630,8 +2630,8 @@ var Hc = /^(matrix|translate|scale|rotate|skew)/, Yc = /^(translate)/, Gc = /^(r
|
|
|
2630
2630
|
_get() {
|
|
2631
2631
|
let e = "", t = !0;
|
|
2632
2632
|
return T(this.inputs, (r, n) => {
|
|
2633
|
-
const i =
|
|
2634
|
-
_.arr(i) ? i : r.map(
|
|
2633
|
+
const i = te(r[0]), [o, s] = this.transforms[n](
|
|
2634
|
+
_.arr(i) ? i : r.map(te)
|
|
2635
2635
|
);
|
|
2636
2636
|
e += " " + o, t = t && s;
|
|
2637
2637
|
}), t ? "none" : e;
|
|
@@ -2642,7 +2642,7 @@ var Hc = /^(matrix|translate|scale|rotate|skew)/, Yc = /^(translate)/, Gc = /^(r
|
|
|
2642
2642
|
this.inputs,
|
|
2643
2643
|
(t) => T(
|
|
2644
2644
|
t,
|
|
2645
|
-
(r) =>
|
|
2645
|
+
(r) => fe(r) && bt(r, this)
|
|
2646
2646
|
)
|
|
2647
2647
|
);
|
|
2648
2648
|
}
|
|
@@ -2652,14 +2652,14 @@ var Hc = /^(matrix|translate|scale|rotate|skew)/, Yc = /^(translate)/, Gc = /^(r
|
|
|
2652
2652
|
this.inputs,
|
|
2653
2653
|
(t) => T(
|
|
2654
2654
|
t,
|
|
2655
|
-
(r) =>
|
|
2655
|
+
(r) => fe(r) && Lt(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), Ft(this, e);
|
|
2661
2661
|
}
|
|
2662
|
-
},
|
|
2662
|
+
}, Jc = [
|
|
2663
2663
|
"a",
|
|
2664
2664
|
"abbr",
|
|
2665
2665
|
"address",
|
|
@@ -2796,17 +2796,17 @@ var Hc = /^(matrix|translate|scale|rotate|skew)/, Yc = /^(translate)/, Gc = /^(r
|
|
|
2796
2796
|
"tspan"
|
|
2797
2797
|
];
|
|
2798
2798
|
we.assign({
|
|
2799
|
-
batchedUpdates:
|
|
2800
|
-
createStringInterpolator:
|
|
2801
|
-
colors:
|
|
2799
|
+
batchedUpdates: Ra,
|
|
2800
|
+
createStringInterpolator: Mo,
|
|
2801
|
+
colors: La
|
|
2802
2802
|
});
|
|
2803
|
-
var
|
|
2804
|
-
applyAnimatedValues:
|
|
2805
|
-
createAnimatedStyle: (e) => new
|
|
2803
|
+
var Zc = bc(Jc, {
|
|
2804
|
+
applyAnimatedValues: Wc,
|
|
2805
|
+
createAnimatedStyle: (e) => new Qc(e),
|
|
2806
2806
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2807
2807
|
getComponentProps: ({ scrollTop: e, scrollLeft: t, ...r }) => r
|
|
2808
|
-
}),
|
|
2809
|
-
function
|
|
2808
|
+
}), as = Zc.animated;
|
|
2809
|
+
function cs({
|
|
2810
2810
|
animate: e = !0,
|
|
2811
2811
|
content: t,
|
|
2812
2812
|
textStyles: r,
|
|
@@ -2814,60 +2814,68 @@ function Zc({
|
|
|
2814
2814
|
fadeIn: i,
|
|
2815
2815
|
characterPreference: o = "simplified"
|
|
2816
2816
|
}) {
|
|
2817
|
-
const s = n ?? "div", [a, u] =
|
|
2817
|
+
const s = n ?? "div", [a, u] = lt(!1), [l, f] = lt(void 0), d = Se(null), [h, p] = os(() => ({
|
|
2818
2818
|
opacity: i ? 0 : 1,
|
|
2819
2819
|
transform: i ? "scale(0)" : "scale(1)",
|
|
2820
2820
|
config: { duration: 200 }
|
|
2821
|
-
})),
|
|
2822
|
-
|
|
2821
|
+
})), g = Se(e);
|
|
2822
|
+
ko(() => {
|
|
2823
|
+
if (!d.current) return;
|
|
2824
|
+
const G = d.current, U = G.textContent, X = [t.english, t.simplified, t.traditional];
|
|
2825
|
+
let B = 0;
|
|
2826
|
+
X.forEach((oe) => {
|
|
2827
|
+
G.textContent = oe, B = Math.max(B, G.offsetWidth);
|
|
2828
|
+
}), G.textContent = U, f(B);
|
|
2829
|
+
}, [t.english, t.simplified, t.traditional]), vt(() => {
|
|
2823
2830
|
if (!e) {
|
|
2824
|
-
|
|
2831
|
+
g.current = e;
|
|
2825
2832
|
return;
|
|
2826
2833
|
}
|
|
2827
|
-
const
|
|
2828
|
-
|
|
2829
|
-
const
|
|
2830
|
-
|
|
2834
|
+
const G = !g.current && e;
|
|
2835
|
+
g.current = e;
|
|
2836
|
+
const U = G ? 500 : Math.floor(Math.random() * 11501) + 3500, X = setTimeout(() => {
|
|
2837
|
+
p.start({
|
|
2831
2838
|
opacity: 0,
|
|
2832
2839
|
transform: "translateY(15px)",
|
|
2833
2840
|
onRest: () => {
|
|
2834
|
-
u((
|
|
2841
|
+
u((B) => !B), p.start({ opacity: 1, transform: "translateY(0px)" });
|
|
2835
2842
|
}
|
|
2836
2843
|
});
|
|
2837
|
-
},
|
|
2838
|
-
return () => clearTimeout(
|
|
2839
|
-
}, [a, e,
|
|
2840
|
-
const
|
|
2841
|
-
fontSize:
|
|
2842
|
-
fontFamily:
|
|
2843
|
-
fontWeight:
|
|
2844
|
-
fontStyle:
|
|
2845
|
-
letterSpacing:
|
|
2846
|
-
lineHeight:
|
|
2847
|
-
...
|
|
2848
|
-
} = r || {},
|
|
2849
|
-
...
|
|
2844
|
+
}, U);
|
|
2845
|
+
return () => clearTimeout(X);
|
|
2846
|
+
}, [a, e, p]);
|
|
2847
|
+
const E = o === "traditional" ? t.traditional : t.simplified, w = e && a ? E : t.english, {
|
|
2848
|
+
fontSize: y,
|
|
2849
|
+
fontFamily: b,
|
|
2850
|
+
fontWeight: m,
|
|
2851
|
+
fontStyle: S,
|
|
2852
|
+
letterSpacing: O,
|
|
2853
|
+
lineHeight: P,
|
|
2854
|
+
...k
|
|
2855
|
+
} = r || {}, M = {
|
|
2856
|
+
...k,
|
|
2850
2857
|
...{
|
|
2851
|
-
fontSize:
|
|
2852
|
-
fontFamily:
|
|
2853
|
-
fontWeight:
|
|
2854
|
-
fontStyle:
|
|
2855
|
-
letterSpacing:
|
|
2856
|
-
lineHeight:
|
|
2858
|
+
fontSize: y,
|
|
2859
|
+
fontFamily: b,
|
|
2860
|
+
fontWeight: m,
|
|
2861
|
+
fontStyle: S,
|
|
2862
|
+
letterSpacing: O,
|
|
2863
|
+
lineHeight: P
|
|
2857
2864
|
},
|
|
2858
2865
|
display: "inline-block",
|
|
2859
|
-
alignContent: "center"
|
|
2866
|
+
alignContent: "center",
|
|
2867
|
+
minWidth: l !== void 0 ? `${l}px` : void 0
|
|
2860
2868
|
};
|
|
2861
|
-
return /* @__PURE__ */
|
|
2869
|
+
return /* @__PURE__ */ j.jsx(as.div, { style: h, children: /* @__PURE__ */ j.jsx(s, { style: M, children: /* @__PURE__ */ j.jsx("span", { ref: d, children: w }) }) });
|
|
2862
2870
|
}
|
|
2863
|
-
var
|
|
2864
|
-
return
|
|
2871
|
+
var ne = function() {
|
|
2872
|
+
return ne = Object.assign || function(t) {
|
|
2865
2873
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
2866
2874
|
r = arguments[n];
|
|
2867
2875
|
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
2868
2876
|
}
|
|
2869
2877
|
return t;
|
|
2870
|
-
},
|
|
2878
|
+
}, ne.apply(this, arguments);
|
|
2871
2879
|
};
|
|
2872
2880
|
function Qe(e, t, r) {
|
|
2873
2881
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
@@ -2885,14 +2893,14 @@ var tu = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
2885
2893
|
return tu.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
2886
2894
|
}
|
|
2887
2895
|
/* Z+1 */
|
|
2888
|
-
), F = "-ms-",
|
|
2896
|
+
), F = "-ms-", $t = "-moz-", $ = "-webkit-", us = "comm", zr = "rule", ri = "decl", nu = "@import", ls = "@keyframes", iu = "@layer", fs = Math.abs, ni = String.fromCharCode, En = Object.assign;
|
|
2889
2897
|
function ou(e, t) {
|
|
2890
|
-
return
|
|
2898
|
+
return K(e, 0) ^ 45 ? (((t << 2 ^ K(e, 0)) << 2 ^ K(e, 1)) << 2 ^ K(e, 2)) << 2 ^ K(e, 3) : 0;
|
|
2891
2899
|
}
|
|
2892
|
-
function
|
|
2900
|
+
function ds(e) {
|
|
2893
2901
|
return e.trim();
|
|
2894
2902
|
}
|
|
2895
|
-
function
|
|
2903
|
+
function Pe(e, t) {
|
|
2896
2904
|
return (e = t.exec(e)) ? e[0] : e;
|
|
2897
2905
|
}
|
|
2898
2906
|
function R(e, t, r) {
|
|
@@ -2901,19 +2909,19 @@ function R(e, t, r) {
|
|
|
2901
2909
|
function hr(e, t, r) {
|
|
2902
2910
|
return e.indexOf(t, r);
|
|
2903
2911
|
}
|
|
2904
|
-
function
|
|
2912
|
+
function K(e, t) {
|
|
2905
2913
|
return e.charCodeAt(t) | 0;
|
|
2906
2914
|
}
|
|
2907
|
-
function
|
|
2915
|
+
function dt(e, t, r) {
|
|
2908
2916
|
return e.slice(t, r);
|
|
2909
2917
|
}
|
|
2910
2918
|
function Ee(e) {
|
|
2911
2919
|
return e.length;
|
|
2912
2920
|
}
|
|
2913
|
-
function
|
|
2921
|
+
function hs(e) {
|
|
2914
2922
|
return e.length;
|
|
2915
2923
|
}
|
|
2916
|
-
function
|
|
2924
|
+
function At(e, t) {
|
|
2917
2925
|
return t.push(e), e;
|
|
2918
2926
|
}
|
|
2919
2927
|
function su(e, t) {
|
|
@@ -2921,12 +2929,12 @@ function su(e, t) {
|
|
|
2921
2929
|
}
|
|
2922
2930
|
function Gi(e, t) {
|
|
2923
2931
|
return e.filter(function(r) {
|
|
2924
|
-
return !
|
|
2932
|
+
return !Pe(r, t);
|
|
2925
2933
|
});
|
|
2926
2934
|
}
|
|
2927
|
-
var Fr = 1,
|
|
2935
|
+
var Fr = 1, ht = 1, ps = 0, he = 0, Y = 0, wt = "";
|
|
2928
2936
|
function Lr(e, t, r, n, i, o, s, a) {
|
|
2929
|
-
return { value: e, root: t, parent: r, type: n, props: i, children: o, line: Fr, column:
|
|
2937
|
+
return { value: e, root: t, parent: r, type: n, props: i, children: o, line: Fr, column: ht, length: s, return: "", siblings: a };
|
|
2930
2938
|
}
|
|
2931
2939
|
function De(e, t) {
|
|
2932
2940
|
return En(Lr("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
@@ -2934,25 +2942,25 @@ function De(e, t) {
|
|
|
2934
2942
|
function at(e) {
|
|
2935
2943
|
for (; e.root; )
|
|
2936
2944
|
e = De(e.root, { children: [e] });
|
|
2937
|
-
|
|
2945
|
+
At(e, e.siblings);
|
|
2938
2946
|
}
|
|
2939
2947
|
function au() {
|
|
2940
|
-
return
|
|
2948
|
+
return Y;
|
|
2941
2949
|
}
|
|
2942
2950
|
function cu() {
|
|
2943
|
-
return
|
|
2951
|
+
return Y = he > 0 ? K(wt, --he) : 0, ht--, Y === 10 && (ht = 1, Fr--), Y;
|
|
2944
2952
|
}
|
|
2945
2953
|
function be() {
|
|
2946
|
-
return
|
|
2954
|
+
return Y = he < ps ? K(wt, he++) : 0, ht++, Y === 10 && (ht = 1, Fr++), Y;
|
|
2947
2955
|
}
|
|
2948
2956
|
function He() {
|
|
2949
|
-
return
|
|
2957
|
+
return K(wt, he);
|
|
2950
2958
|
}
|
|
2951
2959
|
function pr() {
|
|
2952
|
-
return
|
|
2960
|
+
return he;
|
|
2953
2961
|
}
|
|
2954
2962
|
function Br(e, t) {
|
|
2955
|
-
return
|
|
2963
|
+
return dt(wt, e, t);
|
|
2956
2964
|
}
|
|
2957
2965
|
function Sn(e) {
|
|
2958
2966
|
switch (e) {
|
|
@@ -2993,34 +3001,34 @@ function Sn(e) {
|
|
|
2993
3001
|
return 0;
|
|
2994
3002
|
}
|
|
2995
3003
|
function uu(e) {
|
|
2996
|
-
return Fr =
|
|
3004
|
+
return Fr = ht = 1, ps = Ee(wt = e), he = 0, [];
|
|
2997
3005
|
}
|
|
2998
3006
|
function lu(e) {
|
|
2999
|
-
return
|
|
3007
|
+
return wt = "", e;
|
|
3000
3008
|
}
|
|
3001
3009
|
function an(e) {
|
|
3002
|
-
return
|
|
3010
|
+
return ds(Br(he - 1, xn(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
3003
3011
|
}
|
|
3004
3012
|
function fu(e) {
|
|
3005
|
-
for (; (
|
|
3013
|
+
for (; (Y = He()) && Y < 33; )
|
|
3006
3014
|
be();
|
|
3007
|
-
return Sn(e) > 2 || Sn(
|
|
3015
|
+
return Sn(e) > 2 || Sn(Y) > 3 ? "" : " ";
|
|
3008
3016
|
}
|
|
3009
3017
|
function du(e, t) {
|
|
3010
|
-
for (; --t && be() && !(
|
|
3018
|
+
for (; --t && be() && !(Y < 48 || Y > 102 || Y > 57 && Y < 65 || Y > 70 && Y < 97); )
|
|
3011
3019
|
;
|
|
3012
3020
|
return Br(e, pr() + (t < 6 && He() == 32 && be() == 32));
|
|
3013
3021
|
}
|
|
3014
3022
|
function xn(e) {
|
|
3015
3023
|
for (; be(); )
|
|
3016
|
-
switch (
|
|
3024
|
+
switch (Y) {
|
|
3017
3025
|
// ] ) " '
|
|
3018
3026
|
case e:
|
|
3019
|
-
return
|
|
3027
|
+
return he;
|
|
3020
3028
|
// " '
|
|
3021
3029
|
case 34:
|
|
3022
3030
|
case 39:
|
|
3023
|
-
e !== 34 && e !== 39 && xn(
|
|
3031
|
+
e !== 34 && e !== 39 && xn(Y);
|
|
3024
3032
|
break;
|
|
3025
3033
|
// (
|
|
3026
3034
|
case 40:
|
|
@@ -3031,29 +3039,29 @@ function xn(e) {
|
|
|
3031
3039
|
be();
|
|
3032
3040
|
break;
|
|
3033
3041
|
}
|
|
3034
|
-
return
|
|
3042
|
+
return he;
|
|
3035
3043
|
}
|
|
3036
3044
|
function hu(e, t) {
|
|
3037
|
-
for (; be() && e +
|
|
3038
|
-
if (e +
|
|
3045
|
+
for (; be() && e + Y !== 57; )
|
|
3046
|
+
if (e + Y === 84 && He() === 47)
|
|
3039
3047
|
break;
|
|
3040
|
-
return "/*" + Br(t,
|
|
3048
|
+
return "/*" + Br(t, he - 1) + "*" + ni(e === 47 ? e : be());
|
|
3041
3049
|
}
|
|
3042
3050
|
function pu(e) {
|
|
3043
3051
|
for (; !Sn(He()); )
|
|
3044
3052
|
be();
|
|
3045
|
-
return Br(e,
|
|
3053
|
+
return Br(e, he);
|
|
3046
3054
|
}
|
|
3047
3055
|
function mu(e) {
|
|
3048
3056
|
return lu(mr("", null, null, null, [""], e = uu(e), 0, [0], e));
|
|
3049
3057
|
}
|
|
3050
3058
|
function mr(e, t, r, n, i, o, s, a, u) {
|
|
3051
|
-
for (var l = 0, f = 0, d = s, h = 0, p = 0,
|
|
3052
|
-
switch (
|
|
3059
|
+
for (var l = 0, f = 0, d = s, h = 0, p = 0, g = 0, E = 1, w = 1, y = 1, b = 0, m = "", S = i, O = o, P = n, k = m; w; )
|
|
3060
|
+
switch (g = b, b = be()) {
|
|
3053
3061
|
// (
|
|
3054
3062
|
case 40:
|
|
3055
|
-
if (
|
|
3056
|
-
hr(k += R(an(b), "&", "&\f"), "&\f",
|
|
3063
|
+
if (g != 108 && K(k, d - 1) == 58) {
|
|
3064
|
+
hr(k += R(an(b), "&", "&\f"), "&\f", fs(l ? a[l - 1] : 0)) != -1 && (y = -1);
|
|
3057
3065
|
break;
|
|
3058
3066
|
}
|
|
3059
3067
|
// " ' [
|
|
@@ -3067,7 +3075,7 @@ function mr(e, t, r, n, i, o, s, a, u) {
|
|
|
3067
3075
|
case 10:
|
|
3068
3076
|
case 13:
|
|
3069
3077
|
case 32:
|
|
3070
|
-
k += fu(
|
|
3078
|
+
k += fu(g);
|
|
3071
3079
|
break;
|
|
3072
3080
|
// \
|
|
3073
3081
|
case 92:
|
|
@@ -3078,7 +3086,7 @@ function mr(e, t, r, n, i, o, s, a, u) {
|
|
|
3078
3086
|
switch (He()) {
|
|
3079
3087
|
case 42:
|
|
3080
3088
|
case 47:
|
|
3081
|
-
|
|
3089
|
+
At(yu(hu(be(), pr()), t, r, u), u);
|
|
3082
3090
|
break;
|
|
3083
3091
|
default:
|
|
3084
3092
|
k += "/";
|
|
@@ -3098,24 +3106,24 @@ function mr(e, t, r, n, i, o, s, a, u) {
|
|
|
3098
3106
|
w = 0;
|
|
3099
3107
|
// ;
|
|
3100
3108
|
case 59 + f:
|
|
3101
|
-
y == -1 && (k = R(k, /\f/g, "")), p > 0 && Ee(k) - d &&
|
|
3109
|
+
y == -1 && (k = R(k, /\f/g, "")), p > 0 && Ee(k) - d && At(p > 32 ? Qi(k + ";", n, r, d - 1, u) : Qi(R(k, " ", "") + ";", n, r, d - 2, u), u);
|
|
3102
3110
|
break;
|
|
3103
3111
|
// @ ;
|
|
3104
3112
|
case 59:
|
|
3105
3113
|
k += ";";
|
|
3106
3114
|
// { rule/at-rule
|
|
3107
3115
|
default:
|
|
3108
|
-
if (
|
|
3116
|
+
if (At(P = Ki(k, t, r, l, f, i, a, m, S = [], O = [], d, o), o), b === 123)
|
|
3109
3117
|
if (f === 0)
|
|
3110
3118
|
mr(k, t, P, P, S, o, d, a, O);
|
|
3111
3119
|
else
|
|
3112
|
-
switch (h === 99 &&
|
|
3120
|
+
switch (h === 99 && K(k, 3) === 110 ? 100 : h) {
|
|
3113
3121
|
// d l m s
|
|
3114
3122
|
case 100:
|
|
3115
3123
|
case 108:
|
|
3116
3124
|
case 109:
|
|
3117
3125
|
case 115:
|
|
3118
|
-
mr(e, P, P, n &&
|
|
3126
|
+
mr(e, P, P, n && At(Ki(e, P, P, 0, 0, i, a, m, i, S = [], d, O), O), i, O, d, a, n ? S : O);
|
|
3119
3127
|
break;
|
|
3120
3128
|
default:
|
|
3121
3129
|
mr(k, P, P, P, [""], O, 0, a, O);
|
|
@@ -3125,7 +3133,7 @@ function mr(e, t, r, n, i, o, s, a, u) {
|
|
|
3125
3133
|
break;
|
|
3126
3134
|
// :
|
|
3127
3135
|
case 58:
|
|
3128
|
-
d = 1 + Ee(k), p =
|
|
3136
|
+
d = 1 + Ee(k), p = g;
|
|
3129
3137
|
default:
|
|
3130
3138
|
if (E < 1) {
|
|
3131
3139
|
if (b == 123)
|
|
@@ -3148,28 +3156,28 @@ function mr(e, t, r, n, i, o, s, a, u) {
|
|
|
3148
3156
|
break;
|
|
3149
3157
|
// -
|
|
3150
3158
|
case 45:
|
|
3151
|
-
|
|
3159
|
+
g === 45 && Ee(k) == 2 && (E = 0);
|
|
3152
3160
|
}
|
|
3153
3161
|
}
|
|
3154
3162
|
return o;
|
|
3155
3163
|
}
|
|
3156
3164
|
function Ki(e, t, r, n, i, o, s, a, u, l, f, d) {
|
|
3157
|
-
for (var h = i - 1, p = i === 0 ? o : [""],
|
|
3158
|
-
for (var b = 0, m =
|
|
3159
|
-
(S =
|
|
3165
|
+
for (var h = i - 1, p = i === 0 ? o : [""], g = hs(p), E = 0, w = 0, y = 0; E < n; ++E)
|
|
3166
|
+
for (var b = 0, m = dt(e, h + 1, h = fs(w = s[E])), S = e; b < g; ++b)
|
|
3167
|
+
(S = ds(w > 0 ? p[b] + " " + m : R(m, /&\f/g, p[b]))) && (u[y++] = S);
|
|
3160
3168
|
return Lr(e, t, r, i === 0 ? zr : a, u, l, f, d);
|
|
3161
3169
|
}
|
|
3162
3170
|
function yu(e, t, r, n) {
|
|
3163
|
-
return Lr(e, t, r,
|
|
3171
|
+
return Lr(e, t, r, us, ni(au()), dt(e, 2, -2), 0, n);
|
|
3164
3172
|
}
|
|
3165
3173
|
function Qi(e, t, r, n, i) {
|
|
3166
|
-
return Lr(e, t, r, ri,
|
|
3174
|
+
return Lr(e, t, r, ri, dt(e, 0, n), dt(e, n + 1, -1), n, i);
|
|
3167
3175
|
}
|
|
3168
|
-
function
|
|
3176
|
+
function ms(e, t, r) {
|
|
3169
3177
|
switch (ou(e, t)) {
|
|
3170
3178
|
// color-adjust
|
|
3171
3179
|
case 5103:
|
|
3172
|
-
return
|
|
3180
|
+
return $ + "print-" + e + e;
|
|
3173
3181
|
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
3174
3182
|
case 5737:
|
|
3175
3183
|
case 4201:
|
|
@@ -3199,72 +3207,72 @@ function hs(e, t, r) {
|
|
|
3199
3207
|
case 5365:
|
|
3200
3208
|
case 5621:
|
|
3201
3209
|
case 3829:
|
|
3202
|
-
return
|
|
3210
|
+
return $ + e + e;
|
|
3203
3211
|
// tab-size
|
|
3204
3212
|
case 4789:
|
|
3205
|
-
return
|
|
3213
|
+
return $t + e + e;
|
|
3206
3214
|
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
3207
3215
|
case 5349:
|
|
3208
3216
|
case 4246:
|
|
3209
3217
|
case 4810:
|
|
3210
3218
|
case 6968:
|
|
3211
3219
|
case 2756:
|
|
3212
|
-
return
|
|
3220
|
+
return $ + e + $t + e + F + e + e;
|
|
3213
3221
|
// writing-mode
|
|
3214
3222
|
case 5936:
|
|
3215
|
-
switch (
|
|
3223
|
+
switch (K(e, t + 11)) {
|
|
3216
3224
|
// vertical-l(r)
|
|
3217
3225
|
case 114:
|
|
3218
|
-
return
|
|
3226
|
+
return $ + e + F + R(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
3219
3227
|
// vertical-r(l)
|
|
3220
3228
|
case 108:
|
|
3221
|
-
return
|
|
3229
|
+
return $ + e + F + R(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
3222
3230
|
// horizontal(-)tb
|
|
3223
3231
|
case 45:
|
|
3224
|
-
return
|
|
3232
|
+
return $ + e + F + R(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
3225
3233
|
}
|
|
3226
3234
|
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
3227
3235
|
case 6828:
|
|
3228
3236
|
case 4268:
|
|
3229
3237
|
case 2903:
|
|
3230
|
-
return
|
|
3238
|
+
return $ + e + F + e + e;
|
|
3231
3239
|
// order
|
|
3232
3240
|
case 6165:
|
|
3233
|
-
return
|
|
3241
|
+
return $ + e + F + "flex-" + e + e;
|
|
3234
3242
|
// align-items
|
|
3235
3243
|
case 5187:
|
|
3236
|
-
return
|
|
3244
|
+
return $ + e + R(e, /(\w+).+(:[^]+)/, $ + "box-$1$2" + F + "flex-$1$2") + e;
|
|
3237
3245
|
// align-self
|
|
3238
3246
|
case 5443:
|
|
3239
|
-
return
|
|
3247
|
+
return $ + e + F + "flex-item-" + R(e, /flex-|-self/g, "") + (Pe(e, /flex-|baseline/) ? "" : F + "grid-row-" + R(e, /flex-|-self/g, "")) + e;
|
|
3240
3248
|
// align-content
|
|
3241
3249
|
case 4675:
|
|
3242
|
-
return
|
|
3250
|
+
return $ + e + F + "flex-line-pack" + R(e, /align-content|flex-|-self/g, "") + e;
|
|
3243
3251
|
// flex-shrink
|
|
3244
3252
|
case 5548:
|
|
3245
|
-
return
|
|
3253
|
+
return $ + e + F + R(e, "shrink", "negative") + e;
|
|
3246
3254
|
// flex-basis
|
|
3247
3255
|
case 5292:
|
|
3248
|
-
return
|
|
3256
|
+
return $ + e + F + R(e, "basis", "preferred-size") + e;
|
|
3249
3257
|
// flex-grow
|
|
3250
3258
|
case 6060:
|
|
3251
|
-
return
|
|
3259
|
+
return $ + "box-" + R(e, "-grow", "") + $ + e + F + R(e, "grow", "positive") + e;
|
|
3252
3260
|
// transition
|
|
3253
3261
|
case 4554:
|
|
3254
|
-
return
|
|
3262
|
+
return $ + R(e, /([^-])(transform)/g, "$1" + $ + "$2") + e;
|
|
3255
3263
|
// cursor
|
|
3256
3264
|
case 6187:
|
|
3257
|
-
return R(R(R(e, /(zoom-|grab)/,
|
|
3265
|
+
return R(R(R(e, /(zoom-|grab)/, $ + "$1"), /(image-set)/, $ + "$1"), e, "") + e;
|
|
3258
3266
|
// background, background-image
|
|
3259
3267
|
case 5495:
|
|
3260
3268
|
case 3959:
|
|
3261
|
-
return R(e, /(image-set\([^]*)/,
|
|
3269
|
+
return R(e, /(image-set\([^]*)/, $ + "$1$`$1");
|
|
3262
3270
|
// justify-content
|
|
3263
3271
|
case 4968:
|
|
3264
|
-
return R(R(e, /(.+:)(flex-)?(.*)/,
|
|
3272
|
+
return R(R(e, /(.+:)(flex-)?(.*)/, $ + "box-pack:$3" + F + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + $ + e + e;
|
|
3265
3273
|
// justify-self
|
|
3266
3274
|
case 4200:
|
|
3267
|
-
if (!
|
|
3275
|
+
if (!Pe(e, /flex-|baseline/)) return F + "grid-column-align" + dt(e, t) + e;
|
|
3268
3276
|
break;
|
|
3269
3277
|
// grid-template-(columns|rows)
|
|
3270
3278
|
case 2592:
|
|
@@ -3274,20 +3282,20 @@ function hs(e, t, r) {
|
|
|
3274
3282
|
case 4384:
|
|
3275
3283
|
case 3616:
|
|
3276
3284
|
return r && r.some(function(n, i) {
|
|
3277
|
-
return t = i,
|
|
3278
|
-
}) ? ~hr(e + (r = r[t].value), "span", 0) ? e : F + R(e, "-start", "") + e + F + "grid-row-span:" + (~hr(r, "span", 0) ?
|
|
3285
|
+
return t = i, Pe(n.props, /grid-\w+-end/);
|
|
3286
|
+
}) ? ~hr(e + (r = r[t].value), "span", 0) ? e : F + R(e, "-start", "") + e + F + "grid-row-span:" + (~hr(r, "span", 0) ? Pe(r, /\d+/) : +Pe(r, /\d+/) - +Pe(e, /\d+/)) + ";" : F + R(e, "-start", "") + e;
|
|
3279
3287
|
// grid-(row|column)-end
|
|
3280
3288
|
case 4896:
|
|
3281
3289
|
case 4128:
|
|
3282
3290
|
return r && r.some(function(n) {
|
|
3283
|
-
return
|
|
3291
|
+
return Pe(n.props, /grid-\w+-start/);
|
|
3284
3292
|
}) ? e : F + R(R(e, "-end", "-span"), "span ", "") + e;
|
|
3285
3293
|
// (margin|padding)-inline-(start|end)
|
|
3286
3294
|
case 4095:
|
|
3287
3295
|
case 3583:
|
|
3288
3296
|
case 4068:
|
|
3289
3297
|
case 2532:
|
|
3290
|
-
return R(e, /(.+)-inline(.+)/,
|
|
3298
|
+
return R(e, /(.+)-inline(.+)/, $ + "$1$2") + e;
|
|
3291
3299
|
// (min|max)?(width|height|inline-size|block-size)
|
|
3292
3300
|
case 8116:
|
|
3293
3301
|
case 7059:
|
|
@@ -3302,17 +3310,17 @@ function hs(e, t, r) {
|
|
|
3302
3310
|
case 5021:
|
|
3303
3311
|
case 4765:
|
|
3304
3312
|
if (Ee(e) - 1 - t > 6)
|
|
3305
|
-
switch (
|
|
3313
|
+
switch (K(e, t + 1)) {
|
|
3306
3314
|
// (m)ax-content, (m)in-content
|
|
3307
3315
|
case 109:
|
|
3308
|
-
if (
|
|
3316
|
+
if (K(e, t + 4) !== 45)
|
|
3309
3317
|
break;
|
|
3310
3318
|
// (f)ill-available, (f)it-content
|
|
3311
3319
|
case 102:
|
|
3312
|
-
return R(e, /(.+:)(.+)-([^]+)/, "$1" +
|
|
3320
|
+
return R(e, /(.+:)(.+)-([^]+)/, "$1" + $ + "$2-$3$1" + $t + (K(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
3313
3321
|
// (s)tretch
|
|
3314
3322
|
case 115:
|
|
3315
|
-
return ~hr(e, "stretch", 0) ?
|
|
3323
|
+
return ~hr(e, "stretch", 0) ? ms(R(e, "stretch", "fill-available"), t, r) + e : e;
|
|
3316
3324
|
}
|
|
3317
3325
|
break;
|
|
3318
3326
|
// grid-(column|row)
|
|
@@ -3323,15 +3331,15 @@ function hs(e, t, r) {
|
|
|
3323
3331
|
});
|
|
3324
3332
|
// position: sticky
|
|
3325
3333
|
case 4949:
|
|
3326
|
-
if (
|
|
3327
|
-
return R(e, ":", ":" +
|
|
3334
|
+
if (K(e, t + 6) === 121)
|
|
3335
|
+
return R(e, ":", ":" + $) + e;
|
|
3328
3336
|
break;
|
|
3329
3337
|
// display: (flex|inline-flex|grid|inline-grid)
|
|
3330
3338
|
case 6444:
|
|
3331
|
-
switch (
|
|
3339
|
+
switch (K(e, K(e, 14) === 45 ? 18 : 11)) {
|
|
3332
3340
|
// (inline-)?fle(x)
|
|
3333
3341
|
case 120:
|
|
3334
|
-
return R(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" +
|
|
3342
|
+
return R(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + $ + (K(e, 14) === 45 ? "inline-" : "") + "box$3$1" + $ + "$2$3$1" + F + "$2box$3") + e;
|
|
3335
3343
|
// (inline-)?gri(d)
|
|
3336
3344
|
case 100:
|
|
3337
3345
|
return R(e, ":", ":" + F) + e;
|
|
@@ -3359,9 +3367,9 @@ function gu(e, t, r, n) {
|
|
|
3359
3367
|
case nu:
|
|
3360
3368
|
case ri:
|
|
3361
3369
|
return e.return = e.return || e.value;
|
|
3362
|
-
case
|
|
3370
|
+
case us:
|
|
3363
3371
|
return "";
|
|
3364
|
-
case
|
|
3372
|
+
case ls:
|
|
3365
3373
|
return e.return = e.value + "{" + Er(e.children, n) + "}";
|
|
3366
3374
|
case zr:
|
|
3367
3375
|
if (!Ee(e.value = e.props.join(","))) return "";
|
|
@@ -3369,7 +3377,7 @@ function gu(e, t, r, n) {
|
|
|
3369
3377
|
return Ee(r = Er(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
3370
3378
|
}
|
|
3371
3379
|
function vu(e) {
|
|
3372
|
-
var t =
|
|
3380
|
+
var t = hs(e);
|
|
3373
3381
|
return function(r, n, i, o) {
|
|
3374
3382
|
for (var s = "", a = 0; a < t; a++)
|
|
3375
3383
|
s += e[a](r, n, i, o) || "";
|
|
@@ -3385,22 +3393,22 @@ function wu(e, t, r, n) {
|
|
|
3385
3393
|
if (e.length > -1 && !e.return)
|
|
3386
3394
|
switch (e.type) {
|
|
3387
3395
|
case ri:
|
|
3388
|
-
e.return =
|
|
3396
|
+
e.return = ms(e.value, e.length, r);
|
|
3389
3397
|
return;
|
|
3390
|
-
case
|
|
3391
|
-
return Er([De(e, { value: R(e.value, "@", "@" +
|
|
3398
|
+
case ls:
|
|
3399
|
+
return Er([De(e, { value: R(e.value, "@", "@" + $) })], n);
|
|
3392
3400
|
case zr:
|
|
3393
3401
|
if (e.length)
|
|
3394
3402
|
return su(r = e.props, function(i) {
|
|
3395
|
-
switch (
|
|
3403
|
+
switch (Pe(i, n = /(::plac\w+|:read-\w+)/)) {
|
|
3396
3404
|
// :read-(only|write)
|
|
3397
3405
|
case ":read-only":
|
|
3398
3406
|
case ":read-write":
|
|
3399
|
-
at(De(e, { props: [R(i, /:(read-\w+)/, ":" +
|
|
3407
|
+
at(De(e, { props: [R(i, /:(read-\w+)/, ":" + $t + "$1")] })), at(De(e, { props: [i] })), En(e, { props: Gi(r, n) });
|
|
3400
3408
|
break;
|
|
3401
3409
|
// :placeholder
|
|
3402
3410
|
case "::placeholder":
|
|
3403
|
-
at(De(e, { props: [R(i, /:(plac\w+)/, ":" +
|
|
3411
|
+
at(De(e, { props: [R(i, /:(plac\w+)/, ":" + $ + "input-$1")] })), at(De(e, { props: [R(i, /:(plac\w+)/, ":" + $t + "$1")] })), at(De(e, { props: [R(i, /:(plac\w+)/, F + "input-$1")] })), at(De(e, { props: [i] })), En(e, { props: Gi(r, n) });
|
|
3404
3412
|
break;
|
|
3405
3413
|
}
|
|
3406
3414
|
return "";
|
|
@@ -3455,7 +3463,7 @@ var _u = {
|
|
|
3455
3463
|
strokeMiterlimit: 1,
|
|
3456
3464
|
strokeOpacity: 1,
|
|
3457
3465
|
strokeWidth: 1
|
|
3458
|
-
}, Xe = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled",
|
|
3466
|
+
}, Xe = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", ys = "active", gs = "data-styled-version", Ur = "6.1.16", ii = `/*!sc*/
|
|
3459
3467
|
`, Sr = typeof window < "u" && "HTMLElement" in window, Eu = !!(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"), Xi = /invalid hook call/i, or = /* @__PURE__ */ new Set(), Su = function(e, t) {
|
|
3460
3468
|
if (process.env.NODE_ENV !== "production") {
|
|
3461
3469
|
var r = t ? ' with the id of "'.concat(t, '"') : "", n = "The component ".concat(e).concat(r, ` has been created dynamically.
|
|
@@ -3466,16 +3474,16 @@ To resolve this only create new StyledComponents outside of any render method an
|
|
|
3466
3474
|
console.error = function(s) {
|
|
3467
3475
|
for (var a = [], u = 1; u < arguments.length; u++) a[u - 1] = arguments[u];
|
|
3468
3476
|
Xi.test(s) ? (o = !1, or.delete(n)) : i.apply(void 0, Qe([s], a, !1));
|
|
3469
|
-
},
|
|
3477
|
+
}, Se(), o && !or.has(n) && (console.warn(n), or.add(n));
|
|
3470
3478
|
} catch (s) {
|
|
3471
3479
|
Xi.test(s.message) && or.delete(n);
|
|
3472
3480
|
} finally {
|
|
3473
3481
|
console.error = i;
|
|
3474
3482
|
}
|
|
3475
3483
|
}
|
|
3476
|
-
},
|
|
3484
|
+
}, Wr = Object.freeze([]), pt = Object.freeze({});
|
|
3477
3485
|
function xu(e, t, r) {
|
|
3478
|
-
return r === void 0 && (r =
|
|
3486
|
+
return r === void 0 && (r = pt), e.theme !== r.theme && e.theme || t || r.theme;
|
|
3479
3487
|
}
|
|
3480
3488
|
var kn = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), ku = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Ou = /(^-|-$)/g;
|
|
3481
3489
|
function Ji(e) {
|
|
@@ -3489,32 +3497,32 @@ function On(e) {
|
|
|
3489
3497
|
for (t = Math.abs(e); t > sr; t = t / sr | 0) r = Zi(t % sr) + r;
|
|
3490
3498
|
return (Zi(t % sr) + r).replace(Pu, "$1-$2");
|
|
3491
3499
|
}
|
|
3492
|
-
var cn,
|
|
3500
|
+
var cn, vs = 5381, We = function(e, t) {
|
|
3493
3501
|
for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
|
|
3494
3502
|
return e;
|
|
3495
|
-
},
|
|
3496
|
-
return
|
|
3503
|
+
}, bs = function(e) {
|
|
3504
|
+
return We(vs, e);
|
|
3497
3505
|
};
|
|
3498
|
-
function
|
|
3499
|
-
return On(
|
|
3506
|
+
function ws(e) {
|
|
3507
|
+
return On(bs(e) >>> 0);
|
|
3500
3508
|
}
|
|
3501
|
-
function
|
|
3509
|
+
function _s(e) {
|
|
3502
3510
|
return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
3503
3511
|
}
|
|
3504
3512
|
function un(e) {
|
|
3505
3513
|
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
3506
3514
|
}
|
|
3507
|
-
var
|
|
3515
|
+
var Es = typeof Symbol == "function" && Symbol.for, Ss = Es ? Symbol.for("react.memo") : 60115, Nu = Es ? Symbol.for("react.forward_ref") : 60112, Cu = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Ru = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, xs = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Au = ((cn = {})[Nu] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, cn[Ss] = xs, cn);
|
|
3508
3516
|
function eo(e) {
|
|
3509
|
-
return ("type" in (t = e) && t.type.$$typeof) ===
|
|
3517
|
+
return ("type" in (t = e) && t.type.$$typeof) === Ss ? xs : "$$typeof" in e ? Au[e.$$typeof] : Cu;
|
|
3510
3518
|
var t;
|
|
3511
3519
|
}
|
|
3512
3520
|
var Tu = Object.defineProperty, Iu = Object.getOwnPropertyNames, to = Object.getOwnPropertySymbols, Du = Object.getOwnPropertyDescriptor, ju = Object.getPrototypeOf, ro = Object.prototype;
|
|
3513
|
-
function
|
|
3521
|
+
function ks(e, t, r) {
|
|
3514
3522
|
if (typeof t != "string") {
|
|
3515
3523
|
if (ro) {
|
|
3516
3524
|
var n = ju(t);
|
|
3517
|
-
n && n !== ro &&
|
|
3525
|
+
n && n !== ro && ks(e, n, r);
|
|
3518
3526
|
}
|
|
3519
3527
|
var i = Iu(t);
|
|
3520
3528
|
to && (i = i.concat(to(t)));
|
|
@@ -3531,13 +3539,13 @@ function Ss(e, t, r) {
|
|
|
3531
3539
|
}
|
|
3532
3540
|
return e;
|
|
3533
3541
|
}
|
|
3534
|
-
function
|
|
3542
|
+
function mt(e) {
|
|
3535
3543
|
return typeof e == "function";
|
|
3536
3544
|
}
|
|
3537
3545
|
function oi(e) {
|
|
3538
3546
|
return typeof e == "object" && "styledComponentId" in e;
|
|
3539
3547
|
}
|
|
3540
|
-
function
|
|
3548
|
+
function qe(e, t) {
|
|
3541
3549
|
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
3542
3550
|
}
|
|
3543
3551
|
function Pn(e, t) {
|
|
@@ -3545,13 +3553,13 @@ function Pn(e, t) {
|
|
|
3545
3553
|
for (var r = e[0], n = 1; n < e.length; n++) r += e[n];
|
|
3546
3554
|
return r;
|
|
3547
3555
|
}
|
|
3548
|
-
function
|
|
3556
|
+
function yt(e) {
|
|
3549
3557
|
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
3550
3558
|
}
|
|
3551
3559
|
function Nn(e, t, r) {
|
|
3552
|
-
if (r === void 0 && (r = !1), !r && !
|
|
3560
|
+
if (r === void 0 && (r = !1), !r && !yt(e) && !Array.isArray(e)) return t;
|
|
3553
3561
|
if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = Nn(e[n], t[n]);
|
|
3554
|
-
else if (
|
|
3562
|
+
else if (yt(t)) for (var n in t) e[n] = Nn(e[n], t[n]);
|
|
3555
3563
|
return e;
|
|
3556
3564
|
}
|
|
3557
3565
|
function si(e, t) {
|
|
@@ -3606,7 +3614,7 @@ function $u() {
|
|
|
3606
3614
|
r = r.replace(/%[a-z]/, s);
|
|
3607
3615
|
}), r;
|
|
3608
3616
|
}
|
|
3609
|
-
function
|
|
3617
|
+
function _t(e) {
|
|
3610
3618
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
3611
3619
|
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($u.apply(void 0, Qe([Vu[e]], t, !1)).trim());
|
|
3612
3620
|
}
|
|
@@ -3619,7 +3627,7 @@ var Mu = function() {
|
|
|
3619
3627
|
return r;
|
|
3620
3628
|
}, e.prototype.insertRules = function(t, r) {
|
|
3621
3629
|
if (t >= this.groupSizes.length) {
|
|
3622
|
-
for (var n = this.groupSizes, i = n.length, o = i; t >= o; ) if ((o <<= 1) < 0) throw
|
|
3630
|
+
for (var n = this.groupSizes, i = n.length, o = i; t >= o; ) if ((o <<= 1) < 0) throw _t(16, "".concat(t));
|
|
3623
3631
|
this.groupSizes = new Uint32Array(o), this.groupSizes.set(n), this.length = o;
|
|
3624
3632
|
for (var s = i; s < o; s++) this.groupSizes[s] = 0;
|
|
3625
3633
|
}
|
|
@@ -3640,13 +3648,13 @@ var Mu = function() {
|
|
|
3640
3648
|
if (yr.has(e)) return yr.get(e);
|
|
3641
3649
|
for (; xr.has(gr); ) gr++;
|
|
3642
3650
|
var t = gr++;
|
|
3643
|
-
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > zu)) throw
|
|
3651
|
+
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > zu)) throw _t(16, "".concat(t));
|
|
3644
3652
|
return yr.set(e, t), xr.set(t, e), t;
|
|
3645
3653
|
}, Fu = function(e, t) {
|
|
3646
3654
|
gr = t + 1, yr.set(e, t), xr.set(t, e);
|
|
3647
|
-
}, Lu = "style[".concat(Xe, "][").concat(
|
|
3655
|
+
}, Lu = "style[".concat(Xe, "][").concat(gs, '="').concat(Ur, '"]'), Bu = new RegExp("^".concat(Xe, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Uu = function(e, t, r) {
|
|
3648
3656
|
for (var n, i = r.split(","), o = 0, s = i.length; o < s; o++) (n = i[o]) && e.registerName(t, n);
|
|
3649
|
-
},
|
|
3657
|
+
}, Wu = function(e, t) {
|
|
3650
3658
|
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(ii), i = [], o = 0, s = n.length; o < s; o++) {
|
|
3651
3659
|
var a = n[o].trim();
|
|
3652
3660
|
if (a) {
|
|
@@ -3660,29 +3668,29 @@ var Mu = function() {
|
|
|
3660
3668
|
}, no = function(e) {
|
|
3661
3669
|
for (var t = document.querySelectorAll(Lu), r = 0, n = t.length; r < n; r++) {
|
|
3662
3670
|
var i = t[r];
|
|
3663
|
-
i && i.getAttribute(Xe) !==
|
|
3671
|
+
i && i.getAttribute(Xe) !== ys && (Wu(e, i), i.parentNode && i.parentNode.removeChild(i));
|
|
3664
3672
|
}
|
|
3665
3673
|
};
|
|
3666
|
-
function
|
|
3674
|
+
function qu() {
|
|
3667
3675
|
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
3668
3676
|
}
|
|
3669
|
-
var
|
|
3677
|
+
var Os = function(e) {
|
|
3670
3678
|
var t = document.head, r = e || t, n = document.createElement("style"), i = function(a) {
|
|
3671
3679
|
var u = Array.from(a.querySelectorAll("style[".concat(Xe, "]")));
|
|
3672
3680
|
return u[u.length - 1];
|
|
3673
3681
|
}(r), o = i !== void 0 ? i.nextSibling : null;
|
|
3674
|
-
n.setAttribute(Xe,
|
|
3675
|
-
var s =
|
|
3682
|
+
n.setAttribute(Xe, ys), n.setAttribute(gs, Ur);
|
|
3683
|
+
var s = qu();
|
|
3676
3684
|
return s && n.setAttribute("nonce", s), r.insertBefore(n, o), n;
|
|
3677
3685
|
}, Hu = function() {
|
|
3678
3686
|
function e(t) {
|
|
3679
|
-
this.element =
|
|
3687
|
+
this.element = Os(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) {
|
|
3680
3688
|
if (r.sheet) return r.sheet;
|
|
3681
3689
|
for (var n = document.styleSheets, i = 0, o = n.length; i < o; i++) {
|
|
3682
3690
|
var s = n[i];
|
|
3683
3691
|
if (s.ownerNode === r) return s;
|
|
3684
3692
|
}
|
|
3685
|
-
throw
|
|
3693
|
+
throw _t(17);
|
|
3686
3694
|
}(this.element), this.length = 0;
|
|
3687
3695
|
}
|
|
3688
3696
|
return e.prototype.insertRule = function(t, r) {
|
|
@@ -3699,7 +3707,7 @@ var xs = function(e) {
|
|
|
3699
3707
|
}, e;
|
|
3700
3708
|
}(), Yu = function() {
|
|
3701
3709
|
function e(t) {
|
|
3702
|
-
this.element =
|
|
3710
|
+
this.element = Os(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
3703
3711
|
}
|
|
3704
3712
|
return e.prototype.insertRule = function(t, r) {
|
|
3705
3713
|
if (t <= this.length && t >= 0) {
|
|
@@ -3723,23 +3731,23 @@ var xs = function(e) {
|
|
|
3723
3731
|
}, e.prototype.getRule = function(t) {
|
|
3724
3732
|
return t < this.length ? this.rules[t] : "";
|
|
3725
3733
|
}, e;
|
|
3726
|
-
}(), io = Sr, Ku = { isServer: !Sr, useCSSOMInjection: !Eu },
|
|
3734
|
+
}(), io = Sr, Ku = { isServer: !Sr, useCSSOMInjection: !Eu }, Ps = function() {
|
|
3727
3735
|
function e(t, r, n) {
|
|
3728
|
-
t === void 0 && (t =
|
|
3736
|
+
t === void 0 && (t = pt), r === void 0 && (r = {});
|
|
3729
3737
|
var i = this;
|
|
3730
|
-
this.options =
|
|
3738
|
+
this.options = ne(ne({}, Ku), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && Sr && io && (io = !1, no(this)), si(this, function() {
|
|
3731
3739
|
return function(o) {
|
|
3732
3740
|
for (var s = o.getTag(), a = s.length, u = "", l = function(d) {
|
|
3733
3741
|
var h = function(y) {
|
|
3734
3742
|
return xr.get(y);
|
|
3735
3743
|
}(d);
|
|
3736
3744
|
if (h === void 0) return "continue";
|
|
3737
|
-
var p = o.names.get(h),
|
|
3738
|
-
if (p === void 0 || !p.size ||
|
|
3745
|
+
var p = o.names.get(h), g = s.getGroup(d);
|
|
3746
|
+
if (p === void 0 || !p.size || g.length === 0) return "continue";
|
|
3739
3747
|
var E = "".concat(Xe, ".g").concat(d, '[id="').concat(h, '"]'), w = "";
|
|
3740
3748
|
p !== void 0 && p.forEach(function(y) {
|
|
3741
3749
|
y.length > 0 && (w += "".concat(y, ","));
|
|
3742
|
-
}), u += "".concat(
|
|
3750
|
+
}), u += "".concat(g).concat(E, '{content:"').concat(w, '"}').concat(ii);
|
|
3743
3751
|
}, f = 0; f < a; f++) l(f);
|
|
3744
3752
|
return u;
|
|
3745
3753
|
}(i);
|
|
@@ -3750,7 +3758,7 @@ var xs = function(e) {
|
|
|
3750
3758
|
}, e.prototype.rehydrate = function() {
|
|
3751
3759
|
!this.server && Sr && no(this);
|
|
3752
3760
|
}, e.prototype.reconstructWithOptions = function(t, r) {
|
|
3753
|
-
return r === void 0 && (r = !0), new e(
|
|
3761
|
+
return r === void 0 && (r = !0), new e(ne(ne({}, this.options), t), this.gs, r && this.names || void 0);
|
|
3754
3762
|
}, e.prototype.allocateGSInstance = function(t) {
|
|
3755
3763
|
return this.gs[t] = (this.gs[t] || 0) + 1;
|
|
3756
3764
|
}, e.prototype.getTag = function() {
|
|
@@ -3777,38 +3785,38 @@ var xs = function(e) {
|
|
|
3777
3785
|
this.tag = void 0;
|
|
3778
3786
|
}, e;
|
|
3779
3787
|
}(), Qu = /&/g, Xu = /^\s*\/\/.*$/gm;
|
|
3780
|
-
function
|
|
3788
|
+
function Ns(e, t) {
|
|
3781
3789
|
return e.map(function(r) {
|
|
3782
3790
|
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) {
|
|
3783
3791
|
return "".concat(t, " ").concat(n);
|
|
3784
|
-
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children =
|
|
3792
|
+
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = Ns(r.children, t)), r;
|
|
3785
3793
|
});
|
|
3786
3794
|
}
|
|
3787
3795
|
function Ju(e) {
|
|
3788
|
-
var t, r, n, i =
|
|
3789
|
-
return
|
|
3796
|
+
var t, r, n, i = pt, o = i.options, s = o === void 0 ? pt : o, a = i.plugins, u = a === void 0 ? Wr : a, l = function(h, p, g) {
|
|
3797
|
+
return g.startsWith(r) && g.endsWith(r) && g.replaceAll(r, "").length > 0 ? ".".concat(t) : h;
|
|
3790
3798
|
}, f = u.slice();
|
|
3791
3799
|
f.push(function(h) {
|
|
3792
3800
|
h.type === zr && h.value.includes("&") && (h.props[0] = h.props[0].replace(Qu, r).replace(n, l));
|
|
3793
3801
|
}), s.prefix && f.push(wu), f.push(gu);
|
|
3794
|
-
var d = function(h, p,
|
|
3795
|
-
p === void 0 && (p = ""),
|
|
3796
|
-
var w = h.replace(Xu, ""), y = mu(
|
|
3797
|
-
s.namespace && (y =
|
|
3802
|
+
var d = function(h, p, g, E) {
|
|
3803
|
+
p === void 0 && (p = ""), g === void 0 && (g = ""), E === void 0 && (E = "&"), t = E, r = p, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
3804
|
+
var w = h.replace(Xu, ""), y = mu(g || p ? "".concat(g, " ").concat(p, " { ").concat(w, " }") : w);
|
|
3805
|
+
s.namespace && (y = Ns(y, s.namespace));
|
|
3798
3806
|
var b = [];
|
|
3799
3807
|
return Er(y, vu(f.concat(bu(function(m) {
|
|
3800
3808
|
return b.push(m);
|
|
3801
3809
|
})))), b;
|
|
3802
3810
|
};
|
|
3803
3811
|
return d.hash = u.length ? u.reduce(function(h, p) {
|
|
3804
|
-
return p.name ||
|
|
3805
|
-
},
|
|
3812
|
+
return p.name || _t(15), We(h, p.name);
|
|
3813
|
+
}, vs).toString() : "", d;
|
|
3806
3814
|
}
|
|
3807
|
-
var Zu = new
|
|
3808
|
-
|
|
3809
|
-
|
|
3815
|
+
var Zu = new Ps(), Cn = Ju(), Cs = ie.createContext({ shouldForwardProp: void 0, styleSheet: Zu, stylis: Cn });
|
|
3816
|
+
Cs.Consumer;
|
|
3817
|
+
ie.createContext(void 0);
|
|
3810
3818
|
function oo() {
|
|
3811
|
-
return Ln(
|
|
3819
|
+
return Ln(Cs);
|
|
3812
3820
|
}
|
|
3813
3821
|
var Rn = function() {
|
|
3814
3822
|
function e(t, r) {
|
|
@@ -3818,7 +3826,7 @@ var Rn = function() {
|
|
|
3818
3826
|
var s = n.name + o.hash;
|
|
3819
3827
|
i.hasNameForId(n.id, s) || i.insertRules(n.id, s, o(n.rules, s, "@keyframes"));
|
|
3820
3828
|
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, si(this, function() {
|
|
3821
|
-
throw
|
|
3829
|
+
throw _t(12, String(n.name));
|
|
3822
3830
|
});
|
|
3823
3831
|
}
|
|
3824
3832
|
return e.prototype.getName = function(t) {
|
|
@@ -3835,113 +3843,113 @@ function so(e) {
|
|
|
3835
3843
|
}
|
|
3836
3844
|
return t.startsWith("ms-") ? "-" + t : t;
|
|
3837
3845
|
}
|
|
3838
|
-
var
|
|
3846
|
+
var Rs = function(e) {
|
|
3839
3847
|
return e == null || e === !1 || e === "";
|
|
3840
|
-
},
|
|
3848
|
+
}, As = function(e) {
|
|
3841
3849
|
var t, r, n = [];
|
|
3842
3850
|
for (var i in e) {
|
|
3843
3851
|
var o = e[i];
|
|
3844
|
-
e.hasOwnProperty(i) && !
|
|
3852
|
+
e.hasOwnProperty(i) && !Rs(o) && (Array.isArray(o) && o.isCss || mt(o) ? n.push("".concat(so(i), ":"), o, ";") : yt(o) ? n.push.apply(n, Qe(Qe(["".concat(i, " {")], As(o), !1), ["}"], !1)) : n.push("".concat(so(i), ": ").concat((t = i, (r = o) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in _u || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
|
|
3845
3853
|
}
|
|
3846
3854
|
return n;
|
|
3847
3855
|
};
|
|
3848
3856
|
function Ye(e, t, r, n) {
|
|
3849
|
-
if (
|
|
3857
|
+
if (Rs(e)) return [];
|
|
3850
3858
|
if (oi(e)) return [".".concat(e.styledComponentId)];
|
|
3851
|
-
if (
|
|
3852
|
-
if (!
|
|
3859
|
+
if (mt(e)) {
|
|
3860
|
+
if (!mt(o = e) || o.prototype && o.prototype.isReactComponent || !t) return [e];
|
|
3853
3861
|
var i = e(t);
|
|
3854
|
-
return process.env.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof Rn ||
|
|
3862
|
+
return process.env.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof Rn || yt(i) || i === null || console.error("".concat(_s(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.")), Ye(i, t, r, n);
|
|
3855
3863
|
}
|
|
3856
3864
|
var o;
|
|
3857
|
-
return e instanceof Rn ? r ? (e.inject(r, n), [e.getName(n)]) : [e] :
|
|
3865
|
+
return e instanceof Rn ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : yt(e) ? As(e) : Array.isArray(e) ? Array.prototype.concat.apply(Wr, e.map(function(s) {
|
|
3858
3866
|
return Ye(s, t, r, n);
|
|
3859
3867
|
})) : [e.toString()];
|
|
3860
3868
|
}
|
|
3861
3869
|
function tl(e) {
|
|
3862
3870
|
for (var t = 0; t < e.length; t += 1) {
|
|
3863
3871
|
var r = e[t];
|
|
3864
|
-
if (
|
|
3872
|
+
if (mt(r) && !oi(r)) return !1;
|
|
3865
3873
|
}
|
|
3866
3874
|
return !0;
|
|
3867
3875
|
}
|
|
3868
|
-
var rl =
|
|
3876
|
+
var rl = bs(Ur), nl = function() {
|
|
3869
3877
|
function e(t, r, n) {
|
|
3870
|
-
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && tl(t), this.componentId = r, this.baseHash =
|
|
3878
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && tl(t), this.componentId = r, this.baseHash = We(rl, r), this.baseStyle = n, Ps.registerId(r);
|
|
3871
3879
|
}
|
|
3872
3880
|
return e.prototype.generateAndInjectStyles = function(t, r, n) {
|
|
3873
3881
|
var i = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
|
|
3874
|
-
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) i =
|
|
3882
|
+
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) i = qe(i, this.staticRulesId);
|
|
3875
3883
|
else {
|
|
3876
|
-
var o = Pn(Ye(this.rules, t, r, n)), s = On(
|
|
3884
|
+
var o = Pn(Ye(this.rules, t, r, n)), s = On(We(this.baseHash, o) >>> 0);
|
|
3877
3885
|
if (!r.hasNameForId(this.componentId, s)) {
|
|
3878
3886
|
var a = n(o, ".".concat(s), void 0, this.componentId);
|
|
3879
3887
|
r.insertRules(this.componentId, s, a);
|
|
3880
3888
|
}
|
|
3881
|
-
i =
|
|
3889
|
+
i = qe(i, s), this.staticRulesId = s;
|
|
3882
3890
|
}
|
|
3883
3891
|
else {
|
|
3884
|
-
for (var u =
|
|
3892
|
+
for (var u = We(this.baseHash, n.hash), l = "", f = 0; f < this.rules.length; f++) {
|
|
3885
3893
|
var d = this.rules[f];
|
|
3886
|
-
if (typeof d == "string") l += d, process.env.NODE_ENV !== "production" && (u =
|
|
3894
|
+
if (typeof d == "string") l += d, process.env.NODE_ENV !== "production" && (u = We(u, d));
|
|
3887
3895
|
else if (d) {
|
|
3888
3896
|
var h = Pn(Ye(d, t, r, n));
|
|
3889
|
-
u =
|
|
3897
|
+
u = We(u, h + f), l += h;
|
|
3890
3898
|
}
|
|
3891
3899
|
}
|
|
3892
3900
|
if (l) {
|
|
3893
3901
|
var p = On(u >>> 0);
|
|
3894
|
-
r.hasNameForId(this.componentId, p) || r.insertRules(this.componentId, p, n(l, ".".concat(p), void 0, this.componentId)), i =
|
|
3902
|
+
r.hasNameForId(this.componentId, p) || r.insertRules(this.componentId, p, n(l, ".".concat(p), void 0, this.componentId)), i = qe(i, p);
|
|
3895
3903
|
}
|
|
3896
3904
|
}
|
|
3897
3905
|
return i;
|
|
3898
3906
|
}, e;
|
|
3899
|
-
}(),
|
|
3900
|
-
|
|
3907
|
+
}(), Ts = ie.createContext(void 0);
|
|
3908
|
+
Ts.Consumer;
|
|
3901
3909
|
var ln = {}, ao = /* @__PURE__ */ new Set();
|
|
3902
3910
|
function il(e, t, r) {
|
|
3903
|
-
var n = oi(e), i = e, o = !un(e), s = t.attrs, a = s === void 0 ?
|
|
3911
|
+
var n = oi(e), i = e, o = !un(e), s = t.attrs, a = s === void 0 ? Wr : s, u = t.componentId, l = u === void 0 ? function(S, O) {
|
|
3904
3912
|
var P = typeof S != "string" ? "sc" : Ji(S);
|
|
3905
3913
|
ln[P] = (ln[P] || 0) + 1;
|
|
3906
|
-
var k = "".concat(P, "-").concat(
|
|
3914
|
+
var k = "".concat(P, "-").concat(ws(Ur + P + ln[P]));
|
|
3907
3915
|
return O ? "".concat(O, "-").concat(k) : k;
|
|
3908
3916
|
}(t.displayName, t.parentComponentId) : u, f = t.displayName, d = f === void 0 ? function(S) {
|
|
3909
|
-
return un(S) ? "styled.".concat(S) : "Styled(".concat(
|
|
3910
|
-
}(e) : f, h = t.displayName && t.componentId ? "".concat(Ji(t.displayName), "-").concat(t.componentId) : t.componentId || l, p = n && i.attrs ? i.attrs.concat(a).filter(Boolean) : a,
|
|
3917
|
+
return un(S) ? "styled.".concat(S) : "Styled(".concat(_s(S), ")");
|
|
3918
|
+
}(e) : f, h = t.displayName && t.componentId ? "".concat(Ji(t.displayName), "-").concat(t.componentId) : t.componentId || l, p = n && i.attrs ? i.attrs.concat(a).filter(Boolean) : a, g = t.shouldForwardProp;
|
|
3911
3919
|
if (n && i.shouldForwardProp) {
|
|
3912
3920
|
var E = i.shouldForwardProp;
|
|
3913
3921
|
if (t.shouldForwardProp) {
|
|
3914
3922
|
var w = t.shouldForwardProp;
|
|
3915
|
-
|
|
3923
|
+
g = function(S, O) {
|
|
3916
3924
|
return E(S, O) && w(S, O);
|
|
3917
3925
|
};
|
|
3918
|
-
} else
|
|
3926
|
+
} else g = E;
|
|
3919
3927
|
}
|
|
3920
3928
|
var y = new nl(r, h, n ? i.componentStyle : void 0);
|
|
3921
3929
|
function b(S, O) {
|
|
3922
3930
|
return function(P, k, D) {
|
|
3923
|
-
var M = P.attrs,
|
|
3924
|
-
process.env.NODE_ENV !== "production" && Si(
|
|
3925
|
-
var
|
|
3926
|
-
for (var pe, me =
|
|
3927
|
-
var nt =
|
|
3928
|
-
for (var ye in nt) me[ye] = ye === "className" ?
|
|
3931
|
+
var M = P.attrs, G = P.componentStyle, U = P.defaultProps, X = P.foldedComponentIds, B = P.styledComponentId, oe = P.target, Fe = ie.useContext(Ts), Zt = oo(), et = P.shouldForwardProp || Zt.shouldForwardProp;
|
|
3932
|
+
process.env.NODE_ENV !== "production" && Si(B);
|
|
3933
|
+
var Et = xu(k, Fe, U) || pt, ue = function(rt, ke, Ae) {
|
|
3934
|
+
for (var pe, me = ne(ne({}, ke), { className: void 0, theme: Ae }), Te = 0; Te < rt.length; Te += 1) {
|
|
3935
|
+
var nt = mt(pe = rt[Te]) ? pe(me) : pe;
|
|
3936
|
+
for (var ye in nt) me[ye] = ye === "className" ? qe(me[ye], nt[ye]) : ye === "style" ? ne(ne({}, me[ye]), nt[ye]) : nt[ye];
|
|
3929
3937
|
}
|
|
3930
|
-
return
|
|
3931
|
-
}(M, k,
|
|
3932
|
-
for (var
|
|
3933
|
-
var tt = function(rt,
|
|
3934
|
-
var Ae = oo(), pe = rt.generateAndInjectStyles(
|
|
3938
|
+
return ke.className && (me.className = qe(me.className, ke.className)), me;
|
|
3939
|
+
}(M, k, Et), Ce = ue.as || oe, Re = {};
|
|
3940
|
+
for (var J in ue) ue[J] === void 0 || J[0] === "$" || J === "as" || J === "theme" && ue.theme === Et || (J === "forwardedAs" ? Re.as = ue.forwardedAs : et && !et(J, Ce) || (Re[J] = ue[J], et || process.env.NODE_ENV !== "development" || ru(J) || ao.has(J) || !kn.has(Ce) || (ao.add(J), console.warn('styled-components: it looks like an unknown prop "'.concat(J, '" 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.)')))));
|
|
3941
|
+
var tt = function(rt, ke) {
|
|
3942
|
+
var Ae = oo(), pe = rt.generateAndInjectStyles(ke, Ae.styleSheet, Ae.stylis);
|
|
3935
3943
|
return process.env.NODE_ENV !== "production" && Si(pe), pe;
|
|
3936
|
-
}(
|
|
3944
|
+
}(G, ue);
|
|
3937
3945
|
process.env.NODE_ENV !== "production" && P.warnTooManyClasses && P.warnTooManyClasses(tt);
|
|
3938
|
-
var
|
|
3939
|
-
return tt && (
|
|
3946
|
+
var St = qe(X, B);
|
|
3947
|
+
return tt && (St += " " + tt), ue.className && (St += " " + ue.className), Re[un(Ce) && !kn.has(Ce) ? "class" : "className"] = St, D && (Re.ref = D), Ca(Ce, Re);
|
|
3940
3948
|
}(m, S, O);
|
|
3941
3949
|
}
|
|
3942
3950
|
b.displayName = d;
|
|
3943
|
-
var m =
|
|
3944
|
-
return m.attrs = p, m.componentStyle = y, m.displayName = d, m.shouldForwardProp =
|
|
3951
|
+
var m = ie.forwardRef(b);
|
|
3952
|
+
return m.attrs = p, m.componentStyle = y, m.displayName = d, m.shouldForwardProp = g, m.foldedComponentIds = n ? qe(i.foldedComponentIds, i.styledComponentId) : "", m.styledComponentId = h, m.target = n ? i.target : e, Object.defineProperty(m, "defaultProps", { get: function() {
|
|
3945
3953
|
return this._foldedDefaultProps;
|
|
3946
3954
|
}, set: function(S) {
|
|
3947
3955
|
this._foldedDefaultProps = n ? function(O) {
|
|
@@ -3968,7 +3976,7 @@ Example:
|
|
|
3968
3976
|
};
|
|
3969
3977
|
}(d, h)), si(m, function() {
|
|
3970
3978
|
return ".".concat(m.styledComponentId);
|
|
3971
|
-
}), o &&
|
|
3979
|
+
}), o && ks(m, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), m;
|
|
3972
3980
|
}
|
|
3973
3981
|
function co(e, t) {
|
|
3974
3982
|
for (var r = [e[0]], n = 0, i = t.length; n < i; n += 1) r.push(t[n], e[n + 1]);
|
|
@@ -3977,34 +3985,34 @@ function co(e, t) {
|
|
|
3977
3985
|
var uo = function(e) {
|
|
3978
3986
|
return Object.assign(e, { isCss: !0 });
|
|
3979
3987
|
};
|
|
3980
|
-
function
|
|
3988
|
+
function Is(e) {
|
|
3981
3989
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
3982
|
-
if (
|
|
3990
|
+
if (mt(e) || yt(e)) return uo(Ye(co(Wr, Qe([e], t, !0))));
|
|
3983
3991
|
var n = e;
|
|
3984
3992
|
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? Ye(n) : uo(Ye(co(n, t)));
|
|
3985
3993
|
}
|
|
3986
3994
|
function An(e, t, r) {
|
|
3987
|
-
if (r === void 0 && (r =
|
|
3995
|
+
if (r === void 0 && (r = pt), !t) throw _t(1, t);
|
|
3988
3996
|
var n = function(i) {
|
|
3989
3997
|
for (var o = [], s = 1; s < arguments.length; s++) o[s - 1] = arguments[s];
|
|
3990
|
-
return e(t, r,
|
|
3998
|
+
return e(t, r, Is.apply(void 0, Qe([i], o, !1)));
|
|
3991
3999
|
};
|
|
3992
4000
|
return n.attrs = function(i) {
|
|
3993
|
-
return An(e, t,
|
|
4001
|
+
return An(e, t, ne(ne({}, r), { attrs: Array.prototype.concat(r.attrs, i).filter(Boolean) }));
|
|
3994
4002
|
}, n.withConfig = function(i) {
|
|
3995
|
-
return An(e, t,
|
|
4003
|
+
return An(e, t, ne(ne({}, r), i));
|
|
3996
4004
|
}, n;
|
|
3997
4005
|
}
|
|
3998
|
-
var
|
|
4006
|
+
var Ds = function(e) {
|
|
3999
4007
|
return An(il, e);
|
|
4000
|
-
},
|
|
4008
|
+
}, q = Ds;
|
|
4001
4009
|
kn.forEach(function(e) {
|
|
4002
|
-
|
|
4010
|
+
q[e] = Ds(e);
|
|
4003
4011
|
});
|
|
4004
|
-
function
|
|
4012
|
+
function js(e) {
|
|
4005
4013
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
4006
4014
|
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.");
|
|
4007
|
-
var n = Pn(
|
|
4015
|
+
var n = Pn(Is.apply(void 0, Qe([e], t, !1))), i = ws(n);
|
|
4008
4016
|
return new Rn(i, n);
|
|
4009
4017
|
}
|
|
4010
4018
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
@@ -4014,7 +4022,7 @@ var cr = "__sc-".concat(Xe, "__");
|
|
|
4014
4022
|
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[cr] || (window[cr] = 0), window[cr] === 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.
|
|
4015
4023
|
|
|
4016
4024
|
See https://s-c.sh/2BAXzed for more info.`), window[cr] += 1);
|
|
4017
|
-
const ol =
|
|
4025
|
+
const ol = js`
|
|
4018
4026
|
0% {
|
|
4019
4027
|
transform: scale(1);
|
|
4020
4028
|
}
|
|
@@ -4024,7 +4032,7 @@ const ol = Is`
|
|
|
4024
4032
|
100% {
|
|
4025
4033
|
transform: scale(1);
|
|
4026
4034
|
}
|
|
4027
|
-
`, sl =
|
|
4035
|
+
`, sl = q.div`
|
|
4028
4036
|
display: inline-block;
|
|
4029
4037
|
position: relative;
|
|
4030
4038
|
overflow: hidden;
|
|
@@ -4035,7 +4043,7 @@ const ol = Is`
|
|
|
4035
4043
|
&:active {
|
|
4036
4044
|
animation: ${ol} 0.2s;
|
|
4037
4045
|
}
|
|
4038
|
-
`, al =
|
|
4046
|
+
`, al = q.button`
|
|
4039
4047
|
display: flex;
|
|
4040
4048
|
align-items: center;
|
|
4041
4049
|
position: relative;
|
|
@@ -4054,7 +4062,7 @@ const ol = Is`
|
|
|
4054
4062
|
background-color: #ffb652;
|
|
4055
4063
|
color: black;
|
|
4056
4064
|
}
|
|
4057
|
-
`, cl =
|
|
4065
|
+
`, cl = q.div`
|
|
4058
4066
|
display: flex;
|
|
4059
4067
|
margin-right: 1.25rem;
|
|
4060
4068
|
|
|
@@ -4062,13 +4070,13 @@ const ol = Is`
|
|
|
4062
4070
|
margin-right: 0.25rem;
|
|
4063
4071
|
}
|
|
4064
4072
|
`;
|
|
4065
|
-
var
|
|
4073
|
+
var Vs = {
|
|
4066
4074
|
color: void 0,
|
|
4067
4075
|
size: void 0,
|
|
4068
4076
|
className: void 0,
|
|
4069
4077
|
style: void 0,
|
|
4070
4078
|
attr: void 0
|
|
4071
|
-
}, lo =
|
|
4079
|
+
}, lo = ie.createContext && /* @__PURE__ */ ie.createContext(Vs), ul = ["attr", "size", "title"];
|
|
4072
4080
|
function ll(e, t) {
|
|
4073
4081
|
if (e == null) return {};
|
|
4074
4082
|
var r = fl(e, t), n, i;
|
|
@@ -4137,15 +4145,15 @@ function pl(e, t) {
|
|
|
4137
4145
|
}
|
|
4138
4146
|
return (t === "string" ? String : Number)(e);
|
|
4139
4147
|
}
|
|
4140
|
-
function
|
|
4141
|
-
return e && e.map((t, r) => /* @__PURE__ */
|
|
4148
|
+
function $s(e) {
|
|
4149
|
+
return e && e.map((t, r) => /* @__PURE__ */ ie.createElement(t.tag, Or({
|
|
4142
4150
|
key: r
|
|
4143
|
-
}, t.attr),
|
|
4151
|
+
}, t.attr), $s(t.child)));
|
|
4144
4152
|
}
|
|
4145
4153
|
function ze(e) {
|
|
4146
|
-
return (t) => /* @__PURE__ */
|
|
4154
|
+
return (t) => /* @__PURE__ */ ie.createElement(ml, kr({
|
|
4147
4155
|
attr: Or({}, e.attr)
|
|
4148
|
-
}, t),
|
|
4156
|
+
}, t), $s(e.child));
|
|
4149
4157
|
}
|
|
4150
4158
|
function ml(e) {
|
|
4151
4159
|
var t = (r) => {
|
|
@@ -4154,7 +4162,7 @@ function ml(e) {
|
|
|
4154
4162
|
size: i,
|
|
4155
4163
|
title: o
|
|
4156
4164
|
} = e, s = ll(e, ul), a = i || r.size || "1em", u;
|
|
4157
|
-
return r.className && (u = r.className), e.className && (u = (u ? u + " " : "") + e.className), /* @__PURE__ */
|
|
4165
|
+
return r.className && (u = r.className), e.className && (u = (u ? u + " " : "") + e.className), /* @__PURE__ */ ie.createElement("svg", kr({
|
|
4158
4166
|
stroke: "currentColor",
|
|
4159
4167
|
fill: "currentColor",
|
|
4160
4168
|
strokeWidth: "0"
|
|
@@ -4166,9 +4174,9 @@ function ml(e) {
|
|
|
4166
4174
|
height: a,
|
|
4167
4175
|
width: a,
|
|
4168
4176
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4169
|
-
}), o && /* @__PURE__ */
|
|
4177
|
+
}), o && /* @__PURE__ */ ie.createElement("title", null, o), e.children);
|
|
4170
4178
|
};
|
|
4171
|
-
return lo !== void 0 ? /* @__PURE__ */
|
|
4179
|
+
return lo !== void 0 ? /* @__PURE__ */ ie.createElement(lo.Consumer, null, (r) => t(r)) : t(Vs);
|
|
4172
4180
|
}
|
|
4173
4181
|
function yl(e) {
|
|
4174
4182
|
return ze({ 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);
|
|
@@ -4185,14 +4193,14 @@ const $f = ({
|
|
|
4185
4193
|
animate: o = !0
|
|
4186
4194
|
}) => {
|
|
4187
4195
|
let s;
|
|
4188
|
-
e === "plus" ? s = /* @__PURE__ */
|
|
4196
|
+
e === "plus" ? s = /* @__PURE__ */ j.jsx(yl, {}) : e === "send" && (s = /* @__PURE__ */ j.jsx(gl, {}));
|
|
4189
4197
|
const a = () => {
|
|
4190
4198
|
n && n();
|
|
4191
4199
|
};
|
|
4192
|
-
return /* @__PURE__ */
|
|
4193
|
-
/* @__PURE__ */
|
|
4194
|
-
/* @__PURE__ */
|
|
4195
|
-
|
|
4200
|
+
return /* @__PURE__ */ j.jsx(sl, { onClick: a, children: /* @__PURE__ */ j.jsxs(al, { className: r, children: [
|
|
4201
|
+
/* @__PURE__ */ j.jsx(cl, { children: s }),
|
|
4202
|
+
/* @__PURE__ */ j.jsx(
|
|
4203
|
+
cs,
|
|
4196
4204
|
{
|
|
4197
4205
|
textStyles: { lineHeight: "0.8rem", minWidth: "3rem" },
|
|
4198
4206
|
content: t,
|
|
@@ -4201,7 +4209,7 @@ const $f = ({
|
|
|
4201
4209
|
}
|
|
4202
4210
|
)
|
|
4203
4211
|
] }) });
|
|
4204
|
-
}, vl =
|
|
4212
|
+
}, vl = q(as.div)`
|
|
4205
4213
|
width: 2.5rem;
|
|
4206
4214
|
height: 2.5rem;
|
|
4207
4215
|
border-radius: 50%;
|
|
@@ -4210,7 +4218,7 @@ const $f = ({
|
|
|
4210
4218
|
align-items: center;
|
|
4211
4219
|
justify-content: center;
|
|
4212
4220
|
cursor: pointer;
|
|
4213
|
-
`, bl =
|
|
4221
|
+
`, bl = q.span`
|
|
4214
4222
|
display: flex;
|
|
4215
4223
|
color: black;
|
|
4216
4224
|
font-size: 1.125rem;
|
|
@@ -4222,14 +4230,14 @@ function _l(e) {
|
|
|
4222
4230
|
return ze({ 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);
|
|
4223
4231
|
}
|
|
4224
4232
|
const Mf = ({ iconComponent: e, onClick: t }) => {
|
|
4225
|
-
const r =
|
|
4233
|
+
const r = os({
|
|
4226
4234
|
from: { opacity: 0, transform: "scale(0.5)" },
|
|
4227
4235
|
to: { opacity: 1, transform: "scale(1)" }
|
|
4228
4236
|
}), n = () => {
|
|
4229
4237
|
t && t();
|
|
4230
4238
|
};
|
|
4231
4239
|
let i;
|
|
4232
|
-
return e === "person" ? i = /* @__PURE__ */
|
|
4240
|
+
return e === "person" ? i = /* @__PURE__ */ j.jsx(wl, {}) : e === "qr" && (i = /* @__PURE__ */ j.jsx(_l, {})), /* @__PURE__ */ j.jsx(vl, { style: r, onClick: n, children: /* @__PURE__ */ j.jsx(bl, { children: i }) });
|
|
4233
4241
|
};
|
|
4234
4242
|
function El(e) {
|
|
4235
4243
|
return ze({ 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);
|
|
@@ -4238,8 +4246,8 @@ const zf = ({ size: e, onClick: t }) => {
|
|
|
4238
4246
|
const r = () => {
|
|
4239
4247
|
t && t();
|
|
4240
4248
|
};
|
|
4241
|
-
return /* @__PURE__ */
|
|
4242
|
-
}, Sl =
|
|
4249
|
+
return /* @__PURE__ */ j.jsx(El, { size: e ?? "1.5rem", onClick: r });
|
|
4250
|
+
}, Sl = js`
|
|
4243
4251
|
0% {
|
|
4244
4252
|
transform: scale(0);
|
|
4245
4253
|
opacity: 0.6;
|
|
@@ -4248,7 +4256,7 @@ const zf = ({ size: e, onClick: t }) => {
|
|
|
4248
4256
|
transform: scale(10);
|
|
4249
4257
|
opacity: 0;
|
|
4250
4258
|
}
|
|
4251
|
-
`, xl =
|
|
4259
|
+
`, xl = q.span`
|
|
4252
4260
|
position: absolute;
|
|
4253
4261
|
left: ${({ $x: e }) => e}px;
|
|
4254
4262
|
top: ${({ $y: e }) => e}px;
|
|
@@ -4261,7 +4269,7 @@ const zf = ({ size: e, onClick: t }) => {
|
|
|
4261
4269
|
pointer-events: none;
|
|
4262
4270
|
animation: ${Sl} 0.4s ease-out forwards;
|
|
4263
4271
|
`;
|
|
4264
|
-
|
|
4272
|
+
q.div`
|
|
4265
4273
|
position: absolute;
|
|
4266
4274
|
left: 0;
|
|
4267
4275
|
right: 0;
|
|
@@ -4269,7 +4277,7 @@ U.div`
|
|
|
4269
4277
|
flex-direction: column;
|
|
4270
4278
|
z-index: 1;
|
|
4271
4279
|
`;
|
|
4272
|
-
|
|
4280
|
+
q.div`
|
|
4273
4281
|
display: flex;
|
|
4274
4282
|
flex-direction: column;
|
|
4275
4283
|
padding: 1.5rem var(--app-standard-padding);
|
|
@@ -4277,39 +4285,39 @@ U.div`
|
|
|
4277
4285
|
gap: 2rem;
|
|
4278
4286
|
justify-self: center;
|
|
4279
4287
|
`;
|
|
4280
|
-
|
|
4288
|
+
q.div`
|
|
4281
4289
|
display: flex;
|
|
4282
4290
|
flex-direction: column;
|
|
4283
4291
|
gap: 1.5rem;
|
|
4284
4292
|
`;
|
|
4285
|
-
const Ff =
|
|
4293
|
+
const Ff = q.ul`
|
|
4286
4294
|
display: flex;
|
|
4287
4295
|
flex-direction: column;
|
|
4288
4296
|
justify-content: center;
|
|
4289
4297
|
padding-inline-start: unset;
|
|
4290
|
-
`, kl =
|
|
4298
|
+
`, kl = q.li`
|
|
4291
4299
|
position: relative;
|
|
4292
4300
|
list-style: none;
|
|
4293
4301
|
cursor: pointer;
|
|
4294
4302
|
overflow: hidden;
|
|
4295
4303
|
-webkit-tap-highlight-color: transparent;
|
|
4296
4304
|
border-bottom: 1px solid rgba(0, 0, 0, 0.5);
|
|
4297
|
-
`, Ol =
|
|
4305
|
+
`, Ol = q.div`
|
|
4298
4306
|
display: flex;
|
|
4299
4307
|
flex-direction: row;
|
|
4300
4308
|
justify-content: space-between;
|
|
4301
4309
|
align-items: center;
|
|
4302
4310
|
padding: 0.5rem 0.75rem;
|
|
4303
|
-
`, Pl =
|
|
4311
|
+
`, Pl = q.div`
|
|
4304
4312
|
display: flex;
|
|
4305
4313
|
flex-direction: row;
|
|
4306
4314
|
gap: 2rem;
|
|
4307
4315
|
align-items: center;
|
|
4308
|
-
`, ho =
|
|
4316
|
+
`, ho = q.div`
|
|
4309
4317
|
display: flex;
|
|
4310
4318
|
flex-direction: column;
|
|
4311
4319
|
justify-content: center;
|
|
4312
|
-
`, Nl =
|
|
4320
|
+
`, Nl = q.p`
|
|
4313
4321
|
font-size: 1rem;
|
|
4314
4322
|
`;
|
|
4315
4323
|
function Cl(e) {
|
|
@@ -4321,12 +4329,12 @@ function Rl(e) {
|
|
|
4321
4329
|
function Al(e) {
|
|
4322
4330
|
return ze({ 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);
|
|
4323
4331
|
}
|
|
4324
|
-
const Tl =
|
|
4332
|
+
const Tl = q.input`
|
|
4325
4333
|
opacity: 0;
|
|
4326
4334
|
width: 0;
|
|
4327
4335
|
height: 0;
|
|
4328
4336
|
position: absolute;
|
|
4329
|
-
`, Tn =
|
|
4337
|
+
`, Tn = q.span`
|
|
4330
4338
|
position: absolute;
|
|
4331
4339
|
top: 50%;
|
|
4332
4340
|
left: ${({ $checked: e }) => e ? "14px" : "0px"};
|
|
@@ -4338,7 +4346,7 @@ const Tl = U.input`
|
|
|
4338
4346
|
transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
|
|
4339
4347
|
left 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
4340
4348
|
pointer-events: none;
|
|
4341
|
-
`, Il =
|
|
4349
|
+
`, Il = q.label`
|
|
4342
4350
|
position: relative;
|
|
4343
4351
|
display: inline-flex;
|
|
4344
4352
|
align-items: center;
|
|
@@ -4354,13 +4362,13 @@ const Tl = U.input`
|
|
|
4354
4362
|
&:focus-within ${Tn} {
|
|
4355
4363
|
background-color: ${({ $checked: e }) => e ? "rgba(72, 159, 181, 0.12)" : "rgba(0, 0, 0, 0.06)"};
|
|
4356
4364
|
}
|
|
4357
|
-
`, Dl =
|
|
4365
|
+
`, Dl = q.span`
|
|
4358
4366
|
width: 34px;
|
|
4359
4367
|
height: 14px;
|
|
4360
4368
|
background-color: ${({ $checked: e }) => e ? "rgba(72, 159, 181, 0.5)" : "rgba(0, 0, 0, 0.38)"};
|
|
4361
4369
|
border-radius: 7px;
|
|
4362
4370
|
transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
4363
|
-
`, jl =
|
|
4371
|
+
`, jl = q.span`
|
|
4364
4372
|
position: absolute;
|
|
4365
4373
|
top: 50%;
|
|
4366
4374
|
left: ${({ $checked: e }) => e ? "14px" : "0px"};
|
|
@@ -4381,14 +4389,14 @@ const Tl = U.input`
|
|
|
4381
4389
|
onChange: r,
|
|
4382
4390
|
disabled: n = !1
|
|
4383
4391
|
}) => {
|
|
4384
|
-
const [i, o] =
|
|
4392
|
+
const [i, o] = lt(t), s = e !== void 0, a = s ? e : i, u = (l) => {
|
|
4385
4393
|
if (n) return;
|
|
4386
4394
|
l.target.blur();
|
|
4387
4395
|
const f = !a;
|
|
4388
4396
|
s || o(f), r == null || r(f);
|
|
4389
4397
|
};
|
|
4390
|
-
return /* @__PURE__ */
|
|
4391
|
-
/* @__PURE__ */
|
|
4398
|
+
return /* @__PURE__ */ j.jsxs(Il, { $checked: a, onClick: (l) => l.stopPropagation(), children: [
|
|
4399
|
+
/* @__PURE__ */ j.jsx(
|
|
4392
4400
|
Tl,
|
|
4393
4401
|
{
|
|
4394
4402
|
type: "checkbox",
|
|
@@ -4397,45 +4405,55 @@ const Tl = U.input`
|
|
|
4397
4405
|
disabled: n
|
|
4398
4406
|
}
|
|
4399
4407
|
),
|
|
4400
|
-
/* @__PURE__ */
|
|
4401
|
-
/* @__PURE__ */
|
|
4402
|
-
/* @__PURE__ */
|
|
4408
|
+
/* @__PURE__ */ j.jsx(Dl, { $checked: a }),
|
|
4409
|
+
/* @__PURE__ */ j.jsx(Tn, { $checked: a }),
|
|
4410
|
+
/* @__PURE__ */ j.jsx(jl, { $checked: a })
|
|
4403
4411
|
] });
|
|
4404
4412
|
}, $l = {
|
|
4405
4413
|
translate: Cl,
|
|
4406
4414
|
sunny: Al,
|
|
4407
|
-
character: () => /* @__PURE__ */
|
|
4415
|
+
character: () => /* @__PURE__ */ j.jsx("p", { style: { fontSize: "1rem", fontWeight: 500 }, children: "字" })
|
|
4408
4416
|
}, Lf = ({
|
|
4409
4417
|
icon: e,
|
|
4410
4418
|
text: t,
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4419
|
+
textContent: r,
|
|
4420
|
+
characterPreference: n,
|
|
4421
|
+
animate: i = !0,
|
|
4422
|
+
actionIcon: o = "chevron",
|
|
4423
|
+
onClick: s,
|
|
4424
|
+
styles: a,
|
|
4425
|
+
switchChecked: u,
|
|
4426
|
+
onSwitchChange: l
|
|
4416
4427
|
}) => {
|
|
4417
|
-
const
|
|
4418
|
-
const
|
|
4419
|
-
|
|
4420
|
-
},
|
|
4428
|
+
const f = $l[e], [d, h] = lt(null), p = (E) => {
|
|
4429
|
+
const w = E.currentTarget.getBoundingClientRect(), y = E.clientX - w.left, b = E.clientY - w.top;
|
|
4430
|
+
h({ x: y, y: b, key: Date.now() }), o === "switch" && l ? l(!u) : s && s();
|
|
4431
|
+
}, g = () => o === "switch" ? /* @__PURE__ */ j.jsx(
|
|
4421
4432
|
Vl,
|
|
4422
4433
|
{
|
|
4423
|
-
checked:
|
|
4424
|
-
onChange:
|
|
4434
|
+
checked: u,
|
|
4435
|
+
onChange: l
|
|
4425
4436
|
}
|
|
4426
|
-
) : /* @__PURE__ */
|
|
4427
|
-
return /* @__PURE__ */
|
|
4428
|
-
|
|
4429
|
-
/* @__PURE__ */
|
|
4430
|
-
/* @__PURE__ */
|
|
4431
|
-
/* @__PURE__ */
|
|
4432
|
-
/* @__PURE__ */
|
|
4437
|
+
) : /* @__PURE__ */ j.jsx(Rl, {});
|
|
4438
|
+
return /* @__PURE__ */ j.jsxs(kl, { onClick: p, style: a, children: [
|
|
4439
|
+
d && /* @__PURE__ */ j.jsx(xl, { $x: d.x, $y: d.y }, d.key),
|
|
4440
|
+
/* @__PURE__ */ j.jsxs(Ol, { children: [
|
|
4441
|
+
/* @__PURE__ */ j.jsxs(Pl, { children: [
|
|
4442
|
+
/* @__PURE__ */ j.jsx(ho, { children: /* @__PURE__ */ j.jsx(f, { size: "1rem" }) }),
|
|
4443
|
+
/* @__PURE__ */ j.jsx(Nl, { children: r ? /* @__PURE__ */ j.jsx(
|
|
4444
|
+
cs,
|
|
4445
|
+
{
|
|
4446
|
+
content: r,
|
|
4447
|
+
characterPreference: n,
|
|
4448
|
+
animate: i
|
|
4449
|
+
}
|
|
4450
|
+
) : t })
|
|
4433
4451
|
] }),
|
|
4434
|
-
/* @__PURE__ */
|
|
4452
|
+
/* @__PURE__ */ j.jsx(ho, { children: g() })
|
|
4435
4453
|
] })
|
|
4436
4454
|
] });
|
|
4437
4455
|
};
|
|
4438
|
-
function
|
|
4456
|
+
function Q(e) {
|
|
4439
4457
|
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. `;
|
|
4440
4458
|
}
|
|
4441
4459
|
var Ml = typeof Symbol == "function" && Symbol.observable || "@@observable", po = Ml, fn = () => Math.random().toString(36).substring(7).split("").join("."), zl = {
|
|
@@ -4496,15 +4514,15 @@ function je(e) {
|
|
|
4496
4514
|
let t = typeof e;
|
|
4497
4515
|
return process.env.NODE_ENV !== "production" && (t = Fl(e)), t;
|
|
4498
4516
|
}
|
|
4499
|
-
function
|
|
4517
|
+
function Ms(e, t, r) {
|
|
4500
4518
|
if (typeof e != "function")
|
|
4501
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4519
|
+
throw new Error(process.env.NODE_ENV === "production" ? Q(2) : `Expected the root reducer to be a function. Instead, received: '${je(e)}'`);
|
|
4502
4520
|
if (typeof t == "function" && typeof r == "function" || typeof r == "function" && typeof arguments[3] == "function")
|
|
4503
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4521
|
+
throw new Error(process.env.NODE_ENV === "production" ? Q(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.");
|
|
4504
4522
|
if (typeof t == "function" && typeof r > "u" && (r = t, t = void 0), typeof r < "u") {
|
|
4505
4523
|
if (typeof r != "function")
|
|
4506
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4507
|
-
return r(
|
|
4524
|
+
throw new Error(process.env.NODE_ENV === "production" ? Q(1) : `Expected the enhancer to be a function. Instead, received: '${je(r)}'`);
|
|
4525
|
+
return r(Ms)(e, t);
|
|
4508
4526
|
}
|
|
4509
4527
|
let n = e, i = t, o = /* @__PURE__ */ new Map(), s = o, a = 0, u = !1;
|
|
4510
4528
|
function l() {
|
|
@@ -4514,34 +4532,34 @@ function Vs(e, t, r) {
|
|
|
4514
4532
|
}
|
|
4515
4533
|
function f() {
|
|
4516
4534
|
if (u)
|
|
4517
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4535
|
+
throw new Error(process.env.NODE_ENV === "production" ? Q(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.");
|
|
4518
4536
|
return i;
|
|
4519
4537
|
}
|
|
4520
4538
|
function d(w) {
|
|
4521
4539
|
if (typeof w != "function")
|
|
4522
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4540
|
+
throw new Error(process.env.NODE_ENV === "production" ? Q(4) : `Expected the listener to be a function. Instead, received: '${je(w)}'`);
|
|
4523
4541
|
if (u)
|
|
4524
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4542
|
+
throw new Error(process.env.NODE_ENV === "production" ? Q(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.");
|
|
4525
4543
|
let y = !0;
|
|
4526
4544
|
l();
|
|
4527
4545
|
const b = a++;
|
|
4528
4546
|
return s.set(b, w), function() {
|
|
4529
4547
|
if (y) {
|
|
4530
4548
|
if (u)
|
|
4531
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4549
|
+
throw new Error(process.env.NODE_ENV === "production" ? Q(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.");
|
|
4532
4550
|
y = !1, l(), s.delete(b), o = null;
|
|
4533
4551
|
}
|
|
4534
4552
|
};
|
|
4535
4553
|
}
|
|
4536
4554
|
function h(w) {
|
|
4537
4555
|
if (!Jt(w))
|
|
4538
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4556
|
+
throw new Error(process.env.NODE_ENV === "production" ? Q(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.`);
|
|
4539
4557
|
if (typeof w.type > "u")
|
|
4540
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4558
|
+
throw new Error(process.env.NODE_ENV === "production" ? Q(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
|
|
4541
4559
|
if (typeof w.type != "string")
|
|
4542
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4560
|
+
throw new Error(process.env.NODE_ENV === "production" ? Q(17) : `Action "type" property must be a string. Instead, the actual type was: '${je(w.type)}'. Value was: '${w.type}' (stringified)`);
|
|
4543
4561
|
if (u)
|
|
4544
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4562
|
+
throw new Error(process.env.NODE_ENV === "production" ? Q(9) : "Reducers may not dispatch actions.");
|
|
4545
4563
|
try {
|
|
4546
4564
|
u = !0, i = n(i, w);
|
|
4547
4565
|
} finally {
|
|
@@ -4553,12 +4571,12 @@ function Vs(e, t, r) {
|
|
|
4553
4571
|
}
|
|
4554
4572
|
function p(w) {
|
|
4555
4573
|
if (typeof w != "function")
|
|
4556
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4574
|
+
throw new Error(process.env.NODE_ENV === "production" ? Q(10) : `Expected the nextReducer to be a function. Instead, received: '${je(w)}`);
|
|
4557
4575
|
n = w, h({
|
|
4558
4576
|
type: Ge.REPLACE
|
|
4559
4577
|
});
|
|
4560
4578
|
}
|
|
4561
|
-
function
|
|
4579
|
+
function g() {
|
|
4562
4580
|
const w = d;
|
|
4563
4581
|
return {
|
|
4564
4582
|
/**
|
|
@@ -4571,7 +4589,7 @@ function Vs(e, t, r) {
|
|
|
4571
4589
|
*/
|
|
4572
4590
|
subscribe(y) {
|
|
4573
4591
|
if (typeof y != "object" || y === null)
|
|
4574
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4592
|
+
throw new Error(process.env.NODE_ENV === "production" ? Q(11) : `Expected the observer to be an object. Instead, received: '${je(y)}'`);
|
|
4575
4593
|
function b() {
|
|
4576
4594
|
const S = y;
|
|
4577
4595
|
S.next && S.next(f());
|
|
@@ -4592,7 +4610,7 @@ function Vs(e, t, r) {
|
|
|
4592
4610
|
subscribe: d,
|
|
4593
4611
|
getState: f,
|
|
4594
4612
|
replaceReducer: p,
|
|
4595
|
-
[po]:
|
|
4613
|
+
[po]: g
|
|
4596
4614
|
};
|
|
4597
4615
|
}
|
|
4598
4616
|
function mo(e) {
|
|
@@ -4602,7 +4620,7 @@ function mo(e) {
|
|
|
4602
4620
|
} catch {
|
|
4603
4621
|
}
|
|
4604
4622
|
}
|
|
4605
|
-
function
|
|
4623
|
+
function Wl(e, t, r, n) {
|
|
4606
4624
|
const i = Object.keys(t), o = r && r.type === Ge.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer";
|
|
4607
4625
|
if (i.length === 0)
|
|
4608
4626
|
return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";
|
|
@@ -4614,20 +4632,20 @@ function ql(e, t, r, n) {
|
|
|
4614
4632
|
}), !(r && r.type === Ge.REPLACE) && s.length > 0)
|
|
4615
4633
|
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.`;
|
|
4616
4634
|
}
|
|
4617
|
-
function
|
|
4635
|
+
function ql(e) {
|
|
4618
4636
|
Object.keys(e).forEach((t) => {
|
|
4619
4637
|
const r = e[t];
|
|
4620
4638
|
if (typeof r(void 0, {
|
|
4621
4639
|
type: Ge.INIT
|
|
4622
4640
|
}) > "u")
|
|
4623
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4641
|
+
throw new Error(process.env.NODE_ENV === "production" ? Q(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.`);
|
|
4624
4642
|
if (typeof r(void 0, {
|
|
4625
4643
|
type: Ge.PROBE_UNKNOWN_ACTION()
|
|
4626
4644
|
}) > "u")
|
|
4627
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4645
|
+
throw new Error(process.env.NODE_ENV === "production" ? Q(13) : `The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Ge.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.`);
|
|
4628
4646
|
});
|
|
4629
4647
|
}
|
|
4630
|
-
function
|
|
4648
|
+
function zs(e) {
|
|
4631
4649
|
const t = Object.keys(e), r = {};
|
|
4632
4650
|
for (let s = 0; s < t.length; s++) {
|
|
4633
4651
|
const a = t[s];
|
|
@@ -4638,7 +4656,7 @@ function $s(e) {
|
|
|
4638
4656
|
process.env.NODE_ENV !== "production" && (i = {});
|
|
4639
4657
|
let o;
|
|
4640
4658
|
try {
|
|
4641
|
-
|
|
4659
|
+
ql(r);
|
|
4642
4660
|
} catch (s) {
|
|
4643
4661
|
o = s;
|
|
4644
4662
|
}
|
|
@@ -4646,18 +4664,18 @@ function $s(e) {
|
|
|
4646
4664
|
if (o)
|
|
4647
4665
|
throw o;
|
|
4648
4666
|
if (process.env.NODE_ENV !== "production") {
|
|
4649
|
-
const d =
|
|
4667
|
+
const d = Wl(a, r, u, i);
|
|
4650
4668
|
d && mo(d);
|
|
4651
4669
|
}
|
|
4652
4670
|
let l = !1;
|
|
4653
4671
|
const f = {};
|
|
4654
4672
|
for (let d = 0; d < n.length; d++) {
|
|
4655
|
-
const h = n[d], p = r[h],
|
|
4673
|
+
const h = n[d], p = r[h], g = a[h], E = p(g, u);
|
|
4656
4674
|
if (typeof E > "u") {
|
|
4657
4675
|
const w = u && u.type;
|
|
4658
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4676
|
+
throw new Error(process.env.NODE_ENV === "production" ? Q(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.`);
|
|
4659
4677
|
}
|
|
4660
|
-
f[h] = E, l = l || E !==
|
|
4678
|
+
f[h] = E, l = l || E !== g;
|
|
4661
4679
|
}
|
|
4662
4680
|
return l = l || n.length !== Object.keys(a).length, l ? f : a;
|
|
4663
4681
|
};
|
|
@@ -4669,7 +4687,7 @@ function Hl(...e) {
|
|
|
4669
4687
|
return (t) => (r, n) => {
|
|
4670
4688
|
const i = t(r, n);
|
|
4671
4689
|
let o = () => {
|
|
4672
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
4690
|
+
throw new Error(process.env.NODE_ENV === "production" ? Q(15) : "Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");
|
|
4673
4691
|
};
|
|
4674
4692
|
const s = {
|
|
4675
4693
|
getState: i.getState,
|
|
@@ -4681,10 +4699,10 @@ function Hl(...e) {
|
|
|
4681
4699
|
};
|
|
4682
4700
|
};
|
|
4683
4701
|
}
|
|
4684
|
-
function
|
|
4702
|
+
function Fs(e) {
|
|
4685
4703
|
return Jt(e) && "type" in e && typeof e.type == "string";
|
|
4686
4704
|
}
|
|
4687
|
-
var
|
|
4705
|
+
var Ls = Symbol.for("immer-nothing"), yo = Symbol.for("immer-draftable"), ae = Symbol.for("immer-state"), Yl = process.env.NODE_ENV !== "production" ? [
|
|
4688
4706
|
// All error codes, starting by 0:
|
|
4689
4707
|
function(e) {
|
|
4690
4708
|
return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
|
|
@@ -4715,7 +4733,7 @@ var zs = Symbol.for("immer-nothing"), yo = Symbol.for("immer-draftable"), oe = S
|
|
|
4715
4733
|
// Note: if more errors are added, the errorOffset in Patches.ts should be increased
|
|
4716
4734
|
// See Patches.ts for additional errors
|
|
4717
4735
|
] : [];
|
|
4718
|
-
function
|
|
4736
|
+
function re(e, ...t) {
|
|
4719
4737
|
if (process.env.NODE_ENV !== "production") {
|
|
4720
4738
|
const r = Yl[e], n = typeof r == "function" ? r.apply(null, t) : r;
|
|
4721
4739
|
throw new Error(`[Immer] ${n}`);
|
|
@@ -4724,38 +4742,38 @@ function ee(e, ...t) {
|
|
|
4724
4742
|
`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
|
|
4725
4743
|
);
|
|
4726
4744
|
}
|
|
4727
|
-
var
|
|
4745
|
+
var gt = Object.getPrototypeOf;
|
|
4728
4746
|
function Je(e) {
|
|
4729
|
-
return !!e && !!e[
|
|
4747
|
+
return !!e && !!e[ae];
|
|
4730
4748
|
}
|
|
4731
4749
|
function Ne(e) {
|
|
4732
4750
|
var t;
|
|
4733
|
-
return e ?
|
|
4751
|
+
return e ? Bs(e) || Array.isArray(e) || !!e[yo] || !!((t = e.constructor) != null && t[yo]) || Hr(e) || Yr(e) : !1;
|
|
4734
4752
|
}
|
|
4735
4753
|
var Gl = Object.prototype.constructor.toString();
|
|
4736
|
-
function
|
|
4754
|
+
function Bs(e) {
|
|
4737
4755
|
if (!e || typeof e != "object")
|
|
4738
4756
|
return !1;
|
|
4739
|
-
const t =
|
|
4757
|
+
const t = gt(e);
|
|
4740
4758
|
if (t === null)
|
|
4741
4759
|
return !0;
|
|
4742
4760
|
const r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
4743
4761
|
return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === Gl;
|
|
4744
4762
|
}
|
|
4745
4763
|
function Nr(e, t) {
|
|
4746
|
-
|
|
4764
|
+
qr(e) === 0 ? Reflect.ownKeys(e).forEach((r) => {
|
|
4747
4765
|
t(r, e[r], e);
|
|
4748
4766
|
}) : e.forEach((r, n) => t(n, r, e));
|
|
4749
4767
|
}
|
|
4750
|
-
function
|
|
4751
|
-
const t = e[
|
|
4768
|
+
function qr(e) {
|
|
4769
|
+
const t = e[ae];
|
|
4752
4770
|
return t ? t.type_ : Array.isArray(e) ? 1 : Hr(e) ? 2 : Yr(e) ? 3 : 0;
|
|
4753
4771
|
}
|
|
4754
4772
|
function In(e, t) {
|
|
4755
|
-
return
|
|
4773
|
+
return qr(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
|
|
4756
4774
|
}
|
|
4757
|
-
function
|
|
4758
|
-
const n =
|
|
4775
|
+
function Us(e, t, r) {
|
|
4776
|
+
const n = qr(e);
|
|
4759
4777
|
n === 2 ? e.set(t, r) : n === 3 ? e.add(r) : e[t] = r;
|
|
4760
4778
|
}
|
|
4761
4779
|
function Kl(e, t) {
|
|
@@ -4777,10 +4795,10 @@ function Dn(e, t) {
|
|
|
4777
4795
|
return new Set(e);
|
|
4778
4796
|
if (Array.isArray(e))
|
|
4779
4797
|
return Array.prototype.slice.call(e);
|
|
4780
|
-
const r =
|
|
4798
|
+
const r = Bs(e);
|
|
4781
4799
|
if (t === !0 || t === "class_only" && !r) {
|
|
4782
4800
|
const n = Object.getOwnPropertyDescriptors(e);
|
|
4783
|
-
delete n[
|
|
4801
|
+
delete n[ae];
|
|
4784
4802
|
let i = Reflect.ownKeys(n);
|
|
4785
4803
|
for (let o = 0; o < i.length; o++) {
|
|
4786
4804
|
const s = i[o], a = n[s];
|
|
@@ -4792,9 +4810,9 @@ function Dn(e, t) {
|
|
|
4792
4810
|
value: e[s]
|
|
4793
4811
|
});
|
|
4794
4812
|
}
|
|
4795
|
-
return Object.create(
|
|
4813
|
+
return Object.create(gt(e), n);
|
|
4796
4814
|
} else {
|
|
4797
|
-
const n =
|
|
4815
|
+
const n = gt(e);
|
|
4798
4816
|
if (n !== null && r)
|
|
4799
4817
|
return { ...e };
|
|
4800
4818
|
const i = Object.create(n);
|
|
@@ -4802,10 +4820,10 @@ function Dn(e, t) {
|
|
|
4802
4820
|
}
|
|
4803
4821
|
}
|
|
4804
4822
|
function ai(e, t = !1) {
|
|
4805
|
-
return Gr(e) || Je(e) || !Ne(e) || (
|
|
4823
|
+
return Gr(e) || Je(e) || !Ne(e) || (qr(e) > 1 && (e.set = e.add = e.clear = e.delete = Ql), Object.freeze(e), t && Object.entries(e).forEach(([r, n]) => ai(n, !0))), e;
|
|
4806
4824
|
}
|
|
4807
4825
|
function Ql() {
|
|
4808
|
-
|
|
4826
|
+
re(2);
|
|
4809
4827
|
}
|
|
4810
4828
|
function Gr(e) {
|
|
4811
4829
|
return Object.isFrozen(e);
|
|
@@ -4813,11 +4831,11 @@ function Gr(e) {
|
|
|
4813
4831
|
var Xl = {};
|
|
4814
4832
|
function Ze(e) {
|
|
4815
4833
|
const t = Xl[e];
|
|
4816
|
-
return t ||
|
|
4834
|
+
return t || re(0, e), t;
|
|
4817
4835
|
}
|
|
4818
|
-
var
|
|
4819
|
-
function
|
|
4820
|
-
return
|
|
4836
|
+
var Yt;
|
|
4837
|
+
function Ws() {
|
|
4838
|
+
return Yt;
|
|
4821
4839
|
}
|
|
4822
4840
|
function Jl(e, t) {
|
|
4823
4841
|
return {
|
|
@@ -4837,29 +4855,29 @@ function jn(e) {
|
|
|
4837
4855
|
Vn(e), e.drafts_.forEach(Zl), e.drafts_ = null;
|
|
4838
4856
|
}
|
|
4839
4857
|
function Vn(e) {
|
|
4840
|
-
e ===
|
|
4858
|
+
e === Yt && (Yt = e.parent_);
|
|
4841
4859
|
}
|
|
4842
4860
|
function vo(e) {
|
|
4843
|
-
return
|
|
4861
|
+
return Yt = Jl(Yt, e);
|
|
4844
4862
|
}
|
|
4845
4863
|
function Zl(e) {
|
|
4846
|
-
const t = e[
|
|
4864
|
+
const t = e[ae];
|
|
4847
4865
|
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
4848
4866
|
}
|
|
4849
4867
|
function bo(e, t) {
|
|
4850
4868
|
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
4851
4869
|
const r = t.drafts_[0];
|
|
4852
|
-
return e !== void 0 && e !== r ? (r[
|
|
4853
|
-
r[
|
|
4870
|
+
return e !== void 0 && e !== r ? (r[ae].modified_ && (jn(t), re(4)), Ne(e) && (e = Cr(t, e), t.parent_ || Rr(t, e)), t.patches_ && Ze("Patches").generateReplacementPatches_(
|
|
4871
|
+
r[ae].base_,
|
|
4854
4872
|
e,
|
|
4855
4873
|
t.patches_,
|
|
4856
4874
|
t.inversePatches_
|
|
4857
|
-
)) : e = Cr(t, r, []), jn(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !==
|
|
4875
|
+
)) : e = Cr(t, r, []), jn(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== Ls ? e : void 0;
|
|
4858
4876
|
}
|
|
4859
4877
|
function Cr(e, t, r) {
|
|
4860
4878
|
if (Gr(t))
|
|
4861
4879
|
return t;
|
|
4862
|
-
const n = t[
|
|
4880
|
+
const n = t[ae];
|
|
4863
4881
|
if (!n)
|
|
4864
4882
|
return Nr(
|
|
4865
4883
|
t,
|
|
@@ -4886,10 +4904,10 @@ function Cr(e, t, r) {
|
|
|
4886
4904
|
return n.copy_;
|
|
4887
4905
|
}
|
|
4888
4906
|
function wo(e, t, r, n, i, o, s) {
|
|
4889
|
-
if (process.env.NODE_ENV !== "production" && i === r &&
|
|
4907
|
+
if (process.env.NODE_ENV !== "production" && i === r && re(5), Je(i)) {
|
|
4890
4908
|
const a = o && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
4891
4909
|
!In(t.assigned_, n) ? o.concat(n) : void 0, u = Cr(e, i, a);
|
|
4892
|
-
if (
|
|
4910
|
+
if (Us(r, n, u), Je(u))
|
|
4893
4911
|
e.canAutoFreeze_ = !1;
|
|
4894
4912
|
else
|
|
4895
4913
|
return;
|
|
@@ -4907,7 +4925,7 @@ function ef(e, t) {
|
|
|
4907
4925
|
const r = Array.isArray(e), n = {
|
|
4908
4926
|
type_: r ? 1 : 0,
|
|
4909
4927
|
// Track which produce call this is associated with.
|
|
4910
|
-
scope_: t ? t.scope_ :
|
|
4928
|
+
scope_: t ? t.scope_ : Ws(),
|
|
4911
4929
|
// True for both shallow and deep changes.
|
|
4912
4930
|
modified_: !1,
|
|
4913
4931
|
// Used during finalization.
|
|
@@ -4928,13 +4946,13 @@ function ef(e, t) {
|
|
|
4928
4946
|
isManual_: !1
|
|
4929
4947
|
};
|
|
4930
4948
|
let i = n, o = ci;
|
|
4931
|
-
r && (i = [n], o =
|
|
4949
|
+
r && (i = [n], o = Gt);
|
|
4932
4950
|
const { revoke: s, proxy: a } = Proxy.revocable(i, o);
|
|
4933
4951
|
return n.draft_ = a, n.revoke_ = s, a;
|
|
4934
4952
|
}
|
|
4935
4953
|
var ci = {
|
|
4936
4954
|
get(e, t) {
|
|
4937
|
-
if (t ===
|
|
4955
|
+
if (t === ae)
|
|
4938
4956
|
return e;
|
|
4939
4957
|
const r = Be(e);
|
|
4940
4958
|
if (!In(r, t))
|
|
@@ -4949,11 +4967,11 @@ var ci = {
|
|
|
4949
4967
|
return Reflect.ownKeys(Be(e));
|
|
4950
4968
|
},
|
|
4951
4969
|
set(e, t, r) {
|
|
4952
|
-
const n =
|
|
4970
|
+
const n = qs(Be(e), t);
|
|
4953
4971
|
if (n != null && n.set)
|
|
4954
4972
|
return n.set.call(e.draft_, r), !0;
|
|
4955
4973
|
if (!e.modified_) {
|
|
4956
|
-
const i = dn(Be(e), t), o = i == null ? void 0 : i[
|
|
4974
|
+
const i = dn(Be(e), t), o = i == null ? void 0 : i[ae];
|
|
4957
4975
|
if (o && o.base_ === r)
|
|
4958
4976
|
return e.copy_[t] = r, e.assigned_[t] = !1, !0;
|
|
4959
4977
|
if (Kl(r, i) && (r !== void 0 || In(e.base_, t)))
|
|
@@ -4979,48 +4997,48 @@ var ci = {
|
|
|
4979
4997
|
};
|
|
4980
4998
|
},
|
|
4981
4999
|
defineProperty() {
|
|
4982
|
-
|
|
5000
|
+
re(11);
|
|
4983
5001
|
},
|
|
4984
5002
|
getPrototypeOf(e) {
|
|
4985
|
-
return
|
|
5003
|
+
return gt(e.base_);
|
|
4986
5004
|
},
|
|
4987
5005
|
setPrototypeOf() {
|
|
4988
|
-
|
|
5006
|
+
re(12);
|
|
4989
5007
|
}
|
|
4990
|
-
},
|
|
5008
|
+
}, Gt = {};
|
|
4991
5009
|
Nr(ci, (e, t) => {
|
|
4992
|
-
|
|
5010
|
+
Gt[e] = function() {
|
|
4993
5011
|
return arguments[0] = arguments[0][0], t.apply(this, arguments);
|
|
4994
5012
|
};
|
|
4995
5013
|
});
|
|
4996
|
-
|
|
4997
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) &&
|
|
5014
|
+
Gt.deleteProperty = function(e, t) {
|
|
5015
|
+
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && re(13), Gt.set.call(this, e, t, void 0);
|
|
4998
5016
|
};
|
|
4999
|
-
|
|
5000
|
-
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) &&
|
|
5017
|
+
Gt.set = function(e, t, r) {
|
|
5018
|
+
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && re(14), ci.set.call(this, e[0], t, r, e[0]);
|
|
5001
5019
|
};
|
|
5002
5020
|
function dn(e, t) {
|
|
5003
|
-
const r = e[
|
|
5021
|
+
const r = e[ae];
|
|
5004
5022
|
return (r ? Be(r) : e)[t];
|
|
5005
5023
|
}
|
|
5006
5024
|
function tf(e, t, r) {
|
|
5007
5025
|
var i;
|
|
5008
|
-
const n =
|
|
5026
|
+
const n = qs(t, r);
|
|
5009
5027
|
return n ? "value" in n ? n.value : (
|
|
5010
5028
|
// This is a very special case, if the prop is a getter defined by the
|
|
5011
5029
|
// prototype, we should invoke it with the draft as context!
|
|
5012
5030
|
(i = n.get) == null ? void 0 : i.call(e.draft_)
|
|
5013
5031
|
) : void 0;
|
|
5014
5032
|
}
|
|
5015
|
-
function
|
|
5033
|
+
function qs(e, t) {
|
|
5016
5034
|
if (!(t in e))
|
|
5017
5035
|
return;
|
|
5018
|
-
let r =
|
|
5036
|
+
let r = gt(e);
|
|
5019
5037
|
for (; r; ) {
|
|
5020
5038
|
const n = Object.getOwnPropertyDescriptor(r, t);
|
|
5021
5039
|
if (n)
|
|
5022
5040
|
return n;
|
|
5023
|
-
r =
|
|
5041
|
+
r = gt(r);
|
|
5024
5042
|
}
|
|
5025
5043
|
}
|
|
5026
5044
|
function $n(e) {
|
|
@@ -5043,7 +5061,7 @@ var rf = class {
|
|
|
5043
5061
|
return s.produce(u, (f) => r.call(this, f, ...l));
|
|
5044
5062
|
};
|
|
5045
5063
|
}
|
|
5046
|
-
typeof r != "function" &&
|
|
5064
|
+
typeof r != "function" && re(6), n !== void 0 && typeof n != "function" && re(7);
|
|
5047
5065
|
let i;
|
|
5048
5066
|
if (Ne(t)) {
|
|
5049
5067
|
const o = vo(this), s = Mn(t, void 0);
|
|
@@ -5055,13 +5073,13 @@ var rf = class {
|
|
|
5055
5073
|
}
|
|
5056
5074
|
return go(o, n), bo(i, o);
|
|
5057
5075
|
} else if (!t || typeof t != "object") {
|
|
5058
|
-
if (i = r(t), i === void 0 && (i = t), i ===
|
|
5076
|
+
if (i = r(t), i === void 0 && (i = t), i === Ls && (i = void 0), this.autoFreeze_ && ai(i, !0), n) {
|
|
5059
5077
|
const o = [], s = [];
|
|
5060
5078
|
Ze("Patches").generateReplacementPatches_(t, i, o, s), n(o, s);
|
|
5061
5079
|
}
|
|
5062
5080
|
return i;
|
|
5063
5081
|
} else
|
|
5064
|
-
|
|
5082
|
+
re(1, t);
|
|
5065
5083
|
}, this.produceWithPatches = (t, r) => {
|
|
5066
5084
|
if (typeof t == "function")
|
|
5067
5085
|
return (s, ...a) => this.produceWithPatches(s, (u) => t(u, ...a));
|
|
@@ -5072,13 +5090,13 @@ var rf = class {
|
|
|
5072
5090
|
}, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
|
|
5073
5091
|
}
|
|
5074
5092
|
createDraft(e) {
|
|
5075
|
-
Ne(e) ||
|
|
5093
|
+
Ne(e) || re(8), Je(e) && (e = nf(e));
|
|
5076
5094
|
const t = vo(this), r = Mn(e, void 0);
|
|
5077
|
-
return r[
|
|
5095
|
+
return r[ae].isManual_ = !0, Vn(t), r;
|
|
5078
5096
|
}
|
|
5079
5097
|
finishDraft(e, t) {
|
|
5080
|
-
const r = e && e[
|
|
5081
|
-
(!r || !r.isManual_) &&
|
|
5098
|
+
const r = e && e[ae];
|
|
5099
|
+
(!r || !r.isManual_) && re(9);
|
|
5082
5100
|
const { scope_: n } = r;
|
|
5083
5101
|
return go(n, t), bo(void 0, n);
|
|
5084
5102
|
}
|
|
@@ -5117,15 +5135,15 @@ var rf = class {
|
|
|
5117
5135
|
};
|
|
5118
5136
|
function Mn(e, t) {
|
|
5119
5137
|
const r = Hr(e) ? Ze("MapSet").proxyMap_(e, t) : Yr(e) ? Ze("MapSet").proxySet_(e, t) : ef(e, t);
|
|
5120
|
-
return (t ? t.scope_ :
|
|
5138
|
+
return (t ? t.scope_ : Ws()).drafts_.push(r), r;
|
|
5121
5139
|
}
|
|
5122
5140
|
function nf(e) {
|
|
5123
|
-
return Je(e) ||
|
|
5141
|
+
return Je(e) || re(10, e), Hs(e);
|
|
5124
5142
|
}
|
|
5125
|
-
function
|
|
5143
|
+
function Hs(e) {
|
|
5126
5144
|
if (!Ne(e) || Gr(e))
|
|
5127
5145
|
return e;
|
|
5128
|
-
const t = e[
|
|
5146
|
+
const t = e[ae];
|
|
5129
5147
|
let r;
|
|
5130
5148
|
if (t) {
|
|
5131
5149
|
if (!t.modified_)
|
|
@@ -5134,22 +5152,22 @@ function qs(e) {
|
|
|
5134
5152
|
} else
|
|
5135
5153
|
r = Dn(e, !0);
|
|
5136
5154
|
return Nr(r, (n, i) => {
|
|
5137
|
-
|
|
5155
|
+
Us(r, n, Hs(i));
|
|
5138
5156
|
}), t && (t.finalized_ = !1), r;
|
|
5139
5157
|
}
|
|
5140
|
-
var
|
|
5141
|
-
|
|
5142
|
-
|
|
5158
|
+
var ce = new rf(), Ys = ce.produce;
|
|
5159
|
+
ce.produceWithPatches.bind(
|
|
5160
|
+
ce
|
|
5143
5161
|
);
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
function
|
|
5162
|
+
ce.setAutoFreeze.bind(ce);
|
|
5163
|
+
ce.setUseStrictShallowCopy.bind(ce);
|
|
5164
|
+
ce.applyPatches.bind(ce);
|
|
5165
|
+
ce.createDraft.bind(ce);
|
|
5166
|
+
ce.finishDraft.bind(ce);
|
|
5167
|
+
function Gs(e) {
|
|
5150
5168
|
return ({ dispatch: r, getState: n }) => (i) => (o) => typeof o == "function" ? o(r, n, e) : i(o);
|
|
5151
5169
|
}
|
|
5152
|
-
var of =
|
|
5170
|
+
var of = Gs(), sf = Gs, af = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
|
|
5153
5171
|
if (arguments.length !== 0)
|
|
5154
5172
|
return typeof arguments[0] == "object" ? Pr : Pr.apply(null, arguments);
|
|
5155
5173
|
}, cf = (e) => e && typeof e.match == "function";
|
|
@@ -5175,7 +5193,7 @@ function _o(e, t) {
|
|
|
5175
5193
|
payload: n[0]
|
|
5176
5194
|
};
|
|
5177
5195
|
}
|
|
5178
|
-
return r.toString = () => `${e}`, r.type = e, r.match = (n) =>
|
|
5196
|
+
return r.toString = () => `${e}`, r.type = e, r.match = (n) => Fs(n) && n.type === e, r;
|
|
5179
5197
|
}
|
|
5180
5198
|
function uf(e) {
|
|
5181
5199
|
return typeof e == "function" && "type" in e && // hasMatchFunction only wants Matchers but I don't see the point in rewriting it
|
|
@@ -5194,7 +5212,7 @@ function ff(e = {}) {
|
|
|
5194
5212
|
} = e;
|
|
5195
5213
|
return () => (r) => (n) => (t(n) && console.warn(lf(n.type)), r(n));
|
|
5196
5214
|
}
|
|
5197
|
-
function
|
|
5215
|
+
function Ks(e, t) {
|
|
5198
5216
|
let r = 0;
|
|
5199
5217
|
return {
|
|
5200
5218
|
measureTime(n) {
|
|
@@ -5213,22 +5231,22 @@ It is disabled in production builds, so you don't need to worry about that.`);
|
|
|
5213
5231
|
}
|
|
5214
5232
|
};
|
|
5215
5233
|
}
|
|
5216
|
-
var
|
|
5234
|
+
var Qs = class Tt extends Array {
|
|
5217
5235
|
constructor(...t) {
|
|
5218
|
-
super(...t), Object.setPrototypeOf(this,
|
|
5236
|
+
super(...t), Object.setPrototypeOf(this, Tt.prototype);
|
|
5219
5237
|
}
|
|
5220
5238
|
static get [Symbol.species]() {
|
|
5221
|
-
return
|
|
5239
|
+
return Tt;
|
|
5222
5240
|
}
|
|
5223
5241
|
concat(...t) {
|
|
5224
5242
|
return super.concat.apply(this, t);
|
|
5225
5243
|
}
|
|
5226
5244
|
prepend(...t) {
|
|
5227
|
-
return t.length === 1 && Array.isArray(t[0]) ? new
|
|
5245
|
+
return t.length === 1 && Array.isArray(t[0]) ? new Tt(...t[0].concat(this)) : new Tt(...t.concat(this));
|
|
5228
5246
|
}
|
|
5229
5247
|
};
|
|
5230
5248
|
function Eo(e) {
|
|
5231
|
-
return Ne(e) ?
|
|
5249
|
+
return Ne(e) ? Ys(e, () => {
|
|
5232
5250
|
}) : e;
|
|
5233
5251
|
}
|
|
5234
5252
|
function So(e, t, r) {
|
|
@@ -5238,14 +5256,14 @@ function df(e) {
|
|
|
5238
5256
|
return typeof e != "object" || e == null || Object.isFrozen(e);
|
|
5239
5257
|
}
|
|
5240
5258
|
function hf(e, t, r) {
|
|
5241
|
-
const n =
|
|
5259
|
+
const n = Xs(e, t, r);
|
|
5242
5260
|
return {
|
|
5243
5261
|
detectMutations() {
|
|
5244
|
-
return
|
|
5262
|
+
return Js(e, t, n, r);
|
|
5245
5263
|
}
|
|
5246
5264
|
};
|
|
5247
5265
|
}
|
|
5248
|
-
function
|
|
5266
|
+
function Xs(e, t = [], r, n = "", i = /* @__PURE__ */ new Set()) {
|
|
5249
5267
|
const o = {
|
|
5250
5268
|
value: r
|
|
5251
5269
|
};
|
|
@@ -5253,12 +5271,12 @@ function Ks(e, t = [], r, n = "", i = /* @__PURE__ */ new Set()) {
|
|
|
5253
5271
|
i.add(r), o.children = {};
|
|
5254
5272
|
for (const s in r) {
|
|
5255
5273
|
const a = n ? n + "." + s : s;
|
|
5256
|
-
t.length && t.indexOf(a) !== -1 || (o.children[s] =
|
|
5274
|
+
t.length && t.indexOf(a) !== -1 || (o.children[s] = Xs(e, t, r[s], a));
|
|
5257
5275
|
}
|
|
5258
5276
|
}
|
|
5259
5277
|
return o;
|
|
5260
5278
|
}
|
|
5261
|
-
function
|
|
5279
|
+
function Js(e, t = [], r, n, i = !1, o = "") {
|
|
5262
5280
|
const s = r ? r.value : void 0, a = s === n;
|
|
5263
5281
|
if (i && !a && !Number.isNaN(n))
|
|
5264
5282
|
return {
|
|
@@ -5277,9 +5295,9 @@ function Qs(e, t = [], r, n, i = !1, o = "") {
|
|
|
5277
5295
|
const l = t.length > 0;
|
|
5278
5296
|
for (let f in u) {
|
|
5279
5297
|
const d = o ? o + "." + f : f;
|
|
5280
|
-
if (l && t.some((
|
|
5298
|
+
if (l && t.some((g) => g instanceof RegExp ? g.test(d) : d === g))
|
|
5281
5299
|
continue;
|
|
5282
|
-
const h =
|
|
5300
|
+
const h = Js(e, t, r.children[f], n[f], a, d);
|
|
5283
5301
|
if (h.wasMutated)
|
|
5284
5302
|
return h;
|
|
5285
5303
|
}
|
|
@@ -5315,25 +5333,25 @@ function pf(e = {}) {
|
|
|
5315
5333
|
}) => {
|
|
5316
5334
|
let u = a(), l = s(u), f;
|
|
5317
5335
|
return (d) => (h) => {
|
|
5318
|
-
const p =
|
|
5336
|
+
const p = Ks(o, "ImmutableStateInvariantMiddleware");
|
|
5319
5337
|
p.measureTime(() => {
|
|
5320
5338
|
if (u = a(), f = l.detectMutations(), l = s(u), f.wasMutated)
|
|
5321
5339
|
throw new Error(process.env.NODE_ENV === "production" ? L(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)`);
|
|
5322
5340
|
});
|
|
5323
|
-
const
|
|
5341
|
+
const g = d(h);
|
|
5324
5342
|
return p.measureTime(() => {
|
|
5325
5343
|
if (u = a(), f = l.detectMutations(), l = s(u), f.wasMutated)
|
|
5326
5344
|
throw new Error(process.env.NODE_ENV === "production" ? L(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)`);
|
|
5327
|
-
}), p.warnIfExceeded(),
|
|
5345
|
+
}), p.warnIfExceeded(), g;
|
|
5328
5346
|
};
|
|
5329
5347
|
};
|
|
5330
5348
|
}
|
|
5331
5349
|
}
|
|
5332
|
-
function
|
|
5350
|
+
function Zs(e) {
|
|
5333
5351
|
const t = typeof e;
|
|
5334
5352
|
return e == null || t === "string" || t === "boolean" || t === "number" || Array.isArray(e) || Jt(e);
|
|
5335
5353
|
}
|
|
5336
|
-
function zn(e, t = "", r =
|
|
5354
|
+
function zn(e, t = "", r = Zs, n, i = [], o) {
|
|
5337
5355
|
let s;
|
|
5338
5356
|
if (!r(e))
|
|
5339
5357
|
return {
|
|
@@ -5354,12 +5372,12 @@ function zn(e, t = "", r = Xs, n, i = [], o) {
|
|
|
5354
5372
|
return s;
|
|
5355
5373
|
}
|
|
5356
5374
|
}
|
|
5357
|
-
return o &&
|
|
5375
|
+
return o && ea(e) && o.add(e), !1;
|
|
5358
5376
|
}
|
|
5359
|
-
function
|
|
5377
|
+
function ea(e) {
|
|
5360
5378
|
if (!Object.isFrozen(e)) return !1;
|
|
5361
5379
|
for (const t of Object.values(e))
|
|
5362
|
-
if (!(typeof t != "object" || t === null) && !
|
|
5380
|
+
if (!(typeof t != "object" || t === null) && !ea(t))
|
|
5363
5381
|
return !1;
|
|
5364
5382
|
return !0;
|
|
5365
5383
|
}
|
|
@@ -5368,7 +5386,7 @@ function mf(e = {}) {
|
|
|
5368
5386
|
return () => (t) => (r) => t(r);
|
|
5369
5387
|
{
|
|
5370
5388
|
const {
|
|
5371
|
-
isSerializable: t =
|
|
5389
|
+
isSerializable: t = Zs,
|
|
5372
5390
|
getEntries: r,
|
|
5373
5391
|
ignoredActions: n = [],
|
|
5374
5392
|
ignoredActionPaths: i = ["meta.arg", "meta.baseQueryMeta"],
|
|
@@ -5379,9 +5397,9 @@ function mf(e = {}) {
|
|
|
5379
5397
|
disableCache: l = !1
|
|
5380
5398
|
} = e, f = !l && WeakSet ? /* @__PURE__ */ new WeakSet() : void 0;
|
|
5381
5399
|
return (d) => (h) => (p) => {
|
|
5382
|
-
if (!
|
|
5400
|
+
if (!Fs(p))
|
|
5383
5401
|
return h(p);
|
|
5384
|
-
const
|
|
5402
|
+
const g = h(p), E = Ks(s, "SerializableStateInvariantMiddleware");
|
|
5385
5403
|
return !u && !(n.length && n.indexOf(p.type) !== -1) && E.measureTime(() => {
|
|
5386
5404
|
const w = zn(p, "", t, r, i, f);
|
|
5387
5405
|
if (w) {
|
|
@@ -5405,7 +5423,7 @@ Take a look at the logic that dispatched this action: `, p, `
|
|
|
5405
5423
|
Take a look at the reducer(s) handling this action type: ${p.type}.
|
|
5406
5424
|
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`);
|
|
5407
5425
|
}
|
|
5408
|
-
}), E.warnIfExceeded()),
|
|
5426
|
+
}), E.warnIfExceeded()), g;
|
|
5409
5427
|
};
|
|
5410
5428
|
}
|
|
5411
5429
|
}
|
|
@@ -5419,7 +5437,7 @@ var yf = () => function(t) {
|
|
|
5419
5437
|
serializableCheck: i = !0,
|
|
5420
5438
|
actionCreatorCheck: o = !0
|
|
5421
5439
|
} = t ?? {};
|
|
5422
|
-
let s = new
|
|
5440
|
+
let s = new Qs();
|
|
5423
5441
|
if (r && (ur(r) ? s.push(of) : s.push(sf(r.extraArgument))), process.env.NODE_ENV !== "production") {
|
|
5424
5442
|
if (n) {
|
|
5425
5443
|
let a = {};
|
|
@@ -5472,7 +5490,7 @@ var yf = () => function(t) {
|
|
|
5472
5490
|
const {
|
|
5473
5491
|
autoBatch: n = !0
|
|
5474
5492
|
} = r ?? {};
|
|
5475
|
-
let i = new
|
|
5493
|
+
let i = new Qs(e);
|
|
5476
5494
|
return n && i.push(vf(typeof n == "object" ? n : void 0)), i;
|
|
5477
5495
|
};
|
|
5478
5496
|
function wf(e) {
|
|
@@ -5487,7 +5505,7 @@ function wf(e) {
|
|
|
5487
5505
|
if (typeof r == "function")
|
|
5488
5506
|
a = r;
|
|
5489
5507
|
else if (Jt(r))
|
|
5490
|
-
a =
|
|
5508
|
+
a = zs(r);
|
|
5491
5509
|
else
|
|
5492
5510
|
throw new Error(process.env.NODE_ENV === "production" ? L(1) : "`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");
|
|
5493
5511
|
if (process.env.NODE_ENV !== "production" && n && typeof n != "function")
|
|
@@ -5498,7 +5516,7 @@ function wf(e) {
|
|
|
5498
5516
|
throw new Error(process.env.NODE_ENV === "production" ? L(3) : "when using a middleware builder function, an array of middleware must be returned");
|
|
5499
5517
|
} else
|
|
5500
5518
|
u = t();
|
|
5501
|
-
if (process.env.NODE_ENV !== "production" && u.some((
|
|
5519
|
+
if (process.env.NODE_ENV !== "production" && u.some((g) => typeof g != "function"))
|
|
5502
5520
|
throw new Error(process.env.NODE_ENV === "production" ? L(4) : "each middleware provided to configureStore must be a function");
|
|
5503
5521
|
let l = Pr;
|
|
5504
5522
|
i && (l = af({
|
|
@@ -5512,13 +5530,13 @@ function wf(e) {
|
|
|
5512
5530
|
let h = typeof s == "function" ? s(d) : d();
|
|
5513
5531
|
if (process.env.NODE_ENV !== "production" && !Array.isArray(h))
|
|
5514
5532
|
throw new Error(process.env.NODE_ENV === "production" ? L(6) : "`enhancers` callback must return an array");
|
|
5515
|
-
if (process.env.NODE_ENV !== "production" && h.some((
|
|
5533
|
+
if (process.env.NODE_ENV !== "production" && h.some((g) => typeof g != "function"))
|
|
5516
5534
|
throw new Error(process.env.NODE_ENV === "production" ? L(7) : "each enhancer provided to configureStore must be a function");
|
|
5517
5535
|
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`");
|
|
5518
5536
|
const p = l(...h);
|
|
5519
|
-
return
|
|
5537
|
+
return Ms(a, o, p);
|
|
5520
5538
|
}
|
|
5521
|
-
function
|
|
5539
|
+
function ta(e) {
|
|
5522
5540
|
const t = {}, r = [];
|
|
5523
5541
|
let n;
|
|
5524
5542
|
const i = {
|
|
@@ -5558,7 +5576,7 @@ function _f(e) {
|
|
|
5558
5576
|
function Ef(e, t) {
|
|
5559
5577
|
if (process.env.NODE_ENV !== "production" && typeof t == "object")
|
|
5560
5578
|
throw new Error(process.env.NODE_ENV === "production" ? L(8) : "The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
|
|
5561
|
-
let [r, n, i] =
|
|
5579
|
+
let [r, n, i] = ta(t), o;
|
|
5562
5580
|
if (_f(e))
|
|
5563
5581
|
o = () => Eo(e());
|
|
5564
5582
|
else {
|
|
@@ -5578,7 +5596,7 @@ function Ef(e, t) {
|
|
|
5578
5596
|
return p === void 0 ? f : p;
|
|
5579
5597
|
} else {
|
|
5580
5598
|
if (Ne(f))
|
|
5581
|
-
return
|
|
5599
|
+
return Ys(f, (h) => d(h, u));
|
|
5582
5600
|
{
|
|
5583
5601
|
const h = d(f, u);
|
|
5584
5602
|
if (h === void 0) {
|
|
@@ -5649,7 +5667,7 @@ function kf({
|
|
|
5649
5667
|
function d() {
|
|
5650
5668
|
if (process.env.NODE_ENV !== "production" && typeof i.extraReducers == "object")
|
|
5651
5669
|
throw new Error(process.env.NODE_ENV === "production" ? L(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
|
|
5652
|
-
const [m = {}, S = [], O = void 0] = typeof i.extraReducers == "function" ?
|
|
5670
|
+
const [m = {}, S = [], O = void 0] = typeof i.extraReducers == "function" ? ta(i.extraReducers) : [i.extraReducers], P = {
|
|
5653
5671
|
...m,
|
|
5654
5672
|
...l.sliceCaseReducersByType
|
|
5655
5673
|
};
|
|
@@ -5664,12 +5682,12 @@ function kf({
|
|
|
5664
5682
|
});
|
|
5665
5683
|
}
|
|
5666
5684
|
const h = (m) => m, p = /* @__PURE__ */ new Map();
|
|
5667
|
-
let
|
|
5685
|
+
let g;
|
|
5668
5686
|
function E(m, S) {
|
|
5669
|
-
return
|
|
5687
|
+
return g || (g = d()), g(m, S);
|
|
5670
5688
|
}
|
|
5671
5689
|
function w() {
|
|
5672
|
-
return
|
|
5690
|
+
return g || (g = d()), g.getInitialState();
|
|
5673
5691
|
}
|
|
5674
5692
|
function y(m, S = !1) {
|
|
5675
5693
|
function O(k) {
|
|
@@ -5686,8 +5704,8 @@ function kf({
|
|
|
5686
5704
|
const D = So(p, S, () => /* @__PURE__ */ new WeakMap());
|
|
5687
5705
|
return So(D, k, () => {
|
|
5688
5706
|
const M = {};
|
|
5689
|
-
for (const [
|
|
5690
|
-
M[
|
|
5707
|
+
for (const [G, U] of Object.entries(i.selectors ?? {}))
|
|
5708
|
+
M[G] = Of(U, k, w, S);
|
|
5691
5709
|
return M;
|
|
5692
5710
|
});
|
|
5693
5711
|
}
|
|
@@ -5817,19 +5835,19 @@ function L(e) {
|
|
|
5817
5835
|
}
|
|
5818
5836
|
const If = {
|
|
5819
5837
|
cardPosition: "transit-to-home"
|
|
5820
|
-
},
|
|
5838
|
+
}, ra = Pf({
|
|
5821
5839
|
name: "navigation",
|
|
5822
5840
|
initialState: If,
|
|
5823
5841
|
reducers: {
|
|
5824
5842
|
setCardState: (e, t) => (e.cardPosition = t.payload.state, e)
|
|
5825
5843
|
}
|
|
5826
|
-
}), { setCardState: Bf } =
|
|
5827
|
-
navigation:
|
|
5844
|
+
}), { setCardState: Bf } = ra.actions, Df = zs({
|
|
5845
|
+
navigation: ra.reducer
|
|
5828
5846
|
}), Uf = wf({
|
|
5829
5847
|
reducer: Df
|
|
5830
5848
|
});
|
|
5831
5849
|
export {
|
|
5832
|
-
|
|
5850
|
+
cs as AnimatedText,
|
|
5833
5851
|
zf as BackButton,
|
|
5834
5852
|
$f as BannerButton,
|
|
5835
5853
|
Mf as CircleIconButton,
|