@obb871001/api-integration-sdk 1.0.76 → 1.0.78

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.js CHANGED
@@ -11,21 +11,21 @@ var ba;
11
11
  function Ni() {
12
12
  if (ba) return ye;
13
13
  ba = 1;
14
- var e = he, n = Symbol.for("react.element"), c = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
15
- function U(_, r, d) {
14
+ var e = he, n = Symbol.for("react.element"), d = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
15
+ function U(_, r, c) {
16
16
  var m, i = {}, p = null, l = null;
17
- d !== void 0 && (p = "" + d), r.key !== void 0 && (p = "" + r.key), r.ref !== void 0 && (l = r.ref);
17
+ c !== void 0 && (p = "" + c), r.key !== void 0 && (p = "" + r.key), r.ref !== void 0 && (l = r.ref);
18
18
  for (m in r) o.call(r, m) && !g.hasOwnProperty(m) && (i[m] = r[m]);
19
19
  if (_ && _.defaultProps) for (m in r = _.defaultProps, r) i[m] === void 0 && (i[m] = r[m]);
20
20
  return { $$typeof: n, type: _, key: p, ref: l, props: i, _owner: s.current };
21
21
  }
22
- return ye.Fragment = c, ye.jsx = U, ye.jsxs = U, ye;
22
+ return ye.Fragment = d, ye.jsx = U, ye.jsxs = U, ye;
23
23
  }
24
24
  var be = {};
25
25
  var Ta;
26
26
  function Di() {
27
27
  return Ta || (Ta = 1, process.env.NODE_ENV !== "production" && (function() {
28
- var e = he, n = Symbol.for("react.element"), c = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), U = Symbol.for("react.provider"), _ = Symbol.for("react.context"), r = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), i = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), l = Symbol.for("react.offscreen"), t = Symbol.iterator, y = "@@iterator";
28
+ var e = he, n = Symbol.for("react.element"), d = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), U = Symbol.for("react.provider"), _ = Symbol.for("react.context"), r = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), i = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), l = Symbol.for("react.offscreen"), t = Symbol.iterator, y = "@@iterator";
29
29
  function b(a) {
30
30
  if (a === null || typeof a != "object")
31
31
  return null;
@@ -53,7 +53,7 @@ function Di() {
53
53
  var D = !1, h = !1, L = !1, M = !1, ce = !1, _e;
54
54
  _e = Symbol.for("react.module.reference");
55
55
  function we(a) {
56
- return !!(typeof a == "string" || typeof a == "function" || a === o || a === g || ce || a === s || a === d || a === m || M || a === l || D || h || L || typeof a == "object" && a !== null && (a.$$typeof === p || a.$$typeof === i || a.$$typeof === U || a.$$typeof === _ || a.$$typeof === r || // This needs to include all possible module reference object
56
+ return !!(typeof a == "string" || typeof a == "function" || a === o || a === g || ce || a === s || a === c || a === m || M || a === l || D || h || L || typeof a == "object" && a !== null && (a.$$typeof === p || a.$$typeof === i || a.$$typeof === U || a.$$typeof === _ || a.$$typeof === r || // This needs to include all possible module reference object
57
57
  // types supported by any Flight configuration anywhere since
58
58
  // we don't know which Flight build this will end up being used
59
59
  // with.
@@ -79,13 +79,13 @@ function Di() {
79
79
  switch (a) {
80
80
  case o:
81
81
  return "Fragment";
82
- case c:
82
+ case d:
83
83
  return "Portal";
84
84
  case g:
85
85
  return "Profiler";
86
86
  case s:
87
87
  return "StrictMode";
88
- case d:
88
+ case c:
89
89
  return "Suspense";
90
90
  case m:
91
91
  return "SuspenseList";
@@ -281,7 +281,7 @@ function Di() {
281
281
  if (typeof a == "string")
282
282
  return ue(a);
283
283
  switch (a) {
284
- case d:
284
+ case c:
285
285
  return ue("Suspense");
286
286
  case m:
287
287
  return ue("SuspenseList");
@@ -626,20 +626,20 @@ const Za = Fa(null), He = () => {
626
626
  function Li({
627
627
  baseURL: e,
628
628
  getToken: n,
629
- timeoutMs: c = 15e3,
629
+ timeoutMs: d = 15e3,
630
630
  lng: o = "tw",
631
631
  store: s,
632
632
  onError: g
633
633
  } = {}) {
634
634
  const U = hi.create({
635
635
  baseURL: e,
636
- timeout: c,
636
+ timeout: d,
637
637
  headers: { "Content-Type": "application/json" }
638
638
  });
639
639
  return U.interceptors.request.use(async (_) => {
640
640
  if (_.headers = _.headers || {}, n) {
641
- const d = await n();
642
- d && (_.headers.Authorization = `Bearer ${d}`);
641
+ const c = await n();
642
+ c && (_.headers.Authorization = `Bearer ${c}`);
643
643
  }
644
644
  const r = s?.getState()?.isWalletCurrency;
645
645
  return _.headers.Currency = r, _.headers["currency-code"] = r, _.headers.lang = o, _;
@@ -665,61 +665,61 @@ const Va = Fa(null), ul = () => {
665
665
  onShowError: U,
666
666
  onCleanup: _,
667
667
  onRemoveToken: r,
668
- onRedirect: d,
668
+ onRedirect: c,
669
669
  onGoogleLogout: m
670
670
  }) => {
671
671
  const i = n(s);
672
- e(o, i) && U?.(), _?.(), r?.(), g && d?.("/"), m?.();
672
+ e(o, i) && U?.(), _?.(), r?.(), g && c?.("/"), m?.();
673
673
  },
674
674
  shouldShowErrorNotice: e,
675
675
  isMachineDomain: n
676
676
  };
677
- }, Ia = (e = [], n) => je(e, { gameTypeName: n })?.gameTypeUid, Aa = (e = [], n) => je(e, { platform: n })?.platformUid, Ba = (e = [], n) => je(e, { SubPlatformEnum: n }), Ka = (e = [], n, c) => O(e) ? [] : e.filter((o) => c ? String(o?.SubPlatformEnumUid) === String(c?.SubPlatformEnumUid) : String(o.platformUid) === String(n)), Gi = (e = []) => O(e) ? {} : e.reduce((n, c) => {
678
- const o = c?.game_subtype || "UNKNOWN";
679
- return n[o] || (n[o] = []), n[o].push(c), n;
677
+ }, Ia = (e = [], n) => je(e, { gameTypeName: n })?.gameTypeUid, Aa = (e = [], n) => je(e, { platform: n })?.platformUid, Ba = (e = [], n) => je(e, { SubPlatformEnum: n }), Ka = (e = [], n, d) => O(e) ? [] : e.filter((o) => d ? String(o?.SubPlatformEnumUid) === String(d?.SubPlatformEnumUid) : String(o.platformUid) === String(n)), Gi = (e = []) => O(e) ? {} : e.reduce((n, d) => {
678
+ const o = d?.game_subtype || "UNKNOWN";
679
+ return n[o] || (n[o] = []), n[o].push(d), n;
680
680
  }, {}), Mi = ({
681
681
  gameTypeName: e,
682
682
  platforms: n,
683
- gameList: c,
683
+ gameList: d,
684
684
  allGameTypes: o,
685
685
  allPlatforms: s
686
686
  }) => {
687
687
  const g = Ia(o, e);
688
688
  return g ? n.reduce((U, _) => {
689
- const r = Aa(s, _), d = Ba(s, _), m = c[g] || [], i = Ka(
689
+ const r = Aa(s, _), c = Ba(s, _), m = d[g] || [], i = Ka(
690
690
  m,
691
691
  r,
692
- d
692
+ c
693
693
  );
694
694
  return O(i) || (U[_] = i), U;
695
695
  }, {}) : {};
696
696
  }, Ri = ({
697
697
  platformName: e,
698
698
  gamesOfType: n = [],
699
- allPlatforms: c = []
699
+ allPlatforms: d = []
700
700
  }) => {
701
- const o = Aa(c, e), s = Ba(c, e), g = Ka(
701
+ const o = Aa(d, e), s = Ba(d, e), g = Ka(
702
702
  n,
703
703
  o,
704
704
  s
705
705
  );
706
706
  return Gi(g);
707
- }, Pi = (e = {}) => !Oe(e) || O(e) ? [] : Ye(e), va = (e = []) => !ee(e) || O(e) ? [] : qe(e, "platform"), xi = (e = []) => !ee(e) || O(e) ? [] : qe(e, "gameTypeName"), Oi = (e = []) => !ee(e) || O(e) ? [] : qe(e, "game_subtype"), Hi = (e = {}) => !Oe(e) || O(e) ? [] : Ye(e), wi = (e = [], n = []) => !ee(e) || O(e) ? {} : !ee(n) || O(n) ? {} : e.reduce((c, o) => {
707
+ }, Pi = (e = {}) => !Oe(e) || O(e) ? [] : Ye(e), va = (e = []) => !ee(e) || O(e) ? [] : qe(e, "platform"), xi = (e = []) => !ee(e) || O(e) ? [] : qe(e, "gameTypeName"), Oi = (e = []) => !ee(e) || O(e) ? [] : qe(e, "game_subtype"), Hi = (e = {}) => !Oe(e) || O(e) ? [] : Ye(e), wi = (e = [], n = []) => !ee(e) || O(e) ? {} : !ee(n) || O(n) ? {} : e.reduce((d, o) => {
708
708
  const s = n.map((g) => g.game_subtype);
709
709
  return s.forEach((g) => {
710
- c[g] = c[g] || [];
711
- }), s.includes(o.game_subtype) && c[o.game_subtype].push(o), c;
710
+ d[g] = d[g] || [];
711
+ }), s.includes(o.game_subtype) && d[o.game_subtype].push(o), d;
712
712
  }, {}), Fi = ({
713
713
  gameTypes: e = [],
714
714
  platforms: n = [],
715
- gameList: c = {},
715
+ gameList: d = {},
716
716
  allGameTypes: o = [],
717
717
  allPlatforms: s = []
718
- }) => !ee(e) || !ee(n) ? {} : O(c) ? {} : e.reduce((g, U) => {
718
+ }) => !ee(e) || !ee(n) ? {} : O(d) ? {} : e.reduce((g, U) => {
719
719
  const _ = Mi({
720
720
  gameTypeName: U,
721
721
  platforms: n,
722
- gameList: c,
722
+ gameList: d,
723
723
  allGameTypes: o,
724
724
  allPlatforms: s
725
725
  });
@@ -727,13 +727,13 @@ const Va = Fa(null), ul = () => {
727
727
  }, {}), gl = ({
728
728
  types: e = [],
729
729
  platforms: n = [],
730
- allGameType: c = [],
730
+ allGameType: d = [],
731
731
  allGamePlatform: o = [],
732
732
  allGameList: s = {}
733
733
  } = {}) => !Array.isArray(e) || !Array.isArray(n) ? {} : e.reduce((g, U) => {
734
- const _ = Ia(c, U);
734
+ const _ = Ia(d, U);
735
735
  if (!_) return g;
736
- const r = s[_] || [], d = n.reduce((m, i) => {
736
+ const r = s[_] || [], c = n.reduce((m, i) => {
737
737
  const p = Ri({
738
738
  platformName: i,
739
739
  gamesOfType: r,
@@ -741,38 +741,38 @@ const Va = Fa(null), ul = () => {
741
741
  });
742
742
  return O(p) ? m : { ...m, [i]: p };
743
743
  }, {});
744
- return O(d) || (g[U] = d), g;
745
- }, {}), Wi = (e = {}) => !Oe(e) || O(e) ? {} : Object.values(e).reduce((c, o) => (Object.entries(o).forEach(([s, g]) => {
746
- c[s] ? c[s] = [...c[s], ...g] : c[s] = g;
747
- }), c), {}), Ji = (e = {}) => {
744
+ return O(c) || (g[U] = c), g;
745
+ }, {}), Wi = (e = {}) => !Oe(e) || O(e) ? {} : Object.values(e).reduce((d, o) => (Object.entries(o).forEach(([s, g]) => {
746
+ d[s] ? d[s] = [...d[s], ...g] : d[s] = g;
747
+ }), d), {}), Ji = (e = {}) => {
748
748
  if (!Oe(e) || O(e)) return {};
749
749
  const n = {};
750
- for (const [c, o] of Object.entries(e)) {
751
- n[c] = {};
750
+ for (const [d, o] of Object.entries(e)) {
751
+ n[d] = {};
752
752
  for (const s of o) {
753
753
  const g = s.game_subtype;
754
- n[c][g] || (n[c][g] = []), n[c][g].push(s);
754
+ n[d][g] || (n[d][g] = []), n[d][g].push(s);
755
755
  }
756
756
  }
757
757
  return n;
758
758
  }, zi = ({
759
759
  allGameList: e = {},
760
760
  allGamePlatform: n = [],
761
- allGameType: c = [],
761
+ allGameType: d = [],
762
762
  allGame_subtype: o = [],
763
763
  allNewGameList: s = [],
764
764
  allTopGameList: g = [],
765
765
  randomlySelectedGames: U = [],
766
766
  userFavoriteGame: _ = {},
767
767
  exclusiveBrandGames: r = [],
768
- highlightGames: d = [],
768
+ highlightGames: c = [],
769
769
  originPlatform: m = []
770
770
  }) => {
771
- const i = Pi(e), p = va(n), l = xi(c), t = Oi(o), y = va(m), b = Hi(_), u = Fi({
771
+ const i = Pi(e), p = va(n), l = xi(d), t = Oi(o), y = va(m), b = Hi(_), u = Fi({
772
772
  gameTypes: l,
773
773
  platforms: p,
774
774
  gameList: e,
775
- allGameTypes: c,
775
+ allGameTypes: d,
776
776
  allPlatforms: n
777
777
  }), T = wi(i, o), N = Wi(u), D = Ji(N);
778
778
  return {
@@ -789,7 +789,7 @@ const Va = Fa(null), ul = () => {
789
789
  new: s,
790
790
  top: g,
791
791
  favorite: b,
792
- highlight: d,
792
+ highlight: c,
793
793
  exclusiveBrand: r,
794
794
  randomlySelected: U
795
795
  },
@@ -802,27 +802,27 @@ const Va = Fa(null), ul = () => {
802
802
  favorite: b
803
803
  }
804
804
  };
805
- }, dl = (e = []) => !ee(e) || O(e) ? [] : Ye(e, (n) => O(n.SubPlatformEnum) ? n : n.SubPlatformEnum.map((c) => ({
805
+ }, dl = (e = []) => !ee(e) || O(e) ? [] : Ye(e, (n) => O(n.SubPlatformEnum) ? n : n.SubPlatformEnum.map((d) => ({
806
806
  ...n,
807
- ...c,
808
- platform: c.SubPlatformEnum,
809
- platformEnum: c.SubPlatformEnum
807
+ ...d,
808
+ platform: d.SubPlatformEnum,
809
+ platformEnum: d.SubPlatformEnum
810
810
  }))), de = () => {
811
811
  const { client: e } = He(), n = X(
812
812
  async (r) => {
813
- const { mac_address: d = "", app_version: m = "", anydesk_id: i = "" } = r, { data: p } = await e.post("/cash-register/login", {
814
- mac_address: d,
813
+ const { mac_address: c = "", app_version: m = "", anydesk_id: i = "" } = r, { data: p } = await e.post("/cash-register/login", {
814
+ mac_address: c,
815
815
  app_version: m,
816
816
  anydesk_id: i
817
817
  });
818
818
  return p;
819
819
  },
820
820
  [e]
821
- ), c = X(async () => e.get("/member/getMemberInfo"), [e]), o = X(async () => await e.get("member/getGameList"), [e]), s = X(async () => await e.get("/member/getNowCurrencyExchange"), [e]), g = X(async () => await e.get("member/getFavoriteGame"), [e]), U = X(
821
+ ), d = X(async () => e.get("/member/getMemberInfo"), [e]), o = X(async () => await e.get("member/getGameList"), [e]), s = X(async () => await e.get("/member/getNowCurrencyExchange"), [e]), g = X(async () => await e.get("member/getFavoriteGame"), [e]), U = X(
822
822
  async (r) => {
823
- const { account: d, password: m, trans_code: i } = r;
823
+ const { account: c, password: m, trans_code: i } = r;
824
824
  return await e.post("/login", {
825
- mdmId: d,
825
+ memId: c,
826
826
  passwd: m,
827
827
  trans_code: i
828
828
  });
@@ -831,7 +831,7 @@ const Va = Fa(null), ul = () => {
831
831
  ), _ = X(async () => await e.post("/logout"), [e]);
832
832
  return {
833
833
  machineLoginApi: n,
834
- userInfoApi: c,
834
+ userInfoApi: d,
835
835
  userGameListApi: o,
836
836
  userFavoriteGameApi: g,
837
837
  userCurrencyExchangeApi: s,
@@ -857,7 +857,7 @@ const Va = Fa(null), ul = () => {
857
857
  },
858
858
  user: { favorite: [] }
859
859
  }, Vi = ({ enabled: e = !0 } = {}) => {
860
- const { userFavoriteGameApi: n } = de(), { data: c, isLoading: o, error: s, refetch: g } = oe({
860
+ const { userFavoriteGameApi: n } = de(), { data: d, isLoading: o, error: s, refetch: g } = oe({
861
861
  queryKey: ["gamesInfo"],
862
862
  queryFn: async () => {
863
863
  const U = await n();
@@ -884,7 +884,7 @@ const Va = Fa(null), ul = () => {
884
884
  refetchOnWindowFocus: !1
885
885
  });
886
886
  return {
887
- gamesInfo: c || Zi,
887
+ gamesInfo: d || Zi,
888
888
  isLoading: o,
889
889
  error: s,
890
890
  refetch: g
@@ -27415,18 +27415,18 @@ const Va = Fa(null), ul = () => {
27415
27415
  }, Ai = ({
27416
27416
  children: e,
27417
27417
  autoFetch: n = !1,
27418
- mockData: c = !1
27418
+ mockData: d = !1
27419
27419
  }) => {
27420
27420
  ve(() => {
27421
- c && Ii(!0);
27422
- }, [c]);
27421
+ d && Ii(!0);
27422
+ }, [d]);
27423
27423
  const o = Vi({ enabled: n });
27424
27424
  return /* @__PURE__ */ xe.jsx(Va.Provider, { value: o, children: e });
27425
27425
  };
27426
27426
  function cl({
27427
27427
  children: e,
27428
27428
  autoFetchGamesInfo: n = !1,
27429
- useMockData: c = !1,
27429
+ useMockData: d = !1,
27430
27430
  ...o
27431
27431
  }) {
27432
27432
  const s = Qe(() => Li(o), [o]), U = Qe(
@@ -27440,15 +27440,15 @@ function cl({
27440
27440
  }),
27441
27441
  []
27442
27442
  );
27443
- return /* @__PURE__ */ xe.jsx(vi, { client: U, children: /* @__PURE__ */ xe.jsx(Za.Provider, { value: { client: s, ...o }, children: /* @__PURE__ */ xe.jsx(Ai, { autoFetch: n, mockData: c, children: e }) }) });
27443
+ return /* @__PURE__ */ xe.jsx(vi, { client: U, children: /* @__PURE__ */ xe.jsx(Za.Provider, { value: { client: s, ...o }, children: /* @__PURE__ */ xe.jsx(Ai, { autoFetch: n, mockData: d, children: e }) }) });
27444
27444
  }
27445
27445
  const _l = ({ otherQueryKey: e = [], options: n = {} } = {}) => {
27446
- const { userCurrencyExchangeApi: c } = de(), { getToken: o } = He(), { enabled: s, ...g } = n, U = !!o && (s ? s.every((_) => _) : !0);
27446
+ const { userCurrencyExchangeApi: d } = de(), { getToken: o } = He(), { enabled: s, ...g } = n, U = !!o && (s ? s.every((_) => _) : !0);
27447
27447
  return Ja({
27448
27448
  queries: [
27449
27449
  {
27450
27450
  queryKey: ["userCurrencyExchange", ...e],
27451
- queryFn: () => c(),
27451
+ queryFn: () => d(),
27452
27452
  enabled: U,
27453
27453
  // ← 使用合併後的條件
27454
27454
  ...g
@@ -27459,7 +27459,7 @@ const _l = ({ otherQueryKey: e = [], options: n = {} } = {}) => {
27459
27459
  }, fl = ({
27460
27460
  refetchInterval: e = 5e4,
27461
27461
  trigger: n = [],
27462
- enabled: c = !0
27462
+ enabled: d = !0
27463
27463
  } = {}) => {
27464
27464
  const { getToken: o } = He(), { userInfoApi: s } = de(), g = Ja({
27465
27465
  queries: [
@@ -27467,7 +27467,7 @@ const _l = ({ otherQueryKey: e = [], options: n = {} } = {}) => {
27467
27467
  queryKey: ["getMemberInfo", ...n],
27468
27468
  queryFn: async () => await s(),
27469
27469
  refetchInterval: e,
27470
- enabled: !!o && c
27470
+ enabled: !!o && d
27471
27471
  }
27472
27472
  ]
27473
27473
  }), { data: U, isFetching: _, error: r } = g[0] || {};
@@ -27475,7 +27475,7 @@ const _l = ({ otherQueryKey: e = [], options: n = {} } = {}) => {
27475
27475
  }, Ul = ({ enabled: e = !0 } = {}) => {
27476
27476
  const {
27477
27477
  userInfoApi: n,
27478
- userFavoriteGameApi: c,
27478
+ userFavoriteGameApi: d,
27479
27479
  userGameListApi: o,
27480
27480
  userCurrencyExchangeApi: s
27481
27481
  } = de(), g = oe({
@@ -27484,7 +27484,7 @@ const _l = ({ otherQueryKey: e = [], options: n = {} } = {}) => {
27484
27484
  enabled: e
27485
27485
  }), U = oe({
27486
27486
  queryKey: ["getFavoriteGame"],
27487
- queryFn: async () => c(),
27487
+ queryFn: async () => d(),
27488
27488
  enabled: e && g.isSuccess
27489
27489
  }), _ = oe({
27490
27490
  queryKey: ["getUserGameList"],
@@ -27506,11 +27506,11 @@ var Ve = {}, J = {}, Ie = {}, ha;
27506
27506
  function A() {
27507
27507
  return ha || (ha = 1, (function(e) {
27508
27508
  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;
27509
- var n = 1, c = 1e3 * n;
27509
+ var n = 1, d = 1e3 * n;
27510
27510
  e.DEFAULT_OPTIONS = {}, e.EMPTY_EVENT_HANDLERS = {}, e.DEFAULT_EVENT_SOURCE_OPTIONS = {
27511
27511
  withCredentials: !1,
27512
27512
  events: e.EMPTY_EVENT_HANDLERS
27513
- }, e.SOCKET_IO_PING_INTERVAL = 25 * c, 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 = {
27513
+ }, e.SOCKET_IO_PING_INTERVAL = 25 * d, 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 = {
27514
27514
  message: "ping",
27515
27515
  timeout: 6e4,
27516
27516
  interval: 25e3
@@ -27533,9 +27533,9 @@ var Te = {}, Ae = {}, ka;
27533
27533
  function Xe() {
27534
27534
  return ka || (ka = 1, (function(e) {
27535
27535
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resetWebSockets = e.sharedWebSockets = void 0, e.sharedWebSockets = {};
27536
- var n = function(c) {
27537
- if (c && e.sharedWebSockets.hasOwnProperty(c))
27538
- delete e.sharedWebSockets[c];
27536
+ var n = function(d) {
27537
+ if (d && e.sharedWebSockets.hasOwnProperty(d))
27538
+ delete e.sharedWebSockets[d];
27539
27539
  else
27540
27540
  for (var o in e.sharedWebSockets)
27541
27541
  e.sharedWebSockets.hasOwnProperty(o) && delete e.sharedWebSockets[o];
@@ -27552,21 +27552,21 @@ function $e() {
27552
27552
  var g = /^https|wss/.test(s), U = s.replace(/^(https?|wss?)(:\/\/)?/, ""), _ = U.replace(/\/$/, ""), r = g ? "wss" : "ws";
27553
27553
  return "".concat(r, "://").concat(_).concat(e.SOCKET_IO_PATH);
27554
27554
  } else if (s === "") {
27555
- var g = /^https/.test(window.location.protocol), r = g ? "wss" : "ws", d = window.location.port ? ":".concat(window.location.port) : "";
27556
- return "".concat(r, "://").concat(window.location.hostname).concat(d).concat(e.SOCKET_IO_PATH);
27555
+ var g = /^https/.test(window.location.protocol), r = g ? "wss" : "ws", c = window.location.port ? ":".concat(window.location.port) : "";
27556
+ return "".concat(r, "://").concat(window.location.hostname).concat(c).concat(e.SOCKET_IO_PATH);
27557
27557
  }
27558
27558
  return s;
27559
27559
  };
27560
27560
  j.parseSocketIOUrl = n;
27561
- var c = function(s, g) {
27561
+ var d = function(s, g) {
27562
27562
  g === void 0 && (g = {});
27563
- var U = /\?([\w]+=[\w]+)/, _ = U.test(s), r = "".concat(Object.entries(g).reduce(function(d, m) {
27563
+ var U = /\?([\w]+=[\w]+)/, _ = U.test(s), r = "".concat(Object.entries(g).reduce(function(c, m) {
27564
27564
  var i = m[0], p = m[1];
27565
- return d + "".concat(i, "=").concat(p, "&");
27565
+ return c + "".concat(i, "=").concat(p, "&");
27566
27566
  }, "").slice(0, -1));
27567
27567
  return "".concat(s).concat(_ ? "&" : "?").concat(r);
27568
27568
  };
27569
- j.appendQueryParams = c;
27569
+ j.appendQueryParams = d;
27570
27570
  var o = function(s, g) {
27571
27571
  g === void 0 && (g = e.SOCKET_IO_PING_INTERVAL);
27572
27572
  var U = function() {
@@ -27579,15 +27579,15 @@ function $e() {
27579
27579
  var Pe = {}, Na;
27580
27580
  function Qa() {
27581
27581
  if (Na) return Pe;
27582
- Na = 1, Object.defineProperty(Pe, "__esModule", { value: !0 }), Pe.heartbeat = c;
27582
+ Na = 1, Object.defineProperty(Pe, "__esModule", { value: !0 }), Pe.heartbeat = d;
27583
27583
  var e = A();
27584
27584
  function n(o) {
27585
27585
  return Array.isArray(o) ? o.reduce(function(s, g) {
27586
27586
  return s.current > g.current ? s : g;
27587
27587
  }).current : o.current;
27588
27588
  }
27589
- function c(o, s, g) {
27590
- var U = g || {}, _ = U.interval, r = _ === void 0 ? e.DEFAULT_HEARTBEAT.interval : _, d = U.timeout, m = d === void 0 ? e.DEFAULT_HEARTBEAT.timeout : d, i = U.message, p = i === void 0 ? e.DEFAULT_HEARTBEAT.message : i, l = Math.max(100, r / 10), t = Date.now(), y = setInterval(function() {
27589
+ function d(o, s, g) {
27590
+ var U = g || {}, _ = U.interval, r = _ === void 0 ? e.DEFAULT_HEARTBEAT.interval : _, c = U.timeout, m = c === void 0 ? e.DEFAULT_HEARTBEAT.timeout : c, i = U.message, p = i === void 0 ? e.DEFAULT_HEARTBEAT.message : i, l = Math.max(100, r / 10), t = Date.now(), y = setInterval(function() {
27591
27591
  var b = Date.now(), u = n(s);
27592
27592
  if (u + m <= b)
27593
27593
  console.warn("Heartbeat timed out, closing connection, last message received ".concat(b - u, "ms ago, last ping sent ").concat(b - t, "ms ago")), o.close();
@@ -27609,29 +27609,29 @@ var Ce = {}, Be = {}, Da;
27609
27609
  function ea() {
27610
27610
  return Da || (Da = 1, (function(e) {
27611
27611
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resetSubscribers = e.removeSubscriber = e.addSubscriber = e.hasSubscribers = e.getSubscribers = void 0;
27612
- var n = {}, c = [], o = function(r) {
27613
- return (0, e.hasSubscribers)(r) ? Array.from(n[r]) : c;
27612
+ var n = {}, d = [], o = function(r) {
27613
+ return (0, e.hasSubscribers)(r) ? Array.from(n[r]) : d;
27614
27614
  };
27615
27615
  e.getSubscribers = o;
27616
27616
  var s = function(r) {
27617
- var d;
27618
- return ((d = n[r]) === null || d === void 0 ? void 0 : d.size) > 0;
27617
+ var c;
27618
+ return ((c = n[r]) === null || c === void 0 ? void 0 : c.size) > 0;
27619
27619
  };
27620
27620
  e.hasSubscribers = s;
27621
- var g = function(r, d) {
27622
- n[r] = n[r] || /* @__PURE__ */ new Set(), n[r].add(d);
27621
+ var g = function(r, c) {
27622
+ n[r] = n[r] || /* @__PURE__ */ new Set(), n[r].add(c);
27623
27623
  };
27624
27624
  e.addSubscriber = g;
27625
- var U = function(r, d) {
27626
- n[r].delete(d);
27625
+ var U = function(r, c) {
27626
+ n[r].delete(c);
27627
27627
  };
27628
27628
  e.removeSubscriber = U;
27629
27629
  var _ = function(r) {
27630
27630
  if (r && n.hasOwnProperty(r))
27631
27631
  delete n[r];
27632
27632
  else
27633
- for (var d in n)
27634
- n.hasOwnProperty(d) && delete n[d];
27633
+ for (var c in n)
27634
+ n.hasOwnProperty(c) && delete n[c];
27635
27635
  };
27636
27636
  e.resetSubscribers = _;
27637
27637
  })(Be)), Be;
@@ -27639,9 +27639,9 @@ function ea() {
27639
27639
  var Ea;
27640
27640
  function aa() {
27641
27641
  if (Ea) return Ce;
27642
- Ea = 1, Object.defineProperty(Ce, "__esModule", { value: !0 }), Ce.assertIsWebSocket = c, Ce.resetGlobalState = o;
27642
+ Ea = 1, Object.defineProperty(Ce, "__esModule", { value: !0 }), Ce.assertIsWebSocket = d, Ce.resetGlobalState = o;
27643
27643
  var e = Xe(), n = ea();
27644
- function c(s, g) {
27644
+ function d(s, g) {
27645
27645
  if (!g && !(s instanceof WebSocket))
27646
27646
  throw new Error("");
27647
27647
  }
@@ -27664,7 +27664,7 @@ function Bi() {
27664
27664
  }, e.apply(this, arguments);
27665
27665
  };
27666
27666
  Object.defineProperty(ne, "__esModule", { value: !0 }), ne.attachListeners = void 0;
27667
- var n = $e(), c = Qa(), o = A(), s = aa(), g = function(m, i, p, l) {
27667
+ var n = $e(), d = Qa(), o = A(), s = aa(), g = function(m, i, p, l) {
27668
27668
  m.onmessage = function(t) {
27669
27669
  var y;
27670
27670
  i.current.onMessage && i.current.onMessage(t), typeof l?.current == "number" && (l.current = Date.now()), !(typeof i.current.filter == "function" && i.current.filter(t) !== !0) && (i.current.heartbeat && typeof i.current.heartbeat != "boolean" && ((y = i.current.heartbeat) === null || y === void 0 ? void 0 : y.returnMessage) === t.data || p(t));
@@ -27673,7 +27673,7 @@ function Bi() {
27673
27673
  m.onopen = function(y) {
27674
27674
  if (i.current.onOpen && i.current.onOpen(y), l.current = 0, p(o.ReadyState.OPEN), i.current.heartbeat && m instanceof WebSocket) {
27675
27675
  var b = typeof i.current.heartbeat == "boolean" ? void 0 : i.current.heartbeat;
27676
- t.current = Date.now(), (0, c.heartbeat)(m, t, b);
27676
+ t.current = Date.now(), (0, d.heartbeat)(m, t, b);
27677
27677
  }
27678
27678
  };
27679
27679
  }, _ = function(m, i, p, l, t) {
@@ -27712,13 +27712,13 @@ function Bi() {
27712
27712
  }, function() {
27713
27713
  return y && window.clearTimeout(y);
27714
27714
  };
27715
- }, d = function(m, i, p, l, t, y, b) {
27715
+ }, c = function(m, i, p, l, t, y, b) {
27716
27716
  var u = i.setLastMessage, T = i.setReadyState, N, D, h;
27717
27717
  return p.current.fromSocketIO && (N = (0, n.setUpSocketIOPing)(b)), g(m, p, u, y), U(m, p, T, t, y), D = _(m, p, T, l, t), h = r(m, p, T, l, t), function() {
27718
27718
  T(o.ReadyState.CLOSING), D(), h(), m.close(), N && clearInterval(N);
27719
27719
  };
27720
27720
  };
27721
- return ne.attachListeners = d, ne;
27721
+ return ne.attachListeners = c, ne;
27722
27722
  }
27723
27723
  var me = {}, Ga;
27724
27724
  function Ki() {
@@ -27734,7 +27734,7 @@ function Ki() {
27734
27734
  }, e.apply(this, arguments);
27735
27735
  };
27736
27736
  Object.defineProperty(me, "__esModule", { value: !0 }), me.attachSharedListeners = void 0;
27737
- var n = Xe(), c = A(), o = ea(), s = $e(), g = Qa(), U = function(i, p, l) {
27737
+ var n = Xe(), d = A(), o = ea(), s = $e(), g = Qa(), U = function(i, p, l) {
27738
27738
  i.onmessage = function(t) {
27739
27739
  (0, o.getSubscribers)(p).forEach(function(y) {
27740
27740
  var b;
@@ -27745,7 +27745,7 @@ function Ki() {
27745
27745
  i.onopen = function(t) {
27746
27746
  var y = (0, o.getSubscribers)(p);
27747
27747
  y.forEach(function(b) {
27748
- b.reconnectCount.current = 0, b.optionsRef.current.onOpen && b.optionsRef.current.onOpen(t), b.setReadyState(c.ReadyState.OPEN), l && i instanceof WebSocket && (b.lastMessageTime.current = Date.now());
27748
+ b.reconnectCount.current = 0, b.optionsRef.current.onOpen && b.optionsRef.current.onOpen(t), b.setReadyState(d.ReadyState.OPEN), l && i instanceof WebSocket && (b.lastMessageTime.current = Date.now());
27749
27749
  }), l && i instanceof WebSocket && (0, g.heartbeat)(i, y.map(function(b) {
27750
27750
  return b.lastMessageTime;
27751
27751
  }), typeof l == "boolean" ? void 0 : l);
@@ -27753,30 +27753,30 @@ function Ki() {
27753
27753
  }, r = function(i, p) {
27754
27754
  i instanceof WebSocket && (i.onclose = function(l) {
27755
27755
  (0, o.getSubscribers)(p).forEach(function(t) {
27756
- t.optionsRef.current.onClose && t.optionsRef.current.onClose(l), t.setReadyState(c.ReadyState.CLOSED);
27756
+ t.optionsRef.current.onClose && t.optionsRef.current.onClose(l), t.setReadyState(d.ReadyState.CLOSED);
27757
27757
  }), delete n.sharedWebSockets[p], (0, o.getSubscribers)(p).forEach(function(t) {
27758
27758
  var y;
27759
27759
  if (t.optionsRef.current.shouldReconnect && t.optionsRef.current.shouldReconnect(l)) {
27760
- var b = (y = t.optionsRef.current.reconnectAttempts) !== null && y !== void 0 ? y : c.DEFAULT_RECONNECT_LIMIT;
27760
+ var b = (y = t.optionsRef.current.reconnectAttempts) !== null && y !== void 0 ? y : d.DEFAULT_RECONNECT_LIMIT;
27761
27761
  if (t.reconnectCount.current < b) {
27762
27762
  var u = typeof t.optionsRef.current.reconnectInterval == "function" ? t.optionsRef.current.reconnectInterval(t.reconnectCount.current) : t.optionsRef.current.reconnectInterval;
27763
27763
  setTimeout(function() {
27764
27764
  t.reconnectCount.current++, t.reconnect.current();
27765
- }, u ?? c.DEFAULT_RECONNECT_INTERVAL_MS);
27765
+ }, u ?? d.DEFAULT_RECONNECT_INTERVAL_MS);
27766
27766
  } else
27767
27767
  t.optionsRef.current.onReconnectStop && t.optionsRef.current.onReconnectStop(t.optionsRef.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(b, " exceeded"));
27768
27768
  }
27769
27769
  });
27770
27770
  });
27771
- }, d = function(i, p) {
27771
+ }, c = function(i, p) {
27772
27772
  i.onerror = function(l) {
27773
27773
  (0, o.getSubscribers)(p).forEach(function(t) {
27774
- t.optionsRef.current.onError && t.optionsRef.current.onError(l), c.isEventSourceSupported && i instanceof EventSource && (t.optionsRef.current.onClose && t.optionsRef.current.onClose(e(e({}, l), { code: 1006, reason: "An error occurred with the EventSource: ".concat(l), wasClean: !1 })), t.setReadyState(c.ReadyState.CLOSED));
27775
- }), c.isEventSourceSupported && i instanceof EventSource && i.close();
27774
+ t.optionsRef.current.onError && t.optionsRef.current.onError(l), d.isEventSourceSupported && i instanceof EventSource && (t.optionsRef.current.onClose && t.optionsRef.current.onClose(e(e({}, l), { code: 1006, reason: "An error occurred with the EventSource: ".concat(l), wasClean: !1 })), t.setReadyState(d.ReadyState.CLOSED));
27775
+ }), d.isEventSourceSupported && i instanceof EventSource && i.close();
27776
27776
  };
27777
27777
  }, m = function(i, p, l, t) {
27778
27778
  var y;
27779
- return l.current.fromSocketIO && (y = (0, s.setUpSocketIOPing)(t)), U(i, p, l.current.heartbeat), r(i, p), _(i, p, l.current.heartbeat), d(i, p), function() {
27779
+ return l.current.fromSocketIO && (y = (0, s.setUpSocketIOPing)(t)), U(i, p, l.current.heartbeat), r(i, p), _(i, p, l.current.heartbeat), c(i, p), function() {
27780
27780
  y && clearInterval(y);
27781
27781
  };
27782
27782
  };
@@ -27786,40 +27786,40 @@ var Ma;
27786
27786
  function Qi() {
27787
27787
  if (Ma) return Te;
27788
27788
  Ma = 1, Object.defineProperty(Te, "__esModule", { value: !0 }), Te.createOrJoinSocket = void 0;
27789
- var e = Xe(), n = A(), c = Bi(), o = Ki(), s = ea(), g = function(_, r, d, m, i) {
27789
+ var e = Xe(), n = A(), d = Bi(), o = Ki(), s = ea(), g = function(_, r, c, m, i) {
27790
27790
  return function() {
27791
27791
  if ((0, s.removeSubscriber)(_, r), !(0, s.hasSubscribers)(_)) {
27792
27792
  try {
27793
27793
  var p = e.sharedWebSockets[_];
27794
27794
  p instanceof WebSocket && (p.onclose = function(l) {
27795
- d.current.onClose && d.current.onClose(l), m(n.ReadyState.CLOSED);
27795
+ c.current.onClose && c.current.onClose(l), m(n.ReadyState.CLOSED);
27796
27796
  }), p.close();
27797
27797
  } catch {
27798
27798
  }
27799
27799
  i && i(), delete e.sharedWebSockets[_];
27800
27800
  }
27801
27801
  };
27802
- }, U = function(_, r, d, m, i, p, l, t, y) {
27802
+ }, U = function(_, r, c, m, i, p, l, t, y) {
27803
27803
  if (!n.isEventSourceSupported && m.current.eventSourceOptions)
27804
27804
  throw n.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
27805
27805
  if (m.current.share) {
27806
27806
  var b = null;
27807
- e.sharedWebSockets[r] === void 0 ? (e.sharedWebSockets[r] = m.current.eventSourceOptions ? new EventSource(r, m.current.eventSourceOptions) : new WebSocket(r, m.current.protocols), _.current = e.sharedWebSockets[r], d(n.ReadyState.CONNECTING), b = (0, o.attachSharedListeners)(e.sharedWebSockets[r], r, m, y)) : (_.current = e.sharedWebSockets[r], d(e.sharedWebSockets[r].readyState));
27807
+ e.sharedWebSockets[r] === void 0 ? (e.sharedWebSockets[r] = m.current.eventSourceOptions ? new EventSource(r, m.current.eventSourceOptions) : new WebSocket(r, m.current.protocols), _.current = e.sharedWebSockets[r], c(n.ReadyState.CONNECTING), b = (0, o.attachSharedListeners)(e.sharedWebSockets[r], r, m, y)) : (_.current = e.sharedWebSockets[r], c(e.sharedWebSockets[r].readyState));
27808
27808
  var u = {
27809
27809
  setLastMessage: i,
27810
- setReadyState: d,
27810
+ setReadyState: c,
27811
27811
  optionsRef: m,
27812
27812
  reconnectCount: l,
27813
27813
  lastMessageTime: t,
27814
27814
  reconnect: p
27815
27815
  };
27816
- return (0, s.addSubscriber)(r, u), g(r, u, m, d, b);
27816
+ return (0, s.addSubscriber)(r, u), g(r, u, m, c, b);
27817
27817
  } else {
27818
- if (_.current = m.current.eventSourceOptions ? new EventSource(r, m.current.eventSourceOptions) : new WebSocket(r, m.current.protocols), d(n.ReadyState.CONNECTING), !_.current)
27818
+ if (_.current = m.current.eventSourceOptions ? new EventSource(r, m.current.eventSourceOptions) : new WebSocket(r, m.current.protocols), c(n.ReadyState.CONNECTING), !_.current)
27819
27819
  throw new Error("WebSocket failed to be created");
27820
- return (0, c.attachListeners)(_.current, {
27820
+ return (0, d.attachListeners)(_.current, {
27821
27821
  setLastMessage: i,
27822
- setReadyState: d
27822
+ setReadyState: c
27823
27823
  }, m, p.current, l, t, y);
27824
27824
  }
27825
27825
  };
@@ -27828,7 +27828,7 @@ function Qi() {
27828
27828
  var Y = {}, Ra;
27829
27829
  function ji() {
27830
27830
  return Ra || (Ra = 1, (function(e) {
27831
- var n = Y && Y.__awaiter || function(r, d, m, i) {
27831
+ var n = Y && Y.__awaiter || function(r, c, m, i) {
27832
27832
  function p(l) {
27833
27833
  return l instanceof m ? l : new m(function(t) {
27834
27834
  t(l);
@@ -27852,9 +27852,9 @@ function ji() {
27852
27852
  function u(T) {
27853
27853
  T.done ? l(T.value) : p(T.value).then(y, b);
27854
27854
  }
27855
- u((i = i.apply(r, d || [])).next());
27855
+ u((i = i.apply(r, c || [])).next());
27856
27856
  });
27857
- }, c = Y && Y.__generator || function(r, d) {
27857
+ }, d = Y && Y.__generator || function(r, c) {
27858
27858
  var m = { label: 0, sent: function() {
27859
27859
  if (l[0] & 1) throw l[1];
27860
27860
  return l[1];
@@ -27904,7 +27904,7 @@ function ji() {
27904
27904
  l[2] && m.ops.pop(), m.trys.pop();
27905
27905
  continue;
27906
27906
  }
27907
- u = d.call(r, m);
27907
+ u = c.call(r, m);
27908
27908
  } catch (T) {
27909
27909
  u = [6, T], p = 0;
27910
27910
  } finally {
@@ -27913,22 +27913,22 @@ function ji() {
27913
27913
  if (u[0] & 5) throw u[1];
27914
27914
  return { value: u[0] ? u[1] : void 0, done: !0 };
27915
27915
  }
27916
- }, o = Y && Y.__spreadArray || function(r, d, m) {
27917
- if (m || arguments.length === 2) for (var i = 0, p = d.length, l; i < p; i++)
27918
- (l || !(i in d)) && (l || (l = Array.prototype.slice.call(d, 0, i)), l[i] = d[i]);
27919
- return r.concat(l || Array.prototype.slice.call(d));
27916
+ }, o = Y && Y.__spreadArray || function(r, c, m) {
27917
+ if (m || arguments.length === 2) for (var i = 0, p = c.length, l; i < p; i++)
27918
+ (l || !(i in c)) && (l || (l = Array.prototype.slice.call(c, 0, i)), l[i] = c[i]);
27919
+ return r.concat(l || Array.prototype.slice.call(c));
27920
27920
  };
27921
27921
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getUrl = void 0;
27922
27922
  var s = $e(), g = A(), U = function(r) {
27923
- return new Promise(function(d) {
27924
- return window.setTimeout(d, r);
27923
+ return new Promise(function(c) {
27924
+ return window.setTimeout(c, r);
27925
27925
  });
27926
- }, _ = function(r, d) {
27926
+ }, _ = function(r, c) {
27927
27927
  for (var m = [], i = 2; i < arguments.length; i++)
27928
27928
  m[i - 2] = arguments[i];
27929
- return n(void 0, o([r, d], m, !0), void 0, function(p, l, t) {
27929
+ return n(void 0, o([r, c], m, !0), void 0, function(p, l, t) {
27930
27930
  var y, b, u, T, N, D, h, L;
27931
- return t === void 0 && (t = 0), c(this, function(M) {
27931
+ return t === void 0 && (t = 0), d(this, function(M) {
27932
27932
  switch (M.label) {
27933
27933
  case 0:
27934
27934
  if (typeof p != "function") return [3, 10];
@@ -27966,8 +27966,8 @@ var Ke = {}, Pa;
27966
27966
  function Yi() {
27967
27967
  return Pa || (Pa = 1, (function(e) {
27968
27968
  Object.defineProperty(e, "__esModule", { value: !0 }), e.websocketWrapper = void 0;
27969
- var n = function(c, o) {
27970
- return new Proxy(c, {
27969
+ var n = function(d, o) {
27970
+ return new Proxy(d, {
27971
27971
  get: function(s, g) {
27972
27972
  var U = s[g];
27973
27973
  return g === "reconnect" ? o : typeof U == "function" ? (console.error("Calling methods directly on the websocket is not supported at this moment. You must use the methods returned by useWebSocket."), function() {
@@ -28019,7 +28019,7 @@ function ia() {
28019
28019
  }
28020
28020
  h((y = y.apply(p, l || [])).next());
28021
28021
  });
28022
- }, c = J && J.__generator || function(p, l) {
28022
+ }, d = J && J.__generator || function(p, l) {
28023
28023
  var t = { label: 0, sent: function() {
28024
28024
  if (u[0] & 1) throw u[1];
28025
28025
  return u[1];
@@ -28082,7 +28082,7 @@ function ia() {
28082
28082
  return p && p.__esModule ? p : { default: p };
28083
28083
  };
28084
28084
  Object.defineProperty(J, "__esModule", { value: !0 }), J.useWebSocket = void 0;
28085
- var s = he, g = ki, U = A(), _ = Qi(), r = ji(), d = o(Yi()), m = aa(), i = function(p, l, t) {
28085
+ var s = he, g = ki, U = A(), _ = Qi(), r = ji(), c = o(Yi()), m = aa(), i = function(p, l, t) {
28086
28086
  l === void 0 && (l = U.DEFAULT_OPTIONS), t === void 0 && (t = !0);
28087
28087
  var y = (0, s.useState)(null), b = y[0], u = y[1], T = (0, s.useState)({}), N = T[0], D = T[1], h = (0, s.useMemo)(function() {
28088
28088
  if (!l.disableJson && b)
@@ -28105,14 +28105,14 @@ function ia() {
28105
28105
  }, []), Se = (0, s.useCallback)(function(x, w) {
28106
28106
  w === void 0 && (w = !0), B(JSON.stringify(x), w);
28107
28107
  }, [B]), Ne = (0, s.useCallback)(function() {
28108
- return H.current.share !== !0 || U.isEventSourceSupported && M.current instanceof EventSource ? M.current : (V.current === null && M.current && ((0, m.assertIsWebSocket)(M.current, H.current.skipAssert), V.current = (0, d.default)(M.current, ce)), V.current);
28108
+ return H.current.share !== !0 || U.isEventSourceSupported && M.current instanceof EventSource ? M.current : (V.current === null && M.current && ((0, m.assertIsWebSocket)(M.current, H.current.skipAssert), V.current = (0, c.default)(M.current, ce)), V.current);
28109
28109
  }, []);
28110
28110
  return (0, s.useEffect)(function() {
28111
28111
  if (p !== null && t === !0) {
28112
28112
  var x, w = !1, K = !0, fe = function() {
28113
28113
  return n(void 0, void 0, void 0, function() {
28114
28114
  var ie, $, De;
28115
- return c(this, function(se) {
28115
+ return d(this, function(se) {
28116
28116
  switch (se.label) {
28117
28117
  case 0:
28118
28118
  return ie = L, [4, (0, r.getUrl)(p, H)];
@@ -28173,15 +28173,15 @@ function qi() {
28173
28173
  Oa = 1;
28174
28174
  var e = re && re.__assign || function() {
28175
28175
  return e = Object.assign || function(_) {
28176
- for (var r, d = 1, m = arguments.length; d < m; d++) {
28177
- r = arguments[d];
28176
+ for (var r, c = 1, m = arguments.length; c < m; c++) {
28177
+ r = arguments[c];
28178
28178
  for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (_[i] = r[i]);
28179
28179
  }
28180
28180
  return _;
28181
28181
  }, e.apply(this, arguments);
28182
28182
  };
28183
28183
  Object.defineProperty(re, "__esModule", { value: !0 }), re.useSocketIO = void 0;
28184
- var n = he, c = ia(), o = A(), s = {
28184
+ var n = he, d = ia(), o = A(), s = {
28185
28185
  type: "empty",
28186
28186
  payload: null
28187
28187
  }, g = function(_) {
@@ -28190,16 +28190,16 @@ function qi() {
28190
28190
  var r = _.data.match(/\[.*]/);
28191
28191
  if (!r)
28192
28192
  return s;
28193
- var d = JSON.parse(r);
28194
- return !Array.isArray(d) || !d[1] ? s : {
28195
- type: d[0],
28196
- payload: d[1]
28193
+ var c = JSON.parse(r);
28194
+ return !Array.isArray(c) || !c[1] ? s : {
28195
+ type: c[0],
28196
+ payload: c[1]
28197
28197
  };
28198
- }, U = function(_, r, d) {
28199
- r === void 0 && (r = o.DEFAULT_OPTIONS), d === void 0 && (d = !0);
28198
+ }, U = function(_, r, c) {
28199
+ r === void 0 && (r = o.DEFAULT_OPTIONS), c === void 0 && (c = !0);
28200
28200
  var m = (0, n.useMemo)(function() {
28201
28201
  return e(e({}, r), { fromSocketIO: !0 });
28202
- }, []), i = (0, c.useWebSocket)(_, m, d), p = i.sendMessage, l = i.sendJsonMessage, t = i.lastMessage, y = i.readyState, b = i.getWebSocket, u = (0, n.useMemo)(function() {
28202
+ }, []), i = (0, d.useWebSocket)(_, m, c), p = i.sendMessage, l = i.sendJsonMessage, t = i.lastMessage, y = i.readyState, b = i.getWebSocket, u = (0, n.useMemo)(function() {
28203
28203
  return g(t);
28204
28204
  }, [t]);
28205
28205
  return {
@@ -28219,7 +28219,7 @@ function Xi() {
28219
28219
  Ha = 1;
28220
28220
  var e = q && q.__assign || function() {
28221
28221
  return e = Object.assign || function(U) {
28222
- for (var _, r = 1, d = arguments.length; r < d; r++) {
28222
+ for (var _, r = 1, c = arguments.length; r < c; r++) {
28223
28223
  _ = arguments[r];
28224
28224
  for (var m in _) Object.prototype.hasOwnProperty.call(_, m) && (U[m] = _[m]);
28225
28225
  }
@@ -28227,23 +28227,23 @@ function Xi() {
28227
28227
  }, e.apply(this, arguments);
28228
28228
  }, n = q && q.__rest || function(U, _) {
28229
28229
  var r = {};
28230
- for (var d in U) Object.prototype.hasOwnProperty.call(U, d) && _.indexOf(d) < 0 && (r[d] = U[d]);
28230
+ for (var c in U) Object.prototype.hasOwnProperty.call(U, c) && _.indexOf(c) < 0 && (r[c] = U[c]);
28231
28231
  if (U != null && typeof Object.getOwnPropertySymbols == "function")
28232
- for (var m = 0, d = Object.getOwnPropertySymbols(U); m < d.length; m++)
28233
- _.indexOf(d[m]) < 0 && Object.prototype.propertyIsEnumerable.call(U, d[m]) && (r[d[m]] = U[d[m]]);
28232
+ for (var m = 0, c = Object.getOwnPropertySymbols(U); m < c.length; m++)
28233
+ _.indexOf(c[m]) < 0 && Object.prototype.propertyIsEnumerable.call(U, c[m]) && (r[c[m]] = U[c[m]]);
28234
28234
  return r;
28235
28235
  };
28236
28236
  Object.defineProperty(q, "__esModule", { value: !0 }), q.useEventSource = void 0;
28237
- var c = he, o = ia(), s = A(), g = function(U, _, r) {
28237
+ var d = he, o = ia(), s = A(), g = function(U, _, r) {
28238
28238
  _ === void 0 && (_ = s.DEFAULT_EVENT_SOURCE_OPTIONS);
28239
- var d = _.withCredentials, m = _.events, i = n(_, ["withCredentials", "events"]);
28239
+ var c = _.withCredentials, m = _.events, i = n(_, ["withCredentials", "events"]);
28240
28240
  r === void 0 && (r = !0);
28241
28241
  var p = e(e({}, i), { eventSourceOptions: {
28242
- withCredentials: d
28243
- } }), l = (0, c.useRef)(s.EMPTY_EVENT_HANDLERS);
28242
+ withCredentials: c
28243
+ } }), l = (0, d.useRef)(s.EMPTY_EVENT_HANDLERS);
28244
28244
  m && (l.current = m);
28245
28245
  var t = (0, o.useWebSocket)(U, p, r), y = t.lastMessage, b = t.readyState, u = t.getWebSocket;
28246
- return (0, c.useEffect)(function() {
28246
+ return (0, d.useEffect)(function() {
28247
28247
  y?.type && Object.entries(l.current).forEach(function(T) {
28248
28248
  var N = T[0], D = T[1];
28249
28249
  N === y.type && D(y);
@@ -28264,9 +28264,9 @@ function $i() {
28264
28264
  Object.defineProperty(e, "default", { enumerable: !0, get: function() {
28265
28265
  return n.useWebSocket;
28266
28266
  } });
28267
- var c = qi();
28267
+ var d = qi();
28268
28268
  Object.defineProperty(e, "useSocketIO", { enumerable: !0, get: function() {
28269
- return c.useSocketIO;
28269
+ return d.useSocketIO;
28270
28270
  } });
28271
28271
  var o = A();
28272
28272
  Object.defineProperty(e, "ReadyState", { enumerable: !0, get: function() {
@@ -28297,7 +28297,7 @@ const al = /* @__PURE__ */ Si(el), I = {
28297
28297
  }, il = 3e4, yl = ({
28298
28298
  socketUrl: e,
28299
28299
  socketHandlers: n = {},
28300
- options: c = {}
28300
+ options: d = {}
28301
28301
  }) => {
28302
28302
  const o = ya(!1), s = ya(n), {
28303
28303
  sendMessage: g,
@@ -28316,8 +28316,8 @@ const al = /* @__PURE__ */ Si(el), I = {
28316
28316
  shouldReconnect: () => o.current === !1,
28317
28317
  reconnectAttempts: 9999,
28318
28318
  reconnectInterval: 1e3,
28319
- ...c
28320
- }), d = Qe(() => {
28319
+ ...d
28320
+ }), c = Qe(() => {
28321
28321
  try {
28322
28322
  return JSON.parse(_?.data);
28323
28323
  } catch {
@@ -28333,7 +28333,7 @@ const al = /* @__PURE__ */ Si(el), I = {
28333
28333
  }, [g]), ve(() => {
28334
28334
  s.current = n;
28335
28335
  }, [n]), ve(() => {
28336
- if (!d) return;
28336
+ if (!c) return;
28337
28337
  const {
28338
28338
  onDeposit: m,
28339
28339
  onTransCode: i,
@@ -28344,10 +28344,10 @@ const al = /* @__PURE__ */ Si(el), I = {
28344
28344
  onReload: b,
28345
28345
  onTransferInGame: u,
28346
28346
  onCashRegisterLimit: T
28347
- } = s.current, N = Me(d, "type", ""), D = {
28348
- memberInfoUid: Me(d, "member_info_uid", null),
28349
- data: Me(d, "data", null),
28350
- memo: Me(d, "memo", null)
28347
+ } = s.current, N = Me(c, "type", ""), D = {
28348
+ memberInfoUid: Me(c, "member_info_uid", null),
28349
+ data: Me(c, "data", null),
28350
+ memo: Me(c, "memo", null)
28351
28351
  };
28352
28352
  switch (N) {
28353
28353
  case I.DEPOSIT:
@@ -28382,7 +28382,7 @@ const al = /* @__PURE__ */ Si(el), I = {
28382
28382
  console.warn("Unknown socket type:", N);
28383
28383
  break;
28384
28384
  }
28385
- }, [d]), ve(() => () => o.current = !0, []), {
28385
+ }, [c]), ve(() => () => o.current = !0, []), {
28386
28386
  sendMessage: g,
28387
28387
  sendJsonMessage: U,
28388
28388
  readyState: r
@@ -28392,8 +28392,8 @@ const al = /* @__PURE__ */ Si(el), I = {
28392
28392
  const { client: e } = He(), n = X(async () => {
28393
28393
  const { data: o } = await e.get("/carousels");
28394
28394
  return o;
28395
- }, [e]), c = X(async () => await e.get("/marquees"), [e]);
28396
- return { commonCarouselApi: n, commonMarqueeApi: c };
28395
+ }, [e]), d = X(async () => await e.get("/marquees"), [e]);
28396
+ return { commonCarouselApi: n, commonMarqueeApi: d };
28397
28397
  }, bl = () => {
28398
28398
  const { commonCarouselApi: e } = ja();
28399
28399
  return oe({
@@ -28407,12 +28407,12 @@ const al = /* @__PURE__ */ Si(el), I = {
28407
28407
  queryFn: async () => e(),
28408
28408
  select: (n) => n.Marquees
28409
28409
  });
28410
- }, ll = () => {
28411
- const { userLoginApi: e } = de();
28410
+ }, ll = ({ options: e } = {}) => {
28411
+ const { userLoginApi: n } = de();
28412
28412
  return za({
28413
28413
  mutationKey: ["userLogin"],
28414
- mutationFn: async (n) => e(n)
28415
- // ...options
28414
+ mutationFn: async (d) => n(d),
28415
+ ...e
28416
28416
  });
28417
28417
  }, tl = ({ options: e } = {}) => {
28418
28418
  const { userLogoutApi: n } = de();