@obb871001/api-integration-sdk 1.0.343 → 1.0.345

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
@@ -1,7 +1,7 @@
1
- import de, { createContext as $t, useContext as fi, useState as si, useMemo as Oa, useCallback as z, useRef as ae, useEffect as pe } from "react";
2
- import { useQueries as zn, useQuery as j, useQueryClient as _i, useMutation as X, QueryClient as Bl, QueryClientProvider as Hl } from "@tanstack/react-query";
1
+ import de, { createContext as $t, useContext as fi, useState as si, useMemo as Oa, useCallback as z, useRef as te, useEffect as pe } from "react";
2
+ import { useQueries as zn, useQuery as j, useQueryClient as _i, useMutation as ee, QueryClient as Bl, QueryClientProvider as Hl } from "@tanstack/react-query";
3
3
  import Wl from "axios";
4
- import { get as te, find as Ke, isEmpty as Ee, entries as In, forEach as zl, map as Be, isArray as la, toLower as Ei, omit as Il, replace as tt, includes as Vl, isObject as Qt, flatMap as jt, values as Jl, keys as Ni } from "lodash";
4
+ import { get as Y, find as Ie, isEmpty as Ee, entries as In, forEach as zl, map as Be, isArray as la, toLower as Ei, omit as Il, replace as tt, includes as Vl, isObject as Qt, flatMap as jt, values as Jl, keys as Ni } from "lodash";
5
5
  import Zl from "react-dom";
6
6
  var ai = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7
