@soyio/soyio-widget 2.9.0 → 2.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,88 +1,165 @@
1
- var Qt = Object.defineProperty;
2
- var vt = Object.getOwnPropertySymbols;
3
- var en = Object.prototype.hasOwnProperty, tn = Object.prototype.propertyIsEnumerable;
4
- var ze = (l, d, f) => d in l ? Qt(l, d, { enumerable: !0, configurable: !0, writable: !0, value: f }) : l[d] = f, wt = (l, d) => {
5
- for (var f in d || (d = {}))
6
- en.call(d, f) && ze(l, f, d[f]);
7
- if (vt)
8
- for (var f of vt(d))
9
- tn.call(d, f) && ze(l, f, d[f]);
10
- return l;
1
+ var en = Object.defineProperty;
2
+ var tn = Object.getPrototypeOf;
3
+ var nn = Reflect.get;
4
+ var rn = (f, d, l) => d in f ? en(f, d, { enumerable: !0, configurable: !0, writable: !0, value: l }) : f[d] = l;
5
+ var L = (f, d, l) => (rn(f, typeof d != "symbol" ? d + "" : d, l), l), on = (f, d, l) => {
6
+ if (!d.has(f))
7
+ throw TypeError("Cannot " + l);
11
8
  };
12
- var H = (l, d, f) => (ze(l, typeof d != "symbol" ? d + "" : d, f), f), nn = (l, d, f) => {
13
- if (!d.has(l))
14
- throw TypeError("Cannot " + f);
15
- };
16
- var gt = (l, d, f) => {
17
- if (d.has(l))
9
+ var gt = (f, d, l) => {
10
+ if (d.has(f))
18
11
  throw TypeError("Cannot add the same private member more than once");
19
- d instanceof WeakSet ? d.add(l) : d.set(l, f);
12
+ d instanceof WeakSet ? d.add(f) : d.set(f, l);
20
13
  };
21
- var yt = (l, d, f) => (nn(l, d, "access private method"), f);
22
- var J = (l, d, f) => new Promise((v, g) => {
23
- var y = (N) => {
14
+ var yt = (f, d, l) => (on(f, d, "access private method"), l), Et = (f, d, l) => nn(tn(f), l, d);
15
+ var _ = (f, d, l) => new Promise((v, g) => {
16
+ var y = (D) => {
24
17
  try {
25
- C(f.next(N));
18
+ I(l.next(D));
26
19
  } catch (M) {
27
20
  g(M);
28
21
  }
29
- }, E = (N) => {
22
+ }, E = (D) => {
30
23
  try {
31
- C(f.throw(N));
24
+ I(l.throw(D));
32
25
  } catch (M) {
33
26
  g(M);
34
27
  }
35
- }, C = (N) => N.done ? v(N.value) : Promise.resolve(N.value).then(y, E);
36
- C((f = f.apply(l, d)).next());
28
+ }, I = (D) => D.done ? v(D.value) : Promise.resolve(D.value).then(y, E);
29
+ I((l = l.apply(f, d)).next());
37
30
  });
38
- function rn(l, d) {
39
- for (var f = 0; f < d.length; f++) {
40
- const v = d[f];
31
+ function an(f, d) {
32
+ for (var l = 0; l < d.length; l++) {
33
+ const v = d[l];
41
34
  if (typeof v != "string" && !Array.isArray(v)) {
42
35
  for (const g in v)
43
- if (g !== "default" && !(g in l)) {
36
+ if (g !== "default" && !(g in f)) {
44
37
  const y = Object.getOwnPropertyDescriptor(v, g);
45
- y && Object.defineProperty(l, g, y.get ? y : {
38
+ y && Object.defineProperty(f, g, y.get ? y : {
46
39
  enumerable: !0,
47
40
  get: () => v[g]
48
41
  });
49
42
  }
50
43
  }
51
44
  }
52
- return Object.freeze(Object.defineProperty(l, Symbol.toStringTag, { value: "Module" }));
45
+ return Object.freeze(Object.defineProperty(f, Symbol.toStringTag, { value: "Module" }));
53
46
  }
54
- function on(l, d, f) {
55
- return J(this, null, function* () {
56
- if (!l.contentWindow)
47
+ class sn {
48
+ constructor() {
49
+ L(this, "tooltipElement", null);
50
+ L(this, "tooltipContent", null);
51
+ L(this, "tooltipClass", "soyio-tooltip");
52
+ L(this, "hideTimeout", null);
53
+ this.createTooltipElement(), this.setupGlobalListeners();
54
+ }
55
+ createTooltipElement() {
56
+ const d = document.querySelector(`.${this.tooltipClass}`);
57
+ d == null || d.remove(), this.tooltipElement = document.createElement("div"), this.tooltipElement.className = this.tooltipClass, this.tooltipElement.style.cssText = `
58
+ position: fixed;
59
+ z-index: 99999;
60
+ background: white;
61
+ padding: 8px 12px;
62
+ border-radius: 4px;
63
+ box-shadow: 0 2px 4px rgba(0,0,0,0.2);
64
+ font-size: 14px;
65
+ font-family: Helvetica neue, Helvetica, Arial, sans-serif;
66
+ max-width: 300px;
67
+ word-wrap: break-word;
68
+ pointer-events: none;
69
+ opacity: 0;
70
+ transition: opacity 0.2s ease-in-out;
71
+ transform: translateX(-50%) translateY(-100%);
72
+ margin-top: -8px;
73
+ `, this.tooltipContent = document.createElement("div"), this.tooltipContent.style.cssText = "text-align: center;", this.tooltipElement.appendChild(this.tooltipContent);
74
+ const l = document.createElement("div");
75
+ l.style.cssText = `
76
+ position: absolute;
77
+ bottom: -4px;
78
+ left: 50%;
79
+ transform: translateX(-50%) rotate(45deg);
80
+ width: 8px;
81
+ height: 8px;
82
+ background: white;
83
+ box-shadow: 2px 2px 2px rgba(0,0,0,0.1);
84
+ `, this.tooltipElement.appendChild(l), document.body.appendChild(this.tooltipElement);
85
+ }
86
+ setupGlobalListeners() {
87
+ window.addEventListener("scroll", () => this.hide(), !0), window.addEventListener("resize", () => this.hide()), window.addEventListener("orientationchange", () => this.hide());
88
+ }
89
+ show(d, l, v) {
90
+ !this.tooltipElement || !this.tooltipContent || (this.hideTimeout && (clearTimeout(this.hideTimeout), this.hideTimeout = null), this.tooltipContent.textContent = d, this.tooltipElement.style.left = `${l}px`, this.tooltipElement.style.top = `${v}px`, this.tooltipElement.style.opacity = "1");
91
+ }
92
+ hide() {
93
+ this.tooltipElement && (this.tooltipElement.style.opacity = "0");
94
+ }
95
+ destroy() {
96
+ var d;
97
+ (d = this.tooltipElement) == null || d.remove(), this.tooltipElement = null, this.tooltipContent = null, this.hideTimeout && (clearTimeout(this.hideTimeout), this.hideTimeout = null);
98
+ }
99
+ }
100
+ function un(f, d, l) {
101
+ return _(this, null, function* () {
102
+ if (!f.contentWindow)
57
103
  throw new Error("Invalid iframe: contentWindow is null");
58
- const v = yield Promise.resolve().then(() => ke);
104
+ const v = yield Promise.resolve().then(() => He);
59
105
  try {
60
- yield v.send(l.contentWindow, "SET_APPEARANCE", { appearance: d, identifier: f });
106
+ yield v.send(f.contentWindow, "SET_APPEARANCE", { appearance: d, identifier: l });
61
107
  } catch (g) {
62
108
  console.error("Failed to send appearance config:", g);
63
109
  }
64
110
  });
65
111
  }
66
- const Wt = "https://app.soyio.id", Ct = "https://sandbox.soyio.id", an = [
67
- "DISCLOSURE_REQUEST_SUCCESSFUL",
68
- "IDENTITY_REGISTERED",
69
- "IDENTITY_SIGNATURE",
70
- "UNEXPECTED_ERROR",
71
- "DENIED_CAMERA_PERMISSION",
72
- "REJECTED_SIGNATURE"
73
- ], sn = "WIDGET_CLOSED", cn = 420, un = 720, dn = 500;
74
- function fn(l) {
75
- const d = document.getElementById(l);
112
+ const cn = "IFRAME_READY", dn = "IFRAME_HEIGHT_CHANGE", fn = "TOOLTIP_STATE_CHANGE", ln = "CONSENT_STATE_CHANGE", J = {
113
+ // BASE
114
+ onHeightChange: {},
115
+ onIframeReady: {},
116
+ onTooltipChange: {},
117
+ // CONSENT
118
+ onStateChange: {}
119
+ };
120
+ let xt, bt, St, Wt;
121
+ function hn() {
122
+ return _(this, null, function* () {
123
+ const f = yield Promise.resolve().then(() => He);
124
+ xt || bt || St || Wt || (xt = f.on(dn, (d) => _(this, null, function* () {
125
+ const l = d.data, v = J.onHeightChange[l.identifier];
126
+ v && v(l.height);
127
+ })), bt = f.on(cn, (d) => _(this, null, function* () {
128
+ const l = d.data, v = J.onIframeReady[l.identifier];
129
+ v && v();
130
+ })), St = f.on(fn, (d) => _(this, null, function* () {
131
+ const l = d.data, v = J.onTooltipChange[l.identifier];
132
+ v && v(l);
133
+ })), Wt = f.on(ln, (d) => _(this, null, function* () {
134
+ const l = d.data, v = J.onStateChange[l.identifier];
135
+ v && v(l);
136
+ })));
137
+ });
138
+ }
139
+ function It(f, d) {
140
+ const {
141
+ onHeightChange: l,
142
+ onIframeReady: v,
143
+ onTooltipChange: g,
144
+ onStateChange: y
145
+ } = d;
146
+ l && (J.onHeightChange[f] = l), v && (J.onIframeReady[f] = v), g && (J.onTooltipChange[f] = g), y && (J.onStateChange[f] = y);
147
+ }
148
+ function mn(f) {
149
+ delete J.onHeightChange[f], delete J.onIframeReady[f], delete J.onTooltipChange[f], delete J.onStateChange[f];
150
+ }
151
+ function pn(f) {
152
+ const d = document.getElementById(f);
76
153
  d && (console.warn("ConsentBox iframe already exists. Removing existing before mounting new one."), d.remove());
77
154
  }
78
- function ln(l) {
79
- const d = document.querySelector(l);
155
+ function vn(f) {
156
+ const d = document.querySelector(f);
80
157
  if (!d)
81
- throw new Error(`Iframe div container with id '${l}' not found`);
158
+ throw new Error(`Iframe div container with id '${f}' not found`);
82
159
  if (d.tagName.toLowerCase() !== "div")
83
- throw new Error(`Iframe container with id '${l}' must be a <div> element`);
84
- const f = d;
85
- return f.style.position = "relative", f.style.cssText += `
160
+ throw new Error(`Iframe container with id '${f}' must be a <div> element`);
161
+ const l = d;
162
+ return l.style.position = "relative", l.style.cssText += `
86
163
  padding: 0 !important;
87
164
  margin: 0 !important;
88
165
  display: flex !important;
@@ -91,11 +168,11 @@ function ln(l) {
91
168
  border: none !important;
92
169
  transition: height 0.35s !important;
93
170
  opacity: 1 !important;
94
- `, f;
171
+ `, l;
95
172
  }
96
- function hn(l, d) {
97
- const f = document.createElement("iframe");
98
- return f.id = d, f.src = l, f.style.cssText += `
173
+ function wn(f, d) {
174
+ const l = document.createElement("iframe");
175
+ return l.id = d, l.src = f, l.style.cssText += `
99
176
  width: 100% !important;
100
177
  min-width: 375px !important;
101
178
  max-width: 36rem !important;
@@ -105,66 +182,76 @@ function hn(l, d) {
105
182
  opacity: 1;
106
183
  transition: height 0.35s,
107
184
  opacity 0.4s 0.1s;
108
- `, f;
185
+ `, l;
109
186
  }
110
- function mn(l) {
111
- var E;
112
- const d = ["actionToken", "entityId", "context", "optionalReconsentBehavior", "mandatoryReconsentBehavior"], f = (E = l.isSandbox) != null ? E : !1, v = l.developmentUrl || (f ? Ct : Wt), g = new URLSearchParams();
113
- d.forEach((C) => {
114
- l[C] && g.set(C, l[C]);
115
- });
116
- const y = g.toString();
117
- return `${v}/embed/consents/${l.consentTemplateId}${y ? `?${y}` : ""}`;
118
- }
119
- const pn = "IFRAME_READY", vn = "CONSENT_STATE_CHANGE", wn = "IFRAME_HEIGHT_CHANGE", gn = "TOOLTIP_STATE_CHANGE", q = {
120
- onHeightChange: {},
121
- onIframeReady: {},
122
- onStateChange: {},
123
- onTooltipChange: {}
124
- };
125
- let Et, xt, bt, St;
126
- function yn() {
127
- return J(this, null, function* () {
128
- const l = yield Promise.resolve().then(() => ke);
129
- Et || xt || bt || St || (Et = l.on(wn, (d) => J(this, null, function* () {
130
- const f = d.data, v = q.onHeightChange[f.identifier];
131
- if (!v)
132
- throw new Error(`No height change listener found for identifier: ${f.identifier}`);
133
- v(f.height);
134
- })), xt = l.on(pn, (d) => J(this, null, function* () {
135
- const f = d.data, v = q.onIframeReady[f.identifier];
136
- if (!v)
137
- throw new Error(`No iframe ready listener found for identifier: ${f.identifier}`);
138
- v();
139
- })), bt = l.on(vn, (d) => J(this, null, function* () {
140
- const f = d.data, v = q.onStateChange[f.identifier];
141
- if (!v)
142
- throw new Error(`No state change listener found for identifier: ${f.identifier}`);
143
- v(f);
144
- })), St = l.on(gn, (d) => J(this, null, function* () {
145
- const f = d.data, v = q.onTooltipChange[f.identifier];
146
- if (!v)
147
- throw new Error(`No tooltip change listener found for identifier: ${f.identifier}`);
148
- v(f);
149
- })));
150
- });
151
- }
152
- function En(l, d) {
153
- const {
154
- onHeightChange: f,
155
- onIframeReady: v,
156
- onStateChange: g,
157
- onTooltipChange: y
158
- } = d;
159
- q.onHeightChange[l] = f, q.onIframeReady[l] = v, q.onStateChange[l] = g, q.onTooltipChange[l] = y;
187
+ function gn() {
188
+ return Math.random().toString(36).substring(2, 10);
160
189
  }
161
- function xn(l) {
162
- delete q.onHeightChange[l], delete q.onIframeReady[l], delete q.onStateChange[l], delete q.onTooltipChange[l];
190
+ class Se {
191
+ constructor(d) {
192
+ L(this, "iframe", null);
193
+ L(this, "skeleton", null);
194
+ L(this, "defaultIframePrefix", "soyio-iframe");
195
+ L(this, "options");
196
+ L(this, "appearance");
197
+ L(this, "tooltipManager");
198
+ L(this, "SkeletonKlass", null);
199
+ L(this, "defaultUniqueId");
200
+ this.options = d, this.appearance = d.appearance || null, this.tooltipManager = new sn(), this.defaultUniqueId = Se.generateUniqueId();
201
+ }
202
+ static generateUniqueId() {
203
+ return gn();
204
+ }
205
+ get uniqueIdentifier() {
206
+ return this.defaultUniqueId;
207
+ }
208
+ get iframePrefix() {
209
+ return this.defaultIframePrefix;
210
+ }
211
+ get iframeIdentifier() {
212
+ return `${this.iframePrefix}-${this.uniqueIdentifier}`;
213
+ }
214
+ handleHeightChange(d) {
215
+ if (!this.iframe || (this.iframe.style.height = `${d}px`, d > 0))
216
+ return;
217
+ const { parentElement: l } = this.iframe;
218
+ l && (l.style.display = "none");
219
+ }
220
+ handleIframeReady() {
221
+ this.iframe && (this.options.onReady && this.options.onReady(), this.appearance && un(this.iframe, this.appearance, this.uniqueIdentifier), this.skeleton && this.skeleton.hide());
222
+ }
223
+ handleTooltipChange(d) {
224
+ if (!this.iframe)
225
+ return;
226
+ const l = this.iframe.getBoundingClientRect(), { text: v, coordinates: g, isVisible: y } = d, E = g.x + l.left, I = g.y + l.top;
227
+ y ? this.tooltipManager.show(v, E, I) : this.tooltipManager.hide();
228
+ }
229
+ setupListeners() {
230
+ return _(this, null, function* () {
231
+ yield hn();
232
+ const d = {
233
+ onHeightChange: this.handleHeightChange.bind(this),
234
+ onIframeReady: this.handleIframeReady.bind(this),
235
+ onTooltipChange: this.handleTooltipChange.bind(this)
236
+ };
237
+ It(this.uniqueIdentifier, d);
238
+ });
239
+ }
240
+ mount(d) {
241
+ return _(this, null, function* () {
242
+ yield this.setupListeners(), pn(this.iframeIdentifier);
243
+ const l = vn(d), v = this.iframeUrl();
244
+ return this.iframe = wn(v, this.iframeIdentifier), this.SkeletonKlass && (this.skeleton = new this.SkeletonKlass(this.uniqueIdentifier), this.skeleton.mount(l)), l.appendChild(this.iframe), this;
245
+ });
246
+ }
247
+ unmount() {
248
+ mn(this.uniqueIdentifier), this.skeleton && (this.skeleton.hide(), this.skeleton = null), this.iframe && (this.iframe.remove(), this.iframe = null);
249
+ }
163
250
  }
164
- class bn {
251
+ class yn {
165
252
  constructor(d) {
166
- H(this, "element");
167
- H(this, "identifier");
253
+ L(this, "element");
254
+ L(this, "identifier");
168
255
  this.identifier = `skeleton-${d}`, this.element = document.createElement("div"), this.element.id = this.identifier, this.element.style.cssText = `
169
256
  position: absolute;
170
257
  left: 50%;
@@ -183,8 +270,8 @@ class bn {
183
270
  flex-direction: column;
184
271
  gap: 1rem;
185
272
  `;
186
- const f = document.createElement("div");
187
- f.style.cssText = `
273
+ const l = document.createElement("div");
274
+ l.style.cssText = `
188
275
  padding: 1rem;
189
276
  height: 100%;
190
277
  max-width: 100%;
@@ -228,14 +315,14 @@ class bn {
228
315
  margin-left: auto;
229
316
  margin-right: 3px;
230
317
  `;
231
- const C = document.createElement("div");
232
- C.style.cssText = `
318
+ const I = document.createElement("div");
319
+ I.style.cssText = `
233
320
  display: flex;
234
321
  align-items: center;
235
322
  gap: 1rem;
236
323
  `;
237
- const N = document.createElement("div");
238
- N.style.cssText = `
324
+ const D = document.createElement("div");
325
+ D.style.cssText = `
239
326
  width: 1rem;
240
327
  height: 1rem;
241
328
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
@@ -252,8 +339,8 @@ class bn {
252
339
  flex-direction: column;
253
340
  gap: 0.5rem;
254
341
  `;
255
- const G = document.createElement("div");
256
- G.style.cssText = `
342
+ const B = document.createElement("div");
343
+ B.style.cssText = `
257
344
  height: 0.875rem;
258
345
  width: 80%;
259
346
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
@@ -270,15 +357,15 @@ class bn {
270
357
  animation: shimmer 1.5s infinite;
271
358
  border-radius: 0.125rem;
272
359
  `, !document.getElementById("skeleton-animation")) {
273
- const V = document.createElement("style");
274
- V.id = "skeleton-animation", V.textContent = `
360
+ const K = document.createElement("style");
361
+ K.id = "skeleton-animation", K.textContent = `
275
362
  @keyframes shimmer {
276
363
  0% { background-position: 200% 0; }
277
364
  100% { background-position: -200% 0; }
278
365
  }
279
- `, document.head.appendChild(V);
366
+ `, document.head.appendChild(K);
280
367
  }
281
- v.appendChild(g), v.appendChild(y), v.appendChild(E), M.appendChild(G), M.appendChild(oe), C.appendChild(N), C.appendChild(M), f.appendChild(v), f.appendChild(C), this.element.appendChild(f);
368
+ v.appendChild(g), v.appendChild(y), v.appendChild(E), M.appendChild(B), M.appendChild(oe), I.appendChild(D), I.appendChild(M), l.appendChild(v), l.appendChild(I), this.element.appendChild(l);
282
369
  }
283
370
  cleanupExistingSkeleton() {
284
371
  const d = document.getElementById(this.identifier);
@@ -291,204 +378,154 @@ class bn {
291
378
  this.element.style.opacity = "0", setTimeout(() => this.element.remove(), 300);
292
379
  }
293
380
  }
294
- class Sn {
295
- constructor() {
296
- H(this, "tooltipElement", null);
297
- H(this, "tooltipContent", null);
298
- H(this, "tooltipClass", "soyio-tooltip");
299
- H(this, "hideTimeout", null);
300
- this.createTooltipElement(), this.setupGlobalListeners();
301
- }
302
- createTooltipElement() {
303
- const d = document.querySelector(`.${this.tooltipClass}`);
304
- d == null || d.remove(), this.tooltipElement = document.createElement("div"), this.tooltipElement.className = this.tooltipClass, this.tooltipElement.style.cssText = `
305
- position: fixed;
306
- z-index: 99999;
307
- background: white;
308
- padding: 8px 12px;
309
- border-radius: 4px;
310
- box-shadow: 0 2px 4px rgba(0,0,0,0.2);
311
- font-size: 14px;
312
- font-family: Helvetica neue, Helvetica, Arial, sans-serif;
313
- max-width: 300px;
314
- word-wrap: break-word;
315
- pointer-events: none;
316
- opacity: 0;
317
- transition: opacity 0.2s ease-in-out;
318
- transform: translateX(-50%) translateY(-100%);
319
- margin-top: -8px;
320
- `, this.tooltipContent = document.createElement("div"), this.tooltipContent.style.cssText = "text-align: center;", this.tooltipElement.appendChild(this.tooltipContent);
321
- const f = document.createElement("div");
322
- f.style.cssText = `
323
- position: absolute;
324
- bottom: -4px;
325
- left: 50%;
326
- transform: translateX(-50%) rotate(45deg);
327
- width: 8px;
328
- height: 8px;
329
- background: white;
330
- box-shadow: 2px 2px 2px rgba(0,0,0,0.1);
331
- `, this.tooltipElement.appendChild(f), document.body.appendChild(this.tooltipElement);
332
- }
333
- setupGlobalListeners() {
334
- window.addEventListener("scroll", () => this.hide(), !0), window.addEventListener("resize", () => this.hide()), window.addEventListener("orientationchange", () => this.hide());
335
- }
336
- show(d, f, v) {
337
- !this.tooltipElement || !this.tooltipContent || (this.hideTimeout && (clearTimeout(this.hideTimeout), this.hideTimeout = null), this.tooltipContent.textContent = d, this.tooltipElement.style.left = `${f}px`, this.tooltipElement.style.top = `${v}px`, this.tooltipElement.style.opacity = "1");
338
- }
339
- hide() {
340
- this.tooltipElement && (this.tooltipElement.style.opacity = "0");
341
- }
342
- destroy() {
343
- var d;
344
- (d = this.tooltipElement) == null || d.remove(), this.tooltipElement = null, this.tooltipContent = null, this.hideTimeout && (clearTimeout(this.hideTimeout), this.hideTimeout = null);
345
- }
381
+ const Me = "https://app.soyio.id", ke = "https://sandbox.soyio.id", En = [
382
+ "DISCLOSURE_REQUEST_SUCCESSFUL",
383
+ "IDENTITY_REGISTERED",
384
+ "IDENTITY_SIGNATURE",
385
+ "UNEXPECTED_ERROR",
386
+ "DENIED_CAMERA_PERMISSION",
387
+ "REJECTED_SIGNATURE"
388
+ ], xn = "WIDGET_CLOSED", bn = 420, Sn = 720, Wn = 500;
389
+ function In(f) {
390
+ var E;
391
+ const d = [
392
+ "actionToken",
393
+ "entityId",
394
+ "context",
395
+ "optionalReconsentBehavior",
396
+ "mandatoryReconsentBehavior"
397
+ ], l = (E = f.isSandbox) != null ? E : !1, v = f.developmentUrl || (l ? ke : Me), g = new URLSearchParams();
398
+ d.forEach((I) => {
399
+ f[I] && g.set(I, f[I]);
400
+ });
401
+ const y = g.toString();
402
+ return `${v}/embed/consents/${f.consentTemplateId}${y ? `?${y}` : ""}`;
346
403
  }
347
- class Hn {
348
- constructor(d) {
349
- H(this, "appearance");
350
- H(this, "options");
351
- H(this, "tooltipManager");
352
- H(this, "skeleton");
353
- H(this, "iframe", null);
354
- H(this, "state", {
404
+ class Ct extends Se {
405
+ constructor(l) {
406
+ super(l);
407
+ L(this, "state", {
355
408
  isSelected: !1,
356
409
  actionToken: null
357
410
  });
358
- this.options = d, this.appearance = d.appearance || null, this.tooltipManager = new Sn(), this.skeleton = new bn(this.uniqueIdentifier), this.setup();
411
+ this.defaultIframePrefix = "consent-box", this.SkeletonKlass = yn;
359
412
  }
360
- handleHeightChange(d) {
361
- if (!this.iframe || (this.iframe.style.height = `${d}px`, d > 0))
362
- return;
363
- const { parentElement: f } = this.iframe;
364
- f && (f.style.display = "none");
413
+ get uniqueIdentifier() {
414
+ return this.options.consentTemplateId;
365
415
  }
366
- handleIframeReady() {
367
- return J(this, null, function* () {
368
- this.iframe && (this.skeleton.hide(), this.options.onReady && this.options.onReady(), this.appearance && on(this.iframe, this.appearance, this.uniqueIdentifier));
369
- });
416
+ iframeUrl() {
417
+ return In(this.options);
370
418
  }
371
- handleStateChange(d) {
372
- const { isSelected: f, actionToken: v } = d;
373
- this.state = { isSelected: f, actionToken: v }, this.options.onEvent({
419
+ handleStateChange(l) {
420
+ const { isSelected: v, actionToken: g } = l;
421
+ this.state = { isSelected: v, actionToken: g }, this.options.onEvent({
374
422
  eventName: "CONSENT_CHECKBOX_CHANGE",
375
- isSelected: f,
376
- actionToken: v
423
+ isSelected: v,
424
+ actionToken: g
377
425
  });
378
426
  }
379
- setup() {
380
- return J(this, null, function* () {
381
- yield yn(), En(this.uniqueIdentifier, {
382
- onHeightChange: this.handleHeightChange.bind(this),
383
- onIframeReady: this.handleIframeReady.bind(this),
384
- onStateChange: this.handleStateChange.bind(this),
385
- onTooltipChange: this.handleTooltipChange.bind(this)
427
+ setupListeners() {
428
+ return _(this, null, function* () {
429
+ yield Et(Ct.prototype, this, "setupListeners").call(this), It(this.uniqueIdentifier, {
430
+ onStateChange: this.handleStateChange.bind(this)
386
431
  });
387
432
  });
388
433
  }
389
- handleTooltipChange(d) {
390
- if (!this.iframe)
391
- return;
392
- const f = this.iframe.getBoundingClientRect(), { text: v, coordinates: g, isVisible: y } = d, E = g.x + f.left, C = g.y + f.top;
393
- y ? this.tooltipManager.show(v, E, C) : this.tooltipManager.hide();
394
- }
395
- mount(d) {
396
- fn(this.iframeIdentifier);
397
- const f = ln(d), v = mn(this.options);
398
- return this.iframe = hn(v, this.iframeIdentifier), this.skeleton.mount(f), f.appendChild(this.iframe), this;
399
- }
400
- unmount() {
401
- xn(this.uniqueIdentifier), this.skeleton.hide(), this.iframe && (this.iframe.remove(), this.iframe = null);
402
- }
403
434
  getState() {
404
- return wt({}, this.state);
435
+ return this.state;
405
436
  }
406
- get iframeIdentifier() {
407
- return `consent-box-${this.uniqueIdentifier}`;
437
+ }
438
+ function Cn(f) {
439
+ var v;
440
+ return f.developmentUrl ? f.developmentUrl : `${((v = f.isSandbox) != null ? v : !1) ? ke : Me}/embed/privacy-center`;
441
+ }
442
+ class qn extends Se {
443
+ constructor(d) {
444
+ super(d), this.defaultIframePrefix = "privacy-center";
408
445
  }
409
- get uniqueIdentifier() {
410
- return this.options.consentTemplateId;
446
+ iframeUrl() {
447
+ return Cn(this.options);
411
448
  }
412
449
  }
413
- const Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
450
+ const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
414
451
  __proto__: null
415
452
  }, Symbol.toStringTag, { value: "Module" }));
416
- function Wn(l) {
453
+ function Pn(f) {
417
454
  let d = "widget/";
418
- return "disclosureRequestId" in l.configProps ? d += ["disclosures", l.configProps.disclosureRequestId].join("/") : d += l.request, d;
455
+ return "disclosureRequestId" in f.configProps ? d += ["disclosures", f.configProps.disclosureRequestId].join("/") : d += f.request, d;
419
456
  }
420
- function Cn(l) {
457
+ function Tn(f) {
421
458
  var y;
422
- const d = (y = l.isSandbox) != null ? y : !1, f = l.developmentUrl || (d ? Ct : Wt), v = Object.entries(l.configProps).filter(([E, C]) => C || E === "disclosureRequestId").map(([E, C]) => `${E}=${encodeURIComponent(C)}`).join("&"), g = Wn(l);
423
- return `${f}/${g}?sdk=web&${v}`;
459
+ const d = (y = f.isSandbox) != null ? y : !1, l = f.developmentUrl || (d ? ke : Me), v = Object.entries(f.configProps).filter(([E, I]) => I || E === "disclosureRequestId").map(([E, I]) => `${E}=${encodeURIComponent(I)}`).join("&"), g = Pn(f);
460
+ return `${l}/${g}?sdk=web&${v}`;
424
461
  }
425
- const In = !!(typeof window != "undefined" && window.document && window.document.createElement);
462
+ const Rn = !!(typeof window != "undefined" && window.document && window.document.createElement);
426
463
  let Z = null, je = null;
427
- function Me(l = null) {
428
- Z && !Z.closed && Z.focus(), l == null || l.preventDefault();
464
+ function Le(f = null) {
465
+ Z && !Z.closed && Z.focus(), f == null || f.preventDefault();
429
466
  }
430
- function Le() {
431
- document.body.style.filter = "", document.body.removeEventListener("click", Me);
467
+ function Ue() {
468
+ document.body.style.filter = "", document.body.removeEventListener("click", Le);
432
469
  }
433
- function Pn() {
470
+ function On() {
434
471
  je = setInterval(() => {
435
- (!Z || Z.closed) && (je && clearInterval(je), Le());
436
- }, dn);
472
+ (!Z || Z.closed) && (je && clearInterval(je), Ue());
473
+ }, Wn);
437
474
  }
438
- function Tn(l) {
439
- const d = Cn(l), f = cn, v = un, g = 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, C = window.innerHeight || document.documentElement.clientHeight || window.screen.height, N = E / window.screen.availWidth, M = (E - f) / 2 / N + g, G = (C - v) / 2 / N + y;
440
- document.body.style.filter = "blur(5px)", document.body.addEventListener("click", Me), Z = window.open(
475
+ function An(f) {
476
+ const d = Tn(f), l = bn, v = Sn, g = 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, I = window.innerHeight || document.documentElement.clientHeight || window.screen.height, D = E / window.screen.availWidth, M = (E - l) / 2 / D + g, B = (I - v) / 2 / D + y;
477
+ document.body.style.filter = "blur(5px)", document.body.addEventListener("click", Le), Z = window.open(
441
478
  d,
442
479
  "Soyio",
443
480
  `scrollbars=yes,
444
- width=${f},
481
+ width=${l},
445
482
  height=${v},
446
- top=${G},
483
+ top=${B},
447
484
  left=${M}`
448
- ), Me(), Pn();
485
+ ), Le(), On();
449
486
  }
450
- function Rn() {
451
- Z && (Z.close(), Z = null), Le();
487
+ function Dn() {
488
+ Z && (Z.close(), Z = null), Ue();
452
489
  }
453
- const On = "WIDGET_EVENT";
490
+ const Nn = "WIDGET_EVENT";
454
491
  let me = null;
455
- function An() {
492
+ function zn() {
456
493
  me && (me.cancel(), me = null);
457
494
  }
458
- function Nn(l) {
459
- return J(this, null, function* () {
460
- const { onEvent: d } = l, f = yield Promise.resolve().then(() => ke);
461
- me && An(), me = f.on(On, (v) => J(this, null, function* () {
462
- d(v.data), an.includes(v.data.eventName) ? Rn() : v.data.eventName === sn && Le();
495
+ function jn(f) {
496
+ return _(this, null, function* () {
497
+ const { onEvent: d } = f, l = yield Promise.resolve().then(() => He);
498
+ me && zn(), me = l.on(Nn, (v) => _(this, null, function* () {
499
+ d(v.data), En.includes(v.data.eventName) ? Dn() : v.data.eventName === xn && Ue();
463
500
  }));
464
501
  });
465
502
  }
466
- function Dn(l) {
467
- Nn(l);
503
+ function Ln(f) {
504
+ jn(f);
468
505
  }
469
- var be, It;
470
- class Un {
506
+ var be, Pt;
507
+ class Gn {
471
508
  constructor(d) {
472
509
  gt(this, be);
473
- H(this, "onEvent");
474
- this.onEvent = d.onEvent, In && (Tn(d), Dn({
475
- onEvent: yt(this, be, It).bind(this)
510
+ L(this, "onEvent");
511
+ this.onEvent = d.onEvent, Rn && (An(d), Ln({
512
+ onEvent: yt(this, be, Pt).bind(this)
476
513
  }));
477
514
  }
478
515
  }
479
- be = new WeakSet(), It = function(d) {
516
+ be = new WeakSet(), Pt = function(d) {
480
517
  this.onEvent(d);
481
518
  };
482
- var zn = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
483
- function jn(l) {
484
- return l && l.__esModule && Object.prototype.hasOwnProperty.call(l, "default") ? l.default : l;
519
+ var Mn = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
520
+ function kn(f) {
521
+ return f && f.__esModule && Object.prototype.hasOwnProperty.call(f, "default") ? f.default : f;
485
522
  }
486
- var Pt = { exports: {} }, Tt = { exports: {} };
487
- (function(l, d) {
488
- (function(f, v) {
489
- l.exports = v();
490
- })(typeof self != "undefined" ? self : zn, function() {
491
- return function(f) {
523
+ var Tt = { exports: {} }, Rt = { exports: {} };
524
+ (function(f, d) {
525
+ (function(l, v) {
526
+ f.exports = v();
527
+ })(typeof self != "undefined" ? self : Mn, function() {
528
+ return function(l) {
492
529
  var v = {};
493
530
  function g(y) {
494
531
  if (v[y])
@@ -498,12 +535,12 @@ var Pt = { exports: {} }, Tt = { exports: {} };
498
535
  l: !1,
499
536
  exports: {}
500
537
  };
501
- return f[y].call(E.exports, E, E.exports, g), E.l = !0, E.exports;
538
+ return l[y].call(E.exports, E, E.exports, g), E.l = !0, E.exports;
502
539
  }
503
- return g.m = f, g.c = v, g.d = function(y, E, C) {
540
+ return g.m = l, g.c = v, g.d = function(y, E, I) {
504
541
  g.o(y, E) || Object.defineProperty(y, E, {
505
542
  enumerable: !0,
506
- get: C
543
+ get: I
507
544
  });
508
545
  }, g.r = function(y) {
509
546
  typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(y, Symbol.toStringTag, {
@@ -514,16 +551,16 @@ var Pt = { exports: {} }, Tt = { exports: {} };
514
551
  }, g.t = function(y, E) {
515
552
  if (1 & E && (y = g(y)), 8 & E || 4 & E && typeof y == "object" && y && y.__esModule)
516
553
  return y;
517
- var C = /* @__PURE__ */ Object.create(null);
518
- if (g.r(C), Object.defineProperty(C, "default", {
554
+ var I = /* @__PURE__ */ Object.create(null);
555
+ if (g.r(I), Object.defineProperty(I, "default", {
519
556
  enumerable: !0,
520
557
  value: y
521
558
  }), 2 & E && typeof y != "string")
522
- for (var N in y)
523
- g.d(C, N, function(M) {
559
+ for (var D in y)
560
+ g.d(I, D, function(M) {
524
561
  return y[M];
525
- }.bind(null, N));
526
- return C;
562
+ }.bind(null, D));
563
+ return I;
527
564
  }, g.n = function(y) {
528
565
  var E = y && y.__esModule ? function() {
529
566
  return y.default;
@@ -534,35 +571,35 @@ var Pt = { exports: {} }, Tt = { exports: {} };
534
571
  }, g.o = function(y, E) {
535
572
  return {}.hasOwnProperty.call(y, E);
536
573
  }, g.p = "", g(g.s = 0);
537
- }([function(f, v, g) {
574
+ }([function(l, v, g) {
538
575
  g.r(v), g.d(v, "Promise", function() {
539
- return I;
576
+ return C;
540
577
  }), g.d(v, "TYPES", function() {
541
578
  return Xt;
542
579
  }), g.d(v, "ProxyWindow", function() {
543
- return B;
580
+ return q;
544
581
  }), g.d(v, "setup", function() {
545
- return pt;
582
+ return wt;
546
583
  }), g.d(v, "destroy", function() {
547
584
  return Vt;
548
585
  }), g.d(v, "serializeMessage", function() {
549
- return qt;
550
- }), g.d(v, "deserializeMessage", function() {
551
586
  return Jt;
552
- }), g.d(v, "createProxyWindow", function() {
587
+ }), g.d(v, "deserializeMessage", function() {
553
588
  return Yt;
554
- }), g.d(v, "toProxyWindow", function() {
589
+ }), g.d(v, "createProxyWindow", function() {
555
590
  return Zt;
591
+ }), g.d(v, "toProxyWindow", function() {
592
+ return Kt;
556
593
  }), g.d(v, "on", function() {
557
- return X;
594
+ return V;
558
595
  }), g.d(v, "once", function() {
559
596
  return _t;
560
597
  }), g.d(v, "send", function() {
561
- return K;
598
+ return X;
562
599
  }), g.d(v, "markWindowKnown", function() {
563
- return rt;
600
+ return it;
564
601
  }), g.d(v, "cleanUpWindow", function() {
565
- return Kt;
602
+ return Qt;
566
603
  }), g.d(v, "bridge", function() {
567
604
  });
568
605
  function y(e) {
@@ -570,21 +607,21 @@ var Pt = { exports: {} }, Tt = { exports: {} };
570
607
  }
571
608
  var E = `Call was rejected by callee.\r
572
609
  `;
573
- function C(e) {
610
+ function I(e) {
574
611
  return e === void 0 && (e = window), e.location.protocol;
575
612
  }
576
- function N(e) {
613
+ function D(e) {
577
614
  if (e === void 0 && (e = window), e.mockDomain) {
578
615
  var n = e.mockDomain.split("//")[0];
579
616
  if (n)
580
617
  return n;
581
618
  }
582
- return C(e);
619
+ return I(e);
583
620
  }
584
621
  function M(e) {
585
- return e === void 0 && (e = window), N(e) === "about:";
622
+ return e === void 0 && (e = window), D(e) === "about:";
586
623
  }
587
- function G(e) {
624
+ function B(e) {
588
625
  if (e === void 0 && (e = window), e)
589
626
  try {
590
627
  if (e.parent && e.parent !== e)
@@ -593,13 +630,13 @@ var Pt = { exports: {} }, Tt = { exports: {} };
593
630
  }
594
631
  }
595
632
  function oe(e) {
596
- if (e === void 0 && (e = window), e && !G(e))
633
+ if (e === void 0 && (e = window), e && !B(e))
597
634
  try {
598
635
  return e.opener;
599
636
  } catch (n) {
600
637
  }
601
638
  }
602
- function V(e) {
639
+ function K(e) {
603
640
  try {
604
641
  return !0;
605
642
  } catch (n) {
@@ -611,21 +648,21 @@ var Pt = { exports: {} }, Tt = { exports: {} };
611
648
  var n = e.location;
612
649
  if (!n)
613
650
  throw new Error("Can not read window location");
614
- var t = C(e);
651
+ var t = I(e);
615
652
  if (!t)
616
653
  throw new Error("Can not read window protocol");
617
654
  if (t === "file:")
618
655
  return "file://";
619
656
  if (t === "about:") {
620
- var r = G(e);
621
- return r && V() ? pe(r) : "about://";
657
+ var r = B(e);
658
+ return r && K() ? pe(r) : "about://";
622
659
  }
623
660
  var o = n.host;
624
661
  if (!o)
625
662
  throw new Error("Can not read window host");
626
663
  return t + "//" + o;
627
664
  }
628
- function L(e) {
665
+ function k(e) {
629
666
  e === void 0 && (e = window);
630
667
  var n = pe(e);
631
668
  return n && e.mockDomain && e.mockDomain.indexOf("mock:") === 0 ? e.mockDomain : n;
@@ -644,14 +681,14 @@ var Pt = { exports: {} }, Tt = { exports: {} };
644
681
  } catch (r) {
645
682
  }
646
683
  try {
647
- if (M(n) && V())
684
+ if (M(n) && K())
648
685
  return !0;
649
686
  } catch (r) {
650
687
  }
651
688
  try {
652
689
  if (function(r) {
653
- return r === void 0 && (r = window), N(r) === "mock:";
654
- }(n) && V())
690
+ return r === void 0 && (r = window), D(r) === "mock:";
691
+ }(n) && K())
655
692
  return !0;
656
693
  } catch (r) {
657
694
  }
@@ -664,7 +701,7 @@ var Pt = { exports: {} }, Tt = { exports: {} };
664
701
  }(e))
665
702
  return !1;
666
703
  try {
667
- if (e === window || M(e) && V() || L(window) === L(e))
704
+ if (e === window || M(e) && K() || k(window) === k(e))
668
705
  return !0;
669
706
  } catch (n) {
670
707
  }
@@ -675,10 +712,10 @@ var Pt = { exports: {} }, Tt = { exports: {} };
675
712
  throw new Error("Expected window to be same domain");
676
713
  return e;
677
714
  }
678
- function He(e, n) {
715
+ function Fe(e, n) {
679
716
  if (!e || !n)
680
717
  return !1;
681
- var t = G(n);
718
+ var t = B(n);
682
719
  return t ? t === e : function(r) {
683
720
  var o = [];
684
721
  try {
@@ -689,17 +726,17 @@ var Pt = { exports: {} }, Tt = { exports: {} };
689
726
  return o;
690
727
  }(n).indexOf(e) !== -1;
691
728
  }
692
- function Fe(e) {
729
+ function qe(e) {
693
730
  var n = [], t;
694
731
  try {
695
732
  t = e.frames;
696
- } catch (c) {
733
+ } catch (u) {
697
734
  t = e;
698
735
  }
699
736
  var r;
700
737
  try {
701
738
  r = t.length;
702
- } catch (c) {
739
+ } catch (u) {
703
740
  }
704
741
  if (r === 0)
705
742
  return n;
@@ -708,7 +745,7 @@ var Pt = { exports: {} }, Tt = { exports: {} };
708
745
  var i = void 0;
709
746
  try {
710
747
  i = t[o];
711
- } catch (c) {
748
+ } catch (u) {
712
749
  continue;
713
750
  }
714
751
  n.push(i);
@@ -716,20 +753,20 @@ var Pt = { exports: {} }, Tt = { exports: {} };
716
753
  return n;
717
754
  }
718
755
  for (var a = 0; a < 100; a++) {
719
- var u = void 0;
756
+ var c = void 0;
720
757
  try {
721
- u = t[a];
722
- } catch (c) {
758
+ c = t[a];
759
+ } catch (u) {
723
760
  return n;
724
761
  }
725
- if (!u)
762
+ if (!c)
726
763
  return n;
727
- n.push(u);
764
+ n.push(c);
728
765
  }
729
766
  return n;
730
767
  }
731
- var Ot = [], At = [];
732
- function $(e, n) {
768
+ var At = [], Dt = [];
769
+ function G(e, n) {
733
770
  n === void 0 && (n = !0);
734
771
  try {
735
772
  if (e === window)
@@ -765,12 +802,12 @@ var Pt = { exports: {} }, Tt = { exports: {} };
765
802
  try {
766
803
  if (o[a] === i)
767
804
  return a;
768
- } catch (u) {
805
+ } catch (c) {
769
806
  }
770
807
  return -1;
771
- }(Ot, e);
808
+ }(At, e);
772
809
  if (t !== -1) {
773
- var r = At[t];
810
+ var r = Dt[t];
774
811
  if (r && function(o) {
775
812
  if (!o.contentWindow || !o.parentNode)
776
813
  return !0;
@@ -787,8 +824,8 @@ var Pt = { exports: {} }, Tt = { exports: {} };
787
824
  }
788
825
  return !1;
789
826
  }
790
- function Ue(e) {
791
- return e === void 0 && (e = window), oe(e = e || window) || G(e) || void 0;
827
+ function Be(e) {
828
+ return e === void 0 && (e = window), oe(e = e || window) || B(e) || void 0;
792
829
  }
793
830
  function re(e, n) {
794
831
  if (typeof e == "string") {
@@ -857,7 +894,7 @@ var Pt = { exports: {} }, Tt = { exports: {} };
857
894
  }
858
895
  return !1;
859
896
  }
860
- function Be(e) {
897
+ function Ge(e) {
861
898
  if (Q(e))
862
899
  return ve(e).frameElement;
863
900
  for (var n = 0, t = document.querySelectorAll("iframe"); n < t.length; n++) {
@@ -868,9 +905,9 @@ var Pt = { exports: {} }, Tt = { exports: {} };
868
905
  }
869
906
  function Nt(e) {
870
907
  if (function(t) {
871
- return t === void 0 && (t = window), !!G(t);
908
+ return t === void 0 && (t = window), !!B(t);
872
909
  }(e)) {
873
- var n = Be(e);
910
+ var n = Ge(e);
874
911
  if (n && n.parentElement) {
875
912
  n.parentElement.removeChild(n);
876
913
  return;
@@ -902,36 +939,36 @@ var Pt = { exports: {} }, Tt = { exports: {} };
902
939
  }
903
940
  return !1;
904
941
  }
905
- var Ge = [], ie = [], Se = 0, ae;
906
- function $e() {
907
- if (!Se && ae) {
942
+ var $e = [], ie = [], We = 0, ae;
943
+ function _e() {
944
+ if (!We && ae) {
908
945
  var e = ae;
909
946
  ae = null, e.resolve();
910
947
  }
911
948
  }
912
- function We() {
913
- Se += 1;
949
+ function Ie() {
950
+ We += 1;
914
951
  }
915
952
  function se() {
916
- Se -= 1, $e();
953
+ We -= 1, _e();
917
954
  }
918
- var I = function() {
955
+ var C = function() {
919
956
  function e(t) {
920
957
  var r = this;
921
958
  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) {
922
- var o, i, a = !1, u = !1, c = !1;
923
- We();
959
+ var o, i, a = !1, c = !1, u = !1;
960
+ Ie();
924
961
  try {
925
962
  t(function(s) {
926
- c ? r.resolve(s) : (a = !0, o = s);
963
+ u ? r.resolve(s) : (a = !0, o = s);
927
964
  }, function(s) {
928
- c ? r.reject(s) : (u = !0, i = s);
965
+ u ? r.reject(s) : (c = !0, i = s);
929
966
  });
930
967
  } catch (s) {
931
968
  se(), this.reject(s);
932
969
  return;
933
970
  }
934
- se(), c = !0, a ? this.resolve(o) : u && this.reject(i);
971
+ se(), u = !0, a ? this.resolve(o) : c && this.reject(i);
935
972
  }
936
973
  }
937
974
  var n = e.prototype;
@@ -953,12 +990,12 @@ var Pt = { exports: {} }, Tt = { exports: {} };
953
990
  }
954
991
  return this.rejected = !0, this.error = t, this.errorHandled || setTimeout(function() {
955
992
  r.errorHandled || function(i, a) {
956
- if (Ge.indexOf(i) === -1) {
957
- Ge.push(i), setTimeout(function() {
993
+ if ($e.indexOf(i) === -1) {
994
+ $e.push(i), setTimeout(function() {
958
995
  throw i;
959
996
  }, 1);
960
- for (var u = 0; u < ie.length; u++)
961
- ie[u](i, a);
997
+ for (var c = 0; c < ie.length; c++)
998
+ ie[c](i, a);
962
999
  }
963
1000
  }(t, r);
964
1001
  }, 1), this.dispatch(), this;
@@ -967,7 +1004,7 @@ var Pt = { exports: {} }, Tt = { exports: {} };
967
1004
  }, n.dispatch = function() {
968
1005
  var t = this.resolved, r = this.rejected, o = this.handlers;
969
1006
  if (!this.dispatching && (t || r)) {
970
- this.dispatching = !0, We();
1007
+ this.dispatching = !0, Ie();
971
1008
  for (var i = function(w, S) {
972
1009
  return w.then(function(x) {
973
1010
  S.resolve(x);
@@ -975,10 +1012,10 @@ var Pt = { exports: {} }, Tt = { exports: {} };
975
1012
  S.reject(x);
976
1013
  });
977
1014
  }, a = 0; a < o.length; a++) {
978
- var u = o[a], c = u.onSuccess, s = u.onError, p = u.promise, h = void 0;
1015
+ var c = o[a], u = c.onSuccess, s = c.onError, p = c.promise, h = void 0;
979
1016
  if (t)
980
1017
  try {
981
- h = c ? c(this.value) : this.value;
1018
+ h = u ? u(this.value) : this.value;
982
1019
  } catch (w) {
983
1020
  p.reject(w);
984
1021
  continue;
@@ -1062,27 +1099,27 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1062
1099
  }, function(m) {
1063
1100
  h.reject(m);
1064
1101
  });
1065
- }, u = 0; u < t.length; u++) {
1066
- var c = t[u];
1067
- if (c instanceof e) {
1068
- if (c.resolved) {
1069
- i[u] = c.value, o -= 1;
1102
+ }, c = 0; c < t.length; c++) {
1103
+ var u = t[c];
1104
+ if (u instanceof e) {
1105
+ if (u.resolved) {
1106
+ i[c] = u.value, o -= 1;
1070
1107
  continue;
1071
1108
  }
1072
- } else if (!ee(c)) {
1073
- i[u] = c, o -= 1;
1109
+ } else if (!ee(u)) {
1110
+ i[c] = u, o -= 1;
1074
1111
  continue;
1075
1112
  }
1076
- a(u, e.resolve(c), r);
1113
+ a(c, e.resolve(u), r);
1077
1114
  }
1078
1115
  return o === 0 && r.resolve(i), r;
1079
1116
  }, e.hash = function(t) {
1080
- var r = {}, o = [], i = function(u) {
1081
- if (t.hasOwnProperty(u)) {
1082
- var c = t[u];
1083
- ee(c) ? o.push(c.then(function(s) {
1084
- r[u] = s;
1085
- })) : r[u] = c;
1117
+ var r = {}, o = [], i = function(c) {
1118
+ if (t.hasOwnProperty(c)) {
1119
+ var u = t[c];
1120
+ ee(u) ? o.push(u.then(function(s) {
1121
+ r[c] = s;
1122
+ })) : r[c] = u;
1086
1123
  }
1087
1124
  };
1088
1125
  for (var a in t)
@@ -1104,7 +1141,7 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1104
1141
  if (t && typeof t != "function" && !t.call)
1105
1142
  throw new Error("Promise.try expected a function");
1106
1143
  var i;
1107
- We();
1144
+ Ie();
1108
1145
  try {
1109
1146
  i = t.apply(r, o || []);
1110
1147
  } catch (a) {
@@ -1120,7 +1157,7 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1120
1157
  }, e.flush = function() {
1121
1158
  return function(t) {
1122
1159
  var r = ae = ae || new t();
1123
- return $e(), r;
1160
+ return _e(), r;
1124
1161
  }(e);
1125
1162
  }, e;
1126
1163
  }();
@@ -1155,7 +1192,7 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1155
1192
  return n._cleanupClosedWindows = function() {
1156
1193
  for (var t = this.weakmap, r = this.keys, o = 0; o < r.length; o++) {
1157
1194
  var i = r[o];
1158
- if (we(i) && $(i)) {
1195
+ if (we(i) && G(i)) {
1159
1196
  if (t)
1160
1197
  try {
1161
1198
  t.delete(i);
@@ -1187,8 +1224,8 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1187
1224
  } catch (p) {
1188
1225
  }
1189
1226
  this._cleanupClosedWindows();
1190
- var u = this.keys, c = this.values, s = ge(u, t);
1191
- s === -1 ? (u.push(t), c.push(r)) : c[s] = r;
1227
+ var c = this.keys, u = this.values, s = ge(c, t);
1228
+ s === -1 ? (c.push(t), u.push(r)) : u[s] = r;
1192
1229
  }, n.get = function(t) {
1193
1230
  if (!t)
1194
1231
  throw new Error("WeakMap expected key");
@@ -1217,14 +1254,14 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1217
1254
  if (r)
1218
1255
  try {
1219
1256
  r.delete(t);
1220
- } catch (u) {
1257
+ } catch (c) {
1221
1258
  delete this.weakmap;
1222
1259
  }
1223
1260
  if (this.isSafeToReadWrite(t))
1224
1261
  try {
1225
1262
  var o = t[this.name];
1226
1263
  o && o[0] === t && (o[0] = o[1] = void 0);
1227
- } catch (u) {
1264
+ } catch (c) {
1228
1265
  }
1229
1266
  this._cleanupClosedWindows();
1230
1267
  var i = this.keys, a = ge(i, t);
@@ -1254,10 +1291,10 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1254
1291
  return this.set(t, o), o;
1255
1292
  }, e;
1256
1293
  }();
1257
- function _e(e) {
1294
+ function Je(e) {
1258
1295
  return e.name || e.__name__ || e.displayName || "anonymous";
1259
1296
  }
1260
- function qe(e, n) {
1297
+ function Ye(e, n) {
1261
1298
  try {
1262
1299
  delete e.name, e.name = n;
1263
1300
  } catch (t) {
@@ -1279,7 +1316,7 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1279
1316
  }((/* @__PURE__ */ new Date()).toISOString().slice(11, 19).replace("T", ".")).replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
1280
1317
  }
1281
1318
  var ye;
1282
- function Je(e) {
1319
+ function Ze(e) {
1283
1320
  try {
1284
1321
  return JSON.stringify([].slice.call(e), function(n, t) {
1285
1322
  return typeof t == "function" ? "memoize[" + function(r) {
@@ -1293,23 +1330,23 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1293
1330
  throw new Error("Arguments not serializable -- can not be used to memoize");
1294
1331
  }
1295
1332
  }
1296
- function Dt() {
1333
+ function zt() {
1297
1334
  return {};
1298
1335
  }
1299
- var ce = 0, Ye = 0;
1300
- function ue(e, n) {
1336
+ var ue = 0, Ke = 0;
1337
+ function ce(e, n) {
1301
1338
  n === void 0 && (n = {});
1302
- var t = n.thisNamespace, r = t !== void 0 && t, o = n.time, i, a, u = ce;
1303
- ce += 1;
1304
- var c = function() {
1339
+ var t = n.thisNamespace, r = t !== void 0 && t, o = n.time, i, a, c = ue;
1340
+ ue += 1;
1341
+ var u = function() {
1305
1342
  for (var s = arguments.length, p = new Array(s), h = 0; h < s; h++)
1306
1343
  p[h] = arguments[h];
1307
- u < Ye && (i = null, a = null, u = ce, ce += 1);
1344
+ c < Ke && (i = null, a = null, c = ue, ue += 1);
1308
1345
  var m;
1309
- m = r ? (a = a || new Ce()).getOrSet(this, Dt) : i = i || {};
1346
+ m = r ? (a = a || new Ce()).getOrSet(this, zt) : i = i || {};
1310
1347
  var w;
1311
1348
  try {
1312
- w = Je(p);
1349
+ w = Ze(p);
1313
1350
  } catch (P) {
1314
1351
  return e.apply(this, arguments);
1315
1352
  }
@@ -1322,28 +1359,28 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1322
1359
  value: b
1323
1360
  }, b;
1324
1361
  };
1325
- return c.reset = function() {
1362
+ return u.reset = function() {
1326
1363
  i = null, a = null;
1327
- }, qe(c, (n.name || _e(e)) + "::memoized");
1364
+ }, Ye(u, (n.name || Je(e)) + "::memoized");
1328
1365
  }
1329
- ue.clear = function() {
1330
- Ye = ce;
1366
+ ce.clear = function() {
1367
+ Ke = ue;
1331
1368
  };
1332
- function zt(e) {
1369
+ function jt(e) {
1333
1370
  var n = {};
1334
1371
  function t() {
1335
- for (var r = arguments, o = this, i = arguments.length, a = new Array(i), u = 0; u < i; u++)
1336
- a[u] = arguments[u];
1337
- var c = Je(a);
1338
- return n.hasOwnProperty(c) || (n[c] = I.try(function() {
1372
+ for (var r = arguments, o = this, i = arguments.length, a = new Array(i), c = 0; c < i; c++)
1373
+ a[c] = arguments[c];
1374
+ var u = Ze(a);
1375
+ return n.hasOwnProperty(u) || (n[u] = C.try(function() {
1339
1376
  return e.apply(o, r);
1340
1377
  }).finally(function() {
1341
- delete n[c];
1342
- })), n[c];
1378
+ delete n[u];
1379
+ })), n[u];
1343
1380
  }
1344
1381
  return t.reset = function() {
1345
1382
  n = {};
1346
- }, qe(t, _e(e) + "::promiseMemoized");
1383
+ }, Ye(t, Je(e) + "::promiseMemoized");
1347
1384
  }
1348
1385
  function te() {
1349
1386
  }
@@ -1370,10 +1407,10 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1370
1407
  return "Error while stringifying error: " + de(o, n + 1);
1371
1408
  }
1372
1409
  }
1373
- function Ze(e) {
1410
+ function Ve(e) {
1374
1411
  return typeof e == "string" ? e : e && e.toString && typeof e.toString == "function" ? e.toString() : {}.toString.call(e);
1375
1412
  }
1376
- ue(function(e) {
1413
+ ce(function(e) {
1377
1414
  if (Object.values)
1378
1415
  return Object.values(e);
1379
1416
  var n = [];
@@ -1381,7 +1418,7 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1381
1418
  e.hasOwnProperty(t) && n.push(e[t]);
1382
1419
  return n;
1383
1420
  });
1384
- function Ie(e) {
1421
+ function Pe(e) {
1385
1422
  return {}.toString.call(e) === "[object RegExp]";
1386
1423
  }
1387
1424
  function fe(e, n, t) {
@@ -1390,29 +1427,29 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1390
1427
  var r = t();
1391
1428
  return e[n] = r, r;
1392
1429
  }
1393
- function Ve() {
1430
+ function Xe() {
1394
1431
  var e = document.body;
1395
1432
  if (!e)
1396
1433
  throw new Error("Body element not found");
1397
1434
  return e;
1398
1435
  }
1399
- function Xe() {
1436
+ function Qe() {
1400
1437
  return !!document.body && document.readyState === "complete";
1401
1438
  }
1402
- function Ke() {
1439
+ function et() {
1403
1440
  return !!document.body && document.readyState === "interactive";
1404
1441
  }
1405
- ue(function() {
1406
- return new I(function(e) {
1407
- if (Xe() || Ke())
1442
+ ce(function() {
1443
+ return new C(function(e) {
1444
+ if (Qe() || et())
1408
1445
  return e();
1409
1446
  var n = setInterval(function() {
1410
- if (Xe() || Ke())
1447
+ if (Qe() || et())
1411
1448
  return clearInterval(n), e();
1412
1449
  }, 10);
1413
1450
  });
1414
1451
  });
1415
- var Ee = typeof document != "undefined" ? document.currentScript : null, jt = ue(function() {
1452
+ var Ee = typeof document != "undefined" ? document.currentScript : null, Lt = ce(function() {
1416
1453
  if (Ee || (Ee = function() {
1417
1454
  try {
1418
1455
  var e = function() {
@@ -1435,10 +1472,10 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1435
1472
  return Ee;
1436
1473
  throw new Error("Can not determine current script");
1437
1474
  }), Mt = Y();
1438
- ue(function() {
1475
+ ce(function() {
1439
1476
  var e;
1440
1477
  try {
1441
- e = jt();
1478
+ e = Lt();
1442
1479
  } catch (r) {
1443
1480
  return Mt;
1444
1481
  }
@@ -1466,11 +1503,11 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1466
1503
  var n = "__post_robot_10_0_46__";
1467
1504
  return e !== window ? e[n] : e[n] = e[n] || {};
1468
1505
  }
1469
- var Qe = function() {
1506
+ var tt = function() {
1470
1507
  return {};
1471
1508
  };
1472
1509
  function z(e, n) {
1473
- return e === void 0 && (e = "store"), n === void 0 && (n = Qe), fe(le(), e, function() {
1510
+ return e === void 0 && (e = "store"), n === void 0 && (n = tt), fe(le(), e, function() {
1474
1511
  var t = n();
1475
1512
  return {
1476
1513
  has: function(r) {
@@ -1497,14 +1534,14 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1497
1534
  };
1498
1535
  });
1499
1536
  }
1500
- var Lt = function() {
1537
+ var kt = function() {
1501
1538
  };
1502
1539
  function xe() {
1503
1540
  var e = le();
1504
- return e.WINDOW_WILDCARD = e.WINDOW_WILDCARD || new Lt(), e.WINDOW_WILDCARD;
1541
+ return e.WINDOW_WILDCARD = e.WINDOW_WILDCARD || new kt(), e.WINDOW_WILDCARD;
1505
1542
  }
1506
- function k(e, n) {
1507
- return e === void 0 && (e = "store"), n === void 0 && (n = Qe), z("windowStore").getOrSet(e, function() {
1543
+ function U(e, n) {
1544
+ return e === void 0 && (e = "store"), n === void 0 && (n = tt), z("windowStore").getOrSet(e, function() {
1508
1545
  var t = new Ce(), r = function(o) {
1509
1546
  return t.getOrSet(o, n);
1510
1547
  };
@@ -1528,28 +1565,28 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1528
1565
  };
1529
1566
  });
1530
1567
  }
1531
- function et() {
1568
+ function nt() {
1532
1569
  return z("instance").getOrSet("instanceID", Y);
1533
1570
  }
1534
- function tt(e, n) {
1535
- var t = n.domain, r = k("helloPromises"), o = r.get(e);
1571
+ function rt(e, n) {
1572
+ var t = n.domain, r = U("helloPromises"), o = r.get(e);
1536
1573
  o && o.resolve({
1537
1574
  domain: t
1538
1575
  });
1539
- var i = I.resolve({
1576
+ var i = C.resolve({
1540
1577
  domain: t
1541
1578
  });
1542
1579
  return r.set(e, i), i;
1543
1580
  }
1544
- function Pe(e, n) {
1581
+ function Te(e, n) {
1545
1582
  return (0, n.send)(e, "postrobot_hello", {
1546
- instanceID: et()
1583
+ instanceID: nt()
1547
1584
  }, {
1548
1585
  domain: "*",
1549
1586
  timeout: -1
1550
1587
  }).then(function(t) {
1551
1588
  var r = t.origin, o = t.data.instanceID;
1552
- return tt(e, {
1589
+ return rt(e, {
1553
1590
  domain: r
1554
1591
  }), {
1555
1592
  win: e,
@@ -1558,23 +1595,23 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1558
1595
  };
1559
1596
  });
1560
1597
  }
1561
- function nt(e, n) {
1598
+ function ot(e, n) {
1562
1599
  var t = n.send;
1563
- return k("windowInstanceIDPromises").getOrSet(e, function() {
1564
- return Pe(e, {
1600
+ return U("windowInstanceIDPromises").getOrSet(e, function() {
1601
+ return Te(e, {
1565
1602
  send: t
1566
1603
  }).then(function(r) {
1567
1604
  return r.instanceID;
1568
1605
  });
1569
1606
  });
1570
1607
  }
1571
- function rt(e) {
1572
- k("knownWindows").set(e, !0);
1608
+ function it(e) {
1609
+ U("knownWindows").set(e, !0);
1573
1610
  }
1574
- function Te(e) {
1611
+ function Re(e) {
1575
1612
  return typeof e == "object" && e !== null && typeof e.__type__ == "string";
1576
1613
  }
1577
- function ot(e) {
1614
+ function at(e) {
1578
1615
  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;
1579
1616
  }
1580
1617
  function ne(e, n) {
@@ -1583,61 +1620,61 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1583
1620
  __val__: n
1584
1621
  };
1585
1622
  }
1586
- var F, kt = ((F = {}).function = function() {
1587
- }, F.error = function(e) {
1623
+ var H, Ut = ((H = {}).function = function() {
1624
+ }, H.error = function(e) {
1588
1625
  return ne("error", {
1589
1626
  message: e.message,
1590
1627
  stack: e.stack,
1591
1628
  code: e.code,
1592
1629
  data: e.data
1593
1630
  });
1594
- }, F.promise = function() {
1595
- }, F.regex = function(e) {
1631
+ }, H.promise = function() {
1632
+ }, H.regex = function(e) {
1596
1633
  return ne("regex", e.source);
1597
- }, F.date = function(e) {
1634
+ }, H.date = function(e) {
1598
1635
  return ne("date", e.toJSON());
1599
- }, F.array = function(e) {
1636
+ }, H.array = function(e) {
1600
1637
  return e;
1601
- }, F.object = function(e) {
1638
+ }, H.object = function(e) {
1602
1639
  return e;
1603
- }, F.string = function(e) {
1640
+ }, H.string = function(e) {
1604
1641
  return e;
1605
- }, F.number = function(e) {
1642
+ }, H.number = function(e) {
1606
1643
  return e;
1607
- }, F.boolean = function(e) {
1644
+ }, H.boolean = function(e) {
1608
1645
  return e;
1609
- }, F.null = function(e) {
1646
+ }, H.null = function(e) {
1610
1647
  return e;
1611
- }, F[void 0] = function(e) {
1648
+ }, H[void 0] = function(e) {
1612
1649
  return ne("undefined", e);
1613
- }, F), Ht = {}, U, Ft = ((U = {}).function = function() {
1650
+ }, H), Ht = {}, F, Ft = ((F = {}).function = function() {
1614
1651
  throw new Error("Function serialization is not implemented; nothing to deserialize");
1615
- }, U.error = function(e) {
1652
+ }, F.error = function(e) {
1616
1653
  var n = e.stack, t = e.code, r = e.data, o = new Error(e.message);
1617
1654
  return o.code = t, r && (o.data = r), o.stack = n + `
1618
1655
 
1619
1656
  ` + o.stack, o;
1620
- }, U.promise = function() {
1657
+ }, F.promise = function() {
1621
1658
  throw new Error("Promise serialization is not implemented; nothing to deserialize");
1622
- }, U.regex = function(e) {
1659
+ }, F.regex = function(e) {
1623
1660
  return new RegExp(e);
1624
- }, U.date = function(e) {
1661
+ }, F.date = function(e) {
1625
1662
  return new Date(e);
1626
- }, U.array = function(e) {
1663
+ }, F.array = function(e) {
1627
1664
  return e;
1628
- }, U.object = function(e) {
1665
+ }, F.object = function(e) {
1629
1666
  return e;
1630
- }, U.string = function(e) {
1667
+ }, F.string = function(e) {
1631
1668
  return e;
1632
- }, U.number = function(e) {
1669
+ }, F.number = function(e) {
1633
1670
  return e;
1634
- }, U.boolean = function(e) {
1671
+ }, F.boolean = function(e) {
1635
1672
  return e;
1636
- }, U.null = function(e) {
1673
+ }, F.null = function(e) {
1637
1674
  return e;
1638
- }, U[void 0] = function() {
1639
- }, U), Ut = {};
1640
- new I(function(e) {
1675
+ }, F[void 0] = function() {
1676
+ }, F), qt = {};
1677
+ new C(function(e) {
1641
1678
  if (window.document && window.document.body)
1642
1679
  return e(window.document.body);
1643
1680
  var n = setInterval(function() {
@@ -1645,26 +1682,26 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1645
1682
  return clearInterval(n), e(window.document.body);
1646
1683
  }, 10);
1647
1684
  });
1648
- function Re() {
1685
+ function Oe() {
1649
1686
  for (var e = z("idToProxyWindow"), n = 0, t = e.keys(); n < t.length; n++) {
1650
1687
  var r = t[n];
1651
1688
  e.get(r).shouldClean() && e.del(r);
1652
1689
  }
1653
1690
  }
1654
- function it(e, n) {
1655
- var t = n.send, r = n.id, o = r === void 0 ? Y() : r, i = e.then(function(c) {
1656
- if (Q(c))
1657
- return ve(c).name;
1658
- }), a = e.then(function(c) {
1659
- if ($(c))
1691
+ function st(e, n) {
1692
+ var t = n.send, r = n.id, o = r === void 0 ? Y() : r, i = e.then(function(u) {
1693
+ if (Q(u))
1694
+ return ve(u).name;
1695
+ }), a = e.then(function(u) {
1696
+ if (G(u))
1660
1697
  throw new Error("Window is closed, can not determine type");
1661
- return oe(c) ? "popup" : "iframe";
1698
+ return oe(u) ? "popup" : "iframe";
1662
1699
  });
1663
1700
  i.catch(te), a.catch(te);
1664
- var u = function() {
1665
- return e.then(function(c) {
1666
- if (!$(c))
1667
- return Q(c) ? ve(c).name : i;
1701
+ var c = function() {
1702
+ return e.then(function(u) {
1703
+ if (!G(u))
1704
+ return Q(u) ? ve(u).name : i;
1668
1705
  });
1669
1706
  };
1670
1707
  return {
@@ -1672,9 +1709,9 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1672
1709
  getType: function() {
1673
1710
  return a;
1674
1711
  },
1675
- getInstanceID: zt(function() {
1676
- return e.then(function(c) {
1677
- return nt(c, {
1712
+ getInstanceID: jt(function() {
1713
+ return e.then(function(u) {
1714
+ return ot(u, {
1678
1715
  send: t
1679
1716
  });
1680
1717
  });
@@ -1682,38 +1719,38 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1682
1719
  close: function() {
1683
1720
  return e.then(Nt);
1684
1721
  },
1685
- getName: u,
1722
+ getName: c,
1686
1723
  focus: function() {
1687
- return e.then(function(c) {
1688
- c.focus();
1724
+ return e.then(function(u) {
1725
+ u.focus();
1689
1726
  });
1690
1727
  },
1691
1728
  isClosed: function() {
1692
- return e.then(function(c) {
1693
- return $(c);
1729
+ return e.then(function(u) {
1730
+ return G(u);
1694
1731
  });
1695
1732
  },
1696
- setLocation: function(c, s) {
1733
+ setLocation: function(u, s) {
1697
1734
  return s === void 0 && (s = {}), e.then(function(p) {
1698
1735
  var h = window.location.protocol + "//" + window.location.host, m = s.method, w = m === void 0 ? "get" : m, S = s.body;
1699
- if (c.indexOf("/") === 0)
1700
- c = "" + h + c;
1701
- else if (!c.match(/^https?:\/\//) && c.indexOf(h) !== 0)
1702
- throw new Error("Expected url to be http or https url, or absolute path, got " + JSON.stringify(c));
1736
+ if (u.indexOf("/") === 0)
1737
+ u = "" + h + u;
1738
+ else if (!u.match(/^https?:\/\//) && u.indexOf(h) !== 0)
1739
+ throw new Error("Expected url to be http or https url, or absolute path, got " + JSON.stringify(u));
1703
1740
  if (w === "post")
1704
- return u().then(function(x) {
1741
+ return c().then(function(x) {
1705
1742
  if (!x)
1706
1743
  throw new Error("Can not post to window without target name");
1707
1744
  (function(b) {
1708
- var P = b.url, D = b.target, R = b.body, T = b.method, j = T === void 0 ? "post" : T, W = document.createElement("form");
1709
- if (W.setAttribute("target", D), W.setAttribute("method", j), W.setAttribute("action", P), W.style.display = "none", R)
1710
- for (var O = 0, _ = Object.keys(R); O < _.length; O++) {
1711
- var A, he = _[O], De = document.createElement("input");
1712
- De.setAttribute("name", he), De.setAttribute("value", (A = R[he]) == null ? void 0 : A.toString()), W.appendChild(De);
1745
+ var P = b.url, N = b.target, R = b.body, T = b.method, j = T === void 0 ? "post" : T, W = document.createElement("form");
1746
+ if (W.setAttribute("target", N), W.setAttribute("method", j), W.setAttribute("action", P), W.style.display = "none", R)
1747
+ for (var O = 0, $ = Object.keys(R); O < $.length; O++) {
1748
+ var A, he = $[O], ze = document.createElement("input");
1749
+ ze.setAttribute("name", he), ze.setAttribute("value", (A = R[he]) == null ? void 0 : A.toString()), W.appendChild(ze);
1713
1750
  }
1714
- Ve().appendChild(W), W.submit(), Ve().removeChild(W);
1751
+ Xe().appendChild(W), W.submit(), Xe().removeChild(W);
1715
1752
  })({
1716
- url: c,
1753
+ url: u,
1717
1754
  target: x,
1718
1755
  method: w,
1719
1756
  body: S
@@ -1724,28 +1761,28 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1724
1761
  if (Q(p))
1725
1762
  try {
1726
1763
  if (p.location && typeof p.location.replace == "function") {
1727
- p.location.replace(c);
1764
+ p.location.replace(u);
1728
1765
  return;
1729
1766
  }
1730
1767
  } catch (x) {
1731
1768
  }
1732
- p.location = c;
1769
+ p.location = u;
1733
1770
  });
1734
1771
  },
1735
- setName: function(c) {
1772
+ setName: function(u) {
1736
1773
  return e.then(function(s) {
1737
- var p = Q(s), h = Be(s);
1774
+ var p = Q(s), h = Ge(s);
1738
1775
  if (!p)
1739
- throw new Error("Can not set name for cross-domain window: " + c);
1740
- ve(s).name = c, h && h.setAttribute("name", c), i = I.resolve(c);
1776
+ throw new Error("Can not set name for cross-domain window: " + u);
1777
+ ve(s).name = u, h && h.setAttribute("name", u), i = C.resolve(u);
1741
1778
  });
1742
1779
  }
1743
1780
  };
1744
1781
  }
1745
- var B = function() {
1782
+ var q = function() {
1746
1783
  function e(t) {
1747
1784
  var r = t.send, o = t.win, i = t.serializedWindow;
1748
- this.id = void 0, this.isProxyWindow = !0, this.serializedWindow = void 0, this.actualWindow = void 0, this.actualWindowPromise = void 0, this.send = void 0, this.name = void 0, this.actualWindowPromise = new I(), this.serializedWindow = i || it(this.actualWindowPromise, {
1785
+ this.id = void 0, this.isProxyWindow = !0, this.serializedWindow = void 0, this.actualWindow = void 0, this.actualWindowPromise = void 0, this.send = void 0, this.name = void 0, this.actualWindowPromise = new C(), this.serializedWindow = i || st(this.actualWindowPromise, {
1749
1786
  send: r
1750
1787
  }), z("idToProxyWindow").set(this.getID(), this), o && this.setWindow(o, {
1751
1788
  send: r
@@ -1778,14 +1815,14 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1778
1815
  return t;
1779
1816
  });
1780
1817
  }, n.focus = function() {
1781
- var t = this, r = this.isPopup(), o = this.getName(), i = I.hash({
1818
+ var t = this, r = this.isPopup(), o = this.getName(), i = C.hash({
1782
1819
  isPopup: r,
1783
1820
  name: o
1784
- }).then(function(u) {
1785
- var c = u.name;
1786
- u.isPopup && c && window.open("", c, "noopener");
1821
+ }).then(function(c) {
1822
+ var u = c.name;
1823
+ c.isPopup && u && window.open("", u, "noopener");
1787
1824
  }), a = this.serializedWindow.focus();
1788
- return I.all([i, a]).then(function() {
1825
+ return C.all([i, a]).then(function() {
1789
1826
  return t;
1790
1827
  });
1791
1828
  }, n.isClosed = function() {
@@ -1794,25 +1831,25 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1794
1831
  return this.actualWindow;
1795
1832
  }, n.setWindow = function(t, r) {
1796
1833
  var o = r.send;
1797
- this.actualWindow = t, this.actualWindowPromise.resolve(this.actualWindow), this.serializedWindow = it(this.actualWindowPromise, {
1834
+ this.actualWindow = t, this.actualWindowPromise.resolve(this.actualWindow), this.serializedWindow = st(this.actualWindowPromise, {
1798
1835
  send: o,
1799
1836
  id: this.getID()
1800
- }), k("winToProxyWindow").set(t, this);
1837
+ }), U("winToProxyWindow").set(t, this);
1801
1838
  }, n.awaitWindow = function() {
1802
1839
  return this.actualWindowPromise;
1803
1840
  }, n.matchWindow = function(t, r) {
1804
1841
  var o = this, i = r.send;
1805
- return I.try(function() {
1806
- return o.actualWindow ? t === o.actualWindow : I.hash({
1842
+ return C.try(function() {
1843
+ return o.actualWindow ? t === o.actualWindow : C.hash({
1807
1844
  proxyInstanceID: o.getInstanceID(),
1808
- knownWindowInstanceID: nt(t, {
1845
+ knownWindowInstanceID: ot(t, {
1809
1846
  send: i
1810
1847
  })
1811
1848
  }).then(function(a) {
1812
- var u = a.proxyInstanceID === a.knownWindowInstanceID;
1813
- return u && o.setWindow(t, {
1849
+ var c = a.proxyInstanceID === a.knownWindowInstanceID;
1850
+ return c && o.setWindow(t, {
1814
1851
  send: i
1815
- }), u;
1852
+ }), c;
1816
1853
  });
1817
1854
  });
1818
1855
  }, n.unwrap = function() {
@@ -1820,19 +1857,19 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1820
1857
  }, n.getInstanceID = function() {
1821
1858
  return this.serializedWindow.getInstanceID();
1822
1859
  }, n.shouldClean = function() {
1823
- return !!(this.actualWindow && $(this.actualWindow));
1860
+ return !!(this.actualWindow && G(this.actualWindow));
1824
1861
  }, n.serialize = function() {
1825
1862
  return this.serializedWindow;
1826
1863
  }, e.unwrap = function(t) {
1827
1864
  return e.isProxyWindow(t) ? t.unwrap() : t;
1828
1865
  }, e.serialize = function(t, r) {
1829
1866
  var o = r.send;
1830
- return Re(), e.toProxyWindow(t, {
1867
+ return Oe(), e.toProxyWindow(t, {
1831
1868
  send: o
1832
1869
  }).serialize();
1833
1870
  }, e.deserialize = function(t, r) {
1834
1871
  var o = r.send;
1835
- return Re(), z("idToProxyWindow").get(t.id) || new e({
1872
+ return Oe(), z("idToProxyWindow").get(t.id) || new e({
1836
1873
  serializedWindow: t,
1837
1874
  send: o
1838
1875
  });
@@ -1840,18 +1877,18 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1840
1877
  return !!(t && !we(t) && t.isProxyWindow);
1841
1878
  }, e.toProxyWindow = function(t, r) {
1842
1879
  var o = r.send;
1843
- if (Re(), e.isProxyWindow(t))
1880
+ if (Oe(), e.isProxyWindow(t))
1844
1881
  return t;
1845
1882
  var i = t;
1846
- return k("winToProxyWindow").get(i) || new e({
1883
+ return U("winToProxyWindow").get(i) || new e({
1847
1884
  win: i,
1848
1885
  send: o
1849
1886
  });
1850
1887
  }, e;
1851
1888
  }();
1852
- function Oe(e, n, t, r, o) {
1853
- var i = k("methodStore"), a = z("proxyWindowMethods");
1854
- B.isProxyWindow(r) ? a.set(e, {
1889
+ function Ae(e, n, t, r, o) {
1890
+ var i = U("methodStore"), a = z("proxyWindowMethods");
1891
+ q.isProxyWindow(r) ? a.set(e, {
1855
1892
  val: n,
1856
1893
  name: t,
1857
1894
  domain: o,
@@ -1865,33 +1902,33 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1865
1902
  source: r
1866
1903
  });
1867
1904
  }
1868
- function at(e, n) {
1869
- var t = k("methodStore"), r = z("proxyWindowMethods");
1905
+ function ut(e, n) {
1906
+ var t = U("methodStore"), r = z("proxyWindowMethods");
1870
1907
  return t.getOrSet(e, function() {
1871
1908
  return {};
1872
1909
  })[n] || r.get(n);
1873
1910
  }
1874
- function st(e, n, t, r, o) {
1911
+ function ct(e, n, t, r, o) {
1875
1912
  a = (i = {
1876
1913
  on: o.on,
1877
1914
  send: o.send
1878
- }).on, u = i.send, z("builtinListeners").getOrSet("functionCalls", function() {
1915
+ }).on, c = i.send, z("builtinListeners").getOrSet("functionCalls", function() {
1879
1916
  return a("postrobot_method", {
1880
1917
  domain: "*"
1881
1918
  }, function(p) {
1882
- var h = p.source, m = p.origin, w = p.data, S = w.id, x = w.name, b = at(h, S);
1919
+ var h = p.source, m = p.origin, w = p.data, S = w.id, x = w.name, b = ut(h, S);
1883
1920
  if (!b)
1884
- throw new Error("Could not find method '" + x + "' with id: " + w.id + " in " + L(window));
1885
- var P = b.source, D = b.domain, R = b.val;
1886
- return I.try(function() {
1887
- if (!re(D, m))
1888
- throw new Error("Method '" + w.name + "' domain " + JSON.stringify(Ie(b.domain) ? b.domain.source : b.domain) + " does not match origin " + m + " in " + L(window));
1889
- if (B.isProxyWindow(P))
1921
+ throw new Error("Could not find method '" + x + "' with id: " + w.id + " in " + k(window));
1922
+ var P = b.source, N = b.domain, R = b.val;
1923
+ return C.try(function() {
1924
+ if (!re(N, m))
1925
+ throw new Error("Method '" + w.name + "' domain " + JSON.stringify(Pe(b.domain) ? b.domain.source : b.domain) + " does not match origin " + m + " in " + k(window));
1926
+ if (q.isProxyWindow(P))
1890
1927
  return P.matchWindow(h, {
1891
- send: u
1928
+ send: c
1892
1929
  }).then(function(T) {
1893
1930
  if (!T)
1894
- throw new Error("Method call '" + w.name + "' failed - proxy window does not match source in " + L(window));
1931
+ throw new Error("Method call '" + w.name + "' failed - proxy window does not match source in " + k(window));
1895
1932
  });
1896
1933
  }).then(function() {
1897
1934
  return R.apply({
@@ -1899,7 +1936,7 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1899
1936
  origin: m
1900
1937
  }, w.args);
1901
1938
  }, function(T) {
1902
- return I.try(function() {
1939
+ return C.try(function() {
1903
1940
  if (R.onError)
1904
1941
  return R.onError(T);
1905
1942
  }).then(function() {
@@ -1921,102 +1958,102 @@ var Pt = { exports: {} }, Tt = { exports: {} };
1921
1958
  });
1922
1959
  });
1923
1960
  });
1924
- var i, a, u, c = t.__id__ || Y();
1925
- e = B.unwrap(e);
1961
+ var i, a, c, u = t.__id__ || Y();
1962
+ e = q.unwrap(e);
1926
1963
  var s = t.__name__ || t.name || r;
1927
- return typeof s == "string" && typeof s.indexOf == "function" && s.indexOf("anonymous::") === 0 && (s = s.replace("anonymous::", r + "::")), B.isProxyWindow(e) ? (Oe(c, t, s, e, n), e.awaitWindow().then(function(p) {
1928
- Oe(c, t, s, p, n);
1929
- })) : Oe(c, t, s, e, n), ne("cross_domain_function", {
1930
- id: c,
1964
+ return typeof s == "string" && typeof s.indexOf == "function" && s.indexOf("anonymous::") === 0 && (s = s.replace("anonymous::", r + "::")), q.isProxyWindow(e) ? (Ae(u, t, s, e, n), e.awaitWindow().then(function(p) {
1965
+ Ae(u, t, s, p, n);
1966
+ })) : Ae(u, t, s, e, n), ne("cross_domain_function", {
1967
+ id: u,
1931
1968
  name: s
1932
1969
  });
1933
1970
  }
1934
- function ct(e, n, t, r) {
1971
+ function dt(e, n, t, r) {
1935
1972
  var o, i = r.on, a = r.send;
1936
- return function(u, c) {
1937
- c === void 0 && (c = Ht);
1938
- var s = JSON.stringify(u, function(p) {
1973
+ return function(c, u) {
1974
+ u === void 0 && (u = Ht);
1975
+ var s = JSON.stringify(c, function(p) {
1939
1976
  var h = this[p];
1940
- if (Te(this))
1977
+ if (Re(this))
1941
1978
  return h;
1942
- var m = ot(h);
1979
+ var m = at(h);
1943
1980
  if (!m)
1944
1981
  return h;
1945
- var w = c[m] || kt[m];
1982
+ var w = u[m] || Ut[m];
1946
1983
  return w ? w(h, p) : h;
1947
1984
  });
1948
1985
  return s === void 0 ? "undefined" : s;
1949
- }(t, ((o = {}).promise = function(u, c) {
1986
+ }(t, ((o = {}).promise = function(c, u) {
1950
1987
  return function(s, p, h, m, w) {
1951
1988
  return ne("cross_domain_zalgo_promise", {
1952
- then: st(s, p, function(S, x) {
1989
+ then: ct(s, p, function(S, x) {
1953
1990
  return h.then(S, x);
1954
1991
  }, m, {
1955
1992
  on: w.on,
1956
1993
  send: w.send
1957
1994
  })
1958
1995
  });
1959
- }(e, n, u, c, {
1996
+ }(e, n, c, u, {
1960
1997
  on: i,
1961
1998
  send: a
1962
1999
  });
1963
- }, o.function = function(u, c) {
1964
- return st(e, n, u, c, {
2000
+ }, o.function = function(c, u) {
2001
+ return ct(e, n, c, u, {
1965
2002
  on: i,
1966
2003
  send: a
1967
2004
  });
1968
- }, o.object = function(u) {
1969
- return we(u) || B.isProxyWindow(u) ? ne("cross_domain_window", B.serialize(u, {
2005
+ }, o.object = function(c) {
2006
+ return we(c) || q.isProxyWindow(c) ? ne("cross_domain_window", q.serialize(c, {
1970
2007
  send: a
1971
- })) : u;
2008
+ })) : c;
1972
2009
  }, o));
1973
2010
  }
1974
- function ut(e, n, t, r) {
2011
+ function ft(e, n, t, r) {
1975
2012
  var o, i = r.send;
1976
- return function(a, u) {
1977
- if (u === void 0 && (u = Ut), a !== "undefined")
1978
- return JSON.parse(a, function(c, s) {
1979
- if (Te(this))
2013
+ return function(a, c) {
2014
+ if (c === void 0 && (c = qt), a !== "undefined")
2015
+ return JSON.parse(a, function(u, s) {
2016
+ if (Re(this))
1980
2017
  return s;
1981
2018
  var p, h;
1982
- if (Te(s) ? (p = s.__type__, h = s.__val__) : (p = ot(s), h = s), !p)
2019
+ if (Re(s) ? (p = s.__type__, h = s.__val__) : (p = at(s), h = s), !p)
1983
2020
  return h;
1984
- var m = u[p] || Ft[p];
1985
- return m ? m(h, c) : h;
2021
+ var m = c[p] || Ft[p];
2022
+ return m ? m(h, u) : h;
1986
2023
  });
1987
2024
  }(t, ((o = {}).cross_domain_zalgo_promise = function(a) {
1988
- return function(u, c, s) {
1989
- return new I(s.then);
2025
+ return function(c, u, s) {
2026
+ return new C(s.then);
1990
2027
  }(0, 0, a);
1991
2028
  }, o.cross_domain_function = function(a) {
1992
- return function(u, c, s, p) {
2029
+ return function(c, u, s, p) {
1993
2030
  var h = s.id, m = s.name, w = p.send, S = function(b) {
1994
2031
  b === void 0 && (b = {});
1995
2032
  function P() {
1996
- var D = arguments;
1997
- return B.toProxyWindow(u, {
2033
+ var N = arguments;
2034
+ return q.toProxyWindow(c, {
1998
2035
  send: w
1999
2036
  }).awaitWindow().then(function(R) {
2000
- var T = at(R, h);
2037
+ var T = ut(R, h);
2001
2038
  if (T && T.val !== P)
2002
2039
  return T.val.apply({
2003
2040
  source: window,
2004
- origin: L()
2005
- }, D);
2006
- var j = [].slice.call(D);
2041
+ origin: k()
2042
+ }, N);
2043
+ var j = [].slice.call(N);
2007
2044
  return b.fireAndForget ? w(R, "postrobot_method", {
2008
2045
  id: h,
2009
2046
  name: m,
2010
2047
  args: j
2011
2048
  }, {
2012
- domain: c,
2049
+ domain: u,
2013
2050
  fireAndForget: !0
2014
2051
  }) : w(R, "postrobot_method", {
2015
2052
  id: h,
2016
2053
  name: m,
2017
2054
  args: j
2018
2055
  }, {
2019
- domain: c,
2056
+ domain: u,
2020
2057
  fireAndForget: !1
2021
2058
  }).then(function(W) {
2022
2059
  return W.data.result;
@@ -2025,7 +2062,7 @@ var Pt = { exports: {} }, Tt = { exports: {} };
2025
2062
  throw R;
2026
2063
  });
2027
2064
  }
2028
- return P.__name__ = m, P.__origin__ = c, P.__source__ = u, P.__id__ = h, P.origin = c, P;
2065
+ return P.__name__ = m, P.__origin__ = u, P.__source__ = c, P.__id__ = h, P.origin = u, P;
2029
2066
  }, x = S();
2030
2067
  return x.fireAndForget = S({
2031
2068
  fireAndForget: !0
@@ -2034,33 +2071,33 @@ var Pt = { exports: {} }, Tt = { exports: {} };
2034
2071
  send: i
2035
2072
  });
2036
2073
  }, o.cross_domain_window = function(a) {
2037
- return B.deserialize(a, {
2074
+ return q.deserialize(a, {
2038
2075
  send: i
2039
2076
  });
2040
2077
  }, o));
2041
2078
  }
2042
- var Ae = {};
2043
- Ae.postrobot_post_message = function(e, n, t) {
2079
+ var De = {};
2080
+ De.postrobot_post_message = function(e, n, t) {
2044
2081
  t.indexOf("file:") === 0 && (t = "*"), e.postMessage(n, t);
2045
2082
  };
2046
2083
  function Ne(e, n, t, r) {
2047
2084
  var o = r.on, i = r.send;
2048
- return I.try(function() {
2049
- var a = k().getOrSet(e, function() {
2085
+ return C.try(function() {
2086
+ var a = U().getOrSet(e, function() {
2050
2087
  return {};
2051
2088
  });
2052
- return a.buffer = a.buffer || [], a.buffer.push(t), a.flush = a.flush || I.flush().then(function() {
2053
- if ($(e))
2089
+ return a.buffer = a.buffer || [], a.buffer.push(t), a.flush = a.flush || C.flush().then(function() {
2090
+ if (G(e))
2054
2091
  throw new Error("Window is closed");
2055
- var u = ct(e, n, ((c = {}).__post_robot_10_0_46__ = a.buffer || [], c), {
2092
+ var c = dt(e, n, ((u = {}).__post_robot_10_0_46__ = a.buffer || [], u), {
2056
2093
  on: o,
2057
2094
  send: i
2058
- }), c;
2095
+ }), u;
2059
2096
  delete a.buffer;
2060
- for (var s = Object.keys(Ae), p = [], h = 0; h < s.length; h++) {
2097
+ for (var s = Object.keys(De), p = [], h = 0; h < s.length; h++) {
2061
2098
  var m = s[h];
2062
2099
  try {
2063
- Ae[m](e, u, n);
2100
+ De[m](e, c, n);
2064
2101
  } catch (w) {
2065
2102
  p.push(w);
2066
2103
  }
@@ -2078,25 +2115,25 @@ var Pt = { exports: {} }, Tt = { exports: {} };
2078
2115
  });
2079
2116
  }).then(te);
2080
2117
  }
2081
- function dt(e) {
2118
+ function lt(e) {
2082
2119
  return z("responseListeners").get(e);
2083
2120
  }
2084
- function ft(e) {
2121
+ function ht(e) {
2085
2122
  z("responseListeners").del(e);
2086
2123
  }
2087
- function lt(e) {
2124
+ function mt(e) {
2088
2125
  return z("erroredResponseListeners").has(e);
2089
2126
  }
2090
- function ht(e) {
2091
- var n = e.name, t = e.win, r = e.domain, o = k("requestListeners");
2127
+ function pt(e) {
2128
+ var n = e.name, t = e.win, r = e.domain, o = U("requestListeners");
2092
2129
  if (t === "*" && (t = null), r === "*" && (r = null), !n)
2093
2130
  throw new Error("Name required to get request listener");
2094
2131
  for (var i = 0, a = [t, xe()]; i < a.length; i++) {
2095
- var u = a[i];
2096
- if (u) {
2097
- var c = o.get(u);
2098
- if (c) {
2099
- var s = c[n];
2132
+ var c = a[i];
2133
+ if (c) {
2134
+ var u = o.get(c);
2135
+ if (u) {
2136
+ var s = u[n];
2100
2137
  if (s) {
2101
2138
  if (r && typeof r == "string") {
2102
2139
  if (s[r])
@@ -2116,18 +2153,18 @@ var Pt = { exports: {} }, Tt = { exports: {} };
2116
2153
  }
2117
2154
  }
2118
2155
  function Bt(e, n, t, r) {
2119
- var o = r.on, i = r.send, a = ht({
2156
+ var o = r.on, i = r.send, a = pt({
2120
2157
  name: t.name,
2121
2158
  win: e,
2122
2159
  domain: n
2123
- }), u = t.name === "postrobot_method" && t.data && typeof t.data.name == "string" ? t.data.name + "()" : t.name;
2124
- function c(s, p, h) {
2125
- return I.flush().then(function() {
2126
- if (!t.fireAndForget && !$(e))
2160
+ }), c = t.name === "postrobot_method" && t.data && typeof t.data.name == "string" ? t.data.name + "()" : t.name;
2161
+ function u(s, p, h) {
2162
+ return C.flush().then(function() {
2163
+ if (!t.fireAndForget && !G(e))
2127
2164
  try {
2128
2165
  return Ne(e, n, {
2129
2166
  id: Y(),
2130
- origin: L(window),
2167
+ origin: k(window),
2131
2168
  type: "postrobot_message_response",
2132
2169
  hash: t.hash,
2133
2170
  name: t.name,
@@ -2139,18 +2176,18 @@ var Pt = { exports: {} }, Tt = { exports: {} };
2139
2176
  send: i
2140
2177
  });
2141
2178
  } catch (m) {
2142
- throw new Error("Send response message failed for " + u + " in " + L() + `
2179
+ throw new Error("Send response message failed for " + c + " in " + k() + `
2143
2180
 
2144
2181
  ` + de(m));
2145
2182
  }
2146
2183
  });
2147
2184
  }
2148
- return I.all([I.flush().then(function() {
2149
- if (!t.fireAndForget && !$(e))
2185
+ return C.all([C.flush().then(function() {
2186
+ if (!t.fireAndForget && !G(e))
2150
2187
  try {
2151
2188
  return Ne(e, n, {
2152
2189
  id: Y(),
2153
- origin: L(window),
2190
+ origin: k(window),
2154
2191
  type: "postrobot_message_ack",
2155
2192
  hash: t.hash,
2156
2193
  name: t.name
@@ -2159,11 +2196,11 @@ var Pt = { exports: {} }, Tt = { exports: {} };
2159
2196
  send: i
2160
2197
  });
2161
2198
  } catch (s) {
2162
- throw new Error("Send ack message failed for " + u + " in " + L() + `
2199
+ throw new Error("Send ack message failed for " + c + " in " + k() + `
2163
2200
 
2164
2201
  ` + de(s));
2165
2202
  }
2166
- }), I.try(function() {
2203
+ }), C.try(function() {
2167
2204
  if (!a)
2168
2205
  throw new Error("No handler found for post message: " + t.name + " from " + n + " in " + window.location.protocol + "//" + window.location.host + window.location.pathname);
2169
2206
  return a.handler({
@@ -2172,9 +2209,9 @@ var Pt = { exports: {} }, Tt = { exports: {} };
2172
2209
  data: t.data
2173
2210
  });
2174
2211
  }).then(function(s) {
2175
- return c("success", s);
2212
+ return u("success", s);
2176
2213
  }, function(s) {
2177
- return c("error", null, s);
2214
+ return u("error", null, s);
2178
2215
  })]).then(te).catch(function(s) {
2179
2216
  if (a && a.handleError)
2180
2217
  return a.handleError(s);
@@ -2182,8 +2219,8 @@ var Pt = { exports: {} }, Tt = { exports: {} };
2182
2219
  });
2183
2220
  }
2184
2221
  function Gt(e, n, t) {
2185
- if (!lt(t.hash)) {
2186
- var r = dt(t.hash);
2222
+ if (!mt(t.hash)) {
2223
+ var r = lt(t.hash);
2187
2224
  if (!r)
2188
2225
  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);
2189
2226
  try {
@@ -2198,8 +2235,8 @@ var Pt = { exports: {} }, Tt = { exports: {} };
2198
2235
  }
2199
2236
  }
2200
2237
  function $t(e, n, t) {
2201
- if (!lt(t.hash)) {
2202
- var r = dt(t.hash);
2238
+ if (!mt(t.hash)) {
2239
+ var r = lt(t.hash);
2203
2240
  if (!r)
2204
2241
  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);
2205
2242
  if (!re(r.domain, n))
@@ -2207,14 +2244,14 @@ var Pt = { exports: {} }, Tt = { exports: {} };
2207
2244
  var o;
2208
2245
  if (e !== r.win)
2209
2246
  throw new Error("Response source does not match registered window");
2210
- ft(t.hash), t.ack === "error" ? r.promise.reject(t.error) : t.ack === "success" && r.promise.resolve({
2247
+ ht(t.hash), t.ack === "error" ? r.promise.reject(t.error) : t.ack === "success" && r.promise.resolve({
2211
2248
  source: e,
2212
2249
  origin: n,
2213
2250
  data: t.data
2214
2251
  });
2215
2252
  }
2216
2253
  }
2217
- function mt(e, n) {
2254
+ function vt(e, n) {
2218
2255
  var t = n.on, r = n.send, o = z("receivedMessages");
2219
2256
  try {
2220
2257
  if (!window || window.closed || !e.source)
@@ -2222,14 +2259,14 @@ var Pt = { exports: {} }, Tt = { exports: {} };
2222
2259
  } catch (p) {
2223
2260
  return;
2224
2261
  }
2225
- var i = e.source, a = e.origin, u = function(p, h, m, w) {
2262
+ var i = e.source, a = e.origin, c = function(p, h, m, w) {
2226
2263
  var S = w.on, x = w.send, b;
2227
2264
  try {
2228
- b = ut(h, m, p, {
2265
+ b = ft(h, m, p, {
2229
2266
  on: S,
2230
2267
  send: x
2231
2268
  });
2232
- } catch (D) {
2269
+ } catch (N) {
2233
2270
  return;
2234
2271
  }
2235
2272
  if (b && typeof b == "object" && b !== null) {
@@ -2241,11 +2278,11 @@ var Pt = { exports: {} }, Tt = { exports: {} };
2241
2278
  on: t,
2242
2279
  send: r
2243
2280
  });
2244
- if (u) {
2245
- rt(i);
2246
- for (var c = 0; c < u.length; c++) {
2247
- var s = u[c];
2248
- if (o.has(s.id) || (o.set(s.id, !0), $(i) && !s.fireAndForget))
2281
+ if (c) {
2282
+ it(i);
2283
+ for (var u = 0; u < c.length; u++) {
2284
+ var s = c[u];
2285
+ if (o.has(s.id) || (o.set(s.id, !0), G(i) && !s.fireAndForget))
2249
2286
  return;
2250
2287
  s.origin.indexOf("file:") === 0 && (a = "file://");
2251
2288
  try {
@@ -2261,19 +2298,19 @@ var Pt = { exports: {} }, Tt = { exports: {} };
2261
2298
  }
2262
2299
  }
2263
2300
  }
2264
- function X(e, n, t) {
2301
+ function V(e, n, t) {
2265
2302
  if (!e)
2266
2303
  throw new Error("Expected name");
2267
2304
  if (typeof (n = n || {}) == "function" && (t = n, n = {}), !t)
2268
2305
  throw new Error("Expected handler");
2269
2306
  var r = function o(i, a) {
2270
- var u = i.name, c = i.win, s = i.domain, p = k("requestListeners");
2271
- if (!u || typeof u != "string")
2307
+ var c = i.name, u = i.win, s = i.domain, p = U("requestListeners");
2308
+ if (!c || typeof c != "string")
2272
2309
  throw new Error("Name required to add request listener");
2273
- if (c && c !== "*" && B.isProxyWindow(c)) {
2274
- var h = c.awaitWindow().then(function(A) {
2310
+ if (u && u !== "*" && q.isProxyWindow(u)) {
2311
+ var h = u.awaitWindow().then(function(A) {
2275
2312
  return o({
2276
- name: u,
2313
+ name: c,
2277
2314
  win: A,
2278
2315
  domain: s
2279
2316
  }, a);
@@ -2286,11 +2323,11 @@ var Pt = { exports: {} }, Tt = { exports: {} };
2286
2323
  }
2287
2324
  };
2288
2325
  }
2289
- var m = c;
2326
+ var m = u;
2290
2327
  if (Array.isArray(m)) {
2291
2328
  for (var w = [], S = 0, x = m; S < x.length; S++)
2292
2329
  w.push(o({
2293
- name: u,
2330
+ name: c,
2294
2331
  domain: s,
2295
2332
  win: x[S]
2296
2333
  }, a));
@@ -2302,11 +2339,11 @@ var Pt = { exports: {} }, Tt = { exports: {} };
2302
2339
  };
2303
2340
  }
2304
2341
  if (Array.isArray(s)) {
2305
- for (var b = [], P = 0, D = s; P < D.length; P++)
2342
+ for (var b = [], P = 0, N = s; P < N.length; P++)
2306
2343
  b.push(o({
2307
- name: u,
2344
+ name: c,
2308
2345
  win: m,
2309
- domain: D[P]
2346
+ domain: N[P]
2310
2347
  }, a));
2311
2348
  return {
2312
2349
  cancel: function() {
@@ -2315,28 +2352,28 @@ var Pt = { exports: {} }, Tt = { exports: {} };
2315
2352
  }
2316
2353
  };
2317
2354
  }
2318
- var R = ht({
2319
- name: u,
2355
+ var R = pt({
2356
+ name: c,
2320
2357
  win: m,
2321
2358
  domain: s
2322
2359
  });
2323
2360
  m && m !== "*" || (m = xe());
2324
2361
  var T = (s = s || "*").toString();
2325
2362
  if (R)
2326
- throw m && s ? new Error("Request listener already exists for " + u + " on domain " + s.toString() + " for " + (m === xe() ? "wildcard" : "specified") + " window") : m ? new Error("Request listener already exists for " + u + " for " + (m === xe() ? "wildcard" : "specified") + " window") : s ? new Error("Request listener already exists for " + u + " on domain " + s.toString()) : new Error("Request listener already exists for " + u);
2363
+ throw m && s ? new Error("Request listener already exists for " + c + " on domain " + s.toString() + " for " + (m === xe() ? "wildcard" : "specified") + " window") : m ? new Error("Request listener already exists for " + c + " for " + (m === xe() ? "wildcard" : "specified") + " window") : s ? new Error("Request listener already exists for " + c + " on domain " + s.toString()) : new Error("Request listener already exists for " + c);
2327
2364
  var j = p.getOrSet(m, function() {
2328
2365
  return {};
2329
- }), W = fe(j, u, function() {
2366
+ }), W = fe(j, c, function() {
2330
2367
  return {};
2331
- }), O, _;
2332
- return Ie(s) ? (O = fe(W, "__domain_regex__", function() {
2368
+ }), O, $;
2369
+ return Pe(s) ? (O = fe(W, "__domain_regex__", function() {
2333
2370
  return [];
2334
- })).push(_ = {
2371
+ })).push($ = {
2335
2372
  regex: s,
2336
2373
  listener: a
2337
2374
  }) : W[T] = a, {
2338
2375
  cancel: function() {
2339
- delete W[T], _ && (O.splice(O.indexOf(_, 1)), O.length || delete W.__domain_regex__), Object.keys(W).length || delete j[u], m && !Object.keys(j).length && p.del(m);
2376
+ delete W[T], $ && (O.splice(O.indexOf($, 1)), O.length || delete W.__domain_regex__), Object.keys(W).length || delete j[c], m && !Object.keys(j).length && p.del(m);
2340
2377
  }
2341
2378
  };
2342
2379
  }({
@@ -2357,29 +2394,29 @@ var Pt = { exports: {} }, Tt = { exports: {} };
2357
2394
  }
2358
2395
  function _t(e, n, t) {
2359
2396
  typeof (n = n || {}) == "function" && (t = n, n = {});
2360
- var r = new I(), o;
2397
+ var r = new C(), o;
2361
2398
  return n.errorHandler = function(i) {
2362
2399
  o.cancel(), r.reject(i);
2363
- }, o = X(e, n, function(i) {
2400
+ }, o = V(e, n, function(i) {
2364
2401
  if (o.cancel(), r.resolve(i), t)
2365
2402
  return t(i);
2366
2403
  }), r.cancel = o.cancel, r;
2367
2404
  }
2368
- var K = function e(n, t, r, o) {
2369
- var i = (o = o || {}).domain || "*", a = o.timeout || -1, u = o.timeout || 5e3, c = o.fireAndForget || !1;
2370
- return B.toProxyWindow(n, {
2405
+ var X = function e(n, t, r, o) {
2406
+ var i = (o = o || {}).domain || "*", a = o.timeout || -1, c = o.timeout || 5e3, u = o.fireAndForget || !1;
2407
+ return q.toProxyWindow(n, {
2371
2408
  send: e
2372
2409
  }).awaitWindow().then(function(s) {
2373
- return I.try(function() {
2410
+ return C.try(function() {
2374
2411
  if (function(p, h, m) {
2375
2412
  if (!p)
2376
2413
  throw new Error("Expected name");
2377
- if (m && typeof m != "string" && !Array.isArray(m) && !Ie(m))
2414
+ if (m && typeof m != "string" && !Array.isArray(m) && !Pe(m))
2378
2415
  throw new TypeError("Can not send " + p + ". Expected domain " + JSON.stringify(m) + " to be a string, array, or regex");
2379
- if ($(h))
2416
+ if (G(h))
2380
2417
  throw new Error("Can not send " + p + ". Target window is closed");
2381
2418
  }(t, s, i), function(p, h) {
2382
- var m = Ue(h);
2419
+ var m = Be(h);
2383
2420
  if (m)
2384
2421
  return m === p;
2385
2422
  if (h === p || function(x) {
@@ -2389,39 +2426,39 @@ var Pt = { exports: {} }, Tt = { exports: {} };
2389
2426
  return x.top;
2390
2427
  } catch (R) {
2391
2428
  }
2392
- if (G(x) === x)
2429
+ if (B(x) === x)
2393
2430
  return x;
2394
2431
  try {
2395
- if (He(window, x) && window.top)
2432
+ if (Fe(window, x) && window.top)
2396
2433
  return window.top;
2397
2434
  } catch (R) {
2398
2435
  }
2399
2436
  try {
2400
- if (He(x, window) && window.top)
2437
+ if (Fe(x, window) && window.top)
2401
2438
  return window.top;
2402
2439
  } catch (R) {
2403
2440
  }
2404
2441
  for (var b = 0, P = function R(T) {
2405
- for (var j = [], W = 0, O = Fe(T); W < O.length; W++) {
2406
- var _ = O[W];
2407
- j.push(_);
2408
- for (var A = 0, he = R(_); A < he.length; A++)
2442
+ for (var j = [], W = 0, O = qe(T); W < O.length; W++) {
2443
+ var $ = O[W];
2444
+ j.push($);
2445
+ for (var A = 0, he = R($); A < he.length; A++)
2409
2446
  j.push(he[A]);
2410
2447
  }
2411
2448
  return j;
2412
2449
  }(x); b < P.length; b++) {
2413
- var D = P[b];
2450
+ var N = P[b];
2414
2451
  try {
2415
- if (D.top)
2416
- return D.top;
2452
+ if (N.top)
2453
+ return N.top;
2417
2454
  } catch (R) {
2418
2455
  }
2419
- if (G(D) === D)
2420
- return D;
2456
+ if (B(N) === N)
2457
+ return N;
2421
2458
  }
2422
2459
  }(h) === h)
2423
2460
  return !1;
2424
- for (var w = 0, S = Fe(p); w < S.length; w++)
2461
+ for (var w = 0, S = qe(p); w < S.length; w++)
2425
2462
  if (S[w] === h)
2426
2463
  return !0;
2427
2464
  return !1;
@@ -2429,25 +2466,25 @@ var Pt = { exports: {} }, Tt = { exports: {} };
2429
2466
  return function(p, h, m) {
2430
2467
  h === void 0 && (h = 5e3), m === void 0 && (m = "Window");
2431
2468
  var w = function(S) {
2432
- return k("helloPromises").getOrSet(S, function() {
2433
- return new I();
2469
+ return U("helloPromises").getOrSet(S, function() {
2470
+ return new C();
2434
2471
  });
2435
2472
  }(p);
2436
2473
  return h !== -1 && (w = w.timeout(h, new Error(m + " did not load after " + h + "ms"))), w;
2437
- }(s, u);
2474
+ }(s, c);
2438
2475
  }).then(function(p) {
2439
2476
  return function(h, m, w, S) {
2440
2477
  var x = S.send;
2441
- return I.try(function() {
2442
- return typeof m == "string" ? m : I.try(function() {
2443
- return w || Pe(h, {
2478
+ return C.try(function() {
2479
+ return typeof m == "string" ? m : C.try(function() {
2480
+ return w || Te(h, {
2444
2481
  send: x
2445
2482
  }).then(function(b) {
2446
2483
  return b.domain;
2447
2484
  });
2448
2485
  }).then(function(b) {
2449
2486
  if (!re(m, m))
2450
- throw new Error("Domain " + Ze(m) + " does not match " + Ze(m));
2487
+ throw new Error("Domain " + Ve(m) + " does not match " + Ve(m));
2451
2488
  return b;
2452
2489
  });
2453
2490
  });
@@ -2455,8 +2492,8 @@ var Pt = { exports: {} }, Tt = { exports: {} };
2455
2492
  send: e
2456
2493
  });
2457
2494
  }).then(function(p) {
2458
- var h = p, m = t === "postrobot_method" && r && typeof r.name == "string" ? r.name + "()" : t, w = new I(), S = t + "_" + Y();
2459
- if (!c) {
2495
+ var h = p, m = t === "postrobot_method" && r && typeof r.name == "string" ? r.name + "()" : t, w = new C(), S = t + "_" + Y();
2496
+ if (!u) {
2460
2497
  var x = {
2461
2498
  name: t,
2462
2499
  win: s,
@@ -2466,31 +2503,31 @@ var Pt = { exports: {} }, Tt = { exports: {} };
2466
2503
  (function(W, O) {
2467
2504
  z("responseListeners").set(W, O);
2468
2505
  })(S, x);
2469
- var b = k("requestPromises").getOrSet(s, function() {
2506
+ var b = U("requestPromises").getOrSet(s, function() {
2470
2507
  return [];
2471
2508
  });
2472
2509
  b.push(w), w.catch(function() {
2473
2510
  (function(W) {
2474
2511
  z("erroredResponseListeners").set(W, !0);
2475
- })(S), ft(S);
2512
+ })(S), ht(S);
2476
2513
  });
2477
2514
  var P = function(W) {
2478
- return k("knownWindows").get(W, !1);
2479
- }(s) ? 1e4 : 2e3, D = a, R = P, T = D, j = function(W, O) {
2480
- var _;
2515
+ return U("knownWindows").get(W, !1);
2516
+ }(s) ? 1e4 : 2e3, N = a, R = P, T = N, j = function(W, O) {
2517
+ var $;
2481
2518
  return function A() {
2482
- _ = setTimeout(function() {
2519
+ $ = setTimeout(function() {
2483
2520
  (function() {
2484
- if ($(s))
2521
+ if (G(s))
2485
2522
  return w.reject(new Error("Window closed for " + t + " before " + (x.ack ? "response" : "ack")));
2486
2523
  if (x.cancelled)
2487
2524
  return w.reject(new Error("Response listener was cancelled for " + t));
2488
- R = Math.max(R - 500, 0), T !== -1 && (T = Math.max(T - 500, 0)), x.ack || R !== 0 ? T === 0 && w.reject(new Error("No response for postMessage " + m + " in " + L() + " in " + D + "ms")) : w.reject(new Error("No ack for postMessage " + m + " in " + L() + " in " + P + "ms"));
2525
+ R = Math.max(R - 500, 0), T !== -1 && (T = Math.max(T - 500, 0)), x.ack || R !== 0 ? T === 0 && w.reject(new Error("No response for postMessage " + m + " in " + k() + " in " + N + "ms")) : w.reject(new Error("No ack for postMessage " + m + " in " + k() + " in " + P + "ms"));
2489
2526
  })(), A();
2490
2527
  }, 500);
2491
2528
  }(), {
2492
2529
  cancel: function() {
2493
- clearTimeout(_);
2530
+ clearTimeout($);
2494
2531
  }
2495
2532
  };
2496
2533
  }();
@@ -2500,75 +2537,75 @@ var Pt = { exports: {} }, Tt = { exports: {} };
2500
2537
  }
2501
2538
  return Ne(s, h, {
2502
2539
  id: Y(),
2503
- origin: L(window),
2540
+ origin: k(window),
2504
2541
  type: "postrobot_message_request",
2505
2542
  hash: S,
2506
2543
  name: t,
2507
2544
  data: r,
2508
- fireAndForget: c
2545
+ fireAndForget: u
2509
2546
  }, {
2510
- on: X,
2547
+ on: V,
2511
2548
  send: e
2512
2549
  }).then(function() {
2513
- return c ? w.resolve() : w;
2550
+ return u ? w.resolve() : w;
2514
2551
  }, function(W) {
2515
- throw new Error("Send request message failed for " + m + " in " + L() + `
2552
+ throw new Error("Send request message failed for " + m + " in " + k() + `
2516
2553
 
2517
2554
  ` + de(W));
2518
2555
  });
2519
2556
  });
2520
2557
  });
2521
2558
  };
2522
- function qt(e, n, t) {
2523
- return ct(e, n, t, {
2524
- on: X,
2525
- send: K
2559
+ function Jt(e, n, t) {
2560
+ return dt(e, n, t, {
2561
+ on: V,
2562
+ send: X
2526
2563
  });
2527
2564
  }
2528
- function Jt(e, n, t) {
2529
- return ut(e, n, t, {
2530
- on: X,
2531
- send: K
2565
+ function Yt(e, n, t) {
2566
+ return ft(e, n, t, {
2567
+ on: V,
2568
+ send: X
2532
2569
  });
2533
2570
  }
2534
- function Yt(e) {
2535
- return new B({
2536
- send: K,
2571
+ function Zt(e) {
2572
+ return new q({
2573
+ send: X,
2537
2574
  win: e
2538
2575
  });
2539
2576
  }
2540
- function Zt(e) {
2541
- return B.toProxyWindow(e, {
2542
- send: K
2577
+ function Kt(e) {
2578
+ return q.toProxyWindow(e, {
2579
+ send: X
2543
2580
  });
2544
2581
  }
2545
- function pt() {
2582
+ function wt() {
2546
2583
  le().initialized || (le().initialized = !0, n = (e = {
2547
- on: X,
2548
- send: K
2584
+ on: V,
2585
+ send: X
2549
2586
  }).on, t = e.send, (r = le()).receiveMessage = r.receiveMessage || function(o) {
2550
- return mt(o, {
2587
+ return vt(o, {
2551
2588
  on: n,
2552
2589
  send: t
2553
2590
  });
2554
2591
  }, function(o) {
2555
2592
  var i = o.on, a = o.send;
2556
2593
  z().getOrSet("postMessageListener", function() {
2557
- return function(u, c, s) {
2558
- return u.addEventListener("message", s), {
2594
+ return function(c, u, s) {
2595
+ return c.addEventListener("message", s), {
2559
2596
  cancel: function() {
2560
- u.removeEventListener("message", s);
2597
+ c.removeEventListener("message", s);
2561
2598
  }
2562
2599
  };
2563
- }(window, 0, function(u) {
2564
- (function(c, s) {
2600
+ }(window, 0, function(c) {
2601
+ (function(u, s) {
2565
2602
  var p = s.on, h = s.send;
2566
- I.try(function() {
2567
- var m = c.source || c.sourceElement, w = c.origin || c.originalEvent && c.originalEvent.origin, S = c.data;
2603
+ C.try(function() {
2604
+ var m = u.source || u.sourceElement, w = u.origin || u.originalEvent && u.originalEvent.origin, S = u.data;
2568
2605
  if (w === "null" && (w = "file://"), m) {
2569
2606
  if (!w)
2570
2607
  throw new Error("Post message did not have origin domain");
2571
- mt({
2608
+ vt({
2572
2609
  source: m,
2573
2610
  origin: w,
2574
2611
  data: S
@@ -2578,35 +2615,35 @@ var Pt = { exports: {} }, Tt = { exports: {} };
2578
2615
  });
2579
2616
  }
2580
2617
  });
2581
- })(u, {
2618
+ })(c, {
2582
2619
  on: i,
2583
2620
  send: a
2584
2621
  });
2585
2622
  });
2586
2623
  });
2587
2624
  }({
2588
- on: X,
2589
- send: K
2625
+ on: V,
2626
+ send: X
2590
2627
  }), function(o) {
2591
2628
  var i = o.on, a = o.send;
2592
2629
  z("builtinListeners").getOrSet("helloListener", function() {
2593
- var u = i("postrobot_hello", {
2630
+ var c = i("postrobot_hello", {
2594
2631
  domain: "*"
2595
2632
  }, function(s) {
2596
- return tt(s.source, {
2633
+ return rt(s.source, {
2597
2634
  domain: s.origin
2598
2635
  }), {
2599
- instanceID: et()
2636
+ instanceID: nt()
2600
2637
  };
2601
- }), c = Ue();
2602
- return c && Pe(c, {
2638
+ }), u = Be();
2639
+ return u && Te(u, {
2603
2640
  send: a
2604
2641
  }).catch(function(s) {
2605
- }), u;
2642
+ }), c;
2606
2643
  });
2607
2644
  }({
2608
- on: X,
2609
- send: K
2645
+ on: V,
2646
+ send: X
2610
2647
  }));
2611
2648
  var e, n, t, r;
2612
2649
  }
@@ -2621,27 +2658,28 @@ var Pt = { exports: {} }, Tt = { exports: {} };
2621
2658
  delete window.__post_robot_10_0_46__;
2622
2659
  }
2623
2660
  var Xt = !0;
2624
- function Kt(e) {
2625
- for (var n = 0, t = k("requestPromises").get(e, []); n < t.length; n++)
2626
- t[n].reject(new Error("Window " + ($(e) ? "closed" : "cleaned up") + " before response")).catch(te);
2661
+ function Qt(e) {
2662
+ for (var n = 0, t = U("requestPromises").get(e, []); n < t.length; n++)
2663
+ t[n].reject(new Error("Window " + (G(e) ? "closed" : "cleaned up") + " before response")).catch(te);
2627
2664
  }
2628
- pt();
2665
+ wt();
2629
2666
  }]);
2630
2667
  });
2668
+ })(Rt);
2669
+ var Un = Rt.exports;
2670
+ (function(f) {
2671
+ f.exports = Un, f.exports.default = f.exports;
2631
2672
  })(Tt);
2632
- var Mn = Tt.exports;
2633
- (function(l) {
2634
- l.exports = Mn, l.exports.default = l.exports;
2635
- })(Pt);
2636
- var Rt = Pt.exports;
2637
- const Ln = /* @__PURE__ */ jn(Rt), ke = /* @__PURE__ */ rn({
2673
+ var Ot = Tt.exports;
2674
+ const Hn = /* @__PURE__ */ kn(Ot), He = /* @__PURE__ */ an({
2638
2675
  __proto__: null,
2639
- default: Ln
2640
- }, [Rt]);
2676
+ default: Hn
2677
+ }, [Ot]);
2641
2678
  export {
2642
- Hn as ConsentBox,
2643
- Fn as SoyioTypes,
2644
- Un as SoyioWidget,
2645
- Sn as _TooltipManager,
2646
- Un as default
2679
+ Ct as ConsentBox,
2680
+ qn as PrivacyCenterBox,
2681
+ Bn as SoyioTypes,
2682
+ Gn as SoyioWidget,
2683
+ sn as _TooltipManager,
2684
+ Gn as default
2647
2685
  };