@obb871001/api-integration-sdk 1.0.323 → 1.0.325
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 +510 -509
- 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 re, 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 le, find as $e, isEmpty as Ee, entries as zn, filter as Wl, forEach as zl, map as Be, isArray as la, toLower as Di, omit as Il, replace as at, includes as Vl, isObject as $t, flatMap as Qt, values as Jl, keys as Ei } from "lodash";
|
|
5
|
+
import Zl 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 Kl(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 Zl(e) {
|
|
|
33
33
|
}
|
|
34
34
|
var tt = { exports: {} }, Ja = {};
|
|
35
35
|
var Ni;
|
|
36
|
-
function
|
|
36
|
+
function ql() {
|
|
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 Kl() {
|
|
|
48
48
|
}
|
|
49
49
|
var Za = {};
|
|
50
50
|
var Li;
|
|
51
|
-
function
|
|
51
|
+
function $l() {
|
|
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 Ql() {
|
|
642
|
+
return Gi || (Gi = 1, process.env.NODE_ENV === "production" ? tt.exports = ql() : tt.exports = $l()), tt.exports;
|
|
643
643
|
}
|
|
644
|
-
var Fe =
|
|
644
|
+
var Fe = Ql();
|
|
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), jl = ({ 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 = le(
|
|
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), vm = () => {
|
|
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
|
+
}, hm = () => {
|
|
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), Cm = () => {
|
|
|
771
771
|
shouldShowErrorNotice: e,
|
|
772
772
|
isMachineDomain: n
|
|
773
773
|
};
|
|
774
|
-
},
|
|
774
|
+
}, Tm = (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)), Yl = (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
|
+
}, {}), Xl = ({
|
|
785
785
|
gameTypeName: e,
|
|
786
786
|
platforms: n,
|
|
787
787
|
gameList: t,
|
|
@@ -797,7 +797,7 @@ const $n = qt(null), Cm = () => {
|
|
|
797
797
|
);
|
|
798
798
|
return Ee(o) || (b[d] = o), b;
|
|
799
799
|
}, {}) : {};
|
|
800
|
-
},
|
|
800
|
+
}, er = ({
|
|
801
801
|
platformName: e,
|
|
802
802
|
gamesOfType: n = [],
|
|
803
803
|
allPlatforms: t = []
|
|
@@ -807,14 +807,14 @@ const $n = qt(null), Cm = () => {
|
|
|
807
807
|
l,
|
|
808
808
|
p
|
|
809
809
|
);
|
|
810
|
-
return
|
|
810
|
+
return Yl(g);
|
|
811
811
|
};
|
|
812
|
-
var st = { exports: {} },
|
|
813
|
-
function
|
|
812
|
+
var st = { exports: {} }, ar = st.exports, Ri;
|
|
813
|
+
function tr() {
|
|
814
814
|
return Ri || (Ri = 1, (function(e, n) {
|
|
815
815
|
(function(t, l) {
|
|
816
816
|
e.exports = l();
|
|
817
|
-
})(
|
|
817
|
+
})(ar, (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 ar() {
|
|
|
1087
1087
|
}));
|
|
1088
1088
|
})(st)), st.exports;
|
|
1089
1089
|
}
|
|
1090
|
-
var
|
|
1091
|
-
const we = /* @__PURE__ */ _i(
|
|
1090
|
+
var ir = tr();
|
|
1091
|
+
const we = /* @__PURE__ */ _i(ir);
|
|
1092
1092
|
var mt = { exports: {} };
|
|
1093
|
-
function
|
|
1093
|
+
function nr(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 lr = {}, rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1098
1098
|
__proto__: null,
|
|
1099
|
-
default:
|
|
1100
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1101
|
-
var
|
|
1099
|
+
default: lr
|
|
1100
|
+
}, Symbol.toStringTag, { value: "Module" })), or = /* @__PURE__ */ Kl(rr);
|
|
1101
|
+
var sr = 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
|
+
})(sr, 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 nr == "function")
|
|
1110
1110
|
try {
|
|
1111
|
-
g =
|
|
1111
|
+
g = or;
|
|
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: {} }, mr = 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
|
+
})(mr, 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: {} }, ur = gt.exports, Fi;
|
|
1833
|
+
function pr() {
|
|
1834
1834
|
return Fi || (Fi = 1, (function(e, n) {
|
|
1835
1835
|
(function(t, l) {
|
|
1836
1836
|
e.exports = l(te());
|
|
1837
|
-
})(
|
|
1837
|
+
})(ur, 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 ur() {
|
|
|
1851
1851
|
});
|
|
1852
1852
|
})(gt)), gt.exports;
|
|
1853
1853
|
}
|
|
1854
|
-
var dt = { exports: {} },
|
|
1855
|
-
function
|
|
1854
|
+
var dt = { exports: {} }, gr = dt.exports, Ai;
|
|
1855
|
+
function dr() {
|
|
1856
1856
|
return Ai || (Ai = 1, (function(e, n) {
|
|
1857
1857
|
(function(t, l) {
|
|
1858
1858
|
e.exports = l(te());
|
|
1859
|
-
})(
|
|
1859
|
+
})(gr, 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 gr() {
|
|
|
1945
1945
|
});
|
|
1946
1946
|
})(dt)), dt.exports;
|
|
1947
1947
|
}
|
|
1948
|
-
var ct = { exports: {} },
|
|
1948
|
+
var ct = { exports: {} }, cr = 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
|
+
})(cr, 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: {} }, fr = ft.exports, Bi;
|
|
2024
|
+
function _r() {
|
|
2025
2025
|
return Bi || (Bi = 1, (function(e, n) {
|
|
2026
2026
|
(function(t, l) {
|
|
2027
2027
|
e.exports = l(te());
|
|
2028
|
-
})(
|
|
2028
|
+
})(fr, 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 fr() {
|
|
|
2102
2102
|
});
|
|
2103
2103
|
})(ft)), ft.exports;
|
|
2104
2104
|
}
|
|
2105
|
-
var _t = { exports: {} },
|
|
2105
|
+
var _t = { exports: {} }, yr = _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
|
+
})(yr, 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: {} }, Ur = 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
|
+
})(Ur, 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: {} }, br = 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
|
+
})(br, 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: {} }, Cr = bt.exports, Ii;
|
|
2268
|
+
function vr() {
|
|
2269
2269
|
return Ii || (Ii = 1, (function(e, n) {
|
|
2270
2270
|
(function(t, l, p) {
|
|
2271
2271
|
e.exports = l(te(), yi());
|
|
2272
|
-
})(
|
|
2272
|
+
})(Cr, 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 Cr() {
|
|
|
2294
2294
|
});
|
|
2295
2295
|
})(bt)), bt.exports;
|
|
2296
2296
|
}
|
|
2297
|
-
var Ct = { exports: {} },
|
|
2297
|
+
var Ct = { exports: {} }, hr = 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
|
+
})(hr, 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: {} }, Tr = vt.exports, Ji;
|
|
2439
|
+
function kr() {
|
|
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
|
+
})(Tr, 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 Tr() {
|
|
|
2465
2465
|
});
|
|
2466
2466
|
})(vt)), vt.exports;
|
|
2467
2467
|
}
|
|
2468
|
-
var ht = { exports: {} },
|
|
2469
|
-
function
|
|
2468
|
+
var ht = { exports: {} }, xr = ht.exports, Zi;
|
|
2469
|
+
function Sr() {
|
|
2470
2470
|
return Zi || (Zi = 1, (function(e, n) {
|
|
2471
2471
|
(function(t, l, p) {
|
|
2472
2472
|
e.exports = l(te(), jt());
|
|
2473
|
-
})(
|
|
2473
|
+
})(xr, 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 xr() {
|
|
|
2575
2575
|
});
|
|
2576
2576
|
})(ht)), ht.exports;
|
|
2577
2577
|
}
|
|
2578
|
-
var Tt = { exports: {} },
|
|
2579
|
-
function
|
|
2578
|
+
var Tt = { exports: {} }, Dr = Tt.exports, Ki;
|
|
2579
|
+
function Er() {
|
|
2580
2580
|
return Ki || (Ki = 1, (function(e, n) {
|
|
2581
2581
|
(function(t, l) {
|
|
2582
2582
|
e.exports = l(te());
|
|
2583
|
-
})(
|
|
2583
|
+
})(Dr, 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 Dr() {
|
|
|
2958
2958
|
});
|
|
2959
2959
|
})(Tt)), Tt.exports;
|
|
2960
2960
|
}
|
|
2961
|
-
var kt = { exports: {} },
|
|
2961
|
+
var kt = { exports: {} }, Nr = 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
|
+
})(Nr, 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: {} }, Lr = xt.exports, $i;
|
|
3040
|
+
function Gr() {
|
|
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
|
+
})(Lr, 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 Lr() {
|
|
|
3103
3103
|
});
|
|
3104
3104
|
})(xt)), xt.exports;
|
|
3105
3105
|
}
|
|
3106
|
-
var St = { exports: {} },
|
|
3106
|
+
var St = { exports: {} }, Mr = 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
|
+
})(Mr, 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: {} }, Rr = 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
|
+
})(Rr, 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: {} }, Pr = Et.exports, Yi;
|
|
3708
|
+
function wr() {
|
|
3709
3709
|
return Yi || (Yi = 1, (function(e, n) {
|
|
3710
3710
|
(function(t, l, p) {
|
|
3711
3711
|
e.exports = l(te(), Ne());
|
|
3712
|
-
})(
|
|
3712
|
+
})(Pr, 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 Pr() {
|
|
|
3734
3734
|
});
|
|
3735
3735
|
})(Et)), Et.exports;
|
|
3736
3736
|
}
|
|
3737
|
-
var Nt = { exports: {} },
|
|
3738
|
-
function
|
|
3737
|
+
var Nt = { exports: {} }, Fr = Nt.exports, Xi;
|
|
3738
|
+
function Ar() {
|
|
3739
3739
|
return Xi || (Xi = 1, (function(e, n) {
|
|
3740
3740
|
(function(t, l, p) {
|
|
3741
3741
|
e.exports = l(te(), Ne());
|
|
3742
|
-
})(
|
|
3742
|
+
})(Fr, 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 Fr() {
|
|
|
3756
3756
|
});
|
|
3757
3757
|
})(Nt)), Nt.exports;
|
|
3758
3758
|
}
|
|
3759
|
-
var Lt = { exports: {} },
|
|
3760
|
-
function
|
|
3759
|
+
var Lt = { exports: {} }, Or = Lt.exports, en;
|
|
3760
|
+
function Br() {
|
|
3761
3761
|
return en || (en = 1, (function(e, n) {
|
|
3762
3762
|
(function(t, l, p) {
|
|
3763
3763
|
e.exports = l(te(), Ne());
|
|
3764
|
-
})(
|
|
3764
|
+
})(Or, 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 Or() {
|
|
|
3790
3790
|
});
|
|
3791
3791
|
})(Lt)), Lt.exports;
|
|
3792
3792
|
}
|
|
3793
|
-
var Gt = { exports: {} },
|
|
3794
|
-
function
|
|
3793
|
+
var Gt = { exports: {} }, Hr = Gt.exports, an;
|
|
3794
|
+
function Wr() {
|
|
3795
3795
|
return an || (an = 1, (function(e, n) {
|
|
3796
3796
|
(function(t, l, p) {
|
|
3797
3797
|
e.exports = l(te(), Ne());
|
|
3798
|
-
})(
|
|
3798
|
+
})(Hr, 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 Hr() {
|
|
|
3810
3810
|
});
|
|
3811
3811
|
})(Gt)), Gt.exports;
|
|
3812
3812
|
}
|
|
3813
|
-
var Mt = { exports: {} },
|
|
3814
|
-
function
|
|
3813
|
+
var Mt = { exports: {} }, zr = Mt.exports, tn;
|
|
3814
|
+
function Ir() {
|
|
3815
3815
|
return tn || (tn = 1, (function(e, n) {
|
|
3816
3816
|
(function(t, l, p) {
|
|
3817
3817
|
e.exports = l(te(), Ne());
|
|
3818
|
-
})(
|
|
3818
|
+
})(zr, 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 zr() {
|
|
|
3831
3831
|
});
|
|
3832
3832
|
})(Mt)), Mt.exports;
|
|
3833
3833
|
}
|
|
3834
|
-
var Rt = { exports: {} },
|
|
3835
|
-
function
|
|
3834
|
+
var Rt = { exports: {} }, Vr = Rt.exports, nn;
|
|
3835
|
+
function Jr() {
|
|
3836
3836
|
return nn || (nn = 1, (function(e, n) {
|
|
3837
3837
|
(function(t, l, p) {
|
|
3838
3838
|
e.exports = l(te(), Ne());
|
|
3839
|
-
})(
|
|
3839
|
+
})(Vr, 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 Vr() {
|
|
|
3850
3850
|
});
|
|
3851
3851
|
})(Rt)), Rt.exports;
|
|
3852
3852
|
}
|
|
3853
|
-
var Pt = { exports: {} },
|
|
3854
|
-
function
|
|
3853
|
+
var Pt = { exports: {} }, Zr = Pt.exports, ln;
|
|
3854
|
+
function Kr() {
|
|
3855
3855
|
return ln || (ln = 1, (function(e, n) {
|
|
3856
3856
|
(function(t, l, p) {
|
|
3857
3857
|
e.exports = l(te(), Ne());
|
|
3858
|
-
})(
|
|
3858
|
+
})(Zr, 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 Zr() {
|
|
|
3869
3869
|
});
|
|
3870
3870
|
})(Pt)), Pt.exports;
|
|
3871
3871
|
}
|
|
3872
|
-
var wt = { exports: {} },
|
|
3873
|
-
function
|
|
3872
|
+
var wt = { exports: {} }, qr = wt.exports, rn;
|
|
3873
|
+
function $r() {
|
|
3874
3874
|
return rn || (rn = 1, (function(e, n) {
|
|
3875
3875
|
(function(t, l, p) {
|
|
3876
3876
|
e.exports = l(te(), Ne());
|
|
3877
|
-
})(
|
|
3877
|
+
})(qr, 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 qr() {
|
|
|
3886
3886
|
});
|
|
3887
3887
|
})(wt)), wt.exports;
|
|
3888
3888
|
}
|
|
3889
|
-
var Ft = { exports: {} },
|
|
3890
|
-
function
|
|
3889
|
+
var Ft = { exports: {} }, Qr = Ft.exports, on;
|
|
3890
|
+
function jr() {
|
|
3891
3891
|
return on || (on = 1, (function(e, n) {
|
|
3892
3892
|
(function(t, l, p) {
|
|
3893
3893
|
e.exports = l(te(), Ne());
|
|
3894
|
-
})(
|
|
3894
|
+
})(Qr, 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 Qr() {
|
|
|
3908
3908
|
});
|
|
3909
3909
|
})(Ft)), Ft.exports;
|
|
3910
3910
|
}
|
|
3911
|
-
var At = { exports: {} },
|
|
3912
|
-
function
|
|
3911
|
+
var At = { exports: {} }, Yr = At.exports, sn;
|
|
3912
|
+
function Xr() {
|
|
3913
3913
|
return sn || (sn = 1, (function(e, n) {
|
|
3914
3914
|
(function(t, l, p) {
|
|
3915
3915
|
e.exports = l(te(), Ne());
|
|
3916
|
-
})(
|
|
3916
|
+
})(Yr, function(t) {
|
|
3917
3917
|
return t.pad.NoPadding = {
|
|
3918
3918
|
pad: function() {
|
|
3919
3919
|
},
|
|
@@ -3923,12 +3923,12 @@ function Yr() {
|
|
|
3923
3923
|
});
|
|
3924
3924
|
})(At)), At.exports;
|
|
3925
3925
|
}
|
|
3926
|
-
var Ot = { exports: {} },
|
|
3927
|
-
function
|
|
3926
|
+
var Ot = { exports: {} }, eo = Ot.exports, mn;
|
|
3927
|
+
function ao() {
|
|
3928
3928
|
return mn || (mn = 1, (function(e, n) {
|
|
3929
3929
|
(function(t, l, p) {
|
|
3930
3930
|
e.exports = l(te(), Ne());
|
|
3931
|
-
})(
|
|
3931
|
+
})(eo, 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 eo() {
|
|
|
3970
3970
|
});
|
|
3971
3971
|
})(Ot)), Ot.exports;
|
|
3972
3972
|
}
|
|
3973
|
-
var Bt = { exports: {} },
|
|
3974
|
-
function
|
|
3973
|
+
var Bt = { exports: {} }, to = Bt.exports, un;
|
|
3974
|
+
function io() {
|
|
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
|
+
})(to, 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 to() {
|
|
|
4030
4030
|
});
|
|
4031
4031
|
})(Bt)), Bt.exports;
|
|
4032
4032
|
}
|
|
4033
|
-
var Ht = { exports: {} },
|
|
4034
|
-
function
|
|
4033
|
+
var Ht = { exports: {} }, no = Ht.exports, pn;
|
|
4034
|
+
function lo() {
|
|
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
|
+
})(no, 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 no() {
|
|
|
4750
4750
|
});
|
|
4751
4751
|
})(Ht)), Ht.exports;
|
|
4752
4752
|
}
|
|
4753
|
-
var Wt = { exports: {} },
|
|
4754
|
-
function
|
|
4753
|
+
var Wt = { exports: {} }, ro = Wt.exports, gn;
|
|
4754
|
+
function oo() {
|
|
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
|
+
})(ro, 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 ro() {
|
|
|
4804
4804
|
});
|
|
4805
4805
|
})(Wt)), Wt.exports;
|
|
4806
4806
|
}
|
|
4807
|
-
var zt = { exports: {} },
|
|
4808
|
-
function
|
|
4807
|
+
var zt = { exports: {} }, so = zt.exports, dn;
|
|
4808
|
+
function mo() {
|
|
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
|
+
})(so, 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 so() {
|
|
|
4870
4870
|
});
|
|
4871
4871
|
})(zt)), zt.exports;
|
|
4872
4872
|
}
|
|
4873
|
-
var It = { exports: {} },
|
|
4874
|
-
function
|
|
4873
|
+
var It = { exports: {} }, uo = It.exports, cn;
|
|
4874
|
+
function po() {
|
|
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
|
+
})(uo, 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 uo() {
|
|
|
4934
4934
|
});
|
|
4935
4935
|
})(It)), It.exports;
|
|
4936
4936
|
}
|
|
4937
|
-
var Vt = { exports: {} },
|
|
4938
|
-
function
|
|
4937
|
+
var Vt = { exports: {} }, go = Vt.exports, fn;
|
|
4938
|
+
function co() {
|
|
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
|
+
})(go, 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 go() {
|
|
|
6056
6056
|
});
|
|
6057
6057
|
})(Vt)), Vt.exports;
|
|
6058
6058
|
}
|
|
6059
|
-
var
|
|
6060
|
-
function
|
|
6059
|
+
var fo = mt.exports, _n;
|
|
6060
|
+
function _o() {
|
|
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(), pr(), dr(), xa(), _r(), Sa(), el(), yi(), vr(), al(), kr(), Sr(), Er(), Ui(), Gr(), _a(), Ne(), wr(), Ar(), Br(), Wr(), Ir(), Jr(), Kr(), $r(), jr(), Xr(), ao(), io(), lo(), oo(), mo(), po(), co());
|
|
6064
|
+
})(fo, function(t) {
|
|
6065
6065
|
return t;
|
|
6066
6066
|
});
|
|
6067
6067
|
})(mt)), mt.exports;
|
|
6068
6068
|
}
|
|
6069
|
-
var Zt =
|
|
6069
|
+
var Zt = _o();
|
|
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
|
+
}, km = ({ 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
|
+
}, xm = ({
|
|
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
|
+
}, Sm = ({ 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
|
+
}, yo = ({ 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
|
+
}, Uo = ({ 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
|
+
}, Dm = ({
|
|
6510
6510
|
options: e = {
|
|
6511
6511
|
betRecord: {},
|
|
6512
6512
|
betRecordDetail: {}
|
|
6513
6513
|
}
|
|
6514
6514
|
}) => {
|
|
6515
|
-
const n =
|
|
6515
|
+
const n = yo({ options: e.betRecord }), t = Uo({
|
|
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 bo = {
|
|
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(bo, { 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 Co() {
|
|
6742
6742
|
if (Tn) return va;
|
|
6743
6743
|
Tn = 1;
|
|
6744
6744
|
var e = va && va.__assign || function() {
|
|
@@ -6808,7 +6808,7 @@ function bo() {
|
|
|
6808
6808
|
return va.attachListeners = a, va;
|
|
6809
6809
|
}
|
|
6810
6810
|
var ha = {}, kn;
|
|
6811
|
-
function
|
|
6811
|
+
function vo() {
|
|
6812
6812
|
if (kn) return ha;
|
|
6813
6813
|
kn = 1;
|
|
6814
6814
|
var e = ha && ha.__assign || function() {
|
|
@@ -6870,10 +6870,10 @@ function Co() {
|
|
|
6870
6870
|
return ha.attachSharedListeners = i, ha;
|
|
6871
6871
|
}
|
|
6872
6872
|
var xn;
|
|
6873
|
-
function
|
|
6873
|
+
function ho() {
|
|
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 = Co(), l = vo(), 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 vo() {
|
|
|
6913
6913
|
return qa.createOrJoinSocket = b, qa;
|
|
6914
6914
|
}
|
|
6915
6915
|
var ma = {}, Sn;
|
|
6916
|
-
function
|
|
6916
|
+
function To() {
|
|
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 ho() {
|
|
|
7050
7050
|
})(ma)), ma;
|
|
7051
7051
|
}
|
|
7052
7052
|
var li = {}, Dn;
|
|
7053
|
-
function
|
|
7053
|
+
function ko() {
|
|
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 = Zl, b = ra(), d = ho(), r = To(), a = l(ko()), 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 xo() {
|
|
7259
7259
|
if (Nn) return Ta;
|
|
7260
7260
|
Nn = 1;
|
|
7261
7261
|
var e = Ta && Ta.__assign || function() {
|
|
@@ -7301,7 +7301,7 @@ function ko() {
|
|
|
7301
7301
|
return Ta.useSocketIO = b, Ta;
|
|
7302
7302
|
}
|
|
7303
7303
|
var ua = {}, Ln;
|
|
7304
|
-
function
|
|
7304
|
+
function So() {
|
|
7305
7305
|
if (Ln) return ua;
|
|
7306
7306
|
Ln = 1;
|
|
7307
7307
|
var e = ua && ua.__assign || function() {
|
|
@@ -7344,14 +7344,14 @@ function xo() {
|
|
|
7344
7344
|
return ua.useEventSource = g, ua;
|
|
7345
7345
|
}
|
|
7346
7346
|
var Gn;
|
|
7347
|
-
function
|
|
7347
|
+
function Do() {
|
|
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 = xo();
|
|
7355
7355
|
Object.defineProperty(e, "useSocketIO", { enumerable: !0, get: function() {
|
|
7356
7356
|
return t.useSocketIO;
|
|
7357
7357
|
} });
|
|
@@ -7359,7 +7359,7 @@ function So() {
|
|
|
7359
7359
|
Object.defineProperty(e, "ReadyState", { enumerable: !0, get: function() {
|
|
7360
7360
|
return l.ReadyState;
|
|
7361
7361
|
} });
|
|
7362
|
-
var p =
|
|
7362
|
+
var p = So();
|
|
7363
7363
|
Object.defineProperty(e, "useEventSource", { enumerable: !0, get: function() {
|
|
7364
7364
|
return p.useEventSource;
|
|
7365
7365
|
} });
|
|
@@ -7369,15 +7369,15 @@ function So() {
|
|
|
7369
7369
|
} });
|
|
7370
7370
|
})(ai)), ai;
|
|
7371
7371
|
}
|
|
7372
|
-
var
|
|
7373
|
-
const
|
|
7372
|
+
var Eo = Do();
|
|
7373
|
+
const No = /* @__PURE__ */ _i(Eo), Lo = ({
|
|
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 } = Wo();
|
|
7381
7381
|
return !e || !n || !t ? { handleTransferInGame: () => {
|
|
7382
7382
|
} } : { handleTransferInGame: async () => {
|
|
7383
7383
|
console.log("執行遊戲內轉帳"), l && await s({
|
|
@@ -7452,63 +7452,63 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7452
7452
|
verifyPhoneBarApi: g,
|
|
7453
7453
|
verifyDonationCodeApi: b
|
|
7454
7454
|
};
|
|
7455
|
-
},
|
|
7455
|
+
}, Go = ({ options: e } = {}) => {
|
|
7456
7456
|
const { userLoginApi: n } = oe();
|
|
7457
|
-
return
|
|
7457
|
+
return re({
|
|
7458
7458
|
mutationKey: ["userLogin"],
|
|
7459
7459
|
mutationFn: async (t) => n(t),
|
|
7460
7460
|
...e
|
|
7461
7461
|
});
|
|
7462
|
-
},
|
|
7462
|
+
}, Mo = ({ options: e } = {}) => {
|
|
7463
7463
|
const { userLogoutApi: n } = oe();
|
|
7464
|
-
return
|
|
7464
|
+
return re({
|
|
7465
7465
|
mutationKey: ["userLogout"],
|
|
7466
7466
|
mutationFn: async () => n(),
|
|
7467
7467
|
...e
|
|
7468
7468
|
});
|
|
7469
|
-
},
|
|
7469
|
+
}, Ro = ({ options: e } = {}) => {
|
|
7470
7470
|
const { userSignUpApi: n } = oe();
|
|
7471
|
-
return
|
|
7471
|
+
return re({
|
|
7472
7472
|
mutationKey: ["userSignUp"],
|
|
7473
7473
|
mutationFn: async (t) => n(t),
|
|
7474
7474
|
...e
|
|
7475
7475
|
});
|
|
7476
|
-
},
|
|
7476
|
+
}, Po = ({ options: e } = {}) => {
|
|
7477
7477
|
const { addOrRemoveFavoriteGameApi: n } = oe();
|
|
7478
|
-
return
|
|
7478
|
+
return re({
|
|
7479
7479
|
mutationKey: ["toggleFavoriteGame"],
|
|
7480
7480
|
mutationFn: async (t) => n(t),
|
|
7481
7481
|
...e
|
|
7482
7482
|
});
|
|
7483
|
-
},
|
|
7483
|
+
}, wo = ({ options: e } = {}) => {
|
|
7484
7484
|
const { updateUserInfoApi: n } = oe();
|
|
7485
|
-
return
|
|
7485
|
+
return re({
|
|
7486
7486
|
mutationKey: ["updateUserInfo"],
|
|
7487
7487
|
mutationFn: async (t) => n(t),
|
|
7488
7488
|
...e
|
|
7489
7489
|
});
|
|
7490
|
-
},
|
|
7490
|
+
}, Fo = ({ options: e } = {}) => {
|
|
7491
7491
|
const { resetUserPasswordApi: n } = oe();
|
|
7492
|
-
return
|
|
7492
|
+
return re({
|
|
7493
7493
|
mutationKey: ["resetUserPassword"],
|
|
7494
7494
|
mutationFn: async (t) => n(t),
|
|
7495
7495
|
...e
|
|
7496
7496
|
});
|
|
7497
|
-
},
|
|
7497
|
+
}, Ao = ({ options: e } = {}) => {
|
|
7498
7498
|
const { setUserTransactionPasswordApi: n } = oe();
|
|
7499
|
-
return
|
|
7499
|
+
return re({
|
|
7500
7500
|
mutationKey: ["setUserTransactionPassword"],
|
|
7501
7501
|
mutationFn: async (t) => n(t),
|
|
7502
7502
|
...e
|
|
7503
7503
|
});
|
|
7504
|
-
},
|
|
7504
|
+
}, Oo = ({ options: e } = {}) => {
|
|
7505
7505
|
const { resetUserTransactionPasswordApi: n } = oe();
|
|
7506
|
-
return
|
|
7506
|
+
return re({
|
|
7507
7507
|
mutationKey: ["resetUserTransactionPassword"],
|
|
7508
7508
|
mutationFn: async (t) => n(t),
|
|
7509
7509
|
...e
|
|
7510
7510
|
});
|
|
7511
|
-
},
|
|
7511
|
+
}, Bo = ({ 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 Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7516
7516
|
enabled: !1,
|
|
7517
7517
|
...n
|
|
7518
7518
|
});
|
|
7519
|
-
},
|
|
7519
|
+
}, Ho = ({ options: e } = {}) => {
|
|
7520
7520
|
const { userBindBankApi: n } = oe();
|
|
7521
|
-
return
|
|
7521
|
+
return re({
|
|
7522
7522
|
mutationKey: ["userBindBank"],
|
|
7523
7523
|
mutationFn: async (t) => n({ formData: t }),
|
|
7524
7524
|
...e
|
|
7525
7525
|
});
|
|
7526
|
-
},
|
|
7526
|
+
}, Wo = ({ options: e } = {}) => {
|
|
7527
7527
|
const { transferInGameApi: n } = oe();
|
|
7528
|
-
return
|
|
7528
|
+
return re({
|
|
7529
7529
|
mutationKey: ["transferInGame"],
|
|
7530
7530
|
mutationFn: async (t) => n(t),
|
|
7531
7531
|
retry: !1,
|
|
7532
7532
|
...e
|
|
7533
7533
|
});
|
|
7534
|
-
},
|
|
7534
|
+
}, Em = ({ options: e } = {}) => {
|
|
7535
7535
|
const { currency: n } = se(), { pointTransferApi: t } = oe();
|
|
7536
|
-
return
|
|
7536
|
+
return re({
|
|
7537
7537
|
mutationKey: ["pointTransfer"],
|
|
7538
7538
|
mutationFn: async (l) => t({
|
|
7539
7539
|
...l,
|
|
@@ -7541,7 +7541,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7541
7541
|
}),
|
|
7542
7542
|
...e
|
|
7543
7543
|
});
|
|
7544
|
-
},
|
|
7544
|
+
}, Nm = ({ options: e } = {}) => {
|
|
7545
7545
|
const { currency: n } = se(), { checkUserWagerApi: t } = oe();
|
|
7546
7546
|
return j({
|
|
7547
7547
|
queryKey: ["checkUserWager"],
|
|
@@ -7554,9 +7554,9 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7554
7554
|
},
|
|
7555
7555
|
...e
|
|
7556
7556
|
});
|
|
7557
|
-
},
|
|
7557
|
+
}, Lm = ({ options: e } = {}) => {
|
|
7558
7558
|
const n = fi(), { abandonPointsApi: t } = oe();
|
|
7559
|
-
return
|
|
7559
|
+
return re({
|
|
7560
7560
|
mutationKey: ["abandonPoint"],
|
|
7561
7561
|
mutationFn: async (l) => t({
|
|
7562
7562
|
...l
|
|
@@ -7568,129 +7568,130 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7568
7568
|
});
|
|
7569
7569
|
}, il = ({ options: e } = {}) => {
|
|
7570
7570
|
const { lineLoginApi: n } = oe();
|
|
7571
|
-
return
|
|
7571
|
+
return re({
|
|
7572
7572
|
mutationKey: ["lineLogin"],
|
|
7573
7573
|
mutationFn: async (t) => n(t),
|
|
7574
7574
|
...e
|
|
7575
7575
|
});
|
|
7576
|
-
},
|
|
7576
|
+
}, zo = ({ options: e } = {}) => {
|
|
7577
7577
|
const { lineLogin2Api: n } = oe();
|
|
7578
|
-
return
|
|
7578
|
+
return re({
|
|
7579
7579
|
mutationKey: ["lineLogin"],
|
|
7580
7580
|
mutationFn: async (t) => n(t),
|
|
7581
7581
|
...e
|
|
7582
7582
|
});
|
|
7583
|
-
},
|
|
7583
|
+
}, Io = ({ 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
|
+
}, Gm = ({ options: e } = {}) => {
|
|
7591
7591
|
const { currency: n } = se(), { memberTransferApi: t } = oe();
|
|
7592
|
-
return
|
|
7592
|
+
return re({
|
|
7593
7593
|
mutationKey: ["memberTransfer"],
|
|
7594
7594
|
mutationFn: async (l) => t({ ...l, currency: n }),
|
|
7595
7595
|
...e
|
|
7596
7596
|
});
|
|
7597
|
-
},
|
|
7597
|
+
}, Mm = ({ options: e } = {}) => {
|
|
7598
7598
|
const { mobileLoginApi: n } = oe();
|
|
7599
|
-
return
|
|
7599
|
+
return re({
|
|
7600
7600
|
mutationKey: ["mobileLogin"],
|
|
7601
7601
|
mutationFn: async (t) => n(t),
|
|
7602
7602
|
...e
|
|
7603
7603
|
});
|
|
7604
|
-
},
|
|
7604
|
+
}, Rm = ({ options: e } = {}) => {
|
|
7605
7605
|
const { mobileLoginApiV2: n } = oe();
|
|
7606
|
-
return
|
|
7606
|
+
return re({
|
|
7607
7607
|
mutationKey: ["mobileLoginV2"],
|
|
7608
7608
|
mutationFn: async (t) => n(t),
|
|
7609
7609
|
...e
|
|
7610
7610
|
});
|
|
7611
|
-
},
|
|
7611
|
+
}, Pm = ({ options: e } = {}) => {
|
|
7612
7612
|
const { mobileRegisterApi: n } = oe();
|
|
7613
|
-
return
|
|
7613
|
+
return re({
|
|
7614
7614
|
mutationKey: ["mobileRegister"],
|
|
7615
7615
|
mutationFn: async (t) => n(t),
|
|
7616
7616
|
...e
|
|
7617
7617
|
});
|
|
7618
|
-
},
|
|
7618
|
+
}, Vo = ({ options: e } = {}) => {
|
|
7619
7619
|
const { bindAccountApi: n } = oe();
|
|
7620
|
-
return
|
|
7620
|
+
return re({
|
|
7621
7621
|
mutationKey: ["bindAccount"],
|
|
7622
7622
|
mutationFn: async (t) => n(t),
|
|
7623
7623
|
...e
|
|
7624
7624
|
});
|
|
7625
|
-
},
|
|
7625
|
+
}, wm = ({ options: e } = {}) => {
|
|
7626
7626
|
const { sendMobileVerifyCodeApi: n } = oe();
|
|
7627
|
-
return
|
|
7627
|
+
return re({
|
|
7628
7628
|
mutationKey: ["sendMobileVerifyCode"],
|
|
7629
7629
|
mutationFn: async (t) => n(t),
|
|
7630
7630
|
...e
|
|
7631
7631
|
});
|
|
7632
|
-
},
|
|
7632
|
+
}, Fm = ({ 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
|
+
}, Am = ({ 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
|
+
}, Om = ({ options: e } = {}) => {
|
|
7647
7647
|
const { verifyResetActionApi: n } = oe();
|
|
7648
|
-
return
|
|
7648
|
+
return re({
|
|
7649
7649
|
mutationKey: ["verifyResetAction"],
|
|
7650
7650
|
mutationFn: async (t) => n(t),
|
|
7651
7651
|
...e
|
|
7652
7652
|
});
|
|
7653
|
-
},
|
|
7653
|
+
}, Bm = ({ 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 = le(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 ? zl(n, (b, d) => {
|
|
7667
|
+
b.amount = le(p, d, 0) + Math.floor(Math.random() * 1e3);
|
|
7668
7668
|
}) : p;
|
|
7669
7669
|
},
|
|
7670
7670
|
...e
|
|
7671
7671
|
});
|
|
7672
|
-
},
|
|
7672
|
+
}, Hm = ({ 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
|
+
}, Wm = ({ options: e } = {}) => {
|
|
7680
7680
|
const { getUserAvatarListApi: n } = oe();
|
|
7681
7681
|
return j({
|
|
7682
7682
|
queryKey: ["getAvatarList"],
|
|
7683
7683
|
queryFn: async () => n(),
|
|
7684
|
+
select: (t) => Wl(le(t, "data", []), (l) => l.unlock),
|
|
7684
7685
|
...e
|
|
7685
7686
|
});
|
|
7686
|
-
},
|
|
7687
|
+
}, zm = ({ options: e } = {}) => {
|
|
7687
7688
|
const { updateUserAvatarApi: n } = oe();
|
|
7688
|
-
return
|
|
7689
|
+
return re({
|
|
7689
7690
|
mutationKey: ["updateAvatar"],
|
|
7690
7691
|
mutationFn: async (t) => n(t),
|
|
7691
7692
|
...e
|
|
7692
7693
|
});
|
|
7693
|
-
},
|
|
7694
|
+
}, Im = ({
|
|
7694
7695
|
options: e = {
|
|
7695
7696
|
login: {},
|
|
7696
7697
|
logout: {},
|
|
@@ -7704,15 +7705,15 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7704
7705
|
userBindCard: {}
|
|
7705
7706
|
}
|
|
7706
7707
|
} = {}) => {
|
|
7707
|
-
const n =
|
|
7708
|
+
const n = Go({ options: e.login }), t = Mo({ options: e.logout }), l = Ro({ options: e.register }), p = wo({ options: e.updateUserInfo }), g = Po({
|
|
7708
7709
|
options: e.toggleFavoriteGame
|
|
7709
|
-
}), b =
|
|
7710
|
+
}), b = Fo({
|
|
7710
7711
|
options: e.resetUserPassword
|
|
7711
|
-
}), d =
|
|
7712
|
+
}), d = Ao({
|
|
7712
7713
|
options: e.setUserTransactionPassword
|
|
7713
|
-
}), r =
|
|
7714
|
+
}), r = Oo({
|
|
7714
7715
|
options: e.resetUserTransactionPassword
|
|
7715
|
-
}), a =
|
|
7716
|
+
}), a = Bo({ options: e.userRebate }), i = Ho({ options: e.userBindCard });
|
|
7716
7717
|
return {
|
|
7717
7718
|
login: n,
|
|
7718
7719
|
logout: t,
|
|
@@ -7739,7 +7740,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7739
7740
|
UPDATE_ONLY_ONE_MEMBER: "update_only_one_member",
|
|
7740
7741
|
GAME_MAINTAIN: "game_maintain",
|
|
7741
7742
|
LINE_LOGIN: "line_login"
|
|
7742
|
-
},
|
|
7743
|
+
}, Jo = 3e4, Vm = ({
|
|
7743
7744
|
socketUrl: e,
|
|
7744
7745
|
socketHandlers: n = {},
|
|
7745
7746
|
options: t = {},
|
|
@@ -7753,9 +7754,9 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7753
7754
|
enableNotification: g = !1,
|
|
7754
7755
|
disabledLineAutoRegister: b = !1
|
|
7755
7756
|
}) => {
|
|
7756
|
-
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 =
|
|
7757
|
-
|
|
7758
|
-
const _ = new URLSearchParams(window.location.search), U =
|
|
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 = le(l, "uid", null);
|
|
7758
|
+
le(l, "testFunction", 0);
|
|
7759
|
+
const _ = new URLSearchParams(window.location.search), U = le(
|
|
7759
7760
|
p,
|
|
7760
7761
|
"enableTransferInGaming",
|
|
7761
7762
|
!1
|
|
@@ -7766,7 +7767,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7766
7767
|
},
|
|
7767
7768
|
retry: !1
|
|
7768
7769
|
}
|
|
7769
|
-
}), { mutateAsync: v } =
|
|
7770
|
+
}), { mutateAsync: v } = zo({
|
|
7770
7771
|
options: {
|
|
7771
7772
|
onSuccess: (w) => {
|
|
7772
7773
|
f.current.onLineLogin?.(w);
|
|
@@ -7775,12 +7776,12 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7775
7776
|
b || C(R);
|
|
7776
7777
|
}
|
|
7777
7778
|
}
|
|
7778
|
-
}), { handleTransferInGame: D } =
|
|
7779
|
+
}), { handleTransferInGame: D } = Lo({
|
|
7779
7780
|
enable: U,
|
|
7780
7781
|
isTestFunction: !0,
|
|
7781
|
-
isTransferMode:
|
|
7782
|
-
isInGameBox:
|
|
7783
|
-
currentGamePlatform:
|
|
7782
|
+
isTransferMode: le(p, "isTransferMode", !1),
|
|
7783
|
+
isInGameBox: le(p, "isInGameBox", !1),
|
|
7784
|
+
currentGamePlatform: le(p, "currentGamePlatform", "")
|
|
7784
7785
|
}), {
|
|
7785
7786
|
sendMessage: E,
|
|
7786
7787
|
// 發送普通訊息
|
|
@@ -7792,7 +7793,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7792
7793
|
readyState: k
|
|
7793
7794
|
// WebSocket 連線狀態
|
|
7794
7795
|
// getWebSocket, // 獲取 WebSocket 實例
|
|
7795
|
-
} =
|
|
7796
|
+
} = No(e, {
|
|
7796
7797
|
queryParams: { key: "wsky" },
|
|
7797
7798
|
onOpen: () => console.log("連線成功"),
|
|
7798
7799
|
shouldReconnect: () => c.current === !1,
|
|
@@ -7809,7 +7810,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7809
7810
|
ge(() => {
|
|
7810
7811
|
const w = setInterval(
|
|
7811
7812
|
() => E("ping"),
|
|
7812
|
-
|
|
7813
|
+
Jo
|
|
7813
7814
|
);
|
|
7814
7815
|
return () => clearInterval(w);
|
|
7815
7816
|
}, [E]);
|
|
@@ -7845,13 +7846,13 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7845
7846
|
onTransferInGame: M,
|
|
7846
7847
|
onCashRegisterLimit: S,
|
|
7847
7848
|
onLineLogin: x
|
|
7848
|
-
} = f.current, L =
|
|
7849
|
-
memberInfoUid:
|
|
7850
|
-
data:
|
|
7851
|
-
memo:
|
|
7852
|
-
amount:
|
|
7853
|
-
limitAmount:
|
|
7854
|
-
}, Z = Number(N.memberInfoUid) === y, q = N.data, Q = N.amount, K = N.limitAmount, ae = _.get("mac") || mi.get("machine_mac_address") || "", ie =
|
|
7849
|
+
} = f.current, L = le(h, "type", ""), N = {
|
|
7850
|
+
memberInfoUid: le(h, "member_info_uid", null),
|
|
7851
|
+
data: le(h, "data", null),
|
|
7852
|
+
memo: le(h, "memo", null),
|
|
7853
|
+
amount: le(h, "amount", null),
|
|
7854
|
+
limitAmount: le(h, "limit_amount", null)
|
|
7855
|
+
}, Z = Number(N.memberInfoUid) === y, q = N.data, Q = N.amount, K = N.limitAmount, ae = _.get("mac") || mi.get("machine_mac_address") || "", ie = le(h, "data.line_id", null), _e = le(h, "data.line_name", null), ye = le(h, "member_info_uid", null);
|
|
7855
7856
|
switch (L) {
|
|
7856
7857
|
case ze.DEPOSIT:
|
|
7857
7858
|
Z && (D(), w?.(N));
|
|
@@ -7861,7 +7862,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7861
7862
|
break;
|
|
7862
7863
|
case ze.ERROR:
|
|
7863
7864
|
if (Z) {
|
|
7864
|
-
const me =
|
|
7865
|
+
const me = le(h, "open_game_modal", 0) === 1;
|
|
7865
7866
|
F(q, {
|
|
7866
7867
|
notificationType: me ? "gamingNotice" : void 0
|
|
7867
7868
|
}), P?.(N);
|
|
@@ -7888,7 +7889,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
7888
7889
|
case ze.TRANSFER_IN_GAME:
|
|
7889
7890
|
case ze.CHECK_REQUEST:
|
|
7890
7891
|
if (Z && U) {
|
|
7891
|
-
const { request_id: me, amount: ce, platform: ke, status: Ue } =
|
|
7892
|
+
const { request_id: me, amount: ce, platform: ke, status: Ue } = le(
|
|
7892
7893
|
N,
|
|
7893
7894
|
"data",
|
|
7894
7895
|
{}
|
|
@@ -8013,7 +8014,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
8013
8014
|
redeemEventRewardApi: l,
|
|
8014
8015
|
settleEventApi: g
|
|
8015
8016
|
};
|
|
8016
|
-
},
|
|
8017
|
+
}, Zo = ({ paramsData: e, options: n } = {}) => {
|
|
8017
8018
|
const { store: t, lng: l, data2URL: p } = se(), { eventListApi: g } = Ya(), b = t?.getState()?.isWalletCurrency || t?.getState()?.currency?.currentCurrency || "TWD", d = Qe(l);
|
|
8018
8019
|
return j({
|
|
8019
8020
|
queryKey: ["eventList", e],
|
|
@@ -8024,7 +8025,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
8024
8025
|
const { events_attributes: s } = o, u = $e(
|
|
8025
8026
|
s,
|
|
8026
8027
|
(v) => v.attribute_currency === b
|
|
8027
|
-
) || s[0], m =
|
|
8028
|
+
) || s[0], m = le(u, "rewards", {}), c = le(o, "carousels.[0]", {}), f = $e(c.carousels_lang, (v) => v.lang === d) || c?.carousels_lang?.[0], y = {
|
|
8028
8029
|
...c,
|
|
8029
8030
|
currentLngCarousel: {
|
|
8030
8031
|
...f,
|
|
@@ -8130,21 +8131,21 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
8130
8131
|
},
|
|
8131
8132
|
...n
|
|
8132
8133
|
});
|
|
8133
|
-
},
|
|
8134
|
+
}, Jm = ({ options: e } = {}) => {
|
|
8134
8135
|
const { redeemEventRewardApi: n } = Ya();
|
|
8135
|
-
return
|
|
8136
|
+
return re({
|
|
8136
8137
|
mutationKey: ["redeemEventReward"],
|
|
8137
8138
|
mutationFn: async (t) => n(t),
|
|
8138
8139
|
...e
|
|
8139
8140
|
});
|
|
8140
|
-
},
|
|
8141
|
+
}, Ko = ({ options: e, formData: n } = {}) => {
|
|
8141
8142
|
const { checkCurrentEventProgessApi: t } = Ya();
|
|
8142
8143
|
return j({
|
|
8143
8144
|
queryKey: ["checkEventProgress"],
|
|
8144
8145
|
queryFn: async () => t(n),
|
|
8145
8146
|
...e
|
|
8146
8147
|
});
|
|
8147
|
-
},
|
|
8148
|
+
}, qo = ({ options: e, formData: n } = {}) => {
|
|
8148
8149
|
const { checkEventStatusApi: t } = Ya();
|
|
8149
8150
|
return j({
|
|
8150
8151
|
queryKey: ["checkEventStatus"],
|
|
@@ -8152,23 +8153,23 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
8152
8153
|
select: (l) => l.data.event_status,
|
|
8153
8154
|
...e
|
|
8154
8155
|
});
|
|
8155
|
-
},
|
|
8156
|
+
}, Zm = ({ options: e } = {}) => {
|
|
8156
8157
|
const { settleEventApi: n } = Ya();
|
|
8157
|
-
return
|
|
8158
|
+
return re({
|
|
8158
8159
|
mutationKey: ["settleEvent"],
|
|
8159
8160
|
mutationFn: async (t) => n(t),
|
|
8160
8161
|
...e
|
|
8161
8162
|
});
|
|
8162
|
-
},
|
|
8163
|
+
}, Km = ({
|
|
8163
8164
|
options: e = {
|
|
8164
8165
|
eventList: {},
|
|
8165
8166
|
checkEventProgress: {},
|
|
8166
8167
|
checkEventStatus: {}
|
|
8167
8168
|
}
|
|
8168
8169
|
} = {}) => {
|
|
8169
|
-
const n =
|
|
8170
|
+
const n = Zo({ options: e.eventList }), t = Ko({
|
|
8170
8171
|
options: e.checkEventProgress
|
|
8171
|
-
}), l =
|
|
8172
|
+
}), l = qo({
|
|
8172
8173
|
options: e.checkEventStatus
|
|
8173
8174
|
});
|
|
8174
8175
|
return {
|
|
@@ -8176,7 +8177,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
8176
8177
|
checkEventProgressQuery: t,
|
|
8177
8178
|
checkEventStatusQuery: l
|
|
8178
8179
|
};
|
|
8179
|
-
},
|
|
8180
|
+
}, qm = ({ skipPreload: e = !1 } = {}) => {
|
|
8180
8181
|
const { lng: n, data2URL: t } = se(), { commonCarouselApi: l } = Ha(), p = Qe(n);
|
|
8181
8182
|
return j({
|
|
8182
8183
|
queryKey: ["getCarouselList", e],
|
|
@@ -8204,7 +8205,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
8204
8205
|
};
|
|
8205
8206
|
})
|
|
8206
8207
|
});
|
|
8207
|
-
},
|
|
8208
|
+
}, $m = () => {
|
|
8208
8209
|
const { lng: e } = se(), { commonMarqueeApi: n } = Ha(), t = Qe(e);
|
|
8209
8210
|
return j({
|
|
8210
8211
|
queryKey: ["getMarqueeList"],
|
|
@@ -8217,7 +8218,7 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
8217
8218
|
return Be(p, (b) => b[t] || b?.en_US);
|
|
8218
8219
|
}
|
|
8219
8220
|
});
|
|
8220
|
-
},
|
|
8221
|
+
}, Qm = ({ options: e } = {}) => {
|
|
8221
8222
|
const { rankingGameApi: n } = oe();
|
|
8222
8223
|
return j({
|
|
8223
8224
|
queryKey: ["rankingGame"],
|
|
@@ -8259,10 +8260,10 @@ const Eo = /* @__PURE__ */ _i(Do), No = ({
|
|
|
8259
8260
|
...e
|
|
8260
8261
|
});
|
|
8261
8262
|
};
|
|
8262
|
-
var
|
|
8263
|
-
if (n && typeof n == "object" || typeof n == "function") for (let p of
|
|
8263
|
+
var $o = Object.create, nl = Object.defineProperty, Qo = Object.getOwnPropertyDescriptor, jo = Object.getOwnPropertyNames, Yo = Object.getPrototypeOf, Xo = Object.prototype.hasOwnProperty, es = (e, n) => () => (n || e((n = { exports: {} }).exports, n), n.exports), as = (e, n, t, l) => {
|
|
8264
|
+
if (n && typeof n == "object" || typeof n == "function") for (let p of jo(n)) !Xo.call(e, p) && p !== t && nl(e, p, { get: () => n[p], enumerable: !(l = Qo(n, p)) || l.enumerable });
|
|
8264
8265
|
return e;
|
|
8265
|
-
},
|
|
8266
|
+
}, ts = (e, n, t) => (t = e != null ? $o(Yo(e)) : {}, as(!e || !e.__esModule ? nl(t, "default", { value: e, enumerable: !0 }) : t, e)), is = es((e, n) => {
|
|
8266
8267
|
(function(t, l) {
|
|
8267
8268
|
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 = {}));
|
|
8268
8269
|
})(e, function(t) {
|
|
@@ -8291,12 +8292,12 @@ var qo = Object.create, nl = Object.defineProperty, $o = Object.getOwnPropertyDe
|
|
|
8291
8292
|
t.addUniqueNumber = s, t.generateUniqueNumber = o;
|
|
8292
8293
|
});
|
|
8293
8294
|
});
|
|
8294
|
-
|
|
8295
|
+
ts(is());
|
|
8295
8296
|
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 };
|
|
8296
|
-
function
|
|
8297
|
+
function ns(e) {
|
|
8297
8298
|
Xe.setTimeout = e.setTimeout, Xe.clearTimeout = e.clearTimeout, Xe.setInterval = e.setInterval, Xe.clearInterval = e.clearInterval;
|
|
8298
8299
|
}
|
|
8299
|
-
var wa = {},
|
|
8300
|
+
var wa = {}, ls = class {
|
|
8300
8301
|
name;
|
|
8301
8302
|
closed = !1;
|
|
8302
8303
|
mc = new MessageChannel();
|
|
@@ -8344,14 +8345,14 @@ var wa = {}, ns = class {
|
|
|
8344
8345
|
dispatchEvent(e) {
|
|
8345
8346
|
return this.mc.port1.dispatchEvent(e);
|
|
8346
8347
|
}
|
|
8347
|
-
},
|
|
8348
|
-
function
|
|
8348
|
+
}, rs = typeof window > "u" ? void 0 : typeof window.BroadcastChannel == "function" ? window.BroadcastChannel : ls;
|
|
8349
|
+
function os(e = 0) {
|
|
8349
8350
|
return new Promise((n) => Xe.setTimeout(n, e));
|
|
8350
8351
|
}
|
|
8351
8352
|
function ll() {
|
|
8352
8353
|
return Math.random().toString(36).substring(2);
|
|
8353
8354
|
}
|
|
8354
|
-
var
|
|
8355
|
+
var ss = class {
|
|
8355
8356
|
options;
|
|
8356
8357
|
channel;
|
|
8357
8358
|
token = ll();
|
|
@@ -8375,7 +8376,7 @@ var os = class {
|
|
|
8375
8376
|
};
|
|
8376
8377
|
this.channel.addEventListener("message", n);
|
|
8377
8378
|
try {
|
|
8378
|
-
return this.sendAction(0), await
|
|
8379
|
+
return this.sendAction(0), await os(this.options.responseTime), this.channel.removeEventListener("message", n), this.isApplying = !1, e ? this.reApply ? this.apply() : !1 : (this.assumeLead(), !0);
|
|
8379
8380
|
} catch {
|
|
8380
8381
|
return !1;
|
|
8381
8382
|
}
|
|
@@ -8431,7 +8432,7 @@ var os = class {
|
|
|
8431
8432
|
}
|
|
8432
8433
|
}
|
|
8433
8434
|
}
|
|
8434
|
-
},
|
|
8435
|
+
}, ms = class {
|
|
8435
8436
|
channel;
|
|
8436
8437
|
options;
|
|
8437
8438
|
elector;
|
|
@@ -8441,9 +8442,9 @@ var os = class {
|
|
|
8441
8442
|
isLastActive = !1;
|
|
8442
8443
|
constructor(e) {
|
|
8443
8444
|
let { channelName: n } = e;
|
|
8444
|
-
if (this.options = e, this.channel = new
|
|
8445
|
+
if (this.options = e, this.channel = new rs(n), this.registry.set(this.token, 1), e.leaderElection) {
|
|
8445
8446
|
let t = { fallbackInterval: 2e3, responseTime: 100 };
|
|
8446
|
-
this.elector = new
|
|
8447
|
+
this.elector = new ss(this.channel, t), this.elector.waitForLeadership();
|
|
8447
8448
|
}
|
|
8448
8449
|
this.channel.addEventListener("message", (t) => {
|
|
8449
8450
|
let { action: l, token: p, data: g } = t.data;
|
|
@@ -8533,8 +8534,8 @@ var os = class {
|
|
|
8533
8534
|
close() {
|
|
8534
8535
|
this.options.leaderElection && this.elector.close(), this.send(4), this.channel.close();
|
|
8535
8536
|
}
|
|
8536
|
-
},
|
|
8537
|
-
function
|
|
8537
|
+
}, us = pa ? document : null, ps = ["mousemove", "keydown", "wheel", "DOMMouseScroll", "mousewheel", "mousedown", "touchstart", "touchmove", "MSPointerDown", "MSPointerMove", "visibilitychange", "focus"];
|
|
8538
|
+
function gs(e, n) {
|
|
8538
8539
|
let t;
|
|
8539
8540
|
function l(...p) {
|
|
8540
8541
|
t && clearTimeout(t), t = setTimeout(() => {
|
|
@@ -8553,7 +8554,7 @@ function ri(e, n) {
|
|
|
8553
8554
|
};
|
|
8554
8555
|
}
|
|
8555
8556
|
var Te = () => Date.now(), Fa = 2147483647;
|
|
8556
|
-
function
|
|
8557
|
+
function ds({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle: t = 0, element: l = us, events: p = ps, timers: g = void 0, immediateEvents: b = [], onPresenceChange: d = () => {
|
|
8557
8558
|
}, onPrompt: r = () => {
|
|
8558
8559
|
}, onIdle: a = () => {
|
|
8559
8560
|
}, onActive: i = () => {
|
|
@@ -8606,7 +8607,7 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8606
8607
|
}, [s]);
|
|
8607
8608
|
let Ue = Oa(() => {
|
|
8608
8609
|
let V = (De, ia) => ce.current(De, ia);
|
|
8609
|
-
return u > 0 ?
|
|
8610
|
+
return u > 0 ? gs(V, u) : m > 0 ? ri(V, m) : V;
|
|
8610
8611
|
}, [m, u]), Ie = ee();
|
|
8611
8612
|
ge(() => {
|
|
8612
8613
|
U && v && (Ie.current = ri(() => {
|
|
@@ -8673,7 +8674,7 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8673
8674
|
}, [k, F]);
|
|
8674
8675
|
ge(() => {
|
|
8675
8676
|
if (u > 0 && m > 0) throw new Error("❌ onAction can either be throttled or debounced, not both.");
|
|
8676
|
-
g &&
|
|
8677
|
+
g && ns(g);
|
|
8677
8678
|
let V = () => {
|
|
8678
8679
|
x.current && x.current.close(), Ue.cancel && Ue.cancel(), Ce(), Re(!0);
|
|
8679
8680
|
};
|
|
@@ -8681,7 +8682,7 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8681
8682
|
pa && window.removeEventListener("beforeunload", V), x.current && x.current.close(), Ue.cancel && Ue.cancel(), Ce(), Re(!0);
|
|
8682
8683
|
};
|
|
8683
8684
|
}, []), ge(() => {
|
|
8684
|
-
x.current && x.current.close(), U ? x.current = new
|
|
8685
|
+
x.current && x.current.close(), U ? x.current = new ms({ channelName: C, leaderElection: D, onPrompt: () => {
|
|
8685
8686
|
ea();
|
|
8686
8687
|
}, onIdle: () => {
|
|
8687
8688
|
Me();
|
|
@@ -8716,15 +8717,15 @@ function gs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
|
|
|
8716
8717
|
} };
|
|
8717
8718
|
return Se;
|
|
8718
8719
|
}
|
|
8719
|
-
var
|
|
8720
|
-
|
|
8721
|
-
const
|
|
8720
|
+
var cs = qt(null);
|
|
8721
|
+
cs.Consumer;
|
|
8722
|
+
const jm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => ds({
|
|
8722
8723
|
onIdle: e,
|
|
8723
8724
|
onActive: n,
|
|
8724
8725
|
onAction: t,
|
|
8725
8726
|
timeout: l,
|
|
8726
8727
|
throttle: 500
|
|
8727
|
-
}),
|
|
8728
|
+
}), fs = ({ options: e } = {}) => {
|
|
8728
8729
|
const { commonInboxApi: n } = Ha(), { getToken: t, lng: l } = se(), p = t?.(), g = Qe(l);
|
|
8729
8730
|
return j({
|
|
8730
8731
|
queryKey: ["inboxList"],
|
|
@@ -8745,20 +8746,20 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
8745
8746
|
enabled: !!p,
|
|
8746
8747
|
...e
|
|
8747
8748
|
});
|
|
8748
|
-
},
|
|
8749
|
+
}, _s = ({ options: e } = {}) => {
|
|
8749
8750
|
const { commonReadInboxApi: n } = Ha();
|
|
8750
|
-
return
|
|
8751
|
+
return re({
|
|
8751
8752
|
mutationKey: ["readInbox"],
|
|
8752
8753
|
mutationFn: async (t) => await n(t),
|
|
8753
8754
|
...e
|
|
8754
8755
|
});
|
|
8755
|
-
},
|
|
8756
|
+
}, Ym = ({
|
|
8756
8757
|
options: e = {
|
|
8757
8758
|
inboxList: {},
|
|
8758
8759
|
readInbox: {}
|
|
8759
8760
|
}
|
|
8760
8761
|
} = {}) => {
|
|
8761
|
-
const n =
|
|
8762
|
+
const n = fs({ options: e.inboxList }), t = _s({ options: e.readInbox });
|
|
8762
8763
|
return {
|
|
8763
8764
|
inboxListQuery: n,
|
|
8764
8765
|
readInboxMutation: t
|
|
@@ -8773,7 +8774,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
8773
8774
|
[e]
|
|
8774
8775
|
)
|
|
8775
8776
|
};
|
|
8776
|
-
},
|
|
8777
|
+
}, ys = ({
|
|
8777
8778
|
typeConfig: e = {
|
|
8778
8779
|
all: {},
|
|
8779
8780
|
crypto: {},
|
|
@@ -8819,7 +8820,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
8819
8820
|
value: "other",
|
|
8820
8821
|
...e.other
|
|
8821
8822
|
}
|
|
8822
|
-
],
|
|
8823
|
+
], Xm = ({ options: e, formData: n } = {}) => {
|
|
8823
8824
|
const { lng: t } = se(), { newsListApi: l } = rl(), p = Qe(t);
|
|
8824
8825
|
return j({
|
|
8825
8826
|
queryKey: ["newsList"],
|
|
@@ -8840,12 +8841,12 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
8840
8841
|
return {
|
|
8841
8842
|
...g.data,
|
|
8842
8843
|
data: r,
|
|
8843
|
-
blogType:
|
|
8844
|
+
blogType: ys({ typeConfig: e?.typeConfig })
|
|
8844
8845
|
};
|
|
8845
8846
|
},
|
|
8846
8847
|
...e
|
|
8847
8848
|
});
|
|
8848
|
-
},
|
|
8849
|
+
}, eu = ({ options: e, formData: n } = {}) => {
|
|
8849
8850
|
const { lng: t } = se(), { newsListApi: l } = rl(), p = Qe(t);
|
|
8850
8851
|
return j({
|
|
8851
8852
|
queryKey: ["newsList"],
|
|
@@ -9034,14 +9035,14 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9034
9035
|
transactionRecordApi: s,
|
|
9035
9036
|
treasureRecordApi: u
|
|
9036
9037
|
};
|
|
9037
|
-
},
|
|
9038
|
+
}, Us = ({ options: e } = {}) => {
|
|
9038
9039
|
const { depositApiV1: n } = Ae();
|
|
9039
9040
|
return j({
|
|
9040
9041
|
queryKey: ["depositV1"],
|
|
9041
9042
|
queryFn: n,
|
|
9042
9043
|
...e
|
|
9043
9044
|
});
|
|
9044
|
-
},
|
|
9045
|
+
}, bs = ({ paramsData: e, options: n } = {}) => {
|
|
9045
9046
|
const { depositApiV2: t } = Ae();
|
|
9046
9047
|
return j({
|
|
9047
9048
|
queryKey: ["depositV2", e],
|
|
@@ -9066,105 +9067,105 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9066
9067
|
},
|
|
9067
9068
|
...n
|
|
9068
9069
|
});
|
|
9069
|
-
},
|
|
9070
|
+
}, Cs = ({ options: e } = {}) => {
|
|
9070
9071
|
const { depositApi: n } = Ae();
|
|
9071
|
-
return
|
|
9072
|
+
return re({
|
|
9072
9073
|
mutationKey: ["depositAction"],
|
|
9073
9074
|
mutationFn: async (t) => n(t),
|
|
9074
9075
|
...e
|
|
9075
9076
|
});
|
|
9076
|
-
},
|
|
9077
|
+
}, vs = ({ options: e } = {}) => {
|
|
9077
9078
|
const { withdrawApi: n } = Ae();
|
|
9078
|
-
return
|
|
9079
|
+
return re({
|
|
9079
9080
|
mutationKey: ["withdrawAction"],
|
|
9080
9081
|
mutationFn: async (t) => n(t),
|
|
9081
9082
|
...e
|
|
9082
9083
|
});
|
|
9083
|
-
},
|
|
9084
|
+
}, hs = ({ paramsData: e, options: n } = {}) => {
|
|
9084
9085
|
const { depositTransactionApi: t } = Ae();
|
|
9085
9086
|
return j({
|
|
9086
9087
|
queryKey: ["depositTransaction", e],
|
|
9087
9088
|
queryFn: () => t({ paramsData: e }),
|
|
9088
9089
|
...n
|
|
9089
9090
|
});
|
|
9090
|
-
},
|
|
9091
|
+
}, Ts = ({ paramsData: e, options: n } = {}) => {
|
|
9091
9092
|
const { eventTransactionApi: t } = Ae();
|
|
9092
9093
|
return j({
|
|
9093
9094
|
queryKey: ["eventTransaction", e],
|
|
9094
9095
|
queryFn: () => t({ paramsData: e }),
|
|
9095
9096
|
...n
|
|
9096
9097
|
});
|
|
9097
|
-
},
|
|
9098
|
+
}, ks = ({ options: e } = {}) => {
|
|
9098
9099
|
const { bankDepositApi: n } = Ae();
|
|
9099
|
-
return
|
|
9100
|
+
return re({
|
|
9100
9101
|
mutationKey: ["bankDeposit"],
|
|
9101
9102
|
mutationFn: async (t) => n(t),
|
|
9102
9103
|
...e
|
|
9103
9104
|
});
|
|
9104
|
-
},
|
|
9105
|
+
}, xs = ({ paramsData: e, options: n } = {}) => {
|
|
9105
9106
|
const { withdrawTransactionApi: t } = Ae();
|
|
9106
9107
|
return j({
|
|
9107
9108
|
queryKey: ["withdrawTransaction", e],
|
|
9108
9109
|
queryFn: () => t({ paramsData: e }),
|
|
9109
9110
|
...n
|
|
9110
9111
|
});
|
|
9111
|
-
},
|
|
9112
|
+
}, au = ({ options: e } = {}) => {
|
|
9112
9113
|
const { redeemCodeDepositApi: n } = Ae();
|
|
9113
|
-
return
|
|
9114
|
+
return re({
|
|
9114
9115
|
mutationKey: ["redeemCodeDeposit"],
|
|
9115
9116
|
mutationFn: async (t) => n(t),
|
|
9116
9117
|
...e
|
|
9117
9118
|
});
|
|
9118
|
-
},
|
|
9119
|
+
}, tu = ({ options: e } = {}) => {
|
|
9119
9120
|
const { invoiceApi: n } = Ae();
|
|
9120
|
-
return
|
|
9121
|
+
return re({
|
|
9121
9122
|
mutationKey: ["invoiceAction"],
|
|
9122
9123
|
mutationFn: async (t) => n(t),
|
|
9123
9124
|
...e
|
|
9124
9125
|
});
|
|
9125
|
-
},
|
|
9126
|
+
}, iu = ({ options: e } = {}) => {
|
|
9126
9127
|
const { updateInvoiceApi: n } = Ae();
|
|
9127
|
-
return
|
|
9128
|
+
return re({
|
|
9128
9129
|
mutationKey: ["updateInvoiceAction"],
|
|
9129
9130
|
mutationFn: async (t) => n(t),
|
|
9130
9131
|
...e
|
|
9131
9132
|
});
|
|
9132
|
-
},
|
|
9133
|
+
}, nu = ({ options: e, paramsData: n } = {}) => {
|
|
9133
9134
|
const { transactionRecordApi: t } = Ae();
|
|
9134
9135
|
return j({
|
|
9135
9136
|
queryKey: ["transactionRecord", "deposit"],
|
|
9136
9137
|
queryFn: () => t(n, "deposit"),
|
|
9137
9138
|
...e
|
|
9138
9139
|
});
|
|
9139
|
-
},
|
|
9140
|
+
}, lu = ({ options: e, paramsData: n } = {}) => {
|
|
9140
9141
|
const { transactionRecordApi: t } = Ae();
|
|
9141
9142
|
return j({
|
|
9142
9143
|
queryKey: ["transactionRecord", "withdraw"],
|
|
9143
9144
|
queryFn: () => t(n, "withdraw"),
|
|
9144
9145
|
...e
|
|
9145
9146
|
});
|
|
9146
|
-
},
|
|
9147
|
+
}, ru = ({ options: e, paramsData: n } = {}) => {
|
|
9147
9148
|
const { transactionRecordApi: t } = Ae();
|
|
9148
9149
|
return j({
|
|
9149
9150
|
queryKey: ["transactionRecord", "event"],
|
|
9150
9151
|
queryFn: () => t(n, "event"),
|
|
9151
9152
|
...e
|
|
9152
9153
|
});
|
|
9153
|
-
},
|
|
9154
|
+
}, ou = ({ options: e, paramsData: n } = {}) => {
|
|
9154
9155
|
const { transactionRecordApi: t } = Ae();
|
|
9155
9156
|
return j({
|
|
9156
9157
|
queryKey: ["transactionRecord", "rebate"],
|
|
9157
9158
|
queryFn: () => t(n, "rebate"),
|
|
9158
9159
|
...e
|
|
9159
9160
|
});
|
|
9160
|
-
},
|
|
9161
|
+
}, su = ({ options: e, paramsData: n } = {}) => {
|
|
9161
9162
|
const { treasureRecordApi: t } = Ae();
|
|
9162
9163
|
return j({
|
|
9163
9164
|
queryKey: ["treasureRecord", n],
|
|
9164
9165
|
queryFn: () => t(n),
|
|
9165
9166
|
...e
|
|
9166
9167
|
});
|
|
9167
|
-
},
|
|
9168
|
+
}, mu = ({
|
|
9168
9169
|
depositV1: e = {},
|
|
9169
9170
|
depositV2: n = {},
|
|
9170
9171
|
depositTransaction: t = {},
|
|
@@ -9174,7 +9175,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9174
9175
|
eventTransaction: b = {},
|
|
9175
9176
|
withdrawTransaction: d = {}
|
|
9176
9177
|
} = {}) => {
|
|
9177
|
-
const r =
|
|
9178
|
+
const r = Us(e), a = bs(n), i = hs(t), o = Cs(l), s = vs(p), u = ks(g), m = Ts(b), c = xs(
|
|
9178
9179
|
d
|
|
9179
9180
|
);
|
|
9180
9181
|
return {
|
|
@@ -9187,10 +9188,10 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9187
9188
|
eventTransaction: m,
|
|
9188
9189
|
withdrawTransaction: c
|
|
9189
9190
|
};
|
|
9190
|
-
}, ol = "3.7.8",
|
|
9191
|
+
}, ol = "3.7.8", Ss = ol, Wa = typeof Buffer == "function", Mn = typeof TextDecoder == "function" ? new TextDecoder() : void 0, Rn = typeof TextEncoder == "function" ? new TextEncoder() : void 0, Ds = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Qa = Array.prototype.slice.call(Ds), rt = ((e) => {
|
|
9191
9192
|
let n = {};
|
|
9192
9193
|
return e.forEach((t, l) => n[t] = l), n;
|
|
9193
|
-
})(Qa),
|
|
9194
|
+
})(Qa), Es = /^(?:[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) => {
|
|
9194
9195
|
let n, t, l, p, g = "";
|
|
9195
9196
|
const b = e.length % 3;
|
|
9196
9197
|
for (let d = 0; d < e.length; ) {
|
|
@@ -9204,7 +9205,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9204
9205
|
for (let l = 0, p = e.length; l < p; l += 4096)
|
|
9205
9206
|
t.push(Le.apply(null, e.subarray(l, l + 4096)));
|
|
9206
9207
|
return xi(t.join(""));
|
|
9207
|
-
}, Jt = (e, n = !1) => n ? sl(ui(e)) : ui(e),
|
|
9208
|
+
}, Jt = (e, n = !1) => n ? sl(ui(e)) : ui(e), Ns = (e) => {
|
|
9208
9209
|
if (e.length < 2) {
|
|
9209
9210
|
var n = e.charCodeAt(0);
|
|
9210
9211
|
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);
|
|
@@ -9212,7 +9213,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9212
9213
|
var n = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
|
|
9213
9214
|
return Le(240 | n >>> 18 & 7) + Le(128 | n >>> 12 & 63) + Le(128 | n >>> 6 & 63) + Le(128 | n & 63);
|
|
9214
9215
|
}
|
|
9215
|
-
},
|
|
9216
|
+
}, Ls = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, pl = (e) => e.replace(Ls, Ns), 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), Gs = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, Ms = (e) => {
|
|
9216
9217
|
switch (e.length) {
|
|
9217
9218
|
case 4:
|
|
9218
9219
|
var n = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), t = n - 65536;
|
|
@@ -9222,15 +9223,15 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9222
9223
|
default:
|
|
9223
9224
|
return Le((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
|
|
9224
9225
|
}
|
|
9225
|
-
}, gl = (e) => e.replace(
|
|
9226
|
-
if (e = e.replace(/\s+/g, ""), !
|
|
9226
|
+
}, gl = (e) => e.replace(Gs, Ms), dl = (e) => {
|
|
9227
|
+
if (e = e.replace(/\s+/g, ""), !Es.test(e))
|
|
9227
9228
|
throw new TypeError("malformed base64.");
|
|
9228
9229
|
e += "==".slice(2 - (e.length & 3));
|
|
9229
9230
|
let n, t, l, p = [];
|
|
9230
9231
|
for (let g = 0; g < e.length; )
|
|
9231
9232
|
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));
|
|
9232
9233
|
return p.join("");
|
|
9233
|
-
}, 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)),
|
|
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)), Rs = 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) => Rs(_l(e)), Ps = (e) => {
|
|
9234
9235
|
if (typeof e != "string")
|
|
9235
9236
|
return !1;
|
|
9236
9237
|
const n = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
|
|
@@ -9262,11 +9263,11 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9262
9263
|
}), e("toBase64URL", function() {
|
|
9263
9264
|
return Jt(this, !0);
|
|
9264
9265
|
});
|
|
9265
|
-
},
|
|
9266
|
+
}, ws = () => {
|
|
9266
9267
|
Ul(), bl();
|
|
9267
|
-
},
|
|
9268
|
+
}, Fs = {
|
|
9268
9269
|
version: ol,
|
|
9269
|
-
VERSION:
|
|
9270
|
+
VERSION: Ss,
|
|
9270
9271
|
atob: Si,
|
|
9271
9272
|
atobPolyfill: dl,
|
|
9272
9273
|
btoa: xi,
|
|
@@ -9279,13 +9280,13 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9279
9280
|
utob: pl,
|
|
9280
9281
|
btou: gl,
|
|
9281
9282
|
decode: pi,
|
|
9282
|
-
isValid:
|
|
9283
|
+
isValid: Ps,
|
|
9283
9284
|
fromUint8Array: Jt,
|
|
9284
9285
|
toUint8Array: fl,
|
|
9285
9286
|
extendString: Ul,
|
|
9286
9287
|
extendUint8Array: bl,
|
|
9287
|
-
extendBuiltins:
|
|
9288
|
-
},
|
|
9288
|
+
extendBuiltins: ws
|
|
9289
|
+
}, uu = (e, n) => {
|
|
9289
9290
|
const { playGameApi: t } = bi();
|
|
9290
9291
|
return j({
|
|
9291
9292
|
queryKey: ["playGame"],
|
|
@@ -9312,7 +9313,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9312
9313
|
supportPortrait: s,
|
|
9313
9314
|
isHtmlCode: m,
|
|
9314
9315
|
gameUrl: u,
|
|
9315
|
-
decodeGameUrl:
|
|
9316
|
+
decodeGameUrl: Fs.decode(u),
|
|
9316
9317
|
message: c
|
|
9317
9318
|
};
|
|
9318
9319
|
},
|
|
@@ -9325,28 +9326,28 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9325
9326
|
currentRebateApi: n,
|
|
9326
9327
|
receiveRebateApi: t
|
|
9327
9328
|
};
|
|
9328
|
-
},
|
|
9329
|
+
}, As = ({ options: e } = {}) => {
|
|
9329
9330
|
const { currentRebateApi: n } = Cl();
|
|
9330
9331
|
return j({
|
|
9331
9332
|
queryKey: ["currentRebate"],
|
|
9332
9333
|
queryFn: () => n(),
|
|
9333
|
-
select: (t) =>
|
|
9334
|
+
select: (t) => Il(t, ["code", "status"]),
|
|
9334
9335
|
...e
|
|
9335
9336
|
});
|
|
9336
|
-
},
|
|
9337
|
+
}, Os = ({ options: e } = {}) => {
|
|
9337
9338
|
const { receiveRebateApi: n } = Cl();
|
|
9338
|
-
return
|
|
9339
|
+
return re({
|
|
9339
9340
|
mutationKey: ["receiveRebate"],
|
|
9340
9341
|
mutationFn: async () => n(),
|
|
9341
9342
|
...e
|
|
9342
9343
|
});
|
|
9343
|
-
},
|
|
9344
|
+
}, pu = ({
|
|
9344
9345
|
options: e = {
|
|
9345
9346
|
currentRebate: {},
|
|
9346
9347
|
receiveRebate: {}
|
|
9347
9348
|
}
|
|
9348
9349
|
} = {}) => {
|
|
9349
|
-
const n =
|
|
9350
|
+
const n = As({ options: e.currentRebate }), t = Os({ options: e.receiveRebate });
|
|
9350
9351
|
return {
|
|
9351
9352
|
currentRebate: n,
|
|
9352
9353
|
receiveRebate: t
|
|
@@ -9370,7 +9371,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9370
9371
|
redeemRewardApi: p,
|
|
9371
9372
|
historyRewardApi: g
|
|
9372
9373
|
};
|
|
9373
|
-
},
|
|
9374
|
+
}, Bs = ({ options: e, formData: n } = {}) => {
|
|
9374
9375
|
const { rewardListApi: t } = Xa();
|
|
9375
9376
|
return j({
|
|
9376
9377
|
queryKey: ["rewardsList"],
|
|
@@ -9383,7 +9384,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9383
9384
|
const {
|
|
9384
9385
|
wagering_restricted_amount: b,
|
|
9385
9386
|
claimed_amount: d
|
|
9386
|
-
} = g, r =
|
|
9387
|
+
} = g, r = le(g, "rewards", {}), {
|
|
9387
9388
|
expiration_days: a,
|
|
9388
9389
|
name: i,
|
|
9389
9390
|
position: o,
|
|
@@ -9410,35 +9411,35 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9410
9411
|
},
|
|
9411
9412
|
...e
|
|
9412
9413
|
});
|
|
9413
|
-
},
|
|
9414
|
+
}, Hs = ({ options: e } = {}) => {
|
|
9414
9415
|
const { redeemRewardApi: n } = Xa();
|
|
9415
|
-
return
|
|
9416
|
+
return re({
|
|
9416
9417
|
mutationKey: ["redeemReward"],
|
|
9417
9418
|
mutationFn: async (t) => await n(t),
|
|
9418
9419
|
...e
|
|
9419
9420
|
});
|
|
9420
|
-
},
|
|
9421
|
+
}, Ws = ({ options: e } = {}) => {
|
|
9421
9422
|
const { unUsedRewardListApi: n } = Xa();
|
|
9422
9423
|
return j({
|
|
9423
9424
|
queryKey: ["unUsedRewardsList"],
|
|
9424
9425
|
queryFn: n,
|
|
9425
9426
|
...e
|
|
9426
9427
|
});
|
|
9427
|
-
},
|
|
9428
|
+
}, zs = ({ options: e } = {}) => {
|
|
9428
9429
|
const { expiredRewardListApi: n } = Xa();
|
|
9429
9430
|
return j({
|
|
9430
9431
|
queryKey: ["expiredRewardsList"],
|
|
9431
9432
|
queryFn: n,
|
|
9432
9433
|
...e
|
|
9433
9434
|
});
|
|
9434
|
-
},
|
|
9435
|
+
}, Is = ({ options: e } = {}) => {
|
|
9435
9436
|
const { historyRewardApi: n } = Xa();
|
|
9436
9437
|
return j({
|
|
9437
9438
|
queryKey: ["historyRewardsList"],
|
|
9438
9439
|
queryFn: n,
|
|
9439
9440
|
...e
|
|
9440
9441
|
});
|
|
9441
|
-
},
|
|
9442
|
+
}, gu = ({
|
|
9442
9443
|
options: e = {
|
|
9443
9444
|
rewardsList: {},
|
|
9444
9445
|
redeemReward: {},
|
|
@@ -9447,13 +9448,13 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9447
9448
|
historyRewardsList: {}
|
|
9448
9449
|
}
|
|
9449
9450
|
} = {}) => {
|
|
9450
|
-
const n =
|
|
9451
|
+
const n = Bs({ options: e.rewardsList }), t = Hs({
|
|
9451
9452
|
options: e.redeemReward
|
|
9452
|
-
}), l =
|
|
9453
|
+
}), l = Ws({
|
|
9453
9454
|
options: e.unUsedRewardsList
|
|
9454
|
-
}), p =
|
|
9455
|
+
}), p = zs({
|
|
9455
9456
|
options: e.expiredRewardsList
|
|
9456
|
-
}), g =
|
|
9457
|
+
}), g = Is({
|
|
9457
9458
|
options: e.historyRewardsList
|
|
9458
9459
|
});
|
|
9459
9460
|
return {
|
|
@@ -9498,20 +9499,20 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9498
9499
|
treasureListApi: n,
|
|
9499
9500
|
redeemTreasureApi: t
|
|
9500
9501
|
};
|
|
9501
|
-
},
|
|
9502
|
+
}, du = ({ paramsData: e, options: n } = {}) => {
|
|
9502
9503
|
const { client: t, lng: l } = se(), p = Qe(l || "tw"), { treasureListApi: g } = vl();
|
|
9503
9504
|
return j({
|
|
9504
9505
|
queryKey: ["treasureList", e],
|
|
9505
9506
|
queryFn: () => g(e),
|
|
9506
9507
|
select: (b) => {
|
|
9507
|
-
const d =
|
|
9508
|
-
current_page:
|
|
9509
|
-
per_page:
|
|
9510
|
-
total:
|
|
9511
|
-
last_page:
|
|
9508
|
+
const d = le(b, "data", {}), r = {
|
|
9509
|
+
current_page: le(d, "current_page", 1),
|
|
9510
|
+
per_page: le(d, "per_page", 10),
|
|
9511
|
+
total: le(d, "total", 1),
|
|
9512
|
+
last_page: le(d, "last_page", 1)
|
|
9512
9513
|
};
|
|
9513
9514
|
return {
|
|
9514
|
-
list: Be(
|
|
9515
|
+
list: Be(le(d, "data", []), (i) => {
|
|
9515
9516
|
const o = $e(i.treasure_copywriting, {
|
|
9516
9517
|
language: p
|
|
9517
9518
|
});
|
|
@@ -9526,9 +9527,9 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9526
9527
|
},
|
|
9527
9528
|
...n
|
|
9528
9529
|
});
|
|
9529
|
-
},
|
|
9530
|
+
}, cu = ({ options: e } = {}) => {
|
|
9530
9531
|
const { redeemTreasureApi: n } = vl();
|
|
9531
|
-
return
|
|
9532
|
+
return re({
|
|
9532
9533
|
mutationKey: ["redeemTreasure"],
|
|
9533
9534
|
mutationFn: async (t) => n(t),
|
|
9534
9535
|
...e
|
|
@@ -9539,7 +9540,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9539
9540
|
vipListApi: n,
|
|
9540
9541
|
vipInfoApi: t
|
|
9541
9542
|
};
|
|
9542
|
-
},
|
|
9543
|
+
}, fu = ({ options: e } = {}) => {
|
|
9543
9544
|
const { store: n } = se(), t = n?.getState()?.isMemberInfo || n?.getState()?.member?.member || {}, { vipInfoApi: l } = hl();
|
|
9544
9545
|
return j({
|
|
9545
9546
|
queryKey: ["vipInfo"],
|
|
@@ -9554,7 +9555,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9554
9555
|
},
|
|
9555
9556
|
...e
|
|
9556
9557
|
});
|
|
9557
|
-
},
|
|
9558
|
+
}, Vs = ({ options: e } = {}) => {
|
|
9558
9559
|
const { store: n } = se(), t = n?.getState()?.isWalletCurrency || n?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: l } = hl();
|
|
9559
9560
|
return j({
|
|
9560
9561
|
queryKey: ["vipList"],
|
|
@@ -9574,7 +9575,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9574
9575
|
} = d, u = $e(r, { currency_code: t }) || {}, m = $e(a, { currency_code: t }) || {}, c = i, f = Be(o, (U) => ({
|
|
9575
9576
|
...U,
|
|
9576
9577
|
rebateRange: JSON.parse(U.rebate_range)
|
|
9577
|
-
})), y =
|
|
9578
|
+
})), y = le(s, "[0]", {}), _ = {
|
|
9578
9579
|
...y,
|
|
9579
9580
|
platformRebate: JSON.parse(y.rebate || "{}")
|
|
9580
9581
|
};
|
|
@@ -9591,10 +9592,10 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9591
9592
|
},
|
|
9592
9593
|
...e
|
|
9593
9594
|
});
|
|
9594
|
-
},
|
|
9595
|
+
}, _u = ({ options: e } = {
|
|
9595
9596
|
vipList: {}
|
|
9596
9597
|
}) => ({
|
|
9597
|
-
vipList:
|
|
9598
|
+
vipList: Vs({ options: e.vipList })
|
|
9598
9599
|
}), An = (e) => {
|
|
9599
9600
|
switch (e) {
|
|
9600
9601
|
case "tw":
|
|
@@ -9614,7 +9615,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9614
9615
|
default:
|
|
9615
9616
|
return "En";
|
|
9616
9617
|
}
|
|
9617
|
-
}, ot = "game-icon-ds88",
|
|
9618
|
+
}, ot = "game-icon-ds88", yu = ({ gameData: e = {} } = {}) => {
|
|
9618
9619
|
const { lng: n } = se(), t = An(n), {
|
|
9619
9620
|
gameCode: l,
|
|
9620
9621
|
// 遊戲代碼
|
|
@@ -9687,7 +9688,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9687
9688
|
isInvalidBet: y,
|
|
9688
9689
|
haveJackpot: _
|
|
9689
9690
|
};
|
|
9690
|
-
},
|
|
9691
|
+
}, Js = (e, n = !1) => Vl([
|
|
9691
9692
|
"EVO",
|
|
9692
9693
|
"IMSPRIBE",
|
|
9693
9694
|
"SABA",
|
|
@@ -9698,7 +9699,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9698
9699
|
"HACK",
|
|
9699
9700
|
"NAGA",
|
|
9700
9701
|
"RSG"
|
|
9701
|
-
], e) && n ? `${e}_dark` : e,
|
|
9702
|
+
], e) && n ? `${e}_dark` : e, Uu = ({ platformData: e, darkMode: n } = {}) => {
|
|
9702
9703
|
const {
|
|
9703
9704
|
SubPlatformEnum: t,
|
|
9704
9705
|
// 子平台枚舉
|
|
@@ -9720,7 +9721,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9720
9721
|
// 臨時維護開始時間
|
|
9721
9722
|
temp_maintenance_end_time: o
|
|
9722
9723
|
// 臨時維護結束時間
|
|
9723
|
-
} = e || {}, s = `${Ze}/${qn}/${
|
|
9724
|
+
} = e || {}, s = `${Ze}/${qn}/${Js(l, n)}.png`;
|
|
9724
9725
|
return {
|
|
9725
9726
|
subPlatformEnum: t,
|
|
9726
9727
|
platformEnum: l,
|
|
@@ -9734,19 +9735,19 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9734
9735
|
tempMaintenanceEndTime: o,
|
|
9735
9736
|
platformImageUrl: s
|
|
9736
9737
|
};
|
|
9737
|
-
},
|
|
9738
|
+
}, Zs = (e = {}) => !$t(e) || Ee(e) ? [] : Qt(e), On = (e = []) => !la(e) || Ee(e) ? [] : Be(e, "platform"), Ks = (e = []) => !la(e) || Ee(e) ? [] : Be(e, "gameTypeName"), qs = (e = []) => !la(e) || Ee(e) ? [] : Be(e, "game_subtype"), $s = (e = {}) => !$t(e) || Ee(e) ? [] : Qt(e), Qs = (e = [], n = []) => !la(e) || Ee(e) ? {} : !la(n) || Ee(n) ? {} : e.reduce((t, l) => {
|
|
9738
9739
|
const p = n.map((g) => g.game_subtype);
|
|
9739
9740
|
return p.forEach((g) => {
|
|
9740
9741
|
t[g] = t[g] || [];
|
|
9741
9742
|
}), p.includes(l.game_subtype) && t[l.game_subtype].push(l), t;
|
|
9742
|
-
}, {}),
|
|
9743
|
+
}, {}), js = ({
|
|
9743
9744
|
gameTypes: e = [],
|
|
9744
9745
|
platforms: n = [],
|
|
9745
9746
|
gameList: t = {},
|
|
9746
9747
|
allGameTypes: l = [],
|
|
9747
9748
|
allPlatforms: p = []
|
|
9748
9749
|
}) => !la(e) || !la(n) ? {} : Ee(t) ? {} : e.reduce((g, b) => {
|
|
9749
|
-
const d =
|
|
9750
|
+
const d = Xl({
|
|
9750
9751
|
gameTypeName: b,
|
|
9751
9752
|
platforms: n,
|
|
9752
9753
|
gameList: t,
|
|
@@ -9754,7 +9755,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9754
9755
|
allPlatforms: p
|
|
9755
9756
|
});
|
|
9756
9757
|
return Ee(d) || (g[b] = d), g;
|
|
9757
|
-
}, {}),
|
|
9758
|
+
}, {}), bu = ({
|
|
9758
9759
|
types: e = [],
|
|
9759
9760
|
platforms: n = [],
|
|
9760
9761
|
allGameType: t = [],
|
|
@@ -9764,7 +9765,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9764
9765
|
const d = Qn(t, b);
|
|
9765
9766
|
if (!d) return g;
|
|
9766
9767
|
const r = p[d] || [], a = n.reduce((i, o) => {
|
|
9767
|
-
const s =
|
|
9768
|
+
const s = er({
|
|
9768
9769
|
platformName: o,
|
|
9769
9770
|
gamesOfType: r,
|
|
9770
9771
|
allPlatforms: l
|
|
@@ -9772,9 +9773,9 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9772
9773
|
return Ee(s) ? i : { ...i, [o]: s };
|
|
9773
9774
|
}, {});
|
|
9774
9775
|
return Ee(a) || (g[b] = a), g;
|
|
9775
|
-
}, {}),
|
|
9776
|
+
}, {}), Ys = (e = {}) => !$t(e) || Ee(e) ? {} : Object.values(e).reduce((t, l) => (Object.entries(l).forEach(([p, g]) => {
|
|
9776
9777
|
t[p] ? t[p] = [...t[p], ...g] : t[p] = g;
|
|
9777
|
-
}), t), {}),
|
|
9778
|
+
}), t), {}), Xs = (e = {}) => {
|
|
9778
9779
|
if (!$t(e) || Ee(e)) return {};
|
|
9779
9780
|
const n = {};
|
|
9780
9781
|
for (const [t, l] of Object.entries(e)) {
|
|
@@ -9785,7 +9786,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9785
9786
|
}
|
|
9786
9787
|
}
|
|
9787
9788
|
return n;
|
|
9788
|
-
},
|
|
9789
|
+
}, em = ({
|
|
9789
9790
|
allGameList: e = {},
|
|
9790
9791
|
allGamePlatform: n = [],
|
|
9791
9792
|
allGameType: t = [],
|
|
@@ -9798,7 +9799,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9798
9799
|
highlightGames: a = [],
|
|
9799
9800
|
originPlatform: i = []
|
|
9800
9801
|
}) => {
|
|
9801
|
-
const o =
|
|
9802
|
+
const o = Zs(e), s = On(n), u = Ks(t), m = qs(l), c = On(i), f = $s(d), y = js({
|
|
9802
9803
|
gameTypes: u,
|
|
9803
9804
|
platforms: s,
|
|
9804
9805
|
gameList: e,
|
|
@@ -9810,9 +9811,9 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9810
9811
|
...G,
|
|
9811
9812
|
platformImageUrl: O
|
|
9812
9813
|
};
|
|
9813
|
-
}), U =
|
|
9814
|
+
}), U = Qs(o, l), C = Ys(y), v = Xs(C), D = zn(y).reduce(
|
|
9814
9815
|
(G, [O, k]) => {
|
|
9815
|
-
const h = Qt(
|
|
9816
|
+
const h = Qt(Jl(k));
|
|
9816
9817
|
return G[O] = h, G;
|
|
9817
9818
|
},
|
|
9818
9819
|
{}
|
|
@@ -9853,12 +9854,12 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9853
9854
|
favorite: f
|
|
9854
9855
|
}
|
|
9855
9856
|
};
|
|
9856
|
-
},
|
|
9857
|
+
}, Cu = (e = []) => !la(e) || Ee(e) ? [] : Qt(e, (n) => Ee(n.SubPlatformEnum) ? n : n.SubPlatformEnum.map((t) => ({
|
|
9857
9858
|
...n,
|
|
9858
9859
|
...t,
|
|
9859
9860
|
platform: t.SubPlatformEnum,
|
|
9860
9861
|
platformEnum: t.SubPlatformEnum
|
|
9861
|
-
}))),
|
|
9862
|
+
}))), am = {
|
|
9862
9863
|
platform: { all: [], origin: [], originPlatform: [], byGameType: {} },
|
|
9863
9864
|
type: { main: [], sub: [], originMain: [], originSub: [] },
|
|
9864
9865
|
gameList: {
|
|
@@ -9878,7 +9879,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9878
9879
|
byGameType: {}
|
|
9879
9880
|
},
|
|
9880
9881
|
user: { favorite: [] }
|
|
9881
|
-
},
|
|
9882
|
+
}, tm = ({ enabled: e = !0 } = {}) => {
|
|
9882
9883
|
const { getToken: n } = se(), { userFavoriteGameApi: t, userGameListApi: l } = oe(), { data: p, isLoading: g, error: b, refetch: d } = j({
|
|
9883
9884
|
queryKey: ["gamesInfo"],
|
|
9884
9885
|
queryFn: async () => {
|
|
@@ -9888,7 +9889,7 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9888
9889
|
} catch (i) {
|
|
9889
9890
|
console.warn("Failed to fetch favorite games:", i);
|
|
9890
9891
|
}
|
|
9891
|
-
return
|
|
9892
|
+
return em({
|
|
9892
9893
|
allGameList: a.gameTypeGroup || window.gameTypeGroup || {},
|
|
9893
9894
|
allGamePlatform: a.platforms || window.platforms || [],
|
|
9894
9895
|
allGameType: a.gameType || window.gameType || [],
|
|
@@ -9911,12 +9912,12 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
9911
9912
|
refetchOnWindowFocus: !1
|
|
9912
9913
|
});
|
|
9913
9914
|
return {
|
|
9914
|
-
gamesInfo: p ||
|
|
9915
|
+
gamesInfo: p || am,
|
|
9915
9916
|
isLoading: g,
|
|
9916
9917
|
error: b,
|
|
9917
9918
|
refetch: d
|
|
9918
9919
|
};
|
|
9919
|
-
},
|
|
9920
|
+
}, im = (e = !1) => {
|
|
9920
9921
|
if (!e && window.gameTypeGroup) {
|
|
9921
9922
|
console.log("window.gameTypeGroup 已存在,跳過初始化 mock 資料");
|
|
9922
9923
|
return;
|
|
@@ -36443,18 +36444,18 @@ const Qm = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => gs({
|
|
|
36443
36444
|
is_invalid_bet: 0
|
|
36444
36445
|
}
|
|
36445
36446
|
});
|
|
36446
|
-
},
|
|
36447
|
+
}, nm = ({
|
|
36447
36448
|
children: e,
|
|
36448
36449
|
autoFetch: n = !1,
|
|
36449
36450
|
mockData: t = !1
|
|
36450
36451
|
}) => {
|
|
36451
36452
|
ge(() => {
|
|
36452
|
-
t &&
|
|
36453
|
+
t && im(!0);
|
|
36453
36454
|
}, [t]);
|
|
36454
|
-
const l =
|
|
36455
|
+
const l = tm({ enabled: n });
|
|
36455
36456
|
return /* @__PURE__ */ Fe.jsx($n.Provider, { value: l, children: e });
|
|
36456
36457
|
};
|
|
36457
|
-
function
|
|
36458
|
+
function vu({
|
|
36458
36459
|
children: e,
|
|
36459
36460
|
autoFetchGamesInfo: n = !1,
|
|
36460
36461
|
useMockData: t = !1,
|
|
@@ -36475,8 +36476,8 @@ function Cu({
|
|
|
36475
36476
|
}),
|
|
36476
36477
|
[]
|
|
36477
36478
|
), r = l || d;
|
|
36478
|
-
return /* @__PURE__ */ Fe.jsx(Bl, { client: r, children: /* @__PURE__ */ Fe.jsx(In.Provider, { value: { client: g, formDataClient: b, ...p }, children: /* @__PURE__ */ Fe.jsx(
|
|
36479
|
-
|
|
36479
|
+
return /* @__PURE__ */ Fe.jsx(Bl, { client: r, children: /* @__PURE__ */ Fe.jsx(In.Provider, { value: { client: g, formDataClient: b, ...p }, children: /* @__PURE__ */ Fe.jsx(jl, { children: /* @__PURE__ */ Fe.jsx(
|
|
36480
|
+
nm,
|
|
36480
36481
|
{
|
|
36481
36482
|
autoFetch: n,
|
|
36482
36483
|
mockData: t,
|
|
@@ -36484,9 +36485,9 @@ function Cu({
|
|
|
36484
36485
|
}
|
|
36485
36486
|
) }) }) });
|
|
36486
36487
|
}
|
|
36487
|
-
const
|
|
36488
|
+
const hu = ({ onFunction: e = () => {
|
|
36488
36489
|
}, buttonProps: n = {} } = {}) => {
|
|
36489
|
-
const { lineConfig: t } = se(), l = ee(!1), p =
|
|
36490
|
+
const { lineConfig: t } = se(), l = ee(!1), p = le(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({
|
|
36490
36491
|
options: {
|
|
36491
36492
|
onSuccess: (m) => {
|
|
36492
36493
|
e(m);
|
|
@@ -36524,7 +36525,7 @@ const vu = ({ onFunction: e = () => {
|
|
|
36524
36525
|
}
|
|
36525
36526
|
) : null;
|
|
36526
36527
|
};
|
|
36527
|
-
var
|
|
36528
|
+
var lm = Object.defineProperty, Kt = Object.getOwnPropertySymbols, Tl = Object.prototype.hasOwnProperty, kl = Object.prototype.propertyIsEnumerable, Bn = (e, n, t) => n in e ? lm(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, gi = (e, n) => {
|
|
36528
36529
|
for (var t in n || (n = {}))
|
|
36529
36530
|
Tl.call(n, t) && Bn(e, t, n[t]);
|
|
36530
36531
|
if (Kt)
|
|
@@ -37076,12 +37077,12 @@ var ka;
|
|
|
37076
37077
|
})(e.QrSegment || (e.QrSegment = {}));
|
|
37077
37078
|
})(ka || (ka = {}));
|
|
37078
37079
|
var Aa = ka;
|
|
37079
|
-
var
|
|
37080
|
+
var rm = {
|
|
37080
37081
|
L: Aa.QrCode.Ecc.LOW,
|
|
37081
37082
|
M: Aa.QrCode.Ecc.MEDIUM,
|
|
37082
37083
|
Q: Aa.QrCode.Ecc.QUARTILE,
|
|
37083
37084
|
H: Aa.QrCode.Ecc.HIGH
|
|
37084
|
-
}, xl = 128, Sl = "L", Dl = "#FFFFFF", El = "#000000", Nl = !1, Ll = 1,
|
|
37085
|
+
}, xl = 128, Sl = "L", Dl = "#FFFFFF", El = "#000000", Nl = !1, Ll = 1, om = 4, sm = 0, mm = 0.1;
|
|
37085
37086
|
function Gl(e, n = 0) {
|
|
37086
37087
|
const t = [];
|
|
37087
37088
|
return e.forEach(function(l, p) {
|
|
@@ -37108,10 +37109,10 @@ function Gl(e, n = 0) {
|
|
|
37108
37109
|
function Ml(e, n) {
|
|
37109
37110
|
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));
|
|
37110
37111
|
}
|
|
37111
|
-
function
|
|
37112
|
+
function um(e, n, t, l) {
|
|
37112
37113
|
if (l == null)
|
|
37113
37114
|
return null;
|
|
37114
|
-
const p = e.length + t * 2, g = Math.floor(n *
|
|
37115
|
+
const p = e.length + t * 2, g = Math.floor(n * mm), 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;
|
|
37115
37116
|
let s = null;
|
|
37116
37117
|
if (l.excavate) {
|
|
37117
37118
|
let m = Math.floor(a), c = Math.floor(i), f = Math.ceil(d + a - m), y = Math.ceil(r + i - c);
|
|
@@ -37120,8 +37121,8 @@ function mm(e, n, t, l) {
|
|
|
37120
37121
|
const u = l.crossOrigin;
|
|
37121
37122
|
return { x: a, y: i, h: r, w: d, excavation: s, opacity: o, crossOrigin: u };
|
|
37122
37123
|
}
|
|
37123
|
-
function
|
|
37124
|
-
return n != null ? Math.max(Math.floor(n), 0) : e ?
|
|
37124
|
+
function pm(e, n) {
|
|
37125
|
+
return n != null ? Math.max(Math.floor(n), 0) : e ? om : sm;
|
|
37125
37126
|
}
|
|
37126
37127
|
function Rl({
|
|
37127
37128
|
value: e,
|
|
@@ -37137,7 +37138,7 @@ function Rl({
|
|
|
37137
37138
|
const m = (Array.isArray(e) ? e : [e]).reduce((c, f) => (c.push(...Aa.QrSegment.makeSegments(f)), c), []);
|
|
37138
37139
|
return Aa.QrCode.encodeSegments(
|
|
37139
37140
|
m,
|
|
37140
|
-
|
|
37141
|
+
rm[n],
|
|
37141
37142
|
t,
|
|
37142
37143
|
void 0,
|
|
37143
37144
|
void 0,
|
|
@@ -37146,7 +37147,7 @@ function Rl({
|
|
|
37146
37147
|
}, [e, n, t, d]);
|
|
37147
37148
|
const { cells: a, margin: i, numCells: o, calculatedImageSettings: s } = de.useMemo(() => {
|
|
37148
37149
|
let u = r.getModules();
|
|
37149
|
-
const m =
|
|
37150
|
+
const m = pm(l, p), c = u.length + m * 2, f = um(
|
|
37150
37151
|
u,
|
|
37151
37152
|
b,
|
|
37152
37153
|
m,
|
|
@@ -37167,14 +37168,14 @@ function Rl({
|
|
|
37167
37168
|
calculatedImageSettings: s
|
|
37168
37169
|
};
|
|
37169
37170
|
}
|
|
37170
|
-
var
|
|
37171
|
+
var gm = (function() {
|
|
37171
37172
|
try {
|
|
37172
37173
|
new Path2D().addPath(new Path2D());
|
|
37173
37174
|
} catch {
|
|
37174
37175
|
return !1;
|
|
37175
37176
|
}
|
|
37176
37177
|
return !0;
|
|
37177
|
-
})(),
|
|
37178
|
+
})(), dm = de.forwardRef(
|
|
37178
37179
|
function(n, t) {
|
|
37179
37180
|
const l = n, {
|
|
37180
37181
|
value: p,
|
|
@@ -37227,7 +37228,7 @@ var pm = (function() {
|
|
|
37227
37228
|
const W = window.devicePixelRatio || 1;
|
|
37228
37229
|
w.height = w.width = g * W;
|
|
37229
37230
|
const M = g / k * W;
|
|
37230
|
-
R.scale(M, M), R.fillStyle = d, R.fillRect(0, 0, k, k), R.fillStyle = r,
|
|
37231
|
+
R.scale(M, M), R.fillStyle = d, R.fillRect(0, 0, k, k), R.fillStyle = r, gm ? R.fill(new Path2D(Gl(P, G))) : O.forEach(function(S, x) {
|
|
37231
37232
|
S.forEach(function(L, N) {
|
|
37232
37233
|
L && R.fillRect(N + G, x + G, 1, 1);
|
|
37233
37234
|
});
|
|
@@ -37268,7 +37269,7 @@ var pm = (function() {
|
|
|
37268
37269
|
), A);
|
|
37269
37270
|
}
|
|
37270
37271
|
);
|
|
37271
|
-
|
|
37272
|
+
dm.displayName = "QRCodeCanvas";
|
|
37272
37273
|
var Pl = de.forwardRef(
|
|
37273
37274
|
function(n, t) {
|
|
37274
37275
|
const l = n, {
|
|
@@ -37347,7 +37348,7 @@ var Pl = de.forwardRef(
|
|
|
37347
37348
|
}
|
|
37348
37349
|
);
|
|
37349
37350
|
Pl.displayName = "QRCodeSVG";
|
|
37350
|
-
const
|
|
37351
|
+
const cm = {
|
|
37351
37352
|
position: "fixed",
|
|
37352
37353
|
top: 0,
|
|
37353
37354
|
left: 0,
|
|
@@ -37360,7 +37361,7 @@ const dm = {
|
|
|
37360
37361
|
justifyContent: "center",
|
|
37361
37362
|
zIndex: 1e4,
|
|
37362
37363
|
gap: "2em"
|
|
37363
|
-
},
|
|
37364
|
+
}, fm = {
|
|
37364
37365
|
position: "absolute",
|
|
37365
37366
|
top: "20px",
|
|
37366
37367
|
right: "20px",
|
|
@@ -37391,15 +37392,15 @@ const dm = {
|
|
|
37391
37392
|
title: "Silakan gunakan LINE untuk memindai Kode QR untuk masuk",
|
|
37392
37393
|
expired: "Kode QR telah kedaluwarsa"
|
|
37393
37394
|
}
|
|
37394
|
-
},
|
|
37395
|
-
const { lng: l, getToken: p, lineConfig: g } = se(), [b, d] = oi(300), [r, a] = oi(!1), i = ee(null), o =
|
|
37395
|
+
}, xu = ({ forcedShow: e = !1, isVisible: n, setIsVisible: t } = {}) => {
|
|
37396
|
+
const { lng: l, getToken: p, lineConfig: g } = se(), [b, d] = oi(300), [r, a] = oi(!1), i = ee(null), o = le(g, "liffId", ""), s = Qe(l), u = p?.(), c = new URLSearchParams(window.location.search).get("mac") || mi.get("machine_mac_address") || "", { data: f, isFetching: y } = Io({
|
|
37396
37397
|
formData: {
|
|
37397
37398
|
mac_address: c
|
|
37398
37399
|
},
|
|
37399
37400
|
options: {
|
|
37400
37401
|
enabled: e ? !0 : !!c && !u
|
|
37401
37402
|
}
|
|
37402
|
-
}), _ =
|
|
37403
|
+
}), _ = le(f, "liff_url", "") || `https://liff.line.me/${o}`;
|
|
37403
37404
|
ge(() => {
|
|
37404
37405
|
c && mi.set("machine_mac_address", c, { expires: 365 });
|
|
37405
37406
|
}, [c]), ge(() => (_ && (d(300), a(!1), i.current && clearInterval(i.current), i.current = setInterval(() => {
|
|
@@ -37413,11 +37414,11 @@ const dm = {
|
|
|
37413
37414
|
};
|
|
37414
37415
|
if (!e && (!c || u)) return null;
|
|
37415
37416
|
const C = Hn[s] || Hn.en_US;
|
|
37416
|
-
return n && /* @__PURE__ */ Fe.jsxs("div", { style:
|
|
37417
|
+
return n && /* @__PURE__ */ Fe.jsxs("div", { style: cm, children: [
|
|
37417
37418
|
/* @__PURE__ */ Fe.jsx(
|
|
37418
37419
|
"div",
|
|
37419
37420
|
{
|
|
37420
|
-
style:
|
|
37421
|
+
style: fm,
|
|
37421
37422
|
onClick: () => t(!1),
|
|
37422
37423
|
role: "button",
|
|
37423
37424
|
"aria-label": "Close",
|
|
@@ -37456,14 +37457,14 @@ const dm = {
|
|
|
37456
37457
|
)
|
|
37457
37458
|
] })
|
|
37458
37459
|
] });
|
|
37459
|
-
},
|
|
37460
|
+
}, Su = () => {
|
|
37460
37461
|
const e = fi(), {
|
|
37461
37462
|
mutate: n,
|
|
37462
37463
|
isPending: t,
|
|
37463
37464
|
isSuccess: l,
|
|
37464
37465
|
isError: p,
|
|
37465
37466
|
error: g
|
|
37466
|
-
} =
|
|
37467
|
+
} = Vo({
|
|
37467
37468
|
options: {
|
|
37468
37469
|
onSuccess: () => {
|
|
37469
37470
|
e.invalidateQueries({
|
|
@@ -37488,126 +37489,126 @@ const dm = {
|
|
|
37488
37489
|
};
|
|
37489
37490
|
export {
|
|
37490
37491
|
In as ApiCtx,
|
|
37491
|
-
|
|
37492
|
-
|
|
37492
|
+
vu as ApiProvider,
|
|
37493
|
+
Su as Bind,
|
|
37493
37494
|
$n as GamesInfoCtx,
|
|
37494
|
-
|
|
37495
|
-
|
|
37495
|
+
hu as LineLogin,
|
|
37496
|
+
xu as LineQrCode,
|
|
37496
37497
|
Ka as STATUS_TYPES,
|
|
37497
37498
|
Vn as StatusContext,
|
|
37498
|
-
|
|
37499
|
-
|
|
37500
|
-
|
|
37501
|
-
|
|
37502
|
-
|
|
37503
|
-
|
|
37499
|
+
jl as StatusProvider,
|
|
37500
|
+
js as buildMultiTypes,
|
|
37501
|
+
bu as buildMultiTypesWithSubTypes,
|
|
37502
|
+
er as buildSinglePlatformWithSubTypes,
|
|
37503
|
+
Xl as buildSingleType,
|
|
37504
|
+
Qs as categorizeGames,
|
|
37504
37505
|
Qe as convertLanguageCode,
|
|
37505
|
-
|
|
37506
|
-
|
|
37507
|
-
|
|
37506
|
+
hm as createLogoutHandler,
|
|
37507
|
+
qs as extractGameSubTypeNames,
|
|
37508
|
+
Ks as extractGameTypeNames,
|
|
37508
37509
|
On as extractPlatformNames,
|
|
37509
37510
|
Xn as filterGamesByPlatform,
|
|
37510
37511
|
Qn as findGameTypeUid,
|
|
37511
37512
|
jn as findPlatformUid,
|
|
37512
37513
|
Yn as findSubPlatform,
|
|
37513
|
-
|
|
37514
|
-
|
|
37515
|
-
|
|
37516
|
-
|
|
37517
|
-
|
|
37518
|
-
|
|
37519
|
-
|
|
37520
|
-
|
|
37521
|
-
|
|
37522
|
-
|
|
37523
|
-
|
|
37514
|
+
Zs as flattenAllGames,
|
|
37515
|
+
$s as flattenFavoriteGames,
|
|
37516
|
+
Tm as formatNumber,
|
|
37517
|
+
Ys as groupGamesByPlatform,
|
|
37518
|
+
Xs as groupGamesByPlatformAndSubType,
|
|
37519
|
+
Yl as groupGamesBySubType,
|
|
37520
|
+
Js as handleDarkImage,
|
|
37521
|
+
im as initMockWindowData,
|
|
37522
|
+
em as processGameInfo,
|
|
37523
|
+
Cu as processPlatformData,
|
|
37524
|
+
Lm as useAbandonPoint,
|
|
37524
37525
|
se as useApiContext,
|
|
37525
|
-
|
|
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
|
-
|
|
37526
|
+
Wm as useAvatarList,
|
|
37527
|
+
km as useBalanceGetter,
|
|
37528
|
+
Dm as useBet,
|
|
37529
|
+
Hm as useBetRankingData,
|
|
37530
|
+
yo as useBetRecord,
|
|
37531
|
+
Uo as useBetRecordDetail,
|
|
37532
|
+
Vo as useBindAccount,
|
|
37533
|
+
Ko as useCheckCurrentEventProgress,
|
|
37534
|
+
qo as useCheckEventStatus,
|
|
37535
|
+
Nm as useCheckPlayerWager,
|
|
37536
|
+
Vm as useClientWebSocket,
|
|
37537
|
+
As as useCurrentRebate,
|
|
37538
|
+
Cs as useDepositAction,
|
|
37539
|
+
hs as useDepositTransaction,
|
|
37540
|
+
Us as useDepositV1,
|
|
37541
|
+
bs as useDepositV2,
|
|
37542
|
+
nu as useDepositWalletLog,
|
|
37543
|
+
Km as useEvent,
|
|
37544
|
+
Zo as useEventList,
|
|
37545
|
+
Ts as useEventTransaction,
|
|
37546
|
+
ru as useEventWalletLog,
|
|
37547
|
+
zs as useExpiredRewardsList,
|
|
37548
|
+
yu as useGameConfig,
|
|
37549
|
+
vm as useGameInfoContext,
|
|
37550
|
+
tm as useGamesInfo,
|
|
37551
|
+
qm as useGetCarouseList,
|
|
37552
|
+
Io as useGetMachineLoginCode,
|
|
37553
|
+
$m as useGetMarquee,
|
|
37554
|
+
xm as useGetMemberInfo,
|
|
37555
|
+
Qm as useGetRankingGame,
|
|
37556
|
+
Is as useHistoryRewardsList,
|
|
37557
|
+
jm as useIdleTimeout,
|
|
37558
|
+
Ym as useInbox,
|
|
37559
|
+
fs as useInboxList,
|
|
37560
|
+
Sm as useInitializeWithToken,
|
|
37561
|
+
tu as useInvoiceAction,
|
|
37562
|
+
Bm as useJackpotData,
|
|
37562
37563
|
il as useLineLogin,
|
|
37563
|
-
|
|
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
|
-
|
|
37564
|
+
zo as useLineLogin2,
|
|
37565
|
+
Go as useLogin,
|
|
37566
|
+
Mo as useLogout,
|
|
37567
|
+
Gm as useMemberTransfer,
|
|
37568
|
+
Mm as useMobileLogin,
|
|
37569
|
+
Rm as useMobileLoginV2,
|
|
37570
|
+
Pm as useMobileRegister,
|
|
37571
|
+
eu as useNewsDetail,
|
|
37572
|
+
Xm as useNewsList,
|
|
37573
|
+
mu as usePayment,
|
|
37574
|
+
Uu as usePlatformConfig,
|
|
37575
|
+
uu as usePlayGame,
|
|
37576
|
+
Em as usePointTransfer,
|
|
37577
|
+
_s as useReadInbox,
|
|
37578
|
+
pu as useRebate,
|
|
37579
|
+
ou as useRebateWalletLog,
|
|
37580
|
+
Os as useReceiveRebate,
|
|
37581
|
+
au as useRedeemCodeDeposit,
|
|
37582
|
+
Jm as useRedeemEventReward,
|
|
37583
|
+
Hs as useRedeemReward,
|
|
37584
|
+
cu as useRedeemTreasure,
|
|
37585
|
+
Fo as useResetUserPassword,
|
|
37586
|
+
Oo as useResetUserTransactionPassword,
|
|
37587
|
+
gu as useRewards,
|
|
37588
|
+
Bs as useRewardsList,
|
|
37589
|
+
wm as useSendMobileVerifyCode,
|
|
37590
|
+
Ao as useSetUserTransactionPassword,
|
|
37591
|
+
Zm as useSettleEvent,
|
|
37592
|
+
Ro as useSignUp,
|
|
37592
37593
|
Jn as useStatus,
|
|
37593
|
-
|
|
37594
|
-
|
|
37595
|
-
|
|
37596
|
-
|
|
37597
|
-
|
|
37598
|
-
|
|
37599
|
-
|
|
37600
|
-
|
|
37601
|
-
|
|
37602
|
-
|
|
37603
|
-
|
|
37604
|
-
|
|
37605
|
-
|
|
37606
|
-
|
|
37607
|
-
|
|
37608
|
-
|
|
37609
|
-
|
|
37610
|
-
|
|
37611
|
-
|
|
37612
|
-
|
|
37594
|
+
Po as useToggleFavoriteGame,
|
|
37595
|
+
Wo as useTransferInGame,
|
|
37596
|
+
du as useTreasureList,
|
|
37597
|
+
su as useTreasureWalletLog,
|
|
37598
|
+
Ws as useUnUsedRewardsList,
|
|
37599
|
+
zm as useUpdateAvatar,
|
|
37600
|
+
iu as useUpdateInvoiceAction,
|
|
37601
|
+
wo as useUpdateUserInfo,
|
|
37602
|
+
Im as useUser,
|
|
37603
|
+
Ho as useUserBindCard,
|
|
37604
|
+
Bo as useUserRebate,
|
|
37605
|
+
Am as useVerifyDonationCode,
|
|
37606
|
+
Fm as useVerifyPhoneBar,
|
|
37607
|
+
Om as useVerifyResetAction,
|
|
37608
|
+
_u as useVip,
|
|
37609
|
+
fu as useVipInfo,
|
|
37610
|
+
Vs as useVipList,
|
|
37611
|
+
vs as useWithdrawAction,
|
|
37612
|
+
xs as useWithdrawTransaction,
|
|
37613
|
+
lu as useWithdrawWalletLog
|
|
37613
37614
|
};
|