7
  function yi(e) {
@@ -268,17 +268,17 @@ function $l() {
268
268
  }
269
269
  } catch (We) {
270
270
  if (We && $ && typeof We.stack == "string") {
271
- for (var ee = We.stack.split(`
271
+ for (var ae = We.stack.split(`
272
272
  `), Oe = $.stack.split(`
273
- `), be = ee.length - 1, he = Oe.length - 1; be >= 1 && he >= 0 && ee[be] !== Oe[he]; )
273
+ `), be = ae.length - 1, he = Oe.length - 1; be >= 1 && he >= 0 && ae[be] !== Oe[he]; )
274
274
  he--;
275
275
  for (; be >= 1 && he >= 0; be--, he--)
276
- if (ee[be] !== Oe[he]) {
276
+ if (ae[be] !== Oe[he]) {
277
277
  if (be !== 1 || he !== 1)
278
278
  do
279
- if (be--, he--, he < 0 || ee[be] !== Oe[he]) {
279
+ if (be--, he--, he < 0 || ae[be] !== Oe[he]) {
280
280
  var $e = `
281
- ` + ee[be].replace(" at new ", " at ");
281
+ ` + ae[be].replace(" at new ", " at ");
282
282
  return T.displayName && $e.includes("<anonymous>") && ($e = $e.replace("<anonymous>", T.displayName)), typeof T == "function" && le.set(T, $e), $e;
283
283
  }
284
284
  while (be >= 1 && he >= 0);
@@ -327,7 +327,7 @@ function $l() {
327
327
  }
328
328
  return "";
329
329
  }
330
- var fe = Object.prototype.hasOwnProperty, Ie = {}, Ce = y.ReactDebugCurrentFrame;
330
+ var fe = Object.prototype.hasOwnProperty, Ve = {}, Ce = y.ReactDebugCurrentFrame;
331
331
  function Ge(T) {
332
332
  if (T) {
333
333
  var I = T._owner, J = ke(T.type, T._source, I ? I.type : null);
@@ -340,17 +340,17 @@ function $l() {
340
340
  var ge = Function.call.bind(fe);
341
341
  for (var re in T)
342
342
  if (ge(T, re)) {
343
- var ee = void 0;
343
+ var ae = void 0;
344
344
  try {
345
345
  if (typeof T[re] != "function") {
346
346
  var Oe = Error(($ || "React class") + ": " + J + " type `" + re + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof T[re] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
347
347
  throw Oe.name = "Invariant Violation", Oe;
348
348
  }
349
- ee = T[re](I, re, $, J, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
349
+ ae = T[re](I, re, $, J, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
350
350
  } catch (be) {
351
- ee = be;
351
+ ae = be;
352
352
  }
353
- ee && !(ee instanceof Error) && (Ge(ue), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", $ || "React class", J, re, typeof ee), Ge(null)), ee instanceof Error && !(ee.message in Ie) && (Ie[ee.message] = !0, Ge(ue), _("Failed %s type: %s", J, ee.message), Ge(null));
353
+ ae && !(ae instanceof Error) && (Ge(ue), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", $ || "React class", J, re, typeof ae), Ge(null)), ae instanceof Error && !(ae.message in Ve) && (Ve[ae.message] = !0, Ge(ue), _("Failed %s type: %s", J, ae.message), Ge(null));
354
354
  }
355
355
  }
356
356
  }
@@ -384,7 +384,7 @@ function $l() {
384
384
  __self: !0,
385
385
  __source: !0
386
386
  }, oa, ga;
387
- function Ve(T) {
387
+ function Je(T) {
388
388
  if (fe.call(T, "ref")) {
389
389
  var I = Object.getOwnPropertyDescriptor(T, "ref").get;
390
390
  if (I && I.isReactWarning)
@@ -426,7 +426,7 @@ function $l() {
426
426
  }
427
427
  }
428
428
  var Va = function(T, I, J, $, ue, ge, re) {
429
- var ee = {
429
+ var ae = {
430
430
  // This tag allows us to uniquely identify this as a React Element
431
431
  $$typeof: n,
432
432
  // Built-in properties that belong on the element
@@ -437,27 +437,27 @@ function $l() {
437
437
  // Record the component responsible for creating this element.
438
438
  _owner: ge
439
439
  };
440
- return ee._store = {}, Object.defineProperty(ee._store, "validated", {
440
+ return ae._store = {}, Object.defineProperty(ae._store, "validated", {
441
441
  configurable: !1,
442
442
  enumerable: !1,
443
443
  writable: !0,
444
444
  value: !1
445
- }), Object.defineProperty(ee, "_self", {
445
+ }), Object.defineProperty(ae, "_self", {
446
446
  configurable: !1,
447
447
  enumerable: !1,
448
448
  writable: !1,
449
449
  value: $
450
- }), Object.defineProperty(ee, "_source", {
450
+ }), Object.defineProperty(ae, "_source", {
451
451
  configurable: !1,
452
452
  enumerable: !1,
453
453
  writable: !1,
454
454
  value: ue
455
- }), Object.freeze && (Object.freeze(ee.props), Object.freeze(ee)), ee;
455
+ }), Object.freeze && (Object.freeze(ae.props), Object.freeze(ae)), ae;
456
456
  };
457
457
  function Ja(T, I, J, $, ue) {
458
458
  {
459
- var ge, re = {}, ee = null, Oe = null;
460
- J !== void 0 && (xe(J), ee = "" + J), Ye(I) && (xe(I.key), ee = "" + I.key), Ve(I) && (Oe = I.ref, Ia(I, ue));
459
+ var ge, re = {}, ae = null, Oe = null;
460
+ J !== void 0 && (xe(J), ae = "" + J), Ye(I) && (xe(I.key), ae = "" + I.key), Je(I) && (Oe = I.ref, Ia(I, ue));
461
461
  for (ge in I)
462
462
  fe.call(I, ge) && !je.hasOwnProperty(ge) && (re[ge] = I[ge]);
463
463
  if (T && T.defaultProps) {
@@ -465,11 +465,11 @@ function $l() {
465
465
  for (ge in be)
466
466
  re[ge] === void 0 && (re[ge] = be[ge]);
467
467
  }
468
- if (ee || Oe) {
468
+ if (ae || Oe) {
469
469
  var he = typeof T == "function" ? T.displayName || T.name || "Unknown" : T;
470
- ee && Da(re, he), Oe && Ea(re, he);
470
+ ae && Da(re, he), Oe && Ea(re, he);
471
471
  }
472
- return Va(T, ee, Oe, ue, $, Re.current, re);
472
+ return Va(T, ae, Oe, ue, $, Re.current, re);
473
473
  }
474
474
  }
475
475
  var da = y.ReactCurrentOwner, ya = y.ReactDebugCurrentFrame;
@@ -587,12 +587,12 @@ Check the top-level render call using <` + J + ">.");
587
587
  {
588
588
  var re = k(T);
589
589
  if (!re) {
590
- var ee = "";
591
- (T === void 0 || typeof T == "object" && T !== null && Object.keys(T).length === 0) && (ee += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
590
+ var ae = "";
591
+ (T === void 0 || typeof T == "object" && T !== null && Object.keys(T).length === 0) && (ae += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
592
592
  var Oe = La();
593
- Oe ? ee += Oe : ee += Na();
593
+ Oe ? ae += Oe : ae += Na();
594
594
  var be;
595
- T === null ? be = "null" : ve(T) ? be = "array" : T !== void 0 && T.$$typeof === n ? (be = "<" + (A(T.type) || "Unknown") + " />", ee = " Did you accidentally export a JSX literal instead of a component?") : be = typeof T, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", be, ee);
595
+ T === null ? be = "null" : ve(T) ? be = "array" : T !== void 0 && T.$$typeof === n ? (be = "<" + (A(T.type) || "Unknown") + " />", ae = " Did you accidentally export a JSX literal instead of a component?") : be = typeof T, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", be, ae);
596
596
  }
597
597
  var he = Ja(T, I, J, ue, ge);
598
598
  if (he == null)
@@ -687,7 +687,7 @@ const Vn = $t(null), se = () => {
687
687
  default:
688
688
  return e;
689
689
  }
690
- }, Ze = "https://d1h3qe8voog6w4.cloudfront.net", nt = "https://d3jx2uvukujuvn.cloudfront.net", Kn = (e) => `${Ze}/reward_icon/${e}.avif`, qn = () => `${Ze}/reward_icon/background_deposit.avif`, $n = "ds88platformIcon", Ba = {
690
+ }, Ke = "https://d1h3qe8voog6w4.cloudfront.net", nt = "https://d3jx2uvukujuvn.cloudfront.net", Kn = (e) => `${Ke}/reward_icon/${e}.avif`, qn = () => `${Ke}/reward_icon/background_deposit.avif`, $n = "ds88platformIcon", Ba = {
691
691
  zh_TW: "系統提示",
692
692
  zh_CN: "系统提示",
693
693
  en_US: "System Prompt",
@@ -732,7 +732,7 @@ function Ri({
732
732
  }), a.interceptors.response.use(
733
733
  (i) => i.data,
734
734
  (i) => {
735
- const o = te(
735
+ const o = Y(
736
736
  i,
737
737
  "response.data.message",
738
738
  "發生錯誤,請稍後再試。"
@@ -786,7 +786,7 @@ const Qn = $t(null), hm = () => {
786
786
  minimumFractionDigits: 2,
787
787
  maximumFractionDigits: 2
788
788
  }).format(n);
789
- }, jn = (e = [], n) => Ke(e, { gameTypeName: n })?.gameTypeUid, Yn = (e = [], n) => Ke(e, { platform: n })?.platformUid, Xn = (e = [], n) => Ke(e, { SubPlatformEnum: n }), el = (e = [], n, t) => Ee(e) ? [] : e.filter((l) => t ? String(l?.SubPlatformEnumUid) === String(t?.SubPlatformEnumUid) : String(l.platformUid) === String(n)), Xl = (e = []) => Ee(e) ? {} : e.reduce((n, t) => {
789
+ }, jn = (e = [], n) => Ie(e, { gameTypeName: n })?.gameTypeUid, Yn = (e = [], n) => Ie(e, { platform: n })?.platformUid, Xn = (e = [], n) => Ie(e, { SubPlatformEnum: n }), el = (e = [], n, t) => Ee(e) ? [] : e.filter((l) => t ? String(l?.SubPlatformEnumUid) === String(t?.SubPlatformEnumUid) : String(l.platformUid) === String(n)), Xl = (e = []) => Ee(e) ? {} : e.reduce((n, t) => {
790
790
  const l = t?.game_subtype || "UNKNOWN";
791
791
  return n[l] || (n[l] = []), n[l].push(t), n;
792
792
  }, {}), er = ({
@@ -2413,18 +2413,18 @@ function tl() {
2413
2413
  ]);
2414
2414
  },
2415
2415
  _doProcessBlock: function(s, c) {
2416
- for (var f = this._hash.words, y = f[0], _ = f[1], b = f[2], C = f[3], v = f[4], D = f[5], E = f[6], G = f[7], O = y.high, k = y.low, h = _.high, F = _.low, A = b.high, w = b.low, R = C.high, P = C.low, H = v.high, B = v.low, W = D.high, M = D.low, S = E.high, x = E.low, L = G.high, N = G.low, Z = O, q = k, Q = h, K = F, ie = A, le = w, ye = R, Ue = P, me = H, ce = B, ke = W, fe = M, Ie = S, Ce = x, Ge = L, ea = N, Me = 0; Me < 80; Me++) {
2416
+ for (var f = this._hash.words, y = f[0], _ = f[1], b = f[2], C = f[3], v = f[4], D = f[5], E = f[6], G = f[7], O = y.high, k = y.low, h = _.high, F = _.low, A = b.high, w = b.low, R = C.high, P = C.low, H = v.high, B = v.low, W = D.high, M = D.low, S = E.high, x = E.low, L = G.high, N = G.low, Z = O, q = k, Q = h, K = F, ie = A, le = w, ye = R, Ue = P, me = H, ce = B, ke = W, fe = M, Ve = S, Ce = x, Ge = L, ea = N, Me = 0; Me < 80; Me++) {
2417
2417
  var ve, He, aa = m[Me];
2418
2418
  if (Me < 16)
2419
2419
  He = aa.high = s[c + Me * 2] | 0, ve = aa.low = s[c + Me * 2 + 1] | 0;
2420
2420
  else {
2421
- var ta = m[Me - 15], xe = ta.high, Re = ta.low, je = (xe >>> 1 | Re << 31) ^ (xe >>> 8 | Re << 24) ^ xe >>> 7, oa = (Re >>> 1 | xe << 31) ^ (Re >>> 8 | xe << 24) ^ (Re >>> 7 | xe << 25), ga = m[Me - 2], Ve = ga.high, Ye = ga.low, Ia = (Ve >>> 19 | Ye << 13) ^ (Ve << 3 | Ye >>> 29) ^ Ve >>> 6, Da = (Ye >>> 19 | Ve << 13) ^ (Ye << 3 | Ve >>> 29) ^ (Ye >>> 6 | Ve << 26), Ea = m[Me - 7], Va = Ea.high, Ja = Ea.low, da = m[Me - 16], ya = da.high, qe = da.low;
2421
+ var ta = m[Me - 15], xe = ta.high, Re = ta.low, je = (xe >>> 1 | Re << 31) ^ (xe >>> 8 | Re << 24) ^ xe >>> 7, oa = (Re >>> 1 | xe << 31) ^ (Re >>> 8 | xe << 24) ^ (Re >>> 7 | xe << 25), ga = m[Me - 2], Je = ga.high, Ye = ga.low, Ia = (Je >>> 19 | Ye << 13) ^ (Je << 3 | Ye >>> 29) ^ Je >>> 6, Da = (Ye >>> 19 | Je << 13) ^ (Ye << 3 | Je >>> 29) ^ (Ye >>> 6 | Je << 26), Ea = m[Me - 7], Va = Ea.high, Ja = Ea.low, da = m[Me - 16], ya = da.high, qe = da.low;
2422
2422
  ve = oa + Ja, He = je + Va + (ve >>> 0 < oa >>> 0 ? 1 : 0), ve = ve + Da, He = He + Ia + (ve >>> 0 < Da >>> 0 ? 1 : 0), ve = ve + qe, He = He + ya + (ve >>> 0 < qe >>> 0 ? 1 : 0), aa.high = He, aa.low = ve;
2423
2423
  }
2424
- var ca = me & ke ^ ~me & Ie, fa = ce & fe ^ ~ce & Ce, Na = Z & Q ^ Z & ie ^ Q & ie, La = q & K ^ q & le ^ K & le, Ua = (Z >>> 28 | q << 4) ^ (Z << 30 | q >>> 2) ^ (Z << 25 | q >>> 7), Ga = (q >>> 28 | Z << 4) ^ (q << 30 | Z >>> 2) ^ (q << 25 | Z >>> 7), Ma = (me >>> 14 | ce << 18) ^ (me >>> 18 | ce << 14) ^ (me << 23 | ce >>> 9), Se = (ce >>> 14 | me << 18) ^ (ce >>> 18 | me << 14) ^ (ce << 23 | me >>> 9), V = o[Me], De = V.high, ia = V.low, Pe = ea + Se, na = Ge + Ma + (Pe >>> 0 < ea >>> 0 ? 1 : 0), Pe = Pe + fa, na = na + ca + (Pe >>> 0 < fa >>> 0 ? 1 : 0), Pe = Pe + ia, na = na + De + (Pe >>> 0 < ia >>> 0 ? 1 : 0), Pe = Pe + ve, na = na + He + (Pe >>> 0 < ve >>> 0 ? 1 : 0), at = Ga + La, Xt = Ua + Na + (at >>> 0 < Ga >>> 0 ? 1 : 0);
2425
- Ge = Ie, ea = Ce, Ie = ke, Ce = fe, ke = me, fe = ce, ce = Ue + Pe | 0, me = ye + na + (ce >>> 0 < Ue >>> 0 ? 1 : 0) | 0, ye = ie, Ue = le, ie = Q, le = K, Q = Z, K = q, q = Pe + at | 0, Z = na + Xt + (q >>> 0 < Pe >>> 0 ? 1 : 0) | 0;
2424
+ var ca = me & ke ^ ~me & Ve, fa = ce & fe ^ ~ce & Ce, Na = Z & Q ^ Z & ie ^ Q & ie, La = q & K ^ q & le ^ K & le, Ua = (Z >>> 28 | q << 4) ^ (Z << 30 | q >>> 2) ^ (Z << 25 | q >>> 7), Ga = (q >>> 28 | Z << 4) ^ (q << 30 | Z >>> 2) ^ (q << 25 | Z >>> 7), Ma = (me >>> 14 | ce << 18) ^ (me >>> 18 | ce << 14) ^ (me << 23 | ce >>> 9), Se = (ce >>> 14 | me << 18) ^ (ce >>> 18 | me << 14) ^ (ce << 23 | me >>> 9), V = o[Me], De = V.high, ia = V.low, Pe = ea + Se, na = Ge + Ma + (Pe >>> 0 < ea >>> 0 ? 1 : 0), Pe = Pe + fa, na = na + ca + (Pe >>> 0 < fa >>> 0 ? 1 : 0), Pe = Pe + ia, na = na + De + (Pe >>> 0 < ia >>> 0 ? 1 : 0), Pe = Pe + ve, na = na + He + (Pe >>> 0 < ve >>> 0 ? 1 : 0), at = Ga + La, Xt = Ua + Na + (at >>> 0 < Ga >>> 0 ? 1 : 0);
2425
+ Ge = Ve, ea = Ce, Ve = ke, Ce = fe, ke = me, fe = ce, ce = Ue + Pe | 0, me = ye + na + (ce >>> 0 < Ue >>> 0 ? 1 : 0) | 0, ye = ie, Ue = le, ie = Q, le = K, Q = Z, K = q, q = Pe + at | 0, Z = na + Xt + (q >>> 0 < Pe >>> 0 ? 1 : 0) | 0;
2426
2426
  }
2427
- k = y.low = k + q, y.high = O + Z + (k >>> 0 < q >>> 0 ? 1 : 0), F = _.low = F + K, _.high = h + Q + (F >>> 0 < K >>> 0 ? 1 : 0), w = b.low = w + le, b.high = A + ie + (w >>> 0 < le >>> 0 ? 1 : 0), P = C.low = P + Ue, C.high = R + ye + (P >>> 0 < Ue >>> 0 ? 1 : 0), B = v.low = B + ce, v.high = H + me + (B >>> 0 < ce >>> 0 ? 1 : 0), M = D.low = M + fe, D.high = W + ke + (M >>> 0 < fe >>> 0 ? 1 : 0), x = E.low = x + Ce, E.high = S + Ie + (x >>> 0 < Ce >>> 0 ? 1 : 0), N = G.low = N + ea, G.high = L + Ge + (N >>> 0 < ea >>> 0 ? 1 : 0);
2427
+ k = y.low = k + q, y.high = O + Z + (k >>> 0 < q >>> 0 ? 1 : 0), F = _.low = F + K, _.high = h + Q + (F >>> 0 < K >>> 0 ? 1 : 0), w = b.low = w + le, b.high = A + ie + (w >>> 0 < le >>> 0 ? 1 : 0), P = C.low = P + Ue, C.high = R + ye + (P >>> 0 < Ue >>> 0 ? 1 : 0), B = v.low = B + ce, v.high = H + me + (B >>> 0 < ce >>> 0 ? 1 : 0), M = D.low = M + fe, D.high = W + ke + (M >>> 0 < fe >>> 0 ? 1 : 0), x = E.low = x + Ce, E.high = S + Ve + (x >>> 0 < Ce >>> 0 ? 1 : 0), N = G.low = N + ea, G.high = L + Ge + (N >>> 0 < ea >>> 0 ? 1 : 0);
2428
2428
  },
2429
2429
  _doFinalize: function() {
2430
2430
  var s = this._data, c = s.words, f = this._nDataBytes * 8, y = s.sigBytes * 8;
@@ -6597,7 +6597,7 @@ function mi(e, n) {
6597
6597
  }
6598
6598
  );
6599
6599
  }
6600
- var ui = mi(Co, { path: "/" }), ti = {}, Je = {}, ii = {}, Un;
6600
+ var ui = mi(Co, { path: "/" }), ti = {}, Ze = {}, ii = {}, Un;
6601
6601
  function ra() {
6602
6602
  return Un || (Un = 1, (function(e) {
6603
6603
  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;
@@ -7078,9 +7078,9 @@ function xo() {
7078
7078
  }
7079
7079
  var Nn;
7080
7080
  function xi() {
7081
- if (Nn) return Je;
7081
+ if (Nn) return Ze;
7082
7082
  Nn = 1;
7083
- var e = Je && Je.__assign || function() {
7083
+ var e = Ze && Ze.__assign || function() {
7084
7084
  return e = Object.assign || function(m) {
7085
7085
  for (var u, s = 1, c = arguments.length; s < c; s++) {
7086
7086
  u = arguments[s];
@@ -7088,7 +7088,7 @@ function xi() {
7088
7088
  }
7089
7089
  return m;
7090
7090
  }, e.apply(this, arguments);
7091
- }, n = Je && Je.__awaiter || function(m, u, s, c) {
7091
+ }, n = Ze && Ze.__awaiter || function(m, u, s, c) {
7092
7092
  function f(y) {
7093
7093
  return y instanceof s ? y : new s(function(_) {
7094
7094
  _(y);
@@ -7114,7 +7114,7 @@ function xi() {
7114
7114
  }
7115
7115
  v((c = c.apply(m, u || [])).next());
7116
7116
  });
7117
- }, t = Je && Je.__generator || function(m, u) {
7117
+ }, t = Ze && Ze.__generator || function(m, u) {
7118
7118
  var s = { label: 0, sent: function() {
7119
7119
  if (y[0] & 1) throw y[1];
7120
7120
  return y[1];
@@ -7173,10 +7173,10 @@ function xi() {
7173
7173
  if (v[0] & 5) throw v[1];
7174
7174
  return { value: v[0] ? v[1] : void 0, done: !0 };
7175
7175
  }
7176
- }, l = Je && Je.__importDefault || function(m) {
7176
+ }, l = Ze && Ze.__importDefault || function(m) {
7177
7177
  return m && m.__esModule ? m : { default: m };
7178
7178
  };
7179
- Object.defineProperty(Je, "__esModule", { value: !0 }), Je.useWebSocket = void 0;
7179
+ Object.defineProperty(Ze, "__esModule", { value: !0 }), Ze.useWebSocket = void 0;
7180
7180
  var p = de, g = Zl, U = ra(), d = To(), r = ko(), a = l(xo()), i = ki(), o = function(m, u, s) {
7181
7181
  u === void 0 && (u = U.DEFAULT_OPTIONS), s === void 0 && (s = !0);
7182
7182
  var c = (0, p.useState)(null), f = c[0], y = c[1], _ = (0, p.useState)({}), b = _[0], C = _[1], v = (0, p.useMemo)(function() {
@@ -7260,7 +7260,7 @@ function xi() {
7260
7260
  getWebSocket: B
7261
7261
  };
7262
7262
  };
7263
- return Je.useWebSocket = o, Je;
7263
+ return Ze.useWebSocket = o, Ze;
7264
7264
  }
7265
7265
  var Ta = {}, Ln;
7266
7266
  function So() {
@@ -7462,56 +7462,56 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7462
7462
  };
7463
7463
  }, Mo = ({ options: e } = {}) => {
7464
7464
  const { userLoginApi: n } = oe();
7465
- return X({
7465
+ return ee({
7466
7466
  mutationKey: ["userLogin"],
7467
7467
  mutationFn: async (t) => n(t),
7468
7468
  ...e
7469
7469
  });
7470
7470
  }, Ro = ({ options: e } = {}) => {
7471
7471
  const { userLogoutApi: n } = oe();
7472
- return X({
7472
+ return ee({
7473
7473
  mutationKey: ["userLogout"],
7474
7474
  mutationFn: async () => n(),
7475
7475
  ...e
7476
7476
  });
7477
7477
  }, Po = ({ options: e } = {}) => {
7478
7478
  const { userSignUpApi: n } = oe();
7479
- return X({
7479
+ return ee({
7480
7480
  mutationKey: ["userSignUp"],
7481
7481
  mutationFn: async (t) => n(t),
7482
7482
  ...e
7483
7483
  });
7484
7484
  }, wo = ({ options: e } = {}) => {
7485
7485
  const { addOrRemoveFavoriteGameApi: n } = oe();
7486
- return X({
7486
+ return ee({
7487
7487
  mutationKey: ["toggleFavoriteGame"],
7488
7488
  mutationFn: async (t) => n(t),
7489
7489
  ...e
7490
7490
  });
7491
7491
  }, Fo = ({ options: e } = {}) => {
7492
7492
  const { updateUserInfoApi: n } = oe();
7493
- return X({
7493
+ return ee({
7494
7494
  mutationKey: ["updateUserInfo"],
7495
7495
  mutationFn: async (t) => n(t),
7496
7496
  ...e
7497
7497
  });
7498
7498
  }, Ao = ({ options: e } = {}) => {
7499
7499
  const { resetUserPasswordApi: n } = oe();
7500
- return X({
7500
+ return ee({
7501
7501
  mutationKey: ["resetUserPassword"],
7502
7502
  mutationFn: async (t) => n(t),
7503
7503
  ...e
7504
7504
  });
7505
7505
  }, Oo = ({ options: e } = {}) => {
7506
7506
  const { setUserTransactionPasswordApi: n } = oe();
7507
- return X({
7507
+ return ee({
7508
7508
  mutationKey: ["setUserTransactionPassword"],
7509
7509
  mutationFn: async (t) => n(t),
7510
7510
  ...e
7511
7511
  });
7512
7512
  }, Bo = ({ options: e } = {}) => {
7513
7513
  const { resetUserTransactionPasswordApi: n } = oe();
7514
- return X({
7514
+ return ee({
7515
7515
  mutationKey: ["resetUserTransactionPassword"],
7516
7516
  mutationFn: async (t) => n(t),
7517
7517
  ...e
@@ -7526,14 +7526,14 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7526
7526
  });
7527
7527
  }, Wo = ({ options: e } = {}) => {
7528
7528
  const { userBindBankApi: n } = oe();
7529
- return X({
7529
+ return ee({
7530
7530
  mutationKey: ["userBindBank"],
7531
7531
  mutationFn: async (t) => n({ formData: t }),
7532
7532
  ...e
7533
7533
  });
7534
7534
  }, zo = ({ options: e } = {}) => {
7535
7535
  const { transferInGameApi: n } = oe();
7536
- return X({
7536
+ return ee({
7537
7537
  mutationKey: ["transferInGame"],
7538
7538
  mutationFn: async (t) => n(t),
7539
7539
  retry: !1,
@@ -7541,7 +7541,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7541
7541
  });
7542
7542
  }, Nm = ({ options: e } = {}) => {
7543
7543
  const { currency: n } = se(), { pointTransferApi: t } = oe();
7544
- return X({
7544
+ return ee({
7545
7545
  mutationKey: ["pointTransfer"],
7546
7546
  mutationFn: async (l) => t({
7547
7547
  ...l,
@@ -7556,7 +7556,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7556
7556
  queryFn: async () => t(),
7557
7557
  select: (l) => {
7558
7558
  const { data: p } = l;
7559
- return Ke(p?.base, {
7559
+ return Ie(p?.base, {
7560
7560
  currency: n
7561
7561
  }) || {};
7562
7562
  },
@@ -7564,7 +7564,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7564
7564
  });
7565
7565
  }, Gm = ({ options: e } = {}) => {
7566
7566
  const n = _i(), { abandonPointsApi: t } = oe();
7567
- return X({
7567
+ return ee({
7568
7568
  mutationKey: ["abandonPoint"],
7569
7569
  mutationFn: async (l) => t({
7570
7570
  ...l
@@ -7576,14 +7576,14 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7576
7576
  });
7577
7577
  }, nl = ({ options: e } = {}) => {
7578
7578
  const { lineLoginApi: n } = oe();
7579
- return X({
7579
+ return ee({
7580
7580
  mutationKey: ["lineLogin"],
7581
7581
  mutationFn: async (t) => n(t),
7582
7582
  ...e
7583
7583
  });
7584
7584
  }, Io = ({ options: e } = {}) => {
7585
7585
  const { lineLogin2Api: n } = oe();
7586
- return X({
7586
+ return ee({
7587
7587
  mutationKey: ["lineLogin"],
7588
7588
  mutationFn: async (t) => n(t),
7589
7589
  ...e
@@ -7597,42 +7597,42 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7597
7597
  });
7598
7598
  }, Mm = ({ options: e } = {}) => {
7599
7599
  const { currency: n } = se(), { memberTransferApi: t } = oe();
7600
- return X({
7600
+ return ee({
7601
7601
  mutationKey: ["memberTransfer"],
7602
7602
  mutationFn: async (l) => t({ ...l, currency: n }),
7603
7603
  ...e
7604
7604
  });
7605
7605
  }, Rm = ({ options: e } = {}) => {
7606
7606
  const { mobileLoginApi: n } = oe();
7607
- return X({
7607
+ return ee({
7608
7608
  mutationKey: ["mobileLogin"],
7609
7609
  mutationFn: async (t) => n(t),
7610
7610
  ...e
7611
7611
  });
7612
7612
  }, Pm = ({ options: e } = {}) => {
7613
7613
  const { mobileLoginApiV2: n } = oe();
7614
- return X({
7614
+ return ee({
7615
7615
  mutationKey: ["mobileLoginV2"],
7616
7616
  mutationFn: async (t) => n(t),
7617
7617
  ...e
7618
7618
  });
7619
7619
  }, wm = ({ options: e } = {}) => {
7620
7620
  const { mobileRegisterApi: n } = oe();
7621
- return X({
7621
+ return ee({
7622
7622
  mutationKey: ["mobileRegister"],
7623
7623
  mutationFn: async (t) => n(t),
7624
7624
  ...e
7625
7625
  });
7626
7626
  }, Jo = ({ options: e } = {}) => {
7627
7627
  const { bindAccountApi: n } = oe();
7628
- return X({
7628
+ return ee({
7629
7629
  mutationKey: ["bindAccount"],
7630
7630
  mutationFn: async (t) => n(t),
7631
7631
  ...e
7632
7632
  });
7633
7633
  }, Fm = ({ options: e } = {}) => {
7634
7634
  const { sendMobileVerifyCodeApi: n } = oe();
7635
- return X({
7635
+ return ee({
7636
7636
  mutationKey: ["sendMobileVerifyCode"],
7637
7637
  mutationFn: async (t) => n(t),
7638
7638
  ...e
@@ -7653,7 +7653,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7653
7653
  });
7654
7654
  }, Bm = ({ options: e } = {}) => {
7655
7655
  const { verifyResetActionApi: n } = oe();
7656
- return X({
7656
+ return ee({
7657
7657
  mutationKey: ["verifyResetAction"],
7658
7658
  mutationFn: async (t) => n(t),
7659
7659
  ...e
@@ -7664,7 +7664,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7664
7664
  queryKey: ["getJackpotData"],
7665
7665
  queryFn: async () => t(),
7666
7666
  select: (l) => {
7667
- const p = te(l, "data", {
7667
+ const p = Y(l, "data", {
7668
7668
  MAJOR: 0,
7669
7669
  MINOR: 0,
7670
7670
  MINI: 0,
@@ -7672,7 +7672,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7672
7672
  MEGA: 0
7673
7673
  });
7674
7674
  return n ? zl(n, (U, d) => {
7675
- U.amount = te(p, d, 0) + Math.floor(Math.random() * 1e3);
7675
+ U.amount = Y(p, d, 0) + Math.floor(Math.random() * 1e3);
7676
7676
  }) : p;
7677
7677
  },
7678
7678
  ...e
@@ -7696,7 +7696,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7696
7696
  });
7697
7697
  }, Im = ({ options: e } = {}) => {
7698
7698
  const { updateUserAvatarApi: n } = oe();
7699
- return X({
7699
+ return ee({
7700
7700
  mutationKey: ["updateAvatar"],
7701
7701
  mutationFn: async (t) => n(t),
7702
7702
  ...e
@@ -7764,9 +7764,9 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7764
7764
  enableNotification: g = !1,
7765
7765
  disabledLineAutoRegister: U = !1
7766
7766
  }) => {
7767
- const { store: d, lng: r } = se(), a = _i(), { isReady: i, setAsReady: o, isPending: m, setAsPending: u } = Zn(), s = Qe(r), c = ae(!1), f = ae(n), y = te(l, "uid", null);
7768
- te(l, "testFunction", 0);
7769
- const _ = new URLSearchParams(window.location.search), b = te(
7767
+ const { store: d, lng: r } = se(), a = _i(), { isReady: i, setAsReady: o, isPending: m, setAsPending: u } = Zn(), s = Qe(r), c = te(!1), f = te(n), y = Y(l, "uid", null);
7768
+ Y(l, "testFunction", 0);
7769
+ const _ = new URLSearchParams(window.location.search), b = Y(
7770
7770
  p,
7771
7771
  "enableTransferInGaming",
7772
7772
  !1
@@ -7789,9 +7789,9 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7789
7789
  }), { handleTransferInGame: D } = Go({
7790
7790
  enable: b,
7791
7791
  isTestFunction: !0,
7792
- isTransferMode: te(p, "isTransferMode", !1),
7793
- isInGameBox: te(p, "isInGameBox", !1),
7794
- currentGamePlatform: te(p, "currentGamePlatform", "")
7792
+ isTransferMode: Y(p, "isTransferMode", !1),
7793
+ isInGameBox: Y(p, "isInGameBox", !1),
7794
+ currentGamePlatform: Y(p, "currentGamePlatform", "")
7795
7795
  }), {
7796
7796
  sendMessage: E,
7797
7797
  // 發送普通訊息
@@ -7841,7 +7841,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7841
7841
  pe(() => {
7842
7842
  f.current = n;
7843
7843
  }, [n]);
7844
- const A = ae(null);
7844
+ const A = te(null);
7845
7845
  return pe(() => {
7846
7846
  if (!h || A.current === h)
7847
7847
  return;
@@ -7856,13 +7856,13 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7856
7856
  onTransferInGame: M,
7857
7857
  onCashRegisterLimit: S,
7858
7858
  onLineLogin: x
7859
- } = f.current, L = te(h, "type", ""), N = {
7860
- memberInfoUid: te(h, "member_info_uid", null),
7861
- data: te(h, "data", null),
7862
- memo: te(h, "memo", null),
7863
- amount: te(h, "amount", null),
7864
- limitAmount: te(h, "limit_amount", null)
7865
- }, Z = Number(N.memberInfoUid) === y, q = N.data, Q = N.amount, K = N.limitAmount, ie = _.get("mac") || ui.get("machine_mac_address") || "", le = te(h, "data.line_id", null), ye = te(h, "data.line_name", null), Ue = te(h, "member_info_uid", null);
7859
+ } = f.current, L = Y(h, "type", ""), N = {
7860
+ memberInfoUid: Y(h, "member_info_uid", null),
7861
+ data: Y(h, "data", null),
7862
+ memo: Y(h, "memo", null),
7863
+ amount: Y(h, "amount", null),
7864
+ limitAmount: Y(h, "limit_amount", null)
7865
+ }, Z = Number(N.memberInfoUid) === y, q = N.data, Q = N.amount, K = N.limitAmount, ie = _.get("mac") || ui.get("machine_mac_address") || "", le = Y(h, "data.line_id", null), ye = Y(h, "data.line_name", null), Ue = Y(h, "member_info_uid", null);
7866
7866
  switch (L) {
7867
7867
  case ze.DEPOSIT:
7868
7868
  Z && (D(), w?.(N));
@@ -7872,7 +7872,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7872
7872
  break;
7873
7873
  case ze.ERROR:
7874
7874
  if (Z) {
7875
- const me = te(h, "open_game_modal", 0) === 1;
7875
+ const me = Y(h, "open_game_modal", 0) === 1;
7876
7876
  F(q, {
7877
7877
  notificationType: me ? "gamingNotice" : void 0
7878
7878
  }), P?.(N);
@@ -7899,13 +7899,13 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
7899
7899
  case ze.TRANSFER_IN_GAME:
7900
7900
  case ze.CHECK_REQUEST:
7901
7901
  if (Z && b) {
7902
- const { request_id: me, amount: ce, platform: ke, status: fe } = te(N, "data", {}) || {}, Ie = localStorage.getItem(
7902
+ const { request_id: me, amount: ce, platform: ke, status: fe } = Y(N, "data", {}) || {}, Ve = localStorage.getItem(
7903
7903
  "transfer_in_game_request_id"
7904
7904
  );
7905
7905
  if (fe === "pending") {
7906
7906
  localStorage.setItem("transfer_in_game_request_id", me);
7907
7907
  return;
7908
- } else if (Ie && Ie === me) {
7908
+ } else if (Ve && Ve === me) {
7909
7909
  if (fe === "rollback") {
7910
7910
  D();
7911
7911
  return;
@@ -8050,17 +8050,17 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
8050
8050
  select: (r) => {
8051
8051
  const { data: a } = r;
8052
8052
  return Be(a, (o) => {
8053
- const { events_attributes: m } = o, u = Ke(
8053
+ const { events_attributes: m } = o, u = Ie(
8054
8054
  m,
8055
8055
  (v) => v.attribute_currency === U
8056
- ) || m[0], s = te(u, "rewards", {}), c = te(o, "carousels.[0]", {}), f = Ke(c.carousels_lang, (v) => v.lang === d) || c?.carousels_lang?.[0], y = {
8056
+ ) || m[0], s = Y(u, "rewards", {}), c = Y(o, "carousels.[0]", {}), f = Ie(c.carousels_lang, (v) => v.lang === d) || c?.carousels_lang?.[0], y = {
8057
8057
  ...c,
8058
8058
  currentLngCarousel: {
8059
8059
  ...f,
8060
8060
  carouselCurrentLanguagePCImageUrl: `${p}/carousels/${f?.image_pc}`,
8061
8061
  carouselCurrentLanguageMBImageUrl: `${p}/carousels/${f?.image_mobile}`,
8062
- carouselCurrentLanguageS3PCImageUrl: `${Ze}/carousels/${f?.image_pc}`,
8063
- carouselCurrentLanguageS3MBImageUrl: `${Ze}/carousels/${f?.image_mobile}`
8062
+ carouselCurrentLanguageS3PCImageUrl: `${Ke}/carousels/${f?.image_pc}`,
8063
+ carouselCurrentLanguageS3MBImageUrl: `${Ke}/carousels/${f?.image_mobile}`
8064
8064
  }
8065
8065
  }, _ = {
8066
8066
  eventUid: o.uid,
@@ -8161,7 +8161,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
8161
8161
  });
8162
8162
  }, Zm = ({ options: e } = {}) => {
8163
8163
  const { redeemEventRewardApi: n } = Ya();
8164
- return X({
8164
+ return ee({
8165
8165
  mutationKey: ["redeemEventReward"],
8166
8166
  mutationFn: async (t) => n(t),
8167
8167
  ...e
@@ -8183,7 +8183,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
8183
8183
  });
8184
8184
  }, Km = ({ options: e } = {}) => {
8185
8185
  const { settleEventApi: n } = Ya();
8186
- return X({
8186
+ return ee({
8187
8187
  mutationKey: ["settleEvent"],
8188
8188
  mutationFn: async (t) => n(t),
8189
8189
  ...e
@@ -8244,7 +8244,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
8244
8244
  queryKey: ["getEventWalletList", e],
8245
8245
  queryFn: async () => await n({ gamePlatform: e }),
8246
8246
  select: (t) => {
8247
- const l = te(t, "data", []), p = te(t, "summary", []), g = e ? Ke(p, (b) => b.restricted_platform === e) : p, U = te(l, "data", []), {
8247
+ const l = Y(t, "data", []), p = Y(t, "summary", []), g = e ? Ie(p, (b) => b.platform === e) : p, U = Y(l, "data", []), {
8248
8248
  current_page: d,
8249
8249
  first_page_url: r,
8250
8250
  from: a,
@@ -8278,7 +8278,7 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
8278
8278
  });
8279
8279
  }, Qm = () => {
8280
8280
  const { enabledEventWalletApi: e } = Xa();
8281
- return X({
8281
+ return ee({
8282
8282
  mutationKey: ["enabledEventWallet"],
8283
8283
  mutationFn: async ({ eventUids: n }) => await e({ eventUids: n })
8284
8284
  });
@@ -8287,17 +8287,52 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
8287
8287
  return j({
8288
8288
  queryKey: ["evaluateEventWallet", e],
8289
8289
  queryFn: async () => await t({ gamePlatform: e }),
8290
+ select: (l) => {
8291
+ const p = Y(l, "data", []), g = Y(l, "summary", []), U = e ? Ie(g, (v) => v.restricted_platform === e) : g, d = Y(p, "data", []), {
8292
+ current_page: r,
8293
+ first_page_url: a,
8294
+ from: i,
8295
+ last_page: o,
8296
+ last_page_url: m,
8297
+ next_page_url: u,
8298
+ path: s,
8299
+ per_page: c,
8300
+ prev_page_url: f,
8301
+ to: y,
8302
+ total: _
8303
+ } = p, b = {
8304
+ current_page: r,
8305
+ first_page_url: a,
8306
+ from: i,
8307
+ last_page: o,
8308
+ last_page_url: m,
8309
+ next_page_url: u,
8310
+ path: s,
8311
+ per_page: c,
8312
+ prev_page_url: f,
8313
+ to: y,
8314
+ total: _
8315
+ }, C = {
8316
+ ...U,
8317
+ total_bonus_amount: U?.total_bonus || 0
8318
+ };
8319
+ return {
8320
+ list: d,
8321
+ summary: C,
8322
+ pagination: b
8323
+ };
8324
+ },
8290
8325
  ...n
8291
8326
  });
8292
8327
  }, Ym = () => {
8293
8328
  const { settleEventWalletApi: e } = Xa();
8294
- return X({
8329
+ return ee({
8295
8330
  mutationKey: ["settleEventWallet"],
8296
8331
  mutationFn: async ({ groupUid: n }) => await e({ groupUid: n })
8297
8332
  });
8298
8333
  }, Xm = () => {
8299
8334
  const { abandonEventWalletApi: e } = Xa();
8300
- return X({
8335
+ return ee({
8301
8336
  mutationKey: ["abandonEventWallet"],
8302
8337
  mutationFn: async ({ groupUid: n }) => await e({ groupUid: n })
8303
8338
  });
@@ -8316,15 +8351,15 @@ const Lo = /* @__PURE__ */ yi(No), Go = ({
8316
8351
  carouselCurrentLanguageData: a,
8317
8352
  carouselCurrentLanguagePCImageUrl: `${t}/carousels/${a?.image_pc}`,
8318
8353
  carouselCurrentLanguageMBImageUrl: `${t}/carousels/${a?.image_mobile}`,
8319
- carouselCurrentLanguageS3PCImageUrl: `${Ze}/carousels/${a?.image_pc}`,
8320
- carouselCurrentLanguageS3MBImageUrl: `${Ze}/carousels/${a?.image_mobile}`,
8354
+ carouselCurrentLanguageS3PCImageUrl: `${Ke}/carousels/${a?.image_pc}`,
8355
+ carouselCurrentLanguageS3MBImageUrl: `${Ke}/carousels/${a?.image_mobile}`,
8321
8356
  carouselCurrentLanguageLink: a?.url_link,
8322
8357
  currentLngCarousel: {
8323
8358
  ...a,
8324
8359
  carouselCurrentLanguagePCImageUrl: `${t}/carousels/${a?.image_pc}`,
8325
8360
  carouselCurrentLanguageMBImageUrl: `${t}/carousels/${a?.image_mobile}`,
8326
- carouselCurrentLanguageS3PCImageUrl: `${Ze}/carousels/${a?.image_pc}`,
8327
- carouselCurrentLanguageS3MBImageUrl: `${Ze}/carousels/${a?.image_mobile}`
8361
+ carouselCurrentLanguageS3PCImageUrl: `${Ke}/carousels/${a?.image_pc}`,
8362
+ carouselCurrentLanguageS3MBImageUrl: `${Ke}/carousels/${a?.image_mobile}`
8328
8363
  }
8329
8364
  };
8330
8365
  })
@@ -8685,7 +8720,7 @@ function cs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8685
8720
  }, onAction: o = () => {
8686
8721
  }, onMessage: m = () => {
8687
8722
  }, debounce: u = 0, throttle: s = 0, eventsThrottle: c = 200, startOnMount: f = !0, startManually: y = !1, stopOnIdle: _ = !1, crossTab: b = !1, name: C = "idle-timer", syncTimers: v = 0, leaderElection: D = !1, disabled: E = !1 } = {}) {
8688
- let G = ae(Te()), O = ae(Te()), k = ae(null), h = ae(null), F = ae(0), A = ae(0), w = ae(0), R = ae(0), P = ae(!1), H = ae(!1), B = ae(!1), W = ae(!0), M = ae(!1), S = ae(null), x = ae(null), L = ae(e), N = ae(0);
8723
+ let G = te(Te()), O = te(Te()), k = te(null), h = te(null), F = te(0), A = te(0), w = te(0), R = te(0), P = te(!1), H = te(!1), B = te(!1), W = te(!0), M = te(!1), S = te(null), x = te(null), L = te(e), N = te(0);
8689
8724
  pe(() => {
8690
8725
  if (n && console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."), t && n) throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");
8691
8726
  if (e >= Fa) throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${Fa}.`);
@@ -8697,44 +8732,44 @@ function cs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8697
8732
  P.current && (me.current(null, Se), x.current && x.current.active()), je();
8698
8733
  }
8699
8734
  }, [e, n, t, y, E]);
8700
- let Z = ae(_);
8735
+ let Z = te(_);
8701
8736
  pe(() => {
8702
8737
  Z.current = _;
8703
8738
  }, [_]);
8704
- let q = ae(U), Q = ae(l), K = ae([...(/* @__PURE__ */ new Set([...p, ...U])).values()]), ie = ae(E);
8739
+ let q = te(U), Q = te(l), K = te([...(/* @__PURE__ */ new Set([...p, ...U])).values()]), ie = te(E);
8705
8740
  pe(() => {
8706
- ie.current = E, !W.current && (E ? Ve() : y || je());
8741
+ ie.current = E, !W.current && (E ? Je() : y || je());
8707
8742
  }, [E]);
8708
- let le = ae(d);
8743
+ let le = te(d);
8709
8744
  pe(() => {
8710
8745
  le.current = d;
8711
8746
  }, [d]);
8712
- let ye = ae(r);
8747
+ let ye = te(r);
8713
8748
  pe(() => {
8714
8749
  ye.current = r;
8715
8750
  }, [r]);
8716
- let Ue = ae(a);
8751
+ let Ue = te(a);
8717
8752
  pe(() => {
8718
8753
  Ue.current = a;
8719
8754
  }, [a]);
8720
- let me = ae(i);
8755
+ let me = te(i);
8721
8756
  pe(() => {
8722
8757
  me.current = i;
8723
8758
  }, [i]);
8724
- let ce = ae(o);
8759
+ let ce = te(o);
8725
8760
  pe(() => {
8726
8761
  ce.current = o;
8727
8762
  }, [o]);
8728
- let ke = ae(m);
8763
+ let ke = te(m);
8729
8764
  pe(() => {
8730
8765
  ke.current = m;
8731
8766
  }, [m]);
8732
8767
  let fe = Oa(() => {
8733
8768
  let V = (De, ia) => ce.current(De, ia);
8734
8769
  return u > 0 ? ds(V, u) : s > 0 ? oi(V, s) : V;
8735
- }, [s, u]), Ie = ae();
8770
+ }, [s, u]), Ve = te();
8736
8771
  pe(() => {
8737
- b && v && (Ie.current = oi(() => {
8772
+ b && v && (Ve.current = oi(() => {
8738
8773
  x.current.active();
8739
8774
  }, v));
8740
8775
  }, [b, v]);
@@ -8771,8 +8806,8 @@ function cs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8771
8806
  He(V);
8772
8807
  return;
8773
8808
  }
8774
- B.current = !1, R.current = 0, w.current = 0, Ge(), b && v && Ie.current();
8775
- }, ta = ae(aa);
8809
+ B.current = !1, R.current = 0, w.current = 0, Ge(), b && v && Ve.current();
8810
+ }, ta = te(aa);
8776
8811
  pe(() => {
8777
8812
  let V = M.current;
8778
8813
  V && Re(), c > 0 ? ta.current = oi(aa, c) : ta.current = aa, V && xe();
@@ -8785,7 +8820,7 @@ function cs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8785
8820
  pa && Q.current && (M.current || V) && (K.current.forEach((De) => {
8786
8821
  Q.current.removeEventListener(De, ta.current, { capture: !0 });
8787
8822
  }), M.current = !1);
8788
- }, je = z((V) => ie.current ? !1 : (Ce(), xe(), P.current = !1, H.current = !1, B.current = !1, R.current = 0, w.current = 0, x.current && !V && x.current.start(), Ge(), !0), [S, P, ie, L, x]), oa = z((V) => ie.current ? !1 : (Ce(), xe(), O.current = Te(), F.current += Te() - k.current, A.current += Te() - k.current, F.current = 0, P.current = !1, H.current = !1, B.current = !1, R.current = 0, w.current = 0, x.current && !V && x.current.reset(), y || Ge(), !0), [S, P, L, y, ie, x]), ga = z((V) => ie.current ? !1 : (Ce(), xe(), (P.current || H.current) && ve(), P.current = !1, H.current = !1, B.current = !1, R.current = 0, w.current = 0, O.current = Te(), x.current && !V && x.current.activate(), Ge(), !0), [S, P, H, ie, L, x]), Ve = z((V = !1) => ie.current || B.current ? !1 : (R.current = ya(), B.current = !0, Re(), Ce(), x.current && !V && x.current.pause(), !0), [S, ie, x]), Ye = z((V = !1) => ie.current || !B.current ? !1 : (B.current = !1, H.current || xe(), P.current || Ge(R.current), w.current && (w.current = Te()), x.current && !V && x.current.resume(), !0), [S, L, ie, R, x]), Ia = z((V, De) => (x.current ? (De && ke.current(V, Se), x.current.message(V)) : De && ke.current(V, Se), !0), [m]), Da = z(() => P.current, [P]), Ea = z(() => H.current, [H]), Va = z(() => x.current ? x.current.isLeader : null, [x]), Ja = z(() => x.current ? x.current.isLastActive : null, [x]), da = z(() => x.current ? x.current.token : null, [x]), ya = z(() => {
8823
+ }, je = z((V) => ie.current ? !1 : (Ce(), xe(), P.current = !1, H.current = !1, B.current = !1, R.current = 0, w.current = 0, x.current && !V && x.current.start(), Ge(), !0), [S, P, ie, L, x]), oa = z((V) => ie.current ? !1 : (Ce(), xe(), O.current = Te(), F.current += Te() - k.current, A.current += Te() - k.current, F.current = 0, P.current = !1, H.current = !1, B.current = !1, R.current = 0, w.current = 0, x.current && !V && x.current.reset(), y || Ge(), !0), [S, P, L, y, ie, x]), ga = z((V) => ie.current ? !1 : (Ce(), xe(), (P.current || H.current) && ve(), P.current = !1, H.current = !1, B.current = !1, R.current = 0, w.current = 0, O.current = Te(), x.current && !V && x.current.activate(), Ge(), !0), [S, P, H, ie, L, x]), Je = z((V = !1) => ie.current || B.current ? !1 : (R.current = ya(), B.current = !0, Re(), Ce(), x.current && !V && x.current.pause(), !0), [S, ie, x]), Ye = z((V = !1) => ie.current || !B.current ? !1 : (B.current = !1, H.current || xe(), P.current || Ge(R.current), w.current && (w.current = Te()), x.current && !V && x.current.resume(), !0), [S, L, ie, R, x]), Ia = z((V, De) => (x.current ? (De && ke.current(V, Se), x.current.message(V)) : De && ke.current(V, Se), !0), [m]), Da = z(() => P.current, [P]), Ea = z(() => H.current, [H]), Va = z(() => x.current ? x.current.isLeader : null, [x]), Ja = z(() => x.current ? x.current.isLastActive : null, [x]), da = z(() => x.current ? x.current.token : null, [x]), ya = z(() => {
8789
8824
  if (B.current) return R.current;
8790
8825
  let V = R.current ? R.current : N.current + L.current, De = h.current ? Te() - h.current : 0, ia = Math.floor(V - De);
8791
8826
  return ia < 0 ? 0 : Math.abs(ia);
@@ -8814,8 +8849,8 @@ function cs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8814
8849
  ve();
8815
8850
  }, onMessage: (V) => {
8816
8851
  ke.current(V, Se);
8817
- }, start: je, reset: oa, activate: ga, pause: Ve, resume: Ye }) : x.current = null;
8818
- }, [b, C, D, ye, Ue, me, ke, je, oa, Ve, Ye]), pe(() => {
8852
+ }, start: je, reset: oa, activate: ga, pause: Je, resume: Ye }) : x.current = null;
8853
+ }, [b, C, D, ye, Ue, me, ke, je, oa, Je, Ye]), pe(() => {
8819
8854
  W.current || (Ce(), Re(!0)), !(y || E) && (f ? je() : xe());
8820
8855
  }, [y, f, E, W]), pe(() => {
8821
8856
  if (!W.current) {
@@ -8826,7 +8861,7 @@ function cs({ timeout: e = 1e3 * 60 * 20, promptTimeout: n = 0, promptBeforeIdle
8826
8861
  }, [l, JSON.stringify(p), JSON.stringify(U), W, E, y, f]), pe(() => {
8827
8862
  W.current && (W.current = !1);
8828
8863
  }, [W]);
8829
- let Se = { message: Ia, start: je, reset: oa, activate: ga, pause: Ve, resume: Ye, isIdle: Da, isPrompted: Ea, isLeader: Va, isLastActiveTab: Ja, getTabId: da, getRemainingTime: ya, getElapsedTime: qe, getTotalElapsedTime: ca, getLastIdleTime: fa, getLastActiveTime: Na, getIdleTime: La, getTotalIdleTime: Ua, getActiveTime: Ga, getTotalActiveTime: Ma, setOnPresenceChange: (V) => {
8864
+ let Se = { message: Ia, start: je, reset: oa, activate: ga, pause: Je, resume: Ye, isIdle: Da, isPrompted: Ea, isLeader: Va, isLastActiveTab: Ja, getTabId: da, getRemainingTime: ya, getElapsedTime: qe, getTotalElapsedTime: ca, getLastIdleTime: fa, getLastActiveTime: Na, getIdleTime: La, getTotalIdleTime: Ua, getActiveTime: Ga, getTotalActiveTime: Ma, setOnPresenceChange: (V) => {
8830
8865
  d = V, le.current = V;
8831
8866
  }, setOnPrompt: (V) => {
8832
8867
  r = V, ye.current = V;
@@ -8860,7 +8895,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
8860
8895
  const { internal_notifications_language: i } = a;
8861
8896
  return {
8862
8897
  ...a,
8863
- notificationLng: Ke(
8898
+ notificationLng: Ie(
8864
8899
  i,
8865
8900
  (o) => o.language === g
8866
8901
  ) || i[0]
@@ -8872,7 +8907,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
8872
8907
  });
8873
8908
  }, ys = ({ options: e } = {}) => {
8874
8909
  const { commonReadInboxApi: n } = Wa();
8875
- return X({
8910
+ return ee({
8876
8911
  mutationKey: ["readInbox"],
8877
8912
  mutationFn: async (t) => await n(t),
8878
8913
  ...e
@@ -8954,7 +8989,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
8954
8989
  },
8955
8990
  select: (g) => {
8956
8991
  const { data: U } = g, d = U.data?.filter((a) => a.is_active === 1), r = Be(d, (a) => {
8957
- const i = Ke(a.news_language, {
8992
+ const i = Ie(a.news_language, {
8958
8993
  language: p
8959
8994
  }) || a.news_language[0];
8960
8995
  return {
@@ -8979,7 +9014,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
8979
9014
  return l({ uid: g, params: U });
8980
9015
  },
8981
9016
  select: (g) => {
8982
- const U = Ke(g.data.news_language, {
9017
+ const U = Ie(g.data.news_language, {
8983
9018
  language: p
8984
9019
  }) || g.data.news_language[0];
8985
9020
  return {
@@ -9177,11 +9212,11 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9177
9212
  providerList: Be(r.providers, (a) => ({
9178
9213
  ...a,
9179
9214
  providerUid: a.uid,
9180
- providerImageUrl: `${Ze}/paymentIcon/${Ei(a.provider_name)}.png`,
9215
+ providerImageUrl: `${Ke}/paymentIcon/${Ei(a.provider_name)}.png`,
9181
9216
  providerMax: a.max,
9182
9217
  providerMin: a.min
9183
9218
  })),
9184
- methodImageUrl: `${Ze}/paymentIcon/${Ei(r.method_name)}pay.png`
9219
+ methodImageUrl: `${Ke}/paymentIcon/${Ei(r.method_name)}pay.png`
9185
9220
  }));
9186
9221
  return {
9187
9222
  bank: g,
@@ -9193,14 +9228,14 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9193
9228
  });
9194
9229
  }, vs = ({ options: e } = {}) => {
9195
9230
  const { depositApi: n } = Ae();
9196
- return X({
9231
+ return ee({
9197
9232
  mutationKey: ["depositAction"],
9198
9233
  mutationFn: async (t) => n(t),
9199
9234
  ...e
9200
9235
  });
9201
9236
  }, hs = ({ options: e } = {}) => {
9202
9237
  const { withdrawApi: n } = Ae();
9203
- return X({
9238
+ return ee({
9204
9239
  mutationKey: ["withdrawAction"],
9205
9240
  mutationFn: async (t) => n(t),
9206
9241
  ...e
@@ -9221,7 +9256,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9221
9256
  });
9222
9257
  }, xs = ({ options: e } = {}) => {
9223
9258
  const { bankDepositApi: n } = Ae();
9224
- return X({
9259
+ return ee({
9225
9260
  mutationKey: ["bankDeposit"],
9226
9261
  mutationFn: async (t) => n(t),
9227
9262
  ...e
@@ -9235,21 +9270,21 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9235
9270
  });
9236
9271
  }, ou = ({ options: e } = {}) => {
9237
9272
  const { redeemCodeDepositApi: n } = Ae();
9238
- return X({
9273
+ return ee({
9239
9274
  mutationKey: ["redeemCodeDeposit"],
9240
9275
  mutationFn: async (t) => n(t),
9241
9276
  ...e
9242
9277
  });
9243
9278
  }, su = ({ options: e } = {}) => {
9244
9279
  const { invoiceApi: n } = Ae();
9245
- return X({
9280
+ return ee({
9246
9281
  mutationKey: ["invoiceAction"],
9247
9282
  mutationFn: async (t) => n(t),
9248
9283
  ...e
9249
9284
  });
9250
9285
  }, mu = ({ options: e } = {}) => {
9251
9286
  const { updateInvoiceApi: n } = Ae();
9252
- return X({
9287
+ return ee({
9253
9288
  mutationKey: ["updateInvoiceAction"],
9254
9289
  mutationFn: async (t) => n(t),
9255
9290
  ...e
@@ -9460,7 +9495,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9460
9495
  });
9461
9496
  }, Bs = ({ options: e } = {}) => {
9462
9497
  const { receiveRebateApi: n } = vl();
9463
- return X({
9498
+ return ee({
9464
9499
  mutationKey: ["receiveRebate"],
9465
9500
  mutationFn: async () => n(),
9466
9501
  ...e
@@ -9508,7 +9543,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9508
9543
  const {
9509
9544
  wagering_restricted_amount: U,
9510
9545
  claimed_amount: d
9511
- } = g, r = te(g, "rewards", {}), {
9546
+ } = g, r = Y(g, "rewards", {}), {
9512
9547
  expiration_days: a,
9513
9548
  name: i,
9514
9549
  position: o,
@@ -9537,7 +9572,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9537
9572
  });
9538
9573
  }, Ws = ({ options: e } = {}) => {
9539
9574
  const { redeemRewardApi: n } = et();
9540
- return X({
9575
+ return ee({
9541
9576
  mutationKey: ["redeemReward"],
9542
9577
  mutationFn: async (t) => await n(t),
9543
9578
  ...e
@@ -9629,15 +9664,15 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9629
9664
  queryKey: ["treasureList", e],
9630
9665
  queryFn: () => g(e),
9631
9666
  select: (U) => {
9632
- const d = te(U, "data", {}), r = {
9633
- current_page: te(d, "current_page", 1),
9634
- per_page: te(d, "per_page", 10),
9635
- total: te(d, "total", 1),
9636
- last_page: te(d, "last_page", 1)
9667
+ const d = Y(U, "data", {}), r = {
9668
+ current_page: Y(d, "current_page", 1),
9669
+ per_page: Y(d, "per_page", 10),
9670
+ total: Y(d, "total", 1),
9671
+ last_page: Y(d, "last_page", 1)
9637
9672
  };
9638
9673
  return {
9639
- list: Be(te(d, "data", []), (i) => {
9640
- const o = Ke(i.treasure_copywriting, {
9674
+ list: Be(Y(d, "data", []), (i) => {
9675
+ const o = Ie(i.treasure_copywriting, {
9641
9676
  language: p
9642
9677
  });
9643
9678
  return {
@@ -9653,7 +9688,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9653
9688
  });
9654
9689
  }, Cu = ({ options: e } = {}) => {
9655
9690
  const { redeemTreasureApi: n } = hl();
9656
- return X({
9691
+ return ee({
9657
9692
  mutationKey: ["redeemTreasure"],
9658
9693
  mutationFn: async (t) => n(t),
9659
9694
  ...e
@@ -9696,16 +9731,16 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9696
9731
  vip_withdrawal_rate: i,
9697
9732
  rebate_range: o,
9698
9733
  vip_game_rebate: m
9699
- } = d, u = Ke(r, { currency_code: t }) || {}, s = Ke(a, { currency_code: t }) || {}, c = i, f = Be(o, (b) => ({
9734
+ } = d, u = Ie(r, { currency_code: t }) || {}, s = Ie(a, { currency_code: t }) || {}, c = i, f = Be(o, (b) => ({
9700
9735
  ...b,
9701
9736
  rebateRange: JSON.parse(b.rebate_range)
9702
- })), y = te(m, "[0]", {}), _ = {
9737
+ })), y = Y(m, "[0]", {}), _ = {
9703
9738
  ...y,
9704
9739
  platformRebate: JSON.parse(y.rebate || "{}")
9705
9740
  };
9706
9741
  return {
9707
9742
  ...d,
9708
- vipImageUrl: `${Ze}/vip/vip${d.level}_l.avif`,
9743
+ vipImageUrl: `${Ke}/vip/vip${d.level}_l.avif`,
9709
9744
  vipRule: u,
9710
9745
  vipWithdraw: s,
9711
9746
  vipWithdrawFeeRate: c,
@@ -9845,7 +9880,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9845
9880
  // 臨時維護開始時間
9846
9881
  temp_maintenance_end_time: o
9847
9882
  // 臨時維護結束時間
9848
- } = e || {}, m = `${Ze}/${$n}/${Zs(l, n)}.png`;
9883
+ } = e || {}, m = `${Ke}/${$n}/${Zs(l, n)}.png`;
9849
9884
  return {
9850
9885
  subPlatformEnum: t,
9851
9886
  platformEnum: l,
@@ -9930,7 +9965,7 @@ const iu = ({ onIdle: e, onActive: n, onAction: t, timeout: l = 6e5 }) => cs({
9930
9965
  allGameTypes: t,
9931
9966
  allPlatforms: n
9932
9967
  }), _ = Be(n, (G) => {
9933
- const O = `${Ze}/${$n}/${G.platformEnum}.png`;
9968
+ const O = `${Ke}/${$n}/${G.platformEnum}.png`;
9934
9969
  return {
9935
9970
  ...G,
9936
9971
  platformImageUrl: O
@@ -36611,7 +36646,7 @@ function Du({
36611
36646
  }
36612
36647
  const Eu = ({ onFunction: e = () => {
36613
36648
  }, buttonProps: n = {} } = {}) => {
36614
- const { lineConfig: t } = se(), l = ae(!1), p = te(t, "liffId", ""), g = new URLSearchParams(window.location.search), U = g.get("line_login"), d = g.get("trans_code"), r = g.get("line_id"), a = g.get("line_name"), i = g.get("invite_code"), { mutate: o, isPending: m } = nl({
36649
+ const { lineConfig: t } = se(), l = te(!1), p = Y(t, "liffId", ""), g = new URLSearchParams(window.location.search), U = g.get("line_login"), d = g.get("trans_code"), r = g.get("line_id"), a = g.get("line_name"), i = g.get("invite_code"), { mutate: o, isPending: m } = nl({
36615
36650
  options: {
36616
36651
  onSuccess: (s) => {
36617
36652
  e(s);
@@ -36667,14 +36702,14 @@ var rm = Object.defineProperty, qt = Object.getOwnPropertySymbols, kl = Object.p
36667
36702
  };
36668
36703
  var ka;
36669
36704
  ((e) => {
36670
- const n = class Y {
36705
+ const n = class X {
36671
36706
  /*-- Constructor (low level) and fields --*/
36672
36707
  // Creates a new QR Code with the given version number,
36673
36708
  // error correction level, data codeword bytes, and mask number.
36674
36709
  // This is a low-level API that most users should not use directly.
36675
36710
  // A mid-level API is the encodeSegments() function.
36676
36711
  constructor(r, a, i, o) {
36677
- if (this.version = r, this.errorCorrectionLevel = a, this.modules = [], this.isFunction = [], r < Y.MIN_VERSION || r > Y.MAX_VERSION)
36712
+ if (this.version = r, this.errorCorrectionLevel = a, this.modules = [], this.isFunction = [], r < X.MIN_VERSION || r > X.MAX_VERSION)
36678
36713
  throw new RangeError("Version value out of range");
36679
36714
  if (o < -1 || o > 7)
36680
36715
  throw new RangeError("Mask value out of range");
@@ -36704,7 +36739,7 @@ var ka;
36704
36739
  // ecl argument if it can be done without increasing the version.
36705
36740
  static encodeText(r, a) {
36706
36741
  const i = e.QrSegment.makeSegments(r);
36707
- return Y.encodeSegments(i, a);
36742
+ return X.encodeSegments(i, a);
36708
36743
  }
36709
36744
  // Returns a QR Code representing the given binary data at the given error correction level.
36710
36745
  // This function always encodes using the binary segment mode, not any text mode. The maximum number of
@@ -36712,7 +36747,7 @@ var ka;
36712
36747
  // The ECC level of the result may be higher than the ecl argument if it can be done without increasing the version.
36713
36748
  static encodeBinary(r, a) {
36714
36749
  const i = e.QrSegment.makeBytes(r);
36715
- return Y.encodeSegments([i], a);
36750
+ return X.encodeSegments([i], a);
36716
36751
  }
36717
36752
  /*-- Static factory functions (mid level) --*/
36718
36753
  // Returns a QR Code representing the given segments with the given encoding parameters.
@@ -36725,11 +36760,11 @@ var ka;
36725
36760
  // between modes (such as alphanumeric and byte) to encode text in less space.
36726
36761
  // This is a mid-level API; the high-level API is encodeText() and encodeBinary().
36727
36762
  static encodeSegments(r, a, i = 1, o = 40, m = -1, u = !0) {
36728
- if (!(Y.MIN_VERSION <= i && i <= o && o <= Y.MAX_VERSION) || m < -1 || m > 7)
36763
+ if (!(X.MIN_VERSION <= i && i <= o && o <= X.MAX_VERSION) || m < -1 || m > 7)
36729
36764
  throw new RangeError("Invalid value");
36730
36765
  let s, c;
36731
36766
  for (s = i; ; s++) {
36732
- const b = Y.getNumDataCodewords(s, a) * 8, C = U.getTotalBits(r, s);
36767
+ const b = X.getNumDataCodewords(s, a) * 8, C = U.getTotalBits(r, s);
36733
36768
  if (C <= b) {
36734
36769
  c = C;
36735
36770
  break;
@@ -36737,8 +36772,8 @@ var ka;
36737
36772
  if (s >= o)
36738
36773
  throw new RangeError("Data too long");
36739
36774
  }
36740
- for (const b of [Y.Ecc.MEDIUM, Y.Ecc.QUARTILE, Y.Ecc.HIGH])
36741
- u && c <= Y.getNumDataCodewords(s, b) * 8 && (a = b);
36775
+ for (const b of [X.Ecc.MEDIUM, X.Ecc.QUARTILE, X.Ecc.HIGH])
36776
+ u && c <= X.getNumDataCodewords(s, b) * 8 && (a = b);
36742
36777
  let f = [];
36743
36778
  for (const b of r) {
36744
36779
  t(b.mode.modeBits, 4, f), t(b.numChars, b.mode.numCharCountBits(s), f);
@@ -36746,14 +36781,14 @@ var ka;
36746
36781
  f.push(C);
36747
36782
  }
36748
36783
  p(f.length == c);
36749
- const y = Y.getNumDataCodewords(s, a) * 8;
36784
+ const y = X.getNumDataCodewords(s, a) * 8;
36750
36785
  p(f.length <= y), t(0, Math.min(4, y - f.length), f), t(0, (8 - f.length % 8) % 8, f), p(f.length % 8 == 0);
36751
36786
  for (let b = 236; f.length < y; b ^= 253)
36752
36787
  t(b, 8, f);
36753
36788
  let _ = [];
36754
36789
  for (; _.length * 8 < f.length; )
36755
36790
  _.push(0);
36756
- return f.forEach((b, C) => _[C >>> 3] |= b << 7 - (C & 7)), new Y(s, a, _, m);
36791
+ return f.forEach((b, C) => _[C >>> 3] |= b << 7 - (C & 7)), new X(s, a, _, m);
36757
36792
  }
36758
36793
  /*-- Accessor methods --*/
36759
36794
  // Returns the color of the module (pixel) at the given coordinates, which is false
@@ -36839,15 +36874,15 @@ var ka;
36839
36874
  // codewords appended to it, based on this object's version and error correction level.
36840
36875
  addEccAndInterleave(r) {
36841
36876
  const a = this.version, i = this.errorCorrectionLevel;
36842
- if (r.length != Y.getNumDataCodewords(a, i))
36877
+ if (r.length != X.getNumDataCodewords(a, i))
36843
36878
  throw new RangeError("Invalid argument");
36844
- const o = Y.NUM_ERROR_CORRECTION_BLOCKS[i.ordinal][a], m = Y.ECC_CODEWORDS_PER_BLOCK[i.ordinal][a], u = Math.floor(Y.getNumRawDataModules(a) / 8), s = o - u % o, c = Math.floor(u / o);
36879
+ const o = X.NUM_ERROR_CORRECTION_BLOCKS[i.ordinal][a], m = X.ECC_CODEWORDS_PER_BLOCK[i.ordinal][a], u = Math.floor(X.getNumRawDataModules(a) / 8), s = o - u % o, c = Math.floor(u / o);
36845
36880
  let f = [];
36846
- const y = Y.reedSolomonComputeDivisor(m);
36881
+ const y = X.reedSolomonComputeDivisor(m);
36847
36882
  for (let b = 0, C = 0; b < o; b++) {
36848
36883
  let v = r.slice(C, C + c - m + (b < s ? 0 : 1));
36849
36884
  C += v.length;
36850
- const D = Y.reedSolomonComputeRemainder(v, y);
36885
+ const D = X.reedSolomonComputeRemainder(v, y);
36851
36886
  b < s && v.push(0), f.push(v.concat(D));
36852
36887
  }
36853
36888
  let _ = [];
@@ -36860,7 +36895,7 @@ var ka;
36860
36895
  // Draws the given sequence of 8-bit codewords (data and error correction) onto the entire
36861
36896
  // data area of this QR Code. Function modules need to be marked off before this is called.
36862
36897
  drawCodewords(r) {
36863
- if (r.length != Math.floor(Y.getNumRawDataModules(this.version) / 8))
36898
+ if (r.length != Math.floor(X.getNumRawDataModules(this.version) / 8))
36864
36899
  throw new RangeError("Invalid argument");
36865
36900
  let a = 0;
36866
36901
  for (let i = this.size - 1; i >= 1; i -= 2) {
@@ -36922,25 +36957,25 @@ var ka;
36922
36957
  for (let m = 0; m < this.size; m++) {
36923
36958
  let u = !1, s = 0, c = [0, 0, 0, 0, 0, 0, 0];
36924
36959
  for (let f = 0; f < this.size; f++)
36925
- this.modules[m][f] == u ? (s++, s == 5 ? r += Y.PENALTY_N1 : s > 5 && r++) : (this.finderPenaltyAddHistory(s, c), u || (r += this.finderPenaltyCountPatterns(c) * Y.PENALTY_N3), u = this.modules[m][f], s = 1);
36926
- r += this.finderPenaltyTerminateAndCount(u, s, c) * Y.PENALTY_N3;
36960
+ this.modules[m][f] == u ? (s++, s == 5 ? r += X.PENALTY_N1 : s > 5 && r++) : (this.finderPenaltyAddHistory(s, c), u || (r += this.finderPenaltyCountPatterns(c) * X.PENALTY_N3), u = this.modules[m][f], s = 1);
36961
+ r += this.finderPenaltyTerminateAndCount(u, s, c) * X.PENALTY_N3;
36927
36962
  }
36928
36963
  for (let m = 0; m < this.size; m++) {
36929
36964
  let u = !1, s = 0, c = [0, 0, 0, 0, 0, 0, 0];
36930
36965
  for (let f = 0; f < this.size; f++)
36931
- this.modules[f][m] == u ? (s++, s == 5 ? r += Y.PENALTY_N1 : s > 5 && r++) : (this.finderPenaltyAddHistory(s, c), u || (r += this.finderPenaltyCountPatterns(c) * Y.PENALTY_N3), u = this.modules[f][m], s = 1);
36932
- r += this.finderPenaltyTerminateAndCount(u, s, c) * Y.PENALTY_N3;
36966
+ this.modules[f][m] == u ? (s++, s == 5 ? r += X.PENALTY_N1 : s > 5 && r++) : (this.finderPenaltyAddHistory(s, c), u || (r += this.finderPenaltyCountPatterns(c) * X.PENALTY_N3), u = this.modules[f][m], s = 1);
36967
+ r += this.finderPenaltyTerminateAndCount(u, s, c) * X.PENALTY_N3;
36933
36968
  }
36934
36969
  for (let m = 0; m < this.size - 1; m++)
36935
36970
  for (let u = 0; u < this.size - 1; u++) {
36936
36971
  const s = this.modules[m][u];
36937
- s == this.modules[m][u + 1] && s == this.modules[m + 1][u] && s == this.modules[m + 1][u + 1] && (r += Y.PENALTY_N2);
36972
+ s == this.modules[m][u + 1] && s == this.modules[m + 1][u] && s == this.modules[m + 1][u + 1] && (r += X.PENALTY_N2);
36938
36973
  }
36939
36974
  let a = 0;
36940
36975
  for (const m of this.modules)
36941
36976
  a = m.reduce((u, s) => u + (s ? 1 : 0), a);
36942
36977
  const i = this.size * this.size, o = Math.ceil(Math.abs(a * 20 - i * 10) / i) - 1;
36943
- return p(0 <= o && o <= 9), r += o * Y.PENALTY_N4, p(0 <= r && r <= 2568888), r;
36978
+ return p(0 <= o && o <= 9), r += o * X.PENALTY_N4, p(0 <= r && r <= 2568888), r;
36944
36979
  }
36945
36980
  /*-- Private helper functions --*/
36946
36981
  // Returns an ascending list of positions of alignment patterns for this version number.
@@ -36961,7 +36996,7 @@ var ka;
36961
36996
  // all function modules are excluded. This includes remainder bits, so it might not be a multiple of 8.
36962
36997
  // The result is in the range [208, 29648]. This could be implemented as a 40-entry lookup table.
36963
36998
  static getNumRawDataModules(r) {
36964
- if (r < Y.MIN_VERSION || r > Y.MAX_VERSION)
36999
+ if (r < X.MIN_VERSION || r > X.MAX_VERSION)
36965
37000
  throw new RangeError("Version number out of range");
36966
37001
  let a = (16 * r + 128) * r + 64;
36967
37002
  if (r >= 2) {
@@ -36974,7 +37009,7 @@ var ka;
36974
37009
  // QR Code of the given version number and error correction level, with remainder bits discarded.
36975
37010
  // This stateless pure function could be implemented as a (40*4)-cell lookup table.
36976
37011
  static getNumDataCodewords(r, a) {
36977
- return Math.floor(Y.getNumRawDataModules(r) / 8) - Y.ECC_CODEWORDS_PER_BLOCK[a.ordinal][r] * Y.NUM_ERROR_CORRECTION_BLOCKS[a.ordinal][r];
37012
+ return Math.floor(X.getNumRawDataModules(r) / 8) - X.ECC_CODEWORDS_PER_BLOCK[a.ordinal][r] * X.NUM_ERROR_CORRECTION_BLOCKS[a.ordinal][r];
36978
37013
  }
36979
37014
  // Returns a Reed-Solomon ECC generator polynomial for the given degree. This could be
36980
37015
  // implemented as a lookup table over all possible parameter values, instead of as an algorithm.
@@ -36988,8 +37023,8 @@ var ka;
36988
37023
  let i = 1;
36989
37024
  for (let o = 0; o < r; o++) {
36990
37025
  for (let m = 0; m < a.length; m++)
36991
- a[m] = Y.reedSolomonMultiply(a[m], i), m + 1 < a.length && (a[m] ^= a[m + 1]);
36992
- i = Y.reedSolomonMultiply(i, 2);
37026
+ a[m] = X.reedSolomonMultiply(a[m], i), m + 1 < a.length && (a[m] ^= a[m + 1]);
37027
+ i = X.reedSolomonMultiply(i, 2);
36993
37028
  }
36994
37029
  return a;
36995
37030
  }
@@ -36998,7 +37033,7 @@ var ka;
36998
37033
  let i = a.map((o) => 0);
36999
37034
  for (const o of r) {
37000
37035
  const m = o ^ i.shift();
37001
- i.push(0), a.forEach((u, s) => i[s] ^= Y.reedSolomonMultiply(u, m));
37036
+ i.push(0), a.forEach((u, s) => i[s] ^= X.reedSolomonMultiply(u, m));
37002
37037
  }
37003
37038
  return i;
37004
37039
  }
@@ -37517,14 +37552,14 @@ const fm = {
37517
37552
  expired: "Kode QR telah kedaluwarsa"
37518
37553
  }
37519
37554
  }, Gu = ({ forcedShow: e = !1, isVisible: n, setIsVisible: t } = {}) => {
37520
- const { lng: l, getToken: p, lineConfig: g } = se(), [U, d] = si(300), [r, a] = si(!1), i = ae(null), o = te(g, "liffId", ""), m = Qe(l), u = p?.(), c = new URLSearchParams(window.location.search).get("mac") || ui.get("machine_mac_address") || "", { data: f, isFetching: y } = Vo({
37555
+ const { lng: l, getToken: p, lineConfig: g } = se(), [U, d] = si(300), [r, a] = si(!1), i = te(null), o = Y(g, "liffId", ""), m = Qe(l), u = p?.(), c = new URLSearchParams(window.location.search).get("mac") || ui.get("machine_mac_address") || "", { data: f, isFetching: y } = Vo({
37521
37556
  formData: {
37522
37557
  mac_address: c
37523
37558
  },
37524
37559
  options: {
37525
37560
  enabled: e ? !0 : !!c && !u
37526
37561
  }
37527
- }), _ = te(f, "liff_url", "") || `https://liff.line.me/${o}`;
37562
+ }), _ = Y(f, "liff_url", "") || `https://liff.line.me/${o}`;
37528
37563
  pe(() => {
37529
37564
  c && ui.set("machine_mac_address", c, { expires: 365 });
37530
37565
  }, [c]), pe(() => (_ && (d(300), a(!1), i.current && clearInterval(i.current), i.current = setInterval(() => {
@@ -37596,7 +37631,7 @@ const fm = {
37596
37631
  });
37597
37632
  }
37598
37633
  }
37599
- }), U = ae(!1);
37634
+ }), U = te(!1);
37600
37635
  return pe(() => {
37601
37636
  if (U.current) return;
37602
37637
  const d = new URLSearchParams(window.location.search), r = d.get("bind_type"), a = d.get("bind_id");