@obb871001/api-integration-sdk 1.0.304 → 1.0.306
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 +5 -5
- package/dist/index.js +851 -627
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12,18 +12,18 @@ function Zl(e) {
|
|
|
12
12
|
var n = e.default;
|
|
13
13
|
if (typeof n == "function") {
|
|
14
14
|
var i = function l() {
|
|
15
|
-
var
|
|
15
|
+
var u = !1;
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
u = this instanceof l;
|
|
18
18
|
} catch {
|
|
19
19
|
}
|
|
20
|
-
return
|
|
20
|
+
return u ? Reflect.construct(n, arguments, this.constructor) : n.apply(this, arguments);
|
|
21
21
|
};
|
|
22
22
|
i.prototype = n.prototype;
|
|
23
23
|
} else i = {};
|
|
24
24
|
return Object.defineProperty(i, "__esModule", { value: !0 }), Object.keys(e).forEach(function(l) {
|
|
25
|
-
var
|
|
26
|
-
Object.defineProperty(i, l,
|
|
25
|
+
var u = Object.getOwnPropertyDescriptor(e, l);
|
|
26
|
+
Object.defineProperty(i, l, u.get ? u : {
|
|
27
27
|
enumerable: !0,
|
|
28
28
|
get: function() {
|
|
29
29
|
return e[l];
|
|
@@ -36,13 +36,13 @@ var St;
|
|
|
36
36
|
function Jl() {
|
|
37
37
|
if (St) return Za;
|
|
38
38
|
St = 1;
|
|
39
|
-
var e = de, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty,
|
|
39
|
+
var e = de, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, u = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
40
40
|
function b(d, r, a) {
|
|
41
|
-
var t, o = {}, s = null,
|
|
42
|
-
a !== void 0 && (s = "" + a), r.key !== void 0 && (s = "" + r.key), r.ref !== void 0 && (
|
|
41
|
+
var t, o = {}, s = null, p = null;
|
|
42
|
+
a !== void 0 && (s = "" + a), r.key !== void 0 && (s = "" + r.key), r.ref !== void 0 && (p = r.ref);
|
|
43
43
|
for (t in r) l.call(r, t) && !g.hasOwnProperty(t) && (o[t] = r[t]);
|
|
44
44
|
if (d && d.defaultProps) for (t in r = d.defaultProps, r) o[t] === void 0 && (o[t] = r[t]);
|
|
45
|
-
return { $$typeof: n, type: d, key: s, ref:
|
|
45
|
+
return { $$typeof: n, type: d, key: s, ref: p, props: o, _owner: u.current };
|
|
46
46
|
}
|
|
47
47
|
return Za.Fragment = i, Za.jsx = b, Za.jsxs = b, Za;
|
|
48
48
|
}
|
|
@@ -50,7 +50,7 @@ var Ja = {};
|
|
|
50
50
|
var Dt;
|
|
51
51
|
function Kl() {
|
|
52
52
|
return Dt || (Dt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
53
|
-
var e = de, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), l = Symbol.for("react.fragment"),
|
|
53
|
+
var e = de, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), d = Symbol.for("react.context"), r = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), t = Symbol.for("react.suspense_list"), o = Symbol.for("react.memo"), s = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), m = Symbol.iterator, c = "@@iterator";
|
|
54
54
|
function f(h) {
|
|
55
55
|
if (h === null || typeof h != "object")
|
|
56
56
|
return null;
|
|
@@ -78,7 +78,7 @@ function Kl() {
|
|
|
78
78
|
var C = !1, v = !1, x = !1, D = !1, M = !1, H;
|
|
79
79
|
H = Symbol.for("react.module.reference");
|
|
80
80
|
function k(h) {
|
|
81
|
-
return !!(typeof h == "string" || typeof h == "function" || h === l || h === g || M || h ===
|
|
81
|
+
return !!(typeof h == "string" || typeof h == "function" || h === l || h === g || M || h === u || h === a || h === t || D || h === p || C || v || x || typeof h == "object" && h !== null && (h.$$typeof === s || h.$$typeof === o || h.$$typeof === b || h.$$typeof === d || h.$$typeof === r || // This needs to include all possible module reference object
|
|
82
82
|
// types supported by any Flight configuration anywhere since
|
|
83
83
|
// we don't know which Flight build this will end up being used
|
|
84
84
|
// with.
|
|
@@ -108,7 +108,7 @@ function Kl() {
|
|
|
108
108
|
return "Portal";
|
|
109
109
|
case g:
|
|
110
110
|
return "Profiler";
|
|
111
|
-
case
|
|
111
|
+
case u:
|
|
112
112
|
return "StrictMode";
|
|
113
113
|
case a:
|
|
114
114
|
return "Suspense";
|
|
@@ -652,11 +652,11 @@ const zn = Vi(null), oe = () => {
|
|
|
652
652
|
PENDING: "pending"
|
|
653
653
|
}, In = Vi(null), $l = ({ children: e }) => {
|
|
654
654
|
const [n, i] = tt(Ka.PENDING), l = Oa(() => {
|
|
655
|
-
const
|
|
655
|
+
const u = n === Ka.READY, g = n === Ka.PENDING;
|
|
656
656
|
return {
|
|
657
657
|
status: n,
|
|
658
658
|
setStatus: i,
|
|
659
|
-
isReady:
|
|
659
|
+
isReady: u,
|
|
660
660
|
isPending: g,
|
|
661
661
|
setAsReady: () => i(Ka.READY),
|
|
662
662
|
setAsPending: () => i(Ka.PENDING)
|
|
@@ -701,7 +701,7 @@ function Lt({
|
|
|
701
701
|
getToken: n,
|
|
702
702
|
timeoutMs: i = 15e3,
|
|
703
703
|
lng: l = "tw",
|
|
704
|
-
store:
|
|
704
|
+
store: u,
|
|
705
705
|
onError: g,
|
|
706
706
|
formData: b = !1,
|
|
707
707
|
currency: d,
|
|
@@ -719,7 +719,7 @@ function Lt({
|
|
|
719
719
|
const s = await n();
|
|
720
720
|
s && (t.headers.Authorization = `Bearer ${s}`);
|
|
721
721
|
}
|
|
722
|
-
const o =
|
|
722
|
+
const o = u?.getState()?.isWalletCurrency || d || "TWD";
|
|
723
723
|
return t.headers.Currency = o, t.headers["currency-code"] = o, t.headers.lang = l, t;
|
|
724
724
|
}), a.interceptors.response.use(
|
|
725
725
|
(t) => t.data,
|
|
@@ -731,7 +731,7 @@ function Lt({
|
|
|
731
731
|
);
|
|
732
732
|
if (r) {
|
|
733
733
|
const s = $e(l);
|
|
734
|
-
|
|
734
|
+
u?.dispatch({
|
|
735
735
|
type: "ui/showToast",
|
|
736
736
|
payload: {
|
|
737
737
|
title: ja[s] || "System Prompt",
|
|
@@ -753,11 +753,11 @@ const qn = Vi(null), bm = () => {
|
|
|
753
753
|
);
|
|
754
754
|
return e;
|
|
755
755
|
}, Cm = () => {
|
|
756
|
-
const e = (l,
|
|
756
|
+
const e = (l, u) => !l && !u, n = (l) => l.startsWith("pc.");
|
|
757
757
|
return {
|
|
758
758
|
executeLogout: ({
|
|
759
759
|
isCallBackInvalid: l = !1,
|
|
760
|
-
hostname:
|
|
760
|
+
hostname: u = "",
|
|
761
761
|
shouldRedirect: g,
|
|
762
762
|
onShowError: b,
|
|
763
763
|
onCleanup: d,
|
|
@@ -765,7 +765,7 @@ const qn = Vi(null), bm = () => {
|
|
|
765
765
|
onRedirect: a,
|
|
766
766
|
onGoogleLogout: t
|
|
767
767
|
}) => {
|
|
768
|
-
const o = n(
|
|
768
|
+
const o = n(u);
|
|
769
769
|
e(l, o) && b?.(), d?.(), r?.(), g && a?.("/"), t?.();
|
|
770
770
|
},
|
|
771
771
|
shouldShowErrorNotice: e,
|
|
@@ -786,11 +786,11 @@ const qn = Vi(null), bm = () => {
|
|
|
786
786
|
platforms: n,
|
|
787
787
|
gameList: i,
|
|
788
788
|
allGameTypes: l,
|
|
789
|
-
allPlatforms:
|
|
789
|
+
allPlatforms: u
|
|
790
790
|
}) => {
|
|
791
791
|
const g = $n(l, e);
|
|
792
792
|
return g ? n.reduce((b, d) => {
|
|
793
|
-
const r = Qn(
|
|
793
|
+
const r = Qn(u, d), a = jn(u, d), t = i[g] || [], o = Yn(
|
|
794
794
|
t,
|
|
795
795
|
r,
|
|
796
796
|
a
|
|
@@ -802,10 +802,10 @@ const qn = Vi(null), bm = () => {
|
|
|
802
802
|
gamesOfType: n = [],
|
|
803
803
|
allPlatforms: i = []
|
|
804
804
|
}) => {
|
|
805
|
-
const l = Qn(i, e),
|
|
805
|
+
const l = Qn(i, e), u = jn(i, e), g = Yn(
|
|
806
806
|
n,
|
|
807
807
|
l,
|
|
808
|
-
|
|
808
|
+
u
|
|
809
809
|
);
|
|
810
810
|
return Ql(g);
|
|
811
811
|
};
|
|
@@ -815,7 +815,7 @@ function er() {
|
|
|
815
815
|
(function(i, l) {
|
|
816
816
|
e.exports = l();
|
|
817
817
|
})(Xl, (function() {
|
|
818
|
-
var i = 1e3, l = 6e4,
|
|
818
|
+
var i = 1e3, l = 6e4, u = 36e5, g = "millisecond", b = "second", d = "minute", r = "hour", a = "day", t = "week", o = "month", s = "quarter", p = "year", m = "date", c = "Invalid Date", f = /^(\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, _ = { 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) {
|
|
819
819
|
var R = ["th", "st", "nd", "rd"], S = w % 100;
|
|
820
820
|
return "[" + w + (R[(S - 20) % 10] || R[S] || R[0]) + "]";
|
|
821
821
|
} }, U = function(w, R, S) {
|
|
@@ -831,7 +831,7 @@ function er() {
|
|
|
831
831
|
}, a: function(w) {
|
|
832
832
|
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
|
833
833
|
}, p: function(w) {
|
|
834
|
-
return { M: o, y:
|
|
834
|
+
return { M: o, y: p, w: t, d: a, D: m, h: r, m: d, s: b, ms: g, Q: s }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
|
835
835
|
}, u: function(w) {
|
|
836
836
|
return w === void 0;
|
|
837
837
|
} }, v = "en", x = {};
|
|
@@ -907,7 +907,7 @@ function er() {
|
|
|
907
907
|
return T.w(L.toDate()[ae].apply(L.toDate("s"), (B ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(te)), L);
|
|
908
908
|
}, F = this.$W, P = this.$M, K = this.$D, q = "set" + (this.$u ? "UTC" : "");
|
|
909
909
|
switch (W) {
|
|
910
|
-
case
|
|
910
|
+
case p:
|
|
911
911
|
return B ? N(1, 0) : N(31, 11);
|
|
912
912
|
case o:
|
|
913
913
|
return B ? N(1, P) : N(0, P + 1);
|
|
@@ -929,8 +929,8 @@ function er() {
|
|
|
929
929
|
}, R.endOf = function(S) {
|
|
930
930
|
return this.startOf(S, !1);
|
|
931
931
|
}, R.$set = function(S, G) {
|
|
932
|
-
var L, B = T.p(S), W = "set" + (this.$u ? "UTC" : ""), N = (L = {}, L[a] = W + "Date", L[m] = W + "Date", L[o] = W + "Month", L[
|
|
933
|
-
if (B === o || B ===
|
|
932
|
+
var L, B = T.p(S), W = "set" + (this.$u ? "UTC" : ""), N = (L = {}, L[a] = W + "Date", L[m] = W + "Date", L[o] = W + "Month", L[p] = W + "FullYear", L[r] = W + "Hours", L[d] = W + "Minutes", L[b] = W + "Seconds", L[g] = W + "Milliseconds", L)[B], E = B === a ? this.$D + (G - this.$W) : G;
|
|
933
|
+
if (B === o || B === p) {
|
|
934
934
|
var F = this.clone().set(m, 1);
|
|
935
935
|
F.$d[N](E), F.init(), this.$d = F.set(m, Math.min(this.$D, F.daysInMonth())).$d;
|
|
936
936
|
} else N && this.$d[N](E);
|
|
@@ -947,10 +947,10 @@ function er() {
|
|
|
947
947
|
return T.w(K.date(K.date() + Math.round(P * S)), B);
|
|
948
948
|
};
|
|
949
949
|
if (W === o) return this.set(o, this.$M + S);
|
|
950
|
-
if (W ===
|
|
950
|
+
if (W === p) return this.set(p, this.$y + S);
|
|
951
951
|
if (W === a) return N(1);
|
|
952
952
|
if (W === t) return N(7);
|
|
953
|
-
var E = (L = {}, L[d] = l, L[r] =
|
|
953
|
+
var E = (L = {}, L[d] = l, L[r] = u, L[b] = i, L)[W] || 1, F = this.$d.getTime() + S * E;
|
|
954
954
|
return T.w(F, this);
|
|
955
955
|
}, R.subtract = function(S, G) {
|
|
956
956
|
return this.add(-1 * S, G);
|
|
@@ -1027,7 +1027,7 @@ function er() {
|
|
|
1027
1027
|
return T.m(W, E);
|
|
1028
1028
|
};
|
|
1029
1029
|
switch (N) {
|
|
1030
|
-
case
|
|
1030
|
+
case p:
|
|
1031
1031
|
B = K() / 12;
|
|
1032
1032
|
break;
|
|
1033
1033
|
case o:
|
|
@@ -1043,7 +1043,7 @@ function er() {
|
|
|
1043
1043
|
B = (P - F) / 864e5;
|
|
1044
1044
|
break;
|
|
1045
1045
|
case r:
|
|
1046
|
-
B = P /
|
|
1046
|
+
B = P / u;
|
|
1047
1047
|
break;
|
|
1048
1048
|
case d:
|
|
1049
1049
|
B = P / l;
|
|
@@ -1075,7 +1075,7 @@ function er() {
|
|
|
1075
1075
|
return this.$d.toUTCString();
|
|
1076
1076
|
}, w;
|
|
1077
1077
|
})(), O = A.prototype;
|
|
1078
|
-
return k.prototype = O, [["$ms", g], ["$s", b], ["$m", d], ["$H", r], ["$W", a], ["$M", o], ["$y",
|
|
1078
|
+
return k.prototype = O, [["$ms", g], ["$s", b], ["$m", d], ["$H", r], ["$W", a], ["$M", o], ["$y", p], ["$D", m]].forEach((function(w) {
|
|
1079
1079
|
O[w[1]] = function(R) {
|
|
1080
1080
|
return this.$g(R, w[0], w[1]);
|
|
1081
1081
|
};
|
|
@@ -1104,7 +1104,7 @@ function ie() {
|
|
|
1104
1104
|
(function(i, l) {
|
|
1105
1105
|
e.exports = l();
|
|
1106
1106
|
})(rr, function() {
|
|
1107
|
-
var i = i || (function(l,
|
|
1107
|
+
var i = i || (function(l, u) {
|
|
1108
1108
|
var g;
|
|
1109
1109
|
if (typeof window < "u" && window.crypto && (g = window.crypto), typeof self < "u" && self.crypto && (g = self.crypto), typeof globalThis < "u" && globalThis.crypto && (g = globalThis.crypto), !g && typeof window < "u" && window.msCrypto && (g = window.msCrypto), !g && typeof Qi < "u" && Qi.crypto && (g = Qi.crypto), !g && typeof ir == "function")
|
|
1110
1110
|
try {
|
|
@@ -1231,7 +1231,7 @@ function ie() {
|
|
|
1231
1231
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
|
|
1232
1232
|
*/
|
|
1233
1233
|
init: function(_, U) {
|
|
1234
|
-
_ = this.words = _ || [], U !=
|
|
1234
|
+
_ = this.words = _ || [], U != u ? this.sigBytes = U : this.sigBytes = _.length * 4;
|
|
1235
1235
|
},
|
|
1236
1236
|
/**
|
|
1237
1237
|
* Converts this word array to a string.
|
|
@@ -1247,7 +1247,7 @@ function ie() {
|
|
|
1247
1247
|
* var string = wordArray.toString(CryptoJS.enc.Utf8);
|
|
1248
1248
|
*/
|
|
1249
1249
|
toString: function(_) {
|
|
1250
|
-
return (_ ||
|
|
1250
|
+
return (_ || p).stringify(this);
|
|
1251
1251
|
},
|
|
1252
1252
|
/**
|
|
1253
1253
|
* Concatenates a word array to this word array.
|
|
@@ -1314,7 +1314,7 @@ function ie() {
|
|
|
1314
1314
|
U.push(b());
|
|
1315
1315
|
return new o.init(U, _);
|
|
1316
1316
|
}
|
|
1317
|
-
}), s = r.enc = {},
|
|
1317
|
+
}), s = r.enc = {}, p = s.Hex = {
|
|
1318
1318
|
/**
|
|
1319
1319
|
* Converts a word array to a hex string.
|
|
1320
1320
|
*
|
|
@@ -1606,7 +1606,7 @@ function Ki() {
|
|
|
1606
1606
|
e.exports = l(ie());
|
|
1607
1607
|
})(or, function(i) {
|
|
1608
1608
|
return (function(l) {
|
|
1609
|
-
var
|
|
1609
|
+
var u = i, g = u.lib, b = g.Base, d = g.WordArray, r = u.x64 = {};
|
|
1610
1610
|
r.Word = b.extend({
|
|
1611
1611
|
/**
|
|
1612
1612
|
* Initializes a newly created 64-bit word.
|
|
@@ -1805,8 +1805,8 @@ function Ki() {
|
|
|
1805
1805
|
*/
|
|
1806
1806
|
toX32: function() {
|
|
1807
1807
|
for (var a = this.words, t = a.length, o = [], s = 0; s < t; s++) {
|
|
1808
|
-
var
|
|
1809
|
-
o.push(
|
|
1808
|
+
var p = a[s];
|
|
1809
|
+
o.push(p.high), o.push(p.low);
|
|
1810
1810
|
}
|
|
1811
1811
|
return d.create(o, this.sigBytes);
|
|
1812
1812
|
},
|
|
@@ -1837,7 +1837,7 @@ function mr() {
|
|
|
1837
1837
|
})(sr, function(i) {
|
|
1838
1838
|
return (function() {
|
|
1839
1839
|
if (typeof ArrayBuffer == "function") {
|
|
1840
|
-
var l = i,
|
|
1840
|
+
var l = i, u = l.lib, g = u.WordArray, b = g.init, d = g.init = function(r) {
|
|
1841
1841
|
if (r instanceof ArrayBuffer && (r = new Uint8Array(r)), (r instanceof Int8Array || typeof Uint8ClampedArray < "u" && r instanceof Uint8ClampedArray || r instanceof Int16Array || r instanceof Uint16Array || r instanceof Int32Array || r instanceof Uint32Array || r instanceof Float32Array || r instanceof Float64Array) && (r = new Uint8Array(r.buffer, r.byteOffset, r.byteLength)), r instanceof Uint8Array) {
|
|
1842
1842
|
for (var a = r.byteLength, t = [], o = 0; o < a; o++)
|
|
1843
1843
|
t[o >>> 2] |= r[o] << 24 - o % 4 * 8;
|
|
@@ -1858,7 +1858,7 @@ function pr() {
|
|
|
1858
1858
|
e.exports = l(ie());
|
|
1859
1859
|
})(ur, function(i) {
|
|
1860
1860
|
return (function() {
|
|
1861
|
-
var l = i,
|
|
1861
|
+
var l = i, u = l.lib, g = u.WordArray, b = l.enc;
|
|
1862
1862
|
b.Utf16 = b.Utf16BE = {
|
|
1863
1863
|
/**
|
|
1864
1864
|
* Converts a word array to a UTF-16 BE string.
|
|
@@ -1875,8 +1875,8 @@ function pr() {
|
|
|
1875
1875
|
*/
|
|
1876
1876
|
stringify: function(r) {
|
|
1877
1877
|
for (var a = r.words, t = r.sigBytes, o = [], s = 0; s < t; s += 2) {
|
|
1878
|
-
var
|
|
1879
|
-
o.push(String.fromCharCode(
|
|
1878
|
+
var p = a[s >>> 2] >>> 16 - s % 4 * 8 & 65535;
|
|
1879
|
+
o.push(String.fromCharCode(p));
|
|
1880
1880
|
}
|
|
1881
1881
|
return o.join("");
|
|
1882
1882
|
},
|
|
@@ -1914,8 +1914,8 @@ function pr() {
|
|
|
1914
1914
|
*/
|
|
1915
1915
|
stringify: function(r) {
|
|
1916
1916
|
for (var a = r.words, t = r.sigBytes, o = [], s = 0; s < t; s += 2) {
|
|
1917
|
-
var
|
|
1918
|
-
o.push(String.fromCharCode(
|
|
1917
|
+
var p = d(a[s >>> 2] >>> 16 - s % 4 * 8 & 65535);
|
|
1918
|
+
o.push(String.fromCharCode(p));
|
|
1919
1919
|
}
|
|
1920
1920
|
return o.join("");
|
|
1921
1921
|
},
|
|
@@ -1952,7 +1952,7 @@ function Sa() {
|
|
|
1952
1952
|
e.exports = l(ie());
|
|
1953
1953
|
})(gr, function(i) {
|
|
1954
1954
|
return (function() {
|
|
1955
|
-
var l = i,
|
|
1955
|
+
var l = i, u = l.lib, g = u.WordArray, b = l.enc;
|
|
1956
1956
|
b.Base64 = {
|
|
1957
1957
|
/**
|
|
1958
1958
|
* Converts a word array to a Base64 string.
|
|
@@ -1970,8 +1970,8 @@ function Sa() {
|
|
|
1970
1970
|
stringify: function(r) {
|
|
1971
1971
|
var a = r.words, t = r.sigBytes, o = this._map;
|
|
1972
1972
|
r.clamp();
|
|
1973
|
-
for (var s = [],
|
|
1974
|
-
for (var m = a[
|
|
1973
|
+
for (var s = [], p = 0; p < t; p += 3)
|
|
1974
|
+
for (var m = a[p >>> 2] >>> 24 - p % 4 * 8 & 255, c = a[p + 1 >>> 2] >>> 24 - (p + 1) % 4 * 8 & 255, f = a[p + 2 >>> 2] >>> 24 - (p + 2) % 4 * 8 & 255, y = m << 16 | c << 8 | f, _ = 0; _ < 4 && p + _ * 0.75 < t; _++)
|
|
1975
1975
|
s.push(o.charAt(y >>> 6 * (3 - _) & 63));
|
|
1976
1976
|
var U = o.charAt(64);
|
|
1977
1977
|
if (U)
|
|
@@ -1999,9 +1999,9 @@ function Sa() {
|
|
|
1999
1999
|
for (var s = 0; s < t.length; s++)
|
|
2000
2000
|
o[t.charCodeAt(s)] = s;
|
|
2001
2001
|
}
|
|
2002
|
-
var
|
|
2003
|
-
if (
|
|
2004
|
-
var m = r.indexOf(
|
|
2002
|
+
var p = t.charAt(64);
|
|
2003
|
+
if (p) {
|
|
2004
|
+
var m = r.indexOf(p);
|
|
2005
2005
|
m !== -1 && (a = m);
|
|
2006
2006
|
}
|
|
2007
2007
|
return d(r, a, o);
|
|
@@ -2009,9 +2009,9 @@ function Sa() {
|
|
|
2009
2009
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
2010
2010
|
};
|
|
2011
2011
|
function d(r, a, t) {
|
|
2012
|
-
for (var o = [], s = 0,
|
|
2013
|
-
if (
|
|
2014
|
-
var m = t[r.charCodeAt(
|
|
2012
|
+
for (var o = [], s = 0, p = 0; p < a; p++)
|
|
2013
|
+
if (p % 4) {
|
|
2014
|
+
var m = t[r.charCodeAt(p - 1)] << p % 4 * 2, c = t[r.charCodeAt(p)] >>> 6 - p % 4 * 2, f = m | c;
|
|
2015
2015
|
o[s >>> 2] |= f << 24 - s % 4 * 8, s++;
|
|
2016
2016
|
}
|
|
2017
2017
|
return g.create(o, s);
|
|
@@ -2027,7 +2027,7 @@ function cr() {
|
|
|
2027
2027
|
e.exports = l(ie());
|
|
2028
2028
|
})(dr, function(i) {
|
|
2029
2029
|
return (function() {
|
|
2030
|
-
var l = i,
|
|
2030
|
+
var l = i, u = l.lib, g = u.WordArray, b = l.enc;
|
|
2031
2031
|
b.Base64url = {
|
|
2032
2032
|
/**
|
|
2033
2033
|
* Converts a word array to a Base64url string.
|
|
@@ -2048,14 +2048,14 @@ function cr() {
|
|
|
2048
2048
|
a === void 0 && (a = !0);
|
|
2049
2049
|
var t = r.words, o = r.sigBytes, s = a ? this._safe_map : this._map;
|
|
2050
2050
|
r.clamp();
|
|
2051
|
-
for (var
|
|
2051
|
+
for (var p = [], m = 0; m < o; m += 3)
|
|
2052
2052
|
for (var c = t[m >>> 2] >>> 24 - m % 4 * 8 & 255, f = t[m + 1 >>> 2] >>> 24 - (m + 1) % 4 * 8 & 255, y = t[m + 2 >>> 2] >>> 24 - (m + 2) % 4 * 8 & 255, _ = c << 16 | f << 8 | y, U = 0; U < 4 && m + U * 0.75 < o; U++)
|
|
2053
|
-
|
|
2053
|
+
p.push(s.charAt(_ >>> 6 * (3 - U) & 63));
|
|
2054
2054
|
var C = s.charAt(64);
|
|
2055
2055
|
if (C)
|
|
2056
|
-
for (;
|
|
2057
|
-
|
|
2058
|
-
return
|
|
2056
|
+
for (; p.length % 4; )
|
|
2057
|
+
p.push(C);
|
|
2058
|
+
return p.join("");
|
|
2059
2059
|
},
|
|
2060
2060
|
/**
|
|
2061
2061
|
* Converts a Base64url string to a word array.
|
|
@@ -2077,8 +2077,8 @@ function cr() {
|
|
|
2077
2077
|
var t = r.length, o = a ? this._safe_map : this._map, s = this._reverseMap;
|
|
2078
2078
|
if (!s) {
|
|
2079
2079
|
s = this._reverseMap = [];
|
|
2080
|
-
for (var
|
|
2081
|
-
s[o.charCodeAt(
|
|
2080
|
+
for (var p = 0; p < o.length; p++)
|
|
2081
|
+
s[o.charCodeAt(p)] = p;
|
|
2082
2082
|
}
|
|
2083
2083
|
var m = o.charAt(64);
|
|
2084
2084
|
if (m) {
|
|
@@ -2091,9 +2091,9 @@ function cr() {
|
|
|
2091
2091
|
_safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
|
|
2092
2092
|
};
|
|
2093
2093
|
function d(r, a, t) {
|
|
2094
|
-
for (var o = [], s = 0,
|
|
2095
|
-
if (
|
|
2096
|
-
var m = t[r.charCodeAt(
|
|
2094
|
+
for (var o = [], s = 0, p = 0; p < a; p++)
|
|
2095
|
+
if (p % 4) {
|
|
2096
|
+
var m = t[r.charCodeAt(p - 1)] << p % 4 * 2, c = t[r.charCodeAt(p)] >>> 6 - p % 4 * 2, f = m | c;
|
|
2097
2097
|
o[s >>> 2] |= f << 24 - s % 4 * 8, s++;
|
|
2098
2098
|
}
|
|
2099
2099
|
return g.create(o, s);
|
|
@@ -2109,7 +2109,7 @@ function Da() {
|
|
|
2109
2109
|
e.exports = l(ie());
|
|
2110
2110
|
})(fr, function(i) {
|
|
2111
2111
|
return (function(l) {
|
|
2112
|
-
var
|
|
2112
|
+
var u = i, g = u.lib, b = g.WordArray, d = g.Hasher, r = u.algo, a = [];
|
|
2113
2113
|
(function() {
|
|
2114
2114
|
for (var c = 0; c < 64; c++)
|
|
2115
2115
|
a[c] = l.abs(l.sin(c + 1)) * 4294967296 | 0;
|
|
@@ -2129,7 +2129,7 @@ function Da() {
|
|
|
2129
2129
|
c[_] = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360;
|
|
2130
2130
|
}
|
|
2131
2131
|
var C = this._hash.words, v = c[f + 0], x = c[f + 1], D = c[f + 2], M = c[f + 3], H = c[f + 4], k = c[f + 5], T = c[f + 6], A = c[f + 7], O = c[f + 8], w = c[f + 9], R = c[f + 10], S = c[f + 11], G = c[f + 12], L = c[f + 13], B = c[f + 14], W = c[f + 15], N = C[0], E = C[1], F = C[2], P = C[3];
|
|
2132
|
-
N = o(N, E, F, P, v, 7, a[0]), P = o(P, N, E, F, x, 12, a[1]), F = o(F, P, N, E, D, 17, a[2]), E = o(E, F, P, N, M, 22, a[3]), N = o(N, E, F, P, H, 7, a[4]), P = o(P, N, E, F, k, 12, a[5]), F = o(F, P, N, E, T, 17, a[6]), E = o(E, F, P, N, A, 22, a[7]), N = o(N, E, F, P, O, 7, a[8]), P = o(P, N, E, F, w, 12, a[9]), F = o(F, P, N, E, R, 17, a[10]), E = o(E, F, P, N, S, 22, a[11]), N = o(N, E, F, P, G, 7, a[12]), P = o(P, N, E, F, L, 12, a[13]), F = o(F, P, N, E, B, 17, a[14]), E = o(E, F, P, N, W, 22, a[15]), N = s(N, E, F, P, x, 5, a[16]), P = s(P, N, E, F, T, 9, a[17]), F = s(F, P, N, E, S, 14, a[18]), E = s(E, F, P, N, v, 20, a[19]), N = s(N, E, F, P, k, 5, a[20]), P = s(P, N, E, F, R, 9, a[21]), F = s(F, P, N, E, W, 14, a[22]), E = s(E, F, P, N, H, 20, a[23]), N = s(N, E, F, P, w, 5, a[24]), P = s(P, N, E, F, B, 9, a[25]), F = s(F, P, N, E, M, 14, a[26]), E = s(E, F, P, N, O, 20, a[27]), N = s(N, E, F, P, L, 5, a[28]), P = s(P, N, E, F, D, 9, a[29]), F = s(F, P, N, E, A, 14, a[30]), E = s(E, F, P, N, G, 20, a[31]), N =
|
|
2132
|
+
N = o(N, E, F, P, v, 7, a[0]), P = o(P, N, E, F, x, 12, a[1]), F = o(F, P, N, E, D, 17, a[2]), E = o(E, F, P, N, M, 22, a[3]), N = o(N, E, F, P, H, 7, a[4]), P = o(P, N, E, F, k, 12, a[5]), F = o(F, P, N, E, T, 17, a[6]), E = o(E, F, P, N, A, 22, a[7]), N = o(N, E, F, P, O, 7, a[8]), P = o(P, N, E, F, w, 12, a[9]), F = o(F, P, N, E, R, 17, a[10]), E = o(E, F, P, N, S, 22, a[11]), N = o(N, E, F, P, G, 7, a[12]), P = o(P, N, E, F, L, 12, a[13]), F = o(F, P, N, E, B, 17, a[14]), E = o(E, F, P, N, W, 22, a[15]), N = s(N, E, F, P, x, 5, a[16]), P = s(P, N, E, F, T, 9, a[17]), F = s(F, P, N, E, S, 14, a[18]), E = s(E, F, P, N, v, 20, a[19]), N = s(N, E, F, P, k, 5, a[20]), P = s(P, N, E, F, R, 9, a[21]), F = s(F, P, N, E, W, 14, a[22]), E = s(E, F, P, N, H, 20, a[23]), N = s(N, E, F, P, w, 5, a[24]), P = s(P, N, E, F, B, 9, a[25]), F = s(F, P, N, E, M, 14, a[26]), E = s(E, F, P, N, O, 20, a[27]), N = s(N, E, F, P, L, 5, a[28]), P = s(P, N, E, F, D, 9, a[29]), F = s(F, P, N, E, A, 14, a[30]), E = s(E, F, P, N, G, 20, a[31]), N = p(N, E, F, P, k, 4, a[32]), P = p(P, N, E, F, O, 11, a[33]), F = p(F, P, N, E, S, 16, a[34]), E = p(E, F, P, N, B, 23, a[35]), N = p(N, E, F, P, x, 4, a[36]), P = p(P, N, E, F, H, 11, a[37]), F = p(F, P, N, E, A, 16, a[38]), E = p(E, F, P, N, R, 23, a[39]), N = p(N, E, F, P, L, 4, a[40]), P = p(P, N, E, F, v, 11, a[41]), F = p(F, P, N, E, M, 16, a[42]), E = p(E, F, P, N, T, 23, a[43]), N = p(N, E, F, P, w, 4, a[44]), P = p(P, N, E, F, G, 11, a[45]), F = p(F, P, N, E, W, 16, a[46]), E = p(E, F, P, N, D, 23, a[47]), N = m(N, E, F, P, v, 6, a[48]), P = m(P, N, E, F, A, 10, a[49]), F = m(F, P, N, E, B, 15, a[50]), E = m(E, F, P, N, k, 21, a[51]), N = m(N, E, F, P, G, 6, a[52]), P = m(P, N, E, F, M, 10, a[53]), F = m(F, P, N, E, R, 15, a[54]), E = m(E, F, P, N, x, 21, a[55]), N = m(N, E, F, P, O, 6, a[56]), P = m(P, N, E, F, W, 10, a[57]), F = m(F, P, N, E, T, 15, a[58]), E = m(E, F, P, N, L, 21, a[59]), N = m(N, E, F, P, H, 6, a[60]), P = m(P, N, E, F, S, 10, a[61]), F = m(F, P, N, E, D, 15, a[62]), E = m(E, F, P, N, w, 21, a[63]), C[0] = C[0] + N | 0, C[1] = C[1] + E | 0, C[2] = C[2] + F | 0, C[3] = C[3] + P | 0;
|
|
2133
2133
|
},
|
|
2134
2134
|
_doFinalize: function() {
|
|
2135
2135
|
var c = this._data, f = c.words, y = this._nDataBytes * 8, _ = c.sigBytes * 8;
|
|
@@ -2155,7 +2155,7 @@ function Da() {
|
|
|
2155
2155
|
var x = c + (f & _ | y & ~_) + U + v;
|
|
2156
2156
|
return (x << C | x >>> 32 - C) + f;
|
|
2157
2157
|
}
|
|
2158
|
-
function
|
|
2158
|
+
function p(c, f, y, _, U, C, v) {
|
|
2159
2159
|
var x = c + (f ^ y ^ _) + U + v;
|
|
2160
2160
|
return (x << C | x >>> 32 - C) + f;
|
|
2161
2161
|
}
|
|
@@ -2163,7 +2163,7 @@ function Da() {
|
|
|
2163
2163
|
var x = c + (y ^ (f | ~_)) + U + v;
|
|
2164
2164
|
return (x << C | x >>> 32 - C) + f;
|
|
2165
2165
|
}
|
|
2166
|
-
|
|
2166
|
+
u.MD5 = d._createHelper(t), u.HmacMD5 = d._createHmacHelper(t);
|
|
2167
2167
|
})(Math), i.MD5;
|
|
2168
2168
|
});
|
|
2169
2169
|
})(di)), di.exports;
|
|
@@ -2175,7 +2175,7 @@ function Xn() {
|
|
|
2175
2175
|
e.exports = l(ie());
|
|
2176
2176
|
})(_r, function(i) {
|
|
2177
2177
|
return (function() {
|
|
2178
|
-
var l = i,
|
|
2178
|
+
var l = i, u = l.lib, g = u.WordArray, b = u.Hasher, d = l.algo, r = [], a = d.SHA1 = b.extend({
|
|
2179
2179
|
_doReset: function() {
|
|
2180
2180
|
this._hash = new g.init([
|
|
2181
2181
|
1732584193,
|
|
@@ -2186,21 +2186,21 @@ function Xn() {
|
|
|
2186
2186
|
]);
|
|
2187
2187
|
},
|
|
2188
2188
|
_doProcessBlock: function(t, o) {
|
|
2189
|
-
for (var s = this._hash.words,
|
|
2189
|
+
for (var s = this._hash.words, p = s[0], m = s[1], c = s[2], f = s[3], y = s[4], _ = 0; _ < 80; _++) {
|
|
2190
2190
|
if (_ < 16)
|
|
2191
2191
|
r[_] = t[o + _] | 0;
|
|
2192
2192
|
else {
|
|
2193
2193
|
var U = r[_ - 3] ^ r[_ - 8] ^ r[_ - 14] ^ r[_ - 16];
|
|
2194
2194
|
r[_] = U << 1 | U >>> 31;
|
|
2195
2195
|
}
|
|
2196
|
-
var C = (
|
|
2197
|
-
_ < 20 ? C += (m & c | ~m & f) + 1518500249 : _ < 40 ? C += (m ^ c ^ f) + 1859775393 : _ < 60 ? C += (m & c | m & f | c & f) - 1894007588 : C += (m ^ c ^ f) - 899497514, y = f, f = c, c = m << 30 | m >>> 2, m =
|
|
2196
|
+
var C = (p << 5 | p >>> 27) + y + r[_];
|
|
2197
|
+
_ < 20 ? C += (m & c | ~m & f) + 1518500249 : _ < 40 ? C += (m ^ c ^ f) + 1859775393 : _ < 60 ? C += (m & c | m & f | c & f) - 1894007588 : C += (m ^ c ^ f) - 899497514, y = f, f = c, c = m << 30 | m >>> 2, m = p, p = C;
|
|
2198
2198
|
}
|
|
2199
|
-
s[0] = s[0] +
|
|
2199
|
+
s[0] = s[0] + p | 0, s[1] = s[1] + m | 0, s[2] = s[2] + c | 0, s[3] = s[3] + f | 0, s[4] = s[4] + y | 0;
|
|
2200
2200
|
},
|
|
2201
2201
|
_doFinalize: function() {
|
|
2202
|
-
var t = this._data, o = t.words, s = this._nDataBytes * 8,
|
|
2203
|
-
return o[
|
|
2202
|
+
var t = this._data, o = t.words, s = this._nDataBytes * 8, p = t.sigBytes * 8;
|
|
2203
|
+
return o[p >>> 5] |= 128 << 24 - p % 32, o[(p + 64 >>> 9 << 4) + 14] = Math.floor(s / 4294967296), o[(p + 64 >>> 9 << 4) + 15] = s, t.sigBytes = o.length * 4, this._process(), this._hash;
|
|
2204
2204
|
},
|
|
2205
2205
|
clone: function() {
|
|
2206
2206
|
var t = b.clone.call(this);
|
|
@@ -2219,9 +2219,9 @@ function dt() {
|
|
|
2219
2219
|
e.exports = l(ie());
|
|
2220
2220
|
})(yr, function(i) {
|
|
2221
2221
|
return (function(l) {
|
|
2222
|
-
var
|
|
2222
|
+
var u = i, g = u.lib, b = g.WordArray, d = g.Hasher, r = u.algo, a = [], t = [];
|
|
2223
2223
|
(function() {
|
|
2224
|
-
function
|
|
2224
|
+
function p(y) {
|
|
2225
2225
|
for (var _ = l.sqrt(y), U = 2; U <= _; U++)
|
|
2226
2226
|
if (!(y % U))
|
|
2227
2227
|
return !1;
|
|
@@ -2231,16 +2231,16 @@ function dt() {
|
|
|
2231
2231
|
return (y - (y | 0)) * 4294967296 | 0;
|
|
2232
2232
|
}
|
|
2233
2233
|
for (var c = 2, f = 0; f < 64; )
|
|
2234
|
-
|
|
2234
|
+
p(c) && (f < 8 && (a[f] = m(l.pow(c, 1 / 2))), t[f] = m(l.pow(c, 1 / 3)), f++), c++;
|
|
2235
2235
|
})();
|
|
2236
2236
|
var o = [], s = r.SHA256 = d.extend({
|
|
2237
2237
|
_doReset: function() {
|
|
2238
2238
|
this._hash = new b.init(a.slice(0));
|
|
2239
2239
|
},
|
|
2240
|
-
_doProcessBlock: function(
|
|
2240
|
+
_doProcessBlock: function(p, m) {
|
|
2241
2241
|
for (var c = this._hash.words, f = c[0], y = c[1], _ = c[2], U = c[3], C = c[4], v = c[5], x = c[6], D = c[7], M = 0; M < 64; M++) {
|
|
2242
2242
|
if (M < 16)
|
|
2243
|
-
o[M] =
|
|
2243
|
+
o[M] = p[m + M] | 0;
|
|
2244
2244
|
else {
|
|
2245
2245
|
var H = o[M - 15], k = (H << 25 | H >>> 7) ^ (H << 14 | H >>> 18) ^ H >>> 3, T = o[M - 2], A = (T << 15 | T >>> 17) ^ (T << 13 | T >>> 19) ^ T >>> 10;
|
|
2246
2246
|
o[M] = k + o[M - 7] + A + o[M - 16];
|
|
@@ -2251,15 +2251,15 @@ function dt() {
|
|
|
2251
2251
|
c[0] = c[0] + f | 0, c[1] = c[1] + y | 0, c[2] = c[2] + _ | 0, c[3] = c[3] + U | 0, c[4] = c[4] + C | 0, c[5] = c[5] + v | 0, c[6] = c[6] + x | 0, c[7] = c[7] + D | 0;
|
|
2252
2252
|
},
|
|
2253
2253
|
_doFinalize: function() {
|
|
2254
|
-
var
|
|
2255
|
-
return m[f >>> 5] |= 128 << 24 - f % 32, m[(f + 64 >>> 9 << 4) + 14] = l.floor(c / 4294967296), m[(f + 64 >>> 9 << 4) + 15] = c,
|
|
2254
|
+
var p = this._data, m = p.words, c = this._nDataBytes * 8, f = p.sigBytes * 8;
|
|
2255
|
+
return m[f >>> 5] |= 128 << 24 - f % 32, m[(f + 64 >>> 9 << 4) + 14] = l.floor(c / 4294967296), m[(f + 64 >>> 9 << 4) + 15] = c, p.sigBytes = m.length * 4, this._process(), this._hash;
|
|
2256
2256
|
},
|
|
2257
2257
|
clone: function() {
|
|
2258
|
-
var
|
|
2259
|
-
return
|
|
2258
|
+
var p = d.clone.call(this);
|
|
2259
|
+
return p._hash = this._hash.clone(), p;
|
|
2260
2260
|
}
|
|
2261
2261
|
});
|
|
2262
|
-
|
|
2262
|
+
u.SHA256 = d._createHelper(s), u.HmacSHA256 = d._createHmacHelper(s);
|
|
2263
2263
|
})(Math), i.SHA256;
|
|
2264
2264
|
});
|
|
2265
2265
|
})(fi)), fi.exports;
|
|
@@ -2267,11 +2267,11 @@ function dt() {
|
|
|
2267
2267
|
var _i = { exports: {} }, Ur = _i.exports, Wt;
|
|
2268
2268
|
function br() {
|
|
2269
2269
|
return Wt || (Wt = 1, (function(e, n) {
|
|
2270
|
-
(function(i, l,
|
|
2270
|
+
(function(i, l, u) {
|
|
2271
2271
|
e.exports = l(ie(), dt());
|
|
2272
2272
|
})(Ur, function(i) {
|
|
2273
2273
|
return (function() {
|
|
2274
|
-
var l = i,
|
|
2274
|
+
var l = i, u = l.lib, g = u.WordArray, b = l.algo, d = b.SHA256, r = b.SHA224 = d.extend({
|
|
2275
2275
|
_doReset: function() {
|
|
2276
2276
|
this._hash = new g.init([
|
|
2277
2277
|
3238371032,
|
|
@@ -2297,11 +2297,11 @@ function br() {
|
|
|
2297
2297
|
var yi = { exports: {} }, Cr = yi.exports, zt;
|
|
2298
2298
|
function el() {
|
|
2299
2299
|
return zt || (zt = 1, (function(e, n) {
|
|
2300
|
-
(function(i, l,
|
|
2300
|
+
(function(i, l, u) {
|
|
2301
2301
|
e.exports = l(ie(), Ki());
|
|
2302
2302
|
})(Cr, function(i) {
|
|
2303
2303
|
return (function() {
|
|
2304
|
-
var l = i,
|
|
2304
|
+
var l = i, u = l.lib, g = u.Hasher, b = l.x64, d = b.Word, r = b.WordArray, a = l.algo;
|
|
2305
2305
|
function t() {
|
|
2306
2306
|
return d.create.apply(d, arguments);
|
|
2307
2307
|
}
|
|
@@ -2391,7 +2391,7 @@ function el() {
|
|
|
2391
2391
|
for (var m = 0; m < 80; m++)
|
|
2392
2392
|
s[m] = t();
|
|
2393
2393
|
})();
|
|
2394
|
-
var
|
|
2394
|
+
var p = a.SHA512 = g.extend({
|
|
2395
2395
|
_doReset: function() {
|
|
2396
2396
|
this._hash = new r.init([
|
|
2397
2397
|
new d.init(1779033703, 4089235720),
|
|
@@ -2430,7 +2430,7 @@ function el() {
|
|
|
2430
2430
|
},
|
|
2431
2431
|
blockSize: 1024 / 32
|
|
2432
2432
|
});
|
|
2433
|
-
l.SHA512 = g._createHelper(
|
|
2433
|
+
l.SHA512 = g._createHelper(p), l.HmacSHA512 = g._createHmacHelper(p);
|
|
2434
2434
|
})(), i.SHA512;
|
|
2435
2435
|
});
|
|
2436
2436
|
})(yi)), yi.exports;
|
|
@@ -2438,11 +2438,11 @@ function el() {
|
|
|
2438
2438
|
var Ui = { exports: {} }, vr = Ui.exports, It;
|
|
2439
2439
|
function hr() {
|
|
2440
2440
|
return It || (It = 1, (function(e, n) {
|
|
2441
|
-
(function(i, l,
|
|
2441
|
+
(function(i, l, u) {
|
|
2442
2442
|
e.exports = l(ie(), Ki(), el());
|
|
2443
2443
|
})(vr, function(i) {
|
|
2444
2444
|
return (function() {
|
|
2445
|
-
var l = i,
|
|
2445
|
+
var l = i, u = l.x64, g = u.Word, b = u.WordArray, d = l.algo, r = d.SHA512, a = d.SHA384 = r.extend({
|
|
2446
2446
|
_doReset: function() {
|
|
2447
2447
|
this._hash = new b.init([
|
|
2448
2448
|
new g.init(3418070365, 3238371032),
|
|
@@ -2468,11 +2468,11 @@ function hr() {
|
|
|
2468
2468
|
var bi = { exports: {} }, Tr = bi.exports, Vt;
|
|
2469
2469
|
function kr() {
|
|
2470
2470
|
return Vt || (Vt = 1, (function(e, n) {
|
|
2471
|
-
(function(i, l,
|
|
2471
|
+
(function(i, l, u) {
|
|
2472
2472
|
e.exports = l(ie(), Ki());
|
|
2473
2473
|
})(Tr, function(i) {
|
|
2474
2474
|
return (function(l) {
|
|
2475
|
-
var
|
|
2475
|
+
var u = i, g = u.lib, b = g.WordArray, d = g.Hasher, r = u.x64, a = r.Word, t = u.algo, o = [], s = [], p = [];
|
|
2476
2476
|
(function() {
|
|
2477
2477
|
for (var f = 1, y = 0, _ = 0; _ < 24; _++) {
|
|
2478
2478
|
o[f + 5 * y] = (_ + 1) * (_ + 2) / 2 % 64;
|
|
@@ -2490,7 +2490,7 @@ function kr() {
|
|
|
2490
2490
|
}
|
|
2491
2491
|
v & 128 ? v = v << 1 ^ 113 : v <<= 1;
|
|
2492
2492
|
}
|
|
2493
|
-
|
|
2493
|
+
p[x] = a.create(D, M);
|
|
2494
2494
|
}
|
|
2495
2495
|
})();
|
|
2496
2496
|
var m = [];
|
|
@@ -2549,7 +2549,7 @@ function kr() {
|
|
|
2549
2549
|
var L = H + 5 * A, D = _[L], K = m[L], q = m[(H + 1) % 5 + 5 * A], Q = m[(H + 2) % 5 + 5 * A];
|
|
2550
2550
|
D.high = K.high ^ ~q.high & Q.high, D.low = K.low ^ ~q.low & Q.low;
|
|
2551
2551
|
}
|
|
2552
|
-
var D = _[0], J =
|
|
2552
|
+
var D = _[0], J = p[M];
|
|
2553
2553
|
D.high ^= J.high, D.low ^= J.low;
|
|
2554
2554
|
}
|
|
2555
2555
|
},
|
|
@@ -2570,7 +2570,7 @@ function kr() {
|
|
|
2570
2570
|
return f;
|
|
2571
2571
|
}
|
|
2572
2572
|
});
|
|
2573
|
-
|
|
2573
|
+
u.SHA3 = d._createHelper(c), u.HmacSHA3 = d._createHmacHelper(c);
|
|
2574
2574
|
})(Math), i.SHA3;
|
|
2575
2575
|
});
|
|
2576
2576
|
})(bi)), bi.exports;
|
|
@@ -2582,7 +2582,7 @@ function Sr() {
|
|
|
2582
2582
|
e.exports = l(ie());
|
|
2583
2583
|
})(xr, function(i) {
|
|
2584
2584
|
return (function(l) {
|
|
2585
|
-
var
|
|
2585
|
+
var u = i, g = u.lib, b = g.WordArray, d = g.Hasher, r = u.algo, a = b.create([
|
|
2586
2586
|
0,
|
|
2587
2587
|
1,
|
|
2588
2588
|
2,
|
|
@@ -2906,7 +2906,7 @@ function Sr() {
|
|
|
2906
2906
|
13,
|
|
2907
2907
|
11,
|
|
2908
2908
|
11
|
|
2909
|
-
]),
|
|
2909
|
+
]), p = b.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), m = b.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), c = r.RIPEMD160 = d.extend({
|
|
2910
2910
|
_doReset: function() {
|
|
2911
2911
|
this._hash = b.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2912
2912
|
},
|
|
@@ -2915,7 +2915,7 @@ function Sr() {
|
|
|
2915
2915
|
var H = D + M, k = x[H];
|
|
2916
2916
|
x[H] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
|
2917
2917
|
}
|
|
2918
|
-
var T = this._hash.words, A =
|
|
2918
|
+
var T = this._hash.words, A = p.words, O = m.words, w = a.words, R = t.words, S = o.words, G = s.words, L, B, W, N, E, F, P, K, q, Q;
|
|
2919
2919
|
F = L = T[0], P = B = T[1], K = W = T[2], q = N = T[3], Q = E = T[4];
|
|
2920
2920
|
for (var J, M = 0; M < 80; M += 1)
|
|
2921
2921
|
J = L + x[D + w[M]] | 0, M < 16 ? J += f(B, W, N) + A[0] : M < 32 ? J += y(B, W, N) + A[1] : M < 48 ? J += _(B, W, N) + A[2] : M < 64 ? J += U(B, W, N) + A[3] : J += C(B, W, N) + A[4], J = J | 0, J = v(J, S[M]), J = J + E | 0, L = E, E = N, N = v(W, 10), W = B, B = J, J = F + x[D + R[M]] | 0, M < 16 ? J += C(P, K, q) + O[0] : M < 32 ? J += U(P, K, q) + O[1] : M < 48 ? J += _(P, K, q) + O[2] : M < 64 ? J += y(P, K, q) + O[3] : J += f(P, K, q) + O[4], J = J | 0, J = v(J, G[M]), J = J + Q | 0, F = Q, Q = q, q = v(K, 10), K = P, P = J;
|
|
@@ -2953,7 +2953,7 @@ function Sr() {
|
|
|
2953
2953
|
function v(x, D) {
|
|
2954
2954
|
return x << D | x >>> 32 - D;
|
|
2955
2955
|
}
|
|
2956
|
-
|
|
2956
|
+
u.RIPEMD160 = d._createHelper(c), u.HmacRIPEMD160 = d._createHmacHelper(c);
|
|
2957
2957
|
})(), i.RIPEMD160;
|
|
2958
2958
|
});
|
|
2959
2959
|
})(Ci)), Ci.exports;
|
|
@@ -2965,7 +2965,7 @@ function ct() {
|
|
|
2965
2965
|
e.exports = l(ie());
|
|
2966
2966
|
})(Dr, function(i) {
|
|
2967
2967
|
(function() {
|
|
2968
|
-
var l = i,
|
|
2968
|
+
var l = i, u = l.lib, g = u.Base, b = l.enc, d = b.Utf8, r = l.algo;
|
|
2969
2969
|
r.HMAC = g.extend({
|
|
2970
2970
|
/**
|
|
2971
2971
|
* Initializes a newly created HMAC.
|
|
@@ -2981,9 +2981,9 @@ function ct() {
|
|
|
2981
2981
|
a = this._hasher = new a.init(), typeof t == "string" && (t = d.parse(t));
|
|
2982
2982
|
var o = a.blockSize, s = o * 4;
|
|
2983
2983
|
t.sigBytes > s && (t = a.finalize(t)), t.clamp();
|
|
2984
|
-
for (var
|
|
2984
|
+
for (var p = this._oKey = t.clone(), m = this._iKey = t.clone(), c = p.words, f = m.words, y = 0; y < o; y++)
|
|
2985
2985
|
c[y] ^= 1549556828, f[y] ^= 909522486;
|
|
2986
|
-
|
|
2986
|
+
p.sigBytes = m.sigBytes = s, this.reset();
|
|
2987
2987
|
},
|
|
2988
2988
|
/**
|
|
2989
2989
|
* Resets this HMAC to its initial state.
|
|
@@ -3039,11 +3039,11 @@ function ct() {
|
|
|
3039
3039
|
var hi = { exports: {} }, Er = hi.exports, Kt;
|
|
3040
3040
|
function Nr() {
|
|
3041
3041
|
return Kt || (Kt = 1, (function(e, n) {
|
|
3042
|
-
(function(i, l,
|
|
3042
|
+
(function(i, l, u) {
|
|
3043
3043
|
e.exports = l(ie(), dt(), ct());
|
|
3044
3044
|
})(Er, function(i) {
|
|
3045
3045
|
return (function() {
|
|
3046
|
-
var l = i,
|
|
3046
|
+
var l = i, u = l.lib, g = u.Base, b = u.WordArray, d = l.algo, r = d.SHA256, a = d.HMAC, t = d.PBKDF2 = g.extend({
|
|
3047
3047
|
/**
|
|
3048
3048
|
* Configuration options.
|
|
3049
3049
|
*
|
|
@@ -3083,7 +3083,7 @@ function Nr() {
|
|
|
3083
3083
|
* var key = kdf.compute(password, salt);
|
|
3084
3084
|
*/
|
|
3085
3085
|
compute: function(o, s) {
|
|
3086
|
-
for (var
|
|
3086
|
+
for (var p = this.cfg, m = a.create(p.hasher, o), c = b.create(), f = b.create([1]), y = c.words, _ = f.words, U = p.keySize, C = p.iterations; y.length < U; ) {
|
|
3087
3087
|
var v = m.update(s).finalize(f);
|
|
3088
3088
|
m.reset();
|
|
3089
3089
|
for (var x = v.words, D = x.length, M = v, H = 1; H < C; H++) {
|
|
@@ -3096,8 +3096,8 @@ function Nr() {
|
|
|
3096
3096
|
return c.sigBytes = U * 4, c;
|
|
3097
3097
|
}
|
|
3098
3098
|
});
|
|
3099
|
-
l.PBKDF2 = function(o, s,
|
|
3100
|
-
return t.create(
|
|
3099
|
+
l.PBKDF2 = function(o, s, p) {
|
|
3100
|
+
return t.create(p).compute(o, s);
|
|
3101
3101
|
};
|
|
3102
3102
|
})(), i.PBKDF2;
|
|
3103
3103
|
});
|
|
@@ -3106,11 +3106,11 @@ function Nr() {
|
|
|
3106
3106
|
var Ti = { exports: {} }, Lr = Ti.exports, qt;
|
|
3107
3107
|
function ya() {
|
|
3108
3108
|
return qt || (qt = 1, (function(e, n) {
|
|
3109
|
-
(function(i, l,
|
|
3109
|
+
(function(i, l, u) {
|
|
3110
3110
|
e.exports = l(ie(), Xn(), ct());
|
|
3111
3111
|
})(Lr, function(i) {
|
|
3112
3112
|
return (function() {
|
|
3113
|
-
var l = i,
|
|
3113
|
+
var l = i, u = l.lib, g = u.Base, b = u.WordArray, d = l.algo, r = d.MD5, a = d.EvpKDF = g.extend({
|
|
3114
3114
|
/**
|
|
3115
3115
|
* Configuration options.
|
|
3116
3116
|
*
|
|
@@ -3150,7 +3150,7 @@ function ya() {
|
|
|
3150
3150
|
* var key = kdf.compute(password, salt);
|
|
3151
3151
|
*/
|
|
3152
3152
|
compute: function(t, o) {
|
|
3153
|
-
for (var s,
|
|
3153
|
+
for (var s, p = this.cfg, m = p.hasher.create(), c = b.create(), f = c.words, y = p.keySize, _ = p.iterations; f.length < y; ) {
|
|
3154
3154
|
s && m.update(s), s = m.update(t).finalize(o), m.reset();
|
|
3155
3155
|
for (var U = 1; U < _; U++)
|
|
3156
3156
|
s = m.finalize(s), m.reset();
|
|
@@ -3169,13 +3169,13 @@ function ya() {
|
|
|
3169
3169
|
var ki = { exports: {} }, Gr = ki.exports, $t;
|
|
3170
3170
|
function Ne() {
|
|
3171
3171
|
return $t || ($t = 1, (function(e, n) {
|
|
3172
|
-
(function(i, l,
|
|
3172
|
+
(function(i, l, u) {
|
|
3173
3173
|
e.exports = l(ie(), ya());
|
|
3174
3174
|
})(Gr, function(i) {
|
|
3175
3175
|
i.lib.Cipher || (function(l) {
|
|
3176
|
-
var
|
|
3176
|
+
var u = i, g = u.lib, b = g.Base, d = g.WordArray, r = g.BufferedBlockAlgorithm, a = u.enc;
|
|
3177
3177
|
a.Utf8;
|
|
3178
|
-
var t = a.Base64, o =
|
|
3178
|
+
var t = a.Base64, o = u.algo, s = o.EvpKDF, p = g.Cipher = r.extend({
|
|
3179
3179
|
/**
|
|
3180
3180
|
* Configuration options.
|
|
3181
3181
|
*
|
|
@@ -3307,14 +3307,14 @@ function Ne() {
|
|
|
3307
3307
|
};
|
|
3308
3308
|
})()
|
|
3309
3309
|
});
|
|
3310
|
-
g.StreamCipher =
|
|
3310
|
+
g.StreamCipher = p.extend({
|
|
3311
3311
|
_doFinalize: function() {
|
|
3312
3312
|
var k = this._process(!0);
|
|
3313
3313
|
return k;
|
|
3314
3314
|
},
|
|
3315
3315
|
blockSize: 1
|
|
3316
3316
|
});
|
|
3317
|
-
var m =
|
|
3317
|
+
var m = u.mode = {}, c = g.BlockCipherMode = b.extend({
|
|
3318
3318
|
/**
|
|
3319
3319
|
* Creates this mode for encryption.
|
|
3320
3320
|
*
|
|
@@ -3398,7 +3398,7 @@ function Ne() {
|
|
|
3398
3398
|
A[O + G] ^= R[G];
|
|
3399
3399
|
}
|
|
3400
3400
|
return k;
|
|
3401
|
-
})(), y =
|
|
3401
|
+
})(), y = u.pad = {}, _ = y.Pkcs7 = {
|
|
3402
3402
|
/**
|
|
3403
3403
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
3404
3404
|
*
|
|
@@ -3433,20 +3433,20 @@ function Ne() {
|
|
|
3433
3433
|
k.sigBytes -= T;
|
|
3434
3434
|
}
|
|
3435
3435
|
};
|
|
3436
|
-
g.BlockCipher =
|
|
3436
|
+
g.BlockCipher = p.extend({
|
|
3437
3437
|
/**
|
|
3438
3438
|
* Configuration options.
|
|
3439
3439
|
*
|
|
3440
3440
|
* @property {Mode} mode The block mode to use. Default: CBC
|
|
3441
3441
|
* @property {Padding} padding The padding strategy to use. Default: Pkcs7
|
|
3442
3442
|
*/
|
|
3443
|
-
cfg:
|
|
3443
|
+
cfg: p.cfg.extend({
|
|
3444
3444
|
mode: f,
|
|
3445
3445
|
padding: _
|
|
3446
3446
|
}),
|
|
3447
3447
|
reset: function() {
|
|
3448
3448
|
var k;
|
|
3449
|
-
|
|
3449
|
+
p.reset.call(this);
|
|
3450
3450
|
var T = this.cfg, A = T.iv, O = T.mode;
|
|
3451
3451
|
this._xformMode == this._ENC_XFORM_MODE ? k = O.createEncryptor : (k = O.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == k ? this._mode.init(this, A && A.words) : (this._mode = k.call(O, this, A && A.words), this._mode.__creator = k);
|
|
3452
3452
|
},
|
|
@@ -3500,7 +3500,7 @@ function Ne() {
|
|
|
3500
3500
|
toString: function(k) {
|
|
3501
3501
|
return (k || this.formatter).stringify(this);
|
|
3502
3502
|
}
|
|
3503
|
-
}), C =
|
|
3503
|
+
}), C = u.format = {}, v = C.OpenSSL = {
|
|
3504
3504
|
/**
|
|
3505
3505
|
* Converts a cipher params object to an OpenSSL-compatible string.
|
|
3506
3506
|
*
|
|
@@ -3616,7 +3616,7 @@ function Ne() {
|
|
|
3616
3616
|
_parse: function(k, T) {
|
|
3617
3617
|
return typeof k == "string" ? T.parse(k, this) : k;
|
|
3618
3618
|
}
|
|
3619
|
-
}), D =
|
|
3619
|
+
}), D = u.kdf = {}, M = D.OpenSSL = {
|
|
3620
3620
|
/**
|
|
3621
3621
|
* Derives a key and IV from a password.
|
|
3622
3622
|
*
|
|
@@ -3707,7 +3707,7 @@ function Ne() {
|
|
|
3707
3707
|
var xi = { exports: {} }, Mr = xi.exports, Qt;
|
|
3708
3708
|
function Rr() {
|
|
3709
3709
|
return Qt || (Qt = 1, (function(e, n) {
|
|
3710
|
-
(function(i, l,
|
|
3710
|
+
(function(i, l, u) {
|
|
3711
3711
|
e.exports = l(ie(), Ne());
|
|
3712
3712
|
})(Mr, function(i) {
|
|
3713
3713
|
return i.mode.CFB = (function() {
|
|
@@ -3715,15 +3715,15 @@ function Rr() {
|
|
|
3715
3715
|
l.Encryptor = l.extend({
|
|
3716
3716
|
processBlock: function(g, b) {
|
|
3717
3717
|
var d = this._cipher, r = d.blockSize;
|
|
3718
|
-
|
|
3718
|
+
u.call(this, g, b, r, d), this._prevBlock = g.slice(b, b + r);
|
|
3719
3719
|
}
|
|
3720
3720
|
}), l.Decryptor = l.extend({
|
|
3721
3721
|
processBlock: function(g, b) {
|
|
3722
3722
|
var d = this._cipher, r = d.blockSize, a = g.slice(b, b + r);
|
|
3723
|
-
|
|
3723
|
+
u.call(this, g, b, r, d), this._prevBlock = a;
|
|
3724
3724
|
}
|
|
3725
3725
|
});
|
|
3726
|
-
function
|
|
3726
|
+
function u(g, b, d, r) {
|
|
3727
3727
|
var a, t = this._iv;
|
|
3728
3728
|
t ? (a = t.slice(0), this._iv = void 0) : a = this._prevBlock, r.encryptBlock(a, 0);
|
|
3729
3729
|
for (var o = 0; o < d; o++)
|
|
@@ -3737,11 +3737,11 @@ function Rr() {
|
|
|
3737
3737
|
var Si = { exports: {} }, Pr = Si.exports, jt;
|
|
3738
3738
|
function wr() {
|
|
3739
3739
|
return jt || (jt = 1, (function(e, n) {
|
|
3740
|
-
(function(i, l,
|
|
3740
|
+
(function(i, l, u) {
|
|
3741
3741
|
e.exports = l(ie(), Ne());
|
|
3742
3742
|
})(Pr, function(i) {
|
|
3743
3743
|
return i.mode.CTR = (function() {
|
|
3744
|
-
var l = i.lib.BlockCipherMode.extend(),
|
|
3744
|
+
var l = i.lib.BlockCipherMode.extend(), u = l.Encryptor = l.extend({
|
|
3745
3745
|
processBlock: function(g, b) {
|
|
3746
3746
|
var d = this._cipher, r = d.blockSize, a = this._iv, t = this._counter;
|
|
3747
3747
|
a && (t = this._counter = a.slice(0), this._iv = void 0);
|
|
@@ -3751,7 +3751,7 @@ function wr() {
|
|
|
3751
3751
|
g[b + s] ^= o[s];
|
|
3752
3752
|
}
|
|
3753
3753
|
});
|
|
3754
|
-
return l.Decryptor =
|
|
3754
|
+
return l.Decryptor = u, l;
|
|
3755
3755
|
})(), i.mode.CTR;
|
|
3756
3756
|
});
|
|
3757
3757
|
})(Si)), Si.exports;
|
|
@@ -3759,12 +3759,12 @@ function wr() {
|
|
|
3759
3759
|
var Di = { exports: {} }, Fr = Di.exports, Yt;
|
|
3760
3760
|
function Ar() {
|
|
3761
3761
|
return Yt || (Yt = 1, (function(e, n) {
|
|
3762
|
-
(function(i, l,
|
|
3762
|
+
(function(i, l, u) {
|
|
3763
3763
|
e.exports = l(ie(), Ne());
|
|
3764
3764
|
})(Fr, function(i) {
|
|
3765
3765
|
return i.mode.CTRGladman = (function() {
|
|
3766
3766
|
var l = i.lib.BlockCipherMode.extend();
|
|
3767
|
-
function
|
|
3767
|
+
function u(d) {
|
|
3768
3768
|
if ((d >> 24 & 255) === 255) {
|
|
3769
3769
|
var r = d >> 16 & 255, a = d >> 8 & 255, t = d & 255;
|
|
3770
3770
|
r === 255 ? (r = 0, a === 255 ? (a = 0, t === 255 ? t = 0 : ++t) : ++a) : ++r, d = 0, d += r << 16, d += a << 8, d += t;
|
|
@@ -3773,16 +3773,16 @@ function Ar() {
|
|
|
3773
3773
|
return d;
|
|
3774
3774
|
}
|
|
3775
3775
|
function g(d) {
|
|
3776
|
-
return (d[0] =
|
|
3776
|
+
return (d[0] = u(d[0])) === 0 && (d[1] = u(d[1])), d;
|
|
3777
3777
|
}
|
|
3778
3778
|
var b = l.Encryptor = l.extend({
|
|
3779
3779
|
processBlock: function(d, r) {
|
|
3780
3780
|
var a = this._cipher, t = a.blockSize, o = this._iv, s = this._counter;
|
|
3781
3781
|
o && (s = this._counter = o.slice(0), this._iv = void 0), g(s);
|
|
3782
|
-
var
|
|
3783
|
-
a.encryptBlock(
|
|
3782
|
+
var p = s.slice(0);
|
|
3783
|
+
a.encryptBlock(p, 0);
|
|
3784
3784
|
for (var m = 0; m < t; m++)
|
|
3785
|
-
d[r + m] ^=
|
|
3785
|
+
d[r + m] ^= p[m];
|
|
3786
3786
|
}
|
|
3787
3787
|
});
|
|
3788
3788
|
return l.Decryptor = b, l;
|
|
@@ -3793,11 +3793,11 @@ function Ar() {
|
|
|
3793
3793
|
var Ei = { exports: {} }, Or = Ei.exports, Xt;
|
|
3794
3794
|
function Br() {
|
|
3795
3795
|
return Xt || (Xt = 1, (function(e, n) {
|
|
3796
|
-
(function(i, l,
|
|
3796
|
+
(function(i, l, u) {
|
|
3797
3797
|
e.exports = l(ie(), Ne());
|
|
3798
3798
|
})(Or, function(i) {
|
|
3799
3799
|
return i.mode.OFB = (function() {
|
|
3800
|
-
var l = i.lib.BlockCipherMode.extend(),
|
|
3800
|
+
var l = i.lib.BlockCipherMode.extend(), u = l.Encryptor = l.extend({
|
|
3801
3801
|
processBlock: function(g, b) {
|
|
3802
3802
|
var d = this._cipher, r = d.blockSize, a = this._iv, t = this._keystream;
|
|
3803
3803
|
a && (t = this._keystream = a.slice(0), this._iv = void 0), d.encryptBlock(t, 0);
|
|
@@ -3805,7 +3805,7 @@ function Br() {
|
|
|
3805
3805
|
g[b + o] ^= t[o];
|
|
3806
3806
|
}
|
|
3807
3807
|
});
|
|
3808
|
-
return l.Decryptor =
|
|
3808
|
+
return l.Decryptor = u, l;
|
|
3809
3809
|
})(), i.mode.OFB;
|
|
3810
3810
|
});
|
|
3811
3811
|
})(Ei)), Ei.exports;
|
|
@@ -3813,18 +3813,18 @@ function Br() {
|
|
|
3813
3813
|
var Ni = { exports: {} }, Hr = Ni.exports, en;
|
|
3814
3814
|
function Wr() {
|
|
3815
3815
|
return en || (en = 1, (function(e, n) {
|
|
3816
|
-
(function(i, l,
|
|
3816
|
+
(function(i, l, u) {
|
|
3817
3817
|
e.exports = l(ie(), Ne());
|
|
3818
3818
|
})(Hr, function(i) {
|
|
3819
3819
|
return i.mode.ECB = (function() {
|
|
3820
3820
|
var l = i.lib.BlockCipherMode.extend();
|
|
3821
3821
|
return l.Encryptor = l.extend({
|
|
3822
|
-
processBlock: function(
|
|
3823
|
-
this._cipher.encryptBlock(
|
|
3822
|
+
processBlock: function(u, g) {
|
|
3823
|
+
this._cipher.encryptBlock(u, g);
|
|
3824
3824
|
}
|
|
3825
3825
|
}), l.Decryptor = l.extend({
|
|
3826
|
-
processBlock: function(
|
|
3827
|
-
this._cipher.decryptBlock(
|
|
3826
|
+
processBlock: function(u, g) {
|
|
3827
|
+
this._cipher.decryptBlock(u, g);
|
|
3828
3828
|
}
|
|
3829
3829
|
}), l;
|
|
3830
3830
|
})(), i.mode.ECB;
|
|
@@ -3834,17 +3834,17 @@ function Wr() {
|
|
|
3834
3834
|
var Li = { exports: {} }, zr = Li.exports, an;
|
|
3835
3835
|
function Ir() {
|
|
3836
3836
|
return an || (an = 1, (function(e, n) {
|
|
3837
|
-
(function(i, l,
|
|
3837
|
+
(function(i, l, u) {
|
|
3838
3838
|
e.exports = l(ie(), Ne());
|
|
3839
3839
|
})(zr, function(i) {
|
|
3840
3840
|
return i.pad.AnsiX923 = {
|
|
3841
|
-
pad: function(l,
|
|
3842
|
-
var g = l.sigBytes, b =
|
|
3841
|
+
pad: function(l, u) {
|
|
3842
|
+
var g = l.sigBytes, b = u * 4, d = b - g % b, r = g + d - 1;
|
|
3843
3843
|
l.clamp(), l.words[r >>> 2] |= d << 24 - r % 4 * 8, l.sigBytes += d;
|
|
3844
3844
|
},
|
|
3845
3845
|
unpad: function(l) {
|
|
3846
|
-
var
|
|
3847
|
-
l.sigBytes -=
|
|
3846
|
+
var u = l.words[l.sigBytes - 1 >>> 2] & 255;
|
|
3847
|
+
l.sigBytes -= u;
|
|
3848
3848
|
}
|
|
3849
3849
|
}, i.pad.Ansix923;
|
|
3850
3850
|
});
|
|
@@ -3853,17 +3853,17 @@ function Ir() {
|
|
|
3853
3853
|
var Gi = { exports: {} }, Vr = Gi.exports, tn;
|
|
3854
3854
|
function Zr() {
|
|
3855
3855
|
return tn || (tn = 1, (function(e, n) {
|
|
3856
|
-
(function(i, l,
|
|
3856
|
+
(function(i, l, u) {
|
|
3857
3857
|
e.exports = l(ie(), Ne());
|
|
3858
3858
|
})(Vr, function(i) {
|
|
3859
3859
|
return i.pad.Iso10126 = {
|
|
3860
|
-
pad: function(l,
|
|
3861
|
-
var g =
|
|
3860
|
+
pad: function(l, u) {
|
|
3861
|
+
var g = u * 4, b = g - l.sigBytes % g;
|
|
3862
3862
|
l.concat(i.lib.WordArray.random(b - 1)).concat(i.lib.WordArray.create([b << 24], 1));
|
|
3863
3863
|
},
|
|
3864
3864
|
unpad: function(l) {
|
|
3865
|
-
var
|
|
3866
|
-
l.sigBytes -=
|
|
3865
|
+
var u = l.words[l.sigBytes - 1 >>> 2] & 255;
|
|
3866
|
+
l.sigBytes -= u;
|
|
3867
3867
|
}
|
|
3868
3868
|
}, i.pad.Iso10126;
|
|
3869
3869
|
});
|
|
@@ -3872,12 +3872,12 @@ function Zr() {
|
|
|
3872
3872
|
var Mi = { exports: {} }, Jr = Mi.exports, nn;
|
|
3873
3873
|
function Kr() {
|
|
3874
3874
|
return nn || (nn = 1, (function(e, n) {
|
|
3875
|
-
(function(i, l,
|
|
3875
|
+
(function(i, l, u) {
|
|
3876
3876
|
e.exports = l(ie(), Ne());
|
|
3877
3877
|
})(Jr, function(i) {
|
|
3878
3878
|
return i.pad.Iso97971 = {
|
|
3879
|
-
pad: function(l,
|
|
3880
|
-
l.concat(i.lib.WordArray.create([2147483648], 1)), i.pad.ZeroPadding.pad(l,
|
|
3879
|
+
pad: function(l, u) {
|
|
3880
|
+
l.concat(i.lib.WordArray.create([2147483648], 1)), i.pad.ZeroPadding.pad(l, u);
|
|
3881
3881
|
},
|
|
3882
3882
|
unpad: function(l) {
|
|
3883
3883
|
i.pad.ZeroPadding.unpad(l), l.sigBytes--;
|
|
@@ -3889,17 +3889,17 @@ function Kr() {
|
|
|
3889
3889
|
var Ri = { exports: {} }, qr = Ri.exports, ln;
|
|
3890
3890
|
function $r() {
|
|
3891
3891
|
return ln || (ln = 1, (function(e, n) {
|
|
3892
|
-
(function(i, l,
|
|
3892
|
+
(function(i, l, u) {
|
|
3893
3893
|
e.exports = l(ie(), Ne());
|
|
3894
3894
|
})(qr, function(i) {
|
|
3895
3895
|
return i.pad.ZeroPadding = {
|
|
3896
|
-
pad: function(l,
|
|
3897
|
-
var g =
|
|
3896
|
+
pad: function(l, u) {
|
|
3897
|
+
var g = u * 4;
|
|
3898
3898
|
l.clamp(), l.sigBytes += g - (l.sigBytes % g || g);
|
|
3899
3899
|
},
|
|
3900
3900
|
unpad: function(l) {
|
|
3901
|
-
for (var
|
|
3902
|
-
if (
|
|
3901
|
+
for (var u = l.words, g = l.sigBytes - 1, g = l.sigBytes - 1; g >= 0; g--)
|
|
3902
|
+
if (u[g >>> 2] >>> 24 - g % 4 * 8 & 255) {
|
|
3903
3903
|
l.sigBytes = g + 1;
|
|
3904
3904
|
break;
|
|
3905
3905
|
}
|
|
@@ -3911,7 +3911,7 @@ function $r() {
|
|
|
3911
3911
|
var Pi = { exports: {} }, Qr = Pi.exports, rn;
|
|
3912
3912
|
function jr() {
|
|
3913
3913
|
return rn || (rn = 1, (function(e, n) {
|
|
3914
|
-
(function(i, l,
|
|
3914
|
+
(function(i, l, u) {
|
|
3915
3915
|
e.exports = l(ie(), Ne());
|
|
3916
3916
|
})(Qr, function(i) {
|
|
3917
3917
|
return i.pad.NoPadding = {
|
|
@@ -3926,11 +3926,11 @@ function jr() {
|
|
|
3926
3926
|
var wi = { exports: {} }, Yr = wi.exports, on;
|
|
3927
3927
|
function Xr() {
|
|
3928
3928
|
return on || (on = 1, (function(e, n) {
|
|
3929
|
-
(function(i, l,
|
|
3929
|
+
(function(i, l, u) {
|
|
3930
3930
|
e.exports = l(ie(), Ne());
|
|
3931
3931
|
})(Yr, function(i) {
|
|
3932
3932
|
return (function(l) {
|
|
3933
|
-
var
|
|
3933
|
+
var u = i, g = u.lib, b = g.CipherParams, d = u.enc, r = d.Hex, a = u.format;
|
|
3934
3934
|
a.Hex = {
|
|
3935
3935
|
/**
|
|
3936
3936
|
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
@@ -3973,11 +3973,11 @@ function Xr() {
|
|
|
3973
3973
|
var Fi = { exports: {} }, eo = Fi.exports, sn;
|
|
3974
3974
|
function ao() {
|
|
3975
3975
|
return sn || (sn = 1, (function(e, n) {
|
|
3976
|
-
(function(i, l,
|
|
3976
|
+
(function(i, l, u) {
|
|
3977
3977
|
e.exports = l(ie(), Sa(), Da(), ya(), Ne());
|
|
3978
3978
|
})(eo, function(i) {
|
|
3979
3979
|
return (function() {
|
|
3980
|
-
var l = i,
|
|
3980
|
+
var l = i, u = l.lib, g = u.BlockCipher, b = l.algo, d = [], r = [], a = [], t = [], o = [], s = [], p = [], m = [], c = [], f = [];
|
|
3981
3981
|
(function() {
|
|
3982
3982
|
for (var U = [], C = 0; C < 256; C++)
|
|
3983
3983
|
C < 128 ? U[C] = C << 1 : U[C] = C << 1 ^ 283;
|
|
@@ -3987,7 +3987,7 @@ function ao() {
|
|
|
3987
3987
|
var M = U[v], H = U[M], k = U[H], T = U[D] * 257 ^ D * 16843008;
|
|
3988
3988
|
a[v] = T << 24 | T >>> 8, t[v] = T << 16 | T >>> 16, o[v] = T << 8 | T >>> 24, s[v] = T;
|
|
3989
3989
|
var T = k * 16843009 ^ H * 65537 ^ M * 257 ^ v * 16843008;
|
|
3990
|
-
|
|
3990
|
+
p[D] = T << 24 | T >>> 8, m[D] = T << 16 | T >>> 16, c[D] = T << 8 | T >>> 24, f[D] = T, v ? (v = M ^ U[U[U[k ^ M]]], x ^= U[U[x]]) : v = x = 1;
|
|
3991
3991
|
}
|
|
3992
3992
|
})();
|
|
3993
3993
|
var y = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], _ = b.AES = g.extend({
|
|
@@ -4002,7 +4002,7 @@ function ao() {
|
|
|
4002
4002
|
var U = H[k];
|
|
4003
4003
|
else
|
|
4004
4004
|
var U = H[k - 4];
|
|
4005
|
-
A < 4 || k <= 4 ? T[A] = U : T[A] =
|
|
4005
|
+
A < 4 || k <= 4 ? T[A] = U : T[A] = p[d[U >>> 24]] ^ m[d[U >>> 16 & 255]] ^ c[d[U >>> 8 & 255]] ^ f[d[U & 255]];
|
|
4006
4006
|
}
|
|
4007
4007
|
}
|
|
4008
4008
|
},
|
|
@@ -4011,7 +4011,7 @@ function ao() {
|
|
|
4011
4011
|
},
|
|
4012
4012
|
decryptBlock: function(U, C) {
|
|
4013
4013
|
var v = U[C + 1];
|
|
4014
|
-
U[C + 1] = U[C + 3], U[C + 3] = v, this._doCryptBlock(U, C, this._invKeySchedule,
|
|
4014
|
+
U[C + 1] = U[C + 3], U[C + 3] = v, this._doCryptBlock(U, C, this._invKeySchedule, p, m, c, f, r);
|
|
4015
4015
|
var v = U[C + 1];
|
|
4016
4016
|
U[C + 1] = U[C + 3], U[C + 3] = v;
|
|
4017
4017
|
},
|
|
@@ -4033,11 +4033,11 @@ function ao() {
|
|
|
4033
4033
|
var Ai = { exports: {} }, io = Ai.exports, mn;
|
|
4034
4034
|
function to() {
|
|
4035
4035
|
return mn || (mn = 1, (function(e, n) {
|
|
4036
|
-
(function(i, l,
|
|
4036
|
+
(function(i, l, u) {
|
|
4037
4037
|
e.exports = l(ie(), Sa(), Da(), ya(), Ne());
|
|
4038
4038
|
})(io, function(i) {
|
|
4039
4039
|
return (function() {
|
|
4040
|
-
var l = i,
|
|
4040
|
+
var l = i, u = l.lib, g = u.WordArray, b = u.BlockCipher, d = l.algo, r = [
|
|
4041
4041
|
57,
|
|
4042
4042
|
49,
|
|
4043
4043
|
41,
|
|
@@ -4681,7 +4681,7 @@ function to() {
|
|
|
4681
4681
|
8064,
|
|
4682
4682
|
504,
|
|
4683
4683
|
2147483679
|
|
4684
|
-
],
|
|
4684
|
+
], p = d.DES = b.extend({
|
|
4685
4685
|
_doReset: function() {
|
|
4686
4686
|
for (var y = this._key, _ = y.words, U = [], C = 0; C < 56; C++) {
|
|
4687
4687
|
var v = r[C] - 1;
|
|
@@ -4726,14 +4726,14 @@ function to() {
|
|
|
4726
4726
|
var U = (this._rBlock >>> y ^ this._lBlock) & _;
|
|
4727
4727
|
this._lBlock ^= U, this._rBlock ^= U << y;
|
|
4728
4728
|
}
|
|
4729
|
-
l.DES = b._createHelper(
|
|
4729
|
+
l.DES = b._createHelper(p);
|
|
4730
4730
|
var f = d.TripleDES = b.extend({
|
|
4731
4731
|
_doReset: function() {
|
|
4732
4732
|
var y = this._key, _ = y.words;
|
|
4733
4733
|
if (_.length !== 2 && _.length !== 4 && _.length < 6)
|
|
4734
4734
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
4735
4735
|
var U = _.slice(0, 2), C = _.length < 4 ? _.slice(0, 2) : _.slice(2, 4), v = _.length < 6 ? _.slice(0, 2) : _.slice(4, 6);
|
|
4736
|
-
this._des1 =
|
|
4736
|
+
this._des1 = p.createEncryptor(g.create(U)), this._des2 = p.createEncryptor(g.create(C)), this._des3 = p.createEncryptor(g.create(v));
|
|
4737
4737
|
},
|
|
4738
4738
|
encryptBlock: function(y, _) {
|
|
4739
4739
|
this._des1.encryptBlock(y, _), this._des2.decryptBlock(y, _), this._des3.encryptBlock(y, _);
|
|
@@ -4753,19 +4753,19 @@ function to() {
|
|
|
4753
4753
|
var Oi = { exports: {} }, no = Oi.exports, un;
|
|
4754
4754
|
function lo() {
|
|
4755
4755
|
return un || (un = 1, (function(e, n) {
|
|
4756
|
-
(function(i, l,
|
|
4756
|
+
(function(i, l, u) {
|
|
4757
4757
|
e.exports = l(ie(), Sa(), Da(), ya(), Ne());
|
|
4758
4758
|
})(no, function(i) {
|
|
4759
4759
|
return (function() {
|
|
4760
|
-
var l = i,
|
|
4760
|
+
var l = i, u = l.lib, g = u.StreamCipher, b = l.algo, d = b.RC4 = g.extend({
|
|
4761
4761
|
_doReset: function() {
|
|
4762
|
-
for (var t = this._key, o = t.words, s = t.sigBytes,
|
|
4763
|
-
|
|
4762
|
+
for (var t = this._key, o = t.words, s = t.sigBytes, p = this._S = [], m = 0; m < 256; m++)
|
|
4763
|
+
p[m] = m;
|
|
4764
4764
|
for (var m = 0, c = 0; m < 256; m++) {
|
|
4765
4765
|
var f = m % s, y = o[f >>> 2] >>> 24 - f % 4 * 8 & 255;
|
|
4766
|
-
c = (c +
|
|
4767
|
-
var _ =
|
|
4768
|
-
|
|
4766
|
+
c = (c + p[m] + y) % 256;
|
|
4767
|
+
var _ = p[m];
|
|
4768
|
+
p[m] = p[c], p[c] = _;
|
|
4769
4769
|
}
|
|
4770
4770
|
this._i = this._j = 0;
|
|
4771
4771
|
},
|
|
@@ -4776,12 +4776,12 @@ function lo() {
|
|
|
4776
4776
|
ivSize: 0
|
|
4777
4777
|
});
|
|
4778
4778
|
function r() {
|
|
4779
|
-
for (var t = this._S, o = this._i, s = this._j,
|
|
4779
|
+
for (var t = this._S, o = this._i, s = this._j, p = 0, m = 0; m < 4; m++) {
|
|
4780
4780
|
o = (o + 1) % 256, s = (s + t[o]) % 256;
|
|
4781
4781
|
var c = t[o];
|
|
4782
|
-
t[o] = t[s], t[s] = c,
|
|
4782
|
+
t[o] = t[s], t[s] = c, p |= t[(t[o] + t[s]) % 256] << 24 - m * 8;
|
|
4783
4783
|
}
|
|
4784
|
-
return this._i = o, this._j = s,
|
|
4784
|
+
return this._i = o, this._j = s, p;
|
|
4785
4785
|
}
|
|
4786
4786
|
l.RC4 = g._createHelper(d);
|
|
4787
4787
|
var a = b.RC4Drop = d.extend({
|
|
@@ -4807,13 +4807,13 @@ function lo() {
|
|
|
4807
4807
|
var Bi = { exports: {} }, ro = Bi.exports, pn;
|
|
4808
4808
|
function oo() {
|
|
4809
4809
|
return pn || (pn = 1, (function(e, n) {
|
|
4810
|
-
(function(i, l,
|
|
4810
|
+
(function(i, l, u) {
|
|
4811
4811
|
e.exports = l(ie(), Sa(), Da(), ya(), Ne());
|
|
4812
4812
|
})(ro, function(i) {
|
|
4813
4813
|
return (function() {
|
|
4814
|
-
var l = i,
|
|
4814
|
+
var l = i, u = l.lib, g = u.StreamCipher, b = l.algo, d = [], r = [], a = [], t = b.Rabbit = g.extend({
|
|
4815
4815
|
_doReset: function() {
|
|
4816
|
-
for (var s = this._key.words,
|
|
4816
|
+
for (var s = this._key.words, p = this.cfg.iv, m = 0; m < 4; m++)
|
|
4817
4817
|
s[m] = (s[m] << 8 | s[m] >>> 24) & 16711935 | (s[m] << 24 | s[m] >>> 8) & 4278255360;
|
|
4818
4818
|
var c = this._X = [
|
|
4819
4819
|
s[0],
|
|
@@ -4839,28 +4839,28 @@ function oo() {
|
|
|
4839
4839
|
o.call(this);
|
|
4840
4840
|
for (var m = 0; m < 8; m++)
|
|
4841
4841
|
f[m] ^= c[m + 4 & 7];
|
|
4842
|
-
if (
|
|
4843
|
-
var y =
|
|
4842
|
+
if (p) {
|
|
4843
|
+
var y = p.words, _ = y[0], U = y[1], C = (_ << 8 | _ >>> 24) & 16711935 | (_ << 24 | _ >>> 8) & 4278255360, v = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360, x = C >>> 16 | v & 4294901760, D = v << 16 | C & 65535;
|
|
4844
4844
|
f[0] ^= C, f[1] ^= x, f[2] ^= v, f[3] ^= D, f[4] ^= C, f[5] ^= x, f[6] ^= v, f[7] ^= D;
|
|
4845
4845
|
for (var m = 0; m < 4; m++)
|
|
4846
4846
|
o.call(this);
|
|
4847
4847
|
}
|
|
4848
4848
|
},
|
|
4849
|
-
_doProcessBlock: function(s,
|
|
4849
|
+
_doProcessBlock: function(s, p) {
|
|
4850
4850
|
var m = this._X;
|
|
4851
4851
|
o.call(this), d[0] = m[0] ^ m[5] >>> 16 ^ m[3] << 16, d[1] = m[2] ^ m[7] >>> 16 ^ m[5] << 16, d[2] = m[4] ^ m[1] >>> 16 ^ m[7] << 16, d[3] = m[6] ^ m[3] >>> 16 ^ m[1] << 16;
|
|
4852
4852
|
for (var c = 0; c < 4; c++)
|
|
4853
|
-
d[c] = (d[c] << 8 | d[c] >>> 24) & 16711935 | (d[c] << 24 | d[c] >>> 8) & 4278255360, s[
|
|
4853
|
+
d[c] = (d[c] << 8 | d[c] >>> 24) & 16711935 | (d[c] << 24 | d[c] >>> 8) & 4278255360, s[p + c] ^= d[c];
|
|
4854
4854
|
},
|
|
4855
4855
|
blockSize: 128 / 32,
|
|
4856
4856
|
ivSize: 64 / 32
|
|
4857
4857
|
});
|
|
4858
4858
|
function o() {
|
|
4859
|
-
for (var s = this._X,
|
|
4860
|
-
r[m] =
|
|
4861
|
-
|
|
4859
|
+
for (var s = this._X, p = this._C, m = 0; m < 8; m++)
|
|
4860
|
+
r[m] = p[m];
|
|
4861
|
+
p[0] = p[0] + 1295307597 + this._b | 0, p[1] = p[1] + 3545052371 + (p[0] >>> 0 < r[0] >>> 0 ? 1 : 0) | 0, p[2] = p[2] + 886263092 + (p[1] >>> 0 < r[1] >>> 0 ? 1 : 0) | 0, p[3] = p[3] + 1295307597 + (p[2] >>> 0 < r[2] >>> 0 ? 1 : 0) | 0, p[4] = p[4] + 3545052371 + (p[3] >>> 0 < r[3] >>> 0 ? 1 : 0) | 0, p[5] = p[5] + 886263092 + (p[4] >>> 0 < r[4] >>> 0 ? 1 : 0) | 0, p[6] = p[6] + 1295307597 + (p[5] >>> 0 < r[5] >>> 0 ? 1 : 0) | 0, p[7] = p[7] + 3545052371 + (p[6] >>> 0 < r[6] >>> 0 ? 1 : 0) | 0, this._b = p[7] >>> 0 < r[7] >>> 0 ? 1 : 0;
|
|
4862
4862
|
for (var m = 0; m < 8; m++) {
|
|
4863
|
-
var c = s[m] +
|
|
4863
|
+
var c = s[m] + p[m], f = c & 65535, y = c >>> 16, _ = ((f * f >>> 17) + f * y >>> 15) + y * y, U = ((c & 4294901760) * c | 0) + ((c & 65535) * c | 0);
|
|
4864
4864
|
a[m] = _ ^ U;
|
|
4865
4865
|
}
|
|
4866
4866
|
s[0] = a[0] + (a[7] << 16 | a[7] >>> 16) + (a[6] << 16 | a[6] >>> 16) | 0, s[1] = a[1] + (a[0] << 8 | a[0] >>> 24) + a[7] | 0, s[2] = a[2] + (a[1] << 16 | a[1] >>> 16) + (a[0] << 16 | a[0] >>> 16) | 0, s[3] = a[3] + (a[2] << 8 | a[2] >>> 24) + a[1] | 0, s[4] = a[4] + (a[3] << 16 | a[3] >>> 16) + (a[2] << 16 | a[2] >>> 16) | 0, s[5] = a[5] + (a[4] << 8 | a[4] >>> 24) + a[3] | 0, s[6] = a[6] + (a[5] << 16 | a[5] >>> 16) + (a[4] << 16 | a[4] >>> 16) | 0, s[7] = a[7] + (a[6] << 8 | a[6] >>> 24) + a[5] | 0;
|
|
@@ -4873,13 +4873,13 @@ function oo() {
|
|
|
4873
4873
|
var Hi = { exports: {} }, so = Hi.exports, gn;
|
|
4874
4874
|
function mo() {
|
|
4875
4875
|
return gn || (gn = 1, (function(e, n) {
|
|
4876
|
-
(function(i, l,
|
|
4876
|
+
(function(i, l, u) {
|
|
4877
4877
|
e.exports = l(ie(), Sa(), Da(), ya(), Ne());
|
|
4878
4878
|
})(so, function(i) {
|
|
4879
4879
|
return (function() {
|
|
4880
|
-
var l = i,
|
|
4880
|
+
var l = i, u = l.lib, g = u.StreamCipher, b = l.algo, d = [], r = [], a = [], t = b.RabbitLegacy = g.extend({
|
|
4881
4881
|
_doReset: function() {
|
|
4882
|
-
var s = this._key.words,
|
|
4882
|
+
var s = this._key.words, p = this.cfg.iv, m = this._X = [
|
|
4883
4883
|
s[0],
|
|
4884
4884
|
s[3] << 16 | s[2] >>> 16,
|
|
4885
4885
|
s[1],
|
|
@@ -4903,28 +4903,28 @@ function mo() {
|
|
|
4903
4903
|
o.call(this);
|
|
4904
4904
|
for (var f = 0; f < 8; f++)
|
|
4905
4905
|
c[f] ^= m[f + 4 & 7];
|
|
4906
|
-
if (
|
|
4907
|
-
var y =
|
|
4906
|
+
if (p) {
|
|
4907
|
+
var y = p.words, _ = y[0], U = y[1], C = (_ << 8 | _ >>> 24) & 16711935 | (_ << 24 | _ >>> 8) & 4278255360, v = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360, x = C >>> 16 | v & 4294901760, D = v << 16 | C & 65535;
|
|
4908
4908
|
c[0] ^= C, c[1] ^= x, c[2] ^= v, c[3] ^= D, c[4] ^= C, c[5] ^= x, c[6] ^= v, c[7] ^= D;
|
|
4909
4909
|
for (var f = 0; f < 4; f++)
|
|
4910
4910
|
o.call(this);
|
|
4911
4911
|
}
|
|
4912
4912
|
},
|
|
4913
|
-
_doProcessBlock: function(s,
|
|
4913
|
+
_doProcessBlock: function(s, p) {
|
|
4914
4914
|
var m = this._X;
|
|
4915
4915
|
o.call(this), d[0] = m[0] ^ m[5] >>> 16 ^ m[3] << 16, d[1] = m[2] ^ m[7] >>> 16 ^ m[5] << 16, d[2] = m[4] ^ m[1] >>> 16 ^ m[7] << 16, d[3] = m[6] ^ m[3] >>> 16 ^ m[1] << 16;
|
|
4916
4916
|
for (var c = 0; c < 4; c++)
|
|
4917
|
-
d[c] = (d[c] << 8 | d[c] >>> 24) & 16711935 | (d[c] << 24 | d[c] >>> 8) & 4278255360, s[
|
|
4917
|
+
d[c] = (d[c] << 8 | d[c] >>> 24) & 16711935 | (d[c] << 24 | d[c] >>> 8) & 4278255360, s[p + c] ^= d[c];
|
|
4918
4918
|
},
|
|
4919
4919
|
blockSize: 128 / 32,
|
|
4920
4920
|
ivSize: 64 / 32
|
|
4921
4921
|
});
|
|
4922
4922
|
function o() {
|
|
4923
|
-
for (var s = this._X,
|
|
4924
|
-
r[m] =
|
|
4925
|
-
|
|
4923
|
+
for (var s = this._X, p = this._C, m = 0; m < 8; m++)
|
|
4924
|
+
r[m] = p[m];
|
|
4925
|
+
p[0] = p[0] + 1295307597 + this._b | 0, p[1] = p[1] + 3545052371 + (p[0] >>> 0 < r[0] >>> 0 ? 1 : 0) | 0, p[2] = p[2] + 886263092 + (p[1] >>> 0 < r[1] >>> 0 ? 1 : 0) | 0, p[3] = p[3] + 1295307597 + (p[2] >>> 0 < r[2] >>> 0 ? 1 : 0) | 0, p[4] = p[4] + 3545052371 + (p[3] >>> 0 < r[3] >>> 0 ? 1 : 0) | 0, p[5] = p[5] + 886263092 + (p[4] >>> 0 < r[4] >>> 0 ? 1 : 0) | 0, p[6] = p[6] + 1295307597 + (p[5] >>> 0 < r[5] >>> 0 ? 1 : 0) | 0, p[7] = p[7] + 3545052371 + (p[6] >>> 0 < r[6] >>> 0 ? 1 : 0) | 0, this._b = p[7] >>> 0 < r[7] >>> 0 ? 1 : 0;
|
|
4926
4926
|
for (var m = 0; m < 8; m++) {
|
|
4927
|
-
var c = s[m] +
|
|
4927
|
+
var c = s[m] + p[m], f = c & 65535, y = c >>> 16, _ = ((f * f >>> 17) + f * y >>> 15) + y * y, U = ((c & 4294901760) * c | 0) + ((c & 65535) * c | 0);
|
|
4928
4928
|
a[m] = _ ^ U;
|
|
4929
4929
|
}
|
|
4930
4930
|
s[0] = a[0] + (a[7] << 16 | a[7] >>> 16) + (a[6] << 16 | a[6] >>> 16) | 0, s[1] = a[1] + (a[0] << 8 | a[0] >>> 24) + a[7] | 0, s[2] = a[2] + (a[1] << 16 | a[1] >>> 16) + (a[0] << 16 | a[0] >>> 16) | 0, s[3] = a[3] + (a[2] << 8 | a[2] >>> 24) + a[1] | 0, s[4] = a[4] + (a[3] << 16 | a[3] >>> 16) + (a[2] << 16 | a[2] >>> 16) | 0, s[5] = a[5] + (a[4] << 8 | a[4] >>> 24) + a[3] | 0, s[6] = a[6] + (a[5] << 16 | a[5] >>> 16) + (a[4] << 16 | a[4] >>> 16) | 0, s[7] = a[7] + (a[6] << 8 | a[6] >>> 24) + a[5] | 0;
|
|
@@ -4937,11 +4937,11 @@ function mo() {
|
|
|
4937
4937
|
var Wi = { exports: {} }, uo = Wi.exports, dn;
|
|
4938
4938
|
function po() {
|
|
4939
4939
|
return dn || (dn = 1, (function(e, n) {
|
|
4940
|
-
(function(i, l,
|
|
4940
|
+
(function(i, l, u) {
|
|
4941
4941
|
e.exports = l(ie(), Sa(), Da(), ya(), Ne());
|
|
4942
4942
|
})(uo, function(i) {
|
|
4943
4943
|
return (function() {
|
|
4944
|
-
var l = i,
|
|
4944
|
+
var l = i, u = l.lib, g = u.BlockCipher, b = l.algo;
|
|
4945
4945
|
const d = 16, r = [
|
|
4946
4946
|
608135816,
|
|
4947
4947
|
2242054355,
|
|
@@ -6009,7 +6009,7 @@ function po() {
|
|
|
6009
6009
|
U = U ^ f.pbox[x], C = o(f, U) ^ C, v = U, U = C, C = v;
|
|
6010
6010
|
return v = U, U = C, C = v, C = C ^ f.pbox[d], U = U ^ f.pbox[d + 1], { left: U, right: C };
|
|
6011
6011
|
}
|
|
6012
|
-
function
|
|
6012
|
+
function p(f, y, _) {
|
|
6013
6013
|
let U = y, C = _, v;
|
|
6014
6014
|
for (let x = d + 1; x > 1; --x)
|
|
6015
6015
|
U = U ^ f.pbox[x], C = o(f, U) ^ C, v = U, U = C, C = v;
|
|
@@ -6044,7 +6044,7 @@ function po() {
|
|
|
6044
6044
|
f[y] = _.left, f[y + 1] = _.right;
|
|
6045
6045
|
},
|
|
6046
6046
|
decryptBlock: function(f, y) {
|
|
6047
|
-
var _ =
|
|
6047
|
+
var _ = p(t, f[y], f[y + 1]);
|
|
6048
6048
|
f[y] = _.left, f[y + 1] = _.right;
|
|
6049
6049
|
},
|
|
6050
6050
|
blockSize: 64 / 32,
|
|
@@ -6059,7 +6059,7 @@ function po() {
|
|
|
6059
6059
|
var go = ri.exports, cn;
|
|
6060
6060
|
function co() {
|
|
6061
6061
|
return cn || (cn = 1, (function(e, n) {
|
|
6062
|
-
(function(i, l,
|
|
6062
|
+
(function(i, l, u) {
|
|
6063
6063
|
e.exports = l(ie(), Ki(), mr(), pr(), Sa(), cr(), Da(), Xn(), dt(), br(), el(), hr(), kr(), Sr(), ct(), Nr(), ya(), Ne(), Rr(), wr(), Ar(), Br(), Wr(), Ir(), Zr(), Kr(), $r(), jr(), Xr(), ao(), to(), lo(), oo(), mo(), po());
|
|
6064
6064
|
})(go, function(i) {
|
|
6065
6065
|
return i;
|
|
@@ -6071,11 +6071,11 @@ const va = /* @__PURE__ */ gt(al), _a = (e) => {
|
|
|
6071
6071
|
const n = "mySecretPassphrase", i = va.lib.WordArray.random(16), l = va.PBKDF2(n, i, {
|
|
6072
6072
|
keySize: 128 / 32,
|
|
6073
6073
|
iterations: 1e3
|
|
6074
|
-
}),
|
|
6074
|
+
}), u = va.AES.encrypt(e, l, {
|
|
6075
6075
|
iv: i,
|
|
6076
6076
|
mode: va.mode.CBC,
|
|
6077
6077
|
padding: va.pad.Pkcs7
|
|
6078
|
-
}), g = i.toString(va.enc.Base64), b = va.enc.Base64.stringify(
|
|
6078
|
+
}), g = i.toString(va.enc.Base64), b = va.enc.Base64.stringify(u.ciphertext);
|
|
6079
6079
|
return g + ":" + b;
|
|
6080
6080
|
}, ue = () => {
|
|
6081
6081
|
const { client: e, formDataClient: n } = oe(), i = I(
|
|
@@ -6088,7 +6088,7 @@ const va = /* @__PURE__ */ gt(al), _a = (e) => {
|
|
|
6088
6088
|
return W;
|
|
6089
6089
|
},
|
|
6090
6090
|
[e]
|
|
6091
|
-
), l = I(async () => e.get("/member/getMemberInfo"), [e]),
|
|
6091
|
+
), l = I(async () => e.get("/member/getMemberInfo"), [e]), u = I(async () => await e.get("/member/getGameList"), [e]), g = I(async () => await e.get("/member/getNowCurrencyExchange"), [e]), b = I(async () => await e.get("member/getFavoriteGame"), [e]), d = I(
|
|
6092
6092
|
async (S) => {
|
|
6093
6093
|
const { account: G, password: L, trans_code: B } = S;
|
|
6094
6094
|
return await e.post("/login", {
|
|
@@ -6141,7 +6141,7 @@ const va = /* @__PURE__ */ gt(al), _a = (e) => {
|
|
|
6141
6141
|
});
|
|
6142
6142
|
},
|
|
6143
6143
|
[e]
|
|
6144
|
-
),
|
|
6144
|
+
), p = I(
|
|
6145
6145
|
async (S) => {
|
|
6146
6146
|
const { oldPwd: G, newPwd: L } = S;
|
|
6147
6147
|
return await e.post("/passwordReset", {
|
|
@@ -6319,7 +6319,7 @@ const va = /* @__PURE__ */ gt(al), _a = (e) => {
|
|
|
6319
6319
|
return {
|
|
6320
6320
|
machineLoginApi: i,
|
|
6321
6321
|
userInfoApi: l,
|
|
6322
|
-
userGameListApi:
|
|
6322
|
+
userGameListApi: u,
|
|
6323
6323
|
userFavoriteGameApi: b,
|
|
6324
6324
|
userCurrencyExchangeApi: g,
|
|
6325
6325
|
userLoginApi: d,
|
|
@@ -6328,7 +6328,7 @@ const va = /* @__PURE__ */ gt(al), _a = (e) => {
|
|
|
6328
6328
|
rankingGameApi: t,
|
|
6329
6329
|
userSignUpApi: o,
|
|
6330
6330
|
updateUserInfoApi: s,
|
|
6331
|
-
resetUserPasswordApi:
|
|
6331
|
+
resetUserPasswordApi: p,
|
|
6332
6332
|
setUserTransactionPasswordApi: m,
|
|
6333
6333
|
resetUserTransactionPasswordApi: c,
|
|
6334
6334
|
userRebateApi: y,
|
|
@@ -6349,7 +6349,7 @@ const va = /* @__PURE__ */ gt(al), _a = (e) => {
|
|
|
6349
6349
|
verifyResetActionApi: f
|
|
6350
6350
|
};
|
|
6351
6351
|
}, hm = ({ otherQueryKey: e = [], options: n = {} } = {}) => {
|
|
6352
|
-
const { userCurrencyExchangeApi: i } = ue(), { getToken: l } = oe(), { enabled:
|
|
6352
|
+
const { userCurrencyExchangeApi: i } = ue(), { getToken: l } = oe(), { enabled: u, ...g } = n, d = !!l?.() && (u ? u.every((r) => r) : !0);
|
|
6353
6353
|
return Hn({
|
|
6354
6354
|
queries: [
|
|
6355
6355
|
{
|
|
@@ -6367,14 +6367,14 @@ const va = /* @__PURE__ */ gt(al), _a = (e) => {
|
|
|
6367
6367
|
trigger: n = [],
|
|
6368
6368
|
enabled: i = !0
|
|
6369
6369
|
} = {}) => {
|
|
6370
|
-
const { getToken: l } = oe(),
|
|
6370
|
+
const { getToken: l } = oe(), u = l?.(), { userInfoApi: g } = ue();
|
|
6371
6371
|
return Hn({
|
|
6372
6372
|
queries: [
|
|
6373
6373
|
{
|
|
6374
6374
|
queryKey: ["getMemberInfo", ...n],
|
|
6375
6375
|
queryFn: async () => await g(),
|
|
6376
6376
|
refetchInterval: e,
|
|
6377
|
-
enabled: !!
|
|
6377
|
+
enabled: !!u && i
|
|
6378
6378
|
}
|
|
6379
6379
|
]
|
|
6380
6380
|
});
|
|
@@ -6383,7 +6383,7 @@ const va = /* @__PURE__ */ gt(al), _a = (e) => {
|
|
|
6383
6383
|
userInfoApi: n,
|
|
6384
6384
|
userFavoriteGameApi: i,
|
|
6385
6385
|
userGameListApi: l,
|
|
6386
|
-
userCurrencyExchangeApi:
|
|
6386
|
+
userCurrencyExchangeApi: u
|
|
6387
6387
|
} = ue(), g = j({
|
|
6388
6388
|
queryKey: ["getMemInfo"],
|
|
6389
6389
|
queryFn: async () => n(),
|
|
@@ -6398,7 +6398,7 @@ const va = /* @__PURE__ */ gt(al), _a = (e) => {
|
|
|
6398
6398
|
enabled: e && g.isSuccess && b.isSuccess
|
|
6399
6399
|
}), r = j({
|
|
6400
6400
|
queryKey: ["getUserCurrencyExchange"],
|
|
6401
|
-
queryFn: async () =>
|
|
6401
|
+
queryFn: async () => u(),
|
|
6402
6402
|
enabled: e && g.isSuccess && b.isSuccess && d.isSuccess
|
|
6403
6403
|
});
|
|
6404
6404
|
return [
|
|
@@ -6433,7 +6433,7 @@ const va = /* @__PURE__ */ gt(al), _a = (e) => {
|
|
|
6433
6433
|
});
|
|
6434
6434
|
},
|
|
6435
6435
|
[e, i]
|
|
6436
|
-
),
|
|
6436
|
+
), u = I(
|
|
6437
6437
|
async (b) => {
|
|
6438
6438
|
const {
|
|
6439
6439
|
startDate: d = we().add(-1, "day").format("YYYY-MM-DD 12:00:00"),
|
|
@@ -6472,7 +6472,7 @@ const va = /* @__PURE__ */ gt(al), _a = (e) => {
|
|
|
6472
6472
|
},
|
|
6473
6473
|
[e]
|
|
6474
6474
|
);
|
|
6475
|
-
return { playGameApi: l, betRecordApi:
|
|
6475
|
+
return { playGameApi: l, betRecordApi: u, betRecordDetailApi: g };
|
|
6476
6476
|
}, fo = ({ options: e, formData: n } = {}) => {
|
|
6477
6477
|
const { betRecordApi: i } = ft();
|
|
6478
6478
|
return j({
|
|
@@ -6525,47 +6525,47 @@ var yo = {
|
|
|
6525
6525
|
}
|
|
6526
6526
|
};
|
|
6527
6527
|
function nt(e, n) {
|
|
6528
|
-
function i(
|
|
6528
|
+
function i(u, g, b) {
|
|
6529
6529
|
if (!(typeof document > "u")) {
|
|
6530
|
-
b = ii({}, n, b), typeof b.expires == "number" && (b.expires = new Date(Date.now() + b.expires * 864e5)), b.expires && (b.expires = b.expires.toUTCString()),
|
|
6530
|
+
b = ii({}, n, b), typeof b.expires == "number" && (b.expires = new Date(Date.now() + b.expires * 864e5)), b.expires && (b.expires = b.expires.toUTCString()), u = encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
6531
6531
|
var d = "";
|
|
6532
6532
|
for (var r in b)
|
|
6533
6533
|
b[r] && (d += "; " + r, b[r] !== !0 && (d += "=" + b[r].split(";")[0]));
|
|
6534
|
-
return document.cookie =
|
|
6534
|
+
return document.cookie = u + "=" + e.write(g, u) + d;
|
|
6535
6535
|
}
|
|
6536
6536
|
}
|
|
6537
|
-
function l(
|
|
6538
|
-
if (!(typeof document > "u" || arguments.length && !
|
|
6537
|
+
function l(u) {
|
|
6538
|
+
if (!(typeof document > "u" || arguments.length && !u)) {
|
|
6539
6539
|
for (var g = document.cookie ? document.cookie.split("; ") : [], b = {}, d = 0; d < g.length; d++) {
|
|
6540
6540
|
var r = g[d].split("="), a = r.slice(1).join("=");
|
|
6541
6541
|
try {
|
|
6542
6542
|
var t = decodeURIComponent(r[0]);
|
|
6543
|
-
if (b[t] = e.read(a, t),
|
|
6543
|
+
if (b[t] = e.read(a, t), u === t)
|
|
6544
6544
|
break;
|
|
6545
6545
|
} catch {
|
|
6546
6546
|
}
|
|
6547
6547
|
}
|
|
6548
|
-
return
|
|
6548
|
+
return u ? b[u] : b;
|
|
6549
6549
|
}
|
|
6550
6550
|
}
|
|
6551
6551
|
return Object.create(
|
|
6552
6552
|
{
|
|
6553
6553
|
set: i,
|
|
6554
6554
|
get: l,
|
|
6555
|
-
remove: function(
|
|
6555
|
+
remove: function(u, g) {
|
|
6556
6556
|
i(
|
|
6557
|
-
|
|
6557
|
+
u,
|
|
6558
6558
|
"",
|
|
6559
6559
|
ii({}, g, {
|
|
6560
6560
|
expires: -1
|
|
6561
6561
|
})
|
|
6562
6562
|
);
|
|
6563
6563
|
},
|
|
6564
|
-
withAttributes: function(
|
|
6565
|
-
return nt(this.converter, ii({}, this.attributes,
|
|
6564
|
+
withAttributes: function(u) {
|
|
6565
|
+
return nt(this.converter, ii({}, this.attributes, u));
|
|
6566
6566
|
},
|
|
6567
|
-
withConverter: function(
|
|
6568
|
-
return nt(ii({}, this.converter,
|
|
6567
|
+
withConverter: function(u) {
|
|
6568
|
+
return nt(ii({}, this.converter, u), this.attributes);
|
|
6569
6569
|
}
|
|
6570
6570
|
},
|
|
6571
6571
|
{
|
|
@@ -6591,14 +6591,14 @@ function ra() {
|
|
|
6591
6591
|
(function(g) {
|
|
6592
6592
|
g[g.UNINSTANTIATED = -1] = "UNINSTANTIATED", g[g.CONNECTING = 0] = "CONNECTING", g[g.OPEN = 1] = "OPEN", g[g.CLOSING = 2] = "CLOSING", g[g.CLOSED = 3] = "CLOSED";
|
|
6593
6593
|
})(l || (e.ReadyState = l = {}));
|
|
6594
|
-
var
|
|
6594
|
+
var u = function() {
|
|
6595
6595
|
try {
|
|
6596
6596
|
return "EventSource" in globalThis;
|
|
6597
6597
|
} catch {
|
|
6598
6598
|
return !1;
|
|
6599
6599
|
}
|
|
6600
6600
|
};
|
|
6601
|
-
e.isReactNative = typeof navigator < "u" && navigator.product === "ReactNative", e.isEventSourceSupported = !e.isReactNative &&
|
|
6601
|
+
e.isReactNative = typeof navigator < "u" && navigator.product === "ReactNative", e.isEventSourceSupported = !e.isReactNative && u();
|
|
6602
6602
|
})(Yi)), Yi;
|
|
6603
6603
|
}
|
|
6604
6604
|
var qa = {}, Xi = {}, _n;
|
|
@@ -6619,30 +6619,30 @@ var ha = {}, sa = {}, yn;
|
|
|
6619
6619
|
function yt() {
|
|
6620
6620
|
if (yn) return sa;
|
|
6621
6621
|
yn = 1, Object.defineProperty(sa, "__esModule", { value: !0 }), sa.setUpSocketIOPing = sa.appendQueryParams = sa.parseSocketIOUrl = void 0;
|
|
6622
|
-
var e = ra(), n = function(
|
|
6623
|
-
if (
|
|
6624
|
-
var g = /^https|wss/.test(
|
|
6622
|
+
var e = ra(), n = function(u) {
|
|
6623
|
+
if (u) {
|
|
6624
|
+
var g = /^https|wss/.test(u), b = u.replace(/^(https?|wss?)(:\/\/)?/, ""), d = b.replace(/\/$/, ""), r = g ? "wss" : "ws";
|
|
6625
6625
|
return "".concat(r, "://").concat(d).concat(e.SOCKET_IO_PATH);
|
|
6626
|
-
} else if (
|
|
6626
|
+
} else if (u === "") {
|
|
6627
6627
|
var g = /^https/.test(window.location.protocol), r = g ? "wss" : "ws", a = window.location.port ? ":".concat(window.location.port) : "";
|
|
6628
6628
|
return "".concat(r, "://").concat(window.location.hostname).concat(a).concat(e.SOCKET_IO_PATH);
|
|
6629
6629
|
}
|
|
6630
|
-
return
|
|
6630
|
+
return u;
|
|
6631
6631
|
};
|
|
6632
6632
|
sa.parseSocketIOUrl = n;
|
|
6633
|
-
var i = function(
|
|
6633
|
+
var i = function(u, g) {
|
|
6634
6634
|
g === void 0 && (g = {});
|
|
6635
|
-
var b = /\?([\w]+=[\w]+)/, d = b.test(
|
|
6635
|
+
var b = /\?([\w]+=[\w]+)/, d = b.test(u), r = "".concat(Object.entries(g).reduce(function(a, t) {
|
|
6636
6636
|
var o = t[0], s = t[1];
|
|
6637
6637
|
return a + "".concat(o, "=").concat(s, "&");
|
|
6638
6638
|
}, "").slice(0, -1));
|
|
6639
|
-
return "".concat(
|
|
6639
|
+
return "".concat(u).concat(d ? "&" : "?").concat(r);
|
|
6640
6640
|
};
|
|
6641
6641
|
sa.appendQueryParams = i;
|
|
6642
|
-
var l = function(
|
|
6642
|
+
var l = function(u, g) {
|
|
6643
6643
|
g === void 0 && (g = e.SOCKET_IO_PING_INTERVAL);
|
|
6644
6644
|
var b = function() {
|
|
6645
|
-
return
|
|
6645
|
+
return u(e.SOCKET_IO_PING_CODE);
|
|
6646
6646
|
};
|
|
6647
6647
|
return window.setInterval(b, g);
|
|
6648
6648
|
};
|
|
@@ -6654,13 +6654,13 @@ function il() {
|
|
|
6654
6654
|
Un = 1, Object.defineProperty(ti, "__esModule", { value: !0 }), ti.heartbeat = i;
|
|
6655
6655
|
var e = ra();
|
|
6656
6656
|
function n(l) {
|
|
6657
|
-
return Array.isArray(l) ? l.reduce(function(
|
|
6658
|
-
return
|
|
6657
|
+
return Array.isArray(l) ? l.reduce(function(u, g) {
|
|
6658
|
+
return u.current > g.current ? u : g;
|
|
6659
6659
|
}).current : l.current;
|
|
6660
6660
|
}
|
|
6661
|
-
function i(l,
|
|
6662
|
-
var b = g || {}, d = b.interval, r = d === void 0 ? e.DEFAULT_HEARTBEAT.interval : d, a = b.timeout, t = a === void 0 ? e.DEFAULT_HEARTBEAT.timeout : a, o = b.message, s = o === void 0 ? e.DEFAULT_HEARTBEAT.message : o,
|
|
6663
|
-
var f = Date.now(), y = n(
|
|
6661
|
+
function i(l, u, g) {
|
|
6662
|
+
var b = g || {}, d = b.interval, r = d === void 0 ? e.DEFAULT_HEARTBEAT.interval : d, a = b.timeout, t = a === void 0 ? e.DEFAULT_HEARTBEAT.timeout : a, o = b.message, s = o === void 0 ? e.DEFAULT_HEARTBEAT.message : o, p = Math.max(100, r / 10), m = Date.now(), c = setInterval(function() {
|
|
6663
|
+
var f = Date.now(), y = n(u);
|
|
6664
6664
|
if (y + t <= f)
|
|
6665
6665
|
console.warn("Heartbeat timed out, closing connection, last message received ".concat(f - y, "ms ago, last ping sent ").concat(f - m, "ms ago")), l.close();
|
|
6666
6666
|
else if (y + r <= f && m + r <= f)
|
|
@@ -6669,7 +6669,7 @@ function il() {
|
|
|
6669
6669
|
} catch (_) {
|
|
6670
6670
|
console.error("Heartbeat failed, closing connection", _ instanceof Error ? _.message : _), l.close();
|
|
6671
6671
|
}
|
|
6672
|
-
},
|
|
6672
|
+
}, p);
|
|
6673
6673
|
return l.addEventListener("close", function() {
|
|
6674
6674
|
clearInterval(c);
|
|
6675
6675
|
}), function() {
|
|
@@ -6685,11 +6685,11 @@ function Ut() {
|
|
|
6685
6685
|
return (0, e.hasSubscribers)(r) ? Array.from(n[r]) : i;
|
|
6686
6686
|
};
|
|
6687
6687
|
e.getSubscribers = l;
|
|
6688
|
-
var
|
|
6688
|
+
var u = function(r) {
|
|
6689
6689
|
var a;
|
|
6690
6690
|
return ((a = n[r]) === null || a === void 0 ? void 0 : a.size) > 0;
|
|
6691
6691
|
};
|
|
6692
|
-
e.hasSubscribers =
|
|
6692
|
+
e.hasSubscribers = u;
|
|
6693
6693
|
var g = function(r, a) {
|
|
6694
6694
|
n[r] = n[r] || /* @__PURE__ */ new Set(), n[r].add(a);
|
|
6695
6695
|
};
|
|
@@ -6713,12 +6713,12 @@ function bt() {
|
|
|
6713
6713
|
if (Cn) return $a;
|
|
6714
6714
|
Cn = 1, Object.defineProperty($a, "__esModule", { value: !0 }), $a.assertIsWebSocket = i, $a.resetGlobalState = l;
|
|
6715
6715
|
var e = _t(), n = Ut();
|
|
6716
|
-
function i(
|
|
6717
|
-
if (!g && !(
|
|
6716
|
+
function i(u, g) {
|
|
6717
|
+
if (!g && !(u instanceof WebSocket))
|
|
6718
6718
|
throw new Error("");
|
|
6719
6719
|
}
|
|
6720
|
-
function l(
|
|
6721
|
-
(0, n.resetSubscribers)(
|
|
6720
|
+
function l(u) {
|
|
6721
|
+
(0, n.resetSubscribers)(u), (0, e.resetWebSockets)(u);
|
|
6722
6722
|
}
|
|
6723
6723
|
return $a;
|
|
6724
6724
|
}
|
|
@@ -6728,7 +6728,7 @@ function Uo() {
|
|
|
6728
6728
|
vn = 1;
|
|
6729
6729
|
var e = ha && ha.__assign || function() {
|
|
6730
6730
|
return e = Object.assign || function(t) {
|
|
6731
|
-
for (var o, s = 1,
|
|
6731
|
+
for (var o, s = 1, p = arguments.length; s < p; s++) {
|
|
6732
6732
|
o = arguments[s];
|
|
6733
6733
|
for (var m in o) Object.prototype.hasOwnProperty.call(o, m) && (t[m] = o[m]);
|
|
6734
6734
|
}
|
|
@@ -6736,23 +6736,23 @@ function Uo() {
|
|
|
6736
6736
|
}, e.apply(this, arguments);
|
|
6737
6737
|
};
|
|
6738
6738
|
Object.defineProperty(ha, "__esModule", { value: !0 }), ha.attachListeners = void 0;
|
|
6739
|
-
var n = yt(), i = il(), l = ra(),
|
|
6739
|
+
var n = yt(), i = il(), l = ra(), u = bt(), g = function(t, o, s, p) {
|
|
6740
6740
|
t.onmessage = function(m) {
|
|
6741
6741
|
var c;
|
|
6742
|
-
o.current.onMessage && o.current.onMessage(m), typeof
|
|
6742
|
+
o.current.onMessage && o.current.onMessage(m), typeof p?.current == "number" && (p.current = Date.now()), !(typeof o.current.filter == "function" && o.current.filter(m) !== !0) && (o.current.heartbeat && typeof o.current.heartbeat != "boolean" && ((c = o.current.heartbeat) === null || c === void 0 ? void 0 : c.returnMessage) === m.data || s(m));
|
|
6743
6743
|
};
|
|
6744
|
-
}, b = function(t, o, s,
|
|
6744
|
+
}, b = function(t, o, s, p, m) {
|
|
6745
6745
|
t.onopen = function(c) {
|
|
6746
|
-
if (o.current.onOpen && o.current.onOpen(c),
|
|
6746
|
+
if (o.current.onOpen && o.current.onOpen(c), p.current = 0, s(l.ReadyState.OPEN), o.current.heartbeat && t instanceof WebSocket) {
|
|
6747
6747
|
var f = typeof o.current.heartbeat == "boolean" ? void 0 : o.current.heartbeat;
|
|
6748
6748
|
m.current = Date.now(), (0, i.heartbeat)(t, m, f);
|
|
6749
6749
|
}
|
|
6750
6750
|
};
|
|
6751
|
-
}, d = function(t, o, s,
|
|
6751
|
+
}, d = function(t, o, s, p, m) {
|
|
6752
6752
|
if (l.isEventSourceSupported && t instanceof EventSource)
|
|
6753
6753
|
return function() {
|
|
6754
6754
|
};
|
|
6755
|
-
(0,
|
|
6755
|
+
(0, u.assertIsWebSocket)(t, o.current.skipAssert);
|
|
6756
6756
|
var c;
|
|
6757
6757
|
return t.onclose = function(f) {
|
|
6758
6758
|
var y;
|
|
@@ -6761,7 +6761,7 @@ function Uo() {
|
|
|
6761
6761
|
if (m.current < _) {
|
|
6762
6762
|
var U = typeof o.current.reconnectInterval == "function" ? o.current.reconnectInterval(m.current) : o.current.reconnectInterval;
|
|
6763
6763
|
c = window.setTimeout(function() {
|
|
6764
|
-
m.current++,
|
|
6764
|
+
m.current++, p();
|
|
6765
6765
|
}, U ?? l.DEFAULT_RECONNECT_INTERVAL_MS);
|
|
6766
6766
|
} else
|
|
6767
6767
|
o.current.onReconnectStop && o.current.onReconnectStop(_), console.warn("Max reconnect attempts of ".concat(_, " exceeded"));
|
|
@@ -6769,7 +6769,7 @@ function Uo() {
|
|
|
6769
6769
|
}, function() {
|
|
6770
6770
|
return c && window.clearTimeout(c);
|
|
6771
6771
|
};
|
|
6772
|
-
}, r = function(t, o, s,
|
|
6772
|
+
}, r = function(t, o, s, p, m) {
|
|
6773
6773
|
var c;
|
|
6774
6774
|
return t.onerror = function(f) {
|
|
6775
6775
|
var y;
|
|
@@ -6777,16 +6777,16 @@ function Uo() {
|
|
|
6777
6777
|
if (m.current < ((y = o.current.reconnectAttempts) !== null && y !== void 0 ? y : l.DEFAULT_RECONNECT_LIMIT)) {
|
|
6778
6778
|
var _ = typeof o.current.reconnectInterval == "function" ? o.current.reconnectInterval(m.current) : o.current.reconnectInterval;
|
|
6779
6779
|
c = window.setTimeout(function() {
|
|
6780
|
-
m.current++,
|
|
6780
|
+
m.current++, p();
|
|
6781
6781
|
}, _ ?? l.DEFAULT_RECONNECT_INTERVAL_MS);
|
|
6782
6782
|
} else
|
|
6783
6783
|
o.current.onReconnectStop && o.current.onReconnectStop(o.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(o.current.reconnectAttempts, " exceeded"));
|
|
6784
6784
|
}, function() {
|
|
6785
6785
|
return c && window.clearTimeout(c);
|
|
6786
6786
|
};
|
|
6787
|
-
}, a = function(t, o, s,
|
|
6787
|
+
}, a = function(t, o, s, p, m, c, f) {
|
|
6788
6788
|
var y = o.setLastMessage, _ = o.setReadyState, U, C, v;
|
|
6789
|
-
return s.current.fromSocketIO && (U = (0, n.setUpSocketIOPing)(f)), g(t, s, y, c), b(t, s, _, m, c), C = d(t, s, _,
|
|
6789
|
+
return s.current.fromSocketIO && (U = (0, n.setUpSocketIOPing)(f)), g(t, s, y, c), b(t, s, _, m, c), C = d(t, s, _, p, m), v = r(t, s, _, p, m), function() {
|
|
6790
6790
|
_(l.ReadyState.CLOSING), C(), v(), t.close(), U && clearInterval(U);
|
|
6791
6791
|
};
|
|
6792
6792
|
};
|
|
@@ -6798,37 +6798,37 @@ function bo() {
|
|
|
6798
6798
|
hn = 1;
|
|
6799
6799
|
var e = Ta && Ta.__assign || function() {
|
|
6800
6800
|
return e = Object.assign || function(o) {
|
|
6801
|
-
for (var s,
|
|
6802
|
-
s = arguments[
|
|
6801
|
+
for (var s, p = 1, m = arguments.length; p < m; p++) {
|
|
6802
|
+
s = arguments[p];
|
|
6803
6803
|
for (var c in s) Object.prototype.hasOwnProperty.call(s, c) && (o[c] = s[c]);
|
|
6804
6804
|
}
|
|
6805
6805
|
return o;
|
|
6806
6806
|
}, e.apply(this, arguments);
|
|
6807
6807
|
};
|
|
6808
6808
|
Object.defineProperty(Ta, "__esModule", { value: !0 }), Ta.attachSharedListeners = void 0;
|
|
6809
|
-
var n = _t(), i = ra(), l = Ut(),
|
|
6809
|
+
var n = _t(), i = ra(), l = Ut(), u = yt(), g = il(), b = function(o, s, p) {
|
|
6810
6810
|
o.onmessage = function(m) {
|
|
6811
6811
|
(0, l.getSubscribers)(s).forEach(function(c) {
|
|
6812
6812
|
var f;
|
|
6813
|
-
c.optionsRef.current.onMessage && c.optionsRef.current.onMessage(m), typeof ((f = c?.lastMessageTime) === null || f === void 0 ? void 0 : f.current) == "number" && (c.lastMessageTime.current = Date.now()), !(typeof c.optionsRef.current.filter == "function" && c.optionsRef.current.filter(m) !== !0) && (
|
|
6813
|
+
c.optionsRef.current.onMessage && c.optionsRef.current.onMessage(m), typeof ((f = c?.lastMessageTime) === null || f === void 0 ? void 0 : f.current) == "number" && (c.lastMessageTime.current = Date.now()), !(typeof c.optionsRef.current.filter == "function" && c.optionsRef.current.filter(m) !== !0) && (p && typeof p != "boolean" && p?.returnMessage === m.data || c.setLastMessage(m));
|
|
6814
6814
|
});
|
|
6815
6815
|
};
|
|
6816
|
-
}, d = function(o, s,
|
|
6816
|
+
}, d = function(o, s, p) {
|
|
6817
6817
|
o.onopen = function(m) {
|
|
6818
6818
|
var c = (0, l.getSubscribers)(s);
|
|
6819
6819
|
c.forEach(function(f) {
|
|
6820
|
-
f.reconnectCount.current = 0, f.optionsRef.current.onOpen && f.optionsRef.current.onOpen(m), f.setReadyState(i.ReadyState.OPEN),
|
|
6821
|
-
}),
|
|
6820
|
+
f.reconnectCount.current = 0, f.optionsRef.current.onOpen && f.optionsRef.current.onOpen(m), f.setReadyState(i.ReadyState.OPEN), p && o instanceof WebSocket && (f.lastMessageTime.current = Date.now());
|
|
6821
|
+
}), p && o instanceof WebSocket && (0, g.heartbeat)(o, c.map(function(f) {
|
|
6822
6822
|
return f.lastMessageTime;
|
|
6823
|
-
}), typeof
|
|
6823
|
+
}), typeof p == "boolean" ? void 0 : p);
|
|
6824
6824
|
};
|
|
6825
6825
|
}, r = function(o, s) {
|
|
6826
|
-
o instanceof WebSocket && (o.onclose = function(
|
|
6826
|
+
o instanceof WebSocket && (o.onclose = function(p) {
|
|
6827
6827
|
(0, l.getSubscribers)(s).forEach(function(m) {
|
|
6828
|
-
m.optionsRef.current.onClose && m.optionsRef.current.onClose(
|
|
6828
|
+
m.optionsRef.current.onClose && m.optionsRef.current.onClose(p), m.setReadyState(i.ReadyState.CLOSED);
|
|
6829
6829
|
}), delete n.sharedWebSockets[s], (0, l.getSubscribers)(s).forEach(function(m) {
|
|
6830
6830
|
var c;
|
|
6831
|
-
if (m.optionsRef.current.shouldReconnect && m.optionsRef.current.shouldReconnect(
|
|
6831
|
+
if (m.optionsRef.current.shouldReconnect && m.optionsRef.current.shouldReconnect(p)) {
|
|
6832
6832
|
var f = (c = m.optionsRef.current.reconnectAttempts) !== null && c !== void 0 ? c : i.DEFAULT_RECONNECT_LIMIT;
|
|
6833
6833
|
if (m.reconnectCount.current < f) {
|
|
6834
6834
|
var y = typeof m.optionsRef.current.reconnectInterval == "function" ? m.optionsRef.current.reconnectInterval(m.reconnectCount.current) : m.optionsRef.current.reconnectInterval;
|
|
@@ -6841,14 +6841,14 @@ function bo() {
|
|
|
6841
6841
|
});
|
|
6842
6842
|
});
|
|
6843
6843
|
}, a = function(o, s) {
|
|
6844
|
-
o.onerror = function(
|
|
6844
|
+
o.onerror = function(p) {
|
|
6845
6845
|
(0, l.getSubscribers)(s).forEach(function(m) {
|
|
6846
|
-
m.optionsRef.current.onError && m.optionsRef.current.onError(
|
|
6846
|
+
m.optionsRef.current.onError && m.optionsRef.current.onError(p), i.isEventSourceSupported && o instanceof EventSource && (m.optionsRef.current.onClose && m.optionsRef.current.onClose(e(e({}, p), { code: 1006, reason: "An error occurred with the EventSource: ".concat(p), wasClean: !1 })), m.setReadyState(i.ReadyState.CLOSED));
|
|
6847
6847
|
}), i.isEventSourceSupported && o instanceof EventSource && o.close();
|
|
6848
6848
|
};
|
|
6849
|
-
}, t = function(o, s,
|
|
6849
|
+
}, t = function(o, s, p, m) {
|
|
6850
6850
|
var c;
|
|
6851
|
-
return
|
|
6851
|
+
return p.current.fromSocketIO && (c = (0, u.setUpSocketIOPing)(m)), b(o, s, p.current.heartbeat), r(o, s), d(o, s, p.current.heartbeat), a(o, s), function() {
|
|
6852
6852
|
c && clearInterval(c);
|
|
6853
6853
|
};
|
|
6854
6854
|
};
|
|
@@ -6858,20 +6858,20 @@ var Tn;
|
|
|
6858
6858
|
function Co() {
|
|
6859
6859
|
if (Tn) return qa;
|
|
6860
6860
|
Tn = 1, Object.defineProperty(qa, "__esModule", { value: !0 }), qa.createOrJoinSocket = void 0;
|
|
6861
|
-
var e = _t(), n = ra(), i = Uo(), l = bo(),
|
|
6861
|
+
var e = _t(), n = ra(), i = Uo(), l = bo(), u = Ut(), g = function(d, r, a, t, o) {
|
|
6862
6862
|
return function() {
|
|
6863
|
-
if ((0,
|
|
6863
|
+
if ((0, u.removeSubscriber)(d, r), !(0, u.hasSubscribers)(d)) {
|
|
6864
6864
|
try {
|
|
6865
6865
|
var s = e.sharedWebSockets[d];
|
|
6866
|
-
s instanceof WebSocket && (s.onclose = function(
|
|
6867
|
-
a.current.onClose && a.current.onClose(
|
|
6866
|
+
s instanceof WebSocket && (s.onclose = function(p) {
|
|
6867
|
+
a.current.onClose && a.current.onClose(p), t(n.ReadyState.CLOSED);
|
|
6868
6868
|
}), s.close();
|
|
6869
6869
|
} catch {
|
|
6870
6870
|
}
|
|
6871
6871
|
o && o(), delete e.sharedWebSockets[d];
|
|
6872
6872
|
}
|
|
6873
6873
|
};
|
|
6874
|
-
}, b = function(d, r, a, t, o, s,
|
|
6874
|
+
}, b = function(d, r, a, t, o, s, p, m, c) {
|
|
6875
6875
|
if (!n.isEventSourceSupported && t.current.eventSourceOptions)
|
|
6876
6876
|
throw n.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
|
|
6877
6877
|
if (t.current.share) {
|
|
@@ -6881,18 +6881,18 @@ function Co() {
|
|
|
6881
6881
|
setLastMessage: o,
|
|
6882
6882
|
setReadyState: a,
|
|
6883
6883
|
optionsRef: t,
|
|
6884
|
-
reconnectCount:
|
|
6884
|
+
reconnectCount: p,
|
|
6885
6885
|
lastMessageTime: m,
|
|
6886
6886
|
reconnect: s
|
|
6887
6887
|
};
|
|
6888
|
-
return (0,
|
|
6888
|
+
return (0, u.addSubscriber)(r, y), g(r, y, t, a, f);
|
|
6889
6889
|
} else {
|
|
6890
6890
|
if (d.current = t.current.eventSourceOptions ? new EventSource(r, t.current.eventSourceOptions) : new WebSocket(r, t.current.protocols), a(n.ReadyState.CONNECTING), !d.current)
|
|
6891
6891
|
throw new Error("WebSocket failed to be created");
|
|
6892
6892
|
return (0, i.attachListeners)(d.current, {
|
|
6893
6893
|
setLastMessage: o,
|
|
6894
6894
|
setReadyState: a
|
|
6895
|
-
}, t, s.current,
|
|
6895
|
+
}, t, s.current, p, m, c);
|
|
6896
6896
|
}
|
|
6897
6897
|
};
|
|
6898
6898
|
return qa.createOrJoinSocket = b, qa;
|
|
@@ -6901,12 +6901,12 @@ var ma = {}, kn;
|
|
|
6901
6901
|
function vo() {
|
|
6902
6902
|
return kn || (kn = 1, (function(e) {
|
|
6903
6903
|
var n = ma && ma.__awaiter || function(r, a, t, o) {
|
|
6904
|
-
function s(
|
|
6905
|
-
return
|
|
6906
|
-
m(
|
|
6904
|
+
function s(p) {
|
|
6905
|
+
return p instanceof t ? p : new t(function(m) {
|
|
6906
|
+
m(p);
|
|
6907
6907
|
});
|
|
6908
6908
|
}
|
|
6909
|
-
return new (t || (t = Promise))(function(
|
|
6909
|
+
return new (t || (t = Promise))(function(p, m) {
|
|
6910
6910
|
function c(_) {
|
|
6911
6911
|
try {
|
|
6912
6912
|
y(o.next(_));
|
|
@@ -6922,15 +6922,15 @@ function vo() {
|
|
|
6922
6922
|
}
|
|
6923
6923
|
}
|
|
6924
6924
|
function y(_) {
|
|
6925
|
-
_.done ?
|
|
6925
|
+
_.done ? p(_.value) : s(_.value).then(c, f);
|
|
6926
6926
|
}
|
|
6927
6927
|
y((o = o.apply(r, a || [])).next());
|
|
6928
6928
|
});
|
|
6929
6929
|
}, i = ma && ma.__generator || function(r, a) {
|
|
6930
6930
|
var t = { label: 0, sent: function() {
|
|
6931
|
-
if (
|
|
6932
|
-
return
|
|
6933
|
-
}, trys: [], ops: [] }, o, s,
|
|
6931
|
+
if (p[0] & 1) throw p[1];
|
|
6932
|
+
return p[1];
|
|
6933
|
+
}, trys: [], ops: [] }, o, s, p, m = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
6934
6934
|
return m.next = c(0), m.throw = c(1), m.return = c(2), typeof Symbol == "function" && (m[Symbol.iterator] = function() {
|
|
6935
6935
|
return this;
|
|
6936
6936
|
}), m;
|
|
@@ -6942,11 +6942,11 @@ function vo() {
|
|
|
6942
6942
|
function f(y) {
|
|
6943
6943
|
if (o) throw new TypeError("Generator is already executing.");
|
|
6944
6944
|
for (; m && (m = 0, y[0] && (t = 0)), t; ) try {
|
|
6945
|
-
if (o = 1, s && (
|
|
6946
|
-
switch (s = 0,
|
|
6945
|
+
if (o = 1, s && (p = y[0] & 2 ? s.return : y[0] ? s.throw || ((p = s.return) && p.call(s), 0) : s.next) && !(p = p.call(s, y[1])).done) return p;
|
|
6946
|
+
switch (s = 0, p && (y = [y[0] & 2, p.value]), y[0]) {
|
|
6947
6947
|
case 0:
|
|
6948
6948
|
case 1:
|
|
6949
|
-
|
|
6949
|
+
p = y;
|
|
6950
6950
|
break;
|
|
6951
6951
|
case 4:
|
|
6952
6952
|
return t.label++, { value: y[1], done: !1 };
|
|
@@ -6957,48 +6957,48 @@ function vo() {
|
|
|
6957
6957
|
y = t.ops.pop(), t.trys.pop();
|
|
6958
6958
|
continue;
|
|
6959
6959
|
default:
|
|
6960
|
-
if (
|
|
6960
|
+
if (p = t.trys, !(p = p.length > 0 && p[p.length - 1]) && (y[0] === 6 || y[0] === 2)) {
|
|
6961
6961
|
t = 0;
|
|
6962
6962
|
continue;
|
|
6963
6963
|
}
|
|
6964
|
-
if (y[0] === 3 && (!
|
|
6964
|
+
if (y[0] === 3 && (!p || y[1] > p[0] && y[1] < p[3])) {
|
|
6965
6965
|
t.label = y[1];
|
|
6966
6966
|
break;
|
|
6967
6967
|
}
|
|
6968
|
-
if (y[0] === 6 && t.label <
|
|
6969
|
-
t.label =
|
|
6968
|
+
if (y[0] === 6 && t.label < p[1]) {
|
|
6969
|
+
t.label = p[1], p = y;
|
|
6970
6970
|
break;
|
|
6971
6971
|
}
|
|
6972
|
-
if (
|
|
6973
|
-
t.label =
|
|
6972
|
+
if (p && t.label < p[2]) {
|
|
6973
|
+
t.label = p[2], t.ops.push(y);
|
|
6974
6974
|
break;
|
|
6975
6975
|
}
|
|
6976
|
-
|
|
6976
|
+
p[2] && t.ops.pop(), t.trys.pop();
|
|
6977
6977
|
continue;
|
|
6978
6978
|
}
|
|
6979
6979
|
y = a.call(r, t);
|
|
6980
6980
|
} catch (_) {
|
|
6981
6981
|
y = [6, _], s = 0;
|
|
6982
6982
|
} finally {
|
|
6983
|
-
o =
|
|
6983
|
+
o = p = 0;
|
|
6984
6984
|
}
|
|
6985
6985
|
if (y[0] & 5) throw y[1];
|
|
6986
6986
|
return { value: y[0] ? y[1] : void 0, done: !0 };
|
|
6987
6987
|
}
|
|
6988
6988
|
}, l = ma && ma.__spreadArray || function(r, a, t) {
|
|
6989
|
-
if (t || arguments.length === 2) for (var o = 0, s = a.length,
|
|
6990
|
-
(
|
|
6991
|
-
return r.concat(
|
|
6989
|
+
if (t || arguments.length === 2) for (var o = 0, s = a.length, p; o < s; o++)
|
|
6990
|
+
(p || !(o in a)) && (p || (p = Array.prototype.slice.call(a, 0, o)), p[o] = a[o]);
|
|
6991
|
+
return r.concat(p || Array.prototype.slice.call(a));
|
|
6992
6992
|
};
|
|
6993
6993
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getUrl = void 0;
|
|
6994
|
-
var
|
|
6994
|
+
var u = yt(), g = ra(), b = function(r) {
|
|
6995
6995
|
return new Promise(function(a) {
|
|
6996
6996
|
return window.setTimeout(a, r);
|
|
6997
6997
|
});
|
|
6998
6998
|
}, d = function(r, a) {
|
|
6999
6999
|
for (var t = [], o = 2; o < arguments.length; o++)
|
|
7000
7000
|
t[o - 2] = arguments[o];
|
|
7001
|
-
return n(void 0, l([r, a], t, !0), void 0, function(s,
|
|
7001
|
+
return n(void 0, l([r, a], t, !0), void 0, function(s, p, m) {
|
|
7002
7002
|
var c, f, y, _, U, C, v, x;
|
|
7003
7003
|
return m === void 0 && (m = 0), i(this, function(D) {
|
|
7004
7004
|
switch (D.label) {
|
|
@@ -7010,11 +7010,11 @@ function vo() {
|
|
|
7010
7010
|
case 2:
|
|
7011
7011
|
return c = D.sent(), [3, 9];
|
|
7012
7012
|
case 3:
|
|
7013
|
-
return D.sent(),
|
|
7013
|
+
return D.sent(), p.current.retryOnError ? (f = (C = p.current.reconnectAttempts) !== null && C !== void 0 ? C : g.DEFAULT_RECONNECT_LIMIT, m < f ? (y = typeof p.current.reconnectInterval == "function" ? p.current.reconnectInterval(m) : p.current.reconnectInterval, [4, b(y ?? g.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
|
|
7014
7014
|
case 4:
|
|
7015
|
-
return D.sent(), [2, (0, e.getUrl)(s,
|
|
7015
|
+
return D.sent(), [2, (0, e.getUrl)(s, p, m + 1)];
|
|
7016
7016
|
case 5:
|
|
7017
|
-
return (x = (v =
|
|
7017
|
+
return (x = (v = p.current).onReconnectStop) === null || x === void 0 || x.call(v, m), [2, null];
|
|
7018
7018
|
case 6:
|
|
7019
7019
|
return [3, 8];
|
|
7020
7020
|
case 7:
|
|
@@ -7026,7 +7026,7 @@ function vo() {
|
|
|
7026
7026
|
case 10:
|
|
7027
7027
|
c = s, D.label = 11;
|
|
7028
7028
|
case 11:
|
|
7029
|
-
return _ =
|
|
7029
|
+
return _ = p.current.fromSocketIO ? (0, u.parseSocketIOUrl)(c) : c, U = p.current.queryParams ? (0, u.appendQueryParams)(_, p.current.queryParams) : _, [2, U];
|
|
7030
7030
|
}
|
|
7031
7031
|
});
|
|
7032
7032
|
});
|
|
@@ -7040,13 +7040,13 @@ function ho() {
|
|
|
7040
7040
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.websocketWrapper = void 0;
|
|
7041
7041
|
var n = function(i, l) {
|
|
7042
7042
|
return new Proxy(i, {
|
|
7043
|
-
get: function(
|
|
7044
|
-
var b =
|
|
7043
|
+
get: function(u, g) {
|
|
7044
|
+
var b = u[g];
|
|
7045
7045
|
return g === "reconnect" ? l : typeof b == "function" ? (console.error("Calling methods directly on the websocket is not supported at this moment. You must use the methods returned by useWebSocket."), function() {
|
|
7046
7046
|
}) : b;
|
|
7047
7047
|
},
|
|
7048
|
-
set: function(
|
|
7049
|
-
return /^on/.test(g) ? (console.warn("The websocket's event handlers should be defined through the options object passed into useWebSocket."), !1) : (
|
|
7048
|
+
set: function(u, g, b) {
|
|
7049
|
+
return /^on/.test(g) ? (console.warn("The websocket's event handlers should be defined through the options object passed into useWebSocket."), !1) : (u[g] = b, !0);
|
|
7050
7050
|
}
|
|
7051
7051
|
});
|
|
7052
7052
|
};
|
|
@@ -7059,13 +7059,13 @@ function Ct() {
|
|
|
7059
7059
|
Sn = 1;
|
|
7060
7060
|
var e = Ze && Ze.__assign || function() {
|
|
7061
7061
|
return e = Object.assign || function(s) {
|
|
7062
|
-
for (var
|
|
7063
|
-
|
|
7064
|
-
for (var f in
|
|
7062
|
+
for (var p, m = 1, c = arguments.length; m < c; m++) {
|
|
7063
|
+
p = arguments[m];
|
|
7064
|
+
for (var f in p) Object.prototype.hasOwnProperty.call(p, f) && (s[f] = p[f]);
|
|
7065
7065
|
}
|
|
7066
7066
|
return s;
|
|
7067
7067
|
}, e.apply(this, arguments);
|
|
7068
|
-
}, n = Ze && Ze.__awaiter || function(s,
|
|
7068
|
+
}, n = Ze && Ze.__awaiter || function(s, p, m, c) {
|
|
7069
7069
|
function f(y) {
|
|
7070
7070
|
return y instanceof m ? y : new m(function(_) {
|
|
7071
7071
|
_(y);
|
|
@@ -7089,9 +7089,9 @@ function Ct() {
|
|
|
7089
7089
|
function v(x) {
|
|
7090
7090
|
x.done ? y(x.value) : f(x.value).then(U, C);
|
|
7091
7091
|
}
|
|
7092
|
-
v((c = c.apply(s,
|
|
7092
|
+
v((c = c.apply(s, p || [])).next());
|
|
7093
7093
|
});
|
|
7094
|
-
}, i = Ze && Ze.__generator || function(s,
|
|
7094
|
+
}, i = Ze && Ze.__generator || function(s, p) {
|
|
7095
7095
|
var m = { label: 0, sent: function() {
|
|
7096
7096
|
if (y[0] & 1) throw y[1];
|
|
7097
7097
|
return y[1];
|
|
@@ -7141,7 +7141,7 @@ function Ct() {
|
|
|
7141
7141
|
y[2] && m.ops.pop(), m.trys.pop();
|
|
7142
7142
|
continue;
|
|
7143
7143
|
}
|
|
7144
|
-
v =
|
|
7144
|
+
v = p.call(s, m);
|
|
7145
7145
|
} catch (x) {
|
|
7146
7146
|
v = [6, x], f = 0;
|
|
7147
7147
|
} finally {
|
|
@@ -7154,32 +7154,32 @@ function Ct() {
|
|
|
7154
7154
|
return s && s.__esModule ? s : { default: s };
|
|
7155
7155
|
};
|
|
7156
7156
|
Object.defineProperty(Ze, "__esModule", { value: !0 }), Ze.useWebSocket = void 0;
|
|
7157
|
-
var
|
|
7158
|
-
|
|
7159
|
-
var c = (0,
|
|
7160
|
-
if (!
|
|
7157
|
+
var u = de, g = Vl, b = ra(), d = Co(), r = vo(), a = l(ho()), t = bt(), o = function(s, p, m) {
|
|
7158
|
+
p === void 0 && (p = b.DEFAULT_OPTIONS), m === void 0 && (m = !0);
|
|
7159
|
+
var c = (0, u.useState)(null), f = c[0], y = c[1], _ = (0, u.useState)({}), U = _[0], C = _[1], v = (0, u.useMemo)(function() {
|
|
7160
|
+
if (!p.disableJson && f)
|
|
7161
7161
|
try {
|
|
7162
7162
|
return JSON.parse(f.data);
|
|
7163
7163
|
} catch {
|
|
7164
7164
|
return b.UNPARSABLE_JSON_OBJECT;
|
|
7165
7165
|
}
|
|
7166
7166
|
return null;
|
|
7167
|
-
}, [f,
|
|
7168
|
-
}), H = (0,
|
|
7169
|
-
O.current =
|
|
7170
|
-
var w = x.current && U[x.current] !== void 0 ? U[x.current] : s !== null && m === !0 ? b.ReadyState.CONNECTING : b.ReadyState.UNINSTANTIATED, R =
|
|
7167
|
+
}, [f, p.disableJson]), x = (0, u.useRef)(null), D = (0, u.useRef)(null), M = (0, u.useRef)(function() {
|
|
7168
|
+
}), H = (0, u.useRef)(0), k = (0, u.useRef)(Date.now()), T = (0, u.useRef)([]), A = (0, u.useRef)(null), O = (0, u.useRef)(p);
|
|
7169
|
+
O.current = p;
|
|
7170
|
+
var w = x.current && U[x.current] !== void 0 ? U[x.current] : s !== null && m === !0 ? b.ReadyState.CONNECTING : b.ReadyState.UNINSTANTIATED, R = p.queryParams ? JSON.stringify(p.queryParams) : null, S = (0, u.useCallback)(function(B, W) {
|
|
7171
7171
|
var N;
|
|
7172
7172
|
if (W === void 0 && (W = !0), b.isEventSourceSupported && D.current instanceof EventSource) {
|
|
7173
7173
|
console.warn("Unable to send a message from an eventSource");
|
|
7174
7174
|
return;
|
|
7175
7175
|
}
|
|
7176
7176
|
((N = D.current) === null || N === void 0 ? void 0 : N.readyState) === b.ReadyState.OPEN ? ((0, t.assertIsWebSocket)(D.current, O.current.skipAssert), D.current.send(B)) : W && T.current.push(B);
|
|
7177
|
-
}, []), G = (0,
|
|
7177
|
+
}, []), G = (0, u.useCallback)(function(B, W) {
|
|
7178
7178
|
W === void 0 && (W = !0), S(JSON.stringify(B), W);
|
|
7179
|
-
}, [S]), L = (0,
|
|
7179
|
+
}, [S]), L = (0, u.useCallback)(function() {
|
|
7180
7180
|
return O.current.share !== !0 || b.isEventSourceSupported && D.current instanceof EventSource ? D.current : (A.current === null && D.current && ((0, t.assertIsWebSocket)(D.current, O.current.skipAssert), A.current = (0, a.default)(D.current, M)), A.current);
|
|
7181
7181
|
}, []);
|
|
7182
|
-
return (0,
|
|
7182
|
+
return (0, u.useEffect)(function() {
|
|
7183
7183
|
if (s !== null && m === !0) {
|
|
7184
7184
|
var B, W = !1, N = !0, E = function() {
|
|
7185
7185
|
return n(void 0, void 0, void 0, function() {
|
|
@@ -7224,7 +7224,7 @@ function Ct() {
|
|
|
7224
7224
|
var P;
|
|
7225
7225
|
return e(e({}, F), x.current && (P = {}, P[x.current] = b.ReadyState.CLOSED, P));
|
|
7226
7226
|
}));
|
|
7227
|
-
}, [s, m, R, S]), (0,
|
|
7227
|
+
}, [s, m, R, S]), (0, u.useEffect)(function() {
|
|
7228
7228
|
w === b.ReadyState.OPEN && T.current.splice(0).forEach(function(B) {
|
|
7229
7229
|
S(B);
|
|
7230
7230
|
});
|
|
@@ -7253,17 +7253,17 @@ function To() {
|
|
|
7253
7253
|
}, e.apply(this, arguments);
|
|
7254
7254
|
};
|
|
7255
7255
|
Object.defineProperty(ka, "__esModule", { value: !0 }), ka.useSocketIO = void 0;
|
|
7256
|
-
var n = de, i = Ct(), l = ra(),
|
|
7256
|
+
var n = de, i = Ct(), l = ra(), u = {
|
|
7257
7257
|
type: "empty",
|
|
7258
7258
|
payload: null
|
|
7259
7259
|
}, g = function(d) {
|
|
7260
7260
|
if (!d || !d.data)
|
|
7261
|
-
return
|
|
7261
|
+
return u;
|
|
7262
7262
|
var r = d.data.match(/\[.*]/);
|
|
7263
7263
|
if (!r)
|
|
7264
|
-
return
|
|
7264
|
+
return u;
|
|
7265
7265
|
var a = JSON.parse(r);
|
|
7266
|
-
return !Array.isArray(a) || !a[1] ?
|
|
7266
|
+
return !Array.isArray(a) || !a[1] ? u : {
|
|
7267
7267
|
type: a[0],
|
|
7268
7268
|
payload: a[1]
|
|
7269
7269
|
};
|
|
@@ -7271,12 +7271,12 @@ function To() {
|
|
|
7271
7271
|
r === void 0 && (r = l.DEFAULT_OPTIONS), a === void 0 && (a = !0);
|
|
7272
7272
|
var t = (0, n.useMemo)(function() {
|
|
7273
7273
|
return e(e({}, r), { fromSocketIO: !0 });
|
|
7274
|
-
}, []), o = (0, i.useWebSocket)(d, t, a), s = o.sendMessage,
|
|
7274
|
+
}, []), o = (0, i.useWebSocket)(d, t, a), s = o.sendMessage, p = o.sendJsonMessage, m = o.lastMessage, c = o.readyState, f = o.getWebSocket, y = (0, n.useMemo)(function() {
|
|
7275
7275
|
return g(m);
|
|
7276
7276
|
}, [m]);
|
|
7277
7277
|
return {
|
|
7278
7278
|
sendMessage: s,
|
|
7279
|
-
sendJsonMessage:
|
|
7279
|
+
sendJsonMessage: p,
|
|
7280
7280
|
lastMessage: y,
|
|
7281
7281
|
lastJsonMessage: y,
|
|
7282
7282
|
readyState: c,
|
|
@@ -7306,17 +7306,17 @@ function ko() {
|
|
|
7306
7306
|
return r;
|
|
7307
7307
|
};
|
|
7308
7308
|
Object.defineProperty(ua, "__esModule", { value: !0 }), ua.useEventSource = void 0;
|
|
7309
|
-
var i = de, l = Ct(),
|
|
7310
|
-
d === void 0 && (d =
|
|
7309
|
+
var i = de, l = Ct(), u = ra(), g = function(b, d, r) {
|
|
7310
|
+
d === void 0 && (d = u.DEFAULT_EVENT_SOURCE_OPTIONS);
|
|
7311
7311
|
var a = d.withCredentials, t = d.events, o = n(d, ["withCredentials", "events"]);
|
|
7312
7312
|
r === void 0 && (r = !0);
|
|
7313
7313
|
var s = e(e({}, o), { eventSourceOptions: {
|
|
7314
7314
|
withCredentials: a
|
|
7315
|
-
} }),
|
|
7316
|
-
t && (
|
|
7315
|
+
} }), p = (0, i.useRef)(u.EMPTY_EVENT_HANDLERS);
|
|
7316
|
+
t && (p.current = t);
|
|
7317
7317
|
var m = (0, l.useWebSocket)(b, s, r), c = m.lastMessage, f = m.readyState, y = m.getWebSocket;
|
|
7318
7318
|
return (0, i.useEffect)(function() {
|
|
7319
|
-
c?.type && Object.entries(
|
|
7319
|
+
c?.type && Object.entries(p.current).forEach(function(_) {
|
|
7320
7320
|
var U = _[0], C = _[1];
|
|
7321
7321
|
U === c.type && C(c);
|
|
7322
7322
|
});
|
|
@@ -7344,9 +7344,9 @@ function xo() {
|
|
|
7344
7344
|
Object.defineProperty(e, "ReadyState", { enumerable: !0, get: function() {
|
|
7345
7345
|
return l.ReadyState;
|
|
7346
7346
|
} });
|
|
7347
|
-
var
|
|
7347
|
+
var u = ko();
|
|
7348
7348
|
Object.defineProperty(e, "useEventSource", { enumerable: !0, get: function() {
|
|
7349
|
-
return
|
|
7349
|
+
return u.useEventSource;
|
|
7350
7350
|
} });
|
|
7351
7351
|
var g = bt();
|
|
7352
7352
|
Object.defineProperty(e, "resetGlobalState", { enumerable: !0, get: function() {
|
|
@@ -7360,13 +7360,13 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7360
7360
|
isTestFunction: n = !1,
|
|
7361
7361
|
isTransferMode: i = !1,
|
|
7362
7362
|
isInGameBox: l = !1,
|
|
7363
|
-
currentGamePlatform:
|
|
7363
|
+
currentGamePlatform: u = ""
|
|
7364
7364
|
}) => {
|
|
7365
7365
|
const { store: g, lng: b } = oe(), { isReady: d, setAsReady: r, isPending: a, setAsPending: t } = Vn(), o = $e(b), { mutateAsync: s } = Bo();
|
|
7366
7366
|
return !e || !n || !i ? { handleTransferInGame: () => {
|
|
7367
7367
|
} } : { handleTransferInGame: async () => {
|
|
7368
7368
|
console.log("執行遊戲內轉帳"), l && await s({
|
|
7369
|
-
platform:
|
|
7369
|
+
platform: u
|
|
7370
7370
|
}).then((m) => {
|
|
7371
7371
|
const { code: c, request_id: f } = m;
|
|
7372
7372
|
switch (c) {
|
|
@@ -7405,7 +7405,7 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7405
7405
|
const { client: e } = oe(), n = I(async () => {
|
|
7406
7406
|
const { data: d } = await e.get("/carousels");
|
|
7407
7407
|
return d;
|
|
7408
|
-
}, [e]), i = I(async () => await e.get("/marquees"), [e]), l = I(async () => await e.get("/notification"), [e]),
|
|
7408
|
+
}, [e]), i = I(async () => await e.get("/marquees"), [e]), l = I(async () => await e.get("/notification"), [e]), u = I(
|
|
7409
7409
|
async (d) => await e.put(`/notification/${d}/read`),
|
|
7410
7410
|
[e]
|
|
7411
7411
|
), g = I(
|
|
@@ -7433,7 +7433,7 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7433
7433
|
commonCarouselApi: n,
|
|
7434
7434
|
commonMarqueeApi: i,
|
|
7435
7435
|
commonInboxApi: l,
|
|
7436
|
-
commonReadInboxApi:
|
|
7436
|
+
commonReadInboxApi: u,
|
|
7437
7437
|
verifyPhoneBarApi: g,
|
|
7438
7438
|
verifyDonationCodeApi: b
|
|
7439
7439
|
};
|
|
@@ -7532,8 +7532,8 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7532
7532
|
queryKey: ["checkUserWager"],
|
|
7533
7533
|
queryFn: async () => i(),
|
|
7534
7534
|
select: (l) => {
|
|
7535
|
-
const { data:
|
|
7536
|
-
return qe(
|
|
7535
|
+
const { data: u } = l;
|
|
7536
|
+
return qe(u?.base, {
|
|
7537
7537
|
currency: n
|
|
7538
7538
|
}) || {};
|
|
7539
7539
|
},
|
|
@@ -7649,7 +7649,7 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7649
7649
|
userBindCard: {}
|
|
7650
7650
|
}
|
|
7651
7651
|
} = {}) => {
|
|
7652
|
-
const n = No({ options: e.login }), i = Lo({ options: e.logout }), l = Go({ options: e.register }),
|
|
7652
|
+
const n = No({ options: e.login }), i = Lo({ options: e.logout }), l = Go({ options: e.register }), u = Ro({ options: e.updateUserInfo }), g = Mo({
|
|
7653
7653
|
options: e.toggleFavoriteGame
|
|
7654
7654
|
}), b = Po({
|
|
7655
7655
|
options: e.resetUserPassword
|
|
@@ -7662,7 +7662,7 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7662
7662
|
login: n,
|
|
7663
7663
|
logout: i,
|
|
7664
7664
|
register: l,
|
|
7665
|
-
updateUserInfo:
|
|
7665
|
+
updateUserInfo: u,
|
|
7666
7666
|
toggleFavoriteGame: g,
|
|
7667
7667
|
resetUserPassword: b,
|
|
7668
7668
|
setUserTransactionPassword: d,
|
|
@@ -7689,7 +7689,7 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7689
7689
|
socketHandlers: n = {},
|
|
7690
7690
|
options: i = {},
|
|
7691
7691
|
memberInfo: l = {},
|
|
7692
|
-
transferInGamingConfig:
|
|
7692
|
+
transferInGamingConfig: u = {
|
|
7693
7693
|
enableTransferInGaming: !1,
|
|
7694
7694
|
isTransferMode: !1,
|
|
7695
7695
|
isInGameBox: !1,
|
|
@@ -7698,10 +7698,10 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7698
7698
|
enableNotification: g = !1,
|
|
7699
7699
|
disabledLineAutoRegister: b = !1
|
|
7700
7700
|
}) => {
|
|
7701
|
-
const { store: d, lng: r } = oe(), a = pt(), { isReady: t, setAsReady: o, isPending: s, setAsPending:
|
|
7701
|
+
const { store: d, lng: r } = oe(), a = pt(), { isReady: t, setAsReady: o, isPending: s, setAsPending: p } = Vn(), m = $e(r), c = ee(!1), f = ee(n), y = re(l, "uid", null);
|
|
7702
7702
|
re(l, "testFunction", 0);
|
|
7703
7703
|
const _ = new URLSearchParams(window.location.search), U = re(
|
|
7704
|
-
|
|
7704
|
+
u,
|
|
7705
7705
|
"enableTransferInGaming",
|
|
7706
7706
|
!1
|
|
7707
7707
|
), { mutateAsync: C } = tl({
|
|
@@ -7723,9 +7723,9 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7723
7723
|
}), { handleTransferInGame: x } = Eo({
|
|
7724
7724
|
enable: U,
|
|
7725
7725
|
isTestFunction: !0,
|
|
7726
|
-
isTransferMode: re(
|
|
7727
|
-
isInGameBox: re(
|
|
7728
|
-
currentGamePlatform: re(
|
|
7726
|
+
isTransferMode: re(u, "isTransferMode", !1),
|
|
7727
|
+
isInGameBox: re(u, "isInGameBox", !1),
|
|
7728
|
+
currentGamePlatform: re(u, "currentGamePlatform", "")
|
|
7729
7729
|
}), {
|
|
7730
7730
|
sendMessage: D,
|
|
7731
7731
|
// 發送普通訊息
|
|
@@ -7935,7 +7935,7 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7935
7935
|
});
|
|
7936
7936
|
},
|
|
7937
7937
|
[e]
|
|
7938
|
-
),
|
|
7938
|
+
), u = I(
|
|
7939
7939
|
async (b = {}) => {
|
|
7940
7940
|
const { currency: d, event_uid: r } = b || {};
|
|
7941
7941
|
return await e.post("/event/checkMemberEventsStatus", {
|
|
@@ -7954,27 +7954,27 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
7954
7954
|
return {
|
|
7955
7955
|
eventListApi: n,
|
|
7956
7956
|
checkCurrentEventProgessApi: i,
|
|
7957
|
-
checkEventStatusApi:
|
|
7957
|
+
checkEventStatusApi: u,
|
|
7958
7958
|
redeemEventRewardApi: l,
|
|
7959
7959
|
settleEventApi: g
|
|
7960
7960
|
};
|
|
7961
7961
|
}, Vo = ({ paramsData: e, options: n } = {}) => {
|
|
7962
|
-
const { store: i, lng: l, data2URL:
|
|
7962
|
+
const { store: i, lng: l, data2URL: u } = oe(), { eventListApi: g } = Ya(), b = i?.getState()?.isWalletCurrency || i?.getState()?.currency?.currentCurrency || "TWD", d = $e(l);
|
|
7963
7963
|
return j({
|
|
7964
7964
|
queryKey: ["eventList", e],
|
|
7965
7965
|
queryFn: () => g({ paramsData: e }),
|
|
7966
7966
|
select: (r) => {
|
|
7967
7967
|
const { data: a } = r;
|
|
7968
7968
|
return Be(a, (o) => {
|
|
7969
|
-
const { events_attributes: s } = o,
|
|
7969
|
+
const { events_attributes: s } = o, p = qe(
|
|
7970
7970
|
s,
|
|
7971
7971
|
(v) => v.attribute_currency === b
|
|
7972
|
-
) || s[0], m = re(
|
|
7972
|
+
) || s[0], m = re(p, "rewards", {}), c = re(o, "carousels.[0]", {}), f = qe(c.carousels_lang, (v) => v.lang === d) || c?.carousels_lang?.[0], y = {
|
|
7973
7973
|
...c,
|
|
7974
7974
|
currentLngCarousel: {
|
|
7975
7975
|
...f,
|
|
7976
|
-
carouselCurrentLanguagePCImageUrl: `${
|
|
7977
|
-
carouselCurrentLanguageMBImageUrl: `${
|
|
7976
|
+
carouselCurrentLanguagePCImageUrl: `${u}/carousels/${f?.image_pc}`,
|
|
7977
|
+
carouselCurrentLanguageMBImageUrl: `${u}/carousels/${f?.image_mobile}`,
|
|
7978
7978
|
carouselCurrentLanguageS3PCImageUrl: `${Xe}/carousels/${f?.image_pc}`,
|
|
7979
7979
|
carouselCurrentLanguageS3MBImageUrl: `${Xe}/carousels/${f?.image_mobile}`
|
|
7980
7980
|
}
|
|
@@ -8029,13 +8029,13 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
8029
8029
|
lastSettlementDate: o.last_settlement_date
|
|
8030
8030
|
//最後一次結算日期
|
|
8031
8031
|
}, U = {
|
|
8032
|
-
isActive:
|
|
8032
|
+
isActive: p.attribute_is_active === 1,
|
|
8033
8033
|
//是否啟用
|
|
8034
|
-
currencyCode:
|
|
8034
|
+
currencyCode: p.attribute_currency,
|
|
8035
8035
|
//幣別代碼
|
|
8036
|
-
value:
|
|
8036
|
+
value: p.attribute_value,
|
|
8037
8037
|
//數值
|
|
8038
|
-
eventUid:
|
|
8038
|
+
eventUid: p.event_uid
|
|
8039
8039
|
//活動UID
|
|
8040
8040
|
}, C = {
|
|
8041
8041
|
baseValue: m.base_value,
|
|
@@ -8126,10 +8126,10 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
8126
8126
|
return j({
|
|
8127
8127
|
queryKey: ["getCarouselList"],
|
|
8128
8128
|
queryFn: async () => {
|
|
8129
|
-
const
|
|
8130
|
-
return
|
|
8129
|
+
const u = window.carousels_list;
|
|
8130
|
+
return u || await i();
|
|
8131
8131
|
},
|
|
8132
|
-
select: (
|
|
8132
|
+
select: (u) => u.map((b) => {
|
|
8133
8133
|
const { carousels_lang: d } = b, r = d?.find((a) => a.lang === l) || d?.[0];
|
|
8134
8134
|
return {
|
|
8135
8135
|
...b,
|
|
@@ -8151,81 +8151,305 @@ const Do = /* @__PURE__ */ gt(So), Eo = ({
|
|
|
8151
8151
|
return l || await n();
|
|
8152
8152
|
},
|
|
8153
8153
|
select: (l) => {
|
|
8154
|
-
const
|
|
8155
|
-
return Be(
|
|
8154
|
+
const u = la(l) ? l : l.Marquees;
|
|
8155
|
+
return Be(u, (b) => b[i] || b["en-US"]);
|
|
8156
8156
|
}
|
|
8157
8157
|
});
|
|
8158
|
-
}, Vm = ({ options: e } = {}) => {
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
}
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8158
|
+
}, Vm = ({ options: e } = {}) => (ue(), j({
|
|
8159
|
+
queryKey: ["rankingGame"],
|
|
8160
|
+
queryFn: async () => ({
|
|
8161
|
+
data: [
|
|
8162
|
+
{
|
|
8163
|
+
profit: 1296,
|
|
8164
|
+
memId: "test1234",
|
|
8165
|
+
platform: "JILI2",
|
|
8166
|
+
game_uid: 341,
|
|
8167
|
+
game_code: "10101",
|
|
8168
|
+
game_name_en: "Medusa"
|
|
8169
|
+
},
|
|
8170
|
+
{
|
|
8171
|
+
profit: 1207,
|
|
8172
|
+
memId: "testwinwin01",
|
|
8173
|
+
platform: "BTG",
|
|
8174
|
+
game_uid: 45,
|
|
8175
|
+
game_code: "AB1045",
|
|
8176
|
+
game_name_en: "Wonderland"
|
|
8177
|
+
},
|
|
8178
|
+
{
|
|
8179
|
+
profit: 1179.4,
|
|
8180
|
+
memId: "testwinwin01",
|
|
8181
|
+
platform: "BNG3",
|
|
8182
|
+
game_uid: 9668,
|
|
8183
|
+
game_code: "157",
|
|
8184
|
+
game_name_en: "Book of Sun Multichance"
|
|
8185
|
+
},
|
|
8186
|
+
{
|
|
8187
|
+
game_uid: 568,
|
|
8188
|
+
game_platform_uid: 63,
|
|
8189
|
+
game_code: "live",
|
|
8190
|
+
game_name_en: "MT Live Casino",
|
|
8191
|
+
popularity_ranking: 22,
|
|
8192
|
+
platform: "MT",
|
|
8193
|
+
profit: 55070,
|
|
8194
|
+
memId: "Paul991"
|
|
8195
|
+
},
|
|
8196
|
+
{
|
|
8197
|
+
game_uid: 527,
|
|
8198
|
+
game_platform_uid: 50,
|
|
8199
|
+
game_code: "100",
|
|
8200
|
+
game_name_en: "Roma",
|
|
8201
|
+
popularity_ranking: 21,
|
|
8202
|
+
platform: "RSG",
|
|
8203
|
+
profit: 36679,
|
|
8204
|
+
memId: "SamSinc1994"
|
|
8205
|
+
},
|
|
8206
|
+
{
|
|
8207
|
+
game_uid: 110,
|
|
8208
|
+
game_platform_uid: 51,
|
|
8209
|
+
game_code: "egyptian-mythology",
|
|
8210
|
+
game_name_en: "戰神賽特",
|
|
8211
|
+
popularity_ranking: 18,
|
|
8212
|
+
platform: "ATG",
|
|
8213
|
+
profit: 57035,
|
|
8214
|
+
memId: "Rita7577"
|
|
8215
|
+
},
|
|
8216
|
+
{
|
|
8217
|
+
game_uid: 9809,
|
|
8218
|
+
game_platform_uid: 11,
|
|
8219
|
+
game_code: "live",
|
|
8220
|
+
game_name_en: "DG Live Casino",
|
|
8221
|
+
popularity_ranking: 17,
|
|
8222
|
+
platform: "DG",
|
|
8223
|
+
profit: 43648,
|
|
8224
|
+
memId: "Uma448"
|
|
8225
|
+
},
|
|
8226
|
+
{
|
|
8227
|
+
game_uid: 45,
|
|
8228
|
+
game_platform_uid: 62,
|
|
8229
|
+
game_code: "AB1045",
|
|
8230
|
+
game_name_en: "Wonderland",
|
|
8231
|
+
popularity_ranking: 15,
|
|
8232
|
+
platform: "BTG",
|
|
8233
|
+
profit: 65192,
|
|
8234
|
+
memId: "Ivy990"
|
|
8235
|
+
},
|
|
8236
|
+
{
|
|
8237
|
+
game_uid: 9671,
|
|
8238
|
+
game_platform_uid: 68,
|
|
8239
|
+
game_code: "173",
|
|
8240
|
+
game_name_en: "Sun of Egypt: Hold and Win",
|
|
8241
|
+
popularity_ranking: 13,
|
|
8242
|
+
platform: "BNG3",
|
|
8243
|
+
profit: 62398,
|
|
8244
|
+
memId: "anyBob9986"
|
|
8245
|
+
},
|
|
8246
|
+
{
|
|
8247
|
+
game_uid: 9709,
|
|
8248
|
+
game_platform_uid: 68,
|
|
8249
|
+
game_code: "291",
|
|
8250
|
+
game_name_en: "Dragon Wealth",
|
|
8251
|
+
popularity_ranking: 10,
|
|
8252
|
+
platform: "BNG3",
|
|
8253
|
+
profit: 40892,
|
|
8254
|
+
memId: "DavidChan111"
|
|
8255
|
+
},
|
|
8256
|
+
{
|
|
8257
|
+
game_uid: 528,
|
|
8258
|
+
game_platform_uid: 50,
|
|
8259
|
+
game_code: "11",
|
|
8260
|
+
game_name_en: "Captain Hook",
|
|
8261
|
+
popularity_ranking: 9,
|
|
8262
|
+
platform: "RSG",
|
|
8263
|
+
profit: 67275,
|
|
8264
|
+
memId: "alice1788"
|
|
8265
|
+
},
|
|
8266
|
+
{
|
|
8267
|
+
game_uid: 531,
|
|
8268
|
+
game_platform_uid: 50,
|
|
8269
|
+
game_code: "114",
|
|
8270
|
+
game_name_en: "Caishen Fortunes",
|
|
8271
|
+
popularity_ranking: 9,
|
|
8272
|
+
platform: "RSG",
|
|
8273
|
+
profit: 47046,
|
|
8274
|
+
memId: "Nina753996"
|
|
8275
|
+
},
|
|
8276
|
+
{
|
|
8277
|
+
game_uid: 9810,
|
|
8278
|
+
game_platform_uid: 13,
|
|
8279
|
+
game_code: "live",
|
|
8280
|
+
game_name_en: "Salong Live Casino",
|
|
8281
|
+
popularity_ranking: 8,
|
|
8282
|
+
platform: "SALONG",
|
|
8283
|
+
profit: 36169,
|
|
8284
|
+
memId: "YaraCOCO77"
|
|
8285
|
+
},
|
|
8286
|
+
{
|
|
8287
|
+
game_uid: 111,
|
|
8288
|
+
game_platform_uid: 51,
|
|
8289
|
+
game_code: "son-go-ku",
|
|
8290
|
+
game_name_en: "孫行者",
|
|
8291
|
+
popularity_ranking: 7,
|
|
8292
|
+
platform: "ATG",
|
|
8293
|
+
profit: 90909,
|
|
8294
|
+
memId: "Tai99"
|
|
8295
|
+
},
|
|
8296
|
+
{
|
|
8297
|
+
game_uid: 146,
|
|
8298
|
+
game_platform_uid: 6,
|
|
8299
|
+
game_code: "10034",
|
|
8300
|
+
game_name_en: "神龙传奇",
|
|
8301
|
+
popularity_ranking: 7,
|
|
8302
|
+
platform: "GR",
|
|
8303
|
+
profit: 45475,
|
|
8304
|
+
memId: "Mona0101"
|
|
8305
|
+
},
|
|
8306
|
+
{
|
|
8307
|
+
game_uid: 194,
|
|
8308
|
+
game_platform_uid: 56,
|
|
8309
|
+
game_code: "100",
|
|
8310
|
+
game_name_en: "Candy Bonanza",
|
|
8311
|
+
popularity_ranking: 7,
|
|
8312
|
+
platform: "PG2",
|
|
8313
|
+
profit: 65719,
|
|
8314
|
+
memId: "H911"
|
|
8315
|
+
},
|
|
8316
|
+
{
|
|
8317
|
+
game_uid: 5,
|
|
8318
|
+
game_platform_uid: 62,
|
|
8319
|
+
game_code: "AB1005",
|
|
8320
|
+
game_name_en: "Fighting Academy",
|
|
8321
|
+
popularity_ranking: 7,
|
|
8322
|
+
platform: "BTG",
|
|
8323
|
+
profit: 71034,
|
|
8324
|
+
memId: "H444411111"
|
|
8325
|
+
},
|
|
8326
|
+
{
|
|
8327
|
+
game_uid: 9812,
|
|
8328
|
+
game_platform_uid: 49,
|
|
8329
|
+
game_code: "live",
|
|
8330
|
+
game_name_en: "T9",
|
|
8331
|
+
popularity_ranking: 6,
|
|
8332
|
+
platform: "T9",
|
|
8333
|
+
profit: 49476,
|
|
8334
|
+
memId: "Charlie0807"
|
|
8335
|
+
},
|
|
8336
|
+
{
|
|
8337
|
+
game_uid: 9668,
|
|
8338
|
+
game_platform_uid: 68,
|
|
8339
|
+
game_code: "157",
|
|
8340
|
+
game_name_en: "Book of Sun Multichance",
|
|
8341
|
+
popularity_ranking: 5,
|
|
8342
|
+
platform: "BNG3",
|
|
8343
|
+
profit: 85148,
|
|
8344
|
+
memId: "Karen885"
|
|
8345
|
+
},
|
|
8346
|
+
{
|
|
8347
|
+
game_uid: 313,
|
|
8348
|
+
game_platform_uid: 57,
|
|
8349
|
+
game_code: "10013",
|
|
8350
|
+
game_name_en: "Lucky Ball",
|
|
8351
|
+
popularity_ranking: 5,
|
|
8352
|
+
platform: "JILI2",
|
|
8353
|
+
profit: 48396,
|
|
8354
|
+
memId: "GRACE8"
|
|
8355
|
+
},
|
|
8356
|
+
{
|
|
8357
|
+
game_uid: 195,
|
|
8358
|
+
game_platform_uid: 56,
|
|
8359
|
+
game_code: "101",
|
|
8360
|
+
game_name_en: "Rise Of Apollo",
|
|
8361
|
+
popularity_ranking: 5,
|
|
8362
|
+
platform: "PG2",
|
|
8363
|
+
profit: 78715,
|
|
8364
|
+
memId: "Jackjack101"
|
|
8365
|
+
},
|
|
8366
|
+
{
|
|
8367
|
+
game_uid: 309,
|
|
8368
|
+
game_platform_uid: 57,
|
|
8369
|
+
game_code: "10004",
|
|
8370
|
+
game_name_en: "God Of Martial",
|
|
8371
|
+
popularity_ranking: 5,
|
|
8372
|
+
platform: "JILI2",
|
|
8373
|
+
profit: 66129,
|
|
8374
|
+
memId: "Leo810leo"
|
|
8375
|
+
},
|
|
8376
|
+
{
|
|
8377
|
+
game_uid: 193,
|
|
8378
|
+
game_platform_uid: 56,
|
|
8379
|
+
game_code: "1",
|
|
8380
|
+
game_name_en: "Honey Trap of Diao Chan",
|
|
8381
|
+
popularity_ranking: 5,
|
|
8382
|
+
platform: "PG2",
|
|
8383
|
+
profit: 96070,
|
|
8384
|
+
memId: "AAA995566"
|
|
8385
|
+
}
|
|
8386
|
+
]
|
|
8387
|
+
}),
|
|
8388
|
+
enabled: window.profit_ranking_status === 1,
|
|
8389
|
+
select: (n) => {
|
|
8390
|
+
const { data: i } = n;
|
|
8391
|
+
return Be(i, (u) => {
|
|
8392
|
+
const {
|
|
8393
|
+
game_uid: g,
|
|
8394
|
+
game_code: b,
|
|
8395
|
+
game_name_en: d,
|
|
8396
|
+
game_platform_uid: r,
|
|
8397
|
+
memId: a,
|
|
8398
|
+
platform: t,
|
|
8399
|
+
popularity_ranking: o,
|
|
8400
|
+
profit: s
|
|
8401
|
+
} = u;
|
|
8402
|
+
return {
|
|
8403
|
+
gameUid: g,
|
|
8404
|
+
//遊戲UID
|
|
8405
|
+
gameCode: b,
|
|
8406
|
+
//遊戲代碼
|
|
8407
|
+
gameNameEn: d,
|
|
8408
|
+
//遊戲名稱(英文)
|
|
8409
|
+
gamePlatformUid: r,
|
|
8410
|
+
//遊戲平台UID
|
|
8411
|
+
memId: a,
|
|
8412
|
+
//會員ID
|
|
8413
|
+
platform: t,
|
|
8414
|
+
//平台
|
|
8415
|
+
popularityRanking: o,
|
|
8416
|
+
//人氣排名
|
|
8417
|
+
profit: s
|
|
8418
|
+
//winloss
|
|
8419
|
+
};
|
|
8420
|
+
}) || [];
|
|
8421
|
+
},
|
|
8422
|
+
...e
|
|
8423
|
+
}));
|
|
8200
8424
|
var Ko = Object.create, nl = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, $o = Object.getOwnPropertyNames, Qo = Object.getPrototypeOf, jo = Object.prototype.hasOwnProperty, Yo = (e, n) => () => (n || e((n = { exports: {} }).exports, n), n.exports), Xo = (e, n, i, l) => {
|
|
8201
|
-
if (n && typeof n == "object" || typeof n == "function") for (let
|
|
8425
|
+
if (n && typeof n == "object" || typeof n == "function") for (let u of $o(n)) !jo.call(e, u) && u !== i && nl(e, u, { get: () => n[u], enumerable: !(l = qo(n, u)) || l.enumerable });
|
|
8202
8426
|
return e;
|
|
8203
8427
|
}, es = (e, n, i) => (i = e != null ? Ko(Qo(e)) : {}, Xo(!e || !e.__esModule ? nl(i, "default", { value: e, enumerable: !0 }) : i, e)), as = Yo((e, n) => {
|
|
8204
8428
|
(function(i, l) {
|
|
8205
8429
|
typeof e == "object" && typeof n < "u" ? l(e) : typeof define == "function" && define.amd ? define(["exports"], l) : (i = typeof globalThis < "u" ? globalThis : i || self, l(i.fastUniqueNumbers = {}));
|
|
8206
8430
|
})(e, function(i) {
|
|
8207
|
-
var l = function(
|
|
8431
|
+
var l = function(p) {
|
|
8208
8432
|
return function(m) {
|
|
8209
|
-
var c =
|
|
8433
|
+
var c = p(m);
|
|
8210
8434
|
return m.add(c), c;
|
|
8211
8435
|
};
|
|
8212
|
-
},
|
|
8436
|
+
}, u = function(p) {
|
|
8213
8437
|
return function(m, c) {
|
|
8214
|
-
return
|
|
8438
|
+
return p.set(m, c), c;
|
|
8215
8439
|
};
|
|
8216
|
-
}, g = Number.MAX_SAFE_INTEGER === void 0 ? 9007199254740991 : Number.MAX_SAFE_INTEGER, b = 536870912, d = b * 2, r = function(
|
|
8440
|
+
}, g = Number.MAX_SAFE_INTEGER === void 0 ? 9007199254740991 : Number.MAX_SAFE_INTEGER, b = 536870912, d = b * 2, r = function(p, m) {
|
|
8217
8441
|
return function(c) {
|
|
8218
8442
|
var f = m.get(c), y = f === void 0 ? c.size : f < d ? f + 1 : 0;
|
|
8219
|
-
if (!c.has(y)) return
|
|
8443
|
+
if (!c.has(y)) return p(c, y);
|
|
8220
8444
|
if (c.size < b) {
|
|
8221
8445
|
for (; c.has(y); ) y = Math.floor(Math.random() * d);
|
|
8222
|
-
return
|
|
8446
|
+
return p(c, y);
|
|
8223
8447
|
}
|
|
8224
8448
|
if (c.size > g) throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");
|
|
8225
8449
|
for (; c.has(y); ) y = Math.floor(Math.random() * g);
|
|
8226
|
-
return
|
|
8450
|
+
return p(c, y);
|
|
8227
8451
|
};
|
|
8228
|
-
}, a = /* @__PURE__ */ new WeakMap(), t =
|
|
8452
|
+
}, a = /* @__PURE__ */ new WeakMap(), t = u(a), o = r(t, a), s = l(o);
|
|
8229
8453
|
i.addUniqueNumber = s, i.generateUniqueNumber = o;
|
|
8230
8454
|
});
|
|
8231
8455
|
});
|
|
@@ -8308,8 +8532,8 @@ var rs = class {
|
|
|
8308
8532
|
if (this.isApplying) return this.reApply = !0, !1;
|
|
8309
8533
|
this.isApplying = !0;
|
|
8310
8534
|
let e = !1, n = (i) => {
|
|
8311
|
-
let { token: l, action:
|
|
8312
|
-
l !== this.token && (
|
|
8535
|
+
let { token: l, action: u } = i.data;
|
|
8536
|
+
l !== this.token && (u === 0 && l > this.token && (e = !0), u === 1 && (e = !0));
|
|
8313
8537
|
};
|
|
8314
8538
|
this.channel.addEventListener("message", n);
|
|
8315
8539
|
try {
|
|
@@ -8330,20 +8554,20 @@ var rs = class {
|
|
|
8330
8554
|
} catch {
|
|
8331
8555
|
}
|
|
8332
8556
|
let g = this.intervals.indexOf(n);
|
|
8333
|
-
g >= 0 && this.intervals.splice(g, 1), this.channel.removeEventListener("message",
|
|
8557
|
+
g >= 0 && this.intervals.splice(g, 1), this.channel.removeEventListener("message", u), i();
|
|
8334
8558
|
};
|
|
8335
8559
|
n = Ye.setInterval(() => {
|
|
8336
8560
|
this.apply().then(() => {
|
|
8337
8561
|
this.isLeader && l();
|
|
8338
8562
|
});
|
|
8339
8563
|
}, this.options.fallbackInterval), this.intervals.push(n);
|
|
8340
|
-
let
|
|
8564
|
+
let u = (g) => {
|
|
8341
8565
|
let { action: b } = g.data;
|
|
8342
8566
|
b === 2 && this.apply().then(() => {
|
|
8343
8567
|
this.isLeader && l();
|
|
8344
8568
|
});
|
|
8345
8569
|
};
|
|
8346
|
-
this.channel.addEventListener("message",
|
|
8570
|
+
this.channel.addEventListener("message", u);
|
|
8347
8571
|
});
|
|
8348
8572
|
}
|
|
8349
8573
|
sendAction(e) {
|
|
@@ -8384,37 +8608,37 @@ var rs = class {
|
|
|
8384
8608
|
this.elector = new rs(this.channel, i), this.elector.waitForLeadership();
|
|
8385
8609
|
}
|
|
8386
8610
|
this.channel.addEventListener("message", (i) => {
|
|
8387
|
-
let { action: l, token:
|
|
8611
|
+
let { action: l, token: u, data: g } = i.data;
|
|
8388
8612
|
switch (l) {
|
|
8389
8613
|
case 3:
|
|
8390
|
-
this.registry.set(
|
|
8614
|
+
this.registry.set(u, 2);
|
|
8391
8615
|
break;
|
|
8392
8616
|
case 4:
|
|
8393
|
-
this.registry.delete(
|
|
8617
|
+
this.registry.delete(u);
|
|
8394
8618
|
break;
|
|
8395
8619
|
case 5:
|
|
8396
|
-
this.idle(
|
|
8620
|
+
this.idle(u);
|
|
8397
8621
|
break;
|
|
8398
8622
|
case 6:
|
|
8399
|
-
this.active(
|
|
8623
|
+
this.active(u);
|
|
8400
8624
|
break;
|
|
8401
8625
|
case 7:
|
|
8402
|
-
this.prompt(
|
|
8626
|
+
this.prompt(u);
|
|
8403
8627
|
break;
|
|
8404
8628
|
case 8:
|
|
8405
|
-
this.start(
|
|
8629
|
+
this.start(u);
|
|
8406
8630
|
break;
|
|
8407
8631
|
case 9:
|
|
8408
|
-
this.reset(
|
|
8632
|
+
this.reset(u);
|
|
8409
8633
|
break;
|
|
8410
8634
|
case 10:
|
|
8411
|
-
this.activate(
|
|
8635
|
+
this.activate(u);
|
|
8412
8636
|
break;
|
|
8413
8637
|
case 11:
|
|
8414
|
-
this.pause(
|
|
8638
|
+
this.pause(u);
|
|
8415
8639
|
break;
|
|
8416
8640
|
case 12:
|
|
8417
|
-
this.resume(
|
|
8641
|
+
this.resume(u);
|
|
8418
8642
|
break;
|
|
8419
8643
|
case 13:
|
|
8420
8644
|
this.options.onMessage(g);
|
|
@@ -8474,9 +8698,9 @@ var rs = class {
|
|
|
8474
8698
|
}, ss = pa ? document : null, ms = ["mousemove", "keydown", "wheel", "DOMMouseScroll", "mousewheel", "mousedown", "touchstart", "touchmove", "MSPointerDown", "MSPointerMove", "visibilitychange", "focus"];
|
|
8475
8699
|
function us(e, n) {
|
|
8476
8700
|
let i;
|
|
8477
|
-
function l(...
|
|
8701
|
+
function l(...u) {
|
|
8478
8702
|
i && clearTimeout(i), i = setTimeout(() => {
|
|
8479
|
-
e(...
|
|
8703
|
+
e(...u), i = null;
|
|
8480
8704
|
}, n);
|
|
8481
8705
|
}
|
|
8482
8706
|
return l.cancel = function() {
|
|
@@ -8486,18 +8710,18 @@ function us(e, n) {
|
|
|
8486
8710
|
function it(e, n) {
|
|
8487
8711
|
let i = 0;
|
|
8488
8712
|
return function(...l) {
|
|
8489
|
-
let
|
|
8490
|
-
if (!(
|
|
8713
|
+
let u = (/* @__PURE__ */ new Date()).getTime();
|
|
8714
|
+
if (!(u - i < n)) return i = u, e(...l);
|
|
8491
8715
|
};
|
|
8492
8716
|
}
|
|
8493
8717
|
var Te = () => Date.now(), Fa = 2147483647;
|
|
8494
|
-
function ps({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle: i = 0, element: l = ss, events:
|
|
8718
|
+
function ps({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle: i = 0, element: l = ss, events: u = ms, timers: g = void 0, immediateEvents: b = [], onPresenceChange: d = () => {
|
|
8495
8719
|
}, onPrompt: r = () => {
|
|
8496
8720
|
}, onIdle: a = () => {
|
|
8497
8721
|
}, onActive: t = () => {
|
|
8498
8722
|
}, onAction: o = () => {
|
|
8499
8723
|
}, onMessage: s = () => {
|
|
8500
|
-
}, debounce:
|
|
8724
|
+
}, debounce: p = 0, throttle: m = 0, eventsThrottle: c = 200, startOnMount: f = !0, startManually: y = !1, stopOnIdle: _ = !1, crossTab: U = !1, name: C = "idle-timer", syncTimers: v = 0, leaderElection: x = !1, disabled: D = !1 } = {}) {
|
|
8501
8725
|
let M = ee(Te()), H = ee(Te()), k = ee(null), T = ee(null), A = ee(0), O = ee(0), w = ee(0), R = ee(0), S = ee(!1), G = ee(!1), L = ee(!1), B = ee(!0), W = ee(!1), N = ee(null), E = ee(null), F = ee(e), P = ee(0);
|
|
8502
8726
|
ge(() => {
|
|
8503
8727
|
if (n && console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."), i && n) throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");
|
|
@@ -8514,7 +8738,7 @@ function ps({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8514
8738
|
ge(() => {
|
|
8515
8739
|
K.current = _;
|
|
8516
8740
|
}, [_]);
|
|
8517
|
-
let q = ee(b), Q = ee(l), J = ee([...(/* @__PURE__ */ new Set([...
|
|
8741
|
+
let q = ee(b), Q = ee(l), J = ee([...(/* @__PURE__ */ new Set([...u, ...b])).values()]), ae = ee(D);
|
|
8518
8742
|
ge(() => {
|
|
8519
8743
|
ae.current = D, !B.current && (D ? Ve() : y || Qe());
|
|
8520
8744
|
}, [D]);
|
|
@@ -8544,8 +8768,8 @@ function ps({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8544
8768
|
}, [s]);
|
|
8545
8769
|
let Ue = Oa(() => {
|
|
8546
8770
|
let V = (De, ta) => ce.current(De, ta);
|
|
8547
|
-
return
|
|
8548
|
-
}, [m,
|
|
8771
|
+
return p > 0 ? us(V, p) : m > 0 ? it(V, m) : V;
|
|
8772
|
+
}, [m, p]), Ie = ee();
|
|
8549
8773
|
ge(() => {
|
|
8550
8774
|
U && v && (Ie.current = it(() => {
|
|
8551
8775
|
E.current.active();
|
|
@@ -8589,7 +8813,7 @@ function ps({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8589
8813
|
ge(() => {
|
|
8590
8814
|
let V = W.current;
|
|
8591
8815
|
V && Re(), c > 0 ? ia.current = it(aa, c) : ia.current = aa, V && xe();
|
|
8592
|
-
}, [c, m,
|
|
8816
|
+
}, [c, m, p, ce, U, v]);
|
|
8593
8817
|
let xe = () => {
|
|
8594
8818
|
pa && Q.current && (W.current || (J.current.forEach((V) => {
|
|
8595
8819
|
Q.current.addEventListener(V, ia.current, { capture: !0, passive: !0 });
|
|
@@ -8610,7 +8834,7 @@ function ps({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8610
8834
|
return V >= 0 ? V : 0;
|
|
8611
8835
|
}, [k, A]);
|
|
8612
8836
|
ge(() => {
|
|
8613
|
-
if (
|
|
8837
|
+
if (p > 0 && m > 0) throw new Error("❌ onAction can either be throttled or debounced, not both.");
|
|
8614
8838
|
g && is(g);
|
|
8615
8839
|
let V = () => {
|
|
8616
8840
|
E.current && E.current.close(), Ue.cancel && Ue.cancel(), Ce(), Re(!0);
|
|
@@ -8632,11 +8856,11 @@ function ps({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8632
8856
|
B.current || (Ce(), Re(!0)), !(y || D) && (f ? Qe() : xe());
|
|
8633
8857
|
}, [y, f, D, B]), ge(() => {
|
|
8634
8858
|
if (!B.current) {
|
|
8635
|
-
let V = [...(/* @__PURE__ */ new Set([...
|
|
8859
|
+
let V = [...(/* @__PURE__ */ new Set([...u, ...b])).values()];
|
|
8636
8860
|
if (Re(), J.current = V, Q.current = l, q.current = b, y || D) return;
|
|
8637
8861
|
f ? Qe() : xe();
|
|
8638
8862
|
}
|
|
8639
|
-
}, [l, JSON.stringify(
|
|
8863
|
+
}, [l, JSON.stringify(u), JSON.stringify(b), B, D, y, f]), ge(() => {
|
|
8640
8864
|
B.current && (B.current = !1);
|
|
8641
8865
|
}, [B]);
|
|
8642
8866
|
let Se = { message: za, start: Qe, reset: oa, activate: ga, pause: Ve, resume: je, isIdle: Ea, isPrompted: Na, isLeader: Ia, isLastActiveTab: Va, getTabId: da, getRemainingTime: Ua, getElapsedTime: Je, getTotalElapsedTime: ca, getLastIdleTime: fa, getLastActiveTime: La, getIdleTime: Ga, getTotalIdleTime: ba, getActiveTime: Ma, getTotalActiveTime: Ra, setOnPresenceChange: (V) => {
|
|
@@ -8663,7 +8887,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
8663
8887
|
timeout: l,
|
|
8664
8888
|
throttle: 500
|
|
8665
8889
|
}), ds = ({ options: e } = {}) => {
|
|
8666
|
-
const { commonInboxApi: n } = Ha(), { getToken: i, lng: l } = oe(),
|
|
8890
|
+
const { commonInboxApi: n } = Ha(), { getToken: i, lng: l } = oe(), u = i?.(), g = $e(l);
|
|
8667
8891
|
return j({
|
|
8668
8892
|
queryKey: ["inboxList"],
|
|
8669
8893
|
queryFn: async () => await n(),
|
|
@@ -8680,7 +8904,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
8680
8904
|
};
|
|
8681
8905
|
});
|
|
8682
8906
|
},
|
|
8683
|
-
enabled: !!
|
|
8907
|
+
enabled: !!u,
|
|
8684
8908
|
...e
|
|
8685
8909
|
});
|
|
8686
8910
|
}, cs = ({ options: e } = {}) => {
|
|
@@ -8758,7 +8982,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
8758
8982
|
...e.other
|
|
8759
8983
|
}
|
|
8760
8984
|
], Km = ({ options: e, formData: n } = {}) => {
|
|
8761
|
-
const { lng: i } = oe(), { newsListApi: l } = rl(),
|
|
8985
|
+
const { lng: i } = oe(), { newsListApi: l } = rl(), u = $e(i);
|
|
8762
8986
|
return j({
|
|
8763
8987
|
queryKey: ["newsList"],
|
|
8764
8988
|
queryFn: () => {
|
|
@@ -8768,7 +8992,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
8768
8992
|
select: (g) => {
|
|
8769
8993
|
const { data: b } = g, d = b.data?.filter((a) => a.is_active === 1), r = Be(d, (a) => {
|
|
8770
8994
|
const t = qe(a.news_language, {
|
|
8771
|
-
language:
|
|
8995
|
+
language: u
|
|
8772
8996
|
}) || a.news_language[0];
|
|
8773
8997
|
return {
|
|
8774
8998
|
...a,
|
|
@@ -8784,7 +9008,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
8784
9008
|
...e
|
|
8785
9009
|
});
|
|
8786
9010
|
}, qm = ({ options: e, formData: n } = {}) => {
|
|
8787
|
-
const { lng: i } = oe(), { newsListApi: l } = rl(),
|
|
9011
|
+
const { lng: i } = oe(), { newsListApi: l } = rl(), u = $e(i);
|
|
8788
9012
|
return j({
|
|
8789
9013
|
queryKey: ["newsList"],
|
|
8790
9014
|
queryFn: () => {
|
|
@@ -8793,7 +9017,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
8793
9017
|
},
|
|
8794
9018
|
select: (g) => {
|
|
8795
9019
|
const b = qe(g.data.news_language, {
|
|
8796
|
-
language:
|
|
9020
|
+
language: u
|
|
8797
9021
|
}) || g.data.news_language[0];
|
|
8798
9022
|
return {
|
|
8799
9023
|
...g.data,
|
|
@@ -8821,7 +9045,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
8821
9045
|
});
|
|
8822
9046
|
},
|
|
8823
9047
|
[e]
|
|
8824
|
-
),
|
|
9048
|
+
), u = I(
|
|
8825
9049
|
async (m) => {
|
|
8826
9050
|
const { bank_uid: c, amount: f, bank_number_last5: y, postscript: _ } = m;
|
|
8827
9051
|
return await e.post("/vip/deposit", {
|
|
@@ -8936,7 +9160,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
8936
9160
|
});
|
|
8937
9161
|
},
|
|
8938
9162
|
[e]
|
|
8939
|
-
),
|
|
9163
|
+
), p = I(
|
|
8940
9164
|
async (m) => {
|
|
8941
9165
|
const {
|
|
8942
9166
|
str_date: c,
|
|
@@ -8961,7 +9185,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
8961
9185
|
depositApiV1: n,
|
|
8962
9186
|
depositApiV2: i,
|
|
8963
9187
|
depositApi: l,
|
|
8964
|
-
bankDepositApi:
|
|
9188
|
+
bankDepositApi: u,
|
|
8965
9189
|
withdrawApi: g,
|
|
8966
9190
|
depositTransactionApi: b,
|
|
8967
9191
|
eventTransactionApi: d,
|
|
@@ -8970,7 +9194,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
8970
9194
|
invoiceApi: t,
|
|
8971
9195
|
updateInvoiceApi: o,
|
|
8972
9196
|
transactionRecordApi: s,
|
|
8973
|
-
treasureRecordApi:
|
|
9197
|
+
treasureRecordApi: p
|
|
8974
9198
|
};
|
|
8975
9199
|
}, _s = ({ options: e } = {}) => {
|
|
8976
9200
|
const { depositApiV1: n } = Ae();
|
|
@@ -8985,7 +9209,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
8985
9209
|
queryKey: ["depositV2", e],
|
|
8986
9210
|
queryFn: () => i({ paramsData: e }),
|
|
8987
9211
|
select: (l) => {
|
|
8988
|
-
const { third_party:
|
|
9212
|
+
const { third_party: u, bank: g, vip: b } = l, d = Be(u, (r) => ({
|
|
8989
9213
|
...r,
|
|
8990
9214
|
providerList: Be(r.providers, (a) => ({
|
|
8991
9215
|
...a,
|
|
@@ -9107,12 +9331,12 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9107
9331
|
depositV2: n = {},
|
|
9108
9332
|
depositTransaction: i = {},
|
|
9109
9333
|
depositAction: l = {},
|
|
9110
|
-
withdrawAction:
|
|
9334
|
+
withdrawAction: u = {},
|
|
9111
9335
|
bankDeposit: g = {},
|
|
9112
9336
|
eventTransaction: b = {},
|
|
9113
9337
|
withdrawTransaction: d = {}
|
|
9114
9338
|
} = {}) => {
|
|
9115
|
-
const r = _s(e), a = ys(n), t = Cs(i), o = Us(l), s = bs(
|
|
9339
|
+
const r = _s(e), a = ys(n), t = Cs(i), o = Us(l), s = bs(u), p = hs(g), m = vs(b), c = Ts(
|
|
9116
9340
|
d
|
|
9117
9341
|
);
|
|
9118
9342
|
return {
|
|
@@ -9121,7 +9345,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9121
9345
|
depositTransaction: t,
|
|
9122
9346
|
depositAction: o,
|
|
9123
9347
|
withdrawAction: s,
|
|
9124
|
-
bankDepositAction:
|
|
9348
|
+
bankDepositAction: p,
|
|
9125
9349
|
eventTransaction: m,
|
|
9126
9350
|
withdrawTransaction: c
|
|
9127
9351
|
};
|
|
@@ -9129,17 +9353,17 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9129
9353
|
let n = {};
|
|
9130
9354
|
return e.forEach((i, l) => n[i] = l), n;
|
|
9131
9355
|
})(Qa), Ss = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, Le = String.fromCharCode.bind(String), Mn = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), sl = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (n) => n == "+" ? "-" : "_"), ml = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), ul = (e) => {
|
|
9132
|
-
let n, i, l,
|
|
9356
|
+
let n, i, l, u, g = "";
|
|
9133
9357
|
const b = e.length % 3;
|
|
9134
9358
|
for (let d = 0; d < e.length; ) {
|
|
9135
|
-
if ((i = e.charCodeAt(d++)) > 255 || (l = e.charCodeAt(d++)) > 255 || (
|
|
9359
|
+
if ((i = e.charCodeAt(d++)) > 255 || (l = e.charCodeAt(d++)) > 255 || (u = e.charCodeAt(d++)) > 255)
|
|
9136
9360
|
throw new TypeError("invalid character found");
|
|
9137
|
-
n = i << 16 | l << 8 |
|
|
9361
|
+
n = i << 16 | l << 8 | u, g += Qa[n >> 18 & 63] + Qa[n >> 12 & 63] + Qa[n >> 6 & 63] + Qa[n & 63];
|
|
9138
9362
|
}
|
|
9139
9363
|
return b ? g.slice(0, b - 3) + "===".substring(b) : g;
|
|
9140
9364
|
}, vt = typeof btoa == "function" ? (e) => btoa(e) : Wa ? (e) => Buffer.from(e, "binary").toString("base64") : ul, rt = Wa ? (e) => Buffer.from(e).toString("base64") : (e) => {
|
|
9141
9365
|
let i = [];
|
|
9142
|
-
for (let l = 0,
|
|
9366
|
+
for (let l = 0, u = e.length; l < u; l += 4096)
|
|
9143
9367
|
i.push(Le.apply(null, e.subarray(l, l + 4096)));
|
|
9144
9368
|
return vt(i.join(""));
|
|
9145
9369
|
}, zi = (e, n = !1) => n ? sl(rt(e)) : rt(e), Ds = (e) => {
|
|
@@ -9164,10 +9388,10 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9164
9388
|
if (e = e.replace(/\s+/g, ""), !Ss.test(e))
|
|
9165
9389
|
throw new TypeError("malformed base64.");
|
|
9166
9390
|
e += "==".slice(2 - (e.length & 3));
|
|
9167
|
-
let n, i, l,
|
|
9391
|
+
let n, i, l, u = [];
|
|
9168
9392
|
for (let g = 0; g < e.length; )
|
|
9169
|
-
n = ni[e.charAt(g++)] << 18 | ni[e.charAt(g++)] << 12 | (i = ni[e.charAt(g++)]) << 6 | (l = ni[e.charAt(g++)]), i === 64 ?
|
|
9170
|
-
return
|
|
9393
|
+
n = ni[e.charAt(g++)] << 18 | ni[e.charAt(g++)] << 12 | (i = ni[e.charAt(g++)]) << 6 | (l = ni[e.charAt(g++)]), i === 64 ? u.push(Le(n >> 16 & 255)) : l === 64 ? u.push(Le(n >> 16 & 255, n >> 8 & 255)) : u.push(Le(n >> 16 & 255, n >> 8 & 255, n & 255));
|
|
9394
|
+
return u.join("");
|
|
9171
9395
|
}, ht = typeof atob == "function" ? (e) => atob(ml(e)) : Wa ? (e) => Buffer.from(e, "base64").toString("binary") : dl, cl = Wa ? (e) => Mn(Buffer.from(e, "base64")) : (e) => Mn(ht(e).split("").map((n) => n.charCodeAt(0))), fl = (e) => cl(_l(e)), Gs = Wa ? (e) => Buffer.from(e, "base64").toString("utf8") : Ln ? (e) => Ln.decode(cl(e)) : (e) => gl(ht(e)), _l = (e) => ml(e.replace(/[-_]/g, (n) => n == "-" ? "+" : "/")), ot = (e) => Gs(_l(e)), Ms = (e) => {
|
|
9172
9396
|
if (typeof e != "string")
|
|
9173
9397
|
return !1;
|
|
@@ -9228,9 +9452,9 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9228
9452
|
return j({
|
|
9229
9453
|
queryKey: ["playGame"],
|
|
9230
9454
|
queryFn: async () => {
|
|
9231
|
-
const { gameUid: l, gameCode:
|
|
9455
|
+
const { gameUid: l, gameCode: u, isMobile: g, gameCurrency: b, currentCurrency: d } = e || {}, r = await i({
|
|
9232
9456
|
gameUid: l,
|
|
9233
|
-
gameCode:
|
|
9457
|
+
gameCode: u,
|
|
9234
9458
|
isMobile: g,
|
|
9235
9459
|
gameCurrency: b,
|
|
9236
9460
|
currentCurrency: d
|
|
@@ -9239,7 +9463,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9239
9463
|
lang: t,
|
|
9240
9464
|
not_support_iframe: o,
|
|
9241
9465
|
portrait: s,
|
|
9242
|
-
url:
|
|
9466
|
+
url: p,
|
|
9243
9467
|
is_html_code: m,
|
|
9244
9468
|
message: c
|
|
9245
9469
|
} = r;
|
|
@@ -9249,8 +9473,8 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9249
9473
|
supportIframe: !o,
|
|
9250
9474
|
supportPortrait: s,
|
|
9251
9475
|
isHtmlCode: m,
|
|
9252
|
-
gameUrl:
|
|
9253
|
-
decodeGameUrl: Ps.decode(
|
|
9476
|
+
gameUrl: p,
|
|
9477
|
+
decodeGameUrl: Ps.decode(p),
|
|
9254
9478
|
message: c
|
|
9255
9479
|
};
|
|
9256
9480
|
},
|
|
@@ -9295,7 +9519,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9295
9519
|
params: d
|
|
9296
9520
|
}),
|
|
9297
9521
|
[e]
|
|
9298
|
-
), i = I(async () => await e.get("/memberRewards/member/unused"), [e]), l = I(async () => await e.get("/memberRewards/member/expired"), [e]),
|
|
9522
|
+
), i = I(async () => await e.get("/memberRewards/member/unused"), [e]), l = I(async () => await e.get("/memberRewards/member/expired"), [e]), u = I(
|
|
9299
9523
|
async (b) => await e.post("/memberRewards/memberGetRewards", {
|
|
9300
9524
|
memberRewards_uid: b
|
|
9301
9525
|
}),
|
|
@@ -9305,7 +9529,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9305
9529
|
rewardListApi: n,
|
|
9306
9530
|
unUsedRewardListApi: i,
|
|
9307
9531
|
expiredRewardListApi: l,
|
|
9308
|
-
redeemRewardApi:
|
|
9532
|
+
redeemRewardApi: u,
|
|
9309
9533
|
historyRewardApi: g
|
|
9310
9534
|
};
|
|
9311
9535
|
}, As = ({ options: e } = {}) => {
|
|
@@ -9313,15 +9537,15 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9313
9537
|
return j({
|
|
9314
9538
|
queryKey: ["rewardsList"],
|
|
9315
9539
|
queryFn: (i) => {
|
|
9316
|
-
const { uid: l, params:
|
|
9317
|
-
return n({ uid: l, params:
|
|
9540
|
+
const { uid: l, params: u } = i || {};
|
|
9541
|
+
return n({ uid: l, params: u });
|
|
9318
9542
|
},
|
|
9319
9543
|
select: (i) => {
|
|
9320
|
-
const l = Be(i.data.data, (
|
|
9544
|
+
const l = Be(i.data.data, (u) => {
|
|
9321
9545
|
const {
|
|
9322
9546
|
wagering_restricted_amount: g,
|
|
9323
9547
|
claimed_amount: b
|
|
9324
|
-
} =
|
|
9548
|
+
} = u, d = re(u, "rewards", {}), {
|
|
9325
9549
|
expiration_days: r,
|
|
9326
9550
|
name: a,
|
|
9327
9551
|
position: t,
|
|
@@ -9329,7 +9553,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9329
9553
|
uid: s
|
|
9330
9554
|
} = d;
|
|
9331
9555
|
return {
|
|
9332
|
-
...
|
|
9556
|
+
...u,
|
|
9333
9557
|
rewardExpirationDays: r,
|
|
9334
9558
|
rewardName: a,
|
|
9335
9559
|
rewardPosition: t,
|
|
@@ -9389,7 +9613,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9389
9613
|
options: e.redeemReward
|
|
9390
9614
|
}), l = Bs({
|
|
9391
9615
|
options: e.unUsedRewardsList
|
|
9392
|
-
}),
|
|
9616
|
+
}), u = Hs({
|
|
9393
9617
|
options: e.expiredRewardsList
|
|
9394
9618
|
}), g = Ws({
|
|
9395
9619
|
options: e.historyRewardsList
|
|
@@ -9398,14 +9622,14 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9398
9622
|
rewardsListQuery: n,
|
|
9399
9623
|
redeemRewardMutation: i,
|
|
9400
9624
|
unUsedRewardsListQuery: l,
|
|
9401
|
-
expiredRewardsListQuery:
|
|
9625
|
+
expiredRewardsListQuery: u,
|
|
9402
9626
|
historyRewardsListQuery: g
|
|
9403
9627
|
};
|
|
9404
9628
|
}, vl = () => {
|
|
9405
9629
|
const { client: e } = oe(), n = I(
|
|
9406
9630
|
async (l = {}) => {
|
|
9407
9631
|
const {
|
|
9408
|
-
startTime:
|
|
9632
|
+
startTime: u = "2025-12-30 00:00:00",
|
|
9409
9633
|
endTime: g = "2026-12-31 23:59:59",
|
|
9410
9634
|
isActive: b = 1,
|
|
9411
9635
|
showUnavailable: d = 1,
|
|
@@ -9415,7 +9639,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9415
9639
|
} = l;
|
|
9416
9640
|
return await e.get("/treasure", {
|
|
9417
9641
|
params: {
|
|
9418
|
-
start_time:
|
|
9642
|
+
start_time: u,
|
|
9419
9643
|
end_time: g,
|
|
9420
9644
|
is_active: b,
|
|
9421
9645
|
show_unavailable: d,
|
|
@@ -9427,8 +9651,8 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9427
9651
|
[e]
|
|
9428
9652
|
), i = I(
|
|
9429
9653
|
async (l) => {
|
|
9430
|
-
const { treasure_uid:
|
|
9431
|
-
return await e.post(`/treasure/redeem/${
|
|
9654
|
+
const { treasure_uid: u = "" } = l;
|
|
9655
|
+
return await e.post(`/treasure/redeem/${u}`);
|
|
9432
9656
|
},
|
|
9433
9657
|
[e]
|
|
9434
9658
|
);
|
|
@@ -9437,7 +9661,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9437
9661
|
redeemTreasureApi: i
|
|
9438
9662
|
};
|
|
9439
9663
|
}, ou = ({ paramsData: e, options: n } = {}) => {
|
|
9440
|
-
const { client: i, lng: l } = oe(),
|
|
9664
|
+
const { client: i, lng: l } = oe(), u = $e(l || "tw"), { treasureListApi: g } = vl();
|
|
9441
9665
|
return j({
|
|
9442
9666
|
queryKey: ["treasureList", e],
|
|
9443
9667
|
queryFn: () => g(e),
|
|
@@ -9451,7 +9675,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9451
9675
|
return {
|
|
9452
9676
|
list: Be(re(d, "data", []), (t) => {
|
|
9453
9677
|
const o = qe(t.treasure_copywriting, {
|
|
9454
|
-
language:
|
|
9678
|
+
language: u
|
|
9455
9679
|
});
|
|
9456
9680
|
return {
|
|
9457
9681
|
...t,
|
|
@@ -9482,8 +9706,8 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9482
9706
|
return j({
|
|
9483
9707
|
queryKey: ["vipInfo"],
|
|
9484
9708
|
queryFn: async () => l(),
|
|
9485
|
-
select: (
|
|
9486
|
-
const { data: g } =
|
|
9709
|
+
select: (u) => {
|
|
9710
|
+
const { data: g } = u;
|
|
9487
9711
|
return {
|
|
9488
9712
|
currentWager: g.wagering,
|
|
9489
9713
|
currentLevel: i.vip_level,
|
|
@@ -9497,11 +9721,11 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9497
9721
|
return j({
|
|
9498
9722
|
queryKey: ["vipList"],
|
|
9499
9723
|
queryFn: async () => {
|
|
9500
|
-
const
|
|
9501
|
-
return
|
|
9724
|
+
const u = window.vip_list;
|
|
9725
|
+
return u || l();
|
|
9502
9726
|
},
|
|
9503
|
-
select: (
|
|
9504
|
-
const g = la(
|
|
9727
|
+
select: (u) => {
|
|
9728
|
+
const g = la(u) ? u : u.data;
|
|
9505
9729
|
return Be(g, (d) => {
|
|
9506
9730
|
const {
|
|
9507
9731
|
vip_criteria: r,
|
|
@@ -9509,7 +9733,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9509
9733
|
vip_withdrawal_rate: t,
|
|
9510
9734
|
rebate_range: o,
|
|
9511
9735
|
vip_game_rebate: s
|
|
9512
|
-
} = d,
|
|
9736
|
+
} = d, p = qe(r, { currency_code: i }) || {}, m = qe(a, { currency_code: i }) || {}, c = t, f = Be(o, (U) => ({
|
|
9513
9737
|
...U,
|
|
9514
9738
|
rebateRange: JSON.parse(U.rebate_range)
|
|
9515
9739
|
})), y = re(s, "[0]", {}), _ = {
|
|
@@ -9519,7 +9743,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9519
9743
|
return {
|
|
9520
9744
|
...d,
|
|
9521
9745
|
vipImageUrl: `${Xe}/vip/vip${d.level}_l.avif`,
|
|
9522
|
-
vipRule:
|
|
9746
|
+
vipRule: p,
|
|
9523
9747
|
vipWithdraw: m,
|
|
9524
9748
|
vipWithdrawFeeRate: c,
|
|
9525
9749
|
vipRebateRange: f,
|
|
@@ -9556,7 +9780,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9556
9780
|
const { lng: n } = oe(), i = wn(n), {
|
|
9557
9781
|
gameCode: l,
|
|
9558
9782
|
// 遊戲代碼
|
|
9559
|
-
gameUid:
|
|
9783
|
+
gameUid: u,
|
|
9560
9784
|
// 遊戲唯一標識符
|
|
9561
9785
|
gameTypeUid: g,
|
|
9562
9786
|
// 遊戲類型唯一標識符
|
|
@@ -9575,7 +9799,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9575
9799
|
// 遊戲類型
|
|
9576
9800
|
game_tags: s,
|
|
9577
9801
|
// 遊戲標籤
|
|
9578
|
-
isUnderMaintenance:
|
|
9802
|
+
isUnderMaintenance: p,
|
|
9579
9803
|
// 是否維護中
|
|
9580
9804
|
support_vertical: m,
|
|
9581
9805
|
// 是否支援直向
|
|
@@ -9594,7 +9818,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9594
9818
|
} = e, v = e?.[`gameName${wn(i)}`], x = `${Nt}/${Fn}/en/${a}/${kt(l, / /g, "_")}.webp`, D = `${Nt}/${Fn}/en/${a}/${kt(l, / /g, "_")}.gif`;
|
|
9595
9819
|
return {
|
|
9596
9820
|
gameCode: l,
|
|
9597
|
-
gameUid:
|
|
9821
|
+
gameUid: u,
|
|
9598
9822
|
gameTypeUid: g,
|
|
9599
9823
|
providerUid: b,
|
|
9600
9824
|
supportCurrency: d,
|
|
@@ -9603,7 +9827,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9603
9827
|
gameSubType: t,
|
|
9604
9828
|
gameType: o,
|
|
9605
9829
|
gameTags: s,
|
|
9606
|
-
isUnderMaintenance:
|
|
9830
|
+
isUnderMaintenance: p,
|
|
9607
9831
|
supportVertical: m,
|
|
9608
9832
|
supportHorizontal: c,
|
|
9609
9833
|
userClickCount: f,
|
|
@@ -9632,7 +9856,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9632
9856
|
// 子平台枚舉
|
|
9633
9857
|
platformEnum: l,
|
|
9634
9858
|
// 平台枚舉
|
|
9635
|
-
isUnderMaintenance:
|
|
9859
|
+
isUnderMaintenance: u,
|
|
9636
9860
|
// 是否維護中
|
|
9637
9861
|
maintenanceStartTime: g,
|
|
9638
9862
|
// 維護開始時間
|
|
@@ -9652,7 +9876,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9652
9876
|
return {
|
|
9653
9877
|
subPlatformEnum: i,
|
|
9654
9878
|
platformEnum: l,
|
|
9655
|
-
isUnderMaintenance:
|
|
9879
|
+
isUnderMaintenance: u,
|
|
9656
9880
|
maintenanceStartTime: g,
|
|
9657
9881
|
maintenanceEndTime: b,
|
|
9658
9882
|
platform: d,
|
|
@@ -9663,23 +9887,23 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9663
9887
|
platformImageUrl: s
|
|
9664
9888
|
};
|
|
9665
9889
|
}, Vs = (e = {}) => !Zi(e) || Ee(e) ? [] : Ji(e), An = (e = []) => !la(e) || Ee(e) ? [] : Be(e, "platform"), Zs = (e = []) => !la(e) || Ee(e) ? [] : Be(e, "gameTypeName"), Js = (e = []) => !la(e) || Ee(e) ? [] : Be(e, "game_subtype"), Ks = (e = {}) => !Zi(e) || Ee(e) ? [] : Ji(e), qs = (e = [], n = []) => !la(e) || Ee(e) ? {} : !la(n) || Ee(n) ? {} : e.reduce((i, l) => {
|
|
9666
|
-
const
|
|
9667
|
-
return
|
|
9890
|
+
const u = n.map((g) => g.game_subtype);
|
|
9891
|
+
return u.forEach((g) => {
|
|
9668
9892
|
i[g] = i[g] || [];
|
|
9669
|
-
}),
|
|
9893
|
+
}), u.includes(l.game_subtype) && i[l.game_subtype].push(l), i;
|
|
9670
9894
|
}, {}), $s = ({
|
|
9671
9895
|
gameTypes: e = [],
|
|
9672
9896
|
platforms: n = [],
|
|
9673
9897
|
gameList: i = {},
|
|
9674
9898
|
allGameTypes: l = [],
|
|
9675
|
-
allPlatforms:
|
|
9899
|
+
allPlatforms: u = []
|
|
9676
9900
|
}) => !la(e) || !la(n) ? {} : Ee(i) ? {} : e.reduce((g, b) => {
|
|
9677
9901
|
const d = jl({
|
|
9678
9902
|
gameTypeName: b,
|
|
9679
9903
|
platforms: n,
|
|
9680
9904
|
gameList: i,
|
|
9681
9905
|
allGameTypes: l,
|
|
9682
|
-
allPlatforms:
|
|
9906
|
+
allPlatforms: u
|
|
9683
9907
|
});
|
|
9684
9908
|
return Ee(d) || (g[b] = d), g;
|
|
9685
9909
|
}, {}), du = ({
|
|
@@ -9687,11 +9911,11 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9687
9911
|
platforms: n = [],
|
|
9688
9912
|
allGameType: i = [],
|
|
9689
9913
|
allGamePlatform: l = [],
|
|
9690
|
-
allGameList:
|
|
9914
|
+
allGameList: u = {}
|
|
9691
9915
|
} = {}) => !Array.isArray(e) || !Array.isArray(n) ? {} : e.reduce((g, b) => {
|
|
9692
9916
|
const d = $n(i, b);
|
|
9693
9917
|
if (!d) return g;
|
|
9694
|
-
const r =
|
|
9918
|
+
const r = u[d] || [], a = n.reduce((t, o) => {
|
|
9695
9919
|
const s = Yl({
|
|
9696
9920
|
platformName: o,
|
|
9697
9921
|
gamesOfType: r,
|
|
@@ -9700,16 +9924,16 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9700
9924
|
return Ee(s) ? t : { ...t, [o]: s };
|
|
9701
9925
|
}, {});
|
|
9702
9926
|
return Ee(a) || (g[b] = a), g;
|
|
9703
|
-
}, {}), Qs = (e = {}) => !Zi(e) || Ee(e) ? {} : Object.values(e).reduce((i, l) => (Object.entries(l).forEach(([
|
|
9704
|
-
i[
|
|
9927
|
+
}, {}), Qs = (e = {}) => !Zi(e) || Ee(e) ? {} : Object.values(e).reduce((i, l) => (Object.entries(l).forEach(([u, g]) => {
|
|
9928
|
+
i[u] ? i[u] = [...i[u], ...g] : i[u] = g;
|
|
9705
9929
|
}), i), {}), js = (e = {}) => {
|
|
9706
9930
|
if (!Zi(e) || Ee(e)) return {};
|
|
9707
9931
|
const n = {};
|
|
9708
9932
|
for (const [i, l] of Object.entries(e)) {
|
|
9709
9933
|
n[i] = {};
|
|
9710
|
-
for (const
|
|
9711
|
-
const g =
|
|
9712
|
-
n[i][g] || (n[i][g] = []), n[i][g].push(
|
|
9934
|
+
for (const u of l) {
|
|
9935
|
+
const g = u.game_subtype;
|
|
9936
|
+
n[i][g] || (n[i][g] = []), n[i][g].push(u);
|
|
9713
9937
|
}
|
|
9714
9938
|
}
|
|
9715
9939
|
return n;
|
|
@@ -9718,7 +9942,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9718
9942
|
allGamePlatform: n = [],
|
|
9719
9943
|
allGameType: i = [],
|
|
9720
9944
|
allGame_subtype: l = [],
|
|
9721
|
-
allNewGameList:
|
|
9945
|
+
allNewGameList: u = [],
|
|
9722
9946
|
allTopGameList: g = [],
|
|
9723
9947
|
randomlySelectedGames: b = [],
|
|
9724
9948
|
userFavoriteGame: d = {},
|
|
@@ -9726,8 +9950,8 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9726
9950
|
highlightGames: a = [],
|
|
9727
9951
|
originPlatform: t = []
|
|
9728
9952
|
}) => {
|
|
9729
|
-
const o = Vs(e), s = An(n),
|
|
9730
|
-
gameTypes:
|
|
9953
|
+
const o = Vs(e), s = An(n), p = Zs(i), m = Js(l), c = An(t), f = Ks(d), y = $s({
|
|
9954
|
+
gameTypes: p,
|
|
9731
9955
|
platforms: s,
|
|
9732
9956
|
gameList: e,
|
|
9733
9957
|
allGameTypes: i,
|
|
@@ -9756,14 +9980,14 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9756
9980
|
byGameType: D
|
|
9757
9981
|
},
|
|
9758
9982
|
type: {
|
|
9759
|
-
main:
|
|
9983
|
+
main: p,
|
|
9760
9984
|
sub: m,
|
|
9761
9985
|
originMain: i,
|
|
9762
9986
|
originSub: l
|
|
9763
9987
|
},
|
|
9764
9988
|
gameList: {
|
|
9765
9989
|
all: o,
|
|
9766
|
-
new:
|
|
9990
|
+
new: u,
|
|
9767
9991
|
top: g,
|
|
9768
9992
|
favorite: f,
|
|
9769
9993
|
highlight: a,
|
|
@@ -9807,7 +10031,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9807
10031
|
},
|
|
9808
10032
|
user: { favorite: [] }
|
|
9809
10033
|
}, em = ({ enabled: e = !0 } = {}) => {
|
|
9810
|
-
const { getToken: n } = oe(), { userFavoriteGameApi: i, userGameListApi: l } = ue(), { data:
|
|
10034
|
+
const { getToken: n } = oe(), { userFavoriteGameApi: i, userGameListApi: l } = ue(), { data: u, isLoading: g, error: b, refetch: d } = j({
|
|
9811
10035
|
queryKey: ["gamesInfo"],
|
|
9812
10036
|
queryFn: async () => {
|
|
9813
10037
|
let r = {}, a = {};
|
|
@@ -9839,7 +10063,7 @@ const Zm = ({ onIdle: e, onActive: n, onAction: i, timeout: l = 6e5 }) => ps({
|
|
|
9839
10063
|
refetchOnWindowFocus: !1
|
|
9840
10064
|
});
|
|
9841
10065
|
return {
|
|
9842
|
-
gamesInfo:
|
|
10066
|
+
gamesInfo: u || Xs,
|
|
9843
10067
|
isLoading: g,
|
|
9844
10068
|
error: b,
|
|
9845
10069
|
refetch: d
|
|
@@ -36387,11 +36611,11 @@ function fu({
|
|
|
36387
36611
|
autoFetchGamesInfo: n = !1,
|
|
36388
36612
|
useMockData: i = !1,
|
|
36389
36613
|
queryClient: l,
|
|
36390
|
-
...
|
|
36614
|
+
...u
|
|
36391
36615
|
}) {
|
|
36392
|
-
const g = Oa(() => Lt(
|
|
36393
|
-
() => Lt({ ...
|
|
36394
|
-
[
|
|
36616
|
+
const g = Oa(() => Lt(u), [u]), b = Oa(
|
|
36617
|
+
() => Lt({ ...u, formData: !0 }),
|
|
36618
|
+
[u]
|
|
36395
36619
|
), d = Oa(
|
|
36396
36620
|
() => new Ol({
|
|
36397
36621
|
defaultOptions: {
|
|
@@ -36403,7 +36627,7 @@ function fu({
|
|
|
36403
36627
|
}),
|
|
36404
36628
|
[]
|
|
36405
36629
|
), r = l || d;
|
|
36406
|
-
return /* @__PURE__ */ Fe.jsx(Bl, { client: r, children: /* @__PURE__ */ Fe.jsx(zn.Provider, { value: { client: g, formDataClient: b, ...
|
|
36630
|
+
return /* @__PURE__ */ Fe.jsx(Bl, { client: r, children: /* @__PURE__ */ Fe.jsx(zn.Provider, { value: { client: g, formDataClient: b, ...u }, children: /* @__PURE__ */ Fe.jsx($l, { children: /* @__PURE__ */ Fe.jsx(
|
|
36407
36631
|
im,
|
|
36408
36632
|
{
|
|
36409
36633
|
autoFetch: n,
|
|
@@ -36414,7 +36638,7 @@ function fu({
|
|
|
36414
36638
|
}
|
|
36415
36639
|
const _u = ({ onFunction: e = () => {
|
|
36416
36640
|
}, buttonProps: n = {} } = {}) => {
|
|
36417
|
-
const { lineConfig: i } = oe(), l = ee(!1),
|
|
36641
|
+
const { lineConfig: i } = oe(), l = ee(!1), u = re(i, "liffId", ""), g = new URLSearchParams(window.location.search), b = g.get("line_login"), d = g.get("trans_code"), r = g.get("line_id"), a = g.get("line_name"), t = g.get("invite_code"), { mutate: o, isPending: s } = tl({
|
|
36418
36642
|
options: {
|
|
36419
36643
|
onSuccess: (m) => {
|
|
36420
36644
|
e(m);
|
|
@@ -36438,15 +36662,15 @@ const _u = ({ onFunction: e = () => {
|
|
|
36438
36662
|
o,
|
|
36439
36663
|
e
|
|
36440
36664
|
]);
|
|
36441
|
-
const
|
|
36442
|
-
window.location.href = `https://liff.line.me/${
|
|
36665
|
+
const p = () => {
|
|
36666
|
+
window.location.href = `https://liff.line.me/${u}`;
|
|
36443
36667
|
};
|
|
36444
|
-
return
|
|
36668
|
+
return u ? /* @__PURE__ */ Fe.jsx(
|
|
36445
36669
|
"button",
|
|
36446
36670
|
{
|
|
36447
36671
|
className: "line-login-btn",
|
|
36448
36672
|
type: "button",
|
|
36449
|
-
onClick:
|
|
36673
|
+
onClick: p,
|
|
36450
36674
|
...n,
|
|
36451
36675
|
children: "Line Login"
|
|
36452
36676
|
}
|
|
@@ -36488,8 +36712,8 @@ var xa;
|
|
|
36488
36712
|
for (let m = 0; m < this.size; m++)
|
|
36489
36713
|
this.modules.push(s.slice()), this.isFunction.push(s.slice());
|
|
36490
36714
|
this.drawFunctionPatterns();
|
|
36491
|
-
const
|
|
36492
|
-
if (this.drawCodewords(
|
|
36715
|
+
const p = this.addEccAndInterleave(t);
|
|
36716
|
+
if (this.drawCodewords(p), o == -1) {
|
|
36493
36717
|
let m = 1e9;
|
|
36494
36718
|
for (let c = 0; c < 8; c++) {
|
|
36495
36719
|
this.applyMask(c), this.drawFormatBits(c);
|
|
@@ -36497,7 +36721,7 @@ var xa;
|
|
|
36497
36721
|
f < m && (o = c, m = f), this.applyMask(c);
|
|
36498
36722
|
}
|
|
36499
36723
|
}
|
|
36500
|
-
|
|
36724
|
+
u(0 <= o && o <= 7), this.mask = o, this.applyMask(o), this.drawFormatBits(o), this.isFunction = [];
|
|
36501
36725
|
}
|
|
36502
36726
|
/*-- Static factory functions (high level) --*/
|
|
36503
36727
|
// Returns a QR Code representing the given Unicode text string at the given error correction level.
|
|
@@ -36527,7 +36751,7 @@ var xa;
|
|
|
36527
36751
|
// This function allows the user to create a custom sequence of segments that switches
|
|
36528
36752
|
// between modes (such as alphanumeric and byte) to encode text in less space.
|
|
36529
36753
|
// This is a mid-level API; the high-level API is encodeText() and encodeBinary().
|
|
36530
|
-
static encodeSegments(r, a, t = 1, o = 40, s = -1,
|
|
36754
|
+
static encodeSegments(r, a, t = 1, o = 40, s = -1, p = !0) {
|
|
36531
36755
|
if (!(Y.MIN_VERSION <= t && t <= o && o <= Y.MAX_VERSION) || s < -1 || s > 7)
|
|
36532
36756
|
throw new RangeError("Invalid value");
|
|
36533
36757
|
let m, c;
|
|
@@ -36541,16 +36765,16 @@ var xa;
|
|
|
36541
36765
|
throw new RangeError("Data too long");
|
|
36542
36766
|
}
|
|
36543
36767
|
for (const U of [Y.Ecc.MEDIUM, Y.Ecc.QUARTILE, Y.Ecc.HIGH])
|
|
36544
|
-
|
|
36768
|
+
p && c <= Y.getNumDataCodewords(m, U) * 8 && (a = U);
|
|
36545
36769
|
let f = [];
|
|
36546
36770
|
for (const U of r) {
|
|
36547
36771
|
i(U.mode.modeBits, 4, f), i(U.numChars, U.mode.numCharCountBits(m), f);
|
|
36548
36772
|
for (const C of U.getData())
|
|
36549
36773
|
f.push(C);
|
|
36550
36774
|
}
|
|
36551
|
-
|
|
36775
|
+
u(f.length == c);
|
|
36552
36776
|
const y = Y.getNumDataCodewords(m, a) * 8;
|
|
36553
|
-
|
|
36777
|
+
u(f.length <= y), i(0, Math.min(4, y - f.length), f), i(0, (8 - f.length % 8) % 8, f), u(f.length % 8 == 0);
|
|
36554
36778
|
for (let U = 236; f.length < y; U ^= 253)
|
|
36555
36779
|
i(U, 8, f);
|
|
36556
36780
|
let _ = [];
|
|
@@ -36589,7 +36813,7 @@ var xa;
|
|
|
36589
36813
|
for (let s = 0; s < 10; s++)
|
|
36590
36814
|
t = t << 1 ^ (t >>> 9) * 1335;
|
|
36591
36815
|
const o = (a << 10 | t) ^ 21522;
|
|
36592
|
-
|
|
36816
|
+
u(o >>> 15 == 0);
|
|
36593
36817
|
for (let s = 0; s <= 5; s++)
|
|
36594
36818
|
this.setFunctionModule(8, s, l(o, s));
|
|
36595
36819
|
this.setFunctionModule(8, 7, l(o, 6)), this.setFunctionModule(8, 8, l(o, 7)), this.setFunctionModule(7, 8, l(o, 8));
|
|
@@ -36610,10 +36834,10 @@ var xa;
|
|
|
36610
36834
|
for (let t = 0; t < 12; t++)
|
|
36611
36835
|
r = r << 1 ^ (r >>> 11) * 7973;
|
|
36612
36836
|
const a = this.version << 12 | r;
|
|
36613
|
-
|
|
36837
|
+
u(a >>> 18 == 0);
|
|
36614
36838
|
for (let t = 0; t < 18; t++) {
|
|
36615
|
-
const o = l(a, t), s = this.size - 11 + t % 3,
|
|
36616
|
-
this.setFunctionModule(s,
|
|
36839
|
+
const o = l(a, t), s = this.size - 11 + t % 3, p = Math.floor(t / 3);
|
|
36840
|
+
this.setFunctionModule(s, p, o), this.setFunctionModule(p, s, o);
|
|
36617
36841
|
}
|
|
36618
36842
|
}
|
|
36619
36843
|
// Draws a 9*9 finder pattern including the border separator,
|
|
@@ -36621,8 +36845,8 @@ var xa;
|
|
|
36621
36845
|
drawFinderPattern(r, a) {
|
|
36622
36846
|
for (let t = -4; t <= 4; t++)
|
|
36623
36847
|
for (let o = -4; o <= 4; o++) {
|
|
36624
|
-
const s = Math.max(Math.abs(o), Math.abs(t)),
|
|
36625
|
-
0 <=
|
|
36848
|
+
const s = Math.max(Math.abs(o), Math.abs(t)), p = r + o, m = a + t;
|
|
36849
|
+
0 <= p && p < this.size && 0 <= m && m < this.size && this.setFunctionModule(p, m, s != 2 && s != 4);
|
|
36626
36850
|
}
|
|
36627
36851
|
}
|
|
36628
36852
|
// Draws a 5*5 alignment pattern, with the center module
|
|
@@ -36644,7 +36868,7 @@ var xa;
|
|
|
36644
36868
|
const a = this.version, t = this.errorCorrectionLevel;
|
|
36645
36869
|
if (r.length != Y.getNumDataCodewords(a, t))
|
|
36646
36870
|
throw new RangeError("Invalid argument");
|
|
36647
|
-
const o = Y.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][a], s = Y.ECC_CODEWORDS_PER_BLOCK[t.ordinal][a],
|
|
36871
|
+
const o = Y.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][a], s = Y.ECC_CODEWORDS_PER_BLOCK[t.ordinal][a], p = Math.floor(Y.getNumRawDataModules(a) / 8), m = o - p % o, c = Math.floor(p / o);
|
|
36648
36872
|
let f = [];
|
|
36649
36873
|
const y = Y.reedSolomonComputeDivisor(s);
|
|
36650
36874
|
for (let U = 0, C = 0; U < o; U++) {
|
|
@@ -36658,7 +36882,7 @@ var xa;
|
|
|
36658
36882
|
f.forEach((C, v) => {
|
|
36659
36883
|
(U != c - s || v >= m) && _.push(C[U]);
|
|
36660
36884
|
});
|
|
36661
|
-
return
|
|
36885
|
+
return u(_.length == p), _;
|
|
36662
36886
|
}
|
|
36663
36887
|
// Draws the given sequence of 8-bit codewords (data and error correction) onto the entire
|
|
36664
36888
|
// data area of this QR Code. Function modules need to be marked off before this is called.
|
|
@@ -36670,11 +36894,11 @@ var xa;
|
|
|
36670
36894
|
t == 6 && (t = 5);
|
|
36671
36895
|
for (let o = 0; o < this.size; o++)
|
|
36672
36896
|
for (let s = 0; s < 2; s++) {
|
|
36673
|
-
const
|
|
36674
|
-
!this.isFunction[c][
|
|
36897
|
+
const p = t - s, c = (t + 1 & 2) == 0 ? this.size - 1 - o : o;
|
|
36898
|
+
!this.isFunction[c][p] && a < r.length * 8 && (this.modules[c][p] = l(r[a >>> 3], 7 - (a & 7)), a++);
|
|
36675
36899
|
}
|
|
36676
36900
|
}
|
|
36677
|
-
|
|
36901
|
+
u(a == r.length * 8);
|
|
36678
36902
|
}
|
|
36679
36903
|
// XORs the codeword modules in this QR Code with the given mask pattern.
|
|
36680
36904
|
// The function modules must be marked and the codeword bits must be drawn
|
|
@@ -36723,27 +36947,27 @@ var xa;
|
|
|
36723
36947
|
getPenaltyScore() {
|
|
36724
36948
|
let r = 0;
|
|
36725
36949
|
for (let s = 0; s < this.size; s++) {
|
|
36726
|
-
let
|
|
36950
|
+
let p = !1, m = 0, c = [0, 0, 0, 0, 0, 0, 0];
|
|
36727
36951
|
for (let f = 0; f < this.size; f++)
|
|
36728
|
-
this.modules[s][f] ==
|
|
36729
|
-
r += this.finderPenaltyTerminateAndCount(
|
|
36952
|
+
this.modules[s][f] == p ? (m++, m == 5 ? r += Y.PENALTY_N1 : m > 5 && r++) : (this.finderPenaltyAddHistory(m, c), p || (r += this.finderPenaltyCountPatterns(c) * Y.PENALTY_N3), p = this.modules[s][f], m = 1);
|
|
36953
|
+
r += this.finderPenaltyTerminateAndCount(p, m, c) * Y.PENALTY_N3;
|
|
36730
36954
|
}
|
|
36731
36955
|
for (let s = 0; s < this.size; s++) {
|
|
36732
|
-
let
|
|
36956
|
+
let p = !1, m = 0, c = [0, 0, 0, 0, 0, 0, 0];
|
|
36733
36957
|
for (let f = 0; f < this.size; f++)
|
|
36734
|
-
this.modules[f][s] ==
|
|
36735
|
-
r += this.finderPenaltyTerminateAndCount(
|
|
36958
|
+
this.modules[f][s] == p ? (m++, m == 5 ? r += Y.PENALTY_N1 : m > 5 && r++) : (this.finderPenaltyAddHistory(m, c), p || (r += this.finderPenaltyCountPatterns(c) * Y.PENALTY_N3), p = this.modules[f][s], m = 1);
|
|
36959
|
+
r += this.finderPenaltyTerminateAndCount(p, m, c) * Y.PENALTY_N3;
|
|
36736
36960
|
}
|
|
36737
36961
|
for (let s = 0; s < this.size - 1; s++)
|
|
36738
|
-
for (let
|
|
36739
|
-
const m = this.modules[s][
|
|
36740
|
-
m == this.modules[s][
|
|
36962
|
+
for (let p = 0; p < this.size - 1; p++) {
|
|
36963
|
+
const m = this.modules[s][p];
|
|
36964
|
+
m == this.modules[s][p + 1] && m == this.modules[s + 1][p] && m == this.modules[s + 1][p + 1] && (r += Y.PENALTY_N2);
|
|
36741
36965
|
}
|
|
36742
36966
|
let a = 0;
|
|
36743
36967
|
for (const s of this.modules)
|
|
36744
|
-
a = s.reduce((
|
|
36968
|
+
a = s.reduce((p, m) => p + (m ? 1 : 0), a);
|
|
36745
36969
|
const t = this.size * this.size, o = Math.ceil(Math.abs(a * 20 - t * 10) / t) - 1;
|
|
36746
|
-
return
|
|
36970
|
+
return u(0 <= o && o <= 9), r += o * Y.PENALTY_N4, u(0 <= r && r <= 2568888), r;
|
|
36747
36971
|
}
|
|
36748
36972
|
/*-- Private helper functions --*/
|
|
36749
36973
|
// Returns an ascending list of positions of alignment patterns for this version number.
|
|
@@ -36771,7 +36995,7 @@ var xa;
|
|
|
36771
36995
|
const t = Math.floor(r / 7) + 2;
|
|
36772
36996
|
a -= (25 * t - 10) * t - 55, r >= 7 && (a -= 36);
|
|
36773
36997
|
}
|
|
36774
|
-
return
|
|
36998
|
+
return u(208 <= a && a <= 29648), a;
|
|
36775
36999
|
}
|
|
36776
37000
|
// Returns the number of 8-bit data (i.e. not error correction) codewords contained in any
|
|
36777
37001
|
// QR Code of the given version number and error correction level, with remainder bits discarded.
|
|
@@ -36801,7 +37025,7 @@ var xa;
|
|
|
36801
37025
|
let t = a.map((o) => 0);
|
|
36802
37026
|
for (const o of r) {
|
|
36803
37027
|
const s = o ^ t.shift();
|
|
36804
|
-
t.push(0), a.forEach((
|
|
37028
|
+
t.push(0), a.forEach((p, m) => t[m] ^= Y.reedSolomonMultiply(p, s));
|
|
36805
37029
|
}
|
|
36806
37030
|
return t;
|
|
36807
37031
|
}
|
|
@@ -36813,13 +37037,13 @@ var xa;
|
|
|
36813
37037
|
let t = 0;
|
|
36814
37038
|
for (let o = 7; o >= 0; o--)
|
|
36815
37039
|
t = t << 1 ^ (t >>> 7) * 285, t ^= (a >>> o & 1) * r;
|
|
36816
|
-
return
|
|
37040
|
+
return u(t >>> 8 == 0), t;
|
|
36817
37041
|
}
|
|
36818
37042
|
// Can only be called immediately after a light run is added, and
|
|
36819
37043
|
// returns either 0, 1, or 2. A helper function for getPenaltyScore().
|
|
36820
37044
|
finderPenaltyCountPatterns(r) {
|
|
36821
37045
|
const a = r[1];
|
|
36822
|
-
|
|
37046
|
+
u(a <= this.size * 3);
|
|
36823
37047
|
const t = a > 0 && r[2] == a && r[3] == a * 3 && r[4] == a && r[5] == a;
|
|
36824
37048
|
return (t && r[0] >= a * 4 && r[6] >= a ? 1 : 0) + (t && r[6] >= a * 4 && r[0] >= a ? 1 : 0);
|
|
36825
37049
|
}
|
|
@@ -36864,7 +37088,7 @@ var xa;
|
|
|
36864
37088
|
function l(d, r) {
|
|
36865
37089
|
return (d >>> r & 1) != 0;
|
|
36866
37090
|
}
|
|
36867
|
-
function
|
|
37091
|
+
function u(d) {
|
|
36868
37092
|
if (!d)
|
|
36869
37093
|
throw new Error("Assertion error");
|
|
36870
37094
|
}
|
|
@@ -36979,8 +37203,8 @@ var xa;
|
|
|
36979
37203
|
const i = class {
|
|
36980
37204
|
// The QR Code can tolerate about 30% erroneous codewords
|
|
36981
37205
|
/*-- Constructor and fields --*/
|
|
36982
|
-
constructor(
|
|
36983
|
-
this.ordinal =
|
|
37206
|
+
constructor(u, g) {
|
|
37207
|
+
this.ordinal = u, this.formatBits = g;
|
|
36984
37208
|
}
|
|
36985
37209
|
};
|
|
36986
37210
|
i.LOW = new i(0, 1), i.MEDIUM = new i(1, 0), i.QUARTILE = new i(2, 3), i.HIGH = new i(3, 2), n.Ecc = i;
|
|
@@ -36990,14 +37214,14 @@ var xa;
|
|
|
36990
37214
|
((n) => {
|
|
36991
37215
|
const i = class {
|
|
36992
37216
|
/*-- Constructor and fields --*/
|
|
36993
|
-
constructor(
|
|
36994
|
-
this.modeBits =
|
|
37217
|
+
constructor(u, g) {
|
|
37218
|
+
this.modeBits = u, this.numBitsCharCount = g;
|
|
36995
37219
|
}
|
|
36996
37220
|
/*-- Method --*/
|
|
36997
37221
|
// (Package-private) Returns the bit width of the character count field for a segment in
|
|
36998
37222
|
// this mode in a QR Code at the given version number. The result is in the range [0, 16].
|
|
36999
|
-
numCharCountBits(
|
|
37000
|
-
return this.numBitsCharCount[Math.floor((
|
|
37223
|
+
numCharCountBits(u) {
|
|
37224
|
+
return this.numBitsCharCount[Math.floor((u + 7) / 17)];
|
|
37001
37225
|
}
|
|
37002
37226
|
};
|
|
37003
37227
|
i.NUMERIC = new i(1, [10, 12, 14]), i.ALPHANUMERIC = new i(2, [9, 11, 13]), i.BYTE = new i(4, [8, 16, 16]), i.KANJI = new i(8, [8, 10, 12]), i.ECI = new i(7, [0, 0, 0]), n.Mode = i;
|
|
@@ -37012,20 +37236,20 @@ var nm = {
|
|
|
37012
37236
|
}, xl = 128, Sl = "L", Dl = "#FFFFFF", El = "#000000", Nl = !1, Ll = 1, lm = 4, rm = 0, om = 0.1;
|
|
37013
37237
|
function Gl(e, n = 0) {
|
|
37014
37238
|
const i = [];
|
|
37015
|
-
return e.forEach(function(l,
|
|
37239
|
+
return e.forEach(function(l, u) {
|
|
37016
37240
|
let g = null;
|
|
37017
37241
|
l.forEach(function(b, d) {
|
|
37018
37242
|
if (!b && g !== null) {
|
|
37019
37243
|
i.push(
|
|
37020
|
-
`M${g + n} ${
|
|
37244
|
+
`M${g + n} ${u + n}h${d - g}v1H${g + n}z`
|
|
37021
37245
|
), g = null;
|
|
37022
37246
|
return;
|
|
37023
37247
|
}
|
|
37024
37248
|
if (d === l.length - 1) {
|
|
37025
37249
|
if (!b)
|
|
37026
37250
|
return;
|
|
37027
|
-
g === null ? i.push(`M${d + n},${
|
|
37028
|
-
`M${g + n},${
|
|
37251
|
+
g === null ? i.push(`M${d + n},${u + n} h1v1H${d + n}z`) : i.push(
|
|
37252
|
+
`M${g + n},${u + n} h${d + 1 - g}v1H${g + n}z`
|
|
37029
37253
|
);
|
|
37030
37254
|
return;
|
|
37031
37255
|
}
|
|
@@ -37034,19 +37258,19 @@ function Gl(e, n = 0) {
|
|
|
37034
37258
|
}), i.join("");
|
|
37035
37259
|
}
|
|
37036
37260
|
function Ml(e, n) {
|
|
37037
|
-
return e.slice().map((i, l) => l < n.y || l >= n.y + n.h ? i : i.map((
|
|
37261
|
+
return e.slice().map((i, l) => l < n.y || l >= n.y + n.h ? i : i.map((u, g) => g < n.x || g >= n.x + n.w ? u : !1));
|
|
37038
37262
|
}
|
|
37039
37263
|
function sm(e, n, i, l) {
|
|
37040
37264
|
if (l == null)
|
|
37041
37265
|
return null;
|
|
37042
|
-
const
|
|
37266
|
+
const u = e.length + i * 2, g = Math.floor(n * om), b = u / n, d = (l.width || g) * b, r = (l.height || g) * b, a = l.x == null ? e.length / 2 - d / 2 : l.x * b, t = l.y == null ? e.length / 2 - r / 2 : l.y * b, o = l.opacity == null ? 1 : l.opacity;
|
|
37043
37267
|
let s = null;
|
|
37044
37268
|
if (l.excavate) {
|
|
37045
37269
|
let m = Math.floor(a), c = Math.floor(t), f = Math.ceil(d + a - m), y = Math.ceil(r + t - c);
|
|
37046
37270
|
s = { x: m, y: c, w: f, h: y };
|
|
37047
37271
|
}
|
|
37048
|
-
const
|
|
37049
|
-
return { x: a, y: t, h: r, w: d, excavation: s, opacity: o, crossOrigin:
|
|
37272
|
+
const p = l.crossOrigin;
|
|
37273
|
+
return { x: a, y: t, h: r, w: d, excavation: s, opacity: o, crossOrigin: p };
|
|
37050
37274
|
}
|
|
37051
37275
|
function mm(e, n) {
|
|
37052
37276
|
return n != null ? Math.max(Math.floor(n), 0) : e ? lm : rm;
|
|
@@ -37056,7 +37280,7 @@ function Rl({
|
|
|
37056
37280
|
level: n,
|
|
37057
37281
|
minVersion: i,
|
|
37058
37282
|
includeMargin: l,
|
|
37059
|
-
marginSize:
|
|
37283
|
+
marginSize: u,
|
|
37060
37284
|
imageSettings: g,
|
|
37061
37285
|
size: b,
|
|
37062
37286
|
boostLevel: d
|
|
@@ -37073,20 +37297,20 @@ function Rl({
|
|
|
37073
37297
|
);
|
|
37074
37298
|
}, [e, n, i, d]);
|
|
37075
37299
|
const { cells: a, margin: t, numCells: o, calculatedImageSettings: s } = de.useMemo(() => {
|
|
37076
|
-
let
|
|
37077
|
-
const m = mm(l,
|
|
37078
|
-
|
|
37300
|
+
let p = r.getModules();
|
|
37301
|
+
const m = mm(l, u), c = p.length + m * 2, f = sm(
|
|
37302
|
+
p,
|
|
37079
37303
|
b,
|
|
37080
37304
|
m,
|
|
37081
37305
|
g
|
|
37082
37306
|
);
|
|
37083
37307
|
return {
|
|
37084
|
-
cells:
|
|
37308
|
+
cells: p,
|
|
37085
37309
|
margin: m,
|
|
37086
37310
|
numCells: c,
|
|
37087
37311
|
calculatedImageSettings: f
|
|
37088
37312
|
};
|
|
37089
|
-
}, [r, b, g, l,
|
|
37313
|
+
}, [r, b, g, l, u]);
|
|
37090
37314
|
return {
|
|
37091
37315
|
qrcode: r,
|
|
37092
37316
|
margin: t,
|
|
@@ -37105,7 +37329,7 @@ var um = (function() {
|
|
|
37105
37329
|
})(), pm = de.forwardRef(
|
|
37106
37330
|
function(n, i) {
|
|
37107
37331
|
const l = n, {
|
|
37108
|
-
value:
|
|
37332
|
+
value: u,
|
|
37109
37333
|
size: g = xl,
|
|
37110
37334
|
level: b = Sl,
|
|
37111
37335
|
bgColor: d = Dl,
|
|
@@ -37114,7 +37338,7 @@ var um = (function() {
|
|
|
37114
37338
|
minVersion: t = Ll,
|
|
37115
37339
|
boostLevel: o,
|
|
37116
37340
|
marginSize: s,
|
|
37117
|
-
imageSettings:
|
|
37341
|
+
imageSettings: p
|
|
37118
37342
|
} = l, c = mt(l, [
|
|
37119
37343
|
"value",
|
|
37120
37344
|
"size",
|
|
@@ -37126,19 +37350,19 @@ var um = (function() {
|
|
|
37126
37350
|
"boostLevel",
|
|
37127
37351
|
"marginSize",
|
|
37128
37352
|
"imageSettings"
|
|
37129
|
-
]), { style: f } = c, y = mt(c, ["style"]), _ =
|
|
37353
|
+
]), { style: f } = c, y = mt(c, ["style"]), _ = p?.src, U = de.useRef(null), C = de.useRef(null), v = de.useCallback(
|
|
37130
37354
|
(w) => {
|
|
37131
37355
|
U.current = w, typeof i == "function" ? i(w) : i && (i.current = w);
|
|
37132
37356
|
},
|
|
37133
37357
|
[i]
|
|
37134
37358
|
), [x, D] = de.useState(!1), { margin: M, cells: H, numCells: k, calculatedImageSettings: T } = Rl({
|
|
37135
|
-
value:
|
|
37359
|
+
value: u,
|
|
37136
37360
|
level: b,
|
|
37137
37361
|
minVersion: t,
|
|
37138
37362
|
boostLevel: o,
|
|
37139
37363
|
includeMargin: a,
|
|
37140
37364
|
marginSize: s,
|
|
37141
|
-
imageSettings:
|
|
37365
|
+
imageSettings: p,
|
|
37142
37366
|
size: g
|
|
37143
37367
|
});
|
|
37144
37368
|
de.useEffect(() => {
|
|
@@ -37200,7 +37424,7 @@ pm.displayName = "QRCodeCanvas";
|
|
|
37200
37424
|
var Pl = de.forwardRef(
|
|
37201
37425
|
function(n, i) {
|
|
37202
37426
|
const l = n, {
|
|
37203
|
-
value:
|
|
37427
|
+
value: u,
|
|
37204
37428
|
size: g = xl,
|
|
37205
37429
|
level: b = Sl,
|
|
37206
37430
|
bgColor: d = Dl,
|
|
@@ -37209,7 +37433,7 @@ var Pl = de.forwardRef(
|
|
|
37209
37433
|
minVersion: t = Ll,
|
|
37210
37434
|
boostLevel: o,
|
|
37211
37435
|
title: s,
|
|
37212
|
-
marginSize:
|
|
37436
|
+
marginSize: p,
|
|
37213
37437
|
imageSettings: m
|
|
37214
37438
|
} = l, c = mt(l, [
|
|
37215
37439
|
"value",
|
|
@@ -37224,12 +37448,12 @@ var Pl = de.forwardRef(
|
|
|
37224
37448
|
"marginSize",
|
|
37225
37449
|
"imageSettings"
|
|
37226
37450
|
]), { margin: f, cells: y, numCells: _, calculatedImageSettings: U } = Rl({
|
|
37227
|
-
value:
|
|
37451
|
+
value: u,
|
|
37228
37452
|
level: b,
|
|
37229
37453
|
minVersion: t,
|
|
37230
37454
|
boostLevel: o,
|
|
37231
37455
|
includeMargin: a,
|
|
37232
|
-
marginSize:
|
|
37456
|
+
marginSize: p,
|
|
37233
37457
|
imageSettings: m,
|
|
37234
37458
|
size: g
|
|
37235
37459
|
});
|
|
@@ -37320,12 +37544,12 @@ const gm = {
|
|
|
37320
37544
|
expired: "Kode QR telah kedaluwarsa"
|
|
37321
37545
|
}
|
|
37322
37546
|
}, bu = ({ forcedShow: e = !1, isVisible: n, setIsVisible: i } = {}) => {
|
|
37323
|
-
const { lng: l, getToken:
|
|
37547
|
+
const { lng: l, getToken: u, lineConfig: g } = oe(), [b, d] = tt(300), [r, a] = tt(!1), t = ee(null), o = re(g, "liffId", ""), s = $e(l), p = u?.(), c = new URLSearchParams(window.location.search).get("mac") || lt.get("machine_mac_address") || "", { data: f, isFetching: y } = Wo({
|
|
37324
37548
|
formData: {
|
|
37325
37549
|
mac_address: c
|
|
37326
37550
|
},
|
|
37327
37551
|
options: {
|
|
37328
|
-
enabled: e ? !0 : !!c && !
|
|
37552
|
+
enabled: e ? !0 : !!c && !p
|
|
37329
37553
|
}
|
|
37330
37554
|
}), _ = re(f, "liff_url", "") || `https://liff.line.me/${o}`;
|
|
37331
37555
|
ge(() => {
|
|
@@ -37339,7 +37563,7 @@ const gm = {
|
|
|
37339
37563
|
const x = Math.floor(v / 60), D = v % 60;
|
|
37340
37564
|
return `${x}:${D < 10 ? "0" : ""}${D}`;
|
|
37341
37565
|
};
|
|
37342
|
-
if (!e && (!c ||
|
|
37566
|
+
if (!e && (!c || p)) return null;
|
|
37343
37567
|
const C = Bn[s] || Bn.en_US;
|
|
37344
37568
|
return n && /* @__PURE__ */ Fe.jsxs("div", { style: gm, children: [
|
|
37345
37569
|
/* @__PURE__ */ Fe.jsx(
|
|
@@ -37389,7 +37613,7 @@ const gm = {
|
|
|
37389
37613
|
mutate: n,
|
|
37390
37614
|
isPending: i,
|
|
37391
37615
|
isSuccess: l,
|
|
37392
|
-
isError:
|
|
37616
|
+
isError: u,
|
|
37393
37617
|
error: g
|
|
37394
37618
|
} = zo({
|
|
37395
37619
|
options: {
|