arpeggi-framer-components 0.0.26 → 0.0.27
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +878 -878
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +23 -23
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
var Ka = Object.defineProperty;
|
2
2
|
var Ja = (e, t, i) => t in e ? Ka(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
3
|
-
var
|
3
|
+
var Yt = (e, t, i) => Ja(e, typeof t != "symbol" ? t + "" : t, i);
|
4
4
|
import * as Xa from "react";
|
5
|
-
import
|
5
|
+
import pe, { useMemo as Ze, useRef as be, useReducer as Za, useEffect as $t, useCallback as Ce, forwardRef as Qa, useImperativeHandle as eo, Fragment as to, useState as ci, createContext as Ir, useLayoutEffect as no, useContext as li, useDebugValue as Br } from "react";
|
6
6
|
function zr(e) {
|
7
7
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
8
8
|
}
|
9
|
-
var
|
9
|
+
var Kt = { exports: {} }, Pt = {};
|
10
10
|
/**
|
11
11
|
* @license React
|
12
12
|
* react-jsx-runtime.production.min.js
|
@@ -16,11 +16,11 @@ var Yt = { exports: {} }, Ft = {};
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
18
18
|
*/
|
19
|
-
var
|
19
|
+
var Ci;
|
20
20
|
function io() {
|
21
|
-
if (
|
22
|
-
|
23
|
-
var e =
|
21
|
+
if (Ci) return Pt;
|
22
|
+
Ci = 1;
|
23
|
+
var e = pe, t = Symbol.for("react.element"), i = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
24
24
|
function o(s, c, p) {
|
25
25
|
var l, u = {}, f = null, m = null;
|
26
26
|
p !== void 0 && (f = "" + p), c.key !== void 0 && (f = "" + c.key), c.ref !== void 0 && (m = c.ref);
|
@@ -28,9 +28,9 @@ function io() {
|
|
28
28
|
if (s && s.defaultProps) for (l in c = s.defaultProps, c) u[l] === void 0 && (u[l] = c[l]);
|
29
29
|
return { $$typeof: t, type: s, key: f, ref: m, props: u, _owner: r.current };
|
30
30
|
}
|
31
|
-
return
|
31
|
+
return Pt.Fragment = i, Pt.jsx = o, Pt.jsxs = o, Pt;
|
32
32
|
}
|
33
|
-
var
|
33
|
+
var It = {};
|
34
34
|
/**
|
35
35
|
* @license React
|
36
36
|
* react-jsx-runtime.development.js
|
@@ -40,10 +40,10 @@ var Pt = {};
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
42
42
|
*/
|
43
|
-
var
|
43
|
+
var Ai;
|
44
44
|
function ro() {
|
45
|
-
return
|
46
|
-
var e =
|
45
|
+
return Ai || (Ai = 1, process.env.NODE_ENV !== "production" && function() {
|
46
|
+
var e = pe, t = Symbol.for("react.element"), i = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), v = Symbol.iterator, g = "@@iterator";
|
47
47
|
function w(d) {
|
48
48
|
if (d === null || typeof d != "object")
|
49
49
|
return null;
|
@@ -60,31 +60,31 @@ function ro() {
|
|
60
60
|
}
|
61
61
|
function _(d, R, A) {
|
62
62
|
{
|
63
|
-
var Y = x.ReactDebugCurrentFrame,
|
64
|
-
|
65
|
-
var
|
63
|
+
var Y = x.ReactDebugCurrentFrame, se = Y.getStackAddendum();
|
64
|
+
se !== "" && (R += "%s", A = A.concat([se]));
|
65
|
+
var he = A.map(function(ie) {
|
66
66
|
return String(ie);
|
67
67
|
});
|
68
|
-
|
68
|
+
he.unshift("Warning: " + R), Function.prototype.apply.call(console[d], console, he);
|
69
69
|
}
|
70
70
|
}
|
71
|
-
var T = !1, b = !1,
|
71
|
+
var T = !1, b = !1, j = !1, N = !1, D = !1, G;
|
72
72
|
G = Symbol.for("react.module.reference");
|
73
73
|
function V(d) {
|
74
|
-
return !!(typeof d == "string" || typeof d == "function" || d === n || d === a ||
|
74
|
+
return !!(typeof d == "string" || typeof d == "function" || d === n || d === a || D || d === r || d === p || d === l || N || d === m || T || b || j || typeof d == "object" && d !== null && (d.$$typeof === f || d.$$typeof === u || d.$$typeof === o || d.$$typeof === s || d.$$typeof === c || // This needs to include all possible module reference object
|
75
75
|
// types supported by any Flight configuration anywhere since
|
76
76
|
// we don't know which Flight build this will end up being used
|
77
77
|
// with.
|
78
78
|
d.$$typeof === G || d.getModuleId !== void 0));
|
79
79
|
}
|
80
|
-
function
|
80
|
+
function ae(d, R, A) {
|
81
81
|
var Y = d.displayName;
|
82
82
|
if (Y)
|
83
83
|
return Y;
|
84
|
-
var
|
85
|
-
return
|
84
|
+
var se = R.displayName || R.name || "";
|
85
|
+
return se !== "" ? A + "(" + se + ")" : A;
|
86
86
|
}
|
87
|
-
function
|
87
|
+
function ve(d) {
|
88
88
|
return d.displayName || "Context";
|
89
89
|
}
|
90
90
|
function te(d) {
|
@@ -112,19 +112,19 @@ function ro() {
|
|
112
112
|
switch (d.$$typeof) {
|
113
113
|
case s:
|
114
114
|
var R = d;
|
115
|
-
return
|
115
|
+
return ve(R) + ".Consumer";
|
116
116
|
case o:
|
117
117
|
var A = d;
|
118
|
-
return
|
118
|
+
return ve(A._context) + ".Provider";
|
119
119
|
case c:
|
120
|
-
return
|
120
|
+
return ae(d, d.render, "ForwardRef");
|
121
121
|
case u:
|
122
122
|
var Y = d.displayName || null;
|
123
123
|
return Y !== null ? Y : te(d.type) || "Memo";
|
124
124
|
case f: {
|
125
|
-
var
|
125
|
+
var se = d, he = se._payload, ie = se._init;
|
126
126
|
try {
|
127
|
-
return te(ie(
|
127
|
+
return te(ie(he));
|
128
128
|
} catch {
|
129
129
|
return null;
|
130
130
|
}
|
@@ -132,14 +132,14 @@ function ro() {
|
|
132
132
|
}
|
133
133
|
return null;
|
134
134
|
}
|
135
|
-
var U = Object.assign,
|
135
|
+
var U = Object.assign, ue = 0, Se, Re, de, we, S, O, I;
|
136
136
|
function q() {
|
137
137
|
}
|
138
138
|
q.__reactDisabledLog = !0;
|
139
139
|
function B() {
|
140
140
|
{
|
141
|
-
if (
|
142
|
-
Se = console.log, Re = console.info,
|
141
|
+
if (ue === 0) {
|
142
|
+
Se = console.log, Re = console.info, de = console.warn, we = console.error, S = console.group, O = console.groupCollapsed, I = console.groupEnd;
|
143
143
|
var d = {
|
144
144
|
configurable: !0,
|
145
145
|
enumerable: !0,
|
@@ -156,12 +156,12 @@ function ro() {
|
|
156
156
|
groupEnd: d
|
157
157
|
});
|
158
158
|
}
|
159
|
-
|
159
|
+
ue++;
|
160
160
|
}
|
161
161
|
}
|
162
162
|
function H() {
|
163
163
|
{
|
164
|
-
if (
|
164
|
+
if (ue--, ue === 0) {
|
165
165
|
var d = {
|
166
166
|
configurable: !0,
|
167
167
|
enumerable: !0,
|
@@ -175,7 +175,7 @@ function ro() {
|
|
175
175
|
value: Re
|
176
176
|
}),
|
177
177
|
warn: U({}, d, {
|
178
|
-
value:
|
178
|
+
value: de
|
179
179
|
}),
|
180
180
|
error: U({}, d, {
|
181
181
|
value: we
|
@@ -191,7 +191,7 @@ function ro() {
|
|
191
191
|
})
|
192
192
|
});
|
193
193
|
}
|
194
|
-
|
194
|
+
ue < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
195
195
|
}
|
196
196
|
}
|
197
197
|
var z = x.ReactCurrentDispatcher, W;
|
@@ -200,8 +200,8 @@ function ro() {
|
|
200
200
|
if (W === void 0)
|
201
201
|
try {
|
202
202
|
throw Error();
|
203
|
-
} catch (
|
204
|
-
var Y =
|
203
|
+
} catch (se) {
|
204
|
+
var Y = se.stack.trim().match(/\n( *(at )?)/);
|
205
205
|
W = Y && Y[1] || "";
|
206
206
|
}
|
207
207
|
return `
|
@@ -210,8 +210,8 @@ function ro() {
|
|
210
210
|
}
|
211
211
|
var ee = !1, L;
|
212
212
|
{
|
213
|
-
var
|
214
|
-
L = new
|
213
|
+
var ge = typeof WeakMap == "function" ? WeakMap : Map;
|
214
|
+
L = new ge();
|
215
215
|
}
|
216
216
|
function y(d, R) {
|
217
217
|
if (!d || ee)
|
@@ -223,10 +223,10 @@ function ro() {
|
|
223
223
|
}
|
224
224
|
var Y;
|
225
225
|
ee = !0;
|
226
|
-
var
|
226
|
+
var se = Error.prepareStackTrace;
|
227
227
|
Error.prepareStackTrace = void 0;
|
228
|
-
var
|
229
|
-
|
228
|
+
var he;
|
229
|
+
he = z.current, z.current = null, B();
|
230
230
|
try {
|
231
231
|
if (R) {
|
232
232
|
var ie = function() {
|
@@ -279,10 +279,10 @@ function ro() {
|
|
279
279
|
}
|
280
280
|
}
|
281
281
|
} finally {
|
282
|
-
ee = !1, z.current =
|
282
|
+
ee = !1, z.current = he, H(), Error.prepareStackTrace = se;
|
283
283
|
}
|
284
|
-
var gt = d ? d.displayName || d.name : "",
|
285
|
-
return typeof d == "function" && L.set(d,
|
284
|
+
var gt = d ? d.displayName || d.name : "", _i = gt ? K(gt) : "";
|
285
|
+
return typeof d == "function" && L.set(d, _i), _i;
|
286
286
|
}
|
287
287
|
function F(d, R, A) {
|
288
288
|
return y(d, !1);
|
@@ -311,16 +311,16 @@ function ro() {
|
|
311
311
|
case u:
|
312
312
|
return M(d.type, R, A);
|
313
313
|
case f: {
|
314
|
-
var Y = d,
|
314
|
+
var Y = d, se = Y._payload, he = Y._init;
|
315
315
|
try {
|
316
|
-
return M(
|
316
|
+
return M(he(se), R, A);
|
317
317
|
} catch {
|
318
318
|
}
|
319
319
|
}
|
320
320
|
}
|
321
321
|
return "";
|
322
322
|
}
|
323
|
-
var
|
323
|
+
var fe = Object.prototype.hasOwnProperty, Te = {}, X = x.ReactDebugCurrentFrame;
|
324
324
|
function Q(d) {
|
325
325
|
if (d) {
|
326
326
|
var R = d._owner, A = M(d.type, d._source, R ? R.type : null);
|
@@ -328,11 +328,11 @@ function ro() {
|
|
328
328
|
} else
|
329
329
|
X.setExtraStackFrame(null);
|
330
330
|
}
|
331
|
-
function Ee(d, R, A, Y,
|
331
|
+
function Ee(d, R, A, Y, se) {
|
332
332
|
{
|
333
|
-
var
|
333
|
+
var he = Function.call.bind(fe);
|
334
334
|
for (var ie in d)
|
335
|
-
if (
|
335
|
+
if (he(d, ie)) {
|
336
336
|
var ne = void 0;
|
337
337
|
try {
|
338
338
|
if (typeof d[ie] != "function") {
|
@@ -343,7 +343,7 @@ function ro() {
|
|
343
343
|
} catch (_e) {
|
344
344
|
ne = _e;
|
345
345
|
}
|
346
|
-
ne && !(ne instanceof Error) && (Q(
|
346
|
+
ne && !(ne instanceof Error) && (Q(se), k("%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).", Y || "React class", A, ie, typeof ne), Q(null)), ne instanceof Error && !(ne.message in Te) && (Te[ne.message] = !0, Q(se), k("Failed %s type: %s", A, ne.message), Q(null));
|
347
347
|
}
|
348
348
|
}
|
349
349
|
}
|
@@ -367,27 +367,27 @@ function ro() {
|
|
367
367
|
function C(d) {
|
368
368
|
return "" + d;
|
369
369
|
}
|
370
|
-
function
|
370
|
+
function oe(d) {
|
371
371
|
if (E(d))
|
372
372
|
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(d)), C(d);
|
373
373
|
}
|
374
|
-
var
|
374
|
+
var me = x.ReactCurrentOwner, ke = {
|
375
375
|
key: !0,
|
376
376
|
ref: !0,
|
377
377
|
__self: !0,
|
378
378
|
__source: !0
|
379
379
|
}, et, Je, it;
|
380
380
|
it = {};
|
381
|
-
function
|
382
|
-
if (
|
381
|
+
function Ot(d) {
|
382
|
+
if (fe.call(d, "ref")) {
|
383
383
|
var R = Object.getOwnPropertyDescriptor(d, "ref").get;
|
384
384
|
if (R && R.isReactWarning)
|
385
385
|
return !1;
|
386
386
|
}
|
387
387
|
return d.ref !== void 0;
|
388
388
|
}
|
389
|
-
function
|
390
|
-
if (
|
389
|
+
function _t(d) {
|
390
|
+
if (fe.call(d, "key")) {
|
391
391
|
var R = Object.getOwnPropertyDescriptor(d, "key").get;
|
392
392
|
if (R && R.isReactWarning)
|
393
393
|
return !1;
|
@@ -395,12 +395,12 @@ function ro() {
|
|
395
395
|
return d.key !== void 0;
|
396
396
|
}
|
397
397
|
function xt(d, R) {
|
398
|
-
if (typeof d.ref == "string" &&
|
399
|
-
var A = te(
|
400
|
-
it[A] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', te(
|
398
|
+
if (typeof d.ref == "string" && me.current && R && me.current.stateNode !== R) {
|
399
|
+
var A = te(me.current.type);
|
400
|
+
it[A] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', te(me.current.type), d.ref), it[A] = !0);
|
401
401
|
}
|
402
402
|
}
|
403
|
-
function
|
403
|
+
function Ct(d, R) {
|
404
404
|
{
|
405
405
|
var A = function() {
|
406
406
|
et || (et = !0, k("%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)", R));
|
@@ -411,7 +411,7 @@ function ro() {
|
|
411
411
|
});
|
412
412
|
}
|
413
413
|
}
|
414
|
-
function
|
414
|
+
function At(d, R) {
|
415
415
|
{
|
416
416
|
var A = function() {
|
417
417
|
Je || (Je = !0, k("%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)", R));
|
@@ -422,7 +422,7 @@ function ro() {
|
|
422
422
|
});
|
423
423
|
}
|
424
424
|
}
|
425
|
-
var
|
425
|
+
var jt = function(d, R, A, Y, se, he, ie) {
|
426
426
|
var ne = {
|
427
427
|
// This tag allows us to uniquely identify this as a React Element
|
428
428
|
$$typeof: t,
|
@@ -432,7 +432,7 @@ function ro() {
|
|
432
432
|
ref: A,
|
433
433
|
props: ie,
|
434
434
|
// Record the component responsible for creating this element.
|
435
|
-
_owner:
|
435
|
+
_owner: he
|
436
436
|
};
|
437
437
|
return ne._store = {}, Object.defineProperty(ne._store, "validated", {
|
438
438
|
configurable: !1,
|
@@ -448,44 +448,44 @@ function ro() {
|
|
448
448
|
configurable: !1,
|
449
449
|
enumerable: !1,
|
450
450
|
writable: !1,
|
451
|
-
value:
|
451
|
+
value: se
|
452
452
|
}), Object.freeze && (Object.freeze(ne.props), Object.freeze(ne)), ne;
|
453
453
|
};
|
454
|
-
function Dt(d, R, A, Y,
|
454
|
+
function Dt(d, R, A, Y, se) {
|
455
455
|
{
|
456
|
-
var
|
457
|
-
A !== void 0 && (
|
458
|
-
for (
|
459
|
-
|
456
|
+
var he, ie = {}, ne = null, Pe = null;
|
457
|
+
A !== void 0 && (oe(A), ne = "" + A), _t(R) && (oe(R.key), ne = "" + R.key), Ot(R) && (Pe = R.ref, xt(R, se));
|
458
|
+
for (he in R)
|
459
|
+
fe.call(R, he) && !ke.hasOwnProperty(he) && (ie[he] = R[he]);
|
460
460
|
if (d && d.defaultProps) {
|
461
461
|
var _e = d.defaultProps;
|
462
|
-
for (
|
463
|
-
ie[
|
462
|
+
for (he in _e)
|
463
|
+
ie[he] === void 0 && (ie[he] = _e[he]);
|
464
464
|
}
|
465
465
|
if (ne || Pe) {
|
466
466
|
var Ae = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
467
|
-
ne &&
|
467
|
+
ne && Ct(ie, Ae), Pe && At(ie, Ae);
|
468
468
|
}
|
469
|
-
return
|
469
|
+
return jt(d, ne, Pe, se, Y, me.current, ie);
|
470
470
|
}
|
471
471
|
}
|
472
|
-
var
|
472
|
+
var Ft = x.ReactCurrentOwner, Ei = x.ReactDebugCurrentFrame;
|
473
473
|
function vt(d) {
|
474
474
|
if (d) {
|
475
475
|
var R = d._owner, A = M(d.type, d._source, R ? R.type : null);
|
476
|
-
|
476
|
+
Ei.setExtraStackFrame(A);
|
477
477
|
} else
|
478
|
-
|
478
|
+
Ei.setExtraStackFrame(null);
|
479
479
|
}
|
480
|
-
var
|
481
|
-
|
482
|
-
function
|
480
|
+
var Sn;
|
481
|
+
Sn = !1;
|
482
|
+
function Rn(d) {
|
483
483
|
return typeof d == "object" && d !== null && d.$$typeof === t;
|
484
484
|
}
|
485
|
-
function
|
485
|
+
function Si() {
|
486
486
|
{
|
487
|
-
if (
|
488
|
-
var d = te(
|
487
|
+
if (Ft.current) {
|
488
|
+
var d = te(Ft.current.type);
|
489
489
|
if (d)
|
490
490
|
return `
|
491
491
|
|
@@ -497,10 +497,10 @@ Check the render method of \`` + d + "`.";
|
|
497
497
|
function Na(d) {
|
498
498
|
return "";
|
499
499
|
}
|
500
|
-
var
|
500
|
+
var Ri = {};
|
501
501
|
function qa(d) {
|
502
502
|
{
|
503
|
-
var R =
|
503
|
+
var R = Si();
|
504
504
|
if (!R) {
|
505
505
|
var A = typeof d == "string" ? d : d.displayName || d.name;
|
506
506
|
A && (R = `
|
@@ -510,35 +510,35 @@ Check the top-level render call using <` + A + ">.");
|
|
510
510
|
return R;
|
511
511
|
}
|
512
512
|
}
|
513
|
-
function
|
513
|
+
function Ti(d, R) {
|
514
514
|
{
|
515
515
|
if (!d._store || d._store.validated || d.key != null)
|
516
516
|
return;
|
517
517
|
d._store.validated = !0;
|
518
518
|
var A = qa(R);
|
519
|
-
if (
|
519
|
+
if (Ri[A])
|
520
520
|
return;
|
521
|
-
|
521
|
+
Ri[A] = !0;
|
522
522
|
var Y = "";
|
523
|
-
d && d._owner && d._owner !==
|
523
|
+
d && d._owner && d._owner !== Ft.current && (Y = " It was passed a child from " + te(d._owner.type) + "."), vt(d), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', A, Y), vt(null);
|
524
524
|
}
|
525
525
|
}
|
526
|
-
function
|
526
|
+
function ki(d, R) {
|
527
527
|
{
|
528
528
|
if (typeof d != "object")
|
529
529
|
return;
|
530
530
|
if (Ne(d))
|
531
531
|
for (var A = 0; A < d.length; A++) {
|
532
532
|
var Y = d[A];
|
533
|
-
|
533
|
+
Rn(Y) && Ti(Y, R);
|
534
534
|
}
|
535
|
-
else if (
|
535
|
+
else if (Rn(d))
|
536
536
|
d._store && (d._store.validated = !0);
|
537
537
|
else if (d) {
|
538
|
-
var
|
539
|
-
if (typeof
|
540
|
-
for (var
|
541
|
-
|
538
|
+
var se = w(d);
|
539
|
+
if (typeof se == "function" && se !== d.entries)
|
540
|
+
for (var he = se.call(d), ie; !(ie = he.next()).done; )
|
541
|
+
Rn(ie.value) && Ti(ie.value, R);
|
542
542
|
}
|
543
543
|
}
|
544
544
|
}
|
@@ -559,10 +559,10 @@ Check the top-level render call using <` + A + ">.");
|
|
559
559
|
if (A) {
|
560
560
|
var Y = te(R);
|
561
561
|
Ee(A, d.props, "prop", Y, d);
|
562
|
-
} else if (R.PropTypes !== void 0 && !
|
563
|
-
|
564
|
-
var
|
565
|
-
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
562
|
+
} else if (R.PropTypes !== void 0 && !Sn) {
|
563
|
+
Sn = !0;
|
564
|
+
var se = te(R);
|
565
|
+
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", se || "Unknown");
|
566
566
|
}
|
567
567
|
typeof R.getDefaultProps == "function" && !R.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
568
568
|
}
|
@@ -579,18 +579,18 @@ Check the top-level render call using <` + A + ">.");
|
|
579
579
|
d.ref !== null && (vt(d), k("Invalid attribute `ref` supplied to `React.Fragment`."), vt(null));
|
580
580
|
}
|
581
581
|
}
|
582
|
-
function
|
582
|
+
function Oi(d, R, A, Y, se, he) {
|
583
583
|
{
|
584
584
|
var ie = V(d);
|
585
585
|
if (!ie) {
|
586
586
|
var ne = "";
|
587
587
|
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (ne += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
588
588
|
var Pe = Na();
|
589
|
-
Pe ? ne += Pe : ne +=
|
589
|
+
Pe ? ne += Pe : ne += Si();
|
590
590
|
var _e;
|
591
591
|
d === null ? _e = "null" : Ne(d) ? _e = "array" : d !== void 0 && d.$$typeof === t ? (_e = "<" + (te(d.type) || "Unknown") + " />", ne = " Did you accidentally export a JSX literal instead of a component?") : _e = typeof d, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _e, ne);
|
592
592
|
}
|
593
|
-
var Ae = Dt(d, R, A,
|
593
|
+
var Ae = Dt(d, R, A, se, he);
|
594
594
|
if (Ae == null)
|
595
595
|
return Ae;
|
596
596
|
if (ie) {
|
@@ -599,40 +599,40 @@ Check the top-level render call using <` + A + ">.");
|
|
599
599
|
if (Y)
|
600
600
|
if (Ne(Le)) {
|
601
601
|
for (var gt = 0; gt < Le.length; gt++)
|
602
|
-
|
602
|
+
ki(Le[gt], d);
|
603
603
|
Object.freeze && Object.freeze(Le);
|
604
604
|
} else
|
605
605
|
k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
606
606
|
else
|
607
|
-
|
607
|
+
ki(Le, d);
|
608
608
|
}
|
609
609
|
return d === n ? Ua(Ae) : Wa(Ae), Ae;
|
610
610
|
}
|
611
611
|
}
|
612
612
|
function Va(d, R, A) {
|
613
|
-
return
|
613
|
+
return Oi(d, R, A, !0);
|
614
614
|
}
|
615
615
|
function Ha(d, R, A) {
|
616
|
-
return
|
616
|
+
return Oi(d, R, A, !1);
|
617
617
|
}
|
618
618
|
var Ga = Ha, Ya = Va;
|
619
|
-
|
620
|
-
}()),
|
619
|
+
It.Fragment = n, It.jsx = Ga, It.jsxs = Ya;
|
620
|
+
}()), It;
|
621
621
|
}
|
622
|
-
var
|
622
|
+
var ji;
|
623
623
|
function ao() {
|
624
|
-
return
|
624
|
+
return ji || (ji = 1, process.env.NODE_ENV === "production" ? Kt.exports = io() : Kt.exports = ro()), Kt.exports;
|
625
625
|
}
|
626
|
-
var
|
626
|
+
var re = ao(), xe = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap: P, columnGap: P, gridColumnGap: P, rowGap: P, gridRowGap: P, inset: P, insetBlock: P, insetBlockEnd: P, insetBlockStart: P, insetInline: P, insetInlineEnd: P, insetInlineStart: P, margin: P, marginTop: P, marginRight: P, marginBottom: P, marginLeft: P, marginBlock: P, marginBlockEnd: P, marginBlockStart: P, marginInline: P, marginInlineEnd: P, marginInlineStart: P, padding: P, paddingTop: P, paddingRight: P, paddingBottom: P, paddingLeft: P, paddingBlock: P, paddingBlockEnd: P, paddingBlockStart: P, paddingInline: P, paddingInlineEnd: P, paddingInlineStart: P, top: P, right: P, bottom: P, left: P, scrollMargin: P, scrollMarginTop: P, scrollMarginRight: P, scrollMarginBottom: P, scrollMarginLeft: P, scrollMarginX: P, scrollMarginY: P, scrollMarginBlock: P, scrollMarginBlockEnd: P, scrollMarginBlockStart: P, scrollMarginInline: P, scrollMarginInlineEnd: P, scrollMarginInlineStart: P, scrollPadding: P, scrollPaddingTop: P, scrollPaddingRight: P, scrollPaddingBottom: P, scrollPaddingLeft: P, scrollPaddingX: P, scrollPaddingY: P, scrollPaddingBlock: P, scrollPaddingBlockEnd: P, scrollPaddingBlockStart: P, scrollPaddingInline: P, scrollPaddingInlineEnd: P, scrollPaddingInlineStart: P, fontSize: "fontSizes", background: xe, backgroundColor: xe, backgroundImage: xe, borderImage: xe, border: xe, borderBlock: xe, borderBlockEnd: xe, borderBlockStart: xe, borderBottom: xe, borderBottomColor: xe, borderColor: xe, borderInline: xe, borderInlineEnd: xe, borderInlineStart: xe, borderLeft: xe, borderLeftColor: xe, borderRight: xe, borderRightColor: xe, borderTop: xe, borderTopColor: xe, caretColor: xe, color: xe, columnRuleColor: xe, fill: xe, outline: xe, outlineColor: xe, stroke: xe, textDecorationColor: xe, fontFamily: "fonts", fontWeight: "fontWeights", lineHeight: "lineHeights", letterSpacing: "letterSpacings", blockSize: Ie, minBlockSize: Ie, maxBlockSize: Ie, inlineSize: Ie, minInlineSize: Ie, maxInlineSize: Ie, width: Ie, minWidth: Ie, maxWidth: Ie, height: Ie, minHeight: Ie, maxHeight: Ie, flexBasis: Ie, gridTemplateColumns: Ie, gridTemplateRows: Ie, borderWidth: "borderWidths", borderTopWidth: "borderWidths", borderRightWidth: "borderWidths", borderBottomWidth: "borderWidths", borderLeftWidth: "borderWidths", borderStyle: "borderStyles", borderTopStyle: "borderStyles", borderRightStyle: "borderStyles", borderBottomStyle: "borderStyles", borderLeftStyle: "borderStyles", borderRadius: "radii", borderTopLeftRadius: "radii", borderTopRightRadius: "radii", borderBottomRightRadius: "radii", borderBottomLeftRadius: "radii", boxShadow: "shadows", textShadow: "shadows", transition: "transitions", zIndex: "zIndices" }, so = (e, t) => typeof t == "function" ? { "()": Function.prototype.toString.call(t) } : t, St = () => {
|
627
627
|
const e = /* @__PURE__ */ Object.create(null);
|
628
628
|
return (t, i, ...n) => {
|
629
629
|
const r = ((a) => JSON.stringify(a, so))(t);
|
630
630
|
return r in e ? e[r] : e[r] = i(t, ...n);
|
631
631
|
};
|
632
|
-
}, lt = Symbol.for("sxs.internal"),
|
632
|
+
}, lt = Symbol.for("sxs.internal"), pi = (e, t) => Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)), Di = (e) => {
|
633
633
|
for (const t in e) return !0;
|
634
634
|
return !1;
|
635
|
-
}, { hasOwnProperty: co } = Object.prototype,
|
635
|
+
}, { hasOwnProperty: co } = Object.prototype, Hn = (e) => e.includes("-") ? e : e.replace(/[A-Z]/g, (t) => "-" + t.toLowerCase()), lo = /\s+(?![^()]*\))/, ht = (e) => (t) => e(...typeof t == "string" ? String(t).split(lo) : [t]), Fi = { appearance: (e) => ({ WebkitAppearance: e, appearance: e }), backfaceVisibility: (e) => ({ WebkitBackfaceVisibility: e, backfaceVisibility: e }), backdropFilter: (e) => ({ WebkitBackdropFilter: e, backdropFilter: e }), backgroundClip: (e) => ({ WebkitBackgroundClip: e, backgroundClip: e }), boxDecorationBreak: (e) => ({ WebkitBoxDecorationBreak: e, boxDecorationBreak: e }), clipPath: (e) => ({ WebkitClipPath: e, clipPath: e }), content: (e) => ({ content: e.includes('"') || e.includes("'") || /^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e) ? e : `"${e}"` }), hyphens: (e) => ({ WebkitHyphens: e, hyphens: e }), maskImage: (e) => ({ WebkitMaskImage: e, maskImage: e }), maskSize: (e) => ({ WebkitMaskSize: e, maskSize: e }), tabSize: (e) => ({ MozTabSize: e, tabSize: e }), textSizeAdjust: (e) => ({ WebkitTextSizeAdjust: e, textSizeAdjust: e }), userSelect: (e) => ({ WebkitUserSelect: e, userSelect: e }), marginBlock: ht((e, t) => ({ marginBlockStart: e, marginBlockEnd: t || e })), marginInline: ht((e, t) => ({ marginInlineStart: e, marginInlineEnd: t || e })), maxSize: ht((e, t) => ({ maxBlockSize: e, maxInlineSize: t || e })), minSize: ht((e, t) => ({ minBlockSize: e, minInlineSize: t || e })), paddingBlock: ht((e, t) => ({ paddingBlockStart: e, paddingBlockEnd: t || e })), paddingInline: ht((e, t) => ({ paddingInlineStart: e, paddingInlineEnd: t || e })) }, Tn = /([\d.]+)([^]*)/, po = (e, t) => e.length ? e.reduce((i, n) => (i.push(...t.map((r) => r.includes("&") ? r.replace(/&/g, /[ +>|~]/.test(n) && /&.*&/.test(r) ? `:is(${n})` : n) : n + " " + r)), i), []) : t, uo = (e, t) => e in fo && typeof t == "string" ? t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/, (i, n, r, a) => n + (r === "stretch" ? `-moz-available${a};${Hn(e)}:${n}-webkit-fill-available` : `-moz-fit-content${a};${Hn(e)}:${n}fit-content`) + a) : String(t), fo = { blockSize: 1, height: 1, inlineSize: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, width: 1 }, Qe = (e) => e ? e + "-" : "", Lr = (e, t, i) => e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g, (n, r, a, o, s) => o == "$" == !!a ? n : (r || o == "--" ? "calc(" : "") + "var(--" + (o === "$" ? Qe(t) + (s.includes("$") ? "" : Qe(i)) + s.replace(/\$/g, "-") : s) + ")" + (r || o == "--" ? "*" + (r || "") + (a || "1") + ")" : "")), mo = /\s*,\s*(?![^()]*\))/, xo = Object.prototype.toString, yt = (e, t, i, n, r) => {
|
636
636
|
let a, o, s;
|
637
637
|
const c = (p, l, u) => {
|
638
638
|
let f, m;
|
@@ -640,43 +640,43 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
640
640
|
for (f in g) {
|
641
641
|
const k = f.charCodeAt(0) === 64, _ = k && Array.isArray(g[f]) ? g[f] : [g[f]];
|
642
642
|
for (m of _) {
|
643
|
-
const T = /[A-Z]/.test(x = f) ? x : x.replace(/-[^]/g, (
|
643
|
+
const T = /[A-Z]/.test(x = f) ? x : x.replace(/-[^]/g, (j) => j[1].toUpperCase()), b = typeof m == "object" && m && m.toString === xo && (!n.utils[T] || !l.length);
|
644
644
|
if (T in n.utils && !b) {
|
645
|
-
const
|
646
|
-
if (
|
647
|
-
o =
|
645
|
+
const j = n.utils[T];
|
646
|
+
if (j !== o) {
|
647
|
+
o = j, v(j(m)), o = null;
|
648
648
|
continue;
|
649
649
|
}
|
650
|
-
} else if (T in
|
651
|
-
const
|
652
|
-
if (
|
653
|
-
s =
|
650
|
+
} else if (T in Fi) {
|
651
|
+
const j = Fi[T];
|
652
|
+
if (j !== s) {
|
653
|
+
s = j, v(j(m)), s = null;
|
654
654
|
continue;
|
655
655
|
}
|
656
656
|
}
|
657
|
-
if (k && (w = f.slice(1) in n.media ? "@media " + n.media[f.slice(1)] : f, f = w.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g, (
|
658
|
-
const
|
659
|
-
return "(" + (
|
657
|
+
if (k && (w = f.slice(1) in n.media ? "@media " + n.media[f.slice(1)] : f, f = w.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g, (j, N, D, G, V, ae) => {
|
658
|
+
const ve = Tn.test(N), te = 0.0625 * (ve ? -1 : 1), [U, ue] = ve ? [G, N] : [N, G];
|
659
|
+
return "(" + (D[0] === "=" ? "" : D[0] === ">" === ve ? "max-" : "min-") + U + ":" + (D[0] !== "=" && D.length === 1 ? ue.replace(Tn, (Se, Re, de) => Number(Re) + te * (D === ">" ? 1 : -1) + de) : ue) + (V ? ") and (" + (V[0] === ">" ? "min-" : "max-") + U + ":" + (V.length === 1 ? ae.replace(Tn, (Se, Re, de) => Number(Re) + te * (V === ">" ? -1 : 1) + de) : ae) : "") + ")";
|
660
660
|
})), b) {
|
661
|
-
const
|
662
|
-
a !== void 0 && r(
|
663
|
-
} else a === void 0 && (a = [[], l, u]), f = k || f.charCodeAt(0) !== 36 ? f : `--${Qe(n.prefix)}${f.slice(1).replace(/\$/g, "-")}`, m = b ? m : typeof m == "number" ? m && T in vo ? String(m) + "px" : String(m) : Lr(uo(T, m ?? ""), n.prefix, n.themeMap[T]), a[0].push(`${k ? `${f} ` : `${
|
661
|
+
const j = k ? u.concat(f) : [...u], N = k ? [...l] : po(l, f.split(mo));
|
662
|
+
a !== void 0 && r(Pi(...a)), a = void 0, c(m, N, j);
|
663
|
+
} else a === void 0 && (a = [[], l, u]), f = k || f.charCodeAt(0) !== 36 ? f : `--${Qe(n.prefix)}${f.slice(1).replace(/\$/g, "-")}`, m = b ? m : typeof m == "number" ? m && T in vo ? String(m) + "px" : String(m) : Lr(uo(T, m ?? ""), n.prefix, n.themeMap[T]), a[0].push(`${k ? `${f} ` : `${Hn(f)}:`}${m}`);
|
664
664
|
}
|
665
665
|
}
|
666
666
|
var w, x;
|
667
667
|
};
|
668
|
-
v(p), a !== void 0 && r(
|
668
|
+
v(p), a !== void 0 && r(Pi(...a)), a = void 0;
|
669
669
|
};
|
670
670
|
c(e, t, i);
|
671
|
-
},
|
671
|
+
}, Pi = (e, t, i) => `${i.map((n) => `${n}{`).join("")}${t.length ? `${t.join(",")}{` : ""}${e.join(";")}${t.length ? "}" : ""}${Array(i.length ? i.length + 1 : 0).join("}")}`, vo = { animationDelay: 1, animationDuration: 1, backgroundSize: 1, blockSize: 1, border: 1, borderBlock: 1, borderBlockEnd: 1, borderBlockEndWidth: 1, borderBlockStart: 1, borderBlockStartWidth: 1, borderBlockWidth: 1, borderBottom: 1, borderBottomLeftRadius: 1, borderBottomRightRadius: 1, borderBottomWidth: 1, borderEndEndRadius: 1, borderEndStartRadius: 1, borderInlineEnd: 1, borderInlineEndWidth: 1, borderInlineStart: 1, borderInlineStartWidth: 1, borderInlineWidth: 1, borderLeft: 1, borderLeftWidth: 1, borderRadius: 1, borderRight: 1, borderRightWidth: 1, borderSpacing: 1, borderStartEndRadius: 1, borderStartStartRadius: 1, borderTop: 1, borderTopLeftRadius: 1, borderTopRightRadius: 1, borderTopWidth: 1, borderWidth: 1, bottom: 1, columnGap: 1, columnRule: 1, columnRuleWidth: 1, columnWidth: 1, containIntrinsicSize: 1, flexBasis: 1, fontSize: 1, gap: 1, gridAutoColumns: 1, gridAutoRows: 1, gridTemplateColumns: 1, gridTemplateRows: 1, height: 1, inlineSize: 1, inset: 1, insetBlock: 1, insetBlockEnd: 1, insetBlockStart: 1, insetInline: 1, insetInlineEnd: 1, insetInlineStart: 1, left: 1, letterSpacing: 1, margin: 1, marginBlock: 1, marginBlockEnd: 1, marginBlockStart: 1, marginBottom: 1, marginInline: 1, marginInlineEnd: 1, marginInlineStart: 1, marginLeft: 1, marginRight: 1, marginTop: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, offsetDistance: 1, offsetRotate: 1, outline: 1, outlineOffset: 1, outlineWidth: 1, overflowClipMargin: 1, padding: 1, paddingBlock: 1, paddingBlockEnd: 1, paddingBlockStart: 1, paddingBottom: 1, paddingInline: 1, paddingInlineEnd: 1, paddingInlineStart: 1, paddingLeft: 1, paddingRight: 1, paddingTop: 1, perspective: 1, right: 1, rowGap: 1, scrollMargin: 1, scrollMarginBlock: 1, scrollMarginBlockEnd: 1, scrollMarginBlockStart: 1, scrollMarginBottom: 1, scrollMarginInline: 1, scrollMarginInlineEnd: 1, scrollMarginInlineStart: 1, scrollMarginLeft: 1, scrollMarginRight: 1, scrollMarginTop: 1, scrollPadding: 1, scrollPaddingBlock: 1, scrollPaddingBlockEnd: 1, scrollPaddingBlockStart: 1, scrollPaddingBottom: 1, scrollPaddingInline: 1, scrollPaddingInlineEnd: 1, scrollPaddingInlineStart: 1, scrollPaddingLeft: 1, scrollPaddingRight: 1, scrollPaddingTop: 1, shapeMargin: 1, textDecoration: 1, textDecorationThickness: 1, textIndent: 1, textUnderlineOffset: 1, top: 1, transitionDelay: 1, transitionDuration: 1, verticalAlign: 1, width: 1, wordSpacing: 1 }, Ii = (e) => String.fromCharCode(e + (e > 25 ? 39 : 97)), pt = (e) => ((t) => {
|
672
672
|
let i, n = "";
|
673
|
-
for (i = Math.abs(t); i > 52; i = i / 52 | 0) n =
|
674
|
-
return
|
673
|
+
for (i = Math.abs(t); i > 52; i = i / 52 | 0) n = Ii(i % 52) + n;
|
674
|
+
return Ii(i % 52) + n;
|
675
675
|
})(((t, i) => {
|
676
676
|
let n = i.length;
|
677
677
|
for (; n; ) t = 33 * t ^ i.charCodeAt(--n);
|
678
678
|
return t;
|
679
|
-
})(5381, JSON.stringify(e)) >>> 0),
|
679
|
+
})(5381, JSON.stringify(e)) >>> 0), Mt = ["themed", "global", "styled", "onevar", "resonevar", "allvar", "inline"], go = (e) => {
|
680
680
|
if (e.href && !e.href.startsWith(location.origin)) return !1;
|
681
681
|
try {
|
682
682
|
return !!e.cssRules;
|
@@ -717,7 +717,7 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
717
717
|
++c;
|
718
718
|
const { cssText: f } = l;
|
719
719
|
if (!f.startsWith("--sxs")) continue;
|
720
|
-
const m = f.slice(14, -3).trim().split(/\s+/), v =
|
720
|
+
const m = f.slice(14, -3).trim().split(/\s+/), v = Mt[m[0]];
|
721
721
|
v && (t || (t = { sheet: s, reset: n, rules: {}, toString: i }), t.rules[v] = { group: u, index: c, cache: new Set(m) });
|
722
722
|
}
|
723
723
|
if (t) break;
|
@@ -731,10 +731,10 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
731
731
|
t = { sheet: e ? (e.head || e).appendChild(document.createElement("style")).sheet : s("", "text/css"), rules: {}, reset: n, toString: i };
|
732
732
|
}
|
733
733
|
const { sheet: a, rules: o } = t;
|
734
|
-
for (let s =
|
735
|
-
const c =
|
734
|
+
for (let s = Mt.length - 1; s >= 0; --s) {
|
735
|
+
const c = Mt[s];
|
736
736
|
if (!o[c]) {
|
737
|
-
const p =
|
737
|
+
const p = Mt[s + 1], l = o[p] ? o[p].index : a.cssRules.length;
|
738
738
|
a.insertRule("@media{}", l), a.insertRule(`--sxs{--sxs:${s}}`, l), o[c] = { group: a.cssRules[l + 1], index: l, cache: /* @__PURE__ */ new Set([s]) };
|
739
739
|
}
|
740
740
|
yo(o[c]);
|
@@ -750,7 +750,7 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
750
750
|
} catch {
|
751
751
|
}
|
752
752
|
};
|
753
|
-
},
|
753
|
+
}, Bt = Symbol(), bo = St(), Bi = (e, t) => bo(e, () => (...i) => {
|
754
754
|
let n = { type: null, composers: /* @__PURE__ */ new Set() };
|
755
755
|
for (const r of i) if (r != null) if (r[lt]) {
|
756
756
|
n.type == null && (n.type = r[lt].type);
|
@@ -782,13 +782,13 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
782
782
|
}, Eo = (e, t, i) => {
|
783
783
|
const [n, r, a, o] = So(t.composers), s = typeof t.type == "function" || t.type.$$typeof ? ((u) => {
|
784
784
|
function f() {
|
785
|
-
for (let m = 0; m < f[
|
786
|
-
const [v, g] = f[
|
785
|
+
for (let m = 0; m < f[Bt].length; m++) {
|
786
|
+
const [v, g] = f[Bt][m];
|
787
787
|
u.rules[v].apply(g);
|
788
788
|
}
|
789
|
-
return f[
|
789
|
+
return f[Bt] = [], null;
|
790
790
|
}
|
791
|
-
return f[
|
791
|
+
return f[Bt] = [], f.rules = {}, Mt.forEach((m) => f.rules[m] = { apply: (v) => f[Bt].push([m, v]) }), f;
|
792
792
|
})(i) : null, c = (s || i).rules, p = `.${n}${r.length > 1 ? `:where(.${r.slice(1).join(".")})` : ""}`, l = (u) => {
|
793
793
|
u = typeof u == "object" && u || Ro;
|
794
794
|
const { css: f, ...m } = u, v = {};
|
@@ -801,19 +801,19 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
801
801
|
i.rules.styled.cache.has(x) || (i.rules.styled.cache.add(x), yt(k, [`.${x}`], [], e, (N) => {
|
802
802
|
c.styled.apply(N);
|
803
803
|
}));
|
804
|
-
const b =
|
805
|
-
for (const N of b) if (N !== void 0) for (const [
|
806
|
-
const
|
807
|
-
g.add(
|
808
|
-
const
|
809
|
-
|
804
|
+
const b = zi(_, v, e.media), j = zi(T, v, e.media, !0);
|
805
|
+
for (const N of b) if (N !== void 0) for (const [D, G, V] of N) {
|
806
|
+
const ae = `${x}-${pt(G)}-${D}`;
|
807
|
+
g.add(ae);
|
808
|
+
const ve = (V ? i.rules.resonevar : i.rules.onevar).cache, te = V ? c.resonevar : c.onevar;
|
809
|
+
ve.has(ae) || (ve.add(ae), yt(G, [`.${ae}`], [], e, (U) => {
|
810
810
|
te.apply(U);
|
811
811
|
}));
|
812
812
|
}
|
813
|
-
for (const N of
|
814
|
-
const V = `${x}-${pt(G)}-${
|
815
|
-
g.add(V), i.rules.allvar.cache.has(V) || (i.rules.allvar.cache.add(V), yt(G, [`.${V}`], [], e, (
|
816
|
-
c.allvar.apply(
|
813
|
+
for (const N of j) if (N !== void 0) for (const [D, G] of N) {
|
814
|
+
const V = `${x}-${pt(G)}-${D}`;
|
815
|
+
g.add(V), i.rules.allvar.cache.has(V) || (i.rules.allvar.cache.add(V), yt(G, [`.${V}`], [], e, (ae) => {
|
816
|
+
c.allvar.apply(ae);
|
817
817
|
}));
|
818
818
|
}
|
819
819
|
}
|
@@ -827,7 +827,7 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
827
827
|
const w = m.className = [...g].join(" ");
|
828
828
|
return { type: t.type, className: w, selector: p, props: m, toString: () => w, deferredInjector: s };
|
829
829
|
};
|
830
|
-
return
|
830
|
+
return pi(l, { className: n, selector: p, [lt]: t, toString: () => (i.rules.styled.cache.has(n) || l(), n) });
|
831
831
|
}, So = (e) => {
|
832
832
|
let t = "";
|
833
833
|
const i = [], n = {}, r = [];
|
@@ -839,7 +839,7 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
839
839
|
}
|
840
840
|
}
|
841
841
|
return [t, i, n, new Set(r)];
|
842
|
-
},
|
842
|
+
}, zi = (e, t, i, n) => {
|
843
843
|
const r = [];
|
844
844
|
e: for (let [a, o, s] of e) {
|
845
845
|
if (s) continue;
|
@@ -868,7 +868,7 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
868
868
|
(r[p] = r[p] || []).push([n ? "cv" : `${c}-${a[c]}`, o, l]);
|
869
869
|
}
|
870
870
|
return r;
|
871
|
-
}, Ro = {}, To =
|
871
|
+
}, Ro = {}, To = St(), ko = (e, t) => To(e, () => (...i) => {
|
872
872
|
const n = () => {
|
873
873
|
for (let r of i) {
|
874
874
|
r = typeof r == "object" && r || {};
|
@@ -886,8 +886,8 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
886
886
|
}
|
887
887
|
return "";
|
888
888
|
};
|
889
|
-
return
|
890
|
-
}), Oo =
|
889
|
+
return pi(n, { toString: n });
|
890
|
+
}), Oo = St(), _o = (e, t) => Oo(e, () => (i) => {
|
891
891
|
const n = `${Qe(e.prefix)}k-${pt(i)}`, r = () => {
|
892
892
|
if (!t.rules.global.cache.has(n)) {
|
893
893
|
t.rules.global.cache.add(n);
|
@@ -898,7 +898,7 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
898
898
|
}
|
899
899
|
return n;
|
900
900
|
};
|
901
|
-
return
|
901
|
+
return pi(r, { get name() {
|
902
902
|
return r();
|
903
903
|
}, toString: r });
|
904
904
|
}), Co = class {
|
@@ -914,7 +914,7 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
914
914
|
toString() {
|
915
915
|
return this.computedValue;
|
916
916
|
}
|
917
|
-
}, Ao =
|
917
|
+
}, Ao = St(), jo = (e, t) => Ao(e, () => (i, n) => {
|
918
918
|
n = typeof i == "object" && i || Object(n);
|
919
919
|
const r = `.${i = (i = typeof i == "string" ? i : "") || `${Qe(e.prefix)}t-${pt(n)}`}`, a = {}, o = [];
|
920
920
|
for (const c in n) {
|
@@ -935,12 +935,12 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
935
935
|
return { ...a, get className() {
|
936
936
|
return s();
|
937
937
|
}, selector: r, toString: s };
|
938
|
-
}),
|
938
|
+
}), Do = St(), Li, Fo = St(), Po = (e) => {
|
939
939
|
const t = ((i) => {
|
940
940
|
let n = !1;
|
941
|
-
const r =
|
941
|
+
const r = Do(i, (a) => {
|
942
942
|
n = !0;
|
943
|
-
const o = "prefix" in (a = typeof a == "object" && a || {}) ? String(a.prefix) : "", s = typeof a.media == "object" && a.media || {}, c = typeof a.root == "object" ? a.root || null : globalThis.document || null, p = typeof a.theme == "object" && a.theme || {}, l = { prefix: o, media: s, theme: p, themeMap: typeof a.themeMap == "object" && a.themeMap || { ...oo }, utils: typeof a.utils == "object" && a.utils || {} }, u = ho(c), f = { css:
|
943
|
+
const o = "prefix" in (a = typeof a == "object" && a || {}) ? String(a.prefix) : "", s = typeof a.media == "object" && a.media || {}, c = typeof a.root == "object" ? a.root || null : globalThis.document || null, p = typeof a.theme == "object" && a.theme || {}, l = { prefix: o, media: s, theme: p, themeMap: typeof a.themeMap == "object" && a.themeMap || { ...oo }, utils: typeof a.utils == "object" && a.utils || {} }, u = ho(c), f = { css: Bi(l, u), globalCss: ko(l, u), keyframes: _o(l, u), createTheme: jo(l, u), reset() {
|
944
944
|
u.reset(), f.theme.toString();
|
945
945
|
}, theme: {}, sheet: u, config: l, prefix: o, getCssText: u.toString, toString: u.toString };
|
946
946
|
return String(f.theme = f.createTheme(p)), f;
|
@@ -948,17 +948,17 @@ var ye = ao(), me = "colors", Ie = "sizes", P = "space", oo = { gap: P, gridGap:
|
|
948
948
|
return n || r.reset(), r;
|
949
949
|
})(e);
|
950
950
|
return t.styled = (({ config: i, sheet: n }) => Fo(i, () => {
|
951
|
-
const r =
|
951
|
+
const r = Bi(i, n);
|
952
952
|
return (...a) => {
|
953
|
-
const o = r(...a), s = o[lt].type, c =
|
953
|
+
const o = r(...a), s = o[lt].type, c = pe.forwardRef((p, l) => {
|
954
954
|
const u = p && p.as || s, { props: f, deferredInjector: m } = o(p);
|
955
|
-
return delete f.as, f.ref = l, m ?
|
955
|
+
return delete f.as, f.ref = l, m ? pe.createElement(pe.Fragment, null, pe.createElement(u, f), pe.createElement(m, null)) : pe.createElement(u, f);
|
956
956
|
});
|
957
957
|
return c.className = o.className, c.displayName = `Styled.${s.displayName || s.name || s}`, c.selector = o.selector, c.toString = () => o.selector, c[lt] = o[lt], c;
|
958
958
|
};
|
959
959
|
}))(t), t;
|
960
|
-
}, Mr = () =>
|
961
|
-
const
|
960
|
+
}, Mr = () => Li || (Li = Po()), Io = (...e) => Mr().keyframes(...e), qe = (...e) => Mr().styled(...e);
|
961
|
+
const Rt = qe("div", {
|
962
962
|
variants: {
|
963
963
|
width: {
|
964
964
|
full: { width: "100%" },
|
@@ -1300,18 +1300,18 @@ const St = qe("div", {
|
|
1300
1300
|
}
|
1301
1301
|
}
|
1302
1302
|
});
|
1303
|
-
var
|
1303
|
+
var zt = {}, Jt = {}, rt = {}, Mi;
|
1304
1304
|
function $r() {
|
1305
|
-
if (
|
1306
|
-
|
1305
|
+
if (Mi) return rt;
|
1306
|
+
Mi = 1, Object.defineProperty(rt, "__esModule", { value: !0 }), rt.fromHex = rt.toHex = void 0;
|
1307
1307
|
const e = (n) => new Number(n).toString(16).toLowerCase(), t = (n) => `0x${e(n).length === 1 ? "0" + e(n) : e(n)}`;
|
1308
1308
|
rt.toHex = t;
|
1309
1309
|
const i = (n) => new Number(n);
|
1310
1310
|
return rt.fromHex = i, rt;
|
1311
1311
|
}
|
1312
|
-
var
|
1312
|
+
var kn = {}, $i;
|
1313
1313
|
function Bo() {
|
1314
|
-
return
|
1314
|
+
return $i || ($i = 1, function(e) {
|
1315
1315
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.createComplexNode = e.createNode = e.merge = void 0;
|
1316
1316
|
const t = (c) => ({
|
1317
1317
|
typename: c.typename,
|
@@ -1356,12 +1356,12 @@ function Bo() {
|
|
1356
1356
|
} : (u.bytes[f] = e.createComplexNode(c, m, l), u);
|
1357
1357
|
};
|
1358
1358
|
e.createComplexNode = s;
|
1359
|
-
}(
|
1359
|
+
}(kn)), kn;
|
1360
1360
|
}
|
1361
|
-
var
|
1361
|
+
var Ni;
|
1362
1362
|
function zo() {
|
1363
|
-
if (
|
1364
|
-
|
1363
|
+
if (Ni) return Jt;
|
1364
|
+
Ni = 1, Object.defineProperty(Jt, "__esModule", { value: !0 });
|
1365
1365
|
const e = $r(), t = Bo();
|
1366
1366
|
let i = {
|
1367
1367
|
noOffset: null,
|
@@ -2291,12 +2291,12 @@ function zo() {
|
|
2291
2291
|
}), n("SVG", ["0x3c", "0x73", "0x76", "0x67"], {
|
2292
2292
|
mime: "image/svg+xml",
|
2293
2293
|
extension: "svg"
|
2294
|
-
}),
|
2294
|
+
}), Jt.default = () => i, Jt;
|
2295
2295
|
}
|
2296
|
-
var
|
2296
|
+
var qi;
|
2297
2297
|
function Lo() {
|
2298
|
-
return
|
2299
|
-
var t =
|
2298
|
+
return qi || (qi = 1, function(e) {
|
2299
|
+
var t = zt && zt.__importDefault || function(l) {
|
2300
2300
|
return l && l.__esModule ? l : { default: l };
|
2301
2301
|
};
|
2302
2302
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.filetypeextension = e.filetypemime = e.filetypename = e.filetypeinfo = void 0;
|
@@ -2329,9 +2329,9 @@ function Lo() {
|
|
2329
2329
|
e.filetypemime = c;
|
2330
2330
|
const p = (l) => e.filetypeinfo(l).map((u) => u.extension ? u.extension : null).filter((u) => u !== null);
|
2331
2331
|
e.filetypeextension = p;
|
2332
|
-
}(
|
2332
|
+
}(zt)), zt;
|
2333
2333
|
}
|
2334
|
-
var Mo = Lo(),
|
2334
|
+
var Mo = Lo(), Xt = { exports: {} }, Zt = { exports: {} }, ce = {};
|
2335
2335
|
/** @license React v16.13.1
|
2336
2336
|
* react-is.production.min.js
|
2337
2337
|
*
|
@@ -2340,15 +2340,15 @@ var Mo = Lo(), Jt = { exports: {} }, Xt = { exports: {} }, se = {};
|
|
2340
2340
|
* This source code is licensed under the MIT license found in the
|
2341
2341
|
* LICENSE file in the root directory of this source tree.
|
2342
2342
|
*/
|
2343
|
-
var
|
2343
|
+
var Wi;
|
2344
2344
|
function $o() {
|
2345
|
-
if (
|
2346
|
-
|
2345
|
+
if (Wi) return ce;
|
2346
|
+
Wi = 1;
|
2347
2347
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
|
2348
2348
|
function _(b) {
|
2349
2349
|
if (typeof b == "object" && b !== null) {
|
2350
|
-
var
|
2351
|
-
switch (
|
2350
|
+
var j = b.$$typeof;
|
2351
|
+
switch (j) {
|
2352
2352
|
case t:
|
2353
2353
|
switch (b = b.type, b) {
|
2354
2354
|
case c:
|
@@ -2367,46 +2367,46 @@ function $o() {
|
|
2367
2367
|
case o:
|
2368
2368
|
return b;
|
2369
2369
|
default:
|
2370
|
-
return
|
2370
|
+
return j;
|
2371
2371
|
}
|
2372
2372
|
}
|
2373
2373
|
case i:
|
2374
|
-
return
|
2374
|
+
return j;
|
2375
2375
|
}
|
2376
2376
|
}
|
2377
2377
|
}
|
2378
2378
|
function T(b) {
|
2379
2379
|
return _(b) === p;
|
2380
2380
|
}
|
2381
|
-
return
|
2381
|
+
return ce.AsyncMode = c, ce.ConcurrentMode = p, ce.ContextConsumer = s, ce.ContextProvider = o, ce.Element = t, ce.ForwardRef = l, ce.Fragment = n, ce.Lazy = v, ce.Memo = m, ce.Portal = i, ce.Profiler = a, ce.StrictMode = r, ce.Suspense = u, ce.isAsyncMode = function(b) {
|
2382
2382
|
return T(b) || _(b) === c;
|
2383
|
-
},
|
2383
|
+
}, ce.isConcurrentMode = T, ce.isContextConsumer = function(b) {
|
2384
2384
|
return _(b) === s;
|
2385
|
-
},
|
2385
|
+
}, ce.isContextProvider = function(b) {
|
2386
2386
|
return _(b) === o;
|
2387
|
-
},
|
2387
|
+
}, ce.isElement = function(b) {
|
2388
2388
|
return typeof b == "object" && b !== null && b.$$typeof === t;
|
2389
|
-
},
|
2389
|
+
}, ce.isForwardRef = function(b) {
|
2390
2390
|
return _(b) === l;
|
2391
|
-
},
|
2391
|
+
}, ce.isFragment = function(b) {
|
2392
2392
|
return _(b) === n;
|
2393
|
-
},
|
2393
|
+
}, ce.isLazy = function(b) {
|
2394
2394
|
return _(b) === v;
|
2395
|
-
},
|
2395
|
+
}, ce.isMemo = function(b) {
|
2396
2396
|
return _(b) === m;
|
2397
|
-
},
|
2397
|
+
}, ce.isPortal = function(b) {
|
2398
2398
|
return _(b) === i;
|
2399
|
-
},
|
2399
|
+
}, ce.isProfiler = function(b) {
|
2400
2400
|
return _(b) === a;
|
2401
|
-
},
|
2401
|
+
}, ce.isStrictMode = function(b) {
|
2402
2402
|
return _(b) === r;
|
2403
|
-
},
|
2403
|
+
}, ce.isSuspense = function(b) {
|
2404
2404
|
return _(b) === u;
|
2405
|
-
},
|
2405
|
+
}, ce.isValidElementType = function(b) {
|
2406
2406
|
return typeof b == "string" || typeof b == "function" || b === n || b === p || b === a || b === r || b === u || b === f || typeof b == "object" && b !== null && (b.$$typeof === v || b.$$typeof === m || b.$$typeof === o || b.$$typeof === s || b.$$typeof === l || b.$$typeof === w || b.$$typeof === x || b.$$typeof === k || b.$$typeof === g);
|
2407
|
-
},
|
2407
|
+
}, ce.typeOf = _, ce;
|
2408
2408
|
}
|
2409
|
-
var
|
2409
|
+
var le = {};
|
2410
2410
|
/** @license React v16.13.1
|
2411
2411
|
* react-is.development.js
|
2412
2412
|
*
|
@@ -2415,9 +2415,9 @@ var ce = {};
|
|
2415
2415
|
* This source code is licensed under the MIT license found in the
|
2416
2416
|
* LICENSE file in the root directory of this source tree.
|
2417
2417
|
*/
|
2418
|
-
var
|
2418
|
+
var Ui;
|
2419
2419
|
function No() {
|
2420
|
-
return
|
2420
|
+
return Ui || (Ui = 1, process.env.NODE_ENV !== "production" && function() {
|
2421
2421
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
|
2422
2422
|
function _(y) {
|
2423
2423
|
return typeof y == "string" || typeof y == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
@@ -2455,9 +2455,9 @@ function No() {
|
|
2455
2455
|
}
|
2456
2456
|
}
|
2457
2457
|
}
|
2458
|
-
var b = c,
|
2458
|
+
var b = c, j = p, N = s, D = o, G = t, V = l, ae = n, ve = v, te = m, U = i, ue = a, Se = r, Re = u, de = !1;
|
2459
2459
|
function we(y) {
|
2460
|
-
return
|
2460
|
+
return de || (de = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), S(y) || T(y) === c;
|
2461
2461
|
}
|
2462
2462
|
function S(y) {
|
2463
2463
|
return T(y) === p;
|
@@ -2492,25 +2492,25 @@ function No() {
|
|
2492
2492
|
function L(y) {
|
2493
2493
|
return T(y) === r;
|
2494
2494
|
}
|
2495
|
-
function
|
2495
|
+
function ge(y) {
|
2496
2496
|
return T(y) === u;
|
2497
2497
|
}
|
2498
|
-
|
2499
|
-
}()),
|
2498
|
+
le.AsyncMode = b, le.ConcurrentMode = j, le.ContextConsumer = N, le.ContextProvider = D, le.Element = G, le.ForwardRef = V, le.Fragment = ae, le.Lazy = ve, le.Memo = te, le.Portal = U, le.Profiler = ue, le.StrictMode = Se, le.Suspense = Re, le.isAsyncMode = we, le.isConcurrentMode = S, le.isContextConsumer = O, le.isContextProvider = I, le.isElement = q, le.isForwardRef = B, le.isFragment = H, le.isLazy = z, le.isMemo = W, le.isPortal = K, le.isProfiler = ee, le.isStrictMode = L, le.isSuspense = ge, le.isValidElementType = _, le.typeOf = T;
|
2499
|
+
}()), le;
|
2500
2500
|
}
|
2501
|
-
var
|
2501
|
+
var Vi;
|
2502
2502
|
function Nr() {
|
2503
|
-
return
|
2503
|
+
return Vi || (Vi = 1, process.env.NODE_ENV === "production" ? Zt.exports = $o() : Zt.exports = No()), Zt.exports;
|
2504
2504
|
}
|
2505
2505
|
/*
|
2506
2506
|
object-assign
|
2507
2507
|
(c) Sindre Sorhus
|
2508
2508
|
@license MIT
|
2509
2509
|
*/
|
2510
|
-
var
|
2510
|
+
var On, Hi;
|
2511
2511
|
function qo() {
|
2512
|
-
if (
|
2513
|
-
|
2512
|
+
if (Hi) return On;
|
2513
|
+
Hi = 1;
|
2514
2514
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
2515
2515
|
function n(a) {
|
2516
2516
|
if (a == null)
|
@@ -2539,7 +2539,7 @@ function qo() {
|
|
2539
2539
|
return !1;
|
2540
2540
|
}
|
2541
2541
|
}
|
2542
|
-
return
|
2542
|
+
return On = r() ? Object.assign : function(a, o) {
|
2543
2543
|
for (var s, c = n(a), p, l = 1; l < arguments.length; l++) {
|
2544
2544
|
s = Object(arguments[l]);
|
2545
2545
|
for (var u in s)
|
@@ -2551,27 +2551,27 @@ function qo() {
|
|
2551
2551
|
}
|
2552
2552
|
}
|
2553
2553
|
return c;
|
2554
|
-
},
|
2554
|
+
}, On;
|
2555
2555
|
}
|
2556
|
-
var
|
2557
|
-
function
|
2558
|
-
if (
|
2559
|
-
|
2556
|
+
var _n, Gi;
|
2557
|
+
function ui() {
|
2558
|
+
if (Gi) return _n;
|
2559
|
+
Gi = 1;
|
2560
2560
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
2561
|
-
return
|
2561
|
+
return _n = e, _n;
|
2562
2562
|
}
|
2563
|
-
var
|
2563
|
+
var Cn, Yi;
|
2564
2564
|
function qr() {
|
2565
|
-
return
|
2565
|
+
return Yi || (Yi = 1, Cn = Function.call.bind(Object.prototype.hasOwnProperty)), Cn;
|
2566
2566
|
}
|
2567
|
-
var
|
2567
|
+
var An, Ki;
|
2568
2568
|
function Wo() {
|
2569
|
-
if (
|
2570
|
-
|
2569
|
+
if (Ki) return An;
|
2570
|
+
Ki = 1;
|
2571
2571
|
var e = function() {
|
2572
2572
|
};
|
2573
2573
|
if (process.env.NODE_ENV !== "production") {
|
2574
|
-
var t = /* @__PURE__ */
|
2574
|
+
var t = /* @__PURE__ */ ui(), i = {}, n = /* @__PURE__ */ qr();
|
2575
2575
|
e = function(a) {
|
2576
2576
|
var o = "Warning: " + a;
|
2577
2577
|
typeof console < "u" && console.error(o);
|
@@ -2611,13 +2611,13 @@ function Wo() {
|
|
2611
2611
|
}
|
2612
2612
|
return r.resetWarningCache = function() {
|
2613
2613
|
process.env.NODE_ENV !== "production" && (i = {});
|
2614
|
-
},
|
2614
|
+
}, An = r, An;
|
2615
2615
|
}
|
2616
|
-
var
|
2616
|
+
var jn, Ji;
|
2617
2617
|
function Uo() {
|
2618
|
-
if (
|
2619
|
-
|
2620
|
-
var e = Nr(), t = qo(), i = /* @__PURE__ */
|
2618
|
+
if (Ji) return jn;
|
2619
|
+
Ji = 1;
|
2620
|
+
var e = Nr(), t = qo(), i = /* @__PURE__ */ ui(), n = /* @__PURE__ */ qr(), r = /* @__PURE__ */ Wo(), a = function() {
|
2621
2621
|
};
|
2622
2622
|
process.env.NODE_ENV !== "production" && (a = function(s) {
|
2623
2623
|
var c = "Warning: " + s;
|
@@ -2630,7 +2630,7 @@ function Uo() {
|
|
2630
2630
|
function o() {
|
2631
2631
|
return null;
|
2632
2632
|
}
|
2633
|
-
return
|
2633
|
+
return jn = function(s, c) {
|
2634
2634
|
var p = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
|
2635
2635
|
function u(S) {
|
2636
2636
|
var O = S && (p && S[p] || S[l]);
|
@@ -2650,12 +2650,12 @@ function Uo() {
|
|
2650
2650
|
arrayOf: _,
|
2651
2651
|
element: T(),
|
2652
2652
|
elementType: b(),
|
2653
|
-
instanceOf:
|
2653
|
+
instanceOf: j,
|
2654
2654
|
node: V(),
|
2655
|
-
objectOf:
|
2655
|
+
objectOf: D,
|
2656
2656
|
oneOf: N,
|
2657
2657
|
oneOfType: G,
|
2658
|
-
shape:
|
2658
|
+
shape: ve,
|
2659
2659
|
exact: te
|
2660
2660
|
};
|
2661
2661
|
function v(S, O) {
|
@@ -2668,8 +2668,8 @@ function Uo() {
|
|
2668
2668
|
function w(S) {
|
2669
2669
|
if (process.env.NODE_ENV !== "production")
|
2670
2670
|
var O = {}, I = 0;
|
2671
|
-
function q(H, z, W, K, ee, L,
|
2672
|
-
if (K = K || f, L = L || W,
|
2671
|
+
function q(H, z, W, K, ee, L, ge) {
|
2672
|
+
if (K = K || f, L = L || W, ge !== i) {
|
2673
2673
|
if (c) {
|
2674
2674
|
var y = new Error(
|
2675
2675
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
@@ -2745,7 +2745,7 @@ function Uo() {
|
|
2745
2745
|
}
|
2746
2746
|
return w(S);
|
2747
2747
|
}
|
2748
|
-
function
|
2748
|
+
function j(S) {
|
2749
2749
|
function O(I, q, B, H, z) {
|
2750
2750
|
if (!(I[q] instanceof S)) {
|
2751
2751
|
var W = S.name || f, K = we(I[q]);
|
@@ -2764,7 +2764,7 @@ function Uo() {
|
|
2764
2764
|
for (var W = I[q], K = 0; K < S.length; K++)
|
2765
2765
|
if (v(W, S[K]))
|
2766
2766
|
return null;
|
2767
|
-
var ee = JSON.stringify(S, function(
|
2767
|
+
var ee = JSON.stringify(S, function(ge, y) {
|
2768
2768
|
var F = Re(y);
|
2769
2769
|
return F === "symbol" ? String(y) : y;
|
2770
2770
|
});
|
@@ -2772,7 +2772,7 @@ function Uo() {
|
|
2772
2772
|
}
|
2773
2773
|
return w(O);
|
2774
2774
|
}
|
2775
|
-
function
|
2775
|
+
function D(S) {
|
2776
2776
|
function O(I, q, B, H, z) {
|
2777
2777
|
if (typeof S != "function")
|
2778
2778
|
return new g("Property `" + z + "` of component `" + B + "` has invalid PropType notation inside objectOf.");
|
@@ -2796,12 +2796,12 @@ function Uo() {
|
|
2796
2796
|
var I = S[O];
|
2797
2797
|
if (typeof I != "function")
|
2798
2798
|
return a(
|
2799
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
2799
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + de(I) + " at index " + O + "."
|
2800
2800
|
), o;
|
2801
2801
|
}
|
2802
2802
|
function q(B, H, z, W, K) {
|
2803
2803
|
for (var ee = [], L = 0; L < S.length; L++) {
|
2804
|
-
var
|
2804
|
+
var ge = S[L], y = ge(B, H, z, W, K, i);
|
2805
2805
|
if (y == null)
|
2806
2806
|
return null;
|
2807
2807
|
y.data && n(y.data, "expectedType") && ee.push(y.data.expectedType);
|
@@ -2817,12 +2817,12 @@ function Uo() {
|
|
2817
2817
|
}
|
2818
2818
|
return w(S);
|
2819
2819
|
}
|
2820
|
-
function
|
2820
|
+
function ae(S, O, I, q, B) {
|
2821
2821
|
return new g(
|
2822
2822
|
(S || "React class") + ": " + O + " type `" + I + "." + q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + B + "`."
|
2823
2823
|
);
|
2824
2824
|
}
|
2825
|
-
function
|
2825
|
+
function ve(S) {
|
2826
2826
|
function O(I, q, B, H, z) {
|
2827
2827
|
var W = I[q], K = Se(W);
|
2828
2828
|
if (K !== "object")
|
@@ -2830,10 +2830,10 @@ function Uo() {
|
|
2830
2830
|
for (var ee in S) {
|
2831
2831
|
var L = S[ee];
|
2832
2832
|
if (typeof L != "function")
|
2833
|
-
return
|
2834
|
-
var
|
2835
|
-
if (
|
2836
|
-
return
|
2833
|
+
return ae(B, H, z, ee, Re(L));
|
2834
|
+
var ge = L(W, ee, B, H, z + "." + ee, i);
|
2835
|
+
if (ge)
|
2836
|
+
return ge;
|
2837
2837
|
}
|
2838
2838
|
return null;
|
2839
2839
|
}
|
@@ -2846,15 +2846,15 @@ function Uo() {
|
|
2846
2846
|
return new g("Invalid " + H + " `" + z + "` of type `" + K + "` " + ("supplied to `" + B + "`, expected `object`."));
|
2847
2847
|
var ee = t({}, I[q], S);
|
2848
2848
|
for (var L in ee) {
|
2849
|
-
var
|
2850
|
-
if (n(S, L) && typeof
|
2851
|
-
return
|
2852
|
-
if (!
|
2849
|
+
var ge = S[L];
|
2850
|
+
if (n(S, L) && typeof ge != "function")
|
2851
|
+
return ae(B, H, z, L, Re(ge));
|
2852
|
+
if (!ge)
|
2853
2853
|
return new g(
|
2854
2854
|
"Invalid " + H + " `" + z + "` key `" + L + "` supplied to `" + B + "`.\nBad object: " + JSON.stringify(I[q], null, " ") + `
|
2855
2855
|
Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
2856
2856
|
);
|
2857
|
-
var y =
|
2857
|
+
var y = ge(W, L, B, H, z + "." + L, i);
|
2858
2858
|
if (y)
|
2859
2859
|
return y;
|
2860
2860
|
}
|
@@ -2895,12 +2895,12 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
2895
2895
|
return !1;
|
2896
2896
|
}
|
2897
2897
|
}
|
2898
|
-
function
|
2898
|
+
function ue(S, O) {
|
2899
2899
|
return S === "symbol" ? !0 : O ? O["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && O instanceof Symbol : !1;
|
2900
2900
|
}
|
2901
2901
|
function Se(S) {
|
2902
2902
|
var O = typeof S;
|
2903
|
-
return Array.isArray(S) ? "array" : S instanceof RegExp ? "object" :
|
2903
|
+
return Array.isArray(S) ? "array" : S instanceof RegExp ? "object" : ue(O, S) ? "symbol" : O;
|
2904
2904
|
}
|
2905
2905
|
function Re(S) {
|
2906
2906
|
if (typeof S > "u" || S === null)
|
@@ -2914,7 +2914,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
2914
2914
|
}
|
2915
2915
|
return O;
|
2916
2916
|
}
|
2917
|
-
function
|
2917
|
+
function de(S) {
|
2918
2918
|
var O = Re(S);
|
2919
2919
|
switch (O) {
|
2920
2920
|
case "array":
|
@@ -2932,13 +2932,13 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
2932
2932
|
return !S.constructor || !S.constructor.name ? f : S.constructor.name;
|
2933
2933
|
}
|
2934
2934
|
return m.checkPropTypes = r, m.resetWarningCache = r.resetWarningCache, m.PropTypes = m, m;
|
2935
|
-
},
|
2935
|
+
}, jn;
|
2936
2936
|
}
|
2937
|
-
var Dn,
|
2937
|
+
var Dn, Xi;
|
2938
2938
|
function Vo() {
|
2939
|
-
if (
|
2940
|
-
|
2941
|
-
var e = /* @__PURE__ */
|
2939
|
+
if (Xi) return Dn;
|
2940
|
+
Xi = 1;
|
2941
|
+
var e = /* @__PURE__ */ ui();
|
2942
2942
|
function t() {
|
2943
2943
|
}
|
2944
2944
|
function i() {
|
@@ -2982,18 +2982,18 @@ function Vo() {
|
|
2982
2982
|
return a.PropTypes = a, a;
|
2983
2983
|
}, Dn;
|
2984
2984
|
}
|
2985
|
-
var
|
2985
|
+
var Zi;
|
2986
2986
|
function Ho() {
|
2987
|
-
if (
|
2988
|
-
if (
|
2987
|
+
if (Zi) return Xt.exports;
|
2988
|
+
if (Zi = 1, process.env.NODE_ENV !== "production") {
|
2989
2989
|
var e = Nr(), t = !0;
|
2990
|
-
|
2990
|
+
Xt.exports = /* @__PURE__ */ Uo()(e.isElement, t);
|
2991
2991
|
} else
|
2992
|
-
|
2993
|
-
return
|
2992
|
+
Xt.exports = /* @__PURE__ */ Vo()();
|
2993
|
+
return Xt.exports;
|
2994
2994
|
}
|
2995
2995
|
var Go = /* @__PURE__ */ Ho();
|
2996
|
-
const
|
2996
|
+
const ye = /* @__PURE__ */ zr(Go);
|
2997
2997
|
function mt(e, t, i, n) {
|
2998
2998
|
function r(a) {
|
2999
2999
|
return a instanceof i ? a : new i(function(o) {
|
@@ -4226,7 +4226,7 @@ const Yo = /* @__PURE__ */ new Map([
|
|
4226
4226
|
]);
|
4227
4227
|
function bt(e, t, i) {
|
4228
4228
|
const n = Ko(e), { webkitRelativePath: r } = e, a = typeof t == "string" ? t : typeof r == "string" && r.length > 0 ? r : `./${e.name}`;
|
4229
|
-
return typeof n.path != "string" &&
|
4229
|
+
return typeof n.path != "string" && Qi(n, "path", a), Qi(n, "relativePath", a), n;
|
4230
4230
|
}
|
4231
4231
|
function Ko(e) {
|
4232
4232
|
const { name: t } = e;
|
@@ -4241,7 +4241,7 @@ function Ko(e) {
|
|
4241
4241
|
}
|
4242
4242
|
return e;
|
4243
4243
|
}
|
4244
|
-
function
|
4244
|
+
function Qi(e, t, i) {
|
4245
4245
|
Object.defineProperty(e, t, {
|
4246
4246
|
value: i,
|
4247
4247
|
writable: !1,
|
@@ -4258,20 +4258,20 @@ const Jo = [
|
|
4258
4258
|
];
|
4259
4259
|
function Xo(e) {
|
4260
4260
|
return mt(this, void 0, void 0, function* () {
|
4261
|
-
return
|
4261
|
+
return un(e) && Zo(e.dataTransfer) ? ns(e.dataTransfer, e.type) : Qo(e) ? es(e) : Array.isArray(e) && e.every((t) => "getFile" in t && typeof t.getFile == "function") ? ts(e) : [];
|
4262
4262
|
});
|
4263
4263
|
}
|
4264
4264
|
function Zo(e) {
|
4265
|
-
return
|
4265
|
+
return un(e);
|
4266
4266
|
}
|
4267
4267
|
function Qo(e) {
|
4268
|
-
return
|
4268
|
+
return un(e) && un(e.target);
|
4269
4269
|
}
|
4270
|
-
function
|
4270
|
+
function un(e) {
|
4271
4271
|
return typeof e == "object" && e !== null;
|
4272
4272
|
}
|
4273
4273
|
function es(e) {
|
4274
|
-
return
|
4274
|
+
return Gn(e.target.files).map((t) => bt(t));
|
4275
4275
|
}
|
4276
4276
|
function ts(e) {
|
4277
4277
|
return mt(this, void 0, void 0, function* () {
|
@@ -4281,19 +4281,19 @@ function ts(e) {
|
|
4281
4281
|
function ns(e, t) {
|
4282
4282
|
return mt(this, void 0, void 0, function* () {
|
4283
4283
|
if (e.items) {
|
4284
|
-
const i =
|
4284
|
+
const i = Gn(e.items).filter((r) => r.kind === "file");
|
4285
4285
|
if (t !== "drop")
|
4286
4286
|
return i;
|
4287
4287
|
const n = yield Promise.all(i.map(is));
|
4288
|
-
return
|
4288
|
+
return er(Wr(n));
|
4289
4289
|
}
|
4290
|
-
return
|
4290
|
+
return er(Gn(e.files).map((i) => bt(i)));
|
4291
4291
|
});
|
4292
4292
|
}
|
4293
|
-
function
|
4293
|
+
function er(e) {
|
4294
4294
|
return e.filter((t) => Jo.indexOf(t.name) === -1);
|
4295
4295
|
}
|
4296
|
-
function
|
4296
|
+
function Gn(e) {
|
4297
4297
|
if (e === null)
|
4298
4298
|
return [];
|
4299
4299
|
const t = [];
|
@@ -4305,9 +4305,9 @@ function Hn(e) {
|
|
4305
4305
|
}
|
4306
4306
|
function is(e) {
|
4307
4307
|
if (typeof e.webkitGetAsEntry != "function")
|
4308
|
-
return
|
4308
|
+
return tr(e);
|
4309
4309
|
const t = e.webkitGetAsEntry();
|
4310
|
-
return t && t.isDirectory ? Ur(t) :
|
4310
|
+
return t && t.isDirectory ? Ur(t) : tr(e, t);
|
4311
4311
|
}
|
4312
4312
|
function Wr(e) {
|
4313
4313
|
return e.reduce((t, i) => [
|
@@ -4315,7 +4315,7 @@ function Wr(e) {
|
|
4315
4315
|
...Array.isArray(i) ? Wr(i) : [i]
|
4316
4316
|
], []);
|
4317
4317
|
}
|
4318
|
-
function
|
4318
|
+
function tr(e, t) {
|
4319
4319
|
return mt(this, void 0, void 0, function* () {
|
4320
4320
|
var i;
|
4321
4321
|
if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
|
@@ -4373,9 +4373,9 @@ function as(e) {
|
|
4373
4373
|
});
|
4374
4374
|
});
|
4375
4375
|
}
|
4376
|
-
var
|
4376
|
+
var Qt = {}, nr;
|
4377
4377
|
function os() {
|
4378
|
-
return
|
4378
|
+
return nr || (nr = 1, Qt.__esModule = !0, Qt.default = function(e, t) {
|
4379
4379
|
if (e && t) {
|
4380
4380
|
var i = Array.isArray(t) ? t : t.split(",");
|
4381
4381
|
if (i.length === 0)
|
@@ -4387,11 +4387,11 @@ function os() {
|
|
4387
4387
|
});
|
4388
4388
|
}
|
4389
4389
|
return !0;
|
4390
|
-
}),
|
4390
|
+
}), Qt;
|
4391
4391
|
}
|
4392
4392
|
var ss = os();
|
4393
|
-
const
|
4394
|
-
function
|
4393
|
+
const Fn = /* @__PURE__ */ zr(ss);
|
4394
|
+
function ir(e) {
|
4395
4395
|
return ps(e) || ls(e) || Hr(e) || cs();
|
4396
4396
|
}
|
4397
4397
|
function cs() {
|
@@ -4402,9 +4402,9 @@ function ls(e) {
|
|
4402
4402
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
4403
4403
|
}
|
4404
4404
|
function ps(e) {
|
4405
|
-
if (Array.isArray(e)) return
|
4405
|
+
if (Array.isArray(e)) return Yn(e);
|
4406
4406
|
}
|
4407
|
-
function
|
4407
|
+
function rr(e, t) {
|
4408
4408
|
var i = Object.keys(e);
|
4409
4409
|
if (Object.getOwnPropertySymbols) {
|
4410
4410
|
var n = Object.getOwnPropertySymbols(e);
|
@@ -4414,12 +4414,12 @@ function ir(e, t) {
|
|
4414
4414
|
}
|
4415
4415
|
return i;
|
4416
4416
|
}
|
4417
|
-
function
|
4417
|
+
function ar(e) {
|
4418
4418
|
for (var t = 1; t < arguments.length; t++) {
|
4419
4419
|
var i = arguments[t] != null ? arguments[t] : {};
|
4420
|
-
t % 2 ?
|
4420
|
+
t % 2 ? rr(Object(i), !0).forEach(function(n) {
|
4421
4421
|
Vr(e, n, i[n]);
|
4422
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) :
|
4422
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : rr(Object(i)).forEach(function(n) {
|
4423
4423
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
|
4424
4424
|
});
|
4425
4425
|
}
|
@@ -4428,7 +4428,7 @@ function rr(e) {
|
|
4428
4428
|
function Vr(e, t, i) {
|
4429
4429
|
return t in e ? Object.defineProperty(e, t, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = i, e;
|
4430
4430
|
}
|
4431
|
-
function
|
4431
|
+
function Nt(e, t) {
|
4432
4432
|
return fs(e) || ds(e, t) || Hr(e, t) || us();
|
4433
4433
|
}
|
4434
4434
|
function us() {
|
@@ -4437,13 +4437,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
4437
4437
|
}
|
4438
4438
|
function Hr(e, t) {
|
4439
4439
|
if (e) {
|
4440
|
-
if (typeof e == "string") return
|
4440
|
+
if (typeof e == "string") return Yn(e, t);
|
4441
4441
|
var i = Object.prototype.toString.call(e).slice(8, -1);
|
4442
4442
|
if (i === "Object" && e.constructor && (i = e.constructor.name), i === "Map" || i === "Set") return Array.from(e);
|
4443
|
-
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return
|
4443
|
+
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return Yn(e, t);
|
4444
4444
|
}
|
4445
4445
|
}
|
4446
|
-
function
|
4446
|
+
function Yn(e, t) {
|
4447
4447
|
(t == null || t > e.length) && (t = e.length);
|
4448
4448
|
for (var i = 0, n = new Array(t); i < t; i++)
|
4449
4449
|
n[i] = e[i];
|
@@ -4471,18 +4471,18 @@ function ds(e, t) {
|
|
4471
4471
|
function fs(e) {
|
4472
4472
|
if (Array.isArray(e)) return e;
|
4473
4473
|
}
|
4474
|
-
var ms = typeof
|
4474
|
+
var ms = typeof Fn == "function" ? Fn : Fn.default, xs = "file-invalid-type", vs = "file-too-large", gs = "file-too-small", hs = "too-many-files", ys = function() {
|
4475
4475
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", i = t.split(","), n = i.length > 1 ? "one of ".concat(i.join(", ")) : i[0];
|
4476
4476
|
return {
|
4477
4477
|
code: xs,
|
4478
4478
|
message: "File type must be ".concat(n)
|
4479
4479
|
};
|
4480
|
-
},
|
4480
|
+
}, or = function(t) {
|
4481
4481
|
return {
|
4482
4482
|
code: vs,
|
4483
4483
|
message: "File is larger than ".concat(t, " ").concat(t === 1 ? "byte" : "bytes")
|
4484
4484
|
};
|
4485
|
-
},
|
4485
|
+
}, sr = function(t) {
|
4486
4486
|
return {
|
4487
4487
|
code: gs,
|
4488
4488
|
message: "File is smaller than ".concat(t, " ").concat(t === 1 ? "byte" : "bytes")
|
@@ -4498,11 +4498,11 @@ function Gr(e, t) {
|
|
4498
4498
|
function Yr(e, t, i) {
|
4499
4499
|
if (ot(e.size))
|
4500
4500
|
if (ot(t) && ot(i)) {
|
4501
|
-
if (e.size > i) return [!1,
|
4502
|
-
if (e.size < t) return [!1,
|
4501
|
+
if (e.size > i) return [!1, or(i)];
|
4502
|
+
if (e.size < t) return [!1, sr(t)];
|
4503
4503
|
} else {
|
4504
|
-
if (ot(t) && e.size < t) return [!1,
|
4505
|
-
if (ot(i) && e.size > i) return [!1,
|
4504
|
+
if (ot(t) && e.size < t) return [!1, sr(t)];
|
4505
|
+
if (ot(i) && e.size > i) return [!1, or(i)];
|
4506
4506
|
}
|
4507
4507
|
return [!0, null];
|
4508
4508
|
}
|
@@ -4512,19 +4512,19 @@ function ot(e) {
|
|
4512
4512
|
function ws(e) {
|
4513
4513
|
var t = e.files, i = e.accept, n = e.minSize, r = e.maxSize, a = e.multiple, o = e.maxFiles, s = e.validator;
|
4514
4514
|
return !a && t.length > 1 || a && o >= 1 && t.length > o ? !1 : t.every(function(c) {
|
4515
|
-
var p = Gr(c, i), l =
|
4515
|
+
var p = Gr(c, i), l = Nt(p, 1), u = l[0], f = Yr(c, n, r), m = Nt(f, 1), v = m[0], g = s ? s(c) : null;
|
4516
4516
|
return u && v && !g;
|
4517
4517
|
});
|
4518
4518
|
}
|
4519
|
-
function
|
4519
|
+
function dn(e) {
|
4520
4520
|
return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : typeof e.cancelBubble < "u" ? e.cancelBubble : !1;
|
4521
4521
|
}
|
4522
|
-
function
|
4522
|
+
function en(e) {
|
4523
4523
|
return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(t) {
|
4524
4524
|
return t === "Files" || t === "application/x-moz-file";
|
4525
4525
|
}) : !!e.target && !!e.target.files;
|
4526
4526
|
}
|
4527
|
-
function
|
4527
|
+
function cr(e) {
|
4528
4528
|
e.preventDefault();
|
4529
4529
|
}
|
4530
4530
|
function Es(e) {
|
@@ -4544,7 +4544,7 @@ function Ue() {
|
|
4544
4544
|
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
|
4545
4545
|
a[o - 1] = arguments[o];
|
4546
4546
|
return t.some(function(s) {
|
4547
|
-
return !
|
4547
|
+
return !dn(n) && s && s.apply(void 0, [n].concat(a)), dn(n);
|
4548
4548
|
});
|
4549
4549
|
};
|
4550
4550
|
}
|
@@ -4554,11 +4554,11 @@ function Ts() {
|
|
4554
4554
|
function ks(e) {
|
4555
4555
|
if (ot(e)) {
|
4556
4556
|
var t = Object.entries(e).filter(function(i) {
|
4557
|
-
var n =
|
4557
|
+
var n = Nt(i, 2), r = n[0], a = n[1], o = !0;
|
4558
4558
|
return Kr(r) || (console.warn('Skipped "'.concat(r, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), o = !1), (!Array.isArray(a) || !a.every(Jr)) && (console.warn('Skipped "'.concat(r, '" because an invalid file extension was provided.')), o = !1), o;
|
4559
4559
|
}).reduce(function(i, n) {
|
4560
|
-
var r =
|
4561
|
-
return
|
4560
|
+
var r = Nt(n, 2), a = r[0], o = r[1];
|
4561
|
+
return ar(ar({}, i), {}, Vr({}, a, o));
|
4562
4562
|
}, {});
|
4563
4563
|
return [{
|
4564
4564
|
// description is required due to https://crbug.com/1264708
|
@@ -4571,8 +4571,8 @@ function ks(e) {
|
|
4571
4571
|
function Os(e) {
|
4572
4572
|
if (ot(e))
|
4573
4573
|
return Object.entries(e).reduce(function(t, i) {
|
4574
|
-
var n =
|
4575
|
-
return [].concat(
|
4574
|
+
var n = Nt(i, 2), r = n[0], a = n[1];
|
4575
|
+
return [].concat(ir(t), [r], ir(a));
|
4576
4576
|
}, []).filter(function(t) {
|
4577
4577
|
return Kr(t) || Jr(t);
|
4578
4578
|
}).join(",");
|
@@ -4589,7 +4589,7 @@ function Kr(e) {
|
|
4589
4589
|
function Jr(e) {
|
4590
4590
|
return /^.*\.[\w]+$/.test(e);
|
4591
4591
|
}
|
4592
|
-
var As = ["children"],
|
4592
|
+
var As = ["children"], js = ["open"], Ds = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], Fs = ["refKey", "onChange", "onClick"];
|
4593
4593
|
function Ps(e) {
|
4594
4594
|
return zs(e) || Bs(e) || Xr(e) || Is();
|
4595
4595
|
}
|
@@ -4601,9 +4601,9 @@ function Bs(e) {
|
|
4601
4601
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
4602
4602
|
}
|
4603
4603
|
function zs(e) {
|
4604
|
-
if (Array.isArray(e)) return
|
4604
|
+
if (Array.isArray(e)) return Kn(e);
|
4605
4605
|
}
|
4606
|
-
function
|
4606
|
+
function Pn(e, t) {
|
4607
4607
|
return $s(e) || Ms(e, t) || Xr(e, t) || Ls();
|
4608
4608
|
}
|
4609
4609
|
function Ls() {
|
@@ -4612,13 +4612,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
4612
4612
|
}
|
4613
4613
|
function Xr(e, t) {
|
4614
4614
|
if (e) {
|
4615
|
-
if (typeof e == "string") return
|
4615
|
+
if (typeof e == "string") return Kn(e, t);
|
4616
4616
|
var i = Object.prototype.toString.call(e).slice(8, -1);
|
4617
4617
|
if (i === "Object" && e.constructor && (i = e.constructor.name), i === "Map" || i === "Set") return Array.from(e);
|
4618
|
-
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return
|
4618
|
+
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return Kn(e, t);
|
4619
4619
|
}
|
4620
4620
|
}
|
4621
|
-
function
|
4621
|
+
function Kn(e, t) {
|
4622
4622
|
(t == null || t > e.length) && (t = e.length);
|
4623
4623
|
for (var i = 0, n = new Array(t); i < t; i++)
|
4624
4624
|
n[i] = e[i];
|
@@ -4646,7 +4646,7 @@ function Ms(e, t) {
|
|
4646
4646
|
function $s(e) {
|
4647
4647
|
if (Array.isArray(e)) return e;
|
4648
4648
|
}
|
4649
|
-
function
|
4649
|
+
function lr(e, t) {
|
4650
4650
|
var i = Object.keys(e);
|
4651
4651
|
if (Object.getOwnPropertySymbols) {
|
4652
4652
|
var n = Object.getOwnPropertySymbols(e);
|
@@ -4659,18 +4659,18 @@ function cr(e, t) {
|
|
4659
4659
|
function Oe(e) {
|
4660
4660
|
for (var t = 1; t < arguments.length; t++) {
|
4661
4661
|
var i = arguments[t] != null ? arguments[t] : {};
|
4662
|
-
t % 2 ?
|
4663
|
-
|
4664
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) :
|
4662
|
+
t % 2 ? lr(Object(i), !0).forEach(function(n) {
|
4663
|
+
Jn(e, n, i[n]);
|
4664
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : lr(Object(i)).forEach(function(n) {
|
4665
4665
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
|
4666
4666
|
});
|
4667
4667
|
}
|
4668
4668
|
return e;
|
4669
4669
|
}
|
4670
|
-
function
|
4670
|
+
function Jn(e, t, i) {
|
4671
4671
|
return t in e ? Object.defineProperty(e, t, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = i, e;
|
4672
4672
|
}
|
4673
|
-
function
|
4673
|
+
function fn(e, t) {
|
4674
4674
|
if (e == null) return {};
|
4675
4675
|
var i = Ns(e, t), n, r;
|
4676
4676
|
if (Object.getOwnPropertySymbols) {
|
@@ -4687,17 +4687,17 @@ function Ns(e, t) {
|
|
4687
4687
|
r = n[a], !(t.indexOf(r) >= 0) && (i[r] = e[r]);
|
4688
4688
|
return i;
|
4689
4689
|
}
|
4690
|
-
var
|
4691
|
-
var i = e.children, n =
|
4690
|
+
var di = /* @__PURE__ */ Qa(function(e, t) {
|
4691
|
+
var i = e.children, n = fn(e, As), r = Qr(n), a = r.open, o = fn(r, js);
|
4692
4692
|
return eo(t, function() {
|
4693
4693
|
return {
|
4694
4694
|
open: a
|
4695
4695
|
};
|
4696
|
-
}, [a]), /* @__PURE__ */
|
4696
|
+
}, [a]), /* @__PURE__ */ pe.createElement(to, null, i(Oe(Oe({}, o), {}, {
|
4697
4697
|
open: a
|
4698
4698
|
})));
|
4699
4699
|
});
|
4700
|
-
|
4700
|
+
di.displayName = "Dropzone";
|
4701
4701
|
var Zr = {
|
4702
4702
|
disabled: !1,
|
4703
4703
|
getFilesFromEvent: Xo,
|
@@ -4714,8 +4714,8 @@ var Zr = {
|
|
4714
4714
|
useFsAccessApi: !1,
|
4715
4715
|
autoFocus: !1
|
4716
4716
|
};
|
4717
|
-
|
4718
|
-
|
4717
|
+
di.defaultProps = Zr;
|
4718
|
+
di.propTypes = {
|
4719
4719
|
/**
|
4720
4720
|
* Render function that exposes the dropzone state and prop getter fns
|
4721
4721
|
*
|
@@ -4731,7 +4731,7 @@ ui.propTypes = {
|
|
4731
4731
|
* @param {File[]} params.acceptedFiles Accepted files
|
4732
4732
|
* @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
|
4733
4733
|
*/
|
4734
|
-
children:
|
4734
|
+
children: ye.func,
|
4735
4735
|
/**
|
4736
4736
|
* Set accepted file types.
|
4737
4737
|
* Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
|
@@ -4739,90 +4739,90 @@ ui.propTypes = {
|
|
4739
4739
|
* for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
|
4740
4740
|
* Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
|
4741
4741
|
*/
|
4742
|
-
accept:
|
4742
|
+
accept: ye.objectOf(ye.arrayOf(ye.string)),
|
4743
4743
|
/**
|
4744
4744
|
* Allow drag 'n' drop (or selection from the file dialog) of multiple files
|
4745
4745
|
*/
|
4746
|
-
multiple:
|
4746
|
+
multiple: ye.bool,
|
4747
4747
|
/**
|
4748
4748
|
* If false, allow dropped items to take over the current browser window
|
4749
4749
|
*/
|
4750
|
-
preventDropOnDocument:
|
4750
|
+
preventDropOnDocument: ye.bool,
|
4751
4751
|
/**
|
4752
4752
|
* If true, disables click to open the native file selection dialog
|
4753
4753
|
*/
|
4754
|
-
noClick:
|
4754
|
+
noClick: ye.bool,
|
4755
4755
|
/**
|
4756
4756
|
* If true, disables SPACE/ENTER to open the native file selection dialog.
|
4757
4757
|
* Note that it also stops tracking the focus state.
|
4758
4758
|
*/
|
4759
|
-
noKeyboard:
|
4759
|
+
noKeyboard: ye.bool,
|
4760
4760
|
/**
|
4761
4761
|
* If true, disables drag 'n' drop
|
4762
4762
|
*/
|
4763
|
-
noDrag:
|
4763
|
+
noDrag: ye.bool,
|
4764
4764
|
/**
|
4765
4765
|
* If true, stops drag event propagation to parents
|
4766
4766
|
*/
|
4767
|
-
noDragEventsBubbling:
|
4767
|
+
noDragEventsBubbling: ye.bool,
|
4768
4768
|
/**
|
4769
4769
|
* Minimum file size (in bytes)
|
4770
4770
|
*/
|
4771
|
-
minSize:
|
4771
|
+
minSize: ye.number,
|
4772
4772
|
/**
|
4773
4773
|
* Maximum file size (in bytes)
|
4774
4774
|
*/
|
4775
|
-
maxSize:
|
4775
|
+
maxSize: ye.number,
|
4776
4776
|
/**
|
4777
4777
|
* Maximum accepted number of files
|
4778
4778
|
* The default value is 0 which means there is no limitation to how many files are accepted.
|
4779
4779
|
*/
|
4780
|
-
maxFiles:
|
4780
|
+
maxFiles: ye.number,
|
4781
4781
|
/**
|
4782
4782
|
* Enable/disable the dropzone
|
4783
4783
|
*/
|
4784
|
-
disabled:
|
4784
|
+
disabled: ye.bool,
|
4785
4785
|
/**
|
4786
4786
|
* Use this to provide a custom file aggregator
|
4787
4787
|
*
|
4788
4788
|
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
4789
4789
|
*/
|
4790
|
-
getFilesFromEvent:
|
4790
|
+
getFilesFromEvent: ye.func,
|
4791
4791
|
/**
|
4792
4792
|
* Cb for when closing the file dialog with no selection
|
4793
4793
|
*/
|
4794
|
-
onFileDialogCancel:
|
4794
|
+
onFileDialogCancel: ye.func,
|
4795
4795
|
/**
|
4796
4796
|
* Cb for when opening the file dialog
|
4797
4797
|
*/
|
4798
|
-
onFileDialogOpen:
|
4798
|
+
onFileDialogOpen: ye.func,
|
4799
4799
|
/**
|
4800
4800
|
* Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
|
4801
4801
|
* to open the file picker instead of using an `<input type="file">` click event.
|
4802
4802
|
*/
|
4803
|
-
useFsAccessApi:
|
4803
|
+
useFsAccessApi: ye.bool,
|
4804
4804
|
/**
|
4805
4805
|
* Set to true to focus the root element on render
|
4806
4806
|
*/
|
4807
|
-
autoFocus:
|
4807
|
+
autoFocus: ye.bool,
|
4808
4808
|
/**
|
4809
4809
|
* Cb for when the `dragenter` event occurs.
|
4810
4810
|
*
|
4811
4811
|
* @param {DragEvent} event
|
4812
4812
|
*/
|
4813
|
-
onDragEnter:
|
4813
|
+
onDragEnter: ye.func,
|
4814
4814
|
/**
|
4815
4815
|
* Cb for when the `dragleave` event occurs
|
4816
4816
|
*
|
4817
4817
|
* @param {DragEvent} event
|
4818
4818
|
*/
|
4819
|
-
onDragLeave:
|
4819
|
+
onDragLeave: ye.func,
|
4820
4820
|
/**
|
4821
4821
|
* Cb for when the `dragover` event occurs
|
4822
4822
|
*
|
4823
4823
|
* @param {DragEvent} event
|
4824
4824
|
*/
|
4825
|
-
onDragOver:
|
4825
|
+
onDragOver: ye.func,
|
4826
4826
|
/**
|
4827
4827
|
* Cb for when the `drop` event occurs.
|
4828
4828
|
* Note that this callback is invoked after the `getFilesFromEvent` callback is done.
|
@@ -4853,7 +4853,7 @@ ui.propTypes = {
|
|
4853
4853
|
* @param {FileRejection[]} fileRejections
|
4854
4854
|
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
4855
4855
|
*/
|
4856
|
-
onDrop:
|
4856
|
+
onDrop: ye.func,
|
4857
4857
|
/**
|
4858
4858
|
* Cb for when the `drop` event occurs.
|
4859
4859
|
* Note that if no files are accepted, this callback is not invoked.
|
@@ -4861,7 +4861,7 @@ ui.propTypes = {
|
|
4861
4861
|
* @param {File[]} files
|
4862
4862
|
* @param {(DragEvent|Event)} event
|
4863
4863
|
*/
|
4864
|
-
onDropAccepted:
|
4864
|
+
onDropAccepted: ye.func,
|
4865
4865
|
/**
|
4866
4866
|
* Cb for when the `drop` event occurs.
|
4867
4867
|
* Note that if no files are rejected, this callback is not invoked.
|
@@ -4869,21 +4869,21 @@ ui.propTypes = {
|
|
4869
4869
|
* @param {FileRejection[]} fileRejections
|
4870
4870
|
* @param {(DragEvent|Event)} event
|
4871
4871
|
*/
|
4872
|
-
onDropRejected:
|
4872
|
+
onDropRejected: ye.func,
|
4873
4873
|
/**
|
4874
4874
|
* Cb for when there's some error from any of the promises.
|
4875
4875
|
*
|
4876
4876
|
* @param {Error} error
|
4877
4877
|
*/
|
4878
|
-
onError:
|
4878
|
+
onError: ye.func,
|
4879
4879
|
/**
|
4880
4880
|
* Custom validation function. It must return null if there's no errors.
|
4881
4881
|
* @param {File} file
|
4882
4882
|
* @returns {FileError|FileError[]|null}
|
4883
4883
|
*/
|
4884
|
-
validator:
|
4884
|
+
validator: ye.func
|
4885
4885
|
};
|
4886
|
-
var
|
4886
|
+
var Xn = {
|
4887
4887
|
isFocused: !1,
|
4888
4888
|
isFileDialogActive: !1,
|
4889
4889
|
isDragActive: !1,
|
@@ -4893,46 +4893,46 @@ var Jn = {
|
|
4893
4893
|
fileRejections: []
|
4894
4894
|
};
|
4895
4895
|
function Qr() {
|
4896
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = Oe(Oe({}, Zr), e), i = t.accept, n = t.disabled, r = t.getFilesFromEvent, a = t.maxSize, o = t.minSize, s = t.multiple, c = t.maxFiles, p = t.onDragEnter, l = t.onDragLeave, u = t.onDragOver, f = t.onDrop, m = t.onDropAccepted, v = t.onDropRejected, g = t.onFileDialogCancel, w = t.onFileDialogOpen, x = t.useFsAccessApi, k = t.autoFocus, _ = t.preventDropOnDocument, T = t.noClick, b = t.noKeyboard,
|
4896
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = Oe(Oe({}, Zr), e), i = t.accept, n = t.disabled, r = t.getFilesFromEvent, a = t.maxSize, o = t.minSize, s = t.multiple, c = t.maxFiles, p = t.onDragEnter, l = t.onDragLeave, u = t.onDragOver, f = t.onDrop, m = t.onDropAccepted, v = t.onDropRejected, g = t.onFileDialogCancel, w = t.onFileDialogOpen, x = t.useFsAccessApi, k = t.autoFocus, _ = t.preventDropOnDocument, T = t.noClick, b = t.noKeyboard, j = t.noDrag, N = t.noDragEventsBubbling, D = t.onError, G = t.validator, V = Ze(function() {
|
4897
4897
|
return Os(i);
|
4898
|
-
}, [i]),
|
4898
|
+
}, [i]), ae = Ze(function() {
|
4899
4899
|
return ks(i);
|
4900
|
-
}, [i]),
|
4901
|
-
return typeof w == "function" ? w :
|
4900
|
+
}, [i]), ve = Ze(function() {
|
4901
|
+
return typeof w == "function" ? w : pr;
|
4902
4902
|
}, [w]), te = Ze(function() {
|
4903
|
-
return typeof g == "function" ? g :
|
4904
|
-
}, [g]), U = be(null),
|
4903
|
+
return typeof g == "function" ? g : pr;
|
4904
|
+
}, [g]), U = be(null), ue = be(null), Se = Za(qs, Xn), Re = Pn(Se, 2), de = Re[0], we = Re[1], S = de.isFocused, O = de.isFileDialogActive, I = be(typeof window < "u" && window.isSecureContext && x && Ts()), q = function() {
|
4905
4905
|
!I.current && O && setTimeout(function() {
|
4906
|
-
if (
|
4907
|
-
var C =
|
4906
|
+
if (ue.current) {
|
4907
|
+
var C = ue.current.files;
|
4908
4908
|
C.length || (we({
|
4909
4909
|
type: "closeDialog"
|
4910
4910
|
}), te());
|
4911
4911
|
}
|
4912
4912
|
}, 300);
|
4913
4913
|
};
|
4914
|
-
|
4914
|
+
$t(function() {
|
4915
4915
|
return window.addEventListener("focus", q, !1), function() {
|
4916
4916
|
window.removeEventListener("focus", q, !1);
|
4917
4917
|
};
|
4918
|
-
}, [
|
4918
|
+
}, [ue, O, te, I]);
|
4919
4919
|
var B = be([]), H = function(C) {
|
4920
4920
|
U.current && U.current.contains(C.target) || (C.preventDefault(), B.current = []);
|
4921
4921
|
};
|
4922
|
-
|
4923
|
-
return _ && (document.addEventListener("dragover",
|
4924
|
-
_ && (document.removeEventListener("dragover",
|
4922
|
+
$t(function() {
|
4923
|
+
return _ && (document.addEventListener("dragover", cr, !1), document.addEventListener("drop", H, !1)), function() {
|
4924
|
+
_ && (document.removeEventListener("dragover", cr), document.removeEventListener("drop", H));
|
4925
4925
|
};
|
4926
|
-
}, [U, _]),
|
4926
|
+
}, [U, _]), $t(function() {
|
4927
4927
|
return !n && k && U.current && U.current.focus(), function() {
|
4928
4928
|
};
|
4929
4929
|
}, [U, k, n]);
|
4930
4930
|
var z = Ce(function(E) {
|
4931
|
-
|
4932
|
-
}, [
|
4933
|
-
E.preventDefault(), E.persist(), Ee(E), B.current = [].concat(Ps(B.current), [E.target]),
|
4934
|
-
if (!(
|
4935
|
-
var
|
4931
|
+
D ? D(E) : console.error(E);
|
4932
|
+
}, [D]), W = Ce(function(E) {
|
4933
|
+
E.preventDefault(), E.persist(), Ee(E), B.current = [].concat(Ps(B.current), [E.target]), en(E) && Promise.resolve(r(E)).then(function(C) {
|
4934
|
+
if (!(dn(E) && !N)) {
|
4935
|
+
var oe = C.length, me = oe > 0 && ws({
|
4936
4936
|
files: C,
|
4937
4937
|
accept: V,
|
4938
4938
|
minSize: o,
|
@@ -4940,9 +4940,9 @@ function Qr() {
|
|
4940
4940
|
multiple: s,
|
4941
4941
|
maxFiles: c,
|
4942
4942
|
validator: G
|
4943
|
-
}), ke =
|
4943
|
+
}), ke = oe > 0 && !me;
|
4944
4944
|
we({
|
4945
|
-
isDragAccept:
|
4945
|
+
isDragAccept: me,
|
4946
4946
|
isDragReject: ke,
|
4947
4947
|
isDragActive: !0,
|
4948
4948
|
type: "setDraggedFiles"
|
@@ -4953,7 +4953,7 @@ function Qr() {
|
|
4953
4953
|
});
|
4954
4954
|
}, [r, p, z, N, V, o, a, s, c, G]), K = Ce(function(E) {
|
4955
4955
|
E.preventDefault(), E.persist(), Ee(E);
|
4956
|
-
var C =
|
4956
|
+
var C = en(E);
|
4957
4957
|
if (C && E.dataTransfer)
|
4958
4958
|
try {
|
4959
4959
|
E.dataTransfer.dropEffect = "copy";
|
@@ -4962,44 +4962,44 @@ function Qr() {
|
|
4962
4962
|
return C && u && u(E), !1;
|
4963
4963
|
}, [u, N]), ee = Ce(function(E) {
|
4964
4964
|
E.preventDefault(), E.persist(), Ee(E);
|
4965
|
-
var C = B.current.filter(function(
|
4966
|
-
return U.current && U.current.contains(
|
4967
|
-
}),
|
4968
|
-
|
4965
|
+
var C = B.current.filter(function(me) {
|
4966
|
+
return U.current && U.current.contains(me);
|
4967
|
+
}), oe = C.indexOf(E.target);
|
4968
|
+
oe !== -1 && C.splice(oe, 1), B.current = C, !(C.length > 0) && (we({
|
4969
4969
|
type: "setDraggedFiles",
|
4970
4970
|
isDragActive: !1,
|
4971
4971
|
isDragAccept: !1,
|
4972
4972
|
isDragReject: !1
|
4973
|
-
}),
|
4973
|
+
}), en(E) && l && l(E));
|
4974
4974
|
}, [U, l, N]), L = Ce(function(E, C) {
|
4975
|
-
var
|
4975
|
+
var oe = [], me = [];
|
4976
4976
|
E.forEach(function(ke) {
|
4977
|
-
var et = Gr(ke, V), Je =
|
4978
|
-
if (it &&
|
4979
|
-
|
4977
|
+
var et = Gr(ke, V), Je = Pn(et, 2), it = Je[0], Ot = Je[1], _t = Yr(ke, o, a), xt = Pn(_t, 2), Ct = xt[0], At = xt[1], jt = G ? G(ke) : null;
|
4978
|
+
if (it && Ct && !jt)
|
4979
|
+
oe.push(ke);
|
4980
4980
|
else {
|
4981
|
-
var Dt = [
|
4982
|
-
|
4981
|
+
var Dt = [Ot, At];
|
4982
|
+
jt && (Dt = Dt.concat(jt)), me.push({
|
4983
4983
|
file: ke,
|
4984
|
-
errors: Dt.filter(function(
|
4985
|
-
return
|
4984
|
+
errors: Dt.filter(function(Ft) {
|
4985
|
+
return Ft;
|
4986
4986
|
})
|
4987
4987
|
});
|
4988
4988
|
}
|
4989
|
-
}), (!s &&
|
4990
|
-
|
4989
|
+
}), (!s && oe.length > 1 || s && c >= 1 && oe.length > c) && (oe.forEach(function(ke) {
|
4990
|
+
me.push({
|
4991
4991
|
file: ke,
|
4992
4992
|
errors: [bs]
|
4993
4993
|
});
|
4994
|
-
}),
|
4995
|
-
acceptedFiles:
|
4996
|
-
fileRejections:
|
4997
|
-
isDragReject:
|
4994
|
+
}), oe.splice(0)), we({
|
4995
|
+
acceptedFiles: oe,
|
4996
|
+
fileRejections: me,
|
4997
|
+
isDragReject: me.length > 0,
|
4998
4998
|
type: "setFiles"
|
4999
|
-
}), f && f(
|
5000
|
-
}, [we, s, V, o, a, c, f, m, v, G]),
|
5001
|
-
E.preventDefault(), E.persist(), Ee(E), B.current = [],
|
5002
|
-
|
4999
|
+
}), f && f(oe, me, C), me.length > 0 && v && v(me, C), oe.length > 0 && m && m(oe, C);
|
5000
|
+
}, [we, s, V, o, a, c, f, m, v, G]), ge = Ce(function(E) {
|
5001
|
+
E.preventDefault(), E.persist(), Ee(E), B.current = [], en(E) && Promise.resolve(r(E)).then(function(C) {
|
5002
|
+
dn(E) && !N || L(C, E);
|
5003
5003
|
}).catch(function(C) {
|
5004
5004
|
return z(C);
|
5005
5005
|
}), we({
|
@@ -5009,10 +5009,10 @@ function Qr() {
|
|
5009
5009
|
if (I.current) {
|
5010
5010
|
we({
|
5011
5011
|
type: "openDialog"
|
5012
|
-
}),
|
5012
|
+
}), ve();
|
5013
5013
|
var E = {
|
5014
5014
|
multiple: s,
|
5015
|
-
types:
|
5015
|
+
types: ae
|
5016
5016
|
};
|
5017
5017
|
window.showOpenFilePicker(E).then(function(C) {
|
5018
5018
|
return r(C);
|
@@ -5023,14 +5023,14 @@ function Qr() {
|
|
5023
5023
|
}).catch(function(C) {
|
5024
5024
|
_s(C) ? (te(C), we({
|
5025
5025
|
type: "closeDialog"
|
5026
|
-
})) : Cs(C) ? (I.current = !1,
|
5026
|
+
})) : Cs(C) ? (I.current = !1, ue.current ? (ue.current.value = null, ue.current.click()) : z(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : z(C);
|
5027
5027
|
});
|
5028
5028
|
return;
|
5029
5029
|
}
|
5030
|
-
|
5030
|
+
ue.current && (we({
|
5031
5031
|
type: "openDialog"
|
5032
|
-
}),
|
5033
|
-
}, [we,
|
5032
|
+
}), ve(), ue.current.value = null, ue.current.click());
|
5033
|
+
}, [we, ve, te, x, L, z, ae, s]), F = Ce(function(E) {
|
5034
5034
|
!U.current || !U.current.isEqualNode(E.target) || (E.key === " " || E.key === "Enter" || E.keyCode === 32 || E.keyCode === 13) && (E.preventDefault(), y());
|
5035
5035
|
}, [U, y]), J = Ce(function() {
|
5036
5036
|
we({
|
@@ -5040,38 +5040,38 @@ function Qr() {
|
|
5040
5040
|
we({
|
5041
5041
|
type: "blur"
|
5042
5042
|
});
|
5043
|
-
}, []),
|
5043
|
+
}, []), fe = Ce(function() {
|
5044
5044
|
T || (Rs() ? setTimeout(y, 0) : y());
|
5045
5045
|
}, [T, y]), Te = function(C) {
|
5046
5046
|
return n ? null : C;
|
5047
5047
|
}, X = function(C) {
|
5048
5048
|
return b ? null : Te(C);
|
5049
5049
|
}, Q = function(C) {
|
5050
|
-
return
|
5050
|
+
return j ? null : Te(C);
|
5051
5051
|
}, Ee = function(C) {
|
5052
5052
|
N && C.stopPropagation();
|
5053
5053
|
}, Ye = Ze(function() {
|
5054
5054
|
return function() {
|
5055
|
-
var E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, C = E.refKey,
|
5056
|
-
return Oe(Oe(
|
5055
|
+
var E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, C = E.refKey, oe = C === void 0 ? "ref" : C, me = E.role, ke = E.onKeyDown, et = E.onFocus, Je = E.onBlur, it = E.onClick, Ot = E.onDragEnter, _t = E.onDragOver, xt = E.onDragLeave, Ct = E.onDrop, At = fn(E, Ds);
|
5056
|
+
return Oe(Oe(Jn({
|
5057
5057
|
onKeyDown: X(Ue(ke, F)),
|
5058
5058
|
onFocus: X(Ue(et, J)),
|
5059
5059
|
onBlur: X(Ue(Je, M)),
|
5060
|
-
onClick: Te(Ue(it,
|
5061
|
-
onDragEnter: Q(Ue(
|
5062
|
-
onDragOver: Q(Ue(
|
5060
|
+
onClick: Te(Ue(it, fe)),
|
5061
|
+
onDragEnter: Q(Ue(Ot, W)),
|
5062
|
+
onDragOver: Q(Ue(_t, K)),
|
5063
5063
|
onDragLeave: Q(Ue(xt, ee)),
|
5064
|
-
onDrop: Q(Ue(
|
5065
|
-
role: typeof
|
5066
|
-
},
|
5064
|
+
onDrop: Q(Ue(Ct, ge)),
|
5065
|
+
role: typeof me == "string" && me !== "" ? me : "presentation"
|
5066
|
+
}, oe, U), !n && !b ? {
|
5067
5067
|
tabIndex: 0
|
5068
|
-
} : {}),
|
5068
|
+
} : {}), At);
|
5069
5069
|
};
|
5070
|
-
}, [U, F, J, M,
|
5070
|
+
}, [U, F, J, M, fe, W, K, ee, ge, b, j, n]), Ne = Ce(function(E) {
|
5071
5071
|
E.stopPropagation();
|
5072
5072
|
}, []), Ke = Ze(function() {
|
5073
5073
|
return function() {
|
5074
|
-
var E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, C = E.refKey,
|
5074
|
+
var E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, C = E.refKey, oe = C === void 0 ? "ref" : C, me = E.onChange, ke = E.onClick, et = fn(E, Fs), Je = Jn({
|
5075
5075
|
accept: V,
|
5076
5076
|
multiple: s,
|
5077
5077
|
type: "file",
|
@@ -5087,19 +5087,19 @@ function Qr() {
|
|
5087
5087
|
width: "1px",
|
5088
5088
|
whiteSpace: "nowrap"
|
5089
5089
|
},
|
5090
|
-
onChange: Te(Ue(
|
5090
|
+
onChange: Te(Ue(me, ge)),
|
5091
5091
|
onClick: Te(Ue(ke, Ne)),
|
5092
5092
|
tabIndex: -1
|
5093
|
-
},
|
5093
|
+
}, oe, ue);
|
5094
5094
|
return Oe(Oe({}, Je), et);
|
5095
5095
|
};
|
5096
|
-
}, [
|
5097
|
-
return Oe(Oe({},
|
5096
|
+
}, [ue, i, s, ge, n]);
|
5097
|
+
return Oe(Oe({}, de), {}, {
|
5098
5098
|
isFocused: S && !n,
|
5099
5099
|
getRootProps: Ye,
|
5100
5100
|
getInputProps: Ke,
|
5101
5101
|
rootRef: U,
|
5102
|
-
inputRef:
|
5102
|
+
inputRef: ue,
|
5103
5103
|
open: Te(y)
|
5104
5104
|
});
|
5105
5105
|
}
|
@@ -5114,7 +5114,7 @@ function qs(e, t) {
|
|
5114
5114
|
isFocused: !1
|
5115
5115
|
});
|
5116
5116
|
case "openDialog":
|
5117
|
-
return Oe(Oe({},
|
5117
|
+
return Oe(Oe({}, Xn), {}, {
|
5118
5118
|
isFileDialogActive: !0
|
5119
5119
|
});
|
5120
5120
|
case "closeDialog":
|
@@ -5134,24 +5134,24 @@ function qs(e, t) {
|
|
5134
5134
|
isDragReject: t.isDragReject
|
5135
5135
|
});
|
5136
5136
|
case "reset":
|
5137
|
-
return Oe({},
|
5137
|
+
return Oe({}, Xn);
|
5138
5138
|
default:
|
5139
5139
|
return e;
|
5140
5140
|
}
|
5141
5141
|
}
|
5142
|
-
function
|
5142
|
+
function pr() {
|
5143
5143
|
}
|
5144
5144
|
const Ws = {
|
5145
5145
|
WAV_MIME_TYPES: ["audio/wav", "audio/x-wav", "audio/wave", "audio/x-pn-wav"],
|
5146
5146
|
MP3_MIME_TYPES: ["audio/mpeg", "audio/mp3", "audio/x-mpeg", "audio/x-mp3", "audio/x-mpeg-3"],
|
5147
5147
|
FLAC_MIME_TYPES: ["audio/flac"]
|
5148
|
-
}, Us = 10 * 1e3,
|
5148
|
+
}, Us = 10 * 1e3, ur = "[Audio.getDurationSeconds]", Vs = async (e, { throwError: t } = {}) => new Promise((i, n) => {
|
5149
5149
|
if (typeof window > "u")
|
5150
5150
|
return n(new Error("getDurationSeconds is only usable in the browser"));
|
5151
5151
|
const r = URL.createObjectURL(e), a = new Audio(), o = () => {
|
5152
5152
|
a.src = "", URL.revokeObjectURL(r);
|
5153
5153
|
}, s = setTimeout(() => {
|
5154
|
-
o(), console.error(
|
5154
|
+
o(), console.error(ur, "Timeout", e.name, e.size, e.type), i(0);
|
5155
5155
|
}, Us);
|
5156
5156
|
a.addEventListener(
|
5157
5157
|
"loadedmetadata",
|
@@ -5163,7 +5163,7 @@ const Ws = {
|
|
5163
5163
|
), a.addEventListener(
|
5164
5164
|
"error",
|
5165
5165
|
(c) => {
|
5166
|
-
clearTimeout(s), o(), t ? (console.error(
|
5166
|
+
clearTimeout(s), o(), t ? (console.error(ur, "Error", e.name, e.size, e.type, c), n(e)) : i(0);
|
5167
5167
|
},
|
5168
5168
|
{ once: !0 }
|
5169
5169
|
), a.src = r;
|
@@ -5249,7 +5249,7 @@ const ec = (e) => ({
|
|
5249
5249
|
handleMinSizeError: n,
|
5250
5250
|
handleUnknownError: r,
|
5251
5251
|
handleInvalidTypeError: a
|
5252
|
-
} = ec(e), [o, s] =
|
5252
|
+
} = ec(e), [o, s] = ci(null);
|
5253
5253
|
return { dropzone: Qr({
|
5254
5254
|
accept: {
|
5255
5255
|
"audio/wav": [".wav"],
|
@@ -5275,9 +5275,9 @@ const ec = (e) => ({
|
|
5275
5275
|
});
|
5276
5276
|
}
|
5277
5277
|
}), error: o, ...e };
|
5278
|
-
}, ta =
|
5278
|
+
}, ta = pe.createContext(
|
5279
5279
|
{}
|
5280
|
-
),
|
5280
|
+
), nu = () => pe.useContext(ta), nc = qe(Rt, {
|
5281
5281
|
position: "relative",
|
5282
5282
|
display: "flex",
|
5283
5283
|
flexDirection: "column",
|
@@ -5298,11 +5298,11 @@ const ec = (e) => ({
|
|
5298
5298
|
onError: l,
|
5299
5299
|
...u
|
5300
5300
|
} = t;
|
5301
|
-
return /* @__PURE__ */
|
5302
|
-
/* @__PURE__ */
|
5301
|
+
return /* @__PURE__ */ re.jsx(ta.Provider, { value: i, children: /* @__PURE__ */ re.jsxs(nc, { ...u, ...i.dropzone.getRootProps(), children: [
|
5302
|
+
/* @__PURE__ */ re.jsx("input", { ...i.dropzone.getInputProps() }),
|
5303
5303
|
e
|
5304
5304
|
] }) });
|
5305
|
-
}, rc = qe(
|
5305
|
+
}, rc = qe(Rt, {
|
5306
5306
|
width: "100%",
|
5307
5307
|
height: "100%",
|
5308
5308
|
display: "flex",
|
@@ -5313,23 +5313,23 @@ const ec = (e) => ({
|
|
5313
5313
|
alignItems: "stretch",
|
5314
5314
|
maxHeight: "500px",
|
5315
5315
|
justifyContent: "center"
|
5316
|
-
}), ac = qe(
|
5316
|
+
}), ac = qe(Rt, {
|
5317
5317
|
paddingTop: "32px",
|
5318
5318
|
display: "flex",
|
5319
5319
|
justifyContent: "center"
|
5320
|
-
}), oc = qe(
|
5320
|
+
}), oc = qe(Rt, {
|
5321
5321
|
flex: 1,
|
5322
5322
|
gap: "16px",
|
5323
5323
|
display: "flex",
|
5324
5324
|
alignItems: "center",
|
5325
5325
|
justifyContent: "center",
|
5326
5326
|
padding: "16px"
|
5327
|
-
}), sc = qe(
|
5327
|
+
}), sc = qe(Rt, {
|
5328
5328
|
borderTop: "1px solid #ffffff10",
|
5329
5329
|
display: "flex",
|
5330
5330
|
alignItems: "stretch",
|
5331
5331
|
height: "96px"
|
5332
|
-
}), cc = qe(
|
5332
|
+
}), cc = qe(Rt, {
|
5333
5333
|
height: "252px",
|
5334
5334
|
width: "222px",
|
5335
5335
|
borderRadius: "8px",
|
@@ -5339,7 +5339,7 @@ const ec = (e) => ({
|
|
5339
5339
|
flexDirection: "column",
|
5340
5340
|
alignItems: "center",
|
5341
5341
|
justifyContent: "center"
|
5342
|
-
}),
|
5342
|
+
}), iu = {
|
5343
5343
|
Root: rc,
|
5344
5344
|
Header: ac,
|
5345
5345
|
Content: oc,
|
@@ -5351,33 +5351,33 @@ function na(e, t) {
|
|
5351
5351
|
return e.apply(t, arguments);
|
5352
5352
|
};
|
5353
5353
|
}
|
5354
|
-
const { toString: lc } = Object.prototype, { getPrototypeOf:
|
5354
|
+
const { toString: lc } = Object.prototype, { getPrototypeOf: fi } = Object, vn = /* @__PURE__ */ ((e) => (t) => {
|
5355
5355
|
const i = lc.call(t);
|
5356
5356
|
return e[i] || (e[i] = i.slice(8, -1).toLowerCase());
|
5357
|
-
})(/* @__PURE__ */ Object.create(null)), We = (e) => (e = e.toLowerCase(), (t) =>
|
5357
|
+
})(/* @__PURE__ */ Object.create(null)), We = (e) => (e = e.toLowerCase(), (t) => vn(t) === e), gn = (e) => (t) => typeof t === e, { isArray: Tt } = Array, qt = gn("undefined");
|
5358
5358
|
function pc(e) {
|
5359
|
-
return e !== null && !
|
5359
|
+
return e !== null && !qt(e) && e.constructor !== null && !qt(e.constructor) && ze(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
5360
5360
|
}
|
5361
5361
|
const ia = We("ArrayBuffer");
|
5362
5362
|
function uc(e) {
|
5363
5363
|
let t;
|
5364
5364
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ia(e.buffer), t;
|
5365
5365
|
}
|
5366
|
-
const dc =
|
5367
|
-
if (
|
5366
|
+
const dc = gn("string"), ze = gn("function"), ra = gn("number"), hn = (e) => e !== null && typeof e == "object", fc = (e) => e === !0 || e === !1, sn = (e) => {
|
5367
|
+
if (vn(e) !== "object")
|
5368
5368
|
return !1;
|
5369
|
-
const t =
|
5369
|
+
const t = fi(e);
|
5370
5370
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
5371
|
-
}, mc = We("Date"), xc = We("File"), vc = We("Blob"), gc = We("FileList"), hc = (e) =>
|
5371
|
+
}, mc = We("Date"), xc = We("File"), vc = We("Blob"), gc = We("FileList"), hc = (e) => hn(e) && ze(e.pipe), yc = (e) => {
|
5372
5372
|
let t;
|
5373
|
-
return e && (typeof FormData == "function" && e instanceof FormData || ze(e.append) && ((t =
|
5373
|
+
return e && (typeof FormData == "function" && e instanceof FormData || ze(e.append) && ((t = vn(e)) === "formdata" || // detect form-data instance
|
5374
5374
|
t === "object" && ze(e.toString) && e.toString() === "[object FormData]"));
|
5375
5375
|
}, bc = We("URLSearchParams"), [wc, Ec, Sc, Rc] = ["ReadableStream", "Request", "Response", "Headers"].map(We), Tc = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
5376
|
-
function
|
5376
|
+
function Vt(e, t, { allOwnKeys: i = !1 } = {}) {
|
5377
5377
|
if (e === null || typeof e > "u")
|
5378
5378
|
return;
|
5379
5379
|
let n, r;
|
5380
|
-
if (typeof e != "object" && (e = [e]),
|
5380
|
+
if (typeof e != "object" && (e = [e]), Tt(e))
|
5381
5381
|
for (n = 0, r = e.length; n < r; n++)
|
5382
5382
|
t.call(null, e[n], n, e);
|
5383
5383
|
else {
|
@@ -5396,17 +5396,17 @@ function aa(e, t) {
|
|
5396
5396
|
return r;
|
5397
5397
|
return null;
|
5398
5398
|
}
|
5399
|
-
const st = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, oa = (e) => !
|
5400
|
-
function
|
5399
|
+
const st = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, oa = (e) => !qt(e) && e !== st;
|
5400
|
+
function Zn() {
|
5401
5401
|
const { caseless: e } = oa(this) && this || {}, t = {}, i = (n, r) => {
|
5402
5402
|
const a = e && aa(t, r) || r;
|
5403
|
-
|
5403
|
+
sn(t[a]) && sn(n) ? t[a] = Zn(t[a], n) : sn(n) ? t[a] = Zn({}, n) : Tt(n) ? t[a] = n.slice() : t[a] = n;
|
5404
5404
|
};
|
5405
5405
|
for (let n = 0, r = arguments.length; n < r; n++)
|
5406
|
-
arguments[n] &&
|
5406
|
+
arguments[n] && Vt(arguments[n], i);
|
5407
5407
|
return t;
|
5408
5408
|
}
|
5409
|
-
const kc = (e, t, i, { allOwnKeys: n } = {}) => (
|
5409
|
+
const kc = (e, t, i, { allOwnKeys: n } = {}) => (Vt(t, (r, a) => {
|
5410
5410
|
i && ze(r) ? e[a] = na(r, i) : e[a] = r;
|
5411
5411
|
}, { allOwnKeys: n }), e), Oc = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), _c = (e, t, i, n) => {
|
5412
5412
|
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
@@ -5419,23 +5419,23 @@ const kc = (e, t, i, { allOwnKeys: n } = {}) => (Ut(t, (r, a) => {
|
|
5419
5419
|
do {
|
5420
5420
|
for (r = Object.getOwnPropertyNames(e), a = r.length; a-- > 0; )
|
5421
5421
|
o = r[a], (!n || n(o, e, t)) && !s[o] && (t[o] = e[o], s[o] = !0);
|
5422
|
-
e = i !== !1 &&
|
5422
|
+
e = i !== !1 && fi(e);
|
5423
5423
|
} while (e && (!i || i(e, t)) && e !== Object.prototype);
|
5424
5424
|
return t;
|
5425
5425
|
}, Ac = (e, t, i) => {
|
5426
5426
|
e = String(e), (i === void 0 || i > e.length) && (i = e.length), i -= t.length;
|
5427
5427
|
const n = e.indexOf(t, i);
|
5428
5428
|
return n !== -1 && n === i;
|
5429
|
-
},
|
5429
|
+
}, jc = (e) => {
|
5430
5430
|
if (!e) return null;
|
5431
|
-
if (
|
5431
|
+
if (Tt(e)) return e;
|
5432
5432
|
let t = e.length;
|
5433
5433
|
if (!ra(t)) return null;
|
5434
5434
|
const i = new Array(t);
|
5435
5435
|
for (; t-- > 0; )
|
5436
5436
|
i[t] = e[t];
|
5437
5437
|
return i;
|
5438
|
-
},
|
5438
|
+
}, Dc = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && fi(Uint8Array)), Fc = (e, t) => {
|
5439
5439
|
const n = (e && e[Symbol.iterator]).call(e);
|
5440
5440
|
let r;
|
5441
5441
|
for (; (r = n.next()) && !r.done; ) {
|
@@ -5453,9 +5453,9 @@ const kc = (e, t, i, { allOwnKeys: n } = {}) => (Ut(t, (r, a) => {
|
|
5453
5453
|
function(i, n, r) {
|
5454
5454
|
return n.toUpperCase() + r;
|
5455
5455
|
}
|
5456
|
-
),
|
5456
|
+
), dr = (({ hasOwnProperty: e }) => (t, i) => e.call(t, i))(Object.prototype), zc = We("RegExp"), sa = (e, t) => {
|
5457
5457
|
const i = Object.getOwnPropertyDescriptors(e), n = {};
|
5458
|
-
|
5458
|
+
Vt(i, (r, a) => {
|
5459
5459
|
let o;
|
5460
5460
|
(o = t(r, a, e)) !== !1 && (n[a] = o || r);
|
5461
5461
|
}), Object.defineProperties(e, n);
|
@@ -5480,12 +5480,12 @@ const kc = (e, t, i, { allOwnKeys: n } = {}) => (Ut(t, (r, a) => {
|
|
5480
5480
|
i[a] = !0;
|
5481
5481
|
});
|
5482
5482
|
};
|
5483
|
-
return
|
5483
|
+
return Tt(e) ? n(e) : n(String(e).split(t)), i;
|
5484
5484
|
}, $c = () => {
|
5485
|
-
}, Nc = (e, t) => e != null && Number.isFinite(e = +e) ? e : t,
|
5486
|
-
DIGIT:
|
5487
|
-
ALPHA:
|
5488
|
-
ALPHA_DIGIT:
|
5485
|
+
}, Nc = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, In = "abcdefghijklmnopqrstuvwxyz", fr = "0123456789", ca = {
|
5486
|
+
DIGIT: fr,
|
5487
|
+
ALPHA: In,
|
5488
|
+
ALPHA_DIGIT: In + In.toUpperCase() + fr
|
5489
5489
|
}, qc = (e = 16, t = ca.ALPHA_DIGIT) => {
|
5490
5490
|
let i = "";
|
5491
5491
|
const { length: n } = t;
|
@@ -5498,22 +5498,22 @@ function Wc(e) {
|
|
5498
5498
|
}
|
5499
5499
|
const Uc = (e) => {
|
5500
5500
|
const t = new Array(10), i = (n, r) => {
|
5501
|
-
if (
|
5501
|
+
if (hn(n)) {
|
5502
5502
|
if (t.indexOf(n) >= 0)
|
5503
5503
|
return;
|
5504
5504
|
if (!("toJSON" in n)) {
|
5505
5505
|
t[r] = n;
|
5506
|
-
const a =
|
5507
|
-
return
|
5506
|
+
const a = Tt(n) ? [] : {};
|
5507
|
+
return Vt(n, (o, s) => {
|
5508
5508
|
const c = i(o, r + 1);
|
5509
|
-
!
|
5509
|
+
!qt(c) && (a[s] = c);
|
5510
5510
|
}), t[r] = void 0, a;
|
5511
5511
|
}
|
5512
5512
|
}
|
5513
5513
|
return n;
|
5514
5514
|
};
|
5515
5515
|
return i(e, 0);
|
5516
|
-
}, Vc = We("AsyncFunction"), Hc = (e) => e && (
|
5516
|
+
}, Vc = We("AsyncFunction"), Hc = (e) => e && (hn(e) || ze(e)) && ze(e.then) && ze(e.catch), la = ((e, t) => e ? setImmediate : t ? ((i, n) => (st.addEventListener("message", ({ source: r, data: a }) => {
|
5517
5517
|
r === st && a === i && n.length && n.shift()();
|
5518
5518
|
}, !1), (r) => {
|
5519
5519
|
n.push(r), st.postMessage(i, "*");
|
@@ -5521,7 +5521,7 @@ const Uc = (e) => {
|
|
5521
5521
|
typeof setImmediate == "function",
|
5522
5522
|
ze(st.postMessage)
|
5523
5523
|
), Gc = typeof queueMicrotask < "u" ? queueMicrotask.bind(st) : typeof process < "u" && process.nextTick || la, h = {
|
5524
|
-
isArray:
|
5524
|
+
isArray: Tt,
|
5525
5525
|
isArrayBuffer: ia,
|
5526
5526
|
isBuffer: pc,
|
5527
5527
|
isFormData: yc,
|
@@ -5529,13 +5529,13 @@ const Uc = (e) => {
|
|
5529
5529
|
isString: dc,
|
5530
5530
|
isNumber: ra,
|
5531
5531
|
isBoolean: fc,
|
5532
|
-
isObject:
|
5533
|
-
isPlainObject:
|
5532
|
+
isObject: hn,
|
5533
|
+
isPlainObject: sn,
|
5534
5534
|
isReadableStream: wc,
|
5535
5535
|
isRequest: Ec,
|
5536
5536
|
isResponse: Sc,
|
5537
5537
|
isHeaders: Rc,
|
5538
|
-
isUndefined:
|
5538
|
+
isUndefined: qt,
|
5539
5539
|
isDate: mc,
|
5540
5540
|
isFile: xc,
|
5541
5541
|
isBlob: vc,
|
@@ -5543,24 +5543,24 @@ const Uc = (e) => {
|
|
5543
5543
|
isFunction: ze,
|
5544
5544
|
isStream: hc,
|
5545
5545
|
isURLSearchParams: bc,
|
5546
|
-
isTypedArray:
|
5546
|
+
isTypedArray: Dc,
|
5547
5547
|
isFileList: gc,
|
5548
|
-
forEach:
|
5549
|
-
merge:
|
5548
|
+
forEach: Vt,
|
5549
|
+
merge: Zn,
|
5550
5550
|
extend: kc,
|
5551
5551
|
trim: Tc,
|
5552
5552
|
stripBOM: Oc,
|
5553
5553
|
inherits: _c,
|
5554
5554
|
toFlatObject: Cc,
|
5555
|
-
kindOf:
|
5555
|
+
kindOf: vn,
|
5556
5556
|
kindOfTest: We,
|
5557
5557
|
endsWith: Ac,
|
5558
|
-
toArray:
|
5558
|
+
toArray: jc,
|
5559
5559
|
forEachEntry: Fc,
|
5560
5560
|
matchAll: Pc,
|
5561
5561
|
isHTMLForm: Ic,
|
5562
|
-
hasOwnProperty:
|
5563
|
-
hasOwnProp:
|
5562
|
+
hasOwnProperty: dr,
|
5563
|
+
hasOwnProp: dr,
|
5564
5564
|
// an alias to avoid ESLint no-prototype-builtins detection
|
5565
5565
|
reduceDescriptors: sa,
|
5566
5566
|
freezeMethods: Lc,
|
@@ -5631,24 +5631,24 @@ Z.from = (e, t, i, n, r, a) => {
|
|
5631
5631
|
}, (s) => s !== "isAxiosError"), Z.call(o, e.message, t, i, n, r), o.cause = e, o.name = e.name, a && Object.assign(o, a), o;
|
5632
5632
|
};
|
5633
5633
|
const Yc = null;
|
5634
|
-
function
|
5634
|
+
function Qn(e) {
|
5635
5635
|
return h.isPlainObject(e) || h.isArray(e);
|
5636
5636
|
}
|
5637
5637
|
function da(e) {
|
5638
5638
|
return h.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
5639
5639
|
}
|
5640
|
-
function
|
5640
|
+
function mr(e, t, i) {
|
5641
5641
|
return e ? e.concat(t).map(function(r, a) {
|
5642
5642
|
return r = da(r), !i && a ? "[" + r + "]" : r;
|
5643
5643
|
}).join(i ? "." : "") : t;
|
5644
5644
|
}
|
5645
5645
|
function Kc(e) {
|
5646
|
-
return h.isArray(e) && !e.some(
|
5646
|
+
return h.isArray(e) && !e.some(Qn);
|
5647
5647
|
}
|
5648
5648
|
const Jc = h.toFlatObject(h, {}, null, function(t) {
|
5649
5649
|
return /^is[A-Z]/.test(t);
|
5650
5650
|
});
|
5651
|
-
function
|
5651
|
+
function yn(e, t, i) {
|
5652
5652
|
if (!h.isObject(e))
|
5653
5653
|
throw new TypeError("target must be an object");
|
5654
5654
|
t = t || new FormData(), i = h.toFlatObject(i, {
|
@@ -5678,17 +5678,17 @@ function hn(e, t, i) {
|
|
5678
5678
|
return g = da(g), x.forEach(function(_, T) {
|
5679
5679
|
!(h.isUndefined(_) || _ === null) && t.append(
|
5680
5680
|
// eslint-disable-next-line no-nested-ternary
|
5681
|
-
o === !0 ?
|
5681
|
+
o === !0 ? mr([g], T, a) : o === null ? g : g + "[]",
|
5682
5682
|
p(_)
|
5683
5683
|
);
|
5684
5684
|
}), !1;
|
5685
5685
|
}
|
5686
|
-
return
|
5686
|
+
return Qn(v) ? !0 : (t.append(mr(w, g, a), p(v)), !1);
|
5687
5687
|
}
|
5688
5688
|
const u = [], f = Object.assign(Jc, {
|
5689
5689
|
defaultVisitor: l,
|
5690
5690
|
convertValue: p,
|
5691
|
-
isVisitable:
|
5691
|
+
isVisitable: Qn
|
5692
5692
|
});
|
5693
5693
|
function m(v, g) {
|
5694
5694
|
if (!h.isUndefined(v)) {
|
@@ -5709,7 +5709,7 @@ function hn(e, t, i) {
|
|
5709
5709
|
throw new TypeError("data must be an object");
|
5710
5710
|
return m(e), t;
|
5711
5711
|
}
|
5712
|
-
function
|
5712
|
+
function xr(e) {
|
5713
5713
|
const t = {
|
5714
5714
|
"!": "%21",
|
5715
5715
|
"'": "%27",
|
@@ -5723,17 +5723,17 @@ function mr(e) {
|
|
5723
5723
|
return t[n];
|
5724
5724
|
});
|
5725
5725
|
}
|
5726
|
-
function
|
5727
|
-
this._pairs = [], e &&
|
5726
|
+
function mi(e, t) {
|
5727
|
+
this._pairs = [], e && yn(e, this, t);
|
5728
5728
|
}
|
5729
|
-
const fa =
|
5729
|
+
const fa = mi.prototype;
|
5730
5730
|
fa.append = function(t, i) {
|
5731
5731
|
this._pairs.push([t, i]);
|
5732
5732
|
};
|
5733
5733
|
fa.toString = function(t) {
|
5734
5734
|
const i = t ? function(n) {
|
5735
|
-
return t.call(this, n,
|
5736
|
-
} :
|
5735
|
+
return t.call(this, n, xr);
|
5736
|
+
} : xr;
|
5737
5737
|
return this._pairs.map(function(r) {
|
5738
5738
|
return i(r[0]) + "=" + i(r[1]);
|
5739
5739
|
}, "").join("&");
|
@@ -5750,13 +5750,13 @@ function ma(e, t, i) {
|
|
5750
5750
|
});
|
5751
5751
|
const r = i && i.serialize;
|
5752
5752
|
let a;
|
5753
|
-
if (r ? a = r(t, i) : a = h.isURLSearchParams(t) ? t.toString() : new
|
5753
|
+
if (r ? a = r(t, i) : a = h.isURLSearchParams(t) ? t.toString() : new mi(t, i).toString(n), a) {
|
5754
5754
|
const o = e.indexOf("#");
|
5755
5755
|
o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + a;
|
5756
5756
|
}
|
5757
5757
|
return e;
|
5758
5758
|
}
|
5759
|
-
class
|
5759
|
+
class vr {
|
5760
5760
|
constructor() {
|
5761
5761
|
this.handlers = [];
|
5762
5762
|
}
|
@@ -5814,7 +5814,7 @@ const xa = {
|
|
5814
5814
|
silentJSONParsing: !0,
|
5815
5815
|
forcedJSONParsing: !0,
|
5816
5816
|
clarifyTimeoutError: !1
|
5817
|
-
}, Zc = typeof URLSearchParams < "u" ? URLSearchParams :
|
5817
|
+
}, Zc = typeof URLSearchParams < "u" ? URLSearchParams : mi, Qc = typeof FormData < "u" ? FormData : null, el = typeof Blob < "u" ? Blob : null, tl = {
|
5818
5818
|
isBrowser: !0,
|
5819
5819
|
classes: {
|
5820
5820
|
URLSearchParams: Zc,
|
@@ -5822,20 +5822,20 @@ const xa = {
|
|
5822
5822
|
Blob: el
|
5823
5823
|
},
|
5824
5824
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
5825
|
-
},
|
5826
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", rl =
|
5825
|
+
}, xi = typeof window < "u" && typeof document < "u", ei = typeof navigator == "object" && navigator || void 0, nl = xi && (!ei || ["ReactNative", "NativeScript", "NS"].indexOf(ei.product) < 0), il = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
5826
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", rl = xi && window.location.href || "http://localhost", al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
5827
5827
|
__proto__: null,
|
5828
|
-
hasBrowserEnv:
|
5828
|
+
hasBrowserEnv: xi,
|
5829
5829
|
hasStandardBrowserEnv: nl,
|
5830
5830
|
hasStandardBrowserWebWorkerEnv: il,
|
5831
|
-
navigator:
|
5831
|
+
navigator: ei,
|
5832
5832
|
origin: rl
|
5833
5833
|
}, Symbol.toStringTag, { value: "Module" })), Fe = {
|
5834
5834
|
...al,
|
5835
5835
|
...tl
|
5836
5836
|
};
|
5837
5837
|
function ol(e, t) {
|
5838
|
-
return
|
5838
|
+
return yn(e, new Fe.classes.URLSearchParams(), Object.assign({
|
5839
5839
|
visitor: function(i, n, r, a) {
|
5840
5840
|
return Fe.isNode && h.isBuffer(i) ? (this.append(n, i.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
5841
5841
|
}
|
@@ -5878,7 +5878,7 @@ function ll(e, t, i) {
|
|
5878
5878
|
}
|
5879
5879
|
return (0, JSON.stringify)(e);
|
5880
5880
|
}
|
5881
|
-
const
|
5881
|
+
const Ht = {
|
5882
5882
|
transitional: xa,
|
5883
5883
|
adapter: ["xhr", "http", "fetch"],
|
5884
5884
|
transformRequest: [function(t, i) {
|
@@ -5897,7 +5897,7 @@ const Vt = {
|
|
5897
5897
|
return ol(t, this.formSerializer).toString();
|
5898
5898
|
if ((s = h.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
5899
5899
|
const c = this.env && this.env.FormData;
|
5900
|
-
return
|
5900
|
+
return yn(
|
5901
5901
|
s ? { "files[]": t } : t,
|
5902
5902
|
c && new c(),
|
5903
5903
|
this.formSerializer
|
@@ -5907,7 +5907,7 @@ const Vt = {
|
|
5907
5907
|
return a || r ? (i.setContentType("application/json", !1), ll(t)) : t;
|
5908
5908
|
}],
|
5909
5909
|
transformResponse: [function(t) {
|
5910
|
-
const i = this.transitional ||
|
5910
|
+
const i = this.transitional || Ht.transitional, n = i && i.forcedJSONParsing, r = this.responseType === "json";
|
5911
5911
|
if (h.isResponse(t) || h.isReadableStream(t))
|
5912
5912
|
return t;
|
5913
5913
|
if (t && h.isString(t) && (n && !this.responseType || r)) {
|
@@ -5945,7 +5945,7 @@ const Vt = {
|
|
5945
5945
|
}
|
5946
5946
|
};
|
5947
5947
|
h.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
5948
|
-
|
5948
|
+
Ht.headers[e] = {};
|
5949
5949
|
});
|
5950
5950
|
const pl = h.toObjectSet([
|
5951
5951
|
"age",
|
@@ -5972,12 +5972,12 @@ const pl = h.toObjectSet([
|
|
5972
5972
|
`).forEach(function(o) {
|
5973
5973
|
r = o.indexOf(":"), i = o.substring(0, r).trim().toLowerCase(), n = o.substring(r + 1).trim(), !(!i || t[i] && pl[i]) && (i === "set-cookie" ? t[i] ? t[i].push(n) : t[i] = [n] : t[i] = t[i] ? t[i] + ", " + n : n);
|
5974
5974
|
}), t;
|
5975
|
-
},
|
5976
|
-
function
|
5975
|
+
}, gr = Symbol("internals");
|
5976
|
+
function Lt(e) {
|
5977
5977
|
return e && String(e).trim().toLowerCase();
|
5978
5978
|
}
|
5979
|
-
function
|
5980
|
-
return e === !1 || e == null ? e : h.isArray(e) ? e.map(
|
5979
|
+
function cn(e) {
|
5980
|
+
return e === !1 || e == null ? e : h.isArray(e) ? e.map(cn) : String(e);
|
5981
5981
|
}
|
5982
5982
|
function dl(e) {
|
5983
5983
|
const t = /* @__PURE__ */ Object.create(null), i = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
@@ -5987,7 +5987,7 @@ function dl(e) {
|
|
5987
5987
|
return t;
|
5988
5988
|
}
|
5989
5989
|
const fl = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
5990
|
-
function
|
5990
|
+
function Bn(e, t, i, n, r) {
|
5991
5991
|
if (h.isFunction(n))
|
5992
5992
|
return n.call(this, t, i);
|
5993
5993
|
if (r && (t = i), !!h.isString(t)) {
|
@@ -6018,11 +6018,11 @@ class Be {
|
|
6018
6018
|
set(t, i, n) {
|
6019
6019
|
const r = this;
|
6020
6020
|
function a(s, c, p) {
|
6021
|
-
const l =
|
6021
|
+
const l = Lt(c);
|
6022
6022
|
if (!l)
|
6023
6023
|
throw new Error("header name must be a non-empty string");
|
6024
6024
|
const u = h.findKey(r, l);
|
6025
|
-
(!u || r[u] === void 0 || p === !0 || p === void 0 && r[u] !== !1) && (r[u || c] =
|
6025
|
+
(!u || r[u] === void 0 || p === !0 || p === void 0 && r[u] !== !1) && (r[u || c] = cn(s));
|
6026
6026
|
}
|
6027
6027
|
const o = (s, c) => h.forEach(s, (p, l) => a(p, l, c));
|
6028
6028
|
if (h.isPlainObject(t) || t instanceof this.constructor)
|
@@ -6037,7 +6037,7 @@ class Be {
|
|
6037
6037
|
return this;
|
6038
6038
|
}
|
6039
6039
|
get(t, i) {
|
6040
|
-
if (t =
|
6040
|
+
if (t = Lt(t), t) {
|
6041
6041
|
const n = h.findKey(this, t);
|
6042
6042
|
if (n) {
|
6043
6043
|
const r = this[n];
|
@@ -6054,9 +6054,9 @@ class Be {
|
|
6054
6054
|
}
|
6055
6055
|
}
|
6056
6056
|
has(t, i) {
|
6057
|
-
if (t =
|
6057
|
+
if (t = Lt(t), t) {
|
6058
6058
|
const n = h.findKey(this, t);
|
6059
|
-
return !!(n && this[n] !== void 0 && (!i ||
|
6059
|
+
return !!(n && this[n] !== void 0 && (!i || Bn(this, this[n], n, i)));
|
6060
6060
|
}
|
6061
6061
|
return !1;
|
6062
6062
|
}
|
@@ -6064,9 +6064,9 @@ class Be {
|
|
6064
6064
|
const n = this;
|
6065
6065
|
let r = !1;
|
6066
6066
|
function a(o) {
|
6067
|
-
if (o =
|
6067
|
+
if (o = Lt(o), o) {
|
6068
6068
|
const s = h.findKey(n, o);
|
6069
|
-
s && (!i ||
|
6069
|
+
s && (!i || Bn(n, n[s], s, i)) && (delete n[s], r = !0);
|
6070
6070
|
}
|
6071
6071
|
}
|
6072
6072
|
return h.isArray(t) ? t.forEach(a) : a(t), r;
|
@@ -6076,7 +6076,7 @@ class Be {
|
|
6076
6076
|
let n = i.length, r = !1;
|
6077
6077
|
for (; n--; ) {
|
6078
6078
|
const a = i[n];
|
6079
|
-
(!t ||
|
6079
|
+
(!t || Bn(this, this[a], a, t, !0)) && (delete this[a], r = !0);
|
6080
6080
|
}
|
6081
6081
|
return r;
|
6082
6082
|
}
|
@@ -6085,11 +6085,11 @@ class Be {
|
|
6085
6085
|
return h.forEach(this, (r, a) => {
|
6086
6086
|
const o = h.findKey(n, a);
|
6087
6087
|
if (o) {
|
6088
|
-
i[o] =
|
6088
|
+
i[o] = cn(r), delete i[a];
|
6089
6089
|
return;
|
6090
6090
|
}
|
6091
6091
|
const s = t ? ml(a) : String(a).trim();
|
6092
|
-
s !== a && delete i[a], i[s] =
|
6092
|
+
s !== a && delete i[a], i[s] = cn(r), n[s] = !0;
|
6093
6093
|
}), this;
|
6094
6094
|
}
|
6095
6095
|
concat(...t) {
|
@@ -6119,11 +6119,11 @@ class Be {
|
|
6119
6119
|
return i.forEach((r) => n.set(r)), n;
|
6120
6120
|
}
|
6121
6121
|
static accessor(t) {
|
6122
|
-
const n = (this[
|
6122
|
+
const n = (this[gr] = this[gr] = {
|
6123
6123
|
accessors: {}
|
6124
6124
|
}).accessors, r = this.prototype;
|
6125
6125
|
function a(o) {
|
6126
|
-
const s =
|
6126
|
+
const s = Lt(o);
|
6127
6127
|
n[s] || (xl(r, o), n[s] = !0);
|
6128
6128
|
}
|
6129
6129
|
return h.isArray(t) ? t.forEach(a) : a(t), this;
|
@@ -6140,8 +6140,8 @@ h.reduceDescriptors(Be.prototype, ({ value: e }, t) => {
|
|
6140
6140
|
};
|
6141
6141
|
});
|
6142
6142
|
h.freezeMethods(Be);
|
6143
|
-
function
|
6144
|
-
const i = this ||
|
6143
|
+
function zn(e, t) {
|
6144
|
+
const i = this || Ht, n = t || i, r = Be.from(n.headers);
|
6145
6145
|
let a = n.data;
|
6146
6146
|
return h.forEach(e, function(s) {
|
6147
6147
|
a = s.call(i, a, r.normalize(), t ? t.status : void 0);
|
@@ -6150,10 +6150,10 @@ function Bn(e, t) {
|
|
6150
6150
|
function ga(e) {
|
6151
6151
|
return !!(e && e.__CANCEL__);
|
6152
6152
|
}
|
6153
|
-
function
|
6153
|
+
function kt(e, t, i) {
|
6154
6154
|
Z.call(this, e ?? "canceled", Z.ERR_CANCELED, t, i), this.name = "CanceledError";
|
6155
6155
|
}
|
6156
|
-
h.inherits(
|
6156
|
+
h.inherits(kt, Z, {
|
6157
6157
|
__CANCEL__: !0
|
6158
6158
|
});
|
6159
6159
|
function ha(e, t, i) {
|
@@ -6198,7 +6198,7 @@ function hl(e, t) {
|
|
6198
6198
|
}, n - u)));
|
6199
6199
|
}, () => r && o(r)];
|
6200
6200
|
}
|
6201
|
-
const
|
6201
|
+
const mn = (e, t, i = 3) => {
|
6202
6202
|
let n = 0;
|
6203
6203
|
const r = gl(50, 250);
|
6204
6204
|
return hl((a) => {
|
@@ -6217,14 +6217,14 @@ const fn = (e, t, i = 3) => {
|
|
6217
6217
|
};
|
6218
6218
|
e(u);
|
6219
6219
|
}, i);
|
6220
|
-
},
|
6220
|
+
}, hr = (e, t) => {
|
6221
6221
|
const i = e != null;
|
6222
6222
|
return [(n) => t[0]({
|
6223
6223
|
lengthComputable: i,
|
6224
6224
|
total: e,
|
6225
6225
|
loaded: n
|
6226
6226
|
}), t[1]];
|
6227
|
-
},
|
6227
|
+
}, yr = (e) => (...t) => h.asap(() => e(...t)), yl = Fe.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (i) => (i = new URL(i, Fe.origin), e.protocol === i.protocol && e.host === i.host && (t || e.port === i.port)))(
|
6228
6228
|
new URL(Fe.origin),
|
6229
6229
|
Fe.navigator && /(msie|trident)/i.test(Fe.navigator.userAgent)
|
6230
6230
|
) : () => !0, bl = Fe.hasStandardBrowserEnv ? (
|
@@ -6263,7 +6263,7 @@ function El(e, t) {
|
|
6263
6263
|
function ya(e, t) {
|
6264
6264
|
return e && !wl(t) ? El(e, t) : t;
|
6265
6265
|
}
|
6266
|
-
const
|
6266
|
+
const br = (e) => e instanceof Be ? { ...e } : e;
|
6267
6267
|
function dt(e, t) {
|
6268
6268
|
t = t || {};
|
6269
6269
|
const i = {};
|
@@ -6321,7 +6321,7 @@ function dt(e, t) {
|
|
6321
6321
|
socketPath: o,
|
6322
6322
|
responseEncoding: o,
|
6323
6323
|
validateStatus: s,
|
6324
|
-
headers: (p, l, u) => r(
|
6324
|
+
headers: (p, l, u) => r(br(p), br(l), u, !0)
|
6325
6325
|
};
|
6326
6326
|
return h.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
|
6327
6327
|
const u = c[l] || r, f = u(e[l], t[l], l);
|
@@ -6396,8 +6396,8 @@ const ba = (e) => {
|
|
6396
6396
|
)), w = null;
|
6397
6397
|
}, a === void 0 && o.setContentType(null), "setRequestHeader" in w && h.forEach(o.toJSON(), function(T, b) {
|
6398
6398
|
w.setRequestHeader(b, T);
|
6399
|
-
}), h.isUndefined(r.withCredentials) || (w.withCredentials = !!r.withCredentials), s && s !== "json" && (w.responseType = r.responseType), p && ([f, v] =
|
6400
|
-
w && (n(!_ || _.type ? new
|
6399
|
+
}), h.isUndefined(r.withCredentials) || (w.withCredentials = !!r.withCredentials), s && s !== "json" && (w.responseType = r.responseType), p && ([f, v] = mn(p, !0), w.addEventListener("progress", f)), c && w.upload && ([u, m] = mn(c), w.upload.addEventListener("progress", u), w.upload.addEventListener("loadend", m)), (r.cancelToken || r.signal) && (l = (_) => {
|
6400
|
+
w && (n(!_ || _.type ? new kt(null, e, w) : _), w.abort(), w = null);
|
6401
6401
|
}, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l)));
|
6402
6402
|
const k = vl(r.url);
|
6403
6403
|
if (k && Fe.protocols.indexOf(k) === -1) {
|
@@ -6414,7 +6414,7 @@ const ba = (e) => {
|
|
6414
6414
|
if (!r) {
|
6415
6415
|
r = !0, s();
|
6416
6416
|
const l = p instanceof Error ? p : this.reason;
|
6417
|
-
n.abort(l instanceof Z ? l : new
|
6417
|
+
n.abort(l instanceof Z ? l : new kt(l instanceof Error ? l.message : l));
|
6418
6418
|
}
|
6419
6419
|
};
|
6420
6420
|
let o = t && setTimeout(() => {
|
@@ -6457,7 +6457,7 @@ const ba = (e) => {
|
|
6457
6457
|
} finally {
|
6458
6458
|
await t.cancel();
|
6459
6459
|
}
|
6460
|
-
},
|
6460
|
+
}, wr = (e, t, i, n) => {
|
6461
6461
|
const r = Ol(e, t);
|
6462
6462
|
let a = 0, o, s = (c) => {
|
6463
6463
|
o || (o = !0, n && n(c));
|
@@ -6486,7 +6486,7 @@ const ba = (e) => {
|
|
6486
6486
|
}, {
|
6487
6487
|
highWaterMark: 2
|
6488
6488
|
});
|
6489
|
-
},
|
6489
|
+
}, bn = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", wa = bn && typeof ReadableStream == "function", Cl = bn && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ea = (e, ...t) => {
|
6490
6490
|
try {
|
6491
6491
|
return !!e(...t);
|
6492
6492
|
} catch {
|
@@ -6502,17 +6502,17 @@ const ba = (e) => {
|
|
6502
6502
|
}
|
6503
6503
|
}).headers.has("Content-Type");
|
6504
6504
|
return e && !t;
|
6505
|
-
}),
|
6506
|
-
stream:
|
6505
|
+
}), Er = 64 * 1024, ti = wa && Ea(() => h.isReadableStream(new Response("").body)), xn = {
|
6506
|
+
stream: ti && ((e) => e.body)
|
6507
6507
|
};
|
6508
|
-
|
6508
|
+
bn && ((e) => {
|
6509
6509
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
6510
|
-
!
|
6510
|
+
!xn[t] && (xn[t] = h.isFunction(e[t]) ? (i) => i[t]() : (i, n) => {
|
6511
6511
|
throw new Z(`Response type '${t}' is not supported`, Z.ERR_NOT_SUPPORT, n);
|
6512
6512
|
});
|
6513
6513
|
});
|
6514
6514
|
})(new Response());
|
6515
|
-
const
|
6515
|
+
const jl = async (e) => {
|
6516
6516
|
if (e == null)
|
6517
6517
|
return 0;
|
6518
6518
|
if (h.isBlob(e))
|
@@ -6526,10 +6526,10 @@ const Dl = async (e) => {
|
|
6526
6526
|
return e.byteLength;
|
6527
6527
|
if (h.isURLSearchParams(e) && (e = e + ""), h.isString(e))
|
6528
6528
|
return (await Cl(e)).byteLength;
|
6529
|
-
},
|
6529
|
+
}, Dl = async (e, t) => {
|
6530
6530
|
const i = h.toFiniteNumber(e.getContentLength());
|
6531
|
-
return i ??
|
6532
|
-
}, Fl =
|
6531
|
+
return i ?? jl(t);
|
6532
|
+
}, Fl = bn && (async (e) => {
|
6533
6533
|
let {
|
6534
6534
|
url: t,
|
6535
6535
|
method: i,
|
@@ -6551,18 +6551,18 @@ const Dl = async (e) => {
|
|
6551
6551
|
});
|
6552
6552
|
let w;
|
6553
6553
|
try {
|
6554
|
-
if (c && Al && i !== "get" && i !== "head" && (w = await
|
6554
|
+
if (c && Al && i !== "get" && i !== "head" && (w = await Dl(l, n)) !== 0) {
|
6555
6555
|
let b = new Request(t, {
|
6556
6556
|
method: "POST",
|
6557
6557
|
body: n,
|
6558
6558
|
duplex: "half"
|
6559
|
-
}),
|
6560
|
-
if (h.isFormData(n) && (
|
6561
|
-
const [N,
|
6559
|
+
}), j;
|
6560
|
+
if (h.isFormData(n) && (j = b.headers.get("content-type")) && l.setContentType(j), b.body) {
|
6561
|
+
const [N, D] = hr(
|
6562
6562
|
w,
|
6563
|
-
|
6563
|
+
mn(yr(c))
|
6564
6564
|
);
|
6565
|
-
n =
|
6565
|
+
n = wr(b.body, Er, N, D);
|
6566
6566
|
}
|
6567
6567
|
}
|
6568
6568
|
h.isString(u) || (u = u ? "include" : "omit");
|
@@ -6577,27 +6577,27 @@ const Dl = async (e) => {
|
|
6577
6577
|
credentials: x ? u : void 0
|
6578
6578
|
});
|
6579
6579
|
let k = await fetch(v);
|
6580
|
-
const _ =
|
6581
|
-
if (
|
6580
|
+
const _ = ti && (p === "stream" || p === "response");
|
6581
|
+
if (ti && (s || _ && g)) {
|
6582
6582
|
const b = {};
|
6583
6583
|
["status", "statusText", "headers"].forEach((G) => {
|
6584
6584
|
b[G] = k[G];
|
6585
6585
|
});
|
6586
|
-
const
|
6587
|
-
|
6588
|
-
|
6586
|
+
const j = h.toFiniteNumber(k.headers.get("content-length")), [N, D] = s && hr(
|
6587
|
+
j,
|
6588
|
+
mn(yr(s), !0)
|
6589
6589
|
) || [];
|
6590
6590
|
k = new Response(
|
6591
|
-
|
6592
|
-
|
6591
|
+
wr(k.body, Er, N, () => {
|
6592
|
+
D && D(), g && g();
|
6593
6593
|
}),
|
6594
6594
|
b
|
6595
6595
|
);
|
6596
6596
|
}
|
6597
6597
|
p = p || "text";
|
6598
|
-
let T = await
|
6599
|
-
return !_ && g && g(), await new Promise((b,
|
6600
|
-
ha(b,
|
6598
|
+
let T = await xn[h.findKey(xn, p) || "text"](k, e);
|
6599
|
+
return !_ && g && g(), await new Promise((b, j) => {
|
6600
|
+
ha(b, j, {
|
6601
6601
|
data: T,
|
6602
6602
|
headers: Be.from(k.headers),
|
6603
6603
|
status: k.status,
|
@@ -6614,12 +6614,12 @@ const Dl = async (e) => {
|
|
6614
6614
|
}
|
6615
6615
|
) : Z.from(x, x && x.code, e, v);
|
6616
6616
|
}
|
6617
|
-
}),
|
6617
|
+
}), ni = {
|
6618
6618
|
http: Yc,
|
6619
6619
|
xhr: Rl,
|
6620
6620
|
fetch: Fl
|
6621
6621
|
};
|
6622
|
-
h.forEach(
|
6622
|
+
h.forEach(ni, (e, t) => {
|
6623
6623
|
if (e) {
|
6624
6624
|
try {
|
6625
6625
|
Object.defineProperty(e, "name", { value: t });
|
@@ -6628,7 +6628,7 @@ h.forEach(ti, (e, t) => {
|
|
6628
6628
|
Object.defineProperty(e, "adapterName", { value: t });
|
6629
6629
|
}
|
6630
6630
|
});
|
6631
|
-
const
|
6631
|
+
const Sr = (e) => `- ${e}`, Pl = (e) => h.isFunction(e) || e === null || e === !1, Sa = {
|
6632
6632
|
getAdapter: (e) => {
|
6633
6633
|
e = h.isArray(e) ? e : [e];
|
6634
6634
|
const { length: t } = e;
|
@@ -6637,7 +6637,7 @@ const Er = (e) => `- ${e}`, Pl = (e) => h.isFunction(e) || e === null || e === !
|
|
6637
6637
|
for (let a = 0; a < t; a++) {
|
6638
6638
|
i = e[a];
|
6639
6639
|
let o;
|
6640
|
-
if (n = i, !Pl(i) && (n =
|
6640
|
+
if (n = i, !Pl(i) && (n = ni[(o = String(i)).toLowerCase()], n === void 0))
|
6641
6641
|
throw new Z(`Unknown adapter '${o}'`);
|
6642
6642
|
if (n)
|
6643
6643
|
break;
|
@@ -6648,8 +6648,8 @@ const Er = (e) => `- ${e}`, Pl = (e) => h.isFunction(e) || e === null || e === !
|
|
6648
6648
|
([s, c]) => `adapter ${s} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
|
6649
6649
|
);
|
6650
6650
|
let o = t ? a.length > 1 ? `since :
|
6651
|
-
` + a.map(
|
6652
|
-
`) : " " +
|
6651
|
+
` + a.map(Sr).join(`
|
6652
|
+
`) : " " + Sr(a[0]) : "as no adapter specified";
|
6653
6653
|
throw new Z(
|
6654
6654
|
"There is no suitable adapter to dispatch the request " + o,
|
6655
6655
|
"ERR_NOT_SUPPORT"
|
@@ -6657,38 +6657,38 @@ const Er = (e) => `- ${e}`, Pl = (e) => h.isFunction(e) || e === null || e === !
|
|
6657
6657
|
}
|
6658
6658
|
return n;
|
6659
6659
|
},
|
6660
|
-
adapters:
|
6660
|
+
adapters: ni
|
6661
6661
|
};
|
6662
|
-
function
|
6662
|
+
function Ln(e) {
|
6663
6663
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
6664
|
-
throw new
|
6664
|
+
throw new kt(null, e);
|
6665
6665
|
}
|
6666
|
-
function
|
6667
|
-
return
|
6666
|
+
function Rr(e) {
|
6667
|
+
return Ln(e), e.headers = Be.from(e.headers), e.data = zn.call(
|
6668
6668
|
e,
|
6669
6669
|
e.transformRequest
|
6670
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Sa.getAdapter(e.adapter ||
|
6671
|
-
return
|
6670
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Sa.getAdapter(e.adapter || Ht.adapter)(e).then(function(n) {
|
6671
|
+
return Ln(e), n.data = zn.call(
|
6672
6672
|
e,
|
6673
6673
|
e.transformResponse,
|
6674
6674
|
n
|
6675
6675
|
), n.headers = Be.from(n.headers), n;
|
6676
6676
|
}, function(n) {
|
6677
|
-
return ga(n) || (
|
6677
|
+
return ga(n) || (Ln(e), n && n.response && (n.response.data = zn.call(
|
6678
6678
|
e,
|
6679
6679
|
e.transformResponse,
|
6680
6680
|
n.response
|
6681
6681
|
), n.response.headers = Be.from(n.response.headers))), Promise.reject(n);
|
6682
6682
|
});
|
6683
6683
|
}
|
6684
|
-
const Ra = "1.7.9",
|
6684
|
+
const Ra = "1.7.9", wn = {};
|
6685
6685
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
6686
|
-
|
6686
|
+
wn[e] = function(n) {
|
6687
6687
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
6688
6688
|
};
|
6689
6689
|
});
|
6690
|
-
const
|
6691
|
-
|
6690
|
+
const Tr = {};
|
6691
|
+
wn.transitional = function(t, i, n) {
|
6692
6692
|
function r(a, o) {
|
6693
6693
|
return "[Axios v" + Ra + "] Transitional option '" + a + "'" + o + (n ? ". " + n : "");
|
6694
6694
|
}
|
@@ -6698,7 +6698,7 @@ bn.transitional = function(t, i, n) {
|
|
6698
6698
|
r(o, " has been removed" + (i ? " in " + i : "")),
|
6699
6699
|
Z.ERR_DEPRECATED
|
6700
6700
|
);
|
6701
|
-
return i && !
|
6701
|
+
return i && !Tr[o] && (Tr[o] = !0, console.warn(
|
6702
6702
|
r(
|
6703
6703
|
o,
|
6704
6704
|
" has been deprecated since v" + i + " and will be removed in the near future"
|
@@ -6706,7 +6706,7 @@ bn.transitional = function(t, i, n) {
|
|
6706
6706
|
)), t ? t(a, o, s) : !0;
|
6707
6707
|
};
|
6708
6708
|
};
|
6709
|
-
|
6709
|
+
wn.spelling = function(t) {
|
6710
6710
|
return (i, n) => (console.warn(`${n} is likely a misspelling of ${t}`), !0);
|
6711
6711
|
};
|
6712
6712
|
function Il(e, t, i) {
|
@@ -6726,15 +6726,15 @@ function Il(e, t, i) {
|
|
6726
6726
|
throw new Z("Unknown option " + a, Z.ERR_BAD_OPTION);
|
6727
6727
|
}
|
6728
6728
|
}
|
6729
|
-
const
|
6729
|
+
const ln = {
|
6730
6730
|
assertOptions: Il,
|
6731
|
-
validators:
|
6732
|
-
}, Ve =
|
6731
|
+
validators: wn
|
6732
|
+
}, Ve = ln.validators;
|
6733
6733
|
class ut {
|
6734
6734
|
constructor(t) {
|
6735
6735
|
this.defaults = t, this.interceptors = {
|
6736
|
-
request: new
|
6737
|
-
response: new
|
6736
|
+
request: new vr(),
|
6737
|
+
response: new vr()
|
6738
6738
|
};
|
6739
6739
|
}
|
6740
6740
|
/**
|
@@ -6765,16 +6765,16 @@ class ut {
|
|
6765
6765
|
_request(t, i) {
|
6766
6766
|
typeof t == "string" ? (i = i || {}, i.url = t) : i = t || {}, i = dt(this.defaults, i);
|
6767
6767
|
const { transitional: n, paramsSerializer: r, headers: a } = i;
|
6768
|
-
n !== void 0 &&
|
6768
|
+
n !== void 0 && ln.assertOptions(n, {
|
6769
6769
|
silentJSONParsing: Ve.transitional(Ve.boolean),
|
6770
6770
|
forcedJSONParsing: Ve.transitional(Ve.boolean),
|
6771
6771
|
clarifyTimeoutError: Ve.transitional(Ve.boolean)
|
6772
6772
|
}, !1), r != null && (h.isFunction(r) ? i.paramsSerializer = {
|
6773
6773
|
serialize: r
|
6774
|
-
} :
|
6774
|
+
} : ln.assertOptions(r, {
|
6775
6775
|
encode: Ve.function,
|
6776
6776
|
serialize: Ve.function
|
6777
|
-
}, !0)),
|
6777
|
+
}, !0)), ln.assertOptions(i, {
|
6778
6778
|
baseUrl: Ve.spelling("baseURL"),
|
6779
6779
|
withXsrfToken: Ve.spelling("withXSRFToken")
|
6780
6780
|
}, !0), i.method = (i.method || this.defaults.method || "get").toLowerCase();
|
@@ -6799,7 +6799,7 @@ class ut {
|
|
6799
6799
|
});
|
6800
6800
|
let l, u = 0, f;
|
6801
6801
|
if (!c) {
|
6802
|
-
const v = [
|
6802
|
+
const v = [Rr.bind(this), void 0];
|
6803
6803
|
for (v.unshift.apply(v, s), v.push.apply(v, p), f = v.length, l = Promise.resolve(i); u < f; )
|
6804
6804
|
l = l.then(v[u++], v[u++]);
|
6805
6805
|
return l;
|
@@ -6816,7 +6816,7 @@ class ut {
|
|
6816
6816
|
}
|
6817
6817
|
}
|
6818
6818
|
try {
|
6819
|
-
l =
|
6819
|
+
l = Rr.call(this, m);
|
6820
6820
|
} catch (v) {
|
6821
6821
|
return Promise.reject(v);
|
6822
6822
|
}
|
@@ -6854,7 +6854,7 @@ h.forEach(["post", "put", "patch"], function(t) {
|
|
6854
6854
|
}
|
6855
6855
|
ut.prototype[t] = i(), ut.prototype[t + "Form"] = i(!0);
|
6856
6856
|
});
|
6857
|
-
class
|
6857
|
+
class vi {
|
6858
6858
|
constructor(t) {
|
6859
6859
|
if (typeof t != "function")
|
6860
6860
|
throw new TypeError("executor must be a function.");
|
@@ -6878,7 +6878,7 @@ class xi {
|
|
6878
6878
|
n.unsubscribe(a);
|
6879
6879
|
}, o;
|
6880
6880
|
}, t(function(a, o, s) {
|
6881
|
-
n.reason || (n.reason = new
|
6881
|
+
n.reason || (n.reason = new kt(a, o, s), i(n.reason));
|
6882
6882
|
});
|
6883
6883
|
}
|
6884
6884
|
/**
|
@@ -6920,7 +6920,7 @@ class xi {
|
|
6920
6920
|
static source() {
|
6921
6921
|
let t;
|
6922
6922
|
return {
|
6923
|
-
token: new
|
6923
|
+
token: new vi(function(r) {
|
6924
6924
|
t = r;
|
6925
6925
|
}),
|
6926
6926
|
cancel: t
|
@@ -6935,7 +6935,7 @@ function Bl(e) {
|
|
6935
6935
|
function zl(e) {
|
6936
6936
|
return h.isObject(e) && e.isAxiosError === !0;
|
6937
6937
|
}
|
6938
|
-
const
|
6938
|
+
const ii = {
|
6939
6939
|
Continue: 100,
|
6940
6940
|
SwitchingProtocols: 101,
|
6941
6941
|
Processing: 102,
|
@@ -7000,8 +7000,8 @@ const ni = {
|
|
7000
7000
|
NotExtended: 510,
|
7001
7001
|
NetworkAuthenticationRequired: 511
|
7002
7002
|
};
|
7003
|
-
Object.entries(
|
7004
|
-
|
7003
|
+
Object.entries(ii).forEach(([e, t]) => {
|
7004
|
+
ii[t] = e;
|
7005
7005
|
});
|
7006
7006
|
function Ta(e) {
|
7007
7007
|
const t = new ut(e), i = na(ut.prototype.request, t);
|
@@ -7009,27 +7009,27 @@ function Ta(e) {
|
|
7009
7009
|
return Ta(dt(e, r));
|
7010
7010
|
}, i;
|
7011
7011
|
}
|
7012
|
-
const
|
7013
|
-
|
7014
|
-
|
7015
|
-
|
7016
|
-
|
7017
|
-
|
7018
|
-
|
7019
|
-
|
7020
|
-
|
7021
|
-
|
7012
|
+
const De = Ta(Ht);
|
7013
|
+
De.Axios = ut;
|
7014
|
+
De.CanceledError = kt;
|
7015
|
+
De.CancelToken = vi;
|
7016
|
+
De.isCancel = ga;
|
7017
|
+
De.VERSION = Ra;
|
7018
|
+
De.toFormData = yn;
|
7019
|
+
De.AxiosError = Z;
|
7020
|
+
De.Cancel = De.CanceledError;
|
7021
|
+
De.all = function(t) {
|
7022
7022
|
return Promise.all(t);
|
7023
7023
|
};
|
7024
|
-
|
7025
|
-
|
7026
|
-
|
7027
|
-
|
7028
|
-
|
7029
|
-
|
7030
|
-
|
7031
|
-
|
7032
|
-
var
|
7024
|
+
De.spread = Bl;
|
7025
|
+
De.isAxiosError = zl;
|
7026
|
+
De.mergeConfig = dt;
|
7027
|
+
De.AxiosHeaders = Be;
|
7028
|
+
De.formToJSON = (e) => va(h.isHTMLForm(e) ? new FormData(e) : e);
|
7029
|
+
De.getAdapter = Sa.getAdapter;
|
7030
|
+
De.HttpStatusCode = ii;
|
7031
|
+
De.default = De;
|
7032
|
+
var tn = { exports: {} }, Mn = {};
|
7033
7033
|
/**
|
7034
7034
|
* @license React
|
7035
7035
|
* use-sync-external-store-shim.production.min.js
|
@@ -7039,11 +7039,11 @@ var en = { exports: {} }, Ln = {};
|
|
7039
7039
|
* This source code is licensed under the MIT license found in the
|
7040
7040
|
* LICENSE file in the root directory of this source tree.
|
7041
7041
|
*/
|
7042
|
-
var
|
7042
|
+
var kr;
|
7043
7043
|
function Ll() {
|
7044
|
-
if (
|
7045
|
-
|
7046
|
-
var e =
|
7044
|
+
if (kr) return Mn;
|
7045
|
+
kr = 1;
|
7046
|
+
var e = pe;
|
7047
7047
|
function t(u, f) {
|
7048
7048
|
return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
|
7049
7049
|
}
|
@@ -7072,9 +7072,9 @@ function Ll() {
|
|
7072
7072
|
return f();
|
7073
7073
|
}
|
7074
7074
|
var l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? p : s;
|
7075
|
-
return
|
7075
|
+
return Mn.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : l, Mn;
|
7076
7076
|
}
|
7077
|
-
var
|
7077
|
+
var $n = {};
|
7078
7078
|
/**
|
7079
7079
|
* @license React
|
7080
7080
|
* use-sync-external-store-shim.development.js
|
@@ -7084,26 +7084,26 @@ var Mn = {};
|
|
7084
7084
|
* This source code is licensed under the MIT license found in the
|
7085
7085
|
* LICENSE file in the root directory of this source tree.
|
7086
7086
|
*/
|
7087
|
-
var
|
7087
|
+
var Or;
|
7088
7088
|
function Ml() {
|
7089
|
-
return
|
7089
|
+
return Or || (Or = 1, process.env.NODE_ENV !== "production" && function() {
|
7090
7090
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
7091
|
-
var e =
|
7091
|
+
var e = pe, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
7092
7092
|
function i(_) {
|
7093
7093
|
{
|
7094
|
-
for (var T = arguments.length, b = new Array(T > 1 ? T - 1 : 0),
|
7095
|
-
b[
|
7094
|
+
for (var T = arguments.length, b = new Array(T > 1 ? T - 1 : 0), j = 1; j < T; j++)
|
7095
|
+
b[j - 1] = arguments[j];
|
7096
7096
|
n("error", _, b);
|
7097
7097
|
}
|
7098
7098
|
}
|
7099
7099
|
function n(_, T, b) {
|
7100
7100
|
{
|
7101
|
-
var
|
7101
|
+
var j = t.ReactDebugCurrentFrame, N = j.getStackAddendum();
|
7102
7102
|
N !== "" && (T += "%s", b = b.concat([N]));
|
7103
|
-
var
|
7103
|
+
var D = b.map(function(G) {
|
7104
7104
|
return String(G);
|
7105
7105
|
});
|
7106
|
-
|
7106
|
+
D.unshift("Warning: " + T), Function.prototype.apply.call(console[_], console, D);
|
7107
7107
|
}
|
7108
7108
|
}
|
7109
7109
|
function r(_, T) {
|
@@ -7112,38 +7112,38 @@ function Ml() {
|
|
7112
7112
|
var a = typeof Object.is == "function" ? Object.is : r, o = e.useState, s = e.useEffect, c = e.useLayoutEffect, p = e.useDebugValue, l = !1, u = !1;
|
7113
7113
|
function f(_, T, b) {
|
7114
7114
|
l || e.startTransition !== void 0 && (l = !0, i("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
7115
|
-
var
|
7115
|
+
var j = T();
|
7116
7116
|
if (!u) {
|
7117
7117
|
var N = T();
|
7118
|
-
a(
|
7118
|
+
a(j, N) || (i("The result of getSnapshot should be cached to avoid an infinite loop"), u = !0);
|
7119
7119
|
}
|
7120
|
-
var
|
7120
|
+
var D = o({
|
7121
7121
|
inst: {
|
7122
|
-
value:
|
7122
|
+
value: j,
|
7123
7123
|
getSnapshot: T
|
7124
7124
|
}
|
7125
|
-
}), G =
|
7125
|
+
}), G = D[0].inst, V = D[1];
|
7126
7126
|
return c(function() {
|
7127
|
-
G.value =
|
7127
|
+
G.value = j, G.getSnapshot = T, m(G) && V({
|
7128
7128
|
inst: G
|
7129
7129
|
});
|
7130
|
-
}, [_,
|
7130
|
+
}, [_, j, T]), s(function() {
|
7131
7131
|
m(G) && V({
|
7132
7132
|
inst: G
|
7133
7133
|
});
|
7134
|
-
var
|
7134
|
+
var ae = function() {
|
7135
7135
|
m(G) && V({
|
7136
7136
|
inst: G
|
7137
7137
|
});
|
7138
7138
|
};
|
7139
|
-
return _(
|
7140
|
-
}, [_]), p(
|
7139
|
+
return _(ae);
|
7140
|
+
}, [_]), p(j), j;
|
7141
7141
|
}
|
7142
7142
|
function m(_) {
|
7143
7143
|
var T = _.getSnapshot, b = _.value;
|
7144
7144
|
try {
|
7145
|
-
var
|
7146
|
-
return !a(b,
|
7145
|
+
var j = T();
|
7146
|
+
return !a(b, j);
|
7147
7147
|
} catch {
|
7148
7148
|
return !0;
|
7149
7149
|
}
|
@@ -7152,81 +7152,81 @@ function Ml() {
|
|
7152
7152
|
return T();
|
7153
7153
|
}
|
7154
7154
|
var g = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", w = !g, x = w ? v : f, k = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : x;
|
7155
|
-
|
7156
|
-
}()),
|
7155
|
+
$n.useSyncExternalStore = k, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
7156
|
+
}()), $n;
|
7157
7157
|
}
|
7158
|
-
var
|
7158
|
+
var _r;
|
7159
7159
|
function $l() {
|
7160
|
-
return
|
7160
|
+
return _r || (_r = 1, process.env.NODE_ENV === "production" ? tn.exports = Ll() : tn.exports = Ml()), tn.exports;
|
7161
7161
|
}
|
7162
7162
|
var ka = $l();
|
7163
7163
|
const tt = () => {
|
7164
|
-
},
|
7164
|
+
}, je = (
|
7165
7165
|
/*#__NOINLINE__*/
|
7166
7166
|
tt()
|
7167
|
-
),
|
7167
|
+
), Nn = Object, $ = (e) => e === je, Me = (e) => typeof e == "function", $e = (e, t) => ({
|
7168
7168
|
...e,
|
7169
7169
|
...t
|
7170
|
-
}), Nl = (e) => Me(e.then),
|
7170
|
+
}), Nl = (e) => Me(e.then), nn = /* @__PURE__ */ new WeakMap();
|
7171
7171
|
let ql = 0;
|
7172
|
-
const
|
7172
|
+
const Wt = (e) => {
|
7173
7173
|
const t = typeof e, i = e && e.constructor, n = i == Date;
|
7174
7174
|
let r, a;
|
7175
|
-
if (
|
7176
|
-
if (r =
|
7177
|
-
if (r = ++ql + "~",
|
7175
|
+
if (Nn(e) === e && !n && i != RegExp) {
|
7176
|
+
if (r = nn.get(e), r) return r;
|
7177
|
+
if (r = ++ql + "~", nn.set(e, r), i == Array) {
|
7178
7178
|
for (r = "@", a = 0; a < e.length; a++)
|
7179
|
-
r +=
|
7180
|
-
|
7179
|
+
r += Wt(e[a]) + ",";
|
7180
|
+
nn.set(e, r);
|
7181
7181
|
}
|
7182
|
-
if (i ==
|
7182
|
+
if (i == Nn) {
|
7183
7183
|
r = "#";
|
7184
|
-
const o =
|
7184
|
+
const o = Nn.keys(e).sort();
|
7185
7185
|
for (; !$(a = o.pop()); )
|
7186
|
-
$(e[a]) || (r += a + ":" +
|
7187
|
-
|
7186
|
+
$(e[a]) || (r += a + ":" + Wt(e[a]) + ",");
|
7187
|
+
nn.set(e, r);
|
7188
7188
|
}
|
7189
7189
|
} else
|
7190
7190
|
r = n ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
|
7191
7191
|
return r;
|
7192
|
-
}, He = /* @__PURE__ */ new WeakMap(),
|
7192
|
+
}, He = /* @__PURE__ */ new WeakMap(), qn = {}, rn = {}, gi = "undefined", En = typeof window != gi, ri = typeof document != gi, Wl = () => En && typeof window.requestAnimationFrame != gi, hi = (e, t) => {
|
7193
7193
|
const i = He.get(e);
|
7194
7194
|
return [
|
7195
7195
|
// Getter
|
7196
|
-
() => !$(t) && e.get(t) ||
|
7196
|
+
() => !$(t) && e.get(t) || qn,
|
7197
7197
|
// Setter
|
7198
7198
|
(n) => {
|
7199
7199
|
if (!$(t)) {
|
7200
7200
|
const r = e.get(t);
|
7201
|
-
t in
|
7201
|
+
t in rn || (rn[t] = r), i[5](t, $e(r, n), r || qn);
|
7202
7202
|
}
|
7203
7203
|
},
|
7204
7204
|
// Subscriber
|
7205
7205
|
i[6],
|
7206
7206
|
// Get server cache snapshot
|
7207
|
-
() => !$(t) && t in
|
7207
|
+
() => !$(t) && t in rn ? rn[t] : !$(t) && e.get(t) || qn
|
7208
7208
|
];
|
7209
7209
|
};
|
7210
|
-
let
|
7211
|
-
const Ul = () =>
|
7210
|
+
let ai = !0;
|
7211
|
+
const Ul = () => ai, [oi, si] = En && window.addEventListener ? [
|
7212
7212
|
window.addEventListener.bind(window),
|
7213
7213
|
window.removeEventListener.bind(window)
|
7214
7214
|
] : [
|
7215
7215
|
tt,
|
7216
7216
|
tt
|
7217
7217
|
], Vl = () => {
|
7218
|
-
const e =
|
7218
|
+
const e = ri && document.visibilityState;
|
7219
7219
|
return $(e) || e !== "hidden";
|
7220
|
-
}, Hl = (e) => (
|
7221
|
-
|
7220
|
+
}, Hl = (e) => (ri && document.addEventListener("visibilitychange", e), oi("focus", e), () => {
|
7221
|
+
ri && document.removeEventListener("visibilitychange", e), si("focus", e);
|
7222
7222
|
}), Gl = (e) => {
|
7223
7223
|
const t = () => {
|
7224
|
-
|
7224
|
+
ai = !0, e();
|
7225
7225
|
}, i = () => {
|
7226
|
-
|
7226
|
+
ai = !1;
|
7227
7227
|
};
|
7228
|
-
return
|
7229
|
-
|
7228
|
+
return oi("online", t), oi("offline", i), () => {
|
7229
|
+
si("online", t), si("offline", i);
|
7230
7230
|
};
|
7231
7231
|
}, Yl = {
|
7232
7232
|
isOnline: Ul,
|
@@ -7234,10 +7234,10 @@ const Ul = () => ri, [ai, oi] = wn && window.addEventListener ? [
|
|
7234
7234
|
}, Kl = {
|
7235
7235
|
initFocus: Hl,
|
7236
7236
|
initReconnect: Gl
|
7237
|
-
},
|
7237
|
+
}, Ut = !pe.useId, ft = !En || "Deno" in window, Oa = (e) => Wl() ? window.requestAnimationFrame(e) : setTimeout(e, 1), nt = ft ? $t : no, Wn = typeof navigator < "u" && navigator.connection, Cr = !ft && Wn && ([
|
7238
7238
|
"slow-2g",
|
7239
7239
|
"2g"
|
7240
|
-
].includes(
|
7240
|
+
].includes(Wn.effectiveType) || Wn.saveData), Gt = (e) => {
|
7241
7241
|
if (Me(e))
|
7242
7242
|
try {
|
7243
7243
|
e = e();
|
@@ -7245,7 +7245,7 @@ const Ul = () => ri, [ai, oi] = wn && window.addEventListener ? [
|
|
7245
7245
|
e = "";
|
7246
7246
|
}
|
7247
7247
|
const t = e;
|
7248
|
-
return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ?
|
7248
|
+
return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? Wt(e) : "", [
|
7249
7249
|
e,
|
7250
7250
|
t
|
7251
7251
|
];
|
@@ -7259,7 +7259,7 @@ var Ge = {
|
|
7259
7259
|
MUTATE_EVENT: Aa,
|
7260
7260
|
RECONNECT_EVENT: Ca
|
7261
7261
|
};
|
7262
|
-
async function
|
7262
|
+
async function yi(...e) {
|
7263
7263
|
const [t, i, n, r] = e, a = $e({
|
7264
7264
|
populateCache: !0,
|
7265
7265
|
throwOnError: !0
|
@@ -7279,71 +7279,71 @@ async function hi(...e) {
|
|
7279
7279
|
}
|
7280
7280
|
return u(i);
|
7281
7281
|
async function u(f) {
|
7282
|
-
const [m] =
|
7282
|
+
const [m] = Gt(f);
|
7283
7283
|
if (!m) return;
|
7284
|
-
const [v, g] =
|
7284
|
+
const [v, g] = hi(t, m), [w, x, k, _] = He.get(t), T = () => {
|
7285
7285
|
const te = w[m];
|
7286
7286
|
return (Me(a.revalidate) ? a.revalidate(v().data, f) : a.revalidate !== !1) && (delete k[m], delete _[m], te && te[0]) ? te[0](Aa).then(() => v().data) : v().data;
|
7287
7287
|
};
|
7288
7288
|
if (e.length < 3)
|
7289
7289
|
return T();
|
7290
|
-
let b = n,
|
7290
|
+
let b = n, j;
|
7291
7291
|
const N = wt();
|
7292
7292
|
x[m] = [
|
7293
7293
|
N,
|
7294
7294
|
0
|
7295
7295
|
];
|
7296
|
-
const
|
7297
|
-
if (
|
7296
|
+
const D = !$(c), G = v(), V = G.data, ae = G._c, ve = $(ae) ? V : ae;
|
7297
|
+
if (D && (c = Me(c) ? c(ve, V) : c, g({
|
7298
7298
|
data: c,
|
7299
|
-
_c:
|
7299
|
+
_c: ve
|
7300
7300
|
})), Me(b))
|
7301
7301
|
try {
|
7302
|
-
b = b(
|
7302
|
+
b = b(ve);
|
7303
7303
|
} catch (te) {
|
7304
|
-
|
7304
|
+
j = te;
|
7305
7305
|
}
|
7306
7306
|
if (b && Nl(b))
|
7307
7307
|
if (b = await b.catch((te) => {
|
7308
|
-
|
7308
|
+
j = te;
|
7309
7309
|
}), N !== x[m][0]) {
|
7310
|
-
if (
|
7310
|
+
if (j) throw j;
|
7311
7311
|
return b;
|
7312
|
-
} else
|
7313
|
-
data:
|
7314
|
-
_c:
|
7312
|
+
} else j && D && p(j) && (o = !0, g({
|
7313
|
+
data: ve,
|
7314
|
+
_c: je
|
7315
7315
|
}));
|
7316
|
-
if (o && !
|
7316
|
+
if (o && !j)
|
7317
7317
|
if (Me(o)) {
|
7318
|
-
const te = o(b,
|
7318
|
+
const te = o(b, ve);
|
7319
7319
|
g({
|
7320
7320
|
data: te,
|
7321
|
-
error:
|
7322
|
-
_c:
|
7321
|
+
error: je,
|
7322
|
+
_c: je
|
7323
7323
|
});
|
7324
7324
|
} else
|
7325
7325
|
g({
|
7326
7326
|
data: b,
|
7327
|
-
error:
|
7328
|
-
_c:
|
7327
|
+
error: je,
|
7328
|
+
_c: je
|
7329
7329
|
});
|
7330
7330
|
if (x[m][1] = wt(), Promise.resolve(T()).then(() => {
|
7331
7331
|
g({
|
7332
|
-
_c:
|
7332
|
+
_c: je
|
7333
7333
|
});
|
7334
|
-
}),
|
7335
|
-
if (l) throw
|
7334
|
+
}), j) {
|
7335
|
+
if (l) throw j;
|
7336
7336
|
return;
|
7337
7337
|
}
|
7338
7338
|
return b;
|
7339
7339
|
}
|
7340
7340
|
}
|
7341
|
-
const
|
7341
|
+
const Ar = (e, t) => {
|
7342
7342
|
for (const i in e)
|
7343
7343
|
e[i][0] && e[i][0](t);
|
7344
7344
|
}, Zl = (e, t) => {
|
7345
7345
|
if (!He.has(e)) {
|
7346
|
-
const i = $e(Kl, t), n = {}, r =
|
7346
|
+
const i = $e(Kl, t), n = {}, r = yi.bind(je, e);
|
7347
7347
|
let a = tt;
|
7348
7348
|
const o = {}, s = (l, u) => {
|
7349
7349
|
const f = o[l] || [];
|
@@ -7364,7 +7364,7 @@ const Cr = (e, t) => {
|
|
7364
7364
|
c,
|
7365
7365
|
s
|
7366
7366
|
]), !ft)) {
|
7367
|
-
const l = i.initFocus(setTimeout.bind(
|
7367
|
+
const l = i.initFocus(setTimeout.bind(je, Ar.bind(je, n, _a))), u = i.initReconnect(setTimeout.bind(je, Ar.bind(je, n, Ca)));
|
7368
7368
|
a = () => {
|
7369
7369
|
l && l(), u && u(), He.delete(e);
|
7370
7370
|
};
|
@@ -7384,7 +7384,7 @@ const Cr = (e, t) => {
|
|
7384
7384
|
}, Ql = (e, t, i, n, r) => {
|
7385
7385
|
const a = i.errorRetryCount, o = r.retryCount, s = ~~((Math.random() + 0.5) * (1 << (o < 8 ? o : 8))) * i.errorRetryInterval;
|
7386
7386
|
!$(a) && o > a || setTimeout(n, s, r);
|
7387
|
-
}, ep = (e, t) =>
|
7387
|
+
}, ep = (e, t) => Wt(e) == Wt(t), [ja, tp] = Zl(/* @__PURE__ */ new Map()), np = $e(
|
7388
7388
|
{
|
7389
7389
|
// events
|
7390
7390
|
onLoadingSlow: tt,
|
@@ -7398,14 +7398,14 @@ const Cr = (e, t) => {
|
|
7398
7398
|
revalidateIfStale: !0,
|
7399
7399
|
shouldRetryOnError: !0,
|
7400
7400
|
// timeouts
|
7401
|
-
errorRetryInterval:
|
7401
|
+
errorRetryInterval: Cr ? 1e4 : 5e3,
|
7402
7402
|
focusThrottleInterval: 5 * 1e3,
|
7403
7403
|
dedupingInterval: 2 * 1e3,
|
7404
|
-
loadingTimeout:
|
7404
|
+
loadingTimeout: Cr ? 5e3 : 3e3,
|
7405
7405
|
// providers
|
7406
7406
|
compare: ep,
|
7407
7407
|
isPaused: () => !1,
|
7408
|
-
cache:
|
7408
|
+
cache: ja,
|
7409
7409
|
mutate: tp,
|
7410
7410
|
fallback: {}
|
7411
7411
|
},
|
@@ -7418,8 +7418,8 @@ const Cr = (e, t) => {
|
|
7418
7418
|
n && a && (i.use = n.concat(a)), r && o && (i.fallback = $e(r, o));
|
7419
7419
|
}
|
7420
7420
|
return i;
|
7421
|
-
}, rp = Ir({}), ap = "$inf$",
|
7422
|
-
|
7421
|
+
}, rp = Ir({}), ap = "$inf$", Da = En && window.__SWR_DEVTOOLS_USE__, op = Da ? window.__SWR_DEVTOOLS_USE__ : [], sp = () => {
|
7422
|
+
Da && (window.__SWR_DEVTOOLS_REACT__ = pe);
|
7423
7423
|
}, Fa = (e) => Me(e[1]) ? [
|
7424
7424
|
e[0],
|
7425
7425
|
e[1],
|
@@ -7428,8 +7428,8 @@ const Cr = (e, t) => {
|
|
7428
7428
|
e[0],
|
7429
7429
|
null,
|
7430
7430
|
(e[1] === null ? e[2] : e[1]) || {}
|
7431
|
-
], Pa = () => $e(np,
|
7432
|
-
const [o] =
|
7431
|
+
], Pa = () => $e(np, li(rp)), cp = (e) => (t, i, n) => e(t, i && ((...a) => {
|
7432
|
+
const [o] = Gt(t), [, , , s] = He.get(ja);
|
7433
7433
|
if (o.startsWith(ap))
|
7434
7434
|
return i(...a);
|
7435
7435
|
const c = s[o];
|
@@ -7455,7 +7455,7 @@ const Cr = (e, t) => {
|
|
7455
7455
|
});
|
7456
7456
|
};
|
7457
7457
|
sp();
|
7458
|
-
const
|
7458
|
+
const jr = pe.use || ((e) => {
|
7459
7459
|
if (e.status === "pending")
|
7460
7460
|
throw e;
|
7461
7461
|
if (e.status === "fulfilled")
|
@@ -7465,10 +7465,10 @@ const Ar = le.use || ((e) => {
|
|
7465
7465
|
}, (t) => {
|
7466
7466
|
e.status = "rejected", e.reason = t;
|
7467
7467
|
}), e);
|
7468
|
-
}),
|
7468
|
+
}), Un = {
|
7469
7469
|
dedupe: !0
|
7470
7470
|
}, up = (e, t, i) => {
|
7471
|
-
const { cache: n, compare: r, suspense: a, fallbackData: o, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: p, refreshWhenHidden: l, refreshWhenOffline: u, keepPreviousData: f } = i, [m, v, g, w] = He.get(n), [x, k] =
|
7471
|
+
const { cache: n, compare: r, suspense: a, fallbackData: o, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: p, refreshWhenHidden: l, refreshWhenOffline: u, keepPreviousData: f } = i, [m, v, g, w] = He.get(n), [x, k] = Gt(e), _ = be(!1), T = be(!1), b = be(x), j = be(t), N = be(i), D = () => N.current, G = () => D().isVisible() && D().isOnline(), [V, ae, ve, te] = hi(n, x), U = be({}).current, ue = $(o) ? i.fallback[x] : o, Se = (y, F) => {
|
7472
7472
|
for (const J in U) {
|
7473
7473
|
const M = J;
|
7474
7474
|
if (M === "data") {
|
@@ -7479,15 +7479,15 @@ const Ar = le.use || ((e) => {
|
|
7479
7479
|
}
|
7480
7480
|
return !0;
|
7481
7481
|
}, Re = Ze(() => {
|
7482
|
-
const y = !x || !t ? !1 : $(s) ?
|
7482
|
+
const y = !x || !t ? !1 : $(s) ? D().isPaused() || a ? !1 : $(c) ? !0 : c : s, F = (Q) => {
|
7483
7483
|
const Ee = $e(Q);
|
7484
7484
|
return delete Ee._k, y ? {
|
7485
7485
|
isValidating: !0,
|
7486
7486
|
isLoading: !0,
|
7487
7487
|
...Ee
|
7488
7488
|
} : Ee;
|
7489
|
-
}, J = V(), M = te(),
|
7490
|
-
let X =
|
7489
|
+
}, J = V(), M = te(), fe = F(J), Te = J === M ? fe : F(M);
|
7490
|
+
let X = fe;
|
7491
7491
|
return [
|
7492
7492
|
() => {
|
7493
7493
|
const Q = F(V());
|
@@ -7498,8 +7498,8 @@ const Ar = le.use || ((e) => {
|
|
7498
7498
|
}, [
|
7499
7499
|
n,
|
7500
7500
|
x
|
7501
|
-
]),
|
7502
|
-
(y) =>
|
7501
|
+
]), de = ka.useSyncExternalStore(Ce(
|
7502
|
+
(y) => ve(x, (F, J) => {
|
7503
7503
|
Se(J, F) || y();
|
7504
7504
|
}),
|
7505
7505
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
@@ -7507,17 +7507,17 @@ const Ar = le.use || ((e) => {
|
|
7507
7507
|
n,
|
7508
7508
|
x
|
7509
7509
|
]
|
7510
|
-
), Re[0], Re[1]), we = !_.current, S = m[x] && m[x].length > 0, O =
|
7510
|
+
), Re[0], Re[1]), we = !_.current, S = m[x] && m[x].length > 0, O = de.data, I = $(O) ? ue : O, q = de.error, B = be(I), H = f ? $(O) ? B.current : O : I, z = S && !$(q) ? !1 : we && !$(s) ? s : D().isPaused() ? !1 : a ? $(I) ? !1 : c : $(I) || c, W = !!(x && t && we && z), K = $(de.isValidating) ? W : de.isValidating, ee = $(de.isLoading) ? W : de.isLoading, L = Ce(
|
7511
7511
|
async (y) => {
|
7512
|
-
const F =
|
7513
|
-
if (!x || !F || T.current ||
|
7512
|
+
const F = j.current;
|
7513
|
+
if (!x || !F || T.current || D().isPaused())
|
7514
7514
|
return !1;
|
7515
|
-
let J, M,
|
7516
|
-
const Te = y || {}, X = !g[x] || !Te.dedupe, Q = () =>
|
7515
|
+
let J, M, fe = !0;
|
7516
|
+
const Te = y || {}, X = !g[x] || !Te.dedupe, Q = () => Ut ? !T.current && x === b.current && _.current : x === b.current, Ee = {
|
7517
7517
|
isValidating: !1,
|
7518
7518
|
isLoading: !1
|
7519
7519
|
}, Ye = () => {
|
7520
|
-
|
7520
|
+
ae(Ee);
|
7521
7521
|
}, Ne = () => {
|
7522
7522
|
const E = g[x];
|
7523
7523
|
E && E[1] === M && delete g[x];
|
@@ -7526,34 +7526,34 @@ const Ar = le.use || ((e) => {
|
|
7526
7526
|
};
|
7527
7527
|
$(V().data) && (Ke.isLoading = !0);
|
7528
7528
|
try {
|
7529
|
-
if (X && (
|
7530
|
-
|
7529
|
+
if (X && (ae(Ke), i.loadingTimeout && $(V().data) && setTimeout(() => {
|
7530
|
+
fe && Q() && D().onLoadingSlow(x, i);
|
7531
7531
|
}, i.loadingTimeout), g[x] = [
|
7532
7532
|
F(k),
|
7533
7533
|
wt()
|
7534
7534
|
]), [J, M] = g[x], J = await J, X && setTimeout(Ne, i.dedupingInterval), !g[x] || g[x][1] !== M)
|
7535
|
-
return X && Q() &&
|
7536
|
-
Ee.error =
|
7535
|
+
return X && Q() && D().onDiscarded(x), !1;
|
7536
|
+
Ee.error = je;
|
7537
7537
|
const E = v[x];
|
7538
7538
|
if (!$(E) && // case 1
|
7539
7539
|
(M <= E[0] || // case 2
|
7540
7540
|
M <= E[1] || // case 3
|
7541
7541
|
E[1] === 0))
|
7542
|
-
return Ye(), X && Q() &&
|
7542
|
+
return Ye(), X && Q() && D().onDiscarded(x), !1;
|
7543
7543
|
const C = V().data;
|
7544
|
-
Ee.data = r(C, J) ? C : J, X && Q() &&
|
7544
|
+
Ee.data = r(C, J) ? C : J, X && Q() && D().onSuccess(J, x, i);
|
7545
7545
|
} catch (E) {
|
7546
7546
|
Ne();
|
7547
|
-
const C =
|
7548
|
-
C.isPaused() || (Ee.error = E, X && Q() && (C.onError(E, x, C), (
|
7547
|
+
const C = D(), { shouldRetryOnError: oe } = C;
|
7548
|
+
C.isPaused() || (Ee.error = E, X && Q() && (C.onError(E, x, C), (oe === !0 || Me(oe) && oe(E)) && (!D().revalidateOnFocus || !D().revalidateOnReconnect || G()) && C.onErrorRetry(E, x, C, (me) => {
|
7549
7549
|
const ke = m[x];
|
7550
|
-
ke && ke[0] && ke[0](Ge.ERROR_REVALIDATE_EVENT,
|
7550
|
+
ke && ke[0] && ke[0](Ge.ERROR_REVALIDATE_EVENT, me);
|
7551
7551
|
}, {
|
7552
7552
|
retryCount: (Te.retryCount || 0) + 1,
|
7553
7553
|
dedupe: !0
|
7554
7554
|
})));
|
7555
7555
|
}
|
7556
|
-
return
|
7556
|
+
return fe = !1, Ye(), !0;
|
7557
7557
|
},
|
7558
7558
|
// `setState` is immutable, and `eventsCallback`, `fnArg`, and
|
7559
7559
|
// `keyValidating` are depending on `key`, so we can exclude them from
|
@@ -7570,32 +7570,32 @@ const Ar = le.use || ((e) => {
|
|
7570
7570
|
x,
|
7571
7571
|
n
|
7572
7572
|
]
|
7573
|
-
),
|
7573
|
+
), ge = Ce(
|
7574
7574
|
// Use callback to make sure `keyRef.current` returns latest result every time
|
7575
|
-
(...y) =>
|
7575
|
+
(...y) => yi(n, b.current, ...y),
|
7576
7576
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
7577
7577
|
[]
|
7578
7578
|
);
|
7579
7579
|
if (nt(() => {
|
7580
|
-
|
7580
|
+
j.current = t, N.current = i, $(O) || (B.current = O);
|
7581
7581
|
}), nt(() => {
|
7582
7582
|
if (!x) return;
|
7583
|
-
const y = L.bind(
|
7583
|
+
const y = L.bind(je, Un);
|
7584
7584
|
let F = 0;
|
7585
|
-
const M = Ba(x, m, (
|
7586
|
-
if (
|
7585
|
+
const M = Ba(x, m, (fe, Te = {}) => {
|
7586
|
+
if (fe == Ge.FOCUS_EVENT) {
|
7587
7587
|
const X = Date.now();
|
7588
|
-
|
7589
|
-
} else if (
|
7590
|
-
|
7588
|
+
D().revalidateOnFocus && X > F && G() && (F = X + D().focusThrottleInterval, y());
|
7589
|
+
} else if (fe == Ge.RECONNECT_EVENT)
|
7590
|
+
D().revalidateOnReconnect && G() && y();
|
7591
7591
|
else {
|
7592
|
-
if (
|
7592
|
+
if (fe == Ge.MUTATE_EVENT)
|
7593
7593
|
return L();
|
7594
|
-
if (
|
7594
|
+
if (fe == Ge.ERROR_REVALIDATE_EVENT)
|
7595
7595
|
return L(Te);
|
7596
7596
|
}
|
7597
7597
|
});
|
7598
|
-
return T.current = !1, b.current = x, _.current = !0,
|
7598
|
+
return T.current = !1, b.current = x, _.current = !0, ae({
|
7599
7599
|
_k: k
|
7600
7600
|
}), z && ($(I) || ft ? y() : Oa(y)), () => {
|
7601
7601
|
T.current = !0, M();
|
@@ -7609,7 +7609,7 @@ const Ar = le.use || ((e) => {
|
|
7609
7609
|
M && y !== -1 && (y = setTimeout(J, M));
|
7610
7610
|
}
|
7611
7611
|
function J() {
|
7612
|
-
!V().error && (l ||
|
7612
|
+
!V().error && (l || D().isVisible()) && (u || D().isOnline()) ? L(Un).then(F) : F();
|
7613
7613
|
}
|
7614
7614
|
return F(), () => {
|
7615
7615
|
y && (clearTimeout(y), y = -1);
|
@@ -7620,22 +7620,22 @@ const Ar = le.use || ((e) => {
|
|
7620
7620
|
u,
|
7621
7621
|
x
|
7622
7622
|
]), Br(H), a && $(I) && x) {
|
7623
|
-
if (!
|
7623
|
+
if (!Ut && ft)
|
7624
7624
|
throw new Error("Fallback data is required when using suspense in SSR.");
|
7625
|
-
|
7625
|
+
j.current = t, N.current = i, T.current = !1;
|
7626
7626
|
const y = w[x];
|
7627
7627
|
if (!$(y)) {
|
7628
|
-
const F =
|
7629
|
-
|
7628
|
+
const F = ge(y);
|
7629
|
+
jr(F);
|
7630
7630
|
}
|
7631
7631
|
if ($(q)) {
|
7632
|
-
const F = L(
|
7633
|
-
$(H) || (F.status = "fulfilled", F.value = !0),
|
7632
|
+
const F = L(Un);
|
7633
|
+
$(H) || (F.status = "fulfilled", F.value = !0), jr(F);
|
7634
7634
|
} else
|
7635
7635
|
throw q;
|
7636
7636
|
}
|
7637
7637
|
return {
|
7638
|
-
mutate:
|
7638
|
+
mutate: ge,
|
7639
7639
|
get data() {
|
7640
7640
|
return U.data = !0, H;
|
7641
7641
|
},
|
@@ -7649,7 +7649,7 @@ const Ar = le.use || ((e) => {
|
|
7649
7649
|
return U.isLoading = !0, ee;
|
7650
7650
|
}
|
7651
7651
|
};
|
7652
|
-
}, dp = Ia(up), Dr =
|
7652
|
+
}, dp = Ia(up), Dr = pe.use || ((e) => {
|
7653
7653
|
if (e.status === "pending")
|
7654
7654
|
throw e;
|
7655
7655
|
if (e.status === "fulfilled")
|
@@ -7659,10 +7659,10 @@ const Ar = le.use || ((e) => {
|
|
7659
7659
|
}, (t) => {
|
7660
7660
|
e.status = "rejected", e.reason = t;
|
7661
7661
|
}), e);
|
7662
|
-
}),
|
7662
|
+
}), Vn = {
|
7663
7663
|
dedupe: !0
|
7664
7664
|
}, fp = (e, t, i) => {
|
7665
|
-
const { cache: n, compare: r, suspense: a, fallbackData: o, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: p, refreshWhenHidden: l, refreshWhenOffline: u, keepPreviousData: f } = i, [m, v, g, w] = He.get(n), [x, k] =
|
7665
|
+
const { cache: n, compare: r, suspense: a, fallbackData: o, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: p, refreshWhenHidden: l, refreshWhenOffline: u, keepPreviousData: f } = i, [m, v, g, w] = He.get(n), [x, k] = Gt(e), _ = be(!1), T = be(!1), b = be(x), j = be(t), N = be(i), D = () => N.current, G = () => D().isVisible() && D().isOnline(), [V, ae, ve, te] = hi(n, x), U = be({}).current, ue = $(o) ? i.fallback[x] : o, Se = (y, F) => {
|
7666
7666
|
for (const J in U) {
|
7667
7667
|
const M = J;
|
7668
7668
|
if (M === "data") {
|
@@ -7673,15 +7673,15 @@ const Ar = le.use || ((e) => {
|
|
7673
7673
|
}
|
7674
7674
|
return !0;
|
7675
7675
|
}, Re = Ze(() => {
|
7676
|
-
const y = !x || !t ? !1 : $(s) ?
|
7676
|
+
const y = !x || !t ? !1 : $(s) ? D().isPaused() || a ? !1 : $(c) ? !0 : c : s, F = (Q) => {
|
7677
7677
|
const Ee = $e(Q);
|
7678
7678
|
return delete Ee._k, y ? {
|
7679
7679
|
isValidating: !0,
|
7680
7680
|
isLoading: !0,
|
7681
7681
|
...Ee
|
7682
7682
|
} : Ee;
|
7683
|
-
}, J = V(), M = te(),
|
7684
|
-
let X =
|
7683
|
+
}, J = V(), M = te(), fe = F(J), Te = J === M ? fe : F(M);
|
7684
|
+
let X = fe;
|
7685
7685
|
return [
|
7686
7686
|
() => {
|
7687
7687
|
const Q = F(V());
|
@@ -7692,8 +7692,8 @@ const Ar = le.use || ((e) => {
|
|
7692
7692
|
}, [
|
7693
7693
|
n,
|
7694
7694
|
x
|
7695
|
-
]),
|
7696
|
-
(y) =>
|
7695
|
+
]), de = ka.useSyncExternalStore(Ce(
|
7696
|
+
(y) => ve(x, (F, J) => {
|
7697
7697
|
Se(J, F) || y();
|
7698
7698
|
}),
|
7699
7699
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
@@ -7701,17 +7701,17 @@ const Ar = le.use || ((e) => {
|
|
7701
7701
|
n,
|
7702
7702
|
x
|
7703
7703
|
]
|
7704
|
-
), Re[0], Re[1]), we = !_.current, S = m[x] && m[x].length > 0, O =
|
7704
|
+
), Re[0], Re[1]), we = !_.current, S = m[x] && m[x].length > 0, O = de.data, I = $(O) ? ue : O, q = de.error, B = be(I), H = f ? $(O) ? B.current : O : I, z = S && !$(q) ? !1 : we && !$(s) ? s : D().isPaused() ? !1 : a ? $(I) ? !1 : c : $(I) || c, W = !!(x && t && we && z), K = $(de.isValidating) ? W : de.isValidating, ee = $(de.isLoading) ? W : de.isLoading, L = Ce(
|
7705
7705
|
async (y) => {
|
7706
|
-
const F =
|
7707
|
-
if (!x || !F || T.current ||
|
7706
|
+
const F = j.current;
|
7707
|
+
if (!x || !F || T.current || D().isPaused())
|
7708
7708
|
return !1;
|
7709
|
-
let J, M,
|
7710
|
-
const Te = y || {}, X = !g[x] || !Te.dedupe, Q = () =>
|
7709
|
+
let J, M, fe = !0;
|
7710
|
+
const Te = y || {}, X = !g[x] || !Te.dedupe, Q = () => Ut ? !T.current && x === b.current && _.current : x === b.current, Ee = {
|
7711
7711
|
isValidating: !1,
|
7712
7712
|
isLoading: !1
|
7713
7713
|
}, Ye = () => {
|
7714
|
-
|
7714
|
+
ae(Ee);
|
7715
7715
|
}, Ne = () => {
|
7716
7716
|
const E = g[x];
|
7717
7717
|
E && E[1] === M && delete g[x];
|
@@ -7720,34 +7720,34 @@ const Ar = le.use || ((e) => {
|
|
7720
7720
|
};
|
7721
7721
|
$(V().data) && (Ke.isLoading = !0);
|
7722
7722
|
try {
|
7723
|
-
if (X && (
|
7724
|
-
|
7723
|
+
if (X && (ae(Ke), i.loadingTimeout && $(V().data) && setTimeout(() => {
|
7724
|
+
fe && Q() && D().onLoadingSlow(x, i);
|
7725
7725
|
}, i.loadingTimeout), g[x] = [
|
7726
7726
|
F(k),
|
7727
7727
|
wt()
|
7728
7728
|
]), [J, M] = g[x], J = await J, X && setTimeout(Ne, i.dedupingInterval), !g[x] || g[x][1] !== M)
|
7729
|
-
return X && Q() &&
|
7730
|
-
Ee.error =
|
7729
|
+
return X && Q() && D().onDiscarded(x), !1;
|
7730
|
+
Ee.error = je;
|
7731
7731
|
const E = v[x];
|
7732
7732
|
if (!$(E) && // case 1
|
7733
7733
|
(M <= E[0] || // case 2
|
7734
7734
|
M <= E[1] || // case 3
|
7735
7735
|
E[1] === 0))
|
7736
|
-
return Ye(), X && Q() &&
|
7736
|
+
return Ye(), X && Q() && D().onDiscarded(x), !1;
|
7737
7737
|
const C = V().data;
|
7738
|
-
Ee.data = r(C, J) ? C : J, X && Q() &&
|
7738
|
+
Ee.data = r(C, J) ? C : J, X && Q() && D().onSuccess(J, x, i);
|
7739
7739
|
} catch (E) {
|
7740
7740
|
Ne();
|
7741
|
-
const C =
|
7742
|
-
C.isPaused() || (Ee.error = E, X && Q() && (C.onError(E, x, C), (
|
7741
|
+
const C = D(), { shouldRetryOnError: oe } = C;
|
7742
|
+
C.isPaused() || (Ee.error = E, X && Q() && (C.onError(E, x, C), (oe === !0 || Me(oe) && oe(E)) && (!D().revalidateOnFocus || !D().revalidateOnReconnect || G()) && C.onErrorRetry(E, x, C, (me) => {
|
7743
7743
|
const ke = m[x];
|
7744
|
-
ke && ke[0] && ke[0](Ge.ERROR_REVALIDATE_EVENT,
|
7744
|
+
ke && ke[0] && ke[0](Ge.ERROR_REVALIDATE_EVENT, me);
|
7745
7745
|
}, {
|
7746
7746
|
retryCount: (Te.retryCount || 0) + 1,
|
7747
7747
|
dedupe: !0
|
7748
7748
|
})));
|
7749
7749
|
}
|
7750
|
-
return
|
7750
|
+
return fe = !1, Ye(), !0;
|
7751
7751
|
},
|
7752
7752
|
// `setState` is immutable, and `eventsCallback`, `fnArg`, and
|
7753
7753
|
// `keyValidating` are depending on `key`, so we can exclude them from
|
@@ -7764,32 +7764,32 @@ const Ar = le.use || ((e) => {
|
|
7764
7764
|
x,
|
7765
7765
|
n
|
7766
7766
|
]
|
7767
|
-
),
|
7767
|
+
), ge = Ce(
|
7768
7768
|
// Use callback to make sure `keyRef.current` returns latest result every time
|
7769
|
-
(...y) =>
|
7769
|
+
(...y) => yi(n, b.current, ...y),
|
7770
7770
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
7771
7771
|
[]
|
7772
7772
|
);
|
7773
7773
|
if (nt(() => {
|
7774
|
-
|
7774
|
+
j.current = t, N.current = i, $(O) || (B.current = O);
|
7775
7775
|
}), nt(() => {
|
7776
7776
|
if (!x) return;
|
7777
|
-
const y = L.bind(
|
7777
|
+
const y = L.bind(je, Vn);
|
7778
7778
|
let F = 0;
|
7779
|
-
const M = Ba(x, m, (
|
7780
|
-
if (
|
7779
|
+
const M = Ba(x, m, (fe, Te = {}) => {
|
7780
|
+
if (fe == Ge.FOCUS_EVENT) {
|
7781
7781
|
const X = Date.now();
|
7782
|
-
|
7783
|
-
} else if (
|
7784
|
-
|
7782
|
+
D().revalidateOnFocus && X > F && G() && (F = X + D().focusThrottleInterval, y());
|
7783
|
+
} else if (fe == Ge.RECONNECT_EVENT)
|
7784
|
+
D().revalidateOnReconnect && G() && y();
|
7785
7785
|
else {
|
7786
|
-
if (
|
7786
|
+
if (fe == Ge.MUTATE_EVENT)
|
7787
7787
|
return L();
|
7788
|
-
if (
|
7788
|
+
if (fe == Ge.ERROR_REVALIDATE_EVENT)
|
7789
7789
|
return L(Te);
|
7790
7790
|
}
|
7791
7791
|
});
|
7792
|
-
return T.current = !1, b.current = x, _.current = !0,
|
7792
|
+
return T.current = !1, b.current = x, _.current = !0, ae({
|
7793
7793
|
_k: k
|
7794
7794
|
}), z && ($(I) || ft ? y() : Oa(y)), () => {
|
7795
7795
|
T.current = !0, M();
|
@@ -7803,7 +7803,7 @@ const Ar = le.use || ((e) => {
|
|
7803
7803
|
M && y !== -1 && (y = setTimeout(J, M));
|
7804
7804
|
}
|
7805
7805
|
function J() {
|
7806
|
-
!V().error && (l ||
|
7806
|
+
!V().error && (l || D().isVisible()) && (u || D().isOnline()) ? L(Vn).then(F) : F();
|
7807
7807
|
}
|
7808
7808
|
return F(), () => {
|
7809
7809
|
y && (clearTimeout(y), y = -1);
|
@@ -7814,22 +7814,22 @@ const Ar = le.use || ((e) => {
|
|
7814
7814
|
u,
|
7815
7815
|
x
|
7816
7816
|
]), Br(H), a && $(I) && x) {
|
7817
|
-
if (!
|
7817
|
+
if (!Ut && ft)
|
7818
7818
|
throw new Error("Fallback data is required when using suspense in SSR.");
|
7819
|
-
|
7819
|
+
j.current = t, N.current = i, T.current = !1;
|
7820
7820
|
const y = w[x];
|
7821
7821
|
if (!$(y)) {
|
7822
|
-
const F =
|
7822
|
+
const F = ge(y);
|
7823
7823
|
Dr(F);
|
7824
7824
|
}
|
7825
7825
|
if ($(q)) {
|
7826
|
-
const F = L(
|
7826
|
+
const F = L(Vn);
|
7827
7827
|
$(H) || (F.status = "fulfilled", F.value = !0), Dr(F);
|
7828
7828
|
} else
|
7829
7829
|
throw q;
|
7830
7830
|
}
|
7831
7831
|
return {
|
7832
|
-
mutate:
|
7832
|
+
mutate: ge,
|
7833
7833
|
get data() {
|
7834
7834
|
return U.data = !0, H;
|
7835
7835
|
},
|
@@ -7843,10 +7843,10 @@ const Ar = le.use || ((e) => {
|
|
7843
7843
|
return U.isLoading = !0, ee;
|
7844
7844
|
}
|
7845
7845
|
};
|
7846
|
-
}, mp = Ia(fp),
|
7846
|
+
}, mp = Ia(fp), Fr = Ut ? (e) => {
|
7847
7847
|
e();
|
7848
|
-
} :
|
7849
|
-
const [, t] =
|
7848
|
+
} : pe.startTransition, xp = (e) => {
|
7849
|
+
const [, t] = ci({}), i = be(!1), n = be(e), r = be({
|
7850
7850
|
data: !1,
|
7851
7851
|
error: !1,
|
7852
7852
|
isValidating: !1
|
@@ -7868,12 +7868,12 @@ const Ar = le.use || ((e) => {
|
|
7868
7868
|
];
|
7869
7869
|
}, vp = () => (e, t, i = {}) => {
|
7870
7870
|
const { mutate: n } = Pa(), r = be(e), a = be(t), o = be(i), s = be(0), [c, p, l] = xp({
|
7871
|
-
data:
|
7872
|
-
error:
|
7871
|
+
data: je,
|
7872
|
+
error: je,
|
7873
7873
|
isMutating: !1
|
7874
7874
|
}), u = c.current, f = Ce(
|
7875
7875
|
async (v, g) => {
|
7876
|
-
const [w, x] =
|
7876
|
+
const [w, x] = Gt(r.current);
|
7877
7877
|
if (!a.current)
|
7878
7878
|
throw new Error("Can’t trigger the mutation: missing fetcher.");
|
7879
7879
|
if (!w)
|
@@ -7896,13 +7896,13 @@ const Ar = le.use || ((e) => {
|
|
7896
7896
|
throwOnError: !0
|
7897
7897
|
})
|
7898
7898
|
);
|
7899
|
-
return s.current <= _ && (
|
7899
|
+
return s.current <= _ && (Fr(() => l({
|
7900
7900
|
data: T,
|
7901
7901
|
isMutating: !1,
|
7902
7902
|
error: void 0
|
7903
7903
|
})), k.onSuccess == null || k.onSuccess.call(k, T, w, k)), T;
|
7904
7904
|
} catch (T) {
|
7905
|
-
if (s.current <= _ && (
|
7905
|
+
if (s.current <= _ && (Fr(() => l({
|
7906
7906
|
error: T,
|
7907
7907
|
isMutating: !1
|
7908
7908
|
})), k.onError == null || k.onError.call(k, T, w, k), k.throwOnError))
|
@@ -7913,8 +7913,8 @@ const Ar = le.use || ((e) => {
|
|
7913
7913
|
[]
|
7914
7914
|
), m = Ce(() => {
|
7915
7915
|
s.current = wt(), l({
|
7916
|
-
data:
|
7917
|
-
error:
|
7916
|
+
data: je,
|
7917
|
+
error: je,
|
7918
7918
|
isMutating: !1
|
7919
7919
|
});
|
7920
7920
|
}, []);
|
@@ -7933,7 +7933,7 @@ const Ar = le.use || ((e) => {
|
|
7933
7933
|
return p.isMutating = !0, u.isMutating;
|
7934
7934
|
}
|
7935
7935
|
};
|
7936
|
-
}, gp = pp(mp, vp), hp = (e) => /* @__PURE__ */
|
7936
|
+
}, gp = pp(mp, vp), hp = (e) => /* @__PURE__ */ re.jsxs(
|
7937
7937
|
"svg",
|
7938
7938
|
{
|
7939
7939
|
width: "16",
|
@@ -7944,14 +7944,14 @@ const Ar = le.use || ((e) => {
|
|
7944
7944
|
stroke: "currentColor",
|
7945
7945
|
...e,
|
7946
7946
|
children: [
|
7947
|
-
/* @__PURE__ */
|
7947
|
+
/* @__PURE__ */ re.jsx(
|
7948
7948
|
"path",
|
7949
7949
|
{
|
7950
7950
|
opacity: "0.15",
|
7951
7951
|
d: "M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8Z"
|
7952
7952
|
}
|
7953
7953
|
),
|
7954
|
-
/* @__PURE__ */
|
7954
|
+
/* @__PURE__ */ re.jsx(
|
7955
7955
|
"path",
|
7956
7956
|
{
|
7957
7957
|
d: "M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",
|
@@ -7972,7 +7972,7 @@ const Ar = le.use || ((e) => {
|
|
7972
7972
|
lg: { width: "32px", height: "32px", strokeWidth: "2px" }
|
7973
7973
|
}
|
7974
7974
|
}
|
7975
|
-
}), wp = (e) => /* @__PURE__ */
|
7975
|
+
}), wp = (e) => /* @__PURE__ */ re.jsx(
|
7976
7976
|
"svg",
|
7977
7977
|
{
|
7978
7978
|
width: "15",
|
@@ -7981,7 +7981,7 @@ const Ar = le.use || ((e) => {
|
|
7981
7981
|
fill: "none",
|
7982
7982
|
xmlns: "http://www.w3.org/2000/svg",
|
7983
7983
|
...e,
|
7984
|
-
children: /* @__PURE__ */
|
7984
|
+
children: /* @__PURE__ */ re.jsx(
|
7985
7985
|
"path",
|
7986
7986
|
{
|
7987
7987
|
d: "M6.04995 2.74998C6.04995 2.44623 5.80371 2.19998 5.49995 2.19998C5.19619 2.19998 4.94995 2.44623 4.94995 2.74998V12.25C4.94995 12.5537 5.19619 12.8 5.49995 12.8C5.80371 12.8 6.04995 12.5537 6.04995 12.25V2.74998ZM10.05 2.74998C10.05 2.44623 9.80371 2.19998 9.49995 2.19998C9.19619 2.19998 8.94995 2.44623 8.94995 2.74998V12.25C8.94995 12.5537 9.19619 12.8 9.49995 12.8C9.80371 12.8 10.05 12.5537 10.05 12.25V2.74998Z",
|
@@ -7991,7 +7991,7 @@ const Ar = le.use || ((e) => {
|
|
7991
7991
|
}
|
7992
7992
|
)
|
7993
7993
|
}
|
7994
|
-
), Ep = ({ ...e }) => /* @__PURE__ */
|
7994
|
+
), Ep = ({ ...e }) => /* @__PURE__ */ re.jsx(
|
7995
7995
|
"svg",
|
7996
7996
|
{
|
7997
7997
|
width: "15",
|
@@ -8000,7 +8000,7 @@ const Ar = le.use || ((e) => {
|
|
8000
8000
|
xmlns: "http://www.w3.orkllg/2000/svg",
|
8001
8001
|
fill: "currentColor",
|
8002
8002
|
...e,
|
8003
|
-
children: /* @__PURE__ */
|
8003
|
+
children: /* @__PURE__ */ re.jsx(
|
8004
8004
|
"path",
|
8005
8005
|
{
|
8006
8006
|
fillRule: "evenodd",
|
@@ -8016,8 +8016,8 @@ const Ar = le.use || ((e) => {
|
|
8016
8016
|
if (!t) return !1;
|
8017
8017
|
const n = new URLSearchParams(t).get("Expires");
|
8018
8018
|
return n ? new Date(n) < /* @__PURE__ */ new Date() : !1;
|
8019
|
-
},
|
8020
|
-
const [e, t] =
|
8019
|
+
}, Pr = (e) => e && e.split("?")[0], Rp = (e, t) => Pr(e) === Pr(t), Tp = () => {
|
8020
|
+
const [e, t] = ci("paused"), n = Ze(() => {
|
8021
8021
|
if (typeof window > "u") return null;
|
8022
8022
|
const p = new Audio();
|
8023
8023
|
return p.addEventListener("play", () => t("playing")), p;
|
@@ -8048,24 +8048,24 @@ const Ar = le.use || ((e) => {
|
|
8048
8048
|
r.current && ((l = r.current) == null || l.pause(), r.current.currentTime = 0), t("paused");
|
8049
8049
|
}
|
8050
8050
|
};
|
8051
|
-
},
|
8051
|
+
}, bi = Ir(
|
8052
8052
|
null
|
8053
8053
|
), kp = (e) => {
|
8054
8054
|
var o;
|
8055
|
-
const t =
|
8055
|
+
const t = li(bi), i = Rp((o = t.audioRef.current) == null ? void 0 : o.src, e), n = t.state === "loading" && i, r = t.state === "playing" && i;
|
8056
8056
|
return { ...t, isMySrc: i, isLoading: n, isPlaying: r, play: async () => {
|
8057
8057
|
var c;
|
8058
8058
|
const s = (c = t.audioRef.current) == null ? void 0 : c.src;
|
8059
8059
|
(!i || Sp(s)) && await t.setAudio(e), t.play();
|
8060
8060
|
} };
|
8061
|
-
},
|
8061
|
+
}, ru = () => li(bi), Op = ({ children: e }) => {
|
8062
8062
|
const t = Tp();
|
8063
|
-
return /* @__PURE__ */
|
8063
|
+
return /* @__PURE__ */ re.jsx(bi.Provider, { value: t, children: e });
|
8064
8064
|
}, _p = (e, t, i) => {
|
8065
8065
|
const n = kp(e), r = be(!1), a = () => {
|
8066
8066
|
r.current || (r.current = !0), n.isPlaying ? (n.pause(), i == null || i()) : (n.play(), t == null || t());
|
8067
8067
|
};
|
8068
|
-
return
|
8068
|
+
return $t(() => () => {
|
8069
8069
|
n.isPlaying && n.pause();
|
8070
8070
|
}, []), { player: n, playPause: a };
|
8071
8071
|
}, ct = ({ limit: e, isTrue: t, children: i }) => {
|
@@ -8073,7 +8073,7 @@ const Ar = le.use || ((e) => {
|
|
8073
8073
|
return t !== !0 ? null : (Xa.Children.map(i, (r) => {
|
8074
8074
|
const { isTrue: a } = (r == null ? void 0 : r.props) || {};
|
8075
8075
|
a === !0 && (!e || n.length < e) && n.push(r);
|
8076
|
-
}), /* @__PURE__ */
|
8076
|
+
}), /* @__PURE__ */ re.jsx(re.Fragment, { children: n }));
|
8077
8077
|
};
|
8078
8078
|
ct.defaultProps = {
|
8079
8079
|
limit: 1,
|
@@ -8105,28 +8105,28 @@ const Cp = (e) => {
|
|
8105
8105
|
borderRadius: "12px",
|
8106
8106
|
position: "relative",
|
8107
8107
|
overflow: "hidden"
|
8108
|
-
}),
|
8108
|
+
}), jp = qe("div", {
|
8109
8109
|
height: "100%",
|
8110
8110
|
width: "100%",
|
8111
8111
|
background: "#ffffff",
|
8112
8112
|
transition: "transform 0.2s ease-in-out",
|
8113
8113
|
transform: "translateX(var(--progress))",
|
8114
8114
|
borderRadius: "12px"
|
8115
|
-
}),
|
8115
|
+
}), Et = {
|
8116
8116
|
Root: Ap,
|
8117
|
-
Bar:
|
8117
|
+
Bar: jp
|
8118
8118
|
};
|
8119
|
-
function
|
8119
|
+
function an(e, t, i) {
|
8120
8120
|
for (let n = 0; n < e.length; ++n)
|
8121
8121
|
t[i + n] = e.charCodeAt(n);
|
8122
8122
|
}
|
8123
|
-
function
|
8123
|
+
function pn(e, t, i) {
|
8124
8124
|
e = Math.floor(e), t[i + 0] = e & 255, t[i + 1] = e >> 8 & 255;
|
8125
8125
|
}
|
8126
8126
|
function at(e, t, i) {
|
8127
8127
|
e = Math.floor(e), t[i + 0] = e & 255, t[i + 1] = e >> 8 & 255, t[i + 2] = e >> 16 & 255, t[i + 3] = e >> 24 & 255;
|
8128
8128
|
}
|
8129
|
-
function
|
8129
|
+
function Dp(e) {
|
8130
8130
|
const t = new ArrayBuffer(4);
|
8131
8131
|
return new Float32Array(t)[0] = e, new Uint32Array(t)[0] | 0;
|
8132
8132
|
}
|
@@ -8137,9 +8137,9 @@ function Fp(e, t, i, n) {
|
|
8137
8137
|
for (r = 0; r < o; ++r)
|
8138
8138
|
for (a = 0; a < s; ++a)
|
8139
8139
|
if (c = e.getChannelData(a), n === 16)
|
8140
|
-
p = c[r] * 32768, p = Math.max(-32768, Math.min(p, 32767)),
|
8140
|
+
p = c[r] * 32768, p = Math.max(-32768, Math.min(p, 32767)), pn(p, t, i), i += 2;
|
8141
8141
|
else if (n === 32)
|
8142
|
-
p =
|
8142
|
+
p = Dp(c[r]), at(p, t, i), i += 4;
|
8143
8143
|
else {
|
8144
8144
|
console.log("Invalid bit depth for PCM encoding.");
|
8145
8145
|
return;
|
@@ -8152,7 +8152,7 @@ async function Pp(e, t) {
|
|
8152
8152
|
}
|
8153
8153
|
async function Ip(e, t = !1) {
|
8154
8154
|
const i = e.length, n = e.numberOfChannels, r = e.sampleRate, a = t ? 32 : 16, o = a / 8, s = r * n * a / 8, c = n * a / 8, p = i * n * o, u = 44 + p, f = new Uint8Array(u), m = 16, v = p, g = 4 + (8 + m) + (8 + v);
|
8155
|
-
return
|
8155
|
+
return an("RIFF", f, 0), at(g, f, 4), an("WAVE", f, 8), an("fmt ", f, 12), at(m, f, 16), pn(t ? 3 : 1, f, 20), pn(n, f, 22), at(r, f, 24), at(s, f, 28), pn(c, f, 32), at(a, f, 34), an("data", f, 36), at(v, f, 40), Fp(e, f, 44, a), new Blob([f], { type: "audio/wave" });
|
8156
8156
|
}
|
8157
8157
|
async function Bp(e, t = !1, i) {
|
8158
8158
|
const n = await Pp(e, i);
|
@@ -8161,9 +8161,9 @@ async function Bp(e, t = !1, i) {
|
|
8161
8161
|
const zp = 128;
|
8162
8162
|
class Lp {
|
8163
8163
|
constructor() {
|
8164
|
-
|
8165
|
-
|
8166
|
-
|
8164
|
+
Yt(this, "mediaRecorder", null);
|
8165
|
+
Yt(this, "stream", null);
|
8166
|
+
Yt(this, "__data", null);
|
8167
8167
|
}
|
8168
8168
|
/**
|
8169
8169
|
* @returns {Promise<boolean>} - true if user has microphone access, false otherwise
|
@@ -8211,12 +8211,12 @@ class Lp {
|
|
8211
8211
|
return this.__data ? await Bp(this.__data) : null;
|
8212
8212
|
}
|
8213
8213
|
}
|
8214
|
-
const
|
8215
|
-
const [t, i] =
|
8216
|
-
return
|
8214
|
+
const on = new Lp(), La = "Recording.wav", Mp = 1500, au = (e) => {
|
8215
|
+
const [t, i] = pe.useState(!1), [n, r] = pe.useState(!1), [a, o] = pe.useState(!1);
|
8216
|
+
return pe.useEffect(() => {
|
8217
8217
|
var p;
|
8218
8218
|
const c = async () => {
|
8219
|
-
|
8219
|
+
on.checkMicrophonePermission().then(i);
|
8220
8220
|
};
|
8221
8221
|
return c(), (p = navigator == null ? void 0 : navigator.mediaDevices) == null || p.addEventListener("devicechange", c), () => {
|
8222
8222
|
var l;
|
@@ -8226,8 +8226,8 @@ const an = new Lp(), La = "Recording.wav", Mp = 1500, iu = (e) => {
|
|
8226
8226
|
if (n) {
|
8227
8227
|
if (!a)
|
8228
8228
|
return;
|
8229
|
-
r(!1), o(!1), await
|
8230
|
-
const p = await
|
8229
|
+
r(!1), o(!1), await on.stopRecording();
|
8230
|
+
const p = await on.getWavBlob();
|
8231
8231
|
if (!p) {
|
8232
8232
|
console.log("Failed to get audio blob", p);
|
8233
8233
|
return;
|
@@ -8239,12 +8239,12 @@ const an = new Lp(), La = "Recording.wav", Mp = 1500, iu = (e) => {
|
|
8239
8239
|
e.onFileUpdate(l);
|
8240
8240
|
return;
|
8241
8241
|
}
|
8242
|
-
const c = await
|
8242
|
+
const c = await on.startRecording();
|
8243
8243
|
r(c), setTimeout(() => {
|
8244
8244
|
o(!0);
|
8245
8245
|
}, Mp);
|
8246
8246
|
} };
|
8247
|
-
}, $p = "https://arpeggi.io/api/v2/", Ma =
|
8247
|
+
}, $p = "https://arpeggi.io/api/v2/", Ma = De.create({
|
8248
8248
|
baseURL: $p
|
8249
8249
|
}), Np = async (e, { arg: t }) => (await Ma.post(
|
8250
8250
|
"/ml-inference-jobs",
|
@@ -8268,7 +8268,7 @@ const an = new Lp(), La = "Recording.wav", Mp = 1500, iu = (e) => {
|
|
8268
8268
|
refreshInterval: 1e3
|
8269
8269
|
});
|
8270
8270
|
}, Up = () => {
|
8271
|
-
const [e, t] =
|
8271
|
+
const [e, t] = pe.useState(null), [i, n] = pe.useState(0), [r, a] = pe.useState(0), { data: o, isLoading: s } = Wp(i), { trigger: c, isMutating: p } = gp("/ml-inference-jobs", Np);
|
8272
8272
|
return {
|
8273
8273
|
file: e,
|
8274
8274
|
setFile: t,
|
@@ -8296,9 +8296,9 @@ const an = new Lp(), La = "Recording.wav", Mp = 1500, iu = (e) => {
|
|
8296
8296
|
},
|
8297
8297
|
isMutating: p
|
8298
8298
|
};
|
8299
|
-
}, $a =
|
8299
|
+
}, $a = pe.createContext({}), wi = () => pe.useContext($a), ou = ({ children: e }) => {
|
8300
8300
|
const t = Up();
|
8301
|
-
return /* @__PURE__ */
|
8301
|
+
return /* @__PURE__ */ re.jsx(Op, { children: /* @__PURE__ */ re.jsx($a.Provider, { value: t, children: e }) });
|
8302
8302
|
}, Vp = qe("button", {
|
8303
8303
|
background: "#ffffff",
|
8304
8304
|
borderRadius: "12px",
|
@@ -8328,17 +8328,17 @@ const an = new Lp(), La = "Recording.wav", Mp = 1500, iu = (e) => {
|
|
8328
8328
|
transform: "none",
|
8329
8329
|
cursor: "not-allowed"
|
8330
8330
|
}
|
8331
|
-
}),
|
8331
|
+
}), su = () => {
|
8332
8332
|
var a;
|
8333
|
-
const { data: e, isMutating: t } =
|
8334
|
-
return /* @__PURE__ */
|
8335
|
-
/* @__PURE__ */
|
8336
|
-
/* @__PURE__ */
|
8337
|
-
/* @__PURE__ */
|
8333
|
+
const { data: e, isMutating: t } = wi(), i = (a = e == null ? void 0 : e.lossyOutputFile) == null ? void 0 : a.url, { player: n, playPause: r } = _p(i);
|
8334
|
+
return /* @__PURE__ */ re.jsx(Vp, { onClick: r, disabled: n.isLoading || !i, children: /* @__PURE__ */ re.jsxs(ct, { children: [
|
8335
|
+
/* @__PURE__ */ re.jsx(ct.If, { isTrue: n.isLoading || (e == null ? void 0 : e.jobStatus) === "running" || t, children: /* @__PURE__ */ re.jsx(bp, {}) }),
|
8336
|
+
/* @__PURE__ */ re.jsx(ct.If, { isTrue: n.isPlaying, children: /* @__PURE__ */ re.jsx(wp, {}) }),
|
8337
|
+
/* @__PURE__ */ re.jsx(ct.Else, { children: /* @__PURE__ */ re.jsx(Ep, {}) })
|
8338
8338
|
] }) });
|
8339
8339
|
}, Hp = 30, Gp = (e) => {
|
8340
|
-
const t =
|
8341
|
-
return
|
8340
|
+
const t = pe.useRef(), i = pe.useRef(null);
|
8341
|
+
return pe.useEffect(() => {
|
8342
8342
|
let n = 0;
|
8343
8343
|
return t.current = setInterval(() => {
|
8344
8344
|
var a;
|
@@ -8349,20 +8349,20 @@ const an = new Lp(), La = "Recording.wav", Mp = 1500, iu = (e) => {
|
|
8349
8349
|
}, []), i;
|
8350
8350
|
}, Yp = () => {
|
8351
8351
|
const e = Gp(0.3);
|
8352
|
-
return /* @__PURE__ */
|
8353
|
-
},
|
8354
|
-
const { data: e } =
|
8355
|
-
return /* @__PURE__ */
|
8356
|
-
},
|
8357
|
-
const { setFile: t } =
|
8358
|
-
return /* @__PURE__ */
|
8352
|
+
return /* @__PURE__ */ re.jsx(Et.Root, { ref: e, children: /* @__PURE__ */ re.jsx(Et.Bar, {}) });
|
8353
|
+
}, Kp = () => /* @__PURE__ */ re.jsx(Et.Root, { children: /* @__PURE__ */ re.jsx(Et.Bar, {}) }), Jp = () => /* @__PURE__ */ re.jsx(Et.Root, { style: { "--progress": "0%" }, children: /* @__PURE__ */ re.jsx(Et.Bar, {}) }), cu = () => {
|
8354
|
+
const { data: e } = wi();
|
8355
|
+
return e ? e.jobStatus === "success" ? /* @__PURE__ */ re.jsx(Jp, {}) : /* @__PURE__ */ re.jsx(Yp, {}, e == null ? void 0 : e.id) : /* @__PURE__ */ re.jsx(Kp, {});
|
8356
|
+
}, Xp = 1, Zp = 100 * 1024 * 1024, Qp = 1, lu = ({ children: e }) => {
|
8357
|
+
const { setFile: t } = wi(), i = (n) => t(n[0]);
|
8358
|
+
return /* @__PURE__ */ re.jsx(
|
8359
8359
|
ic,
|
8360
8360
|
{
|
8361
8361
|
files: [],
|
8362
8362
|
onFileAccepted: i,
|
8363
|
-
maxFileCount:
|
8364
|
-
maxSizeBytes:
|
8365
|
-
minSizeBytes:
|
8363
|
+
maxFileCount: Xp,
|
8364
|
+
maxSizeBytes: Zp,
|
8365
|
+
minSizeBytes: Qp,
|
8366
8366
|
maxDurationS: Hp,
|
8367
8367
|
children: e
|
8368
8368
|
}
|
@@ -8370,20 +8370,20 @@ const an = new Lp(), La = "Recording.wav", Mp = 1500, iu = (e) => {
|
|
8370
8370
|
};
|
8371
8371
|
export {
|
8372
8372
|
ic as AudioFilePickerRoot,
|
8373
|
-
|
8374
|
-
|
8375
|
-
|
8376
|
-
|
8373
|
+
iu as ConvertStep,
|
8374
|
+
lu as FilePicker,
|
8375
|
+
ou as GuestConvertProvider,
|
8376
|
+
cu as InferenceProgress,
|
8377
8377
|
Mp as MIN_RECORDING_LENGTH_MS,
|
8378
|
-
|
8378
|
+
su as PlayButton,
|
8379
8379
|
Op as PlayerProvider,
|
8380
8380
|
La as RECORDED_AUDIO_NAME,
|
8381
|
-
|
8381
|
+
nu as useAudioFilePickerContext,
|
8382
8382
|
Gp as useFakeProgress,
|
8383
|
-
|
8383
|
+
wi as useGuestConvertContext,
|
8384
8384
|
_p as usePlayback,
|
8385
8385
|
kp as usePlayer,
|
8386
|
-
|
8387
|
-
|
8386
|
+
ru as usePlayerControls,
|
8387
|
+
au as useRecorder
|
8388
8388
|
};
|
8389
8389
|
//# sourceMappingURL=index.es.js.map
|