@obb871001/api-integration-sdk 1.0.325 → 1.0.327
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 +1 -1
- package/dist/index.js +521 -519
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import de, { createContext as qt, useContext as ci, useState as oi, useMemo as Oa, useCallback as I, useRef as ee, useEffect as ge } from "react";
|
|
2
|
-
import { useQueries as Wn, useQuery as j, useQueryClient as fi, useMutation as
|
|
2
|
+
import { useQueries as Wn, useQuery as j, useQueryClient as fi, useMutation as le, QueryClient as Ol, QueryClientProvider as Bl } from "@tanstack/react-query";
|
|
3
3
|
import Hl from "axios";
|
|
4
|
-
import { get as
|
|
5
|
-
import
|
|
4
|
+
import { get as re, find as $e, isEmpty as Ee, entries as zn, forEach as Wl, map as Be, isArray as la, toLower as Di, omit as zl, replace as at, includes as Il, isObject as $t, flatMap as Qt, values as Vl, keys as Ei } from "lodash";
|
|
5
|
+
import Jl from "react-dom";
|
|
6
6
|
var ei = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7
7
|
function _i(e) {
|
|
8
8
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function Zl(e) {
|
|
11
11
|
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
12
12
|
var n = e.default;
|
|
13
13
|
if (typeof n == "function") {
|
|
@@ -33,7 +33,7 @@ function Kl(e) {
|
|
|
33
33
|
}
|
|
34
34
|
var tt = { exports: {} }, Ja = {};
|
|
35
35
|
var Ni;
|
|
36
|
-
function
|
|
36
|
+
function Kl() {
|
|
37
37
|
if (Ni) return Ja;
|
|
38
38
|
Ni = 1;
|
|
39
39
|
var e = de, n = Symbol.for("react.element"), t = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, p = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
@@ -48,7 +48,7 @@ function ql() {
|
|
|
48
48
|
}
|
|
49
49
|
var Za = {};
|
|
50
50
|
var Li;
|
|
51
|
-
function
|
|
51
|
+
function ql() {
|
|
52
52
|
return Li || (Li = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
53
53
|
var e = de, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), p = 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"), i = Symbol.for("react.suspense_list"), o = Symbol.for("react.memo"), s = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), m = Symbol.iterator, c = "@@iterator";
|
|
54
54
|
function f(T) {
|
|
@@ -638,10 +638,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
638
638
|
})()), Za;
|
|
639
639
|
}
|
|
640
640
|
var Gi;
|
|
641
|
-
function
|
|
642
|
-
return Gi || (Gi = 1, process.env.NODE_ENV === "production" ? tt.exports =
|
|
641
|
+
function $l() {
|
|
642
|
+
return Gi || (Gi = 1, process.env.NODE_ENV === "production" ? tt.exports = Kl() : tt.exports = ql()), tt.exports;
|
|
643
643
|
}
|
|
644
|
-
var Fe =
|
|
644
|
+
var Fe = $l();
|
|
645
645
|
const In = qt(null), se = () => {
|
|
646
646
|
const e = ci(In);
|
|
647
647
|
if (!e)
|
|
@@ -650,7 +650,7 @@ const In = qt(null), se = () => {
|
|
|
650
650
|
}, Ka = {
|
|
651
651
|
READY: "ready",
|
|
652
652
|
PENDING: "pending"
|
|
653
|
-
}, Vn = qt(null),
|
|
653
|
+
}, Vn = qt(null), Ql = ({ children: e }) => {
|
|
654
654
|
const [n, t] = oi(Ka.PENDING), l = Oa(() => {
|
|
655
655
|
const p = n === Ka.READY, g = n === Ka.PENDING;
|
|
656
656
|
return {
|
|
@@ -724,7 +724,7 @@ function Mi({
|
|
|
724
724
|
}), a.interceptors.response.use(
|
|
725
725
|
(i) => i.data,
|
|
726
726
|
(i) => {
|
|
727
|
-
const o =
|
|
727
|
+
const o = re(
|
|
728
728
|
i,
|
|
729
729
|
"response.data.message",
|
|
730
730
|
"發生錯誤,請稍後再試。"
|
|
@@ -745,14 +745,14 @@ function Mi({
|
|
|
745
745
|
}
|
|
746
746
|
), a;
|
|
747
747
|
}
|
|
748
|
-
const $n = qt(null),
|
|
748
|
+
const $n = qt(null), Cm = () => {
|
|
749
749
|
const e = ci($n);
|
|
750
750
|
if (!e)
|
|
751
751
|
throw new Error(
|
|
752
752
|
"useGameInfoContext must be used within a GameInfoCtx.Provider"
|
|
753
753
|
);
|
|
754
754
|
return e;
|
|
755
|
-
},
|
|
755
|
+
}, vm = () => {
|
|
756
756
|
const e = (l, p) => !l && !p, n = (l) => l.startsWith("pc.");
|
|
757
757
|
return {
|
|
758
758
|
executeLogout: ({
|
|
@@ -771,17 +771,17 @@ const $n = qt(null), vm = () => {
|
|
|
771
771
|
shouldShowErrorNotice: e,
|
|
772
772
|
isMachineDomain: n
|
|
773
773
|
};
|
|
774
|
-
},
|
|
774
|
+
}, hm = (e) => {
|
|
775
775
|
let n = Number(e);
|
|
776
776
|
return isNaN(n) ? e : new Intl.NumberFormat("en-US", {
|
|
777
777
|
style: "decimal",
|
|
778
778
|
minimumFractionDigits: 2,
|
|
779
779
|
maximumFractionDigits: 2
|
|
780
780
|
}).format(n);
|
|
781
|
-
}, Qn = (e = [], n) => $e(e, { gameTypeName: n })?.gameTypeUid, jn = (e = [], n) => $e(e, { platform: n })?.platformUid, Yn = (e = [], n) => $e(e, { SubPlatformEnum: n }), Xn = (e = [], n, t) => Ee(e) ? [] : e.filter((l) => t ? String(l?.SubPlatformEnumUid) === String(t?.SubPlatformEnumUid) : String(l.platformUid) === String(n)),
|
|
781
|
+
}, Qn = (e = [], n) => $e(e, { gameTypeName: n })?.gameTypeUid, jn = (e = [], n) => $e(e, { platform: n })?.platformUid, Yn = (e = [], n) => $e(e, { SubPlatformEnum: n }), Xn = (e = [], n, t) => Ee(e) ? [] : e.filter((l) => t ? String(l?.SubPlatformEnumUid) === String(t?.SubPlatformEnumUid) : String(l.platformUid) === String(n)), jl = (e = []) => Ee(e) ? {} : e.reduce((n, t) => {
|
|
782
782
|
const l = t?.game_subtype || "UNKNOWN";
|
|
783
783
|
return n[l] || (n[l] = []), n[l].push(t), n;
|
|
784
|
-
}, {}),
|
|
784
|
+
}, {}), Yl = ({
|
|
785
785
|
gameTypeName: e,
|
|
786
786
|
platforms: n,
|
|
787
787
|
gameList: t,
|
|
@@ -797,7 +797,7 @@ const $n = qt(null), vm = () => {
|
|
|
797
797
|
);
|
|
798
798
|
return Ee(o) || (b[d] = o), b;
|
|
799
799
|
}, {}) : {};
|
|
800
|
-
},
|
|
800
|
+
}, Xl = ({
|
|
801
801
|
platformName: e,
|
|
802
802
|
gamesOfType: n = [],
|
|
803
803
|
allPlatforms: t = []
|
|
@@ -807,14 +807,14 @@ const $n = qt(null), vm = () => {
|
|
|
807
807
|
l,
|
|
808
808
|
p
|
|
809
809
|
);
|
|
810
|
-
return
|
|
810
|
+
return jl(g);
|
|
811
811
|
};
|
|
812
|
-
var st = { exports: {} },
|
|
813
|
-
function
|
|
812
|
+
var st = { exports: {} }, er = st.exports, Ri;
|
|
813
|
+
function ar() {
|
|
814
814
|
return Ri || (Ri = 1, (function(e, n) {
|
|
815
815
|
(function(t, l) {
|
|
816
816
|
e.exports = l();
|
|
817
|
-
})(
|
|
817
|
+
})(er, (function() {
|
|
818
818
|
var t = 1e3, l = 6e4, p = 36e5, g = "millisecond", b = "second", d = "minute", r = "hour", a = "day", i = "week", o = "month", s = "quarter", u = "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"], P = w % 100;
|
|
820
820
|
return "[" + w + (R[(P - 20) % 10] || R[P] || R[0]) + "]";
|
|
@@ -1087,28 +1087,28 @@ function tr() {
|
|
|
1087
1087
|
}));
|
|
1088
1088
|
})(st)), st.exports;
|
|
1089
1089
|
}
|
|
1090
|
-
var
|
|
1091
|
-
const we = /* @__PURE__ */ _i(
|
|
1090
|
+
var tr = ar();
|
|
1091
|
+
const we = /* @__PURE__ */ _i(tr);
|
|
1092
1092
|
var mt = { exports: {} };
|
|
1093
|
-
function
|
|
1093
|
+
function ir(e) {
|
|
1094
1094
|
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
1095
1095
|
}
|
|
1096
1096
|
var ut = { exports: {} };
|
|
1097
|
-
const
|
|
1097
|
+
const nr = {}, lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1098
1098
|
__proto__: null,
|
|
1099
|
-
default:
|
|
1100
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1101
|
-
var
|
|
1099
|
+
default: nr
|
|
1100
|
+
}, Symbol.toStringTag, { value: "Module" })), rr = /* @__PURE__ */ Zl(lr);
|
|
1101
|
+
var or = ut.exports, Pi;
|
|
1102
1102
|
function te() {
|
|
1103
1103
|
return Pi || (Pi = 1, (function(e, n) {
|
|
1104
1104
|
(function(t, l) {
|
|
1105
1105
|
e.exports = l();
|
|
1106
|
-
})(
|
|
1106
|
+
})(or, function() {
|
|
1107
1107
|
var t = t || (function(l, p) {
|
|
1108
1108
|
var g;
|
|
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 ei < "u" && ei.crypto && (g = ei.crypto), !g && typeof
|
|
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 ei < "u" && ei.crypto && (g = ei.crypto), !g && typeof ir == "function")
|
|
1110
1110
|
try {
|
|
1111
|
-
g =
|
|
1111
|
+
g = rr;
|
|
1112
1112
|
} catch {
|
|
1113
1113
|
}
|
|
1114
1114
|
var b = function() {
|
|
@@ -1599,12 +1599,12 @@ function te() {
|
|
|
1599
1599
|
});
|
|
1600
1600
|
})(ut)), ut.exports;
|
|
1601
1601
|
}
|
|
1602
|
-
var pt = { exports: {} },
|
|
1602
|
+
var pt = { exports: {} }, sr = pt.exports, wi;
|
|
1603
1603
|
function jt() {
|
|
1604
1604
|
return wi || (wi = 1, (function(e, n) {
|
|
1605
1605
|
(function(t, l) {
|
|
1606
1606
|
e.exports = l(te());
|
|
1607
|
-
})(
|
|
1607
|
+
})(sr, function(t) {
|
|
1608
1608
|
return (function(l) {
|
|
1609
1609
|
var p = t, g = p.lib, b = g.Base, d = g.WordArray, r = p.x64 = {};
|
|
1610
1610
|
r.Word = b.extend({
|
|
@@ -1829,12 +1829,12 @@ function jt() {
|
|
|
1829
1829
|
});
|
|
1830
1830
|
})(pt)), pt.exports;
|
|
1831
1831
|
}
|
|
1832
|
-
var gt = { exports: {} },
|
|
1833
|
-
function
|
|
1832
|
+
var gt = { exports: {} }, mr = gt.exports, Fi;
|
|
1833
|
+
function ur() {
|
|
1834
1834
|
return Fi || (Fi = 1, (function(e, n) {
|
|
1835
1835
|
(function(t, l) {
|
|
1836
1836
|
e.exports = l(te());
|
|
1837
|
-
})(
|
|
1837
|
+
})(mr, function(t) {
|
|
1838
1838
|
return (function() {
|
|
1839
1839
|
if (typeof ArrayBuffer == "function") {
|
|
1840
1840
|
var l = t, p = l.lib, g = p.WordArray, b = g.init, d = g.init = function(r) {
|
|
@@ -1851,12 +1851,12 @@ function pr() {
|
|
|
1851
1851
|
});
|
|
1852
1852
|
})(gt)), gt.exports;
|
|
1853
1853
|
}
|
|
1854
|
-
var dt = { exports: {} },
|
|
1855
|
-
function
|
|
1854
|
+
var dt = { exports: {} }, pr = dt.exports, Ai;
|
|
1855
|
+
function gr() {
|
|
1856
1856
|
return Ai || (Ai = 1, (function(e, n) {
|
|
1857
1857
|
(function(t, l) {
|
|
1858
1858
|
e.exports = l(te());
|
|
1859
|
-
})(
|
|
1859
|
+
})(pr, function(t) {
|
|
1860
1860
|
return (function() {
|
|
1861
1861
|
var l = t, p = l.lib, g = p.WordArray, b = l.enc;
|
|
1862
1862
|
b.Utf16 = b.Utf16BE = {
|
|
@@ -1945,12 +1945,12 @@ function dr() {
|
|
|
1945
1945
|
});
|
|
1946
1946
|
})(dt)), dt.exports;
|
|
1947
1947
|
}
|
|
1948
|
-
var ct = { exports: {} },
|
|
1948
|
+
var ct = { exports: {} }, dr = ct.exports, Oi;
|
|
1949
1949
|
function xa() {
|
|
1950
1950
|
return Oi || (Oi = 1, (function(e, n) {
|
|
1951
1951
|
(function(t, l) {
|
|
1952
1952
|
e.exports = l(te());
|
|
1953
|
-
})(
|
|
1953
|
+
})(dr, function(t) {
|
|
1954
1954
|
return (function() {
|
|
1955
1955
|
var l = t, p = l.lib, g = p.WordArray, b = l.enc;
|
|
1956
1956
|
b.Base64 = {
|
|
@@ -2020,12 +2020,12 @@ function xa() {
|
|
|
2020
2020
|
});
|
|
2021
2021
|
})(ct)), ct.exports;
|
|
2022
2022
|
}
|
|
2023
|
-
var ft = { exports: {} },
|
|
2024
|
-
function
|
|
2023
|
+
var ft = { exports: {} }, cr = ft.exports, Bi;
|
|
2024
|
+
function fr() {
|
|
2025
2025
|
return Bi || (Bi = 1, (function(e, n) {
|
|
2026
2026
|
(function(t, l) {
|
|
2027
2027
|
e.exports = l(te());
|
|
2028
|
-
})(
|
|
2028
|
+
})(cr, function(t) {
|
|
2029
2029
|
return (function() {
|
|
2030
2030
|
var l = t, p = l.lib, g = p.WordArray, b = l.enc;
|
|
2031
2031
|
b.Base64url = {
|
|
@@ -2102,12 +2102,12 @@ function _r() {
|
|
|
2102
2102
|
});
|
|
2103
2103
|
})(ft)), ft.exports;
|
|
2104
2104
|
}
|
|
2105
|
-
var _t = { exports: {} },
|
|
2105
|
+
var _t = { exports: {} }, _r = _t.exports, Hi;
|
|
2106
2106
|
function Sa() {
|
|
2107
2107
|
return Hi || (Hi = 1, (function(e, n) {
|
|
2108
2108
|
(function(t, l) {
|
|
2109
2109
|
e.exports = l(te());
|
|
2110
|
-
})(
|
|
2110
|
+
})(_r, function(t) {
|
|
2111
2111
|
return (function(l) {
|
|
2112
2112
|
var p = t, g = p.lib, b = g.WordArray, d = g.Hasher, r = p.algo, a = [];
|
|
2113
2113
|
(function() {
|
|
@@ -2168,12 +2168,12 @@ function Sa() {
|
|
|
2168
2168
|
});
|
|
2169
2169
|
})(_t)), _t.exports;
|
|
2170
2170
|
}
|
|
2171
|
-
var yt = { exports: {} },
|
|
2171
|
+
var yt = { exports: {} }, yr = yt.exports, Wi;
|
|
2172
2172
|
function el() {
|
|
2173
2173
|
return Wi || (Wi = 1, (function(e, n) {
|
|
2174
2174
|
(function(t, l) {
|
|
2175
2175
|
e.exports = l(te());
|
|
2176
|
-
})(
|
|
2176
|
+
})(yr, function(t) {
|
|
2177
2177
|
return (function() {
|
|
2178
2178
|
var l = t, p = l.lib, g = p.WordArray, b = p.Hasher, d = l.algo, r = [], a = d.SHA1 = b.extend({
|
|
2179
2179
|
_doReset: function() {
|
|
@@ -2212,12 +2212,12 @@ function el() {
|
|
|
2212
2212
|
});
|
|
2213
2213
|
})(yt)), yt.exports;
|
|
2214
2214
|
}
|
|
2215
|
-
var Ut = { exports: {} },
|
|
2215
|
+
var Ut = { exports: {} }, Ur = Ut.exports, zi;
|
|
2216
2216
|
function yi() {
|
|
2217
2217
|
return zi || (zi = 1, (function(e, n) {
|
|
2218
2218
|
(function(t, l) {
|
|
2219
2219
|
e.exports = l(te());
|
|
2220
|
-
})(
|
|
2220
|
+
})(Ur, function(t) {
|
|
2221
2221
|
return (function(l) {
|
|
2222
2222
|
var p = t, g = p.lib, b = g.WordArray, d = g.Hasher, r = p.algo, a = [], i = [];
|
|
2223
2223
|
(function() {
|
|
@@ -2264,12 +2264,12 @@ function yi() {
|
|
|
2264
2264
|
});
|
|
2265
2265
|
})(Ut)), Ut.exports;
|
|
2266
2266
|
}
|
|
2267
|
-
var bt = { exports: {} },
|
|
2268
|
-
function
|
|
2267
|
+
var bt = { exports: {} }, br = bt.exports, Ii;
|
|
2268
|
+
function Cr() {
|
|
2269
2269
|
return Ii || (Ii = 1, (function(e, n) {
|
|
2270
2270
|
(function(t, l, p) {
|
|
2271
2271
|
e.exports = l(te(), yi());
|
|
2272
|
-
})(
|
|
2272
|
+
})(br, function(t) {
|
|
2273
2273
|
return (function() {
|
|
2274
2274
|
var l = t, p = l.lib, g = p.WordArray, b = l.algo, d = b.SHA256, r = b.SHA224 = d.extend({
|
|
2275
2275
|
_doReset: function() {
|
|
@@ -2294,12 +2294,12 @@ function vr() {
|
|
|
2294
2294
|
});
|
|
2295
2295
|
})(bt)), bt.exports;
|
|
2296
2296
|
}
|
|
2297
|
-
var Ct = { exports: {} },
|
|
2297
|
+
var Ct = { exports: {} }, vr = Ct.exports, Vi;
|
|
2298
2298
|
function al() {
|
|
2299
2299
|
return Vi || (Vi = 1, (function(e, n) {
|
|
2300
2300
|
(function(t, l, p) {
|
|
2301
2301
|
e.exports = l(te(), jt());
|
|
2302
|
-
})(
|
|
2302
|
+
})(vr, function(t) {
|
|
2303
2303
|
return (function() {
|
|
2304
2304
|
var l = t, p = l.lib, g = p.Hasher, b = l.x64, d = b.Word, r = b.WordArray, a = l.algo;
|
|
2305
2305
|
function i() {
|
|
@@ -2435,12 +2435,12 @@ function al() {
|
|
|
2435
2435
|
});
|
|
2436
2436
|
})(Ct)), Ct.exports;
|
|
2437
2437
|
}
|
|
2438
|
-
var vt = { exports: {} },
|
|
2439
|
-
function
|
|
2438
|
+
var vt = { exports: {} }, hr = vt.exports, Ji;
|
|
2439
|
+
function Tr() {
|
|
2440
2440
|
return Ji || (Ji = 1, (function(e, n) {
|
|
2441
2441
|
(function(t, l, p) {
|
|
2442
2442
|
e.exports = l(te(), jt(), al());
|
|
2443
|
-
})(
|
|
2443
|
+
})(hr, function(t) {
|
|
2444
2444
|
return (function() {
|
|
2445
2445
|
var l = t, p = l.x64, g = p.Word, b = p.WordArray, d = l.algo, r = d.SHA512, a = d.SHA384 = r.extend({
|
|
2446
2446
|
_doReset: function() {
|
|
@@ -2465,12 +2465,12 @@ function kr() {
|
|
|
2465
2465
|
});
|
|
2466
2466
|
})(vt)), vt.exports;
|
|
2467
2467
|
}
|
|
2468
|
-
var ht = { exports: {} },
|
|
2469
|
-
function
|
|
2468
|
+
var ht = { exports: {} }, kr = ht.exports, Zi;
|
|
2469
|
+
function xr() {
|
|
2470
2470
|
return Zi || (Zi = 1, (function(e, n) {
|
|
2471
2471
|
(function(t, l, p) {
|
|
2472
2472
|
e.exports = l(te(), jt());
|
|
2473
|
-
})(
|
|
2473
|
+
})(kr, function(t) {
|
|
2474
2474
|
return (function(l) {
|
|
2475
2475
|
var p = t, g = p.lib, b = g.WordArray, d = g.Hasher, r = p.x64, a = r.Word, i = p.algo, o = [], s = [], u = [];
|
|
2476
2476
|
(function() {
|
|
@@ -2575,12 +2575,12 @@ function Sr() {
|
|
|
2575
2575
|
});
|
|
2576
2576
|
})(ht)), ht.exports;
|
|
2577
2577
|
}
|
|
2578
|
-
var Tt = { exports: {} },
|
|
2579
|
-
function
|
|
2578
|
+
var Tt = { exports: {} }, Sr = Tt.exports, Ki;
|
|
2579
|
+
function Dr() {
|
|
2580
2580
|
return Ki || (Ki = 1, (function(e, n) {
|
|
2581
2581
|
(function(t, l) {
|
|
2582
2582
|
e.exports = l(te());
|
|
2583
|
-
})(
|
|
2583
|
+
})(Sr, function(t) {
|
|
2584
2584
|
return (function(l) {
|
|
2585
2585
|
var p = t, g = p.lib, b = g.WordArray, d = g.Hasher, r = p.algo, a = b.create([
|
|
2586
2586
|
0,
|
|
@@ -2958,12 +2958,12 @@ function Er() {
|
|
|
2958
2958
|
});
|
|
2959
2959
|
})(Tt)), Tt.exports;
|
|
2960
2960
|
}
|
|
2961
|
-
var kt = { exports: {} },
|
|
2961
|
+
var kt = { exports: {} }, Er = kt.exports, qi;
|
|
2962
2962
|
function Ui() {
|
|
2963
2963
|
return qi || (qi = 1, (function(e, n) {
|
|
2964
2964
|
(function(t, l) {
|
|
2965
2965
|
e.exports = l(te());
|
|
2966
|
-
})(
|
|
2966
|
+
})(Er, function(t) {
|
|
2967
2967
|
(function() {
|
|
2968
2968
|
var l = t, p = l.lib, g = p.Base, b = l.enc, d = b.Utf8, r = l.algo;
|
|
2969
2969
|
r.HMAC = g.extend({
|
|
@@ -3036,12 +3036,12 @@ function Ui() {
|
|
|
3036
3036
|
});
|
|
3037
3037
|
})(kt)), kt.exports;
|
|
3038
3038
|
}
|
|
3039
|
-
var xt = { exports: {} },
|
|
3040
|
-
function
|
|
3039
|
+
var xt = { exports: {} }, Nr = xt.exports, $i;
|
|
3040
|
+
function Lr() {
|
|
3041
3041
|
return $i || ($i = 1, (function(e, n) {
|
|
3042
3042
|
(function(t, l, p) {
|
|
3043
3043
|
e.exports = l(te(), yi(), Ui());
|
|
3044
|
-
})(
|
|
3044
|
+
})(Nr, function(t) {
|
|
3045
3045
|
return (function() {
|
|
3046
3046
|
var l = t, p = l.lib, g = p.Base, b = p.WordArray, d = l.algo, r = d.SHA256, a = d.HMAC, i = d.PBKDF2 = g.extend({
|
|
3047
3047
|
/**
|
|
@@ -3103,12 +3103,12 @@ function Gr() {
|
|
|
3103
3103
|
});
|
|
3104
3104
|
})(xt)), xt.exports;
|
|
3105
3105
|
}
|
|
3106
|
-
var St = { exports: {} },
|
|
3106
|
+
var St = { exports: {} }, Gr = St.exports, Qi;
|
|
3107
3107
|
function _a() {
|
|
3108
3108
|
return Qi || (Qi = 1, (function(e, n) {
|
|
3109
3109
|
(function(t, l, p) {
|
|
3110
3110
|
e.exports = l(te(), el(), Ui());
|
|
3111
|
-
})(
|
|
3111
|
+
})(Gr, function(t) {
|
|
3112
3112
|
return (function() {
|
|
3113
3113
|
var l = t, p = l.lib, g = p.Base, b = p.WordArray, d = l.algo, r = d.MD5, a = d.EvpKDF = g.extend({
|
|
3114
3114
|
/**
|
|
@@ -3166,12 +3166,12 @@ function _a() {
|
|
|
3166
3166
|
});
|
|
3167
3167
|
})(St)), St.exports;
|
|
3168
3168
|
}
|
|
3169
|
-
var Dt = { exports: {} },
|
|
3169
|
+
var Dt = { exports: {} }, Mr = Dt.exports, ji;
|
|
3170
3170
|
function Ne() {
|
|
3171
3171
|
return ji || (ji = 1, (function(e, n) {
|
|
3172
3172
|
(function(t, l, p) {
|
|
3173
3173
|
e.exports = l(te(), _a());
|
|
3174
|
-
})(
|
|
3174
|
+
})(Mr, function(t) {
|
|
3175
3175
|
t.lib.Cipher || (function(l) {
|
|
3176
3176
|
var p = t, g = p.lib, b = g.Base, d = g.WordArray, r = g.BufferedBlockAlgorithm, a = p.enc;
|
|
3177
3177
|
a.Utf8;
|
|
@@ -3704,12 +3704,12 @@ function Ne() {
|
|
|
3704
3704
|
});
|
|
3705
3705
|
})(Dt)), Dt.exports;
|
|
3706
3706
|
}
|
|
3707
|
-
var Et = { exports: {} },
|
|
3708
|
-
function
|
|
3707
|
+
var Et = { exports: {} }, Rr = Et.exports, Yi;
|
|
3708
|
+
function Pr() {
|
|
3709
3709
|
return Yi || (Yi = 1, (function(e, n) {
|
|
3710
3710
|
(function(t, l, p) {
|
|
3711
3711
|
e.exports = l(te(), Ne());
|
|
3712
|
-
})(
|
|
3712
|
+
})(Rr, function(t) {
|
|
3713
3713
|
return t.mode.CFB = (function() {
|
|
3714
3714
|
var l = t.lib.BlockCipherMode.extend();
|
|
3715
3715
|
l.Encryptor = l.extend({
|
|
@@ -3734,12 +3734,12 @@ function wr() {
|
|
|
3734
3734
|
});
|
|
3735
3735
|
})(Et)), Et.exports;
|
|
3736
3736
|
}
|
|
3737
|
-
var Nt = { exports: {} },
|
|
3738
|
-
function
|
|
3737
|
+
var Nt = { exports: {} }, wr = Nt.exports, Xi;
|
|
3738
|
+
function Fr() {
|
|
3739
3739
|
return Xi || (Xi = 1, (function(e, n) {
|
|
3740
3740
|
(function(t, l, p) {
|
|
3741
3741
|
e.exports = l(te(), Ne());
|
|
3742
|
-
})(
|
|
3742
|
+
})(wr, function(t) {
|
|
3743
3743
|
return t.mode.CTR = (function() {
|
|
3744
3744
|
var l = t.lib.BlockCipherMode.extend(), p = l.Encryptor = l.extend({
|
|
3745
3745
|
processBlock: function(g, b) {
|
|
@@ -3756,12 +3756,12 @@ function Ar() {
|
|
|
3756
3756
|
});
|
|
3757
3757
|
})(Nt)), Nt.exports;
|
|
3758
3758
|
}
|
|
3759
|
-
var Lt = { exports: {} },
|
|
3760
|
-
function
|
|
3759
|
+
var Lt = { exports: {} }, Ar = Lt.exports, en;
|
|
3760
|
+
function Or() {
|
|
3761
3761
|
return en || (en = 1, (function(e, n) {
|
|
3762
3762
|
(function(t, l, p) {
|
|
3763
3763
|
e.exports = l(te(), Ne());
|
|
3764
|
-
})(
|
|
3764
|
+
})(Ar, function(t) {
|
|
3765
3765
|
return t.mode.CTRGladman = (function() {
|
|
3766
3766
|
var l = t.lib.BlockCipherMode.extend();
|
|
3767
3767
|
function p(d) {
|
|
@@ -3790,12 +3790,12 @@ function Br() {
|
|
|
3790
3790
|
});
|
|
3791
3791
|
})(Lt)), Lt.exports;
|
|
3792
3792
|
}
|
|
3793
|
-
var Gt = { exports: {} },
|
|
3794
|
-
function
|
|
3793
|
+
var Gt = { exports: {} }, Br = Gt.exports, an;
|
|
3794
|
+
function Hr() {
|
|
3795
3795
|
return an || (an = 1, (function(e, n) {
|
|
3796
3796
|
(function(t, l, p) {
|
|
3797
3797
|
e.exports = l(te(), Ne());
|
|
3798
|
-
})(
|
|
3798
|
+
})(Br, function(t) {
|
|
3799
3799
|
return t.mode.OFB = (function() {
|
|
3800
3800
|
var l = t.lib.BlockCipherMode.extend(), p = l.Encryptor = l.extend({
|
|
3801
3801
|
processBlock: function(g, b) {
|
|
@@ -3810,12 +3810,12 @@ function Wr() {
|
|
|
3810
3810
|
});
|
|
3811
3811
|
})(Gt)), Gt.exports;
|
|
3812
3812
|
}
|
|
3813
|
-
var Mt = { exports: {} },
|
|
3814
|
-
function
|
|
3813
|
+
var Mt = { exports: {} }, Wr = Mt.exports, tn;
|
|
3814
|
+
function zr() {
|
|
3815
3815
|
return tn || (tn = 1, (function(e, n) {
|
|
3816
3816
|
(function(t, l, p) {
|
|
3817
3817
|
e.exports = l(te(), Ne());
|
|
3818
|
-
})(
|
|
3818
|
+
})(Wr, function(t) {
|
|
3819
3819
|
return t.mode.ECB = (function() {
|
|
3820
3820
|
var l = t.lib.BlockCipherMode.extend();
|
|
3821
3821
|
return l.Encryptor = l.extend({
|
|
@@ -3831,12 +3831,12 @@ function Ir() {
|
|
|
3831
3831
|
});
|
|
3832
3832
|
})(Mt)), Mt.exports;
|
|
3833
3833
|
}
|
|
3834
|
-
var Rt = { exports: {} },
|
|
3835
|
-
function
|
|
3834
|
+
var Rt = { exports: {} }, Ir = Rt.exports, nn;
|
|
3835
|
+
function Vr() {
|
|
3836
3836
|
return nn || (nn = 1, (function(e, n) {
|
|
3837
3837
|
(function(t, l, p) {
|
|
3838
3838
|
e.exports = l(te(), Ne());
|
|
3839
|
-
})(
|
|
3839
|
+
})(Ir, function(t) {
|
|
3840
3840
|
return t.pad.AnsiX923 = {
|
|
3841
3841
|
pad: function(l, p) {
|
|
3842
3842
|
var g = l.sigBytes, b = p * 4, d = b - g % b, r = g + d - 1;
|
|
@@ -3850,12 +3850,12 @@ function Jr() {
|
|
|
3850
3850
|
});
|
|
3851
3851
|
})(Rt)), Rt.exports;
|
|
3852
3852
|
}
|
|
3853
|
-
var Pt = { exports: {} },
|
|
3854
|
-
function
|
|
3853
|
+
var Pt = { exports: {} }, Jr = Pt.exports, ln;
|
|
3854
|
+
function Zr() {
|
|
3855
3855
|
return ln || (ln = 1, (function(e, n) {
|
|
3856
3856
|
(function(t, l, p) {
|
|
3857
3857
|
e.exports = l(te(), Ne());
|
|
3858
|
-
})(
|
|
3858
|
+
})(Jr, function(t) {
|
|
3859
3859
|
return t.pad.Iso10126 = {
|
|
3860
3860
|
pad: function(l, p) {
|
|
3861
3861
|
var g = p * 4, b = g - l.sigBytes % g;
|
|
@@ -3869,12 +3869,12 @@ function Kr() {
|
|
|
3869
3869
|
});
|
|
3870
3870
|
})(Pt)), Pt.exports;
|
|
3871
3871
|
}
|
|
3872
|
-
var wt = { exports: {} },
|
|
3873
|
-
function
|
|
3872
|
+
var wt = { exports: {} }, Kr = wt.exports, rn;
|
|
3873
|
+
function qr() {
|
|
3874
3874
|
return rn || (rn = 1, (function(e, n) {
|
|
3875
3875
|
(function(t, l, p) {
|
|
3876
3876
|
e.exports = l(te(), Ne());
|
|
3877
|
-
})(
|
|
3877
|
+
})(Kr, function(t) {
|
|
3878
3878
|
return t.pad.Iso97971 = {
|
|
3879
3879
|
pad: function(l, p) {
|
|
3880
3880
|
l.concat(t.lib.WordArray.create([2147483648], 1)), t.pad.ZeroPadding.pad(l, p);
|
|
@@ -3886,12 +3886,12 @@ function $r() {
|
|
|
3886
3886
|
});
|
|
3887
3887
|
})(wt)), wt.exports;
|
|
3888
3888
|
}
|
|
3889
|
-
var Ft = { exports: {} },
|
|
3890
|
-
function
|
|
3889
|
+
var Ft = { exports: {} }, $r = Ft.exports, on;
|
|
3890
|
+
function Qr() {
|
|
3891
3891
|
return on || (on = 1, (function(e, n) {
|
|
3892
3892
|
(function(t, l, p) {
|
|
3893
3893
|
e.exports = l(te(), Ne());
|
|
3894
|
-
})(
|
|
3894
|
+
})($r, function(t) {
|
|
3895
3895
|
return t.pad.ZeroPadding = {
|
|
3896
3896
|
pad: function(l, p) {
|
|
3897
3897
|
var g = p * 4;
|
|
@@ -3908,12 +3908,12 @@ function jr() {
|
|
|
3908
3908
|
});
|
|
3909
3909
|
})(Ft)), Ft.exports;
|
|
3910
3910
|
}
|
|
3911
|
-
var At = { exports: {} },
|
|
3912
|
-
function
|
|
3911
|
+
var At = { exports: {} }, jr = At.exports, sn;
|
|
3912
|
+
function Yr() {
|
|
3913
3913
|
return sn || (sn = 1, (function(e, n) {
|
|
3914
3914
|
(function(t, l, p) {
|
|
3915
3915
|
e.exports = l(te(), Ne());
|
|
3916
|
-
})(
|
|
3916
|
+
})(jr, function(t) {
|
|
3917
3917
|
return t.pad.NoPadding = {
|
|
3918
3918
|
pad: function() {
|
|
3919
3919
|
},
|
|
@@ -3923,12 +3923,12 @@ function Xr() {
|
|
|
3923
3923
|
});
|
|
3924
3924
|
})(At)), At.exports;
|
|
3925
3925
|
}
|
|
3926
|
-
var Ot = { exports: {} },
|
|
3927
|
-
function
|
|
3926
|
+
var Ot = { exports: {} }, Xr = Ot.exports, mn;
|
|
3927
|
+
function eo() {
|
|
3928
3928
|
return mn || (mn = 1, (function(e, n) {
|
|
3929
3929
|
(function(t, l, p) {
|
|
3930
3930
|
e.exports = l(te(), Ne());
|
|
3931
|
-
})(
|
|
3931
|
+
})(Xr, function(t) {
|
|
3932
3932
|
return (function(l) {
|
|
3933
3933
|
var p = t, g = p.lib, b = g.CipherParams, d = p.enc, r = d.Hex, a = p.format;
|
|
3934
3934
|
a.Hex = {
|
|
@@ -3970,12 +3970,12 @@ function ao() {
|
|
|
3970
3970
|
});
|
|
3971
3971
|
})(Ot)), Ot.exports;
|
|
3972
3972
|
}
|
|
3973
|
-
var Bt = { exports: {} },
|
|
3974
|
-
function
|
|
3973
|
+
var Bt = { exports: {} }, ao = Bt.exports, un;
|
|
3974
|
+
function to() {
|
|
3975
3975
|
return un || (un = 1, (function(e, n) {
|
|
3976
3976
|
(function(t, l, p) {
|
|
3977
3977
|
e.exports = l(te(), xa(), Sa(), _a(), Ne());
|
|
3978
|
-
})(
|
|
3978
|
+
})(ao, function(t) {
|
|
3979
3979
|
return (function() {
|
|
3980
3980
|
var l = t, p = l.lib, g = p.BlockCipher, b = l.algo, d = [], r = [], a = [], i = [], o = [], s = [], u = [], m = [], c = [], f = [];
|
|
3981
3981
|
(function() {
|
|
@@ -4030,12 +4030,12 @@ function io() {
|
|
|
4030
4030
|
});
|
|
4031
4031
|
})(Bt)), Bt.exports;
|
|
4032
4032
|
}
|
|
4033
|
-
var Ht = { exports: {} },
|
|
4034
|
-
function
|
|
4033
|
+
var Ht = { exports: {} }, io = Ht.exports, pn;
|
|
4034
|
+
function no() {
|
|
4035
4035
|
return pn || (pn = 1, (function(e, n) {
|
|
4036
4036
|
(function(t, l, p) {
|
|
4037
4037
|
e.exports = l(te(), xa(), Sa(), _a(), Ne());
|
|
4038
|
-
})(
|
|
4038
|
+
})(io, function(t) {
|
|
4039
4039
|
return (function() {
|
|
4040
4040
|
var l = t, p = l.lib, g = p.WordArray, b = p.BlockCipher, d = l.algo, r = [
|
|
4041
4041
|
57,
|
|
@@ -4750,12 +4750,12 @@ function lo() {
|
|
|
4750
4750
|
});
|
|
4751
4751
|
})(Ht)), Ht.exports;
|
|
4752
4752
|
}
|
|
4753
|
-
var Wt = { exports: {} },
|
|
4754
|
-
function
|
|
4753
|
+
var Wt = { exports: {} }, lo = Wt.exports, gn;
|
|
4754
|
+
function ro() {
|
|
4755
4755
|
return gn || (gn = 1, (function(e, n) {
|
|
4756
4756
|
(function(t, l, p) {
|
|
4757
4757
|
e.exports = l(te(), xa(), Sa(), _a(), Ne());
|
|
4758
|
-
})(
|
|
4758
|
+
})(lo, function(t) {
|
|
4759
4759
|
return (function() {
|
|
4760
4760
|
var l = t, p = l.lib, g = p.StreamCipher, b = l.algo, d = b.RC4 = g.extend({
|
|
4761
4761
|
_doReset: function() {
|
|
@@ -4804,12 +4804,12 @@ function oo() {
|
|
|
4804
4804
|
});
|
|
4805
4805
|
})(Wt)), Wt.exports;
|
|
4806
4806
|
}
|
|
4807
|
-
var zt = { exports: {} },
|
|
4808
|
-
function
|
|
4807
|
+
var zt = { exports: {} }, oo = zt.exports, dn;
|
|
4808
|
+
function so() {
|
|
4809
4809
|
return dn || (dn = 1, (function(e, n) {
|
|
4810
4810
|
(function(t, l, p) {
|
|
4811
4811
|
e.exports = l(te(), xa(), Sa(), _a(), Ne());
|
|
4812
|
-
})(
|
|
4812
|
+
})(oo, function(t) {
|
|
4813
4813
|
return (function() {
|
|
4814
4814
|
var l = t, p = l.lib, g = p.StreamCipher, b = l.algo, d = [], r = [], a = [], i = b.Rabbit = g.extend({
|
|
4815
4815
|
_doReset: function() {
|
|
@@ -4870,12 +4870,12 @@ function mo() {
|
|
|
4870
4870
|
});
|
|
4871
4871
|
})(zt)), zt.exports;
|
|
4872
4872
|
}
|
|
4873
|
-
var It = { exports: {} },
|
|
4874
|
-
function
|
|
4873
|
+
var It = { exports: {} }, mo = It.exports, cn;
|
|
4874
|
+
function uo() {
|
|
4875
4875
|
return cn || (cn = 1, (function(e, n) {
|
|
4876
4876
|
(function(t, l, p) {
|
|
4877
4877
|
e.exports = l(te(), xa(), Sa(), _a(), Ne());
|
|
4878
|
-
})(
|
|
4878
|
+
})(mo, function(t) {
|
|
4879
4879
|
return (function() {
|
|
4880
4880
|
var l = t, p = l.lib, g = p.StreamCipher, b = l.algo, d = [], r = [], a = [], i = b.RabbitLegacy = g.extend({
|
|
4881
4881
|
_doReset: function() {
|
|
@@ -4934,12 +4934,12 @@ function po() {
|
|
|
4934
4934
|
});
|
|
4935
4935
|
})(It)), It.exports;
|
|
4936
4936
|
}
|
|
4937
|
-
var Vt = { exports: {} },
|
|
4938
|
-
function
|
|
4937
|
+
var Vt = { exports: {} }, po = Vt.exports, fn;
|
|
4938
|
+
function go() {
|
|
4939
4939
|
return fn || (fn = 1, (function(e, n) {
|
|
4940
4940
|
(function(t, l, p) {
|
|
4941
4941
|
e.exports = l(te(), xa(), Sa(), _a(), Ne());
|
|
4942
|
-
})(
|
|
4942
|
+
})(po, function(t) {
|
|
4943
4943
|
return (function() {
|
|
4944
4944
|
var l = t, p = l.lib, g = p.BlockCipher, b = l.algo;
|
|
4945
4945
|
const d = 16, r = [
|
|
@@ -6056,17 +6056,17 @@ function co() {
|
|
|
6056
6056
|
});
|
|
6057
6057
|
})(Vt)), Vt.exports;
|
|
6058
6058
|
}
|
|
6059
|
-
var
|
|
6060
|
-
function
|
|
6059
|
+
var co = mt.exports, _n;
|
|
6060
|
+
function fo() {
|
|
6061
6061
|
return _n || (_n = 1, (function(e, n) {
|
|
6062
6062
|
(function(t, l, p) {
|
|
6063
|
-
e.exports = l(te(), jt(),
|
|
6064
|
-
})(
|
|
6063
|
+
e.exports = l(te(), jt(), ur(), gr(), xa(), fr(), Sa(), el(), yi(), Cr(), al(), Tr(), xr(), Dr(), Ui(), Lr(), _a(), Ne(), Pr(), Fr(), Or(), Hr(), zr(), Vr(), Zr(), qr(), Qr(), Yr(), eo(), to(), no(), ro(), so(), uo(), go());
|
|
6064
|
+
})(co, function(t) {
|
|
6065
6065
|
return t;
|
|
6066
6066
|
});
|
|
6067
6067
|
})(mt)), mt.exports;
|
|
6068
6068
|
}
|
|
6069
|
-
var Zt =
|
|
6069
|
+
var Zt = fo();
|
|
6070
6070
|
const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
|
|
6071
6071
|
const n = "mySecretPassphrase", t = Ca.lib.WordArray.random(16), l = Ca.PBKDF2(n, t, {
|
|
6072
6072
|
keySize: 128 / 32,
|
|
@@ -6363,7 +6363,7 @@ const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
|
|
|
6363
6363
|
getUserAvatarListApi: B,
|
|
6364
6364
|
updateUserAvatarApi: W
|
|
6365
6365
|
};
|
|
6366
|
-
},
|
|
6366
|
+
}, Tm = ({ otherQueryKey: e = [], options: n = {} } = {}) => {
|
|
6367
6367
|
const { userCurrencyExchangeApi: t } = oe(), { getToken: l } = se(), { enabled: p, ...g } = n, d = !!l?.() && (p ? p.every((r) => r) : !0);
|
|
6368
6368
|
return Wn({
|
|
6369
6369
|
queries: [
|
|
@@ -6377,7 +6377,7 @@ const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
|
|
|
6377
6377
|
}
|
|
6378
6378
|
]
|
|
6379
6379
|
});
|
|
6380
|
-
},
|
|
6380
|
+
}, km = ({
|
|
6381
6381
|
refetchInterval: e = 5e4,
|
|
6382
6382
|
trigger: n = [],
|
|
6383
6383
|
enabled: t = !0
|
|
@@ -6393,7 +6393,7 @@ const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
|
|
|
6393
6393
|
}
|
|
6394
6394
|
]
|
|
6395
6395
|
});
|
|
6396
|
-
},
|
|
6396
|
+
}, xm = ({ enabled: e = !0 } = {}) => {
|
|
6397
6397
|
const {
|
|
6398
6398
|
userInfoApi: n,
|
|
6399
6399
|
userFavoriteGameApi: t,
|
|
@@ -6488,7 +6488,7 @@ const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
|
|
|
6488
6488
|
[e]
|
|
6489
6489
|
);
|
|
6490
6490
|
return { playGameApi: l, betRecordApi: p, betRecordDetailApi: g };
|
|
6491
|
-
},
|
|
6491
|
+
}, _o = ({ options: e, formData: n } = {}) => {
|
|
6492
6492
|
const { betRecordApi: t } = bi();
|
|
6493
6493
|
return j({
|
|
6494
6494
|
queryKey: ["getBetRecord"],
|
|
@@ -6499,20 +6499,20 @@ const Ca = /* @__PURE__ */ _i(Zt), Pa = (e) => {
|
|
|
6499
6499
|
})),
|
|
6500
6500
|
...e
|
|
6501
6501
|
});
|
|
6502
|
-
},
|
|
6502
|
+
}, yo = ({ options: e, formData: n } = {}) => {
|
|
6503
6503
|
const { betRecordDetailApi: t } = bi();
|
|
6504
6504
|
return j({
|
|
6505
6505
|
queryKey: ["getBetRecordDetail"],
|
|
6506
6506
|
queryFn: async () => await t(n),
|
|
6507
6507
|
...e
|
|
6508
6508
|
});
|
|
6509
|
-
},
|
|
6509
|
+
}, Sm = ({
|
|
6510
6510
|
options: e = {
|
|
6511
6511
|
betRecord: {},
|
|
6512
6512
|
betRecordDetail: {}
|
|
6513
6513
|
}
|
|
6514
6514
|
}) => {
|
|
6515
|
-
const n =
|
|
6515
|
+
const n = _o({ options: e.betRecord }), t = yo({
|
|
6516
6516
|
options: e.betRecordDetail
|
|
6517
6517
|
});
|
|
6518
6518
|
return {
|
|
@@ -6528,7 +6528,7 @@ function nt(e) {
|
|
|
6528
6528
|
}
|
|
6529
6529
|
return e;
|
|
6530
6530
|
}
|
|
6531
|
-
var
|
|
6531
|
+
var Uo = {
|
|
6532
6532
|
read: function(e) {
|
|
6533
6533
|
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
6534
6534
|
},
|
|
@@ -6589,7 +6589,7 @@ function si(e, n) {
|
|
|
6589
6589
|
}
|
|
6590
6590
|
);
|
|
6591
6591
|
}
|
|
6592
|
-
var mi = si(
|
|
6592
|
+
var mi = si(Uo, { path: "/" }), ai = {}, Je = {}, ti = {}, yn;
|
|
6593
6593
|
function ra() {
|
|
6594
6594
|
return yn || (yn = 1, (function(e) {
|
|
6595
6595
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.isEventSourceSupported = e.isReactNative = e.ReadyState = e.DEFAULT_HEARTBEAT = e.UNPARSABLE_JSON_OBJECT = e.DEFAULT_RECONNECT_INTERVAL_MS = e.DEFAULT_RECONNECT_LIMIT = e.SOCKET_IO_PING_CODE = e.SOCKET_IO_PATH = e.SOCKET_IO_PING_INTERVAL = e.DEFAULT_EVENT_SOURCE_OPTIONS = e.EMPTY_EVENT_HANDLERS = e.DEFAULT_OPTIONS = void 0;
|
|
@@ -6738,7 +6738,7 @@ function Ti() {
|
|
|
6738
6738
|
return $a;
|
|
6739
6739
|
}
|
|
6740
6740
|
var Tn;
|
|
6741
|
-
function
|
|
6741
|
+
function bo() {
|
|
6742
6742
|
if (Tn) return va;
|
|
6743
6743
|
Tn = 1;
|
|
6744
6744
|
var e = va && va.__assign || function() {
|
|
@@ -6808,7 +6808,7 @@ function Co() {
|
|
|
6808
6808
|
return va.attachListeners = a, va;
|
|
6809
6809
|
}
|
|
6810
6810
|
var ha = {}, kn;
|
|
6811
|
-
function
|
|
6811
|
+
function Co() {
|
|
6812
6812
|
if (kn) return ha;
|
|
6813
6813
|
kn = 1;
|
|
6814
6814
|
var e = ha && ha.__assign || function() {
|
|
@@ -6870,10 +6870,10 @@ function vo() {
|
|
|
6870
6870
|
return ha.attachSharedListeners = i, ha;
|
|
6871
6871
|
}
|
|
6872
6872
|
var xn;
|
|
6873
|
-
function
|
|
6873
|
+
function vo() {
|
|
6874
6874
|
if (xn) return qa;
|
|
6875
6875
|
xn = 1, Object.defineProperty(qa, "__esModule", { value: !0 }), qa.createOrJoinSocket = void 0;
|
|
6876
|
-
var e = Ci(), n = ra(), t =
|
|
6876
|
+
var e = Ci(), n = ra(), t = bo(), l = Co(), p = hi(), g = function(d, r, a, i, o) {
|
|
6877
6877
|
return function() {
|
|
6878
6878
|
if ((0, p.removeSubscriber)(d, r), !(0, p.hasSubscribers)(d)) {
|
|
6879
6879
|
try {
|
|
@@ -6913,7 +6913,7 @@ function ho() {
|
|
|
6913
6913
|
return qa.createOrJoinSocket = b, qa;
|
|
6914
6914
|
}
|
|
6915
6915
|
var ma = {}, Sn;
|
|
6916
|
-
function
|
|
6916
|
+
function ho() {
|
|
6917
6917
|
return Sn || (Sn = 1, (function(e) {
|
|
6918
6918
|
var n = ma && ma.__awaiter || function(r, a, i, o) {
|
|
6919
6919
|
function s(u) {
|
|
@@ -7050,7 +7050,7 @@ function To() {
|
|
|
7050
7050
|
})(ma)), ma;
|
|
7051
7051
|
}
|
|
7052
7052
|
var li = {}, Dn;
|
|
7053
|
-
function
|
|
7053
|
+
function To() {
|
|
7054
7054
|
return Dn || (Dn = 1, (function(e) {
|
|
7055
7055
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.websocketWrapper = void 0;
|
|
7056
7056
|
var n = function(t, l) {
|
|
@@ -7169,7 +7169,7 @@ function ki() {
|
|
|
7169
7169
|
return s && s.__esModule ? s : { default: s };
|
|
7170
7170
|
};
|
|
7171
7171
|
Object.defineProperty(Je, "__esModule", { value: !0 }), Je.useWebSocket = void 0;
|
|
7172
|
-
var p = de, g =
|
|
7172
|
+
var p = de, g = Jl, b = ra(), d = vo(), r = ho(), a = l(To()), i = Ti(), o = function(s, u, m) {
|
|
7173
7173
|
u === void 0 && (u = b.DEFAULT_OPTIONS), m === void 0 && (m = !0);
|
|
7174
7174
|
var c = (0, p.useState)(null), f = c[0], y = c[1], _ = (0, p.useState)({}), U = _[0], C = _[1], v = (0, p.useMemo)(function() {
|
|
7175
7175
|
if (!u.disableJson && f)
|
|
@@ -7255,7 +7255,7 @@ function ki() {
|
|
|
7255
7255
|
return Je.useWebSocket = o, Je;
|
|
7256
7256
|
}
|
|
7257
7257
|
var Ta = {}, Nn;
|
|
7258
|
-
function
|
|
7258
|
+
function ko() {
|
|
7259
7259
|
if (Nn) return Ta;
|
|
7260
7260
|
Nn = 1;
|
|
7261
7261
|
var e = Ta && Ta.__assign || function() {
|
|
@@ -7301,7 +7301,7 @@ function xo() {
|
|
|
7301
7301
|
return Ta.useSocketIO = b, Ta;
|
|
7302
7302
|
}
|
|
7303
7303
|
var ua = {}, Ln;
|
|
7304
|
-
function
|
|
7304
|
+
function xo() {
|
|
7305
7305
|
if (Ln) return ua;
|
|
7306
7306
|
Ln = 1;
|
|
7307
7307
|
var e = ua && ua.__assign || function() {
|
|
@@ -7344,14 +7344,14 @@ function So() {
|
|
|
7344
7344
|
return ua.useEventSource = g, ua;
|
|
7345
7345
|
}
|
|
7346
7346
|
var Gn;
|
|
7347
|
-
function
|
|
7347
|
+
function So() {
|
|
7348
7348
|
return Gn || (Gn = 1, (function(e) {
|
|
7349
7349
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetGlobalState = e.useEventSource = e.ReadyState = e.useSocketIO = e.default = void 0;
|
|
7350
7350
|
var n = ki();
|
|
7351
7351
|
Object.defineProperty(e, "default", { enumerable: !0, get: function() {
|
|
7352
7352
|
return n.useWebSocket;
|
|
7353
7353
|
} });
|
|
7354
|
-
var t =
|
|
7354
|
+
var t = ko();
|
|
7355
7355
|
Object.defineProperty(e, "useSocketIO", { enumerable: !0, get: function() {
|
|
7356
7356
|
return t.useSocketIO;
|
|
7357
7357
|
} });
|
|
@@ -7359,7 +7359,7 @@ function Do() {
|
|
|
7359
7359
|
Object.defineProperty(e, "ReadyState", { enumerable: !0, get: function() {
|
|
7360
7360
|
return l.ReadyState;
|
|
7361
7361
|
} });
|
|
7362
|
-
var p =
|
|
7362
|
+
var p = xo();
|
|
7363
7363
|
Object.defineProperty(e, "useEventSource", { enumerable: !0, get: function() {
|
|
7364
7364
|
return p.useEventSource;
|
|
7365
7365
|
} });
|
|
@@ -7369,15 +7369,15 @@ function Do() {
|
|
|
7369
7369
|
} });
|
|
7370
7370
|
})(ai)), ai;
|
|
7371
7371
|
}
|
|
7372
|
-
var
|
|
7373
|
-
const
|
|
7372
|
+
var Do = So();
|
|
7373
|
+
const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
7374
7374
|
enable: e = !1,
|
|
7375
7375
|
isTestFunction: n = !1,
|
|
7376
7376
|
isTransferMode: t = !1,
|
|
7377
7377
|
isInGameBox: l = !1,
|
|
7378
7378
|
currentGamePlatform: p = ""
|
|
7379
7379
|
}) => {
|
|
7380
|
-
const { store: g, lng: b } = se(), { isReady: d, setAsReady: r, isPending: a, setAsPending: i } = Jn(), o = Qe(b), { mutateAsync: s } =
|
|
7380
|
+
const { store: g, lng: b } = se(), { isReady: d, setAsReady: r, isPending: a, setAsPending: i } = Jn(), o = Qe(b), { mutateAsync: s } = Ho();
|
|
7381
7381
|
return !e || !n || !t ? { handleTransferInGame: () => {
|
|
7382
7382
|
} } : { handleTransferInGame: async () => {
|
|
7383
7383
|
console.log("執行遊戲內轉帳"), l && await s({
|
|
@@ -7387,11 +7387,11 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7387
7387
|
switch (c) {
|
|
7388
7388
|
case 200:
|
|
7389
7389
|
r(), g.dispatch({
|
|
7390
|
-
type: "ui/
|
|
7390
|
+
type: "ui/showToast",
|
|
7391
7391
|
payload: {
|
|
7392
7392
|
title: ja[o] || "System Prompt",
|
|
7393
|
-
|
|
7394
|
-
|
|
7393
|
+
description: "點數轉入成功,請確認遊戲餘額",
|
|
7394
|
+
status: "success"
|
|
7395
7395
|
}
|
|
7396
7396
|
});
|
|
7397
7397
|
return;
|
|
@@ -7400,11 +7400,11 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7400
7400
|
return;
|
|
7401
7401
|
case 102:
|
|
7402
7402
|
localStorage.setItem("transfer_in_game_request_id", f), i(), g.dispatch({
|
|
7403
|
-
type: "ui/
|
|
7403
|
+
type: "ui/showToast",
|
|
7404
7404
|
payload: {
|
|
7405
7405
|
title: ja[o] || "System Prompt",
|
|
7406
|
-
|
|
7407
|
-
|
|
7406
|
+
description: "您的上一筆訂單未完成,請耐心等候,我們正在為您處理",
|
|
7407
|
+
status: "warning"
|
|
7408
7408
|
}
|
|
7409
7409
|
});
|
|
7410
7410
|
return;
|
|
@@ -7452,63 +7452,63 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7452
7452
|
verifyPhoneBarApi: g,
|
|
7453
7453
|
verifyDonationCodeApi: b
|
|
7454
7454
|
};
|
|
7455
|
-
},
|
|
7455
|
+
}, Lo = ({ options: e } = {}) => {
|
|
7456
7456
|
const { userLoginApi: n } = oe();
|
|
7457
|
-
return
|
|
7457
|
+
return le({
|
|
7458
7458
|
mutationKey: ["userLogin"],
|
|
7459
7459
|
mutationFn: async (t) => n(t),
|
|
7460
7460
|
...e
|
|
7461
7461
|
});
|
|
7462
|
-
},
|
|
7462
|
+
}, Go = ({ options: e } = {}) => {
|
|
7463
7463
|
const { userLogoutApi: n } = oe();
|
|
7464
|
-
return
|
|
7464
|
+
return le({
|
|
7465
7465
|
mutationKey: ["userLogout"],
|
|
7466
7466
|
mutationFn: async () => n(),
|
|
7467
7467
|
...e
|
|
7468
7468
|
});
|
|
7469
|
-
},
|
|
7469
|
+
}, Mo = ({ options: e } = {}) => {
|
|
7470
7470
|
const { userSignUpApi: n } = oe();
|
|
7471
|
-
return
|
|
7471
|
+
return le({
|
|
7472
7472
|
mutationKey: ["userSignUp"],
|
|
7473
7473
|
mutationFn: async (t) => n(t),
|
|
7474
7474
|
...e
|
|
7475
7475
|
});
|
|
7476
|
-
},
|
|
7476
|
+
}, Ro = ({ options: e } = {}) => {
|
|
7477
7477
|
const { addOrRemoveFavoriteGameApi: n } = oe();
|
|
7478
|
-
return
|
|
7478
|
+
return le({
|
|
7479
7479
|
mutationKey: ["toggleFavoriteGame"],
|
|
7480
7480
|
mutationFn: async (t) => n(t),
|
|
7481
7481
|
...e
|
|
7482
7482
|
});
|
|
7483
|
-
},
|
|
7483
|
+
}, Po = ({ options: e } = {}) => {
|
|
7484
7484
|
const { updateUserInfoApi: n } = oe();
|
|
7485
|
-
return
|
|
7485
|
+
return le({
|
|
7486
7486
|
mutationKey: ["updateUserInfo"],
|
|
7487
7487
|
mutationFn: async (t) => n(t),
|
|
7488
7488
|
...e
|
|
7489
7489
|
});
|
|
7490
|
-
},
|
|
7490
|
+
}, wo = ({ options: e } = {}) => {
|
|
7491
7491
|
const { resetUserPasswordApi: n } = oe();
|
|
7492
|
-
return
|
|
7492
|
+
return le({
|
|
7493
7493
|
mutationKey: ["resetUserPassword"],
|
|
7494
7494
|
mutationFn: async (t) => n(t),
|
|
7495
7495
|
...e
|
|
7496
7496
|
});
|
|
7497
|
-
},
|
|
7497
|
+
}, Fo = ({ options: e } = {}) => {
|
|
7498
7498
|
const { setUserTransactionPasswordApi: n } = oe();
|
|
7499
|
-
return
|
|
7499
|
+
return le({
|
|
7500
7500
|
mutationKey: ["setUserTransactionPassword"],
|
|
7501
7501
|
mutationFn: async (t) => n(t),
|
|
7502
7502
|
...e
|
|
7503
7503
|
});
|
|
7504
|
-
},
|
|
7504
|
+
}, Ao = ({ options: e } = {}) => {
|
|
7505
7505
|
const { resetUserTransactionPasswordApi: n } = oe();
|
|
7506
|
-
return
|
|
7506
|
+
return le({
|
|
7507
7507
|
mutationKey: ["resetUserTransactionPassword"],
|
|
7508
7508
|
mutationFn: async (t) => n(t),
|
|
7509
7509
|
...e
|
|
7510
7510
|
});
|
|
7511
|
-
},
|
|
7511
|
+
}, Oo = ({ paramsData: e, options: n } = {}) => {
|
|
7512
7512
|
const { userRebateApi: t } = oe(), { getToken: l } = se();
|
|
7513
7513
|
return l?.(), j({
|
|
7514
7514
|
queryKey: ["userRebate", e],
|
|
@@ -7516,24 +7516,24 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7516
7516
|
enabled: !1,
|
|
7517
7517
|
...n
|
|
7518
7518
|
});
|
|
7519
|
-
},
|
|
7519
|
+
}, Bo = ({ options: e } = {}) => {
|
|
7520
7520
|
const { userBindBankApi: n } = oe();
|
|
7521
|
-
return
|
|
7521
|
+
return le({
|
|
7522
7522
|
mutationKey: ["userBindBank"],
|
|
7523
7523
|
mutationFn: async (t) => n({ formData: t }),
|
|
7524
7524
|
...e
|
|
7525
7525
|
});
|
|
7526
|
-
},
|
|
7526
|
+
}, Ho = ({ options: e } = {}) => {
|
|
7527
7527
|
const { transferInGameApi: n } = oe();
|
|
7528
|
-
return
|
|
7528
|
+
return le({
|
|
7529
7529
|
mutationKey: ["transferInGame"],
|
|
7530
7530
|
mutationFn: async (t) => n(t),
|
|
7531
7531
|
retry: !1,
|
|
7532
7532
|
...e
|
|
7533
7533
|
});
|
|
7534
|
-
},
|
|
7534
|
+
}, Dm = ({ options: e } = {}) => {
|
|
7535
7535
|
const { currency: n } = se(), { pointTransferApi: t } = oe();
|
|
7536
|
-
return
|
|
7536
|
+
return le({
|
|
7537
7537
|
mutationKey: ["pointTransfer"],
|
|
7538
7538
|
mutationFn: async (l) => t({
|
|
7539
7539
|
...l,
|
|
@@ -7541,7 +7541,7 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7541
7541
|
}),
|
|
7542
7542
|
...e
|
|
7543
7543
|
});
|
|
7544
|
-
},
|
|
7544
|
+
}, Em = ({ options: e } = {}) => {
|
|
7545
7545
|
const { currency: n } = se(), { checkUserWagerApi: t } = oe();
|
|
7546
7546
|
return j({
|
|
7547
7547
|
queryKey: ["checkUserWager"],
|
|
@@ -7554,9 +7554,9 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7554
7554
|
},
|
|
7555
7555
|
...e
|
|
7556
7556
|
});
|
|
7557
|
-
},
|
|
7557
|
+
}, Nm = ({ options: e } = {}) => {
|
|
7558
7558
|
const n = fi(), { abandonPointsApi: t } = oe();
|
|
7559
|
-
return
|
|
7559
|
+
return le({
|
|
7560
7560
|
mutationKey: ["abandonPoint"],
|
|
7561
7561
|
mutationFn: async (l) => t({
|
|
7562
7562
|
...l
|
|
@@ -7568,130 +7568,132 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7568
7568
|
});
|
|
7569
7569
|
}, il = ({ options: e } = {}) => {
|
|
7570
7570
|
const { lineLoginApi: n } = oe();
|
|
7571
|
-
return
|
|
7571
|
+
return le({
|
|
7572
7572
|
mutationKey: ["lineLogin"],
|
|
7573
7573
|
mutationFn: async (t) => n(t),
|
|
7574
7574
|
...e
|
|
7575
7575
|
});
|
|
7576
|
-
},
|
|
7576
|
+
}, Wo = ({ options: e } = {}) => {
|
|
7577
7577
|
const { lineLogin2Api: n } = oe();
|
|
7578
|
-
return
|
|
7578
|
+
return le({
|
|
7579
7579
|
mutationKey: ["lineLogin"],
|
|
7580
7580
|
mutationFn: async (t) => n(t),
|
|
7581
7581
|
...e
|
|
7582
7582
|
});
|
|
7583
|
-
},
|
|
7583
|
+
}, zo = ({ options: e, formData: n } = {}) => {
|
|
7584
7584
|
const { getMachineLoginCodeApi: t } = oe();
|
|
7585
7585
|
return j({
|
|
7586
7586
|
queryKey: ["getMachineLoginCode"],
|
|
7587
7587
|
queryFn: async () => t(n),
|
|
7588
7588
|
...e
|
|
7589
7589
|
});
|
|
7590
|
-
},
|
|
7590
|
+
}, Lm = ({ options: e } = {}) => {
|
|
7591
7591
|
const { currency: n } = se(), { memberTransferApi: t } = oe();
|
|
7592
|
-
return
|
|
7592
|
+
return le({
|
|
7593
7593
|
mutationKey: ["memberTransfer"],
|
|
7594
7594
|
mutationFn: async (l) => t({ ...l, currency: n }),
|
|
7595
7595
|
...e
|
|
7596
7596
|
});
|
|
7597
|
-
},
|
|
7597
|
+
}, Gm = ({ options: e } = {}) => {
|
|
7598
7598
|
const { mobileLoginApi: n } = oe();
|
|
7599
|
-
return
|
|
7599
|
+
return le({
|
|
7600
7600
|
mutationKey: ["mobileLogin"],
|
|
7601
7601
|
mutationFn: async (t) => n(t),
|
|
7602
7602
|
...e
|
|
7603
7603
|
});
|
|
7604
|
-
},
|
|
7604
|
+
}, Mm = ({ options: e } = {}) => {
|
|
7605
7605
|
const { mobileLoginApiV2: n } = oe();
|
|
7606
|
-
return
|
|
7606
|
+
return le({
|
|
7607
7607
|
mutationKey: ["mobileLoginV2"],
|
|
7608
7608
|
mutationFn: async (t) => n(t),
|
|
7609
7609
|
...e
|
|
7610
7610
|
});
|
|
7611
|
-
},
|
|
7611
|
+
}, Rm = ({ options: e } = {}) => {
|
|
7612
7612
|
const { mobileRegisterApi: n } = oe();
|
|
7613
|
-
return
|
|
7613
|
+
return le({
|
|
7614
7614
|
mutationKey: ["mobileRegister"],
|
|
7615
7615
|
mutationFn: async (t) => n(t),
|
|
7616
7616
|
...e
|
|
7617
7617
|
});
|
|
7618
|
-
},
|
|
7618
|
+
}, Io = ({ options: e } = {}) => {
|
|
7619
7619
|
const { bindAccountApi: n } = oe();
|
|
7620
|
-
return
|
|
7620
|
+
return le({
|
|
7621
7621
|
mutationKey: ["bindAccount"],
|
|
7622
7622
|
mutationFn: async (t) => n(t),
|
|
7623
7623
|
...e
|
|
7624
7624
|
});
|
|
7625
|
-
},
|
|
7625
|
+
}, Pm = ({ options: e } = {}) => {
|
|
7626
7626
|
const { sendMobileVerifyCodeApi: n } = oe();
|
|
7627
|
-
return
|
|
7627
|
+
return le({
|
|
7628
7628
|
mutationKey: ["sendMobileVerifyCode"],
|
|
7629
7629
|
mutationFn: async (t) => n(t),
|
|
7630
7630
|
...e
|
|
7631
7631
|
});
|
|
7632
|
-
},
|
|
7632
|
+
}, wm = ({ options: e, paramsData: n } = {}) => {
|
|
7633
7633
|
const { verifyPhoneBarApi: t } = Ha();
|
|
7634
7634
|
return j({
|
|
7635
7635
|
queryKey: ["verifyPhoneBar", n],
|
|
7636
7636
|
queryFn: async () => t(n),
|
|
7637
7637
|
...e
|
|
7638
7638
|
});
|
|
7639
|
-
},
|
|
7639
|
+
}, Fm = ({ options: e, paramsData: n } = {}) => {
|
|
7640
7640
|
const { verifyDonationCodeApi: t } = Ha();
|
|
7641
7641
|
return j({
|
|
7642
7642
|
queryKey: ["verifyDonationCode", n],
|
|
7643
7643
|
queryFn: async () => t(n),
|
|
7644
7644
|
...e
|
|
7645
7645
|
});
|
|
7646
|
-
},
|
|
7646
|
+
}, Am = ({ options: e } = {}) => {
|
|
7647
7647
|
const { verifyResetActionApi: n } = oe();
|
|
7648
|
-
return
|
|
7648
|
+
return le({
|
|
7649
7649
|
mutationKey: ["verifyResetAction"],
|
|
7650
7650
|
mutationFn: async (t) => n(t),
|
|
7651
7651
|
...e
|
|
7652
7652
|
});
|
|
7653
|
-
},
|
|
7653
|
+
}, Om = ({ options: e, bonusData: n } = {}) => {
|
|
7654
7654
|
const { getJackpotApi: t } = oe();
|
|
7655
7655
|
return j({
|
|
7656
7656
|
queryKey: ["getJackpotData"],
|
|
7657
7657
|
queryFn: async () => t(),
|
|
7658
7658
|
select: (l) => {
|
|
7659
|
-
const p =
|
|
7659
|
+
const p = re(l, "data", {
|
|
7660
7660
|
MAJOR: 0,
|
|
7661
7661
|
MINOR: 0,
|
|
7662
7662
|
MINI: 0,
|
|
7663
7663
|
GRAND: 0,
|
|
7664
7664
|
MEGA: 0
|
|
7665
7665
|
});
|
|
7666
|
-
return n ?
|
|
7667
|
-
b.amount =
|
|
7666
|
+
return n ? Wl(n, (b, d) => {
|
|
7667
|
+
b.amount = re(p, d, 0) + Math.floor(Math.random() * 1e3);
|
|
7668
7668
|
}) : p;
|
|
7669
7669
|
},
|
|
7670
7670
|
...e
|
|
7671
7671
|
});
|
|
7672
|
-
},
|
|
7672
|
+
}, Bm = ({ options: e } = {}) => {
|
|
7673
7673
|
const { getBetRankingApi: n } = oe();
|
|
7674
7674
|
return j({
|
|
7675
7675
|
queryKey: ["getBetRankingData"],
|
|
7676
7676
|
queryFn: async () => n(),
|
|
7677
7677
|
...e
|
|
7678
7678
|
});
|
|
7679
|
-
},
|
|
7679
|
+
}, Hm = ({ options: e } = {}) => {
|
|
7680
7680
|
const { getUserAvatarListApi: n } = oe();
|
|
7681
7681
|
return j({
|
|
7682
7682
|
queryKey: ["getAvatarList"],
|
|
7683
7683
|
queryFn: async () => n(),
|
|
7684
|
-
select: (
|
|
7684
|
+
// select: (data) => {
|
|
7685
|
+
// return filter(get(data, 'data', []), (item) => item.unlock);
|
|
7686
|
+
// },
|
|
7685
7687
|
...e
|
|
7686
7688
|
});
|
|
7687
|
-
},
|
|
7689
|
+
}, Wm = ({ options: e } = {}) => {
|
|
7688
7690
|
const { updateUserAvatarApi: n } = oe();
|
|
7689
|
-
return
|
|
7691
|
+
return le({
|
|
7690
7692
|
mutationKey: ["updateAvatar"],
|
|
7691
7693
|
mutationFn: async (t) => n(t),
|
|
7692
7694
|
...e
|
|
7693
7695
|
});
|
|
7694
|
-
},
|
|
7696
|
+
}, zm = ({
|
|
7695
7697
|
options: e = {
|
|
7696
7698
|
login: {},
|
|
7697
7699
|
logout: {},
|
|
@@ -7705,15 +7707,15 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7705
7707
|
userBindCard: {}
|
|
7706
7708
|
}
|
|
7707
7709
|
} = {}) => {
|
|
7708
|
-
const n =
|
|
7710
|
+
const n = Lo({ options: e.login }), t = Go({ options: e.logout }), l = Mo({ options: e.register }), p = Po({ options: e.updateUserInfo }), g = Ro({
|
|
7709
7711
|
options: e.toggleFavoriteGame
|
|
7710
|
-
}), b =
|
|
7712
|
+
}), b = wo({
|
|
7711
7713
|
options: e.resetUserPassword
|
|
7712
|
-
}), d =
|
|
7714
|
+
}), d = Fo({
|
|
7713
7715
|
options: e.setUserTransactionPassword
|
|
7714
|
-
}), r =
|
|
7716
|
+
}), r = Ao({
|
|
7715
7717
|
options: e.resetUserTransactionPassword
|
|
7716
|
-
}), a =
|
|
7718
|
+
}), a = Oo({ options: e.userRebate }), i = Bo({ options: e.userBindCard });
|
|
7717
7719
|
return {
|
|
7718
7720
|
login: n,
|
|
7719
7721
|
logout: t,
|
|
@@ -7740,7 +7742,7 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7740
7742
|
UPDATE_ONLY_ONE_MEMBER: "update_only_one_member",
|
|
7741
7743
|
GAME_MAINTAIN: "game_maintain",
|
|
7742
7744
|
LINE_LOGIN: "line_login"
|
|
7743
|
-
},
|
|
7745
|
+
}, Vo = 3e4, Im = ({
|
|
7744
7746
|
socketUrl: e,
|
|
7745
7747
|
socketHandlers: n = {},
|
|
7746
7748
|
options: t = {},
|
|
@@ -7754,9 +7756,9 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7754
7756
|
enableNotification: g = !1,
|
|
7755
7757
|
disabledLineAutoRegister: b = !1
|
|
7756
7758
|
}) => {
|
|
7757
|
-
const { store: d, lng: r } = se(), a = fi(), { isReady: i, setAsReady: o, isPending: s, setAsPending: u } = Jn(), m = Qe(r), c = ee(!1), f = ee(n), y =
|
|
7758
|
-
|
|
7759
|
-
const _ = new URLSearchParams(window.location.search), U =
|
|
7759
|
+
const { store: d, lng: r } = se(), a = fi(), { isReady: i, setAsReady: o, isPending: s, setAsPending: u } = Jn(), m = Qe(r), c = ee(!1), f = ee(n), y = re(l, "uid", null);
|
|
7760
|
+
re(l, "testFunction", 0);
|
|
7761
|
+
const _ = new URLSearchParams(window.location.search), U = re(
|
|
7760
7762
|
p,
|
|
7761
7763
|
"enableTransferInGaming",
|
|
7762
7764
|
!1
|
|
@@ -7767,7 +7769,7 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7767
7769
|
},
|
|
7768
7770
|
retry: !1
|
|
7769
7771
|
}
|
|
7770
|
-
}), { mutateAsync: v } =
|
|
7772
|
+
}), { mutateAsync: v } = Wo({
|
|
7771
7773
|
options: {
|
|
7772
7774
|
onSuccess: (w) => {
|
|
7773
7775
|
f.current.onLineLogin?.(w);
|
|
@@ -7776,12 +7778,12 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7776
7778
|
b || C(R);
|
|
7777
7779
|
}
|
|
7778
7780
|
}
|
|
7779
|
-
}), { handleTransferInGame: D } =
|
|
7781
|
+
}), { handleTransferInGame: D } = No({
|
|
7780
7782
|
enable: U,
|
|
7781
7783
|
isTestFunction: !0,
|
|
7782
|
-
isTransferMode:
|
|
7783
|
-
isInGameBox:
|
|
7784
|
-
currentGamePlatform:
|
|
7784
|
+
isTransferMode: re(p, "isTransferMode", !1),
|
|
7785
|
+
isInGameBox: re(p, "isInGameBox", !1),
|
|
7786
|
+
currentGamePlatform: re(p, "currentGamePlatform", "")
|
|
7785
7787
|
}), {
|
|
7786
7788
|
sendMessage: E,
|
|
7787
7789
|
// 發送普通訊息
|
|
@@ -7793,7 +7795,7 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7793
7795
|
readyState: k
|
|
7794
7796
|
// WebSocket 連線狀態
|
|
7795
7797
|
// getWebSocket, // 獲取 WebSocket 實例
|
|
7796
|
-
} =
|
|
7798
|
+
} = Eo(e, {
|
|
7797
7799
|
queryParams: { key: "wsky" },
|
|
7798
7800
|
onOpen: () => console.log("連線成功"),
|
|
7799
7801
|
shouldReconnect: () => c.current === !1,
|
|
@@ -7810,7 +7812,7 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7810
7812
|
ge(() => {
|
|
7811
7813
|
const w = setInterval(
|
|
7812
7814
|
() => E("ping"),
|
|
7813
|
-
|
|
7815
|
+
Vo
|
|
7814
7816
|
);
|
|
7815
7817
|
return () => clearInterval(w);
|
|
7816
7818
|
}, [E]);
|
|
@@ -7846,13 +7848,13 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7846
7848
|
onTransferInGame: M,
|
|
7847
7849
|
onCashRegisterLimit: S,
|
|
7848
7850
|
onLineLogin: x
|
|
7849
|
-
} = f.current, L =
|
|
7850
|
-
memberInfoUid:
|
|
7851
|
-
data:
|
|
7852
|
-
memo:
|
|
7853
|
-
amount:
|
|
7854
|
-
limitAmount:
|
|
7855
|
-
}, Z = Number(N.memberInfoUid) === y, q = N.data, Q = N.amount, K = N.limitAmount, ae = _.get("mac") || mi.get("machine_mac_address") || "", ie =
|
|
7851
|
+
} = f.current, L = re(h, "type", ""), N = {
|
|
7852
|
+
memberInfoUid: re(h, "member_info_uid", null),
|
|
7853
|
+
data: re(h, "data", null),
|
|
7854
|
+
memo: re(h, "memo", null),
|
|
7855
|
+
amount: re(h, "amount", null),
|
|
7856
|
+
limitAmount: re(h, "limit_amount", null)
|
|
7857
|
+
}, Z = Number(N.memberInfoUid) === y, q = N.data, Q = N.amount, K = N.limitAmount, ae = _.get("mac") || mi.get("machine_mac_address") || "", ie = re(h, "data.line_id", null), _e = re(h, "data.line_name", null), ye = re(h, "member_info_uid", null);
|
|
7856
7858
|
switch (L) {
|
|
7857
7859
|
case ze.DEPOSIT:
|
|
7858
7860
|
Z && (D(), w?.(N));
|
|
@@ -7862,7 +7864,7 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7862
7864
|
break;
|
|
7863
7865
|
case ze.ERROR:
|
|
7864
7866
|
if (Z) {
|
|
7865
|
-
const me =
|
|
7867
|
+
const me = re(h, "open_game_modal", 0) === 1;
|
|
7866
7868
|
F(q, {
|
|
7867
7869
|
notificationType: me ? "gamingNotice" : void 0
|
|
7868
7870
|
}), P?.(N);
|
|
@@ -7889,7 +7891,7 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7889
7891
|
case ze.TRANSFER_IN_GAME:
|
|
7890
7892
|
case ze.CHECK_REQUEST:
|
|
7891
7893
|
if (Z && U) {
|
|
7892
|
-
const { request_id: me, amount: ce, platform: ke, status: Ue } =
|
|
7894
|
+
const { request_id: me, amount: ce, platform: ke, status: Ue } = re(
|
|
7893
7895
|
N,
|
|
7894
7896
|
"data",
|
|
7895
7897
|
{}
|
|
@@ -7905,11 +7907,11 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
7905
7907
|
return;
|
|
7906
7908
|
}
|
|
7907
7909
|
localStorage.removeItem("transfer_in_game_request_id"), o(), d.dispatch({
|
|
7908
|
-
type: "ui/
|
|
7910
|
+
type: "ui/showToast",
|
|
7909
7911
|
payload: {
|
|
7910
7912
|
title: ja[m] || "System Prompt",
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
+
description: `您於${ke}存入的${ce}元已經處理完成了,請確認遊戲餘額`,
|
|
7914
|
+
status: "success"
|
|
7913
7915
|
}
|
|
7914
7916
|
});
|
|
7915
7917
|
}
|
|
@@ -8014,7 +8016,7 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
8014
8016
|
redeemEventRewardApi: l,
|
|
8015
8017
|
settleEventApi: g
|
|
8016
8018
|
};
|
|
8017
|
-
},
|
|
8019
|
+
}, Jo = ({ paramsData: e, options: n } = {}) => {
|
|
8018
8020
|
const { store: t, lng: l, data2URL: p } = se(), { eventListApi: g } = Ya(), b = t?.getState()?.isWalletCurrency || t?.getState()?.currency?.currentCurrency || "TWD", d = Qe(l);
|
|
8019
8021
|
return j({
|
|
8020
8022
|
queryKey: ["eventList", e],
|
|
@@ -8025,7 +8027,7 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
8025
8027
|
const { events_attributes: s } = o, u = $e(
|
|
8026
8028
|
s,
|
|
8027
8029
|
(v) => v.attribute_currency === b
|
|
8028
|
-
) || s[0], m =
|
|
8030
|
+
) || s[0], m = re(u, "rewards", {}), c = re(o, "carousels.[0]", {}), f = $e(c.carousels_lang, (v) => v.lang === d) || c?.carousels_lang?.[0], y = {
|
|
8029
8031
|
...c,
|
|
8030
8032
|
currentLngCarousel: {
|
|
8031
8033
|
...f,
|
|
@@ -8131,21 +8133,21 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
8131
8133
|
},
|
|
8132
8134
|
...n
|
|
8133
8135
|
});
|
|
8134
|
-
},
|
|
8136
|
+
}, Vm = ({ options: e } = {}) => {
|
|
8135
8137
|
const { redeemEventRewardApi: n } = Ya();
|
|
8136
|
-
return
|
|
8138
|
+
return le({
|
|
8137
8139
|
mutationKey: ["redeemEventReward"],
|
|
8138
8140
|
mutationFn: async (t) => n(t),
|
|
8139
8141
|
...e
|
|
8140
8142
|
});
|
|
8141
|
-
},
|
|
8143
|
+
}, Zo = ({ options: e, formData: n } = {}) => {
|
|
8142
8144
|
const { checkCurrentEventProgessApi: t } = Ya();
|
|
8143
8145
|
return j({
|
|
8144
8146
|
queryKey: ["checkEventProgress"],
|
|
8145
8147
|
queryFn: async () => t(n),
|
|
8146
8148
|
...e
|
|
8147
8149
|
});
|
|
8148
|
-
},
|
|
8150
|
+
}, Ko = ({ options: e, formData: n } = {}) => {
|
|
8149
8151
|
const { checkEventStatusApi: t } = Ya();
|
|
8150
8152
|
return j({
|
|
8151
8153
|
queryKey: ["checkEventStatus"],
|
|
@@ -8153,23 +8155,23 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
8153
8155
|
select: (l) => l.data.event_status,
|
|
8154
8156
|
...e
|
|
8155
8157
|
});
|
|
8156
|
-
},
|
|
8158
|
+
}, Jm = ({ options: e } = {}) => {
|
|
8157
8159
|
const { settleEventApi: n } = Ya();
|
|
8158
|
-
return
|
|
8160
|
+
return le({
|
|
8159
8161
|
mutationKey: ["settleEvent"],
|
|
8160
8162
|
mutationFn: async (t) => n(t),
|
|
8161
8163
|
...e
|
|
8162
8164
|
});
|
|
8163
|
-
},
|
|
8165
|
+
}, Zm = ({
|
|
8164
8166
|
options: e = {
|
|
8165
8167
|
eventList: {},
|
|
8166
8168
|
checkEventProgress: {},
|
|
8167
8169
|
checkEventStatus: {}
|
|
8168
8170
|
}
|
|
8169
8171
|
} = {}) => {
|
|
8170
|
-
const n =
|
|
8172
|
+
const n = Jo({ options: e.eventList }), t = Zo({
|
|
8171
8173
|
options: e.checkEventProgress
|
|
8172
|
-
}), l =
|
|
8174
|
+
}), l = Ko({
|
|
8173
8175
|
options: e.checkEventStatus
|
|
8174
8176
|
});
|
|
8175
8177
|
return {
|
|
@@ -8177,7 +8179,7 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
8177
8179
|
checkEventProgressQuery: t,
|
|
8178
8180
|
checkEventStatusQuery: l
|
|
8179
8181
|
};
|
|
8180
|
-
},
|
|
8182
|
+
}, Km = ({ skipPreload: e = !1 } = {}) => {
|
|
8181
8183
|
const { lng: n, data2URL: t } = se(), { commonCarouselApi: l } = Ha(), p = Qe(n);
|
|
8182
8184
|
return j({
|
|
8183
8185
|
queryKey: ["getCarouselList", e],
|
|
@@ -8205,7 +8207,7 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
8205
8207
|
};
|
|
8206
8208
|
})
|
|
8207
8209
|
});
|
|
8208
|
-
},
|
|
8210
|
+
}, qm = () => {
|
|
8209
8211
|
const { lng: e } = se(), { commonMarqueeApi: n } = Ha(), t = Qe(e);
|
|
8210
8212
|
return j({
|
|
8211
8213
|
queryKey: ["getMarqueeList"],
|
|
@@ -8218,7 +8220,7 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
8218
8220
|
return Be(p, (b) => b[t] || b?.en_US);
|
|
8219
8221
|
}
|
|
8220
8222
|
});
|
|
8221
|
-
},
|
|
8223
|
+
}, $m = ({ options: e } = {}) => {
|
|
8222
8224
|
const { rankingGameApi: n } = oe();
|
|
8223
8225
|
return j({
|
|
8224
8226
|
queryKey: ["rankingGame"],
|
|
@@ -8260,10 +8262,10 @@ const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
|
8260
8262
|
...e
|
|
8261
8263
|
});
|
|
8262
8264
|
};
|
|
8263
|
-
var
|
|
8264
|
-
if (n && typeof n == "object" || typeof n == "function") for (let p of
|
|
8265
|
+
var qo = Object.create, nl = Object.defineProperty, $o = Object.getOwnPropertyDescriptor, Qo = Object.getOwnPropertyNames, jo = Object.getPrototypeOf, Yo = Object.prototype.hasOwnProperty, Xo = (e, n) => () => (n || e((n = { exports: {} }).exports, n), n.exports), es = (e, n, t, l) => {
|
|
8266
|
+
if (n && typeof n == "object" || typeof n == "function") for (let p of Qo(n)) !Yo.call(e, p) && p !== t && nl(e, p, { get: () => n[p], enumerable: !(l = $o(n, p)) || l.enumerable });
|
|
8265
8267
|
return e;
|
|
8266
|
-
},
|
|
8268
|
+
}, as = (e, n, t) => (t = e != null ? qo(jo(e)) : {}, es(!e || !e.__esModule ? nl(t, "default", { value: e, enumerable: !0 }) : t, e)), ts = Xo((e, n) => {
|
|
8267
8269
|
(function(t, l) {
|
|
8268
8270
|
typeof e == "object" && typeof n < "u" ? l(e) : typeof define == "function" && define.amd ? define(["exports"], l) : (t = typeof globalThis < "u" ? globalThis : t || self, l(t.fastUniqueNumbers = {}));
|
|
8269
8271
|
})(e, function(t) {
|
|
@@ -8292,12 +8294,12 @@ var $o = Object.create, nl = Object.defineProperty, Qo = Object.getOwnPropertyDe
|
|
|
8292
8294
|
t.addUniqueNumber = s, t.generateUniqueNumber = o;
|
|
8293
8295
|
});
|
|
8294
8296
|
});
|
|
8295
|
-
ts(
|
|
8297
|
+
as(ts());
|
|
8296
8298
|
var pa = (typeof window > "u" ? "undefined" : typeof window) == "object", Xe = { setTimeout: pa ? setTimeout.bind(window) : setTimeout, clearTimeout: pa ? clearTimeout.bind(window) : clearTimeout, setInterval: pa ? setInterval.bind(window) : setInterval, clearInterval: pa ? clearInterval.bind(window) : clearInterval };
|
|
8297
|
-
function
|
|
8299
|
+
function is(e) {
|
|
8298
8300
|
Xe.setTimeout = e.setTimeout, Xe.clearTimeout = e.clearTimeout, Xe.setInterval = e.setInterval, Xe.clearInterval = e.clearInterval;
|
|
8299
8301
|
}
|
|
8300
|
-
var wa = {},
|
|
8302
|
+
var wa = {}, ns = class {
|
|
8301
8303
|
name;
|
|
8302
8304
|
closed = !1;
|
|
8303
8305
|
mc = new MessageChannel();
|
|
@@ -8345,14 +8347,14 @@ var wa = {}, ls = class {
|
|
|
8345
8347
|
dispatchEvent(e) {
|
|
8346
8348
|
return this.mc.port1.dispatchEvent(e);
|
|
8347
8349
|
}
|
|
8348
|
-
},
|
|
8349
|
-
function
|
|
8350
|
+
}, ls = typeof window > "u" ? void 0 : typeof window.BroadcastChannel == "function" ? window.BroadcastChannel : ns;
|
|
8351
|
+
function rs(e = 0) {
|
|
8350
8352
|
return new Promise((n) => Xe.setTimeout(n, e));
|
|
8351
8353
|
}
|
|
8352
8354
|
function ll() {
|
|
8353
8355
|
return Math.random().toString(36).substring(2);
|
|
8354
8356
|
}
|
|
8355
|
-
var
|
|
8357
|
+
var os = class {
|
|
8356
8358
|
options;
|
|
8357
8359
|
channel;
|
|
8358
8360
|
token = ll();
|
|
@@ -8376,7 +8378,7 @@ var ss = class {
|
|
|
8376
8378
|
};
|
|
8377
8379
|
this.channel.addEventListener("message", n);
|
|
8378
8380
|
try {
|
|
8379
|
-
return this.sendAction(0), await
|
|
8381
|
+
return this.sendAction(0), await rs(this.options.responseTime), this.channel.removeEventListener("message", n), this.isApplying = !1, e ? this.reApply ? this.apply() : !1 : (this.assumeLead(), !0);
|
|
8380
8382
|
} catch {
|
|
8381
8383
|
return !1;
|
|
8382
8384
|
}
|
|
@@ -8432,7 +8434,7 @@ var ss = class {
|
|
|
8432
8434
|
}
|
|
8433
8435
|
}
|
|
8434
8436
|
}
|
|
8435
|
-
},
|
|
8437
|
+
}, ss = class {
|
|
8436
8438
|
channel;
|
|
8437
8439
|
options;
|
|
8438
8440
|
elector;
|
|
@@ -8442,9 +8444,9 @@ var ss = class {
|
|
|
8442
8444
|
isLastActive = !1;
|
|
8443
8445
|
constructor(e) {
|
|
8444
8446
|
let { channelName: n } = e;
|
|
8445
|
-
if (this.options = e, this.channel = new
|
|
8447
|
+
if (this.options = e, this.channel = new ls(n), this.registry.set(this.token, 1), e.leaderElection) {
|
|
8446
8448
|
let t = { fallbackInterval: 2e3, responseTime: 100 };
|
|
8447
|
-
this.elector = new
|
|
8449
|
+
this.elector = new os(this.channel, t), this.elector.waitForLeadership();
|
|
8448
8450
|
}
|
|
8449
8451
|
this.channel.addEventListener("message", (t) => {
|
|
8450
8452
|
let { action: l, token: p, data: g } = t.data;
|
|
@@ -8534,8 +8536,8 @@ var ss = class {
|
|
|
8534
8536
|
close() {
|
|
8535
8537
|
this.options.leaderElection && this.elector.close(), this.send(4), this.channel.close();
|
|
8536
8538
|
}
|
|
8537
|
-
},
|
|
8538
|
-
function
|
|
8539
|
+
}, ms = pa ? document : null, us = ["mousemove", "keydown", "wheel", "DOMMouseScroll", "mousewheel", "mousedown", "touchstart", "touchmove", "MSPointerDown", "MSPointerMove", "visibilitychange", "focus"];
|
|
8540
|
+
function ps(e, n) {
|
|
8539
8541
|
let t;
|
|
8540
8542
|
function l(...p) {
|
|
8541
8543
|
t && clearTimeout(t), t = setTimeout(() => {
|
|
@@ -8554,7 +8556,7 @@ function ri(e, n) {
|
|
|
8554
8556
|
};
|
|
8555
8557
|
}
|
|
8556
8558
|
var Te = () => Date.now(), Fa = 2147483647;
|
|
8557
|
-
function
|
|
8559
|
+
function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle: t = 0, element: l = ms, events: p = us, timers: g = void 0, immediateEvents: b = [], onPresenceChange: d = () => {
|
|
8558
8560
|
}, onPrompt: r = () => {
|
|
8559
8561
|
}, onIdle: a = () => {
|
|
8560
8562
|
}, onActive: i = () => {
|
|
@@ -8607,7 +8609,7 @@ function ds({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8607
8609
|
}, [s]);
|
|
8608
8610
|
let Ue = Oa(() => {
|
|
8609
8611
|
let V = (De, ia) => ce.current(De, ia);
|
|
8610
|
-
return u > 0 ?
|
|
8612
|
+
return u > 0 ? ps(V, u) : m > 0 ? ri(V, m) : V;
|
|
8611
8613
|
}, [m, u]), Ie = ee();
|
|
8612
8614
|
ge(() => {
|
|
8613
8615
|
U && v && (Ie.current = ri(() => {
|
|
@@ -8674,7 +8676,7 @@ function ds({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8674
8676
|
}, [k, F]);
|
|
8675
8677
|
ge(() => {
|
|
8676
8678
|
if (u > 0 && m > 0) throw new Error("❌ onAction can either be throttled or debounced, not both.");
|
|
8677
|
-
g &&
|
|
8679
|
+
g && is(g);
|
|
8678
8680
|
let V = () => {
|
|
8679
8681
|
x.current && x.current.close(), Ue.cancel && Ue.cancel(), Ce(), Re(!0);
|
|
8680
8682
|
};
|
|
@@ -8682,7 +8684,7 @@ function ds({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8682
8684
|
pa && window.removeEventListener("beforeunload", V), x.current && x.current.close(), Ue.cancel && Ue.cancel(), Ce(), Re(!0);
|
|
8683
8685
|
};
|
|
8684
8686
|
}, []), ge(() => {
|
|
8685
|
-
x.current && x.current.close(), U ? x.current = new
|
|
8687
|
+
x.current && x.current.close(), U ? x.current = new ss({ channelName: C, leaderElection: D, onPrompt: () => {
|
|
8686
8688
|
ea();
|
|
8687
8689
|
}, onIdle: () => {
|
|
8688
8690
|
Me();
|
|
@@ -8717,15 +8719,15 @@ function ds({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8717
8719
|
} };
|
|
8718
8720
|
return Se;
|
|
8719
8721
|
}
|
|
8720
|
-
var
|
|
8721
|
-
|
|
8722
|
-
const
|
|
8722
|
+
var ds = qt(null);
|
|
8723
|
+
ds.Consumer;
|
|
8724
|
+
const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
8723
8725
|
onIdle: e,
|
|
8724
8726
|
onActive: n,
|
|
8725
8727
|
onAction: t,
|
|
8726
8728
|
timeout: l,
|
|
8727
8729
|
throttle: 500
|
|
8728
|
-
}),
|
|
8730
|
+
}), cs = ({ options: e } = {}) => {
|
|
8729
8731
|
const { commonInboxApi: n } = Ha(), { getToken: t, lng: l } = se(), p = t?.(), g = Qe(l);
|
|
8730
8732
|
return j({
|
|
8731
8733
|
queryKey: ["inboxList"],
|
|
@@ -8746,20 +8748,20 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
8746
8748
|
enabled: !!p,
|
|
8747
8749
|
...e
|
|
8748
8750
|
});
|
|
8749
|
-
},
|
|
8751
|
+
}, fs = ({ options: e } = {}) => {
|
|
8750
8752
|
const { commonReadInboxApi: n } = Ha();
|
|
8751
|
-
return
|
|
8753
|
+
return le({
|
|
8752
8754
|
mutationKey: ["readInbox"],
|
|
8753
8755
|
mutationFn: async (t) => await n(t),
|
|
8754
8756
|
...e
|
|
8755
8757
|
});
|
|
8756
|
-
},
|
|
8758
|
+
}, jm = ({
|
|
8757
8759
|
options: e = {
|
|
8758
8760
|
inboxList: {},
|
|
8759
8761
|
readInbox: {}
|
|
8760
8762
|
}
|
|
8761
8763
|
} = {}) => {
|
|
8762
|
-
const n =
|
|
8764
|
+
const n = cs({ options: e.inboxList }), t = fs({ options: e.readInbox });
|
|
8763
8765
|
return {
|
|
8764
8766
|
inboxListQuery: n,
|
|
8765
8767
|
readInboxMutation: t
|
|
@@ -8774,7 +8776,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
8774
8776
|
[e]
|
|
8775
8777
|
)
|
|
8776
8778
|
};
|
|
8777
|
-
},
|
|
8779
|
+
}, _s = ({
|
|
8778
8780
|
typeConfig: e = {
|
|
8779
8781
|
all: {},
|
|
8780
8782
|
crypto: {},
|
|
@@ -8820,7 +8822,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
8820
8822
|
value: "other",
|
|
8821
8823
|
...e.other
|
|
8822
8824
|
}
|
|
8823
|
-
],
|
|
8825
|
+
], Ym = ({ options: e, formData: n } = {}) => {
|
|
8824
8826
|
const { lng: t } = se(), { newsListApi: l } = rl(), p = Qe(t);
|
|
8825
8827
|
return j({
|
|
8826
8828
|
queryKey: ["newsList"],
|
|
@@ -8841,12 +8843,12 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
8841
8843
|
return {
|
|
8842
8844
|
...g.data,
|
|
8843
8845
|
data: r,
|
|
8844
|
-
blogType:
|
|
8846
|
+
blogType: _s({ typeConfig: e?.typeConfig })
|
|
8845
8847
|
};
|
|
8846
8848
|
},
|
|
8847
8849
|
...e
|
|
8848
8850
|
});
|
|
8849
|
-
},
|
|
8851
|
+
}, Xm = ({ options: e, formData: n } = {}) => {
|
|
8850
8852
|
const { lng: t } = se(), { newsListApi: l } = rl(), p = Qe(t);
|
|
8851
8853
|
return j({
|
|
8852
8854
|
queryKey: ["newsList"],
|
|
@@ -9035,14 +9037,14 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9035
9037
|
transactionRecordApi: s,
|
|
9036
9038
|
treasureRecordApi: u
|
|
9037
9039
|
};
|
|
9038
|
-
},
|
|
9040
|
+
}, ys = ({ options: e } = {}) => {
|
|
9039
9041
|
const { depositApiV1: n } = Ae();
|
|
9040
9042
|
return j({
|
|
9041
9043
|
queryKey: ["depositV1"],
|
|
9042
9044
|
queryFn: n,
|
|
9043
9045
|
...e
|
|
9044
9046
|
});
|
|
9045
|
-
},
|
|
9047
|
+
}, Us = ({ paramsData: e, options: n } = {}) => {
|
|
9046
9048
|
const { depositApiV2: t } = Ae();
|
|
9047
9049
|
return j({
|
|
9048
9050
|
queryKey: ["depositV2", e],
|
|
@@ -9067,105 +9069,105 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9067
9069
|
},
|
|
9068
9070
|
...n
|
|
9069
9071
|
});
|
|
9070
|
-
},
|
|
9072
|
+
}, bs = ({ options: e } = {}) => {
|
|
9071
9073
|
const { depositApi: n } = Ae();
|
|
9072
|
-
return
|
|
9074
|
+
return le({
|
|
9073
9075
|
mutationKey: ["depositAction"],
|
|
9074
9076
|
mutationFn: async (t) => n(t),
|
|
9075
9077
|
...e
|
|
9076
9078
|
});
|
|
9077
|
-
},
|
|
9079
|
+
}, Cs = ({ options: e } = {}) => {
|
|
9078
9080
|
const { withdrawApi: n } = Ae();
|
|
9079
|
-
return
|
|
9081
|
+
return le({
|
|
9080
9082
|
mutationKey: ["withdrawAction"],
|
|
9081
9083
|
mutationFn: async (t) => n(t),
|
|
9082
9084
|
...e
|
|
9083
9085
|
});
|
|
9084
|
-
},
|
|
9086
|
+
}, vs = ({ paramsData: e, options: n } = {}) => {
|
|
9085
9087
|
const { depositTransactionApi: t } = Ae();
|
|
9086
9088
|
return j({
|
|
9087
9089
|
queryKey: ["depositTransaction", e],
|
|
9088
9090
|
queryFn: () => t({ paramsData: e }),
|
|
9089
9091
|
...n
|
|
9090
9092
|
});
|
|
9091
|
-
},
|
|
9093
|
+
}, hs = ({ paramsData: e, options: n } = {}) => {
|
|
9092
9094
|
const { eventTransactionApi: t } = Ae();
|
|
9093
9095
|
return j({
|
|
9094
9096
|
queryKey: ["eventTransaction", e],
|
|
9095
9097
|
queryFn: () => t({ paramsData: e }),
|
|
9096
9098
|
...n
|
|
9097
9099
|
});
|
|
9098
|
-
},
|
|
9100
|
+
}, Ts = ({ options: e } = {}) => {
|
|
9099
9101
|
const { bankDepositApi: n } = Ae();
|
|
9100
|
-
return
|
|
9102
|
+
return le({
|
|
9101
9103
|
mutationKey: ["bankDeposit"],
|
|
9102
9104
|
mutationFn: async (t) => n(t),
|
|
9103
9105
|
...e
|
|
9104
9106
|
});
|
|
9105
|
-
},
|
|
9107
|
+
}, ks = ({ paramsData: e, options: n } = {}) => {
|
|
9106
9108
|
const { withdrawTransactionApi: t } = Ae();
|
|
9107
9109
|
return j({
|
|
9108
9110
|
queryKey: ["withdrawTransaction", e],
|
|
9109
9111
|
queryFn: () => t({ paramsData: e }),
|
|
9110
9112
|
...n
|
|
9111
9113
|
});
|
|
9112
|
-
},
|
|
9114
|
+
}, eu = ({ options: e } = {}) => {
|
|
9113
9115
|
const { redeemCodeDepositApi: n } = Ae();
|
|
9114
|
-
return
|
|
9116
|
+
return le({
|
|
9115
9117
|
mutationKey: ["redeemCodeDeposit"],
|
|
9116
9118
|
mutationFn: async (t) => n(t),
|
|
9117
9119
|
...e
|
|
9118
9120
|
});
|
|
9119
|
-
},
|
|
9121
|
+
}, au = ({ options: e } = {}) => {
|
|
9120
9122
|
const { invoiceApi: n } = Ae();
|
|
9121
|
-
return
|
|
9123
|
+
return le({
|
|
9122
9124
|
mutationKey: ["invoiceAction"],
|
|
9123
9125
|
mutationFn: async (t) => n(t),
|
|
9124
9126
|
...e
|
|
9125
9127
|
});
|
|
9126
|
-
},
|
|
9128
|
+
}, tu = ({ options: e } = {}) => {
|
|
9127
9129
|
const { updateInvoiceApi: n } = Ae();
|
|
9128
|
-
return
|
|
9130
|
+
return le({
|
|
9129
9131
|
mutationKey: ["updateInvoiceAction"],
|
|
9130
9132
|
mutationFn: async (t) => n(t),
|
|
9131
9133
|
...e
|
|
9132
9134
|
});
|
|
9133
|
-
},
|
|
9135
|
+
}, iu = ({ options: e, paramsData: n } = {}) => {
|
|
9134
9136
|
const { transactionRecordApi: t } = Ae();
|
|
9135
9137
|
return j({
|
|
9136
9138
|
queryKey: ["transactionRecord", "deposit"],
|
|
9137
9139
|
queryFn: () => t(n, "deposit"),
|
|
9138
9140
|
...e
|
|
9139
9141
|
});
|
|
9140
|
-
},
|
|
9142
|
+
}, nu = ({ options: e, paramsData: n } = {}) => {
|
|
9141
9143
|
const { transactionRecordApi: t } = Ae();
|
|
9142
9144
|
return j({
|
|
9143
9145
|
queryKey: ["transactionRecord", "withdraw"],
|
|
9144
9146
|
queryFn: () => t(n, "withdraw"),
|
|
9145
9147
|
...e
|
|
9146
9148
|
});
|
|
9147
|
-
},
|
|
9149
|
+
}, lu = ({ options: e, paramsData: n } = {}) => {
|
|
9148
9150
|
const { transactionRecordApi: t } = Ae();
|
|
9149
9151
|
return j({
|
|
9150
9152
|
queryKey: ["transactionRecord", "event"],
|
|
9151
9153
|
queryFn: () => t(n, "event"),
|
|
9152
9154
|
...e
|
|
9153
9155
|
});
|
|
9154
|
-
},
|
|
9156
|
+
}, ru = ({ options: e, paramsData: n } = {}) => {
|
|
9155
9157
|
const { transactionRecordApi: t } = Ae();
|
|
9156
9158
|
return j({
|
|
9157
9159
|
queryKey: ["transactionRecord", "rebate"],
|
|
9158
9160
|
queryFn: () => t(n, "rebate"),
|
|
9159
9161
|
...e
|
|
9160
9162
|
});
|
|
9161
|
-
},
|
|
9163
|
+
}, ou = ({ options: e, paramsData: n } = {}) => {
|
|
9162
9164
|
const { treasureRecordApi: t } = Ae();
|
|
9163
9165
|
return j({
|
|
9164
9166
|
queryKey: ["treasureRecord", n],
|
|
9165
9167
|
queryFn: () => t(n),
|
|
9166
9168
|
...e
|
|
9167
9169
|
});
|
|
9168
|
-
},
|
|
9170
|
+
}, su = ({
|
|
9169
9171
|
depositV1: e = {},
|
|
9170
9172
|
depositV2: n = {},
|
|
9171
9173
|
depositTransaction: t = {},
|
|
@@ -9175,7 +9177,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9175
9177
|
eventTransaction: b = {},
|
|
9176
9178
|
withdrawTransaction: d = {}
|
|
9177
9179
|
} = {}) => {
|
|
9178
|
-
const r =
|
|
9180
|
+
const r = ys(e), a = Us(n), i = vs(t), o = bs(l), s = Cs(p), u = Ts(g), m = hs(b), c = ks(
|
|
9179
9181
|
d
|
|
9180
9182
|
);
|
|
9181
9183
|
return {
|
|
@@ -9188,10 +9190,10 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9188
9190
|
eventTransaction: m,
|
|
9189
9191
|
withdrawTransaction: c
|
|
9190
9192
|
};
|
|
9191
|
-
}, ol = "3.7.8",
|
|
9193
|
+
}, ol = "3.7.8", xs = ol, Wa = typeof Buffer == "function", Mn = typeof TextDecoder == "function" ? new TextDecoder() : void 0, Rn = typeof TextEncoder == "function" ? new TextEncoder() : void 0, Ss = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Qa = Array.prototype.slice.call(Ss), rt = ((e) => {
|
|
9192
9194
|
let n = {};
|
|
9193
9195
|
return e.forEach((t, l) => n[t] = l), n;
|
|
9194
|
-
})(Qa),
|
|
9196
|
+
})(Qa), Ds = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, Le = String.fromCharCode.bind(String), Pn = 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) => {
|
|
9195
9197
|
let n, t, l, p, g = "";
|
|
9196
9198
|
const b = e.length % 3;
|
|
9197
9199
|
for (let d = 0; d < e.length; ) {
|
|
@@ -9205,7 +9207,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9205
9207
|
for (let l = 0, p = e.length; l < p; l += 4096)
|
|
9206
9208
|
t.push(Le.apply(null, e.subarray(l, l + 4096)));
|
|
9207
9209
|
return xi(t.join(""));
|
|
9208
|
-
}, Jt = (e, n = !1) => n ? sl(ui(e)) : ui(e),
|
|
9210
|
+
}, Jt = (e, n = !1) => n ? sl(ui(e)) : ui(e), Es = (e) => {
|
|
9209
9211
|
if (e.length < 2) {
|
|
9210
9212
|
var n = e.charCodeAt(0);
|
|
9211
9213
|
return n < 128 ? e : n < 2048 ? Le(192 | n >>> 6) + Le(128 | n & 63) : Le(224 | n >>> 12 & 15) + Le(128 | n >>> 6 & 63) + Le(128 | n & 63);
|
|
@@ -9213,7 +9215,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9213
9215
|
var n = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
|
|
9214
9216
|
return Le(240 | n >>> 18 & 7) + Le(128 | n >>> 12 & 63) + Le(128 | n >>> 6 & 63) + Le(128 | n & 63);
|
|
9215
9217
|
}
|
|
9216
|
-
},
|
|
9218
|
+
}, Ns = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, pl = (e) => e.replace(Ns, Es), wn = Wa ? (e) => Buffer.from(e, "utf8").toString("base64") : Rn ? (e) => ui(Rn.encode(e)) : (e) => xi(pl(e)), Ba = (e, n = !1) => n ? sl(wn(e)) : wn(e), Fn = (e) => Ba(e, !0), Ls = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, Gs = (e) => {
|
|
9217
9219
|
switch (e.length) {
|
|
9218
9220
|
case 4:
|
|
9219
9221
|
var n = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), t = n - 65536;
|
|
@@ -9223,15 +9225,15 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9223
9225
|
default:
|
|
9224
9226
|
return Le((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
|
|
9225
9227
|
}
|
|
9226
|
-
}, gl = (e) => e.replace(
|
|
9227
|
-
if (e = e.replace(/\s+/g, ""), !
|
|
9228
|
+
}, gl = (e) => e.replace(Ls, Gs), dl = (e) => {
|
|
9229
|
+
if (e = e.replace(/\s+/g, ""), !Ds.test(e))
|
|
9228
9230
|
throw new TypeError("malformed base64.");
|
|
9229
9231
|
e += "==".slice(2 - (e.length & 3));
|
|
9230
9232
|
let n, t, l, p = [];
|
|
9231
9233
|
for (let g = 0; g < e.length; )
|
|
9232
9234
|
n = rt[e.charAt(g++)] << 18 | rt[e.charAt(g++)] << 12 | (t = rt[e.charAt(g++)]) << 6 | (l = rt[e.charAt(g++)]), t === 64 ? p.push(Le(n >> 16 & 255)) : l === 64 ? p.push(Le(n >> 16 & 255, n >> 8 & 255)) : p.push(Le(n >> 16 & 255, n >> 8 & 255, n & 255));
|
|
9233
9235
|
return p.join("");
|
|
9234
|
-
}, Si = typeof atob == "function" ? (e) => atob(ml(e)) : Wa ? (e) => Buffer.from(e, "base64").toString("binary") : dl, cl = Wa ? (e) => Pn(Buffer.from(e, "base64")) : (e) => Pn(Si(e).split("").map((n) => n.charCodeAt(0))), fl = (e) => cl(_l(e)),
|
|
9236
|
+
}, Si = typeof atob == "function" ? (e) => atob(ml(e)) : Wa ? (e) => Buffer.from(e, "base64").toString("binary") : dl, cl = Wa ? (e) => Pn(Buffer.from(e, "base64")) : (e) => Pn(Si(e).split("").map((n) => n.charCodeAt(0))), fl = (e) => cl(_l(e)), Ms = Wa ? (e) => Buffer.from(e, "base64").toString("utf8") : Mn ? (e) => Mn.decode(cl(e)) : (e) => gl(Si(e)), _l = (e) => ml(e.replace(/[-_]/g, (n) => n == "-" ? "+" : "/")), pi = (e) => Ms(_l(e)), Rs = (e) => {
|
|
9235
9237
|
if (typeof e != "string")
|
|
9236
9238
|
return !1;
|
|
9237
9239
|
const n = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
|
|
@@ -9263,11 +9265,11 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9263
9265
|
}), e("toBase64URL", function() {
|
|
9264
9266
|
return Jt(this, !0);
|
|
9265
9267
|
});
|
|
9266
|
-
},
|
|
9268
|
+
}, Ps = () => {
|
|
9267
9269
|
Ul(), bl();
|
|
9268
|
-
},
|
|
9270
|
+
}, ws = {
|
|
9269
9271
|
version: ol,
|
|
9270
|
-
VERSION:
|
|
9272
|
+
VERSION: xs,
|
|
9271
9273
|
atob: Si,
|
|
9272
9274
|
atobPolyfill: dl,
|
|
9273
9275
|
btoa: xi,
|
|
@@ -9280,13 +9282,13 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9280
9282
|
utob: pl,
|
|
9281
9283
|
btou: gl,
|
|
9282
9284
|
decode: pi,
|
|
9283
|
-
isValid:
|
|
9285
|
+
isValid: Rs,
|
|
9284
9286
|
fromUint8Array: Jt,
|
|
9285
9287
|
toUint8Array: fl,
|
|
9286
9288
|
extendString: Ul,
|
|
9287
9289
|
extendUint8Array: bl,
|
|
9288
|
-
extendBuiltins:
|
|
9289
|
-
},
|
|
9290
|
+
extendBuiltins: Ps
|
|
9291
|
+
}, mu = (e, n) => {
|
|
9290
9292
|
const { playGameApi: t } = bi();
|
|
9291
9293
|
return j({
|
|
9292
9294
|
queryKey: ["playGame"],
|
|
@@ -9313,7 +9315,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9313
9315
|
supportPortrait: s,
|
|
9314
9316
|
isHtmlCode: m,
|
|
9315
9317
|
gameUrl: u,
|
|
9316
|
-
decodeGameUrl:
|
|
9318
|
+
decodeGameUrl: ws.decode(u),
|
|
9317
9319
|
message: c
|
|
9318
9320
|
};
|
|
9319
9321
|
},
|
|
@@ -9326,28 +9328,28 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9326
9328
|
currentRebateApi: n,
|
|
9327
9329
|
receiveRebateApi: t
|
|
9328
9330
|
};
|
|
9329
|
-
},
|
|
9331
|
+
}, Fs = ({ options: e } = {}) => {
|
|
9330
9332
|
const { currentRebateApi: n } = Cl();
|
|
9331
9333
|
return j({
|
|
9332
9334
|
queryKey: ["currentRebate"],
|
|
9333
9335
|
queryFn: () => n(),
|
|
9334
|
-
select: (t) =>
|
|
9336
|
+
select: (t) => zl(t, ["code", "status"]),
|
|
9335
9337
|
...e
|
|
9336
9338
|
});
|
|
9337
|
-
},
|
|
9339
|
+
}, As = ({ options: e } = {}) => {
|
|
9338
9340
|
const { receiveRebateApi: n } = Cl();
|
|
9339
|
-
return
|
|
9341
|
+
return le({
|
|
9340
9342
|
mutationKey: ["receiveRebate"],
|
|
9341
9343
|
mutationFn: async () => n(),
|
|
9342
9344
|
...e
|
|
9343
9345
|
});
|
|
9344
|
-
},
|
|
9346
|
+
}, uu = ({
|
|
9345
9347
|
options: e = {
|
|
9346
9348
|
currentRebate: {},
|
|
9347
9349
|
receiveRebate: {}
|
|
9348
9350
|
}
|
|
9349
9351
|
} = {}) => {
|
|
9350
|
-
const n =
|
|
9352
|
+
const n = Fs({ options: e.currentRebate }), t = As({ options: e.receiveRebate });
|
|
9351
9353
|
return {
|
|
9352
9354
|
currentRebate: n,
|
|
9353
9355
|
receiveRebate: t
|
|
@@ -9371,7 +9373,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9371
9373
|
redeemRewardApi: p,
|
|
9372
9374
|
historyRewardApi: g
|
|
9373
9375
|
};
|
|
9374
|
-
},
|
|
9376
|
+
}, Os = ({ options: e, formData: n } = {}) => {
|
|
9375
9377
|
const { rewardListApi: t } = Xa();
|
|
9376
9378
|
return j({
|
|
9377
9379
|
queryKey: ["rewardsList"],
|
|
@@ -9384,7 +9386,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9384
9386
|
const {
|
|
9385
9387
|
wagering_restricted_amount: b,
|
|
9386
9388
|
claimed_amount: d
|
|
9387
|
-
} = g, r =
|
|
9389
|
+
} = g, r = re(g, "rewards", {}), {
|
|
9388
9390
|
expiration_days: a,
|
|
9389
9391
|
name: i,
|
|
9390
9392
|
position: o,
|
|
@@ -9411,35 +9413,35 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9411
9413
|
},
|
|
9412
9414
|
...e
|
|
9413
9415
|
});
|
|
9414
|
-
},
|
|
9416
|
+
}, Bs = ({ options: e } = {}) => {
|
|
9415
9417
|
const { redeemRewardApi: n } = Xa();
|
|
9416
|
-
return
|
|
9418
|
+
return le({
|
|
9417
9419
|
mutationKey: ["redeemReward"],
|
|
9418
9420
|
mutationFn: async (t) => await n(t),
|
|
9419
9421
|
...e
|
|
9420
9422
|
});
|
|
9421
|
-
},
|
|
9423
|
+
}, Hs = ({ options: e } = {}) => {
|
|
9422
9424
|
const { unUsedRewardListApi: n } = Xa();
|
|
9423
9425
|
return j({
|
|
9424
9426
|
queryKey: ["unUsedRewardsList"],
|
|
9425
9427
|
queryFn: n,
|
|
9426
9428
|
...e
|
|
9427
9429
|
});
|
|
9428
|
-
},
|
|
9430
|
+
}, Ws = ({ options: e } = {}) => {
|
|
9429
9431
|
const { expiredRewardListApi: n } = Xa();
|
|
9430
9432
|
return j({
|
|
9431
9433
|
queryKey: ["expiredRewardsList"],
|
|
9432
9434
|
queryFn: n,
|
|
9433
9435
|
...e
|
|
9434
9436
|
});
|
|
9435
|
-
},
|
|
9437
|
+
}, zs = ({ options: e } = {}) => {
|
|
9436
9438
|
const { historyRewardApi: n } = Xa();
|
|
9437
9439
|
return j({
|
|
9438
9440
|
queryKey: ["historyRewardsList"],
|
|
9439
9441
|
queryFn: n,
|
|
9440
9442
|
...e
|
|
9441
9443
|
});
|
|
9442
|
-
},
|
|
9444
|
+
}, pu = ({
|
|
9443
9445
|
options: e = {
|
|
9444
9446
|
rewardsList: {},
|
|
9445
9447
|
redeemReward: {},
|
|
@@ -9448,13 +9450,13 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9448
9450
|
historyRewardsList: {}
|
|
9449
9451
|
}
|
|
9450
9452
|
} = {}) => {
|
|
9451
|
-
const n =
|
|
9453
|
+
const n = Os({ options: e.rewardsList }), t = Bs({
|
|
9452
9454
|
options: e.redeemReward
|
|
9453
|
-
}), l =
|
|
9455
|
+
}), l = Hs({
|
|
9454
9456
|
options: e.unUsedRewardsList
|
|
9455
|
-
}), p =
|
|
9457
|
+
}), p = Ws({
|
|
9456
9458
|
options: e.expiredRewardsList
|
|
9457
|
-
}), g =
|
|
9459
|
+
}), g = zs({
|
|
9458
9460
|
options: e.historyRewardsList
|
|
9459
9461
|
});
|
|
9460
9462
|
return {
|
|
@@ -9499,20 +9501,20 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9499
9501
|
treasureListApi: n,
|
|
9500
9502
|
redeemTreasureApi: t
|
|
9501
9503
|
};
|
|
9502
|
-
},
|
|
9504
|
+
}, gu = ({ paramsData: e, options: n } = {}) => {
|
|
9503
9505
|
const { client: t, lng: l } = se(), p = Qe(l || "tw"), { treasureListApi: g } = vl();
|
|
9504
9506
|
return j({
|
|
9505
9507
|
queryKey: ["treasureList", e],
|
|
9506
9508
|
queryFn: () => g(e),
|
|
9507
9509
|
select: (b) => {
|
|
9508
|
-
const d =
|
|
9509
|
-
current_page:
|
|
9510
|
-
per_page:
|
|
9511
|
-
total:
|
|
9512
|
-
last_page:
|
|
9510
|
+
const d = re(b, "data", {}), r = {
|
|
9511
|
+
current_page: re(d, "current_page", 1),
|
|
9512
|
+
per_page: re(d, "per_page", 10),
|
|
9513
|
+
total: re(d, "total", 1),
|
|
9514
|
+
last_page: re(d, "last_page", 1)
|
|
9513
9515
|
};
|
|
9514
9516
|
return {
|
|
9515
|
-
list: Be(
|
|
9517
|
+
list: Be(re(d, "data", []), (i) => {
|
|
9516
9518
|
const o = $e(i.treasure_copywriting, {
|
|
9517
9519
|
language: p
|
|
9518
9520
|
});
|
|
@@ -9527,9 +9529,9 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9527
9529
|
},
|
|
9528
9530
|
...n
|
|
9529
9531
|
});
|
|
9530
|
-
},
|
|
9532
|
+
}, du = ({ options: e } = {}) => {
|
|
9531
9533
|
const { redeemTreasureApi: n } = vl();
|
|
9532
|
-
return
|
|
9534
|
+
return le({
|
|
9533
9535
|
mutationKey: ["redeemTreasure"],
|
|
9534
9536
|
mutationFn: async (t) => n(t),
|
|
9535
9537
|
...e
|
|
@@ -9540,7 +9542,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9540
9542
|
vipListApi: n,
|
|
9541
9543
|
vipInfoApi: t
|
|
9542
9544
|
};
|
|
9543
|
-
},
|
|
9545
|
+
}, cu = ({ options: e } = {}) => {
|
|
9544
9546
|
const { store: n } = se(), t = n?.getState()?.isMemberInfo || n?.getState()?.member?.member || {}, { vipInfoApi: l } = hl();
|
|
9545
9547
|
return j({
|
|
9546
9548
|
queryKey: ["vipInfo"],
|
|
@@ -9555,7 +9557,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9555
9557
|
},
|
|
9556
9558
|
...e
|
|
9557
9559
|
});
|
|
9558
|
-
},
|
|
9560
|
+
}, Is = ({ options: e } = {}) => {
|
|
9559
9561
|
const { store: n } = se(), t = n?.getState()?.isWalletCurrency || n?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: l } = hl();
|
|
9560
9562
|
return j({
|
|
9561
9563
|
queryKey: ["vipList"],
|
|
@@ -9575,7 +9577,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9575
9577
|
} = d, u = $e(r, { currency_code: t }) || {}, m = $e(a, { currency_code: t }) || {}, c = i, f = Be(o, (U) => ({
|
|
9576
9578
|
...U,
|
|
9577
9579
|
rebateRange: JSON.parse(U.rebate_range)
|
|
9578
|
-
})), y =
|
|
9580
|
+
})), y = re(s, "[0]", {}), _ = {
|
|
9579
9581
|
...y,
|
|
9580
9582
|
platformRebate: JSON.parse(y.rebate || "{}")
|
|
9581
9583
|
};
|
|
@@ -9592,10 +9594,10 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9592
9594
|
},
|
|
9593
9595
|
...e
|
|
9594
9596
|
});
|
|
9595
|
-
},
|
|
9597
|
+
}, fu = ({ options: e } = {
|
|
9596
9598
|
vipList: {}
|
|
9597
9599
|
}) => ({
|
|
9598
|
-
vipList:
|
|
9600
|
+
vipList: Is({ options: e.vipList })
|
|
9599
9601
|
}), An = (e) => {
|
|
9600
9602
|
switch (e) {
|
|
9601
9603
|
case "tw":
|
|
@@ -9615,7 +9617,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9615
9617
|
default:
|
|
9616
9618
|
return "En";
|
|
9617
9619
|
}
|
|
9618
|
-
}, ot = "game-icon-ds88",
|
|
9620
|
+
}, ot = "game-icon-ds88", _u = ({ gameData: e = {} } = {}) => {
|
|
9619
9621
|
const { lng: n } = se(), t = An(n), {
|
|
9620
9622
|
gameCode: l,
|
|
9621
9623
|
// 遊戲代碼
|
|
@@ -9688,7 +9690,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9688
9690
|
isInvalidBet: y,
|
|
9689
9691
|
haveJackpot: _
|
|
9690
9692
|
};
|
|
9691
|
-
},
|
|
9693
|
+
}, Vs = (e, n = !1) => Il([
|
|
9692
9694
|
"EVO",
|
|
9693
9695
|
"IMSPRIBE",
|
|
9694
9696
|
"SABA",
|
|
@@ -9699,7 +9701,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9699
9701
|
"HACK",
|
|
9700
9702
|
"NAGA",
|
|
9701
9703
|
"RSG"
|
|
9702
|
-
], e) && n ? `${e}_dark` : e,
|
|
9704
|
+
], e) && n ? `${e}_dark` : e, yu = ({ platformData: e, darkMode: n } = {}) => {
|
|
9703
9705
|
const {
|
|
9704
9706
|
SubPlatformEnum: t,
|
|
9705
9707
|
// 子平台枚舉
|
|
@@ -9721,7 +9723,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9721
9723
|
// 臨時維護開始時間
|
|
9722
9724
|
temp_maintenance_end_time: o
|
|
9723
9725
|
// 臨時維護結束時間
|
|
9724
|
-
} = e || {}, s = `${Ze}/${qn}/${
|
|
9726
|
+
} = e || {}, s = `${Ze}/${qn}/${Vs(l, n)}.png`;
|
|
9725
9727
|
return {
|
|
9726
9728
|
subPlatformEnum: t,
|
|
9727
9729
|
platformEnum: l,
|
|
@@ -9735,19 +9737,19 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9735
9737
|
tempMaintenanceEndTime: o,
|
|
9736
9738
|
platformImageUrl: s
|
|
9737
9739
|
};
|
|
9738
|
-
},
|
|
9740
|
+
}, Js = (e = {}) => !$t(e) || Ee(e) ? [] : Qt(e), On = (e = []) => !la(e) || Ee(e) ? [] : Be(e, "platform"), Zs = (e = []) => !la(e) || Ee(e) ? [] : Be(e, "gameTypeName"), Ks = (e = []) => !la(e) || Ee(e) ? [] : Be(e, "game_subtype"), qs = (e = {}) => !$t(e) || Ee(e) ? [] : Qt(e), $s = (e = [], n = []) => !la(e) || Ee(e) ? {} : !la(n) || Ee(n) ? {} : e.reduce((t, l) => {
|
|
9739
9741
|
const p = n.map((g) => g.game_subtype);
|
|
9740
9742
|
return p.forEach((g) => {
|
|
9741
9743
|
t[g] = t[g] || [];
|
|
9742
9744
|
}), p.includes(l.game_subtype) && t[l.game_subtype].push(l), t;
|
|
9743
|
-
}, {}),
|
|
9745
|
+
}, {}), Qs = ({
|
|
9744
9746
|
gameTypes: e = [],
|
|
9745
9747
|
platforms: n = [],
|
|
9746
9748
|
gameList: t = {},
|
|
9747
9749
|
allGameTypes: l = [],
|
|
9748
9750
|
allPlatforms: p = []
|
|
9749
9751
|
}) => !la(e) || !la(n) ? {} : Ee(t) ? {} : e.reduce((g, b) => {
|
|
9750
|
-
const d =
|
|
9752
|
+
const d = Yl({
|
|
9751
9753
|
gameTypeName: b,
|
|
9752
9754
|
platforms: n,
|
|
9753
9755
|
gameList: t,
|
|
@@ -9755,7 +9757,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9755
9757
|
allPlatforms: p
|
|
9756
9758
|
});
|
|
9757
9759
|
return Ee(d) || (g[b] = d), g;
|
|
9758
|
-
}, {}),
|
|
9760
|
+
}, {}), Uu = ({
|
|
9759
9761
|
types: e = [],
|
|
9760
9762
|
platforms: n = [],
|
|
9761
9763
|
allGameType: t = [],
|
|
@@ -9765,7 +9767,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9765
9767
|
const d = Qn(t, b);
|
|
9766
9768
|
if (!d) return g;
|
|
9767
9769
|
const r = p[d] || [], a = n.reduce((i, o) => {
|
|
9768
|
-
const s =
|
|
9770
|
+
const s = Xl({
|
|
9769
9771
|
platformName: o,
|
|
9770
9772
|
gamesOfType: r,
|
|
9771
9773
|
allPlatforms: l
|
|
@@ -9773,9 +9775,9 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9773
9775
|
return Ee(s) ? i : { ...i, [o]: s };
|
|
9774
9776
|
}, {});
|
|
9775
9777
|
return Ee(a) || (g[b] = a), g;
|
|
9776
|
-
}, {}),
|
|
9778
|
+
}, {}), js = (e = {}) => !$t(e) || Ee(e) ? {} : Object.values(e).reduce((t, l) => (Object.entries(l).forEach(([p, g]) => {
|
|
9777
9779
|
t[p] ? t[p] = [...t[p], ...g] : t[p] = g;
|
|
9778
|
-
}), t), {}),
|
|
9780
|
+
}), t), {}), Ys = (e = {}) => {
|
|
9779
9781
|
if (!$t(e) || Ee(e)) return {};
|
|
9780
9782
|
const n = {};
|
|
9781
9783
|
for (const [t, l] of Object.entries(e)) {
|
|
@@ -9786,7 +9788,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9786
9788
|
}
|
|
9787
9789
|
}
|
|
9788
9790
|
return n;
|
|
9789
|
-
},
|
|
9791
|
+
}, Xs = ({
|
|
9790
9792
|
allGameList: e = {},
|
|
9791
9793
|
allGamePlatform: n = [],
|
|
9792
9794
|
allGameType: t = [],
|
|
@@ -9799,7 +9801,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9799
9801
|
highlightGames: a = [],
|
|
9800
9802
|
originPlatform: i = []
|
|
9801
9803
|
}) => {
|
|
9802
|
-
const o =
|
|
9804
|
+
const o = Js(e), s = On(n), u = Zs(t), m = Ks(l), c = On(i), f = qs(d), y = Qs({
|
|
9803
9805
|
gameTypes: u,
|
|
9804
9806
|
platforms: s,
|
|
9805
9807
|
gameList: e,
|
|
@@ -9811,9 +9813,9 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9811
9813
|
...G,
|
|
9812
9814
|
platformImageUrl: O
|
|
9813
9815
|
};
|
|
9814
|
-
}), U =
|
|
9816
|
+
}), U = $s(o, l), C = js(y), v = Ys(C), D = zn(y).reduce(
|
|
9815
9817
|
(G, [O, k]) => {
|
|
9816
|
-
const h = Qt(
|
|
9818
|
+
const h = Qt(Vl(k));
|
|
9817
9819
|
return G[O] = h, G;
|
|
9818
9820
|
},
|
|
9819
9821
|
{}
|
|
@@ -9854,12 +9856,12 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9854
9856
|
favorite: f
|
|
9855
9857
|
}
|
|
9856
9858
|
};
|
|
9857
|
-
},
|
|
9859
|
+
}, bu = (e = []) => !la(e) || Ee(e) ? [] : Qt(e, (n) => Ee(n.SubPlatformEnum) ? n : n.SubPlatformEnum.map((t) => ({
|
|
9858
9860
|
...n,
|
|
9859
9861
|
...t,
|
|
9860
9862
|
platform: t.SubPlatformEnum,
|
|
9861
9863
|
platformEnum: t.SubPlatformEnum
|
|
9862
|
-
}))),
|
|
9864
|
+
}))), em = {
|
|
9863
9865
|
platform: { all: [], origin: [], originPlatform: [], byGameType: {} },
|
|
9864
9866
|
type: { main: [], sub: [], originMain: [], originSub: [] },
|
|
9865
9867
|
gameList: {
|
|
@@ -9879,7 +9881,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9879
9881
|
byGameType: {}
|
|
9880
9882
|
},
|
|
9881
9883
|
user: { favorite: [] }
|
|
9882
|
-
},
|
|
9884
|
+
}, am = ({ enabled: e = !0 } = {}) => {
|
|
9883
9885
|
const { getToken: n } = se(), { userFavoriteGameApi: t, userGameListApi: l } = oe(), { data: p, isLoading: g, error: b, refetch: d } = j({
|
|
9884
9886
|
queryKey: ["gamesInfo"],
|
|
9885
9887
|
queryFn: async () => {
|
|
@@ -9889,7 +9891,7 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9889
9891
|
} catch (i) {
|
|
9890
9892
|
console.warn("Failed to fetch favorite games:", i);
|
|
9891
9893
|
}
|
|
9892
|
-
return
|
|
9894
|
+
return Xs({
|
|
9893
9895
|
allGameList: a.gameTypeGroup || window.gameTypeGroup || {},
|
|
9894
9896
|
allGamePlatform: a.platforms || window.platforms || [],
|
|
9895
9897
|
allGameType: a.gameType || window.gameType || [],
|
|
@@ -9912,12 +9914,12 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
9912
9914
|
refetchOnWindowFocus: !1
|
|
9913
9915
|
});
|
|
9914
9916
|
return {
|
|
9915
|
-
gamesInfo: p ||
|
|
9917
|
+
gamesInfo: p || em,
|
|
9916
9918
|
isLoading: g,
|
|
9917
9919
|
error: b,
|
|
9918
9920
|
refetch: d
|
|
9919
9921
|
};
|
|
9920
|
-
},
|
|
9922
|
+
}, tm = (e = !1) => {
|
|
9921
9923
|
if (!e && window.gameTypeGroup) {
|
|
9922
9924
|
console.log("window.gameTypeGroup 已存在,跳過初始化 mock 資料");
|
|
9923
9925
|
return;
|
|
@@ -36444,18 +36446,18 @@ const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
|
36444
36446
|
is_invalid_bet: 0
|
|
36445
36447
|
}
|
|
36446
36448
|
});
|
|
36447
|
-
},
|
|
36449
|
+
}, im = ({
|
|
36448
36450
|
children: e,
|
|
36449
36451
|
autoFetch: n = !1,
|
|
36450
36452
|
mockData: t = !1
|
|
36451
36453
|
}) => {
|
|
36452
36454
|
ge(() => {
|
|
36453
|
-
t &&
|
|
36455
|
+
t && tm(!0);
|
|
36454
36456
|
}, [t]);
|
|
36455
|
-
const l =
|
|
36457
|
+
const l = am({ enabled: n });
|
|
36456
36458
|
return /* @__PURE__ */ Fe.jsx($n.Provider, { value: l, children: e });
|
|
36457
36459
|
};
|
|
36458
|
-
function
|
|
36460
|
+
function Cu({
|
|
36459
36461
|
children: e,
|
|
36460
36462
|
autoFetchGamesInfo: n = !1,
|
|
36461
36463
|
useMockData: t = !1,
|
|
@@ -36476,8 +36478,8 @@ function vu({
|
|
|
36476
36478
|
}),
|
|
36477
36479
|
[]
|
|
36478
36480
|
), r = l || d;
|
|
36479
|
-
return /* @__PURE__ */ Fe.jsx(Bl, { client: r, children: /* @__PURE__ */ Fe.jsx(In.Provider, { value: { client: g, formDataClient: b, ...p }, children: /* @__PURE__ */ Fe.jsx(
|
|
36480
|
-
|
|
36481
|
+
return /* @__PURE__ */ Fe.jsx(Bl, { client: r, children: /* @__PURE__ */ Fe.jsx(In.Provider, { value: { client: g, formDataClient: b, ...p }, children: /* @__PURE__ */ Fe.jsx(Ql, { children: /* @__PURE__ */ Fe.jsx(
|
|
36482
|
+
im,
|
|
36481
36483
|
{
|
|
36482
36484
|
autoFetch: n,
|
|
36483
36485
|
mockData: t,
|
|
@@ -36485,9 +36487,9 @@ function vu({
|
|
|
36485
36487
|
}
|
|
36486
36488
|
) }) }) });
|
|
36487
36489
|
}
|
|
36488
|
-
const
|
|
36490
|
+
const vu = ({ onFunction: e = () => {
|
|
36489
36491
|
}, buttonProps: n = {} } = {}) => {
|
|
36490
|
-
const { lineConfig: t } = se(), l = ee(!1), p =
|
|
36492
|
+
const { lineConfig: t } = se(), l = ee(!1), p = re(t, "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"), i = g.get("invite_code"), { mutate: o, isPending: s } = il({
|
|
36491
36493
|
options: {
|
|
36492
36494
|
onSuccess: (m) => {
|
|
36493
36495
|
e(m);
|
|
@@ -36525,7 +36527,7 @@ const hu = ({ onFunction: e = () => {
|
|
|
36525
36527
|
}
|
|
36526
36528
|
) : null;
|
|
36527
36529
|
};
|
|
36528
|
-
var
|
|
36530
|
+
var nm = Object.defineProperty, Kt = Object.getOwnPropertySymbols, Tl = Object.prototype.hasOwnProperty, kl = Object.prototype.propertyIsEnumerable, Bn = (e, n, t) => n in e ? nm(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, gi = (e, n) => {
|
|
36529
36531
|
for (var t in n || (n = {}))
|
|
36530
36532
|
Tl.call(n, t) && Bn(e, t, n[t]);
|
|
36531
36533
|
if (Kt)
|
|
@@ -37077,12 +37079,12 @@ var ka;
|
|
|
37077
37079
|
})(e.QrSegment || (e.QrSegment = {}));
|
|
37078
37080
|
})(ka || (ka = {}));
|
|
37079
37081
|
var Aa = ka;
|
|
37080
|
-
var
|
|
37082
|
+
var lm = {
|
|
37081
37083
|
L: Aa.QrCode.Ecc.LOW,
|
|
37082
37084
|
M: Aa.QrCode.Ecc.MEDIUM,
|
|
37083
37085
|
Q: Aa.QrCode.Ecc.QUARTILE,
|
|
37084
37086
|
H: Aa.QrCode.Ecc.HIGH
|
|
37085
|
-
}, xl = 128, Sl = "L", Dl = "#FFFFFF", El = "#000000", Nl = !1, Ll = 1,
|
|
37087
|
+
}, xl = 128, Sl = "L", Dl = "#FFFFFF", El = "#000000", Nl = !1, Ll = 1, rm = 4, om = 0, sm = 0.1;
|
|
37086
37088
|
function Gl(e, n = 0) {
|
|
37087
37089
|
const t = [];
|
|
37088
37090
|
return e.forEach(function(l, p) {
|
|
@@ -37109,10 +37111,10 @@ function Gl(e, n = 0) {
|
|
|
37109
37111
|
function Ml(e, n) {
|
|
37110
37112
|
return e.slice().map((t, l) => l < n.y || l >= n.y + n.h ? t : t.map((p, g) => g < n.x || g >= n.x + n.w ? p : !1));
|
|
37111
37113
|
}
|
|
37112
|
-
function
|
|
37114
|
+
function mm(e, n, t, l) {
|
|
37113
37115
|
if (l == null)
|
|
37114
37116
|
return null;
|
|
37115
|
-
const p = e.length + t * 2, g = Math.floor(n *
|
|
37117
|
+
const p = e.length + t * 2, g = Math.floor(n * sm), b = p / n, d = (l.width || g) * b, r = (l.height || g) * b, a = l.x == null ? e.length / 2 - d / 2 : l.x * b, i = l.y == null ? e.length / 2 - r / 2 : l.y * b, o = l.opacity == null ? 1 : l.opacity;
|
|
37116
37118
|
let s = null;
|
|
37117
37119
|
if (l.excavate) {
|
|
37118
37120
|
let m = Math.floor(a), c = Math.floor(i), f = Math.ceil(d + a - m), y = Math.ceil(r + i - c);
|
|
@@ -37121,8 +37123,8 @@ function um(e, n, t, l) {
|
|
|
37121
37123
|
const u = l.crossOrigin;
|
|
37122
37124
|
return { x: a, y: i, h: r, w: d, excavation: s, opacity: o, crossOrigin: u };
|
|
37123
37125
|
}
|
|
37124
|
-
function
|
|
37125
|
-
return n != null ? Math.max(Math.floor(n), 0) : e ?
|
|
37126
|
+
function um(e, n) {
|
|
37127
|
+
return n != null ? Math.max(Math.floor(n), 0) : e ? rm : om;
|
|
37126
37128
|
}
|
|
37127
37129
|
function Rl({
|
|
37128
37130
|
value: e,
|
|
@@ -37138,7 +37140,7 @@ function Rl({
|
|
|
37138
37140
|
const m = (Array.isArray(e) ? e : [e]).reduce((c, f) => (c.push(...Aa.QrSegment.makeSegments(f)), c), []);
|
|
37139
37141
|
return Aa.QrCode.encodeSegments(
|
|
37140
37142
|
m,
|
|
37141
|
-
|
|
37143
|
+
lm[n],
|
|
37142
37144
|
t,
|
|
37143
37145
|
void 0,
|
|
37144
37146
|
void 0,
|
|
@@ -37147,7 +37149,7 @@ function Rl({
|
|
|
37147
37149
|
}, [e, n, t, d]);
|
|
37148
37150
|
const { cells: a, margin: i, numCells: o, calculatedImageSettings: s } = de.useMemo(() => {
|
|
37149
37151
|
let u = r.getModules();
|
|
37150
|
-
const m =
|
|
37152
|
+
const m = um(l, p), c = u.length + m * 2, f = mm(
|
|
37151
37153
|
u,
|
|
37152
37154
|
b,
|
|
37153
37155
|
m,
|
|
@@ -37168,14 +37170,14 @@ function Rl({
|
|
|
37168
37170
|
calculatedImageSettings: s
|
|
37169
37171
|
};
|
|
37170
37172
|
}
|
|
37171
|
-
var
|
|
37173
|
+
var pm = (function() {
|
|
37172
37174
|
try {
|
|
37173
37175
|
new Path2D().addPath(new Path2D());
|
|
37174
37176
|
} catch {
|
|
37175
37177
|
return !1;
|
|
37176
37178
|
}
|
|
37177
37179
|
return !0;
|
|
37178
|
-
})(),
|
|
37180
|
+
})(), gm = de.forwardRef(
|
|
37179
37181
|
function(n, t) {
|
|
37180
37182
|
const l = n, {
|
|
37181
37183
|
value: p,
|
|
@@ -37228,7 +37230,7 @@ var gm = (function() {
|
|
|
37228
37230
|
const W = window.devicePixelRatio || 1;
|
|
37229
37231
|
w.height = w.width = g * W;
|
|
37230
37232
|
const M = g / k * W;
|
|
37231
|
-
R.scale(M, M), R.fillStyle = d, R.fillRect(0, 0, k, k), R.fillStyle = r,
|
|
37233
|
+
R.scale(M, M), R.fillStyle = d, R.fillRect(0, 0, k, k), R.fillStyle = r, pm ? R.fill(new Path2D(Gl(P, G))) : O.forEach(function(S, x) {
|
|
37232
37234
|
S.forEach(function(L, N) {
|
|
37233
37235
|
L && R.fillRect(N + G, x + G, 1, 1);
|
|
37234
37236
|
});
|
|
@@ -37269,7 +37271,7 @@ var gm = (function() {
|
|
|
37269
37271
|
), A);
|
|
37270
37272
|
}
|
|
37271
37273
|
);
|
|
37272
|
-
|
|
37274
|
+
gm.displayName = "QRCodeCanvas";
|
|
37273
37275
|
var Pl = de.forwardRef(
|
|
37274
37276
|
function(n, t) {
|
|
37275
37277
|
const l = n, {
|
|
@@ -37348,7 +37350,7 @@ var Pl = de.forwardRef(
|
|
|
37348
37350
|
}
|
|
37349
37351
|
);
|
|
37350
37352
|
Pl.displayName = "QRCodeSVG";
|
|
37351
|
-
const
|
|
37353
|
+
const dm = {
|
|
37352
37354
|
position: "fixed",
|
|
37353
37355
|
top: 0,
|
|
37354
37356
|
left: 0,
|
|
@@ -37361,7 +37363,7 @@ const cm = {
|
|
|
37361
37363
|
justifyContent: "center",
|
|
37362
37364
|
zIndex: 1e4,
|
|
37363
37365
|
gap: "2em"
|
|
37364
|
-
},
|
|
37366
|
+
}, cm = {
|
|
37365
37367
|
position: "absolute",
|
|
37366
37368
|
top: "20px",
|
|
37367
37369
|
right: "20px",
|
|
@@ -37392,15 +37394,15 @@ const cm = {
|
|
|
37392
37394
|
title: "Silakan gunakan LINE untuk memindai Kode QR untuk masuk",
|
|
37393
37395
|
expired: "Kode QR telah kedaluwarsa"
|
|
37394
37396
|
}
|
|
37395
|
-
},
|
|
37396
|
-
const { lng: l, getToken: p, lineConfig: g } = se(), [b, d] = oi(300), [r, a] = oi(!1), i = ee(null), o =
|
|
37397
|
+
}, ku = ({ forcedShow: e = !1, isVisible: n, setIsVisible: t } = {}) => {
|
|
37398
|
+
const { lng: l, getToken: p, lineConfig: g } = se(), [b, d] = oi(300), [r, a] = oi(!1), i = ee(null), o = re(g, "liffId", ""), s = Qe(l), u = p?.(), c = new URLSearchParams(window.location.search).get("mac") || mi.get("machine_mac_address") || "", { data: f, isFetching: y } = zo({
|
|
37397
37399
|
formData: {
|
|
37398
37400
|
mac_address: c
|
|
37399
37401
|
},
|
|
37400
37402
|
options: {
|
|
37401
37403
|
enabled: e ? !0 : !!c && !u
|
|
37402
37404
|
}
|
|
37403
|
-
}), _ =
|
|
37405
|
+
}), _ = re(f, "liff_url", "") || `https://liff.line.me/${o}`;
|
|
37404
37406
|
ge(() => {
|
|
37405
37407
|
c && mi.set("machine_mac_address", c, { expires: 365 });
|
|
37406
37408
|
}, [c]), ge(() => (_ && (d(300), a(!1), i.current && clearInterval(i.current), i.current = setInterval(() => {
|
|
@@ -37414,11 +37416,11 @@ const cm = {
|
|
|
37414
37416
|
};
|
|
37415
37417
|
if (!e && (!c || u)) return null;
|
|
37416
37418
|
const C = Hn[s] || Hn.en_US;
|
|
37417
|
-
return n && /* @__PURE__ */ Fe.jsxs("div", { style:
|
|
37419
|
+
return n && /* @__PURE__ */ Fe.jsxs("div", { style: dm, children: [
|
|
37418
37420
|
/* @__PURE__ */ Fe.jsx(
|
|
37419
37421
|
"div",
|
|
37420
37422
|
{
|
|
37421
|
-
style:
|
|
37423
|
+
style: cm,
|
|
37422
37424
|
onClick: () => t(!1),
|
|
37423
37425
|
role: "button",
|
|
37424
37426
|
"aria-label": "Close",
|
|
@@ -37457,14 +37459,14 @@ const cm = {
|
|
|
37457
37459
|
)
|
|
37458
37460
|
] })
|
|
37459
37461
|
] });
|
|
37460
|
-
},
|
|
37462
|
+
}, xu = () => {
|
|
37461
37463
|
const e = fi(), {
|
|
37462
37464
|
mutate: n,
|
|
37463
37465
|
isPending: t,
|
|
37464
37466
|
isSuccess: l,
|
|
37465
37467
|
isError: p,
|
|
37466
37468
|
error: g
|
|
37467
|
-
} =
|
|
37469
|
+
} = Io({
|
|
37468
37470
|
options: {
|
|
37469
37471
|
onSuccess: () => {
|
|
37470
37472
|
e.invalidateQueries({
|
|
@@ -37489,126 +37491,126 @@ const cm = {
|
|
|
37489
37491
|
};
|
|
37490
37492
|
export {
|
|
37491
37493
|
In as ApiCtx,
|
|
37492
|
-
|
|
37493
|
-
|
|
37494
|
+
Cu as ApiProvider,
|
|
37495
|
+
xu as Bind,
|
|
37494
37496
|
$n as GamesInfoCtx,
|
|
37495
|
-
|
|
37496
|
-
|
|
37497
|
+
vu as LineLogin,
|
|
37498
|
+
ku as LineQrCode,
|
|
37497
37499
|
Ka as STATUS_TYPES,
|
|
37498
37500
|
Vn as StatusContext,
|
|
37499
|
-
|
|
37500
|
-
|
|
37501
|
-
|
|
37502
|
-
|
|
37503
|
-
|
|
37504
|
-
|
|
37501
|
+
Ql as StatusProvider,
|
|
37502
|
+
Qs as buildMultiTypes,
|
|
37503
|
+
Uu as buildMultiTypesWithSubTypes,
|
|
37504
|
+
Xl as buildSinglePlatformWithSubTypes,
|
|
37505
|
+
Yl as buildSingleType,
|
|
37506
|
+
$s as categorizeGames,
|
|
37505
37507
|
Qe as convertLanguageCode,
|
|
37506
|
-
|
|
37507
|
-
|
|
37508
|
-
|
|
37508
|
+
vm as createLogoutHandler,
|
|
37509
|
+
Ks as extractGameSubTypeNames,
|
|
37510
|
+
Zs as extractGameTypeNames,
|
|
37509
37511
|
On as extractPlatformNames,
|
|
37510
37512
|
Xn as filterGamesByPlatform,
|
|
37511
37513
|
Qn as findGameTypeUid,
|
|
37512
37514
|
jn as findPlatformUid,
|
|
37513
37515
|
Yn as findSubPlatform,
|
|
37514
|
-
|
|
37515
|
-
|
|
37516
|
-
|
|
37517
|
-
|
|
37518
|
-
|
|
37519
|
-
|
|
37520
|
-
|
|
37521
|
-
|
|
37522
|
-
|
|
37523
|
-
|
|
37524
|
-
|
|
37516
|
+
Js as flattenAllGames,
|
|
37517
|
+
qs as flattenFavoriteGames,
|
|
37518
|
+
hm as formatNumber,
|
|
37519
|
+
js as groupGamesByPlatform,
|
|
37520
|
+
Ys as groupGamesByPlatformAndSubType,
|
|
37521
|
+
jl as groupGamesBySubType,
|
|
37522
|
+
Vs as handleDarkImage,
|
|
37523
|
+
tm as initMockWindowData,
|
|
37524
|
+
Xs as processGameInfo,
|
|
37525
|
+
bu as processPlatformData,
|
|
37526
|
+
Nm as useAbandonPoint,
|
|
37525
37527
|
se as useApiContext,
|
|
37526
|
-
|
|
37527
|
-
|
|
37528
|
-
|
|
37529
|
-
|
|
37530
|
-
|
|
37531
|
-
|
|
37532
|
-
|
|
37533
|
-
|
|
37534
|
-
|
|
37535
|
-
|
|
37536
|
-
|
|
37537
|
-
|
|
37538
|
-
|
|
37539
|
-
|
|
37540
|
-
|
|
37541
|
-
|
|
37542
|
-
|
|
37543
|
-
|
|
37544
|
-
|
|
37545
|
-
|
|
37546
|
-
|
|
37547
|
-
|
|
37548
|
-
|
|
37549
|
-
|
|
37550
|
-
|
|
37551
|
-
|
|
37552
|
-
|
|
37553
|
-
|
|
37554
|
-
|
|
37555
|
-
|
|
37556
|
-
|
|
37557
|
-
|
|
37558
|
-
|
|
37559
|
-
|
|
37560
|
-
|
|
37561
|
-
|
|
37562
|
-
|
|
37528
|
+
Hm as useAvatarList,
|
|
37529
|
+
Tm as useBalanceGetter,
|
|
37530
|
+
Sm as useBet,
|
|
37531
|
+
Bm as useBetRankingData,
|
|
37532
|
+
_o as useBetRecord,
|
|
37533
|
+
yo as useBetRecordDetail,
|
|
37534
|
+
Io as useBindAccount,
|
|
37535
|
+
Zo as useCheckCurrentEventProgress,
|
|
37536
|
+
Ko as useCheckEventStatus,
|
|
37537
|
+
Em as useCheckPlayerWager,
|
|
37538
|
+
Im as useClientWebSocket,
|
|
37539
|
+
Fs as useCurrentRebate,
|
|
37540
|
+
bs as useDepositAction,
|
|
37541
|
+
vs as useDepositTransaction,
|
|
37542
|
+
ys as useDepositV1,
|
|
37543
|
+
Us as useDepositV2,
|
|
37544
|
+
iu as useDepositWalletLog,
|
|
37545
|
+
Zm as useEvent,
|
|
37546
|
+
Jo as useEventList,
|
|
37547
|
+
hs as useEventTransaction,
|
|
37548
|
+
lu as useEventWalletLog,
|
|
37549
|
+
Ws as useExpiredRewardsList,
|
|
37550
|
+
_u as useGameConfig,
|
|
37551
|
+
Cm as useGameInfoContext,
|
|
37552
|
+
am as useGamesInfo,
|
|
37553
|
+
Km as useGetCarouseList,
|
|
37554
|
+
zo as useGetMachineLoginCode,
|
|
37555
|
+
qm as useGetMarquee,
|
|
37556
|
+
km as useGetMemberInfo,
|
|
37557
|
+
$m as useGetRankingGame,
|
|
37558
|
+
zs as useHistoryRewardsList,
|
|
37559
|
+
Qm as useIdleTimeout,
|
|
37560
|
+
jm as useInbox,
|
|
37561
|
+
cs as useInboxList,
|
|
37562
|
+
xm as useInitializeWithToken,
|
|
37563
|
+
au as useInvoiceAction,
|
|
37564
|
+
Om as useJackpotData,
|
|
37563
37565
|
il as useLineLogin,
|
|
37564
|
-
|
|
37565
|
-
|
|
37566
|
-
|
|
37567
|
-
|
|
37568
|
-
|
|
37569
|
-
|
|
37570
|
-
|
|
37571
|
-
|
|
37572
|
-
|
|
37573
|
-
|
|
37574
|
-
|
|
37575
|
-
|
|
37576
|
-
|
|
37577
|
-
|
|
37578
|
-
|
|
37579
|
-
|
|
37580
|
-
|
|
37581
|
-
|
|
37582
|
-
|
|
37583
|
-
|
|
37584
|
-
|
|
37585
|
-
|
|
37586
|
-
|
|
37587
|
-
|
|
37588
|
-
|
|
37589
|
-
|
|
37590
|
-
|
|
37591
|
-
|
|
37592
|
-
|
|
37566
|
+
Wo as useLineLogin2,
|
|
37567
|
+
Lo as useLogin,
|
|
37568
|
+
Go as useLogout,
|
|
37569
|
+
Lm as useMemberTransfer,
|
|
37570
|
+
Gm as useMobileLogin,
|
|
37571
|
+
Mm as useMobileLoginV2,
|
|
37572
|
+
Rm as useMobileRegister,
|
|
37573
|
+
Xm as useNewsDetail,
|
|
37574
|
+
Ym as useNewsList,
|
|
37575
|
+
su as usePayment,
|
|
37576
|
+
yu as usePlatformConfig,
|
|
37577
|
+
mu as usePlayGame,
|
|
37578
|
+
Dm as usePointTransfer,
|
|
37579
|
+
fs as useReadInbox,
|
|
37580
|
+
uu as useRebate,
|
|
37581
|
+
ru as useRebateWalletLog,
|
|
37582
|
+
As as useReceiveRebate,
|
|
37583
|
+
eu as useRedeemCodeDeposit,
|
|
37584
|
+
Vm as useRedeemEventReward,
|
|
37585
|
+
Bs as useRedeemReward,
|
|
37586
|
+
du as useRedeemTreasure,
|
|
37587
|
+
wo as useResetUserPassword,
|
|
37588
|
+
Ao as useResetUserTransactionPassword,
|
|
37589
|
+
pu as useRewards,
|
|
37590
|
+
Os as useRewardsList,
|
|
37591
|
+
Pm as useSendMobileVerifyCode,
|
|
37592
|
+
Fo as useSetUserTransactionPassword,
|
|
37593
|
+
Jm as useSettleEvent,
|
|
37594
|
+
Mo as useSignUp,
|
|
37593
37595
|
Jn as useStatus,
|
|
37594
|
-
|
|
37595
|
-
|
|
37596
|
-
|
|
37597
|
-
|
|
37598
|
-
|
|
37599
|
-
|
|
37600
|
-
|
|
37601
|
-
|
|
37602
|
-
|
|
37603
|
-
|
|
37604
|
-
|
|
37605
|
-
|
|
37606
|
-
|
|
37607
|
-
|
|
37608
|
-
|
|
37609
|
-
|
|
37610
|
-
|
|
37611
|
-
|
|
37612
|
-
|
|
37613
|
-
|
|
37596
|
+
Ro as useToggleFavoriteGame,
|
|
37597
|
+
Ho as useTransferInGame,
|
|
37598
|
+
gu as useTreasureList,
|
|
37599
|
+
ou as useTreasureWalletLog,
|
|
37600
|
+
Hs as useUnUsedRewardsList,
|
|
37601
|
+
Wm as useUpdateAvatar,
|
|
37602
|
+
tu as useUpdateInvoiceAction,
|
|
37603
|
+
Po as useUpdateUserInfo,
|
|
37604
|
+
zm as useUser,
|
|
37605
|
+
Bo as useUserBindCard,
|
|
37606
|
+
Oo as useUserRebate,
|
|
37607
|
+
Fm as useVerifyDonationCode,
|
|
37608
|
+
wm as useVerifyPhoneBar,
|
|
37609
|
+
Am as useVerifyResetAction,
|
|
37610
|
+
fu as useVip,
|
|
37611
|
+
cu as useVipInfo,
|
|
37612
|
+
Is as useVipList,
|
|
37613
|
+
Cs as useWithdrawAction,
|
|
37614
|
+
ks as useWithdrawTransaction,
|
|
37615
|
+
nu as useWithdrawWalletLog
|
|
37614
37616
|
};
|