gearboxdownloadmodal 6.0.13 → 6.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +603 -601
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +8 -8
- package/dist/index.umd.js.map +1 -1
- package/dist/src/utils/generateVersion.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import ae, { useState as P, useEffect as Ce, forwardRef as
|
|
1
|
+
import ae, { useState as P, useEffect as Ce, forwardRef as Si, useReducer as Oi, useRef as nt, isValidElement as dt, cloneElement as kn, useLayoutEffect as Ei } from "react";
|
|
2
2
|
import ki from "react-dom";
|
|
3
3
|
function zi(e) {
|
|
4
4
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -40,15 +40,15 @@ function ji() {
|
|
|
40
40
|
return yt;
|
|
41
41
|
wr = 1;
|
|
42
42
|
var e = ae, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
43
|
-
function a(A,
|
|
44
|
-
var s,
|
|
45
|
-
c !== void 0 && (y = "" + c),
|
|
46
|
-
for (s in
|
|
47
|
-
r.call(
|
|
43
|
+
function a(A, d, c) {
|
|
44
|
+
var s, m = {}, y = null, g = null;
|
|
45
|
+
c !== void 0 && (y = "" + c), d.key !== void 0 && (y = "" + d.key), d.ref !== void 0 && (g = d.ref);
|
|
46
|
+
for (s in d)
|
|
47
|
+
r.call(d, s) && !i.hasOwnProperty(s) && (m[s] = d[s]);
|
|
48
48
|
if (A && A.defaultProps)
|
|
49
|
-
for (s in
|
|
50
|
-
|
|
51
|
-
return { $$typeof: t, type: A, key: y, ref: g, props:
|
|
49
|
+
for (s in d = A.defaultProps, d)
|
|
50
|
+
m[s] === void 0 && (m[s] = d[s]);
|
|
51
|
+
return { $$typeof: t, type: A, key: y, ref: g, props: m, _owner: o.current };
|
|
52
52
|
}
|
|
53
53
|
return yt.Fragment = n, yt.jsx = a, yt.jsxs = a, yt;
|
|
54
54
|
}
|
|
@@ -65,7 +65,7 @@ var vt = {};
|
|
|
65
65
|
var xr;
|
|
66
66
|
function Ji() {
|
|
67
67
|
return xr || (xr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
68
|
-
var e = ae, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), A = Symbol.for("react.context"),
|
|
68
|
+
var e = ae, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), A = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), p = Symbol.iterator, h = "@@iterator";
|
|
69
69
|
function v(u) {
|
|
70
70
|
if (u === null || typeof u != "object")
|
|
71
71
|
return null;
|
|
@@ -93,7 +93,7 @@ function Ji() {
|
|
|
93
93
|
var O = !1, C = !1, ne = !1, re = !1, U = !1, Ae;
|
|
94
94
|
Ae = Symbol.for("react.module.reference");
|
|
95
95
|
function F(u) {
|
|
96
|
-
return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || U || u === o || u === c || u === s || re || u === g || O || C || ne || typeof u == "object" && u !== null && (u.$$typeof === y || u.$$typeof ===
|
|
96
|
+
return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || U || u === o || u === c || u === s || re || u === g || O || C || ne || typeof u == "object" && u !== null && (u.$$typeof === y || u.$$typeof === m || u.$$typeof === a || u.$$typeof === A || u.$$typeof === d || // This needs to include all possible module reference object
|
|
97
97
|
// types supported by any Flight configuration anywhere since
|
|
98
98
|
// we don't know which Flight build this will end up being used
|
|
99
99
|
// with.
|
|
@@ -138,9 +138,9 @@ function Ji() {
|
|
|
138
138
|
case a:
|
|
139
139
|
var M = u;
|
|
140
140
|
return X(M._context) + ".Provider";
|
|
141
|
-
case m:
|
|
142
|
-
return oe(u, u.render, "ForwardRef");
|
|
143
141
|
case d:
|
|
142
|
+
return oe(u, u.render, "ForwardRef");
|
|
143
|
+
case m:
|
|
144
144
|
var G = u.displayName || null;
|
|
145
145
|
return G !== null ? G : _(u.type) || "Memo";
|
|
146
146
|
case y: {
|
|
@@ -154,14 +154,14 @@ function Ji() {
|
|
|
154
154
|
}
|
|
155
155
|
return null;
|
|
156
156
|
}
|
|
157
|
-
var W = Object.assign,
|
|
157
|
+
var W = Object.assign, L = 0, Y, f, S, k, q, Z, z;
|
|
158
158
|
function w() {
|
|
159
159
|
}
|
|
160
160
|
w.__reactDisabledLog = !0;
|
|
161
161
|
function j() {
|
|
162
162
|
{
|
|
163
|
-
if (
|
|
164
|
-
Y = console.log, f = console.info,
|
|
163
|
+
if (L === 0) {
|
|
164
|
+
Y = console.log, f = console.info, S = console.warn, k = console.error, q = console.group, Z = console.groupCollapsed, z = console.groupEnd;
|
|
165
165
|
var u = {
|
|
166
166
|
configurable: !0,
|
|
167
167
|
enumerable: !0,
|
|
@@ -178,12 +178,12 @@ function Ji() {
|
|
|
178
178
|
groupEnd: u
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
-
|
|
181
|
+
L++;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
function Q() {
|
|
185
185
|
{
|
|
186
|
-
if (
|
|
186
|
+
if (L--, L === 0) {
|
|
187
187
|
var u = {
|
|
188
188
|
configurable: !0,
|
|
189
189
|
enumerable: !0,
|
|
@@ -197,7 +197,7 @@ function Ji() {
|
|
|
197
197
|
value: f
|
|
198
198
|
}),
|
|
199
199
|
warn: W({}, u, {
|
|
200
|
-
value:
|
|
200
|
+
value: S
|
|
201
201
|
}),
|
|
202
202
|
error: W({}, u, {
|
|
203
203
|
value: k
|
|
@@ -213,11 +213,11 @@ function Ji() {
|
|
|
213
213
|
})
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
-
|
|
216
|
+
L < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
var
|
|
220
|
-
function
|
|
219
|
+
var R = x.ReactCurrentDispatcher, N;
|
|
220
|
+
function D(u, I, M) {
|
|
221
221
|
{
|
|
222
222
|
if (N === void 0)
|
|
223
223
|
try {
|
|
@@ -248,7 +248,7 @@ function Ji() {
|
|
|
248
248
|
var ie = Error.prepareStackTrace;
|
|
249
249
|
Error.prepareStackTrace = void 0;
|
|
250
250
|
var ue;
|
|
251
|
-
ue =
|
|
251
|
+
ue = R.current, R.current = null, j();
|
|
252
252
|
try {
|
|
253
253
|
if (I) {
|
|
254
254
|
var ee = function() {
|
|
@@ -285,25 +285,25 @@ function Ji() {
|
|
|
285
285
|
if (Ge && G && typeof Ge.stack == "string") {
|
|
286
286
|
for (var $ = Ge.stack.split(`
|
|
287
287
|
`), be = G.stack.split(`
|
|
288
|
-
`),
|
|
288
|
+
`), me = $.length - 1, pe = be.length - 1; me >= 1 && pe >= 0 && $[me] !== be[pe]; )
|
|
289
289
|
pe--;
|
|
290
|
-
for (;
|
|
291
|
-
if ($[
|
|
292
|
-
if (
|
|
290
|
+
for (; me >= 1 && pe >= 0; me--, pe--)
|
|
291
|
+
if ($[me] !== be[pe]) {
|
|
292
|
+
if (me !== 1 || pe !== 1)
|
|
293
293
|
do
|
|
294
|
-
if (
|
|
294
|
+
if (me--, pe--, pe < 0 || $[me] !== be[pe]) {
|
|
295
295
|
var We = `
|
|
296
|
-
` + $[
|
|
296
|
+
` + $[me].replace(" at new ", " at ");
|
|
297
297
|
return u.displayName && We.includes("<anonymous>") && (We = We.replace("<anonymous>", u.displayName)), typeof u == "function" && T.set(u, We), We;
|
|
298
298
|
}
|
|
299
|
-
while (
|
|
299
|
+
while (me >= 1 && pe >= 0);
|
|
300
300
|
break;
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
} finally {
|
|
304
|
-
B = !1,
|
|
304
|
+
B = !1, R.current = ue, Q(), Error.prepareStackTrace = ie;
|
|
305
305
|
}
|
|
306
|
-
var ut = u ? u.displayName || u.name : "", Ir = ut ?
|
|
306
|
+
var ut = u ? u.displayName || u.name : "", Ir = ut ? D(ut) : "";
|
|
307
307
|
return typeof u == "function" && T.set(u, Ir), Ir;
|
|
308
308
|
}
|
|
309
309
|
function ce(u, I, M) {
|
|
@@ -319,18 +319,18 @@ function Ji() {
|
|
|
319
319
|
if (typeof u == "function")
|
|
320
320
|
return K(u, Xe(u));
|
|
321
321
|
if (typeof u == "string")
|
|
322
|
-
return
|
|
322
|
+
return D(u);
|
|
323
323
|
switch (u) {
|
|
324
324
|
case c:
|
|
325
|
-
return
|
|
325
|
+
return D("Suspense");
|
|
326
326
|
case s:
|
|
327
|
-
return
|
|
327
|
+
return D("SuspenseList");
|
|
328
328
|
}
|
|
329
329
|
if (typeof u == "object")
|
|
330
330
|
switch (u.$$typeof) {
|
|
331
|
-
case m:
|
|
332
|
-
return ce(u.render);
|
|
333
331
|
case d:
|
|
332
|
+
return ce(u.render);
|
|
333
|
+
case m:
|
|
334
334
|
return we(u.type, I, M);
|
|
335
335
|
case y: {
|
|
336
336
|
var G = u, ie = G._payload, ue = G._init;
|
|
@@ -342,13 +342,13 @@ function Ji() {
|
|
|
342
342
|
}
|
|
343
343
|
return "";
|
|
344
344
|
}
|
|
345
|
-
var kt = Object.prototype.hasOwnProperty,
|
|
345
|
+
var kt = Object.prototype.hasOwnProperty, dr = {}, mr = x.ReactDebugCurrentFrame;
|
|
346
346
|
function zt(u) {
|
|
347
347
|
if (u) {
|
|
348
348
|
var I = u._owner, M = we(u.type, u._source, I ? I.type : null);
|
|
349
|
-
|
|
349
|
+
mr.setExtraStackFrame(M);
|
|
350
350
|
} else
|
|
351
|
-
|
|
351
|
+
mr.setExtraStackFrame(null);
|
|
352
352
|
}
|
|
353
353
|
function ci(u, I, M, G, ie) {
|
|
354
354
|
{
|
|
@@ -362,18 +362,18 @@ function Ji() {
|
|
|
362
362
|
throw be.name = "Invariant Violation", be;
|
|
363
363
|
}
|
|
364
364
|
$ = u[ee](I, ee, G, M, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
365
|
-
} catch (
|
|
366
|
-
$ =
|
|
365
|
+
} catch (me) {
|
|
366
|
+
$ = me;
|
|
367
367
|
}
|
|
368
|
-
$ && !($ instanceof Error) && (zt(ie), E("%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).", G || "React class", M, ee, typeof $), zt(null)), $ instanceof Error && !($.message in
|
|
368
|
+
$ && !($ instanceof Error) && (zt(ie), E("%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).", G || "React class", M, ee, typeof $), zt(null)), $ instanceof Error && !($.message in dr) && (dr[$.message] = !0, zt(ie), E("Failed %s type: %s", M, $.message), zt(null));
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
var
|
|
372
|
+
var di = Array.isArray;
|
|
373
373
|
function pn(u) {
|
|
374
|
-
return
|
|
374
|
+
return di(u);
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function mi(u) {
|
|
377
377
|
{
|
|
378
378
|
var I = typeof Symbol == "function" && Symbol.toStringTag, M = I && u[Symbol.toStringTag] || u.constructor.name || "Object";
|
|
379
379
|
return M;
|
|
@@ -391,7 +391,7 @@ function Ji() {
|
|
|
391
391
|
}
|
|
392
392
|
function fr(u) {
|
|
393
393
|
if (pi(u))
|
|
394
|
-
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
394
|
+
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", mi(u)), pr(u);
|
|
395
395
|
}
|
|
396
396
|
var qt = x.ReactCurrentOwner, fi = {
|
|
397
397
|
key: !0,
|
|
@@ -480,9 +480,9 @@ function Ji() {
|
|
|
480
480
|
for (ue in I)
|
|
481
481
|
kt.call(I, ue) && !fi.hasOwnProperty(ue) && (ee[ue] = I[ue]);
|
|
482
482
|
if (u && u.defaultProps) {
|
|
483
|
-
var
|
|
484
|
-
for (ue in
|
|
485
|
-
ee[ue] === void 0 && (ee[ue] =
|
|
483
|
+
var me = u.defaultProps;
|
|
484
|
+
for (ue in me)
|
|
485
|
+
ee[ue] === void 0 && (ee[ue] = me[ue]);
|
|
486
486
|
}
|
|
487
487
|
if ($ || be) {
|
|
488
488
|
var pe = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
|
|
@@ -580,9 +580,9 @@ Check the top-level render call using <` + M + ">.");
|
|
|
580
580
|
var M;
|
|
581
581
|
if (typeof I == "function")
|
|
582
582
|
M = I.propTypes;
|
|
583
|
-
else if (typeof I == "object" && (I.$$typeof ===
|
|
583
|
+
else if (typeof I == "object" && (I.$$typeof === d || // Note: Memo only checks outer props here.
|
|
584
584
|
// Inner props are checked in the reconciler.
|
|
585
|
-
I.$$typeof ===
|
|
585
|
+
I.$$typeof === m))
|
|
586
586
|
M = I.propTypes;
|
|
587
587
|
else
|
|
588
588
|
return;
|
|
@@ -617,8 +617,8 @@ Check the top-level render call using <` + M + ">.");
|
|
|
617
617
|
(u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && ($ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
618
618
|
var be = Zi(ie);
|
|
619
619
|
be ? $ += be : $ += yr();
|
|
620
|
-
var
|
|
621
|
-
u === null ?
|
|
620
|
+
var me;
|
|
621
|
+
u === null ? me = "null" : pn(u) ? me = "array" : u !== void 0 && u.$$typeof === t ? (me = "<" + (_(u.type) || "Unknown") + " />", $ = " Did you accidentally export a JSX literal instead of a component?") : me = typeof u, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", me, $);
|
|
622
622
|
}
|
|
623
623
|
var pe = Ci(u, I, M, ie, ue);
|
|
624
624
|
if (pe == null)
|
|
@@ -645,8 +645,8 @@ Check the top-level render call using <` + M + ">.");
|
|
|
645
645
|
function Wi(u, I, M) {
|
|
646
646
|
return Zr(u, I, M, !1);
|
|
647
647
|
}
|
|
648
|
-
var Mi = Wi,
|
|
649
|
-
vt.Fragment = r, vt.jsx = Mi, vt.jsxs =
|
|
648
|
+
var Mi = Wi, Li = Ki;
|
|
649
|
+
vt.Fragment = r, vt.jsx = Mi, vt.jsxs = Li;
|
|
650
650
|
}()), vt;
|
|
651
651
|
}
|
|
652
652
|
process.env.NODE_ENV === "production" ? zn.exports = ji() : zn.exports = Ji();
|
|
@@ -951,8 +951,8 @@ Je.getRSBlocks = function(e, t) {
|
|
|
951
951
|
if (n == null)
|
|
952
952
|
throw new Error("bad rs block @ typeNumber:" + e + "/errorCorrectLevel:" + t);
|
|
953
953
|
for (var r = n.length / 3, o = new Array(), i = 0; i < r; i++)
|
|
954
|
-
for (var a = n[i * 3 + 0], A = n[i * 3 + 1],
|
|
955
|
-
o.push(new Je(A,
|
|
954
|
+
for (var a = n[i * 3 + 0], A = n[i * 3 + 1], d = n[i * 3 + 2], c = 0; c < a; c++)
|
|
955
|
+
o.push(new Je(A, d));
|
|
956
956
|
return o;
|
|
957
957
|
};
|
|
958
958
|
Je.getRsBlockTable = function(e, t) {
|
|
@@ -1193,8 +1193,8 @@ var fo = Gt, Me = lo, Kr = fo, Qi = po, Qe = {
|
|
|
1193
1193
|
for (var o = 0; o < t; o++) {
|
|
1194
1194
|
for (var i = 0, a = e.isDark(r, o), A = -1; A <= 1; A++)
|
|
1195
1195
|
if (!(r + A < 0 || t <= r + A))
|
|
1196
|
-
for (var
|
|
1197
|
-
o +
|
|
1196
|
+
for (var d = -1; d <= 1; d++)
|
|
1197
|
+
o + d < 0 || t <= o + d || A == 0 && d == 0 || a == e.isDark(r + A, o + d) && i++;
|
|
1198
1198
|
i > 5 && (n += 3 + i - 5);
|
|
1199
1199
|
}
|
|
1200
1200
|
for (var r = 0; r < t - 1; r++)
|
|
@@ -1211,8 +1211,8 @@ var fo = Gt, Me = lo, Kr = fo, Qi = po, Qe = {
|
|
|
1211
1211
|
for (var s = 0, o = 0; o < t; o++)
|
|
1212
1212
|
for (var r = 0; r < t; r++)
|
|
1213
1213
|
e.isDark(r, o) && s++;
|
|
1214
|
-
var
|
|
1215
|
-
return n +=
|
|
1214
|
+
var m = Math.abs(100 * s / t / t - 50) / 5;
|
|
1215
|
+
return n += m * 10, n;
|
|
1216
1216
|
}
|
|
1217
1217
|
}, Pi = qe, Vi = Ti, ho = Hi, go = Xi, Fe = Pi, Bi = fo;
|
|
1218
1218
|
function Ne(e, t) {
|
|
@@ -1276,8 +1276,8 @@ Ke.createMovieClip = function(e, t, n) {
|
|
|
1276
1276
|
this.make();
|
|
1277
1277
|
for (var i = 0; i < this.modules.length; i++)
|
|
1278
1278
|
for (var a = i * o, A = 0; A < this.modules[i].length; A++) {
|
|
1279
|
-
var
|
|
1280
|
-
c && (r.beginFill(0, 100), r.moveTo(
|
|
1279
|
+
var d = A * o, c = this.modules[i][A];
|
|
1280
|
+
c && (r.beginFill(0, 100), r.moveTo(d, a), r.lineTo(d + o, a), r.lineTo(d + o, a + o), r.lineTo(d, a + o), r.endFill());
|
|
1281
1281
|
}
|
|
1282
1282
|
return r;
|
|
1283
1283
|
};
|
|
@@ -1323,10 +1323,10 @@ Ke.mapData = function(e, t) {
|
|
|
1323
1323
|
for (a == 6 && a--; ; ) {
|
|
1324
1324
|
for (var A = 0; A < 2; A++)
|
|
1325
1325
|
if (this.modules[r][a - A] == null) {
|
|
1326
|
-
var
|
|
1327
|
-
i < e.length && (
|
|
1326
|
+
var d = !1;
|
|
1327
|
+
i < e.length && (d = (e[i] >>> o & 1) == 1);
|
|
1328
1328
|
var c = Fe.getMask(t, r, a - A);
|
|
1329
|
-
c && (
|
|
1329
|
+
c && (d = !d), this.modules[r][a - A] = d, o--, o == -1 && (i++, o = 7);
|
|
1330
1330
|
}
|
|
1331
1331
|
if (r += n, r < 0 || this.moduleCount <= r) {
|
|
1332
1332
|
r -= n, n = -n;
|
|
@@ -1353,13 +1353,13 @@ Ne.createData = function(e, t, n) {
|
|
|
1353
1353
|
};
|
|
1354
1354
|
Ne.createBytes = function(e, t) {
|
|
1355
1355
|
for (var n = 0, r = 0, o = 0, i = new Array(t.length), a = new Array(t.length), A = 0; A < t.length; A++) {
|
|
1356
|
-
var
|
|
1357
|
-
r = Math.max(r,
|
|
1356
|
+
var d = t[A].dataCount, c = t[A].totalCount - d;
|
|
1357
|
+
r = Math.max(r, d), o = Math.max(o, c), i[A] = new Array(d);
|
|
1358
1358
|
for (var s = 0; s < i[A].length; s++)
|
|
1359
1359
|
i[A][s] = 255 & e.buffer[s + n];
|
|
1360
|
-
n +=
|
|
1361
|
-
var
|
|
1362
|
-
a[A] = new Array(
|
|
1360
|
+
n += d;
|
|
1361
|
+
var m = Fe.getErrorCorrectPolynomial(c), y = new Bi(i[A], m.getLength() - 1), g = y.mod(m);
|
|
1362
|
+
a[A] = new Array(m.getLength() - 1);
|
|
1363
1363
|
for (var s = 0; s < a[A].length; s++) {
|
|
1364
1364
|
var p = s + g.getLength() - a[A].length;
|
|
1365
1365
|
a[A][s] = p >= 0 ? g.get(p) : 0;
|
|
@@ -1389,19 +1389,19 @@ function Fi() {
|
|
|
1389
1389
|
if (Wr)
|
|
1390
1390
|
return se;
|
|
1391
1391
|
Wr = 1;
|
|
1392
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, A = e ? Symbol.for("react.context") : 60110,
|
|
1392
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, A = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, s = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
|
|
1393
1393
|
function J(C) {
|
|
1394
1394
|
if (typeof C == "object" && C !== null) {
|
|
1395
1395
|
var ne = C.$$typeof;
|
|
1396
1396
|
switch (ne) {
|
|
1397
1397
|
case t:
|
|
1398
1398
|
switch (C = C.type, C) {
|
|
1399
|
-
case
|
|
1399
|
+
case d:
|
|
1400
1400
|
case c:
|
|
1401
1401
|
case r:
|
|
1402
1402
|
case i:
|
|
1403
1403
|
case o:
|
|
1404
|
-
case
|
|
1404
|
+
case m:
|
|
1405
1405
|
return C;
|
|
1406
1406
|
default:
|
|
1407
1407
|
switch (C = C && C.$$typeof, C) {
|
|
@@ -1423,8 +1423,8 @@ function Fi() {
|
|
|
1423
1423
|
function O(C) {
|
|
1424
1424
|
return J(C) === c;
|
|
1425
1425
|
}
|
|
1426
|
-
return se.AsyncMode =
|
|
1427
|
-
return O(C) || J(C) ===
|
|
1426
|
+
return se.AsyncMode = d, se.ConcurrentMode = c, se.ContextConsumer = A, se.ContextProvider = a, se.Element = t, se.ForwardRef = s, se.Fragment = r, se.Lazy = p, se.Memo = g, se.Portal = n, se.Profiler = i, se.StrictMode = o, se.Suspense = m, se.isAsyncMode = function(C) {
|
|
1427
|
+
return O(C) || J(C) === d;
|
|
1428
1428
|
}, se.isConcurrentMode = O, se.isContextConsumer = function(C) {
|
|
1429
1429
|
return J(C) === A;
|
|
1430
1430
|
}, se.isContextProvider = function(C) {
|
|
@@ -1446,9 +1446,9 @@ function Fi() {
|
|
|
1446
1446
|
}, se.isStrictMode = function(C) {
|
|
1447
1447
|
return J(C) === o;
|
|
1448
1448
|
}, se.isSuspense = function(C) {
|
|
1449
|
-
return J(C) ===
|
|
1449
|
+
return J(C) === m;
|
|
1450
1450
|
}, se.isValidElementType = function(C) {
|
|
1451
|
-
return typeof C == "string" || typeof C == "function" || C === r || C === c || C === i || C === o || C ===
|
|
1451
|
+
return typeof C == "string" || typeof C == "function" || C === r || C === c || C === i || C === o || C === m || C === y || typeof C == "object" && C !== null && (C.$$typeof === p || C.$$typeof === g || C.$$typeof === a || C.$$typeof === A || C.$$typeof === s || C.$$typeof === v || C.$$typeof === x || C.$$typeof === E || C.$$typeof === h);
|
|
1452
1452
|
}, se.typeOf = J, se;
|
|
1453
1453
|
}
|
|
1454
1454
|
var le = {};
|
|
@@ -1463,10 +1463,10 @@ var le = {};
|
|
|
1463
1463
|
var Mr;
|
|
1464
1464
|
function _i() {
|
|
1465
1465
|
return Mr || (Mr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1466
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, A = e ? Symbol.for("react.context") : 60110,
|
|
1466
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, A = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, s = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
|
|
1467
1467
|
function J(K) {
|
|
1468
1468
|
return typeof K == "string" || typeof K == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1469
|
-
K === r || K === c || K === i || K === o || K ===
|
|
1469
|
+
K === r || K === c || K === i || K === o || K === m || K === y || typeof K == "object" && K !== null && (K.$$typeof === p || K.$$typeof === g || K.$$typeof === a || K.$$typeof === A || K.$$typeof === s || K.$$typeof === v || K.$$typeof === x || K.$$typeof === E || K.$$typeof === h);
|
|
1470
1470
|
}
|
|
1471
1471
|
function O(K) {
|
|
1472
1472
|
if (typeof K == "object" && K !== null) {
|
|
@@ -1475,12 +1475,12 @@ function _i() {
|
|
|
1475
1475
|
case t:
|
|
1476
1476
|
var Xe = K.type;
|
|
1477
1477
|
switch (Xe) {
|
|
1478
|
-
case
|
|
1478
|
+
case d:
|
|
1479
1479
|
case c:
|
|
1480
1480
|
case r:
|
|
1481
1481
|
case i:
|
|
1482
1482
|
case o:
|
|
1483
|
-
case
|
|
1483
|
+
case m:
|
|
1484
1484
|
return Xe;
|
|
1485
1485
|
default:
|
|
1486
1486
|
var we = Xe && Xe.$$typeof;
|
|
@@ -1500,9 +1500,9 @@ function _i() {
|
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
1502
1502
|
}
|
|
1503
|
-
var C =
|
|
1503
|
+
var C = d, ne = c, re = A, U = a, Ae = t, F = s, oe = r, X = p, _ = g, W = n, L = i, Y = o, f = m, S = !1;
|
|
1504
1504
|
function k(K) {
|
|
1505
|
-
return
|
|
1505
|
+
return S || (S = !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.")), q(K) || O(K) === d;
|
|
1506
1506
|
}
|
|
1507
1507
|
function q(K) {
|
|
1508
1508
|
return O(K) === c;
|
|
@@ -1522,13 +1522,13 @@ function _i() {
|
|
|
1522
1522
|
function Q(K) {
|
|
1523
1523
|
return O(K) === r;
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1525
|
+
function R(K) {
|
|
1526
1526
|
return O(K) === p;
|
|
1527
1527
|
}
|
|
1528
1528
|
function N(K) {
|
|
1529
1529
|
return O(K) === g;
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1531
|
+
function D(K) {
|
|
1532
1532
|
return O(K) === n;
|
|
1533
1533
|
}
|
|
1534
1534
|
function B(K) {
|
|
@@ -1538,25 +1538,25 @@ function _i() {
|
|
|
1538
1538
|
return O(K) === o;
|
|
1539
1539
|
}
|
|
1540
1540
|
function V(K) {
|
|
1541
|
-
return O(K) ===
|
|
1541
|
+
return O(K) === m;
|
|
1542
1542
|
}
|
|
1543
|
-
le.AsyncMode = C, le.ConcurrentMode = ne, le.ContextConsumer = re, le.ContextProvider = U, le.Element = Ae, le.ForwardRef = F, le.Fragment = oe, le.Lazy = X, le.Memo = _, le.Portal = W, le.Profiler =
|
|
1543
|
+
le.AsyncMode = C, le.ConcurrentMode = ne, le.ContextConsumer = re, le.ContextProvider = U, le.Element = Ae, le.ForwardRef = F, le.Fragment = oe, le.Lazy = X, le.Memo = _, le.Portal = W, le.Profiler = L, le.StrictMode = Y, le.Suspense = f, le.isAsyncMode = k, le.isConcurrentMode = q, le.isContextConsumer = Z, le.isContextProvider = z, le.isElement = w, le.isForwardRef = j, le.isFragment = Q, le.isLazy = R, le.isMemo = N, le.isPortal = D, le.isProfiler = B, le.isStrictMode = T, le.isSuspense = V, le.isValidElementType = J, le.typeOf = O;
|
|
1544
1544
|
}()), le;
|
|
1545
1545
|
}
|
|
1546
|
-
var
|
|
1546
|
+
var Lr;
|
|
1547
1547
|
function qo() {
|
|
1548
|
-
return
|
|
1548
|
+
return Lr || (Lr = 1, process.env.NODE_ENV === "production" ? jt.exports = Fi() : jt.exports = _i()), jt.exports;
|
|
1549
1549
|
}
|
|
1550
1550
|
/*
|
|
1551
1551
|
object-assign
|
|
1552
1552
|
(c) Sindre Sorhus
|
|
1553
1553
|
@license MIT
|
|
1554
1554
|
*/
|
|
1555
|
-
var yn,
|
|
1555
|
+
var yn, Sr;
|
|
1556
1556
|
function $i() {
|
|
1557
|
-
if (
|
|
1557
|
+
if (Sr)
|
|
1558
1558
|
return yn;
|
|
1559
|
-
|
|
1559
|
+
Sr = 1;
|
|
1560
1560
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
1561
1561
|
function r(i) {
|
|
1562
1562
|
if (i == null)
|
|
@@ -1572,10 +1572,10 @@ function $i() {
|
|
|
1572
1572
|
return !1;
|
|
1573
1573
|
for (var a = {}, A = 0; A < 10; A++)
|
|
1574
1574
|
a["_" + String.fromCharCode(A)] = A;
|
|
1575
|
-
var
|
|
1575
|
+
var d = Object.getOwnPropertyNames(a).map(function(s) {
|
|
1576
1576
|
return a[s];
|
|
1577
1577
|
});
|
|
1578
|
-
if (
|
|
1578
|
+
if (d.join("") !== "0123456789")
|
|
1579
1579
|
return !1;
|
|
1580
1580
|
var c = {};
|
|
1581
1581
|
return "abcdefghijklmnopqrst".split("").forEach(function(s) {
|
|
@@ -1586,17 +1586,17 @@ function $i() {
|
|
|
1586
1586
|
}
|
|
1587
1587
|
}
|
|
1588
1588
|
return yn = o() ? Object.assign : function(i, a) {
|
|
1589
|
-
for (var A,
|
|
1589
|
+
for (var A, d = r(i), c, s = 1; s < arguments.length; s++) {
|
|
1590
1590
|
A = Object(arguments[s]);
|
|
1591
|
-
for (var
|
|
1592
|
-
t.call(A,
|
|
1591
|
+
for (var m in A)
|
|
1592
|
+
t.call(A, m) && (d[m] = A[m]);
|
|
1593
1593
|
if (e) {
|
|
1594
1594
|
c = e(A);
|
|
1595
1595
|
for (var y = 0; y < c.length; y++)
|
|
1596
|
-
n.call(A, c[y]) && (
|
|
1596
|
+
n.call(A, c[y]) && (d[c[y]] = A[c[y]]);
|
|
1597
1597
|
}
|
|
1598
1598
|
}
|
|
1599
|
-
return
|
|
1599
|
+
return d;
|
|
1600
1600
|
}, yn;
|
|
1601
1601
|
}
|
|
1602
1602
|
var vn, Or;
|
|
@@ -1629,29 +1629,29 @@ function ea() {
|
|
|
1629
1629
|
}
|
|
1630
1630
|
};
|
|
1631
1631
|
}
|
|
1632
|
-
function o(i, a, A,
|
|
1632
|
+
function o(i, a, A, d, c) {
|
|
1633
1633
|
if (process.env.NODE_ENV !== "production") {
|
|
1634
1634
|
for (var s in i)
|
|
1635
1635
|
if (r(i, s)) {
|
|
1636
|
-
var
|
|
1636
|
+
var m;
|
|
1637
1637
|
try {
|
|
1638
1638
|
if (typeof i[s] != "function") {
|
|
1639
1639
|
var y = Error(
|
|
1640
|
-
(
|
|
1640
|
+
(d || "React class") + ": " + A + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
1641
1641
|
);
|
|
1642
1642
|
throw y.name = "Invariant Violation", y;
|
|
1643
1643
|
}
|
|
1644
|
-
|
|
1644
|
+
m = i[s](a, s, d, A, null, t);
|
|
1645
1645
|
} catch (p) {
|
|
1646
|
-
|
|
1646
|
+
m = p;
|
|
1647
1647
|
}
|
|
1648
|
-
if (
|
|
1649
|
-
(
|
|
1650
|
-
),
|
|
1651
|
-
n[
|
|
1648
|
+
if (m && !(m instanceof Error) && e(
|
|
1649
|
+
(d || "React class") + ": type specification of " + A + " `" + s + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof m + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
1650
|
+
), m instanceof Error && !(m.message in n)) {
|
|
1651
|
+
n[m.message] = !0;
|
|
1652
1652
|
var g = c ? c() : "";
|
|
1653
1653
|
e(
|
|
1654
|
-
"Failed " + A + " type: " +
|
|
1654
|
+
"Failed " + A + " type: " + m.message + (g ?? "")
|
|
1655
1655
|
);
|
|
1656
1656
|
}
|
|
1657
1657
|
}
|
|
@@ -1669,19 +1669,19 @@ function ta() {
|
|
|
1669
1669
|
var e = qo(), t = $i(), n = Fn(), r = yo(), o = ea(), i = function() {
|
|
1670
1670
|
};
|
|
1671
1671
|
process.env.NODE_ENV !== "production" && (i = function(A) {
|
|
1672
|
-
var
|
|
1673
|
-
typeof console < "u" && console.error(
|
|
1672
|
+
var d = "Warning: " + A;
|
|
1673
|
+
typeof console < "u" && console.error(d);
|
|
1674
1674
|
try {
|
|
1675
|
-
throw new Error(
|
|
1675
|
+
throw new Error(d);
|
|
1676
1676
|
} catch {
|
|
1677
1677
|
}
|
|
1678
1678
|
});
|
|
1679
1679
|
function a() {
|
|
1680
1680
|
return null;
|
|
1681
1681
|
}
|
|
1682
|
-
return Zn = function(A,
|
|
1682
|
+
return Zn = function(A, d) {
|
|
1683
1683
|
var c = typeof Symbol == "function" && Symbol.iterator, s = "@@iterator";
|
|
1684
|
-
function
|
|
1684
|
+
function m(q) {
|
|
1685
1685
|
var Z = q && (c && q[c] || q[s]);
|
|
1686
1686
|
if (typeof Z == "function")
|
|
1687
1687
|
return Z;
|
|
@@ -1717,33 +1717,33 @@ function ta() {
|
|
|
1717
1717
|
function v(q) {
|
|
1718
1718
|
if (process.env.NODE_ENV !== "production")
|
|
1719
1719
|
var Z = {}, z = 0;
|
|
1720
|
-
function w(Q,
|
|
1721
|
-
if (
|
|
1722
|
-
if (
|
|
1720
|
+
function w(Q, R, N, D, B, T, V) {
|
|
1721
|
+
if (D = D || y, T = T || N, V !== n) {
|
|
1722
|
+
if (d) {
|
|
1723
1723
|
var K = new Error(
|
|
1724
1724
|
"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"
|
|
1725
1725
|
);
|
|
1726
1726
|
throw K.name = "Invariant Violation", K;
|
|
1727
1727
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1728
|
-
var ce =
|
|
1728
|
+
var ce = D + ":" + N;
|
|
1729
1729
|
!Z[ce] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1730
1730
|
z < 3 && (i(
|
|
1731
|
-
"You are manually calling a React.PropTypes validation function for the `" + T + "` prop on `" +
|
|
1731
|
+
"You are manually calling a React.PropTypes validation function for the `" + T + "` prop on `" + D + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
1732
1732
|
), Z[ce] = !0, z++);
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
1735
|
-
return
|
|
1735
|
+
return R[N] == null ? Q ? R[N] === null ? new h("The " + B + " `" + T + "` is marked as required " + ("in `" + D + "`, but its value is `null`.")) : new h("The " + B + " `" + T + "` is marked as required in " + ("`" + D + "`, but its value is `undefined`.")) : null : q(R, N, D, B, T);
|
|
1736
1736
|
}
|
|
1737
1737
|
var j = w.bind(null, !1);
|
|
1738
1738
|
return j.isRequired = w.bind(null, !0), j;
|
|
1739
1739
|
}
|
|
1740
1740
|
function x(q) {
|
|
1741
|
-
function Z(z, w, j, Q,
|
|
1742
|
-
var
|
|
1741
|
+
function Z(z, w, j, Q, R, N) {
|
|
1742
|
+
var D = z[w], B = Y(D);
|
|
1743
1743
|
if (B !== q) {
|
|
1744
|
-
var T = f(
|
|
1744
|
+
var T = f(D);
|
|
1745
1745
|
return new h(
|
|
1746
|
-
"Invalid " + Q + " `" +
|
|
1746
|
+
"Invalid " + Q + " `" + R + "` of type " + ("`" + T + "` supplied to `" + j + "`, expected ") + ("`" + q + "`."),
|
|
1747
1747
|
{ expectedType: q }
|
|
1748
1748
|
);
|
|
1749
1749
|
}
|
|
@@ -1755,16 +1755,16 @@ function ta() {
|
|
|
1755
1755
|
return v(a);
|
|
1756
1756
|
}
|
|
1757
1757
|
function J(q) {
|
|
1758
|
-
function Z(z, w, j, Q,
|
|
1758
|
+
function Z(z, w, j, Q, R) {
|
|
1759
1759
|
if (typeof q != "function")
|
|
1760
|
-
return new h("Property `" +
|
|
1760
|
+
return new h("Property `" + R + "` of component `" + j + "` has invalid PropType notation inside arrayOf.");
|
|
1761
1761
|
var N = z[w];
|
|
1762
1762
|
if (!Array.isArray(N)) {
|
|
1763
|
-
var
|
|
1764
|
-
return new h("Invalid " + Q + " `" +
|
|
1763
|
+
var D = Y(N);
|
|
1764
|
+
return new h("Invalid " + Q + " `" + R + "` of type " + ("`" + D + "` supplied to `" + j + "`, expected an array."));
|
|
1765
1765
|
}
|
|
1766
1766
|
for (var B = 0; B < N.length; B++) {
|
|
1767
|
-
var T = q(N, B, j, Q,
|
|
1767
|
+
var T = q(N, B, j, Q, R + "[" + B + "]", n);
|
|
1768
1768
|
if (T instanceof Error)
|
|
1769
1769
|
return T;
|
|
1770
1770
|
}
|
|
@@ -1774,9 +1774,9 @@ function ta() {
|
|
|
1774
1774
|
}
|
|
1775
1775
|
function O() {
|
|
1776
1776
|
function q(Z, z, w, j, Q) {
|
|
1777
|
-
var
|
|
1778
|
-
if (!A(
|
|
1779
|
-
var N = Y(
|
|
1777
|
+
var R = Z[z];
|
|
1778
|
+
if (!A(R)) {
|
|
1779
|
+
var N = Y(R);
|
|
1780
1780
|
return new h("Invalid " + j + " `" + Q + "` of type " + ("`" + N + "` supplied to `" + w + "`, expected a single ReactElement."));
|
|
1781
1781
|
}
|
|
1782
1782
|
return null;
|
|
@@ -1785,9 +1785,9 @@ function ta() {
|
|
|
1785
1785
|
}
|
|
1786
1786
|
function C() {
|
|
1787
1787
|
function q(Z, z, w, j, Q) {
|
|
1788
|
-
var
|
|
1789
|
-
if (!e.isValidElementType(
|
|
1790
|
-
var N = Y(
|
|
1788
|
+
var R = Z[z];
|
|
1789
|
+
if (!e.isValidElementType(R)) {
|
|
1790
|
+
var N = Y(R);
|
|
1791
1791
|
return new h("Invalid " + j + " `" + Q + "` of type " + ("`" + N + "` supplied to `" + w + "`, expected a single ReactElement type."));
|
|
1792
1792
|
}
|
|
1793
1793
|
return null;
|
|
@@ -1795,10 +1795,10 @@ function ta() {
|
|
|
1795
1795
|
return v(q);
|
|
1796
1796
|
}
|
|
1797
1797
|
function ne(q) {
|
|
1798
|
-
function Z(z, w, j, Q,
|
|
1798
|
+
function Z(z, w, j, Q, R) {
|
|
1799
1799
|
if (!(z[w] instanceof q)) {
|
|
1800
|
-
var N = q.name || y,
|
|
1801
|
-
return new h("Invalid " + Q + " `" +
|
|
1800
|
+
var N = q.name || y, D = k(z[w]);
|
|
1801
|
+
return new h("Invalid " + Q + " `" + R + "` of type " + ("`" + D + "` supplied to `" + j + "`, expected ") + ("instance of `" + N + "`."));
|
|
1802
1802
|
}
|
|
1803
1803
|
return null;
|
|
1804
1804
|
}
|
|
@@ -1809,28 +1809,28 @@ function ta() {
|
|
|
1809
1809
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1810
1810
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1811
1811
|
) : i("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
1812
|
-
function Z(z, w, j, Q,
|
|
1813
|
-
for (var N = z[w],
|
|
1814
|
-
if (p(N, q[
|
|
1812
|
+
function Z(z, w, j, Q, R) {
|
|
1813
|
+
for (var N = z[w], D = 0; D < q.length; D++)
|
|
1814
|
+
if (p(N, q[D]))
|
|
1815
1815
|
return null;
|
|
1816
1816
|
var B = JSON.stringify(q, function(V, K) {
|
|
1817
1817
|
var ce = f(K);
|
|
1818
1818
|
return ce === "symbol" ? String(K) : K;
|
|
1819
1819
|
});
|
|
1820
|
-
return new h("Invalid " + Q + " `" +
|
|
1820
|
+
return new h("Invalid " + Q + " `" + R + "` of value `" + String(N) + "` " + ("supplied to `" + j + "`, expected one of " + B + "."));
|
|
1821
1821
|
}
|
|
1822
1822
|
return v(Z);
|
|
1823
1823
|
}
|
|
1824
1824
|
function U(q) {
|
|
1825
|
-
function Z(z, w, j, Q,
|
|
1825
|
+
function Z(z, w, j, Q, R) {
|
|
1826
1826
|
if (typeof q != "function")
|
|
1827
|
-
return new h("Property `" +
|
|
1828
|
-
var N = z[w],
|
|
1829
|
-
if (
|
|
1830
|
-
return new h("Invalid " + Q + " `" +
|
|
1827
|
+
return new h("Property `" + R + "` of component `" + j + "` has invalid PropType notation inside objectOf.");
|
|
1828
|
+
var N = z[w], D = Y(N);
|
|
1829
|
+
if (D !== "object")
|
|
1830
|
+
return new h("Invalid " + Q + " `" + R + "` of type " + ("`" + D + "` supplied to `" + j + "`, expected an object."));
|
|
1831
1831
|
for (var B in N)
|
|
1832
1832
|
if (r(N, B)) {
|
|
1833
|
-
var T = q(N, B, j, Q,
|
|
1833
|
+
var T = q(N, B, j, Q, R + "." + B, n);
|
|
1834
1834
|
if (T instanceof Error)
|
|
1835
1835
|
return T;
|
|
1836
1836
|
}
|
|
@@ -1845,18 +1845,18 @@ function ta() {
|
|
|
1845
1845
|
var z = q[Z];
|
|
1846
1846
|
if (typeof z != "function")
|
|
1847
1847
|
return i(
|
|
1848
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
1848
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + S(z) + " at index " + Z + "."
|
|
1849
1849
|
), a;
|
|
1850
1850
|
}
|
|
1851
|
-
function w(j, Q,
|
|
1851
|
+
function w(j, Q, R, N, D) {
|
|
1852
1852
|
for (var B = [], T = 0; T < q.length; T++) {
|
|
1853
|
-
var V = q[T], K = V(j, Q,
|
|
1853
|
+
var V = q[T], K = V(j, Q, R, N, D, n);
|
|
1854
1854
|
if (K == null)
|
|
1855
1855
|
return null;
|
|
1856
1856
|
K.data && r(K.data, "expectedType") && B.push(K.data.expectedType);
|
|
1857
1857
|
}
|
|
1858
1858
|
var ce = B.length > 0 ? ", expected one of type [" + B.join(", ") + "]" : "";
|
|
1859
|
-
return new h("Invalid " + N + " `" +
|
|
1859
|
+
return new h("Invalid " + N + " `" + D + "` supplied to " + ("`" + R + "`" + ce + "."));
|
|
1860
1860
|
}
|
|
1861
1861
|
return v(w);
|
|
1862
1862
|
}
|
|
@@ -1872,15 +1872,15 @@ function ta() {
|
|
|
1872
1872
|
);
|
|
1873
1873
|
}
|
|
1874
1874
|
function X(q) {
|
|
1875
|
-
function Z(z, w, j, Q,
|
|
1876
|
-
var N = z[w],
|
|
1877
|
-
if (
|
|
1878
|
-
return new h("Invalid " + Q + " `" +
|
|
1875
|
+
function Z(z, w, j, Q, R) {
|
|
1876
|
+
var N = z[w], D = Y(N);
|
|
1877
|
+
if (D !== "object")
|
|
1878
|
+
return new h("Invalid " + Q + " `" + R + "` of type `" + D + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
1879
1879
|
for (var B in q) {
|
|
1880
1880
|
var T = q[B];
|
|
1881
1881
|
if (typeof T != "function")
|
|
1882
|
-
return oe(j, Q,
|
|
1883
|
-
var V = T(N, B, j, Q,
|
|
1882
|
+
return oe(j, Q, R, B, f(T));
|
|
1883
|
+
var V = T(N, B, j, Q, R + "." + B, n);
|
|
1884
1884
|
if (V)
|
|
1885
1885
|
return V;
|
|
1886
1886
|
}
|
|
@@ -1889,21 +1889,21 @@ function ta() {
|
|
|
1889
1889
|
return v(Z);
|
|
1890
1890
|
}
|
|
1891
1891
|
function _(q) {
|
|
1892
|
-
function Z(z, w, j, Q,
|
|
1893
|
-
var N = z[w],
|
|
1894
|
-
if (
|
|
1895
|
-
return new h("Invalid " + Q + " `" +
|
|
1892
|
+
function Z(z, w, j, Q, R) {
|
|
1893
|
+
var N = z[w], D = Y(N);
|
|
1894
|
+
if (D !== "object")
|
|
1895
|
+
return new h("Invalid " + Q + " `" + R + "` of type `" + D + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
1896
1896
|
var B = t({}, z[w], q);
|
|
1897
1897
|
for (var T in B) {
|
|
1898
1898
|
var V = q[T];
|
|
1899
1899
|
if (r(q, T) && typeof V != "function")
|
|
1900
|
-
return oe(j, Q,
|
|
1900
|
+
return oe(j, Q, R, T, f(V));
|
|
1901
1901
|
if (!V)
|
|
1902
1902
|
return new h(
|
|
1903
|
-
"Invalid " + Q + " `" +
|
|
1903
|
+
"Invalid " + Q + " `" + R + "` key `" + T + "` supplied to `" + j + "`.\nBad object: " + JSON.stringify(z[w], null, " ") + `
|
|
1904
1904
|
Valid keys: ` + JSON.stringify(Object.keys(q), null, " ")
|
|
1905
1905
|
);
|
|
1906
|
-
var K = V(N, T, j, Q,
|
|
1906
|
+
var K = V(N, T, j, Q, R + "." + T, n);
|
|
1907
1907
|
if (K)
|
|
1908
1908
|
return K;
|
|
1909
1909
|
}
|
|
@@ -1924,7 +1924,7 @@ Valid keys: ` + JSON.stringify(Object.keys(q), null, " ")
|
|
|
1924
1924
|
return q.every(W);
|
|
1925
1925
|
if (q === null || A(q))
|
|
1926
1926
|
return !0;
|
|
1927
|
-
var Z =
|
|
1927
|
+
var Z = m(q);
|
|
1928
1928
|
if (Z) {
|
|
1929
1929
|
var z = Z.call(q), w;
|
|
1930
1930
|
if (Z !== q.entries) {
|
|
@@ -1944,12 +1944,12 @@ Valid keys: ` + JSON.stringify(Object.keys(q), null, " ")
|
|
|
1944
1944
|
return !1;
|
|
1945
1945
|
}
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1947
|
+
function L(q, Z) {
|
|
1948
1948
|
return q === "symbol" ? !0 : Z ? Z["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && Z instanceof Symbol : !1;
|
|
1949
1949
|
}
|
|
1950
1950
|
function Y(q) {
|
|
1951
1951
|
var Z = typeof q;
|
|
1952
|
-
return Array.isArray(q) ? "array" : q instanceof RegExp ? "object" :
|
|
1952
|
+
return Array.isArray(q) ? "array" : q instanceof RegExp ? "object" : L(Z, q) ? "symbol" : Z;
|
|
1953
1953
|
}
|
|
1954
1954
|
function f(q) {
|
|
1955
1955
|
if (typeof q > "u" || q === null)
|
|
@@ -1963,7 +1963,7 @@ Valid keys: ` + JSON.stringify(Object.keys(q), null, " ")
|
|
|
1963
1963
|
}
|
|
1964
1964
|
return Z;
|
|
1965
1965
|
}
|
|
1966
|
-
function
|
|
1966
|
+
function S(q) {
|
|
1967
1967
|
var Z = f(q);
|
|
1968
1968
|
switch (Z) {
|
|
1969
1969
|
case "array":
|
|
@@ -1994,8 +1994,8 @@ function na() {
|
|
|
1994
1994
|
function n() {
|
|
1995
1995
|
}
|
|
1996
1996
|
return n.resetWarningCache = t, In = function() {
|
|
1997
|
-
function r(a, A,
|
|
1998
|
-
if (
|
|
1997
|
+
function r(a, A, d, c, s, m) {
|
|
1998
|
+
if (m !== e) {
|
|
1999
1999
|
var y = new Error(
|
|
2000
2000
|
"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"
|
|
2001
2001
|
);
|
|
@@ -2048,7 +2048,7 @@ var ia = Object.assign || function(e) {
|
|
|
2048
2048
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
2049
2049
|
}
|
|
2050
2050
|
return e;
|
|
2051
|
-
}, aa = nn,
|
|
2051
|
+
}, aa = nn, Le = bo(aa), vo = ae, Jt = bo(vo);
|
|
2052
2052
|
function bo(e) {
|
|
2053
2053
|
return e && e.__esModule ? e : { default: e };
|
|
2054
2054
|
}
|
|
@@ -2059,22 +2059,22 @@ function Aa(e, t) {
|
|
|
2059
2059
|
return n;
|
|
2060
2060
|
}
|
|
2061
2061
|
var sa = {
|
|
2062
|
-
bgColor:
|
|
2063
|
-
bgD:
|
|
2064
|
-
fgColor:
|
|
2065
|
-
fgD:
|
|
2066
|
-
size:
|
|
2067
|
-
title:
|
|
2068
|
-
viewBoxSize:
|
|
2069
|
-
xmlns:
|
|
2062
|
+
bgColor: Le.default.oneOfType([Le.default.object, Le.default.string]).isRequired,
|
|
2063
|
+
bgD: Le.default.string.isRequired,
|
|
2064
|
+
fgColor: Le.default.oneOfType([Le.default.object, Le.default.string]).isRequired,
|
|
2065
|
+
fgD: Le.default.string.isRequired,
|
|
2066
|
+
size: Le.default.number.isRequired,
|
|
2067
|
+
title: Le.default.string,
|
|
2068
|
+
viewBoxSize: Le.default.number.isRequired,
|
|
2069
|
+
xmlns: Le.default.string
|
|
2070
2070
|
}, la = {
|
|
2071
2071
|
title: void 0,
|
|
2072
2072
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2073
2073
|
}, rn = (0, vo.forwardRef)(function(e, t) {
|
|
2074
|
-
var n = e.bgColor, r = e.bgD, o = e.fgD, i = e.fgColor, a = e.size, A = e.title,
|
|
2074
|
+
var n = e.bgColor, r = e.bgD, o = e.fgD, i = e.fgColor, a = e.size, A = e.title, d = e.viewBoxSize, c = Aa(e, ["bgColor", "bgD", "fgD", "fgColor", "size", "title", "viewBoxSize"]);
|
|
2075
2075
|
return Jt.default.createElement(
|
|
2076
2076
|
"svg",
|
|
2077
|
-
ia({}, c, { height: a, ref: t, viewBox: "0 0 " +
|
|
2077
|
+
ia({}, c, { height: a, ref: t, viewBox: "0 0 " + d + " " + d, width: a }),
|
|
2078
2078
|
A ? Jt.default.createElement(
|
|
2079
2079
|
"title",
|
|
2080
2080
|
null,
|
|
@@ -2099,7 +2099,7 @@ var ua = Object.assign || function(e) {
|
|
|
2099
2099
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
2100
2100
|
}
|
|
2101
2101
|
return e;
|
|
2102
|
-
}, ca = Ui,
|
|
2102
|
+
}, ca = Ui, da = Wt(ca), ma = co, pa = Wt(ma), fa = nn, Te = Wt(fa), Co = ae, ha = Wt(Co), ga = _n, qa = Wt(ga);
|
|
2103
2103
|
function Wt(e) {
|
|
2104
2104
|
return e && e.__esModule ? e : { default: e };
|
|
2105
2105
|
}
|
|
@@ -2121,20 +2121,20 @@ var va = {
|
|
|
2121
2121
|
level: "L",
|
|
2122
2122
|
size: 256
|
|
2123
2123
|
}, Mt = (0, Co.forwardRef)(function(e, t) {
|
|
2124
|
-
var n = e.bgColor, r = e.fgColor, o = e.level, i = e.size, a = e.value, A = ya(e, ["bgColor", "fgColor", "level", "size", "value"]),
|
|
2125
|
-
|
|
2126
|
-
var c =
|
|
2124
|
+
var n = e.bgColor, r = e.fgColor, o = e.level, i = e.size, a = e.value, A = ya(e, ["bgColor", "fgColor", "level", "size", "value"]), d = new da.default(-1, pa.default[o]);
|
|
2125
|
+
d.addData(a), d.make();
|
|
2126
|
+
var c = d.modules;
|
|
2127
2127
|
return ha.default.createElement(qa.default, ua({}, A, {
|
|
2128
2128
|
bgColor: n,
|
|
2129
|
-
bgD: c.map(function(s,
|
|
2129
|
+
bgD: c.map(function(s, m) {
|
|
2130
2130
|
return s.map(function(y, g) {
|
|
2131
|
-
return y ? "" : "M " + g + " " +
|
|
2131
|
+
return y ? "" : "M " + g + " " + m + " l 1 0 0 1 -1 0 Z";
|
|
2132
2132
|
}).join(" ");
|
|
2133
2133
|
}).join(" "),
|
|
2134
2134
|
fgColor: r,
|
|
2135
|
-
fgD: c.map(function(s,
|
|
2135
|
+
fgD: c.map(function(s, m) {
|
|
2136
2136
|
return s.map(function(y, g) {
|
|
2137
|
-
return y ? "M " + g + " " +
|
|
2137
|
+
return y ? "M " + g + " " + m + " l 1 0 0 1 -1 0 Z" : "";
|
|
2138
2138
|
}).join(" ");
|
|
2139
2139
|
}).join(" "),
|
|
2140
2140
|
ref: t,
|
|
@@ -2208,12 +2208,12 @@ const xa = an("string"), Oe = an("function"), xo = an("number"), An = (e) => e !
|
|
|
2208
2208
|
return !1;
|
|
2209
2209
|
const t = $n(e);
|
|
2210
2210
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
2211
|
-
}, Wa = Re("Date"), Ma = Re("File"),
|
|
2211
|
+
}, Wa = Re("Date"), Ma = Re("File"), La = Re("Blob"), Sa = Re("FileList"), Oa = (e) => An(e) && Oe(e.pipe), Ea = (e) => {
|
|
2212
2212
|
let t;
|
|
2213
2213
|
return e && (typeof FormData == "function" && e instanceof FormData || Oe(e.append) && ((t = on(e)) === "formdata" || // detect form-data instance
|
|
2214
2214
|
t === "object" && Oe(e.toString) && e.toString() === "[object FormData]"));
|
|
2215
2215
|
}, ka = Re("URLSearchParams"), za = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
2216
|
-
function
|
|
2216
|
+
function Lt(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
2217
2217
|
if (e === null || typeof e > "u")
|
|
2218
2218
|
return;
|
|
2219
2219
|
let r, o;
|
|
@@ -2243,10 +2243,10 @@ function jn() {
|
|
|
2243
2243
|
Tt(t[i]) && Tt(r) ? t[i] = jn(t[i], r) : Tt(r) ? t[i] = jn({}, r) : pt(r) ? t[i] = r.slice() : t[i] = r;
|
|
2244
2244
|
};
|
|
2245
2245
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
2246
|
-
arguments[r] &&
|
|
2246
|
+
arguments[r] && Lt(arguments[r], n);
|
|
2247
2247
|
return t;
|
|
2248
2248
|
}
|
|
2249
|
-
const Ya = (e, t, n, { allOwnKeys: r } = {}) => (
|
|
2249
|
+
const Ya = (e, t, n, { allOwnKeys: r } = {}) => (Lt(t, (o, i) => {
|
|
2250
2250
|
n && Oe(o) ? e[i] = Io(o, n) : e[i] = o;
|
|
2251
2251
|
}, { allOwnKeys: r }), e), ja = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ja = (e, t, n, r) => {
|
|
2252
2252
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
@@ -2297,14 +2297,14 @@ const Ya = (e, t, n, { allOwnKeys: r } = {}) => (St(t, (o, i) => {
|
|
|
2297
2297
|
function(n, r, o) {
|
|
2298
2298
|
return r.toUpperCase() + o;
|
|
2299
2299
|
}
|
|
2300
|
-
), jr = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Pa = Re("RegExp"),
|
|
2300
|
+
), jr = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Pa = Re("RegExp"), Lo = (e, t) => {
|
|
2301
2301
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
2302
|
-
|
|
2302
|
+
Lt(n, (o, i) => {
|
|
2303
2303
|
let a;
|
|
2304
2304
|
(a = t(o, i, e)) !== !1 && (r[i] = a || o);
|
|
2305
2305
|
}), Object.defineProperties(e, r);
|
|
2306
2306
|
}, Va = (e) => {
|
|
2307
|
-
|
|
2307
|
+
Lo(e, (t, n) => {
|
|
2308
2308
|
if (Oe(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
2309
2309
|
return !1;
|
|
2310
2310
|
const r = e[n];
|
|
@@ -2326,11 +2326,11 @@ const Ya = (e, t, n, { allOwnKeys: r } = {}) => (St(t, (o, i) => {
|
|
|
2326
2326
|
};
|
|
2327
2327
|
return pt(e) ? r(e) : r(String(e).split(t)), n;
|
|
2328
2328
|
}, Ua = () => {
|
|
2329
|
-
}, Fa = (e, t) => (e = +e, Number.isFinite(e) ? e : t), wn = "abcdefghijklmnopqrstuvwxyz", Jr = "0123456789",
|
|
2329
|
+
}, Fa = (e, t) => (e = +e, Number.isFinite(e) ? e : t), wn = "abcdefghijklmnopqrstuvwxyz", Jr = "0123456789", So = {
|
|
2330
2330
|
DIGIT: Jr,
|
|
2331
2331
|
ALPHA: wn,
|
|
2332
2332
|
ALPHA_DIGIT: wn + wn.toUpperCase() + Jr
|
|
2333
|
-
}, _a = (e = 16, t =
|
|
2333
|
+
}, _a = (e = 16, t = So.ALPHA_DIGIT) => {
|
|
2334
2334
|
let n = "";
|
|
2335
2335
|
const { length: r } = t;
|
|
2336
2336
|
for (; e--; )
|
|
@@ -2348,9 +2348,9 @@ const eA = (e) => {
|
|
|
2348
2348
|
if (!("toJSON" in r)) {
|
|
2349
2349
|
t[o] = r;
|
|
2350
2350
|
const i = pt(r) ? [] : {};
|
|
2351
|
-
return
|
|
2352
|
-
const
|
|
2353
|
-
!wt(
|
|
2351
|
+
return Lt(r, (a, A) => {
|
|
2352
|
+
const d = n(a, o + 1);
|
|
2353
|
+
!wt(d) && (i[A] = d);
|
|
2354
2354
|
}), t[o] = void 0, i;
|
|
2355
2355
|
}
|
|
2356
2356
|
}
|
|
@@ -2371,14 +2371,14 @@ const eA = (e) => {
|
|
|
2371
2371
|
isUndefined: wt,
|
|
2372
2372
|
isDate: Wa,
|
|
2373
2373
|
isFile: Ma,
|
|
2374
|
-
isBlob:
|
|
2374
|
+
isBlob: La,
|
|
2375
2375
|
isRegExp: Pa,
|
|
2376
2376
|
isFunction: Oe,
|
|
2377
2377
|
isStream: Oa,
|
|
2378
2378
|
isURLSearchParams: ka,
|
|
2379
2379
|
isTypedArray: Ga,
|
|
2380
|
-
isFileList:
|
|
2381
|
-
forEach:
|
|
2380
|
+
isFileList: Sa,
|
|
2381
|
+
forEach: Lt,
|
|
2382
2382
|
merge: jn,
|
|
2383
2383
|
extend: Ya,
|
|
2384
2384
|
trim: za,
|
|
@@ -2395,7 +2395,7 @@ const eA = (e) => {
|
|
|
2395
2395
|
hasOwnProperty: jr,
|
|
2396
2396
|
hasOwnProp: jr,
|
|
2397
2397
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
2398
|
-
reduceDescriptors:
|
|
2398
|
+
reduceDescriptors: Lo,
|
|
2399
2399
|
freezeMethods: Va,
|
|
2400
2400
|
toObjectSet: Ba,
|
|
2401
2401
|
toCamelCase: Qa,
|
|
@@ -2404,7 +2404,7 @@ const eA = (e) => {
|
|
|
2404
2404
|
findKey: Ko,
|
|
2405
2405
|
global: Wo,
|
|
2406
2406
|
isContextDefined: Mo,
|
|
2407
|
-
ALPHABET:
|
|
2407
|
+
ALPHABET: So,
|
|
2408
2408
|
generateString: _a,
|
|
2409
2409
|
isSpecCompliantForm: $a,
|
|
2410
2410
|
toJSONObject: eA,
|
|
@@ -2457,8 +2457,8 @@ Object.defineProperties(te, Eo);
|
|
|
2457
2457
|
Object.defineProperty(Oo, "isAxiosError", { value: !0 });
|
|
2458
2458
|
te.from = (e, t, n, r, o, i) => {
|
|
2459
2459
|
const a = Object.create(Oo);
|
|
2460
|
-
return b.toFlatObject(e, a, function(
|
|
2461
|
-
return
|
|
2460
|
+
return b.toFlatObject(e, a, function(d) {
|
|
2461
|
+
return d !== Error.prototype;
|
|
2462
2462
|
}, (A) => A !== "isAxiosError"), te.call(a, e.message, t, n, r, o), a.cause = e, a.name = e.name, i && Object.assign(a, i), a;
|
|
2463
2463
|
};
|
|
2464
2464
|
const rA = null;
|
|
@@ -2489,7 +2489,7 @@ function sn(e, t, n) {
|
|
|
2489
2489
|
}, !1, function(h, v) {
|
|
2490
2490
|
return !b.isUndefined(v[h]);
|
|
2491
2491
|
});
|
|
2492
|
-
const r = n.metaTokens, o = n.visitor || s, i = n.dots, a = n.indexes,
|
|
2492
|
+
const r = n.metaTokens, o = n.visitor || s, i = n.dots, a = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && b.isSpecCompliantForm(t);
|
|
2493
2493
|
if (!b.isFunction(o))
|
|
2494
2494
|
throw new TypeError("visitor must be a function");
|
|
2495
2495
|
function c(p) {
|
|
@@ -2497,9 +2497,9 @@ function sn(e, t, n) {
|
|
|
2497
2497
|
return "";
|
|
2498
2498
|
if (b.isDate(p))
|
|
2499
2499
|
return p.toISOString();
|
|
2500
|
-
if (!
|
|
2500
|
+
if (!d && b.isBlob(p))
|
|
2501
2501
|
throw new te("Blob is not supported. Use a Buffer instead.");
|
|
2502
|
-
return b.isArrayBuffer(p) || b.isTypedArray(p) ?
|
|
2502
|
+
return b.isArrayBuffer(p) || b.isTypedArray(p) ? d && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
2503
2503
|
}
|
|
2504
2504
|
function s(p, h, v) {
|
|
2505
2505
|
let x = p;
|
|
@@ -2517,16 +2517,16 @@ function sn(e, t, n) {
|
|
|
2517
2517
|
}
|
|
2518
2518
|
return Jn(p) ? !0 : (t.append(Nr(v, h, i), c(p)), !1);
|
|
2519
2519
|
}
|
|
2520
|
-
const
|
|
2520
|
+
const m = [], y = Object.assign(iA, {
|
|
2521
2521
|
defaultVisitor: s,
|
|
2522
2522
|
convertValue: c,
|
|
2523
2523
|
isVisitable: Jn
|
|
2524
2524
|
});
|
|
2525
2525
|
function g(p, h) {
|
|
2526
2526
|
if (!b.isUndefined(p)) {
|
|
2527
|
-
if (
|
|
2527
|
+
if (m.indexOf(p) !== -1)
|
|
2528
2528
|
throw Error("Circular reference detected in " + h.join("."));
|
|
2529
|
-
|
|
2529
|
+
m.push(p), b.forEach(p, function(x, E) {
|
|
2530
2530
|
(!(b.isUndefined(x) || x === null) && o.call(
|
|
2531
2531
|
t,
|
|
2532
2532
|
x,
|
|
@@ -2534,7 +2534,7 @@ function sn(e, t, n) {
|
|
|
2534
2534
|
h,
|
|
2535
2535
|
y
|
|
2536
2536
|
)) === !0 && g(x, h ? h.concat(E) : [E]);
|
|
2537
|
-
}),
|
|
2537
|
+
}), m.pop();
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
2540
|
if (!b.isObject(e))
|
|
@@ -2645,7 +2645,7 @@ const Rr = AA, jo = {
|
|
|
2645
2645
|
}, sA = typeof URLSearchParams < "u" ? URLSearchParams : er, lA = typeof FormData < "u" ? FormData : null, uA = typeof Blob < "u" ? Blob : null, cA = (() => {
|
|
2646
2646
|
let e;
|
|
2647
2647
|
return typeof navigator < "u" && ((e = navigator.product) === "ReactNative" || e === "NativeScript" || e === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
|
2648
|
-
})(),
|
|
2648
|
+
})(), dA = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
2649
2649
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), De = {
|
|
2650
2650
|
isBrowser: !0,
|
|
2651
2651
|
classes: {
|
|
@@ -2654,10 +2654,10 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
|
|
|
2654
2654
|
Blob: uA
|
|
2655
2655
|
},
|
|
2656
2656
|
isStandardBrowserEnv: cA,
|
|
2657
|
-
isStandardBrowserWebWorkerEnv:
|
|
2657
|
+
isStandardBrowserWebWorkerEnv: dA,
|
|
2658
2658
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
2659
2659
|
};
|
|
2660
|
-
function
|
|
2660
|
+
function mA(e, t) {
|
|
2661
2661
|
return sn(e, new De.classes.URLSearchParams(), Object.assign({
|
|
2662
2662
|
visitor: function(n, r, o, i) {
|
|
2663
2663
|
return De.isNode && b.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
@@ -2679,8 +2679,8 @@ function fA(e) {
|
|
|
2679
2679
|
function Jo(e) {
|
|
2680
2680
|
function t(n, r, o, i) {
|
|
2681
2681
|
let a = n[i++];
|
|
2682
|
-
const A = Number.isFinite(+a),
|
|
2683
|
-
return a = !a && b.isArray(o) ? o.length : a,
|
|
2682
|
+
const A = Number.isFinite(+a), d = i >= n.length;
|
|
2683
|
+
return a = !a && b.isArray(o) ? o.length : a, d ? (b.hasOwnProp(o, a) ? o[a] = [o[a], r] : o[a] = r, !A) : ((!o[a] || !b.isObject(o[a])) && (o[a] = []), t(n, r, o[a], i) && b.isArray(o[a]) && (o[a] = fA(o[a])), !A);
|
|
2684
2684
|
}
|
|
2685
2685
|
if (b.isFormData(e) && b.isFunction(e.entries)) {
|
|
2686
2686
|
const n = {};
|
|
@@ -2716,12 +2716,12 @@ const tr = {
|
|
|
2716
2716
|
let A;
|
|
2717
2717
|
if (i) {
|
|
2718
2718
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
2719
|
-
return
|
|
2719
|
+
return mA(t, this.formSerializer).toString();
|
|
2720
2720
|
if ((A = b.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
2721
|
-
const
|
|
2721
|
+
const d = this.env && this.env.FormData;
|
|
2722
2722
|
return sn(
|
|
2723
2723
|
A ? { "files[]": t } : t,
|
|
2724
|
-
|
|
2724
|
+
d && new d(),
|
|
2725
2725
|
this.formSerializer
|
|
2726
2726
|
);
|
|
2727
2727
|
}
|
|
@@ -2837,14 +2837,14 @@ class ln {
|
|
|
2837
2837
|
}
|
|
2838
2838
|
set(t, n, r) {
|
|
2839
2839
|
const o = this;
|
|
2840
|
-
function i(A,
|
|
2841
|
-
const s = bt(
|
|
2840
|
+
function i(A, d, c) {
|
|
2841
|
+
const s = bt(d);
|
|
2842
2842
|
if (!s)
|
|
2843
2843
|
throw new Error("header name must be a non-empty string");
|
|
2844
|
-
const
|
|
2845
|
-
(!
|
|
2844
|
+
const m = b.findKey(o, s);
|
|
2845
|
+
(!m || o[m] === void 0 || c === !0 || c === void 0 && o[m] !== !1) && (o[m || d] = Ht(A));
|
|
2846
2846
|
}
|
|
2847
|
-
const a = (A,
|
|
2847
|
+
const a = (A, d) => b.forEach(A, (c, s) => i(c, s, d));
|
|
2848
2848
|
return b.isPlainObject(t) || t instanceof this.constructor ? a(t, n) : b.isString(t) && (t = t.trim()) && !vA(t) ? a(qA(t), n) : t != null && i(n, t, r), this;
|
|
2849
2849
|
}
|
|
2850
2850
|
get(t, n) {
|
|
@@ -2962,10 +2962,10 @@ function Kn(e, t) {
|
|
|
2962
2962
|
function No(e) {
|
|
2963
2963
|
return !!(e && e.__CANCEL__);
|
|
2964
2964
|
}
|
|
2965
|
-
function
|
|
2965
|
+
function St(e, t, n) {
|
|
2966
2966
|
te.call(this, e ?? "canceled", te.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
2967
2967
|
}
|
|
2968
|
-
b.inherits(
|
|
2968
|
+
b.inherits(St, te, {
|
|
2969
2969
|
__CANCEL__: !0
|
|
2970
2970
|
});
|
|
2971
2971
|
function ZA(e, t, n) {
|
|
@@ -2983,8 +2983,8 @@ const IA = De.isStandardBrowserEnv ? (
|
|
|
2983
2983
|
function() {
|
|
2984
2984
|
return {
|
|
2985
2985
|
write: function(n, r, o, i, a, A) {
|
|
2986
|
-
const
|
|
2987
|
-
|
|
2986
|
+
const d = [];
|
|
2987
|
+
d.push(n + "=" + encodeURIComponent(r)), b.isNumber(o) && d.push("expires=" + new Date(o).toGMTString()), b.isString(i) && d.push("path=" + i), b.isString(a) && d.push("domain=" + a), A === !0 && d.push("secure"), document.cookie = d.join("; ");
|
|
2988
2988
|
},
|
|
2989
2989
|
read: function(n) {
|
|
2990
2990
|
const r = document.cookie.match(new RegExp("(^|;\\s*)(" + n + ")=([^;]*)"));
|
|
@@ -3058,12 +3058,12 @@ function MA(e, t) {
|
|
|
3058
3058
|
e = e || 10;
|
|
3059
3059
|
const n = new Array(e), r = new Array(e);
|
|
3060
3060
|
let o = 0, i = 0, a;
|
|
3061
|
-
return t = t !== void 0 ? t : 1e3, function(
|
|
3061
|
+
return t = t !== void 0 ? t : 1e3, function(d) {
|
|
3062
3062
|
const c = Date.now(), s = r[i];
|
|
3063
|
-
a || (a = c), n[o] =
|
|
3064
|
-
let
|
|
3065
|
-
for (;
|
|
3066
|
-
y += n[
|
|
3063
|
+
a || (a = c), n[o] = d, r[o] = c;
|
|
3064
|
+
let m = i, y = 0;
|
|
3065
|
+
for (; m !== o; )
|
|
3066
|
+
y += n[m++], m = m % e;
|
|
3067
3067
|
if (o = (o + 1) % e, o === i && (i = (i + 1) % e), c - a < t)
|
|
3068
3068
|
return;
|
|
3069
3069
|
const g = s && c - s;
|
|
@@ -3074,26 +3074,26 @@ function Tr(e, t) {
|
|
|
3074
3074
|
let n = 0;
|
|
3075
3075
|
const r = MA(50, 250);
|
|
3076
3076
|
return (o) => {
|
|
3077
|
-
const i = o.loaded, a = o.lengthComputable ? o.total : void 0, A = i - n,
|
|
3077
|
+
const i = o.loaded, a = o.lengthComputable ? o.total : void 0, A = i - n, d = r(A), c = i <= a;
|
|
3078
3078
|
n = i;
|
|
3079
3079
|
const s = {
|
|
3080
3080
|
loaded: i,
|
|
3081
3081
|
total: a,
|
|
3082
3082
|
progress: a ? i / a : void 0,
|
|
3083
3083
|
bytes: A,
|
|
3084
|
-
rate:
|
|
3085
|
-
estimated:
|
|
3084
|
+
rate: d || void 0,
|
|
3085
|
+
estimated: d && a && c ? (a - i) / d : void 0,
|
|
3086
3086
|
event: o
|
|
3087
3087
|
};
|
|
3088
3088
|
s[t ? "download" : "upload"] = !0, e(s);
|
|
3089
3089
|
};
|
|
3090
3090
|
}
|
|
3091
|
-
const
|
|
3091
|
+
const LA = typeof XMLHttpRequest < "u", SA = LA && function(e) {
|
|
3092
3092
|
return new Promise(function(n, r) {
|
|
3093
3093
|
let o = e.data;
|
|
3094
3094
|
const i = He.from(e.headers).normalize(), a = e.responseType;
|
|
3095
3095
|
let A;
|
|
3096
|
-
function
|
|
3096
|
+
function d() {
|
|
3097
3097
|
e.cancelToken && e.cancelToken.unsubscribe(A), e.signal && e.signal.removeEventListener("abort", A);
|
|
3098
3098
|
}
|
|
3099
3099
|
let c;
|
|
@@ -3103,8 +3103,8 @@ const SA = typeof XMLHttpRequest < "u", LA = SA && function(e) {
|
|
|
3103
3103
|
const p = e.auth.username || "", h = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
3104
3104
|
i.set("Authorization", "Basic " + btoa(p + ":" + h));
|
|
3105
3105
|
}
|
|
3106
|
-
const
|
|
3107
|
-
s.open(e.method.toUpperCase(), Yo(
|
|
3106
|
+
const m = Do(e.baseURL, e.url);
|
|
3107
|
+
s.open(e.method.toUpperCase(), Yo(m, e.params, e.paramsSerializer), !0), s.timeout = e.timeout;
|
|
3108
3108
|
function y() {
|
|
3109
3109
|
if (!s)
|
|
3110
3110
|
return;
|
|
@@ -3119,9 +3119,9 @@ const SA = typeof XMLHttpRequest < "u", LA = SA && function(e) {
|
|
|
3119
3119
|
request: s
|
|
3120
3120
|
};
|
|
3121
3121
|
ZA(function(E) {
|
|
3122
|
-
n(E),
|
|
3122
|
+
n(E), d();
|
|
3123
3123
|
}, function(E) {
|
|
3124
|
-
r(E),
|
|
3124
|
+
r(E), d();
|
|
3125
3125
|
}, v), s = null;
|
|
3126
3126
|
}
|
|
3127
3127
|
if ("onloadend" in s ? s.onloadend = y : s.onreadystatechange = function() {
|
|
@@ -3140,15 +3140,15 @@ const SA = typeof XMLHttpRequest < "u", LA = SA && function(e) {
|
|
|
3140
3140
|
s
|
|
3141
3141
|
)), s = null;
|
|
3142
3142
|
}, De.isStandardBrowserEnv) {
|
|
3143
|
-
const p = (e.withCredentials || KA(
|
|
3143
|
+
const p = (e.withCredentials || KA(m)) && e.xsrfCookieName && IA.read(e.xsrfCookieName);
|
|
3144
3144
|
p && i.set(e.xsrfHeaderName, p);
|
|
3145
3145
|
}
|
|
3146
3146
|
o === void 0 && i.setContentType(null), "setRequestHeader" in s && b.forEach(i.toJSON(), function(h, v) {
|
|
3147
3147
|
s.setRequestHeader(v, h);
|
|
3148
3148
|
}), b.isUndefined(e.withCredentials) || (s.withCredentials = !!e.withCredentials), a && a !== "json" && (s.responseType = e.responseType), typeof e.onDownloadProgress == "function" && s.addEventListener("progress", Tr(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && s.upload && s.upload.addEventListener("progress", Tr(e.onUploadProgress)), (e.cancelToken || e.signal) && (A = (p) => {
|
|
3149
|
-
s && (r(!p || p.type ? new
|
|
3149
|
+
s && (r(!p || p.type ? new St(null, e, s) : p), s.abort(), s = null);
|
|
3150
3150
|
}, e.cancelToken && e.cancelToken.subscribe(A), e.signal && (e.signal.aborted ? A() : e.signal.addEventListener("abort", A)));
|
|
3151
|
-
const g = WA(
|
|
3151
|
+
const g = WA(m);
|
|
3152
3152
|
if (g && De.protocols.indexOf(g) === -1) {
|
|
3153
3153
|
r(new te("Unsupported protocol " + g + ":", te.ERR_BAD_REQUEST, e));
|
|
3154
3154
|
return;
|
|
@@ -3157,7 +3157,7 @@ const SA = typeof XMLHttpRequest < "u", LA = SA && function(e) {
|
|
|
3157
3157
|
});
|
|
3158
3158
|
}, Nn = {
|
|
3159
3159
|
http: rA,
|
|
3160
|
-
xhr:
|
|
3160
|
+
xhr: SA
|
|
3161
3161
|
};
|
|
3162
3162
|
b.forEach(Nn, (e, t) => {
|
|
3163
3163
|
if (e) {
|
|
@@ -3185,7 +3185,7 @@ const Hr = (e) => `- ${e}`, OA = (e) => b.isFunction(e) || e === null || e === !
|
|
|
3185
3185
|
}
|
|
3186
3186
|
if (!r) {
|
|
3187
3187
|
const i = Object.entries(o).map(
|
|
3188
|
-
([A,
|
|
3188
|
+
([A, d]) => `adapter ${A} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
3189
3189
|
);
|
|
3190
3190
|
let a = t ? i.length > 1 ? `since :
|
|
3191
3191
|
` + i.map(Hr).join(`
|
|
@@ -3201,7 +3201,7 @@ const Hr = (e) => `- ${e}`, OA = (e) => b.isFunction(e) || e === null || e === !
|
|
|
3201
3201
|
};
|
|
3202
3202
|
function Wn(e) {
|
|
3203
3203
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
3204
|
-
throw new
|
|
3204
|
+
throw new St(null, e);
|
|
3205
3205
|
}
|
|
3206
3206
|
function Xr(e) {
|
|
3207
3207
|
return Wn(e), e.headers = He.from(e.headers), e.data = Kn.call(
|
|
@@ -3222,18 +3222,18 @@ function Xr(e) {
|
|
|
3222
3222
|
});
|
|
3223
3223
|
}
|
|
3224
3224
|
const Qr = (e) => e instanceof He ? e.toJSON() : e;
|
|
3225
|
-
function
|
|
3225
|
+
function mt(e, t) {
|
|
3226
3226
|
t = t || {};
|
|
3227
3227
|
const n = {};
|
|
3228
|
-
function r(c, s,
|
|
3229
|
-
return b.isPlainObject(c) && b.isPlainObject(s) ? b.merge.call({ caseless:
|
|
3228
|
+
function r(c, s, m) {
|
|
3229
|
+
return b.isPlainObject(c) && b.isPlainObject(s) ? b.merge.call({ caseless: m }, c, s) : b.isPlainObject(s) ? b.merge({}, s) : b.isArray(s) ? s.slice() : s;
|
|
3230
3230
|
}
|
|
3231
|
-
function o(c, s,
|
|
3231
|
+
function o(c, s, m) {
|
|
3232
3232
|
if (b.isUndefined(s)) {
|
|
3233
3233
|
if (!b.isUndefined(c))
|
|
3234
|
-
return r(void 0, c,
|
|
3234
|
+
return r(void 0, c, m);
|
|
3235
3235
|
} else
|
|
3236
|
-
return r(c, s,
|
|
3236
|
+
return r(c, s, m);
|
|
3237
3237
|
}
|
|
3238
3238
|
function i(c, s) {
|
|
3239
3239
|
if (!b.isUndefined(s))
|
|
@@ -3246,13 +3246,13 @@ function dt(e, t) {
|
|
|
3246
3246
|
} else
|
|
3247
3247
|
return r(void 0, s);
|
|
3248
3248
|
}
|
|
3249
|
-
function A(c, s,
|
|
3250
|
-
if (
|
|
3249
|
+
function A(c, s, m) {
|
|
3250
|
+
if (m in t)
|
|
3251
3251
|
return r(c, s);
|
|
3252
|
-
if (
|
|
3252
|
+
if (m in e)
|
|
3253
3253
|
return r(void 0, c);
|
|
3254
3254
|
}
|
|
3255
|
-
const
|
|
3255
|
+
const d = {
|
|
3256
3256
|
url: i,
|
|
3257
3257
|
method: i,
|
|
3258
3258
|
data: i,
|
|
@@ -3283,8 +3283,8 @@ function dt(e, t) {
|
|
|
3283
3283
|
headers: (c, s) => o(Qr(c), Qr(s), !0)
|
|
3284
3284
|
};
|
|
3285
3285
|
return b.forEach(Object.keys(Object.assign({}, e, t)), function(s) {
|
|
3286
|
-
const
|
|
3287
|
-
b.isUndefined(y) &&
|
|
3286
|
+
const m = d[s] || o, y = m(e[s], t[s], s);
|
|
3287
|
+
b.isUndefined(y) && m !== A || (n[s] = y);
|
|
3288
3288
|
}), n;
|
|
3289
3289
|
}
|
|
3290
3290
|
const Go = "1.5.1", rr = {};
|
|
@@ -3320,9 +3320,9 @@ function EA(e, t, n) {
|
|
|
3320
3320
|
for (; o-- > 0; ) {
|
|
3321
3321
|
const i = r[o], a = t[i];
|
|
3322
3322
|
if (a) {
|
|
3323
|
-
const A = e[i],
|
|
3324
|
-
if (
|
|
3325
|
-
throw new te("option " + i + " must be " +
|
|
3323
|
+
const A = e[i], d = A === void 0 || a(A, i, e);
|
|
3324
|
+
if (d !== !0)
|
|
3325
|
+
throw new te("option " + i + " must be " + d, te.ERR_BAD_OPTION_VALUE);
|
|
3326
3326
|
continue;
|
|
3327
3327
|
}
|
|
3328
3328
|
if (n !== !0)
|
|
@@ -3349,7 +3349,7 @@ class Vt {
|
|
|
3349
3349
|
* @returns {Promise} The Promise to be fulfilled
|
|
3350
3350
|
*/
|
|
3351
3351
|
request(t, n) {
|
|
3352
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n =
|
|
3352
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = mt(this.defaults, n);
|
|
3353
3353
|
const { transitional: r, paramsSerializer: o, headers: i } = n;
|
|
3354
3354
|
r !== void 0 && Dn.assertOptions(r, {
|
|
3355
3355
|
silentJSONParsing: Pe.transitional(Pe.boolean),
|
|
@@ -3372,25 +3372,25 @@ class Vt {
|
|
|
3372
3372
|
}
|
|
3373
3373
|
), n.headers = He.concat(a, i);
|
|
3374
3374
|
const A = [];
|
|
3375
|
-
let
|
|
3375
|
+
let d = !0;
|
|
3376
3376
|
this.interceptors.request.forEach(function(h) {
|
|
3377
|
-
typeof h.runWhen == "function" && h.runWhen(n) === !1 || (
|
|
3377
|
+
typeof h.runWhen == "function" && h.runWhen(n) === !1 || (d = d && h.synchronous, A.unshift(h.fulfilled, h.rejected));
|
|
3378
3378
|
});
|
|
3379
3379
|
const c = [];
|
|
3380
3380
|
this.interceptors.response.forEach(function(h) {
|
|
3381
3381
|
c.push(h.fulfilled, h.rejected);
|
|
3382
3382
|
});
|
|
3383
|
-
let s,
|
|
3384
|
-
if (!
|
|
3383
|
+
let s, m = 0, y;
|
|
3384
|
+
if (!d) {
|
|
3385
3385
|
const p = [Xr.bind(this), void 0];
|
|
3386
|
-
for (p.unshift.apply(p, A), p.push.apply(p, c), y = p.length, s = Promise.resolve(n);
|
|
3387
|
-
s = s.then(p[
|
|
3386
|
+
for (p.unshift.apply(p, A), p.push.apply(p, c), y = p.length, s = Promise.resolve(n); m < y; )
|
|
3387
|
+
s = s.then(p[m++], p[m++]);
|
|
3388
3388
|
return s;
|
|
3389
3389
|
}
|
|
3390
3390
|
y = A.length;
|
|
3391
3391
|
let g = n;
|
|
3392
|
-
for (
|
|
3393
|
-
const p = A[
|
|
3392
|
+
for (m = 0; m < y; ) {
|
|
3393
|
+
const p = A[m++], h = A[m++];
|
|
3394
3394
|
try {
|
|
3395
3395
|
g = p(g);
|
|
3396
3396
|
} catch (v) {
|
|
@@ -3403,19 +3403,19 @@ class Vt {
|
|
|
3403
3403
|
} catch (p) {
|
|
3404
3404
|
return Promise.reject(p);
|
|
3405
3405
|
}
|
|
3406
|
-
for (
|
|
3407
|
-
s = s.then(c[
|
|
3406
|
+
for (m = 0, y = c.length; m < y; )
|
|
3407
|
+
s = s.then(c[m++], c[m++]);
|
|
3408
3408
|
return s;
|
|
3409
3409
|
}
|
|
3410
3410
|
getUri(t) {
|
|
3411
|
-
t =
|
|
3411
|
+
t = mt(this.defaults, t);
|
|
3412
3412
|
const n = Do(t.baseURL, t.url);
|
|
3413
3413
|
return Yo(n, t.params, t.paramsSerializer);
|
|
3414
3414
|
}
|
|
3415
3415
|
}
|
|
3416
3416
|
b.forEach(["delete", "get", "head", "options"], function(t) {
|
|
3417
3417
|
Vt.prototype[t] = function(n, r) {
|
|
3418
|
-
return this.request(
|
|
3418
|
+
return this.request(mt(r || {}, {
|
|
3419
3419
|
method: t,
|
|
3420
3420
|
url: n,
|
|
3421
3421
|
data: (r || {}).data
|
|
@@ -3425,7 +3425,7 @@ b.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
3425
3425
|
b.forEach(["post", "put", "patch"], function(t) {
|
|
3426
3426
|
function n(r) {
|
|
3427
3427
|
return function(i, a, A) {
|
|
3428
|
-
return this.request(
|
|
3428
|
+
return this.request(mt(A || {}, {
|
|
3429
3429
|
method: t,
|
|
3430
3430
|
headers: r ? {
|
|
3431
3431
|
"Content-Type": "multipart/form-data"
|
|
@@ -3463,7 +3463,7 @@ class or {
|
|
|
3463
3463
|
r.unsubscribe(i);
|
|
3464
3464
|
}, a;
|
|
3465
3465
|
}, t(function(i, a, A) {
|
|
3466
|
-
r.reason || (r.reason = new
|
|
3466
|
+
r.reason || (r.reason = new St(i, a, A), n(r.reason));
|
|
3467
3467
|
});
|
|
3468
3468
|
}
|
|
3469
3469
|
/**
|
|
@@ -3587,12 +3587,12 @@ const jA = Rn;
|
|
|
3587
3587
|
function To(e) {
|
|
3588
3588
|
const t = new Xt(e), n = Io(Xt.prototype.request, t);
|
|
3589
3589
|
return b.extend(n, Xt.prototype, t, { allOwnKeys: !0 }), b.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
3590
|
-
return To(
|
|
3590
|
+
return To(mt(e, o));
|
|
3591
3591
|
}, n;
|
|
3592
3592
|
}
|
|
3593
3593
|
const fe = To(nr);
|
|
3594
3594
|
fe.Axios = Xt;
|
|
3595
|
-
fe.CanceledError =
|
|
3595
|
+
fe.CanceledError = St;
|
|
3596
3596
|
fe.CancelToken = kA;
|
|
3597
3597
|
fe.isCancel = No;
|
|
3598
3598
|
fe.VERSION = Go;
|
|
@@ -3604,7 +3604,7 @@ fe.all = function(t) {
|
|
|
3604
3604
|
};
|
|
3605
3605
|
fe.spread = zA;
|
|
3606
3606
|
fe.isAxiosError = YA;
|
|
3607
|
-
fe.mergeConfig =
|
|
3607
|
+
fe.mergeConfig = mt;
|
|
3608
3608
|
fe.AxiosHeaders = He;
|
|
3609
3609
|
fe.formToJSON = (e) => Jo(b.isHTMLForm(e) ? new FormData(e) : e);
|
|
3610
3610
|
fe.getAdapter = Ro.getAdapter;
|
|
@@ -3704,7 +3704,7 @@ async function HA(e, t, n) {
|
|
|
3704
3704
|
})).data;
|
|
3705
3705
|
}
|
|
3706
3706
|
async function XA(e, t, n, r, o) {
|
|
3707
|
-
return
|
|
3707
|
+
return (await ge.post(e + "/createPlayableVersionLink", {
|
|
3708
3708
|
_id: t,
|
|
3709
3709
|
network: n,
|
|
3710
3710
|
isPfTest: r,
|
|
@@ -3767,7 +3767,7 @@ function Ve() {
|
|
|
3767
3767
|
(e = arguments[n++]) && (t = Fo(e)) && (r && (r += " "), r += t);
|
|
3768
3768
|
return r;
|
|
3769
3769
|
}
|
|
3770
|
-
const Zt = (e) => typeof e == "number" && !isNaN(e), at = (e) => typeof e == "string", Ie = (e) => typeof e == "function", Qt = (e) => at(e) || Ie(e) ? e : null, Mn = (e) =>
|
|
3770
|
+
const Zt = (e) => typeof e == "number" && !isNaN(e), at = (e) => typeof e == "string", Ie = (e) => typeof e == "function", Qt = (e) => at(e) || Ie(e) ? e : null, Mn = (e) => dt(e) || at(e) || Ie(e) || Zt(e);
|
|
3771
3771
|
function BA(e, t, n) {
|
|
3772
3772
|
n === void 0 && (n = 300);
|
|
3773
3773
|
const { scrollHeight: r, style: o } = e;
|
|
@@ -3780,15 +3780,15 @@ function BA(e, t, n) {
|
|
|
3780
3780
|
function cn(e) {
|
|
3781
3781
|
let { enter: t, exit: n, appendPosition: r = !1, collapse: o = !0, collapseDuration: i = 300 } = e;
|
|
3782
3782
|
return function(a) {
|
|
3783
|
-
let { children: A, position:
|
|
3784
|
-
const g = r ? `${t}--${
|
|
3783
|
+
let { children: A, position: d, preventExitTransition: c, done: s, nodeRef: m, isIn: y } = a;
|
|
3784
|
+
const g = r ? `${t}--${d}` : t, p = r ? `${n}--${d}` : n, h = nt(0);
|
|
3785
3785
|
return Ei(() => {
|
|
3786
|
-
const v =
|
|
3787
|
-
J.target ===
|
|
3786
|
+
const v = m.current, x = g.split(" "), E = (J) => {
|
|
3787
|
+
J.target === m.current && (v.dispatchEvent(new Event("d")), v.removeEventListener("animationend", E), v.removeEventListener("animationcancel", E), h.current === 0 && J.type !== "animationcancel" && v.classList.remove(...x));
|
|
3788
3788
|
};
|
|
3789
3789
|
v.classList.add(...x), v.addEventListener("animationend", E), v.addEventListener("animationcancel", E);
|
|
3790
3790
|
}, []), Ce(() => {
|
|
3791
|
-
const v =
|
|
3791
|
+
const v = m.current, x = () => {
|
|
3792
3792
|
v.removeEventListener("animationend", x), o ? BA(v, s, i) : s();
|
|
3793
3793
|
};
|
|
3794
3794
|
y || (c ? x() : (h.current = 1, v.className += ` ${p}`, v.addEventListener("animationend", x)));
|
|
@@ -3798,7 +3798,7 @@ function cn(e) {
|
|
|
3798
3798
|
function Br(e, t) {
|
|
3799
3799
|
return e != null ? { content: e.content, containerId: e.props.containerId, id: e.props.toastId, theme: e.props.theme, type: e.props.type, data: e.props.data || {}, isLoading: e.props.isLoading, icon: e.props.icon, status: t } : {};
|
|
3800
3800
|
}
|
|
3801
|
-
const
|
|
3801
|
+
const Se = { list: /* @__PURE__ */ new Map(), emitQueue: /* @__PURE__ */ new Map(), on(e, t) {
|
|
3802
3802
|
return this.list.has(e) || this.list.set(e, []), this.list.get(e).push(t), this;
|
|
3803
3803
|
}, off(e, t) {
|
|
3804
3804
|
if (t) {
|
|
@@ -3819,7 +3819,7 @@ const Le = { list: /* @__PURE__ */ new Map(), emitQueue: /* @__PURE__ */ new Map
|
|
|
3819
3819
|
} }, Nt = (e) => {
|
|
3820
3820
|
let { theme: t, type: n, ...r } = e;
|
|
3821
3821
|
return ae.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: t === "colored" ? "currentColor" : `var(--toastify-icon-color-${n})`, ...r });
|
|
3822
|
-
},
|
|
3822
|
+
}, Ln = { info: function(e) {
|
|
3823
3823
|
return ae.createElement(Nt, { ...e }, ae.createElement("path", { d: "M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z" }));
|
|
3824
3824
|
}, warning: function(e) {
|
|
3825
3825
|
return ae.createElement(Nt, { ...e }, ae.createElement("path", { d: "M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z" }));
|
|
@@ -3832,7 +3832,7 @@ const Le = { list: /* @__PURE__ */ new Map(), emitQueue: /* @__PURE__ */ new Map
|
|
|
3832
3832
|
} };
|
|
3833
3833
|
function UA(e) {
|
|
3834
3834
|
const [, t] = Oi((g) => g + 1, 0), [n, r] = P([]), o = nt(null), i = nt(/* @__PURE__ */ new Map()).current, a = (g) => n.indexOf(g) !== -1, A = nt({ toastKey: 1, displayedToast: 0, count: 0, queue: [], props: e, containerId: null, isToastActive: a, getToast: (g) => i.get(g) }).current;
|
|
3835
|
-
function
|
|
3835
|
+
function d(g) {
|
|
3836
3836
|
let { containerId: p } = g;
|
|
3837
3837
|
const { limit: h } = A.props;
|
|
3838
3838
|
!h || p && A.containerId !== p || (A.count -= A.queue.length, A.queue = []);
|
|
@@ -3844,7 +3844,7 @@ function UA(e) {
|
|
|
3844
3844
|
const { toastContent: g, toastProps: p, staleId: h } = A.queue.shift();
|
|
3845
3845
|
y(g, p, h);
|
|
3846
3846
|
}
|
|
3847
|
-
function
|
|
3847
|
+
function m(g, p) {
|
|
3848
3848
|
let { delay: h, staleId: v, ...x } = p;
|
|
3849
3849
|
if (!Mn(g) || function(X) {
|
|
3850
3850
|
return !o.current || A.props.enableMultiContainer && X.containerId !== A.props.containerId || i.has(X.toastId) && X.updateId == null;
|
|
@@ -3857,16 +3857,16 @@ function UA(e) {
|
|
|
3857
3857
|
return W != null;
|
|
3858
3858
|
})), toastId: E, updateId: J, data: O, closeToast: ne, isIn: !1, className: Qt(x.className || C.toastClassName), bodyClassName: Qt(x.bodyClassName || C.bodyClassName), progressClassName: Qt(x.progressClassName || C.progressClassName), autoClose: !x.isLoading && (Ae = x.autoClose, F = C.autoClose, Ae === !1 || Zt(Ae) && Ae > 0 ? Ae : F), deleteToast() {
|
|
3859
3859
|
const X = Br(i.get(E), "removed");
|
|
3860
|
-
i.delete(E),
|
|
3860
|
+
i.delete(E), Se.emit(4, X);
|
|
3861
3861
|
const _ = A.queue.length;
|
|
3862
3862
|
if (A.count = E == null ? A.count - A.displayedToast : A.count - 1, A.count < 0 && (A.count = 0), _ > 0) {
|
|
3863
3863
|
const W = E == null ? A.props.limit : 1;
|
|
3864
3864
|
if (_ === 1 || W === 1)
|
|
3865
3865
|
A.displayedToast++, s();
|
|
3866
3866
|
else {
|
|
3867
|
-
const
|
|
3868
|
-
A.displayedToast =
|
|
3869
|
-
for (let Y = 0; Y <
|
|
3867
|
+
const L = W > _ ? _ : W;
|
|
3868
|
+
A.displayedToast = L;
|
|
3869
|
+
for (let Y = 0; Y < L; Y++)
|
|
3870
3870
|
s();
|
|
3871
3871
|
}
|
|
3872
3872
|
} else
|
|
@@ -3874,12 +3874,12 @@ function UA(e) {
|
|
|
3874
3874
|
} };
|
|
3875
3875
|
var Ae, F;
|
|
3876
3876
|
U.iconOut = function(X) {
|
|
3877
|
-
let { theme: _, type: W, isLoading:
|
|
3878
|
-
const
|
|
3879
|
-
return Y === !1 || (Ie(Y) ? f = Y(
|
|
3877
|
+
let { theme: _, type: W, isLoading: L, icon: Y } = X, f = null;
|
|
3878
|
+
const S = { theme: _, type: W };
|
|
3879
|
+
return Y === !1 || (Ie(Y) ? f = Y(S) : dt(Y) ? f = kn(Y, S) : at(Y) || Zt(Y) ? f = Y : L ? f = Ln.spinner() : ((k) => k in Ln)(W) && (f = Ln[W](S))), f;
|
|
3880
3880
|
}(U), Ie(x.onOpen) && (U.onOpen = x.onOpen), Ie(x.onClose) && (U.onClose = x.onClose), U.closeButton = C.closeButton, x.closeButton === !1 || Mn(x.closeButton) ? U.closeButton = x.closeButton : x.closeButton === !0 && (U.closeButton = !Mn(C.closeButton) || C.closeButton);
|
|
3881
3881
|
let oe = g;
|
|
3882
|
-
|
|
3882
|
+
dt(g) && !at(g.type) ? oe = kn(g, { closeToast: ne, toastProps: U, data: O }) : Ie(g) && (oe = g({ closeToast: ne, toastProps: U, data: O })), C.limit && C.limit > 0 && A.count > C.limit && re ? A.queue.push({ toastContent: oe, toastProps: U, staleId: v }) : Zt(h) ? setTimeout(() => {
|
|
3883
3883
|
y(oe, U, v);
|
|
3884
3884
|
}, h) : y(oe, U, v);
|
|
3885
3885
|
}
|
|
@@ -3887,10 +3887,10 @@ function UA(e) {
|
|
|
3887
3887
|
const { toastId: v } = p;
|
|
3888
3888
|
h && i.delete(h);
|
|
3889
3889
|
const x = { content: g, props: p };
|
|
3890
|
-
i.set(v, x), r((E) => [...E, v].filter((J) => J !== h)),
|
|
3890
|
+
i.set(v, x), r((E) => [...E, v].filter((J) => J !== h)), Se.emit(4, Br(x, x.props.updateId == null ? "added" : "updated"));
|
|
3891
3891
|
}
|
|
3892
|
-
return Ce(() => (A.containerId = e.containerId,
|
|
3893
|
-
i.clear(),
|
|
3892
|
+
return Ce(() => (A.containerId = e.containerId, Se.cancelEmit(3).on(0, m).on(1, (g) => o.current && c(g)).on(5, d).emit(2, A), () => {
|
|
3893
|
+
i.clear(), Se.emit(3, A);
|
|
3894
3894
|
}), []), Ce(() => {
|
|
3895
3895
|
A.props = e, A.isToastActive = a, A.displayedToast = n.length;
|
|
3896
3896
|
}), { getToastToRender: function(g) {
|
|
@@ -3908,7 +3908,7 @@ function Fr(e) {
|
|
|
3908
3908
|
return e.targetTouches && e.targetTouches.length >= 1 ? e.targetTouches[0].clientY : e.clientY;
|
|
3909
3909
|
}
|
|
3910
3910
|
function FA(e) {
|
|
3911
|
-
const [t, n] = P(!1), [r, o] = P(!1), i = nt(null), a = nt({ start: 0, x: 0, y: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, boundingRect: null, didMove: !1 }).current, A = nt(e), { autoClose:
|
|
3911
|
+
const [t, n] = P(!1), [r, o] = P(!1), i = nt(null), a = nt({ start: 0, x: 0, y: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, boundingRect: null, didMove: !1 }).current, A = nt(e), { autoClose: d, pauseOnHover: c, closeToast: s, onClick: m, closeOnClick: y } = e;
|
|
3912
3912
|
function g(O) {
|
|
3913
3913
|
if (e.draggable) {
|
|
3914
3914
|
O.nativeEvent.type === "touchstart" && O.nativeEvent.preventDefault(), a.didMove = !1, document.addEventListener("mousemove", x), document.addEventListener("mouseup", E), document.addEventListener("touchmove", x), document.addEventListener("touchend", E);
|
|
@@ -3943,15 +3943,15 @@ function FA(e) {
|
|
|
3943
3943
|
}
|
|
3944
3944
|
Ce(() => {
|
|
3945
3945
|
A.current = e;
|
|
3946
|
-
}), Ce(() => (i.current && i.current.addEventListener("d", h, { once: !0 }), Ie(e.onOpen) && e.onOpen(
|
|
3946
|
+
}), Ce(() => (i.current && i.current.addEventListener("d", h, { once: !0 }), Ie(e.onOpen) && e.onOpen(dt(e.children) && e.children.props), () => {
|
|
3947
3947
|
const O = A.current;
|
|
3948
|
-
Ie(O.onClose) && O.onClose(
|
|
3948
|
+
Ie(O.onClose) && O.onClose(dt(O.children) && O.children.props);
|
|
3949
3949
|
}), []), Ce(() => (e.pauseOnFocusLoss && (document.hasFocus() || v(), window.addEventListener("focus", h), window.addEventListener("blur", v)), () => {
|
|
3950
3950
|
e.pauseOnFocusLoss && (window.removeEventListener("focus", h), window.removeEventListener("blur", v));
|
|
3951
3951
|
}), [e.pauseOnFocusLoss]);
|
|
3952
3952
|
const J = { onMouseDown: g, onTouchStart: g, onMouseUp: p, onTouchEnd: p };
|
|
3953
|
-
return
|
|
3954
|
-
|
|
3953
|
+
return d && c && (J.onMouseEnter = v, J.onMouseLeave = h), y && (J.onClick = (O) => {
|
|
3954
|
+
m && m(O), a.canCloseOnClick && s();
|
|
3955
3955
|
}), { playToast: h, pauseToast: v, isRunning: t, preventExitTransition: r, toastRef: i, eventHandlers: J };
|
|
3956
3956
|
}
|
|
3957
3957
|
function _o(e) {
|
|
@@ -3961,42 +3961,42 @@ function _o(e) {
|
|
|
3961
3961
|
}, "aria-label": r }, ae.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, ae.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
|
|
3962
3962
|
}
|
|
3963
3963
|
function _A(e) {
|
|
3964
|
-
let { delay: t, isRunning: n, closeToast: r, type: o = "default", hide: i, className: a, style: A, controlledProgress:
|
|
3965
|
-
const g = i ||
|
|
3966
|
-
|
|
3967
|
-
const h = Ve("Toastify__progress-bar",
|
|
3968
|
-
return ae.createElement("div", { role: "progressbar", "aria-hidden": g ? "true" : "false", "aria-label": "notification timer", className: v, style: p, [
|
|
3969
|
-
|
|
3964
|
+
let { delay: t, isRunning: n, closeToast: r, type: o = "default", hide: i, className: a, style: A, controlledProgress: d, progress: c, rtl: s, isIn: m, theme: y } = e;
|
|
3965
|
+
const g = i || d && c === 0, p = { ...A, animationDuration: `${t}ms`, animationPlayState: n ? "running" : "paused", opacity: g ? 0 : 1 };
|
|
3966
|
+
d && (p.transform = `scaleX(${c})`);
|
|
3967
|
+
const h = Ve("Toastify__progress-bar", d ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${y}`, `Toastify__progress-bar--${o}`, { "Toastify__progress-bar--rtl": s }), v = Ie(a) ? a({ rtl: s, type: o, defaultClassName: h }) : Ve(h, a);
|
|
3968
|
+
return ae.createElement("div", { role: "progressbar", "aria-hidden": g ? "true" : "false", "aria-label": "notification timer", className: v, style: p, [d && c >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: d && c < 1 ? null : () => {
|
|
3969
|
+
m && r();
|
|
3970
3970
|
} });
|
|
3971
3971
|
}
|
|
3972
3972
|
const $A = (e) => {
|
|
3973
|
-
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o } = FA(e), { closeButton: i, children: a, autoClose: A, onClick:
|
|
3973
|
+
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o } = FA(e), { closeButton: i, children: a, autoClose: A, onClick: d, type: c, hideProgressBar: s, closeToast: m, transition: y, position: g, className: p, style: h, bodyClassName: v, bodyStyle: x, progressClassName: E, progressStyle: J, updateId: O, role: C, progress: ne, rtl: re, toastId: U, deleteToast: Ae, isIn: F, isLoading: oe, iconOut: X, closeOnClick: _, theme: W } = e, L = Ve("Toastify__toast", `Toastify__toast-theme--${W}`, `Toastify__toast--${c}`, { "Toastify__toast--rtl": re }, { "Toastify__toast--close-on-click": _ }), Y = Ie(p) ? p({ rtl: re, position: g, type: c, defaultClassName: L }) : Ve(L, p), f = !!ne || !A, S = { closeToast: m, type: c, theme: W };
|
|
3974
3974
|
let k = null;
|
|
3975
|
-
return i === !1 || (k = Ie(i) ? i(
|
|
3976
|
-
},
|
|
3975
|
+
return i === !1 || (k = Ie(i) ? i(S) : dt(i) ? kn(i, S) : _o(S)), ae.createElement(y, { isIn: F, done: Ae, position: g, preventExitTransition: n, nodeRef: r }, ae.createElement("div", { id: U, onClick: d, className: Y, ...o, style: h, ref: r }, ae.createElement("div", { ...F && { role: C }, className: Ie(v) ? v({ type: c }) : Ve("Toastify__toast-body", v), style: x }, X != null && ae.createElement("div", { className: Ve("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !oe }) }, X), ae.createElement("div", null, a)), k, ae.createElement(_A, { ...O && !f ? { key: `pb-${O}` } : {}, rtl: re, theme: W, delay: A, isRunning: t, isIn: F, closeToast: m, hide: s, type: c, style: J, className: E, controlledProgress: f, progress: ne || 0 })));
|
|
3976
|
+
}, dn = function(e, t) {
|
|
3977
3977
|
return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
|
|
3978
|
-
}, es = cn(
|
|
3979
|
-
cn(
|
|
3980
|
-
cn(
|
|
3981
|
-
cn(
|
|
3982
|
-
const Tn =
|
|
3983
|
-
const { getToastToRender: n, containerRef: r, isToastActive: o } = UA(e), { className: i, style: a, rtl: A, containerId:
|
|
3978
|
+
}, es = cn(dn("bounce", !0));
|
|
3979
|
+
cn(dn("slide", !0));
|
|
3980
|
+
cn(dn("zoom"));
|
|
3981
|
+
cn(dn("flip"));
|
|
3982
|
+
const Tn = Si((e, t) => {
|
|
3983
|
+
const { getToastToRender: n, containerRef: r, isToastActive: o } = UA(e), { className: i, style: a, rtl: A, containerId: d } = e;
|
|
3984
3984
|
function c(s) {
|
|
3985
|
-
const
|
|
3986
|
-
return Ie(i) ? i({ position: s, rtl: A, defaultClassName:
|
|
3985
|
+
const m = Ve("Toastify__toast-container", `Toastify__toast-container--${s}`, { "Toastify__toast-container--rtl": A });
|
|
3986
|
+
return Ie(i) ? i({ position: s, rtl: A, defaultClassName: m }) : Ve(m, Qt(i));
|
|
3987
3987
|
}
|
|
3988
3988
|
return Ce(() => {
|
|
3989
3989
|
t && (t.current = r.current);
|
|
3990
|
-
}, []), ae.createElement("div", { ref: r, className: "Toastify", id:
|
|
3991
|
-
const y =
|
|
3992
|
-
return ae.createElement("div", { className: c(s), style: y, key: `container-${s}` },
|
|
3990
|
+
}, []), ae.createElement("div", { ref: r, className: "Toastify", id: d }, n((s, m) => {
|
|
3991
|
+
const y = m.length ? { ...a } : { ...a, pointerEvents: "none" };
|
|
3992
|
+
return ae.createElement("div", { className: c(s), style: y, key: `container-${s}` }, m.map((g, p) => {
|
|
3993
3993
|
let { content: h, props: v } = g;
|
|
3994
|
-
return ae.createElement($A, { ...v, isIn: o(v.toastId), style: { ...v.style, "--nth": p + 1, "--len":
|
|
3994
|
+
return ae.createElement($A, { ...v, isIn: o(v.toastId), style: { ...v.style, "--nth": p + 1, "--len": m.length }, key: `toast-${v.key}` }, h);
|
|
3995
3995
|
}));
|
|
3996
3996
|
}));
|
|
3997
3997
|
});
|
|
3998
3998
|
Tn.displayName = "ToastContainer", Tn.defaultProps = { position: "top-right", transition: es, autoClose: 5e3, closeButton: _o, pauseOnHover: !0, pauseOnFocusLoss: !0, closeOnClick: !0, draggable: !0, draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light" };
|
|
3999
|
-
let
|
|
3999
|
+
let Sn, $e = /* @__PURE__ */ new Map(), Ct = [], ts = 1;
|
|
4000
4000
|
function $o() {
|
|
4001
4001
|
return "" + ts++;
|
|
4002
4002
|
}
|
|
@@ -4004,7 +4004,7 @@ function ns(e) {
|
|
|
4004
4004
|
return e && (at(e.toastId) || Zt(e.toastId)) ? e.toastId : $o();
|
|
4005
4005
|
}
|
|
4006
4006
|
function It(e, t) {
|
|
4007
|
-
return $e.size > 0 ?
|
|
4007
|
+
return $e.size > 0 ? Se.emit(0, e, t) : Ct.push({ content: e, options: t }), t.toastId;
|
|
4008
4008
|
}
|
|
4009
4009
|
function Ut(e, t) {
|
|
4010
4010
|
return { ...t, type: t && t.type || e, toastId: ns(t) };
|
|
@@ -4012,33 +4012,33 @@ function Ut(e, t) {
|
|
|
4012
4012
|
function Dt(e) {
|
|
4013
4013
|
return (t, n) => It(t, Ut(e, n));
|
|
4014
4014
|
}
|
|
4015
|
-
function
|
|
4015
|
+
function de(e, t) {
|
|
4016
4016
|
return It(e, Ut("default", t));
|
|
4017
4017
|
}
|
|
4018
|
-
|
|
4018
|
+
de.loading = (e, t) => It(e, Ut("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t })), de.promise = function(e, t, n) {
|
|
4019
4019
|
let r, { pending: o, error: i, success: a } = t;
|
|
4020
|
-
o && (r = at(o) ?
|
|
4021
|
-
const A = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null },
|
|
4022
|
-
if (
|
|
4023
|
-
return void
|
|
4024
|
-
const g = { type: s, ...A, ...n, data: y }, p = at(
|
|
4025
|
-
return r ?
|
|
4020
|
+
o && (r = at(o) ? de.loading(o, n) : de.loading(o.render, { ...n, ...o }));
|
|
4021
|
+
const A = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, d = (s, m, y) => {
|
|
4022
|
+
if (m == null)
|
|
4023
|
+
return void de.dismiss(r);
|
|
4024
|
+
const g = { type: s, ...A, ...n, data: y }, p = at(m) ? { render: m } : m;
|
|
4025
|
+
return r ? de.update(r, { ...g, ...p }) : de(p.render, { ...g, ...p }), y;
|
|
4026
4026
|
}, c = Ie(e) ? e() : e;
|
|
4027
|
-
return c.then((s) =>
|
|
4028
|
-
},
|
|
4029
|
-
$e.size > 0 ?
|
|
4030
|
-
},
|
|
4031
|
-
return e === void 0 && (e = {}),
|
|
4032
|
-
},
|
|
4027
|
+
return c.then((s) => d("success", a, s)).catch((s) => d("error", i, s)), c;
|
|
4028
|
+
}, de.success = Dt("success"), de.info = Dt("info"), de.error = Dt("error"), de.warning = Dt("warning"), de.warn = de.warning, de.dark = (e, t) => It(e, Ut("default", { theme: "dark", ...t })), de.dismiss = (e) => {
|
|
4029
|
+
$e.size > 0 ? Se.emit(1, e) : Ct = Ct.filter((t) => e != null && t.options.toastId !== e);
|
|
4030
|
+
}, de.clearWaitingQueue = function(e) {
|
|
4031
|
+
return e === void 0 && (e = {}), Se.emit(5, e);
|
|
4032
|
+
}, de.isActive = (e) => {
|
|
4033
4033
|
let t = !1;
|
|
4034
4034
|
return $e.forEach((n) => {
|
|
4035
4035
|
n.isToastActive && n.isToastActive(e) && (t = !0);
|
|
4036
4036
|
}), t;
|
|
4037
|
-
},
|
|
4037
|
+
}, de.update = function(e, t) {
|
|
4038
4038
|
t === void 0 && (t = {}), setTimeout(() => {
|
|
4039
4039
|
const n = function(r, o) {
|
|
4040
4040
|
let { containerId: i } = o;
|
|
4041
|
-
const a = $e.get(i ||
|
|
4041
|
+
const a = $e.get(i || Sn);
|
|
4042
4042
|
return a && a.getToast(r);
|
|
4043
4043
|
}(e, t);
|
|
4044
4044
|
if (n) {
|
|
@@ -4048,19 +4048,19 @@ me.loading = (e, t) => It(e, Ut("default", { isLoading: !0, autoClose: !1, close
|
|
|
4048
4048
|
delete i.render, It(a, i);
|
|
4049
4049
|
}
|
|
4050
4050
|
}, 0);
|
|
4051
|
-
},
|
|
4052
|
-
|
|
4053
|
-
},
|
|
4054
|
-
|
|
4055
|
-
}),
|
|
4056
|
-
|
|
4057
|
-
|
|
4051
|
+
}, de.done = (e) => {
|
|
4052
|
+
de.update(e, { progress: 1 });
|
|
4053
|
+
}, de.onChange = (e) => (Se.on(4, e), () => {
|
|
4054
|
+
Se.off(4, e);
|
|
4055
|
+
}), de.POSITION = { TOP_LEFT: "top-left", TOP_RIGHT: "top-right", TOP_CENTER: "top-center", BOTTOM_LEFT: "bottom-left", BOTTOM_RIGHT: "bottom-right", BOTTOM_CENTER: "bottom-center" }, de.TYPE = { INFO: "info", SUCCESS: "success", WARNING: "warning", ERROR: "error", DEFAULT: "default" }, Se.on(2, (e) => {
|
|
4056
|
+
Sn = e.containerId || e, $e.set(Sn, e), Ct.forEach((t) => {
|
|
4057
|
+
Se.emit(0, t.content, t.options);
|
|
4058
4058
|
}), Ct = [];
|
|
4059
4059
|
}).on(3, (e) => {
|
|
4060
|
-
$e.delete(e.containerId || e), $e.size === 0 &&
|
|
4060
|
+
$e.delete(e.containerId || e), $e.size === 0 && Se.off(0).off(1).off(5);
|
|
4061
4061
|
});
|
|
4062
4062
|
function Ot(e) {
|
|
4063
|
-
|
|
4063
|
+
de.success(e, {
|
|
4064
4064
|
position: "top-center",
|
|
4065
4065
|
autoClose: 650,
|
|
4066
4066
|
hideProgressBar: !0,
|
|
@@ -4086,20 +4086,20 @@ const Pt = async (e) => {
|
|
|
4086
4086
|
};
|
|
4087
4087
|
async function Ft(e, t, n, r = "download", o = !1, i = null) {
|
|
4088
4088
|
return new Promise(async (a, A) => {
|
|
4089
|
-
let
|
|
4089
|
+
let d = async (c) => {
|
|
4090
4090
|
r === "download" ? await Pt(c) : r === "copy" && rs(c, ei);
|
|
4091
4091
|
};
|
|
4092
|
-
tt === "Playable" ? (n && await Bt(
|
|
4092
|
+
tt === "Playable" ? (n && n.iosUrl !== "Loading..." && n.googleUrl !== "Loading..." && await Bt(
|
|
4093
4093
|
e,
|
|
4094
4094
|
{ iosLink: n == null ? void 0 : n.iosUrl, androidLink: n == null ? void 0 : n.googleUrl },
|
|
4095
4095
|
Ze
|
|
4096
4096
|
), XA(Ze, e, t, o, i).then(async (c) => {
|
|
4097
4097
|
let { url: s } = c;
|
|
4098
|
-
await
|
|
4098
|
+
await d(s), a(c);
|
|
4099
4099
|
}).catch((c) => {
|
|
4100
4100
|
let s = c.response.data.error.msg;
|
|
4101
4101
|
A({ message: s });
|
|
4102
|
-
})) : tt === "Flex" ? (n && await Uo(
|
|
4102
|
+
})) : tt === "Flex" ? (n && n.iosUrl !== "Loading..." && n.googleUrl !== "Loading..." && await Uo(
|
|
4103
4103
|
{
|
|
4104
4104
|
_id: e,
|
|
4105
4105
|
iosLink: n == null ? void 0 : n.iosUrl,
|
|
@@ -4119,17 +4119,17 @@ async function Ft(e, t, n, r = "download", o = !1, i = null) {
|
|
|
4119
4119
|
return;
|
|
4120
4120
|
}
|
|
4121
4121
|
let { url: s } = c;
|
|
4122
|
-
await
|
|
4122
|
+
await d(s), a(c);
|
|
4123
4123
|
}).catch((c) => {
|
|
4124
4124
|
let s = c.response.data.error.msg;
|
|
4125
4125
|
A({ message: s });
|
|
4126
4126
|
})) : tt === "Import" ? HA(Ze, e, t).then(async (c) => {
|
|
4127
4127
|
let s = c.url;
|
|
4128
|
-
await
|
|
4128
|
+
await d(s), a(c);
|
|
4129
4129
|
}).catch((c) => {
|
|
4130
4130
|
let s = c.response.data.error.msg;
|
|
4131
4131
|
A({ message: s });
|
|
4132
|
-
}) : tt === "Ready" && (n && ((i == null ? void 0 : i.urlType) === "single" && (n.googleUrl = n.iosUrl), await Bt(
|
|
4132
|
+
}) : tt === "Ready" && (n && n.iosUrl !== "Loading..." && n.googleUrl !== "Loading..." && ((i == null ? void 0 : i.urlType) === "single" && (n.googleUrl = n.iosUrl), await Bt(
|
|
4133
4133
|
e,
|
|
4134
4134
|
{ iosLink: n == null ? void 0 : n.iosUrl, androidLink: n == null ? void 0 : n.googleUrl },
|
|
4135
4135
|
Ze
|
|
@@ -4139,54 +4139,54 @@ async function Ft(e, t, n, r = "download", o = !1, i = null) {
|
|
|
4139
4139
|
return;
|
|
4140
4140
|
}
|
|
4141
4141
|
let s = c.url;
|
|
4142
|
-
await
|
|
4142
|
+
await d(s), a(c);
|
|
4143
4143
|
}).catch((c) => {
|
|
4144
4144
|
let s = c.response.data.error.msg;
|
|
4145
4145
|
A({ message: s });
|
|
4146
4146
|
}));
|
|
4147
4147
|
});
|
|
4148
4148
|
}
|
|
4149
|
-
async function os(e, t, n) {
|
|
4150
|
-
return new Promise(async (
|
|
4151
|
-
|
|
4149
|
+
async function os(e, t, n, r = null) {
|
|
4150
|
+
return new Promise(async (o, i) => {
|
|
4151
|
+
tt === "Flex" ? (await Uo(
|
|
4152
4152
|
{
|
|
4153
4153
|
_id: e,
|
|
4154
4154
|
iosLink: t == null ? void 0 : t.iosUrl,
|
|
4155
4155
|
androidLink: t == null ? void 0 : t.googleUrl
|
|
4156
4156
|
},
|
|
4157
4157
|
Ze
|
|
4158
|
-
), GA(e, n, Ze).then(async (
|
|
4159
|
-
if (
|
|
4160
|
-
|
|
4158
|
+
), GA(e, n, Ze).then(async (a) => {
|
|
4159
|
+
if (a.message) {
|
|
4160
|
+
i(a);
|
|
4161
4161
|
return;
|
|
4162
4162
|
}
|
|
4163
|
-
await Pt(
|
|
4164
|
-
}).catch((
|
|
4165
|
-
let
|
|
4166
|
-
|
|
4167
|
-
})) : tt === "Ready" ? (
|
|
4163
|
+
await Pt(a.url), o(a.url);
|
|
4164
|
+
}).catch((a) => {
|
|
4165
|
+
let A = a.response.data.error.msg;
|
|
4166
|
+
i({ message: A });
|
|
4167
|
+
})) : tt === "Ready" ? (t && t.iosUrl !== "Loading..." && t.googleUrl !== "Loading..." && ((r == null ? void 0 : r.urlType) === "single" && (t.googleUrl = t.iosUrl), await Bt(
|
|
4168
4168
|
e,
|
|
4169
4169
|
{ iosLink: t == null ? void 0 : t.iosUrl, androidLink: t == null ? void 0 : t.googleUrl },
|
|
4170
4170
|
Ze
|
|
4171
|
-
)
|
|
4172
|
-
if (
|
|
4173
|
-
|
|
4171
|
+
)), VA(e, n, Ze).then(async (a) => {
|
|
4172
|
+
if (a.message) {
|
|
4173
|
+
i(a);
|
|
4174
4174
|
return;
|
|
4175
4175
|
}
|
|
4176
|
-
await Pt(
|
|
4177
|
-
}).catch((
|
|
4178
|
-
console.log("err",
|
|
4179
|
-
let
|
|
4180
|
-
|
|
4181
|
-
})) : (await Bt(
|
|
4176
|
+
await Pt(a.url), o(a.url);
|
|
4177
|
+
}).catch((a) => {
|
|
4178
|
+
console.log("err", a);
|
|
4179
|
+
let A = a.response.data.error.msg;
|
|
4180
|
+
i({ message: A });
|
|
4181
|
+
})) : (t && t.iosUrl !== "Loading..." && t.googleUrl !== "Loading..." && await Bt(
|
|
4182
4182
|
e,
|
|
4183
4183
|
{ iosLink: t == null ? void 0 : t.iosUrl, androidLink: t == null ? void 0 : t.googleUrl },
|
|
4184
4184
|
Ze
|
|
4185
|
-
), QA(e, n, Ze).then(async (
|
|
4186
|
-
await Pt(
|
|
4187
|
-
}).catch((
|
|
4188
|
-
let
|
|
4189
|
-
|
|
4185
|
+
), QA(e, n, Ze).then(async (a) => {
|
|
4186
|
+
await Pt(a.url), o(a.url);
|
|
4187
|
+
}).catch((a) => {
|
|
4188
|
+
let A = a.response.data.error.msg;
|
|
4189
|
+
i({ message: A });
|
|
4190
4190
|
}));
|
|
4191
4191
|
});
|
|
4192
4192
|
}
|
|
@@ -4203,8 +4203,8 @@ const as = ({
|
|
|
4203
4203
|
androidLink: a,
|
|
4204
4204
|
urlType: A
|
|
4205
4205
|
}) => {
|
|
4206
|
-
const [
|
|
4207
|
-
c(!0),
|
|
4206
|
+
const [d, c] = P(!1), s = async () => {
|
|
4207
|
+
c(!0), Ft(
|
|
4208
4208
|
e,
|
|
4209
4209
|
"default",
|
|
4210
4210
|
{
|
|
@@ -4214,15 +4214,15 @@ const as = ({
|
|
|
4214
4214
|
null,
|
|
4215
4215
|
!1,
|
|
4216
4216
|
{ urlType: A }
|
|
4217
|
-
).then((
|
|
4217
|
+
).then((m) => {
|
|
4218
4218
|
c(!1);
|
|
4219
4219
|
let y;
|
|
4220
4220
|
t === "Flex" ? y = `${n}/preview?versionId=${e}` : t === "Import" ? y = `${n}/preview?versionId=${e}_` : t === "Ready" ? y = `${n}/preview?versionId=${e}_&ready=true` : y = `${n}/preview?versionId=${e}_`, un(y) ? Ot("Link copied") : r(y), c(!1);
|
|
4221
|
-
}).catch((
|
|
4221
|
+
}).catch((m) => {
|
|
4222
4222
|
c(!1);
|
|
4223
4223
|
});
|
|
4224
4224
|
};
|
|
4225
|
-
return
|
|
4225
|
+
return /* @__PURE__ */ l.jsxs(
|
|
4226
4226
|
"div",
|
|
4227
4227
|
{
|
|
4228
4228
|
style: {
|
|
@@ -4303,7 +4303,7 @@ const as = ({
|
|
|
4303
4303
|
cursor: "pointer"
|
|
4304
4304
|
},
|
|
4305
4305
|
onClick: () => {
|
|
4306
|
-
|
|
4306
|
+
d || s();
|
|
4307
4307
|
},
|
|
4308
4308
|
children: [
|
|
4309
4309
|
/* @__PURE__ */ l.jsx(
|
|
@@ -4328,7 +4328,7 @@ const as = ({
|
|
|
4328
4328
|
width: "80px"
|
|
4329
4329
|
// margin: "auto",
|
|
4330
4330
|
},
|
|
4331
|
-
children:
|
|
4331
|
+
children: d ? /* @__PURE__ */ l.jsx(
|
|
4332
4332
|
"img",
|
|
4333
4333
|
{
|
|
4334
4334
|
style: {
|
|
@@ -4366,19 +4366,20 @@ const as = ({
|
|
|
4366
4366
|
fetchFileUrl: i,
|
|
4367
4367
|
copyLinkUrl: a,
|
|
4368
4368
|
setSafariCopyLink: A,
|
|
4369
|
-
iosLink:
|
|
4369
|
+
iosLink: d,
|
|
4370
4370
|
androidLink: c,
|
|
4371
4371
|
urlType: s
|
|
4372
4372
|
}) => {
|
|
4373
|
-
const [
|
|
4374
|
-
Ce(() => {
|
|
4373
|
+
const [m, y] = P(window.innerWidth);
|
|
4374
|
+
console.log("iosLink", d), Ce(() => {
|
|
4375
|
+
console.log("re add event listener");
|
|
4375
4376
|
function p(h) {
|
|
4376
|
-
console.log(h), h.data === "cta" && (console.log("Received 'cta' message from iframe"),
|
|
4377
|
+
console.log(h), h.data === "cta" && (console.log("Received 'cta' message from iframe"), d && window.open(d, "_blank"));
|
|
4377
4378
|
}
|
|
4378
4379
|
return window.addEventListener("message", p, !1), () => {
|
|
4379
4380
|
window.removeEventListener("message", p);
|
|
4380
4381
|
};
|
|
4381
|
-
}, []), Ce(() => {
|
|
4382
|
+
}, [d, c]), Ce(() => {
|
|
4382
4383
|
const p = () => {
|
|
4383
4384
|
y(window.innerWidth);
|
|
4384
4385
|
};
|
|
@@ -4396,7 +4397,7 @@ const as = ({
|
|
|
4396
4397
|
flexDirection: "column",
|
|
4397
4398
|
justifyContent: "space-between",
|
|
4398
4399
|
padding: "5px",
|
|
4399
|
-
height:
|
|
4400
|
+
height: m > 1440 ? "680px" : "620px",
|
|
4400
4401
|
borderRadius: "0px 0px 0px 16px",
|
|
4401
4402
|
marginTop: "20px"
|
|
4402
4403
|
},
|
|
@@ -4411,7 +4412,7 @@ const as = ({
|
|
|
4411
4412
|
copyLinkUrl: a,
|
|
4412
4413
|
setSafariCopyLink: A,
|
|
4413
4414
|
qrUrl: o,
|
|
4414
|
-
iosLink:
|
|
4415
|
+
iosLink: d,
|
|
4415
4416
|
androidLink: c,
|
|
4416
4417
|
urlType: s
|
|
4417
4418
|
}
|
|
@@ -4622,7 +4623,7 @@ const us = () => /* @__PURE__ */ l.jsxs("svg", { width: "24", height: "24", view
|
|
|
4622
4623
|
}
|
|
4623
4624
|
)
|
|
4624
4625
|
] });
|
|
4625
|
-
},
|
|
4626
|
+
}, ds = ({
|
|
4626
4627
|
typeOfProduct: e,
|
|
4627
4628
|
urls: t,
|
|
4628
4629
|
handleIosChange: n,
|
|
@@ -4695,7 +4696,7 @@ const us = () => /* @__PURE__ */ l.jsxs("svg", { width: "24", height: "24", view
|
|
|
4695
4696
|
]
|
|
4696
4697
|
}
|
|
4697
4698
|
) });
|
|
4698
|
-
},
|
|
4699
|
+
}, ms = ({
|
|
4699
4700
|
typeOfProduct: e,
|
|
4700
4701
|
fileSize: t,
|
|
4701
4702
|
urls: n,
|
|
@@ -4704,10 +4705,10 @@ const us = () => /* @__PURE__ */ l.jsxs("svg", { width: "24", height: "24", view
|
|
|
4704
4705
|
disabled: i,
|
|
4705
4706
|
api: a,
|
|
4706
4707
|
creditDownload: A,
|
|
4707
|
-
user:
|
|
4708
|
+
user: d,
|
|
4708
4709
|
isTest: c,
|
|
4709
4710
|
setIsTest: s,
|
|
4710
|
-
urlType:
|
|
4711
|
+
urlType: m,
|
|
4711
4712
|
setUrlType: y
|
|
4712
4713
|
}) => {
|
|
4713
4714
|
const g = () => /* @__PURE__ */ l.jsxs(
|
|
@@ -4802,7 +4803,7 @@ const us = () => /* @__PURE__ */ l.jsxs("svg", { width: "24", height: "24", view
|
|
|
4802
4803
|
style: {
|
|
4803
4804
|
position: "absolute",
|
|
4804
4805
|
bottom: "-3px",
|
|
4805
|
-
left:
|
|
4806
|
+
left: m === "single" ? "50%" : "0%",
|
|
4806
4807
|
width: "50%",
|
|
4807
4808
|
height: "3px",
|
|
4808
4809
|
borderRadius: "2px",
|
|
@@ -4835,8 +4836,8 @@ const us = () => /* @__PURE__ */ l.jsxs("svg", { width: "24", height: "24", view
|
|
|
4835
4836
|
{
|
|
4836
4837
|
style: {
|
|
4837
4838
|
position: "relative",
|
|
4838
|
-
color:
|
|
4839
|
-
fontWeight:
|
|
4839
|
+
color: m === "game" ? "#000" : "#a3a3a3",
|
|
4840
|
+
fontWeight: m === "game" ? "bold" : "normal",
|
|
4840
4841
|
transition: "all 0.2s ease-in-out"
|
|
4841
4842
|
},
|
|
4842
4843
|
id: "game-tab",
|
|
@@ -4868,8 +4869,8 @@ const us = () => /* @__PURE__ */ l.jsxs("svg", { width: "24", height: "24", view
|
|
|
4868
4869
|
{
|
|
4869
4870
|
style: {
|
|
4870
4871
|
position: "relative",
|
|
4871
|
-
color:
|
|
4872
|
-
fontWeight:
|
|
4872
|
+
color: m === "single" ? "#000" : "#a3a3a3",
|
|
4873
|
+
fontWeight: m === "single" ? "bold" : "normal",
|
|
4873
4874
|
transition: "all 0.2s ease-in-out"
|
|
4874
4875
|
},
|
|
4875
4876
|
id: "single-tab",
|
|
@@ -4891,10 +4892,10 @@ const us = () => /* @__PURE__ */ l.jsxs("svg", { width: "24", height: "24", view
|
|
|
4891
4892
|
flexDirection: "column"
|
|
4892
4893
|
},
|
|
4893
4894
|
children: [
|
|
4894
|
-
|
|
4895
|
+
d.customer == "playableFactoryInternal" && e === "Playable" && /* @__PURE__ */ l.jsx(g, {}),
|
|
4895
4896
|
e === "Ready" ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
4896
4897
|
/* @__PURE__ */ l.jsx(p, {}),
|
|
4897
|
-
|
|
4898
|
+
m === "game" && /* @__PURE__ */ l.jsx(
|
|
4898
4899
|
_r,
|
|
4899
4900
|
{
|
|
4900
4901
|
typeOfProduct: e,
|
|
@@ -4904,8 +4905,8 @@ const us = () => /* @__PURE__ */ l.jsxs("svg", { width: "24", height: "24", view
|
|
|
4904
4905
|
disabled: i
|
|
4905
4906
|
}
|
|
4906
4907
|
),
|
|
4907
|
-
|
|
4908
|
-
|
|
4908
|
+
m === "single" && /* @__PURE__ */ l.jsx(
|
|
4909
|
+
ds,
|
|
4909
4910
|
{
|
|
4910
4911
|
typeOfProduct: e,
|
|
4911
4912
|
urls: n,
|
|
@@ -4965,10 +4966,10 @@ const us = () => /* @__PURE__ */ l.jsxs("svg", { width: "24", height: "24", view
|
|
|
4965
4966
|
handleGoogleChange: i,
|
|
4966
4967
|
disabled: a,
|
|
4967
4968
|
creditDownload: A,
|
|
4968
|
-
api:
|
|
4969
|
+
api: d,
|
|
4969
4970
|
user: c,
|
|
4970
4971
|
isTest: s,
|
|
4971
|
-
setIsTest:
|
|
4972
|
+
setIsTest: m,
|
|
4972
4973
|
urlType: y,
|
|
4973
4974
|
setUrlType: g
|
|
4974
4975
|
}) => /* @__PURE__ */ l.jsxs(
|
|
@@ -4992,7 +4993,7 @@ const us = () => /* @__PURE__ */ l.jsxs("svg", { width: "24", height: "24", view
|
|
|
4992
4993
|
children: [
|
|
4993
4994
|
/* @__PURE__ */ l.jsx(ps, { typeOfProduct: e, title: r, fileSize: t }),
|
|
4994
4995
|
/* @__PURE__ */ l.jsx(
|
|
4995
|
-
|
|
4996
|
+
ms,
|
|
4996
4997
|
{
|
|
4997
4998
|
typeOfProduct: e,
|
|
4998
4999
|
fileSize: t,
|
|
@@ -5001,10 +5002,10 @@ const us = () => /* @__PURE__ */ l.jsxs("svg", { width: "24", height: "24", view
|
|
|
5001
5002
|
handleGoogleChange: i,
|
|
5002
5003
|
disabled: a,
|
|
5003
5004
|
creditDownload: A,
|
|
5004
|
-
api:
|
|
5005
|
+
api: d,
|
|
5005
5006
|
user: c,
|
|
5006
5007
|
isTest: s,
|
|
5007
|
-
setIsTest:
|
|
5008
|
+
setIsTest: m,
|
|
5008
5009
|
urlType: y,
|
|
5009
5010
|
setUrlType: g
|
|
5010
5011
|
}
|
|
@@ -5274,8 +5275,8 @@ const gs = ({ typeOfProduct: e }) => /* @__PURE__ */ l.jsx(
|
|
|
5274
5275
|
typeOfProduct: a,
|
|
5275
5276
|
urlType: A
|
|
5276
5277
|
}) => {
|
|
5277
|
-
let
|
|
5278
|
-
return a === "Ready" && A === "single" ?
|
|
5278
|
+
let d = "";
|
|
5279
|
+
return a === "Ready" && A === "single" ? d = "Redirection url is empty. Are you sure you want to continue?" : !t && !n ? d = "Both links are empty. Are you sure you want to continue?" : t ? n || (d = "Google link is empty. Are you sure you want to continue?") : d = "iOS link is empty. Are you sure you want to continue?", /* @__PURE__ */ l.jsxs(
|
|
5279
5280
|
"div",
|
|
5280
5281
|
{
|
|
5281
5282
|
style: {
|
|
@@ -5328,7 +5329,7 @@ const gs = ({ typeOfProduct: e }) => /* @__PURE__ */ l.jsx(
|
|
|
5328
5329
|
fontSize: "18px",
|
|
5329
5330
|
lineHeight: "24px"
|
|
5330
5331
|
},
|
|
5331
|
-
children:
|
|
5332
|
+
children: d
|
|
5332
5333
|
}
|
|
5333
5334
|
),
|
|
5334
5335
|
/* @__PURE__ */ l.jsxs(
|
|
@@ -5730,10 +5731,10 @@ const bs = ({
|
|
|
5730
5731
|
networkVersionSize: i,
|
|
5731
5732
|
fileSizeLoading: a,
|
|
5732
5733
|
showCheckBox: A,
|
|
5733
|
-
typeOfProduct:
|
|
5734
|
+
typeOfProduct: d,
|
|
5734
5735
|
versionId: c,
|
|
5735
5736
|
api: s,
|
|
5736
|
-
handleDownloadError:
|
|
5737
|
+
handleDownloadError: m,
|
|
5737
5738
|
fetchFileUrl: y,
|
|
5738
5739
|
urls: g,
|
|
5739
5740
|
game: p,
|
|
@@ -5746,7 +5747,7 @@ const bs = ({
|
|
|
5746
5747
|
isTest: C,
|
|
5747
5748
|
urlType: ne
|
|
5748
5749
|
}) => {
|
|
5749
|
-
const [re, U] = P(!1), [Ae, F] = P(""), [oe, X] = P(!1), [_, W] = P(!1), [
|
|
5750
|
+
const [re, U] = P(!1), [Ae, F] = P(""), [oe, X] = P(!1), [_, W] = P(!1), [L, Y] = P(!1), [f, S] = P("download"), [k, q] = P(!1), [Z, z] = P(!1), [w, j] = P(!1);
|
|
5750
5751
|
let Q = {
|
|
5751
5752
|
aarki: "html,copy",
|
|
5752
5753
|
adcolony: "copy,html",
|
|
@@ -5791,15 +5792,15 @@ const bs = ({
|
|
|
5791
5792
|
jammp: "copy,html",
|
|
5792
5793
|
mraid: "copy,html"
|
|
5793
5794
|
};
|
|
5794
|
-
const
|
|
5795
|
+
const R = () => {
|
|
5795
5796
|
n(e);
|
|
5796
5797
|
}, N = async (V, K) => (U(!0), new Promise((ce, Xe) => {
|
|
5797
5798
|
Ft(c, V, g, K, C, { urlType: ne }).then((we) => {
|
|
5798
5799
|
U(!1), ce(we);
|
|
5799
5800
|
}).catch((we) => {
|
|
5800
|
-
U(!1),
|
|
5801
|
+
U(!1), m(we.message, we), Xe(we);
|
|
5801
5802
|
});
|
|
5802
|
-
})),
|
|
5803
|
+
})), D = async (V = !1) => {
|
|
5803
5804
|
V ? z(!0) : q(!0);
|
|
5804
5805
|
const K = {
|
|
5805
5806
|
molocoGenerateHtml: !1
|
|
@@ -5807,11 +5808,11 @@ const bs = ({
|
|
|
5807
5808
|
V && (K.molocoGenerateHtml = !0), Ft(c, o, g, "download", C, K).then((ce) => {
|
|
5808
5809
|
V ? z(!1) : q(!1), Y(!1);
|
|
5809
5810
|
}).catch((ce) => {
|
|
5810
|
-
|
|
5811
|
+
m(ce.message, ce);
|
|
5811
5812
|
});
|
|
5812
5813
|
}, B = async () => {
|
|
5813
5814
|
j(!0);
|
|
5814
|
-
const V = await vs(s, c, o,
|
|
5815
|
+
const V = await vs(s, c, o, d);
|
|
5815
5816
|
let K = `${y}/${V == null ? void 0 : V.url}`;
|
|
5816
5817
|
un(K) ? (Ot("Link Copied"), j(!1)) : O(K);
|
|
5817
5818
|
}, T = o === "moloco" || o === "molocoV2";
|
|
@@ -5825,7 +5826,7 @@ const bs = ({
|
|
|
5825
5826
|
flexDirection: "column",
|
|
5826
5827
|
gap: "20px",
|
|
5827
5828
|
padding: "16px",
|
|
5828
|
-
borderColor: r ? he[
|
|
5829
|
+
borderColor: r ? he[d] : "lightgray",
|
|
5829
5830
|
borderWidth: "1px",
|
|
5830
5831
|
borderStyle: "solid",
|
|
5831
5832
|
backgroundColor: "white",
|
|
@@ -5834,8 +5835,8 @@ const bs = ({
|
|
|
5834
5835
|
borderRadius: "16px",
|
|
5835
5836
|
cursor: "pointer"
|
|
5836
5837
|
},
|
|
5837
|
-
className: "border-hover-" +
|
|
5838
|
-
onClick:
|
|
5838
|
+
className: "border-hover-" + d,
|
|
5839
|
+
onClick: R,
|
|
5839
5840
|
children: [
|
|
5840
5841
|
/* @__PURE__ */ l.jsxs(
|
|
5841
5842
|
"div",
|
|
@@ -5869,7 +5870,7 @@ const bs = ({
|
|
|
5869
5870
|
alignItems: "center",
|
|
5870
5871
|
marginRight: "2rem"
|
|
5871
5872
|
},
|
|
5872
|
-
children: /* @__PURE__ */ l.jsx(gs, { typeOfProduct:
|
|
5873
|
+
children: /* @__PURE__ */ l.jsx(gs, { typeOfProduct: d })
|
|
5873
5874
|
}
|
|
5874
5875
|
) : i.map((V) => /* @__PURE__ */ l.jsx(
|
|
5875
5876
|
"div",
|
|
@@ -5901,11 +5902,11 @@ const bs = ({
|
|
|
5901
5902
|
left: "0",
|
|
5902
5903
|
padding: "0.5rem"
|
|
5903
5904
|
},
|
|
5904
|
-
children: (
|
|
5905
|
+
children: (d === "Playable" || d === "Ready" || d === "Flex") && A && /* @__PURE__ */ l.jsx(
|
|
5905
5906
|
hs,
|
|
5906
5907
|
{
|
|
5907
5908
|
checked: r,
|
|
5908
|
-
typeOfProduct:
|
|
5909
|
+
typeOfProduct: d,
|
|
5909
5910
|
id: e
|
|
5910
5911
|
}
|
|
5911
5912
|
)
|
|
@@ -5914,7 +5915,7 @@ const bs = ({
|
|
|
5914
5915
|
/* @__PURE__ */ l.jsx(
|
|
5915
5916
|
"img",
|
|
5916
5917
|
{
|
|
5917
|
-
onClick:
|
|
5918
|
+
onClick: R,
|
|
5918
5919
|
style: {
|
|
5919
5920
|
width: "30rem",
|
|
5920
5921
|
// Equivalent to 120/4 = 30rem
|
|
@@ -5940,7 +5941,7 @@ const bs = ({
|
|
|
5940
5941
|
/* @__PURE__ */ l.jsxs(
|
|
5941
5942
|
On,
|
|
5942
5943
|
{
|
|
5943
|
-
className: `${T ? "w-1/2" : "w-2/3"} border-hover-` +
|
|
5944
|
+
className: `${T ? "w-1/2" : "w-2/3"} border-hover-` + d,
|
|
5944
5945
|
downloading: re,
|
|
5945
5946
|
onClickDonwload: async (V) => {
|
|
5946
5947
|
if (V.stopPropagation(), T && J.customer === "playableFactoryInternal") {
|
|
@@ -5949,7 +5950,7 @@ const bs = ({
|
|
|
5949
5950
|
} else {
|
|
5950
5951
|
F("download");
|
|
5951
5952
|
const K = g.iosUrl, ce = g.googleUrl;
|
|
5952
|
-
v && v.willSpendCredit ? (h(!0),
|
|
5953
|
+
v && v.willSpendCredit ? (h(!0), S("download"), X(!0)) : ["Playable", "Flex"].includes(d) && (!K || !ce) || d === "Ready" && ne === "single" && !K || d === "Ready" && ne === "multi" && (!K || !ce) ? (h(!0), W(!0)) : (W(!1), X(!1), await N(o, "download"));
|
|
5953
5954
|
}
|
|
5954
5955
|
},
|
|
5955
5956
|
children: [
|
|
@@ -5978,11 +5979,11 @@ const bs = ({
|
|
|
5978
5979
|
Q[o] && Q[o].includes("copy") && /* @__PURE__ */ l.jsx(
|
|
5979
5980
|
On,
|
|
5980
5981
|
{
|
|
5981
|
-
className: "w-1/3 border-hover-" +
|
|
5982
|
+
className: "w-1/3 border-hover-" + d,
|
|
5982
5983
|
onClickDonwload: async (V) => {
|
|
5983
5984
|
V.stopPropagation(), F("copyLink");
|
|
5984
5985
|
const K = g.iosUrl, ce = g.googleUrl;
|
|
5985
|
-
v && (v != null && v.willSpendCredit) ? (
|
|
5986
|
+
v && (v != null && v.willSpendCredit) ? (S("copy"), h(!0), X(!0)) : d !== "Import" && (!K || !ce) ? (h(!0), W(!0)) : (X(!1), W(!1), await N(o, "copy"));
|
|
5986
5987
|
},
|
|
5987
5988
|
disabled: E,
|
|
5988
5989
|
children: /* @__PURE__ */ l.jsx(Zo, { className: "h-6 w-6 stroke-dark-full" })
|
|
@@ -5991,11 +5992,11 @@ const bs = ({
|
|
|
5991
5992
|
T && J.customer !== "playableFactoryInternal" && /* @__PURE__ */ l.jsx(
|
|
5992
5993
|
On,
|
|
5993
5994
|
{
|
|
5994
|
-
className: "w-1/2 border-hover-" +
|
|
5995
|
+
className: "w-1/2 border-hover-" + d,
|
|
5995
5996
|
onClickDonwload: async (V) => {
|
|
5996
5997
|
V.stopPropagation(), F("download");
|
|
5997
5998
|
const K = g.iosUrl, ce = g.googleUrl;
|
|
5998
|
-
v && (v != null && v.willSpendCredit) ? (
|
|
5999
|
+
v && (v != null && v.willSpendCredit) ? (S("download"), h(!0), X(!0)) : d !== "Import" && (!K || !ce) ? (h(!0), W(!0)) : (X(!1), W(!1), await D(!0));
|
|
5999
6000
|
},
|
|
6000
6001
|
disabled: E,
|
|
6001
6002
|
children: /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
@@ -6055,17 +6056,17 @@ const bs = ({
|
|
|
6055
6056
|
download: async () => {
|
|
6056
6057
|
W(!1), h(!1), await N(o, "download");
|
|
6057
6058
|
},
|
|
6058
|
-
typeOfProduct:
|
|
6059
|
+
typeOfProduct: d,
|
|
6059
6060
|
urlType: ne
|
|
6060
6061
|
}
|
|
6061
6062
|
),
|
|
6062
|
-
|
|
6063
|
+
L && J.customer === "playableFactoryInternal" && /* @__PURE__ */ l.jsx(
|
|
6063
6064
|
ys,
|
|
6064
6065
|
{
|
|
6065
6066
|
onClose: () => {
|
|
6066
6067
|
Y(!1);
|
|
6067
6068
|
},
|
|
6068
|
-
handleDownload:
|
|
6069
|
+
handleDownload: D,
|
|
6069
6070
|
handleDownloadMolocoTest: B,
|
|
6070
6071
|
downloadingMoloco: k,
|
|
6071
6072
|
donwloadintMolocoTest: w,
|
|
@@ -6379,16 +6380,16 @@ const bs = ({
|
|
|
6379
6380
|
api: i,
|
|
6380
6381
|
user: a,
|
|
6381
6382
|
handleDownloadError: A,
|
|
6382
|
-
fetchFileUrl:
|
|
6383
|
+
fetchFileUrl: d,
|
|
6383
6384
|
urls: c,
|
|
6384
6385
|
game: s,
|
|
6385
|
-
getDownloadCount:
|
|
6386
|
+
getDownloadCount: m,
|
|
6386
6387
|
disabled: y,
|
|
6387
6388
|
setSafariCopyLink: g,
|
|
6388
6389
|
isTest: p,
|
|
6389
6390
|
urlType: h
|
|
6390
6391
|
}) => {
|
|
6391
|
-
const [v, x] = P([]), [E, J] = P([]), [O, C] = P(!1), [ne, re] = P(""), [U, Ae] = P(!1), [F, oe] = P(!1), [X, _] = P("download"), [W,
|
|
6392
|
+
const [v, x] = P([]), [E, J] = P([]), [O, C] = P(!1), [ne, re] = P(""), [U, Ae] = P(!1), [F, oe] = P(!1), [X, _] = P("download"), [W, L] = P(!1), Y = async (k) => {
|
|
6392
6393
|
const q = [...v];
|
|
6393
6394
|
if (v.includes(k)) {
|
|
6394
6395
|
const Z = q.findIndex((z) => z === k);
|
|
@@ -6396,15 +6397,15 @@ const bs = ({
|
|
|
6396
6397
|
} else
|
|
6397
6398
|
q.push(k), x([...v, k]);
|
|
6398
6399
|
En.filter((Z) => [...q].includes(Z.id)).map((Z) => Z.name);
|
|
6399
|
-
}, f = async () =>
|
|
6400
|
+
}, f = async () => new Promise(async (k, q) => {
|
|
6400
6401
|
const Z = En.filter((z) => [...v].includes(z.id)).map((z) => z.name);
|
|
6401
|
-
Ae(!0),
|
|
6402
|
-
|
|
6402
|
+
Ae(!0), os(r, c, Z, { urlType: h }).then((z) => {
|
|
6403
|
+
Ae(!1), k(z);
|
|
6403
6404
|
}).catch((z) => {
|
|
6404
6405
|
console.log("get multi download err"), Ae(!1), A(z.message, z), q(z);
|
|
6405
6406
|
});
|
|
6406
|
-
})
|
|
6407
|
-
c.iosUrl, c.googleUrl, t && t.willSpendCredit ? (oe(!0), _("download"),
|
|
6407
|
+
}), S = async () => {
|
|
6408
|
+
c.iosUrl, c.googleUrl, t && t.willSpendCredit ? (oe(!0), _("download"), L(!0)) : (L(!1), await f());
|
|
6408
6409
|
};
|
|
6409
6410
|
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
6410
6411
|
/* @__PURE__ */ l.jsx(
|
|
@@ -6453,12 +6454,12 @@ const bs = ({
|
|
|
6453
6454
|
versionId: r,
|
|
6454
6455
|
api: i,
|
|
6455
6456
|
handleDownloadError: A,
|
|
6456
|
-
fetchFileUrl:
|
|
6457
|
+
fetchFileUrl: d,
|
|
6457
6458
|
urls: c,
|
|
6458
6459
|
game: s,
|
|
6459
6460
|
creditDownload: t,
|
|
6460
6461
|
setIsConfirmActive: oe,
|
|
6461
|
-
getDownloadCount:
|
|
6462
|
+
getDownloadCount: m,
|
|
6462
6463
|
disabled: y,
|
|
6463
6464
|
user: a,
|
|
6464
6465
|
setSafariCopyLink: g,
|
|
@@ -6488,7 +6489,7 @@ const bs = ({
|
|
|
6488
6489
|
children: /* @__PURE__ */ l.jsx(
|
|
6489
6490
|
Zs,
|
|
6490
6491
|
{
|
|
6491
|
-
onClickMultiDownload:
|
|
6492
|
+
onClickMultiDownload: S,
|
|
6492
6493
|
networksVersionTotalSize: ne,
|
|
6493
6494
|
typeOfProduct: o,
|
|
6494
6495
|
multiDownloading: U
|
|
@@ -6503,12 +6504,12 @@ const bs = ({
|
|
|
6503
6504
|
handleCopyLink: async () => {
|
|
6504
6505
|
},
|
|
6505
6506
|
download: async () => {
|
|
6506
|
-
|
|
6507
|
+
L(!1), oe(!1), await f();
|
|
6507
6508
|
},
|
|
6508
6509
|
onClose: () => {
|
|
6509
|
-
|
|
6510
|
+
L(!1), oe(!1);
|
|
6510
6511
|
},
|
|
6511
|
-
getDownloadCount:
|
|
6512
|
+
getDownloadCount: m
|
|
6512
6513
|
}
|
|
6513
6514
|
)
|
|
6514
6515
|
] });
|
|
@@ -6533,10 +6534,10 @@ async function Ws(e, t) {
|
|
|
6533
6534
|
async function Ms(e, t) {
|
|
6534
6535
|
return (await ge.post(t + "/getFlexData", { _id: e })).data;
|
|
6535
6536
|
}
|
|
6536
|
-
async function
|
|
6537
|
+
async function Ls(e, t) {
|
|
6537
6538
|
return (await ge.post(t + "/getImportedPlayable", { id: e })).data;
|
|
6538
6539
|
}
|
|
6539
|
-
async function
|
|
6540
|
+
async function Ss(e, t) {
|
|
6540
6541
|
return (await ge.post(t + "/getReadyDownloadCount", e)).data;
|
|
6541
6542
|
}
|
|
6542
6543
|
const Os = [
|
|
@@ -6577,10 +6578,10 @@ const Os = [
|
|
|
6577
6578
|
api: i,
|
|
6578
6579
|
user: a,
|
|
6579
6580
|
title: A,
|
|
6580
|
-
handleDownloadError:
|
|
6581
|
+
handleDownloadError: d,
|
|
6581
6582
|
fetchFileUrl: c,
|
|
6582
6583
|
fileSize: s,
|
|
6583
|
-
setFileSize:
|
|
6584
|
+
setFileSize: m,
|
|
6584
6585
|
setSafariCopyLink: y,
|
|
6585
6586
|
iosLink: g,
|
|
6586
6587
|
androidLink: p,
|
|
@@ -6589,7 +6590,7 @@ const Os = [
|
|
|
6589
6590
|
urlType: x,
|
|
6590
6591
|
setUrlType: E
|
|
6591
6592
|
}) => {
|
|
6592
|
-
const [J, O] = P(null), [C, ne] = P(null), [re, U] = P(null), [Ae, F] = P(!1), [oe, X] = P(!0), [_, W] = P(window.innerWidth), [
|
|
6593
|
+
const [J, O] = P(null), [C, ne] = P(null), [re, U] = P(null), [Ae, F] = P(!1), [oe, X] = P(!0), [_, W] = P(window.innerWidth), [L, Y] = P(!1);
|
|
6593
6594
|
Ce(() => {
|
|
6594
6595
|
const w = () => {
|
|
6595
6596
|
W(window.innerWidth);
|
|
@@ -6602,18 +6603,19 @@ const Os = [
|
|
|
6602
6603
|
F(!0);
|
|
6603
6604
|
const w = await ws(e, i);
|
|
6604
6605
|
return w != null && w.networks || (w.networks = Os), O(w), w;
|
|
6605
|
-
},
|
|
6606
|
+
}, S = (w) => {
|
|
6606
6607
|
h(w);
|
|
6607
6608
|
}, k = (w) => {
|
|
6608
6609
|
v(w);
|
|
6609
6610
|
}, q = async (w, j) => {
|
|
6610
|
-
var Q,
|
|
6611
|
+
var Q, R;
|
|
6612
|
+
console.log("getIosAndAndroidLink");
|
|
6611
6613
|
try {
|
|
6612
6614
|
let N;
|
|
6613
6615
|
if (r === "Playable" || r === "Ready") {
|
|
6614
|
-
const
|
|
6615
|
-
if (
|
|
6616
|
-
h(
|
|
6616
|
+
const D = await Ws(t, i);
|
|
6617
|
+
if (D) {
|
|
6618
|
+
console.log("version", D), h(D.iosLink), v(D.androidLink), F(!1);
|
|
6617
6619
|
return;
|
|
6618
6620
|
}
|
|
6619
6621
|
if (w && (w.iosUrl || w.googleUrl)) {
|
|
@@ -6628,27 +6630,27 @@ const Os = [
|
|
|
6628
6630
|
/var\s+iosLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
6629
6631
|
)) == null ? void 0 : Q.at(1)) || "";
|
|
6630
6632
|
h(T);
|
|
6631
|
-
const V = ((
|
|
6633
|
+
const V = ((R = B.match(
|
|
6632
6634
|
/var\s+androidLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
6633
|
-
)) == null ? void 0 :
|
|
6635
|
+
)) == null ? void 0 : R.at(1)) || "";
|
|
6634
6636
|
v(V), F(!1);
|
|
6635
6637
|
} else
|
|
6636
6638
|
v(""), h(""), F(!1);
|
|
6637
6639
|
} else if (r === "Flex") {
|
|
6638
|
-
const
|
|
6639
|
-
if (
|
|
6640
|
-
v(
|
|
6640
|
+
const D = await Ms(t, i);
|
|
6641
|
+
if (D.googleUrl || D.iosUrl) {
|
|
6642
|
+
v(D.googleUrl), h(D.iosUrl), F(!1);
|
|
6641
6643
|
return;
|
|
6642
6644
|
}
|
|
6643
6645
|
w && (w.iosUrl || w.googleUrl) ? (h(w.iosUrl), v(w.googleUrl), F(!1)) : (v(""), h(""), F(!1));
|
|
6644
6646
|
}
|
|
6645
6647
|
} catch (N) {
|
|
6646
|
-
|
|
6648
|
+
d(N.response.data.error.msg);
|
|
6647
6649
|
}
|
|
6648
6650
|
}, Z = async () => {
|
|
6649
6651
|
F(!0);
|
|
6650
6652
|
let w;
|
|
6651
|
-
r === "Flex" ? w = await xs({ _id: t }, i) : r === "Ready" && (w = await
|
|
6653
|
+
r === "Flex" ? w = await xs({ _id: t }, i) : r === "Ready" && (w = await Ss({ _id: t }, i)), w && (["admin", "pm", "tester"].includes(a.role) ? U({
|
|
6652
6654
|
...w,
|
|
6653
6655
|
networks: eo
|
|
6654
6656
|
}) : r === "Ready" && !w.canDownload ? U({
|
|
@@ -6657,7 +6659,7 @@ const Os = [
|
|
|
6657
6659
|
}) : U(w)), F(!1);
|
|
6658
6660
|
}, z = async () => await Ks(n, i);
|
|
6659
6661
|
return Ce(() => {
|
|
6660
|
-
o || (O(null), ne(null), U(null),
|
|
6662
|
+
o || (O(null), ne(null), U(null), m(null)), o && (r === "Playable" ? (f().then((w) => {
|
|
6661
6663
|
q(null, w);
|
|
6662
6664
|
}), X(!1)) : r === "Ready" ? Z().then((w) => {
|
|
6663
6665
|
f().then((j) => {
|
|
@@ -6667,7 +6669,7 @@ const Os = [
|
|
|
6667
6669
|
X(!1), z().then((j) => {
|
|
6668
6670
|
o && (q(j, null), X(!1), ne(j));
|
|
6669
6671
|
});
|
|
6670
|
-
}) : r === "Import" &&
|
|
6672
|
+
}) : r === "Import" && Ls(t, i).then((w) => {
|
|
6671
6673
|
console.log(w), O(w), h(w.iosUrl || ""), v(w.googleUrl || ""), F(!1), X(!1);
|
|
6672
6674
|
}));
|
|
6673
6675
|
}, [n, e, t, o]), /* @__PURE__ */ l.jsxs(
|
|
@@ -6691,13 +6693,13 @@ const Os = [
|
|
|
6691
6693
|
typeOfProduct: r,
|
|
6692
6694
|
fileSize: s,
|
|
6693
6695
|
urls: { iosUrl: g, googleUrl: p },
|
|
6694
|
-
handleIosChange:
|
|
6696
|
+
handleIosChange: S,
|
|
6695
6697
|
handleGoogleChange: k,
|
|
6696
6698
|
disabled: oe,
|
|
6697
6699
|
api: i,
|
|
6698
6700
|
creditDownload: re,
|
|
6699
6701
|
user: a,
|
|
6700
|
-
isTest:
|
|
6702
|
+
isTest: L,
|
|
6701
6703
|
setIsTest: Y,
|
|
6702
6704
|
urlType: x,
|
|
6703
6705
|
setUrlType: E
|
|
@@ -6725,14 +6727,14 @@ const Os = [
|
|
|
6725
6727
|
typeOfProduct: r,
|
|
6726
6728
|
api: i,
|
|
6727
6729
|
user: a,
|
|
6728
|
-
handleDownloadError:
|
|
6730
|
+
handleDownloadError: d,
|
|
6729
6731
|
fetchFileUrl: c,
|
|
6730
6732
|
urls: { iosUrl: g, googleUrl: p },
|
|
6731
6733
|
game: C,
|
|
6732
6734
|
getDownloadCount: Z,
|
|
6733
6735
|
disabled: oe,
|
|
6734
6736
|
setSafariCopyLink: y,
|
|
6735
|
-
isTest:
|
|
6737
|
+
isTest: L,
|
|
6736
6738
|
urlType: x
|
|
6737
6739
|
}
|
|
6738
6740
|
)
|
|
@@ -6757,41 +6759,41 @@ var Hn = { exports: {} }, At = {}, Xn = { exports: {} }, Ye = {}, Qn = { exports
|
|
|
6757
6759
|
* http://api.jqueryui.com/category/ui-core/
|
|
6758
6760
|
*/
|
|
6759
6761
|
var n = "none", r = "contents", o = /input|select|textarea|button|object|iframe/;
|
|
6760
|
-
function i(
|
|
6762
|
+
function i(m, y) {
|
|
6761
6763
|
return y.getPropertyValue("overflow") !== "visible" || // if 'overflow: visible' set, check if there is actually any overflow
|
|
6762
|
-
|
|
6764
|
+
m.scrollWidth <= 0 && m.scrollHeight <= 0;
|
|
6763
6765
|
}
|
|
6764
|
-
function a(
|
|
6765
|
-
var y =
|
|
6766
|
-
if (y && !
|
|
6766
|
+
function a(m) {
|
|
6767
|
+
var y = m.offsetWidth <= 0 && m.offsetHeight <= 0;
|
|
6768
|
+
if (y && !m.innerHTML)
|
|
6767
6769
|
return !0;
|
|
6768
6770
|
try {
|
|
6769
|
-
var g = window.getComputedStyle(
|
|
6770
|
-
return y ? p !== r && i(
|
|
6771
|
+
var g = window.getComputedStyle(m), p = g.getPropertyValue("display");
|
|
6772
|
+
return y ? p !== r && i(m, g) : p === n;
|
|
6771
6773
|
} catch {
|
|
6772
6774
|
return console.warn("Failed to inspect element style"), !1;
|
|
6773
6775
|
}
|
|
6774
6776
|
}
|
|
6775
|
-
function A(
|
|
6776
|
-
for (var y =
|
|
6777
|
+
function A(m) {
|
|
6778
|
+
for (var y = m, g = m.getRootNode && m.getRootNode(); y && y !== document.body; ) {
|
|
6777
6779
|
if (g && y === g && (y = g.host.parentNode), a(y))
|
|
6778
6780
|
return !1;
|
|
6779
6781
|
y = y.parentNode;
|
|
6780
6782
|
}
|
|
6781
6783
|
return !0;
|
|
6782
6784
|
}
|
|
6783
|
-
function m
|
|
6784
|
-
var g =
|
|
6785
|
-
return p && A(
|
|
6785
|
+
function d(m, y) {
|
|
6786
|
+
var g = m.nodeName.toLowerCase(), p = o.test(g) && !m.disabled || g === "a" && m.href || y;
|
|
6787
|
+
return p && A(m);
|
|
6786
6788
|
}
|
|
6787
|
-
function c(
|
|
6788
|
-
var y =
|
|
6789
|
+
function c(m) {
|
|
6790
|
+
var y = m.getAttribute("tabindex");
|
|
6789
6791
|
y === null && (y = void 0);
|
|
6790
6792
|
var g = isNaN(y);
|
|
6791
|
-
return (g || y >= 0) && m
|
|
6793
|
+
return (g || y >= 0) && d(m, !g);
|
|
6792
6794
|
}
|
|
6793
|
-
function s(
|
|
6794
|
-
var y = [].slice.call(
|
|
6795
|
+
function s(m) {
|
|
6796
|
+
var y = [].slice.call(m.querySelectorAll("*"), 0).reduce(function(g, p) {
|
|
6795
6797
|
return g.concat(p.shadowRoot ? s(p.shadowRoot) : [p]);
|
|
6796
6798
|
}, []);
|
|
6797
6799
|
return y.filter(c);
|
|
@@ -6874,30 +6876,30 @@ var Vn = { exports: {} };
|
|
|
6874
6876
|
var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : document;
|
|
6875
6877
|
return A.activeElement.shadowRoot ? i(A.activeElement.shadowRoot) : A.activeElement;
|
|
6876
6878
|
}
|
|
6877
|
-
function a(A,
|
|
6879
|
+
function a(A, d) {
|
|
6878
6880
|
var c = (0, r.default)(A);
|
|
6879
6881
|
if (!c.length) {
|
|
6880
|
-
|
|
6882
|
+
d.preventDefault();
|
|
6881
6883
|
return;
|
|
6882
6884
|
}
|
|
6883
|
-
var s = void 0,
|
|
6885
|
+
var s = void 0, m = d.shiftKey, y = c[0], g = c[c.length - 1], p = i();
|
|
6884
6886
|
if (A === p) {
|
|
6885
|
-
if (!
|
|
6887
|
+
if (!m)
|
|
6886
6888
|
return;
|
|
6887
6889
|
s = g;
|
|
6888
6890
|
}
|
|
6889
|
-
if (g === p && !
|
|
6890
|
-
|
|
6891
|
+
if (g === p && !m && (s = y), y === p && m && (s = g), s) {
|
|
6892
|
+
d.preventDefault(), s.focus();
|
|
6891
6893
|
return;
|
|
6892
6894
|
}
|
|
6893
6895
|
var h = /(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent), v = h != null && h[1] != "Chrome" && /\biPod\b|\biPad\b/g.exec(navigator.userAgent) == null;
|
|
6894
6896
|
if (v) {
|
|
6895
6897
|
var x = c.indexOf(p);
|
|
6896
|
-
if (x > -1 && (x +=
|
|
6897
|
-
|
|
6898
|
+
if (x > -1 && (x += m ? -1 : 1), s = c[x], typeof s > "u") {
|
|
6899
|
+
d.preventDefault(), s = m ? g : y, s.focus();
|
|
6898
6900
|
return;
|
|
6899
6901
|
}
|
|
6900
|
-
|
|
6902
|
+
d.preventDefault(), s.focus();
|
|
6901
6903
|
}
|
|
6902
6904
|
}
|
|
6903
6905
|
e.exports = t.default;
|
|
@@ -6957,10 +6959,10 @@ var Bs = Vs, Us = Fs(Bs);
|
|
|
6957
6959
|
function Fs(e) {
|
|
6958
6960
|
return e && e.__esModule ? e : { default: e };
|
|
6959
6961
|
}
|
|
6960
|
-
var
|
|
6961
|
-
ze.SafeHTMLCollection =
|
|
6962
|
-
ze.SafeNodeList =
|
|
6963
|
-
ze.canUseDOM =
|
|
6962
|
+
var mn = Us.default, _s = mn.canUseDOM ? window.HTMLElement : {};
|
|
6963
|
+
ze.SafeHTMLCollection = mn.canUseDOM ? window.HTMLCollection : {};
|
|
6964
|
+
ze.SafeNodeList = mn.canUseDOM ? window.NodeList : {};
|
|
6965
|
+
ze.canUseDOM = mn.canUseDOM;
|
|
6964
6966
|
ze.default = _s;
|
|
6965
6967
|
Object.defineProperty(je, "__esModule", {
|
|
6966
6968
|
value: !0
|
|
@@ -7088,19 +7090,19 @@ doc.body (` + e + `):
|
|
|
7088
7090
|
}
|
|
7089
7091
|
var cl = function(t, n) {
|
|
7090
7092
|
return t[n] || (t[n] = 0), t[n] += 1, n;
|
|
7091
|
-
},
|
|
7093
|
+
}, dl = function(t, n) {
|
|
7092
7094
|
return t[n] && (t[n] -= 1), n;
|
|
7093
|
-
},
|
|
7095
|
+
}, ml = function(t, n, r) {
|
|
7094
7096
|
r.forEach(function(o) {
|
|
7095
7097
|
cl(n, o), t.add(o);
|
|
7096
7098
|
});
|
|
7097
7099
|
}, pl = function(t, n, r) {
|
|
7098
7100
|
r.forEach(function(o) {
|
|
7099
|
-
|
|
7101
|
+
dl(n, o), n[o] === 0 && t.remove(o);
|
|
7100
7102
|
});
|
|
7101
7103
|
};
|
|
7102
7104
|
ft.add = function(t, n) {
|
|
7103
|
-
return
|
|
7105
|
+
return ml(t.classList, t.nodeName.toLowerCase() == "html" ? rt : ot, n.split(" "));
|
|
7104
7106
|
};
|
|
7105
7107
|
ft.remove = function(t, n) {
|
|
7106
7108
|
return pl(t.classList, t.nodeName.toLowerCase() == "html" ? rt : ot, n.split(" "));
|
|
@@ -7193,8 +7195,8 @@ yl.default.subscribe(Zl);
|
|
|
7193
7195
|
value: !0
|
|
7194
7196
|
});
|
|
7195
7197
|
var n = Object.assign || function(W) {
|
|
7196
|
-
for (var
|
|
7197
|
-
var Y = arguments[
|
|
7198
|
+
for (var L = 1; L < arguments.length; L++) {
|
|
7199
|
+
var Y = arguments[L];
|
|
7198
7200
|
for (var f in Y)
|
|
7199
7201
|
Object.prototype.hasOwnProperty.call(Y, f) && (W[f] = Y[f]);
|
|
7200
7202
|
}
|
|
@@ -7204,60 +7206,60 @@ yl.default.subscribe(Zl);
|
|
|
7204
7206
|
} : function(W) {
|
|
7205
7207
|
return W && typeof Symbol == "function" && W.constructor === Symbol && W !== Symbol.prototype ? "symbol" : typeof W;
|
|
7206
7208
|
}, o = function() {
|
|
7207
|
-
function W(
|
|
7209
|
+
function W(L, Y) {
|
|
7208
7210
|
for (var f = 0; f < Y.length; f++) {
|
|
7209
|
-
var
|
|
7210
|
-
|
|
7211
|
+
var S = Y[f];
|
|
7212
|
+
S.enumerable = S.enumerable || !1, S.configurable = !0, "value" in S && (S.writable = !0), Object.defineProperty(L, S.key, S);
|
|
7211
7213
|
}
|
|
7212
7214
|
}
|
|
7213
|
-
return function(
|
|
7214
|
-
return Y && W(
|
|
7215
|
+
return function(L, Y, f) {
|
|
7216
|
+
return Y && W(L.prototype, Y), f && W(L, f), L;
|
|
7215
7217
|
};
|
|
7216
|
-
}(), i = ae, a = nn, A = C(a),
|
|
7218
|
+
}(), i = ae, a = nn, A = C(a), d = Ye, c = O(d), s = Hs, m = C(s), y = je, g = O(y), p = ft, h = O(p), v = ze, x = C(v), E = ht, J = C(E);
|
|
7217
7219
|
function O(W) {
|
|
7218
7220
|
if (W && W.__esModule)
|
|
7219
7221
|
return W;
|
|
7220
|
-
var
|
|
7222
|
+
var L = {};
|
|
7221
7223
|
if (W != null)
|
|
7222
7224
|
for (var Y in W)
|
|
7223
|
-
Object.prototype.hasOwnProperty.call(W, Y) && (
|
|
7224
|
-
return
|
|
7225
|
+
Object.prototype.hasOwnProperty.call(W, Y) && (L[Y] = W[Y]);
|
|
7226
|
+
return L.default = W, L;
|
|
7225
7227
|
}
|
|
7226
7228
|
function C(W) {
|
|
7227
7229
|
return W && W.__esModule ? W : { default: W };
|
|
7228
7230
|
}
|
|
7229
|
-
function ne(W,
|
|
7230
|
-
if (!(W instanceof
|
|
7231
|
+
function ne(W, L) {
|
|
7232
|
+
if (!(W instanceof L))
|
|
7231
7233
|
throw new TypeError("Cannot call a class as a function");
|
|
7232
7234
|
}
|
|
7233
|
-
function re(W,
|
|
7235
|
+
function re(W, L) {
|
|
7234
7236
|
if (!W)
|
|
7235
7237
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7236
|
-
return
|
|
7238
|
+
return L && (typeof L == "object" || typeof L == "function") ? L : W;
|
|
7237
7239
|
}
|
|
7238
|
-
function U(W,
|
|
7239
|
-
if (typeof
|
|
7240
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
7241
|
-
W.prototype = Object.create(
|
|
7240
|
+
function U(W, L) {
|
|
7241
|
+
if (typeof L != "function" && L !== null)
|
|
7242
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof L);
|
|
7243
|
+
W.prototype = Object.create(L && L.prototype, { constructor: { value: W, enumerable: !1, writable: !0, configurable: !0 } }), L && (Object.setPrototypeOf ? Object.setPrototypeOf(W, L) : W.__proto__ = L);
|
|
7242
7244
|
}
|
|
7243
7245
|
var Ae = {
|
|
7244
7246
|
overlay: "ReactModal__Overlay",
|
|
7245
7247
|
content: "ReactModal__Content"
|
|
7246
|
-
}, F = function(
|
|
7247
|
-
return
|
|
7248
|
-
}, oe = function(
|
|
7249
|
-
return
|
|
7248
|
+
}, F = function(L) {
|
|
7249
|
+
return L.code === "Tab" || L.keyCode === 9;
|
|
7250
|
+
}, oe = function(L) {
|
|
7251
|
+
return L.code === "Escape" || L.keyCode === 27;
|
|
7250
7252
|
}, X = 0, _ = function(W) {
|
|
7251
|
-
U(
|
|
7252
|
-
function
|
|
7253
|
-
ne(this,
|
|
7254
|
-
var f = re(this, (
|
|
7255
|
-
return f.setOverlayRef = function(
|
|
7256
|
-
f.overlay =
|
|
7257
|
-
}, f.setContentRef = function(
|
|
7258
|
-
f.content =
|
|
7253
|
+
U(L, W);
|
|
7254
|
+
function L(Y) {
|
|
7255
|
+
ne(this, L);
|
|
7256
|
+
var f = re(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, Y));
|
|
7257
|
+
return f.setOverlayRef = function(S) {
|
|
7258
|
+
f.overlay = S, f.props.overlayRef && f.props.overlayRef(S);
|
|
7259
|
+
}, f.setContentRef = function(S) {
|
|
7260
|
+
f.content = S, f.props.contentRef && f.props.contentRef(S);
|
|
7259
7261
|
}, f.afterClose = function() {
|
|
7260
|
-
var
|
|
7262
|
+
var S = f.props, k = S.appElement, q = S.ariaHideApp, Z = S.htmlOpenClassName, z = S.bodyOpenClassName, w = S.parentSelector, j = w && w().ownerDocument || document;
|
|
7261
7263
|
z && h.remove(j.body, z), Z && h.remove(j.getElementsByTagName("html")[0], Z), q && X > 0 && (X -= 1, X === 0 && g.show(k)), f.props.shouldFocusAfterRender && (f.props.shouldReturnFocusAfterClose ? (c.returnFocus(f.props.preventScroll), c.teardownScopedFocus()) : c.popWithoutFocus()), f.props.onAfterClose && f.props.onAfterClose(), J.default.deregister(f);
|
|
7262
7264
|
}, f.open = function() {
|
|
7263
7265
|
f.beforeOpen(), f.state.afterOpen && f.state.beforeClose ? (clearTimeout(f.closeTimer), f.setState({ beforeClose: !1 })) : (f.props.shouldFocusAfterRender && (c.setupScopedFocus(f.node), c.markForFocusLater()), f.setState({ isOpen: !0 }, function() {
|
|
@@ -7273,8 +7275,8 @@ yl.default.subscribe(Zl);
|
|
|
7273
7275
|
}, f.focusContent = function() {
|
|
7274
7276
|
return f.content && !f.contentHasFocus() && f.content.focus({ preventScroll: !0 });
|
|
7275
7277
|
}, f.closeWithTimeout = function() {
|
|
7276
|
-
var
|
|
7277
|
-
f.setState({ beforeClose: !0, closesAt:
|
|
7278
|
+
var S = Date.now() + f.props.closeTimeoutMS;
|
|
7279
|
+
f.setState({ beforeClose: !0, closesAt: S }, function() {
|
|
7278
7280
|
f.closeTimer = setTimeout(f.closeWithoutTimeout, f.state.closesAt - Date.now());
|
|
7279
7281
|
});
|
|
7280
7282
|
}, f.closeWithoutTimeout = function() {
|
|
@@ -7284,51 +7286,51 @@ yl.default.subscribe(Zl);
|
|
|
7284
7286
|
afterOpen: !1,
|
|
7285
7287
|
closesAt: null
|
|
7286
7288
|
}, f.afterClose);
|
|
7287
|
-
}, f.handleKeyDown = function(
|
|
7288
|
-
F(
|
|
7289
|
-
}, f.handleOverlayOnClick = function(
|
|
7290
|
-
f.shouldClose === null && (f.shouldClose = !0), f.shouldClose && f.props.shouldCloseOnOverlayClick && (f.ownerHandlesClose() ? f.requestClose(
|
|
7289
|
+
}, f.handleKeyDown = function(S) {
|
|
7290
|
+
F(S) && (0, m.default)(f.content, S), f.props.shouldCloseOnEsc && oe(S) && (S.stopPropagation(), f.requestClose(S));
|
|
7291
|
+
}, f.handleOverlayOnClick = function(S) {
|
|
7292
|
+
f.shouldClose === null && (f.shouldClose = !0), f.shouldClose && f.props.shouldCloseOnOverlayClick && (f.ownerHandlesClose() ? f.requestClose(S) : f.focusContent()), f.shouldClose = null;
|
|
7291
7293
|
}, f.handleContentOnMouseUp = function() {
|
|
7292
7294
|
f.shouldClose = !1;
|
|
7293
|
-
}, f.handleOverlayOnMouseDown = function(
|
|
7294
|
-
!f.props.shouldCloseOnOverlayClick &&
|
|
7295
|
+
}, f.handleOverlayOnMouseDown = function(S) {
|
|
7296
|
+
!f.props.shouldCloseOnOverlayClick && S.target == f.overlay && S.preventDefault();
|
|
7295
7297
|
}, f.handleContentOnClick = function() {
|
|
7296
7298
|
f.shouldClose = !1;
|
|
7297
7299
|
}, f.handleContentOnMouseDown = function() {
|
|
7298
7300
|
f.shouldClose = !1;
|
|
7299
|
-
}, f.requestClose = function(
|
|
7300
|
-
return f.ownerHandlesClose() && f.props.onRequestClose(
|
|
7301
|
+
}, f.requestClose = function(S) {
|
|
7302
|
+
return f.ownerHandlesClose() && f.props.onRequestClose(S);
|
|
7301
7303
|
}, f.ownerHandlesClose = function() {
|
|
7302
7304
|
return f.props.onRequestClose;
|
|
7303
7305
|
}, f.shouldBeClosed = function() {
|
|
7304
7306
|
return !f.state.isOpen && !f.state.beforeClose;
|
|
7305
7307
|
}, f.contentHasFocus = function() {
|
|
7306
7308
|
return document.activeElement === f.content || f.content.contains(document.activeElement);
|
|
7307
|
-
}, f.buildClassName = function(
|
|
7309
|
+
}, f.buildClassName = function(S, k) {
|
|
7308
7310
|
var q = (typeof k > "u" ? "undefined" : r(k)) === "object" ? k : {
|
|
7309
|
-
base: Ae[
|
|
7310
|
-
afterOpen: Ae[
|
|
7311
|
-
beforeClose: Ae[
|
|
7311
|
+
base: Ae[S],
|
|
7312
|
+
afterOpen: Ae[S] + "--after-open",
|
|
7313
|
+
beforeClose: Ae[S] + "--before-close"
|
|
7312
7314
|
}, Z = q.base;
|
|
7313
7315
|
return f.state.afterOpen && (Z = Z + " " + q.afterOpen), f.state.beforeClose && (Z = Z + " " + q.beforeClose), typeof k == "string" && k ? Z + " " + k : Z;
|
|
7314
|
-
}, f.attributesFromObject = function(
|
|
7316
|
+
}, f.attributesFromObject = function(S, k) {
|
|
7315
7317
|
return Object.keys(k).reduce(function(q, Z) {
|
|
7316
|
-
return q[
|
|
7318
|
+
return q[S + "-" + Z] = k[Z], q;
|
|
7317
7319
|
}, {});
|
|
7318
7320
|
}, f.state = {
|
|
7319
7321
|
afterOpen: !1,
|
|
7320
7322
|
beforeClose: !1
|
|
7321
7323
|
}, f.shouldClose = null, f.moveFromContentToOverlay = null, f;
|
|
7322
7324
|
}
|
|
7323
|
-
return o(
|
|
7325
|
+
return o(L, [{
|
|
7324
7326
|
key: "componentDidMount",
|
|
7325
7327
|
value: function() {
|
|
7326
7328
|
this.props.isOpen && this.open();
|
|
7327
7329
|
}
|
|
7328
7330
|
}, {
|
|
7329
7331
|
key: "componentDidUpdate",
|
|
7330
|
-
value: function(f,
|
|
7331
|
-
process.env.NODE_ENV !== "production" && (f.bodyOpenClassName !== this.props.bodyOpenClassName && console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'), f.htmlOpenClassName !== this.props.htmlOpenClassName && console.warn('React-Modal: "htmlOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.')), this.props.isOpen && !f.isOpen ? this.open() : !this.props.isOpen && f.isOpen && this.close(), this.props.shouldFocusAfterRender && this.state.isOpen && !
|
|
7332
|
+
value: function(f, S) {
|
|
7333
|
+
process.env.NODE_ENV !== "production" && (f.bodyOpenClassName !== this.props.bodyOpenClassName && console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'), f.htmlOpenClassName !== this.props.htmlOpenClassName && console.warn('React-Modal: "htmlOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.')), this.props.isOpen && !f.isOpen ? this.open() : !this.props.isOpen && f.isOpen && this.close(), this.props.shouldFocusAfterRender && this.state.isOpen && !S.isOpen && this.focusContent();
|
|
7332
7334
|
}
|
|
7333
7335
|
}, {
|
|
7334
7336
|
key: "componentWillUnmount",
|
|
@@ -7338,14 +7340,14 @@ yl.default.subscribe(Zl);
|
|
|
7338
7340
|
}, {
|
|
7339
7341
|
key: "beforeOpen",
|
|
7340
7342
|
value: function() {
|
|
7341
|
-
var f = this.props,
|
|
7342
|
-
Z && h.add(w.body, Z), q && h.add(w.getElementsByTagName("html")[0], q), k && (X += 1, g.hide(
|
|
7343
|
+
var f = this.props, S = f.appElement, k = f.ariaHideApp, q = f.htmlOpenClassName, Z = f.bodyOpenClassName, z = f.parentSelector, w = z && z().ownerDocument || document;
|
|
7344
|
+
Z && h.add(w.body, Z), q && h.add(w.getElementsByTagName("html")[0], q), k && (X += 1, g.hide(S)), J.default.register(this);
|
|
7343
7345
|
}
|
|
7344
7346
|
// Don't steal focus from inner elements
|
|
7345
7347
|
}, {
|
|
7346
7348
|
key: "render",
|
|
7347
7349
|
value: function() {
|
|
7348
|
-
var f = this.props,
|
|
7350
|
+
var f = this.props, S = f.id, k = f.className, q = f.overlayClassName, Z = f.defaultStyles, z = f.children, w = k ? {} : Z.content, j = q ? {} : Z.overlay;
|
|
7349
7351
|
if (this.shouldBeClosed())
|
|
7350
7352
|
return null;
|
|
7351
7353
|
var Q = {
|
|
@@ -7354,8 +7356,8 @@ yl.default.subscribe(Zl);
|
|
|
7354
7356
|
style: n({}, j, this.props.style.overlay),
|
|
7355
7357
|
onClick: this.handleOverlayOnClick,
|
|
7356
7358
|
onMouseDown: this.handleOverlayOnMouseDown
|
|
7357
|
-
},
|
|
7358
|
-
id:
|
|
7359
|
+
}, R = n({
|
|
7360
|
+
id: S,
|
|
7359
7361
|
ref: this.setContentRef,
|
|
7360
7362
|
style: n({}, w, this.props.style.content),
|
|
7361
7363
|
className: this.buildClassName("content", k),
|
|
@@ -7368,10 +7370,10 @@ yl.default.subscribe(Zl);
|
|
|
7368
7370
|
"aria-label": this.props.contentLabel
|
|
7369
7371
|
}, this.attributesFromObject("aria", n({ modal: !0 }, this.props.aria)), this.attributesFromObject("data", this.props.data || {}), {
|
|
7370
7372
|
"data-testid": this.props.testId
|
|
7371
|
-
}), N = this.props.contentElement(
|
|
7373
|
+
}), N = this.props.contentElement(R, z);
|
|
7372
7374
|
return this.props.overlayElement(Q, N);
|
|
7373
7375
|
}
|
|
7374
|
-
}]),
|
|
7376
|
+
}]), L;
|
|
7375
7377
|
}(i.Component);
|
|
7376
7378
|
_.defaultProps = {
|
|
7377
7379
|
style: {
|
|
@@ -7472,8 +7474,8 @@ https://fb.me/react-async-component-lifecycle-hooks`
|
|
|
7472
7474
|
);
|
|
7473
7475
|
t.componentWillUpdate = li;
|
|
7474
7476
|
var A = t.componentDidUpdate;
|
|
7475
|
-
t.componentDidUpdate = function(c, s,
|
|
7476
|
-
var y = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot :
|
|
7477
|
+
t.componentDidUpdate = function(c, s, m) {
|
|
7478
|
+
var y = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : m;
|
|
7477
7479
|
A.call(this, c, s, y);
|
|
7478
7480
|
};
|
|
7479
7481
|
}
|
|
@@ -7504,7 +7506,7 @@ var ro = Object.assign || function(e) {
|
|
|
7504
7506
|
return function(t, n, r) {
|
|
7505
7507
|
return n && e(t.prototype, n), r && e(t, r), t;
|
|
7506
7508
|
};
|
|
7507
|
-
}(), ui = ae, $t = Et(ui), Ml = ki, en = Et(Ml),
|
|
7509
|
+
}(), ui = ae, $t = Et(ui), Ml = ki, en = Et(Ml), Ll = nn, H = Et(Ll), Sl = Il, oo = Et(Sl), Ol = je, El = zl(Ol), Be = ze, io = Et(Be), kl = Kl;
|
|
7508
7510
|
function zl(e) {
|
|
7509
7511
|
if (e && e.__esModule)
|
|
7510
7512
|
return e;
|
|
@@ -7544,8 +7546,8 @@ var gt = function(e) {
|
|
|
7544
7546
|
function t() {
|
|
7545
7547
|
var n, r, o, i;
|
|
7546
7548
|
Yl(this, t);
|
|
7547
|
-
for (var a = arguments.length, A = Array(a),
|
|
7548
|
-
A[
|
|
7549
|
+
for (var a = arguments.length, A = Array(a), d = 0; d < a; d++)
|
|
7550
|
+
A[d] = arguments[d];
|
|
7549
7551
|
return i = (r = (o = ao(this, (n = t.__proto__ || Object.getPrototypeOf(t)).call.apply(n, [this].concat(A))), o), o.removePortal = function() {
|
|
7550
7552
|
!et && en.default.unmountComponentAtNode(o.node);
|
|
7551
7553
|
var c = Rt(o.props.parentSelector);
|
|
@@ -7553,8 +7555,8 @@ var gt = function(e) {
|
|
|
7553
7555
|
}, o.portalRef = function(c) {
|
|
7554
7556
|
o.portal = c;
|
|
7555
7557
|
}, o.renderPortal = function(c) {
|
|
7556
|
-
var s = Ao(),
|
|
7557
|
-
o.portalRef(
|
|
7558
|
+
var s = Ao(), m = s(o, $t.default.createElement(oo.default, ro({ defaultStyles: t.defaultStyles }, c)), o.node);
|
|
7559
|
+
o.portalRef(m);
|
|
7558
7560
|
}, r), ao(o, i);
|
|
7559
7561
|
}
|
|
7560
7562
|
return Wl(t, [{
|
|
@@ -7576,8 +7578,8 @@ var gt = function(e) {
|
|
|
7576
7578
|
key: "componentDidUpdate",
|
|
7577
7579
|
value: function(r, o, i) {
|
|
7578
7580
|
if (Be.canUseDOM) {
|
|
7579
|
-
var a = this.props, A = a.isOpen,
|
|
7580
|
-
r.portalClassName !==
|
|
7581
|
+
var a = this.props, A = a.isOpen, d = a.portalClassName;
|
|
7582
|
+
r.portalClassName !== d && (this.node.className = d);
|
|
7581
7583
|
var c = i.prevParent, s = i.nextParent;
|
|
7582
7584
|
s !== c && (c.removeChild(this.node), s.appendChild(this.node)), !(!r.isOpen && !A) && !et && this.renderPortal(this.props);
|
|
7583
7585
|
}
|
|
@@ -7968,22 +7970,22 @@ const Un = /* @__PURE__ */ zi(Dl), Rl = ({ width: e, height: t, fill: n }) => /*
|
|
|
7968
7970
|
playableId: i,
|
|
7969
7971
|
typeOfProduct: a,
|
|
7970
7972
|
api: A,
|
|
7971
|
-
user:
|
|
7973
|
+
user: d,
|
|
7972
7974
|
title: c,
|
|
7973
7975
|
iframeUrl: s,
|
|
7974
|
-
handleDownloadError:
|
|
7976
|
+
handleDownloadError: m,
|
|
7975
7977
|
fetchFileUrl: y,
|
|
7976
7978
|
copyLinkUrl: g
|
|
7977
7979
|
}) => {
|
|
7978
|
-
const [p, h] = P(window.innerWidth), [v, x] = P(!1), [E, J] = P(s), [O, C] = P(!1), [ne, re] = P(!0), [U, Ae] = P(null), [F, oe] = P(""), [X, _] = P("Loading..."), [W,
|
|
7980
|
+
const [p, h] = P(window.innerWidth), [v, x] = P(!1), [E, J] = P(s), [O, C] = P(!1), [ne, re] = P(!0), [U, Ae] = P(null), [F, oe] = P(""), [X, _] = P("Loading..."), [W, L] = P("Loading..."), [Y, f] = P("game");
|
|
7979
7981
|
is(a, A, oe, y);
|
|
7980
|
-
const
|
|
7982
|
+
const S = async () => {
|
|
7981
7983
|
Ft(n, "preview", null, null, !1).then((k) => {
|
|
7982
7984
|
x(!0), J(y + "/" + k.url), (a === "Flex" || a === "Ready" || a === "Playable") && (k.size >= 5 ? C(!0) : C(!1), Ae(k.size)), re(!1);
|
|
7983
7985
|
});
|
|
7984
7986
|
};
|
|
7985
7987
|
return Ce(() => {
|
|
7986
|
-
e ? v || (
|
|
7988
|
+
e ? v || (S(), x(!0)) : (x(!1), J(""));
|
|
7987
7989
|
}, [e]), Ce(() => {
|
|
7988
7990
|
const k = () => {
|
|
7989
7991
|
h(window.innerWidth);
|
|
@@ -8180,9 +8182,9 @@ const Un = /* @__PURE__ */ zi(Dl), Rl = ({ width: e, height: t, fill: n }) => /*
|
|
|
8180
8182
|
gameId: r,
|
|
8181
8183
|
typeOfProduct: a,
|
|
8182
8184
|
api: A,
|
|
8183
|
-
user:
|
|
8185
|
+
user: d,
|
|
8184
8186
|
title: c,
|
|
8185
|
-
handleDownloadError:
|
|
8187
|
+
handleDownloadError: m,
|
|
8186
8188
|
fetchFileUrl: y,
|
|
8187
8189
|
fileSize: U,
|
|
8188
8190
|
setFileSize: Ae,
|
|
@@ -8190,7 +8192,7 @@ const Un = /* @__PURE__ */ zi(Dl), Rl = ({ width: e, height: t, fill: n }) => /*
|
|
|
8190
8192
|
iosLink: X,
|
|
8191
8193
|
androidLink: W,
|
|
8192
8194
|
setIosLink: _,
|
|
8193
|
-
setAndroidLink:
|
|
8195
|
+
setAndroidLink: L,
|
|
8194
8196
|
urlType: Y,
|
|
8195
8197
|
setUrlType: f
|
|
8196
8198
|
}
|