@trustpayments/3ds-sdk-js 1.2.708 → 1.2.710

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -583,22 +583,77 @@ function me(e) {
583
583
  return e && e instanceof S || pe(e) && g(e);
584
584
  }
585
585
  //#endregion
586
- //#region node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js
587
- var he = d(function(e) {
586
+ //#region node_modules/rxjs/dist/esm5/internal/util/lift.js
587
+ function he(e) {
588
+ return u(e?.lift);
589
+ }
590
+ function A(e) {
591
+ return function(t) {
592
+ if (he(t)) return t.lift(function(t) {
593
+ try {
594
+ return e(t, this);
595
+ } catch (e) {
596
+ this.error(e);
597
+ }
598
+ });
599
+ throw TypeError("Unable to lift unknown Observable type");
600
+ };
601
+ }
602
+ //#endregion
603
+ //#region node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js
604
+ function j(e, t, n, r, i) {
605
+ return new ge(e, t, n, r, i);
606
+ }
607
+ var ge = function(e) {
608
+ t(n, e);
609
+ function n(t, n, r, i, a, o) {
610
+ var s = e.call(this, t) || this;
611
+ return s.onFinalize = a, s.shouldUnsubscribe = o, s._next = n ? function(e) {
612
+ try {
613
+ n(e);
614
+ } catch (e) {
615
+ t.error(e);
616
+ }
617
+ } : e.prototype._next, s._error = i ? function(e) {
618
+ try {
619
+ i(e);
620
+ } catch (e) {
621
+ t.error(e);
622
+ } finally {
623
+ this.unsubscribe();
624
+ }
625
+ } : e.prototype._error, s._complete = r ? function() {
626
+ try {
627
+ r();
628
+ } catch (e) {
629
+ t.error(e);
630
+ } finally {
631
+ this.unsubscribe();
632
+ }
633
+ } : e.prototype._complete, s;
634
+ }
635
+ return n.prototype.unsubscribe = function() {
636
+ var t;
637
+ if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
638
+ var n = this.closed;
639
+ e.prototype.unsubscribe.call(this), !n && ((t = this.onFinalize) == null || t.call(this));
640
+ }
641
+ }, n;
642
+ }(S), _e = d(function(e) {
588
643
  return function() {
589
644
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
590
645
  };
591
- }), A = function(e) {
646
+ }), M = function(e) {
592
647
  t(n, e);
593
648
  function n() {
594
649
  var t = e.call(this) || this;
595
650
  return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
596
651
  }
597
652
  return n.prototype.lift = function(e) {
598
- var t = new ge(this, this);
653
+ var t = new ve(this, this);
599
654
  return t.operator = e, t;
600
655
  }, n.prototype._throwIfClosed = function() {
601
- if (this.closed) throw new he();
656
+ if (this.closed) throw new _e();
602
657
  }, n.prototype.next = function(e) {
603
658
  var t = this;
604
659
  x(function() {
@@ -658,9 +713,9 @@ var he = d(function(e) {
658
713
  var e = new k();
659
714
  return e.source = this, e;
660
715
  }, n.create = function(e, t) {
661
- return new ge(e, t);
716
+ return new ve(e, t);
662
717
  }, n;
663
- }(k), ge = function(e) {
718
+ }(k), ve = function(e) {
664
719
  t(n, e);
665
720
  function n(t, n) {
666
721
  var r = e.call(this) || this;
@@ -678,7 +733,7 @@ var he = d(function(e) {
678
733
  }, n.prototype._subscribe = function(e) {
679
734
  return this.source?.subscribe(e) ?? h;
680
735
  }, n;
681
- }(A), _e = function(e) {
736
+ }(M), ye = function(e) {
682
737
  t(n, e);
683
738
  function n(t) {
684
739
  var n = e.call(this) || this;
@@ -700,43 +755,152 @@ var he = d(function(e) {
700
755
  }, n.prototype.next = function(t) {
701
756
  e.prototype.next.call(this, this._value = t);
702
757
  }, n;
703
- }(A), j = (function(e) {
758
+ }(M), be = {
759
+ now: function() {
760
+ return (be.delegate || Date).now();
761
+ },
762
+ delegate: void 0
763
+ }, xe = function(e) {
764
+ t(n, e);
765
+ function n(t, n) {
766
+ return e.call(this) || this;
767
+ }
768
+ return n.prototype.schedule = function(e, t) {
769
+ return t === void 0 && (t = 0), this;
770
+ }, n;
771
+ }(m), N = {
772
+ setInterval: function(e, t) {
773
+ var n = [...arguments].slice(2), r = N.delegate;
774
+ return r?.setInterval ? r.setInterval.apply(r, o([e, t], a(n))) : setInterval.apply(void 0, o([e, t], a(n)));
775
+ },
776
+ clearInterval: function(e) {
777
+ return (N.delegate?.clearInterval || clearInterval)(e);
778
+ },
779
+ delegate: void 0
780
+ }, Se = function(e) {
781
+ t(n, e);
782
+ function n(t, n) {
783
+ var r = e.call(this, t, n) || this;
784
+ return r.scheduler = t, r.work = n, r.pending = !1, r;
785
+ }
786
+ return n.prototype.schedule = function(e, t) {
787
+ if (t === void 0 && (t = 0), this.closed) return this;
788
+ this.state = e;
789
+ var n = this.id, r = this.scheduler;
790
+ return n != null && (this.id = this.recycleAsyncId(r, n, t)), this.pending = !0, this.delay = t, this.id = this.id ?? this.requestAsyncId(r, this.id, t), this;
791
+ }, n.prototype.requestAsyncId = function(e, t, n) {
792
+ return n === void 0 && (n = 0), N.setInterval(e.flush.bind(e, this), n);
793
+ }, n.prototype.recycleAsyncId = function(e, t, n) {
794
+ if (n === void 0 && (n = 0), n != null && this.delay === n && this.pending === !1) return t;
795
+ t != null && N.clearInterval(t);
796
+ }, n.prototype.execute = function(e, t) {
797
+ if (this.closed) return /* @__PURE__ */ Error("executing a cancelled action");
798
+ this.pending = !1;
799
+ var n = this._execute(e, t);
800
+ if (n) return n;
801
+ this.pending === !1 && this.id != null && (this.id = this.recycleAsyncId(this.scheduler, this.id, null));
802
+ }, n.prototype._execute = function(e, t) {
803
+ var n = !1, r;
804
+ try {
805
+ this.work(e);
806
+ } catch (e) {
807
+ n = !0, r = e || /* @__PURE__ */ Error("Scheduled action threw falsy error");
808
+ }
809
+ if (n) return this.unsubscribe(), r;
810
+ }, n.prototype.unsubscribe = function() {
811
+ if (!this.closed) {
812
+ var t = this, n = t.id, r = t.scheduler, i = r.actions;
813
+ this.work = this.state = this.scheduler = null, this.pending = !1, p(i, this), n != null && (this.id = this.recycleAsyncId(r, n, null)), this.delay = null, e.prototype.unsubscribe.call(this);
814
+ }
815
+ }, n;
816
+ }(xe), Ce = function() {
817
+ function e(t, n) {
818
+ n === void 0 && (n = e.now), this.schedulerActionCtor = t, this.now = n;
819
+ }
820
+ return e.prototype.schedule = function(e, t, n) {
821
+ return t === void 0 && (t = 0), new this.schedulerActionCtor(this, e).schedule(n, t);
822
+ }, e.now = be.now, e;
823
+ }(), we = new (function(e) {
824
+ t(n, e);
825
+ function n(t, n) {
826
+ n === void 0 && (n = Ce.now);
827
+ var r = e.call(this, t, n) || this;
828
+ return r.actions = [], r._active = !1, r;
829
+ }
830
+ return n.prototype.flush = function(e) {
831
+ var t = this.actions;
832
+ if (this._active) {
833
+ t.push(e);
834
+ return;
835
+ }
836
+ var n;
837
+ this._active = !0;
838
+ do
839
+ if (n = e.execute(e.state, e.delay)) break;
840
+ while (e = t.shift());
841
+ if (this._active = !1, n) {
842
+ for (; e = t.shift();) e.unsubscribe();
843
+ throw n;
844
+ }
845
+ }, n;
846
+ }(Ce))(Se), Te = we, Ee = new k(function(e) {
847
+ return e.complete();
848
+ });
849
+ //#endregion
850
+ //#region node_modules/rxjs/dist/esm5/internal/util/isScheduler.js
851
+ function De(e) {
852
+ return e && u(e.schedule);
853
+ }
854
+ //#endregion
855
+ //#region node_modules/rxjs/dist/esm5/internal/util/args.js
856
+ function Oe(e) {
857
+ return e[e.length - 1];
858
+ }
859
+ function ke(e) {
860
+ return De(Oe(e)) ? e.pop() : void 0;
861
+ }
862
+ function Ae(e, t) {
863
+ return typeof Oe(e) == "number" ? e.pop() : t;
864
+ }
865
+ //#endregion
866
+ //#region node_modules/rxjs/dist/esm5/internal/util/isArrayLike.js
867
+ var P = (function(e) {
704
868
  return e && typeof e.length == "number" && typeof e != "function";
705
869
  });
706
870
  //#endregion
707
871
  //#region node_modules/rxjs/dist/esm5/internal/util/isPromise.js
708
- function ve(e) {
872
+ function je(e) {
709
873
  return u(e?.then);
710
874
  }
711
875
  //#endregion
712
876
  //#region node_modules/rxjs/dist/esm5/internal/util/isInteropObservable.js
713
- function ye(e) {
877
+ function Me(e) {
714
878
  return u(e[D]);
715
879
  }
716
880
  //#endregion
717
881
  //#region node_modules/rxjs/dist/esm5/internal/util/isAsyncIterable.js
718
- function be(e) {
882
+ function Ne(e) {
719
883
  return Symbol.asyncIterator && u(e?.[Symbol.asyncIterator]);
720
884
  }
721
885
  //#endregion
722
886
  //#region node_modules/rxjs/dist/esm5/internal/util/throwUnobservableError.js
723
- function xe(e) {
887
+ function Pe(e) {
724
888
  return /* @__PURE__ */ TypeError("You provided " + (typeof e == "object" && e ? "an invalid object" : "'" + e + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
725
889
  }
726
890
  //#endregion
727
891
  //#region node_modules/rxjs/dist/esm5/internal/symbol/iterator.js
728
- function Se() {
892
+ function Fe() {
729
893
  return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
730
894
  }
731
- var Ce = Se();
895
+ var Ie = Fe();
732
896
  //#endregion
733
897
  //#region node_modules/rxjs/dist/esm5/internal/util/isIterable.js
734
- function we(e) {
735
- return u(e?.[Ce]);
898
+ function Le(e) {
899
+ return u(e?.[Ie]);
736
900
  }
737
901
  //#endregion
738
902
  //#region node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js
739
- function Te(e) {
903
+ function Re(e) {
740
904
  return c(this, arguments, function() {
741
905
  var t, n, i, a;
742
906
  return r(this, function(r) {
@@ -761,37 +925,37 @@ function Te(e) {
761
925
  });
762
926
  });
763
927
  }
764
- function Ee(e) {
928
+ function ze(e) {
765
929
  return u(e?.getReader);
766
930
  }
767
931
  //#endregion
768
932
  //#region node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js
769
- function M(e) {
933
+ function F(e) {
770
934
  if (e instanceof k) return e;
771
935
  if (e != null) {
772
- if (ye(e)) return De(e);
773
- if (j(e)) return Oe(e);
774
- if (ve(e)) return ke(e);
775
- if (be(e)) return je(e);
776
- if (we(e)) return Ae(e);
777
- if (Ee(e)) return Me(e);
936
+ if (Me(e)) return Be(e);
937
+ if (P(e)) return Ve(e);
938
+ if (je(e)) return He(e);
939
+ if (Ne(e)) return We(e);
940
+ if (Le(e)) return Ue(e);
941
+ if (ze(e)) return Ge(e);
778
942
  }
779
- throw xe(e);
943
+ throw Pe(e);
780
944
  }
781
- function De(e) {
945
+ function Be(e) {
782
946
  return new k(function(t) {
783
947
  var n = e[D]();
784
948
  if (u(n.subscribe)) return n.subscribe(t);
785
949
  throw TypeError("Provided object does not correctly implement Symbol.observable");
786
950
  });
787
951
  }
788
- function Oe(e) {
952
+ function Ve(e) {
789
953
  return new k(function(t) {
790
954
  for (var n = 0; n < e.length && !t.closed; n++) t.next(e[n]);
791
955
  t.complete();
792
956
  });
793
957
  }
794
- function ke(e) {
958
+ function He(e) {
795
959
  return new k(function(t) {
796
960
  e.then(function(e) {
797
961
  t.closed || (t.next(e), t.complete());
@@ -800,7 +964,7 @@ function ke(e) {
800
964
  }).then(null, te);
801
965
  });
802
966
  }
803
- function Ae(e) {
967
+ function Ue(e) {
804
968
  return new k(function(t) {
805
969
  var n, r;
806
970
  try {
@@ -820,17 +984,17 @@ function Ae(e) {
820
984
  t.complete();
821
985
  });
822
986
  }
823
- function je(e) {
987
+ function We(e) {
824
988
  return new k(function(t) {
825
- Ne(e, t).catch(function(e) {
989
+ Ke(e, t).catch(function(e) {
826
990
  return t.error(e);
827
991
  });
828
992
  });
829
993
  }
830
- function Me(e) {
831
- return je(Te(e));
994
+ function Ge(e) {
995
+ return We(Re(e));
832
996
  }
833
- function Ne(e, t) {
997
+ function Ke(e, t) {
834
998
  var i, a, o, s;
835
999
  return n(this, void 0, void 0, function() {
836
1000
  var n, c;
@@ -868,81 +1032,6 @@ function Ne(e, t) {
868
1032
  });
869
1033
  }
870
1034
  //#endregion
871
- //#region node_modules/rxjs/dist/esm5/internal/observable/defer.js
872
- function Pe(e) {
873
- return new k(function(t) {
874
- M(e()).subscribe(t);
875
- });
876
- }
877
- //#endregion
878
- //#region node_modules/rxjs/dist/esm5/internal/util/lift.js
879
- function Fe(e) {
880
- return u(e?.lift);
881
- }
882
- function N(e) {
883
- return function(t) {
884
- if (Fe(t)) return t.lift(function(t) {
885
- try {
886
- return e(t, this);
887
- } catch (e) {
888
- this.error(e);
889
- }
890
- });
891
- throw TypeError("Unable to lift unknown Observable type");
892
- };
893
- }
894
- //#endregion
895
- //#region node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js
896
- function P(e, t, n, r, i) {
897
- return new Ie(e, t, n, r, i);
898
- }
899
- var Ie = function(e) {
900
- t(n, e);
901
- function n(t, n, r, i, a, o) {
902
- var s = e.call(this, t) || this;
903
- return s.onFinalize = a, s.shouldUnsubscribe = o, s._next = n ? function(e) {
904
- try {
905
- n(e);
906
- } catch (e) {
907
- t.error(e);
908
- }
909
- } : e.prototype._next, s._error = i ? function(e) {
910
- try {
911
- i(e);
912
- } catch (e) {
913
- t.error(e);
914
- } finally {
915
- this.unsubscribe();
916
- }
917
- } : e.prototype._error, s._complete = r ? function() {
918
- try {
919
- r();
920
- } catch (e) {
921
- t.error(e);
922
- } finally {
923
- this.unsubscribe();
924
- }
925
- } : e.prototype._complete, s;
926
- }
927
- return n.prototype.unsubscribe = function() {
928
- var t;
929
- if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
930
- var n = this.closed;
931
- e.prototype.unsubscribe.call(this), !n && ((t = this.onFinalize) == null || t.call(this));
932
- }
933
- }, n;
934
- }(S);
935
- //#endregion
936
- //#region node_modules/rxjs/dist/esm5/internal/operators/map.js
937
- function F(e, t) {
938
- return N(function(n, r) {
939
- var i = 0;
940
- n.subscribe(P(r, function(n) {
941
- r.next(e.call(t, n, i++));
942
- }));
943
- });
944
- }
945
- //#endregion
946
1035
  //#region node_modules/rxjs/dist/esm5/internal/util/executeSchedule.js
947
1036
  function I(e, t, n, r, i) {
948
1037
  r === void 0 && (r = 0), i === void 0 && (i = !1);
@@ -952,151 +1041,28 @@ function I(e, t, n, r, i) {
952
1041
  if (e.add(a), !i) return a;
953
1042
  }
954
1043
  //#endregion
955
- //#region node_modules/rxjs/dist/esm5/internal/operators/mergeInternals.js
956
- function Le(e, t, n, r, i, a, o, s) {
957
- var c = [], l = 0, u = 0, d = !1, f = function() {
958
- d && !c.length && !l && t.complete();
959
- }, p = function(e) {
960
- return l < r ? m(e) : c.push(e);
961
- }, m = function(e) {
962
- a && t.next(e), l++;
963
- var s = !1;
964
- M(n(e, u++)).subscribe(P(t, function(e) {
965
- i?.(e), a ? p(e) : t.next(e);
1044
+ //#region node_modules/rxjs/dist/esm5/internal/operators/observeOn.js
1045
+ function qe(e, t) {
1046
+ return t === void 0 && (t = 0), A(function(n, r) {
1047
+ n.subscribe(j(r, function(n) {
1048
+ return I(r, e, function() {
1049
+ return r.next(n);
1050
+ }, t);
966
1051
  }, function() {
967
- s = !0;
968
- }, void 0, function() {
969
- if (s) try {
970
- l--;
971
- for (var e = function() {
972
- var e = c.shift();
973
- o ? I(t, o, function() {
974
- return m(e);
975
- }) : m(e);
976
- }; c.length && l < r;) e();
977
- f();
978
- } catch (e) {
979
- t.error(e);
980
- }
1052
+ return I(r, e, function() {
1053
+ return r.complete();
1054
+ }, t);
1055
+ }, function(n) {
1056
+ return I(r, e, function() {
1057
+ return r.error(n);
1058
+ }, t);
981
1059
  }));
982
- };
983
- return e.subscribe(P(t, p, function() {
984
- d = !0, f();
985
- })), function() {
986
- s?.();
987
- };
988
- }
989
- //#endregion
990
- //#region node_modules/rxjs/dist/esm5/internal/operators/mergeMap.js
991
- function L(e, t, n) {
992
- return n === void 0 && (n = Infinity), u(t) ? L(function(n, r) {
993
- return F(function(e, i) {
994
- return t(n, e, r, i);
995
- })(M(e(n, r)));
996
- }, n) : (typeof t == "number" && (n = t), N(function(t, r) {
997
- return Le(t, r, e, n);
998
- }));
999
- }
1000
- //#endregion
1001
- //#region node_modules/rxjs/dist/esm5/internal/util/mapOneOrManyArgs.js
1002
- var Re = Array.isArray;
1003
- function ze(e, t) {
1004
- return Re(t) ? e.apply(void 0, o([], a(t))) : e(t);
1005
- }
1006
- function Be(e) {
1007
- return F(function(t) {
1008
- return ze(e, t);
1009
- });
1010
- }
1011
- //#endregion
1012
- //#region node_modules/rxjs/dist/esm5/internal/observable/fromEvent.js
1013
- var Ve = ["addListener", "removeListener"], He = ["addEventListener", "removeEventListener"], Ue = ["on", "off"];
1014
- function R(e, t, n, r) {
1015
- if (u(n) && (r = n, n = void 0), r) return R(e, t, n).pipe(Be(r));
1016
- var i = a(qe(e) ? He.map(function(r) {
1017
- return function(i) {
1018
- return e[r](t, i, n);
1019
- };
1020
- }) : Ge(e) ? Ve.map(We(e, t)) : Ke(e) ? Ue.map(We(e, t)) : [], 2), o = i[0], s = i[1];
1021
- if (!o && j(e)) return L(function(e) {
1022
- return R(e, t, n);
1023
- })(M(e));
1024
- if (!o) throw TypeError("Invalid event target");
1025
- return new k(function(e) {
1026
- var t = function() {
1027
- var t = [...arguments];
1028
- return e.next(1 < t.length ? t : t[0]);
1029
- };
1030
- return o(t), function() {
1031
- return s(t);
1032
- };
1033
- });
1034
- }
1035
- function We(e, t) {
1036
- return function(n) {
1037
- return function(r) {
1038
- return e[n](t, r);
1039
- };
1040
- };
1041
- }
1042
- function Ge(e) {
1043
- return u(e.addListener) && u(e.removeListener);
1044
- }
1045
- function Ke(e) {
1046
- return u(e.on) && u(e.off);
1047
- }
1048
- function qe(e) {
1049
- return u(e.addEventListener) && u(e.removeEventListener);
1050
- }
1051
- //#endregion
1052
- //#region node_modules/rxjs/dist/esm5/internal/operators/mergeAll.js
1053
- function Je(e) {
1054
- return e === void 0 && (e = Infinity), L(O, e);
1055
- }
1056
- //#endregion
1057
- //#region node_modules/rxjs/dist/esm5/internal/observable/empty.js
1058
- var Ye = new k(function(e) {
1059
- return e.complete();
1060
- });
1061
- //#endregion
1062
- //#region node_modules/rxjs/dist/esm5/internal/util/isScheduler.js
1063
- function Xe(e) {
1064
- return e && u(e.schedule);
1065
- }
1066
- //#endregion
1067
- //#region node_modules/rxjs/dist/esm5/internal/util/args.js
1068
- function Ze(e) {
1069
- return e[e.length - 1];
1070
- }
1071
- function Qe(e) {
1072
- return Xe(Ze(e)) ? e.pop() : void 0;
1073
- }
1074
- function $e(e, t) {
1075
- return typeof Ze(e) == "number" ? e.pop() : t;
1076
- }
1077
- //#endregion
1078
- //#region node_modules/rxjs/dist/esm5/internal/operators/observeOn.js
1079
- function et(e, t) {
1080
- return t === void 0 && (t = 0), N(function(n, r) {
1081
- n.subscribe(P(r, function(n) {
1082
- return I(r, e, function() {
1083
- return r.next(n);
1084
- }, t);
1085
- }, function() {
1086
- return I(r, e, function() {
1087
- return r.complete();
1088
- }, t);
1089
- }, function(n) {
1090
- return I(r, e, function() {
1091
- return r.error(n);
1092
- }, t);
1093
- }));
1094
- });
1060
+ });
1095
1061
  }
1096
1062
  //#endregion
1097
1063
  //#region node_modules/rxjs/dist/esm5/internal/operators/subscribeOn.js
1098
- function tt(e, t) {
1099
- return t === void 0 && (t = 0), N(function(n, r) {
1064
+ function Je(e, t) {
1065
+ return t === void 0 && (t = 0), A(function(n, r) {
1100
1066
  r.add(e.schedule(function() {
1101
1067
  return n.subscribe(r);
1102
1068
  }, t));
@@ -1104,17 +1070,17 @@ function tt(e, t) {
1104
1070
  }
1105
1071
  //#endregion
1106
1072
  //#region node_modules/rxjs/dist/esm5/internal/scheduled/scheduleObservable.js
1107
- function nt(e, t) {
1108
- return M(e).pipe(tt(t), et(t));
1073
+ function Ye(e, t) {
1074
+ return F(e).pipe(Je(t), qe(t));
1109
1075
  }
1110
1076
  //#endregion
1111
1077
  //#region node_modules/rxjs/dist/esm5/internal/scheduled/schedulePromise.js
1112
- function rt(e, t) {
1113
- return M(e).pipe(tt(t), et(t));
1078
+ function Xe(e, t) {
1079
+ return F(e).pipe(Je(t), qe(t));
1114
1080
  }
1115
1081
  //#endregion
1116
1082
  //#region node_modules/rxjs/dist/esm5/internal/scheduled/scheduleArray.js
1117
- function it(e, t) {
1083
+ function Ze(e, t) {
1118
1084
  return new k(function(n) {
1119
1085
  var r = 0;
1120
1086
  return t.schedule(function() {
@@ -1124,11 +1090,11 @@ function it(e, t) {
1124
1090
  }
1125
1091
  //#endregion
1126
1092
  //#region node_modules/rxjs/dist/esm5/internal/scheduled/scheduleIterable.js
1127
- function at(e, t) {
1093
+ function Qe(e, t) {
1128
1094
  return new k(function(n) {
1129
1095
  var r;
1130
1096
  return I(n, t, function() {
1131
- r = e[Ce](), I(n, t, function() {
1097
+ r = e[Ie](), I(n, t, function() {
1132
1098
  var e, t, i;
1133
1099
  try {
1134
1100
  e = r.next(), t = e.value, i = e.done;
@@ -1145,7 +1111,7 @@ function at(e, t) {
1145
1111
  }
1146
1112
  //#endregion
1147
1113
  //#region node_modules/rxjs/dist/esm5/internal/scheduled/scheduleAsyncIterable.js
1148
- function ot(e, t) {
1114
+ function $e(e, t) {
1149
1115
  if (!e) throw Error("Iterable cannot be null");
1150
1116
  return new k(function(n) {
1151
1117
  I(n, t, function() {
@@ -1160,42 +1126,36 @@ function ot(e, t) {
1160
1126
  }
1161
1127
  //#endregion
1162
1128
  //#region node_modules/rxjs/dist/esm5/internal/scheduled/scheduleReadableStreamLike.js
1163
- function st(e, t) {
1164
- return ot(Te(e), t);
1129
+ function et(e, t) {
1130
+ return $e(Re(e), t);
1165
1131
  }
1166
1132
  //#endregion
1167
1133
  //#region node_modules/rxjs/dist/esm5/internal/scheduled/scheduled.js
1168
- function ct(e, t) {
1134
+ function tt(e, t) {
1169
1135
  if (e != null) {
1170
- if (ye(e)) return nt(e, t);
1171
- if (j(e)) return it(e, t);
1172
- if (ve(e)) return rt(e, t);
1173
- if (be(e)) return ot(e, t);
1174
- if (we(e)) return at(e, t);
1175
- if (Ee(e)) return st(e, t);
1136
+ if (Me(e)) return Ye(e, t);
1137
+ if (P(e)) return Ze(e, t);
1138
+ if (je(e)) return Xe(e, t);
1139
+ if (Ne(e)) return $e(e, t);
1140
+ if (Le(e)) return Qe(e, t);
1141
+ if (ze(e)) return et(e, t);
1176
1142
  }
1177
- throw xe(e);
1143
+ throw Pe(e);
1178
1144
  }
1179
1145
  //#endregion
1180
1146
  //#region node_modules/rxjs/dist/esm5/internal/observable/from.js
1181
- function lt(e, t) {
1182
- return t ? ct(e, t) : M(e);
1183
- }
1184
- //#endregion
1185
- //#region node_modules/rxjs/dist/esm5/internal/observable/merge.js
1186
- function ut() {
1187
- var e = [...arguments], t = Qe(e), n = $e(e, Infinity), r = e;
1188
- return r.length ? r.length === 1 ? M(r[0]) : Je(n)(lt(r, t)) : Ye;
1147
+ function nt(e, t) {
1148
+ return t ? tt(e, t) : F(e);
1189
1149
  }
1190
1150
  //#endregion
1191
1151
  //#region node_modules/rxjs/dist/esm5/internal/observable/of.js
1192
- function z() {
1152
+ function L() {
1193
1153
  var e = [...arguments];
1194
- return lt(e, Qe(e));
1154
+ return nt(e, ke(e));
1195
1155
  }
1196
1156
  //#endregion
1197
1157
  //#region node_modules/rxjs/dist/esm5/internal/observable/throwError.js
1198
- function B(e, t) {
1158
+ function R(e, t) {
1199
1159
  var n = u(e) ? e : function() {
1200
1160
  return e;
1201
1161
  }, r = function(e) {
@@ -1206,129 +1166,177 @@ function B(e, t) {
1206
1166
  } : r);
1207
1167
  }
1208
1168
  //#endregion
1209
- //#region node_modules/rxjs/dist/esm5/internal/operators/catchError.js
1210
- function dt(e) {
1211
- return N(function(t, n) {
1212
- var r = null, i = !1, a;
1213
- r = t.subscribe(P(n, void 0, void 0, function(o) {
1214
- a = M(e(o, dt(e)(t))), r ? (r.unsubscribe(), r = null, a.subscribe(n)) : i = !0;
1215
- })), i && (r.unsubscribe(), r = null, a.subscribe(n));
1169
+ //#region node_modules/rxjs/dist/esm5/internal/util/EmptyError.js
1170
+ var rt = d(function(e) {
1171
+ return function() {
1172
+ e(this), this.name = "EmptyError", this.message = "no elements in sequence";
1173
+ };
1174
+ });
1175
+ //#endregion
1176
+ //#region node_modules/rxjs/dist/esm5/internal/util/isDate.js
1177
+ function it(e) {
1178
+ return e instanceof Date && !isNaN(e);
1179
+ }
1180
+ //#endregion
1181
+ //#region node_modules/rxjs/dist/esm5/internal/operators/timeout.js
1182
+ var at = d(function(e) {
1183
+ return function(t) {
1184
+ t === void 0 && (t = null), e(this), this.message = "Timeout has occurred", this.name = "TimeoutError", this.info = t;
1185
+ };
1186
+ });
1187
+ function ot(e, t) {
1188
+ var n = it(e) ? { first: e } : typeof e == "number" ? { each: e } : e, r = n.first, i = n.each, a = n.with, o = a === void 0 ? st : a, s = n.scheduler, c = s === void 0 ? t ?? we : s, l = n.meta, u = l === void 0 ? null : l;
1189
+ if (r == null && i == null) throw TypeError("No timeout provided.");
1190
+ return A(function(e, t) {
1191
+ var n, a, s = null, l = 0, d = function(e) {
1192
+ a = I(t, c, function() {
1193
+ try {
1194
+ n.unsubscribe(), F(o({
1195
+ meta: u,
1196
+ lastValue: s,
1197
+ seen: l
1198
+ })).subscribe(t);
1199
+ } catch (e) {
1200
+ t.error(e);
1201
+ }
1202
+ }, e);
1203
+ };
1204
+ n = e.subscribe(j(t, function(e) {
1205
+ a?.unsubscribe(), l++, t.next(s = e), i > 0 && d(i);
1206
+ }, void 0, void 0, function() {
1207
+ a?.closed || a?.unsubscribe(), s = null;
1208
+ })), !l && d(r == null ? i : typeof r == "number" ? r : +r - c.now());
1216
1209
  });
1217
1210
  }
1211
+ function st(e) {
1212
+ throw new at(e);
1213
+ }
1218
1214
  //#endregion
1219
- //#region node_modules/rxjs/dist/esm5/internal/operators/finalize.js
1220
- function ft(e) {
1221
- return N(function(t, n) {
1222
- try {
1223
- t.subscribe(n);
1224
- } finally {
1225
- n.add(e);
1226
- }
1215
+ //#region node_modules/rxjs/dist/esm5/internal/operators/map.js
1216
+ function z(e, t) {
1217
+ return A(function(n, r) {
1218
+ var i = 0;
1219
+ n.subscribe(j(r, function(n) {
1220
+ r.next(e.call(t, n, i++));
1221
+ }));
1227
1222
  });
1228
1223
  }
1229
1224
  //#endregion
1230
- //#region node_modules/rxjs/dist/esm5/internal/scheduler/Action.js
1231
- var pt = function(e) {
1232
- t(n, e);
1233
- function n(t, n) {
1234
- return e.call(this) || this;
1235
- }
1236
- return n.prototype.schedule = function(e, t) {
1237
- return t === void 0 && (t = 0), this;
1238
- }, n;
1239
- }(m), V = {
1240
- setInterval: function(e, t) {
1241
- var n = [...arguments].slice(2), r = V.delegate;
1242
- return r?.setInterval ? r.setInterval.apply(r, o([e, t], a(n))) : setInterval.apply(void 0, o([e, t], a(n)));
1243
- },
1244
- clearInterval: function(e) {
1245
- return (V.delegate?.clearInterval || clearInterval)(e);
1246
- },
1247
- delegate: void 0
1248
- }, mt = function(e) {
1249
- t(n, e);
1250
- function n(t, n) {
1251
- var r = e.call(this, t, n) || this;
1252
- return r.scheduler = t, r.work = n, r.pending = !1, r;
1253
- }
1254
- return n.prototype.schedule = function(e, t) {
1255
- if (t === void 0 && (t = 0), this.closed) return this;
1256
- this.state = e;
1257
- var n = this.id, r = this.scheduler;
1258
- return n != null && (this.id = this.recycleAsyncId(r, n, t)), this.pending = !0, this.delay = t, this.id = this.id ?? this.requestAsyncId(r, this.id, t), this;
1259
- }, n.prototype.requestAsyncId = function(e, t, n) {
1260
- return n === void 0 && (n = 0), V.setInterval(e.flush.bind(e, this), n);
1261
- }, n.prototype.recycleAsyncId = function(e, t, n) {
1262
- if (n === void 0 && (n = 0), n != null && this.delay === n && this.pending === !1) return t;
1263
- t != null && V.clearInterval(t);
1264
- }, n.prototype.execute = function(e, t) {
1265
- if (this.closed) return /* @__PURE__ */ Error("executing a cancelled action");
1266
- this.pending = !1;
1267
- var n = this._execute(e, t);
1268
- if (n) return n;
1269
- this.pending === !1 && this.id != null && (this.id = this.recycleAsyncId(this.scheduler, this.id, null));
1270
- }, n.prototype._execute = function(e, t) {
1271
- var n = !1, r;
1272
- try {
1273
- this.work(e);
1274
- } catch (e) {
1275
- n = !0, r = e || /* @__PURE__ */ Error("Scheduled action threw falsy error");
1276
- }
1277
- if (n) return this.unsubscribe(), r;
1278
- }, n.prototype.unsubscribe = function() {
1279
- if (!this.closed) {
1280
- var t = this, n = t.id, r = t.scheduler, i = r.actions;
1281
- this.work = this.state = this.scheduler = null, this.pending = !1, p(i, this), n != null && (this.id = this.recycleAsyncId(r, n, null)), this.delay = null, e.prototype.unsubscribe.call(this);
1282
- }
1283
- }, n;
1284
- }(pt), ht = {
1285
- now: function() {
1286
- return (ht.delegate || Date).now();
1287
- },
1288
- delegate: void 0
1289
- }, gt = function() {
1290
- function e(t, n) {
1291
- n === void 0 && (n = e.now), this.schedulerActionCtor = t, this.now = n;
1292
- }
1293
- return e.prototype.schedule = function(e, t, n) {
1294
- return t === void 0 && (t = 0), new this.schedulerActionCtor(this, e).schedule(n, t);
1295
- }, e.now = ht.now, e;
1296
- }(), _t = new (function(e) {
1297
- t(n, e);
1298
- function n(t, n) {
1299
- n === void 0 && (n = gt.now);
1300
- var r = e.call(this, t, n) || this;
1301
- return r.actions = [], r._active = !1, r;
1302
- }
1303
- return n.prototype.flush = function(e) {
1304
- var t = this.actions;
1305
- if (this._active) {
1306
- t.push(e);
1307
- return;
1308
- }
1309
- var n;
1310
- this._active = !0;
1311
- do
1312
- if (n = e.execute(e.state, e.delay)) break;
1313
- while (e = t.shift());
1314
- if (this._active = !1, n) {
1315
- for (; e = t.shift();) e.unsubscribe();
1316
- throw n;
1317
- }
1318
- }, n;
1319
- }(gt))(mt), vt = _t;
1225
+ //#region node_modules/rxjs/dist/esm5/internal/util/mapOneOrManyArgs.js
1226
+ var ct = Array.isArray;
1227
+ function lt(e, t) {
1228
+ return ct(t) ? e.apply(void 0, o([], a(t))) : e(t);
1229
+ }
1230
+ function ut(e) {
1231
+ return z(function(t) {
1232
+ return lt(e, t);
1233
+ });
1234
+ }
1320
1235
  //#endregion
1321
- //#region node_modules/rxjs/dist/esm5/internal/util/isDate.js
1236
+ //#region node_modules/rxjs/dist/esm5/internal/operators/mergeInternals.js
1237
+ function dt(e, t, n, r, i, a, o, s) {
1238
+ var c = [], l = 0, u = 0, d = !1, f = function() {
1239
+ d && !c.length && !l && t.complete();
1240
+ }, p = function(e) {
1241
+ return l < r ? m(e) : c.push(e);
1242
+ }, m = function(e) {
1243
+ a && t.next(e), l++;
1244
+ var s = !1;
1245
+ F(n(e, u++)).subscribe(j(t, function(e) {
1246
+ i?.(e), a ? p(e) : t.next(e);
1247
+ }, function() {
1248
+ s = !0;
1249
+ }, void 0, function() {
1250
+ if (s) try {
1251
+ l--;
1252
+ for (var e = function() {
1253
+ var e = c.shift();
1254
+ o ? I(t, o, function() {
1255
+ return m(e);
1256
+ }) : m(e);
1257
+ }; c.length && l < r;) e();
1258
+ f();
1259
+ } catch (e) {
1260
+ t.error(e);
1261
+ }
1262
+ }));
1263
+ };
1264
+ return e.subscribe(j(t, p, function() {
1265
+ d = !0, f();
1266
+ })), function() {
1267
+ s?.();
1268
+ };
1269
+ }
1270
+ //#endregion
1271
+ //#region node_modules/rxjs/dist/esm5/internal/operators/mergeMap.js
1272
+ function B(e, t, n) {
1273
+ return n === void 0 && (n = Infinity), u(t) ? B(function(n, r) {
1274
+ return z(function(e, i) {
1275
+ return t(n, e, r, i);
1276
+ })(F(e(n, r)));
1277
+ }, n) : (typeof t == "number" && (n = t), A(function(t, r) {
1278
+ return dt(t, r, e, n);
1279
+ }));
1280
+ }
1281
+ //#endregion
1282
+ //#region node_modules/rxjs/dist/esm5/internal/operators/mergeAll.js
1283
+ function ft(e) {
1284
+ return e === void 0 && (e = Infinity), B(O, e);
1285
+ }
1286
+ //#endregion
1287
+ //#region node_modules/rxjs/dist/esm5/internal/observable/defer.js
1288
+ function pt(e) {
1289
+ return new k(function(t) {
1290
+ F(e()).subscribe(t);
1291
+ });
1292
+ }
1293
+ //#endregion
1294
+ //#region node_modules/rxjs/dist/esm5/internal/observable/fromEvent.js
1295
+ var mt = ["addListener", "removeListener"], ht = ["addEventListener", "removeEventListener"], gt = ["on", "off"];
1296
+ function V(e, t, n, r) {
1297
+ if (u(n) && (r = n, n = void 0), r) return V(e, t, n).pipe(ut(r));
1298
+ var i = a(bt(e) ? ht.map(function(r) {
1299
+ return function(i) {
1300
+ return e[r](t, i, n);
1301
+ };
1302
+ }) : vt(e) ? mt.map(_t(e, t)) : yt(e) ? gt.map(_t(e, t)) : [], 2), o = i[0], s = i[1];
1303
+ if (!o && P(e)) return B(function(e) {
1304
+ return V(e, t, n);
1305
+ })(F(e));
1306
+ if (!o) throw TypeError("Invalid event target");
1307
+ return new k(function(e) {
1308
+ var t = function() {
1309
+ var t = [...arguments];
1310
+ return e.next(1 < t.length ? t : t[0]);
1311
+ };
1312
+ return o(t), function() {
1313
+ return s(t);
1314
+ };
1315
+ });
1316
+ }
1317
+ function _t(e, t) {
1318
+ return function(n) {
1319
+ return function(r) {
1320
+ return e[n](t, r);
1321
+ };
1322
+ };
1323
+ }
1324
+ function vt(e) {
1325
+ return u(e.addListener) && u(e.removeListener);
1326
+ }
1322
1327
  function yt(e) {
1323
- return e instanceof Date && !isNaN(e);
1328
+ return u(e.on) && u(e.off);
1329
+ }
1330
+ function bt(e) {
1331
+ return u(e.addEventListener) && u(e.removeEventListener);
1324
1332
  }
1325
1333
  //#endregion
1326
1334
  //#region node_modules/rxjs/dist/esm5/internal/observable/timer.js
1327
- function bt(e, t, n) {
1328
- e === void 0 && (e = 0), n === void 0 && (n = vt);
1335
+ function xt(e, t, n) {
1336
+ e === void 0 && (e = 0), n === void 0 && (n = Te);
1329
1337
  var r = -1;
1330
- return t != null && (Xe(t) ? n = t : r = t), new k(function(t) {
1331
- var i = yt(e) ? +e - n.now() : e;
1338
+ return t != null && (De(t) ? n = t : r = t), new k(function(t) {
1339
+ var i = it(e) ? +e - n.now() : e;
1332
1340
  i < 0 && (i = 0);
1333
1341
  var a = 0;
1334
1342
  return n.schedule(function() {
@@ -1337,89 +1345,37 @@ function bt(e, t, n) {
1337
1345
  });
1338
1346
  }
1339
1347
  //#endregion
1340
- //#region node_modules/rxjs/dist/esm5/internal/operators/retry.js
1341
- function xt(e) {
1342
- e === void 0 && (e = Infinity);
1343
- var t = e && typeof e == "object" ? e : { count: e }, n = t.count, r = n === void 0 ? Infinity : n, i = t.delay, a = t.resetOnSuccess, o = a === void 0 ? !1 : a;
1344
- return r <= 0 ? O : N(function(e, t) {
1345
- var n = 0, a, s = function() {
1346
- var c = !1;
1347
- a = e.subscribe(P(t, function(e) {
1348
- o && (n = 0), t.next(e);
1349
- }, void 0, function(e) {
1350
- if (n++ < r) {
1351
- var o = function() {
1352
- a ? (a.unsubscribe(), a = null, s()) : c = !0;
1353
- };
1354
- if (i != null) {
1355
- var l = typeof i == "number" ? bt(i) : M(i(e, n)), u = P(t, function() {
1356
- u.unsubscribe(), o();
1357
- }, function() {
1358
- t.complete();
1359
- });
1360
- l.subscribe(u);
1361
- } else o();
1362
- } else t.error(e);
1363
- })), c && (a.unsubscribe(), a = null, s());
1364
- };
1365
- s();
1366
- });
1367
- }
1368
- //#endregion
1369
- //#region node_modules/rxjs/dist/esm5/internal/operators/switchMap.js
1370
- function H(e, t) {
1371
- return N(function(n, r) {
1372
- var i = null, a = 0, o = !1, s = function() {
1373
- return o && !i && r.complete();
1374
- };
1375
- n.subscribe(P(r, function(n) {
1376
- i?.unsubscribe();
1377
- var o = 0, c = a++;
1378
- M(e(n, c)).subscribe(i = P(r, function(e) {
1379
- return r.next(t ? t(n, e, c, o++) : e);
1380
- }, function() {
1381
- i = null, s();
1382
- }));
1383
- }, function() {
1384
- o = !0, s();
1385
- }));
1386
- });
1387
- }
1388
- //#endregion
1389
- //#region node_modules/rxjs/dist/esm5/internal/operators/take.js
1390
- function St(e) {
1391
- return e <= 0 ? function() {
1392
- return Ye;
1393
- } : N(function(t, n) {
1394
- var r = 0;
1395
- t.subscribe(P(n, function(t) {
1396
- ++r <= e && (n.next(t), e <= r && n.complete());
1397
- }));
1398
- });
1348
+ //#region node_modules/rxjs/dist/esm5/internal/observable/merge.js
1349
+ function St() {
1350
+ var e = [...arguments], t = ke(e), n = Ae(e, Infinity), r = e;
1351
+ return r.length ? r.length === 1 ? F(r[0]) : ft(n)(nt(r, t)) : Ee;
1399
1352
  }
1400
1353
  //#endregion
1401
1354
  //#region node_modules/rxjs/dist/esm5/internal/operators/filter.js
1402
1355
  function Ct(e, t) {
1403
- return N(function(n, r) {
1356
+ return A(function(n, r) {
1404
1357
  var i = 0;
1405
- n.subscribe(P(r, function(n) {
1358
+ n.subscribe(j(r, function(n) {
1406
1359
  return e.call(t, n, i++) && r.next(n);
1407
1360
  }));
1408
1361
  });
1409
1362
  }
1410
1363
  //#endregion
1411
- //#region node_modules/rxjs/dist/esm5/internal/util/EmptyError.js
1412
- var wt = d(function(e) {
1413
- return function() {
1414
- e(this), this.name = "EmptyError", this.message = "no elements in sequence";
1415
- };
1416
- });
1364
+ //#region node_modules/rxjs/dist/esm5/internal/operators/catchError.js
1365
+ function wt(e) {
1366
+ return A(function(t, n) {
1367
+ var r = null, i = !1, a;
1368
+ r = t.subscribe(j(n, void 0, void 0, function(o) {
1369
+ a = F(e(o, wt(e)(t))), r ? (r.unsubscribe(), r = null, a.subscribe(n)) : i = !0;
1370
+ })), i && (r.unsubscribe(), r = null, a.subscribe(n));
1371
+ });
1372
+ }
1417
1373
  //#endregion
1418
1374
  //#region node_modules/rxjs/dist/esm5/internal/operators/defaultIfEmpty.js
1419
1375
  function Tt(e) {
1420
- return N(function(t, n) {
1376
+ return A(function(t, n) {
1421
1377
  var r = !1;
1422
- t.subscribe(P(n, function(e) {
1378
+ t.subscribe(j(n, function(e) {
1423
1379
  r = !0, n.next(e);
1424
1380
  }, function() {
1425
1381
  r || n.next(e), n.complete();
@@ -1427,33 +1383,105 @@ function Tt(e) {
1427
1383
  });
1428
1384
  }
1429
1385
  //#endregion
1430
- //#region node_modules/rxjs/dist/esm5/internal/operators/throwIfEmpty.js
1386
+ //#region node_modules/rxjs/dist/esm5/internal/operators/take.js
1431
1387
  function Et(e) {
1432
- return e === void 0 && (e = Dt), N(function(t, n) {
1388
+ return e <= 0 ? function() {
1389
+ return Ee;
1390
+ } : A(function(t, n) {
1391
+ var r = 0;
1392
+ t.subscribe(j(n, function(t) {
1393
+ ++r <= e && (n.next(t), e <= r && n.complete());
1394
+ }));
1395
+ });
1396
+ }
1397
+ //#endregion
1398
+ //#region node_modules/rxjs/dist/esm5/internal/operators/throwIfEmpty.js
1399
+ function Dt(e) {
1400
+ return e === void 0 && (e = Ot), A(function(t, n) {
1433
1401
  var r = !1;
1434
- t.subscribe(P(n, function(e) {
1402
+ t.subscribe(j(n, function(e) {
1435
1403
  r = !0, n.next(e);
1436
1404
  }, function() {
1437
1405
  return r ? n.complete() : n.error(e());
1438
1406
  }));
1439
1407
  });
1440
1408
  }
1441
- function Dt() {
1442
- return new wt();
1409
+ function Ot() {
1410
+ return new rt();
1411
+ }
1412
+ //#endregion
1413
+ //#region node_modules/rxjs/dist/esm5/internal/operators/finalize.js
1414
+ function kt(e) {
1415
+ return A(function(t, n) {
1416
+ try {
1417
+ t.subscribe(n);
1418
+ } finally {
1419
+ n.add(e);
1420
+ }
1421
+ });
1443
1422
  }
1444
1423
  //#endregion
1445
1424
  //#region node_modules/rxjs/dist/esm5/internal/operators/first.js
1446
- function U(e, t) {
1425
+ function H(e, t) {
1447
1426
  var n = arguments.length >= 2;
1448
1427
  return function(r) {
1449
1428
  return r.pipe(e ? Ct(function(t, n) {
1450
1429
  return e(t, n, r);
1451
- }) : O, St(1), n ? Tt(t) : Et(function() {
1452
- return new wt();
1430
+ }) : O, Et(1), n ? Tt(t) : Dt(function() {
1431
+ return new rt();
1453
1432
  }));
1454
1433
  };
1455
1434
  }
1456
1435
  //#endregion
1436
+ //#region node_modules/rxjs/dist/esm5/internal/operators/retry.js
1437
+ function At(e) {
1438
+ e === void 0 && (e = Infinity);
1439
+ var t = e && typeof e == "object" ? e : { count: e }, n = t.count, r = n === void 0 ? Infinity : n, i = t.delay, a = t.resetOnSuccess, o = a !== void 0 && a;
1440
+ return r <= 0 ? O : A(function(e, t) {
1441
+ var n = 0, a, s = function() {
1442
+ var c = !1;
1443
+ a = e.subscribe(j(t, function(e) {
1444
+ o && (n = 0), t.next(e);
1445
+ }, void 0, function(e) {
1446
+ if (n++ < r) {
1447
+ var o = function() {
1448
+ a ? (a.unsubscribe(), a = null, s()) : c = !0;
1449
+ };
1450
+ if (i != null) {
1451
+ var l = typeof i == "number" ? xt(i) : F(i(e, n)), u = j(t, function() {
1452
+ u.unsubscribe(), o();
1453
+ }, function() {
1454
+ t.complete();
1455
+ });
1456
+ l.subscribe(u);
1457
+ } else o();
1458
+ } else t.error(e);
1459
+ })), c && (a.unsubscribe(), a = null, s());
1460
+ };
1461
+ s();
1462
+ });
1463
+ }
1464
+ //#endregion
1465
+ //#region node_modules/rxjs/dist/esm5/internal/operators/switchMap.js
1466
+ function U(e, t) {
1467
+ return A(function(n, r) {
1468
+ var i = null, a = 0, o = !1, s = function() {
1469
+ return o && !i && r.complete();
1470
+ };
1471
+ n.subscribe(j(r, function(n) {
1472
+ i?.unsubscribe();
1473
+ var o = 0, c = a++;
1474
+ F(e(n, c)).subscribe(i = j(r, function(e) {
1475
+ return r.next(t ? t(n, e, c, o++) : e);
1476
+ }, function() {
1477
+ i = null, s();
1478
+ }));
1479
+ }, function() {
1480
+ o = !0, s();
1481
+ }));
1482
+ });
1483
+ }
1484
+ //#endregion
1457
1485
  //#region node_modules/rxjs/dist/esm5/internal/operators/tap.js
1458
1486
  function W(e, t, n) {
1459
1487
  var r = u(e) || t || n ? {
@@ -1461,11 +1489,11 @@ function W(e, t, n) {
1461
1489
  error: t,
1462
1490
  complete: n
1463
1491
  } : e;
1464
- return r ? N(function(e, t) {
1492
+ return r ? A(function(e, t) {
1465
1493
  var n;
1466
1494
  (n = r.subscribe) == null || n.call(r);
1467
1495
  var i = !0;
1468
- e.subscribe(P(t, function(e) {
1496
+ e.subscribe(j(t, function(e) {
1469
1497
  var n;
1470
1498
  (n = r.next) == null || n.call(r, e), t.next(e);
1471
1499
  }, function() {
@@ -1481,40 +1509,6 @@ function W(e, t, n) {
1481
1509
  }) : O;
1482
1510
  }
1483
1511
  //#endregion
1484
- //#region node_modules/rxjs/dist/esm5/internal/operators/timeout.js
1485
- var Ot = d(function(e) {
1486
- return function(t) {
1487
- t === void 0 && (t = null), e(this), this.message = "Timeout has occurred", this.name = "TimeoutError", this.info = t;
1488
- };
1489
- });
1490
- function kt(e, t) {
1491
- var n = yt(e) ? { first: e } : typeof e == "number" ? { each: e } : e, r = n.first, i = n.each, a = n.with, o = a === void 0 ? At : a, s = n.scheduler, c = s === void 0 ? t ?? _t : s, l = n.meta, u = l === void 0 ? null : l;
1492
- if (r == null && i == null) throw TypeError("No timeout provided.");
1493
- return N(function(e, t) {
1494
- var n, a, s = null, l = 0, d = function(e) {
1495
- a = I(t, c, function() {
1496
- try {
1497
- n.unsubscribe(), M(o({
1498
- meta: u,
1499
- lastValue: s,
1500
- seen: l
1501
- })).subscribe(t);
1502
- } catch (e) {
1503
- t.error(e);
1504
- }
1505
- }, e);
1506
- };
1507
- n = e.subscribe(P(t, function(e) {
1508
- a?.unsubscribe(), l++, t.next(s = e), i > 0 && d(i);
1509
- }, void 0, void 0, function() {
1510
- a?.closed || a?.unsubscribe(), s = null;
1511
- })), !l && d(r == null ? i : typeof r == "number" ? r : +r - c.now());
1512
- });
1513
- }
1514
- function At(e) {
1515
- throw new Ot(e);
1516
- }
1517
- //#endregion
1518
1512
  //#region src/shared/enums/LoggingLevel.enum.ts
1519
1513
  var G = /* @__PURE__ */ function(e) {
1520
1514
  return e.ERROR = "ERROR", e.ALL = "ALL", e;
@@ -1528,23 +1522,23 @@ var G = /* @__PURE__ */ function(e) {
1528
1522
  }
1529
1523
  init$(e) {
1530
1524
  try {
1531
- return this.loggerService.init(e.loggingLevel || G.ERROR), this.configService.setConfig(e), this.sessionIdService.createId(), this.configService.getConfig$().pipe(U());
1525
+ return this.loggerService.init(e.loggingLevel || G.ERROR), this.configService.setConfig(e), this.sessionIdService.createId(), this.configService.getConfig$().pipe(H());
1532
1526
  } catch (e) {
1533
- return this.loggerService.error(e), B(this.loggerService.getErrorMessage(`Initialization failed\n\n${JSON.stringify(e)}`));
1527
+ return this.loggerService.error(e), R(this.loggerService.getErrorMessage(`Initialization failed\n\n${JSON.stringify(e)}`));
1534
1528
  }
1535
1529
  }
1536
1530
  run3DSMethod$(e, t, n) {
1537
1531
  try {
1538
- return this.methodURLService.run$(e, t, n).pipe(U());
1532
+ return this.methodURLService.run$(e, t, n).pipe(H());
1539
1533
  } catch (e) {
1540
- return this.loggerService.error(e), B(this.loggerService.getErrorMessage(`3DS Method failed\n\n${JSON.stringify(e)}`));
1534
+ return this.loggerService.error(e), R(this.loggerService.getErrorMessage(`3DS Method failed\n\n${JSON.stringify(e)}`));
1541
1535
  }
1542
1536
  }
1543
1537
  doChallenge$(e, t, n, r, i, a) {
1544
1538
  try {
1545
- return this.challengeService.run$(e, t, n, r, i, a).pipe(U());
1539
+ return this.challengeService.run$(e, t, n, r, i, a).pipe(H());
1546
1540
  } catch (e) {
1547
- return this.loggerService.error(e), B(this.loggerService.getErrorMessage(`3DS Challenge failed\n\n${JSON.stringify(e)}`));
1541
+ return this.loggerService.error(e), R(this.loggerService.getErrorMessage(`3DS Challenge failed\n\n${JSON.stringify(e)}`));
1548
1542
  }
1549
1543
  }
1550
1544
  getBrowserData$(e, t) {
@@ -1579,7 +1573,7 @@ var G = /* @__PURE__ */ function(e) {
1579
1573
  return e.ERROR = "error", e.WARNING = "warning", e.DEBUG = "debug", e;
1580
1574
  }({}), Mt = class {
1581
1575
  constructor() {
1582
- this.logsSubject$ = new A(), this.loggingLevel = G.ERROR, this.logs$ = this.logsSubject$.asObservable();
1576
+ this.logsSubject$ = new M(), this.loggingLevel = G.ERROR, this.logs$ = this.logsSubject$.asObservable();
1583
1577
  }
1584
1578
  init(e) {
1585
1579
  this.loggingLevel = e, this.logsSubject$.subscribe((e) => this.logToConsole(e));
@@ -1627,7 +1621,7 @@ var G = /* @__PURE__ */ function(e) {
1627
1621
  return e.POPUP = "POPUP", e.INLINE = "INLINE", e;
1628
1622
  }({}), Nt = class {
1629
1623
  constructor(e) {
1630
- this.domMethodsService = e, this.translationsWhitelist = ["cancel"], this.config$ = new _e({
1624
+ this.domMethodsService = e, this.translationsWhitelist = ["cancel"], this.config$ = new ye({
1631
1625
  challengeDisplayMode: Y.POPUP,
1632
1626
  loggingLevel: G.ERROR,
1633
1627
  translations: { cancel: "X" },
@@ -1707,7 +1701,7 @@ var G = /* @__PURE__ */ function(e) {
1707
1701
  }
1708
1702
  getData$(e, t) {
1709
1703
  let n = this.getBrowserGeneralDataObject(t);
1710
- return t && !t.isRequiredBrowserIP && !t.isRequiredBrowserAcceptHeader ? z(n) : this.getAcceptHeaderAndIPAddress$(e).pipe(F((e) => {
1704
+ return t && !t.isRequiredBrowserIP && !t.isRequiredBrowserAcceptHeader ? L(n) : this.getAcceptHeaderAndIPAddress$(e).pipe(z((e) => {
1711
1705
  let r = { ...n };
1712
1706
  return t ? (t.isRequiredBrowserAcceptHeader && (r.browserAcceptHeader = e.browserAcceptHeader), t.isRequiredBrowserIP && (r.browserIP = e.browserIP)) : (r.browserAcceptHeader = e.browserAcceptHeader, r.browserIP = e.browserIP), r;
1713
1707
  }));
@@ -1749,10 +1743,10 @@ var G = /* @__PURE__ */ function(e) {
1749
1743
  }
1750
1744
  getAcceptHeaderAndIPAddress$(e) {
1751
1745
  let t = typeof e == "string" ? e : e[0];
1752
- return Pe(() => z(this.createIframeForAcceptHeaderAndIPAddress(t))).pipe(H(() => this.interFrameCommunicatorService.receive$(X.BROWSER_DATA_RESPONSE).pipe(St(1))), W((e) => this.loggerService.debug(`Received raw browser data from iframe: ${e}`)), F((e) => this.base64TranscoderService.decode(e)), F((e) => ({
1746
+ return pt(() => L(this.createIframeForAcceptHeaderAndIPAddress(t))).pipe(U(() => this.interFrameCommunicatorService.receive$(X.BROWSER_DATA_RESPONSE).pipe(Et(1))), W((e) => this.loggerService.debug(`Received raw browser data from iframe: ${e}`)), z((e) => this.base64TranscoderService.decode(e)), z((e) => ({
1753
1747
  browserAcceptHeader: e.acceptHeader,
1754
1748
  browserIP: e.userIP
1755
- })), W((e) => this.loggerService.debug(`Collected browser data: ${JSON.stringify(e)}`)), ft(() => this.destroyView()), kt(this.browserDataTimeout), xt(2), dt((e) => (this.loggerService.error("Cannot retrieve user IP and accept header. Using fallback values instead."), this.loggerService.error(e), z({
1749
+ })), W((e) => this.loggerService.debug(`Collected browser data: ${JSON.stringify(e)}`)), kt(() => this.destroyView()), ot(this.browserDataTimeout), At(2), wt((e) => (this.loggerService.error("Cannot retrieve user IP and accept header. Using fallback values instead."), this.loggerService.error(e), L({
1756
1750
  browserAcceptHeader: this.fallbackAcceptHeaderValue,
1757
1751
  browserIP: ""
1758
1752
  }))));
@@ -1804,10 +1798,10 @@ var G = /* @__PURE__ */ function(e) {
1804
1798
  this.configService = e, this.challengeV1Service = t, this.challengeV2Service = n, this.challengeCommonService = r;
1805
1799
  }
1806
1800
  run$(e, t, n, r, i, a) {
1807
- return this.configService.getConfig$().pipe(H((o) => e.isLowerThan(Z.V2) ? this.challengeV1Service.run$(o, t, n, i, a, r) : this.challengeV2Service.run$(o, t, n, r)));
1801
+ return this.configService.getConfig$().pipe(U((o) => e.isLowerThan(Z.V2) ? this.challengeV1Service.run$(o, t, n, i, a, r) : this.challengeV2Service.run$(o, t, n, r)));
1808
1802
  }
1809
1803
  cancelChallenge$() {
1810
- return this.configService.getConfig$().pipe(W((e) => this.challengeCommonService.cancelChallenge(e)), H((e) => this.challengeCommonService.handleCancelEvent$(e)));
1804
+ return this.configService.getConfig$().pipe(W((e) => this.challengeCommonService.cancelChallenge(e)), U((e) => this.challengeCommonService.handleCancelEvent$(e)));
1811
1805
  }
1812
1806
  }, Q = /* @__PURE__ */ function(e) {
1813
1807
  return e.SUCCESS = "SUCCESS", e.FAILURE = "FAILURE", e.ERROR = "ERROR", e.NOACTION = "NOACTION", e.CANCELLED = "CANCELLED", e.COMPLETED = "COMPLETED", e.UNCOMPLETED = "UNCOMPLETED", e;
@@ -1819,9 +1813,9 @@ var G = /* @__PURE__ */ function(e) {
1819
1813
  if (typeof e != "string" || e.length === 0) throw new q("run3DSMethod$() requires transactionId");
1820
1814
  if (typeof t != "string" || t.length === 0) throw new q("run3DSMethod$() requires notificationURL");
1821
1815
  if (typeof n != "string" || n.length === 0) throw new q("run3DSMethod$() requires methodURL");
1822
- return this.domMethodsService.addToElement(this.createIframeForMethodURL(n, e, t), this.domMethodsService.getElement("body")), this.configService.getConfig$().pipe(H((t) => this.interFrameCommunicatorService.receive$(X.METHOD_URL_RESPONSE).pipe(F((e) => this.mapStatus(this.base64TranscoderService.decode(e))), kt({
1816
+ return this.domMethodsService.addToElement(this.createIframeForMethodURL(n, e, t), this.domMethodsService.getElement("body")), this.configService.getConfig$().pipe(U((t) => this.interFrameCommunicatorService.receive$(X.METHOD_URL_RESPONSE).pipe(z((e) => this.mapStatus(this.base64TranscoderService.decode(e))), ot({
1823
1817
  first: t.threeDSMethodTimeout,
1824
- with: () => z(this.getUncompletedResult(e))
1818
+ with: () => L(this.getUncompletedResult(e))
1825
1819
  }), W(() => {
1826
1820
  this.destroyView();
1827
1821
  }))));
@@ -1873,7 +1867,7 @@ var G = /* @__PURE__ */ function(e) {
1873
1867
  }, this.processingScreenWrapperElement = this.domMethodsService.createElement("div"), this.domMethodsService.addClassesToElement(this.processingScreenWrapperElement, [this.classNames.overlay, this.classNames.screenWrapper]), this.loaderElement = this.domMethodsService.createElement("div"), this.domMethodsService.addClassesToElement(this.loaderElement, [this.classNames.loader]);
1874
1868
  }
1875
1869
  show(e) {
1876
- this.configService.getConfig$().pipe(U()).subscribe((t) => {
1870
+ this.configService.getConfig$().pipe(H()).subscribe((t) => {
1877
1871
  if (t.processingScreenMode === J.OVERLAY) this.connectTo(this.document.body, e, J.OVERLAY);
1878
1872
  else {
1879
1873
  let n = this.domMethodsService.getElement(`#${t.processingScreenWrapperElementId}`);
@@ -1882,7 +1876,7 @@ var G = /* @__PURE__ */ function(e) {
1882
1876
  });
1883
1877
  }
1884
1878
  hide() {
1885
- this.configService.getConfig$().pipe(U()).subscribe((e) => {
1879
+ this.configService.getConfig$().pipe(H()).subscribe((e) => {
1886
1880
  if (e.processingScreenMode === J.OVERLAY) this.disconnectFrom(this.document.body);
1887
1881
  else {
1888
1882
  let t = this.domMethodsService.getElement(`#${e.processingScreenWrapperElementId}`);
@@ -1995,7 +1989,7 @@ var G = /* @__PURE__ */ function(e) {
1995
1989
  this.window = e;
1996
1990
  }
1997
1991
  receive$(e) {
1998
- return R(this.window, "message").pipe(Ct((t) => t.data && t.data.type === e), F((e) => e.data.data));
1992
+ return V(this.window, "message").pipe(Ct((t) => t.data && t.data.type === e), z((e) => e.data.data));
1999
1993
  }
2000
1994
  }, Gt = "\n.tp-3ds-processing-screen {\n position: relative;\n height: 100%;\n}\n\n.tp-3ds-processing-screen-wrapper {\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: 50;\n}\n\n.tp-3ds-processing-screen-loader {\n box-sizing: border-box;\n display: block;\n position: absolute;\n top: 50%;\n left: 50%;\n width: 40px;\n height: 40px;\n margin-top: 30px;\n border: 4px solid #e61c5b;\n border-radius: 32px;\n animation: tp-3ds-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) 0.15s infinite;\n border-color: #e61c5b transparent;\n will-change: animation;\n transform: translate(-50%) rotate(0deg);\n}\n\n.tp-3ds-processing-screen-logo {\n position: absolute;\n top: 50%;\n left: 50%;\n user-select: none;\n}\n\n.tp-3ds-processing-screen-wrapper-visa .tp-3ds-processing-screen-logo {\n margin: -100px 0 0 -56px;\n}\n\n.tp-3ds-processing-screen-wrapper-mastercard .tp-3ds-processing-screen-logo {\n margin: -123px 0 0 -79px;\n}\n\n@keyframes tp-3ds-spin {\n from {\n transform: translate(-50%) rotate(0deg);\n }\n to {\n transform: translate(-50%) rotate(360deg);\n }\n}\n", Kt = class {
2001
1995
  constructor(e) {
@@ -2061,7 +2055,7 @@ var G = /* @__PURE__ */ function(e) {
2061
2055
  }
2062
2056
  }, qt = class {
2063
2057
  constructor(e, t) {
2064
- this.domMethodsService = e, this.document = t, this.cancelEmitter$ = new A(), this.classNames = {
2058
+ this.domMethodsService = e, this.document = t, this.cancelEmitter$ = new M(), this.classNames = {
2065
2059
  mainContainer: "tp-3ds-popup-view",
2066
2060
  wrapper: "tp-3ds-popup-view-wrapper",
2067
2061
  overlay: "tp-3ds-overlay",
@@ -2106,7 +2100,7 @@ var G = /* @__PURE__ */ function(e) {
2106
2100
  }
2107
2101
  }, Jt = class {
2108
2102
  constructor(e) {
2109
- this.domMethodsService = e, this.cancelState$ = new A(), this.classNames = {
2103
+ this.domMethodsService = e, this.cancelState$ = new M(), this.classNames = {
2110
2104
  mainContainer: "tp-3ds-inline-view",
2111
2105
  wrapper: "tp-3ds-inline-view-wrapper",
2112
2106
  header: "tp-3ds-inline-view-header",
@@ -2154,7 +2148,7 @@ var G = /* @__PURE__ */ function(e) {
2154
2148
  description: "Challenge cancelled",
2155
2149
  transactionId: t
2156
2150
  };
2157
- return e.challengeDisplayMode === Y.POPUP ? this.popupViewService.cancelled$().pipe(F(() => n)) : this.inlineViewService.cancelled$().pipe(F(() => n));
2151
+ return e.challengeDisplayMode === Y.POPUP ? this.popupViewService.cancelled$().pipe(z(() => n)) : this.inlineViewService.cancelled$().pipe(z(() => n));
2158
2152
  }
2159
2153
  getChallengeWindowSize() {
2160
2154
  let e = this.window.innerWidth;
@@ -2186,11 +2180,11 @@ var G = /* @__PURE__ */ function(e) {
2186
2180
  this.challengeCommonService = e, this.interFrameCommunicatorService = t, this.iframeCreatorService = n;
2187
2181
  }
2188
2182
  run$(e, t, n, r, i, a) {
2189
- return this.validate(t, n, r, i), ut(this.open$(e, t, n, r, i, a), this.challengeCommonService.handleCancelEvent$(e)).pipe(U());
2183
+ return this.validate(t, n, r, i), St(this.open$(e, t, n, r, i, a), this.challengeCommonService.handleCancelEvent$(e)).pipe(H());
2190
2184
  }
2191
2185
  open$(e, t, n, r, i, a) {
2192
2186
  let o = this.createIframe(t, n, r, i, a);
2193
- return this.challengeCommonService.initView(e, o), this.interFrameCommunicatorService.receive$(X.CHALLENGE_RESPONSE).pipe(F((e) => this.mapStatus(e)), W(() => {
2187
+ return this.challengeCommonService.initView(e, o), this.interFrameCommunicatorService.receive$(X.CHALLENGE_RESPONSE).pipe(z((e) => this.mapStatus(e)), W(() => {
2194
2188
  this.challengeCommonService.closeChallengeWindow(e);
2195
2189
  }));
2196
2190
  }
@@ -2252,11 +2246,11 @@ var G = /* @__PURE__ */ function(e) {
2252
2246
  }
2253
2247
  run$(e, t, n, r) {
2254
2248
  let i = this.base64TranscoderService.decode(t);
2255
- return this.challengeCommonService.validate(n), this.validateCReq(i), ut(this.open$(e, t, n, r), this.challengeCommonService.handleCancelEvent$(e, i.threeDSServerTransID)).pipe(U());
2249
+ return this.challengeCommonService.validate(n), this.validateCReq(i), St(this.open$(e, t, n, r), this.challengeCommonService.handleCancelEvent$(e, i.threeDSServerTransID)).pipe(H());
2256
2250
  }
2257
2251
  open$(e, t, n, r) {
2258
2252
  let i = this.createIframe(t, n, r);
2259
- return this.challengeCommonService.initView(e, i), this.interFrameCommunicatorService.receive$(X.CHALLENGE_RESPONSE).pipe(F((e) => this.mapStatus(this.base64TranscoderService.decode(e))), W(() => {
2253
+ return this.challengeCommonService.initView(e, i), this.interFrameCommunicatorService.receive$(X.CHALLENGE_RESPONSE).pipe(z((e) => this.mapStatus(this.base64TranscoderService.decode(e))), W(() => {
2260
2254
  this.challengeCommonService.closeChallengeWindow(e);
2261
2255
  }));
2262
2256
  }