@soyio/soyio-widget 2.15.1 → 2.15.3

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
@@ -50,7 +50,7 @@ function gn(c, d) {
50
50
  return Object.freeze(Object.defineProperty(c, Symbol.toStringTag, { value: "Module" }));
51
51
  }
52
52
  const be = !!(typeof window != "undefined" && window.document && window.document.createElement), Ct = 200;
53
- class Fe {
53
+ class He {
54
54
  constructor() {
55
55
  N(this, "tooltipElement", null);
56
56
  N(this, "tooltipContent", null);
@@ -116,7 +116,7 @@ class Fe {
116
116
  }
117
117
  };
118
118
  for (const [, k] of Object.entries(A))
119
- if (Fe.fitsInViewport(k, f, v, y, E))
119
+ if (He.fitsInViewport(k, f, v, y, E))
120
120
  return k;
121
121
  const D = A.top;
122
122
  return D.left = Math.max(S, Math.min(D.left, y - f - S)), D.top = Math.max(S, Math.min(D.top, E - v - S)), D;
@@ -178,7 +178,7 @@ function Wn() {
178
178
  })));
179
179
  });
180
180
  }
181
- function jt(c, d) {
181
+ function Mt(c, d) {
182
182
  const {
183
183
  onHeightChange: h,
184
184
  onIframeReady: f,
@@ -236,7 +236,7 @@ const zt = "https://app.soyio.id", Lt = "https://sandbox.soyio.id", An = "https:
236
236
  "DENIED_CAMERA_PERMISSION",
237
237
  "REJECTED_SIGNATURE",
238
238
  "CLOSE_POPUP"
239
- ], Mn = "WIDGET_CLOSED", jn = 420, zn = 720, Ln = 500, kn = {
239
+ ], jn = "WIDGET_CLOSED", Mn = 420, zn = 720, Ln = 500, kn = {
240
240
  minWidth: "375px"
241
241
  }, Un = {
242
242
  minWidth: "0px"
@@ -253,7 +253,7 @@ class We {
253
253
  N(this, "defaultIframeCSSConfig", kn);
254
254
  N(this, "Skeleton", null);
255
255
  N(this, "defaultUniqueId");
256
- this.options = d, this.appearance = d.appearance || null, this.tooltipManager = new Fe(), this.defaultUniqueId = We.generateUniqueId();
256
+ this.options = d, this.appearance = d.appearance || null, this.tooltipManager = new He(), this.defaultUniqueId = We.generateUniqueId();
257
257
  }
258
258
  static generateUniqueId() {
259
259
  return On();
@@ -288,7 +288,7 @@ class We {
288
288
  onTooltipChange: this.handleTooltipChange.bind(this),
289
289
  onInfo: this.options.onEvent.bind(this)
290
290
  };
291
- jt(this.uniqueIdentifier, d);
291
+ Mt(this.uniqueIdentifier, d);
292
292
  });
293
293
  }
294
294
  mount(d) {
@@ -402,8 +402,8 @@ class Hn {
402
402
  animation: shimmer 1.5s infinite;
403
403
  border-radius: 0.125rem;
404
404
  `;
405
- const oe = document.createElement("div");
406
- if (oe.style.cssText = `
405
+ const X = document.createElement("div");
406
+ if (X.style.cssText = `
407
407
  height: 0.875rem;
408
408
  width: 60%;
409
409
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
@@ -411,15 +411,15 @@ class Hn {
411
411
  animation: shimmer 1.5s infinite;
412
412
  border-radius: 0.125rem;
413
413
  `, !document.getElementById("skeleton-animation")) {
414
- const Z = document.createElement("style");
415
- Z.id = "skeleton-animation", Z.textContent = `
414
+ const J = document.createElement("style");
415
+ J.id = "skeleton-animation", J.textContent = `
416
416
  @keyframes shimmer {
417
417
  0% { background-position: 200% 0; }
418
418
  100% { background-position: -200% 0; }
419
419
  }
420
- `, document.head.appendChild(Z);
420
+ `, document.head.appendChild(J);
421
421
  }
422
- f.appendChild(v), f.appendChild(y), f.appendChild(E), D.appendChild(k), D.appendChild(oe), S.appendChild(A), S.appendChild(D), h.appendChild(f), h.appendChild(S), this.element.appendChild(h);
422
+ f.appendChild(v), f.appendChild(y), f.appendChild(E), D.appendChild(k), D.appendChild(X), S.appendChild(A), S.appendChild(D), h.appendChild(f), h.appendChild(S), this.element.appendChild(h);
423
423
  }
424
424
  cleanupExistingSkeleton() {
425
425
  const d = document.getElementById(this.identifier);
@@ -432,7 +432,7 @@ class Hn {
432
432
  this.element.style.opacity = "0", setTimeout(() => this.element.remove(), 300);
433
433
  }
434
434
  }
435
- const He = "2.15.1";
435
+ const _e = "2.15.2";
436
436
  function _n(c) {
437
437
  var E;
438
438
  const d = [
@@ -442,7 +442,7 @@ function _n(c) {
442
442
  "optionalReconsentBehavior",
443
443
  "mandatoryReconsentBehavior"
444
444
  ], h = (E = c.isSandbox) != null ? E : !1, f = c.developmentUrl || (h ? Lt : zt), v = new URLSearchParams();
445
- v.set("sdkVersion", He), d.forEach((S) => {
445
+ v.set("sdkVersion", _e), d.forEach((S) => {
446
446
  c[S] && v.set(S, c[S]);
447
447
  });
448
448
  const y = v.toString();
@@ -475,7 +475,7 @@ class kt extends We {
475
475
  }
476
476
  setupListeners() {
477
477
  return _(this, null, function* () {
478
- yield Pt(kt.prototype, this, "setupListeners").call(this), jt(this.uniqueIdentifier, {
478
+ yield Pt(kt.prototype, this, "setupListeners").call(this), Mt(this.uniqueIdentifier, {
479
479
  onStateChange: this.handleStateChange.bind(this)
480
480
  });
481
481
  });
@@ -487,7 +487,7 @@ class kt extends We {
487
487
  function qn(c) {
488
488
  var y, E, S;
489
489
  const d = (y = c.isSandbox) != null ? y : !1, h = c.developmentUrl || (d ? Nn : An), f = new URLSearchParams();
490
- f.set("sdkVersion", He), c.sessionToken ? f.set("sessionToken", c.sessionToken) : c.companyId && f.set("companyId", c.companyId), (E = c.enabledFeatures) != null && E.length && f.set("enabledFeatures", c.enabledFeatures.join(",")), (S = c.dataSubjects) != null && S.length && f.set("dataSubjects", c.dataSubjects.join(",")), c.requestReference && f.set("requestReference", c.requestReference);
490
+ f.set("sdkVersion", _e), c.sessionToken ? f.set("sessionToken", c.sessionToken) : c.companyId && f.set("companyId", c.companyId), (E = c.enabledFeatures) != null && E.length && f.set("enabledFeatures", c.enabledFeatures.join(",")), (S = c.dataSubjects) != null && S.length && f.set("dataSubjects", c.dataSubjects.join(",")), c.requestReference && f.set("requestReference", c.requestReference);
491
491
  const v = f.toString();
492
492
  return `${h}${v ? `?${v}` : ""}`;
493
493
  }
@@ -515,34 +515,32 @@ function $n(c) {
515
515
  function Gn(c) {
516
516
  var y;
517
517
  const d = (y = c.isSandbox) != null ? y : !1, h = c.developmentUrl || (d ? Lt : zt), f = Object.entries(c.configProps).filter(([E, S]) => S || E === "disclosureRequestId").map(([E, S]) => `${E}=${encodeURIComponent(S)}`).join("&"), v = $n(c);
518
- return `${h}/${v}?sdk=web&sdkVersion=${He}&${f}`;
518
+ return `${h}/${v}?sdk=web&sdkVersion=${_e}&${f}`;
519
519
  }
520
- let Y = null, Le = null;
521
- function Ue(c = null) {
522
- Y && !Y.closed && Y.focus(), c == null || c.preventDefault();
520
+ let Z = null, ke = null;
521
+ function Fe(c = null) {
522
+ Z && !Z.closed && Z.focus(), c == null || c.preventDefault();
523
523
  }
524
- function _e() {
525
- document.body.style.filter = "", document.body.removeEventListener("click", Ue);
524
+ function Pe() {
525
+ document.body.style.filter = "", document.body.removeEventListener("click", Fe);
526
526
  }
527
527
  function Vn() {
528
- Le = setInterval(() => {
529
- (!Y || Y.closed) && (Le && clearInterval(Le), _e());
528
+ ke = setInterval(() => {
529
+ (!Z || Z.closed) && (ke && clearInterval(ke), Pe());
530
530
  }, Ln);
531
531
  }
532
532
  function Jn(c) {
533
- const d = Gn(c), h = jn, f = zn, v = window.screenLeft !== void 0 ? window.screenLeft : window.screenX, y = window.screenTop !== void 0 ? window.screenTop : window.screenY, E = window.innerWidth || document.documentElement.clientWidth || window.screen.width, S = window.innerHeight || document.documentElement.clientHeight || window.screen.height, A = E / window.screen.availWidth, D = (E - h) / 2 / A + v, k = (S - f) / 2 / A + y;
534
- document.body.style.filter = "blur(5px)", document.body.addEventListener("click", Ue), Y = window.open(
535
- d,
536
- "Soyio",
537
- `scrollbars=yes,
538
- width=${h},
539
- height=${f},
540
- top=${k},
541
- left=${D}`
542
- ), Ue(), Vn();
533
+ const d = Gn(c), h = Mn, f = zn, v = window.screenLeft !== void 0 ? window.screenLeft : window.screenX, y = window.screenTop !== void 0 ? window.screenTop : window.screenY, E = window.innerWidth || document.documentElement.clientWidth || window.screen.width, S = window.innerHeight || document.documentElement.clientHeight || window.screen.height, A = E / window.screen.availWidth, D = (E - h) / 2 / A + v, k = (S - f) / 2 / A + y, X = [
534
+ "scrollbars=yes",
535
+ `width=${h}`,
536
+ `height=${f}`,
537
+ `top=${k}`,
538
+ `left=${D}`
539
+ ].join(","), J = window.open("about:blank", "Soyio", X);
540
+ J ? (Z = J, Z.location.href = d, document.body.style.filter = "blur(5px)", document.body.addEventListener("click", Fe), Fe(), Vn()) : (Pe(), alert("Debes habilitar las ventanas emergentes para poder iniciar el flujo."));
543
541
  }
544
542
  function Yn() {
545
- Y && (Y.close(), Y = null), _e();
543
+ Z && (Z.close(), Z = null), Pe();
546
544
  }
547
545
  let me = null;
548
546
  function Zn() {
@@ -552,7 +550,7 @@ function Kn(c) {
552
550
  return _(this, null, function* () {
553
551
  const { onEvent: d } = c, h = yield Promise.resolve().then(() => qe);
554
552
  me && Zn(), me = h.on(Bn, (v) => _(null, [v], function* ({ data: f }) {
555
- return d(f), Dn.includes(f.eventName) ? Yn() : f.eventName === Mn && _e(), Promise.resolve();
553
+ return d(f), Dn.includes(f.eventName) ? Yn() : f.eventName === jn && Pe(), Promise.resolve();
556
554
  }));
557
555
  });
558
556
  }
@@ -575,7 +573,7 @@ Ie = new WeakSet(), Ut = function(d) {
575
573
  function Qn(c) {
576
574
  return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
577
575
  }
578
- var ke = { exports: {} }, xe = { exports: {} }, er = xe.exports, Dt;
576
+ var Ue = { exports: {} }, xe = { exports: {} }, er = xe.exports, Dt;
579
577
  function tr() {
580
578
  return Dt || (Dt = 1, function(c, d) {
581
579
  (function(h, f) {
@@ -643,7 +641,7 @@ function tr() {
643
641
  }), v.d(f, "toProxyWindow", function() {
644
642
  return sn;
645
643
  }), v.d(f, "on", function() {
646
- return ne;
644
+ return re;
647
645
  }), v.d(f, "once", function() {
648
646
  return nn;
649
647
  }), v.d(f, "send", function() {
@@ -678,13 +676,13 @@ function tr() {
678
676
  } catch (n) {
679
677
  }
680
678
  }
681
- function oe(e) {
679
+ function X(e) {
682
680
  if (e === void 0 && (e = window), e && !k(e)) try {
683
681
  return e.opener;
684
682
  } catch (n) {
685
683
  }
686
684
  }
687
- function Z(e) {
685
+ function J(e) {
688
686
  try {
689
687
  return !0;
690
688
  } catch (n) {
@@ -700,7 +698,7 @@ function tr() {
700
698
  if (t === "file:") return "file://";
701
699
  if (t === "about:") {
702
700
  var r = k(e);
703
- return r && Z() ? pe(r) : "about://";
701
+ return r && J() ? pe(r) : "about://";
704
702
  }
705
703
  var o = n.host;
706
704
  if (!o) throw new Error("Can not read window host");
@@ -711,7 +709,7 @@ function tr() {
711
709
  var n = pe(e);
712
710
  return n && e.mockDomain && e.mockDomain.indexOf("mock:") === 0 ? e.mockDomain : n;
713
711
  }
714
- function X(e) {
712
+ function Q(e) {
715
713
  if (!function(n) {
716
714
  try {
717
715
  if (n === window) return !0;
@@ -723,13 +721,13 @@ function tr() {
723
721
  } catch (r) {
724
722
  }
725
723
  try {
726
- if (D(n) && Z()) return !0;
724
+ if (D(n) && J()) return !0;
727
725
  } catch (r) {
728
726
  }
729
727
  try {
730
728
  if (function(r) {
731
729
  return r === void 0 && (r = window), A(r) === "mock:";
732
- }(n) && Z()) return !0;
730
+ }(n) && J()) return !0;
733
731
  } catch (r) {
734
732
  }
735
733
  try {
@@ -739,13 +737,13 @@ function tr() {
739
737
  return !1;
740
738
  }(e)) return !1;
741
739
  try {
742
- if (e === window || D(e) && Z() || F(window) === F(e)) return !0;
740
+ if (e === window || D(e) && J() || F(window) === F(e)) return !0;
743
741
  } catch (n) {
744
742
  }
745
743
  return !1;
746
744
  }
747
745
  function ve(e) {
748
- if (!X(e)) throw new Error("Expected window to be same domain");
746
+ if (!Q(e)) throw new Error("Expected window to be same domain");
749
747
  return e;
750
748
  }
751
749
  function Be(e, n) {
@@ -816,7 +814,7 @@ function tr() {
816
814
  } catch (o) {
817
815
  return !o || o.message !== E;
818
816
  }
819
- if (n && X(e)) try {
817
+ if (n && Q(e)) try {
820
818
  if (e.mockclosed) return !0;
821
819
  } catch (o) {
822
820
  }
@@ -846,15 +844,15 @@ function tr() {
846
844
  return !1;
847
845
  }
848
846
  function Ge(e) {
849
- return e === void 0 && (e = window), oe(e = e || window) || k(e) || void 0;
847
+ return e === void 0 && (e = window), X(e = e || window) || k(e) || void 0;
850
848
  }
851
- function re(e, n) {
849
+ function oe(e, n) {
852
850
  if (typeof e == "string") {
853
851
  if (typeof n == "string") return e === "*" || n === e;
854
852
  if (y(n) || Array.isArray(n)) return !1;
855
853
  }
856
854
  return y(e) ? y(n) ? e.toString() === n.toString() : !Array.isArray(n) && !!n.match(e) : !!Array.isArray(e) && (Array.isArray(n) ? JSON.stringify(e) === JSON.stringify(n) : !y(n) && e.some(function(t) {
857
- return re(t, n);
855
+ return oe(t, n);
858
856
  }));
859
857
  }
860
858
  function we(e) {
@@ -900,7 +898,7 @@ function tr() {
900
898
  return !1;
901
899
  }
902
900
  function Ve(e) {
903
- if (X(e)) return ve(e).frameElement;
901
+ if (Q(e)) return ve(e).frameElement;
904
902
  for (var n = 0, t = document.querySelectorAll("iframe"); n < t.length; n++) {
905
903
  var r = t[n];
906
904
  if (r && r.contentWindow && r.contentWindow === e) return r;
@@ -921,7 +919,7 @@ function tr() {
921
919
  } catch (t) {
922
920
  }
923
921
  }
924
- function Q(e) {
922
+ function ee(e) {
925
923
  try {
926
924
  if (!e) return !1;
927
925
  if (typeof Promise != "undefined" && e instanceof Promise) return !0;
@@ -937,25 +935,25 @@ function tr() {
937
935
  }
938
936
  return !1;
939
937
  }
940
- var Je = [], ie = [], Pe = 0, ae;
938
+ var Je = [], ie = [], Ce = 0, ae;
941
939
  function Ye() {
942
- if (!Pe && ae) {
940
+ if (!Ce && ae) {
943
941
  var e = ae;
944
942
  ae = null, e.resolve();
945
943
  }
946
944
  }
947
- function Ce() {
948
- Pe += 1;
945
+ function Te() {
946
+ Ce += 1;
949
947
  }
950
948
  function se() {
951
- Pe -= 1, Ye();
949
+ Ce -= 1, Ye();
952
950
  }
953
951
  var P = function() {
954
952
  function e(t) {
955
953
  var r = this;
956
954
  if (this.resolved = void 0, this.rejected = void 0, this.errorHandled = void 0, this.value = void 0, this.error = void 0, this.handlers = void 0, this.dispatching = void 0, this.stack = void 0, this.resolved = !1, this.rejected = !1, this.errorHandled = !1, this.handlers = [], t) {
957
955
  var o, i, a = !1, l = !1, u = !1;
958
- Ce();
956
+ Te();
959
957
  try {
960
958
  t(function(s) {
961
959
  u ? r.resolve(s) : (a = !0, o = s);
@@ -972,12 +970,12 @@ function tr() {
972
970
  var n = e.prototype;
973
971
  return n.resolve = function(t) {
974
972
  if (this.resolved || this.rejected) return this;
975
- if (Q(t)) throw new Error("Can not resolve promise with another promise");
973
+ if (ee(t)) throw new Error("Can not resolve promise with another promise");
976
974
  return this.resolved = !0, this.value = t, this.dispatch(), this;
977
975
  }, n.reject = function(t) {
978
976
  var r = this;
979
977
  if (this.resolved || this.rejected) return this;
980
- if (Q(t)) throw new Error("Can not reject promise with another promise");
978
+ if (ee(t)) throw new Error("Can not reject promise with another promise");
981
979
  if (!t) {
982
980
  var o = t && typeof t.toString == "function" ? t.toString() : {}.toString.call(t);
983
981
  t = new Error("Expected reject to be called with Error, got " + o);
@@ -997,7 +995,7 @@ function tr() {
997
995
  }, n.dispatch = function() {
998
996
  var t = this.resolved, r = this.rejected, o = this.handlers;
999
997
  if (!this.dispatching && (t || r)) {
1000
- this.dispatching = !0, Ce();
998
+ this.dispatching = !0, Te();
1001
999
  for (var i = function(g, I) {
1002
1000
  return g.then(function(x) {
1003
1001
  I.resolve(x);
@@ -1027,7 +1025,7 @@ function tr() {
1027
1025
  if (m instanceof e && (m.resolved || m.rejected)) {
1028
1026
  var p = m;
1029
1027
  p.resolved ? w.resolve(p.value) : w.reject(p.error), p.errorHandled = !0;
1030
- } else Q(m) ? m instanceof e && (m.resolved || m.rejected) ? m.resolved ? w.resolve(m.value) : w.reject(m.error) : i(m, w) : w.resolve(m);
1028
+ } else ee(m) ? m instanceof e && (m.resolved || m.rejected) ? m.resolved ? w.resolve(m.value) : w.reject(m.error) : i(m, w) : w.resolve(m);
1031
1029
  }
1032
1030
  o.length = 0, this.dispatching = !1, se();
1033
1031
  }
@@ -1068,7 +1066,7 @@ function tr() {
1068
1066
  }, n.lazy = function() {
1069
1067
  return this.errorHandled = !0, this;
1070
1068
  }, e.resolve = function(t) {
1071
- return t instanceof e ? t : Q(t) ? new e(function(r, o) {
1069
+ return t instanceof e ? t : ee(t) ? new e(function(r, o) {
1072
1070
  return t.then(r, o);
1073
1071
  }) : new e().resolve(t);
1074
1072
  }, e.reject = function(t) {
@@ -1092,7 +1090,7 @@ function tr() {
1092
1090
  i[l] = u.value, o -= 1;
1093
1091
  continue;
1094
1092
  }
1095
- } else if (!Q(u)) {
1093
+ } else if (!ee(u)) {
1096
1094
  i[l] = u, o -= 1;
1097
1095
  continue;
1098
1096
  }
@@ -1103,7 +1101,7 @@ function tr() {
1103
1101
  var r = {}, o = [], i = function(l) {
1104
1102
  if (t.hasOwnProperty(l)) {
1105
1103
  var u = t[l];
1106
- Q(u) ? o.push(u.then(function(s) {
1104
+ ee(u) ? o.push(u.then(function(s) {
1107
1105
  r[l] = s;
1108
1106
  })) : r[l] = u;
1109
1107
  }
@@ -1125,7 +1123,7 @@ function tr() {
1125
1123
  }, e.try = function(t, r, o) {
1126
1124
  if (t && typeof t != "function" && !t.call) throw new Error("Promise.try expected a function");
1127
1125
  var i;
1128
- Ce();
1126
+ Te();
1129
1127
  try {
1130
1128
  i = t.apply(r, o || []);
1131
1129
  } catch (a) {
@@ -1137,7 +1135,7 @@ function tr() {
1137
1135
  setTimeout(r, t);
1138
1136
  });
1139
1137
  }, e.isPromise = function(t) {
1140
- return !!(t && t instanceof e) || Q(t);
1138
+ return !!(t && t instanceof e) || ee(t);
1141
1139
  }, e.flush = function() {
1142
1140
  return function(t) {
1143
1141
  var r = ae = ae || new t();
@@ -1152,7 +1150,7 @@ function tr() {
1152
1150
  }
1153
1151
  return -1;
1154
1152
  }
1155
- var Te = function() {
1153
+ var Re = function() {
1156
1154
  function e() {
1157
1155
  if (this.name = void 0, this.weakmap = void 0, this.keys = void 0, this.values = void 0, this.name = "__weakmap_" + (1e9 * Math.random() >>> 0) + "__", function() {
1158
1156
  if (typeof WeakMap == "undefined" || Object.freeze === void 0) return !1;
@@ -1264,7 +1262,7 @@ function tr() {
1264
1262
  }
1265
1263
  return e.__name__ = e.displayName = n, e;
1266
1264
  }
1267
- function J() {
1265
+ function Y() {
1268
1266
  var e = "0123456789abcdef";
1269
1267
  return "uid_" + "xxxxxxxxxx".replace(/./g, function() {
1270
1268
  return e.charAt(Math.floor(Math.random() * e.length));
@@ -1281,9 +1279,9 @@ function tr() {
1281
1279
  try {
1282
1280
  return JSON.stringify([].slice.call(e), function(n, t) {
1283
1281
  return typeof t == "function" ? "memoize[" + function(r) {
1284
- if (ye = ye || new Te(), r == null || typeof r != "object" && typeof r != "function") throw new Error("Invalid object");
1282
+ if (ye = ye || new Re(), r == null || typeof r != "object" && typeof r != "function") throw new Error("Invalid object");
1285
1283
  var o = ye.get(r);
1286
- return o || (o = typeof r + ":" + J(), ye.set(r, o)), o;
1284
+ return o || (o = typeof r + ":" + Y(), ye.set(r, o)), o;
1287
1285
  }(t) + "]" : typeof window != "undefined" && t instanceof window.Element || t !== null && typeof t == "object" && t.nodeType === 1 && typeof t.style == "object" && typeof t.ownerDocument == "object" ? {} : t;
1288
1286
  });
1289
1287
  } catch (n) {
@@ -1302,7 +1300,7 @@ function tr() {
1302
1300
  for (var s = arguments.length, w = new Array(s), m = 0; m < s; m++) w[m] = arguments[m];
1303
1301
  l < Qe && (i = null, a = null, l = ue, ue += 1);
1304
1302
  var p;
1305
- p = r ? (a = a || new Te()).getOrSet(this, Bt) : i = i || {};
1303
+ p = r ? (a = a || new Re()).getOrSet(this, Bt) : i = i || {};
1306
1304
  var g;
1307
1305
  try {
1308
1306
  g = Xe(w);
@@ -1339,7 +1337,7 @@ function tr() {
1339
1337
  n = {};
1340
1338
  }, Ke(t, Ze(e) + "::promiseMemoized");
1341
1339
  }
1342
- function ee() {
1340
+ function te() {
1343
1341
  }
1344
1342
  function de(e, n) {
1345
1343
  if (n === void 0 && (n = 1), n >= 3) return "stringifyError stack overflow";
@@ -1367,7 +1365,7 @@ function tr() {
1367
1365
  for (var t in e) e.hasOwnProperty(t) && n.push(e[t]);
1368
1366
  return n;
1369
1367
  });
1370
- function Re(e) {
1368
+ function Oe(e) {
1371
1369
  return {}.toString.call(e) === "[object RegExp]";
1372
1370
  }
1373
1371
  function fe(e, n, t) {
@@ -1414,7 +1412,7 @@ function tr() {
1414
1412
  }
1415
1413
  }())) return Ee;
1416
1414
  throw new Error("Can not determine current script");
1417
- }), Vt = J();
1415
+ }), Vt = Y();
1418
1416
  ce(function() {
1419
1417
  var e;
1420
1418
  try {
@@ -1436,7 +1434,7 @@ function tr() {
1436
1434
  dataset: e.dataset
1437
1435
  }));
1438
1436
  n = "uid_" + t.slice(t.length - 30);
1439
- } else n = J();
1437
+ } else n = Y();
1440
1438
  return e.setAttribute("data-uid-auto", n), n;
1441
1439
  });
1442
1440
  function le(e) {
@@ -1483,7 +1481,7 @@ function tr() {
1483
1481
  }
1484
1482
  function H(e, n) {
1485
1483
  return e === void 0 && (e = "store"), n === void 0 && (n = ot), z("windowStore").getOrSet(e, function() {
1486
- var t = new Te(), r = function(o) {
1484
+ var t = new Re(), r = function(o) {
1487
1485
  return t.getOrSet(o, n);
1488
1486
  };
1489
1487
  return {
@@ -1507,7 +1505,7 @@ function tr() {
1507
1505
  });
1508
1506
  }
1509
1507
  function it() {
1510
- return z("instance").getOrSet("instanceID", J);
1508
+ return z("instance").getOrSet("instanceID", Y);
1511
1509
  }
1512
1510
  function at(e, n) {
1513
1511
  var t = n.domain, r = H("helloPromises"), o = r.get(e);
@@ -1519,7 +1517,7 @@ function tr() {
1519
1517
  });
1520
1518
  return r.set(e, i), i;
1521
1519
  }
1522
- function Oe(e, n) {
1520
+ function Ae(e, n) {
1523
1521
  return (0, n.send)(e, "postrobot_hello", {
1524
1522
  instanceID: it()
1525
1523
  }, {
@@ -1539,7 +1537,7 @@ function tr() {
1539
1537
  function st(e, n) {
1540
1538
  var t = n.send;
1541
1539
  return H("windowInstanceIDPromises").getOrSet(e, function() {
1542
- return Oe(e, {
1540
+ return Ae(e, {
1543
1541
  send: t
1544
1542
  }).then(function(r) {
1545
1543
  return r.instanceID;
@@ -1549,13 +1547,13 @@ function tr() {
1549
1547
  function ut(e) {
1550
1548
  H("knownWindows").set(e, !0);
1551
1549
  }
1552
- function Ae(e) {
1550
+ function Ne(e) {
1553
1551
  return typeof e == "object" && e !== null && typeof e.__type__ == "string";
1554
1552
  }
1555
1553
  function ct(e) {
1556
1554
  return e === void 0 ? "undefined" : e === null ? "null" : Array.isArray(e) ? "array" : typeof e == "function" ? "function" : typeof e == "object" ? e instanceof Error ? "error" : typeof e.then == "function" ? "promise" : {}.toString.call(e) === "[object RegExp]" ? "regex" : {}.toString.call(e) === "[object Date]" ? "date" : "object" : typeof e == "string" ? "string" : typeof e == "number" ? "number" : typeof e == "boolean" ? "boolean" : void 0;
1557
1555
  }
1558
- function te(e, n) {
1556
+ function ne(e, n) {
1559
1557
  return {
1560
1558
  __type__: e,
1561
1559
  __val__: n
@@ -1563,7 +1561,7 @@ function tr() {
1563
1561
  }
1564
1562
  var q, Yt = ((q = {}).function = function() {
1565
1563
  }, q.error = function(e) {
1566
- return te("error", {
1564
+ return ne("error", {
1567
1565
  message: e.message,
1568
1566
  stack: e.stack,
1569
1567
  code: e.code,
@@ -1571,9 +1569,9 @@ function tr() {
1571
1569
  });
1572
1570
  }, q.promise = function() {
1573
1571
  }, q.regex = function(e) {
1574
- return te("regex", e.source);
1572
+ return ne("regex", e.source);
1575
1573
  }, q.date = function(e) {
1576
- return te("date", e.toJSON());
1574
+ return ne("date", e.toJSON());
1577
1575
  }, q.array = function(e) {
1578
1576
  return e;
1579
1577
  }, q.object = function(e) {
@@ -1587,7 +1585,7 @@ function tr() {
1587
1585
  }, q.null = function(e) {
1588
1586
  return e;
1589
1587
  }, q[void 0] = function(e) {
1590
- return te("undefined", e);
1588
+ return ne("undefined", e);
1591
1589
  }, q), Zt = {}, B, Kt = ((B = {}).function = function() {
1592
1590
  throw new Error("Function serialization is not implemented; nothing to deserialize");
1593
1591
  }, B.error = function(e) {
@@ -1622,23 +1620,23 @@ function tr() {
1622
1620
  return clearInterval(n), e(window.document.body);
1623
1621
  }, 10);
1624
1622
  });
1625
- function Ne() {
1623
+ function De() {
1626
1624
  for (var e = z("idToProxyWindow"), n = 0, t = e.keys(); n < t.length; n++) {
1627
1625
  var r = t[n];
1628
1626
  e.get(r).shouldClean() && e.del(r);
1629
1627
  }
1630
1628
  }
1631
1629
  function dt(e, n) {
1632
- var t = n.send, r = n.id, o = r === void 0 ? J() : r, i = e.then(function(u) {
1633
- if (X(u)) return ve(u).name;
1630
+ var t = n.send, r = n.id, o = r === void 0 ? Y() : r, i = e.then(function(u) {
1631
+ if (Q(u)) return ve(u).name;
1634
1632
  }), a = e.then(function(u) {
1635
1633
  if (G(u)) throw new Error("Window is closed, can not determine type");
1636
- return oe(u) ? "popup" : "iframe";
1634
+ return X(u) ? "popup" : "iframe";
1637
1635
  });
1638
- i.catch(ee), a.catch(ee);
1636
+ i.catch(te), a.catch(te);
1639
1637
  var l = function() {
1640
1638
  return e.then(function(u) {
1641
- if (!G(u)) return X(u) ? ve(u).name : i;
1639
+ if (!G(u)) return Q(u) ? ve(u).name : i;
1642
1640
  });
1643
1641
  };
1644
1642
  return {
@@ -1675,10 +1673,10 @@ function tr() {
1675
1673
  if (g === "post") return l().then(function(x) {
1676
1674
  if (!x) throw new Error("Can not post to window without target name");
1677
1675
  (function(b) {
1678
- var C = b.url, j = b.target, R = b.body, T = b.method, L = T === void 0 ? "post" : T, W = document.createElement("form");
1679
- if (W.setAttribute("target", j), W.setAttribute("method", L), W.setAttribute("action", C), W.style.display = "none", R) for (var O = 0, V = Object.keys(R); O < V.length; O++) {
1680
- var M, he = V[O], ze = document.createElement("input");
1681
- ze.setAttribute("name", he), ze.setAttribute("value", (M = R[he]) == null ? void 0 : M.toString()), W.appendChild(ze);
1676
+ var C = b.url, M = b.target, R = b.body, T = b.method, L = T === void 0 ? "post" : T, W = document.createElement("form");
1677
+ if (W.setAttribute("target", M), W.setAttribute("method", L), W.setAttribute("action", C), W.style.display = "none", R) for (var O = 0, V = Object.keys(R); O < V.length; O++) {
1678
+ var j, he = V[O], Le = document.createElement("input");
1679
+ Le.setAttribute("name", he), Le.setAttribute("value", (j = R[he]) == null ? void 0 : j.toString()), W.appendChild(Le);
1682
1680
  }
1683
1681
  tt().appendChild(W), W.submit(), tt().removeChild(W);
1684
1682
  })({
@@ -1689,7 +1687,7 @@ function tr() {
1689
1687
  });
1690
1688
  });
1691
1689
  if (g !== "get") throw new Error("Unsupported method: " + g);
1692
- if (X(w)) try {
1690
+ if (Q(w)) try {
1693
1691
  if (w.location && typeof w.location.replace == "function") {
1694
1692
  w.location.replace(u);
1695
1693
  return;
@@ -1701,7 +1699,7 @@ function tr() {
1701
1699
  },
1702
1700
  setName: function(u) {
1703
1701
  return e.then(function(s) {
1704
- var w = X(s), m = Ve(s);
1702
+ var w = Q(s), m = Ve(s);
1705
1703
  if (!w) throw new Error("Can not set name for cross-domain window: " + u);
1706
1704
  ve(s).name = u, m && m.setAttribute("name", u), i = P.resolve(u);
1707
1705
  });
@@ -1793,12 +1791,12 @@ function tr() {
1793
1791
  return e.isProxyWindow(t) ? t.unwrap() : t;
1794
1792
  }, e.serialize = function(t, r) {
1795
1793
  var o = r.send;
1796
- return Ne(), e.toProxyWindow(t, {
1794
+ return De(), e.toProxyWindow(t, {
1797
1795
  send: o
1798
1796
  }).serialize();
1799
1797
  }, e.deserialize = function(t, r) {
1800
1798
  var o = r.send;
1801
- return Ne(), z("idToProxyWindow").get(t.id) || new e({
1799
+ return De(), z("idToProxyWindow").get(t.id) || new e({
1802
1800
  serializedWindow: t,
1803
1801
  send: o
1804
1802
  });
@@ -1806,7 +1804,7 @@ function tr() {
1806
1804
  return !!(t && !we(t) && t.isProxyWindow);
1807
1805
  }, e.toProxyWindow = function(t, r) {
1808
1806
  var o = r.send;
1809
- if (Ne(), e.isProxyWindow(t)) return t;
1807
+ if (De(), e.isProxyWindow(t)) return t;
1810
1808
  var i = t;
1811
1809
  return H("winToProxyWindow").get(i) || new e({
1812
1810
  win: i,
@@ -1814,7 +1812,7 @@ function tr() {
1814
1812
  });
1815
1813
  }, e;
1816
1814
  }();
1817
- function De(e, n, t, r, o) {
1815
+ function je(e, n, t, r, o) {
1818
1816
  var i = H("methodStore"), a = z("proxyWindowMethods");
1819
1817
  $.isProxyWindow(r) ? a.set(e, {
1820
1818
  val: n,
@@ -1846,9 +1844,9 @@ function tr() {
1846
1844
  }, function(w) {
1847
1845
  var m = w.source, p = w.origin, g = w.data, I = g.id, x = g.name, b = ft(m, I);
1848
1846
  if (!b) throw new Error("Could not find method '" + x + "' with id: " + g.id + " in " + F(window));
1849
- var C = b.source, j = b.domain, R = b.val;
1847
+ var C = b.source, M = b.domain, R = b.val;
1850
1848
  return P.try(function() {
1851
- if (!re(j, p)) throw new Error("Method '" + g.name + "' domain " + JSON.stringify(Re(b.domain) ? b.domain.source : b.domain) + " does not match origin " + p + " in " + F(window));
1849
+ if (!oe(M, p)) throw new Error("Method '" + g.name + "' domain " + JSON.stringify(Oe(b.domain) ? b.domain.source : b.domain) + " does not match origin " + p + " in " + F(window));
1852
1850
  if ($.isProxyWindow(C)) return C.matchWindow(m, {
1853
1851
  send: l
1854
1852
  }).then(function(T) {
@@ -1881,12 +1879,12 @@ function tr() {
1881
1879
  });
1882
1880
  });
1883
1881
  });
1884
- var i, a, l, u = t.__id__ || J();
1882
+ var i, a, l, u = t.__id__ || Y();
1885
1883
  e = $.unwrap(e);
1886
1884
  var s = t.__name__ || t.name || r;
1887
- return typeof s == "string" && typeof s.indexOf == "function" && s.indexOf("anonymous::") === 0 && (s = s.replace("anonymous::", r + "::")), $.isProxyWindow(e) ? (De(u, t, s, e, n), e.awaitWindow().then(function(w) {
1888
- De(u, t, s, w, n);
1889
- })) : De(u, t, s, e, n), te("cross_domain_function", {
1885
+ return typeof s == "string" && typeof s.indexOf == "function" && s.indexOf("anonymous::") === 0 && (s = s.replace("anonymous::", r + "::")), $.isProxyWindow(e) ? (je(u, t, s, e, n), e.awaitWindow().then(function(w) {
1886
+ je(u, t, s, w, n);
1887
+ })) : je(u, t, s, e, n), ne("cross_domain_function", {
1890
1888
  id: u,
1891
1889
  name: s
1892
1890
  });
@@ -1897,7 +1895,7 @@ function tr() {
1897
1895
  u === void 0 && (u = Zt);
1898
1896
  var s = JSON.stringify(l, function(w) {
1899
1897
  var m = this[w];
1900
- if (Ae(this)) return m;
1898
+ if (Ne(this)) return m;
1901
1899
  var p = ct(m);
1902
1900
  if (!p) return m;
1903
1901
  var g = u[p] || Yt[p];
@@ -1906,7 +1904,7 @@ function tr() {
1906
1904
  return s === void 0 ? "undefined" : s;
1907
1905
  }(t, ((o = {}).promise = function(l, u) {
1908
1906
  return function(s, w, m, p, g) {
1909
- return te("cross_domain_zalgo_promise", {
1907
+ return ne("cross_domain_zalgo_promise", {
1910
1908
  then: lt(s, w, function(I, x) {
1911
1909
  return m.then(I, x);
1912
1910
  }, p, {
@@ -1924,7 +1922,7 @@ function tr() {
1924
1922
  send: a
1925
1923
  });
1926
1924
  }, o.object = function(l) {
1927
- return we(l) || $.isProxyWindow(l) ? te("cross_domain_window", $.serialize(l, {
1925
+ return we(l) || $.isProxyWindow(l) ? ne("cross_domain_window", $.serialize(l, {
1928
1926
  send: a
1929
1927
  })) : l;
1930
1928
  }, o));
@@ -1933,9 +1931,9 @@ function tr() {
1933
1931
  var o, i = r.send;
1934
1932
  return function(a, l) {
1935
1933
  if (l === void 0 && (l = Xt), a !== "undefined") return JSON.parse(a, function(u, s) {
1936
- if (Ae(this)) return s;
1934
+ if (Ne(this)) return s;
1937
1935
  var w, m;
1938
- if (Ae(s) ? (w = s.__type__, m = s.__val__) : (w = ct(s), m = s), !w) return m;
1936
+ if (Ne(s) ? (w = s.__type__, m = s.__val__) : (w = ct(s), m = s), !w) return m;
1939
1937
  var p = l[w] || Kt[w];
1940
1938
  return p ? p(m, u) : m;
1941
1939
  });
@@ -1948,7 +1946,7 @@ function tr() {
1948
1946
  var m = s.id, p = s.name, g = w.send, I = function(b) {
1949
1947
  b === void 0 && (b = {});
1950
1948
  function C() {
1951
- var j = arguments;
1949
+ var M = arguments;
1952
1950
  return $.toProxyWindow(l, {
1953
1951
  send: g
1954
1952
  }).awaitWindow().then(function(R) {
@@ -1956,8 +1954,8 @@ function tr() {
1956
1954
  if (T && T.val !== C) return T.val.apply({
1957
1955
  source: window,
1958
1956
  origin: F()
1959
- }, j);
1960
- var L = [].slice.call(j);
1957
+ }, M);
1958
+ var L = [].slice.call(M);
1961
1959
  return b.fireAndForget ? g(R, "postrobot_method", {
1962
1960
  id: m,
1963
1961
  name: p,
@@ -1997,7 +1995,7 @@ function tr() {
1997
1995
  Me.postrobot_post_message = function(e, n, t) {
1998
1996
  t.indexOf("file:") === 0 && (t = "*"), e.postMessage(n, t);
1999
1997
  };
2000
- function je(e, n, t, r) {
1998
+ function ze(e, n, t, r) {
2001
1999
  var o = r.on, i = r.send;
2002
2000
  return P.try(function() {
2003
2001
  var a = H().getOrSet(e, function() {
@@ -2028,7 +2026,7 @@ function tr() {
2028
2026
  }), a.flush.then(function() {
2029
2027
  delete a.flush;
2030
2028
  });
2031
- }).then(ee);
2029
+ }).then(te);
2032
2030
  }
2033
2031
  function pt(e) {
2034
2032
  return z("responseListeners").get(e);
@@ -2053,7 +2051,7 @@ function tr() {
2053
2051
  if (s[r]) return s[r];
2054
2052
  if (s.__domain_regex__) for (var w = 0, m = s.__domain_regex__; w < m.length; w++) {
2055
2053
  var p = m[w], g = p.listener;
2056
- if (re(p.regex, r)) return g;
2054
+ if (oe(p.regex, r)) return g;
2057
2055
  }
2058
2056
  }
2059
2057
  if (s["*"]) return s["*"];
@@ -2071,8 +2069,8 @@ function tr() {
2071
2069
  function u(s, w, m) {
2072
2070
  return P.flush().then(function() {
2073
2071
  if (!t.fireAndForget && !G(e)) try {
2074
- return je(e, n, {
2075
- id: J(),
2072
+ return ze(e, n, {
2073
+ id: Y(),
2076
2074
  origin: F(window),
2077
2075
  type: "postrobot_message_response",
2078
2076
  hash: t.hash,
@@ -2093,8 +2091,8 @@ function tr() {
2093
2091
  }
2094
2092
  return P.all([P.flush().then(function() {
2095
2093
  if (!t.fireAndForget && !G(e)) try {
2096
- return je(e, n, {
2097
- id: J(),
2094
+ return ze(e, n, {
2095
+ id: Y(),
2098
2096
  origin: F(window),
2099
2097
  type: "postrobot_message_ack",
2100
2098
  hash: t.hash,
@@ -2119,7 +2117,7 @@ function tr() {
2119
2117
  return u("success", s);
2120
2118
  }, function(s) {
2121
2119
  return u("error", null, s);
2122
- })]).then(ee).catch(function(s) {
2120
+ })]).then(te).catch(function(s) {
2123
2121
  if (a && a.handleError) return a.handleError(s);
2124
2122
  throw s;
2125
2123
  });
@@ -2129,7 +2127,7 @@ function tr() {
2129
2127
  var r = pt(t.hash);
2130
2128
  if (!r) throw new Error("No handler found for post message ack for message: " + t.name + " from " + n + " in " + window.location.protocol + "//" + window.location.host + window.location.pathname);
2131
2129
  try {
2132
- if (!re(r.domain, n)) throw new Error("Ack origin " + n + " does not match domain " + r.domain.toString());
2130
+ if (!oe(r.domain, n)) throw new Error("Ack origin " + n + " does not match domain " + r.domain.toString());
2133
2131
  if (e !== r.win) throw new Error("Ack source does not match registered window");
2134
2132
  } catch (o) {
2135
2133
  r.promise.reject(o);
@@ -2141,7 +2139,7 @@ function tr() {
2141
2139
  if (!wt(t.hash)) {
2142
2140
  var r = pt(t.hash);
2143
2141
  if (!r) throw new Error("No handler found for post message response for message: " + t.name + " from " + n + " in " + window.location.protocol + "//" + window.location.host + window.location.pathname);
2144
- if (!re(r.domain, n)) throw new Error("Response origin " + n + " does not match domain " + (o = r.domain, Array.isArray(o) ? "(" + o.join(" | ") + ")" : y(o) ? "RegExp(" + o.toString() + ")" : o.toString()));
2142
+ if (!oe(r.domain, n)) throw new Error("Response origin " + n + " does not match domain " + (o = r.domain, Array.isArray(o) ? "(" + o.join(" | ") + ")" : y(o) ? "RegExp(" + o.toString() + ")" : o.toString()));
2145
2143
  var o;
2146
2144
  if (e !== r.win) throw new Error("Response source does not match registered window");
2147
2145
  vt(t.hash), t.ack === "error" ? r.promise.reject(t.error) : t.ack === "success" && r.promise.resolve({
@@ -2165,7 +2163,7 @@ function tr() {
2165
2163
  on: I,
2166
2164
  send: x
2167
2165
  });
2168
- } catch (j) {
2166
+ } catch (M) {
2169
2167
  return;
2170
2168
  }
2171
2169
  if (b && typeof b == "object" && b !== null) {
@@ -2195,25 +2193,25 @@ function tr() {
2195
2193
  }
2196
2194
  }
2197
2195
  }
2198
- function ne(e, n, t) {
2196
+ function re(e, n, t) {
2199
2197
  if (!e) throw new Error("Expected name");
2200
2198
  if (typeof (n = n || {}) == "function" && (t = n, n = {}), !t) throw new Error("Expected handler");
2201
2199
  var r = function o(i, a) {
2202
2200
  var l = i.name, u = i.win, s = i.domain, w = H("requestListeners");
2203
2201
  if (!l || typeof l != "string") throw new Error("Name required to add request listener");
2204
2202
  if (u && u !== "*" && $.isProxyWindow(u)) {
2205
- var m = u.awaitWindow().then(function(M) {
2203
+ var m = u.awaitWindow().then(function(j) {
2206
2204
  return o({
2207
2205
  name: l,
2208
- win: M,
2206
+ win: j,
2209
2207
  domain: s
2210
2208
  }, a);
2211
2209
  });
2212
2210
  return {
2213
2211
  cancel: function() {
2214
- m.then(function(M) {
2215
- return M.cancel();
2216
- }, ee);
2212
+ m.then(function(j) {
2213
+ return j.cancel();
2214
+ }, te);
2217
2215
  }
2218
2216
  };
2219
2217
  }
@@ -2226,19 +2224,19 @@ function tr() {
2226
2224
  }, a));
2227
2225
  return {
2228
2226
  cancel: function() {
2229
- for (var M = 0; M < g.length; M++) g[M].cancel();
2227
+ for (var j = 0; j < g.length; j++) g[j].cancel();
2230
2228
  }
2231
2229
  };
2232
2230
  }
2233
2231
  if (Array.isArray(s)) {
2234
- for (var b = [], C = 0, j = s; C < j.length; C++) b.push(o({
2232
+ for (var b = [], C = 0, M = s; C < M.length; C++) b.push(o({
2235
2233
  name: l,
2236
2234
  win: p,
2237
- domain: j[C]
2235
+ domain: M[C]
2238
2236
  }, a));
2239
2237
  return {
2240
2238
  cancel: function() {
2241
- for (var M = 0; M < b.length; M++) b[M].cancel();
2239
+ for (var j = 0; j < b.length; j++) b[j].cancel();
2242
2240
  }
2243
2241
  };
2244
2242
  }
@@ -2255,7 +2253,7 @@ function tr() {
2255
2253
  }), W = fe(L, l, function() {
2256
2254
  return {};
2257
2255
  }), O, V;
2258
- return Re(s) ? (O = fe(W, "__domain_regex__", function() {
2256
+ return Oe(s) ? (O = fe(W, "__domain_regex__", function() {
2259
2257
  return [];
2260
2258
  })).push(V = {
2261
2259
  regex: s,
@@ -2286,7 +2284,7 @@ function tr() {
2286
2284
  var r = new P(), o;
2287
2285
  return n.errorHandler = function(i) {
2288
2286
  o.cancel(), r.reject(i);
2289
- }, o = ne(e, n, function(i) {
2287
+ }, o = re(e, n, function(i) {
2290
2288
  if (o.cancel(), r.resolve(i), t) return t(i);
2291
2289
  }), r.cancel = o.cancel, r;
2292
2290
  }
@@ -2298,7 +2296,7 @@ function tr() {
2298
2296
  return P.try(function() {
2299
2297
  if (function(w, m, p) {
2300
2298
  if (!w) throw new Error("Expected name");
2301
- if (typeof p != "string" && !Array.isArray(p) && !Re(p)) throw new TypeError("Can not send " + w + ". Expected domain " + JSON.stringify(p) + " to be a string, array, or regex");
2299
+ if (typeof p != "string" && !Array.isArray(p) && !Oe(p)) throw new TypeError("Can not send " + w + ". Expected domain " + JSON.stringify(p) + " to be a string, array, or regex");
2302
2300
  if (G(m)) throw new Error("Can not send " + w + ". Target window is closed");
2303
2301
  }(t, s, i), function(w, m) {
2304
2302
  var p = Ge(m);
@@ -2322,16 +2320,16 @@ function tr() {
2322
2320
  for (var L = [], W = 0, O = $e(T); W < O.length; W++) {
2323
2321
  var V = O[W];
2324
2322
  L.push(V);
2325
- for (var M = 0, he = R(V); M < he.length; M++) L.push(he[M]);
2323
+ for (var j = 0, he = R(V); j < he.length; j++) L.push(he[j]);
2326
2324
  }
2327
2325
  return L;
2328
2326
  }(x); b < C.length; b++) {
2329
- var j = C[b];
2327
+ var M = C[b];
2330
2328
  try {
2331
- if (j.top) return j.top;
2329
+ if (M.top) return M.top;
2332
2330
  } catch (R) {
2333
2331
  }
2334
- if (k(j) === j) return j;
2332
+ if (k(M) === M) return M;
2335
2333
  }
2336
2334
  }(m) === m) return !1;
2337
2335
  for (var g = 0, I = $e(w); g < I.length; g++) if (I[g] === m) return !0;
@@ -2350,13 +2348,13 @@ function tr() {
2350
2348
  var x = I.send;
2351
2349
  return P.try(function() {
2352
2350
  return typeof p == "string" ? p : P.try(function() {
2353
- return g || Oe(m, {
2351
+ return g || Ae(m, {
2354
2352
  send: x
2355
2353
  }).then(function(b) {
2356
2354
  return b.domain;
2357
2355
  });
2358
2356
  }).then(function(b) {
2359
- if (!re(p, p)) throw new Error("Domain " + et(p) + " does not match " + et(p));
2357
+ if (!oe(p, p)) throw new Error("Domain " + et(p) + " does not match " + et(p));
2360
2358
  return b;
2361
2359
  });
2362
2360
  });
@@ -2364,7 +2362,7 @@ function tr() {
2364
2362
  send: e
2365
2363
  });
2366
2364
  }).then(function(w) {
2367
- var m = w, p = t === "postrobot_method" && r && typeof r.name == "string" ? r.name + "()" : t, g = new P(), I = t + "_" + J();
2365
+ var m = w, p = t === "postrobot_method" && r && typeof r.name == "string" ? r.name + "()" : t, g = new P(), I = t + "_" + Y();
2368
2366
  if (!u) {
2369
2367
  var x = {
2370
2368
  name: t,
@@ -2385,15 +2383,15 @@ function tr() {
2385
2383
  });
2386
2384
  var C = function(W) {
2387
2385
  return H("knownWindows").get(W, !1);
2388
- }(s) ? 1e4 : 2e3, j = a, R = C, T = j, L = function(W, O) {
2386
+ }(s) ? 1e4 : 2e3, M = a, R = C, T = M, L = function(W, O) {
2389
2387
  var V;
2390
- return function M() {
2388
+ return function j() {
2391
2389
  V = setTimeout(function() {
2392
2390
  (function() {
2393
2391
  if (G(s)) return g.reject(new Error("Window closed for " + t + " before " + (x.ack ? "response" : "ack")));
2394
2392
  if (x.cancelled) return g.reject(new Error("Response listener was cancelled for " + t));
2395
- R = Math.max(R - 500, 0), T !== -1 && (T = Math.max(T - 500, 0)), x.ack || R !== 0 ? T === 0 && g.reject(new Error("No response for postMessage " + p + " in " + F() + " in " + j + "ms")) : g.reject(new Error("No ack for postMessage " + p + " in " + F() + " in " + C + "ms"));
2396
- })(), M();
2393
+ R = Math.max(R - 500, 0), T !== -1 && (T = Math.max(T - 500, 0)), x.ack || R !== 0 ? T === 0 && g.reject(new Error("No response for postMessage " + p + " in " + F() + " in " + M + "ms")) : g.reject(new Error("No ack for postMessage " + p + " in " + F() + " in " + C + "ms"));
2394
+ })(), j();
2397
2395
  }, 500);
2398
2396
  }(), {
2399
2397
  cancel: function() {
@@ -2403,10 +2401,10 @@ function tr() {
2403
2401
  }();
2404
2402
  g.finally(function() {
2405
2403
  L.cancel(), b.splice(b.indexOf(g, 1));
2406
- }).catch(ee);
2404
+ }).catch(te);
2407
2405
  }
2408
- return je(s, m, {
2409
- id: J(),
2406
+ return ze(s, m, {
2407
+ id: Y(),
2410
2408
  origin: F(window),
2411
2409
  type: "postrobot_message_request",
2412
2410
  hash: I,
@@ -2414,7 +2412,7 @@ function tr() {
2414
2412
  data: r,
2415
2413
  fireAndForget: u
2416
2414
  }, {
2417
- on: ne,
2415
+ on: re,
2418
2416
  send: e
2419
2417
  }).then(function() {
2420
2418
  return u ? g.resolve() : g;
@@ -2428,7 +2426,7 @@ function tr() {
2428
2426
  };
2429
2427
  function rn(e, n, t) {
2430
2428
  return ht(e, n, t, {
2431
- on: ne,
2429
+ on: re,
2432
2430
  send: K
2433
2431
  });
2434
2432
  }
@@ -2450,7 +2448,7 @@ function tr() {
2450
2448
  }
2451
2449
  function Et() {
2452
2450
  le().initialized || (le().initialized = !0, n = (e = {
2453
- on: ne,
2451
+ on: re,
2454
2452
  send: K
2455
2453
  }).on, t = e.send, (r = le()).receiveMessage = r.receiveMessage || function(o) {
2456
2454
  return yt(o, {
@@ -2490,7 +2488,7 @@ function tr() {
2490
2488
  });
2491
2489
  });
2492
2490
  }({
2493
- on: ne,
2491
+ on: re,
2494
2492
  send: K
2495
2493
  }), function(o) {
2496
2494
  var i = o.on, a = o.send;
@@ -2504,13 +2502,13 @@ function tr() {
2504
2502
  instanceID: it()
2505
2503
  };
2506
2504
  }), u = Ge();
2507
- return u && Oe(u, {
2505
+ return u && Ae(u, {
2508
2506
  send: a
2509
2507
  }).catch(function(s) {
2510
2508
  }), l;
2511
2509
  });
2512
2510
  }({
2513
- on: ne,
2511
+ on: re,
2514
2512
  send: K
2515
2513
  }));
2516
2514
  var e, n, t, r;
@@ -2527,18 +2525,18 @@ function tr() {
2527
2525
  }
2528
2526
  var cn = !0;
2529
2527
  function dn(e) {
2530
- for (var n = 0, t = H("requestPromises").get(e, []); n < t.length; n++) t[n].reject(new Error("Window " + (G(e) ? "closed" : "cleaned up") + " before response")).catch(ee);
2528
+ for (var n = 0, t = H("requestPromises").get(e, []); n < t.length; n++) t[n].reject(new Error("Window " + (G(e) ? "closed" : "cleaned up") + " before response")).catch(te);
2531
2529
  }
2532
2530
  Et();
2533
2531
  }]);
2534
2532
  });
2535
2533
  }(xe)), xe.exports;
2536
2534
  }
2537
- var Mt;
2535
+ var jt;
2538
2536
  function nr() {
2539
- return Mt || (Mt = 1, function(c) {
2537
+ return jt || (jt = 1, function(c) {
2540
2538
  c.exports = tr(), c.exports.default = c.exports;
2541
- }(ke)), ke.exports;
2539
+ }(Ue)), Ue.exports;
2542
2540
  }
2543
2541
  var Ft = nr();
2544
2542
  const rr = /* @__PURE__ */ Qn(Ft), qe = /* @__PURE__ */ gn({
@@ -2550,6 +2548,6 @@ export {
2550
2548
  ir as PrivacyCenterBox,
2551
2549
  ar as SoyioTypes,
2552
2550
  sr as SoyioWidget,
2553
- Fe as _TooltipManager,
2551
+ He as _TooltipManager,
2554
2552
  sr as default
2555
2553
  };