@sprig-technologies/sprig-bundled 2.40.0 → 2.40.1

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.
@@ -633,7 +633,7 @@ function Mi(e) {
633
633
  }
634
634
  }
635
635
  const es = {};
636
- function tt(e, t, r) {
636
+ function et(e, t, r) {
637
637
  var n;
638
638
  const s = `${e}.${String(r)}`;
639
639
  if (es[s]) return es[s].call(t);
@@ -648,27 +648,27 @@ function Ro(e, t, r) {
648
648
  return typeof s != "function" ? t[r] : (ts[n] = s, s.bind(t));
649
649
  }
650
650
  const we = { childNodes: function(e) {
651
- return tt("Node", e, "childNodes");
651
+ return et("Node", e, "childNodes");
652
652
  }, parentNode: function(e) {
653
- return tt("Node", e, "parentNode");
653
+ return et("Node", e, "parentNode");
654
654
  }, parentElement: function(e) {
655
- return tt("Node", e, "parentElement");
655
+ return et("Node", e, "parentElement");
656
656
  }, textContent: function(e) {
657
- return tt("Node", e, "textContent");
657
+ return et("Node", e, "textContent");
658
658
  }, contains: function(e, t) {
659
659
  return Ro("Node", e, "contains")(t);
660
660
  }, getRootNode: function(e) {
661
661
  return Ro("Node", e, "getRootNode")();
662
662
  }, host: function(e) {
663
- return e && "host" in e ? tt("ShadowRoot", e, "host") : null;
663
+ return e && "host" in e ? et("ShadowRoot", e, "host") : null;
664
664
  }, styleSheets: function(e) {
665
665
  return e.styleSheets;
666
666
  }, shadowRoot: function(e) {
667
- return e && "shadowRoot" in e ? tt("Element", e, "shadowRoot") : null;
667
+ return e && "shadowRoot" in e ? et("Element", e, "shadowRoot") : null;
668
668
  }, querySelector: function(e, t) {
669
- return tt("Element", e, "querySelector")(t);
669
+ return et("Element", e, "querySelector")(t);
670
670
  }, querySelectorAll: function(e, t) {
671
- return tt("Element", e, "querySelectorAll")(t);
671
+ return et("Element", e, "querySelectorAll")(t);
672
672
  }, mutationObserver: function() {
673
673
  return Mi("MutationObserver").constructor;
674
674
  } };
@@ -682,7 +682,7 @@ function Kt(e) {
682
682
  function Xt(e) {
683
683
  return Object.prototype.toString.call(e) === "[object ShadowRoot]";
684
684
  }
685
- function Jr(e) {
685
+ function qr(e) {
686
686
  try {
687
687
  const r = e.rules || e.cssRules;
688
688
  return r ? ((t = Array.from(r, (s) => kl(s, e.href)).join("")).includes(" background-clip: text;") && !t.includes(" -webkit-background-clip: text;") && (t = t.replace(/\sbackground-clip:\s*text;/g, " -webkit-background-clip: text; background-clip: text;")), t) : null;
@@ -697,7 +697,7 @@ function kl(e, t) {
697
697
  }(e)) {
698
698
  let r;
699
699
  try {
700
- r = Jr(e.styleSheet) || function(n) {
700
+ r = qr(e.styleSheet) || function(n) {
701
701
  const { cssText: s } = n;
702
702
  if (s.split('"').length < 3) return s;
703
703
  const i = ["@import", `url(${JSON.stringify(n.href)})`];
@@ -784,12 +784,12 @@ function Oo(e, t) {
784
784
  const n = r.pathname.match(/\.([0-9a-z]+)(?:$)/i);
785
785
  return (n == null ? void 0 : n[1]) ?? null;
786
786
  }
787
- const Hd = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, Gd = /^(?:[a-z+]+:)?\/\//i, $d = /^www\..*/i, Yd = /^(data:)([^,]*),(.*)/i;
787
+ const Gd = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, Hd = /^(?:[a-z+]+:)?\/\//i, $d = /^www\..*/i, Yd = /^(data:)([^,]*),(.*)/i;
788
788
  function yn(e, t) {
789
- return (e || "").replace(Hd, (r, n, s, i, a, o) => {
789
+ return (e || "").replace(Gd, (r, n, s, i, a, o) => {
790
790
  const l = s || a || o, c = n || i || "";
791
791
  if (!l) return r;
792
- if (Gd.test(l) || $d.test(l)) return `url(${c}${l}${c})`;
792
+ if (Hd.test(l) || $d.test(l)) return `url(${c}${l}${c})`;
793
793
  if (Yd.test(l)) return `url(${c}${l}${c})`;
794
794
  if (l[0] === "/") return `url(${c}${function(h) {
795
795
  let f = "";
@@ -801,10 +801,10 @@ function yn(e, t) {
801
801
  return `url(${c}${u.join("/")}${c})`;
802
802
  });
803
803
  }
804
- let Jd = 1;
805
- const qd = new RegExp("[^a-z0-9-_:]");
804
+ let qd = 1;
805
+ const Jd = new RegExp("[^a-z0-9-_:]");
806
806
  function xl() {
807
- return Jd++;
807
+ return qd++;
808
808
  }
809
809
  let bt, Ao;
810
810
  const Zd = /^[^ \t\n\r\u000c]+/, Kd = /^[, \t\n\r\u000c]+/, Mo = /* @__PURE__ */ new WeakMap();
@@ -911,8 +911,8 @@ function Qd(e, t) {
911
911
  try {
912
912
  if (typeof _ == "string") {
913
913
  if (O.classList.contains(_)) return !0;
914
- } else for (let J = O.classList.length; J--; ) {
915
- const me = O.classList[J];
914
+ } else for (let q = O.classList.length; q--; ) {
915
+ const me = O.classList[q];
916
916
  if (_.test(me)) return !0;
917
917
  }
918
918
  if (ee) return O.matches(ee);
@@ -922,7 +922,7 @@ function Qd(e, t) {
922
922
  }(m, C, A), y = function(O) {
923
923
  if (O instanceof HTMLFormElement) return "form";
924
924
  const _ = ft(O.tagName);
925
- return qd.test(_) ? "div" : _;
925
+ return Jd.test(_) ? "div" : _;
926
926
  }(m);
927
927
  let U = {};
928
928
  const F = m.attributes.length;
@@ -933,10 +933,10 @@ function Qd(e, t) {
933
933
  if (y === "link" && E) {
934
934
  const O = Array.from(b.styleSheets).find((ee) => ee.href === m.href);
935
935
  let _ = null;
936
- O && (_ = Jr(O)), _ && (delete U.rel, delete U.href, U._cssText = _);
936
+ O && (_ = qr(O)), _ && (delete U.rel, delete U.href, U._cssText = _);
937
937
  }
938
938
  if (y === "style" && m.sheet && !(m.innerText || we.textContent(m) || "").trim().length) {
939
- const O = Jr(m.sheet);
939
+ const O = qr(m.sheet);
940
940
  O && (U._cssText = O);
941
941
  }
942
942
  if (y === "input" || y === "textarea" || y === "select") {
@@ -947,9 +947,9 @@ function Qd(e, t) {
947
947
  if (m.__context === "2d") (function(O) {
948
948
  const _ = O.getContext("2d");
949
949
  if (!_) return !0;
950
- for (let ee = 0; ee < O.width; ee += 50) for (let J = 0; J < O.height; J += 50) {
950
+ for (let ee = 0; ee < O.width; ee += 50) for (let q = 0; q < O.height; q += 50) {
951
951
  const me = _.getImageData, _e = Lo in me ? me[Lo] : me;
952
- if (new Uint32Array(_e.call(_, ee, J, Math.min(50, O.width - ee), Math.min(50, O.height - J)).data.buffer).some((V) => V !== 0)) return !1;
952
+ if (new Uint32Array(_e.call(_, ee, q, Math.min(50, O.width - ee), Math.min(50, O.height - q)).data.buffer).some((V) => V !== 0)) return !1;
953
953
  }
954
954
  return !0;
955
955
  })(m) || (U.rr_dataURL = m.toDataURL(k.type, k.quality));
@@ -960,17 +960,17 @@ function Qd(e, t) {
960
960
  }
961
961
  if (y === "img" && R) {
962
962
  bt || (bt = b.createElement("canvas"), Ao = bt.getContext("2d"));
963
- const O = m, _ = O.currentSrc || O.getAttribute("src") || "<unknown-src>", ee = O.crossOrigin, J = () => {
964
- O.removeEventListener("load", J);
963
+ const O = m, _ = O.currentSrc || O.getAttribute("src") || "<unknown-src>", ee = O.crossOrigin, q = () => {
964
+ O.removeEventListener("load", q);
965
965
  try {
966
966
  bt.width = O.naturalWidth, bt.height = O.naturalHeight, Ao.drawImage(O, 0, 0), U.rr_dataURL = bt.toDataURL(k.type, k.quality);
967
967
  } catch (me) {
968
- if (O.crossOrigin !== "anonymous") return O.crossOrigin = "anonymous", void (O.complete && O.naturalWidth !== 0 ? J() : O.addEventListener("load", J));
968
+ if (O.crossOrigin !== "anonymous") return O.crossOrigin = "anonymous", void (O.complete && O.naturalWidth !== 0 ? q() : O.addEventListener("load", q));
969
969
  console.warn(`Cannot inline img src=${_}! Error: ${me}`);
970
970
  }
971
971
  O.crossOrigin === "anonymous" && (ee ? U.crossOrigin = ee : O.removeAttribute("crossorigin"));
972
972
  };
973
- O.complete && O.naturalWidth !== 0 ? J() : O.addEventListener("load", J);
973
+ O.complete && O.naturalWidth !== 0 ? q() : O.addEventListener("load", q);
974
974
  }
975
975
  if (y === "audio" || y === "video") {
976
976
  const O = U;
@@ -996,7 +996,7 @@ function Qd(e, t) {
996
996
  const R = M === "STYLE" || void 0, x = M === "SCRIPT" || void 0;
997
997
  if (R && k) {
998
998
  try {
999
- m.nextSibling || m.previousSibling || (b = T.sheet) != null && b.cssRules && (k = Jr(T.sheet));
999
+ m.nextSibling || m.previousSibling || (b = T.sheet) != null && b.cssRules && (k = qr(T.sheet));
1000
1000
  } catch (S) {
1001
1001
  console.warn(`Cannot get CSS styles from text's parentNode. Error: ${S}`, m);
1002
1002
  }
@@ -1558,7 +1558,7 @@ let { SourceMapConsumer: _o, SourceMapGenerator: No } = De, { existsSync: up, re
1558
1558
  };
1559
1559
  var Ul = Ts;
1560
1560
  Ts.default = Ts;
1561
- let { SourceMapConsumer: hp, SourceMapGenerator: mp } = De, { fileURLToPath: Fo, pathToFileURL: Cr } = De, { isAbsolute: Ds, resolve: Ps } = De, { nanoid: fp } = cp, ns = De, Bo = Pi, gp = Ul, ss = Symbol("fromOffsetCache"), yp = !!(hp && mp), zo = !!(Ps && Ds), qr = class {
1561
+ let { SourceMapConsumer: hp, SourceMapGenerator: mp } = De, { fileURLToPath: Fo, pathToFileURL: Cr } = De, { isAbsolute: Ds, resolve: Ps } = De, { nanoid: fp } = cp, ns = De, Bo = Pi, gp = Ul, ss = Symbol("fromOffsetCache"), yp = !!(hp && mp), zo = !!(Ps && Ds), Jr = class {
1562
1562
  constructor(e, t = {}) {
1563
1563
  if (e == null || typeof e == "object" && !e.toString) throw new Error(`PostCSS received ${e} instead of CSS string`);
1564
1564
  if (this.css = e.toString(), this.css[0] === "\uFEFF" || this.css[0] === "￾" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, t.from && (!zo || /^\w+:\/\//.test(t.from) || Ds(t.from) ? this.file = t.from : this.file = Ps(t.from)), zo && yp) {
@@ -1642,8 +1642,8 @@ let { SourceMapConsumer: hp, SourceMapGenerator: mp } = De, { fileURLToPath: Fo,
1642
1642
  return this.file || this.id;
1643
1643
  }
1644
1644
  };
1645
- var zn = qr;
1646
- qr.default = qr, ns && ns.registerInput && ns.registerInput(qr);
1645
+ var zn = Jr;
1646
+ Jr.default = Jr, ns && ns.registerInput && ns.registerInput(Jr);
1647
1647
  let { SourceMapConsumer: Tl, SourceMapGenerator: Zr } = De, { dirname: Kr, relative: Dl, resolve: Pl, sep: _l } = De, { pathToFileURL: jo } = De, wp = zn, vp = !!(Tl && Zr), bp = !!(Kr && Pl && Dl && _l);
1648
1648
  var Nl = class {
1649
1649
  constructor(e, t, r, n) {
@@ -1785,13 +1785,13 @@ let Sp = Fn, _s = class extends Sp {
1785
1785
  var jn = _s;
1786
1786
  _s.default = _s;
1787
1787
  let Fl, _i, Ni, Bl, { isClean: zl, my: jl } = ir, Wl = Bn, Vl = jn, Ip = Fn;
1788
- function Hl(e) {
1789
- return e.map((t) => (t.nodes && (t.nodes = Hl(t.nodes)), delete t.source, t));
1790
- }
1791
1788
  function Gl(e) {
1792
- if (e[zl] = !1, e.proxyOf.nodes) for (let t of e.proxyOf.nodes) Gl(t);
1789
+ return e.map((t) => (t.nodes && (t.nodes = Gl(t.nodes)), delete t.source, t));
1790
+ }
1791
+ function Hl(e) {
1792
+ if (e[zl] = !1, e.proxyOf.nodes) for (let t of e.proxyOf.nodes) Hl(t);
1793
1793
  }
1794
- let Ze = class $l extends Ip {
1794
+ let Je = class $l extends Ip {
1795
1795
  append(...t) {
1796
1796
  for (let r of t) {
1797
1797
  let n = this.normalize(r, this.last);
@@ -1837,7 +1837,7 @@ let Ze = class $l extends Ip {
1837
1837
  return this.markDirty(), this;
1838
1838
  }
1839
1839
  normalize(t, r) {
1840
- if (typeof t == "string") t = Hl(Fl(t).nodes);
1840
+ if (typeof t == "string") t = Gl(Fl(t).nodes);
1841
1841
  else if (t === void 0) t = [];
1842
1842
  else if (Array.isArray(t)) {
1843
1843
  t = t.slice(0);
@@ -1855,7 +1855,7 @@ let Ze = class $l extends Ip {
1855
1855
  if (!t.text) throw new Error("Unknown node type in node creation");
1856
1856
  t = [new Vl(t)];
1857
1857
  }
1858
- return t.map((n) => (n[jl] || $l.rebuild(n), (n = n.proxyOf).parent && n.parent.removeChild(n), n[zl] && Gl(n), n.raws.before === void 0 && r && r.raws.before !== void 0 && (n.raws.before = r.raws.before.replace(/\S/g, "")), n.parent = this.proxyOf, n));
1858
+ return t.map((n) => (n[jl] || $l.rebuild(n), (n = n.proxyOf).parent && n.parent.removeChild(n), n[zl] && Hl(n), n.raws.before === void 0 && r && r.raws.before !== void 0 && (n.raws.before = r.raws.before.replace(/\S/g, "")), n.parent = this.proxyOf, n));
1859
1859
  }
1860
1860
  prepend(...t) {
1861
1861
  t = t.reverse();
@@ -1937,33 +1937,33 @@ let Ze = class $l extends Ip {
1937
1937
  if (this.proxyOf.nodes) return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
1938
1938
  }
1939
1939
  };
1940
- Ze.registerParse = (e) => {
1940
+ Je.registerParse = (e) => {
1941
1941
  Fl = e;
1942
- }, Ze.registerRule = (e) => {
1942
+ }, Je.registerRule = (e) => {
1943
1943
  _i = e;
1944
- }, Ze.registerAtRule = (e) => {
1944
+ }, Je.registerAtRule = (e) => {
1945
1945
  Ni = e;
1946
- }, Ze.registerRoot = (e) => {
1946
+ }, Je.registerRoot = (e) => {
1947
1947
  Bl = e;
1948
1948
  };
1949
- var yt = Ze;
1950
- Ze.default = Ze, Ze.rebuild = (e) => {
1949
+ var yt = Je;
1950
+ Je.default = Je, Je.rebuild = (e) => {
1951
1951
  e.type === "atrule" ? Object.setPrototypeOf(e, Ni.prototype) : e.type === "rule" ? Object.setPrototypeOf(e, _i.prototype) : e.type === "decl" ? Object.setPrototypeOf(e, Wl.prototype) : e.type === "comment" ? Object.setPrototypeOf(e, Vl.prototype) : e.type === "root" && Object.setPrototypeOf(e, Bl.prototype), e[jl] = !0, e.nodes && e.nodes.forEach((t) => {
1952
- Ze.rebuild(t);
1952
+ Je.rebuild(t);
1953
1953
  });
1954
1954
  };
1955
- let Yl, Jl, Cp = yt, or = class extends Cp {
1955
+ let Yl, ql, Cp = yt, or = class extends Cp {
1956
1956
  constructor(e) {
1957
1957
  super({ type: "document", ...e }), this.nodes || (this.nodes = []);
1958
1958
  }
1959
1959
  toResult(e = {}) {
1960
- return new Yl(new Jl(), this, e).stringify();
1960
+ return new Yl(new ql(), this, e).stringify();
1961
1961
  }
1962
1962
  };
1963
1963
  or.registerLazyResult = (e) => {
1964
1964
  Yl = e;
1965
1965
  }, or.registerProcessor = (e) => {
1966
- Jl = e;
1966
+ ql = e;
1967
1967
  };
1968
1968
  var Fi = or;
1969
1969
  or.default = or;
@@ -1979,9 +1979,9 @@ let Ns = class {
1979
1979
  return this.node ? this.node.error(this.text, { index: this.index, plugin: this.plugin, word: this.word }).message : this.plugin ? this.plugin + ": " + this.text : this.text;
1980
1980
  }
1981
1981
  };
1982
- var ql = Ns;
1982
+ var Jl = Ns;
1983
1983
  Ns.default = Ns;
1984
- let kp = ql, Fs = class {
1984
+ let kp = Jl, Fs = class {
1985
1985
  constructor(e, t, r) {
1986
1986
  this.processor = e, this.messages = [], this.root = t, this.opts = r, this.css = void 0, this.map = void 0;
1987
1987
  }
@@ -2002,7 +2002,7 @@ let kp = ql, Fs = class {
2002
2002
  };
2003
2003
  var Bi = Fs;
2004
2004
  Fs.default = Fs;
2005
- const is = 39, Wo = 34, kr = 92, Vo = 47, Er = 10, Bt = 32, xr = 12, Rr = 9, Lr = 13, Ep = 91, xp = 93, Rp = 40, Lp = 41, Op = 123, Ap = 125, Mp = 59, Up = 42, Tp = 58, Dp = 64, Or = /[\t\n\f\r "#'()/;[\\\]{}]/g, Ar = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Pp = /.[\r\n"'(/\\]/, Ho = /[\da-f]/i;
2005
+ const is = 39, Wo = 34, kr = 92, Vo = 47, Er = 10, Bt = 32, xr = 12, Rr = 9, Lr = 13, Ep = 91, xp = 93, Rp = 40, Lp = 41, Op = 123, Ap = 125, Mp = 59, Up = 42, Tp = 58, Dp = 64, Or = /[\t\n\f\r "#'()/;[\\\]{}]/g, Ar = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Pp = /.[\r\n"'(/\\]/, Go = /[\da-f]/i;
2006
2006
  let Zl = yt, Xr = class extends Zl {
2007
2007
  constructor(e) {
2008
2008
  super(e), this.type = "atrule";
@@ -2137,8 +2137,8 @@ let Np = Bn, Fp = function(e, t = {}) {
2137
2137
  break;
2138
2138
  case kr:
2139
2139
  for (n = p, a = !0; h.charCodeAt(n + 1) === kr; ) n += 1, a = !a;
2140
- if (r = h.charCodeAt(n + 1), a && r !== Vo && r !== Bt && r !== Er && r !== Rr && r !== Lr && r !== xr && (n += 1, Ho.test(h.charAt(n)))) {
2141
- for (; Ho.test(h.charAt(n + 1)); ) n += 1;
2140
+ if (r = h.charCodeAt(n + 1), a && r !== Vo && r !== Bt && r !== Er && r !== Rr && r !== Lr && r !== xr && (n += 1, Go.test(h.charAt(n)))) {
2141
+ for (; Go.test(h.charAt(n + 1)); ) n += 1;
2142
2142
  h.charCodeAt(n + 1) === Bt && (n += 1);
2143
2143
  }
2144
2144
  d = ["word", h.slice(p, n + 1), p, n], p = n;
@@ -2150,7 +2150,7 @@ let Np = Bn, Fp = function(e, t = {}) {
2150
2150
  }, position: function() {
2151
2151
  return p;
2152
2152
  } };
2153
- }, Bp = jn, zp = zi, jp = gr, Go = ji;
2153
+ }, Bp = jn, zp = zi, jp = gr, Ho = ji;
2154
2154
  const $o = { empty: !0, space: !0 };
2155
2155
  var Wp = class {
2156
2156
  constructor(e) {
@@ -2271,7 +2271,7 @@ var Wp = class {
2271
2271
  throw this.input.error("Double colon", { offset: e[2] }, { offset: e[2] + e[1].length });
2272
2272
  }
2273
2273
  emptyRule(e) {
2274
- let t = new Go();
2274
+ let t = new Ho();
2275
2275
  this.init(t, e[2]), t.selector = "", t.raws.between = "", this.current = t;
2276
2276
  }
2277
2277
  end(e) {
@@ -2356,7 +2356,7 @@ var Wp = class {
2356
2356
  }
2357
2357
  rule(e) {
2358
2358
  e.pop();
2359
- let t = new Go();
2359
+ let t = new Ho();
2360
2360
  this.init(t, e[0][2]), t.raws.between = this.spacesAndCommentsFromEnd(e), this.raw(t, "selector", e), this.current = t;
2361
2361
  }
2362
2362
  spacesAndCommentsFromEnd(e) {
@@ -2396,9 +2396,9 @@ var Wp = class {
2396
2396
  throw this.input.error("At-rule without name", { offset: t[2] }, { offset: t[2] + t[1].length });
2397
2397
  }
2398
2398
  };
2399
- let Vp = yt, Hp = Wp, Gp = zn;
2399
+ let Vp = yt, Gp = Wp, Hp = zn;
2400
2400
  function en(e, t) {
2401
- let r = new Gp(e, t), n = new Hp(r);
2401
+ let r = new Hp(e, t), n = new Gp(r);
2402
2402
  try {
2403
2403
  n.parse();
2404
2404
  } catch (s) {
@@ -2408,7 +2408,7 @@ function en(e, t) {
2408
2408
  }
2409
2409
  var Wi = en;
2410
2410
  en.default = en, Vp.registerParse(en);
2411
- let { isClean: Ne, my: $p } = ir, Yp = Nl, Jp = Nn, qp = yt, Zp = Fi, Yo = Bi, Kp = Wi, Xp = gr;
2411
+ let { isClean: Ne, my: $p } = ir, Yp = Nl, qp = Nn, Jp = yt, Zp = Fi, Yo = Bi, Kp = Wi, Xp = gr;
2412
2412
  const Qp = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, eh = { AtRule: !0, AtRuleExit: !0, Comment: !0, CommentExit: !0, Declaration: !0, DeclarationExit: !0, Document: !0, DocumentExit: !0, Once: !0, OnceExit: !0, postcssPlugin: !0, prepare: !0, Root: !0, RootExit: !0, Rule: !0, RuleExit: !0 }, th = { Once: !0, postcssPlugin: !0, prepare: !0 };
2413
2413
  function zt(e) {
2414
2414
  return typeof e == "object" && typeof e.then == "function";
@@ -2417,7 +2417,7 @@ function rc(e) {
2417
2417
  let t = !1, r = Qp[e.type];
2418
2418
  return e.type === "decl" ? t = e.prop.toLowerCase() : e.type === "atrule" && (t = e.name.toLowerCase()), t && e.append ? [r, r + "-" + t, 0, r + "Exit", r + "Exit-" + t] : t ? [r, r + "-" + t, r + "Exit", r + "Exit-" + t] : e.append ? [r, 0, r + "Exit"] : [r, r + "Exit"];
2419
2419
  }
2420
- function Jo(e) {
2420
+ function qo(e) {
2421
2421
  let t;
2422
2422
  return t = e.type === "document" ? ["Document", 0, "DocumentExit"] : e.type === "root" ? ["Root", 0, "RootExit"] : rc(e), { eventIndex: 0, events: t, iterator: 0, node: e, visitorIndex: 0, visitors: [] };
2423
2423
  }
@@ -2436,7 +2436,7 @@ let zs = {}, xt = class nc {
2436
2436
  } catch (a) {
2437
2437
  this.processed = !0, this.error = a;
2438
2438
  }
2439
- s && !s[$p] && qp.rebuild(s);
2439
+ s && !s[$p] && Jp.rebuild(s);
2440
2440
  }
2441
2441
  else s = Bs(r);
2442
2442
  this.result = new Yo(t, s, n), this.helpers = { ...zs, postcss: zs, result: this.result }, this.plugins = this.processor.plugins.map((i) => typeof i == "object" && i.prepare ? { ...i, ...i.prepare(this.result) } : i);
@@ -2488,7 +2488,7 @@ let zs = {}, xt = class nc {
2488
2488
  let t = this.result.root;
2489
2489
  for (; !t[Ne]; ) {
2490
2490
  t[Ne] = !0;
2491
- let r = [Jo(t)];
2491
+ let r = [qo(t)];
2492
2492
  for (; r.length > 0; ) {
2493
2493
  let n = this.visitTick(r);
2494
2494
  if (zt(n)) try {
@@ -2532,7 +2532,7 @@ let zs = {}, xt = class nc {
2532
2532
  if (this.error) throw this.error;
2533
2533
  if (this.stringified) return this.result;
2534
2534
  this.stringified = !0, this.sync();
2535
- let t = this.result.opts, r = Jp;
2535
+ let t = this.result.opts, r = qp;
2536
2536
  t.syntax && (r = t.syntax.stringify), t.stringifier && (r = t.stringifier), r.stringify && (r = r.stringify);
2537
2537
  let n = new Yp(r, this.result.root, this.result.opts).generate();
2538
2538
  return this.result.css = n[0], this.result.map = n[1], this.result;
@@ -2584,7 +2584,7 @@ let zs = {}, xt = class nc {
2584
2584
  }
2585
2585
  if (r.iterator !== 0) {
2586
2586
  let a, o = r.iterator;
2587
- for (; a = n.nodes[n.indexes[o]]; ) if (n.indexes[o] += 1, !a[Ne]) return a[Ne] = !0, void t.push(Jo(a));
2587
+ for (; a = n.nodes[n.indexes[o]]; ) if (n.indexes[o] += 1, !a[Ne]) return a[Ne] = !0, void t.push(qo(a));
2588
2588
  r.iterator = 0, delete n.indexes[o];
2589
2589
  }
2590
2590
  let i = r.events;
@@ -2712,7 +2712,7 @@ let js = class {
2712
2712
  };
2713
2713
  var oh = js;
2714
2714
  js.default = js;
2715
- let ah = oh, lh = sc, ch = Fi, uh = gr, Ht = class {
2715
+ let ah = oh, lh = sc, ch = Fi, uh = gr, Gt = class {
2716
2716
  constructor(e = []) {
2717
2717
  this.version = "8.4.38", this.plugins = this.normalize(e);
2718
2718
  }
@@ -2731,8 +2731,8 @@ let ah = oh, lh = sc, ch = Fi, uh = gr, Ht = class {
2731
2731
  return this.plugins = this.plugins.concat(this.normalize([e])), this;
2732
2732
  }
2733
2733
  };
2734
- var dh = Ht;
2735
- Ht.default = Ht, uh.registerProcessor(Ht), ch.registerProcessor(Ht);
2734
+ var dh = Gt;
2735
+ Gt.default = Gt, uh.registerProcessor(Gt), ch.registerProcessor(Gt);
2736
2736
  let ph = Bn, hh = Ul, mh = jn, fh = zi, gh = zn, yh = gr, wh = ji;
2737
2737
  function lr(e, t) {
2738
2738
  if (Array.isArray(e)) return e.map((s) => lr(s));
@@ -2757,7 +2757,7 @@ function lr(e, t) {
2757
2757
  }
2758
2758
  var vh = lr;
2759
2759
  lr.default = lr;
2760
- let bh = Pi, qo = Bn, Sh = sc, Ih = yt, Ws = dh, Ch = Nn, kh = vh, Zo = Fi, Eh = ql, Ko = jn, Xo = zi, xh = Bi, Rh = zn, Lh = Wi, Oh = ec, Qo = ji, ea = gr, Ah = Fn;
2760
+ let bh = Pi, Jo = Bn, Sh = sc, Ih = yt, Ws = dh, Ch = Nn, kh = vh, Zo = Fi, Eh = Jl, Ko = jn, Xo = zi, xh = Bi, Rh = zn, Lh = Wi, Oh = ec, Qo = ji, ea = gr, Ah = Fn;
2761
2761
  function Z(...e) {
2762
2762
  return e.length === 1 && Array.isArray(e[0]) && (e = e[0]), new Ws(e);
2763
2763
  }
@@ -2773,7 +2773,7 @@ https://www.w3ctech.com/topic/2226`));
2773
2773
  return Object.defineProperty(s, "postcss", { get: () => (r || (r = s()), r) }), s.process = function(i, a, o) {
2774
2774
  return Z([s(o)]).process(i, a);
2775
2775
  }, s;
2776
- }, Z.stringify = Ch, Z.parse = Lh, Z.fromJSON = kh, Z.list = Oh, Z.comment = (e) => new Ko(e), Z.atRule = (e) => new Xo(e), Z.decl = (e) => new qo(e), Z.rule = (e) => new Qo(e), Z.root = (e) => new ea(e), Z.document = (e) => new Zo(e), Z.CssSyntaxError = bh, Z.Declaration = qo, Z.Container = Ih, Z.Processor = Ws, Z.Document = Zo, Z.Comment = Ko, Z.Warning = Eh, Z.AtRule = Xo, Z.Result = xh, Z.Input = Rh, Z.Rule = Qo, Z.Root = ea, Z.Node = Ah, Sh.registerPostcss(Z);
2776
+ }, Z.stringify = Ch, Z.parse = Lh, Z.fromJSON = kh, Z.list = Oh, Z.comment = (e) => new Ko(e), Z.atRule = (e) => new Xo(e), Z.decl = (e) => new Jo(e), Z.rule = (e) => new Qo(e), Z.root = (e) => new ea(e), Z.document = (e) => new Zo(e), Z.CssSyntaxError = bh, Z.Declaration = Jo, Z.Container = Ih, Z.Processor = Ws, Z.Document = Zo, Z.Comment = Ko, Z.Warning = Eh, Z.AtRule = Xo, Z.Result = xh, Z.Input = Rh, Z.Rule = Qo, Z.Root = ea, Z.Node = Ah, Sh.registerPostcss(Z);
2777
2777
  var Mh = Z;
2778
2778
  Z.default = Z;
2779
2779
  const ae = ep(Mh);
@@ -2804,7 +2804,7 @@ var Vs = { exports: {} }, ie = String, ta = function() {
2804
2804
  Vs.exports = ta(), Vs.exports.createColors = ta;
2805
2805
  var Ph = Vs.exports;
2806
2806
  const Pe = Dh(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
2807
- let ra = Ph, na = Pe, Hs = class ic extends Error {
2807
+ let ra = Ph, na = Pe, Gs = class ic extends Error {
2808
2808
  constructor(t, r, n, s, i, a) {
2809
2809
  super(t), this.name = "CssSyntaxError", this.reason = t, i && (this.file = i), s && (this.source = s), a && (this.plugin = a), r !== void 0 && n !== void 0 && (typeof r == "number" ? (this.line = r, this.column = n) : (this.line = r.line, this.column = r.column, this.endLine = n.line, this.endColumn = n.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, ic);
2810
2810
  }
@@ -2839,8 +2839,8 @@ let ra = Ph, na = Pe, Hs = class ic extends Error {
2839
2839
  `), this.name + ": " + this.message + t;
2840
2840
  }
2841
2841
  };
2842
- var Vi = Hs;
2843
- Hs.default = Hs;
2842
+ var Vi = Gs;
2843
+ Gs.default = Gs;
2844
2844
  var cr = {};
2845
2845
  cr.isClean = Symbol("isClean"), cr.my = Symbol("my");
2846
2846
  const sa = { after: `
@@ -2849,7 +2849,7 @@ const sa = { after: `
2849
2849
  `, beforeDecl: `
2850
2850
  `, beforeOpen: " ", beforeRule: `
2851
2851
  `, colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: !1 };
2852
- let Gs = class {
2852
+ let Hs = class {
2853
2853
  constructor(e) {
2854
2854
  this.builder = e;
2855
2855
  }
@@ -2995,8 +2995,8 @@ let Gs = class {
2995
2995
  this[e.type](e, t);
2996
2996
  }
2997
2997
  };
2998
- var oc = Gs;
2999
- Gs.default = Gs;
2998
+ var oc = Hs;
2999
+ Hs.default = Hs;
3000
3000
  let _h = oc;
3001
3001
  function $s(e, t) {
3002
3002
  new _h(t).stringify(e);
@@ -3013,7 +3013,7 @@ function Ys(e, t) {
3013
3013
  }
3014
3014
  return r;
3015
3015
  }
3016
- let Js = class {
3016
+ let qs = class {
3017
3017
  constructor(e = {}) {
3018
3018
  this.raws = {}, this[Mr] = !1, this[Nh] = !0;
3019
3019
  for (let t in e) if (t === "nodes") {
@@ -3158,9 +3158,9 @@ let Js = class {
3158
3158
  return this;
3159
3159
  }
3160
3160
  };
3161
- var Vn = Js;
3162
- Js.default = Js;
3163
- let jh = Vn, qs = class extends jh {
3161
+ var Vn = qs;
3162
+ qs.default = qs;
3163
+ let jh = Vn, Js = class extends jh {
3164
3164
  constructor(e) {
3165
3165
  e && e.value !== void 0 && typeof e.value != "string" && (e = { ...e, value: String(e.value) }), super(e), this.type = "decl";
3166
3166
  }
@@ -3168,14 +3168,14 @@ let jh = Vn, qs = class extends jh {
3168
3168
  return this.prop.startsWith("--") || this.prop[0] === "$";
3169
3169
  }
3170
3170
  };
3171
- var Hn = qs;
3172
- qs.default = qs;
3171
+ var Gn = Js;
3172
+ Js.default = Js;
3173
3173
  var Wh = { nanoid: (e = 21) => {
3174
3174
  let t = "", r = e;
3175
3175
  for (; r--; ) t += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64 * Math.random() | 0];
3176
3176
  return t;
3177
3177
  } };
3178
- let { SourceMapConsumer: ia, SourceMapGenerator: oa } = Pe, { existsSync: Vh, readFileSync: Hh } = Pe, { dirname: os, join: Gh } = Pe, Zs = class {
3178
+ let { SourceMapConsumer: ia, SourceMapGenerator: oa } = Pe, { existsSync: Vh, readFileSync: Gh } = Pe, { dirname: os, join: Hh } = Pe, Zs = class {
3179
3179
  constructor(e, t) {
3180
3180
  if (t.map === !1) return;
3181
3181
  this.loadAnnotation(e), this.inline = this.startWith(this.annotation, "data:");
@@ -3205,7 +3205,7 @@ let { SourceMapConsumer: ia, SourceMapGenerator: oa } = Pe, { existsSync: Vh, re
3205
3205
  r > -1 && n > -1 && (this.annotation = this.getAnnotationURL(e.substring(r, n)));
3206
3206
  }
3207
3207
  loadFile(e) {
3208
- if (this.root = os(e), Vh(e)) return this.mapFile = e, Hh(e, "utf-8").toString().trim();
3208
+ if (this.root = os(e), Vh(e)) return this.mapFile = e, Gh(e, "utf-8").toString().trim();
3209
3209
  }
3210
3210
  loadMap(e, t) {
3211
3211
  if (t === !1) return !1;
@@ -3229,7 +3229,7 @@ let { SourceMapConsumer: ia, SourceMapGenerator: oa } = Pe, { existsSync: Vh, re
3229
3229
  if (this.inline) return this.decodeInline(this.annotation);
3230
3230
  if (this.annotation) {
3231
3231
  let r = this.annotation;
3232
- return e && (r = Gh(os(e), r)), this.loadFile(r);
3232
+ return e && (r = Hh(os(e), r)), this.loadFile(r);
3233
3233
  }
3234
3234
  }
3235
3235
  }
@@ -3242,18 +3242,18 @@ let { SourceMapConsumer: ia, SourceMapGenerator: oa } = Pe, { existsSync: Vh, re
3242
3242
  };
3243
3243
  var ac = Zs;
3244
3244
  Zs.default = Zs;
3245
- let { SourceMapConsumer: $h, SourceMapGenerator: Yh } = Pe, { fileURLToPath: aa, pathToFileURL: Ur } = Pe, { isAbsolute: Ks, resolve: Xs } = Pe, { nanoid: Jh } = Wh, as = Pe, la = Vi, qh = ac, ls = Symbol("fromOffsetCache"), Zh = !!($h && Yh), ca = !!(Xs && Ks), tn = class {
3245
+ let { SourceMapConsumer: $h, SourceMapGenerator: Yh } = Pe, { fileURLToPath: aa, pathToFileURL: Ur } = Pe, { isAbsolute: Ks, resolve: Xs } = Pe, { nanoid: qh } = Wh, as = Pe, la = Vi, Jh = ac, ls = Symbol("fromOffsetCache"), Zh = !!($h && Yh), ca = !!(Xs && Ks), tn = class {
3246
3246
  constructor(e, t = {}) {
3247
3247
  if (e == null || typeof e == "object" && !e.toString) throw new Error(`PostCSS received ${e} instead of CSS string`);
3248
3248
  if (this.css = e.toString(), this.css[0] === "\uFEFF" || this.css[0] === "￾" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, t.from && (!ca || /^\w+:\/\//.test(t.from) || Ks(t.from) ? this.file = t.from : this.file = Xs(t.from)), ca && Zh) {
3249
- let r = new qh(this.css, t);
3249
+ let r = new Jh(this.css, t);
3250
3250
  if (r.text) {
3251
3251
  this.map = r;
3252
3252
  let n = r.consumer().file;
3253
3253
  !this.file && n && (this.file = this.mapResolve(n));
3254
3254
  }
3255
3255
  }
3256
- this.file || (this.id = "<input css " + Jh(6) + ">"), this.map && (this.map.file = this.from);
3256
+ this.file || (this.id = "<input css " + qh(6) + ">"), this.map && (this.map.file = this.from);
3257
3257
  }
3258
3258
  error(e, t, r, n = {}) {
3259
3259
  let s, i, a;
@@ -3326,9 +3326,9 @@ let { SourceMapConsumer: $h, SourceMapGenerator: Yh } = Pe, { fileURLToPath: aa,
3326
3326
  return this.file || this.id;
3327
3327
  }
3328
3328
  };
3329
- var Gn = tn;
3329
+ var Hn = tn;
3330
3330
  tn.default = tn, as && as.registerInput && as.registerInput(tn);
3331
- let { SourceMapConsumer: lc, SourceMapGenerator: rn } = Pe, { dirname: nn, relative: cc, resolve: uc, sep: dc } = Pe, { pathToFileURL: ua } = Pe, Kh = Gn, Xh = !!(lc && rn), Qh = !!(nn && uc && cc && dc);
3331
+ let { SourceMapConsumer: lc, SourceMapGenerator: rn } = Pe, { dirname: nn, relative: cc, resolve: uc, sep: dc } = Pe, { pathToFileURL: ua } = Pe, Kh = Hn, Xh = !!(lc && rn), Qh = !!(nn && uc && cc && dc);
3332
3332
  var pc = class {
3333
3333
  constructor(e, t, r, n) {
3334
3334
  this.stringify = e, this.mapOpts = r.map || {}, this.root = t, this.opts = r, this.css = n, this.originalCSS = n, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
@@ -3468,14 +3468,14 @@ let em = Vn, Qs = class extends em {
3468
3468
  };
3469
3469
  var $n = Qs;
3470
3470
  Qs.default = Qs;
3471
- let hc, Hi, Gi, mc, { isClean: fc, my: gc } = cr, yc = Hn, wc = $n, tm = Vn;
3471
+ let hc, Gi, Hi, mc, { isClean: fc, my: gc } = cr, yc = Gn, wc = $n, tm = Vn;
3472
3472
  function vc(e) {
3473
3473
  return e.map((t) => (t.nodes && (t.nodes = vc(t.nodes)), delete t.source, t));
3474
3474
  }
3475
3475
  function bc(e) {
3476
3476
  if (e[fc] = !1, e.proxyOf.nodes) for (let t of e.proxyOf.nodes) bc(t);
3477
3477
  }
3478
- let Ke = class Sc extends tm {
3478
+ let Ze = class Sc extends tm {
3479
3479
  append(...t) {
3480
3480
  for (let r of t) {
3481
3481
  let n = this.normalize(r, this.last);
@@ -3533,8 +3533,8 @@ let Ke = class Sc extends tm {
3533
3533
  else if (t.prop) {
3534
3534
  if (t.value === void 0) throw new Error("Value field is missed in node creation");
3535
3535
  typeof t.value != "string" && (t.value = String(t.value)), t = [new yc(t)];
3536
- } else if (t.selector) t = [new Hi(t)];
3537
- else if (t.name) t = [new Gi(t)];
3536
+ } else if (t.selector) t = [new Gi(t)];
3537
+ else if (t.name) t = [new Hi(t)];
3538
3538
  else {
3539
3539
  if (!t.text) throw new Error("Unknown node type in node creation");
3540
3540
  t = [new wc(t)];
@@ -3621,19 +3621,19 @@ let Ke = class Sc extends tm {
3621
3621
  if (this.proxyOf.nodes) return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
3622
3622
  }
3623
3623
  };
3624
- Ke.registerParse = (e) => {
3624
+ Ze.registerParse = (e) => {
3625
3625
  hc = e;
3626
- }, Ke.registerRule = (e) => {
3627
- Hi = e;
3628
- }, Ke.registerAtRule = (e) => {
3626
+ }, Ze.registerRule = (e) => {
3629
3627
  Gi = e;
3630
- }, Ke.registerRoot = (e) => {
3628
+ }, Ze.registerAtRule = (e) => {
3629
+ Hi = e;
3630
+ }, Ze.registerRoot = (e) => {
3631
3631
  mc = e;
3632
3632
  };
3633
- var wt = Ke;
3634
- Ke.default = Ke, Ke.rebuild = (e) => {
3635
- e.type === "atrule" ? Object.setPrototypeOf(e, Gi.prototype) : e.type === "rule" ? Object.setPrototypeOf(e, Hi.prototype) : e.type === "decl" ? Object.setPrototypeOf(e, yc.prototype) : e.type === "comment" ? Object.setPrototypeOf(e, wc.prototype) : e.type === "root" && Object.setPrototypeOf(e, mc.prototype), e[gc] = !0, e.nodes && e.nodes.forEach((t) => {
3636
- Ke.rebuild(t);
3633
+ var wt = Ze;
3634
+ Ze.default = Ze, Ze.rebuild = (e) => {
3635
+ e.type === "atrule" ? Object.setPrototypeOf(e, Hi.prototype) : e.type === "rule" ? Object.setPrototypeOf(e, Gi.prototype) : e.type === "decl" ? Object.setPrototypeOf(e, yc.prototype) : e.type === "comment" ? Object.setPrototypeOf(e, wc.prototype) : e.type === "root" && Object.setPrototypeOf(e, mc.prototype), e[gc] = !0, e.nodes && e.nodes.forEach((t) => {
3636
+ Ze.rebuild(t);
3637
3637
  });
3638
3638
  };
3639
3639
  let Ic, Cc, rm = wt, ur = class extends rm {
@@ -3698,7 +3698,7 @@ let Ec = wt, sn = class extends Ec {
3698
3698
  return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e);
3699
3699
  }
3700
3700
  };
3701
- var Ji = sn;
3701
+ var qi = sn;
3702
3702
  sn.default = sn, Ec.registerAtRule(sn);
3703
3703
  let xc, Rc, Lc = wt, At = class extends Lc {
3704
3704
  constructor(e) {
@@ -3747,9 +3747,9 @@ let Ac = wt, fm = Oc, on = class extends Ac {
3747
3747
  this.selector = e.join(r);
3748
3748
  }
3749
3749
  };
3750
- var qi = on;
3750
+ var Ji = on;
3751
3751
  on.default = on, Ac.registerRule(on);
3752
- let gm = Hn, ym = function(e, t = {}) {
3752
+ let gm = Gn, ym = function(e, t = {}) {
3753
3753
  let r, n, s, i, a, o, l, c, u, d, h = e.css.valueOf(), f = t.ignoreErrors, v = h.length, p = 0, I = [], m = [];
3754
3754
  function g(b) {
3755
3755
  throw e.error("Unclosed " + b, p);
@@ -3834,7 +3834,7 @@ let gm = Hn, ym = function(e, t = {}) {
3834
3834
  }, position: function() {
3835
3835
  return p;
3836
3836
  } };
3837
- }, wm = $n, vm = Ji, bm = yr, ma = qi;
3837
+ }, wm = $n, vm = qi, bm = yr, ma = Ji;
3838
3838
  const fa = { empty: !0, space: !0 };
3839
3839
  var Sm = class {
3840
3840
  constructor(e) {
@@ -4080,7 +4080,7 @@ var Sm = class {
4080
4080
  throw this.input.error("At-rule without name", { offset: t[2] }, { offset: t[2] + t[1].length });
4081
4081
  }
4082
4082
  };
4083
- let Im = wt, Cm = Sm, km = Gn;
4083
+ let Im = wt, Cm = Sm, km = Hn;
4084
4084
  function an(e, t) {
4085
4085
  let r = new km(e, t), n = new Cm(r);
4086
4086
  try {
@@ -4396,7 +4396,7 @@ let si = class {
4396
4396
  };
4397
4397
  var Bm = si;
4398
4398
  si.default = si;
4399
- let zm = Bm, jm = Tc, Wm = $i, Vm = yr, Gt = class {
4399
+ let zm = Bm, jm = Tc, Wm = $i, Vm = yr, Ht = class {
4400
4400
  constructor(e = []) {
4401
4401
  this.version = "8.4.38", this.plugins = this.normalize(e);
4402
4402
  }
@@ -4415,16 +4415,16 @@ let zm = Bm, jm = Tc, Wm = $i, Vm = yr, Gt = class {
4415
4415
  return this.plugins = this.plugins.concat(this.normalize([e])), this;
4416
4416
  }
4417
4417
  };
4418
- var Hm = Gt;
4419
- Gt.default = Gt, Vm.registerProcessor(Gt), Wm.registerProcessor(Gt);
4420
- let Gm = Hn, $m = ac, Ym = $n, Jm = Ji, qm = Gn, Zm = yr, Km = qi;
4418
+ var Gm = Ht;
4419
+ Ht.default = Ht, Vm.registerProcessor(Ht), Wm.registerProcessor(Ht);
4420
+ let Hm = Gn, $m = ac, Ym = $n, qm = qi, Jm = Hn, Zm = yr, Km = Ji;
4421
4421
  function pr(e, t) {
4422
4422
  if (Array.isArray(e)) return e.map((s) => pr(s));
4423
4423
  let { inputs: r, ...n } = e;
4424
4424
  if (r) {
4425
4425
  t = [];
4426
4426
  for (let s of r) {
4427
- let i = { ...s, __proto__: qm.prototype };
4427
+ let i = { ...s, __proto__: Jm.prototype };
4428
4428
  i.map && (i.map = { ...i.map, __proto__: $m.prototype }), t.push(i);
4429
4429
  }
4430
4430
  }
@@ -4433,15 +4433,15 @@ function pr(e, t) {
4433
4433
  n.source = i, s != null && (n.source.input = t[s]);
4434
4434
  }
4435
4435
  if (n.type === "root") return new Zm(n);
4436
- if (n.type === "decl") return new Gm(n);
4436
+ if (n.type === "decl") return new Hm(n);
4437
4437
  if (n.type === "rule") return new Km(n);
4438
4438
  if (n.type === "comment") return new Ym(n);
4439
- if (n.type === "atrule") return new Jm(n);
4439
+ if (n.type === "atrule") return new qm(n);
4440
4440
  throw new Error("Unknown node type: " + e.type);
4441
4441
  }
4442
4442
  var Xm = pr;
4443
4443
  pr.default = pr;
4444
- let Qm = Vi, wa = Hn, ef = Tc, tf = wt, ii = Hm, rf = Wn, nf = Xm, va = $i, sf = kc, ba = $n, Sa = Ji, of = Yi, af = Gn, lf = Zi, cf = Oc, Ia = qi, Ca = yr, uf = Vn;
4444
+ let Qm = Vi, wa = Gn, ef = Tc, tf = wt, ii = Gm, rf = Wn, nf = Xm, va = $i, sf = kc, ba = $n, Sa = qi, of = Yi, af = Hn, lf = Zi, cf = Oc, Ia = Ji, Ca = yr, uf = Vn;
4445
4445
  function K(...e) {
4446
4446
  return e.length === 1 && Array.isArray(e[0]) && (e = e[0]), new ii(e);
4447
4447
  }
@@ -4517,7 +4517,7 @@ function Xi(e) {
4517
4517
  }
4518
4518
  }
4519
4519
  const us = {};
4520
- function rt(e, t, r) {
4520
+ function tt(e, t, r) {
4521
4521
  var n;
4522
4522
  const s = `${e}.${String(r)}`;
4523
4523
  if (us[s]) return us[s].call(t);
@@ -4534,28 +4534,28 @@ function xa(e, t, r) {
4534
4534
  function Dc() {
4535
4535
  return Xi("MutationObserver").constructor;
4536
4536
  }
4537
- const H = { childNodes: function(e) {
4538
- return rt("Node", e, "childNodes");
4537
+ const G = { childNodes: function(e) {
4538
+ return tt("Node", e, "childNodes");
4539
4539
  }, parentNode: function(e) {
4540
- return rt("Node", e, "parentNode");
4540
+ return tt("Node", e, "parentNode");
4541
4541
  }, parentElement: function(e) {
4542
- return rt("Node", e, "parentElement");
4542
+ return tt("Node", e, "parentElement");
4543
4543
  }, textContent: function(e) {
4544
- return rt("Node", e, "textContent");
4544
+ return tt("Node", e, "textContent");
4545
4545
  }, contains: function(e, t) {
4546
4546
  return xa("Node", e, "contains")(t);
4547
4547
  }, getRootNode: function(e) {
4548
4548
  return xa("Node", e, "getRootNode")();
4549
4549
  }, host: function(e) {
4550
- return e && "host" in e ? rt("ShadowRoot", e, "host") : null;
4550
+ return e && "host" in e ? tt("ShadowRoot", e, "host") : null;
4551
4551
  }, styleSheets: function(e) {
4552
4552
  return e.styleSheets;
4553
4553
  }, shadowRoot: function(e) {
4554
- return e && "shadowRoot" in e ? rt("Element", e, "shadowRoot") : null;
4554
+ return e && "shadowRoot" in e ? tt("Element", e, "shadowRoot") : null;
4555
4555
  }, querySelector: function(e, t) {
4556
- return rt("Element", e, "querySelector")(t);
4556
+ return tt("Element", e, "querySelector")(t);
4557
4557
  }, querySelectorAll: function(e, t) {
4558
- return rt("Element", e, "querySelectorAll")(t);
4558
+ return tt("Element", e, "querySelectorAll")(t);
4559
4559
  }, mutationObserver: Dc };
4560
4560
  function ve(e, t, r = document) {
4561
4561
  const n = { capture: !0, passive: !0 };
@@ -4606,7 +4606,7 @@ let vn = Date.now;
4606
4606
  function Pc(e) {
4607
4607
  var t, r, n, s;
4608
4608
  const i = e.document;
4609
- return { left: i.scrollingElement ? i.scrollingElement.scrollLeft : e.pageXOffset !== void 0 ? e.pageXOffset : i.documentElement.scrollLeft || (i == null ? void 0 : i.body) && ((t = H.parentElement(i.body)) == null ? void 0 : t.scrollLeft) || ((r = i == null ? void 0 : i.body) == null ? void 0 : r.scrollLeft) || 0, top: i.scrollingElement ? i.scrollingElement.scrollTop : e.pageYOffset !== void 0 ? e.pageYOffset : (i == null ? void 0 : i.documentElement.scrollTop) || (i == null ? void 0 : i.body) && ((n = H.parentElement(i.body)) == null ? void 0 : n.scrollTop) || ((s = i == null ? void 0 : i.body) == null ? void 0 : s.scrollTop) || 0 };
4609
+ return { left: i.scrollingElement ? i.scrollingElement.scrollLeft : e.pageXOffset !== void 0 ? e.pageXOffset : i.documentElement.scrollLeft || (i == null ? void 0 : i.body) && ((t = G.parentElement(i.body)) == null ? void 0 : t.scrollLeft) || ((r = i == null ? void 0 : i.body) == null ? void 0 : r.scrollLeft) || 0, top: i.scrollingElement ? i.scrollingElement.scrollTop : e.pageYOffset !== void 0 ? e.pageYOffset : (i == null ? void 0 : i.documentElement.scrollTop) || (i == null ? void 0 : i.body) && ((n = G.parentElement(i.body)) == null ? void 0 : n.scrollTop) || ((s = i == null ? void 0 : i.body) == null ? void 0 : s.scrollTop) || 0 };
4610
4610
  }
4611
4611
  function _c() {
4612
4612
  return window.innerHeight || document.documentElement && document.documentElement.clientHeight || document.body && document.body.clientHeight;
@@ -4615,7 +4615,7 @@ function Nc() {
4615
4615
  return window.innerWidth || document.documentElement && document.documentElement.clientWidth || document.body && document.body.clientWidth;
4616
4616
  }
4617
4617
  function Fc(e) {
4618
- return e ? e.nodeType === e.ELEMENT_NODE ? e : H.parentElement(e) : null;
4618
+ return e ? e.nodeType === e.ELEMENT_NODE ? e : G.parentElement(e) : null;
4619
4619
  }
4620
4620
  function Se(e, t, r, n) {
4621
4621
  if (!e) return !1;
@@ -4636,7 +4636,7 @@ function Bc(e, t) {
4636
4636
  if (Kt(e)) return !1;
4637
4637
  const r = t.getId(e);
4638
4638
  if (!t.has(r)) return !0;
4639
- const n = H.parentNode(e);
4639
+ const n = G.parentNode(e);
4640
4640
  return (!n || n.nodeType !== e.DOCUMENT_NODE) && (!n || Bc(n, t));
4641
4641
  }
4642
4642
  function oi(e) {
@@ -4649,7 +4649,7 @@ function jc(e, t) {
4649
4649
  return !!(e.nodeName === "LINK" && e.nodeType === e.ELEMENT_NODE && e.getAttribute && e.getAttribute("rel") === "stylesheet" && t.getMeta(e));
4650
4650
  }
4651
4651
  function ai(e) {
4652
- return !!e && (e instanceof Ki && "shadowRoot" in e ? !!e.shadowRoot : !!H.shadowRoot(e));
4652
+ return !!e && (e instanceof Ki && "shadowRoot" in e ? !!e.shadowRoot : !!G.shadowRoot(e));
4653
4653
  }
4654
4654
  /[1-9][0-9]{12}/.test(Date.now().toString()) || (vn = () => (/* @__PURE__ */ new Date()).getTime());
4655
4655
  class pf {
@@ -4680,7 +4680,7 @@ class pf {
4680
4680
  function Wc(e) {
4681
4681
  var t;
4682
4682
  let r = null;
4683
- return "getRootNode" in e && ((t = H.getRootNode(e)) == null ? void 0 : t.nodeType) === Node.DOCUMENT_FRAGMENT_NODE && H.host(H.getRootNode(e)) && (r = H.host(H.getRootNode(e))), r;
4683
+ return "getRootNode" in e && ((t = G.getRootNode(e)) == null ? void 0 : t.nodeType) === Node.DOCUMENT_FRAGMENT_NODE && G.host(G.getRootNode(e)) && (r = G.host(G.getRootNode(e))), r;
4684
4684
  }
4685
4685
  function hf(e) {
4686
4686
  const t = e.ownerDocument;
@@ -4690,13 +4690,13 @@ function hf(e) {
4690
4690
  for (; s = Wc(i); ) i = s;
4691
4691
  return i;
4692
4692
  }(e);
4693
- return H.contains(t, r);
4693
+ return G.contains(t, r);
4694
4694
  }
4695
4695
  function Vc(e) {
4696
4696
  const t = e.ownerDocument;
4697
- return !!t && (H.contains(t, e) || hf(e));
4697
+ return !!t && (G.contains(t, e) || hf(e));
4698
4698
  }
4699
- var Y = ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e))(Y || {}), G = ((e) => (e[e.Mutation = 0] = "Mutation", e[e.MouseMove = 1] = "MouseMove", e[e.MouseInteraction = 2] = "MouseInteraction", e[e.Scroll = 3] = "Scroll", e[e.ViewportResize = 4] = "ViewportResize", e[e.Input = 5] = "Input", e[e.TouchMove = 6] = "TouchMove", e[e.MediaInteraction = 7] = "MediaInteraction", e[e.StyleSheetRule = 8] = "StyleSheetRule", e[e.CanvasMutation = 9] = "CanvasMutation", e[e.Font = 10] = "Font", e[e.Log = 11] = "Log", e[e.Drag = 12] = "Drag", e[e.StyleDeclaration = 13] = "StyleDeclaration", e[e.Selection = 14] = "Selection", e[e.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e[e.CustomElement = 16] = "CustomElement", e))(G || {}), Ie = ((e) => (e[e.MouseUp = 0] = "MouseUp", e[e.MouseDown = 1] = "MouseDown", e[e.Click = 2] = "Click", e[e.ContextMenu = 3] = "ContextMenu", e[e.DblClick = 4] = "DblClick", e[e.Focus = 5] = "Focus", e[e.Blur = 6] = "Blur", e[e.TouchStart = 7] = "TouchStart", e[e.TouchMove_Departed = 8] = "TouchMove_Departed", e[e.TouchEnd = 9] = "TouchEnd", e[e.TouchCancel = 10] = "TouchCancel", e))(Ie || {}), Ge = ((e) => (e[e.Mouse = 0] = "Mouse", e[e.Pen = 1] = "Pen", e[e.Touch = 2] = "Touch", e))(Ge || {}), Ct = ((e) => (e[e["2D"] = 0] = "2D", e[e.WebGL = 1] = "WebGL", e[e.WebGL2 = 2] = "WebGL2", e))(Ct || {}), kt = ((e) => (e[e.Play = 0] = "Play", e[e.Pause = 1] = "Pause", e[e.Seeked = 2] = "Seeked", e[e.VolumeChange = 3] = "VolumeChange", e[e.RateChange = 4] = "RateChange", e))(kt || {});
4699
+ var Y = ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e))(Y || {}), H = ((e) => (e[e.Mutation = 0] = "Mutation", e[e.MouseMove = 1] = "MouseMove", e[e.MouseInteraction = 2] = "MouseInteraction", e[e.Scroll = 3] = "Scroll", e[e.ViewportResize = 4] = "ViewportResize", e[e.Input = 5] = "Input", e[e.TouchMove = 6] = "TouchMove", e[e.MediaInteraction = 7] = "MediaInteraction", e[e.StyleSheetRule = 8] = "StyleSheetRule", e[e.CanvasMutation = 9] = "CanvasMutation", e[e.Font = 10] = "Font", e[e.Log = 11] = "Log", e[e.Drag = 12] = "Drag", e[e.StyleDeclaration = 13] = "StyleDeclaration", e[e.Selection = 14] = "Selection", e[e.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e[e.CustomElement = 16] = "CustomElement", e))(H || {}), Ie = ((e) => (e[e.MouseUp = 0] = "MouseUp", e[e.MouseDown = 1] = "MouseDown", e[e.Click = 2] = "Click", e[e.ContextMenu = 3] = "ContextMenu", e[e.DblClick = 4] = "DblClick", e[e.Focus = 5] = "Focus", e[e.Blur = 6] = "Blur", e[e.TouchStart = 7] = "TouchStart", e[e.TouchMove_Departed = 8] = "TouchMove_Departed", e[e.TouchEnd = 9] = "TouchEnd", e[e.TouchCancel = 10] = "TouchCancel", e))(Ie || {}), He = ((e) => (e[e.Mouse = 0] = "Mouse", e[e.Pen = 1] = "Pen", e[e.Touch = 2] = "Touch", e))(He || {}), Ct = ((e) => (e[e["2D"] = 0] = "2D", e[e.WebGL = 1] = "WebGL", e[e.WebGL2 = 2] = "WebGL2", e))(Ct || {}), kt = ((e) => (e[e.Play = 0] = "Play", e[e.Pause = 1] = "Pause", e[e.Seeked = 2] = "Seeked", e[e.VolumeChange = 3] = "VolumeChange", e[e.RateChange = 4] = "RateChange", e))(kt || {});
4700
4700
  function La(e) {
4701
4701
  return "__ln" in e;
4702
4702
  }
@@ -4738,12 +4738,12 @@ class ff {
4738
4738
  for (; u === -2; ) c = c && c.nextSibling, u = c && this.mirror.getId(c);
4739
4739
  return u;
4740
4740
  }, i = (l) => {
4741
- const c = H.parentNode(l);
4741
+ const c = G.parentNode(l);
4742
4742
  if (!c || !Vc(l) || c.tagName === "TEXTAREA") return;
4743
4743
  const u = Kt(c) ? this.mirror.getId(Wc(l)) : this.mirror.getId(c), d = s(l);
4744
4744
  if (u === -1 || d === -1) return n.addNode(l);
4745
4745
  const h = Et(l, { doc: this.doc, mirror: this.mirror, blockClass: this.blockClass, blockSelector: this.blockSelector, maskTextClass: this.maskTextClass, maskTextSelector: this.maskTextSelector, skipChild: !0, newlyAddedElement: !0, inlineStylesheet: this.inlineStylesheet, maskInputOptions: this.maskInputOptions, maskTextFn: this.maskTextFn, maskInputFn: this.maskInputFn, slimDOMOptions: this.slimDOMOptions, dataURLOptions: this.dataURLOptions, recordCanvas: this.recordCanvas, inlineImages: this.inlineImages, onSerialize: (f) => {
4746
- zc(f, this.mirror) && this.iframeManager.addIframe(f), jc(f, this.mirror) && this.stylesheetManager.trackLinkElement(f), ai(l) && this.shadowDomManager.addShadowRoot(H.shadowRoot(l), this.doc);
4746
+ zc(f, this.mirror) && this.iframeManager.addIframe(f), jc(f, this.mirror) && this.stylesheetManager.trackLinkElement(f), ai(l) && this.shadowDomManager.addShadowRoot(G.shadowRoot(l), this.doc);
4747
4747
  }, onIframeLoad: (f, v) => {
4748
4748
  this.iframeManager.attachIframe(f, v), this.shadowDomManager.observeAttachShadow(f);
4749
4749
  }, onStylesheetLoad: (f, v) => {
@@ -4752,13 +4752,13 @@ class ff {
4752
4752
  h && (t.push({ parentId: u, nextId: d, node: h }), r.add(h.id));
4753
4753
  };
4754
4754
  for (; this.mapRemoves.length; ) this.mirror.removeNodeFromMap(this.mapRemoves.shift());
4755
- for (const l of this.movedSet) Aa(this.removes, l, this.mirror) && !this.movedSet.has(H.parentNode(l)) || i(l);
4755
+ for (const l of this.movedSet) Aa(this.removes, l, this.mirror) && !this.movedSet.has(G.parentNode(l)) || i(l);
4756
4756
  for (const l of this.addedSet) Ma(this.droppedSet, l) || Aa(this.removes, l, this.mirror) ? Ma(this.movedSet, l) ? i(l) : this.droppedSet.add(l) : i(l);
4757
4757
  let a = null;
4758
4758
  for (; n.length; ) {
4759
4759
  let l = null;
4760
4760
  if (a) {
4761
- const c = this.mirror.getId(H.parentNode(a.value)), u = s(a.value);
4761
+ const c = this.mirror.getId(G.parentNode(a.value)), u = s(a.value);
4762
4762
  c !== -1 && u !== -1 && (l = a);
4763
4763
  }
4764
4764
  if (!l) {
@@ -4766,16 +4766,16 @@ class ff {
4766
4766
  for (; c; ) {
4767
4767
  const u = c;
4768
4768
  if (c = c.previous, u) {
4769
- const d = this.mirror.getId(H.parentNode(u.value));
4769
+ const d = this.mirror.getId(G.parentNode(u.value));
4770
4770
  if (s(u.value) === -1) continue;
4771
4771
  if (d !== -1) {
4772
4772
  l = u;
4773
4773
  break;
4774
4774
  }
4775
4775
  {
4776
- const h = u.value, f = H.parentNode(h);
4776
+ const h = u.value, f = G.parentNode(h);
4777
4777
  if (f && f.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
4778
- const v = H.host(f);
4778
+ const v = G.host(f);
4779
4779
  if (this.mirror.getId(v) !== -1) {
4780
4780
  l = u;
4781
4781
  break;
@@ -4792,7 +4792,7 @@ class ff {
4792
4792
  a = l.previous, n.removeNode(l.value), i(l.value);
4793
4793
  }
4794
4794
  const o = { texts: this.texts.map((l) => {
4795
- const c = l.node, u = H.parentNode(c);
4795
+ const c = l.node, u = G.parentNode(c);
4796
4796
  return u && u.tagName === "TEXTAREA" && this.genTextAreaValueMutation(u), { id: this.mirror.getId(c), value: l.value };
4797
4797
  }).filter((l) => !r.has(l.id)).filter((l) => this.mirror.has(l.id)), attributes: this.attributes.map((l) => {
4798
4798
  const { attributes: c } = l;
@@ -4805,11 +4805,11 @@ class ff {
4805
4805
  (o.texts.length || o.attributes.length || o.removes.length || o.adds.length) && (this.texts = [], this.attributes = [], this.attributeMap = /* @__PURE__ */ new WeakMap(), this.removes = [], this.addedSet = /* @__PURE__ */ new Set(), this.movedSet = /* @__PURE__ */ new Set(), this.droppedSet = /* @__PURE__ */ new Set(), this.movedMap = {}, this.mutationCb(o));
4806
4806
  }), L(this, "genTextAreaValueMutation", (t) => {
4807
4807
  let r = this.attributeMap.get(t);
4808
- r || (r = { node: t, attributes: {}, styleDiff: {}, _unchangedStyles: {} }, this.attributes.push(r), this.attributeMap.set(t, r)), r.attributes.value = Array.from(H.childNodes(t), (n) => H.textContent(n) || "").join("");
4808
+ r || (r = { node: t, attributes: {}, styleDiff: {}, _unchangedStyles: {} }, this.attributes.push(r), this.attributeMap.set(t, r)), r.attributes.value = Array.from(G.childNodes(t), (n) => G.textContent(n) || "").join("");
4809
4809
  }), L(this, "processMutation", (t) => {
4810
4810
  if (!ps(t.target, this.mirror, this.slimDOMOptions)) switch (t.type) {
4811
4811
  case "characterData": {
4812
- const r = H.textContent(t.target);
4812
+ const r = G.textContent(t.target);
4813
4813
  Se(t.target, this.blockClass, this.blockSelector, !1) || r === t.oldValue || this.texts.push({ value: Ol(t.target, this.maskTextClass, this.maskTextSelector, !0) && r ? this.maskTextFn ? this.maskTextFn(r, Fc(t.target)) : r.replace(/[\S]/g, "*") : r, node: t.target });
4814
4814
  break;
4815
4815
  }
@@ -4846,7 +4846,7 @@ class ff {
4846
4846
  if (Se(t.target, this.blockClass, this.blockSelector, !0)) return;
4847
4847
  if (t.target.tagName === "TEXTAREA") return void this.genTextAreaValueMutation(t.target);
4848
4848
  t.addedNodes.forEach((r) => this.genAdds(r, t.target)), t.removedNodes.forEach((r) => {
4849
- const n = this.mirror.getId(r), s = Kt(t.target) ? this.mirror.getId(H.host(t.target)) : this.mirror.getId(t.target);
4849
+ const n = this.mirror.getId(r), s = Kt(t.target) ? this.mirror.getId(G.host(t.target)) : this.mirror.getId(t.target);
4850
4850
  Se(t.target, this.blockClass, this.blockSelector, !1) || ps(r, this.mirror, this.slimDOMOptions) || !function(i, a) {
4851
4851
  return a.getId(i) !== -1;
4852
4852
  }(r, this.mirror) || (this.addedSet.has(r) ? (li(this.addedSet, r), this.droppedSet.add(r)) : this.addedSet.has(t.target) && n === -1 || Bc(t.target, this.mirror) || (this.movedSet.has(r) && this.movedMap[Oa(n, s)] ? li(this.movedSet, r) : this.removes.push({ parentId: s, id: n, isShadow: !(!Kt(t.target) || !Xt(t.target)) || void 0 })), this.mapRemoves.push(r));
@@ -4860,7 +4860,7 @@ class ff {
4860
4860
  let n = null;
4861
4861
  r && this.mirror.hasNode(r) && (n = this.mirror.getId(r)), n && n !== -1 && (this.movedMap[Oa(this.mirror.getId(t), n)] = !0);
4862
4862
  } else this.addedSet.add(t), this.droppedSet.delete(t);
4863
- Se(t, this.blockClass, this.blockSelector, !1) || (H.childNodes(t).forEach((n) => this.genAdds(n)), ai(t) && H.childNodes(H.shadowRoot(t)).forEach((n) => {
4863
+ Se(t, this.blockClass, this.blockSelector, !1) || (G.childNodes(t).forEach((n) => this.genAdds(n)), ai(t) && G.childNodes(G.shadowRoot(t)).forEach((n) => {
4864
4864
  this.processedNodeManager.add(n, this), this.genAdds(n, t);
4865
4865
  }));
4866
4866
  }
@@ -4891,25 +4891,25 @@ class ff {
4891
4891
  }
4892
4892
  }
4893
4893
  function li(e, t) {
4894
- e.delete(t), H.childNodes(t).forEach((r) => li(e, r));
4894
+ e.delete(t), G.childNodes(t).forEach((r) => li(e, r));
4895
4895
  }
4896
4896
  function Aa(e, t, r) {
4897
4897
  return e.length !== 0 && function(n, s, i) {
4898
- let a = H.parentNode(s);
4898
+ let a = G.parentNode(s);
4899
4899
  for (; a; ) {
4900
4900
  const o = i.getId(a);
4901
4901
  if (n.some((l) => l.id === o)) return !0;
4902
- a = H.parentNode(a);
4902
+ a = G.parentNode(a);
4903
4903
  }
4904
4904
  return !1;
4905
4905
  }(e, t, r);
4906
4906
  }
4907
4907
  function Ma(e, t) {
4908
- return e.size !== 0 && Hc(e, t);
4908
+ return e.size !== 0 && Gc(e, t);
4909
4909
  }
4910
- function Hc(e, t) {
4911
- const r = H.parentNode(t);
4912
- return !!r && (!!e.has(r) || Hc(e, r));
4910
+ function Gc(e, t) {
4911
+ const r = G.parentNode(t);
4912
+ return !!r && (!!e.has(r) || Gc(e, r));
4913
4913
  }
4914
4914
  let Qt;
4915
4915
  const $ = (e) => Qt ? (...t) => {
@@ -4930,7 +4930,7 @@ function er(e) {
4930
4930
  }
4931
4931
  return e && e.target;
4932
4932
  }
4933
- function Gc(e, t) {
4933
+ function Hc(e, t) {
4934
4934
  const r = new ff();
4935
4935
  mt.push(r), r.init(e);
4936
4936
  const n = new (Dc())($(r.processMutations.bind(r)));
@@ -4950,17 +4950,17 @@ function gf({ mouseInteractionCb: e, doc: t, mirror: r, blockClass: n, blockSele
4950
4950
  if ("pointerType" in f) {
4951
4951
  switch (f.pointerType) {
4952
4952
  case "mouse":
4953
- p = Ge.Mouse;
4953
+ p = He.Mouse;
4954
4954
  break;
4955
4955
  case "touch":
4956
- p = Ge.Touch;
4956
+ p = He.Touch;
4957
4957
  break;
4958
4958
  case "pen":
4959
- p = Ge.Pen;
4959
+ p = He.Pen;
4960
4960
  }
4961
- p === Ge.Touch ? Ie[h] === Ie.MouseDown ? I = "TouchStart" : Ie[h] === Ie.MouseUp && (I = "TouchEnd") : Ge.Pen;
4962
- } else oi(f) && (p = Ge.Touch);
4963
- p !== null ? (l = p, (I.startsWith("Touch") && p === Ge.Touch || I.startsWith("Mouse") && p === Ge.Mouse) && (p = null)) : Ie[h] === Ie.Click && (p = l, l = null);
4961
+ p === He.Touch ? Ie[h] === Ie.MouseDown ? I = "TouchStart" : Ie[h] === Ie.MouseUp && (I = "TouchEnd") : He.Pen;
4962
+ } else oi(f) && (p = He.Touch);
4963
+ p !== null ? (l = p, (I.startsWith("Touch") && p === He.Touch || I.startsWith("Mouse") && p === He.Mouse) && (p = null)) : Ie[h] === Ie.Click && (p = l, l = null);
4964
4964
  const m = oi(f) ? f.changedTouches[0] : f;
4965
4965
  if (!m) return;
4966
4966
  const g = r.getId(v), { clientX: b, clientY: C } = m;
@@ -5004,14 +5004,14 @@ function jr(e) {
5004
5004
  return r;
5005
5005
  }(e, []);
5006
5006
  }
5007
- function nt(e, t, r) {
5007
+ function rt(e, t, r) {
5008
5008
  let n, s;
5009
5009
  return e ? (e.ownerNode ? n = t.getId(e.ownerNode) : s = r.getId(e), { styleId: s, id: n }) : {};
5010
5010
  }
5011
5011
  function Yc({ mirror: e, stylesheetManager: t }, r) {
5012
5012
  var n, s, i;
5013
5013
  let a = null;
5014
- a = r.nodeName === "#document" ? e.getId(r) : e.getId(H.host(r));
5014
+ a = r.nodeName === "#document" ? e.getId(r) : e.getId(G.host(r));
5015
5015
  const o = r.nodeName === "#document" ? (n = r.defaultView) == null ? void 0 : n.Document : (i = (s = r.ownerDocument) == null ? void 0 : s.defaultView) == null ? void 0 : i.ShadowRoot, l = o != null && o.prototype ? Object.getOwnPropertyDescriptor(o == null ? void 0 : o.prototype, "adoptedStyleSheets") : void 0;
5016
5016
  return a !== null && a !== -1 && o && l ? (Object.defineProperty(r, "adoptedStyleSheets", { configurable: l.configurable, enumerable: l.enumerable, get() {
5017
5017
  var c;
@@ -5063,7 +5063,7 @@ function wf(e, t = {}) {
5063
5063
  }, m.customElementCb = (...y) => {
5064
5064
  g.customElement && g.customElement(...y), w(...y);
5065
5065
  };
5066
- })(e, t), e.recordDOM && (n = Gc(e, e.doc));
5066
+ })(e, t), e.recordDOM && (n = Hc(e, e.doc));
5067
5067
  const s = function({ mousemoveCb: m, sampling: g, doc: b, mirror: C }) {
5068
5068
  if (g.mousemove === !1) return () => {
5069
5069
  };
@@ -5074,7 +5074,7 @@ function wf(e, t = {}) {
5074
5074
  m(M.map((P) => (P.timeOffset -= D, P)), S), M = [], T = null;
5075
5075
  }), E), R = $($t($((S) => {
5076
5076
  const D = er(S), { clientX: P, clientY: w } = oi(S) ? S.changedTouches[0] : S;
5077
- T || (T = vn()), M.push({ x: P, y: w, id: C.getId(D), timeOffset: vn() - T }), k(typeof DragEvent < "u" && S instanceof DragEvent ? G.Drag : S instanceof MouseEvent ? G.MouseMove : G.TouchMove);
5077
+ T || (T = vn()), M.push({ x: P, y: w, id: C.getId(D), timeOffset: vn() - T }), k(typeof DragEvent < "u" && S instanceof DragEvent ? H.Drag : S instanceof MouseEvent ? H.MouseMove : H.TouchMove);
5078
5078
  }), A, { trailing: !1 })), x = [ve("mousemove", R, b), ve("touchmove", R, b), ve("drag", R, b)];
5079
5079
  return $(() => {
5080
5080
  x.forEach((S) => S());
@@ -5089,15 +5089,15 @@ function wf(e, t = {}) {
5089
5089
  function S(F) {
5090
5090
  let j = er(F);
5091
5091
  const O = F.isTrusted, _ = j && j.tagName;
5092
- if (j && _ === "OPTION" && (j = H.parentElement(j)), !j || !_ || yf.indexOf(_) < 0 || Se(j, C, A, !0) || j.classList.contains(E) || T && j.matches(T)) return;
5093
- let ee = j.value, J = !1;
5092
+ if (j && _ === "OPTION" && (j = G.parentElement(j)), !j || !_ || yf.indexOf(_) < 0 || Se(j, C, A, !0) || j.classList.contains(E) || T && j.matches(T)) return;
5093
+ let ee = j.value, q = !1;
5094
5094
  const me = Ti(j) || "";
5095
- me === "radio" || me === "checkbox" ? J = j.checked : (M[_.toLowerCase()] || M[me]) && (ee = Ui({ element: j, maskInputOptions: M, tagName: _, type: me, value: ee, maskInputFn: k })), D(j, x ? { text: ee, isChecked: J, userTriggered: O } : { text: ee, isChecked: J });
5095
+ me === "radio" || me === "checkbox" ? q = j.checked : (M[_.toLowerCase()] || M[me]) && (ee = Ui({ element: j, maskInputOptions: M, tagName: _, type: me, value: ee, maskInputFn: k })), D(j, x ? { text: ee, isChecked: q, userTriggered: O } : { text: ee, isChecked: q });
5096
5096
  const _e = j.name;
5097
- me === "radio" && _e && J && g.querySelectorAll(`input[type="radio"][name="${_e}"]`).forEach((V) => {
5097
+ me === "radio" && _e && q && g.querySelectorAll(`input[type="radio"][name="${_e}"]`).forEach((V) => {
5098
5098
  if (V !== j) {
5099
5099
  const ge = V.value;
5100
- D(V, x ? { text: ge, isChecked: !J, userTriggered: !1 } : { text: ge, isChecked: !J });
5100
+ D(V, x ? { text: ge, isChecked: !q, userTriggered: !1 } : { text: ge, isChecked: !q });
5101
5101
  }
5102
5102
  });
5103
5103
  }
@@ -5140,7 +5140,7 @@ function wf(e, t = {}) {
5140
5140
  };
5141
5141
  const A = C.CSSStyleSheet.prototype.insertRule;
5142
5142
  C.CSSStyleSheet.prototype.insertRule = new Proxy(A, { apply: $((x, S, D) => {
5143
- const [P, w] = D, { id: y, styleId: U } = nt(S, g, b.styleMirror);
5143
+ const [P, w] = D, { id: y, styleId: U } = rt(S, g, b.styleMirror);
5144
5144
  return (y && y !== -1 || U && U !== -1) && m({ id: y, styleId: U, adds: [{ rule: P, index: w }] }), x.apply(S, D);
5145
5145
  }) }), C.CSSStyleSheet.prototype.addRule = function(x, S, D = this.cssRules.length) {
5146
5146
  const P = `${x} { ${S} }`;
@@ -5149,15 +5149,15 @@ function wf(e, t = {}) {
5149
5149
  const E = C.CSSStyleSheet.prototype.deleteRule;
5150
5150
  let T, M;
5151
5151
  C.CSSStyleSheet.prototype.deleteRule = new Proxy(E, { apply: $((x, S, D) => {
5152
- const [P] = D, { id: w, styleId: y } = nt(S, g, b.styleMirror);
5152
+ const [P] = D, { id: w, styleId: y } = rt(S, g, b.styleMirror);
5153
5153
  return (w && w !== -1 || y && y !== -1) && m({ id: w, styleId: y, removes: [{ index: P }] }), x.apply(S, D);
5154
5154
  }) }), C.CSSStyleSheet.prototype.removeRule = function(x) {
5155
5155
  return C.CSSStyleSheet.prototype.deleteRule.apply(this, [x]);
5156
5156
  }, C.CSSStyleSheet.prototype.replace && (T = C.CSSStyleSheet.prototype.replace, C.CSSStyleSheet.prototype.replace = new Proxy(T, { apply: $((x, S, D) => {
5157
- const [P] = D, { id: w, styleId: y } = nt(S, g, b.styleMirror);
5157
+ const [P] = D, { id: w, styleId: y } = rt(S, g, b.styleMirror);
5158
5158
  return (w && w !== -1 || y && y !== -1) && m({ id: w, styleId: y, replace: P }), x.apply(S, D);
5159
5159
  }) })), C.CSSStyleSheet.prototype.replaceSync && (M = C.CSSStyleSheet.prototype.replaceSync, C.CSSStyleSheet.prototype.replaceSync = new Proxy(M, { apply: $((x, S, D) => {
5160
- const [P] = D, { id: w, styleId: y } = nt(S, g, b.styleMirror);
5160
+ const [P] = D, { id: w, styleId: y } = rt(S, g, b.styleMirror);
5161
5161
  return (w && w !== -1 || y && y !== -1) && m({ id: w, styleId: y, replaceSync: P }), x.apply(S, D);
5162
5162
  }) }));
5163
5163
  const k = {};
@@ -5165,10 +5165,10 @@ function wf(e, t = {}) {
5165
5165
  const R = {};
5166
5166
  return Object.entries(k).forEach(([x, S]) => {
5167
5167
  R[x] = { insertRule: S.prototype.insertRule, deleteRule: S.prototype.deleteRule }, S.prototype.insertRule = new Proxy(R[x].insertRule, { apply: $((D, P, w) => {
5168
- const [y, U] = w, { id: F, styleId: j } = nt(P.parentStyleSheet, g, b.styleMirror);
5168
+ const [y, U] = w, { id: F, styleId: j } = rt(P.parentStyleSheet, g, b.styleMirror);
5169
5169
  return (F && F !== -1 || j && j !== -1) && m({ id: F, styleId: j, adds: [{ rule: y, index: [...jr(P), U || 0] }] }), D.apply(P, w);
5170
5170
  }) }), S.prototype.deleteRule = new Proxy(R[x].deleteRule, { apply: $((D, P, w) => {
5171
- const [y] = w, { id: U, styleId: F } = nt(P.parentStyleSheet, g, b.styleMirror);
5171
+ const [y] = w, { id: U, styleId: F } = rt(P.parentStyleSheet, g, b.styleMirror);
5172
5172
  return (U && U !== -1 || F && F !== -1) && m({ id: U, styleId: F, removes: [{ index: [...jr(P), y] }] }), D.apply(P, w);
5173
5173
  }) });
5174
5174
  }), $(() => {
@@ -5182,7 +5182,7 @@ function wf(e, t = {}) {
5182
5182
  var x;
5183
5183
  const [S, D, P] = R;
5184
5184
  if (b.has(S)) return E.apply(k, [S, D, P]);
5185
- const { id: w, styleId: y } = nt((x = k.parentRule) == null ? void 0 : x.parentStyleSheet, g, C.styleMirror);
5185
+ const { id: w, styleId: y } = rt((x = k.parentRule) == null ? void 0 : x.parentStyleSheet, g, C.styleMirror);
5186
5186
  return (w && w !== -1 || y && y !== -1) && m({ id: w, styleId: y, set: { property: S, value: D, priority: P }, index: jr(k.parentRule) }), M.apply(k, R);
5187
5187
  }) });
5188
5188
  const T = A.CSSStyleDeclaration.prototype.removeProperty;
@@ -5190,7 +5190,7 @@ function wf(e, t = {}) {
5190
5190
  var x;
5191
5191
  const [S] = R;
5192
5192
  if (b.has(S)) return T.apply(k, [S]);
5193
- const { id: D, styleId: P } = nt((x = k.parentRule) == null ? void 0 : x.parentStyleSheet, g, C.styleMirror);
5193
+ const { id: D, styleId: P } = rt((x = k.parentRule) == null ? void 0 : x.parentStyleSheet, g, C.styleMirror);
5194
5194
  return (D && D !== -1 || P && P !== -1) && m({ id: D, styleId: P, remove: { property: S }, index: jr(k.parentRule) }), M.apply(k, R);
5195
5195
  }) }), $(() => {
5196
5196
  A.CSSStyleDeclaration.prototype.setProperty = E, A.CSSStyleDeclaration.prototype.removeProperty = T;
@@ -5320,7 +5320,7 @@ class vf {
5320
5320
  case Y.FullSnapshot: {
5321
5321
  this.crossOriginIframeMirror.reset(t), this.crossOriginIframeStyleMirror.reset(t), this.replaceIdOnNode(r.data.node, t);
5322
5322
  const s = r.data.node.id;
5323
- return this.crossOriginIframeRootIdMap.set(t, s), this.patchRootIdOnNode(r.data.node, s), { timestamp: r.timestamp, type: Y.IncrementalSnapshot, data: { source: G.Mutation, adds: [{ parentId: this.mirror.getId(t), nextId: null, node: r.data.node }], removes: [], texts: [], attributes: [], isAttachIframe: !0 } };
5323
+ return this.crossOriginIframeRootIdMap.set(t, s), this.patchRootIdOnNode(r.data.node, s), { timestamp: r.timestamp, type: Y.IncrementalSnapshot, data: { source: H.Mutation, adds: [{ parentId: this.mirror.getId(t), nextId: null, node: r.data.node }], removes: [], texts: [], attributes: [], isAttachIframe: !0 } };
5324
5324
  }
5325
5325
  case Y.Meta:
5326
5326
  case Y.Load:
@@ -5332,7 +5332,7 @@ class vf {
5332
5332
  return this.replaceIds(r.data.payload, t, ["id", "parentId", "previousId", "nextId"]), r;
5333
5333
  case Y.IncrementalSnapshot:
5334
5334
  switch (r.data.source) {
5335
- case G.Mutation:
5335
+ case H.Mutation:
5336
5336
  return r.data.adds.forEach((s) => {
5337
5337
  this.replaceIds(s, t, ["parentId", "nextId", "previousId"]), this.replaceIdOnNode(s.node, t);
5338
5338
  const i = this.crossOriginIframeRootIdMap.get(t);
@@ -5344,30 +5344,30 @@ class vf {
5344
5344
  }), r.data.texts.forEach((s) => {
5345
5345
  this.replaceIds(s, t, ["id"]);
5346
5346
  }), r;
5347
- case G.Drag:
5348
- case G.TouchMove:
5349
- case G.MouseMove:
5347
+ case H.Drag:
5348
+ case H.TouchMove:
5349
+ case H.MouseMove:
5350
5350
  return r.data.positions.forEach((s) => {
5351
5351
  this.replaceIds(s, t, ["id"]);
5352
5352
  }), r;
5353
- case G.ViewportResize:
5353
+ case H.ViewportResize:
5354
5354
  return !1;
5355
- case G.MediaInteraction:
5356
- case G.MouseInteraction:
5357
- case G.Scroll:
5358
- case G.CanvasMutation:
5359
- case G.Input:
5355
+ case H.MediaInteraction:
5356
+ case H.MouseInteraction:
5357
+ case H.Scroll:
5358
+ case H.CanvasMutation:
5359
+ case H.Input:
5360
5360
  return this.replaceIds(r.data, t, ["id"]), r;
5361
- case G.StyleSheetRule:
5362
- case G.StyleDeclaration:
5361
+ case H.StyleSheetRule:
5362
+ case H.StyleDeclaration:
5363
5363
  return this.replaceIds(r.data, t, ["id"]), this.replaceStyleIds(r.data, t, ["styleId"]), r;
5364
- case G.Font:
5364
+ case H.Font:
5365
5365
  return r;
5366
- case G.Selection:
5366
+ case H.Selection:
5367
5367
  return r.data.ranges.forEach((s) => {
5368
5368
  this.replaceIds(s, t, ["start", "end"]);
5369
5369
  }), r;
5370
- case G.AdoptedStyleSheet:
5370
+ case H.AdoptedStyleSheet:
5371
5371
  return this.replaceIds(r.data, t, ["id"]), this.replaceStyleIds(r.data, t, ["styleIds"]), (n = r.data.styles) == null || n.forEach((s) => {
5372
5372
  this.replaceStyleIds(s, t, ["styleId"]);
5373
5373
  }), r;
@@ -5406,9 +5406,9 @@ class bf {
5406
5406
  addShadowRoot(t, r) {
5407
5407
  if (!Xt(t) || this.shadowDoms.has(t)) return;
5408
5408
  this.shadowDoms.add(t);
5409
- const n = Gc({ ...this.bypassOptions, doc: r, mutationCb: this.mutationCb, mirror: this.mirror, shadowDomManager: this }, t);
5409
+ const n = Hc({ ...this.bypassOptions, doc: r, mutationCb: this.mutationCb, mirror: this.mirror, shadowDomManager: this }, t);
5410
5410
  this.restoreHandlers.push(() => n.disconnect()), this.restoreHandlers.push($c({ ...this.bypassOptions, scrollCb: this.scrollCb, doc: t, mirror: this.mirror })), setTimeout(() => {
5411
- t.adoptedStyleSheets && t.adoptedStyleSheets.length > 0 && this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets, this.mirror.getId(H.host(t))), this.restoreHandlers.push(Yc({ mirror: this.mirror, stylesheetManager: this.bypassOptions.stylesheetManager }, t));
5411
+ t.adoptedStyleSheets && t.adoptedStyleSheets.length > 0 && this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets, this.mirror.getId(G.host(t))), this.restoreHandlers.push(Yc({ mirror: this.mirror, stylesheetManager: this.bypassOptions.stylesheetManager }, t));
5412
5412
  }, 0);
5413
5413
  }
5414
5414
  observeAttachShadow(t) {
@@ -5418,7 +5418,7 @@ class bf {
5418
5418
  const n = this;
5419
5419
  this.restoreHandlers.push(Mt(t.prototype, "attachShadow", function(s) {
5420
5420
  return function(i) {
5421
- const a = s.call(this, i), o = H.shadowRoot(this);
5421
+ const a = s.call(this, i), o = G.shadowRoot(this);
5422
5422
  return o && Vc(this) && n.addShadowRoot(o, r), a;
5423
5423
  };
5424
5424
  }));
@@ -5432,8 +5432,8 @@ class bf {
5432
5432
  }), this.restoreHandlers = [], this.shadowDoms = /* @__PURE__ */ new WeakSet();
5433
5433
  }
5434
5434
  }
5435
- for (var Yt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Sf = typeof Uint8Array > "u" ? [] : new Uint8Array(256), Hr = 0; Hr < 64; Hr++) Sf[Yt.charCodeAt(Hr)] = Hr;
5436
- const Da = /* @__PURE__ */ new Map(), Jc = (e, t, r) => {
5435
+ for (var Yt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Sf = typeof Uint8Array > "u" ? [] : new Uint8Array(256), Gr = 0; Gr < 64; Gr++) Sf[Yt.charCodeAt(Gr)] = Gr;
5436
+ const Da = /* @__PURE__ */ new Map(), qc = (e, t, r) => {
5437
5437
  if (!e || !Zc(e, t) && typeof e != "object") return;
5438
5438
  const n = function(i, a) {
5439
5439
  let o = Da.get(i);
@@ -5459,9 +5459,9 @@ function ln(e, t, r) {
5459
5459
  const n = e.constructor.name, { src: s } = e;
5460
5460
  return { rr_type: n, src: s };
5461
5461
  }
5462
- return e instanceof HTMLCanvasElement ? { rr_type: "HTMLImageElement", src: e.toDataURL() } : e instanceof ImageData ? { rr_type: e.constructor.name, args: [ln(e.data, t, r), e.width, e.height] } : Zc(e, t) || typeof e == "object" ? { rr_type: e.constructor.name, index: Jc(e, t, r) } : e;
5462
+ return e instanceof HTMLCanvasElement ? { rr_type: "HTMLImageElement", src: e.toDataURL() } : e instanceof ImageData ? { rr_type: e.constructor.name, args: [ln(e.data, t, r), e.width, e.height] } : Zc(e, t) || typeof e == "object" ? { rr_type: e.constructor.name, index: qc(e, t, r) } : e;
5463
5463
  }
5464
- const qc = (e, t, r) => e.map((n) => ln(n, t, r)), Zc = (e, t) => !!["WebGLActiveInfo", "WebGLBuffer", "WebGLFramebuffer", "WebGLProgram", "WebGLRenderbuffer", "WebGLShader", "WebGLShaderPrecisionFormat", "WebGLTexture", "WebGLUniformLocation", "WebGLVertexArrayObject", "WebGLVertexArrayObjectOES"].filter((n) => typeof t[n] == "function").find((n) => e instanceof t[n]);
5464
+ const Jc = (e, t, r) => e.map((n) => ln(n, t, r)), Zc = (e, t) => !!["WebGLActiveInfo", "WebGLBuffer", "WebGLFramebuffer", "WebGLProgram", "WebGLRenderbuffer", "WebGLShader", "WebGLShaderPrecisionFormat", "WebGLTexture", "WebGLUniformLocation", "WebGLVertexArrayObject", "WebGLVertexArrayObjectOES"].filter((n) => typeof t[n] == "function").find((n) => e instanceof t[n]);
5465
5465
  function Pa(e, t, r, n) {
5466
5466
  const s = [];
5467
5467
  try {
@@ -5494,8 +5494,8 @@ function _a(e, t, r, n, s, i) {
5494
5494
  const c = Mt(e, l, function(u) {
5495
5495
  return function(...d) {
5496
5496
  const h = u.apply(this, d);
5497
- if (Jc(h, i, this), "tagName" in this.canvas && !Se(this.canvas, n, s, !0)) {
5498
- const f = qc(d, i, this), v = { type: t, property: l, args: f };
5497
+ if (qc(h, i, this), "tagName" in this.canvas && !Se(this.canvas, n, s, !0)) {
5498
+ const f = Jc(d, i, this), v = { type: t, property: l, args: f };
5499
5499
  r(this.canvas, v);
5500
5500
  }
5501
5501
  return h;
@@ -5590,7 +5590,7 @@ class Cf {
5590
5590
  const v = Mt(l.CanvasRenderingContext2D.prototype, f, function(p) {
5591
5591
  return function(...I) {
5592
5592
  return Se(this.canvas, c, u, !0) || setTimeout(() => {
5593
- const m = qc(I, l, this);
5593
+ const m = Jc(I, l, this);
5594
5594
  o(this.canvas, { type: Ct["2D"], property: f, args: m });
5595
5595
  }, 0), p.apply(this, I);
5596
5596
  };
@@ -5692,7 +5692,7 @@ try {
5692
5692
  console.debug("Unable to override Array.from", e);
5693
5693
  }
5694
5694
  const Ae = new El();
5695
- function Jt(e = {}) {
5695
+ function qt(e = {}) {
5696
5696
  const { emit: t, checkoutEveryNms: r, checkoutEveryNth: n, blockClass: s = "rr-block", blockSelector: i = null, ignoreClass: a = "rr-ignore", ignoreSelector: o = null, maskTextClass: l = "rr-mask", maskTextSelector: c = null, inlineStylesheet: u = !0, maskAllInputs: d, maskInputOptions: h, slimDOMOptions: f, maskInputFn: v, maskTextFn: p, hooks: I, packFn: m, sampling: g = {}, dataURLOptions: b = {}, mousemoveWait: C, recordDOM: A = !0, recordCanvas: E = !1, recordCrossOriginIframes: T = !1, recordAfter: M = e.recordAfter === "DOMContentLoaded" ? e.recordAfter : "load", userTriggeredOnInput: k = !1, collectFonts: R = !1, inlineImages: x = !1, plugins: S, keepIframeSrcFn: D = () => !1, ignoreCSSAttributes: P = /* @__PURE__ */ new Set([]), errorHandler: w } = e;
5697
5697
  Qt = w;
5698
5698
  const y = !T || window.parent === window;
@@ -5719,36 +5719,36 @@ function Jt(e = {}) {
5719
5719
  ce = (W, Oe) => {
5720
5720
  var ne;
5721
5721
  const oe = W;
5722
- if (oe.timestamp = vn(), !((ne = mt[0]) != null && ne.isFrozen()) || oe.type === Y.FullSnapshot || oe.type === Y.IncrementalSnapshot && oe.data.source === G.Mutation || mt.forEach((Re) => Re.unfreeze()), y) t == null || t(ee(oe), Oe);
5722
+ if (oe.timestamp = vn(), !((ne = mt[0]) != null && ne.isFrozen()) || oe.type === Y.FullSnapshot || oe.type === Y.IncrementalSnapshot && oe.data.source === H.Mutation || mt.forEach((Re) => Re.unfreeze()), y) t == null || t(ee(oe), Oe);
5723
5723
  else if (U) {
5724
5724
  const Re = { type: "rrweb", event: ee(oe), origin: window.location.origin, isCheckout: Oe };
5725
5725
  window.parent.postMessage(Re, "*");
5726
5726
  }
5727
5727
  if (oe.type === Y.FullSnapshot) O = oe, _ = 0;
5728
5728
  else if (oe.type === Y.IncrementalSnapshot) {
5729
- if (oe.data.source === G.Mutation && oe.data.isAttachIframe) return;
5729
+ if (oe.data.source === H.Mutation && oe.data.isAttachIframe) return;
5730
5730
  _++;
5731
- const Re = n && _ >= n, q = r && oe.timestamp - O.timestamp > r;
5732
- (Re || q) && cn(!0);
5731
+ const Re = n && _ >= n, J = r && oe.timestamp - O.timestamp > r;
5732
+ (Re || J) && cn(!0);
5733
5733
  }
5734
5734
  };
5735
- const J = (W) => {
5736
- ce({ type: Y.IncrementalSnapshot, data: { source: G.Mutation, ...W } });
5737
- }, me = (W) => ce({ type: Y.IncrementalSnapshot, data: { source: G.Scroll, ...W } }), _e = (W) => ce({ type: Y.IncrementalSnapshot, data: { source: G.CanvasMutation, ...W } }), V = new kf({ mutationCb: J, adoptedStyleSheetCb: (W) => ce({ type: Y.IncrementalSnapshot, data: { source: G.AdoptedStyleSheet, ...W } }) }), ge = new vf({ mirror: Ae, mutationCb: J, stylesheetManager: V, recordCrossOriginIframes: T, wrappedEmit: ce });
5735
+ const q = (W) => {
5736
+ ce({ type: Y.IncrementalSnapshot, data: { source: H.Mutation, ...W } });
5737
+ }, me = (W) => ce({ type: Y.IncrementalSnapshot, data: { source: H.Scroll, ...W } }), _e = (W) => ce({ type: Y.IncrementalSnapshot, data: { source: H.CanvasMutation, ...W } }), V = new kf({ mutationCb: q, adoptedStyleSheetCb: (W) => ce({ type: Y.IncrementalSnapshot, data: { source: H.AdoptedStyleSheet, ...W } }) }), ge = new vf({ mirror: Ae, mutationCb: q, stylesheetManager: V, recordCrossOriginIframes: T, wrappedEmit: ce });
5738
5738
  for (const W of S || []) W.getMirror && W.getMirror({ nodeMirror: Ae, crossOriginIframeMirror: ge.crossOriginIframeMirror, crossOriginIframeStyleMirror: ge.crossOriginIframeStyleMirror });
5739
5739
  const dt = new Ef();
5740
5740
  hs = new Cf({ recordCanvas: E, mutationCb: _e, win: window, blockClass: s, blockSelector: i, mirror: Ae, sampling: g.canvas, dataURLOptions: b });
5741
- const et = new bf({ mutationCb: J, scrollCb: me, bypassOptions: { blockClass: s, blockSelector: i, maskTextClass: l, maskTextSelector: c, inlineStylesheet: u, maskInputOptions: F, dataURLOptions: b, maskTextFn: p, maskInputFn: v, recordCanvas: E, inlineImages: x, sampling: g, slimDOMOptions: j, iframeManager: ge, stylesheetManager: V, canvasManager: hs, keepIframeSrcFn: D, processedNodeManager: dt }, mirror: Ae });
5741
+ const Qe = new bf({ mutationCb: q, scrollCb: me, bypassOptions: { blockClass: s, blockSelector: i, maskTextClass: l, maskTextSelector: c, inlineStylesheet: u, maskInputOptions: F, dataURLOptions: b, maskTextFn: p, maskInputFn: v, recordCanvas: E, inlineImages: x, sampling: g, slimDOMOptions: j, iframeManager: ge, stylesheetManager: V, canvasManager: hs, keepIframeSrcFn: D, processedNodeManager: dt }, mirror: Ae });
5742
5742
  cn = (W = !1) => {
5743
5743
  if (!A) return;
5744
- ce({ type: Y.Meta, data: { href: window.location.href, width: Nc(), height: _c() } }, W), V.reset(), et.init(), mt.forEach((ne) => ne.lock());
5744
+ ce({ type: Y.Meta, data: { href: window.location.href, width: Nc(), height: _c() } }, W), V.reset(), Qe.init(), mt.forEach((ne) => ne.lock());
5745
5745
  const Oe = function(ne, oe) {
5746
- const { mirror: Re = new El(), blockClass: q = "rr-block", blockSelector: _t = null, maskTextClass: rd = "rr-mask", maskTextSelector: nd = null, inlineStylesheet: sd = !0, inlineImages: id = !1, recordCanvas: od = !1, maskAllInputs: qn = !1, maskTextFn: ad, maskInputFn: ld, slimDOM: Nt = !1, dataURLOptions: cd, preserveWhiteSpace: ud, onSerialize: dd, onIframeLoad: pd, iframeLoadTimeout: hd, onStylesheetLoad: md, stylesheetLoadTimeout: fd, keepIframeSrcFn: gd = () => !1 } = oe || {};
5747
- return Et(ne, { doc: ne, mirror: Re, blockClass: q, blockSelector: _t, maskTextClass: rd, maskTextSelector: nd, skipChild: !1, inlineStylesheet: sd, maskInputOptions: qn === !0 ? { color: !0, date: !0, "datetime-local": !0, email: !0, month: !0, number: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0, textarea: !0, select: !0, password: !0 } : qn === !1 ? { password: !0 } : qn, maskTextFn: ad, maskInputFn: ld, slimDOMOptions: Nt === !0 || Nt === "all" ? { script: !0, comment: !0, headFavicon: !0, headWhitespace: !0, headMetaDescKeywords: Nt === "all", headMetaSocial: !0, headMetaRobots: !0, headMetaHttpEquiv: !0, headMetaAuthorship: !0, headMetaVerification: !0 } : Nt === !1 ? {} : Nt, dataURLOptions: cd, inlineImages: id, recordCanvas: od, preserveWhiteSpace: ud, onSerialize: dd, onIframeLoad: pd, iframeLoadTimeout: hd, onStylesheetLoad: md, stylesheetLoadTimeout: fd, keepIframeSrcFn: gd, newlyAddedElement: !1 });
5746
+ const { mirror: Re = new El(), blockClass: J = "rr-block", blockSelector: _t = null, maskTextClass: rd = "rr-mask", maskTextSelector: nd = null, inlineStylesheet: sd = !0, inlineImages: id = !1, recordCanvas: od = !1, maskAllInputs: Jn = !1, maskTextFn: ad, maskInputFn: ld, slimDOM: Nt = !1, dataURLOptions: cd, preserveWhiteSpace: ud, onSerialize: dd, onIframeLoad: pd, iframeLoadTimeout: hd, onStylesheetLoad: md, stylesheetLoadTimeout: fd, keepIframeSrcFn: gd = () => !1 } = oe || {};
5747
+ return Et(ne, { doc: ne, mirror: Re, blockClass: J, blockSelector: _t, maskTextClass: rd, maskTextSelector: nd, skipChild: !1, inlineStylesheet: sd, maskInputOptions: Jn === !0 ? { color: !0, date: !0, "datetime-local": !0, email: !0, month: !0, number: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0, textarea: !0, select: !0, password: !0 } : Jn === !1 ? { password: !0 } : Jn, maskTextFn: ad, maskInputFn: ld, slimDOMOptions: Nt === !0 || Nt === "all" ? { script: !0, comment: !0, headFavicon: !0, headWhitespace: !0, headMetaDescKeywords: Nt === "all", headMetaSocial: !0, headMetaRobots: !0, headMetaHttpEquiv: !0, headMetaAuthorship: !0, headMetaVerification: !0 } : Nt === !1 ? {} : Nt, dataURLOptions: cd, inlineImages: id, recordCanvas: od, preserveWhiteSpace: ud, onSerialize: dd, onIframeLoad: pd, iframeLoadTimeout: hd, onStylesheetLoad: md, stylesheetLoadTimeout: fd, keepIframeSrcFn: gd, newlyAddedElement: !1 });
5748
5748
  }(document, { mirror: Ae, blockClass: s, blockSelector: i, maskTextClass: l, maskTextSelector: c, inlineStylesheet: u, maskAllInputs: F, maskTextFn: p, maskInputFn: v, slimDOM: j, dataURLOptions: b, recordCanvas: E, inlineImages: x, onSerialize: (ne) => {
5749
- zc(ne, Ae) && ge.addIframe(ne), jc(ne, Ae) && V.trackLinkElement(ne), ai(ne) && et.addShadowRoot(H.shadowRoot(ne), document);
5749
+ zc(ne, Ae) && ge.addIframe(ne), jc(ne, Ae) && V.trackLinkElement(ne), ai(ne) && Qe.addShadowRoot(G.shadowRoot(ne), document);
5750
5750
  }, onIframeLoad: (ne, oe) => {
5751
- ge.attachIframe(ne, oe), et.observeAttachShadow(ne);
5751
+ ge.attachIframe(ne, oe), Qe.observeAttachShadow(ne);
5752
5752
  }, onStylesheetLoad: (ne, oe) => {
5753
5753
  V.attachLinkElement(ne, oe);
5754
5754
  }, keepIframeSrcFn: D });
@@ -5758,11 +5758,11 @@ function Jt(e = {}) {
5758
5758
  try {
5759
5759
  const W = [], Oe = (oe) => {
5760
5760
  var Re;
5761
- return $(wf)({ mutationCb: J, mousemoveCb: (q, _t) => ce({ type: Y.IncrementalSnapshot, data: { source: _t, positions: q } }), mouseInteractionCb: (q) => ce({ type: Y.IncrementalSnapshot, data: { source: G.MouseInteraction, ...q } }), scrollCb: me, viewportResizeCb: (q) => ce({ type: Y.IncrementalSnapshot, data: { source: G.ViewportResize, ...q } }), inputCb: (q) => ce({ type: Y.IncrementalSnapshot, data: { source: G.Input, ...q } }), mediaInteractionCb: (q) => ce({ type: Y.IncrementalSnapshot, data: { source: G.MediaInteraction, ...q } }), styleSheetRuleCb: (q) => ce({ type: Y.IncrementalSnapshot, data: { source: G.StyleSheetRule, ...q } }), styleDeclarationCb: (q) => ce({ type: Y.IncrementalSnapshot, data: { source: G.StyleDeclaration, ...q } }), canvasMutationCb: _e, fontCb: (q) => ce({ type: Y.IncrementalSnapshot, data: { source: G.Font, ...q } }), selectionCb: (q) => {
5762
- ce({ type: Y.IncrementalSnapshot, data: { source: G.Selection, ...q } });
5763
- }, customElementCb: (q) => {
5764
- ce({ type: Y.IncrementalSnapshot, data: { source: G.CustomElement, ...q } });
5765
- }, blockClass: s, ignoreClass: a, ignoreSelector: o, maskTextClass: l, maskTextSelector: c, maskInputOptions: F, inlineStylesheet: u, sampling: g, recordDOM: A, recordCanvas: E, inlineImages: x, userTriggeredOnInput: k, collectFonts: R, doc: oe, maskInputFn: v, maskTextFn: p, keepIframeSrcFn: D, blockSelector: i, slimDOMOptions: j, dataURLOptions: b, mirror: Ae, iframeManager: ge, stylesheetManager: V, shadowDomManager: et, processedNodeManager: dt, canvasManager: hs, ignoreCSSAttributes: P, plugins: ((Re = S == null ? void 0 : S.filter((q) => q.observer)) == null ? void 0 : Re.map((q) => ({ observer: q.observer, options: q.options, callback: (_t) => ce({ type: Y.Plugin, data: { plugin: q.name, payload: _t } }) }))) || [] }, I);
5761
+ return $(wf)({ mutationCb: q, mousemoveCb: (J, _t) => ce({ type: Y.IncrementalSnapshot, data: { source: _t, positions: J } }), mouseInteractionCb: (J) => ce({ type: Y.IncrementalSnapshot, data: { source: H.MouseInteraction, ...J } }), scrollCb: me, viewportResizeCb: (J) => ce({ type: Y.IncrementalSnapshot, data: { source: H.ViewportResize, ...J } }), inputCb: (J) => ce({ type: Y.IncrementalSnapshot, data: { source: H.Input, ...J } }), mediaInteractionCb: (J) => ce({ type: Y.IncrementalSnapshot, data: { source: H.MediaInteraction, ...J } }), styleSheetRuleCb: (J) => ce({ type: Y.IncrementalSnapshot, data: { source: H.StyleSheetRule, ...J } }), styleDeclarationCb: (J) => ce({ type: Y.IncrementalSnapshot, data: { source: H.StyleDeclaration, ...J } }), canvasMutationCb: _e, fontCb: (J) => ce({ type: Y.IncrementalSnapshot, data: { source: H.Font, ...J } }), selectionCb: (J) => {
5762
+ ce({ type: Y.IncrementalSnapshot, data: { source: H.Selection, ...J } });
5763
+ }, customElementCb: (J) => {
5764
+ ce({ type: Y.IncrementalSnapshot, data: { source: H.CustomElement, ...J } });
5765
+ }, blockClass: s, ignoreClass: a, ignoreSelector: o, maskTextClass: l, maskTextSelector: c, maskInputOptions: F, inlineStylesheet: u, sampling: g, recordDOM: A, recordCanvas: E, inlineImages: x, userTriggeredOnInput: k, collectFonts: R, doc: oe, maskInputFn: v, maskTextFn: p, keepIframeSrcFn: D, blockSelector: i, slimDOMOptions: j, dataURLOptions: b, mirror: Ae, iframeManager: ge, stylesheetManager: V, shadowDomManager: Qe, processedNodeManager: dt, canvasManager: hs, ignoreCSSAttributes: P, plugins: ((Re = S == null ? void 0 : S.filter((J) => J.observer)) == null ? void 0 : Re.map((J) => ({ observer: J.observer, options: J.options, callback: (_t) => ce({ type: Y.Plugin, data: { plugin: J.name, payload: _t } }) }))) || [] }, I);
5766
5766
  };
5767
5767
  ge.addLoadListener((oe) => {
5768
5768
  try {
@@ -5786,22 +5786,22 @@ function Jt(e = {}) {
5786
5786
  }
5787
5787
  }
5788
5788
  var Ba, St;
5789
- Jt.addCustomEvent = (e, t) => {
5789
+ qt.addCustomEvent = (e, t) => {
5790
5790
  if (!bn) throw new Error("please add custom event after start recording");
5791
5791
  ce({ type: Y.Custom, data: { tag: e, payload: t } });
5792
- }, Jt.freezePage = () => {
5792
+ }, qt.freezePage = () => {
5793
5793
  mt.forEach((e) => e.freeze());
5794
- }, Jt.takeFullSnapshot = (e) => {
5794
+ }, qt.takeFullSnapshot = (e) => {
5795
5795
  if (!bn) throw new Error("please take full snapshot after start recording");
5796
5796
  cn(e);
5797
- }, Jt.mirror = Ae, (St = Ba || (Ba = {}))[St.NotStarted = 0] = "NotStarted", St[St.Running = 1] = "Running", St[St.Stopped = 2] = "Stopped";
5797
+ }, qt.mirror = Ae, (St = Ba || (Ba = {}))[St.NotStarted = 0] = "NotStarted", St[St.Running = 1] = "Running", St[St.Stopped = 2] = "Stopped";
5798
5798
  var Be = ((e) => (e.Closed = "close.click", e.Complete = "survey.completed", e.FeedbackClosed = "feedback.closed", e.PageChange = "page.change", e.API = "api", e.Override = "override", e))(Be || {}), B = ((e) => (e.ReplayCapture = "replay.capture", e.ReplayPaused = "replay.paused", e.ReplayResumed = "replay.resumed", e.FeedbackButtonLoaded = "feedback.button.loaded", e.SDKReady = "sdk.ready", e.SurveyAppeared = "survey.appeared", e.SurveyCloseRequested = "survey.closeRequested", e.SurveyClosed = "survey.closed", e.SurveyDimensions = "survey.dimensions", e.SurveyFadingOut = "survey.fadingOut", e.SurveyHeight = "survey.height", e.SurveyPresented = "survey.presented", e.SurveyLifeCycle = "survey.lifeCycle", e.SurveyWidth = "survey.width", e.SurveyWillClose = "survey.willClose", e.SurveyWillPresent = "survey.will.present", e.CloseSurveyOnOverlayClick = "close.survey.overlayClick", e.VisitorIDUpdated = "visitor.id.updated", e.QuestionAnswered = "question.answered", e))(B || {});
5799
5799
  const hr = { FEEDBACK_BUTTON_LOADED: "feedback.button.loaded", SDK_READY: "sdk.ready", SURVEY_APPEARED: "survey.appeared", SURVEY_CLOSED: "survey.closed", SURVEY_DIMENSIONS: "survey.dimensions", SURVEY_FADING_OUT: "survey.fadingOut", SURVEY_HEIGHT: "survey.height", SURVEY_WIDTH: "survey.width", SURVEY_PRESENTED: "survey.presented", SURVEY_LIFE_CYCLE: "survey.lifeCycle", SURVEY_WILL_CLOSE: "survey.willClose", SURVEY_WILL_PRESENT: "survey.will.present", QUESTION_ANSWERED: "question.answered", REPLAY_CAPTURE: "replay.capture", CLOSE_SURVEY_ON_OVERLAY_CLICK: "close.survey.overlayClick", VISITOR_ID_UPDATED: "visitor.id.updated", DATA: { DISMISS_REASONS: { API: "api", CLOSED: "close.click", COMPLETE: "survey.completed", PAGE_CHANGE: "page.change", OVERRIDE: "override" }, SURVEY_ID: "survey.id" } };
5800
- let Gr;
5800
+ let Hr;
5801
5801
  const xf = new Uint8Array(16);
5802
5802
  function Rf() {
5803
- if (!Gr && (Gr = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Gr)) throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
5804
- return Gr(xf);
5803
+ if (!Hr && (Hr = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Hr)) throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
5804
+ return Hr(xf);
5805
5805
  }
5806
5806
  const ye = [];
5807
5807
  for (let e = 0; e < 256; ++e) ye.push((e + 256).toString(16).slice(1));
@@ -5813,7 +5813,7 @@ function Tt(e, t, r) {
5813
5813
  return ye[s[i + 0]] + ye[s[i + 1]] + ye[s[i + 2]] + ye[s[i + 3]] + "-" + ye[s[i + 4]] + ye[s[i + 5]] + "-" + ye[s[i + 6]] + ye[s[i + 7]] + "-" + ye[s[i + 8]] + ye[s[i + 9]] + "-" + ye[s[i + 10]] + ye[s[i + 11]] + ye[s[i + 12]] + ye[s[i + 13]] + ye[s[i + 14]] + ye[s[i + 15]];
5814
5814
  }(n);
5815
5815
  }
5816
- const $g = 360, Yg = "ul-app", Jg = "#e6e6e6", qg = "#bd282a", Zg = 1030, N = new class {
5816
+ const $g = 360, Yg = "ul-app", qg = "#e6e6e6", Jg = "#bd282a", Zg = 1030, N = new class {
5817
5817
  constructor() {
5818
5818
  de(this, "breadcrumbs", []);
5819
5819
  }
@@ -6029,22 +6029,22 @@ const Tf = (e) => e._config && e._config.installationMethod ? e._config.installa
6029
6029
  ru = !0, nu = e;
6030
6030
  };
6031
6031
  function Te(e = {}) {
6032
- const t = { "Content-Type": "application/json", "userleap-platform": "web", "x-ul-sdk-version": "2.40.0", "x-ul-installation-method": Tf(e), "sprig-modules": Mf(), "x-ul-package-version": "2.40.0" };
6032
+ const t = { "Content-Type": "application/json", "userleap-platform": "web", "x-ul-sdk-version": "2.40.1", "x-ul-installation-method": Tf(e), "sprig-modules": Mf(), "x-ul-package-version": "2.40.1" };
6033
6033
  if (e.envId && (t["x-ul-environment-id"] = e.envId), e.token && (t.Authorization = "Bearer " + e.token), e.userId && (t["x-ul-user-id"] = e.userId), e.visitorId && (t["x-ul-visitor-id"] = e.visitorId), e.partnerAnonymousId && (t["x-ul-anonymous-id"] = e.partnerAnonymousId), e.mobileHeadersJSON) {
6034
6034
  const r = JSON.parse(e.mobileHeadersJSON);
6035
6035
  Object.assign(t, r);
6036
6036
  }
6037
6037
  return e.locale && (t["accept-language"] = e.locale), window.previewMode && (t["x-ul-preview-mode"] = "1"), t;
6038
6038
  }
6039
- const Ha = async ({ shouldDropOnRateLimit: e, ...t }) => {
6039
+ const Ga = async ({ shouldDropOnRateLimit: e, ...t }) => {
6040
6040
  if (e) return { status: 429 };
6041
6041
  {
6042
6042
  const r = new Af(t);
6043
6043
  return un.push(r), r.promise;
6044
6044
  }
6045
- }, Qe = async (e, t) => {
6045
+ }, Xe = async (e, t) => {
6046
6046
  const { retries: r = 0, shouldDropOnRateLimit: n = !1, shouldRetryRequest: s = !1, ...i } = t, a = { url: e, options: i, retries: r, shouldDropOnRateLimit: n };
6047
- if ($r && !s) return Ha(a);
6047
+ if ($r && !s) return Ga(a);
6048
6048
  const o = { ok: !1, reportError: !1 };
6049
6049
  if (ru) return console.info(`UserLeap - ${nu}`), o;
6050
6050
  try {
@@ -6053,13 +6053,13 @@ const Ha = async ({ shouldDropOnRateLimit: e, ...t }) => {
6053
6053
  if (!$r && !n || s) {
6054
6054
  $r = !0;
6055
6055
  const c = l.headers.has("ratelimit-reset") ? Number(l.headers.get("ratelimit-reset")) : Uf;
6056
- return await Sn(1e3 * c), Qe(e, { ...i, shouldDropOnRateLimit: n, shouldRetryRequest: !0 });
6056
+ return await Sn(1e3 * c), Xe(e, { ...i, shouldDropOnRateLimit: n, shouldRetryRequest: !0 });
6057
6057
  }
6058
- return Ha(a);
6058
+ return Ga(a);
6059
6059
  }
6060
6060
  if ($r = !1, un.length && (un.map((c) => {
6061
6061
  const u = c.payload;
6062
- Qe(u.url, { ...u.options, retries: u.retries, shouldDropOnRateLimit: u.shouldDropOnRateLimit }).then((d) => {
6062
+ Xe(u.url, { ...u.options, retries: u.retries, shouldDropOnRateLimit: u.shouldDropOnRateLimit }).then((d) => {
6063
6063
  c.resolveRequest(d);
6064
6064
  });
6065
6065
  }), un = []), l.ok) {
@@ -6074,14 +6074,14 @@ const Ha = async ({ shouldDropOnRateLimit: e, ...t }) => {
6074
6074
  return l;
6075
6075
  } catch (l) {
6076
6076
  const c = r + 1;
6077
- return c > 5 || su ? { ok: !1, reportError: !1, error: l } : (await Sn(1e3 * Math.pow(2, r)), Qe(e, { ...i, retries: c }));
6077
+ return c > 5 || su ? { ok: !1, reportError: !1, error: l } : (await Sn(1e3 * Math.pow(2, r)), Xe(e, { ...i, retries: c }));
6078
6078
  }
6079
- }, Ga = "ul-view-sdk-script", Df = /* @__PURE__ */ new Set(["ios", "android"]), it = "visitors", ot = "environments";
6079
+ }, Ha = "ul-view-sdk-script", Df = /* @__PURE__ */ new Set(["ios", "android"]), it = "visitors", ot = "environments";
6080
6080
  async function ze(e, t) {
6081
6081
  var i, a, o;
6082
6082
  const { shouldDropOnRateLimit: r, ...n } = t;
6083
6083
  n.headers = Object.assign(Te(window.UserLeap), n.headers);
6084
- const s = await Qe(e, { ...n, shouldDropOnRateLimit: r });
6084
+ const s = await Xe(e, { ...n, shouldDropOnRateLimit: r });
6085
6085
  if (s.ok) {
6086
6086
  const l = (i = s.headers) == null ? void 0 : i.get("Authorization"), c = l ? l.split(" ") : void 0, u = c && c.length === 2 ? c[1] : void 0, d = (a = s.headers) == null ? void 0 : a.get("x-ul-visitor-id");
6087
6087
  if (window.UserLeap.userId && d === window.UserLeap.visitorId) {
@@ -6107,8 +6107,8 @@ function Me(e, t, r) {
6107
6107
  }), r && n.push(r), n.join("/");
6108
6108
  }
6109
6109
  const tr = async (e, t, r) => {
6110
- var ee, J, me, _e;
6111
- const { context: n, delay: s, avatars: i, forceBrandedLogo: a, endCard: o, isFeedback: l = !1, heatmap: c, locale: u, layout: d, previewMode: h, productConfig: f, questions: v, responseGroupUid: p, surveyId: I, uuid: m, vid: g, sessionReplay: b, studyType: C, surveyVisitorAttributes: A } = e, E = Te(window.UserLeap), T = mr(E), M = Jn(E);
6110
+ var ee, q, me, _e;
6111
+ const { context: n, delay: s, avatars: i, forceBrandedLogo: a, endCard: o, isFeedback: l = !1, heatmap: c, locale: u, layout: d, previewMode: h, productConfig: f, questions: v, responseGroupUid: p, surveyId: I, uuid: m, vid: g, sessionReplay: b, studyType: C, surveyVisitorAttributes: A } = e, E = Te(window.UserLeap), T = mr(E), M = qn(E);
6112
6112
  if (b) if (T) z.emit(B.ReplayCapture, { responseGroupUid: p, hasQuestions: !!(v != null && v.length), surveyId: I, uploadId: b.uploadId, replayType: b.replayDurationType ?? "before", seconds: b.replayDurationSeconds, generateVideoUploadUrlPayload: { mediaRecordingUid: Tt(), mediaType: "screen", questionId: 1, responseGroupUid: p, surveyId: I, updatedAt: (/* @__PURE__ */ new Date()).toISOString(), visitorId: window.UserLeap.visitorId, isReplay: !0 } });
6113
6113
  else {
6114
6114
  if (!re.replay) return window.UserLeap.reportError("displayQuestions", new Error("Replay module not registered")), { success: !1, message: "Replay module not registered", surveyState: "no survey" };
@@ -6116,10 +6116,10 @@ const tr = async (e, t, r) => {
6116
6116
  }
6117
6117
  if (c) {
6118
6118
  if (!re.replay) return window.UserLeap.reportError("displayQuestions", new Error("Replay module not registered")), { success: !1, message: "Replay module not registered", surveyState: "no survey" };
6119
- const { eventId: V, replayParams: ge, responseGroupUid: dt, surveyId: et } = c;
6119
+ const { eventId: V, replayParams: ge, responseGroupUid: dt, surveyId: Qe } = c;
6120
6120
  await re.replay.initializeReplay({ maxReplayDurationSeconds: 300, maxInflightRequests: window.UserLeap.maxInflightReplayRequests, teardownAfter: !0, apiUrl: window.UserLeap._API_URL, replaySettings: r }), re.replay.tryReplayAction(() => {
6121
6121
  var W;
6122
- return (W = re.replay) == null ? void 0 : W.scheduleCapture({ apiUrl: window.UserLeap._API_URL, completeUploadHeaders: E, eventId: V, isHeatmap: !0, replayParams: ge, responseGroupId: dt, surveyId: et, triggerTimestamp: Date.now(), visitorId: g });
6122
+ return (W = re.replay) == null ? void 0 : W.scheduleCapture({ apiUrl: window.UserLeap._API_URL, completeUploadHeaders: E, eventId: V, isHeatmap: !0, replayParams: ge, responseGroupId: dt, surveyId: Qe, triggerTimestamp: Date.now(), visitorId: g });
6123
6123
  }, "Error in scheduling/capturing replay");
6124
6124
  }
6125
6125
  if (g == null || !(v != null && v.length)) return N.info("CannotDisplaySurvey", { vid: g }), { success: !1, message: "[Sprig] no survey found", surveyState: "no survey" };
@@ -6140,25 +6140,25 @@ const tr = async (e, t, r) => {
6140
6140
  ge !== E["x-ul-sdk-version"] && ou(), z.removeListener("verify.view.version", P);
6141
6141
  };
6142
6142
  z.on("verify.view.version", P), window.UserLeap.useMobileStyling = M, eu(E) ? (k = "ul-direct-embeded-frame", R = document.head, x = window, S = !1, (() => {
6143
- const V = Te(window.UserLeap), ge = mr(V), dt = window.UserLeap.forceDirectEmbed, et = V["userleap-platform"] === "web";
6144
- return ge || dt && et;
6145
- })() && (iu(I, l), D.id = k, window.UserLeap.container.appendChild(D), au(), z.emit(B.SurveyLifeCycle, { state: "presented" }), z.emit(B.SurveyPresented, { name: B.SurveyPresented, "survey.id": I }))) : { frameId: k, contentWinDocHead: R, contentWindow: x, hasOverlay: S, iframe: D } = Ff({ productConfig: f, useMobileStyling: M, surveyId: I, isFeedback: l, enableCspTrustedTypes: (J = window.UserLeap._config) == null ? void 0 : J.enableCspTrustedTypes }), window.UserLeap.frameId = k;
6143
+ const V = Te(window.UserLeap), ge = mr(V), dt = window.UserLeap.forceDirectEmbed, Qe = V["userleap-platform"] === "web";
6144
+ return ge || dt && Qe;
6145
+ })() && (iu(I, l), D.id = k, window.UserLeap.container.appendChild(D), au(), z.emit(B.SurveyLifeCycle, { state: "presented" }), z.emit(B.SurveyPresented, { name: B.SurveyPresented, "survey.id": I }))) : { frameId: k, contentWinDocHead: R, contentWindow: x, hasOverlay: S, iframe: D } = Ff({ productConfig: f, useMobileStyling: M, surveyId: I, isFeedback: l, enableCspTrustedTypes: (q = window.UserLeap._config) == null ? void 0 : q.enableCspTrustedTypes }), window.UserLeap.frameId = k;
6146
6146
  const w = { apiURL: window.UserLeap._API_URL, avatars: i, cards: v, configureExitOnOverlayClick: (V) => {
6147
6147
  z.once(B.CloseSurveyOnOverlayClick, V);
6148
6148
  }, context: n, endCard: o, envId: window.UserLeap.envId, eventEmitFn: z.emit.bind(z), fontFamily: window.UserLeap.fontFamily, fontFamilyURL: window.UserLeap.fontFamilyURL, forceBrandedLogo: a, frame: D, headers: E, layout: d, locale: u, mobileSDKVersion: window.UserLeap.mobileSDKVersion, previewKey: ke.getItem("sprig.previewKey"), previewMode: h, productConfig: { framePosition: f == null ? void 0 : f.framePosition, desktopDisplay: f == null ? void 0 : f.desktopDisplay, placement: f == null ? void 0 : f.placement }, responseGroupUid: p, startingQuestionIdx: (me = window.UserLeap.config) == null ? void 0 : me.startingQuestionIdx, studyType: C, styleNonce: window.UserLeap.styleNonce, surveyId: I, tabTitle: document.title, trackPageViewUrl: t, ulEvents: hr, upchunkLibraryURL: window.UserLeap.upchunkLibraryURL, useMobileStyling: M, userId: m, viewDocument: x == null ? void 0 : x.document, viewWindow: x, visitorAttributes: { externalUserId: window.UserLeap.userId, email: window.UserLeap.email }, surveyVisitorAttributes: A || {}, ...window.UserLeap._config };
6149
6149
  (_e = window.UserLeap._config) != null && _e.startingQuestionIdx && (window.UserLeap._config = { ...window.UserLeap._config, startingQuestionIdx: null });
6150
6150
  const y = (l ? window.UserLeap.feedbackCustomStyles : window.UserLeap.customStyles) ?? f.customStyles;
6151
6151
  w.customStyles = y, x && (x.__cfg = w);
6152
- const U = window.UserLeap.viewSDKURL ? window.UserLeap.viewSDKURL : w.path, F = document.getElementById(Ga);
6152
+ const U = window.UserLeap.viewSDKURL ? window.UserLeap.viewSDKURL : w.path, F = document.getElementById(Ha);
6153
6153
  F && F.remove();
6154
6154
  const j = function() {
6155
6155
  const V = document.createElement("script");
6156
- return V.setAttribute("type", "module"), window.UserLeap.nonce && V.setAttribute("nonce", window.UserLeap.nonce), V.id = Ga, V;
6156
+ return V.setAttribute("type", "module"), window.UserLeap.nonce && V.setAttribute("nonce", window.UserLeap.nonce), V.id = Ha, V;
6157
6157
  }(), O = () => {
6158
6158
  window.UserLeap.container && Object.assign(window.UserLeap.container.style, { display: "flex" });
6159
6159
  };
6160
6160
  if (w.installationMethod === "web-npm" || w.installationMethod === "web-npm-bundled") {
6161
- const { default: V } = await import("./view-BjWfEnbU.js").then((ge) => ge.v);
6161
+ const { default: V } = await import("./view-JArMqSNr.js").then((ge) => ge.v);
6162
6162
  V.configure(w), S && window.UserLeap.container && O();
6163
6163
  } else U && (j.src = `${U}?t=${Date.now()}`, S && j.addEventListener("load", () => {
6164
6164
  window.UserLeap.container && O();
@@ -6169,7 +6169,7 @@ const tr = async (e, t, r) => {
6169
6169
  const _ = { success: !0, surveyState: "ready", surveyId: I, responseGroupUid: p };
6170
6170
  return window.UserLeap.isMobileSDK && s && (_.delay = s), _;
6171
6171
  };
6172
- function Jn(e) {
6172
+ function qn(e) {
6173
6173
  var r;
6174
6174
  if (window.UserLeap.useMobileStyling !== void 0) return window.UserLeap.useMobileStyling;
6175
6175
  const t = ((r = window.UserLeap.windowDimensions) == null ? void 0 : r.width) ?? document.body.clientWidth;
@@ -6294,47 +6294,40 @@ function ro(e, t) {
6294
6294
  const cu = (e) => {
6295
6295
  const { pageUrlEvents: t } = window.UserLeap._config, r = t == null ? void 0 : t.find((n) => n.id === e);
6296
6296
  return !!r && ro(r, window.location.href);
6297
- }, Ye = (e) => !!e && e.nodeType === Node.ELEMENT_NODE, Ja = (e) => e instanceof HTMLElement || e instanceof SVGElement, In = ({ document: e, elementId: t, styleString: r, nonce: n }) => {
6297
+ }, nt = (e) => !!e && e.nodeType === Node.ELEMENT_NODE, qa = (e) => e instanceof HTMLElement || e instanceof SVGElement, In = ({ document: e, elementId: t, styleString: r, nonce: n }) => {
6298
6298
  const s = e.getElementById(t);
6299
6299
  if (s) return void (s.textContent = r);
6300
6300
  const i = e.createElement("style");
6301
6301
  n && (i.nonce = n), i.textContent = r, i.id = t, e.head.appendChild(i);
6302
- }, jf = (e, t) => {
6303
- const r = t.querySelector(".sprig-question-body");
6304
- if (!Ye(r)) return e;
6305
- const n = r.scrollHeight;
6306
- return n < 100 ? e : e - (n - 100);
6307
- }, qa = (e, t) => {
6302
+ }, Ja = (e, t) => {
6308
6303
  const r = t.querySelector(e);
6309
- if (!Ye(r)) return 0;
6304
+ if (!nt(r)) return 0;
6310
6305
  const n = getComputedStyle(r);
6311
6306
  return parseFloat(n.paddingLeft) + parseFloat(n.paddingRight) + (parseFloat(n.marginLeft) + parseFloat(n.marginRight)) + (parseFloat(n.borderLeftWidth) + parseFloat(n.borderRightWidth));
6312
- }, Wf = (e, t, r) => {
6307
+ }, jf = (e, t, r) => {
6313
6308
  const n = e.querySelector(".ul-card__container"), s = e.querySelector(".ul-app");
6314
- let i = 600, a = 360, o = 0;
6315
- if (Ye(n) && Ye(s)) {
6316
- const l = n.querySelector(".ul-card--matrix_grid"), c = !l && t && r;
6309
+ let i = 600, a = 360;
6310
+ if (nt(n) && nt(s)) {
6311
+ const o = n.querySelector(".ul-card--matrix_grid"), l = !o && t && r;
6317
6312
  try {
6318
- c && (s.style.width = "360px"), i = n.clientHeight, i += ((h) => {
6319
- const f = h.querySelector(".sprig-question-body"), v = h.querySelector(".ul-card"), p = h.querySelector(".ul-card-main-content"), I = h.querySelector(".ul-footer"), m = h.querySelector(".sprig-container");
6320
- let g = 0;
6321
- return Ye(v) && (g += v.scrollHeight - v.clientHeight), Ye(p) && (g += p.scrollHeight - p.clientHeight), Ye(f) && (g += f.scrollHeight - f.clientHeight), Ye(I) && Ye(m) && m.clientHeight === 0 && (g += I.clientHeight), g;
6313
+ l && (s.style.width = "360px"), i = n.scrollHeight, i += ((d) => {
6314
+ const h = d.querySelector(".sprig-question-body"), f = d.querySelector(".ul-card"), v = d.querySelector(".ul-card-main-content"), p = d.querySelector(".ul-footer"), I = d.querySelector(".sprig-container");
6315
+ let m = 0;
6316
+ return nt(f) && (m += f.scrollHeight - f.clientHeight), nt(v) && (m += v.scrollHeight - v.clientHeight), nt(h) && (m += h.scrollHeight - h.clientHeight), nt(p) && nt(I) && I.clientHeight === 0 && (m += p.clientHeight), m;
6322
6317
  })(e);
6323
- const u = getComputedStyle(n);
6324
- o = i;
6325
- const d = parseFloat(u.marginTop) + parseFloat(u.marginBottom);
6326
- i += d + (parseFloat(u.borderTopWidth) + parseFloat(u.borderBottomWidth)), l && (a = l.scrollWidth, a += qa(".ul-card__container", e), a += qa(".sprig-question-body", e));
6318
+ const c = getComputedStyle(n), u = parseFloat(c.marginTop) + parseFloat(c.marginBottom);
6319
+ i += u + (parseFloat(c.borderTopWidth) + parseFloat(c.borderBottomWidth)), o && (a = o.scrollWidth, a += Ja(".ul-card__container", e), a += Ja(".sprig-question-body", e));
6327
6320
  } finally {
6328
- c && s.style.removeProperty("width");
6321
+ l && s.style.removeProperty("width");
6329
6322
  }
6330
6323
  }
6331
- return [i + 2, a, jf(o, e)];
6324
+ return [i + 2, a];
6332
6325
  }, Qg = (e) => {
6333
6326
  const t = e.querySelector(".ul-card__container");
6334
6327
  t && (t.scrollTop = 0);
6335
6328
  }, uu = () => X, Lt = () => document.getElementById("sprig-feedback-container"), ui = () => document.getElementById("sprig-feedback-loading-animation"), du = () => !!document.getElementById(to);
6336
6329
  let Za = !1, X = null, je = null, no = !1, rr = null, pt = null;
6337
- const Vf = ["bottom-left", "bottom-right", "center-left", "center-right"], Cn = () => {
6330
+ const Wf = ["bottom-left", "bottom-right", "center-left", "center-right"], Cn = () => {
6338
6331
  var t;
6339
6332
  const e = window.UserLeap.container;
6340
6333
  return ((t = e == null ? void 0 : e.parentElement) == null ? void 0 : t.id) === "sprig-feedback-loading-container";
@@ -6347,12 +6340,12 @@ const Vf = ["bottom-left", "bottom-right", "center-left", "center-right"], Cn =
6347
6340
  t && (pt != null && pt.endsWith("right") ? t.style.right = `${e}px` : pt != null && pt.endsWith("left") && (t.style.left = `${e}px`));
6348
6341
  }, fs = () => {
6349
6342
  if (X && (Cn() || pu())) {
6350
- z.off(B.SurveyAppeared, qt), di();
6343
+ z.off(B.SurveyAppeared, Jt), di();
6351
6344
  const e = hu();
6352
6345
  return kn(-e), !0;
6353
6346
  }
6354
6347
  return !1;
6355
- }, qt = () => {
6348
+ }, Jt = () => {
6356
6349
  if (!X || !je) return;
6357
6350
  const e = ui();
6358
6351
  e && e.remove(), X.style.height = "auto", X.style.width = "auto", je.disabled = !1, no = !1;
@@ -6386,7 +6379,7 @@ const Vf = ["bottom-left", "bottom-right", "center-left", "center-right"], Cn =
6386
6379
  rr = i, In({ document, elementId: "sprig-feedback-style", styleString: '.ul-loading-spinner-container{font-size:1.8rem;flex-grow:1;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.ul-loading-spinner{display:inline-block;position:relative;width:6rem;height:6rem}.ul-loading-spinner div{box-sizing:border-box;display:block;position:absolute;width:80%;height:80%;margin:5px;border:5px solid #152e3e;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#152e3e transparent transparent transparent}.ul-loading-spinner .first{animation-delay:-.45s}.ul-loading-spinner .second{animation-delay:-.3s}.ul-loading-spinner .third{animation-delay:-.15s}@keyframes lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.fade-in-transition{animation:fadeIn .4s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}#sprig-feedback-button{border-left:0;border-radius:0 8px 8px 0;display:grid;padding:8px;text-align:center;transition:all ease-in-out 1s;z-index:inherit}#sprig-feedback-button:hover{cursor:pointer}.sprig-feedback-button-label{writing-mode:vertical-lr;text-orientation:sideways}.sprig-feedback-button-right{transform:rotate(180deg)}.sprig-feedback-button-bottom{align-self:flex-end;margin-bottom:20px}.sprig-feedback-button-light{background:#efefee;color:#000;border:1px solid #e2e3e1}.sprig-feedback-button-dark{background:#000;color:#fff;border:1px solid #000000}#sprig-feedback-container{display:flex;align-items:center;position:fixed;transition:right .2s linear,left .2s linear;z-index:2147483646}.sprig-feedback-container-left{flex-flow:row-reverse}.sprig-feedback-container-center{top:50%;transform:translateY(-50%)}.sprig-feedback-container-bottom{bottom:0%;margin-bottom:15px}.sprig-feedback-loading-container{align-items:center;background-color:#fff;border:2px solid var(--feedback-border);display:flex;max-height:90vh;max-width:90vw;min-width:0px}.sprig-feedback-loading-container-left{border-left:none;border-radius:0 8px 8px 0}.sprig-feedback-loading-container-right{border-right:none;border-radius:8px 0 0 8px}#sprig-feedback-error-container{margin:auto;text-align:center;width:360px}.sprig-feedback-error-text{font-weight:400;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol}#sprig-feedback-loading-container .ul-container{position:relative;max-height:inherit}#sprig-feedback-loading-animation{position:absolute}.sprig-feedback-loading-container-previews iframe{max-height:inherit!important}', nonce: window.UserLeap.styleNonce }), In({ document, elementId: "ul-custom-style", styleString: s ?? "", nonce: window.UserLeap.styleNonce }), Za = o === "center-modal", pt = a;
6387
6380
  const [h, f] = a.split("-");
6388
6381
  ((m) => {
6389
- if (Lt() || !Vf.includes(m)) return;
6382
+ if (Lt() || !Wf.includes(m)) return;
6390
6383
  const [g, b] = m.split("-"), C = document.createElement("div");
6391
6384
  C.id = "sprig-feedback-container", C.classList.add(`sprig-feedback-container-${b}`, `sprig-feedback-container-${g}`), document.body.appendChild(C);
6392
6385
  })(a), d = Lt(), je = document.createElement("button");
@@ -6401,15 +6394,15 @@ const Vf = ["bottom-left", "bottom-right", "center-left", "center-right"], Cn =
6401
6394
  }
6402
6395
  return;
6403
6396
  }
6404
- if (Jn(Te(window.UserLeap)) || no || Ka(), t) return X && X.classList.add("sprig-feedback-loading-container-previews"), await tr(t), void qt();
6397
+ if (qn(Te(window.UserLeap)) || no || Ka(), t) return X && X.classList.add("sprig-feedback-loading-container-previews"), await tr(t), void Jt();
6405
6398
  const g = await (async (b) => {
6406
6399
  const C = await ze(Me("1", [it], "startFeedbackStudy"), { body: JSON.stringify({ surveyUuid: b }), method: "POST" });
6407
6400
  return C.ok ? C.json : null;
6408
6401
  })(c);
6409
- if (g) z.once(B.SurveyAppeared, qt), tr({ ...g, studyType: "feedbackButton" }, r);
6402
+ if (g) z.once(B.SurveyAppeared, Jt), tr({ ...g, studyType: "feedbackButton" }, r);
6410
6403
  else if (X) {
6411
- const b = Hf();
6412
- X.appendChild(b), qt(), X.style.height = "300px", X.style.width = "360px";
6404
+ const b = Vf();
6405
+ X.appendChild(b), Jt(), X.style.height = "300px", X.style.width = "360px";
6413
6406
  }
6414
6407
  }), d == null || d.appendChild(je), z.emit(B.FeedbackButtonLoaded, { name: B.FeedbackButtonLoaded, "survey.id": u });
6415
6408
  const { useMobileStyling: p, _config: { border: I } } = window.UserLeap;
@@ -6420,8 +6413,8 @@ const Vf = ["bottom-left", "bottom-right", "center-left", "center-right"], Cn =
6420
6413
  const g = hu();
6421
6414
  kn(-g);
6422
6415
  }
6423
- window.UserLeap._config.isOnQuestionsTab && t && !Cn() && X && (Ka(), di(), X && X.classList.add("sprig-feedback-loading-container-previews"), tr(t), qt());
6424
- }, Hf = () => {
6416
+ window.UserLeap._config.isOnQuestionsTab && t && !Cn() && X && (Ka(), di(), X && X.classList.add("sprig-feedback-loading-container-previews"), tr(t), Jt());
6417
+ }, Vf = () => {
6425
6418
  var r;
6426
6419
  const e = document.createElement("div");
6427
6420
  e.id = "sprig-feedback-error-container", e.innerHTML = eo(`<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40" fill="none">
@@ -6545,13 +6538,13 @@ class Gf {
6545
6538
  }
6546
6539
  }
6547
6540
  let fu = !0, hi = !1;
6548
- const $f = ["sdk_event_queue_latency_seconds", "sdk_replay_add_event_batch_seconds", "sdk_replay_cleanup_seconds", "sdk_replay_compression_seconds", "sdk_replay_get_events_between_seconds", "sdk_replay_snapshot_seconds", "sdk_mutations_nodes_added", "sdk_mutations_nodes_removed", "sdk_mutations_attributes_changed", "sdk_mutations_character_data", "sdk_dom_nodes_count", "sdk_page_html_characters"];
6541
+ const Hf = ["sdk_event_queue_latency_seconds", "sdk_replay_add_event_batch_seconds", "sdk_replay_cleanup_seconds", "sdk_replay_compression_seconds", "sdk_replay_get_events_between_seconds", "sdk_replay_snapshot_seconds", "sdk_mutations_nodes_added", "sdk_mutations_nodes_removed", "sdk_mutations_attributes_changed", "sdk_mutations_character_data", "sdk_dom_nodes_count", "sdk_page_html_characters"];
6549
6542
  let mi, Zt = {};
6550
- class Yf {
6543
+ class $f {
6551
6544
  constructor(t) {
6552
6545
  de(this, "_values", []);
6553
6546
  de(this, "_isWebMetric");
6554
- this.name = t, this._isWebMetric = $f.includes(this.name);
6547
+ this.name = t, this._isWebMetric = Hf.includes(this.name);
6555
6548
  }
6556
6549
  report(t) {
6557
6550
  if (fu && this._values.push({ time: Date.now(), value: t }), hi || !this._isWebMetric) return;
@@ -6571,12 +6564,12 @@ class Yf {
6571
6564
  }
6572
6565
  }
6573
6566
  const wr = {}, Ve = (e) => {
6574
- const t = new Yf(e);
6567
+ const t = new $f(e);
6575
6568
  return wr[e] = t, t;
6576
6569
  }, gu = (e, t) => {
6577
6570
  let r = wr[e];
6578
6571
  return r || (r = Ve(e)), r.report(t);
6579
- }, Jf = ({ reportingIntervalSeconds: e, postMetrics: t }) => {
6572
+ }, Yf = ({ reportingIntervalSeconds: e, postMetrics: t }) => {
6580
6573
  e ? setInterval(() => {
6581
6574
  (async (r) => {
6582
6575
  const n = Object.values(wr).map((s) => ({ name: s.name, values: s.collect() }));
@@ -6625,11 +6618,11 @@ const Yr = (e, t = 1) => {
6625
6618
  case "characterData":
6626
6619
  return void Yr(Ln);
6627
6620
  }
6628
- }, Zf = (e) => e.forEach(qf), Kf = () => {
6621
+ }, Jf = (e) => e.forEach(qf), Zf = () => {
6629
6622
  En.report(ht[En.name] || 0), xn.report(ht[xn.name] || 0), Rn.report(ht[Rn.name] || 0), Ln.report(ht[Ln.name] || 0), ht = {};
6630
- }, Xf = (e = 1e3) => {
6631
- En = Ve("sdk_mutations_nodes_added"), xn = Ve("sdk_mutations_nodes_removed"), Rn = Ve("sdk_mutations_attributes_changed"), Ln = Ve("sdk_mutations_character_data"), Qa = new MutationObserver(Zf), Qa.observe(document, { attributes: !0, attributeOldValue: !0, characterData: !0, characterDataOldValue: !0, childList: !0, subtree: !0 }), setInterval(Kf, e);
6632
- }, Qf = ({ isWeb: e, reportingIntervalSeconds: t, thresholds: r, postMetrics: n }) => {
6623
+ }, Kf = (e = 1e3) => {
6624
+ En = Ve("sdk_mutations_nodes_added"), xn = Ve("sdk_mutations_nodes_removed"), Rn = Ve("sdk_mutations_attributes_changed"), Ln = Ve("sdk_mutations_character_data"), Qa = new MutationObserver(Jf), Qa.observe(document, { attributes: !0, attributeOldValue: !0, characterData: !0, characterDataOldValue: !0, childList: !0, subtree: !0 }), setInterval(Zf, e);
6625
+ }, Xf = ({ isWeb: e, reportingIntervalSeconds: t, thresholds: r, postMetrics: n }) => {
6633
6626
  ((s, i) => {
6634
6627
  Zt = {}, hi = !1, s == null || s.forEach((a) => {
6635
6628
  var o;
@@ -6641,13 +6634,13 @@ const Yr = (e, t = 1) => {
6641
6634
  const l = `Value: ${s} on ${i.metric} violated threshold of ${i.type} ${i.value}`;
6642
6635
  (o = re.replay) == null || o.disableRecording("Threshold violated", new Error(l), { reportError: !1 }), window.UserLeap.reportError("Sdk Performance Metric threshold violated", new Error("Sdk Performance Metric threshold violated"), { metricName: i.metric, type: i.type, value: i.value }, { metricName: i.metric }), hi = !0;
6643
6636
  }
6644
- }), Jf({ reportingIntervalSeconds: t, postMetrics: n }), e && (((s = 1e3) => {
6637
+ }), Yf({ reportingIntervalSeconds: t, postMetrics: n }), e && (((s = 1e3) => {
6645
6638
  const i = Ve("sdk_event_queue_latency_seconds");
6646
6639
  gi(s, i);
6647
6640
  })(), ((s = 1e4) => {
6648
6641
  yu = Ve("sdk_dom_nodes_count"), wu = Ve("sdk_page_html_characters"), Xa(), setInterval(Xa, s);
6649
- })(), Xf());
6650
- }, eg = "test", tg = ["popState", "pushState", "replaceState"];
6642
+ })(), Kf());
6643
+ }, Qf = "test", eg = ["popState", "pushState", "replaceState"];
6651
6644
  let so, nr;
6652
6645
  const On = {}, Vt = "!email", bu = "pageUrl";
6653
6646
  let gs = window.location.href;
@@ -6657,25 +6650,25 @@ function sr(e) {
6657
6650
  if (s && s !== "web") return;
6658
6651
  gs !== window.location.href && N.navigation("LocationChange", { from: gs, to: window.location.href }), gs = window.location.href;
6659
6652
  const i = Cu().trackStartUrl, a = i ? String(i) : null;
6660
- t && Eu(window.location.href), r && (Iu(), rg()), uu() && (() => {
6653
+ t && Eu(window.location.href), r && (Iu(), tg()), uu() && (() => {
6661
6654
  if (Cn()) return;
6662
6655
  const c = Lt();
6663
6656
  c && (cu(rr) || (c.remove(), rr = null, X = null));
6664
6657
  })(), ue.getItem("sprig.isCapturingHeatmap") && ((l = (o = re.replay) == null ? void 0 : o.checkPendingHeatmapsUrl()) == null || l.then((c) => {
6665
6658
  var u;
6666
6659
  c && ((u = re.replay) == null || u.uploadReadyPendingCaptures(!0));
6667
- })), !Cn() && n && a && a !== window.location.href && e && tg.includes(e.type) && window.UserLeap("dismissActiveSurvey", Be.PageChange);
6660
+ })), !Cn() && n && a && a !== window.location.href && e && eg.includes(e.type) && window.UserLeap("dismissActiveSurvey", Be.PageChange);
6668
6661
  }
6669
- const Su = { capture: !0 }, rg = () => {
6662
+ const Su = { capture: !0 }, tg = () => {
6670
6663
  const e = window.UserLeap._config.interactiveEvents.filter((r) => ro(r, window.location.href)).map((r) => {
6671
6664
  const { name: n, properties: s } = r, { selector: i, innerText: a } = s;
6672
6665
  return i ? (o) => {
6673
- if (Ja(o.target)) try {
6666
+ if (qa(o.target)) try {
6674
6667
  o.target.closest(i) && window.UserLeap("track", n);
6675
6668
  } catch {
6676
6669
  }
6677
6670
  return !1;
6678
- } : (o) => (Ja(o.target) && o.target.innerText === a && window.UserLeap("track", n), !1);
6671
+ } : (o) => (qa(o.target) && o.target.innerText === a && window.UserLeap("track", n), !1);
6679
6672
  }), t = (r) => e.forEach((n) => n(r));
6680
6673
  window.UserLeap._config.interactiveEventsHandler = t, window.addEventListener("click", t, Su);
6681
6674
  }, Iu = () => {
@@ -6708,7 +6701,7 @@ function Eu(e, t, r, n) {
6708
6701
  a instanceof Error && (a.stack = e, window.UserLeap.reportError("trackPageView", a)), console.warn("[Sprig] (ERR-428) Failed to track page view", a);
6709
6702
  }
6710
6703
  }
6711
- function ng() {
6704
+ function rg() {
6712
6705
  const e = "Backbone" in window && window.Backbone && window.Backbone.history ? window.Backbone.history : window.history;
6713
6706
  "pushState" in e && (e.pushState = /* @__PURE__ */ ((t) => function(...r) {
6714
6707
  const n = t.apply(this, r), s = new Event("pushState");
@@ -6720,8 +6713,8 @@ function ng() {
6720
6713
  }
6721
6714
  async function ys(e, t) {
6722
6715
  const r = Qi();
6723
- e && !t && (window.UserLeap._config.mode = eg);
6724
- const n = Jn(Te(window.UserLeap)), s = await ze(function(i) {
6716
+ e && !t && (window.UserLeap._config.mode = Qf);
6717
+ const n = qn(Te(window.UserLeap)), s = await ze(function(i) {
6725
6718
  const a = new URL(Me("1", [ot], "questions"));
6726
6719
  return Object.entries(i || {}).forEach(([o, l]) => {
6727
6720
  l && a.searchParams.append(o, String(l));
@@ -6734,7 +6727,7 @@ async function ys(e, t) {
6734
6727
  mu({ customStyles: l, buttonTheme: c, desktopDisplay: d, eventId: 0, feedbackLabel: i, placement: u, surveyUuid: o, surveyId: e == null ? void 0 : e.surveyId }, s.json);
6735
6728
  }
6736
6729
  }
6737
- function sg(e) {
6730
+ function ng(e) {
6738
6731
  if (!e) return;
6739
6732
  window.UserLeap._config = e, e.mute && window.UserLeap._queue.pause();
6740
6733
  const { interactiveEvents: t, pageUrlEvents: r, dismissOnPageChange: n } = e;
@@ -6746,9 +6739,9 @@ function sg(e) {
6746
6739
  const o = s[i];
6747
6740
  s[i] = s[a], s[a] = o;
6748
6741
  }
6749
- }(t), (t || r || n) && (ng(), sr());
6742
+ }(t), (t || r || n) && (rg(), sr());
6750
6743
  }
6751
- const ig = function(e) {
6744
+ const sg = function(e) {
6752
6745
  if (!window.UserLeap) return;
6753
6746
  const t = async (s = {}) => {
6754
6747
  var m, g, b, C, A;
@@ -6887,10 +6880,10 @@ const ig = function(e) {
6887
6880
  var h, f;
6888
6881
  const a = typeof s == "string" ? parseInt(s, 10) : s, o = typeof i == "string" ? parseInt(i, 10) : i;
6889
6882
  isNaN(a) || isNaN(o) || (window.UserLeap.windowDimensions = { width: a, height: o });
6890
- const l = Te(window.UserLeap), c = Jn(l), u = l["userleap-platform"] === "web";
6883
+ const l = Te(window.UserLeap), c = qn(l), u = l["userleap-platform"] === "web";
6891
6884
  if (!window.UserLeap.frameId) return;
6892
6885
  const d = document.getElementById(window.UserLeap.frameId);
6893
- d && (window.UserLeap.useMobileStyling && ((h = window.UserLeap.windowDimensions) != null && h.width && (d.style.width = `${window.UserLeap.windowDimensions.width}px`), (f = window.UserLeap.windowDimensions) != null && f.height && (d.style.maxHeight = window.UserLeap.windowDimensions.height - 20 + "px"), d.contentDocument && (d.style.height = String(Wf(d.contentDocument, u && !c, eu(l))[0]) + "px")), z.emit(B.SurveyDimensions, { name: B.SurveyDimensions, contentFrameWidth: d.clientWidth, contentFrameHeight: d.clientHeight, "survey.id": parseInt(window.UserLeap.container.dataset.studyId) }));
6886
+ d && (window.UserLeap.useMobileStyling && ((h = window.UserLeap.windowDimensions) != null && h.width && (d.style.width = `${window.UserLeap.windowDimensions.width}px`), (f = window.UserLeap.windowDimensions) != null && f.height && (d.style.maxHeight = window.UserLeap.windowDimensions.height - 20 + "px"), d.contentDocument && (d.style.height = String(jf(d.contentDocument, u && !c, eu(l))[0]) + "px")), z.emit(B.SurveyDimensions, { name: B.SurveyDimensions, contentFrameWidth: d.clientWidth, contentFrameHeight: d.clientHeight, "survey.id": parseInt(window.UserLeap.container.dataset.studyId) }));
6894
6887
  }, logoutUser() {
6895
6888
  var s;
6896
6889
  window.UserLeap.debugMode && console.info("[DEBUG] Sprig logout"), N.info("LogOut", { vid: window.UserLeap.visitorId, userId: window.UserLeap.userId }), window.UserLeap.visitorId = null, window.UserLeap.userId = null, window.UserLeap.partnerAnonymousId = null, window.UserLeap.token = null, window.UserLeap.email = null, ke.removeItem("userleap.ids"), window.UserLeap._queue.isPaused() && window.UserLeap._queue.empty(), ku(), (s = re.replay) == null || s.clearUserReplayData(), window.UserLeap._queue.unpause();
@@ -6943,18 +6936,18 @@ const ig = function(e) {
6943
6936
  } };
6944
6937
  Object.assign(window.UserLeap, n);
6945
6938
  };
6946
- async function og(e, t, r = {}, n = {}) {
6939
+ async function ig(e, t, r = {}, n = {}) {
6947
6940
  const s = window.__cfg && window.__cfg.mode, i = Qi(), a = window.UserLeap.envId, o = window.document.documentElement, l = { mode: s, screenWidth: window.screen.width, screenHeight: window.screen.height, clientWidth: o.clientWidth, clientHeight: o.clientHeight, location: nr ?? window.location.href, language: window.navigator.language, ...r }, c = { action: e, breadcrumbs: N.breadcrumbs, err: { message: `${t == null ? void 0 : t.name} - ${t == null ? void 0 : t.message}`, stack: t == null ? void 0 : t.stack }, meta: l, vid: i, envId: a, ...n };
6948
6941
  (await ze(Me("1", null, "errors"), { method: "POST", headers: { "x-ul-error": window.btoa(`userleap-${Date.now()}-error`) }, body: JSON.stringify(c), shouldDropOnRateLimit: !0 })).ok || console.warn("[Sprig] (ERR-444) Failed to report error to API", t);
6949
6942
  }
6950
- function ag(e = {}) {
6943
+ function og(e = {}) {
6951
6944
  var n;
6952
6945
  (n = window.SprigLoggerCallback) == null || n.call(window, "Initializing Sprig");
6953
6946
  const t = new URLSearchParams(window.location.search).get("sprigPreviewKey") ?? "";
6954
6947
  async function r() {
6955
6948
  var d, h, f, v, p;
6956
6949
  if (window.UserLeap.loaded) return;
6957
- if ((d = window.SprigLoggerCallback) == null || d.call(window, "Loading Sprig"), window.UserLeap.reportError = og, window.UserLeap.loaded = !0, window.UserLeap._config = Object.assign({}, e, window.UserLeap.config), window.UserLeap.delayingSurvey = !1, window.UserLeap._config && typeof window.UserLeap._config == "object") for (const I in window.UserLeap._config) window.UserLeap[I] = window.UserLeap._config[I];
6950
+ if ((d = window.SprigLoggerCallback) == null || d.call(window, "Loading Sprig"), window.UserLeap.reportError = ig, window.UserLeap.loaded = !0, window.UserLeap._config = Object.assign({}, e, window.UserLeap.config), window.UserLeap.delayingSurvey = !1, window.UserLeap._config && typeof window.UserLeap._config == "object") for (const I in window.UserLeap._config) window.UserLeap[I] = window.UserLeap._config[I];
6958
6951
  if (window.Sprig.outstandingTransactionLimit !== void 0 && (e.outstandingTransactionLimit = window.Sprig.outstandingTransactionLimit), !window.UserLeap.envId) {
6959
6952
  if (!window.UserLeap.appId) throw new Error("Missing Environment id");
6960
6953
  window.UserLeap.envId = window.UserLeap.appId;
@@ -6977,19 +6970,19 @@ function ag(e = {}) {
6977
6970
  var C, A;
6978
6971
  const m = Te(window.UserLeap);
6979
6972
  document.addEventListener("securitypolicyviolation", Va);
6980
- const g = await Qe(Me("1", [ot], "config"), { headers: m });
6973
+ const g = await Xe(Me("1", [ot], "config"), { headers: m });
6981
6974
  if (document.removeEventListener("securitypolicyviolation", Va), !g.ok) return (C = window.SprigLoggerCallback) == null || C.call(window, "Sprig config fetch failed"), g.reportError && (console.warn("[Sprig] (ERR-422) Failed to load configuration", g.error), g.error && window.UserLeap.reportError("applyRemoteConfig", g.error)), ci("Disabled: failed to fetch configuration"), I;
6982
6975
  const b = g.json;
6983
6976
  return b != null && b.disabled ? ((A = window.SprigLoggerCallback) == null || A.call(window, "Sprig config fetch disabled"), ci(`Disabled: ${b.disabled}`), { disabled: b.disabled }) : Object.assign({}, b, I);
6984
6977
  }(e);
6985
- if ((f = window.SprigLoggerCallback) == null || f.call(window, "Sprig fetched config"), Qf({ isWeb: !c, reportingIntervalSeconds: u.metricsReportingEnabled || u.mobileMetricsReportingEnabled ? u.metricsReportingIntervalSeconds : 0, thresholds: u.metricThresholds, postMetrics: async (I) => {
6978
+ if ((f = window.SprigLoggerCallback) == null || f.call(window, "Sprig fetched config"), Xf({ isWeb: !c, reportingIntervalSeconds: u.metricsReportingEnabled || u.mobileMetricsReportingEnabled ? u.metricsReportingIntervalSeconds : 0, thresholds: u.metricThresholds, postMetrics: async (I) => {
6986
6979
  var m;
6987
6980
  await ze(Me("1", [ot], "metrics"), { body: I, method: "POST", headers: { "x-ul-replay-enabled": `${!!((m = re.replay) != null && m.isReplayRecording())}` }, shouldDropOnRateLimit: !0 });
6988
6981
  } }), !c) {
6989
- const I = u.alwaysOnReplay ? { userAgent: window.navigator.userAgent, surveyId: u.alwaysOnReplay.surveyId, responseGroupUuid: u.alwaysOnReplay.responseGroupUuid, sdkVersion: "2.40.0", maxDurationSeconds: u.alwaysOnReplay.maxDurationSeconds } : void 0;
6982
+ const I = u.alwaysOnReplay ? { userAgent: window.navigator.userAgent, surveyId: u.alwaysOnReplay.surveyId, responseGroupUuid: u.alwaysOnReplay.responseGroupUuid, sdkVersion: "2.40.1", maxDurationSeconds: u.alwaysOnReplay.maxDurationSeconds } : void 0;
6990
6983
  await ((v = re.replay) == null ? void 0 : v.initializeReplay({ maxReplayDurationSeconds: u.maxReplayDurationSeconds, maxInflightRequests: window.UserLeap.maxInflightReplayRequests ?? 2, replaySettings: u.replaySettings, apiUrl: window.UserLeap._API_URL, alwaysOnConfig: I })), so = u.replaySettings;
6991
6984
  }
6992
- ig(u), await sg(u), window.UserLeap._queue.unpause(), (p = window.SprigLoggerCallback) == null || p.call(window, "SdkReady"), z.emit(B.SDKReady, { mobileMetricsReportingEnabled: !!u.mobileMetricsReportingEnabled, metricsReportingInterval: u.metricsReportingIntervalSeconds || 0, metricsThresholds: u.metricThresholds || [], maxMobileReplayDurationSeconds: u.maxMobileReplayDurationSeconds, mobileReplaySettings: u.mobileReplaySettings }), z.emit(B.VisitorIDUpdated, { visitorId: window.UserLeap.visitorId }), z.on(B.VisitorIDUpdated, () => {
6985
+ sg(u), await ng(u), window.UserLeap._queue.unpause(), (p = window.SprigLoggerCallback) == null || p.call(window, "SdkReady"), z.emit(B.SDKReady, { mobileMetricsReportingEnabled: !!u.mobileMetricsReportingEnabled, metricsReportingInterval: u.metricsReportingIntervalSeconds || 0, metricsThresholds: u.metricThresholds || [], maxMobileReplayDurationSeconds: u.maxMobileReplayDurationSeconds, mobileReplaySettings: u.mobileReplaySettings }), z.emit(B.VisitorIDUpdated, { visitorId: window.UserLeap.visitorId }), z.on(B.VisitorIDUpdated, () => {
6993
6986
  for (const I in On) delete On[I];
6994
6987
  });
6995
6988
  }
@@ -7080,7 +7073,7 @@ const ey = { configure: (e) => {
7080
7073
  r !== "constructor" && (window.Sprig[r] = tl.prototype[r]);
7081
7074
  });
7082
7075
  const t = window.Sprig;
7083
- return t.appId = e.envId, t._queue = [], window.UserLeap = t, ag(e), window.Sprig;
7076
+ return t.appId = e.envId, t._queue = [], window.UserLeap = t, og(e), window.Sprig;
7084
7077
  } };
7085
7078
  var at = ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e))(at || {}), $e = ((e) => (e[e.Mutation = 0] = "Mutation", e[e.MouseMove = 1] = "MouseMove", e[e.MouseInteraction = 2] = "MouseInteraction", e[e.Scroll = 3] = "Scroll", e[e.ViewportResize = 4] = "ViewportResize", e[e.Input = 5] = "Input", e[e.TouchMove = 6] = "TouchMove", e[e.MediaInteraction = 7] = "MediaInteraction", e[e.StyleSheetRule = 8] = "StyleSheetRule", e[e.CanvasMutation = 9] = "CanvasMutation", e[e.Font = 10] = "Font", e[e.Log = 11] = "Log", e[e.Drag = 12] = "Drag", e[e.StyleDeclaration = 13] = "StyleDeclaration", e[e.Selection = 14] = "Selection", e[e.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e[e.CustomElement = 16] = "CustomElement", e))($e || {});
7086
7079
  const yi = (e, t) => t.some((r) => e instanceof r);
@@ -7096,15 +7089,15 @@ let vi = { get(e, t, r) {
7096
7089
  function xu(e) {
7097
7090
  vi = e(vi);
7098
7091
  }
7099
- function lg(e) {
7092
+ function ag(e) {
7100
7093
  return (nl || (nl = [IDBCursor.prototype.advance, IDBCursor.prototype.continue, IDBCursor.prototype.continuePrimaryKey])).includes(e) ? function(...t) {
7101
7094
  return e.apply(bi(this), t), lt(this.request);
7102
7095
  } : function(...t) {
7103
7096
  return lt(e.apply(bi(this), t));
7104
7097
  };
7105
7098
  }
7106
- function cg(e) {
7107
- return typeof e == "function" ? lg(e) : (e instanceof IDBTransaction && function(t) {
7099
+ function lg(e) {
7100
+ return typeof e == "function" ? ag(e) : (e instanceof IDBTransaction && function(t) {
7108
7101
  if (wi.has(t)) return;
7109
7102
  const r = new Promise((n, s) => {
7110
7103
  const i = () => {
@@ -7129,7 +7122,7 @@ function lt(e) {
7129
7122
  return An.set(n, r), n;
7130
7123
  }(e);
7131
7124
  if (ws.has(e)) return ws.get(e);
7132
- const t = cg(e);
7125
+ const t = lg(e);
7133
7126
  return t !== e && (ws.set(e, t), An.set(t, e)), t;
7134
7127
  }
7135
7128
  const bi = (e) => An.get(e);
@@ -7138,12 +7131,12 @@ function Si(e, { blocked: t } = {}) {
7138
7131
  return t && (r.onblocked = (n) => t(n.oldVersion, n)), lt(r).then(() => {
7139
7132
  });
7140
7133
  }
7141
- const ug = ["get", "getKey", "getAll", "getAllKeys", "count"], dg = ["put", "add", "delete", "clear"], vs = /* @__PURE__ */ new Map();
7134
+ const cg = ["get", "getKey", "getAll", "getAllKeys", "count"], ug = ["put", "add", "delete", "clear"], vs = /* @__PURE__ */ new Map();
7142
7135
  function sl(e, t) {
7143
7136
  if (!(e instanceof IDBDatabase) || t in e || typeof t != "string") return;
7144
7137
  if (vs.get(t)) return vs.get(t);
7145
- const r = t.replace(/FromIndex$/, ""), n = t !== r, s = dg.includes(r);
7146
- if (!(r in (n ? IDBIndex : IDBObjectStore).prototype) || !s && !ug.includes(r)) return;
7138
+ const r = t.replace(/FromIndex$/, ""), n = t !== r, s = ug.includes(r);
7139
+ if (!(r in (n ? IDBIndex : IDBObjectStore).prototype) || !s && !cg.includes(r)) return;
7147
7140
  const i = async function(a, ...o) {
7148
7141
  const l = this.transaction(a, s ? "readwrite" : "readonly");
7149
7142
  let c = l.store;
@@ -7152,24 +7145,24 @@ function sl(e, t) {
7152
7145
  return vs.set(t, i), i;
7153
7146
  }
7154
7147
  xu((e) => ({ ...e, get: (t, r, n) => sl(t, r) || e.get(t, r, n), has: (t, r) => !!sl(t, r) || e.has(t, r) }));
7155
- const pg = ["continue", "continuePrimaryKey", "advance"], il = {}, Ii = /* @__PURE__ */ new WeakMap(), Ru = /* @__PURE__ */ new WeakMap(), hg = { get(e, t) {
7156
- if (!pg.includes(t)) return e[t];
7148
+ const dg = ["continue", "continuePrimaryKey", "advance"], il = {}, Ii = /* @__PURE__ */ new WeakMap(), Ru = /* @__PURE__ */ new WeakMap(), pg = { get(e, t) {
7149
+ if (!dg.includes(t)) return e[t];
7157
7150
  let r = il[t];
7158
7151
  return r || (r = il[t] = function(...n) {
7159
7152
  Ii.set(this, Ru.get(this)[t](...n));
7160
7153
  }), r;
7161
7154
  } };
7162
- async function* mg(...e) {
7155
+ async function* hg(...e) {
7163
7156
  let t = this;
7164
7157
  if (t instanceof IDBCursor || (t = await t.openCursor(...e)), !t) return;
7165
- const r = new Proxy(t, hg);
7158
+ const r = new Proxy(t, pg);
7166
7159
  for (Ru.set(r, t), An.set(r, bi(t)); t; ) yield r, t = await (Ii.get(r) || t.continue()), Ii.delete(r);
7167
7160
  }
7168
7161
  function ol(e, t) {
7169
7162
  return t === Symbol.asyncIterator && yi(e, [IDBIndex, IDBObjectStore, IDBCursor]) || t === "iterate" && yi(e, [IDBIndex, IDBObjectStore]);
7170
7163
  }
7171
- xu((e) => ({ ...e, get: (t, r, n) => ol(t, r) ? mg : e.get(t, r, n), has: (t, r) => ol(t, r) || e.has(t, r) }));
7172
- const fg = "sprigReplayIframeLoaded", gg = "sprigReplayIframeSettings", yg = "sprigReplayIframeTakeFullSnapshot", wg = "sprigReplayTeardown", io = [], Lu = new class {
7164
+ xu((e) => ({ ...e, get: (t, r, n) => ol(t, r) ? hg : e.get(t, r, n), has: (t, r) => ol(t, r) || e.has(t, r) }));
7165
+ const mg = "sprigReplayIframeLoaded", fg = "sprigReplayIframeSettings", gg = "sprigReplayIframeTakeFullSnapshot", yg = "sprigReplayTeardown", io = [], Lu = new class {
7173
7166
  constructor(e) {
7174
7167
  de(this, "awaitingResolvers", []);
7175
7168
  de(this, "activeCount", 0);
@@ -7199,9 +7192,9 @@ const fg = "sprigReplayIframeLoaded", gg = "sprigReplayIframeSettings", yg = "sp
7199
7192
  var u;
7200
7193
  if (!l && !r && !n) return void N.error("UploadErr", { isMobile: l, uploadId: r, etags: n });
7201
7194
  N.info("MarkUploadComplete", { surveyId: t });
7202
- const c = await Qe(`${e}/sdk/1/completeSessionReplay`, { method: "POST", body: JSON.stringify({ etags: n, uploadId: r, responseGroupUuid: i, surveyId: t, replayDuration: a, eventDigest: o, userAgent: (u = window == null ? void 0 : window.navigator) == null ? void 0 : u.userAgent }), headers: s, shouldRetryRequest: !0 });
7195
+ const c = await Xe(`${e}/sdk/1/completeSessionReplay`, { method: "POST", body: JSON.stringify({ etags: n, uploadId: r, responseGroupUuid: i, surveyId: t, replayDuration: a, eventDigest: o, userAgent: (u = window == null ? void 0 : window.navigator) == null ? void 0 : u.userAgent }), headers: s, shouldRetryRequest: !0 });
7203
7196
  return N.info("MarkUploadDone", { surveyId: t }), c;
7204
- }, vg = (e) => {
7197
+ }, wg = (e) => {
7205
7198
  if (e instanceof Attr) return null;
7206
7199
  let t = 1;
7207
7200
  for (let r = e.previousSibling; r; r = r.previousSibling) r.nodeName === e.nodeName && ++t;
@@ -7228,10 +7221,15 @@ const fg = "sprigReplayIframeLoaded", gg = "sprigReplayIframeSettings", yg = "sp
7228
7221
  case Node.ELEMENT_NODE:
7229
7222
  n.name = r.nodeName;
7230
7223
  }
7231
- n.position = vg(r);
7224
+ n.position = wg(r);
7232
7225
  }
7233
7226
  return "/" + t.reverse().map((r) => r.position !== null ? `/${r.name}[${r.position}]` : `/${r.name}`).join("");
7234
- }, oo = (e) => e && e.trim().substring(0, 500).replace(/\s\s+/g, " ").replace(/\r?\n|\r/g, " ").substring(0, 250), We = { capture: !0, passive: !0 }, bg = ["a", "button", "input", "option", "li", "link"], Sg = ["Escape", "Enter", "Backspace", "F5", "Tab"];
7227
+ }, oo = (e) => e && e.trim().substring(0, 500).replace(/\s\s+/g, " ").replace(/\r?\n|\r/g, " ").substring(0, 250), vg = (e, t) => {
7228
+ let r;
7229
+ return (n) => {
7230
+ clearTimeout(r), r = window.setTimeout(() => e(n), t);
7231
+ };
7232
+ }, We = { capture: !0, passive: !0 }, bg = ["a", "button", "input", "option", "li", "link"], Sg = ["Escape", "Enter", "Backspace", "F5", "Tab"];
7235
7233
  let Mn = !1, xe = null, pn = null;
7236
7234
  const al = (e) => {
7237
7235
  var r;
@@ -7265,12 +7263,7 @@ const al = (e) => {
7265
7263
  }, kg = () => {
7266
7264
  var e;
7267
7265
  window.performance.getEntriesByType("navigation").map((t) => t.type).includes("back_forward") && ((e = { curUrl: window.location.href, fromUrl: document.referrer, currentPageTitle: document.title }).currentPageTitle && (e.currentPageTitle = oo(e.currentPageTitle)), xe == null || xe("Sprig_BackForward", e));
7268
- }, Tu = /* @__PURE__ */ ((e, t) => {
7269
- let r;
7270
- return (n) => {
7271
- clearTimeout(r), r = window.setTimeout(() => e(n), t);
7272
- };
7273
- })((e) => {
7266
+ }, Tu = vg((e) => {
7274
7267
  if (!(e.target instanceof HTMLElement || e.target instanceof Document)) return;
7275
7268
  let t = e.target;
7276
7269
  "scrollTop" in t || (t = t.documentElement), pn == null || pn({ xPath: Au(t), x: t.scrollLeft, y: t.scrollTop, elementAttributes: { targetScrollWidth: t.scrollWidth, targetClientWidth: t.clientWidth, targetScrollHeight: t.scrollHeight, targetClientHeight: t.clientHeight } });
@@ -7288,13 +7281,13 @@ const Pu = (e) => {
7288
7281
  return N.info("GeneratedSessionID", { uuid: t }), t;
7289
7282
  })(), Ci = () => {
7290
7283
  ue.setItem("sprig.disableReplayRecording", "disabled");
7291
- }, He = () => !!ue.getItem("sprig.disableReplayRecording"), Un = () => !!ue.getItem("sprig.isReplayPaused");
7284
+ }, Ge = () => !!ue.getItem("sprig.disableReplayRecording"), Un = () => !!ue.getItem("sprig.isReplayPaused");
7292
7285
  window.addEventListener("beforeunload", () => {
7293
7286
  N.info("BeforeUnload", { sessionId: be }), ue.setItem("sprig.sessionId", be);
7294
7287
  });
7295
- const Je = (e, t) => {
7288
+ const Ye = (e, t) => {
7296
7289
  var r, n;
7297
- if (!He() && pe.isRecording && !Un()) try {
7290
+ if (!Ge() && pe.isRecording && !Un()) try {
7298
7291
  (n = (r = window.rrwebRecord) == null ? void 0 : r.addCustomEvent) == null || n.call(r, e, t);
7299
7292
  } catch (s) {
7300
7293
  vr("Error recording custom event", s);
@@ -7308,18 +7301,18 @@ const Je = (e, t) => {
7308
7301
  const d = JSON.parse(a.event), h = t > ((l = (o = d.data) == null ? void 0 : o.payload) == null ? void 0 : l.x), f = n > ((u = (c = d.data) == null ? void 0 : c.payload) == null ? void 0 : u.y);
7309
7302
  if (!h && !f) return null;
7310
7303
  h && (d.data.payload.x = t), f && (d.data.payload.y = n), d.data.payload.elementAttributes = e.elementAttributes, a.event = JSON.stringify(d), await i.put("events", a);
7311
- } else Je("Sprig_Scroll", e);
7304
+ } else Ye("Sprig_Scroll", e);
7312
7305
  }, "Error updating scroll event");
7313
- Je("Sprig_Scroll", e);
7306
+ Ye("Sprig_Scroll", e);
7314
7307
  }, Fu = () => {
7315
7308
  pe.stopRecording && (pe.stopRecording(), pe.stopRecording = void 0), pe.isRecording = !1, ["cleanupInterval", "inactivityInterval", "pendingCheckInterval"].forEach((e) => {
7316
7309
  pe[e] && (clearInterval(pe[e]), pe[e] = void 0);
7317
7310
  }), Mn && (window.removeEventListener("click", Du, We), window.removeEventListener("pointerdown", _u, We), window.removeEventListener("mousedown", Pu, We), window.removeEventListener("keydown", Uu, We), window.removeEventListener("scroll", Tu, We), Mn = !1), io.forEach((e) => {
7318
7311
  var t;
7319
- (t = e.source) == null || t.postMessage({ type: wg }, { targetOrigin: e.origin });
7312
+ (t = e.source) == null || t.postMessage({ type: yg }, { targetOrigin: e.origin });
7320
7313
  });
7321
7314
  }, xg = ["did not allow mutations", "called in an invalid security context"], Rg = (e, t, { reportError: r = !0, extraInfo: n = {} }) => {
7322
- if (!He() && t instanceof Error) {
7315
+ if (!Ge() && t instanceof Error) {
7323
7316
  if (Ci(), t.name === "VersionError") return N.error("VersionErr", { message: e }), void Q.deleteDB();
7324
7317
  ((s) => {
7325
7318
  if (!s) return !0;
@@ -7341,7 +7334,7 @@ const Je = (e, t) => {
7341
7334
  return (t = (e = window.rrwebRecord) == null ? void 0 : e.takeFullSnapshot) == null ? void 0 : t.call(e, !0);
7342
7335
  }, "Error recording full snapshot"), io.forEach((e) => {
7343
7336
  var t;
7344
- (t = e.source) == null || t.postMessage({ type: yg }, { targetOrigin: e.origin });
7337
+ (t = e.source) == null || t.postMessage({ type: gg }, { targetOrigin: e.origin });
7345
7338
  }));
7346
7339
  };
7347
7340
  let bs = 0;
@@ -7458,16 +7451,16 @@ const Q = new class {
7458
7451
  }
7459
7452
  await r.done;
7460
7453
  }
7461
- }(), Xe = [];
7454
+ }(), Ke = [];
7462
7455
  let br, Bu, gt = [], Dt = !1, Ut = 0, hn = !1, zu = !1;
7463
7456
  const ao = [];
7464
7457
  let Tn, ju, mn, Wu, Ss = !1;
7465
7458
  const Pt = () => hn && !Dt && Date.now() <= Tn, Lg = ({ apiUrl: e, config: t, triggerSnapshot: r, forceInit: n = !1 }) => {
7466
- hn && !n || (ue.isStorageAvailable ? (gt = [], ao.splice(0), Xe.splice(0), Ut = 0, mn = r, Bu = e, br = { responseGroupUuid: t.responseGroupUuid, surveyId: t.surveyId, userAgent: t.userAgent, sdkVersion: t.sdkVersion }, ju = t.maxDurationSeconds, Ug(), hn || (Wu = window.setInterval(Mg, 500)), hn = !0) : Dt = !0);
7459
+ hn && !n || (ue.isStorageAvailable ? (gt = [], ao.splice(0), Ke.splice(0), Ut = 0, mn = r, Bu = e, br = { responseGroupUuid: t.responseGroupUuid, surveyId: t.surveyId, userAgent: t.userAgent, sdkVersion: t.sdkVersion }, ju = t.maxDurationSeconds, Ug(), hn || (Wu = window.setInterval(Mg, 500)), hn = !0) : Dt = !0);
7467
7460
  }, Og = [$e.Drag, $e.Input, $e.MediaInteraction, $e.MouseInteraction, $e.MouseMove, $e.Scroll, $e.Selection, $e.TouchMove], Ag = (e) => e.type === at.Custom || e.type === at.IncrementalSnapshot && Og.includes(e.data.source), lo = (e) => e.some(Ag), Mg = async () => {
7468
7461
  if (!Pt()) return void window.clearInterval(Wu);
7469
- if (Vu(), !lo(Xe)) return;
7470
- const e = Xe[0].timestamp;
7462
+ if (Vu(), !lo(Ke)) return;
7463
+ const e = Ke[0].timestamp;
7471
7464
  Date.now() - e > 35e3 && (mn == null || mn());
7472
7465
  }, Vu = async () => {
7473
7466
  if (gt.length || Ss) return;
@@ -7487,8 +7480,8 @@ const Pt = () => hn && !Dt && Date.now() <= Tn, Lg = ({ apiUrl: e, config: t, tr
7487
7480
  if (!lo(r)) return;
7488
7481
  Yu(r);
7489
7482
  const n = await $u();
7490
- n && await Gu(n, r);
7491
- }, Hu = async (e, t) => {
7483
+ n && await Hu(n, r);
7484
+ }, Gu = async (e, t) => {
7492
7485
  try {
7493
7486
  const r = await e();
7494
7487
  if (!r.ok) throw new Error(`Error ${t}`);
@@ -7496,18 +7489,18 @@ const Pt = () => hn && !Dt && Date.now() <= Tn, Lg = ({ apiUrl: e, config: t, tr
7496
7489
  } catch {
7497
7490
  Dt = !0;
7498
7491
  }
7499
- }, Gu = async (e, t) => {
7492
+ }, Hu = async (e, t) => {
7500
7493
  if (!Pt() || !e) return;
7501
7494
  const r = await (async (n) => {
7502
7495
  const s = new TextEncoder(), i = new CompressionStream("gzip"), a = i.writable.getWriter(), o = s.encode(JSON.stringify(n));
7503
7496
  return a.write(o), a.close(), new Uint8Array(await new Response(i.readable).arrayBuffer());
7504
7497
  })(t);
7505
- N.info("Uploading always-on events with presigned url"), await Hu(() => Qe(e, { body: r, method: "PUT" }), "uploading always-on with presigned url");
7498
+ N.info("Uploading always-on events with presigned url"), await Gu(() => Xe(e, { body: r, method: "PUT" }), "uploading always-on with presigned url");
7506
7499
  }, Dg = async () => {
7507
7500
  if (!Pt()) return;
7508
7501
  const { surveyId: e, responseGroupUuid: t } = br, r = { responseGroupUuid: t, surveyId: e, index: Ut + 1 };
7509
7502
  N.info("Fetching always-on upload urls", r);
7510
- const n = await Hu(() => Qe(`${Bu}/sdk/1/replayUrls`, { method: "POST", body: JSON.stringify(r), headers: Te(window.UserLeap) }), "fetching always-on signed urls");
7503
+ const n = await Gu(() => Xe(`${Bu}/sdk/1/replayUrls`, { method: "POST", body: JSON.stringify(r), headers: Te(window.UserLeap) }), "fetching always-on signed urls");
7511
7504
  if (!n) return;
7512
7505
  const s = n.json.signedUrls;
7513
7506
  return N.info("Fetched more always-on upload urls", { body: r, urls: s }), s;
@@ -7522,23 +7515,23 @@ const Pt = () => hn && !Dt && Date.now() <= Tn, Lg = ({ apiUrl: e, config: t, tr
7522
7515
  const t = e.length ? e[e.length - 1].timestamp : Date.now(), r = Ut, n = ((i = (s = window.UserLeap) == null ? void 0 : s.config) == null ? void 0 : i.customMetadata) ?? ((a = window.__cfg) == null ? void 0 : a.customMetadata);
7523
7516
  Ut++, e.push({ timestamp: t, type: at.Custom, data: { tag: "Sprig_Meta", payload: { ...br, index: r, visitorId: window.UserLeap.visitorId ?? "", timestamp: t, customMetadata: n } } });
7524
7517
  }, Pg = (e, t) => {
7525
- Pt() && !zu && (e || Xe.length) && (e && Xe.length && (async () => {
7526
- const r = Xe.splice(0);
7518
+ Pt() && !zu && (e || Ke.length) && (e && Ke.length && (async () => {
7519
+ const r = Ke.splice(0);
7527
7520
  if (!lo(r)) return;
7528
7521
  N.info("Capturing always-on event array to upload"), Yu(r);
7529
7522
  const n = await $u();
7530
- n && await Gu(n, r);
7531
- })(), Xe.push(t));
7523
+ n && await Hu(n, r);
7524
+ })(), Ke.push(t));
7532
7525
  };
7533
7526
  window.addEventListener("beforeunload", async () => {
7534
7527
  zu = !0, Pt() && (N.info("Always On handle page unload"), (() => {
7535
7528
  let e;
7536
- Xe.length && (e = Xe[0].timestamp);
7529
+ Ke.length && (e = Ke[0].timestamp);
7537
7530
  const t = { disabled: Dt, metadata: br, uploadUrls: gt, currentIndex: Ut, pendingEventTimestamp: e, expirationTimestamp: Tn };
7538
7531
  N.info("Storing session state on unload", t), ue.setItem("sprig.alwayson.info", JSON.stringify(t));
7539
7532
  })());
7540
7533
  });
7541
- const Ju = async (e, t) => {
7534
+ const qu = async (e, t) => {
7542
7535
  const r = performance.now();
7543
7536
  let n;
7544
7537
  try {
@@ -7549,7 +7542,7 @@ const Ju = async (e, t) => {
7549
7542
  i || (i = Ve(t)), i.report(s / 1e3);
7550
7543
  }
7551
7544
  return n;
7552
- }, qu = (e, t) => {
7545
+ }, Ju = (e, t) => {
7553
7546
  const r = performance.now();
7554
7547
  try {
7555
7548
  e();
@@ -7570,9 +7563,9 @@ const _g = (e) => {
7570
7563
  Li.push(e), Ri || Ng();
7571
7564
  }, Ng = () => {
7572
7565
  Ri = !0, setTimeout(async () => {
7573
- if (He() || Un()) return;
7566
+ if (Ge() || Un()) return;
7574
7567
  const e = Li;
7575
- Li = [], Ri = !1, qu(async () => {
7568
+ Li = [], Ri = !1, Ju(async () => {
7576
7569
  await (async (t) => {
7577
7570
  const r = t.map((n) => ({ ...n, sessionId: n.sessionId ?? be }));
7578
7571
  if (r.length !== 0) return Ee(() => Q.bulkAdd("events", r), "Error storing replay events");
@@ -7582,8 +7575,8 @@ const _g = (e) => {
7582
7575
  }, Fg = (e, t, r) => {
7583
7576
  pe.cleanupInterval = window.setInterval(() => {
7584
7577
  const n = Date.now();
7585
- Ju(() => Ee(async () => {
7586
- He() || await Promise.all([Q.deleteRowsBefore("events", n - 1e3 * e, (s) => s.expiredAt === void 0 || s.expiredAt < n - 1e3 * e), Q.deleteRowsBefore("chunkUploads", n - 1e3 * t), Q.deleteRowsBefore("pendingCaptures", n - 1e3 * r, (s) => !s.canUpload)]);
7578
+ qu(() => Ee(async () => {
7579
+ Ge() || await Promise.all([Q.deleteRowsBefore("events", n - 1e3 * e, (s) => s.expiredAt === void 0 || s.expiredAt < n - 1e3 * e), Q.deleteRowsBefore("chunkUploads", n - 1e3 * t), Q.deleteRowsBefore("pendingCaptures", n - 1e3 * r, (s) => !s.canUpload)]);
7587
7580
  }, "Error deleting table rows"), "sdk_replay_cleanup_seconds"), N.debug("CleanupComplete");
7588
7581
  }, 3e4);
7589
7582
  }, Bg = () => {
@@ -7605,7 +7598,7 @@ const Oi = async (e = !1) => {
7605
7598
  Is = !1;
7606
7599
  }
7607
7600
  }, zg = async (e, t, r, n, s) => {
7608
- const i = Math.min(e + s, r), a = await Ju(() => Q.getEventsBetween(e, i), "sdk_replay_get_events_between_seconds");
7601
+ const i = Math.min(e + s, r), a = await qu(() => Q.getEventsBetween(e, i), "sdk_replay_get_events_between_seconds");
7609
7602
  if (!(a != null && a.length)) return N.debug("NoEventsFound"), { validStartFound: n, events: [] };
7610
7603
  if (!n) {
7611
7604
  N.debug("ValidStartSearch");
@@ -7621,7 +7614,7 @@ const Oi = async (e = !1) => {
7621
7614
  const r = await (async (n) => Lu.execute(async () => {
7622
7615
  var a;
7623
7616
  N.info("UploadChunkStart", { chunkIndex: n.chunkIndex, surveyId: n.surveyId });
7624
- const s = await Qe(n.uploadUrl, { body: n.data, method: "PUT" });
7617
+ const s = await Xe(n.uploadUrl, { body: n.data, method: "PUT" });
7625
7618
  N.http("UploadChunkEnd", { url: n.uploadUrl, method: "PUT", status_code: s.status, reason: s.statusText ?? "OK", chunkIndex: n.chunkIndex, surveyId: n.surveyId });
7626
7619
  const i = (a = s.headers) == null ? void 0 : a.get("ETag");
7627
7620
  if (!i) throw new Error(`Upload response did not include etag for upload ${n.uploadId}, part ${n.chunkIndex}`);
@@ -7660,7 +7653,7 @@ const Oi = async (e = !1) => {
7660
7653
  const I = f.map((b) => b.event);
7661
7654
  I.push(`{"timestamp":${s}}`);
7662
7655
  const m = `${c ? "," : "["}${I}`, g = i.encode(m);
7663
- qu(() => {
7656
+ Ju(() => {
7664
7657
  l.write(g);
7665
7658
  }, "sdk_replay_compression_seconds"), c = !0;
7666
7659
  }
@@ -7684,7 +7677,7 @@ const Oi = async (e = !1) => {
7684
7677
  await Ku(h), await Promise.all(d.map((f) => Xu(f)));
7685
7678
  })([a.uploadId], u);
7686
7679
  }, Qu = async (e, t) => {
7687
- if (He()) return N.debug("ReplayDisabled-ScheduleOrCapture");
7680
+ if (Ge()) return N.debug("ReplayDisabled-ScheduleOrCapture");
7688
7681
  const { isHeatmap: r, isStandalone: n, replayParams: s, triggerTimestamp: i, responseGroupId: a } = e, o = async () => {
7689
7682
  setTimeout(() => z.removeListener(B.QuestionAnswered, o), 0), Ee(async () => {
7690
7683
  s.replayDurationType === "before" ? await cl(e) : await Q.markPendingCaptureToCanUpload(a);
@@ -7701,10 +7694,10 @@ const Oi = async (e = !1) => {
7701
7694
  }, "Error in scheduling/capturing replay");
7702
7695
  }, Vg = async () => {
7703
7696
  parseInt(ct ?? "0") || ue.removeItem("sprig.isCapturingHeatmap"), ue.getItem("sprig.teardownAfterCapture") && (Fu(), ed(), ue.removeItem("sprig.teardownAfterCapture"));
7704
- }, ed = async () => He() ? N.debug("ReplayDisabled-ClearData") : Promise.all([Q.deleteBySessionId("events", be), Q.deleteBySessionId("pendingCaptures", be)]).catch((e) => {
7697
+ }, ed = async () => Ge() ? N.debug("ReplayDisabled-ClearData") : Promise.all([Q.deleteBySessionId("events", be), Q.deleteBySessionId("pendingCaptures", be)]).catch((e) => {
7705
7698
  vr("Error clearing user replay data", e);
7706
7699
  }), td = async (e) => {
7707
- if (He()) return;
7700
+ if (Ge()) return;
7708
7701
  const { isHeatmap: t, surveyId: r } = e, n = await Q.getPendingCaptures(), s = n == null ? void 0 : n.filter((l) => l.captureParams.surveyId === r);
7709
7702
  if (s != null && s.length) return void N.info("PendingCaptureExists", { surveyId: r });
7710
7703
  t && (ki(), ue.setItem("sprig.isCapturingHeatmap", "true"), xi = Date.now(), pe.inactivityInterval || (pe.inactivityInterval = window.setInterval(() => {
@@ -7715,24 +7708,24 @@ const Oi = async (e = !1) => {
7715
7708
  e.replayParams.replayDurationType === "beforeAndAfter" && (i.replayParams.replayDurationSeconds *= 2), i.replayParams.replayDurationType = "before";
7716
7709
  const a = e.triggerTimestamp + 1e3 * e.replayParams.replayDurationSeconds;
7717
7710
  i.triggerTimestamp = a, ct = (parseInt(ct ?? "0") + 1).toString(), ue.setItem("sprig.pendingCount", ct), await (await Q.openDB()).add("pendingCaptures", { canUpload: !1, captureParams: i, sessionId: be, targetTimestamp: a, timestamp: Date.now(), uuid: Tt() });
7718
- }, Hg = Object.freeze(Object.defineProperty({ __proto__: null, RecordEvent: (e) => {
7719
- Je("Sprig_TrackEvent", e);
7711
+ }, Gg = Object.freeze(Object.defineProperty({ __proto__: null, RecordEvent: (e) => {
7712
+ Ye("Sprig_TrackEvent", e);
7720
7713
  }, RecordPageView: (e) => {
7721
- e.description && (e.description = oo(e.description)), Je("Sprig_PageView", e);
7714
+ e.description && (e.description = oo(e.description)), Ye("Sprig_PageView", e);
7722
7715
  }, RecordSurveyShown: (e) => {
7723
- Je("Sprig_ShowSurvey", e);
7716
+ Ye("Sprig_ShowSurvey", e);
7724
7717
  }, _completeSessionReplay: async ({ surveyId: e, responseGroupUuid: t, eventDigest: r, headers: n }) => {
7725
7718
  if (!e || !t) return !1;
7726
7719
  const s = window.UserLeap._API_URL, i = await Ou({ surveyId: e, responseGroupUuid: t, eventDigest: r, apiUrl: s, headers: n }, !0);
7727
7720
  return !(i != null && i.error);
7728
- }, checkPendingHeatmapsUrl: () => He() ? N.debug("ReplayDisabled-PendingHeatmaps") : Ee(async () => {
7721
+ }, checkPendingHeatmapsUrl: () => Ge() ? N.debug("ReplayDisabled-PendingHeatmaps") : Ee(async () => {
7729
7722
  const e = (await Q.getPendingCaptures({ isHeatmap: !0 })).map((t) => ({ eventId: t.captureParams.eventId, uuid: t.uuid })).filter(({ eventId: t }) => !cu(t)).map(({ uuid: t }) => t);
7730
7723
  return N.info("PendingHeatmapsToComplete", { count: e.length }), e.length && (await Q.markPendingHeatmapsReady(e), N.info("MarkedPendingHeatmapsReady")), e.length;
7731
7724
  }, "Error marking pending heatmaps ready"), clearUserReplayData: ed, disableRecording: vr, initializeReplay: async ({ maxReplayDurationSeconds: e, maxInflightRequests: t = 2, replaySettings: r, teardownAfter: n = !1, apiUrl: s, alwaysOnConfig: i }) => {
7732
7725
  if (i && Lg({ apiUrl: s, config: i, triggerSnapshot: () => {
7733
7726
  ki();
7734
7727
  } }), ct = ue.getItem("sprig.pendingCount"), pe.isRecording) return;
7735
- if (n && ue.setItem("sprig.teardownAfterCapture", "true"), He()) return N.debug("ReplayDisabled");
7728
+ if (n && ue.setItem("sprig.teardownAfterCapture", "true"), Ge()) return N.debug("ReplayDisabled");
7736
7729
  if (await (async () => {
7737
7730
  var l;
7738
7731
  if (!Nu()) return !0;
@@ -7764,7 +7757,7 @@ const Oi = async (e = !1) => {
7764
7757
  const f = { checkoutEveryNms: 3e4, sampling: { input: "last", scroll: 250, media: 800 }, ...r, mutationQueueEnabled: r == null ? void 0 : r.enableMutationQueue };
7765
7758
  var v, p;
7766
7759
  pe.stopRecording = u({ emit: (I, m) => {
7767
- if (I.type === at.Custom && (xi = Date.now()), He() || Un()) return;
7760
+ if (I.type === at.Custom && (xi = Date.now()), Ge() || Un()) return;
7768
7761
  if (m && I.type === at.Meta) h = performance.now();
7769
7762
  else if (m && h && I.type === at.FullSnapshot) {
7770
7763
  const b = performance.now() - h;
@@ -7775,41 +7768,42 @@ const Oi = async (e = !1) => {
7775
7768
  }, ...f }), pe.isRecording = !!pe.stopRecording, pe.isRecording && (((I, m) => {
7776
7769
  window.addEventListener("message", (g) => {
7777
7770
  var b;
7778
- g.data.type === fg && (io.push({ source: g.source, origin: g.origin }), (b = g.source) == null || b.postMessage({ type: gg, settings: I, replayLibraryUrl: m }, { targetOrigin: g.origin }));
7771
+ g.data.type === mg && (io.push({ source: g.source, origin: g.origin }), (b = g.source) == null || b.postMessage({ type: fg, settings: I, replayLibraryUrl: m }, { targetOrigin: g.origin }));
7779
7772
  });
7780
7773
  })(f, c), z.on("survey.complete", (I) => {
7781
7774
  var m;
7782
- m = { id: I, userAgent: window.navigator.userAgent }, Je("Sprig_SubmitSurvey", m);
7783
- }), v = Je, p = Eg, Mn || (xe = v, pn = p, window.addEventListener("click", Du, We), window.addEventListener("pointerdown", _u, We), window.addEventListener("mousedown", Pu, We), window.addEventListener("keydown", Uu, We), window.addEventListener("scroll", Tu, We), Mn = !0, Cg(), kg()));
7775
+ m = { id: I, userAgent: window.navigator.userAgent }, Ye("Sprig_SubmitSurvey", m);
7776
+ }), v = Ye, p = Eg, Mn || (xe = v, pn = p, window.addEventListener("click", Du, We), window.addEventListener("pointerdown", _u, We), window.addEventListener("mousedown", Pu, We), window.addEventListener("keydown", Uu, We), window.addEventListener("scroll", Tu, We), Mn = !0, Cg(), kg()));
7784
7777
  }, "Error initializing replay");
7785
7778
  }, isReplayPaused: Un, isReplayRecording: () => pe.isRecording, recordFullSnapshot: ki, recordReplayPaused: () => {
7786
- Je("Sprig_ReplayPaused", { timestamp: Date.now() }), ue.setItem("sprig.isReplayPaused", "true");
7779
+ Ye("Sprig_ReplayPaused", { timestamp: Date.now() }), ue.setItem("sprig.isReplayPaused", "true");
7787
7780
  }, recordReplayResumed: () => {
7788
- ue.removeItem("sprig.isReplayPaused"), Je("Sprig_ReplayResumed", { timestamp: Date.now() });
7781
+ ue.removeItem("sprig.isReplayPaused"), Ye("Sprig_ReplayResumed", { timestamp: Date.now() });
7789
7782
  }, scheduleCapture: td, scheduleOrCaptureReplay: Qu, tryReplayAction: Ee, uploadReadyPendingCaptures: Oi }, Symbol.toStringTag, { value: "Module" }));
7790
7783
  ((e) => {
7791
7784
  re.replay = e;
7792
- })(Hg), window.UpChunk = { createUpload: jd }, window.rrwebRecord = Jt;
7785
+ })(Gg), window.UpChunk = { createUpload: jd }, window.rrwebRecord = qt;
7793
7786
  export {
7794
7787
  Yg as A,
7795
7788
  Lf as C,
7796
7789
  $g as D,
7797
- qg as E,
7790
+ Jg as E,
7798
7791
  B as S,
7799
- Qe as a,
7792
+ Xe as a,
7800
7793
  N as b,
7801
- Wf as c,
7794
+ jf as c,
7802
7795
  Be as d,
7803
7796
  z as e,
7804
7797
  In as f,
7805
7798
  Kg as g,
7806
- Jg as h,
7799
+ qg as h,
7807
7800
  Xg as i,
7808
7801
  eo as j,
7809
- Ye as k,
7810
- Zg as l,
7811
- tl as m,
7812
- ey as n,
7802
+ nt as k,
7803
+ vg as l,
7804
+ Zg as m,
7805
+ tl as n,
7806
+ ey as o,
7813
7807
  Qg as r,
7814
7808
  eu as s,
7815
7809
  Tt as v