wineater-bot 1.8.1 → 1.8.2

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.
@@ -1,4 +1,4 @@
1
- const Cn = `
1
+ const _n = `
2
2
  @font-face {
3
3
  font-family: 'Poppins';
4
4
  src: url('https://fonts.googleapis.com/css2?family=Poppins:wght@400&display=swap');
@@ -277,10 +277,10 @@ const Cn = `
277
277
  .typing-indicator.visible {
278
278
  visibility: visible;
279
279
  height: 50px;
280
- }`, Fs = document.createElement("style");
281
- Fs.textContent = Cn;
282
- document.head.appendChild(Fs);
283
- function Nn() {
280
+ }`, Us = document.createElement("style");
281
+ Us.textContent = _n;
282
+ document.head.appendChild(Us);
283
+ function On() {
284
284
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(t) {
285
285
  const e = Math.random() * 16 | 0;
286
286
  return (t === "x" ? e : e & 3 | 8).toString(16);
@@ -306,13 +306,13 @@ function j(t) {
306
306
  }
307
307
  return null;
308
308
  }
309
- function _n(t) {
309
+ function Rn(t) {
310
310
  document.cookie = t + "=; Max-Age=-99999999;";
311
311
  }
312
- function On() {
312
+ function Dn() {
313
313
  const t = "uniqueUserID";
314
314
  let e = j(t);
315
- return e || (e = Nn(), Pe(t, e, 365)), e;
315
+ return e || (e = On(), Pe(t, e, 365)), e;
316
316
  }
317
317
  function Se(t, e) {
318
318
  fetch("https://api.wineater.com/proxy/track", {
@@ -330,26 +330,26 @@ function Se(t, e) {
330
330
  console.error("Mixpanel tracking error", i);
331
331
  });
332
332
  }
333
- function Bs() {
333
+ function Hs() {
334
334
  Se("Chatbot Opened", { distinct_id: j("uniqueUserID"), client: j("chatbotToken") });
335
335
  }
336
- function Rn(t) {
336
+ function Mn(t) {
337
337
  Se("Chatbot Opened Auto", { distinct_id: j("uniqueUserID"), url: t, client: j("chatbotToken") });
338
338
  }
339
- function Us() {
339
+ function js() {
340
340
  Se("Chatbot Closed", { distinct_id: j("uniqueUserID"), client: j("chatbotToken") });
341
341
  }
342
- function Dn(t) {
342
+ function An(t) {
343
343
  Se("Message Sent", { distinct_id: j("uniqueUserID"), message_content: t, client: j("chatbotToken") });
344
344
  }
345
- function Mn(t) {
345
+ function Ln(t) {
346
346
  Se("Products Got", { distinct_id: j("uniqueUserID"), products: t, client: j("chatbotToken") });
347
347
  }
348
- function An(t) {
348
+ function Pn(t) {
349
349
  Se("Product Clicked", { distinct_id: j("uniqueUserID"), product_id: t, client: j("chatbotToken") });
350
350
  }
351
- var Gt = {}, Ln = function(t, e, s, n, i) {
352
- var r = new Worker(Gt[e] || (Gt[e] = URL.createObjectURL(new Blob([
351
+ var Xt = {}, Fn = function(t, e, s, n, i) {
352
+ var r = new Worker(Xt[e] || (Xt[e] = URL.createObjectURL(new Blob([
353
353
  t + ';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'
354
354
  ], { type: "text/javascript" }))));
355
355
  return r.onmessage = function(o) {
@@ -429,16 +429,16 @@ var Gt = {}, Ln = function(t, e, s, n, i) {
429
429
  /* unused */
430
430
  0,
431
431
  0
432
- ]), gt = new $([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), Hs = function(t, e) {
432
+ ]), pt = new $([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), zs = function(t, e) {
433
433
  for (var s = new z(31), n = 0; n < 31; ++n)
434
434
  s[n] = e += 1 << t[n - 1];
435
435
  for (var i = new Xe(s[30]), n = 1; n < 30; ++n)
436
436
  for (var r = s[n]; r < s[n + 1]; ++r)
437
437
  i[r] = r - s[n] << 5 | n;
438
438
  return { b: s, r: i };
439
- }, js = Hs(Ge, 2), Pn = js.b, Fe = js.r;
440
- Pn[28] = 258, Fe[258] = 28;
441
- var Fn = Hs(Ke, 0), mt = Fn.r, Be = new z(32768);
439
+ }, Ws = zs(Ge, 2), Bn = Ws.b, Fe = Ws.r;
440
+ Bn[28] = 258, Fe[258] = 28;
441
+ var Un = zs(Ke, 0), gt = Un.r, Be = new z(32768);
442
442
  for (var L = 0; L < 32768; ++L) {
443
443
  var te = (L & 43690) >> 1 | (L & 21845) << 1;
444
444
  te = (te & 52428) >> 2 | (te & 13107) << 2, te = (te & 61680) >> 4 | (te & 3855) << 4, Be[L] = ((te & 65280) >> 8 | (te & 255) << 8) >> 1;
@@ -473,11 +473,11 @@ for (var L = 280; L < 288; ++L)
473
473
  var Ie = new $(32);
474
474
  for (var L = 0; L < 32; ++L)
475
475
  Ie[L] = 5;
476
- var zs = /* @__PURE__ */ me(ie, 9, 0), Ws = /* @__PURE__ */ me(Ie, 5, 0), Dt = function(t) {
476
+ var qs = /* @__PURE__ */ me(ie, 9, 0), $s = /* @__PURE__ */ me(Ie, 5, 0), Rt = function(t) {
477
477
  return (t + 7) / 8 | 0;
478
- }, qs = function(t, e, s) {
478
+ }, Vs = function(t, e, s) {
479
479
  return (e == null || e < 0) && (e = 0), (s == null || s > t.length) && (s = t.length), new $(t.subarray(e, s));
480
- }, Bn = [
480
+ }, Hn = [
481
481
  "unexpected EOF",
482
482
  "invalid block type",
483
483
  "invalid length/literal",
@@ -493,9 +493,9 @@ var zs = /* @__PURE__ */ me(ie, 9, 0), Ws = /* @__PURE__ */ me(Ie, 5, 0), Dt = f
493
493
  "stream finishing",
494
494
  "invalid zip data"
495
495
  // determined by unknown compression method
496
- ], $s = function(t, e, s) {
497
- var n = new Error(e || Bn[t]);
498
- if (n.code = t, Error.captureStackTrace && Error.captureStackTrace(n, $s), !s)
496
+ ], Xs = function(t, e, s) {
497
+ var n = new Error(e || Hn[t]);
498
+ if (n.code = t, Error.captureStackTrace && Error.captureStackTrace(n, Xs), !s)
499
499
  throw n;
500
500
  return n;
501
501
  }, K = function(t, e, s) {
@@ -511,13 +511,13 @@ var zs = /* @__PURE__ */ me(ie, 9, 0), Ws = /* @__PURE__ */ me(Ie, 5, 0), Dt = f
511
511
  t[n] && s.push({ s: n, f: t[n] });
512
512
  var i = s.length, r = s.slice();
513
513
  if (!i)
514
- return { t: At, l: 0 };
514
+ return { t: Mt, l: 0 };
515
515
  if (i == 1) {
516
516
  var o = new $(s[0].s + 1);
517
517
  return o[s[0].s] = 1, { t: o, l: 1 };
518
518
  }
519
- s.sort(function(v, k) {
520
- return v.f - k.f;
519
+ s.sort(function(w, k) {
520
+ return w.f - k.f;
521
521
  }), s.push({ s: -1, f: 25001 });
522
522
  var l = s[0], a = s[1], h = 0, c = 1, u = 2;
523
523
  for (s[0] = { s: -1, f: l.f + a.f, l, r: a }; c != i - 1; )
@@ -549,7 +549,7 @@ var zs = /* @__PURE__ */ me(ie, 9, 0), Ws = /* @__PURE__ */ me(Ie, 5, 0), Dt = f
549
549
  return { t: new $(f), l: g };
550
550
  }, Ue = function(t, e, s) {
551
551
  return t.s == -1 ? Math.max(Ue(t.l, e, s + 1), Ue(t.r, e, s + 1)) : e[t.s] = s;
552
- }, bt = function(t) {
552
+ }, mt = function(t) {
553
553
  for (var e = t.length; e && !t[--e]; )
554
554
  ;
555
555
  for (var s = new z(++e), n = 0, i = t[0], r = 1, o = function(a) {
@@ -576,38 +576,38 @@ var zs = /* @__PURE__ */ me(ie, 9, 0), Ws = /* @__PURE__ */ me(Ie, 5, 0), Dt = f
576
576
  for (var s = 0, n = 0; n < e.length; ++n)
577
577
  s += t[n] * e[n];
578
578
  return s;
579
- }, Mt = function(t, e, s) {
580
- var n = s.length, i = Dt(e + 2);
579
+ }, Dt = function(t, e, s) {
580
+ var n = s.length, i = Rt(e + 2);
581
581
  t[i] = n & 255, t[i + 1] = n >> 8, t[i + 2] = t[i] ^ 255, t[i + 3] = t[i + 1] ^ 255;
582
582
  for (var r = 0; r < n; ++r)
583
583
  t[i + r + 4] = s[r];
584
584
  return (i + 4 + n) * 8;
585
- }, yt = function(t, e, s, n, i, r, o, l, a, h, c) {
585
+ }, bt = function(t, e, s, n, i, r, o, l, a, h, c) {
586
586
  K(e, c++, s), ++i[256];
587
- for (var u = De(i, 15), d = u.t, f = u.l, g = De(r, 15), p = g.t, y = g.l, E = bt(d), N = E.c, T = E.n, m = bt(p), v = m.c, k = m.n, x = new z(19), S = 0; S < N.length; ++S)
587
+ for (var u = De(i, 15), d = u.t, f = u.l, g = De(r, 15), p = g.t, y = g.l, E = mt(d), N = E.c, T = E.n, m = mt(p), w = m.c, k = m.n, x = new z(19), S = 0; S < N.length; ++S)
588
588
  ++x[N[S] & 31];
589
- for (var S = 0; S < v.length; ++S)
590
- ++x[v[S] & 31];
591
- for (var b = De(x, 7), _ = b.t, M = b.l, O = 19; O > 4 && !_[gt[O - 1]]; --O)
589
+ for (var S = 0; S < w.length; ++S)
590
+ ++x[w[S] & 31];
591
+ for (var b = De(x, 7), _ = b.t, M = b.l, O = 19; O > 4 && !_[pt[O - 1]]; --O)
592
592
  ;
593
- var D = h + 5 << 3, w = pe(i, ie) + pe(r, Ie) + o, I = pe(i, d) + pe(r, p) + o + 14 + 3 * O + pe(x, _) + 2 * x[16] + 3 * x[17] + 7 * x[18];
594
- if (a >= 0 && D <= w && D <= I)
595
- return Mt(e, c, t.subarray(a, a + h));
593
+ var D = h + 5 << 3, v = pe(i, ie) + pe(r, Ie) + o, I = pe(i, d) + pe(r, p) + o + 14 + 3 * O + pe(x, _) + 2 * x[16] + 3 * x[17] + 7 * x[18];
594
+ if (a >= 0 && D <= v && D <= I)
595
+ return Dt(e, c, t.subarray(a, a + h));
596
596
  var A, P, R, U;
597
- if (K(e, c, 1 + (I < w)), c += 2, I < w) {
597
+ if (K(e, c, 1 + (I < v)), c += 2, I < v) {
598
598
  A = me(d, f, 0), P = d, R = me(p, y, 0), U = p;
599
599
  var Qe = me(_, M, 0);
600
600
  K(e, c, T - 257), K(e, c + 5, k - 1), K(e, c + 10, O - 4), c += 14;
601
601
  for (var S = 0; S < O; ++S)
602
- K(e, c + 3 * S, _[gt[S]]);
602
+ K(e, c + 3 * S, _[pt[S]]);
603
603
  c += 3 * O;
604
- for (var X = [N, v], ve = 0; ve < 2; ++ve)
605
- for (var ce = X[ve], S = 0; S < ce.length; ++S) {
604
+ for (var X = [N, w], we = 0; we < 2; ++we)
605
+ for (var ce = X[we], S = 0; S < ce.length; ++S) {
606
606
  var G = ce[S] & 31;
607
607
  K(e, c, Qe[G]), c += _[G], G > 15 && (K(e, c, ce[S] >> 5 & 127), c += ce[S] >> 12);
608
608
  }
609
609
  } else
610
- A = zs, P = ie, R = Ws, U = Ie;
610
+ A = qs, P = ie, R = $s, U = Ie;
611
611
  for (var S = 0; S < l; ++S) {
612
612
  var H = n[S];
613
613
  if (H > 255) {
@@ -619,92 +619,92 @@ var zs = /* @__PURE__ */ me(ie, 9, 0), Ws = /* @__PURE__ */ me(Ie, 5, 0), Dt = f
619
619
  fe(e, c, A[H]), c += P[H];
620
620
  }
621
621
  return fe(e, c, A[256]), c + P[256];
622
- }, Vs = /* @__PURE__ */ new Xe([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), At = /* @__PURE__ */ new $(0), Xs = function(t, e, s, n, i, r) {
622
+ }, Gs = /* @__PURE__ */ new Xe([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), Mt = /* @__PURE__ */ new $(0), Ks = function(t, e, s, n, i, r) {
623
623
  var o = r.z || t.length, l = new $(n + o + 5 * (1 + Math.ceil(o / 7e3)) + i), a = l.subarray(n, l.length - i), h = r.l, c = (r.r || 0) & 7;
624
624
  if (e) {
625
625
  c && (a[0] = r.r >> 3);
626
- for (var u = Vs[e - 1], d = u >> 13, f = u & 8191, g = (1 << s) - 1, p = r.p || new z(32768), y = r.h || new z(g + 1), E = Math.ceil(s / 3), N = 2 * E, T = function(tt) {
626
+ for (var u = Gs[e - 1], d = u >> 13, f = u & 8191, g = (1 << s) - 1, p = r.p || new z(32768), y = r.h || new z(g + 1), E = Math.ceil(s / 3), N = 2 * E, T = function(tt) {
627
627
  return (t[tt] ^ t[tt + 1] << E ^ t[tt + 2] << N) & g;
628
- }, m = new Xe(25e3), v = new z(288), k = new z(32), x = 0, S = 0, b = r.i || 0, _ = 0, M = r.w || 0, O = 0; b + 2 < o; ++b) {
629
- var D = T(b), w = b & 32767, I = y[D];
630
- if (p[w] = I, y[D] = w, M <= b) {
628
+ }, m = new Xe(25e3), w = new z(288), k = new z(32), x = 0, S = 0, b = r.i || 0, _ = 0, M = r.w || 0, O = 0; b + 2 < o; ++b) {
629
+ var D = T(b), v = b & 32767, I = y[D];
630
+ if (p[v] = I, y[D] = v, M <= b) {
631
631
  var A = o - b;
632
632
  if ((x > 7e3 || _ > 24576) && (A > 423 || !h)) {
633
- c = yt(t, a, 0, m, v, k, S, _, O, b - O, c), _ = x = S = 0, O = b;
633
+ c = bt(t, a, 0, m, w, k, S, _, O, b - O, c), _ = x = S = 0, O = b;
634
634
  for (var P = 0; P < 286; ++P)
635
- v[P] = 0;
635
+ w[P] = 0;
636
636
  for (var P = 0; P < 30; ++P)
637
637
  k[P] = 0;
638
638
  }
639
- var R = 2, U = 0, Qe = f, X = w - I & 32767;
639
+ var R = 2, U = 0, Qe = f, X = v - I & 32767;
640
640
  if (A > 2 && D == T(b - X))
641
- for (var ve = Math.min(d, A) - 1, ce = Math.min(32767, b), G = Math.min(258, A); X <= ce && --Qe && w != I; ) {
641
+ for (var we = Math.min(d, A) - 1, ce = Math.min(32767, b), G = Math.min(258, A); X <= ce && --Qe && v != I; ) {
642
642
  if (t[b + R] == t[b + R - X]) {
643
643
  for (var H = 0; H < G && t[b + H] == t[b + H - X]; ++H)
644
644
  ;
645
645
  if (H > R) {
646
- if (R = H, U = X, H > ve)
646
+ if (R = H, U = X, H > we)
647
647
  break;
648
- for (var le = Math.min(X, H - 2), qt = 0, P = 0; P < le; ++P) {
649
- var Ze = b - X + P & 32767, En = p[Ze], $t = Ze - En & 32767;
650
- $t > qt && (qt = $t, I = Ze);
648
+ for (var le = Math.min(X, H - 2), Wt = 0, P = 0; P < le; ++P) {
649
+ var Ze = b - X + P & 32767, Nn = p[Ze], qt = Ze - Nn & 32767;
650
+ qt > Wt && (Wt = qt, I = Ze);
651
651
  }
652
652
  }
653
653
  }
654
- w = I, I = p[w], X += w - I & 32767;
654
+ v = I, I = p[v], X += v - I & 32767;
655
655
  }
656
656
  if (U) {
657
- m[_++] = 268435456 | Fe[R] << 18 | mt[U];
658
- var Vt = Fe[R] & 31, Xt = mt[U] & 31;
659
- S += Ge[Vt] + Ke[Xt], ++v[257 + Vt], ++k[Xt], M = b + R, ++x;
657
+ m[_++] = 268435456 | Fe[R] << 18 | gt[U];
658
+ var $t = Fe[R] & 31, Vt = gt[U] & 31;
659
+ S += Ge[$t] + Ke[Vt], ++w[257 + $t], ++k[Vt], M = b + R, ++x;
660
660
  } else
661
- m[_++] = t[b], ++v[t[b]];
661
+ m[_++] = t[b], ++w[t[b]];
662
662
  }
663
663
  }
664
664
  for (b = Math.max(b, M); b < o; ++b)
665
- m[_++] = t[b], ++v[t[b]];
666
- c = yt(t, a, h, m, v, k, S, _, O, b - O, c), h || (r.r = c & 7 | a[c / 8 | 0] << 3, c -= 7, r.h = y, r.p = p, r.i = b, r.w = M);
665
+ m[_++] = t[b], ++w[t[b]];
666
+ c = bt(t, a, h, m, w, k, S, _, O, b - O, c), h || (r.r = c & 7 | a[c / 8 | 0] << 3, c -= 7, r.h = y, r.p = p, r.i = b, r.w = M);
667
667
  } else {
668
668
  for (var b = r.w || 0; b < o + h; b += 65535) {
669
669
  var et = b + 65535;
670
- et >= o && (a[c / 8 | 0] = h, et = o), c = Mt(a, c + 1, t.subarray(b, et));
670
+ et >= o && (a[c / 8 | 0] = h, et = o), c = Dt(a, c + 1, t.subarray(b, et));
671
671
  }
672
672
  r.i = o;
673
673
  }
674
- return qs(l, 0, n + Dt(c) + i);
675
- }, Gs = /* @__PURE__ */ function() {
674
+ return Vs(l, 0, n + Rt(c) + i);
675
+ }, Js = /* @__PURE__ */ function() {
676
676
  for (var t = new Int32Array(256), e = 0; e < 256; ++e) {
677
677
  for (var s = e, n = 9; --n; )
678
678
  s = (s & 1 && -306674912) ^ s >>> 1;
679
679
  t[e] = s;
680
680
  }
681
681
  return t;
682
- }(), Ks = function() {
682
+ }(), Ys = function() {
683
683
  var t = -1;
684
684
  return {
685
685
  p: function(e) {
686
686
  for (var s = t, n = 0; n < e.length; ++n)
687
- s = Gs[s & 255 ^ e[n]] ^ s >>> 8;
687
+ s = Js[s & 255 ^ e[n]] ^ s >>> 8;
688
688
  t = s;
689
689
  },
690
690
  d: function() {
691
691
  return ~t;
692
692
  }
693
693
  };
694
- }, Lt = function(t, e, s, n, i) {
694
+ }, At = function(t, e, s, n, i) {
695
695
  if (!i && (i = { l: 1 }, e.dictionary)) {
696
696
  var r = e.dictionary.subarray(-32768), o = new $(r.length + t.length);
697
697
  o.set(r), o.set(t, r.length), t = o, i.w = r.length;
698
698
  }
699
- return Xs(t, e.level == null ? 6 : e.level, e.mem == null ? i.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(t.length))) * 1.5) : 20 : 12 + e.mem, s, n, i);
700
- }, Un = function(t, e) {
699
+ return Ks(t, e.level == null ? 6 : e.level, e.mem == null ? i.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(t.length))) * 1.5) : 20 : 12 + e.mem, s, n, i);
700
+ }, jn = function(t, e) {
701
701
  var s = {};
702
702
  for (var n in t)
703
703
  s[n] = t[n];
704
704
  for (var n in e)
705
705
  s[n] = e[n];
706
706
  return s;
707
- }, Kt = function(t, e, s) {
707
+ }, Gt = function(t, e, s) {
708
708
  for (var n = t(), i = t.toString(), r = i.slice(i.indexOf("[") + 1, i.lastIndexOf("]")).replace(/\s+/g, "").split(","), o = 0; o < n.length; ++o) {
709
709
  var l = n[o], a = r[o];
710
710
  if (typeof l == "function") {
@@ -725,27 +725,27 @@ var zs = /* @__PURE__ */ me(ie, 9, 0), Ws = /* @__PURE__ */ me(Ie, 5, 0), Dt = f
725
725
  s[a] = l;
726
726
  }
727
727
  return e;
728
- }, xe = [], Hn = function(t) {
728
+ }, xe = [], zn = function(t) {
729
729
  var e = [];
730
730
  for (var s in t)
731
731
  t[s].buffer && e.push((t[s] = new t[s].constructor(t[s])).buffer);
732
732
  return e;
733
- }, jn = function(t, e, s, n) {
733
+ }, Wn = function(t, e, s, n) {
734
734
  if (!xe[s]) {
735
735
  for (var i = "", r = {}, o = t.length - 1, l = 0; l < o; ++l)
736
- i = Kt(t[l], i, r);
737
- xe[s] = { c: Kt(t[o], i, r), e: r };
738
- }
739
- var a = Un({}, xe[s].e);
740
- return Ln(xe[s].c + ";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage=" + e.toString() + "}", s, a, Hn(a), n);
741
- }, zn = function() {
742
- return [$, z, Xe, Ge, Ke, gt, Fe, mt, zs, ie, Ws, Ie, Be, Vs, At, me, K, fe, De, Ue, bt, pe, Mt, yt, Dt, qs, Xs, Lt, $n, Js];
743
- }, Wn = function() {
744
- return [Ys, Qs, He, Ks, Gs];
745
- }, Js = function(t) {
736
+ i = Gt(t[l], i, r);
737
+ xe[s] = { c: Gt(t[o], i, r), e: r };
738
+ }
739
+ var a = jn({}, xe[s].e);
740
+ return Fn(xe[s].c + ";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage=" + e.toString() + "}", s, a, zn(a), n);
741
+ }, qn = function() {
742
+ return [$, z, Xe, Ge, Ke, pt, Fe, gt, qs, ie, $s, Ie, Be, Gs, Mt, me, K, fe, De, Ue, mt, pe, Dt, bt, Rt, Vs, Ks, At, Xn, Qs];
743
+ }, $n = function() {
744
+ return [Zs, en, He, Ys, Js];
745
+ }, Qs = function(t) {
746
746
  return postMessage(t, [t.buffer]);
747
- }, qn = function(t, e, s, n, i, r) {
748
- var o = jn(s, n, i, function(l, a) {
747
+ }, Vn = function(t, e, s, n, i, r) {
748
+ var o = Wn(s, n, i, function(l, a) {
749
749
  o.terminate(), r(l, a);
750
750
  });
751
751
  return o.postMessage([t, e], e.consume ? [t.buffer] : []), function() {
@@ -754,43 +754,43 @@ var zs = /* @__PURE__ */ me(ie, 9, 0), Ws = /* @__PURE__ */ me(Ie, 5, 0), Dt = f
754
754
  }, He = function(t, e, s) {
755
755
  for (; s; ++e)
756
756
  t[e] = s, s >>>= 8;
757
- }, Ys = function(t, e) {
757
+ }, Zs = function(t, e) {
758
758
  var s = e.filename;
759
759
  if (t[0] = 31, t[1] = 139, t[2] = 8, t[8] = e.level < 2 ? 4 : e.level == 9 ? 2 : 0, t[9] = 3, e.mtime != 0 && He(t, 4, Math.floor(new Date(e.mtime || Date.now()) / 1e3)), s) {
760
760
  t[3] = 8;
761
761
  for (var n = 0; n <= s.length; ++n)
762
762
  t[n + 10] = s.charCodeAt(n);
763
763
  }
764
- }, Qs = function(t) {
764
+ }, en = function(t) {
765
765
  return 10 + (t.filename ? t.filename.length + 1 : 0);
766
766
  };
767
- function $n(t, e) {
768
- return Lt(t, e || {}, 0, 0);
767
+ function Xn(t, e) {
768
+ return At(t, e || {}, 0, 0);
769
769
  }
770
- function Vn(t, e, s) {
771
- return s || (s = e, e = {}), typeof s != "function" && $s(7), qn(t, e, [
772
- zn,
773
- Wn,
770
+ function Gn(t, e, s) {
771
+ return s || (s = e, e = {}), typeof s != "function" && Xs(7), Vn(t, e, [
772
+ qn,
773
+ $n,
774
774
  function() {
775
- return [Jt];
775
+ return [Kt];
776
776
  }
777
777
  ], function(n) {
778
- return Js(Jt(n.data[0], n.data[1]));
778
+ return Qs(Kt(n.data[0], n.data[1]));
779
779
  }, 2, s);
780
780
  }
781
- function Jt(t, e) {
781
+ function Kt(t, e) {
782
782
  e || (e = {});
783
- var s = Ks(), n = t.length;
783
+ var s = Ys(), n = t.length;
784
784
  s.p(t);
785
- var i = Lt(t, e, Qs(e), 8), r = i.length;
786
- return Ys(i, e), He(i, r - 8, s.d()), He(i, r - 4, n), i;
785
+ var i = At(t, e, en(e), 8), r = i.length;
786
+ return Zs(i, e), He(i, r - 8, s.d()), He(i, r - 4, n), i;
787
787
  }
788
- var Xn = typeof TextDecoder < "u" && /* @__PURE__ */ new TextDecoder(), Gn = 0;
788
+ var Kn = typeof TextDecoder < "u" && /* @__PURE__ */ new TextDecoder(), Jn = 0;
789
789
  try {
790
- Xn.decode(At, { stream: !0 }), Gn = 1;
790
+ Kn.decode(Mt, { stream: !0 }), Jn = 1;
791
791
  } catch {
792
792
  }
793
- class Yt {
793
+ class Jt {
794
794
  constructor() {
795
795
  this.idx = 1, this.backDict = {};
796
796
  }
@@ -799,9 +799,9 @@ class Yt {
799
799
  return this.backDict[e] || (s = !0, this.backDict[e] = this.idx++), [this.backDict[e], s];
800
800
  }
801
801
  }
802
- class Kn {
802
+ class Yn {
803
803
  constructor(e, s) {
804
- this.app = e, this.isDictDisabled = s, this.dict = new Yt();
804
+ this.app = e, this.isDictDisabled = s, this.dict = new Jt();
805
805
  }
806
806
  sendSetAttribute(e, s, n) {
807
807
  if (this.isDictDisabled) {
@@ -822,14 +822,14 @@ class Kn {
822
822
  return n && this.app.send([50, s, e]), s;
823
823
  }
824
824
  clear() {
825
- this.dict = new Yt();
825
+ this.dict = new Jt();
826
826
  }
827
827
  }
828
- class Jn {
828
+ class Qn {
829
829
  constructor(e, s) {
830
830
  this.app = e, this.startParams = s, this.conditions = [], this.hasStarted = !1, this.createConditionFromFilter = (n) => {
831
831
  if (n.value.length) {
832
- const i = Yn(n);
832
+ const i = Zn(n);
833
833
  if (i.type)
834
834
  return i;
835
835
  }
@@ -972,7 +972,7 @@ const he = {
972
972
  greaterOrEqual: (t, e) => t >= e,
973
973
  lessOrEqual: (t, e) => t <= e,
974
974
  lessThan: (t, e) => t < e
975
- }, Yn = (t) => {
975
+ }, Zn = (t) => {
976
976
  const e = {
977
977
  on: "is",
978
978
  notOn: "isNot",
@@ -1080,7 +1080,7 @@ const he = {
1080
1080
  }
1081
1081
  return n;
1082
1082
  };
1083
- class Qn {
1083
+ class ei {
1084
1084
  constructor(e) {
1085
1085
  this.app = e, this.flags = [], this.storageKey = "__openreplay_flags";
1086
1086
  const s = this.app.sessionStorage.getItem(this.storageKey);
@@ -1151,71 +1151,71 @@ class Qn {
1151
1151
  return e.filter((r) => i.findIndex((o) => o.key === r.key) === -1);
1152
1152
  }
1153
1153
  }
1154
- const Qt = { htmlmasked: "hidden", masked: "obscured" }, Z = !(typeof window > "u"), Zn = Z && navigator.userAgent.match(/firefox|fxios/i), ei = 1e5;
1155
- let Pt = Z ? Date.now() - performance.now() : 0;
1154
+ const Yt = { htmlmasked: "hidden", masked: "obscured" }, Z = !(typeof window > "u"), ti = Z && navigator.userAgent.match(/firefox|fxios/i), si = 1e5;
1155
+ let Lt = Z ? Date.now() - performance.now() : 0;
1156
1156
  function st() {
1157
- Pt = Date.now() - performance.now();
1157
+ Lt = Date.now() - performance.now();
1158
1158
  }
1159
1159
  function ye() {
1160
- return Pt;
1160
+ return Lt;
1161
1161
  }
1162
- const V = Z && performance.now ? () => Math.round(performance.now() + Pt) : () => Date.now(), nt = "repeat" in String.prototype ? (t) => "*".repeat(t.length) : (t) => t.replace(/./g, "*");
1163
- function Zs(t) {
1162
+ const V = Z && performance.now ? () => Math.round(performance.now() + Lt) : () => Date.now(), nt = "repeat" in String.prototype ? (t) => "*".repeat(t.length) : (t) => t.replace(/./g, "*");
1163
+ function tn(t) {
1164
1164
  return t.trim().replace(/\s+/g, " ");
1165
1165
  }
1166
- function en(t) {
1166
+ function sn(t) {
1167
1167
  return t.startsWith("https://") || t.startsWith("http://");
1168
1168
  }
1169
- const je = "https://docs.openreplay.com", Zt = {};
1169
+ const je = "https://docs.openreplay.com", Qt = {};
1170
1170
  function ne(t, e, s = "/") {
1171
- Zt[t] || (console.warn(`OpenReplay: ${t} is deprecated. ${e ? `Please, use ${e} instead.` : ""} Visit ${je}${s} for more information.`), Zt[t] = !0);
1171
+ Qt[t] || (console.warn(`OpenReplay: ${t} is deprecated. ${e ? `Please, use ${e} instead.` : ""} Visit ${je}${s} for more information.`), Qt[t] = !0);
1172
1172
  }
1173
- function Ft(t) {
1173
+ function Pt(t) {
1174
1174
  let e = t.getAttribute("data-openreplay-label");
1175
1175
  return e !== null || (e = t.getAttribute("data-asayer-label"), e !== null && ne('"data-asayer-label" attribute', '"data-openreplay-label" attribute', "/")), e;
1176
1176
  }
1177
1177
  function ae(t, e) {
1178
1178
  const s = `data-openreplay-${e}`;
1179
- return t.hasAttribute(s) ? (Qt[e] && ne(
1179
+ return t.hasAttribute(s) ? (Yt[e] && ne(
1180
1180
  `"${s}" attribute`,
1181
1181
  // @ts-ignore
1182
- `"${Qt[e]}" attribute`,
1182
+ `"${Yt[e]}" attribute`,
1183
1183
  "/installation/sanitize-data"
1184
1184
  ), !0) : !1;
1185
1185
  }
1186
- function ti(t) {
1186
+ function ni(t) {
1187
1187
  try {
1188
1188
  return !!t.contentDocument;
1189
1189
  } catch {
1190
1190
  return !1;
1191
1191
  }
1192
1192
  }
1193
- function es(t) {
1193
+ function Zt(t) {
1194
1194
  return t.toString(16).padStart(2, "0");
1195
1195
  }
1196
- function si(t) {
1196
+ function ii(t) {
1197
1197
  const e = new Uint8Array((t || 40) / 2), s = window.crypto || window.msCrypto;
1198
- return s ? (s.getRandomValues(e), Array.from(e, es).join("")) : Array.from({ length: t || 40 }, () => es(Math.floor(Math.random() * 16))).join("");
1198
+ return s ? (s.getRandomValues(e), Array.from(e, Zt).join("")) : Array.from({ length: t || 40 }, () => Zt(Math.floor(Math.random() * 16))).join("");
1199
1199
  }
1200
- function ni() {
1200
+ function ri() {
1201
1201
  try {
1202
1202
  return window.self && window.top && window.self !== window.top;
1203
1203
  } catch {
1204
1204
  return !0;
1205
1205
  }
1206
1206
  }
1207
- function Bt(t) {
1207
+ function Ft(t) {
1208
1208
  return window.Zone && "__symbol__" in window.Zone ? (
1209
1209
  // @ts-ignore
1210
1210
  window.Zone.__symbol__(t)
1211
1211
  ) : t;
1212
1212
  }
1213
- function tn(t) {
1214
- const e = Bt("MutationObserver");
1213
+ function nn(t) {
1214
+ const e = Ft("MutationObserver");
1215
1215
  return new window[e](t);
1216
1216
  }
1217
- function sn(t, e, s, n) {
1218
- const i = Bt("addEventListener");
1217
+ function rn(t, e, s, n) {
1218
+ const i = Ft("addEventListener");
1219
1219
  try {
1220
1220
  t[i](e, s, n);
1221
1221
  } catch (r) {
@@ -1226,8 +1226,8 @@ function sn(t, e, s, n) {
1226
1226
  );
1227
1227
  }
1228
1228
  }
1229
- function nn(t, e, s, n) {
1230
- const i = Bt("removeEventListener");
1229
+ function on(t, e, s, n) {
1230
+ const i = Ft("removeEventListener");
1231
1231
  try {
1232
1232
  t[i](e, s, n);
1233
1233
  } catch (r) {
@@ -1238,7 +1238,7 @@ function nn(t, e, s, n) {
1238
1238
  );
1239
1239
  }
1240
1240
  }
1241
- class ii {
1241
+ class oi {
1242
1242
  constructor() {
1243
1243
  this.taskQueue = [], this.isRunning = !1;
1244
1244
  }
@@ -1264,16 +1264,16 @@ class ii {
1264
1264
  e();
1265
1265
  }
1266
1266
  }
1267
- const ri = new ii();
1268
- function oi(t) {
1269
- ri.addTask(t);
1267
+ const ai = new oi();
1268
+ function ci(t) {
1269
+ ai.addTask(t);
1270
1270
  }
1271
- function rn(t, e) {
1271
+ function an(t, e) {
1272
1272
  const s = { ...t };
1273
1273
  for (const n in e)
1274
1274
  if (e.hasOwnProperty(n)) {
1275
1275
  const i = e[n], r = t[n];
1276
- typeof i == "object" && !Array.isArray(i) && i !== null ? s[n] = rn(r || {}, i) : s[n] = i;
1276
+ typeof i == "object" && !Array.isArray(i) && i !== null ? s[n] = an(r || {}, i) : s[n] = i;
1277
1277
  }
1278
1278
  return s;
1279
1279
  }
@@ -1283,26 +1283,26 @@ function re(t) {
1283
1283
  t
1284
1284
  ];
1285
1285
  }
1286
- function ai(t, e) {
1286
+ function li(t, e) {
1287
1287
  return [
1288
1288
  5,
1289
1289
  t,
1290
1290
  e
1291
1291
  ];
1292
1292
  }
1293
- function ci(t, e) {
1293
+ function hi(t, e) {
1294
1294
  return [
1295
1295
  6,
1296
1296
  t,
1297
1297
  e
1298
1298
  ];
1299
1299
  }
1300
- function li() {
1300
+ function ui() {
1301
1301
  return [
1302
1302
  7
1303
1303
  ];
1304
1304
  }
1305
- function hi(t, e, s, n, i) {
1305
+ function di(t, e, s, n, i) {
1306
1306
  return [
1307
1307
  8,
1308
1308
  t,
@@ -1312,7 +1312,7 @@ function hi(t, e, s, n, i) {
1312
1312
  i
1313
1313
  ];
1314
1314
  }
1315
- function ui(t, e, s) {
1315
+ function fi(t, e, s) {
1316
1316
  return [
1317
1317
  9,
1318
1318
  t,
@@ -1320,7 +1320,7 @@ function ui(t, e, s) {
1320
1320
  s
1321
1321
  ];
1322
1322
  }
1323
- function di(t, e, s) {
1323
+ function pi(t, e, s) {
1324
1324
  return [
1325
1325
  10,
1326
1326
  t,
@@ -1328,27 +1328,27 @@ function di(t, e, s) {
1328
1328
  s
1329
1329
  ];
1330
1330
  }
1331
- function fi(t) {
1331
+ function gi(t) {
1332
1332
  return [
1333
1333
  11,
1334
1334
  t
1335
1335
  ];
1336
1336
  }
1337
- function ts(t, e) {
1337
+ function es(t, e) {
1338
1338
  return [
1339
1339
  13,
1340
1340
  t,
1341
1341
  e
1342
1342
  ];
1343
1343
  }
1344
- function pi(t, e) {
1344
+ function mi(t, e) {
1345
1345
  return [
1346
1346
  14,
1347
1347
  t,
1348
1348
  e
1349
1349
  ];
1350
1350
  }
1351
- function gi(t, e, s) {
1351
+ function bi(t, e, s) {
1352
1352
  return [
1353
1353
  16,
1354
1354
  t,
@@ -1356,7 +1356,7 @@ function gi(t, e, s) {
1356
1356
  s
1357
1357
  ];
1358
1358
  }
1359
- function mi(t, e, s) {
1359
+ function yi(t, e, s) {
1360
1360
  return [
1361
1361
  18,
1362
1362
  t,
@@ -1364,28 +1364,28 @@ function mi(t, e, s) {
1364
1364
  s
1365
1365
  ];
1366
1366
  }
1367
- function bi(t, e) {
1367
+ function Si(t, e) {
1368
1368
  return [
1369
1369
  19,
1370
1370
  t,
1371
1371
  e
1372
1372
  ];
1373
1373
  }
1374
- function yi(t, e) {
1374
+ function wi(t, e) {
1375
1375
  return [
1376
1376
  20,
1377
1377
  t,
1378
1378
  e
1379
1379
  ];
1380
1380
  }
1381
- function Si(t, e) {
1381
+ function vi(t, e) {
1382
1382
  return [
1383
1383
  22,
1384
1384
  t,
1385
1385
  e
1386
1386
  ];
1387
1387
  }
1388
- function vi(t, e, s, n, i, r, o, l, a) {
1388
+ function ki(t, e, s, n, i, r, o, l, a) {
1389
1389
  return [
1390
1390
  23,
1391
1391
  t,
@@ -1399,7 +1399,7 @@ function vi(t, e, s, n, i, r, o, l, a) {
1399
1399
  a
1400
1400
  ];
1401
1401
  }
1402
- function wi(t, e, s) {
1402
+ function Ti(t, e, s) {
1403
1403
  return [
1404
1404
  24,
1405
1405
  t,
@@ -1407,33 +1407,33 @@ function wi(t, e, s) {
1407
1407
  s
1408
1408
  ];
1409
1409
  }
1410
- function ki(t, e) {
1410
+ function Ii(t, e) {
1411
1411
  return [
1412
1412
  27,
1413
1413
  t,
1414
1414
  e
1415
1415
  ];
1416
1416
  }
1417
- function Ti(t) {
1417
+ function xi(t) {
1418
1418
  return [
1419
1419
  28,
1420
1420
  t
1421
1421
  ];
1422
1422
  }
1423
- function Ii(t) {
1423
+ function Ei(t) {
1424
1424
  return [
1425
1425
  29,
1426
1426
  t
1427
1427
  ];
1428
1428
  }
1429
- function ss(t, e) {
1429
+ function ts(t, e) {
1430
1430
  return [
1431
1431
  30,
1432
1432
  t,
1433
1433
  e
1434
1434
  ];
1435
1435
  }
1436
- function xi(t, e, s, n) {
1436
+ function Ci(t, e, s, n) {
1437
1437
  return [
1438
1438
  49,
1439
1439
  t,
@@ -1442,20 +1442,20 @@ function xi(t, e, s, n) {
1442
1442
  n
1443
1443
  ];
1444
1444
  }
1445
- function Ei(t, e) {
1445
+ function Ni(t, e) {
1446
1446
  return [
1447
1447
  54,
1448
1448
  t,
1449
1449
  e
1450
1450
  ];
1451
1451
  }
1452
- function Ci(t) {
1452
+ function _i(t) {
1453
1453
  return [
1454
1454
  55,
1455
1455
  t
1456
1456
  ];
1457
1457
  }
1458
- function ns(t, e, s, n) {
1458
+ function ss(t, e, s, n) {
1459
1459
  return [
1460
1460
  57,
1461
1461
  t,
@@ -1464,13 +1464,13 @@ function ns(t, e, s, n) {
1464
1464
  n
1465
1465
  ];
1466
1466
  }
1467
- function is(t) {
1467
+ function ns(t) {
1468
1468
  return [
1469
1469
  58,
1470
1470
  t
1471
1471
  ];
1472
1472
  }
1473
- function St(t, e, s, n) {
1473
+ function yt(t, e, s, n) {
1474
1474
  return [
1475
1475
  60,
1476
1476
  t,
@@ -1479,7 +1479,7 @@ function St(t, e, s, n) {
1479
1479
  n
1480
1480
  ];
1481
1481
  }
1482
- function Ni(t, e, s) {
1482
+ function Oi(t, e, s) {
1483
1483
  return [
1484
1484
  61,
1485
1485
  t,
@@ -1487,21 +1487,21 @@ function Ni(t, e, s) {
1487
1487
  s
1488
1488
  ];
1489
1489
  }
1490
- function _i(t, e) {
1490
+ function Ri(t, e) {
1491
1491
  return [
1492
1492
  63,
1493
1493
  t,
1494
1494
  e
1495
1495
  ];
1496
1496
  }
1497
- function Oi(t, e) {
1497
+ function Di(t, e) {
1498
1498
  return [
1499
1499
  64,
1500
1500
  t,
1501
1501
  e
1502
1502
  ];
1503
1503
  }
1504
- function Ri(t, e, s, n, i, r) {
1504
+ function Mi(t, e, s, n, i, r) {
1505
1505
  return [
1506
1506
  68,
1507
1507
  t,
@@ -1512,14 +1512,14 @@ function Ri(t, e, s, n, i, r) {
1512
1512
  r
1513
1513
  ];
1514
1514
  }
1515
- function vt(t, e) {
1515
+ function St(t, e) {
1516
1516
  return [
1517
1517
  70,
1518
1518
  t,
1519
1519
  e
1520
1520
  ];
1521
1521
  }
1522
- function rs(t, e, s) {
1522
+ function is(t, e, s) {
1523
1523
  return [
1524
1524
  71,
1525
1525
  t,
@@ -1536,28 +1536,28 @@ function wt(t, e, s, n) {
1536
1536
  n
1537
1537
  ];
1538
1538
  }
1539
- function os(t, e) {
1539
+ function rs(t, e) {
1540
1540
  return [
1541
1541
  75,
1542
1542
  t,
1543
1543
  e
1544
1544
  ];
1545
1545
  }
1546
- function on(t, e) {
1546
+ function cn(t, e) {
1547
1547
  return [
1548
1548
  76,
1549
1549
  t,
1550
1550
  e
1551
1551
  ];
1552
1552
  }
1553
- function Di(t, e) {
1553
+ function Ai(t, e) {
1554
1554
  return [
1555
1555
  77,
1556
1556
  t,
1557
1557
  e
1558
1558
  ];
1559
1559
  }
1560
- function kt(t, e, s, n) {
1560
+ function vt(t, e, s, n) {
1561
1561
  return [
1562
1562
  78,
1563
1563
  t,
@@ -1580,7 +1580,7 @@ function ze(t, e, s, n, i, r, o, l, a) {
1580
1580
  a
1581
1581
  ];
1582
1582
  }
1583
- function Mi(t, e, s, n, i, r) {
1583
+ function Li(t, e, s, n, i, r) {
1584
1584
  return [
1585
1585
  84,
1586
1586
  t,
@@ -1591,7 +1591,7 @@ function Mi(t, e, s, n, i, r) {
1591
1591
  r
1592
1592
  ];
1593
1593
  }
1594
- function Ai(t, e, s, n, i, r) {
1594
+ function Pi(t, e, s, n, i, r) {
1595
1595
  return [
1596
1596
  112,
1597
1597
  t,
@@ -1602,7 +1602,7 @@ function Ai(t, e, s, n, i, r) {
1602
1602
  r
1603
1603
  ];
1604
1604
  }
1605
- function as(t, e, s) {
1605
+ function os(t, e, s) {
1606
1606
  return [
1607
1607
  113,
1608
1608
  t,
@@ -1610,19 +1610,19 @@ function as(t, e, s) {
1610
1610
  s
1611
1611
  ];
1612
1612
  }
1613
- function Li(t) {
1613
+ function Fi(t) {
1614
1614
  return [
1615
1615
  114,
1616
1616
  t
1617
1617
  ];
1618
1618
  }
1619
- function Pi(t) {
1619
+ function Bi(t) {
1620
1620
  return [
1621
1621
  115,
1622
1622
  t
1623
1623
  ];
1624
1624
  }
1625
- function an(t, e, s, n, i, r, o, l, a, h) {
1625
+ function ln(t, e, s, n, i, r, o, l, a, h) {
1626
1626
  return [
1627
1627
  116,
1628
1628
  t,
@@ -1649,20 +1649,20 @@ function oe(t) {
1649
1649
  t
1650
1650
  ];
1651
1651
  }
1652
- function Fi(t, e) {
1652
+ function Ui(t, e) {
1653
1653
  return [
1654
1654
  119,
1655
1655
  t,
1656
1656
  e
1657
1657
  ];
1658
1658
  }
1659
- function Bi(t) {
1659
+ function Hi(t) {
1660
1660
  return [
1661
1661
  120,
1662
1662
  t
1663
1663
  ];
1664
1664
  }
1665
- function Ui(t, e, s, n) {
1665
+ function ji(t, e, s, n) {
1666
1666
  return [
1667
1667
  122,
1668
1668
  t,
@@ -1671,8 +1671,8 @@ function Ui(t, e, s, n) {
1671
1671
  n
1672
1672
  ];
1673
1673
  }
1674
- const Tt = Z && "performance" in window && "memory" in performance ? performance : { memory: {} }, it = Z ? (navigator.deviceMemory || 0) * 1024 : 0, rt = Tt.memory.jsHeapSizeLimit || 0;
1675
- function Hi(t, e) {
1674
+ const kt = Z && "performance" in window && "memory" in performance ? performance : { memory: {} }, it = Z ? (navigator.deviceMemory || 0) * 1024 : 0, rt = kt.memory.jsHeapSizeLimit || 0;
1675
+ function zi(t, e) {
1676
1676
  if (!Object.assign({
1677
1677
  capturePerformance: !0
1678
1678
  }, e).capturePerformance)
@@ -1685,7 +1685,7 @@ function Hi(t, e) {
1685
1685
  i === void 0 || i === -1 || i++;
1686
1686
  }, 0, !1);
1687
1687
  const o = () => {
1688
- n === void 0 || i === void 0 || (t.send(xi(n, i, Tt.memory.totalJSHeapSize || 0, Tt.memory.usedJSHeapSize || 0)), i = n = document.hidden ? -1 : 0);
1688
+ n === void 0 || i === void 0 || (t.send(Ci(n, i, kt.memory.totalJSHeapSize || 0, kt.memory.usedJSHeapSize || 0)), i = n = document.hidden ? -1 : 0);
1689
1689
  };
1690
1690
  t.attachStartCallback(() => {
1691
1691
  i = n = -1, o(), r();
@@ -1693,11 +1693,11 @@ function Hi(t, e) {
1693
1693
  i = n = void 0;
1694
1694
  }), t.ticker.attach(o, 40, !1), document.hidden !== void 0 && t.attachEventListener(document, "visibilitychange", o, !1, !1);
1695
1695
  }
1696
- const cs = "__or__watched_tags__";
1697
- class ji {
1696
+ const as = "__or__watched_tags__";
1697
+ class Wi {
1698
1698
  constructor(e, s, n) {
1699
1699
  this.sessionStorage = e, this.errLog = s, this.onTag = n, this.intervals = {}, this.tags = [];
1700
- const i = JSON.parse(e.getItem(cs) ?? "[]");
1700
+ const i = JSON.parse(e.getItem(as) ?? "[]");
1701
1701
  this.setTags(i), this.observer = new IntersectionObserver((r) => {
1702
1702
  r.forEach((o) => {
1703
1703
  if (o.isIntersecting && o.target) {
@@ -1717,7 +1717,7 @@ class ji {
1717
1717
  if (n && n.length) {
1718
1718
  this.setTags(n);
1719
1719
  const i = JSON.stringify(n);
1720
- this.sessionStorage.setItem(cs, i || "");
1720
+ this.sessionStorage.setItem(as, i || "");
1721
1721
  }
1722
1722
  }).catch((n) => this.errLog(n));
1723
1723
  }
@@ -1741,7 +1741,7 @@ class ji {
1741
1741
  }), this.tags = [], this.intervals = {}, this.observer.disconnect();
1742
1742
  }
1743
1743
  }
1744
- const zi = {
1744
+ const qi = {
1745
1745
  position: "fixed",
1746
1746
  top: 0,
1747
1747
  left: 0,
@@ -1753,7 +1753,7 @@ const zi = {
1753
1753
  justifyContent: "center",
1754
1754
  zIndex: 999999,
1755
1755
  fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
1756
- }, Wi = {
1756
+ }, $i = {
1757
1757
  display: "flex",
1758
1758
  flexDirection: "column",
1759
1759
  gap: "2rem",
@@ -1774,14 +1774,14 @@ const zi = {
1774
1774
  border: "1px solid #D9D9D9",
1775
1775
  background: "rgba(255, 255, 255, 0.75)",
1776
1776
  width: "22rem"
1777
- }, qi = {
1777
+ }, Vi = {
1778
1778
  fontFamily: "Verdana, sans-serif",
1779
1779
  fontSize: "1.25rem",
1780
1780
  fontStyle: "normal",
1781
1781
  fontWeight: "500",
1782
1782
  lineHeight: "1.75rem",
1783
1783
  color: "rgba(0, 0, 0, 0.85)"
1784
- }, $i = {
1784
+ }, Xi = {
1785
1785
  borderTop: "1px solid rgba(0, 0, 0, 0.06)",
1786
1786
  borderBottom: "1px solid rgba(0, 0, 0, 0.06)",
1787
1787
  padding: "1.25rem 0rem",
@@ -1792,7 +1792,7 @@ const zi = {
1792
1792
  fontWeight: "400",
1793
1793
  lineHeight: "auto",
1794
1794
  whiteSpace: "pre-wrap"
1795
- }, Vi = {
1795
+ }, Gi = {
1796
1796
  display: "flex",
1797
1797
  padding: "0.4rem 0.9375rem",
1798
1798
  justifyContent: "center",
@@ -1810,7 +1810,7 @@ const zi = {
1810
1810
  fontWeight: "500",
1811
1811
  lineHeight: "1.5rem",
1812
1812
  cursor: "pointer"
1813
- }, ls = {
1813
+ }, cs = {
1814
1814
  fontFamily: "Verdana, sans-serif",
1815
1815
  fontSize: "13px",
1816
1816
  fontWeight: "500",
@@ -1826,7 +1826,7 @@ const zi = {
1826
1826
  gap: "0.625rem",
1827
1827
  fontSize: "13px",
1828
1828
  lineHeight: "auto"
1829
- }, Xi = {
1829
+ }, Ki = {
1830
1830
  padding: "0.5rem",
1831
1831
  gap: "0.5rem",
1832
1832
  fontFamily: "Verdana, sans-serif",
@@ -1855,18 +1855,18 @@ const zi = {
1855
1855
  fontStyle: "normal",
1856
1856
  fontWeight: "400"
1857
1857
  // lineHeight: '1.375rem',
1858
- }, Gi = {
1858
+ }, Ji = {
1859
1859
  ...ge,
1860
1860
  display: "flex",
1861
1861
  flexDirection: "column",
1862
1862
  alignItems: "center",
1863
1863
  gap: "0.625rem"
1864
- }, hs = {
1864
+ }, ls = {
1865
1865
  fontSize: "1.25rem",
1866
1866
  fontWeight: "500",
1867
1867
  cursor: "pointer",
1868
1868
  color: "#394EFF"
1869
- }, us = {
1869
+ }, hs = {
1870
1870
  display: "flex",
1871
1871
  padding: "0.4rem 0.9375rem",
1872
1872
  justifyContent: "center",
@@ -1886,7 +1886,7 @@ const zi = {
1886
1886
  width: "100%",
1887
1887
  boxSizing: "border-box",
1888
1888
  cursor: "pointer"
1889
- }, ds = {
1889
+ }, us = {
1890
1890
  marginTop: "1rem",
1891
1891
  marginBottom: "1rem",
1892
1892
  cursor: "pointer",
@@ -1894,7 +1894,7 @@ const zi = {
1894
1894
  fontWeight: "500",
1895
1895
  fontSize: "13px!important",
1896
1896
  lineHeight: "auto"
1897
- }, Ki = {
1897
+ }, Yi = {
1898
1898
  display: "flex",
1899
1899
  justifyContent: "space-between",
1900
1900
  alignItems: "center",
@@ -1902,7 +1902,7 @@ const zi = {
1902
1902
  padding: "0.5rem",
1903
1903
  width: "100%",
1904
1904
  boxSizing: "border-box"
1905
- }, fs = {
1905
+ }, ds = {
1906
1906
  display: "flex",
1907
1907
  flexDirection: "column",
1908
1908
  alignItems: "center",
@@ -1912,7 +1912,7 @@ const zi = {
1912
1912
  fontSize: "13px",
1913
1913
  height: "24px",
1914
1914
  width: "24px"
1915
- }, Ji = {
1915
+ }, Qi = {
1916
1916
  display: "flex",
1917
1917
  flexDirection: "column",
1918
1918
  alignItems: "center",
@@ -1924,7 +1924,7 @@ const zi = {
1924
1924
  fontSize: "13px",
1925
1925
  height: "24px",
1926
1926
  width: "24px"
1927
- }, ps = {
1927
+ }, fs = {
1928
1928
  borderRadius: "0.375rem",
1929
1929
  border: "1px solid rgba(0, 0, 0, 0.06)",
1930
1930
  background: "#F5F7FF",
@@ -1934,12 +1934,12 @@ const zi = {
1934
1934
  padding: "0.625rem 0.9375rem",
1935
1935
  gap: "0.5rem",
1936
1936
  alignSelf: "stretch"
1937
- }, gs = {
1937
+ }, ps = {
1938
1938
  fontWeight: "bold"
1939
- }, Yi = {
1939
+ }, Zi = {
1940
1940
  fontSize: "13px",
1941
1941
  lineHeight: "auto"
1942
- }, cn = {
1942
+ }, hn = {
1943
1943
  marginRight: "0.5rem",
1944
1944
  cursor: "pointer",
1945
1945
  color: "#394EFF",
@@ -1949,8 +1949,8 @@ const zi = {
1949
1949
  fontStyle: "normal",
1950
1950
  fontWeight: "500",
1951
1951
  lineHeight: "auto"
1952
- }, Qi = {
1953
- ...cn,
1952
+ }, er = {
1953
+ ...hn,
1954
1954
  display: "flex",
1955
1955
  padding: "0.25rem 0.9375rem",
1956
1956
  justifyContent: "center",
@@ -1958,24 +1958,24 @@ const zi = {
1958
1958
  gap: "0.5rem",
1959
1959
  borderRadius: "0.25rem",
1960
1960
  border: "1px solid #394EFF"
1961
- }, Zi = {
1961
+ }, tr = {
1962
1962
  display: "flex",
1963
1963
  justifyContent: "space-between",
1964
1964
  alignItems: "center",
1965
1965
  width: "100%",
1966
1966
  boxSizing: "border-box"
1967
- }, er = {
1967
+ }, sr = {
1968
1968
  border: "4px solid rgba(255, 255, 255, 0.4)",
1969
1969
  width: "16px",
1970
1970
  height: "16px",
1971
1971
  borderRadius: "50%",
1972
1972
  borderLeftColor: "#fff",
1973
1973
  animation: "spin 0.5s linear infinite"
1974
- }, ms = {
1974
+ }, gs = {
1975
1975
  Standard: { width: 1280, height: 720 },
1976
1976
  High: { width: 1920, height: 1080 }
1977
1977
  };
1978
- class tr {
1978
+ class nr {
1979
1979
  constructor(e) {
1980
1980
  this.app = e, this.mediaRecorder = null, this.recordedChunks = [], this.stream = null, this.recStartTs = null;
1981
1981
  }
@@ -2034,7 +2034,7 @@ class tr {
2034
2034
  (e = this.mediaRecorder) == null || e.stop(), (s = this.stream) == null || s.getTracks().forEach((n) => n.stop());
2035
2035
  }
2036
2036
  }
2037
- function sr(t, e) {
2037
+ function ir(t, e) {
2038
2038
  e.onmousedown = function(s) {
2039
2039
  const n = t.getBoundingClientRect(), i = s.clientX - n.left, r = s.clientY - n.top;
2040
2040
  t.style.position = "fixed", t.style.zIndex = 99999999999999, o(s.pageX, s.pageY);
@@ -2054,7 +2054,7 @@ function sr(t, e) {
2054
2054
  return !1;
2055
2055
  };
2056
2056
  }
2057
- function nr() {
2057
+ function rr() {
2058
2058
  const t = document.createElement("div");
2059
2059
  t.className = "grid";
2060
2060
  for (let e = 0; e < 16; e++) {
@@ -2074,7 +2074,7 @@ function nr() {
2074
2074
  cursor: "grab"
2075
2075
  }), t;
2076
2076
  }
2077
- function ir() {
2077
+ function or() {
2078
2078
  const t = document.createElement("div");
2079
2079
  Object.assign(t.style, {
2080
2080
  width: "0",
@@ -2095,24 +2095,24 @@ function ir() {
2095
2095
  transform: "rotate(180deg)"
2096
2096
  }), e;
2097
2097
  }
2098
- function rr() {
2098
+ function ar() {
2099
2099
  const t = document.createElement("style");
2100
2100
  t.type = "text/css", t.innerText = `@keyframes spin {
2101
2101
  0% { transform: rotate(0deg); }
2102
2102
  100% { transform: rotate(360deg); }
2103
2103
  }`, document.head.appendChild(t);
2104
2104
  }
2105
- function or() {
2106
- rr();
2105
+ function cr() {
2106
+ ar();
2107
2107
  const t = document.createElement("div");
2108
- return t.classList.add("spinner"), Object.assign(t.style, er), t;
2108
+ return t.classList.add("spinner"), Object.assign(t.style, sr), t;
2109
2109
  }
2110
2110
  function C(t, e, s, n, i) {
2111
2111
  const r = document.createElement(t);
2112
2112
  return r.className = e, Object.assign(r.style, s), n && (r.textContent = n), i && (r.id = i), r;
2113
2113
  }
2114
- const Ae = "or_uxt_test_start", It = "or_uxt_task_index", xt = "or_uxt_session_id", ar = "or_uxt_test_id";
2115
- class cr {
2114
+ const Ae = "or_uxt_test_start", Tt = "or_uxt_task_index", It = "or_uxt_session_id", lr = "or_uxt_test_id";
2115
+ class hr {
2116
2116
  constructor(e, s, n, i, r, o, l, a, h) {
2117
2117
  this.ingestPoint = e, this.getTimestamp = s, this.token = n, this.testId = i, this.storageKey = r, this.setStorageKey = o, this.removeStorageKey = l, this.getStorageKey = a, this.getSessionId = h, this.durations = {
2118
2118
  testStart: 0,
@@ -2142,9 +2142,9 @@ class cr {
2142
2142
  const d = this.getTimestamp();
2143
2143
  if (u === "begin" && this.testId) {
2144
2144
  const p = this.getSessionId();
2145
- this.setStorageKey(xt, p), this.setStorageKey(this.storageKey, this.testId.toString()), this.setStorageKey(Ae, d.toString());
2145
+ this.setStorageKey(It, p), this.setStorageKey(this.storageKey, this.testId.toString()), this.setStorageKey(Ae, d.toString());
2146
2146
  } else
2147
- this.removeStorageKey(this.storageKey), this.removeStorageKey(It), this.removeStorageKey(Ae);
2147
+ this.removeStorageKey(this.storageKey), this.removeStorageKey(Tt), this.removeStorageKey(Ae);
2148
2148
  const f = this.durations.testStart || d, g = d - f;
2149
2149
  return fetch(`${this.ingestPoint}/v1/web/uxt/signals/test`, {
2150
2150
  method: "POST",
@@ -2164,9 +2164,9 @@ class cr {
2164
2164
  c && (this.durations.testStart = parseInt(c, 10));
2165
2165
  }
2166
2166
  }
2167
- class lr {
2167
+ class ur {
2168
2168
  constructor(e, s) {
2169
- this.app = e, this.storageKey = s, this.bg = C("div", "bg", zi, void 0, "__or_ut_bg"), this.container = C("div", "container", Wi, void 0, "__or_ut_ct"), this.widgetGuidelinesVisible = !0, this.widgetTasksVisible = !1, this.widgetVisible = !0, this.isActive = !1, this.descriptionSection = null, this.taskSection = null, this.endSection = null, this.stopButton = null, this.stopButtonContainer = null, this.test = null, this.testId = null, this.signalManager = null, this.getTest = (o, l, a) => {
2169
+ this.app = e, this.storageKey = s, this.bg = C("div", "bg", qi, void 0, "__or_ut_bg"), this.container = C("div", "container", $i, void 0, "__or_ut_ct"), this.widgetGuidelinesVisible = !0, this.widgetTasksVisible = !1, this.widgetVisible = !0, this.isActive = !1, this.descriptionSection = null, this.taskSection = null, this.endSection = null, this.stopButton = null, this.stopButtonContainer = null, this.test = null, this.testId = null, this.signalManager = null, this.getTest = (o, l, a) => {
2170
2170
  this.testId = o;
2171
2171
  const h = this.app.options.ingestPoint;
2172
2172
  return fetch(`${h}/v1/web/uxt/test/${o}`, {
@@ -2174,26 +2174,26 @@ class lr {
2174
2174
  Authorization: `Bearer ${l}`
2175
2175
  }
2176
2176
  }).then((c) => c.json()).then(({ test: c }) => {
2177
- this.isActive = !0, this.test = c, this.signalManager = new cr(this.app.options.ingestPoint, () => this.app.timestamp(), l, o, this.storageKey, (u, d) => this.app.localStorage.setItem(u, d), (u) => this.app.localStorage.removeItem(u), (u) => this.app.localStorage.getItem(u), () => this.app.getSessionID()), this.createGreeting(c.title, c.reqMic, c.reqCamera), a && ((c.reqMic || c.reqCamera) && this.userRecorder.startRecording(30, ms.Standard, c.reqMic, c.reqCamera), this.showWidget(c.description, c.tasks, !0), this.showTaskSection());
2177
+ this.isActive = !0, this.test = c, this.signalManager = new hr(this.app.options.ingestPoint, () => this.app.timestamp(), l, o, this.storageKey, (u, d) => this.app.localStorage.setItem(u, d), (u) => this.app.localStorage.removeItem(u), (u) => this.app.localStorage.getItem(u), () => this.app.getSessionID()), this.createGreeting(c.title, c.reqMic, c.reqCamera), a && ((c.reqMic || c.reqCamera) && this.userRecorder.startRecording(30, gs.Standard, c.reqMic, c.reqCamera), this.showWidget(c.description, c.tasks, !0), this.showTaskSection());
2178
2178
  }).then(() => o).catch((c) => {
2179
2179
  console.log("OR: Error fetching test", c);
2180
2180
  });
2181
2181
  }, this.hideTaskSection = () => !1, this.showTaskSection = () => !0, this.collapseWidget = () => !1, this.removeGreeting = () => !1, this.toggleDescriptionVisibility = () => {
2182
- }, this.currentTaskIndex = 0, this.userRecorder = new tr(e);
2183
- const n = this.app.getSessionID(), i = this.app.localStorage.getItem(xt);
2184
- n !== i && (this.app.localStorage.removeItem(this.storageKey), this.app.localStorage.removeItem(xt), this.app.localStorage.removeItem(ar), this.app.localStorage.removeItem(It), this.app.localStorage.removeItem(Ae));
2185
- const r = this.app.localStorage.getItem(It);
2182
+ }, this.currentTaskIndex = 0, this.userRecorder = new nr(e);
2183
+ const n = this.app.getSessionID(), i = this.app.localStorage.getItem(It);
2184
+ n !== i && (this.app.localStorage.removeItem(this.storageKey), this.app.localStorage.removeItem(It), this.app.localStorage.removeItem(lr), this.app.localStorage.removeItem(Tt), this.app.localStorage.removeItem(Ae));
2185
+ const r = this.app.localStorage.getItem(Tt);
2186
2186
  r && (this.currentTaskIndex = parseInt(r, 10));
2187
2187
  }
2188
2188
  getTestId() {
2189
2189
  return this.testId;
2190
2190
  }
2191
2191
  createGreeting(e, s, n) {
2192
- const i = C("div", "title", qi, e), r = C("div", "description", $i, `Welcome, you're here to help us improve, not to be judged. Your insights matter!
2192
+ const i = C("div", "title", Vi, e), r = C("div", "description", Xi, `Welcome, you're here to help us improve, not to be judged. Your insights matter!
2193
2193
 
2194
2194
  📹 We're recording this browser tab to learn from your experience.
2195
- 🎤 Please enable mic and camera if asked, to give us a complete picture.`), o = C("div", "button", Vi, "Read guidelines to begin");
2196
- this.removeGreeting = () => ((s || n) && this.userRecorder.startRecording(30, ms.Standard, s, n), this.container.removeChild(o), this.container.removeChild(r), this.container.removeChild(i), !1), o.onclick = () => {
2195
+ 🎤 Please enable mic and camera if asked, to give us a complete picture.`), o = C("div", "button", Gi, "Read guidelines to begin");
2196
+ this.removeGreeting = () => ((s || n) && this.userRecorder.startRecording(30, gs.Standard, s, n), this.container.removeChild(o), this.container.removeChild(r), this.container.removeChild(i), !1), o.onclick = () => {
2197
2197
  var a, h, c, u;
2198
2198
  this.removeGreeting();
2199
2199
  const l = (a = this.signalManager) == null ? void 0 : a.getDurations();
@@ -2216,7 +2216,7 @@ class lr {
2216
2216
  });
2217
2217
  const i = this.createTitleSection();
2218
2218
  this.container.style.fontFamily = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', Object.assign(this.container.style, Ee);
2219
- const r = this.createDescriptionSection(e), o = this.createTasksSection(s), l = C("div", "stop_bn_or", ds, "Abort Session"), a = C("div", "stop_ct_or", { fontSize: "13px!important" });
2219
+ const r = this.createDescriptionSection(e), o = this.createTasksSection(s), l = C("div", "stop_bn_or", us, "Abort Session"), a = C("div", "stop_ct_or", { fontSize: "13px!important" });
2220
2220
  a.style.fontSize = "13px", a.append(l), this.container.append(i, r, o, a), this.taskSection = o, this.descriptionSection = r, this.stopButton = l, this.stopButtonContainer = a, l.onclick = () => {
2221
2221
  var h;
2222
2222
  this.userRecorder.discard(), (h = this.signalManager) == null || h.signalTest("skipped"), document.body.removeChild(this.bg), window.close();
@@ -2224,7 +2224,7 @@ class lr {
2224
2224
  }
2225
2225
  createTitleSection() {
2226
2226
  var l;
2227
- const e = C("div", "title", Xi), s = nr(), n = C("div", "title_text", {
2227
+ const e = C("div", "title", Ki), s = rr(), n = C("div", "title_text", {
2228
2228
  maxWidth: "19rem",
2229
2229
  overflow: "hidden",
2230
2230
  textOverflow: "ellipsis",
@@ -2232,21 +2232,21 @@ class lr {
2232
2232
  fontSize: 16,
2233
2233
  lineHeight: "auto",
2234
2234
  cursor: "pointer"
2235
- }, (l = this.test) == null ? void 0 : l.title), i = ir();
2235
+ }, (l = this.test) == null ? void 0 : l.title), i = or();
2236
2236
  e.append(s, n, i);
2237
- const r = (a) => (this.widgetVisible = a, this.container.style.fontFamily = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', Object.assign(this.container.style, this.widgetVisible ? Ee : { border: "none", background: "none", padding: 0 }), this.taskSection && Object.assign(this.taskSection.style, this.widgetVisible ? ge : { display: "none" }), this.descriptionSection && Object.assign(this.descriptionSection.style, this.widgetVisible ? ge : { display: "none" }), this.endSection && Object.assign(this.endSection.style, this.widgetVisible ? ge : { display: "none" }), this.stopButton && Object.assign(this.stopButton.style, this.widgetVisible ? ds : { display: "none" }), a), o = () => {
2237
+ const r = (a) => (this.widgetVisible = a, this.container.style.fontFamily = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', Object.assign(this.container.style, this.widgetVisible ? Ee : { border: "none", background: "none", padding: 0 }), this.taskSection && Object.assign(this.taskSection.style, this.widgetVisible ? ge : { display: "none" }), this.descriptionSection && Object.assign(this.descriptionSection.style, this.widgetVisible ? ge : { display: "none" }), this.endSection && Object.assign(this.endSection.style, this.widgetVisible ? ge : { display: "none" }), this.stopButton && Object.assign(this.stopButton.style, this.widgetVisible ? us : { display: "none" }), a), o = () => {
2238
2238
  Object.assign(i.style, {
2239
2239
  transform: this.widgetVisible ? "rotate(0deg)" : "rotate(180deg)"
2240
2240
  }), r(!this.widgetVisible);
2241
2241
  };
2242
- return n.onclick = o, i.onclick = o, sr(this.bg, s), this.collapseWidget = () => r(!1), e;
2242
+ return n.onclick = o, i.onclick = o, ir(this.bg, s), this.collapseWidget = () => r(!1), e;
2243
2243
  }
2244
2244
  createDescriptionSection(e) {
2245
- const s = C("div", "description_section_or", ge), n = C("div", "description_s_title_or", ls), i = C("div", "title", {
2245
+ const s = C("div", "description_section_or", ge), n = C("div", "description_s_title_or", cs), i = C("div", "title", {
2246
2246
  fontSize: 13,
2247
2247
  fontWeight: 500,
2248
2248
  lineHeight: "auto"
2249
- }, "Introduction & Guidelines"), r = C("div", "icon", hs, "-"), o = C("div", "content", ue), l = C("div", "text_description", {
2249
+ }, "Introduction & Guidelines"), r = C("div", "icon", ls, "-"), o = C("div", "content", ue), l = C("div", "text_description", {
2250
2250
  maxHeight: "250px",
2251
2251
  overflowY: "auto",
2252
2252
  whiteSpace: "pre-wrap",
@@ -2255,7 +2255,7 @@ class lr {
2255
2255
  lineHeight: "auto"
2256
2256
  });
2257
2257
  l.innerHTML = e;
2258
- const a = C("div", "button_begin_or", us, "Begin Test");
2258
+ const a = C("div", "button_begin_or", hs, "Begin Test");
2259
2259
  n.append(i, r), o.append(l, a), s.append(n, o);
2260
2260
  const h = () => {
2261
2261
  this.widgetGuidelinesVisible = !this.widgetGuidelinesVisible, r.textContent = this.widgetGuidelinesVisible ? "-" : "+", Object.assign(o.style, this.widgetGuidelinesVisible ? ue : { display: "none" });
@@ -2276,24 +2276,24 @@ class lr {
2276
2276
  }
2277
2277
  createTasksSection(e) {
2278
2278
  this.container.style.fontFamily = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', Object.assign(this.container.style, Ee);
2279
- const s = C("div", "task_section_or", ge), n = C("div", "description_t_title_or", ls), i = C("div", "title", {
2279
+ const s = C("div", "task_section_or", ge), n = C("div", "description_t_title_or", cs), i = C("div", "title", {
2280
2280
  fontSize: "13px",
2281
2281
  fontWeight: "500",
2282
2282
  lineHeight: "auto"
2283
- }, "Tasks"), r = C("div", "icon", hs, "-"), o = C("div", "content", ue), l = C("div", "pagination", Ki), a = C("div", "taskCard", ps), h = C("div", "taskText", gs), c = C("div", "taskDescription", Yi), u = C("div", "taskButtons", Zi), d = C("div", "taskText", gs);
2283
+ }, "Tasks"), r = C("div", "icon", ls, "-"), o = C("div", "content", ue), l = C("div", "pagination", Yi), a = C("div", "taskCard", fs), h = C("div", "taskText", ps), c = C("div", "taskDescription", Zi), u = C("div", "taskButtons", tr), d = C("div", "taskText", ps);
2284
2284
  d.textContent = "Your answer";
2285
2285
  const f = C("textarea", "taskDescription", {
2286
2286
  resize: "vertical"
2287
- }), g = C("div", "inputArea", ps);
2287
+ }), g = C("div", "inputArea", fs);
2288
2288
  g.append(d, f);
2289
- const p = C("div", "closePanelButton", cn, "Collapse Panel"), y = C("div", "nextButton", Qi, "Done, Next");
2289
+ const p = C("div", "closePanelButton", hn, "Collapse Panel"), y = C("div", "nextButton", er, "Done, Next");
2290
2290
  n.append(i, r), a.append(h, c), u.append(p, y), o.append(l, a, g, u), s.append(n, o);
2291
2291
  const E = () => {
2292
2292
  const m = e[this.currentTaskIndex];
2293
2293
  h.textContent = m.title, c.textContent = m.description, m.allow_typing ? g.style.display = "flex" : g.style.display = "none";
2294
2294
  };
2295
- e.forEach((m, v) => {
2296
- const k = C("span", `or_task_${v}`, {
2295
+ e.forEach((m, w) => {
2296
+ const k = C("span", `or_task_${w}`, {
2297
2297
  outline: "1px solid #efefef",
2298
2298
  fontSize: "13px",
2299
2299
  height: "24px",
@@ -2303,8 +2303,8 @@ class lr {
2303
2303
  alignItems: "center",
2304
2304
  justifyContent: "center",
2305
2305
  borderRadius: "6.25em"
2306
- }, (v + 1).toString());
2307
- k.id = `or_task_${v}`, l.append(k);
2306
+ }, (w + 1).toString());
2307
+ k.id = `or_task_${w}`, l.append(k);
2308
2308
  });
2309
2309
  const N = () => {
2310
2310
  this.widgetTasksVisible = !this.widgetTasksVisible, r.textContent = this.widgetTasksVisible ? "-" : "+", Object.assign(o.style, this.widgetTasksVisible ? ue : { display: "none" });
@@ -2314,16 +2314,16 @@ class lr {
2314
2314
  }), this.widgetTasksVisible = !1, !1), this.showTaskSection = () => (r.textContent = "-", Object.assign(o.style, ue), this.widgetTasksVisible = !0, !0);
2315
2315
  const T = () => {
2316
2316
  const m = document.getElementById(`or_task_${this.currentTaskIndex}`);
2317
- m && Object.assign(m.style, fs);
2318
- for (let v = 0; v < this.currentTaskIndex; v++) {
2319
- const k = document.getElementById(`or_task_${v}`);
2320
- k && Object.assign(k.style, Ji);
2317
+ m && Object.assign(m.style, ds);
2318
+ for (let w = 0; w < this.currentTaskIndex; w++) {
2319
+ const k = document.getElementById(`or_task_${w}`);
2320
+ k && Object.assign(k.style, Qi);
2321
2321
  }
2322
2322
  };
2323
2323
  return n.onclick = N, p.onclick = this.collapseWidget, y.onclick = () => {
2324
- var v, k, x, S;
2324
+ var w, k, x, S;
2325
2325
  const m = e[this.currentTaskIndex].allow_typing ? f.value : void 0;
2326
- if (f.value = "", (v = this.signalManager) == null || v.signalTask(e[this.currentTaskIndex].task_id, "done", m), this.currentTaskIndex < e.length - 1) {
2326
+ if (f.value = "", (w = this.signalManager) == null || w.signalTask(e[this.currentTaskIndex].task_id, "done", m), this.currentTaskIndex < e.length - 1) {
2327
2327
  this.currentTaskIndex++, E();
2328
2328
  const b = (k = this.signalManager) == null ? void 0 : k.getDurations();
2329
2329
  b && b.tasks.findIndex((_) => _.taskId === e[this.currentTaskIndex].task_id) === -1 && (b.tasks.push({
@@ -2335,19 +2335,19 @@ class lr {
2335
2335
  this.app.localStorage.setItem("or_uxt_task_index", this.currentTaskIndex.toString());
2336
2336
  }, setTimeout(() => {
2337
2337
  const m = document.getElementById("or_task_0");
2338
- m && Object.assign(m.style, fs), E(), T();
2338
+ m && Object.assign(m.style, ds), E(), T();
2339
2339
  }, 1), s;
2340
2340
  }
2341
2341
  showEndSection() {
2342
2342
  var l, a, h, c;
2343
2343
  let e = !0;
2344
2344
  (l = this.signalManager) == null || l.signalTest("done");
2345
- const s = C("div", "end_section_or", Gi), n = C("div", "end_title_or", {
2345
+ const s = C("div", "end_section_or", Ji), n = C("div", "end_title_or", {
2346
2346
  fontSize: "1.25rem",
2347
2347
  fontWeight: "500"
2348
2348
  }, "Thank you! 👍"), i = C("div", "end_description_or", {}, ((a = this.test) == null ? void 0 : a.conclusion) ?? `Thank you for participating in our usability test. Your feedback has been captured and will be used to enhance our website.
2349
2349
 
2350
- We appreciate your time and valuable input.`), r = C("div", "end_button_or", us, "Submitting Feedback"), o = or();
2350
+ We appreciate your time and valuable input.`), r = C("div", "end_button_or", hs, "Submitting Feedback"), o = cr();
2351
2351
  r.appendChild(o), (h = this.test) != null && h.reqMic || (c = this.test) != null && c.reqCamera ? this.userRecorder.sendToAPI().then(() => {
2352
2352
  r.removeChild(o), r.textContent = "End Session", e = !1;
2353
2353
  }).catch((u) => {
@@ -2357,19 +2357,19 @@ We appreciate your time and valuable input.`), r = C("div", "end_button_or", us,
2357
2357
  }, s.append(n, i, r), this.endSection = s, this.container.append(s);
2358
2358
  }
2359
2359
  }
2360
- function ln(t) {
2360
+ function un(t) {
2361
2361
  return !!t && t.nodeType != null;
2362
2362
  }
2363
- function Et(t) {
2363
+ function xt(t) {
2364
2364
  return t.namespaceURI === "http://www.w3.org/2000/svg";
2365
2365
  }
2366
2366
  function ee(t) {
2367
2367
  return t.nodeType === Node.ELEMENT_NODE;
2368
2368
  }
2369
- function hr(t) {
2369
+ function dr(t) {
2370
2370
  return t.nodeType === Node.COMMENT_NODE;
2371
2371
  }
2372
- function Ct(t) {
2372
+ function Et(t) {
2373
2373
  return t.nodeType === Node.TEXT_NODE;
2374
2374
  }
2375
2375
  function We(t) {
@@ -2381,7 +2381,7 @@ function Je(t) {
2381
2381
  function B(t, e) {
2382
2382
  return t.localName === e;
2383
2383
  }
2384
- class ur {
2384
+ class fr {
2385
2385
  constructor(e, s) {
2386
2386
  this.app = e, this.options = s, this.snapshots = {}, this.intervals = [], this.restartTracking = () => {
2387
2387
  this.clear(), this.app.nodes.scanTree(this.captureCanvas);
@@ -2402,10 +2402,10 @@ class ur {
2402
2402
  paused: !1,
2403
2403
  dummy: document.createElement("canvas")
2404
2404
  };
2405
- const o = Fi(i.toString(), r);
2405
+ const o = Ui(i.toString(), r);
2406
2406
  this.app.send(o);
2407
2407
  const l = (h) => {
2408
- dr(h, this.options.quality, this.snapshots[i].dummy, this.options.fixedScaling, this.fileExt, (c) => {
2408
+ pr(h, this.options.quality, this.snapshots[i].dummy, this.options.fixedScaling, this.fileExt, (c) => {
2409
2409
  c && (this.snapshots[i].images.push({ id: this.app.timestamp(), data: c }), this.snapshots[i].images.length > 9 && (this.sendSnaps(this.snapshots[i].images, i, this.snapshots[i].createdAt), this.snapshots[i].images = []));
2410
2410
  });
2411
2411
  }, a = setInterval(() => {
@@ -2430,7 +2430,7 @@ class ur {
2430
2430
  const i = new FormData();
2431
2431
  e.forEach((r) => {
2432
2432
  const o = r.data;
2433
- o && (i.append("snapshot", o, `${n}_${s}_${r.id}.${this.fileExt}`), this.options.isDebug && fr(o, `${n}_${s}_${r.id}.${this.fileExt}`));
2433
+ o && (i.append("snapshot", o, `${n}_${s}_${r.id}.${this.fileExt}`), this.options.isDebug && gr(o, `${n}_${s}_${r.id}.${this.fileExt}`));
2434
2434
  }), fetch(this.app.options.ingestPoint + "/v1/web/images", {
2435
2435
  method: "POST",
2436
2436
  headers: {
@@ -2445,12 +2445,12 @@ class ur {
2445
2445
  this.intervals.forEach((e) => clearInterval(e)), this.snapshots = {};
2446
2446
  }
2447
2447
  }
2448
- const bs = {
2448
+ const ms = {
2449
2449
  low: 0.35,
2450
2450
  medium: 0.55,
2451
2451
  high: 0.8
2452
2452
  };
2453
- function dr(t, e = "medium", s, n = !1, i, r) {
2453
+ function pr(t, e = "medium", s, n = !1, i, r) {
2454
2454
  const o = `image/${i}`;
2455
2455
  if (n) {
2456
2456
  const l = window.devicePixelRatio || 1;
@@ -2458,11 +2458,11 @@ function dr(t, e = "medium", s, n = !1, i, r) {
2458
2458
  const a = s.getContext("2d");
2459
2459
  if (!a)
2460
2460
  return "";
2461
- a.clearRect(0, 0, s.width, s.height), a.drawImage(t, 0, 0, s.width, s.height), s.toBlob(r, o, bs[e]);
2461
+ a.clearRect(0, 0, s.width, s.height), a.drawImage(t, 0, 0, s.width, s.height), s.toBlob(r, o, ms[e]);
2462
2462
  } else
2463
- t.toBlob(r, o, bs[e]);
2463
+ t.toBlob(r, o, ms[e]);
2464
2464
  }
2465
- function fr(t, e) {
2465
+ function gr(t, e) {
2466
2466
  const s = URL.createObjectURL(t), n = document.createElement("a");
2467
2467
  n.href = s, n.download = e, n.style.display = "none", document.body.appendChild(n), n.click(), document.body.removeChild(n);
2468
2468
  }
@@ -2473,7 +2473,7 @@ const ke = {
2473
2473
  Errors: 2,
2474
2474
  Silent: 0
2475
2475
  };
2476
- class pr {
2476
+ class mr {
2477
2477
  constructor(e = ke.Silent) {
2478
2478
  this.shouldLog = (s) => this.level >= s, this.log = (...s) => {
2479
2479
  this.shouldLog(ke.Log) && console.log(...s);
@@ -2484,7 +2484,7 @@ class pr {
2484
2484
  }, this.level = e;
2485
2485
  }
2486
2486
  }
2487
- class gr {
2487
+ class br {
2488
2488
  constructor(e) {
2489
2489
  this.node_id = e, this.nodes = [], this.totalNodeAmount = 0, this.nodeCallbacks = [], this.elementListeners = /* @__PURE__ */ new Map(), this.nextNodeId = 0, this.scanTree = (s) => {
2490
2490
  this.nodes.forEach((n) => s(n));
@@ -2504,7 +2504,7 @@ class gr {
2504
2504
  const r = this.getID(e);
2505
2505
  if (r === void 0)
2506
2506
  return;
2507
- sn(e, s, n, i);
2507
+ rn(e, s, n, i);
2508
2508
  let o = this.elementListeners.get(r);
2509
2509
  o === void 0 && (o = [], this.elementListeners.set(r, o)), o.push([s, n, i]);
2510
2510
  }
@@ -2518,7 +2518,7 @@ class gr {
2518
2518
  if (s !== void 0) {
2519
2519
  e[this.node_id] = void 0, delete e[this.node_id], delete this.nodes[s];
2520
2520
  const n = this.elementListeners.get(s);
2521
- n !== void 0 && (this.elementListeners.delete(s), n.forEach((i) => nn(e, i[0], i[1], i[2]))), this.totalNodeAmount--;
2521
+ n !== void 0 && (this.elementListeners.delete(s), n.forEach((i) => on(e, i[0], i[1], i[2]))), this.totalNodeAmount--;
2522
2522
  }
2523
2523
  return s;
2524
2524
  }
@@ -2549,10 +2549,10 @@ class gr {
2549
2549
  this.nextNodeId = 0, this.nodes.length = 0;
2550
2550
  }
2551
2551
  }
2552
- function Nt(t) {
2553
- if (hr(t))
2552
+ function Ct(t) {
2553
+ if (dr(t))
2554
2554
  return !0;
2555
- if (Ct(t))
2555
+ if (Et(t))
2556
2556
  return !1;
2557
2557
  if (!ee(t))
2558
2558
  return !0;
@@ -2564,15 +2564,15 @@ function Nt(t) {
2564
2564
  return e === "SCRIPT" || e === "NOSCRIPT" || e === "META" || e === "TITLE" || e === "BASE";
2565
2565
  }
2566
2566
  function ot(t) {
2567
- return Je(t) ? !0 : !Nt(t);
2567
+ return Je(t) ? !0 : !Ct(t);
2568
2568
  }
2569
2569
  var J;
2570
2570
  (function(t) {
2571
2571
  t[t.New = 0] = "New", t[t.Removed = 1] = "Removed", t[t.Changed = 2] = "Changed";
2572
2572
  })(J || (J = {}));
2573
- class Ut {
2573
+ class Bt {
2574
2574
  constructor(e, s = !1) {
2575
- this.app = e, this.isTopContext = s, this.commited = [], this.recents = /* @__PURE__ */ new Map(), this.indexes = [], this.attributesMap = /* @__PURE__ */ new Map(), this.textSet = /* @__PURE__ */ new Set(), this.observer = tn(this.app.safe((n) => {
2575
+ this.app = e, this.isTopContext = s, this.commited = [], this.recents = /* @__PURE__ */ new Map(), this.indexes = [], this.attributesMap = /* @__PURE__ */ new Map(), this.textSet = /* @__PURE__ */ new Set(), this.observer = nn(this.app.safe((n) => {
2576
2576
  for (const i of n) {
2577
2577
  const r = i.target, o = i.type;
2578
2578
  if (!ot(r))
@@ -2607,17 +2607,17 @@ class Ut {
2607
2607
  this.commited.length = 0, this.recents.clear(), this.indexes.length = 1, this.attributesMap.clear(), this.textSet.clear();
2608
2608
  }
2609
2609
  sendNodeAttribute(e, s, n, i) {
2610
- if (Et(s)) {
2611
- n.substr(0, 6) === "xlink:" && (n = n.substr(6)), i === null ? this.app.send(ts(e, n)) : n === "href" ? (i.length > 1e5 && (i = ""), this.app.send(St(e, n, i, this.app.getBaseHref()))) : this.app.attributeSender.sendSetAttribute(e, n, i);
2610
+ if (xt(s)) {
2611
+ n.substr(0, 6) === "xlink:" && (n = n.substr(6)), i === null ? this.app.send(es(e, n)) : n === "href" ? (i.length > 1e5 && (i = ""), this.app.send(yt(e, n, i, this.app.getBaseHref()))) : this.app.attributeSender.sendSetAttribute(e, n, i);
2612
2612
  return;
2613
2613
  }
2614
2614
  if (!(n === "src" || n === "srcset" || n === "integrity" || n === "crossorigin" || n === "autocomplete" || n.substr(0, 2) === "on") && !(n === "value" && B(s, "input") && s.type !== "button" && s.type !== "reset" && s.type !== "submit")) {
2615
2615
  if (i === null) {
2616
- this.app.send(ts(e, n));
2616
+ this.app.send(es(e, n));
2617
2617
  return;
2618
2618
  }
2619
2619
  if (n === "style" || n === "href" && B(s, "link")) {
2620
- this.app.send(St(e, n, i, this.app.getBaseHref()));
2620
+ this.app.send(yt(e, n, i, this.app.getBaseHref()));
2621
2621
  return;
2622
2622
  }
2623
2623
  (n === "href" || i.length > 1e5) && (i = ""), this.app.attributeSender.sendSetAttribute(e, n, i);
@@ -2625,10 +2625,10 @@ class Ut {
2625
2625
  }
2626
2626
  sendNodeData(e, s, n) {
2627
2627
  if (B(s, "style")) {
2628
- this.app.send(Ni(e, n, this.app.getBaseHref()));
2628
+ this.app.send(Oi(e, n, this.app.getBaseHref()));
2629
2629
  return;
2630
2630
  }
2631
- n = this.app.sanitizer.sanitize(e, n), this.app.send(pi(e, n));
2631
+ n = this.app.sanitizer.sanitize(e, n), this.app.send(mi(e, n));
2632
2632
  }
2633
2633
  bindNode(e) {
2634
2634
  const [s, n] = this.app.nodes.registerNode(e);
@@ -2642,7 +2642,7 @@ class Ut {
2642
2642
  e,
2643
2643
  NodeFilter.SHOW_ELEMENT + NodeFilter.SHOW_TEXT,
2644
2644
  {
2645
- acceptNode: (n) => (this.app.nodes.getID(n) !== void 0 && this.app.debug.error("! Node is already bound", n), Nt(n) || this.app.nodes.getID(n) !== void 0 ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT)
2645
+ acceptNode: (n) => (this.app.nodes.getID(n) !== void 0 && this.app.debug.error("! Node is already bound", n), Ct(n) || this.app.nodes.getID(n) !== void 0 ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT)
2646
2646
  },
2647
2647
  // @ts-ignore
2648
2648
  !1
@@ -2653,12 +2653,12 @@ class Ut {
2653
2653
  unbindTree(e) {
2654
2654
  const s = this.app.nodes.unregisterNode(e);
2655
2655
  if (s !== void 0 && this.recents.get(s) === J.Removed) {
2656
- this.app.send(fi(s));
2656
+ this.app.send(gi(s));
2657
2657
  const n = document.createTreeWalker(
2658
2658
  e,
2659
2659
  NodeFilter.SHOW_ELEMENT + NodeFilter.SHOW_TEXT,
2660
2660
  {
2661
- acceptNode: (l) => Nt(l) || this.app.nodes.getID(l) === void 0 ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT
2661
+ acceptNode: (l) => Ct(l) || this.app.nodes.getID(l) === void 0 ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT
2662
2662
  },
2663
2663
  // @ts-ignore
2664
2664
  !1
@@ -2668,7 +2668,7 @@ class Ut {
2668
2668
  for (; n.nextNode(); )
2669
2669
  i += 1, this.app.nodes.unregisterNode(n.currentNode);
2670
2670
  const o = Math.floor(i / r * 100);
2671
- o > 30 && this.app.send(Pi(o));
2671
+ o > 30 && this.app.send(Bi(o));
2672
2672
  }
2673
2673
  }
2674
2674
  // A top-consumption function on the infinite lists test. (~1% of performance resources)
@@ -2708,17 +2708,17 @@ class Ut {
2708
2708
  const u = c.clientWidth, d = c.clientHeight;
2709
2709
  c = s.cloneNode(), c.style.width = `${u}px`, c.style.height = `${d}px`;
2710
2710
  }
2711
- this.app.send(hi(e, i, a, c.tagName, Et(s)));
2711
+ this.app.send(di(e, i, a, c.tagName, xt(s)));
2712
2712
  }
2713
2713
  for (let u = 0; u < c.attributes.length; u++) {
2714
2714
  const d = c.attributes[u];
2715
2715
  this.sendNodeAttribute(e, c, d.nodeName, d.value);
2716
2716
  }
2717
2717
  } else
2718
- Ct(s) && (this.app.send(ui(e, i, a)), this.sendNodeData(e, n, s.data));
2718
+ Et(s) && (this.app.send(fi(e, i, a)), this.sendNodeData(e, n, s.data));
2719
2719
  return !0;
2720
2720
  }
2721
- o === J.Removed && i !== void 0 && this.app.send(di(e, i, a));
2721
+ o === J.Removed && i !== void 0 && this.app.send(pi(e, i, a));
2722
2722
  const h = this.attributesMap.get(e);
2723
2723
  if (h !== void 0) {
2724
2724
  if (!ee(s))
@@ -2727,7 +2727,7 @@ class Ut {
2727
2727
  this.sendNodeAttribute(e, s, c, s.getAttribute(c));
2728
2728
  }
2729
2729
  if (this.textSet.has(e)) {
2730
- if (!Ct(s))
2730
+ if (!Et(s))
2731
2731
  throw "commitNode: node is not a text";
2732
2732
  this.sendNodeData(e, n, s.data);
2733
2733
  }
@@ -2762,7 +2762,7 @@ class Ut {
2762
2762
  this.observer.disconnect(), this.clear();
2763
2763
  }
2764
2764
  }
2765
- class ys extends Ut {
2765
+ class bs extends Bt {
2766
2766
  observe(e) {
2767
2767
  const s = e.contentDocument, n = this.app.nodes.getID(e);
2768
2768
  !s || n === void 0 || this.observeRoot(s, (i) => {
@@ -2770,7 +2770,7 @@ class ys extends Ut {
2770
2770
  this.app.debug.log("OpenReplay: Iframe document not bound");
2771
2771
  return;
2772
2772
  }
2773
- this.app.send(vt(n, i));
2773
+ this.app.send(St(n, i));
2774
2774
  });
2775
2775
  }
2776
2776
  syntheticObserve(e, s) {
@@ -2779,11 +2779,11 @@ class ys extends Ut {
2779
2779
  this.app.debug.log("OpenReplay: Iframe document not bound");
2780
2780
  return;
2781
2781
  }
2782
- this.app.send(vt(e, n));
2782
+ this.app.send(St(e, n));
2783
2783
  });
2784
2784
  }
2785
2785
  }
2786
- class mr extends Ut {
2786
+ class yr extends Bt {
2787
2787
  observe(e) {
2788
2788
  const s = e.shadowRoot, n = this.app.nodes.getID(e);
2789
2789
  !s || n === void 0 || this.observeRoot(s, (i) => {
@@ -2791,11 +2791,11 @@ class mr extends Ut {
2791
2791
  this.app.debug.error("OpenReplay: Shadow Root was not bound");
2792
2792
  return;
2793
2793
  }
2794
- this.app.send(vt(n, i));
2794
+ this.app.send(St(n, i));
2795
2795
  });
2796
2796
  }
2797
2797
  }
2798
- class br {
2798
+ class Sr {
2799
2799
  constructor() {
2800
2800
  this.states = /* @__PURE__ */ new Map();
2801
2801
  }
@@ -2835,9 +2835,9 @@ class br {
2835
2835
  }
2836
2836
  }
2837
2837
  const at = Z ? Element.prototype.attachShadow : () => new ShadowRoot();
2838
- class yr extends Ut {
2838
+ class wr extends Bt {
2839
2839
  constructor(e, s) {
2840
- super(e, !0), this.iframeOffsets = new br(), this.contextCallbacks = [], this.contextsSet = /* @__PURE__ */ new Set(), this.iframeObservers = [], this.shadowRootObservers = [], this.options = Object.assign({
2840
+ super(e, !0), this.iframeOffsets = new Sr(), this.contextCallbacks = [], this.contextsSet = /* @__PURE__ */ new Set(), this.iframeObservers = [], this.shadowRootObservers = [], this.options = Object.assign({
2841
2841
  captureIFrames: !0
2842
2842
  }, s), this.app.nodes.attachNodeCallback((n) => {
2843
2843
  B(n, "iframe") && (this.options.captureIFrames && !ae(n, "obscured") || ae(n, "capture")) && this.handleIframe(n);
@@ -2854,11 +2854,11 @@ class yr extends Ut {
2854
2854
  handleIframe(e) {
2855
2855
  let s = null;
2856
2856
  const n = this.app.safe(() => setTimeout(() => {
2857
- if (this.app.nodes.getID(e) === void 0 || !ti(e))
2857
+ if (this.app.nodes.getID(e) === void 0 || !ni(e))
2858
2858
  return;
2859
2859
  const r = e.contentWindow, o = e.contentDocument;
2860
2860
  if (o && o !== s) {
2861
- const l = new ys(this.app);
2861
+ const l = new bs(this.app);
2862
2862
  this.iframeObservers.push(l), l.observe(e), s = o, this.iframeOffsets.observe(e);
2863
2863
  }
2864
2864
  r && // Sometimes currentWin.window is null (not in specification). Such window object is not functional
@@ -2867,7 +2867,7 @@ class yr extends Ut {
2867
2867
  e.addEventListener("load", n), n();
2868
2868
  }
2869
2869
  handleShadowRoot(e) {
2870
- const s = new mr(this.app);
2870
+ const s = new yr(this.app);
2871
2871
  this.shadowRootObservers.push(s), s.observe(e.host);
2872
2872
  }
2873
2873
  observe() {
@@ -2876,7 +2876,7 @@ class yr extends Ut {
2876
2876
  const s = at.apply(this, arguments);
2877
2877
  return e.handleShadowRoot(s), s;
2878
2878
  }, this.app.nodes.clear(), this.observeRoot(window.document, () => {
2879
- this.app.send(li()), this.app.nodes.callNodeCallbacks(document, !0);
2879
+ this.app.send(ui()), this.app.nodes.callNodeCallbacks(document, !0);
2880
2880
  }, window.document.documentElement);
2881
2881
  }
2882
2882
  crossdomainObserve(e, s) {
@@ -2885,7 +2885,7 @@ class yr extends Ut {
2885
2885
  const r = at.apply(this, arguments);
2886
2886
  return n.handleShadowRoot(r), r;
2887
2887
  }, this.app.nodes.clear(), this.app.nodes.syntheticMode(s);
2888
- const i = new ys(this.app);
2888
+ const i = new bs(this.app);
2889
2889
  this.iframeObservers.push(i), i.syntheticObserve(e, window.document);
2890
2890
  }
2891
2891
  disconnect() {
@@ -2896,8 +2896,8 @@ var qe;
2896
2896
  (function(t) {
2897
2897
  t[t.Plain = 0] = "Plain", t[t.Obscured = 1] = "Obscured", t[t.Hidden = 2] = "Hidden";
2898
2898
  })(qe || (qe = {}));
2899
- const Sr = (t) => t.trim().replace(/[^\f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]/g, "█");
2900
- class vr {
2899
+ const vr = (t) => t.trim().replace(/[^\f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]/g, "█");
2900
+ class kr {
2901
2901
  constructor(e, s) {
2902
2902
  this.app = e, this.obscured = /* @__PURE__ */ new Set(), this.hidden = /* @__PURE__ */ new Set(), this.options = Object.assign({
2903
2903
  obscureTextEmails: !0,
@@ -2911,7 +2911,7 @@ class vr {
2911
2911
  }
2912
2912
  }
2913
2913
  sanitize(e, s) {
2914
- return this.obscured.has(e) ? Sr(s) : (this.options.obscureTextNumbers && (s = s.replace(/\d/g, "0")), this.options.obscureTextEmails && (s = s.replace(/^\w+([+.-]\w+)*@\w+([.-]\w+)*\.\w{2,3}$/g, (n) => {
2914
+ return this.obscured.has(e) ? vr(s) : (this.options.obscureTextNumbers && (s = s.replace(/\d/g, "0")), this.options.obscureTextEmails && (s = s.replace(/^\w+([+.-]\w+)*@\w+([.-]\w+)*\.\w{2,3}$/g, (n) => {
2915
2915
  const [i, r] = n.split("@"), [o, l] = r.split(".");
2916
2916
  return `${nt(i)}@${nt(o)}.${nt(l)}`;
2917
2917
  })), s);
@@ -2930,7 +2930,7 @@ class vr {
2930
2930
  this.obscured.clear(), this.hidden.clear();
2931
2931
  }
2932
2932
  }
2933
- class wr {
2933
+ class Tr {
2934
2934
  constructor(e, s) {
2935
2935
  this.app = e, this.options = s, this.metadata = {}, this.userID = null, this.callbacks = [], this.timestamp = 0, this.createTabId();
2936
2936
  }
@@ -2981,7 +2981,7 @@ class wr {
2981
2981
  return this.tabId || this.createTabId(), this.tabId;
2982
2982
  }
2983
2983
  regenerateTabId() {
2984
- const e = si(12);
2984
+ const e = ii(12);
2985
2985
  this.app.sessionStorage.setItem(this.options.session_tabid_key, e), this.tabId = e;
2986
2986
  }
2987
2987
  createTabId() {
@@ -3001,13 +3001,13 @@ class wr {
3001
3001
  this.app.sessionStorage.removeItem(this.options.session_token_key), this.metadata = {}, this.userID = null, this.sessionID = void 0, this.timestamp = 0;
3002
3002
  }
3003
3003
  }
3004
- function kr(t, e) {
3004
+ function Ir(t, e) {
3005
3005
  let s = 0;
3006
3006
  return () => {
3007
3007
  s++ >= e && (s = 0, t());
3008
3008
  };
3009
3009
  }
3010
- class Tr {
3010
+ class xr {
3011
3011
  constructor(e) {
3012
3012
  this.app = e, this.timer = null, this.callbacks = [];
3013
3013
  }
@@ -3018,7 +3018,7 @@ class Tr {
3018
3018
  * @param {object} thisArg - link to <this>
3019
3019
  * */
3020
3020
  attach(e, s = 0, n = !0, i) {
3021
- i && (e = e.bind(i)), n && (e = this.app.safe(e)), this.callbacks.unshift(s ? kr(e, s) : e) - 1;
3021
+ i && (e = e.bind(i)), n && (e = this.app.safe(e)), this.callbacks.unshift(s ? Ir(e, s) : e) - 1;
3022
3022
  }
3023
3023
  start() {
3024
3024
  this.timer === null && (this.timer = setInterval(() => this.callbacks.forEach((e) => {
@@ -3029,17 +3029,17 @@ class Tr {
3029
3029
  this.timer !== null && (clearInterval(this.timer), this.timer = null);
3030
3030
  }
3031
3031
  }
3032
- const we = "canceled", Ss = "or_uxt_active", ct = "or_buffer_1", se = (t) => ({ reason: t, success: !1 }), Ir = (t) => ({ ...t, success: !0 });
3032
+ const ve = "canceled", ys = "or_uxt_active", ct = "or_buffer_1", se = (t) => ({ reason: t, success: !1 }), Er = (t) => ({ ...t, success: !0 });
3033
3033
  var F;
3034
3034
  (function(t) {
3035
3035
  t[t.NotActive = 0] = "NotActive", t[t.Starting = 1] = "Starting", t[t.Active = 2] = "Active", t[t.ColdStart = 3] = "ColdStart";
3036
3036
  })(F || (F = {}));
3037
- const hn = "https://api.openreplay.com/ingest";
3037
+ const dn = "https://api.openreplay.com/ingest";
3038
3038
  function lt() {
3039
3039
  const t = (/* @__PURE__ */ new Date()).getTimezoneOffset() * -1, e = t >= 0 ? "+" : "-", s = Math.floor(Math.abs(t) / 60), n = Math.abs(t) % 60;
3040
3040
  return `UTC${e}${String(s).padStart(2, "0")}:${String(n).padStart(2, "0")}`;
3041
3041
  }
3042
- const xr = (t) => new Promise((e) => setTimeout(e, t)), W = {
3042
+ const Cr = (t) => new Promise((e) => setTimeout(e, t)), W = {
3043
3043
  // ask if there are any tabs alive
3044
3044
  ask: "never-gonna-give-you-up",
3045
3045
  // response from another tab
@@ -3053,7 +3053,7 @@ const xr = (t) => new Promise((e) => setTimeout(e, t)), W = {
3053
3053
  // batch of messages from an iframe window
3054
3054
  iframeBatch: "never-gonna-tell-a-lie-and-hurt-you"
3055
3055
  };
3056
- class Er {
3056
+ class Nr {
3057
3057
  constructor(e, s, n, i, r) {
3058
3058
  this.signalError = i, this.insideIframe = r, this.messages = [], this.bufferedMessages1 = [], this.bufferedMessages2 = [], this.startCallbacks = [], this.stopCallbacks = [], this.commitCallbacks = [], this.activityState = F.NotActive, this.version = "14.0.4", this.socketMode = !1, this.compressionThreshold = 24 * 1e3, this.bc = null, this.canvasRecorder = null, this.conditionsManager = null, this.canStart = !1, this.rootId = null, this.pageFrames = [], this.frameOderNumber = 0, this.initialHostName = location.hostname, this.startTimeout = null, this.coldStartCommitN = 0, this.delay = 0, this.coldInterval = null, this.orderNumber = 0, this.coldStartTs = 0, this.singleBuffer = !1, this.onSessionSent = () => {
3059
3059
  }, this.restartCanvasTracking = () => {
@@ -3083,7 +3083,7 @@ class Er {
3083
3083
  session_reset_key: "__openreplay_reset",
3084
3084
  session_tabid_key: "__openreplay_tabid",
3085
3085
  local_uuid_key: "__openreplay_uuid",
3086
- ingestPoint: hn,
3086
+ ingestPoint: dn,
3087
3087
  resourceBaseHref: null,
3088
3088
  __is_snippet: !1,
3089
3089
  __debug_report_edp: null,
@@ -3109,14 +3109,14 @@ class Er {
3109
3109
  useAnimationFrame: !1
3110
3110
  }
3111
3111
  };
3112
- if (this.options = rn(o, n), !this.insideIframe && !this.options.forceSingleTab && globalThis && "BroadcastChannel" in globalThis) {
3112
+ if (this.options = an(o, n), !this.insideIframe && !this.options.forceSingleTab && globalThis && "BroadcastChannel" in globalThis) {
3113
3113
  const a = location.hostname.split(".").slice(-2).join("_");
3114
3114
  this.bc = new BroadcastChannel(`rick_${a}`);
3115
3115
  }
3116
- this.revID = this.options.revID, this.localStorage = this.options.localStorage ?? window.localStorage, this.sessionStorage = this.options.sessionStorage ?? window.sessionStorage, this.sanitizer = new vr(this, n), this.nodes = new gr(this.options.node_id), this.observer = new yr(this, n), this.ticker = new Tr(this), this.ticker.attach(() => this.commit()), this.debug = new pr(this.options.__debug__), this.session = new wr(this, this.options), this.attributeSender = new Kn(this, !!this.options.disableStringDict), this.featureFlags = new Qn(this), this.tagWatcher = new ji(this.sessionStorage, this.debug.error, (a) => {
3117
- this.send(Bi(a));
3116
+ this.revID = this.options.revID, this.localStorage = this.options.localStorage ?? window.localStorage, this.sessionStorage = this.options.sessionStorage ?? window.sessionStorage, this.sanitizer = new kr(this, n), this.nodes = new br(this.options.node_id), this.observer = new wr(this, n), this.ticker = new xr(this), this.ticker.attach(() => this.commit()), this.debug = new mr(this.options.__debug__), this.session = new Tr(this, this.options), this.attributeSender = new Yn(this, !!this.options.disableStringDict), this.featureFlags = new ei(this), this.tagWatcher = new Wi(this.sessionStorage, this.debug.error, (a) => {
3117
+ this.send(Hi(a));
3118
3118
  }), this.session.attachUpdateCallback(({ userID: a, metadata: h }) => {
3119
- a != null && this.send(Ti(a)), h != null && Object.entries(h).forEach(([c, u]) => this.send(ss(c, u)));
3119
+ a != null && this.send(xi(a)), h != null && Object.entries(h).forEach(([c, u]) => this.send(ts(c, u)));
3120
3120
  }), s != null && this.session.applySessionHash(s), this.initWorker();
3121
3121
  const l = this.session.getTabId();
3122
3122
  if (this.insideIframe) {
@@ -3160,7 +3160,7 @@ class Er {
3160
3160
  }).catch(console.error), p = 10;
3161
3161
  break;
3162
3162
  }
3163
- p++, await xr(100);
3163
+ p++, await Cr(100);
3164
3164
  }
3165
3165
  })();
3166
3166
  }
@@ -3170,8 +3170,8 @@ class Er {
3170
3170
  let p = g;
3171
3171
  return this.pageFrames.forEach((y) => {
3172
3172
  if (y.dataset.domain === c.data.domain) {
3173
- const [E, N, T] = g, { left: m, top: v } = y.getBoundingClientRect();
3174
- p = [E, N + m, T + v];
3173
+ const [E, N, T] = g, { left: m, top: w } = y.getBoundingClientRect();
3174
+ p = [E, N + m, T + w];
3175
3175
  }
3176
3176
  }), p;
3177
3177
  }
@@ -3179,13 +3179,13 @@ class Er {
3179
3179
  let p = g;
3180
3180
  return this.pageFrames.forEach((y) => {
3181
3181
  if (y.dataset.domain === c.data.domain) {
3182
- const [E, N, T, m, v, k, x] = g, { left: S, top: b, width: _, height: M } = y.getBoundingClientRect(), O = document.documentElement.scrollWidth, D = document.documentElement.scrollHeight, w = k / 100 * _ + S, I = x / 100 * M + b, A = w / O, P = I / D;
3182
+ const [E, N, T, m, w, k, x] = g, { left: S, top: b, width: _, height: M } = y.getBoundingClientRect(), O = document.documentElement.scrollWidth, D = document.documentElement.scrollHeight, v = k / 100 * _ + S, I = x / 100 * M + b, A = v / O, P = I / D;
3183
3183
  p = [
3184
3184
  E,
3185
3185
  N,
3186
3186
  T,
3187
3187
  m,
3188
- v,
3188
+ w,
3189
3189
  Math.round(A * 1e3) / 10,
3190
3190
  Math.round(P * 1e3) / 10
3191
3191
  ];
@@ -3265,7 +3265,7 @@ class Er {
3265
3265
  this.stop(!1), this.debug.error("worker_failed", e.reason), this._debug("worker_failed", e.reason);
3266
3266
  else if (e.type === "compress") {
3267
3267
  const n = e.batch;
3268
- n.byteLength > this.compressionThreshold ? Vn(e.batch, { mtime: 0 }, (r, o) => {
3268
+ n.byteLength > this.compressionThreshold ? Gn(e.batch, { mtime: 0 }, (r, o) => {
3269
3269
  var l, a;
3270
3270
  r ? (this.debug.error("Openreplay compression error:", r), (l = this.worker) == null || l.postMessage({ type: "uncompressed", batch: n })) : (a = this.worker) == null || a.postMessage({ type: "compressed", batch: o });
3271
3271
  }) : (s = this.worker) == null || s.postMessage({ type: "uncompressed", batch: n });
@@ -3306,7 +3306,7 @@ class Er {
3306
3306
  return;
3307
3307
  }
3308
3308
  try {
3309
- oi(() => {
3309
+ ci(() => {
3310
3310
  var e;
3311
3311
  this.messages.unshift(oe(this.session.getTabId())), this.messages.unshift(re(this.timestamp())), (e = this.worker) == null || e.postMessage(this.messages), this.commitCallbacks.forEach((s) => s(this.messages)), this.messages.length = 0;
3312
3312
  });
@@ -3358,7 +3358,7 @@ class Er {
3358
3358
  // Use app.nodes.attachNodeListener for registered nodes instead
3359
3359
  attachEventListener(e, s, n, i = !0, r = !0) {
3360
3360
  i && (n = this.safe(n));
3361
- const o = () => e ? sn(e, s, n, r) : null, l = () => e ? nn(e, s, n, r) : null;
3361
+ const o = () => e ? rn(e, s, n, r) : null, l = () => e ? on(e, s, n, r) : null;
3362
3362
  this.attachStartCallback(o, i), this.attachStopCallback(l, i);
3363
3363
  }
3364
3364
  // TODO: full correct semantic
@@ -3456,7 +3456,7 @@ class Er {
3456
3456
  }
3457
3457
  async setupConditionalStart(e) {
3458
3458
  var d, f;
3459
- this.conditionsManager = new Jn(this, e);
3459
+ this.conditionsManager = new Qn(this, e);
3460
3460
  const s = await fetch(this.options.ingestPoint + "/v1/web/start", {
3461
3461
  method: "POST",
3462
3462
  headers: {
@@ -3647,12 +3647,12 @@ class Er {
3647
3647
  })
3648
3648
  });
3649
3649
  if (a.status !== 200) {
3650
- const w = await a.text(), I = w === we ? we : `Server error: ${a.status}. ${w}`;
3650
+ const v = await a.text(), I = v === ve ? ve : `Server error: ${a.status}. ${v}`;
3651
3651
  return se(I);
3652
3652
  }
3653
3653
  if (!this.worker) {
3654
- const w = "no worker found after start request (this should not happen in real world)";
3655
- return this.signalError(w, []), se(w);
3654
+ const v = "no worker found after start request (this should not happen in real world)";
3655
+ return this.signalError(v, []), se(v);
3656
3656
  }
3657
3657
  const {
3658
3658
  token: h,
@@ -3671,7 +3671,7 @@ class Er {
3671
3671
  userCity: N,
3672
3672
  userCountry: T,
3673
3673
  userDevice: m,
3674
- userOS: v,
3674
+ userOS: w,
3675
3675
  userState: k,
3676
3676
  canvasEnabled: x,
3677
3677
  canvasQuality: S,
@@ -3679,15 +3679,15 @@ class Er {
3679
3679
  assistOnly: _
3680
3680
  } = await a.json();
3681
3681
  if (typeof h != "string" || typeof c != "string" || typeof y != "number" && typeof y < "u" || typeof p != "string" || typeof g != "number" || typeof d != "number" && typeof d < "u") {
3682
- const w = `Incorrect server response: ${JSON.stringify(a)}`;
3683
- return this.signalError(w, []), se(w);
3682
+ const v = `Incorrect server response: ${JSON.stringify(a)}`;
3683
+ return this.signalError(v, []), se(v);
3684
3684
  }
3685
3685
  this.delay = g, this.session.setSessionToken(h), this.session.setUserInfo({
3686
3686
  userBrowser: E,
3687
3687
  userCity: N,
3688
3688
  userCountry: T,
3689
3689
  userDevice: m,
3690
- userOS: v,
3690
+ userOS: w,
3691
3691
  userState: k
3692
3692
  }), this.session.assign({
3693
3693
  sessionID: p,
@@ -3697,37 +3697,37 @@ class Er {
3697
3697
  type: "auth",
3698
3698
  token: h,
3699
3699
  beaconSizeLimit: d
3700
- }), !l && h === o && (this.debug.log("continuing session on new tab", this.session.getTabId()), this.send(Me(this.session.getTabId()))), Object.entries(this.session.getInfo().metadata).forEach(([w, I]) => this.send(ss(w, I))), this.localStorage.setItem(this.options.local_uuid_key, c), this.compressionThreshold = f;
3700
+ }), !l && h === o && (this.debug.log("continuing session on new tab", this.session.getTabId()), this.send(Me(this.session.getTabId()))), Object.entries(this.session.getInfo().metadata).forEach(([v, I]) => this.send(ts(v, I))), this.localStorage.setItem(this.options.local_uuid_key, c), this.compressionThreshold = f;
3701
3701
  const M = { sessionToken: h, userUUID: c, sessionID: p };
3702
- if (this.startCallbacks.forEach((w) => w(M)), this.featureFlags.reloadFlags(), await this.tagWatcher.fetchTags(this.options.ingestPoint, h), this.activityState = F.Active, x && !this.options.canvas.disableCanvas && (this.canvasRecorder = this.canvasRecorder ?? new ur(this, {
3702
+ if (this.startCallbacks.forEach((v) => v(M)), this.featureFlags.reloadFlags(), await this.tagWatcher.fetchTags(this.options.ingestPoint, h), this.activityState = F.Active, x && !this.options.canvas.disableCanvas && (this.canvasRecorder = this.canvasRecorder ?? new fr(this, {
3703
3703
  fps: b,
3704
3704
  quality: S,
3705
3705
  isDebug: this.options.canvas.__save_canvas_locally,
3706
3706
  fixedScaling: this.options.canvas.fixedCanvasScaling,
3707
3707
  useAnimationFrame: this.options.canvas.useAnimationFrame
3708
3708
  }), this.canvasRecorder.startTracking()), i) {
3709
- const w = this.bufferedMessages1.length > this.bufferedMessages2.length ? this.bufferedMessages1 : this.bufferedMessages2;
3710
- for (; w.length > 0; )
3711
- await this.flushBuffer(w);
3709
+ const v = this.bufferedMessages1.length > this.bufferedMessages2.length ? this.bufferedMessages1 : this.bufferedMessages2;
3710
+ for (; v.length > 0; )
3711
+ await this.flushBuffer(v);
3712
3712
  this.clearBuffers(), this.commit();
3713
3713
  } else
3714
3714
  this.insideIframe && this.rootId ? this.observer.crossdomainObserve(this.rootId, this.frameOderNumber) : this.observer.observe(), this.ticker.start();
3715
- this.uxtManager = this.uxtManager ? this.uxtManager : new lr(this, Ss);
3715
+ this.uxtManager = this.uxtManager ? this.uxtManager : new ur(this, ys);
3716
3716
  let O;
3717
- const D = this.localStorage.getItem(Ss);
3717
+ const D = this.localStorage.getItem(ys);
3718
3718
  if (D && (O = parseInt(D, 10)), location != null && location.search) {
3719
- const w = new URLSearchParams(location.search);
3720
- if (w.has("oruxt")) {
3721
- const I = w.get("oruxt");
3719
+ const v = new URLSearchParams(location.search);
3720
+ if (v.has("oruxt")) {
3721
+ const I = v.get("oruxt");
3722
3722
  O = I ? parseInt(I, 10) : void 0;
3723
3723
  }
3724
3724
  }
3725
- return O && (this.uxtManager.isActive ? this.onUxtCb.forEach((w) => w(O)) : this.uxtManager.getTest(O, h, !!D).then((w) => {
3726
- w && this.onUxtCb.forEach((I) => I(w));
3727
- })), Ir(M);
3725
+ return O && (this.uxtManager.isActive ? this.onUxtCb.forEach((v) => v(O)) : this.uxtManager.getTest(O, h, !!D).then((v) => {
3726
+ v && this.onUxtCb.forEach((I) => I(v));
3727
+ })), Er(M);
3728
3728
  } catch (a) {
3729
- if (this.stop(), this.session.reset(), a === we)
3730
- return this.signalError(we, []), se(we);
3729
+ if (this.stop(), this.session.reset(), a === ve)
3730
+ return this.signalError(ve, []), se(ve);
3731
3731
  this._debug("session_start", a);
3732
3732
  const h = a instanceof Error ? a.message : a.toString();
3733
3733
  return this.signalError(h, []), se(h);
@@ -3786,7 +3786,7 @@ class Er {
3786
3786
  trackWs(e) {
3787
3787
  const s = e;
3788
3788
  return (n, i, r = "down") => {
3789
- typeof n != "string" || typeof i != "string" || i.length > 5 * 1024 * 1024 || n.length > 255 || this.send(Mi("websocket", s, i, this.timestamp(), r, n));
3789
+ typeof n != "string" || typeof i != "string" || i.length > 5 * 1024 * 1024 || n.length > 255 || this.send(Li("websocket", s, i, this.timestamp(), r, n));
3790
3790
  };
3791
3791
  }
3792
3792
  stop(e = !0) {
@@ -3799,33 +3799,33 @@ class Er {
3799
3799
  }
3800
3800
  }
3801
3801
  }
3802
- function Cr(t) {
3802
+ function _r(t) {
3803
3803
  const e = navigator.connection || navigator.mozConnection || navigator.webkitConnection;
3804
3804
  if (e === void 0)
3805
3805
  return;
3806
- const s = () => t.send(Ei(Math.round(e.downlink * 1e3), e.type || "unknown"));
3806
+ const s = () => t.send(Ni(Math.round(e.downlink * 1e3), e.type || "unknown"));
3807
3807
  s(), e.addEventListener("change", s);
3808
3808
  }
3809
- const un = Z && "InstallTrigger" in window ? (t) => t.message + `
3809
+ const fn = Z && "InstallTrigger" in window ? (t) => t.message + `
3810
3810
  ` + t.stack : (t) => t.stack || t.message;
3811
- function _t(t) {
3812
- return t === void 0 ? "undefined" : t === null ? "null" : t instanceof Error ? un(t) : Array.isArray(t) ? `Array(${t.length})` : String(t);
3811
+ function Nt(t) {
3812
+ return t === void 0 ? "undefined" : t === null ? "null" : t instanceof Error ? fn(t) : Array.isArray(t) ? `Array(${t.length})` : String(t);
3813
3813
  }
3814
- function Nr(t) {
3814
+ function Or(t) {
3815
3815
  return typeof t != "number" ? "NaN" : t.toString();
3816
3816
  }
3817
- function _r(t) {
3817
+ function Rr(t) {
3818
3818
  return typeof t != "number" ? "NaN" : Math.floor(t).toString();
3819
3819
  }
3820
- function vs(t) {
3820
+ function Ss(t) {
3821
3821
  if (t === void 0)
3822
3822
  return "undefined";
3823
3823
  if (t === null)
3824
3824
  return "null";
3825
3825
  if (t instanceof Error)
3826
- return un(t);
3826
+ return fn(t);
3827
3827
  if (Array.isArray(t)) {
3828
- const e = t.length, s = t.slice(0, 10).map(_t).join(", ");
3828
+ const e = t.length, s = t.slice(0, 10).map(Nt).join(", ");
3829
3829
  return `Array(${e})[${s}]`;
3830
3830
  }
3831
3831
  if (typeof t == "object") {
@@ -3835,41 +3835,41 @@ function vs(t) {
3835
3835
  if (++s === 10)
3836
3836
  break;
3837
3837
  const i = t[n];
3838
- e.push(n + ": " + _t(i));
3838
+ e.push(n + ": " + Nt(i));
3839
3839
  }
3840
3840
  return "{" + e.join(", ") + "}";
3841
3841
  }
3842
3842
  return t.toString();
3843
3843
  }
3844
- function Or(t) {
3844
+ function Dr(t) {
3845
3845
  return typeof t[0] == "string" && t.unshift(t.shift().replace(/%(o|s|f|d|i)/g, (e, s) => {
3846
3846
  const n = t.shift();
3847
3847
  if (n === void 0)
3848
3848
  return e;
3849
3849
  switch (s) {
3850
3850
  case "o":
3851
- return vs(n);
3851
+ return Ss(n);
3852
3852
  case "s":
3853
- return _t(n);
3853
+ return Nt(n);
3854
3854
  case "f":
3855
- return Nr(n);
3855
+ return Or(n);
3856
3856
  case "d":
3857
3857
  case "i":
3858
- return _r(n);
3858
+ return Rr(n);
3859
3859
  default:
3860
3860
  return e;
3861
3861
  }
3862
- })), t.map(vs).join(" ");
3862
+ })), t.map(Ss).join(" ");
3863
3863
  }
3864
3864
  const ws = ["log", "info", "warn", "error", "debug", "assert"];
3865
- function Rr(t, e) {
3865
+ function Mr(t, e) {
3866
3866
  const s = Object.assign({
3867
3867
  consoleMethods: ws,
3868
3868
  consoleThrottling: 30
3869
3869
  }, e);
3870
3870
  if (!Array.isArray(s.consoleMethods) || s.consoleMethods.length === 0)
3871
3871
  return;
3872
- const n = t.safe((a, h) => t.send(Si(a, Or(h))));
3872
+ const n = t.safe((a, h) => t.send(vi(a, Dr(h))));
3873
3873
  let i = 0;
3874
3874
  const r = () => {
3875
3875
  i = 0;
@@ -3892,16 +3892,16 @@ function Rr(t, e) {
3892
3892
  }, l = t.safe((a) => o(a.console, a));
3893
3893
  l(window), t.observer.attachContextCallback(l);
3894
3894
  }
3895
- var dn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3896
- function Dr(t) {
3895
+ var pn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3896
+ function Ar(t) {
3897
3897
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3898
3898
  }
3899
- var fn = { exports: {} }, ht = { exports: {} }, ks;
3900
- function Mr() {
3901
- return ks || (ks = 1, function(t, e) {
3899
+ var gn = { exports: {} }, ht = { exports: {} }, vs;
3900
+ function Lr() {
3901
+ return vs || (vs = 1, function(t, e) {
3902
3902
  (function(s, n) {
3903
3903
  t.exports = n();
3904
- })(dn, function() {
3904
+ })(pn, function() {
3905
3905
  function s(p) {
3906
3906
  return !isNaN(parseFloat(p)) && isFinite(p);
3907
3907
  }
@@ -3944,9 +3944,9 @@ function Mr() {
3944
3944
  return this.getIsEval() ? p ? "[eval] (" + p + ":" + y + ":" + E + ")" : "[eval]:" + y + ":" + E : N ? N + " (" + p + ":" + y + ":" + E + ")" : p + ":" + y + ":" + E;
3945
3945
  }
3946
3946
  }, u.fromString = function(y) {
3947
- var E = y.indexOf("("), N = y.lastIndexOf(")"), T = y.substring(0, E), m = y.substring(E + 1, N).split(","), v = y.substring(N + 1);
3948
- if (v.indexOf("@") === 0)
3949
- var k = /@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(v, ""), x = k[1], S = k[2], b = k[3];
3947
+ var E = y.indexOf("("), N = y.lastIndexOf(")"), T = y.substring(0, E), m = y.substring(E + 1, N).split(","), w = y.substring(N + 1);
3948
+ if (w.indexOf("@") === 0)
3949
+ var k = /@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(w, ""), x = k[1], S = k[2], b = k[3];
3950
3950
  return new u({
3951
3951
  functionName: T,
3952
3952
  args: m || void 0,
@@ -3981,8 +3981,8 @@ function Mr() {
3981
3981
  }
3982
3982
  (function(t, e) {
3983
3983
  (function(s, n) {
3984
- t.exports = n(Mr());
3985
- })(dn, function(n) {
3984
+ t.exports = n(Lr());
3985
+ })(pn, function(n) {
3986
3986
  var i = /(^|@)\S+:\d+/, r = /^\s*at .*(\S+:\d+|\(native\))/m, o = /^(eval@)?(\[native code])?$/;
3987
3987
  return {
3988
3988
  /**
@@ -4101,10 +4101,10 @@ function Mr() {
4101
4101
  }
4102
4102
  };
4103
4103
  });
4104
- })(fn);
4105
- var Ar = fn.exports;
4106
- const Lr = /* @__PURE__ */ Dr(Ar);
4107
- function Ts(t) {
4104
+ })(gn);
4105
+ var Pr = gn.exports;
4106
+ const Fr = /* @__PURE__ */ Ar(Pr);
4107
+ function ks(t) {
4108
4108
  return [
4109
4109
  {
4110
4110
  columnNumber: t.colno,
@@ -4118,18 +4118,18 @@ function Ts(t) {
4118
4118
  function $e(t, e, s = {}) {
4119
4119
  let n = e;
4120
4120
  try {
4121
- n = Lr.parse(t);
4121
+ n = Fr.parse(t);
4122
4122
  } catch {
4123
4123
  }
4124
- return kt(t.name, t.message, JSON.stringify(n), JSON.stringify(s));
4124
+ return vt(t.name, t.message, JSON.stringify(n), JSON.stringify(s));
4125
4125
  }
4126
- function pn(t, e = window, s = {}) {
4126
+ function mn(t, e = window, s = {}) {
4127
4127
  if (t instanceof ErrorEvent) {
4128
4128
  if (t.error instanceof Error)
4129
- return $e(t.error, Ts(t), s);
4129
+ return $e(t.error, ks(t), s);
4130
4130
  {
4131
4131
  let [n, i] = t.message.split(":");
4132
- return i || (n = "Error", i = t.message), kt(n, i, JSON.stringify(Ts(t)), JSON.stringify(s));
4132
+ return i || (n = "Error", i = t.message), vt(n, i, JSON.stringify(ks(t)), JSON.stringify(s));
4133
4133
  }
4134
4134
  } else if ("PromiseRejectionEvent" in e && t instanceof e.PromiseRejectionEvent) {
4135
4135
  if (t.reason instanceof Error)
@@ -4141,34 +4141,34 @@ function pn(t, e = window, s = {}) {
4141
4141
  } catch {
4142
4142
  n = String(t.reason);
4143
4143
  }
4144
- return kt("Unhandled Promise Rejection", n, "[]", JSON.stringify(s));
4144
+ return vt("Unhandled Promise Rejection", n, "[]", JSON.stringify(s));
4145
4145
  }
4146
4146
  }
4147
4147
  return null;
4148
4148
  }
4149
- function Pr(t, e) {
4149
+ function Br(t, e) {
4150
4150
  const s = Object.assign({
4151
4151
  captureExceptions: !0
4152
4152
  }, e);
4153
4153
  function n(i) {
4154
4154
  function r(o) {
4155
- const l = pn(o, i);
4155
+ const l = mn(o, i);
4156
4156
  l != null && t.send(l);
4157
4157
  }
4158
4158
  t.attachEventListener(i, "unhandledrejection", r), t.attachEventListener(i, "error", r);
4159
4159
  }
4160
4160
  s.captureExceptions && (t.observer.attachContextCallback(n), n(window));
4161
4161
  }
4162
- function Is(t, e = document.location) {
4162
+ function Ts(t, e = document.location) {
4163
4163
  return t = t.trim(), t.startsWith("//") || t.startsWith("http://") || t.startsWith("https://") || t.startsWith("data:") ? t : t.startsWith("/") ? e.origin + t : e.origin + e.pathname + t;
4164
4164
  }
4165
- function Fr(t) {
4166
- return Zn && (t.startsWith("data:image/svg+xml") || t.match(/.svg$|/i));
4167
- }
4168
- const Br = "https://static.openreplay.com/tracker/placeholder.jpeg";
4169
4165
  function Ur(t) {
4166
+ return ti && (t.startsWith("data:image/svg+xml") || t.match(/.svg$|/i));
4167
+ }
4168
+ const Hr = "https://static.openreplay.com/tracker/placeholder.jpeg";
4169
+ function jr(t) {
4170
4170
  function e(l, a) {
4171
- t.attributeSender.sendSetAttribute(l, "src", Br);
4171
+ t.attributeSender.sendSetAttribute(l, "src", Hr);
4172
4172
  const { width: h, height: c } = a.getBoundingClientRect();
4173
4173
  a.hasAttribute("width") || t.attributeSender.sendSetAttribute(l, "width", String(h)), a.hasAttribute("height") || t.attributeSender.sendSetAttribute(l, "height", String(c));
4174
4174
  }
@@ -4176,17 +4176,17 @@ function Ur(t) {
4176
4176
  const { srcset: h } = a;
4177
4177
  if (!h)
4178
4178
  return;
4179
- const c = h.split(h.match(/,\s+/) ? /,\s+/ : ",").map((u) => Is(u)).join(", ");
4179
+ const c = h.split(h.match(/,\s+/) ? /,\s+/ : ",").map((u) => Ts(u)).join(", ");
4180
4180
  t.attributeSender.sendSetAttribute(l, "srcset", c);
4181
4181
  }, n = function(l, a) {
4182
- a.src.length > ei && e(l, a), t.send(St(l, "src", a.src, t.getBaseHref()));
4182
+ a.src.length > si && e(l, a), t.send(yt(l, "src", a.src, t.getBaseHref()));
4183
4183
  }, i = t.safe(function(l) {
4184
- const a = Is(l.src || "");
4185
- en(a) && t.send(an(t.timestamp(), 0, 0, 0, 0, 0, a, "img", 0, !1));
4184
+ const a = Ts(l.src || "");
4185
+ sn(a) && t.send(ln(t.timestamp(), 0, 0, 0, 0, 0, a, "img", 0, !1));
4186
4186
  }), r = t.safe(function(l) {
4187
4187
  const a = t.nodes.getID(l);
4188
- a !== void 0 && l.complete && (l.naturalHeight === 0 && l.naturalWidth === 0 && !Fr(l.src) ? i(l) : t.sanitizer.isHidden(a) || t.sanitizer.isObscured(a) ? e(a, l) : (n(a, l), s(a, l)));
4189
- }), o = tn(t.safe((l) => {
4188
+ a !== void 0 && l.complete && (l.naturalHeight === 0 && l.naturalWidth === 0 && !Ur(l.src) ? i(l) : t.sanitizer.isHidden(a) || t.sanitizer.isObscured(a) ? e(a, l) : (n(a, l), s(a, l)));
4189
+ }), o = nn(t.safe((l) => {
4190
4190
  for (const a of l)
4191
4191
  if (a.type === "attributes") {
4192
4192
  const h = a.target, c = t.nodes.getID(h);
@@ -4201,7 +4201,7 @@ function Ur(t) {
4201
4201
  B(l, "img") && (t.nodes.attachNodeListener(l, "error", () => i(l)), t.nodes.attachNodeListener(l, "load", () => r(l)), r(l), o.observe(l, { attributes: !0, attributeFilter: ["src", "srcset"] }));
4202
4202
  });
4203
4203
  }
4204
- const Hr = [
4204
+ const zr = [
4205
4205
  "text",
4206
4206
  "password",
4207
4207
  "email",
@@ -4212,16 +4212,16 @@ const Hr = [
4212
4212
  "tel",
4213
4213
  "time"
4214
4214
  ];
4215
- function jr(t) {
4216
- return B(t, "textarea") ? !0 : B(t, "input") ? Hr.includes(t.type) : !1;
4215
+ function Wr(t) {
4216
+ return B(t, "textarea") ? !0 : B(t, "input") ? zr.includes(t.type) : !1;
4217
4217
  }
4218
- function zr(t) {
4218
+ function qr(t) {
4219
4219
  if (!B(t, "input"))
4220
4220
  return !1;
4221
4221
  const e = t.type;
4222
4222
  return e === "checkbox" || e === "radio";
4223
4223
  }
4224
- const Wr = Z && "labels" in HTMLInputElement.prototype ? (t) => {
4224
+ const $r = Z && "labels" in HTMLInputElement.prototype ? (t) => {
4225
4225
  let e = t;
4226
4226
  for (; (e = e.parentNode) !== null; )
4227
4227
  if (B(e, "label"))
@@ -4241,20 +4241,20 @@ const Wr = Z && "labels" in HTMLInputElement.prototype ? (t) => {
4241
4241
  return n[0];
4242
4242
  }
4243
4243
  };
4244
- function gn(t) {
4245
- let e = Ft(t);
4244
+ function bn(t) {
4245
+ let e = Pt(t);
4246
4246
  if (e === null) {
4247
- const s = Wr(t);
4247
+ const s = $r(t);
4248
4248
  e = s && s.innerText || t.placeholder || t.name || t.id || t.className || t.type;
4249
4249
  }
4250
- return Zs(e).slice(0, 100);
4250
+ return tn(e).slice(0, 100);
4251
4251
  }
4252
4252
  const de = {
4253
4253
  Plain: 0,
4254
4254
  Obscured: 1,
4255
4255
  Hidden: 2
4256
4256
  };
4257
- function qr(t, e) {
4257
+ function Vr(t, e) {
4258
4258
  const s = Object.assign({
4259
4259
  obscureInputNumbers: !0,
4260
4260
  obscureInputEmails: !0,
@@ -4277,7 +4277,7 @@ function qr(t, e) {
4277
4277
  }
4278
4278
  function i(c, u) {
4279
4279
  const { value: d, mask: f } = n(c, u);
4280
- t.send(mi(c, d, f));
4280
+ t.send(yi(c, d, f));
4281
4281
  }
4282
4282
  const r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
4283
4283
  t.attachStopCallback(() => {
@@ -4287,7 +4287,7 @@ function qr(t, e) {
4287
4287
  r.get(c) !== u.value && (r.set(c, u.value), i(c, u));
4288
4288
  }
4289
4289
  function a(c, u) {
4290
- o.get(c) !== u && (o.set(c, u), t.send(bi(c, u)));
4290
+ o.get(c) !== u && (o.set(c, u), t.send(Si(c, u)));
4291
4291
  }
4292
4292
  t.ticker.attach(() => {
4293
4293
  r.forEach((c, u) => {
@@ -4303,13 +4303,13 @@ function qr(t, e) {
4303
4303
  });
4304
4304
  }, 3);
4305
4305
  function h(c, u, d, f) {
4306
- const { value: g, mask: p } = n(c, u), y = gn(u);
4307
- t.send(Ai(c, g, p !== 0, y, d, f));
4306
+ const { value: g, mask: p } = n(c, u), y = bn(u);
4307
+ t.send(Pi(c, g, p !== 0, y, d, f));
4308
4308
  }
4309
4309
  t.nodes.attachNodeCallback(t.safe((c) => {
4310
4310
  const u = t.nodes.getID(c);
4311
4311
  if (u !== void 0) {
4312
- if (B(c, "select") && (i(u, c), t.nodes.attachNodeListener(c, "change", () => i(u, c))), jr(c)) {
4312
+ if (B(c, "select") && (i(u, c), t.nodes.attachNodeListener(c, "change", () => i(u, c))), Wr(c)) {
4313
4313
  l(u, c);
4314
4314
  let d = 0, f = 0, g = 0;
4315
4315
  const p = () => {
@@ -4322,16 +4322,16 @@ function qr(t, e) {
4322
4322
  t.nodes.attachNodeListener(c, "focus", p), t.nodes.attachNodeListener(c, "input", y), t.nodes.attachNodeListener(c, "change", E);
4323
4323
  return;
4324
4324
  }
4325
- if (zr(c)) {
4325
+ if (qr(c)) {
4326
4326
  a(u, c.checked), t.nodes.attachNodeListener(c, "change", () => a(u, c.checked));
4327
4327
  return;
4328
4328
  }
4329
4329
  }
4330
4330
  }));
4331
4331
  }
4332
- let q, Ht, mn;
4333
- function $r(t, e) {
4334
- if (mn = /* @__PURE__ */ new Date(), t.nodeType !== Node.ELEMENT_NODE)
4332
+ let q, Ut, yn;
4333
+ function Xr(t, e) {
4334
+ if (yn = /* @__PURE__ */ new Date(), t.nodeType !== Node.ELEMENT_NODE)
4335
4335
  throw new Error("Can't generate CSS selector for non-element node type.");
4336
4336
  if (t.tagName.toLowerCase() === "html")
4337
4337
  return "html";
@@ -4347,25 +4347,25 @@ function $r(t, e) {
4347
4347
  maxNumberOfTries: 1e4,
4348
4348
  timeoutMs: void 0
4349
4349
  };
4350
- q = { ...s, ...e }, Ht = Vr(q.root, s);
4350
+ q = { ...s, ...e }, Ut = Gr(q.root, s);
4351
4351
  let n = Ce(t, "all", () => Ce(t, "two", () => Ce(t, "one", () => Ce(t, "none"))));
4352
4352
  if (n) {
4353
- const i = Sn(vn(n, t));
4353
+ const i = vn(kn(n, t));
4354
4354
  return i.length > 0 && (n = i[0]), Ye(n);
4355
4355
  } else
4356
4356
  throw new Error("Selector was not found.");
4357
4357
  }
4358
- function Vr(t, e) {
4358
+ function Gr(t, e) {
4359
4359
  return t.nodeType === Node.DOCUMENT_NODE ? t : t === e.root ? t.ownerDocument : t;
4360
4360
  }
4361
4361
  function Ce(t, e, s) {
4362
4362
  let n = null, i = [], r = t, o = 0;
4363
4363
  for (; r; ) {
4364
- const l = (/* @__PURE__ */ new Date()).getTime() - mn.getTime();
4364
+ const l = (/* @__PURE__ */ new Date()).getTime() - yn.getTime();
4365
4365
  if (q.timeoutMs !== void 0 && l > q.timeoutMs)
4366
4366
  throw new Error(`Timeout: Can't find a unique selector after ${l}ms`);
4367
- let a = _e(Xr(r)) || _e(...Gr(r)) || _e(...Kr(r)) || _e(Jr(r)) || [Cs()];
4368
- const h = Yr(r);
4367
+ let a = _e(Kr(r)) || _e(...Jr(r)) || _e(...Yr(r)) || _e(Qr(r)) || [Es()];
4368
+ const h = Zr(r);
4369
4369
  if (e == "all")
4370
4370
  h && (a = a.concat(a.filter(ut).map((c) => Ne(c, h))));
4371
4371
  else if (e == "two")
@@ -4374,21 +4374,21 @@ function Ce(t, e, s) {
4374
4374
  const [c] = a = a.slice(0, 1);
4375
4375
  h && ut(c) && (a = [Ne(c, h)]);
4376
4376
  } else
4377
- e == "none" && (a = [Cs()], h && (a = [Ne(a[0], h)]));
4377
+ e == "none" && (a = [Es()], h && (a = [Ne(a[0], h)]));
4378
4378
  for (let c of a)
4379
4379
  c.level = o;
4380
- if (i.push(a), i.length >= q.seedMinLength && (n = xs(i, s), n))
4380
+ if (i.push(a), i.length >= q.seedMinLength && (n = Is(i, s), n))
4381
4381
  break;
4382
4382
  r = r.parentElement, o++;
4383
4383
  }
4384
- return n || (n = xs(i, s)), !n && s ? s() : n;
4384
+ return n || (n = Is(i, s)), !n && s ? s() : n;
4385
4385
  }
4386
- function xs(t, e) {
4387
- const s = Sn(yn(t));
4386
+ function Is(t, e) {
4387
+ const s = vn(wn(t));
4388
4388
  if (s.length > q.threshold)
4389
4389
  return e ? e() : null;
4390
4390
  for (let n of s)
4391
- if (bn(n))
4391
+ if (Sn(n))
4392
4392
  return n;
4393
4393
  return null;
4394
4394
  }
@@ -4400,12 +4400,12 @@ function Ye(t) {
4400
4400
  }
4401
4401
  return s;
4402
4402
  }
4403
- function Es(t) {
4403
+ function xs(t) {
4404
4404
  return t.map((e) => e.penalty).reduce((e, s) => e + s, 0);
4405
4405
  }
4406
- function bn(t) {
4406
+ function Sn(t) {
4407
4407
  const e = Ye(t);
4408
- switch (Ht.querySelectorAll(e).length) {
4408
+ switch (Ut.querySelectorAll(e).length) {
4409
4409
  case 0:
4410
4410
  throw new Error(`Can't select any node with this selector: ${e}`);
4411
4411
  case 1:
@@ -4414,39 +4414,39 @@ function bn(t) {
4414
4414
  return !1;
4415
4415
  }
4416
4416
  }
4417
- function Xr(t) {
4417
+ function Kr(t) {
4418
4418
  const e = t.getAttribute("id");
4419
4419
  return e && q.idName(e) ? {
4420
4420
  name: "#" + CSS.escape(e),
4421
4421
  penalty: 0
4422
4422
  } : null;
4423
4423
  }
4424
- function Gr(t) {
4424
+ function Jr(t) {
4425
4425
  return Array.from(t.attributes).filter((s) => q.attr(s.name, s.value)).map((s) => ({
4426
4426
  name: `[${CSS.escape(s.name)}="${CSS.escape(s.value)}"]`,
4427
4427
  penalty: 0.5
4428
4428
  }));
4429
4429
  }
4430
- function Kr(t) {
4430
+ function Yr(t) {
4431
4431
  return Array.from(t.classList).filter(q.className).map((s) => ({
4432
4432
  name: "." + CSS.escape(s),
4433
4433
  penalty: 1
4434
4434
  }));
4435
4435
  }
4436
- function Jr(t) {
4436
+ function Qr(t) {
4437
4437
  const e = t.tagName.toLowerCase();
4438
4438
  return q.tagName(e) ? {
4439
4439
  name: e,
4440
4440
  penalty: 2
4441
4441
  } : null;
4442
4442
  }
4443
- function Cs() {
4443
+ function Es() {
4444
4444
  return {
4445
4445
  name: "*",
4446
4446
  penalty: 3
4447
4447
  };
4448
4448
  }
4449
- function Yr(t) {
4449
+ function Zr(t) {
4450
4450
  const e = t.parentNode;
4451
4451
  if (!e)
4452
4452
  return null;
@@ -4468,23 +4468,23 @@ function ut(t) {
4468
4468
  return t.name !== "html" && !t.name.startsWith("#");
4469
4469
  }
4470
4470
  function _e(...t) {
4471
- const e = t.filter(Qr);
4471
+ const e = t.filter(eo);
4472
4472
  return e.length > 0 ? e : null;
4473
4473
  }
4474
- function Qr(t) {
4474
+ function eo(t) {
4475
4475
  return t != null;
4476
4476
  }
4477
- function* yn(t, e = []) {
4477
+ function* wn(t, e = []) {
4478
4478
  if (t.length > 0)
4479
4479
  for (let s of t[0])
4480
- yield* yn(t.slice(1, t.length), e.concat(s));
4480
+ yield* wn(t.slice(1, t.length), e.concat(s));
4481
4481
  else
4482
4482
  yield e;
4483
4483
  }
4484
- function Sn(t) {
4485
- return [...t].sort((e, s) => Es(e) - Es(s));
4484
+ function vn(t) {
4485
+ return [...t].sort((e, s) => xs(e) - xs(s));
4486
4486
  }
4487
- function* vn(t, e, s = {
4487
+ function* kn(t, e, s = {
4488
4488
  counter: 0,
4489
4489
  visited: /* @__PURE__ */ new Map()
4490
4490
  }) {
@@ -4498,14 +4498,14 @@ function* vn(t, e, s = {
4498
4498
  const r = Ye(i);
4499
4499
  if (s.visited.has(r))
4500
4500
  return;
4501
- bn(i) && Zr(i, e) && (yield i, s.visited.set(r, !0), yield* vn(i, e, s));
4501
+ Sn(i) && to(i, e) && (yield i, s.visited.set(r, !0), yield* kn(i, e, s));
4502
4502
  }
4503
4503
  }
4504
- function Zr(t, e) {
4505
- return Ht.querySelector(Ye(t)) === e;
4504
+ function to(t, e) {
4505
+ return Ut.querySelector(Ye(t)) === e;
4506
4506
  }
4507
- function eo(t, e, s) {
4508
- return $r(t, {
4507
+ function so(t, e, s) {
4508
+ return Xr(t, {
4509
4509
  root: e.body,
4510
4510
  seedMinLength: 3,
4511
4511
  optimizedMinLength: (s == null ? void 0 : s.minSelectorDepth) || 2,
@@ -4513,21 +4513,21 @@ function eo(t, e, s) {
4513
4513
  maxNumberOfTries: (s == null ? void 0 : s.maxOptimiseTries) || 1e4
4514
4514
  });
4515
4515
  }
4516
- function Ot(t) {
4516
+ function _t(t) {
4517
4517
  const e = t.tagName.toUpperCase();
4518
4518
  return e === "BUTTON" || e === "A" || e === "LI" || e === "SELECT" || e === "TR" || e === "TH" || t.onclick != null || t.getAttribute("role") === "button";
4519
4519
  }
4520
- function Ns(t, e) {
4521
- return t instanceof Element ? to(t, e) : null;
4520
+ function Cs(t, e) {
4521
+ return t instanceof Element ? no(t, e) : null;
4522
4522
  }
4523
- function to(t, e) {
4523
+ function no(t, e) {
4524
4524
  let s = t;
4525
4525
  for (; s !== null && s !== e.documentElement; ) {
4526
4526
  if (ae(s, "masked"))
4527
4527
  return null;
4528
4528
  s = s.parentElement;
4529
4529
  }
4530
- if (Et(t)) {
4530
+ if (xt(t)) {
4531
4531
  let n = t.ownerSVGElement;
4532
4532
  for (; n !== null; )
4533
4533
  t = n, n = n.ownerSVGElement;
@@ -4536,23 +4536,23 @@ function to(t, e) {
4536
4536
  const n = s.tagName.toUpperCase();
4537
4537
  if (n === "LABEL")
4538
4538
  return null;
4539
- if (n === "INPUT" || Ot(s) || Ft(s) !== null)
4539
+ if (n === "INPUT" || _t(s) || Pt(s) !== null)
4540
4540
  return s;
4541
4541
  s = s.parentElement;
4542
4542
  }
4543
4543
  return t === e.documentElement ? null : t;
4544
4544
  }
4545
- function so(t, e) {
4545
+ function io(t, e) {
4546
4546
  const { disableClickmaps: s = !1 } = e || {};
4547
4547
  function n(m) {
4548
- const v = Ft(m);
4549
- if (v !== null)
4550
- return v;
4548
+ const w = Pt(m);
4549
+ if (w !== null)
4550
+ return w;
4551
4551
  if (B(m, "input"))
4552
- return gn(m);
4553
- if (Ot(m)) {
4552
+ return bn(m);
4553
+ if (_t(m)) {
4554
4554
  let k = "";
4555
- return m instanceof HTMLElement && (k = t.sanitizer.getInnerTextSecure(m)), k = k || m.id || m.className, Zs(k).slice(0, 100);
4555
+ return m instanceof HTMLElement && (k = t.sanitizer.getInnerTextSecure(m)), k = k || m.id || m.className, tn(k).slice(0, 100);
4556
4556
  }
4557
4557
  return "";
4558
4558
  }
@@ -4564,8 +4564,8 @@ function so(t, e) {
4564
4564
  c = m;
4565
4565
  return;
4566
4566
  }
4567
- const v = (m - c) / y;
4568
- d > 4 && v > p && t.send(Li(V())), f = 0, d = 0, c = m;
4567
+ const w = (m - c) / y;
4568
+ d > 4 && w > p && t.send(Fi(V())), f = 0, d = 0, c = m;
4569
4569
  }
4570
4570
  t.attachStartCallback(() => {
4571
4571
  g = setInterval(() => E(), y);
@@ -4573,14 +4573,14 @@ function so(t, e) {
4573
4573
  i = -1, r = -1, o = !1, l = null, h = {}, g && clearInterval(g);
4574
4574
  });
4575
4575
  const N = () => {
4576
- o && (t.send(yi(i, r)), o = !1);
4577
- }, T = (m, v = !1) => {
4576
+ o && (t.send(wi(i, r)), o = !1);
4577
+ }, T = (m, w = !1) => {
4578
4578
  function k(S, b, _) {
4579
- return h[S] = h[S] || eo(b, m, _);
4579
+ return h[S] = h[S] || so(b, m, _);
4580
4580
  }
4581
- const x = v ? t.attachEventListener.bind(t) : t.nodes.attachNodeListener.bind(t.nodes);
4581
+ const x = w ? t.attachEventListener.bind(t) : t.nodes.attachNodeListener.bind(t.nodes);
4582
4582
  x(m.documentElement, "mouseover", (S) => {
4583
- const b = Ns(S.target, m);
4583
+ const b = Cs(S.target, m);
4584
4584
  b !== l && (l = b, a = performance.now());
4585
4585
  }), x(m, "mousemove", (S) => {
4586
4586
  const [b, _] = t.observer.getDocumentOffset(m);
@@ -4588,13 +4588,13 @@ function so(t, e) {
4588
4588
  const M = Math.sign(S.movementX);
4589
4589
  f += Math.abs(S.movementX) + Math.abs(S.movementY), M !== u && (u = M, d++);
4590
4590
  }, !1), x(m, "click", (S) => {
4591
- const b = Ns(S.target, m);
4591
+ const b = Cs(S.target, m);
4592
4592
  if (!S.clientX && !S.clientY || b === null)
4593
4593
  return;
4594
4594
  const _ = t.nodes.getID(b);
4595
4595
  if (_ !== void 0) {
4596
- const M = S.pageX, O = S.pageY, D = m.documentElement.scrollWidth, w = m.documentElement.scrollHeight, I = _s(M / D), A = _s(O / w);
4597
- N(), t.send(Ri(_, l === b ? Math.round(performance.now() - a) : 0, n(b), Ot(b) && !s ? k(_, b, e) : "", I, A), !0);
4596
+ const M = S.pageX, O = S.pageY, D = m.documentElement.scrollWidth, v = m.documentElement.scrollHeight, I = Ns(M / D), A = Ns(O / v);
4597
+ N(), t.send(Mi(_, l === b ? Math.round(performance.now() - a) : 0, n(b), _t(b) && !s ? k(_, b, e) : "", I, A), !0);
4598
4598
  }
4599
4599
  l = null;
4600
4600
  });
@@ -4603,10 +4603,10 @@ function so(t, e) {
4603
4603
  We(m) && T(m);
4604
4604
  }), T(document, !0), t.ticker.attach(N, (e == null ? void 0 : e.trackingOffset) || 7);
4605
4605
  }
4606
- function _s(t) {
4606
+ function Ns(t) {
4607
4607
  return Math.round(t * 1e4);
4608
4608
  }
4609
- function no(t) {
4609
+ function ro(t) {
4610
4610
  const e = [], s = document.getElementsByTagName("*"), n = /url\(("[^"]*"|'[^']*'|[^)]*)\)/i;
4611
4611
  for (let i = 0; i < s.length; i++) {
4612
4612
  const r = s[i];
@@ -4631,7 +4631,7 @@ function no(t) {
4631
4631
  }
4632
4632
  return e;
4633
4633
  }
4634
- function io(t, e) {
4634
+ function oo(t, e) {
4635
4635
  let s = Math.max(document.documentElement && document.documentElement.clientWidth || 0, window.innerWidth || 0) * Math.max(document.documentElement && document.documentElement.clientHeight || 0, window.innerHeight || 0) / 10, n = s * t;
4636
4636
  for (let i = 0; i < e.length; i++) {
4637
4637
  const { time: r, area: o } = e[i];
@@ -4639,7 +4639,7 @@ function io(t, e) {
4639
4639
  }
4640
4640
  return s === 0 ? 0 : n / s;
4641
4641
  }
4642
- function ro(t, e) {
4642
+ function ao(t, e) {
4643
4643
  const s = Object.assign({
4644
4644
  captureResourceTimings: !0,
4645
4645
  capturePageLoadTimings: !0,
@@ -4651,7 +4651,7 @@ function ro(t, e) {
4651
4651
  let n = {};
4652
4652
  function i(h) {
4653
4653
  var u;
4654
- if (h.duration < 0 || !en(h.name) || t.isServiceURL(h.name))
4654
+ if (h.duration < 0 || !sn(h.name) || t.isServiceURL(h.name))
4655
4655
  return;
4656
4656
  n !== null && (n[h.name] = h.startTime + h.duration);
4657
4657
  let c = !1;
@@ -4660,7 +4660,7 @@ function ro(t, e) {
4660
4660
  c = !0;
4661
4661
  return;
4662
4662
  }
4663
- }), !c && t.send(an(
4663
+ }), !c && t.send(ln(
4664
4664
  h.startTime + ye(),
4665
4665
  h.duration,
4666
4666
  h.responseStart && h.startTime ? h.responseStart - h.startTime : 0,
@@ -4710,7 +4710,7 @@ function ro(t, e) {
4710
4710
  loadEventStart: y,
4711
4711
  loadEventEnd: E
4712
4712
  } = performance.timing;
4713
- t.send(vi(u - c || 0, d - c || 0, f - c || 0, g - c || 0, p - c || 0, y - c || 0, E - c || 0, l, a));
4713
+ t.send(ki(u - c || 0, d - c || 0, f - c || 0, g - c || 0, p - c || 0, y - c || 0, E - c || 0, l, a));
4714
4714
  }
4715
4715
  }, 30);
4716
4716
  }
@@ -4720,10 +4720,10 @@ function ro(t, e) {
4720
4720
  if (f)
4721
4721
  return;
4722
4722
  const g = performance.now();
4723
- if (n !== null && (h = Math.max.apply(null, Object.keys(n).map((p) => n[p])), g - h > 1e3 && (d = no(n), n = null)), u !== null && (g - u > 50 && (c = g), u = g - c > 5e3 ? null : g), d !== null && u === null || g > 3e4) {
4723
+ if (n !== null && (h = Math.max.apply(null, Object.keys(n).map((p) => n[p])), g - h > 1e3 && (d = ro(n), n = null)), u !== null && (g - u > 50 && (c = g), u = g - c > 5e3 ? null : g), d !== null && u === null || g > 3e4) {
4724
4724
  f = !0, n = null;
4725
- const p = d === null ? 0 : io(a || l, d), { domContentLoadedEventEnd: y, navigationStart: E } = performance.timing, N = u === null ? Math.max(c, a, y - E || 0) : 0;
4726
- t.send(wi(p, a > h ? a : h, N));
4725
+ const p = d === null ? 0 : oo(a || l, d), { domContentLoadedEventEnd: y, navigationStart: E } = performance.timing, N = u === null ? Math.max(c, a, y - E || 0) : 0;
4726
+ t.send(Ti(p, a > h ? a : h, N));
4727
4727
  }
4728
4728
  });
4729
4729
  }
@@ -4735,17 +4735,17 @@ function dt(t) {
4735
4735
  e && e.scrollY || t.documentElement && t.documentElement.scrollTop || t.body && t.body.scrollTop || 0
4736
4736
  ];
4737
4737
  }
4738
- function oo(t, e) {
4738
+ function co(t, e) {
4739
4739
  let s = !1;
4740
4740
  const n = /* @__PURE__ */ new Map();
4741
4741
  function i(l) {
4742
- ln(l) && (ee(l) && n.set(l, [l.scrollLeft, l.scrollTop]), We(l) && n.set(l, dt(l)));
4742
+ un(l) && (ee(l) && n.set(l, [l.scrollLeft, l.scrollTop]), We(l) && n.set(l, dt(l)));
4743
4743
  }
4744
4744
  const r = t.safe(() => {
4745
- e || t.send(ci(...dt(document)));
4745
+ e || t.send(hi(...dt(document)));
4746
4746
  }), o = t.safe((l, a) => {
4747
4747
  const h = t.nodes.getID(a);
4748
- h !== void 0 && t.send(gi(h, l[0], l[1]));
4748
+ h !== void 0 && t.send(bi(h, l[0], l[1]));
4749
4749
  });
4750
4750
  t.attachStartCallback(r), t.attachStopCallback(() => {
4751
4751
  s = !1, n.clear();
@@ -4764,30 +4764,30 @@ function oo(t, e) {
4764
4764
  s && (r(), s = !1), n.forEach(o), n.clear();
4765
4765
  }, 5, !1);
4766
4766
  }
4767
- function ao(t) {
4767
+ function lo(t) {
4768
4768
  let e, s, n, i, r = document.referrer;
4769
4769
  const o = t.safe(() => {
4770
4770
  const { URL: h } = document;
4771
- h !== e && (e = h, t.send(Ui(e, r, i, document.title)), i = 0, r = e);
4771
+ h !== e && (e = h, t.send(ji(e, r, i, document.title)), i = 0, r = e);
4772
4772
  }), l = t.safe(() => {
4773
4773
  const { innerWidth: h, innerHeight: c } = window;
4774
- (h !== s || c !== n) && (s = h, n = c, t.send(ai(s, n)));
4775
- }), a = document.hidden === void 0 ? Function.prototype : t.safe(() => t.send(Ci(document.hidden)));
4774
+ (h !== s || c !== n) && (s = h, n = c, t.send(li(s, n)));
4775
+ }), a = document.hidden === void 0 ? Function.prototype : t.safe(() => t.send(_i(document.hidden)));
4776
4776
  t.attachStartCallback(() => {
4777
4777
  e = null, i = ye(), s = n = -1, o(), l(), a();
4778
4778
  }), document.hidden !== void 0 && t.attachEventListener(document, "visibilitychange", a, !1, !1), t.ticker.attach(o, 1, !1), t.ticker.attach(l, 5, !1);
4779
4779
  }
4780
- function Os(t) {
4780
+ function _s(t) {
4781
4781
  return Je(t) && // @ts-ignore
4782
4782
  !!t.adoptedStyleSheets;
4783
4783
  }
4784
- let co = 15;
4785
- function wn() {
4786
- return co++;
4784
+ let ho = 15;
4785
+ function Tn() {
4786
+ return ho++;
4787
4787
  }
4788
4788
  const Oe = /* @__PURE__ */ new Map();
4789
- function lo(t) {
4790
- if (t === null || !Os(document))
4789
+ function uo(t) {
4790
+ if (t === null || !_s(document))
4791
4791
  return;
4792
4792
  const e = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), n = (o) => setTimeout(() => {
4793
4793
  let l = t.nodes.getID(o);
@@ -4800,7 +4800,7 @@ function lo(t) {
4800
4800
  for (const u of c) {
4801
4801
  let d = e.get(u);
4802
4802
  const f = !d;
4803
- if (d || (d = wn(), e.set(u, d)), a.includes(d) || t.send(on(d, l)), f) {
4803
+ if (d || (d = Tn(), e.set(u, d)), a.includes(d) || t.send(cn(d, l)), f) {
4804
4804
  const g = u.cssRules;
4805
4805
  for (let p = 0; p < g.length; p++)
4806
4806
  t.send(wt(d, g[p].cssText, p, t.getBaseHref()));
@@ -4809,7 +4809,7 @@ function lo(t) {
4809
4809
  }
4810
4810
  if (Symbol.iterator in a)
4811
4811
  for (const u of a)
4812
- h.includes(u) || t.send(Di(u, l));
4812
+ h.includes(u) || t.send(Ai(u, l));
4813
4813
  s.set(l, h);
4814
4814
  }, 20);
4815
4815
  function i(o) {
@@ -4830,11 +4830,11 @@ function lo(t) {
4830
4830
  o.CSSStyleSheet.prototype.replace = function(h) {
4831
4831
  return l.call(this, h).then((c) => {
4832
4832
  const u = e.get(this);
4833
- return u && t.send(rs(u, h, t.getBaseHref())), c;
4833
+ return u && t.send(is(u, h, t.getBaseHref())), c;
4834
4834
  });
4835
4835
  }, o.CSSStyleSheet.prototype.replaceSync = function(h) {
4836
4836
  const c = e.get(this);
4837
- return c && t.send(rs(c, h, t.getBaseHref())), a.call(this, h);
4837
+ return c && t.send(is(c, h, t.getBaseHref())), a.call(this, h);
4838
4838
  };
4839
4839
  };
4840
4840
  r(window), t.observer.attachContextCallback(t.safe(r)), t.attachStopCallback(() => {
@@ -4842,19 +4842,19 @@ function lo(t) {
4842
4842
  }), t.attachStartCallback(() => {
4843
4843
  n(document);
4844
4844
  }), t.nodes.attachNodeCallback((o) => {
4845
- Os(o) && n(o);
4845
+ _s(o) && n(o);
4846
4846
  });
4847
4847
  }
4848
- function ho(t) {
4848
+ function fo(t) {
4849
4849
  if (t === null)
4850
4850
  return;
4851
4851
  if (!window.CSSStyleSheet) {
4852
- t.send(_i("no_stylesheet_prototype_in_window", ""));
4852
+ t.send(Ri("no_stylesheet_prototype_in_window", ""));
4853
4853
  return;
4854
4854
  }
4855
4855
  const e = t.safe((i, r, o) => {
4856
4856
  const l = Oe.get(i);
4857
- l && (typeof o == "string" ? t.send(wt(l, o, r, t.getBaseHref())) : t.send(os(l, r)));
4857
+ l && (typeof o == "string" ? t.send(wt(l, o, r, t.getBaseHref())) : t.send(rs(l, r)));
4858
4858
  }), s = t.safe((i) => {
4859
4859
  let r = i;
4860
4860
  for (; r.parentRule; )
@@ -4870,7 +4870,7 @@ function ho(t) {
4870
4870
  return;
4871
4871
  }
4872
4872
  const a = r.cssText, h = o.cssRules, c = Array.from(h).indexOf(r);
4873
- c >= 0 ? (t.send(wt(l, a, c, t.getBaseHref())), t.send(os(l, c + 1))) : t.debug.warn("Rule index not found in", o, r);
4873
+ c >= 0 ? (t.send(wt(l, a, c, t.getBaseHref())), t.send(rs(l, c + 1))) : t.debug.warn("Rule index not found in", o, r);
4874
4874
  }), n = t.safe((i) => {
4875
4875
  const { insertRule: r, deleteRule: o } = i.CSSStyleSheet.prototype, { insertRule: l, deleteRule: a } = i.CSSGroupingRule.prototype;
4876
4876
  i.CSSStyleSheet.prototype.insertRule = function(h, c = 0) {
@@ -4891,25 +4891,25 @@ function ho(t) {
4891
4891
  const r = t.nodes.getID(i);
4892
4892
  if (!r)
4893
4893
  return;
4894
- const o = i.sheet, l = wn();
4895
- Oe.set(o, l), t.send(on(l, r));
4894
+ const o = i.sheet, l = Tn();
4895
+ Oe.set(o, l), t.send(cn(l, r));
4896
4896
  const a = o.cssRules;
4897
4897
  for (let h = 0; h < a.length; h++)
4898
4898
  e(o, h, a[h].cssText);
4899
4899
  });
4900
4900
  }
4901
- function uo(t) {
4901
+ function po(t) {
4902
4902
  function e(n) {
4903
4903
  const i = t.nodes.getID(n);
4904
- i !== void 0 && t.send(is(i));
4904
+ i !== void 0 && t.send(ns(i));
4905
4905
  }
4906
4906
  let s = !1;
4907
4907
  t.nodes.attachNodeCallback((n) => {
4908
4908
  B(n, "body") && (t.nodes.attachNodeListener(n, "focus", (i) => {
4909
- ln(i.target) && (e(i.target), s = !1);
4909
+ un(i.target) && (e(i.target), s = !1);
4910
4910
  }), t.nodes.attachNodeListener(n, "blur", (i) => {
4911
4911
  i.relatedTarget === null && (s = !0, setTimeout(() => {
4912
- s && t.send(is(-1));
4912
+ s && t.send(ns(-1));
4913
4913
  }, 0));
4914
4914
  }));
4915
4915
  }), t.attachStartCallback(() => {
@@ -4919,7 +4919,7 @@ function uo(t) {
4919
4919
  n && n !== n.ownerDocument.body && e(n);
4920
4920
  }, !0);
4921
4921
  }
4922
- function fo(t) {
4922
+ function go(t) {
4923
4923
  if (!window.FontFace)
4924
4924
  return;
4925
4925
  const e = /* @__PURE__ */ new Map(), s = (n) => {
@@ -4935,7 +4935,7 @@ function fo(t) {
4935
4935
  const c = n === window ? 0 : t.nodes.getID(n.document);
4936
4936
  if (c === void 0)
4937
4937
  return;
4938
- t.active() && t.send(ns(c, ...a));
4938
+ t.active() && t.send(ss(c, ...a));
4939
4939
  }
4940
4940
  super(...o);
4941
4941
  }
@@ -4950,22 +4950,22 @@ function fo(t) {
4950
4950
  return;
4951
4951
  const r = n.defaultView === window ? 0 : t.nodes.getID(n);
4952
4952
  r !== void 0 && i.forEach((o) => {
4953
- t.send(ns(r, ...o));
4953
+ t.send(ss(r, ...o));
4954
4954
  });
4955
4955
  }));
4956
4956
  }
4957
- function po(t, e, s, n, i) {
4957
+ function mo(t, e, s, n, i) {
4958
4958
  t.debug.log("Openreplay: attaching axios spy to instance", e);
4959
4959
  function r(d) {
4960
4960
  t.debug.log("Openreplay: capturing axios response data", d);
4961
- const { headers: f, data: g, method: p, url: y, baseURL: E } = d.config, { data: N, headers: T, status: m, response: v } = d, { data: k, headers: x, status: S } = v || {}, b = s.ignoreHeaders, _ = Array.isArray(b) ? (R) => b.includes(R) : () => b;
4961
+ const { headers: f, data: g, method: p, url: y, baseURL: E } = d.config, { data: N, headers: T, status: m, response: w } = d, { data: k, headers: x, status: S } = w || {}, b = s.ignoreHeaders, _ = Array.isArray(b) ? (R) => b.includes(R) : () => b;
4962
4962
  function M(R, U) {
4963
4963
  _(U[0]) || (R[U[0]] = U[1]);
4964
4964
  }
4965
4965
  let O = {}, D = {};
4966
4966
  f.toJSON ? O = f.toJSON() : f instanceof Headers ? f.forEach((R, U) => M(O, [U, R])) : Array.isArray(f) ? f.forEach((R) => M(O, R)) : typeof f == "object" && Object.entries(f).forEach((R) => M(O, R));
4967
- const w = x || T;
4968
- w.toJSON ? D = w.toJSON() : w instanceof Headers ? w.forEach((R, U) => M(D, [U, R])) : Array.isArray(w) ? w.forEach((R) => M(D, R)) : typeof w == "object" && Object.entries(w).forEach(([R, U]) => {
4967
+ const v = x || T;
4968
+ v.toJSON ? D = v.toJSON() : v instanceof Headers ? v.forEach((R, U) => M(D, [U, R])) : Array.isArray(v) ? v.forEach((R) => M(D, R)) : typeof v == "object" && Object.entries(v).forEach(([R, U]) => {
4969
4969
  _(R) || (D[R] = U);
4970
4970
  });
4971
4971
  const I = n({
@@ -4999,7 +4999,7 @@ function po(t, e, s, n, i) {
4999
4999
  return s.failuresOnly || r(d), d;
5000
5000
  }
5001
5001
  function a(d) {
5002
- return t.debug.log("Openreplay: capturing API request error", d), go(d) && d.response ? r(d.response) : d instanceof Error && t.send($e(d, [])), Promise.reject(d);
5002
+ return t.debug.log("Openreplay: capturing API request error", d), bo(d) && d.response ? r(d.response) : d instanceof Error && t.send($e(d, [])), Promise.reject(d);
5003
5003
  }
5004
5004
  function h(d) {
5005
5005
  t.debug.log("Openreplay: failed API request, skipping", d);
@@ -5014,17 +5014,17 @@ function po(t, e, s, n, i) {
5014
5014
  (f = (d = e.interceptors.request).eject) == null || f.call(d, c), (p = (g = e.interceptors.response).eject) == null || p.call(g, u);
5015
5015
  });
5016
5016
  }
5017
- function go(t) {
5018
- return mo(t) && t.isAxiosError === !0;
5017
+ function bo(t) {
5018
+ return yo(t) && t.isAxiosError === !0;
5019
5019
  }
5020
- function mo(t) {
5020
+ function yo(t) {
5021
5021
  return t !== null && typeof t == "object";
5022
5022
  }
5023
5023
  var Y;
5024
5024
  (function(t) {
5025
5025
  t[t.UNSENT = 0] = "UNSENT", t[t.OPENED = 1] = "OPENED", t[t.HEADERS_RECEIVED = 2] = "HEADERS_RECEIVED", t[t.LOADING = 3] = "LOADING", t[t.DONE = 4] = "DONE";
5026
5026
  })(Y || (Y = {}));
5027
- class jt {
5027
+ class Ht {
5028
5028
  constructor(e = [], s, n) {
5029
5029
  this.ignoredHeaders = e, this.setSessionTokenHeader = s, this.sanitize = n, this.id = "", this.name = "", this.method = "", this.url = "", this.status = 0, this.statusText = "", this.cancelState = 0, this.readyState = 0, this.header = {}, this.responseType = "", this.requestHeader = {}, this.responseSize = 0, this.responseSizeText = "", this.startTime = 0, this.endTime = 0, this.duration = 0, this.getData = {}, this.requestData = null;
5030
5030
  }
@@ -5064,7 +5064,7 @@ const Te = (t, e) => {
5064
5064
  case "":
5065
5065
  case "text":
5066
5066
  case "json":
5067
- typeof e == "string" ? s = e : Wt(e) || Array.isArray(e) ? s = JSON.stringify(e) : typeof e < "u" && (s = Object.prototype.toString.call(e));
5067
+ typeof e == "string" ? s = e : zt(e) || Array.isArray(e) ? s = JSON.stringify(e) : typeof e < "u" && (s = Object.prototype.toString.call(e));
5068
5068
  break;
5069
5069
  case "blob":
5070
5070
  case "document":
@@ -5074,7 +5074,7 @@ const Te = (t, e) => {
5074
5074
  break;
5075
5075
  }
5076
5076
  return s;
5077
- }, zt = (t) => {
5077
+ }, jt = (t) => {
5078
5078
  if (!t)
5079
5079
  return null;
5080
5080
  let e;
@@ -5082,16 +5082,16 @@ const Te = (t, e) => {
5082
5082
  (t[0] === "{" || t[0] === "[") && (e = t);
5083
5083
  const s = t.split("&");
5084
5084
  s.length === 1 ? e = t : e = s.join(",");
5085
- } else if (yo(t)) {
5085
+ } else if (wo(t)) {
5086
5086
  const s = [];
5087
5087
  for (const [n, i] of t)
5088
5088
  s.push(`${n}=${typeof i == "string" ? i : "[object Object]"}`);
5089
5089
  e = s.join(",");
5090
5090
  } else
5091
- t instanceof Blob || t instanceof ReadableStream || t instanceof ArrayBuffer ? e = "byte data" : Wt(t) ? e = t : e = `can't parse body ${typeof t}`;
5091
+ t instanceof Blob || t instanceof ReadableStream || t instanceof ArrayBuffer ? e = "byte data" : zt(t) ? e = t : e = `can't parse body ${typeof t}`;
5092
5092
  return e;
5093
- }, bo = (t, e = {}) => {
5094
- Wt(e) || (e = {});
5093
+ }, So = (t, e = {}) => {
5094
+ zt(e) || (e = {});
5095
5095
  let s = t ? t.split("?") : [];
5096
5096
  if (s.shift(), s.length > 0) {
5097
5097
  s = s.join("?").split("&");
@@ -5106,17 +5106,17 @@ const Te = (t, e) => {
5106
5106
  }
5107
5107
  return e;
5108
5108
  };
5109
- function Wt(t) {
5109
+ function zt(t) {
5110
5110
  return t !== null && typeof t == "object";
5111
5111
  }
5112
- function yo(t) {
5112
+ function wo(t) {
5113
5113
  return t == null || ArrayBuffer.isView(t) ? !1 : typeof Symbol < "u" && typeof t[Symbol.iterator] == "function";
5114
5114
  }
5115
5115
  function Ve(t) {
5116
5116
  return t <= 0 ? "" : t >= 1e3 * 1e3 ? (t / 1e3 / 1e3).toFixed(1) + " MB" : t >= 1e3 ? (t / 1e3).toFixed(1) + " KB" : `${t}B`;
5117
5117
  }
5118
- const Rt = (t) => (t.startsWith("//") && (t = `${new URL(window.location.href).protocol}${t}`), t.startsWith("http") ? new URL(t) : new URL(t, window.location.href));
5119
- class So {
5118
+ const Ot = (t) => (t.startsWith("//") && (t = `${new URL(window.location.href).protocol}${t}`), t.startsWith("http") ? new URL(t) : new URL(t, window.location.href));
5119
+ class vo {
5120
5120
  constructor(e, s) {
5121
5121
  this.resp = e, this.item = s, this.mockReader();
5122
5122
  }
@@ -5157,7 +5157,7 @@ class So {
5157
5157
  };
5158
5158
  }
5159
5159
  }
5160
- class vo {
5160
+ class ko {
5161
5161
  constructor(e, s, n, i, r, o) {
5162
5162
  this.ignoredHeaders = e, this.setSessionTokenHeader = s, this.sanitize = n, this.sendMessage = i, this.isServiceUrl = r, this.tokenUrlMatcher = o;
5163
5163
  }
@@ -5166,7 +5166,7 @@ class vo {
5166
5166
  if (!i || // @ts-ignore
5167
5167
  typeof i != "string" && !(i != null && i.url) || (i instanceof URL || typeof i == "string" ? this.isServiceUrl(String(i)) : this.isServiceUrl(String(i.url))))
5168
5168
  return e.apply(window, n);
5169
- const l = new jt(this.ignoredHeaders, this.setSessionTokenHeader, this.sanitize);
5169
+ const l = new Ht(this.ignoredHeaders, this.setSessionTokenHeader, this.sanitize);
5170
5170
  return this.beforeFetch(l, i, r), this.setSessionTokenHeader((a, h) => {
5171
5171
  if (!(this.tokenUrlMatcher !== void 0 && !this.tokenUrlMatcher(l.url))) {
5172
5172
  if (n[1] === void 0 && n[0] instanceof Request)
@@ -5179,7 +5179,7 @@ class vo {
5179
5179
  }
5180
5180
  beforeFetch(e, s, n) {
5181
5181
  let i, r = "GET", o = {};
5182
- if (typeof s == "string" ? (r = (n == null ? void 0 : n.method) || "GET", i = Rt(s), o = (n == null ? void 0 : n.headers) || {}) : (r = s.method || "GET", i = Rt(s.url), o = s.headers), e.method = r, e.requestType = "fetch", e.requestHeader = o, e.url = i.toString(), e.name = (i.pathname.split("/").pop() || "") + i.search, e.status = 0, e.statusText = "Pending", e.readyState = 1, e.startTime || (e.startTime = performance.now()), Object.prototype.toString.call(o) === "[object Headers]") {
5182
+ if (typeof s == "string" ? (r = (n == null ? void 0 : n.method) || "GET", i = Ot(s), o = (n == null ? void 0 : n.headers) || {}) : (r = s.method || "GET", i = Ot(s.url), o = s.headers), e.method = r, e.requestType = "fetch", e.requestHeader = o, e.url = i.toString(), e.name = (i.pathname.split("/").pop() || "") + i.search, e.status = 0, e.statusText = "Pending", e.readyState = 1, e.startTime || (e.startTime = performance.now()), Object.prototype.toString.call(o) === "[object Headers]") {
5183
5183
  e.requestHeader = {};
5184
5184
  for (const [l, a] of o)
5185
5185
  e.requestHeader[l] = a;
@@ -5190,7 +5190,7 @@ class vo {
5190
5190
  for (const [l, a] of i.searchParams)
5191
5191
  e.getData[l] = a;
5192
5192
  }
5193
- n != null && n.body && (e.requestData = zt(n.body));
5193
+ n != null && n.body && (e.requestData = jt(n.body));
5194
5194
  }
5195
5195
  afterFetch(e) {
5196
5196
  return (s) => {
@@ -5206,7 +5206,7 @@ class vo {
5206
5206
  }).catch((i) => {
5207
5207
  if (i.name !== "AbortError")
5208
5208
  throw i;
5209
- })), new Proxy(s, new So(s, e));
5209
+ })), new Proxy(s, new vo(s, e));
5210
5210
  };
5211
5211
  }
5212
5212
  handleResponseBody(e, s) {
@@ -5214,12 +5214,12 @@ class vo {
5214
5214
  return n && n.includes("application/json") ? (s.responseType = "json", e.text()) : n && (n.includes("text/html") || n.includes("text/plain")) ? (s.responseType = "text", e.text()) : (s.responseType = "arraybuffer", e.arrayBuffer());
5215
5215
  }
5216
5216
  }
5217
- class wo {
5217
+ class To {
5218
5218
  static create(e, s, n, i, r, o) {
5219
- return new Proxy(fetch, new vo(e, s, n, i, r, o));
5219
+ return new Proxy(fetch, new ko(e, s, n, i, r, o));
5220
5220
  }
5221
5221
  }
5222
- class ko {
5222
+ class Io {
5223
5223
  constructor(e, s, n, i, r, o, l) {
5224
5224
  this.ignoredHeaders = s, this.setSessionTokenHeader = n, this.sanitize = i, this.sendMessage = r, this.isServiceUrl = o, this.tokenUrlMatcher = l, this.XMLReq = e, this.XMLReq.onreadystatechange = () => {
5225
5225
  this.onReadyStateChange();
@@ -5227,7 +5227,7 @@ class ko {
5227
5227
  this.onAbort();
5228
5228
  }, this.XMLReq.ontimeout = () => {
5229
5229
  this.onTimeout();
5230
- }, this.item = new jt(s, n, i), this.item.requestType = "xhr";
5230
+ }, this.item = new Ht(s, n, i), this.item.requestType = "xhr";
5231
5231
  }
5232
5232
  get(e, s) {
5233
5233
  switch (s) {
@@ -5278,14 +5278,14 @@ class ko {
5278
5278
  return (...n) => {
5279
5279
  var o, l;
5280
5280
  const i = n[0], r = n[1];
5281
- return this.item.method = i ? i.toUpperCase() : "GET", this.item.url = ((o = r.toString) == null ? void 0 : o.call(r)) || "", this.item.name = ((l = this.item.url) == null ? void 0 : l.replace(new RegExp("/*$"), "").split("/").pop()) ?? "", this.item.getData = bo(this.item.url, {}), s.apply(e, n);
5281
+ return this.item.method = i ? i.toUpperCase() : "GET", this.item.url = ((o = r.toString) == null ? void 0 : o.call(r)) || "", this.item.name = ((l = this.item.url) == null ? void 0 : l.replace(new RegExp("/*$"), "").split("/").pop()) ?? "", this.item.getData = So(this.item.url, {}), s.apply(e, n);
5282
5282
  };
5283
5283
  }
5284
5284
  getSend(e) {
5285
5285
  const s = Reflect.get(e, "send");
5286
5286
  return (...n) => {
5287
5287
  const i = n[0];
5288
- return this.item.requestData = zt(i), s.apply(e, n);
5288
+ return this.item.requestData = jt(i), s.apply(e, n);
5289
5289
  };
5290
5290
  }
5291
5291
  getSetRequestHeader(e) {
@@ -5340,32 +5340,32 @@ class ko {
5340
5340
  }
5341
5341
  }
5342
5342
  }
5343
- class To {
5343
+ class xo {
5344
5344
  static create(e, s, n, i, r, o) {
5345
5345
  return new Proxy(XMLHttpRequest, {
5346
5346
  construct(l) {
5347
5347
  const a = new l();
5348
- return new Proxy(a, new ko(a, e, s, n, i, r, o));
5348
+ return new Proxy(a, new Io(a, e, s, n, i, r, o));
5349
5349
  }
5350
5350
  });
5351
5351
  }
5352
5352
  }
5353
- const Io = (t) => t instanceof Blob ? t.type : t instanceof FormData ? "multipart/form-data" : t instanceof URLSearchParams ? "application/x-www-form-urlencoded;charset=UTF-8" : "text/plain;charset=UTF-8";
5354
- class xo {
5353
+ const Eo = (t) => t instanceof Blob ? t.type : t instanceof FormData ? "multipart/form-data" : t instanceof URLSearchParams ? "application/x-www-form-urlencoded;charset=UTF-8" : "text/plain;charset=UTF-8";
5354
+ class Co {
5355
5355
  constructor(e, s, n, i, r) {
5356
5356
  this.ignoredHeaders = e, this.setSessionTokenHeader = s, this.sanitize = n, this.sendMessage = i, this.isServiceUrl = r;
5357
5357
  }
5358
5358
  apply(e, s, n) {
5359
- const i = n[0], r = n[1], o = new jt(this.ignoredHeaders, this.setSessionTokenHeader, this.sanitize);
5359
+ const i = n[0], r = n[1], o = new Ht(this.ignoredHeaders, this.setSessionTokenHeader, this.sanitize);
5360
5360
  if (this.isServiceUrl(i))
5361
5361
  return e.apply(s, n);
5362
- const l = Rt(i);
5363
- if (o.method = "POST", o.url = i, o.name = (l.pathname.split("/").pop() || "") + l.search, o.requestType = "beacon", o.requestHeader = { "Content-Type": Io(r) }, o.status = 0, o.statusText = "Pending", l.search && l.searchParams) {
5362
+ const l = Ot(i);
5363
+ if (o.method = "POST", o.url = i, o.name = (l.pathname.split("/").pop() || "") + l.search, o.requestType = "beacon", o.requestHeader = { "Content-Type": Eo(r) }, o.status = 0, o.statusText = "Pending", l.search && l.searchParams) {
5364
5364
  o.getData = {};
5365
5365
  for (const [c, u] of l.searchParams)
5366
5366
  o.getData[c] = u;
5367
5367
  }
5368
- o.requestData = zt(r), o.startTime || (o.startTime = performance.now());
5368
+ o.requestData = jt(r), o.startTime || (o.startTime = performance.now());
5369
5369
  const a = e.apply(s, n);
5370
5370
  a ? (o.endTime = performance.now(), o.duration = o.endTime - (o.startTime || o.endTime), o.status = 0, o.statusText = "Sent", o.readyState = 4) : (o.status = 500, o.statusText = "Unknown");
5371
5371
  const h = o.getMessage();
@@ -5378,24 +5378,24 @@ class be {
5378
5378
  }
5379
5379
  static create(e, s, n, i, r) {
5380
5380
  if (be.hasSendBeacon())
5381
- return new Proxy(be.origSendBeacon, new xo(e, s, n, i, r));
5381
+ return new Proxy(be.origSendBeacon, new Co(e, s, n, i, r));
5382
5382
  }
5383
5383
  }
5384
5384
  var Ms;
5385
5385
  be.origSendBeacon = (Ms = window == null ? void 0 : window.navigator) == null ? void 0 : Ms.sendBeacon;
5386
- const Rs = (t) => console.warn(`Openreplay: Can't find ${t} in global context.
5386
+ const Os = (t) => console.warn(`Openreplay: Can't find ${t} in global context.
5387
5387
  If you're using serverside rendering in your app, make sure that tracker is loaded dynamically, otherwise ${t} won't be tracked.`);
5388
- function Eo(t, e, s, n, i, r, o) {
5388
+ function No(t, e, s, n, i, r, o) {
5389
5389
  var l;
5390
- t.XMLHttpRequest ? t.XMLHttpRequest = To.create(e, s, n, i, r, o) : Rs("XMLHttpRequest"), t.fetch ? t.fetch = wo.create(e, s, n, i, r, o) : Rs("fetch"), (l = t == null ? void 0 : t.navigator) != null && l.sendBeacon && (t.navigator.sendBeacon = be.create(e, s, n, i, r));
5390
+ t.XMLHttpRequest ? t.XMLHttpRequest = xo.create(e, s, n, i, r, o) : Os("XMLHttpRequest"), t.fetch ? t.fetch = To.create(e, s, n, i, r, o) : Os("fetch"), (l = t == null ? void 0 : t.navigator) != null && l.sendBeacon && (t.navigator.sendBeacon = be.create(e, s, n, i, r));
5391
5391
  }
5392
5392
  function ft(t) {
5393
5393
  return t.__or_req_data__ || (t.__or_req_data__ = { body: void 0, headers: {} }), t.__or_req_data__;
5394
5394
  }
5395
- function Ds(t) {
5395
+ function Rs(t) {
5396
5396
  return typeof t == "string" ? t.toUpperCase() : "GET";
5397
5397
  }
5398
- function Co(t, e = {}) {
5398
+ function _o(t, e = {}) {
5399
5399
  const s = Object.assign({
5400
5400
  failuresOnly: !1,
5401
5401
  ignoreHeaders: ["cookie", "set-cookie", "authorization"],
@@ -5436,30 +5436,30 @@ function Co(t, e = {}) {
5436
5436
  }
5437
5437
  const h = (c) => {
5438
5438
  if (s.useProxy)
5439
- return Eo(c, s.ignoreHeaders, o, l, (T) => t.send(T), (T) => t.isServiceURL(T), s.tokenUrlMatcher);
5439
+ return No(c, s.ignoreHeaders, o, l, (T) => t.send(T), (T) => t.isServiceURL(T), s.tokenUrlMatcher);
5440
5440
  const u = c.fetch.bind(c), d = (T, m = {}) => {
5441
5441
  if (!(typeof T == "string" || T instanceof URL) || t.isServiceURL(String(T)))
5442
5442
  return u(T, m);
5443
5443
  o(function(k, x) {
5444
5444
  m.headers === void 0 && (m.headers = {}), m.headers instanceof Headers ? m.headers.append(k, x) : Array.isArray(m.headers) ? m.headers.push([k, x]) : m.headers[k] = x;
5445
5445
  });
5446
- const v = performance.now();
5446
+ const w = performance.now();
5447
5447
  return u(T, m).then((k) => {
5448
- const x = performance.now() - v;
5448
+ const x = performance.now() - w;
5449
5449
  if (s.failuresOnly && k.status < 400)
5450
5450
  return k;
5451
5451
  const S = k.clone();
5452
5452
  return S.text().then((b) => {
5453
5453
  const _ = {}, M = {};
5454
5454
  if (n !== !0) {
5455
- const w = ([I, A]) => {
5455
+ const v = ([I, A]) => {
5456
5456
  i(I) || (_[I] = A);
5457
5457
  };
5458
- m.headers instanceof Headers ? m.headers.forEach((I, A) => w([A, I])) : Array.isArray(m.headers) ? m.headers.forEach(w) : typeof m.headers == "object" && Object.entries(m.headers).forEach(w), S.headers.forEach((I, A) => {
5458
+ m.headers instanceof Headers ? m.headers.forEach((I, A) => v([A, I])) : Array.isArray(m.headers) ? m.headers.forEach(v) : typeof m.headers == "object" && Object.entries(m.headers).forEach(v), S.headers.forEach((I, A) => {
5459
5459
  i(A) || (M[A] = I);
5460
5460
  });
5461
5461
  }
5462
- const O = Ds(m.method), D = l({
5462
+ const O = Rs(m.method), D = l({
5463
5463
  url: String(T),
5464
5464
  method: O,
5465
5465
  status: S.status,
@@ -5473,28 +5473,28 @@ function Co(t, e = {}) {
5473
5473
  body: b
5474
5474
  }
5475
5475
  });
5476
- D && t.send(ze("fetch", O, String(D.url), a(D.request), a(D.response), S.status, v + ye(), x, 0));
5476
+ D && t.send(ze("fetch", O, String(D.url), a(D.request), a(D.response), S.status, w + ye(), x, 0));
5477
5477
  }).catch((b) => t.debug.error("Could not process Fetch response:", b)), k;
5478
5478
  });
5479
5479
  };
5480
5480
  c.fetch = d;
5481
5481
  const f = c.XMLHttpRequest.prototype.open, g = c.XMLHttpRequest.prototype.setRequestHeader, p = c.XMLHttpRequest.prototype.send;
5482
5482
  function y(T, m) {
5483
- const v = this;
5484
- o((x, S) => v.setRequestHeader(x, S));
5483
+ const w = this;
5484
+ o((x, S) => w.setRequestHeader(x, S));
5485
5485
  let k = 0;
5486
- return v.addEventListener("loadstart", (x) => {
5486
+ return w.addEventListener("loadstart", (x) => {
5487
5487
  k = x.timeStamp;
5488
- }), v.addEventListener("load", t.safe((x) => {
5489
- const { headers: S, body: b } = ft(v), _ = k > 0 ? x.timeStamp - k : 0, O = (v.getAllResponseHeaders() || "").trim().split(/[\r\n]+/), D = {};
5488
+ }), w.addEventListener("load", t.safe((x) => {
5489
+ const { headers: S, body: b } = ft(w), _ = k > 0 ? x.timeStamp - k : 0, O = (w.getAllResponseHeaders() || "").trim().split(/[\r\n]+/), D = {};
5490
5490
  O.forEach(function(A) {
5491
5491
  const P = A.split(": "), R = P.shift();
5492
5492
  i(R) || (D[R] = P.join(": "));
5493
5493
  });
5494
- const w = Ds(T), I = l({
5494
+ const v = Rs(T), I = l({
5495
5495
  url: String(m),
5496
- method: w,
5497
- status: v.status,
5496
+ method: v,
5497
+ status: w.status,
5498
5498
  request: {
5499
5499
  headers: S,
5500
5500
  // @ts-ignore
@@ -5502,10 +5502,10 @@ function Co(t, e = {}) {
5502
5502
  },
5503
5503
  response: {
5504
5504
  headers: D,
5505
- body: v.response
5505
+ body: w.response
5506
5506
  }
5507
5507
  });
5508
- I && t.send(ze("xhr", w, String(I.url), a(I.request), a(I.response), v.status, k + ye(), _, 0));
5508
+ I && t.send(ze("xhr", v, String(I.url), a(I.request), a(I.response), w.status, k + ye(), _, 0));
5509
5509
  })), f.apply(this, arguments);
5510
5510
  }
5511
5511
  function E(T) {
@@ -5514,35 +5514,35 @@ function Co(t, e = {}) {
5514
5514
  }
5515
5515
  function N(T, m) {
5516
5516
  if (!i(T)) {
5517
- const v = ft(this);
5518
- v.headers[T] = m;
5517
+ const w = ft(this);
5518
+ w.headers[T] = m;
5519
5519
  }
5520
5520
  return g.apply(this, arguments);
5521
5521
  }
5522
5522
  s.axiosInstances || (c.XMLHttpRequest.prototype.open = y, c.XMLHttpRequest.prototype.send = E, c.XMLHttpRequest.prototype.setRequestHeader = N);
5523
5523
  };
5524
5524
  h(window), s.axiosInstances && s.axiosInstances.forEach((c) => {
5525
- po(t, c, s, l, a);
5525
+ mo(t, c, s, l, a);
5526
5526
  }), s.captureInIframes && t.observer.attachContextCallback(t.safe(h));
5527
5527
  }
5528
- function No(t) {
5528
+ function Oo(t) {
5529
5529
  t.attachEventListener(document, "selectionchange", () => {
5530
5530
  const e = document.getSelection();
5531
5531
  if (e !== null && !e.isCollapsed) {
5532
5532
  const s = t.nodes.getID(e.anchorNode), n = t.nodes.getID(e.focusNode), i = e.toString().replace(/\s+/g, " ");
5533
- s && n && t.send(as(s, n, i));
5533
+ s && n && t.send(os(s, n, i));
5534
5534
  } else
5535
- t.send(as(-1, -1, ""));
5535
+ t.send(os(-1, -1, ""));
5536
5536
  });
5537
5537
  }
5538
- function _o(t) {
5538
+ function Ro(t) {
5539
5539
  function e() {
5540
5540
  document.hidden || (t.debug.log("Openreplay: tab change to" + t.session.getTabId()), t.send(Me(t.session.getTabId())));
5541
5541
  }
5542
5542
  t.attachEventListener(window, "focus", e, !1, !1);
5543
5543
  }
5544
5544
  const Le = "/installation/javascript-sdk";
5545
- function Oo(t) {
5545
+ function Do(t) {
5546
5546
  if (t == null)
5547
5547
  return console.error(`OpenReplay: invalid options argument type. Please, check documentation on ${je}${Le}`), !1;
5548
5548
  if (typeof t.projectKey != "string")
@@ -5554,12 +5554,12 @@ function Oo(t) {
5554
5554
  console.warn("OpenReplay: projectKey is expected to have a string type."), t.projectKey = t.projectKey.toString();
5555
5555
  return t.sessionToken != null && ne("`sessionToken` option", "`sessionHash` start() option", "/"), !0;
5556
5556
  }
5557
- class Ro {
5557
+ class Mo {
5558
5558
  constructor(e) {
5559
5559
  var l;
5560
5560
  if (this.options = e, this.app = null, this.crossdomainMode = !1, this.checkDoNotTrack = () => this.options.respectDoNotTrack && (navigator.doNotTrack == "1" || // @ts-ignore
5561
5561
  window.doNotTrack == "1"), this.signalStartIssue = (a, h) => {
5562
- const c = this.checkDoNotTrack(), u = new XMLHttpRequest(), d = this.options.ingestPoint || hn;
5562
+ const c = this.checkDoNotTrack(), u = new XMLHttpRequest(), d = this.options.ingestPoint || dn;
5563
5563
  u.open("POST", d + "/v1/web/not-started"), u.send(JSON.stringify({
5564
5564
  trackerVersion: "14.0.4",
5565
5565
  projectKey: this.options.projectKey,
@@ -5574,11 +5574,11 @@ class Ro {
5574
5574
  const c = $e(a, [], h);
5575
5575
  this.app.send(c);
5576
5576
  } else if (a instanceof ErrorEvent || "PromiseRejectionEvent" in window && a instanceof PromiseRejectionEvent) {
5577
- const c = pn(a, void 0, h);
5577
+ const c = mn(a, void 0, h);
5578
5578
  c != null && this.app.send(c);
5579
5579
  }
5580
5580
  }
5581
- }, this.crossdomainMode = !!(ni() && ((l = e.crossdomain) != null && l.enabled)), !Z || !Oo(e))
5581
+ }, this.crossdomainMode = !!(ri() && ((l = e.crossdomain) != null && l.enabled)), !Z || !Do(e))
5582
5582
  return;
5583
5583
  if (window.__OPENREPLAY__) {
5584
5584
  console.error("OpenReplay: one tracker instance has been initialised already");
@@ -5621,8 +5621,8 @@ class Ro {
5621
5621
  console.error(`OpenReplay: browser doesn't support API required for tracking or doNotTrack is set to 1. Reason: ${a}`), this.signalStartIssue("missing_api", n);
5622
5622
  return;
5623
5623
  }
5624
- const r = new Er(e.projectKey, e.sessionToken, e, this.signalStartIssue, this.crossdomainMode);
5625
- this.app = r, this.crossdomainMode || (ao(r), Cr(r), Hi(r, e), _o(r)), so(r, e.mouse), oo(r, this.crossdomainMode), ho(r), lo(r), Rr(r, e), Pr(r, e), Ur(r), qr(r, e), ro(r, e), uo(r), fo(r), Co(r, e.network), No(r), window.__OPENREPLAY__ = this, e.flags && e.flags.onFlagsLoad && this.onFlagsLoad(e.flags.onFlagsLoad);
5624
+ const r = new Nr(e.projectKey, e.sessionToken, e, this.signalStartIssue, this.crossdomainMode);
5625
+ this.app = r, this.crossdomainMode || (lo(r), _r(r), zi(r, e), Ro(r)), io(r, e.mouse), co(r, this.crossdomainMode), fo(r), uo(r), Mr(r, e), Br(r, e), jr(r), Vr(r, e), ao(r, e), po(r), go(r), _o(r, e.network), Oo(r), window.__OPENREPLAY__ = this, e.flags && e.flags.onFlagsLoad && this.onFlagsLoad(e.flags.onFlagsLoad);
5626
5626
  const o = window.open;
5627
5627
  (e.autoResetOnWindowOpen || e.resetTabOnWindowOpen) && (r.attachStartCallback(() => {
5628
5628
  const a = r.getTabId(), h = r.sessionStorage ?? window.sessionStorage;
@@ -5755,7 +5755,7 @@ class Ro {
5755
5755
  ne("'userID' method", "'setUserID' method", "/"), this.setUserID(e);
5756
5756
  }
5757
5757
  setUserAnonymousID(e) {
5758
- typeof e == "string" && this.app !== null && this.app.send(Ii(e));
5758
+ typeof e == "string" && this.app !== null && this.app.send(Ei(e));
5759
5759
  }
5760
5760
  userAnonymousID(e) {
5761
5761
  ne("'userAnonymousID' method", "'setUserAnonymousID' method", "/"), this.setUserAnonymousID(e);
@@ -5775,7 +5775,7 @@ class Ro {
5775
5775
  } catch {
5776
5776
  return;
5777
5777
  }
5778
- this.app.send(ki(e, s));
5778
+ this.app.send(Ii(e, s));
5779
5779
  }
5780
5780
  }
5781
5781
  issue(e, s = null) {
@@ -5785,31 +5785,31 @@ class Ro {
5785
5785
  } catch {
5786
5786
  return;
5787
5787
  }
5788
- this.app.send(Oi(e, s));
5788
+ this.app.send(Di(e, s));
5789
5789
  }
5790
5790
  }
5791
5791
  }
5792
- const Do = 3;
5793
- function kn() {
5792
+ const Ao = 3;
5793
+ function In() {
5794
5794
  const t = document.getElementById("chat-window"), e = document.getElementById("chat-icon");
5795
- t.classList.contains("visible") ? (Us(), Tn(), e.style.display = "flex") : (Bs(), t.classList.add("visible"), e.style.display = "none");
5795
+ t.classList.contains("visible") ? (js(), xn(), e.style.display = "flex") : (Hs(), t.classList.add("visible"), e.style.display = "none");
5796
5796
  }
5797
- function Tn() {
5798
- console.log("ghbdtn"), Us(), document.getElementById("chat-window").classList.remove("visible");
5797
+ function xn() {
5798
+ console.log("ghbdtn"), js(), document.getElementById("chat-window").classList.remove("visible");
5799
5799
  let e = parseInt(j("chatCloseCount")) || 0;
5800
- e += 1, e >= Do ? (console.log(e), Pe("disableAutoOpen", "true", 1), _n("chatCloseCount")) : (console.log(e), Pe("chatCloseCount", e, 1));
5800
+ e += 1, e >= Ao ? (console.log(e), Pe("disableAutoOpen", "true", 1), Rn("chatCloseCount")) : (console.log(e), Pe("chatCloseCount", e, 1));
5801
5801
  }
5802
- function In(t = null) {
5803
- t ? Rn(t) : Bs(), document.getElementById("chat-window").classList.add("visible");
5802
+ function En(t = null) {
5803
+ t ? Mn(t) : Hs(), document.getElementById("chat-window").classList.add("visible");
5804
5804
  }
5805
5805
  document.addEventListener("DOMContentLoaded", () => {
5806
5806
  setupCloseButton(), setupOutsideClick();
5807
5807
  });
5808
- const Mo = ["climats", "telckel", "biobio", "weinpoint", "vinigrandi"], Ao = "OuhXJRleF6sROjsQZPWx1yqjrL6APeJxmHswqyOBWbgIqtXcht3MDadvI9DtOOoL";
5809
- class xn {
5808
+ const Lo = ["climats", "telckel", "biobio", "weinpoint", "vinigrandi"], Po = "OuhXJRleF6sROjsQZPWx1yqjrL6APeJxmHswqyOBWbgIqtXcht3MDadvI9DtOOoL";
5809
+ class Cn {
5810
5810
  constructor(e) {
5811
5811
  var s;
5812
- this.baseURL = "https://api.wineater.com/", this.store = Mo.find((n) => window.location.href.includes(n)), this.token = ((s = window == null ? void 0 : window.wineaterData) == null ? void 0 : s.CLIENT_TOKEN) || Ao;
5812
+ this.baseURL = "https://api.wineater.com/", this.store = Lo.find((n) => window.location.href.includes(n)), this.token = ((s = window == null ? void 0 : window.wineaterData) == null ? void 0 : s.CLIENT_TOKEN) || Po;
5813
5813
  }
5814
5814
  async getStoreConfig(e) {
5815
5815
  console.log(e);
@@ -5848,9 +5848,9 @@ class xn {
5848
5848
  }
5849
5849
  }
5850
5850
  }
5851
- class Lo {
5851
+ class Fo {
5852
5852
  constructor() {
5853
- this.api = new xn(), this.language = "en", this.translations = {
5853
+ this.api = new Cn(), this.language = "en", this.translations = {
5854
5854
  fr: {
5855
5855
  welcomeMessage: "Sublimez votre expérience gastronomique. Il vous suffit de donner les détails de votre plat, et obtenez la recommandation de compagnon de vin idéale. Que voulez-vous manger?",
5856
5856
  noResultsFound: "Aucun résultat trouvé.",
@@ -5917,11 +5917,11 @@ class Lo {
5917
5917
  return this.translations[this.language][e] || e;
5918
5918
  }
5919
5919
  }
5920
- const Q = new Lo();
5921
- class Po {
5920
+ const Q = new Fo();
5921
+ class Bo {
5922
5922
  constructor() {
5923
5923
  var s;
5924
- this.api = new xn();
5924
+ this.api = new Cn();
5925
5925
  const e = ((s = window == null ? void 0 : window.wineaterData) == null ? void 0 : s.FIRST_MESSAGE_TEXT) || Q.translate("welcomeMessage");
5926
5926
  this.displayFirstMessage(e);
5927
5927
  }
@@ -5939,7 +5939,7 @@ class Po {
5939
5939
  if (s) {
5940
5940
  this.displayMessage(s, "user"), e.value = "", this.showTypingIndicator();
5941
5941
  try {
5942
- Dn(s);
5942
+ An(s);
5943
5943
  const n = await this.api.getWineRecommendations(s);
5944
5944
  this.hideTypingIndicator(), n && n.length ? this.displayResults(n) : this.displayMessage("No results found.", "api");
5945
5945
  } catch {
@@ -5958,11 +5958,11 @@ class Po {
5958
5958
  i.textContent = e, i.className = "message " + s, n.appendChild(i), n.scrollTop = n.scrollHeight;
5959
5959
  }
5960
5960
  sendAnalytics(e) {
5961
- console.log(e), An(e);
5961
+ console.log(e), Pn(e);
5962
5962
  }
5963
5963
  displayResults(e) {
5964
5964
  const s = document.getElementById("message-container");
5965
- Mn(e.map((n) => n.Title)), e.forEach((n) => {
5965
+ Ln(e.map((n) => n.Title)), e.forEach((n) => {
5966
5966
  const i = document.createElement("div");
5967
5967
  i.className = "wine-item";
5968
5968
  const r = document.createElement("img");
@@ -5984,25 +5984,41 @@ const Re = {
5984
5984
  PRODUCT_PAGES: /producto\/[^\/]+\/$/
5985
5985
  // Matches any product page like 'producto/any-product-name/'
5986
5986
  // CART_PAGE: /carrito\/$/ // Matches the cart page like 'carrito/'
5987
+ }, Ds = {
5988
+ FESTIVAL_PAGES: /festival/,
5989
+ // Matches any URL containing 'festival'
5990
+ TASTING_PAGES: /tasting/
5991
+ // Matches any URL containing 'tasting'
5987
5992
  };
5988
5993
  var As, Ls;
5989
- const pt = {
5990
- PRODUCT_PAGES: ((As = window.wineaterData) == null ? void 0 : As.PRODUCT_PAGES) || Re.PRODUCT_PAGES,
5991
- CART_PAGE: ((Ls = window.wineaterData) == null ? void 0 : Ls.CART_PAGE) || (Re == null ? void 0 : Re.CART_PAGE)
5994
+ const Uo = {
5995
+ FESTIVAL_PAGES: ((As = window.wineaterData) == null ? void 0 : As.FESTIVAL_PAGES) || Ds.FESTIVAL_PAGES,
5996
+ TASTING_PAGES: ((Ls = window.wineaterData) == null ? void 0 : Ls.TASTING_PAGES) || Ds.TASTING_PAGES
5997
+ };
5998
+ var Ps, Fs;
5999
+ const Ho = {
6000
+ PRODUCT_PAGES: ((Ps = window.wineaterData) == null ? void 0 : Ps.PRODUCT_PAGES) || Re.PRODUCT_PAGES,
6001
+ CART_PAGE: ((Fs = window.wineaterData) == null ? void 0 : Fs.CART_PAGE) || (Re == null ? void 0 : Re.CART_PAGE)
5992
6002
  };
5993
- function Fo() {
6003
+ function jo() {
5994
6004
  const t = window.location.href;
5995
- return console.log(pt), !!(pt.PRODUCT_PAGES.test(t) || pt.CART_PAGE.test(t));
6005
+ for (const [e, s] of Object.entries(Uo))
6006
+ if (s.test(t))
6007
+ return !1;
6008
+ for (const [e, s] of Object.entries(Ho))
6009
+ if (s.test(t))
6010
+ return !0;
6011
+ return !1;
5996
6012
  }
5997
- const Bo = new Ro({
6013
+ const zo = new Mo({
5998
6014
  projectKey: "PA8j9fAi49i6g2QnvpNs"
5999
- }), Uo = "OuhXJRleF6sROjsQZPWx1yqjrL6APeJxmHswqyOBWbgIqtXcht3MDadvI9DtOOoL";
6015
+ }), Wo = "OuhXJRleF6sROjsQZPWx1yqjrL6APeJxmHswqyOBWbgIqtXcht3MDadvI9DtOOoL";
6000
6016
  document.addEventListener("DOMContentLoaded", () => {
6001
- window.toggleChatWindow = kn, window.closeChatWindow = Tn, window.openChatWindow = In;
6017
+ window.toggleChatWindow = In, window.closeChatWindow = xn, window.openChatWindow = En;
6002
6018
  });
6003
- function Ho() {
6019
+ function qo() {
6004
6020
  var s;
6005
- Bo.start();
6021
+ zo.start();
6006
6022
  const e = `
6007
6023
  <div id="chatbot-container">
6008
6024
  <div id="chat-icon" onclick="toggleChatWindow()">
@@ -6034,40 +6050,40 @@ function Ho() {
6034
6050
  `;
6035
6051
  document.body.insertAdjacentHTML("beforeend", e);
6036
6052
  }
6037
- function jo() {
6038
- document.getElementById("close-btn").addEventListener("click", kn);
6053
+ function $o() {
6054
+ document.getElementById("close-btn").addEventListener("click", In);
6039
6055
  }
6040
- function zo() {
6056
+ function Vo() {
6041
6057
  window.addEventListener("click", function(t) {
6042
6058
  const e = document.getElementById("chat-window"), s = document.getElementById("chat-icon");
6043
6059
  !e.contains(t.target) && !s.contains(t.target) && (e.classList.remove("visible"), s.style.display = "flex");
6044
6060
  });
6045
6061
  }
6046
- function Wo(t) {
6062
+ function Xo(t) {
6047
6063
  console.log(t);
6048
6064
  const e = document.getElementById("chat-icon"), s = document.getElementById("chat-window");
6049
6065
  e.className = "", s.className = "", t === "right-center" ? (e.classList.add("chat-icon-right-center"), s.classList.add("right-center-aligned")) : e.classList.add("chat-icon-bottom-right");
6050
6066
  }
6051
- function qo(t = 1e4) {
6067
+ function Go(t = 1e4) {
6052
6068
  setTimeout(() => {
6053
- In(window.location.href);
6069
+ En(window.location.href);
6054
6070
  }, t);
6055
6071
  }
6056
6072
  document.addEventListener("DOMContentLoaded", () => {
6057
- !j("disableAutoOpen") && Fo() && qo(1e4);
6073
+ !j("disableAutoOpen") && jo() && Go(1e4);
6058
6074
  });
6059
- var Ps;
6075
+ var Bs;
6060
6076
  if (typeof window < "u") {
6061
- let t = ((Ps = window == null ? void 0 : window.wineaterData) == null ? void 0 : Ps.POSITION) || "bottom-right";
6077
+ let t = ((Bs = window == null ? void 0 : window.wineaterData) == null ? void 0 : Bs.POSITION) || "bottom-right";
6062
6078
  window.addEventListener("DOMContentLoaded", async () => {
6063
6079
  var r;
6064
6080
  const s = ["climats", "telckel", "biobio", "weinpoint", "vinigrandi"].find((o) => window.location.href.includes(o)) || null;
6065
6081
  let n;
6066
- s && (n = s.charAt(0).toUpperCase() + s.slice(1), n === "Biobio" && (t = "right-center")), await Q.fetchConfig(n || "Demo"), Ho(), jo(), zo(), Wo(t), Pe("chatbotToken", ((r = window.wineaterData) == null ? void 0 : r.CLIENT_TOKEN) || Uo, 365), On(), new Po().initialize();
6082
+ s && (n = s.charAt(0).toUpperCase() + s.slice(1), n === "Biobio" && (t = "right-center")), await Q.fetchConfig(n || "Demo"), qo(), $o(), Vo(), Xo(t), Pe("chatbotToken", ((r = window.wineaterData) == null ? void 0 : r.CLIENT_TOKEN) || Wo, 365), Dn(), new Bo().initialize();
6067
6083
  });
6068
6084
  }
6069
6085
  export {
6070
- Tn as closeChatWindow,
6071
- In as openChatWindow,
6072
- kn as toggleChatWindow
6086
+ xn as closeChatWindow,
6087
+ En as openChatWindow,
6088
+ In as toggleChatWindow
6073
6089
  };