gearboxdownloadmodal 7.0.6 → 8.0.2
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 +355 -370
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +19 -19
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/src/services/getDownloadLimit.d.ts +0 -1
package/dist/index.es.js
CHANGED
|
@@ -72,7 +72,7 @@ function ul() {
|
|
|
72
72
|
var O = g && h[g] || h[m];
|
|
73
73
|
return typeof O == "function" ? O : null;
|
|
74
74
|
}
|
|
75
|
-
var
|
|
75
|
+
var b = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
76
76
|
function Z(h) {
|
|
77
77
|
{
|
|
78
78
|
for (var O = arguments.length, N = new Array(O > 1 ? O - 1 : 0), ee = 1; ee < O; ee++)
|
|
@@ -82,7 +82,7 @@ function ul() {
|
|
|
82
82
|
}
|
|
83
83
|
function M(h, O, N) {
|
|
84
84
|
{
|
|
85
|
-
var ee =
|
|
85
|
+
var ee = b.ReactDebugCurrentFrame, fe = ee.getStackAddendum();
|
|
86
86
|
fe !== "" && (O += "%s", N = N.concat([fe]));
|
|
87
87
|
var me = N.map(function(ce) {
|
|
88
88
|
return String(ce);
|
|
@@ -90,10 +90,10 @@ function ul() {
|
|
|
90
90
|
me.unshift("Warning: " + O), Function.prototype.apply.call(console[h], console, me);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
var S = !1,
|
|
93
|
+
var S = !1, q = !1, T = !1, x = !1, k = !1, Y;
|
|
94
94
|
Y = Symbol.for("react.module.reference");
|
|
95
95
|
function W(h) {
|
|
96
|
-
return !!(typeof h == "string" || typeof h == "function" || h === r || h === s || k || h === i || h === A || h === u || x || h === p || S ||
|
|
96
|
+
return !!(typeof h == "string" || typeof h == "function" || h === r || h === s || k || h === i || h === A || h === u || x || h === p || S || q || T || typeof h == "object" && h !== null && (h.$$typeof === f || h.$$typeof === d || h.$$typeof === o || h.$$typeof === a || h.$$typeof === l || // 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.
|
|
@@ -216,7 +216,7 @@ function ul() {
|
|
|
216
216
|
L < 0 && Z("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
var F =
|
|
219
|
+
var F = b.ReactCurrentDispatcher, _;
|
|
220
220
|
function ne(h, O, N) {
|
|
221
221
|
{
|
|
222
222
|
if (_ === void 0)
|
|
@@ -284,14 +284,14 @@ function ul() {
|
|
|
284
284
|
} catch (Ye) {
|
|
285
285
|
if (Ye && ee && typeof Ye.stack == "string") {
|
|
286
286
|
for (var le = Ye.stack.split(`
|
|
287
|
-
`),
|
|
288
|
-
`), xe = le.length - 1, Ze =
|
|
287
|
+
`), Re = ee.stack.split(`
|
|
288
|
+
`), xe = le.length - 1, Ze = Re.length - 1; xe >= 1 && Ze >= 0 && le[xe] !== Re[Ze]; )
|
|
289
289
|
Ze--;
|
|
290
290
|
for (; xe >= 1 && Ze >= 0; xe--, Ze--)
|
|
291
|
-
if (le[xe] !==
|
|
291
|
+
if (le[xe] !== Re[Ze]) {
|
|
292
292
|
if (xe !== 1 || Ze !== 1)
|
|
293
293
|
do
|
|
294
|
-
if (xe--, Ze--, Ze < 0 || le[xe] !==
|
|
294
|
+
if (xe--, Ze--, Ze < 0 || le[xe] !== Re[Ze]) {
|
|
295
295
|
var Ve = `
|
|
296
296
|
` + le[xe].replace(" at new ", " at ");
|
|
297
297
|
return h.displayName && Ve.includes("<anonymous>") && (Ve = Ve.replace("<anonymous>", h.displayName)), typeof h == "function" && $.set(h, Ve), Ve;
|
|
@@ -309,15 +309,15 @@ function ul() {
|
|
|
309
309
|
function we(h, O, N) {
|
|
310
310
|
return R(h, !1);
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function We(h) {
|
|
313
313
|
var O = h.prototype;
|
|
314
314
|
return !!(O && O.isReactComponent);
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function je(h, O, N) {
|
|
317
317
|
if (h == null)
|
|
318
318
|
return "";
|
|
319
319
|
if (typeof h == "function")
|
|
320
|
-
return R(h,
|
|
320
|
+
return R(h, We(h));
|
|
321
321
|
if (typeof h == "string")
|
|
322
322
|
return ne(h);
|
|
323
323
|
switch (h) {
|
|
@@ -331,21 +331,21 @@ function ul() {
|
|
|
331
331
|
case l:
|
|
332
332
|
return we(h.render);
|
|
333
333
|
case d:
|
|
334
|
-
return
|
|
334
|
+
return je(h.type, O, N);
|
|
335
335
|
case f: {
|
|
336
336
|
var ee = h, fe = ee._payload, me = ee._init;
|
|
337
337
|
try {
|
|
338
|
-
return
|
|
338
|
+
return je(me(fe), O, N);
|
|
339
339
|
} catch {
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
return "";
|
|
344
344
|
}
|
|
345
|
-
var Be = Object.prototype.hasOwnProperty, D = {}, U =
|
|
345
|
+
var Be = Object.prototype.hasOwnProperty, D = {}, U = b.ReactDebugCurrentFrame;
|
|
346
346
|
function oe(h) {
|
|
347
347
|
if (h) {
|
|
348
|
-
var O = h._owner, N =
|
|
348
|
+
var O = h._owner, N = je(h.type, h._source, O ? O.type : null);
|
|
349
349
|
U.setExtraStackFrame(N);
|
|
350
350
|
} else
|
|
351
351
|
U.setExtraStackFrame(null);
|
|
@@ -358,8 +358,8 @@ function ul() {
|
|
|
358
358
|
var le = void 0;
|
|
359
359
|
try {
|
|
360
360
|
if (typeof h[ce] != "function") {
|
|
361
|
-
var
|
|
362
|
-
throw
|
|
361
|
+
var Re = Error((ee || "React class") + ": " + N + " type `" + ce + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof h[ce] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
362
|
+
throw Re.name = "Invariant Violation", Re;
|
|
363
363
|
}
|
|
364
364
|
le = h[ce](O, ce, ee, N, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
365
365
|
} catch (xe) {
|
|
@@ -370,7 +370,7 @@ function ul() {
|
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
var be = Array.isArray;
|
|
373
|
-
function
|
|
373
|
+
function ze(h) {
|
|
374
374
|
return be(h);
|
|
375
375
|
}
|
|
376
376
|
function $e(h) {
|
|
@@ -393,7 +393,7 @@ function ul() {
|
|
|
393
393
|
if (Ct(h))
|
|
394
394
|
return Z("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", $e(h)), Rt(h);
|
|
395
395
|
}
|
|
396
|
-
var At =
|
|
396
|
+
var At = b.ReactCurrentOwner, Cn = {
|
|
397
397
|
key: !0,
|
|
398
398
|
ref: !0,
|
|
399
399
|
__self: !0,
|
|
@@ -475,8 +475,8 @@ function ul() {
|
|
|
475
475
|
};
|
|
476
476
|
function Ta(h, O, N, ee, fe) {
|
|
477
477
|
{
|
|
478
|
-
var me, ce = {}, le = null,
|
|
479
|
-
N !== void 0 && (ut(N), le = "" + N), yr(O) && (ut(O.key), le = "" + O.key), Yt(O) && (
|
|
478
|
+
var me, ce = {}, le = null, Re = null;
|
|
479
|
+
N !== void 0 && (ut(N), le = "" + N), yr(O) && (ut(O.key), le = "" + O.key), Yt(O) && (Re = O.ref, vr(O, fe));
|
|
480
480
|
for (me in O)
|
|
481
481
|
Be.call(O, me) && !Cn.hasOwnProperty(me) && (ce[me] = O[me]);
|
|
482
482
|
if (h && h.defaultProps) {
|
|
@@ -484,17 +484,17 @@ function ul() {
|
|
|
484
484
|
for (me in xe)
|
|
485
485
|
ce[me] === void 0 && (ce[me] = xe[me]);
|
|
486
486
|
}
|
|
487
|
-
if (le ||
|
|
487
|
+
if (le || Re) {
|
|
488
488
|
var Ze = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
|
|
489
|
-
le && wt(ce, Ze),
|
|
489
|
+
le && wt(ce, Ze), Re && Ja(ce, Ze);
|
|
490
490
|
}
|
|
491
|
-
return Da(h, le,
|
|
491
|
+
return Da(h, le, Re, fe, ee, At.current, ce);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
var qr =
|
|
494
|
+
var qr = b.ReactCurrentOwner, Bi = b.ReactDebugCurrentFrame;
|
|
495
495
|
function Nt(h) {
|
|
496
496
|
if (h) {
|
|
497
|
-
var O = h._owner, N =
|
|
497
|
+
var O = h._owner, N = je(h.type, h._source, O ? O.type : null);
|
|
498
498
|
Bi.setExtraStackFrame(N);
|
|
499
499
|
} else
|
|
500
500
|
Bi.setExtraStackFrame(null);
|
|
@@ -557,7 +557,7 @@ Check the top-level render call using <` + N + ">.");
|
|
|
557
557
|
{
|
|
558
558
|
if (typeof h != "object")
|
|
559
559
|
return;
|
|
560
|
-
if (
|
|
560
|
+
if (ze(h))
|
|
561
561
|
for (var N = 0; N < h.length; N++) {
|
|
562
562
|
var ee = h[N];
|
|
563
563
|
Cr(ee) && Ui(ee, O);
|
|
@@ -616,10 +616,10 @@ Check the top-level render call using <` + N + ">.");
|
|
|
616
616
|
if (!ce) {
|
|
617
617
|
var le = "";
|
|
618
618
|
(h === void 0 || typeof h == "object" && h !== null && Object.keys(h).length === 0) && (le += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
619
|
-
var
|
|
620
|
-
|
|
619
|
+
var Re = Ga(fe);
|
|
620
|
+
Re ? le += Re : le += Vi();
|
|
621
621
|
var xe;
|
|
622
|
-
h === null ? xe = "null" :
|
|
622
|
+
h === null ? xe = "null" : ze(h) ? xe = "array" : h !== void 0 && h.$$typeof === e ? (xe = "<" + (B(h.type) || "Unknown") + " />", le = " Did you accidentally export a JSX literal instead of a component?") : xe = typeof h, Z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", xe, le);
|
|
623
623
|
}
|
|
624
624
|
var Ze = Ta(h, O, N, fe, me);
|
|
625
625
|
if (Ze == null)
|
|
@@ -628,7 +628,7 @@ Check the top-level render call using <` + N + ">.");
|
|
|
628
628
|
var Ve = O.children;
|
|
629
629
|
if (Ve !== void 0)
|
|
630
630
|
if (ee)
|
|
631
|
-
if (
|
|
631
|
+
if (ze(Ve)) {
|
|
632
632
|
for (var Jt = 0; Jt < Ve.length; Jt++)
|
|
633
633
|
Qi(Ve[Jt], h);
|
|
634
634
|
Object.freeze && Object.freeze(Ve);
|
|
@@ -742,28 +742,28 @@ function fl() {
|
|
|
742
742
|
if (ts)
|
|
743
743
|
return pe;
|
|
744
744
|
ts = 1;
|
|
745
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, A = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117,
|
|
746
|
-
function M(
|
|
747
|
-
if (typeof
|
|
748
|
-
var T =
|
|
745
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, A = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117, b = t ? Symbol.for("react.responder") : 60118, Z = t ? Symbol.for("react.scope") : 60119;
|
|
746
|
+
function M(q) {
|
|
747
|
+
if (typeof q == "object" && q !== null) {
|
|
748
|
+
var T = q.$$typeof;
|
|
749
749
|
switch (T) {
|
|
750
750
|
case e:
|
|
751
|
-
switch (
|
|
751
|
+
switch (q = q.type, q) {
|
|
752
752
|
case l:
|
|
753
753
|
case A:
|
|
754
754
|
case r:
|
|
755
755
|
case s:
|
|
756
756
|
case i:
|
|
757
757
|
case d:
|
|
758
|
-
return
|
|
758
|
+
return q;
|
|
759
759
|
default:
|
|
760
|
-
switch (
|
|
760
|
+
switch (q = q && q.$$typeof, q) {
|
|
761
761
|
case a:
|
|
762
762
|
case u:
|
|
763
763
|
case g:
|
|
764
764
|
case p:
|
|
765
765
|
case o:
|
|
766
|
-
return
|
|
766
|
+
return q;
|
|
767
767
|
default:
|
|
768
768
|
return T;
|
|
769
769
|
}
|
|
@@ -773,35 +773,35 @@ function fl() {
|
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
|
-
function S(
|
|
777
|
-
return M(
|
|
778
|
-
}
|
|
779
|
-
return pe.AsyncMode = l, pe.ConcurrentMode = A, pe.ContextConsumer = a, pe.ContextProvider = o, pe.Element = e, pe.ForwardRef = u, pe.Fragment = r, pe.Lazy = g, pe.Memo = p, pe.Portal = n, pe.Profiler = s, pe.StrictMode = i, pe.Suspense = d, pe.isAsyncMode = function(
|
|
780
|
-
return S(
|
|
781
|
-
}, pe.isConcurrentMode = S, pe.isContextConsumer = function(
|
|
782
|
-
return M(
|
|
783
|
-
}, pe.isContextProvider = function(
|
|
784
|
-
return M(
|
|
785
|
-
}, pe.isElement = function(
|
|
786
|
-
return typeof
|
|
787
|
-
}, pe.isForwardRef = function(
|
|
788
|
-
return M(
|
|
789
|
-
}, pe.isFragment = function(
|
|
790
|
-
return M(
|
|
791
|
-
}, pe.isLazy = function(
|
|
792
|
-
return M(
|
|
793
|
-
}, pe.isMemo = function(
|
|
794
|
-
return M(
|
|
795
|
-
}, pe.isPortal = function(
|
|
796
|
-
return M(
|
|
797
|
-
}, pe.isProfiler = function(
|
|
798
|
-
return M(
|
|
799
|
-
}, pe.isStrictMode = function(
|
|
800
|
-
return M(
|
|
801
|
-
}, pe.isSuspense = function(
|
|
802
|
-
return M(
|
|
803
|
-
}, pe.isValidElementType = function(
|
|
804
|
-
return typeof
|
|
776
|
+
function S(q) {
|
|
777
|
+
return M(q) === A;
|
|
778
|
+
}
|
|
779
|
+
return pe.AsyncMode = l, pe.ConcurrentMode = A, pe.ContextConsumer = a, pe.ContextProvider = o, pe.Element = e, pe.ForwardRef = u, pe.Fragment = r, pe.Lazy = g, pe.Memo = p, pe.Portal = n, pe.Profiler = s, pe.StrictMode = i, pe.Suspense = d, pe.isAsyncMode = function(q) {
|
|
780
|
+
return S(q) || M(q) === l;
|
|
781
|
+
}, pe.isConcurrentMode = S, pe.isContextConsumer = function(q) {
|
|
782
|
+
return M(q) === a;
|
|
783
|
+
}, pe.isContextProvider = function(q) {
|
|
784
|
+
return M(q) === o;
|
|
785
|
+
}, pe.isElement = function(q) {
|
|
786
|
+
return typeof q == "object" && q !== null && q.$$typeof === e;
|
|
787
|
+
}, pe.isForwardRef = function(q) {
|
|
788
|
+
return M(q) === u;
|
|
789
|
+
}, pe.isFragment = function(q) {
|
|
790
|
+
return M(q) === r;
|
|
791
|
+
}, pe.isLazy = function(q) {
|
|
792
|
+
return M(q) === g;
|
|
793
|
+
}, pe.isMemo = function(q) {
|
|
794
|
+
return M(q) === p;
|
|
795
|
+
}, pe.isPortal = function(q) {
|
|
796
|
+
return M(q) === n;
|
|
797
|
+
}, pe.isProfiler = function(q) {
|
|
798
|
+
return M(q) === s;
|
|
799
|
+
}, pe.isStrictMode = function(q) {
|
|
800
|
+
return M(q) === i;
|
|
801
|
+
}, pe.isSuspense = function(q) {
|
|
802
|
+
return M(q) === d;
|
|
803
|
+
}, pe.isValidElementType = function(q) {
|
|
804
|
+
return typeof q == "string" || typeof q == "function" || q === r || q === A || q === s || q === i || q === d || q === f || typeof q == "object" && q !== null && (q.$$typeof === g || q.$$typeof === p || q.$$typeof === o || q.$$typeof === a || q.$$typeof === u || q.$$typeof === v || q.$$typeof === b || q.$$typeof === Z || q.$$typeof === m);
|
|
805
805
|
}, pe.typeOf = M, pe;
|
|
806
806
|
}
|
|
807
807
|
var he = {};
|
|
@@ -816,34 +816,34 @@ var he = {};
|
|
|
816
816
|
var ns;
|
|
817
817
|
function pl() {
|
|
818
818
|
return ns || (ns = 1, process.env.NODE_ENV !== "production" && function() {
|
|
819
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, A = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117,
|
|
819
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, A = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117, b = t ? Symbol.for("react.responder") : 60118, Z = t ? Symbol.for("react.scope") : 60119;
|
|
820
820
|
function M(R) {
|
|
821
821
|
return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
822
|
-
R === r || R === A || R === s || R === i || R === d || R === f || typeof R == "object" && R !== null && (R.$$typeof === g || R.$$typeof === p || R.$$typeof === o || R.$$typeof === a || R.$$typeof === u || R.$$typeof === v || R.$$typeof ===
|
|
822
|
+
R === r || R === A || R === s || R === i || R === d || R === f || typeof R == "object" && R !== null && (R.$$typeof === g || R.$$typeof === p || R.$$typeof === o || R.$$typeof === a || R.$$typeof === u || R.$$typeof === v || R.$$typeof === b || R.$$typeof === Z || R.$$typeof === m);
|
|
823
823
|
}
|
|
824
824
|
function S(R) {
|
|
825
825
|
if (typeof R == "object" && R !== null) {
|
|
826
826
|
var we = R.$$typeof;
|
|
827
827
|
switch (we) {
|
|
828
828
|
case e:
|
|
829
|
-
var
|
|
830
|
-
switch (
|
|
829
|
+
var We = R.type;
|
|
830
|
+
switch (We) {
|
|
831
831
|
case l:
|
|
832
832
|
case A:
|
|
833
833
|
case r:
|
|
834
834
|
case s:
|
|
835
835
|
case i:
|
|
836
836
|
case d:
|
|
837
|
-
return
|
|
837
|
+
return We;
|
|
838
838
|
default:
|
|
839
|
-
var
|
|
840
|
-
switch (
|
|
839
|
+
var je = We && We.$$typeof;
|
|
840
|
+
switch (je) {
|
|
841
841
|
case a:
|
|
842
842
|
case u:
|
|
843
843
|
case g:
|
|
844
844
|
case p:
|
|
845
845
|
case o:
|
|
846
|
-
return
|
|
846
|
+
return je;
|
|
847
847
|
default:
|
|
848
848
|
return we;
|
|
849
849
|
}
|
|
@@ -853,7 +853,7 @@ function pl() {
|
|
|
853
853
|
}
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
|
-
var
|
|
856
|
+
var q = l, T = A, x = a, k = o, Y = e, W = u, z = r, j = g, B = p, E = n, L = s, G = i, y = d, K = !1;
|
|
857
857
|
function Q(R) {
|
|
858
858
|
return K || (K = !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.")), w(R) || S(R) === l;
|
|
859
859
|
}
|
|
@@ -893,7 +893,7 @@ function pl() {
|
|
|
893
893
|
function ge(R) {
|
|
894
894
|
return S(R) === d;
|
|
895
895
|
}
|
|
896
|
-
he.AsyncMode =
|
|
896
|
+
he.AsyncMode = q, he.ConcurrentMode = T, he.ContextConsumer = x, he.ContextProvider = k, he.Element = Y, he.ForwardRef = W, he.Fragment = z, he.Lazy = j, he.Memo = B, he.Portal = E, he.Profiler = L, he.StrictMode = G, he.Suspense = y, he.isAsyncMode = Q, he.isConcurrentMode = w, he.isContextConsumer = I, he.isContextProvider = V, he.isElement = H, he.isForwardRef = J, he.isFragment = P, he.isLazy = F, he.isMemo = _, he.isPortal = ne, he.isProfiler = se, he.isStrictMode = $, he.isSuspense = ge, he.isValidElementType = M, he.typeOf = S;
|
|
897
897
|
}()), he;
|
|
898
898
|
}
|
|
899
899
|
var rs;
|
|
@@ -1040,18 +1040,18 @@ function gl() {
|
|
|
1040
1040
|
return I;
|
|
1041
1041
|
}
|
|
1042
1042
|
var f = "<<anonymous>>", p = {
|
|
1043
|
-
array:
|
|
1044
|
-
bigint:
|
|
1045
|
-
bool:
|
|
1046
|
-
func:
|
|
1047
|
-
number:
|
|
1048
|
-
object:
|
|
1049
|
-
string:
|
|
1050
|
-
symbol:
|
|
1043
|
+
array: b("array"),
|
|
1044
|
+
bigint: b("bigint"),
|
|
1045
|
+
bool: b("boolean"),
|
|
1046
|
+
func: b("function"),
|
|
1047
|
+
number: b("number"),
|
|
1048
|
+
object: b("object"),
|
|
1049
|
+
string: b("string"),
|
|
1050
|
+
symbol: b("symbol"),
|
|
1051
1051
|
any: Z(),
|
|
1052
1052
|
arrayOf: M,
|
|
1053
1053
|
element: S(),
|
|
1054
|
-
elementType:
|
|
1054
|
+
elementType: q(),
|
|
1055
1055
|
instanceOf: T,
|
|
1056
1056
|
node: W(),
|
|
1057
1057
|
objectOf: k,
|
|
@@ -1090,7 +1090,7 @@ function gl() {
|
|
|
1090
1090
|
var J = H.bind(null, !1);
|
|
1091
1091
|
return J.isRequired = H.bind(null, !0), J;
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function b(w) {
|
|
1094
1094
|
function I(V, H, J, P, F, _) {
|
|
1095
1095
|
var ne = V[H], se = G(ne);
|
|
1096
1096
|
if (se !== w) {
|
|
@@ -1136,7 +1136,7 @@ function gl() {
|
|
|
1136
1136
|
}
|
|
1137
1137
|
return v(w);
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1139
|
+
function q() {
|
|
1140
1140
|
function w(I, V, H, J, P) {
|
|
1141
1141
|
var F = I[V];
|
|
1142
1142
|
if (!t.isValidElementType(F)) {
|
|
@@ -2044,12 +2044,12 @@ dt.createBytes = function(t, e) {
|
|
|
2044
2044
|
}
|
|
2045
2045
|
for (var m = 0, u = 0; u < e.length; u++)
|
|
2046
2046
|
m += e[u].totalCount;
|
|
2047
|
-
for (var v = new Array(m),
|
|
2047
|
+
for (var v = new Array(m), b = 0, u = 0; u < r; u++)
|
|
2048
2048
|
for (var a = 0; a < e.length; a++)
|
|
2049
|
-
u < s[a].length && (v[
|
|
2049
|
+
u < s[a].length && (v[b++] = s[a][u]);
|
|
2050
2050
|
for (var u = 0; u < i; u++)
|
|
2051
2051
|
for (var a = 0; a < e.length; a++)
|
|
2052
|
-
u < o[a].length && (v[
|
|
2052
|
+
u < o[a].length && (v[b++] = o[a][u]);
|
|
2053
2053
|
return v;
|
|
2054
2054
|
};
|
|
2055
2055
|
var Ol = dt, xi = {};
|
|
@@ -2133,14 +2133,14 @@ var Pl = {
|
|
|
2133
2133
|
return Jl.default.createElement(Tl.default, Wl({}, d, {
|
|
2134
2134
|
bgColor: r,
|
|
2135
2135
|
bgD: p.map(function(g, m) {
|
|
2136
|
-
return g.map(function(v,
|
|
2137
|
-
return v ? "" : "M " +
|
|
2136
|
+
return g.map(function(v, b) {
|
|
2137
|
+
return v ? "" : "M " + b + " " + m + " l 1 0 0 1 -1 0 Z";
|
|
2138
2138
|
}).join(" ");
|
|
2139
2139
|
}).join(" "),
|
|
2140
2140
|
fgColor: s,
|
|
2141
2141
|
fgD: p.map(function(g, m) {
|
|
2142
|
-
return g.map(function(v,
|
|
2143
|
-
return v ? "M " +
|
|
2142
|
+
return g.map(function(v, b) {
|
|
2143
|
+
return v ? "M " + b + " " + m + " l 1 0 0 1 -1 0 Z" : "";
|
|
2144
2144
|
}).join(" ");
|
|
2145
2145
|
}).join(" "),
|
|
2146
2146
|
ref: e,
|
|
@@ -2552,8 +2552,8 @@ class Vn extends or {
|
|
|
2552
2552
|
}
|
|
2553
2553
|
const d = this.resolve(e, n);
|
|
2554
2554
|
let f = d && d.res;
|
|
2555
|
-
const p = d && d.usedKey || o, g = d && d.exactUsedKey || o, m = Object.prototype.toString.apply(f), v = ["[object Number]", "[object Function]", "[object RegExp]"],
|
|
2556
|
-
if (Z && f && M && v.indexOf(m) < 0 && !(te(
|
|
2555
|
+
const p = d && d.usedKey || o, g = d && d.exactUsedKey || o, m = Object.prototype.toString.apply(f), v = ["[object Number]", "[object Function]", "[object RegExp]"], b = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, Z = !this.i18nFormat || this.i18nFormat.handleAsObject, M = !te(f) && typeof f != "boolean" && typeof f != "number";
|
|
2556
|
+
if (Z && f && M && v.indexOf(m) < 0 && !(te(b) && Array.isArray(f))) {
|
|
2557
2557
|
if (!n.returnObjects && !this.options.returnObjects) {
|
|
2558
2558
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2559
2559
|
const S = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, f, {
|
|
@@ -2563,28 +2563,28 @@ class Vn extends or {
|
|
|
2563
2563
|
return i ? (d.res = S, d.usedParams = this.getUsedParamsDetails(n), d) : S;
|
|
2564
2564
|
}
|
|
2565
2565
|
if (s) {
|
|
2566
|
-
const S = Array.isArray(f),
|
|
2566
|
+
const S = Array.isArray(f), q = S ? [] : {}, T = S ? g : p;
|
|
2567
2567
|
for (const x in f)
|
|
2568
2568
|
if (Object.prototype.hasOwnProperty.call(f, x)) {
|
|
2569
2569
|
const k = `${T}${s}${x}`;
|
|
2570
|
-
|
|
2570
|
+
q[x] = this.translate(k, {
|
|
2571
2571
|
...n,
|
|
2572
2572
|
joinArrays: !1,
|
|
2573
2573
|
ns: a
|
|
2574
|
-
}),
|
|
2574
|
+
}), q[x] === k && (q[x] = f[x]);
|
|
2575
2575
|
}
|
|
2576
|
-
f =
|
|
2576
|
+
f = q;
|
|
2577
2577
|
}
|
|
2578
|
-
} else if (Z && te(
|
|
2579
|
-
f = f.join(
|
|
2578
|
+
} else if (Z && te(b) && Array.isArray(f))
|
|
2579
|
+
f = f.join(b), f && (f = this.extendTranslation(f, e, n, r));
|
|
2580
2580
|
else {
|
|
2581
|
-
let S = !1,
|
|
2581
|
+
let S = !1, q = !1;
|
|
2582
2582
|
const T = n.count !== void 0 && !te(n.count), x = Vn.hasDefaultValue(n), k = T ? this.pluralResolver.getSuffix(A, n.count, n) : "", Y = n.ordinal && T ? this.pluralResolver.getSuffix(A, n.count, {
|
|
2583
2583
|
ordinal: !1
|
|
2584
2584
|
}) : "", W = T && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), z = W && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${k}`] || n[`defaultValue${Y}`] || n.defaultValue;
|
|
2585
|
-
!this.isValidLookup(f) && x && (S = !0, f = z), this.isValidLookup(f) || (
|
|
2586
|
-
const B = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) &&
|
|
2587
|
-
if (
|
|
2585
|
+
!this.isValidLookup(f) && x && (S = !0, f = z), this.isValidLookup(f) || (q = !0, f = o);
|
|
2586
|
+
const B = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && q ? void 0 : f, E = x && z !== f && this.options.updateMissing;
|
|
2587
|
+
if (q || S || E) {
|
|
2588
2588
|
if (this.logger.log(E ? "updateKey" : "missingKey", A, l, o, E ? z : f), s) {
|
|
2589
2589
|
const K = this.resolve(o, {
|
|
2590
2590
|
...n,
|
|
@@ -2610,7 +2610,7 @@ class Vn extends or {
|
|
|
2610
2610
|
});
|
|
2611
2611
|
}) : y(L, o, z));
|
|
2612
2612
|
}
|
|
2613
|
-
f = this.extendTranslation(f, e, n, d, r),
|
|
2613
|
+
f = this.extendTranslation(f, e, n, d, r), q && f === o && this.options.appendNamespaceToMissingKey && (f = `${l}:${o}`), (q || S) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? f = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}:${o}` : o, S ? f : void 0) : f = this.options.parseMissingKeyHandler(f));
|
|
2614
2614
|
}
|
|
2615
2615
|
return i ? (d.res = f, d.usedParams = this.getUsedParamsDetails(n), d) : f;
|
|
2616
2616
|
}
|
|
@@ -2671,25 +2671,25 @@ class Vn extends or {
|
|
|
2671
2671
|
this.options.fallbackNS && (d = d.concat(this.options.fallbackNS));
|
|
2672
2672
|
const f = n.count !== void 0 && !te(n.count), p = f && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), g = n.context !== void 0 && (te(n.context) || typeof n.context == "number") && n.context !== "", m = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng);
|
|
2673
2673
|
d.forEach((v) => {
|
|
2674
|
-
this.isValidLookup(r) || (a = v, !ms[`${m[0]}-${v}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(a) && (ms[`${m[0]}-${v}`] = !0, this.logger.warn(`key "${i}" for languages "${m.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), m.forEach((
|
|
2674
|
+
this.isValidLookup(r) || (a = v, !ms[`${m[0]}-${v}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(a) && (ms[`${m[0]}-${v}`] = !0, this.logger.warn(`key "${i}" for languages "${m.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), m.forEach((b) => {
|
|
2675
2675
|
if (this.isValidLookup(r))
|
|
2676
2676
|
return;
|
|
2677
|
-
o =
|
|
2677
|
+
o = b;
|
|
2678
2678
|
const Z = [u];
|
|
2679
2679
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
2680
|
-
this.i18nFormat.addLookupKeys(Z, u,
|
|
2680
|
+
this.i18nFormat.addLookupKeys(Z, u, b, v, n);
|
|
2681
2681
|
else {
|
|
2682
2682
|
let S;
|
|
2683
|
-
f && (S = this.pluralResolver.getSuffix(
|
|
2684
|
-
const
|
|
2685
|
-
if (f && (Z.push(u + S), n.ordinal && S.indexOf(T) === 0 && Z.push(u + S.replace(T, this.options.pluralSeparator)), p && Z.push(u +
|
|
2683
|
+
f && (S = this.pluralResolver.getSuffix(b, n.count, n));
|
|
2684
|
+
const q = `${this.options.pluralSeparator}zero`, T = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2685
|
+
if (f && (Z.push(u + S), n.ordinal && S.indexOf(T) === 0 && Z.push(u + S.replace(T, this.options.pluralSeparator)), p && Z.push(u + q)), g) {
|
|
2686
2686
|
const x = `${u}${this.options.contextSeparator}${n.context}`;
|
|
2687
|
-
Z.push(x), f && (Z.push(x + S), n.ordinal && S.indexOf(T) === 0 && Z.push(x + S.replace(T, this.options.pluralSeparator)), p && Z.push(x +
|
|
2687
|
+
Z.push(x), f && (Z.push(x + S), n.ordinal && S.indexOf(T) === 0 && Z.push(x + S.replace(T, this.options.pluralSeparator)), p && Z.push(x + q));
|
|
2688
2688
|
}
|
|
2689
2689
|
}
|
|
2690
2690
|
let M;
|
|
2691
2691
|
for (; M = Z.pop(); )
|
|
2692
|
-
this.isValidLookup(r) || (s = M, r = this.getResource(
|
|
2692
|
+
this.isValidLookup(r) || (s = M, r = this.getResource(b, v, M, n));
|
|
2693
2693
|
}));
|
|
2694
2694
|
});
|
|
2695
2695
|
}), {
|
|
@@ -3037,10 +3037,10 @@ class uu {
|
|
|
3037
3037
|
nestingSuffix: g,
|
|
3038
3038
|
nestingSuffixEscaped: m,
|
|
3039
3039
|
nestingOptionsSeparator: v,
|
|
3040
|
-
maxReplaces:
|
|
3040
|
+
maxReplaces: b,
|
|
3041
3041
|
alwaysFormat: Z
|
|
3042
3042
|
} = e.interpolation;
|
|
3043
|
-
this.escape = n !== void 0 ? n : Fl, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = s ? Dt(s) : o || "{{", this.suffix = a ? Dt(a) : l || "}}", this.formatSeparator = A || ",", this.unescapePrefix = u ? "" : d || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = f ? Dt(f) : p || Dt("$t("), this.nestingSuffix = g ? Dt(g) : m || Dt(")"), this.nestingOptionsSeparator = v || ",", this.maxReplaces =
|
|
3043
|
+
this.escape = n !== void 0 ? n : Fl, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = s ? Dt(s) : o || "{{", this.suffix = a ? Dt(a) : l || "}}", this.formatSeparator = A || ",", this.unescapePrefix = u ? "" : d || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = f ? Dt(f) : p || Dt("$t("), this.nestingSuffix = g ? Dt(g) : m || Dt(")"), this.nestingOptionsSeparator = v || ",", this.maxReplaces = b || 1e3, this.alwaysFormat = Z !== void 0 ? Z : !1, this.resetRegExp();
|
|
3044
3044
|
}
|
|
3045
3045
|
reset() {
|
|
3046
3046
|
this.options && this.init(this.options);
|
|
@@ -3053,12 +3053,12 @@ class uu {
|
|
|
3053
3053
|
let s, o, a;
|
|
3054
3054
|
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, A = (p) => {
|
|
3055
3055
|
if (p.indexOf(this.formatSeparator) < 0) {
|
|
3056
|
-
const
|
|
3057
|
-
return this.alwaysFormat ? this.format(
|
|
3056
|
+
const b = vs(n, l, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
3057
|
+
return this.alwaysFormat ? this.format(b, void 0, r, {
|
|
3058
3058
|
...i,
|
|
3059
3059
|
...n,
|
|
3060
3060
|
interpolationkey: p
|
|
3061
|
-
}) :
|
|
3061
|
+
}) : b;
|
|
3062
3062
|
}
|
|
3063
3063
|
const g = p.split(this.formatSeparator), m = g.shift().trim(), v = g.join(this.formatSeparator).trim();
|
|
3064
3064
|
return this.format(vs(n, l, m, this.options.keySeparator, this.options.ignoreJSONStructure), v, r, {
|
|
@@ -3942,7 +3942,7 @@ const JA = (t) => {
|
|
|
3942
3942
|
return r;
|
|
3943
3943
|
};
|
|
3944
3944
|
return n(t, 0);
|
|
3945
|
-
}, DA = ot("AsyncFunction"), TA = (t) => t && (ur(t) || _e(t)) && _e(t.then) && _e(t.catch),
|
|
3945
|
+
}, DA = ot("AsyncFunction"), TA = (t) => t && (ur(t) || _e(t)) && _e(t.then) && _e(t.catch), C = {
|
|
3946
3946
|
isArray: Bt,
|
|
3947
3947
|
isArrayBuffer: ko,
|
|
3948
3948
|
isBuffer: oA,
|
|
@@ -4003,7 +4003,7 @@ const JA = (t) => {
|
|
|
4003
4003
|
function ie(t, e, n, r, i) {
|
|
4004
4004
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), i && (this.response = i);
|
|
4005
4005
|
}
|
|
4006
|
-
|
|
4006
|
+
C.inherits(ie, Error, {
|
|
4007
4007
|
toJSON: function() {
|
|
4008
4008
|
return {
|
|
4009
4009
|
// Standard
|
|
@@ -4018,7 +4018,7 @@ b.inherits(ie, Error, {
|
|
|
4018
4018
|
columnNumber: this.columnNumber,
|
|
4019
4019
|
stack: this.stack,
|
|
4020
4020
|
// Axios
|
|
4021
|
-
config:
|
|
4021
|
+
config: C.toJSONObject(this.config),
|
|
4022
4022
|
code: this.code,
|
|
4023
4023
|
status: this.response && this.response.status ? this.response.status : null
|
|
4024
4024
|
};
|
|
@@ -4046,16 +4046,16 @@ Object.defineProperties(ie, No);
|
|
|
4046
4046
|
Object.defineProperty(Yo, "isAxiosError", { value: !0 });
|
|
4047
4047
|
ie.from = (t, e, n, r, i, s) => {
|
|
4048
4048
|
const o = Object.create(Yo);
|
|
4049
|
-
return
|
|
4049
|
+
return C.toFlatObject(t, o, function(l) {
|
|
4050
4050
|
return l !== Error.prototype;
|
|
4051
4051
|
}, (a) => a !== "isAxiosError"), ie.call(o, t.message, e, n, r, i), o.cause = t, o.name = t.name, s && Object.assign(o, s), o;
|
|
4052
4052
|
};
|
|
4053
4053
|
const GA = null;
|
|
4054
4054
|
function _r(t) {
|
|
4055
|
-
return
|
|
4055
|
+
return C.isPlainObject(t) || C.isArray(t);
|
|
4056
4056
|
}
|
|
4057
4057
|
function Jo(t) {
|
|
4058
|
-
return
|
|
4058
|
+
return C.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
4059
4059
|
}
|
|
4060
4060
|
function xs(t, e, n) {
|
|
4061
4061
|
return t ? t.concat(e).map(function(i, s) {
|
|
@@ -4063,41 +4063,41 @@ function xs(t, e, n) {
|
|
|
4063
4063
|
}).join(n ? "." : "") : e;
|
|
4064
4064
|
}
|
|
4065
4065
|
function PA(t) {
|
|
4066
|
-
return
|
|
4066
|
+
return C.isArray(t) && !t.some(_r);
|
|
4067
4067
|
}
|
|
4068
|
-
const HA =
|
|
4068
|
+
const HA = C.toFlatObject(C, {}, null, function(e) {
|
|
4069
4069
|
return /^is[A-Z]/.test(e);
|
|
4070
4070
|
});
|
|
4071
4071
|
function Ar(t, e, n) {
|
|
4072
|
-
if (!
|
|
4072
|
+
if (!C.isObject(t))
|
|
4073
4073
|
throw new TypeError("target must be an object");
|
|
4074
|
-
e = e || new FormData(), n =
|
|
4074
|
+
e = e || new FormData(), n = C.toFlatObject(n, {
|
|
4075
4075
|
metaTokens: !0,
|
|
4076
4076
|
dots: !1,
|
|
4077
4077
|
indexes: !1
|
|
4078
4078
|
}, !1, function(m, v) {
|
|
4079
|
-
return !
|
|
4079
|
+
return !C.isUndefined(v[m]);
|
|
4080
4080
|
});
|
|
4081
|
-
const r = n.metaTokens, i = n.visitor || u, s = n.dots, o = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) &&
|
|
4082
|
-
if (!
|
|
4081
|
+
const r = n.metaTokens, i = n.visitor || u, s = n.dots, o = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && C.isSpecCompliantForm(e);
|
|
4082
|
+
if (!C.isFunction(i))
|
|
4083
4083
|
throw new TypeError("visitor must be a function");
|
|
4084
4084
|
function A(g) {
|
|
4085
4085
|
if (g === null)
|
|
4086
4086
|
return "";
|
|
4087
|
-
if (
|
|
4087
|
+
if (C.isDate(g))
|
|
4088
4088
|
return g.toISOString();
|
|
4089
|
-
if (!l &&
|
|
4089
|
+
if (!l && C.isBlob(g))
|
|
4090
4090
|
throw new ie("Blob is not supported. Use a Buffer instead.");
|
|
4091
|
-
return
|
|
4091
|
+
return C.isArrayBuffer(g) || C.isTypedArray(g) ? l && typeof Blob == "function" ? new Blob([g]) : Buffer.from(g) : g;
|
|
4092
4092
|
}
|
|
4093
4093
|
function u(g, m, v) {
|
|
4094
|
-
let
|
|
4094
|
+
let b = g;
|
|
4095
4095
|
if (g && !v && typeof g == "object") {
|
|
4096
|
-
if (
|
|
4096
|
+
if (C.endsWith(m, "{}"))
|
|
4097
4097
|
m = r ? m : m.slice(0, -2), g = JSON.stringify(g);
|
|
4098
|
-
else if (
|
|
4099
|
-
return m = Jo(m),
|
|
4100
|
-
!(
|
|
4098
|
+
else if (C.isArray(g) && PA(g) || (C.isFileList(g) || C.endsWith(m, "[]")) && (b = C.toArray(g)))
|
|
4099
|
+
return m = Jo(m), b.forEach(function(M, S) {
|
|
4100
|
+
!(C.isUndefined(M) || M === null) && e.append(
|
|
4101
4101
|
// eslint-disable-next-line no-nested-ternary
|
|
4102
4102
|
o === !0 ? xs([m], S, s) : o === null ? m : m + "[]",
|
|
4103
4103
|
A(M)
|
|
@@ -4112,21 +4112,21 @@ function Ar(t, e, n) {
|
|
|
4112
4112
|
isVisitable: _r
|
|
4113
4113
|
});
|
|
4114
4114
|
function p(g, m) {
|
|
4115
|
-
if (!
|
|
4115
|
+
if (!C.isUndefined(g)) {
|
|
4116
4116
|
if (d.indexOf(g) !== -1)
|
|
4117
4117
|
throw Error("Circular reference detected in " + m.join("."));
|
|
4118
|
-
d.push(g),
|
|
4119
|
-
(!(
|
|
4118
|
+
d.push(g), C.forEach(g, function(b, Z) {
|
|
4119
|
+
(!(C.isUndefined(b) || b === null) && i.call(
|
|
4120
4120
|
e,
|
|
4121
|
-
|
|
4122
|
-
|
|
4121
|
+
b,
|
|
4122
|
+
C.isString(Z) ? Z.trim() : Z,
|
|
4123
4123
|
m,
|
|
4124
4124
|
f
|
|
4125
|
-
)) === !0 && p(
|
|
4125
|
+
)) === !0 && p(b, m ? m.concat(Z) : [Z]);
|
|
4126
4126
|
}), d.pop();
|
|
4127
4127
|
}
|
|
4128
4128
|
}
|
|
4129
|
-
if (!
|
|
4129
|
+
if (!C.isObject(t))
|
|
4130
4130
|
throw new TypeError("data must be an object");
|
|
4131
4131
|
return p(t), e;
|
|
4132
4132
|
}
|
|
@@ -4167,7 +4167,7 @@ function To(t, e, n) {
|
|
|
4167
4167
|
return t;
|
|
4168
4168
|
const r = n && n.encode || BA, i = n && n.serialize;
|
|
4169
4169
|
let s;
|
|
4170
|
-
if (i ? s = i(e, n) : s =
|
|
4170
|
+
if (i ? s = i(e, n) : s = C.isURLSearchParams(e) ? e.toString() : new Si(e, n).toString(r), s) {
|
|
4171
4171
|
const o = t.indexOf("#");
|
|
4172
4172
|
o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + s;
|
|
4173
4173
|
}
|
|
@@ -4222,7 +4222,7 @@ class VA {
|
|
|
4222
4222
|
* @returns {void}
|
|
4223
4223
|
*/
|
|
4224
4224
|
forEach(e) {
|
|
4225
|
-
|
|
4225
|
+
C.forEach(this.handlers, function(r) {
|
|
4226
4226
|
r !== null && e(r);
|
|
4227
4227
|
});
|
|
4228
4228
|
}
|
|
@@ -4253,12 +4253,12 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
|
|
|
4253
4253
|
function nc(t, e) {
|
|
4254
4254
|
return Ar(t, new rt.classes.URLSearchParams(), Object.assign({
|
|
4255
4255
|
visitor: function(n, r, i, s) {
|
|
4256
|
-
return rt.isNode &&
|
|
4256
|
+
return rt.isNode && C.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
4257
4257
|
}
|
|
4258
4258
|
}, e));
|
|
4259
4259
|
}
|
|
4260
4260
|
function rc(t) {
|
|
4261
|
-
return
|
|
4261
|
+
return C.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
4262
4262
|
}
|
|
4263
4263
|
function ic(t) {
|
|
4264
4264
|
const e = {}, n = Object.keys(t);
|
|
@@ -4275,20 +4275,20 @@ function Po(t) {
|
|
|
4275
4275
|
if (o === "__proto__")
|
|
4276
4276
|
return !0;
|
|
4277
4277
|
const a = Number.isFinite(+o), l = s >= n.length;
|
|
4278
|
-
return o = !o &&
|
|
4278
|
+
return o = !o && C.isArray(i) ? i.length : o, l ? (C.hasOwnProp(i, o) ? i[o] = [i[o], r] : i[o] = r, !a) : ((!i[o] || !C.isObject(i[o])) && (i[o] = []), e(n, r, i[o], s) && C.isArray(i[o]) && (i[o] = ic(i[o])), !a);
|
|
4279
4279
|
}
|
|
4280
|
-
if (
|
|
4280
|
+
if (C.isFormData(t) && C.isFunction(t.entries)) {
|
|
4281
4281
|
const n = {};
|
|
4282
|
-
return
|
|
4282
|
+
return C.forEachEntry(t, (r, i) => {
|
|
4283
4283
|
e(rc(r), i, n, 0);
|
|
4284
4284
|
}), n;
|
|
4285
4285
|
}
|
|
4286
4286
|
return null;
|
|
4287
4287
|
}
|
|
4288
4288
|
function sc(t, e, n) {
|
|
4289
|
-
if (
|
|
4289
|
+
if (C.isString(t))
|
|
4290
4290
|
try {
|
|
4291
|
-
return (e || JSON.parse)(t),
|
|
4291
|
+
return (e || JSON.parse)(t), C.trim(t);
|
|
4292
4292
|
} catch (r) {
|
|
4293
4293
|
if (r.name !== "SyntaxError")
|
|
4294
4294
|
throw r;
|
|
@@ -4299,20 +4299,20 @@ const Oi = {
|
|
|
4299
4299
|
transitional: Go,
|
|
4300
4300
|
adapter: ["xhr", "http", "fetch"],
|
|
4301
4301
|
transformRequest: [function(e, n) {
|
|
4302
|
-
const r = n.getContentType() || "", i = r.indexOf("application/json") > -1, s =
|
|
4303
|
-
if (s &&
|
|
4302
|
+
const r = n.getContentType() || "", i = r.indexOf("application/json") > -1, s = C.isObject(e);
|
|
4303
|
+
if (s && C.isHTMLForm(e) && (e = new FormData(e)), C.isFormData(e))
|
|
4304
4304
|
return i ? JSON.stringify(Po(e)) : e;
|
|
4305
|
-
if (
|
|
4305
|
+
if (C.isArrayBuffer(e) || C.isBuffer(e) || C.isStream(e) || C.isFile(e) || C.isBlob(e) || C.isReadableStream(e))
|
|
4306
4306
|
return e;
|
|
4307
|
-
if (
|
|
4307
|
+
if (C.isArrayBufferView(e))
|
|
4308
4308
|
return e.buffer;
|
|
4309
|
-
if (
|
|
4309
|
+
if (C.isURLSearchParams(e))
|
|
4310
4310
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
4311
4311
|
let a;
|
|
4312
4312
|
if (s) {
|
|
4313
4313
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
4314
4314
|
return nc(e, this.formSerializer).toString();
|
|
4315
|
-
if ((a =
|
|
4315
|
+
if ((a = C.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
|
|
4316
4316
|
const l = this.env && this.env.FormData;
|
|
4317
4317
|
return Ar(
|
|
4318
4318
|
a ? { "files[]": e } : e,
|
|
@@ -4325,9 +4325,9 @@ const Oi = {
|
|
|
4325
4325
|
}],
|
|
4326
4326
|
transformResponse: [function(e) {
|
|
4327
4327
|
const n = this.transitional || Oi.transitional, r = n && n.forcedJSONParsing, i = this.responseType === "json";
|
|
4328
|
-
if (
|
|
4328
|
+
if (C.isResponse(e) || C.isReadableStream(e))
|
|
4329
4329
|
return e;
|
|
4330
|
-
if (e &&
|
|
4330
|
+
if (e && C.isString(e) && (r && !this.responseType || i)) {
|
|
4331
4331
|
const o = !(n && n.silentJSONParsing) && i;
|
|
4332
4332
|
try {
|
|
4333
4333
|
return JSON.parse(e);
|
|
@@ -4361,10 +4361,10 @@ const Oi = {
|
|
|
4361
4361
|
}
|
|
4362
4362
|
}
|
|
4363
4363
|
};
|
|
4364
|
-
|
|
4364
|
+
C.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
4365
4365
|
Oi.headers[t] = {};
|
|
4366
4366
|
});
|
|
4367
|
-
const Li = Oi, oc =
|
|
4367
|
+
const Li = Oi, oc = C.toObjectSet([
|
|
4368
4368
|
"age",
|
|
4369
4369
|
"authorization",
|
|
4370
4370
|
"content-length",
|
|
@@ -4394,7 +4394,7 @@ function nn(t) {
|
|
|
4394
4394
|
return t && String(t).trim().toLowerCase();
|
|
4395
4395
|
}
|
|
4396
4396
|
function jn(t) {
|
|
4397
|
-
return t === !1 || t == null ? t :
|
|
4397
|
+
return t === !1 || t == null ? t : C.isArray(t) ? t.map(jn) : String(t);
|
|
4398
4398
|
}
|
|
4399
4399
|
function lc(t) {
|
|
4400
4400
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -4405,12 +4405,12 @@ function lc(t) {
|
|
|
4405
4405
|
}
|
|
4406
4406
|
const uc = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
4407
4407
|
function Mr(t, e, n, r, i) {
|
|
4408
|
-
if (
|
|
4408
|
+
if (C.isFunction(r))
|
|
4409
4409
|
return r.call(this, e, n);
|
|
4410
|
-
if (i && (e = n), !!
|
|
4411
|
-
if (
|
|
4410
|
+
if (i && (e = n), !!C.isString(e)) {
|
|
4411
|
+
if (C.isString(r))
|
|
4412
4412
|
return e.indexOf(r) !== -1;
|
|
4413
|
-
if (
|
|
4413
|
+
if (C.isRegExp(r))
|
|
4414
4414
|
return r.test(e);
|
|
4415
4415
|
}
|
|
4416
4416
|
}
|
|
@@ -4418,7 +4418,7 @@ function Ac(t) {
|
|
|
4418
4418
|
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
|
|
4419
4419
|
}
|
|
4420
4420
|
function cc(t, e) {
|
|
4421
|
-
const n =
|
|
4421
|
+
const n = C.toCamelCase(" " + e);
|
|
4422
4422
|
["get", "set", "has"].forEach((r) => {
|
|
4423
4423
|
Object.defineProperty(t, r + n, {
|
|
4424
4424
|
value: function(i, s, o) {
|
|
@@ -4438,15 +4438,15 @@ class cr {
|
|
|
4438
4438
|
const u = nn(l);
|
|
4439
4439
|
if (!u)
|
|
4440
4440
|
throw new Error("header name must be a non-empty string");
|
|
4441
|
-
const d =
|
|
4441
|
+
const d = C.findKey(i, u);
|
|
4442
4442
|
(!d || i[d] === void 0 || A === !0 || A === void 0 && i[d] !== !1) && (i[d || l] = jn(a));
|
|
4443
4443
|
}
|
|
4444
|
-
const o = (a, l) =>
|
|
4445
|
-
if (
|
|
4444
|
+
const o = (a, l) => C.forEach(a, (A, u) => s(A, u, l));
|
|
4445
|
+
if (C.isPlainObject(e) || e instanceof this.constructor)
|
|
4446
4446
|
o(e, n);
|
|
4447
|
-
else if (
|
|
4447
|
+
else if (C.isString(e) && (e = e.trim()) && !uc(e))
|
|
4448
4448
|
o(ac(e), n);
|
|
4449
|
-
else if (
|
|
4449
|
+
else if (C.isHeaders(e))
|
|
4450
4450
|
for (const [a, l] of e.entries())
|
|
4451
4451
|
s(l, a, r);
|
|
4452
4452
|
else
|
|
@@ -4455,16 +4455,16 @@ class cr {
|
|
|
4455
4455
|
}
|
|
4456
4456
|
get(e, n) {
|
|
4457
4457
|
if (e = nn(e), e) {
|
|
4458
|
-
const r =
|
|
4458
|
+
const r = C.findKey(this, e);
|
|
4459
4459
|
if (r) {
|
|
4460
4460
|
const i = this[r];
|
|
4461
4461
|
if (!n)
|
|
4462
4462
|
return i;
|
|
4463
4463
|
if (n === !0)
|
|
4464
4464
|
return lc(i);
|
|
4465
|
-
if (
|
|
4465
|
+
if (C.isFunction(n))
|
|
4466
4466
|
return n.call(this, i, r);
|
|
4467
|
-
if (
|
|
4467
|
+
if (C.isRegExp(n))
|
|
4468
4468
|
return n.exec(i);
|
|
4469
4469
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
4470
4470
|
}
|
|
@@ -4472,7 +4472,7 @@ class cr {
|
|
|
4472
4472
|
}
|
|
4473
4473
|
has(e, n) {
|
|
4474
4474
|
if (e = nn(e), e) {
|
|
4475
|
-
const r =
|
|
4475
|
+
const r = C.findKey(this, e);
|
|
4476
4476
|
return !!(r && this[r] !== void 0 && (!n || Mr(this, this[r], r, n)));
|
|
4477
4477
|
}
|
|
4478
4478
|
return !1;
|
|
@@ -4482,11 +4482,11 @@ class cr {
|
|
|
4482
4482
|
let i = !1;
|
|
4483
4483
|
function s(o) {
|
|
4484
4484
|
if (o = nn(o), o) {
|
|
4485
|
-
const a =
|
|
4485
|
+
const a = C.findKey(r, o);
|
|
4486
4486
|
a && (!n || Mr(r, r[a], a, n)) && (delete r[a], i = !0);
|
|
4487
4487
|
}
|
|
4488
4488
|
}
|
|
4489
|
-
return
|
|
4489
|
+
return C.isArray(e) ? e.forEach(s) : s(e), i;
|
|
4490
4490
|
}
|
|
4491
4491
|
clear(e) {
|
|
4492
4492
|
const n = Object.keys(this);
|
|
@@ -4499,8 +4499,8 @@ class cr {
|
|
|
4499
4499
|
}
|
|
4500
4500
|
normalize(e) {
|
|
4501
4501
|
const n = this, r = {};
|
|
4502
|
-
return
|
|
4503
|
-
const o =
|
|
4502
|
+
return C.forEach(this, (i, s) => {
|
|
4503
|
+
const o = C.findKey(r, s);
|
|
4504
4504
|
if (o) {
|
|
4505
4505
|
n[o] = jn(i), delete n[s];
|
|
4506
4506
|
return;
|
|
@@ -4514,8 +4514,8 @@ class cr {
|
|
|
4514
4514
|
}
|
|
4515
4515
|
toJSON(e) {
|
|
4516
4516
|
const n = /* @__PURE__ */ Object.create(null);
|
|
4517
|
-
return
|
|
4518
|
-
r != null && r !== !1 && (n[i] = e &&
|
|
4517
|
+
return C.forEach(this, (r, i) => {
|
|
4518
|
+
r != null && r !== !1 && (n[i] = e && C.isArray(r) ? r.join(", ") : r);
|
|
4519
4519
|
}), n;
|
|
4520
4520
|
}
|
|
4521
4521
|
[Symbol.iterator]() {
|
|
@@ -4543,11 +4543,11 @@ class cr {
|
|
|
4543
4543
|
const a = nn(o);
|
|
4544
4544
|
r[a] || (cc(i, o), r[a] = !0);
|
|
4545
4545
|
}
|
|
4546
|
-
return
|
|
4546
|
+
return C.isArray(e) ? e.forEach(s) : s(e), this;
|
|
4547
4547
|
}
|
|
4548
4548
|
}
|
|
4549
4549
|
cr.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
4550
|
-
|
|
4550
|
+
C.reduceDescriptors(cr.prototype, ({ value: t }, e) => {
|
|
4551
4551
|
let n = e[0].toUpperCase() + e.slice(1);
|
|
4552
4552
|
return {
|
|
4553
4553
|
get: () => t,
|
|
@@ -4556,12 +4556,12 @@ b.reduceDescriptors(cr.prototype, ({ value: t }, e) => {
|
|
|
4556
4556
|
}
|
|
4557
4557
|
};
|
|
4558
4558
|
});
|
|
4559
|
-
|
|
4559
|
+
C.freezeMethods(cr);
|
|
4560
4560
|
const it = cr;
|
|
4561
4561
|
function Wr(t, e) {
|
|
4562
4562
|
const n = this || Li, r = e || n, i = it.from(r.headers);
|
|
4563
4563
|
let s = r.data;
|
|
4564
|
-
return
|
|
4564
|
+
return C.forEach(t, function(a) {
|
|
4565
4565
|
s = a.call(n, s, i.normalize(), e ? e.status : void 0);
|
|
4566
4566
|
}), i.normalize(), s;
|
|
4567
4567
|
}
|
|
@@ -4571,7 +4571,7 @@ function Ho(t) {
|
|
|
4571
4571
|
function Vt(t, e, n) {
|
|
4572
4572
|
ie.call(this, t ?? "canceled", ie.ERR_CANCELED, e, n), this.name = "CanceledError";
|
|
4573
4573
|
}
|
|
4574
|
-
|
|
4574
|
+
C.inherits(Vt, ie, {
|
|
4575
4575
|
__CANCEL__: !0
|
|
4576
4576
|
});
|
|
4577
4577
|
function Bo(t, e, n) {
|
|
@@ -4653,7 +4653,7 @@ const Xn = (t, e, n = 3) => {
|
|
|
4653
4653
|
};
|
|
4654
4654
|
}
|
|
4655
4655
|
return r = i(window.location.href), function(o) {
|
|
4656
|
-
const a =
|
|
4656
|
+
const a = C.isString(o) ? i(o) : o;
|
|
4657
4657
|
return a.protocol === r.protocol && a.host === r.host;
|
|
4658
4658
|
};
|
|
4659
4659
|
}()
|
|
@@ -4669,7 +4669,7 @@ const Xn = (t, e, n = 3) => {
|
|
|
4669
4669
|
{
|
|
4670
4670
|
write(t, e, n, r, i, s) {
|
|
4671
4671
|
const o = [t + "=" + encodeURIComponent(e)];
|
|
4672
|
-
|
|
4672
|
+
C.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), C.isString(r) && o.push("path=" + r), C.isString(i) && o.push("domain=" + i), s === !0 && o.push("secure"), document.cookie = o.join("; ");
|
|
4673
4673
|
},
|
|
4674
4674
|
read(t) {
|
|
4675
4675
|
const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
|
|
@@ -4705,22 +4705,22 @@ function Kt(t, e) {
|
|
|
4705
4705
|
e = e || {};
|
|
4706
4706
|
const n = {};
|
|
4707
4707
|
function r(A, u, d) {
|
|
4708
|
-
return
|
|
4708
|
+
return C.isPlainObject(A) && C.isPlainObject(u) ? C.merge.call({ caseless: d }, A, u) : C.isPlainObject(u) ? C.merge({}, u) : C.isArray(u) ? u.slice() : u;
|
|
4709
4709
|
}
|
|
4710
4710
|
function i(A, u, d) {
|
|
4711
|
-
if (
|
|
4712
|
-
if (!
|
|
4711
|
+
if (C.isUndefined(u)) {
|
|
4712
|
+
if (!C.isUndefined(A))
|
|
4713
4713
|
return r(void 0, A, d);
|
|
4714
4714
|
} else
|
|
4715
4715
|
return r(A, u, d);
|
|
4716
4716
|
}
|
|
4717
4717
|
function s(A, u) {
|
|
4718
|
-
if (!
|
|
4718
|
+
if (!C.isUndefined(u))
|
|
4719
4719
|
return r(void 0, u);
|
|
4720
4720
|
}
|
|
4721
4721
|
function o(A, u) {
|
|
4722
|
-
if (
|
|
4723
|
-
if (!
|
|
4722
|
+
if (C.isUndefined(u)) {
|
|
4723
|
+
if (!C.isUndefined(A))
|
|
4724
4724
|
return r(void 0, A);
|
|
4725
4725
|
} else
|
|
4726
4726
|
return r(void 0, u);
|
|
@@ -4762,9 +4762,9 @@ function Kt(t, e) {
|
|
|
4762
4762
|
validateStatus: a,
|
|
4763
4763
|
headers: (A, u) => i(Es(A), Es(u), !0)
|
|
4764
4764
|
};
|
|
4765
|
-
return
|
|
4765
|
+
return C.forEach(Object.keys(Object.assign({}, t, e)), function(u) {
|
|
4766
4766
|
const d = l[u] || i, f = d(t[u], e[u], u);
|
|
4767
|
-
|
|
4767
|
+
C.isUndefined(f) && d !== a || (n[u] = f);
|
|
4768
4768
|
}), n;
|
|
4769
4769
|
}
|
|
4770
4770
|
const Xo = (t) => {
|
|
@@ -4775,7 +4775,7 @@ const Xo = (t) => {
|
|
|
4775
4775
|
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
|
4776
4776
|
);
|
|
4777
4777
|
let l;
|
|
4778
|
-
if (
|
|
4778
|
+
if (C.isFormData(n)) {
|
|
4779
4779
|
if (rt.hasStandardBrowserEnv || rt.hasStandardBrowserWebWorkerEnv)
|
|
4780
4780
|
o.setContentType(void 0);
|
|
4781
4781
|
else if ((l = o.getContentType()) !== !1) {
|
|
@@ -4783,7 +4783,7 @@ const Xo = (t) => {
|
|
|
4783
4783
|
o.setContentType([A || "multipart/form-data", ...u].join("; "));
|
|
4784
4784
|
}
|
|
4785
4785
|
}
|
|
4786
|
-
if (rt.hasStandardBrowserEnv && (r &&
|
|
4786
|
+
if (rt.hasStandardBrowserEnv && (r && C.isFunction(r) && (r = r(e)), r || r !== !1 && hc(e.url))) {
|
|
4787
4787
|
const A = i && s && mc.read(s);
|
|
4788
4788
|
A && o.set(i, A);
|
|
4789
4789
|
}
|
|
@@ -4812,10 +4812,10 @@ const Xo = (t) => {
|
|
|
4812
4812
|
config: t,
|
|
4813
4813
|
request: u
|
|
4814
4814
|
};
|
|
4815
|
-
Bo(function(
|
|
4816
|
-
n(
|
|
4817
|
-
}, function(
|
|
4818
|
-
r(
|
|
4815
|
+
Bo(function(b) {
|
|
4816
|
+
n(b), A();
|
|
4817
|
+
}, function(b) {
|
|
4818
|
+
r(b), A();
|
|
4819
4819
|
}, m), u = null;
|
|
4820
4820
|
}
|
|
4821
4821
|
"onloadend" in u ? u.onloadend = d : u.onreadystatechange = function() {
|
|
@@ -4833,9 +4833,9 @@ const Xo = (t) => {
|
|
|
4833
4833
|
i,
|
|
4834
4834
|
u
|
|
4835
4835
|
)), u = null;
|
|
4836
|
-
}, s === void 0 && o.setContentType(null), "setRequestHeader" in u &&
|
|
4836
|
+
}, s === void 0 && o.setContentType(null), "setRequestHeader" in u && C.forEach(o.toJSON(), function(g, m) {
|
|
4837
4837
|
u.setRequestHeader(m, g);
|
|
4838
|
-
}),
|
|
4838
|
+
}), C.isUndefined(i.withCredentials) || (u.withCredentials = !!i.withCredentials), a && a !== "json" && (u.responseType = i.responseType), typeof i.onDownloadProgress == "function" && u.addEventListener("progress", Xn(i.onDownloadProgress, !0)), typeof i.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", Xn(i.onUploadProgress)), (i.cancelToken || i.signal) && (l = (p) => {
|
|
4839
4839
|
u && (r(!p || p.type ? new Vt(null, t, u) : p), u.abort(), u = null);
|
|
4840
4840
|
}, i.cancelToken && i.cancelToken.subscribe(l), i.signal && (i.signal.aborted ? l() : i.signal.addEventListener("abort", l)));
|
|
4841
4841
|
const f = dc(i.url);
|
|
@@ -4918,7 +4918,7 @@ const Xo = (t) => {
|
|
|
4918
4918
|
return t && !e;
|
|
4919
4919
|
})(), ks = 64 * 1024, ei = Uo && !!(() => {
|
|
4920
4920
|
try {
|
|
4921
|
-
return
|
|
4921
|
+
return C.isReadableStream(new Response("").body);
|
|
4922
4922
|
} catch {
|
|
4923
4923
|
}
|
|
4924
4924
|
})(), Un = {
|
|
@@ -4926,7 +4926,7 @@ const Xo = (t) => {
|
|
|
4926
4926
|
};
|
|
4927
4927
|
dr && ((t) => {
|
|
4928
4928
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
4929
|
-
!Un[e] && (Un[e] =
|
|
4929
|
+
!Un[e] && (Un[e] = C.isFunction(t[e]) ? (n) => n[e]() : (n, r) => {
|
|
4930
4930
|
throw new ie(`Response type '${e}' is not supported`, ie.ERR_NOT_SUPPORT, r);
|
|
4931
4931
|
});
|
|
4932
4932
|
});
|
|
@@ -4934,16 +4934,16 @@ dr && ((t) => {
|
|
|
4934
4934
|
const Ic = async (t) => {
|
|
4935
4935
|
if (t == null)
|
|
4936
4936
|
return 0;
|
|
4937
|
-
if (
|
|
4937
|
+
if (C.isBlob(t))
|
|
4938
4938
|
return t.size;
|
|
4939
|
-
if (
|
|
4939
|
+
if (C.isSpecCompliantForm(t))
|
|
4940
4940
|
return (await new Request(t).arrayBuffer()).byteLength;
|
|
4941
|
-
if (
|
|
4941
|
+
if (C.isArrayBufferView(t))
|
|
4942
4942
|
return t.byteLength;
|
|
4943
|
-
if (
|
|
4943
|
+
if (C.isURLSearchParams(t) && (t = t + ""), C.isString(t))
|
|
4944
4944
|
return (await $r(t)).byteLength;
|
|
4945
4945
|
}, Sc = async (t, e) => {
|
|
4946
|
-
const n =
|
|
4946
|
+
const n = C.toFiniteNumber(t.getContentLength());
|
|
4947
4947
|
return n ?? Ic(e);
|
|
4948
4948
|
}, Ec = dr && (async (t) => {
|
|
4949
4949
|
let {
|
|
@@ -4962,7 +4962,7 @@ const Ic = async (t) => {
|
|
|
4962
4962
|
} = Xo(t);
|
|
4963
4963
|
A = A ? (A + "").toLowerCase() : "text";
|
|
4964
4964
|
let [p, g] = i || s || o ? Cc([i, s], o) : [], m, v;
|
|
4965
|
-
const
|
|
4965
|
+
const b = () => {
|
|
4966
4966
|
!m && setTimeout(() => {
|
|
4967
4967
|
p && p.unsubscribe();
|
|
4968
4968
|
}), m = !0;
|
|
@@ -4975,12 +4975,12 @@ const Ic = async (t) => {
|
|
|
4975
4975
|
body: r,
|
|
4976
4976
|
duplex: "half"
|
|
4977
4977
|
}), x;
|
|
4978
|
-
|
|
4978
|
+
C.isFormData(r) && (x = T.headers.get("content-type")) && u.setContentType(x), T.body && (r = Os(T.body, ks, Ls(
|
|
4979
4979
|
Z,
|
|
4980
4980
|
Xn(l)
|
|
4981
4981
|
), null, $r));
|
|
4982
4982
|
}
|
|
4983
|
-
|
|
4983
|
+
C.isString(d) || (d = d ? "cors" : "omit"), v = new Request(e, {
|
|
4984
4984
|
...f,
|
|
4985
4985
|
signal: p,
|
|
4986
4986
|
method: n.toUpperCase(),
|
|
@@ -4996,20 +4996,20 @@ const Ic = async (t) => {
|
|
|
4996
4996
|
["status", "statusText", "headers"].forEach((k) => {
|
|
4997
4997
|
T[k] = M[k];
|
|
4998
4998
|
});
|
|
4999
|
-
const x =
|
|
4999
|
+
const x = C.toFiniteNumber(M.headers.get("content-length"));
|
|
5000
5000
|
M = new Response(
|
|
5001
5001
|
Os(M.body, ks, a && Ls(
|
|
5002
5002
|
x,
|
|
5003
5003
|
Xn(a, !0)
|
|
5004
|
-
), S &&
|
|
5004
|
+
), S && b, $r),
|
|
5005
5005
|
T
|
|
5006
5006
|
);
|
|
5007
5007
|
}
|
|
5008
5008
|
A = A || "text";
|
|
5009
|
-
let
|
|
5010
|
-
return !S &&
|
|
5009
|
+
let q = await Un[C.findKey(Un, A) || "text"](M, t);
|
|
5010
|
+
return !S && b(), g && g(), await new Promise((T, x) => {
|
|
5011
5011
|
Bo(T, x, {
|
|
5012
|
-
data:
|
|
5012
|
+
data: q,
|
|
5013
5013
|
headers: it.from(M.headers),
|
|
5014
5014
|
status: M.status,
|
|
5015
5015
|
statusText: M.statusText,
|
|
@@ -5018,7 +5018,7 @@ const Ic = async (t) => {
|
|
|
5018
5018
|
});
|
|
5019
5019
|
});
|
|
5020
5020
|
} catch (M) {
|
|
5021
|
-
throw
|
|
5021
|
+
throw b(), M && M.name === "TypeError" && /fetch/i.test(M.message) ? Object.assign(
|
|
5022
5022
|
new ie("Network Error", ie.ERR_NETWORK, t, v),
|
|
5023
5023
|
{
|
|
5024
5024
|
cause: M.cause || M
|
|
@@ -5030,7 +5030,7 @@ const Ic = async (t) => {
|
|
|
5030
5030
|
xhr: qc,
|
|
5031
5031
|
fetch: Ec
|
|
5032
5032
|
};
|
|
5033
|
-
|
|
5033
|
+
C.forEach(ti, (t, e) => {
|
|
5034
5034
|
if (t) {
|
|
5035
5035
|
try {
|
|
5036
5036
|
Object.defineProperty(t, "name", { value: e });
|
|
@@ -5039,9 +5039,9 @@ b.forEach(ti, (t, e) => {
|
|
|
5039
5039
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
5040
5040
|
}
|
|
5041
5041
|
});
|
|
5042
|
-
const Ks = (t) => `- ${t}`, Oc = (t) =>
|
|
5042
|
+
const Ks = (t) => `- ${t}`, Oc = (t) => C.isFunction(t) || t === null || t === !1, Qo = {
|
|
5043
5043
|
getAdapter: (t) => {
|
|
5044
|
-
t =
|
|
5044
|
+
t = C.isArray(t) ? t : [t];
|
|
5045
5045
|
const { length: e } = t;
|
|
5046
5046
|
let n, r;
|
|
5047
5047
|
const i = {};
|
|
@@ -5177,17 +5177,17 @@ class Qn {
|
|
|
5177
5177
|
silentJSONParsing: gt.transitional(gt.boolean),
|
|
5178
5178
|
forcedJSONParsing: gt.transitional(gt.boolean),
|
|
5179
5179
|
clarifyTimeoutError: gt.transitional(gt.boolean)
|
|
5180
|
-
}, !1), i != null && (
|
|
5180
|
+
}, !1), i != null && (C.isFunction(i) ? n.paramsSerializer = {
|
|
5181
5181
|
serialize: i
|
|
5182
5182
|
} : ni.assertOptions(i, {
|
|
5183
5183
|
encode: gt.function,
|
|
5184
5184
|
serialize: gt.function
|
|
5185
5185
|
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
5186
|
-
let o = s &&
|
|
5186
|
+
let o = s && C.merge(
|
|
5187
5187
|
s.common,
|
|
5188
5188
|
s[n.method]
|
|
5189
5189
|
);
|
|
5190
|
-
s &&
|
|
5190
|
+
s && C.forEach(
|
|
5191
5191
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
5192
5192
|
(g) => {
|
|
5193
5193
|
delete s[g];
|
|
@@ -5235,7 +5235,7 @@ class Qn {
|
|
|
5235
5235
|
return To(n, e.params, e.paramsSerializer);
|
|
5236
5236
|
}
|
|
5237
5237
|
}
|
|
5238
|
-
|
|
5238
|
+
C.forEach(["delete", "get", "head", "options"], function(e) {
|
|
5239
5239
|
Qn.prototype[e] = function(n, r) {
|
|
5240
5240
|
return this.request(Kt(r || {}, {
|
|
5241
5241
|
method: e,
|
|
@@ -5244,7 +5244,7 @@ b.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
5244
5244
|
}));
|
|
5245
5245
|
};
|
|
5246
5246
|
});
|
|
5247
|
-
|
|
5247
|
+
C.forEach(["post", "put", "patch"], function(e) {
|
|
5248
5248
|
function n(r) {
|
|
5249
5249
|
return function(s, o, a) {
|
|
5250
5250
|
return this.request(Kt(a || {}, {
|
|
@@ -5335,7 +5335,7 @@ function Kc(t) {
|
|
|
5335
5335
|
};
|
|
5336
5336
|
}
|
|
5337
5337
|
function Mc(t) {
|
|
5338
|
-
return
|
|
5338
|
+
return C.isObject(t) && t.isAxiosError === !0;
|
|
5339
5339
|
}
|
|
5340
5340
|
const ri = {
|
|
5341
5341
|
Continue: 100,
|
|
@@ -5408,7 +5408,7 @@ Object.entries(ri).forEach(([t, e]) => {
|
|
|
5408
5408
|
const Wc = ri;
|
|
5409
5409
|
function _o(t) {
|
|
5410
5410
|
const e = new zn(t), n = Lo(zn.prototype.request, e);
|
|
5411
|
-
return
|
|
5411
|
+
return C.extend(n, zn.prototype, e, { allOwnKeys: !0 }), C.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(i) {
|
|
5412
5412
|
return _o(Kt(t, i));
|
|
5413
5413
|
}, n;
|
|
5414
5414
|
}
|
|
@@ -5428,7 +5428,7 @@ Ee.spread = Kc;
|
|
|
5428
5428
|
Ee.isAxiosError = Mc;
|
|
5429
5429
|
Ee.mergeConfig = Kt;
|
|
5430
5430
|
Ee.AxiosHeaders = it;
|
|
5431
|
-
Ee.formToJSON = (t) => Po(
|
|
5431
|
+
Ee.formToJSON = (t) => Po(C.isHTMLForm(t) ? new FormData(t) : t);
|
|
5432
5432
|
Ee.getAdapter = Qo.getAdapter;
|
|
5433
5433
|
Ee.HttpStatusCode = Wc;
|
|
5434
5434
|
Ee.default = Ee;
|
|
@@ -5505,7 +5505,7 @@ let ia;
|
|
|
5505
5505
|
typeof window < "u" && (ia = ra("token"));
|
|
5506
5506
|
const ve = jc.create({
|
|
5507
5507
|
headers: {
|
|
5508
|
-
Authorization:
|
|
5508
|
+
Authorization: ia
|
|
5509
5509
|
}
|
|
5510
5510
|
});
|
|
5511
5511
|
async function Nc(t, e, n) {
|
|
@@ -5623,15 +5623,15 @@ function fr(t) {
|
|
|
5623
5623
|
let { children: a, position: l, preventExitTransition: A, done: u, nodeRef: d, isIn: f } = o;
|
|
5624
5624
|
const p = r ? `${e}--${l}` : e, g = r ? `${n}--${l}` : n, m = Et(0);
|
|
5625
5625
|
return el(() => {
|
|
5626
|
-
const v = d.current,
|
|
5627
|
-
M.target === d.current && (v.dispatchEvent(new Event("d")), v.removeEventListener("animationend", Z), v.removeEventListener("animationcancel", Z), m.current === 0 && M.type !== "animationcancel" && v.classList.remove(...
|
|
5626
|
+
const v = d.current, b = p.split(" "), Z = (M) => {
|
|
5627
|
+
M.target === d.current && (v.dispatchEvent(new Event("d")), v.removeEventListener("animationend", Z), v.removeEventListener("animationcancel", Z), m.current === 0 && M.type !== "animationcancel" && v.classList.remove(...b));
|
|
5628
5628
|
};
|
|
5629
|
-
v.classList.add(...
|
|
5629
|
+
v.classList.add(...b), v.addEventListener("animationend", Z), v.addEventListener("animationcancel", Z);
|
|
5630
5630
|
}, []), Ie(() => {
|
|
5631
|
-
const v = d.current,
|
|
5632
|
-
v.removeEventListener("animationend",
|
|
5631
|
+
const v = d.current, b = () => {
|
|
5632
|
+
v.removeEventListener("animationend", b), i ? Qc(v, u, s) : u();
|
|
5633
5633
|
};
|
|
5634
|
-
f || (A ?
|
|
5634
|
+
f || (A ? b() : (m.current = 1, v.className += ` ${g}`, v.addEventListener("animationend", b)));
|
|
5635
5635
|
}, [f]), de.createElement(de.Fragment, null, a);
|
|
5636
5636
|
};
|
|
5637
5637
|
}
|
|
@@ -5685,17 +5685,17 @@ function Fc(t) {
|
|
|
5685
5685
|
f(p, g, m);
|
|
5686
5686
|
}
|
|
5687
5687
|
function d(p, g) {
|
|
5688
|
-
let { delay: m, staleId: v, ...
|
|
5688
|
+
let { delay: m, staleId: v, ...b } = g;
|
|
5689
5689
|
if (!zr(p) || function(j) {
|
|
5690
5690
|
return !i.current || a.props.enableMultiContainer && j.containerId !== a.props.containerId || s.has(j.toastId) && j.updateId == null;
|
|
5691
|
-
}(
|
|
5691
|
+
}(b))
|
|
5692
5692
|
return;
|
|
5693
|
-
const { toastId: Z, updateId: M, data: S } =
|
|
5693
|
+
const { toastId: Z, updateId: M, data: S } = b, { props: q } = a, T = () => A(Z), x = M == null;
|
|
5694
5694
|
x && a.count++;
|
|
5695
|
-
const k = { ...
|
|
5695
|
+
const k = { ...q, style: q.toastStyle, key: a.toastKey++, ...Object.fromEntries(Object.entries(b).filter((j) => {
|
|
5696
5696
|
let [B, E] = j;
|
|
5697
5697
|
return E != null;
|
|
5698
|
-
})), toastId: Z, updateId: M, data: S, closeToast: T, isIn: !1, className: Rn(
|
|
5698
|
+
})), toastId: Z, updateId: M, data: S, closeToast: T, isIn: !1, className: Rn(b.className || q.toastClassName), bodyClassName: Rn(b.bodyClassName || q.bodyClassName), progressClassName: Rn(b.progressClassName || q.progressClassName), autoClose: !b.isLoading && (Y = b.autoClose, W = q.autoClose, Y === !1 || ln(Y) && Y > 0 ? Y : W), deleteToast() {
|
|
5699
5699
|
const j = Rs(s.get(Z), "removed");
|
|
5700
5700
|
s.delete(Z), Qe.emit(4, j);
|
|
5701
5701
|
const B = a.queue.length;
|
|
@@ -5717,17 +5717,17 @@ function Fc(t) {
|
|
|
5717
5717
|
let { theme: B, type: E, isLoading: L, icon: G } = j, y = null;
|
|
5718
5718
|
const K = { theme: B, type: E };
|
|
5719
5719
|
return G === !1 || (De(G) ? y = G(K) : Ht(G) ? y = Vr(G, K) : Mt(G) || ln(G) ? y = G : L ? y = Rr.spinner() : ((Q) => Q in Rr)(E) && (y = Rr[E](K))), y;
|
|
5720
|
-
}(k), De(
|
|
5720
|
+
}(k), De(b.onOpen) && (k.onOpen = b.onOpen), De(b.onClose) && (k.onClose = b.onClose), k.closeButton = q.closeButton, b.closeButton === !1 || zr(b.closeButton) ? k.closeButton = b.closeButton : b.closeButton === !0 && (k.closeButton = !zr(q.closeButton) || q.closeButton);
|
|
5721
5721
|
let z = p;
|
|
5722
|
-
Ht(p) && !Mt(p.type) ? z = Vr(p, { closeToast: T, toastProps: k, data: S }) : De(p) && (z = p({ closeToast: T, toastProps: k, data: S })),
|
|
5722
|
+
Ht(p) && !Mt(p.type) ? z = Vr(p, { closeToast: T, toastProps: k, data: S }) : De(p) && (z = p({ closeToast: T, toastProps: k, data: S })), q.limit && q.limit > 0 && a.count > q.limit && x ? a.queue.push({ toastContent: z, toastProps: k, staleId: v }) : ln(m) ? setTimeout(() => {
|
|
5723
5723
|
f(z, k, v);
|
|
5724
5724
|
}, m) : f(z, k, v);
|
|
5725
5725
|
}
|
|
5726
5726
|
function f(p, g, m) {
|
|
5727
5727
|
const { toastId: v } = g;
|
|
5728
5728
|
m && s.delete(m);
|
|
5729
|
-
const
|
|
5730
|
-
s.set(v,
|
|
5729
|
+
const b = { content: p, props: g };
|
|
5730
|
+
s.set(v, b), r((Z) => [...Z, v].filter((M) => M !== m)), Qe.emit(4, Rs(b, b.props.updateId == null ? "added" : "updated"));
|
|
5731
5731
|
}
|
|
5732
5732
|
return Ie(() => (a.containerId = t.containerId, Qe.cancelEmit(3).on(0, d).on(1, (p) => i.current && A(p)).on(5, l).emit(2, a), () => {
|
|
5733
5733
|
s.clear(), Qe.emit(3, a);
|
|
@@ -5736,8 +5736,8 @@ function Fc(t) {
|
|
|
5736
5736
|
}), { getToastToRender: function(p) {
|
|
5737
5737
|
const g = /* @__PURE__ */ new Map(), m = Array.from(s.values());
|
|
5738
5738
|
return t.newestOnTop && m.reverse(), m.forEach((v) => {
|
|
5739
|
-
const { position:
|
|
5740
|
-
g.has(
|
|
5739
|
+
const { position: b } = v.props;
|
|
5740
|
+
g.has(b) || g.set(b, []), g.get(b).push(v);
|
|
5741
5741
|
}), Array.from(g, (v) => p(v[0], v[1]));
|
|
5742
5742
|
}, containerRef: i, isToastActive: o };
|
|
5743
5743
|
}
|
|
@@ -5751,15 +5751,15 @@ function _c(t) {
|
|
|
5751
5751
|
const [e, n] = X(!1), [r, i] = X(!1), s = Et(null), o = Et({ start: 0, x: 0, y: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, boundingRect: null, didMove: !1 }).current, a = Et(t), { autoClose: l, pauseOnHover: A, closeToast: u, onClick: d, closeOnClick: f } = t;
|
|
5752
5752
|
function p(S) {
|
|
5753
5753
|
if (t.draggable) {
|
|
5754
|
-
S.nativeEvent.type === "touchstart" && S.nativeEvent.preventDefault(), o.didMove = !1, document.addEventListener("mousemove",
|
|
5755
|
-
const
|
|
5756
|
-
o.canCloseOnClick = !0, o.canDrag = !0, o.boundingRect =
|
|
5754
|
+
S.nativeEvent.type === "touchstart" && S.nativeEvent.preventDefault(), o.didMove = !1, document.addEventListener("mousemove", b), document.addEventListener("mouseup", Z), document.addEventListener("touchmove", b), document.addEventListener("touchend", Z);
|
|
5755
|
+
const q = s.current;
|
|
5756
|
+
o.canCloseOnClick = !0, o.canDrag = !0, o.boundingRect = q.getBoundingClientRect(), q.style.transition = "", o.x = Ys(S.nativeEvent), o.y = Ns(S.nativeEvent), t.draggableDirection === "x" ? (o.start = o.x, o.removalDistance = q.offsetWidth * (t.draggablePercent / 100)) : (o.start = o.y, o.removalDistance = q.offsetHeight * (t.draggablePercent === 80 ? 1.5 * t.draggablePercent : t.draggablePercent / 100));
|
|
5757
5757
|
}
|
|
5758
5758
|
}
|
|
5759
5759
|
function g(S) {
|
|
5760
5760
|
if (o.boundingRect) {
|
|
5761
|
-
const { top:
|
|
5762
|
-
S.nativeEvent.type !== "touchend" && t.pauseOnHover && o.x >= x && o.x <= k && o.y >=
|
|
5761
|
+
const { top: q, bottom: T, left: x, right: k } = o.boundingRect;
|
|
5762
|
+
S.nativeEvent.type !== "touchend" && t.pauseOnHover && o.x >= x && o.x <= k && o.y >= q && o.y <= T ? v() : m();
|
|
5763
5763
|
}
|
|
5764
5764
|
}
|
|
5765
5765
|
function m() {
|
|
@@ -5768,12 +5768,12 @@ function _c(t) {
|
|
|
5768
5768
|
function v() {
|
|
5769
5769
|
n(!1);
|
|
5770
5770
|
}
|
|
5771
|
-
function
|
|
5772
|
-
const
|
|
5773
|
-
o.canDrag &&
|
|
5771
|
+
function b(S) {
|
|
5772
|
+
const q = s.current;
|
|
5773
|
+
o.canDrag && q && (o.didMove = !0, e && v(), o.x = Ys(S), o.y = Ns(S), o.delta = t.draggableDirection === "x" ? o.x - o.start : o.y - o.start, o.start !== o.x && (o.canCloseOnClick = !1), q.style.transform = `translate${t.draggableDirection}(${o.delta}px)`, q.style.opacity = "" + (1 - Math.abs(o.delta / o.removalDistance)));
|
|
5774
5774
|
}
|
|
5775
5775
|
function Z() {
|
|
5776
|
-
document.removeEventListener("mousemove",
|
|
5776
|
+
document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", Z), document.removeEventListener("touchmove", b), document.removeEventListener("touchend", Z);
|
|
5777
5777
|
const S = s.current;
|
|
5778
5778
|
if (o.canDrag && o.didMove && S) {
|
|
5779
5779
|
if (o.canDrag = !1, Math.abs(o.delta) > o.removalDistance)
|
|
@@ -5810,9 +5810,9 @@ function $c(t) {
|
|
|
5810
5810
|
} });
|
|
5811
5811
|
}
|
|
5812
5812
|
const ed = (t) => {
|
|
5813
|
-
const { isRunning: e, preventExitTransition: n, toastRef: r, eventHandlers: i } = _c(t), { closeButton: s, children: o, autoClose: a, onClick: l, type: A, hideProgressBar: u, closeToast: d, transition: f, position: p, className: g, style: m, bodyClassName: v, bodyStyle:
|
|
5813
|
+
const { isRunning: e, preventExitTransition: n, toastRef: r, eventHandlers: i } = _c(t), { closeButton: s, children: o, autoClose: a, onClick: l, type: A, hideProgressBar: u, closeToast: d, transition: f, position: p, className: g, style: m, bodyClassName: v, bodyStyle: b, progressClassName: Z, progressStyle: M, updateId: S, role: q, progress: T, rtl: x, toastId: k, deleteToast: Y, isIn: W, isLoading: z, iconOut: j, closeOnClick: B, theme: E } = t, L = yt("Toastify__toast", `Toastify__toast-theme--${E}`, `Toastify__toast--${A}`, { "Toastify__toast--rtl": x }, { "Toastify__toast--close-on-click": B }), G = De(g) ? g({ rtl: x, position: p, type: A, defaultClassName: L }) : yt(L, g), y = !!T || !a, K = { closeToast: d, type: A, theme: E };
|
|
5814
5814
|
let Q = null;
|
|
5815
|
-
return s === !1 || (Q = De(s) ? s(K) : Ht(s) ? Vr(s, K) : oa(K)), de.createElement(f, { isIn: W, done: Y, position: p, preventExitTransition: n, nodeRef: r }, de.createElement("div", { id: k, onClick: l, className: G, ...i, style: m, ref: r }, de.createElement("div", { ...W && { role:
|
|
5815
|
+
return s === !1 || (Q = De(s) ? s(K) : Ht(s) ? Vr(s, K) : oa(K)), de.createElement(f, { isIn: W, done: Y, position: p, preventExitTransition: n, nodeRef: r }, de.createElement("div", { id: k, onClick: l, className: G, ...i, style: m, ref: r }, de.createElement("div", { ...W && { role: q }, className: De(v) ? v({ type: A }) : yt("Toastify__toast-body", v), style: b }, j != null && de.createElement("div", { className: yt("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !z }) }, j), de.createElement("div", null, o)), Q, de.createElement($c, { ...S && !y ? { key: `pb-${S}` } : {}, rtl: x, theme: E, delay: a, isRunning: e, isIn: W, closeToast: d, hide: u, type: A, style: M, className: Z, controlledProgress: y, progress: T || 0 })));
|
|
5816
5816
|
}, pr = function(t, e) {
|
|
5817
5817
|
return e === void 0 && (e = !1), { enter: `Toastify--animate Toastify__${t}-enter`, exit: `Toastify--animate Toastify__${t}-exit`, appendPosition: e };
|
|
5818
5818
|
}, td = fr(pr("bounce", !0));
|
|
@@ -6224,7 +6224,7 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6224
6224
|
return !E && Ts(x) && (E = (...y) => {
|
|
6225
6225
|
if (!W)
|
|
6226
6226
|
try {
|
|
6227
|
-
return
|
|
6227
|
+
return b(x, ...y);
|
|
6228
6228
|
} finally {
|
|
6229
6229
|
g(), p();
|
|
6230
6230
|
}
|
|
@@ -6251,7 +6251,7 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6251
6251
|
n.set(z, j.n), k.push(z);
|
|
6252
6252
|
}
|
|
6253
6253
|
}
|
|
6254
|
-
}),
|
|
6254
|
+
}), b = d[5] || ((x, ...k) => {
|
|
6255
6255
|
let Y = !0;
|
|
6256
6256
|
const W = (j) => On(m(j)), z = (j, ...B) => {
|
|
6257
6257
|
var E;
|
|
@@ -6264,7 +6264,7 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6264
6264
|
Nr(j, y, f), Z(j), G !== L.n && (r.add(j), (E = o.c) == null || E.call(o, j), v(j));
|
|
6265
6265
|
return;
|
|
6266
6266
|
} else
|
|
6267
|
-
return
|
|
6267
|
+
return b(j, ...B);
|
|
6268
6268
|
} finally {
|
|
6269
6269
|
Y || (g(), p());
|
|
6270
6270
|
}
|
|
@@ -6307,7 +6307,7 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6307
6307
|
let j = !0;
|
|
6308
6308
|
const B = (...E) => {
|
|
6309
6309
|
try {
|
|
6310
|
-
return
|
|
6310
|
+
return b(x, ...E);
|
|
6311
6311
|
} finally {
|
|
6312
6312
|
j || (g(), p());
|
|
6313
6313
|
}
|
|
@@ -6346,7 +6346,7 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6346
6346
|
return;
|
|
6347
6347
|
}
|
|
6348
6348
|
return W;
|
|
6349
|
-
}),
|
|
6349
|
+
}), q = [
|
|
6350
6350
|
// store state
|
|
6351
6351
|
t,
|
|
6352
6352
|
e,
|
|
@@ -6366,7 +6366,7 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6366
6366
|
g,
|
|
6367
6367
|
m,
|
|
6368
6368
|
v,
|
|
6369
|
-
|
|
6369
|
+
b,
|
|
6370
6370
|
Z,
|
|
6371
6371
|
M,
|
|
6372
6372
|
S
|
|
@@ -6374,7 +6374,7 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6374
6374
|
get: (x) => On(m(x)),
|
|
6375
6375
|
set: (x, ...k) => {
|
|
6376
6376
|
try {
|
|
6377
|
-
return
|
|
6377
|
+
return b(x, ...k);
|
|
6378
6378
|
} finally {
|
|
6379
6379
|
g(), p();
|
|
6380
6380
|
}
|
|
@@ -6386,7 +6386,7 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6386
6386
|
};
|
|
6387
6387
|
}
|
|
6388
6388
|
};
|
|
6389
|
-
return Object.defineProperty(T, cd, { value:
|
|
6389
|
+
return Object.defineProperty(T, cd, { value: q }), T;
|
|
6390
6390
|
}, fd = dd;
|
|
6391
6391
|
const Bs = ca;
|
|
6392
6392
|
let pd = 0;
|
|
@@ -6503,27 +6503,7 @@ function Te(t, e) {
|
|
|
6503
6503
|
Cd(t, e)
|
|
6504
6504
|
];
|
|
6505
6505
|
}
|
|
6506
|
-
const pa = vn(""), ha = vn(!1), Yi = vn([]), ma = vn([
|
|
6507
|
-
"web",
|
|
6508
|
-
"adcolony",
|
|
6509
|
-
"applovin",
|
|
6510
|
-
"chartboost",
|
|
6511
|
-
"crossinstall",
|
|
6512
|
-
"fb",
|
|
6513
|
-
"google",
|
|
6514
|
-
"google360",
|
|
6515
|
-
"ironsource",
|
|
6516
|
-
"lifestreet",
|
|
6517
|
-
"liftoff",
|
|
6518
|
-
"mobvista",
|
|
6519
|
-
"nucleo",
|
|
6520
|
-
"tapjoy",
|
|
6521
|
-
"toutiao",
|
|
6522
|
-
"unity",
|
|
6523
|
-
"vungle",
|
|
6524
|
-
"moloco",
|
|
6525
|
-
"cdn"
|
|
6526
|
-
]), qn = vn(!1), wd = ({
|
|
6506
|
+
const pa = vn(""), ha = vn(!1), Yi = vn([]), ma = vn([]), qn = vn(!1), wd = ({
|
|
6527
6507
|
versionId: t,
|
|
6528
6508
|
playableId: e,
|
|
6529
6509
|
typeOfProduct: n,
|
|
@@ -6547,15 +6527,15 @@ const pa = vn(""), ha = vn(!1), Yi = vn([]), ma = vn([
|
|
|
6547
6527
|
!1,
|
|
6548
6528
|
{ urlType: A }
|
|
6549
6529
|
).then(async (v) => {
|
|
6550
|
-
var S,
|
|
6551
|
-
let
|
|
6530
|
+
var S, q, T, x;
|
|
6531
|
+
let b = "";
|
|
6552
6532
|
if (e && (n === "Playable" || n === "Ready")) {
|
|
6553
|
-
const k = await oi(e, r), Y = (
|
|
6554
|
-
Y && (
|
|
6533
|
+
const k = await oi(e, r), Y = (q = (S = k == null ? void 0 : k.data) == null ? void 0 : S.globalProps) == null ? void 0 : q.defaultLandscape, W = (x = (T = k == null ? void 0 : k.data) == null ? void 0 : T.globalProps) == null ? void 0 : x.defaultPhoneIndex;
|
|
6534
|
+
Y && (b += "&landscape=true"), W !== void 0 && (b += `&phoneIndex=${W}`);
|
|
6555
6535
|
}
|
|
6556
6536
|
oi(e, r), d(!1);
|
|
6557
6537
|
let Z;
|
|
6558
|
-
n === "Flex" ? Z = `${i}/preview?versionId=${t}` : n === "Import" ? Z = `${i}/preview?versionId=${t}` : n === "Ready" ? Z = `${i}/preview?versionId=${t}&ready=true` : n === "Fusion" ? Z = `${i}/preview?versionId=${t}` : Z = `${i}/preview?versionId=${t}`, Z +=
|
|
6538
|
+
n === "Flex" ? Z = `${i}/preview?versionId=${t}` : n === "Import" ? Z = `${i}/preview?versionId=${t}` : n === "Ready" ? Z = `${i}/preview?versionId=${t}&ready=true` : n === "Fusion" ? Z = `${i}/preview?versionId=${t}` : Z = `${i}/preview?versionId=${t}`, Z += b, Xt(Z) ? zt(ae.t("common:link_copied")) : s(Z), d(!1);
|
|
6559
6539
|
}).catch((v) => {
|
|
6560
6540
|
d(!1);
|
|
6561
6541
|
});
|
|
@@ -7570,7 +7550,11 @@ const Wd = ({ typeOfProduct: t }) => /* @__PURE__ */ c.jsx(
|
|
|
7570
7550
|
}
|
|
7571
7551
|
)
|
|
7572
7552
|
}
|
|
7573
|
-
), Gr = ({
|
|
7553
|
+
), Gr = ({
|
|
7554
|
+
title: t,
|
|
7555
|
+
titleId: e,
|
|
7556
|
+
...n
|
|
7557
|
+
}) => /* @__PURE__ */ c.jsxs(
|
|
7574
7558
|
"svg",
|
|
7575
7559
|
{
|
|
7576
7560
|
viewBox: "0 0 25 24",
|
|
@@ -8275,20 +8259,20 @@ const Yd = ({
|
|
|
8275
8259
|
game: g,
|
|
8276
8260
|
setIsConfirmActive: m,
|
|
8277
8261
|
creditDownload: v,
|
|
8278
|
-
getDownloadCount:
|
|
8262
|
+
getDownloadCount: b,
|
|
8279
8263
|
disabled: Z,
|
|
8280
8264
|
user: M,
|
|
8281
8265
|
setSafariCopyLink: S,
|
|
8282
|
-
isTest:
|
|
8266
|
+
isTest: q,
|
|
8283
8267
|
urlType: T,
|
|
8284
8268
|
setCdnModal: x,
|
|
8285
8269
|
generateCDN: k,
|
|
8286
8270
|
cdnUrl: Y
|
|
8287
8271
|
}) => {
|
|
8288
|
-
const [W, z] = X(!1), [j, B] = X(""), [E, L] = X(!1), [G, y] = X(!1), [K, Q] = X(!1), [w, I] = X("download"), [V, H] = X(!1), [J, P] = X(!1), [F, _] = X(!1), [ne, se] = X(!1), [$, ge] = X(!1), [R, we] = X(!1), [
|
|
8272
|
+
const [W, z] = X(!1), [j, B] = X(""), [E, L] = X(!1), [G, y] = X(!1), [K, Q] = X(!1), [w, I] = X("download"), [V, H] = X(!1), [J, P] = X(!1), [F, _] = X(!1), [ne, se] = X(!1), [$, ge] = X(!1), [R, we] = X(!1), [We, je] = X(!1), [Be, D] = Te(Yi), [U, oe] = Te(qn), qe = l === "Playable" ? U : !0, be = {
|
|
8289
8273
|
cdn: "Generate Link",
|
|
8290
8274
|
adikteev: "Copy CDN"
|
|
8291
|
-
},
|
|
8275
|
+
}, ze = () => {
|
|
8292
8276
|
n(t);
|
|
8293
8277
|
}, $e = async (ue, Ce, Oe) => {
|
|
8294
8278
|
const Yt = {
|
|
@@ -8306,7 +8290,7 @@ const Yd = ({
|
|
|
8306
8290
|
ue,
|
|
8307
8291
|
qe ? p : null,
|
|
8308
8292
|
Ce,
|
|
8309
|
-
|
|
8293
|
+
q,
|
|
8310
8294
|
Yt
|
|
8311
8295
|
).then((wt) => {
|
|
8312
8296
|
z(!1), yr(wt), P(!1), H(!1);
|
|
@@ -8319,7 +8303,7 @@ const Yd = ({
|
|
|
8319
8303
|
const Ce = {
|
|
8320
8304
|
molocoGenerateHtml: !1
|
|
8321
8305
|
};
|
|
8322
|
-
ue && (Ce.molocoGenerateHtml = !0), pn(A, i, qe ? p : null, "download",
|
|
8306
|
+
ue && (Ce.molocoGenerateHtml = !0), pn(A, i, qe ? p : null, "download", q, Ce).then((Oe) => {
|
|
8323
8307
|
ue ? P(!1) : H(!1), Q(!1);
|
|
8324
8308
|
}).catch((Oe) => {
|
|
8325
8309
|
d(Oe.message, Oe);
|
|
@@ -8350,7 +8334,7 @@ const Yd = ({
|
|
|
8350
8334
|
cursor: "pointer"
|
|
8351
8335
|
},
|
|
8352
8336
|
className: "border-hover-" + l,
|
|
8353
|
-
onClick:
|
|
8337
|
+
onClick: ze,
|
|
8354
8338
|
children: [
|
|
8355
8339
|
/* @__PURE__ */ c.jsxs(
|
|
8356
8340
|
"div",
|
|
@@ -8429,7 +8413,7 @@ const Yd = ({
|
|
|
8429
8413
|
/* @__PURE__ */ c.jsx(
|
|
8430
8414
|
"img",
|
|
8431
8415
|
{
|
|
8432
|
-
onClick:
|
|
8416
|
+
onClick: ze,
|
|
8433
8417
|
style: {
|
|
8434
8418
|
width: "30rem",
|
|
8435
8419
|
// Equivalent to 120/4 = 30rem
|
|
@@ -8458,7 +8442,11 @@ const Yd = ({
|
|
|
8458
8442
|
className: `${ut ? "w-1/2" : "w-2/3"} border-hover-` + l,
|
|
8459
8443
|
downloading: W,
|
|
8460
8444
|
onClickDonwload: async (ue) => {
|
|
8461
|
-
if (ue.stopPropagation(),
|
|
8445
|
+
if (ue.stopPropagation(), l === "Flex" && M.flex === !1) {
|
|
8446
|
+
d("|ACCESS|");
|
|
8447
|
+
return;
|
|
8448
|
+
}
|
|
8449
|
+
if (ut && M.customer === "playableFactoryInternal") {
|
|
8462
8450
|
Q(!0);
|
|
8463
8451
|
return;
|
|
8464
8452
|
} else if (At)
|
|
@@ -8577,7 +8565,7 @@ const Yd = ({
|
|
|
8577
8565
|
onClose: () => {
|
|
8578
8566
|
L(!1), m(!1);
|
|
8579
8567
|
},
|
|
8580
|
-
getDownloadCount:
|
|
8568
|
+
getDownloadCount: b
|
|
8581
8569
|
}
|
|
8582
8570
|
),
|
|
8583
8571
|
G && /* @__PURE__ */ c.jsx(
|
|
@@ -8619,11 +8607,11 @@ const Yd = ({
|
|
|
8619
8607
|
se(!1);
|
|
8620
8608
|
},
|
|
8621
8609
|
handleDownload: async (ue) => {
|
|
8622
|
-
ue === "portrait" ? ge(!0) : ue === "landscape" ? we(!0) :
|
|
8610
|
+
ue === "portrait" ? ge(!0) : ue === "landscape" ? we(!0) : je(!0), await $e(i, "download", ue), ue === "portrait" ? ge(!1) : ue === "landscape" ? we(!1) : je(!1);
|
|
8623
8611
|
},
|
|
8624
8612
|
downloadingPortrait: $,
|
|
8625
8613
|
downloadingLandscape: R,
|
|
8626
|
-
downloadingResponsive:
|
|
8614
|
+
downloadingResponsive: We
|
|
8627
8615
|
}
|
|
8628
8616
|
)
|
|
8629
8617
|
] });
|
|
@@ -9031,19 +9019,19 @@ const Yd = ({
|
|
|
9031
9019
|
isTest: g,
|
|
9032
9020
|
urlType: m,
|
|
9033
9021
|
allNetworksSelected: v,
|
|
9034
|
-
cdnModal:
|
|
9022
|
+
cdnModal: b,
|
|
9035
9023
|
setCdnModal: Z,
|
|
9036
9024
|
cdnUrl: M,
|
|
9037
9025
|
setCdnUrl: S,
|
|
9038
|
-
customer:
|
|
9026
|
+
customer: q
|
|
9039
9027
|
}) => {
|
|
9040
|
-
const [T, x] = X([]), [k, Y] = X([]), [W, z] = X(!1), [j, B] = X(""), [E, L] = X(!1), [G, y] = X(!1), [K, Q] = X("download"), [w, I] = X(!1), [V, H] = X(!1), [J, P] = X(!1), [F, _] = Te(pa), [ne, se] = Te(ha), [$] = Te(Yi), [ge, R] = Te(qn), we = i === "Playable" ? ge : !0,
|
|
9028
|
+
const [T, x] = X([]), [k, Y] = X([]), [W, z] = X(!1), [j, B] = X(""), [E, L] = X(!1), [G, y] = X(!1), [K, Q] = X("download"), [w, I] = X(!1), [V, H] = X(!1), [J, P] = X(!1), [F, _] = Te(pa), [ne, se] = Te(ha), [$] = Te(Yi), [ge, R] = Te(qn), we = i === "Playable" ? ge : !0, We = async (U = !1) => {
|
|
9041
9029
|
U && M || J || (P(!0), pn(r, "cdn", we ? A : null, null, !1, {}).then((oe) => {
|
|
9042
9030
|
S(oe.url), P(!1);
|
|
9043
9031
|
}).catch((oe) => {
|
|
9044
9032
|
a(oe.message, oe), P(!1);
|
|
9045
9033
|
}));
|
|
9046
|
-
},
|
|
9034
|
+
}, je = async (U) => {
|
|
9047
9035
|
if (U === "adikteev")
|
|
9048
9036
|
return;
|
|
9049
9037
|
const oe = [...T];
|
|
@@ -9092,14 +9080,7 @@ const Yd = ({
|
|
|
9092
9080
|
},
|
|
9093
9081
|
children: n && $.filter((U) => {
|
|
9094
9082
|
var oe;
|
|
9095
|
-
|
|
9096
|
-
return typeof U == "string" ? e == null ? void 0 : e.networks.includes(U) : e == null ? void 0 : e.networks.includes(U.name);
|
|
9097
|
-
if (i === "Import")
|
|
9098
|
-
return t == null ? void 0 : t.networks.filter((qe) => qe.status === "paid").some((qe) => qe.name === U.name);
|
|
9099
|
-
if (!U)
|
|
9100
|
-
t == null || t.networks.includes(U);
|
|
9101
|
-
else
|
|
9102
|
-
return U;
|
|
9083
|
+
return e && ((oe = e == null ? void 0 : e.networks) == null ? void 0 : oe.length) > 0 ? typeof U == "string" ? e == null ? void 0 : e.networks.includes(U) : e == null ? void 0 : e.networks.includes(U.name) : i === "Import" ? t == null ? void 0 : t.networks.filter((qe) => qe.status === "paid").some((qe) => qe.name === U.name) : q != null && q.networks ? q.networks.includes(U.name) : (t == null ? void 0 : t.networks.includes(U.name)) || (u == null ? void 0 : u.networks.includes(U.name));
|
|
9103
9084
|
}).filter(
|
|
9104
9085
|
(U) => U.name === "voodoo" ? o.customer === "customer:20" : !0
|
|
9105
9086
|
).map((U) => {
|
|
@@ -9115,7 +9096,7 @@ const Yd = ({
|
|
|
9115
9096
|
name: U.name,
|
|
9116
9097
|
imageUrl: oe,
|
|
9117
9098
|
selected: T.includes(U.id),
|
|
9118
|
-
handleCardClick:
|
|
9099
|
+
handleCardClick: je,
|
|
9119
9100
|
networkVersionSize: k,
|
|
9120
9101
|
fileSizeLoading: W,
|
|
9121
9102
|
showCheckBox: U.id !== "adikteev",
|
|
@@ -9135,7 +9116,7 @@ const Yd = ({
|
|
|
9135
9116
|
isTest: g,
|
|
9136
9117
|
urlType: m,
|
|
9137
9118
|
setCdnModal: Z,
|
|
9138
|
-
generateCDN:
|
|
9119
|
+
generateCDN: We,
|
|
9139
9120
|
cdnUrl: M
|
|
9140
9121
|
},
|
|
9141
9122
|
U.id
|
|
@@ -9169,7 +9150,7 @@ const Yd = ({
|
|
|
9169
9150
|
)
|
|
9170
9151
|
}
|
|
9171
9152
|
),
|
|
9172
|
-
|
|
9153
|
+
b && /* @__PURE__ */ c.jsx(
|
|
9173
9154
|
Td,
|
|
9174
9155
|
{
|
|
9175
9156
|
onClose: () => {
|
|
@@ -9182,8 +9163,12 @@ const Yd = ({
|
|
|
9182
9163
|
setCdnUrl: S,
|
|
9183
9164
|
generateCDN: async () => {
|
|
9184
9165
|
if (!J) {
|
|
9166
|
+
if (!e.willSpendCredit) {
|
|
9167
|
+
We();
|
|
9168
|
+
return;
|
|
9169
|
+
}
|
|
9185
9170
|
if (o.customer === "playableFactoryInternal") {
|
|
9186
|
-
|
|
9171
|
+
We();
|
|
9187
9172
|
return;
|
|
9188
9173
|
}
|
|
9189
9174
|
H(!0);
|
|
@@ -9210,7 +9195,7 @@ const Yd = ({
|
|
|
9210
9195
|
handleCopyLink: async () => {
|
|
9211
9196
|
},
|
|
9212
9197
|
download: async () => {
|
|
9213
|
-
I(!1), H(!1),
|
|
9198
|
+
I(!1), H(!1), We();
|
|
9214
9199
|
},
|
|
9215
9200
|
onClose: () => {
|
|
9216
9201
|
I(!1), H(!1), P(!1);
|
|
@@ -9304,10 +9289,10 @@ const _d = ({
|
|
|
9304
9289
|
androidLink: g,
|
|
9305
9290
|
setIosLink: m,
|
|
9306
9291
|
setAndroidLink: v,
|
|
9307
|
-
urlType:
|
|
9292
|
+
urlType: b,
|
|
9308
9293
|
setUrlType: Z
|
|
9309
9294
|
}) => {
|
|
9310
|
-
const [M, S] = X(null), [
|
|
9295
|
+
const [M, S] = X(null), [q, T] = X(null), [x, k] = X(null), [Y, W] = X(!1), [z, j] = X(!0), [B, E] = X(window.innerWidth), [L, G] = X(!1), [y, K] = X(!1), [Q, w] = X("");
|
|
9311
9296
|
Te(pa), Te(ha);
|
|
9312
9297
|
const [I, V] = Te(ma), [H, J] = Te(qn);
|
|
9313
9298
|
Ie(() => {
|
|
@@ -9331,7 +9316,7 @@ const _d = ({
|
|
|
9331
9316
|
return D != null && D.networks || (D.networks = Us), S(D), D;
|
|
9332
9317
|
}, ne = (D, U) => {
|
|
9333
9318
|
clearTimeout(Qs), Qs = setTimeout(() => {
|
|
9334
|
-
r === "Playable" && !H || Ri(e, { iosUrl: D, googleUrl: U }, { urlType:
|
|
9319
|
+
r === "Playable" && !H || Ri(e, { iosUrl: D, googleUrl: U }, { urlType: b });
|
|
9335
9320
|
}, 1e3);
|
|
9336
9321
|
}, se = (D) => {
|
|
9337
9322
|
m(D), ne(D, g);
|
|
@@ -9342,9 +9327,9 @@ const _d = ({
|
|
|
9342
9327
|
try {
|
|
9343
9328
|
let be;
|
|
9344
9329
|
if (r === "Playable" || r === "Ready") {
|
|
9345
|
-
const
|
|
9346
|
-
if (
|
|
9347
|
-
m(
|
|
9330
|
+
const ze = await Vd(e, s);
|
|
9331
|
+
if (ze) {
|
|
9332
|
+
m(ze.iosLink), v(ze.androidLink), W(!1);
|
|
9348
9333
|
return;
|
|
9349
9334
|
}
|
|
9350
9335
|
if (D && (D.iosUrl || D.googleUrl)) {
|
|
@@ -9365,9 +9350,9 @@ const _d = ({
|
|
|
9365
9350
|
} else
|
|
9366
9351
|
v(""), m(""), W(!1);
|
|
9367
9352
|
} else if (r === "Flex") {
|
|
9368
|
-
const
|
|
9369
|
-
if (
|
|
9370
|
-
v(
|
|
9353
|
+
const ze = await Xd(e, s);
|
|
9354
|
+
if (ze.googleUrl || ze.iosUrl) {
|
|
9355
|
+
v(ze.googleUrl), m(ze.iosUrl), W(!1);
|
|
9371
9356
|
return;
|
|
9372
9357
|
}
|
|
9373
9358
|
D && (D.iosUrl || D.googleUrl) ? (m(D.iosUrl), v(D.googleUrl), W(!1)) : (v(""), m(""), W(!1));
|
|
@@ -9389,11 +9374,11 @@ const _d = ({
|
|
|
9389
9374
|
...D,
|
|
9390
9375
|
networks: D.networks
|
|
9391
9376
|
})))), W(!1);
|
|
9392
|
-
}, we = async () => await Bd(n, s), [
|
|
9377
|
+
}, we = async () => await Bd(n, s), [We, je] = X(null), Be = async (D) => await Fd(D, s);
|
|
9393
9378
|
return Ie(() => {
|
|
9394
|
-
i || (S(null), T(null), k(null), d(null),
|
|
9379
|
+
i || (S(null), T(null), k(null), d(null), je(null)), i && (r === "Playable" ? we().then((D) => {
|
|
9395
9380
|
Be(D.customer).then((U) => {
|
|
9396
|
-
|
|
9381
|
+
je(U);
|
|
9397
9382
|
}), _().then((U) => {
|
|
9398
9383
|
ge(null, U);
|
|
9399
9384
|
}), j(!1);
|
|
@@ -9439,7 +9424,7 @@ const _d = ({
|
|
|
9439
9424
|
user: o,
|
|
9440
9425
|
isTest: L,
|
|
9441
9426
|
setIsTest: G,
|
|
9442
|
-
urlType:
|
|
9427
|
+
urlType: b,
|
|
9443
9428
|
setUrlType: Z,
|
|
9444
9429
|
allNetworksSelected: P,
|
|
9445
9430
|
setAllNetworksSelected: F
|
|
@@ -9457,7 +9442,7 @@ const _d = ({
|
|
|
9457
9442
|
},
|
|
9458
9443
|
children: /* @__PURE__ */ c.jsx(cn, { isNetworksLoading: !0 })
|
|
9459
9444
|
}
|
|
9460
|
-
) : (M || x || r === "Fusion") && (r === "Flex" ?
|
|
9445
|
+
) : (M || x || r === "Fusion") && (r === "Flex" ? q : !0) && !Y && p !== "Loading..." && g !== "Loading..." && /* @__PURE__ */ c.jsx(
|
|
9461
9446
|
Pd,
|
|
9462
9447
|
{
|
|
9463
9448
|
playable: M,
|
|
@@ -9470,18 +9455,18 @@ const _d = ({
|
|
|
9470
9455
|
handleDownloadError: l,
|
|
9471
9456
|
fetchFileUrl: A,
|
|
9472
9457
|
urls: { iosUrl: p, googleUrl: g },
|
|
9473
|
-
game:
|
|
9458
|
+
game: q,
|
|
9474
9459
|
getDownloadCount: R,
|
|
9475
9460
|
disabled: z,
|
|
9476
9461
|
setSafariCopyLink: f,
|
|
9477
9462
|
isTest: L,
|
|
9478
|
-
urlType:
|
|
9463
|
+
urlType: b,
|
|
9479
9464
|
allNetworksSelected: P,
|
|
9480
9465
|
cdnModal: y,
|
|
9481
9466
|
setCdnModal: K,
|
|
9482
9467
|
cdnUrl: Q,
|
|
9483
9468
|
setCdnUrl: w,
|
|
9484
|
-
customer:
|
|
9469
|
+
customer: We ?? void 0
|
|
9485
9470
|
}
|
|
9486
9471
|
)
|
|
9487
9472
|
]
|
|
@@ -9640,8 +9625,8 @@ var pi = { exports: {} };
|
|
|
9640
9625
|
}
|
|
9641
9626
|
var m = /(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent), v = m != null && m[1] != "Chrome" && /\biPod\b|\biPad\b/g.exec(navigator.userAgent) == null;
|
|
9642
9627
|
if (v) {
|
|
9643
|
-
var
|
|
9644
|
-
if (
|
|
9628
|
+
var b = A.indexOf(g);
|
|
9629
|
+
if (b > -1 && (b += d ? -1 : 1), u = A[b], typeof u > "u") {
|
|
9645
9630
|
l.preventDefault(), u = d ? p : f, u.focus();
|
|
9646
9631
|
return;
|
|
9647
9632
|
}
|
|
@@ -9961,7 +9946,7 @@ Nf.default.subscribe(Gf);
|
|
|
9961
9946
|
return function(L, G, y) {
|
|
9962
9947
|
return G && E(L.prototype, G), y && E(L, y), L;
|
|
9963
9948
|
};
|
|
9964
|
-
}(), s = de, o = ir, a =
|
|
9949
|
+
}(), s = de, o = ir, a = q(o), l = at, A = S(l), u = Af, d = q(u), f = lt, p = S(f), g = Ut, m = S(g), v = st, b = q(v), Z = Qt, M = q(Z);
|
|
9965
9950
|
function S(E) {
|
|
9966
9951
|
if (E && E.__esModule)
|
|
9967
9952
|
return E;
|
|
@@ -9971,7 +9956,7 @@ Nf.default.subscribe(Gf);
|
|
|
9971
9956
|
Object.prototype.hasOwnProperty.call(E, G) && (L[G] = E[G]);
|
|
9972
9957
|
return L.default = E, L;
|
|
9973
9958
|
}
|
|
9974
|
-
function
|
|
9959
|
+
function q(E) {
|
|
9975
9960
|
return E && E.__esModule ? E : { default: E };
|
|
9976
9961
|
}
|
|
9977
9962
|
function T(E, L) {
|
|
@@ -10143,7 +10128,7 @@ Nf.default.subscribe(Gf);
|
|
|
10143
10128
|
bodyOpenClassName: a.default.string,
|
|
10144
10129
|
htmlOpenClassName: a.default.string,
|
|
10145
10130
|
ariaHideApp: a.default.bool,
|
|
10146
|
-
appElement: a.default.oneOfType([a.default.instanceOf(
|
|
10131
|
+
appElement: a.default.oneOfType([a.default.instanceOf(b.default), a.default.instanceOf(v.SafeHTMLCollection), a.default.instanceOf(v.SafeNodeList), a.default.arrayOf(a.default.instanceOf(b.default))]),
|
|
10147
10132
|
onAfterOpen: a.default.func,
|
|
10148
10133
|
onAfterClose: a.default.func,
|
|
10149
10134
|
onRequestClose: a.default.func,
|
|
@@ -12825,21 +12810,21 @@ const uo = 5, rh = ({
|
|
|
12825
12810
|
}) => {
|
|
12826
12811
|
const [d, f] = X(!1), [p, g] = X(!1);
|
|
12827
12812
|
Ie(() => {
|
|
12828
|
-
const
|
|
12813
|
+
const b = Gn(l, {
|
|
12829
12814
|
path: "/socket.io"
|
|
12830
12815
|
});
|
|
12831
|
-
return
|
|
12816
|
+
return b.on("connect", () => {
|
|
12832
12817
|
console.log("Connected to the socket server");
|
|
12833
|
-
}),
|
|
12818
|
+
}), b.on("video-compressing", async (Z) => {
|
|
12834
12819
|
if (console.log(Z), Z.userId === a._id && Z.isSuccess) {
|
|
12835
12820
|
console.log("Video compress successfull");
|
|
12836
12821
|
const M = await nh({ _id: i }, u);
|
|
12837
12822
|
o(M.size), t(!1);
|
|
12838
12823
|
}
|
|
12839
|
-
}),
|
|
12824
|
+
}), b.on("error", (Z) => {
|
|
12840
12825
|
console.error("Socket error:", Z);
|
|
12841
12826
|
}), () => {
|
|
12842
|
-
|
|
12827
|
+
b.disconnect();
|
|
12843
12828
|
};
|
|
12844
12829
|
}, [i]);
|
|
12845
12830
|
const m = () => {
|
|
@@ -12847,14 +12832,14 @@ const uo = 5, rh = ({
|
|
|
12847
12832
|
}, v = async () => {
|
|
12848
12833
|
try {
|
|
12849
12834
|
f(!0);
|
|
12850
|
-
const
|
|
12835
|
+
const b = await th(
|
|
12851
12836
|
i,
|
|
12852
12837
|
s,
|
|
12853
12838
|
`${A}/videos/compressByDiff`
|
|
12854
12839
|
);
|
|
12855
|
-
console.log("Compression result:",
|
|
12856
|
-
} catch (
|
|
12857
|
-
console.error("Error compressing video:",
|
|
12840
|
+
console.log("Compression result:", b), n(!1);
|
|
12841
|
+
} catch (b) {
|
|
12842
|
+
console.error("Error compressing video:", b), n(!1), e();
|
|
12858
12843
|
}
|
|
12859
12844
|
};
|
|
12860
12845
|
return /* @__PURE__ */ c.jsxs(
|
|
@@ -13093,7 +13078,7 @@ const uh = ({
|
|
|
13093
13078
|
copyLinkUrl: p,
|
|
13094
13079
|
fusionData: g
|
|
13095
13080
|
}) => {
|
|
13096
|
-
const [m, v] = X(window.innerWidth), [
|
|
13081
|
+
const [m, v] = X(window.innerWidth), [b, Z] = X(!1), [M, S] = X(u), [q, T] = X(!1), [x, k] = X(!0), [Y, W] = X(null), [z, j] = X(""), [B, E] = X("Loading..."), [L, G] = X("Loading..."), [y, K] = X("game"), [Q, w] = Te(Yi), [I, V] = Te(ma);
|
|
13097
13082
|
ad(o, a, j, f, g);
|
|
13098
13083
|
const H = async () => {
|
|
13099
13084
|
let J = await sh(a, o);
|
|
@@ -13108,7 +13093,7 @@ const uh = ({
|
|
|
13108
13093
|
});
|
|
13109
13094
|
};
|
|
13110
13095
|
return Ie(() => {
|
|
13111
|
-
t ?
|
|
13096
|
+
t ? b || (H(), Z(!0)) : (Z(!1), S(""));
|
|
13112
13097
|
}, [t]), Ie(() => {
|
|
13113
13098
|
const J = () => {
|
|
13114
13099
|
v(window.innerWidth);
|
|
@@ -13181,7 +13166,7 @@ const uh = ({
|
|
|
13181
13166
|
J.stopPropagation();
|
|
13182
13167
|
},
|
|
13183
13168
|
children: [
|
|
13184
|
-
|
|
13169
|
+
q && t && /* @__PURE__ */ c.jsx(
|
|
13185
13170
|
rh,
|
|
13186
13171
|
{
|
|
13187
13172
|
setIsExceedingFileSizeAccepted: T,
|
|
@@ -13197,7 +13182,7 @@ const uh = ({
|
|
|
13197
13182
|
api: a
|
|
13198
13183
|
}
|
|
13199
13184
|
),
|
|
13200
|
-
!
|
|
13185
|
+
!q && /* @__PURE__ */ c.jsxs(
|
|
13201
13186
|
mi,
|
|
13202
13187
|
{
|
|
13203
13188
|
isOpen: t,
|
|
@@ -13262,7 +13247,7 @@ const uh = ({
|
|
|
13262
13247
|
}
|
|
13263
13248
|
),
|
|
13264
13249
|
/* @__PURE__ */ c.jsxs(Al, { children: [
|
|
13265
|
-
|
|
13250
|
+
b ? /* @__PURE__ */ c.jsx(
|
|
13266
13251
|
xd,
|
|
13267
13252
|
{
|
|
13268
13253
|
versionName: i,
|