@bootpay/client-js 5.2.0-beta.5 → 5.2.0-beta.6

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.es.js CHANGED
@@ -15,8 +15,8 @@ const te = {
15
15
  }), re = (r) => {
16
16
  let e = !1;
17
17
  return typeof r == "string" || Array.isArray(r) ? e = r.length === 0 : e = r == null || tt(r, "object") && r.constructor === Object && Object.keys(r).length === 0, e;
18
- }, M = (r) => !re(r), tt = (r, e) => typeof r === e, As = (r, e = void 0) => {
19
- if (M(e)) {
18
+ }, q = (r) => !re(r), tt = (r, e) => typeof r === e, As = (r, e = void 0) => {
19
+ if (q(e)) {
20
20
  const t = typeof e != "string" ? new URLSearchParams(JSON.parse(JSON.stringify(e))).toString() : e;
21
21
  return /\?/.test(r) ? `${r}&${t}` : `${r}?${t}`;
22
22
  } else
@@ -432,8 +432,8 @@ function z() {
432
432
  l ? R = s.ceil(R) : R = s.max((R | 0) - this._minBufferSize, 0);
433
433
  var _ = R * k, w = s.min(_ * 4, E);
434
434
  if (_) {
435
- for (var P = 0; P < _; P += k)
436
- this._doProcessBlock(b, P);
435
+ for (var B = 0; B < _; B += k)
436
+ this._doProcessBlock(b, B);
437
437
  h = b.splice(0, _), m.sigBytes -= w;
438
438
  }
439
439
  return new y.init(h, w);
@@ -644,7 +644,7 @@ function Ce() {
644
644
  }(_t)), _t.exports;
645
645
  }
646
646
  var Ns = Ce();
647
- const Pe = /* @__PURE__ */ Me(Ns);
647
+ const Be = /* @__PURE__ */ Me(Ns);
648
648
  class qe {
649
649
  $blank(e) {
650
650
  return re(e);
@@ -659,10 +659,10 @@ class qe {
659
659
  return X0();
660
660
  }
661
661
  $encrypt(e) {
662
- return this.$type(e, "object") && (e = JSON.stringify(e)), Pe.stringify(jr.parse(e));
662
+ return this.$type(e, "object") && (e = JSON.stringify(e)), Be.stringify(jr.parse(e));
663
663
  }
664
664
  $decrypt(e) {
665
- return jr.stringify(Pe.parse(e));
665
+ return jr.stringify(Be.parse(e));
666
666
  }
667
667
  getUserAgent() {
668
668
  return window.navigator.userAgent;
@@ -861,7 +861,7 @@ class Ms extends Ls {
861
861
  }
862
862
  }
863
863
  }
864
- const Be = new Ms(), qs = "@bootpay/client-js", Ws = "5.2.0-beta.5", zs = "dist/index.es.js", js = "dist/src/index.d.ts", Ks = "dist/index.css", Gs = {
864
+ const Pe = new Ms(), qs = "@bootpay/client-js", Ws = "5.2.0-beta.6", zs = "dist/index.es.js", js = "dist/src/index.d.ts", Ks = "dist/index.css", Gs = {
865
865
  test: 'echo "Error: no test specified" && exit 1',
866
866
  build: "rm -rf ./dist && vite build",
867
867
  deploy: "NODE_ENV=production ./node_modules/.bin/webpack --output-path=./dist --mode=production && gzip -kf dist/*.min.js && ./webview.sh $npm_package_version"
@@ -1017,7 +1017,7 @@ const ke = {
1017
1017
  return re(ke.__BOOTPAY_NAMESPACE) && (ke.__BOOTPAY_NAMESPACE = {}), this.addEventListener(r.split(".")[0], e, t || !1), ke.__BOOTPAY_NAMESPACE[r] = e, this;
1018
1018
  },
1019
1019
  off(r) {
1020
- return M(ke.__BOOTPAY_NAMESPACE) && M(ke.__BOOTPAY_NAMESPACE[r]) && this.removeEventListener(r.split(".")[0], ke.__BOOTPAY_NAMESPACE[r]), this;
1020
+ return q(ke.__BOOTPAY_NAMESPACE) && q(ke.__BOOTPAY_NAMESPACE[r]) && this.removeEventListener(r.split(".")[0], ke.__BOOTPAY_NAMESPACE[r]), this;
1021
1021
  }
1022
1022
  };
1023
1023
  class ut extends qe {
@@ -1027,9 +1027,9 @@ class ut extends qe {
1027
1027
  bind(e, t) {
1028
1028
  this.$messageEventName && window.resetBootpayEventListener(this.$messageEventName, (s) => {
1029
1029
  const i = this.parseEvent(s.data);
1030
- if (F.debug("event received", JSON.stringify(i)), M(i) && M(i.event)) {
1030
+ if (F.debug("event received", JSON.stringify(i)), q(i) && q(i.event)) {
1031
1031
  const n = this.hookFunction(i.hook);
1032
- if (M(n) && M(n[i.event]))
1032
+ if (q(n) && q(n[i.event]))
1033
1033
  return n[i.event](i.data, this);
1034
1034
  F.debug("event", `${this.$messageEventName}: ${i.event} is not defined`);
1035
1035
  }
@@ -1039,10 +1039,10 @@ class ut extends qe {
1039
1039
  return this.$eventHooks[e];
1040
1040
  }
1041
1041
  reject(e) {
1042
- M(this.$reject) && this.$reject(e);
1042
+ q(this.$reject) && this.$reject(e);
1043
1043
  }
1044
1044
  resolve(e) {
1045
- M(this.$resolve) && this.$resolve(e);
1045
+ q(this.$resolve) && this.$resolve(e);
1046
1046
  }
1047
1047
  /**
1048
1048
  * 함수를 class instnace variables에 넣는다
@@ -1445,7 +1445,7 @@ var We = Ne, ss = {
1445
1445
  forcedJSONParsing: !0,
1446
1446
  clarifyTimeoutError: !1
1447
1447
  }, ve = Q;
1448
- function Pi(r, e) {
1448
+ function Bi(r, e) {
1449
1449
  e = e || new FormData();
1450
1450
  var t = [];
1451
1451
  function s(n) {
@@ -1476,8 +1476,8 @@ function Pi(r, e) {
1476
1476
  }
1477
1477
  return i(r), e;
1478
1478
  }
1479
- var is = Pi, wt, Xr;
1480
- function Bi() {
1479
+ var is = Bi, wt, Xr;
1480
+ function Pi() {
1481
1481
  if (Xr) return wt;
1482
1482
  Xr = 1;
1483
1483
  var r = We;
@@ -1619,19 +1619,19 @@ function ft() {
1619
1619
  __CANCEL__: !0
1620
1620
  }), St = t, St;
1621
1621
  }
1622
- var Pt, Qr;
1622
+ var Bt, Qr;
1623
1623
  function Di() {
1624
- return Qr || (Qr = 1, Pt = function(e) {
1624
+ return Qr || (Qr = 1, Bt = function(e) {
1625
1625
  var t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
1626
1626
  return t && t[1] || "";
1627
- }), Pt;
1627
+ }), Bt;
1628
1628
  }
1629
- var Bt, e0;
1629
+ var Pt, e0;
1630
1630
  function t0() {
1631
- if (e0) return Bt;
1631
+ if (e0) return Pt;
1632
1632
  e0 = 1;
1633
- var r = Q, e = Bi(), t = Ii(), s = Q0, i = ns, n = Oi(), x = Ui(), d = ss, p = We, a = ft(), c = Di();
1634
- return Bt = function(o) {
1633
+ var r = Q, e = Pi(), t = Ii(), s = Q0, i = ns, n = Oi(), x = Ui(), d = ss, p = We, a = ft(), c = Di();
1634
+ return Pt = function(o) {
1635
1635
  return new Promise(function(f, v) {
1636
1636
  var g = o.data, $ = o.headers, l = o.responseType, h;
1637
1637
  function m() {
@@ -1647,11 +1647,11 @@ function t0() {
1647
1647
  b.open(o.method.toUpperCase(), s(S, o.params, o.paramsSerializer), !0), b.timeout = o.timeout;
1648
1648
  function R() {
1649
1649
  if (b) {
1650
- var P = "getAllResponseHeaders" in b ? n(b.getAllResponseHeaders()) : null, I = !l || l === "text" || l === "json" ? b.responseText : b.response, O = {
1650
+ var B = "getAllResponseHeaders" in b ? n(b.getAllResponseHeaders()) : null, I = !l || l === "text" || l === "json" ? b.responseText : b.response, O = {
1651
1651
  data: I,
1652
1652
  status: b.status,
1653
1653
  statusText: b.statusText,
1654
- headers: P,
1654
+ headers: B,
1655
1655
  config: o,
1656
1656
  request: b
1657
1657
  };
@@ -1682,8 +1682,8 @@ function t0() {
1682
1682
  }
1683
1683
  "setRequestHeader" in b && r.forEach($, function(I, O) {
1684
1684
  typeof g > "u" && O.toLowerCase() === "content-type" ? delete $[O] : b.setRequestHeader(O, I);
1685
- }), r.isUndefined(o.withCredentials) || (b.withCredentials = !!o.withCredentials), l && l !== "json" && (b.responseType = o.responseType), typeof o.onDownloadProgress == "function" && b.addEventListener("progress", o.onDownloadProgress), typeof o.onUploadProgress == "function" && b.upload && b.upload.addEventListener("progress", o.onUploadProgress), (o.cancelToken || o.signal) && (h = function(P) {
1686
- b && (v(!P || P && P.type ? new a() : P), b.abort(), b = null);
1685
+ }), r.isUndefined(o.withCredentials) || (b.withCredentials = !!o.withCredentials), l && l !== "json" && (b.responseType = o.responseType), typeof o.onDownloadProgress == "function" && b.addEventListener("progress", o.onDownloadProgress), typeof o.onUploadProgress == "function" && b.upload && b.upload.addEventListener("progress", o.onUploadProgress), (o.cancelToken || o.signal) && (h = function(B) {
1686
+ b && (v(!B || B && B.type ? new a() : B), b.abort(), b = null);
1687
1687
  }, o.cancelToken && o.cancelToken.subscribe(h), o.signal && (o.signal.aborted ? h() : o.signal.addEventListener("abort", h))), g || (g = null);
1688
1688
  var w = c(S);
1689
1689
  if (w && ["http", "https", "file"].indexOf(w) === -1) {
@@ -1692,7 +1692,7 @@ function t0() {
1692
1692
  }
1693
1693
  b.send(g);
1694
1694
  });
1695
- }, Bt;
1695
+ }, Pt;
1696
1696
  }
1697
1697
  var It, r0;
1698
1698
  function Fi() {
@@ -1774,7 +1774,7 @@ Z.forEach(["delete", "get", "head"], function(e) {
1774
1774
  Z.forEach(["post", "put", "patch"], function(e) {
1775
1775
  ht.headers[e] = Z.merge(Li);
1776
1776
  });
1777
- var Pr = ht, Wi = Q, zi = Pr, ji = function(e, t, s) {
1777
+ var Br = ht, Wi = Q, zi = Br, ji = function(e, t, s) {
1778
1778
  var i = this || zi;
1779
1779
  return Wi.forEach(s, function(x) {
1780
1780
  e = x.call(i, e, t);
@@ -1785,7 +1785,7 @@ function os() {
1785
1785
  return !!(e && e.__CANCEL__);
1786
1786
  }), Ct;
1787
1787
  }
1788
- var a0 = Q, Tt = ji, Ki = os(), Gi = Pr, Xi = ft();
1788
+ var a0 = Q, Tt = ji, Ki = os(), Gi = Br, Xi = ft();
1789
1789
  function At(r) {
1790
1790
  if (r.cancelToken && r.cancelToken.throwIfRequested(), r.signal && r.signal.aborted)
1791
1791
  throw new Xi();
@@ -1889,14 +1889,14 @@ function cs() {
1889
1889
  version: "0.27.2"
1890
1890
  }), Rt;
1891
1891
  }
1892
- var Yi = cs().version, we = We, Br = {};
1892
+ var Yi = cs().version, we = We, Pr = {};
1893
1893
  ["object", "boolean", "number", "function", "string", "symbol"].forEach(function(r, e) {
1894
- Br[r] = function(s) {
1894
+ Pr[r] = function(s) {
1895
1895
  return typeof s === r || "a" + (e < 1 ? "n " : " ") + r;
1896
1896
  };
1897
1897
  });
1898
1898
  var d0 = {};
1899
- Br.transitional = function(e, t, s) {
1899
+ Pr.transitional = function(e, t, s) {
1900
1900
  function i(n, x) {
1901
1901
  return "[Axios v" + Yi + "] Transitional option '" + n + "'" + x + (s ? ". " + s : "");
1902
1902
  }
@@ -1931,7 +1931,7 @@ function Ji(r, e, t) {
1931
1931
  }
1932
1932
  var Zi = {
1933
1933
  assertOptions: Ji,
1934
- validators: Br
1934
+ validators: Pr
1935
1935
  }, ds = Q, Qi = Q0, l0 = Ei, u0 = Vi, xt = as, en = ns, ls = Zi, He = ls.validators;
1936
1936
  function Le(r) {
1937
1937
  this.defaults = r, this.interceptors = {
@@ -2081,7 +2081,7 @@ function nn() {
2081
2081
  return r.isObject(t) && t.isAxiosError === !0;
2082
2082
  }, Dt;
2083
2083
  }
2084
- var x0 = Q, on = Y0, dt = tn, an = as, cn = Pr;
2084
+ var x0 = Q, on = Y0, dt = tn, an = as, cn = Br;
2085
2085
  function us(r) {
2086
2086
  var e = new dt(r), t = on(dt.prototype.request, e);
2087
2087
  return x0.extend(t, dt.prototype, e), x0.extend(t, e), t.create = function(i) {
@@ -2132,8 +2132,8 @@ function Ae() {
2132
2132
  var l = g + $, h = v[l];
2133
2133
  v[l] = (h << 8 | h >>> 24) & 16711935 | (h << 24 | h >>> 8) & 4278255360;
2134
2134
  }
2135
- var m = this._hash.words, b = v[g + 0], E = v[g + 1], k = v[g + 2], S = v[g + 3], R = v[g + 4], _ = v[g + 5], w = v[g + 6], P = v[g + 7], I = v[g + 8], O = v[g + 9], U = v[g + 10], H = v[g + 11], Y = v[g + 12], j = v[g + 13], X = v[g + 14], K = v[g + 15], B = m[0], T = m[1], A = m[2], C = m[3];
2136
- B = y(B, T, A, C, b, 7, a[0]), C = y(C, B, T, A, E, 12, a[1]), A = y(A, C, B, T, k, 17, a[2]), T = y(T, A, C, B, S, 22, a[3]), B = y(B, T, A, C, R, 7, a[4]), C = y(C, B, T, A, _, 12, a[5]), A = y(A, C, B, T, w, 17, a[6]), T = y(T, A, C, B, P, 22, a[7]), B = y(B, T, A, C, I, 7, a[8]), C = y(C, B, T, A, O, 12, a[9]), A = y(A, C, B, T, U, 17, a[10]), T = y(T, A, C, B, H, 22, a[11]), B = y(B, T, A, C, Y, 7, a[12]), C = y(C, B, T, A, j, 12, a[13]), A = y(A, C, B, T, X, 17, a[14]), T = y(T, A, C, B, K, 22, a[15]), B = o(B, T, A, C, E, 5, a[16]), C = o(C, B, T, A, w, 9, a[17]), A = o(A, C, B, T, H, 14, a[18]), T = o(T, A, C, B, b, 20, a[19]), B = o(B, T, A, C, _, 5, a[20]), C = o(C, B, T, A, U, 9, a[21]), A = o(A, C, B, T, K, 14, a[22]), T = o(T, A, C, B, R, 20, a[23]), B = o(B, T, A, C, O, 5, a[24]), C = o(C, B, T, A, X, 9, a[25]), A = o(A, C, B, T, S, 14, a[26]), T = o(T, A, C, B, I, 20, a[27]), B = o(B, T, A, C, j, 5, a[28]), C = o(C, B, T, A, k, 9, a[29]), A = o(A, C, B, T, P, 14, a[30]), T = o(T, A, C, B, Y, 20, a[31]), B = u(B, T, A, C, _, 4, a[32]), C = u(C, B, T, A, I, 11, a[33]), A = u(A, C, B, T, H, 16, a[34]), T = u(T, A, C, B, X, 23, a[35]), B = u(B, T, A, C, E, 4, a[36]), C = u(C, B, T, A, R, 11, a[37]), A = u(A, C, B, T, P, 16, a[38]), T = u(T, A, C, B, U, 23, a[39]), B = u(B, T, A, C, j, 4, a[40]), C = u(C, B, T, A, b, 11, a[41]), A = u(A, C, B, T, S, 16, a[42]), T = u(T, A, C, B, w, 23, a[43]), B = u(B, T, A, C, O, 4, a[44]), C = u(C, B, T, A, Y, 11, a[45]), A = u(A, C, B, T, K, 16, a[46]), T = u(T, A, C, B, k, 23, a[47]), B = f(B, T, A, C, b, 6, a[48]), C = f(C, B, T, A, P, 10, a[49]), A = f(A, C, B, T, X, 15, a[50]), T = f(T, A, C, B, _, 21, a[51]), B = f(B, T, A, C, Y, 6, a[52]), C = f(C, B, T, A, S, 10, a[53]), A = f(A, C, B, T, U, 15, a[54]), T = f(T, A, C, B, E, 21, a[55]), B = f(B, T, A, C, I, 6, a[56]), C = f(C, B, T, A, K, 10, a[57]), A = f(A, C, B, T, w, 15, a[58]), T = f(T, A, C, B, j, 21, a[59]), B = f(B, T, A, C, R, 6, a[60]), C = f(C, B, T, A, H, 10, a[61]), A = f(A, C, B, T, k, 15, a[62]), T = f(T, A, C, B, O, 21, a[63]), m[0] = m[0] + B | 0, m[1] = m[1] + T | 0, m[2] = m[2] + A | 0, m[3] = m[3] + C | 0;
2135
+ var m = this._hash.words, b = v[g + 0], E = v[g + 1], k = v[g + 2], S = v[g + 3], R = v[g + 4], _ = v[g + 5], w = v[g + 6], B = v[g + 7], I = v[g + 8], O = v[g + 9], U = v[g + 10], H = v[g + 11], Y = v[g + 12], j = v[g + 13], X = v[g + 14], K = v[g + 15], P = m[0], T = m[1], A = m[2], C = m[3];
2136
+ P = y(P, T, A, C, b, 7, a[0]), C = y(C, P, T, A, E, 12, a[1]), A = y(A, C, P, T, k, 17, a[2]), T = y(T, A, C, P, S, 22, a[3]), P = y(P, T, A, C, R, 7, a[4]), C = y(C, P, T, A, _, 12, a[5]), A = y(A, C, P, T, w, 17, a[6]), T = y(T, A, C, P, B, 22, a[7]), P = y(P, T, A, C, I, 7, a[8]), C = y(C, P, T, A, O, 12, a[9]), A = y(A, C, P, T, U, 17, a[10]), T = y(T, A, C, P, H, 22, a[11]), P = y(P, T, A, C, Y, 7, a[12]), C = y(C, P, T, A, j, 12, a[13]), A = y(A, C, P, T, X, 17, a[14]), T = y(T, A, C, P, K, 22, a[15]), P = o(P, T, A, C, E, 5, a[16]), C = o(C, P, T, A, w, 9, a[17]), A = o(A, C, P, T, H, 14, a[18]), T = o(T, A, C, P, b, 20, a[19]), P = o(P, T, A, C, _, 5, a[20]), C = o(C, P, T, A, U, 9, a[21]), A = o(A, C, P, T, K, 14, a[22]), T = o(T, A, C, P, R, 20, a[23]), P = o(P, T, A, C, O, 5, a[24]), C = o(C, P, T, A, X, 9, a[25]), A = o(A, C, P, T, S, 14, a[26]), T = o(T, A, C, P, I, 20, a[27]), P = o(P, T, A, C, j, 5, a[28]), C = o(C, P, T, A, k, 9, a[29]), A = o(A, C, P, T, B, 14, a[30]), T = o(T, A, C, P, Y, 20, a[31]), P = u(P, T, A, C, _, 4, a[32]), C = u(C, P, T, A, I, 11, a[33]), A = u(A, C, P, T, H, 16, a[34]), T = u(T, A, C, P, X, 23, a[35]), P = u(P, T, A, C, E, 4, a[36]), C = u(C, P, T, A, R, 11, a[37]), A = u(A, C, P, T, B, 16, a[38]), T = u(T, A, C, P, U, 23, a[39]), P = u(P, T, A, C, j, 4, a[40]), C = u(C, P, T, A, b, 11, a[41]), A = u(A, C, P, T, S, 16, a[42]), T = u(T, A, C, P, w, 23, a[43]), P = u(P, T, A, C, O, 4, a[44]), C = u(C, P, T, A, Y, 11, a[45]), A = u(A, C, P, T, K, 16, a[46]), T = u(T, A, C, P, k, 23, a[47]), P = f(P, T, A, C, b, 6, a[48]), C = f(C, P, T, A, B, 10, a[49]), A = f(A, C, P, T, X, 15, a[50]), T = f(T, A, C, P, _, 21, a[51]), P = f(P, T, A, C, Y, 6, a[52]), C = f(C, P, T, A, S, 10, a[53]), A = f(A, C, P, T, U, 15, a[54]), T = f(T, A, C, P, E, 21, a[55]), P = f(P, T, A, C, I, 6, a[56]), C = f(C, P, T, A, K, 10, a[57]), A = f(A, C, P, T, w, 15, a[58]), T = f(T, A, C, P, j, 21, a[59]), P = f(P, T, A, C, R, 6, a[60]), C = f(C, P, T, A, H, 10, a[61]), A = f(A, C, P, T, k, 15, a[62]), T = f(T, A, C, P, O, 21, a[63]), m[0] = m[0] + P | 0, m[1] = m[1] + T | 0, m[2] = m[2] + A | 0, m[3] = m[3] + C | 0;
2137
2137
  },
2138
2138
  _doFinalize: function() {
2139
2139
  var v = this._data, g = v.words, $ = this._nDataBytes * 8, l = v.sigBytes * 8;
@@ -2418,8 +2418,8 @@ function ee() {
2418
2418
  *
2419
2419
  * var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
2420
2420
  */
2421
- init: function(_, w, P) {
2422
- this.cfg = this.cfg.extend(P), this._xformMode = _, this._key = w, this.reset();
2421
+ init: function(_, w, B) {
2422
+ this.cfg = this.cfg.extend(B), this._xformMode = _, this._key = w, this.reset();
2423
2423
  },
2424
2424
  /**
2425
2425
  * Resets this cipher to its initial state.
@@ -2488,11 +2488,11 @@ function ee() {
2488
2488
  }
2489
2489
  return function(w) {
2490
2490
  return {
2491
- encrypt: function(P, I, O) {
2492
- return _(I).encrypt(w, P, I, O);
2491
+ encrypt: function(B, I, O) {
2492
+ return _(I).encrypt(w, B, I, O);
2493
2493
  },
2494
- decrypt: function(P, I, O) {
2495
- return _(I).decrypt(w, P, I, O);
2494
+ decrypt: function(B, I, O) {
2495
+ return _(I).decrypt(w, B, I, O);
2496
2496
  }
2497
2497
  };
2498
2498
  };
@@ -2562,9 +2562,9 @@ function ee() {
2562
2562
  *
2563
2563
  * mode.processBlock(data.words, offset);
2564
2564
  */
2565
- processBlock: function(P, I) {
2565
+ processBlock: function(B, I) {
2566
2566
  var O = this._cipher, U = O.blockSize;
2567
- w.call(this, P, I, U), O.encryptBlock(P, I), this._prevBlock = P.slice(I, I + U);
2567
+ w.call(this, B, I, U), O.encryptBlock(B, I), this._prevBlock = B.slice(I, I + U);
2568
2568
  }
2569
2569
  }), _.Decryptor = _.extend({
2570
2570
  /**
@@ -2577,16 +2577,16 @@ function ee() {
2577
2577
  *
2578
2578
  * mode.processBlock(data.words, offset);
2579
2579
  */
2580
- processBlock: function(P, I) {
2581
- var O = this._cipher, U = O.blockSize, H = P.slice(I, I + U);
2582
- O.decryptBlock(P, I), w.call(this, P, I, U), this._prevBlock = H;
2580
+ processBlock: function(B, I) {
2581
+ var O = this._cipher, U = O.blockSize, H = B.slice(I, I + U);
2582
+ O.decryptBlock(B, I), w.call(this, B, I, U), this._prevBlock = H;
2583
2583
  }
2584
2584
  });
2585
- function w(P, I, O) {
2585
+ function w(B, I, O) {
2586
2586
  var U, H = this._iv;
2587
2587
  H ? (U = H, this._iv = s) : U = this._prevBlock;
2588
2588
  for (var Y = 0; Y < O; Y++)
2589
- P[I + Y] ^= U[Y];
2589
+ B[I + Y] ^= U[Y];
2590
2590
  }
2591
2591
  return _;
2592
2592
  }(), $ = i.pad = {}, l = $.Pkcs7 = {
@@ -2603,7 +2603,7 @@ function ee() {
2603
2603
  * CryptoJS.pad.Pkcs7.pad(wordArray, 4);
2604
2604
  */
2605
2605
  pad: function(_, w) {
2606
- for (var P = w * 4, I = P - _.sigBytes % P, O = I << 24 | I << 16 | I << 8 | I, U = [], H = 0; H < I; H += 4)
2606
+ for (var B = w * 4, I = B - _.sigBytes % B, O = I << 24 | I << 16 | I << 8 | I, U = [], H = 0; H < I; H += 4)
2607
2607
  U.push(O);
2608
2608
  var Y = d.create(U, I);
2609
2609
  _.concat(Y);
@@ -2638,8 +2638,8 @@ function ee() {
2638
2638
  reset: function() {
2639
2639
  var _;
2640
2640
  u.reset.call(this);
2641
- var w = this.cfg, P = w.iv, I = w.mode;
2642
- this._xformMode == this._ENC_XFORM_MODE ? _ = I.createEncryptor : (_ = I.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == _ ? this._mode.init(this, P && P.words) : (this._mode = _.call(I, this, P && P.words), this._mode.__creator = _);
2641
+ var w = this.cfg, B = w.iv, I = w.mode;
2642
+ this._xformMode == this._ENC_XFORM_MODE ? _ = I.createEncryptor : (_ = I.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == _ ? this._mode.init(this, B && B.words) : (this._mode = _.call(I, this, B && B.words), this._mode.__creator = _);
2643
2643
  },
2644
2644
  _doProcessBlock: function(_, w) {
2645
2645
  this._mode.processBlock(_, w);
@@ -2706,8 +2706,8 @@ function ee() {
2706
2706
  * var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
2707
2707
  */
2708
2708
  stringify: function(_) {
2709
- var w, P = _.ciphertext, I = _.salt;
2710
- return I ? w = d.create([1398893684, 1701076831]).concat(I).concat(P) : w = P, w.toString(c);
2709
+ var w, B = _.ciphertext, I = _.salt;
2710
+ return I ? w = d.create([1398893684, 1701076831]).concat(I).concat(B) : w = B, w.toString(c);
2711
2711
  },
2712
2712
  /**
2713
2713
  * Converts an OpenSSL-compatible string to a cipher params object.
@@ -2723,8 +2723,8 @@ function ee() {
2723
2723
  * var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
2724
2724
  */
2725
2725
  parse: function(_) {
2726
- var w, P = c.parse(_), I = P.words;
2727
- return I[0] == 1398893684 && I[1] == 1701076831 && (w = d.create(I.slice(2, 4)), I.splice(0, 4), P.sigBytes -= 16), h.create({ ciphertext: P, salt: w });
2726
+ var w, B = c.parse(_), I = B.words;
2727
+ return I[0] == 1398893684 && I[1] == 1701076831 && (w = d.create(I.slice(2, 4)), I.splice(0, 4), B.sigBytes -= 16), h.create({ ciphertext: B, salt: w });
2728
2728
  }
2729
2729
  }, E = n.SerializableCipher = x.extend({
2730
2730
  /**
@@ -2753,12 +2753,12 @@ function ee() {
2753
2753
  * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
2754
2754
  * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
2755
2755
  */
2756
- encrypt: function(_, w, P, I) {
2756
+ encrypt: function(_, w, B, I) {
2757
2757
  I = this.cfg.extend(I);
2758
- var O = _.createEncryptor(P, I), U = O.finalize(w), H = O.cfg;
2758
+ var O = _.createEncryptor(B, I), U = O.finalize(w), H = O.cfg;
2759
2759
  return h.create({
2760
2760
  ciphertext: U,
2761
- key: P,
2761
+ key: B,
2762
2762
  iv: H.iv,
2763
2763
  algorithm: _,
2764
2764
  mode: H.mode,
@@ -2784,9 +2784,9 @@ function ee() {
2784
2784
  * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
2785
2785
  * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
2786
2786
  */
2787
- decrypt: function(_, w, P, I) {
2787
+ decrypt: function(_, w, B, I) {
2788
2788
  I = this.cfg.extend(I), w = this._parse(w, I.format);
2789
- var O = _.createDecryptor(P, I).finalize(w.ciphertext);
2789
+ var O = _.createDecryptor(B, I).finalize(w.ciphertext);
2790
2790
  return O;
2791
2791
  },
2792
2792
  /**
@@ -2825,9 +2825,9 @@ function ee() {
2825
2825
  * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
2826
2826
  * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
2827
2827
  */
2828
- execute: function(_, w, P, I) {
2828
+ execute: function(_, w, B, I) {
2829
2829
  I || (I = d.random(64 / 8));
2830
- var O = o.create({ keySize: w + P }).compute(_, I), U = d.create(O.words.slice(w), P * 4);
2830
+ var O = o.create({ keySize: w + B }).compute(_, I), U = d.create(O.words.slice(w), B * 4);
2831
2831
  return O.sigBytes = w * 4, h.create({ key: O, iv: U, salt: I });
2832
2832
  }
2833
2833
  }, R = n.PasswordBasedCipher = E.extend({
@@ -2856,9 +2856,9 @@ function ee() {
2856
2856
  * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
2857
2857
  * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
2858
2858
  */
2859
- encrypt: function(_, w, P, I) {
2859
+ encrypt: function(_, w, B, I) {
2860
2860
  I = this.cfg.extend(I);
2861
- var O = I.kdf.execute(P, _.keySize, _.ivSize);
2861
+ var O = I.kdf.execute(B, _.keySize, _.ivSize);
2862
2862
  I.iv = O.iv;
2863
2863
  var U = E.encrypt.call(this, _, w, O.key, I);
2864
2864
  return U.mixIn(O), U;
@@ -2880,9 +2880,9 @@ function ee() {
2880
2880
  * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
2881
2881
  * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
2882
2882
  */
2883
- decrypt: function(_, w, P, I) {
2883
+ decrypt: function(_, w, B, I) {
2884
2884
  I = this.cfg.extend(I), w = this._parse(w, I.format);
2885
- var O = I.kdf.execute(P, _.keySize, _.ivSize, w.salt);
2885
+ var O = I.kdf.execute(B, _.keySize, _.ivSize, w.salt);
2886
2886
  I.iv = O.iv;
2887
2887
  var U = E.decrypt.call(this, _, w, O.key, I);
2888
2888
  return U;
@@ -2918,13 +2918,13 @@ function ps() {
2918
2918
  if (!(this._nRounds && this._keyPriorReset === this._key)) {
2919
2919
  for (var m = this._keyPriorReset = this._key, b = m.words, E = m.sigBytes / 4, k = this._nRounds = E + 6, S = (k + 1) * 4, R = this._keySchedule = [], _ = 0; _ < S; _++)
2920
2920
  _ < E ? R[_] = b[_] : (h = R[_ - 1], _ % E ? E > 6 && _ % E == 4 && (h = d[h >>> 24] << 24 | d[h >>> 16 & 255] << 16 | d[h >>> 8 & 255] << 8 | d[h & 255]) : (h = h << 8 | h >>> 24, h = d[h >>> 24] << 24 | d[h >>> 16 & 255] << 16 | d[h >>> 8 & 255] << 8 | d[h & 255], h ^= $[_ / E | 0] << 24), R[_] = R[_ - E] ^ h);
2921
- for (var w = this._invKeySchedule = [], P = 0; P < S; P++) {
2922
- var _ = S - P;
2923
- if (P % 4)
2921
+ for (var w = this._invKeySchedule = [], B = 0; B < S; B++) {
2922
+ var _ = S - B;
2923
+ if (B % 4)
2924
2924
  var h = R[_];
2925
2925
  else
2926
2926
  var h = R[_ - 4];
2927
- P < 4 || _ <= 4 ? w[P] = h : w[P] = u[d[h >>> 24]] ^ f[d[h >>> 16 & 255]] ^ v[d[h >>> 8 & 255]] ^ g[d[h & 255]];
2927
+ B < 4 || _ <= 4 ? w[B] = h : w[B] = u[d[h >>> 24]] ^ f[d[h >>> 16 & 255]] ^ v[d[h >>> 8 & 255]] ^ g[d[h & 255]];
2928
2928
  }
2929
2929
  }
2930
2930
  },
@@ -2938,12 +2938,12 @@ function ps() {
2938
2938
  h[m + 1] = h[m + 3], h[m + 3] = b;
2939
2939
  },
2940
2940
  _doCryptBlock: function(h, m, b, E, k, S, R, _) {
2941
- for (var w = this._nRounds, P = h[m] ^ b[0], I = h[m + 1] ^ b[1], O = h[m + 2] ^ b[2], U = h[m + 3] ^ b[3], H = 4, Y = 1; Y < w; Y++) {
2942
- var j = E[P >>> 24] ^ k[I >>> 16 & 255] ^ S[O >>> 8 & 255] ^ R[U & 255] ^ b[H++], X = E[I >>> 24] ^ k[O >>> 16 & 255] ^ S[U >>> 8 & 255] ^ R[P & 255] ^ b[H++], K = E[O >>> 24] ^ k[U >>> 16 & 255] ^ S[P >>> 8 & 255] ^ R[I & 255] ^ b[H++], B = E[U >>> 24] ^ k[P >>> 16 & 255] ^ S[I >>> 8 & 255] ^ R[O & 255] ^ b[H++];
2943
- P = j, I = X, O = K, U = B;
2941
+ for (var w = this._nRounds, B = h[m] ^ b[0], I = h[m + 1] ^ b[1], O = h[m + 2] ^ b[2], U = h[m + 3] ^ b[3], H = 4, Y = 1; Y < w; Y++) {
2942
+ var j = E[B >>> 24] ^ k[I >>> 16 & 255] ^ S[O >>> 8 & 255] ^ R[U & 255] ^ b[H++], X = E[I >>> 24] ^ k[O >>> 16 & 255] ^ S[U >>> 8 & 255] ^ R[B & 255] ^ b[H++], K = E[O >>> 24] ^ k[U >>> 16 & 255] ^ S[B >>> 8 & 255] ^ R[I & 255] ^ b[H++], P = E[U >>> 24] ^ k[B >>> 16 & 255] ^ S[I >>> 8 & 255] ^ R[O & 255] ^ b[H++];
2943
+ B = j, I = X, O = K, U = P;
2944
2944
  }
2945
- var j = (_[P >>> 24] << 24 | _[I >>> 16 & 255] << 16 | _[O >>> 8 & 255] << 8 | _[U & 255]) ^ b[H++], X = (_[I >>> 24] << 24 | _[O >>> 16 & 255] << 16 | _[U >>> 8 & 255] << 8 | _[P & 255]) ^ b[H++], K = (_[O >>> 24] << 24 | _[U >>> 16 & 255] << 16 | _[P >>> 8 & 255] << 8 | _[I & 255]) ^ b[H++], B = (_[U >>> 24] << 24 | _[P >>> 16 & 255] << 16 | _[I >>> 8 & 255] << 8 | _[O & 255]) ^ b[H++];
2946
- h[m] = j, h[m + 1] = X, h[m + 2] = K, h[m + 3] = B;
2945
+ var j = (_[B >>> 24] << 24 | _[I >>> 16 & 255] << 16 | _[O >>> 8 & 255] << 8 | _[U & 255]) ^ b[H++], X = (_[I >>> 24] << 24 | _[O >>> 16 & 255] << 16 | _[U >>> 8 & 255] << 8 | _[B & 255]) ^ b[H++], K = (_[O >>> 24] << 24 | _[U >>> 16 & 255] << 16 | _[B >>> 8 & 255] << 8 | _[I & 255]) ^ b[H++], P = (_[U >>> 24] << 24 | _[B >>> 16 & 255] << 16 | _[I >>> 8 & 255] << 8 | _[O & 255]) ^ b[H++];
2946
+ h[m] = j, h[m + 1] = X, h[m + 2] = K, h[m + 3] = P;
2947
2947
  },
2948
2948
  keySize: 256 / 32
2949
2949
  });
@@ -2964,8 +2964,8 @@ class ye {
2964
2964
  tt(e, "object") && (e = JSON.stringify(e));
2965
2965
  let t = rt.encrypt(e, X0());
2966
2966
  return {
2967
- payload: t.ciphertext.toString(Pe),
2968
- token: `${t.key.toString(Pe)}##${t.iv.toString(Pe)}`
2967
+ payload: t.ciphertext.toString(Be),
2968
+ token: `${t.key.toString(Be)}##${t.iv.toString(Be)}`
2969
2969
  };
2970
2970
  }
2971
2971
  static toUnderscore(e) {
@@ -2978,7 +2978,7 @@ class ye {
2978
2978
  }
2979
2979
  static objectKeyToUnderscore(e) {
2980
2980
  let t;
2981
- return M(e) && (Array.isArray(e) ? (t = [], e.forEach((s) => {
2981
+ return q(e) && (Array.isArray(e) ? (t = [], e.forEach((s) => {
2982
2982
  let i = {};
2983
2983
  Object.keys(s).forEach((n) => {
2984
2984
  i[this.toUnderscore(n)] = s[n];
@@ -2989,7 +2989,7 @@ class ye {
2989
2989
  }
2990
2990
  static objectKeyToCamel(e) {
2991
2991
  let t;
2992
- return M(e) && (Array.isArray(e) ? (t = [], e.forEach((s) => {
2992
+ return q(e) && (Array.isArray(e) ? (t = [], e.forEach((s) => {
2993
2993
  let i = {};
2994
2994
  Object.keys(s).forEach((n) => {
2995
2995
  i[this.toCamelcase(n)] = s[n];
@@ -2999,8 +2999,8 @@ class ye {
2999
2999
  }))), t;
3000
3000
  }
3001
3001
  static axiosMultipayConfigure() {
3002
- Ze.defaults.headers.common["Content-Type"] = "application/json", Ze.defaults.headers.common.Accept = "application/json", Ze.interceptors.request.use((e) => (M(e.data), this.isHttpBodyUsedMethod(e.method) && (e.data = ye.encryptParams(ye.objectKeyToUnderscore(e.data))), e.headers !== void 0 && M(e.headers.progress) && delete e.headers.progress, e), (e) => Promise.reject(e)), Ze.interceptors.response.use((e) => e, function(e) {
3003
- if (M(e.response)) {
3002
+ Ze.defaults.headers.common["Content-Type"] = "application/json", Ze.defaults.headers.common.Accept = "application/json", Ze.interceptors.request.use((e) => (q(e.data), this.isHttpBodyUsedMethod(e.method) && (e.data = ye.encryptParams(ye.objectKeyToUnderscore(e.data))), e.headers !== void 0 && q(e.headers.progress) && delete e.headers.progress, e), (e) => Promise.reject(e)), Ze.interceptors.response.use((e) => e, function(e) {
3003
+ if (q(e.response)) {
3004
3004
  let t = e.response.data;
3005
3005
  return t.status = e.response.status, Promise.reject(t);
3006
3006
  } else
@@ -3053,7 +3053,7 @@ class hn extends ut {
3053
3053
  bind(e, t) {
3054
3054
  this.isDone = !1, this.setCallbackFunction(e, t), window.resetBootpayEventListener(this.$messageEventName, (s) => {
3055
3055
  const i = this.parseEvent(s.data);
3056
- if (F.debug("event received", JSON.stringify(i)), M(i))
3056
+ if (F.debug("event received", JSON.stringify(i)), q(i))
3057
3057
  switch (F.debug("event", i), i.event) {
3058
3058
  case "error":
3059
3059
  case "cancel":
@@ -3209,7 +3209,7 @@ class hn extends ut {
3209
3209
  const ne = new hn();
3210
3210
  class xn extends ye {
3211
3211
  constructor() {
3212
- super(), this.$session = Be, this.$applicationId = void 0, this.$tk = void 0, this.$platformType = 1, this.$receiptId = void 0;
3212
+ super(), this.$session = Pe, this.$applicationId = void 0, this.$tk = void 0, this.$platformType = 1, this.$receiptId = void 0;
3213
3213
  }
3214
3214
  /**
3215
3215
  * Token키를 설정
@@ -3229,8 +3229,8 @@ class xn extends ye {
3229
3229
  }
3230
3230
  send(e) {
3231
3231
  try {
3232
- if (M(this.$applicationId))
3233
- return e.application_id = this.$applicationId, e.status = M(e.status) ? e.status : 1, e.version = $e.version, e.tk = this.$tk, F.debug("send event", `${JSON.stringify(e)} 전송됨`), this.$http.post(
3232
+ if (q(this.$applicationId))
3233
+ return e.application_id = this.$applicationId, e.status = q(e.status) ? e.status : 1, e.version = $e.version, e.tk = this.$tk, F.debug("send event", `${JSON.stringify(e)} 전송됨`), this.$http.post(
3234
3234
  D.toAnalytics("event"),
3235
3235
  e
3236
3236
  );
@@ -3250,7 +3250,7 @@ class xn extends ye {
3250
3250
  * @date: 2022-05-13
3251
3251
  */
3252
3252
  sendCloseEvent() {
3253
- if (M(this.$receiptId))
3253
+ if (q(this.$receiptId))
3254
3254
  try {
3255
3255
  return this.$http.put(D.toApi(`close/${this.$receiptId}`));
3256
3256
  } catch (e) {
@@ -3365,7 +3365,7 @@ const et = new xn(), Tr = {
3365
3365
  },
3366
3366
  getLocaleMessage: (r, e) => {
3367
3367
  const s = r.split(".").reduce((i, n) => i[n], Tr);
3368
- return M(s) && M(s[e]) ? s[e] : s.ko;
3368
+ return q(s) && q(s[e]) ? s[e] : s.ko;
3369
3369
  }
3370
3370
  };
3371
3371
  class vn extends Ee {
@@ -3691,7 +3691,7 @@ class vn extends Ee {
3691
3691
  }
3692
3692
  const W = new vn(), Se = class Se extends qe {
3693
3693
  constructor() {
3694
- super(), this.$session = Be, this.$logger = F, this.$event = et, this.platformType = te.PLATFORM.JS, this.$transactionKey = "", this.extra = {}, this.browserBootpayFilter = {
3694
+ super(), this.$session = Pe, this.$logger = F, this.$event = et, this.platformType = te.PLATFORM.JS, this.$transactionKey = "", this.extra = {}, this.browserBootpayFilter = {
3695
3695
  instagram: /Instagram/i,
3696
3696
  kakaotalk: /KAKAOTALK/i,
3697
3697
  facebook: /FBAV/i,
@@ -3994,7 +3994,7 @@ const W = new vn(), Se = class Se extends qe {
3994
3994
  * @param price: number
3995
3995
  */
3996
3996
  static invalidRequestItemsData(e, t) {
3997
- if (e !== void 0 && M(e)) {
3997
+ if (e !== void 0 && q(e)) {
3998
3998
  let s = 0;
3999
3999
  if (e.forEach((i, n) => {
4000
4000
  if (re(i.id))
@@ -4041,7 +4041,7 @@ let st = Se;
4041
4041
  const yn = new st();
4042
4042
  class mn extends ye {
4043
4043
  constructor() {
4044
- super(), this.$session = Be;
4044
+ super(), this.$session = Pe;
4045
4045
  }
4046
4046
  /**
4047
4047
  * 인앱을 위한 통계 정보 추가
@@ -4060,7 +4060,7 @@ class mn extends ye {
4060
4060
  const t = document.URL;
4061
4061
  if (t !== void 0 && t.search(/bootapi.co.kr/) === -1) {
4062
4062
  const s = this.$session.getUser();
4063
- e.application_id = D.currentApplicationId(e.application_id), e.sk = this.$session.currentSessionKey(), e.uuid = this.$session.currentUserUUID(), e.time = this.$session.currentTime(), e.url = t, e.referer = document.referrer !== void 0 && M(document.referrer) && document.referrer.search(new RegExp(window.location.hostname)) == -1 ? document.referrer : "", e.user_id = s === void 0 || re(s) ? void 0 : s.id, e.items = this.generateItemKeyToVersion1(e.items);
4063
+ e.application_id = D.currentApplicationId(e.application_id), e.sk = this.$session.currentSessionKey(), e.uuid = this.$session.currentUserUUID(), e.time = this.$session.currentTime(), e.url = t, e.referer = document.referrer !== void 0 && q(document.referrer) && document.referrer.search(new RegExp(window.location.hostname)) == -1 ? document.referrer : "", e.user_id = s === void 0 || re(s) ? void 0 : s.id, e.items = this.generateItemKeyToVersion1(e.items);
4064
4064
  try {
4065
4065
  const i = await this.$http.post(
4066
4066
  D.toAnalytics(`call?ver=${$e.version}`),
@@ -4278,7 +4278,7 @@ const Ie = {
4278
4278
  e = r.eventMessage;
4279
4279
  break;
4280
4280
  default:
4281
- if (M(r.event))
4281
+ if (q(r.event))
4282
4282
  e = r;
4283
4283
  else
4284
4284
  throw r;
@@ -4311,7 +4311,7 @@ const Ie = {
4311
4311
  * @returns string
4312
4312
  */
4313
4313
  setUUID(r) {
4314
- return Be.setUUID(r);
4314
+ return Pe.setUUID(r);
4315
4315
  },
4316
4316
  /**
4317
4317
  * 페이지 통계 데이터를 전송
@@ -4354,7 +4354,7 @@ const Ie = {
4354
4354
  });
4355
4355
  },
4356
4356
  getCurrentUUID() {
4357
- return Be.currentUserUUID();
4357
+ return Pe.currentUserUUID();
4358
4358
  },
4359
4359
  /**
4360
4360
  * 결제창을 닫는다
@@ -4376,7 +4376,7 @@ class bn extends ut {
4376
4376
  bind(e, t) {
4377
4377
  this.setCallbackFunction(e, t), window.resetBootpayEventListener(this.$messageEventName, (s) => {
4378
4378
  const i = this.parseEvent(s.data);
4379
- if (M(i))
4379
+ if (q(i))
4380
4380
  switch (F.debug("event", i), i.event) {
4381
4381
  case "error":
4382
4382
  case "cancel":
@@ -4404,7 +4404,7 @@ class bn extends ut {
4404
4404
  }
4405
4405
  class _n extends Ee {
4406
4406
  constructor() {
4407
- super(), this.$windowId = "bootpay-user-token-background-id", this.$userWindowId = "bootpay-user-token-window-id", this.$iFrameId = "bootpay-user-token-iframe-id", this.$bootpaySdkFormId = "bootpay-user-token-sdk-form", this.$template = this.template(), this.$event = new bn(), this.$session = Be, this.deviceType = te.PLATFORM.JS;
4407
+ super(), this.$windowId = "bootpay-user-token-background-id", this.$userWindowId = "bootpay-user-token-window-id", this.$iFrameId = "bootpay-user-token-iframe-id", this.$bootpaySdkFormId = "bootpay-user-token-sdk-form", this.$template = this.template(), this.$event = new bn(), this.$session = Pe, this.deviceType = te.PLATFORM.JS;
4408
4408
  }
4409
4409
  /**
4410
4410
  * DeviceType을 지정한다
@@ -4756,7 +4756,7 @@ const fs = new _n(), wn = {
4756
4756
  e = r.eventMessage;
4757
4757
  break;
4758
4758
  default:
4759
- if (M(r.event))
4759
+ if (q(r.event))
4760
4760
  e = r;
4761
4761
  else
4762
4762
  throw r;
@@ -4781,7 +4781,7 @@ const fs = new _n(), wn = {
4781
4781
  * @returns string
4782
4782
  */
4783
4783
  setUUID(r) {
4784
- return Be.setUUID(r);
4784
+ return Pe.setUUID(r);
4785
4785
  },
4786
4786
  /**
4787
4787
  * 결제창을 닫는다
@@ -5267,8 +5267,8 @@ function vs() {
5267
5267
  if (S < 16)
5268
5268
  y[S] = u[f + S] | 0;
5269
5269
  else {
5270
- var R = y[S - 15], _ = (R << 25 | R >>> 7) ^ (R << 14 | R >>> 18) ^ R >>> 3, w = y[S - 2], P = (w << 15 | w >>> 17) ^ (w << 13 | w >>> 19) ^ w >>> 10;
5271
- y[S] = _ + y[S - 7] + P + y[S - 16];
5270
+ var R = y[S - 15], _ = (R << 25 | R >>> 7) ^ (R << 14 | R >>> 18) ^ R >>> 3, w = y[S - 2], B = (w << 15 | w >>> 17) ^ (w << 13 | w >>> 19) ^ w >>> 10;
5271
+ y[S] = _ + y[S - 7] + B + y[S - 16];
5272
5272
  }
5273
5273
  var I = m & b ^ ~m & E, O = g & $ ^ g & l ^ $ & l, U = (g << 30 | g >>> 2) ^ (g << 19 | g >>> 13) ^ (g << 10 | g >>> 22), H = (m << 26 | m >>> 6) ^ (m << 21 | m >>> 11) ^ (m << 7 | m >>> 25), Y = k + H + I + c[S] + y[S], j = U + O;
5274
5274
  k = E, E = b, b = m, m = h + Y | 0, h = l, l = $, $ = g, g = Y + j | 0;
@@ -5289,9 +5289,9 @@ function vs() {
5289
5289
  });
5290
5290
  }(Gt)), Gt.exports;
5291
5291
  }
5292
- var Xt = { exports: {} }, P0;
5293
- function Pn() {
5294
- return P0 || (P0 = 1, function(r, e) {
5292
+ var Xt = { exports: {} }, B0;
5293
+ function Bn() {
5294
+ return B0 || (B0 = 1, function(r, e) {
5295
5295
  (function(t, s, i) {
5296
5296
  r.exports = s(z(), vs());
5297
5297
  })(N, function(t) {
@@ -5319,9 +5319,9 @@ function Pn() {
5319
5319
  });
5320
5320
  }(Xt)), Xt.exports;
5321
5321
  }
5322
- var Vt = { exports: {} }, B0;
5322
+ var Vt = { exports: {} }, P0;
5323
5323
  function ys() {
5324
- return B0 || (B0 = 1, function(r, e) {
5324
+ return P0 || (P0 = 1, function(r, e) {
5325
5325
  (function(t, s, i) {
5326
5326
  r.exports = s(z(), vt());
5327
5327
  })(N, function(t) {
@@ -5430,7 +5430,7 @@ function ys() {
5430
5430
  ]);
5431
5431
  },
5432
5432
  _doProcessBlock: function(f, v) {
5433
- for (var g = this._hash.words, $ = g[0], l = g[1], h = g[2], m = g[3], b = g[4], E = g[5], k = g[6], S = g[7], R = $.high, _ = $.low, w = l.high, P = l.low, I = h.high, O = h.low, U = m.high, H = m.low, Y = b.high, j = b.low, X = E.high, K = E.low, B = k.high, T = k.low, A = S.high, C = S.low, J = R, V = _, ie = w, L = P, ze = I, Oe = O, yt = U, je = H, he = Y, ce = j, it = X, Ke = K, nt = B, Ge = T, mt = A, Xe = C, xe = 0; xe < 80; xe++) {
5433
+ for (var g = this._hash.words, $ = g[0], l = g[1], h = g[2], m = g[3], b = g[4], E = g[5], k = g[6], S = g[7], R = $.high, _ = $.low, w = l.high, B = l.low, I = h.high, O = h.low, U = m.high, H = m.low, Y = b.high, j = b.low, X = E.high, K = E.low, P = k.high, T = k.low, A = S.high, C = S.low, J = R, V = _, ie = w, L = B, ze = I, Oe = O, yt = U, je = H, he = Y, ce = j, it = X, Ke = K, nt = P, Ge = T, mt = A, Xe = C, xe = 0; xe < 80; xe++) {
5434
5434
  var ue, ge, ot = o[xe];
5435
5435
  if (xe < 16)
5436
5436
  ge = ot.high = f[v + xe * 2] | 0, ue = ot.low = f[v + xe * 2 + 1] | 0;
@@ -5438,10 +5438,10 @@ function ys() {
5438
5438
  var Ar = o[xe - 15], Ue = Ar.high, Ve = Ar.low, gs = (Ue >>> 1 | Ve << 31) ^ (Ue >>> 8 | Ve << 24) ^ Ue >>> 7, Rr = (Ve >>> 1 | Ue << 31) ^ (Ve >>> 8 | Ue << 24) ^ (Ve >>> 7 | Ue << 25), Or = o[xe - 2], De = Or.high, Ye = Or.low, bs = (De >>> 19 | Ye << 13) ^ (De << 3 | Ye >>> 29) ^ De >>> 6, Ur = (Ye >>> 19 | De << 13) ^ (Ye << 3 | De >>> 29) ^ (Ye >>> 6 | De << 26), Dr = o[xe - 7], _s = Dr.high, ws = Dr.low, Fr = o[xe - 16], $s = Fr.high, Hr = Fr.low;
5439
5439
  ue = Rr + ws, ge = gs + _s + (ue >>> 0 < Rr >>> 0 ? 1 : 0), ue = ue + Ur, ge = ge + bs + (ue >>> 0 < Ur >>> 0 ? 1 : 0), ue = ue + Hr, ge = ge + $s + (ue >>> 0 < Hr >>> 0 ? 1 : 0), ot.high = ge, ot.low = ue;
5440
5440
  }
5441
- var Es = he & it ^ ~he & nt, Nr = ce & Ke ^ ~ce & Ge, ks = J & ie ^ J & ze ^ ie & ze, Ss = V & L ^ V & Oe ^ L & Oe, Ps = (J >>> 28 | V << 4) ^ (J << 30 | V >>> 2) ^ (J << 25 | V >>> 7), Lr = (V >>> 28 | J << 4) ^ (V << 30 | J >>> 2) ^ (V << 25 | J >>> 7), Bs = (he >>> 14 | ce << 18) ^ (he >>> 18 | ce << 14) ^ (he << 23 | ce >>> 9), Is = (ce >>> 14 | he << 18) ^ (ce >>> 18 | he << 14) ^ (ce << 23 | he >>> 9), Mr = y[xe], Cs = Mr.high, qr = Mr.low, de = Xe + Is, be = mt + Bs + (de >>> 0 < Xe >>> 0 ? 1 : 0), de = de + Nr, be = be + Es + (de >>> 0 < Nr >>> 0 ? 1 : 0), de = de + qr, be = be + Cs + (de >>> 0 < qr >>> 0 ? 1 : 0), de = de + ue, be = be + ge + (de >>> 0 < ue >>> 0 ? 1 : 0), Wr = Lr + Ss, Ts = Ps + ks + (Wr >>> 0 < Lr >>> 0 ? 1 : 0);
5441
+ var Es = he & it ^ ~he & nt, Nr = ce & Ke ^ ~ce & Ge, ks = J & ie ^ J & ze ^ ie & ze, Ss = V & L ^ V & Oe ^ L & Oe, Bs = (J >>> 28 | V << 4) ^ (J << 30 | V >>> 2) ^ (J << 25 | V >>> 7), Lr = (V >>> 28 | J << 4) ^ (V << 30 | J >>> 2) ^ (V << 25 | J >>> 7), Ps = (he >>> 14 | ce << 18) ^ (he >>> 18 | ce << 14) ^ (he << 23 | ce >>> 9), Is = (ce >>> 14 | he << 18) ^ (ce >>> 18 | he << 14) ^ (ce << 23 | he >>> 9), Mr = y[xe], Cs = Mr.high, qr = Mr.low, de = Xe + Is, be = mt + Ps + (de >>> 0 < Xe >>> 0 ? 1 : 0), de = de + Nr, be = be + Es + (de >>> 0 < Nr >>> 0 ? 1 : 0), de = de + qr, be = be + Cs + (de >>> 0 < qr >>> 0 ? 1 : 0), de = de + ue, be = be + ge + (de >>> 0 < ue >>> 0 ? 1 : 0), Wr = Lr + Ss, Ts = Bs + ks + (Wr >>> 0 < Lr >>> 0 ? 1 : 0);
5442
5442
  mt = nt, Xe = Ge, nt = it, Ge = Ke, it = he, Ke = ce, ce = je + de | 0, he = yt + be + (ce >>> 0 < je >>> 0 ? 1 : 0) | 0, yt = ze, je = Oe, ze = ie, Oe = L, ie = J, L = V, V = de + Wr | 0, J = be + Ts + (V >>> 0 < de >>> 0 ? 1 : 0) | 0;
5443
5443
  }
5444
- _ = $.low = _ + V, $.high = R + J + (_ >>> 0 < V >>> 0 ? 1 : 0), P = l.low = P + L, l.high = w + ie + (P >>> 0 < L >>> 0 ? 1 : 0), O = h.low = O + Oe, h.high = I + ze + (O >>> 0 < Oe >>> 0 ? 1 : 0), H = m.low = H + je, m.high = U + yt + (H >>> 0 < je >>> 0 ? 1 : 0), j = b.low = j + ce, b.high = Y + he + (j >>> 0 < ce >>> 0 ? 1 : 0), K = E.low = K + Ke, E.high = X + it + (K >>> 0 < Ke >>> 0 ? 1 : 0), T = k.low = T + Ge, k.high = B + nt + (T >>> 0 < Ge >>> 0 ? 1 : 0), C = S.low = C + Xe, S.high = A + mt + (C >>> 0 < Xe >>> 0 ? 1 : 0);
5444
+ _ = $.low = _ + V, $.high = R + J + (_ >>> 0 < V >>> 0 ? 1 : 0), B = l.low = B + L, l.high = w + ie + (B >>> 0 < L >>> 0 ? 1 : 0), O = h.low = O + Oe, h.high = I + ze + (O >>> 0 < Oe >>> 0 ? 1 : 0), H = m.low = H + je, m.high = U + yt + (H >>> 0 < je >>> 0 ? 1 : 0), j = b.low = j + ce, b.high = Y + he + (j >>> 0 < ce >>> 0 ? 1 : 0), K = E.low = K + Ke, E.high = X + it + (K >>> 0 < Ke >>> 0 ? 1 : 0), T = k.low = T + Ge, k.high = P + nt + (T >>> 0 < Ge >>> 0 ? 1 : 0), C = S.low = C + Xe, S.high = A + mt + (C >>> 0 < Xe >>> 0 ? 1 : 0);
5445
5445
  },
5446
5446
  _doFinalize: function() {
5447
5447
  var f = this._data, v = f.words, g = this._nDataBytes * 8, $ = f.sigBytes * 8;
@@ -5461,7 +5461,7 @@ function ys() {
5461
5461
  }(Vt)), Vt.exports;
5462
5462
  }
5463
5463
  var Yt = { exports: {} }, I0;
5464
- function Bn() {
5464
+ function Pn() {
5465
5465
  return I0 || (I0 = 1, function(r, e) {
5466
5466
  (function(t, s, i) {
5467
5467
  r.exports = s(z(), vt(), ys());
@@ -5549,29 +5549,29 @@ function In() {
5549
5549
  }
5550
5550
  for (var S = 0; S < 24; S++) {
5551
5551
  for (var R = 0; R < 5; R++) {
5552
- for (var _ = 0, w = 0, P = 0; P < 5; P++) {
5553
- var k = l[R + 5 * P];
5552
+ for (var _ = 0, w = 0, B = 0; B < 5; B++) {
5553
+ var k = l[R + 5 * B];
5554
5554
  _ ^= k.high, w ^= k.low;
5555
5555
  }
5556
5556
  var I = f[R];
5557
5557
  I.high = _, I.low = w;
5558
5558
  }
5559
5559
  for (var R = 0; R < 5; R++)
5560
- for (var O = f[(R + 4) % 5], U = f[(R + 1) % 5], H = U.high, Y = U.low, _ = O.high ^ (H << 1 | Y >>> 31), w = O.low ^ (Y << 1 | H >>> 31), P = 0; P < 5; P++) {
5561
- var k = l[R + 5 * P];
5560
+ for (var O = f[(R + 4) % 5], U = f[(R + 1) % 5], H = U.high, Y = U.low, _ = O.high ^ (H << 1 | Y >>> 31), w = O.low ^ (Y << 1 | H >>> 31), B = 0; B < 5; B++) {
5561
+ var k = l[R + 5 * B];
5562
5562
  k.high ^= _, k.low ^= w;
5563
5563
  }
5564
5564
  for (var j = 1; j < 25; j++) {
5565
- var _, w, k = l[j], X = k.high, K = k.low, B = y[j];
5566
- B < 32 ? (_ = X << B | K >>> 32 - B, w = K << B | X >>> 32 - B) : (_ = K << B - 32 | X >>> 64 - B, w = X << B - 32 | K >>> 64 - B);
5565
+ var _, w, k = l[j], X = k.high, K = k.low, P = y[j];
5566
+ P < 32 ? (_ = X << P | K >>> 32 - P, w = K << P | X >>> 32 - P) : (_ = K << P - 32 | X >>> 64 - P, w = X << P - 32 | K >>> 64 - P);
5567
5567
  var T = f[o[j]];
5568
5568
  T.high = _, T.low = w;
5569
5569
  }
5570
5570
  var A = f[0], C = l[0];
5571
5571
  A.high = C.high, A.low = C.low;
5572
5572
  for (var R = 0; R < 5; R++)
5573
- for (var P = 0; P < 5; P++) {
5574
- var j = R + 5 * P, k = l[j], J = f[j], V = f[(R + 1) % 5 + 5 * P], ie = f[(R + 2) % 5 + 5 * P];
5573
+ for (var B = 0; B < 5; B++) {
5574
+ var j = R + 5 * B, k = l[j], J = f[j], V = f[(R + 1) % 5 + 5 * B], ie = f[(R + 2) % 5 + 5 * B];
5575
5575
  k.high = J.high ^ ~V.high & ie.high, k.low = J.low ^ ~V.low & ie.low;
5576
5576
  }
5577
5577
  var k = l[0], L = u[S];
@@ -5950,18 +5950,18 @@ function Cn() {
5950
5950
  var R = k + S, _ = E[R];
5951
5951
  E[R] = (_ << 8 | _ >>> 24) & 16711935 | (_ << 24 | _ >>> 8) & 4278255360;
5952
5952
  }
5953
- var w = this._hash.words, P = u.words, I = f.words, O = a.words, U = c.words, H = y.words, Y = o.words, j, X, K, B, T, A, C, J, V, ie;
5954
- A = j = w[0], C = X = w[1], J = K = w[2], V = B = w[3], ie = T = w[4];
5953
+ var w = this._hash.words, B = u.words, I = f.words, O = a.words, U = c.words, H = y.words, Y = o.words, j, X, K, P, T, A, C, J, V, ie;
5954
+ A = j = w[0], C = X = w[1], J = K = w[2], V = P = w[3], ie = T = w[4];
5955
5955
  for (var L, S = 0; S < 80; S += 1)
5956
- L = j + E[k + O[S]] | 0, S < 16 ? L += g(X, K, B) + P[0] : S < 32 ? L += $(X, K, B) + P[1] : S < 48 ? L += l(X, K, B) + P[2] : S < 64 ? L += h(X, K, B) + P[3] : L += m(X, K, B) + P[4], L = L | 0, L = b(L, H[S]), L = L + T | 0, j = T, T = B, B = b(K, 10), K = X, X = L, L = A + E[k + U[S]] | 0, S < 16 ? L += m(C, J, V) + I[0] : S < 32 ? L += h(C, J, V) + I[1] : S < 48 ? L += l(C, J, V) + I[2] : S < 64 ? L += $(C, J, V) + I[3] : L += g(C, J, V) + I[4], L = L | 0, L = b(L, Y[S]), L = L + ie | 0, A = ie, ie = V, V = b(J, 10), J = C, C = L;
5957
- L = w[1] + K + V | 0, w[1] = w[2] + B + ie | 0, w[2] = w[3] + T + A | 0, w[3] = w[4] + j + C | 0, w[4] = w[0] + X + J | 0, w[0] = L;
5956
+ L = j + E[k + O[S]] | 0, S < 16 ? L += g(X, K, P) + B[0] : S < 32 ? L += $(X, K, P) + B[1] : S < 48 ? L += l(X, K, P) + B[2] : S < 64 ? L += h(X, K, P) + B[3] : L += m(X, K, P) + B[4], L = L | 0, L = b(L, H[S]), L = L + T | 0, j = T, T = P, P = b(K, 10), K = X, X = L, L = A + E[k + U[S]] | 0, S < 16 ? L += m(C, J, V) + I[0] : S < 32 ? L += h(C, J, V) + I[1] : S < 48 ? L += l(C, J, V) + I[2] : S < 64 ? L += $(C, J, V) + I[3] : L += g(C, J, V) + I[4], L = L | 0, L = b(L, Y[S]), L = L + ie | 0, A = ie, ie = V, V = b(J, 10), J = C, C = L;
5957
+ L = w[1] + K + V | 0, w[1] = w[2] + P + ie | 0, w[2] = w[3] + T + A | 0, w[3] = w[4] + j + C | 0, w[4] = w[0] + X + J | 0, w[0] = L;
5958
5958
  },
5959
5959
  _doFinalize: function() {
5960
5960
  var E = this._data, k = E.words, S = this._nDataBytes * 8, R = E.sigBytes * 8;
5961
5961
  k[R >>> 5] |= 128 << 24 - R % 32, k[(R + 64 >>> 9 << 4) + 14] = (S << 8 | S >>> 24) & 16711935 | (S << 24 | S >>> 8) & 4278255360, E.sigBytes = (k.length + 1) * 4, this._process();
5962
- for (var _ = this._hash, w = _.words, P = 0; P < 5; P++) {
5963
- var I = w[P];
5964
- w[P] = (I << 8 | I >>> 24) & 16711935 | (I << 24 | I >>> 8) & 4278255360;
5962
+ for (var _ = this._hash, w = _.words, B = 0; B < 5; B++) {
5963
+ var I = w[B];
5964
+ w[B] = (I << 8 | I >>> 24) & 16711935 | (I << 24 | I >>> 8) & 4278255360;
5965
5965
  }
5966
5966
  return _;
5967
5967
  },
@@ -7237,7 +7237,7 @@ function Kn() {
7237
7237
  }
7238
7238
  (function(r, e) {
7239
7239
  (function(t, s, i) {
7240
- r.exports = s(z(), vt(), En(), kn(), Ce(), Sn(), Ae(), Ir(), vs(), Pn(), ys(), Bn(), In(), Cn(), Cr(), Tn(), Re(), ee(), An(), Rn(), On(), Un(), Dn(), Fn(), Hn(), Nn(), Ln(), Mn(), qn(), ps(), Wn(), zn(), jn(), Kn());
7240
+ r.exports = s(z(), vt(), En(), kn(), Ce(), Sn(), Ae(), Ir(), vs(), Bn(), ys(), Pn(), In(), Cn(), Cr(), Tn(), Re(), ee(), An(), Rn(), On(), Un(), Dn(), Fn(), Hn(), Nn(), Ln(), Mn(), qn(), ps(), Wn(), zn(), jn(), Kn());
7241
7241
  })(N, function(t) {
7242
7242
  return t;
7243
7243
  });
@@ -7264,7 +7264,7 @@ class Xn {
7264
7264
  padding: oe.pad.Pkcs7
7265
7265
  }
7266
7266
  );
7267
- return Pe.stringify(s.ciphertext);
7267
+ return Be.stringify(s.ciphertext);
7268
7268
  }
7269
7269
  decrypt(e) {
7270
7270
  if (re(this.encryptKey()))
@@ -7300,7 +7300,7 @@ class Vn extends Xn {
7300
7300
  );
7301
7301
  }
7302
7302
  encryptKey() {
7303
- return M(this.data.client_key) ? hs(this.data.client_key).toString().substring(0, 16) : "";
7303
+ return q(this.data.client_key) ? hs(this.data.client_key).toString().substring(0, 16) : "";
7304
7304
  }
7305
7305
  currentBootpayStoreParameters() {
7306
7306
  let e = [];
@@ -7433,7 +7433,7 @@ class Yn extends Ee {
7433
7433
  }
7434
7434
  shopUrl() {
7435
7435
  const e = Object.fromEntries(new URLSearchParams(location.search));
7436
- return M(e.__b_u) ? gr.toExShopUrl(e.__b_u) : gr.toExShopUrl(
7436
+ return q(e.__b_u) ? gr.toExShopUrl(e.__b_u) : gr.toExShopUrl(
7437
7437
  `em/${this.$exStore.data.client_key}/${this.$exStore.encryptParameters()}?${this.$exStore.currentBootpayStoreParameters()}`
7438
7438
  );
7439
7439
  }
@@ -7489,7 +7489,7 @@ class Zn extends ut {
7489
7489
  afterBind: () => {
7490
7490
  window.resetBootpayEventListener("popstate.BootpayStoreEvent", (e) => {
7491
7491
  const t = Object.fromEntries(new URLSearchParams(location.search));
7492
- M(t.__b_u) && me.postMessage("BootpayRouterChange", { url: `/${t.__b_u}` });
7492
+ q(t.__b_u) && me.postMessage("BootpayRouterChange", { url: `/${t.__b_u}` });
7493
7493
  });
7494
7494
  }
7495
7495
  });
@@ -7534,7 +7534,7 @@ const xr = new eo(), to = {
7534
7534
  }
7535
7535
  };
7536
7536
  typeof window < "u" && (window.BootpayStore = to);
7537
- const q = {
7537
+ const M = {
7538
7538
  el: void 0,
7539
7539
  data: void 0,
7540
7540
  termsPassed: !1,
@@ -7550,7 +7550,7 @@ const q = {
7550
7550
  this.data.pg = r, this.data.method = e, this.data.wallet_id = t, this.termsPassed = s, this.data.terms = i, this.widgetExtra = n;
7551
7551
  },
7552
7552
  updateOnProcessing(r) {
7553
- M(r.price) && (this.data.price = r.price), M(r.tax_free) && (this.data.tax_free = r.tax_free), M(r.currency) && (this.data.currency = r.currency), r.user_token !== void 0 && (this.data.user_token = r.user_token), M(r.use_terms) && (this.data.use_terms = r.use_terms !== !1), M(r.sandbox) && (this.data.sandbox = r.sandbox === !0), M(r.widget_key) && (this.data.widget_key = r.widget_key), M(r.widget_type) && (this.widgetType = r.widget_type), r.external_terms !== void 0 && (this.data.external_terms = r.external_terms), r.use_bootpay_inapp_sdk !== void 0 && (this.data.use_bootpay_inapp_sdk = r.use_bootpay_inapp_sdk), r.widget_key !== void 0 && (this.data.widget_key = r.widget_key);
7553
+ q(r.price) && (this.data.price = r.price), q(r.tax_free) && (this.data.tax_free = r.tax_free), q(r.currency) && (this.data.currency = r.currency), r.user_token !== void 0 && (this.data.user_token = r.user_token), q(r.use_terms) && (this.data.use_terms = r.use_terms !== !1), q(r.sandbox) && (this.data.sandbox = r.sandbox === !0), q(r.widget_key) && (this.data.widget_key = r.widget_key), q(r.widget_type) && (this.widgetType = r.widget_type), r.external_terms !== void 0 && (this.data.external_terms = r.external_terms), r.use_bootpay_inapp_sdk !== void 0 && (this.data.use_bootpay_inapp_sdk = r.use_bootpay_inapp_sdk), r.widget_key !== void 0 && (this.data.widget_key = r.widget_key);
7554
7554
  },
7555
7555
  encryptParameters() {
7556
7556
  return encodeURIComponent(
@@ -7580,7 +7580,7 @@ const q = {
7580
7580
  padding: oe.pad.Pkcs7
7581
7581
  }
7582
7582
  );
7583
- return Pe.stringify(t.ciphertext);
7583
+ return Be.stringify(t.ciphertext);
7584
7584
  },
7585
7585
  decrypt(r) {
7586
7586
  if (re(this.data.application_id))
@@ -7619,7 +7619,7 @@ const q = {
7619
7619
  };
7620
7620
  class ro extends Ee {
7621
7621
  constructor() {
7622
- super(), this.$iFrameId = "bootpay-widget-iframe", this.$widgetStore = q, this.$template = this.defaultIframeHtml();
7622
+ super(), this.$iFrameId = "bootpay-widget-iframe", this.$widgetStore = M, this.$template = this.defaultIframeHtml();
7623
7623
  }
7624
7624
  /**
7625
7625
  * 첫 Rendering을 진행한다
@@ -7670,7 +7670,7 @@ class ro extends Ee {
7670
7670
  const G = new ro();
7671
7671
  class so extends Ee {
7672
7672
  constructor() {
7673
- super(), this.$brandpayWindowId = "__bootpay-card-easy-window", this.$iFrameId = "__bootpay-card-easy-iframe", this.$windowId = "__bootpay-card-easy-container-window", this.$additionalClass = D.isMobile() ? "transparent" : "rounded-iframe transparent", this.$template = this.template(), this.$widgetStore = q;
7673
+ super(), this.$brandpayWindowId = "__bootpay-card-easy-window", this.$iFrameId = "__bootpay-card-easy-iframe", this.$windowId = "__bootpay-card-easy-container-window", this.$additionalClass = D.isMobile() ? "transparent" : "rounded-iframe transparent", this.$template = this.template(), this.$widgetStore = M;
7674
7674
  }
7675
7675
  template() {
7676
7676
  return `
@@ -7845,7 +7845,7 @@ const br = new no(), oo = {
7845
7845
  return G.postMessage("bootpayWidgetBrandpayReload", r);
7846
7846
  },
7847
7847
  bootpayWidgetResize(r) {
7848
- return this.callBootpayDOMEvent("widget-resize", r), q.callHook("resize", r), G.resize(r);
7848
+ return this.callBootpayDOMEvent("widget-resize", r), M.callHook("resize", r), G.resize(r);
7849
7849
  },
7850
7850
  bootpayWidgetShowInterestInformation(r) {
7851
7851
  return _e.showCardInterestInformation(r);
@@ -7906,7 +7906,7 @@ const br = new no(), oo = {
7906
7906
  });
7907
7907
  },
7908
7908
  bootpayWidgetTermAllAgree(r) {
7909
- this.callBootpayDOMEvent("all-agree-terms", r), q.callHook("allTermsAccepted", r);
7909
+ this.callBootpayDOMEvent("all-agree-terms", r), M.callHook("allTermsAccepted", r);
7910
7910
  },
7911
7911
  bootpayWidgetSelectPayment(r) {
7912
7912
  const { method_alias: e, payment_type: t, wallet_id: s } = r;
@@ -7917,10 +7917,10 @@ const br = new no(), oo = {
7917
7917
  });
7918
7918
  },
7919
7919
  bootpayWidgetReady(r) {
7920
- this.callBootpayDOMEvent("widget-ready", r), q.callHook("ready", r);
7920
+ this.callBootpayDOMEvent("widget-ready", r), M.callHook("ready", r);
7921
7921
  },
7922
7922
  bootpayWidgetUpdateStore(r) {
7923
- q.updateOnProcessing({
7923
+ M.updateOnProcessing({
7924
7924
  ...r
7925
7925
  });
7926
7926
  },
@@ -7941,6 +7941,9 @@ const br = new no(), oo = {
7941
7941
  }
7942
7942
  );
7943
7943
  },
7944
+ brandpayWalletUpdated(r) {
7945
+ M.callHook("brandpayWalletUpdated", r);
7946
+ },
7944
7947
  /**
7945
7948
  * 결제 선택시 global 이벤트를 분리하여 호출한다
7946
7949
  * Comment by GOSOMI
@@ -7948,7 +7951,7 @@ const br = new no(), oo = {
7948
7951
  */
7949
7952
  triggerGlobalChangeEvent(r) {
7950
7953
  var e;
7951
- r.completed = M(r.pg) && M(r.method) && (r.term_passed === !0 || !q.data.use_terms) && (["BRANDPAY_CARD", "BRANDPAY_AUTOMATIC_TRANSFER"].indexOf(r.method) === -1 || r.wallet_id !== void 0), (q.data.pg !== r.pg || q.data.method !== r.method || q.data.wallet_id !== r.wallet_id || JSON.stringify(q.widgetExtra) !== JSON.stringify(r.extra)) && (this.callBootpayDOMEvent("widget-change-payment", r), q.callHook("changePayment", r)), JSON.stringify((e = r.select_terms) == null ? void 0 : e.filter((t) => t.agree === !0)) !== JSON.stringify(q.data.terms.filter((t) => t.agree === !0)) && (this.callBootpayDOMEvent("widget-change-terms", r), q.callHook("changeTerms", r));
7954
+ r.completed = q(r.pg) && q(r.method) && (r.term_passed === !0 || !M.data.use_terms) && (["BRANDPAY_CARD", "BRANDPAY_AUTOMATIC_TRANSFER"].indexOf(r.method) === -1 || r.wallet_id !== void 0), (M.data.pg !== r.pg || M.data.method !== r.method || M.data.wallet_id !== r.wallet_id || JSON.stringify(M.widgetExtra) !== JSON.stringify(r.extra)) && (this.callBootpayDOMEvent("widget-change-payment", r), M.callHook("paymentMethodUpdated", r)), JSON.stringify((e = r.select_terms) == null ? void 0 : e.filter((t) => t.agree === !0)) !== JSON.stringify(M.data.terms.filter((t) => t.agree === !0)) && (this.callBootpayDOMEvent("widget-change-terms", r), M.callHook("termsConsentUpdated", r));
7952
7955
  },
7953
7956
  callBootpayDOMEvent(r, e = void 0) {
7954
7957
  document.dispatchEvent(
@@ -7978,7 +7981,7 @@ class lo extends qe {
7978
7981
  super(), this.message = Tr;
7979
7982
  }
7980
7983
  initialize() {
7981
- q.setWidgetData(
7984
+ M.setWidgetData(
7982
7985
  void 0,
7983
7986
  {
7984
7987
  application_id: void 0,
@@ -7999,7 +8002,7 @@ class lo extends qe {
7999
8002
  throw new Error("결제금액은 1원 이상을 입력해주세요.");
8000
8003
  if (this.$blank(t == null ? void 0 : t.application_id))
8001
8004
  throw new Error("application_id가 입력되지 않았습니다.");
8002
- this.initialize(), q.setWidgetData(
8005
+ this.initialize(), M.setWidgetData(
8003
8006
  e,
8004
8007
  t
8005
8008
  ), G.render(), co.bind();
@@ -8016,7 +8019,7 @@ class lo extends qe {
8016
8019
  widget_key: a,
8017
8020
  external_terms: c
8018
8021
  } = e;
8019
- q.updateOnProcessing({
8022
+ M.updateOnProcessing({
8020
8023
  price: t,
8021
8024
  tax_free: s,
8022
8025
  currency: i,
@@ -8043,10 +8046,10 @@ class lo extends qe {
8043
8046
  G.destroy();
8044
8047
  }
8045
8048
  selectPayment(e, t, s, i = !1, n, x) {
8046
- q.setPayment(e, t, s, i, n, x), F.debug("selectPayment", `pg: ${e}, method: ${t}, wallet_id: ${s}, terms: ${i}, select_terms: ${JSON.stringify(n)}, extra: ${JSON.stringify(x)}`);
8049
+ M.setPayment(e, t, s, i, n, x), F.debug("selectPayment", `pg: ${e}, method: ${t}, wallet_id: ${s}, terms: ${i}, select_terms: ${JSON.stringify(n)}, extra: ${JSON.stringify(x)}`);
8047
8050
  }
8048
8051
  currentTermsCondition() {
8049
- return q.data.terms;
8052
+ return M.data.terms;
8050
8053
  }
8051
8054
  /**
8052
8055
  * 부트페이 결제 요청을 한다
@@ -8054,7 +8057,7 @@ class lo extends qe {
8054
8057
  * @date: 2023-06-21
8055
8058
  */
8056
8059
  async requestPayment(e) {
8057
- return this.widgetRequestPaymentValidate(1), Ie.requestPayment(q.getRequestPaymentData(e));
8060
+ return this.widgetRequestPaymentValidate(1), Ie.requestPayment(M.getRequestPaymentData(e));
8058
8061
  }
8059
8062
  /**
8060
8063
  * 부트페이 정기결제 요청
@@ -8062,7 +8065,7 @@ class lo extends qe {
8062
8065
  * @date: 2024-08-19
8063
8066
  */
8064
8067
  async requestSubscription(e) {
8065
- return this.widgetRequestPaymentValidate(2), Ie.requestSubscription(q.getRequestPaymentData(e));
8068
+ return this.widgetRequestPaymentValidate(2), Ie.requestSubscription(M.getRequestPaymentData(e));
8066
8069
  }
8067
8070
  isRendered() {
8068
8071
  return G.isRendered();
@@ -8093,35 +8096,35 @@ class lo extends qe {
8093
8096
  */
8094
8097
  currentPaymentParameters() {
8095
8098
  return this.widgetRequestPaymentValidate(), {
8096
- pg: q.data.pg,
8097
- method: q.data.method,
8098
- wallet_id: q.data.wallet_id,
8099
- terms: q.data.terms,
8100
- widget_key: q.data.widget_key,
8101
- widget_sandbox: q.data.sandbox,
8102
- extra: q.getExtra({})
8099
+ pg: M.data.pg,
8100
+ method: M.data.method,
8101
+ wallet_id: M.data.wallet_id,
8102
+ terms: M.data.terms,
8103
+ widget_key: M.data.widget_key,
8104
+ widget_sandbox: M.data.sandbox,
8105
+ extra: M.getExtra({})
8103
8106
  };
8104
8107
  }
8105
8108
  widgetRequestPaymentValidate(e = void 0) {
8106
- if (e !== void 0 && q.widgetType !== e)
8109
+ if (e !== void 0 && M.widgetType !== e)
8107
8110
  throw new pe({
8108
8111
  event: "error",
8109
8112
  error_code: "RC_WIDGET_TYPE_INVALID",
8110
8113
  message: e === 1 ? this.message.getLocaleMessage("widgetTypeNotPayment", "ko") : this.message.getLocaleMessage("widgetTypeNotSubscription", "ko")
8111
8114
  });
8112
- if (this.$blank(q.data.pg) || this.$blank(q.data.method))
8115
+ if (this.$blank(M.data.pg) || this.$blank(M.data.method))
8113
8116
  throw new pe({
8114
8117
  event: "error",
8115
8118
  error_code: "RC_PG_METHOD_NOT_SELECTED",
8116
8119
  message: this.message.getLocaleMessage("notSelectPayment", "ko")
8117
8120
  });
8118
- if (!q.termsPassed && q.data.use_terms)
8121
+ if (!M.termsPassed && M.data.use_terms)
8119
8122
  throw new pe({
8120
8123
  event: "error",
8121
8124
  error_code: "RC_TERMS_NOT_AGREE",
8122
8125
  message: this.message.getLocaleMessage("termsNotAgree", "ko")
8123
8126
  });
8124
- if (["BRANDPAY_CARD", "BRANDPAY_AUTOMATIC_TRANSFER"].indexOf(q.data.method) > -1 && q.data.wallet_id === void 0)
8127
+ if (["BRANDPAY_CARD", "BRANDPAY_AUTOMATIC_TRANSFER"].indexOf(M.data.method) > -1 && M.data.wallet_id === void 0)
8125
8128
  throw new pe({
8126
8129
  event: "error",
8127
8130
  error_code: "RC_BRANDPAY_NEED_SELECT_WALLET",
@@ -8166,7 +8169,7 @@ const se = new lo(), uo = {
8166
8169
  e = r.eventMessage;
8167
8170
  break;
8168
8171
  default:
8169
- if (M(r.event))
8172
+ if (q(r.event))
8170
8173
  e = r;
8171
8174
  else
8172
8175
  throw r;
@@ -8241,10 +8244,10 @@ const se = new lo(), uo = {
8241
8244
  return se.currentPaymentParameters();
8242
8245
  },
8243
8246
  isWidgetTypeSubscription() {
8244
- return q.widgetType === 2;
8247
+ return M.widgetType === 2;
8245
8248
  },
8246
8249
  isWidgetTypePayment() {
8247
- return q.widgetType === 1;
8250
+ return M.widgetType === 1;
8248
8251
  }
8249
8252
  };
8250
8253
  typeof window < "u" && (window.BootpayWidget = uo);