gearboxdownloadmodal 6.0.11 → 6.0.13
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 +1223 -1182
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +18 -18
- package/dist/index.umd.js.map +1 -1
- package/dist/insights.svg +14 -14
- package/dist/src/components/Card.d.ts +2 -2
- package/dist/src/components/CardSection.d.ts +2 -2
- package/dist/src/components/Networks.d.ts +6 -0
- package/dist/src/components/Preview.d.ts +3 -0
- package/dist/src/components/Qrcode.d.ts +3 -0
- package/dist/src/services/updatePlayableVersion.d.ts +2 -2
- package/dist/src/utils/generateVersion.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ae, { useState as P, useEffect as Ce, forwardRef as Li, useReducer as Oi, useRef as nt, isValidElement as mt, 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;
|
|
@@ -39,16 +39,16 @@ function ji() {
|
|
|
39
39
|
if (wr)
|
|
40
40
|
return yt;
|
|
41
41
|
wr = 1;
|
|
42
|
-
var e =
|
|
43
|
-
function a(A,
|
|
44
|
-
var s,
|
|
45
|
-
c !== void 0 && (y = "" + c),
|
|
46
|
-
for (s in
|
|
47
|
-
r.call(
|
|
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, m, c) {
|
|
44
|
+
var s, d = {}, y = null, g = null;
|
|
45
|
+
c !== void 0 && (y = "" + c), m.key !== void 0 && (y = "" + m.key), m.ref !== void 0 && (g = m.ref);
|
|
46
|
+
for (s in m)
|
|
47
|
+
r.call(m, s) && !i.hasOwnProperty(s) && (d[s] = m[s]);
|
|
48
48
|
if (A && A.defaultProps)
|
|
49
|
-
for (s in
|
|
50
|
-
|
|
51
|
-
return { $$typeof: t, type: A, key: y, ref:
|
|
49
|
+
for (s in m = A.defaultProps, m)
|
|
50
|
+
d[s] === void 0 && (d[s] = m[s]);
|
|
51
|
+
return { $$typeof: t, type: A, key: y, ref: g, props: d, _owner: o.current };
|
|
52
52
|
}
|
|
53
53
|
return yt.Fragment = n, yt.jsx = a, yt.jsxs = a, yt;
|
|
54
54
|
}
|
|
@@ -65,51 +65,51 @@ 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 =
|
|
69
|
-
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"), m = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), p = Symbol.iterator, h = "@@iterator";
|
|
69
|
+
function v(u) {
|
|
70
70
|
if (u === null || typeof u != "object")
|
|
71
71
|
return null;
|
|
72
|
-
var I = p && u[p] || u[
|
|
72
|
+
var I = p && u[p] || u[h];
|
|
73
73
|
return typeof I == "function" ? I : null;
|
|
74
74
|
}
|
|
75
75
|
var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
76
76
|
function E(u) {
|
|
77
77
|
{
|
|
78
|
-
for (var I = arguments.length,
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
for (var I = arguments.length, M = new Array(I > 1 ? I - 1 : 0), G = 1; G < I; G++)
|
|
79
|
+
M[G - 1] = arguments[G];
|
|
80
|
+
J("error", u, M);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function J(u, I, M) {
|
|
84
84
|
{
|
|
85
|
-
var G = x.ReactDebugCurrentFrame,
|
|
86
|
-
|
|
87
|
-
var ue =
|
|
85
|
+
var G = x.ReactDebugCurrentFrame, ie = G.getStackAddendum();
|
|
86
|
+
ie !== "" && (I += "%s", M = M.concat([ie]));
|
|
87
|
+
var ue = M.map(function(ee) {
|
|
88
88
|
return String(ee);
|
|
89
89
|
});
|
|
90
90
|
ue.unshift("Warning: " + I), Function.prototype.apply.call(console[u], console, ue);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
var
|
|
94
|
-
|
|
95
|
-
function
|
|
96
|
-
return !!(typeof u == "string" || typeof u == "function" || u === r || u === i ||
|
|
93
|
+
var O = !1, C = !1, ne = !1, re = !1, U = !1, Ae;
|
|
94
|
+
Ae = Symbol.for("react.module.reference");
|
|
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 === d || u.$$typeof === a || u.$$typeof === A || u.$$typeof === m || // 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.
|
|
100
|
-
u.$$typeof ===
|
|
100
|
+
u.$$typeof === Ae || u.getModuleId !== void 0));
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function oe(u, I, M) {
|
|
103
103
|
var G = u.displayName;
|
|
104
104
|
if (G)
|
|
105
105
|
return G;
|
|
106
|
-
var
|
|
107
|
-
return
|
|
106
|
+
var ie = I.displayName || I.name || "";
|
|
107
|
+
return ie !== "" ? M + "(" + ie + ")" : M;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function X(u) {
|
|
110
110
|
return u.displayName || "Context";
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function _(u) {
|
|
113
113
|
if (u == null)
|
|
114
114
|
return null;
|
|
115
115
|
if (typeof u.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function")
|
|
@@ -134,19 +134,19 @@ function Ji() {
|
|
|
134
134
|
switch (u.$$typeof) {
|
|
135
135
|
case A:
|
|
136
136
|
var I = u;
|
|
137
|
-
return
|
|
137
|
+
return X(I) + ".Consumer";
|
|
138
138
|
case a:
|
|
139
|
-
var
|
|
140
|
-
return
|
|
141
|
-
case d:
|
|
142
|
-
return re(u, u.render, "ForwardRef");
|
|
139
|
+
var M = u;
|
|
140
|
+
return X(M._context) + ".Provider";
|
|
143
141
|
case m:
|
|
142
|
+
return oe(u, u.render, "ForwardRef");
|
|
143
|
+
case d:
|
|
144
144
|
var G = u.displayName || null;
|
|
145
|
-
return G !== null ? G :
|
|
145
|
+
return G !== null ? G : _(u.type) || "Memo";
|
|
146
146
|
case y: {
|
|
147
|
-
var
|
|
147
|
+
var ie = u, ue = ie._payload, ee = ie._init;
|
|
148
148
|
try {
|
|
149
|
-
return
|
|
149
|
+
return _(ee(ue));
|
|
150
150
|
} catch {
|
|
151
151
|
return null;
|
|
152
152
|
}
|
|
@@ -154,14 +154,14 @@ function Ji() {
|
|
|
154
154
|
}
|
|
155
155
|
return null;
|
|
156
156
|
}
|
|
157
|
-
var W = Object.assign, S = 0, Y, f,
|
|
157
|
+
var W = Object.assign, S = 0, Y, f, L, k, q, Z, z;
|
|
158
158
|
function w() {
|
|
159
159
|
}
|
|
160
160
|
w.__reactDisabledLog = !0;
|
|
161
|
-
function
|
|
161
|
+
function j() {
|
|
162
162
|
{
|
|
163
163
|
if (S === 0) {
|
|
164
|
-
Y = console.log, f = console.info,
|
|
164
|
+
Y = console.log, f = console.info, L = 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,
|
|
@@ -181,7 +181,7 @@ function Ji() {
|
|
|
181
181
|
S++;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function Q() {
|
|
185
185
|
{
|
|
186
186
|
if (S--, S === 0) {
|
|
187
187
|
var u = {
|
|
@@ -197,10 +197,10 @@ function Ji() {
|
|
|
197
197
|
value: f
|
|
198
198
|
}),
|
|
199
199
|
warn: W({}, u, {
|
|
200
|
-
value:
|
|
200
|
+
value: L
|
|
201
201
|
}),
|
|
202
202
|
error: W({}, u, {
|
|
203
|
-
value:
|
|
203
|
+
value: k
|
|
204
204
|
}),
|
|
205
205
|
group: W({}, u, {
|
|
206
206
|
value: q
|
|
@@ -209,7 +209,7 @@ function Ji() {
|
|
|
209
209
|
value: Z
|
|
210
210
|
}),
|
|
211
211
|
groupEnd: W({}, u, {
|
|
212
|
-
value:
|
|
212
|
+
value: z
|
|
213
213
|
})
|
|
214
214
|
});
|
|
215
215
|
}
|
|
@@ -217,38 +217,38 @@ function Ji() {
|
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
var D = x.ReactCurrentDispatcher, N;
|
|
220
|
-
function R(u, I,
|
|
220
|
+
function R(u, I, M) {
|
|
221
221
|
{
|
|
222
222
|
if (N === void 0)
|
|
223
223
|
try {
|
|
224
224
|
throw Error();
|
|
225
|
-
} catch (
|
|
226
|
-
var G =
|
|
225
|
+
} catch (ie) {
|
|
226
|
+
var G = ie.stack.trim().match(/\n( *(at )?)/);
|
|
227
227
|
N = G && G[1] || "";
|
|
228
228
|
}
|
|
229
229
|
return `
|
|
230
230
|
` + N + u;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
var
|
|
233
|
+
var B = !1, T;
|
|
234
234
|
{
|
|
235
|
-
var
|
|
236
|
-
|
|
235
|
+
var V = typeof WeakMap == "function" ? WeakMap : Map;
|
|
236
|
+
T = new V();
|
|
237
237
|
}
|
|
238
238
|
function K(u, I) {
|
|
239
|
-
if (!u ||
|
|
239
|
+
if (!u || B)
|
|
240
240
|
return "";
|
|
241
241
|
{
|
|
242
|
-
var
|
|
243
|
-
if (
|
|
244
|
-
return
|
|
242
|
+
var M = T.get(u);
|
|
243
|
+
if (M !== void 0)
|
|
244
|
+
return M;
|
|
245
245
|
}
|
|
246
246
|
var G;
|
|
247
|
-
|
|
248
|
-
var
|
|
247
|
+
B = !0;
|
|
248
|
+
var ie = Error.prepareStackTrace;
|
|
249
249
|
Error.prepareStackTrace = void 0;
|
|
250
250
|
var ue;
|
|
251
|
-
ue = D.current, D.current = null,
|
|
251
|
+
ue = D.current, D.current = null, j();
|
|
252
252
|
try {
|
|
253
253
|
if (I) {
|
|
254
254
|
var ee = function() {
|
|
@@ -285,35 +285,35 @@ 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
|
+
`), de = $.length - 1, pe = be.length - 1; de >= 1 && pe >= 0 && $[de] !== be[pe]; )
|
|
289
289
|
pe--;
|
|
290
|
-
for (;
|
|
291
|
-
if ($[
|
|
292
|
-
if (
|
|
290
|
+
for (; de >= 1 && pe >= 0; de--, pe--)
|
|
291
|
+
if ($[de] !== be[pe]) {
|
|
292
|
+
if (de !== 1 || pe !== 1)
|
|
293
293
|
do
|
|
294
|
-
if (
|
|
294
|
+
if (de--, pe--, pe < 0 || $[de] !== be[pe]) {
|
|
295
295
|
var We = `
|
|
296
|
-
` + $[
|
|
297
|
-
return u.displayName && We.includes("<anonymous>") && (We = We.replace("<anonymous>", u.displayName)), typeof u == "function" &&
|
|
296
|
+
` + $[de].replace(" at new ", " at ");
|
|
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 (de >= 1 && pe >= 0);
|
|
300
300
|
break;
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
} finally {
|
|
304
|
-
|
|
304
|
+
B = !1, D.current = ue, Q(), Error.prepareStackTrace = ie;
|
|
305
305
|
}
|
|
306
306
|
var ut = u ? u.displayName || u.name : "", Ir = ut ? R(ut) : "";
|
|
307
|
-
return typeof u == "function" &&
|
|
307
|
+
return typeof u == "function" && T.set(u, Ir), Ir;
|
|
308
308
|
}
|
|
309
|
-
function ce(u, I,
|
|
309
|
+
function ce(u, I, M) {
|
|
310
310
|
return K(u, !1);
|
|
311
311
|
}
|
|
312
312
|
function Xe(u) {
|
|
313
313
|
var I = u.prototype;
|
|
314
314
|
return !!(I && I.isReactComponent);
|
|
315
315
|
}
|
|
316
|
-
function we(u, I,
|
|
316
|
+
function we(u, I, M) {
|
|
317
317
|
if (u == null)
|
|
318
318
|
return "";
|
|
319
319
|
if (typeof u == "function")
|
|
@@ -328,29 +328,29 @@ function Ji() {
|
|
|
328
328
|
}
|
|
329
329
|
if (typeof u == "object")
|
|
330
330
|
switch (u.$$typeof) {
|
|
331
|
-
case d:
|
|
332
|
-
return ce(u.render);
|
|
333
331
|
case m:
|
|
334
|
-
return
|
|
332
|
+
return ce(u.render);
|
|
333
|
+
case d:
|
|
334
|
+
return we(u.type, I, M);
|
|
335
335
|
case y: {
|
|
336
|
-
var G = u,
|
|
336
|
+
var G = u, ie = G._payload, ue = G._init;
|
|
337
337
|
try {
|
|
338
|
-
return we(ue(
|
|
338
|
+
return we(ue(ie), I, M);
|
|
339
339
|
} catch {
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
return "";
|
|
344
344
|
}
|
|
345
|
-
var kt = Object.prototype.hasOwnProperty,
|
|
345
|
+
var kt = Object.prototype.hasOwnProperty, mr = {}, dr = x.ReactDebugCurrentFrame;
|
|
346
346
|
function zt(u) {
|
|
347
347
|
if (u) {
|
|
348
|
-
var I = u._owner,
|
|
349
|
-
|
|
348
|
+
var I = u._owner, M = we(u.type, u._source, I ? I.type : null);
|
|
349
|
+
dr.setExtraStackFrame(M);
|
|
350
350
|
} else
|
|
351
|
-
|
|
351
|
+
dr.setExtraStackFrame(null);
|
|
352
352
|
}
|
|
353
|
-
function ci(u, I,
|
|
353
|
+
function ci(u, I, M, G, ie) {
|
|
354
354
|
{
|
|
355
355
|
var ue = Function.call.bind(kt);
|
|
356
356
|
for (var ee in u)
|
|
@@ -358,25 +358,25 @@ function Ji() {
|
|
|
358
358
|
var $ = void 0;
|
|
359
359
|
try {
|
|
360
360
|
if (typeof u[ee] != "function") {
|
|
361
|
-
var be = Error((G || "React class") + ": " +
|
|
361
|
+
var be = Error((G || "React class") + ": " + M + " type `" + ee + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[ee] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
362
362
|
throw be.name = "Invariant Violation", be;
|
|
363
363
|
}
|
|
364
|
-
$ = u[ee](I, ee, G,
|
|
365
|
-
} catch (
|
|
366
|
-
$ =
|
|
364
|
+
$ = u[ee](I, ee, G, M, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
365
|
+
} catch (de) {
|
|
366
|
+
$ = de;
|
|
367
367
|
}
|
|
368
|
-
$ && !($ instanceof Error) && (zt(
|
|
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 mr) && (mr[$.message] = !0, zt(ie), E("Failed %s type: %s", M, $.message), zt(null));
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
var
|
|
372
|
+
var mi = Array.isArray;
|
|
373
373
|
function pn(u) {
|
|
374
|
-
return
|
|
374
|
+
return mi(u);
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function di(u) {
|
|
377
377
|
{
|
|
378
|
-
var I = typeof Symbol == "function" && Symbol.toStringTag,
|
|
379
|
-
return
|
|
378
|
+
var I = typeof Symbol == "function" && Symbol.toStringTag, M = I && u[Symbol.toStringTag] || u.constructor.name || "Object";
|
|
379
|
+
return M;
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
function pi(u) {
|
|
@@ -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.", di(u)), pr(u);
|
|
395
395
|
}
|
|
396
396
|
var qt = x.ReactCurrentOwner, fi = {
|
|
397
397
|
key: !0,
|
|
@@ -418,40 +418,40 @@ function Ji() {
|
|
|
418
418
|
}
|
|
419
419
|
function qi(u, I) {
|
|
420
420
|
if (typeof u.ref == "string" && qt.current && I && qt.current.stateNode !== I) {
|
|
421
|
-
var
|
|
422
|
-
fn[
|
|
421
|
+
var M = _(qt.current.type);
|
|
422
|
+
fn[M] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', _(qt.current.type), u.ref), fn[M] = !0);
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
function yi(u, I) {
|
|
426
426
|
{
|
|
427
|
-
var
|
|
427
|
+
var M = function() {
|
|
428
428
|
hr || (hr = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", I));
|
|
429
429
|
};
|
|
430
|
-
|
|
431
|
-
get:
|
|
430
|
+
M.isReactWarning = !0, Object.defineProperty(u, "key", {
|
|
431
|
+
get: M,
|
|
432
432
|
configurable: !0
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
function vi(u, I) {
|
|
437
437
|
{
|
|
438
|
-
var
|
|
438
|
+
var M = function() {
|
|
439
439
|
gr || (gr = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", I));
|
|
440
440
|
};
|
|
441
|
-
|
|
442
|
-
get:
|
|
441
|
+
M.isReactWarning = !0, Object.defineProperty(u, "ref", {
|
|
442
|
+
get: M,
|
|
443
443
|
configurable: !0
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
var bi = function(u, I,
|
|
447
|
+
var bi = function(u, I, M, G, ie, ue, ee) {
|
|
448
448
|
var $ = {
|
|
449
449
|
// This tag allows us to uniquely identify this as a React Element
|
|
450
450
|
$$typeof: t,
|
|
451
451
|
// Built-in properties that belong on the element
|
|
452
452
|
type: u,
|
|
453
453
|
key: I,
|
|
454
|
-
ref:
|
|
454
|
+
ref: M,
|
|
455
455
|
props: ee,
|
|
456
456
|
// Record the component responsible for creating this element.
|
|
457
457
|
_owner: ue
|
|
@@ -470,32 +470,32 @@ function Ji() {
|
|
|
470
470
|
configurable: !1,
|
|
471
471
|
enumerable: !1,
|
|
472
472
|
writable: !1,
|
|
473
|
-
value:
|
|
473
|
+
value: ie
|
|
474
474
|
}), Object.freeze && (Object.freeze($.props), Object.freeze($)), $;
|
|
475
475
|
};
|
|
476
|
-
function Ci(u, I,
|
|
476
|
+
function Ci(u, I, M, G, ie) {
|
|
477
477
|
{
|
|
478
478
|
var ue, ee = {}, $ = null, be = null;
|
|
479
|
-
|
|
479
|
+
M !== void 0 && (fr(M), $ = "" + M), gi(I) && (fr(I.key), $ = "" + I.key), hi(I) && (be = I.ref, qi(I, ie));
|
|
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 de = u.defaultProps;
|
|
484
|
+
for (ue in de)
|
|
485
|
+
ee[ue] === void 0 && (ee[ue] = de[ue]);
|
|
486
486
|
}
|
|
487
487
|
if ($ || be) {
|
|
488
488
|
var pe = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
|
|
489
489
|
$ && yi(ee, pe), be && vi(ee, pe);
|
|
490
490
|
}
|
|
491
|
-
return bi(u, $, be,
|
|
491
|
+
return bi(u, $, be, ie, G, qt.current, ee);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
var hn = x.ReactCurrentOwner, qr = x.ReactDebugCurrentFrame;
|
|
495
495
|
function lt(u) {
|
|
496
496
|
if (u) {
|
|
497
|
-
var I = u._owner,
|
|
498
|
-
qr.setExtraStackFrame(
|
|
497
|
+
var I = u._owner, M = we(u.type, u._source, I ? I.type : null);
|
|
498
|
+
qr.setExtraStackFrame(M);
|
|
499
499
|
} else
|
|
500
500
|
qr.setExtraStackFrame(null);
|
|
501
501
|
}
|
|
@@ -507,7 +507,7 @@ function Ji() {
|
|
|
507
507
|
function yr() {
|
|
508
508
|
{
|
|
509
509
|
if (hn.current) {
|
|
510
|
-
var u =
|
|
510
|
+
var u = _(hn.current.type);
|
|
511
511
|
if (u)
|
|
512
512
|
return `
|
|
513
513
|
|
|
@@ -519,10 +519,10 @@ Check the render method of \`` + u + "`.";
|
|
|
519
519
|
function Zi(u) {
|
|
520
520
|
{
|
|
521
521
|
if (u !== void 0) {
|
|
522
|
-
var I = u.fileName.replace(/^.*[\\\/]/, ""),
|
|
522
|
+
var I = u.fileName.replace(/^.*[\\\/]/, ""), M = u.lineNumber;
|
|
523
523
|
return `
|
|
524
524
|
|
|
525
|
-
Check your code at ` + I + ":" +
|
|
525
|
+
Check your code at ` + I + ":" + M + ".";
|
|
526
526
|
}
|
|
527
527
|
return "";
|
|
528
528
|
}
|
|
@@ -532,10 +532,10 @@ Check your code at ` + I + ":" + L + ".";
|
|
|
532
532
|
{
|
|
533
533
|
var I = yr();
|
|
534
534
|
if (!I) {
|
|
535
|
-
var
|
|
536
|
-
|
|
535
|
+
var M = typeof u == "string" ? u : u.displayName || u.name;
|
|
536
|
+
M && (I = `
|
|
537
537
|
|
|
538
|
-
Check the top-level render call using <` +
|
|
538
|
+
Check the top-level render call using <` + M + ">.");
|
|
539
539
|
}
|
|
540
540
|
return I;
|
|
541
541
|
}
|
|
@@ -545,12 +545,12 @@ Check the top-level render call using <` + L + ">.");
|
|
|
545
545
|
if (!u._store || u._store.validated || u.key != null)
|
|
546
546
|
return;
|
|
547
547
|
u._store.validated = !0;
|
|
548
|
-
var
|
|
549
|
-
if (vr[
|
|
548
|
+
var M = Ii(I);
|
|
549
|
+
if (vr[M])
|
|
550
550
|
return;
|
|
551
|
-
vr[
|
|
551
|
+
vr[M] = !0;
|
|
552
552
|
var G = "";
|
|
553
|
-
u && u._owner && u._owner !== hn.current && (G = " It was passed a child from " +
|
|
553
|
+
u && u._owner && u._owner !== hn.current && (G = " It was passed a child from " + _(u._owner.type) + "."), lt(u), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', M, G), lt(null);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
function Cr(u, I) {
|
|
@@ -558,16 +558,16 @@ Check the top-level render call using <` + L + ">.");
|
|
|
558
558
|
if (typeof u != "object")
|
|
559
559
|
return;
|
|
560
560
|
if (pn(u))
|
|
561
|
-
for (var
|
|
562
|
-
var G = u[
|
|
561
|
+
for (var M = 0; M < u.length; M++) {
|
|
562
|
+
var G = u[M];
|
|
563
563
|
qn(G) && br(G, I);
|
|
564
564
|
}
|
|
565
565
|
else if (qn(u))
|
|
566
566
|
u._store && (u._store.validated = !0);
|
|
567
567
|
else if (u) {
|
|
568
|
-
var
|
|
569
|
-
if (typeof
|
|
570
|
-
for (var ue =
|
|
568
|
+
var ie = v(u);
|
|
569
|
+
if (typeof ie == "function" && ie !== u.entries)
|
|
570
|
+
for (var ue = ie.call(u), ee; !(ee = ue.next()).done; )
|
|
571
571
|
qn(ee.value) && br(ee.value, I);
|
|
572
572
|
}
|
|
573
573
|
}
|
|
@@ -577,30 +577,30 @@ Check the top-level render call using <` + L + ">.");
|
|
|
577
577
|
var I = u.type;
|
|
578
578
|
if (I == null || typeof I == "string")
|
|
579
579
|
return;
|
|
580
|
-
var
|
|
580
|
+
var M;
|
|
581
581
|
if (typeof I == "function")
|
|
582
|
-
|
|
583
|
-
else if (typeof I == "object" && (I.$$typeof ===
|
|
582
|
+
M = I.propTypes;
|
|
583
|
+
else if (typeof I == "object" && (I.$$typeof === m || // Note: Memo only checks outer props here.
|
|
584
584
|
// Inner props are checked in the reconciler.
|
|
585
|
-
I.$$typeof ===
|
|
586
|
-
|
|
585
|
+
I.$$typeof === d))
|
|
586
|
+
M = I.propTypes;
|
|
587
587
|
else
|
|
588
588
|
return;
|
|
589
|
-
if (
|
|
590
|
-
var G =
|
|
591
|
-
ci(
|
|
589
|
+
if (M) {
|
|
590
|
+
var G = _(I);
|
|
591
|
+
ci(M, u.props, "prop", G, u);
|
|
592
592
|
} else if (I.PropTypes !== void 0 && !gn) {
|
|
593
593
|
gn = !0;
|
|
594
|
-
var
|
|
595
|
-
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
594
|
+
var ie = _(I);
|
|
595
|
+
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ie || "Unknown");
|
|
596
596
|
}
|
|
597
597
|
typeof I.getDefaultProps == "function" && !I.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
function xi(u) {
|
|
601
601
|
{
|
|
602
|
-
for (var I = Object.keys(u.props),
|
|
603
|
-
var G = I[
|
|
602
|
+
for (var I = Object.keys(u.props), M = 0; M < I.length; M++) {
|
|
603
|
+
var G = I[M];
|
|
604
604
|
if (G !== "children" && G !== "key") {
|
|
605
605
|
lt(u), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", G), lt(null);
|
|
606
606
|
break;
|
|
@@ -609,18 +609,18 @@ Check the top-level render call using <` + L + ">.");
|
|
|
609
609
|
u.ref !== null && (lt(u), E("Invalid attribute `ref` supplied to `React.Fragment`."), lt(null));
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
function Zr(u, I,
|
|
612
|
+
function Zr(u, I, M, G, ie, ue) {
|
|
613
613
|
{
|
|
614
|
-
var ee =
|
|
614
|
+
var ee = F(u);
|
|
615
615
|
if (!ee) {
|
|
616
616
|
var $ = "";
|
|
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
|
-
var be = Zi(
|
|
618
|
+
var be = Zi(ie);
|
|
619
619
|
be ? $ += be : $ += yr();
|
|
620
|
-
var
|
|
621
|
-
u === null ?
|
|
620
|
+
var de;
|
|
621
|
+
u === null ? de = "null" : pn(u) ? de = "array" : u !== void 0 && u.$$typeof === t ? (de = "<" + (_(u.type) || "Unknown") + " />", $ = " Did you accidentally export a JSX literal instead of a component?") : de = 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", de, $);
|
|
622
622
|
}
|
|
623
|
-
var pe = Ci(u, I,
|
|
623
|
+
var pe = Ci(u, I, M, ie, ue);
|
|
624
624
|
if (pe == null)
|
|
625
625
|
return pe;
|
|
626
626
|
if (ee) {
|
|
@@ -639,21 +639,21 @@ Check the top-level render call using <` + L + ">.");
|
|
|
639
639
|
return u === r ? xi(pe) : wi(pe), pe;
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
|
-
function Ki(u, I,
|
|
643
|
-
return Zr(u, I,
|
|
642
|
+
function Ki(u, I, M) {
|
|
643
|
+
return Zr(u, I, M, !0);
|
|
644
644
|
}
|
|
645
|
-
function Wi(u, I,
|
|
646
|
-
return Zr(u, I,
|
|
645
|
+
function Wi(u, I, M) {
|
|
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, Si = Ki;
|
|
649
|
+
vt.Fragment = r, vt.jsx = Mi, vt.jsxs = Si;
|
|
650
650
|
}()), vt;
|
|
651
651
|
}
|
|
652
652
|
process.env.NODE_ENV === "production" ? zn.exports = ji() : zn.exports = Ji();
|
|
653
653
|
var l = zn.exports;
|
|
654
654
|
const so = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMyAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE4OThfMzEyMjcpIj4NCiAgICA8cGF0aCBkPSJNMjAuMzQxNiAxMi4yMjY2TDEyLjc5NDkgMTkuNzczMiIgc3Ryb2tlPSIjMEYwRjFFIiBzdHJva2VXaWR0aD0iMS44Ig0KICAgICAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPg0KICAgIDxwYXRoIGQ9Ik0yMC4zNDE2IDE5Ljc3MzJMMTIuNzk0OSAxMi4yMjY2IiBzdHJva2U9IiMwRjBGMUUiIHN0cm9rZVdpZHRoPSIxLjgiDQogICAgICBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIC8+DQogICAgPHBhdGgNCiAgICAgIGQ9Ik0xNi41Njg0IDI4QzkuOTQwMzYgMjggNC41NjgzNiAyMi42MjggNC41NjgzNiAxNkM0LjU2ODM2IDkuMzcyIDkuOTQwMzYgNCAxNi41Njg0IDRDMjMuMTk2NCA0IDI4LjU2ODQgOS4zNzIgMjguNTY4NCAxNkMyOC41Njg0IDIyLjYyOCAyMy4xOTY0IDI4IDE2LjU2ODQgMjhaIg0KICAgICAgc3Ryb2tlPSIjMEYwRjFFIiBzdHJva2VXaWR0aD0iMS44IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIC8+DQogIDwvZz4NCiAgPGRlZnM+DQogICAgPGNsaXBQYXRoIGlkPSJjbGlwMF8xODk4XzMxMjI3Ij4NCiAgICAgIDxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAuNTY4MzU5KSIgLz4NCiAgICA8L2NsaXBQYXRoPg0KICA8L2RlZnM+DQo8L3N2Zz4=", Ni = ({ children: e }) => {
|
|
655
|
-
const [t, n] =
|
|
656
|
-
return
|
|
655
|
+
const [t, n] = P(window.innerWidth);
|
|
656
|
+
return Ce(() => {
|
|
657
657
|
const r = () => {
|
|
658
658
|
n(window.innerWidth);
|
|
659
659
|
};
|
|
@@ -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], m = n[i * 3 + 2], c = 0; c < a; c++)
|
|
955
|
+
o.push(new Je(A, m));
|
|
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 m = -1; m <= 1; m++)
|
|
1197
|
+
o + m < 0 || t <= o + m || A == 0 && m == 0 || a == e.isDark(r + A, o + m) && 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 d = Math.abs(100 * s / t / t - 50) / 5;
|
|
1215
|
+
return n += d * 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 m = A * o, c = this.modules[i][A];
|
|
1280
|
+
c && (r.beginFill(0, 100), r.moveTo(m, a), r.lineTo(m + o, a), r.lineTo(m + o, a + o), r.lineTo(m, 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 m = !1;
|
|
1327
|
+
i < e.length && (m = (e[i] >>> o & 1) == 1);
|
|
1328
1328
|
var c = Fe.getMask(t, r, a - A);
|
|
1329
|
-
c && (
|
|
1329
|
+
c && (m = !m), this.modules[r][a - A] = m, 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,27 +1353,27 @@ 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 m = t[A].dataCount, c = t[A].totalCount - m;
|
|
1357
|
+
r = Math.max(r, m), o = Math.max(o, c), i[A] = new Array(m);
|
|
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 += m;
|
|
1361
|
+
var d = Fe.getErrorCorrectPolynomial(c), y = new Bi(i[A], d.getLength() - 1), g = y.mod(d);
|
|
1362
|
+
a[A] = new Array(d.getLength() - 1);
|
|
1363
1363
|
for (var s = 0; s < a[A].length; s++) {
|
|
1364
|
-
var p = s +
|
|
1365
|
-
a[A][s] = p >= 0 ?
|
|
1364
|
+
var p = s + g.getLength() - a[A].length;
|
|
1365
|
+
a[A][s] = p >= 0 ? g.get(p) : 0;
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
|
-
for (var
|
|
1369
|
-
|
|
1370
|
-
for (var
|
|
1368
|
+
for (var h = 0, s = 0; s < t.length; s++)
|
|
1369
|
+
h += t[s].totalCount;
|
|
1370
|
+
for (var v = new Array(h), x = 0, s = 0; s < r; s++)
|
|
1371
1371
|
for (var A = 0; A < t.length; A++)
|
|
1372
|
-
s < i[A].length && (
|
|
1372
|
+
s < i[A].length && (v[x++] = i[A][s]);
|
|
1373
1373
|
for (var s = 0; s < o; s++)
|
|
1374
1374
|
for (var A = 0; A < t.length; A++)
|
|
1375
|
-
s < a[A].length && (
|
|
1376
|
-
return
|
|
1375
|
+
s < a[A].length && (v[x++] = a[A][s]);
|
|
1376
|
+
return v;
|
|
1377
1377
|
};
|
|
1378
1378
|
var Ui = Ne, Yn = { exports: {} }, jt = { exports: {} }, se = {};
|
|
1379
1379
|
/** @license React v16.13.1
|
|
@@ -1389,67 +1389,67 @@ 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,
|
|
1393
|
-
function
|
|
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, m = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, s = e ? Symbol.for("react.forward_ref") : 60112, d = 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
|
+
function J(C) {
|
|
1394
1394
|
if (typeof C == "object" && C !== null) {
|
|
1395
|
-
var
|
|
1396
|
-
switch (
|
|
1395
|
+
var ne = C.$$typeof;
|
|
1396
|
+
switch (ne) {
|
|
1397
1397
|
case t:
|
|
1398
1398
|
switch (C = C.type, C) {
|
|
1399
|
-
case
|
|
1399
|
+
case m:
|
|
1400
1400
|
case c:
|
|
1401
1401
|
case r:
|
|
1402
1402
|
case i:
|
|
1403
1403
|
case o:
|
|
1404
|
-
case
|
|
1404
|
+
case d:
|
|
1405
1405
|
return C;
|
|
1406
1406
|
default:
|
|
1407
1407
|
switch (C = C && C.$$typeof, C) {
|
|
1408
1408
|
case A:
|
|
1409
1409
|
case s:
|
|
1410
1410
|
case p:
|
|
1411
|
-
case
|
|
1411
|
+
case g:
|
|
1412
1412
|
case a:
|
|
1413
1413
|
return C;
|
|
1414
1414
|
default:
|
|
1415
|
-
return
|
|
1415
|
+
return ne;
|
|
1416
1416
|
}
|
|
1417
1417
|
}
|
|
1418
1418
|
case n:
|
|
1419
|
-
return
|
|
1419
|
+
return ne;
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
1422
|
}
|
|
1423
|
-
function
|
|
1424
|
-
return
|
|
1423
|
+
function O(C) {
|
|
1424
|
+
return J(C) === c;
|
|
1425
1425
|
}
|
|
1426
|
-
return se.AsyncMode =
|
|
1427
|
-
return
|
|
1428
|
-
}, se.isConcurrentMode =
|
|
1429
|
-
return
|
|
1426
|
+
return se.AsyncMode = m, 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 = d, se.isAsyncMode = function(C) {
|
|
1427
|
+
return O(C) || J(C) === m;
|
|
1428
|
+
}, se.isConcurrentMode = O, se.isContextConsumer = function(C) {
|
|
1429
|
+
return J(C) === A;
|
|
1430
1430
|
}, se.isContextProvider = function(C) {
|
|
1431
|
-
return
|
|
1431
|
+
return J(C) === a;
|
|
1432
1432
|
}, se.isElement = function(C) {
|
|
1433
1433
|
return typeof C == "object" && C !== null && C.$$typeof === t;
|
|
1434
1434
|
}, se.isForwardRef = function(C) {
|
|
1435
|
-
return
|
|
1435
|
+
return J(C) === s;
|
|
1436
1436
|
}, se.isFragment = function(C) {
|
|
1437
|
-
return
|
|
1437
|
+
return J(C) === r;
|
|
1438
1438
|
}, se.isLazy = function(C) {
|
|
1439
|
-
return
|
|
1439
|
+
return J(C) === p;
|
|
1440
1440
|
}, se.isMemo = function(C) {
|
|
1441
|
-
return
|
|
1441
|
+
return J(C) === g;
|
|
1442
1442
|
}, se.isPortal = function(C) {
|
|
1443
|
-
return
|
|
1443
|
+
return J(C) === n;
|
|
1444
1444
|
}, se.isProfiler = function(C) {
|
|
1445
|
-
return
|
|
1445
|
+
return J(C) === i;
|
|
1446
1446
|
}, se.isStrictMode = function(C) {
|
|
1447
|
-
return
|
|
1447
|
+
return J(C) === o;
|
|
1448
1448
|
}, se.isSuspense = function(C) {
|
|
1449
|
-
return
|
|
1449
|
+
return J(C) === d;
|
|
1450
1450
|
}, se.isValidElementType = function(C) {
|
|
1451
|
-
return typeof C == "string" || typeof C == "function" || C === r || C === c || C === i || C === o || C ===
|
|
1452
|
-
}, se.typeOf =
|
|
1451
|
+
return typeof C == "string" || typeof C == "function" || C === r || C === c || C === i || C === o || C === d || 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
|
+
}, se.typeOf = J, se;
|
|
1453
1453
|
}
|
|
1454
1454
|
var le = {};
|
|
1455
1455
|
/** @license React v16.13.1
|
|
@@ -1463,24 +1463,24 @@ 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,
|
|
1467
|
-
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, m = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, s = e ? Symbol.for("react.forward_ref") : 60112, d = 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
|
+
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 === d || 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
|
-
function
|
|
1471
|
+
function O(K) {
|
|
1472
1472
|
if (typeof K == "object" && K !== null) {
|
|
1473
1473
|
var ce = K.$$typeof;
|
|
1474
1474
|
switch (ce) {
|
|
1475
1475
|
case t:
|
|
1476
1476
|
var Xe = K.type;
|
|
1477
1477
|
switch (Xe) {
|
|
1478
|
-
case
|
|
1478
|
+
case m:
|
|
1479
1479
|
case c:
|
|
1480
1480
|
case r:
|
|
1481
1481
|
case i:
|
|
1482
1482
|
case o:
|
|
1483
|
-
case
|
|
1483
|
+
case d:
|
|
1484
1484
|
return Xe;
|
|
1485
1485
|
default:
|
|
1486
1486
|
var we = Xe && Xe.$$typeof;
|
|
@@ -1488,7 +1488,7 @@ function _i() {
|
|
|
1488
1488
|
case A:
|
|
1489
1489
|
case s:
|
|
1490
1490
|
case p:
|
|
1491
|
-
case
|
|
1491
|
+
case g:
|
|
1492
1492
|
case a:
|
|
1493
1493
|
return we;
|
|
1494
1494
|
default:
|
|
@@ -1500,63 +1500,63 @@ function _i() {
|
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
1502
1502
|
}
|
|
1503
|
-
var C =
|
|
1504
|
-
function
|
|
1505
|
-
return
|
|
1503
|
+
var C = m, ne = c, re = A, U = a, Ae = t, F = s, oe = r, X = p, _ = g, W = n, S = i, Y = o, f = d, L = !1;
|
|
1504
|
+
function k(K) {
|
|
1505
|
+
return L || (L = !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) === m;
|
|
1506
1506
|
}
|
|
1507
1507
|
function q(K) {
|
|
1508
|
-
return
|
|
1508
|
+
return O(K) === c;
|
|
1509
1509
|
}
|
|
1510
1510
|
function Z(K) {
|
|
1511
|
-
return
|
|
1511
|
+
return O(K) === A;
|
|
1512
1512
|
}
|
|
1513
|
-
function
|
|
1514
|
-
return
|
|
1513
|
+
function z(K) {
|
|
1514
|
+
return O(K) === a;
|
|
1515
1515
|
}
|
|
1516
1516
|
function w(K) {
|
|
1517
1517
|
return typeof K == "object" && K !== null && K.$$typeof === t;
|
|
1518
1518
|
}
|
|
1519
|
-
function
|
|
1520
|
-
return
|
|
1519
|
+
function j(K) {
|
|
1520
|
+
return O(K) === s;
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1523
|
-
return
|
|
1522
|
+
function Q(K) {
|
|
1523
|
+
return O(K) === r;
|
|
1524
1524
|
}
|
|
1525
1525
|
function D(K) {
|
|
1526
|
-
return
|
|
1526
|
+
return O(K) === p;
|
|
1527
1527
|
}
|
|
1528
1528
|
function N(K) {
|
|
1529
|
-
return
|
|
1529
|
+
return O(K) === g;
|
|
1530
1530
|
}
|
|
1531
1531
|
function R(K) {
|
|
1532
|
-
return
|
|
1532
|
+
return O(K) === n;
|
|
1533
1533
|
}
|
|
1534
|
-
function
|
|
1535
|
-
return
|
|
1534
|
+
function B(K) {
|
|
1535
|
+
return O(K) === i;
|
|
1536
1536
|
}
|
|
1537
|
-
function
|
|
1538
|
-
return
|
|
1537
|
+
function T(K) {
|
|
1538
|
+
return O(K) === o;
|
|
1539
1539
|
}
|
|
1540
|
-
function
|
|
1541
|
-
return
|
|
1540
|
+
function V(K) {
|
|
1541
|
+
return O(K) === d;
|
|
1542
1542
|
}
|
|
1543
|
-
le.AsyncMode = C, le.ConcurrentMode =
|
|
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 = S, 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 = D, le.isMemo = N, le.isPortal = R, le.isProfiler = B, le.isStrictMode = T, le.isSuspense = V, le.isValidElementType = J, le.typeOf = O;
|
|
1544
1544
|
}()), le;
|
|
1545
1545
|
}
|
|
1546
|
-
var
|
|
1546
|
+
var Sr;
|
|
1547
1547
|
function qo() {
|
|
1548
|
-
return
|
|
1548
|
+
return Sr || (Sr = 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, Lr;
|
|
1556
1556
|
function $i() {
|
|
1557
|
-
if (
|
|
1557
|
+
if (Lr)
|
|
1558
1558
|
return yn;
|
|
1559
|
-
|
|
1559
|
+
Lr = 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 m = Object.getOwnPropertyNames(a).map(function(s) {
|
|
1576
1576
|
return a[s];
|
|
1577
1577
|
});
|
|
1578
|
-
if (
|
|
1578
|
+
if (m.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, m = 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 d in A)
|
|
1592
|
+
t.call(A, d) && (m[d] = A[d]);
|
|
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]) && (m[c[y]] = A[c[y]]);
|
|
1597
1597
|
}
|
|
1598
1598
|
}
|
|
1599
|
-
return
|
|
1599
|
+
return m;
|
|
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, m, 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 d;
|
|
1637
1637
|
try {
|
|
1638
1638
|
if (typeof i[s] != "function") {
|
|
1639
1639
|
var y = Error(
|
|
1640
|
-
(
|
|
1640
|
+
(m || "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
|
+
d = i[s](a, s, m, A, null, t);
|
|
1645
1645
|
} catch (p) {
|
|
1646
|
-
|
|
1646
|
+
d = p;
|
|
1647
1647
|
}
|
|
1648
|
-
if (
|
|
1649
|
-
(
|
|
1650
|
-
),
|
|
1651
|
-
n[
|
|
1652
|
-
var
|
|
1648
|
+
if (d && !(d instanceof Error) && e(
|
|
1649
|
+
(m || "React class") + ": type specification of " + A + " `" + s + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". 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
|
+
), d instanceof Error && !(d.message in n)) {
|
|
1651
|
+
n[d.message] = !0;
|
|
1652
|
+
var g = c ? c() : "";
|
|
1653
1653
|
e(
|
|
1654
|
-
"Failed " + A + " type: " +
|
|
1654
|
+
"Failed " + A + " type: " + d.message + (g ?? "")
|
|
1655
1655
|
);
|
|
1656
1656
|
}
|
|
1657
1657
|
}
|
|
@@ -1669,24 +1669,24 @@ 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 m = "Warning: " + A;
|
|
1673
|
+
typeof console < "u" && console.error(m);
|
|
1674
1674
|
try {
|
|
1675
|
-
throw new Error(
|
|
1675
|
+
throw new Error(m);
|
|
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, m) {
|
|
1683
1683
|
var c = typeof Symbol == "function" && Symbol.iterator, s = "@@iterator";
|
|
1684
|
-
function
|
|
1684
|
+
function d(q) {
|
|
1685
1685
|
var Z = q && (c && q[c] || q[s]);
|
|
1686
1686
|
if (typeof Z == "function")
|
|
1687
1687
|
return Z;
|
|
1688
1688
|
}
|
|
1689
|
-
var y = "<<anonymous>>",
|
|
1689
|
+
var y = "<<anonymous>>", g = {
|
|
1690
1690
|
array: x("array"),
|
|
1691
1691
|
bigint: x("bigint"),
|
|
1692
1692
|
bool: x("boolean"),
|
|
@@ -1696,30 +1696,30 @@ function ta() {
|
|
|
1696
1696
|
string: x("string"),
|
|
1697
1697
|
symbol: x("symbol"),
|
|
1698
1698
|
any: E(),
|
|
1699
|
-
arrayOf:
|
|
1700
|
-
element:
|
|
1699
|
+
arrayOf: J,
|
|
1700
|
+
element: O(),
|
|
1701
1701
|
elementType: C(),
|
|
1702
|
-
instanceOf:
|
|
1703
|
-
node:
|
|
1704
|
-
objectOf:
|
|
1705
|
-
oneOf:
|
|
1706
|
-
oneOfType:
|
|
1707
|
-
shape:
|
|
1708
|
-
exact:
|
|
1702
|
+
instanceOf: ne,
|
|
1703
|
+
node: F(),
|
|
1704
|
+
objectOf: U,
|
|
1705
|
+
oneOf: re,
|
|
1706
|
+
oneOfType: Ae,
|
|
1707
|
+
shape: X,
|
|
1708
|
+
exact: _
|
|
1709
1709
|
};
|
|
1710
1710
|
function p(q, Z) {
|
|
1711
1711
|
return q === Z ? q !== 0 || 1 / q === 1 / Z : q !== q && Z !== Z;
|
|
1712
1712
|
}
|
|
1713
|
-
function
|
|
1713
|
+
function h(q, Z) {
|
|
1714
1714
|
this.message = q, this.data = Z && typeof Z == "object" ? Z : {}, this.stack = "";
|
|
1715
1715
|
}
|
|
1716
|
-
|
|
1717
|
-
function
|
|
1716
|
+
h.prototype = Error.prototype;
|
|
1717
|
+
function v(q) {
|
|
1718
1718
|
if (process.env.NODE_ENV !== "production")
|
|
1719
|
-
var Z = {},
|
|
1720
|
-
function w(
|
|
1721
|
-
if (R = R || y,
|
|
1722
|
-
if (
|
|
1719
|
+
var Z = {}, z = 0;
|
|
1720
|
+
function w(Q, D, N, R, B, T, V) {
|
|
1721
|
+
if (R = R || y, T = T || N, V !== n) {
|
|
1722
|
+
if (m) {
|
|
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
|
);
|
|
@@ -1727,189 +1727,189 @@ function ta() {
|
|
|
1727
1727
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1728
1728
|
var ce = R + ":" + N;
|
|
1729
1729
|
!Z[ce] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1730
|
-
|
|
1731
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
1732
|
-
), Z[ce] = !0,
|
|
1730
|
+
z < 3 && (i(
|
|
1731
|
+
"You are manually calling a React.PropTypes validation function for the `" + T + "` prop on `" + R + "`. 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
|
+
), Z[ce] = !0, z++);
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
1735
|
-
return D[N] == null ?
|
|
1735
|
+
return D[N] == null ? Q ? D[N] === null ? new h("The " + B + " `" + T + "` is marked as required " + ("in `" + R + "`, but its value is `null`.")) : new h("The " + B + " `" + T + "` is marked as required in " + ("`" + R + "`, but its value is `undefined`.")) : null : q(D, N, R, B, T);
|
|
1736
1736
|
}
|
|
1737
|
-
var
|
|
1738
|
-
return
|
|
1737
|
+
var j = w.bind(null, !1);
|
|
1738
|
+
return j.isRequired = w.bind(null, !0), j;
|
|
1739
1739
|
}
|
|
1740
1740
|
function x(q) {
|
|
1741
|
-
function Z(
|
|
1742
|
-
var R =
|
|
1743
|
-
if (
|
|
1744
|
-
var
|
|
1745
|
-
return new
|
|
1746
|
-
"Invalid " +
|
|
1741
|
+
function Z(z, w, j, Q, D, N) {
|
|
1742
|
+
var R = z[w], B = Y(R);
|
|
1743
|
+
if (B !== q) {
|
|
1744
|
+
var T = f(R);
|
|
1745
|
+
return new h(
|
|
1746
|
+
"Invalid " + Q + " `" + D + "` of type " + ("`" + T + "` supplied to `" + j + "`, expected ") + ("`" + q + "`."),
|
|
1747
1747
|
{ expectedType: q }
|
|
1748
1748
|
);
|
|
1749
1749
|
}
|
|
1750
1750
|
return null;
|
|
1751
1751
|
}
|
|
1752
|
-
return
|
|
1752
|
+
return v(Z);
|
|
1753
1753
|
}
|
|
1754
1754
|
function E() {
|
|
1755
|
-
return
|
|
1755
|
+
return v(a);
|
|
1756
1756
|
}
|
|
1757
|
-
function
|
|
1758
|
-
function Z(
|
|
1757
|
+
function J(q) {
|
|
1758
|
+
function Z(z, w, j, Q, D) {
|
|
1759
1759
|
if (typeof q != "function")
|
|
1760
|
-
return new
|
|
1761
|
-
var N =
|
|
1760
|
+
return new h("Property `" + D + "` of component `" + j + "` has invalid PropType notation inside arrayOf.");
|
|
1761
|
+
var N = z[w];
|
|
1762
1762
|
if (!Array.isArray(N)) {
|
|
1763
1763
|
var R = Y(N);
|
|
1764
|
-
return new
|
|
1764
|
+
return new h("Invalid " + Q + " `" + D + "` of type " + ("`" + R + "` supplied to `" + j + "`, expected an array."));
|
|
1765
1765
|
}
|
|
1766
|
-
for (var
|
|
1767
|
-
var
|
|
1768
|
-
if (
|
|
1769
|
-
return
|
|
1766
|
+
for (var B = 0; B < N.length; B++) {
|
|
1767
|
+
var T = q(N, B, j, Q, D + "[" + B + "]", n);
|
|
1768
|
+
if (T instanceof Error)
|
|
1769
|
+
return T;
|
|
1770
1770
|
}
|
|
1771
1771
|
return null;
|
|
1772
1772
|
}
|
|
1773
|
-
return
|
|
1773
|
+
return v(Z);
|
|
1774
1774
|
}
|
|
1775
|
-
function
|
|
1776
|
-
function q(Z,
|
|
1777
|
-
var D = Z[
|
|
1775
|
+
function O() {
|
|
1776
|
+
function q(Z, z, w, j, Q) {
|
|
1777
|
+
var D = Z[z];
|
|
1778
1778
|
if (!A(D)) {
|
|
1779
1779
|
var N = Y(D);
|
|
1780
|
-
return new
|
|
1780
|
+
return new h("Invalid " + j + " `" + Q + "` of type " + ("`" + N + "` supplied to `" + w + "`, expected a single ReactElement."));
|
|
1781
1781
|
}
|
|
1782
1782
|
return null;
|
|
1783
1783
|
}
|
|
1784
|
-
return
|
|
1784
|
+
return v(q);
|
|
1785
1785
|
}
|
|
1786
1786
|
function C() {
|
|
1787
|
-
function q(Z,
|
|
1788
|
-
var D = Z[
|
|
1787
|
+
function q(Z, z, w, j, Q) {
|
|
1788
|
+
var D = Z[z];
|
|
1789
1789
|
if (!e.isValidElementType(D)) {
|
|
1790
1790
|
var N = Y(D);
|
|
1791
|
-
return new
|
|
1791
|
+
return new h("Invalid " + j + " `" + Q + "` of type " + ("`" + N + "` supplied to `" + w + "`, expected a single ReactElement type."));
|
|
1792
1792
|
}
|
|
1793
1793
|
return null;
|
|
1794
1794
|
}
|
|
1795
|
-
return
|
|
1795
|
+
return v(q);
|
|
1796
1796
|
}
|
|
1797
|
-
function
|
|
1798
|
-
function Z(
|
|
1799
|
-
if (!(
|
|
1800
|
-
var N = q.name || y, R =
|
|
1801
|
-
return new
|
|
1797
|
+
function ne(q) {
|
|
1798
|
+
function Z(z, w, j, Q, D) {
|
|
1799
|
+
if (!(z[w] instanceof q)) {
|
|
1800
|
+
var N = q.name || y, R = k(z[w]);
|
|
1801
|
+
return new h("Invalid " + Q + " `" + D + "` of type " + ("`" + R + "` supplied to `" + j + "`, expected ") + ("instance of `" + N + "`."));
|
|
1802
1802
|
}
|
|
1803
1803
|
return null;
|
|
1804
1804
|
}
|
|
1805
|
-
return
|
|
1805
|
+
return v(Z);
|
|
1806
1806
|
}
|
|
1807
|
-
function
|
|
1807
|
+
function re(q) {
|
|
1808
1808
|
if (!Array.isArray(q))
|
|
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(
|
|
1813
|
-
for (var N =
|
|
1812
|
+
function Z(z, w, j, Q, D) {
|
|
1813
|
+
for (var N = z[w], R = 0; R < q.length; R++)
|
|
1814
1814
|
if (p(N, q[R]))
|
|
1815
1815
|
return null;
|
|
1816
|
-
var
|
|
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
|
|
1820
|
+
return new h("Invalid " + Q + " `" + D + "` of value `" + String(N) + "` " + ("supplied to `" + j + "`, expected one of " + B + "."));
|
|
1821
1821
|
}
|
|
1822
|
-
return
|
|
1822
|
+
return v(Z);
|
|
1823
1823
|
}
|
|
1824
|
-
function
|
|
1825
|
-
function Z(
|
|
1824
|
+
function U(q) {
|
|
1825
|
+
function Z(z, w, j, Q, D) {
|
|
1826
1826
|
if (typeof q != "function")
|
|
1827
|
-
return new
|
|
1828
|
-
var N =
|
|
1827
|
+
return new h("Property `" + D + "` of component `" + j + "` has invalid PropType notation inside objectOf.");
|
|
1828
|
+
var N = z[w], R = Y(N);
|
|
1829
1829
|
if (R !== "object")
|
|
1830
|
-
return new
|
|
1831
|
-
for (var
|
|
1832
|
-
if (r(N,
|
|
1833
|
-
var
|
|
1834
|
-
if (
|
|
1835
|
-
return
|
|
1830
|
+
return new h("Invalid " + Q + " `" + D + "` of type " + ("`" + R + "` supplied to `" + j + "`, expected an object."));
|
|
1831
|
+
for (var B in N)
|
|
1832
|
+
if (r(N, B)) {
|
|
1833
|
+
var T = q(N, B, j, Q, D + "." + B, n);
|
|
1834
|
+
if (T instanceof Error)
|
|
1835
|
+
return T;
|
|
1836
1836
|
}
|
|
1837
1837
|
return null;
|
|
1838
1838
|
}
|
|
1839
|
-
return
|
|
1839
|
+
return v(Z);
|
|
1840
1840
|
}
|
|
1841
|
-
function
|
|
1841
|
+
function Ae(q) {
|
|
1842
1842
|
if (!Array.isArray(q))
|
|
1843
1843
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), a;
|
|
1844
1844
|
for (var Z = 0; Z < q.length; Z++) {
|
|
1845
|
-
var
|
|
1846
|
-
if (typeof
|
|
1845
|
+
var z = q[Z];
|
|
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 " + L(z) + " at index " + Z + "."
|
|
1849
1849
|
), a;
|
|
1850
1850
|
}
|
|
1851
|
-
function w(
|
|
1852
|
-
for (var
|
|
1853
|
-
var
|
|
1851
|
+
function w(j, Q, D, N, R) {
|
|
1852
|
+
for (var B = [], T = 0; T < q.length; T++) {
|
|
1853
|
+
var V = q[T], K = V(j, Q, D, N, R, n);
|
|
1854
1854
|
if (K == null)
|
|
1855
1855
|
return null;
|
|
1856
|
-
K.data && r(K.data, "expectedType") &&
|
|
1856
|
+
K.data && r(K.data, "expectedType") && B.push(K.data.expectedType);
|
|
1857
1857
|
}
|
|
1858
|
-
var ce =
|
|
1859
|
-
return new
|
|
1858
|
+
var ce = B.length > 0 ? ", expected one of type [" + B.join(", ") + "]" : "";
|
|
1859
|
+
return new h("Invalid " + N + " `" + R + "` supplied to " + ("`" + D + "`" + ce + "."));
|
|
1860
1860
|
}
|
|
1861
|
-
return
|
|
1861
|
+
return v(w);
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1864
|
-
function q(Z,
|
|
1865
|
-
return W(Z[
|
|
1863
|
+
function F() {
|
|
1864
|
+
function q(Z, z, w, j, Q) {
|
|
1865
|
+
return W(Z[z]) ? null : new h("Invalid " + j + " `" + Q + "` supplied to " + ("`" + w + "`, expected a ReactNode."));
|
|
1866
1866
|
}
|
|
1867
|
-
return
|
|
1867
|
+
return v(q);
|
|
1868
1868
|
}
|
|
1869
|
-
function
|
|
1870
|
-
return new
|
|
1871
|
-
(q || "React class") + ": " + Z + " type `" +
|
|
1869
|
+
function oe(q, Z, z, w, j) {
|
|
1870
|
+
return new h(
|
|
1871
|
+
(q || "React class") + ": " + Z + " type `" + z + "." + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + j + "`."
|
|
1872
1872
|
);
|
|
1873
1873
|
}
|
|
1874
|
-
function
|
|
1875
|
-
function Z(
|
|
1876
|
-
var N =
|
|
1874
|
+
function X(q) {
|
|
1875
|
+
function Z(z, w, j, Q, D) {
|
|
1876
|
+
var N = z[w], R = Y(N);
|
|
1877
1877
|
if (R !== "object")
|
|
1878
|
-
return new
|
|
1879
|
-
for (var
|
|
1880
|
-
var
|
|
1881
|
-
if (typeof
|
|
1882
|
-
return
|
|
1883
|
-
var
|
|
1884
|
-
if (
|
|
1885
|
-
return
|
|
1878
|
+
return new h("Invalid " + Q + " `" + D + "` of type `" + R + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
1879
|
+
for (var B in q) {
|
|
1880
|
+
var T = q[B];
|
|
1881
|
+
if (typeof T != "function")
|
|
1882
|
+
return oe(j, Q, D, B, f(T));
|
|
1883
|
+
var V = T(N, B, j, Q, D + "." + B, n);
|
|
1884
|
+
if (V)
|
|
1885
|
+
return V;
|
|
1886
1886
|
}
|
|
1887
1887
|
return null;
|
|
1888
1888
|
}
|
|
1889
|
-
return
|
|
1889
|
+
return v(Z);
|
|
1890
1890
|
}
|
|
1891
|
-
function
|
|
1892
|
-
function Z(
|
|
1893
|
-
var N =
|
|
1891
|
+
function _(q) {
|
|
1892
|
+
function Z(z, w, j, Q, D) {
|
|
1893
|
+
var N = z[w], R = Y(N);
|
|
1894
1894
|
if (R !== "object")
|
|
1895
|
-
return new
|
|
1896
|
-
var
|
|
1897
|
-
for (var
|
|
1898
|
-
var
|
|
1899
|
-
if (r(q,
|
|
1900
|
-
return
|
|
1901
|
-
if (!
|
|
1902
|
-
return new
|
|
1903
|
-
"Invalid " +
|
|
1895
|
+
return new h("Invalid " + Q + " `" + D + "` of type `" + R + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
1896
|
+
var B = t({}, z[w], q);
|
|
1897
|
+
for (var T in B) {
|
|
1898
|
+
var V = q[T];
|
|
1899
|
+
if (r(q, T) && typeof V != "function")
|
|
1900
|
+
return oe(j, Q, D, T, f(V));
|
|
1901
|
+
if (!V)
|
|
1902
|
+
return new h(
|
|
1903
|
+
"Invalid " + Q + " `" + D + "` 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 =
|
|
1906
|
+
var K = V(N, T, j, Q, D + "." + T, n);
|
|
1907
1907
|
if (K)
|
|
1908
1908
|
return K;
|
|
1909
1909
|
}
|
|
1910
1910
|
return null;
|
|
1911
1911
|
}
|
|
1912
|
-
return
|
|
1912
|
+
return v(Z);
|
|
1913
1913
|
}
|
|
1914
1914
|
function W(q) {
|
|
1915
1915
|
switch (typeof q) {
|
|
@@ -1924,17 +1924,17 @@ 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 = d(q);
|
|
1928
1928
|
if (Z) {
|
|
1929
|
-
var
|
|
1929
|
+
var z = Z.call(q), w;
|
|
1930
1930
|
if (Z !== q.entries) {
|
|
1931
|
-
for (; !(w =
|
|
1931
|
+
for (; !(w = z.next()).done; )
|
|
1932
1932
|
if (!W(w.value))
|
|
1933
1933
|
return !1;
|
|
1934
1934
|
} else
|
|
1935
|
-
for (; !(w =
|
|
1936
|
-
var
|
|
1937
|
-
if (
|
|
1935
|
+
for (; !(w = z.next()).done; ) {
|
|
1936
|
+
var j = w.value;
|
|
1937
|
+
if (j && !W(j[1]))
|
|
1938
1938
|
return !1;
|
|
1939
1939
|
}
|
|
1940
1940
|
} else
|
|
@@ -1963,7 +1963,7 @@ Valid keys: ` + JSON.stringify(Object.keys(q), null, " ")
|
|
|
1963
1963
|
}
|
|
1964
1964
|
return Z;
|
|
1965
1965
|
}
|
|
1966
|
-
function
|
|
1966
|
+
function L(q) {
|
|
1967
1967
|
var Z = f(q);
|
|
1968
1968
|
switch (Z) {
|
|
1969
1969
|
case "array":
|
|
@@ -1977,10 +1977,10 @@ Valid keys: ` + JSON.stringify(Object.keys(q), null, " ")
|
|
|
1977
1977
|
return Z;
|
|
1978
1978
|
}
|
|
1979
1979
|
}
|
|
1980
|
-
function
|
|
1980
|
+
function k(q) {
|
|
1981
1981
|
return !q.constructor || !q.constructor.name ? y : q.constructor.name;
|
|
1982
1982
|
}
|
|
1983
|
-
return
|
|
1983
|
+
return g.checkPropTypes = o, g.resetWarningCache = o.resetWarningCache, g.PropTypes = g, g;
|
|
1984
1984
|
}, Zn;
|
|
1985
1985
|
}
|
|
1986
1986
|
var In, Yr;
|
|
@@ -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, m, c, s, d) {
|
|
1998
|
+
if (d !== 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, Se = 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: Se.default.oneOfType([Se.default.object, Se.default.string]).isRequired,
|
|
2063
|
+
bgD: Se.default.string.isRequired,
|
|
2064
|
+
fgColor: Se.default.oneOfType([Se.default.object, Se.default.string]).isRequired,
|
|
2065
|
+
fgD: Se.default.string.isRequired,
|
|
2066
|
+
size: Se.default.number.isRequired,
|
|
2067
|
+
title: Se.default.string,
|
|
2068
|
+
viewBoxSize: Se.default.number.isRequired,
|
|
2069
|
+
xmlns: Se.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, m = 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 " + m + " " + m, 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, ma = Wt(ca), da = co, pa = Wt(da), 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"]), m = new ma.default(-1, pa.default[o]);
|
|
2125
|
+
m.addData(a), m.make();
|
|
2126
|
+
var c = m.modules;
|
|
2127
2127
|
return ha.default.createElement(qa.default, ua({}, A, {
|
|
2128
2128
|
bgColor: n,
|
|
2129
|
-
bgD: c.map(function(s,
|
|
2130
|
-
return s.map(function(y,
|
|
2131
|
-
return y ? "" : "M " +
|
|
2129
|
+
bgD: c.map(function(s, d) {
|
|
2130
|
+
return s.map(function(y, g) {
|
|
2131
|
+
return y ? "" : "M " + g + " " + d + " l 1 0 0 1 -1 0 Z";
|
|
2132
2132
|
}).join(" ");
|
|
2133
2133
|
}).join(" "),
|
|
2134
2134
|
fgColor: r,
|
|
2135
|
-
fgD: c.map(function(s,
|
|
2136
|
-
return s.map(function(y,
|
|
2137
|
-
return y ? "M " +
|
|
2135
|
+
fgD: c.map(function(s, d) {
|
|
2136
|
+
return s.map(function(y, g) {
|
|
2137
|
+
return y ? "M " + g + " " + d + " 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"), Sa = Re("Blob"), La = 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 St(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] && St(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 } = {}) => (St(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 } = {}) => (Lt(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"), So = (e, t) => {
|
|
2301
2301
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
2302
|
-
|
|
2302
|
+
St(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
|
+
So(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 } = {}) => (Lt(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", Lo = {
|
|
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 = Lo.ALPHA_DIGIT) => {
|
|
2334
2334
|
let n = "";
|
|
2335
2335
|
const { length: r } = t;
|
|
2336
2336
|
for (; e--; )
|
|
@@ -2348,16 +2348,16 @@ 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 St(r, (a, A) => {
|
|
2352
|
+
const m = n(a, o + 1);
|
|
2353
|
+
!wt(m) && (i[A] = m);
|
|
2354
2354
|
}), t[o] = void 0, i;
|
|
2355
2355
|
}
|
|
2356
2356
|
}
|
|
2357
2357
|
return r;
|
|
2358
2358
|
};
|
|
2359
2359
|
return n(e, 0);
|
|
2360
|
-
}, tA = Re("AsyncFunction"), nA = (e) => e && (An(e) || Oe(e)) && Oe(e.then) && Oe(e.catch),
|
|
2360
|
+
}, tA = Re("AsyncFunction"), nA = (e) => e && (An(e) || Oe(e)) && Oe(e.then) && Oe(e.catch), b = {
|
|
2361
2361
|
isArray: pt,
|
|
2362
2362
|
isArrayBuffer: wo,
|
|
2363
2363
|
isBuffer: Ia,
|
|
@@ -2371,14 +2371,14 @@ const eA = (e) => {
|
|
|
2371
2371
|
isUndefined: wt,
|
|
2372
2372
|
isDate: Wa,
|
|
2373
2373
|
isFile: Ma,
|
|
2374
|
-
isBlob:
|
|
2374
|
+
isBlob: Sa,
|
|
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: La,
|
|
2381
|
+
forEach: St,
|
|
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: So,
|
|
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: Lo,
|
|
2408
2408
|
generateString: _a,
|
|
2409
2409
|
isSpecCompliantForm: $a,
|
|
2410
2410
|
toJSONObject: eA,
|
|
@@ -2414,7 +2414,7 @@ const eA = (e) => {
|
|
|
2414
2414
|
function te(e, t, n, r, o) {
|
|
2415
2415
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o);
|
|
2416
2416
|
}
|
|
2417
|
-
|
|
2417
|
+
b.inherits(te, Error, {
|
|
2418
2418
|
toJSON: function() {
|
|
2419
2419
|
return {
|
|
2420
2420
|
// Standard
|
|
@@ -2429,7 +2429,7 @@ v.inherits(te, Error, {
|
|
|
2429
2429
|
columnNumber: this.columnNumber,
|
|
2430
2430
|
stack: this.stack,
|
|
2431
2431
|
// Axios
|
|
2432
|
-
config:
|
|
2432
|
+
config: b.toJSONObject(this.config),
|
|
2433
2433
|
code: this.code,
|
|
2434
2434
|
status: this.response && this.response.status ? this.response.status : null
|
|
2435
2435
|
};
|
|
@@ -2457,16 +2457,16 @@ 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
|
|
2461
|
-
return
|
|
2460
|
+
return b.toFlatObject(e, a, function(m) {
|
|
2461
|
+
return m !== 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;
|
|
2465
2465
|
function Jn(e) {
|
|
2466
|
-
return
|
|
2466
|
+
return b.isPlainObject(e) || b.isArray(e);
|
|
2467
2467
|
}
|
|
2468
2468
|
function ko(e) {
|
|
2469
|
-
return
|
|
2469
|
+
return b.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
2470
2470
|
}
|
|
2471
2471
|
function Nr(e, t, n) {
|
|
2472
2472
|
return e ? e.concat(t).map(function(o, i) {
|
|
@@ -2474,72 +2474,72 @@ function Nr(e, t, n) {
|
|
|
2474
2474
|
}).join(n ? "." : "") : t;
|
|
2475
2475
|
}
|
|
2476
2476
|
function oA(e) {
|
|
2477
|
-
return
|
|
2477
|
+
return b.isArray(e) && !e.some(Jn);
|
|
2478
2478
|
}
|
|
2479
|
-
const iA =
|
|
2479
|
+
const iA = b.toFlatObject(b, {}, null, function(t) {
|
|
2480
2480
|
return /^is[A-Z]/.test(t);
|
|
2481
2481
|
});
|
|
2482
2482
|
function sn(e, t, n) {
|
|
2483
|
-
if (!
|
|
2483
|
+
if (!b.isObject(e))
|
|
2484
2484
|
throw new TypeError("target must be an object");
|
|
2485
|
-
t = t || new FormData(), n =
|
|
2485
|
+
t = t || new FormData(), n = b.toFlatObject(n, {
|
|
2486
2486
|
metaTokens: !0,
|
|
2487
2487
|
dots: !1,
|
|
2488
2488
|
indexes: !1
|
|
2489
|
-
}, !1, function(
|
|
2490
|
-
return !
|
|
2489
|
+
}, !1, function(h, v) {
|
|
2490
|
+
return !b.isUndefined(v[h]);
|
|
2491
2491
|
});
|
|
2492
|
-
const r = n.metaTokens, o = n.visitor || s, i = n.dots, a = n.indexes,
|
|
2493
|
-
if (!
|
|
2492
|
+
const r = n.metaTokens, o = n.visitor || s, i = n.dots, a = n.indexes, m = (n.Blob || typeof Blob < "u" && Blob) && b.isSpecCompliantForm(t);
|
|
2493
|
+
if (!b.isFunction(o))
|
|
2494
2494
|
throw new TypeError("visitor must be a function");
|
|
2495
2495
|
function c(p) {
|
|
2496
2496
|
if (p === null)
|
|
2497
2497
|
return "";
|
|
2498
|
-
if (
|
|
2498
|
+
if (b.isDate(p))
|
|
2499
2499
|
return p.toISOString();
|
|
2500
|
-
if (!
|
|
2500
|
+
if (!m && b.isBlob(p))
|
|
2501
2501
|
throw new te("Blob is not supported. Use a Buffer instead.");
|
|
2502
|
-
return
|
|
2502
|
+
return b.isArrayBuffer(p) || b.isTypedArray(p) ? m && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
2503
2503
|
}
|
|
2504
|
-
function s(p,
|
|
2504
|
+
function s(p, h, v) {
|
|
2505
2505
|
let x = p;
|
|
2506
|
-
if (p && !
|
|
2507
|
-
if (
|
|
2508
|
-
|
|
2509
|
-
else if (
|
|
2510
|
-
return
|
|
2511
|
-
!(
|
|
2506
|
+
if (p && !v && typeof p == "object") {
|
|
2507
|
+
if (b.endsWith(h, "{}"))
|
|
2508
|
+
h = r ? h : h.slice(0, -2), p = JSON.stringify(p);
|
|
2509
|
+
else if (b.isArray(p) && oA(p) || (b.isFileList(p) || b.endsWith(h, "[]")) && (x = b.toArray(p)))
|
|
2510
|
+
return h = ko(h), x.forEach(function(J, O) {
|
|
2511
|
+
!(b.isUndefined(J) || J === null) && t.append(
|
|
2512
2512
|
// eslint-disable-next-line no-nested-ternary
|
|
2513
|
-
a === !0 ? Nr([
|
|
2514
|
-
c(
|
|
2513
|
+
a === !0 ? Nr([h], O, i) : a === null ? h : h + "[]",
|
|
2514
|
+
c(J)
|
|
2515
2515
|
);
|
|
2516
2516
|
}), !1;
|
|
2517
2517
|
}
|
|
2518
|
-
return Jn(p) ? !0 : (t.append(Nr(
|
|
2518
|
+
return Jn(p) ? !0 : (t.append(Nr(v, h, i), c(p)), !1);
|
|
2519
2519
|
}
|
|
2520
|
-
const
|
|
2520
|
+
const d = [], y = Object.assign(iA, {
|
|
2521
2521
|
defaultVisitor: s,
|
|
2522
2522
|
convertValue: c,
|
|
2523
2523
|
isVisitable: Jn
|
|
2524
2524
|
});
|
|
2525
|
-
function
|
|
2526
|
-
if (!
|
|
2527
|
-
if (
|
|
2528
|
-
throw Error("Circular reference detected in " +
|
|
2529
|
-
|
|
2530
|
-
(!(
|
|
2525
|
+
function g(p, h) {
|
|
2526
|
+
if (!b.isUndefined(p)) {
|
|
2527
|
+
if (d.indexOf(p) !== -1)
|
|
2528
|
+
throw Error("Circular reference detected in " + h.join("."));
|
|
2529
|
+
d.push(p), b.forEach(p, function(x, E) {
|
|
2530
|
+
(!(b.isUndefined(x) || x === null) && o.call(
|
|
2531
2531
|
t,
|
|
2532
2532
|
x,
|
|
2533
|
-
|
|
2534
|
-
|
|
2533
|
+
b.isString(E) ? E.trim() : E,
|
|
2534
|
+
h,
|
|
2535
2535
|
y
|
|
2536
|
-
)) === !0 &&
|
|
2537
|
-
}),
|
|
2536
|
+
)) === !0 && g(x, h ? h.concat(E) : [E]);
|
|
2537
|
+
}), d.pop();
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
|
-
if (!
|
|
2540
|
+
if (!b.isObject(e))
|
|
2541
2541
|
throw new TypeError("data must be an object");
|
|
2542
|
-
return
|
|
2542
|
+
return g(e), t;
|
|
2543
2543
|
}
|
|
2544
2544
|
function Dr(e) {
|
|
2545
2545
|
const t = {
|
|
@@ -2578,7 +2578,7 @@ function Yo(e, t, n) {
|
|
|
2578
2578
|
return e;
|
|
2579
2579
|
const r = n && n.encode || aA, o = n && n.serialize;
|
|
2580
2580
|
let i;
|
|
2581
|
-
if (o ? i = o(t, n) : i =
|
|
2581
|
+
if (o ? i = o(t, n) : i = b.isURLSearchParams(t) ? t.toString() : new er(t, n).toString(r), i) {
|
|
2582
2582
|
const a = e.indexOf("#");
|
|
2583
2583
|
a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
2584
2584
|
}
|
|
@@ -2633,7 +2633,7 @@ class AA {
|
|
|
2633
2633
|
* @returns {void}
|
|
2634
2634
|
*/
|
|
2635
2635
|
forEach(t) {
|
|
2636
|
-
|
|
2636
|
+
b.forEach(this.handlers, function(r) {
|
|
2637
2637
|
r !== null && t(r);
|
|
2638
2638
|
});
|
|
2639
2639
|
}
|
|
@@ -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
|
+
})(), mA = (() => 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,18 +2654,18 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
|
|
|
2654
2654
|
Blob: uA
|
|
2655
2655
|
},
|
|
2656
2656
|
isStandardBrowserEnv: cA,
|
|
2657
|
-
isStandardBrowserWebWorkerEnv:
|
|
2657
|
+
isStandardBrowserWebWorkerEnv: mA,
|
|
2658
2658
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
2659
2659
|
};
|
|
2660
|
-
function
|
|
2660
|
+
function dA(e, t) {
|
|
2661
2661
|
return sn(e, new De.classes.URLSearchParams(), Object.assign({
|
|
2662
2662
|
visitor: function(n, r, o, i) {
|
|
2663
|
-
return De.isNode &&
|
|
2663
|
+
return De.isNode && b.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
2664
2664
|
}
|
|
2665
2665
|
}, t));
|
|
2666
2666
|
}
|
|
2667
2667
|
function pA(e) {
|
|
2668
|
-
return
|
|
2668
|
+
return b.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
2669
2669
|
}
|
|
2670
2670
|
function fA(e) {
|
|
2671
2671
|
const t = {}, n = Object.keys(e);
|
|
@@ -2679,21 +2679,21 @@ 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 &&
|
|
2682
|
+
const A = Number.isFinite(+a), m = i >= n.length;
|
|
2683
|
+
return a = !a && b.isArray(o) ? o.length : a, m ? (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
|
-
if (
|
|
2685
|
+
if (b.isFormData(e) && b.isFunction(e.entries)) {
|
|
2686
2686
|
const n = {};
|
|
2687
|
-
return
|
|
2687
|
+
return b.forEachEntry(e, (r, o) => {
|
|
2688
2688
|
t(pA(r), o, n, 0);
|
|
2689
2689
|
}), n;
|
|
2690
2690
|
}
|
|
2691
2691
|
return null;
|
|
2692
2692
|
}
|
|
2693
2693
|
function hA(e, t, n) {
|
|
2694
|
-
if (
|
|
2694
|
+
if (b.isString(e))
|
|
2695
2695
|
try {
|
|
2696
|
-
return (t || JSON.parse)(e),
|
|
2696
|
+
return (t || JSON.parse)(e), b.trim(e);
|
|
2697
2697
|
} catch (r) {
|
|
2698
2698
|
if (r.name !== "SyntaxError")
|
|
2699
2699
|
throw r;
|
|
@@ -2704,24 +2704,24 @@ const tr = {
|
|
|
2704
2704
|
transitional: jo,
|
|
2705
2705
|
adapter: ["xhr", "http"],
|
|
2706
2706
|
transformRequest: [function(t, n) {
|
|
2707
|
-
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, i =
|
|
2708
|
-
if (i &&
|
|
2707
|
+
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, i = b.isObject(t);
|
|
2708
|
+
if (i && b.isHTMLForm(t) && (t = new FormData(t)), b.isFormData(t))
|
|
2709
2709
|
return o && o ? JSON.stringify(Jo(t)) : t;
|
|
2710
|
-
if (
|
|
2710
|
+
if (b.isArrayBuffer(t) || b.isBuffer(t) || b.isStream(t) || b.isFile(t) || b.isBlob(t))
|
|
2711
2711
|
return t;
|
|
2712
|
-
if (
|
|
2712
|
+
if (b.isArrayBufferView(t))
|
|
2713
2713
|
return t.buffer;
|
|
2714
|
-
if (
|
|
2714
|
+
if (b.isURLSearchParams(t))
|
|
2715
2715
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
2716
2716
|
let A;
|
|
2717
2717
|
if (i) {
|
|
2718
2718
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
2719
|
-
return
|
|
2720
|
-
if ((A =
|
|
2721
|
-
const
|
|
2719
|
+
return dA(t, this.formSerializer).toString();
|
|
2720
|
+
if ((A = b.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
2721
|
+
const m = this.env && this.env.FormData;
|
|
2722
2722
|
return sn(
|
|
2723
2723
|
A ? { "files[]": t } : t,
|
|
2724
|
-
|
|
2724
|
+
m && new m(),
|
|
2725
2725
|
this.formSerializer
|
|
2726
2726
|
);
|
|
2727
2727
|
}
|
|
@@ -2730,7 +2730,7 @@ const tr = {
|
|
|
2730
2730
|
}],
|
|
2731
2731
|
transformResponse: [function(t) {
|
|
2732
2732
|
const n = this.transitional || tr.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
2733
|
-
if (t &&
|
|
2733
|
+
if (t && b.isString(t) && (r && !this.responseType || o)) {
|
|
2734
2734
|
const a = !(n && n.silentJSONParsing) && o;
|
|
2735
2735
|
try {
|
|
2736
2736
|
return JSON.parse(t);
|
|
@@ -2764,10 +2764,10 @@ const tr = {
|
|
|
2764
2764
|
}
|
|
2765
2765
|
}
|
|
2766
2766
|
};
|
|
2767
|
-
|
|
2767
|
+
b.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
2768
2768
|
tr.headers[e] = {};
|
|
2769
2769
|
});
|
|
2770
|
-
const nr = tr, gA =
|
|
2770
|
+
const nr = tr, gA = b.toObjectSet([
|
|
2771
2771
|
"age",
|
|
2772
2772
|
"authorization",
|
|
2773
2773
|
"content-length",
|
|
@@ -2797,7 +2797,7 @@ function bt(e) {
|
|
|
2797
2797
|
return e && String(e).trim().toLowerCase();
|
|
2798
2798
|
}
|
|
2799
2799
|
function Ht(e) {
|
|
2800
|
-
return e === !1 || e == null ? e :
|
|
2800
|
+
return e === !1 || e == null ? e : b.isArray(e) ? e.map(Ht) : String(e);
|
|
2801
2801
|
}
|
|
2802
2802
|
function yA(e) {
|
|
2803
2803
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -2808,12 +2808,12 @@ function yA(e) {
|
|
|
2808
2808
|
}
|
|
2809
2809
|
const vA = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
2810
2810
|
function xn(e, t, n, r, o) {
|
|
2811
|
-
if (
|
|
2811
|
+
if (b.isFunction(r))
|
|
2812
2812
|
return r.call(this, t, n);
|
|
2813
|
-
if (o && (t = n), !!
|
|
2814
|
-
if (
|
|
2813
|
+
if (o && (t = n), !!b.isString(t)) {
|
|
2814
|
+
if (b.isString(r))
|
|
2815
2815
|
return t.indexOf(r) !== -1;
|
|
2816
|
-
if (
|
|
2816
|
+
if (b.isRegExp(r))
|
|
2817
2817
|
return r.test(t);
|
|
2818
2818
|
}
|
|
2819
2819
|
}
|
|
@@ -2821,7 +2821,7 @@ function bA(e) {
|
|
|
2821
2821
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
2822
2822
|
}
|
|
2823
2823
|
function CA(e, t) {
|
|
2824
|
-
const n =
|
|
2824
|
+
const n = b.toCamelCase(" " + t);
|
|
2825
2825
|
["get", "set", "has"].forEach((r) => {
|
|
2826
2826
|
Object.defineProperty(e, r + n, {
|
|
2827
2827
|
value: function(o, i, a) {
|
|
@@ -2837,28 +2837,28 @@ 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, m, c) {
|
|
2841
|
+
const s = bt(m);
|
|
2842
2842
|
if (!s)
|
|
2843
2843
|
throw new Error("header name must be a non-empty string");
|
|
2844
|
-
const
|
|
2845
|
-
(!
|
|
2844
|
+
const d = b.findKey(o, s);
|
|
2845
|
+
(!d || o[d] === void 0 || c === !0 || c === void 0 && o[d] !== !1) && (o[d || m] = Ht(A));
|
|
2846
2846
|
}
|
|
2847
|
-
const a = (A,
|
|
2848
|
-
return
|
|
2847
|
+
const a = (A, m) => b.forEach(A, (c, s) => i(c, s, m));
|
|
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) {
|
|
2851
2851
|
if (t = bt(t), t) {
|
|
2852
|
-
const r =
|
|
2852
|
+
const r = b.findKey(this, t);
|
|
2853
2853
|
if (r) {
|
|
2854
2854
|
const o = this[r];
|
|
2855
2855
|
if (!n)
|
|
2856
2856
|
return o;
|
|
2857
2857
|
if (n === !0)
|
|
2858
2858
|
return yA(o);
|
|
2859
|
-
if (
|
|
2859
|
+
if (b.isFunction(n))
|
|
2860
2860
|
return n.call(this, o, r);
|
|
2861
|
-
if (
|
|
2861
|
+
if (b.isRegExp(n))
|
|
2862
2862
|
return n.exec(o);
|
|
2863
2863
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
2864
2864
|
}
|
|
@@ -2866,7 +2866,7 @@ class ln {
|
|
|
2866
2866
|
}
|
|
2867
2867
|
has(t, n) {
|
|
2868
2868
|
if (t = bt(t), t) {
|
|
2869
|
-
const r =
|
|
2869
|
+
const r = b.findKey(this, t);
|
|
2870
2870
|
return !!(r && this[r] !== void 0 && (!n || xn(this, this[r], r, n)));
|
|
2871
2871
|
}
|
|
2872
2872
|
return !1;
|
|
@@ -2876,11 +2876,11 @@ class ln {
|
|
|
2876
2876
|
let o = !1;
|
|
2877
2877
|
function i(a) {
|
|
2878
2878
|
if (a = bt(a), a) {
|
|
2879
|
-
const A =
|
|
2879
|
+
const A = b.findKey(r, a);
|
|
2880
2880
|
A && (!n || xn(r, r[A], A, n)) && (delete r[A], o = !0);
|
|
2881
2881
|
}
|
|
2882
2882
|
}
|
|
2883
|
-
return
|
|
2883
|
+
return b.isArray(t) ? t.forEach(i) : i(t), o;
|
|
2884
2884
|
}
|
|
2885
2885
|
clear(t) {
|
|
2886
2886
|
const n = Object.keys(this);
|
|
@@ -2893,8 +2893,8 @@ class ln {
|
|
|
2893
2893
|
}
|
|
2894
2894
|
normalize(t) {
|
|
2895
2895
|
const n = this, r = {};
|
|
2896
|
-
return
|
|
2897
|
-
const a =
|
|
2896
|
+
return b.forEach(this, (o, i) => {
|
|
2897
|
+
const a = b.findKey(r, i);
|
|
2898
2898
|
if (a) {
|
|
2899
2899
|
n[a] = Ht(o), delete n[i];
|
|
2900
2900
|
return;
|
|
@@ -2908,8 +2908,8 @@ class ln {
|
|
|
2908
2908
|
}
|
|
2909
2909
|
toJSON(t) {
|
|
2910
2910
|
const n = /* @__PURE__ */ Object.create(null);
|
|
2911
|
-
return
|
|
2912
|
-
r != null && r !== !1 && (n[o] = t &&
|
|
2911
|
+
return b.forEach(this, (r, o) => {
|
|
2912
|
+
r != null && r !== !1 && (n[o] = t && b.isArray(r) ? r.join(", ") : r);
|
|
2913
2913
|
}), n;
|
|
2914
2914
|
}
|
|
2915
2915
|
[Symbol.iterator]() {
|
|
@@ -2937,11 +2937,11 @@ class ln {
|
|
|
2937
2937
|
const A = bt(a);
|
|
2938
2938
|
r[A] || (CA(o, a), r[A] = !0);
|
|
2939
2939
|
}
|
|
2940
|
-
return
|
|
2940
|
+
return b.isArray(t) ? t.forEach(i) : i(t), this;
|
|
2941
2941
|
}
|
|
2942
2942
|
}
|
|
2943
2943
|
ln.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
2944
|
-
|
|
2944
|
+
b.reduceDescriptors(ln.prototype, ({ value: e }, t) => {
|
|
2945
2945
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
2946
2946
|
return {
|
|
2947
2947
|
get: () => e,
|
|
@@ -2950,22 +2950,22 @@ v.reduceDescriptors(ln.prototype, ({ value: e }, t) => {
|
|
|
2950
2950
|
}
|
|
2951
2951
|
};
|
|
2952
2952
|
});
|
|
2953
|
-
|
|
2953
|
+
b.freezeMethods(ln);
|
|
2954
2954
|
const He = ln;
|
|
2955
2955
|
function Kn(e, t) {
|
|
2956
2956
|
const n = this || nr, r = t || n, o = He.from(r.headers);
|
|
2957
2957
|
let i = r.data;
|
|
2958
|
-
return
|
|
2958
|
+
return b.forEach(e, function(A) {
|
|
2959
2959
|
i = A.call(n, i, o.normalize(), t ? t.status : void 0);
|
|
2960
2960
|
}), o.normalize(), i;
|
|
2961
2961
|
}
|
|
2962
2962
|
function No(e) {
|
|
2963
2963
|
return !!(e && e.__CANCEL__);
|
|
2964
2964
|
}
|
|
2965
|
-
function
|
|
2965
|
+
function Lt(e, t, n) {
|
|
2966
2966
|
te.call(this, e ?? "canceled", te.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
2967
2967
|
}
|
|
2968
|
-
|
|
2968
|
+
b.inherits(Lt, 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 m = [];
|
|
2987
|
+
m.push(n + "=" + encodeURIComponent(r)), b.isNumber(o) && m.push("expires=" + new Date(o).toGMTString()), b.isString(i) && m.push("path=" + i), b.isString(a) && m.push("domain=" + a), A === !0 && m.push("secure"), document.cookie = m.join("; ");
|
|
2988
2988
|
},
|
|
2989
2989
|
read: function(n) {
|
|
2990
2990
|
const r = document.cookie.match(new RegExp("(^|;\\s*)(" + n + ")=([^;]*)"));
|
|
@@ -3038,7 +3038,7 @@ const KA = De.isStandardBrowserEnv ? (
|
|
|
3038
3038
|
};
|
|
3039
3039
|
}
|
|
3040
3040
|
return r = o(window.location.href), function(a) {
|
|
3041
|
-
const A =
|
|
3041
|
+
const A = b.isString(a) ? o(a) : a;
|
|
3042
3042
|
return A.protocol === r.protocol && A.host === r.host;
|
|
3043
3043
|
};
|
|
3044
3044
|
}()
|
|
@@ -3058,59 +3058,59 @@ 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(m) {
|
|
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] = m, r[o] = c;
|
|
3064
|
+
let d = i, y = 0;
|
|
3065
|
+
for (; d !== o; )
|
|
3066
|
+
y += n[d++], d = d % e;
|
|
3067
3067
|
if (o = (o + 1) % e, o === i && (i = (i + 1) % e), c - a < t)
|
|
3068
3068
|
return;
|
|
3069
|
-
const
|
|
3070
|
-
return
|
|
3069
|
+
const g = s && c - s;
|
|
3070
|
+
return g ? Math.round(y * 1e3 / g) : void 0;
|
|
3071
3071
|
};
|
|
3072
3072
|
}
|
|
3073
3073
|
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, m = 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: m || void 0,
|
|
3085
|
+
estimated: m && a && c ? (a - i) / m : 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 SA = typeof XMLHttpRequest < "u", LA = SA && 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 m() {
|
|
3097
3097
|
e.cancelToken && e.cancelToken.unsubscribe(A), e.signal && e.signal.removeEventListener("abort", A);
|
|
3098
3098
|
}
|
|
3099
3099
|
let c;
|
|
3100
|
-
|
|
3100
|
+
b.isFormData(o) && (De.isStandardBrowserEnv || De.isStandardBrowserWebWorkerEnv ? i.setContentType(!1) : i.getContentType(/^\s*multipart\/form-data/) ? b.isString(c = i.getContentType()) && i.setContentType(c.replace(/^\s*(multipart\/form-data);+/, "$1")) : i.setContentType("multipart/form-data"));
|
|
3101
3101
|
let s = new XMLHttpRequest();
|
|
3102
3102
|
if (e.auth) {
|
|
3103
|
-
const p = e.auth.username || "",
|
|
3104
|
-
i.set("Authorization", "Basic " + btoa(p + ":" +
|
|
3103
|
+
const p = e.auth.username || "", h = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
3104
|
+
i.set("Authorization", "Basic " + btoa(p + ":" + h));
|
|
3105
3105
|
}
|
|
3106
|
-
const
|
|
3107
|
-
s.open(e.method.toUpperCase(), Yo(
|
|
3106
|
+
const d = Do(e.baseURL, e.url);
|
|
3107
|
+
s.open(e.method.toUpperCase(), Yo(d, e.params, e.paramsSerializer), !0), s.timeout = e.timeout;
|
|
3108
3108
|
function y() {
|
|
3109
3109
|
if (!s)
|
|
3110
3110
|
return;
|
|
3111
3111
|
const p = He.from(
|
|
3112
3112
|
"getAllResponseHeaders" in s && s.getAllResponseHeaders()
|
|
3113
|
-
),
|
|
3113
|
+
), v = {
|
|
3114
3114
|
data: !a || a === "text" || a === "json" ? s.responseText : s.response,
|
|
3115
3115
|
status: s.status,
|
|
3116
3116
|
statusText: s.statusText,
|
|
@@ -3119,10 +3119,10 @@ const LA = typeof XMLHttpRequest < "u", SA = LA && function(e) {
|
|
|
3119
3119
|
request: s
|
|
3120
3120
|
};
|
|
3121
3121
|
ZA(function(E) {
|
|
3122
|
-
n(E),
|
|
3122
|
+
n(E), m();
|
|
3123
3123
|
}, function(E) {
|
|
3124
|
-
r(E),
|
|
3125
|
-
},
|
|
3124
|
+
r(E), m();
|
|
3125
|
+
}, v), s = null;
|
|
3126
3126
|
}
|
|
3127
3127
|
if ("onloadend" in s ? s.onloadend = y : s.onreadystatechange = function() {
|
|
3128
3128
|
!s || s.readyState !== 4 || s.status === 0 && !(s.responseURL && s.responseURL.indexOf("file:") === 0) || setTimeout(y);
|
|
@@ -3131,35 +3131,35 @@ const LA = typeof XMLHttpRequest < "u", SA = LA && function(e) {
|
|
|
3131
3131
|
}, s.onerror = function() {
|
|
3132
3132
|
r(new te("Network Error", te.ERR_NETWORK, e, s)), s = null;
|
|
3133
3133
|
}, s.ontimeout = function() {
|
|
3134
|
-
let
|
|
3135
|
-
const
|
|
3136
|
-
e.timeoutErrorMessage && (
|
|
3137
|
-
|
|
3138
|
-
|
|
3134
|
+
let h = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
3135
|
+
const v = e.transitional || jo;
|
|
3136
|
+
e.timeoutErrorMessage && (h = e.timeoutErrorMessage), r(new te(
|
|
3137
|
+
h,
|
|
3138
|
+
v.clarifyTimeoutError ? te.ETIMEDOUT : te.ECONNABORTED,
|
|
3139
3139
|
e,
|
|
3140
3140
|
s
|
|
3141
3141
|
)), s = null;
|
|
3142
3142
|
}, De.isStandardBrowserEnv) {
|
|
3143
|
-
const p = (e.withCredentials || KA(
|
|
3143
|
+
const p = (e.withCredentials || KA(d)) && e.xsrfCookieName && IA.read(e.xsrfCookieName);
|
|
3144
3144
|
p && i.set(e.xsrfHeaderName, p);
|
|
3145
3145
|
}
|
|
3146
|
-
o === void 0 && i.setContentType(null), "setRequestHeader" in s &&
|
|
3147
|
-
s.setRequestHeader(
|
|
3148
|
-
}),
|
|
3149
|
-
s && (r(!p || p.type ? new
|
|
3146
|
+
o === void 0 && i.setContentType(null), "setRequestHeader" in s && b.forEach(i.toJSON(), function(h, v) {
|
|
3147
|
+
s.setRequestHeader(v, h);
|
|
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 Lt(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
|
|
3152
|
-
if (
|
|
3153
|
-
r(new te("Unsupported protocol " +
|
|
3151
|
+
const g = WA(d);
|
|
3152
|
+
if (g && De.protocols.indexOf(g) === -1) {
|
|
3153
|
+
r(new te("Unsupported protocol " + g + ":", te.ERR_BAD_REQUEST, e));
|
|
3154
3154
|
return;
|
|
3155
3155
|
}
|
|
3156
3156
|
s.send(o || null);
|
|
3157
3157
|
});
|
|
3158
3158
|
}, Nn = {
|
|
3159
3159
|
http: rA,
|
|
3160
|
-
xhr:
|
|
3160
|
+
xhr: LA
|
|
3161
3161
|
};
|
|
3162
|
-
|
|
3162
|
+
b.forEach(Nn, (e, t) => {
|
|
3163
3163
|
if (e) {
|
|
3164
3164
|
try {
|
|
3165
3165
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -3168,9 +3168,9 @@ v.forEach(Nn, (e, t) => {
|
|
|
3168
3168
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
3169
3169
|
}
|
|
3170
3170
|
});
|
|
3171
|
-
const Hr = (e) => `- ${e}`, OA = (e) =>
|
|
3171
|
+
const Hr = (e) => `- ${e}`, OA = (e) => b.isFunction(e) || e === null || e === !1, Ro = {
|
|
3172
3172
|
getAdapter: (e) => {
|
|
3173
|
-
e =
|
|
3173
|
+
e = b.isArray(e) ? e : [e];
|
|
3174
3174
|
const { length: t } = e;
|
|
3175
3175
|
let n, r;
|
|
3176
3176
|
const o = {};
|
|
@@ -3185,7 +3185,7 @@ const Hr = (e) => `- ${e}`, OA = (e) => v.isFunction(e) || e === null || e === !
|
|
|
3185
3185
|
}
|
|
3186
3186
|
if (!r) {
|
|
3187
3187
|
const i = Object.entries(o).map(
|
|
3188
|
-
([A,
|
|
3188
|
+
([A, m]) => `adapter ${A} ` + (m === !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) => v.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 Lt(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,37 +3222,37 @@ function Xr(e) {
|
|
|
3222
3222
|
});
|
|
3223
3223
|
}
|
|
3224
3224
|
const Qr = (e) => e instanceof He ? e.toJSON() : e;
|
|
3225
|
-
function
|
|
3225
|
+
function dt(e, t) {
|
|
3226
3226
|
t = t || {};
|
|
3227
3227
|
const n = {};
|
|
3228
|
-
function r(c, s,
|
|
3229
|
-
return
|
|
3228
|
+
function r(c, s, d) {
|
|
3229
|
+
return b.isPlainObject(c) && b.isPlainObject(s) ? b.merge.call({ caseless: d }, c, s) : b.isPlainObject(s) ? b.merge({}, s) : b.isArray(s) ? s.slice() : s;
|
|
3230
3230
|
}
|
|
3231
|
-
function o(c, s,
|
|
3232
|
-
if (
|
|
3233
|
-
if (!
|
|
3234
|
-
return r(void 0, c,
|
|
3231
|
+
function o(c, s, d) {
|
|
3232
|
+
if (b.isUndefined(s)) {
|
|
3233
|
+
if (!b.isUndefined(c))
|
|
3234
|
+
return r(void 0, c, d);
|
|
3235
3235
|
} else
|
|
3236
|
-
return r(c, s,
|
|
3236
|
+
return r(c, s, d);
|
|
3237
3237
|
}
|
|
3238
3238
|
function i(c, s) {
|
|
3239
|
-
if (!
|
|
3239
|
+
if (!b.isUndefined(s))
|
|
3240
3240
|
return r(void 0, s);
|
|
3241
3241
|
}
|
|
3242
3242
|
function a(c, s) {
|
|
3243
|
-
if (
|
|
3244
|
-
if (!
|
|
3243
|
+
if (b.isUndefined(s)) {
|
|
3244
|
+
if (!b.isUndefined(c))
|
|
3245
3245
|
return r(void 0, c);
|
|
3246
3246
|
} else
|
|
3247
3247
|
return r(void 0, s);
|
|
3248
3248
|
}
|
|
3249
|
-
function A(c, s,
|
|
3250
|
-
if (
|
|
3249
|
+
function A(c, s, d) {
|
|
3250
|
+
if (d in t)
|
|
3251
3251
|
return r(c, s);
|
|
3252
|
-
if (
|
|
3252
|
+
if (d in e)
|
|
3253
3253
|
return r(void 0, c);
|
|
3254
3254
|
}
|
|
3255
|
-
const
|
|
3255
|
+
const m = {
|
|
3256
3256
|
url: i,
|
|
3257
3257
|
method: i,
|
|
3258
3258
|
data: i,
|
|
@@ -3282,9 +3282,9 @@ function mt(e, t) {
|
|
|
3282
3282
|
validateStatus: A,
|
|
3283
3283
|
headers: (c, s) => o(Qr(c), Qr(s), !0)
|
|
3284
3284
|
};
|
|
3285
|
-
return
|
|
3286
|
-
const
|
|
3287
|
-
|
|
3285
|
+
return b.forEach(Object.keys(Object.assign({}, e, t)), function(s) {
|
|
3286
|
+
const d = m[s] || o, y = d(e[s], t[s], s);
|
|
3287
|
+
b.isUndefined(y) && d !== 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], m = A === void 0 || a(A, i, e);
|
|
3324
|
+
if (m !== !0)
|
|
3325
|
+
throw new te("option " + i + " must be " + m, te.ERR_BAD_OPTION_VALUE);
|
|
3326
3326
|
continue;
|
|
3327
3327
|
}
|
|
3328
3328
|
if (n !== !0)
|
|
@@ -3349,83 +3349,83 @@ 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 = dt(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),
|
|
3356
3356
|
forcedJSONParsing: Pe.transitional(Pe.boolean),
|
|
3357
3357
|
clarifyTimeoutError: Pe.transitional(Pe.boolean)
|
|
3358
|
-
}, !1), o != null && (
|
|
3358
|
+
}, !1), o != null && (b.isFunction(o) ? n.paramsSerializer = {
|
|
3359
3359
|
serialize: o
|
|
3360
3360
|
} : Dn.assertOptions(o, {
|
|
3361
3361
|
encode: Pe.function,
|
|
3362
3362
|
serialize: Pe.function
|
|
3363
3363
|
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
3364
|
-
let a = i &&
|
|
3364
|
+
let a = i && b.merge(
|
|
3365
3365
|
i.common,
|
|
3366
3366
|
i[n.method]
|
|
3367
3367
|
);
|
|
3368
|
-
i &&
|
|
3368
|
+
i && b.forEach(
|
|
3369
3369
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
3370
3370
|
(p) => {
|
|
3371
3371
|
delete i[p];
|
|
3372
3372
|
}
|
|
3373
3373
|
), n.headers = He.concat(a, i);
|
|
3374
3374
|
const A = [];
|
|
3375
|
-
let
|
|
3376
|
-
this.interceptors.request.forEach(function(
|
|
3377
|
-
typeof
|
|
3375
|
+
let m = !0;
|
|
3376
|
+
this.interceptors.request.forEach(function(h) {
|
|
3377
|
+
typeof h.runWhen == "function" && h.runWhen(n) === !1 || (m = m && h.synchronous, A.unshift(h.fulfilled, h.rejected));
|
|
3378
3378
|
});
|
|
3379
3379
|
const c = [];
|
|
3380
|
-
this.interceptors.response.forEach(function(
|
|
3381
|
-
c.push(
|
|
3380
|
+
this.interceptors.response.forEach(function(h) {
|
|
3381
|
+
c.push(h.fulfilled, h.rejected);
|
|
3382
3382
|
});
|
|
3383
|
-
let s,
|
|
3384
|
-
if (!
|
|
3383
|
+
let s, d = 0, y;
|
|
3384
|
+
if (!m) {
|
|
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); d < y; )
|
|
3387
|
+
s = s.then(p[d++], p[d++]);
|
|
3388
3388
|
return s;
|
|
3389
3389
|
}
|
|
3390
3390
|
y = A.length;
|
|
3391
|
-
let
|
|
3392
|
-
for (
|
|
3393
|
-
const p = A[
|
|
3391
|
+
let g = n;
|
|
3392
|
+
for (d = 0; d < y; ) {
|
|
3393
|
+
const p = A[d++], h = A[d++];
|
|
3394
3394
|
try {
|
|
3395
|
-
|
|
3396
|
-
} catch (
|
|
3397
|
-
|
|
3395
|
+
g = p(g);
|
|
3396
|
+
} catch (v) {
|
|
3397
|
+
h.call(this, v);
|
|
3398
3398
|
break;
|
|
3399
3399
|
}
|
|
3400
3400
|
}
|
|
3401
3401
|
try {
|
|
3402
|
-
s = Xr.call(this,
|
|
3402
|
+
s = Xr.call(this, g);
|
|
3403
3403
|
} catch (p) {
|
|
3404
3404
|
return Promise.reject(p);
|
|
3405
3405
|
}
|
|
3406
|
-
for (
|
|
3407
|
-
s = s.then(c[
|
|
3406
|
+
for (d = 0, y = c.length; d < y; )
|
|
3407
|
+
s = s.then(c[d++], c[d++]);
|
|
3408
3408
|
return s;
|
|
3409
3409
|
}
|
|
3410
3410
|
getUri(t) {
|
|
3411
|
-
t =
|
|
3411
|
+
t = dt(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(dt(r || {}, {
|
|
3419
3419
|
method: t,
|
|
3420
3420
|
url: n,
|
|
3421
3421
|
data: (r || {}).data
|
|
3422
3422
|
}));
|
|
3423
3423
|
};
|
|
3424
3424
|
});
|
|
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(dt(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 Lt(i, a, A), n(r.reason));
|
|
3467
3467
|
});
|
|
3468
3468
|
}
|
|
3469
3469
|
/**
|
|
@@ -3513,7 +3513,7 @@ function zA(e) {
|
|
|
3513
3513
|
};
|
|
3514
3514
|
}
|
|
3515
3515
|
function YA(e) {
|
|
3516
|
-
return
|
|
3516
|
+
return b.isObject(e) && e.isAxiosError === !0;
|
|
3517
3517
|
}
|
|
3518
3518
|
const Rn = {
|
|
3519
3519
|
Continue: 100,
|
|
@@ -3586,13 +3586,13 @@ Object.entries(Rn).forEach(([e, t]) => {
|
|
|
3586
3586
|
const jA = Rn;
|
|
3587
3587
|
function To(e) {
|
|
3588
3588
|
const t = new Xt(e), n = Io(Xt.prototype.request, t);
|
|
3589
|
-
return
|
|
3590
|
-
return To(
|
|
3589
|
+
return b.extend(n, Xt.prototype, t, { allOwnKeys: !0 }), b.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
3590
|
+
return To(dt(e, o));
|
|
3591
3591
|
}, n;
|
|
3592
3592
|
}
|
|
3593
3593
|
const fe = To(nr);
|
|
3594
3594
|
fe.Axios = Xt;
|
|
3595
|
-
fe.CanceledError =
|
|
3595
|
+
fe.CanceledError = Lt;
|
|
3596
3596
|
fe.CancelToken = kA;
|
|
3597
3597
|
fe.isCancel = No;
|
|
3598
3598
|
fe.VERSION = Go;
|
|
@@ -3604,9 +3604,9 @@ fe.all = function(t) {
|
|
|
3604
3604
|
};
|
|
3605
3605
|
fe.spread = zA;
|
|
3606
3606
|
fe.isAxiosError = YA;
|
|
3607
|
-
fe.mergeConfig =
|
|
3607
|
+
fe.mergeConfig = dt;
|
|
3608
3608
|
fe.AxiosHeaders = He;
|
|
3609
|
-
fe.formToJSON = (e) => Jo(
|
|
3609
|
+
fe.formToJSON = (e) => Jo(b.isHTMLForm(e) ? new FormData(e) : e);
|
|
3610
3610
|
fe.getAdapter = Ro.getAdapter;
|
|
3611
3611
|
fe.HttpStatusCode = jA;
|
|
3612
3612
|
fe.default = fe;
|
|
@@ -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",
|
|
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) => mt(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,25 +3780,25 @@ 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
|
|
3783
|
+
let { children: A, position: m, preventExitTransition: c, done: s, nodeRef: d, isIn: y } = a;
|
|
3784
|
+
const g = r ? `${t}--${m}` : t, p = r ? `${n}--${m}` : n, h = nt(0);
|
|
3785
3785
|
return Ei(() => {
|
|
3786
|
-
const
|
|
3787
|
-
|
|
3786
|
+
const v = d.current, x = g.split(" "), E = (J) => {
|
|
3787
|
+
J.target === d.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
|
-
|
|
3790
|
-
}, []),
|
|
3791
|
-
const
|
|
3792
|
-
|
|
3789
|
+
v.classList.add(...x), v.addEventListener("animationend", E), v.addEventListener("animationcancel", E);
|
|
3790
|
+
}, []), Ce(() => {
|
|
3791
|
+
const v = d.current, x = () => {
|
|
3792
|
+
v.removeEventListener("animationend", x), o ? BA(v, s, i) : s();
|
|
3793
3793
|
};
|
|
3794
|
-
y || (c ? x() : (
|
|
3795
|
-
}, [y]),
|
|
3794
|
+
y || (c ? x() : (h.current = 1, v.className += ` ${p}`, v.addEventListener("animationend", x)));
|
|
3795
|
+
}, [y]), ae.createElement(ae.Fragment, null, A);
|
|
3796
3796
|
};
|
|
3797
3797
|
}
|
|
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 Le = { 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) {
|
|
@@ -3818,53 +3818,53 @@ const Se = { list: /* @__PURE__ */ new Map(), emitQueue: /* @__PURE__ */ new Map
|
|
|
3818
3818
|
});
|
|
3819
3819
|
} }, Nt = (e) => {
|
|
3820
3820
|
let { theme: t, type: n, ...r } = e;
|
|
3821
|
-
return
|
|
3822
|
-
},
|
|
3823
|
-
return
|
|
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
|
+
}, Sn = { info: function(e) {
|
|
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
|
-
return
|
|
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" }));
|
|
3826
3826
|
}, success: function(e) {
|
|
3827
|
-
return
|
|
3827
|
+
return ae.createElement(Nt, { ...e }, ae.createElement("path", { d: "M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z" }));
|
|
3828
3828
|
}, error: function(e) {
|
|
3829
|
-
return
|
|
3829
|
+
return ae.createElement(Nt, { ...e }, ae.createElement("path", { d: "M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z" }));
|
|
3830
3830
|
}, spinner: function() {
|
|
3831
|
-
return
|
|
3831
|
+
return ae.createElement("div", { className: "Toastify__spinner" });
|
|
3832
3832
|
} };
|
|
3833
3833
|
function UA(e) {
|
|
3834
|
-
const [, t] = Oi((
|
|
3835
|
-
function
|
|
3836
|
-
let { containerId: p } =
|
|
3837
|
-
const { limit:
|
|
3838
|
-
!
|
|
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 m(g) {
|
|
3836
|
+
let { containerId: p } = g;
|
|
3837
|
+
const { limit: h } = A.props;
|
|
3838
|
+
!h || p && A.containerId !== p || (A.count -= A.queue.length, A.queue = []);
|
|
3839
3839
|
}
|
|
3840
|
-
function c(
|
|
3841
|
-
r((p) =>
|
|
3840
|
+
function c(g) {
|
|
3841
|
+
r((p) => g == null ? [] : p.filter((h) => h !== g));
|
|
3842
3842
|
}
|
|
3843
3843
|
function s() {
|
|
3844
|
-
const { toastContent:
|
|
3845
|
-
y(
|
|
3844
|
+
const { toastContent: g, toastProps: p, staleId: h } = A.queue.shift();
|
|
3845
|
+
y(g, p, h);
|
|
3846
3846
|
}
|
|
3847
|
-
function
|
|
3848
|
-
let { delay:
|
|
3849
|
-
if (!Mn(
|
|
3850
|
-
return !o.current || A.props.enableMultiContainer &&
|
|
3847
|
+
function d(g, p) {
|
|
3848
|
+
let { delay: h, staleId: v, ...x } = p;
|
|
3849
|
+
if (!Mn(g) || function(X) {
|
|
3850
|
+
return !o.current || A.props.enableMultiContainer && X.containerId !== A.props.containerId || i.has(X.toastId) && X.updateId == null;
|
|
3851
3851
|
}(x))
|
|
3852
3852
|
return;
|
|
3853
|
-
const { toastId: E, updateId:
|
|
3854
|
-
|
|
3855
|
-
const
|
|
3856
|
-
let [
|
|
3853
|
+
const { toastId: E, updateId: J, data: O } = x, { props: C } = A, ne = () => c(E), re = J == null;
|
|
3854
|
+
re && A.count++;
|
|
3855
|
+
const U = { ...C, style: C.toastStyle, key: A.toastKey++, ...Object.fromEntries(Object.entries(x).filter((X) => {
|
|
3856
|
+
let [_, W] = X;
|
|
3857
3857
|
return W != null;
|
|
3858
|
-
})), toastId: E, updateId:
|
|
3859
|
-
const
|
|
3860
|
-
i.delete(E),
|
|
3861
|
-
const
|
|
3862
|
-
if (A.count = E == null ? A.count - A.displayedToast : A.count - 1, A.count < 0 && (A.count = 0),
|
|
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
|
+
const X = Br(i.get(E), "removed");
|
|
3860
|
+
i.delete(E), Le.emit(4, X);
|
|
3861
|
+
const _ = A.queue.length;
|
|
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
|
-
if (
|
|
3864
|
+
if (_ === 1 || W === 1)
|
|
3865
3865
|
A.displayedToast++, s();
|
|
3866
3866
|
else {
|
|
3867
|
-
const S = W >
|
|
3867
|
+
const S = W > _ ? _ : W;
|
|
3868
3868
|
A.displayedToast = S;
|
|
3869
3869
|
for (let Y = 0; Y < S; Y++)
|
|
3870
3870
|
s();
|
|
@@ -3872,33 +3872,33 @@ function UA(e) {
|
|
|
3872
3872
|
} else
|
|
3873
3873
|
t();
|
|
3874
3874
|
} };
|
|
3875
|
-
var
|
|
3876
|
-
|
|
3877
|
-
let { theme:
|
|
3878
|
-
const
|
|
3879
|
-
return Y === !1 || (
|
|
3880
|
-
}(
|
|
3881
|
-
let
|
|
3882
|
-
|
|
3883
|
-
y(
|
|
3884
|
-
},
|
|
3885
|
-
}
|
|
3886
|
-
function y(
|
|
3887
|
-
const { toastId:
|
|
3888
|
-
|
|
3889
|
-
const x = { content:
|
|
3890
|
-
i.set(
|
|
3891
|
-
}
|
|
3892
|
-
return
|
|
3893
|
-
i.clear(),
|
|
3894
|
-
}), []),
|
|
3875
|
+
var Ae, F;
|
|
3876
|
+
U.iconOut = function(X) {
|
|
3877
|
+
let { theme: _, type: W, isLoading: S, icon: Y } = X, f = null;
|
|
3878
|
+
const L = { theme: _, type: W };
|
|
3879
|
+
return Y === !1 || (Ie(Y) ? f = Y(L) : mt(Y) ? f = kn(Y, L) : at(Y) || Zt(Y) ? f = Y : S ? f = Sn.spinner() : ((k) => k in Sn)(W) && (f = Sn[W](L))), f;
|
|
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
|
+
let oe = g;
|
|
3882
|
+
mt(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
|
+
y(oe, U, v);
|
|
3884
|
+
}, h) : y(oe, U, v);
|
|
3885
|
+
}
|
|
3886
|
+
function y(g, p, h) {
|
|
3887
|
+
const { toastId: v } = p;
|
|
3888
|
+
h && i.delete(h);
|
|
3889
|
+
const x = { content: g, props: p };
|
|
3890
|
+
i.set(v, x), r((E) => [...E, v].filter((J) => J !== h)), Le.emit(4, Br(x, x.props.updateId == null ? "added" : "updated"));
|
|
3891
|
+
}
|
|
3892
|
+
return Ce(() => (A.containerId = e.containerId, Le.cancelEmit(3).on(0, d).on(1, (g) => o.current && c(g)).on(5, m).emit(2, A), () => {
|
|
3893
|
+
i.clear(), Le.emit(3, A);
|
|
3894
|
+
}), []), Ce(() => {
|
|
3895
3895
|
A.props = e, A.isToastActive = a, A.displayedToast = n.length;
|
|
3896
|
-
}), { getToastToRender: function(
|
|
3897
|
-
const p = /* @__PURE__ */ new Map(),
|
|
3898
|
-
return e.newestOnTop &&
|
|
3899
|
-
const { position: x } =
|
|
3900
|
-
p.has(x) || p.set(x, []), p.get(x).push(
|
|
3901
|
-
}), Array.from(p, (
|
|
3896
|
+
}), { getToastToRender: function(g) {
|
|
3897
|
+
const p = /* @__PURE__ */ new Map(), h = Array.from(i.values());
|
|
3898
|
+
return e.newestOnTop && h.reverse(), h.forEach((v) => {
|
|
3899
|
+
const { position: x } = v.props;
|
|
3900
|
+
p.has(x) || p.set(x, []), p.get(x).push(v);
|
|
3901
|
+
}), Array.from(p, (v) => g(v[0], v[1]));
|
|
3902
3902
|
}, containerRef: o, isToastActive: a };
|
|
3903
3903
|
}
|
|
3904
3904
|
function Ur(e) {
|
|
@@ -3908,95 +3908,95 @@ 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] =
|
|
3912
|
-
function
|
|
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: m, pauseOnHover: c, closeToast: s, onClick: d, closeOnClick: y } = e;
|
|
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);
|
|
3915
3915
|
const C = i.current;
|
|
3916
|
-
a.canCloseOnClick = !0, a.canDrag = !0, a.boundingRect = C.getBoundingClientRect(), C.style.transition = "", a.x = Ur(
|
|
3916
|
+
a.canCloseOnClick = !0, a.canDrag = !0, a.boundingRect = C.getBoundingClientRect(), C.style.transition = "", a.x = Ur(O.nativeEvent), a.y = Fr(O.nativeEvent), e.draggableDirection === "x" ? (a.start = a.x, a.removalDistance = C.offsetWidth * (e.draggablePercent / 100)) : (a.start = a.y, a.removalDistance = C.offsetHeight * (e.draggablePercent === 80 ? 1.5 * e.draggablePercent : e.draggablePercent / 100));
|
|
3917
3917
|
}
|
|
3918
3918
|
}
|
|
3919
|
-
function p(
|
|
3919
|
+
function p(O) {
|
|
3920
3920
|
if (a.boundingRect) {
|
|
3921
|
-
const { top: C, bottom:
|
|
3922
|
-
|
|
3921
|
+
const { top: C, bottom: ne, left: re, right: U } = a.boundingRect;
|
|
3922
|
+
O.nativeEvent.type !== "touchend" && e.pauseOnHover && a.x >= re && a.x <= U && a.y >= C && a.y <= ne ? v() : h();
|
|
3923
3923
|
}
|
|
3924
3924
|
}
|
|
3925
|
-
function
|
|
3925
|
+
function h() {
|
|
3926
3926
|
n(!0);
|
|
3927
3927
|
}
|
|
3928
|
-
function
|
|
3928
|
+
function v() {
|
|
3929
3929
|
n(!1);
|
|
3930
3930
|
}
|
|
3931
|
-
function x(
|
|
3931
|
+
function x(O) {
|
|
3932
3932
|
const C = i.current;
|
|
3933
|
-
a.canDrag && C && (a.didMove = !0, t &&
|
|
3933
|
+
a.canDrag && C && (a.didMove = !0, t && v(), a.x = Ur(O), a.y = Fr(O), a.delta = e.draggableDirection === "x" ? a.x - a.start : a.y - a.start, a.start !== a.x && (a.canCloseOnClick = !1), C.style.transform = `translate${e.draggableDirection}(${a.delta}px)`, C.style.opacity = "" + (1 - Math.abs(a.delta / a.removalDistance)));
|
|
3934
3934
|
}
|
|
3935
3935
|
function E() {
|
|
3936
3936
|
document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", E), document.removeEventListener("touchmove", x), document.removeEventListener("touchend", E);
|
|
3937
|
-
const
|
|
3938
|
-
if (a.canDrag && a.didMove &&
|
|
3937
|
+
const O = i.current;
|
|
3938
|
+
if (a.canDrag && a.didMove && O) {
|
|
3939
3939
|
if (a.canDrag = !1, Math.abs(a.delta) > a.removalDistance)
|
|
3940
3940
|
return o(!0), void e.closeToast();
|
|
3941
|
-
|
|
3941
|
+
O.style.transition = "transform 0.2s, opacity 0.2s", O.style.transform = `translate${e.draggableDirection}(0)`, O.style.opacity = "1";
|
|
3942
3942
|
}
|
|
3943
3943
|
}
|
|
3944
|
-
|
|
3944
|
+
Ce(() => {
|
|
3945
3945
|
A.current = e;
|
|
3946
|
-
}),
|
|
3947
|
-
const
|
|
3948
|
-
|
|
3949
|
-
}), []),
|
|
3950
|
-
e.pauseOnFocusLoss && (window.removeEventListener("focus",
|
|
3946
|
+
}), Ce(() => (i.current && i.current.addEventListener("d", h, { once: !0 }), Ie(e.onOpen) && e.onOpen(mt(e.children) && e.children.props), () => {
|
|
3947
|
+
const O = A.current;
|
|
3948
|
+
Ie(O.onClose) && O.onClose(mt(O.children) && O.children.props);
|
|
3949
|
+
}), []), Ce(() => (e.pauseOnFocusLoss && (document.hasFocus() || v(), window.addEventListener("focus", h), window.addEventListener("blur", v)), () => {
|
|
3950
|
+
e.pauseOnFocusLoss && (window.removeEventListener("focus", h), window.removeEventListener("blur", v));
|
|
3951
3951
|
}), [e.pauseOnFocusLoss]);
|
|
3952
|
-
const
|
|
3953
|
-
return
|
|
3954
|
-
|
|
3955
|
-
}), { playToast:
|
|
3952
|
+
const J = { onMouseDown: g, onTouchStart: g, onMouseUp: p, onTouchEnd: p };
|
|
3953
|
+
return m && c && (J.onMouseEnter = v, J.onMouseLeave = h), y && (J.onClick = (O) => {
|
|
3954
|
+
d && d(O), a.canCloseOnClick && s();
|
|
3955
|
+
}), { playToast: h, pauseToast: v, isRunning: t, preventExitTransition: r, toastRef: i, eventHandlers: J };
|
|
3956
3956
|
}
|
|
3957
3957
|
function _o(e) {
|
|
3958
3958
|
let { closeToast: t, theme: n, ariaLabel: r = "close" } = e;
|
|
3959
|
-
return
|
|
3959
|
+
return ae.createElement("button", { className: `Toastify__close-button Toastify__close-button--${n}`, type: "button", onClick: (o) => {
|
|
3960
3960
|
o.stopPropagation(), t(o);
|
|
3961
|
-
}, "aria-label": r },
|
|
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
|
|
3966
|
-
|
|
3967
|
-
const
|
|
3968
|
-
return
|
|
3969
|
-
|
|
3964
|
+
let { delay: t, isRunning: n, closeToast: r, type: o = "default", hide: i, className: a, style: A, controlledProgress: m, progress: c, rtl: s, isIn: d, theme: y } = e;
|
|
3965
|
+
const g = i || m && c === 0, p = { ...A, animationDuration: `${t}ms`, animationPlayState: n ? "running" : "paused", opacity: g ? 0 : 1 };
|
|
3966
|
+
m && (p.transform = `scaleX(${c})`);
|
|
3967
|
+
const h = Ve("Toastify__progress-bar", m ? "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, [m && c >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: m && c < 1 ? null : () => {
|
|
3969
|
+
d && 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:
|
|
3974
|
-
let
|
|
3975
|
-
return i === !1 || (
|
|
3976
|
-
},
|
|
3973
|
+
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o } = FA(e), { closeButton: i, children: a, autoClose: A, onClick: m, type: c, hideProgressBar: s, closeToast: d, 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, S = 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: S }) : Ve(S, p), f = !!ne || !A, L = { closeToast: d, type: c, theme: W };
|
|
3974
|
+
let k = null;
|
|
3975
|
+
return i === !1 || (k = Ie(i) ? i(L) : mt(i) ? kn(i, L) : _o(L)), ae.createElement(y, { isIn: F, done: Ae, position: g, preventExitTransition: n, nodeRef: r }, ae.createElement("div", { id: U, onClick: m, 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: d, hide: s, type: c, style: J, className: E, controlledProgress: f, progress: ne || 0 })));
|
|
3976
|
+
}, mn = 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(mn("bounce", !0));
|
|
3979
|
+
cn(mn("slide", !0));
|
|
3980
|
+
cn(mn("zoom"));
|
|
3981
|
+
cn(mn("flip"));
|
|
3982
|
+
const Tn = Li((e, t) => {
|
|
3983
|
+
const { getToastToRender: n, containerRef: r, isToastActive: o } = UA(e), { className: i, style: a, rtl: A, containerId: m } = e;
|
|
3984
3984
|
function c(s) {
|
|
3985
|
-
const
|
|
3986
|
-
return
|
|
3985
|
+
const d = Ve("Toastify__toast-container", `Toastify__toast-container--${s}`, { "Toastify__toast-container--rtl": A });
|
|
3986
|
+
return Ie(i) ? i({ position: s, rtl: A, defaultClassName: d }) : Ve(d, Qt(i));
|
|
3987
3987
|
}
|
|
3988
|
-
return
|
|
3988
|
+
return Ce(() => {
|
|
3989
3989
|
t && (t.current = r.current);
|
|
3990
|
-
}, []),
|
|
3991
|
-
const y =
|
|
3992
|
-
return
|
|
3993
|
-
let { content:
|
|
3994
|
-
return
|
|
3990
|
+
}, []), ae.createElement("div", { ref: r, className: "Toastify", id: m }, n((s, d) => {
|
|
3991
|
+
const y = d.length ? { ...a } : { ...a, pointerEvents: "none" };
|
|
3992
|
+
return ae.createElement("div", { className: c(s), style: y, key: `container-${s}` }, d.map((g, p) => {
|
|
3993
|
+
let { content: h, props: v } = g;
|
|
3994
|
+
return ae.createElement($A, { ...v, isIn: o(v.toastId), style: { ...v.style, "--nth": p + 1, "--len": d.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 Ln, $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 ? Le.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 me(e, t) {
|
|
4016
4016
|
return It(e, Ut("default", t));
|
|
4017
4017
|
}
|
|
4018
|
-
|
|
4018
|
+
me.loading = (e, t) => It(e, Ut("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t })), me.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
|
|
4025
|
-
return r ?
|
|
4026
|
-
}, c =
|
|
4027
|
-
return c.then((s) =>
|
|
4028
|
-
},
|
|
4029
|
-
$e.size > 0 ?
|
|
4030
|
-
},
|
|
4031
|
-
return e === void 0 && (e = {}),
|
|
4032
|
-
},
|
|
4020
|
+
o && (r = at(o) ? me.loading(o, n) : me.loading(o.render, { ...n, ...o }));
|
|
4021
|
+
const A = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, m = (s, d, y) => {
|
|
4022
|
+
if (d == null)
|
|
4023
|
+
return void me.dismiss(r);
|
|
4024
|
+
const g = { type: s, ...A, ...n, data: y }, p = at(d) ? { render: d } : d;
|
|
4025
|
+
return r ? me.update(r, { ...g, ...p }) : me(p.render, { ...g, ...p }), y;
|
|
4026
|
+
}, c = Ie(e) ? e() : e;
|
|
4027
|
+
return c.then((s) => m("success", a, s)).catch((s) => m("error", i, s)), c;
|
|
4028
|
+
}, me.success = Dt("success"), me.info = Dt("info"), me.error = Dt("error"), me.warning = Dt("warning"), me.warn = me.warning, me.dark = (e, t) => It(e, Ut("default", { theme: "dark", ...t })), me.dismiss = (e) => {
|
|
4029
|
+
$e.size > 0 ? Le.emit(1, e) : Ct = Ct.filter((t) => e != null && t.options.toastId !== e);
|
|
4030
|
+
}, me.clearWaitingQueue = function(e) {
|
|
4031
|
+
return e === void 0 && (e = {}), Le.emit(5, e);
|
|
4032
|
+
}, me.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
|
+
}, me.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 || Ln);
|
|
4042
4042
|
return a && a.getToast(r);
|
|
4043
4043
|
}(e, t);
|
|
4044
4044
|
if (n) {
|
|
@@ -4048,19 +4048,19 @@ de.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
|
+
}, me.done = (e) => {
|
|
4052
|
+
me.update(e, { progress: 1 });
|
|
4053
|
+
}, me.onChange = (e) => (Le.on(4, e), () => {
|
|
4054
|
+
Le.off(4, e);
|
|
4055
|
+
}), me.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" }, me.TYPE = { INFO: "info", SUCCESS: "success", WARNING: "warning", ERROR: "error", DEFAULT: "default" }, Le.on(2, (e) => {
|
|
4056
|
+
Ln = e.containerId || e, $e.set(Ln, e), Ct.forEach((t) => {
|
|
4057
|
+
Le.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 && Le.off(0).off(1).off(5);
|
|
4061
4061
|
});
|
|
4062
4062
|
function Ot(e) {
|
|
4063
|
-
|
|
4063
|
+
me.success(e, {
|
|
4064
4064
|
position: "top-center",
|
|
4065
4065
|
autoClose: 650,
|
|
4066
4066
|
hideProgressBar: !0,
|
|
@@ -4071,7 +4071,7 @@ function Ot(e) {
|
|
|
4071
4071
|
theme: "light"
|
|
4072
4072
|
});
|
|
4073
4073
|
}
|
|
4074
|
-
let sr = "", tt = "Playable",
|
|
4074
|
+
let sr = "", tt = "Playable", Ze = null, ei = null;
|
|
4075
4075
|
const Pt = async (e) => {
|
|
4076
4076
|
let t = sr + "/" + e, n = e;
|
|
4077
4077
|
fetch(t).then((r) => r.blob()).then((r) => {
|
|
@@ -4086,16 +4086,16 @@ 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 m = async (c) => {
|
|
4090
4090
|
r === "download" ? await Pt(c) : r === "copy" && rs(c, ei);
|
|
4091
4091
|
};
|
|
4092
4092
|
tt === "Playable" ? (n && await Bt(
|
|
4093
4093
|
e,
|
|
4094
4094
|
{ iosLink: n == null ? void 0 : n.iosUrl, androidLink: n == null ? void 0 : n.googleUrl },
|
|
4095
|
-
|
|
4096
|
-
), XA(
|
|
4095
|
+
Ze
|
|
4096
|
+
), XA(Ze, e, t, o, i).then(async (c) => {
|
|
4097
4097
|
let { url: s } = c;
|
|
4098
|
-
await
|
|
4098
|
+
await m(s), a(c);
|
|
4099
4099
|
}).catch((c) => {
|
|
4100
4100
|
let s = c.response.data.error.msg;
|
|
4101
4101
|
A({ message: s });
|
|
@@ -4105,41 +4105,41 @@ async function Ft(e, t, n, r = "download", o = !1, i = null) {
|
|
|
4105
4105
|
iosLink: n == null ? void 0 : n.iosUrl,
|
|
4106
4106
|
androidLink: n == null ? void 0 : n.googleUrl
|
|
4107
4107
|
},
|
|
4108
|
-
|
|
4108
|
+
Ze
|
|
4109
4109
|
), TA(
|
|
4110
4110
|
{
|
|
4111
4111
|
_id: e,
|
|
4112
4112
|
network: t,
|
|
4113
4113
|
extras: i
|
|
4114
4114
|
},
|
|
4115
|
-
|
|
4115
|
+
Ze
|
|
4116
4116
|
).then(async (c) => {
|
|
4117
4117
|
if (c.message) {
|
|
4118
4118
|
A(c);
|
|
4119
4119
|
return;
|
|
4120
4120
|
}
|
|
4121
4121
|
let { url: s } = c;
|
|
4122
|
-
await
|
|
4122
|
+
await m(s), a(c);
|
|
4123
4123
|
}).catch((c) => {
|
|
4124
4124
|
let s = c.response.data.error.msg;
|
|
4125
4125
|
A({ message: s });
|
|
4126
|
-
})) : tt === "Import" ? HA(
|
|
4126
|
+
})) : tt === "Import" ? HA(Ze, e, t).then(async (c) => {
|
|
4127
4127
|
let s = c.url;
|
|
4128
|
-
await
|
|
4128
|
+
await m(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 && await Bt(
|
|
4132
|
+
}) : tt === "Ready" && (n && ((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
|
-
|
|
4136
|
-
), PA(
|
|
4135
|
+
Ze
|
|
4136
|
+
)), PA(Ze, e, t, o, i).then(async (c) => {
|
|
4137
4137
|
if (c.message) {
|
|
4138
4138
|
A(c);
|
|
4139
4139
|
return;
|
|
4140
4140
|
}
|
|
4141
4141
|
let s = c.url;
|
|
4142
|
-
await
|
|
4142
|
+
await m(s), a(c);
|
|
4143
4143
|
}).catch((c) => {
|
|
4144
4144
|
let s = c.response.data.error.msg;
|
|
4145
4145
|
A({ message: s });
|
|
@@ -4154,8 +4154,8 @@ async function os(e, t, n) {
|
|
|
4154
4154
|
iosLink: t == null ? void 0 : t.iosUrl,
|
|
4155
4155
|
androidLink: t == null ? void 0 : t.googleUrl
|
|
4156
4156
|
},
|
|
4157
|
-
|
|
4158
|
-
), GA(e, n,
|
|
4157
|
+
Ze
|
|
4158
|
+
), GA(e, n, Ze).then(async (i) => {
|
|
4159
4159
|
if (i.message) {
|
|
4160
4160
|
o(i);
|
|
4161
4161
|
return;
|
|
@@ -4167,8 +4167,8 @@ async function os(e, t, n) {
|
|
|
4167
4167
|
})) : tt === "Ready" ? (console.log("ready"), await Bt(
|
|
4168
4168
|
e,
|
|
4169
4169
|
{ iosLink: t == null ? void 0 : t.iosUrl, androidLink: t == null ? void 0 : t.googleUrl },
|
|
4170
|
-
|
|
4171
|
-
), console.log("ready link multi"), VA(e, n,
|
|
4170
|
+
Ze
|
|
4171
|
+
), console.log("ready link multi"), VA(e, n, Ze).then(async (i) => {
|
|
4172
4172
|
if (console.log("res", i), i.message) {
|
|
4173
4173
|
o(i);
|
|
4174
4174
|
return;
|
|
@@ -4181,8 +4181,8 @@ async function os(e, t, n) {
|
|
|
4181
4181
|
})) : (await Bt(
|
|
4182
4182
|
e,
|
|
4183
4183
|
{ iosLink: t == null ? void 0 : t.iosUrl, androidLink: t == null ? void 0 : t.googleUrl },
|
|
4184
|
-
|
|
4185
|
-
), QA(e, n,
|
|
4184
|
+
Ze
|
|
4185
|
+
), QA(e, n, Ze).then(async (i) => {
|
|
4186
4186
|
await Pt(i.url), r(i.url);
|
|
4187
4187
|
}).catch((i) => {
|
|
4188
4188
|
let a = i.response.data.error.msg;
|
|
@@ -4191,22 +4191,35 @@ async function os(e, t, n) {
|
|
|
4191
4191
|
});
|
|
4192
4192
|
}
|
|
4193
4193
|
function is(e, t, n, r) {
|
|
4194
|
-
tt = e,
|
|
4194
|
+
tt = e, Ze = t, ei = n, sr = r;
|
|
4195
4195
|
}
|
|
4196
4196
|
const as = ({
|
|
4197
4197
|
versionId: e,
|
|
4198
4198
|
typeOfProduct: t,
|
|
4199
4199
|
copyLinkUrl: n,
|
|
4200
4200
|
setSafariCopyLink: r,
|
|
4201
|
-
qrUrl: o
|
|
4201
|
+
qrUrl: o,
|
|
4202
|
+
iosLink: i,
|
|
4203
|
+
androidLink: a,
|
|
4204
|
+
urlType: A
|
|
4202
4205
|
}) => {
|
|
4203
|
-
const [
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4206
|
+
const [m, c] = P(!1), s = async () => {
|
|
4207
|
+
c(!0), console.log("copy mobile"), Ft(
|
|
4208
|
+
e,
|
|
4209
|
+
"default",
|
|
4210
|
+
{
|
|
4211
|
+
iosUrl: i,
|
|
4212
|
+
googleUrl: a
|
|
4213
|
+
},
|
|
4214
|
+
null,
|
|
4215
|
+
!1,
|
|
4216
|
+
{ urlType: A }
|
|
4217
|
+
).then((d) => {
|
|
4218
|
+
c(!1);
|
|
4219
|
+
let y;
|
|
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);
|
|
4208
4221
|
}).catch((d) => {
|
|
4209
|
-
|
|
4222
|
+
c(!1);
|
|
4210
4223
|
});
|
|
4211
4224
|
};
|
|
4212
4225
|
return console.log(o), /* @__PURE__ */ l.jsxs(
|
|
@@ -4290,7 +4303,7 @@ const as = ({
|
|
|
4290
4303
|
cursor: "pointer"
|
|
4291
4304
|
},
|
|
4292
4305
|
onClick: () => {
|
|
4293
|
-
|
|
4306
|
+
m || s();
|
|
4294
4307
|
},
|
|
4295
4308
|
children: [
|
|
4296
4309
|
/* @__PURE__ */ l.jsx(
|
|
@@ -4315,7 +4328,7 @@ const as = ({
|
|
|
4315
4328
|
width: "80px"
|
|
4316
4329
|
// margin: "auto",
|
|
4317
4330
|
},
|
|
4318
|
-
children:
|
|
4331
|
+
children: m ? /* @__PURE__ */ l.jsx(
|
|
4319
4332
|
"img",
|
|
4320
4333
|
{
|
|
4321
4334
|
style: {
|
|
@@ -4352,18 +4365,28 @@ const as = ({
|
|
|
4352
4365
|
iframeUrl: o,
|
|
4353
4366
|
fetchFileUrl: i,
|
|
4354
4367
|
copyLinkUrl: a,
|
|
4355
|
-
setSafariCopyLink: A
|
|
4368
|
+
setSafariCopyLink: A,
|
|
4369
|
+
iosLink: m,
|
|
4370
|
+
androidLink: c,
|
|
4371
|
+
urlType: s
|
|
4356
4372
|
}) => {
|
|
4357
|
-
const [d,
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4373
|
+
const [d, y] = P(window.innerWidth);
|
|
4374
|
+
Ce(() => {
|
|
4375
|
+
function p(h) {
|
|
4376
|
+
console.log(h), h.data === "cta" && (console.log("Received 'cta' message from iframe"), m && window.open(m, "_blank"));
|
|
4377
|
+
}
|
|
4378
|
+
return window.addEventListener("message", p, !1), () => {
|
|
4379
|
+
window.removeEventListener("message", p);
|
|
4361
4380
|
};
|
|
4362
|
-
|
|
4363
|
-
|
|
4381
|
+
}, []), Ce(() => {
|
|
4382
|
+
const p = () => {
|
|
4383
|
+
y(window.innerWidth);
|
|
4384
|
+
};
|
|
4385
|
+
return window.addEventListener("resize", p), () => {
|
|
4386
|
+
window.removeEventListener("resize", p);
|
|
4364
4387
|
};
|
|
4365
4388
|
}, []);
|
|
4366
|
-
const
|
|
4389
|
+
const g = (e == null ? void 0 : e.length) > 25 ? e.slice(0, 25) + "..." : e;
|
|
4367
4390
|
return /* @__PURE__ */ l.jsxs(
|
|
4368
4391
|
"div",
|
|
4369
4392
|
{
|
|
@@ -4379,7 +4402,7 @@ const as = ({
|
|
|
4379
4402
|
},
|
|
4380
4403
|
children: [
|
|
4381
4404
|
/* @__PURE__ */ l.jsx(Di, { iframeUrl: o }),
|
|
4382
|
-
/* @__PURE__ */ l.jsx(Ri, { name:
|
|
4405
|
+
/* @__PURE__ */ l.jsx(Ri, { name: g }),
|
|
4383
4406
|
/* @__PURE__ */ l.jsx(
|
|
4384
4407
|
as,
|
|
4385
4408
|
{
|
|
@@ -4387,7 +4410,10 @@ const as = ({
|
|
|
4387
4410
|
typeOfProduct: n,
|
|
4388
4411
|
copyLinkUrl: a,
|
|
4389
4412
|
setSafariCopyLink: A,
|
|
4390
|
-
qrUrl: o
|
|
4413
|
+
qrUrl: o,
|
|
4414
|
+
iosLink: m,
|
|
4415
|
+
androidLink: c,
|
|
4416
|
+
urlType: s
|
|
4391
4417
|
}
|
|
4392
4418
|
)
|
|
4393
4419
|
]
|
|
@@ -4596,7 +4622,7 @@ const us = () => /* @__PURE__ */ l.jsxs("svg", { width: "24", height: "24", view
|
|
|
4596
4622
|
}
|
|
4597
4623
|
)
|
|
4598
4624
|
] });
|
|
4599
|
-
},
|
|
4625
|
+
}, ms = ({
|
|
4600
4626
|
typeOfProduct: e,
|
|
4601
4627
|
urls: t,
|
|
4602
4628
|
handleIosChange: n,
|
|
@@ -4669,7 +4695,7 @@ const us = () => /* @__PURE__ */ l.jsxs("svg", { width: "24", height: "24", view
|
|
|
4669
4695
|
]
|
|
4670
4696
|
}
|
|
4671
4697
|
) });
|
|
4672
|
-
},
|
|
4698
|
+
}, ds = ({
|
|
4673
4699
|
typeOfProduct: e,
|
|
4674
4700
|
fileSize: t,
|
|
4675
4701
|
urls: n,
|
|
@@ -4678,13 +4704,13 @@ const us = () => /* @__PURE__ */ l.jsxs("svg", { width: "24", height: "24", view
|
|
|
4678
4704
|
disabled: i,
|
|
4679
4705
|
api: a,
|
|
4680
4706
|
creditDownload: A,
|
|
4681
|
-
user:
|
|
4707
|
+
user: m,
|
|
4682
4708
|
isTest: c,
|
|
4683
4709
|
setIsTest: s,
|
|
4684
|
-
urlType:
|
|
4710
|
+
urlType: d,
|
|
4685
4711
|
setUrlType: y
|
|
4686
4712
|
}) => {
|
|
4687
|
-
const
|
|
4713
|
+
const g = () => /* @__PURE__ */ l.jsxs(
|
|
4688
4714
|
"div",
|
|
4689
4715
|
{
|
|
4690
4716
|
style: {
|
|
@@ -4776,7 +4802,7 @@ const us = () => /* @__PURE__ */ l.jsxs("svg", { width: "24", height: "24", view
|
|
|
4776
4802
|
style: {
|
|
4777
4803
|
position: "absolute",
|
|
4778
4804
|
bottom: "-3px",
|
|
4779
|
-
left:
|
|
4805
|
+
left: d === "single" ? "50%" : "0%",
|
|
4780
4806
|
width: "50%",
|
|
4781
4807
|
height: "3px",
|
|
4782
4808
|
borderRadius: "2px",
|
|
@@ -4809,8 +4835,8 @@ const us = () => /* @__PURE__ */ l.jsxs("svg", { width: "24", height: "24", view
|
|
|
4809
4835
|
{
|
|
4810
4836
|
style: {
|
|
4811
4837
|
position: "relative",
|
|
4812
|
-
color:
|
|
4813
|
-
fontWeight:
|
|
4838
|
+
color: d === "game" ? "#000" : "#a3a3a3",
|
|
4839
|
+
fontWeight: d === "game" ? "bold" : "normal",
|
|
4814
4840
|
transition: "all 0.2s ease-in-out"
|
|
4815
4841
|
},
|
|
4816
4842
|
id: "game-tab",
|
|
@@ -4842,8 +4868,8 @@ const us = () => /* @__PURE__ */ l.jsxs("svg", { width: "24", height: "24", view
|
|
|
4842
4868
|
{
|
|
4843
4869
|
style: {
|
|
4844
4870
|
position: "relative",
|
|
4845
|
-
color:
|
|
4846
|
-
fontWeight:
|
|
4871
|
+
color: d === "single" ? "#000" : "#a3a3a3",
|
|
4872
|
+
fontWeight: d === "single" ? "bold" : "normal",
|
|
4847
4873
|
transition: "all 0.2s ease-in-out"
|
|
4848
4874
|
},
|
|
4849
4875
|
id: "single-tab",
|
|
@@ -4865,10 +4891,10 @@ const us = () => /* @__PURE__ */ l.jsxs("svg", { width: "24", height: "24", view
|
|
|
4865
4891
|
flexDirection: "column"
|
|
4866
4892
|
},
|
|
4867
4893
|
children: [
|
|
4868
|
-
|
|
4894
|
+
m.customer == "playableFactoryInternal" && e === "Playable" && /* @__PURE__ */ l.jsx(g, {}),
|
|
4869
4895
|
e === "Ready" ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
4870
4896
|
/* @__PURE__ */ l.jsx(p, {}),
|
|
4871
|
-
|
|
4897
|
+
d === "game" && /* @__PURE__ */ l.jsx(
|
|
4872
4898
|
_r,
|
|
4873
4899
|
{
|
|
4874
4900
|
typeOfProduct: e,
|
|
@@ -4878,8 +4904,8 @@ const us = () => /* @__PURE__ */ l.jsxs("svg", { width: "24", height: "24", view
|
|
|
4878
4904
|
disabled: i
|
|
4879
4905
|
}
|
|
4880
4906
|
),
|
|
4881
|
-
|
|
4882
|
-
|
|
4907
|
+
d === "single" && /* @__PURE__ */ l.jsx(
|
|
4908
|
+
ms,
|
|
4883
4909
|
{
|
|
4884
4910
|
typeOfProduct: e,
|
|
4885
4911
|
urls: n,
|
|
@@ -4939,12 +4965,12 @@ const us = () => /* @__PURE__ */ l.jsxs("svg", { width: "24", height: "24", view
|
|
|
4939
4965
|
handleGoogleChange: i,
|
|
4940
4966
|
disabled: a,
|
|
4941
4967
|
creditDownload: A,
|
|
4942
|
-
api:
|
|
4968
|
+
api: m,
|
|
4943
4969
|
user: c,
|
|
4944
4970
|
isTest: s,
|
|
4945
|
-
setIsTest:
|
|
4971
|
+
setIsTest: d,
|
|
4946
4972
|
urlType: y,
|
|
4947
|
-
setUrlType:
|
|
4973
|
+
setUrlType: g
|
|
4948
4974
|
}) => /* @__PURE__ */ l.jsxs(
|
|
4949
4975
|
"div",
|
|
4950
4976
|
{
|
|
@@ -4966,7 +4992,7 @@ const us = () => /* @__PURE__ */ l.jsxs("svg", { width: "24", height: "24", view
|
|
|
4966
4992
|
children: [
|
|
4967
4993
|
/* @__PURE__ */ l.jsx(ps, { typeOfProduct: e, title: r, fileSize: t }),
|
|
4968
4994
|
/* @__PURE__ */ l.jsx(
|
|
4969
|
-
|
|
4995
|
+
ds,
|
|
4970
4996
|
{
|
|
4971
4997
|
typeOfProduct: e,
|
|
4972
4998
|
fileSize: t,
|
|
@@ -4975,12 +5001,12 @@ const us = () => /* @__PURE__ */ l.jsxs("svg", { width: "24", height: "24", view
|
|
|
4975
5001
|
handleGoogleChange: i,
|
|
4976
5002
|
disabled: a,
|
|
4977
5003
|
creditDownload: A,
|
|
4978
|
-
api:
|
|
5004
|
+
api: m,
|
|
4979
5005
|
user: c,
|
|
4980
5006
|
isTest: s,
|
|
4981
|
-
setIsTest:
|
|
5007
|
+
setIsTest: d,
|
|
4982
5008
|
urlType: y,
|
|
4983
|
-
setUrlType:
|
|
5009
|
+
setUrlType: g
|
|
4984
5010
|
}
|
|
4985
5011
|
),
|
|
4986
5012
|
/* @__PURE__ */ l.jsx(ss, { typeOfProduct: e })
|
|
@@ -5021,8 +5047,8 @@ const us = () => /* @__PURE__ */ l.jsxs("svg", { width: "24", height: "24", view
|
|
|
5021
5047
|
children: e
|
|
5022
5048
|
}
|
|
5023
5049
|
), hs = ({ checked: e, typeOfProduct: t, id: n }) => {
|
|
5024
|
-
const [r, o] =
|
|
5025
|
-
|
|
5050
|
+
const [r, o] = P(e);
|
|
5051
|
+
Ce(() => {
|
|
5026
5052
|
o(e);
|
|
5027
5053
|
}, [e]);
|
|
5028
5054
|
const i = () => {
|
|
@@ -5248,8 +5274,8 @@ const gs = ({ typeOfProduct: e }) => /* @__PURE__ */ l.jsx(
|
|
|
5248
5274
|
typeOfProduct: a,
|
|
5249
5275
|
urlType: A
|
|
5250
5276
|
}) => {
|
|
5251
|
-
let
|
|
5252
|
-
return a === "Ready" && A === "single" ?
|
|
5277
|
+
let m = "";
|
|
5278
|
+
return a === "Ready" && A === "single" ? m = "Redirection url is empty. Are you sure you want to continue?" : !t && !n ? m = "Both links are empty. Are you sure you want to continue?" : t ? n || (m = "Google link is empty. Are you sure you want to continue?") : m = "iOS link is empty. Are you sure you want to continue?", /* @__PURE__ */ l.jsxs(
|
|
5253
5279
|
"div",
|
|
5254
5280
|
{
|
|
5255
5281
|
style: {
|
|
@@ -5302,7 +5328,7 @@ const gs = ({ typeOfProduct: e }) => /* @__PURE__ */ l.jsx(
|
|
|
5302
5328
|
fontSize: "18px",
|
|
5303
5329
|
lineHeight: "24px"
|
|
5304
5330
|
},
|
|
5305
|
-
children:
|
|
5331
|
+
children: m
|
|
5306
5332
|
}
|
|
5307
5333
|
),
|
|
5308
5334
|
/* @__PURE__ */ l.jsxs(
|
|
@@ -5704,24 +5730,24 @@ const bs = ({
|
|
|
5704
5730
|
networkVersionSize: i,
|
|
5705
5731
|
fileSizeLoading: a,
|
|
5706
5732
|
showCheckBox: A,
|
|
5707
|
-
typeOfProduct:
|
|
5733
|
+
typeOfProduct: m,
|
|
5708
5734
|
versionId: c,
|
|
5709
5735
|
api: s,
|
|
5710
|
-
handleDownloadError:
|
|
5736
|
+
handleDownloadError: d,
|
|
5711
5737
|
fetchFileUrl: y,
|
|
5712
|
-
urls:
|
|
5738
|
+
urls: g,
|
|
5713
5739
|
game: p,
|
|
5714
|
-
setIsConfirmActive:
|
|
5715
|
-
creditDownload:
|
|
5740
|
+
setIsConfirmActive: h,
|
|
5741
|
+
creditDownload: v,
|
|
5716
5742
|
getDownloadCount: x,
|
|
5717
5743
|
disabled: E,
|
|
5718
|
-
user:
|
|
5719
|
-
setSafariCopyLink:
|
|
5744
|
+
user: J,
|
|
5745
|
+
setSafariCopyLink: O,
|
|
5720
5746
|
isTest: C,
|
|
5721
|
-
urlType:
|
|
5747
|
+
urlType: ne
|
|
5722
5748
|
}) => {
|
|
5723
|
-
const [
|
|
5724
|
-
let
|
|
5749
|
+
const [re, U] = P(!1), [Ae, F] = P(""), [oe, X] = P(!1), [_, W] = P(!1), [S, Y] = P(!1), [f, L] = P("download"), [k, q] = P(!1), [Z, z] = P(!1), [w, j] = P(!1);
|
|
5750
|
+
let Q = {
|
|
5725
5751
|
aarki: "html,copy",
|
|
5726
5752
|
adcolony: "copy,html",
|
|
5727
5753
|
adjoe: "copy,html",
|
|
@@ -5767,28 +5793,28 @@ const bs = ({
|
|
|
5767
5793
|
};
|
|
5768
5794
|
const D = () => {
|
|
5769
5795
|
n(e);
|
|
5770
|
-
}, N = async (
|
|
5771
|
-
Ft(c,
|
|
5772
|
-
|
|
5796
|
+
}, N = async (V, K) => (U(!0), new Promise((ce, Xe) => {
|
|
5797
|
+
Ft(c, V, g, K, C, { urlType: ne }).then((we) => {
|
|
5798
|
+
U(!1), ce(we);
|
|
5773
5799
|
}).catch((we) => {
|
|
5774
|
-
|
|
5800
|
+
U(!1), d(we.message, we), Xe(we);
|
|
5775
5801
|
});
|
|
5776
|
-
})), R = async (
|
|
5777
|
-
|
|
5802
|
+
})), R = async (V = !1) => {
|
|
5803
|
+
V ? z(!0) : q(!0);
|
|
5778
5804
|
const K = {
|
|
5779
5805
|
molocoGenerateHtml: !1
|
|
5780
5806
|
};
|
|
5781
|
-
|
|
5782
|
-
|
|
5807
|
+
V && (K.molocoGenerateHtml = !0), Ft(c, o, g, "download", C, K).then((ce) => {
|
|
5808
|
+
V ? z(!1) : q(!1), Y(!1);
|
|
5783
5809
|
}).catch((ce) => {
|
|
5784
|
-
|
|
5810
|
+
d(ce.message, ce);
|
|
5785
5811
|
});
|
|
5786
|
-
},
|
|
5787
|
-
|
|
5788
|
-
const
|
|
5789
|
-
let K = `${y}/${
|
|
5790
|
-
un(K) ? (Ot("Link Copied"),
|
|
5791
|
-
},
|
|
5812
|
+
}, B = async () => {
|
|
5813
|
+
j(!0);
|
|
5814
|
+
const V = await vs(s, c, o, m);
|
|
5815
|
+
let K = `${y}/${V == null ? void 0 : V.url}`;
|
|
5816
|
+
un(K) ? (Ot("Link Copied"), j(!1)) : O(K);
|
|
5817
|
+
}, T = o === "moloco" || o === "molocoV2";
|
|
5792
5818
|
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
5793
5819
|
/* @__PURE__ */ l.jsxs(
|
|
5794
5820
|
"div",
|
|
@@ -5799,7 +5825,7 @@ const bs = ({
|
|
|
5799
5825
|
flexDirection: "column",
|
|
5800
5826
|
gap: "20px",
|
|
5801
5827
|
padding: "16px",
|
|
5802
|
-
borderColor: r ? he[
|
|
5828
|
+
borderColor: r ? he[m] : "lightgray",
|
|
5803
5829
|
borderWidth: "1px",
|
|
5804
5830
|
borderStyle: "solid",
|
|
5805
5831
|
backgroundColor: "white",
|
|
@@ -5808,7 +5834,7 @@ const bs = ({
|
|
|
5808
5834
|
borderRadius: "16px",
|
|
5809
5835
|
cursor: "pointer"
|
|
5810
5836
|
},
|
|
5811
|
-
className: "border-hover-" +
|
|
5837
|
+
className: "border-hover-" + m,
|
|
5812
5838
|
onClick: D,
|
|
5813
5839
|
children: [
|
|
5814
5840
|
/* @__PURE__ */ l.jsxs(
|
|
@@ -5829,7 +5855,7 @@ const bs = ({
|
|
|
5829
5855
|
top: "0",
|
|
5830
5856
|
padding: "8px"
|
|
5831
5857
|
},
|
|
5832
|
-
children: /* @__PURE__ */ l.jsx("div", { children: i && i.map((
|
|
5858
|
+
children: /* @__PURE__ */ l.jsx("div", { children: i && i.map((V) => V.network).includes(o) ? a ? /* @__PURE__ */ l.jsx(
|
|
5833
5859
|
"div",
|
|
5834
5860
|
{
|
|
5835
5861
|
style: {
|
|
@@ -5843,9 +5869,9 @@ const bs = ({
|
|
|
5843
5869
|
alignItems: "center",
|
|
5844
5870
|
marginRight: "2rem"
|
|
5845
5871
|
},
|
|
5846
|
-
children: /* @__PURE__ */ l.jsx(gs, { typeOfProduct:
|
|
5872
|
+
children: /* @__PURE__ */ l.jsx(gs, { typeOfProduct: m })
|
|
5847
5873
|
}
|
|
5848
|
-
) : i.map((
|
|
5874
|
+
) : i.map((V) => /* @__PURE__ */ l.jsx(
|
|
5849
5875
|
"div",
|
|
5850
5876
|
{
|
|
5851
5877
|
style: {
|
|
@@ -5860,9 +5886,9 @@ const bs = ({
|
|
|
5860
5886
|
justifyContent: "center",
|
|
5861
5887
|
alignItems: "center"
|
|
5862
5888
|
},
|
|
5863
|
-
children:
|
|
5889
|
+
children: V.network === o ? V.size.toString().slice(0, 5) + "Mb" : ""
|
|
5864
5890
|
},
|
|
5865
|
-
|
|
5891
|
+
V.network
|
|
5866
5892
|
)) : null })
|
|
5867
5893
|
}
|
|
5868
5894
|
),
|
|
@@ -5875,11 +5901,11 @@ const bs = ({
|
|
|
5875
5901
|
left: "0",
|
|
5876
5902
|
padding: "0.5rem"
|
|
5877
5903
|
},
|
|
5878
|
-
children: (
|
|
5904
|
+
children: (m === "Playable" || m === "Ready" || m === "Flex") && A && /* @__PURE__ */ l.jsx(
|
|
5879
5905
|
hs,
|
|
5880
5906
|
{
|
|
5881
5907
|
checked: r,
|
|
5882
|
-
typeOfProduct:
|
|
5908
|
+
typeOfProduct: m,
|
|
5883
5909
|
id: e
|
|
5884
5910
|
}
|
|
5885
5911
|
)
|
|
@@ -5914,20 +5940,20 @@ const bs = ({
|
|
|
5914
5940
|
/* @__PURE__ */ l.jsxs(
|
|
5915
5941
|
On,
|
|
5916
5942
|
{
|
|
5917
|
-
className: `${
|
|
5918
|
-
downloading:
|
|
5919
|
-
onClickDonwload: async (
|
|
5920
|
-
if (
|
|
5943
|
+
className: `${T ? "w-1/2" : "w-2/3"} border-hover-` + m,
|
|
5944
|
+
downloading: re,
|
|
5945
|
+
onClickDonwload: async (V) => {
|
|
5946
|
+
if (V.stopPropagation(), T && J.customer === "playableFactoryInternal") {
|
|
5921
5947
|
Y(!0);
|
|
5922
5948
|
return;
|
|
5923
5949
|
} else {
|
|
5924
|
-
|
|
5925
|
-
const K =
|
|
5926
|
-
|
|
5950
|
+
F("download");
|
|
5951
|
+
const K = g.iosUrl, ce = g.googleUrl;
|
|
5952
|
+
v && v.willSpendCredit ? (h(!0), L("download"), X(!0)) : ["Playable", "Flex"].includes(m) && (!K || !ce) || m === "Ready" && ne === "single" && !K || m === "Ready" && ne === "multi" && (!K || !ce) ? (h(!0), W(!0)) : (W(!1), X(!1), await N(o, "download"));
|
|
5927
5953
|
}
|
|
5928
5954
|
},
|
|
5929
5955
|
children: [
|
|
5930
|
-
!
|
|
5956
|
+
!re && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
5931
5957
|
/* @__PURE__ */ l.jsx(
|
|
5932
5958
|
$r,
|
|
5933
5959
|
{
|
|
@@ -5943,33 +5969,33 @@ const bs = ({
|
|
|
5943
5969
|
}
|
|
5944
5970
|
}
|
|
5945
5971
|
),
|
|
5946
|
-
|
|
5972
|
+
T && J.customer !== "playableFactoryInternal" ? "TXT" : "Download"
|
|
5947
5973
|
] }),
|
|
5948
|
-
|
|
5974
|
+
re && /* @__PURE__ */ l.jsx(lr, {})
|
|
5949
5975
|
]
|
|
5950
5976
|
}
|
|
5951
5977
|
),
|
|
5952
|
-
|
|
5978
|
+
Q[o] && Q[o].includes("copy") && /* @__PURE__ */ l.jsx(
|
|
5953
5979
|
On,
|
|
5954
5980
|
{
|
|
5955
|
-
className: "w-1/3 border-hover-" +
|
|
5956
|
-
onClickDonwload: async (
|
|
5957
|
-
|
|
5958
|
-
const K =
|
|
5959
|
-
|
|
5981
|
+
className: "w-1/3 border-hover-" + m,
|
|
5982
|
+
onClickDonwload: async (V) => {
|
|
5983
|
+
V.stopPropagation(), F("copyLink");
|
|
5984
|
+
const K = g.iosUrl, ce = g.googleUrl;
|
|
5985
|
+
v && (v != null && v.willSpendCredit) ? (L("copy"), h(!0), X(!0)) : m !== "Import" && (!K || !ce) ? (h(!0), W(!0)) : (X(!1), W(!1), await N(o, "copy"));
|
|
5960
5986
|
},
|
|
5961
5987
|
disabled: E,
|
|
5962
5988
|
children: /* @__PURE__ */ l.jsx(Zo, { className: "h-6 w-6 stroke-dark-full" })
|
|
5963
5989
|
}
|
|
5964
5990
|
),
|
|
5965
|
-
|
|
5991
|
+
T && J.customer !== "playableFactoryInternal" && /* @__PURE__ */ l.jsx(
|
|
5966
5992
|
On,
|
|
5967
5993
|
{
|
|
5968
|
-
className: "w-1/2 border-hover-" +
|
|
5969
|
-
onClickDonwload: async (
|
|
5970
|
-
|
|
5971
|
-
const K =
|
|
5972
|
-
|
|
5994
|
+
className: "w-1/2 border-hover-" + m,
|
|
5995
|
+
onClickDonwload: async (V) => {
|
|
5996
|
+
V.stopPropagation(), F("download");
|
|
5997
|
+
const K = g.iosUrl, ce = g.googleUrl;
|
|
5998
|
+
v && (v != null && v.willSpendCredit) ? (L("download"), h(!0), X(!0)) : m !== "Import" && (!K || !ce) ? (h(!0), W(!0)) : (X(!1), W(!1), await R(!0));
|
|
5973
5999
|
},
|
|
5974
6000
|
disabled: E,
|
|
5975
6001
|
children: /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
@@ -5998,50 +6024,50 @@ const bs = ({
|
|
|
5998
6024
|
]
|
|
5999
6025
|
}
|
|
6000
6026
|
),
|
|
6001
|
-
|
|
6027
|
+
oe && /* @__PURE__ */ l.jsx(
|
|
6002
6028
|
ti,
|
|
6003
6029
|
{
|
|
6004
6030
|
creditConfirmType: f,
|
|
6005
6031
|
handleCopyLink: async () => {
|
|
6006
|
-
W(!1),
|
|
6032
|
+
W(!1), h(!1), await N(o, "copy");
|
|
6007
6033
|
},
|
|
6008
6034
|
download: async () => {
|
|
6009
|
-
W(!1),
|
|
6035
|
+
W(!1), h(!1), await N(o, "download");
|
|
6010
6036
|
},
|
|
6011
6037
|
onClose: () => {
|
|
6012
|
-
|
|
6038
|
+
X(!1), h(!1);
|
|
6013
6039
|
},
|
|
6014
6040
|
getDownloadCount: x
|
|
6015
6041
|
}
|
|
6016
6042
|
),
|
|
6017
|
-
|
|
6043
|
+
_ && /* @__PURE__ */ l.jsx(
|
|
6018
6044
|
qs,
|
|
6019
6045
|
{
|
|
6020
6046
|
onClose: () => {
|
|
6021
|
-
W(!1),
|
|
6047
|
+
W(!1), h(!1);
|
|
6022
6048
|
},
|
|
6023
|
-
iosLink:
|
|
6024
|
-
googleLink:
|
|
6025
|
-
buttonType:
|
|
6049
|
+
iosLink: g.iosUrl,
|
|
6050
|
+
googleLink: g.googleUrl,
|
|
6051
|
+
buttonType: Ae,
|
|
6026
6052
|
handleCopyLink: async () => {
|
|
6027
|
-
W(!1),
|
|
6053
|
+
W(!1), h(!1), await N(o, "copy");
|
|
6028
6054
|
},
|
|
6029
6055
|
download: async () => {
|
|
6030
|
-
W(!1),
|
|
6056
|
+
W(!1), h(!1), await N(o, "download");
|
|
6031
6057
|
},
|
|
6032
|
-
typeOfProduct:
|
|
6033
|
-
urlType:
|
|
6058
|
+
typeOfProduct: m,
|
|
6059
|
+
urlType: ne
|
|
6034
6060
|
}
|
|
6035
6061
|
),
|
|
6036
|
-
S &&
|
|
6062
|
+
S && J.customer === "playableFactoryInternal" && /* @__PURE__ */ l.jsx(
|
|
6037
6063
|
ys,
|
|
6038
6064
|
{
|
|
6039
6065
|
onClose: () => {
|
|
6040
6066
|
Y(!1);
|
|
6041
6067
|
},
|
|
6042
6068
|
handleDownload: R,
|
|
6043
|
-
handleDownloadMolocoTest:
|
|
6044
|
-
downloadingMoloco:
|
|
6069
|
+
handleDownloadMolocoTest: B,
|
|
6070
|
+
downloadingMoloco: k,
|
|
6045
6071
|
donwloadintMolocoTest: w,
|
|
6046
6072
|
downloadingMolocoHtml: Z
|
|
6047
6073
|
}
|
|
@@ -6353,32 +6379,32 @@ const bs = ({
|
|
|
6353
6379
|
api: i,
|
|
6354
6380
|
user: a,
|
|
6355
6381
|
handleDownloadError: A,
|
|
6356
|
-
fetchFileUrl:
|
|
6382
|
+
fetchFileUrl: m,
|
|
6357
6383
|
urls: c,
|
|
6358
6384
|
game: s,
|
|
6359
|
-
getDownloadCount:
|
|
6385
|
+
getDownloadCount: d,
|
|
6360
6386
|
disabled: y,
|
|
6361
|
-
setSafariCopyLink:
|
|
6387
|
+
setSafariCopyLink: g,
|
|
6362
6388
|
isTest: p,
|
|
6363
|
-
urlType:
|
|
6389
|
+
urlType: h
|
|
6364
6390
|
}) => {
|
|
6365
|
-
const [
|
|
6366
|
-
const q = [...
|
|
6367
|
-
if (
|
|
6368
|
-
const Z = q.findIndex((
|
|
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, S] = P(!1), Y = async (k) => {
|
|
6392
|
+
const q = [...v];
|
|
6393
|
+
if (v.includes(k)) {
|
|
6394
|
+
const Z = q.findIndex((z) => z === k);
|
|
6369
6395
|
q.splice(Z, 1), x(q);
|
|
6370
6396
|
} else
|
|
6371
|
-
q.push(
|
|
6397
|
+
q.push(k), x([...v, k]);
|
|
6372
6398
|
En.filter((Z) => [...q].includes(Z.id)).map((Z) => Z.name);
|
|
6373
|
-
}, f = async () => (console.log("multi download"), new Promise(async (
|
|
6374
|
-
const Z = En.filter((
|
|
6375
|
-
|
|
6376
|
-
console.log("get multi download res"),
|
|
6377
|
-
}).catch((
|
|
6378
|
-
console.log("get multi download err"),
|
|
6399
|
+
}, f = async () => (console.log("multi download"), new Promise(async (k, q) => {
|
|
6400
|
+
const Z = En.filter((z) => [...v].includes(z.id)).map((z) => z.name);
|
|
6401
|
+
Ae(!0), console.log("get multi download"), os(r, c, Z).then((z) => {
|
|
6402
|
+
console.log("get multi download res"), Ae(!1), k(z);
|
|
6403
|
+
}).catch((z) => {
|
|
6404
|
+
console.log("get multi download err"), Ae(!1), A(z.message, z), q(z);
|
|
6379
6405
|
});
|
|
6380
|
-
})),
|
|
6381
|
-
c.iosUrl, c.googleUrl, t && t.willSpendCredit ? (
|
|
6406
|
+
})), L = async () => {
|
|
6407
|
+
c.iosUrl, c.googleUrl, t && t.willSpendCredit ? (oe(!0), _("download"), S(!0)) : (S(!1), await f());
|
|
6382
6408
|
};
|
|
6383
6409
|
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
6384
6410
|
/* @__PURE__ */ l.jsx(
|
|
@@ -6387,7 +6413,7 @@ const bs = ({
|
|
|
6387
6413
|
style: {
|
|
6388
6414
|
position: "relative",
|
|
6389
6415
|
flex: 1,
|
|
6390
|
-
overflowY:
|
|
6416
|
+
overflowY: F ? "hidden" : "auto",
|
|
6391
6417
|
padding: "1.5rem",
|
|
6392
6418
|
paddingTop: "0"
|
|
6393
6419
|
},
|
|
@@ -6401,52 +6427,52 @@ const bs = ({
|
|
|
6401
6427
|
overflowY: "auto",
|
|
6402
6428
|
padding: "0.75rem"
|
|
6403
6429
|
},
|
|
6404
|
-
children: n && En.filter((
|
|
6430
|
+
children: n && En.filter((k) => {
|
|
6405
6431
|
var q;
|
|
6406
|
-
return t && ((q = t == null ? void 0 : t.networks) == null ? void 0 : q.length) > 0 ? t == null ? void 0 : t.networks.includes(
|
|
6432
|
+
return t && ((q = t == null ? void 0 : t.networks) == null ? void 0 : q.length) > 0 ? t == null ? void 0 : t.networks.includes(k.name) : o === "Import" ? e == null ? void 0 : e.networks.filter((Z) => Z.status === "paid").some((Z) => Z.name === k.name) : e == null ? void 0 : e.networks.includes(k.name);
|
|
6407
6433
|
}).filter(
|
|
6408
|
-
(
|
|
6409
|
-
).map((
|
|
6410
|
-
let q =
|
|
6411
|
-
if (
|
|
6434
|
+
(k) => k.name === "voodoo" ? a.customer === "customer:20" : !0
|
|
6435
|
+
).map((k) => {
|
|
6436
|
+
let q = k.imageSrc;
|
|
6437
|
+
if (k.name === "web") {
|
|
6412
6438
|
let Z = "web_" + o.toLowerCase() + ".png";
|
|
6413
6439
|
q = q.replace("web.png", Z);
|
|
6414
6440
|
}
|
|
6415
6441
|
return /* @__PURE__ */ l.jsx(
|
|
6416
6442
|
bs,
|
|
6417
6443
|
{
|
|
6418
|
-
id:
|
|
6419
|
-
name:
|
|
6444
|
+
id: k.id,
|
|
6445
|
+
name: k.name,
|
|
6420
6446
|
imageUrl: q,
|
|
6421
|
-
selected:
|
|
6447
|
+
selected: v.includes(k.id),
|
|
6422
6448
|
handleCardClick: Y,
|
|
6423
6449
|
networkVersionSize: E,
|
|
6424
|
-
fileSizeLoading:
|
|
6450
|
+
fileSizeLoading: O,
|
|
6425
6451
|
showCheckBox: !0,
|
|
6426
6452
|
typeOfProduct: o,
|
|
6427
6453
|
versionId: r,
|
|
6428
6454
|
api: i,
|
|
6429
6455
|
handleDownloadError: A,
|
|
6430
|
-
fetchFileUrl:
|
|
6456
|
+
fetchFileUrl: m,
|
|
6431
6457
|
urls: c,
|
|
6432
6458
|
game: s,
|
|
6433
6459
|
creditDownload: t,
|
|
6434
|
-
setIsConfirmActive:
|
|
6435
|
-
getDownloadCount:
|
|
6460
|
+
setIsConfirmActive: oe,
|
|
6461
|
+
getDownloadCount: d,
|
|
6436
6462
|
disabled: y,
|
|
6437
6463
|
user: a,
|
|
6438
|
-
setSafariCopyLink:
|
|
6464
|
+
setSafariCopyLink: g,
|
|
6439
6465
|
isTest: p,
|
|
6440
|
-
urlType:
|
|
6466
|
+
urlType: h
|
|
6441
6467
|
},
|
|
6442
|
-
|
|
6468
|
+
k.id
|
|
6443
6469
|
);
|
|
6444
6470
|
})
|
|
6445
6471
|
}
|
|
6446
6472
|
)
|
|
6447
6473
|
}
|
|
6448
6474
|
),
|
|
6449
|
-
|
|
6475
|
+
v.length > 1 && (o === "Playable" || o === "Ready" || o === "Flex") && /* @__PURE__ */ l.jsx(
|
|
6450
6476
|
"div",
|
|
6451
6477
|
{
|
|
6452
6478
|
style: {
|
|
@@ -6462,10 +6488,10 @@ const bs = ({
|
|
|
6462
6488
|
children: /* @__PURE__ */ l.jsx(
|
|
6463
6489
|
Zs,
|
|
6464
6490
|
{
|
|
6465
|
-
onClickMultiDownload:
|
|
6466
|
-
networksVersionTotalSize:
|
|
6491
|
+
onClickMultiDownload: L,
|
|
6492
|
+
networksVersionTotalSize: ne,
|
|
6467
6493
|
typeOfProduct: o,
|
|
6468
|
-
multiDownloading:
|
|
6494
|
+
multiDownloading: U
|
|
6469
6495
|
}
|
|
6470
6496
|
)
|
|
6471
6497
|
}
|
|
@@ -6473,16 +6499,16 @@ const bs = ({
|
|
|
6473
6499
|
W && /* @__PURE__ */ l.jsx(
|
|
6474
6500
|
ti,
|
|
6475
6501
|
{
|
|
6476
|
-
creditConfirmType:
|
|
6502
|
+
creditConfirmType: X,
|
|
6477
6503
|
handleCopyLink: async () => {
|
|
6478
6504
|
},
|
|
6479
6505
|
download: async () => {
|
|
6480
|
-
S(!1),
|
|
6506
|
+
S(!1), oe(!1), await f();
|
|
6481
6507
|
},
|
|
6482
6508
|
onClose: () => {
|
|
6483
|
-
S(!1),
|
|
6509
|
+
S(!1), oe(!1);
|
|
6484
6510
|
},
|
|
6485
|
-
getDownloadCount:
|
|
6511
|
+
getDownloadCount: d
|
|
6486
6512
|
}
|
|
6487
6513
|
)
|
|
6488
6514
|
] });
|
|
@@ -6507,10 +6533,10 @@ async function Ws(e, t) {
|
|
|
6507
6533
|
async function Ms(e, t) {
|
|
6508
6534
|
return (await ge.post(t + "/getFlexData", { _id: e })).data;
|
|
6509
6535
|
}
|
|
6510
|
-
async function
|
|
6536
|
+
async function Ss(e, t) {
|
|
6511
6537
|
return (await ge.post(t + "/getImportedPlayable", { id: e })).data;
|
|
6512
6538
|
}
|
|
6513
|
-
async function
|
|
6539
|
+
async function Ls(e, t) {
|
|
6514
6540
|
return (await ge.post(t + "/getReadyDownloadCount", e)).data;
|
|
6515
6541
|
}
|
|
6516
6542
|
const Os = [
|
|
@@ -6551,100 +6577,106 @@ const Os = [
|
|
|
6551
6577
|
api: i,
|
|
6552
6578
|
user: a,
|
|
6553
6579
|
title: A,
|
|
6554
|
-
handleDownloadError:
|
|
6580
|
+
handleDownloadError: m,
|
|
6555
6581
|
fetchFileUrl: c,
|
|
6556
6582
|
fileSize: s,
|
|
6557
|
-
setFileSize:
|
|
6558
|
-
setSafariCopyLink: y
|
|
6583
|
+
setFileSize: d,
|
|
6584
|
+
setSafariCopyLink: y,
|
|
6585
|
+
iosLink: g,
|
|
6586
|
+
androidLink: p,
|
|
6587
|
+
setIosLink: h,
|
|
6588
|
+
setAndroidLink: v,
|
|
6589
|
+
urlType: x,
|
|
6590
|
+
setUrlType: E
|
|
6559
6591
|
}) => {
|
|
6560
|
-
const [
|
|
6561
|
-
|
|
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), [S, Y] = P(!1);
|
|
6593
|
+
Ce(() => {
|
|
6562
6594
|
const w = () => {
|
|
6563
|
-
|
|
6595
|
+
W(window.innerWidth);
|
|
6564
6596
|
};
|
|
6565
6597
|
return window.addEventListener("resize", w), () => {
|
|
6566
6598
|
window.removeEventListener("resize", w);
|
|
6567
6599
|
};
|
|
6568
6600
|
}, []);
|
|
6569
6601
|
const f = async () => {
|
|
6570
|
-
|
|
6602
|
+
F(!0);
|
|
6571
6603
|
const w = await ws(e, i);
|
|
6572
|
-
return w != null && w.networks || (w.networks = Os),
|
|
6573
|
-
},
|
|
6574
|
-
|
|
6575
|
-
},
|
|
6576
|
-
|
|
6577
|
-
}, q = async (w,
|
|
6578
|
-
var
|
|
6604
|
+
return w != null && w.networks || (w.networks = Os), O(w), w;
|
|
6605
|
+
}, L = (w) => {
|
|
6606
|
+
h(w);
|
|
6607
|
+
}, k = (w) => {
|
|
6608
|
+
v(w);
|
|
6609
|
+
}, q = async (w, j) => {
|
|
6610
|
+
var Q, D;
|
|
6579
6611
|
try {
|
|
6580
6612
|
let N;
|
|
6581
6613
|
if (r === "Playable" || r === "Ready") {
|
|
6582
6614
|
const R = await Ws(t, i);
|
|
6583
6615
|
if (R) {
|
|
6584
|
-
|
|
6616
|
+
h(R.iosLink), v(R.androidLink), F(!1);
|
|
6585
6617
|
return;
|
|
6586
6618
|
}
|
|
6587
6619
|
if (w && (w.iosUrl || w.googleUrl)) {
|
|
6588
|
-
|
|
6620
|
+
h(w.iosUrl), v(w.googleUrl), F(!1);
|
|
6589
6621
|
return;
|
|
6590
6622
|
}
|
|
6591
|
-
if (
|
|
6592
|
-
let
|
|
6623
|
+
if (j && j.html) {
|
|
6624
|
+
let B = await fetch(c + "/" + j.html).then(
|
|
6593
6625
|
(K) => K.text()
|
|
6594
6626
|
);
|
|
6595
|
-
const
|
|
6627
|
+
const T = ((Q = B.match(
|
|
6596
6628
|
/var\s+iosLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
6597
|
-
)) == null ? void 0 :
|
|
6598
|
-
|
|
6599
|
-
const
|
|
6629
|
+
)) == null ? void 0 : Q.at(1)) || "";
|
|
6630
|
+
h(T);
|
|
6631
|
+
const V = ((D = B.match(
|
|
6600
6632
|
/var\s+androidLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
6601
6633
|
)) == null ? void 0 : D.at(1)) || "";
|
|
6602
|
-
|
|
6634
|
+
v(V), F(!1);
|
|
6603
6635
|
} else
|
|
6604
|
-
|
|
6636
|
+
v(""), h(""), F(!1);
|
|
6605
6637
|
} else if (r === "Flex") {
|
|
6606
6638
|
const R = await Ms(t, i);
|
|
6607
6639
|
if (R.googleUrl || R.iosUrl) {
|
|
6608
|
-
|
|
6640
|
+
v(R.googleUrl), h(R.iosUrl), F(!1);
|
|
6609
6641
|
return;
|
|
6610
6642
|
}
|
|
6611
|
-
w && (w.iosUrl || w.googleUrl) ? (
|
|
6643
|
+
w && (w.iosUrl || w.googleUrl) ? (h(w.iosUrl), v(w.googleUrl), F(!1)) : (v(""), h(""), F(!1));
|
|
6612
6644
|
}
|
|
6613
6645
|
} catch (N) {
|
|
6614
|
-
|
|
6646
|
+
m(N.response.data.error.msg);
|
|
6615
6647
|
}
|
|
6616
6648
|
}, Z = async () => {
|
|
6617
|
-
|
|
6649
|
+
F(!0);
|
|
6618
6650
|
let w;
|
|
6619
|
-
r === "Flex" ? w = await xs({ _id: t }, i) : r === "Ready" && (w = await
|
|
6651
|
+
r === "Flex" ? w = await xs({ _id: t }, i) : r === "Ready" && (w = await Ls({ _id: t }, i)), w && (["admin", "pm", "tester"].includes(a.role) ? U({
|
|
6620
6652
|
...w,
|
|
6621
6653
|
networks: eo
|
|
6622
|
-
}) : r === "Ready" && !w.canDownload ?
|
|
6654
|
+
}) : r === "Ready" && !w.canDownload ? U({
|
|
6623
6655
|
...w,
|
|
6624
6656
|
networks: eo
|
|
6625
|
-
}) :
|
|
6626
|
-
},
|
|
6627
|
-
return
|
|
6628
|
-
o || (
|
|
6657
|
+
}) : U(w)), F(!1);
|
|
6658
|
+
}, z = async () => await Ks(n, i);
|
|
6659
|
+
return Ce(() => {
|
|
6660
|
+
o || (O(null), ne(null), U(null), d(null)), o && (r === "Playable" ? (f().then((w) => {
|
|
6629
6661
|
q(null, w);
|
|
6630
|
-
}),
|
|
6631
|
-
f().then((
|
|
6632
|
-
q(null,
|
|
6662
|
+
}), X(!1)) : r === "Ready" ? Z().then((w) => {
|
|
6663
|
+
f().then((j) => {
|
|
6664
|
+
q(null, j), X(!1);
|
|
6633
6665
|
});
|
|
6634
6666
|
}) : r === "Flex" ? Z().then((w) => {
|
|
6635
|
-
|
|
6636
|
-
o && (q(
|
|
6667
|
+
X(!1), z().then((j) => {
|
|
6668
|
+
o && (q(j, null), X(!1), ne(j));
|
|
6637
6669
|
});
|
|
6638
|
-
}) : r === "Import" &&
|
|
6639
|
-
console.log(w),
|
|
6670
|
+
}) : r === "Import" && Ss(t, i).then((w) => {
|
|
6671
|
+
console.log(w), O(w), h(w.iosUrl || ""), v(w.googleUrl || ""), F(!1), X(!1);
|
|
6640
6672
|
}));
|
|
6641
6673
|
}, [n, e, t, o]), /* @__PURE__ */ l.jsxs(
|
|
6642
6674
|
"div",
|
|
6643
6675
|
{
|
|
6644
6676
|
style: {
|
|
6645
6677
|
display: "flex",
|
|
6646
|
-
height:
|
|
6647
|
-
width:
|
|
6678
|
+
height: _ > 1440 ? "700px" : "650px",
|
|
6679
|
+
width: _ > 1440 ? "675px" : "680px",
|
|
6648
6680
|
flexDirection: "column",
|
|
6649
6681
|
borderRadius: "rounded",
|
|
6650
6682
|
backgroundColor: "#F7F7F8",
|
|
@@ -6658,20 +6690,20 @@ const Os = [
|
|
|
6658
6690
|
title: A,
|
|
6659
6691
|
typeOfProduct: r,
|
|
6660
6692
|
fileSize: s,
|
|
6661
|
-
urls: { iosUrl:
|
|
6662
|
-
handleIosChange:
|
|
6663
|
-
handleGoogleChange:
|
|
6664
|
-
disabled:
|
|
6693
|
+
urls: { iosUrl: g, googleUrl: p },
|
|
6694
|
+
handleIosChange: L,
|
|
6695
|
+
handleGoogleChange: k,
|
|
6696
|
+
disabled: oe,
|
|
6665
6697
|
api: i,
|
|
6666
|
-
creditDownload:
|
|
6698
|
+
creditDownload: re,
|
|
6667
6699
|
user: a,
|
|
6668
|
-
isTest:
|
|
6669
|
-
setIsTest:
|
|
6670
|
-
urlType:
|
|
6671
|
-
setUrlType:
|
|
6700
|
+
isTest: S,
|
|
6701
|
+
setIsTest: Y,
|
|
6702
|
+
urlType: x,
|
|
6703
|
+
setUrlType: E
|
|
6672
6704
|
}
|
|
6673
6705
|
),
|
|
6674
|
-
|
|
6706
|
+
Ae ? /* @__PURE__ */ l.jsx(
|
|
6675
6707
|
"div",
|
|
6676
6708
|
{
|
|
6677
6709
|
style: {
|
|
@@ -6683,25 +6715,25 @@ const Os = [
|
|
|
6683
6715
|
},
|
|
6684
6716
|
children: /* @__PURE__ */ l.jsx(lr, { isNetworksLoading: !0 })
|
|
6685
6717
|
}
|
|
6686
|
-
) : (
|
|
6718
|
+
) : (J || re) && (r === "Flex" ? C : !0) && !Ae && g !== "Loading..." && p !== "Loading..." && /* @__PURE__ */ l.jsx(
|
|
6687
6719
|
Is,
|
|
6688
6720
|
{
|
|
6689
|
-
playable:
|
|
6690
|
-
creditDownload:
|
|
6721
|
+
playable: J,
|
|
6722
|
+
creditDownload: re,
|
|
6691
6723
|
visible: o,
|
|
6692
6724
|
versionId: t,
|
|
6693
6725
|
typeOfProduct: r,
|
|
6694
6726
|
api: i,
|
|
6695
6727
|
user: a,
|
|
6696
|
-
handleDownloadError:
|
|
6728
|
+
handleDownloadError: m,
|
|
6697
6729
|
fetchFileUrl: c,
|
|
6698
|
-
urls: { iosUrl:
|
|
6699
|
-
game:
|
|
6730
|
+
urls: { iosUrl: g, googleUrl: p },
|
|
6731
|
+
game: C,
|
|
6700
6732
|
getDownloadCount: Z,
|
|
6701
|
-
disabled:
|
|
6733
|
+
disabled: oe,
|
|
6702
6734
|
setSafariCopyLink: y,
|
|
6703
|
-
isTest:
|
|
6704
|
-
urlType:
|
|
6735
|
+
isTest: S,
|
|
6736
|
+
urlType: x
|
|
6705
6737
|
}
|
|
6706
6738
|
)
|
|
6707
6739
|
]
|
|
@@ -6725,42 +6757,42 @@ var Hn = { exports: {} }, At = {}, Xn = { exports: {} }, Ye = {}, Qn = { exports
|
|
|
6725
6757
|
* http://api.jqueryui.com/category/ui-core/
|
|
6726
6758
|
*/
|
|
6727
6759
|
var n = "none", r = "contents", o = /input|select|textarea|button|object|iframe/;
|
|
6728
|
-
function i(
|
|
6760
|
+
function i(d, y) {
|
|
6729
6761
|
return y.getPropertyValue("overflow") !== "visible" || // if 'overflow: visible' set, check if there is actually any overflow
|
|
6730
|
-
|
|
6762
|
+
d.scrollWidth <= 0 && d.scrollHeight <= 0;
|
|
6731
6763
|
}
|
|
6732
|
-
function a(
|
|
6733
|
-
var y =
|
|
6734
|
-
if (y && !
|
|
6764
|
+
function a(d) {
|
|
6765
|
+
var y = d.offsetWidth <= 0 && d.offsetHeight <= 0;
|
|
6766
|
+
if (y && !d.innerHTML)
|
|
6735
6767
|
return !0;
|
|
6736
6768
|
try {
|
|
6737
|
-
var
|
|
6738
|
-
return y ? p !== r && i(
|
|
6769
|
+
var g = window.getComputedStyle(d), p = g.getPropertyValue("display");
|
|
6770
|
+
return y ? p !== r && i(d, g) : p === n;
|
|
6739
6771
|
} catch {
|
|
6740
6772
|
return console.warn("Failed to inspect element style"), !1;
|
|
6741
6773
|
}
|
|
6742
6774
|
}
|
|
6743
|
-
function A(
|
|
6744
|
-
for (var y =
|
|
6745
|
-
if (
|
|
6775
|
+
function A(d) {
|
|
6776
|
+
for (var y = d, g = d.getRootNode && d.getRootNode(); y && y !== document.body; ) {
|
|
6777
|
+
if (g && y === g && (y = g.host.parentNode), a(y))
|
|
6746
6778
|
return !1;
|
|
6747
6779
|
y = y.parentNode;
|
|
6748
6780
|
}
|
|
6749
6781
|
return !0;
|
|
6750
6782
|
}
|
|
6751
|
-
function d
|
|
6752
|
-
var
|
|
6753
|
-
return p && A(
|
|
6783
|
+
function m(d, y) {
|
|
6784
|
+
var g = d.nodeName.toLowerCase(), p = o.test(g) && !d.disabled || g === "a" && d.href || y;
|
|
6785
|
+
return p && A(d);
|
|
6754
6786
|
}
|
|
6755
|
-
function c(
|
|
6756
|
-
var y =
|
|
6787
|
+
function c(d) {
|
|
6788
|
+
var y = d.getAttribute("tabindex");
|
|
6757
6789
|
y === null && (y = void 0);
|
|
6758
|
-
var
|
|
6759
|
-
return (
|
|
6790
|
+
var g = isNaN(y);
|
|
6791
|
+
return (g || y >= 0) && m(d, !g);
|
|
6760
6792
|
}
|
|
6761
|
-
function s(
|
|
6762
|
-
var y = [].slice.call(
|
|
6763
|
-
return
|
|
6793
|
+
function s(d) {
|
|
6794
|
+
var y = [].slice.call(d.querySelectorAll("*"), 0).reduce(function(g, p) {
|
|
6795
|
+
return g.concat(p.shadowRoot ? s(p.shadowRoot) : [p]);
|
|
6764
6796
|
}, []);
|
|
6765
6797
|
return y.filter(c);
|
|
6766
6798
|
}
|
|
@@ -6842,30 +6874,30 @@ var Vn = { exports: {} };
|
|
|
6842
6874
|
var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : document;
|
|
6843
6875
|
return A.activeElement.shadowRoot ? i(A.activeElement.shadowRoot) : A.activeElement;
|
|
6844
6876
|
}
|
|
6845
|
-
function a(A,
|
|
6877
|
+
function a(A, m) {
|
|
6846
6878
|
var c = (0, r.default)(A);
|
|
6847
6879
|
if (!c.length) {
|
|
6848
|
-
|
|
6880
|
+
m.preventDefault();
|
|
6849
6881
|
return;
|
|
6850
6882
|
}
|
|
6851
|
-
var s = void 0,
|
|
6883
|
+
var s = void 0, d = m.shiftKey, y = c[0], g = c[c.length - 1], p = i();
|
|
6852
6884
|
if (A === p) {
|
|
6853
|
-
if (!
|
|
6885
|
+
if (!d)
|
|
6854
6886
|
return;
|
|
6855
|
-
s =
|
|
6887
|
+
s = g;
|
|
6856
6888
|
}
|
|
6857
|
-
if (
|
|
6858
|
-
|
|
6889
|
+
if (g === p && !d && (s = y), y === p && d && (s = g), s) {
|
|
6890
|
+
m.preventDefault(), s.focus();
|
|
6859
6891
|
return;
|
|
6860
6892
|
}
|
|
6861
|
-
var
|
|
6862
|
-
if (
|
|
6893
|
+
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
|
+
if (v) {
|
|
6863
6895
|
var x = c.indexOf(p);
|
|
6864
|
-
if (x > -1 && (x +=
|
|
6865
|
-
|
|
6896
|
+
if (x > -1 && (x += d ? -1 : 1), s = c[x], typeof s > "u") {
|
|
6897
|
+
m.preventDefault(), s = d ? g : y, s.focus();
|
|
6866
6898
|
return;
|
|
6867
6899
|
}
|
|
6868
|
-
|
|
6900
|
+
m.preventDefault(), s.focus();
|
|
6869
6901
|
}
|
|
6870
6902
|
}
|
|
6871
6903
|
e.exports = t.default;
|
|
@@ -6925,10 +6957,10 @@ var Bs = Vs, Us = Fs(Bs);
|
|
|
6925
6957
|
function Fs(e) {
|
|
6926
6958
|
return e && e.__esModule ? e : { default: e };
|
|
6927
6959
|
}
|
|
6928
|
-
var
|
|
6929
|
-
ze.SafeHTMLCollection =
|
|
6930
|
-
ze.SafeNodeList =
|
|
6931
|
-
ze.canUseDOM =
|
|
6960
|
+
var dn = Us.default, _s = dn.canUseDOM ? window.HTMLElement : {};
|
|
6961
|
+
ze.SafeHTMLCollection = dn.canUseDOM ? window.HTMLCollection : {};
|
|
6962
|
+
ze.SafeNodeList = dn.canUseDOM ? window.NodeList : {};
|
|
6963
|
+
ze.canUseDOM = dn.canUseDOM;
|
|
6932
6964
|
ze.default = _s;
|
|
6933
6965
|
Object.defineProperty(je, "__esModule", {
|
|
6934
6966
|
value: !0
|
|
@@ -7056,19 +7088,19 @@ doc.body (` + e + `):
|
|
|
7056
7088
|
}
|
|
7057
7089
|
var cl = function(t, n) {
|
|
7058
7090
|
return t[n] || (t[n] = 0), t[n] += 1, n;
|
|
7059
|
-
},
|
|
7091
|
+
}, ml = function(t, n) {
|
|
7060
7092
|
return t[n] && (t[n] -= 1), n;
|
|
7061
|
-
},
|
|
7093
|
+
}, dl = function(t, n, r) {
|
|
7062
7094
|
r.forEach(function(o) {
|
|
7063
7095
|
cl(n, o), t.add(o);
|
|
7064
7096
|
});
|
|
7065
7097
|
}, pl = function(t, n, r) {
|
|
7066
7098
|
r.forEach(function(o) {
|
|
7067
|
-
|
|
7099
|
+
ml(n, o), n[o] === 0 && t.remove(o);
|
|
7068
7100
|
});
|
|
7069
7101
|
};
|
|
7070
7102
|
ft.add = function(t, n) {
|
|
7071
|
-
return
|
|
7103
|
+
return dl(t.classList, t.nodeName.toLowerCase() == "html" ? rt : ot, n.split(" "));
|
|
7072
7104
|
};
|
|
7073
7105
|
ft.remove = function(t, n) {
|
|
7074
7106
|
return pl(t.classList, t.nodeName.toLowerCase() == "html" ? rt : ot, n.split(" "));
|
|
@@ -7174,15 +7206,15 @@ yl.default.subscribe(Zl);
|
|
|
7174
7206
|
}, o = function() {
|
|
7175
7207
|
function W(S, Y) {
|
|
7176
7208
|
for (var f = 0; f < Y.length; f++) {
|
|
7177
|
-
var
|
|
7178
|
-
|
|
7209
|
+
var L = Y[f];
|
|
7210
|
+
L.enumerable = L.enumerable || !1, L.configurable = !0, "value" in L && (L.writable = !0), Object.defineProperty(S, L.key, L);
|
|
7179
7211
|
}
|
|
7180
7212
|
}
|
|
7181
7213
|
return function(S, Y, f) {
|
|
7182
7214
|
return Y && W(S.prototype, Y), f && W(S, f), S;
|
|
7183
7215
|
};
|
|
7184
|
-
}(), i =
|
|
7185
|
-
function
|
|
7216
|
+
}(), i = ae, a = nn, A = C(a), m = Ye, c = O(m), s = Hs, d = C(s), y = je, g = O(y), p = ft, h = O(p), v = ze, x = C(v), E = ht, J = C(E);
|
|
7217
|
+
function O(W) {
|
|
7186
7218
|
if (W && W.__esModule)
|
|
7187
7219
|
return W;
|
|
7188
7220
|
var S = {};
|
|
@@ -7194,39 +7226,39 @@ yl.default.subscribe(Zl);
|
|
|
7194
7226
|
function C(W) {
|
|
7195
7227
|
return W && W.__esModule ? W : { default: W };
|
|
7196
7228
|
}
|
|
7197
|
-
function
|
|
7229
|
+
function ne(W, S) {
|
|
7198
7230
|
if (!(W instanceof S))
|
|
7199
7231
|
throw new TypeError("Cannot call a class as a function");
|
|
7200
7232
|
}
|
|
7201
|
-
function
|
|
7233
|
+
function re(W, S) {
|
|
7202
7234
|
if (!W)
|
|
7203
7235
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7204
7236
|
return S && (typeof S == "object" || typeof S == "function") ? S : W;
|
|
7205
7237
|
}
|
|
7206
|
-
function
|
|
7238
|
+
function U(W, S) {
|
|
7207
7239
|
if (typeof S != "function" && S !== null)
|
|
7208
7240
|
throw new TypeError("Super expression must either be null or a function, not " + typeof S);
|
|
7209
7241
|
W.prototype = Object.create(S && S.prototype, { constructor: { value: W, enumerable: !1, writable: !0, configurable: !0 } }), S && (Object.setPrototypeOf ? Object.setPrototypeOf(W, S) : W.__proto__ = S);
|
|
7210
7242
|
}
|
|
7211
|
-
var
|
|
7243
|
+
var Ae = {
|
|
7212
7244
|
overlay: "ReactModal__Overlay",
|
|
7213
7245
|
content: "ReactModal__Content"
|
|
7214
|
-
},
|
|
7246
|
+
}, F = function(S) {
|
|
7215
7247
|
return S.code === "Tab" || S.keyCode === 9;
|
|
7216
|
-
},
|
|
7248
|
+
}, oe = function(S) {
|
|
7217
7249
|
return S.code === "Escape" || S.keyCode === 27;
|
|
7218
|
-
},
|
|
7219
|
-
|
|
7250
|
+
}, X = 0, _ = function(W) {
|
|
7251
|
+
U(S, W);
|
|
7220
7252
|
function S(Y) {
|
|
7221
|
-
|
|
7222
|
-
var f =
|
|
7223
|
-
return f.setOverlayRef = function(
|
|
7224
|
-
f.overlay =
|
|
7225
|
-
}, f.setContentRef = function(
|
|
7226
|
-
f.content =
|
|
7253
|
+
ne(this, S);
|
|
7254
|
+
var f = re(this, (S.__proto__ || Object.getPrototypeOf(S)).call(this, Y));
|
|
7255
|
+
return f.setOverlayRef = function(L) {
|
|
7256
|
+
f.overlay = L, f.props.overlayRef && f.props.overlayRef(L);
|
|
7257
|
+
}, f.setContentRef = function(L) {
|
|
7258
|
+
f.content = L, f.props.contentRef && f.props.contentRef(L);
|
|
7227
7259
|
}, f.afterClose = function() {
|
|
7228
|
-
var
|
|
7229
|
-
|
|
7260
|
+
var L = f.props, k = L.appElement, q = L.ariaHideApp, Z = L.htmlOpenClassName, z = L.bodyOpenClassName, w = L.parentSelector, j = w && w().ownerDocument || document;
|
|
7261
|
+
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);
|
|
7230
7262
|
}, f.open = function() {
|
|
7231
7263
|
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() {
|
|
7232
7264
|
f.openAnimationFrame = requestAnimationFrame(function() {
|
|
@@ -7241,8 +7273,8 @@ yl.default.subscribe(Zl);
|
|
|
7241
7273
|
}, f.focusContent = function() {
|
|
7242
7274
|
return f.content && !f.contentHasFocus() && f.content.focus({ preventScroll: !0 });
|
|
7243
7275
|
}, f.closeWithTimeout = function() {
|
|
7244
|
-
var
|
|
7245
|
-
f.setState({ beforeClose: !0, closesAt:
|
|
7276
|
+
var L = Date.now() + f.props.closeTimeoutMS;
|
|
7277
|
+
f.setState({ beforeClose: !0, closesAt: L }, function() {
|
|
7246
7278
|
f.closeTimer = setTimeout(f.closeWithoutTimeout, f.state.closesAt - Date.now());
|
|
7247
7279
|
});
|
|
7248
7280
|
}, f.closeWithoutTimeout = function() {
|
|
@@ -7252,36 +7284,36 @@ yl.default.subscribe(Zl);
|
|
|
7252
7284
|
afterOpen: !1,
|
|
7253
7285
|
closesAt: null
|
|
7254
7286
|
}, f.afterClose);
|
|
7255
|
-
}, f.handleKeyDown = function(
|
|
7256
|
-
|
|
7257
|
-
}, f.handleOverlayOnClick = function(
|
|
7258
|
-
f.shouldClose === null && (f.shouldClose = !0), f.shouldClose && f.props.shouldCloseOnOverlayClick && (f.ownerHandlesClose() ? f.requestClose(
|
|
7287
|
+
}, f.handleKeyDown = function(L) {
|
|
7288
|
+
F(L) && (0, d.default)(f.content, L), f.props.shouldCloseOnEsc && oe(L) && (L.stopPropagation(), f.requestClose(L));
|
|
7289
|
+
}, f.handleOverlayOnClick = function(L) {
|
|
7290
|
+
f.shouldClose === null && (f.shouldClose = !0), f.shouldClose && f.props.shouldCloseOnOverlayClick && (f.ownerHandlesClose() ? f.requestClose(L) : f.focusContent()), f.shouldClose = null;
|
|
7259
7291
|
}, f.handleContentOnMouseUp = function() {
|
|
7260
7292
|
f.shouldClose = !1;
|
|
7261
|
-
}, f.handleOverlayOnMouseDown = function(
|
|
7262
|
-
!f.props.shouldCloseOnOverlayClick &&
|
|
7293
|
+
}, f.handleOverlayOnMouseDown = function(L) {
|
|
7294
|
+
!f.props.shouldCloseOnOverlayClick && L.target == f.overlay && L.preventDefault();
|
|
7263
7295
|
}, f.handleContentOnClick = function() {
|
|
7264
7296
|
f.shouldClose = !1;
|
|
7265
7297
|
}, f.handleContentOnMouseDown = function() {
|
|
7266
7298
|
f.shouldClose = !1;
|
|
7267
|
-
}, f.requestClose = function(
|
|
7268
|
-
return f.ownerHandlesClose() && f.props.onRequestClose(
|
|
7299
|
+
}, f.requestClose = function(L) {
|
|
7300
|
+
return f.ownerHandlesClose() && f.props.onRequestClose(L);
|
|
7269
7301
|
}, f.ownerHandlesClose = function() {
|
|
7270
7302
|
return f.props.onRequestClose;
|
|
7271
7303
|
}, f.shouldBeClosed = function() {
|
|
7272
7304
|
return !f.state.isOpen && !f.state.beforeClose;
|
|
7273
7305
|
}, f.contentHasFocus = function() {
|
|
7274
7306
|
return document.activeElement === f.content || f.content.contains(document.activeElement);
|
|
7275
|
-
}, f.buildClassName = function(
|
|
7276
|
-
var q = (typeof
|
|
7277
|
-
base:
|
|
7278
|
-
afterOpen:
|
|
7279
|
-
beforeClose:
|
|
7307
|
+
}, f.buildClassName = function(L, k) {
|
|
7308
|
+
var q = (typeof k > "u" ? "undefined" : r(k)) === "object" ? k : {
|
|
7309
|
+
base: Ae[L],
|
|
7310
|
+
afterOpen: Ae[L] + "--after-open",
|
|
7311
|
+
beforeClose: Ae[L] + "--before-close"
|
|
7280
7312
|
}, Z = q.base;
|
|
7281
|
-
return f.state.afterOpen && (Z = Z + " " + q.afterOpen), f.state.beforeClose && (Z = Z + " " + q.beforeClose), typeof
|
|
7282
|
-
}, f.attributesFromObject = function(
|
|
7283
|
-
return Object.keys(
|
|
7284
|
-
return q[
|
|
7313
|
+
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(L, k) {
|
|
7315
|
+
return Object.keys(k).reduce(function(q, Z) {
|
|
7316
|
+
return q[L + "-" + Z] = k[Z], q;
|
|
7285
7317
|
}, {});
|
|
7286
7318
|
}, f.state = {
|
|
7287
7319
|
afterOpen: !1,
|
|
@@ -7295,8 +7327,8 @@ yl.default.subscribe(Zl);
|
|
|
7295
7327
|
}
|
|
7296
7328
|
}, {
|
|
7297
7329
|
key: "componentDidUpdate",
|
|
7298
|
-
value: function(f,
|
|
7299
|
-
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 && !
|
|
7330
|
+
value: function(f, L) {
|
|
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 && !L.isOpen && this.focusContent();
|
|
7300
7332
|
}
|
|
7301
7333
|
}, {
|
|
7302
7334
|
key: "componentWillUnmount",
|
|
@@ -7306,27 +7338,27 @@ yl.default.subscribe(Zl);
|
|
|
7306
7338
|
}, {
|
|
7307
7339
|
key: "beforeOpen",
|
|
7308
7340
|
value: function() {
|
|
7309
|
-
var f = this.props,
|
|
7310
|
-
Z &&
|
|
7341
|
+
var f = this.props, L = f.appElement, k = f.ariaHideApp, q = f.htmlOpenClassName, Z = f.bodyOpenClassName, z = f.parentSelector, w = z && z().ownerDocument || document;
|
|
7342
|
+
Z && h.add(w.body, Z), q && h.add(w.getElementsByTagName("html")[0], q), k && (X += 1, g.hide(L)), J.default.register(this);
|
|
7311
7343
|
}
|
|
7312
7344
|
// Don't steal focus from inner elements
|
|
7313
7345
|
}, {
|
|
7314
7346
|
key: "render",
|
|
7315
7347
|
value: function() {
|
|
7316
|
-
var f = this.props,
|
|
7348
|
+
var f = this.props, L = f.id, k = f.className, q = f.overlayClassName, Z = f.defaultStyles, z = f.children, w = k ? {} : Z.content, j = q ? {} : Z.overlay;
|
|
7317
7349
|
if (this.shouldBeClosed())
|
|
7318
7350
|
return null;
|
|
7319
|
-
var
|
|
7351
|
+
var Q = {
|
|
7320
7352
|
ref: this.setOverlayRef,
|
|
7321
7353
|
className: this.buildClassName("overlay", q),
|
|
7322
|
-
style: n({},
|
|
7354
|
+
style: n({}, j, this.props.style.overlay),
|
|
7323
7355
|
onClick: this.handleOverlayOnClick,
|
|
7324
7356
|
onMouseDown: this.handleOverlayOnMouseDown
|
|
7325
7357
|
}, D = n({
|
|
7326
|
-
id:
|
|
7358
|
+
id: L,
|
|
7327
7359
|
ref: this.setContentRef,
|
|
7328
7360
|
style: n({}, w, this.props.style.content),
|
|
7329
|
-
className: this.buildClassName("content",
|
|
7361
|
+
className: this.buildClassName("content", k),
|
|
7330
7362
|
tabIndex: "-1",
|
|
7331
7363
|
onKeyDown: this.handleKeyDown,
|
|
7332
7364
|
onMouseDown: this.handleContentOnMouseDown,
|
|
@@ -7336,18 +7368,18 @@ yl.default.subscribe(Zl);
|
|
|
7336
7368
|
"aria-label": this.props.contentLabel
|
|
7337
7369
|
}, this.attributesFromObject("aria", n({ modal: !0 }, this.props.aria)), this.attributesFromObject("data", this.props.data || {}), {
|
|
7338
7370
|
"data-testid": this.props.testId
|
|
7339
|
-
}), N = this.props.contentElement(D,
|
|
7340
|
-
return this.props.overlayElement(
|
|
7371
|
+
}), N = this.props.contentElement(D, z);
|
|
7372
|
+
return this.props.overlayElement(Q, N);
|
|
7341
7373
|
}
|
|
7342
7374
|
}]), S;
|
|
7343
7375
|
}(i.Component);
|
|
7344
|
-
|
|
7376
|
+
_.defaultProps = {
|
|
7345
7377
|
style: {
|
|
7346
7378
|
overlay: {},
|
|
7347
7379
|
content: {}
|
|
7348
7380
|
},
|
|
7349
7381
|
defaultStyles: {}
|
|
7350
|
-
},
|
|
7382
|
+
}, _.propTypes = {
|
|
7351
7383
|
isOpen: A.default.bool.isRequired,
|
|
7352
7384
|
defaultStyles: A.default.shape({
|
|
7353
7385
|
content: A.default.object,
|
|
@@ -7363,7 +7395,7 @@ yl.default.subscribe(Zl);
|
|
|
7363
7395
|
bodyOpenClassName: A.default.string,
|
|
7364
7396
|
htmlOpenClassName: A.default.string,
|
|
7365
7397
|
ariaHideApp: A.default.bool,
|
|
7366
|
-
appElement: A.default.oneOfType([A.default.instanceOf(x.default), A.default.instanceOf(
|
|
7398
|
+
appElement: A.default.oneOfType([A.default.instanceOf(x.default), A.default.instanceOf(v.SafeHTMLCollection), A.default.instanceOf(v.SafeNodeList), A.default.arrayOf(A.default.instanceOf(x.default))]),
|
|
7367
7399
|
onAfterOpen: A.default.func,
|
|
7368
7400
|
onAfterClose: A.default.func,
|
|
7369
7401
|
onRequestClose: A.default.func,
|
|
@@ -7384,7 +7416,7 @@ yl.default.subscribe(Zl);
|
|
|
7384
7416
|
overlayElement: A.default.func,
|
|
7385
7417
|
contentElement: A.default.func,
|
|
7386
7418
|
testId: A.default.string
|
|
7387
|
-
}, t.default =
|
|
7419
|
+
}, t.default = _, e.exports = t.default;
|
|
7388
7420
|
})(Xn, Xn.exports);
|
|
7389
7421
|
var Il = Xn.exports;
|
|
7390
7422
|
function Ai() {
|
|
@@ -7440,8 +7472,8 @@ https://fb.me/react-async-component-lifecycle-hooks`
|
|
|
7440
7472
|
);
|
|
7441
7473
|
t.componentWillUpdate = li;
|
|
7442
7474
|
var A = t.componentDidUpdate;
|
|
7443
|
-
t.componentDidUpdate = function(c, s,
|
|
7444
|
-
var y = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot :
|
|
7475
|
+
t.componentDidUpdate = function(c, s, d) {
|
|
7476
|
+
var y = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : d;
|
|
7445
7477
|
A.call(this, c, s, y);
|
|
7446
7478
|
};
|
|
7447
7479
|
}
|
|
@@ -7472,7 +7504,7 @@ var ro = Object.assign || function(e) {
|
|
|
7472
7504
|
return function(t, n, r) {
|
|
7473
7505
|
return n && e(t.prototype, n), r && e(t, r), t;
|
|
7474
7506
|
};
|
|
7475
|
-
}(), ui =
|
|
7507
|
+
}(), ui = ae, $t = Et(ui), Ml = ki, en = Et(Ml), Sl = nn, H = Et(Sl), Ll = Il, oo = Et(Ll), Ol = je, El = zl(Ol), Be = ze, io = Et(Be), kl = Kl;
|
|
7476
7508
|
function zl(e) {
|
|
7477
7509
|
if (e && e.__esModule)
|
|
7478
7510
|
return e;
|
|
@@ -7512,8 +7544,8 @@ var gt = function(e) {
|
|
|
7512
7544
|
function t() {
|
|
7513
7545
|
var n, r, o, i;
|
|
7514
7546
|
Yl(this, t);
|
|
7515
|
-
for (var a = arguments.length, A = Array(a),
|
|
7516
|
-
A[
|
|
7547
|
+
for (var a = arguments.length, A = Array(a), m = 0; m < a; m++)
|
|
7548
|
+
A[m] = arguments[m];
|
|
7517
7549
|
return i = (r = (o = ao(this, (n = t.__proto__ || Object.getPrototypeOf(t)).call.apply(n, [this].concat(A))), o), o.removePortal = function() {
|
|
7518
7550
|
!et && en.default.unmountComponentAtNode(o.node);
|
|
7519
7551
|
var c = Rt(o.props.parentSelector);
|
|
@@ -7521,8 +7553,8 @@ var gt = function(e) {
|
|
|
7521
7553
|
}, o.portalRef = function(c) {
|
|
7522
7554
|
o.portal = c;
|
|
7523
7555
|
}, o.renderPortal = function(c) {
|
|
7524
|
-
var s = Ao(),
|
|
7525
|
-
o.portalRef(
|
|
7556
|
+
var s = Ao(), d = s(o, $t.default.createElement(oo.default, ro({ defaultStyles: t.defaultStyles }, c)), o.node);
|
|
7557
|
+
o.portalRef(d);
|
|
7526
7558
|
}, r), ao(o, i);
|
|
7527
7559
|
}
|
|
7528
7560
|
return Wl(t, [{
|
|
@@ -7544,8 +7576,8 @@ var gt = function(e) {
|
|
|
7544
7576
|
key: "componentDidUpdate",
|
|
7545
7577
|
value: function(r, o, i) {
|
|
7546
7578
|
if (Be.canUseDOM) {
|
|
7547
|
-
var a = this.props, A = a.isOpen,
|
|
7548
|
-
r.portalClassName !==
|
|
7579
|
+
var a = this.props, A = a.isOpen, m = a.portalClassName;
|
|
7580
|
+
r.portalClassName !== m && (this.node.className = m);
|
|
7549
7581
|
var c = i.prevParent, s = i.nextParent;
|
|
7550
7582
|
s !== c && (c.removeChild(this.node), s.appendChild(this.node)), !(!r.isOpen && !A) && !et && this.renderPortal(this.props);
|
|
7551
7583
|
}
|
|
@@ -7580,44 +7612,44 @@ var gt = function(e) {
|
|
|
7580
7612
|
}]), t;
|
|
7581
7613
|
}(ui.Component);
|
|
7582
7614
|
gt.propTypes = {
|
|
7583
|
-
isOpen:
|
|
7584
|
-
style:
|
|
7585
|
-
content:
|
|
7586
|
-
overlay:
|
|
7615
|
+
isOpen: H.default.bool.isRequired,
|
|
7616
|
+
style: H.default.shape({
|
|
7617
|
+
content: H.default.object,
|
|
7618
|
+
overlay: H.default.object
|
|
7587
7619
|
}),
|
|
7588
|
-
portalClassName:
|
|
7589
|
-
bodyOpenClassName:
|
|
7590
|
-
htmlOpenClassName:
|
|
7591
|
-
className:
|
|
7592
|
-
base:
|
|
7593
|
-
afterOpen:
|
|
7594
|
-
beforeClose:
|
|
7620
|
+
portalClassName: H.default.string,
|
|
7621
|
+
bodyOpenClassName: H.default.string,
|
|
7622
|
+
htmlOpenClassName: H.default.string,
|
|
7623
|
+
className: H.default.oneOfType([H.default.string, H.default.shape({
|
|
7624
|
+
base: H.default.string.isRequired,
|
|
7625
|
+
afterOpen: H.default.string.isRequired,
|
|
7626
|
+
beforeClose: H.default.string.isRequired
|
|
7595
7627
|
})]),
|
|
7596
|
-
overlayClassName:
|
|
7597
|
-
base:
|
|
7598
|
-
afterOpen:
|
|
7599
|
-
beforeClose:
|
|
7628
|
+
overlayClassName: H.default.oneOfType([H.default.string, H.default.shape({
|
|
7629
|
+
base: H.default.string.isRequired,
|
|
7630
|
+
afterOpen: H.default.string.isRequired,
|
|
7631
|
+
beforeClose: H.default.string.isRequired
|
|
7600
7632
|
})]),
|
|
7601
|
-
appElement:
|
|
7602
|
-
onAfterOpen:
|
|
7603
|
-
onRequestClose:
|
|
7604
|
-
closeTimeoutMS:
|
|
7605
|
-
ariaHideApp:
|
|
7606
|
-
shouldFocusAfterRender:
|
|
7607
|
-
shouldCloseOnOverlayClick:
|
|
7608
|
-
shouldReturnFocusAfterClose:
|
|
7609
|
-
preventScroll:
|
|
7610
|
-
parentSelector:
|
|
7611
|
-
aria:
|
|
7612
|
-
data:
|
|
7613
|
-
role:
|
|
7614
|
-
contentLabel:
|
|
7615
|
-
shouldCloseOnEsc:
|
|
7616
|
-
overlayRef:
|
|
7617
|
-
contentRef:
|
|
7618
|
-
id:
|
|
7619
|
-
overlayElement:
|
|
7620
|
-
contentElement:
|
|
7633
|
+
appElement: H.default.oneOfType([H.default.instanceOf(io.default), H.default.instanceOf(Be.SafeHTMLCollection), H.default.instanceOf(Be.SafeNodeList), H.default.arrayOf(H.default.instanceOf(io.default))]),
|
|
7634
|
+
onAfterOpen: H.default.func,
|
|
7635
|
+
onRequestClose: H.default.func,
|
|
7636
|
+
closeTimeoutMS: H.default.number,
|
|
7637
|
+
ariaHideApp: H.default.bool,
|
|
7638
|
+
shouldFocusAfterRender: H.default.bool,
|
|
7639
|
+
shouldCloseOnOverlayClick: H.default.bool,
|
|
7640
|
+
shouldReturnFocusAfterClose: H.default.bool,
|
|
7641
|
+
preventScroll: H.default.bool,
|
|
7642
|
+
parentSelector: H.default.func,
|
|
7643
|
+
aria: H.default.object,
|
|
7644
|
+
data: H.default.object,
|
|
7645
|
+
role: H.default.string,
|
|
7646
|
+
contentLabel: H.default.string,
|
|
7647
|
+
shouldCloseOnEsc: H.default.bool,
|
|
7648
|
+
overlayRef: H.default.func,
|
|
7649
|
+
contentRef: H.default.func,
|
|
7650
|
+
id: H.default.string,
|
|
7651
|
+
overlayElement: H.default.func,
|
|
7652
|
+
contentElement: H.default.func
|
|
7621
7653
|
};
|
|
7622
7654
|
gt.defaultProps = {
|
|
7623
7655
|
isOpen: !1,
|
|
@@ -7936,36 +7968,36 @@ const Un = /* @__PURE__ */ zi(Dl), Rl = ({ width: e, height: t, fill: n }) => /*
|
|
|
7936
7968
|
playableId: i,
|
|
7937
7969
|
typeOfProduct: a,
|
|
7938
7970
|
api: A,
|
|
7939
|
-
user:
|
|
7971
|
+
user: m,
|
|
7940
7972
|
title: c,
|
|
7941
7973
|
iframeUrl: s,
|
|
7942
|
-
handleDownloadError:
|
|
7974
|
+
handleDownloadError: d,
|
|
7943
7975
|
fetchFileUrl: y,
|
|
7944
|
-
copyLinkUrl:
|
|
7976
|
+
copyLinkUrl: g
|
|
7945
7977
|
}) => {
|
|
7946
|
-
const [p,
|
|
7947
|
-
is(a, A,
|
|
7948
|
-
const
|
|
7949
|
-
Ft(n, "preview", null, null, !1).then((
|
|
7950
|
-
x(!0),
|
|
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, S] = P("Loading..."), [Y, f] = P("game");
|
|
7979
|
+
is(a, A, oe, y);
|
|
7980
|
+
const L = async () => {
|
|
7981
|
+
Ft(n, "preview", null, null, !1).then((k) => {
|
|
7982
|
+
x(!0), J(y + "/" + k.url), (a === "Flex" || a === "Ready" || a === "Playable") && (k.size >= 5 ? C(!0) : C(!1), Ae(k.size)), re(!1);
|
|
7951
7983
|
});
|
|
7952
7984
|
};
|
|
7953
|
-
return
|
|
7954
|
-
e ?
|
|
7955
|
-
}, [e]),
|
|
7956
|
-
const
|
|
7957
|
-
|
|
7985
|
+
return Ce(() => {
|
|
7986
|
+
e ? v || (L(), x(!0)) : (x(!1), J(""));
|
|
7987
|
+
}, [e]), Ce(() => {
|
|
7988
|
+
const k = () => {
|
|
7989
|
+
h(window.innerWidth);
|
|
7958
7990
|
};
|
|
7959
|
-
return window.addEventListener("resize",
|
|
7960
|
-
window.removeEventListener("resize",
|
|
7991
|
+
return window.addEventListener("resize", k), () => {
|
|
7992
|
+
window.removeEventListener("resize", k);
|
|
7961
7993
|
};
|
|
7962
|
-
}, []),
|
|
7994
|
+
}, []), ne && e ? /* @__PURE__ */ l.jsx(l.Fragment, { children: /* @__PURE__ */ l.jsx(
|
|
7963
7995
|
Un,
|
|
7964
7996
|
{
|
|
7965
7997
|
isOpen: e,
|
|
7966
7998
|
ariaHideApp: !1,
|
|
7967
7999
|
onRequestClose: () => {
|
|
7968
|
-
t(), a === "Flex" &&
|
|
8000
|
+
t(), a === "Flex" && re(!0);
|
|
7969
8001
|
},
|
|
7970
8002
|
style: {
|
|
7971
8003
|
content: {
|
|
@@ -8014,32 +8046,32 @@ const Un = /* @__PURE__ */ zi(Dl), Rl = ({ width: e, height: t, fill: n }) => /*
|
|
|
8014
8046
|
}
|
|
8015
8047
|
)
|
|
8016
8048
|
}
|
|
8017
|
-
) }) :
|
|
8049
|
+
) }) : ne && a === "Flex" ? null : /* @__PURE__ */ l.jsxs(
|
|
8018
8050
|
"div",
|
|
8019
8051
|
{
|
|
8020
|
-
onMouseDown: (
|
|
8021
|
-
|
|
8052
|
+
onMouseDown: (k) => {
|
|
8053
|
+
k.stopPropagation();
|
|
8022
8054
|
},
|
|
8023
|
-
onMouseUp: (
|
|
8024
|
-
|
|
8055
|
+
onMouseUp: (k) => {
|
|
8056
|
+
k.stopPropagation();
|
|
8025
8057
|
},
|
|
8026
8058
|
children: [
|
|
8027
|
-
|
|
8059
|
+
O && e && /* @__PURE__ */ l.jsx(
|
|
8028
8060
|
Gl,
|
|
8029
8061
|
{
|
|
8030
8062
|
setIsExceedingFileSizeAccepted: C,
|
|
8031
8063
|
closeModal: t,
|
|
8032
|
-
setLoading:
|
|
8064
|
+
setLoading: re,
|
|
8033
8065
|
typeOfProduct: a
|
|
8034
8066
|
}
|
|
8035
8067
|
),
|
|
8036
|
-
!
|
|
8068
|
+
!O && /* @__PURE__ */ l.jsxs(
|
|
8037
8069
|
Un,
|
|
8038
8070
|
{
|
|
8039
8071
|
isOpen: e,
|
|
8040
8072
|
ariaHideApp: !1,
|
|
8041
8073
|
onRequestClose: () => {
|
|
8042
|
-
t(), a === "Flex" &&
|
|
8074
|
+
t(), a === "Flex" && re(!0);
|
|
8043
8075
|
},
|
|
8044
8076
|
style: {
|
|
8045
8077
|
content: {
|
|
@@ -8084,7 +8116,7 @@ const Un = /* @__PURE__ */ zi(Dl), Rl = ({ width: e, height: t, fill: n }) => /*
|
|
|
8084
8116
|
"button",
|
|
8085
8117
|
{
|
|
8086
8118
|
onClick: () => {
|
|
8087
|
-
t(), a === "Flex" &&
|
|
8119
|
+
t(), a === "Flex" && re(!0);
|
|
8088
8120
|
},
|
|
8089
8121
|
style: {
|
|
8090
8122
|
color: "#718096",
|
|
@@ -8098,7 +8130,7 @@ const Un = /* @__PURE__ */ zi(Dl), Rl = ({ width: e, height: t, fill: n }) => /*
|
|
|
8098
8130
|
}
|
|
8099
8131
|
),
|
|
8100
8132
|
/* @__PURE__ */ l.jsxs(Ni, { children: [
|
|
8101
|
-
|
|
8133
|
+
v ? /* @__PURE__ */ l.jsx(
|
|
8102
8134
|
As,
|
|
8103
8135
|
{
|
|
8104
8136
|
versionName: o,
|
|
@@ -8107,8 +8139,11 @@ const Un = /* @__PURE__ */ zi(Dl), Rl = ({ width: e, height: t, fill: n }) => /*
|
|
|
8107
8139
|
iframeUrl: E,
|
|
8108
8140
|
api: A,
|
|
8109
8141
|
fetchFileUrl: y,
|
|
8110
|
-
copyLinkUrl:
|
|
8111
|
-
setSafariCopyLink:
|
|
8142
|
+
copyLinkUrl: g,
|
|
8143
|
+
setSafariCopyLink: oe,
|
|
8144
|
+
iosLink: X,
|
|
8145
|
+
androidLink: W,
|
|
8146
|
+
urlType: Y
|
|
8112
8147
|
}
|
|
8113
8148
|
) : /* @__PURE__ */ l.jsx(l.Fragment, { children: /* @__PURE__ */ l.jsx(
|
|
8114
8149
|
"div",
|
|
@@ -8145,24 +8180,30 @@ const Un = /* @__PURE__ */ zi(Dl), Rl = ({ width: e, height: t, fill: n }) => /*
|
|
|
8145
8180
|
gameId: r,
|
|
8146
8181
|
typeOfProduct: a,
|
|
8147
8182
|
api: A,
|
|
8148
|
-
user:
|
|
8183
|
+
user: m,
|
|
8149
8184
|
title: c,
|
|
8150
|
-
handleDownloadError:
|
|
8185
|
+
handleDownloadError: d,
|
|
8151
8186
|
fetchFileUrl: y,
|
|
8152
|
-
fileSize:
|
|
8153
|
-
setFileSize:
|
|
8154
|
-
setSafariCopyLink:
|
|
8187
|
+
fileSize: U,
|
|
8188
|
+
setFileSize: Ae,
|
|
8189
|
+
setSafariCopyLink: oe,
|
|
8190
|
+
iosLink: X,
|
|
8191
|
+
androidLink: W,
|
|
8192
|
+
setIosLink: _,
|
|
8193
|
+
setAndroidLink: S,
|
|
8194
|
+
urlType: Y,
|
|
8195
|
+
setUrlType: f
|
|
8155
8196
|
}
|
|
8156
8197
|
)
|
|
8157
8198
|
] }),
|
|
8158
8199
|
/* @__PURE__ */ l.jsx(Tn, {}),
|
|
8159
|
-
|
|
8200
|
+
F && /* @__PURE__ */ l.jsx(
|
|
8160
8201
|
Tl,
|
|
8161
8202
|
{
|
|
8162
8203
|
onClose: () => {
|
|
8163
|
-
un(
|
|
8204
|
+
un(F), oe("");
|
|
8164
8205
|
},
|
|
8165
|
-
url:
|
|
8206
|
+
url: F
|
|
8166
8207
|
}
|
|
8167
8208
|
),
|
|
8168
8209
|
/* @__PURE__ */ l.jsx(
|