@obb871001/api-integration-sdk 1.0.387 → 1.0.389
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.cjs +7 -7
- package/dist/index.js +877 -870
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useQueries as zn, useQuery as
|
|
1
|
+
import fe, { createContext as jt, useContext as _i, useState as Xa, useMemo as Ba, useCallback as H, useRef as ae, useEffect as ue } from "react";
|
|
2
|
+
import { useQueries as zn, useQuery as j, useQueryClient as xa, useMutation as X, QueryClient as Wr, QueryClientProvider as zr } from "@tanstack/react-query";
|
|
3
3
|
import Ir from "axios";
|
|
4
|
-
import { get as
|
|
4
|
+
import { get as Q, find as Ve, isEmpty as Le, entries as In, forEach as Vr, map as Ge, isArray as ea, toLower as Ei, omit as Jr, keyBy as Zr, replace as nt, includes as Kr, isObject as Yt, flatMap as Xt, values as qr, keys as Ni } from "lodash";
|
|
5
5
|
import $r from "react-dom";
|
|
6
6
|
var ii = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7
7
|
function yi(e) {
|
|
@@ -36,7 +36,7 @@ var Li;
|
|
|
36
36
|
function jr() {
|
|
37
37
|
if (Li) return Ka;
|
|
38
38
|
Li = 1;
|
|
39
|
-
var e =
|
|
39
|
+
var e = fe, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, p = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
40
40
|
function U(d, l, t) {
|
|
41
41
|
var i, o = {}, s = null, u = null;
|
|
42
42
|
t !== void 0 && (s = "" + t), l.key !== void 0 && (s = "" + l.key), l.ref !== void 0 && (u = l.ref);
|
|
@@ -50,7 +50,7 @@ var qa = {};
|
|
|
50
50
|
var Gi;
|
|
51
51
|
function Yr() {
|
|
52
52
|
return Gi || (Gi = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
53
|
-
var e =
|
|
53
|
+
var e = fe, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), U = Symbol.for("react.provider"), d = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), t = Symbol.for("react.suspense"), i = Symbol.for("react.suspense_list"), o = Symbol.for("react.memo"), s = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), m = Symbol.iterator, _ = "@@iterator";
|
|
54
54
|
function c(x) {
|
|
55
55
|
if (x === null || typeof x != "object")
|
|
56
56
|
return null;
|
|
@@ -69,10 +69,10 @@ function Yr() {
|
|
|
69
69
|
{
|
|
70
70
|
var Y = y.ReactDebugCurrentFrame, me = Y.getStackAddendum();
|
|
71
71
|
me !== "" && (I += "%s", Z = Z.concat([me]));
|
|
72
|
-
var
|
|
72
|
+
var ge = Z.map(function(oe) {
|
|
73
73
|
return String(oe);
|
|
74
74
|
});
|
|
75
|
-
|
|
75
|
+
ge.unshift("Warning: " + I), Function.prototype.apply.call(console[x], console, ge);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
var C = !1, v = !1, S = !1, E = !1, M = !1, A;
|
|
@@ -91,10 +91,10 @@ function Yr() {
|
|
|
91
91
|
var me = I.displayName || I.name || "";
|
|
92
92
|
return me !== "" ? Z + "(" + me + ")" : Z;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function F(x) {
|
|
95
95
|
return x.displayName || "Context";
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function P(x) {
|
|
98
98
|
if (x == null)
|
|
99
99
|
return null;
|
|
100
100
|
if (typeof x.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof x == "function")
|
|
@@ -119,19 +119,19 @@ function Yr() {
|
|
|
119
119
|
switch (x.$$typeof) {
|
|
120
120
|
case d:
|
|
121
121
|
var I = x;
|
|
122
|
-
return
|
|
122
|
+
return F(I) + ".Consumer";
|
|
123
123
|
case U:
|
|
124
124
|
var Z = x;
|
|
125
|
-
return
|
|
125
|
+
return F(Z._context) + ".Provider";
|
|
126
126
|
case l:
|
|
127
127
|
return D(x, x.render, "ForwardRef");
|
|
128
128
|
case o:
|
|
129
129
|
var Y = x.displayName || null;
|
|
130
|
-
return Y !== null ? Y :
|
|
130
|
+
return Y !== null ? Y : P(x.type) || "Memo";
|
|
131
131
|
case s: {
|
|
132
|
-
var me = x,
|
|
132
|
+
var me = x, ge = me._payload, oe = me._init;
|
|
133
133
|
try {
|
|
134
|
-
return
|
|
134
|
+
return P(oe(ge));
|
|
135
135
|
} catch {
|
|
136
136
|
return null;
|
|
137
137
|
}
|
|
@@ -139,14 +139,14 @@ function Yr() {
|
|
|
139
139
|
}
|
|
140
140
|
return null;
|
|
141
141
|
}
|
|
142
|
-
var
|
|
142
|
+
var w = Object.assign, R = 0, G, B, O, W, z, h, T;
|
|
143
143
|
function N() {
|
|
144
144
|
}
|
|
145
145
|
N.__reactDisabledLog = !0;
|
|
146
146
|
function L() {
|
|
147
147
|
{
|
|
148
|
-
if (
|
|
149
|
-
|
|
148
|
+
if (R === 0) {
|
|
149
|
+
G = console.log, B = console.info, O = console.warn, W = console.error, z = console.group, h = console.groupCollapsed, T = console.groupEnd;
|
|
150
150
|
var x = {
|
|
151
151
|
configurable: !0,
|
|
152
152
|
enumerable: !0,
|
|
@@ -163,56 +163,56 @@ function Yr() {
|
|
|
163
163
|
groupEnd: x
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
-
|
|
166
|
+
R++;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function q() {
|
|
170
170
|
{
|
|
171
|
-
if (
|
|
171
|
+
if (R--, R === 0) {
|
|
172
172
|
var x = {
|
|
173
173
|
configurable: !0,
|
|
174
174
|
enumerable: !0,
|
|
175
175
|
writable: !0
|
|
176
176
|
};
|
|
177
177
|
Object.defineProperties(console, {
|
|
178
|
-
log:
|
|
179
|
-
value:
|
|
178
|
+
log: w({}, x, {
|
|
179
|
+
value: G
|
|
180
180
|
}),
|
|
181
|
-
info:
|
|
181
|
+
info: w({}, x, {
|
|
182
182
|
value: B
|
|
183
183
|
}),
|
|
184
|
-
warn:
|
|
184
|
+
warn: w({}, x, {
|
|
185
185
|
value: O
|
|
186
186
|
}),
|
|
187
|
-
error:
|
|
187
|
+
error: w({}, x, {
|
|
188
188
|
value: W
|
|
189
189
|
}),
|
|
190
|
-
group:
|
|
190
|
+
group: w({}, x, {
|
|
191
191
|
value: z
|
|
192
192
|
}),
|
|
193
|
-
groupCollapsed:
|
|
194
|
-
value: T
|
|
195
|
-
}),
|
|
196
|
-
groupEnd: F({}, x, {
|
|
193
|
+
groupCollapsed: w({}, x, {
|
|
197
194
|
value: h
|
|
195
|
+
}),
|
|
196
|
+
groupEnd: w({}, x, {
|
|
197
|
+
value: T
|
|
198
198
|
})
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
|
-
|
|
201
|
+
R < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var
|
|
204
|
+
var J = y.ReactCurrentDispatcher, $;
|
|
205
205
|
function K(x, I, Z) {
|
|
206
206
|
{
|
|
207
|
-
if (
|
|
207
|
+
if ($ === void 0)
|
|
208
208
|
try {
|
|
209
209
|
throw Error();
|
|
210
210
|
} catch (me) {
|
|
211
211
|
var Y = me.stack.trim().match(/\n( *(at )?)/);
|
|
212
|
-
|
|
212
|
+
$ = Y && Y[1] || "";
|
|
213
213
|
}
|
|
214
214
|
return `
|
|
215
|
-
` +
|
|
215
|
+
` + $ + x;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
var te = !1, le;
|
|
@@ -232,8 +232,8 @@ function Yr() {
|
|
|
232
232
|
te = !0;
|
|
233
233
|
var me = Error.prepareStackTrace;
|
|
234
234
|
Error.prepareStackTrace = void 0;
|
|
235
|
-
var
|
|
236
|
-
|
|
235
|
+
var ge;
|
|
236
|
+
ge = J.current, J.current = null, L();
|
|
237
237
|
try {
|
|
238
238
|
if (I) {
|
|
239
239
|
var oe = function() {
|
|
@@ -246,37 +246,37 @@ function Yr() {
|
|
|
246
246
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
247
247
|
try {
|
|
248
248
|
Reflect.construct(oe, []);
|
|
249
|
-
} catch (
|
|
250
|
-
Y =
|
|
249
|
+
} catch (Ie) {
|
|
250
|
+
Y = Ie;
|
|
251
251
|
}
|
|
252
252
|
Reflect.construct(x, [], oe);
|
|
253
253
|
} else {
|
|
254
254
|
try {
|
|
255
255
|
oe.call();
|
|
256
|
-
} catch (
|
|
257
|
-
Y =
|
|
256
|
+
} catch (Ie) {
|
|
257
|
+
Y = Ie;
|
|
258
258
|
}
|
|
259
259
|
x.call(oe.prototype);
|
|
260
260
|
}
|
|
261
261
|
} else {
|
|
262
262
|
try {
|
|
263
263
|
throw Error();
|
|
264
|
-
} catch (
|
|
265
|
-
Y =
|
|
264
|
+
} catch (Ie) {
|
|
265
|
+
Y = Ie;
|
|
266
266
|
}
|
|
267
267
|
x();
|
|
268
268
|
}
|
|
269
|
-
} catch (
|
|
270
|
-
if (
|
|
271
|
-
for (var ie =
|
|
272
|
-
`),
|
|
273
|
-
`), ve = ie.length - 1, Te =
|
|
269
|
+
} catch (Ie) {
|
|
270
|
+
if (Ie && Y && typeof Ie.stack == "string") {
|
|
271
|
+
for (var ie = Ie.stack.split(`
|
|
272
|
+
`), He = Y.stack.split(`
|
|
273
|
+
`), ve = ie.length - 1, Te = He.length - 1; ve >= 1 && Te >= 0 && ie[ve] !== He[Te]; )
|
|
274
274
|
Te--;
|
|
275
275
|
for (; ve >= 1 && Te >= 0; ve--, Te--)
|
|
276
|
-
if (ie[ve] !==
|
|
276
|
+
if (ie[ve] !== He[Te]) {
|
|
277
277
|
if (ve !== 1 || Te !== 1)
|
|
278
278
|
do
|
|
279
|
-
if (ve--, Te--, Te < 0 || ie[ve] !==
|
|
279
|
+
if (ve--, Te--, Te < 0 || ie[ve] !== He[Te]) {
|
|
280
280
|
var $e = `
|
|
281
281
|
` + ie[ve].replace(" at new ", " at ");
|
|
282
282
|
return x.displayName && $e.includes("<anonymous>") && ($e = $e.replace("<anonymous>", x.displayName)), typeof x == "function" && le.set(x, $e), $e;
|
|
@@ -286,7 +286,7 @@ function Yr() {
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
} finally {
|
|
289
|
-
te = !1,
|
|
289
|
+
te = !1, J.current = ge, q(), Error.prepareStackTrace = me;
|
|
290
290
|
}
|
|
291
291
|
var Pa = x ? x.displayName || x.name : "", ba = Pa ? K(Pa) : "";
|
|
292
292
|
return typeof x == "function" && le.set(x, ba), ba;
|
|
@@ -294,15 +294,15 @@ function Yr() {
|
|
|
294
294
|
function pe(x, I, Z) {
|
|
295
295
|
return Ce(x, !1);
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function ye(x) {
|
|
298
298
|
var I = x.prototype;
|
|
299
299
|
return !!(I && I.isReactComponent);
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function ce(x, I, Z) {
|
|
302
302
|
if (x == null)
|
|
303
303
|
return "";
|
|
304
304
|
if (typeof x == "function")
|
|
305
|
-
return Ce(x,
|
|
305
|
+
return Ce(x, ye(x));
|
|
306
306
|
if (typeof x == "string")
|
|
307
307
|
return K(x);
|
|
308
308
|
switch (x) {
|
|
@@ -316,49 +316,49 @@ function Yr() {
|
|
|
316
316
|
case l:
|
|
317
317
|
return pe(x.render);
|
|
318
318
|
case o:
|
|
319
|
-
return
|
|
319
|
+
return ce(x.type, I, Z);
|
|
320
320
|
case s: {
|
|
321
|
-
var Y = x, me = Y._payload,
|
|
321
|
+
var Y = x, me = Y._payload, ge = Y._init;
|
|
322
322
|
try {
|
|
323
|
-
return
|
|
323
|
+
return ce(ge(me), I, Z);
|
|
324
324
|
} catch {
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
return "";
|
|
329
329
|
}
|
|
330
|
-
var
|
|
331
|
-
function
|
|
330
|
+
var _e = Object.prototype.hasOwnProperty, we = {}, de = y.ReactDebugCurrentFrame;
|
|
331
|
+
function xe(x) {
|
|
332
332
|
if (x) {
|
|
333
|
-
var I = x._owner, Z =
|
|
334
|
-
|
|
333
|
+
var I = x._owner, Z = ce(x.type, x._source, I ? I.type : null);
|
|
334
|
+
de.setExtraStackFrame(Z);
|
|
335
335
|
} else
|
|
336
|
-
|
|
336
|
+
de.setExtraStackFrame(null);
|
|
337
337
|
}
|
|
338
338
|
function aa(x, I, Z, Y, me) {
|
|
339
339
|
{
|
|
340
|
-
var
|
|
340
|
+
var ge = Function.call.bind(_e);
|
|
341
341
|
for (var oe in x)
|
|
342
|
-
if (
|
|
342
|
+
if (ge(x, oe)) {
|
|
343
343
|
var ie = void 0;
|
|
344
344
|
try {
|
|
345
345
|
if (typeof x[oe] != "function") {
|
|
346
|
-
var
|
|
347
|
-
throw
|
|
346
|
+
var He = Error((Y || "React class") + ": " + Z + " type `" + oe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof x[oe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
347
|
+
throw He.name = "Invariant Violation", He;
|
|
348
348
|
}
|
|
349
349
|
ie = x[oe](I, oe, Y, Z, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
350
350
|
} catch (ve) {
|
|
351
351
|
ie = ve;
|
|
352
352
|
}
|
|
353
|
-
ie && !(ie instanceof Error) && (
|
|
353
|
+
ie && !(ie instanceof Error) && (xe(me), f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Y || "React class", Z, oe, typeof ie), xe(null)), ie instanceof Error && !(ie.message in we) && (we[ie.message] = !0, xe(me), f("Failed %s type: %s", Z, ie.message), xe(null));
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
var
|
|
357
|
+
var Fe = Array.isArray;
|
|
358
358
|
function he(x) {
|
|
359
|
-
return
|
|
359
|
+
return Fe(x);
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function ze(x) {
|
|
362
362
|
{
|
|
363
363
|
var I = typeof Symbol == "function" && Symbol.toStringTag, Z = I && x[Symbol.toStringTag] || x.constructor.name || "Object";
|
|
364
364
|
return Z;
|
|
@@ -374,18 +374,18 @@ function Yr() {
|
|
|
374
374
|
function ia(x) {
|
|
375
375
|
return "" + x;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function Se(x) {
|
|
378
378
|
if (ta(x))
|
|
379
|
-
return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
379
|
+
return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ze(x)), ia(x);
|
|
380
380
|
}
|
|
381
|
-
var
|
|
381
|
+
var Ae = y.ReactCurrentOwner, je = {
|
|
382
382
|
key: !0,
|
|
383
383
|
ref: !0,
|
|
384
384
|
__self: !0,
|
|
385
385
|
__source: !0
|
|
386
386
|
}, oa, ga;
|
|
387
387
|
function Je(x) {
|
|
388
|
-
if (
|
|
388
|
+
if (_e.call(x, "ref")) {
|
|
389
389
|
var I = Object.getOwnPropertyDescriptor(x, "ref").get;
|
|
390
390
|
if (I && I.isReactWarning)
|
|
391
391
|
return !1;
|
|
@@ -393,7 +393,7 @@ function Yr() {
|
|
|
393
393
|
return x.ref !== void 0;
|
|
394
394
|
}
|
|
395
395
|
function Ye(x) {
|
|
396
|
-
if (
|
|
396
|
+
if (_e.call(x, "key")) {
|
|
397
397
|
var I = Object.getOwnPropertyDescriptor(x, "key").get;
|
|
398
398
|
if (I && I.isReactWarning)
|
|
399
399
|
return !1;
|
|
@@ -401,7 +401,7 @@ function Yr() {
|
|
|
401
401
|
return x.key !== void 0;
|
|
402
402
|
}
|
|
403
403
|
function Va(x, I) {
|
|
404
|
-
typeof x.ref == "string" &&
|
|
404
|
+
typeof x.ref == "string" && Ae.current;
|
|
405
405
|
}
|
|
406
406
|
function Ea(x, I) {
|
|
407
407
|
{
|
|
@@ -425,7 +425,7 @@ function Yr() {
|
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
var Ja = function(x, I, Z, Y, me,
|
|
428
|
+
var Ja = function(x, I, Z, Y, me, ge, oe) {
|
|
429
429
|
var ie = {
|
|
430
430
|
// This tag allows us to uniquely identify this as a React Element
|
|
431
431
|
$$typeof: n,
|
|
@@ -435,7 +435,7 @@ function Yr() {
|
|
|
435
435
|
ref: Z,
|
|
436
436
|
props: oe,
|
|
437
437
|
// Record the component responsible for creating this element.
|
|
438
|
-
_owner:
|
|
438
|
+
_owner: ge
|
|
439
439
|
};
|
|
440
440
|
return ie._store = {}, Object.defineProperty(ie._store, "validated", {
|
|
441
441
|
configurable: !1,
|
|
@@ -456,26 +456,26 @@ function Yr() {
|
|
|
456
456
|
};
|
|
457
457
|
function Za(x, I, Z, Y, me) {
|
|
458
458
|
{
|
|
459
|
-
var
|
|
460
|
-
Z !== void 0 && (
|
|
461
|
-
for (
|
|
462
|
-
|
|
459
|
+
var ge, oe = {}, ie = null, He = null;
|
|
460
|
+
Z !== void 0 && (Se(Z), ie = "" + Z), Ye(I) && (Se(I.key), ie = "" + I.key), Je(I) && (He = I.ref, Va(I, me));
|
|
461
|
+
for (ge in I)
|
|
462
|
+
_e.call(I, ge) && !je.hasOwnProperty(ge) && (oe[ge] = I[ge]);
|
|
463
463
|
if (x && x.defaultProps) {
|
|
464
464
|
var ve = x.defaultProps;
|
|
465
|
-
for (
|
|
466
|
-
oe[
|
|
465
|
+
for (ge in ve)
|
|
466
|
+
oe[ge] === void 0 && (oe[ge] = ve[ge]);
|
|
467
467
|
}
|
|
468
|
-
if (ie ||
|
|
468
|
+
if (ie || He) {
|
|
469
469
|
var Te = typeof x == "function" ? x.displayName || x.name || "Unknown" : x;
|
|
470
|
-
ie && Ea(oe, Te),
|
|
470
|
+
ie && Ea(oe, Te), He && Na(oe, Te);
|
|
471
471
|
}
|
|
472
|
-
return Ja(x, ie,
|
|
472
|
+
return Ja(x, ie, He, me, Y, Ae.current, oe);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
var da = y.ReactCurrentOwner, ya = y.ReactDebugCurrentFrame;
|
|
476
476
|
function qe(x) {
|
|
477
477
|
if (x) {
|
|
478
|
-
var I = x._owner, Z =
|
|
478
|
+
var I = x._owner, Z = ce(x.type, x._source, I ? I.type : null);
|
|
479
479
|
ya.setExtraStackFrame(Z);
|
|
480
480
|
} else
|
|
481
481
|
ya.setExtraStackFrame(null);
|
|
@@ -488,7 +488,7 @@ function Yr() {
|
|
|
488
488
|
function La() {
|
|
489
489
|
{
|
|
490
490
|
if (da.current) {
|
|
491
|
-
var x =
|
|
491
|
+
var x = P(da.current.type);
|
|
492
492
|
if (x)
|
|
493
493
|
return `
|
|
494
494
|
|
|
@@ -523,10 +523,10 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
523
523
|
return;
|
|
524
524
|
Ua[Z] = !0;
|
|
525
525
|
var Y = "";
|
|
526
|
-
x && x._owner && x._owner !== da.current && (Y = " It was passed a child from " +
|
|
526
|
+
x && x._owner && x._owner !== da.current && (Y = " It was passed a child from " + P(x._owner.type) + "."), qe(x), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Z, Y), qe(null);
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function De(x, I) {
|
|
530
530
|
{
|
|
531
531
|
if (typeof x != "object")
|
|
532
532
|
return;
|
|
@@ -540,12 +540,12 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
540
540
|
else if (x) {
|
|
541
541
|
var me = c(x);
|
|
542
542
|
if (typeof me == "function" && me !== x.entries)
|
|
543
|
-
for (var
|
|
543
|
+
for (var ge = me.call(x), oe; !(oe = ge.next()).done; )
|
|
544
544
|
fa(oe.value) && Ra(oe.value, I);
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function V(x) {
|
|
549
549
|
{
|
|
550
550
|
var I = x.type;
|
|
551
551
|
if (I == null || typeof I == "string")
|
|
@@ -560,17 +560,17 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
560
560
|
else
|
|
561
561
|
return;
|
|
562
562
|
if (Z) {
|
|
563
|
-
var Y =
|
|
563
|
+
var Y = P(I);
|
|
564
564
|
aa(Z, x.props, "prop", Y, x);
|
|
565
565
|
} else if (I.PropTypes !== void 0 && !ca) {
|
|
566
566
|
ca = !0;
|
|
567
|
-
var me =
|
|
567
|
+
var me = P(I);
|
|
568
568
|
f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", me || "Unknown");
|
|
569
569
|
}
|
|
570
570
|
typeof I.getDefaultProps == "function" && !I.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function Ee(x) {
|
|
574
574
|
{
|
|
575
575
|
for (var I = Object.keys(x.props), Z = 0; Z < I.length; Z++) {
|
|
576
576
|
var Y = I[Z];
|
|
@@ -583,18 +583,18 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
var na = {};
|
|
586
|
-
function
|
|
586
|
+
function Oe(x, I, Z, Y, me, ge) {
|
|
587
587
|
{
|
|
588
588
|
var oe = k(x);
|
|
589
589
|
if (!oe) {
|
|
590
590
|
var ie = "";
|
|
591
591
|
(x === void 0 || typeof x == "object" && x !== null && Object.keys(x).length === 0) && (ie += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
592
|
-
var
|
|
593
|
-
|
|
592
|
+
var He = Ga();
|
|
593
|
+
He ? ie += He : ie += La();
|
|
594
594
|
var ve;
|
|
595
|
-
x === null ? ve = "null" : he(x) ? ve = "array" : x !== void 0 && x.$$typeof === n ? (ve = "<" + (
|
|
595
|
+
x === null ? ve = "null" : he(x) ? ve = "array" : x !== void 0 && x.$$typeof === n ? (ve = "<" + (P(x.type) || "Unknown") + " />", ie = " Did you accidentally export a JSX literal instead of a component?") : ve = typeof x, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ve, ie);
|
|
596
596
|
}
|
|
597
|
-
var Te = Za(x, I, Z, me,
|
|
597
|
+
var Te = Za(x, I, Z, me, ge);
|
|
598
598
|
if (Te == null)
|
|
599
599
|
return Te;
|
|
600
600
|
if (oe) {
|
|
@@ -603,19 +603,19 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
603
603
|
if (Y)
|
|
604
604
|
if (he($e)) {
|
|
605
605
|
for (var Pa = 0; Pa < $e.length; Pa++)
|
|
606
|
-
|
|
606
|
+
De($e[Pa], x);
|
|
607
607
|
Object.freeze && Object.freeze($e);
|
|
608
608
|
} else
|
|
609
609
|
f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
610
610
|
else
|
|
611
|
-
|
|
611
|
+
De($e, x);
|
|
612
612
|
}
|
|
613
|
-
if (
|
|
614
|
-
var ba =
|
|
613
|
+
if (_e.call(I, "key")) {
|
|
614
|
+
var ba = P(x), Ie = Object.keys(I).filter(function(Hr) {
|
|
615
615
|
return Hr !== "key";
|
|
616
|
-
}), ti =
|
|
616
|
+
}), ti = Ie.length > 0 ? "{key: someKey, " + Ie.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
617
617
|
if (!na[ba + ti]) {
|
|
618
|
-
var Br =
|
|
618
|
+
var Br = Ie.length > 0 ? "{" + Ie.join(": ..., ") + ": ...}" : "{}";
|
|
619
619
|
f(`A props object containing a "key" prop is being spread into JSX:
|
|
620
620
|
let props = %s;
|
|
621
621
|
<%s {...props} />
|
|
@@ -624,14 +624,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
624
624
|
<%s key={someKey} {...props} />`, ti, ba, Br, ba), na[ba + ti] = !0;
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
|
-
return x === r ?
|
|
627
|
+
return x === r ? Ee(Te) : V(Te), Te;
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
630
|
function ra(x, I, Z) {
|
|
631
|
-
return
|
|
631
|
+
return Oe(x, I, Z, !0);
|
|
632
632
|
}
|
|
633
633
|
function it(x, I, Z) {
|
|
634
|
-
return
|
|
634
|
+
return Oe(x, I, Z, !1);
|
|
635
635
|
}
|
|
636
636
|
var ai = it, Or = ra;
|
|
637
637
|
qa.Fragment = r, qa.jsx = ai, qa.jsxs = Or;
|
|
@@ -641,7 +641,7 @@ var Mi;
|
|
|
641
641
|
function Xr() {
|
|
642
642
|
return Mi || (Mi = 1, process.env.NODE_ENV === "production" ? rt.exports = jr() : rt.exports = Yr()), rt.exports;
|
|
643
643
|
}
|
|
644
|
-
var
|
|
644
|
+
var Be = Xr();
|
|
645
645
|
const Vn = jt(null), se = () => {
|
|
646
646
|
const e = _i(Vn);
|
|
647
647
|
if (!e)
|
|
@@ -662,7 +662,7 @@ const Vn = jt(null), se = () => {
|
|
|
662
662
|
setAsPending: () => a($a.PENDING)
|
|
663
663
|
};
|
|
664
664
|
}, [n]);
|
|
665
|
-
return /* @__PURE__ */
|
|
665
|
+
return /* @__PURE__ */ Be.jsx(Jn.Provider, { value: r, children: e });
|
|
666
666
|
}, Zn = () => {
|
|
667
667
|
const e = _i(Jn);
|
|
668
668
|
if (!e)
|
|
@@ -732,7 +732,7 @@ function Ri({
|
|
|
732
732
|
}), t.interceptors.response.use(
|
|
733
733
|
(i) => i.data,
|
|
734
734
|
(i) => {
|
|
735
|
-
const o =
|
|
735
|
+
const o = Q(
|
|
736
736
|
i,
|
|
737
737
|
"response.data.message",
|
|
738
738
|
"發生錯誤,請稍後再試。"
|
|
@@ -805,7 +805,7 @@ const Qn = jt(null), Em = () => {
|
|
|
805
805
|
minimumFractionDigits: 2,
|
|
806
806
|
maximumFractionDigits: 2
|
|
807
807
|
}).format(n);
|
|
808
|
-
}, jn = (e = [], n) =>
|
|
808
|
+
}, jn = (e = [], n) => Ve(e, { gameTypeName: n })?.gameTypeUid, Yn = (e = [], n) => Ve(e, { platform: n })?.platformUid, Xn = (e = [], n) => Ve(e, { SubPlatformEnum: n }), er = (e = [], n, a) => Le(e) ? [] : e.filter((r) => a ? String(r?.SubPlatformEnumUid) === String(a?.SubPlatformEnumUid) : String(r.platformUid) === String(n)), il = (e = []) => Le(e) ? {} : e.reduce((n, a) => {
|
|
809
809
|
const r = a?.game_subtype || "UNKNOWN";
|
|
810
810
|
return n[r] || (n[r] = []), n[r].push(a), n;
|
|
811
811
|
}, {}), nl = ({
|
|
@@ -822,7 +822,7 @@ const Qn = jt(null), Em = () => {
|
|
|
822
822
|
l,
|
|
823
823
|
t
|
|
824
824
|
);
|
|
825
|
-
return
|
|
825
|
+
return Le(o) || (U[d] = o), U;
|
|
826
826
|
}, {}) : {};
|
|
827
827
|
}, rl = ({
|
|
828
828
|
platformName: e,
|
|
@@ -842,56 +842,56 @@ function ol() {
|
|
|
842
842
|
(function(a, r) {
|
|
843
843
|
e.exports = r();
|
|
844
844
|
})(ll, (function() {
|
|
845
|
-
var a = 1e3, r = 6e4, p = 36e5, g = "millisecond", U = "second", d = "minute", l = "hour", t = "day", i = "week", o = "month", s = "quarter", u = "year", m = "date", _ = "Invalid Date", c = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, f = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(
|
|
846
|
-
var
|
|
847
|
-
return "[" +
|
|
848
|
-
} }, b = function(
|
|
849
|
-
var B = String(
|
|
850
|
-
return !B || B.length >=
|
|
851
|
-
}, C = { s: b, z: function(
|
|
852
|
-
var
|
|
853
|
-
return (
|
|
854
|
-
}, m: function
|
|
855
|
-
if (
|
|
856
|
-
var B = 12 * (
|
|
857
|
-
return +(-(B + (
|
|
858
|
-
}, a: function(
|
|
859
|
-
return
|
|
860
|
-
}, p: function(
|
|
861
|
-
return { M: o, y: u, w: i, d: t, D: m, h: l, m: d, s: U, ms: g, Q: s }[
|
|
862
|
-
}, u: function(
|
|
863
|
-
return
|
|
845
|
+
var a = 1e3, r = 6e4, p = 36e5, g = "millisecond", U = "second", d = "minute", l = "hour", t = "day", i = "week", o = "month", s = "quarter", u = "year", m = "date", _ = "Invalid Date", c = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, f = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
|
|
846
|
+
var R = ["th", "st", "nd", "rd"], G = w % 100;
|
|
847
|
+
return "[" + w + (R[(G - 20) % 10] || R[G] || R[0]) + "]";
|
|
848
|
+
} }, b = function(w, R, G) {
|
|
849
|
+
var B = String(w);
|
|
850
|
+
return !B || B.length >= R ? w : "" + Array(R + 1 - B.length).join(G) + w;
|
|
851
|
+
}, C = { s: b, z: function(w) {
|
|
852
|
+
var R = -w.utcOffset(), G = Math.abs(R), B = Math.floor(G / 60), O = G % 60;
|
|
853
|
+
return (R <= 0 ? "+" : "-") + b(B, 2, "0") + ":" + b(O, 2, "0");
|
|
854
|
+
}, m: function w(R, G) {
|
|
855
|
+
if (R.date() < G.date()) return -w(G, R);
|
|
856
|
+
var B = 12 * (G.year() - R.year()) + (G.month() - R.month()), O = R.clone().add(B, o), W = G - O < 0, z = R.clone().add(B + (W ? -1 : 1), o);
|
|
857
|
+
return +(-(B + (G - O) / (W ? O - z : z - O)) || 0);
|
|
858
|
+
}, a: function(w) {
|
|
859
|
+
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
|
860
|
+
}, p: function(w) {
|
|
861
|
+
return { M: o, y: u, w: i, d: t, D: m, h: l, m: d, s: U, ms: g, Q: s }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
|
862
|
+
}, u: function(w) {
|
|
863
|
+
return w === void 0;
|
|
864
864
|
} }, v = "en", S = {};
|
|
865
865
|
S[v] = f;
|
|
866
|
-
var E = "$isDayjsObject", M = function(
|
|
867
|
-
return
|
|
868
|
-
}, A = function
|
|
866
|
+
var E = "$isDayjsObject", M = function(w) {
|
|
867
|
+
return w instanceof F || !(!w || !w[E]);
|
|
868
|
+
}, A = function w(R, G, B) {
|
|
869
869
|
var O;
|
|
870
|
-
if (!
|
|
871
|
-
if (typeof
|
|
872
|
-
var W =
|
|
873
|
-
S[W] && (O = W),
|
|
874
|
-
var z =
|
|
875
|
-
if (!O && z.length > 1) return
|
|
870
|
+
if (!R) return v;
|
|
871
|
+
if (typeof R == "string") {
|
|
872
|
+
var W = R.toLowerCase();
|
|
873
|
+
S[W] && (O = W), G && (S[W] = G, O = W);
|
|
874
|
+
var z = R.split("-");
|
|
875
|
+
if (!O && z.length > 1) return w(z[0]);
|
|
876
876
|
} else {
|
|
877
|
-
var
|
|
878
|
-
S[
|
|
877
|
+
var h = R.name;
|
|
878
|
+
S[h] = R, O = h;
|
|
879
879
|
}
|
|
880
880
|
return !B && O && (v = O), O || !B && v;
|
|
881
|
-
}, k = function(
|
|
882
|
-
if (M(
|
|
883
|
-
var
|
|
884
|
-
return
|
|
881
|
+
}, k = function(w, R) {
|
|
882
|
+
if (M(w)) return w.clone();
|
|
883
|
+
var G = typeof R == "object" ? R : {};
|
|
884
|
+
return G.date = w, G.args = arguments, new F(G);
|
|
885
885
|
}, D = C;
|
|
886
|
-
D.l = A, D.i = M, D.w = function(
|
|
887
|
-
return k(
|
|
886
|
+
D.l = A, D.i = M, D.w = function(w, R) {
|
|
887
|
+
return k(w, { locale: R.$L, utc: R.$u, x: R.$x, $offset: R.$offset });
|
|
888
888
|
};
|
|
889
|
-
var
|
|
890
|
-
function
|
|
891
|
-
this.$L = A(
|
|
889
|
+
var F = (function() {
|
|
890
|
+
function w(G) {
|
|
891
|
+
this.$L = A(G.locale, null, !0), this.parse(G), this.$x = this.$x || G.x || {}, this[E] = !0;
|
|
892
892
|
}
|
|
893
|
-
var
|
|
894
|
-
return
|
|
893
|
+
var R = w.prototype;
|
|
894
|
+
return R.parse = function(G) {
|
|
895
895
|
this.$d = (function(B) {
|
|
896
896
|
var O = B.date, W = B.utc;
|
|
897
897
|
if (O === null) return /* @__PURE__ */ new Date(NaN);
|
|
@@ -900,95 +900,95 @@ function ol() {
|
|
|
900
900
|
if (typeof O == "string" && !/Z$/i.test(O)) {
|
|
901
901
|
var z = O.match(c);
|
|
902
902
|
if (z) {
|
|
903
|
-
var
|
|
904
|
-
return W ? new Date(Date.UTC(z[1],
|
|
903
|
+
var h = z[2] - 1 || 0, T = (z[7] || "0").substring(0, 3);
|
|
904
|
+
return W ? new Date(Date.UTC(z[1], h, z[3] || 1, z[4] || 0, z[5] || 0, z[6] || 0, T)) : new Date(z[1], h, z[3] || 1, z[4] || 0, z[5] || 0, z[6] || 0, T);
|
|
905
905
|
}
|
|
906
906
|
}
|
|
907
907
|
return new Date(O);
|
|
908
|
-
})(
|
|
909
|
-
},
|
|
910
|
-
var
|
|
911
|
-
this.$y =
|
|
912
|
-
},
|
|
908
|
+
})(G), this.init();
|
|
909
|
+
}, R.init = function() {
|
|
910
|
+
var G = this.$d;
|
|
911
|
+
this.$y = G.getFullYear(), this.$M = G.getMonth(), this.$D = G.getDate(), this.$W = G.getDay(), this.$H = G.getHours(), this.$m = G.getMinutes(), this.$s = G.getSeconds(), this.$ms = G.getMilliseconds();
|
|
912
|
+
}, R.$utils = function() {
|
|
913
913
|
return D;
|
|
914
|
-
},
|
|
914
|
+
}, R.isValid = function() {
|
|
915
915
|
return this.$d.toString() !== _;
|
|
916
|
-
},
|
|
917
|
-
var O = k(
|
|
916
|
+
}, R.isSame = function(G, B) {
|
|
917
|
+
var O = k(G);
|
|
918
918
|
return this.startOf(B) <= O && O <= this.endOf(B);
|
|
919
|
-
},
|
|
920
|
-
return k(
|
|
921
|
-
},
|
|
922
|
-
return this.endOf(B) < k(
|
|
923
|
-
},
|
|
924
|
-
return D.u(
|
|
925
|
-
},
|
|
919
|
+
}, R.isAfter = function(G, B) {
|
|
920
|
+
return k(G) < this.startOf(B);
|
|
921
|
+
}, R.isBefore = function(G, B) {
|
|
922
|
+
return this.endOf(B) < k(G);
|
|
923
|
+
}, R.$g = function(G, B, O) {
|
|
924
|
+
return D.u(G) ? this[B] : this.set(O, G);
|
|
925
|
+
}, R.unix = function() {
|
|
926
926
|
return Math.floor(this.valueOf() / 1e3);
|
|
927
|
-
},
|
|
927
|
+
}, R.valueOf = function() {
|
|
928
928
|
return this.$d.getTime();
|
|
929
|
-
},
|
|
930
|
-
var O = this, W = !!D.u(B) || B, z = D.p(
|
|
929
|
+
}, R.startOf = function(G, B) {
|
|
930
|
+
var O = this, W = !!D.u(B) || B, z = D.p(G), h = function(te, le) {
|
|
931
931
|
var be = D.w(O.$u ? Date.UTC(O.$y, le, te) : new Date(O.$y, le, te), O);
|
|
932
932
|
return W ? be : be.endOf(t);
|
|
933
|
-
},
|
|
933
|
+
}, T = function(te, le) {
|
|
934
934
|
return D.w(O.toDate()[te].apply(O.toDate("s"), (W ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(le)), O);
|
|
935
|
-
}, N = this.$W, L = this.$M,
|
|
935
|
+
}, N = this.$W, L = this.$M, q = this.$D, J = "set" + (this.$u ? "UTC" : "");
|
|
936
936
|
switch (z) {
|
|
937
937
|
case u:
|
|
938
|
-
return W ?
|
|
938
|
+
return W ? h(1, 0) : h(31, 11);
|
|
939
939
|
case o:
|
|
940
|
-
return W ?
|
|
940
|
+
return W ? h(1, L) : h(0, L + 1);
|
|
941
941
|
case i:
|
|
942
|
-
var
|
|
943
|
-
return
|
|
942
|
+
var $ = this.$locale().weekStart || 0, K = (N < $ ? N + 7 : N) - $;
|
|
943
|
+
return h(W ? q - K : q + (6 - K), L);
|
|
944
944
|
case t:
|
|
945
945
|
case m:
|
|
946
|
-
return
|
|
946
|
+
return T(J + "Hours", 0);
|
|
947
947
|
case l:
|
|
948
|
-
return
|
|
948
|
+
return T(J + "Minutes", 1);
|
|
949
949
|
case d:
|
|
950
|
-
return
|
|
950
|
+
return T(J + "Seconds", 2);
|
|
951
951
|
case U:
|
|
952
|
-
return
|
|
952
|
+
return T(J + "Milliseconds", 3);
|
|
953
953
|
default:
|
|
954
954
|
return this.clone();
|
|
955
955
|
}
|
|
956
|
-
},
|
|
957
|
-
return this.startOf(
|
|
958
|
-
},
|
|
959
|
-
var O, W = D.p(
|
|
956
|
+
}, R.endOf = function(G) {
|
|
957
|
+
return this.startOf(G, !1);
|
|
958
|
+
}, R.$set = function(G, B) {
|
|
959
|
+
var O, W = D.p(G), z = "set" + (this.$u ? "UTC" : ""), h = (O = {}, O[t] = z + "Date", O[m] = z + "Date", O[o] = z + "Month", O[u] = z + "FullYear", O[l] = z + "Hours", O[d] = z + "Minutes", O[U] = z + "Seconds", O[g] = z + "Milliseconds", O)[W], T = W === t ? this.$D + (B - this.$W) : B;
|
|
960
960
|
if (W === o || W === u) {
|
|
961
961
|
var N = this.clone().set(m, 1);
|
|
962
|
-
N.$d[
|
|
963
|
-
} else
|
|
962
|
+
N.$d[h](T), N.init(), this.$d = N.set(m, Math.min(this.$D, N.daysInMonth())).$d;
|
|
963
|
+
} else h && this.$d[h](T);
|
|
964
964
|
return this.init(), this;
|
|
965
|
-
},
|
|
966
|
-
return this.clone().$set(
|
|
967
|
-
},
|
|
968
|
-
return this[D.p(
|
|
969
|
-
},
|
|
965
|
+
}, R.set = function(G, B) {
|
|
966
|
+
return this.clone().$set(G, B);
|
|
967
|
+
}, R.get = function(G) {
|
|
968
|
+
return this[D.p(G)]();
|
|
969
|
+
}, R.add = function(G, B) {
|
|
970
970
|
var O, W = this;
|
|
971
|
-
|
|
972
|
-
var z = D.p(B),
|
|
973
|
-
var
|
|
974
|
-
return D.w(
|
|
971
|
+
G = Number(G);
|
|
972
|
+
var z = D.p(B), h = function(L) {
|
|
973
|
+
var q = k(W);
|
|
974
|
+
return D.w(q.date(q.date() + Math.round(L * G)), W);
|
|
975
975
|
};
|
|
976
|
-
if (z === o) return this.set(o, this.$M +
|
|
977
|
-
if (z === u) return this.set(u, this.$y +
|
|
978
|
-
if (z === t) return
|
|
979
|
-
if (z === i) return
|
|
980
|
-
var
|
|
976
|
+
if (z === o) return this.set(o, this.$M + G);
|
|
977
|
+
if (z === u) return this.set(u, this.$y + G);
|
|
978
|
+
if (z === t) return h(1);
|
|
979
|
+
if (z === i) return h(7);
|
|
980
|
+
var T = (O = {}, O[d] = r, O[l] = p, O[U] = a, O)[z] || 1, N = this.$d.getTime() + G * T;
|
|
981
981
|
return D.w(N, this);
|
|
982
|
-
},
|
|
983
|
-
return this.add(-1 *
|
|
984
|
-
},
|
|
982
|
+
}, R.subtract = function(G, B) {
|
|
983
|
+
return this.add(-1 * G, B);
|
|
984
|
+
}, R.format = function(G) {
|
|
985
985
|
var B = this, O = this.$locale();
|
|
986
986
|
if (!this.isValid()) return O.invalidDate || _;
|
|
987
|
-
var W =
|
|
987
|
+
var W = G || "YYYY-MM-DDTHH:mm:ssZ", z = D.z(this), h = this.$H, T = this.$m, N = this.$M, L = O.weekdays, q = O.months, J = O.meridiem, $ = function(le, be, Ce, pe) {
|
|
988
988
|
return le && (le[be] || le(B, W)) || Ce[be].slice(0, pe);
|
|
989
989
|
}, K = function(le) {
|
|
990
|
-
return D.s(
|
|
991
|
-
}, te =
|
|
990
|
+
return D.s(h % 12 || 12, le, "0");
|
|
991
|
+
}, te = J || function(le, be, Ce) {
|
|
992
992
|
var pe = le < 12 ? "AM" : "PM";
|
|
993
993
|
return Ce ? pe.toLowerCase() : pe;
|
|
994
994
|
};
|
|
@@ -1004,9 +1004,9 @@ function ol() {
|
|
|
1004
1004
|
case "MM":
|
|
1005
1005
|
return D.s(N + 1, 2, "0");
|
|
1006
1006
|
case "MMM":
|
|
1007
|
-
return
|
|
1007
|
+
return $(O.monthsShort, N, q, 3);
|
|
1008
1008
|
case "MMMM":
|
|
1009
|
-
return
|
|
1009
|
+
return $(q, N);
|
|
1010
1010
|
case "D":
|
|
1011
1011
|
return B.$D;
|
|
1012
1012
|
case "DD":
|
|
@@ -1014,27 +1014,27 @@ function ol() {
|
|
|
1014
1014
|
case "d":
|
|
1015
1015
|
return String(B.$W);
|
|
1016
1016
|
case "dd":
|
|
1017
|
-
return
|
|
1017
|
+
return $(O.weekdaysMin, B.$W, L, 2);
|
|
1018
1018
|
case "ddd":
|
|
1019
|
-
return
|
|
1019
|
+
return $(O.weekdaysShort, B.$W, L, 3);
|
|
1020
1020
|
case "dddd":
|
|
1021
1021
|
return L[B.$W];
|
|
1022
1022
|
case "H":
|
|
1023
|
-
return String(
|
|
1023
|
+
return String(h);
|
|
1024
1024
|
case "HH":
|
|
1025
|
-
return D.s(
|
|
1025
|
+
return D.s(h, 2, "0");
|
|
1026
1026
|
case "h":
|
|
1027
1027
|
return K(1);
|
|
1028
1028
|
case "hh":
|
|
1029
1029
|
return K(2);
|
|
1030
1030
|
case "a":
|
|
1031
|
-
return te(
|
|
1031
|
+
return te(h, T, !0);
|
|
1032
1032
|
case "A":
|
|
1033
|
-
return te(
|
|
1033
|
+
return te(h, T, !1);
|
|
1034
1034
|
case "m":
|
|
1035
|
-
return String(
|
|
1035
|
+
return String(T);
|
|
1036
1036
|
case "mm":
|
|
1037
|
-
return D.s(
|
|
1037
|
+
return D.s(T, 2, "0");
|
|
1038
1038
|
case "s":
|
|
1039
1039
|
return String(B.$s);
|
|
1040
1040
|
case "ss":
|
|
@@ -1047,21 +1047,21 @@ function ol() {
|
|
|
1047
1047
|
return null;
|
|
1048
1048
|
})(le) || z.replace(":", "");
|
|
1049
1049
|
}));
|
|
1050
|
-
},
|
|
1050
|
+
}, R.utcOffset = function() {
|
|
1051
1051
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1052
|
-
},
|
|
1053
|
-
var W, z = this,
|
|
1054
|
-
return D.m(z,
|
|
1052
|
+
}, R.diff = function(G, B, O) {
|
|
1053
|
+
var W, z = this, h = D.p(B), T = k(G), N = (T.utcOffset() - this.utcOffset()) * r, L = this - T, q = function() {
|
|
1054
|
+
return D.m(z, T);
|
|
1055
1055
|
};
|
|
1056
|
-
switch (
|
|
1056
|
+
switch (h) {
|
|
1057
1057
|
case u:
|
|
1058
|
-
W =
|
|
1058
|
+
W = q() / 12;
|
|
1059
1059
|
break;
|
|
1060
1060
|
case o:
|
|
1061
|
-
W =
|
|
1061
|
+
W = q();
|
|
1062
1062
|
break;
|
|
1063
1063
|
case s:
|
|
1064
|
-
W =
|
|
1064
|
+
W = q() / 3;
|
|
1065
1065
|
break;
|
|
1066
1066
|
case i:
|
|
1067
1067
|
W = (L - N) / 6048e5;
|
|
@@ -1082,40 +1082,40 @@ function ol() {
|
|
|
1082
1082
|
W = L;
|
|
1083
1083
|
}
|
|
1084
1084
|
return O ? W : D.a(W);
|
|
1085
|
-
},
|
|
1085
|
+
}, R.daysInMonth = function() {
|
|
1086
1086
|
return this.endOf(o).$D;
|
|
1087
|
-
},
|
|
1087
|
+
}, R.$locale = function() {
|
|
1088
1088
|
return S[this.$L];
|
|
1089
|
-
},
|
|
1090
|
-
if (!
|
|
1091
|
-
var O = this.clone(), W = A(
|
|
1089
|
+
}, R.locale = function(G, B) {
|
|
1090
|
+
if (!G) return this.$L;
|
|
1091
|
+
var O = this.clone(), W = A(G, B, !0);
|
|
1092
1092
|
return W && (O.$L = W), O;
|
|
1093
|
-
},
|
|
1093
|
+
}, R.clone = function() {
|
|
1094
1094
|
return D.w(this.$d, this);
|
|
1095
|
-
},
|
|
1095
|
+
}, R.toDate = function() {
|
|
1096
1096
|
return new Date(this.valueOf());
|
|
1097
|
-
},
|
|
1097
|
+
}, R.toJSON = function() {
|
|
1098
1098
|
return this.isValid() ? this.toISOString() : null;
|
|
1099
|
-
},
|
|
1099
|
+
}, R.toISOString = function() {
|
|
1100
1100
|
return this.$d.toISOString();
|
|
1101
|
-
},
|
|
1101
|
+
}, R.toString = function() {
|
|
1102
1102
|
return this.$d.toUTCString();
|
|
1103
|
-
},
|
|
1104
|
-
})(),
|
|
1105
|
-
return k.prototype =
|
|
1106
|
-
w[
|
|
1107
|
-
return this.$g(
|
|
1103
|
+
}, w;
|
|
1104
|
+
})(), P = F.prototype;
|
|
1105
|
+
return k.prototype = P, [["$ms", g], ["$s", U], ["$m", d], ["$H", l], ["$W", t], ["$M", o], ["$y", u], ["$D", m]].forEach((function(w) {
|
|
1106
|
+
P[w[1]] = function(R) {
|
|
1107
|
+
return this.$g(R, w[0], w[1]);
|
|
1108
1108
|
};
|
|
1109
|
-
})), k.extend = function(
|
|
1110
|
-
return
|
|
1111
|
-
}, k.locale = A, k.isDayjs = M, k.unix = function(
|
|
1112
|
-
return k(1e3 *
|
|
1109
|
+
})), k.extend = function(w, R) {
|
|
1110
|
+
return w.$i || (w(R, F, k), w.$i = !0), k;
|
|
1111
|
+
}, k.locale = A, k.isDayjs = M, k.unix = function(w) {
|
|
1112
|
+
return k(1e3 * w);
|
|
1113
1113
|
}, k.en = S[v], k.Ls = S, k.p = {}, k;
|
|
1114
1114
|
}));
|
|
1115
1115
|
})(pt)), pt.exports;
|
|
1116
1116
|
}
|
|
1117
1117
|
var sl = ol();
|
|
1118
|
-
const
|
|
1118
|
+
const Ne = /* @__PURE__ */ yi(sl);
|
|
1119
1119
|
var gt = { exports: {} };
|
|
1120
1120
|
function ml(e) {
|
|
1121
1121
|
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
@@ -1499,8 +1499,8 @@ function ne() {
|
|
|
1499
1499
|
f ? A = r.ceil(A) : A = r.max((A | 0) - this._minBufferSize, 0);
|
|
1500
1500
|
var k = A * E, D = r.min(k * 4, S);
|
|
1501
1501
|
if (k) {
|
|
1502
|
-
for (var
|
|
1503
|
-
this._doProcessBlock(v,
|
|
1502
|
+
for (var F = 0; F < k; F += E)
|
|
1503
|
+
this._doProcessBlock(v, F);
|
|
1504
1504
|
b = v.splice(0, k), C.sigBytes -= D;
|
|
1505
1505
|
}
|
|
1506
1506
|
return new o.init(b, D);
|
|
@@ -2155,8 +2155,8 @@ function Da() {
|
|
|
2155
2155
|
var f = c + y, b = _[f];
|
|
2156
2156
|
_[f] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360;
|
|
2157
2157
|
}
|
|
2158
|
-
var C = this._hash.words, v = _[c + 0], S = _[c + 1], E = _[c + 2], M = _[c + 3], A = _[c + 4], k = _[c + 5], D = _[c + 6],
|
|
2159
|
-
|
|
2158
|
+
var C = this._hash.words, v = _[c + 0], S = _[c + 1], E = _[c + 2], M = _[c + 3], A = _[c + 4], k = _[c + 5], D = _[c + 6], F = _[c + 7], P = _[c + 8], w = _[c + 9], R = _[c + 10], G = _[c + 11], B = _[c + 12], O = _[c + 13], W = _[c + 14], z = _[c + 15], h = C[0], T = C[1], N = C[2], L = C[3];
|
|
2159
|
+
h = o(h, T, N, L, v, 7, t[0]), L = o(L, h, T, N, S, 12, t[1]), N = o(N, L, h, T, E, 17, t[2]), T = o(T, N, L, h, M, 22, t[3]), h = o(h, T, N, L, A, 7, t[4]), L = o(L, h, T, N, k, 12, t[5]), N = o(N, L, h, T, D, 17, t[6]), T = o(T, N, L, h, F, 22, t[7]), h = o(h, T, N, L, P, 7, t[8]), L = o(L, h, T, N, w, 12, t[9]), N = o(N, L, h, T, R, 17, t[10]), T = o(T, N, L, h, G, 22, t[11]), h = o(h, T, N, L, B, 7, t[12]), L = o(L, h, T, N, O, 12, t[13]), N = o(N, L, h, T, W, 17, t[14]), T = o(T, N, L, h, z, 22, t[15]), h = s(h, T, N, L, S, 5, t[16]), L = s(L, h, T, N, D, 9, t[17]), N = s(N, L, h, T, G, 14, t[18]), T = s(T, N, L, h, v, 20, t[19]), h = s(h, T, N, L, k, 5, t[20]), L = s(L, h, T, N, R, 9, t[21]), N = s(N, L, h, T, z, 14, t[22]), T = s(T, N, L, h, A, 20, t[23]), h = s(h, T, N, L, w, 5, t[24]), L = s(L, h, T, N, W, 9, t[25]), N = s(N, L, h, T, M, 14, t[26]), T = s(T, N, L, h, P, 20, t[27]), h = s(h, T, N, L, O, 5, t[28]), L = s(L, h, T, N, E, 9, t[29]), N = s(N, L, h, T, F, 14, t[30]), T = s(T, N, L, h, B, 20, t[31]), h = u(h, T, N, L, k, 4, t[32]), L = u(L, h, T, N, P, 11, t[33]), N = u(N, L, h, T, G, 16, t[34]), T = u(T, N, L, h, W, 23, t[35]), h = u(h, T, N, L, S, 4, t[36]), L = u(L, h, T, N, A, 11, t[37]), N = u(N, L, h, T, F, 16, t[38]), T = u(T, N, L, h, R, 23, t[39]), h = u(h, T, N, L, O, 4, t[40]), L = u(L, h, T, N, v, 11, t[41]), N = u(N, L, h, T, M, 16, t[42]), T = u(T, N, L, h, D, 23, t[43]), h = u(h, T, N, L, w, 4, t[44]), L = u(L, h, T, N, B, 11, t[45]), N = u(N, L, h, T, z, 16, t[46]), T = u(T, N, L, h, E, 23, t[47]), h = m(h, T, N, L, v, 6, t[48]), L = m(L, h, T, N, F, 10, t[49]), N = m(N, L, h, T, W, 15, t[50]), T = m(T, N, L, h, k, 21, t[51]), h = m(h, T, N, L, B, 6, t[52]), L = m(L, h, T, N, M, 10, t[53]), N = m(N, L, h, T, R, 15, t[54]), T = m(T, N, L, h, S, 21, t[55]), h = m(h, T, N, L, P, 6, t[56]), L = m(L, h, T, N, z, 10, t[57]), N = m(N, L, h, T, D, 15, t[58]), T = m(T, N, L, h, O, 21, t[59]), h = m(h, T, N, L, A, 6, t[60]), L = m(L, h, T, N, G, 10, t[61]), N = m(N, L, h, T, E, 15, t[62]), T = m(T, N, L, h, w, 21, t[63]), C[0] = C[0] + h | 0, C[1] = C[1] + T | 0, C[2] = C[2] + N | 0, C[3] = C[3] + L | 0;
|
|
2160
2160
|
},
|
|
2161
2161
|
_doFinalize: function() {
|
|
2162
2162
|
var _ = this._data, c = _.words, y = this._nDataBytes * 8, f = _.sigBytes * 8;
|
|
@@ -2269,10 +2269,10 @@ function Ui() {
|
|
|
2269
2269
|
if (M < 16)
|
|
2270
2270
|
o[M] = u[m + M] | 0;
|
|
2271
2271
|
else {
|
|
2272
|
-
var A = o[M - 15], k = (A << 25 | A >>> 7) ^ (A << 14 | A >>> 18) ^ A >>> 3, D = o[M - 2],
|
|
2273
|
-
o[M] = k + o[M - 7] +
|
|
2272
|
+
var A = o[M - 15], k = (A << 25 | A >>> 7) ^ (A << 14 | A >>> 18) ^ A >>> 3, D = o[M - 2], F = (D << 15 | D >>> 17) ^ (D << 13 | D >>> 19) ^ D >>> 10;
|
|
2273
|
+
o[M] = k + o[M - 7] + F + o[M - 16];
|
|
2274
2274
|
}
|
|
2275
|
-
var
|
|
2275
|
+
var P = C & v ^ ~C & S, w = c & y ^ c & f ^ y & f, R = (c << 30 | c >>> 2) ^ (c << 19 | c >>> 13) ^ (c << 10 | c >>> 22), G = (C << 26 | C >>> 6) ^ (C << 21 | C >>> 11) ^ (C << 7 | C >>> 25), B = E + G + P + i[M] + o[M], O = R + w;
|
|
2276
2276
|
E = S, S = v, v = C, C = b + B | 0, b = f, f = y, y = c, c = B + O | 0;
|
|
2277
2277
|
}
|
|
2278
2278
|
_[0] = _[0] + c | 0, _[1] = _[1] + y | 0, _[2] = _[2] + f | 0, _[3] = _[3] + b | 0, _[4] = _[4] + C | 0, _[5] = _[5] + v | 0, _[6] = _[6] + S | 0, _[7] = _[7] + E | 0;
|
|
@@ -2432,18 +2432,18 @@ function tr() {
|
|
|
2432
2432
|
]);
|
|
2433
2433
|
},
|
|
2434
2434
|
_doProcessBlock: function(m, _) {
|
|
2435
|
-
for (var c = this._hash.words, y = c[0], f = c[1], b = c[2], C = c[3], v = c[4], S = c[5], E = c[6], M = c[7], A = y.high, k = y.low, D = f.high,
|
|
2436
|
-
var he,
|
|
2437
|
-
if (
|
|
2438
|
-
|
|
2435
|
+
for (var c = this._hash.words, y = c[0], f = c[1], b = c[2], C = c[3], v = c[4], S = c[5], E = c[6], M = c[7], A = y.high, k = y.low, D = f.high, F = f.low, P = b.high, w = b.low, R = C.high, G = C.low, B = v.high, O = v.low, W = S.high, z = S.low, h = E.high, T = E.low, N = M.high, L = M.low, q = A, J = k, $ = D, K = F, te = P, le = w, be = R, Ce = G, pe = B, ye = O, ce = W, _e = z, we = h, de = T, xe = N, aa = L, Fe = 0; Fe < 80; Fe++) {
|
|
2436
|
+
var he, ze, ta = s[Fe];
|
|
2437
|
+
if (Fe < 16)
|
|
2438
|
+
ze = ta.high = m[_ + Fe * 2] | 0, he = ta.low = m[_ + Fe * 2 + 1] | 0;
|
|
2439
2439
|
else {
|
|
2440
|
-
var ia = s[
|
|
2441
|
-
he = oa + Za,
|
|
2440
|
+
var ia = s[Fe - 15], Se = ia.high, Ae = ia.low, je = (Se >>> 1 | Ae << 31) ^ (Se >>> 8 | Ae << 24) ^ Se >>> 7, oa = (Ae >>> 1 | Se << 31) ^ (Ae >>> 8 | Se << 24) ^ (Ae >>> 7 | Se << 25), ga = s[Fe - 2], Je = ga.high, Ye = ga.low, Va = (Je >>> 19 | Ye << 13) ^ (Je << 3 | Ye >>> 29) ^ Je >>> 6, Ea = (Ye >>> 19 | Je << 13) ^ (Ye << 3 | Je >>> 29) ^ (Ye >>> 6 | Je << 26), Na = s[Fe - 7], Ja = Na.high, Za = Na.low, da = s[Fe - 16], ya = da.high, qe = da.low;
|
|
2441
|
+
he = oa + Za, ze = je + Ja + (he >>> 0 < oa >>> 0 ? 1 : 0), he = he + Ea, ze = ze + Va + (he >>> 0 < Ea >>> 0 ? 1 : 0), he = he + qe, ze = ze + ya + (he >>> 0 < qe >>> 0 ? 1 : 0), ta.high = ze, ta.low = he;
|
|
2442
2442
|
}
|
|
2443
|
-
var ca = pe &
|
|
2444
|
-
|
|
2443
|
+
var ca = pe & ce ^ ~pe & we, fa = ye & _e ^ ~ye & de, La = q & $ ^ q & te ^ $ & te, Ga = J & K ^ J & le ^ K & le, Ua = (q >>> 28 | J << 4) ^ (q << 30 | J >>> 2) ^ (q << 25 | J >>> 7), Ma = (J >>> 28 | q << 4) ^ (J << 30 | q >>> 2) ^ (J << 25 | q >>> 7), Ra = (pe >>> 14 | ye << 18) ^ (pe >>> 18 | ye << 14) ^ (pe << 23 | ye >>> 9), De = (ye >>> 14 | pe << 18) ^ (ye >>> 18 | pe << 14) ^ (ye << 23 | pe >>> 9), V = o[Fe], Ee = V.high, na = V.low, Oe = aa + De, ra = xe + Ra + (Oe >>> 0 < aa >>> 0 ? 1 : 0), Oe = Oe + fa, ra = ra + ca + (Oe >>> 0 < fa >>> 0 ? 1 : 0), Oe = Oe + na, ra = ra + Ee + (Oe >>> 0 < na >>> 0 ? 1 : 0), Oe = Oe + he, ra = ra + ze + (Oe >>> 0 < he >>> 0 ? 1 : 0), it = Ma + Ga, ai = Ua + La + (it >>> 0 < Ma >>> 0 ? 1 : 0);
|
|
2444
|
+
xe = we, aa = de, we = ce, de = _e, ce = pe, _e = ye, ye = Ce + Oe | 0, pe = be + ra + (ye >>> 0 < Ce >>> 0 ? 1 : 0) | 0, be = te, Ce = le, te = $, le = K, $ = q, K = J, J = Oe + it | 0, q = ra + ai + (J >>> 0 < Oe >>> 0 ? 1 : 0) | 0;
|
|
2445
2445
|
}
|
|
2446
|
-
k = y.low = k +
|
|
2446
|
+
k = y.low = k + J, y.high = A + q + (k >>> 0 < J >>> 0 ? 1 : 0), F = f.low = F + K, f.high = D + $ + (F >>> 0 < K >>> 0 ? 1 : 0), w = b.low = w + le, b.high = P + te + (w >>> 0 < le >>> 0 ? 1 : 0), G = C.low = G + Ce, C.high = R + be + (G >>> 0 < Ce >>> 0 ? 1 : 0), O = v.low = O + ye, v.high = B + pe + (O >>> 0 < ye >>> 0 ? 1 : 0), z = S.low = z + _e, S.high = W + ce + (z >>> 0 < _e >>> 0 ? 1 : 0), T = E.low = T + de, E.high = h + we + (T >>> 0 < de >>> 0 ? 1 : 0), L = M.low = L + aa, M.high = N + xe + (L >>> 0 < aa >>> 0 ? 1 : 0);
|
|
2447
2447
|
},
|
|
2448
2448
|
_doFinalize: function() {
|
|
2449
2449
|
var m = this._data, _ = m.words, c = this._nDataBytes * 8, y = m.sigBytes * 8;
|
|
@@ -2551,30 +2551,30 @@ function Gl() {
|
|
|
2551
2551
|
}
|
|
2552
2552
|
for (var M = 0; M < 24; M++) {
|
|
2553
2553
|
for (var A = 0; A < 5; A++) {
|
|
2554
|
-
for (var k = 0, D = 0,
|
|
2555
|
-
var E = f[A + 5 *
|
|
2554
|
+
for (var k = 0, D = 0, F = 0; F < 5; F++) {
|
|
2555
|
+
var E = f[A + 5 * F];
|
|
2556
2556
|
k ^= E.high, D ^= E.low;
|
|
2557
2557
|
}
|
|
2558
|
-
var
|
|
2559
|
-
|
|
2558
|
+
var P = m[A];
|
|
2559
|
+
P.high = k, P.low = D;
|
|
2560
2560
|
}
|
|
2561
2561
|
for (var A = 0; A < 5; A++)
|
|
2562
|
-
for (var
|
|
2563
|
-
var E = f[A + 5 *
|
|
2562
|
+
for (var w = m[(A + 4) % 5], R = m[(A + 1) % 5], G = R.high, B = R.low, k = w.high ^ (G << 1 | B >>> 31), D = w.low ^ (B << 1 | G >>> 31), F = 0; F < 5; F++) {
|
|
2563
|
+
var E = f[A + 5 * F];
|
|
2564
2564
|
E.high ^= k, E.low ^= D;
|
|
2565
2565
|
}
|
|
2566
2566
|
for (var O = 1; O < 25; O++) {
|
|
2567
|
-
var k, D, E = f[O], W = E.high, z = E.low,
|
|
2568
|
-
|
|
2569
|
-
var
|
|
2570
|
-
|
|
2567
|
+
var k, D, E = f[O], W = E.high, z = E.low, h = o[O];
|
|
2568
|
+
h < 32 ? (k = W << h | z >>> 32 - h, D = z << h | W >>> 32 - h) : (k = z << h - 32 | W >>> 64 - h, D = W << h - 32 | z >>> 64 - h);
|
|
2569
|
+
var T = m[s[O]];
|
|
2570
|
+
T.high = k, T.low = D;
|
|
2571
2571
|
}
|
|
2572
2572
|
var N = m[0], L = f[0];
|
|
2573
2573
|
N.high = L.high, N.low = L.low;
|
|
2574
2574
|
for (var A = 0; A < 5; A++)
|
|
2575
|
-
for (var
|
|
2576
|
-
var O = A + 5 *
|
|
2577
|
-
E.high =
|
|
2575
|
+
for (var F = 0; F < 5; F++) {
|
|
2576
|
+
var O = A + 5 * F, E = f[O], q = m[O], J = m[(A + 1) % 5 + 5 * F], $ = m[(A + 2) % 5 + 5 * F];
|
|
2577
|
+
E.high = q.high ^ ~J.high & $.high, E.low = q.low ^ ~J.low & $.low;
|
|
2578
2578
|
}
|
|
2579
2579
|
var E = f[0], K = u[M];
|
|
2580
2580
|
E.high ^= K.high, E.low ^= K.low;
|
|
@@ -2942,18 +2942,18 @@ function Rl() {
|
|
|
2942
2942
|
var A = E + M, k = S[A];
|
|
2943
2943
|
S[A] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
|
2944
2944
|
}
|
|
2945
|
-
var D = this._hash.words,
|
|
2946
|
-
N = O = D[0], L = W = D[1],
|
|
2945
|
+
var D = this._hash.words, F = u.words, P = m.words, w = t.words, R = i.words, G = o.words, B = s.words, O, W, z, h, T, N, L, q, J, $;
|
|
2946
|
+
N = O = D[0], L = W = D[1], q = z = D[2], J = h = D[3], $ = T = D[4];
|
|
2947
2947
|
for (var K, M = 0; M < 80; M += 1)
|
|
2948
|
-
K = O + S[E +
|
|
2949
|
-
K = D[1] + z +
|
|
2948
|
+
K = O + S[E + w[M]] | 0, M < 16 ? K += c(W, z, h) + F[0] : M < 32 ? K += y(W, z, h) + F[1] : M < 48 ? K += f(W, z, h) + F[2] : M < 64 ? K += b(W, z, h) + F[3] : K += C(W, z, h) + F[4], K = K | 0, K = v(K, G[M]), K = K + T | 0, O = T, T = h, h = v(z, 10), z = W, W = K, K = N + S[E + R[M]] | 0, M < 16 ? K += C(L, q, J) + P[0] : M < 32 ? K += b(L, q, J) + P[1] : M < 48 ? K += f(L, q, J) + P[2] : M < 64 ? K += y(L, q, J) + P[3] : K += c(L, q, J) + P[4], K = K | 0, K = v(K, B[M]), K = K + $ | 0, N = $, $ = J, J = v(q, 10), q = L, L = K;
|
|
2949
|
+
K = D[1] + z + J | 0, D[1] = D[2] + h + $ | 0, D[2] = D[3] + T + N | 0, D[3] = D[4] + O + L | 0, D[4] = D[0] + W + q | 0, D[0] = K;
|
|
2950
2950
|
},
|
|
2951
2951
|
_doFinalize: function() {
|
|
2952
2952
|
var S = this._data, E = S.words, M = this._nDataBytes * 8, A = S.sigBytes * 8;
|
|
2953
2953
|
E[A >>> 5] |= 128 << 24 - A % 32, E[(A + 64 >>> 9 << 4) + 14] = (M << 8 | M >>> 24) & 16711935 | (M << 24 | M >>> 8) & 4278255360, S.sigBytes = (E.length + 1) * 4, this._process();
|
|
2954
|
-
for (var k = this._hash, D = k.words,
|
|
2955
|
-
var
|
|
2956
|
-
D[
|
|
2954
|
+
for (var k = this._hash, D = k.words, F = 0; F < 5; F++) {
|
|
2955
|
+
var P = D[F];
|
|
2956
|
+
D[F] = (P << 8 | P >>> 24) & 16711935 | (P << 24 | P >>> 8) & 4278255360;
|
|
2957
2957
|
}
|
|
2958
2958
|
return k;
|
|
2959
2959
|
},
|
|
@@ -3194,7 +3194,7 @@ function _a() {
|
|
|
3194
3194
|
})(Nt)), Nt.exports;
|
|
3195
3195
|
}
|
|
3196
3196
|
var Lt = { exports: {} }, Ol = Lt.exports, Yi;
|
|
3197
|
-
function
|
|
3197
|
+
function Me() {
|
|
3198
3198
|
return Yi || (Yi = 1, (function(e, n) {
|
|
3199
3199
|
(function(a, r, p) {
|
|
3200
3200
|
e.exports = r(ne(), _a());
|
|
@@ -3254,8 +3254,8 @@ function Ge() {
|
|
|
3254
3254
|
*
|
|
3255
3255
|
* var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
|
|
3256
3256
|
*/
|
|
3257
|
-
init: function(k, D,
|
|
3258
|
-
this.cfg = this.cfg.extend(
|
|
3257
|
+
init: function(k, D, F) {
|
|
3258
|
+
this.cfg = this.cfg.extend(F), this._xformMode = k, this._key = D, this.reset();
|
|
3259
3259
|
},
|
|
3260
3260
|
/**
|
|
3261
3261
|
* Resets this cipher to its initial state.
|
|
@@ -3324,11 +3324,11 @@ function Ge() {
|
|
|
3324
3324
|
}
|
|
3325
3325
|
return function(D) {
|
|
3326
3326
|
return {
|
|
3327
|
-
encrypt: function(P, w
|
|
3328
|
-
return k(
|
|
3327
|
+
encrypt: function(F, P, w) {
|
|
3328
|
+
return k(P).encrypt(D, F, P, w);
|
|
3329
3329
|
},
|
|
3330
|
-
decrypt: function(P, w
|
|
3331
|
-
return k(
|
|
3330
|
+
decrypt: function(F, P, w) {
|
|
3331
|
+
return k(P).decrypt(D, F, P, w);
|
|
3332
3332
|
}
|
|
3333
3333
|
};
|
|
3334
3334
|
};
|
|
@@ -3398,9 +3398,9 @@ function Ge() {
|
|
|
3398
3398
|
*
|
|
3399
3399
|
* mode.processBlock(data.words, offset);
|
|
3400
3400
|
*/
|
|
3401
|
-
processBlock: function(
|
|
3402
|
-
var
|
|
3403
|
-
D.call(this,
|
|
3401
|
+
processBlock: function(F, P) {
|
|
3402
|
+
var w = this._cipher, R = w.blockSize;
|
|
3403
|
+
D.call(this, F, P, R), w.encryptBlock(F, P), this._prevBlock = F.slice(P, P + R);
|
|
3404
3404
|
}
|
|
3405
3405
|
}), k.Decryptor = k.extend({
|
|
3406
3406
|
/**
|
|
@@ -3413,16 +3413,16 @@ function Ge() {
|
|
|
3413
3413
|
*
|
|
3414
3414
|
* mode.processBlock(data.words, offset);
|
|
3415
3415
|
*/
|
|
3416
|
-
processBlock: function(
|
|
3417
|
-
var
|
|
3418
|
-
|
|
3416
|
+
processBlock: function(F, P) {
|
|
3417
|
+
var w = this._cipher, R = w.blockSize, G = F.slice(P, P + R);
|
|
3418
|
+
w.decryptBlock(F, P), D.call(this, F, P, R), this._prevBlock = G;
|
|
3419
3419
|
}
|
|
3420
3420
|
});
|
|
3421
|
-
function D(P, w
|
|
3422
|
-
var
|
|
3423
|
-
|
|
3424
|
-
for (var B = 0; B <
|
|
3425
|
-
P
|
|
3421
|
+
function D(F, P, w) {
|
|
3422
|
+
var R, G = this._iv;
|
|
3423
|
+
G ? (R = G, this._iv = r) : R = this._prevBlock;
|
|
3424
|
+
for (var B = 0; B < w; B++)
|
|
3425
|
+
F[P + B] ^= R[B];
|
|
3426
3426
|
}
|
|
3427
3427
|
return k;
|
|
3428
3428
|
})(), y = p.pad = {}, f = y.Pkcs7 = {
|
|
@@ -3439,9 +3439,9 @@ function Ge() {
|
|
|
3439
3439
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
3440
3440
|
*/
|
|
3441
3441
|
pad: function(k, D) {
|
|
3442
|
-
for (var
|
|
3443
|
-
|
|
3444
|
-
var B = d.create(
|
|
3442
|
+
for (var F = D * 4, P = F - k.sigBytes % F, w = P << 24 | P << 16 | P << 8 | P, R = [], G = 0; G < P; G += 4)
|
|
3443
|
+
R.push(w);
|
|
3444
|
+
var B = d.create(R, P);
|
|
3445
3445
|
k.concat(B);
|
|
3446
3446
|
},
|
|
3447
3447
|
/**
|
|
@@ -3474,8 +3474,8 @@ function Ge() {
|
|
|
3474
3474
|
reset: function() {
|
|
3475
3475
|
var k;
|
|
3476
3476
|
u.reset.call(this);
|
|
3477
|
-
var D = this.cfg,
|
|
3478
|
-
this._xformMode == this._ENC_XFORM_MODE ? k =
|
|
3477
|
+
var D = this.cfg, F = D.iv, P = D.mode;
|
|
3478
|
+
this._xformMode == this._ENC_XFORM_MODE ? k = P.createEncryptor : (k = P.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == k ? this._mode.init(this, F && F.words) : (this._mode = k.call(P, this, F && F.words), this._mode.__creator = k);
|
|
3479
3479
|
},
|
|
3480
3480
|
_doProcessBlock: function(k, D) {
|
|
3481
3481
|
this._mode.processBlock(k, D);
|
|
@@ -3542,8 +3542,8 @@ function Ge() {
|
|
|
3542
3542
|
* var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
|
|
3543
3543
|
*/
|
|
3544
3544
|
stringify: function(k) {
|
|
3545
|
-
var D,
|
|
3546
|
-
return
|
|
3545
|
+
var D, F = k.ciphertext, P = k.salt;
|
|
3546
|
+
return P ? D = d.create([1398893684, 1701076831]).concat(P).concat(F) : D = F, D.toString(i);
|
|
3547
3547
|
},
|
|
3548
3548
|
/**
|
|
3549
3549
|
* Converts an OpenSSL-compatible string to a cipher params object.
|
|
@@ -3559,8 +3559,8 @@ function Ge() {
|
|
|
3559
3559
|
* var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
|
|
3560
3560
|
*/
|
|
3561
3561
|
parse: function(k) {
|
|
3562
|
-
var D,
|
|
3563
|
-
return
|
|
3562
|
+
var D, F = i.parse(k), P = F.words;
|
|
3563
|
+
return P[0] == 1398893684 && P[1] == 1701076831 && (D = d.create(P.slice(2, 4)), P.splice(0, 4), F.sigBytes -= 16), b.create({ ciphertext: F, salt: D });
|
|
3564
3564
|
}
|
|
3565
3565
|
}, S = g.SerializableCipher = U.extend({
|
|
3566
3566
|
/**
|
|
@@ -3589,18 +3589,18 @@ function Ge() {
|
|
|
3589
3589
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
|
|
3590
3590
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3591
3591
|
*/
|
|
3592
|
-
encrypt: function(k, D,
|
|
3593
|
-
|
|
3594
|
-
var
|
|
3592
|
+
encrypt: function(k, D, F, P) {
|
|
3593
|
+
P = this.cfg.extend(P);
|
|
3594
|
+
var w = k.createEncryptor(F, P), R = w.finalize(D), G = w.cfg;
|
|
3595
3595
|
return b.create({
|
|
3596
|
-
ciphertext:
|
|
3597
|
-
key:
|
|
3598
|
-
iv:
|
|
3596
|
+
ciphertext: R,
|
|
3597
|
+
key: F,
|
|
3598
|
+
iv: G.iv,
|
|
3599
3599
|
algorithm: k,
|
|
3600
|
-
mode:
|
|
3601
|
-
padding:
|
|
3600
|
+
mode: G.mode,
|
|
3601
|
+
padding: G.padding,
|
|
3602
3602
|
blockSize: k.blockSize,
|
|
3603
|
-
formatter:
|
|
3603
|
+
formatter: P.format
|
|
3604
3604
|
});
|
|
3605
3605
|
},
|
|
3606
3606
|
/**
|
|
@@ -3620,10 +3620,10 @@ function Ge() {
|
|
|
3620
3620
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3621
3621
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3622
3622
|
*/
|
|
3623
|
-
decrypt: function(k, D,
|
|
3624
|
-
|
|
3625
|
-
var
|
|
3626
|
-
return
|
|
3623
|
+
decrypt: function(k, D, F, P) {
|
|
3624
|
+
P = this.cfg.extend(P), D = this._parse(D, P.format);
|
|
3625
|
+
var w = k.createDecryptor(F, P).finalize(D.ciphertext);
|
|
3626
|
+
return w;
|
|
3627
3627
|
},
|
|
3628
3628
|
/**
|
|
3629
3629
|
* Converts serialized ciphertext to CipherParams,
|
|
@@ -3661,13 +3661,13 @@ function Ge() {
|
|
|
3661
3661
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
3662
3662
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
3663
3663
|
*/
|
|
3664
|
-
execute: function(k, D, P, w
|
|
3665
|
-
if (
|
|
3666
|
-
var
|
|
3664
|
+
execute: function(k, D, F, P, w) {
|
|
3665
|
+
if (P || (P = d.random(64 / 8)), w)
|
|
3666
|
+
var R = s.create({ keySize: D + F, hasher: w }).compute(k, P);
|
|
3667
3667
|
else
|
|
3668
|
-
var
|
|
3669
|
-
var
|
|
3670
|
-
return
|
|
3668
|
+
var R = s.create({ keySize: D + F }).compute(k, P);
|
|
3669
|
+
var G = d.create(R.words.slice(D), F * 4);
|
|
3670
|
+
return R.sigBytes = D * 4, b.create({ key: R, iv: G, salt: P });
|
|
3671
3671
|
}
|
|
3672
3672
|
}, A = g.PasswordBasedCipher = S.extend({
|
|
3673
3673
|
/**
|
|
@@ -3695,12 +3695,12 @@ function Ge() {
|
|
|
3695
3695
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
|
|
3696
3696
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3697
3697
|
*/
|
|
3698
|
-
encrypt: function(k, D,
|
|
3699
|
-
|
|
3700
|
-
var
|
|
3701
|
-
|
|
3702
|
-
var
|
|
3703
|
-
return
|
|
3698
|
+
encrypt: function(k, D, F, P) {
|
|
3699
|
+
P = this.cfg.extend(P);
|
|
3700
|
+
var w = P.kdf.execute(F, k.keySize, k.ivSize, P.salt, P.hasher);
|
|
3701
|
+
P.iv = w.iv;
|
|
3702
|
+
var R = S.encrypt.call(this, k, D, w.key, P);
|
|
3703
|
+
return R.mixIn(w), R;
|
|
3704
3704
|
},
|
|
3705
3705
|
/**
|
|
3706
3706
|
* Decrypts serialized ciphertext using a password.
|
|
@@ -3719,12 +3719,12 @@ function Ge() {
|
|
|
3719
3719
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3720
3720
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3721
3721
|
*/
|
|
3722
|
-
decrypt: function(k, D,
|
|
3723
|
-
|
|
3724
|
-
var
|
|
3725
|
-
|
|
3726
|
-
var
|
|
3727
|
-
return
|
|
3722
|
+
decrypt: function(k, D, F, P) {
|
|
3723
|
+
P = this.cfg.extend(P), D = this._parse(D, P.format);
|
|
3724
|
+
var w = P.kdf.execute(F, k.keySize, k.ivSize, D.salt, P.hasher);
|
|
3725
|
+
P.iv = w.iv;
|
|
3726
|
+
var R = S.decrypt.call(this, k, D, w.key, P);
|
|
3727
|
+
return R;
|
|
3728
3728
|
}
|
|
3729
3729
|
});
|
|
3730
3730
|
})();
|
|
@@ -3735,7 +3735,7 @@ var Gt = { exports: {} }, Bl = Gt.exports, Xi;
|
|
|
3735
3735
|
function Hl() {
|
|
3736
3736
|
return Xi || (Xi = 1, (function(e, n) {
|
|
3737
3737
|
(function(a, r, p) {
|
|
3738
|
-
e.exports = r(ne(),
|
|
3738
|
+
e.exports = r(ne(), Me());
|
|
3739
3739
|
})(Bl, function(a) {
|
|
3740
3740
|
return a.mode.CFB = (function() {
|
|
3741
3741
|
var r = a.lib.BlockCipherMode.extend();
|
|
@@ -3765,7 +3765,7 @@ var Mt = { exports: {} }, Wl = Mt.exports, en;
|
|
|
3765
3765
|
function zl() {
|
|
3766
3766
|
return en || (en = 1, (function(e, n) {
|
|
3767
3767
|
(function(a, r, p) {
|
|
3768
|
-
e.exports = r(ne(),
|
|
3768
|
+
e.exports = r(ne(), Me());
|
|
3769
3769
|
})(Wl, function(a) {
|
|
3770
3770
|
return a.mode.CTR = (function() {
|
|
3771
3771
|
var r = a.lib.BlockCipherMode.extend(), p = r.Encryptor = r.extend({
|
|
@@ -3787,7 +3787,7 @@ var Rt = { exports: {} }, Il = Rt.exports, an;
|
|
|
3787
3787
|
function Vl() {
|
|
3788
3788
|
return an || (an = 1, (function(e, n) {
|
|
3789
3789
|
(function(a, r, p) {
|
|
3790
|
-
e.exports = r(ne(),
|
|
3790
|
+
e.exports = r(ne(), Me());
|
|
3791
3791
|
})(Il, function(a) {
|
|
3792
3792
|
return a.mode.CTRGladman = (function() {
|
|
3793
3793
|
var r = a.lib.BlockCipherMode.extend();
|
|
@@ -3821,7 +3821,7 @@ var Pt = { exports: {} }, Jl = Pt.exports, tn;
|
|
|
3821
3821
|
function Zl() {
|
|
3822
3822
|
return tn || (tn = 1, (function(e, n) {
|
|
3823
3823
|
(function(a, r, p) {
|
|
3824
|
-
e.exports = r(ne(),
|
|
3824
|
+
e.exports = r(ne(), Me());
|
|
3825
3825
|
})(Jl, function(a) {
|
|
3826
3826
|
return a.mode.OFB = (function() {
|
|
3827
3827
|
var r = a.lib.BlockCipherMode.extend(), p = r.Encryptor = r.extend({
|
|
@@ -3841,7 +3841,7 @@ var wt = { exports: {} }, Kl = wt.exports, nn;
|
|
|
3841
3841
|
function ql() {
|
|
3842
3842
|
return nn || (nn = 1, (function(e, n) {
|
|
3843
3843
|
(function(a, r, p) {
|
|
3844
|
-
e.exports = r(ne(),
|
|
3844
|
+
e.exports = r(ne(), Me());
|
|
3845
3845
|
})(Kl, function(a) {
|
|
3846
3846
|
return a.mode.ECB = (function() {
|
|
3847
3847
|
var r = a.lib.BlockCipherMode.extend();
|
|
@@ -3862,7 +3862,7 @@ var Ft = { exports: {} }, $l = Ft.exports, rn;
|
|
|
3862
3862
|
function Ql() {
|
|
3863
3863
|
return rn || (rn = 1, (function(e, n) {
|
|
3864
3864
|
(function(a, r, p) {
|
|
3865
|
-
e.exports = r(ne(),
|
|
3865
|
+
e.exports = r(ne(), Me());
|
|
3866
3866
|
})($l, function(a) {
|
|
3867
3867
|
return a.pad.AnsiX923 = {
|
|
3868
3868
|
pad: function(r, p) {
|
|
@@ -3881,7 +3881,7 @@ var At = { exports: {} }, jl = At.exports, ln;
|
|
|
3881
3881
|
function Yl() {
|
|
3882
3882
|
return ln || (ln = 1, (function(e, n) {
|
|
3883
3883
|
(function(a, r, p) {
|
|
3884
|
-
e.exports = r(ne(),
|
|
3884
|
+
e.exports = r(ne(), Me());
|
|
3885
3885
|
})(jl, function(a) {
|
|
3886
3886
|
return a.pad.Iso10126 = {
|
|
3887
3887
|
pad: function(r, p) {
|
|
@@ -3900,7 +3900,7 @@ var Ot = { exports: {} }, Xl = Ot.exports, on;
|
|
|
3900
3900
|
function eo() {
|
|
3901
3901
|
return on || (on = 1, (function(e, n) {
|
|
3902
3902
|
(function(a, r, p) {
|
|
3903
|
-
e.exports = r(ne(),
|
|
3903
|
+
e.exports = r(ne(), Me());
|
|
3904
3904
|
})(Xl, function(a) {
|
|
3905
3905
|
return a.pad.Iso97971 = {
|
|
3906
3906
|
pad: function(r, p) {
|
|
@@ -3917,7 +3917,7 @@ var Bt = { exports: {} }, ao = Bt.exports, sn;
|
|
|
3917
3917
|
function to() {
|
|
3918
3918
|
return sn || (sn = 1, (function(e, n) {
|
|
3919
3919
|
(function(a, r, p) {
|
|
3920
|
-
e.exports = r(ne(),
|
|
3920
|
+
e.exports = r(ne(), Me());
|
|
3921
3921
|
})(ao, function(a) {
|
|
3922
3922
|
return a.pad.ZeroPadding = {
|
|
3923
3923
|
pad: function(r, p) {
|
|
@@ -3939,7 +3939,7 @@ var Ht = { exports: {} }, io = Ht.exports, mn;
|
|
|
3939
3939
|
function no() {
|
|
3940
3940
|
return mn || (mn = 1, (function(e, n) {
|
|
3941
3941
|
(function(a, r, p) {
|
|
3942
|
-
e.exports = r(ne(),
|
|
3942
|
+
e.exports = r(ne(), Me());
|
|
3943
3943
|
})(io, function(a) {
|
|
3944
3944
|
return a.pad.NoPadding = {
|
|
3945
3945
|
pad: function() {
|
|
@@ -3954,7 +3954,7 @@ var Wt = { exports: {} }, ro = Wt.exports, un;
|
|
|
3954
3954
|
function lo() {
|
|
3955
3955
|
return un || (un = 1, (function(e, n) {
|
|
3956
3956
|
(function(a, r, p) {
|
|
3957
|
-
e.exports = r(ne(),
|
|
3957
|
+
e.exports = r(ne(), Me());
|
|
3958
3958
|
})(ro, function(a) {
|
|
3959
3959
|
return (function(r) {
|
|
3960
3960
|
var p = a, g = p.lib, U = g.CipherParams, d = p.enc, l = d.Hex, t = p.format;
|
|
@@ -4001,7 +4001,7 @@ var zt = { exports: {} }, oo = zt.exports, pn;
|
|
|
4001
4001
|
function so() {
|
|
4002
4002
|
return pn || (pn = 1, (function(e, n) {
|
|
4003
4003
|
(function(a, r, p) {
|
|
4004
|
-
e.exports = r(ne(), Sa(), Da(), _a(),
|
|
4004
|
+
e.exports = r(ne(), Sa(), Da(), _a(), Me());
|
|
4005
4005
|
})(oo, function(a) {
|
|
4006
4006
|
return (function() {
|
|
4007
4007
|
var r = a, p = r.lib, g = p.BlockCipher, U = r.algo, d = [], l = [], t = [], i = [], o = [], s = [], u = [], m = [], _ = [], c = [];
|
|
@@ -4023,13 +4023,13 @@ function so() {
|
|
|
4023
4023
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
4024
4024
|
for (var C = this._keyPriorReset = this._key, v = C.words, S = C.sigBytes / 4, E = this._nRounds = S + 6, M = (E + 1) * 4, A = this._keySchedule = [], k = 0; k < M; k++)
|
|
4025
4025
|
k < S ? A[k] = v[k] : (b = A[k - 1], k % S ? S > 6 && k % S == 4 && (b = d[b >>> 24] << 24 | d[b >>> 16 & 255] << 16 | d[b >>> 8 & 255] << 8 | d[b & 255]) : (b = b << 8 | b >>> 24, b = d[b >>> 24] << 24 | d[b >>> 16 & 255] << 16 | d[b >>> 8 & 255] << 8 | d[b & 255], b ^= y[k / S | 0] << 24), A[k] = A[k - S] ^ b);
|
|
4026
|
-
for (var D = this._invKeySchedule = [],
|
|
4027
|
-
var k = M -
|
|
4028
|
-
if (
|
|
4026
|
+
for (var D = this._invKeySchedule = [], F = 0; F < M; F++) {
|
|
4027
|
+
var k = M - F;
|
|
4028
|
+
if (F % 4)
|
|
4029
4029
|
var b = A[k];
|
|
4030
4030
|
else
|
|
4031
4031
|
var b = A[k - 4];
|
|
4032
|
-
|
|
4032
|
+
F < 4 || k <= 4 ? D[F] = b : D[F] = u[d[b >>> 24]] ^ m[d[b >>> 16 & 255]] ^ _[d[b >>> 8 & 255]] ^ c[d[b & 255]];
|
|
4033
4033
|
}
|
|
4034
4034
|
}
|
|
4035
4035
|
},
|
|
@@ -4043,12 +4043,12 @@ function so() {
|
|
|
4043
4043
|
b[C + 1] = b[C + 3], b[C + 3] = v;
|
|
4044
4044
|
},
|
|
4045
4045
|
_doCryptBlock: function(b, C, v, S, E, M, A, k) {
|
|
4046
|
-
for (var D = this._nRounds,
|
|
4047
|
-
var O = S[
|
|
4048
|
-
|
|
4046
|
+
for (var D = this._nRounds, F = b[C] ^ v[0], P = b[C + 1] ^ v[1], w = b[C + 2] ^ v[2], R = b[C + 3] ^ v[3], G = 4, B = 1; B < D; B++) {
|
|
4047
|
+
var O = S[F >>> 24] ^ E[P >>> 16 & 255] ^ M[w >>> 8 & 255] ^ A[R & 255] ^ v[G++], W = S[P >>> 24] ^ E[w >>> 16 & 255] ^ M[R >>> 8 & 255] ^ A[F & 255] ^ v[G++], z = S[w >>> 24] ^ E[R >>> 16 & 255] ^ M[F >>> 8 & 255] ^ A[P & 255] ^ v[G++], h = S[R >>> 24] ^ E[F >>> 16 & 255] ^ M[P >>> 8 & 255] ^ A[w & 255] ^ v[G++];
|
|
4048
|
+
F = O, P = W, w = z, R = h;
|
|
4049
4049
|
}
|
|
4050
|
-
var O = (k[
|
|
4051
|
-
b[C] = O, b[C + 1] = W, b[C + 2] = z, b[C + 3] =
|
|
4050
|
+
var O = (k[F >>> 24] << 24 | k[P >>> 16 & 255] << 16 | k[w >>> 8 & 255] << 8 | k[R & 255]) ^ v[G++], W = (k[P >>> 24] << 24 | k[w >>> 16 & 255] << 16 | k[R >>> 8 & 255] << 8 | k[F & 255]) ^ v[G++], z = (k[w >>> 24] << 24 | k[R >>> 16 & 255] << 16 | k[F >>> 8 & 255] << 8 | k[P & 255]) ^ v[G++], h = (k[R >>> 24] << 24 | k[F >>> 16 & 255] << 16 | k[P >>> 8 & 255] << 8 | k[w & 255]) ^ v[G++];
|
|
4051
|
+
b[C] = O, b[C + 1] = W, b[C + 2] = z, b[C + 3] = h;
|
|
4052
4052
|
},
|
|
4053
4053
|
keySize: 256 / 32
|
|
4054
4054
|
});
|
|
@@ -4061,7 +4061,7 @@ var It = { exports: {} }, mo = It.exports, gn;
|
|
|
4061
4061
|
function uo() {
|
|
4062
4062
|
return gn || (gn = 1, (function(e, n) {
|
|
4063
4063
|
(function(a, r, p) {
|
|
4064
|
-
e.exports = r(ne(), Sa(), Da(), _a(),
|
|
4064
|
+
e.exports = r(ne(), Sa(), Da(), _a(), Me());
|
|
4065
4065
|
})(mo, function(a) {
|
|
4066
4066
|
return (function() {
|
|
4067
4067
|
var r = a, p = r.lib, g = p.WordArray, U = p.BlockCipher, d = r.algo, l = [
|
|
@@ -4781,7 +4781,7 @@ var Vt = { exports: {} }, po = Vt.exports, dn;
|
|
|
4781
4781
|
function go() {
|
|
4782
4782
|
return dn || (dn = 1, (function(e, n) {
|
|
4783
4783
|
(function(a, r, p) {
|
|
4784
|
-
e.exports = r(ne(), Sa(), Da(), _a(),
|
|
4784
|
+
e.exports = r(ne(), Sa(), Da(), _a(), Me());
|
|
4785
4785
|
})(po, function(a) {
|
|
4786
4786
|
return (function() {
|
|
4787
4787
|
var r = a, p = r.lib, g = p.StreamCipher, U = r.algo, d = U.RC4 = g.extend({
|
|
@@ -4835,7 +4835,7 @@ var Jt = { exports: {} }, co = Jt.exports, cn;
|
|
|
4835
4835
|
function fo() {
|
|
4836
4836
|
return cn || (cn = 1, (function(e, n) {
|
|
4837
4837
|
(function(a, r, p) {
|
|
4838
|
-
e.exports = r(ne(), Sa(), Da(), _a(),
|
|
4838
|
+
e.exports = r(ne(), Sa(), Da(), _a(), Me());
|
|
4839
4839
|
})(co, function(a) {
|
|
4840
4840
|
return (function() {
|
|
4841
4841
|
var r = a, p = r.lib, g = p.StreamCipher, U = r.algo, d = [], l = [], t = [], i = U.Rabbit = g.extend({
|
|
@@ -4901,7 +4901,7 @@ var Zt = { exports: {} }, _o = Zt.exports, fn;
|
|
|
4901
4901
|
function yo() {
|
|
4902
4902
|
return fn || (fn = 1, (function(e, n) {
|
|
4903
4903
|
(function(a, r, p) {
|
|
4904
|
-
e.exports = r(ne(), Sa(), Da(), _a(),
|
|
4904
|
+
e.exports = r(ne(), Sa(), Da(), _a(), Me());
|
|
4905
4905
|
})(_o, function(a) {
|
|
4906
4906
|
return (function() {
|
|
4907
4907
|
var r = a, p = r.lib, g = p.StreamCipher, U = r.algo, d = [], l = [], t = [], i = U.RabbitLegacy = g.extend({
|
|
@@ -4965,7 +4965,7 @@ var Kt = { exports: {} }, Uo = Kt.exports, _n;
|
|
|
4965
4965
|
function bo() {
|
|
4966
4966
|
return _n || (_n = 1, (function(e, n) {
|
|
4967
4967
|
(function(a, r, p) {
|
|
4968
|
-
e.exports = r(ne(), Sa(), Da(), _a(),
|
|
4968
|
+
e.exports = r(ne(), Sa(), Da(), _a(), Me());
|
|
4969
4969
|
})(Uo, function(a) {
|
|
4970
4970
|
return (function() {
|
|
4971
4971
|
var r = a, p = r.lib, g = p.BlockCipher, U = r.algo;
|
|
@@ -6087,7 +6087,7 @@ var Co = gt.exports, yn;
|
|
|
6087
6087
|
function vo() {
|
|
6088
6088
|
return yn || (yn = 1, (function(e, n) {
|
|
6089
6089
|
(function(a, r, p) {
|
|
6090
|
-
e.exports = r(ne(), ei(), _l(), Ul(), Sa(), vl(), Da(), ar(), Ui(), Sl(), tr(), Nl(), Gl(), Rl(), bi(), Fl(), _a(),
|
|
6090
|
+
e.exports = r(ne(), ei(), _l(), Ul(), Sa(), vl(), Da(), ar(), Ui(), Sl(), tr(), Nl(), Gl(), Rl(), bi(), Fl(), _a(), Me(), Hl(), zl(), Vl(), Zl(), ql(), Ql(), Yl(), eo(), to(), no(), lo(), so(), uo(), go(), fo(), yo(), bo());
|
|
6091
6091
|
})(Co, function(a) {
|
|
6092
6092
|
return a;
|
|
6093
6093
|
});
|
|
@@ -6106,255 +6106,255 @@ const Ca = /* @__PURE__ */ yi($t), wa = (e) => {
|
|
|
6106
6106
|
return g + ":" + U;
|
|
6107
6107
|
}, re = () => {
|
|
6108
6108
|
const { client: e, formDataClient: n } = se(), a = H(
|
|
6109
|
-
async (
|
|
6110
|
-
const { mac_address:
|
|
6109
|
+
async (h) => {
|
|
6110
|
+
const { mac_address: T = "", app_version: N = "", anydesk_id: L = "" } = h;
|
|
6111
6111
|
return await e.post("/cash-register/login", {
|
|
6112
|
-
mac_address:
|
|
6112
|
+
mac_address: T,
|
|
6113
6113
|
app_version: N,
|
|
6114
6114
|
anydesk_id: L
|
|
6115
6115
|
});
|
|
6116
6116
|
},
|
|
6117
6117
|
[e]
|
|
6118
6118
|
), r = H(async () => e.get("/member/getMemberInfo"), [e]), p = H(async () => await e.get("/member/getGameList"), [e]), g = H(async () => await e.get("/member/getNowCurrencyExchange"), [e]), U = H(async () => await e.get("member/getFavoriteGame"), [e]), d = H(
|
|
6119
|
-
async (
|
|
6120
|
-
const { account:
|
|
6119
|
+
async (h) => {
|
|
6120
|
+
const { account: T, password: N, trans_code: L } = h;
|
|
6121
6121
|
return await e.post("/login", {
|
|
6122
|
-
memId:
|
|
6122
|
+
memId: T,
|
|
6123
6123
|
passwd: N,
|
|
6124
6124
|
trans_code: L
|
|
6125
6125
|
});
|
|
6126
6126
|
},
|
|
6127
6127
|
[e]
|
|
6128
6128
|
), l = H(async () => await e.post("/logout"), [e]), t = H(
|
|
6129
|
-
async (
|
|
6130
|
-
const { gameUid:
|
|
6131
|
-
return await e.put(`/member/toggleFavoriteGame/${
|
|
6129
|
+
async (h) => {
|
|
6130
|
+
const { gameUid: T = "", status: N = 0 } = h;
|
|
6131
|
+
return await e.put(`/member/toggleFavoriteGame/${T}`, {
|
|
6132
6132
|
status: N
|
|
6133
6133
|
});
|
|
6134
6134
|
},
|
|
6135
6135
|
[e]
|
|
6136
6136
|
), i = H(async () => await e.get("/profit/ranking"), [e]), o = H(
|
|
6137
6137
|
async ({
|
|
6138
|
-
memberId:
|
|
6139
|
-
password:
|
|
6138
|
+
memberId: h,
|
|
6139
|
+
password: T,
|
|
6140
6140
|
unlimitCode: N,
|
|
6141
6141
|
email: L,
|
|
6142
|
-
inviteCode:
|
|
6143
|
-
currencyCode:
|
|
6144
|
-
validCode:
|
|
6142
|
+
inviteCode: q,
|
|
6143
|
+
currencyCode: J,
|
|
6144
|
+
validCode: $
|
|
6145
6145
|
}) => {
|
|
6146
6146
|
const K = {
|
|
6147
|
-
memId:
|
|
6148
|
-
passwd: wa(
|
|
6147
|
+
memId: h,
|
|
6148
|
+
passwd: wa(T),
|
|
6149
6149
|
email: L,
|
|
6150
|
-
currency_code:
|
|
6151
|
-
code:
|
|
6150
|
+
currency_code: J,
|
|
6151
|
+
code: $
|
|
6152
6152
|
};
|
|
6153
|
-
return N && (K.unlimit_code = N),
|
|
6153
|
+
return N && (K.unlimit_code = N), q && (K.invite = q), e.post("/signUp", K);
|
|
6154
6154
|
},
|
|
6155
6155
|
[e]
|
|
6156
6156
|
), s = H(
|
|
6157
|
-
async (
|
|
6158
|
-
const { name:
|
|
6157
|
+
async (h) => {
|
|
6158
|
+
const { name: T, birthday: N, email: L, mobile: q } = h;
|
|
6159
6159
|
return await e.post("/editMembetInfo", {
|
|
6160
|
-
name:
|
|
6160
|
+
name: T,
|
|
6161
6161
|
// 暱稱
|
|
6162
6162
|
birthday: N,
|
|
6163
6163
|
// 生日 (格式:YYYY-MM-DD)
|
|
6164
6164
|
email: L,
|
|
6165
6165
|
// 電子郵件
|
|
6166
|
-
mobile:
|
|
6166
|
+
mobile: q
|
|
6167
6167
|
// 手機號碼
|
|
6168
6168
|
});
|
|
6169
6169
|
},
|
|
6170
6170
|
[e]
|
|
6171
6171
|
), u = H(
|
|
6172
|
-
async (
|
|
6173
|
-
const { oldPwd:
|
|
6172
|
+
async (h) => {
|
|
6173
|
+
const { oldPwd: T, newPwd: N } = h;
|
|
6174
6174
|
return await e.post("/passwordReset", {
|
|
6175
|
-
old_pwd: $t.MD5(
|
|
6175
|
+
old_pwd: $t.MD5(T).toString(),
|
|
6176
6176
|
new_pwd: $t.MD5(N).toString()
|
|
6177
6177
|
});
|
|
6178
6178
|
},
|
|
6179
6179
|
[e]
|
|
6180
6180
|
), m = H(
|
|
6181
|
-
async (
|
|
6182
|
-
const { newPwd:
|
|
6181
|
+
async (h) => {
|
|
6182
|
+
const { newPwd: T, confirmNewPwd: N } = h;
|
|
6183
6183
|
return await e.post("/setWithdrawPassword", {
|
|
6184
|
-
newPassword: wa(
|
|
6184
|
+
newPassword: wa(T),
|
|
6185
6185
|
confirmPassword: wa(N)
|
|
6186
6186
|
});
|
|
6187
6187
|
},
|
|
6188
6188
|
[e]
|
|
6189
6189
|
), _ = H(
|
|
6190
|
-
async (
|
|
6191
|
-
const { oldPwd:
|
|
6190
|
+
async (h) => {
|
|
6191
|
+
const { oldPwd: T, newPwd: N } = h;
|
|
6192
6192
|
return await e.post("/withdrawPasswordReset", {
|
|
6193
|
-
old_pwd: wa(
|
|
6193
|
+
old_pwd: wa(T),
|
|
6194
6194
|
new_pwd: wa(N)
|
|
6195
6195
|
});
|
|
6196
6196
|
},
|
|
6197
6197
|
[e]
|
|
6198
6198
|
), c = H(
|
|
6199
|
-
async (
|
|
6200
|
-
const { mobile:
|
|
6199
|
+
async (h) => {
|
|
6200
|
+
const { mobile: T, verification_code: N } = h;
|
|
6201
6201
|
return await e.post("/withdrawPasswordRenew", {
|
|
6202
|
-
mobile:
|
|
6202
|
+
mobile: T,
|
|
6203
6203
|
verification_code: N
|
|
6204
6204
|
});
|
|
6205
6205
|
},
|
|
6206
6206
|
[e]
|
|
6207
6207
|
), y = H(
|
|
6208
|
-
async ({ paramsData:
|
|
6209
|
-
const { start_time:
|
|
6208
|
+
async ({ paramsData: h }) => {
|
|
6209
|
+
const { start_time: T, end_time: N, limit: L = 25 } = h || {};
|
|
6210
6210
|
return await e.get("/report/totalprofit", {
|
|
6211
6211
|
params: {
|
|
6212
|
-
str_date: `${
|
|
6213
|
-
end_date: `${
|
|
6212
|
+
str_date: `${Ne(T).format("YYYY-MM-DD")} 12:00:00`,
|
|
6213
|
+
end_date: `${Ne(N).format("YYYY-MM-DD")} 11:59:59`,
|
|
6214
6214
|
limit: L
|
|
6215
6215
|
}
|
|
6216
6216
|
});
|
|
6217
6217
|
},
|
|
6218
6218
|
[e]
|
|
6219
6219
|
), f = H(
|
|
6220
|
-
async (
|
|
6221
|
-
const { platform:
|
|
6220
|
+
async (h) => {
|
|
6221
|
+
const { platform: T } = h;
|
|
6222
6222
|
return await e.post("/member/all-in-la", {
|
|
6223
|
-
platform:
|
|
6223
|
+
platform: T
|
|
6224
6224
|
});
|
|
6225
6225
|
},
|
|
6226
6226
|
[e]
|
|
6227
6227
|
), b = H(async () => await e.get("/member/checkRestrictedWagering"), [e]), C = H(
|
|
6228
|
-
async (
|
|
6229
|
-
const { memId:
|
|
6228
|
+
async (h) => {
|
|
6229
|
+
const { memId: T, point: N, currency: L, password: q } = h;
|
|
6230
6230
|
return await e.post("/pointsTransaction", {
|
|
6231
|
-
to_memId:
|
|
6231
|
+
to_memId: T,
|
|
6232
6232
|
point: N,
|
|
6233
6233
|
currency: L,
|
|
6234
|
-
password: wa(
|
|
6234
|
+
password: wa(q)
|
|
6235
6235
|
});
|
|
6236
6236
|
},
|
|
6237
6237
|
[e]
|
|
6238
6238
|
), v = H(
|
|
6239
|
-
async ({ formData:
|
|
6239
|
+
async ({ formData: h }) => {
|
|
6240
6240
|
const {
|
|
6241
|
-
bank_name:
|
|
6241
|
+
bank_name: T,
|
|
6242
6242
|
bank_account_name: N,
|
|
6243
6243
|
bank_branch_name: L,
|
|
6244
|
-
bank_account:
|
|
6245
|
-
bank_card_number:
|
|
6246
|
-
id_card:
|
|
6244
|
+
bank_account: q,
|
|
6245
|
+
bank_card_number: J,
|
|
6246
|
+
id_card: $,
|
|
6247
6247
|
id_pic: K
|
|
6248
|
-
} =
|
|
6249
|
-
return await n.post("/bindBankAccount",
|
|
6248
|
+
} = h;
|
|
6249
|
+
return await n.post("/bindBankAccount", h);
|
|
6250
6250
|
},
|
|
6251
6251
|
[n]
|
|
6252
6252
|
), S = H(
|
|
6253
|
-
async (
|
|
6254
|
-
const { point_transfer:
|
|
6253
|
+
async (h) => {
|
|
6254
|
+
const { point_transfer: T } = h;
|
|
6255
6255
|
return await e.post("/cash-register/clear", {
|
|
6256
|
-
point_transfer:
|
|
6256
|
+
point_transfer: T
|
|
6257
6257
|
});
|
|
6258
6258
|
},
|
|
6259
6259
|
[e]
|
|
6260
6260
|
), E = H(
|
|
6261
|
-
async (
|
|
6262
|
-
const { trans_code:
|
|
6261
|
+
async (h) => {
|
|
6262
|
+
const { trans_code: T, line_id: N, invite: L, line_name: q } = h;
|
|
6263
6263
|
return await e.post("/goLine", {
|
|
6264
|
-
trans_code:
|
|
6264
|
+
trans_code: T,
|
|
6265
6265
|
line_id: N,
|
|
6266
6266
|
invite: L,
|
|
6267
|
-
line_name:
|
|
6267
|
+
line_name: q
|
|
6268
6268
|
});
|
|
6269
6269
|
},
|
|
6270
6270
|
[e]
|
|
6271
6271
|
), M = H(
|
|
6272
|
-
async (
|
|
6273
|
-
const { trans_code:
|
|
6272
|
+
async (h) => {
|
|
6273
|
+
const { trans_code: T, line_id: N, line_name: L } = h;
|
|
6274
6274
|
return await e.post("/login/line", {
|
|
6275
|
-
trans_code:
|
|
6275
|
+
trans_code: T,
|
|
6276
6276
|
line_id: N,
|
|
6277
6277
|
line_name: L
|
|
6278
6278
|
});
|
|
6279
6279
|
},
|
|
6280
6280
|
[e]
|
|
6281
6281
|
), A = H(
|
|
6282
|
-
async (
|
|
6283
|
-
const { mac_address:
|
|
6284
|
-
return await e.get(`/machine-login-code/${
|
|
6282
|
+
async (h) => {
|
|
6283
|
+
const { mac_address: T } = h;
|
|
6284
|
+
return await e.get(`/machine-login-code/${T}`);
|
|
6285
6285
|
},
|
|
6286
6286
|
[e]
|
|
6287
6287
|
), k = H(
|
|
6288
|
-
async (
|
|
6289
|
-
const { member_info_uid:
|
|
6290
|
-
return await e.post(`/member/transfer/${
|
|
6288
|
+
async (h) => {
|
|
6289
|
+
const { member_info_uid: T, point: N, currency: L, withdraw_password: q } = h;
|
|
6290
|
+
return await e.post(`/member/transfer/${T}`, {
|
|
6291
6291
|
point: N,
|
|
6292
6292
|
currency: L,
|
|
6293
|
-
withdraw_password:
|
|
6293
|
+
withdraw_password: q
|
|
6294
6294
|
});
|
|
6295
6295
|
},
|
|
6296
6296
|
[e]
|
|
6297
6297
|
), D = H(
|
|
6298
|
-
async (
|
|
6299
|
-
const { mobile:
|
|
6298
|
+
async (h) => {
|
|
6299
|
+
const { mobile: T, verifyCode: N } = h;
|
|
6300
6300
|
return await e.post("/sms/verifyValidationCode", {
|
|
6301
|
-
mobile:
|
|
6301
|
+
mobile: T,
|
|
6302
6302
|
inputCode: N
|
|
6303
6303
|
});
|
|
6304
6304
|
},
|
|
6305
6305
|
[e]
|
|
6306
|
-
),
|
|
6307
|
-
async (
|
|
6308
|
-
const { mobile:
|
|
6306
|
+
), F = H(
|
|
6307
|
+
async (h) => {
|
|
6308
|
+
const { mobile: T, verifyCode: N, snCode: L } = h;
|
|
6309
6309
|
return await e.post("/goMobile", {
|
|
6310
|
-
mobile:
|
|
6310
|
+
mobile: T,
|
|
6311
6311
|
verification_code: N,
|
|
6312
6312
|
sn_code: L
|
|
6313
6313
|
});
|
|
6314
6314
|
},
|
|
6315
6315
|
[e]
|
|
6316
|
-
),
|
|
6317
|
-
async (
|
|
6318
|
-
const { mobile:
|
|
6316
|
+
), P = H(
|
|
6317
|
+
async (h) => {
|
|
6318
|
+
const { mobile: T, verifyCode: N, invite: L } = h;
|
|
6319
6319
|
return await e.post("/goMobileByInvite", {
|
|
6320
|
-
mobile:
|
|
6320
|
+
mobile: T,
|
|
6321
6321
|
verification_code: N,
|
|
6322
6322
|
invite: L
|
|
6323
6323
|
});
|
|
6324
6324
|
},
|
|
6325
6325
|
[e]
|
|
6326
|
-
),
|
|
6327
|
-
async (
|
|
6328
|
-
const { mobile:
|
|
6326
|
+
), w = H(
|
|
6327
|
+
async (h) => {
|
|
6328
|
+
const { mobile: T } = h;
|
|
6329
6329
|
return await e.get("/sms/getValidCode", {
|
|
6330
6330
|
params: {
|
|
6331
|
-
mobile:
|
|
6331
|
+
mobile: T
|
|
6332
6332
|
}
|
|
6333
6333
|
});
|
|
6334
6334
|
},
|
|
6335
6335
|
[e]
|
|
6336
|
-
),
|
|
6337
|
-
async (
|
|
6338
|
-
const { bindType:
|
|
6336
|
+
), R = H(
|
|
6337
|
+
async (h) => {
|
|
6338
|
+
const { bindType: T, bindId: N } = h;
|
|
6339
6339
|
return await e.post("/member/bindThirdPartyAccount", {
|
|
6340
|
-
bind_type:
|
|
6340
|
+
bind_type: T,
|
|
6341
6341
|
bind_id: N
|
|
6342
6342
|
});
|
|
6343
6343
|
},
|
|
6344
6344
|
[e]
|
|
6345
|
-
),
|
|
6346
|
-
async (
|
|
6345
|
+
), G = H(async () => await e.get("/jackpot", {}), [e]), B = H(
|
|
6346
|
+
async (h) => await e.get("/total-bet-ranking"),
|
|
6347
6347
|
[e]
|
|
6348
6348
|
), O = H(async () => await e.get("/member/avatar/list"), [e]), W = H(
|
|
6349
|
-
async (
|
|
6350
|
-
const { avatarId:
|
|
6349
|
+
async (h) => {
|
|
6350
|
+
const { avatarId: T } = h;
|
|
6351
6351
|
return await e.post("/member/avatar/change", {
|
|
6352
|
-
avatar_file_name:
|
|
6352
|
+
avatar_file_name: T
|
|
6353
6353
|
});
|
|
6354
6354
|
},
|
|
6355
6355
|
[e]
|
|
6356
6356
|
), z = H(
|
|
6357
|
-
async ({ formData:
|
|
6357
|
+
async ({ formData: h }) => await e.post("/cash-register/createMachine", h),
|
|
6358
6358
|
[e]
|
|
6359
6359
|
);
|
|
6360
6360
|
return {
|
|
@@ -6384,12 +6384,12 @@ const Ca = /* @__PURE__ */ yi($t), wa = (e) => {
|
|
|
6384
6384
|
getMachineLoginCodeApi: A,
|
|
6385
6385
|
memberTransferApi: k,
|
|
6386
6386
|
mobileLoginApi: D,
|
|
6387
|
-
sendMobileVerifyCodeApi:
|
|
6388
|
-
mobileLoginApiV2:
|
|
6389
|
-
bindAccountApi:
|
|
6390
|
-
mobileRegisterApi:
|
|
6387
|
+
sendMobileVerifyCodeApi: w,
|
|
6388
|
+
mobileLoginApiV2: F,
|
|
6389
|
+
bindAccountApi: R,
|
|
6390
|
+
mobileRegisterApi: P,
|
|
6391
6391
|
verifyResetActionApi: c,
|
|
6392
|
-
getJackpotApi:
|
|
6392
|
+
getJackpotApi: G,
|
|
6393
6393
|
getBetRankingApi: B,
|
|
6394
6394
|
getUserAvatarListApi: O,
|
|
6395
6395
|
updateUserAvatarApi: W
|
|
@@ -6430,19 +6430,19 @@ const Ca = /* @__PURE__ */ yi($t), wa = (e) => {
|
|
|
6430
6430
|
userFavoriteGameApi: a,
|
|
6431
6431
|
userGameListApi: r,
|
|
6432
6432
|
userCurrencyExchangeApi: p
|
|
6433
|
-
} = re(), g =
|
|
6433
|
+
} = re(), g = j({
|
|
6434
6434
|
queryKey: ["getMemInfo"],
|
|
6435
6435
|
queryFn: async () => n(),
|
|
6436
6436
|
enabled: e
|
|
6437
|
-
}), U =
|
|
6437
|
+
}), U = j({
|
|
6438
6438
|
queryKey: ["getFavoriteGame"],
|
|
6439
6439
|
queryFn: async () => a(),
|
|
6440
6440
|
enabled: e && g.isSuccess
|
|
6441
|
-
}), d =
|
|
6441
|
+
}), d = j({
|
|
6442
6442
|
queryKey: ["getUserGameList"],
|
|
6443
6443
|
queryFn: async () => r(),
|
|
6444
6444
|
enabled: e && g.isSuccess && U.isSuccess
|
|
6445
|
-
}), l =
|
|
6445
|
+
}), l = j({
|
|
6446
6446
|
queryKey: ["getUserCurrencyExchange"],
|
|
6447
6447
|
queryFn: async () => p(),
|
|
6448
6448
|
enabled: e && g.isSuccess && U.isSuccess && d.isSuccess
|
|
@@ -6482,8 +6482,8 @@ const Ca = /* @__PURE__ */ yi($t), wa = (e) => {
|
|
|
6482
6482
|
), p = H(
|
|
6483
6483
|
async (U) => {
|
|
6484
6484
|
const {
|
|
6485
|
-
startDate: d =
|
|
6486
|
-
endDate: l =
|
|
6485
|
+
startDate: d = Ne().add(-1, "day").format("YYYY-MM-DD 12:00:00"),
|
|
6486
|
+
endDate: l = Ne().format("YYYY-MM-DD 11:59:59"),
|
|
6487
6487
|
platform: t = "",
|
|
6488
6488
|
limit: i = 25
|
|
6489
6489
|
} = U, { data: o } = await e.get("/report/netprofit", {
|
|
@@ -6500,8 +6500,8 @@ const Ca = /* @__PURE__ */ yi($t), wa = (e) => {
|
|
|
6500
6500
|
), g = H(
|
|
6501
6501
|
async (U) => {
|
|
6502
6502
|
const {
|
|
6503
|
-
startDate: d =
|
|
6504
|
-
endDate: l =
|
|
6503
|
+
startDate: d = Ne().add(-1, "day").format("YYYY-MM-DD 12:00:00"),
|
|
6504
|
+
endDate: l = Ne().format("YYYY-MM-DD 11:59:59"),
|
|
6505
6505
|
platform: t,
|
|
6506
6506
|
limit: i = 25,
|
|
6507
6507
|
page: o = 1
|
|
@@ -6521,7 +6521,7 @@ const Ca = /* @__PURE__ */ yi($t), wa = (e) => {
|
|
|
6521
6521
|
return { playGameApi: r, betRecordApi: p, betRecordDetailApi: g };
|
|
6522
6522
|
}, ho = ({ options: e, formData: n } = {}) => {
|
|
6523
6523
|
const { betRecordApi: a } = Ci();
|
|
6524
|
-
return
|
|
6524
|
+
return j({
|
|
6525
6525
|
queryKey: ["getBetRecord"],
|
|
6526
6526
|
queryFn: async () => await a(n),
|
|
6527
6527
|
select: (r) => In(r).map(([g, U]) => ({
|
|
@@ -6532,7 +6532,7 @@ const Ca = /* @__PURE__ */ yi($t), wa = (e) => {
|
|
|
6532
6532
|
});
|
|
6533
6533
|
}, To = ({ options: e, formData: n } = {}) => {
|
|
6534
6534
|
const { betRecordDetailApi: a } = Ci();
|
|
6535
|
-
return
|
|
6535
|
+
return j({
|
|
6536
6536
|
queryKey: ["getBetRecordDetail"],
|
|
6537
6537
|
queryFn: async () => await a(n),
|
|
6538
6538
|
...e
|
|
@@ -7200,7 +7200,7 @@ function xi() {
|
|
|
7200
7200
|
return s && s.__esModule ? s : { default: s };
|
|
7201
7201
|
};
|
|
7202
7202
|
Object.defineProperty(Ze, "__esModule", { value: !0 }), Ze.useWebSocket = void 0;
|
|
7203
|
-
var p =
|
|
7203
|
+
var p = fe, g = $r, U = la(), d = Do(), l = Eo(), t = r(No()), i = ki(), o = function(s, u, m) {
|
|
7204
7204
|
u === void 0 && (u = U.DEFAULT_OPTIONS), m === void 0 && (m = !0);
|
|
7205
7205
|
var _ = (0, p.useState)(null), c = _[0], y = _[1], f = (0, p.useState)({}), b = f[0], C = f[1], v = (0, p.useMemo)(function() {
|
|
7206
7206
|
if (!u.disableJson && c)
|
|
@@ -7211,49 +7211,49 @@ function xi() {
|
|
|
7211
7211
|
}
|
|
7212
7212
|
return null;
|
|
7213
7213
|
}, [c, u.disableJson]), S = (0, p.useRef)(null), E = (0, p.useRef)(null), M = (0, p.useRef)(function() {
|
|
7214
|
-
}), A = (0, p.useRef)(0), k = (0, p.useRef)(Date.now()), D = (0, p.useRef)([]),
|
|
7215
|
-
|
|
7216
|
-
var
|
|
7217
|
-
var
|
|
7214
|
+
}), A = (0, p.useRef)(0), k = (0, p.useRef)(Date.now()), D = (0, p.useRef)([]), F = (0, p.useRef)(null), P = (0, p.useRef)(u);
|
|
7215
|
+
P.current = u;
|
|
7216
|
+
var w = S.current && b[S.current] !== void 0 ? b[S.current] : s !== null && m === !0 ? U.ReadyState.CONNECTING : U.ReadyState.UNINSTANTIATED, R = u.queryParams ? JSON.stringify(u.queryParams) : null, G = (0, p.useCallback)(function(W, z) {
|
|
7217
|
+
var h;
|
|
7218
7218
|
if (z === void 0 && (z = !0), U.isEventSourceSupported && E.current instanceof EventSource) {
|
|
7219
7219
|
console.warn("Unable to send a message from an eventSource");
|
|
7220
7220
|
return;
|
|
7221
7221
|
}
|
|
7222
|
-
((
|
|
7222
|
+
((h = E.current) === null || h === void 0 ? void 0 : h.readyState) === U.ReadyState.OPEN ? ((0, i.assertIsWebSocket)(E.current, P.current.skipAssert), E.current.send(W)) : z && D.current.push(W);
|
|
7223
7223
|
}, []), B = (0, p.useCallback)(function(W, z) {
|
|
7224
|
-
z === void 0 && (z = !0),
|
|
7225
|
-
}, [
|
|
7226
|
-
return
|
|
7224
|
+
z === void 0 && (z = !0), G(JSON.stringify(W), z);
|
|
7225
|
+
}, [G]), O = (0, p.useCallback)(function() {
|
|
7226
|
+
return P.current.share !== !0 || U.isEventSourceSupported && E.current instanceof EventSource ? E.current : (F.current === null && E.current && ((0, i.assertIsWebSocket)(E.current, P.current.skipAssert), F.current = (0, t.default)(E.current, M)), F.current);
|
|
7227
7227
|
}, []);
|
|
7228
7228
|
return (0, p.useEffect)(function() {
|
|
7229
7229
|
if (s !== null && m === !0) {
|
|
7230
|
-
var W, z = !1,
|
|
7230
|
+
var W, z = !1, h = !0, T = function() {
|
|
7231
7231
|
return n(void 0, void 0, void 0, function() {
|
|
7232
|
-
var N, L,
|
|
7233
|
-
return a(this, function(
|
|
7234
|
-
switch (
|
|
7232
|
+
var N, L, q;
|
|
7233
|
+
return a(this, function(J) {
|
|
7234
|
+
switch (J.label) {
|
|
7235
7235
|
case 0:
|
|
7236
|
-
return N = S, [4, (0, l.getUrl)(s,
|
|
7236
|
+
return N = S, [4, (0, l.getUrl)(s, P)];
|
|
7237
7237
|
case 1:
|
|
7238
|
-
return N.current =
|
|
7239
|
-
return C(function(
|
|
7240
|
-
return e(e({},
|
|
7238
|
+
return N.current = J.sent(), S.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), S.current = "ABORTED", (0, g.flushSync)(function() {
|
|
7239
|
+
return C(function($) {
|
|
7240
|
+
return e(e({}, $), { ABORTED: U.ReadyState.CLOSED });
|
|
7241
7241
|
});
|
|
7242
7242
|
}), [
|
|
7243
7243
|
2
|
|
7244
7244
|
/*return*/
|
|
7245
|
-
]) : (L = function(
|
|
7245
|
+
]) : (L = function($) {
|
|
7246
7246
|
z || (0, g.flushSync)(function() {
|
|
7247
|
-
return y(
|
|
7247
|
+
return y($);
|
|
7248
7248
|
});
|
|
7249
|
-
},
|
|
7249
|
+
}, q = function($) {
|
|
7250
7250
|
z || (0, g.flushSync)(function() {
|
|
7251
7251
|
return C(function(K) {
|
|
7252
7252
|
var te;
|
|
7253
|
-
return e(e({}, K), S.current && (te = {}, te[S.current] =
|
|
7253
|
+
return e(e({}, K), S.current && (te = {}, te[S.current] = $, te));
|
|
7254
7254
|
});
|
|
7255
7255
|
});
|
|
7256
|
-
},
|
|
7256
|
+
}, h && (W = (0, d.createOrJoinSocket)(E, S.current, q, P, L, M, A, k, G)), [
|
|
7257
7257
|
2
|
|
7258
7258
|
/*return*/
|
|
7259
7259
|
]);
|
|
@@ -7262,24 +7262,24 @@ function xi() {
|
|
|
7262
7262
|
});
|
|
7263
7263
|
};
|
|
7264
7264
|
return M.current = function() {
|
|
7265
|
-
z || (
|
|
7266
|
-
},
|
|
7267
|
-
z = !0,
|
|
7265
|
+
z || (F.current && (F.current = null), W?.(), T());
|
|
7266
|
+
}, T(), function() {
|
|
7267
|
+
z = !0, h = !1, F.current && (F.current = null), W?.(), y(null);
|
|
7268
7268
|
};
|
|
7269
7269
|
} else (s === null || m === !1) && (A.current = 0, C(function(N) {
|
|
7270
7270
|
var L;
|
|
7271
7271
|
return e(e({}, N), S.current && (L = {}, L[S.current] = U.ReadyState.CLOSED, L));
|
|
7272
7272
|
}));
|
|
7273
|
-
}, [s, m,
|
|
7274
|
-
|
|
7275
|
-
|
|
7273
|
+
}, [s, m, R, G]), (0, p.useEffect)(function() {
|
|
7274
|
+
w === U.ReadyState.OPEN && D.current.splice(0).forEach(function(W) {
|
|
7275
|
+
G(W);
|
|
7276
7276
|
});
|
|
7277
|
-
}, [
|
|
7278
|
-
sendMessage:
|
|
7277
|
+
}, [w]), {
|
|
7278
|
+
sendMessage: G,
|
|
7279
7279
|
sendJsonMessage: B,
|
|
7280
7280
|
lastMessage: c,
|
|
7281
7281
|
lastJsonMessage: v,
|
|
7282
|
-
readyState:
|
|
7282
|
+
readyState: w,
|
|
7283
7283
|
getWebSocket: O
|
|
7284
7284
|
};
|
|
7285
7285
|
};
|
|
@@ -7299,7 +7299,7 @@ function Lo() {
|
|
|
7299
7299
|
}, e.apply(this, arguments);
|
|
7300
7300
|
};
|
|
7301
7301
|
Object.defineProperty(Ta, "__esModule", { value: !0 }), Ta.useSocketIO = void 0;
|
|
7302
|
-
var n =
|
|
7302
|
+
var n = fe, a = xi(), r = la(), p = {
|
|
7303
7303
|
type: "empty",
|
|
7304
7304
|
payload: null
|
|
7305
7305
|
}, g = function(d) {
|
|
@@ -7352,7 +7352,7 @@ function Go() {
|
|
|
7352
7352
|
return l;
|
|
7353
7353
|
};
|
|
7354
7354
|
Object.defineProperty(ua, "__esModule", { value: !0 }), ua.useEventSource = void 0;
|
|
7355
|
-
var a =
|
|
7355
|
+
var a = fe, r = xi(), p = la(), g = function(U, d, l) {
|
|
7356
7356
|
d === void 0 && (d = p.DEFAULT_EVENT_SOURCE_OPTIONS);
|
|
7357
7357
|
var t = d.withCredentials, i = d.events, o = n(d, ["withCredentials", "events"]);
|
|
7358
7358
|
l === void 0 && (l = !0);
|
|
@@ -7541,7 +7541,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7541
7541
|
});
|
|
7542
7542
|
}, Vo = ({ paramsData: e, options: n } = {}) => {
|
|
7543
7543
|
const { userRebateApi: a } = re(), { getToken: r } = se();
|
|
7544
|
-
return r?.(),
|
|
7544
|
+
return r?.(), j({
|
|
7545
7545
|
queryKey: ["userRebate", e],
|
|
7546
7546
|
queryFn: async () => a({ paramsData: e }),
|
|
7547
7547
|
enabled: !1,
|
|
@@ -7574,12 +7574,12 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7574
7574
|
});
|
|
7575
7575
|
}, Fm = ({ options: e } = {}) => {
|
|
7576
7576
|
const { currency: n } = se(), { checkUserWagerApi: a } = re();
|
|
7577
|
-
return
|
|
7577
|
+
return j({
|
|
7578
7578
|
queryKey: ["checkUserWager"],
|
|
7579
7579
|
queryFn: async () => a(),
|
|
7580
7580
|
select: (r) => {
|
|
7581
7581
|
const { data: p } = r;
|
|
7582
|
-
return
|
|
7582
|
+
return Ve(p?.base, {
|
|
7583
7583
|
currency: n
|
|
7584
7584
|
}) || {};
|
|
7585
7585
|
},
|
|
@@ -7620,7 +7620,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7620
7620
|
});
|
|
7621
7621
|
}, qo = ({ options: e, formData: n } = {}) => {
|
|
7622
7622
|
const { getMachineLoginCodeApi: a } = re();
|
|
7623
|
-
return
|
|
7623
|
+
return j({
|
|
7624
7624
|
queryKey: ["getMachineLoginCode"],
|
|
7625
7625
|
queryFn: async () => a(n),
|
|
7626
7626
|
...e
|
|
@@ -7669,14 +7669,14 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7669
7669
|
});
|
|
7670
7670
|
}, Vm = ({ options: e, paramsData: n } = {}) => {
|
|
7671
7671
|
const { verifyPhoneBarApi: a } = za();
|
|
7672
|
-
return
|
|
7672
|
+
return j({
|
|
7673
7673
|
queryKey: ["verifyPhoneBar", n],
|
|
7674
7674
|
queryFn: async () => a(n),
|
|
7675
7675
|
...e
|
|
7676
7676
|
});
|
|
7677
7677
|
}, Jm = ({ options: e, paramsData: n } = {}) => {
|
|
7678
7678
|
const { verifyDonationCodeApi: a } = za();
|
|
7679
|
-
return
|
|
7679
|
+
return j({
|
|
7680
7680
|
queryKey: ["verifyDonationCode", n],
|
|
7681
7681
|
queryFn: async () => a(n),
|
|
7682
7682
|
...e
|
|
@@ -7697,11 +7697,11 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7697
7697
|
});
|
|
7698
7698
|
}, qm = ({ options: e, bonusData: n } = {}) => {
|
|
7699
7699
|
const { getJackpotApi: a } = re();
|
|
7700
|
-
return
|
|
7700
|
+
return j({
|
|
7701
7701
|
queryKey: ["getJackpotData"],
|
|
7702
7702
|
queryFn: async () => a(),
|
|
7703
7703
|
select: (r) => {
|
|
7704
|
-
const p =
|
|
7704
|
+
const p = Q(r, "data", {
|
|
7705
7705
|
MAJOR: 0,
|
|
7706
7706
|
MINOR: 0,
|
|
7707
7707
|
MINI: 0,
|
|
@@ -7709,21 +7709,21 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7709
7709
|
MEGA: 0
|
|
7710
7710
|
});
|
|
7711
7711
|
return n ? Vr(n, (U, d) => {
|
|
7712
|
-
U.amount =
|
|
7712
|
+
U.amount = Q(p, d, 0) + Math.floor(Math.random() * 1e3);
|
|
7713
7713
|
}) : p;
|
|
7714
7714
|
},
|
|
7715
7715
|
...e
|
|
7716
7716
|
});
|
|
7717
7717
|
}, $m = ({ options: e } = {}) => {
|
|
7718
7718
|
const { getBetRankingApi: n } = re();
|
|
7719
|
-
return
|
|
7719
|
+
return j({
|
|
7720
7720
|
queryKey: ["getBetRankingData"],
|
|
7721
7721
|
queryFn: async () => n(),
|
|
7722
7722
|
...e
|
|
7723
7723
|
});
|
|
7724
7724
|
}, Qm = ({ options: e } = {}) => {
|
|
7725
7725
|
const { getUserAvatarListApi: n } = re();
|
|
7726
|
-
return
|
|
7726
|
+
return j({
|
|
7727
7727
|
queryKey: ["getAvatarList"],
|
|
7728
7728
|
queryFn: async () => n(),
|
|
7729
7729
|
// select: (data) => {
|
|
@@ -7773,7 +7773,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7773
7773
|
userRebate: t,
|
|
7774
7774
|
userBindCard: i
|
|
7775
7775
|
};
|
|
7776
|
-
},
|
|
7776
|
+
}, We = {
|
|
7777
7777
|
DEPOSIT: "deposit",
|
|
7778
7778
|
TRANS_CODE: "transCode",
|
|
7779
7779
|
ERROR: "error",
|
|
@@ -7803,43 +7803,43 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7803
7803
|
disabledLineAutoRegister: U = !1,
|
|
7804
7804
|
navigate: d = null
|
|
7805
7805
|
}) => {
|
|
7806
|
-
const { store: l, lng: t } = se(), i = xa(), { isReady: o, setAsReady: s, isPending: u, setAsPending: m } = Zn(), _ = Qe(t), c = ae(!1), y = ae(n), f =
|
|
7807
|
-
|
|
7808
|
-
const
|
|
7806
|
+
const { store: l, lng: t } = se(), i = xa(), { isReady: o, setAsReady: s, isPending: u, setAsPending: m } = Zn(), _ = Qe(t), c = ae(!1), y = ae(n), f = Q(r, "uid", null), b = Q(r, "cagent_uid", null);
|
|
7807
|
+
Q(r, "testFunction", 0);
|
|
7808
|
+
const C = new URLSearchParams(window.location.search), v = Q(
|
|
7809
7809
|
p,
|
|
7810
7810
|
"enableTransferInGaming",
|
|
7811
7811
|
!1
|
|
7812
|
-
), { mutateAsync:
|
|
7812
|
+
), { mutateAsync: S } = nr({
|
|
7813
7813
|
options: {
|
|
7814
7814
|
onSuccess: (G) => {
|
|
7815
7815
|
y.current.onLineLogin?.(G);
|
|
7816
7816
|
},
|
|
7817
7817
|
retry: !1
|
|
7818
7818
|
}
|
|
7819
|
-
}), { mutateAsync:
|
|
7819
|
+
}), { mutateAsync: E } = Ko({
|
|
7820
7820
|
options: {
|
|
7821
7821
|
onSuccess: (G) => {
|
|
7822
7822
|
y.current.onLineLogin?.(G);
|
|
7823
7823
|
},
|
|
7824
|
-
onError: (G,
|
|
7825
|
-
U ||
|
|
7824
|
+
onError: (G, B) => {
|
|
7825
|
+
U || S(B);
|
|
7826
7826
|
}
|
|
7827
7827
|
}
|
|
7828
|
-
}), { handleTransferInGame:
|
|
7829
|
-
enable:
|
|
7828
|
+
}), { handleTransferInGame: M } = wo({
|
|
7829
|
+
enable: v,
|
|
7830
7830
|
isTestFunction: !0,
|
|
7831
|
-
isTransferMode:
|
|
7832
|
-
isInGameBox:
|
|
7833
|
-
currentGamePlatform:
|
|
7831
|
+
isTransferMode: Q(p, "isTransferMode", !1),
|
|
7832
|
+
isInGameBox: Q(p, "isInGameBox", !1),
|
|
7833
|
+
currentGamePlatform: Q(p, "currentGamePlatform", "")
|
|
7834
7834
|
}), {
|
|
7835
|
-
sendMessage:
|
|
7835
|
+
sendMessage: A,
|
|
7836
7836
|
// 發送普通訊息
|
|
7837
|
-
sendJsonMessage:
|
|
7837
|
+
sendJsonMessage: k,
|
|
7838
7838
|
// 發送 JSON 訊息
|
|
7839
|
-
lastMessage:
|
|
7839
|
+
lastMessage: D,
|
|
7840
7840
|
// 最後接收到的訊息
|
|
7841
7841
|
// lastJsonMessage, // 最後接收到的 JSON 訊息
|
|
7842
|
-
readyState:
|
|
7842
|
+
readyState: F
|
|
7843
7843
|
// WebSocket 連線狀態
|
|
7844
7844
|
// getWebSocket, // 獲取 WebSocket 實例
|
|
7845
7845
|
} = Po(e, {
|
|
@@ -7851,27 +7851,27 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7851
7851
|
...a
|
|
7852
7852
|
}), P = Ba(() => {
|
|
7853
7853
|
try {
|
|
7854
|
-
return JSON.parse(
|
|
7854
|
+
return JSON.parse(D?.data);
|
|
7855
7855
|
} catch {
|
|
7856
7856
|
return null;
|
|
7857
7857
|
}
|
|
7858
|
-
}, [
|
|
7858
|
+
}, [D]);
|
|
7859
7859
|
ue(() => {
|
|
7860
7860
|
const G = setInterval(
|
|
7861
|
-
() =>
|
|
7861
|
+
() => A("ping"),
|
|
7862
7862
|
Qo
|
|
7863
7863
|
);
|
|
7864
7864
|
return () => clearInterval(G);
|
|
7865
|
-
}, [
|
|
7865
|
+
}, [A]);
|
|
7866
7866
|
const w = H(
|
|
7867
|
-
(G,
|
|
7867
|
+
(G, B) => {
|
|
7868
7868
|
g && l.dispatch({
|
|
7869
7869
|
type: "ui/openNotificationModal",
|
|
7870
7870
|
payload: {
|
|
7871
7871
|
title: Ha[_] || "System Prompt",
|
|
7872
7872
|
content: G,
|
|
7873
7873
|
type: "warning",
|
|
7874
|
-
props:
|
|
7874
|
+
props: B
|
|
7875
7875
|
}
|
|
7876
7876
|
});
|
|
7877
7877
|
},
|
|
@@ -7880,124 +7880,131 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
7880
7880
|
ue(() => {
|
|
7881
7881
|
y.current = n;
|
|
7882
7882
|
}, [n]);
|
|
7883
|
-
const
|
|
7883
|
+
const R = ae(null);
|
|
7884
7884
|
return ue(() => {
|
|
7885
|
-
if (!P ||
|
|
7885
|
+
if (!P || R.current === P)
|
|
7886
7886
|
return;
|
|
7887
|
-
|
|
7887
|
+
R.current = P;
|
|
7888
7888
|
const {
|
|
7889
7889
|
onDeposit: G,
|
|
7890
|
-
onTransCode:
|
|
7891
|
-
onError:
|
|
7892
|
-
onUpdateMember:
|
|
7893
|
-
onMaintainNotice:
|
|
7894
|
-
onMaintainNoticeMember:
|
|
7890
|
+
onTransCode: B,
|
|
7891
|
+
onError: O,
|
|
7892
|
+
onUpdateMember: W,
|
|
7893
|
+
onMaintainNotice: z,
|
|
7894
|
+
onMaintainNoticeMember: h,
|
|
7895
7895
|
onTransferInGame: T,
|
|
7896
|
-
onCashRegisterLimit:
|
|
7897
|
-
onLineLogin:
|
|
7898
|
-
} = y.current,
|
|
7899
|
-
memberInfoUid:
|
|
7900
|
-
data:
|
|
7901
|
-
memo:
|
|
7902
|
-
amount:
|
|
7903
|
-
limitAmount:
|
|
7904
|
-
},
|
|
7905
|
-
switch (
|
|
7906
|
-
case
|
|
7907
|
-
|
|
7896
|
+
onCashRegisterLimit: N,
|
|
7897
|
+
onLineLogin: L
|
|
7898
|
+
} = y.current, q = Q(P, "type", ""), J = {
|
|
7899
|
+
memberInfoUid: Q(P, "member_info_uid", null),
|
|
7900
|
+
data: Q(P, "data", null),
|
|
7901
|
+
memo: Q(P, "memo", null),
|
|
7902
|
+
amount: Q(P, "amount", null),
|
|
7903
|
+
limitAmount: Q(P, "limit_amount", null)
|
|
7904
|
+
}, $ = Number(J.memberInfoUid) === f, K = J.data, te = J.amount, le = J.limitAmount, be = C.get("mac") || pi.get("machine_mac_address") || "", Ce = Q(P, "data.line_id", null), pe = Q(P, "data.line_name", null), ye = Q(P, "member_info_uid", null);
|
|
7905
|
+
switch (q) {
|
|
7906
|
+
case We.DEPOSIT:
|
|
7907
|
+
$ && (M(), G?.(J));
|
|
7908
7908
|
break;
|
|
7909
|
-
case
|
|
7910
|
-
|
|
7909
|
+
case We.TRANS_CODE:
|
|
7910
|
+
B?.(J);
|
|
7911
7911
|
break;
|
|
7912
|
-
case
|
|
7913
|
-
if (
|
|
7914
|
-
const
|
|
7915
|
-
w(
|
|
7916
|
-
notificationType:
|
|
7917
|
-
}),
|
|
7912
|
+
case We.ERROR:
|
|
7913
|
+
if ($) {
|
|
7914
|
+
const ce = Q(P, "open_game_modal", 0) === 1;
|
|
7915
|
+
w(K, {
|
|
7916
|
+
notificationType: ce ? "gamingNotice" : void 0
|
|
7917
|
+
}), O?.(J);
|
|
7918
7918
|
}
|
|
7919
7919
|
break;
|
|
7920
|
-
case
|
|
7920
|
+
case We.UPDATE_MEMBER:
|
|
7921
7921
|
f && (i.invalidateQueries({
|
|
7922
7922
|
queryKey: ["getMemberInfo"]
|
|
7923
|
-
}),
|
|
7923
|
+
}), W?.(J));
|
|
7924
7924
|
break;
|
|
7925
|
-
case
|
|
7926
|
-
w(
|
|
7925
|
+
case We.MAINTAIN_NOTICE:
|
|
7926
|
+
w(K, {
|
|
7927
7927
|
notificationType: "maintainNotice"
|
|
7928
|
-
}),
|
|
7928
|
+
}), z?.(J);
|
|
7929
7929
|
break;
|
|
7930
|
-
case
|
|
7931
|
-
|
|
7932
|
-
|
|
7933
|
-
|
|
7934
|
-
|
|
7930
|
+
case We.MAINTAIN_NOTICE_MEMBER: {
|
|
7931
|
+
const ce = J.data?.cagent_uid ?? null;
|
|
7932
|
+
if (ce != null) {
|
|
7933
|
+
String(b) === String(ce) && (w(J.data?.msg, { rawMessage: !0 }), h?.(J), setTimeout(() => {
|
|
7934
|
+
d?.("/");
|
|
7935
|
+
}, 5e3));
|
|
7936
|
+
return;
|
|
7937
|
+
} else if ($) {
|
|
7938
|
+
const _e = l.getState()?.game?.currentGameData?.gameUid ?? null, we = J.data?.game_id;
|
|
7939
|
+
if (we != null) {
|
|
7940
|
+
Array.isArray(we) && we.some((de) => String(de) === String(_e)) && (w(J.data?.msg, { rawMessage: !0 }), h?.(J), setTimeout(() => {
|
|
7935
7941
|
d?.("/");
|
|
7936
7942
|
}, 5e3));
|
|
7937
7943
|
return;
|
|
7938
7944
|
}
|
|
7939
|
-
w(
|
|
7945
|
+
w(K), h?.(J), setTimeout(() => {
|
|
7940
7946
|
window.location.reload();
|
|
7941
7947
|
}, 5e4);
|
|
7942
7948
|
}
|
|
7943
7949
|
break;
|
|
7944
|
-
|
|
7950
|
+
}
|
|
7951
|
+
case We.RELOAD:
|
|
7945
7952
|
window.location.reload();
|
|
7946
7953
|
break;
|
|
7947
|
-
case
|
|
7948
|
-
case
|
|
7949
|
-
if (
|
|
7950
|
-
const { request_id:
|
|
7954
|
+
case We.TRANSFER_IN_GAME:
|
|
7955
|
+
case We.CHECK_REQUEST:
|
|
7956
|
+
if ($ && v) {
|
|
7957
|
+
const { request_id: ce, amount: _e, platform: we, status: de } = Q(J, "data", {}) || {}, xe = localStorage.getItem(
|
|
7951
7958
|
"transfer_in_game_request_id"
|
|
7952
7959
|
);
|
|
7953
|
-
if (
|
|
7954
|
-
localStorage.setItem("transfer_in_game_request_id",
|
|
7960
|
+
if (de === "pending") {
|
|
7961
|
+
localStorage.setItem("transfer_in_game_request_id", ce);
|
|
7955
7962
|
return;
|
|
7956
|
-
} else if (
|
|
7957
|
-
if (
|
|
7958
|
-
|
|
7963
|
+
} else if (xe && xe === ce) {
|
|
7964
|
+
if (de === "rollback") {
|
|
7965
|
+
M();
|
|
7959
7966
|
return;
|
|
7960
7967
|
}
|
|
7961
7968
|
localStorage.removeItem("transfer_in_game_request_id"), l.dispatch({
|
|
7962
7969
|
type: "ui/showToast",
|
|
7963
7970
|
payload: {
|
|
7964
7971
|
title: Ha[_] || "System Prompt",
|
|
7965
|
-
description: `您於${
|
|
7972
|
+
description: `您於${we}存入的${_e}元已經處理完成了,請確認遊戲餘額`,
|
|
7966
7973
|
status: "success"
|
|
7967
7974
|
}
|
|
7968
7975
|
}), s();
|
|
7969
7976
|
}
|
|
7970
|
-
T?.(
|
|
7977
|
+
T?.(J);
|
|
7971
7978
|
}
|
|
7972
7979
|
break;
|
|
7973
|
-
case
|
|
7974
|
-
w(
|
|
7980
|
+
case We.CASH_REGISTER_LIMIT:
|
|
7981
|
+
w(K, {
|
|
7975
7982
|
notificationType: "cashRegisterLimit",
|
|
7976
|
-
amount:
|
|
7977
|
-
limitAmount:
|
|
7978
|
-
}),
|
|
7983
|
+
amount: te,
|
|
7984
|
+
limitAmount: le
|
|
7985
|
+
}), N?.(J);
|
|
7979
7986
|
break;
|
|
7980
|
-
case
|
|
7981
|
-
|
|
7987
|
+
case We.UPDATE_ONLY_ONE_MEMBER:
|
|
7988
|
+
$ && (i.invalidateQueries({
|
|
7982
7989
|
queryKey: ["getMemberInfo"]
|
|
7983
|
-
}),
|
|
7990
|
+
}), W?.(J));
|
|
7984
7991
|
break;
|
|
7985
|
-
case
|
|
7986
|
-
w(
|
|
7992
|
+
case We.GAME_MAINTAIN:
|
|
7993
|
+
w(K, {
|
|
7987
7994
|
notificationType: "gameMaintain"
|
|
7988
7995
|
});
|
|
7989
7996
|
break;
|
|
7990
|
-
case
|
|
7991
|
-
|
|
7992
|
-
line_id:
|
|
7993
|
-
line_name:
|
|
7997
|
+
case We.LINE_LOGIN:
|
|
7998
|
+
ye === be && S({
|
|
7999
|
+
line_id: Ce,
|
|
8000
|
+
line_name: pe
|
|
7994
8001
|
});
|
|
7995
8002
|
break;
|
|
7996
|
-
case
|
|
7997
|
-
|
|
8003
|
+
case We.UPDATE_EVENT_WALLET:
|
|
8004
|
+
$ && (i.invalidateQueries({ queryKey: ["getEventWalletList"] }), i.invalidateQueries({ queryKey: ["evaluateEventWallet"] }));
|
|
7998
8005
|
return;
|
|
7999
8006
|
default:
|
|
8000
|
-
console.warn("Unknown socket type:",
|
|
8007
|
+
console.warn("Unknown socket type:", q);
|
|
8001
8008
|
break;
|
|
8002
8009
|
}
|
|
8003
8010
|
}, [
|
|
@@ -8008,27 +8015,27 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8008
8015
|
_,
|
|
8009
8016
|
w,
|
|
8010
8017
|
u,
|
|
8011
|
-
|
|
8012
|
-
|
|
8018
|
+
M,
|
|
8019
|
+
v,
|
|
8013
8020
|
s,
|
|
8014
|
-
|
|
8015
|
-
|
|
8021
|
+
C,
|
|
8022
|
+
S
|
|
8016
8023
|
]), ue(() => () => c.current = !0, []), ue(() => {
|
|
8017
8024
|
localStorage.getItem(
|
|
8018
8025
|
"transfer_in_game_request_id"
|
|
8019
8026
|
) && m();
|
|
8020
8027
|
}, [m]), ue(() => {
|
|
8021
|
-
if (
|
|
8028
|
+
if (v) {
|
|
8022
8029
|
const G = localStorage.getItem(
|
|
8023
8030
|
"transfer_in_game_request_id"
|
|
8024
8031
|
);
|
|
8025
|
-
G && f && u &&
|
|
8026
|
-
type:
|
|
8032
|
+
G && f && u && k({
|
|
8033
|
+
type: We.CHECK_REQUEST,
|
|
8027
8034
|
request_id: G,
|
|
8028
8035
|
member_info_uid: f
|
|
8029
8036
|
});
|
|
8030
8037
|
}
|
|
8031
|
-
}, [f, u,
|
|
8038
|
+
}, [f, u, k, v]), ue(() => {
|
|
8032
8039
|
u ? l.dispatch({
|
|
8033
8040
|
type: "ui/showToast",
|
|
8034
8041
|
payload: {
|
|
@@ -8045,9 +8052,9 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8045
8052
|
}
|
|
8046
8053
|
});
|
|
8047
8054
|
}, [u, o, l, _]), {
|
|
8048
|
-
sendMessage:
|
|
8049
|
-
sendJsonMessage:
|
|
8050
|
-
readyState:
|
|
8055
|
+
sendMessage: A,
|
|
8056
|
+
sendJsonMessage: k,
|
|
8057
|
+
readyState: F
|
|
8051
8058
|
// WebSocket 連線狀態
|
|
8052
8059
|
};
|
|
8053
8060
|
}, et = () => {
|
|
@@ -8095,21 +8102,21 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8095
8102
|
};
|
|
8096
8103
|
}, jo = ({ paramsData: e, options: n } = {}) => {
|
|
8097
8104
|
const { store: a, lng: r, data2URL: p } = se(), { eventListApi: g } = et(), U = a?.getState()?.isWalletCurrency || a?.getState()?.currency?.currentCurrency || "TWD", d = Qe(r);
|
|
8098
|
-
return
|
|
8105
|
+
return j({
|
|
8099
8106
|
queryKey: ["eventList", e],
|
|
8100
8107
|
queryFn: () => g({ paramsData: e }),
|
|
8101
8108
|
select: (l) => {
|
|
8102
8109
|
try {
|
|
8103
8110
|
const { data: t } = l;
|
|
8104
|
-
return
|
|
8105
|
-
const { events_attributes: s } = o, u =
|
|
8111
|
+
return Ge(t, (o) => {
|
|
8112
|
+
const { events_attributes: s } = o, u = Ve(
|
|
8106
8113
|
s,
|
|
8107
8114
|
(v) => v.attribute_currency === U
|
|
8108
|
-
) || s[0], m =
|
|
8115
|
+
) || s[0], m = Q(
|
|
8109
8116
|
u,
|
|
8110
8117
|
"rewards",
|
|
8111
8118
|
{}
|
|
8112
|
-
), _ =
|
|
8119
|
+
), _ = Q(o, "carousels.[0]", {}), c = Ve(_.carousels_lang, (v) => v.lang === d) || _?.carousels_lang?.[0], y = {
|
|
8113
8120
|
..._,
|
|
8114
8121
|
currentLngCarousel: {
|
|
8115
8122
|
...c,
|
|
@@ -8232,14 +8239,14 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8232
8239
|
});
|
|
8233
8240
|
}, Yo = ({ options: e, formData: n } = {}) => {
|
|
8234
8241
|
const { checkCurrentEventProgessApi: a } = et();
|
|
8235
|
-
return
|
|
8242
|
+
return j({
|
|
8236
8243
|
queryKey: ["checkEventProgress"],
|
|
8237
8244
|
queryFn: async () => a(n),
|
|
8238
8245
|
...e
|
|
8239
8246
|
});
|
|
8240
8247
|
}, Xo = ({ options: e, formData: n } = {}) => {
|
|
8241
8248
|
const { checkEventStatusApi: a } = et();
|
|
8242
|
-
return
|
|
8249
|
+
return j({
|
|
8243
8250
|
queryKey: ["checkEventStatus"],
|
|
8244
8251
|
queryFn: async () => a(n),
|
|
8245
8252
|
select: (r) => r.data.event_status,
|
|
@@ -8304,14 +8311,14 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8304
8311
|
};
|
|
8305
8312
|
}, iu = ({ gamePlatform: e, params: n } = {}) => {
|
|
8306
8313
|
const { eventWalletListApi: a } = at();
|
|
8307
|
-
return
|
|
8314
|
+
return j({
|
|
8308
8315
|
queryKey: ["getEventWalletList", e, n],
|
|
8309
8316
|
queryFn: async () => await a({
|
|
8310
8317
|
gamePlatform: e,
|
|
8311
8318
|
params: n
|
|
8312
8319
|
}),
|
|
8313
8320
|
select: (r) => {
|
|
8314
|
-
const p =
|
|
8321
|
+
const p = Q(r, "data", []), g = Q(r, "summary", []), U = e ? Ve(g, (C) => C.platform === e) : g, d = Q(p, "data", []), {
|
|
8315
8322
|
current_page: l,
|
|
8316
8323
|
first_page_url: t,
|
|
8317
8324
|
from: i,
|
|
@@ -8354,13 +8361,13 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8354
8361
|
});
|
|
8355
8362
|
}, ru = ({ gamePlatform: e = "", options: n = {} } = {}) => {
|
|
8356
8363
|
const { evaluateEventWalletApi: a } = at();
|
|
8357
|
-
return
|
|
8364
|
+
return j({
|
|
8358
8365
|
queryKey: ["evaluateEventWallet", e],
|
|
8359
8366
|
queryFn: async () => await a({ gamePlatform: e }),
|
|
8360
8367
|
select: (r) => {
|
|
8361
|
-
const p =
|
|
8368
|
+
const p = Q(r, "data", []), g = Q(r, "summary", []), U = e ? Ve(g, (l) => l.platform === e) : g;
|
|
8362
8369
|
return {
|
|
8363
|
-
list:
|
|
8370
|
+
list: Q(p, "data", []),
|
|
8364
8371
|
summary: {
|
|
8365
8372
|
...U
|
|
8366
8373
|
}
|
|
@@ -8388,7 +8395,7 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8388
8395
|
});
|
|
8389
8396
|
}, su = ({ skipPreload: e = !1 } = {}) => {
|
|
8390
8397
|
const { lng: n, data2URL: a } = se(), { commonCarouselApi: r } = za(), p = Qe(n);
|
|
8391
|
-
return
|
|
8398
|
+
return j({
|
|
8392
8399
|
queryKey: ["getCarouselList", e],
|
|
8393
8400
|
queryFn: async () => {
|
|
8394
8401
|
const g = window.carousels_list;
|
|
@@ -8416,14 +8423,14 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8416
8423
|
});
|
|
8417
8424
|
}, mu = () => {
|
|
8418
8425
|
const { lng: e, getToken: n } = se(), a = n?.(), { commonMarqueeApi: r } = za(), p = Qe(e);
|
|
8419
|
-
return
|
|
8426
|
+
return j({
|
|
8420
8427
|
queryKey: ["getMarqueeList", a],
|
|
8421
8428
|
queryFn: async () => {
|
|
8422
8429
|
const g = window.marquees;
|
|
8423
8430
|
return g && !a ? g : await r();
|
|
8424
8431
|
},
|
|
8425
8432
|
select: (g) => {
|
|
8426
|
-
const U = ea(g) ? g : g.Marquees, d = ea(g) ? g : g.MarqueesInsideGameBox, l =
|
|
8433
|
+
const U = ea(g) ? g : g.Marquees, d = ea(g) ? g : g.MarqueesInsideGameBox, l = Ge(U, (i) => i[p] || i?.en_US), t = Ge(d, (i) => i[p] || i?.en_US);
|
|
8427
8434
|
return {
|
|
8428
8435
|
marquee: l,
|
|
8429
8436
|
gameMarquee: t
|
|
@@ -8432,13 +8439,13 @@ const Po = /* @__PURE__ */ yi(Ro), wo = ({
|
|
|
8432
8439
|
});
|
|
8433
8440
|
}, uu = ({ options: e } = {}) => {
|
|
8434
8441
|
const { rankingGameApi: n } = re();
|
|
8435
|
-
return
|
|
8442
|
+
return j({
|
|
8436
8443
|
queryKey: ["rankingGame"],
|
|
8437
8444
|
queryFn: async () => n(),
|
|
8438
8445
|
enabled: window.profit_ranking_status === 1,
|
|
8439
8446
|
select: (a) => {
|
|
8440
8447
|
const { data: r } = a;
|
|
8441
|
-
return
|
|
8448
|
+
return Ge(r, (g) => {
|
|
8442
8449
|
const {
|
|
8443
8450
|
game_uid: U,
|
|
8444
8451
|
game_code: d,
|
|
@@ -8773,7 +8780,7 @@ function Us({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8773
8780
|
}, onAction: o = () => {
|
|
8774
8781
|
}, onMessage: s = () => {
|
|
8775
8782
|
}, debounce: u = 0, throttle: m = 0, eventsThrottle: _ = 200, startOnMount: c = !0, startManually: y = !1, stopOnIdle: f = !1, crossTab: b = !1, name: C = "idle-timer", syncTimers: v = 0, leaderElection: S = !1, disabled: E = !1 } = {}) {
|
|
8776
|
-
let M = ae(ke()), A = ae(ke()), k = ae(null), D = ae(null),
|
|
8783
|
+
let M = ae(ke()), A = ae(ke()), k = ae(null), D = ae(null), F = ae(0), P = ae(0), w = ae(0), R = ae(0), G = ae(!1), B = ae(!1), O = ae(!1), W = ae(!0), z = ae(!1), h = ae(null), T = ae(null), N = ae(e), L = ae(0);
|
|
8777
8784
|
ue(() => {
|
|
8778
8785
|
if (n && console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."), a && n) throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");
|
|
8779
8786
|
if (e >= Aa) throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${Aa}.`);
|
|
@@ -8782,14 +8789,14 @@ function Us({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8782
8789
|
if (a >= e) throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);
|
|
8783
8790
|
if (a ? (N.current = e - a, L.current = a) : (N.current = e, L.current = n), !W.current) {
|
|
8784
8791
|
if (y || E) return;
|
|
8785
|
-
|
|
8792
|
+
G.current && (pe.current(null, De), T.current && T.current.active()), je();
|
|
8786
8793
|
}
|
|
8787
8794
|
}, [e, n, a, y, E]);
|
|
8788
|
-
let
|
|
8795
|
+
let q = ae(f);
|
|
8789
8796
|
ue(() => {
|
|
8790
|
-
|
|
8797
|
+
q.current = f;
|
|
8791
8798
|
}, [f]);
|
|
8792
|
-
let
|
|
8799
|
+
let J = ae(U), $ = ae(r), K = ae([...(/* @__PURE__ */ new Set([...p, ...U])).values()]), te = ae(E);
|
|
8793
8800
|
ue(() => {
|
|
8794
8801
|
te.current = E, !W.current && (E ? Je() : y || je());
|
|
8795
8802
|
}, [E]);
|
|
@@ -8809,125 +8816,125 @@ function Us({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8809
8816
|
ue(() => {
|
|
8810
8817
|
pe.current = i;
|
|
8811
8818
|
}, [i]);
|
|
8812
|
-
let
|
|
8819
|
+
let ye = ae(o);
|
|
8813
8820
|
ue(() => {
|
|
8814
|
-
|
|
8821
|
+
ye.current = o;
|
|
8815
8822
|
}, [o]);
|
|
8816
|
-
let
|
|
8823
|
+
let ce = ae(s);
|
|
8817
8824
|
ue(() => {
|
|
8818
|
-
|
|
8825
|
+
ce.current = s;
|
|
8819
8826
|
}, [s]);
|
|
8820
|
-
let
|
|
8821
|
-
let
|
|
8822
|
-
return u > 0 ? ys(
|
|
8823
|
-
}, [m, u]),
|
|
8827
|
+
let _e = Ba(() => {
|
|
8828
|
+
let V = (Ee, na) => ye.current(Ee, na);
|
|
8829
|
+
return u > 0 ? ys(V, u) : m > 0 ? mi(V, m) : V;
|
|
8830
|
+
}, [m, u]), we = ae();
|
|
8824
8831
|
ue(() => {
|
|
8825
|
-
b && v && (
|
|
8826
|
-
|
|
8832
|
+
b && v && (we.current = mi(() => {
|
|
8833
|
+
T.current.active();
|
|
8827
8834
|
}, v));
|
|
8828
8835
|
}, [b, v]);
|
|
8829
|
-
let
|
|
8830
|
-
|
|
8831
|
-
},
|
|
8832
|
-
|
|
8833
|
-
}, aa = (
|
|
8834
|
-
!B.current && !
|
|
8835
|
-
},
|
|
8836
|
-
|
|
8837
|
-
}, he = (
|
|
8838
|
-
|
|
8839
|
-
},
|
|
8840
|
-
if (!
|
|
8841
|
-
|
|
8842
|
-
let
|
|
8843
|
-
if (!(N.current + L.current <
|
|
8844
|
-
|
|
8836
|
+
let de = () => {
|
|
8837
|
+
h.current !== null && (Xe.clearTimeout(h.current), h.current = null);
|
|
8838
|
+
}, xe = (V, Ee = !0) => {
|
|
8839
|
+
de(), h.current = Xe.setTimeout(ze, V || N.current), Ee && (D.current = ke());
|
|
8840
|
+
}, aa = (V) => {
|
|
8841
|
+
!B.current && !G.current && (be.current(V, De), le.current({ type: "active", prompted: !0 }, De)), R.current = 0, w.current = ke(), B.current = !0, xe(L.current, !1);
|
|
8842
|
+
}, Fe = () => {
|
|
8843
|
+
de(), G.current || (Ce.current(null, De), le.current({ type: "idle" }, De)), G.current = !0, k.current = ke(), q.current ? Ae() : B.current && (w.current = 0, B.current = !1);
|
|
8844
|
+
}, he = (V) => {
|
|
8845
|
+
de(), (G.current || B.current) && (pe.current(V, De), le.current({ type: "active", prompted: !1 }, De)), B.current = !1, w.current = 0, G.current = !1, F.current += ke() - k.current, P.current += ke() - k.current, Se(), xe();
|
|
8846
|
+
}, ze = (V) => {
|
|
8847
|
+
if (!G.current) {
|
|
8848
|
+
_e.cancel && _e.cancel();
|
|
8849
|
+
let Ee = ke() - D.current;
|
|
8850
|
+
if (!(N.current + L.current < Ee) && L.current > 0 && !B.current) {
|
|
8851
|
+
T.current ? T.current.prompt() : aa(V);
|
|
8845
8852
|
return;
|
|
8846
8853
|
}
|
|
8847
|
-
|
|
8854
|
+
T.current ? T.current.idle() : Fe();
|
|
8848
8855
|
return;
|
|
8849
8856
|
}
|
|
8850
|
-
|
|
8851
|
-
}, ta = (
|
|
8852
|
-
if (!c && !D.current && (D.current = ke(), pe.current(null,
|
|
8853
|
-
if (
|
|
8854
|
-
|
|
8857
|
+
T.current ? T.current.active() : he(V);
|
|
8858
|
+
}, ta = (V) => {
|
|
8859
|
+
if (!c && !D.current && (D.current = ke(), pe.current(null, De)), _e(V, De), B.current) return;
|
|
8860
|
+
if (de(), !G.current && J.current.includes(V.type)) {
|
|
8861
|
+
ze(V);
|
|
8855
8862
|
return;
|
|
8856
8863
|
}
|
|
8857
|
-
let
|
|
8858
|
-
if (
|
|
8859
|
-
|
|
8864
|
+
let Ee = ke() - D.current;
|
|
8865
|
+
if (G.current && !f || !G.current && Ee >= N.current) {
|
|
8866
|
+
ze(V);
|
|
8860
8867
|
return;
|
|
8861
8868
|
}
|
|
8862
|
-
O.current = !1,
|
|
8869
|
+
O.current = !1, R.current = 0, w.current = 0, xe(), b && v && we.current();
|
|
8863
8870
|
}, ia = ae(ta);
|
|
8864
8871
|
ue(() => {
|
|
8865
|
-
let
|
|
8866
|
-
|
|
8867
|
-
}, [_, m, u,
|
|
8868
|
-
let
|
|
8869
|
-
pa &&
|
|
8870
|
-
|
|
8872
|
+
let V = z.current;
|
|
8873
|
+
V && Ae(), _ > 0 ? ia.current = mi(ta, _) : ia.current = ta, V && Se();
|
|
8874
|
+
}, [_, m, u, ye, b, v]);
|
|
8875
|
+
let Se = () => {
|
|
8876
|
+
pa && $.current && (z.current || (K.current.forEach((V) => {
|
|
8877
|
+
$.current.addEventListener(V, ia.current, { capture: !0, passive: !0 });
|
|
8871
8878
|
}), z.current = !0));
|
|
8872
|
-
},
|
|
8873
|
-
pa &&
|
|
8874
|
-
|
|
8879
|
+
}, Ae = (V = !1) => {
|
|
8880
|
+
pa && $.current && (z.current || V) && (K.current.forEach((Ee) => {
|
|
8881
|
+
$.current.removeEventListener(Ee, ia.current, { capture: !0 });
|
|
8875
8882
|
}), z.current = !1);
|
|
8876
|
-
}, je = H((
|
|
8877
|
-
if (O.current) return
|
|
8878
|
-
let
|
|
8883
|
+
}, je = H((V) => te.current ? !1 : (de(), Se(), G.current = !1, B.current = !1, O.current = !1, R.current = 0, w.current = 0, T.current && !V && T.current.start(), xe(), !0), [h, G, te, N, T]), oa = H((V) => te.current ? !1 : (de(), Se(), A.current = ke(), F.current += ke() - k.current, P.current += ke() - k.current, F.current = 0, G.current = !1, B.current = !1, O.current = !1, R.current = 0, w.current = 0, T.current && !V && T.current.reset(), y || xe(), !0), [h, G, N, y, te, T]), ga = H((V) => te.current ? !1 : (de(), Se(), (G.current || B.current) && he(), G.current = !1, B.current = !1, O.current = !1, R.current = 0, w.current = 0, A.current = ke(), T.current && !V && T.current.activate(), xe(), !0), [h, G, B, te, N, T]), Je = H((V = !1) => te.current || O.current ? !1 : (R.current = ya(), O.current = !0, Ae(), de(), T.current && !V && T.current.pause(), !0), [h, te, T]), Ye = H((V = !1) => te.current || !O.current ? !1 : (O.current = !1, B.current || Se(), G.current || xe(R.current), w.current && (w.current = ke()), T.current && !V && T.current.resume(), !0), [h, N, te, R, T]), Va = H((V, Ee) => (T.current ? (Ee && ce.current(V, De), T.current.message(V)) : Ee && ce.current(V, De), !0), [s]), Ea = H(() => G.current, [G]), Na = H(() => B.current, [B]), Ja = H(() => T.current ? T.current.isLeader : null, [T]), Za = H(() => T.current ? T.current.isLastActive : null, [T]), da = H(() => T.current ? T.current.token : null, [T]), ya = H(() => {
|
|
8884
|
+
if (O.current) return R.current;
|
|
8885
|
+
let V = R.current ? R.current : L.current + N.current, Ee = D.current ? ke() - D.current : 0, na = Math.floor(V - Ee);
|
|
8879
8886
|
return na < 0 ? 0 : Math.abs(na);
|
|
8880
|
-
}, [N, L, B,
|
|
8881
|
-
let
|
|
8882
|
-
return
|
|
8883
|
-
}, [k,
|
|
8884
|
-
let
|
|
8885
|
-
return
|
|
8886
|
-
}, [k,
|
|
8887
|
+
}, [N, L, B, R, D]), qe = H(() => Math.round(ke() - A.current), [A]), ca = H(() => Math.round(ke() - M.current), [M]), fa = H(() => k.current ? new Date(k.current) : null, [k]), La = H(() => D.current ? new Date(D.current) : null, [D]), Ga = H(() => G.current ? Math.round(ke() - k.current + F.current) : Math.round(F.current), [k, F]), Ua = H(() => G.current ? Math.round(ke() - k.current + P.current) : Math.round(P.current), [k, P]), Ma = H(() => {
|
|
8888
|
+
let V = Math.round(qe() - Ga());
|
|
8889
|
+
return V >= 0 ? V : 0;
|
|
8890
|
+
}, [k, F]), Ra = H(() => {
|
|
8891
|
+
let V = Math.round(ca() - Ua());
|
|
8892
|
+
return V >= 0 ? V : 0;
|
|
8893
|
+
}, [k, F]);
|
|
8887
8894
|
ue(() => {
|
|
8888
8895
|
if (u > 0 && m > 0) throw new Error("❌ onAction can either be throttled or debounced, not both.");
|
|
8889
8896
|
g && ms(g);
|
|
8890
|
-
let
|
|
8891
|
-
|
|
8897
|
+
let V = () => {
|
|
8898
|
+
T.current && T.current.close(), _e.cancel && _e.cancel(), de(), Ae(!0);
|
|
8892
8899
|
};
|
|
8893
|
-
return pa && window.addEventListener("beforeunload",
|
|
8894
|
-
pa && window.removeEventListener("beforeunload",
|
|
8900
|
+
return pa && window.addEventListener("beforeunload", V), () => {
|
|
8901
|
+
pa && window.removeEventListener("beforeunload", V), T.current && T.current.close(), _e.cancel && _e.cancel(), de(), Ae(!0);
|
|
8895
8902
|
};
|
|
8896
8903
|
}, []), ue(() => {
|
|
8897
|
-
|
|
8904
|
+
T.current && T.current.close(), b ? T.current = new cs({ channelName: C, leaderElection: S, onPrompt: () => {
|
|
8898
8905
|
aa();
|
|
8899
8906
|
}, onIdle: () => {
|
|
8900
|
-
|
|
8907
|
+
Fe();
|
|
8901
8908
|
}, onActive: () => {
|
|
8902
8909
|
he();
|
|
8903
|
-
}, onMessage: (
|
|
8904
|
-
|
|
8905
|
-
}, start: je, reset: oa, activate: ga, pause: Je, resume: Ye }) :
|
|
8906
|
-
}, [b, C, S, be, Ce, pe,
|
|
8907
|
-
W.current || (
|
|
8910
|
+
}, onMessage: (V) => {
|
|
8911
|
+
ce.current(V, De);
|
|
8912
|
+
}, start: je, reset: oa, activate: ga, pause: Je, resume: Ye }) : T.current = null;
|
|
8913
|
+
}, [b, C, S, be, Ce, pe, ce, je, oa, Je, Ye]), ue(() => {
|
|
8914
|
+
W.current || (de(), Ae(!0)), !(y || E) && (c ? je() : Se());
|
|
8908
8915
|
}, [y, c, E, W]), ue(() => {
|
|
8909
8916
|
if (!W.current) {
|
|
8910
|
-
let
|
|
8911
|
-
if (
|
|
8912
|
-
c ? je() :
|
|
8917
|
+
let V = [...(/* @__PURE__ */ new Set([...p, ...U])).values()];
|
|
8918
|
+
if (Ae(), K.current = V, $.current = r, J.current = U, y || E) return;
|
|
8919
|
+
c ? je() : Se();
|
|
8913
8920
|
}
|
|
8914
8921
|
}, [r, JSON.stringify(p), JSON.stringify(U), W, E, y, c]), ue(() => {
|
|
8915
8922
|
W.current && (W.current = !1);
|
|
8916
8923
|
}, [W]);
|
|
8917
|
-
let
|
|
8918
|
-
d =
|
|
8919
|
-
}, setOnPrompt: (
|
|
8920
|
-
l =
|
|
8921
|
-
}, setOnIdle: (
|
|
8922
|
-
t =
|
|
8923
|
-
}, setOnActive: (
|
|
8924
|
-
i =
|
|
8925
|
-
}, setOnAction: (
|
|
8926
|
-
o =
|
|
8927
|
-
}, setOnMessage: (
|
|
8928
|
-
s =
|
|
8924
|
+
let De = { message: Va, start: je, reset: oa, activate: ga, pause: Je, resume: Ye, isIdle: Ea, isPrompted: Na, isLeader: Ja, isLastActiveTab: Za, getTabId: da, getRemainingTime: ya, getElapsedTime: qe, getTotalElapsedTime: ca, getLastIdleTime: fa, getLastActiveTime: La, getIdleTime: Ga, getTotalIdleTime: Ua, getActiveTime: Ma, getTotalActiveTime: Ra, setOnPresenceChange: (V) => {
|
|
8925
|
+
d = V, le.current = V;
|
|
8926
|
+
}, setOnPrompt: (V) => {
|
|
8927
|
+
l = V, be.current = V;
|
|
8928
|
+
}, setOnIdle: (V) => {
|
|
8929
|
+
t = V, Ce.current = V;
|
|
8930
|
+
}, setOnActive: (V) => {
|
|
8931
|
+
i = V, pe.current = V;
|
|
8932
|
+
}, setOnAction: (V) => {
|
|
8933
|
+
o = V, ye.current = V;
|
|
8934
|
+
}, setOnMessage: (V) => {
|
|
8935
|
+
s = V, ce.current = V;
|
|
8929
8936
|
} };
|
|
8930
|
-
return
|
|
8937
|
+
return De;
|
|
8931
8938
|
}
|
|
8932
8939
|
var bs = jt(null);
|
|
8933
8940
|
bs.Consumer;
|
|
@@ -8939,16 +8946,16 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
8939
8946
|
throttle: 500
|
|
8940
8947
|
}), Cs = ({ options: e } = {}) => {
|
|
8941
8948
|
const { commonInboxApi: n } = za(), { getToken: a, lng: r } = se(), p = a?.(), g = Qe(r);
|
|
8942
|
-
return
|
|
8949
|
+
return j({
|
|
8943
8950
|
queryKey: ["inboxList"],
|
|
8944
8951
|
queryFn: async () => await n(),
|
|
8945
8952
|
select: (U) => {
|
|
8946
8953
|
const { data: d } = U;
|
|
8947
|
-
return
|
|
8954
|
+
return Ge(d, (t) => {
|
|
8948
8955
|
const { internal_notifications_language: i } = t;
|
|
8949
8956
|
return {
|
|
8950
8957
|
...t,
|
|
8951
|
-
notificationLng:
|
|
8958
|
+
notificationLng: Ve(
|
|
8952
8959
|
i,
|
|
8953
8960
|
(o) => o.language === g
|
|
8954
8961
|
) || i[0]
|
|
@@ -8984,11 +8991,11 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
8984
8991
|
};
|
|
8985
8992
|
}, sr = ["monthCardInfo"], hs = ({ options: e } = {}) => {
|
|
8986
8993
|
const { getMonthCardInfoApi: n } = or();
|
|
8987
|
-
return
|
|
8994
|
+
return j({
|
|
8988
8995
|
queryKey: sr,
|
|
8989
8996
|
queryFn: n,
|
|
8990
8997
|
select: (a) => {
|
|
8991
|
-
const r =
|
|
8998
|
+
const r = Q(a, "status", null), p = Q(a, "remaining_days", null), g = Q(a, "activated_at", null), U = Q(a, "is_under_maintenance", 0) === 1, d = Q(a, "wagering_progress", []), l = Q(a, "daily", []);
|
|
8992
8999
|
return {
|
|
8993
9000
|
...a,
|
|
8994
9001
|
hasActiveCard: r !== null,
|
|
@@ -9085,15 +9092,15 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9085
9092
|
}
|
|
9086
9093
|
], cu = ({ options: e, formData: n } = {}) => {
|
|
9087
9094
|
const { lng: a } = se(), { newsListApi: r } = mr(), p = Qe(a);
|
|
9088
|
-
return
|
|
9095
|
+
return j({
|
|
9089
9096
|
queryKey: ["newsList"],
|
|
9090
9097
|
queryFn: () => {
|
|
9091
9098
|
const { uid: g, params: U } = n || {};
|
|
9092
9099
|
return r({ uid: g, params: U });
|
|
9093
9100
|
},
|
|
9094
9101
|
select: (g) => {
|
|
9095
|
-
const { data: U } = g, d = U.data?.filter((t) => t.is_active === 1), l =
|
|
9096
|
-
const i =
|
|
9102
|
+
const { data: U } = g, d = U.data?.filter((t) => t.is_active === 1), l = Ge(d, (t) => {
|
|
9103
|
+
const i = Ve(t.news_language, {
|
|
9097
9104
|
language: p
|
|
9098
9105
|
}) || t.news_language[0];
|
|
9099
9106
|
return {
|
|
@@ -9111,14 +9118,14 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9111
9118
|
});
|
|
9112
9119
|
}, fu = ({ options: e, formData: n } = {}) => {
|
|
9113
9120
|
const { lng: a } = se(), { newsListApi: r } = mr(), p = Qe(a);
|
|
9114
|
-
return
|
|
9121
|
+
return j({
|
|
9115
9122
|
queryKey: ["newsList"],
|
|
9116
9123
|
queryFn: () => {
|
|
9117
9124
|
const { uid: g, params: U } = n || {};
|
|
9118
9125
|
return r({ uid: g, params: U });
|
|
9119
9126
|
},
|
|
9120
9127
|
select: (g) => {
|
|
9121
|
-
const U =
|
|
9128
|
+
const U = Ve(g.data.news_language, {
|
|
9122
9129
|
language: p
|
|
9123
9130
|
}) || g.data.news_language[0];
|
|
9124
9131
|
return {
|
|
@@ -9128,7 +9135,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9128
9135
|
},
|
|
9129
9136
|
...e
|
|
9130
9137
|
});
|
|
9131
|
-
},
|
|
9138
|
+
}, Re = () => {
|
|
9132
9139
|
const { client: e } = se(), n = H(async () => await e.get("/payment/list"), [e]), a = H(
|
|
9133
9140
|
async ({ paramsData: c }) => await e.get("/thirdPartyPayment/list", {
|
|
9134
9141
|
params: { ...c }
|
|
@@ -9179,11 +9186,11 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9179
9186
|
[e]
|
|
9180
9187
|
), U = H(
|
|
9181
9188
|
async ({ paramsData: c } = {}) => {
|
|
9182
|
-
const { str_date: y, end_date: f, limit: b = 25, current_page: C } = c || {}, v =
|
|
9189
|
+
const { str_date: y, end_date: f, limit: b = 25, current_page: C } = c || {}, v = Ne().format("HH:mm:ss"), S = Ne().subtract(24, "hour").format("HH:mm:ss");
|
|
9183
9190
|
return await e.get("/report/deposit", {
|
|
9184
9191
|
params: {
|
|
9185
|
-
str_date: `${
|
|
9186
|
-
end_date: `${
|
|
9192
|
+
str_date: `${Ne(y).format("YYYY-MM-DD")} ${v}`,
|
|
9193
|
+
end_date: `${Ne(f).format("YYYY-MM-DD")} ${S}`,
|
|
9187
9194
|
limit: b,
|
|
9188
9195
|
page: C
|
|
9189
9196
|
}
|
|
@@ -9192,11 +9199,11 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9192
9199
|
[e]
|
|
9193
9200
|
), d = H(
|
|
9194
9201
|
async ({ paramsData: c }) => {
|
|
9195
|
-
const { str_date: y, end_date: f, limit: b = 25, current_page: C } = c || {}, v =
|
|
9202
|
+
const { str_date: y, end_date: f, limit: b = 25, current_page: C } = c || {}, v = Ne().format("HH:mm:ss"), S = Ne().subtract(24, "hour").format("HH:mm:ss");
|
|
9196
9203
|
return await e.get("report/eventsreward", {
|
|
9197
9204
|
params: {
|
|
9198
|
-
str_date: `${
|
|
9199
|
-
end_date: `${
|
|
9205
|
+
str_date: `${Ne(y).format("YYYY-MM-DD")} ${v}`,
|
|
9206
|
+
end_date: `${Ne(f).format("YYYY-MM-DD")} ${S}`,
|
|
9200
9207
|
limit: b,
|
|
9201
9208
|
page: C
|
|
9202
9209
|
}
|
|
@@ -9208,8 +9215,8 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9208
9215
|
const { str_date: y, end_date: f, limit: b = 25, current_page: C } = c || {};
|
|
9209
9216
|
return await e.get("/report/withdraw", {
|
|
9210
9217
|
params: {
|
|
9211
|
-
str_date: `${
|
|
9212
|
-
end_date: `${
|
|
9218
|
+
str_date: `${Ne(y).format("YYYY-MM-DD")} 12:00:00`,
|
|
9219
|
+
end_date: `${Ne(f).format("YYYY-MM-DD")} 11:59:59`,
|
|
9213
9220
|
limit: b,
|
|
9214
9221
|
page: C
|
|
9215
9222
|
}
|
|
@@ -9221,8 +9228,8 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9221
9228
|
const { str_date: y, end_date: f, limit: b = 25, current_page: C } = c || {};
|
|
9222
9229
|
return await e.get("/report/other", {
|
|
9223
9230
|
params: {
|
|
9224
|
-
str_date: `${
|
|
9225
|
-
end_date: `${
|
|
9231
|
+
str_date: `${Ne(y).format("YYYY-MM-DD")} 12:00:00`,
|
|
9232
|
+
end_date: `${Ne(f).format("YYYY-MM-DD")} 11:59:59`,
|
|
9226
9233
|
limit: b,
|
|
9227
9234
|
page: C
|
|
9228
9235
|
}
|
|
@@ -9334,21 +9341,21 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9334
9341
|
otherTransactionApi: t
|
|
9335
9342
|
};
|
|
9336
9343
|
}, xs = ({ options: e } = {}) => {
|
|
9337
|
-
const { depositApiV1: n } =
|
|
9338
|
-
return
|
|
9344
|
+
const { depositApiV1: n } = Re();
|
|
9345
|
+
return j({
|
|
9339
9346
|
queryKey: ["depositV1"],
|
|
9340
9347
|
queryFn: n,
|
|
9341
9348
|
...e
|
|
9342
9349
|
});
|
|
9343
9350
|
}, Ss = ({ paramsData: e, options: n } = {}) => {
|
|
9344
|
-
const { depositApiV2: a } =
|
|
9345
|
-
return
|
|
9351
|
+
const { depositApiV2: a } = Re();
|
|
9352
|
+
return j({
|
|
9346
9353
|
queryKey: ["depositV2", e],
|
|
9347
9354
|
queryFn: () => a({ paramsData: e }),
|
|
9348
9355
|
select: (r) => {
|
|
9349
|
-
const { third_party: p, bank: g, vip: U } = r, d =
|
|
9356
|
+
const { third_party: p, bank: g, vip: U } = r, d = Ge(p, (l) => ({
|
|
9350
9357
|
...l,
|
|
9351
|
-
providerList:
|
|
9358
|
+
providerList: Ge(l.providers, (t) => ({
|
|
9352
9359
|
...t,
|
|
9353
9360
|
providerUid: t.uid,
|
|
9354
9361
|
providerImageUrl: `${Ke}/paymentIcon/${Ei(t.provider_name)}.png`,
|
|
@@ -9366,113 +9373,113 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9366
9373
|
...n
|
|
9367
9374
|
});
|
|
9368
9375
|
}, Ds = ({ options: e } = {}) => {
|
|
9369
|
-
const { depositApi: n } =
|
|
9376
|
+
const { depositApi: n } = Re();
|
|
9370
9377
|
return X({
|
|
9371
9378
|
mutationKey: ["depositAction"],
|
|
9372
9379
|
mutationFn: async (a) => n(a),
|
|
9373
9380
|
...e
|
|
9374
9381
|
});
|
|
9375
9382
|
}, Es = ({ options: e } = {}) => {
|
|
9376
|
-
const { withdrawApi: n } =
|
|
9383
|
+
const { withdrawApi: n } = Re();
|
|
9377
9384
|
return X({
|
|
9378
9385
|
mutationKey: ["withdrawAction"],
|
|
9379
9386
|
mutationFn: async (a) => n(a),
|
|
9380
9387
|
...e
|
|
9381
9388
|
});
|
|
9382
9389
|
}, Ns = ({ paramsData: e, options: n } = {}) => {
|
|
9383
|
-
const { depositTransactionApi: a } =
|
|
9384
|
-
return
|
|
9390
|
+
const { depositTransactionApi: a } = Re();
|
|
9391
|
+
return j({
|
|
9385
9392
|
queryKey: ["depositTransaction", e],
|
|
9386
9393
|
queryFn: () => a({ paramsData: e }),
|
|
9387
9394
|
...n
|
|
9388
9395
|
});
|
|
9389
9396
|
}, Ls = ({ paramsData: e, options: n } = {}) => {
|
|
9390
|
-
const { eventTransactionApi: a } =
|
|
9391
|
-
return
|
|
9397
|
+
const { eventTransactionApi: a } = Re();
|
|
9398
|
+
return j({
|
|
9392
9399
|
queryKey: ["eventTransaction", e],
|
|
9393
9400
|
queryFn: () => a({ paramsData: e }),
|
|
9394
9401
|
...n
|
|
9395
9402
|
});
|
|
9396
9403
|
}, Gs = ({ options: e } = {}) => {
|
|
9397
|
-
const { bankDepositApi: n } =
|
|
9404
|
+
const { bankDepositApi: n } = Re();
|
|
9398
9405
|
return X({
|
|
9399
9406
|
mutationKey: ["bankDeposit"],
|
|
9400
9407
|
mutationFn: async (a) => n(a),
|
|
9401
9408
|
...e
|
|
9402
9409
|
});
|
|
9403
9410
|
}, Ms = ({ paramsData: e, options: n } = {}) => {
|
|
9404
|
-
const { withdrawTransactionApi: a } =
|
|
9405
|
-
return
|
|
9411
|
+
const { withdrawTransactionApi: a } = Re();
|
|
9412
|
+
return j({
|
|
9406
9413
|
queryKey: ["withdrawTransaction", e],
|
|
9407
9414
|
queryFn: () => a({ paramsData: e }),
|
|
9408
9415
|
...n
|
|
9409
9416
|
});
|
|
9410
9417
|
}, _u = ({ options: e } = {}) => {
|
|
9411
|
-
const { redeemCodeDepositApi: n } =
|
|
9418
|
+
const { redeemCodeDepositApi: n } = Re();
|
|
9412
9419
|
return X({
|
|
9413
9420
|
mutationKey: ["redeemCodeDeposit"],
|
|
9414
9421
|
mutationFn: async (a) => n(a),
|
|
9415
9422
|
...e
|
|
9416
9423
|
});
|
|
9417
9424
|
}, yu = ({ options: e } = {}) => {
|
|
9418
|
-
const { invoiceApi: n } =
|
|
9425
|
+
const { invoiceApi: n } = Re();
|
|
9419
9426
|
return X({
|
|
9420
9427
|
mutationKey: ["invoiceAction"],
|
|
9421
9428
|
mutationFn: async (a) => n(a),
|
|
9422
9429
|
...e
|
|
9423
9430
|
});
|
|
9424
9431
|
}, Uu = ({ options: e } = {}) => {
|
|
9425
|
-
const { updateInvoiceApi: n } =
|
|
9432
|
+
const { updateInvoiceApi: n } = Re();
|
|
9426
9433
|
return X({
|
|
9427
9434
|
mutationKey: ["updateInvoiceAction"],
|
|
9428
9435
|
mutationFn: async (a) => n(a),
|
|
9429
9436
|
...e
|
|
9430
9437
|
});
|
|
9431
9438
|
}, bu = ({ options: e, paramsData: n } = {}) => {
|
|
9432
|
-
const { transactionRecordApi: a } =
|
|
9433
|
-
return
|
|
9439
|
+
const { transactionRecordApi: a } = Re();
|
|
9440
|
+
return j({
|
|
9434
9441
|
queryKey: ["transactionRecord", "deposit"],
|
|
9435
9442
|
queryFn: () => a(n, "deposit"),
|
|
9436
9443
|
...e
|
|
9437
9444
|
});
|
|
9438
9445
|
}, Cu = ({ options: e, paramsData: n } = {}) => {
|
|
9439
|
-
const { transactionRecordApi: a } =
|
|
9440
|
-
return
|
|
9446
|
+
const { transactionRecordApi: a } = Re();
|
|
9447
|
+
return j({
|
|
9441
9448
|
queryKey: ["transactionRecord", "withdraw"],
|
|
9442
9449
|
queryFn: () => a(n, "withdraw"),
|
|
9443
9450
|
...e
|
|
9444
9451
|
});
|
|
9445
9452
|
}, vu = ({ options: e, paramsData: n } = {}) => {
|
|
9446
|
-
const { transactionRecordApi: a } =
|
|
9447
|
-
return
|
|
9453
|
+
const { transactionRecordApi: a } = Re();
|
|
9454
|
+
return j({
|
|
9448
9455
|
queryKey: ["transactionRecord", "event"],
|
|
9449
9456
|
queryFn: () => a(n, "event"),
|
|
9450
9457
|
...e
|
|
9451
9458
|
});
|
|
9452
9459
|
}, hu = ({ options: e, paramsData: n } = {}) => {
|
|
9453
|
-
const { transactionRecordApi: a } =
|
|
9454
|
-
return
|
|
9460
|
+
const { transactionRecordApi: a } = Re();
|
|
9461
|
+
return j({
|
|
9455
9462
|
queryKey: ["transactionRecord", "rebate"],
|
|
9456
9463
|
queryFn: () => a(n, "rebate"),
|
|
9457
9464
|
...e
|
|
9458
9465
|
});
|
|
9459
9466
|
}, Tu = ({ options: e, paramsData: n } = {}) => {
|
|
9460
|
-
const { treasureRecordApi: a } =
|
|
9461
|
-
return
|
|
9467
|
+
const { treasureRecordApi: a } = Re();
|
|
9468
|
+
return j({
|
|
9462
9469
|
queryKey: ["treasureRecord", n],
|
|
9463
9470
|
queryFn: () => a(n),
|
|
9464
9471
|
...e
|
|
9465
9472
|
});
|
|
9466
9473
|
}, ku = ({ options: e, paramsData: n } = {}) => {
|
|
9467
|
-
const { snCashRecordApi: a } =
|
|
9468
|
-
return
|
|
9474
|
+
const { snCashRecordApi: a } = Re();
|
|
9475
|
+
return j({
|
|
9469
9476
|
queryKey: ["snCashRecord", n],
|
|
9470
9477
|
queryFn: () => a(n),
|
|
9471
9478
|
...e
|
|
9472
9479
|
});
|
|
9473
9480
|
}, xu = ({ options: e, paramsData: n } = {}) => {
|
|
9474
|
-
const { otherTransactionApi: a } =
|
|
9475
|
-
return
|
|
9481
|
+
const { otherTransactionApi: a } = Re();
|
|
9482
|
+
return j({
|
|
9476
9483
|
queryKey: ["otherTransaction", n],
|
|
9477
9484
|
queryFn: () => a({ paramsData: n }),
|
|
9478
9485
|
...e
|
|
@@ -9503,7 +9510,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9503
9510
|
}, ur = "3.7.8", Rs = ur, Ia = typeof Buffer == "function", Pn = typeof TextDecoder == "function" ? new TextDecoder() : void 0, wn = typeof TextEncoder == "function" ? new TextEncoder() : void 0, Ps = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Ya = Array.prototype.slice.call(Ps), mt = ((e) => {
|
|
9504
9511
|
let n = {};
|
|
9505
9512
|
return e.forEach((a, r) => n[a] = r), n;
|
|
9506
|
-
})(Ya), ws = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,
|
|
9513
|
+
})(Ya), ws = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, Pe = String.fromCharCode.bind(String), Fn = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), pr = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (n) => n == "+" ? "-" : "_"), gr = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), dr = (e) => {
|
|
9507
9514
|
let n, a, r, p, g = "";
|
|
9508
9515
|
const U = e.length % 3;
|
|
9509
9516
|
for (let d = 0; d < e.length; ) {
|
|
@@ -9515,25 +9522,25 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9515
9522
|
}, Si = typeof btoa == "function" ? (e) => btoa(e) : Ia ? (e) => Buffer.from(e, "binary").toString("base64") : dr, gi = Ia ? (e) => Buffer.from(e).toString("base64") : (e) => {
|
|
9516
9523
|
let a = [];
|
|
9517
9524
|
for (let r = 0, p = e.length; r < p; r += 4096)
|
|
9518
|
-
a.push(
|
|
9525
|
+
a.push(Pe.apply(null, e.subarray(r, r + 4096)));
|
|
9519
9526
|
return Si(a.join(""));
|
|
9520
9527
|
}, qt = (e, n = !1) => n ? pr(gi(e)) : gi(e), Fs = (e) => {
|
|
9521
9528
|
if (e.length < 2) {
|
|
9522
9529
|
var n = e.charCodeAt(0);
|
|
9523
|
-
return n < 128 ? e : n < 2048 ?
|
|
9530
|
+
return n < 128 ? e : n < 2048 ? Pe(192 | n >>> 6) + Pe(128 | n & 63) : Pe(224 | n >>> 12 & 15) + Pe(128 | n >>> 6 & 63) + Pe(128 | n & 63);
|
|
9524
9531
|
} else {
|
|
9525
9532
|
var n = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
|
|
9526
|
-
return
|
|
9533
|
+
return Pe(240 | n >>> 18 & 7) + Pe(128 | n >>> 12 & 63) + Pe(128 | n >>> 6 & 63) + Pe(128 | n & 63);
|
|
9527
9534
|
}
|
|
9528
9535
|
}, As = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, cr = (e) => e.replace(As, Fs), An = Ia ? (e) => Buffer.from(e, "utf8").toString("base64") : wn ? (e) => gi(wn.encode(e)) : (e) => Si(cr(e)), Wa = (e, n = !1) => n ? pr(An(e)) : An(e), On = (e) => Wa(e, !0), Os = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, Bs = (e) => {
|
|
9529
9536
|
switch (e.length) {
|
|
9530
9537
|
case 4:
|
|
9531
9538
|
var n = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), a = n - 65536;
|
|
9532
|
-
return
|
|
9539
|
+
return Pe((a >>> 10) + 55296) + Pe((a & 1023) + 56320);
|
|
9533
9540
|
case 3:
|
|
9534
|
-
return
|
|
9541
|
+
return Pe((15 & e.charCodeAt(0)) << 12 | (63 & e.charCodeAt(1)) << 6 | 63 & e.charCodeAt(2));
|
|
9535
9542
|
default:
|
|
9536
|
-
return
|
|
9543
|
+
return Pe((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
|
|
9537
9544
|
}
|
|
9538
9545
|
}, fr = (e) => e.replace(Os, Bs), _r = (e) => {
|
|
9539
9546
|
if (e = e.replace(/\s+/g, ""), !ws.test(e))
|
|
@@ -9541,7 +9548,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9541
9548
|
e += "==".slice(2 - (e.length & 3));
|
|
9542
9549
|
let n, a, r, p = [];
|
|
9543
9550
|
for (let g = 0; g < e.length; )
|
|
9544
|
-
n = mt[e.charAt(g++)] << 18 | mt[e.charAt(g++)] << 12 | (a = mt[e.charAt(g++)]) << 6 | (r = mt[e.charAt(g++)]), a === 64 ? p.push(
|
|
9551
|
+
n = mt[e.charAt(g++)] << 18 | mt[e.charAt(g++)] << 12 | (a = mt[e.charAt(g++)]) << 6 | (r = mt[e.charAt(g++)]), a === 64 ? p.push(Pe(n >> 16 & 255)) : r === 64 ? p.push(Pe(n >> 16 & 255, n >> 8 & 255)) : p.push(Pe(n >> 16 & 255, n >> 8 & 255, n & 255));
|
|
9545
9552
|
return p.join("");
|
|
9546
9553
|
}, Di = typeof atob == "function" ? (e) => atob(gr(e)) : Ia ? (e) => Buffer.from(e, "base64").toString("binary") : _r, yr = Ia ? (e) => Fn(Buffer.from(e, "base64")) : (e) => Fn(Di(e).split("").map((n) => n.charCodeAt(0))), Ur = (e) => yr(br(e)), Hs = Ia ? (e) => Buffer.from(e, "base64").toString("utf8") : Pn ? (e) => Pn.decode(yr(e)) : (e) => fr(Di(e)), br = (e) => gr(e.replace(/[-_]/g, (n) => n == "-" ? "+" : "/")), di = (e) => Hs(br(e)), Ws = (e) => {
|
|
9547
9554
|
if (typeof e != "string")
|
|
@@ -9600,7 +9607,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9600
9607
|
extendBuiltins: zs
|
|
9601
9608
|
}, Du = (e, n) => {
|
|
9602
9609
|
const { playGameApi: a } = Ci();
|
|
9603
|
-
return
|
|
9610
|
+
return j({
|
|
9604
9611
|
queryKey: ["playGame"],
|
|
9605
9612
|
queryFn: async () => {
|
|
9606
9613
|
const { gameUid: r, gameCode: p, isMobile: g, gameCurrency: U, currentCurrency: d } = e || {}, l = await a({
|
|
@@ -9642,7 +9649,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9642
9649
|
};
|
|
9643
9650
|
}, Vs = ({ options: e } = {}) => {
|
|
9644
9651
|
const { currentRebateApi: n } = Tr();
|
|
9645
|
-
return
|
|
9652
|
+
return j({
|
|
9646
9653
|
queryKey: ["currentRebate"],
|
|
9647
9654
|
queryFn: () => n(),
|
|
9648
9655
|
select: (a) => Jr(a, ["code", "status"]),
|
|
@@ -9687,7 +9694,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9687
9694
|
};
|
|
9688
9695
|
}, Zs = ({ options: e, formData: n } = {}) => {
|
|
9689
9696
|
const { rewardListApi: a } = tt();
|
|
9690
|
-
return
|
|
9697
|
+
return j({
|
|
9691
9698
|
queryKey: ["rewardsList"],
|
|
9692
9699
|
queryFn: () => {
|
|
9693
9700
|
const { uid: r, params: p } = n || {};
|
|
@@ -9695,11 +9702,11 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9695
9702
|
},
|
|
9696
9703
|
select: (r) => {
|
|
9697
9704
|
try {
|
|
9698
|
-
const p =
|
|
9705
|
+
const p = Ge(Q(r, "data.data", []), (g) => {
|
|
9699
9706
|
const {
|
|
9700
9707
|
wagering_restricted_amount: U,
|
|
9701
9708
|
claimed_amount: d
|
|
9702
|
-
} = g, l =
|
|
9709
|
+
} = g, l = Q(g, "rewards", {}), {
|
|
9703
9710
|
expiration_days: t,
|
|
9704
9711
|
name: i,
|
|
9705
9712
|
position: o,
|
|
@@ -9741,21 +9748,21 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9741
9748
|
});
|
|
9742
9749
|
}, qs = ({ options: e } = {}) => {
|
|
9743
9750
|
const { unUsedRewardListApi: n } = tt();
|
|
9744
|
-
return
|
|
9751
|
+
return j({
|
|
9745
9752
|
queryKey: ["unUsedRewardsList"],
|
|
9746
9753
|
queryFn: n,
|
|
9747
9754
|
...e
|
|
9748
9755
|
});
|
|
9749
9756
|
}, $s = ({ options: e } = {}) => {
|
|
9750
9757
|
const { expiredRewardListApi: n } = tt();
|
|
9751
|
-
return
|
|
9758
|
+
return j({
|
|
9752
9759
|
queryKey: ["expiredRewardsList"],
|
|
9753
9760
|
queryFn: n,
|
|
9754
9761
|
...e
|
|
9755
9762
|
});
|
|
9756
9763
|
}, Qs = ({ options: e } = {}) => {
|
|
9757
9764
|
const { historyRewardApi: n } = tt();
|
|
9758
|
-
return
|
|
9765
|
+
return j({
|
|
9759
9766
|
queryKey: ["historyRewardsList"],
|
|
9760
9767
|
queryFn: n,
|
|
9761
9768
|
...e
|
|
@@ -9822,19 +9829,19 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9822
9829
|
};
|
|
9823
9830
|
}, Lu = ({ paramsData: e, options: n } = {}) => {
|
|
9824
9831
|
const { client: a, lng: r } = se(), p = Qe(r || "tw"), { treasureListApi: g } = kr();
|
|
9825
|
-
return
|
|
9832
|
+
return j({
|
|
9826
9833
|
queryKey: ["treasureList", e],
|
|
9827
9834
|
queryFn: () => g(e),
|
|
9828
9835
|
select: (U) => {
|
|
9829
|
-
const d =
|
|
9830
|
-
current_page:
|
|
9831
|
-
per_page:
|
|
9832
|
-
total:
|
|
9833
|
-
last_page:
|
|
9836
|
+
const d = Q(U, "data", {}), l = {
|
|
9837
|
+
current_page: Q(d, "current_page", 1),
|
|
9838
|
+
per_page: Q(d, "per_page", 10),
|
|
9839
|
+
total: Q(d, "total", 1),
|
|
9840
|
+
last_page: Q(d, "last_page", 1)
|
|
9834
9841
|
};
|
|
9835
9842
|
return {
|
|
9836
|
-
list:
|
|
9837
|
-
const o =
|
|
9843
|
+
list: Ge(Q(d, "data", []), (i) => {
|
|
9844
|
+
const o = Ve(i.treasure_copywriting, {
|
|
9838
9845
|
language: p
|
|
9839
9846
|
});
|
|
9840
9847
|
return {
|
|
@@ -9863,11 +9870,11 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9863
9870
|
};
|
|
9864
9871
|
}, Mu = ({ options: e } = {}) => {
|
|
9865
9872
|
const { store: n } = se(), a = n?.getState()?.isMemberInfo || n?.getState()?.member?.member || {}, { vipInfoApi: r } = xr();
|
|
9866
|
-
return
|
|
9873
|
+
return j({
|
|
9867
9874
|
queryKey: ["vipInfo"],
|
|
9868
9875
|
queryFn: async () => r(),
|
|
9869
9876
|
select: (p) => {
|
|
9870
|
-
const { data: g } = p, U =
|
|
9877
|
+
const { data: g } = p, U = Q(g, "data", []), d = Ge(U, (t) => ({
|
|
9871
9878
|
currentWager: t.wagering || t.value,
|
|
9872
9879
|
currentStatus: t.status,
|
|
9873
9880
|
currentOverflow: t.promotion_overflow,
|
|
@@ -9880,7 +9887,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9880
9887
|
currentType: g.type,
|
|
9881
9888
|
currentOverflow: g.promotion_overflow,
|
|
9882
9889
|
nextLevel: g.promotion_level,
|
|
9883
|
-
typeList:
|
|
9890
|
+
typeList: Ge(d, (t) => t.type),
|
|
9884
9891
|
currentWagerKeyBy: l
|
|
9885
9892
|
};
|
|
9886
9893
|
},
|
|
@@ -9888,7 +9895,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9888
9895
|
});
|
|
9889
9896
|
}, js = ({ options: e } = {}) => {
|
|
9890
9897
|
const { store: n } = se(), a = n?.getState()?.isWalletCurrency || n?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: r } = xr();
|
|
9891
|
-
return
|
|
9898
|
+
return j({
|
|
9892
9899
|
queryKey: ["vipList"],
|
|
9893
9900
|
queryFn: async () => {
|
|
9894
9901
|
const p = window.vip_list;
|
|
@@ -9896,17 +9903,17 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
9896
9903
|
},
|
|
9897
9904
|
select: (p) => {
|
|
9898
9905
|
const g = ea(p) ? p : p.data;
|
|
9899
|
-
return
|
|
9906
|
+
return Ge(g, (d) => {
|
|
9900
9907
|
const {
|
|
9901
9908
|
vip_criteria: l,
|
|
9902
9909
|
vip_payment_tags: t,
|
|
9903
9910
|
vip_withdrawal_rate: i,
|
|
9904
9911
|
rebate_range: o,
|
|
9905
9912
|
vip_game_rebate: s
|
|
9906
|
-
} = d, u =
|
|
9913
|
+
} = d, u = Ve(l, { currency_code: a }) || {}, m = Ve(t, { currency_code: a }) || {}, _ = i, c = Ge(o, (b) => ({
|
|
9907
9914
|
...b,
|
|
9908
9915
|
rebateRange: JSON.parse(b.rebate_range)
|
|
9909
|
-
})), y =
|
|
9916
|
+
})), y = Q(s, "[0]", {}), f = {
|
|
9910
9917
|
...y,
|
|
9911
9918
|
platformRebate: JSON.parse(y.rebate || "{}")
|
|
9912
9919
|
};
|
|
@@ -10019,7 +10026,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
10019
10026
|
// 越南名稱
|
|
10020
10027
|
gameNameTw: E
|
|
10021
10028
|
// 繁體中文名稱
|
|
10022
|
-
} = e, M = e?.[`gameName${a}`], A = `${lt}/${ut}/${n}/${t}/${nt(r, / /g, "_")}.webp`, k = `${lt}/${ut}/${n}/${t}/${nt(r, / /g, "_")}.gif`, D = `${lt}/${ut}/en/${t}/${nt(r, / /g, "_")}.webp`,
|
|
10029
|
+
} = e, M = e?.[`gameName${a}`], A = `${lt}/${ut}/${n}/${t}/${nt(r, / /g, "_")}.webp`, k = `${lt}/${ut}/${n}/${t}/${nt(r, / /g, "_")}.gif`, D = `${lt}/${ut}/en/${t}/${nt(r, / /g, "_")}.webp`, F = `${lt}/${ut}/en/${t}/${nt(r, / /g, "_")}.gif`;
|
|
10023
10030
|
return {
|
|
10024
10031
|
gameCode: r,
|
|
10025
10032
|
gameUid: p,
|
|
@@ -10043,7 +10050,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
10043
10050
|
gameImageUrl: A,
|
|
10044
10051
|
gameImageUrlAnimated: k,
|
|
10045
10052
|
fallbackGameImageUrl: D,
|
|
10046
|
-
fallbackGameImageUrlAnimated:
|
|
10053
|
+
fallbackGameImageUrlAnimated: F,
|
|
10047
10054
|
popularityRanking: c,
|
|
10048
10055
|
isInvalidBet: y,
|
|
10049
10056
|
haveJackpot: f
|
|
@@ -10095,7 +10102,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
10095
10102
|
tempMaintenanceEndTime: o,
|
|
10096
10103
|
platformImageUrl: s
|
|
10097
10104
|
};
|
|
10098
|
-
}, Xs = (e = {}) => !Yt(e) ||
|
|
10105
|
+
}, Xs = (e = {}) => !Yt(e) || Le(e) ? [] : Xt(e), Bn = (e = []) => !ea(e) || Le(e) ? [] : Ge(e, "platform"), em = (e = []) => !ea(e) || Le(e) ? [] : Ge(e, "gameTypeName"), am = (e = []) => !ea(e) || Le(e) ? [] : Ge(e, "game_subtype"), tm = (e = {}) => !Yt(e) || Le(e) ? [] : Xt(e), im = (e = [], n = []) => !ea(e) || Le(e) ? {} : !ea(n) || Le(n) ? {} : e.reduce((a, r) => {
|
|
10099
10106
|
const p = n.map((g) => g.game_subtype);
|
|
10100
10107
|
return p.forEach((g) => {
|
|
10101
10108
|
a[g] = a[g] || [];
|
|
@@ -10106,7 +10113,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
10106
10113
|
gameList: a = {},
|
|
10107
10114
|
allGameTypes: r = [],
|
|
10108
10115
|
allPlatforms: p = []
|
|
10109
|
-
}) => !ea(e) || !ea(n) ? {} :
|
|
10116
|
+
}) => !ea(e) || !ea(n) ? {} : Le(a) ? {} : e.reduce((g, U) => {
|
|
10110
10117
|
const d = nl({
|
|
10111
10118
|
gameTypeName: U,
|
|
10112
10119
|
platforms: n,
|
|
@@ -10114,7 +10121,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
10114
10121
|
allGameTypes: r,
|
|
10115
10122
|
allPlatforms: p
|
|
10116
10123
|
});
|
|
10117
|
-
return
|
|
10124
|
+
return Le(d) || (g[U] = d), g;
|
|
10118
10125
|
}, {}), Au = ({
|
|
10119
10126
|
types: e = [],
|
|
10120
10127
|
platforms: n = [],
|
|
@@ -10130,13 +10137,13 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
10130
10137
|
gamesOfType: l,
|
|
10131
10138
|
allPlatforms: r
|
|
10132
10139
|
});
|
|
10133
|
-
return
|
|
10140
|
+
return Le(s) ? i : { ...i, [o]: s };
|
|
10134
10141
|
}, {});
|
|
10135
|
-
return
|
|
10136
|
-
}, {}), rm = (e = {}) => !Yt(e) ||
|
|
10142
|
+
return Le(t) || (g[U] = t), g;
|
|
10143
|
+
}, {}), rm = (e = {}) => !Yt(e) || Le(e) ? {} : Object.values(e).reduce((a, r) => (Object.entries(r).forEach(([p, g]) => {
|
|
10137
10144
|
a[p] ? a[p] = [...a[p], ...g] : a[p] = g;
|
|
10138
10145
|
}), a), {}), lm = (e = {}) => {
|
|
10139
|
-
if (!Yt(e) ||
|
|
10146
|
+
if (!Yt(e) || Le(e)) return {};
|
|
10140
10147
|
const n = {};
|
|
10141
10148
|
for (const [a, r] of Object.entries(e)) {
|
|
10142
10149
|
n[a] = {};
|
|
@@ -10165,7 +10172,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
10165
10172
|
gameList: e,
|
|
10166
10173
|
allGameTypes: a,
|
|
10167
10174
|
allPlatforms: n
|
|
10168
|
-
}), f =
|
|
10175
|
+
}), f = Ge(n, (M) => {
|
|
10169
10176
|
const A = `${Ke}/${$n}/${M.platformEnum}.png`;
|
|
10170
10177
|
return {
|
|
10171
10178
|
...M,
|
|
@@ -10214,7 +10221,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
10214
10221
|
favorite: c
|
|
10215
10222
|
}
|
|
10216
10223
|
};
|
|
10217
|
-
}, Ou = (e = []) => !ea(e) ||
|
|
10224
|
+
}, Ou = (e = []) => !ea(e) || Le(e) ? [] : Xt(e, (n) => Le(n.SubPlatformEnum) ? n : n.SubPlatformEnum.map((a) => ({
|
|
10218
10225
|
...n,
|
|
10219
10226
|
...a,
|
|
10220
10227
|
platform: a.SubPlatformEnum,
|
|
@@ -10240,7 +10247,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
10240
10247
|
},
|
|
10241
10248
|
user: { favorite: [] }
|
|
10242
10249
|
}, mm = ({ enabled: e = !0 } = {}) => {
|
|
10243
|
-
const { getToken: n } = se(), { userFavoriteGameApi: a, userGameListApi: r } = re(), { data: p, isLoading: g, error: U, refetch: d } =
|
|
10250
|
+
const { getToken: n } = se(), { userFavoriteGameApi: a, userGameListApi: r } = re(), { data: p, isLoading: g, error: U, refetch: d } = j({
|
|
10244
10251
|
queryKey: ["gamesInfo"],
|
|
10245
10252
|
queryFn: async () => {
|
|
10246
10253
|
let l = {}, t = {};
|
|
@@ -36813,7 +36820,7 @@ const pu = ({ onIdle: e, onActive: n, onAction: a, timeout: r = 6e5 }) => Us({
|
|
|
36813
36820
|
a && um(!0);
|
|
36814
36821
|
}, [a]);
|
|
36815
36822
|
const r = mm({ enabled: n });
|
|
36816
|
-
return /* @__PURE__ */
|
|
36823
|
+
return /* @__PURE__ */ Be.jsx(Qn.Provider, { value: r, children: e });
|
|
36817
36824
|
};
|
|
36818
36825
|
function Bu({
|
|
36819
36826
|
children: e,
|
|
@@ -36836,7 +36843,7 @@ function Bu({
|
|
|
36836
36843
|
}),
|
|
36837
36844
|
[]
|
|
36838
36845
|
), l = r || d;
|
|
36839
|
-
return /* @__PURE__ */
|
|
36846
|
+
return /* @__PURE__ */ Be.jsx(zr, { client: l, children: /* @__PURE__ */ Be.jsx(Vn.Provider, { value: { client: g, formDataClient: U, ...p }, children: /* @__PURE__ */ Be.jsx(el, { children: /* @__PURE__ */ Be.jsx(
|
|
36840
36847
|
pm,
|
|
36841
36848
|
{
|
|
36842
36849
|
autoFetch: n,
|
|
@@ -36847,7 +36854,7 @@ function Bu({
|
|
|
36847
36854
|
}
|
|
36848
36855
|
const Hu = ({ onFunction: e = () => {
|
|
36849
36856
|
}, buttonProps: n = {} } = {}) => {
|
|
36850
|
-
const { lineConfig: a } = se(), r = ae(!1), p =
|
|
36857
|
+
const { lineConfig: a } = se(), r = ae(!1), p = Q(a, "liffId", ""), g = new URLSearchParams(window.location.search), U = g.get("line_login"), d = g.get("trans_code"), l = g.get("line_id"), t = g.get("line_name"), i = g.get("invite_code"), { mutate: o, isPending: s } = nr({
|
|
36851
36858
|
options: {
|
|
36852
36859
|
onSuccess: (m) => {
|
|
36853
36860
|
e(m);
|
|
@@ -36874,7 +36881,7 @@ const Hu = ({ onFunction: e = () => {
|
|
|
36874
36881
|
const u = () => {
|
|
36875
36882
|
window.location.href = `https://liff.line.me/${p}`;
|
|
36876
36883
|
};
|
|
36877
|
-
return p ? /* @__PURE__ */
|
|
36884
|
+
return p ? /* @__PURE__ */ Be.jsx(
|
|
36878
36885
|
"button",
|
|
36879
36886
|
{
|
|
36880
36887
|
className: "line-login-btn",
|
|
@@ -37494,7 +37501,7 @@ function Fr({
|
|
|
37494
37501
|
size: U,
|
|
37495
37502
|
boostLevel: d
|
|
37496
37503
|
}) {
|
|
37497
|
-
let l =
|
|
37504
|
+
let l = fe.useMemo(() => {
|
|
37498
37505
|
const m = (Array.isArray(e) ? e : [e]).reduce((_, c) => (_.push(...Oa.QrSegment.makeSegments(c)), _), []);
|
|
37499
37506
|
return Oa.QrCode.encodeSegments(
|
|
37500
37507
|
m,
|
|
@@ -37505,7 +37512,7 @@ function Fr({
|
|
|
37505
37512
|
d
|
|
37506
37513
|
);
|
|
37507
37514
|
}, [e, n, a, d]);
|
|
37508
|
-
const { cells: t, margin: i, numCells: o, calculatedImageSettings: s } =
|
|
37515
|
+
const { cells: t, margin: i, numCells: o, calculatedImageSettings: s } = fe.useMemo(() => {
|
|
37509
37516
|
let u = l.getModules();
|
|
37510
37517
|
const m = Um(r, p), _ = u.length + m * 2, c = ym(
|
|
37511
37518
|
u,
|
|
@@ -37535,7 +37542,7 @@ var bm = (function() {
|
|
|
37535
37542
|
return !1;
|
|
37536
37543
|
}
|
|
37537
37544
|
return !0;
|
|
37538
|
-
})(), Cm =
|
|
37545
|
+
})(), Cm = fe.forwardRef(
|
|
37539
37546
|
function(n, a) {
|
|
37540
37547
|
const r = n, {
|
|
37541
37548
|
value: p,
|
|
@@ -37559,12 +37566,12 @@ var bm = (function() {
|
|
|
37559
37566
|
"boostLevel",
|
|
37560
37567
|
"marginSize",
|
|
37561
37568
|
"imageSettings"
|
|
37562
|
-
]), { style: c } = _, y = fi(_, ["style"]), f = u?.src, b =
|
|
37563
|
-
(
|
|
37564
|
-
b.current =
|
|
37569
|
+
]), { style: c } = _, y = fi(_, ["style"]), f = u?.src, b = fe.useRef(null), C = fe.useRef(null), v = fe.useCallback(
|
|
37570
|
+
(w) => {
|
|
37571
|
+
b.current = w, typeof a == "function" ? a(w) : a && (a.current = w);
|
|
37565
37572
|
},
|
|
37566
37573
|
[a]
|
|
37567
|
-
), [S, E] =
|
|
37574
|
+
), [S, E] = fe.useState(!1), { margin: M, cells: A, numCells: k, calculatedImageSettings: D } = Fr({
|
|
37568
37575
|
value: p,
|
|
37569
37576
|
level: U,
|
|
37570
37577
|
minVersion: i,
|
|
@@ -37574,25 +37581,25 @@ var bm = (function() {
|
|
|
37574
37581
|
imageSettings: u,
|
|
37575
37582
|
size: g
|
|
37576
37583
|
});
|
|
37577
|
-
|
|
37584
|
+
fe.useEffect(() => {
|
|
37578
37585
|
if (b.current != null) {
|
|
37579
|
-
const
|
|
37580
|
-
if (!
|
|
37586
|
+
const w = b.current, R = w.getContext("2d");
|
|
37587
|
+
if (!R)
|
|
37581
37588
|
return;
|
|
37582
|
-
let
|
|
37589
|
+
let G = A;
|
|
37583
37590
|
const B = C.current, O = D != null && B !== null && B.complete && B.naturalHeight !== 0 && B.naturalWidth !== 0;
|
|
37584
|
-
O && D.excavation != null && (
|
|
37591
|
+
O && D.excavation != null && (G = wr(
|
|
37585
37592
|
A,
|
|
37586
37593
|
D.excavation
|
|
37587
37594
|
));
|
|
37588
37595
|
const W = window.devicePixelRatio || 1;
|
|
37589
|
-
|
|
37596
|
+
w.height = w.width = g * W;
|
|
37590
37597
|
const z = g / k * W;
|
|
37591
|
-
|
|
37592
|
-
|
|
37593
|
-
N &&
|
|
37598
|
+
R.scale(z, z), R.fillStyle = d, R.fillRect(0, 0, k, k), R.fillStyle = l, bm ? R.fill(new Path2D(Pr(G, M))) : A.forEach(function(h, T) {
|
|
37599
|
+
h.forEach(function(N, L) {
|
|
37600
|
+
N && R.fillRect(L + M, T + M, 1, 1);
|
|
37594
37601
|
});
|
|
37595
|
-
}), D && (
|
|
37602
|
+
}), D && (R.globalAlpha = D.opacity), O && R.drawImage(
|
|
37596
37603
|
B,
|
|
37597
37604
|
D.x + M,
|
|
37598
37605
|
D.y + M,
|
|
@@ -37600,12 +37607,12 @@ var bm = (function() {
|
|
|
37600
37607
|
D.h
|
|
37601
37608
|
);
|
|
37602
37609
|
}
|
|
37603
|
-
}),
|
|
37610
|
+
}), fe.useEffect(() => {
|
|
37604
37611
|
E(!1);
|
|
37605
37612
|
}, [f]);
|
|
37606
|
-
const
|
|
37607
|
-
let
|
|
37608
|
-
return f != null && (
|
|
37613
|
+
const F = ci({ height: g, width: g }, c);
|
|
37614
|
+
let P = null;
|
|
37615
|
+
return f != null && (P = /* @__PURE__ */ fe.createElement(
|
|
37609
37616
|
"img",
|
|
37610
37617
|
{
|
|
37611
37618
|
src: f,
|
|
@@ -37617,20 +37624,20 @@ var bm = (function() {
|
|
|
37617
37624
|
ref: C,
|
|
37618
37625
|
crossOrigin: D?.crossOrigin
|
|
37619
37626
|
}
|
|
37620
|
-
)), /* @__PURE__ */
|
|
37627
|
+
)), /* @__PURE__ */ fe.createElement(fe.Fragment, null, /* @__PURE__ */ fe.createElement(
|
|
37621
37628
|
"canvas",
|
|
37622
37629
|
ci({
|
|
37623
|
-
style:
|
|
37630
|
+
style: F,
|
|
37624
37631
|
height: g,
|
|
37625
37632
|
width: g,
|
|
37626
37633
|
ref: v,
|
|
37627
37634
|
role: "img"
|
|
37628
37635
|
}, y)
|
|
37629
|
-
),
|
|
37636
|
+
), P);
|
|
37630
37637
|
}
|
|
37631
37638
|
);
|
|
37632
37639
|
Cm.displayName = "QRCodeCanvas";
|
|
37633
|
-
var Ar =
|
|
37640
|
+
var Ar = fe.forwardRef(
|
|
37634
37641
|
function(n, a) {
|
|
37635
37642
|
const r = n, {
|
|
37636
37643
|
value: p,
|
|
@@ -37670,7 +37677,7 @@ var Ar = ce.forwardRef(
|
|
|
37670
37677
|
m != null && b != null && (b.excavation != null && (C = wr(
|
|
37671
37678
|
y,
|
|
37672
37679
|
b.excavation
|
|
37673
|
-
)), v = /* @__PURE__ */
|
|
37680
|
+
)), v = /* @__PURE__ */ fe.createElement(
|
|
37674
37681
|
"image",
|
|
37675
37682
|
{
|
|
37676
37683
|
href: m.src,
|
|
@@ -37684,7 +37691,7 @@ var Ar = ce.forwardRef(
|
|
|
37684
37691
|
}
|
|
37685
37692
|
));
|
|
37686
37693
|
const S = Pr(C, c);
|
|
37687
|
-
return /* @__PURE__ */
|
|
37694
|
+
return /* @__PURE__ */ fe.createElement(
|
|
37688
37695
|
"svg",
|
|
37689
37696
|
ci({
|
|
37690
37697
|
height: g,
|
|
@@ -37693,8 +37700,8 @@ var Ar = ce.forwardRef(
|
|
|
37693
37700
|
ref: a,
|
|
37694
37701
|
role: "img"
|
|
37695
37702
|
}, _),
|
|
37696
|
-
!!s && /* @__PURE__ */
|
|
37697
|
-
/* @__PURE__ */
|
|
37703
|
+
!!s && /* @__PURE__ */ fe.createElement("title", null, s),
|
|
37704
|
+
/* @__PURE__ */ fe.createElement(
|
|
37698
37705
|
"path",
|
|
37699
37706
|
{
|
|
37700
37707
|
fill: d,
|
|
@@ -37702,7 +37709,7 @@ var Ar = ce.forwardRef(
|
|
|
37702
37709
|
shapeRendering: "crispEdges"
|
|
37703
37710
|
}
|
|
37704
37711
|
),
|
|
37705
|
-
/* @__PURE__ */
|
|
37712
|
+
/* @__PURE__ */ fe.createElement("path", { fill: l, d: S, shapeRendering: "crispEdges" }),
|
|
37706
37713
|
v
|
|
37707
37714
|
);
|
|
37708
37715
|
}
|
|
@@ -37753,14 +37760,14 @@ const vm = {
|
|
|
37753
37760
|
expired: "Kode QR telah kedaluwarsa"
|
|
37754
37761
|
}
|
|
37755
37762
|
}, Iu = ({ forcedShow: e = !1, isVisible: n, setIsVisible: a } = {}) => {
|
|
37756
|
-
const { lng: r, getToken: p, lineConfig: g } = se(), [U, d] = Xa(300), [l, t] = Xa(!1), i = ae(null), o =
|
|
37763
|
+
const { lng: r, getToken: p, lineConfig: g } = se(), [U, d] = Xa(300), [l, t] = Xa(!1), i = ae(null), o = Q(g, "liffId", ""), s = Qe(r), u = p?.(), _ = new URLSearchParams(window.location.search).get("mac") || pi.get("machine_mac_address") || "", { data: c, isFetching: y } = qo({
|
|
37757
37764
|
formData: {
|
|
37758
37765
|
mac_address: _
|
|
37759
37766
|
},
|
|
37760
37767
|
options: {
|
|
37761
37768
|
enabled: e ? !0 : !!_ && !u
|
|
37762
37769
|
}
|
|
37763
|
-
}), f =
|
|
37770
|
+
}), f = Q(c, "liff_url", "") || `https://liff.line.me/${o}`;
|
|
37764
37771
|
ue(() => {
|
|
37765
37772
|
_ && pi.set("machine_mac_address", _, { expires: 365 });
|
|
37766
37773
|
}, [_]), ue(() => (f && (d(300), t(!1), i.current && clearInterval(i.current), i.current = setInterval(() => {
|
|
@@ -37774,8 +37781,8 @@ const vm = {
|
|
|
37774
37781
|
};
|
|
37775
37782
|
if (!e && (!_ || u)) return null;
|
|
37776
37783
|
const C = Wn[s] || Wn.en_US;
|
|
37777
|
-
return n && /* @__PURE__ */
|
|
37778
|
-
/* @__PURE__ */
|
|
37784
|
+
return n && /* @__PURE__ */ Be.jsxs("div", { style: vm, children: [
|
|
37785
|
+
/* @__PURE__ */ Be.jsx(
|
|
37779
37786
|
"div",
|
|
37780
37787
|
{
|
|
37781
37788
|
style: hm,
|
|
@@ -37785,9 +37792,9 @@ const vm = {
|
|
|
37785
37792
|
children: "✕"
|
|
37786
37793
|
}
|
|
37787
37794
|
),
|
|
37788
|
-
l ? /* @__PURE__ */
|
|
37789
|
-
/* @__PURE__ */
|
|
37790
|
-
/* @__PURE__ */
|
|
37795
|
+
l ? /* @__PURE__ */ Be.jsx("p", { style: { fontWeight: "bold" }, children: C.expired }) : /* @__PURE__ */ Be.jsxs(Be.Fragment, { children: [
|
|
37796
|
+
/* @__PURE__ */ Be.jsx("p", { style: { fontWeight: "bold", fontSize: "3em" }, children: C.title }),
|
|
37797
|
+
/* @__PURE__ */ Be.jsx(
|
|
37791
37798
|
"div",
|
|
37792
37799
|
{
|
|
37793
37800
|
style: {
|
|
@@ -37801,10 +37808,10 @@ const vm = {
|
|
|
37801
37808
|
boxSizing: "border-box",
|
|
37802
37809
|
color: "black"
|
|
37803
37810
|
},
|
|
37804
|
-
children: y ? "Loading..." : /* @__PURE__ */
|
|
37811
|
+
children: y ? "Loading..." : /* @__PURE__ */ Be.jsx(Ar, { width: "100%", height: "100%", value: f })
|
|
37805
37812
|
}
|
|
37806
37813
|
),
|
|
37807
|
-
!y && /* @__PURE__ */
|
|
37814
|
+
!y && /* @__PURE__ */ Be.jsx(
|
|
37808
37815
|
"p",
|
|
37809
37816
|
{
|
|
37810
37817
|
style: {
|