gearboxdownloadmodal 6.0.82 → 6.0.83
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 +993 -983
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +19 -19
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/FileSizeModal.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -41,14 +41,14 @@ function ll() {
|
|
|
41
41
|
Xi = 1;
|
|
42
42
|
var t = fe, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
43
43
|
function o(a, l, A) {
|
|
44
|
-
var u, c = {}, f = null,
|
|
45
|
-
A !== void 0 && (f = "" + A), l.key !== void 0 && (f = "" + l.key), l.ref !== void 0 && (
|
|
44
|
+
var u, c = {}, f = null, p = null;
|
|
45
|
+
A !== void 0 && (f = "" + A), l.key !== void 0 && (f = "" + l.key), l.ref !== void 0 && (p = l.ref);
|
|
46
46
|
for (u in l)
|
|
47
47
|
r.call(l, u) && !s.hasOwnProperty(u) && (c[u] = l[u]);
|
|
48
48
|
if (a && a.defaultProps)
|
|
49
49
|
for (u in l = a.defaultProps, l)
|
|
50
50
|
c[u] === void 0 && (c[u] = l[u]);
|
|
51
|
-
return { $$typeof: e, type: a, key: f, ref:
|
|
51
|
+
return { $$typeof: e, type: a, key: f, ref: p, props: c, _owner: i.current };
|
|
52
52
|
}
|
|
53
53
|
return Vt.Fragment = n, Vt.jsx = o, Vt.jsxs = o, Vt;
|
|
54
54
|
}
|
|
@@ -65,58 +65,58 @@ var Xt = {};
|
|
|
65
65
|
var Ui;
|
|
66
66
|
function ul() {
|
|
67
67
|
return Ui || (Ui = 1, process.env.NODE_ENV !== "production" && function() {
|
|
68
|
-
var t = fe, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), f = Symbol.for("react.lazy"),
|
|
69
|
-
function v(
|
|
70
|
-
if (
|
|
68
|
+
var t = fe, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), g = Symbol.iterator, m = "@@iterator";
|
|
69
|
+
function v(h) {
|
|
70
|
+
if (h === null || typeof h != "object")
|
|
71
71
|
return null;
|
|
72
|
-
var
|
|
73
|
-
return typeof
|
|
72
|
+
var O = g && h[g] || h[m];
|
|
73
|
+
return typeof O == "function" ? O : null;
|
|
74
74
|
}
|
|
75
|
-
var
|
|
76
|
-
function
|
|
75
|
+
var b = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
76
|
+
function Z(h) {
|
|
77
77
|
{
|
|
78
|
-
for (var
|
|
78
|
+
for (var O = arguments.length, N = new Array(O > 1 ? O - 1 : 0), te = 1; te < O; te++)
|
|
79
79
|
N[te - 1] = arguments[te];
|
|
80
|
-
|
|
80
|
+
M("error", h, N);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function M(h, O, N) {
|
|
84
84
|
{
|
|
85
|
-
var te =
|
|
86
|
-
pe !== "" && (
|
|
85
|
+
var te = b.ReactDebugCurrentFrame, pe = te.getStackAddendum();
|
|
86
|
+
pe !== "" && (O += "%s", N = N.concat([pe]));
|
|
87
87
|
var ye = N.map(function(de) {
|
|
88
88
|
return String(de);
|
|
89
89
|
});
|
|
90
|
-
ye.unshift("Warning: " +
|
|
90
|
+
ye.unshift("Warning: " + O), Function.prototype.apply.call(console[h], console, ye);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
var
|
|
93
|
+
var S = !1, q = !1, T = !1, x = !1, k = !1, Y;
|
|
94
94
|
Y = Symbol.for("react.module.reference");
|
|
95
|
-
function
|
|
96
|
-
return !!(typeof
|
|
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 || q || T || typeof h == "object" && h !== null && (h.$$typeof === f || h.$$typeof === c || 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.
|
|
100
|
-
|
|
100
|
+
h.$$typeof === Y || h.getModuleId !== void 0));
|
|
101
101
|
}
|
|
102
|
-
function z(
|
|
103
|
-
var te =
|
|
102
|
+
function z(h, O, N) {
|
|
103
|
+
var te = h.displayName;
|
|
104
104
|
if (te)
|
|
105
105
|
return te;
|
|
106
|
-
var pe =
|
|
106
|
+
var pe = O.displayName || O.name || "";
|
|
107
107
|
return pe !== "" ? N + "(" + pe + ")" : N;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
return
|
|
109
|
+
function j(h) {
|
|
110
|
+
return h.displayName || "Context";
|
|
111
111
|
}
|
|
112
|
-
function B(
|
|
113
|
-
if (
|
|
112
|
+
function B(h) {
|
|
113
|
+
if (h == null)
|
|
114
114
|
return null;
|
|
115
|
-
if (typeof
|
|
116
|
-
return
|
|
117
|
-
if (typeof
|
|
118
|
-
return
|
|
119
|
-
switch (
|
|
115
|
+
if (typeof h.tag == "number" && Z("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof h == "function")
|
|
116
|
+
return h.displayName || h.name || null;
|
|
117
|
+
if (typeof h == "string")
|
|
118
|
+
return h;
|
|
119
|
+
switch (h) {
|
|
120
120
|
case r:
|
|
121
121
|
return "Fragment";
|
|
122
122
|
case n:
|
|
@@ -130,21 +130,21 @@ function ul() {
|
|
|
130
130
|
case u:
|
|
131
131
|
return "SuspenseList";
|
|
132
132
|
}
|
|
133
|
-
if (typeof
|
|
134
|
-
switch (
|
|
133
|
+
if (typeof h == "object")
|
|
134
|
+
switch (h.$$typeof) {
|
|
135
135
|
case a:
|
|
136
|
-
var
|
|
137
|
-
return
|
|
136
|
+
var O = h;
|
|
137
|
+
return j(O) + ".Consumer";
|
|
138
138
|
case o:
|
|
139
|
-
var N =
|
|
140
|
-
return
|
|
139
|
+
var N = h;
|
|
140
|
+
return j(N._context) + ".Provider";
|
|
141
141
|
case l:
|
|
142
|
-
return z(
|
|
142
|
+
return z(h, h.render, "ForwardRef");
|
|
143
143
|
case c:
|
|
144
|
-
var te =
|
|
145
|
-
return te !== null ? te : B(
|
|
144
|
+
var te = h.displayName || null;
|
|
145
|
+
return te !== null ? te : B(h.type) || "Memo";
|
|
146
146
|
case f: {
|
|
147
|
-
var pe =
|
|
147
|
+
var pe = h, ye = pe._payload, de = pe._init;
|
|
148
148
|
try {
|
|
149
149
|
return B(de(ye));
|
|
150
150
|
} catch {
|
|
@@ -154,28 +154,28 @@ function ul() {
|
|
|
154
154
|
}
|
|
155
155
|
return null;
|
|
156
156
|
}
|
|
157
|
-
var
|
|
157
|
+
var E = Object.assign, L = 0, G, y, K, U, w, I, X;
|
|
158
158
|
function H() {
|
|
159
159
|
}
|
|
160
160
|
H.__reactDisabledLog = !0;
|
|
161
161
|
function J() {
|
|
162
162
|
{
|
|
163
163
|
if (L === 0) {
|
|
164
|
-
G = console.log, y = console.info, K = console.warn, U = console.error, w = console.group,
|
|
165
|
-
var
|
|
164
|
+
G = console.log, y = console.info, K = console.warn, U = console.error, w = console.group, I = console.groupCollapsed, X = console.groupEnd;
|
|
165
|
+
var h = {
|
|
166
166
|
configurable: !0,
|
|
167
167
|
enumerable: !0,
|
|
168
168
|
value: H,
|
|
169
169
|
writable: !0
|
|
170
170
|
};
|
|
171
171
|
Object.defineProperties(console, {
|
|
172
|
-
info:
|
|
173
|
-
log:
|
|
174
|
-
warn:
|
|
175
|
-
error:
|
|
176
|
-
group:
|
|
177
|
-
groupCollapsed:
|
|
178
|
-
groupEnd:
|
|
172
|
+
info: h,
|
|
173
|
+
log: h,
|
|
174
|
+
warn: h,
|
|
175
|
+
error: h,
|
|
176
|
+
group: h,
|
|
177
|
+
groupCollapsed: h,
|
|
178
|
+
groupEnd: h
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
181
|
L++;
|
|
@@ -184,40 +184,40 @@ function ul() {
|
|
|
184
184
|
function P() {
|
|
185
185
|
{
|
|
186
186
|
if (L--, L === 0) {
|
|
187
|
-
var
|
|
187
|
+
var h = {
|
|
188
188
|
configurable: !0,
|
|
189
189
|
enumerable: !0,
|
|
190
190
|
writable: !0
|
|
191
191
|
};
|
|
192
192
|
Object.defineProperties(console, {
|
|
193
|
-
log:
|
|
193
|
+
log: E({}, h, {
|
|
194
194
|
value: G
|
|
195
195
|
}),
|
|
196
|
-
info:
|
|
196
|
+
info: E({}, h, {
|
|
197
197
|
value: y
|
|
198
198
|
}),
|
|
199
|
-
warn:
|
|
199
|
+
warn: E({}, h, {
|
|
200
200
|
value: K
|
|
201
201
|
}),
|
|
202
|
-
error:
|
|
202
|
+
error: E({}, h, {
|
|
203
203
|
value: U
|
|
204
204
|
}),
|
|
205
|
-
group:
|
|
205
|
+
group: E({}, h, {
|
|
206
206
|
value: w
|
|
207
207
|
}),
|
|
208
|
-
groupCollapsed:
|
|
209
|
-
value:
|
|
208
|
+
groupCollapsed: E({}, h, {
|
|
209
|
+
value: I
|
|
210
210
|
}),
|
|
211
|
-
groupEnd:
|
|
211
|
+
groupEnd: E({}, h, {
|
|
212
212
|
value: X
|
|
213
213
|
})
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
-
L < 0 &&
|
|
216
|
+
L < 0 && Z("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
var Q =
|
|
220
|
-
function re(
|
|
219
|
+
var Q = b.ReactCurrentDispatcher, F;
|
|
220
|
+
function re(h, O, N) {
|
|
221
221
|
{
|
|
222
222
|
if (F === void 0)
|
|
223
223
|
try {
|
|
@@ -227,19 +227,19 @@ function ul() {
|
|
|
227
227
|
F = te && te[1] || "";
|
|
228
228
|
}
|
|
229
229
|
return `
|
|
230
|
-
` + F +
|
|
230
|
+
` + F + h;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
var le = !1, ee;
|
|
234
234
|
{
|
|
235
|
-
var
|
|
236
|
-
ee = new
|
|
235
|
+
var be = typeof WeakMap == "function" ? WeakMap : Map;
|
|
236
|
+
ee = new be();
|
|
237
237
|
}
|
|
238
|
-
function R(
|
|
239
|
-
if (!
|
|
238
|
+
function R(h, O) {
|
|
239
|
+
if (!h || le)
|
|
240
240
|
return "";
|
|
241
241
|
{
|
|
242
|
-
var N = ee.get(
|
|
242
|
+
var N = ee.get(h);
|
|
243
243
|
if (N !== void 0)
|
|
244
244
|
return N;
|
|
245
245
|
}
|
|
@@ -250,7 +250,7 @@ function ul() {
|
|
|
250
250
|
var ye;
|
|
251
251
|
ye = Q.current, Q.current = null, J();
|
|
252
252
|
try {
|
|
253
|
-
if (
|
|
253
|
+
if (O) {
|
|
254
254
|
var de = function() {
|
|
255
255
|
throw Error();
|
|
256
256
|
};
|
|
@@ -264,14 +264,14 @@ function ul() {
|
|
|
264
264
|
} catch (je) {
|
|
265
265
|
te = je;
|
|
266
266
|
}
|
|
267
|
-
Reflect.construct(
|
|
267
|
+
Reflect.construct(h, [], de);
|
|
268
268
|
} else {
|
|
269
269
|
try {
|
|
270
270
|
de.call();
|
|
271
271
|
} catch (je) {
|
|
272
272
|
te = je;
|
|
273
273
|
}
|
|
274
|
-
|
|
274
|
+
h.call(de.prototype);
|
|
275
275
|
}
|
|
276
276
|
} else {
|
|
277
277
|
try {
|
|
@@ -279,7 +279,7 @@ function ul() {
|
|
|
279
279
|
} catch (je) {
|
|
280
280
|
te = je;
|
|
281
281
|
}
|
|
282
|
-
|
|
282
|
+
h();
|
|
283
283
|
}
|
|
284
284
|
} catch (je) {
|
|
285
285
|
if (je && te && typeof je.stack == "string") {
|
|
@@ -294,7 +294,7 @@ function ul() {
|
|
|
294
294
|
if (Ce--, xe--, xe < 0 || Ae[Ce] !== We[xe]) {
|
|
295
295
|
var Ge = `
|
|
296
296
|
` + Ae[Ce].replace(" at new ", " at ");
|
|
297
|
-
return
|
|
297
|
+
return h.displayName && Ge.includes("<anonymous>") && (Ge = Ge.replace("<anonymous>", h.displayName)), typeof h == "function" && ee.set(h, Ge), Ge;
|
|
298
298
|
}
|
|
299
299
|
while (Ce >= 1 && xe >= 0);
|
|
300
300
|
break;
|
|
@@ -303,154 +303,154 @@ function ul() {
|
|
|
303
303
|
} finally {
|
|
304
304
|
le = !1, Q.current = ye, P(), Error.prepareStackTrace = pe;
|
|
305
305
|
}
|
|
306
|
-
var Mt =
|
|
307
|
-
return typeof
|
|
306
|
+
var Mt = h ? h.displayName || h.name : "", yt = Mt ? re(Mt) : "";
|
|
307
|
+
return typeof h == "function" && ee.set(h, yt), yt;
|
|
308
308
|
}
|
|
309
|
-
function we(
|
|
310
|
-
return R(
|
|
309
|
+
function we(h, O, N) {
|
|
310
|
+
return R(h, !1);
|
|
311
311
|
}
|
|
312
|
-
function Me(
|
|
313
|
-
var
|
|
314
|
-
return !!(
|
|
312
|
+
function Me(h) {
|
|
313
|
+
var O = h.prototype;
|
|
314
|
+
return !!(O && O.isReactComponent);
|
|
315
315
|
}
|
|
316
|
-
function Ee(
|
|
317
|
-
if (
|
|
316
|
+
function Ee(h, O, N) {
|
|
317
|
+
if (h == null)
|
|
318
318
|
return "";
|
|
319
|
-
if (typeof
|
|
320
|
-
return R(
|
|
321
|
-
if (typeof
|
|
322
|
-
return re(
|
|
323
|
-
switch (
|
|
319
|
+
if (typeof h == "function")
|
|
320
|
+
return R(h, Me(h));
|
|
321
|
+
if (typeof h == "string")
|
|
322
|
+
return re(h);
|
|
323
|
+
switch (h) {
|
|
324
324
|
case A:
|
|
325
325
|
return re("Suspense");
|
|
326
326
|
case u:
|
|
327
327
|
return re("SuspenseList");
|
|
328
328
|
}
|
|
329
|
-
if (typeof
|
|
330
|
-
switch (
|
|
329
|
+
if (typeof h == "object")
|
|
330
|
+
switch (h.$$typeof) {
|
|
331
331
|
case l:
|
|
332
|
-
return we(
|
|
332
|
+
return we(h.render);
|
|
333
333
|
case c:
|
|
334
|
-
return Ee(
|
|
334
|
+
return Ee(h.type, O, N);
|
|
335
335
|
case f: {
|
|
336
|
-
var te =
|
|
336
|
+
var te = h, pe = te._payload, ye = te._init;
|
|
337
337
|
try {
|
|
338
|
-
return Ee(ye(pe),
|
|
338
|
+
return Ee(ye(pe), O, N);
|
|
339
339
|
} catch {
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
return "";
|
|
344
344
|
}
|
|
345
|
-
var Je = Object.prototype.hasOwnProperty, D = {}, V =
|
|
346
|
-
function ae(
|
|
347
|
-
if (
|
|
348
|
-
var
|
|
345
|
+
var Je = Object.prototype.hasOwnProperty, D = {}, V = b.ReactDebugCurrentFrame;
|
|
346
|
+
function ae(h) {
|
|
347
|
+
if (h) {
|
|
348
|
+
var O = h._owner, N = Ee(h.type, h._source, O ? O.type : null);
|
|
349
349
|
V.setExtraStackFrame(N);
|
|
350
350
|
} else
|
|
351
351
|
V.setExtraStackFrame(null);
|
|
352
352
|
}
|
|
353
|
-
function $(
|
|
353
|
+
function $(h, O, N, te, pe) {
|
|
354
354
|
{
|
|
355
355
|
var ye = Function.call.bind(Je);
|
|
356
|
-
for (var de in
|
|
357
|
-
if (ye(
|
|
356
|
+
for (var de in h)
|
|
357
|
+
if (ye(h, de)) {
|
|
358
358
|
var Ae = void 0;
|
|
359
359
|
try {
|
|
360
|
-
if (typeof
|
|
361
|
-
var We = Error((te || "React class") + ": " + N + " type `" + de + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof
|
|
360
|
+
if (typeof h[de] != "function") {
|
|
361
|
+
var We = Error((te || "React class") + ": " + N + " type `" + de + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof h[de] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
362
362
|
throw We.name = "Invariant Violation", We;
|
|
363
363
|
}
|
|
364
|
-
Ae =
|
|
364
|
+
Ae = h[de](O, de, te, N, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
365
365
|
} catch (Ce) {
|
|
366
366
|
Ae = Ce;
|
|
367
367
|
}
|
|
368
|
-
Ae && !(Ae instanceof Error) && (ae(pe),
|
|
368
|
+
Ae && !(Ae instanceof Error) && (ae(pe), Z("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", te || "React class", N, de, typeof Ae), ae(null)), Ae instanceof Error && !(Ae.message in D) && (D[Ae.message] = !0, ae(pe), Z("Failed %s type: %s", N, Ae.message), ae(null));
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
var oe = Array.isArray;
|
|
373
|
-
function ge(
|
|
374
|
-
return oe(
|
|
373
|
+
function ge(h) {
|
|
374
|
+
return oe(h);
|
|
375
375
|
}
|
|
376
|
-
function Bt(
|
|
376
|
+
function Bt(h) {
|
|
377
377
|
{
|
|
378
|
-
var
|
|
378
|
+
var O = typeof Symbol == "function" && Symbol.toStringTag, N = O && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
379
379
|
return N;
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
-
function kt(
|
|
382
|
+
function kt(h) {
|
|
383
383
|
try {
|
|
384
|
-
return it(
|
|
384
|
+
return it(h), !1;
|
|
385
385
|
} catch {
|
|
386
386
|
return !0;
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
function it(
|
|
390
|
-
return "" +
|
|
389
|
+
function it(h) {
|
|
390
|
+
return "" + h;
|
|
391
391
|
}
|
|
392
|
-
function mn(
|
|
393
|
-
if (kt(
|
|
394
|
-
return
|
|
392
|
+
function mn(h) {
|
|
393
|
+
if (kt(h))
|
|
394
|
+
return Z("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Bt(h)), it(h);
|
|
395
395
|
}
|
|
396
|
-
var gt =
|
|
396
|
+
var gt = b.ReactCurrentOwner, ja = {
|
|
397
397
|
key: !0,
|
|
398
398
|
ref: !0,
|
|
399
399
|
__self: !0,
|
|
400
400
|
__source: !0
|
|
401
401
|
}, Ni, Ji, dr;
|
|
402
402
|
dr = {};
|
|
403
|
-
function za(
|
|
404
|
-
if (Je.call(
|
|
405
|
-
var
|
|
406
|
-
if (
|
|
403
|
+
function za(h) {
|
|
404
|
+
if (Je.call(h, "ref")) {
|
|
405
|
+
var O = Object.getOwnPropertyDescriptor(h, "ref").get;
|
|
406
|
+
if (O && O.isReactWarning)
|
|
407
407
|
return !1;
|
|
408
408
|
}
|
|
409
|
-
return
|
|
409
|
+
return h.ref !== void 0;
|
|
410
410
|
}
|
|
411
|
-
function Ra(
|
|
412
|
-
if (Je.call(
|
|
413
|
-
var
|
|
414
|
-
if (
|
|
411
|
+
function Ra(h) {
|
|
412
|
+
if (Je.call(h, "key")) {
|
|
413
|
+
var O = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
414
|
+
if (O && O.isReactWarning)
|
|
415
415
|
return !1;
|
|
416
416
|
}
|
|
417
|
-
return
|
|
417
|
+
return h.key !== void 0;
|
|
418
418
|
}
|
|
419
|
-
function Ya(
|
|
420
|
-
if (typeof
|
|
419
|
+
function Ya(h, O) {
|
|
420
|
+
if (typeof h.ref == "string" && gt.current && O && gt.current.stateNode !== O) {
|
|
421
421
|
var N = B(gt.current.type);
|
|
422
|
-
dr[N] || (
|
|
422
|
+
dr[N] || (Z('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', B(gt.current.type), h.ref), dr[N] = !0);
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
function Na(
|
|
425
|
+
function Na(h, O) {
|
|
426
426
|
{
|
|
427
427
|
var N = function() {
|
|
428
|
-
Ni || (Ni = !0,
|
|
428
|
+
Ni || (Ni = !0, Z("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", O));
|
|
429
429
|
};
|
|
430
|
-
N.isReactWarning = !0, Object.defineProperty(
|
|
430
|
+
N.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
431
431
|
get: N,
|
|
432
432
|
configurable: !0
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
function Ja(
|
|
436
|
+
function Ja(h, O) {
|
|
437
437
|
{
|
|
438
438
|
var N = function() {
|
|
439
|
-
Ji || (Ji = !0,
|
|
439
|
+
Ji || (Ji = !0, Z("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", O));
|
|
440
440
|
};
|
|
441
|
-
N.isReactWarning = !0, Object.defineProperty(
|
|
441
|
+
N.isReactWarning = !0, Object.defineProperty(h, "ref", {
|
|
442
442
|
get: N,
|
|
443
443
|
configurable: !0
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
var Da = function(
|
|
447
|
+
var Da = function(h, O, N, te, pe, ye, de) {
|
|
448
448
|
var Ae = {
|
|
449
449
|
// This tag allows us to uniquely identify this as a React Element
|
|
450
450
|
$$typeof: e,
|
|
451
451
|
// Built-in properties that belong on the element
|
|
452
|
-
type:
|
|
453
|
-
key:
|
|
452
|
+
type: h,
|
|
453
|
+
key: O,
|
|
454
454
|
ref: N,
|
|
455
455
|
props: de,
|
|
456
456
|
// Record the component responsible for creating this element.
|
|
@@ -473,177 +473,177 @@ function ul() {
|
|
|
473
473
|
value: pe
|
|
474
474
|
}), Object.freeze && (Object.freeze(Ae.props), Object.freeze(Ae)), Ae;
|
|
475
475
|
};
|
|
476
|
-
function Ta(
|
|
476
|
+
function Ta(h, O, N, te, pe) {
|
|
477
477
|
{
|
|
478
478
|
var ye, de = {}, Ae = null, We = null;
|
|
479
|
-
N !== void 0 && (mn(N), Ae = "" + N), Ra(
|
|
480
|
-
for (ye in
|
|
481
|
-
Je.call(
|
|
482
|
-
if (
|
|
483
|
-
var Ce =
|
|
479
|
+
N !== void 0 && (mn(N), Ae = "" + N), Ra(O) && (mn(O.key), Ae = "" + O.key), za(O) && (We = O.ref, Ya(O, pe));
|
|
480
|
+
for (ye in O)
|
|
481
|
+
Je.call(O, ye) && !ja.hasOwnProperty(ye) && (de[ye] = O[ye]);
|
|
482
|
+
if (h && h.defaultProps) {
|
|
483
|
+
var Ce = h.defaultProps;
|
|
484
484
|
for (ye in Ce)
|
|
485
485
|
de[ye] === void 0 && (de[ye] = Ce[ye]);
|
|
486
486
|
}
|
|
487
487
|
if (Ae || We) {
|
|
488
|
-
var xe = typeof
|
|
488
|
+
var xe = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
|
|
489
489
|
Ae && Na(de, xe), We && Ja(de, xe);
|
|
490
490
|
}
|
|
491
|
-
return Da(
|
|
491
|
+
return Da(h, Ae, We, pe, te, gt.current, de);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
var fr =
|
|
495
|
-
function Kt(
|
|
496
|
-
if (
|
|
497
|
-
var
|
|
494
|
+
var fr = b.ReactCurrentOwner, Di = b.ReactDebugCurrentFrame;
|
|
495
|
+
function Kt(h) {
|
|
496
|
+
if (h) {
|
|
497
|
+
var O = h._owner, N = Ee(h.type, h._source, O ? O.type : null);
|
|
498
498
|
Di.setExtraStackFrame(N);
|
|
499
499
|
} else
|
|
500
500
|
Di.setExtraStackFrame(null);
|
|
501
501
|
}
|
|
502
502
|
var pr;
|
|
503
503
|
pr = !1;
|
|
504
|
-
function hr(
|
|
505
|
-
return typeof
|
|
504
|
+
function hr(h) {
|
|
505
|
+
return typeof h == "object" && h !== null && h.$$typeof === e;
|
|
506
506
|
}
|
|
507
507
|
function Ti() {
|
|
508
508
|
{
|
|
509
509
|
if (fr.current) {
|
|
510
|
-
var
|
|
511
|
-
if (
|
|
510
|
+
var h = B(fr.current.type);
|
|
511
|
+
if (h)
|
|
512
512
|
return `
|
|
513
513
|
|
|
514
|
-
Check the render method of \`` +
|
|
514
|
+
Check the render method of \`` + h + "`.";
|
|
515
515
|
}
|
|
516
516
|
return "";
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
function Ga(
|
|
519
|
+
function Ga(h) {
|
|
520
520
|
{
|
|
521
|
-
if (
|
|
522
|
-
var
|
|
521
|
+
if (h !== void 0) {
|
|
522
|
+
var O = h.fileName.replace(/^.*[\\\/]/, ""), N = h.lineNumber;
|
|
523
523
|
return `
|
|
524
524
|
|
|
525
|
-
Check your code at ` +
|
|
525
|
+
Check your code at ` + O + ":" + N + ".";
|
|
526
526
|
}
|
|
527
527
|
return "";
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
var Gi = {};
|
|
531
|
-
function Pa(
|
|
531
|
+
function Pa(h) {
|
|
532
532
|
{
|
|
533
|
-
var
|
|
534
|
-
if (!
|
|
535
|
-
var N = typeof
|
|
536
|
-
N && (
|
|
533
|
+
var O = Ti();
|
|
534
|
+
if (!O) {
|
|
535
|
+
var N = typeof h == "string" ? h : h.displayName || h.name;
|
|
536
|
+
N && (O = `
|
|
537
537
|
|
|
538
538
|
Check the top-level render call using <` + N + ">.");
|
|
539
539
|
}
|
|
540
|
-
return
|
|
540
|
+
return O;
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
|
-
function Pi(
|
|
543
|
+
function Pi(h, O) {
|
|
544
544
|
{
|
|
545
|
-
if (!
|
|
545
|
+
if (!h._store || h._store.validated || h.key != null)
|
|
546
546
|
return;
|
|
547
|
-
|
|
548
|
-
var N = Pa(
|
|
547
|
+
h._store.validated = !0;
|
|
548
|
+
var N = Pa(O);
|
|
549
549
|
if (Gi[N])
|
|
550
550
|
return;
|
|
551
551
|
Gi[N] = !0;
|
|
552
552
|
var te = "";
|
|
553
|
-
|
|
553
|
+
h && h._owner && h._owner !== fr.current && (te = " It was passed a child from " + B(h._owner.type) + "."), Kt(h), Z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', N, te), Kt(null);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
function Hi(
|
|
556
|
+
function Hi(h, O) {
|
|
557
557
|
{
|
|
558
|
-
if (typeof
|
|
558
|
+
if (typeof h != "object")
|
|
559
559
|
return;
|
|
560
|
-
if (ge(
|
|
561
|
-
for (var N = 0; N <
|
|
562
|
-
var te =
|
|
563
|
-
hr(te) && Pi(te,
|
|
560
|
+
if (ge(h))
|
|
561
|
+
for (var N = 0; N < h.length; N++) {
|
|
562
|
+
var te = h[N];
|
|
563
|
+
hr(te) && Pi(te, O);
|
|
564
564
|
}
|
|
565
|
-
else if (hr(
|
|
566
|
-
|
|
567
|
-
else if (
|
|
568
|
-
var pe = v(
|
|
569
|
-
if (typeof pe == "function" && pe !==
|
|
570
|
-
for (var ye = pe.call(
|
|
571
|
-
hr(de.value) && Pi(de.value,
|
|
565
|
+
else if (hr(h))
|
|
566
|
+
h._store && (h._store.validated = !0);
|
|
567
|
+
else if (h) {
|
|
568
|
+
var pe = v(h);
|
|
569
|
+
if (typeof pe == "function" && pe !== h.entries)
|
|
570
|
+
for (var ye = pe.call(h), de; !(de = ye.next()).done; )
|
|
571
|
+
hr(de.value) && Pi(de.value, O);
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
function Ha(
|
|
575
|
+
function Ha(h) {
|
|
576
576
|
{
|
|
577
|
-
var
|
|
578
|
-
if (
|
|
577
|
+
var O = h.type;
|
|
578
|
+
if (O == null || typeof O == "string")
|
|
579
579
|
return;
|
|
580
580
|
var N;
|
|
581
|
-
if (typeof
|
|
582
|
-
N =
|
|
583
|
-
else if (typeof
|
|
581
|
+
if (typeof O == "function")
|
|
582
|
+
N = O.propTypes;
|
|
583
|
+
else if (typeof O == "object" && (O.$$typeof === l || // Note: Memo only checks outer props here.
|
|
584
584
|
// Inner props are checked in the reconciler.
|
|
585
|
-
|
|
586
|
-
N =
|
|
585
|
+
O.$$typeof === c))
|
|
586
|
+
N = O.propTypes;
|
|
587
587
|
else
|
|
588
588
|
return;
|
|
589
589
|
if (N) {
|
|
590
|
-
var te = B(
|
|
591
|
-
$(N,
|
|
592
|
-
} else if (
|
|
590
|
+
var te = B(O);
|
|
591
|
+
$(N, h.props, "prop", te, h);
|
|
592
|
+
} else if (O.PropTypes !== void 0 && !pr) {
|
|
593
593
|
pr = !0;
|
|
594
|
-
var pe = B(
|
|
595
|
-
|
|
594
|
+
var pe = B(O);
|
|
595
|
+
Z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", pe || "Unknown");
|
|
596
596
|
}
|
|
597
|
-
typeof
|
|
597
|
+
typeof O.getDefaultProps == "function" && !O.getDefaultProps.isReactClassApproved && Z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
|
-
function Ba(
|
|
600
|
+
function Ba(h) {
|
|
601
601
|
{
|
|
602
|
-
for (var
|
|
603
|
-
var te =
|
|
602
|
+
for (var O = Object.keys(h.props), N = 0; N < O.length; N++) {
|
|
603
|
+
var te = O[N];
|
|
604
604
|
if (te !== "children" && te !== "key") {
|
|
605
|
-
Kt(
|
|
605
|
+
Kt(h), Z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", te), Kt(null);
|
|
606
606
|
break;
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
|
-
|
|
609
|
+
h.ref !== null && (Kt(h), Z("Invalid attribute `ref` supplied to `React.Fragment`."), Kt(null));
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
612
|
var Bi = {};
|
|
613
|
-
function Vi(
|
|
613
|
+
function Vi(h, O, N, te, pe, ye) {
|
|
614
614
|
{
|
|
615
|
-
var de =
|
|
615
|
+
var de = W(h);
|
|
616
616
|
if (!de) {
|
|
617
617
|
var Ae = "";
|
|
618
|
-
(
|
|
618
|
+
(h === void 0 || typeof h == "object" && h !== null && Object.keys(h).length === 0) && (Ae += " 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
619
|
var We = Ga(pe);
|
|
620
620
|
We ? Ae += We : Ae += Ti();
|
|
621
621
|
var Ce;
|
|
622
|
-
|
|
622
|
+
h === null ? Ce = "null" : ge(h) ? Ce = "array" : h !== void 0 && h.$$typeof === e ? (Ce = "<" + (B(h.type) || "Unknown") + " />", Ae = " Did you accidentally export a JSX literal instead of a component?") : Ce = 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", Ce, Ae);
|
|
623
623
|
}
|
|
624
|
-
var xe = Ta(
|
|
624
|
+
var xe = Ta(h, O, N, pe, ye);
|
|
625
625
|
if (xe == null)
|
|
626
626
|
return xe;
|
|
627
627
|
if (de) {
|
|
628
|
-
var Ge =
|
|
628
|
+
var Ge = O.children;
|
|
629
629
|
if (Ge !== void 0)
|
|
630
630
|
if (te)
|
|
631
631
|
if (ge(Ge)) {
|
|
632
632
|
for (var Mt = 0; Mt < Ge.length; Mt++)
|
|
633
|
-
Hi(Ge[Mt],
|
|
633
|
+
Hi(Ge[Mt], h);
|
|
634
634
|
Object.freeze && Object.freeze(Ge);
|
|
635
635
|
} else
|
|
636
|
-
|
|
636
|
+
Z("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
637
637
|
else
|
|
638
|
-
Hi(Ge,
|
|
638
|
+
Hi(Ge, h);
|
|
639
639
|
}
|
|
640
|
-
if (Je.call(
|
|
641
|
-
var yt = B(
|
|
640
|
+
if (Je.call(O, "key")) {
|
|
641
|
+
var yt = B(h), je = Object.keys(O).filter(function(_a) {
|
|
642
642
|
return _a !== "key";
|
|
643
643
|
}), mr = je.length > 0 ? "{key: someKey, " + je.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
644
644
|
if (!Bi[yt + mr]) {
|
|
645
645
|
var Fa = je.length > 0 ? "{" + je.join(": ..., ") + ": ...}" : "{}";
|
|
646
|
-
|
|
646
|
+
Z(`A props object containing a "key" prop is being spread into JSX:
|
|
647
647
|
let props = %s;
|
|
648
648
|
<%s {...props} />
|
|
649
649
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -651,14 +651,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
651
651
|
<%s key={someKey} {...props} />`, mr, yt, Fa, yt), Bi[yt + mr] = !0;
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
|
-
return
|
|
654
|
+
return h === r ? Ba(xe) : Ha(xe), xe;
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
|
-
function Va(
|
|
658
|
-
return Vi(
|
|
657
|
+
function Va(h, O, N) {
|
|
658
|
+
return Vi(h, O, N, !0);
|
|
659
659
|
}
|
|
660
|
-
function Xa(
|
|
661
|
-
return Vi(
|
|
660
|
+
function Xa(h, O, N) {
|
|
661
|
+
return Vi(h, O, N, !1);
|
|
662
662
|
}
|
|
663
663
|
var Ua = Xa, Qa = Va;
|
|
664
664
|
Xt.Fragment = r, Xt.jsx = Ua, Xt.jsxs = Qa;
|
|
@@ -742,8 +742,8 @@ function fl() {
|
|
|
742
742
|
if (Qi)
|
|
743
743
|
return he;
|
|
744
744
|
Qi = 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, c = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120,
|
|
746
|
-
function
|
|
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, c = 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
747
|
if (typeof q == "object" && q !== null) {
|
|
748
748
|
var T = q.$$typeof;
|
|
749
749
|
switch (T) {
|
|
@@ -761,7 +761,7 @@ function fl() {
|
|
|
761
761
|
case a:
|
|
762
762
|
case u:
|
|
763
763
|
case g:
|
|
764
|
-
case
|
|
764
|
+
case p:
|
|
765
765
|
case o:
|
|
766
766
|
return q;
|
|
767
767
|
default:
|
|
@@ -773,36 +773,36 @@ function fl() {
|
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
|
-
function
|
|
777
|
-
return
|
|
776
|
+
function S(q) {
|
|
777
|
+
return M(q) === A;
|
|
778
778
|
}
|
|
779
|
-
return he.AsyncMode = l, he.ConcurrentMode = A, he.ContextConsumer = a, he.ContextProvider = o, he.Element = e, he.ForwardRef = u, he.Fragment = r, he.Lazy = g, he.Memo =
|
|
780
|
-
return
|
|
781
|
-
}, he.isConcurrentMode =
|
|
782
|
-
return
|
|
779
|
+
return he.AsyncMode = l, he.ConcurrentMode = A, he.ContextConsumer = a, he.ContextProvider = o, he.Element = e, he.ForwardRef = u, he.Fragment = r, he.Lazy = g, he.Memo = p, he.Portal = n, he.Profiler = s, he.StrictMode = i, he.Suspense = c, he.isAsyncMode = function(q) {
|
|
780
|
+
return S(q) || M(q) === l;
|
|
781
|
+
}, he.isConcurrentMode = S, he.isContextConsumer = function(q) {
|
|
782
|
+
return M(q) === a;
|
|
783
783
|
}, he.isContextProvider = function(q) {
|
|
784
|
-
return
|
|
784
|
+
return M(q) === o;
|
|
785
785
|
}, he.isElement = function(q) {
|
|
786
786
|
return typeof q == "object" && q !== null && q.$$typeof === e;
|
|
787
787
|
}, he.isForwardRef = function(q) {
|
|
788
|
-
return
|
|
788
|
+
return M(q) === u;
|
|
789
789
|
}, he.isFragment = function(q) {
|
|
790
|
-
return
|
|
790
|
+
return M(q) === r;
|
|
791
791
|
}, he.isLazy = function(q) {
|
|
792
|
-
return
|
|
792
|
+
return M(q) === g;
|
|
793
793
|
}, he.isMemo = function(q) {
|
|
794
|
-
return
|
|
794
|
+
return M(q) === p;
|
|
795
795
|
}, he.isPortal = function(q) {
|
|
796
|
-
return
|
|
796
|
+
return M(q) === n;
|
|
797
797
|
}, he.isProfiler = function(q) {
|
|
798
|
-
return
|
|
798
|
+
return M(q) === s;
|
|
799
799
|
}, he.isStrictMode = function(q) {
|
|
800
|
-
return
|
|
800
|
+
return M(q) === i;
|
|
801
801
|
}, he.isSuspense = function(q) {
|
|
802
|
-
return
|
|
802
|
+
return M(q) === c;
|
|
803
803
|
}, he.isValidElementType = function(q) {
|
|
804
|
-
return typeof q == "string" || typeof q == "function" || q === r || q === A || q === s || q === i || q === c || q === f || typeof q == "object" && q !== null && (q.$$typeof === g || q.$$typeof ===
|
|
805
|
-
}, he.typeOf =
|
|
804
|
+
return typeof q == "string" || typeof q == "function" || q === r || q === A || q === s || q === i || q === c || 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
|
+
}, he.typeOf = M, he;
|
|
806
806
|
}
|
|
807
807
|
var me = {};
|
|
808
808
|
/** @license React v16.13.1
|
|
@@ -816,12 +816,12 @@ var me = {};
|
|
|
816
816
|
var Fi;
|
|
817
817
|
function pl() {
|
|
818
818
|
return Fi || (Fi = 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, c = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120,
|
|
820
|
-
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, c = 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
|
+
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 === c || R === f || typeof R == "object" && R !== null && (R.$$typeof === g || R.$$typeof ===
|
|
822
|
+
R === r || R === A || R === s || R === i || R === c || 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
|
-
function
|
|
824
|
+
function S(R) {
|
|
825
825
|
if (typeof R == "object" && R !== null) {
|
|
826
826
|
var we = R.$$typeof;
|
|
827
827
|
switch (we) {
|
|
@@ -841,7 +841,7 @@ function pl() {
|
|
|
841
841
|
case a:
|
|
842
842
|
case u:
|
|
843
843
|
case g:
|
|
844
|
-
case
|
|
844
|
+
case p:
|
|
845
845
|
case o:
|
|
846
846
|
return Ee;
|
|
847
847
|
default:
|
|
@@ -853,47 +853,47 @@ function pl() {
|
|
|
853
853
|
}
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
|
-
var q = l, T = A, x = a, k = o, Y = e,
|
|
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 = c, K = !1;
|
|
857
857
|
function U(R) {
|
|
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) ||
|
|
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
|
}
|
|
860
860
|
function w(R) {
|
|
861
|
-
return
|
|
861
|
+
return S(R) === A;
|
|
862
862
|
}
|
|
863
|
-
function
|
|
864
|
-
return
|
|
863
|
+
function I(R) {
|
|
864
|
+
return S(R) === a;
|
|
865
865
|
}
|
|
866
866
|
function X(R) {
|
|
867
|
-
return
|
|
867
|
+
return S(R) === o;
|
|
868
868
|
}
|
|
869
869
|
function H(R) {
|
|
870
870
|
return typeof R == "object" && R !== null && R.$$typeof === e;
|
|
871
871
|
}
|
|
872
872
|
function J(R) {
|
|
873
|
-
return
|
|
873
|
+
return S(R) === u;
|
|
874
874
|
}
|
|
875
875
|
function P(R) {
|
|
876
|
-
return
|
|
876
|
+
return S(R) === r;
|
|
877
877
|
}
|
|
878
878
|
function Q(R) {
|
|
879
|
-
return
|
|
879
|
+
return S(R) === g;
|
|
880
880
|
}
|
|
881
881
|
function F(R) {
|
|
882
|
-
return
|
|
882
|
+
return S(R) === p;
|
|
883
883
|
}
|
|
884
884
|
function re(R) {
|
|
885
|
-
return
|
|
885
|
+
return S(R) === n;
|
|
886
886
|
}
|
|
887
887
|
function le(R) {
|
|
888
|
-
return
|
|
888
|
+
return S(R) === s;
|
|
889
889
|
}
|
|
890
890
|
function ee(R) {
|
|
891
|
-
return
|
|
891
|
+
return S(R) === i;
|
|
892
892
|
}
|
|
893
|
-
function
|
|
894
|
-
return
|
|
893
|
+
function be(R) {
|
|
894
|
+
return S(R) === c;
|
|
895
895
|
}
|
|
896
|
-
me.AsyncMode = q, me.ConcurrentMode = T, me.ContextConsumer = x, me.ContextProvider = k, me.Element = Y, me.ForwardRef =
|
|
896
|
+
me.AsyncMode = q, me.ConcurrentMode = T, me.ContextConsumer = x, me.ContextProvider = k, me.Element = Y, me.ForwardRef = W, me.Fragment = z, me.Lazy = j, me.Memo = B, me.Portal = E, me.Profiler = L, me.StrictMode = G, me.Suspense = y, me.isAsyncMode = U, me.isConcurrentMode = w, me.isContextConsumer = I, me.isContextProvider = X, me.isElement = H, me.isForwardRef = J, me.isFragment = P, me.isLazy = Q, me.isMemo = F, me.isPortal = re, me.isProfiler = le, me.isStrictMode = ee, me.isSuspense = be, me.isValidElementType = M, me.typeOf = S;
|
|
897
897
|
}()), me;
|
|
898
898
|
}
|
|
899
899
|
var _i;
|
|
@@ -1002,9 +1002,9 @@ function ml() {
|
|
|
1002
1002
|
(l || "React class") + ": type specification of " + a + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof c + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
1003
1003
|
), c instanceof Error && !(c.message in n)) {
|
|
1004
1004
|
n[c.message] = !0;
|
|
1005
|
-
var
|
|
1005
|
+
var p = A ? A() : "";
|
|
1006
1006
|
t(
|
|
1007
|
-
"Failed " + a + " type: " + c.message + (
|
|
1007
|
+
"Failed " + a + " type: " + c.message + (p ?? "")
|
|
1008
1008
|
);
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
@@ -1035,43 +1035,43 @@ function gl() {
|
|
|
1035
1035
|
return br = function(a, l) {
|
|
1036
1036
|
var A = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
1037
1037
|
function c(w) {
|
|
1038
|
-
var
|
|
1039
|
-
if (typeof
|
|
1040
|
-
return
|
|
1041
|
-
}
|
|
1042
|
-
var f = "<<anonymous>>",
|
|
1043
|
-
array:
|
|
1044
|
-
bigint:
|
|
1045
|
-
bool:
|
|
1046
|
-
func:
|
|
1047
|
-
number:
|
|
1048
|
-
object:
|
|
1049
|
-
string:
|
|
1050
|
-
symbol:
|
|
1051
|
-
any:
|
|
1052
|
-
arrayOf:
|
|
1053
|
-
element:
|
|
1038
|
+
var I = w && (A && w[A] || w[u]);
|
|
1039
|
+
if (typeof I == "function")
|
|
1040
|
+
return I;
|
|
1041
|
+
}
|
|
1042
|
+
var f = "<<anonymous>>", p = {
|
|
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
|
+
any: Z(),
|
|
1052
|
+
arrayOf: M,
|
|
1053
|
+
element: S(),
|
|
1054
1054
|
elementType: q(),
|
|
1055
1055
|
instanceOf: T,
|
|
1056
|
-
node:
|
|
1056
|
+
node: W(),
|
|
1057
1057
|
objectOf: k,
|
|
1058
1058
|
oneOf: x,
|
|
1059
1059
|
oneOfType: Y,
|
|
1060
|
-
shape:
|
|
1060
|
+
shape: j,
|
|
1061
1061
|
exact: B
|
|
1062
1062
|
};
|
|
1063
|
-
function g(w,
|
|
1064
|
-
return w ===
|
|
1063
|
+
function g(w, I) {
|
|
1064
|
+
return w === I ? w !== 0 || 1 / w === 1 / I : w !== w && I !== I;
|
|
1065
1065
|
}
|
|
1066
|
-
function m(w,
|
|
1067
|
-
this.message = w, this.data =
|
|
1066
|
+
function m(w, I) {
|
|
1067
|
+
this.message = w, this.data = I && typeof I == "object" ? I : {}, this.stack = "";
|
|
1068
1068
|
}
|
|
1069
1069
|
m.prototype = Error.prototype;
|
|
1070
1070
|
function v(w) {
|
|
1071
1071
|
if (process.env.NODE_ENV !== "production")
|
|
1072
|
-
var
|
|
1073
|
-
function H(P, Q, F, re, le, ee,
|
|
1074
|
-
if (re = re || f, ee = ee || F,
|
|
1072
|
+
var I = {}, X = 0;
|
|
1073
|
+
function H(P, Q, F, re, le, ee, be) {
|
|
1074
|
+
if (re = re || f, ee = ee || F, be !== n) {
|
|
1075
1075
|
if (l) {
|
|
1076
1076
|
var R = new Error(
|
|
1077
1077
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -1079,10 +1079,10 @@ function gl() {
|
|
|
1079
1079
|
throw R.name = "Invariant Violation", R;
|
|
1080
1080
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1081
1081
|
var we = re + ":" + F;
|
|
1082
|
-
!
|
|
1082
|
+
!I[we] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1083
1083
|
X < 3 && (s(
|
|
1084
1084
|
"You are manually calling a React.PropTypes validation function for the `" + ee + "` prop on `" + re + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
1085
|
-
),
|
|
1085
|
+
), I[we] = !0, X++);
|
|
1086
1086
|
}
|
|
1087
1087
|
}
|
|
1088
1088
|
return Q[F] == null ? P ? Q[F] === null ? new m("The " + le + " `" + ee + "` is marked as required " + ("in `" + re + "`, but its value is `null`.")) : new m("The " + le + " `" + ee + "` is marked as required in " + ("`" + re + "`, but its value is `undefined`.")) : null : w(Q, F, re, le, ee);
|
|
@@ -1090,8 +1090,8 @@ function gl() {
|
|
|
1090
1090
|
var J = H.bind(null, !1);
|
|
1091
1091
|
return J.isRequired = H.bind(null, !0), J;
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1094
|
-
function
|
|
1093
|
+
function b(w) {
|
|
1094
|
+
function I(X, H, J, P, Q, F) {
|
|
1095
1095
|
var re = X[H], le = G(re);
|
|
1096
1096
|
if (le !== w) {
|
|
1097
1097
|
var ee = y(re);
|
|
@@ -1102,13 +1102,13 @@ function gl() {
|
|
|
1102
1102
|
}
|
|
1103
1103
|
return null;
|
|
1104
1104
|
}
|
|
1105
|
-
return v(
|
|
1105
|
+
return v(I);
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1107
|
+
function Z() {
|
|
1108
1108
|
return v(o);
|
|
1109
1109
|
}
|
|
1110
|
-
function
|
|
1111
|
-
function
|
|
1110
|
+
function M(w) {
|
|
1111
|
+
function I(X, H, J, P, Q) {
|
|
1112
1112
|
if (typeof w != "function")
|
|
1113
1113
|
return new m("Property `" + Q + "` of component `" + J + "` has invalid PropType notation inside arrayOf.");
|
|
1114
1114
|
var F = X[H];
|
|
@@ -1123,11 +1123,11 @@ function gl() {
|
|
|
1123
1123
|
}
|
|
1124
1124
|
return null;
|
|
1125
1125
|
}
|
|
1126
|
-
return v(
|
|
1126
|
+
return v(I);
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1129
|
-
function w(
|
|
1130
|
-
var Q =
|
|
1128
|
+
function S() {
|
|
1129
|
+
function w(I, X, H, J, P) {
|
|
1130
|
+
var Q = I[X];
|
|
1131
1131
|
if (!a(Q)) {
|
|
1132
1132
|
var F = G(Q);
|
|
1133
1133
|
return new m("Invalid " + J + " `" + P + "` of type " + ("`" + F + "` supplied to `" + H + "`, expected a single ReactElement."));
|
|
@@ -1137,8 +1137,8 @@ function gl() {
|
|
|
1137
1137
|
return v(w);
|
|
1138
1138
|
}
|
|
1139
1139
|
function q() {
|
|
1140
|
-
function w(
|
|
1141
|
-
var Q =
|
|
1140
|
+
function w(I, X, H, J, P) {
|
|
1141
|
+
var Q = I[X];
|
|
1142
1142
|
if (!t.isValidElementType(Q)) {
|
|
1143
1143
|
var F = G(Q);
|
|
1144
1144
|
return new m("Invalid " + J + " `" + P + "` of type " + ("`" + F + "` supplied to `" + H + "`, expected a single ReactElement type."));
|
|
@@ -1148,34 +1148,34 @@ function gl() {
|
|
|
1148
1148
|
return v(w);
|
|
1149
1149
|
}
|
|
1150
1150
|
function T(w) {
|
|
1151
|
-
function
|
|
1151
|
+
function I(X, H, J, P, Q) {
|
|
1152
1152
|
if (!(X[H] instanceof w)) {
|
|
1153
1153
|
var F = w.name || f, re = U(X[H]);
|
|
1154
1154
|
return new m("Invalid " + P + " `" + Q + "` of type " + ("`" + re + "` supplied to `" + J + "`, expected ") + ("instance of `" + F + "`."));
|
|
1155
1155
|
}
|
|
1156
1156
|
return null;
|
|
1157
1157
|
}
|
|
1158
|
-
return v(
|
|
1158
|
+
return v(I);
|
|
1159
1159
|
}
|
|
1160
1160
|
function x(w) {
|
|
1161
1161
|
if (!Array.isArray(w))
|
|
1162
1162
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
|
|
1163
1163
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1164
1164
|
) : s("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
1165
|
-
function
|
|
1165
|
+
function I(X, H, J, P, Q) {
|
|
1166
1166
|
for (var F = X[H], re = 0; re < w.length; re++)
|
|
1167
1167
|
if (g(F, w[re]))
|
|
1168
1168
|
return null;
|
|
1169
|
-
var le = JSON.stringify(w, function(
|
|
1169
|
+
var le = JSON.stringify(w, function(be, R) {
|
|
1170
1170
|
var we = y(R);
|
|
1171
1171
|
return we === "symbol" ? String(R) : R;
|
|
1172
1172
|
});
|
|
1173
1173
|
return new m("Invalid " + P + " `" + Q + "` of value `" + String(F) + "` " + ("supplied to `" + J + "`, expected one of " + le + "."));
|
|
1174
1174
|
}
|
|
1175
|
-
return v(
|
|
1175
|
+
return v(I);
|
|
1176
1176
|
}
|
|
1177
1177
|
function k(w) {
|
|
1178
|
-
function
|
|
1178
|
+
function I(X, H, J, P, Q) {
|
|
1179
1179
|
if (typeof w != "function")
|
|
1180
1180
|
return new m("Property `" + Q + "` of component `" + J + "` has invalid PropType notation inside objectOf.");
|
|
1181
1181
|
var F = X[H], re = G(F);
|
|
@@ -1189,21 +1189,21 @@ function gl() {
|
|
|
1189
1189
|
}
|
|
1190
1190
|
return null;
|
|
1191
1191
|
}
|
|
1192
|
-
return v(
|
|
1192
|
+
return v(I);
|
|
1193
1193
|
}
|
|
1194
1194
|
function Y(w) {
|
|
1195
1195
|
if (!Array.isArray(w))
|
|
1196
1196
|
return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), o;
|
|
1197
|
-
for (var
|
|
1198
|
-
var X = w[
|
|
1197
|
+
for (var I = 0; I < w.length; I++) {
|
|
1198
|
+
var X = w[I];
|
|
1199
1199
|
if (typeof X != "function")
|
|
1200
1200
|
return s(
|
|
1201
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + K(X) + " at index " +
|
|
1201
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + K(X) + " at index " + I + "."
|
|
1202
1202
|
), o;
|
|
1203
1203
|
}
|
|
1204
1204
|
function H(J, P, Q, F, re) {
|
|
1205
1205
|
for (var le = [], ee = 0; ee < w.length; ee++) {
|
|
1206
|
-
var
|
|
1206
|
+
var be = w[ee], R = be(J, P, Q, F, re, n);
|
|
1207
1207
|
if (R == null)
|
|
1208
1208
|
return null;
|
|
1209
1209
|
R.data && r(R.data, "expectedType") && le.push(R.data.expectedType);
|
|
@@ -1213,19 +1213,19 @@ function gl() {
|
|
|
1213
1213
|
}
|
|
1214
1214
|
return v(H);
|
|
1215
1215
|
}
|
|
1216
|
-
function
|
|
1217
|
-
function w(
|
|
1218
|
-
return
|
|
1216
|
+
function W() {
|
|
1217
|
+
function w(I, X, H, J, P) {
|
|
1218
|
+
return E(I[X]) ? null : new m("Invalid " + J + " `" + P + "` supplied to " + ("`" + H + "`, expected a ReactNode."));
|
|
1219
1219
|
}
|
|
1220
1220
|
return v(w);
|
|
1221
1221
|
}
|
|
1222
|
-
function z(w,
|
|
1222
|
+
function z(w, I, X, H, J) {
|
|
1223
1223
|
return new m(
|
|
1224
|
-
(w || "React class") + ": " +
|
|
1224
|
+
(w || "React class") + ": " + I + " type `" + X + "." + H + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + J + "`."
|
|
1225
1225
|
);
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1228
|
-
function
|
|
1227
|
+
function j(w) {
|
|
1228
|
+
function I(X, H, J, P, Q) {
|
|
1229
1229
|
var F = X[H], re = G(F);
|
|
1230
1230
|
if (re !== "object")
|
|
1231
1231
|
return new m("Invalid " + P + " `" + Q + "` of type `" + re + "` " + ("supplied to `" + J + "`, expected `object`."));
|
|
@@ -1233,38 +1233,38 @@ function gl() {
|
|
|
1233
1233
|
var ee = w[le];
|
|
1234
1234
|
if (typeof ee != "function")
|
|
1235
1235
|
return z(J, P, Q, le, y(ee));
|
|
1236
|
-
var
|
|
1237
|
-
if (
|
|
1238
|
-
return
|
|
1236
|
+
var be = ee(F, le, J, P, Q + "." + le, n);
|
|
1237
|
+
if (be)
|
|
1238
|
+
return be;
|
|
1239
1239
|
}
|
|
1240
1240
|
return null;
|
|
1241
1241
|
}
|
|
1242
|
-
return v(
|
|
1242
|
+
return v(I);
|
|
1243
1243
|
}
|
|
1244
1244
|
function B(w) {
|
|
1245
|
-
function
|
|
1245
|
+
function I(X, H, J, P, Q) {
|
|
1246
1246
|
var F = X[H], re = G(F);
|
|
1247
1247
|
if (re !== "object")
|
|
1248
1248
|
return new m("Invalid " + P + " `" + Q + "` of type `" + re + "` " + ("supplied to `" + J + "`, expected `object`."));
|
|
1249
1249
|
var le = e({}, X[H], w);
|
|
1250
1250
|
for (var ee in le) {
|
|
1251
|
-
var
|
|
1252
|
-
if (r(w, ee) && typeof
|
|
1253
|
-
return z(J, P, Q, ee, y(
|
|
1254
|
-
if (!
|
|
1251
|
+
var be = w[ee];
|
|
1252
|
+
if (r(w, ee) && typeof be != "function")
|
|
1253
|
+
return z(J, P, Q, ee, y(be));
|
|
1254
|
+
if (!be)
|
|
1255
1255
|
return new m(
|
|
1256
1256
|
"Invalid " + P + " `" + Q + "` key `" + ee + "` supplied to `" + J + "`.\nBad object: " + JSON.stringify(X[H], null, " ") + `
|
|
1257
1257
|
Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
1258
1258
|
);
|
|
1259
|
-
var R =
|
|
1259
|
+
var R = be(F, ee, J, P, Q + "." + ee, n);
|
|
1260
1260
|
if (R)
|
|
1261
1261
|
return R;
|
|
1262
1262
|
}
|
|
1263
1263
|
return null;
|
|
1264
1264
|
}
|
|
1265
|
-
return v(
|
|
1265
|
+
return v(I);
|
|
1266
1266
|
}
|
|
1267
|
-
function
|
|
1267
|
+
function E(w) {
|
|
1268
1268
|
switch (typeof w) {
|
|
1269
1269
|
case "number":
|
|
1270
1270
|
case "string":
|
|
@@ -1274,20 +1274,20 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
1274
1274
|
return !w;
|
|
1275
1275
|
case "object":
|
|
1276
1276
|
if (Array.isArray(w))
|
|
1277
|
-
return w.every(
|
|
1277
|
+
return w.every(E);
|
|
1278
1278
|
if (w === null || a(w))
|
|
1279
1279
|
return !0;
|
|
1280
|
-
var
|
|
1281
|
-
if (
|
|
1282
|
-
var X =
|
|
1283
|
-
if (
|
|
1280
|
+
var I = c(w);
|
|
1281
|
+
if (I) {
|
|
1282
|
+
var X = I.call(w), H;
|
|
1283
|
+
if (I !== w.entries) {
|
|
1284
1284
|
for (; !(H = X.next()).done; )
|
|
1285
|
-
if (!
|
|
1285
|
+
if (!E(H.value))
|
|
1286
1286
|
return !1;
|
|
1287
1287
|
} else
|
|
1288
1288
|
for (; !(H = X.next()).done; ) {
|
|
1289
1289
|
var J = H.value;
|
|
1290
|
-
if (J && !
|
|
1290
|
+
if (J && !E(J[1]))
|
|
1291
1291
|
return !1;
|
|
1292
1292
|
}
|
|
1293
1293
|
} else
|
|
@@ -1297,43 +1297,43 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
1297
1297
|
return !1;
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
1300
|
-
function L(w,
|
|
1301
|
-
return w === "symbol" ? !0 :
|
|
1300
|
+
function L(w, I) {
|
|
1301
|
+
return w === "symbol" ? !0 : I ? I["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && I instanceof Symbol : !1;
|
|
1302
1302
|
}
|
|
1303
1303
|
function G(w) {
|
|
1304
|
-
var
|
|
1305
|
-
return Array.isArray(w) ? "array" : w instanceof RegExp ? "object" : L(
|
|
1304
|
+
var I = typeof w;
|
|
1305
|
+
return Array.isArray(w) ? "array" : w instanceof RegExp ? "object" : L(I, w) ? "symbol" : I;
|
|
1306
1306
|
}
|
|
1307
1307
|
function y(w) {
|
|
1308
1308
|
if (typeof w > "u" || w === null)
|
|
1309
1309
|
return "" + w;
|
|
1310
|
-
var
|
|
1311
|
-
if (
|
|
1310
|
+
var I = G(w);
|
|
1311
|
+
if (I === "object") {
|
|
1312
1312
|
if (w instanceof Date)
|
|
1313
1313
|
return "date";
|
|
1314
1314
|
if (w instanceof RegExp)
|
|
1315
1315
|
return "regexp";
|
|
1316
1316
|
}
|
|
1317
|
-
return
|
|
1317
|
+
return I;
|
|
1318
1318
|
}
|
|
1319
1319
|
function K(w) {
|
|
1320
|
-
var
|
|
1321
|
-
switch (
|
|
1320
|
+
var I = y(w);
|
|
1321
|
+
switch (I) {
|
|
1322
1322
|
case "array":
|
|
1323
1323
|
case "object":
|
|
1324
|
-
return "an " +
|
|
1324
|
+
return "an " + I;
|
|
1325
1325
|
case "boolean":
|
|
1326
1326
|
case "date":
|
|
1327
1327
|
case "regexp":
|
|
1328
|
-
return "a " +
|
|
1328
|
+
return "a " + I;
|
|
1329
1329
|
default:
|
|
1330
|
-
return
|
|
1330
|
+
return I;
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
1333
|
function U(w) {
|
|
1334
1334
|
return !w.constructor || !w.constructor.name ? f : w.constructor.name;
|
|
1335
1335
|
}
|
|
1336
|
-
return
|
|
1336
|
+
return p.checkPropTypes = i, p.resetWarningCache = i.resetWarningCache, p.PropTypes = p, p;
|
|
1337
1337
|
}, br;
|
|
1338
1338
|
}
|
|
1339
1339
|
var Cr, is;
|
|
@@ -2035,21 +2035,21 @@ ot.createBytes = function(t, e) {
|
|
|
2035
2035
|
for (var u = 0; u < s[a].length; u++)
|
|
2036
2036
|
s[a][u] = 255 & t.buffer[u + n];
|
|
2037
2037
|
n += l;
|
|
2038
|
-
var c = mt.getErrorCorrectPolynomial(A), f = new El(s[a], c.getLength() - 1),
|
|
2038
|
+
var c = mt.getErrorCorrectPolynomial(A), f = new El(s[a], c.getLength() - 1), p = f.mod(c);
|
|
2039
2039
|
o[a] = new Array(c.getLength() - 1);
|
|
2040
2040
|
for (var u = 0; u < o[a].length; u++) {
|
|
2041
|
-
var g = u +
|
|
2042
|
-
o[a][u] = g >= 0 ?
|
|
2041
|
+
var g = u + p.getLength() - o[a].length;
|
|
2042
|
+
o[a][u] = g >= 0 ? p.get(g) : 0;
|
|
2043
2043
|
}
|
|
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 = ot, gi = {};
|
|
@@ -2129,23 +2129,23 @@ var Pl = {
|
|
|
2129
2129
|
}, $n = (0, qo.forwardRef)(function(t, e) {
|
|
2130
2130
|
var n = t.bgColor, r = n === void 0 ? "#FFFFFF" : n, i = t.fgColor, s = i === void 0 ? "#000000" : i, o = t.level, a = o === void 0 ? "L" : o, l = t.size, A = l === void 0 ? 256 : l, u = t.value, c = Gl(t, ["bgColor", "fgColor", "level", "size", "value"]), f = new Nl.default(-1, Rl.default[a]);
|
|
2131
2131
|
f.addData(u), f.make();
|
|
2132
|
-
var
|
|
2132
|
+
var p = f.modules;
|
|
2133
2133
|
return Jl.default.createElement(Tl.default, Wl({}, c, {
|
|
2134
2134
|
bgColor: r,
|
|
2135
|
-
bgD:
|
|
2136
|
-
return g.map(function(v,
|
|
2137
|
-
return v ? "" : "M " +
|
|
2135
|
+
bgD: p.map(function(g, 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
|
-
fgD:
|
|
2142
|
-
return g.map(function(v,
|
|
2143
|
-
return v ? "M " +
|
|
2141
|
+
fgD: p.map(function(g, 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,
|
|
2147
2147
|
size: A,
|
|
2148
|
-
viewBoxSize:
|
|
2148
|
+
viewBoxSize: p.length
|
|
2149
2149
|
}));
|
|
2150
2150
|
});
|
|
2151
2151
|
Fn.QRCode = $n;
|
|
@@ -2531,15 +2531,15 @@ class Dn extends er {
|
|
|
2531
2531
|
} = this.extractFromKey(e[e.length - 1], n), l = a[a.length - 1], A = n.lng || this.language, u = n.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
2532
2532
|
if (A && A.toLowerCase() === "cimode") {
|
|
2533
2533
|
if (u) {
|
|
2534
|
-
const
|
|
2534
|
+
const S = n.nsSeparator || this.options.nsSeparator;
|
|
2535
2535
|
return i ? {
|
|
2536
|
-
res: `${l}${
|
|
2536
|
+
res: `${l}${S}${o}`,
|
|
2537
2537
|
usedKey: o,
|
|
2538
2538
|
exactUsedKey: o,
|
|
2539
2539
|
usedLng: A,
|
|
2540
2540
|
usedNS: l,
|
|
2541
2541
|
usedParams: this.getUsedParamsDetails(n)
|
|
2542
|
-
} : `${l}${
|
|
2542
|
+
} : `${l}${S}${o}`;
|
|
2543
2543
|
}
|
|
2544
2544
|
return i ? {
|
|
2545
2545
|
res: o,
|
|
@@ -2552,18 +2552,18 @@ class Dn extends er {
|
|
|
2552
2552
|
}
|
|
2553
2553
|
const c = this.resolve(e, n);
|
|
2554
2554
|
let f = c && c.res;
|
|
2555
|
-
const
|
|
2556
|
-
if (
|
|
2555
|
+
const p = c && c.usedKey || o, g = c && c.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 = !ne(f) && typeof f != "boolean" && typeof f != "number";
|
|
2556
|
+
if (Z && f && M && v.indexOf(m) < 0 && !(ne(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
|
-
const
|
|
2559
|
+
const S = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, f, {
|
|
2560
2560
|
...n,
|
|
2561
2561
|
ns: a
|
|
2562
2562
|
}) : `key '${o} (${this.language})' returned an object instead of string.`;
|
|
2563
|
-
return i ? (c.res =
|
|
2563
|
+
return i ? (c.res = S, c.usedParams = this.getUsedParamsDetails(n), c) : S;
|
|
2564
2564
|
}
|
|
2565
2565
|
if (s) {
|
|
2566
|
-
const
|
|
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}`;
|
|
@@ -2575,17 +2575,17 @@ class Dn extends er {
|
|
|
2575
2575
|
}
|
|
2576
2576
|
f = q;
|
|
2577
2577
|
}
|
|
2578
|
-
} else if (
|
|
2579
|
-
f = f.join(
|
|
2578
|
+
} else if (Z && ne(b) && Array.isArray(f))
|
|
2579
|
+
f = f.join(b), f && (f = this.extendTranslation(f, e, n, r));
|
|
2580
2580
|
else {
|
|
2581
|
-
let
|
|
2581
|
+
let S = !1, q = !1;
|
|
2582
2582
|
const T = n.count !== void 0 && !ne(n.count), x = Dn.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
|
-
}) : "",
|
|
2585
|
-
!this.isValidLookup(f) && x && (
|
|
2586
|
-
const B = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && q ? void 0 : f,
|
|
2587
|
-
if (q ||
|
|
2588
|
-
if (this.logger.log(
|
|
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) || (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
|
+
if (this.logger.log(E ? "updateKey" : "missingKey", A, l, o, E ? z : f), s) {
|
|
2589
2589
|
const K = this.resolve(o, {
|
|
2590
2590
|
...n,
|
|
2591
2591
|
keySeparator: !1
|
|
@@ -2600,17 +2600,17 @@ class Dn extends er {
|
|
|
2600
2600
|
else
|
|
2601
2601
|
this.options.saveMissingTo === "all" ? L = this.languageUtils.toResolveHierarchy(n.lng || this.language) : L.push(n.lng || this.language);
|
|
2602
2602
|
const y = (K, U, w) => {
|
|
2603
|
-
const
|
|
2604
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(K, l, U,
|
|
2603
|
+
const I = x && w !== f ? w : B;
|
|
2604
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(K, l, U, I, E, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(K, l, U, I, E, n), this.emit("missingKey", K, l, U, f);
|
|
2605
2605
|
};
|
|
2606
2606
|
this.options.saveMissing && (this.options.saveMissingPlurals && T ? L.forEach((K) => {
|
|
2607
2607
|
const U = this.pluralResolver.getSuffixes(K, n);
|
|
2608
|
-
|
|
2608
|
+
W && n[`defaultValue${this.options.pluralSeparator}zero`] && U.indexOf(`${this.options.pluralSeparator}zero`) < 0 && U.push(`${this.options.pluralSeparator}zero`), U.forEach((w) => {
|
|
2609
2609
|
y([K], o + w, n[`defaultValue${w}`] || z);
|
|
2610
2610
|
});
|
|
2611
2611
|
}) : y(L, o, z));
|
|
2612
2612
|
}
|
|
2613
|
-
f = this.extendTranslation(f, e, n, c, r), q && f === o && this.options.appendNamespaceToMissingKey && (f = `${l}:${o}`), (q ||
|
|
2613
|
+
f = this.extendTranslation(f, e, n, c, 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 ? (c.res = f, c.usedParams = this.getUsedParamsDetails(n), c) : f;
|
|
2616
2616
|
}
|
|
@@ -2642,13 +2642,13 @@ class Dn extends er {
|
|
|
2642
2642
|
...this.options.interpolation.defaultVariables,
|
|
2643
2643
|
...c
|
|
2644
2644
|
}), e = this.interpolator.interpolate(e, c, r.lng || this.language || i.usedLng, r), A) {
|
|
2645
|
-
const f = e.match(this.interpolator.nestingRegexp),
|
|
2646
|
-
u <
|
|
2645
|
+
const f = e.match(this.interpolator.nestingRegexp), p = f && f.length;
|
|
2646
|
+
u < p && (r.nest = !1);
|
|
2647
2647
|
}
|
|
2648
2648
|
!r.lng && this.options.compatibilityAPI !== "v1" && i && i.res && (r.lng = this.language || i.usedLng), r.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
|
2649
|
-
for (var f = arguments.length,
|
|
2650
|
-
|
|
2651
|
-
return s && s[0] ===
|
|
2649
|
+
for (var f = arguments.length, p = new Array(f), g = 0; g < f; g++)
|
|
2650
|
+
p[g] = arguments[g];
|
|
2651
|
+
return s && s[0] === p[0] && !r.context ? (o.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${n[0]}`), null) : o.translate(...p, n);
|
|
2652
2652
|
}, r)), r.interpolation && this.interpolator.reset();
|
|
2653
2653
|
}
|
|
2654
2654
|
const a = r.postProcess || this.options.postProcess, l = ne(a) ? [a] : a;
|
|
@@ -2669,27 +2669,27 @@ class Dn extends er {
|
|
|
2669
2669
|
i = u;
|
|
2670
2670
|
let c = A.namespaces;
|
|
2671
2671
|
this.options.fallbackNS && (c = c.concat(this.options.fallbackNS));
|
|
2672
|
-
const f = n.count !== void 0 && !ne(n.count),
|
|
2672
|
+
const f = n.count !== void 0 && !ne(n.count), p = f && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), g = n.context !== void 0 && (ne(n.context) || typeof n.context == "number") && n.context !== "", m = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng);
|
|
2673
2673
|
c.forEach((v) => {
|
|
2674
|
-
this.isValidLookup(r) || (a = v, !cs[`${m[0]}-${v}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(a) && (cs[`${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, !cs[`${m[0]}-${v}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(a) && (cs[`${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 =
|
|
2678
|
-
const
|
|
2677
|
+
o = b;
|
|
2678
|
+
const Z = [u];
|
|
2679
2679
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
2680
|
-
this.i18nFormat.addLookupKeys(
|
|
2680
|
+
this.i18nFormat.addLookupKeys(Z, u, b, v, n);
|
|
2681
2681
|
else {
|
|
2682
|
-
let
|
|
2683
|
-
f && (
|
|
2682
|
+
let S;
|
|
2683
|
+
f && (S = this.pluralResolver.getSuffix(b, n.count, n));
|
|
2684
2684
|
const q = `${this.options.pluralSeparator}zero`, T = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2685
|
-
if (f && (
|
|
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
|
-
|
|
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
|
-
let
|
|
2691
|
-
for (;
|
|
2692
|
-
this.isValidLookup(r) || (s =
|
|
2690
|
+
let M;
|
|
2691
|
+
for (; M = Z.pop(); )
|
|
2692
|
+
this.isValidLookup(r) || (s = M, r = this.getResource(b, v, M, n));
|
|
2693
2693
|
}));
|
|
2694
2694
|
});
|
|
2695
2695
|
}), {
|
|
@@ -3033,14 +3033,14 @@ class uu {
|
|
|
3033
3033
|
unescapeSuffix: u,
|
|
3034
3034
|
unescapePrefix: c,
|
|
3035
3035
|
nestingPrefix: f,
|
|
3036
|
-
nestingPrefixEscaped:
|
|
3036
|
+
nestingPrefixEscaped: p,
|
|
3037
3037
|
nestingSuffix: g,
|
|
3038
3038
|
nestingSuffixEscaped: m,
|
|
3039
3039
|
nestingOptionsSeparator: v,
|
|
3040
|
-
maxReplaces:
|
|
3041
|
-
alwaysFormat:
|
|
3040
|
+
maxReplaces: b,
|
|
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 ? Wt(s) : o || "{{", this.suffix = a ? Wt(a) : l || "}}", this.formatSeparator = A || ",", this.unescapePrefix = u ? "" : c || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = f ? Wt(f) :
|
|
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 ? Wt(s) : o || "{{", this.suffix = a ? Wt(a) : l || "}}", this.formatSeparator = A || ",", this.unescapePrefix = u ? "" : c || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = f ? Wt(f) : p || Wt("$t("), this.nestingSuffix = g ? Wt(g) : m || Wt(")"), 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);
|
|
@@ -3051,16 +3051,16 @@ class uu {
|
|
|
3051
3051
|
}
|
|
3052
3052
|
interpolate(e, n, r, i) {
|
|
3053
3053
|
let s, o, a;
|
|
3054
|
-
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, A = (
|
|
3055
|
-
if (
|
|
3056
|
-
const
|
|
3057
|
-
return this.alwaysFormat ? this.format(
|
|
3054
|
+
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, A = (p) => {
|
|
3055
|
+
if (p.indexOf(this.formatSeparator) < 0) {
|
|
3056
|
+
const b = ps(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
|
-
interpolationkey:
|
|
3061
|
-
}) :
|
|
3060
|
+
interpolationkey: p
|
|
3061
|
+
}) : b;
|
|
3062
3062
|
}
|
|
3063
|
-
const g =
|
|
3063
|
+
const g = p.split(this.formatSeparator), m = g.shift().trim(), v = g.join(this.formatSeparator).trim();
|
|
3064
3064
|
return this.format(ps(n, l, m, this.options.keySeparator, this.options.ignoreJSONStructure), v, r, {
|
|
3065
3065
|
...i,
|
|
3066
3066
|
...n,
|
|
@@ -3071,12 +3071,12 @@ class uu {
|
|
|
3071
3071
|
const u = i && i.missingInterpolationHandler || this.options.missingInterpolationHandler, c = i && i.interpolation && i.interpolation.skipOnVariables !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
3072
3072
|
return [{
|
|
3073
3073
|
regex: this.regexpUnescape,
|
|
3074
|
-
safeValue: (
|
|
3074
|
+
safeValue: (p) => xr(p)
|
|
3075
3075
|
}, {
|
|
3076
3076
|
regex: this.regexp,
|
|
3077
|
-
safeValue: (
|
|
3078
|
-
}].forEach((
|
|
3079
|
-
for (a = 0; s =
|
|
3077
|
+
safeValue: (p) => this.escapeValue ? xr(this.escape(p)) : xr(p)
|
|
3078
|
+
}].forEach((p) => {
|
|
3079
|
+
for (a = 0; s = p.regex.exec(e); ) {
|
|
3080
3080
|
const g = s[1].trim();
|
|
3081
3081
|
if (o = A(g), o === void 0)
|
|
3082
3082
|
if (typeof u == "function") {
|
|
@@ -3091,8 +3091,8 @@ class uu {
|
|
|
3091
3091
|
this.logger.warn(`missed to pass in variable ${g} for interpolating ${e}`), o = "";
|
|
3092
3092
|
else
|
|
3093
3093
|
!ne(o) && !this.useRawValueToEscape && (o = os(o));
|
|
3094
|
-
const m =
|
|
3095
|
-
if (e = e.replace(s[0], m), c ? (
|
|
3094
|
+
const m = p.safeValue(o);
|
|
3095
|
+
if (e = e.replace(s[0], m), c ? (p.regex.lastIndex += o.length, p.regex.lastIndex -= s[0].length) : p.regex.lastIndex = 0, a++, a >= this.maxReplaces)
|
|
3096
3096
|
break;
|
|
3097
3097
|
}
|
|
3098
3098
|
}), e;
|
|
@@ -3106,8 +3106,8 @@ class uu {
|
|
|
3106
3106
|
const c = l.split(new RegExp(`${u}[ ]*{`));
|
|
3107
3107
|
let f = `{${c[1]}`;
|
|
3108
3108
|
l = c[0], f = this.interpolate(f, o);
|
|
3109
|
-
const
|
|
3110
|
-
(
|
|
3109
|
+
const p = f.match(/'/g), g = f.match(/"/g);
|
|
3110
|
+
(p && p.length % 2 === 0 && !g || g.length % 2 !== 0) && (f = f.replace(/'/g, '"'));
|
|
3111
3111
|
try {
|
|
3112
3112
|
o = JSON.parse(f), A && (o = {
|
|
3113
3113
|
...A,
|
|
@@ -3233,8 +3233,8 @@ class cu {
|
|
|
3233
3233
|
if (this.formats[A]) {
|
|
3234
3234
|
let c = a;
|
|
3235
3235
|
try {
|
|
3236
|
-
const f = i && i.formatParams && i.formatParams[i.interpolationkey] || {},
|
|
3237
|
-
c = this.formats[A](a,
|
|
3236
|
+
const f = i && i.formatParams && i.formatParams[i.interpolationkey] || {}, p = f.locale || f.lng || i.locale || i.lng || r;
|
|
3237
|
+
c = this.formats[A](a, p, {
|
|
3238
3238
|
...u,
|
|
3239
3239
|
...i,
|
|
3240
3240
|
...f
|
|
@@ -3490,16 +3490,16 @@ class on extends er {
|
|
|
3490
3490
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3491
3491
|
}), u && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (f.formatter = s(u), f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new uu(this.options), f.utils = {
|
|
3492
3492
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
3493
|
-
}, f.backendConnector = new fu(s(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", function(
|
|
3493
|
+
}, f.backendConnector = new fu(s(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", function(p) {
|
|
3494
3494
|
for (var g = arguments.length, m = new Array(g > 1 ? g - 1 : 0), v = 1; v < g; v++)
|
|
3495
3495
|
m[v - 1] = arguments[v];
|
|
3496
|
-
e.emit(
|
|
3497
|
-
}), this.modules.languageDetector && (f.languageDetector = s(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = s(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new Dn(this.services, this.options), this.translator.on("*", function(
|
|
3496
|
+
e.emit(p, ...m);
|
|
3497
|
+
}), this.modules.languageDetector && (f.languageDetector = s(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = s(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new Dn(this.services, this.options), this.translator.on("*", function(p) {
|
|
3498
3498
|
for (var g = arguments.length, m = new Array(g > 1 ? g - 1 : 0), v = 1; v < g; v++)
|
|
3499
3499
|
m[v - 1] = arguments[v];
|
|
3500
|
-
e.emit(
|
|
3501
|
-
}), this.modules.external.forEach((
|
|
3502
|
-
|
|
3500
|
+
e.emit(p, ...m);
|
|
3501
|
+
}), this.modules.external.forEach((p) => {
|
|
3502
|
+
p.init && p.init(this);
|
|
3503
3503
|
});
|
|
3504
3504
|
}
|
|
3505
3505
|
if (this.format = this.options.interpolation.format, r || (r = qn), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
@@ -3603,8 +3603,8 @@ class on extends er {
|
|
|
3603
3603
|
};
|
|
3604
3604
|
l.lng = l.lng || s.lng, l.lngs = l.lngs || s.lngs, l.ns = l.ns || s.ns, l.keyPrefix !== "" && (l.keyPrefix = l.keyPrefix || r || s.keyPrefix);
|
|
3605
3605
|
const f = i.options.keySeparator || ".";
|
|
3606
|
-
let
|
|
3607
|
-
return l.keyPrefix && Array.isArray(o) ?
|
|
3606
|
+
let p;
|
|
3607
|
+
return l.keyPrefix && Array.isArray(o) ? p = o.map((g) => `${l.keyPrefix}${f}${g}`) : p = l.keyPrefix ? `${l.keyPrefix}${f}${o}` : o, i.t(p, l);
|
|
3608
3608
|
};
|
|
3609
3609
|
return ne(e) ? s.lng = e : s.lngs = e, s.ns = n, s.keyPrefix = r, s;
|
|
3610
3610
|
}
|
|
@@ -3942,7 +3942,7 @@ const JA = (t) => {
|
|
|
3942
3942
|
return r;
|
|
3943
3943
|
};
|
|
3944
3944
|
return n(t, 0);
|
|
3945
|
-
}, DA = tt("AsyncFunction"), TA = (t) => t && (rr(t) || Xe(t)) && Xe(t.then) && Xe(t.catch),
|
|
3945
|
+
}, DA = tt("AsyncFunction"), TA = (t) => t && (rr(t) || Xe(t)) && Xe(t.then) && Xe(t.catch), C = {
|
|
3946
3946
|
isArray: Nt,
|
|
3947
3947
|
isArrayBuffer: Io,
|
|
3948
3948
|
isBuffer: oA,
|
|
@@ -4003,7 +4003,7 @@ const JA = (t) => {
|
|
|
4003
4003
|
function se(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(se, Error, {
|
|
4007
4007
|
toJSON: function() {
|
|
4008
4008
|
return {
|
|
4009
4009
|
// Standard
|
|
@@ -4018,7 +4018,7 @@ b.inherits(se, 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(se, Wo);
|
|
|
4046
4046
|
Object.defineProperty(Mo, "isAxiosError", { value: !0 });
|
|
4047
4047
|
se.from = (t, e, n, r, i, s) => {
|
|
4048
4048
|
const o = Object.create(Mo);
|
|
4049
|
-
return
|
|
4049
|
+
return C.toFlatObject(t, o, function(l) {
|
|
4050
4050
|
return l !== Error.prototype;
|
|
4051
4051
|
}, (a) => a !== "isAxiosError"), se.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 Hr(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 vs(t, e, n) {
|
|
4061
4061
|
return t ? t.concat(e).map(function(i, s) {
|
|
@@ -4063,44 +4063,44 @@ function vs(t, e, n) {
|
|
|
4063
4063
|
}).join(n ? "." : "") : e;
|
|
4064
4064
|
}
|
|
4065
4065
|
function PA(t) {
|
|
4066
|
-
return
|
|
4066
|
+
return C.isArray(t) && !t.some(Hr);
|
|
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 ir(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 se("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
|
-
o === !0 ? vs([m],
|
|
4103
|
-
A(
|
|
4102
|
+
o === !0 ? vs([m], S, s) : o === null ? m : m + "[]",
|
|
4103
|
+
A(M)
|
|
4104
4104
|
);
|
|
4105
4105
|
}), !1;
|
|
4106
4106
|
}
|
|
@@ -4111,24 +4111,24 @@ function ir(t, e, n) {
|
|
|
4111
4111
|
convertValue: A,
|
|
4112
4112
|
isVisitable: Hr
|
|
4113
4113
|
});
|
|
4114
|
-
function
|
|
4115
|
-
if (!
|
|
4114
|
+
function p(g, m) {
|
|
4115
|
+
if (!C.isUndefined(g)) {
|
|
4116
4116
|
if (c.indexOf(g) !== -1)
|
|
4117
4117
|
throw Error("Circular reference detected in " + m.join("."));
|
|
4118
|
-
c.push(g),
|
|
4119
|
-
(!(
|
|
4118
|
+
c.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 &&
|
|
4125
|
+
)) === !0 && p(b, m ? m.concat(Z) : [Z]);
|
|
4126
4126
|
}), c.pop();
|
|
4127
4127
|
}
|
|
4128
4128
|
}
|
|
4129
|
-
if (!
|
|
4129
|
+
if (!C.isObject(t))
|
|
4130
4130
|
throw new TypeError("data must be an object");
|
|
4131
|
-
return
|
|
4131
|
+
return p(t), e;
|
|
4132
4132
|
}
|
|
4133
4133
|
function qs(t) {
|
|
4134
4134
|
const e = {
|
|
@@ -4167,7 +4167,7 @@ function Ro(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 qi(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 ir(t, new _e.classes.URLSearchParams(), Object.assign({
|
|
4255
4255
|
visitor: function(n, r, i, s) {
|
|
4256
|
-
return _e.isNode &&
|
|
4256
|
+
return _e.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 No(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 Ci = {
|
|
|
4299
4299
|
transitional: Yo,
|
|
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(No(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 ir(
|
|
4318
4318
|
a ? { "files[]": e } : e,
|
|
@@ -4325,9 +4325,9 @@ const Ci = {
|
|
|
4325
4325
|
}],
|
|
4326
4326
|
transformResponse: [function(e) {
|
|
4327
4327
|
const n = this.transitional || Ci.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 Ci = {
|
|
|
4361
4361
|
}
|
|
4362
4362
|
}
|
|
4363
4363
|
};
|
|
4364
|
-
|
|
4364
|
+
C.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
4365
4365
|
Ci.headers[t] = {};
|
|
4366
4366
|
});
|
|
4367
|
-
const wi = Ci, oc =
|
|
4367
|
+
const wi = Ci, oc = C.toObjectSet([
|
|
4368
4368
|
"age",
|
|
4369
4369
|
"authorization",
|
|
4370
4370
|
"content-length",
|
|
@@ -4394,7 +4394,7 @@ function Qt(t) {
|
|
|
4394
4394
|
return t && String(t).trim().toLowerCase();
|
|
4395
4395
|
}
|
|
4396
4396
|
function On(t) {
|
|
4397
|
-
return t === !1 || t == null ? t :
|
|
4397
|
+
return t === !1 || t == null ? t : C.isArray(t) ? t.map(On) : 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 Ir(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 sr {
|
|
|
4438
4438
|
const u = Qt(l);
|
|
4439
4439
|
if (!u)
|
|
4440
4440
|
throw new Error("header name must be a non-empty string");
|
|
4441
|
-
const c =
|
|
4441
|
+
const c = C.findKey(i, u);
|
|
4442
4442
|
(!c || i[c] === void 0 || A === !0 || A === void 0 && i[c] !== !1) && (i[c || l] = On(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 sr {
|
|
|
4455
4455
|
}
|
|
4456
4456
|
get(e, n) {
|
|
4457
4457
|
if (e = Qt(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 sr {
|
|
|
4472
4472
|
}
|
|
4473
4473
|
has(e, n) {
|
|
4474
4474
|
if (e = Qt(e), e) {
|
|
4475
|
-
const r =
|
|
4475
|
+
const r = C.findKey(this, e);
|
|
4476
4476
|
return !!(r && this[r] !== void 0 && (!n || Ir(this, this[r], r, n)));
|
|
4477
4477
|
}
|
|
4478
4478
|
return !1;
|
|
@@ -4482,11 +4482,11 @@ class sr {
|
|
|
4482
4482
|
let i = !1;
|
|
4483
4483
|
function s(o) {
|
|
4484
4484
|
if (o = Qt(o), o) {
|
|
4485
|
-
const a =
|
|
4485
|
+
const a = C.findKey(r, o);
|
|
4486
4486
|
a && (!n || Ir(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 sr {
|
|
|
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] = On(i), delete n[s];
|
|
4506
4506
|
return;
|
|
@@ -4514,8 +4514,8 @@ class sr {
|
|
|
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 sr {
|
|
|
4543
4543
|
const a = Qt(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
|
sr.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
4550
|
-
|
|
4550
|
+
C.reduceDescriptors(sr.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(sr.prototype, ({ value: t }, e) => {
|
|
|
4556
4556
|
}
|
|
4557
4557
|
};
|
|
4558
4558
|
});
|
|
4559
|
-
|
|
4559
|
+
C.freezeMethods(sr);
|
|
4560
4560
|
const $e = sr;
|
|
4561
4561
|
function Sr(t, e) {
|
|
4562
4562
|
const n = this || wi, r = e || n, i = $e.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 Jo(t) {
|
|
|
4571
4571
|
function Jt(t, e, n) {
|
|
4572
4572
|
se.call(this, t ?? "canceled", se.ERR_CANCELED, e, n), this.name = "CanceledError";
|
|
4573
4573
|
}
|
|
4574
|
-
|
|
4574
|
+
C.inherits(Jt, se, {
|
|
4575
4575
|
__CANCEL__: !0
|
|
4576
4576
|
});
|
|
4577
4577
|
function Do(t, e, n) {
|
|
@@ -4600,8 +4600,8 @@ function fc(t, e) {
|
|
|
4600
4600
|
f += n[c++], c = c % t;
|
|
4601
4601
|
if (i = (i + 1) % t, i === s && (s = (s + 1) % t), A - o < e)
|
|
4602
4602
|
return;
|
|
4603
|
-
const
|
|
4604
|
-
return
|
|
4603
|
+
const p = u && A - u;
|
|
4604
|
+
return p ? Math.round(f * 1e3 / p) : void 0;
|
|
4605
4605
|
};
|
|
4606
4606
|
}
|
|
4607
4607
|
function pc(t, e) {
|
|
@@ -4653,7 +4653,7 @@ const Tn = (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 Tn = (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 It(t, e) {
|
|
|
4705
4705
|
e = e || {};
|
|
4706
4706
|
const n = {};
|
|
4707
4707
|
function r(A, u, c) {
|
|
4708
|
-
return
|
|
4708
|
+
return C.isPlainObject(A) && C.isPlainObject(u) ? C.merge.call({ caseless: c }, A, u) : C.isPlainObject(u) ? C.merge({}, u) : C.isArray(u) ? u.slice() : u;
|
|
4709
4709
|
}
|
|
4710
4710
|
function i(A, u, c) {
|
|
4711
|
-
if (
|
|
4712
|
-
if (!
|
|
4711
|
+
if (C.isUndefined(u)) {
|
|
4712
|
+
if (!C.isUndefined(A))
|
|
4713
4713
|
return r(void 0, A, c);
|
|
4714
4714
|
} else
|
|
4715
4715
|
return r(A, u, c);
|
|
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 It(t, e) {
|
|
|
4762
4762
|
validateStatus: a,
|
|
4763
4763
|
headers: (A, u) => i(ws(A), ws(u), !0)
|
|
4764
4764
|
};
|
|
4765
|
-
return
|
|
4765
|
+
return C.forEach(Object.keys(Object.assign({}, t, e)), function(u) {
|
|
4766
4766
|
const c = l[u] || i, f = c(t[u], e[u], u);
|
|
4767
|
-
|
|
4767
|
+
C.isUndefined(f) && c !== a || (n[u] = f);
|
|
4768
4768
|
}), n;
|
|
4769
4769
|
}
|
|
4770
4770
|
const Go = (t) => {
|
|
@@ -4775,7 +4775,7 @@ const Go = (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 (_e.hasStandardBrowserEnv || _e.hasStandardBrowserWebWorkerEnv)
|
|
4780
4780
|
o.setContentType(void 0);
|
|
4781
4781
|
else if ((l = o.getContentType()) !== !1) {
|
|
@@ -4783,7 +4783,7 @@ const Go = (t) => {
|
|
|
4783
4783
|
o.setContentType([A || "multipart/form-data", ...u].join("; "));
|
|
4784
4784
|
}
|
|
4785
4785
|
}
|
|
4786
|
-
if (_e.hasStandardBrowserEnv && (r &&
|
|
4786
|
+
if (_e.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
|
}
|
|
@@ -4802,20 +4802,20 @@ const Go = (t) => {
|
|
|
4802
4802
|
function c() {
|
|
4803
4803
|
if (!u)
|
|
4804
4804
|
return;
|
|
4805
|
-
const
|
|
4805
|
+
const p = $e.from(
|
|
4806
4806
|
"getAllResponseHeaders" in u && u.getAllResponseHeaders()
|
|
4807
4807
|
), m = {
|
|
4808
4808
|
data: !a || a === "text" || a === "json" ? u.responseText : u.response,
|
|
4809
4809
|
status: u.status,
|
|
4810
4810
|
statusText: u.statusText,
|
|
4811
|
-
headers:
|
|
4811
|
+
headers: p,
|
|
4812
4812
|
config: t,
|
|
4813
4813
|
request: u
|
|
4814
4814
|
};
|
|
4815
|
-
Do(function(
|
|
4816
|
-
n(
|
|
4817
|
-
}, function(
|
|
4818
|
-
r(
|
|
4815
|
+
Do(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 = c : u.onreadystatechange = function() {
|
|
@@ -4833,10 +4833,10 @@ const Go = (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
|
-
}),
|
|
4839
|
-
u && (r(!
|
|
4838
|
+
}), C.isUndefined(i.withCredentials) || (u.withCredentials = !!i.withCredentials), a && a !== "json" && (u.responseType = i.responseType), typeof i.onDownloadProgress == "function" && u.addEventListener("progress", Tn(i.onDownloadProgress, !0)), typeof i.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", Tn(i.onUploadProgress)), (i.cancelToken || i.signal) && (l = (p) => {
|
|
4839
|
+
u && (r(!p || p.type ? new Jt(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);
|
|
4842
4842
|
if (f && _e.protocols.indexOf(f) === -1) {
|
|
@@ -4918,7 +4918,7 @@ const Go = (t) => {
|
|
|
4918
4918
|
return t && !e;
|
|
4919
4919
|
})(), Is = 64 * 1024, Vr = Po && !!(() => {
|
|
4920
4920
|
try {
|
|
4921
|
-
return
|
|
4921
|
+
return C.isReadableStream(new Response("").body);
|
|
4922
4922
|
} catch {
|
|
4923
4923
|
}
|
|
4924
4924
|
})(), Gn = {
|
|
@@ -4926,7 +4926,7 @@ const Go = (t) => {
|
|
|
4926
4926
|
};
|
|
4927
4927
|
or && ((t) => {
|
|
4928
4928
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
4929
|
-
!Gn[e] && (Gn[e] =
|
|
4929
|
+
!Gn[e] && (Gn[e] = C.isFunction(t[e]) ? (n) => n[e]() : (n, r) => {
|
|
4930
4930
|
throw new se(`Response type '${e}' is not supported`, se.ERR_NOT_SUPPORT, r);
|
|
4931
4931
|
});
|
|
4932
4932
|
});
|
|
@@ -4934,16 +4934,16 @@ or && ((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 Br(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 = or && (async (t) => {
|
|
4949
4949
|
let {
|
|
@@ -4961,76 +4961,76 @@ const Ic = async (t) => {
|
|
|
4961
4961
|
fetchOptions: f
|
|
4962
4962
|
} = Go(t);
|
|
4963
4963
|
A = A ? (A + "").toLowerCase() : "text";
|
|
4964
|
-
let [
|
|
4965
|
-
const
|
|
4964
|
+
let [p, g] = i || s || o ? Cc([i, s], o) : [], m, v;
|
|
4965
|
+
const b = () => {
|
|
4966
4966
|
!m && setTimeout(() => {
|
|
4967
|
-
|
|
4967
|
+
p && p.unsubscribe();
|
|
4968
4968
|
}), m = !0;
|
|
4969
4969
|
};
|
|
4970
|
-
let
|
|
4970
|
+
let Z;
|
|
4971
4971
|
try {
|
|
4972
|
-
if (l && Zc && n !== "get" && n !== "head" && (
|
|
4972
|
+
if (l && Zc && n !== "get" && n !== "head" && (Z = await Sc(u, r)) !== 0) {
|
|
4973
4973
|
let T = new Request(e, {
|
|
4974
4974
|
method: "POST",
|
|
4975
4975
|
body: r,
|
|
4976
4976
|
duplex: "half"
|
|
4977
4977
|
}), x;
|
|
4978
|
-
|
|
4979
|
-
|
|
4978
|
+
C.isFormData(r) && (x = T.headers.get("content-type")) && u.setContentType(x), T.body && (r = xs(T.body, Is, Zs(
|
|
4979
|
+
Z,
|
|
4980
4980
|
Tn(l)
|
|
4981
4981
|
), null, Br));
|
|
4982
4982
|
}
|
|
4983
|
-
|
|
4983
|
+
C.isString(c) || (c = c ? "cors" : "omit"), v = new Request(e, {
|
|
4984
4984
|
...f,
|
|
4985
|
-
signal:
|
|
4985
|
+
signal: p,
|
|
4986
4986
|
method: n.toUpperCase(),
|
|
4987
4987
|
headers: u.normalize().toJSON(),
|
|
4988
4988
|
body: r,
|
|
4989
4989
|
duplex: "half",
|
|
4990
4990
|
withCredentials: c
|
|
4991
4991
|
});
|
|
4992
|
-
let
|
|
4993
|
-
const
|
|
4994
|
-
if (Vr && (a ||
|
|
4992
|
+
let M = await fetch(v);
|
|
4993
|
+
const S = Vr && (A === "stream" || A === "response");
|
|
4994
|
+
if (Vr && (a || S)) {
|
|
4995
4995
|
const T = {};
|
|
4996
4996
|
["status", "statusText", "headers"].forEach((k) => {
|
|
4997
|
-
T[k] =
|
|
4997
|
+
T[k] = M[k];
|
|
4998
4998
|
});
|
|
4999
|
-
const x =
|
|
5000
|
-
|
|
5001
|
-
xs(
|
|
4999
|
+
const x = C.toFiniteNumber(M.headers.get("content-length"));
|
|
5000
|
+
M = new Response(
|
|
5001
|
+
xs(M.body, Is, a && Zs(
|
|
5002
5002
|
x,
|
|
5003
5003
|
Tn(a, !0)
|
|
5004
|
-
),
|
|
5004
|
+
), S && b, Br),
|
|
5005
5005
|
T
|
|
5006
5006
|
);
|
|
5007
5007
|
}
|
|
5008
5008
|
A = A || "text";
|
|
5009
|
-
let q = await Gn[
|
|
5010
|
-
return !
|
|
5009
|
+
let q = await Gn[C.findKey(Gn, A) || "text"](M, t);
|
|
5010
|
+
return !S && b(), g && g(), await new Promise((T, x) => {
|
|
5011
5011
|
Do(T, x, {
|
|
5012
5012
|
data: q,
|
|
5013
|
-
headers: $e.from(
|
|
5014
|
-
status:
|
|
5015
|
-
statusText:
|
|
5013
|
+
headers: $e.from(M.headers),
|
|
5014
|
+
status: M.status,
|
|
5015
|
+
statusText: M.statusText,
|
|
5016
5016
|
config: t,
|
|
5017
5017
|
request: v
|
|
5018
5018
|
});
|
|
5019
5019
|
});
|
|
5020
|
-
} catch (
|
|
5021
|
-
throw
|
|
5020
|
+
} catch (M) {
|
|
5021
|
+
throw b(), M && M.name === "TypeError" && /fetch/i.test(M.message) ? Object.assign(
|
|
5022
5022
|
new se("Network Error", se.ERR_NETWORK, t, v),
|
|
5023
5023
|
{
|
|
5024
|
-
cause:
|
|
5024
|
+
cause: M.cause || M
|
|
5025
5025
|
}
|
|
5026
|
-
) : se.from(
|
|
5026
|
+
) : se.from(M, M && M.code, t, v);
|
|
5027
5027
|
}
|
|
5028
5028
|
}), Xr = {
|
|
5029
5029
|
http: GA,
|
|
5030
5030
|
xhr: qc,
|
|
5031
5031
|
fetch: Ec
|
|
5032
5032
|
};
|
|
5033
|
-
|
|
5033
|
+
C.forEach(Xr, (t, e) => {
|
|
5034
5034
|
if (t) {
|
|
5035
5035
|
try {
|
|
5036
5036
|
Object.defineProperty(t, "name", { value: e });
|
|
@@ -5039,9 +5039,9 @@ b.forEach(Xr, (t, e) => {
|
|
|
5039
5039
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
5040
5040
|
}
|
|
5041
5041
|
});
|
|
5042
|
-
const Ss = (t) => `- ${t}`, Oc = (t) =>
|
|
5042
|
+
const Ss = (t) => `- ${t}`, Oc = (t) => C.isFunction(t) || t === null || t === !1, Ho = {
|
|
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 Pn {
|
|
|
5177
5177
|
silentJSONParsing: dt.transitional(dt.boolean),
|
|
5178
5178
|
forcedJSONParsing: dt.transitional(dt.boolean),
|
|
5179
5179
|
clarifyTimeoutError: dt.transitional(dt.boolean)
|
|
5180
|
-
}, !1), i != null && (
|
|
5180
|
+
}, !1), i != null && (C.isFunction(i) ? n.paramsSerializer = {
|
|
5181
5181
|
serialize: i
|
|
5182
5182
|
} : Ur.assertOptions(i, {
|
|
5183
5183
|
encode: dt.function,
|
|
5184
5184
|
serialize: dt.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];
|
|
@@ -5210,18 +5210,18 @@ class Pn {
|
|
|
5210
5210
|
return u;
|
|
5211
5211
|
}
|
|
5212
5212
|
f = a.length;
|
|
5213
|
-
let
|
|
5213
|
+
let p = n;
|
|
5214
5214
|
for (c = 0; c < f; ) {
|
|
5215
5215
|
const g = a[c++], m = a[c++];
|
|
5216
5216
|
try {
|
|
5217
|
-
|
|
5217
|
+
p = g(p);
|
|
5218
5218
|
} catch (v) {
|
|
5219
5219
|
m.call(this, v);
|
|
5220
5220
|
break;
|
|
5221
5221
|
}
|
|
5222
5222
|
}
|
|
5223
5223
|
try {
|
|
5224
|
-
u = Es.call(this,
|
|
5224
|
+
u = Es.call(this, p);
|
|
5225
5225
|
} catch (g) {
|
|
5226
5226
|
return Promise.reject(g);
|
|
5227
5227
|
}
|
|
@@ -5235,7 +5235,7 @@ class Pn {
|
|
|
5235
5235
|
return Ro(n, e.params, e.paramsSerializer);
|
|
5236
5236
|
}
|
|
5237
5237
|
}
|
|
5238
|
-
|
|
5238
|
+
C.forEach(["delete", "get", "head", "options"], function(e) {
|
|
5239
5239
|
Pn.prototype[e] = function(n, r) {
|
|
5240
5240
|
return this.request(It(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(It(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 Qr = {
|
|
5341
5341
|
Continue: 100,
|
|
@@ -5408,7 +5408,7 @@ Object.entries(Qr).forEach(([t, e]) => {
|
|
|
5408
5408
|
const Wc = Qr;
|
|
5409
5409
|
function Vo(t) {
|
|
5410
5410
|
const e = new Ln(t), n = Zo(Ln.prototype.request, e);
|
|
5411
|
-
return
|
|
5411
|
+
return C.extend(n, Ln.prototype, e, { allOwnKeys: !0 }), C.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(i) {
|
|
5412
5412
|
return Vo(It(t, i));
|
|
5413
5413
|
}, n;
|
|
5414
5414
|
}
|
|
@@ -5428,7 +5428,7 @@ Se.spread = Kc;
|
|
|
5428
5428
|
Se.isAxiosError = Mc;
|
|
5429
5429
|
Se.mergeConfig = It;
|
|
5430
5430
|
Se.AxiosHeaders = $e;
|
|
5431
|
-
Se.formToJSON = (t) => No(
|
|
5431
|
+
Se.formToJSON = (t) => No(C.isHTMLForm(t) ? new FormData(t) : t);
|
|
5432
5432
|
Se.getAdapter = Ho.getAdapter;
|
|
5433
5433
|
Se.HttpStatusCode = Wc;
|
|
5434
5434
|
Se.default = Se;
|
|
@@ -5503,22 +5503,22 @@ function Fr(t, e) {
|
|
|
5503
5503
|
Fr({ read: Ls.decodeValue, write: Ls.encodeValue }, Ei);
|
|
5504
5504
|
let $o;
|
|
5505
5505
|
typeof window < "u" && ($o = _o("token"));
|
|
5506
|
-
const
|
|
5506
|
+
const qe = jc.create({
|
|
5507
5507
|
headers: {
|
|
5508
5508
|
Authorization: $o
|
|
5509
5509
|
}
|
|
5510
5510
|
});
|
|
5511
5511
|
async function Nc(t, e, n) {
|
|
5512
|
-
return (await
|
|
5512
|
+
return (await qe.post(n + "/createFlexVersionLinkMulti", {
|
|
5513
5513
|
_id: t,
|
|
5514
5514
|
networks: e
|
|
5515
5515
|
})).data;
|
|
5516
5516
|
}
|
|
5517
5517
|
async function Jc(t, e) {
|
|
5518
|
-
return t.network == "fb" && (t.zip = 1), (await
|
|
5518
|
+
return t.network == "fb" && (t.zip = 1), (await qe.post(e + "/createFlexVersionLink", t || {})).data;
|
|
5519
5519
|
}
|
|
5520
5520
|
async function Dc(t, e, n) {
|
|
5521
|
-
return (await
|
|
5521
|
+
return (await qe.post(t + "/createImportedVersionLink", {
|
|
5522
5522
|
_id: e,
|
|
5523
5523
|
network: n
|
|
5524
5524
|
// zip,
|
|
@@ -5526,7 +5526,7 @@ async function Dc(t, e, n) {
|
|
|
5526
5526
|
})).data;
|
|
5527
5527
|
}
|
|
5528
5528
|
async function Tc(t, e, n, r, i) {
|
|
5529
|
-
return (await
|
|
5529
|
+
return (await qe.post(t + "/createPlayableVersionLink", {
|
|
5530
5530
|
_id: e,
|
|
5531
5531
|
network: n,
|
|
5532
5532
|
isPfTest: r,
|
|
@@ -5534,13 +5534,13 @@ async function Tc(t, e, n, r, i) {
|
|
|
5534
5534
|
})).data;
|
|
5535
5535
|
}
|
|
5536
5536
|
async function Gc(t, e, n) {
|
|
5537
|
-
return (await
|
|
5537
|
+
return (await qe.post(n + "/createPlayableVersionLinkMulti", {
|
|
5538
5538
|
_id: t,
|
|
5539
5539
|
networks: e
|
|
5540
5540
|
})).data;
|
|
5541
5541
|
}
|
|
5542
5542
|
async function Pc(t, e, n, r, i) {
|
|
5543
|
-
return (await
|
|
5543
|
+
return (await qe.post(t + "/createReadyVersionLink", {
|
|
5544
5544
|
_id: e,
|
|
5545
5545
|
network: n,
|
|
5546
5546
|
isPfTest: r,
|
|
@@ -5548,13 +5548,13 @@ async function Pc(t, e, n, r, i) {
|
|
|
5548
5548
|
})).data;
|
|
5549
5549
|
}
|
|
5550
5550
|
async function Hc(t, e, n) {
|
|
5551
|
-
return (await
|
|
5551
|
+
return (await qe.post(n + "/createReadyVersionLinkMulti", {
|
|
5552
5552
|
_id: t,
|
|
5553
5553
|
networks: e
|
|
5554
5554
|
})).data;
|
|
5555
5555
|
}
|
|
5556
5556
|
async function Bc(t, e, n, r, i, s, o, a) {
|
|
5557
|
-
return (await
|
|
5557
|
+
return (await qe.post(t + "/createFusionVersionLink", {
|
|
5558
5558
|
_id: e,
|
|
5559
5559
|
network: n,
|
|
5560
5560
|
fusionData: r,
|
|
@@ -5565,16 +5565,16 @@ async function Bc(t, e, n, r, i, s, o, a) {
|
|
|
5565
5565
|
})).data;
|
|
5566
5566
|
}
|
|
5567
5567
|
async function Vc(t, e) {
|
|
5568
|
-
return (await
|
|
5568
|
+
return (await qe.post(e + "/updateFusionUrl", t || {})).data;
|
|
5569
5569
|
}
|
|
5570
5570
|
async function Xc(t, e) {
|
|
5571
|
-
return (await
|
|
5571
|
+
return (await qe.post(e + "/getCdnExportName", t || {})).data;
|
|
5572
5572
|
}
|
|
5573
5573
|
async function Uc(t, e) {
|
|
5574
|
-
return (await
|
|
5574
|
+
return (await qe.post(e + "/updateFlexUrl", t || {})).data;
|
|
5575
5575
|
}
|
|
5576
5576
|
async function ks(t, e, n) {
|
|
5577
|
-
return (await
|
|
5577
|
+
return (await qe.post(n + "/updatePlayableVersion", {
|
|
5578
5578
|
...e,
|
|
5579
5579
|
_id: t
|
|
5580
5580
|
})).data;
|
|
@@ -5620,17 +5620,17 @@ function ar(t) {
|
|
|
5620
5620
|
let { enter: e, exit: n, appendPosition: r = !1, collapse: i = !0, collapseDuration: s = 300 } = t;
|
|
5621
5621
|
return function(o) {
|
|
5622
5622
|
let { children: a, position: l, preventExitTransition: A, done: u, nodeRef: c, isIn: f } = o;
|
|
5623
|
-
const
|
|
5623
|
+
const p = r ? `${e}--${l}` : e, g = r ? `${n}--${l}` : n, m = Ct(0);
|
|
5624
5624
|
return el(() => {
|
|
5625
|
-
const v = c.current,
|
|
5626
|
-
|
|
5625
|
+
const v = c.current, b = p.split(" "), Z = (M) => {
|
|
5626
|
+
M.target === c.current && (v.dispatchEvent(new Event("d")), v.removeEventListener("animationend", Z), v.removeEventListener("animationcancel", Z), m.current === 0 && M.type !== "animationcancel" && v.classList.remove(...b));
|
|
5627
5627
|
};
|
|
5628
|
-
v.classList.add(...
|
|
5628
|
+
v.classList.add(...b), v.addEventListener("animationend", Z), v.addEventListener("animationcancel", Z);
|
|
5629
5629
|
}, []), Ze(() => {
|
|
5630
|
-
const v = c.current,
|
|
5631
|
-
v.removeEventListener("animationend",
|
|
5630
|
+
const v = c.current, b = () => {
|
|
5631
|
+
v.removeEventListener("animationend", b), i ? Qc(v, u, s) : u();
|
|
5632
5632
|
};
|
|
5633
|
-
f || (A ?
|
|
5633
|
+
f || (A ? b() : (m.current = 1, v.className += ` ${g}`, v.addEventListener("animationend", b)));
|
|
5634
5634
|
}, [f]), fe.createElement(fe.Fragment, null, a);
|
|
5635
5635
|
};
|
|
5636
5636
|
}
|
|
@@ -5670,40 +5670,40 @@ const Be = { list: /* @__PURE__ */ new Map(), emitQueue: /* @__PURE__ */ new Map
|
|
|
5670
5670
|
return fe.createElement("div", { className: "Toastify__spinner" });
|
|
5671
5671
|
} };
|
|
5672
5672
|
function Fc(t) {
|
|
5673
|
-
const [, e] = so((
|
|
5674
|
-
function l(
|
|
5675
|
-
let { containerId: g } =
|
|
5673
|
+
const [, e] = so((p) => p + 1, 0), [n, r] = _([]), i = Ct(null), s = Ct(/* @__PURE__ */ new Map()).current, o = (p) => n.indexOf(p) !== -1, a = Ct({ toastKey: 1, displayedToast: 0, count: 0, queue: [], props: t, containerId: null, isToastActive: o, getToast: (p) => s.get(p) }).current;
|
|
5674
|
+
function l(p) {
|
|
5675
|
+
let { containerId: g } = p;
|
|
5676
5676
|
const { limit: m } = a.props;
|
|
5677
5677
|
!m || g && a.containerId !== g || (a.count -= a.queue.length, a.queue = []);
|
|
5678
5678
|
}
|
|
5679
|
-
function A(
|
|
5680
|
-
r((g) =>
|
|
5679
|
+
function A(p) {
|
|
5680
|
+
r((g) => p == null ? [] : g.filter((m) => m !== p));
|
|
5681
5681
|
}
|
|
5682
5682
|
function u() {
|
|
5683
|
-
const { toastContent:
|
|
5684
|
-
f(
|
|
5685
|
-
}
|
|
5686
|
-
function c(
|
|
5687
|
-
let { delay: m, staleId: v, ...
|
|
5688
|
-
if (!Or(
|
|
5689
|
-
return !i.current || a.props.enableMultiContainer &&
|
|
5690
|
-
}(
|
|
5683
|
+
const { toastContent: p, toastProps: g, staleId: m } = a.queue.shift();
|
|
5684
|
+
f(p, g, m);
|
|
5685
|
+
}
|
|
5686
|
+
function c(p, g) {
|
|
5687
|
+
let { delay: m, staleId: v, ...b } = g;
|
|
5688
|
+
if (!Or(p) || function(j) {
|
|
5689
|
+
return !i.current || a.props.enableMultiContainer && j.containerId !== a.props.containerId || s.has(j.toastId) && j.updateId == null;
|
|
5690
|
+
}(b))
|
|
5691
5691
|
return;
|
|
5692
|
-
const { toastId:
|
|
5692
|
+
const { toastId: Z, updateId: M, data: S } = b, { props: q } = a, T = () => A(Z), x = M == null;
|
|
5693
5693
|
x && a.count++;
|
|
5694
|
-
const k = { ...q, style: q.toastStyle, key: a.toastKey++, ...Object.fromEntries(Object.entries(
|
|
5695
|
-
let [B,
|
|
5696
|
-
return
|
|
5697
|
-
})), toastId:
|
|
5698
|
-
const
|
|
5699
|
-
s.delete(
|
|
5694
|
+
const k = { ...q, style: q.toastStyle, key: a.toastKey++, ...Object.fromEntries(Object.entries(b).filter((j) => {
|
|
5695
|
+
let [B, E] = j;
|
|
5696
|
+
return E != null;
|
|
5697
|
+
})), toastId: Z, updateId: M, data: S, closeToast: T, isIn: !1, className: kn(b.className || q.toastClassName), bodyClassName: kn(b.bodyClassName || q.bodyClassName), progressClassName: kn(b.progressClassName || q.progressClassName), autoClose: !b.isLoading && (Y = b.autoClose, W = q.autoClose, Y === !1 || tn(Y) && Y > 0 ? Y : W), deleteToast() {
|
|
5698
|
+
const j = Ks(s.get(Z), "removed");
|
|
5699
|
+
s.delete(Z), Be.emit(4, j);
|
|
5700
5700
|
const B = a.queue.length;
|
|
5701
|
-
if (a.count =
|
|
5702
|
-
const
|
|
5703
|
-
if (B === 1 ||
|
|
5701
|
+
if (a.count = Z == null ? a.count - a.displayedToast : a.count - 1, a.count < 0 && (a.count = 0), B > 0) {
|
|
5702
|
+
const E = Z == null ? a.props.limit : 1;
|
|
5703
|
+
if (B === 1 || E === 1)
|
|
5704
5704
|
a.displayedToast++, u();
|
|
5705
5705
|
else {
|
|
5706
|
-
const L =
|
|
5706
|
+
const L = E > B ? B : E;
|
|
5707
5707
|
a.displayedToast = L;
|
|
5708
5708
|
for (let G = 0; G < L; G++)
|
|
5709
5709
|
u();
|
|
@@ -5711,33 +5711,33 @@ function Fc(t) {
|
|
|
5711
5711
|
} else
|
|
5712
5712
|
e();
|
|
5713
5713
|
} };
|
|
5714
|
-
var Y,
|
|
5715
|
-
k.iconOut = function(
|
|
5716
|
-
let { theme: B, type:
|
|
5717
|
-
const K = { theme: B, type:
|
|
5718
|
-
return G === !1 || (Ye(G) ? y = G(K) : Yt(G) ? y = Jr(G, K) : St(G) || tn(G) ? y = G : L ? y = Lr.spinner() : ((U) => U in Lr)(
|
|
5719
|
-
}(k), Ye(
|
|
5720
|
-
let z =
|
|
5721
|
-
Yt(
|
|
5714
|
+
var Y, W;
|
|
5715
|
+
k.iconOut = function(j) {
|
|
5716
|
+
let { theme: B, type: E, isLoading: L, icon: G } = j, y = null;
|
|
5717
|
+
const K = { theme: B, type: E };
|
|
5718
|
+
return G === !1 || (Ye(G) ? y = G(K) : Yt(G) ? y = Jr(G, K) : St(G) || tn(G) ? y = G : L ? y = Lr.spinner() : ((U) => U in Lr)(E) && (y = Lr[E](K))), y;
|
|
5719
|
+
}(k), Ye(b.onOpen) && (k.onOpen = b.onOpen), Ye(b.onClose) && (k.onClose = b.onClose), k.closeButton = q.closeButton, b.closeButton === !1 || Or(b.closeButton) ? k.closeButton = b.closeButton : b.closeButton === !0 && (k.closeButton = !Or(q.closeButton) || q.closeButton);
|
|
5720
|
+
let z = p;
|
|
5721
|
+
Yt(p) && !St(p.type) ? z = Jr(p, { closeToast: T, toastProps: k, data: S }) : Ye(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 }) : tn(m) ? setTimeout(() => {
|
|
5722
5722
|
f(z, k, v);
|
|
5723
5723
|
}, m) : f(z, k, v);
|
|
5724
5724
|
}
|
|
5725
|
-
function f(
|
|
5725
|
+
function f(p, g, m) {
|
|
5726
5726
|
const { toastId: v } = g;
|
|
5727
5727
|
m && s.delete(m);
|
|
5728
|
-
const
|
|
5729
|
-
s.set(v,
|
|
5728
|
+
const b = { content: p, props: g };
|
|
5729
|
+
s.set(v, b), r((Z) => [...Z, v].filter((M) => M !== m)), Be.emit(4, Ks(b, b.props.updateId == null ? "added" : "updated"));
|
|
5730
5730
|
}
|
|
5731
|
-
return Ze(() => (a.containerId = t.containerId, Be.cancelEmit(3).on(0, c).on(1, (
|
|
5731
|
+
return Ze(() => (a.containerId = t.containerId, Be.cancelEmit(3).on(0, c).on(1, (p) => i.current && A(p)).on(5, l).emit(2, a), () => {
|
|
5732
5732
|
s.clear(), Be.emit(3, a);
|
|
5733
5733
|
}), []), Ze(() => {
|
|
5734
5734
|
a.props = t, a.isToastActive = o, a.displayedToast = n.length;
|
|
5735
|
-
}), { getToastToRender: function(
|
|
5735
|
+
}), { getToastToRender: function(p) {
|
|
5736
5736
|
const g = /* @__PURE__ */ new Map(), m = Array.from(s.values());
|
|
5737
5737
|
return t.newestOnTop && m.reverse(), m.forEach((v) => {
|
|
5738
|
-
const { position:
|
|
5739
|
-
g.has(
|
|
5740
|
-
}), Array.from(g, (v) =>
|
|
5738
|
+
const { position: b } = v.props;
|
|
5739
|
+
g.has(b) || g.set(b, []), g.get(b).push(v);
|
|
5740
|
+
}), Array.from(g, (v) => p(v[0], v[1]));
|
|
5741
5741
|
}, containerRef: i, isToastActive: o };
|
|
5742
5742
|
}
|
|
5743
5743
|
function Ms(t) {
|
|
@@ -5748,17 +5748,17 @@ function Ws(t) {
|
|
|
5748
5748
|
}
|
|
5749
5749
|
function _c(t) {
|
|
5750
5750
|
const [e, n] = _(!1), [r, i] = _(!1), s = Ct(null), o = Ct({ start: 0, x: 0, y: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, boundingRect: null, didMove: !1 }).current, a = Ct(t), { autoClose: l, pauseOnHover: A, closeToast: u, onClick: c, closeOnClick: f } = t;
|
|
5751
|
-
function
|
|
5751
|
+
function p(S) {
|
|
5752
5752
|
if (t.draggable) {
|
|
5753
|
-
|
|
5753
|
+
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);
|
|
5754
5754
|
const q = s.current;
|
|
5755
|
-
o.canCloseOnClick = !0, o.canDrag = !0, o.boundingRect = q.getBoundingClientRect(), q.style.transition = "", o.x = Ms(
|
|
5755
|
+
o.canCloseOnClick = !0, o.canDrag = !0, o.boundingRect = q.getBoundingClientRect(), q.style.transition = "", o.x = Ms(S.nativeEvent), o.y = Ws(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));
|
|
5756
5756
|
}
|
|
5757
5757
|
}
|
|
5758
|
-
function g(
|
|
5758
|
+
function g(S) {
|
|
5759
5759
|
if (o.boundingRect) {
|
|
5760
5760
|
const { top: q, bottom: T, left: x, right: k } = o.boundingRect;
|
|
5761
|
-
|
|
5761
|
+
S.nativeEvent.type !== "touchend" && t.pauseOnHover && o.x >= x && o.x <= k && o.y >= q && o.y <= T ? v() : m();
|
|
5762
5762
|
}
|
|
5763
5763
|
}
|
|
5764
5764
|
function m() {
|
|
@@ -5767,31 +5767,31 @@ function _c(t) {
|
|
|
5767
5767
|
function v() {
|
|
5768
5768
|
n(!1);
|
|
5769
5769
|
}
|
|
5770
|
-
function
|
|
5770
|
+
function b(S) {
|
|
5771
5771
|
const q = s.current;
|
|
5772
|
-
o.canDrag && q && (o.didMove = !0, e && v(), o.x = Ms(
|
|
5772
|
+
o.canDrag && q && (o.didMove = !0, e && v(), o.x = Ms(S), o.y = Ws(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)));
|
|
5773
5773
|
}
|
|
5774
|
-
function
|
|
5775
|
-
document.removeEventListener("mousemove",
|
|
5776
|
-
const
|
|
5777
|
-
if (o.canDrag && o.didMove &&
|
|
5774
|
+
function Z() {
|
|
5775
|
+
document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", Z), document.removeEventListener("touchmove", b), document.removeEventListener("touchend", Z);
|
|
5776
|
+
const S = s.current;
|
|
5777
|
+
if (o.canDrag && o.didMove && S) {
|
|
5778
5778
|
if (o.canDrag = !1, Math.abs(o.delta) > o.removalDistance)
|
|
5779
5779
|
return i(!0), void t.closeToast();
|
|
5780
|
-
|
|
5780
|
+
S.style.transition = "transform 0.2s, opacity 0.2s", S.style.transform = `translate${t.draggableDirection}(0)`, S.style.opacity = "1";
|
|
5781
5781
|
}
|
|
5782
5782
|
}
|
|
5783
5783
|
Ze(() => {
|
|
5784
5784
|
a.current = t;
|
|
5785
5785
|
}), Ze(() => (s.current && s.current.addEventListener("d", m, { once: !0 }), Ye(t.onOpen) && t.onOpen(Yt(t.children) && t.children.props), () => {
|
|
5786
|
-
const
|
|
5787
|
-
Ye(
|
|
5786
|
+
const S = a.current;
|
|
5787
|
+
Ye(S.onClose) && S.onClose(Yt(S.children) && S.children.props);
|
|
5788
5788
|
}), []), Ze(() => (t.pauseOnFocusLoss && (document.hasFocus() || v(), window.addEventListener("focus", m), window.addEventListener("blur", v)), () => {
|
|
5789
5789
|
t.pauseOnFocusLoss && (window.removeEventListener("focus", m), window.removeEventListener("blur", v));
|
|
5790
5790
|
}), [t.pauseOnFocusLoss]);
|
|
5791
|
-
const
|
|
5792
|
-
return l && A && (
|
|
5793
|
-
c && c(
|
|
5794
|
-
}), { playToast: m, pauseToast: v, isRunning: e, preventExitTransition: r, toastRef: s, eventHandlers:
|
|
5791
|
+
const M = { onMouseDown: p, onTouchStart: p, onMouseUp: g, onTouchEnd: g };
|
|
5792
|
+
return l && A && (M.onMouseEnter = v, M.onMouseLeave = m), f && (M.onClick = (S) => {
|
|
5793
|
+
c && c(S), o.canCloseOnClick && u();
|
|
5794
|
+
}), { playToast: m, pauseToast: v, isRunning: e, preventExitTransition: r, toastRef: s, eventHandlers: M };
|
|
5795
5795
|
}
|
|
5796
5796
|
function ta(t) {
|
|
5797
5797
|
let { closeToast: e, theme: n, ariaLabel: r = "close" } = t;
|
|
@@ -5801,17 +5801,17 @@ function ta(t) {
|
|
|
5801
5801
|
}
|
|
5802
5802
|
function $c(t) {
|
|
5803
5803
|
let { delay: e, isRunning: n, closeToast: r, type: i = "default", hide: s, className: o, style: a, controlledProgress: l, progress: A, rtl: u, isIn: c, theme: f } = t;
|
|
5804
|
-
const
|
|
5804
|
+
const p = s || l && A === 0, g = { ...a, animationDuration: `${e}ms`, animationPlayState: n ? "running" : "paused", opacity: p ? 0 : 1 };
|
|
5805
5805
|
l && (g.transform = `scaleX(${A})`);
|
|
5806
5806
|
const m = ft("Toastify__progress-bar", l ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${f}`, `Toastify__progress-bar--${i}`, { "Toastify__progress-bar--rtl": u }), v = Ye(o) ? o({ rtl: u, type: i, defaultClassName: m }) : ft(m, o);
|
|
5807
|
-
return fe.createElement("div", { role: "progressbar", "aria-hidden":
|
|
5807
|
+
return fe.createElement("div", { role: "progressbar", "aria-hidden": p ? "true" : "false", "aria-label": "notification timer", className: v, style: g, [l && A >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: l && A < 1 ? null : () => {
|
|
5808
5808
|
c && r();
|
|
5809
5809
|
} });
|
|
5810
5810
|
}
|
|
5811
5811
|
const ed = (t) => {
|
|
5812
|
-
const { isRunning: e, preventExitTransition: n, toastRef: r, eventHandlers: i } = _c(t), { closeButton: s, children: o, autoClose: a, onClick: l, type: A, hideProgressBar: u, closeToast: c, transition: f, position:
|
|
5812
|
+
const { isRunning: e, preventExitTransition: n, toastRef: r, eventHandlers: i } = _c(t), { closeButton: s, children: o, autoClose: a, onClick: l, type: A, hideProgressBar: u, closeToast: c, 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 = ft("Toastify__toast", `Toastify__toast-theme--${E}`, `Toastify__toast--${A}`, { "Toastify__toast--rtl": x }, { "Toastify__toast--close-on-click": B }), G = Ye(g) ? g({ rtl: x, position: p, type: A, defaultClassName: L }) : ft(L, g), y = !!T || !a, K = { closeToast: c, type: A, theme: E };
|
|
5813
5813
|
let U = null;
|
|
5814
|
-
return s === !1 || (U = Ye(s) ? s(K) : Yt(s) ? Jr(s, K) : ta(K)), fe.createElement(f, { isIn:
|
|
5814
|
+
return s === !1 || (U = Ye(s) ? s(K) : Yt(s) ? Jr(s, K) : ta(K)), fe.createElement(f, { isIn: W, done: Y, position: p, preventExitTransition: n, nodeRef: r }, fe.createElement("div", { id: k, onClick: l, className: G, ...i, style: m, ref: r }, fe.createElement("div", { ...W && { role: q }, className: Ye(v) ? v({ type: A }) : ft("Toastify__toast-body", v), style: b }, j != null && fe.createElement("div", { className: ft("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !z }) }, j), fe.createElement("div", null, o)), U, fe.createElement($c, { ...S && !y ? { key: `pb-${S}` } : {}, rtl: x, theme: E, delay: a, isRunning: e, isIn: W, closeToast: c, hide: u, type: A, style: M, className: Z, controlledProgress: y, progress: T || 0 })));
|
|
5815
5815
|
}, lr = function(t, e) {
|
|
5816
5816
|
return e === void 0 && (e = !1), { enter: `Toastify--animate Toastify__${t}-enter`, exit: `Toastify--animate Toastify__${t}-exit`, appendPosition: e };
|
|
5817
5817
|
}, td = ar(lr("bounce", !0));
|
|
@@ -5828,8 +5828,8 @@ const _r = $a((t, e) => {
|
|
|
5828
5828
|
e && (e.current = r.current);
|
|
5829
5829
|
}, []), fe.createElement("div", { ref: r, className: "Toastify", id: l }, n((u, c) => {
|
|
5830
5830
|
const f = c.length ? { ...o } : { ...o, pointerEvents: "none" };
|
|
5831
|
-
return fe.createElement("div", { className: A(u), style: f, key: `container-${u}` }, c.map((
|
|
5832
|
-
let { content: m, props: v } =
|
|
5831
|
+
return fe.createElement("div", { className: A(u), style: f, key: `container-${u}` }, c.map((p, g) => {
|
|
5832
|
+
let { content: m, props: v } = p;
|
|
5833
5833
|
return fe.createElement(ed, { ...v, isIn: i(v.toastId), style: { ...v.style, "--nth": g + 1, "--len": c.length }, key: `toast-${v.key}` }, m);
|
|
5834
5834
|
}));
|
|
5835
5835
|
}));
|
|
@@ -5860,8 +5860,8 @@ ve.loading = (t, e) => nn(t, Hn("default", { isLoading: !0, autoClose: !1, close
|
|
|
5860
5860
|
const a = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, l = (u, c, f) => {
|
|
5861
5861
|
if (c == null)
|
|
5862
5862
|
return void ve.dismiss(r);
|
|
5863
|
-
const
|
|
5864
|
-
return r ? ve.update(r, { ...
|
|
5863
|
+
const p = { type: u, ...a, ...n, data: f }, g = St(c) ? { render: c } : c;
|
|
5864
|
+
return r ? ve.update(r, { ...p, ...g }) : ve(g.render, { ...p, ...g }), f;
|
|
5865
5865
|
}, A = Ye(t) ? t() : t;
|
|
5866
5866
|
return A.then((u) => l("success", o, u)).catch((u) => l("error", s, u)), A;
|
|
5867
5867
|
}, ve.success = Cn("success"), ve.info = Cn("info"), ve.error = Cn("error"), ve.warning = Cn("warning"), ve.warn = ve.warning, ve.dark = (t, e) => nn(t, Hn("default", { theme: "dark", ...e })), ve.dismiss = (t) => {
|
|
@@ -6081,7 +6081,7 @@ async function ud(t) {
|
|
|
6081
6081
|
}
|
|
6082
6082
|
}
|
|
6083
6083
|
async function $r(t, e) {
|
|
6084
|
-
return (await
|
|
6084
|
+
return (await qe.post(e + "/findPlayable", { _id: t })).data;
|
|
6085
6085
|
}
|
|
6086
6086
|
const js = (t, e) => t.unstable_is ? t.unstable_is(e) : e === t, zs = (t) => "init" in t, Rs = (t) => !!t.write, Ys = (t) => "v" in t || "e" in t, wn = (t) => {
|
|
6087
6087
|
if ("e" in t)
|
|
@@ -6127,59 +6127,59 @@ const js = (t, e) => t.unstable_is ? t.unstable_is(e) : e === t, zs = (t) => "in
|
|
|
6127
6127
|
i.add(s);
|
|
6128
6128
|
return i;
|
|
6129
6129
|
};
|
|
6130
|
-
const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), o = {}, a = (f, ...
|
|
6130
|
+
const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), o = {}, a = (f, ...p) => f.read(...p), l = (f, ...p) => f.write(...p), A = (f, p) => {
|
|
6131
6131
|
var g;
|
|
6132
|
-
return (g = f.unstable_onInit) == null ? void 0 : g.call(f,
|
|
6133
|
-
}, u = (f,
|
|
6132
|
+
return (g = f.unstable_onInit) == null ? void 0 : g.call(f, p);
|
|
6133
|
+
}, u = (f, p) => {
|
|
6134
6134
|
var g;
|
|
6135
|
-
return (g = f.onMount) == null ? void 0 : g.call(f,
|
|
6135
|
+
return (g = f.onMount) == null ? void 0 : g.call(f, p);
|
|
6136
6136
|
}, ...c) => {
|
|
6137
6137
|
const f = c[0] || ((x) => {
|
|
6138
6138
|
let k = t.get(x);
|
|
6139
6139
|
return k || (k = { d: /* @__PURE__ */ new Map(), p: /* @__PURE__ */ new Set(), n: 0 }, t.set(x, k), A == null || A(x, T)), k;
|
|
6140
|
-
}),
|
|
6140
|
+
}), p = c[1] || (() => {
|
|
6141
6141
|
const x = [], k = (Y) => {
|
|
6142
6142
|
try {
|
|
6143
6143
|
Y();
|
|
6144
|
-
} catch (
|
|
6145
|
-
x.push(
|
|
6144
|
+
} catch (W) {
|
|
6145
|
+
x.push(W);
|
|
6146
6146
|
}
|
|
6147
6147
|
};
|
|
6148
6148
|
do {
|
|
6149
6149
|
o.f && k(o.f);
|
|
6150
|
-
const Y = /* @__PURE__ */ new Set(),
|
|
6150
|
+
const Y = /* @__PURE__ */ new Set(), W = Y.add.bind(Y);
|
|
6151
6151
|
r.forEach((z) => {
|
|
6152
|
-
var
|
|
6153
|
-
return (
|
|
6154
|
-
}), r.clear(), s.forEach(
|
|
6152
|
+
var j;
|
|
6153
|
+
return (j = e.get(z)) == null ? void 0 : j.l.forEach(W);
|
|
6154
|
+
}), r.clear(), s.forEach(W), s.clear(), i.forEach(W), i.clear(), Y.forEach(k), r.size && g();
|
|
6155
6155
|
} while (r.size || s.size || i.size);
|
|
6156
6156
|
if (x.length)
|
|
6157
6157
|
throw new AggregateError(x);
|
|
6158
6158
|
}), g = c[2] || (() => {
|
|
6159
|
-
const x = [], k = /* @__PURE__ */ new WeakSet(), Y = /* @__PURE__ */ new WeakSet(),
|
|
6160
|
-
for (;
|
|
6161
|
-
const z =
|
|
6159
|
+
const x = [], k = /* @__PURE__ */ new WeakSet(), Y = /* @__PURE__ */ new WeakSet(), W = Array.from(r);
|
|
6160
|
+
for (; W.length; ) {
|
|
6161
|
+
const z = W[W.length - 1], j = f(z);
|
|
6162
6162
|
if (Y.has(z)) {
|
|
6163
|
-
|
|
6163
|
+
W.pop();
|
|
6164
6164
|
continue;
|
|
6165
6165
|
}
|
|
6166
6166
|
if (k.has(z)) {
|
|
6167
|
-
n.get(z) ===
|
|
6167
|
+
n.get(z) === j.n && x.push([z, j]), Y.add(z), W.pop();
|
|
6168
6168
|
continue;
|
|
6169
6169
|
}
|
|
6170
6170
|
k.add(z);
|
|
6171
|
-
for (const B of Js(z,
|
|
6172
|
-
k.has(B) ||
|
|
6171
|
+
for (const B of Js(z, j, e))
|
|
6172
|
+
k.has(B) || W.push(B);
|
|
6173
6173
|
}
|
|
6174
6174
|
for (let z = x.length - 1; z >= 0; --z) {
|
|
6175
|
-
const [
|
|
6176
|
-
let
|
|
6175
|
+
const [j, B] = x[z];
|
|
6176
|
+
let E = !1;
|
|
6177
6177
|
for (const L of B.d.keys())
|
|
6178
|
-
if (L !==
|
|
6179
|
-
|
|
6178
|
+
if (L !== j && r.has(L)) {
|
|
6179
|
+
E = !0;
|
|
6180
6180
|
break;
|
|
6181
6181
|
}
|
|
6182
|
-
|
|
6182
|
+
E && (m(j), Z(j)), n.delete(j);
|
|
6183
6183
|
}
|
|
6184
6184
|
}), m = c[3] || ((x) => {
|
|
6185
6185
|
var k;
|
|
@@ -6193,10 +6193,10 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6193
6193
|
)))
|
|
6194
6194
|
return Y;
|
|
6195
6195
|
Y.d.clear();
|
|
6196
|
-
let
|
|
6196
|
+
let W = !0;
|
|
6197
6197
|
const z = () => {
|
|
6198
|
-
e.has(x) && (
|
|
6199
|
-
},
|
|
6198
|
+
e.has(x) && (Z(x), g(), p());
|
|
6199
|
+
}, j = (y) => {
|
|
6200
6200
|
var K;
|
|
6201
6201
|
if (js(x, y)) {
|
|
6202
6202
|
const w = f(y);
|
|
@@ -6211,27 +6211,27 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6211
6211
|
try {
|
|
6212
6212
|
return wn(U);
|
|
6213
6213
|
} finally {
|
|
6214
|
-
Y.d.set(y, U.n), Ns(Y.v) && aa(x, Y.v, U), (K = e.get(y)) == null || K.t.add(x),
|
|
6214
|
+
Y.d.set(y, U.n), Ns(Y.v) && aa(x, Y.v, U), (K = e.get(y)) == null || K.t.add(x), W || z();
|
|
6215
6215
|
}
|
|
6216
6216
|
};
|
|
6217
|
-
let B,
|
|
6217
|
+
let B, E;
|
|
6218
6218
|
const L = {
|
|
6219
6219
|
get signal() {
|
|
6220
6220
|
return B || (B = new AbortController()), B.signal;
|
|
6221
6221
|
},
|
|
6222
6222
|
get setSelf() {
|
|
6223
|
-
return !
|
|
6224
|
-
if (!
|
|
6223
|
+
return !E && Rs(x) && (E = (...y) => {
|
|
6224
|
+
if (!W)
|
|
6225
6225
|
try {
|
|
6226
|
-
return
|
|
6226
|
+
return b(x, ...y);
|
|
6227
6227
|
} finally {
|
|
6228
|
-
g(),
|
|
6228
|
+
g(), p();
|
|
6229
6229
|
}
|
|
6230
|
-
}),
|
|
6230
|
+
}), E;
|
|
6231
6231
|
}
|
|
6232
6232
|
}, G = Y.n;
|
|
6233
6233
|
try {
|
|
6234
|
-
const y = a(x,
|
|
6234
|
+
const y = a(x, j, L);
|
|
6235
6235
|
return Kr(x, y, f), Vn(y) && (oa(y, () => B == null ? void 0 : B.abort()), y.then(
|
|
6236
6236
|
z,
|
|
6237
6237
|
z
|
|
@@ -6239,112 +6239,112 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6239
6239
|
} catch (y) {
|
|
6240
6240
|
return delete Y.v, Y.e = y, ++Y.n, Y;
|
|
6241
6241
|
} finally {
|
|
6242
|
-
|
|
6242
|
+
W = !1, G !== Y.n && n.get(x) === G && (n.set(x, Y.n), r.add(x), (k = o.c) == null || k.call(o, x));
|
|
6243
6243
|
}
|
|
6244
6244
|
}), v = c[4] || ((x) => {
|
|
6245
6245
|
const k = [x];
|
|
6246
6246
|
for (; k.length; ) {
|
|
6247
|
-
const Y = k.pop(),
|
|
6248
|
-
for (const z of Js(Y,
|
|
6249
|
-
const
|
|
6250
|
-
n.set(z,
|
|
6247
|
+
const Y = k.pop(), W = f(Y);
|
|
6248
|
+
for (const z of Js(Y, W, e)) {
|
|
6249
|
+
const j = f(z);
|
|
6250
|
+
n.set(z, j.n), k.push(z);
|
|
6251
6251
|
}
|
|
6252
6252
|
}
|
|
6253
|
-
}),
|
|
6253
|
+
}), b = c[5] || ((x, ...k) => {
|
|
6254
6254
|
let Y = !0;
|
|
6255
|
-
const
|
|
6256
|
-
var
|
|
6257
|
-
const L = f(
|
|
6255
|
+
const W = (j) => wn(m(j)), z = (j, ...B) => {
|
|
6256
|
+
var E;
|
|
6257
|
+
const L = f(j);
|
|
6258
6258
|
try {
|
|
6259
|
-
if (js(x,
|
|
6260
|
-
if (!zs(
|
|
6259
|
+
if (js(x, j)) {
|
|
6260
|
+
if (!zs(j))
|
|
6261
6261
|
throw new Error("atom not writable");
|
|
6262
6262
|
const G = L.n, y = B[0];
|
|
6263
|
-
Kr(
|
|
6263
|
+
Kr(j, y, f), Z(j), G !== L.n && (r.add(j), (E = o.c) == null || E.call(o, j), v(j));
|
|
6264
6264
|
return;
|
|
6265
6265
|
} else
|
|
6266
|
-
return
|
|
6266
|
+
return b(j, ...B);
|
|
6267
6267
|
} finally {
|
|
6268
|
-
Y || (g(),
|
|
6268
|
+
Y || (g(), p());
|
|
6269
6269
|
}
|
|
6270
6270
|
};
|
|
6271
6271
|
try {
|
|
6272
|
-
return l(x,
|
|
6272
|
+
return l(x, W, z, ...k);
|
|
6273
6273
|
} finally {
|
|
6274
6274
|
Y = !1;
|
|
6275
6275
|
}
|
|
6276
|
-
}),
|
|
6276
|
+
}), Z = c[6] || ((x) => {
|
|
6277
6277
|
var k;
|
|
6278
|
-
const Y = f(x),
|
|
6279
|
-
if (
|
|
6280
|
-
for (const [z,
|
|
6281
|
-
if (!
|
|
6278
|
+
const Y = f(x), W = e.get(x);
|
|
6279
|
+
if (W && !Ns(Y.v)) {
|
|
6280
|
+
for (const [z, j] of Y.d)
|
|
6281
|
+
if (!W.d.has(z)) {
|
|
6282
6282
|
const B = f(z);
|
|
6283
|
-
|
|
6283
|
+
M(z).t.add(x), W.d.add(z), j !== B.n && (r.add(z), (k = o.c) == null || k.call(o, z), v(z));
|
|
6284
6284
|
}
|
|
6285
|
-
for (const z of
|
|
6285
|
+
for (const z of W.d || [])
|
|
6286
6286
|
if (!Y.d.has(z)) {
|
|
6287
|
-
|
|
6288
|
-
const
|
|
6289
|
-
|
|
6287
|
+
W.d.delete(z);
|
|
6288
|
+
const j = S(z);
|
|
6289
|
+
j == null || j.t.delete(x);
|
|
6290
6290
|
}
|
|
6291
6291
|
}
|
|
6292
|
-
}),
|
|
6292
|
+
}), M = c[7] || ((x) => {
|
|
6293
6293
|
var k;
|
|
6294
6294
|
const Y = f(x);
|
|
6295
|
-
let
|
|
6296
|
-
if (!
|
|
6295
|
+
let W = e.get(x);
|
|
6296
|
+
if (!W) {
|
|
6297
6297
|
m(x);
|
|
6298
6298
|
for (const z of Y.d.keys())
|
|
6299
|
-
|
|
6300
|
-
if (
|
|
6299
|
+
M(z).t.add(x);
|
|
6300
|
+
if (W = {
|
|
6301
6301
|
l: /* @__PURE__ */ new Set(),
|
|
6302
6302
|
d: new Set(Y.d.keys()),
|
|
6303
6303
|
t: /* @__PURE__ */ new Set()
|
|
6304
|
-
}, e.set(x,
|
|
6304
|
+
}, e.set(x, W), (k = o.m) == null || k.call(o, x), Rs(x)) {
|
|
6305
6305
|
const z = () => {
|
|
6306
|
-
let
|
|
6307
|
-
const B = (...
|
|
6306
|
+
let j = !0;
|
|
6307
|
+
const B = (...E) => {
|
|
6308
6308
|
try {
|
|
6309
|
-
return
|
|
6309
|
+
return b(x, ...E);
|
|
6310
6310
|
} finally {
|
|
6311
|
-
|
|
6311
|
+
j || (g(), p());
|
|
6312
6312
|
}
|
|
6313
6313
|
};
|
|
6314
6314
|
try {
|
|
6315
|
-
const
|
|
6316
|
-
|
|
6317
|
-
|
|
6315
|
+
const E = u(x, B);
|
|
6316
|
+
E && (W.u = () => {
|
|
6317
|
+
j = !0;
|
|
6318
6318
|
try {
|
|
6319
|
-
|
|
6319
|
+
E();
|
|
6320
6320
|
} finally {
|
|
6321
|
-
|
|
6321
|
+
j = !1;
|
|
6322
6322
|
}
|
|
6323
6323
|
});
|
|
6324
6324
|
} finally {
|
|
6325
|
-
|
|
6325
|
+
j = !1;
|
|
6326
6326
|
}
|
|
6327
6327
|
};
|
|
6328
6328
|
i.add(z);
|
|
6329
6329
|
}
|
|
6330
6330
|
}
|
|
6331
|
-
return
|
|
6332
|
-
}),
|
|
6331
|
+
return W;
|
|
6332
|
+
}), S = c[8] || ((x) => {
|
|
6333
6333
|
var k;
|
|
6334
6334
|
const Y = f(x);
|
|
6335
|
-
let
|
|
6336
|
-
if (
|
|
6337
|
-
var
|
|
6338
|
-
return (
|
|
6335
|
+
let W = e.get(x);
|
|
6336
|
+
if (W && !W.l.size && !Array.from(W.t).some((z) => {
|
|
6337
|
+
var j;
|
|
6338
|
+
return (j = e.get(z)) == null ? void 0 : j.d.has(x);
|
|
6339
6339
|
})) {
|
|
6340
|
-
|
|
6340
|
+
W.u && s.add(W.u), W = void 0, e.delete(x), (k = o.u) == null || k.call(o, x);
|
|
6341
6341
|
for (const z of Y.d.keys()) {
|
|
6342
|
-
const
|
|
6343
|
-
|
|
6342
|
+
const j = S(z);
|
|
6343
|
+
j == null || j.t.delete(x);
|
|
6344
6344
|
}
|
|
6345
6345
|
return;
|
|
6346
6346
|
}
|
|
6347
|
-
return
|
|
6347
|
+
return W;
|
|
6348
6348
|
}), q = [
|
|
6349
6349
|
// store state
|
|
6350
6350
|
t,
|
|
@@ -6361,27 +6361,27 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6361
6361
|
u,
|
|
6362
6362
|
// building-block functions
|
|
6363
6363
|
f,
|
|
6364
|
-
|
|
6364
|
+
p,
|
|
6365
6365
|
g,
|
|
6366
6366
|
m,
|
|
6367
6367
|
v,
|
|
6368
|
-
|
|
6369
|
-
|
|
6370
|
-
|
|
6371
|
-
|
|
6368
|
+
b,
|
|
6369
|
+
Z,
|
|
6370
|
+
M,
|
|
6371
|
+
S
|
|
6372
6372
|
], T = {
|
|
6373
6373
|
get: (x) => wn(m(x)),
|
|
6374
6374
|
set: (x, ...k) => {
|
|
6375
6375
|
try {
|
|
6376
|
-
return
|
|
6376
|
+
return b(x, ...k);
|
|
6377
6377
|
} finally {
|
|
6378
|
-
g(),
|
|
6378
|
+
g(), p();
|
|
6379
6379
|
}
|
|
6380
6380
|
},
|
|
6381
6381
|
sub: (x, k) => {
|
|
6382
|
-
const
|
|
6383
|
-
return
|
|
6384
|
-
|
|
6382
|
+
const W = M(x).l;
|
|
6383
|
+
return W.add(k), p(), () => {
|
|
6384
|
+
W.delete(k), S(x), p();
|
|
6385
6385
|
};
|
|
6386
6386
|
}
|
|
6387
6387
|
};
|
|
@@ -6514,7 +6514,7 @@ const ua = fn(""), Aa = fn(!1), ki = fn([]), ca = fn([]), pn = fn(!1), wd = ({
|
|
|
6514
6514
|
androidLink: l,
|
|
6515
6515
|
urlType: A
|
|
6516
6516
|
}) => {
|
|
6517
|
-
const [u, c] = _(!1), [f,
|
|
6517
|
+
const [u, c] = _(!1), [f, p] = Ne(pn), g = n === "Playable" ? f : !0, m = async () => {
|
|
6518
6518
|
c(!0), ln(
|
|
6519
6519
|
t,
|
|
6520
6520
|
"default",
|
|
@@ -6526,15 +6526,15 @@ const ua = fn(""), Aa = fn(!1), ki = fn([]), ca = fn([]), pn = fn(!1), wd = ({
|
|
|
6526
6526
|
!1,
|
|
6527
6527
|
{ urlType: A }
|
|
6528
6528
|
).then(async (v) => {
|
|
6529
|
-
var
|
|
6530
|
-
let
|
|
6529
|
+
var S, q, T, x;
|
|
6530
|
+
let b = "";
|
|
6531
6531
|
if (e && (n === "Playable" || n === "Ready")) {
|
|
6532
|
-
const k = await $r(e, r), Y = (q = (
|
|
6533
|
-
Y && (
|
|
6532
|
+
const k = await $r(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;
|
|
6533
|
+
Y && (b += "&landscape=true"), W !== void 0 && (b += `&phoneIndex=${W}`);
|
|
6534
6534
|
}
|
|
6535
6535
|
$r(e, r), c(!1);
|
|
6536
|
-
let
|
|
6537
|
-
n === "Flex" ?
|
|
6536
|
+
let Z;
|
|
6537
|
+
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, Dt(Z) ? Lt(ue.t("common:link_copied")) : s(Z), c(!1);
|
|
6538
6538
|
}).catch((v) => {
|
|
6539
6539
|
c(!1);
|
|
6540
6540
|
});
|
|
@@ -6688,7 +6688,7 @@ const ua = fn(""), Aa = fn(!1), ki = fn([]), ca = fn([]), pn = fn(!1), wd = ({
|
|
|
6688
6688
|
androidLink: u,
|
|
6689
6689
|
urlType: c
|
|
6690
6690
|
}) => {
|
|
6691
|
-
const [f,
|
|
6691
|
+
const [f, p] = _(window.innerWidth);
|
|
6692
6692
|
console.log("iosLink", A), Ze(() => {
|
|
6693
6693
|
console.log("re add event listener");
|
|
6694
6694
|
function m(v) {
|
|
@@ -6699,7 +6699,7 @@ const ua = fn(""), Aa = fn(!1), ki = fn([]), ca = fn([]), pn = fn(!1), wd = ({
|
|
|
6699
6699
|
};
|
|
6700
6700
|
}, [A, u]), Ze(() => {
|
|
6701
6701
|
const m = () => {
|
|
6702
|
-
|
|
6702
|
+
p(window.innerWidth);
|
|
6703
6703
|
};
|
|
6704
6704
|
return window.addEventListener("resize", m), () => {
|
|
6705
6705
|
window.removeEventListener("resize", m);
|
|
@@ -6767,7 +6767,7 @@ const ua = fn(""), Aa = fn(!1), ki = fn([]), ca = fn([]), pn = fn(!1), wd = ({
|
|
|
6767
6767
|
}
|
|
6768
6768
|
);
|
|
6769
6769
|
async function Id(t, e) {
|
|
6770
|
-
return (await
|
|
6770
|
+
return (await qe.post(e + "/buyRequest", {
|
|
6771
6771
|
requestType: t
|
|
6772
6772
|
})).data;
|
|
6773
6773
|
}
|
|
@@ -7084,7 +7084,7 @@ const Gs = ({
|
|
|
7084
7084
|
urlType: c,
|
|
7085
7085
|
setUrlType: f
|
|
7086
7086
|
}) => {
|
|
7087
|
-
const
|
|
7087
|
+
const p = () => /* @__PURE__ */ d.jsx(d.Fragment, { children: /* @__PURE__ */ d.jsxs(
|
|
7088
7088
|
"div",
|
|
7089
7089
|
{
|
|
7090
7090
|
style: {
|
|
@@ -7196,7 +7196,7 @@ const Gs = ({
|
|
|
7196
7196
|
},
|
|
7197
7197
|
children: [
|
|
7198
7198
|
t === "Ready" ? /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
7199
|
-
/* @__PURE__ */ d.jsx(
|
|
7199
|
+
/* @__PURE__ */ d.jsx(p, {}),
|
|
7200
7200
|
c === "game" && /* @__PURE__ */ d.jsx(
|
|
7201
7201
|
Gs,
|
|
7202
7202
|
{
|
|
@@ -7274,7 +7274,7 @@ const Gs = ({
|
|
|
7274
7274
|
isTest: u,
|
|
7275
7275
|
setIsTest: c,
|
|
7276
7276
|
urlType: f,
|
|
7277
|
-
setUrlType:
|
|
7277
|
+
setUrlType: p,
|
|
7278
7278
|
allNetworksSelected: g,
|
|
7279
7279
|
setAllNetworksSelected: m
|
|
7280
7280
|
}) => /* @__PURE__ */ d.jsxs(
|
|
@@ -7312,7 +7312,7 @@ const Gs = ({
|
|
|
7312
7312
|
isTest: u,
|
|
7313
7313
|
setIsTest: c,
|
|
7314
7314
|
urlType: f,
|
|
7315
|
-
setUrlType:
|
|
7315
|
+
setUrlType: p
|
|
7316
7316
|
}
|
|
7317
7317
|
),
|
|
7318
7318
|
/* @__PURE__ */ d.jsx(
|
|
@@ -8022,7 +8022,7 @@ const Wd = ({ typeOfProduct: t }) => /* @__PURE__ */ d.jsx(
|
|
|
8022
8022
|
}
|
|
8023
8023
|
);
|
|
8024
8024
|
async function Rd(t, e, n, r) {
|
|
8025
|
-
return (await
|
|
8025
|
+
return (await qe.post(t + "/createMolocoTestPage", {
|
|
8026
8026
|
_id: e,
|
|
8027
8027
|
network: n,
|
|
8028
8028
|
typeOfProduct: r
|
|
@@ -8042,21 +8042,21 @@ const Yd = ({
|
|
|
8042
8042
|
api: u,
|
|
8043
8043
|
handleDownloadError: c,
|
|
8044
8044
|
fetchFileUrl: f,
|
|
8045
|
-
urls:
|
|
8045
|
+
urls: p,
|
|
8046
8046
|
game: g,
|
|
8047
8047
|
setIsConfirmActive: m,
|
|
8048
8048
|
creditDownload: v,
|
|
8049
|
-
getDownloadCount:
|
|
8050
|
-
disabled:
|
|
8051
|
-
user:
|
|
8052
|
-
setSafariCopyLink:
|
|
8049
|
+
getDownloadCount: b,
|
|
8050
|
+
disabled: Z,
|
|
8051
|
+
user: M,
|
|
8052
|
+
setSafariCopyLink: S,
|
|
8053
8053
|
isTest: q,
|
|
8054
8054
|
urlType: T,
|
|
8055
8055
|
setCdnModal: x,
|
|
8056
8056
|
generateCDN: k,
|
|
8057
8057
|
cdnUrl: Y
|
|
8058
8058
|
}) => {
|
|
8059
|
-
const [
|
|
8059
|
+
const [W, z] = _(!1), [j, B] = _(""), [E, L] = _(!1), [G, y] = _(!1), [K, U] = _(!1), [w, I] = _("download"), [X, H] = _(!1), [J, P] = _(!1), [Q, F] = _(!1), [re, le] = Ne(ki), [ee, be] = Ne(pn), R = l === "Playable" ? ee : !0, we = {
|
|
8060
8060
|
cdn: "Generate Link",
|
|
8061
8061
|
adikteev: "Copy CDN"
|
|
8062
8062
|
}, Me = () => {
|
|
@@ -8074,7 +8074,7 @@ const Yd = ({
|
|
|
8074
8074
|
ln(
|
|
8075
8075
|
A,
|
|
8076
8076
|
$,
|
|
8077
|
-
R ?
|
|
8077
|
+
R ? p : null,
|
|
8078
8078
|
oe,
|
|
8079
8079
|
q,
|
|
8080
8080
|
ge
|
|
@@ -8089,7 +8089,7 @@ const Yd = ({
|
|
|
8089
8089
|
const oe = {
|
|
8090
8090
|
molocoGenerateHtml: !1
|
|
8091
8091
|
};
|
|
8092
|
-
$ && (oe.molocoGenerateHtml = !0), ln(A, i, R ?
|
|
8092
|
+
$ && (oe.molocoGenerateHtml = !0), ln(A, i, R ? p : null, "download", q, oe).then((ge) => {
|
|
8093
8093
|
$ ? P(!1) : H(!1), U(!1);
|
|
8094
8094
|
}).catch((ge) => {
|
|
8095
8095
|
c(ge.message, ge);
|
|
@@ -8098,7 +8098,7 @@ const Yd = ({
|
|
|
8098
8098
|
F(!0);
|
|
8099
8099
|
const $ = await Rd(u, A, i, l);
|
|
8100
8100
|
let oe = `${f}/${$ == null ? void 0 : $.url}`;
|
|
8101
|
-
Dt(oe) ? (Lt(ue.t("common:link_copied")), F(!1)) :
|
|
8101
|
+
Dt(oe) ? (Lt(ue.t("common:link_copied")), F(!1)) : S(oe);
|
|
8102
8102
|
}, V = i === "moloco" || i === "molocoV2", ae = re.find(($) => $.name === i);
|
|
8103
8103
|
return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
8104
8104
|
/* @__PURE__ */ d.jsxs(
|
|
@@ -8226,15 +8226,15 @@ const Yd = ({
|
|
|
8226
8226
|
jr,
|
|
8227
8227
|
{
|
|
8228
8228
|
className: `${V ? "w-1/2" : "w-2/3"} border-hover-` + l,
|
|
8229
|
-
downloading:
|
|
8229
|
+
downloading: W,
|
|
8230
8230
|
onClickDonwload: async ($) => {
|
|
8231
|
-
if ($.stopPropagation(), V &&
|
|
8231
|
+
if ($.stopPropagation(), V && M.customer === "playableFactoryInternal") {
|
|
8232
8232
|
U(!0);
|
|
8233
8233
|
return;
|
|
8234
8234
|
} else {
|
|
8235
8235
|
B("download");
|
|
8236
|
-
const oe =
|
|
8237
|
-
i === "cdn" && v && v.willSpendCredit && !Y || i !== "cdn" && v && v.willSpendCredit ? (m(!0),
|
|
8236
|
+
const oe = p.iosUrl, ge = p.googleUrl;
|
|
8237
|
+
i === "cdn" && v && v.willSpendCredit && !Y || i !== "cdn" && v && v.willSpendCredit ? (m(!0), I("download"), L(!0)) : ["Playable", "Flex"].includes(l) && (!oe || !ge) || l === "Ready" && T === "single" && !oe || l === "Ready" && T === "multi" && (!oe || !ge) ? (m(!0), y(!0)) : (y(!1), L(!1), await Ee(i, "download"));
|
|
8238
8238
|
}
|
|
8239
8239
|
},
|
|
8240
8240
|
children: V ? /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
@@ -8254,11 +8254,11 @@ const Yd = ({
|
|
|
8254
8254
|
}
|
|
8255
8255
|
}
|
|
8256
8256
|
),
|
|
8257
|
-
|
|
8257
|
+
M.customer !== "playableFactoryInternal" ? ue.t("common:txt") : ue.t("common:download")
|
|
8258
8258
|
] }),
|
|
8259
8259
|
X && /* @__PURE__ */ d.jsx(sn, {})
|
|
8260
8260
|
] }) : /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
8261
|
-
!
|
|
8261
|
+
!W && /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
8262
8262
|
/* @__PURE__ */ d.jsx(
|
|
8263
8263
|
zr,
|
|
8264
8264
|
{
|
|
@@ -8276,7 +8276,7 @@ const Yd = ({
|
|
|
8276
8276
|
),
|
|
8277
8277
|
we[i] || ue.t("common:download")
|
|
8278
8278
|
] }),
|
|
8279
|
-
|
|
8279
|
+
W && /* @__PURE__ */ d.jsx(sn, {})
|
|
8280
8280
|
] })
|
|
8281
8281
|
}
|
|
8282
8282
|
),
|
|
@@ -8286,23 +8286,23 @@ const Yd = ({
|
|
|
8286
8286
|
className: "w-1/3 border-hover-" + l,
|
|
8287
8287
|
onClickDonwload: async ($) => {
|
|
8288
8288
|
$.stopPropagation(), B("copyLink");
|
|
8289
|
-
const oe =
|
|
8290
|
-
v && (v != null && v.willSpendCredit) ? (
|
|
8289
|
+
const oe = p.iosUrl, ge = p.googleUrl;
|
|
8290
|
+
v && (v != null && v.willSpendCredit) ? (I("copy"), m(!0), L(!0)) : l !== "Import" && (!oe || !ge) ? (m(!0), y(!0)) : (L(!1), y(!1), await Ee(i, "copy"));
|
|
8291
8291
|
},
|
|
8292
|
-
disabled:
|
|
8292
|
+
disabled: Z,
|
|
8293
8293
|
children: /* @__PURE__ */ d.jsx(bo, { className: "h-6 w-6 stroke-dark-full" })
|
|
8294
8294
|
}
|
|
8295
8295
|
),
|
|
8296
|
-
V &&
|
|
8296
|
+
V && M.customer !== "playableFactoryInternal" && /* @__PURE__ */ d.jsxs(
|
|
8297
8297
|
jr,
|
|
8298
8298
|
{
|
|
8299
8299
|
className: "w-1/2 border-hover-" + l,
|
|
8300
8300
|
onClickDonwload: async ($) => {
|
|
8301
8301
|
$.stopPropagation(), B("copyLink");
|
|
8302
|
-
const oe =
|
|
8303
|
-
v && (v != null && v.willSpendCredit) ? (
|
|
8302
|
+
const oe = p.iosUrl, ge = p.googleUrl;
|
|
8303
|
+
v && (v != null && v.willSpendCredit) ? (I("download"), m(!0), L(!0)) : l !== "Import" && (!oe || !ge) ? (m(!0), y(!0)) : (L(!1), y(!1), await Je(!0));
|
|
8304
8304
|
},
|
|
8305
|
-
disabled:
|
|
8305
|
+
disabled: Z,
|
|
8306
8306
|
children: [
|
|
8307
8307
|
!J && /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
8308
8308
|
/* @__PURE__ */ d.jsx(
|
|
@@ -8332,7 +8332,7 @@ const Yd = ({
|
|
|
8332
8332
|
]
|
|
8333
8333
|
}
|
|
8334
8334
|
),
|
|
8335
|
-
|
|
8335
|
+
E && /* @__PURE__ */ d.jsx(
|
|
8336
8336
|
ni,
|
|
8337
8337
|
{
|
|
8338
8338
|
creditConfirmType: w,
|
|
@@ -8345,7 +8345,7 @@ const Yd = ({
|
|
|
8345
8345
|
onClose: () => {
|
|
8346
8346
|
L(!1), m(!1);
|
|
8347
8347
|
},
|
|
8348
|
-
getDownloadCount:
|
|
8348
|
+
getDownloadCount: b
|
|
8349
8349
|
}
|
|
8350
8350
|
),
|
|
8351
8351
|
G && /* @__PURE__ */ d.jsx(
|
|
@@ -8354,9 +8354,9 @@ const Yd = ({
|
|
|
8354
8354
|
onClose: () => {
|
|
8355
8355
|
y(!1), m(!1);
|
|
8356
8356
|
},
|
|
8357
|
-
iosLink:
|
|
8358
|
-
googleLink:
|
|
8359
|
-
buttonType:
|
|
8357
|
+
iosLink: p.iosUrl,
|
|
8358
|
+
googleLink: p.googleUrl,
|
|
8359
|
+
buttonType: j,
|
|
8360
8360
|
handleCopyLink: async () => {
|
|
8361
8361
|
y(!1), m(!1), await Ee(i, "copy");
|
|
8362
8362
|
},
|
|
@@ -8367,7 +8367,7 @@ const Yd = ({
|
|
|
8367
8367
|
urlType: T
|
|
8368
8368
|
}
|
|
8369
8369
|
),
|
|
8370
|
-
K &&
|
|
8370
|
+
K && M.customer === "playableFactoryInternal" && /* @__PURE__ */ d.jsx(
|
|
8371
8371
|
zd,
|
|
8372
8372
|
{
|
|
8373
8373
|
onClose: () => {
|
|
@@ -8781,19 +8781,19 @@ const Yd = ({
|
|
|
8781
8781
|
game: u,
|
|
8782
8782
|
getDownloadCount: c,
|
|
8783
8783
|
disabled: f,
|
|
8784
|
-
setSafariCopyLink:
|
|
8784
|
+
setSafariCopyLink: p,
|
|
8785
8785
|
isTest: g,
|
|
8786
8786
|
urlType: m,
|
|
8787
8787
|
allNetworksSelected: v,
|
|
8788
|
-
cdnModal:
|
|
8789
|
-
setCdnModal:
|
|
8790
|
-
cdnUrl:
|
|
8791
|
-
setCdnUrl:
|
|
8788
|
+
cdnModal: b,
|
|
8789
|
+
setCdnModal: Z,
|
|
8790
|
+
cdnUrl: M,
|
|
8791
|
+
setCdnUrl: S,
|
|
8792
8792
|
customer: q
|
|
8793
8793
|
}) => {
|
|
8794
|
-
const [T, x] = _([]), [k, Y] = _([]), [
|
|
8795
|
-
V &&
|
|
8796
|
-
|
|
8794
|
+
const [T, x] = _([]), [k, Y] = _([]), [W, z] = _(!1), [j, B] = _(""), [E, L] = _(!1), [G, y] = _(!1), [K, U] = _("download"), [w, I] = _(!1), [X, H] = _(!1), [J, P] = _(!1), [Q, F] = Ne(ua), [re, le] = Ne(Aa), [ee] = Ne(ki), [be, R] = Ne(pn), we = i === "Playable" ? be : !0, Me = async (V = !1) => {
|
|
8795
|
+
V && M || J || (P(!0), ln(r, "cdn", we ? A : null, null, !1, {}).then((ae) => {
|
|
8796
|
+
S(ae.url), P(!1);
|
|
8797
8797
|
}).catch((ae) => {
|
|
8798
8798
|
a(ae.message, ae), P(!1);
|
|
8799
8799
|
}));
|
|
@@ -8815,7 +8815,7 @@ const Yd = ({
|
|
|
8815
8815
|
console.log("get multi download err"), L(!1), a(oe.message, oe), ae(oe);
|
|
8816
8816
|
});
|
|
8817
8817
|
}), D = async () => {
|
|
8818
|
-
A.iosUrl, A.googleUrl, e && e.willSpendCredit ? (y(!0), U("download"),
|
|
8818
|
+
A.iosUrl, A.googleUrl, e && e.willSpendCredit ? (y(!0), U("download"), I(!0)) : (I(!1), await Je());
|
|
8819
8819
|
};
|
|
8820
8820
|
return Ze(() => {
|
|
8821
8821
|
const V = ee.filter((ae) => {
|
|
@@ -8867,7 +8867,7 @@ const Yd = ({
|
|
|
8867
8867
|
selected: T.includes(V.id),
|
|
8868
8868
|
handleCardClick: Ee,
|
|
8869
8869
|
networkVersionSize: k,
|
|
8870
|
-
fileSizeLoading:
|
|
8870
|
+
fileSizeLoading: W,
|
|
8871
8871
|
showCheckBox: V.id !== "adikteev",
|
|
8872
8872
|
typeOfProduct: i,
|
|
8873
8873
|
versionId: r,
|
|
@@ -8881,12 +8881,12 @@ const Yd = ({
|
|
|
8881
8881
|
getDownloadCount: c,
|
|
8882
8882
|
disabled: f,
|
|
8883
8883
|
user: o,
|
|
8884
|
-
setSafariCopyLink:
|
|
8884
|
+
setSafariCopyLink: p,
|
|
8885
8885
|
isTest: g,
|
|
8886
8886
|
urlType: m,
|
|
8887
|
-
setCdnModal:
|
|
8887
|
+
setCdnModal: Z,
|
|
8888
8888
|
generateCDN: Me,
|
|
8889
|
-
cdnUrl:
|
|
8889
|
+
cdnUrl: M
|
|
8890
8890
|
},
|
|
8891
8891
|
V.id
|
|
8892
8892
|
);
|
|
@@ -8912,24 +8912,24 @@ const Yd = ({
|
|
|
8912
8912
|
Jd,
|
|
8913
8913
|
{
|
|
8914
8914
|
onClickMultiDownload: D,
|
|
8915
|
-
networksVersionTotalSize:
|
|
8915
|
+
networksVersionTotalSize: j,
|
|
8916
8916
|
typeOfProduct: i,
|
|
8917
|
-
multiDownloading:
|
|
8917
|
+
multiDownloading: E
|
|
8918
8918
|
}
|
|
8919
8919
|
)
|
|
8920
8920
|
}
|
|
8921
8921
|
),
|
|
8922
|
-
|
|
8922
|
+
b && /* @__PURE__ */ d.jsx(
|
|
8923
8923
|
Dd,
|
|
8924
8924
|
{
|
|
8925
8925
|
onClose: () => {
|
|
8926
|
-
|
|
8926
|
+
Z(!1), c();
|
|
8927
8927
|
},
|
|
8928
8928
|
versionId: r,
|
|
8929
8929
|
urls: A,
|
|
8930
8930
|
handleDownloadError: a,
|
|
8931
|
-
cdnUrl:
|
|
8932
|
-
setCdnUrl:
|
|
8931
|
+
cdnUrl: M,
|
|
8932
|
+
setCdnUrl: S,
|
|
8933
8933
|
generateCDN: async () => {
|
|
8934
8934
|
if (!J) {
|
|
8935
8935
|
if (o.customer === "playableFactoryInternal") {
|
|
@@ -8960,10 +8960,10 @@ const Yd = ({
|
|
|
8960
8960
|
handleCopyLink: async () => {
|
|
8961
8961
|
},
|
|
8962
8962
|
download: async () => {
|
|
8963
|
-
|
|
8963
|
+
I(!1), H(!1), Me();
|
|
8964
8964
|
},
|
|
8965
8965
|
onClose: () => {
|
|
8966
|
-
|
|
8966
|
+
I(!1), H(!1), P(!1);
|
|
8967
8967
|
},
|
|
8968
8968
|
getDownloadCount: c
|
|
8969
8969
|
}
|
|
@@ -8975,10 +8975,10 @@ const Yd = ({
|
|
|
8975
8975
|
handleCopyLink: async () => {
|
|
8976
8976
|
},
|
|
8977
8977
|
download: async () => {
|
|
8978
|
-
|
|
8978
|
+
I(!1), y(!1), await Je();
|
|
8979
8979
|
},
|
|
8980
8980
|
onClose: () => {
|
|
8981
|
-
|
|
8981
|
+
I(!1), y(!1);
|
|
8982
8982
|
},
|
|
8983
8983
|
getDownloadCount: c
|
|
8984
8984
|
}
|
|
@@ -8986,31 +8986,31 @@ const Yd = ({
|
|
|
8986
8986
|
] });
|
|
8987
8987
|
};
|
|
8988
8988
|
async function Pd(t, e) {
|
|
8989
|
-
return (await
|
|
8989
|
+
return (await qe.post(e + "/getFlexDownloadCount", t)).data;
|
|
8990
8990
|
}
|
|
8991
8991
|
async function Hd(t, e) {
|
|
8992
8992
|
try {
|
|
8993
|
-
return (await
|
|
8993
|
+
return (await qe.post(e + "/findGame", { _id: t })).data;
|
|
8994
8994
|
} catch {
|
|
8995
8995
|
}
|
|
8996
8996
|
}
|
|
8997
8997
|
async function Bd(t, e) {
|
|
8998
|
-
return (await
|
|
8998
|
+
return (await qe.post(e + "/getPlayableVersionMarketLink", {
|
|
8999
8999
|
_id: t
|
|
9000
9000
|
})).data;
|
|
9001
9001
|
}
|
|
9002
9002
|
async function Vd(t, e) {
|
|
9003
|
-
return (await
|
|
9003
|
+
return (await qe.post(e + "/getFlexData", { _id: t })).data;
|
|
9004
9004
|
}
|
|
9005
9005
|
async function Xd(t, e) {
|
|
9006
|
-
return (await
|
|
9006
|
+
return (await qe.post(e + "/getImportedPlayable", { id: t })).data;
|
|
9007
9007
|
}
|
|
9008
9008
|
async function Ud(t, e) {
|
|
9009
|
-
return (await
|
|
9009
|
+
return (await qe.post(e + "/getReadyDownloadCount", t)).data;
|
|
9010
9010
|
}
|
|
9011
9011
|
async function Qd(t, e) {
|
|
9012
9012
|
try {
|
|
9013
|
-
return (await
|
|
9013
|
+
return (await qe.post(e + "/findCustomer", { _id: t })).data;
|
|
9014
9014
|
} catch {
|
|
9015
9015
|
}
|
|
9016
9016
|
}
|
|
@@ -9050,16 +9050,16 @@ const Fd = ({
|
|
|
9050
9050
|
fileSize: u,
|
|
9051
9051
|
setFileSize: c,
|
|
9052
9052
|
setSafariCopyLink: f,
|
|
9053
|
-
iosLink:
|
|
9053
|
+
iosLink: p,
|
|
9054
9054
|
androidLink: g,
|
|
9055
9055
|
setIosLink: m,
|
|
9056
9056
|
setAndroidLink: v,
|
|
9057
|
-
urlType:
|
|
9058
|
-
setUrlType:
|
|
9057
|
+
urlType: b,
|
|
9058
|
+
setUrlType: Z
|
|
9059
9059
|
}) => {
|
|
9060
|
-
const [
|
|
9060
|
+
const [M, S] = _(null), [q, T] = _(null), [x, k] = _(null), [Y, W] = _(!1), [z, j] = _(!0), [B, E] = _(window.innerWidth), [L, G] = _(!1), [y, K] = _(!1), [U, w] = _("");
|
|
9061
9061
|
Ne(ua), Ne(Aa);
|
|
9062
|
-
const [
|
|
9062
|
+
const [I, X] = Ne(ca), [H, J] = Ne(pn);
|
|
9063
9063
|
Ze(() => {
|
|
9064
9064
|
!U && r !== "Fusion" && ud(e).then((D) => {
|
|
9065
9065
|
D != null && D.exist && w(D.uploadPath);
|
|
@@ -9069,36 +9069,36 @@ const Fd = ({
|
|
|
9069
9069
|
Ze(() => {
|
|
9070
9070
|
}, [P]), Ze(() => {
|
|
9071
9071
|
const D = () => {
|
|
9072
|
-
|
|
9072
|
+
E(window.innerWidth);
|
|
9073
9073
|
};
|
|
9074
9074
|
return window.addEventListener("resize", D), () => {
|
|
9075
9075
|
window.removeEventListener("resize", D);
|
|
9076
9076
|
};
|
|
9077
9077
|
}, []);
|
|
9078
9078
|
const F = async () => {
|
|
9079
|
-
|
|
9079
|
+
W(!0);
|
|
9080
9080
|
const D = await $r(t, s);
|
|
9081
|
-
return D != null && D.networks || (D.networks = Ps),
|
|
9081
|
+
return D != null && D.networks || (D.networks = Ps), S(D), D;
|
|
9082
9082
|
}, re = (D, V) => {
|
|
9083
9083
|
clearTimeout(Hs), Hs = setTimeout(() => {
|
|
9084
|
-
r === "Playable" && !H || Li(e, { iosUrl: D, googleUrl: V }, { urlType:
|
|
9084
|
+
r === "Playable" && !H || Li(e, { iosUrl: D, googleUrl: V }, { urlType: b });
|
|
9085
9085
|
}, 1e3);
|
|
9086
9086
|
}, le = (D) => {
|
|
9087
9087
|
m(D), re(D, g);
|
|
9088
9088
|
}, ee = (D) => {
|
|
9089
|
-
v(D), re(
|
|
9090
|
-
},
|
|
9089
|
+
v(D), re(p, D);
|
|
9090
|
+
}, be = async (D, V) => {
|
|
9091
9091
|
var ae, $;
|
|
9092
9092
|
try {
|
|
9093
9093
|
let oe;
|
|
9094
9094
|
if (r === "Playable" || r === "Ready") {
|
|
9095
9095
|
const ge = await Bd(e, s);
|
|
9096
9096
|
if (ge) {
|
|
9097
|
-
m(ge.iosLink), v(ge.androidLink),
|
|
9097
|
+
m(ge.iosLink), v(ge.androidLink), W(!1);
|
|
9098
9098
|
return;
|
|
9099
9099
|
}
|
|
9100
9100
|
if (D && (D.iosUrl || D.googleUrl)) {
|
|
9101
|
-
m(D.iosUrl), v(D.googleUrl),
|
|
9101
|
+
m(D.iosUrl), v(D.googleUrl), W(!1);
|
|
9102
9102
|
return;
|
|
9103
9103
|
}
|
|
9104
9104
|
if (V && V.html) {
|
|
@@ -9111,54 +9111,54 @@ const Fd = ({
|
|
|
9111
9111
|
const mn = (($ = kt.match(
|
|
9112
9112
|
/var\s+androidLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
9113
9113
|
)) == null ? void 0 : $.at(1)) || "";
|
|
9114
|
-
v(mn),
|
|
9114
|
+
v(mn), W(!1);
|
|
9115
9115
|
} else
|
|
9116
|
-
v(""), m(""),
|
|
9116
|
+
v(""), m(""), W(!1);
|
|
9117
9117
|
} else if (r === "Flex") {
|
|
9118
9118
|
const ge = await Vd(e, s);
|
|
9119
9119
|
if (ge.googleUrl || ge.iosUrl) {
|
|
9120
|
-
v(ge.googleUrl), m(ge.iosUrl),
|
|
9120
|
+
v(ge.googleUrl), m(ge.iosUrl), W(!1);
|
|
9121
9121
|
return;
|
|
9122
9122
|
}
|
|
9123
|
-
D && (D.iosUrl || D.googleUrl) ? (m(D.iosUrl), v(D.googleUrl),
|
|
9123
|
+
D && (D.iosUrl || D.googleUrl) ? (m(D.iosUrl), v(D.googleUrl), W(!1)) : (v(""), m(""), W(!1));
|
|
9124
9124
|
} else
|
|
9125
|
-
r === "Fusion" && (D && (D.iosUrl || D.googleUrl) ? (m(D.iosUrl), v(D.googleUrl),
|
|
9125
|
+
r === "Fusion" && (D && (D.iosUrl || D.googleUrl) ? (m(D.iosUrl), v(D.googleUrl), W(!1)) : (v(""), m(""), W(!1)));
|
|
9126
9126
|
} catch (oe) {
|
|
9127
9127
|
l(oe.response.data.error.msg);
|
|
9128
9128
|
}
|
|
9129
9129
|
}, R = async () => {
|
|
9130
|
-
|
|
9130
|
+
W(!0);
|
|
9131
9131
|
let D;
|
|
9132
9132
|
r === "Flex" ? D = await Pd({ _id: e }, s) : r === "Ready" && (D = await Ud({ _id: e }, s)), D && (["admin", "pm", "tester", "sales"].includes(o.role) ? k({
|
|
9133
9133
|
...D,
|
|
9134
|
-
networks:
|
|
9134
|
+
networks: I
|
|
9135
9135
|
}) : r === "Ready" && !D.canDownload ? k({
|
|
9136
9136
|
...D,
|
|
9137
9137
|
networks: Ps
|
|
9138
9138
|
}) : (console.log(D.networks, "emre colak"), k({
|
|
9139
9139
|
...D,
|
|
9140
9140
|
networks: D.networks.map((V) => V.value)
|
|
9141
|
-
}))),
|
|
9141
|
+
}))), W(!1);
|
|
9142
9142
|
}, we = async () => await Hd(n, s), [Me, Ee] = _(null), Je = async (D) => await Qd(D, s);
|
|
9143
9143
|
return Ze(() => {
|
|
9144
|
-
i || (
|
|
9144
|
+
i || (S(null), T(null), k(null), c(null), Ee(null)), i && (r === "Playable" ? we().then((D) => {
|
|
9145
9145
|
Je(D.customer).then((V) => {
|
|
9146
9146
|
Ee(V);
|
|
9147
9147
|
}), F().then((V) => {
|
|
9148
|
-
|
|
9149
|
-
}),
|
|
9148
|
+
be(null, V);
|
|
9149
|
+
}), j(!1);
|
|
9150
9150
|
}) : r === "Ready" ? R().then((D) => {
|
|
9151
9151
|
F().then((V) => {
|
|
9152
|
-
|
|
9152
|
+
be(null, V), j(!1);
|
|
9153
9153
|
});
|
|
9154
9154
|
}) : r === "Flex" ? R().then((D) => {
|
|
9155
|
-
|
|
9156
|
-
i && (
|
|
9155
|
+
j(!1), we().then((V) => {
|
|
9156
|
+
i && (be(V, null), j(!1), T(V));
|
|
9157
9157
|
});
|
|
9158
9158
|
}) : r === "Import" ? Xd(e, s).then((D) => {
|
|
9159
|
-
|
|
9160
|
-
}) : r === "Fusion" && (
|
|
9161
|
-
i && (
|
|
9159
|
+
S(D), m(D.iosUrl || ""), v(D.googleUrl || ""), W(!1), j(!1);
|
|
9160
|
+
}) : r === "Fusion" && (j(!1), we().then((D) => {
|
|
9161
|
+
i && (be(D, null), j(!1), D.networks = I.filter((V) => V !== "cdn"), T(D));
|
|
9162
9162
|
})));
|
|
9163
9163
|
}, [n, t, e, i]), /* @__PURE__ */ d.jsxs(
|
|
9164
9164
|
"div",
|
|
@@ -9180,7 +9180,7 @@ const Fd = ({
|
|
|
9180
9180
|
title: a,
|
|
9181
9181
|
typeOfProduct: r,
|
|
9182
9182
|
fileSize: u,
|
|
9183
|
-
urls: { iosUrl:
|
|
9183
|
+
urls: { iosUrl: p, googleUrl: g },
|
|
9184
9184
|
handleIosChange: le,
|
|
9185
9185
|
handleGoogleChange: ee,
|
|
9186
9186
|
disabled: z,
|
|
@@ -9189,8 +9189,8 @@ const Fd = ({
|
|
|
9189
9189
|
user: o,
|
|
9190
9190
|
isTest: L,
|
|
9191
9191
|
setIsTest: G,
|
|
9192
|
-
urlType:
|
|
9193
|
-
setUrlType:
|
|
9192
|
+
urlType: b,
|
|
9193
|
+
setUrlType: Z,
|
|
9194
9194
|
allNetworksSelected: P,
|
|
9195
9195
|
setAllNetworksSelected: Q
|
|
9196
9196
|
}
|
|
@@ -9207,10 +9207,10 @@ const Fd = ({
|
|
|
9207
9207
|
},
|
|
9208
9208
|
children: /* @__PURE__ */ d.jsx(sn, { isNetworksLoading: !0 })
|
|
9209
9209
|
}
|
|
9210
|
-
) : (
|
|
9210
|
+
) : (M || x || r === "Fusion") && (r === "Flex" ? q : !0) && !Y && p !== "Loading..." && g !== "Loading..." && /* @__PURE__ */ d.jsx(
|
|
9211
9211
|
Gd,
|
|
9212
9212
|
{
|
|
9213
|
-
playable:
|
|
9213
|
+
playable: M,
|
|
9214
9214
|
creditDownload: x,
|
|
9215
9215
|
visible: i,
|
|
9216
9216
|
versionId: e,
|
|
@@ -9219,13 +9219,13 @@ const Fd = ({
|
|
|
9219
9219
|
user: o,
|
|
9220
9220
|
handleDownloadError: l,
|
|
9221
9221
|
fetchFileUrl: A,
|
|
9222
|
-
urls: { iosUrl:
|
|
9222
|
+
urls: { iosUrl: p, googleUrl: g },
|
|
9223
9223
|
game: q,
|
|
9224
9224
|
getDownloadCount: R,
|
|
9225
9225
|
disabled: z,
|
|
9226
9226
|
setSafariCopyLink: f,
|
|
9227
9227
|
isTest: L,
|
|
9228
|
-
urlType:
|
|
9228
|
+
urlType: b,
|
|
9229
9229
|
allNetworksSelected: P,
|
|
9230
9230
|
cdnModal: y,
|
|
9231
9231
|
setCdnModal: K,
|
|
@@ -9264,33 +9264,33 @@ var ri = { exports: {} }, Et = {}, ii = { exports: {} }, nt = {}, si = { exports
|
|
|
9264
9264
|
if (f && !c.innerHTML)
|
|
9265
9265
|
return !0;
|
|
9266
9266
|
try {
|
|
9267
|
-
var
|
|
9268
|
-
return f ? g !== r && s(c,
|
|
9267
|
+
var p = window.getComputedStyle(c), g = p.getPropertyValue("display");
|
|
9268
|
+
return f ? g !== r && s(c, p) : g === n;
|
|
9269
9269
|
} catch {
|
|
9270
9270
|
return console.warn("Failed to inspect element style"), !1;
|
|
9271
9271
|
}
|
|
9272
9272
|
}
|
|
9273
9273
|
function a(c) {
|
|
9274
|
-
for (var f = c,
|
|
9275
|
-
if (
|
|
9274
|
+
for (var f = c, p = c.getRootNode && c.getRootNode(); f && f !== document.body; ) {
|
|
9275
|
+
if (p && f === p && (f = p.host.parentNode), o(f))
|
|
9276
9276
|
return !1;
|
|
9277
9277
|
f = f.parentNode;
|
|
9278
9278
|
}
|
|
9279
9279
|
return !0;
|
|
9280
9280
|
}
|
|
9281
9281
|
function l(c, f) {
|
|
9282
|
-
var
|
|
9282
|
+
var p = c.nodeName.toLowerCase(), g = i.test(p) && !c.disabled || p === "a" && c.href || f;
|
|
9283
9283
|
return g && a(c);
|
|
9284
9284
|
}
|
|
9285
9285
|
function A(c) {
|
|
9286
9286
|
var f = c.getAttribute("tabindex");
|
|
9287
9287
|
f === null && (f = void 0);
|
|
9288
|
-
var
|
|
9289
|
-
return (
|
|
9288
|
+
var p = isNaN(f);
|
|
9289
|
+
return (p || f >= 0) && l(c, !p);
|
|
9290
9290
|
}
|
|
9291
9291
|
function u(c) {
|
|
9292
|
-
var f = [].slice.call(c.querySelectorAll("*"), 0).reduce(function(
|
|
9293
|
-
return
|
|
9292
|
+
var f = [].slice.call(c.querySelectorAll("*"), 0).reduce(function(p, g) {
|
|
9293
|
+
return p.concat(g.shadowRoot ? u(g.shadowRoot) : [g]);
|
|
9294
9294
|
}, []);
|
|
9295
9295
|
return f.filter(A);
|
|
9296
9296
|
}
|
|
@@ -9378,21 +9378,21 @@ var ai = { exports: {} };
|
|
|
9378
9378
|
l.preventDefault();
|
|
9379
9379
|
return;
|
|
9380
9380
|
}
|
|
9381
|
-
var u = void 0, c = l.shiftKey, f = A[0],
|
|
9381
|
+
var u = void 0, c = l.shiftKey, f = A[0], p = A[A.length - 1], g = s();
|
|
9382
9382
|
if (a === g) {
|
|
9383
9383
|
if (!c)
|
|
9384
9384
|
return;
|
|
9385
|
-
u =
|
|
9385
|
+
u = p;
|
|
9386
9386
|
}
|
|
9387
|
-
if (
|
|
9387
|
+
if (p === g && !c && (u = f), f === g && c && (u = p), u) {
|
|
9388
9388
|
l.preventDefault(), u.focus();
|
|
9389
9389
|
return;
|
|
9390
9390
|
}
|
|
9391
9391
|
var m = /(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent), v = m != null && m[1] != "Chrome" && /\biPod\b|\biPad\b/g.exec(navigator.userAgent) == null;
|
|
9392
9392
|
if (v) {
|
|
9393
|
-
var
|
|
9394
|
-
if (
|
|
9395
|
-
l.preventDefault(), u = c ?
|
|
9393
|
+
var b = A.indexOf(g);
|
|
9394
|
+
if (b > -1 && (b += c ? -1 : 1), u = A[b], typeof u > "u") {
|
|
9395
|
+
l.preventDefault(), u = c ? p : f, u.focus();
|
|
9396
9396
|
return;
|
|
9397
9397
|
}
|
|
9398
9398
|
l.preventDefault(), u.focus();
|
|
@@ -9690,63 +9690,63 @@ Yf.default.subscribe(Tf);
|
|
|
9690
9690
|
Object.defineProperty(e, "__esModule", {
|
|
9691
9691
|
value: !0
|
|
9692
9692
|
});
|
|
9693
|
-
var n = Object.assign || function(
|
|
9693
|
+
var n = Object.assign || function(E) {
|
|
9694
9694
|
for (var L = 1; L < arguments.length; L++) {
|
|
9695
9695
|
var G = arguments[L];
|
|
9696
9696
|
for (var y in G)
|
|
9697
|
-
Object.prototype.hasOwnProperty.call(G, y) && (
|
|
9697
|
+
Object.prototype.hasOwnProperty.call(G, y) && (E[y] = G[y]);
|
|
9698
9698
|
}
|
|
9699
|
-
return
|
|
9700
|
-
}, r = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
9701
|
-
return typeof
|
|
9702
|
-
} : function(
|
|
9703
|
-
return
|
|
9699
|
+
return E;
|
|
9700
|
+
}, r = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(E) {
|
|
9701
|
+
return typeof E;
|
|
9702
|
+
} : function(E) {
|
|
9703
|
+
return E && typeof Symbol == "function" && E.constructor === Symbol && E !== Symbol.prototype ? "symbol" : typeof E;
|
|
9704
9704
|
}, i = function() {
|
|
9705
|
-
function
|
|
9705
|
+
function E(L, G) {
|
|
9706
9706
|
for (var y = 0; y < G.length; y++) {
|
|
9707
9707
|
var K = G[y];
|
|
9708
9708
|
K.enumerable = K.enumerable || !1, K.configurable = !0, "value" in K && (K.writable = !0), Object.defineProperty(L, K.key, K);
|
|
9709
9709
|
}
|
|
9710
9710
|
}
|
|
9711
9711
|
return function(L, G, y) {
|
|
9712
|
-
return G &&
|
|
9712
|
+
return G && E(L.prototype, G), y && E(L, y), L;
|
|
9713
9713
|
};
|
|
9714
|
-
}(), s = fe, o = _n, a = q(o), l = nt, A =
|
|
9715
|
-
function
|
|
9716
|
-
if (
|
|
9717
|
-
return
|
|
9714
|
+
}(), s = fe, o = _n, a = q(o), l = nt, A = S(l), u = uf, c = q(u), f = rt, p = S(f), g = Tt, m = S(g), v = et, b = q(v), Z = Gt, M = q(Z);
|
|
9715
|
+
function S(E) {
|
|
9716
|
+
if (E && E.__esModule)
|
|
9717
|
+
return E;
|
|
9718
9718
|
var L = {};
|
|
9719
|
-
if (
|
|
9720
|
-
for (var G in
|
|
9721
|
-
Object.prototype.hasOwnProperty.call(
|
|
9722
|
-
return L.default =
|
|
9719
|
+
if (E != null)
|
|
9720
|
+
for (var G in E)
|
|
9721
|
+
Object.prototype.hasOwnProperty.call(E, G) && (L[G] = E[G]);
|
|
9722
|
+
return L.default = E, L;
|
|
9723
9723
|
}
|
|
9724
|
-
function q(
|
|
9725
|
-
return
|
|
9724
|
+
function q(E) {
|
|
9725
|
+
return E && E.__esModule ? E : { default: E };
|
|
9726
9726
|
}
|
|
9727
|
-
function T(
|
|
9728
|
-
if (!(
|
|
9727
|
+
function T(E, L) {
|
|
9728
|
+
if (!(E instanceof L))
|
|
9729
9729
|
throw new TypeError("Cannot call a class as a function");
|
|
9730
9730
|
}
|
|
9731
|
-
function x(
|
|
9732
|
-
if (!
|
|
9731
|
+
function x(E, L) {
|
|
9732
|
+
if (!E)
|
|
9733
9733
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
9734
|
-
return L && (typeof L == "object" || typeof L == "function") ? L :
|
|
9734
|
+
return L && (typeof L == "object" || typeof L == "function") ? L : E;
|
|
9735
9735
|
}
|
|
9736
|
-
function k(
|
|
9736
|
+
function k(E, L) {
|
|
9737
9737
|
if (typeof L != "function" && L !== null)
|
|
9738
9738
|
throw new TypeError("Super expression must either be null or a function, not " + typeof L);
|
|
9739
|
-
|
|
9739
|
+
E.prototype = Object.create(L && L.prototype, { constructor: { value: E, enumerable: !1, writable: !0, configurable: !0 } }), L && (Object.setPrototypeOf ? Object.setPrototypeOf(E, L) : E.__proto__ = L);
|
|
9740
9740
|
}
|
|
9741
9741
|
var Y = {
|
|
9742
9742
|
overlay: "ReactModal__Overlay",
|
|
9743
9743
|
content: "ReactModal__Content"
|
|
9744
|
-
},
|
|
9744
|
+
}, W = function(L) {
|
|
9745
9745
|
return L.code === "Tab" || L.keyCode === 9;
|
|
9746
9746
|
}, z = function(L) {
|
|
9747
9747
|
return L.code === "Escape" || L.keyCode === 27;
|
|
9748
|
-
},
|
|
9749
|
-
k(L,
|
|
9748
|
+
}, j = 0, B = function(E) {
|
|
9749
|
+
k(L, E);
|
|
9750
9750
|
function L(G) {
|
|
9751
9751
|
T(this, L);
|
|
9752
9752
|
var y = x(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, G));
|
|
@@ -9755,8 +9755,8 @@ Yf.default.subscribe(Tf);
|
|
|
9755
9755
|
}, y.setContentRef = function(K) {
|
|
9756
9756
|
y.content = K, y.props.contentRef && y.props.contentRef(K);
|
|
9757
9757
|
}, y.afterClose = function() {
|
|
9758
|
-
var K = y.props, U = K.appElement, w = K.ariaHideApp,
|
|
9759
|
-
X && m.remove(J.body, X),
|
|
9758
|
+
var K = y.props, U = K.appElement, w = K.ariaHideApp, I = K.htmlOpenClassName, X = K.bodyOpenClassName, H = K.parentSelector, J = H && H().ownerDocument || document;
|
|
9759
|
+
X && m.remove(J.body, X), I && m.remove(J.getElementsByTagName("html")[0], I), w && j > 0 && (j -= 1, j === 0 && p.show(U)), y.props.shouldFocusAfterRender && (y.props.shouldReturnFocusAfterClose ? (A.returnFocus(y.props.preventScroll), A.teardownScopedFocus()) : A.popWithoutFocus()), y.props.onAfterClose && y.props.onAfterClose(), M.default.deregister(y);
|
|
9760
9760
|
}, y.open = function() {
|
|
9761
9761
|
y.beforeOpen(), y.state.afterOpen && y.state.beforeClose ? (clearTimeout(y.closeTimer), y.setState({ beforeClose: !1 })) : (y.props.shouldFocusAfterRender && (A.setupScopedFocus(y.node), A.markForFocusLater()), y.setState({ isOpen: !0 }, function() {
|
|
9762
9762
|
y.openAnimationFrame = requestAnimationFrame(function() {
|
|
@@ -9783,7 +9783,7 @@ Yf.default.subscribe(Tf);
|
|
|
9783
9783
|
closesAt: null
|
|
9784
9784
|
}, y.afterClose);
|
|
9785
9785
|
}, y.handleKeyDown = function(K) {
|
|
9786
|
-
|
|
9786
|
+
W(K) && (0, c.default)(y.content, K), y.props.shouldCloseOnEsc && z(K) && (K.stopPropagation(), y.requestClose(K));
|
|
9787
9787
|
}, y.handleOverlayOnClick = function(K) {
|
|
9788
9788
|
y.shouldClose === null && (y.shouldClose = !0), y.shouldClose && y.props.shouldCloseOnOverlayClick && (y.ownerHandlesClose() ? y.requestClose(K) : y.focusContent()), y.shouldClose = null;
|
|
9789
9789
|
}, y.handleContentOnMouseUp = function() {
|
|
@@ -9807,11 +9807,11 @@ Yf.default.subscribe(Tf);
|
|
|
9807
9807
|
base: Y[K],
|
|
9808
9808
|
afterOpen: Y[K] + "--after-open",
|
|
9809
9809
|
beforeClose: Y[K] + "--before-close"
|
|
9810
|
-
},
|
|
9811
|
-
return y.state.afterOpen && (
|
|
9810
|
+
}, I = w.base;
|
|
9811
|
+
return y.state.afterOpen && (I = I + " " + w.afterOpen), y.state.beforeClose && (I = I + " " + w.beforeClose), typeof U == "string" && U ? I + " " + U : I;
|
|
9812
9812
|
}, y.attributesFromObject = function(K, U) {
|
|
9813
|
-
return Object.keys(U).reduce(function(w,
|
|
9814
|
-
return w[K + "-" +
|
|
9813
|
+
return Object.keys(U).reduce(function(w, I) {
|
|
9814
|
+
return w[K + "-" + I] = U[I], w;
|
|
9815
9815
|
}, {});
|
|
9816
9816
|
}, y.state = {
|
|
9817
9817
|
afterOpen: !1,
|
|
@@ -9836,14 +9836,14 @@ Yf.default.subscribe(Tf);
|
|
|
9836
9836
|
}, {
|
|
9837
9837
|
key: "beforeOpen",
|
|
9838
9838
|
value: function() {
|
|
9839
|
-
var y = this.props, K = y.appElement, U = y.ariaHideApp, w = y.htmlOpenClassName,
|
|
9840
|
-
|
|
9839
|
+
var y = this.props, K = y.appElement, U = y.ariaHideApp, w = y.htmlOpenClassName, I = y.bodyOpenClassName, X = y.parentSelector, H = X && X().ownerDocument || document;
|
|
9840
|
+
I && m.add(H.body, I), w && m.add(H.getElementsByTagName("html")[0], w), U && (j += 1, p.hide(K)), M.default.register(this);
|
|
9841
9841
|
}
|
|
9842
9842
|
// Don't steal focus from inner elements
|
|
9843
9843
|
}, {
|
|
9844
9844
|
key: "render",
|
|
9845
9845
|
value: function() {
|
|
9846
|
-
var y = this.props, K = y.id, U = y.className, w = y.overlayClassName,
|
|
9846
|
+
var y = this.props, K = y.id, U = y.className, w = y.overlayClassName, I = y.defaultStyles, X = y.children, H = U ? {} : I.content, J = w ? {} : I.overlay;
|
|
9847
9847
|
if (this.shouldBeClosed())
|
|
9848
9848
|
return null;
|
|
9849
9849
|
var P = {
|
|
@@ -9893,7 +9893,7 @@ Yf.default.subscribe(Tf);
|
|
|
9893
9893
|
bodyOpenClassName: a.default.string,
|
|
9894
9894
|
htmlOpenClassName: a.default.string,
|
|
9895
9895
|
ariaHideApp: a.default.bool,
|
|
9896
|
-
appElement: a.default.oneOfType([a.default.instanceOf(
|
|
9896
|
+
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))]),
|
|
9897
9897
|
onAfterOpen: a.default.func,
|
|
9898
9898
|
onAfterClose: a.default.func,
|
|
9899
9899
|
onRequestClose: a.default.func,
|
|
@@ -12552,50 +12552,59 @@ Object.assign(Rn, {
|
|
|
12552
12552
|
connect: Rn
|
|
12553
12553
|
});
|
|
12554
12554
|
async function eh(t, e, n) {
|
|
12555
|
-
return (await
|
|
12555
|
+
return (await qe.post(n, {
|
|
12556
12556
|
versionId: t,
|
|
12557
12557
|
fileSize: e
|
|
12558
12558
|
})).data;
|
|
12559
12559
|
}
|
|
12560
|
-
|
|
12560
|
+
async function th(t, e) {
|
|
12561
|
+
return (await qe.post(e + "/getFileSize", t)).data;
|
|
12562
|
+
}
|
|
12563
|
+
const io = 5, nh = ({
|
|
12561
12564
|
setIsExceedingFileSizeAccepted: t,
|
|
12562
12565
|
closeModal: e,
|
|
12563
12566
|
setLoading: n,
|
|
12564
12567
|
typeOfProduct: r,
|
|
12565
12568
|
versionId: i,
|
|
12566
12569
|
fileSize: s,
|
|
12567
|
-
|
|
12568
|
-
|
|
12569
|
-
|
|
12570
|
+
setFileSize: o,
|
|
12571
|
+
user: a,
|
|
12572
|
+
compressApi: l,
|
|
12573
|
+
producerApi: A,
|
|
12574
|
+
api: u
|
|
12570
12575
|
}) => {
|
|
12571
|
-
const [
|
|
12576
|
+
const [c, f] = _(!1), [p, g] = _(!1);
|
|
12572
12577
|
Ze(() => {
|
|
12573
|
-
const
|
|
12578
|
+
const b = Rn(l, {
|
|
12574
12579
|
path: "/socket.io"
|
|
12575
12580
|
});
|
|
12576
|
-
return
|
|
12581
|
+
return b.on("connect", () => {
|
|
12577
12582
|
console.log("Connected to the socket server");
|
|
12578
|
-
}),
|
|
12579
|
-
console.log(
|
|
12580
|
-
|
|
12581
|
-
|
|
12583
|
+
}), b.on("video-compressing", async (Z) => {
|
|
12584
|
+
if (console.log(Z), Z.userId === a._id && Z.isSuccess) {
|
|
12585
|
+
console.log("Video compress successfull");
|
|
12586
|
+
const M = await th({ _id: i }, u);
|
|
12587
|
+
o(M.size), t(!1);
|
|
12588
|
+
}
|
|
12589
|
+
}), b.on("error", (Z) => {
|
|
12590
|
+
console.error("Socket error:", Z);
|
|
12582
12591
|
}), () => {
|
|
12583
|
-
|
|
12592
|
+
b.disconnect();
|
|
12584
12593
|
};
|
|
12585
12594
|
}, [i]);
|
|
12586
|
-
const
|
|
12595
|
+
const m = () => {
|
|
12587
12596
|
e(), t(!1), n(!0);
|
|
12588
|
-
},
|
|
12597
|
+
}, v = async () => {
|
|
12589
12598
|
try {
|
|
12590
|
-
|
|
12591
|
-
const
|
|
12599
|
+
f(!0);
|
|
12600
|
+
const b = await eh(
|
|
12592
12601
|
i,
|
|
12593
12602
|
s,
|
|
12594
|
-
`${
|
|
12603
|
+
`${A}/videos/compressByDiff`
|
|
12595
12604
|
);
|
|
12596
|
-
console.log("Compression result:",
|
|
12597
|
-
} catch (
|
|
12598
|
-
console.error("Error compressing video:",
|
|
12605
|
+
console.log("Compression result:", b), n(!1);
|
|
12606
|
+
} catch (b) {
|
|
12607
|
+
console.error("Error compressing video:", b), n(!1), e();
|
|
12599
12608
|
}
|
|
12600
12609
|
};
|
|
12601
12610
|
return /* @__PURE__ */ d.jsxs(
|
|
@@ -12603,7 +12612,7 @@ const io = 5, th = ({
|
|
|
12603
12612
|
{
|
|
12604
12613
|
isOpen: !0,
|
|
12605
12614
|
ariaHideApp: !1,
|
|
12606
|
-
onRequestClose:
|
|
12615
|
+
onRequestClose: m,
|
|
12607
12616
|
style: {
|
|
12608
12617
|
content: {
|
|
12609
12618
|
position: "absolute",
|
|
@@ -12635,7 +12644,7 @@ const io = 5, th = ({
|
|
|
12635
12644
|
"div",
|
|
12636
12645
|
{
|
|
12637
12646
|
className: "pointer-events-auto absolute flex h-10 w-10 cursor-pointer items-center justify-center rounded-sm bg-white hover:bg-dark-10",
|
|
12638
|
-
onClick:
|
|
12647
|
+
onClick: m,
|
|
12639
12648
|
children: /* @__PURE__ */ d.jsx("img", { src: oo, alt: "close image" })
|
|
12640
12649
|
}
|
|
12641
12650
|
) }),
|
|
@@ -12649,26 +12658,26 @@ const io = 5, th = ({
|
|
|
12649
12658
|
) }) }),
|
|
12650
12659
|
/* @__PURE__ */ d.jsx("div", { className: "mb-5 h-[50px] w-full", children: /* @__PURE__ */ d.jsx("div", { className: "flex h-full w-full items-center justify-center", children: /* @__PURE__ */ d.jsx("span", { className: "text-3xl font-bold text-flex-purple", children: "Playable Size Too Big" }) }) }),
|
|
12651
12660
|
/* @__PURE__ */ d.jsx("div", { className: "mb-3 h-[50px] w-full", children: /* @__PURE__ */ d.jsxs("div", { className: "flex h-full w-full items-center justify-center", children: [
|
|
12652
|
-
!
|
|
12661
|
+
!p && !c && /* @__PURE__ */ d.jsxs("span", { className: "text-center align-middle text-lg text-black", children: [
|
|
12653
12662
|
"Your playable exceeds the 5MB limit.",
|
|
12654
12663
|
/* @__PURE__ */ d.jsx("br", {}),
|
|
12655
12664
|
"You can compress it to reduce the size automatically,",
|
|
12656
12665
|
/* @__PURE__ */ d.jsx("br", {}),
|
|
12657
12666
|
"or go back and edit your content manually"
|
|
12658
12667
|
] }),
|
|
12659
|
-
!
|
|
12668
|
+
!p && c && /* @__PURE__ */ d.jsxs("span", { className: "text-center align-middle text-lg text-black", children: [
|
|
12660
12669
|
"Your playable exceeds the 5MB limit.",
|
|
12661
12670
|
/* @__PURE__ */ d.jsx("br", {}),
|
|
12662
12671
|
"Compressing to reduce size..."
|
|
12663
12672
|
] }),
|
|
12664
|
-
|
|
12673
|
+
p && !c && /* @__PURE__ */ d.jsx("span", { className: "text-center align-middle text-lg text-black", children: "Your playable is now under 5 MB and ready to export" })
|
|
12665
12674
|
] }) }),
|
|
12666
12675
|
/* @__PURE__ */ d.jsxs("div", { className: "my-5 flex h-[53px] w-full flex-row justify-center ", children: [
|
|
12667
12676
|
/* @__PURE__ */ d.jsx(
|
|
12668
12677
|
"div",
|
|
12669
12678
|
{
|
|
12670
12679
|
className: "pointer-events-auto mr-3 flex h-full w-[180px] items-center justify-center rounded-md border border-red-600 transition-all hover:scale-105 cursor-pointer",
|
|
12671
|
-
onClick:
|
|
12680
|
+
onClick: m,
|
|
12672
12681
|
children: /* @__PURE__ */ d.jsx("span", { className: "text-center align-middle text-xl font-bold text-red-600", children: "Cancel" })
|
|
12673
12682
|
}
|
|
12674
12683
|
),
|
|
@@ -12680,14 +12689,13 @@ const io = 5, th = ({
|
|
|
12680
12689
|
backgroundColor: Ke[r]
|
|
12681
12690
|
},
|
|
12682
12691
|
onClick: () => {
|
|
12683
|
-
r === "Flex" && !
|
|
12692
|
+
r === "Flex" && !p ? v() : t(!1);
|
|
12684
12693
|
},
|
|
12685
12694
|
children: /* @__PURE__ */ d.jsxs("span", { className: "text-center align-middle text-xl font-bold text-white", children: [
|
|
12686
|
-
r === "Flex" &&
|
|
12687
|
-
r === "Flex" && !
|
|
12688
|
-
r === "Flex" && !
|
|
12689
|
-
r
|
|
12690
|
-
r !== "Flex" && !A && c && "Export",
|
|
12695
|
+
r === "Flex" && c && !p && "Compressing...",
|
|
12696
|
+
r === "Flex" && !c && !p && s - io < 2 && "Compress",
|
|
12697
|
+
r === "Flex" && !c && !p && s - io >= 2 && "Continue",
|
|
12698
|
+
r !== "Flex" && !c && p && "Export",
|
|
12691
12699
|
r !== "Flex" && "Continue"
|
|
12692
12700
|
] })
|
|
12693
12701
|
}
|
|
@@ -12696,7 +12704,7 @@ const io = 5, th = ({
|
|
|
12696
12704
|
]
|
|
12697
12705
|
}
|
|
12698
12706
|
);
|
|
12699
|
-
},
|
|
12707
|
+
}, rh = ({ onClose: t, url: e }) => /* @__PURE__ */ d.jsxs(
|
|
12700
12708
|
"div",
|
|
12701
12709
|
{
|
|
12702
12710
|
style: {
|
|
@@ -12813,12 +12821,12 @@ const io = 5, th = ({
|
|
|
12813
12821
|
]
|
|
12814
12822
|
}
|
|
12815
12823
|
);
|
|
12816
|
-
async function
|
|
12817
|
-
return (await
|
|
12824
|
+
async function ih(t, e) {
|
|
12825
|
+
return (await qe.post(t + "/getNetworks", {
|
|
12818
12826
|
typeOfProduct: e
|
|
12819
12827
|
})).data;
|
|
12820
12828
|
}
|
|
12821
|
-
const
|
|
12829
|
+
const lh = ({
|
|
12822
12830
|
visible: t,
|
|
12823
12831
|
closeModal: e,
|
|
12824
12832
|
versionId: n,
|
|
@@ -12832,13 +12840,13 @@ const ah = ({
|
|
|
12832
12840
|
iframeUrl: u,
|
|
12833
12841
|
handleDownloadError: c,
|
|
12834
12842
|
fetchFileUrl: f,
|
|
12835
|
-
copyLinkUrl:
|
|
12843
|
+
copyLinkUrl: p,
|
|
12836
12844
|
fusionData: g
|
|
12837
12845
|
}) => {
|
|
12838
|
-
const [m, v] = _(window.innerWidth), [
|
|
12839
|
-
ad(o, a,
|
|
12846
|
+
const [m, v] = _(window.innerWidth), [b, Z] = _(!1), [M, S] = _(u), [q, T] = _(!1), [x, k] = _(!0), [Y, W] = _(null), [z, j] = _(""), [B, E] = _("Loading..."), [L, G] = _("Loading..."), [y, K] = _("game"), [U, w] = Ne(ki), [I, X] = Ne(ca);
|
|
12847
|
+
ad(o, a, j, f, g);
|
|
12840
12848
|
const H = async () => {
|
|
12841
|
-
let J = await
|
|
12849
|
+
let J = await ih(a, o);
|
|
12842
12850
|
if (!J) {
|
|
12843
12851
|
id("Networks not found");
|
|
12844
12852
|
return;
|
|
@@ -12846,11 +12854,11 @@ const ah = ({
|
|
|
12846
12854
|
J = J.map((P) => (P.name = P.id, P)), w(J), X(
|
|
12847
12855
|
J.map((P) => P.id).filter((P) => P !== "default")
|
|
12848
12856
|
), ld(J), ln(n, "preview", null, null, !1).then((P) => {
|
|
12849
|
-
|
|
12857
|
+
Z(!0), S(f + "/" + P.url), (o === "Flex" || o === "Ready" || o === "Playable" || o === "Fusion") && (P.size >= 5 ? T(!0) : T(!1), W(P.size)), k(!1);
|
|
12850
12858
|
});
|
|
12851
12859
|
};
|
|
12852
12860
|
return Ze(() => {
|
|
12853
|
-
t ?
|
|
12861
|
+
t ? b || (H(), Z(!0)) : (Z(!1), S(""));
|
|
12854
12862
|
}, [t]), Ze(() => {
|
|
12855
12863
|
const J = () => {
|
|
12856
12864
|
v(window.innerWidth);
|
|
@@ -12924,7 +12932,7 @@ const ah = ({
|
|
|
12924
12932
|
},
|
|
12925
12933
|
children: [
|
|
12926
12934
|
q && t && /* @__PURE__ */ d.jsx(
|
|
12927
|
-
|
|
12935
|
+
nh,
|
|
12928
12936
|
{
|
|
12929
12937
|
setIsExceedingFileSizeAccepted: T,
|
|
12930
12938
|
closeModal: e,
|
|
@@ -12932,9 +12940,11 @@ const ah = ({
|
|
|
12932
12940
|
typeOfProduct: o,
|
|
12933
12941
|
versionId: n,
|
|
12934
12942
|
fileSize: Y,
|
|
12943
|
+
setFileSize: W,
|
|
12935
12944
|
user: l,
|
|
12936
12945
|
compressApi: a.includes(".com") ? "https://compress.playablefactory.com" : "https://compress.playablefactory.app",
|
|
12937
|
-
producerApi: a.includes(".com") ? "https://compress.playablefactory.com" : "https://compress.playablefactory.app"
|
|
12946
|
+
producerApi: a.includes(".com") ? "https://compress.playablefactory.com" : "https://compress.playablefactory.app",
|
|
12947
|
+
api: a
|
|
12938
12948
|
}
|
|
12939
12949
|
),
|
|
12940
12950
|
!q && /* @__PURE__ */ d.jsxs(
|
|
@@ -13002,18 +13012,18 @@ const ah = ({
|
|
|
13002
13012
|
}
|
|
13003
13013
|
),
|
|
13004
13014
|
/* @__PURE__ */ d.jsxs(Al, { children: [
|
|
13005
|
-
|
|
13015
|
+
b ? /* @__PURE__ */ d.jsx(
|
|
13006
13016
|
xd,
|
|
13007
13017
|
{
|
|
13008
13018
|
versionName: i,
|
|
13009
13019
|
versionId: n,
|
|
13010
13020
|
playableId: s || "",
|
|
13011
13021
|
typeOfProduct: o,
|
|
13012
|
-
iframeUrl:
|
|
13022
|
+
iframeUrl: M,
|
|
13013
13023
|
api: a,
|
|
13014
13024
|
fetchFileUrl: f,
|
|
13015
|
-
copyLinkUrl:
|
|
13016
|
-
setSafariCopyLink:
|
|
13025
|
+
copyLinkUrl: p,
|
|
13026
|
+
setSafariCopyLink: j,
|
|
13017
13027
|
iosLink: B,
|
|
13018
13028
|
androidLink: L,
|
|
13019
13029
|
urlType: y
|
|
@@ -13058,11 +13068,11 @@ const ah = ({
|
|
|
13058
13068
|
handleDownloadError: c,
|
|
13059
13069
|
fetchFileUrl: f,
|
|
13060
13070
|
fileSize: Y,
|
|
13061
|
-
setFileSize:
|
|
13062
|
-
setSafariCopyLink:
|
|
13071
|
+
setFileSize: W,
|
|
13072
|
+
setSafariCopyLink: j,
|
|
13063
13073
|
iosLink: B,
|
|
13064
13074
|
androidLink: L,
|
|
13065
|
-
setIosLink:
|
|
13075
|
+
setIosLink: E,
|
|
13066
13076
|
setAndroidLink: G,
|
|
13067
13077
|
urlType: y,
|
|
13068
13078
|
setUrlType: K
|
|
@@ -13071,10 +13081,10 @@ const ah = ({
|
|
|
13071
13081
|
] }),
|
|
13072
13082
|
/* @__PURE__ */ d.jsx(_r, {}),
|
|
13073
13083
|
z && /* @__PURE__ */ d.jsx(
|
|
13074
|
-
|
|
13084
|
+
rh,
|
|
13075
13085
|
{
|
|
13076
13086
|
onClose: () => {
|
|
13077
|
-
Dt(z),
|
|
13087
|
+
Dt(z), j("");
|
|
13078
13088
|
},
|
|
13079
13089
|
url: z
|
|
13080
13090
|
}
|
|
@@ -13101,6 +13111,6 @@ const ah = ({
|
|
|
13101
13111
|
);
|
|
13102
13112
|
};
|
|
13103
13113
|
export {
|
|
13104
|
-
|
|
13114
|
+
lh as DownloadModal
|
|
13105
13115
|
};
|
|
13106
13116
|
//# sourceMappingURL=index.es.js.map
|