choco-one-click-payment 1.1.50 → 1.1.52

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.esm.js CHANGED
@@ -245,16 +245,16 @@ function Pr() {
245
245
  Object.defineProperty(u, "__esModule", {
246
246
  value: !0
247
247
  }), u.Centrifuge = void 0;
248
- var f = I(l(187)), y = I(l(471)), C = l(147), b = l(853);
248
+ var h = I(l(187)), y = I(l(471)), m = l(147), b = l(853);
249
249
  function I(g) {
250
250
  return g && g.__esModule ? g : { default: g };
251
251
  }
252
252
  function B(g) {
253
253
  "@babel/helpers - typeof";
254
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? B = function(m) {
255
- return typeof m;
256
- } : B = function(m) {
257
- return m && typeof Symbol == "function" && m.constructor === Symbol && m !== Symbol.prototype ? "symbol" : typeof m;
254
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? B = function(C) {
255
+ return typeof C;
256
+ } : B = function(C) {
257
+ return C && typeof Symbol == "function" && C.constructor === Symbol && C !== Symbol.prototype ? "symbol" : typeof C;
258
258
  }, B(g);
259
259
  }
260
260
  function Q(g, p) {
@@ -262,12 +262,12 @@ function Pr() {
262
262
  throw new TypeError("Cannot call a class as a function");
263
263
  }
264
264
  function S(g, p) {
265
- for (var m = 0; m < p.length; m++) {
266
- var d = p[m];
265
+ for (var C = 0; C < p.length; C++) {
266
+ var d = p[C];
267
267
  d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(g, d.key, d);
268
268
  }
269
269
  }
270
- function P(g, p, m) {
270
+ function P(g, p, C) {
271
271
  return p && S(g.prototype, p), g;
272
272
  }
273
273
  function k(g, p) {
@@ -315,16 +315,16 @@ function Pr() {
315
315
  }
316
316
  }
317
317
  function z(g) {
318
- return z = Object.setPrototypeOf ? Object.getPrototypeOf : function(m) {
319
- return m.__proto__ || Object.getPrototypeOf(m);
318
+ return z = Object.setPrototypeOf ? Object.getPrototypeOf : function(C) {
319
+ return C.__proto__ || Object.getPrototypeOf(C);
320
320
  }, z(g);
321
321
  }
322
322
  var J = "timeout", M = "connection closed", v = /* @__PURE__ */ (function(g) {
323
- k(m, g);
324
- var p = L(m);
325
- function m(d, s) {
323
+ k(C, g);
324
+ var p = L(C);
325
+ function C(d, s) {
326
326
  var a;
327
- return Q(this, m), a = p.call(this), a._url = d, a._websocket = null, a._sockjs = null, a._isSockjs = !1, a._xmlhttprequest = null, a._binary = !1, a._methodType = null, a._pushType = null, a._encoder = null, a._decoder = null, a._status = "disconnected", a._reconnect = !0, a._reconnecting = !1, a._transport = null, a._transportName = null, a._transportClosed = !0, a._messageId = 0, a._clientID = null, a._refreshRequired = !1, a._subs = {}, a._serverSubs = {}, a._lastSeq = {}, a._lastGen = {}, a._lastOffset = {}, a._lastEpoch = {}, a._messages = [], a._isBatching = !1, a._isSubscribeBatching = !1, a._privateChannels = {}, a._numRefreshFailed = 0, a._refreshTimeout = null, a._pingTimeout = null, a._pongTimeout = null, a._subRefreshTimeouts = {}, a._retries = 0, a._callbacks = {}, a._latency = null, a._latencyStart = null, a._connectData = null, a._token = null, a._xhrID = 0, a._xhrs = {}, a._dispatchPromise = Promise.resolve(), a._protocol = "", a._config = {
327
+ return Q(this, C), a = p.call(this), a._url = d, a._websocket = null, a._sockjs = null, a._isSockjs = !1, a._xmlhttprequest = null, a._binary = !1, a._methodType = null, a._pushType = null, a._encoder = null, a._decoder = null, a._status = "disconnected", a._reconnect = !0, a._reconnecting = !1, a._transport = null, a._transportName = null, a._transportClosed = !0, a._messageId = 0, a._clientID = null, a._refreshRequired = !1, a._subs = {}, a._serverSubs = {}, a._lastSeq = {}, a._lastGen = {}, a._lastOffset = {}, a._lastEpoch = {}, a._messages = [], a._isBatching = !1, a._isSubscribeBatching = !1, a._privateChannels = {}, a._numRefreshFailed = 0, a._refreshTimeout = null, a._pingTimeout = null, a._pongTimeout = null, a._subRefreshTimeouts = {}, a._retries = 0, a._callbacks = {}, a._latency = null, a._latencyStart = null, a._connectData = null, a._token = null, a._xhrID = 0, a._xhrs = {}, a._dispatchPromise = Promise.resolve(), a._protocol = "", a._config = {
328
328
  protocol: "",
329
329
  debug: !1,
330
330
  name: "js",
@@ -359,7 +359,7 @@ function Pr() {
359
359
  disableWithCredentials: !1
360
360
  }, a._configure(s), a;
361
361
  }
362
- return P(m, [{
362
+ return P(C, [{
363
363
  key: "setToken",
364
364
  value: function(s) {
365
365
  this._token = s;
@@ -396,9 +396,9 @@ function Pr() {
396
396
  }
397
397
  }, {
398
398
  key: "_ajax",
399
- value: function(s, a, A, h, E) {
399
+ value: function(s, a, A, f, E) {
400
400
  var _ = this, T = "";
401
- this._debug("sending AJAX request to", s, "with data", JSON.stringify(h));
401
+ this._debug("sending AJAX request to", s, "with data", JSON.stringify(f));
402
402
  var w;
403
403
  this._xmlhttprequest !== null ? w = new this._xmlhttprequest() : w = l.g.XMLHttpRequest ? new l.g.XMLHttpRequest() : new l.g.ActiveXObject("Microsoft.XMLHTTP");
404
404
  for (var O in a)
@@ -429,7 +429,7 @@ function Pr() {
429
429
  data: null
430
430
  });
431
431
  }, setTimeout(function() {
432
- return w.send(JSON.stringify(h));
432
+ return w.send(JSON.stringify(f));
433
433
  }, 20), w;
434
434
  }
435
435
  }, {
@@ -453,7 +453,7 @@ function Pr() {
453
453
  if (!this._formatOverride(s)) {
454
454
  if (s === "protobuf")
455
455
  throw new Error("not implemented by JSON only Centrifuge client – use client with Protobuf");
456
- this._binary = !1, this._methodType = C.JsonMethodType, this._pushType = C.JsonPushType, this._encoder = new C.JsonEncoder(), this._decoder = new C.JsonDecoder();
456
+ this._binary = !1, this._methodType = m.JsonMethodType, this._pushType = m.JsonPushType, this._encoder = new m.JsonEncoder(), this._decoder = new m.JsonDecoder();
457
457
  }
458
458
  }
459
459
  }, {
@@ -544,10 +544,10 @@ function Pr() {
544
544
  if (this._callbacks.hasOwnProperty(a)) {
545
545
  var A = this._callbacks[a];
546
546
  clearTimeout(A.timeout);
547
- var h = A.errback;
548
- if (!h)
547
+ var f = A.errback;
548
+ if (!f)
549
549
  continue;
550
- h({
550
+ f({
551
551
  error: this._createErrorObject("disconnected")
552
552
  });
553
553
  }
@@ -576,9 +576,9 @@ function Pr() {
576
576
  for (var a in s) {
577
577
  var A = a.id;
578
578
  if (A in this._callbacks) {
579
- var h = this._callbacks[A];
579
+ var f = this._callbacks[A];
580
580
  clearTimeout(this._callbacks[A].timeout), delete this._callbacks[A];
581
- var E = h.errback;
581
+ var E = f.errback;
582
582
  E({
583
583
  error: this._createErrorObject(M, 0)
584
584
  });
@@ -613,10 +613,10 @@ function Pr() {
613
613
  s._transportClosed = !1, s._isSockjs ? (s._transportName = "sockjs-" + s._transport.transport, s._transport.onheartbeat = function() {
614
614
  return s._restartPing();
615
615
  }) : s._transportName = "websocket";
616
- var h = {
616
+ var f = {
617
617
  // method: this._methodType.CONNECT
618
618
  };
619
- (s._token || s._connectData || s._config.name || s._config.version) && (h.params = {}), s._token && (h.params.token = s._token), s._connectData && (h.params.data = s._connectData), s._config.name && (h.params.name = s._config.name), s._config.version && (h.params.version = s._config.version);
619
+ (s._token || s._connectData || s._config.name || s._config.version) && (f.params = {}), s._token && (f.params.token = s._token), s._connectData && (f.params.data = s._connectData), s._config.name && (f.params.name = s._config.name), s._config.version && (f.params.version = s._config.version);
620
620
  var E = {}, _ = !1;
621
621
  for (var T in s._serverSubs)
622
622
  if (s._serverSubs.hasOwnProperty(T) && s._serverSubs[T].recoverable) {
@@ -626,26 +626,26 @@ function Pr() {
626
626
  };
627
627
  s._serverSubs[T].seq || s._serverSubs[T].gen ? (s._serverSubs[T].seq && (w.seq = s._serverSubs[T].seq), s._serverSubs[T].gen && (w.gen = s._serverSubs[T].gen)) : s._serverSubs[T].offset && (w.offset = s._serverSubs[T].offset), s._serverSubs[T].epoch && (w.epoch = s._serverSubs[T].epoch), E[T] = w;
628
628
  }
629
- _ && (h.params || (h.params = {}), h.params.subs = E), s._latencyStart = /* @__PURE__ */ new Date(), s._call(h).then(function(O) {
629
+ _ && (f.params || (f.params = {}), f.params.subs = E), s._latencyStart = /* @__PURE__ */ new Date(), s._call(f).then(function(O) {
630
630
  s._connectResponse(s._decoder.decodeCommandResult(s._methodType.CONNECT, O.result), _), O.next && O.next();
631
631
  }, function(O) {
632
632
  var F = O.error;
633
633
  F.code === 109 && (s._refreshRequired = !0), s._disconnect("connect error", !0), O.next && O.next();
634
634
  });
635
- }, this._transport.onerror = function(h) {
636
- s._debug("transport level error", h);
637
- }, this._transport.onclose = function(h) {
635
+ }, this._transport.onerror = function(f) {
636
+ s._debug("transport level error", f);
637
+ }, this._transport.onclose = function(f) {
638
638
  s._transportClosed = !0;
639
639
  var E = M, _ = !0;
640
- if (h && "reason" in h && h.reason)
640
+ if (f && "reason" in f && f.reason)
641
641
  try {
642
- var T = JSON.parse(h.reason);
642
+ var T = JSON.parse(f.reason);
643
643
  s._debug("reason is an advice object", T), E = T.reason, _ = T.reconnect;
644
644
  } catch {
645
- E = h.reason, s._debug("reason is a plain string", E);
645
+ E = f.reason, s._debug("reason is a plain string", E);
646
646
  }
647
647
  if (s._config.onTransportClose !== null && s._config.onTransportClose({
648
- event: h,
648
+ event: f,
649
649
  reason: E,
650
650
  reconnect: _
651
651
  }), s._disconnect(E, _), s._reconnect === !0) {
@@ -655,8 +655,8 @@ function Pr() {
655
655
  s._reconnect === !0 && (s._refreshRequired ? s._refresh() : s._connect());
656
656
  }, w);
657
657
  }
658
- }, this._transport.onmessage = function(h) {
659
- s._dataReceived(h.data);
658
+ }, this._transport.onmessage = function(f) {
659
+ s._dataReceived(f.data);
660
660
  };
661
661
  }
662
662
  }, {
@@ -676,11 +676,11 @@ function Pr() {
676
676
  data: a
677
677
  };
678
678
  s !== "" && (A.method = s);
679
- var h = {
679
+ var f = {
680
680
  method: this._methodType.RPC,
681
681
  params: A
682
682
  };
683
- return this._methodCall(h, function(E) {
683
+ return this._methodCall(f, function(E) {
684
684
  return E;
685
685
  });
686
686
  }
@@ -712,9 +712,9 @@ function Pr() {
712
712
  key: "_methodCall",
713
713
  value: function(s, a) {
714
714
  var A = this;
715
- return this.isConnected() ? new Promise(function(h, E) {
715
+ return this.isConnected() ? new Promise(function(f, E) {
716
716
  A._call(s).then(function(_) {
717
- h(a(A._decoder.decodeCommandResult(s.method, _.result))), _.next && _.next();
717
+ f(a(A._decoder.decodeCommandResult(s.method, _.result))), _.next && _.next();
718
718
  }, function(_) {
719
719
  E(_.error), _.next && _.next();
720
720
  });
@@ -737,11 +737,11 @@ function Pr() {
737
737
  }, {
738
738
  key: "history",
739
739
  value: function(s, a) {
740
- var A = this._getHistoryParams(s, a), h = {
740
+ var A = this._getHistoryParams(s, a), f = {
741
741
  method: this._methodType.HISTORY,
742
742
  params: A
743
743
  };
744
- return this._methodCall(h, function(E) {
744
+ return this._methodCall(f, function(E) {
745
745
  return {
746
746
  publications: E.publications,
747
747
  epoch: E.epoch || "",
@@ -785,23 +785,23 @@ function Pr() {
785
785
  value: function(s) {
786
786
  var a = this, A = this._decoder.decodeReplies(s);
787
787
  this._dispatchPromise = this._dispatchPromise.then(function() {
788
- var h;
788
+ var f;
789
789
  a._dispatchPromise = new Promise(function(E) {
790
- h = E;
791
- }), a._dispatchSynchronized(A, h);
790
+ f = E;
791
+ }), a._dispatchSynchronized(A, f);
792
792
  }), this._restartPing();
793
793
  }
794
794
  }, {
795
795
  key: "_dispatchSynchronized",
796
796
  value: function(s, a) {
797
- var A = this, h = Promise.resolve(), E = function(w) {
798
- s.hasOwnProperty(w) && (h = h.then(function() {
797
+ var A = this, f = Promise.resolve(), E = function(w) {
798
+ s.hasOwnProperty(w) && (f = f.then(function() {
799
799
  return A._dispatchReply(s[w]);
800
800
  }));
801
801
  };
802
802
  for (var _ in s)
803
803
  E(_);
804
- h = h.then(function() {
804
+ f = f.then(function() {
805
805
  a();
806
806
  });
807
807
  }
@@ -813,16 +813,16 @@ function Pr() {
813
813
  });
814
814
  if (s == null)
815
815
  return this._debug("dispatch: got undefined or null reply"), a(), A;
816
- var h = s.id;
817
- return h && h > 0 ? this._handleReply(s, a) : this._handlePush(s.result, a), A;
816
+ var f = s.id;
817
+ return f && f > 0 ? this._handleReply(s, a) : this._handlePush(s.result, a), A;
818
818
  }
819
819
  }, {
820
820
  key: "_call",
821
821
  value: function(s) {
822
822
  var a = this;
823
- return new Promise(function(A, h) {
823
+ return new Promise(function(A, f) {
824
824
  var E = a._addMessage(s);
825
- a._registerCall(E, A, h);
825
+ a._registerCall(E, A, f);
826
826
  });
827
827
  }
828
828
  }, {
@@ -843,9 +843,9 @@ function Pr() {
843
843
  return;
844
844
  }
845
845
  if (this._clearConnectedState(A), this._debug("disconnected:", s, a), this._setStatus("disconnected"), this._refreshTimeout && (clearTimeout(this._refreshTimeout), this._refreshTimeout = null), this._reconnecting === !1) {
846
- for (var h in this._serverSubs)
847
- this._serverSubs.hasOwnProperty(h) && this.emit("unsubscribe", {
848
- channel: h
846
+ for (var f in this._serverSubs)
847
+ this._serverSubs.hasOwnProperty(f) && this.emit("unsubscribe", {
848
+ channel: f
849
849
  });
850
850
  this.emit("disconnect", {
851
851
  reason: s,
@@ -868,7 +868,7 @@ function Pr() {
868
868
  return;
869
869
  }
870
870
  this._refreshTimeout !== null && (clearTimeout(this._refreshTimeout), this._refreshTimeout = null);
871
- var a = this._clientID, A = this._newXHRID(), h = function(w) {
871
+ var a = this._clientID, A = this._newXHRID(), f = function(w) {
872
872
  if (A in s._xhrs && delete s._xhrs[A], s._clientID === a) {
873
873
  if (w.error || w.status !== 200) {
874
874
  if (w.error ? s._debug("error refreshing connection token", w.error) : s._debug("error refreshing connection token: wrong status code", w.status), s._numRefreshFailed++, s._refreshTimeout !== null && (clearTimeout(s._refreshTimeout), s._refreshTimeout = null), s._config.refreshAttempts !== null && s._numRefreshFailed >= s._config.refreshAttempts) {
@@ -905,9 +905,9 @@ function Pr() {
905
905
  };
906
906
  if (this._config.onRefresh !== null) {
907
907
  var E = {};
908
- this._config.onRefresh(E, h);
908
+ this._config.onRefresh(E, f);
909
909
  } else {
910
- var _ = this._ajax(this._config.refreshEndpoint, this._config.refreshParams, this._config.refreshHeaders, this._config.refreshData, h);
910
+ var _ = this._ajax(this._config.refreshEndpoint, this._config.refreshParams, this._config.refreshHeaders, this._config.refreshData, f);
911
911
  this._xhrs[A] = _;
912
912
  }
913
913
  }
@@ -942,8 +942,8 @@ function Pr() {
942
942
  this._clearSubRefreshTimeout(s);
943
943
  else
944
944
  return;
945
- var A = this._clientID, h = this._newXHRID(), E = function(O) {
946
- if (h in a._xhrs && delete a._xhrs[h], !(O.error || O.status !== 200 || a._clientID !== A)) {
945
+ var A = this._clientID, f = this._newXHRID(), E = function(O) {
946
+ if (f in a._xhrs && delete a._xhrs[f], !(O.error || O.status !== 200 || a._clientID !== A)) {
947
947
  var F = {};
948
948
  if (O.data.channels)
949
949
  for (var X in O.data.channels) {
@@ -976,7 +976,7 @@ function Pr() {
976
976
  }, E);
977
977
  else {
978
978
  var T = this._ajax(this._config.subscribeEndpoint, this._config.subscribeParams, this._config.subscribeHeaders, _, E);
979
- this._xhrs[h] = T;
979
+ this._xhrs[f] = T;
980
980
  }
981
981
  }
982
982
  }, {
@@ -989,8 +989,8 @@ function Pr() {
989
989
  value: function(s, a) {
990
990
  var A = this;
991
991
  this._debug("subscription refresh error", s, a), this._clearSubRefreshTimeout(s);
992
- var h = this._getSub(s);
993
- if (h !== null) {
992
+ var f = this._getSub(s);
993
+ if (f !== null) {
994
994
  var E = Math.round(Math.random() * 1e3), _ = setTimeout(function() {
995
995
  return A._subRefresh(s);
996
996
  }, this._config.subRefreshInterval + E);
@@ -1002,8 +1002,8 @@ function Pr() {
1002
1002
  value: function(s, a) {
1003
1003
  var A = this;
1004
1004
  this._debug("subscription refresh success", s), this._clearSubRefreshTimeout(s);
1005
- var h = this._getSub(s);
1006
- if (h !== null && a.expires === !0) {
1005
+ var f = this._getSub(s);
1006
+ if (f !== null && a.expires === !0) {
1007
1007
  var E = setTimeout(function() {
1008
1008
  return A._subRefresh(s);
1009
1009
  }, this._getTTLMilliseconds(a.ttl));
@@ -1015,8 +1015,8 @@ function Pr() {
1015
1015
  value: function(s, a) {
1016
1016
  var A = this;
1017
1017
  this._debug("subscribing on", s.channel);
1018
- var h = s.channel;
1019
- if (h in this._subs || (this._subs[h] = s), !this.isConnected()) {
1018
+ var f = s.channel;
1019
+ if (f in this._subs || (this._subs[f] = s), !this.isConnected()) {
1020
1020
  s._setNew();
1021
1021
  return;
1022
1022
  }
@@ -1024,29 +1024,29 @@ function Pr() {
1024
1024
  var E = {
1025
1025
  method: this._methodType.SUBSCRIBE,
1026
1026
  params: {
1027
- channel: h
1027
+ channel: f
1028
1028
  }
1029
1029
  };
1030
- if (s._subscribeData && (E.params.data = s._subscribeData), (0, b.startsWith)(h, this._config.privateChannelPrefix))
1031
- this._isSubscribeBatching ? this._privateChannels[h] = !0 : (this.startSubscribeBatching(), this._subscribe(s), this.stopSubscribeBatching());
1030
+ if (s._subscribeData && (E.params.data = s._subscribeData), (0, b.startsWith)(f, this._config.privateChannelPrefix))
1031
+ this._isSubscribeBatching ? this._privateChannels[f] = !0 : (this.startSubscribeBatching(), this._subscribe(s), this.stopSubscribeBatching());
1032
1032
  else {
1033
1033
  var _ = s._needRecover();
1034
1034
  if (_ === !0) {
1035
1035
  E.params.recover = !0;
1036
- var T = this._getLastSeq(h), w = this._getLastGen(h);
1036
+ var T = this._getLastSeq(f), w = this._getLastGen(f);
1037
1037
  if (T || w)
1038
1038
  T && (E.params.seq = T), w && (E.params.gen = w);
1039
1039
  else {
1040
- var O = this._getLastOffset(h);
1040
+ var O = this._getLastOffset(f);
1041
1041
  O && (E.params.offset = O);
1042
1042
  }
1043
- var F = this._getLastEpoch(h);
1043
+ var F = this._getLastEpoch(f);
1044
1044
  F && (E.params.epoch = F);
1045
1045
  }
1046
1046
  this._call(E).then(function(X) {
1047
- A._subscribeResponse(h, _, A._decoder.decodeCommandResult(A._methodType.SUBSCRIBE, X.result)), X.next && X.next();
1047
+ A._subscribeResponse(f, _, A._decoder.decodeCommandResult(A._methodType.SUBSCRIBE, X.result)), X.next && X.next();
1048
1048
  }, function(X) {
1049
- A._subscribeError(h, X.error), X.next && X.next();
1049
+ A._subscribeError(f, X.error), X.next && X.next();
1050
1050
  });
1051
1051
  }
1052
1052
  }
@@ -1084,7 +1084,7 @@ function Pr() {
1084
1084
  }, {
1085
1085
  key: "_connectResponse",
1086
1086
  value: function(s, a) {
1087
- var A = this, h = this._reconnecting;
1087
+ var A = this, f = this._reconnecting;
1088
1088
  if (this._reconnecting = !1, this._resetRetry(), this._refreshRequired = !1, !this.isConnected()) {
1089
1089
  this._latencyStart !== null && (this._latency = (/* @__PURE__ */ new Date()).getTime() - this._latencyStart.getTime(), this._latencyStart = null), this._clientID = s.client, this._setStatus("connected"), this._refreshTimeout && clearTimeout(this._refreshTimeout), s.expires && (this._refreshTimeout = setTimeout(function() {
1090
1090
  return A._refresh();
@@ -1092,7 +1092,7 @@ function Pr() {
1092
1092
  for (var E in this._subs)
1093
1093
  if (this._subs.hasOwnProperty(E)) {
1094
1094
  var _ = this._subs[E];
1095
- _._shouldResubscribe() && this._subscribe(_, h);
1095
+ _._shouldResubscribe() && this._subscribe(_, f);
1096
1096
  }
1097
1097
  this.stopSubscribeBatching(), this.stopBatching(), this._startPing();
1098
1098
  var T = {
@@ -1108,9 +1108,9 @@ function Pr() {
1108
1108
  value: function(s) {
1109
1109
  for (var a in s)
1110
1110
  if (s.hasOwnProperty(a)) {
1111
- var A = s[a], h = this._serverSubs[a] !== void 0, E = {
1111
+ var A = s[a], f = this._serverSubs[a] !== void 0, E = {
1112
1112
  channel: a,
1113
- isResubscribe: h
1113
+ isResubscribe: f
1114
1114
  };
1115
1115
  E = this._expandSubscribeContext(E, A), this.emit("subscribe", E);
1116
1116
  }
@@ -1175,12 +1175,12 @@ function Pr() {
1175
1175
  value: function(s, a) {
1176
1176
  var A = !1;
1177
1177
  "recovered" in a && (A = a.recovered), s.recovered = A;
1178
- var h = !1;
1179
- "positioned" in a && (h = a.positioned);
1178
+ var f = !1;
1179
+ "positioned" in a && (f = a.positioned);
1180
1180
  var E = "";
1181
1181
  "epoch" in a && (E = a.epoch);
1182
1182
  var _ = 0;
1183
- return "offset" in a && (_ = a.offset), h && (s.streamPosition = {
1183
+ return "offset" in a && (_ = a.offset), f && (s.streamPosition = {
1184
1184
  offset: _,
1185
1185
  epoch: E
1186
1186
  }), a.data && (s.data = a.data), s;
@@ -1188,7 +1188,7 @@ function Pr() {
1188
1188
  }, {
1189
1189
  key: "_subscribeResponse",
1190
1190
  value: function(s, a, A) {
1191
- var h = this, E = this._getSub(s);
1191
+ var f = this, E = this._getSub(s);
1192
1192
  if (E && E._isSubscribing()) {
1193
1193
  E._setSubscribeSuccess(A);
1194
1194
  var _ = A.publications;
@@ -1199,7 +1199,7 @@ function Pr() {
1199
1199
  }
1200
1200
  if (A.recoverable && (!a || !A.recovered) && (this._lastSeq[s] = A.seq || 0, this._lastGen[s] = A.gen || 0, this._lastOffset[s] = A.offset || 0), this._lastEpoch[s] = A.epoch || "", A.recoverable && (E._recoverable = !0), A.expires === !0) {
1201
1201
  var w = setTimeout(function() {
1202
- return h._subRefresh(s);
1202
+ return f._subRefresh(s);
1203
1203
  }, this._getTTLMilliseconds(A.ttl));
1204
1204
  this._subRefreshTimeouts[s] = w;
1205
1205
  }
@@ -1208,7 +1208,7 @@ function Pr() {
1208
1208
  }, {
1209
1209
  key: "_handleReply",
1210
1210
  value: function(s, a) {
1211
- var A = s.id, h = s.result;
1211
+ var A = s.id, f = s.result;
1212
1212
  if (!(A in this._callbacks)) {
1213
1213
  a();
1214
1214
  return;
@@ -1230,7 +1230,7 @@ function Pr() {
1230
1230
  if (!_)
1231
1231
  return;
1232
1232
  _({
1233
- result: h,
1233
+ result: f,
1234
1234
  next: a
1235
1235
  });
1236
1236
  }
@@ -1240,34 +1240,34 @@ function Pr() {
1240
1240
  value: function(s, a) {
1241
1241
  var A = {
1242
1242
  info: a.info
1243
- }, h = this._getSub(s);
1244
- if (!h) {
1243
+ }, f = this._getSub(s);
1244
+ if (!f) {
1245
1245
  this._isServerSub(s) && (A.channel = s, this.emit("join", A));
1246
1246
  return;
1247
1247
  }
1248
- h.emit("join", A);
1248
+ f.emit("join", A);
1249
1249
  }
1250
1250
  }, {
1251
1251
  key: "_handleLeave",
1252
1252
  value: function(s, a) {
1253
1253
  var A = {
1254
1254
  info: a.info
1255
- }, h = this._getSub(s);
1256
- if (!h) {
1255
+ }, f = this._getSub(s);
1256
+ if (!f) {
1257
1257
  this._isServerSub(s) && (A.channel = s, this.emit("leave", A));
1258
1258
  return;
1259
1259
  }
1260
- h.emit("leave", A);
1260
+ f.emit("leave", A);
1261
1261
  }
1262
1262
  }, {
1263
1263
  key: "_handleUnsub",
1264
1264
  value: function(s, a) {
1265
- var A = {}, h = this._getSub(s);
1266
- if (!h) {
1265
+ var A = {}, f = this._getSub(s);
1266
+ if (!f) {
1267
1267
  this._isServerSub(s) && (delete this._serverSubs[s], A.channel = s, this.emit("unsubscribe", A));
1268
1268
  return;
1269
1269
  }
1270
- h.unsubscribe(), a.resubscribe === !0 && h.subscribe();
1270
+ f.unsubscribe(), a.resubscribe === !0 && f.subscribe();
1271
1271
  }
1272
1272
  }, {
1273
1273
  key: "_handleSub",
@@ -1288,17 +1288,17 @@ function Pr() {
1288
1288
  }, {
1289
1289
  key: "_handlePublication",
1290
1290
  value: function(s, a) {
1291
- var A = this._getSub(s), h = {
1291
+ var A = this._getSub(s), f = {
1292
1292
  data: a.data,
1293
1293
  seq: a.seq,
1294
1294
  gen: a.gen,
1295
1295
  offset: a.offset
1296
1296
  };
1297
- if (a.info && (h.info = a.info), !A) {
1298
- this._isServerSub(s) && (a.seq !== void 0 && (this._serverSubs[s].seq = a.seq), a.gen !== void 0 && (this._serverSubs[s].gen = a.gen), a.offset !== void 0 && (this._serverSubs[s].offset = a.offset), h.channel = s, this.emit("publish", h));
1297
+ if (a.info && (f.info = a.info), !A) {
1298
+ this._isServerSub(s) && (a.seq !== void 0 && (this._serverSubs[s].seq = a.seq), a.gen !== void 0 && (this._serverSubs[s].gen = a.gen), a.offset !== void 0 && (this._serverSubs[s].offset = a.offset), f.channel = s, this.emit("publish", f));
1299
1299
  return;
1300
1300
  }
1301
- a.seq !== void 0 && (this._lastSeq[s] = a.seq), a.gen !== void 0 && (this._lastGen[s] = a.gen), a.offset !== void 0 && (this._lastOffset[s] = a.offset), A.emit("publish", h);
1301
+ a.seq !== void 0 && (this._lastSeq[s] = a.seq), a.gen !== void 0 && (this._lastGen[s] = a.gen), a.offset !== void 0 && (this._lastOffset[s] = a.offset), A.emit("publish", f);
1302
1302
  }
1303
1303
  }, {
1304
1304
  key: "_handleMessage",
@@ -1308,25 +1308,25 @@ function Pr() {
1308
1308
  }, {
1309
1309
  key: "_handlePush",
1310
1310
  value: function(s, a) {
1311
- var A = this._decoder.decodePush(s), h = 0;
1312
- "type" in A && (h = A.type);
1311
+ var A = this._decoder.decodePush(s), f = 0;
1312
+ "type" in A && (f = A.type);
1313
1313
  var E = A.channel;
1314
- if (h === this._pushType.PUBLICATION) {
1314
+ if (f === this._pushType.PUBLICATION) {
1315
1315
  var _ = this._decoder.decodePushData(this._pushType.PUBLICATION, A.data);
1316
1316
  this._handlePublication(E, _);
1317
- } else if (h === this._pushType.MESSAGE) {
1317
+ } else if (f === this._pushType.MESSAGE) {
1318
1318
  var T = this._decoder.decodePushData(this._pushType.MESSAGE, A.data);
1319
1319
  this._handleMessage(T);
1320
- } else if (h === this._pushType.JOIN) {
1320
+ } else if (f === this._pushType.JOIN) {
1321
1321
  var w = this._decoder.decodePushData(this._pushType.JOIN, A.data);
1322
1322
  this._handleJoin(E, w);
1323
- } else if (h === this._pushType.LEAVE) {
1323
+ } else if (f === this._pushType.LEAVE) {
1324
1324
  var O = this._decoder.decodePushData(this._pushType.LEAVE, A.data);
1325
1325
  this._handleLeave(E, O);
1326
- } else if (h === this._pushType.UNSUBSCRIBE) {
1326
+ } else if (f === this._pushType.UNSUBSCRIBE) {
1327
1327
  var F = this._decoder.decodePushData(this._pushType.UNSUBSCRIBE, A.data);
1328
1328
  this._handleUnsub(E, F);
1329
- } else if (h === this._pushType.SUBSCRIBE) {
1329
+ } else if (f === this._pushType.SUBSCRIBE) {
1330
1330
  var X = this._decoder.decodePushData(this._pushType.UNSUBSCRIBE, A.data);
1331
1331
  this._handleSub(E, X);
1332
1332
  }
@@ -1391,14 +1391,14 @@ function Pr() {
1391
1391
  }, {
1392
1392
  key: "_registerCall",
1393
1393
  value: function(s, a, A) {
1394
- var h = this;
1394
+ var f = this;
1395
1395
  this._callbacks[s] = {
1396
1396
  callback: a,
1397
1397
  errback: A,
1398
1398
  timeout: null
1399
1399
  }, this._callbacks[s].timeout = setTimeout(function() {
1400
- delete h._callbacks[s], (0, b.isFunction)(A) && A({
1401
- error: h._createErrorObject(J)
1400
+ delete f._callbacks[s], (0, b.isFunction)(A) && A({
1401
+ error: f._createErrorObject(J)
1402
1402
  });
1403
1403
  }, this._config.timeout);
1404
1404
  }
@@ -1451,12 +1451,12 @@ function Pr() {
1451
1451
  var a = this._privateChannels;
1452
1452
  this._privateChannels = {};
1453
1453
  var A = [];
1454
- for (var h in a)
1455
- if (a.hasOwnProperty(h)) {
1456
- var E = this._getSub(h);
1454
+ for (var f in a)
1455
+ if (a.hasOwnProperty(f)) {
1456
+ var E = this._getSub(f);
1457
1457
  if (!E)
1458
1458
  continue;
1459
- A.push(h);
1459
+ A.push(f);
1460
1460
  }
1461
1461
  if (A.length === 0) {
1462
1462
  this._debug("no private channels found, no need to make request");
@@ -1541,14 +1541,14 @@ function Pr() {
1541
1541
  }, {
1542
1542
  key: "subscribe",
1543
1543
  value: function(s, a, A) {
1544
- var h = this._getSub(s);
1545
- if (h !== null)
1546
- return h._setEvents(a), h._isUnsubscribed() && h.subscribe(A), h;
1544
+ var f = this._getSub(s);
1545
+ if (f !== null)
1546
+ return f._setEvents(a), f._isUnsubscribed() && f.subscribe(A), f;
1547
1547
  var E = new y.default(this, s, a);
1548
1548
  return this._subs[s] = E, E.subscribe(A), E;
1549
1549
  }
1550
- }]), m;
1551
- })(f.default);
1550
+ }]), C;
1551
+ })(h.default);
1552
1552
  u.Centrifuge = v;
1553
1553
  })
1554
1554
  ),
@@ -1559,7 +1559,7 @@ function Pr() {
1559
1559
  Object.defineProperty(u, "__esModule", {
1560
1560
  value: !0
1561
1561
  }), u.default = void 0;
1562
- var f = l(382), y = f.Centrifuge;
1562
+ var h = l(382), y = h.Centrifuge;
1563
1563
  u.default = y, c.exports = u.default;
1564
1564
  })
1565
1565
  ),
@@ -1574,16 +1574,16 @@ function Pr() {
1574
1574
  if (!(Q instanceof S))
1575
1575
  throw new TypeError("Cannot call a class as a function");
1576
1576
  }
1577
- function f(Q, S) {
1577
+ function h(Q, S) {
1578
1578
  for (var P = 0; P < S.length; P++) {
1579
1579
  var k = S[P];
1580
1580
  k.enumerable = k.enumerable || !1, k.configurable = !0, "value" in k && (k.writable = !0), Object.defineProperty(Q, k.key, k);
1581
1581
  }
1582
1582
  }
1583
1583
  function y(Q, S, P) {
1584
- return S && f(Q.prototype, S), Q;
1584
+ return S && h(Q.prototype, S), Q;
1585
1585
  }
1586
- var C = {
1586
+ var m = {
1587
1587
  CONNECT: 0,
1588
1588
  SUBSCRIBE: 1,
1589
1589
  UNSUBSCRIBE: 2,
@@ -1597,7 +1597,7 @@ function Pr() {
1597
1597
  REFRESH: 10,
1598
1598
  SUB_REFRESH: 11
1599
1599
  };
1600
- u.JsonMethodType = C;
1600
+ u.JsonMethodType = m;
1601
1601
  var b = {
1602
1602
  PUBLICATION: 0,
1603
1603
  JOIN: 1,
@@ -1660,49 +1660,49 @@ function Pr() {
1660
1660
  471: (
1661
1661
  /***/
1662
1662
  (function(c, u, l) {
1663
- function f(p) {
1663
+ function h(p) {
1664
1664
  "@babel/helpers - typeof";
1665
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? f = function(d) {
1665
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? h = function(d) {
1666
1666
  return typeof d;
1667
- } : f = function(d) {
1667
+ } : h = function(d) {
1668
1668
  return d && typeof Symbol == "function" && d.constructor === Symbol && d !== Symbol.prototype ? "symbol" : typeof d;
1669
- }, f(p);
1669
+ }, h(p);
1670
1670
  }
1671
1671
  Object.defineProperty(u, "__esModule", {
1672
1672
  value: !0
1673
1673
  }), u.default = void 0;
1674
- var y = b(l(187)), C = l(853);
1674
+ var y = b(l(187)), m = l(853);
1675
1675
  function b(p) {
1676
1676
  return p && p.__esModule ? p : { default: p };
1677
1677
  }
1678
- function I(p, m) {
1679
- if (!(p instanceof m))
1678
+ function I(p, C) {
1679
+ if (!(p instanceof C))
1680
1680
  throw new TypeError("Cannot call a class as a function");
1681
1681
  }
1682
- function B(p, m) {
1683
- for (var d = 0; d < m.length; d++) {
1684
- var s = m[d];
1682
+ function B(p, C) {
1683
+ for (var d = 0; d < C.length; d++) {
1684
+ var s = C[d];
1685
1685
  s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(p, s.key, s);
1686
1686
  }
1687
1687
  }
1688
- function Q(p, m, d) {
1689
- return m && B(p.prototype, m), p;
1688
+ function Q(p, C, d) {
1689
+ return C && B(p.prototype, C), p;
1690
1690
  }
1691
- function S(p, m) {
1692
- if (typeof m != "function" && m !== null)
1691
+ function S(p, C) {
1692
+ if (typeof C != "function" && C !== null)
1693
1693
  throw new TypeError("Super expression must either be null or a function");
1694
- p.prototype = Object.create(m && m.prototype, { constructor: { value: p, writable: !0, configurable: !0 } }), m && P(p, m);
1694
+ p.prototype = Object.create(C && C.prototype, { constructor: { value: p, writable: !0, configurable: !0 } }), C && P(p, C);
1695
1695
  }
1696
- function P(p, m) {
1696
+ function P(p, C) {
1697
1697
  return P = Object.setPrototypeOf || function(s, a) {
1698
1698
  return s.__proto__ = a, s;
1699
- }, P(p, m);
1699
+ }, P(p, C);
1700
1700
  }
1701
1701
  function k(p) {
1702
- var m = q();
1702
+ var C = q();
1703
1703
  return function() {
1704
1704
  var s = D(p), a;
1705
- if (m) {
1705
+ if (C) {
1706
1706
  var A = D(this).constructor;
1707
1707
  a = Reflect.construct(s, arguments, A);
1708
1708
  } else
@@ -1710,10 +1710,10 @@ function Pr() {
1710
1710
  return R(this, a);
1711
1711
  };
1712
1712
  }
1713
- function R(p, m) {
1714
- if (m && (f(m) === "object" || typeof m == "function"))
1715
- return m;
1716
- if (m !== void 0)
1713
+ function R(p, C) {
1714
+ if (C && (h(C) === "object" || typeof C == "function"))
1715
+ return C;
1716
+ if (C !== void 0)
1717
1717
  throw new TypeError("Derived constructors may only return object or undefined");
1718
1718
  return L(p);
1719
1719
  }
@@ -1739,12 +1739,12 @@ function Pr() {
1739
1739
  }
1740
1740
  var G = 0, z = 1, J = 2, M = 3, v = 4, g = /* @__PURE__ */ (function(p) {
1741
1741
  S(d, p);
1742
- var m = k(d);
1742
+ var C = k(d);
1743
1743
  function d(s, a, A) {
1744
- var h;
1745
- return I(this, d), h = m.call(this), h.channel = a, h._centrifuge = s, h._status = G, h._error = null, h._isResubscribe = !1, h._ready = !1, h._subscriptionPromise = null, h._noResubscribe = !1, h._recoverable = !1, h._recover = !1, h._setEvents(A), h._initializePromise(), h._promises = {}, h._promiseId = 0, h._subscribeData = null, h.on("error", function(E) {
1744
+ var f;
1745
+ return I(this, d), f = C.call(this), f.channel = a, f._centrifuge = s, f._status = G, f._error = null, f._isResubscribe = !1, f._ready = !1, f._subscriptionPromise = null, f._noResubscribe = !1, f._recoverable = !1, f._recover = !1, f._setEvents(A), f._initializePromise(), f._promises = {}, f._promiseId = 0, f._subscribeData = null, f.on("error", function(E) {
1746
1746
  this._centrifuge._debug("subscription error", E);
1747
- }), h;
1747
+ }), f;
1748
1748
  }
1749
1749
  return Q(d, [{
1750
1750
  key: "_nextPromiseId",
@@ -1755,11 +1755,11 @@ function Pr() {
1755
1755
  key: "_initializePromise",
1756
1756
  value: function() {
1757
1757
  var a = this;
1758
- this._ready = !1, this._subscriptionPromise = new Promise(function(A, h) {
1758
+ this._ready = !1, this._subscriptionPromise = new Promise(function(A, f) {
1759
1759
  a._resolve = function(E) {
1760
1760
  a._ready = !0, A(E);
1761
1761
  }, a._reject = function(E) {
1762
- a._ready = !0, h(E);
1762
+ a._ready = !0, f(E);
1763
1763
  };
1764
1764
  }).then(function() {
1765
1765
  }, function() {
@@ -1779,11 +1779,11 @@ function Pr() {
1779
1779
  key: "_setEvents",
1780
1780
  value: function(a) {
1781
1781
  if (a) {
1782
- if ((0, C.isFunction)(a))
1782
+ if ((0, m.isFunction)(a))
1783
1783
  this.on("publish", a);
1784
1784
  else if (Object.prototype.toString.call(a) === Object.prototype.toString.call({}))
1785
- for (var A = ["publish", "join", "leave", "unsubscribe", "subscribe", "error"], h = 0, E = A.length; h < E; h++) {
1786
- var _ = A[h];
1785
+ for (var A = ["publish", "join", "leave", "unsubscribe", "subscribe", "error"], f = 0, E = A.length; f < E; f++) {
1786
+ var _ = A[f];
1787
1787
  _ in a && this.on(_, a[_]);
1788
1788
  }
1789
1789
  }
@@ -1835,8 +1835,8 @@ function Pr() {
1835
1835
  this._status = J;
1836
1836
  var A = this._getSubscribeSuccessContext(a);
1837
1837
  this._recover = !1, this.emit("subscribe", A), this._resolve(A);
1838
- for (var h in this._promises)
1839
- clearTimeout(this._promises[h].timeout), this._promises[h].resolve(), delete this._promises[h];
1838
+ for (var f in this._promises)
1839
+ clearTimeout(this._promises[f].timeout), this._promises[f].resolve(), delete this._promises[f];
1840
1840
  }
1841
1841
  }
1842
1842
  }, {
@@ -1846,8 +1846,8 @@ function Pr() {
1846
1846
  this._status = M, this._error = a;
1847
1847
  var A = this._getSubscribeErrorContext();
1848
1848
  this.emit("error", A), this._reject(A);
1849
- for (var h in this._promises)
1850
- clearTimeout(this._promises[h].timeout), this._promises[h].reject(a), delete this._promises[h];
1849
+ for (var f in this._promises)
1850
+ clearTimeout(this._promises[f].timeout), this._promises[f].reject(a), delete this._promises[f];
1851
1851
  }
1852
1852
  }
1853
1853
  }, {
@@ -1913,7 +1913,7 @@ function Pr() {
1913
1913
  return Promise.resolve();
1914
1914
  if (this._isError())
1915
1915
  return Promise.reject(this._error);
1916
- var A = new Promise(function(h, E) {
1916
+ var A = new Promise(function(f, E) {
1917
1917
  var _ = setTimeout(function() {
1918
1918
  E({
1919
1919
  code: 0,
@@ -1922,7 +1922,7 @@ function Pr() {
1922
1922
  }, a._centrifuge._config.timeout);
1923
1923
  a._promises[a._nextPromiseId()] = {
1924
1924
  timeout: _,
1925
- resolve: h,
1925
+ resolve: f,
1926
1926
  reject: E
1927
1927
  };
1928
1928
  });
@@ -1971,14 +1971,14 @@ function Pr() {
1971
1971
  (function(c, u, l) {
1972
1972
  Object.defineProperty(u, "__esModule", {
1973
1973
  value: !0
1974
- }), u.backoff = b, u.errorExists = I, u.extend = B, u.isFunction = y, u.log = C, u.startsWith = f;
1975
- function f(Q, S) {
1974
+ }), u.backoff = b, u.errorExists = I, u.extend = B, u.isFunction = y, u.log = m, u.startsWith = h;
1975
+ function h(Q, S) {
1976
1976
  return Q.lastIndexOf(S, 0) === 0;
1977
1977
  }
1978
1978
  function y(Q) {
1979
1979
  return Q == null ? !1 : typeof Q == "function";
1980
1980
  }
1981
- function C(Q, S) {
1981
+ function m(Q, S) {
1982
1982
  if (l.g.console) {
1983
1983
  var P = l.g.console[Q];
1984
1984
  y(P) && P.apply(l.g.console, S);
@@ -2002,18 +2002,18 @@ function Pr() {
2002
2002
  187: (
2003
2003
  /***/
2004
2004
  (function(c) {
2005
- var u = typeof Reflect == "object" ? Reflect : null, l = u && typeof u.apply == "function" ? u.apply : function(g, p, m) {
2006
- return Function.prototype.apply.call(g, p, m);
2007
- }, f;
2008
- u && typeof u.ownKeys == "function" ? f = u.ownKeys : Object.getOwnPropertySymbols ? f = function(g) {
2005
+ var u = typeof Reflect == "object" ? Reflect : null, l = u && typeof u.apply == "function" ? u.apply : function(g, p, C) {
2006
+ return Function.prototype.apply.call(g, p, C);
2007
+ }, h;
2008
+ u && typeof u.ownKeys == "function" ? h = u.ownKeys : Object.getOwnPropertySymbols ? h = function(g) {
2009
2009
  return Object.getOwnPropertyNames(g).concat(Object.getOwnPropertySymbols(g));
2010
- } : f = function(g) {
2010
+ } : h = function(g) {
2011
2011
  return Object.getOwnPropertyNames(g);
2012
2012
  };
2013
2013
  function y(v) {
2014
2014
  console && console.warn && console.warn(v);
2015
2015
  }
2016
- var C = Number.isNaN || function(g) {
2016
+ var m = Number.isNaN || function(g) {
2017
2017
  return g !== g;
2018
2018
  };
2019
2019
  function b() {
@@ -2031,14 +2031,14 @@ function Pr() {
2031
2031
  return I;
2032
2032
  },
2033
2033
  set: function(v) {
2034
- if (typeof v != "number" || v < 0 || C(v))
2034
+ if (typeof v != "number" || v < 0 || m(v))
2035
2035
  throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + v + ".");
2036
2036
  I = v;
2037
2037
  }
2038
2038
  }), b.init = function() {
2039
2039
  (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
2040
2040
  }, b.prototype.setMaxListeners = function(g) {
2041
- if (typeof g != "number" || g < 0 || C(g))
2041
+ if (typeof g != "number" || g < 0 || m(g))
2042
2042
  throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + g + ".");
2043
2043
  return this._maxListeners = g, this;
2044
2044
  };
@@ -2048,7 +2048,7 @@ function Pr() {
2048
2048
  b.prototype.getMaxListeners = function() {
2049
2049
  return Q(this);
2050
2050
  }, b.prototype.emit = function(g) {
2051
- for (var p = [], m = 1; m < arguments.length; m++) p.push(arguments[m]);
2051
+ for (var p = [], C = 1; C < arguments.length; C++) p.push(arguments[C]);
2052
2052
  var d = g === "error", s = this._events;
2053
2053
  if (s !== void 0)
2054
2054
  d = d && s.error === void 0;
@@ -2061,17 +2061,17 @@ function Pr() {
2061
2061
  var A = new Error("Unhandled error." + (a ? " (" + a.message + ")" : ""));
2062
2062
  throw A.context = a, A;
2063
2063
  }
2064
- var h = s[g];
2065
- if (h === void 0)
2064
+ var f = s[g];
2065
+ if (f === void 0)
2066
2066
  return !1;
2067
- if (typeof h == "function")
2068
- l(h, this, p);
2067
+ if (typeof f == "function")
2068
+ l(f, this, p);
2069
2069
  else
2070
- for (var E = h.length, _ = q(h, E), m = 0; m < E; ++m)
2071
- l(_[m], this, p);
2070
+ for (var E = f.length, _ = q(f, E), C = 0; C < E; ++C)
2071
+ l(_[C], this, p);
2072
2072
  return !0;
2073
2073
  };
2074
- function S(v, g, p, m) {
2074
+ function S(v, g, p, C) {
2075
2075
  var d, s, a;
2076
2076
  if (B(p), s = v._events, s === void 0 ? (s = v._events = /* @__PURE__ */ Object.create(null), v._eventsCount = 0) : (s.newListener !== void 0 && (v.emit(
2077
2077
  "newListener",
@@ -2079,7 +2079,7 @@ function Pr() {
2079
2079
  p.listener ? p.listener : p
2080
2080
  ), s = v._events), a = s[g]), a === void 0)
2081
2081
  a = s[g] = p, ++v._eventsCount;
2082
- else if (typeof a == "function" ? a = s[g] = m ? [p, a] : [a, p] : m ? a.unshift(p) : a.push(p), d = Q(v), d > 0 && a.length > d && !a.warned) {
2082
+ else if (typeof a == "function" ? a = s[g] = C ? [p, a] : [a, p] : C ? a.unshift(p) : a.push(p), d = Q(v), d > 0 && a.length > d && !a.warned) {
2083
2083
  a.warned = !0;
2084
2084
  var A = new Error("Possible EventEmitter memory leak detected. " + a.length + " " + String(g) + " listeners added. Use emitter.setMaxListeners() to increase limit");
2085
2085
  A.name = "MaxListenersExceededWarning", A.emitter = v, A.type = g, A.count = a.length, y(A);
@@ -2096,45 +2096,45 @@ function Pr() {
2096
2096
  return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
2097
2097
  }
2098
2098
  function k(v, g, p) {
2099
- var m = { fired: !1, wrapFn: void 0, target: v, type: g, listener: p }, d = P.bind(m);
2100
- return d.listener = p, m.wrapFn = d, d;
2099
+ var C = { fired: !1, wrapFn: void 0, target: v, type: g, listener: p }, d = P.bind(C);
2100
+ return d.listener = p, C.wrapFn = d, d;
2101
2101
  }
2102
2102
  b.prototype.once = function(g, p) {
2103
2103
  return B(p), this.on(g, k(this, g, p)), this;
2104
2104
  }, b.prototype.prependOnceListener = function(g, p) {
2105
2105
  return B(p), this.prependListener(g, k(this, g, p)), this;
2106
2106
  }, b.prototype.removeListener = function(g, p) {
2107
- var m, d, s, a, A;
2107
+ var C, d, s, a, A;
2108
2108
  if (B(p), d = this._events, d === void 0)
2109
2109
  return this;
2110
- if (m = d[g], m === void 0)
2110
+ if (C = d[g], C === void 0)
2111
2111
  return this;
2112
- if (m === p || m.listener === p)
2113
- --this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete d[g], d.removeListener && this.emit("removeListener", g, m.listener || p));
2114
- else if (typeof m != "function") {
2115
- for (s = -1, a = m.length - 1; a >= 0; a--)
2116
- if (m[a] === p || m[a].listener === p) {
2117
- A = m[a].listener, s = a;
2112
+ if (C === p || C.listener === p)
2113
+ --this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete d[g], d.removeListener && this.emit("removeListener", g, C.listener || p));
2114
+ else if (typeof C != "function") {
2115
+ for (s = -1, a = C.length - 1; a >= 0; a--)
2116
+ if (C[a] === p || C[a].listener === p) {
2117
+ A = C[a].listener, s = a;
2118
2118
  break;
2119
2119
  }
2120
2120
  if (s < 0)
2121
2121
  return this;
2122
- s === 0 ? m.shift() : D(m, s), m.length === 1 && (d[g] = m[0]), d.removeListener !== void 0 && this.emit("removeListener", g, A || p);
2122
+ s === 0 ? C.shift() : D(C, s), C.length === 1 && (d[g] = C[0]), d.removeListener !== void 0 && this.emit("removeListener", g, A || p);
2123
2123
  }
2124
2124
  return this;
2125
2125
  }, b.prototype.off = b.prototype.removeListener, b.prototype.removeAllListeners = function(g) {
2126
- var p, m, d;
2127
- if (m = this._events, m === void 0)
2126
+ var p, C, d;
2127
+ if (C = this._events, C === void 0)
2128
2128
  return this;
2129
- if (m.removeListener === void 0)
2130
- return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : m[g] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete m[g]), this;
2129
+ if (C.removeListener === void 0)
2130
+ return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : C[g] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete C[g]), this;
2131
2131
  if (arguments.length === 0) {
2132
- var s = Object.keys(m), a;
2132
+ var s = Object.keys(C), a;
2133
2133
  for (d = 0; d < s.length; ++d)
2134
2134
  a = s[d], a !== "removeListener" && this.removeAllListeners(a);
2135
2135
  return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
2136
2136
  }
2137
- if (p = m[g], typeof p == "function")
2137
+ if (p = C[g], typeof p == "function")
2138
2138
  this.removeListener(g, p);
2139
2139
  else if (p !== void 0)
2140
2140
  for (d = p.length - 1; d >= 0; d--)
@@ -2142,10 +2142,10 @@ function Pr() {
2142
2142
  return this;
2143
2143
  };
2144
2144
  function R(v, g, p) {
2145
- var m = v._events;
2146
- if (m === void 0)
2145
+ var C = v._events;
2146
+ if (C === void 0)
2147
2147
  return [];
2148
- var d = m[g];
2148
+ var d = C[g];
2149
2149
  return d === void 0 ? [] : typeof d == "function" ? p ? [d.listener || d] : [d] : p ? G(d) : q(d, d.length);
2150
2150
  }
2151
2151
  b.prototype.listeners = function(g) {
@@ -2167,11 +2167,11 @@ function Pr() {
2167
2167
  return 0;
2168
2168
  }
2169
2169
  b.prototype.eventNames = function() {
2170
- return this._eventsCount > 0 ? f(this._events) : [];
2170
+ return this._eventsCount > 0 ? h(this._events) : [];
2171
2171
  };
2172
2172
  function q(v, g) {
2173
- for (var p = new Array(g), m = 0; m < g; ++m)
2174
- p[m] = v[m];
2173
+ for (var p = new Array(g), C = 0; C < g; ++C)
2174
+ p[C] = v[C];
2175
2175
  return p;
2176
2176
  }
2177
2177
  function D(v, g) {
@@ -2185,9 +2185,9 @@ function Pr() {
2185
2185
  return g;
2186
2186
  }
2187
2187
  function z(v, g) {
2188
- return new Promise(function(p, m) {
2188
+ return new Promise(function(p, C) {
2189
2189
  function d(a) {
2190
- v.removeListener(g, s), m(a);
2190
+ v.removeListener(g, s), C(a);
2191
2191
  }
2192
2192
  function s() {
2193
2193
  typeof v.removeListener == "function" && v.removeListener("error", d), p([].slice.call(arguments));
@@ -2198,12 +2198,12 @@ function Pr() {
2198
2198
  function J(v, g, p) {
2199
2199
  typeof v.on == "function" && M(v, "error", g, p);
2200
2200
  }
2201
- function M(v, g, p, m) {
2201
+ function M(v, g, p, C) {
2202
2202
  if (typeof v.on == "function")
2203
- m.once ? v.once(g, p) : v.on(g, p);
2203
+ C.once ? v.once(g, p) : v.on(g, p);
2204
2204
  else if (typeof v.addEventListener == "function")
2205
2205
  v.addEventListener(g, function d(s) {
2206
- m.once && v.removeEventListener(g, d), p(s);
2206
+ C.once && v.removeEventListener(g, d), p(s);
2207
2207
  });
2208
2208
  else
2209
2209
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof v);
@@ -2266,8 +2266,8 @@ function $t(e, t) {
2266
2266
  const u = i.subscribe(o);
2267
2267
  u.on("publish", (l) => {
2268
2268
  console.log("[Centrifuge] Publish event received:", l);
2269
- const f = Lr(l);
2270
- f && t(f);
2269
+ const h = Lr(l);
2270
+ h && t(h);
2271
2271
  }), u.on("subscribe", (l) => {
2272
2272
  console.log("[Centrifuge] ✅ Channel subscribed successfully:", o, l);
2273
2273
  }), u.on("error", (l) => {
@@ -2323,8 +2323,8 @@ function Rr(e) {
2323
2323
  }
2324
2324
  function Or(e, t, n = {}) {
2325
2325
  var S, P, k, R;
2326
- const r = [], o = (S = e == null ? void 0 : e.kaspi) == null ? void 0 : S.data, i = ((P = e == null ? void 0 : e.cards_v2) == null ? void 0 : P.data) || [], c = ((R = (k = e == null ? void 0 : e.payment_methods) == null ? void 0 : k.data) == null ? void 0 : R.attributes) || {}, u = ee(c.payment_method_kaspi), l = ee(c.payment_method_card), f = typeof window < "u" && window.self === window.top, C = Lt() === "ios", b = !!(n != null && n.onlyKaspiAvailable), I = !!(n != null && n.disableKaspi);
2327
- return o != null && o.isKaspiOnly && u && !I ? [Ae] : b ? o != null && o.isAvailable && u && !I ? [Ae] : [] : (ee(c.payment_method_apple_pay) && !Ke("apple_pay") && (qe() && f || ze() || C || Dn() === 16) && r.push(Mn), o != null && o.isAvailable && u && !I && r.push(Ae), l && i.filter((L) => !L.isExpired).forEach((L) => {
2326
+ const r = [], o = (S = e == null ? void 0 : e.kaspi) == null ? void 0 : S.data, i = ((P = e == null ? void 0 : e.cards_v2) == null ? void 0 : P.data) || [], c = ((R = (k = e == null ? void 0 : e.payment_methods) == null ? void 0 : k.data) == null ? void 0 : R.attributes) || {}, u = ee(c.payment_method_kaspi), l = ee(c.payment_method_card), h = typeof window < "u" && window.self === window.top, m = Lt() === "ios", b = !!(n != null && n.onlyKaspiAvailable), I = !!(n != null && n.disableKaspi);
2327
+ return o != null && o.isKaspiOnly && u && !I ? [Ae] : b ? o != null && o.isAvailable && u && !I ? [Ae] : [] : (ee(c.payment_method_apple_pay) && !Ke("apple_pay") && (qe() && h || ze() || m || Dn() === 16) && r.push(Mn), o != null && o.isAvailable && u && !I && r.push(Ae), l && i.filter((L) => !L.isExpired).forEach((L) => {
2328
2328
  r.push({
2329
2329
  iconType: Xe(L.attributes.mask),
2330
2330
  type: "card",
@@ -2341,13 +2341,13 @@ function Or(e, t, n = {}) {
2341
2341
  }
2342
2342
  function mt(e, t = {}) {
2343
2343
  var Q, S, P, k;
2344
- const n = (Q = e == null ? void 0 : e.kaspi) == null ? void 0 : Q.data, r = ((S = e == null ? void 0 : e.cards_v2) == null ? void 0 : S.data) || [], o = ((k = (P = e == null ? void 0 : e.payment_methods) == null ? void 0 : P.data) == null ? void 0 : k.attributes) || {}, i = ee(o.payment_method_kaspi), c = ee(o.payment_method_card), u = !!(t != null && t.disableKaspi), l = typeof window < "u" && window.self === window.top, y = Lt() === "ios", C = ee(o.payment_method_apple_pay) && !Ke("apple_pay") && (qe() && l || ze() || y || Dn() === 16), b = ee(o.payment_method_google_pay) && !Ke("google_pay") && !(t != null && t.disableGooglePay) && !qe() && !ze();
2344
+ const n = (Q = e == null ? void 0 : e.kaspi) == null ? void 0 : Q.data, r = ((S = e == null ? void 0 : e.cards_v2) == null ? void 0 : S.data) || [], o = ((k = (P = e == null ? void 0 : e.payment_methods) == null ? void 0 : P.data) == null ? void 0 : k.attributes) || {}, i = ee(o.payment_method_kaspi), c = ee(o.payment_method_card), u = !!(t != null && t.disableKaspi), l = typeof window < "u" && window.self === window.top, y = Lt() === "ios", m = ee(o.payment_method_apple_pay) && !Ke("apple_pay") && (qe() && l || ze() || y || Dn() === 16), b = ee(o.payment_method_google_pay) && !Ke("google_pay") && !(t != null && t.disableGooglePay) && !qe() && !ze();
2345
2345
  if (n != null && n.isKaspiOnly && i && !u || t != null && t.onlyKaspiAvailable && (n != null && n.isAvailable) && i && !u)
2346
2346
  return Ae;
2347
2347
  const I = Rr(e);
2348
2348
  if ((I == null ? void 0 : I.type) === "kaspi_pay" && (n != null && n.isAvailable) && i && !u)
2349
2349
  return Ae;
2350
- if ((I == null ? void 0 : I.type) === "apple_pay" && C) return Mn;
2350
+ if ((I == null ? void 0 : I.type) === "apple_pay" && m) return Mn;
2351
2351
  if ((I == null ? void 0 : I.type) === "google_pay" && b) return xn;
2352
2352
  if ((I == null ? void 0 : I.type) === "new_card" && ee(o.payment_method_new_card))
2353
2353
  return { iconType: "new_card", type: "new_card", label: "Оплата новой картой" };
@@ -2461,7 +2461,7 @@ async function tt(e, t, n, r, o) {
2461
2461
  return i.ok || await ue(i, o), i.json();
2462
2462
  }
2463
2463
  async function tn(e, t, n) {
2464
- var u, l, f, y;
2464
+ var u, l, h, y;
2465
2465
  const r = await fetch(`${e}/api/v2/oauth2/tokens`, {
2466
2466
  method: "POST",
2467
2467
  headers: {
@@ -2476,12 +2476,12 @@ async function tn(e, t, n) {
2476
2476
  })
2477
2477
  });
2478
2478
  r.ok || await ue(r, "Не удалось авторизоваться через track_id");
2479
- const o = await r.json(), i = (o == null ? void 0 : o.access_token) ?? ((l = (u = o == null ? void 0 : o.data) == null ? void 0 : u.attributes) == null ? void 0 : l.access_token), c = (o == null ? void 0 : o.refresh_token) ?? ((y = (f = o == null ? void 0 : o.data) == null ? void 0 : f.attributes) == null ? void 0 : y.refresh_token) ?? null;
2479
+ const o = await r.json(), i = (o == null ? void 0 : o.access_token) ?? ((l = (u = o == null ? void 0 : o.data) == null ? void 0 : u.attributes) == null ? void 0 : l.access_token), c = (o == null ? void 0 : o.refresh_token) ?? ((y = (h = o == null ? void 0 : o.data) == null ? void 0 : h.attributes) == null ? void 0 : y.refresh_token) ?? null;
2480
2480
  if (!i) throw new Error("В ответе отсутствует access_token");
2481
2481
  return { access_token: i, refresh_token: c };
2482
2482
  }
2483
2483
  async function Dr(e, t, n) {
2484
- var u, l, f, y;
2484
+ var u, l, h, y;
2485
2485
  const r = await fetch(`${e}/api/v2/oauth2/tokens`, {
2486
2486
  method: "POST",
2487
2487
  headers: { "Content-Type": "application/json" },
@@ -2492,7 +2492,7 @@ async function Dr(e, t, n) {
2492
2492
  })
2493
2493
  });
2494
2494
  r.ok || await ue(r, "Не удалось обновить токен по refresh_token");
2495
- const o = await r.json(), i = (o == null ? void 0 : o.access_token) ?? ((l = (u = o == null ? void 0 : o.data) == null ? void 0 : u.attributes) == null ? void 0 : l.access_token), c = (o == null ? void 0 : o.refresh_token) ?? ((y = (f = o == null ? void 0 : o.data) == null ? void 0 : f.attributes) == null ? void 0 : y.refresh_token) ?? null;
2495
+ const o = await r.json(), i = (o == null ? void 0 : o.access_token) ?? ((l = (u = o == null ? void 0 : o.data) == null ? void 0 : u.attributes) == null ? void 0 : l.access_token), c = (o == null ? void 0 : o.refresh_token) ?? ((y = (h = o == null ? void 0 : o.data) == null ? void 0 : h.attributes) == null ? void 0 : y.refresh_token) ?? null;
2496
2496
  if (!i) throw new Error("В ответе отсутствует access_token");
2497
2497
  return { access_token: i, refresh_token: c };
2498
2498
  }
@@ -2747,12 +2747,12 @@ function zr(...e) {
2747
2747
  const l = c[u];
2748
2748
  if (l.length > 1024)
2749
2749
  continue;
2750
- const f = an.test(l) ? l.replace(an, "$1") : l;
2751
- if (!f.match(/\S*Error: /)) {
2750
+ const h = an.test(l) ? l.replace(an, "$1") : l;
2751
+ if (!h.match(/\S*Error: /)) {
2752
2752
  for (const y of t) {
2753
- const C = y(f);
2754
- if (C) {
2755
- i.push(C);
2753
+ const m = y(h);
2754
+ if (m) {
2755
+ i.push(m);
2756
2756
  break;
2757
2757
  }
2758
2758
  }
@@ -2858,10 +2858,10 @@ function no(e, t = {}) {
2858
2858
  const r = 5, o = [];
2859
2859
  let i = 0, c = 0;
2860
2860
  const u = " > ", l = u.length;
2861
- let f;
2862
- const y = Array.isArray(t) ? t : t.keyAttrs, C = !Array.isArray(t) && t.maxStringLength || to;
2863
- for (; n && i++ < r && (f = ro(n, y), !(f === "html" || i > 1 && c + o.length * l + f.length >= C)); )
2864
- o.push(f), c += f.length, n = n.parentNode;
2861
+ let h;
2862
+ const y = Array.isArray(t) ? t : t.keyAttrs, m = !Array.isArray(t) && t.maxStringLength || to;
2863
+ for (; n && i++ < r && (h = ro(n, y), !(h === "html" || i > 1 && c + o.length * l + h.length >= m)); )
2864
+ o.push(h), c += h.length, n = n.parentNode;
2865
2865
  return o.reverse().join(u);
2866
2866
  } catch {
2867
2867
  return "<unknown>";
@@ -3015,8 +3015,8 @@ const Wn = io();
3015
3015
  const { performance: e } = j;
3016
3016
  if (!e || !e.now)
3017
3017
  return;
3018
- const t = 3600 * 1e3, n = e.now(), r = Date.now(), o = e.timeOrigin ? Math.abs(e.timeOrigin + n - r) : t, i = o < t, c = e.timing && e.timing.navigationStart, l = typeof c == "number" ? Math.abs(c + n - r) : t, f = l < t;
3019
- return i || f ? o <= l ? e.timeOrigin : c : r;
3018
+ const t = 3600 * 1e3, n = e.now(), r = Date.now(), o = e.timeOrigin ? Math.abs(e.timeOrigin + n - r) : t, i = o < t, c = e.timing && e.timing.navigationStart, l = typeof c == "number" ? Math.abs(c + n - r) : t, h = l < t;
3019
+ return i || h ? o <= l ? e.timeOrigin : c : r;
3020
3020
  })();
3021
3021
  function te() {
3022
3022
  const e = j, t = e.crypto || e.msCrypto;
@@ -3414,8 +3414,8 @@ class Mt {
3414
3414
  const n = typeof t == "function" ? t(this) : t, [r, o] = n instanceof ce ? (
3415
3415
  // eslint-disable-next-line deprecation/deprecation
3416
3416
  [n.getScopeData(), n.getRequestSession()]
3417
- ) : be(n) ? [t, t.requestSession] : [], { tags: i, extra: c, user: u, contexts: l, level: f, fingerprint: y = [], propagationContext: C } = r || {};
3418
- return this._tags = { ...this._tags, ...i }, this._extra = { ...this._extra, ...c }, this._contexts = { ...this._contexts, ...l }, u && Object.keys(u).length && (this._user = u), f && (this._level = f), y.length && (this._fingerprint = y), C && (this._propagationContext = C), o && (this._requestSession = o), this;
3417
+ ) : be(n) ? [t, t.requestSession] : [], { tags: i, extra: c, user: u, contexts: l, level: h, fingerprint: y = [], propagationContext: m } = r || {};
3418
+ return this._tags = { ...this._tags, ...i }, this._extra = { ...this._extra, ...c }, this._contexts = { ...this._contexts, ...l }, u && Object.keys(u).length && (this._user = u), h && (this._level = h), y.length && (this._fingerprint = y), m && (this._propagationContext = m), o && (this._requestSession = o), this;
3419
3419
  }
3420
3420
  /**
3421
3421
  * @inheritDoc
@@ -3817,10 +3817,10 @@ function jo(e) {
3817
3817
  const o = n.spanContext().traceState, i = o && o.get("sentry.dsc"), c = i && wo(i);
3818
3818
  if (c)
3819
3819
  return c;
3820
- const u = er(e.spanContext().traceId, t), l = Ut(n), f = l.data || {}, y = f[Io];
3820
+ const u = er(e.spanContext().traceId, t), l = Ut(n), h = l.data || {}, y = h[Io];
3821
3821
  y != null && (u.sample_rate = `${y}`);
3822
- const C = f[vo], b = l.description;
3823
- return C !== "url" && b && (u.transaction = b), Fo() && (u.sampled = String(Do(n))), t.emit("createDsc", u, n), u;
3822
+ const m = h[vo], b = l.description;
3823
+ return m !== "url" && b && (u.transaction = b), Fo() && (u.sampled = String(Do(n))), t.emit("createDsc", u, n), u;
3824
3824
  }
3825
3825
  function Jo(e) {
3826
3826
  if (typeof e == "boolean")
@@ -3853,13 +3853,13 @@ function Ko(e) {
3853
3853
  return;
3854
3854
  }
3855
3855
  const [n, r, o = "", i = "", c = "", u = ""] = t.slice(1);
3856
- let l = "", f = u;
3857
- const y = f.split("/");
3858
- if (y.length > 1 && (l = y.slice(0, -1).join("/"), f = y.pop()), f) {
3859
- const C = f.match(/^\d+/);
3860
- C && (f = C[0]);
3856
+ let l = "", h = u;
3857
+ const y = h.split("/");
3858
+ if (y.length > 1 && (l = y.slice(0, -1).join("/"), h = y.pop()), h) {
3859
+ const m = h.match(/^\d+/);
3860
+ m && (h = m[0]);
3861
3861
  }
3862
- return tr({ host: i, pass: o, path: l, projectId: f, port: c, protocol: n, publicKey: r });
3862
+ return tr({ host: i, pass: o, path: l, projectId: h, port: c, protocol: n, publicKey: r });
3863
3863
  }
3864
3864
  function tr(e) {
3865
3865
  return {
@@ -3931,25 +3931,25 @@ function St(e, t, n = 1 / 0, r = 1 / 0, o = Yo()) {
3931
3931
  return u.replace("object ", "");
3932
3932
  if (i(t))
3933
3933
  return "[Circular ~]";
3934
- const f = t;
3935
- if (f && typeof f.toJSON == "function")
3934
+ const h = t;
3935
+ if (h && typeof h.toJSON == "function")
3936
3936
  try {
3937
- const I = f.toJSON();
3937
+ const I = h.toJSON();
3938
3938
  return St("", I, l - 1, r, o);
3939
3939
  } catch {
3940
3940
  }
3941
3941
  const y = Array.isArray(t) ? [] : {};
3942
- let C = 0;
3942
+ let m = 0;
3943
3943
  const b = Kn(t);
3944
3944
  for (const I in b) {
3945
3945
  if (!Object.prototype.hasOwnProperty.call(b, I))
3946
3946
  continue;
3947
- if (C >= r) {
3947
+ if (m >= r) {
3948
3948
  y[I] = "[MaxProperties ~]";
3949
3949
  break;
3950
3950
  }
3951
3951
  const B = b[I];
3952
- y[I] = St(I, B, l - 1, r, o), C++;
3952
+ y[I] = St(I, B, l - 1, r, o), m++;
3953
3953
  }
3954
3954
  return c(t), y;
3955
3955
  }
@@ -4137,9 +4137,9 @@ function ls(e) {
4137
4137
  else {
4138
4138
  const c = e(o);
4139
4139
  for (let u = c.length - 1; u >= 0; u--) {
4140
- const l = c[u], f = l && l.filename, y = t[o];
4141
- if (f && y) {
4142
- r[f] = y, Ne[o] = [f, y];
4140
+ const l = c[u], h = l && l.filename, y = t[o];
4141
+ if (h && y) {
4142
+ r[h] = y, Ne[o] = [h, y];
4143
4143
  break;
4144
4144
  }
4145
4145
  }
@@ -4160,14 +4160,14 @@ function Sn(e, t) {
4160
4160
  level: c,
4161
4161
  sdkProcessingMetadata: u,
4162
4162
  breadcrumbs: l,
4163
- fingerprint: f,
4163
+ fingerprint: h,
4164
4164
  eventProcessors: y,
4165
- attachments: C,
4165
+ attachments: m,
4166
4166
  propagationContext: b,
4167
4167
  transactionName: I,
4168
4168
  span: B
4169
4169
  } = t;
4170
- Me(e, "extra", n), Me(e, "tags", r), Me(e, "user", o), Me(e, "contexts", i), e.sdkProcessingMetadata = ct(e.sdkProcessingMetadata, u, 2), c && (e.level = c), I && (e.transactionName = I), B && (e.span = B), l.length && (e.breadcrumbs = [...e.breadcrumbs, ...l]), f.length && (e.fingerprint = [...e.fingerprint, ...f]), y.length && (e.eventProcessors = [...e.eventProcessors, ...y]), C.length && (e.attachments = [...e.attachments, ...C]), e.propagationContext = { ...e.propagationContext, ...b };
4170
+ Me(e, "extra", n), Me(e, "tags", r), Me(e, "user", o), Me(e, "contexts", i), e.sdkProcessingMetadata = ct(e.sdkProcessingMetadata, u, 2), c && (e.level = c), I && (e.transactionName = I), B && (e.span = B), l.length && (e.breadcrumbs = [...e.breadcrumbs, ...l]), h.length && (e.fingerprint = [...e.fingerprint, ...h]), y.length && (e.eventProcessors = [...e.eventProcessors, ...y]), m.length && (e.attachments = [...e.attachments, ...m]), e.propagationContext = { ...e.propagationContext, ...b };
4171
4171
  }
4172
4172
  function Me(e, t, n) {
4173
4173
  e[t] = ct(e[t], n, 1);
@@ -4175,12 +4175,12 @@ function Me(e, t, n) {
4175
4175
  function ds(e, t) {
4176
4176
  const { extra: n, tags: r, user: o, contexts: i, level: c, transactionName: u } = t, l = V(n);
4177
4177
  l && Object.keys(l).length && (e.extra = { ...l, ...e.extra });
4178
- const f = V(r);
4179
- f && Object.keys(f).length && (e.tags = { ...f, ...e.tags });
4178
+ const h = V(r);
4179
+ h && Object.keys(h).length && (e.tags = { ...h, ...e.tags });
4180
4180
  const y = V(o);
4181
4181
  y && Object.keys(y).length && (e.user = { ...y, ...e.user });
4182
- const C = V(i);
4183
- C && Object.keys(C).length && (e.contexts = { ...C, ...e.contexts }), c && (e.level = c), u && e.type !== "transaction" && (e.transaction = u);
4182
+ const m = V(i);
4183
+ m && Object.keys(m).length && (e.contexts = { ...m, ...e.contexts }), c && (e.level = c), u && e.type !== "transaction" && (e.transaction = u);
4184
4184
  }
4185
4185
  function fs(e, t) {
4186
4186
  const n = [...e.breadcrumbs || [], ...t];
@@ -4211,11 +4211,11 @@ function ys(e, t, n, r, o, i) {
4211
4211
  ...t,
4212
4212
  event_id: t.event_id || n.event_id || te(),
4213
4213
  timestamp: t.timestamp || at()
4214
- }, f = n.integrations || e.integrations.map((S) => S.name);
4215
- ms(l, e), Es(l, f), o && o.emit("applyFrameMetadata", t), t.type === void 0 && Cs(l, e.stackParser);
4214
+ }, h = n.integrations || e.integrations.map((S) => S.name);
4215
+ ms(l, e), Es(l, h), o && o.emit("applyFrameMetadata", t), t.type === void 0 && Cs(l, e.stackParser);
4216
4216
  const y = Is(r, n.captureContext);
4217
4217
  n.mechanism && _e(l, n.mechanism);
4218
- const C = o ? o.getEventProcessors() : [], b = mo().getScopeData();
4218
+ const m = o ? o.getEventProcessors() : [], b = mo().getScopeData();
4219
4219
  if (i) {
4220
4220
  const S = i.getScopeData();
4221
4221
  Sn(b, S);
@@ -4227,7 +4227,7 @@ function ys(e, t, n, r, o, i) {
4227
4227
  const I = [...n.attachments || [], ...b.attachments];
4228
4228
  I.length && (n.attachments = I), As(l, b);
4229
4229
  const B = [
4230
- ...C,
4230
+ ...m,
4231
4231
  // Run scope event processors _after_ all other processors
4232
4232
  ...b.eventProcessors
4233
4233
  ];
@@ -4587,8 +4587,8 @@ class Ts {
4587
4587
  if (i) {
4588
4588
  o = !0;
4589
4589
  for (const l of i) {
4590
- const f = l.mechanism;
4591
- if (f && f.handled === !1) {
4590
+ const h = l.mechanism;
4591
+ if (h && h.handled === !1) {
4592
4592
  r = !0;
4593
4593
  break;
4594
4594
  }
@@ -4680,7 +4680,7 @@ class Ts {
4680
4680
  * @returns A SyncPromise that resolves with the event or rejects in case event was/will not be send.
4681
4681
  */
4682
4682
  _processEvent(t, n, r) {
4683
- const o = this.getOptions(), { sampleRate: i } = o, c = ir(t), u = sr(t), l = t.type || "error", f = `before send for type \`${l}\``, y = typeof i > "u" ? void 0 : Jo(i);
4683
+ const o = this.getOptions(), { sampleRate: i } = o, c = ir(t), u = sr(t), l = t.type || "error", h = `before send for type \`${l}\``, y = typeof i > "u" ? void 0 : Jo(i);
4684
4684
  if (u && typeof y == "number" && Math.random() > y)
4685
4685
  return this.recordDroppedEvent("sample_rate", "error", t), We(
4686
4686
  new Y(
@@ -4688,21 +4688,21 @@ class Ts {
4688
4688
  "log"
4689
4689
  )
4690
4690
  );
4691
- const C = l === "replay_event" ? "replay" : l, I = (t.sdkProcessingMetadata || {}).capturedSpanIsolationScope;
4691
+ const m = l === "replay_event" ? "replay" : l, I = (t.sdkProcessingMetadata || {}).capturedSpanIsolationScope;
4692
4692
  return this._prepareEvent(t, n, r, I).then((B) => {
4693
4693
  if (B === null)
4694
- throw this.recordDroppedEvent("event_processor", C, t), new Y("An event processor returned `null`, will not send event.", "log");
4694
+ throw this.recordDroppedEvent("event_processor", m, t), new Y("An event processor returned `null`, will not send event.", "log");
4695
4695
  if (n.data && n.data.__sentry__ === !0)
4696
4696
  return B;
4697
4697
  const S = Rs(this, o, B, n);
4698
- return Ls(S, f);
4698
+ return Ls(S, h);
4699
4699
  }).then((B) => {
4700
4700
  if (B === null) {
4701
- if (this.recordDroppedEvent("before_send", C, t), c) {
4701
+ if (this.recordDroppedEvent("before_send", m, t), c) {
4702
4702
  const k = 1 + (t.spans || []).length;
4703
4703
  this.recordDroppedEvent("before_send", "span", k);
4704
4704
  }
4705
- throw new Y(`${f} returned \`null\`, will not send event.`, "log");
4705
+ throw new Y(`${h} returned \`null\`, will not send event.`, "log");
4706
4706
  }
4707
4707
  const Q = r && r.getSession();
4708
4708
  if (!c && Q && this._updateSessionFromEvent(Q, B), c) {
@@ -4800,8 +4800,8 @@ function Rs(e, t, n, r) {
4800
4800
  if (n.spans && c) {
4801
4801
  const u = [];
4802
4802
  for (const l of n.spans) {
4803
- const f = c(l);
4804
- f ? u.push(f) : (Uo(), e.recordDroppedEvent("before_send", "span"));
4803
+ const h = c(l);
4804
+ h ? u.push(h) : (Uo(), e.recordDroppedEvent("before_send", "span"));
4805
4805
  }
4806
4806
  n.spans = u;
4807
4807
  }
@@ -4844,15 +4844,15 @@ function Os(e) {
4844
4844
  }
4845
4845
  function i(c) {
4846
4846
  return new W((u, l) => {
4847
- let f = t.length;
4848
- if (!f)
4847
+ let h = t.length;
4848
+ if (!h)
4849
4849
  return u(!0);
4850
4850
  const y = setTimeout(() => {
4851
4851
  c && c > 0 && u(!1);
4852
4852
  }, c);
4853
- t.forEach((C) => {
4854
- he(C).then(() => {
4855
- --f || (clearTimeout(y), u(!0));
4853
+ t.forEach((m) => {
4854
+ he(m).then(() => {
4855
+ --h || (clearTimeout(y), u(!0));
4856
4856
  }, l);
4857
4857
  });
4858
4858
  });
@@ -4883,11 +4883,11 @@ function Us(e, { statusCode: t, headers: n }, r = Date.now()) {
4883
4883
  }, i = n && n["x-sentry-rate-limits"], c = n && n["retry-after"];
4884
4884
  if (i)
4885
4885
  for (const u of i.trim().split(",")) {
4886
- const [l, f, , , y] = u.split(":", 5), C = parseInt(l, 10), b = (isNaN(C) ? 60 : C) * 1e3;
4887
- if (!f)
4886
+ const [l, h, , , y] = u.split(":", 5), m = parseInt(l, 10), b = (isNaN(m) ? 60 : m) * 1e3;
4887
+ if (!h)
4888
4888
  o.all = r + b;
4889
4889
  else
4890
- for (const I of f.split(";"))
4890
+ for (const I of h.split(";"))
4891
4891
  I === "metric_bucket" ? (!y || y.split(";").includes("custom")) && (o[I] = r + b) : o[I] = r + b;
4892
4892
  }
4893
4893
  else c ? o.all = r + Ds(c, r) : t === 429 && (o.all = r + 60 * 1e3);
@@ -4901,32 +4901,32 @@ function Xs(e, t, n = Os(
4901
4901
  const o = (c) => n.drain(c);
4902
4902
  function i(c) {
4903
4903
  const u = [];
4904
- if (vn(c, (C, b) => {
4904
+ if (vn(c, (m, b) => {
4905
4905
  const I = In(b);
4906
4906
  if (xs(r, I)) {
4907
- const B = Pn(C, b);
4907
+ const B = Pn(m, b);
4908
4908
  e.recordDroppedEvent("ratelimit_backoff", I, B);
4909
4909
  } else
4910
- u.push(C);
4910
+ u.push(m);
4911
4911
  }), u.length === 0)
4912
4912
  return he({});
4913
- const l = we(c[0], u), f = (C) => {
4913
+ const l = we(c[0], u), h = (m) => {
4914
4914
  vn(l, (b, I) => {
4915
4915
  const B = Pn(b, I);
4916
- e.recordDroppedEvent(C, In(I), B);
4916
+ e.recordDroppedEvent(m, In(I), B);
4917
4917
  });
4918
4918
  }, y = () => t({ body: ns(l) }).then(
4919
- (C) => (C.statusCode !== void 0 && (C.statusCode < 200 || C.statusCode >= 300) && U && N.warn(`Sentry responded with status code ${C.statusCode} to sent event.`), r = Us(r, C), C),
4920
- (C) => {
4921
- throw f("network_error"), C;
4919
+ (m) => (m.statusCode !== void 0 && (m.statusCode < 200 || m.statusCode >= 300) && U && N.warn(`Sentry responded with status code ${m.statusCode} to sent event.`), r = Us(r, m), m),
4920
+ (m) => {
4921
+ throw h("network_error"), m;
4922
4922
  }
4923
4923
  );
4924
4924
  return n.add(y).then(
4925
- (C) => C,
4926
- (C) => {
4927
- if (C instanceof Y)
4928
- return U && N.error("Skipped sending event because buffer is full."), f("queue_overflow"), he({});
4929
- throw C;
4925
+ (m) => m,
4926
+ (m) => {
4927
+ if (m instanceof Y)
4928
+ return U && N.error("Skipped sending event because buffer is full."), h("queue_overflow"), he({});
4929
+ throw m;
4930
4930
  }
4931
4931
  );
4932
4932
  }
@@ -4987,8 +4987,8 @@ function zs(e, t, n, r) {
4987
4987
  extra: u
4988
4988
  };
4989
4989
  if (n) {
4990
- const f = Ft(e, n);
4991
- f.length && (l.exception.values[0].stacktrace = { frames: f });
4990
+ const h = Ft(e, n);
4991
+ h.length && (l.exception.values[0].stacktrace = { frames: h });
4992
4992
  }
4993
4993
  return l;
4994
4994
  }
@@ -5276,7 +5276,7 @@ function Bi(e) {
5276
5276
  transport: ui,
5277
5277
  stackParser: vi,
5278
5278
  integrations: [],
5279
- release: "1.1.50",
5279
+ release: "1.1.52",
5280
5280
  environment: e.environment || "production"
5281
5281
  }), n = new ce();
5282
5282
  n.setClient(t), n.setTags(e), t.init(), wt = n;
@@ -5474,7 +5474,7 @@ function Di(e, t, n, r) {
5474
5474
  }
5475
5475
  function Mi(e, t, n, r, o) {
5476
5476
  if (!e) return "";
5477
- const i = new Date(e.expires_at), c = isNaN(i.getTime()) ? "" : `${String(i.getDate()).padStart(2, "0")}.${String(i.getMonth() + 1).padStart(2, "0")}`, u = c ? r("couponUntil", { date: c }) : "", l = Number(e.reward_amount), f = Number.isFinite(l) && l > 0 ? $(l, "ru", o) : null;
5477
+ const i = new Date(e.expires_at), c = isNaN(i.getTime()) ? "" : `${String(i.getDate()).padStart(2, "0")}.${String(i.getMonth() + 1).padStart(2, "0")}`, u = c ? r("couponUntil", { date: c }) : "", l = Number(e.reward_amount), h = Number.isFinite(l) && l > 0 ? $(l, "ru", o) : null;
5478
5478
  return `
5479
5479
  <div class="choco-widget-balance-toggle${n ? " choco-widget-balance-toggle--disabled" : ""}" data-action="toggle-coupon">
5480
5480
  <div class="choco-widget-balance-info">
@@ -5483,11 +5483,11 @@ function Mi(e, t, n, r, o) {
5483
5483
  </div>
5484
5484
  </div>
5485
5485
  <div class="choco-widget-balance-label-wrapper">
5486
- ${f ? `
5486
+ ${h ? `
5487
5487
  <div class="choco-widget-balance-icon">
5488
5488
  ${Xt}
5489
5489
  </div>
5490
- <div class="choco-widget-balance-amount">${f}</div>
5490
+ <div class="choco-widget-balance-amount">${h}</div>
5491
5491
  ` : ""}
5492
5492
  <label class="choco-widget-toggle">
5493
5493
  <input type="checkbox" ${t && !n ? "checked" : ""} ${n ? "disabled" : ""} />
@@ -5499,7 +5499,7 @@ function Mi(e, t, n, r, o) {
5499
5499
  }
5500
5500
  function xi(e, t, n, r, o, i, c, u, l) {
5501
5501
  if (!e && !n && !o) return "";
5502
- const f = e ? `
5502
+ const h = e ? `
5503
5503
  <div class="choco-widget-balance-toggle" data-action="toggle-balance">
5504
5504
  <div class="choco-widget-balance-info">
5505
5505
  <div class="choco-widget-balance-text">
@@ -5521,7 +5521,7 @@ function xi(e, t, n, r, o, i, c, u, l) {
5521
5521
  return `
5522
5522
  <div class="choco-widget-balance-section">
5523
5523
  ${Mi(o, i, c, u, l)}
5524
- ${f}
5524
+ ${h}
5525
5525
  ${Di(n, r, u, l)}
5526
5526
  </div>
5527
5527
  `;
@@ -5548,9 +5548,9 @@ function Fi(e) {
5548
5548
  selectedMethod: c,
5549
5549
  balanceFormatted: u,
5550
5550
  useBalance: l,
5551
- bonuses: f,
5551
+ bonuses: h,
5552
5552
  useBonuses: y,
5553
- coupon: C,
5553
+ coupon: m,
5554
5554
  useCoupon: b,
5555
5555
  couponDisabled: I,
5556
5556
  cashbackFormatted: B,
@@ -5561,7 +5561,7 @@ function Fi(e) {
5561
5561
  freedomAmountFormatted: R,
5562
5562
  t: L,
5563
5563
  currency: q
5564
- } = e, D = (o == null ? void 0 : o.label) ?? L("selectMethod"), G = Ye(o), z = lr(i, c), J = xi(u, l, f, y, C, b, I, L, q), M = Ui(B, L), v = (c == null ? void 0 : c.type) === "google_pay", g = (c == null ? void 0 : c.type) === "apple_pay", p = v || g;
5564
+ } = e, D = (o == null ? void 0 : o.label) ?? L("selectMethod"), G = Ye(o), z = lr(i, c), J = xi(u, l, h, y, m, b, I, L, q), M = Ui(B, L), v = (c == null ? void 0 : c.type) === "google_pay", g = (c == null ? void 0 : c.type) === "apple_pay", p = v || g;
5565
5565
  return `
5566
5566
  <div class="choco-widget-bottom-bar" role="region" aria-label="${L("paymentMethod")}">
5567
5567
  ${J}
@@ -5722,10 +5722,10 @@ function qi(e) {
5722
5722
  Ar(e) && (e.container.style.setProperty("--choco-widget-accent-color", e.config.color), e.container.innerHTML = Xi());
5723
5723
  }
5724
5724
  function zi(e) {
5725
- var y, C, b, I, B;
5725
+ var y, m, b, I, B;
5726
5726
  if (e._destroyed || !Ar(e)) return;
5727
5727
  e.container.style.setProperty("--choco-widget-accent-color", e.config.color), e.container.classList.remove("choco-one-click-widget--visible");
5728
- const t = e.getAvailablePaymentMethods(), n = (y = e.checkoutContext) == null ? void 0 : y.data, r = e.config.currency || "KZT", o = (I = (b = (C = n == null ? void 0 : n.balance) == null ? void 0 : C.data) == null ? void 0 : b.money) == null ? void 0 : I[r], i = !e.config.disableUseBalance && o > 0 ? $(o, e.config.locale, e.config.currency) : null, c = (B = n == null ? void 0 : n.cashback) == null ? void 0 : B.data, u = (c == null ? void 0 : c.cashbackAmount) > 0 ? $(c.cashbackAmount, e.config.locale, e.config.currency) : null, l = e._getPayableAmount(), f = l < e.config.amount;
5728
+ const t = e.getAvailablePaymentMethods(), n = (y = e.checkoutContext) == null ? void 0 : y.data, r = e.config.currency || "KZT", o = (I = (b = (m = n == null ? void 0 : n.balance) == null ? void 0 : m.data) == null ? void 0 : b.money) == null ? void 0 : I[r], i = !e.config.disableUseBalance && o > 0 ? $(o, e.config.locale, e.config.currency) : null, c = (B = n == null ? void 0 : n.cashback) == null ? void 0 : B.data, u = (c == null ? void 0 : c.cashbackAmount) > 0 ? $(c.cashbackAmount, e.config.locale, e.config.currency) : null, l = e._getPayableAmount(), h = l < e.config.amount;
5729
5729
  e.container.innerHTML = Fi({
5730
5730
  amountFormatted: $(l, e.config.locale, e.config.currency),
5731
5731
  originalAmountFormatted: $(
@@ -5733,7 +5733,7 @@ function zi(e) {
5733
5733
  e.config.locale,
5734
5734
  e.config.currency
5735
5735
  ),
5736
- showOriginalAmount: f,
5736
+ showOriginalAmount: h,
5737
5737
  paymentMethod: e.selectedPaymentMethod,
5738
5738
  methods: t,
5739
5739
  selectedMethod: e.selectedPaymentMethod,
@@ -5750,7 +5750,7 @@ function zi(e) {
5750
5750
  loading: e.loading,
5751
5751
  showFreedomBtn: !e.config.isFridge && e.config.onFreedomLink !== null,
5752
5752
  freedomAmountFormatted: $(
5753
- Math.round(l * 0.84),
5753
+ Math.round(l * 0.94),
5754
5754
  e.config.locale,
5755
5755
  e.config.currency
5756
5756
  ),
@@ -5803,8 +5803,8 @@ function dr(e) {
5803
5803
  t && e.selectedPaymentMethod && (t.className = `choco-widget-payment-method ${e.selectedPaymentMethod.type}`), n && e.selectedPaymentMethod && (n.className = `choco-widget-method-name ${e.selectedPaymentMethod.type}`, n.textContent = e.selectedPaymentMethod.label), r && e.selectedPaymentMethod && (r.className = `choco-widget-method-icon-wrapper ${e.selectedPaymentMethod.type}`, r.innerHTML = ji(e.selectedPaymentMethod)), fr(e);
5804
5804
  }
5805
5805
  function Je(e) {
5806
- var C, b, I, B, Q, S;
5807
- const t = (C = e.container) == null ? void 0 : C.querySelector(".choco-widget-pay-button"), n = (b = e.container) == null ? void 0 : b.querySelector(
5806
+ var m, b, I, B, Q, S;
5807
+ const t = (m = e.container) == null ? void 0 : m.querySelector(".choco-widget-pay-button"), n = (b = e.container) == null ? void 0 : b.querySelector(
5808
5808
  ".choco-widget-google-pay-amount"
5809
5809
  ), r = (I = e.container) == null ? void 0 : I.querySelector(
5810
5810
  ".choco-widget-google-pay-amount-label"
@@ -5814,7 +5814,7 @@ function Je(e) {
5814
5814
  ), i = (Q = e.container) == null ? void 0 : Q.querySelector(
5815
5815
  ".choco-widget-google-pay-amount-value-number"
5816
5816
  );
5817
- const c = e._getPayableAmount(), u = $(c, e.config.locale, e.config.currency), l = c < e.config.amount, f = $(
5817
+ const c = e._getPayableAmount(), u = $(c, e.config.locale, e.config.currency), l = c < e.config.amount, h = $(
5818
5818
  e.config.amount,
5819
5819
  e.config.locale,
5820
5820
  e.config.currency
@@ -5824,17 +5824,17 @@ function Je(e) {
5824
5824
  t.textContent = P, t.setAttribute("aria-label", P);
5825
5825
  }
5826
5826
  const y = (S = e.container) == null ? void 0 : S.querySelector(".choco-widget-freedom-card-btn");
5827
- if (y && (y.textContent = `от ${$(Math.round(c * 0.84), e.config.locale, e.config.currency)} по карте Freedom`), r && (r.textContent = `${e.t("total")} ${u}`), !l) {
5827
+ if (y && (y.textContent = `от ${$(Math.round(c * 0.94), e.config.locale, e.config.currency)} по карте Freedom`), r && (r.textContent = `${e.t("total")} ${u}`), !l) {
5828
5828
  o == null || o.remove();
5829
5829
  return;
5830
5830
  }
5831
5831
  !o && n && (o = document.createElement("div"), o.className = "choco-widget-google-pay-amount-value", o.innerHTML = `${e.t("instead")} <span class="choco-widget-google-pay-amount-value-number"></span>`, n.appendChild(o), i = o.querySelector(
5832
5832
  ".choco-widget-google-pay-amount-value-number"
5833
- )), i ? i.textContent = f : o && (o.textContent = `${e.t("instead")} ${f}`);
5833
+ )), i ? i.textContent = h : o && (o.textContent = `${e.t("instead")} ${h}`);
5834
5834
  }
5835
5835
  function fr(e) {
5836
- var l, f, y, C, b, I, B, Q, S, P;
5837
- const t = ((l = e.selectedPaymentMethod) == null ? void 0 : l.type) === "google_pay", n = ((f = e.selectedPaymentMethod) == null ? void 0 : f.type) === "apple_pay", r = t || n, o = (y = e.container) == null ? void 0 : y.querySelector(".choco-widget-pay-button"), i = (C = e.container) == null ? void 0 : C.querySelector(
5836
+ var l, h, y, m, b, I, B, Q, S, P;
5837
+ const t = ((l = e.selectedPaymentMethod) == null ? void 0 : l.type) === "google_pay", n = ((h = e.selectedPaymentMethod) == null ? void 0 : h.type) === "apple_pay", r = t || n, o = (y = e.container) == null ? void 0 : y.querySelector(".choco-widget-pay-button"), i = (m = e.container) == null ? void 0 : m.querySelector(
5838
5838
  ".choco-widget-google-pay-amount"
5839
5839
  ), c = (b = e.container) == null ? void 0 : b.querySelector(".choco-widget-google-pay-row"), u = (I = e.container) == null ? void 0 : I.querySelector(".choco-widget-apple-pay-row");
5840
5840
  if (o == null || o.classList.toggle("choco-widget-pay-button--hidden", r), i == null || i.classList.toggle(
@@ -5864,7 +5864,7 @@ function fr(e) {
5864
5864
  Je(e), ie(e);
5865
5865
  }
5866
5866
  async function Ki(e) {
5867
- var c, u, l, f, y;
5867
+ var c, u, l, h, y;
5868
5868
  const t = (c = e.container) == null ? void 0 : c.querySelector(
5869
5869
  '[data-action="google-pay-button-slot"]'
5870
5870
  );
@@ -5877,7 +5877,7 @@ async function Ki(e) {
5877
5877
  return;
5878
5878
  }
5879
5879
  if (n !== e._googlePayButtonRenderVersion) return;
5880
- if (!((y = (f = (l = window.google) == null ? void 0 : l.payments) == null ? void 0 : f.api) != null && y.PaymentsClient)) {
5880
+ if (!((y = (h = (l = window.google) == null ? void 0 : l.payments) == null ? void 0 : h.api) != null && y.PaymentsClient)) {
5881
5881
  e.config.onError({ attributes: { message: e.t("errorGooglePayUnsupported") } });
5882
5882
  return;
5883
5883
  }
@@ -5890,8 +5890,8 @@ async function Ki(e) {
5890
5890
  buttonLocale: e.config.locale || "ru",
5891
5891
  buttonSizeMode: "fill"
5892
5892
  });
5893
- i.classList.add("choco-widget-google-pay-button"), i.style.setProperty("width", "100%", "important"), i.style.setProperty("height", "52px", "important"), i.style.setProperty("min-height", "52px", "important"), i.style.setProperty("border-radius", "12px", "important"), i.style.setProperty("font-size", "16px", "important"), i.style.setProperty("font-weight", "bold", "important"), i.querySelectorAll("*").forEach((C) => {
5894
- C.style.setProperty("border-radius", "12px", "important"), C.style.setProperty("font-weight", "bold", "important"), C.style.setProperty("font-size", "16px", "important");
5893
+ i.classList.add("choco-widget-google-pay-button"), i.style.setProperty("width", "100%", "important"), i.style.setProperty("height", "52px", "important"), i.style.setProperty("min-height", "52px", "important"), i.style.setProperty("border-radius", "12px", "important"), i.style.setProperty("font-size", "16px", "important"), i.style.setProperty("font-weight", "bold", "important"), i.querySelectorAll("*").forEach((m) => {
5894
+ m.style.setProperty("border-radius", "12px", "important"), m.style.setProperty("font-weight", "bold", "important"), m.style.setProperty("font-size", "16px", "important");
5895
5895
  }), t.appendChild(i), ie(e);
5896
5896
  }
5897
5897
  function Gi(e) {
@@ -5936,9 +5936,9 @@ function pe(e) {
5936
5936
  e.loading = !0, ie(e);
5937
5937
  }
5938
5938
  function K(e) {
5939
- var C, b, I, B, Q, S, P, k;
5939
+ var m, b, I, B, Q, S, P, k;
5940
5940
  e.loading = !1;
5941
- const t = (C = e.container) == null ? void 0 : C.querySelector(".choco-widget-payment-method"), n = (b = e.container) == null ? void 0 : b.querySelector(".choco-widget-pay-button"), r = (I = e.container) == null ? void 0 : I.querySelector(
5941
+ const t = (m = e.container) == null ? void 0 : m.querySelector(".choco-widget-payment-method"), n = (b = e.container) == null ? void 0 : b.querySelector(".choco-widget-pay-button"), r = (I = e.container) == null ? void 0 : I.querySelector(
5942
5942
  ".choco-widget-google-pay-button-slot button"
5943
5943
  ), o = (B = e.container) == null ? void 0 : B.querySelector(
5944
5944
  ".choco-widget-apple-pay-button-slot button"
@@ -5946,8 +5946,8 @@ function K(e) {
5946
5946
  ".choco-widget-google-pay-amount"
5947
5947
  ), c = (S = e.container) == null ? void 0 : S.querySelector(".choco-widget-google-pay-row"), u = (P = e.container) == null ? void 0 : P.querySelector(".choco-widget-apple-pay-row"), l = (k = e.container) == null ? void 0 : k.querySelector(
5948
5948
  ".choco-widget-balance-section"
5949
- ), f = e._isInteractionBlocked(), y = e.paymentMethodDisabled || f;
5950
- t && (t.disabled = y), n && (n.disabled = f, n.classList.remove("choco-widget-pay-button--loading")), r && (r.disabled = f), o && (o.disabled = f), i == null || i.classList.toggle("choco-widget-wallet-blocked", f), i == null || i.setAttribute("aria-disabled", String(f)), c == null || c.classList.toggle("choco-widget-wallet-blocked", f), c == null || c.setAttribute("aria-disabled", String(f)), u == null || u.classList.toggle("choco-widget-wallet-blocked", f), u == null || u.setAttribute("aria-disabled", String(f)), l == null || l.classList.remove("disabled");
5949
+ ), h = e._isInteractionBlocked(), y = e.paymentMethodDisabled || h;
5950
+ t && (t.disabled = y), n && (n.disabled = h, n.classList.remove("choco-widget-pay-button--loading")), r && (r.disabled = h), o && (o.disabled = h), i == null || i.classList.toggle("choco-widget-wallet-blocked", h), i == null || i.setAttribute("aria-disabled", String(h)), c == null || c.classList.toggle("choco-widget-wallet-blocked", h), c == null || c.setAttribute("aria-disabled", String(h)), u == null || u.classList.toggle("choco-widget-wallet-blocked", h), u == null || u.setAttribute("aria-disabled", String(h)), l == null || l.classList.remove("disabled");
5951
5951
  }
5952
5952
  function ie(e) {
5953
5953
  var b, I, B, Q, S, P, k, R, L;
@@ -5957,10 +5957,10 @@ function ie(e) {
5957
5957
  ".choco-widget-apple-pay-button-slot button"
5958
5958
  ), c = (P = e.container) == null ? void 0 : P.querySelector(
5959
5959
  ".choco-widget-google-pay-amount"
5960
- ), u = (k = e.container) == null ? void 0 : k.querySelector(".choco-widget-google-pay-row"), l = (R = e.container) == null ? void 0 : R.querySelector(".choco-widget-apple-pay-row"), f = (L = e.container) == null ? void 0 : L.querySelector(
5960
+ ), u = (k = e.container) == null ? void 0 : k.querySelector(".choco-widget-google-pay-row"), l = (R = e.container) == null ? void 0 : R.querySelector(".choco-widget-apple-pay-row"), h = (L = e.container) == null ? void 0 : L.querySelector(
5961
5961
  ".choco-widget-balance-section"
5962
- ), y = e._isInteractionBlocked(), C = e.paymentMethodDisabled || y;
5963
- f == null || f.classList.toggle("disabled", y), t && (t.disabled = C), n && (n.disabled = y, n.classList.toggle("choco-widget-pay-button--loading", e.loading)), r && (r.disabled = y), o && (o.disabled = y), i && (i.disabled = y), c == null || c.classList.toggle("choco-widget-wallet-blocked", y), c == null || c.setAttribute("aria-disabled", String(y)), u == null || u.classList.toggle("choco-widget-wallet-blocked", y), u == null || u.setAttribute("aria-disabled", String(y)), l == null || l.classList.toggle("choco-widget-wallet-blocked", y), l == null || l.setAttribute("aria-disabled", String(y));
5962
+ ), y = e._isInteractionBlocked(), m = e.paymentMethodDisabled || y;
5963
+ h == null || h.classList.toggle("disabled", y), t && (t.disabled = m), n && (n.disabled = y, n.classList.toggle("choco-widget-pay-button--loading", e.loading)), r && (r.disabled = y), o && (o.disabled = y), i && (i.disabled = y), c == null || c.classList.toggle("choco-widget-wallet-blocked", y), c == null || c.setAttribute("aria-disabled", String(y)), u == null || u.classList.toggle("choco-widget-wallet-blocked", y), u == null || u.setAttribute("aria-disabled", String(y)), l == null || l.classList.toggle("choco-widget-wallet-blocked", y), l == null || l.setAttribute("aria-disabled", String(y));
5964
5964
  }
5965
5965
  function hr(e) {
5966
5966
  var n;
@@ -5981,7 +5981,7 @@ function ke(e) {
5981
5981
  var l;
5982
5982
  const t = (l = e.container) == null ? void 0 : l.querySelector('[data-sheet="payment"]');
5983
5983
  if (!t) return;
5984
- const n = t.querySelector(".choco-widget-sheet-title"), r = t.querySelector('[data-action="close-sheet"]'), o = t.querySelector('[data-action="edit-sheet"]'), i = t.querySelector('[data-action="previous-sheet"]'), u = e.getAvailablePaymentMethods().some((f) => f.type === "card");
5984
+ const n = t.querySelector(".choco-widget-sheet-title"), r = t.querySelector('[data-action="close-sheet"]'), o = t.querySelector('[data-action="edit-sheet"]'), i = t.querySelector('[data-action="previous-sheet"]'), u = e.getAvailablePaymentMethods().some((h) => h.type === "card");
5985
5985
  e.isPaymentSheetEditMode ? (t.classList.add("choco-widget-payment-sheet--edit"), n && (n.textContent = e.t("editCards")), r && (r.style.display = "none"), o && (o.style.display = "none"), i && (i.style.display = "")) : (t.classList.remove("choco-widget-payment-sheet--edit"), t.classList.toggle("choco-widget-payment-sheet--no-cards", !u), n && (n.textContent = e.t("paymentMethods")), r && (r.style.display = ""), o && (o.style.display = u ? "" : "none"), i && (i.style.display = "none"));
5986
5986
  }
5987
5987
  function gt(e) {
@@ -6227,12 +6227,12 @@ async function ea(e) {
6227
6227
  await On(e);
6228
6228
  const l = (u == null ? void 0 : u.id) ?? ((r = u == null ? void 0 : u.data) == null ? void 0 : r.id);
6229
6229
  if (l && Ie(e, String(l)), ((o = e.selectedPaymentMethod) == null ? void 0 : o.type) === "kaspi_pay") {
6230
- const f = (u == null ? void 0 : u.attributes) || ((i = u == null ? void 0 : u.data) == null ? void 0 : i.attributes) || {}, y = f.action_link || f.action_url, C = f.action_url_type || f.action_type || "redirect";
6230
+ const h = (u == null ? void 0 : u.attributes) || ((i = u == null ? void 0 : u.data) == null ? void 0 : i.attributes) || {}, y = h.action_link || h.action_url, m = h.action_url_type || h.action_type || "redirect";
6231
6231
  if (y)
6232
6232
  return typeof e.config.onKaspiLink == "function" ? (e.config.onKaspiLink({
6233
6233
  action_link: y,
6234
6234
  action_url: y,
6235
- action_type: C,
6235
+ action_type: m,
6236
6236
  event: u
6237
6237
  }), u) : (window.location.href = y, u);
6238
6238
  }
@@ -6289,59 +6289,58 @@ async function na(e, t) {
6289
6289
  type: "final"
6290
6290
  }
6291
6291
  }, o = new n(3, r);
6292
- Be = o;
6293
- let i = !1;
6294
- o.onvalidatemerchant = async (c) => {
6295
- var u, l;
6292
+ Be = o, o.onvalidatemerchant = async (i) => {
6293
+ var c, u;
6296
6294
  try {
6297
- let f;
6295
+ let l;
6298
6296
  try {
6299
- f = await rn(
6297
+ l = await rn(
6300
6298
  e.apiUrl,
6301
6299
  e._getApiConfig(),
6302
- c.validationURL
6300
+ i.validationURL
6303
6301
  );
6304
- } catch (b) {
6305
- if (b.status === 401)
6306
- await e._obtainTokenByRefreshOrTrackId(), f = await rn(
6302
+ } catch (m) {
6303
+ if (m.status === 401)
6304
+ await e._obtainTokenByRefreshOrTrackId(), l = await rn(
6307
6305
  e.apiUrl,
6308
6306
  e._getApiConfig(),
6309
- c.validationURL
6307
+ i.validationURL
6310
6308
  );
6311
6309
  else
6312
- throw b;
6310
+ throw m;
6313
6311
  }
6314
- const y = ((l = (u = f == null ? void 0 : f.data) == null ? void 0 : u.attributes) == null ? void 0 : l.session) || f, C = JSON.parse(atob(y));
6315
- o.completeMerchantValidation(C), i = !0;
6316
- } catch (f) {
6317
- console.error("Apple Pay session error:", f), se(f, { paymentMethod: "apple_pay", phase: "merchant_validation" }), K(e), o.abort(), e.config.onError({ attributes: { message: e.t("errorApplePayInit") } });
6312
+ const h = ((u = (c = l == null ? void 0 : l.data) == null ? void 0 : c.attributes) == null ? void 0 : u.session) || l, y = JSON.parse(atob(h));
6313
+ o.completeMerchantValidation(y);
6314
+ } catch (l) {
6315
+ console.error("Apple Pay session error:", l), se(l, { paymentMethod: "apple_pay", phase: "merchant_validation" }), K(e), o.abort(), e.config.onError({ attributes: { message: e.t("errorApplePayInit") } });
6318
6316
  }
6319
- }, o.onpaymentauthorized = async (c) => {
6320
- var u;
6317
+ }, o.onpaymentauthorized = async (i) => {
6318
+ var c;
6321
6319
  try {
6322
6320
  if (typeof e.config.onBeforeCheckout == "function") {
6323
- const y = await e.config.onBeforeCheckout();
6324
- y && typeof y == "object" && Object.assign(e.config, y);
6321
+ const h = await e.config.onBeforeCheckout();
6322
+ h && typeof h == "object" && Object.assign(e.config, h);
6325
6323
  }
6326
- const l = await Hr(
6324
+ const u = await Hr(
6327
6325
  e.apiUrl,
6328
6326
  e._getApiConfig(),
6329
6327
  e.deviceId,
6330
- c.payment,
6328
+ i.payment,
6331
6329
  t
6332
6330
  );
6333
6331
  o.completePayment(n.STATUS_SUCCESS), Be = null;
6334
- const f = (l == null ? void 0 : l.id) ?? ((u = l == null ? void 0 : l.data) == null ? void 0 : u.id);
6335
- f && !e._orderStatusResolved && Ie(e, String(f));
6336
- } catch (l) {
6337
- console.error("Apple Pay payment error:", l), se(l, { paymentMethod: "apple_pay", phase: "payment_authorized" }), o.completePayment(n.STATUS_FAILURE), Be = null, K(e), e.config.onError({
6332
+ const l = (u == null ? void 0 : u.id) ?? ((c = u == null ? void 0 : u.data) == null ? void 0 : c.id);
6333
+ l && !e._orderStatusResolved && Ie(e, String(l));
6334
+ } catch (u) {
6335
+ console.error("Apple Pay payment error:", u), se(u, { paymentMethod: "apple_pay", phase: "payment_authorized" }), o.completePayment(n.STATUS_FAILURE), Be = null, K(e), e.config.onError({
6338
6336
  attributes: {
6339
- message: e._resolveErrorMessage(l, "errorApplePayPayment")
6337
+ message: e._resolveErrorMessage(u, "errorApplePayPayment")
6340
6338
  }
6341
6339
  });
6342
6340
  }
6343
6341
  }, o.oncancel = () => {
6344
- if (Be = null, K(e), !i) {
6342
+ var i;
6343
+ if (Be = null, K(e), ((i = e.selectedPaymentMethod) == null ? void 0 : i.type) === "apple_pay") {
6345
6344
  e.config.onError({
6346
6345
  attributes: { message: e.t("errorApplePayInterrupted") }
6347
6346
  });
@@ -6364,7 +6363,7 @@ async function ra(e, t) {
6364
6363
  });
6365
6364
  return;
6366
6365
  }
6367
- const l = e.config.environment === "production", f = (o == null ? void 0 : o.merchant_name) || "Choco", y = o == null ? void 0 : o.google_merchant_id;
6366
+ const l = e.config.environment === "production", h = (o == null ? void 0 : o.merchant_name) || "Choco", y = o == null ? void 0 : o.google_merchant_id;
6368
6367
  if (l && !y) {
6369
6368
  e.config.onError({
6370
6369
  attributes: { message: e.t("errorGooglePaySettingsUnavailable") }
@@ -6375,7 +6374,7 @@ async function ra(e, t) {
6375
6374
  await oa(e, t, { gateway: c, gatewayMerchantId: u });
6376
6375
  return;
6377
6376
  }
6378
- const C = Number(e._getCheckoutAmount()).toFixed(2);
6377
+ const m = Number(e._getCheckoutAmount()).toFixed(2);
6379
6378
  try {
6380
6379
  await e._loadGooglePaySdk();
6381
6380
  } catch (D) {
@@ -6407,11 +6406,11 @@ async function ra(e, t) {
6407
6406
  transactionInfo: {
6408
6407
  totalPriceStatus: "FINAL",
6409
6408
  totalPriceLabel: "Итого",
6410
- totalPrice: C,
6409
+ totalPrice: m,
6411
6410
  currencyCode: e.config.currency,
6412
6411
  countryCode: e.config.currency === "GEL" ? "GE" : "KZ"
6413
6412
  },
6414
- merchantInfo: l ? { merchantId: y, merchantName: f } : { merchantName: f }
6413
+ merchantInfo: l ? { merchantId: y, merchantName: h } : { merchantName: h }
6415
6414
  }, Q = new b.payments.api.PaymentsClient({
6416
6415
  environment: l ? "PRODUCTION" : "TEST"
6417
6416
  });
@@ -6473,15 +6472,15 @@ async function oa(e, t, n) {
6473
6472
  }
6474
6473
  }
6475
6474
  function sa(e) {
6476
- var c, u, l, f, y, C, b, I, B, Q, S, P;
6475
+ var c, u, l, h, y, m, b, I, B, Q, S, P;
6477
6476
  const t = e.container;
6478
6477
  (c = t.querySelector('[data-action="freedom-card"]')) == null || c.addEventListener("click", () => {
6479
6478
  e.config.onFreedomLink && e.config.onFreedomLink();
6480
- }), (u = t.querySelector('[data-action="pay"]')) == null || u.addEventListener("click", () => e.handlePayment()), (l = t.querySelector('[data-action="change-method"]')) == null || l.addEventListener("click", () => hr(e)), t.querySelectorAll('[data-action="close"]').forEach((k) => k.addEventListener("click", () => e.close())), (f = t.querySelector('[data-action="close-sheet"]')) == null || f.addEventListener("click", () => {
6479
+ }), (u = t.querySelector('[data-action="pay"]')) == null || u.addEventListener("click", () => e.handlePayment()), (l = t.querySelector('[data-action="change-method"]')) == null || l.addEventListener("click", () => hr(e)), t.querySelectorAll('[data-action="close"]').forEach((k) => k.addEventListener("click", () => e.close())), (h = t.querySelector('[data-action="close-sheet"]')) == null || h.addEventListener("click", () => {
6481
6480
  e._pendingDeleteMethod ? Ve(e) : ae(e);
6482
6481
  }), (y = t.querySelector('[data-action="edit-sheet"]')) == null || y.addEventListener("click", () => {
6483
6482
  e.isPaymentSheetEditMode = !0, Qe(e), ke(e);
6484
- }), (C = t.querySelector('[data-action="previous-sheet"]')) == null || C.addEventListener("click", () => {
6483
+ }), (m = t.querySelector('[data-action="previous-sheet"]')) == null || m.addEventListener("click", () => {
6485
6484
  e.isPaymentSheetEditMode = !1, Qe(e), ke(e);
6486
6485
  }), (b = t.querySelector('[data-action="close-add-card"]')) == null || b.addEventListener("click", () => ve(e)), (I = t.querySelector('[data-action="confirm-delete-cancel"]')) == null || I.addEventListener("click", () => Ve(e)), (B = t.querySelector('[data-action="confirm-delete-submit"]')) == null || B.addEventListener("click", () => {
6487
6486
  if (e._pendingDeleteMethod) {
@@ -6522,24 +6521,24 @@ function aa(e, t) {
6522
6521
  if (!n || !r) return;
6523
6522
  const o = 80;
6524
6523
  let i = 0, c = 0;
6525
- const u = (f) => {
6526
- c = f.clientY;
6524
+ const u = (h) => {
6525
+ c = h.clientY;
6527
6526
  const y = Math.max(0, c - i);
6528
6527
  r.style.transform = `translateY(${y}px)`;
6529
- }, l = (f) => {
6530
- n.releasePointerCapture(f.pointerId), n.removeEventListener("pointermove", u), n.removeEventListener("pointerup", l), n.removeEventListener("pointercancel", l);
6528
+ }, l = (h) => {
6529
+ n.releasePointerCapture(h.pointerId), n.removeEventListener("pointermove", u), n.removeEventListener("pointerup", l), n.removeEventListener("pointercancel", l);
6531
6530
  const y = Math.max(0, c - i);
6532
6531
  if (r.classList.remove("choco-widget-sheet-content--dragging"), y >= o) {
6533
6532
  r.style.transform = "translateY(100%)";
6534
- const C = () => {
6535
- r.removeEventListener("transitionend", C), r.style.transform = "", ae(e);
6533
+ const m = () => {
6534
+ r.removeEventListener("transitionend", m), r.style.transform = "", ae(e);
6536
6535
  };
6537
- r.addEventListener("transitionend", C);
6536
+ r.addEventListener("transitionend", m);
6538
6537
  } else
6539
6538
  r.style.transform = "";
6540
6539
  };
6541
- n.addEventListener("pointerdown", (f) => {
6542
- !e.isPaymentSheetOpen || f.button !== 0 || (f.preventDefault(), i = f.clientY, c = f.clientY, r.classList.add("choco-widget-sheet-content--dragging"), n.setPointerCapture(f.pointerId), n.addEventListener("pointermove", u), n.addEventListener("pointerup", l), n.addEventListener("pointercancel", l));
6540
+ n.addEventListener("pointerdown", (h) => {
6541
+ !e.isPaymentSheetOpen || h.button !== 0 || (h.preventDefault(), i = h.clientY, c = h.clientY, r.classList.add("choco-widget-sheet-content--dragging"), n.setPointerCapture(h.pointerId), n.addEventListener("pointermove", u), n.addEventListener("pointerup", l), n.addEventListener("pointercancel", l));
6543
6542
  });
6544
6543
  }
6545
6544
  class me {
@@ -6609,17 +6608,17 @@ class me {
6609
6608
  return Number.isFinite(t) && t > 0 ? t : 0;
6610
6609
  }
6611
6610
  _getPaymentBreakdown() {
6612
- const t = this.config.amount, n = this._getBalanceAmount(), r = this.useBalance ? Math.min(n, t) : 0, o = t - r, i = this.useBalance && r >= t, c = this.useBonuses ? this._getAvailableBonus() : 0, u = Math.max(o - c, 0), l = this._getCouponDiscount(), f = Math.max(u - l, 0), y = this.useBalance ? t : f, C = this.useBalance && !i, I = this.useCoupon && this.selectedCoupon && !this._isCouponDisabled() ? {
6611
+ const t = this.config.amount, n = this._getBalanceAmount(), r = this.useBalance ? Math.min(n, t) : 0, o = t - r, i = this.useBalance && r >= t, c = this.useBonuses ? this._getAvailableBonus() : 0, u = Math.max(o - c, 0), l = this._getCouponDiscount(), h = Math.max(u - l, 0), y = this.useBalance ? t : h, m = this.useBalance && !i, I = this.useCoupon && this.selectedCoupon && !this._isCouponDisabled() ? {
6613
6612
  id: this.selectedCoupon.voucher_id,
6614
6613
  template_id: this.selectedCoupon.template_id,
6615
6614
  type: this.selectedCoupon.type
6616
6615
  } : void 0;
6617
6616
  return {
6618
- payableAmount: f,
6617
+ payableAmount: h,
6619
6618
  checkoutOptions: {
6620
6619
  checkoutAmount: y,
6621
6620
  forceBalanceMethod: i,
6622
- useBalance: C,
6621
+ useBalance: m,
6623
6622
  voucher: I
6624
6623
  }
6625
6624
  };