@obb871001/api-integration-sdk 1.0.191 → 1.0.193
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 +4 -4
- package/dist/index.js +1069 -1068
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9,48 +9,48 @@ function zi(e) {
|
|
|
9
9
|
}
|
|
10
10
|
function al(e) {
|
|
11
11
|
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
12
|
-
var
|
|
13
|
-
if (typeof
|
|
14
|
-
var
|
|
15
|
-
var
|
|
12
|
+
var u = e.default;
|
|
13
|
+
if (typeof u == "function") {
|
|
14
|
+
var l = function i() {
|
|
15
|
+
var p = !1;
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
p = this instanceof i;
|
|
18
18
|
} catch {
|
|
19
19
|
}
|
|
20
|
-
return
|
|
20
|
+
return p ? Reflect.construct(u, arguments, this.constructor) : u.apply(this, arguments);
|
|
21
21
|
};
|
|
22
|
-
|
|
23
|
-
} else
|
|
24
|
-
return Object.defineProperty(
|
|
25
|
-
var
|
|
26
|
-
Object.defineProperty(
|
|
22
|
+
l.prototype = u.prototype;
|
|
23
|
+
} else l = {};
|
|
24
|
+
return Object.defineProperty(l, "__esModule", { value: !0 }), Object.keys(e).forEach(function(i) {
|
|
25
|
+
var p = Object.getOwnPropertyDescriptor(e, i);
|
|
26
|
+
Object.defineProperty(l, i, p.get ? p : {
|
|
27
27
|
enumerable: !0,
|
|
28
28
|
get: function() {
|
|
29
29
|
return e[i];
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
|
-
}),
|
|
32
|
+
}), l;
|
|
33
33
|
}
|
|
34
34
|
var Ra = { exports: {} }, ca = {};
|
|
35
35
|
var tt;
|
|
36
36
|
function il() {
|
|
37
37
|
if (tt) return ca;
|
|
38
38
|
tt = 1;
|
|
39
|
-
var e = va,
|
|
40
|
-
function C(c,
|
|
41
|
-
var t, m = {},
|
|
42
|
-
a !== void 0 && (
|
|
43
|
-
for (t in
|
|
44
|
-
if (c && c.defaultProps) for (t in
|
|
45
|
-
return { $$typeof:
|
|
39
|
+
var e = va, u = Symbol.for("react.element"), l = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, p = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
40
|
+
function C(c, g, a) {
|
|
41
|
+
var t, m = {}, n = null, r = null;
|
|
42
|
+
a !== void 0 && (n = "" + a), g.key !== void 0 && (n = "" + g.key), g.ref !== void 0 && (r = g.ref);
|
|
43
|
+
for (t in g) i.call(g, t) && !d.hasOwnProperty(t) && (m[t] = g[t]);
|
|
44
|
+
if (c && c.defaultProps) for (t in g = c.defaultProps, g) m[t] === void 0 && (m[t] = g[t]);
|
|
45
|
+
return { $$typeof: u, type: c, key: n, ref: r, props: m, _owner: p.current };
|
|
46
46
|
}
|
|
47
|
-
return ca.Fragment =
|
|
47
|
+
return ca.Fragment = l, ca.jsx = C, ca.jsxs = C, ca;
|
|
48
48
|
}
|
|
49
49
|
var _a = {};
|
|
50
50
|
var nt;
|
|
51
51
|
function tl() {
|
|
52
52
|
return nt || (nt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
53
|
-
var e = va,
|
|
53
|
+
var e = va, u = Symbol.for("react.element"), l = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), c = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), t = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), n = Symbol.for("react.lazy"), r = Symbol.for("react.offscreen"), o = Symbol.iterator, _ = "@@iterator";
|
|
54
54
|
function f(T) {
|
|
55
55
|
if (T === null || typeof T != "object")
|
|
56
56
|
return null;
|
|
@@ -78,7 +78,7 @@ function tl() {
|
|
|
78
78
|
var b = !1, v = !1, h = !1, x = !1, E = !1, O;
|
|
79
79
|
O = Symbol.for("react.module.reference");
|
|
80
80
|
function k(T) {
|
|
81
|
-
return !!(typeof T == "string" || typeof T == "function" || T === i || T === d || E || T ===
|
|
81
|
+
return !!(typeof T == "string" || typeof T == "function" || T === i || T === d || E || T === p || T === a || T === t || x || T === r || b || v || h || typeof T == "object" && T !== null && (T.$$typeof === n || T.$$typeof === m || T.$$typeof === C || T.$$typeof === c || T.$$typeof === g || // This needs to include all possible module reference object
|
|
82
82
|
// types supported by any Flight configuration anywhere since
|
|
83
83
|
// we don't know which Flight build this will end up being used
|
|
84
84
|
// with.
|
|
@@ -104,11 +104,11 @@ function tl() {
|
|
|
104
104
|
switch (T) {
|
|
105
105
|
case i:
|
|
106
106
|
return "Fragment";
|
|
107
|
-
case
|
|
107
|
+
case l:
|
|
108
108
|
return "Portal";
|
|
109
109
|
case d:
|
|
110
110
|
return "Profiler";
|
|
111
|
-
case
|
|
111
|
+
case p:
|
|
112
112
|
return "StrictMode";
|
|
113
113
|
case a:
|
|
114
114
|
return "Suspense";
|
|
@@ -123,12 +123,12 @@ function tl() {
|
|
|
123
123
|
case C:
|
|
124
124
|
var V = T;
|
|
125
125
|
return P(V._context) + ".Provider";
|
|
126
|
-
case
|
|
126
|
+
case g:
|
|
127
127
|
return S(T, T.render, "ForwardRef");
|
|
128
128
|
case m:
|
|
129
129
|
var J = T.displayName || null;
|
|
130
130
|
return J !== null ? J : G(T.type) || "Memo";
|
|
131
|
-
case
|
|
131
|
+
case n: {
|
|
132
132
|
var X = T, ee = X._payload, Q = X._init;
|
|
133
133
|
try {
|
|
134
134
|
return G(Q(ee));
|
|
@@ -313,11 +313,11 @@ function tl() {
|
|
|
313
313
|
}
|
|
314
314
|
if (typeof T == "object")
|
|
315
315
|
switch (T.$$typeof) {
|
|
316
|
-
case
|
|
316
|
+
case g:
|
|
317
317
|
return oe(T.render);
|
|
318
318
|
case m:
|
|
319
319
|
return Ge(T.type, B, V);
|
|
320
|
-
case
|
|
320
|
+
case n: {
|
|
321
321
|
var J = T, X = J._payload, ee = J._init;
|
|
322
322
|
try {
|
|
323
323
|
return Ge(ee(X), B, V);
|
|
@@ -428,7 +428,7 @@ function tl() {
|
|
|
428
428
|
var Ei = function(T, B, V, J, X, ee, Q) {
|
|
429
429
|
var j = {
|
|
430
430
|
// This tag allows us to uniquely identify this as a React Element
|
|
431
|
-
$$typeof:
|
|
431
|
+
$$typeof: u,
|
|
432
432
|
// Built-in properties that belong on the element
|
|
433
433
|
type: T,
|
|
434
434
|
key: B,
|
|
@@ -483,7 +483,7 @@ function tl() {
|
|
|
483
483
|
var ga;
|
|
484
484
|
ga = !1;
|
|
485
485
|
function na(T) {
|
|
486
|
-
return typeof T == "object" && T !== null && T.$$typeof ===
|
|
486
|
+
return typeof T == "object" && T !== null && T.$$typeof === u;
|
|
487
487
|
}
|
|
488
488
|
function Sa() {
|
|
489
489
|
{
|
|
@@ -553,7 +553,7 @@ Check the top-level render call using <` + V + ">.");
|
|
|
553
553
|
var V;
|
|
554
554
|
if (typeof B == "function")
|
|
555
555
|
V = B.propTypes;
|
|
556
|
-
else if (typeof B == "object" && (B.$$typeof ===
|
|
556
|
+
else if (typeof B == "object" && (B.$$typeof === g || // Note: Memo only checks outer props here.
|
|
557
557
|
// Inner props are checked in the reconciler.
|
|
558
558
|
B.$$typeof === m))
|
|
559
559
|
V = B.propTypes;
|
|
@@ -592,7 +592,7 @@ Check the top-level render call using <` + V + ">.");
|
|
|
592
592
|
var _e = Li();
|
|
593
593
|
_e ? j += _e : j += Sa();
|
|
594
594
|
var ne;
|
|
595
|
-
T === null ? ne = "null" : pe(T) ? ne = "array" : T !== void 0 && T.$$typeof ===
|
|
595
|
+
T === null ? ne = "null" : pe(T) ? ne = "array" : T !== void 0 && T.$$typeof === u ? (ne = "<" + (G(T.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : ne = typeof T, s("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ne, j);
|
|
596
596
|
}
|
|
597
597
|
var le = Ni(T, B, V, X, ee);
|
|
598
598
|
if (le == null)
|
|
@@ -650,32 +650,33 @@ const bn = _n(null), re = () => {
|
|
|
650
650
|
};
|
|
651
651
|
function rt({
|
|
652
652
|
baseURL: e,
|
|
653
|
-
getToken:
|
|
654
|
-
timeoutMs:
|
|
653
|
+
getToken: u,
|
|
654
|
+
timeoutMs: l = 15e3,
|
|
655
655
|
lng: i = "tw",
|
|
656
|
-
store:
|
|
656
|
+
store: p,
|
|
657
657
|
onError: d,
|
|
658
658
|
formData: C = !1,
|
|
659
|
-
currency: c
|
|
659
|
+
currency: c,
|
|
660
|
+
toasterOpen: g = !1
|
|
660
661
|
} = {}) {
|
|
661
|
-
const
|
|
662
|
+
const a = Qn.create({
|
|
662
663
|
baseURL: e,
|
|
663
|
-
timeout:
|
|
664
|
+
timeout: l,
|
|
664
665
|
headers: {
|
|
665
666
|
"Content-Type": C ? "multipart/form-data" : "application/json"
|
|
666
667
|
}
|
|
667
668
|
});
|
|
668
|
-
return
|
|
669
|
-
if (
|
|
670
|
-
const
|
|
671
|
-
|
|
669
|
+
return a.interceptors.request.use(async (t) => {
|
|
670
|
+
if (t.headers = t.headers || {}, u) {
|
|
671
|
+
const n = await u();
|
|
672
|
+
n && (t.headers.Authorization = `Bearer ${n}`);
|
|
672
673
|
}
|
|
673
|
-
const
|
|
674
|
-
return
|
|
675
|
-
}),
|
|
676
|
-
(
|
|
677
|
-
(
|
|
678
|
-
),
|
|
674
|
+
const m = p?.getState()?.isWalletCurrency || c || "TWD";
|
|
675
|
+
return t.headers.Currency = m, t.headers["currency-code"] = m, t.headers.lang = i, t;
|
|
676
|
+
}), a.interceptors.response.use(
|
|
677
|
+
(t) => t.data,
|
|
678
|
+
(t) => (console.log(t), d ? d(t, { instance: a }) : Promise.reject(t))
|
|
679
|
+
), a;
|
|
679
680
|
}
|
|
680
681
|
const Cn = _n(null), Vo = () => {
|
|
681
682
|
const e = fn(Cn);
|
|
@@ -704,131 +705,131 @@ const Cn = _n(null), Vo = () => {
|
|
|
704
705
|
return e;
|
|
705
706
|
}
|
|
706
707
|
}, Zo = () => {
|
|
707
|
-
const e = (i,
|
|
708
|
+
const e = (i, p) => !i && !p, u = (i) => i.startsWith("pc.");
|
|
708
709
|
return {
|
|
709
710
|
executeLogout: ({
|
|
710
711
|
isCallBackInvalid: i = !1,
|
|
711
|
-
hostname:
|
|
712
|
+
hostname: p = "",
|
|
712
713
|
shouldRedirect: d,
|
|
713
714
|
onShowError: C,
|
|
714
715
|
onCleanup: c,
|
|
715
|
-
onRemoveToken:
|
|
716
|
+
onRemoveToken: g,
|
|
716
717
|
onRedirect: a,
|
|
717
718
|
onGoogleLogout: t
|
|
718
719
|
}) => {
|
|
719
|
-
const m = p
|
|
720
|
-
e(i, m) && C?.(), c?.(),
|
|
720
|
+
const m = u(p);
|
|
721
|
+
e(i, m) && C?.(), c?.(), g?.(), d && a?.("/"), t?.();
|
|
721
722
|
},
|
|
722
723
|
shouldShowErrorNotice: e,
|
|
723
|
-
isMachineDomain:
|
|
724
|
+
isMachineDomain: u
|
|
724
725
|
};
|
|
725
726
|
}, Jo = (e) => {
|
|
726
|
-
let
|
|
727
|
-
return isNaN(
|
|
727
|
+
let u = Number(e);
|
|
728
|
+
return isNaN(u) ? e : new Intl.NumberFormat("en-US", {
|
|
728
729
|
style: "decimal",
|
|
729
730
|
minimumFractionDigits: 2,
|
|
730
731
|
maximumFractionDigits: 2
|
|
731
|
-
}).format(
|
|
732
|
-
}, vn = (e = [],
|
|
733
|
-
const i =
|
|
734
|
-
return
|
|
732
|
+
}).format(u);
|
|
733
|
+
}, vn = (e = [], u) => Oe(e, { gameTypeName: u })?.gameTypeUid, Tn = (e = [], u) => Oe(e, { platform: u })?.platformUid, hn = (e = [], u) => Oe(e, { SubPlatformEnum: u }), kn = (e = [], u, l) => me(e) ? [] : e.filter((i) => l ? String(i?.SubPlatformEnumUid) === String(l?.SubPlatformEnumUid) : String(i.platformUid) === String(u)), ll = (e = []) => me(e) ? {} : e.reduce((u, l) => {
|
|
734
|
+
const i = l?.game_subtype || "UNKNOWN";
|
|
735
|
+
return u[i] || (u[i] = []), u[i].push(l), u;
|
|
735
736
|
}, {}), rl = ({
|
|
736
737
|
gameTypeName: e,
|
|
737
|
-
platforms:
|
|
738
|
-
gameList:
|
|
738
|
+
platforms: u,
|
|
739
|
+
gameList: l,
|
|
739
740
|
allGameTypes: i,
|
|
740
|
-
allPlatforms:
|
|
741
|
+
allPlatforms: p
|
|
741
742
|
}) => {
|
|
742
743
|
const d = vn(i, e);
|
|
743
|
-
return d ?
|
|
744
|
-
const
|
|
744
|
+
return d ? u.reduce((C, c) => {
|
|
745
|
+
const g = Tn(p, c), a = hn(p, c), t = l[d] || [], m = kn(
|
|
745
746
|
t,
|
|
746
|
-
|
|
747
|
+
g,
|
|
747
748
|
a
|
|
748
749
|
);
|
|
749
750
|
return me(m) || (C[c] = m), C;
|
|
750
751
|
}, {}) : {};
|
|
751
752
|
}, ol = ({
|
|
752
753
|
platformName: e,
|
|
753
|
-
gamesOfType:
|
|
754
|
-
allPlatforms:
|
|
754
|
+
gamesOfType: u = [],
|
|
755
|
+
allPlatforms: l = []
|
|
755
756
|
}) => {
|
|
756
|
-
const i = Tn(
|
|
757
|
-
|
|
757
|
+
const i = Tn(l, e), p = hn(l, e), d = kn(
|
|
758
|
+
u,
|
|
758
759
|
i,
|
|
759
|
-
|
|
760
|
+
p
|
|
760
761
|
);
|
|
761
762
|
return ll(d);
|
|
762
|
-
}, ml = (e = {}) => !Ti(e) || me(e) ? [] : hi(e), ot = (e = []) => !Ne(e) || me(e) ? [] : he(e, "platform"), sl = (e = []) => !Ne(e) || me(e) ? [] : he(e, "gameTypeName"), ul = (e = []) => !Ne(e) || me(e) ? [] : he(e, "game_subtype"), pl = (e = {}) => !Ti(e) || me(e) ? [] : hi(e), gl = (e = [],
|
|
763
|
-
const
|
|
764
|
-
return
|
|
765
|
-
|
|
766
|
-
}),
|
|
763
|
+
}, ml = (e = {}) => !Ti(e) || me(e) ? [] : hi(e), ot = (e = []) => !Ne(e) || me(e) ? [] : he(e, "platform"), sl = (e = []) => !Ne(e) || me(e) ? [] : he(e, "gameTypeName"), ul = (e = []) => !Ne(e) || me(e) ? [] : he(e, "game_subtype"), pl = (e = {}) => !Ti(e) || me(e) ? [] : hi(e), gl = (e = [], u = []) => !Ne(e) || me(e) ? {} : !Ne(u) || me(u) ? {} : e.reduce((l, i) => {
|
|
764
|
+
const p = u.map((d) => d.game_subtype);
|
|
765
|
+
return p.forEach((d) => {
|
|
766
|
+
l[d] = l[d] || [];
|
|
767
|
+
}), p.includes(i.game_subtype) && l[i.game_subtype].push(i), l;
|
|
767
768
|
}, {}), dl = ({
|
|
768
769
|
gameTypes: e = [],
|
|
769
|
-
platforms:
|
|
770
|
-
gameList:
|
|
770
|
+
platforms: u = [],
|
|
771
|
+
gameList: l = {},
|
|
771
772
|
allGameTypes: i = [],
|
|
772
|
-
allPlatforms:
|
|
773
|
-
}) => !Ne(e) || !Ne(
|
|
773
|
+
allPlatforms: p = []
|
|
774
|
+
}) => !Ne(e) || !Ne(u) ? {} : me(l) ? {} : e.reduce((d, C) => {
|
|
774
775
|
const c = rl({
|
|
775
776
|
gameTypeName: C,
|
|
776
|
-
platforms:
|
|
777
|
-
gameList:
|
|
777
|
+
platforms: u,
|
|
778
|
+
gameList: l,
|
|
778
779
|
allGameTypes: i,
|
|
779
|
-
allPlatforms:
|
|
780
|
+
allPlatforms: p
|
|
780
781
|
});
|
|
781
782
|
return me(c) || (d[C] = c), d;
|
|
782
783
|
}, {}), Io = ({
|
|
783
784
|
types: e = [],
|
|
784
|
-
platforms:
|
|
785
|
-
allGameType:
|
|
785
|
+
platforms: u = [],
|
|
786
|
+
allGameType: l = [],
|
|
786
787
|
allGamePlatform: i = [],
|
|
787
|
-
allGameList:
|
|
788
|
-
} = {}) => !Array.isArray(e) || !Array.isArray(
|
|
789
|
-
const c = vn(
|
|
788
|
+
allGameList: p = {}
|
|
789
|
+
} = {}) => !Array.isArray(e) || !Array.isArray(u) ? {} : e.reduce((d, C) => {
|
|
790
|
+
const c = vn(l, C);
|
|
790
791
|
if (!c) return d;
|
|
791
|
-
const
|
|
792
|
-
const
|
|
792
|
+
const g = p[c] || [], a = u.reduce((t, m) => {
|
|
793
|
+
const n = ol({
|
|
793
794
|
platformName: m,
|
|
794
|
-
gamesOfType:
|
|
795
|
+
gamesOfType: g,
|
|
795
796
|
allPlatforms: i
|
|
796
797
|
});
|
|
797
|
-
return me(
|
|
798
|
+
return me(n) ? t : { ...t, [m]: n };
|
|
798
799
|
}, {});
|
|
799
800
|
return me(a) || (d[C] = a), d;
|
|
800
|
-
}, {}), cl = (e = {}) => !Ti(e) || me(e) ? {} : Object.values(e).reduce((
|
|
801
|
-
|
|
802
|
-
}),
|
|
801
|
+
}, {}), cl = (e = {}) => !Ti(e) || me(e) ? {} : Object.values(e).reduce((l, i) => (Object.entries(i).forEach(([p, d]) => {
|
|
802
|
+
l[p] ? l[p] = [...l[p], ...d] : l[p] = d;
|
|
803
|
+
}), l), {}), _l = (e = {}) => {
|
|
803
804
|
if (!Ti(e) || me(e)) return {};
|
|
804
|
-
const
|
|
805
|
-
for (const [
|
|
806
|
-
|
|
807
|
-
for (const
|
|
808
|
-
const d =
|
|
809
|
-
|
|
805
|
+
const u = {};
|
|
806
|
+
for (const [l, i] of Object.entries(e)) {
|
|
807
|
+
u[l] = {};
|
|
808
|
+
for (const p of i) {
|
|
809
|
+
const d = p.game_subtype;
|
|
810
|
+
u[l][d] || (u[l][d] = []), u[l][d].push(p);
|
|
810
811
|
}
|
|
811
812
|
}
|
|
812
|
-
return
|
|
813
|
+
return u;
|
|
813
814
|
}, fl = ({
|
|
814
815
|
allGameList: e = {},
|
|
815
|
-
allGamePlatform:
|
|
816
|
-
allGameType:
|
|
816
|
+
allGamePlatform: u = [],
|
|
817
|
+
allGameType: l = [],
|
|
817
818
|
allGame_subtype: i = [],
|
|
818
|
-
allNewGameList:
|
|
819
|
+
allNewGameList: p = [],
|
|
819
820
|
allTopGameList: d = [],
|
|
820
821
|
randomlySelectedGames: C = [],
|
|
821
822
|
userFavoriteGame: c = {},
|
|
822
|
-
exclusiveBrandGames:
|
|
823
|
+
exclusiveBrandGames: g = [],
|
|
823
824
|
highlightGames: a = [],
|
|
824
825
|
originPlatform: t = []
|
|
825
826
|
}) => {
|
|
826
|
-
const m = ml(e),
|
|
827
|
+
const m = ml(e), n = ot(u), r = sl(l), o = ul(i), _ = ot(t), f = pl(c), y = dl({
|
|
827
828
|
gameTypes: r,
|
|
828
|
-
platforms:
|
|
829
|
+
platforms: n,
|
|
829
830
|
gameList: e,
|
|
830
|
-
allGameTypes:
|
|
831
|
-
allPlatforms:
|
|
831
|
+
allGameTypes: l,
|
|
832
|
+
allPlatforms: u
|
|
832
833
|
}), s = gl(m, i), U = cl(y), b = _l(U), v = yn(y).reduce(
|
|
833
834
|
(x, [E, O]) => {
|
|
834
835
|
const k = hi(Yn(O));
|
|
@@ -841,24 +842,24 @@ const Cn = _n(null), Vo = () => {
|
|
|
841
842
|
}, {});
|
|
842
843
|
return {
|
|
843
844
|
platform: {
|
|
844
|
-
all:
|
|
845
|
+
all: n,
|
|
845
846
|
origin: _,
|
|
846
|
-
originPlatform:
|
|
847
|
+
originPlatform: u,
|
|
847
848
|
byGameType: h
|
|
848
849
|
},
|
|
849
850
|
type: {
|
|
850
851
|
main: r,
|
|
851
852
|
sub: o,
|
|
852
|
-
originMain:
|
|
853
|
+
originMain: l,
|
|
853
854
|
originSub: i
|
|
854
855
|
},
|
|
855
856
|
gameList: {
|
|
856
857
|
all: m,
|
|
857
|
-
new:
|
|
858
|
+
new: p,
|
|
858
859
|
top: d,
|
|
859
860
|
favorite: f,
|
|
860
861
|
highlight: a,
|
|
861
|
-
exclusiveBrand:
|
|
862
|
+
exclusiveBrand: g,
|
|
862
863
|
randomlySelected: C
|
|
863
864
|
},
|
|
864
865
|
categorized: {
|
|
@@ -872,19 +873,19 @@ const Cn = _n(null), Vo = () => {
|
|
|
872
873
|
favorite: f
|
|
873
874
|
}
|
|
874
875
|
};
|
|
875
|
-
}, Ko = (e = []) => !Ne(e) || me(e) ? [] : hi(e, (
|
|
876
|
-
...
|
|
877
|
-
...
|
|
878
|
-
platform:
|
|
879
|
-
platformEnum:
|
|
876
|
+
}, Ko = (e = []) => !Ne(e) || me(e) ? [] : hi(e, (u) => me(u.SubPlatformEnum) ? u : u.SubPlatformEnum.map((l) => ({
|
|
877
|
+
...u,
|
|
878
|
+
...l,
|
|
879
|
+
platform: l.SubPlatformEnum,
|
|
880
|
+
platformEnum: l.SubPlatformEnum
|
|
880
881
|
})));
|
|
881
882
|
var Aa = { exports: {} }, Ul = Aa.exports, mt;
|
|
882
883
|
function yl() {
|
|
883
|
-
return mt || (mt = 1, (function(e,
|
|
884
|
-
(function(
|
|
884
|
+
return mt || (mt = 1, (function(e, u) {
|
|
885
|
+
(function(l, i) {
|
|
885
886
|
e.exports = i();
|
|
886
887
|
})(Ul, (function() {
|
|
887
|
-
var
|
|
888
|
+
var l = 1e3, i = 6e4, p = 36e5, d = "millisecond", C = "second", c = "minute", g = "hour", a = "day", t = "week", m = "month", n = "quarter", r = "year", o = "date", _ = "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, s = { 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) {
|
|
888
889
|
var L = ["th", "st", "nd", "rd"], M = w % 100;
|
|
889
890
|
return "[" + w + (L[(M - 20) % 10] || L[M] || L[0]) + "]";
|
|
890
891
|
} }, U = function(w, L, M) {
|
|
@@ -900,7 +901,7 @@ function yl() {
|
|
|
900
901
|
}, a: function(w) {
|
|
901
902
|
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
|
902
903
|
}, p: function(w) {
|
|
903
|
-
return { M: m, y: r, w: t, d: a, D: o, h:
|
|
904
|
+
return { M: m, y: r, w: t, d: a, D: o, h: g, m: c, s: C, ms: d, Q: n }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
|
904
905
|
}, u: function(w) {
|
|
905
906
|
return w === void 0;
|
|
906
907
|
} }, v = "en", h = {};
|
|
@@ -986,7 +987,7 @@ function yl() {
|
|
|
986
987
|
case a:
|
|
987
988
|
case o:
|
|
988
989
|
return R(K + "Hours", 0);
|
|
989
|
-
case
|
|
990
|
+
case g:
|
|
990
991
|
return R(K + "Minutes", 1);
|
|
991
992
|
case c:
|
|
992
993
|
return R(K + "Seconds", 2);
|
|
@@ -998,7 +999,7 @@ function yl() {
|
|
|
998
999
|
}, L.endOf = function(M) {
|
|
999
1000
|
return this.startOf(M, !1);
|
|
1000
1001
|
}, L.$set = function(M, W) {
|
|
1001
|
-
var A, H = S.p(M), z = "set" + (this.$u ? "UTC" : ""), D = (A = {}, A[a] = z + "Date", A[o] = z + "Date", A[m] = z + "Month", A[r] = z + "FullYear", A[
|
|
1002
|
+
var A, H = S.p(M), z = "set" + (this.$u ? "UTC" : ""), D = (A = {}, A[a] = z + "Date", A[o] = z + "Date", A[m] = z + "Month", A[r] = z + "FullYear", A[g] = z + "Hours", A[c] = z + "Minutes", A[C] = z + "Seconds", A[d] = z + "Milliseconds", A)[H], R = H === a ? this.$D + (W - this.$W) : W;
|
|
1002
1003
|
if (H === m || H === r) {
|
|
1003
1004
|
var F = this.clone().set(o, 1);
|
|
1004
1005
|
F.$d[D](R), F.init(), this.$d = F.set(o, Math.min(this.$D, F.daysInMonth())).$d;
|
|
@@ -1019,7 +1020,7 @@ function yl() {
|
|
|
1019
1020
|
if (z === r) return this.set(r, this.$y + M);
|
|
1020
1021
|
if (z === a) return D(1);
|
|
1021
1022
|
if (z === t) return D(7);
|
|
1022
|
-
var R = (A = {}, A[c] = i, A[
|
|
1023
|
+
var R = (A = {}, A[c] = i, A[g] = p, A[C] = l, A)[z] || 1, F = this.$d.getTime() + M * R;
|
|
1023
1024
|
return S.w(F, this);
|
|
1024
1025
|
}, L.subtract = function(M, W) {
|
|
1025
1026
|
return this.add(-1 * M, W);
|
|
@@ -1102,7 +1103,7 @@ function yl() {
|
|
|
1102
1103
|
case m:
|
|
1103
1104
|
H = I();
|
|
1104
1105
|
break;
|
|
1105
|
-
case
|
|
1106
|
+
case n:
|
|
1106
1107
|
H = I() / 3;
|
|
1107
1108
|
break;
|
|
1108
1109
|
case t:
|
|
@@ -1111,14 +1112,14 @@ function yl() {
|
|
|
1111
1112
|
case a:
|
|
1112
1113
|
H = (N - F) / 864e5;
|
|
1113
1114
|
break;
|
|
1114
|
-
case
|
|
1115
|
-
H = N /
|
|
1115
|
+
case g:
|
|
1116
|
+
H = N / p;
|
|
1116
1117
|
break;
|
|
1117
1118
|
case c:
|
|
1118
1119
|
H = N / i;
|
|
1119
1120
|
break;
|
|
1120
1121
|
case C:
|
|
1121
|
-
H = N /
|
|
1122
|
+
H = N / l;
|
|
1122
1123
|
break;
|
|
1123
1124
|
default:
|
|
1124
1125
|
H = N;
|
|
@@ -1144,7 +1145,7 @@ function yl() {
|
|
|
1144
1145
|
return this.$d.toUTCString();
|
|
1145
1146
|
}, w;
|
|
1146
1147
|
})(), G = P.prototype;
|
|
1147
|
-
return k.prototype = G, [["$ms", d], ["$s", C], ["$m", c], ["$H",
|
|
1148
|
+
return k.prototype = G, [["$ms", d], ["$s", C], ["$m", c], ["$H", g], ["$W", a], ["$M", m], ["$y", r], ["$D", o]].forEach((function(w) {
|
|
1148
1149
|
G[w[1]] = function(L) {
|
|
1149
1150
|
return this.$g(L, w[0], w[1]);
|
|
1150
1151
|
};
|
|
@@ -1169,11 +1170,11 @@ const vl = {}, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1169
1170
|
}, Symbol.toStringTag, { value: "Module" })), hl = /* @__PURE__ */ al(Tl);
|
|
1170
1171
|
var kl = Ha.exports, st;
|
|
1171
1172
|
function $() {
|
|
1172
|
-
return st || (st = 1, (function(e,
|
|
1173
|
-
(function(
|
|
1173
|
+
return st || (st = 1, (function(e, u) {
|
|
1174
|
+
(function(l, i) {
|
|
1174
1175
|
e.exports = i();
|
|
1175
1176
|
})(kl, function() {
|
|
1176
|
-
var
|
|
1177
|
+
var l = l || (function(i, p) {
|
|
1177
1178
|
var d;
|
|
1178
1179
|
if (typeof window < "u" && window.crypto && (d = window.crypto), typeof self < "u" && self.crypto && (d = self.crypto), typeof globalThis < "u" && globalThis.crypto && (d = globalThis.crypto), !d && typeof window < "u" && window.msCrypto && (d = window.msCrypto), !d && typeof Pi < "u" && Pi.crypto && (d = Pi.crypto), !d && typeof Cl == "function")
|
|
1179
1180
|
try {
|
|
@@ -1201,7 +1202,7 @@ function $() {
|
|
|
1201
1202
|
var b;
|
|
1202
1203
|
return s.prototype = U, b = new s(), s.prototype = null, b;
|
|
1203
1204
|
};
|
|
1204
|
-
})(),
|
|
1205
|
+
})(), g = {}, a = g.lib = {}, t = a.Base = /* @__PURE__ */ (function() {
|
|
1205
1206
|
return {
|
|
1206
1207
|
/**
|
|
1207
1208
|
* Creates a new object that inherits from this object.
|
|
@@ -1300,7 +1301,7 @@ function $() {
|
|
|
1300
1301
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
|
|
1301
1302
|
*/
|
|
1302
1303
|
init: function(s, U) {
|
|
1303
|
-
s = this.words = s || [], U !=
|
|
1304
|
+
s = this.words = s || [], U != p ? this.sigBytes = U : this.sigBytes = s.length * 4;
|
|
1304
1305
|
},
|
|
1305
1306
|
/**
|
|
1306
1307
|
* Converts this word array to a string.
|
|
@@ -1383,7 +1384,7 @@ function $() {
|
|
|
1383
1384
|
U.push(C());
|
|
1384
1385
|
return new m.init(U, s);
|
|
1385
1386
|
}
|
|
1386
|
-
}),
|
|
1387
|
+
}), n = g.enc = {}, r = n.Hex = {
|
|
1387
1388
|
/**
|
|
1388
1389
|
* Converts a word array to a hex string.
|
|
1389
1390
|
*
|
|
@@ -1422,7 +1423,7 @@ function $() {
|
|
|
1422
1423
|
b[v >>> 3] |= parseInt(s.substr(v, 2), 16) << 24 - v % 8 * 4;
|
|
1423
1424
|
return new m.init(b, U / 2);
|
|
1424
1425
|
}
|
|
1425
|
-
}, o =
|
|
1426
|
+
}, o = n.Latin1 = {
|
|
1426
1427
|
/**
|
|
1427
1428
|
* Converts a word array to a Latin1 string.
|
|
1428
1429
|
*
|
|
@@ -1461,7 +1462,7 @@ function $() {
|
|
|
1461
1462
|
b[v >>> 2] |= (s.charCodeAt(v) & 255) << 24 - v % 4 * 8;
|
|
1462
1463
|
return new m.init(b, U);
|
|
1463
1464
|
}
|
|
1464
|
-
}, _ =
|
|
1465
|
+
}, _ = n.Utf8 = {
|
|
1465
1466
|
/**
|
|
1466
1467
|
* Converts a word array to a UTF-8 string.
|
|
1467
1468
|
*
|
|
@@ -1661,22 +1662,22 @@ function $() {
|
|
|
1661
1662
|
};
|
|
1662
1663
|
}
|
|
1663
1664
|
});
|
|
1664
|
-
var y =
|
|
1665
|
-
return
|
|
1665
|
+
var y = g.algo = {};
|
|
1666
|
+
return g;
|
|
1666
1667
|
})(Math);
|
|
1667
|
-
return
|
|
1668
|
+
return l;
|
|
1668
1669
|
});
|
|
1669
1670
|
})(Ha)), Ha.exports;
|
|
1670
1671
|
}
|
|
1671
1672
|
var Wa = { exports: {} }, xl = Wa.exports, ut;
|
|
1672
1673
|
function ki() {
|
|
1673
|
-
return ut || (ut = 1, (function(e,
|
|
1674
|
-
(function(
|
|
1674
|
+
return ut || (ut = 1, (function(e, u) {
|
|
1675
|
+
(function(l, i) {
|
|
1675
1676
|
e.exports = i($());
|
|
1676
|
-
})(xl, function(
|
|
1677
|
+
})(xl, function(l) {
|
|
1677
1678
|
return (function(i) {
|
|
1678
|
-
var
|
|
1679
|
-
|
|
1679
|
+
var p = l, d = p.lib, C = d.Base, c = d.WordArray, g = p.x64 = {};
|
|
1680
|
+
g.Word = C.extend({
|
|
1680
1681
|
/**
|
|
1681
1682
|
* Initializes a newly created 64-bit word.
|
|
1682
1683
|
*
|
|
@@ -1839,7 +1840,7 @@ function ki() {
|
|
|
1839
1840
|
// var high = (this.high + word.high + carry) | 0;
|
|
1840
1841
|
// return X64Word.create(high, low);
|
|
1841
1842
|
// }
|
|
1842
|
-
}),
|
|
1843
|
+
}), g.WordArray = C.extend({
|
|
1843
1844
|
/**
|
|
1844
1845
|
* Initializes a newly created word array.
|
|
1845
1846
|
*
|
|
@@ -1873,8 +1874,8 @@ function ki() {
|
|
|
1873
1874
|
* var x32WordArray = x64WordArray.toX32();
|
|
1874
1875
|
*/
|
|
1875
1876
|
toX32: function() {
|
|
1876
|
-
for (var a = this.words, t = a.length, m = [],
|
|
1877
|
-
var r = a[
|
|
1877
|
+
for (var a = this.words, t = a.length, m = [], n = 0; n < t; n++) {
|
|
1878
|
+
var r = a[n];
|
|
1878
1879
|
m.push(r.high), m.push(r.low);
|
|
1879
1880
|
}
|
|
1880
1881
|
return c.create(m, this.sigBytes);
|
|
@@ -1889,45 +1890,45 @@ function ki() {
|
|
|
1889
1890
|
* var clone = x64WordArray.clone();
|
|
1890
1891
|
*/
|
|
1891
1892
|
clone: function() {
|
|
1892
|
-
for (var a = C.clone.call(this), t = a.words = this.words.slice(0), m = t.length,
|
|
1893
|
-
t[
|
|
1893
|
+
for (var a = C.clone.call(this), t = a.words = this.words.slice(0), m = t.length, n = 0; n < m; n++)
|
|
1894
|
+
t[n] = t[n].clone();
|
|
1894
1895
|
return a;
|
|
1895
1896
|
}
|
|
1896
1897
|
});
|
|
1897
|
-
})(),
|
|
1898
|
+
})(), l;
|
|
1898
1899
|
});
|
|
1899
1900
|
})(Wa)), Wa.exports;
|
|
1900
1901
|
}
|
|
1901
1902
|
var za = { exports: {} }, Sl = za.exports, pt;
|
|
1902
1903
|
function Dl() {
|
|
1903
|
-
return pt || (pt = 1, (function(e,
|
|
1904
|
-
(function(
|
|
1904
|
+
return pt || (pt = 1, (function(e, u) {
|
|
1905
|
+
(function(l, i) {
|
|
1905
1906
|
e.exports = i($());
|
|
1906
|
-
})(Sl, function(
|
|
1907
|
+
})(Sl, function(l) {
|
|
1907
1908
|
return (function() {
|
|
1908
1909
|
if (typeof ArrayBuffer == "function") {
|
|
1909
|
-
var i =
|
|
1910
|
-
if (
|
|
1911
|
-
for (var a =
|
|
1912
|
-
t[m >>> 2] |=
|
|
1910
|
+
var i = l, p = i.lib, d = p.WordArray, C = d.init, c = d.init = function(g) {
|
|
1911
|
+
if (g instanceof ArrayBuffer && (g = new Uint8Array(g)), (g instanceof Int8Array || typeof Uint8ClampedArray < "u" && g instanceof Uint8ClampedArray || g instanceof Int16Array || g instanceof Uint16Array || g instanceof Int32Array || g instanceof Uint32Array || g instanceof Float32Array || g instanceof Float64Array) && (g = new Uint8Array(g.buffer, g.byteOffset, g.byteLength)), g instanceof Uint8Array) {
|
|
1912
|
+
for (var a = g.byteLength, t = [], m = 0; m < a; m++)
|
|
1913
|
+
t[m >>> 2] |= g[m] << 24 - m % 4 * 8;
|
|
1913
1914
|
C.call(this, t, a);
|
|
1914
1915
|
} else
|
|
1915
1916
|
C.apply(this, arguments);
|
|
1916
1917
|
};
|
|
1917
1918
|
c.prototype = d;
|
|
1918
1919
|
}
|
|
1919
|
-
})(),
|
|
1920
|
+
})(), l.lib.WordArray;
|
|
1920
1921
|
});
|
|
1921
1922
|
})(za)), za.exports;
|
|
1922
1923
|
}
|
|
1923
1924
|
var Va = { exports: {} }, El = Va.exports, gt;
|
|
1924
1925
|
function Nl() {
|
|
1925
|
-
return gt || (gt = 1, (function(e,
|
|
1926
|
-
(function(
|
|
1926
|
+
return gt || (gt = 1, (function(e, u) {
|
|
1927
|
+
(function(l, i) {
|
|
1927
1928
|
e.exports = i($());
|
|
1928
|
-
})(El, function(
|
|
1929
|
+
})(El, function(l) {
|
|
1929
1930
|
return (function() {
|
|
1930
|
-
var i =
|
|
1931
|
+
var i = l, p = i.lib, d = p.WordArray, C = i.enc;
|
|
1931
1932
|
C.Utf16 = C.Utf16BE = {
|
|
1932
1933
|
/**
|
|
1933
1934
|
* Converts a word array to a UTF-16 BE string.
|
|
@@ -1942,9 +1943,9 @@ function Nl() {
|
|
|
1942
1943
|
*
|
|
1943
1944
|
* var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
|
|
1944
1945
|
*/
|
|
1945
|
-
stringify: function(
|
|
1946
|
-
for (var a =
|
|
1947
|
-
var r = a[
|
|
1946
|
+
stringify: function(g) {
|
|
1947
|
+
for (var a = g.words, t = g.sigBytes, m = [], n = 0; n < t; n += 2) {
|
|
1948
|
+
var r = a[n >>> 2] >>> 16 - n % 4 * 8 & 65535;
|
|
1948
1949
|
m.push(String.fromCharCode(r));
|
|
1949
1950
|
}
|
|
1950
1951
|
return m.join("");
|
|
@@ -1962,9 +1963,9 @@ function Nl() {
|
|
|
1962
1963
|
*
|
|
1963
1964
|
* var wordArray = CryptoJS.enc.Utf16.parse(utf16String);
|
|
1964
1965
|
*/
|
|
1965
|
-
parse: function(
|
|
1966
|
-
for (var a =
|
|
1967
|
-
t[m >>> 1] |=
|
|
1966
|
+
parse: function(g) {
|
|
1967
|
+
for (var a = g.length, t = [], m = 0; m < a; m++)
|
|
1968
|
+
t[m >>> 1] |= g.charCodeAt(m) << 16 - m % 2 * 16;
|
|
1968
1969
|
return d.create(t, a * 2);
|
|
1969
1970
|
}
|
|
1970
1971
|
}, C.Utf16LE = {
|
|
@@ -1981,9 +1982,9 @@ function Nl() {
|
|
|
1981
1982
|
*
|
|
1982
1983
|
* var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
|
|
1983
1984
|
*/
|
|
1984
|
-
stringify: function(
|
|
1985
|
-
for (var a =
|
|
1986
|
-
var r = c(a[
|
|
1985
|
+
stringify: function(g) {
|
|
1986
|
+
for (var a = g.words, t = g.sigBytes, m = [], n = 0; n < t; n += 2) {
|
|
1987
|
+
var r = c(a[n >>> 2] >>> 16 - n % 4 * 8 & 65535);
|
|
1987
1988
|
m.push(String.fromCharCode(r));
|
|
1988
1989
|
}
|
|
1989
1990
|
return m.join("");
|
|
@@ -2001,27 +2002,27 @@ function Nl() {
|
|
|
2001
2002
|
*
|
|
2002
2003
|
* var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
|
|
2003
2004
|
*/
|
|
2004
|
-
parse: function(
|
|
2005
|
-
for (var a =
|
|
2006
|
-
t[m >>> 1] |= c(
|
|
2005
|
+
parse: function(g) {
|
|
2006
|
+
for (var a = g.length, t = [], m = 0; m < a; m++)
|
|
2007
|
+
t[m >>> 1] |= c(g.charCodeAt(m) << 16 - m % 2 * 16);
|
|
2007
2008
|
return d.create(t, a * 2);
|
|
2008
2009
|
}
|
|
2009
2010
|
};
|
|
2010
|
-
function c(
|
|
2011
|
-
return
|
|
2011
|
+
function c(g) {
|
|
2012
|
+
return g << 8 & 4278255360 | g >>> 8 & 16711935;
|
|
2012
2013
|
}
|
|
2013
|
-
})(),
|
|
2014
|
+
})(), l.enc.Utf16;
|
|
2014
2015
|
});
|
|
2015
2016
|
})(Va)), Va.exports;
|
|
2016
2017
|
}
|
|
2017
2018
|
var Za = { exports: {} }, Ll = Za.exports, dt;
|
|
2018
2019
|
function ea() {
|
|
2019
|
-
return dt || (dt = 1, (function(e,
|
|
2020
|
-
(function(
|
|
2020
|
+
return dt || (dt = 1, (function(e, u) {
|
|
2021
|
+
(function(l, i) {
|
|
2021
2022
|
e.exports = i($());
|
|
2022
|
-
})(Ll, function(
|
|
2023
|
+
})(Ll, function(l) {
|
|
2023
2024
|
return (function() {
|
|
2024
|
-
var i =
|
|
2025
|
+
var i = l, p = i.lib, d = p.WordArray, C = i.enc;
|
|
2025
2026
|
C.Base64 = {
|
|
2026
2027
|
/**
|
|
2027
2028
|
* Converts a word array to a Base64 string.
|
|
@@ -2036,17 +2037,17 @@ function ea() {
|
|
|
2036
2037
|
*
|
|
2037
2038
|
* var base64String = CryptoJS.enc.Base64.stringify(wordArray);
|
|
2038
2039
|
*/
|
|
2039
|
-
stringify: function(
|
|
2040
|
-
var a =
|
|
2041
|
-
|
|
2042
|
-
for (var
|
|
2040
|
+
stringify: function(g) {
|
|
2041
|
+
var a = g.words, t = g.sigBytes, m = this._map;
|
|
2042
|
+
g.clamp();
|
|
2043
|
+
for (var n = [], r = 0; r < t; r += 3)
|
|
2043
2044
|
for (var o = a[r >>> 2] >>> 24 - r % 4 * 8 & 255, _ = a[r + 1 >>> 2] >>> 24 - (r + 1) % 4 * 8 & 255, f = a[r + 2 >>> 2] >>> 24 - (r + 2) % 4 * 8 & 255, y = o << 16 | _ << 8 | f, s = 0; s < 4 && r + s * 0.75 < t; s++)
|
|
2044
|
-
|
|
2045
|
+
n.push(m.charAt(y >>> 6 * (3 - s) & 63));
|
|
2045
2046
|
var U = m.charAt(64);
|
|
2046
2047
|
if (U)
|
|
2047
|
-
for (;
|
|
2048
|
-
|
|
2049
|
-
return
|
|
2048
|
+
for (; n.length % 4; )
|
|
2049
|
+
n.push(U);
|
|
2050
|
+
return n.join("");
|
|
2050
2051
|
},
|
|
2051
2052
|
/**
|
|
2052
2053
|
* Converts a Base64 string to a word array.
|
|
@@ -2061,42 +2062,42 @@ function ea() {
|
|
|
2061
2062
|
*
|
|
2062
2063
|
* var wordArray = CryptoJS.enc.Base64.parse(base64String);
|
|
2063
2064
|
*/
|
|
2064
|
-
parse: function(
|
|
2065
|
-
var a =
|
|
2065
|
+
parse: function(g) {
|
|
2066
|
+
var a = g.length, t = this._map, m = this._reverseMap;
|
|
2066
2067
|
if (!m) {
|
|
2067
2068
|
m = this._reverseMap = [];
|
|
2068
|
-
for (var
|
|
2069
|
-
m[t.charCodeAt(
|
|
2069
|
+
for (var n = 0; n < t.length; n++)
|
|
2070
|
+
m[t.charCodeAt(n)] = n;
|
|
2070
2071
|
}
|
|
2071
2072
|
var r = t.charAt(64);
|
|
2072
2073
|
if (r) {
|
|
2073
|
-
var o =
|
|
2074
|
+
var o = g.indexOf(r);
|
|
2074
2075
|
o !== -1 && (a = o);
|
|
2075
2076
|
}
|
|
2076
|
-
return c(
|
|
2077
|
+
return c(g, a, m);
|
|
2077
2078
|
},
|
|
2078
2079
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
2079
2080
|
};
|
|
2080
|
-
function c(
|
|
2081
|
-
for (var m = [],
|
|
2081
|
+
function c(g, a, t) {
|
|
2082
|
+
for (var m = [], n = 0, r = 0; r < a; r++)
|
|
2082
2083
|
if (r % 4) {
|
|
2083
|
-
var o = t[
|
|
2084
|
-
m[
|
|
2084
|
+
var o = t[g.charCodeAt(r - 1)] << r % 4 * 2, _ = t[g.charCodeAt(r)] >>> 6 - r % 4 * 2, f = o | _;
|
|
2085
|
+
m[n >>> 2] |= f << 24 - n % 4 * 8, n++;
|
|
2085
2086
|
}
|
|
2086
|
-
return d.create(m,
|
|
2087
|
+
return d.create(m, n);
|
|
2087
2088
|
}
|
|
2088
|
-
})(),
|
|
2089
|
+
})(), l.enc.Base64;
|
|
2089
2090
|
});
|
|
2090
2091
|
})(Za)), Za.exports;
|
|
2091
2092
|
}
|
|
2092
2093
|
var Ja = { exports: {} }, Gl = Ja.exports, ct;
|
|
2093
2094
|
function Ml() {
|
|
2094
|
-
return ct || (ct = 1, (function(e,
|
|
2095
|
-
(function(
|
|
2095
|
+
return ct || (ct = 1, (function(e, u) {
|
|
2096
|
+
(function(l, i) {
|
|
2096
2097
|
e.exports = i($());
|
|
2097
|
-
})(Gl, function(
|
|
2098
|
+
})(Gl, function(l) {
|
|
2098
2099
|
return (function() {
|
|
2099
|
-
var i =
|
|
2100
|
+
var i = l, p = i.lib, d = p.WordArray, C = i.enc;
|
|
2100
2101
|
C.Base64url = {
|
|
2101
2102
|
/**
|
|
2102
2103
|
* Converts a word array to a Base64url string.
|
|
@@ -2113,14 +2114,14 @@ function Ml() {
|
|
|
2113
2114
|
*
|
|
2114
2115
|
* var base64String = CryptoJS.enc.Base64url.stringify(wordArray);
|
|
2115
2116
|
*/
|
|
2116
|
-
stringify: function(
|
|
2117
|
+
stringify: function(g, a) {
|
|
2117
2118
|
a === void 0 && (a = !0);
|
|
2118
|
-
var t =
|
|
2119
|
-
|
|
2119
|
+
var t = g.words, m = g.sigBytes, n = a ? this._safe_map : this._map;
|
|
2120
|
+
g.clamp();
|
|
2120
2121
|
for (var r = [], o = 0; o < m; o += 3)
|
|
2121
2122
|
for (var _ = t[o >>> 2] >>> 24 - o % 4 * 8 & 255, f = t[o + 1 >>> 2] >>> 24 - (o + 1) % 4 * 8 & 255, y = t[o + 2 >>> 2] >>> 24 - (o + 2) % 4 * 8 & 255, s = _ << 16 | f << 8 | y, U = 0; U < 4 && o + U * 0.75 < m; U++)
|
|
2122
|
-
r.push(
|
|
2123
|
-
var b =
|
|
2123
|
+
r.push(n.charAt(s >>> 6 * (3 - U) & 63));
|
|
2124
|
+
var b = n.charAt(64);
|
|
2124
2125
|
if (b)
|
|
2125
2126
|
for (; r.length % 4; )
|
|
2126
2127
|
r.push(b);
|
|
@@ -2141,49 +2142,49 @@ function Ml() {
|
|
|
2141
2142
|
*
|
|
2142
2143
|
* var wordArray = CryptoJS.enc.Base64url.parse(base64String);
|
|
2143
2144
|
*/
|
|
2144
|
-
parse: function(
|
|
2145
|
+
parse: function(g, a) {
|
|
2145
2146
|
a === void 0 && (a = !0);
|
|
2146
|
-
var t =
|
|
2147
|
-
if (!
|
|
2148
|
-
|
|
2147
|
+
var t = g.length, m = a ? this._safe_map : this._map, n = this._reverseMap;
|
|
2148
|
+
if (!n) {
|
|
2149
|
+
n = this._reverseMap = [];
|
|
2149
2150
|
for (var r = 0; r < m.length; r++)
|
|
2150
|
-
|
|
2151
|
+
n[m.charCodeAt(r)] = r;
|
|
2151
2152
|
}
|
|
2152
2153
|
var o = m.charAt(64);
|
|
2153
2154
|
if (o) {
|
|
2154
|
-
var _ =
|
|
2155
|
+
var _ = g.indexOf(o);
|
|
2155
2156
|
_ !== -1 && (t = _);
|
|
2156
2157
|
}
|
|
2157
|
-
return c(
|
|
2158
|
+
return c(g, t, n);
|
|
2158
2159
|
},
|
|
2159
2160
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
|
|
2160
2161
|
_safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
|
|
2161
2162
|
};
|
|
2162
|
-
function c(
|
|
2163
|
-
for (var m = [],
|
|
2163
|
+
function c(g, a, t) {
|
|
2164
|
+
for (var m = [], n = 0, r = 0; r < a; r++)
|
|
2164
2165
|
if (r % 4) {
|
|
2165
|
-
var o = t[
|
|
2166
|
-
m[
|
|
2166
|
+
var o = t[g.charCodeAt(r - 1)] << r % 4 * 2, _ = t[g.charCodeAt(r)] >>> 6 - r % 4 * 2, f = o | _;
|
|
2167
|
+
m[n >>> 2] |= f << 24 - n % 4 * 8, n++;
|
|
2167
2168
|
}
|
|
2168
|
-
return d.create(m,
|
|
2169
|
+
return d.create(m, n);
|
|
2169
2170
|
}
|
|
2170
|
-
})(),
|
|
2171
|
+
})(), l.enc.Base64url;
|
|
2171
2172
|
});
|
|
2172
2173
|
})(Ja)), Ja.exports;
|
|
2173
2174
|
}
|
|
2174
2175
|
var Ia = { exports: {} }, Rl = Ia.exports, _t;
|
|
2175
2176
|
function aa() {
|
|
2176
|
-
return _t || (_t = 1, (function(e,
|
|
2177
|
-
(function(
|
|
2177
|
+
return _t || (_t = 1, (function(e, u) {
|
|
2178
|
+
(function(l, i) {
|
|
2178
2179
|
e.exports = i($());
|
|
2179
|
-
})(Rl, function(
|
|
2180
|
+
})(Rl, function(l) {
|
|
2180
2181
|
return (function(i) {
|
|
2181
|
-
var
|
|
2182
|
+
var p = l, d = p.lib, C = d.WordArray, c = d.Hasher, g = p.algo, a = [];
|
|
2182
2183
|
(function() {
|
|
2183
2184
|
for (var _ = 0; _ < 64; _++)
|
|
2184
2185
|
a[_] = i.abs(i.sin(_ + 1)) * 4294967296 | 0;
|
|
2185
2186
|
})();
|
|
2186
|
-
var t =
|
|
2187
|
+
var t = g.MD5 = c.extend({
|
|
2187
2188
|
_doReset: function() {
|
|
2188
2189
|
this._hash = new C.init([
|
|
2189
2190
|
1732584193,
|
|
@@ -2198,7 +2199,7 @@ function aa() {
|
|
|
2198
2199
|
_[s] = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360;
|
|
2199
2200
|
}
|
|
2200
2201
|
var b = this._hash.words, v = _[f + 0], h = _[f + 1], x = _[f + 2], E = _[f + 3], O = _[f + 4], k = _[f + 5], S = _[f + 6], P = _[f + 7], G = _[f + 8], w = _[f + 9], L = _[f + 10], M = _[f + 11], W = _[f + 12], A = _[f + 13], H = _[f + 14], z = _[f + 15], D = b[0], R = b[1], F = b[2], N = b[3];
|
|
2201
|
-
D = m(D, R, F, N, v, 7, a[0]), N = m(N, D, R, F, h, 12, a[1]), F = m(F, N, D, R, x, 17, a[2]), R = m(R, F, N, D, E, 22, a[3]), D = m(D, R, F, N, O, 7, a[4]), N = m(N, D, R, F, k, 12, a[5]), F = m(F, N, D, R, S, 17, a[6]), R = m(R, F, N, D, P, 22, a[7]), D = m(D, R, F, N, G, 7, a[8]), N = m(N, D, R, F, w, 12, a[9]), F = m(F, N, D, R, L, 17, a[10]), R = m(R, F, N, D, M, 22, a[11]), D = m(D, R, F, N, W, 7, a[12]), N = m(N, D, R, F, A, 12, a[13]), F = m(F, N, D, R, H, 17, a[14]), R = m(R, F, N, D, z, 22, a[15]), D =
|
|
2202
|
+
D = m(D, R, F, N, v, 7, a[0]), N = m(N, D, R, F, h, 12, a[1]), F = m(F, N, D, R, x, 17, a[2]), R = m(R, F, N, D, E, 22, a[3]), D = m(D, R, F, N, O, 7, a[4]), N = m(N, D, R, F, k, 12, a[5]), F = m(F, N, D, R, S, 17, a[6]), R = m(R, F, N, D, P, 22, a[7]), D = m(D, R, F, N, G, 7, a[8]), N = m(N, D, R, F, w, 12, a[9]), F = m(F, N, D, R, L, 17, a[10]), R = m(R, F, N, D, M, 22, a[11]), D = m(D, R, F, N, W, 7, a[12]), N = m(N, D, R, F, A, 12, a[13]), F = m(F, N, D, R, H, 17, a[14]), R = m(R, F, N, D, z, 22, a[15]), D = n(D, R, F, N, h, 5, a[16]), N = n(N, D, R, F, S, 9, a[17]), F = n(F, N, D, R, M, 14, a[18]), R = n(R, F, N, D, v, 20, a[19]), D = n(D, R, F, N, k, 5, a[20]), N = n(N, D, R, F, L, 9, a[21]), F = n(F, N, D, R, z, 14, a[22]), R = n(R, F, N, D, O, 20, a[23]), D = n(D, R, F, N, w, 5, a[24]), N = n(N, D, R, F, H, 9, a[25]), F = n(F, N, D, R, E, 14, a[26]), R = n(R, F, N, D, G, 20, a[27]), D = n(D, R, F, N, A, 5, a[28]), N = n(N, D, R, F, x, 9, a[29]), F = n(F, N, D, R, P, 14, a[30]), R = n(R, F, N, D, W, 20, a[31]), D = r(D, R, F, N, k, 4, a[32]), N = r(N, D, R, F, G, 11, a[33]), F = r(F, N, D, R, M, 16, a[34]), R = r(R, F, N, D, H, 23, a[35]), D = r(D, R, F, N, h, 4, a[36]), N = r(N, D, R, F, O, 11, a[37]), F = r(F, N, D, R, P, 16, a[38]), R = r(R, F, N, D, L, 23, a[39]), D = r(D, R, F, N, A, 4, a[40]), N = r(N, D, R, F, v, 11, a[41]), F = r(F, N, D, R, E, 16, a[42]), R = r(R, F, N, D, S, 23, a[43]), D = r(D, R, F, N, w, 4, a[44]), N = r(N, D, R, F, W, 11, a[45]), F = r(F, N, D, R, z, 16, a[46]), R = r(R, F, N, D, x, 23, a[47]), D = o(D, R, F, N, v, 6, a[48]), N = o(N, D, R, F, P, 10, a[49]), F = o(F, N, D, R, H, 15, a[50]), R = o(R, F, N, D, k, 21, a[51]), D = o(D, R, F, N, W, 6, a[52]), N = o(N, D, R, F, E, 10, a[53]), F = o(F, N, D, R, L, 15, a[54]), R = o(R, F, N, D, h, 21, a[55]), D = o(D, R, F, N, G, 6, a[56]), N = o(N, D, R, F, z, 10, a[57]), F = o(F, N, D, R, S, 15, a[58]), R = o(R, F, N, D, A, 21, a[59]), D = o(D, R, F, N, O, 6, a[60]), N = o(N, D, R, F, M, 10, a[61]), F = o(F, N, D, R, x, 15, a[62]), R = o(R, F, N, D, w, 21, a[63]), b[0] = b[0] + D | 0, b[1] = b[1] + R | 0, b[2] = b[2] + F | 0, b[3] = b[3] + N | 0;
|
|
2202
2203
|
},
|
|
2203
2204
|
_doFinalize: function() {
|
|
2204
2205
|
var _ = this._data, f = _.words, y = this._nDataBytes * 8, s = _.sigBytes * 8;
|
|
@@ -2220,7 +2221,7 @@ function aa() {
|
|
|
2220
2221
|
var h = _ + (f & y | ~f & s) + U + v;
|
|
2221
2222
|
return (h << b | h >>> 32 - b) + f;
|
|
2222
2223
|
}
|
|
2223
|
-
function
|
|
2224
|
+
function n(_, f, y, s, U, b, v) {
|
|
2224
2225
|
var h = _ + (f & s | y & ~s) + U + v;
|
|
2225
2226
|
return (h << b | h >>> 32 - b) + f;
|
|
2226
2227
|
}
|
|
@@ -2232,19 +2233,19 @@ function aa() {
|
|
|
2232
2233
|
var h = _ + (y ^ (f | ~s)) + U + v;
|
|
2233
2234
|
return (h << b | h >>> 32 - b) + f;
|
|
2234
2235
|
}
|
|
2235
|
-
|
|
2236
|
-
})(Math),
|
|
2236
|
+
p.MD5 = c._createHelper(t), p.HmacMD5 = c._createHmacHelper(t);
|
|
2237
|
+
})(Math), l.MD5;
|
|
2237
2238
|
});
|
|
2238
2239
|
})(Ia)), Ia.exports;
|
|
2239
2240
|
}
|
|
2240
2241
|
var Ka = { exports: {} }, Pl = Ka.exports, ft;
|
|
2241
2242
|
function xn() {
|
|
2242
|
-
return ft || (ft = 1, (function(e,
|
|
2243
|
-
(function(
|
|
2243
|
+
return ft || (ft = 1, (function(e, u) {
|
|
2244
|
+
(function(l, i) {
|
|
2244
2245
|
e.exports = i($());
|
|
2245
|
-
})(Pl, function(
|
|
2246
|
+
})(Pl, function(l) {
|
|
2246
2247
|
return (function() {
|
|
2247
|
-
var i =
|
|
2248
|
+
var i = l, p = i.lib, d = p.WordArray, C = p.Hasher, c = i.algo, g = [], a = c.SHA1 = C.extend({
|
|
2248
2249
|
_doReset: function() {
|
|
2249
2250
|
this._hash = new d.init([
|
|
2250
2251
|
1732584193,
|
|
@@ -2255,21 +2256,21 @@ function xn() {
|
|
|
2255
2256
|
]);
|
|
2256
2257
|
},
|
|
2257
2258
|
_doProcessBlock: function(t, m) {
|
|
2258
|
-
for (var
|
|
2259
|
+
for (var n = this._hash.words, r = n[0], o = n[1], _ = n[2], f = n[3], y = n[4], s = 0; s < 80; s++) {
|
|
2259
2260
|
if (s < 16)
|
|
2260
|
-
|
|
2261
|
+
g[s] = t[m + s] | 0;
|
|
2261
2262
|
else {
|
|
2262
|
-
var U =
|
|
2263
|
-
|
|
2263
|
+
var U = g[s - 3] ^ g[s - 8] ^ g[s - 14] ^ g[s - 16];
|
|
2264
|
+
g[s] = U << 1 | U >>> 31;
|
|
2264
2265
|
}
|
|
2265
|
-
var b = (r << 5 | r >>> 27) + y +
|
|
2266
|
+
var b = (r << 5 | r >>> 27) + y + g[s];
|
|
2266
2267
|
s < 20 ? b += (o & _ | ~o & f) + 1518500249 : s < 40 ? b += (o ^ _ ^ f) + 1859775393 : s < 60 ? b += (o & _ | o & f | _ & f) - 1894007588 : b += (o ^ _ ^ f) - 899497514, y = f, f = _, _ = o << 30 | o >>> 2, o = r, r = b;
|
|
2267
2268
|
}
|
|
2268
|
-
|
|
2269
|
+
n[0] = n[0] + r | 0, n[1] = n[1] + o | 0, n[2] = n[2] + _ | 0, n[3] = n[3] + f | 0, n[4] = n[4] + y | 0;
|
|
2269
2270
|
},
|
|
2270
2271
|
_doFinalize: function() {
|
|
2271
|
-
var t = this._data, m = t.words,
|
|
2272
|
-
return m[r >>> 5] |= 128 << 24 - r % 32, m[(r + 64 >>> 9 << 4) + 14] = Math.floor(
|
|
2272
|
+
var t = this._data, m = t.words, n = this._nDataBytes * 8, r = t.sigBytes * 8;
|
|
2273
|
+
return m[r >>> 5] |= 128 << 24 - r % 32, m[(r + 64 >>> 9 << 4) + 14] = Math.floor(n / 4294967296), m[(r + 64 >>> 9 << 4) + 15] = n, t.sigBytes = m.length * 4, this._process(), this._hash;
|
|
2273
2274
|
},
|
|
2274
2275
|
clone: function() {
|
|
2275
2276
|
var t = C.clone.call(this);
|
|
@@ -2277,18 +2278,18 @@ function xn() {
|
|
|
2277
2278
|
}
|
|
2278
2279
|
});
|
|
2279
2280
|
i.SHA1 = C._createHelper(a), i.HmacSHA1 = C._createHmacHelper(a);
|
|
2280
|
-
})(),
|
|
2281
|
+
})(), l.SHA1;
|
|
2281
2282
|
});
|
|
2282
2283
|
})(Ka)), Ka.exports;
|
|
2283
2284
|
}
|
|
2284
2285
|
var qa = { exports: {} }, Fl = qa.exports, Ut;
|
|
2285
2286
|
function Vi() {
|
|
2286
|
-
return Ut || (Ut = 1, (function(e,
|
|
2287
|
-
(function(
|
|
2287
|
+
return Ut || (Ut = 1, (function(e, u) {
|
|
2288
|
+
(function(l, i) {
|
|
2288
2289
|
e.exports = i($());
|
|
2289
|
-
})(Fl, function(
|
|
2290
|
+
})(Fl, function(l) {
|
|
2290
2291
|
return (function(i) {
|
|
2291
|
-
var
|
|
2292
|
+
var p = l, d = p.lib, C = d.WordArray, c = d.Hasher, g = p.algo, a = [], t = [];
|
|
2292
2293
|
(function() {
|
|
2293
2294
|
function r(y) {
|
|
2294
2295
|
for (var s = i.sqrt(y), U = 2; U <= s; U++)
|
|
@@ -2302,7 +2303,7 @@ function Vi() {
|
|
|
2302
2303
|
for (var _ = 2, f = 0; f < 64; )
|
|
2303
2304
|
r(_) && (f < 8 && (a[f] = o(i.pow(_, 1 / 2))), t[f] = o(i.pow(_, 1 / 3)), f++), _++;
|
|
2304
2305
|
})();
|
|
2305
|
-
var m = [],
|
|
2306
|
+
var m = [], n = g.SHA256 = c.extend({
|
|
2306
2307
|
_doReset: function() {
|
|
2307
2308
|
this._hash = new C.init(a.slice(0));
|
|
2308
2309
|
},
|
|
@@ -2328,19 +2329,19 @@ function Vi() {
|
|
|
2328
2329
|
return r._hash = this._hash.clone(), r;
|
|
2329
2330
|
}
|
|
2330
2331
|
});
|
|
2331
|
-
|
|
2332
|
-
})(Math),
|
|
2332
|
+
p.SHA256 = c._createHelper(n), p.HmacSHA256 = c._createHmacHelper(n);
|
|
2333
|
+
})(Math), l.SHA256;
|
|
2333
2334
|
});
|
|
2334
2335
|
})(qa)), qa.exports;
|
|
2335
2336
|
}
|
|
2336
2337
|
var ja = { exports: {} }, wl = ja.exports, yt;
|
|
2337
2338
|
function Ol() {
|
|
2338
|
-
return yt || (yt = 1, (function(e,
|
|
2339
|
-
(function(
|
|
2339
|
+
return yt || (yt = 1, (function(e, u) {
|
|
2340
|
+
(function(l, i, p) {
|
|
2340
2341
|
e.exports = i($(), Vi());
|
|
2341
|
-
})(wl, function(
|
|
2342
|
+
})(wl, function(l) {
|
|
2342
2343
|
return (function() {
|
|
2343
|
-
var i =
|
|
2344
|
+
var i = l, p = i.lib, d = p.WordArray, C = i.algo, c = C.SHA256, g = C.SHA224 = c.extend({
|
|
2344
2345
|
_doReset: function() {
|
|
2345
2346
|
this._hash = new d.init([
|
|
2346
2347
|
3238371032,
|
|
@@ -2358,19 +2359,19 @@ function Ol() {
|
|
|
2358
2359
|
return a.sigBytes -= 4, a;
|
|
2359
2360
|
}
|
|
2360
2361
|
});
|
|
2361
|
-
i.SHA224 = c._createHelper(
|
|
2362
|
-
})(),
|
|
2362
|
+
i.SHA224 = c._createHelper(g), i.HmacSHA224 = c._createHmacHelper(g);
|
|
2363
|
+
})(), l.SHA224;
|
|
2363
2364
|
});
|
|
2364
2365
|
})(ja)), ja.exports;
|
|
2365
2366
|
}
|
|
2366
2367
|
var $a = { exports: {} }, Al = $a.exports, bt;
|
|
2367
2368
|
function Sn() {
|
|
2368
|
-
return bt || (bt = 1, (function(e,
|
|
2369
|
-
(function(
|
|
2369
|
+
return bt || (bt = 1, (function(e, u) {
|
|
2370
|
+
(function(l, i, p) {
|
|
2370
2371
|
e.exports = i($(), ki());
|
|
2371
|
-
})(Al, function(
|
|
2372
|
+
})(Al, function(l) {
|
|
2372
2373
|
return (function() {
|
|
2373
|
-
var i =
|
|
2374
|
+
var i = l, p = i.lib, d = p.Hasher, C = i.x64, c = C.Word, g = C.WordArray, a = i.algo;
|
|
2374
2375
|
function t() {
|
|
2375
2376
|
return c.create.apply(c, arguments);
|
|
2376
2377
|
}
|
|
@@ -2455,14 +2456,14 @@ function Sn() {
|
|
|
2455
2456
|
t(1501505948, 4234509866),
|
|
2456
2457
|
t(1607167915, 987167468),
|
|
2457
2458
|
t(1816402316, 1246189591)
|
|
2458
|
-
],
|
|
2459
|
+
], n = [];
|
|
2459
2460
|
(function() {
|
|
2460
2461
|
for (var o = 0; o < 80; o++)
|
|
2461
|
-
|
|
2462
|
+
n[o] = t();
|
|
2462
2463
|
})();
|
|
2463
2464
|
var r = a.SHA512 = d.extend({
|
|
2464
2465
|
_doReset: function() {
|
|
2465
|
-
this._hash = new
|
|
2466
|
+
this._hash = new g.init([
|
|
2466
2467
|
new c.init(1779033703, 4089235720),
|
|
2467
2468
|
new c.init(3144134277, 2227873595),
|
|
2468
2469
|
new c.init(1013904242, 4271175723),
|
|
@@ -2475,11 +2476,11 @@ function Sn() {
|
|
|
2475
2476
|
},
|
|
2476
2477
|
_doProcessBlock: function(o, _) {
|
|
2477
2478
|
for (var f = this._hash.words, y = f[0], s = f[1], U = f[2], b = f[3], v = f[4], h = f[5], x = f[6], E = f[7], O = y.high, k = y.low, S = s.high, P = s.low, G = U.high, w = U.low, L = b.high, M = b.low, W = v.high, A = v.low, H = h.high, z = h.low, D = x.high, R = x.low, F = E.high, N = E.low, I = O, K = k, Y = S, Z = P, te = G, ie = w, Ue = L, ye = M, oe = W, ce = A, Ge = H, xe = z, Je = D, Ae = R, Be = F, Ie = N, ve = 0; ve < 80; ve++) {
|
|
2478
|
-
var pe, Se, ia =
|
|
2479
|
+
var pe, Se, ia = n[ve];
|
|
2479
2480
|
if (ve < 16)
|
|
2480
2481
|
Se = ia.high = o[_ + ve * 2] | 0, pe = ia.low = o[_ + ve * 2 + 1] | 0;
|
|
2481
2482
|
else {
|
|
2482
|
-
var sa =
|
|
2483
|
+
var sa = n[ve - 15], Me = sa.high, He = sa.low, Si = (Me >>> 1 | He << 31) ^ (Me >>> 8 | He << 24) ^ Me >>> 7, ua = (He >>> 1 | Me << 31) ^ (He >>> 8 | Me << 24) ^ (He >>> 7 | Me << 25), pa = n[ve - 2], We = pa.high, Ke = pa.low, Di = (We >>> 19 | Ke << 13) ^ (We << 3 | Ke >>> 29) ^ We >>> 6, ha = (Ke >>> 19 | We << 13) ^ (Ke << 3 | We >>> 29) ^ (Ke >>> 6 | We << 26), ka = n[ve - 7], Ei = ka.high, Ni = ka.low, ta = n[ve - 16], xa = ta.high, Re = ta.low;
|
|
2483
2484
|
pe = ua + Ni, Se = Si + Ei + (pe >>> 0 < ua >>> 0 ? 1 : 0), pe = pe + ha, Se = Se + Di + (pe >>> 0 < ha >>> 0 ? 1 : 0), pe = pe + Re, Se = Se + xa + (pe >>> 0 < Re >>> 0 ? 1 : 0), ia.high = Se, ia.low = pe;
|
|
2484
2485
|
}
|
|
2485
2486
|
var ga = oe & Ge ^ ~oe & Je, na = ce & xe ^ ~ce & Ae, Sa = I & Y ^ I & te ^ Y & te, Li = K & Z ^ K & ie ^ Z & ie, Da = (I >>> 28 | K << 4) ^ (I << 30 | K >>> 2) ^ (I << 25 | K >>> 7), Ea = (K >>> 28 | I << 4) ^ (K << 30 | I >>> 2) ^ (K << 25 | I >>> 7), Na = (oe >>> 14 | ce << 18) ^ (oe >>> 18 | ce << 14) ^ (oe << 23 | ce >>> 9), La = (ce >>> 14 | oe << 18) ^ (ce >>> 18 | oe << 14) ^ (ce << 23 | oe >>> 9), Ga = m[ve], Gi = Ga.high, da = Ga.low, ge = Ie + La, De = Be + Na + (ge >>> 0 < Ie >>> 0 ? 1 : 0), ge = ge + na, De = De + ga + (ge >>> 0 < na >>> 0 ? 1 : 0), ge = ge + da, De = De + Gi + (ge >>> 0 < da >>> 0 ? 1 : 0), ge = ge + pe, De = De + Se + (ge >>> 0 < pe >>> 0 ? 1 : 0), Ma = Ea + Li, Mi = Da + Sa + (Ma >>> 0 < Ea >>> 0 ? 1 : 0);
|
|
@@ -2500,18 +2501,18 @@ function Sn() {
|
|
|
2500
2501
|
blockSize: 1024 / 32
|
|
2501
2502
|
});
|
|
2502
2503
|
i.SHA512 = d._createHelper(r), i.HmacSHA512 = d._createHmacHelper(r);
|
|
2503
|
-
})(),
|
|
2504
|
+
})(), l.SHA512;
|
|
2504
2505
|
});
|
|
2505
2506
|
})($a)), $a.exports;
|
|
2506
2507
|
}
|
|
2507
2508
|
var Qa = { exports: {} }, Bl = Qa.exports, Ct;
|
|
2508
2509
|
function Hl() {
|
|
2509
|
-
return Ct || (Ct = 1, (function(e,
|
|
2510
|
-
(function(
|
|
2510
|
+
return Ct || (Ct = 1, (function(e, u) {
|
|
2511
|
+
(function(l, i, p) {
|
|
2511
2512
|
e.exports = i($(), ki(), Sn());
|
|
2512
|
-
})(Bl, function(
|
|
2513
|
+
})(Bl, function(l) {
|
|
2513
2514
|
return (function() {
|
|
2514
|
-
var i =
|
|
2515
|
+
var i = l, p = i.x64, d = p.Word, C = p.WordArray, c = i.algo, g = c.SHA512, a = c.SHA384 = g.extend({
|
|
2515
2516
|
_doReset: function() {
|
|
2516
2517
|
this._hash = new C.init([
|
|
2517
2518
|
new d.init(3418070365, 3238371032),
|
|
@@ -2525,23 +2526,23 @@ function Hl() {
|
|
|
2525
2526
|
]);
|
|
2526
2527
|
},
|
|
2527
2528
|
_doFinalize: function() {
|
|
2528
|
-
var t =
|
|
2529
|
+
var t = g._doFinalize.call(this);
|
|
2529
2530
|
return t.sigBytes -= 16, t;
|
|
2530
2531
|
}
|
|
2531
2532
|
});
|
|
2532
|
-
i.SHA384 =
|
|
2533
|
-
})(),
|
|
2533
|
+
i.SHA384 = g._createHelper(a), i.HmacSHA384 = g._createHmacHelper(a);
|
|
2534
|
+
})(), l.SHA384;
|
|
2534
2535
|
});
|
|
2535
2536
|
})(Qa)), Qa.exports;
|
|
2536
2537
|
}
|
|
2537
2538
|
var Ya = { exports: {} }, Wl = Ya.exports, vt;
|
|
2538
2539
|
function zl() {
|
|
2539
|
-
return vt || (vt = 1, (function(e,
|
|
2540
|
-
(function(
|
|
2540
|
+
return vt || (vt = 1, (function(e, u) {
|
|
2541
|
+
(function(l, i, p) {
|
|
2541
2542
|
e.exports = i($(), ki());
|
|
2542
|
-
})(Wl, function(
|
|
2543
|
+
})(Wl, function(l) {
|
|
2543
2544
|
return (function(i) {
|
|
2544
|
-
var
|
|
2545
|
+
var p = l, d = p.lib, C = d.WordArray, c = d.Hasher, g = p.x64, a = g.Word, t = p.algo, m = [], n = [], r = [];
|
|
2545
2546
|
(function() {
|
|
2546
2547
|
for (var f = 1, y = 0, s = 0; s < 24; s++) {
|
|
2547
2548
|
m[f + 5 * y] = (s + 1) * (s + 2) / 2 % 64;
|
|
@@ -2550,7 +2551,7 @@ function zl() {
|
|
|
2550
2551
|
}
|
|
2551
2552
|
for (var f = 0; f < 5; f++)
|
|
2552
2553
|
for (var y = 0; y < 5; y++)
|
|
2553
|
-
|
|
2554
|
+
n[f + 5 * y] = y + (2 * f + 3 * y) % 5 * 5;
|
|
2554
2555
|
for (var v = 1, h = 0; h < 24; h++) {
|
|
2555
2556
|
for (var x = 0, E = 0, O = 0; O < 7; O++) {
|
|
2556
2557
|
if (v & 1) {
|
|
@@ -2608,7 +2609,7 @@ function zl() {
|
|
|
2608
2609
|
for (var A = 1; A < 25; A++) {
|
|
2609
2610
|
var k, S, x = s[A], H = x.high, z = x.low, D = m[A];
|
|
2610
2611
|
D < 32 ? (k = H << D | z >>> 32 - D, S = z << D | H >>> 32 - D) : (k = z << D - 32 | H >>> 64 - D, S = H << D - 32 | z >>> 64 - D);
|
|
2611
|
-
var R = o[
|
|
2612
|
+
var R = o[n[A]];
|
|
2612
2613
|
R.high = k, R.low = S;
|
|
2613
2614
|
}
|
|
2614
2615
|
var F = o[0], N = s[0];
|
|
@@ -2639,19 +2640,19 @@ function zl() {
|
|
|
2639
2640
|
return f;
|
|
2640
2641
|
}
|
|
2641
2642
|
});
|
|
2642
|
-
|
|
2643
|
-
})(Math),
|
|
2643
|
+
p.SHA3 = c._createHelper(_), p.HmacSHA3 = c._createHmacHelper(_);
|
|
2644
|
+
})(Math), l.SHA3;
|
|
2644
2645
|
});
|
|
2645
2646
|
})(Ya)), Ya.exports;
|
|
2646
2647
|
}
|
|
2647
2648
|
var Xa = { exports: {} }, Vl = Xa.exports, Tt;
|
|
2648
2649
|
function Zl() {
|
|
2649
|
-
return Tt || (Tt = 1, (function(e,
|
|
2650
|
-
(function(
|
|
2650
|
+
return Tt || (Tt = 1, (function(e, u) {
|
|
2651
|
+
(function(l, i) {
|
|
2651
2652
|
e.exports = i($());
|
|
2652
|
-
})(Vl, function(
|
|
2653
|
+
})(Vl, function(l) {
|
|
2653
2654
|
return (function(i) {
|
|
2654
|
-
var
|
|
2655
|
+
var p = l, d = p.lib, C = d.WordArray, c = d.Hasher, g = p.algo, a = C.create([
|
|
2655
2656
|
0,
|
|
2656
2657
|
1,
|
|
2657
2658
|
2,
|
|
@@ -2894,7 +2895,7 @@ function Zl() {
|
|
|
2894
2895
|
8,
|
|
2895
2896
|
5,
|
|
2896
2897
|
6
|
|
2897
|
-
]),
|
|
2898
|
+
]), n = C.create([
|
|
2898
2899
|
8,
|
|
2899
2900
|
9,
|
|
2900
2901
|
9,
|
|
@@ -2975,7 +2976,7 @@ function Zl() {
|
|
|
2975
2976
|
13,
|
|
2976
2977
|
11,
|
|
2977
2978
|
11
|
|
2978
|
-
]), r = C.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), o = C.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), _ =
|
|
2979
|
+
]), r = C.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), o = C.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), _ = g.RIPEMD160 = c.extend({
|
|
2979
2980
|
_doReset: function() {
|
|
2980
2981
|
this._hash = C.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2981
2982
|
},
|
|
@@ -2984,7 +2985,7 @@ function Zl() {
|
|
|
2984
2985
|
var O = x + E, k = h[O];
|
|
2985
2986
|
h[O] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
|
2986
2987
|
}
|
|
2987
|
-
var S = this._hash.words, P = r.words, G = o.words, w = a.words, L = t.words, M = m.words, W =
|
|
2988
|
+
var S = this._hash.words, P = r.words, G = o.words, w = a.words, L = t.words, M = m.words, W = n.words, A, H, z, D, R, F, N, I, K, Y;
|
|
2988
2989
|
F = A = S[0], N = H = S[1], I = z = S[2], K = D = S[3], Y = R = S[4];
|
|
2989
2990
|
for (var Z, E = 0; E < 80; E += 1)
|
|
2990
2991
|
Z = A + h[x + w[E]] | 0, E < 16 ? Z += f(H, z, D) + P[0] : E < 32 ? Z += y(H, z, D) + P[1] : E < 48 ? Z += s(H, z, D) + P[2] : E < 64 ? Z += U(H, z, D) + P[3] : Z += b(H, z, D) + P[4], Z = Z | 0, Z = v(Z, M[E]), Z = Z + R | 0, A = R, R = D, D = v(z, 10), z = H, H = Z, Z = F + h[x + L[E]] | 0, E < 16 ? Z += b(N, I, K) + G[0] : E < 32 ? Z += U(N, I, K) + G[1] : E < 48 ? Z += s(N, I, K) + G[2] : E < 64 ? Z += y(N, I, K) + G[3] : Z += f(N, I, K) + G[4], Z = Z | 0, Z = v(Z, W[E]), Z = Z + Y | 0, F = Y, Y = K, K = v(I, 10), I = N, N = Z;
|
|
@@ -3022,20 +3023,20 @@ function Zl() {
|
|
|
3022
3023
|
function v(h, x) {
|
|
3023
3024
|
return h << x | h >>> 32 - x;
|
|
3024
3025
|
}
|
|
3025
|
-
|
|
3026
|
-
})(),
|
|
3026
|
+
p.RIPEMD160 = c._createHelper(_), p.HmacRIPEMD160 = c._createHmacHelper(_);
|
|
3027
|
+
})(), l.RIPEMD160;
|
|
3027
3028
|
});
|
|
3028
3029
|
})(Xa)), Xa.exports;
|
|
3029
3030
|
}
|
|
3030
3031
|
var ei = { exports: {} }, Jl = ei.exports, ht;
|
|
3031
3032
|
function Zi() {
|
|
3032
|
-
return ht || (ht = 1, (function(e,
|
|
3033
|
-
(function(
|
|
3033
|
+
return ht || (ht = 1, (function(e, u) {
|
|
3034
|
+
(function(l, i) {
|
|
3034
3035
|
e.exports = i($());
|
|
3035
|
-
})(Jl, function(
|
|
3036
|
+
})(Jl, function(l) {
|
|
3036
3037
|
(function() {
|
|
3037
|
-
var i =
|
|
3038
|
-
|
|
3038
|
+
var i = l, p = i.lib, d = p.Base, C = i.enc, c = C.Utf8, g = i.algo;
|
|
3039
|
+
g.HMAC = d.extend({
|
|
3039
3040
|
/**
|
|
3040
3041
|
* Initializes a newly created HMAC.
|
|
3041
3042
|
*
|
|
@@ -3048,11 +3049,11 @@ function Zi() {
|
|
|
3048
3049
|
*/
|
|
3049
3050
|
init: function(a, t) {
|
|
3050
3051
|
a = this._hasher = new a.init(), typeof t == "string" && (t = c.parse(t));
|
|
3051
|
-
var m = a.blockSize,
|
|
3052
|
-
t.sigBytes >
|
|
3052
|
+
var m = a.blockSize, n = m * 4;
|
|
3053
|
+
t.sigBytes > n && (t = a.finalize(t)), t.clamp();
|
|
3053
3054
|
for (var r = this._oKey = t.clone(), o = this._iKey = t.clone(), _ = r.words, f = o.words, y = 0; y < m; y++)
|
|
3054
3055
|
_[y] ^= 1549556828, f[y] ^= 909522486;
|
|
3055
|
-
r.sigBytes = o.sigBytes =
|
|
3056
|
+
r.sigBytes = o.sigBytes = n, this.reset();
|
|
3056
3057
|
},
|
|
3057
3058
|
/**
|
|
3058
3059
|
* Resets this HMAC to its initial state.
|
|
@@ -3097,8 +3098,8 @@ function Zi() {
|
|
|
3097
3098
|
finalize: function(a) {
|
|
3098
3099
|
var t = this._hasher, m = t.finalize(a);
|
|
3099
3100
|
t.reset();
|
|
3100
|
-
var
|
|
3101
|
-
return
|
|
3101
|
+
var n = t.finalize(this._oKey.clone().concat(m));
|
|
3102
|
+
return n;
|
|
3102
3103
|
}
|
|
3103
3104
|
});
|
|
3104
3105
|
})();
|
|
@@ -3107,12 +3108,12 @@ function Zi() {
|
|
|
3107
3108
|
}
|
|
3108
3109
|
var ai = { exports: {} }, Il = ai.exports, kt;
|
|
3109
3110
|
function Kl() {
|
|
3110
|
-
return kt || (kt = 1, (function(e,
|
|
3111
|
-
(function(
|
|
3111
|
+
return kt || (kt = 1, (function(e, u) {
|
|
3112
|
+
(function(l, i, p) {
|
|
3112
3113
|
e.exports = i($(), Vi(), Zi());
|
|
3113
|
-
})(Il, function(
|
|
3114
|
+
})(Il, function(l) {
|
|
3114
3115
|
return (function() {
|
|
3115
|
-
var i =
|
|
3116
|
+
var i = l, p = i.lib, d = p.Base, C = p.WordArray, c = i.algo, g = c.SHA256, a = c.HMAC, t = c.PBKDF2 = d.extend({
|
|
3116
3117
|
/**
|
|
3117
3118
|
* Configuration options.
|
|
3118
3119
|
*
|
|
@@ -3122,7 +3123,7 @@ function Kl() {
|
|
|
3122
3123
|
*/
|
|
3123
3124
|
cfg: d.extend({
|
|
3124
3125
|
keySize: 128 / 32,
|
|
3125
|
-
hasher:
|
|
3126
|
+
hasher: g,
|
|
3126
3127
|
iterations: 25e4
|
|
3127
3128
|
}),
|
|
3128
3129
|
/**
|
|
@@ -3151,9 +3152,9 @@ function Kl() {
|
|
|
3151
3152
|
*
|
|
3152
3153
|
* var key = kdf.compute(password, salt);
|
|
3153
3154
|
*/
|
|
3154
|
-
compute: function(m,
|
|
3155
|
+
compute: function(m, n) {
|
|
3155
3156
|
for (var r = this.cfg, o = a.create(r.hasher, m), _ = C.create(), f = C.create([1]), y = _.words, s = f.words, U = r.keySize, b = r.iterations; y.length < U; ) {
|
|
3156
|
-
var v = o.update(
|
|
3157
|
+
var v = o.update(n).finalize(f);
|
|
3157
3158
|
o.reset();
|
|
3158
3159
|
for (var h = v.words, x = h.length, E = v, O = 1; O < b; O++) {
|
|
3159
3160
|
E = o.finalize(E), o.reset();
|
|
@@ -3165,21 +3166,21 @@ function Kl() {
|
|
|
3165
3166
|
return _.sigBytes = U * 4, _;
|
|
3166
3167
|
}
|
|
3167
3168
|
});
|
|
3168
|
-
i.PBKDF2 = function(m,
|
|
3169
|
-
return t.create(r).compute(m,
|
|
3169
|
+
i.PBKDF2 = function(m, n, r) {
|
|
3170
|
+
return t.create(r).compute(m, n);
|
|
3170
3171
|
};
|
|
3171
|
-
})(),
|
|
3172
|
+
})(), l.PBKDF2;
|
|
3172
3173
|
});
|
|
3173
3174
|
})(ai)), ai.exports;
|
|
3174
3175
|
}
|
|
3175
3176
|
var ii = { exports: {} }, ql = ii.exports, xt;
|
|
3176
3177
|
function Ve() {
|
|
3177
|
-
return xt || (xt = 1, (function(e,
|
|
3178
|
-
(function(
|
|
3178
|
+
return xt || (xt = 1, (function(e, u) {
|
|
3179
|
+
(function(l, i, p) {
|
|
3179
3180
|
e.exports = i($(), xn(), Zi());
|
|
3180
|
-
})(ql, function(
|
|
3181
|
+
})(ql, function(l) {
|
|
3181
3182
|
return (function() {
|
|
3182
|
-
var i =
|
|
3183
|
+
var i = l, p = i.lib, d = p.Base, C = p.WordArray, c = i.algo, g = c.MD5, a = c.EvpKDF = d.extend({
|
|
3183
3184
|
/**
|
|
3184
3185
|
* Configuration options.
|
|
3185
3186
|
*
|
|
@@ -3189,7 +3190,7 @@ function Ve() {
|
|
|
3189
3190
|
*/
|
|
3190
3191
|
cfg: d.extend({
|
|
3191
3192
|
keySize: 128 / 32,
|
|
3192
|
-
hasher:
|
|
3193
|
+
hasher: g,
|
|
3193
3194
|
iterations: 1
|
|
3194
3195
|
}),
|
|
3195
3196
|
/**
|
|
@@ -3219,32 +3220,32 @@ function Ve() {
|
|
|
3219
3220
|
* var key = kdf.compute(password, salt);
|
|
3220
3221
|
*/
|
|
3221
3222
|
compute: function(t, m) {
|
|
3222
|
-
for (var
|
|
3223
|
-
|
|
3223
|
+
for (var n, r = this.cfg, o = r.hasher.create(), _ = C.create(), f = _.words, y = r.keySize, s = r.iterations; f.length < y; ) {
|
|
3224
|
+
n && o.update(n), n = o.update(t).finalize(m), o.reset();
|
|
3224
3225
|
for (var U = 1; U < s; U++)
|
|
3225
|
-
|
|
3226
|
-
_.concat(
|
|
3226
|
+
n = o.finalize(n), o.reset();
|
|
3227
|
+
_.concat(n);
|
|
3227
3228
|
}
|
|
3228
3229
|
return _.sigBytes = y * 4, _;
|
|
3229
3230
|
}
|
|
3230
3231
|
});
|
|
3231
|
-
i.EvpKDF = function(t, m,
|
|
3232
|
-
return a.create(
|
|
3232
|
+
i.EvpKDF = function(t, m, n) {
|
|
3233
|
+
return a.create(n).compute(t, m);
|
|
3233
3234
|
};
|
|
3234
|
-
})(),
|
|
3235
|
+
})(), l.EvpKDF;
|
|
3235
3236
|
});
|
|
3236
3237
|
})(ii)), ii.exports;
|
|
3237
3238
|
}
|
|
3238
3239
|
var ti = { exports: {} }, jl = ti.exports, St;
|
|
3239
3240
|
function se() {
|
|
3240
|
-
return St || (St = 1, (function(e,
|
|
3241
|
-
(function(
|
|
3241
|
+
return St || (St = 1, (function(e, u) {
|
|
3242
|
+
(function(l, i, p) {
|
|
3242
3243
|
e.exports = i($(), Ve());
|
|
3243
|
-
})(jl, function(
|
|
3244
|
-
|
|
3245
|
-
var
|
|
3244
|
+
})(jl, function(l) {
|
|
3245
|
+
l.lib.Cipher || (function(i) {
|
|
3246
|
+
var p = l, d = p.lib, C = d.Base, c = d.WordArray, g = d.BufferedBlockAlgorithm, a = p.enc;
|
|
3246
3247
|
a.Utf8;
|
|
3247
|
-
var t = a.Base64, m =
|
|
3248
|
+
var t = a.Base64, m = p.algo, n = m.EvpKDF, r = d.Cipher = g.extend({
|
|
3248
3249
|
/**
|
|
3249
3250
|
* Configuration options.
|
|
3250
3251
|
*
|
|
@@ -3307,7 +3308,7 @@ function se() {
|
|
|
3307
3308
|
* cipher.reset();
|
|
3308
3309
|
*/
|
|
3309
3310
|
reset: function() {
|
|
3310
|
-
|
|
3311
|
+
g.reset.call(this), this._doReset();
|
|
3311
3312
|
},
|
|
3312
3313
|
/**
|
|
3313
3314
|
* Adds data to be encrypted or decrypted.
|
|
@@ -3383,7 +3384,7 @@ function se() {
|
|
|
3383
3384
|
},
|
|
3384
3385
|
blockSize: 1
|
|
3385
3386
|
});
|
|
3386
|
-
var o =
|
|
3387
|
+
var o = p.mode = {}, _ = d.BlockCipherMode = C.extend({
|
|
3387
3388
|
/**
|
|
3388
3389
|
* Creates this mode for encryption.
|
|
3389
3390
|
*
|
|
@@ -3467,7 +3468,7 @@ function se() {
|
|
|
3467
3468
|
P[G + W] ^= L[W];
|
|
3468
3469
|
}
|
|
3469
3470
|
return k;
|
|
3470
|
-
})(), y =
|
|
3471
|
+
})(), y = p.pad = {}, s = y.Pkcs7 = {
|
|
3471
3472
|
/**
|
|
3472
3473
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
3473
3474
|
*
|
|
@@ -3569,7 +3570,7 @@ function se() {
|
|
|
3569
3570
|
toString: function(k) {
|
|
3570
3571
|
return (k || this.formatter).stringify(this);
|
|
3571
3572
|
}
|
|
3572
|
-
}), b =
|
|
3573
|
+
}), b = p.format = {}, v = b.OpenSSL = {
|
|
3573
3574
|
/**
|
|
3574
3575
|
* Converts a cipher params object to an OpenSSL-compatible string.
|
|
3575
3576
|
*
|
|
@@ -3685,7 +3686,7 @@ function se() {
|
|
|
3685
3686
|
_parse: function(k, S) {
|
|
3686
3687
|
return typeof k == "string" ? S.parse(k, this) : k;
|
|
3687
3688
|
}
|
|
3688
|
-
}), x =
|
|
3689
|
+
}), x = p.kdf = {}, E = x.OpenSSL = {
|
|
3689
3690
|
/**
|
|
3690
3691
|
* Derives a key and IV from a password.
|
|
3691
3692
|
*
|
|
@@ -3705,9 +3706,9 @@ function se() {
|
|
|
3705
3706
|
*/
|
|
3706
3707
|
execute: function(k, S, P, G, w) {
|
|
3707
3708
|
if (G || (G = c.random(64 / 8)), w)
|
|
3708
|
-
var L =
|
|
3709
|
+
var L = n.create({ keySize: S + P, hasher: w }).compute(k, G);
|
|
3709
3710
|
else
|
|
3710
|
-
var L =
|
|
3711
|
+
var L = n.create({ keySize: S + P }).compute(k, G);
|
|
3711
3712
|
var M = c.create(L.words.slice(S), P * 4);
|
|
3712
3713
|
return L.sigBytes = S * 4, U.create({ key: L, iv: M, salt: G });
|
|
3713
3714
|
}
|
|
@@ -3775,231 +3776,231 @@ function se() {
|
|
|
3775
3776
|
}
|
|
3776
3777
|
var ni = { exports: {} }, $l = ni.exports, Dt;
|
|
3777
3778
|
function Ql() {
|
|
3778
|
-
return Dt || (Dt = 1, (function(e,
|
|
3779
|
-
(function(
|
|
3779
|
+
return Dt || (Dt = 1, (function(e, u) {
|
|
3780
|
+
(function(l, i, p) {
|
|
3780
3781
|
e.exports = i($(), se());
|
|
3781
|
-
})($l, function(
|
|
3782
|
-
return
|
|
3783
|
-
var i =
|
|
3782
|
+
})($l, function(l) {
|
|
3783
|
+
return l.mode.CFB = (function() {
|
|
3784
|
+
var i = l.lib.BlockCipherMode.extend();
|
|
3784
3785
|
i.Encryptor = i.extend({
|
|
3785
3786
|
processBlock: function(d, C) {
|
|
3786
|
-
var c = this._cipher,
|
|
3787
|
-
|
|
3787
|
+
var c = this._cipher, g = c.blockSize;
|
|
3788
|
+
p.call(this, d, C, g, c), this._prevBlock = d.slice(C, C + g);
|
|
3788
3789
|
}
|
|
3789
3790
|
}), i.Decryptor = i.extend({
|
|
3790
3791
|
processBlock: function(d, C) {
|
|
3791
|
-
var c = this._cipher,
|
|
3792
|
-
|
|
3792
|
+
var c = this._cipher, g = c.blockSize, a = d.slice(C, C + g);
|
|
3793
|
+
p.call(this, d, C, g, c), this._prevBlock = a;
|
|
3793
3794
|
}
|
|
3794
3795
|
});
|
|
3795
|
-
function
|
|
3796
|
+
function p(d, C, c, g) {
|
|
3796
3797
|
var a, t = this._iv;
|
|
3797
|
-
t ? (a = t.slice(0), this._iv = void 0) : a = this._prevBlock,
|
|
3798
|
+
t ? (a = t.slice(0), this._iv = void 0) : a = this._prevBlock, g.encryptBlock(a, 0);
|
|
3798
3799
|
for (var m = 0; m < c; m++)
|
|
3799
3800
|
d[C + m] ^= a[m];
|
|
3800
3801
|
}
|
|
3801
3802
|
return i;
|
|
3802
|
-
})(),
|
|
3803
|
+
})(), l.mode.CFB;
|
|
3803
3804
|
});
|
|
3804
3805
|
})(ni)), ni.exports;
|
|
3805
3806
|
}
|
|
3806
3807
|
var li = { exports: {} }, Yl = li.exports, Et;
|
|
3807
3808
|
function Xl() {
|
|
3808
|
-
return Et || (Et = 1, (function(e,
|
|
3809
|
-
(function(
|
|
3809
|
+
return Et || (Et = 1, (function(e, u) {
|
|
3810
|
+
(function(l, i, p) {
|
|
3810
3811
|
e.exports = i($(), se());
|
|
3811
|
-
})(Yl, function(
|
|
3812
|
-
return
|
|
3813
|
-
var i =
|
|
3812
|
+
})(Yl, function(l) {
|
|
3813
|
+
return l.mode.CTR = (function() {
|
|
3814
|
+
var i = l.lib.BlockCipherMode.extend(), p = i.Encryptor = i.extend({
|
|
3814
3815
|
processBlock: function(d, C) {
|
|
3815
|
-
var c = this._cipher,
|
|
3816
|
+
var c = this._cipher, g = c.blockSize, a = this._iv, t = this._counter;
|
|
3816
3817
|
a && (t = this._counter = a.slice(0), this._iv = void 0);
|
|
3817
3818
|
var m = t.slice(0);
|
|
3818
|
-
c.encryptBlock(m, 0), t[
|
|
3819
|
-
for (var
|
|
3820
|
-
d[C +
|
|
3819
|
+
c.encryptBlock(m, 0), t[g - 1] = t[g - 1] + 1 | 0;
|
|
3820
|
+
for (var n = 0; n < g; n++)
|
|
3821
|
+
d[C + n] ^= m[n];
|
|
3821
3822
|
}
|
|
3822
3823
|
});
|
|
3823
|
-
return i.Decryptor =
|
|
3824
|
-
})(),
|
|
3824
|
+
return i.Decryptor = p, i;
|
|
3825
|
+
})(), l.mode.CTR;
|
|
3825
3826
|
});
|
|
3826
3827
|
})(li)), li.exports;
|
|
3827
3828
|
}
|
|
3828
3829
|
var ri = { exports: {} }, er = ri.exports, Nt;
|
|
3829
3830
|
function ar() {
|
|
3830
|
-
return Nt || (Nt = 1, (function(e,
|
|
3831
|
-
(function(
|
|
3831
|
+
return Nt || (Nt = 1, (function(e, u) {
|
|
3832
|
+
(function(l, i, p) {
|
|
3832
3833
|
e.exports = i($(), se());
|
|
3833
|
-
})(er, function(
|
|
3834
|
-
return
|
|
3835
|
-
var i =
|
|
3836
|
-
function
|
|
3834
|
+
})(er, function(l) {
|
|
3835
|
+
return l.mode.CTRGladman = (function() {
|
|
3836
|
+
var i = l.lib.BlockCipherMode.extend();
|
|
3837
|
+
function p(c) {
|
|
3837
3838
|
if ((c >> 24 & 255) === 255) {
|
|
3838
|
-
var
|
|
3839
|
-
|
|
3839
|
+
var g = c >> 16 & 255, a = c >> 8 & 255, t = c & 255;
|
|
3840
|
+
g === 255 ? (g = 0, a === 255 ? (a = 0, t === 255 ? t = 0 : ++t) : ++a) : ++g, c = 0, c += g << 16, c += a << 8, c += t;
|
|
3840
3841
|
} else
|
|
3841
3842
|
c += 1 << 24;
|
|
3842
3843
|
return c;
|
|
3843
3844
|
}
|
|
3844
3845
|
function d(c) {
|
|
3845
|
-
return (c[0] =
|
|
3846
|
+
return (c[0] = p(c[0])) === 0 && (c[1] = p(c[1])), c;
|
|
3846
3847
|
}
|
|
3847
3848
|
var C = i.Encryptor = i.extend({
|
|
3848
|
-
processBlock: function(c,
|
|
3849
|
-
var a = this._cipher, t = a.blockSize, m = this._iv,
|
|
3850
|
-
m && (
|
|
3851
|
-
var r =
|
|
3849
|
+
processBlock: function(c, g) {
|
|
3850
|
+
var a = this._cipher, t = a.blockSize, m = this._iv, n = this._counter;
|
|
3851
|
+
m && (n = this._counter = m.slice(0), this._iv = void 0), d(n);
|
|
3852
|
+
var r = n.slice(0);
|
|
3852
3853
|
a.encryptBlock(r, 0);
|
|
3853
3854
|
for (var o = 0; o < t; o++)
|
|
3854
|
-
c[
|
|
3855
|
+
c[g + o] ^= r[o];
|
|
3855
3856
|
}
|
|
3856
3857
|
});
|
|
3857
3858
|
return i.Decryptor = C, i;
|
|
3858
|
-
})(),
|
|
3859
|
+
})(), l.mode.CTRGladman;
|
|
3859
3860
|
});
|
|
3860
3861
|
})(ri)), ri.exports;
|
|
3861
3862
|
}
|
|
3862
3863
|
var oi = { exports: {} }, ir = oi.exports, Lt;
|
|
3863
3864
|
function tr() {
|
|
3864
|
-
return Lt || (Lt = 1, (function(e,
|
|
3865
|
-
(function(
|
|
3865
|
+
return Lt || (Lt = 1, (function(e, u) {
|
|
3866
|
+
(function(l, i, p) {
|
|
3866
3867
|
e.exports = i($(), se());
|
|
3867
|
-
})(ir, function(
|
|
3868
|
-
return
|
|
3869
|
-
var i =
|
|
3868
|
+
})(ir, function(l) {
|
|
3869
|
+
return l.mode.OFB = (function() {
|
|
3870
|
+
var i = l.lib.BlockCipherMode.extend(), p = i.Encryptor = i.extend({
|
|
3870
3871
|
processBlock: function(d, C) {
|
|
3871
|
-
var c = this._cipher,
|
|
3872
|
+
var c = this._cipher, g = c.blockSize, a = this._iv, t = this._keystream;
|
|
3872
3873
|
a && (t = this._keystream = a.slice(0), this._iv = void 0), c.encryptBlock(t, 0);
|
|
3873
|
-
for (var m = 0; m <
|
|
3874
|
+
for (var m = 0; m < g; m++)
|
|
3874
3875
|
d[C + m] ^= t[m];
|
|
3875
3876
|
}
|
|
3876
3877
|
});
|
|
3877
|
-
return i.Decryptor =
|
|
3878
|
-
})(),
|
|
3878
|
+
return i.Decryptor = p, i;
|
|
3879
|
+
})(), l.mode.OFB;
|
|
3879
3880
|
});
|
|
3880
3881
|
})(oi)), oi.exports;
|
|
3881
3882
|
}
|
|
3882
3883
|
var mi = { exports: {} }, nr = mi.exports, Gt;
|
|
3883
3884
|
function lr() {
|
|
3884
|
-
return Gt || (Gt = 1, (function(e,
|
|
3885
|
-
(function(
|
|
3885
|
+
return Gt || (Gt = 1, (function(e, u) {
|
|
3886
|
+
(function(l, i, p) {
|
|
3886
3887
|
e.exports = i($(), se());
|
|
3887
|
-
})(nr, function(
|
|
3888
|
-
return
|
|
3889
|
-
var i =
|
|
3888
|
+
})(nr, function(l) {
|
|
3889
|
+
return l.mode.ECB = (function() {
|
|
3890
|
+
var i = l.lib.BlockCipherMode.extend();
|
|
3890
3891
|
return i.Encryptor = i.extend({
|
|
3891
|
-
processBlock: function(
|
|
3892
|
-
this._cipher.encryptBlock(
|
|
3892
|
+
processBlock: function(p, d) {
|
|
3893
|
+
this._cipher.encryptBlock(p, d);
|
|
3893
3894
|
}
|
|
3894
3895
|
}), i.Decryptor = i.extend({
|
|
3895
|
-
processBlock: function(
|
|
3896
|
-
this._cipher.decryptBlock(
|
|
3896
|
+
processBlock: function(p, d) {
|
|
3897
|
+
this._cipher.decryptBlock(p, d);
|
|
3897
3898
|
}
|
|
3898
3899
|
}), i;
|
|
3899
|
-
})(),
|
|
3900
|
+
})(), l.mode.ECB;
|
|
3900
3901
|
});
|
|
3901
3902
|
})(mi)), mi.exports;
|
|
3902
3903
|
}
|
|
3903
3904
|
var si = { exports: {} }, rr = si.exports, Mt;
|
|
3904
3905
|
function or() {
|
|
3905
|
-
return Mt || (Mt = 1, (function(e,
|
|
3906
|
-
(function(
|
|
3906
|
+
return Mt || (Mt = 1, (function(e, u) {
|
|
3907
|
+
(function(l, i, p) {
|
|
3907
3908
|
e.exports = i($(), se());
|
|
3908
|
-
})(rr, function(
|
|
3909
|
-
return
|
|
3910
|
-
pad: function(i,
|
|
3911
|
-
var d = i.sigBytes, C =
|
|
3912
|
-
i.clamp(), i.words[
|
|
3909
|
+
})(rr, function(l) {
|
|
3910
|
+
return l.pad.AnsiX923 = {
|
|
3911
|
+
pad: function(i, p) {
|
|
3912
|
+
var d = i.sigBytes, C = p * 4, c = C - d % C, g = d + c - 1;
|
|
3913
|
+
i.clamp(), i.words[g >>> 2] |= c << 24 - g % 4 * 8, i.sigBytes += c;
|
|
3913
3914
|
},
|
|
3914
3915
|
unpad: function(i) {
|
|
3915
|
-
var
|
|
3916
|
-
i.sigBytes -=
|
|
3916
|
+
var p = i.words[i.sigBytes - 1 >>> 2] & 255;
|
|
3917
|
+
i.sigBytes -= p;
|
|
3917
3918
|
}
|
|
3918
|
-
},
|
|
3919
|
+
}, l.pad.Ansix923;
|
|
3919
3920
|
});
|
|
3920
3921
|
})(si)), si.exports;
|
|
3921
3922
|
}
|
|
3922
3923
|
var ui = { exports: {} }, mr = ui.exports, Rt;
|
|
3923
3924
|
function sr() {
|
|
3924
|
-
return Rt || (Rt = 1, (function(e,
|
|
3925
|
-
(function(
|
|
3925
|
+
return Rt || (Rt = 1, (function(e, u) {
|
|
3926
|
+
(function(l, i, p) {
|
|
3926
3927
|
e.exports = i($(), se());
|
|
3927
|
-
})(mr, function(
|
|
3928
|
-
return
|
|
3929
|
-
pad: function(i,
|
|
3930
|
-
var d =
|
|
3931
|
-
i.concat(
|
|
3928
|
+
})(mr, function(l) {
|
|
3929
|
+
return l.pad.Iso10126 = {
|
|
3930
|
+
pad: function(i, p) {
|
|
3931
|
+
var d = p * 4, C = d - i.sigBytes % d;
|
|
3932
|
+
i.concat(l.lib.WordArray.random(C - 1)).concat(l.lib.WordArray.create([C << 24], 1));
|
|
3932
3933
|
},
|
|
3933
3934
|
unpad: function(i) {
|
|
3934
|
-
var
|
|
3935
|
-
i.sigBytes -=
|
|
3935
|
+
var p = i.words[i.sigBytes - 1 >>> 2] & 255;
|
|
3936
|
+
i.sigBytes -= p;
|
|
3936
3937
|
}
|
|
3937
|
-
},
|
|
3938
|
+
}, l.pad.Iso10126;
|
|
3938
3939
|
});
|
|
3939
3940
|
})(ui)), ui.exports;
|
|
3940
3941
|
}
|
|
3941
3942
|
var pi = { exports: {} }, ur = pi.exports, Pt;
|
|
3942
3943
|
function pr() {
|
|
3943
|
-
return Pt || (Pt = 1, (function(e,
|
|
3944
|
-
(function(
|
|
3944
|
+
return Pt || (Pt = 1, (function(e, u) {
|
|
3945
|
+
(function(l, i, p) {
|
|
3945
3946
|
e.exports = i($(), se());
|
|
3946
|
-
})(ur, function(
|
|
3947
|
-
return
|
|
3948
|
-
pad: function(i,
|
|
3949
|
-
i.concat(
|
|
3947
|
+
})(ur, function(l) {
|
|
3948
|
+
return l.pad.Iso97971 = {
|
|
3949
|
+
pad: function(i, p) {
|
|
3950
|
+
i.concat(l.lib.WordArray.create([2147483648], 1)), l.pad.ZeroPadding.pad(i, p);
|
|
3950
3951
|
},
|
|
3951
3952
|
unpad: function(i) {
|
|
3952
|
-
|
|
3953
|
+
l.pad.ZeroPadding.unpad(i), i.sigBytes--;
|
|
3953
3954
|
}
|
|
3954
|
-
},
|
|
3955
|
+
}, l.pad.Iso97971;
|
|
3955
3956
|
});
|
|
3956
3957
|
})(pi)), pi.exports;
|
|
3957
3958
|
}
|
|
3958
3959
|
var gi = { exports: {} }, gr = gi.exports, Ft;
|
|
3959
3960
|
function dr() {
|
|
3960
|
-
return Ft || (Ft = 1, (function(e,
|
|
3961
|
-
(function(
|
|
3961
|
+
return Ft || (Ft = 1, (function(e, u) {
|
|
3962
|
+
(function(l, i, p) {
|
|
3962
3963
|
e.exports = i($(), se());
|
|
3963
|
-
})(gr, function(
|
|
3964
|
-
return
|
|
3965
|
-
pad: function(i,
|
|
3966
|
-
var d =
|
|
3964
|
+
})(gr, function(l) {
|
|
3965
|
+
return l.pad.ZeroPadding = {
|
|
3966
|
+
pad: function(i, p) {
|
|
3967
|
+
var d = p * 4;
|
|
3967
3968
|
i.clamp(), i.sigBytes += d - (i.sigBytes % d || d);
|
|
3968
3969
|
},
|
|
3969
3970
|
unpad: function(i) {
|
|
3970
|
-
for (var
|
|
3971
|
-
if (
|
|
3971
|
+
for (var p = i.words, d = i.sigBytes - 1, d = i.sigBytes - 1; d >= 0; d--)
|
|
3972
|
+
if (p[d >>> 2] >>> 24 - d % 4 * 8 & 255) {
|
|
3972
3973
|
i.sigBytes = d + 1;
|
|
3973
3974
|
break;
|
|
3974
3975
|
}
|
|
3975
3976
|
}
|
|
3976
|
-
},
|
|
3977
|
+
}, l.pad.ZeroPadding;
|
|
3977
3978
|
});
|
|
3978
3979
|
})(gi)), gi.exports;
|
|
3979
3980
|
}
|
|
3980
3981
|
var di = { exports: {} }, cr = di.exports, wt;
|
|
3981
3982
|
function _r() {
|
|
3982
|
-
return wt || (wt = 1, (function(e,
|
|
3983
|
-
(function(
|
|
3983
|
+
return wt || (wt = 1, (function(e, u) {
|
|
3984
|
+
(function(l, i, p) {
|
|
3984
3985
|
e.exports = i($(), se());
|
|
3985
|
-
})(cr, function(
|
|
3986
|
-
return
|
|
3986
|
+
})(cr, function(l) {
|
|
3987
|
+
return l.pad.NoPadding = {
|
|
3987
3988
|
pad: function() {
|
|
3988
3989
|
},
|
|
3989
3990
|
unpad: function() {
|
|
3990
3991
|
}
|
|
3991
|
-
},
|
|
3992
|
+
}, l.pad.NoPadding;
|
|
3992
3993
|
});
|
|
3993
3994
|
})(di)), di.exports;
|
|
3994
3995
|
}
|
|
3995
3996
|
var ci = { exports: {} }, fr = ci.exports, Ot;
|
|
3996
3997
|
function Ur() {
|
|
3997
|
-
return Ot || (Ot = 1, (function(e,
|
|
3998
|
-
(function(
|
|
3998
|
+
return Ot || (Ot = 1, (function(e, u) {
|
|
3999
|
+
(function(l, i, p) {
|
|
3999
4000
|
e.exports = i($(), se());
|
|
4000
|
-
})(fr, function(
|
|
4001
|
+
})(fr, function(l) {
|
|
4001
4002
|
return (function(i) {
|
|
4002
|
-
var
|
|
4003
|
+
var p = l, d = p.lib, C = d.CipherParams, c = p.enc, g = c.Hex, a = p.format;
|
|
4003
4004
|
a.Hex = {
|
|
4004
4005
|
/**
|
|
4005
4006
|
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
@@ -4015,7 +4016,7 @@ function Ur() {
|
|
|
4015
4016
|
* var hexString = CryptoJS.format.Hex.stringify(cipherParams);
|
|
4016
4017
|
*/
|
|
4017
4018
|
stringify: function(t) {
|
|
4018
|
-
return t.ciphertext.toString(
|
|
4019
|
+
return t.ciphertext.toString(g);
|
|
4019
4020
|
},
|
|
4020
4021
|
/**
|
|
4021
4022
|
* Converts a hexadecimally encoded ciphertext string to a cipher params object.
|
|
@@ -4031,30 +4032,30 @@ function Ur() {
|
|
|
4031
4032
|
* var cipherParams = CryptoJS.format.Hex.parse(hexString);
|
|
4032
4033
|
*/
|
|
4033
4034
|
parse: function(t) {
|
|
4034
|
-
var m =
|
|
4035
|
+
var m = g.parse(t);
|
|
4035
4036
|
return C.create({ ciphertext: m });
|
|
4036
4037
|
}
|
|
4037
4038
|
};
|
|
4038
|
-
})(),
|
|
4039
|
+
})(), l.format.Hex;
|
|
4039
4040
|
});
|
|
4040
4041
|
})(ci)), ci.exports;
|
|
4041
4042
|
}
|
|
4042
4043
|
var _i = { exports: {} }, yr = _i.exports, At;
|
|
4043
4044
|
function br() {
|
|
4044
|
-
return At || (At = 1, (function(e,
|
|
4045
|
-
(function(
|
|
4045
|
+
return At || (At = 1, (function(e, u) {
|
|
4046
|
+
(function(l, i, p) {
|
|
4046
4047
|
e.exports = i($(), ea(), aa(), Ve(), se());
|
|
4047
|
-
})(yr, function(
|
|
4048
|
+
})(yr, function(l) {
|
|
4048
4049
|
return (function() {
|
|
4049
|
-
var i =
|
|
4050
|
+
var i = l, p = i.lib, d = p.BlockCipher, C = i.algo, c = [], g = [], a = [], t = [], m = [], n = [], r = [], o = [], _ = [], f = [];
|
|
4050
4051
|
(function() {
|
|
4051
4052
|
for (var U = [], b = 0; b < 256; b++)
|
|
4052
4053
|
b < 128 ? U[b] = b << 1 : U[b] = b << 1 ^ 283;
|
|
4053
4054
|
for (var v = 0, h = 0, b = 0; b < 256; b++) {
|
|
4054
4055
|
var x = h ^ h << 1 ^ h << 2 ^ h << 3 ^ h << 4;
|
|
4055
|
-
x = x >>> 8 ^ x & 255 ^ 99, c[v] = x,
|
|
4056
|
+
x = x >>> 8 ^ x & 255 ^ 99, c[v] = x, g[x] = v;
|
|
4056
4057
|
var E = U[v], O = U[E], k = U[O], S = U[x] * 257 ^ x * 16843008;
|
|
4057
|
-
a[v] = S << 24 | S >>> 8, t[v] = S << 16 | S >>> 16, m[v] = S << 8 | S >>> 24,
|
|
4058
|
+
a[v] = S << 24 | S >>> 8, t[v] = S << 16 | S >>> 16, m[v] = S << 8 | S >>> 24, n[v] = S;
|
|
4058
4059
|
var S = k * 16843009 ^ O * 65537 ^ E * 257 ^ v * 16843008;
|
|
4059
4060
|
r[x] = S << 24 | S >>> 8, o[x] = S << 16 | S >>> 16, _[x] = S << 8 | S >>> 24, f[x] = S, v ? (v = E ^ U[U[U[k ^ E]]], h ^= U[U[h]]) : v = h = 1;
|
|
4060
4061
|
}
|
|
@@ -4076,11 +4077,11 @@ function br() {
|
|
|
4076
4077
|
}
|
|
4077
4078
|
},
|
|
4078
4079
|
encryptBlock: function(U, b) {
|
|
4079
|
-
this._doCryptBlock(U, b, this._keySchedule, a, t, m,
|
|
4080
|
+
this._doCryptBlock(U, b, this._keySchedule, a, t, m, n, c);
|
|
4080
4081
|
},
|
|
4081
4082
|
decryptBlock: function(U, b) {
|
|
4082
4083
|
var v = U[b + 1];
|
|
4083
|
-
U[b + 1] = U[b + 3], U[b + 3] = v, this._doCryptBlock(U, b, this._invKeySchedule, r, o, _, f,
|
|
4084
|
+
U[b + 1] = U[b + 3], U[b + 3] = v, this._doCryptBlock(U, b, this._invKeySchedule, r, o, _, f, g);
|
|
4084
4085
|
var v = U[b + 1];
|
|
4085
4086
|
U[b + 1] = U[b + 3], U[b + 3] = v;
|
|
4086
4087
|
},
|
|
@@ -4095,18 +4096,18 @@ function br() {
|
|
|
4095
4096
|
keySize: 256 / 32
|
|
4096
4097
|
});
|
|
4097
4098
|
i.AES = d._createHelper(s);
|
|
4098
|
-
})(),
|
|
4099
|
+
})(), l.AES;
|
|
4099
4100
|
});
|
|
4100
4101
|
})(_i)), _i.exports;
|
|
4101
4102
|
}
|
|
4102
4103
|
var fi = { exports: {} }, Cr = fi.exports, Bt;
|
|
4103
4104
|
function vr() {
|
|
4104
|
-
return Bt || (Bt = 1, (function(e,
|
|
4105
|
-
(function(
|
|
4105
|
+
return Bt || (Bt = 1, (function(e, u) {
|
|
4106
|
+
(function(l, i, p) {
|
|
4106
4107
|
e.exports = i($(), ea(), aa(), Ve(), se());
|
|
4107
|
-
})(Cr, function(
|
|
4108
|
+
})(Cr, function(l) {
|
|
4108
4109
|
return (function() {
|
|
4109
|
-
var i =
|
|
4110
|
+
var i = l, p = i.lib, d = p.WordArray, C = p.BlockCipher, c = i.algo, g = [
|
|
4110
4111
|
57,
|
|
4111
4112
|
49,
|
|
4112
4113
|
41,
|
|
@@ -4741,7 +4742,7 @@ function vr() {
|
|
|
4741
4742
|
2147483678: 131104,
|
|
4742
4743
|
2147483679: 134350848
|
|
4743
4744
|
}
|
|
4744
|
-
],
|
|
4745
|
+
], n = [
|
|
4745
4746
|
4160749569,
|
|
4746
4747
|
528482304,
|
|
4747
4748
|
33030144,
|
|
@@ -4753,7 +4754,7 @@ function vr() {
|
|
|
4753
4754
|
], r = c.DES = C.extend({
|
|
4754
4755
|
_doReset: function() {
|
|
4755
4756
|
for (var y = this._key, s = y.words, U = [], b = 0; b < 56; b++) {
|
|
4756
|
-
var v =
|
|
4757
|
+
var v = g[b] - 1;
|
|
4757
4758
|
U[b] = s[v >>> 5] >>> 31 - v % 32 & 1;
|
|
4758
4759
|
}
|
|
4759
4760
|
for (var h = this._subKeys = [], x = 0; x < 16; x++) {
|
|
@@ -4777,7 +4778,7 @@ function vr() {
|
|
|
4777
4778
|
this._lBlock = y[s], this._rBlock = y[s + 1], o.call(this, 4, 252645135), o.call(this, 16, 65535), _.call(this, 2, 858993459), _.call(this, 8, 16711935), o.call(this, 1, 1431655765);
|
|
4778
4779
|
for (var b = 0; b < 16; b++) {
|
|
4779
4780
|
for (var v = U[b], h = this._lBlock, x = this._rBlock, E = 0, O = 0; O < 8; O++)
|
|
4780
|
-
E |= m[O][((x ^ v[O]) &
|
|
4781
|
+
E |= m[O][((x ^ v[O]) & n[O]) >>> 0];
|
|
4781
4782
|
this._lBlock = x, this._rBlock = h ^ E;
|
|
4782
4783
|
}
|
|
4783
4784
|
var k = this._lBlock;
|
|
@@ -4815,23 +4816,23 @@ function vr() {
|
|
|
4815
4816
|
blockSize: 64 / 32
|
|
4816
4817
|
});
|
|
4817
4818
|
i.TripleDES = C._createHelper(f);
|
|
4818
|
-
})(),
|
|
4819
|
+
})(), l.TripleDES;
|
|
4819
4820
|
});
|
|
4820
4821
|
})(fi)), fi.exports;
|
|
4821
4822
|
}
|
|
4822
4823
|
var Ui = { exports: {} }, Tr = Ui.exports, Ht;
|
|
4823
4824
|
function hr() {
|
|
4824
|
-
return Ht || (Ht = 1, (function(e,
|
|
4825
|
-
(function(
|
|
4825
|
+
return Ht || (Ht = 1, (function(e, u) {
|
|
4826
|
+
(function(l, i, p) {
|
|
4826
4827
|
e.exports = i($(), ea(), aa(), Ve(), se());
|
|
4827
|
-
})(Tr, function(
|
|
4828
|
+
})(Tr, function(l) {
|
|
4828
4829
|
return (function() {
|
|
4829
|
-
var i =
|
|
4830
|
+
var i = l, p = i.lib, d = p.StreamCipher, C = i.algo, c = C.RC4 = d.extend({
|
|
4830
4831
|
_doReset: function() {
|
|
4831
|
-
for (var t = this._key, m = t.words,
|
|
4832
|
+
for (var t = this._key, m = t.words, n = t.sigBytes, r = this._S = [], o = 0; o < 256; o++)
|
|
4832
4833
|
r[o] = o;
|
|
4833
4834
|
for (var o = 0, _ = 0; o < 256; o++) {
|
|
4834
|
-
var f = o %
|
|
4835
|
+
var f = o % n, y = m[f >>> 2] >>> 24 - f % 4 * 8 & 255;
|
|
4835
4836
|
_ = (_ + r[o] + y) % 256;
|
|
4836
4837
|
var s = r[o];
|
|
4837
4838
|
r[o] = r[_], r[_] = s;
|
|
@@ -4839,18 +4840,18 @@ function hr() {
|
|
|
4839
4840
|
this._i = this._j = 0;
|
|
4840
4841
|
},
|
|
4841
4842
|
_doProcessBlock: function(t, m) {
|
|
4842
|
-
t[m] ^=
|
|
4843
|
+
t[m] ^= g.call(this);
|
|
4843
4844
|
},
|
|
4844
4845
|
keySize: 256 / 32,
|
|
4845
4846
|
ivSize: 0
|
|
4846
4847
|
});
|
|
4847
|
-
function
|
|
4848
|
-
for (var t = this._S, m = this._i,
|
|
4849
|
-
m = (m + 1) % 256,
|
|
4848
|
+
function g() {
|
|
4849
|
+
for (var t = this._S, m = this._i, n = this._j, r = 0, o = 0; o < 4; o++) {
|
|
4850
|
+
m = (m + 1) % 256, n = (n + t[m]) % 256;
|
|
4850
4851
|
var _ = t[m];
|
|
4851
|
-
t[m] = t[
|
|
4852
|
+
t[m] = t[n], t[n] = _, r |= t[(t[m] + t[n]) % 256] << 24 - o * 8;
|
|
4852
4853
|
}
|
|
4853
|
-
return this._i = m, this._j =
|
|
4854
|
+
return this._i = m, this._j = n, r;
|
|
4854
4855
|
}
|
|
4855
4856
|
i.RC4 = d._createHelper(c);
|
|
4856
4857
|
var a = C.RC4Drop = c.extend({
|
|
@@ -4865,43 +4866,43 @@ function hr() {
|
|
|
4865
4866
|
_doReset: function() {
|
|
4866
4867
|
c._doReset.call(this);
|
|
4867
4868
|
for (var t = this.cfg.drop; t > 0; t--)
|
|
4868
|
-
|
|
4869
|
+
g.call(this);
|
|
4869
4870
|
}
|
|
4870
4871
|
});
|
|
4871
4872
|
i.RC4Drop = d._createHelper(a);
|
|
4872
|
-
})(),
|
|
4873
|
+
})(), l.RC4;
|
|
4873
4874
|
});
|
|
4874
4875
|
})(Ui)), Ui.exports;
|
|
4875
4876
|
}
|
|
4876
4877
|
var yi = { exports: {} }, kr = yi.exports, Wt;
|
|
4877
4878
|
function xr() {
|
|
4878
|
-
return Wt || (Wt = 1, (function(e,
|
|
4879
|
-
(function(
|
|
4879
|
+
return Wt || (Wt = 1, (function(e, u) {
|
|
4880
|
+
(function(l, i, p) {
|
|
4880
4881
|
e.exports = i($(), ea(), aa(), Ve(), se());
|
|
4881
|
-
})(kr, function(
|
|
4882
|
+
})(kr, function(l) {
|
|
4882
4883
|
return (function() {
|
|
4883
|
-
var i =
|
|
4884
|
+
var i = l, p = i.lib, d = p.StreamCipher, C = i.algo, c = [], g = [], a = [], t = C.Rabbit = d.extend({
|
|
4884
4885
|
_doReset: function() {
|
|
4885
|
-
for (var
|
|
4886
|
-
|
|
4886
|
+
for (var n = this._key.words, r = this.cfg.iv, o = 0; o < 4; o++)
|
|
4887
|
+
n[o] = (n[o] << 8 | n[o] >>> 24) & 16711935 | (n[o] << 24 | n[o] >>> 8) & 4278255360;
|
|
4887
4888
|
var _ = this._X = [
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4889
|
+
n[0],
|
|
4890
|
+
n[3] << 16 | n[2] >>> 16,
|
|
4891
|
+
n[1],
|
|
4892
|
+
n[0] << 16 | n[3] >>> 16,
|
|
4893
|
+
n[2],
|
|
4894
|
+
n[1] << 16 | n[0] >>> 16,
|
|
4895
|
+
n[3],
|
|
4896
|
+
n[2] << 16 | n[1] >>> 16
|
|
4896
4897
|
], f = this._C = [
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4898
|
+
n[2] << 16 | n[2] >>> 16,
|
|
4899
|
+
n[0] & 4294901760 | n[1] & 65535,
|
|
4900
|
+
n[3] << 16 | n[3] >>> 16,
|
|
4901
|
+
n[1] & 4294901760 | n[2] & 65535,
|
|
4902
|
+
n[0] << 16 | n[0] >>> 16,
|
|
4903
|
+
n[2] & 4294901760 | n[3] & 65535,
|
|
4904
|
+
n[1] << 16 | n[1] >>> 16,
|
|
4905
|
+
n[3] & 4294901760 | n[0] & 65535
|
|
4905
4906
|
];
|
|
4906
4907
|
this._b = 0;
|
|
4907
4908
|
for (var o = 0; o < 4; o++)
|
|
@@ -4915,57 +4916,57 @@ function xr() {
|
|
|
4915
4916
|
m.call(this);
|
|
4916
4917
|
}
|
|
4917
4918
|
},
|
|
4918
|
-
_doProcessBlock: function(
|
|
4919
|
+
_doProcessBlock: function(n, r) {
|
|
4919
4920
|
var o = this._X;
|
|
4920
4921
|
m.call(this), c[0] = o[0] ^ o[5] >>> 16 ^ o[3] << 16, c[1] = o[2] ^ o[7] >>> 16 ^ o[5] << 16, c[2] = o[4] ^ o[1] >>> 16 ^ o[7] << 16, c[3] = o[6] ^ o[3] >>> 16 ^ o[1] << 16;
|
|
4921
4922
|
for (var _ = 0; _ < 4; _++)
|
|
4922
|
-
c[_] = (c[_] << 8 | c[_] >>> 24) & 16711935 | (c[_] << 24 | c[_] >>> 8) & 4278255360,
|
|
4923
|
+
c[_] = (c[_] << 8 | c[_] >>> 24) & 16711935 | (c[_] << 24 | c[_] >>> 8) & 4278255360, n[r + _] ^= c[_];
|
|
4923
4924
|
},
|
|
4924
4925
|
blockSize: 128 / 32,
|
|
4925
4926
|
ivSize: 64 / 32
|
|
4926
4927
|
});
|
|
4927
4928
|
function m() {
|
|
4928
|
-
for (var
|
|
4929
|
-
|
|
4930
|
-
r[0] = r[0] + 1295307597 + this._b | 0, r[1] = r[1] + 3545052371 + (r[0] >>> 0 <
|
|
4929
|
+
for (var n = this._X, r = this._C, o = 0; o < 8; o++)
|
|
4930
|
+
g[o] = r[o];
|
|
4931
|
+
r[0] = r[0] + 1295307597 + this._b | 0, r[1] = r[1] + 3545052371 + (r[0] >>> 0 < g[0] >>> 0 ? 1 : 0) | 0, r[2] = r[2] + 886263092 + (r[1] >>> 0 < g[1] >>> 0 ? 1 : 0) | 0, r[3] = r[3] + 1295307597 + (r[2] >>> 0 < g[2] >>> 0 ? 1 : 0) | 0, r[4] = r[4] + 3545052371 + (r[3] >>> 0 < g[3] >>> 0 ? 1 : 0) | 0, r[5] = r[5] + 886263092 + (r[4] >>> 0 < g[4] >>> 0 ? 1 : 0) | 0, r[6] = r[6] + 1295307597 + (r[5] >>> 0 < g[5] >>> 0 ? 1 : 0) | 0, r[7] = r[7] + 3545052371 + (r[6] >>> 0 < g[6] >>> 0 ? 1 : 0) | 0, this._b = r[7] >>> 0 < g[7] >>> 0 ? 1 : 0;
|
|
4931
4932
|
for (var o = 0; o < 8; o++) {
|
|
4932
|
-
var _ =
|
|
4933
|
+
var _ = n[o] + r[o], f = _ & 65535, y = _ >>> 16, s = ((f * f >>> 17) + f * y >>> 15) + y * y, U = ((_ & 4294901760) * _ | 0) + ((_ & 65535) * _ | 0);
|
|
4933
4934
|
a[o] = s ^ U;
|
|
4934
4935
|
}
|
|
4935
|
-
|
|
4936
|
+
n[0] = a[0] + (a[7] << 16 | a[7] >>> 16) + (a[6] << 16 | a[6] >>> 16) | 0, n[1] = a[1] + (a[0] << 8 | a[0] >>> 24) + a[7] | 0, n[2] = a[2] + (a[1] << 16 | a[1] >>> 16) + (a[0] << 16 | a[0] >>> 16) | 0, n[3] = a[3] + (a[2] << 8 | a[2] >>> 24) + a[1] | 0, n[4] = a[4] + (a[3] << 16 | a[3] >>> 16) + (a[2] << 16 | a[2] >>> 16) | 0, n[5] = a[5] + (a[4] << 8 | a[4] >>> 24) + a[3] | 0, n[6] = a[6] + (a[5] << 16 | a[5] >>> 16) + (a[4] << 16 | a[4] >>> 16) | 0, n[7] = a[7] + (a[6] << 8 | a[6] >>> 24) + a[5] | 0;
|
|
4936
4937
|
}
|
|
4937
4938
|
i.Rabbit = d._createHelper(t);
|
|
4938
|
-
})(),
|
|
4939
|
+
})(), l.Rabbit;
|
|
4939
4940
|
});
|
|
4940
4941
|
})(yi)), yi.exports;
|
|
4941
4942
|
}
|
|
4942
4943
|
var bi = { exports: {} }, Sr = bi.exports, zt;
|
|
4943
4944
|
function Dr() {
|
|
4944
|
-
return zt || (zt = 1, (function(e,
|
|
4945
|
-
(function(
|
|
4945
|
+
return zt || (zt = 1, (function(e, u) {
|
|
4946
|
+
(function(l, i, p) {
|
|
4946
4947
|
e.exports = i($(), ea(), aa(), Ve(), se());
|
|
4947
|
-
})(Sr, function(
|
|
4948
|
+
})(Sr, function(l) {
|
|
4948
4949
|
return (function() {
|
|
4949
|
-
var i =
|
|
4950
|
+
var i = l, p = i.lib, d = p.StreamCipher, C = i.algo, c = [], g = [], a = [], t = C.RabbitLegacy = d.extend({
|
|
4950
4951
|
_doReset: function() {
|
|
4951
|
-
var
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4952
|
+
var n = this._key.words, r = this.cfg.iv, o = this._X = [
|
|
4953
|
+
n[0],
|
|
4954
|
+
n[3] << 16 | n[2] >>> 16,
|
|
4955
|
+
n[1],
|
|
4956
|
+
n[0] << 16 | n[3] >>> 16,
|
|
4957
|
+
n[2],
|
|
4958
|
+
n[1] << 16 | n[0] >>> 16,
|
|
4959
|
+
n[3],
|
|
4960
|
+
n[2] << 16 | n[1] >>> 16
|
|
4960
4961
|
], _ = this._C = [
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4962
|
+
n[2] << 16 | n[2] >>> 16,
|
|
4963
|
+
n[0] & 4294901760 | n[1] & 65535,
|
|
4964
|
+
n[3] << 16 | n[3] >>> 16,
|
|
4965
|
+
n[1] & 4294901760 | n[2] & 65535,
|
|
4966
|
+
n[0] << 16 | n[0] >>> 16,
|
|
4967
|
+
n[2] & 4294901760 | n[3] & 65535,
|
|
4968
|
+
n[1] << 16 | n[1] >>> 16,
|
|
4969
|
+
n[3] & 4294901760 | n[0] & 65535
|
|
4969
4970
|
];
|
|
4970
4971
|
this._b = 0;
|
|
4971
4972
|
for (var f = 0; f < 4; f++)
|
|
@@ -4979,39 +4980,39 @@ function Dr() {
|
|
|
4979
4980
|
m.call(this);
|
|
4980
4981
|
}
|
|
4981
4982
|
},
|
|
4982
|
-
_doProcessBlock: function(
|
|
4983
|
+
_doProcessBlock: function(n, r) {
|
|
4983
4984
|
var o = this._X;
|
|
4984
4985
|
m.call(this), c[0] = o[0] ^ o[5] >>> 16 ^ o[3] << 16, c[1] = o[2] ^ o[7] >>> 16 ^ o[5] << 16, c[2] = o[4] ^ o[1] >>> 16 ^ o[7] << 16, c[3] = o[6] ^ o[3] >>> 16 ^ o[1] << 16;
|
|
4985
4986
|
for (var _ = 0; _ < 4; _++)
|
|
4986
|
-
c[_] = (c[_] << 8 | c[_] >>> 24) & 16711935 | (c[_] << 24 | c[_] >>> 8) & 4278255360,
|
|
4987
|
+
c[_] = (c[_] << 8 | c[_] >>> 24) & 16711935 | (c[_] << 24 | c[_] >>> 8) & 4278255360, n[r + _] ^= c[_];
|
|
4987
4988
|
},
|
|
4988
4989
|
blockSize: 128 / 32,
|
|
4989
4990
|
ivSize: 64 / 32
|
|
4990
4991
|
});
|
|
4991
4992
|
function m() {
|
|
4992
|
-
for (var
|
|
4993
|
-
|
|
4994
|
-
r[0] = r[0] + 1295307597 + this._b | 0, r[1] = r[1] + 3545052371 + (r[0] >>> 0 <
|
|
4993
|
+
for (var n = this._X, r = this._C, o = 0; o < 8; o++)
|
|
4994
|
+
g[o] = r[o];
|
|
4995
|
+
r[0] = r[0] + 1295307597 + this._b | 0, r[1] = r[1] + 3545052371 + (r[0] >>> 0 < g[0] >>> 0 ? 1 : 0) | 0, r[2] = r[2] + 886263092 + (r[1] >>> 0 < g[1] >>> 0 ? 1 : 0) | 0, r[3] = r[3] + 1295307597 + (r[2] >>> 0 < g[2] >>> 0 ? 1 : 0) | 0, r[4] = r[4] + 3545052371 + (r[3] >>> 0 < g[3] >>> 0 ? 1 : 0) | 0, r[5] = r[5] + 886263092 + (r[4] >>> 0 < g[4] >>> 0 ? 1 : 0) | 0, r[6] = r[6] + 1295307597 + (r[5] >>> 0 < g[5] >>> 0 ? 1 : 0) | 0, r[7] = r[7] + 3545052371 + (r[6] >>> 0 < g[6] >>> 0 ? 1 : 0) | 0, this._b = r[7] >>> 0 < g[7] >>> 0 ? 1 : 0;
|
|
4995
4996
|
for (var o = 0; o < 8; o++) {
|
|
4996
|
-
var _ =
|
|
4997
|
+
var _ = n[o] + r[o], f = _ & 65535, y = _ >>> 16, s = ((f * f >>> 17) + f * y >>> 15) + y * y, U = ((_ & 4294901760) * _ | 0) + ((_ & 65535) * _ | 0);
|
|
4997
4998
|
a[o] = s ^ U;
|
|
4998
4999
|
}
|
|
4999
|
-
|
|
5000
|
+
n[0] = a[0] + (a[7] << 16 | a[7] >>> 16) + (a[6] << 16 | a[6] >>> 16) | 0, n[1] = a[1] + (a[0] << 8 | a[0] >>> 24) + a[7] | 0, n[2] = a[2] + (a[1] << 16 | a[1] >>> 16) + (a[0] << 16 | a[0] >>> 16) | 0, n[3] = a[3] + (a[2] << 8 | a[2] >>> 24) + a[1] | 0, n[4] = a[4] + (a[3] << 16 | a[3] >>> 16) + (a[2] << 16 | a[2] >>> 16) | 0, n[5] = a[5] + (a[4] << 8 | a[4] >>> 24) + a[3] | 0, n[6] = a[6] + (a[5] << 16 | a[5] >>> 16) + (a[4] << 16 | a[4] >>> 16) | 0, n[7] = a[7] + (a[6] << 8 | a[6] >>> 24) + a[5] | 0;
|
|
5000
5001
|
}
|
|
5001
5002
|
i.RabbitLegacy = d._createHelper(t);
|
|
5002
|
-
})(),
|
|
5003
|
+
})(), l.RabbitLegacy;
|
|
5003
5004
|
});
|
|
5004
5005
|
})(bi)), bi.exports;
|
|
5005
5006
|
}
|
|
5006
5007
|
var Ci = { exports: {} }, Er = Ci.exports, Vt;
|
|
5007
5008
|
function Nr() {
|
|
5008
|
-
return Vt || (Vt = 1, (function(e,
|
|
5009
|
-
(function(
|
|
5009
|
+
return Vt || (Vt = 1, (function(e, u) {
|
|
5010
|
+
(function(l, i, p) {
|
|
5010
5011
|
e.exports = i($(), ea(), aa(), Ve(), se());
|
|
5011
|
-
})(Er, function(
|
|
5012
|
+
})(Er, function(l) {
|
|
5012
5013
|
return (function() {
|
|
5013
|
-
var i =
|
|
5014
|
-
const c = 16,
|
|
5014
|
+
var i = l, p = i.lib, d = p.BlockCipher, C = i.algo;
|
|
5015
|
+
const c = 16, g = [
|
|
5015
5016
|
608135816,
|
|
5016
5017
|
2242054355,
|
|
5017
5018
|
320440878,
|
|
@@ -6072,7 +6073,7 @@ function Nr() {
|
|
|
6072
6073
|
let s = y >> 24 & 255, U = y >> 16 & 255, b = y >> 8 & 255, v = y & 255, h = f.sbox[0][s] + f.sbox[1][U];
|
|
6073
6074
|
return h = h ^ f.sbox[2][b], h = h + f.sbox[3][v], h;
|
|
6074
6075
|
}
|
|
6075
|
-
function
|
|
6076
|
+
function n(f, y, s) {
|
|
6076
6077
|
let U = y, b = s, v;
|
|
6077
6078
|
for (let h = 0; h < c; ++h)
|
|
6078
6079
|
U = U ^ f.pbox[h], b = m(f, U) ^ b, v = U, U = b, b = v;
|
|
@@ -6092,13 +6093,13 @@ function Nr() {
|
|
|
6092
6093
|
}
|
|
6093
6094
|
let U = 0;
|
|
6094
6095
|
for (let x = 0; x < c + 2; x++)
|
|
6095
|
-
f.pbox[x] =
|
|
6096
|
+
f.pbox[x] = g[x] ^ y[U], U++, U >= s && (U = 0);
|
|
6096
6097
|
let b = 0, v = 0, h = 0;
|
|
6097
6098
|
for (let x = 0; x < c + 2; x += 2)
|
|
6098
|
-
h =
|
|
6099
|
+
h = n(f, b, v), b = h.left, v = h.right, f.pbox[x] = b, f.pbox[x + 1] = v;
|
|
6099
6100
|
for (let x = 0; x < 4; x++)
|
|
6100
6101
|
for (let E = 0; E < 256; E += 2)
|
|
6101
|
-
h =
|
|
6102
|
+
h = n(f, b, v), b = h.left, v = h.right, f.sbox[x][E] = b, f.sbox[x][E + 1] = v;
|
|
6102
6103
|
return !0;
|
|
6103
6104
|
}
|
|
6104
6105
|
var _ = C.Blowfish = d.extend({
|
|
@@ -6109,7 +6110,7 @@ function Nr() {
|
|
|
6109
6110
|
}
|
|
6110
6111
|
},
|
|
6111
6112
|
encryptBlock: function(f, y) {
|
|
6112
|
-
var s =
|
|
6113
|
+
var s = n(t, f[y], f[y + 1]);
|
|
6113
6114
|
f[y] = s.left, f[y + 1] = s.right;
|
|
6114
6115
|
},
|
|
6115
6116
|
decryptBlock: function(f, y) {
|
|
@@ -6121,33 +6122,33 @@ function Nr() {
|
|
|
6121
6122
|
ivSize: 64 / 32
|
|
6122
6123
|
});
|
|
6123
6124
|
i.Blowfish = d._createHelper(_);
|
|
6124
|
-
})(),
|
|
6125
|
+
})(), l.Blowfish;
|
|
6125
6126
|
});
|
|
6126
6127
|
})(Ci)), Ci.exports;
|
|
6127
6128
|
}
|
|
6128
6129
|
var Lr = Ba.exports, Zt;
|
|
6129
6130
|
function Gr() {
|
|
6130
|
-
return Zt || (Zt = 1, (function(e,
|
|
6131
|
-
(function(
|
|
6131
|
+
return Zt || (Zt = 1, (function(e, u) {
|
|
6132
|
+
(function(l, i, p) {
|
|
6132
6133
|
e.exports = i($(), ki(), Dl(), Nl(), ea(), Ml(), aa(), xn(), Vi(), Ol(), Sn(), Hl(), zl(), Zl(), Zi(), Kl(), Ve(), se(), Ql(), Xl(), ar(), tr(), lr(), or(), sr(), pr(), dr(), _r(), Ur(), br(), vr(), hr(), xr(), Dr(), Nr());
|
|
6133
|
-
})(Lr, function(
|
|
6134
|
-
return
|
|
6134
|
+
})(Lr, function(l) {
|
|
6135
|
+
return l;
|
|
6135
6136
|
});
|
|
6136
6137
|
})(Ba)), Ba.exports;
|
|
6137
6138
|
}
|
|
6138
6139
|
var Dn = Gr();
|
|
6139
6140
|
const je = /* @__PURE__ */ zi(Dn), $e = (e) => {
|
|
6140
|
-
const
|
|
6141
|
+
const u = "mySecretPassphrase", l = je.lib.WordArray.random(16), i = je.PBKDF2(u, l, {
|
|
6141
6142
|
keySize: 128 / 32,
|
|
6142
6143
|
iterations: 1e3
|
|
6143
|
-
}),
|
|
6144
|
-
iv:
|
|
6144
|
+
}), p = je.AES.encrypt(e, i, {
|
|
6145
|
+
iv: l,
|
|
6145
6146
|
mode: je.mode.CBC,
|
|
6146
6147
|
padding: je.pad.Pkcs7
|
|
6147
|
-
}), d =
|
|
6148
|
+
}), d = l.toString(je.enc.Base64), C = je.enc.Base64.stringify(p.ciphertext);
|
|
6148
6149
|
return d + ":" + C;
|
|
6149
6150
|
}, fe = () => {
|
|
6150
|
-
const { client: e, formDataClient:
|
|
6151
|
+
const { client: e, formDataClient: u } = re(), l = q(
|
|
6151
6152
|
async (s) => {
|
|
6152
6153
|
const { mac_address: U = "", app_version: b = "", anydesk_id: v = "" } = s, { data: h } = await e.post("/cash-register/login", {
|
|
6153
6154
|
mac_address: U,
|
|
@@ -6157,7 +6158,7 @@ const je = /* @__PURE__ */ zi(Dn), $e = (e) => {
|
|
|
6157
6158
|
return h;
|
|
6158
6159
|
},
|
|
6159
6160
|
[e]
|
|
6160
|
-
), i = q(async () => e.get("/member/getMemberInfo"), [e]),
|
|
6161
|
+
), i = q(async () => e.get("/member/getMemberInfo"), [e]), p = q(async () => await e.get("/member/getGameList"), [e]), d = q(async () => await e.get("/member/getNowCurrencyExchange"), [e]), C = q(async () => await e.get("member/getFavoriteGame"), [e]), c = q(
|
|
6161
6162
|
async (s) => {
|
|
6162
6163
|
const { account: U, password: b, trans_code: v } = s;
|
|
6163
6164
|
return await e.post("/login", {
|
|
@@ -6167,7 +6168,7 @@ const je = /* @__PURE__ */ zi(Dn), $e = (e) => {
|
|
|
6167
6168
|
});
|
|
6168
6169
|
},
|
|
6169
6170
|
[e]
|
|
6170
|
-
),
|
|
6171
|
+
), g = q(async () => await e.post("/logout"), [e]), a = q(
|
|
6171
6172
|
async (s) => {
|
|
6172
6173
|
const { gameUid: U = "", status: b = 0 } = s;
|
|
6173
6174
|
return await e.put(`/member/toggleFavoriteGame/${U}`, {
|
|
@@ -6195,7 +6196,7 @@ const je = /* @__PURE__ */ zi(Dn), $e = (e) => {
|
|
|
6195
6196
|
return b && (O.unlimit_code = b), h && (O.invite = h), e.post("/signUp", O);
|
|
6196
6197
|
},
|
|
6197
6198
|
[e]
|
|
6198
|
-
),
|
|
6199
|
+
), n = q(
|
|
6199
6200
|
async (s) => {
|
|
6200
6201
|
const { name: U, birthday: b, email: v, mobile: h } = s;
|
|
6201
6202
|
return await e.post("/editMembetInfo", {
|
|
@@ -6260,22 +6261,22 @@ const je = /* @__PURE__ */ zi(Dn), $e = (e) => {
|
|
|
6260
6261
|
id_card: E,
|
|
6261
6262
|
id_pic: O
|
|
6262
6263
|
} = s;
|
|
6263
|
-
return await
|
|
6264
|
+
return await u.post("/bindBankAccount", s);
|
|
6264
6265
|
},
|
|
6265
|
-
[
|
|
6266
|
+
[u]
|
|
6266
6267
|
);
|
|
6267
6268
|
return {
|
|
6268
|
-
machineLoginApi:
|
|
6269
|
+
machineLoginApi: l,
|
|
6269
6270
|
userInfoApi: i,
|
|
6270
|
-
userGameListApi:
|
|
6271
|
+
userGameListApi: p,
|
|
6271
6272
|
userFavoriteGameApi: C,
|
|
6272
6273
|
userCurrencyExchangeApi: d,
|
|
6273
6274
|
userLoginApi: c,
|
|
6274
|
-
userLogoutApi:
|
|
6275
|
+
userLogoutApi: g,
|
|
6275
6276
|
addOrRemoveFavoriteGameApi: a,
|
|
6276
6277
|
rankingGameApi: t,
|
|
6277
6278
|
userSignUpApi: m,
|
|
6278
|
-
updateUserInfoApi:
|
|
6279
|
+
updateUserInfoApi: n,
|
|
6279
6280
|
resetUserPasswordApi: r,
|
|
6280
6281
|
setUserTransactionPasswordApi: o,
|
|
6281
6282
|
resetUserTransactionPasswordApi: _,
|
|
@@ -6303,12 +6304,12 @@ const je = /* @__PURE__ */ zi(Dn), $e = (e) => {
|
|
|
6303
6304
|
},
|
|
6304
6305
|
user: { favorite: [] }
|
|
6305
6306
|
}, Rr = ({ enabled: e = !0 } = {}) => {
|
|
6306
|
-
const { getToken:
|
|
6307
|
+
const { getToken: u } = re(), { userFavoriteGameApi: l, userGameListApi: i } = fe(), { data: p, isLoading: d, error: C, refetch: c } = ae({
|
|
6307
6308
|
queryKey: ["gamesInfo"],
|
|
6308
6309
|
queryFn: async () => {
|
|
6309
|
-
let
|
|
6310
|
+
let g = {}, a = {};
|
|
6310
6311
|
try {
|
|
6311
|
-
await
|
|
6312
|
+
await u?.() && (a = await i(), g = await l());
|
|
6312
6313
|
} catch (t) {
|
|
6313
6314
|
console.warn("Failed to fetch favorite games:", t);
|
|
6314
6315
|
}
|
|
@@ -6319,7 +6320,7 @@ const je = /* @__PURE__ */ zi(Dn), $e = (e) => {
|
|
|
6319
6320
|
allGame_subtype: a.gameSubType || window.gameSubType || [],
|
|
6320
6321
|
allNewGameList: a.newGames || window.newGames || [],
|
|
6321
6322
|
allTopGameList: a.topGames || window.topGames || [],
|
|
6322
|
-
userFavoriteGame:
|
|
6323
|
+
userFavoriteGame: g.userFavoriteGame || {},
|
|
6323
6324
|
randomlySelectedGames: a.randomlySelectedGames || window.randomlySelectedGames || [],
|
|
6324
6325
|
exclusiveBrandGames: a.exclusiveBrandGames || window.exclusiveBrandGames || [],
|
|
6325
6326
|
highlightGames: a.highlightGames || window.highlightGames || [],
|
|
@@ -6335,7 +6336,7 @@ const je = /* @__PURE__ */ zi(Dn), $e = (e) => {
|
|
|
6335
6336
|
refetchOnWindowFocus: !1
|
|
6336
6337
|
});
|
|
6337
6338
|
return {
|
|
6338
|
-
gamesInfo:
|
|
6339
|
+
gamesInfo: p || Mr,
|
|
6339
6340
|
isLoading: d,
|
|
6340
6341
|
error: C,
|
|
6341
6342
|
refetch: c
|
|
@@ -32869,25 +32870,25 @@ const je = /* @__PURE__ */ zi(Dn), $e = (e) => {
|
|
|
32869
32870
|
});
|
|
32870
32871
|
}, Fr = ({
|
|
32871
32872
|
children: e,
|
|
32872
|
-
autoFetch:
|
|
32873
|
-
mockData:
|
|
32873
|
+
autoFetch: u = !1,
|
|
32874
|
+
mockData: l = !1
|
|
32874
32875
|
}) => {
|
|
32875
32876
|
ya(() => {
|
|
32876
|
-
|
|
32877
|
-
}, [
|
|
32878
|
-
const i = Rr({ enabled:
|
|
32877
|
+
l && Pr(!0);
|
|
32878
|
+
}, [l]);
|
|
32879
|
+
const i = Rr({ enabled: u });
|
|
32879
32880
|
return /* @__PURE__ */ Oa.jsx(Cn.Provider, { value: i, children: e });
|
|
32880
32881
|
};
|
|
32881
32882
|
function qo({
|
|
32882
32883
|
children: e,
|
|
32883
|
-
autoFetchGamesInfo:
|
|
32884
|
-
useMockData:
|
|
32884
|
+
autoFetchGamesInfo: u = !1,
|
|
32885
|
+
useMockData: l = !1,
|
|
32885
32886
|
queryClient: i,
|
|
32886
|
-
...
|
|
32887
|
+
...p
|
|
32887
32888
|
}) {
|
|
32888
|
-
const d = wa(() => rt(
|
|
32889
|
-
() => rt({ ...
|
|
32890
|
-
[
|
|
32889
|
+
const d = wa(() => rt(p), [p]), C = wa(
|
|
32890
|
+
() => rt({ ...p, formData: !0 }),
|
|
32891
|
+
[p]
|
|
32891
32892
|
), c = wa(
|
|
32892
32893
|
() => new jn({
|
|
32893
32894
|
defaultOptions: {
|
|
@@ -32898,16 +32899,16 @@ function qo({
|
|
|
32898
32899
|
}
|
|
32899
32900
|
}),
|
|
32900
32901
|
[]
|
|
32901
|
-
),
|
|
32902
|
-
return /* @__PURE__ */ Oa.jsx($n, { client:
|
|
32902
|
+
), g = i || c;
|
|
32903
|
+
return /* @__PURE__ */ Oa.jsx($n, { client: g, children: /* @__PURE__ */ Oa.jsx(bn.Provider, { value: { client: d, formDataClient: C, ...p }, children: /* @__PURE__ */ Oa.jsx(Fr, { autoFetch: u, mockData: l, children: e }) }) });
|
|
32903
32904
|
}
|
|
32904
|
-
const jo = ({ otherQueryKey: e = [], options:
|
|
32905
|
-
const { userCurrencyExchangeApi:
|
|
32905
|
+
const jo = ({ otherQueryKey: e = [], options: u = {} } = {}) => {
|
|
32906
|
+
const { userCurrencyExchangeApi: l } = fe(), { getToken: i } = re(), { enabled: p, ...d } = u, c = !!i?.() && (p ? p.every((g) => g) : !0);
|
|
32906
32907
|
return Un({
|
|
32907
32908
|
queries: [
|
|
32908
32909
|
{
|
|
32909
32910
|
queryKey: ["userCurrencyExchange", ...e],
|
|
32910
|
-
queryFn: () =>
|
|
32911
|
+
queryFn: () => l(),
|
|
32911
32912
|
enabled: c,
|
|
32912
32913
|
// ← 使用合併後的條件
|
|
32913
32914
|
...d
|
|
@@ -32917,56 +32918,56 @@ const jo = ({ otherQueryKey: e = [], options: p = {} } = {}) => {
|
|
|
32917
32918
|
});
|
|
32918
32919
|
}, $o = ({
|
|
32919
32920
|
refetchInterval: e = 5e4,
|
|
32920
|
-
trigger:
|
|
32921
|
-
enabled:
|
|
32921
|
+
trigger: u = [],
|
|
32922
|
+
enabled: l = !0
|
|
32922
32923
|
} = {}) => {
|
|
32923
|
-
const { getToken: i } = re(),
|
|
32924
|
+
const { getToken: i } = re(), p = i?.(), { userInfoApi: d } = fe();
|
|
32924
32925
|
return Un({
|
|
32925
32926
|
queries: [
|
|
32926
32927
|
{
|
|
32927
|
-
queryKey: ["getMemberInfo", ...
|
|
32928
|
+
queryKey: ["getMemberInfo", ...u],
|
|
32928
32929
|
queryFn: async () => await d(),
|
|
32929
32930
|
refetchInterval: e,
|
|
32930
|
-
enabled: !!
|
|
32931
|
+
enabled: !!p && l
|
|
32931
32932
|
}
|
|
32932
32933
|
]
|
|
32933
32934
|
});
|
|
32934
32935
|
}, Qo = ({ enabled: e = !0 } = {}) => {
|
|
32935
32936
|
const {
|
|
32936
|
-
userInfoApi:
|
|
32937
|
-
userFavoriteGameApi:
|
|
32937
|
+
userInfoApi: u,
|
|
32938
|
+
userFavoriteGameApi: l,
|
|
32938
32939
|
userGameListApi: i,
|
|
32939
|
-
userCurrencyExchangeApi:
|
|
32940
|
+
userCurrencyExchangeApi: p
|
|
32940
32941
|
} = fe(), d = ae({
|
|
32941
32942
|
queryKey: ["getMemInfo"],
|
|
32942
|
-
queryFn: async () =>
|
|
32943
|
+
queryFn: async () => u(),
|
|
32943
32944
|
enabled: e
|
|
32944
32945
|
}), C = ae({
|
|
32945
32946
|
queryKey: ["getFavoriteGame"],
|
|
32946
|
-
queryFn: async () =>
|
|
32947
|
+
queryFn: async () => l(),
|
|
32947
32948
|
enabled: e && d.isSuccess
|
|
32948
32949
|
}), c = ae({
|
|
32949
32950
|
queryKey: ["getUserGameList"],
|
|
32950
32951
|
queryFn: async () => i(),
|
|
32951
32952
|
enabled: e && d.isSuccess && C.isSuccess
|
|
32952
|
-
}),
|
|
32953
|
+
}), g = ae({
|
|
32953
32954
|
queryKey: ["getUserCurrencyExchange"],
|
|
32954
|
-
queryFn: async () =>
|
|
32955
|
+
queryFn: async () => p(),
|
|
32955
32956
|
enabled: e && d.isSuccess && C.isSuccess && c.isSuccess
|
|
32956
32957
|
});
|
|
32957
32958
|
return [
|
|
32958
32959
|
d,
|
|
32959
32960
|
C,
|
|
32960
32961
|
c,
|
|
32961
|
-
|
|
32962
|
+
g
|
|
32962
32963
|
];
|
|
32963
32964
|
}, Ji = () => {
|
|
32964
|
-
const { client: e, lng:
|
|
32965
|
+
const { client: e, lng: u } = re(), l = oa(u || "tw"), i = q(
|
|
32965
32966
|
async (C) => {
|
|
32966
32967
|
const {
|
|
32967
32968
|
gameUid: c = "",
|
|
32968
32969
|
// 遊戲唯一標識
|
|
32969
|
-
gameCode:
|
|
32970
|
+
gameCode: g = "",
|
|
32970
32971
|
// 遊戲代碼
|
|
32971
32972
|
isMobile: a = !1,
|
|
32972
32973
|
// 是否為行動裝置
|
|
@@ -32977,26 +32978,26 @@ const jo = ({ otherQueryKey: e = [], options: p = {} } = {}) => {
|
|
|
32977
32978
|
} = C;
|
|
32978
32979
|
return await e.post("/game/go", {
|
|
32979
32980
|
gameUid: c,
|
|
32980
|
-
gameCode:
|
|
32981
|
-
lang:
|
|
32981
|
+
gameCode: g,
|
|
32982
|
+
lang: l,
|
|
32982
32983
|
is_mobile: a,
|
|
32983
32984
|
currency_code: t,
|
|
32984
32985
|
gameCurrencyNow: m,
|
|
32985
32986
|
walletCurrencyNow: m
|
|
32986
32987
|
});
|
|
32987
32988
|
},
|
|
32988
|
-
[e,
|
|
32989
|
-
),
|
|
32989
|
+
[e, l]
|
|
32990
|
+
), p = q(
|
|
32990
32991
|
async (C) => {
|
|
32991
32992
|
const {
|
|
32992
32993
|
startDate: c = de().add(-1, "day").format("YYYY-MM-DD 12:00:00"),
|
|
32993
|
-
endDate:
|
|
32994
|
+
endDate: g = de().format("YYYY-MM-DD 11:59:59"),
|
|
32994
32995
|
platform: a = "",
|
|
32995
32996
|
limit: t = 25
|
|
32996
32997
|
} = C, { data: m } = await e.get("/report/netprofit", {
|
|
32997
32998
|
params: {
|
|
32998
32999
|
str_date: c,
|
|
32999
|
-
end_Date:
|
|
33000
|
+
end_Date: g,
|
|
33000
33001
|
platform: a,
|
|
33001
33002
|
limit: t
|
|
33002
33003
|
}
|
|
@@ -33008,40 +33009,40 @@ const jo = ({ otherQueryKey: e = [], options: p = {} } = {}) => {
|
|
|
33008
33009
|
async (C) => {
|
|
33009
33010
|
const {
|
|
33010
33011
|
startDate: c = de().add(-1, "day").format("YYYY-MM-DD 12:00:00"),
|
|
33011
|
-
endDate:
|
|
33012
|
+
endDate: g = de().format("YYYY-MM-DD 11:59:59"),
|
|
33012
33013
|
platform: a,
|
|
33013
33014
|
limit: t = 25,
|
|
33014
33015
|
page: m = 1
|
|
33015
|
-
} = C, { data:
|
|
33016
|
+
} = C, { data: n } = await e.get("/report/betlog", {
|
|
33016
33017
|
params: {
|
|
33017
33018
|
str_date: c,
|
|
33018
|
-
end_Date:
|
|
33019
|
+
end_Date: g,
|
|
33019
33020
|
platform: a,
|
|
33020
33021
|
limit: t,
|
|
33021
33022
|
page: m
|
|
33022
33023
|
}
|
|
33023
33024
|
});
|
|
33024
|
-
return
|
|
33025
|
+
return n;
|
|
33025
33026
|
},
|
|
33026
33027
|
[e]
|
|
33027
33028
|
);
|
|
33028
|
-
return { playGameApi: i, betRecordApi:
|
|
33029
|
-
}, wr = ({ options: e, formData:
|
|
33030
|
-
const { betRecordApi:
|
|
33029
|
+
return { playGameApi: i, betRecordApi: p, betRecordDetailApi: d };
|
|
33030
|
+
}, wr = ({ options: e, formData: u } = {}) => {
|
|
33031
|
+
const { betRecordApi: l } = Ji();
|
|
33031
33032
|
return ae({
|
|
33032
33033
|
queryKey: ["getBetRecord"],
|
|
33033
|
-
queryFn: async () => await
|
|
33034
|
+
queryFn: async () => await l(u),
|
|
33034
33035
|
select: (i) => yn(i).map(([d, C]) => ({
|
|
33035
33036
|
...C,
|
|
33036
33037
|
platform: d
|
|
33037
33038
|
})),
|
|
33038
33039
|
...e
|
|
33039
33040
|
});
|
|
33040
|
-
}, Or = ({ options: e, formData:
|
|
33041
|
-
const { betRecordDetailApi:
|
|
33041
|
+
}, Or = ({ options: e, formData: u } = {}) => {
|
|
33042
|
+
const { betRecordDetailApi: l } = Ji();
|
|
33042
33043
|
return ae({
|
|
33043
33044
|
queryKey: ["getBetRecordDetail"],
|
|
33044
|
-
queryFn: async () => await
|
|
33045
|
+
queryFn: async () => await l(u),
|
|
33045
33046
|
...e
|
|
33046
33047
|
});
|
|
33047
33048
|
}, Yo = ({
|
|
@@ -33050,23 +33051,23 @@ const jo = ({ otherQueryKey: e = [], options: p = {} } = {}) => {
|
|
|
33050
33051
|
betRecordDetail: {}
|
|
33051
33052
|
}
|
|
33052
33053
|
}) => {
|
|
33053
|
-
const
|
|
33054
|
+
const u = wr({ options: e.betRecord }), l = Or({
|
|
33054
33055
|
options: e.betRecordDetail
|
|
33055
33056
|
});
|
|
33056
33057
|
return {
|
|
33057
|
-
betRecord:
|
|
33058
|
-
betRecordDetail:
|
|
33058
|
+
betRecord: u,
|
|
33059
|
+
betRecordDetail: l
|
|
33059
33060
|
};
|
|
33060
33061
|
};
|
|
33061
33062
|
var Fi = {}, Te = {}, wi = {}, Jt;
|
|
33062
33063
|
function Le() {
|
|
33063
33064
|
return Jt || (Jt = 1, (function(e) {
|
|
33064
33065
|
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;
|
|
33065
|
-
var
|
|
33066
|
+
var u = 1, l = 1e3 * u;
|
|
33066
33067
|
e.DEFAULT_OPTIONS = {}, e.EMPTY_EVENT_HANDLERS = {}, e.DEFAULT_EVENT_SOURCE_OPTIONS = {
|
|
33067
33068
|
withCredentials: !1,
|
|
33068
33069
|
events: e.EMPTY_EVENT_HANDLERS
|
|
33069
|
-
}, e.SOCKET_IO_PING_INTERVAL = 25 *
|
|
33070
|
+
}, e.SOCKET_IO_PING_INTERVAL = 25 * l, e.SOCKET_IO_PATH = "/socket.io/?EIO=3&transport=websocket", e.SOCKET_IO_PING_CODE = "2", e.DEFAULT_RECONNECT_LIMIT = 20, e.DEFAULT_RECONNECT_INTERVAL_MS = 5e3, e.UNPARSABLE_JSON_OBJECT = {}, e.DEFAULT_HEARTBEAT = {
|
|
33070
33071
|
message: "ping",
|
|
33071
33072
|
timeout: 6e4,
|
|
33072
33073
|
interval: 25e3
|
|
@@ -33075,58 +33076,58 @@ function Le() {
|
|
|
33075
33076
|
(function(d) {
|
|
33076
33077
|
d[d.UNINSTANTIATED = -1] = "UNINSTANTIATED", d[d.CONNECTING = 0] = "CONNECTING", d[d.OPEN = 1] = "OPEN", d[d.CLOSING = 2] = "CLOSING", d[d.CLOSED = 3] = "CLOSED";
|
|
33077
33078
|
})(i || (e.ReadyState = i = {}));
|
|
33078
|
-
var
|
|
33079
|
+
var p = function() {
|
|
33079
33080
|
try {
|
|
33080
33081
|
return "EventSource" in globalThis;
|
|
33081
33082
|
} catch {
|
|
33082
33083
|
return !1;
|
|
33083
33084
|
}
|
|
33084
33085
|
};
|
|
33085
|
-
e.isReactNative = typeof navigator < "u" && navigator.product === "ReactNative", e.isEventSourceSupported = !e.isReactNative &&
|
|
33086
|
+
e.isReactNative = typeof navigator < "u" && navigator.product === "ReactNative", e.isEventSourceSupported = !e.isReactNative && p();
|
|
33086
33087
|
})(wi)), wi;
|
|
33087
33088
|
}
|
|
33088
33089
|
var fa = {}, Oi = {}, It;
|
|
33089
33090
|
function Ii() {
|
|
33090
33091
|
return It || (It = 1, (function(e) {
|
|
33091
33092
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetWebSockets = e.sharedWebSockets = void 0, e.sharedWebSockets = {};
|
|
33092
|
-
var
|
|
33093
|
-
if (
|
|
33094
|
-
delete e.sharedWebSockets[
|
|
33093
|
+
var u = function(l) {
|
|
33094
|
+
if (l && e.sharedWebSockets.hasOwnProperty(l))
|
|
33095
|
+
delete e.sharedWebSockets[l];
|
|
33095
33096
|
else
|
|
33096
33097
|
for (var i in e.sharedWebSockets)
|
|
33097
33098
|
e.sharedWebSockets.hasOwnProperty(i) && delete e.sharedWebSockets[i];
|
|
33098
33099
|
};
|
|
33099
|
-
e.resetWebSockets =
|
|
33100
|
+
e.resetWebSockets = u;
|
|
33100
33101
|
})(Oi)), Oi;
|
|
33101
33102
|
}
|
|
33102
33103
|
var Qe = {}, Pe = {}, Kt;
|
|
33103
33104
|
function Ki() {
|
|
33104
33105
|
if (Kt) return Pe;
|
|
33105
33106
|
Kt = 1, Object.defineProperty(Pe, "__esModule", { value: !0 }), Pe.setUpSocketIOPing = Pe.appendQueryParams = Pe.parseSocketIOUrl = void 0;
|
|
33106
|
-
var e = Le(),
|
|
33107
|
-
if (
|
|
33108
|
-
var d = /^https|wss/.test(
|
|
33109
|
-
return "".concat(
|
|
33110
|
-
} else if (
|
|
33111
|
-
var d = /^https/.test(window.location.protocol),
|
|
33112
|
-
return "".concat(
|
|
33107
|
+
var e = Le(), u = function(p) {
|
|
33108
|
+
if (p) {
|
|
33109
|
+
var d = /^https|wss/.test(p), C = p.replace(/^(https?|wss?)(:\/\/)?/, ""), c = C.replace(/\/$/, ""), g = d ? "wss" : "ws";
|
|
33110
|
+
return "".concat(g, "://").concat(c).concat(e.SOCKET_IO_PATH);
|
|
33111
|
+
} else if (p === "") {
|
|
33112
|
+
var d = /^https/.test(window.location.protocol), g = d ? "wss" : "ws", a = window.location.port ? ":".concat(window.location.port) : "";
|
|
33113
|
+
return "".concat(g, "://").concat(window.location.hostname).concat(a).concat(e.SOCKET_IO_PATH);
|
|
33113
33114
|
}
|
|
33114
|
-
return
|
|
33115
|
+
return p;
|
|
33115
33116
|
};
|
|
33116
|
-
Pe.parseSocketIOUrl =
|
|
33117
|
-
var
|
|
33117
|
+
Pe.parseSocketIOUrl = u;
|
|
33118
|
+
var l = function(p, d) {
|
|
33118
33119
|
d === void 0 && (d = {});
|
|
33119
|
-
var C = /\?([\w]+=[\w]+)/, c = C.test(
|
|
33120
|
-
var m = t[0],
|
|
33121
|
-
return a + "".concat(m, "=").concat(
|
|
33120
|
+
var C = /\?([\w]+=[\w]+)/, c = C.test(p), g = "".concat(Object.entries(d).reduce(function(a, t) {
|
|
33121
|
+
var m = t[0], n = t[1];
|
|
33122
|
+
return a + "".concat(m, "=").concat(n, "&");
|
|
33122
33123
|
}, "").slice(0, -1));
|
|
33123
|
-
return "".concat(
|
|
33124
|
+
return "".concat(p).concat(c ? "&" : "?").concat(g);
|
|
33124
33125
|
};
|
|
33125
|
-
Pe.appendQueryParams =
|
|
33126
|
-
var i = function(
|
|
33126
|
+
Pe.appendQueryParams = l;
|
|
33127
|
+
var i = function(p, d) {
|
|
33127
33128
|
d === void 0 && (d = e.SOCKET_IO_PING_INTERVAL);
|
|
33128
33129
|
var C = function() {
|
|
33129
|
-
return
|
|
33130
|
+
return p(e.SOCKET_IO_PING_CODE);
|
|
33130
33131
|
};
|
|
33131
33132
|
return window.setInterval(C, d);
|
|
33132
33133
|
};
|
|
@@ -33135,21 +33136,21 @@ function Ki() {
|
|
|
33135
33136
|
var Pa = {}, qt;
|
|
33136
33137
|
function En() {
|
|
33137
33138
|
if (qt) return Pa;
|
|
33138
|
-
qt = 1, Object.defineProperty(Pa, "__esModule", { value: !0 }), Pa.heartbeat =
|
|
33139
|
+
qt = 1, Object.defineProperty(Pa, "__esModule", { value: !0 }), Pa.heartbeat = l;
|
|
33139
33140
|
var e = Le();
|
|
33140
|
-
function
|
|
33141
|
-
return Array.isArray(i) ? i.reduce(function(
|
|
33142
|
-
return
|
|
33141
|
+
function u(i) {
|
|
33142
|
+
return Array.isArray(i) ? i.reduce(function(p, d) {
|
|
33143
|
+
return p.current > d.current ? p : d;
|
|
33143
33144
|
}).current : i.current;
|
|
33144
33145
|
}
|
|
33145
|
-
function
|
|
33146
|
-
var C = d || {}, c = C.interval,
|
|
33147
|
-
var f = Date.now(), y = p
|
|
33146
|
+
function l(i, p, d) {
|
|
33147
|
+
var C = d || {}, c = C.interval, g = c === void 0 ? e.DEFAULT_HEARTBEAT.interval : c, a = C.timeout, t = a === void 0 ? e.DEFAULT_HEARTBEAT.timeout : a, m = C.message, n = m === void 0 ? e.DEFAULT_HEARTBEAT.message : m, r = Math.max(100, g / 10), o = Date.now(), _ = setInterval(function() {
|
|
33148
|
+
var f = Date.now(), y = u(p);
|
|
33148
33149
|
if (y + t <= f)
|
|
33149
33150
|
console.warn("Heartbeat timed out, closing connection, last message received ".concat(f - y, "ms ago, last ping sent ").concat(f - o, "ms ago")), i.close();
|
|
33150
|
-
else if (y +
|
|
33151
|
+
else if (y + g <= f && o + g <= f)
|
|
33151
33152
|
try {
|
|
33152
|
-
typeof
|
|
33153
|
+
typeof n == "function" ? i.send(n()) : i.send(n), o = f;
|
|
33153
33154
|
} catch (s) {
|
|
33154
33155
|
console.error("Heartbeat failed, closing connection", s instanceof Error ? s.message : s), i.close();
|
|
33155
33156
|
}
|
|
@@ -33165,29 +33166,29 @@ var Ua = {}, Ai = {}, jt;
|
|
|
33165
33166
|
function qi() {
|
|
33166
33167
|
return jt || (jt = 1, (function(e) {
|
|
33167
33168
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetSubscribers = e.removeSubscriber = e.addSubscriber = e.hasSubscribers = e.getSubscribers = void 0;
|
|
33168
|
-
var
|
|
33169
|
-
return (0, e.hasSubscribers)(
|
|
33169
|
+
var u = {}, l = [], i = function(g) {
|
|
33170
|
+
return (0, e.hasSubscribers)(g) ? Array.from(u[g]) : l;
|
|
33170
33171
|
};
|
|
33171
33172
|
e.getSubscribers = i;
|
|
33172
|
-
var
|
|
33173
|
+
var p = function(g) {
|
|
33173
33174
|
var a;
|
|
33174
|
-
return ((a =
|
|
33175
|
+
return ((a = u[g]) === null || a === void 0 ? void 0 : a.size) > 0;
|
|
33175
33176
|
};
|
|
33176
|
-
e.hasSubscribers =
|
|
33177
|
-
var d = function(
|
|
33178
|
-
|
|
33177
|
+
e.hasSubscribers = p;
|
|
33178
|
+
var d = function(g, a) {
|
|
33179
|
+
u[g] = u[g] || /* @__PURE__ */ new Set(), u[g].add(a);
|
|
33179
33180
|
};
|
|
33180
33181
|
e.addSubscriber = d;
|
|
33181
|
-
var C = function(
|
|
33182
|
-
|
|
33182
|
+
var C = function(g, a) {
|
|
33183
|
+
u[g].delete(a);
|
|
33183
33184
|
};
|
|
33184
33185
|
e.removeSubscriber = C;
|
|
33185
|
-
var c = function(
|
|
33186
|
-
if (
|
|
33187
|
-
delete
|
|
33186
|
+
var c = function(g) {
|
|
33187
|
+
if (g && u.hasOwnProperty(g))
|
|
33188
|
+
delete u[g];
|
|
33188
33189
|
else
|
|
33189
|
-
for (var a in
|
|
33190
|
-
|
|
33190
|
+
for (var a in u)
|
|
33191
|
+
u.hasOwnProperty(a) && delete u[a];
|
|
33191
33192
|
};
|
|
33192
33193
|
e.resetSubscribers = c;
|
|
33193
33194
|
})(Ai)), Ai;
|
|
@@ -33195,14 +33196,14 @@ function qi() {
|
|
|
33195
33196
|
var $t;
|
|
33196
33197
|
function ji() {
|
|
33197
33198
|
if ($t) return Ua;
|
|
33198
|
-
$t = 1, Object.defineProperty(Ua, "__esModule", { value: !0 }), Ua.assertIsWebSocket =
|
|
33199
|
-
var e = Ii(),
|
|
33200
|
-
function
|
|
33201
|
-
if (!d && !(
|
|
33199
|
+
$t = 1, Object.defineProperty(Ua, "__esModule", { value: !0 }), Ua.assertIsWebSocket = l, Ua.resetGlobalState = i;
|
|
33200
|
+
var e = Ii(), u = qi();
|
|
33201
|
+
function l(p, d) {
|
|
33202
|
+
if (!d && !(p instanceof WebSocket))
|
|
33202
33203
|
throw new Error("");
|
|
33203
33204
|
}
|
|
33204
|
-
function i(
|
|
33205
|
-
(0,
|
|
33205
|
+
function i(p) {
|
|
33206
|
+
(0, u.resetSubscribers)(p), (0, e.resetWebSockets)(p);
|
|
33206
33207
|
}
|
|
33207
33208
|
return Ua;
|
|
33208
33209
|
}
|
|
@@ -33212,35 +33213,35 @@ function Ar() {
|
|
|
33212
33213
|
Qt = 1;
|
|
33213
33214
|
var e = Qe && Qe.__assign || function() {
|
|
33214
33215
|
return e = Object.assign || function(t) {
|
|
33215
|
-
for (var m,
|
|
33216
|
-
m = arguments[
|
|
33216
|
+
for (var m, n = 1, r = arguments.length; n < r; n++) {
|
|
33217
|
+
m = arguments[n];
|
|
33217
33218
|
for (var o in m) Object.prototype.hasOwnProperty.call(m, o) && (t[o] = m[o]);
|
|
33218
33219
|
}
|
|
33219
33220
|
return t;
|
|
33220
33221
|
}, e.apply(this, arguments);
|
|
33221
33222
|
};
|
|
33222
33223
|
Object.defineProperty(Qe, "__esModule", { value: !0 }), Qe.attachListeners = void 0;
|
|
33223
|
-
var
|
|
33224
|
+
var u = Ki(), l = En(), i = Le(), p = ji(), d = function(t, m, n, r) {
|
|
33224
33225
|
t.onmessage = function(o) {
|
|
33225
33226
|
var _;
|
|
33226
|
-
m.current.onMessage && m.current.onMessage(o), typeof r?.current == "number" && (r.current = Date.now()), !(typeof m.current.filter == "function" && m.current.filter(o) !== !0) && (m.current.heartbeat && typeof m.current.heartbeat != "boolean" && ((_ = m.current.heartbeat) === null || _ === void 0 ? void 0 : _.returnMessage) === o.data ||
|
|
33227
|
+
m.current.onMessage && m.current.onMessage(o), typeof r?.current == "number" && (r.current = Date.now()), !(typeof m.current.filter == "function" && m.current.filter(o) !== !0) && (m.current.heartbeat && typeof m.current.heartbeat != "boolean" && ((_ = m.current.heartbeat) === null || _ === void 0 ? void 0 : _.returnMessage) === o.data || n(o));
|
|
33227
33228
|
};
|
|
33228
|
-
}, C = function(t, m,
|
|
33229
|
+
}, C = function(t, m, n, r, o) {
|
|
33229
33230
|
t.onopen = function(_) {
|
|
33230
|
-
if (m.current.onOpen && m.current.onOpen(_), r.current = 0,
|
|
33231
|
+
if (m.current.onOpen && m.current.onOpen(_), r.current = 0, n(i.ReadyState.OPEN), m.current.heartbeat && t instanceof WebSocket) {
|
|
33231
33232
|
var f = typeof m.current.heartbeat == "boolean" ? void 0 : m.current.heartbeat;
|
|
33232
|
-
o.current = Date.now(), (0,
|
|
33233
|
+
o.current = Date.now(), (0, l.heartbeat)(t, o, f);
|
|
33233
33234
|
}
|
|
33234
33235
|
};
|
|
33235
|
-
}, c = function(t, m,
|
|
33236
|
+
}, c = function(t, m, n, r, o) {
|
|
33236
33237
|
if (i.isEventSourceSupported && t instanceof EventSource)
|
|
33237
33238
|
return function() {
|
|
33238
33239
|
};
|
|
33239
|
-
(0,
|
|
33240
|
+
(0, p.assertIsWebSocket)(t, m.current.skipAssert);
|
|
33240
33241
|
var _;
|
|
33241
33242
|
return t.onclose = function(f) {
|
|
33242
33243
|
var y;
|
|
33243
|
-
if (m.current.onClose && m.current.onClose(f),
|
|
33244
|
+
if (m.current.onClose && m.current.onClose(f), n(i.ReadyState.CLOSED), m.current.shouldReconnect && m.current.shouldReconnect(f)) {
|
|
33244
33245
|
var s = (y = m.current.reconnectAttempts) !== null && y !== void 0 ? y : i.DEFAULT_RECONNECT_LIMIT;
|
|
33245
33246
|
if (o.current < s) {
|
|
33246
33247
|
var U = typeof m.current.reconnectInterval == "function" ? m.current.reconnectInterval(o.current) : m.current.reconnectInterval;
|
|
@@ -33253,11 +33254,11 @@ function Ar() {
|
|
|
33253
33254
|
}, function() {
|
|
33254
33255
|
return _ && window.clearTimeout(_);
|
|
33255
33256
|
};
|
|
33256
|
-
},
|
|
33257
|
+
}, g = function(t, m, n, r, o) {
|
|
33257
33258
|
var _;
|
|
33258
33259
|
return t.onerror = function(f) {
|
|
33259
33260
|
var y;
|
|
33260
|
-
if (m.current.onError && m.current.onError(f), i.isEventSourceSupported && t instanceof EventSource && (m.current.onClose && m.current.onClose(e(e({}, f), { code: 1006, reason: "An error occurred with the EventSource: ".concat(f), wasClean: !1 })),
|
|
33261
|
+
if (m.current.onError && m.current.onError(f), i.isEventSourceSupported && t instanceof EventSource && (m.current.onClose && m.current.onClose(e(e({}, f), { code: 1006, reason: "An error occurred with the EventSource: ".concat(f), wasClean: !1 })), n(i.ReadyState.CLOSED), t.close()), m.current.retryOnError)
|
|
33261
33262
|
if (o.current < ((y = m.current.reconnectAttempts) !== null && y !== void 0 ? y : i.DEFAULT_RECONNECT_LIMIT)) {
|
|
33262
33263
|
var s = typeof m.current.reconnectInterval == "function" ? m.current.reconnectInterval(o.current) : m.current.reconnectInterval;
|
|
33263
33264
|
_ = window.setTimeout(function() {
|
|
@@ -33268,9 +33269,9 @@ function Ar() {
|
|
|
33268
33269
|
}, function() {
|
|
33269
33270
|
return _ && window.clearTimeout(_);
|
|
33270
33271
|
};
|
|
33271
|
-
}, a = function(t, m,
|
|
33272
|
+
}, a = function(t, m, n, r, o, _, f) {
|
|
33272
33273
|
var y = m.setLastMessage, s = m.setReadyState, U, b, v;
|
|
33273
|
-
return
|
|
33274
|
+
return n.current.fromSocketIO && (U = (0, u.setUpSocketIOPing)(f)), d(t, n, y, _), C(t, n, s, o, _), b = c(t, n, s, r, o), v = g(t, n, s, r, o), function() {
|
|
33274
33275
|
s(i.ReadyState.CLOSING), b(), v(), t.close(), U && clearInterval(U);
|
|
33275
33276
|
};
|
|
33276
33277
|
};
|
|
@@ -33282,57 +33283,57 @@ function Br() {
|
|
|
33282
33283
|
Yt = 1;
|
|
33283
33284
|
var e = Ye && Ye.__assign || function() {
|
|
33284
33285
|
return e = Object.assign || function(m) {
|
|
33285
|
-
for (var
|
|
33286
|
-
|
|
33287
|
-
for (var _ in
|
|
33286
|
+
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
33287
|
+
n = arguments[r];
|
|
33288
|
+
for (var _ in n) Object.prototype.hasOwnProperty.call(n, _) && (m[_] = n[_]);
|
|
33288
33289
|
}
|
|
33289
33290
|
return m;
|
|
33290
33291
|
}, e.apply(this, arguments);
|
|
33291
33292
|
};
|
|
33292
33293
|
Object.defineProperty(Ye, "__esModule", { value: !0 }), Ye.attachSharedListeners = void 0;
|
|
33293
|
-
var
|
|
33294
|
+
var u = Ii(), l = Le(), i = qi(), p = Ki(), d = En(), C = function(m, n, r) {
|
|
33294
33295
|
m.onmessage = function(o) {
|
|
33295
|
-
(0, i.getSubscribers)(
|
|
33296
|
+
(0, i.getSubscribers)(n).forEach(function(_) {
|
|
33296
33297
|
var f;
|
|
33297
33298
|
_.optionsRef.current.onMessage && _.optionsRef.current.onMessage(o), typeof ((f = _?.lastMessageTime) === null || f === void 0 ? void 0 : f.current) == "number" && (_.lastMessageTime.current = Date.now()), !(typeof _.optionsRef.current.filter == "function" && _.optionsRef.current.filter(o) !== !0) && (r && typeof r != "boolean" && r?.returnMessage === o.data || _.setLastMessage(o));
|
|
33298
33299
|
});
|
|
33299
33300
|
};
|
|
33300
|
-
}, c = function(m,
|
|
33301
|
+
}, c = function(m, n, r) {
|
|
33301
33302
|
m.onopen = function(o) {
|
|
33302
|
-
var _ = (0, i.getSubscribers)(
|
|
33303
|
+
var _ = (0, i.getSubscribers)(n);
|
|
33303
33304
|
_.forEach(function(f) {
|
|
33304
|
-
f.reconnectCount.current = 0, f.optionsRef.current.onOpen && f.optionsRef.current.onOpen(o), f.setReadyState(
|
|
33305
|
+
f.reconnectCount.current = 0, f.optionsRef.current.onOpen && f.optionsRef.current.onOpen(o), f.setReadyState(l.ReadyState.OPEN), r && m instanceof WebSocket && (f.lastMessageTime.current = Date.now());
|
|
33305
33306
|
}), r && m instanceof WebSocket && (0, d.heartbeat)(m, _.map(function(f) {
|
|
33306
33307
|
return f.lastMessageTime;
|
|
33307
33308
|
}), typeof r == "boolean" ? void 0 : r);
|
|
33308
33309
|
};
|
|
33309
|
-
},
|
|
33310
|
+
}, g = function(m, n) {
|
|
33310
33311
|
m instanceof WebSocket && (m.onclose = function(r) {
|
|
33311
|
-
(0, i.getSubscribers)(
|
|
33312
|
-
o.optionsRef.current.onClose && o.optionsRef.current.onClose(r), o.setReadyState(
|
|
33313
|
-
}), delete
|
|
33312
|
+
(0, i.getSubscribers)(n).forEach(function(o) {
|
|
33313
|
+
o.optionsRef.current.onClose && o.optionsRef.current.onClose(r), o.setReadyState(l.ReadyState.CLOSED);
|
|
33314
|
+
}), delete u.sharedWebSockets[n], (0, i.getSubscribers)(n).forEach(function(o) {
|
|
33314
33315
|
var _;
|
|
33315
33316
|
if (o.optionsRef.current.shouldReconnect && o.optionsRef.current.shouldReconnect(r)) {
|
|
33316
|
-
var f = (_ = o.optionsRef.current.reconnectAttempts) !== null && _ !== void 0 ? _ :
|
|
33317
|
+
var f = (_ = o.optionsRef.current.reconnectAttempts) !== null && _ !== void 0 ? _ : l.DEFAULT_RECONNECT_LIMIT;
|
|
33317
33318
|
if (o.reconnectCount.current < f) {
|
|
33318
33319
|
var y = typeof o.optionsRef.current.reconnectInterval == "function" ? o.optionsRef.current.reconnectInterval(o.reconnectCount.current) : o.optionsRef.current.reconnectInterval;
|
|
33319
33320
|
setTimeout(function() {
|
|
33320
33321
|
o.reconnectCount.current++, o.reconnect.current();
|
|
33321
|
-
}, y ??
|
|
33322
|
+
}, y ?? l.DEFAULT_RECONNECT_INTERVAL_MS);
|
|
33322
33323
|
} else
|
|
33323
33324
|
o.optionsRef.current.onReconnectStop && o.optionsRef.current.onReconnectStop(o.optionsRef.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(f, " exceeded"));
|
|
33324
33325
|
}
|
|
33325
33326
|
});
|
|
33326
33327
|
});
|
|
33327
|
-
}, a = function(m,
|
|
33328
|
+
}, a = function(m, n) {
|
|
33328
33329
|
m.onerror = function(r) {
|
|
33329
|
-
(0, i.getSubscribers)(
|
|
33330
|
-
o.optionsRef.current.onError && o.optionsRef.current.onError(r),
|
|
33331
|
-
}),
|
|
33330
|
+
(0, i.getSubscribers)(n).forEach(function(o) {
|
|
33331
|
+
o.optionsRef.current.onError && o.optionsRef.current.onError(r), l.isEventSourceSupported && m instanceof EventSource && (o.optionsRef.current.onClose && o.optionsRef.current.onClose(e(e({}, r), { code: 1006, reason: "An error occurred with the EventSource: ".concat(r), wasClean: !1 })), o.setReadyState(l.ReadyState.CLOSED));
|
|
33332
|
+
}), l.isEventSourceSupported && m instanceof EventSource && m.close();
|
|
33332
33333
|
};
|
|
33333
|
-
}, t = function(m,
|
|
33334
|
+
}, t = function(m, n, r, o) {
|
|
33334
33335
|
var _;
|
|
33335
|
-
return r.current.fromSocketIO && (_ = (0,
|
|
33336
|
+
return r.current.fromSocketIO && (_ = (0, p.setUpSocketIOPing)(o)), C(m, n, r.current.heartbeat), g(m, n), c(m, n, r.current.heartbeat), a(m, n), function() {
|
|
33336
33337
|
_ && clearInterval(_);
|
|
33337
33338
|
};
|
|
33338
33339
|
};
|
|
@@ -33342,41 +33343,41 @@ var Xt;
|
|
|
33342
33343
|
function Hr() {
|
|
33343
33344
|
if (Xt) return fa;
|
|
33344
33345
|
Xt = 1, Object.defineProperty(fa, "__esModule", { value: !0 }), fa.createOrJoinSocket = void 0;
|
|
33345
|
-
var e = Ii(),
|
|
33346
|
+
var e = Ii(), u = Le(), l = Ar(), i = Br(), p = qi(), d = function(c, g, a, t, m) {
|
|
33346
33347
|
return function() {
|
|
33347
|
-
if ((0,
|
|
33348
|
+
if ((0, p.removeSubscriber)(c, g), !(0, p.hasSubscribers)(c)) {
|
|
33348
33349
|
try {
|
|
33349
|
-
var
|
|
33350
|
-
|
|
33351
|
-
a.current.onClose && a.current.onClose(r), t(
|
|
33352
|
-
}),
|
|
33350
|
+
var n = e.sharedWebSockets[c];
|
|
33351
|
+
n instanceof WebSocket && (n.onclose = function(r) {
|
|
33352
|
+
a.current.onClose && a.current.onClose(r), t(u.ReadyState.CLOSED);
|
|
33353
|
+
}), n.close();
|
|
33353
33354
|
} catch {
|
|
33354
33355
|
}
|
|
33355
33356
|
m && m(), delete e.sharedWebSockets[c];
|
|
33356
33357
|
}
|
|
33357
33358
|
};
|
|
33358
|
-
}, C = function(c,
|
|
33359
|
-
if (!
|
|
33360
|
-
throw
|
|
33359
|
+
}, C = function(c, g, a, t, m, n, r, o, _) {
|
|
33360
|
+
if (!u.isEventSourceSupported && t.current.eventSourceOptions)
|
|
33361
|
+
throw u.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
|
|
33361
33362
|
if (t.current.share) {
|
|
33362
33363
|
var f = null;
|
|
33363
|
-
e.sharedWebSockets[
|
|
33364
|
+
e.sharedWebSockets[g] === void 0 ? (e.sharedWebSockets[g] = t.current.eventSourceOptions ? new EventSource(g, t.current.eventSourceOptions) : new WebSocket(g, t.current.protocols), c.current = e.sharedWebSockets[g], a(u.ReadyState.CONNECTING), f = (0, i.attachSharedListeners)(e.sharedWebSockets[g], g, t, _)) : (c.current = e.sharedWebSockets[g], a(e.sharedWebSockets[g].readyState));
|
|
33364
33365
|
var y = {
|
|
33365
33366
|
setLastMessage: m,
|
|
33366
33367
|
setReadyState: a,
|
|
33367
33368
|
optionsRef: t,
|
|
33368
33369
|
reconnectCount: r,
|
|
33369
33370
|
lastMessageTime: o,
|
|
33370
|
-
reconnect:
|
|
33371
|
+
reconnect: n
|
|
33371
33372
|
};
|
|
33372
|
-
return (0,
|
|
33373
|
+
return (0, p.addSubscriber)(g, y), d(g, y, t, a, f);
|
|
33373
33374
|
} else {
|
|
33374
|
-
if (c.current = t.current.eventSourceOptions ? new EventSource(
|
|
33375
|
+
if (c.current = t.current.eventSourceOptions ? new EventSource(g, t.current.eventSourceOptions) : new WebSocket(g, t.current.protocols), a(u.ReadyState.CONNECTING), !c.current)
|
|
33375
33376
|
throw new Error("WebSocket failed to be created");
|
|
33376
|
-
return (0,
|
|
33377
|
+
return (0, l.attachListeners)(c.current, {
|
|
33377
33378
|
setLastMessage: m,
|
|
33378
33379
|
setReadyState: a
|
|
33379
|
-
}, t,
|
|
33380
|
+
}, t, n.current, r, o, _);
|
|
33380
33381
|
}
|
|
33381
33382
|
};
|
|
33382
33383
|
return fa.createOrJoinSocket = C, fa;
|
|
@@ -33384,8 +33385,8 @@ function Hr() {
|
|
|
33384
33385
|
var Fe = {}, en;
|
|
33385
33386
|
function Wr() {
|
|
33386
33387
|
return en || (en = 1, (function(e) {
|
|
33387
|
-
var
|
|
33388
|
-
function
|
|
33388
|
+
var u = Fe && Fe.__awaiter || function(g, a, t, m) {
|
|
33389
|
+
function n(r) {
|
|
33389
33390
|
return r instanceof t ? r : new t(function(o) {
|
|
33390
33391
|
o(r);
|
|
33391
33392
|
});
|
|
@@ -33406,15 +33407,15 @@ function Wr() {
|
|
|
33406
33407
|
}
|
|
33407
33408
|
}
|
|
33408
33409
|
function y(s) {
|
|
33409
|
-
s.done ? r(s.value) :
|
|
33410
|
+
s.done ? r(s.value) : n(s.value).then(_, f);
|
|
33410
33411
|
}
|
|
33411
|
-
y((m = m.apply(
|
|
33412
|
+
y((m = m.apply(g, a || [])).next());
|
|
33412
33413
|
});
|
|
33413
|
-
},
|
|
33414
|
+
}, l = Fe && Fe.__generator || function(g, a) {
|
|
33414
33415
|
var t = { label: 0, sent: function() {
|
|
33415
33416
|
if (r[0] & 1) throw r[1];
|
|
33416
33417
|
return r[1];
|
|
33417
|
-
}, trys: [], ops: [] }, m,
|
|
33418
|
+
}, trys: [], ops: [] }, m, n, r, o = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
33418
33419
|
return o.next = _(0), o.throw = _(1), o.return = _(2), typeof Symbol == "function" && (o[Symbol.iterator] = function() {
|
|
33419
33420
|
return this;
|
|
33420
33421
|
}), o;
|
|
@@ -33426,8 +33427,8 @@ function Wr() {
|
|
|
33426
33427
|
function f(y) {
|
|
33427
33428
|
if (m) throw new TypeError("Generator is already executing.");
|
|
33428
33429
|
for (; o && (o = 0, y[0] && (t = 0)), t; ) try {
|
|
33429
|
-
if (m = 1,
|
|
33430
|
-
switch (
|
|
33430
|
+
if (m = 1, n && (r = y[0] & 2 ? n.return : y[0] ? n.throw || ((r = n.return) && r.call(n), 0) : n.next) && !(r = r.call(n, y[1])).done) return r;
|
|
33431
|
+
switch (n = 0, r && (y = [y[0] & 2, r.value]), y[0]) {
|
|
33431
33432
|
case 0:
|
|
33432
33433
|
case 1:
|
|
33433
33434
|
r = y;
|
|
@@ -33435,7 +33436,7 @@ function Wr() {
|
|
|
33435
33436
|
case 4:
|
|
33436
33437
|
return t.label++, { value: y[1], done: !1 };
|
|
33437
33438
|
case 5:
|
|
33438
|
-
t.label++,
|
|
33439
|
+
t.label++, n = y[1], y = [0];
|
|
33439
33440
|
continue;
|
|
33440
33441
|
case 7:
|
|
33441
33442
|
y = t.ops.pop(), t.trys.pop();
|
|
@@ -33460,43 +33461,43 @@ function Wr() {
|
|
|
33460
33461
|
r[2] && t.ops.pop(), t.trys.pop();
|
|
33461
33462
|
continue;
|
|
33462
33463
|
}
|
|
33463
|
-
y = a.call(
|
|
33464
|
+
y = a.call(g, t);
|
|
33464
33465
|
} catch (s) {
|
|
33465
|
-
y = [6, s],
|
|
33466
|
+
y = [6, s], n = 0;
|
|
33466
33467
|
} finally {
|
|
33467
33468
|
m = r = 0;
|
|
33468
33469
|
}
|
|
33469
33470
|
if (y[0] & 5) throw y[1];
|
|
33470
33471
|
return { value: y[0] ? y[1] : void 0, done: !0 };
|
|
33471
33472
|
}
|
|
33472
|
-
}, i = Fe && Fe.__spreadArray || function(
|
|
33473
|
-
if (t || arguments.length === 2) for (var m = 0,
|
|
33473
|
+
}, i = Fe && Fe.__spreadArray || function(g, a, t) {
|
|
33474
|
+
if (t || arguments.length === 2) for (var m = 0, n = a.length, r; m < n; m++)
|
|
33474
33475
|
(r || !(m in a)) && (r || (r = Array.prototype.slice.call(a, 0, m)), r[m] = a[m]);
|
|
33475
|
-
return
|
|
33476
|
+
return g.concat(r || Array.prototype.slice.call(a));
|
|
33476
33477
|
};
|
|
33477
33478
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getUrl = void 0;
|
|
33478
|
-
var
|
|
33479
|
+
var p = Ki(), d = Le(), C = function(g) {
|
|
33479
33480
|
return new Promise(function(a) {
|
|
33480
|
-
return window.setTimeout(a,
|
|
33481
|
+
return window.setTimeout(a, g);
|
|
33481
33482
|
});
|
|
33482
|
-
}, c = function(
|
|
33483
|
+
}, c = function(g, a) {
|
|
33483
33484
|
for (var t = [], m = 2; m < arguments.length; m++)
|
|
33484
33485
|
t[m - 2] = arguments[m];
|
|
33485
|
-
return
|
|
33486
|
+
return u(void 0, i([g, a], t, !0), void 0, function(n, r, o) {
|
|
33486
33487
|
var _, f, y, s, U, b, v, h;
|
|
33487
|
-
return o === void 0 && (o = 0),
|
|
33488
|
+
return o === void 0 && (o = 0), l(this, function(x) {
|
|
33488
33489
|
switch (x.label) {
|
|
33489
33490
|
case 0:
|
|
33490
|
-
if (typeof
|
|
33491
|
+
if (typeof n != "function") return [3, 10];
|
|
33491
33492
|
x.label = 1;
|
|
33492
33493
|
case 1:
|
|
33493
|
-
return x.trys.push([1, 3, , 9]), [4,
|
|
33494
|
+
return x.trys.push([1, 3, , 9]), [4, n()];
|
|
33494
33495
|
case 2:
|
|
33495
33496
|
return _ = x.sent(), [3, 9];
|
|
33496
33497
|
case 3:
|
|
33497
33498
|
return x.sent(), r.current.retryOnError ? (f = (b = r.current.reconnectAttempts) !== null && b !== void 0 ? b : d.DEFAULT_RECONNECT_LIMIT, o < f ? (y = typeof r.current.reconnectInterval == "function" ? r.current.reconnectInterval(o) : r.current.reconnectInterval, [4, C(y ?? d.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
|
|
33498
33499
|
case 4:
|
|
33499
|
-
return x.sent(), [2, (0, e.getUrl)(
|
|
33500
|
+
return x.sent(), [2, (0, e.getUrl)(n, r, o + 1)];
|
|
33500
33501
|
case 5:
|
|
33501
33502
|
return (h = (v = r.current).onReconnectStop) === null || h === void 0 || h.call(v, o), [2, null];
|
|
33502
33503
|
case 6:
|
|
@@ -33508,9 +33509,9 @@ function Wr() {
|
|
|
33508
33509
|
case 9:
|
|
33509
33510
|
return [3, 11];
|
|
33510
33511
|
case 10:
|
|
33511
|
-
_ =
|
|
33512
|
+
_ = n, x.label = 11;
|
|
33512
33513
|
case 11:
|
|
33513
|
-
return s = r.current.fromSocketIO ? (0,
|
|
33514
|
+
return s = r.current.fromSocketIO ? (0, p.parseSocketIOUrl)(_) : _, U = r.current.queryParams ? (0, p.appendQueryParams)(s, r.current.queryParams) : s, [2, U];
|
|
33514
33515
|
}
|
|
33515
33516
|
});
|
|
33516
33517
|
});
|
|
@@ -33522,19 +33523,19 @@ var Bi = {}, an;
|
|
|
33522
33523
|
function zr() {
|
|
33523
33524
|
return an || (an = 1, (function(e) {
|
|
33524
33525
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.websocketWrapper = void 0;
|
|
33525
|
-
var
|
|
33526
|
-
return new Proxy(
|
|
33527
|
-
get: function(
|
|
33528
|
-
var C =
|
|
33526
|
+
var u = function(l, i) {
|
|
33527
|
+
return new Proxy(l, {
|
|
33528
|
+
get: function(p, d) {
|
|
33529
|
+
var C = p[d];
|
|
33529
33530
|
return d === "reconnect" ? i : typeof C == "function" ? (console.error("Calling methods directly on the websocket is not supported at this moment. You must use the methods returned by useWebSocket."), function() {
|
|
33530
33531
|
}) : C;
|
|
33531
33532
|
},
|
|
33532
|
-
set: function(
|
|
33533
|
-
return /^on/.test(d) ? (console.warn("The websocket's event handlers should be defined through the options object passed into useWebSocket."), !1) : (
|
|
33533
|
+
set: function(p, d, C) {
|
|
33534
|
+
return /^on/.test(d) ? (console.warn("The websocket's event handlers should be defined through the options object passed into useWebSocket."), !1) : (p[d] = C, !0);
|
|
33534
33535
|
}
|
|
33535
33536
|
});
|
|
33536
33537
|
};
|
|
33537
|
-
e.websocketWrapper =
|
|
33538
|
+
e.websocketWrapper = u, e.default = e.websocketWrapper;
|
|
33538
33539
|
})(Bi)), Bi;
|
|
33539
33540
|
}
|
|
33540
33541
|
var tn;
|
|
@@ -33542,14 +33543,14 @@ function $i() {
|
|
|
33542
33543
|
if (tn) return Te;
|
|
33543
33544
|
tn = 1;
|
|
33544
33545
|
var e = Te && Te.__assign || function() {
|
|
33545
|
-
return e = Object.assign || function(
|
|
33546
|
+
return e = Object.assign || function(n) {
|
|
33546
33547
|
for (var r, o = 1, _ = arguments.length; o < _; o++) {
|
|
33547
33548
|
r = arguments[o];
|
|
33548
|
-
for (var f in r) Object.prototype.hasOwnProperty.call(r, f) && (
|
|
33549
|
+
for (var f in r) Object.prototype.hasOwnProperty.call(r, f) && (n[f] = r[f]);
|
|
33549
33550
|
}
|
|
33550
|
-
return
|
|
33551
|
+
return n;
|
|
33551
33552
|
}, e.apply(this, arguments);
|
|
33552
|
-
},
|
|
33553
|
+
}, u = Te && Te.__awaiter || function(n, r, o, _) {
|
|
33553
33554
|
function f(y) {
|
|
33554
33555
|
return y instanceof o ? y : new o(function(s) {
|
|
33555
33556
|
s(y);
|
|
@@ -33573,9 +33574,9 @@ function $i() {
|
|
|
33573
33574
|
function v(h) {
|
|
33574
33575
|
h.done ? y(h.value) : f(h.value).then(U, b);
|
|
33575
33576
|
}
|
|
33576
|
-
v((_ = _.apply(
|
|
33577
|
+
v((_ = _.apply(n, r || [])).next());
|
|
33577
33578
|
});
|
|
33578
|
-
},
|
|
33579
|
+
}, l = Te && Te.__generator || function(n, r) {
|
|
33579
33580
|
var o = { label: 0, sent: function() {
|
|
33580
33581
|
if (y[0] & 1) throw y[1];
|
|
33581
33582
|
return y[1];
|
|
@@ -33625,7 +33626,7 @@ function $i() {
|
|
|
33625
33626
|
y[2] && o.ops.pop(), o.trys.pop();
|
|
33626
33627
|
continue;
|
|
33627
33628
|
}
|
|
33628
|
-
v = r.call(
|
|
33629
|
+
v = r.call(n, o);
|
|
33629
33630
|
} catch (h) {
|
|
33630
33631
|
v = [6, h], f = 0;
|
|
33631
33632
|
} finally {
|
|
@@ -33634,13 +33635,13 @@ function $i() {
|
|
|
33634
33635
|
if (v[0] & 5) throw v[1];
|
|
33635
33636
|
return { value: v[0] ? v[1] : void 0, done: !0 };
|
|
33636
33637
|
}
|
|
33637
|
-
}, i = Te && Te.__importDefault || function(
|
|
33638
|
-
return
|
|
33638
|
+
}, i = Te && Te.__importDefault || function(n) {
|
|
33639
|
+
return n && n.__esModule ? n : { default: n };
|
|
33639
33640
|
};
|
|
33640
33641
|
Object.defineProperty(Te, "__esModule", { value: !0 }), Te.useWebSocket = void 0;
|
|
33641
|
-
var
|
|
33642
|
+
var p = va, d = el, C = Le(), c = Hr(), g = Wr(), a = i(zr()), t = ji(), m = function(n, r, o) {
|
|
33642
33643
|
r === void 0 && (r = C.DEFAULT_OPTIONS), o === void 0 && (o = !0);
|
|
33643
|
-
var _ = (0,
|
|
33644
|
+
var _ = (0, p.useState)(null), f = _[0], y = _[1], s = (0, p.useState)({}), U = s[0], b = s[1], v = (0, p.useMemo)(function() {
|
|
33644
33645
|
if (!r.disableJson && f)
|
|
33645
33646
|
try {
|
|
33646
33647
|
return JSON.parse(f.data);
|
|
@@ -33648,30 +33649,30 @@ function $i() {
|
|
|
33648
33649
|
return C.UNPARSABLE_JSON_OBJECT;
|
|
33649
33650
|
}
|
|
33650
33651
|
return null;
|
|
33651
|
-
}, [f, r.disableJson]), h = (0,
|
|
33652
|
-
}), O = (0,
|
|
33652
|
+
}, [f, r.disableJson]), h = (0, p.useRef)(null), x = (0, p.useRef)(null), E = (0, p.useRef)(function() {
|
|
33653
|
+
}), O = (0, p.useRef)(0), k = (0, p.useRef)(Date.now()), S = (0, p.useRef)([]), P = (0, p.useRef)(null), G = (0, p.useRef)(r);
|
|
33653
33654
|
G.current = r;
|
|
33654
|
-
var w = h.current && U[h.current] !== void 0 ? U[h.current] :
|
|
33655
|
+
var w = h.current && U[h.current] !== void 0 ? U[h.current] : n !== null && o === !0 ? C.ReadyState.CONNECTING : C.ReadyState.UNINSTANTIATED, L = r.queryParams ? JSON.stringify(r.queryParams) : null, M = (0, p.useCallback)(function(H, z) {
|
|
33655
33656
|
var D;
|
|
33656
33657
|
if (z === void 0 && (z = !0), C.isEventSourceSupported && x.current instanceof EventSource) {
|
|
33657
33658
|
console.warn("Unable to send a message from an eventSource");
|
|
33658
33659
|
return;
|
|
33659
33660
|
}
|
|
33660
33661
|
((D = x.current) === null || D === void 0 ? void 0 : D.readyState) === C.ReadyState.OPEN ? ((0, t.assertIsWebSocket)(x.current, G.current.skipAssert), x.current.send(H)) : z && S.current.push(H);
|
|
33661
|
-
}, []), W = (0,
|
|
33662
|
+
}, []), W = (0, p.useCallback)(function(H, z) {
|
|
33662
33663
|
z === void 0 && (z = !0), M(JSON.stringify(H), z);
|
|
33663
|
-
}, [M]), A = (0,
|
|
33664
|
+
}, [M]), A = (0, p.useCallback)(function() {
|
|
33664
33665
|
return G.current.share !== !0 || C.isEventSourceSupported && x.current instanceof EventSource ? x.current : (P.current === null && x.current && ((0, t.assertIsWebSocket)(x.current, G.current.skipAssert), P.current = (0, a.default)(x.current, E)), P.current);
|
|
33665
33666
|
}, []);
|
|
33666
|
-
return (0,
|
|
33667
|
-
if (
|
|
33667
|
+
return (0, p.useEffect)(function() {
|
|
33668
|
+
if (n !== null && o === !0) {
|
|
33668
33669
|
var H, z = !1, D = !0, R = function() {
|
|
33669
|
-
return
|
|
33670
|
+
return u(void 0, void 0, void 0, function() {
|
|
33670
33671
|
var F, N, I;
|
|
33671
|
-
return
|
|
33672
|
+
return l(this, function(K) {
|
|
33672
33673
|
switch (K.label) {
|
|
33673
33674
|
case 0:
|
|
33674
|
-
return F = h, [4, (0,
|
|
33675
|
+
return F = h, [4, (0, g.getUrl)(n, G)];
|
|
33675
33676
|
case 1:
|
|
33676
33677
|
return F.current = K.sent(), h.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), h.current = "ABORTED", (0, d.flushSync)(function() {
|
|
33677
33678
|
return b(function(Y) {
|
|
@@ -33704,11 +33705,11 @@ function $i() {
|
|
|
33704
33705
|
}, R(), function() {
|
|
33705
33706
|
z = !0, D = !1, P.current && (P.current = null), H?.(), y(null);
|
|
33706
33707
|
};
|
|
33707
|
-
} else (
|
|
33708
|
+
} else (n === null || o === !1) && (O.current = 0, b(function(F) {
|
|
33708
33709
|
var N;
|
|
33709
33710
|
return e(e({}, F), h.current && (N = {}, N[h.current] = C.ReadyState.CLOSED, N));
|
|
33710
33711
|
}));
|
|
33711
|
-
}, [
|
|
33712
|
+
}, [n, o, L, M]), (0, p.useEffect)(function() {
|
|
33712
33713
|
w === C.ReadyState.OPEN && S.current.splice(0).forEach(function(H) {
|
|
33713
33714
|
M(H);
|
|
33714
33715
|
});
|
|
@@ -33729,37 +33730,37 @@ function Vr() {
|
|
|
33729
33730
|
nn = 1;
|
|
33730
33731
|
var e = Xe && Xe.__assign || function() {
|
|
33731
33732
|
return e = Object.assign || function(c) {
|
|
33732
|
-
for (var
|
|
33733
|
-
|
|
33734
|
-
for (var m in
|
|
33733
|
+
for (var g, a = 1, t = arguments.length; a < t; a++) {
|
|
33734
|
+
g = arguments[a];
|
|
33735
|
+
for (var m in g) Object.prototype.hasOwnProperty.call(g, m) && (c[m] = g[m]);
|
|
33735
33736
|
}
|
|
33736
33737
|
return c;
|
|
33737
33738
|
}, e.apply(this, arguments);
|
|
33738
33739
|
};
|
|
33739
33740
|
Object.defineProperty(Xe, "__esModule", { value: !0 }), Xe.useSocketIO = void 0;
|
|
33740
|
-
var
|
|
33741
|
+
var u = va, l = $i(), i = Le(), p = {
|
|
33741
33742
|
type: "empty",
|
|
33742
33743
|
payload: null
|
|
33743
33744
|
}, d = function(c) {
|
|
33744
33745
|
if (!c || !c.data)
|
|
33745
|
-
return
|
|
33746
|
-
var
|
|
33747
|
-
if (!
|
|
33748
|
-
return
|
|
33749
|
-
var a = JSON.parse(
|
|
33750
|
-
return !Array.isArray(a) || !a[1] ?
|
|
33746
|
+
return p;
|
|
33747
|
+
var g = c.data.match(/\[.*]/);
|
|
33748
|
+
if (!g)
|
|
33749
|
+
return p;
|
|
33750
|
+
var a = JSON.parse(g);
|
|
33751
|
+
return !Array.isArray(a) || !a[1] ? p : {
|
|
33751
33752
|
type: a[0],
|
|
33752
33753
|
payload: a[1]
|
|
33753
33754
|
};
|
|
33754
|
-
}, C = function(c,
|
|
33755
|
-
|
|
33756
|
-
var t = (0,
|
|
33757
|
-
return e(e({},
|
|
33758
|
-
}, []), m = (0,
|
|
33755
|
+
}, C = function(c, g, a) {
|
|
33756
|
+
g === void 0 && (g = i.DEFAULT_OPTIONS), a === void 0 && (a = !0);
|
|
33757
|
+
var t = (0, u.useMemo)(function() {
|
|
33758
|
+
return e(e({}, g), { fromSocketIO: !0 });
|
|
33759
|
+
}, []), m = (0, l.useWebSocket)(c, t, a), n = m.sendMessage, r = m.sendJsonMessage, o = m.lastMessage, _ = m.readyState, f = m.getWebSocket, y = (0, u.useMemo)(function() {
|
|
33759
33760
|
return d(o);
|
|
33760
33761
|
}, [o]);
|
|
33761
33762
|
return {
|
|
33762
|
-
sendMessage:
|
|
33763
|
+
sendMessage: n,
|
|
33763
33764
|
sendJsonMessage: r,
|
|
33764
33765
|
lastMessage: y,
|
|
33765
33766
|
lastJsonMessage: y,
|
|
@@ -33775,31 +33776,31 @@ function Zr() {
|
|
|
33775
33776
|
ln = 1;
|
|
33776
33777
|
var e = we && we.__assign || function() {
|
|
33777
33778
|
return e = Object.assign || function(C) {
|
|
33778
|
-
for (var c,
|
|
33779
|
-
c = arguments[
|
|
33779
|
+
for (var c, g = 1, a = arguments.length; g < a; g++) {
|
|
33780
|
+
c = arguments[g];
|
|
33780
33781
|
for (var t in c) Object.prototype.hasOwnProperty.call(c, t) && (C[t] = c[t]);
|
|
33781
33782
|
}
|
|
33782
33783
|
return C;
|
|
33783
33784
|
}, e.apply(this, arguments);
|
|
33784
|
-
},
|
|
33785
|
-
var
|
|
33786
|
-
for (var a in C) Object.prototype.hasOwnProperty.call(C, a) && c.indexOf(a) < 0 && (
|
|
33785
|
+
}, u = we && we.__rest || function(C, c) {
|
|
33786
|
+
var g = {};
|
|
33787
|
+
for (var a in C) Object.prototype.hasOwnProperty.call(C, a) && c.indexOf(a) < 0 && (g[a] = C[a]);
|
|
33787
33788
|
if (C != null && typeof Object.getOwnPropertySymbols == "function")
|
|
33788
33789
|
for (var t = 0, a = Object.getOwnPropertySymbols(C); t < a.length; t++)
|
|
33789
|
-
c.indexOf(a[t]) < 0 && Object.prototype.propertyIsEnumerable.call(C, a[t]) && (
|
|
33790
|
-
return
|
|
33790
|
+
c.indexOf(a[t]) < 0 && Object.prototype.propertyIsEnumerable.call(C, a[t]) && (g[a[t]] = C[a[t]]);
|
|
33791
|
+
return g;
|
|
33791
33792
|
};
|
|
33792
33793
|
Object.defineProperty(we, "__esModule", { value: !0 }), we.useEventSource = void 0;
|
|
33793
|
-
var
|
|
33794
|
-
c === void 0 && (c =
|
|
33795
|
-
var a = c.withCredentials, t = c.events, m =
|
|
33796
|
-
|
|
33797
|
-
var
|
|
33794
|
+
var l = va, i = $i(), p = Le(), d = function(C, c, g) {
|
|
33795
|
+
c === void 0 && (c = p.DEFAULT_EVENT_SOURCE_OPTIONS);
|
|
33796
|
+
var a = c.withCredentials, t = c.events, m = u(c, ["withCredentials", "events"]);
|
|
33797
|
+
g === void 0 && (g = !0);
|
|
33798
|
+
var n = e(e({}, m), { eventSourceOptions: {
|
|
33798
33799
|
withCredentials: a
|
|
33799
|
-
} }), r = (0,
|
|
33800
|
+
} }), r = (0, l.useRef)(p.EMPTY_EVENT_HANDLERS);
|
|
33800
33801
|
t && (r.current = t);
|
|
33801
|
-
var o = (0, i.useWebSocket)(C,
|
|
33802
|
-
return (0,
|
|
33802
|
+
var o = (0, i.useWebSocket)(C, n, g), _ = o.lastMessage, f = o.readyState, y = o.getWebSocket;
|
|
33803
|
+
return (0, l.useEffect)(function() {
|
|
33803
33804
|
_?.type && Object.entries(r.current).forEach(function(s) {
|
|
33804
33805
|
var U = s[0], b = s[1];
|
|
33805
33806
|
U === _.type && b(_);
|
|
@@ -33816,21 +33817,21 @@ var rn;
|
|
|
33816
33817
|
function Jr() {
|
|
33817
33818
|
return rn || (rn = 1, (function(e) {
|
|
33818
33819
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resetGlobalState = e.useEventSource = e.ReadyState = e.useSocketIO = e.default = void 0;
|
|
33819
|
-
var
|
|
33820
|
+
var u = $i();
|
|
33820
33821
|
Object.defineProperty(e, "default", { enumerable: !0, get: function() {
|
|
33821
|
-
return
|
|
33822
|
+
return u.useWebSocket;
|
|
33822
33823
|
} });
|
|
33823
|
-
var
|
|
33824
|
+
var l = Vr();
|
|
33824
33825
|
Object.defineProperty(e, "useSocketIO", { enumerable: !0, get: function() {
|
|
33825
|
-
return
|
|
33826
|
+
return l.useSocketIO;
|
|
33826
33827
|
} });
|
|
33827
33828
|
var i = Le();
|
|
33828
33829
|
Object.defineProperty(e, "ReadyState", { enumerable: !0, get: function() {
|
|
33829
33830
|
return i.ReadyState;
|
|
33830
33831
|
} });
|
|
33831
|
-
var
|
|
33832
|
+
var p = Zr();
|
|
33832
33833
|
Object.defineProperty(e, "useEventSource", { enumerable: !0, get: function() {
|
|
33833
|
-
return
|
|
33834
|
+
return p.useEventSource;
|
|
33834
33835
|
} });
|
|
33835
33836
|
var d = ji();
|
|
33836
33837
|
Object.defineProperty(e, "resetGlobalState", { enumerable: !0, get: function() {
|
|
@@ -33852,10 +33853,10 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
33852
33853
|
CASH_REGISTER_LIMIT: "cash_register_limit"
|
|
33853
33854
|
}, qr = 3e4, Xo = ({
|
|
33854
33855
|
socketUrl: e,
|
|
33855
|
-
socketHandlers:
|
|
33856
|
-
options:
|
|
33856
|
+
socketHandlers: u = {},
|
|
33857
|
+
options: l = {}
|
|
33857
33858
|
}) => {
|
|
33858
|
-
const i = Xi(!1),
|
|
33859
|
+
const i = Xi(!1), p = Xi(u), {
|
|
33859
33860
|
sendMessage: d,
|
|
33860
33861
|
// 發送普通訊息
|
|
33861
33862
|
sendJsonMessage: C,
|
|
@@ -33863,7 +33864,7 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
33863
33864
|
lastMessage: c,
|
|
33864
33865
|
// 最後接收到的訊息
|
|
33865
33866
|
// lastJsonMessage, // 最後接收到的 JSON 訊息
|
|
33866
|
-
readyState:
|
|
33867
|
+
readyState: g
|
|
33867
33868
|
// WebSocket 連線狀態
|
|
33868
33869
|
// getWebSocket, // 獲取 WebSocket 實例
|
|
33869
33870
|
} = Kr(e, {
|
|
@@ -33872,7 +33873,7 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
33872
33873
|
shouldReconnect: () => i.current === !1,
|
|
33873
33874
|
reconnectAttempts: 9999,
|
|
33874
33875
|
reconnectInterval: 1e3,
|
|
33875
|
-
...
|
|
33876
|
+
...l
|
|
33876
33877
|
}), a = wa(() => {
|
|
33877
33878
|
try {
|
|
33878
33879
|
return JSON.parse(c?.data);
|
|
@@ -33887,20 +33888,20 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
33887
33888
|
);
|
|
33888
33889
|
return () => clearInterval(t);
|
|
33889
33890
|
}, [d]), ya(() => {
|
|
33890
|
-
|
|
33891
|
-
}, [
|
|
33891
|
+
p.current = u;
|
|
33892
|
+
}, [u]), ya(() => {
|
|
33892
33893
|
if (!a) return;
|
|
33893
33894
|
const {
|
|
33894
33895
|
onDeposit: t,
|
|
33895
33896
|
onTransCode: m,
|
|
33896
|
-
onError:
|
|
33897
|
+
onError: n,
|
|
33897
33898
|
onUpdateMember: r,
|
|
33898
33899
|
onMaintainNotice: o,
|
|
33899
33900
|
onMaintainNoticeMember: _,
|
|
33900
33901
|
onReload: f,
|
|
33901
33902
|
onTransferInGame: y,
|
|
33902
33903
|
onCashRegisterLimit: s
|
|
33903
|
-
} =
|
|
33904
|
+
} = p.current, U = ba(a, "type", ""), b = {
|
|
33904
33905
|
memberInfoUid: ba(a, "member_info_uid", null),
|
|
33905
33906
|
data: ba(a, "data", null),
|
|
33906
33907
|
memo: ba(a, "memo", null)
|
|
@@ -33913,7 +33914,7 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
33913
33914
|
m?.(b);
|
|
33914
33915
|
break;
|
|
33915
33916
|
case Ee.ERROR:
|
|
33916
|
-
|
|
33917
|
+
n?.(b);
|
|
33917
33918
|
break;
|
|
33918
33919
|
case Ee.UPDATE_MEMBER:
|
|
33919
33920
|
r?.(b);
|
|
@@ -33941,29 +33942,29 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
33941
33942
|
}, [a]), ya(() => () => i.current = !0, []), {
|
|
33942
33943
|
sendMessage: d,
|
|
33943
33944
|
sendJsonMessage: C,
|
|
33944
|
-
readyState:
|
|
33945
|
+
readyState: g
|
|
33945
33946
|
// WebSocket 連線狀態
|
|
33946
33947
|
};
|
|
33947
33948
|
}, jr = () => {
|
|
33948
33949
|
const { client: e } = re();
|
|
33949
33950
|
return { eventListApi: q(
|
|
33950
|
-
async ({ paramsData:
|
|
33951
|
-
const { uid: i } =
|
|
33951
|
+
async ({ paramsData: l } = {}) => {
|
|
33952
|
+
const { uid: i } = l || {};
|
|
33952
33953
|
return await e.get(`/event/list${i ? `/${i}` : ""}`);
|
|
33953
33954
|
},
|
|
33954
33955
|
[e]
|
|
33955
33956
|
) };
|
|
33956
|
-
}, ze = "https://d1h3qe8voog6w4.cloudfront.net", on = "https://d3jx2uvukujuvn.cloudfront.net", Nn = (e) => `${ze}/reward_icon/${e}.avif`, Ln = () => `${ze}/reward_icon/background_deposit.avif`, $r = ({ paramsData: e, options:
|
|
33957
|
-
const { eventListApi:
|
|
33957
|
+
}, ze = "https://d1h3qe8voog6w4.cloudfront.net", on = "https://d3jx2uvukujuvn.cloudfront.net", Nn = (e) => `${ze}/reward_icon/${e}.avif`, Ln = () => `${ze}/reward_icon/background_deposit.avif`, $r = ({ paramsData: e, options: u } = {}) => {
|
|
33958
|
+
const { eventListApi: l, store: i } = jr(), p = i?.getState()?.isWalletCurrency || i?.getState()?.currency?.currentCurrency || "TWD";
|
|
33958
33959
|
return ae({
|
|
33959
33960
|
queryKey: ["eventList", e],
|
|
33960
|
-
queryFn: () =>
|
|
33961
|
+
queryFn: () => l({ paramsData: e }),
|
|
33961
33962
|
select: (d) => {
|
|
33962
33963
|
const { data: C } = d;
|
|
33963
|
-
return he(C, (
|
|
33964
|
-
const { events_attributes: a } =
|
|
33964
|
+
return he(C, (g) => {
|
|
33965
|
+
const { events_attributes: a } = g, t = Oe(a, (W) => W.currency_code === p) || a[0], {
|
|
33965
33966
|
event_uid: m,
|
|
33966
|
-
attribute_currency:
|
|
33967
|
+
attribute_currency: n,
|
|
33967
33968
|
attribute_is_rebate: r,
|
|
33968
33969
|
attribute_type: o,
|
|
33969
33970
|
attribute_subtype: _,
|
|
@@ -33986,9 +33987,9 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
33986
33987
|
include_principal: M
|
|
33987
33988
|
} = t || {};
|
|
33988
33989
|
return {
|
|
33989
|
-
...
|
|
33990
|
+
...g,
|
|
33990
33991
|
eventUid: m,
|
|
33991
|
-
eventCurrency:
|
|
33992
|
+
eventCurrency: n,
|
|
33992
33993
|
eventIsRebate: r,
|
|
33993
33994
|
eventType: o,
|
|
33994
33995
|
eventSubType: _,
|
|
@@ -34014,7 +34015,7 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34014
34015
|
};
|
|
34015
34016
|
});
|
|
34016
34017
|
},
|
|
34017
|
-
...
|
|
34018
|
+
...u
|
|
34018
34019
|
});
|
|
34019
34020
|
}, em = ({
|
|
34020
34021
|
options: e = {
|
|
@@ -34023,70 +34024,70 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34023
34024
|
} = {}) => ({
|
|
34024
34025
|
eventListQuery: $r({ options: e.eventList })
|
|
34025
34026
|
}), xi = () => {
|
|
34026
|
-
const { client: e } = re(),
|
|
34027
|
+
const { client: e } = re(), u = q(async () => {
|
|
34027
34028
|
const { data: d } = await e.get("/carousels");
|
|
34028
34029
|
return d;
|
|
34029
|
-
}, [e]),
|
|
34030
|
+
}, [e]), l = q(async () => await e.get("/marquees"), [e]), i = q(async () => await e.get("/notification"), [e]), p = q(
|
|
34030
34031
|
async (d) => await e.put(`/notification/${d}/read`),
|
|
34031
34032
|
[e]
|
|
34032
34033
|
);
|
|
34033
34034
|
return {
|
|
34034
|
-
commonCarouselApi:
|
|
34035
|
-
commonMarqueeApi:
|
|
34035
|
+
commonCarouselApi: u,
|
|
34036
|
+
commonMarqueeApi: l,
|
|
34036
34037
|
commonInboxApi: i,
|
|
34037
|
-
commonReadInboxApi:
|
|
34038
|
+
commonReadInboxApi: p
|
|
34038
34039
|
};
|
|
34039
34040
|
}, am = () => {
|
|
34040
|
-
const { lng: e, data2URL:
|
|
34041
|
+
const { lng: e, data2URL: u } = re(), { commonCarouselApi: l } = xi(), i = oa(e);
|
|
34041
34042
|
return ae({
|
|
34042
34043
|
queryKey: ["getCarouselList"],
|
|
34043
34044
|
queryFn: async () => {
|
|
34044
|
-
const
|
|
34045
|
-
return
|
|
34045
|
+
const p = window.carousels_list;
|
|
34046
|
+
return p || await l();
|
|
34046
34047
|
},
|
|
34047
|
-
select: (
|
|
34048
|
-
const { carousels_lang: c } = C,
|
|
34048
|
+
select: (p) => p.map((C) => {
|
|
34049
|
+
const { carousels_lang: c } = C, g = c?.find((a) => a.lang === i) || c[0];
|
|
34049
34050
|
return {
|
|
34050
34051
|
...C,
|
|
34051
|
-
carouselCurrentLanguageData:
|
|
34052
|
-
carouselCurrentLanguagePCImageUrl: `${
|
|
34053
|
-
carouselCurrentLanguageMBImageUrl: `${
|
|
34054
|
-
carouselCurrentLanguageS3PCImageUrl: `${ze}/carousels/${
|
|
34055
|
-
carouselCurrentLanguageS3MBImageUrl: `${ze}/carousels/${
|
|
34056
|
-
carouselCurrentLanguageLink:
|
|
34052
|
+
carouselCurrentLanguageData: g,
|
|
34053
|
+
carouselCurrentLanguagePCImageUrl: `${u}/carousels/${g.image_pc}`,
|
|
34054
|
+
carouselCurrentLanguageMBImageUrl: `${u}/carousels/${g.image_mobile}`,
|
|
34055
|
+
carouselCurrentLanguageS3PCImageUrl: `${ze}/carousels/${g.image_pc}`,
|
|
34056
|
+
carouselCurrentLanguageS3MBImageUrl: `${ze}/carousels/${g.image_mobile}`,
|
|
34057
|
+
carouselCurrentLanguageLink: g.url_link
|
|
34057
34058
|
};
|
|
34058
34059
|
})
|
|
34059
34060
|
});
|
|
34060
34061
|
}, im = () => {
|
|
34061
|
-
const { lng: e } = re(), { commonMarqueeApi:
|
|
34062
|
+
const { lng: e } = re(), { commonMarqueeApi: u } = xi(), l = oa(e);
|
|
34062
34063
|
return ae({
|
|
34063
34064
|
queryKey: ["getMarqueeList"],
|
|
34064
34065
|
queryFn: async () => {
|
|
34065
34066
|
const i = window.marquees;
|
|
34066
|
-
return i || await
|
|
34067
|
+
return i || await u();
|
|
34067
34068
|
},
|
|
34068
34069
|
select: (i) => {
|
|
34069
|
-
const
|
|
34070
|
-
return he(
|
|
34070
|
+
const p = Ne(i) ? i : i.Marquees;
|
|
34071
|
+
return he(p, (C) => C[l] || C["en-US"]);
|
|
34071
34072
|
}
|
|
34072
34073
|
});
|
|
34073
34074
|
}, tm = ({ options: e } = {}) => {
|
|
34074
|
-
const { rankingGameApi:
|
|
34075
|
+
const { rankingGameApi: u } = fe();
|
|
34075
34076
|
return ae({
|
|
34076
34077
|
queryKey: ["rankingGame"],
|
|
34077
|
-
queryFn: async () =>
|
|
34078
|
+
queryFn: async () => u(),
|
|
34078
34079
|
enabled: window.profit_ranking_status === 1,
|
|
34079
|
-
select: (
|
|
34080
|
-
const { data: i } =
|
|
34080
|
+
select: (l) => {
|
|
34081
|
+
const { data: i } = l;
|
|
34081
34082
|
return he(i, (d) => {
|
|
34082
34083
|
const {
|
|
34083
34084
|
game_uid: C,
|
|
34084
34085
|
game_code: c,
|
|
34085
|
-
game_name_en:
|
|
34086
|
+
game_name_en: g,
|
|
34086
34087
|
game_platform_uid: a,
|
|
34087
34088
|
memId: t,
|
|
34088
34089
|
platform: m,
|
|
34089
|
-
popularity_ranking:
|
|
34090
|
+
popularity_ranking: n,
|
|
34090
34091
|
profit: r
|
|
34091
34092
|
} = d;
|
|
34092
34093
|
return {
|
|
@@ -34094,7 +34095,7 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34094
34095
|
//遊戲UID
|
|
34095
34096
|
gameCode: c,
|
|
34096
34097
|
//遊戲代碼
|
|
34097
|
-
gameNameEn:
|
|
34098
|
+
gameNameEn: g,
|
|
34098
34099
|
//遊戲名稱(英文)
|
|
34099
34100
|
gamePlatformUid: a,
|
|
34100
34101
|
//遊戲平台UID
|
|
@@ -34102,7 +34103,7 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34102
34103
|
//會員ID
|
|
34103
34104
|
platform: m,
|
|
34104
34105
|
//平台
|
|
34105
|
-
popularityRanking:
|
|
34106
|
+
popularityRanking: n,
|
|
34106
34107
|
//人氣排名
|
|
34107
34108
|
profit: r
|
|
34108
34109
|
//winloss
|
|
@@ -34112,10 +34113,10 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34112
34113
|
...e
|
|
34113
34114
|
});
|
|
34114
34115
|
}, Qr = ({ options: e } = {}) => {
|
|
34115
|
-
const { commonInboxApi:
|
|
34116
|
+
const { commonInboxApi: u } = xi(), { getToken: l, lng: i } = re(), p = l?.(), d = oa(i);
|
|
34116
34117
|
return ae({
|
|
34117
34118
|
queryKey: ["inboxList"],
|
|
34118
|
-
queryFn: async () => await
|
|
34119
|
+
queryFn: async () => await u(),
|
|
34119
34120
|
select: (C) => {
|
|
34120
34121
|
const { data: c } = C;
|
|
34121
34122
|
return he(c, (a) => {
|
|
@@ -34129,14 +34130,14 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34129
34130
|
};
|
|
34130
34131
|
});
|
|
34131
34132
|
},
|
|
34132
|
-
enabled: !!
|
|
34133
|
+
enabled: !!p,
|
|
34133
34134
|
...e
|
|
34134
34135
|
});
|
|
34135
34136
|
}, Yr = ({ options: e } = {}) => {
|
|
34136
|
-
const { commonReadInboxApi:
|
|
34137
|
+
const { commonReadInboxApi: u } = xi();
|
|
34137
34138
|
return Ce({
|
|
34138
34139
|
mutationKey: ["readInbox"],
|
|
34139
|
-
mutationFn: async (
|
|
34140
|
+
mutationFn: async (l) => await u(l),
|
|
34140
34141
|
...e
|
|
34141
34142
|
});
|
|
34142
34143
|
}, nm = ({
|
|
@@ -34145,16 +34146,16 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34145
34146
|
readInbox: {}
|
|
34146
34147
|
}
|
|
34147
34148
|
} = {}) => {
|
|
34148
|
-
const
|
|
34149
|
+
const u = Qr({ options: e.inboxList }), l = Yr({ options: e.readInbox });
|
|
34149
34150
|
return {
|
|
34150
|
-
inboxListQuery:
|
|
34151
|
-
readInboxMutation:
|
|
34151
|
+
inboxListQuery: u,
|
|
34152
|
+
readInboxMutation: l
|
|
34152
34153
|
};
|
|
34153
34154
|
}, Gn = () => {
|
|
34154
34155
|
const { client: e } = re();
|
|
34155
34156
|
return {
|
|
34156
34157
|
newsListApi: q(
|
|
34157
|
-
async ({ uid:
|
|
34158
|
+
async ({ uid: l, params: i } = {}) => await e.get(`/news${l ? `/${l}` : ""}`, {
|
|
34158
34159
|
params: i
|
|
34159
34160
|
}),
|
|
34160
34161
|
[e]
|
|
@@ -34206,18 +34207,18 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34206
34207
|
value: "other",
|
|
34207
34208
|
...e.other
|
|
34208
34209
|
}
|
|
34209
|
-
], lm = ({ options: e, formData:
|
|
34210
|
-
const { lng:
|
|
34210
|
+
], lm = ({ options: e, formData: u } = {}) => {
|
|
34211
|
+
const { lng: l } = re(), { newsListApi: i } = Gn(), p = oa(l);
|
|
34211
34212
|
return ae({
|
|
34212
34213
|
queryKey: ["newsList"],
|
|
34213
34214
|
queryFn: () => {
|
|
34214
|
-
const { uid: d, params: C } =
|
|
34215
|
+
const { uid: d, params: C } = u || {};
|
|
34215
34216
|
return i({ uid: d, params: C });
|
|
34216
34217
|
},
|
|
34217
34218
|
select: (d) => {
|
|
34218
|
-
const { data: C } = d, c = C.data?.filter((a) => a.is_active === 1),
|
|
34219
|
+
const { data: C } = d, c = C.data?.filter((a) => a.is_active === 1), g = he(c, (a) => {
|
|
34219
34220
|
const t = Oe(a.news_language, {
|
|
34220
|
-
language:
|
|
34221
|
+
language: p
|
|
34221
34222
|
}) || a.news_language[0];
|
|
34222
34223
|
return {
|
|
34223
34224
|
...a,
|
|
@@ -34226,23 +34227,23 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34226
34227
|
});
|
|
34227
34228
|
return {
|
|
34228
34229
|
...d.data,
|
|
34229
|
-
data:
|
|
34230
|
+
data: g,
|
|
34230
34231
|
blogType: Xr({ typeConfig: e?.typeConfig })
|
|
34231
34232
|
};
|
|
34232
34233
|
},
|
|
34233
34234
|
...e
|
|
34234
34235
|
});
|
|
34235
|
-
}, rm = ({ options: e, formData:
|
|
34236
|
-
const { lng:
|
|
34236
|
+
}, rm = ({ options: e, formData: u } = {}) => {
|
|
34237
|
+
const { lng: l } = re(), { newsListApi: i } = Gn(), p = oa(l);
|
|
34237
34238
|
return ae({
|
|
34238
34239
|
queryKey: ["newsList"],
|
|
34239
34240
|
queryFn: () => {
|
|
34240
|
-
const { uid: d, params: C } =
|
|
34241
|
+
const { uid: d, params: C } = u || {};
|
|
34241
34242
|
return i({ uid: d, params: C });
|
|
34242
34243
|
},
|
|
34243
34244
|
select: (d) => {
|
|
34244
34245
|
const C = Oe(d.data.news_language, {
|
|
34245
|
-
language:
|
|
34246
|
+
language: p
|
|
34246
34247
|
}) || d.data.news_language[0];
|
|
34247
34248
|
return {
|
|
34248
34249
|
...d.data,
|
|
@@ -34252,31 +34253,31 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34252
34253
|
...e
|
|
34253
34254
|
});
|
|
34254
34255
|
}, Ze = () => {
|
|
34255
|
-
const { client: e } = re(),
|
|
34256
|
+
const { client: e } = re(), u = q(async () => await e.get("/payment/list"), [e]), l = q(
|
|
34256
34257
|
async ({ paramsData: a }) => await e.get("/thirdPartyPayment/list", {
|
|
34257
34258
|
params: { ...a }
|
|
34258
34259
|
}),
|
|
34259
34260
|
[e]
|
|
34260
34261
|
), i = q(
|
|
34261
34262
|
async (a) => {
|
|
34262
|
-
const { deposit_amount: t, method_id: m, currency_code:
|
|
34263
|
+
const { deposit_amount: t, method_id: m, currency_code: n, provider_uid: r } = a;
|
|
34263
34264
|
return await e.post("/thirdPartyPayment/deposit", {
|
|
34264
34265
|
deposit: {
|
|
34265
34266
|
deposit_amount: t,
|
|
34266
34267
|
method_id: m,
|
|
34267
|
-
currency_code:
|
|
34268
|
+
currency_code: n,
|
|
34268
34269
|
provider_uid: r
|
|
34269
34270
|
}
|
|
34270
34271
|
});
|
|
34271
34272
|
},
|
|
34272
34273
|
[e]
|
|
34273
|
-
),
|
|
34274
|
+
), p = q(
|
|
34274
34275
|
async (a) => {
|
|
34275
|
-
const { bank_uid: t, amount: m, bank_number_last5:
|
|
34276
|
+
const { bank_uid: t, amount: m, bank_number_last5: n, postscript: r } = a;
|
|
34276
34277
|
return await e.post("/vip/deposit", {
|
|
34277
34278
|
bank_uid: t,
|
|
34278
34279
|
amount: m,
|
|
34279
|
-
bank_number_last5:
|
|
34280
|
+
bank_number_last5: n,
|
|
34280
34281
|
postscript: r
|
|
34281
34282
|
});
|
|
34282
34283
|
},
|
|
@@ -34286,14 +34287,14 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34286
34287
|
const {
|
|
34287
34288
|
withdrawal_amount: t,
|
|
34288
34289
|
bank_account_number: m,
|
|
34289
|
-
currency_code:
|
|
34290
|
+
currency_code: n,
|
|
34290
34291
|
withdrawal_code: r
|
|
34291
34292
|
} = a;
|
|
34292
34293
|
return await e.post("/thirdPartyPayment/withdraw", {
|
|
34293
34294
|
withdraw: {
|
|
34294
34295
|
withdrawal_amount: t,
|
|
34295
34296
|
bank_account_number: m,
|
|
34296
|
-
currency_code:
|
|
34297
|
+
currency_code: n,
|
|
34297
34298
|
withdrawal_code: Dn.MD5(r).toString(),
|
|
34298
34299
|
payment_type: "ThirdParty"
|
|
34299
34300
|
}
|
|
@@ -34302,12 +34303,12 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34302
34303
|
[e]
|
|
34303
34304
|
), C = q(
|
|
34304
34305
|
async ({ paramsData: a } = {}) => {
|
|
34305
|
-
const { str_date: t, end_date: m, limit:
|
|
34306
|
+
const { str_date: t, end_date: m, limit: n = 25, current_page: r } = a || {}, o = de().format("HH:mm:ss"), _ = de().subtract(24, "hour").format("HH:mm:ss");
|
|
34306
34307
|
return await e.get("/report/deposit", {
|
|
34307
34308
|
params: {
|
|
34308
34309
|
str_date: `${de(t).format("YYYY-MM-DD")} ${o}`,
|
|
34309
34310
|
end_date: `${de(m).format("YYYY-MM-DD")} ${_}`,
|
|
34310
|
-
limit:
|
|
34311
|
+
limit: n,
|
|
34311
34312
|
page: r
|
|
34312
34313
|
}
|
|
34313
34314
|
});
|
|
@@ -34315,25 +34316,25 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34315
34316
|
[e]
|
|
34316
34317
|
), c = q(
|
|
34317
34318
|
async ({ paramsData: a }) => {
|
|
34318
|
-
const { str_date: t, end_date: m, limit:
|
|
34319
|
+
const { str_date: t, end_date: m, limit: n = 25, current_page: r } = a || {}, o = de().format("HH:mm:ss"), _ = de().subtract(24, "hour").format("HH:mm:ss");
|
|
34319
34320
|
return await e.get("report/eventsreward", {
|
|
34320
34321
|
params: {
|
|
34321
34322
|
str_date: `${de(t).format("YYYY-MM-DD")} ${o}`,
|
|
34322
34323
|
end_date: `${de(m).format("YYYY-MM-DD")} ${_}`,
|
|
34323
|
-
limit:
|
|
34324
|
+
limit: n,
|
|
34324
34325
|
page: r
|
|
34325
34326
|
}
|
|
34326
34327
|
});
|
|
34327
34328
|
},
|
|
34328
34329
|
[e]
|
|
34329
|
-
),
|
|
34330
|
+
), g = q(
|
|
34330
34331
|
async ({ paramsData: a } = {}) => {
|
|
34331
|
-
const { str_date: t, end_date: m, limit:
|
|
34332
|
+
const { str_date: t, end_date: m, limit: n = 25, current_page: r } = a || {};
|
|
34332
34333
|
return await e.get("/report/withdraw", {
|
|
34333
34334
|
params: {
|
|
34334
34335
|
str_date: `${de(t).format("YYYY-MM-DD")} 12:00:00`,
|
|
34335
34336
|
end_date: `${de(m).format("YYYY-MM-DD")} 11:59:59`,
|
|
34336
|
-
limit:
|
|
34337
|
+
limit: n,
|
|
34337
34338
|
page: r
|
|
34338
34339
|
}
|
|
34339
34340
|
});
|
|
@@ -34341,38 +34342,38 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34341
34342
|
[e]
|
|
34342
34343
|
);
|
|
34343
34344
|
return {
|
|
34344
|
-
depositApiV1:
|
|
34345
|
-
depositApiV2:
|
|
34345
|
+
depositApiV1: u,
|
|
34346
|
+
depositApiV2: l,
|
|
34346
34347
|
depositApi: i,
|
|
34347
|
-
bankDepositApi:
|
|
34348
|
+
bankDepositApi: p,
|
|
34348
34349
|
withdrawApi: d,
|
|
34349
34350
|
depositTransactionApi: C,
|
|
34350
34351
|
eventTransactionApi: c,
|
|
34351
|
-
withdrawTransactionApi:
|
|
34352
|
+
withdrawTransactionApi: g
|
|
34352
34353
|
};
|
|
34353
34354
|
}, eo = ({ options: e } = {}) => {
|
|
34354
|
-
const { depositApiV1:
|
|
34355
|
+
const { depositApiV1: u } = Ze();
|
|
34355
34356
|
return ae({
|
|
34356
34357
|
queryKey: ["depositV1"],
|
|
34357
|
-
queryFn:
|
|
34358
|
+
queryFn: u,
|
|
34358
34359
|
...e
|
|
34359
34360
|
});
|
|
34360
|
-
}, ao = ({ paramsData: e, options:
|
|
34361
|
-
const { depositApiV2:
|
|
34361
|
+
}, ao = ({ paramsData: e, options: u } = {}) => {
|
|
34362
|
+
const { depositApiV2: l } = Ze();
|
|
34362
34363
|
return ae({
|
|
34363
34364
|
queryKey: ["depositV2", e],
|
|
34364
|
-
queryFn: () =>
|
|
34365
|
+
queryFn: () => l({ paramsData: e }),
|
|
34365
34366
|
select: (i) => {
|
|
34366
|
-
const { third_party:
|
|
34367
|
-
...
|
|
34368
|
-
providerList: he(
|
|
34367
|
+
const { third_party: p, bank: d, vip: C } = i, c = he(p, (g) => ({
|
|
34368
|
+
...g,
|
|
34369
|
+
providerList: he(g.providers, (a) => ({
|
|
34369
34370
|
...a,
|
|
34370
34371
|
providerUid: a.uid,
|
|
34371
34372
|
providerImageUrl: `${ze}/paymentIcon/${at(a.provider_name)}.png`,
|
|
34372
34373
|
providerMax: a.max,
|
|
34373
34374
|
providerMin: a.min
|
|
34374
34375
|
})),
|
|
34375
|
-
methodImageUrl: `${ze}/paymentIcon/${at(
|
|
34376
|
+
methodImageUrl: `${ze}/paymentIcon/${at(g.method_name)}pay.png`
|
|
34376
34377
|
}));
|
|
34377
34378
|
return {
|
|
34378
34379
|
bank: d,
|
|
@@ -34380,103 +34381,103 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34380
34381
|
thirdParty: c
|
|
34381
34382
|
};
|
|
34382
34383
|
},
|
|
34383
|
-
...
|
|
34384
|
+
...u
|
|
34384
34385
|
});
|
|
34385
34386
|
}, io = ({ options: e } = {}) => {
|
|
34386
|
-
const { depositApi:
|
|
34387
|
+
const { depositApi: u } = Ze();
|
|
34387
34388
|
return Ce({
|
|
34388
34389
|
mutationKey: ["depositAction"],
|
|
34389
|
-
mutationFn: async (
|
|
34390
|
+
mutationFn: async (l) => u(l),
|
|
34390
34391
|
...e
|
|
34391
34392
|
});
|
|
34392
34393
|
}, to = ({ options: e } = {}) => {
|
|
34393
|
-
const { withdrawApi:
|
|
34394
|
+
const { withdrawApi: u } = Ze();
|
|
34394
34395
|
return Ce({
|
|
34395
34396
|
mutationKey: ["withdrawAction"],
|
|
34396
|
-
mutationFn: async (
|
|
34397
|
+
mutationFn: async (l) => u(l),
|
|
34397
34398
|
...e
|
|
34398
34399
|
});
|
|
34399
|
-
}, no = ({ paramsData: e, options:
|
|
34400
|
-
const { depositTransactionApi:
|
|
34400
|
+
}, no = ({ paramsData: e, options: u } = {}) => {
|
|
34401
|
+
const { depositTransactionApi: l } = Ze();
|
|
34401
34402
|
return ae({
|
|
34402
34403
|
queryKey: ["depositTransaction", e],
|
|
34403
|
-
queryFn: () =>
|
|
34404
|
-
...
|
|
34404
|
+
queryFn: () => l({ paramsData: e }),
|
|
34405
|
+
...u
|
|
34405
34406
|
});
|
|
34406
|
-
}, lo = ({ paramsData: e, options:
|
|
34407
|
-
const { eventTransactionApi:
|
|
34407
|
+
}, lo = ({ paramsData: e, options: u } = {}) => {
|
|
34408
|
+
const { eventTransactionApi: l } = Ze();
|
|
34408
34409
|
return ae({
|
|
34409
34410
|
queryKey: ["eventTransaction", e],
|
|
34410
|
-
queryFn: () =>
|
|
34411
|
-
...
|
|
34411
|
+
queryFn: () => l({ paramsData: e }),
|
|
34412
|
+
...u
|
|
34412
34413
|
});
|
|
34413
34414
|
}, ro = ({ options: e } = {}) => {
|
|
34414
|
-
const { bankDepositApi:
|
|
34415
|
+
const { bankDepositApi: u } = Ze();
|
|
34415
34416
|
return Ce({
|
|
34416
34417
|
mutationKey: ["bankDeposit"],
|
|
34417
|
-
mutationFn: async (
|
|
34418
|
+
mutationFn: async (l) => u(l),
|
|
34418
34419
|
...e
|
|
34419
34420
|
});
|
|
34420
|
-
}, oo = ({ paramsData: e, options:
|
|
34421
|
-
const { withdrawTransactionApi:
|
|
34421
|
+
}, oo = ({ paramsData: e, options: u } = {}) => {
|
|
34422
|
+
const { withdrawTransactionApi: l } = Ze();
|
|
34422
34423
|
return ae({
|
|
34423
34424
|
queryKey: ["withdrawTransaction", e],
|
|
34424
|
-
queryFn: () =>
|
|
34425
|
-
...
|
|
34425
|
+
queryFn: () => l({ paramsData: e }),
|
|
34426
|
+
...u
|
|
34426
34427
|
});
|
|
34427
34428
|
}, om = ({
|
|
34428
34429
|
depositV1: e = {},
|
|
34429
|
-
depositV2:
|
|
34430
|
-
depositTransaction:
|
|
34430
|
+
depositV2: u = {},
|
|
34431
|
+
depositTransaction: l = {},
|
|
34431
34432
|
depositAction: i = {},
|
|
34432
|
-
withdrawAction:
|
|
34433
|
+
withdrawAction: p = {},
|
|
34433
34434
|
bankDeposit: d = {},
|
|
34434
34435
|
eventTransaction: C = {},
|
|
34435
34436
|
withdrawTransaction: c = {}
|
|
34436
34437
|
} = {}) => {
|
|
34437
|
-
const
|
|
34438
|
+
const g = eo(e), a = ao(u), t = no(l), m = io(i), n = to(p), r = ro(d), o = lo(C), _ = oo(
|
|
34438
34439
|
c
|
|
34439
34440
|
);
|
|
34440
34441
|
return {
|
|
34441
|
-
depositV1:
|
|
34442
|
+
depositV1: g,
|
|
34442
34443
|
depositV2: a,
|
|
34443
34444
|
depositTransaction: t,
|
|
34444
34445
|
depositAction: m,
|
|
34445
|
-
withdrawAction:
|
|
34446
|
+
withdrawAction: n,
|
|
34446
34447
|
bankDepositAction: r,
|
|
34447
34448
|
eventTransaction: o,
|
|
34448
34449
|
withdrawTransaction: _
|
|
34449
34450
|
};
|
|
34450
34451
|
}, Mn = "3.7.8", mo = Mn, ma = typeof Buffer == "function", mn = typeof TextDecoder == "function" ? new TextDecoder() : void 0, sn = typeof TextEncoder == "function" ? new TextEncoder() : void 0, so = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Ca = Array.prototype.slice.call(so), Fa = ((e) => {
|
|
34451
|
-
let
|
|
34452
|
-
return e.forEach((
|
|
34453
|
-
})(Ca), uo = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, ue = String.fromCharCode.bind(String), un = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), Rn = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (
|
|
34454
|
-
let
|
|
34452
|
+
let u = {};
|
|
34453
|
+
return e.forEach((l, i) => u[l] = i), u;
|
|
34454
|
+
})(Ca), uo = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, ue = String.fromCharCode.bind(String), un = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), Rn = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (u) => u == "+" ? "-" : "_"), Pn = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), Fn = (e) => {
|
|
34455
|
+
let u, l, i, p, d = "";
|
|
34455
34456
|
const C = e.length % 3;
|
|
34456
34457
|
for (let c = 0; c < e.length; ) {
|
|
34457
|
-
if ((
|
|
34458
|
+
if ((l = e.charCodeAt(c++)) > 255 || (i = e.charCodeAt(c++)) > 255 || (p = e.charCodeAt(c++)) > 255)
|
|
34458
34459
|
throw new TypeError("invalid character found");
|
|
34459
|
-
|
|
34460
|
+
u = l << 16 | i << 8 | p, d += Ca[u >> 18 & 63] + Ca[u >> 12 & 63] + Ca[u >> 6 & 63] + Ca[u & 63];
|
|
34460
34461
|
}
|
|
34461
34462
|
return C ? d.slice(0, C - 3) + "===".substring(C) : d;
|
|
34462
34463
|
}, Qi = typeof btoa == "function" ? (e) => btoa(e) : ma ? (e) => Buffer.from(e, "binary").toString("base64") : Fn, Hi = ma ? (e) => Buffer.from(e).toString("base64") : (e) => {
|
|
34463
|
-
let
|
|
34464
|
-
for (let i = 0,
|
|
34465
|
-
|
|
34466
|
-
return Qi(
|
|
34467
|
-
}, vi = (e,
|
|
34464
|
+
let l = [];
|
|
34465
|
+
for (let i = 0, p = e.length; i < p; i += 4096)
|
|
34466
|
+
l.push(ue.apply(null, e.subarray(i, i + 4096)));
|
|
34467
|
+
return Qi(l.join(""));
|
|
34468
|
+
}, vi = (e, u = !1) => u ? Rn(Hi(e)) : Hi(e), po = (e) => {
|
|
34468
34469
|
if (e.length < 2) {
|
|
34469
|
-
var
|
|
34470
|
-
return
|
|
34470
|
+
var u = e.charCodeAt(0);
|
|
34471
|
+
return u < 128 ? e : u < 2048 ? ue(192 | u >>> 6) + ue(128 | u & 63) : ue(224 | u >>> 12 & 15) + ue(128 | u >>> 6 & 63) + ue(128 | u & 63);
|
|
34471
34472
|
} else {
|
|
34472
|
-
var
|
|
34473
|
-
return ue(240 |
|
|
34473
|
+
var u = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
|
|
34474
|
+
return ue(240 | u >>> 18 & 7) + ue(128 | u >>> 12 & 63) + ue(128 | u >>> 6 & 63) + ue(128 | u & 63);
|
|
34474
34475
|
}
|
|
34475
|
-
}, go = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, wn = (e) => e.replace(go, po), pn = ma ? (e) => Buffer.from(e, "utf8").toString("base64") : sn ? (e) => Hi(sn.encode(e)) : (e) => Qi(wn(e)), ra = (e,
|
|
34476
|
+
}, go = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, wn = (e) => e.replace(go, po), pn = ma ? (e) => Buffer.from(e, "utf8").toString("base64") : sn ? (e) => Hi(sn.encode(e)) : (e) => Qi(wn(e)), ra = (e, u = !1) => u ? Rn(pn(e)) : pn(e), gn = (e) => ra(e, !0), co = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, _o = (e) => {
|
|
34476
34477
|
switch (e.length) {
|
|
34477
34478
|
case 4:
|
|
34478
|
-
var
|
|
34479
|
-
return ue((
|
|
34479
|
+
var u = (7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3), l = u - 65536;
|
|
34480
|
+
return ue((l >>> 10) + 55296) + ue((l & 1023) + 56320);
|
|
34480
34481
|
case 3:
|
|
34481
34482
|
return ue((15 & e.charCodeAt(0)) << 12 | (63 & e.charCodeAt(1)) << 6 | 63 & e.charCodeAt(2));
|
|
34482
34483
|
default:
|
|
@@ -34486,26 +34487,26 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34486
34487
|
if (e = e.replace(/\s+/g, ""), !uo.test(e))
|
|
34487
34488
|
throw new TypeError("malformed base64.");
|
|
34488
34489
|
e += "==".slice(2 - (e.length & 3));
|
|
34489
|
-
let
|
|
34490
|
+
let u, l, i, p = [];
|
|
34490
34491
|
for (let d = 0; d < e.length; )
|
|
34491
|
-
|
|
34492
|
-
return
|
|
34493
|
-
}, Yi = typeof atob == "function" ? (e) => atob(Pn(e)) : ma ? (e) => Buffer.from(e, "base64").toString("binary") : An, Bn = ma ? (e) => un(Buffer.from(e, "base64")) : (e) => un(Yi(e).split("").map((
|
|
34492
|
+
u = Fa[e.charAt(d++)] << 18 | Fa[e.charAt(d++)] << 12 | (l = Fa[e.charAt(d++)]) << 6 | (i = Fa[e.charAt(d++)]), l === 64 ? p.push(ue(u >> 16 & 255)) : i === 64 ? p.push(ue(u >> 16 & 255, u >> 8 & 255)) : p.push(ue(u >> 16 & 255, u >> 8 & 255, u & 255));
|
|
34493
|
+
return p.join("");
|
|
34494
|
+
}, Yi = typeof atob == "function" ? (e) => atob(Pn(e)) : ma ? (e) => Buffer.from(e, "base64").toString("binary") : An, Bn = ma ? (e) => un(Buffer.from(e, "base64")) : (e) => un(Yi(e).split("").map((u) => u.charCodeAt(0))), Hn = (e) => Bn(Wn(e)), fo = ma ? (e) => Buffer.from(e, "base64").toString("utf8") : mn ? (e) => mn.decode(Bn(e)) : (e) => On(Yi(e)), Wn = (e) => Pn(e.replace(/[-_]/g, (u) => u == "-" ? "+" : "/")), Wi = (e) => fo(Wn(e)), Uo = (e) => {
|
|
34494
34495
|
if (typeof e != "string")
|
|
34495
34496
|
return !1;
|
|
34496
|
-
const
|
|
34497
|
-
return !/[^\s0-9a-zA-Z\+/]/.test(
|
|
34497
|
+
const u = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
|
|
34498
|
+
return !/[^\s0-9a-zA-Z\+/]/.test(u) || !/[^\s0-9a-zA-Z\-_]/.test(u);
|
|
34498
34499
|
}, zn = (e) => ({
|
|
34499
34500
|
value: e,
|
|
34500
34501
|
enumerable: !1,
|
|
34501
34502
|
writable: !0,
|
|
34502
34503
|
configurable: !0
|
|
34503
34504
|
}), Vn = function() {
|
|
34504
|
-
const e = (
|
|
34505
|
+
const e = (u, l) => Object.defineProperty(String.prototype, u, zn(l));
|
|
34505
34506
|
e("fromBase64", function() {
|
|
34506
34507
|
return Wi(this);
|
|
34507
|
-
}), e("toBase64", function(
|
|
34508
|
-
return ra(this,
|
|
34508
|
+
}), e("toBase64", function(u) {
|
|
34509
|
+
return ra(this, u);
|
|
34509
34510
|
}), e("toBase64URI", function() {
|
|
34510
34511
|
return ra(this, !0);
|
|
34511
34512
|
}), e("toBase64URL", function() {
|
|
@@ -34514,9 +34515,9 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34514
34515
|
return Hn(this);
|
|
34515
34516
|
});
|
|
34516
34517
|
}, Zn = function() {
|
|
34517
|
-
const e = (
|
|
34518
|
-
e("toBase64", function(
|
|
34519
|
-
return vi(this,
|
|
34518
|
+
const e = (u, l) => Object.defineProperty(Uint8Array.prototype, u, zn(l));
|
|
34519
|
+
e("toBase64", function(u) {
|
|
34520
|
+
return vi(this, u);
|
|
34520
34521
|
}), e("toBase64URI", function() {
|
|
34521
34522
|
return vi(this, !0);
|
|
34522
34523
|
}), e("toBase64URL", function() {
|
|
@@ -34545,14 +34546,14 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34545
34546
|
extendString: Vn,
|
|
34546
34547
|
extendUint8Array: Zn,
|
|
34547
34548
|
extendBuiltins: yo
|
|
34548
|
-
}, mm = (e,
|
|
34549
|
-
const { playGameApi:
|
|
34549
|
+
}, mm = (e, u) => {
|
|
34550
|
+
const { playGameApi: l } = Ji();
|
|
34550
34551
|
return ae({
|
|
34551
34552
|
queryKey: ["playGame"],
|
|
34552
34553
|
queryFn: async () => {
|
|
34553
|
-
const { gameUid: i, gameCode:
|
|
34554
|
+
const { gameUid: i, gameCode: p, isMobile: d, gameCurrency: C, currentCurrency: c } = e || {}, g = await l({
|
|
34554
34555
|
gameUid: i,
|
|
34555
|
-
gameCode:
|
|
34556
|
+
gameCode: p,
|
|
34556
34557
|
isMobile: d,
|
|
34557
34558
|
gameCurrency: C,
|
|
34558
34559
|
currentCurrency: c
|
|
@@ -34560,16 +34561,16 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34560
34561
|
game_currency: a,
|
|
34561
34562
|
lang: t,
|
|
34562
34563
|
not_support_iframe: m,
|
|
34563
|
-
portrait:
|
|
34564
|
+
portrait: n,
|
|
34564
34565
|
url: r,
|
|
34565
34566
|
is_html_code: o,
|
|
34566
34567
|
message: _
|
|
34567
|
-
} =
|
|
34568
|
+
} = g;
|
|
34568
34569
|
return {
|
|
34569
34570
|
gameCurrency: a,
|
|
34570
34571
|
lang: t,
|
|
34571
34572
|
supportIframe: !m,
|
|
34572
|
-
supportPortrait:
|
|
34573
|
+
supportPortrait: n,
|
|
34573
34574
|
isHtmlCode: o,
|
|
34574
34575
|
gameUrl: r,
|
|
34575
34576
|
decodeGameUrl: bo.decode(r),
|
|
@@ -34577,54 +34578,54 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34577
34578
|
};
|
|
34578
34579
|
},
|
|
34579
34580
|
enabled: !!e?.gameCode,
|
|
34580
|
-
...
|
|
34581
|
+
...u
|
|
34581
34582
|
});
|
|
34582
34583
|
}, Ta = () => {
|
|
34583
|
-
const { client: e } = re(),
|
|
34584
|
+
const { client: e } = re(), u = q(
|
|
34584
34585
|
async ({ uid: C, params: c } = {}) => await e.get(`/memberRewards${C ? `/${C}` : ""}`, {
|
|
34585
34586
|
params: c
|
|
34586
34587
|
}),
|
|
34587
34588
|
[e]
|
|
34588
|
-
),
|
|
34589
|
+
), l = q(async () => await e.get("/memberRewards/member/unused"), [e]), i = q(async () => await e.get("/memberRewards/member/expired"), [e]), p = q(
|
|
34589
34590
|
async (C) => await e.post("/memberRewards/memberGetRewards", {
|
|
34590
34591
|
memberRewards_uid: C
|
|
34591
34592
|
}),
|
|
34592
34593
|
[e]
|
|
34593
34594
|
), d = q(async () => await e.get("/memberRewards/member/history"), [e]);
|
|
34594
34595
|
return {
|
|
34595
|
-
rewardListApi:
|
|
34596
|
-
unUsedRewardListApi:
|
|
34596
|
+
rewardListApi: u,
|
|
34597
|
+
unUsedRewardListApi: l,
|
|
34597
34598
|
expiredRewardListApi: i,
|
|
34598
|
-
redeemRewardApi:
|
|
34599
|
+
redeemRewardApi: p,
|
|
34599
34600
|
historyRewardApi: d
|
|
34600
34601
|
};
|
|
34601
34602
|
}, Co = ({ options: e } = {}) => {
|
|
34602
|
-
const { rewardListApi:
|
|
34603
|
+
const { rewardListApi: u } = Ta();
|
|
34603
34604
|
return ae({
|
|
34604
34605
|
queryKey: ["rewardsList"],
|
|
34605
|
-
queryFn: (
|
|
34606
|
-
const { uid: i, params:
|
|
34607
|
-
return
|
|
34606
|
+
queryFn: (l) => {
|
|
34607
|
+
const { uid: i, params: p } = l || {};
|
|
34608
|
+
return u({ uid: i, params: p });
|
|
34608
34609
|
},
|
|
34609
|
-
select: (
|
|
34610
|
-
const i = he(
|
|
34610
|
+
select: (l) => {
|
|
34611
|
+
const i = he(l.data, (p) => {
|
|
34611
34612
|
const {
|
|
34612
34613
|
wagering_restricted_amount: d,
|
|
34613
34614
|
claimed_amount: C
|
|
34614
|
-
} =
|
|
34615
|
-
expiration_days:
|
|
34615
|
+
} = p, c = ba(p, "rewards", {}), {
|
|
34616
|
+
expiration_days: g,
|
|
34616
34617
|
name: a,
|
|
34617
34618
|
position: t,
|
|
34618
34619
|
type: m,
|
|
34619
|
-
uid:
|
|
34620
|
+
uid: n
|
|
34620
34621
|
} = c;
|
|
34621
34622
|
return {
|
|
34622
|
-
...
|
|
34623
|
-
rewardExpirationDays:
|
|
34623
|
+
...p,
|
|
34624
|
+
rewardExpirationDays: g,
|
|
34624
34625
|
rewardName: a,
|
|
34625
34626
|
rewardPosition: t,
|
|
34626
34627
|
rewardType: m,
|
|
34627
|
-
rewardUid:
|
|
34628
|
+
rewardUid: n,
|
|
34628
34629
|
rewardWagering: d,
|
|
34629
34630
|
rewardAmount: C,
|
|
34630
34631
|
rewardBg: Ln(),
|
|
@@ -34632,38 +34633,38 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34632
34633
|
};
|
|
34633
34634
|
});
|
|
34634
34635
|
return {
|
|
34635
|
-
...
|
|
34636
|
+
...l,
|
|
34636
34637
|
rewardsList: i
|
|
34637
34638
|
};
|
|
34638
34639
|
},
|
|
34639
34640
|
...e
|
|
34640
34641
|
});
|
|
34641
34642
|
}, vo = ({ options: e } = {}) => {
|
|
34642
|
-
const { redeemRewardApi:
|
|
34643
|
+
const { redeemRewardApi: u } = Ta();
|
|
34643
34644
|
return Ce({
|
|
34644
34645
|
mutationKey: ["redeemReward"],
|
|
34645
|
-
mutationFn: async (
|
|
34646
|
+
mutationFn: async (l) => await u(l),
|
|
34646
34647
|
...e
|
|
34647
34648
|
});
|
|
34648
34649
|
}, To = ({ options: e } = {}) => {
|
|
34649
|
-
const { unUsedRewardListApi:
|
|
34650
|
+
const { unUsedRewardListApi: u } = Ta();
|
|
34650
34651
|
return ae({
|
|
34651
34652
|
queryKey: ["unUsedRewardsList"],
|
|
34652
|
-
queryFn:
|
|
34653
|
+
queryFn: u,
|
|
34653
34654
|
...e
|
|
34654
34655
|
});
|
|
34655
34656
|
}, ho = ({ options: e } = {}) => {
|
|
34656
|
-
const { expiredRewardListApi:
|
|
34657
|
+
const { expiredRewardListApi: u } = Ta();
|
|
34657
34658
|
return ae({
|
|
34658
34659
|
queryKey: ["expiredRewardsList"],
|
|
34659
|
-
queryFn:
|
|
34660
|
+
queryFn: u,
|
|
34660
34661
|
...e
|
|
34661
34662
|
});
|
|
34662
34663
|
}, ko = ({ options: e } = {}) => {
|
|
34663
|
-
const { historyRewardApi:
|
|
34664
|
+
const { historyRewardApi: u } = Ta();
|
|
34664
34665
|
return ae({
|
|
34665
34666
|
queryKey: ["historyRewardsList"],
|
|
34666
|
-
queryFn:
|
|
34667
|
+
queryFn: u,
|
|
34667
34668
|
...e
|
|
34668
34669
|
});
|
|
34669
34670
|
}, sm = ({
|
|
@@ -34675,91 +34676,91 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34675
34676
|
historyRewardsList: {}
|
|
34676
34677
|
}
|
|
34677
34678
|
} = {}) => {
|
|
34678
|
-
const
|
|
34679
|
+
const u = Co({ options: e.rewardsList }), l = vo({
|
|
34679
34680
|
options: e.redeemReward
|
|
34680
34681
|
}), i = To({
|
|
34681
34682
|
options: e.unUsedRewardsList
|
|
34682
|
-
}),
|
|
34683
|
+
}), p = ho({
|
|
34683
34684
|
options: e.expiredRewardsList
|
|
34684
34685
|
}), d = ko({
|
|
34685
34686
|
options: e.historyRewardsList
|
|
34686
34687
|
});
|
|
34687
34688
|
return {
|
|
34688
|
-
rewardsListQuery:
|
|
34689
|
-
redeemRewardMutation:
|
|
34689
|
+
rewardsListQuery: u,
|
|
34690
|
+
redeemRewardMutation: l,
|
|
34690
34691
|
unUsedRewardsListQuery: i,
|
|
34691
|
-
expiredRewardsListQuery:
|
|
34692
|
+
expiredRewardsListQuery: p,
|
|
34692
34693
|
historyRewardsListQuery: d
|
|
34693
34694
|
};
|
|
34694
34695
|
}, xo = ({ options: e } = {}) => {
|
|
34695
|
-
const { userLoginApi:
|
|
34696
|
+
const { userLoginApi: u } = fe();
|
|
34696
34697
|
return Ce({
|
|
34697
34698
|
mutationKey: ["userLogin"],
|
|
34698
|
-
mutationFn: async (
|
|
34699
|
+
mutationFn: async (l) => u(l),
|
|
34699
34700
|
...e
|
|
34700
34701
|
});
|
|
34701
34702
|
}, So = ({ options: e } = {}) => {
|
|
34702
|
-
const { userLogoutApi:
|
|
34703
|
+
const { userLogoutApi: u } = fe();
|
|
34703
34704
|
return Ce({
|
|
34704
34705
|
mutationKey: ["userLogout"],
|
|
34705
|
-
mutationFn: async () =>
|
|
34706
|
+
mutationFn: async () => u(),
|
|
34706
34707
|
...e
|
|
34707
34708
|
});
|
|
34708
34709
|
}, Do = ({ options: e } = {}) => {
|
|
34709
|
-
const { userSignUpApi:
|
|
34710
|
+
const { userSignUpApi: u } = fe();
|
|
34710
34711
|
return Ce({
|
|
34711
34712
|
mutationKey: ["userSignUp"],
|
|
34712
|
-
mutationFn: async (
|
|
34713
|
+
mutationFn: async (l) => u(l),
|
|
34713
34714
|
...e
|
|
34714
34715
|
});
|
|
34715
34716
|
}, Eo = ({ options: e } = {}) => {
|
|
34716
|
-
const { addOrRemoveFavoriteGameApi:
|
|
34717
|
+
const { addOrRemoveFavoriteGameApi: u } = fe();
|
|
34717
34718
|
return Ce({
|
|
34718
34719
|
mutationKey: ["toggleFavoriteGame"],
|
|
34719
|
-
mutationFn: async (
|
|
34720
|
+
mutationFn: async (l) => u(l),
|
|
34720
34721
|
...e
|
|
34721
34722
|
});
|
|
34722
34723
|
}, No = ({ options: e } = {}) => {
|
|
34723
|
-
const { updateUserInfoApi:
|
|
34724
|
+
const { updateUserInfoApi: u } = fe();
|
|
34724
34725
|
return Ce({
|
|
34725
34726
|
mutationKey: ["updateUserInfo"],
|
|
34726
|
-
mutationFn: async (
|
|
34727
|
+
mutationFn: async (l) => u(l),
|
|
34727
34728
|
...e
|
|
34728
34729
|
});
|
|
34729
34730
|
}, Lo = ({ options: e } = {}) => {
|
|
34730
|
-
const { resetUserPasswordApi:
|
|
34731
|
+
const { resetUserPasswordApi: u } = fe();
|
|
34731
34732
|
return Ce({
|
|
34732
34733
|
mutationKey: ["resetUserPassword"],
|
|
34733
|
-
mutationFn: async (
|
|
34734
|
+
mutationFn: async (l) => u(l),
|
|
34734
34735
|
...e
|
|
34735
34736
|
});
|
|
34736
34737
|
}, Go = ({ options: e } = {}) => {
|
|
34737
|
-
const { setUserTransactionPasswordApi:
|
|
34738
|
+
const { setUserTransactionPasswordApi: u } = fe();
|
|
34738
34739
|
return Ce({
|
|
34739
34740
|
mutationKey: ["setUserTransactionPassword"],
|
|
34740
|
-
mutationFn: async (
|
|
34741
|
+
mutationFn: async (l) => u(l),
|
|
34741
34742
|
...e
|
|
34742
34743
|
});
|
|
34743
34744
|
}, Mo = ({ options: e } = {}) => {
|
|
34744
|
-
const { resetUserTransactionPasswordApi:
|
|
34745
|
+
const { resetUserTransactionPasswordApi: u } = fe();
|
|
34745
34746
|
return Ce({
|
|
34746
34747
|
mutationKey: ["resetUserTransactionPassword"],
|
|
34747
|
-
mutationFn: async (
|
|
34748
|
+
mutationFn: async (l) => u(l),
|
|
34748
34749
|
...e
|
|
34749
34750
|
});
|
|
34750
|
-
}, Ro = ({ paramsData: e, options:
|
|
34751
|
-
const { userRebateApi:
|
|
34751
|
+
}, Ro = ({ paramsData: e, options: u } = {}) => {
|
|
34752
|
+
const { userRebateApi: l } = fe(), { getToken: i } = re();
|
|
34752
34753
|
return i?.(), ae({
|
|
34753
34754
|
queryKey: ["userRebate", e],
|
|
34754
|
-
queryFn: async () =>
|
|
34755
|
+
queryFn: async () => l({ paramsData: e }),
|
|
34755
34756
|
enabled: !1,
|
|
34756
|
-
...
|
|
34757
|
+
...u
|
|
34757
34758
|
});
|
|
34758
34759
|
}, Po = ({ options: e } = {}) => {
|
|
34759
|
-
const { userBindBankApi:
|
|
34760
|
+
const { userBindBankApi: u } = fe();
|
|
34760
34761
|
return Ce({
|
|
34761
34762
|
mutationKey: ["userBindBank"],
|
|
34762
|
-
mutationFn: async (
|
|
34763
|
+
mutationFn: async (l) => u({ formData: l }),
|
|
34763
34764
|
...e
|
|
34764
34765
|
});
|
|
34765
34766
|
}, um = ({
|
|
@@ -34776,72 +34777,72 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34776
34777
|
userBindCard: {}
|
|
34777
34778
|
}
|
|
34778
34779
|
} = {}) => {
|
|
34779
|
-
const
|
|
34780
|
+
const u = xo({ options: e.login }), l = So({ options: e.logout }), i = Do({ options: e.register }), p = No({ options: e.updateUserInfo }), d = Eo({
|
|
34780
34781
|
options: e.toggleFavoriteGame
|
|
34781
34782
|
}), C = Lo({
|
|
34782
34783
|
options: e.resetUserPassword
|
|
34783
34784
|
}), c = Go({
|
|
34784
34785
|
options: e.setUserTransactionPassword
|
|
34785
|
-
}),
|
|
34786
|
+
}), g = Mo({
|
|
34786
34787
|
options: e.resetUserTransactionPassword
|
|
34787
34788
|
}), a = Ro({ options: e.userRebate }), t = Po({ options: e.userBindCard });
|
|
34788
34789
|
return {
|
|
34789
|
-
login:
|
|
34790
|
-
logout:
|
|
34790
|
+
login: u,
|
|
34791
|
+
logout: l,
|
|
34791
34792
|
register: i,
|
|
34792
|
-
updateUserInfo:
|
|
34793
|
+
updateUserInfo: p,
|
|
34793
34794
|
toggleFavoriteGame: d,
|
|
34794
34795
|
resetUserPassword: C,
|
|
34795
34796
|
setUserTransactionPassword: c,
|
|
34796
|
-
resetUserTransactionPassword:
|
|
34797
|
+
resetUserTransactionPassword: g,
|
|
34797
34798
|
userRebate: a,
|
|
34798
34799
|
userBindCard: t
|
|
34799
34800
|
};
|
|
34800
34801
|
}, Jn = () => {
|
|
34801
|
-
const { client: e } = re(),
|
|
34802
|
+
const { client: e } = re(), u = q(async () => await e.get("/vip/list"), [e]), l = q(async () => await e.get("/vip/check"), [e]);
|
|
34802
34803
|
return {
|
|
34803
|
-
vipListApi:
|
|
34804
|
-
vipInfoApi:
|
|
34804
|
+
vipListApi: u,
|
|
34805
|
+
vipInfoApi: l
|
|
34805
34806
|
};
|
|
34806
34807
|
}, pm = ({ options: e } = {}) => {
|
|
34807
|
-
const { store:
|
|
34808
|
+
const { store: u } = re(), l = u?.getState()?.isMemberInfo || u?.getState()?.member?.member || {}, { vipInfoApi: i } = Jn();
|
|
34808
34809
|
return ae({
|
|
34809
34810
|
queryKey: ["vipInfo"],
|
|
34810
34811
|
queryFn: async () => i(),
|
|
34811
|
-
select: (
|
|
34812
|
-
const { data: d } =
|
|
34812
|
+
select: (p) => {
|
|
34813
|
+
const { data: d } = p;
|
|
34813
34814
|
return {
|
|
34814
34815
|
currentWager: d.wagering,
|
|
34815
|
-
currentLevel:
|
|
34816
|
+
currentLevel: l.vip_level,
|
|
34816
34817
|
currentVipStatus: d.status
|
|
34817
34818
|
};
|
|
34818
34819
|
},
|
|
34819
34820
|
...e
|
|
34820
34821
|
});
|
|
34821
34822
|
}, Fo = ({ options: e } = {}) => {
|
|
34822
|
-
const { store:
|
|
34823
|
+
const { store: u } = re(), l = u?.getState()?.isWalletCurrency || u?.getState()?.currency?.currentCurrency || "TWD", { vipListApi: i } = Jn();
|
|
34823
34824
|
return ae({
|
|
34824
34825
|
queryKey: ["vipList"],
|
|
34825
34826
|
queryFn: async () => {
|
|
34826
|
-
const
|
|
34827
|
-
return
|
|
34827
|
+
const p = window.vip_list;
|
|
34828
|
+
return p || i();
|
|
34828
34829
|
},
|
|
34829
|
-
select: (
|
|
34830
|
-
const d = Ne(
|
|
34830
|
+
select: (p) => {
|
|
34831
|
+
const d = Ne(p) ? p : p.data;
|
|
34831
34832
|
return he(d, (c) => {
|
|
34832
34833
|
const {
|
|
34833
|
-
vip_criteria:
|
|
34834
|
+
vip_criteria: g,
|
|
34834
34835
|
vip_payment_tags: a,
|
|
34835
34836
|
vip_withdrawal_rate: t,
|
|
34836
34837
|
rebate_range: m
|
|
34837
|
-
} = c,
|
|
34838
|
+
} = c, n = Oe(g, { currency_code: l }) || {}, r = Oe(a, { currency_code: l }) || {}, o = t, _ = he(m, (f) => ({
|
|
34838
34839
|
...f,
|
|
34839
34840
|
rebateRange: JSON.parse(f.rebate_range)
|
|
34840
34841
|
}));
|
|
34841
34842
|
return {
|
|
34842
34843
|
...c,
|
|
34843
34844
|
vipImageUrl: `${ze}/vip/vip${c.level}_l.avif`,
|
|
34844
|
-
vipRule:
|
|
34845
|
+
vipRule: n,
|
|
34845
34846
|
vipWithdraw: r,
|
|
34846
34847
|
vipWithdrawFeeRate: o,
|
|
34847
34848
|
vipRebateRange: _
|
|
@@ -34874,10 +34875,10 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34874
34875
|
return "En";
|
|
34875
34876
|
}
|
|
34876
34877
|
}, cn = "game-icon-ds88", dm = ({ gameData: e = {} } = {}) => {
|
|
34877
|
-
const { lng:
|
|
34878
|
+
const { lng: u } = re(), l = dn(u), {
|
|
34878
34879
|
gameCode: i,
|
|
34879
34880
|
// 遊戲代碼
|
|
34880
|
-
gameUid:
|
|
34881
|
+
gameUid: p,
|
|
34881
34882
|
// 遊戲唯一標識符
|
|
34882
34883
|
gameTypeUid: d,
|
|
34883
34884
|
// 遊戲類型唯一標識符
|
|
@@ -34886,7 +34887,7 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34886
34887
|
// platform_enum: platformEnum, // 平台枚舉
|
|
34887
34888
|
currencyCode: c,
|
|
34888
34889
|
// 支援貨幣
|
|
34889
|
-
enterLobbyMode:
|
|
34890
|
+
enterLobbyMode: g,
|
|
34890
34891
|
// 進入大廳模式
|
|
34891
34892
|
game_platform: a,
|
|
34892
34893
|
// 遊戲平台
|
|
@@ -34894,7 +34895,7 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34894
34895
|
// 遊戲子類型
|
|
34895
34896
|
game_type: m,
|
|
34896
34897
|
// 遊戲類型
|
|
34897
|
-
game_tags:
|
|
34898
|
+
game_tags: n,
|
|
34898
34899
|
// 遊戲標籤
|
|
34899
34900
|
isUnderMaintenance: r,
|
|
34900
34901
|
// 是否維護中
|
|
@@ -34912,18 +34913,18 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34912
34913
|
// 越南名稱
|
|
34913
34914
|
gameNameTw: b
|
|
34914
34915
|
// 繁體中文名稱
|
|
34915
|
-
} = e, v = e?.[`gameName${dn(
|
|
34916
|
+
} = e, v = e?.[`gameName${dn(l)}`], h = `${on}/${cn}/en/${a}/${it(i, / /g, "_")}.webp`, x = `${on}/${cn}/en/${a}/${it(i, / /g, "_")}.gif`;
|
|
34916
34917
|
return {
|
|
34917
34918
|
gameCode: i,
|
|
34918
|
-
gameUid:
|
|
34919
|
+
gameUid: p,
|
|
34919
34920
|
gameTypeUid: d,
|
|
34920
34921
|
providerUid: C,
|
|
34921
34922
|
supportCurrency: c,
|
|
34922
|
-
enterLobbyMode:
|
|
34923
|
+
enterLobbyMode: g,
|
|
34923
34924
|
gamePlatform: a,
|
|
34924
34925
|
gameSubType: t,
|
|
34925
34926
|
gameType: m,
|
|
34926
|
-
gameTags:
|
|
34927
|
+
gameTags: n,
|
|
34927
34928
|
isUnderMaintenance: r,
|
|
34928
34929
|
supportVertical: o,
|
|
34929
34930
|
supportHorizontal: _,
|
|
@@ -34936,7 +34937,7 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34936
34937
|
gameImageUrl: h,
|
|
34937
34938
|
gameImageUrlAnimated: x
|
|
34938
34939
|
};
|
|
34939
|
-
}, wo = "ds88platformIcon", Oo = (e,
|
|
34940
|
+
}, wo = "ds88platformIcon", Oo = (e, u = !1) => Xn([
|
|
34940
34941
|
"EVO",
|
|
34941
34942
|
"IMSPRIBE",
|
|
34942
34943
|
"SABA",
|
|
@@ -34947,13 +34948,13 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34947
34948
|
"HACK",
|
|
34948
34949
|
"NAGA",
|
|
34949
34950
|
"RSG"
|
|
34950
|
-
], e) &&
|
|
34951
|
+
], e) && u ? `${e}_dark` : e, cm = ({ platformData: e, darkMode: u } = {}) => {
|
|
34951
34952
|
const {
|
|
34952
|
-
SubPlatformEnum:
|
|
34953
|
+
SubPlatformEnum: l,
|
|
34953
34954
|
// 子平台枚舉
|
|
34954
34955
|
platformEnum: i,
|
|
34955
34956
|
// 平台枚舉
|
|
34956
|
-
isUnderMaintenance:
|
|
34957
|
+
isUnderMaintenance: p,
|
|
34957
34958
|
// 是否維護中
|
|
34958
34959
|
maintenanceStartTime: d,
|
|
34959
34960
|
// 維護開始時間
|
|
@@ -34961,7 +34962,7 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34961
34962
|
// 維護結束時間
|
|
34962
34963
|
platform: c,
|
|
34963
34964
|
// 平台代碼
|
|
34964
|
-
platformUid:
|
|
34965
|
+
platformUid: g,
|
|
34965
34966
|
// 平台唯一標識符
|
|
34966
34967
|
platformMode: a,
|
|
34967
34968
|
// 平台模式
|
|
@@ -34969,19 +34970,19 @@ const Kr = /* @__PURE__ */ zi(Ir), Ee = {
|
|
|
34969
34970
|
// 臨時維護開始時間
|
|
34970
34971
|
temp_maintenance_end_time: m
|
|
34971
34972
|
// 臨時維護結束時間
|
|
34972
|
-
} = e || {},
|
|
34973
|
+
} = e || {}, n = `${ze}/${wo}/${Oo(i, u)}.png`;
|
|
34973
34974
|
return {
|
|
34974
|
-
subPlatformEnum:
|
|
34975
|
+
subPlatformEnum: l,
|
|
34975
34976
|
platformEnum: i,
|
|
34976
|
-
isUnderMaintenance:
|
|
34977
|
+
isUnderMaintenance: p,
|
|
34977
34978
|
maintenanceStartTime: d,
|
|
34978
34979
|
maintenanceEndTime: C,
|
|
34979
34980
|
platform: c,
|
|
34980
|
-
platformUid:
|
|
34981
|
+
platformUid: g,
|
|
34981
34982
|
platformMode: a,
|
|
34982
34983
|
tempMaintenanceStartTime: t,
|
|
34983
34984
|
tempMaintenanceEndTime: m,
|
|
34984
|
-
platformImageUrl:
|
|
34985
|
+
platformImageUrl: n
|
|
34985
34986
|
};
|
|
34986
34987
|
};
|
|
34987
34988
|
export {
|