@sprig-technologies/sprig-bundled 2.46.0 → 2.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  var vd = Object.defineProperty;
2
2
  var Sd = (e, t, r) => t in e ? vd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var de = (e, t, r) => Sd(e, typeof t != "symbol" ? t + "" : t, r);
3
+ var ue = (e, t, r) => Sd(e, typeof t != "symbol" ? t + "" : t, r);
4
4
  var Id = Object.create, uo = Object.defineProperty, Cd = Object.getOwnPropertyDescriptor, kd = Object.getOwnPropertyNames, Ed = Object.getPrototypeOf, xd = Object.prototype.hasOwnProperty, fr = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), Td = fr((e, t) => {
5
5
  var r;
6
6
  r = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t.exports = r;
@@ -46,56 +46,56 @@ var Id = Object.create, uo = Object.defineProperty, Cd = Object.getOwnPropertyDe
46
46
  }
47
47
  function l(c) {
48
48
  if (c.callback === void 0) throw new Error("callback argument missing");
49
- var u = !1, d = function(L, R, S) {
50
- u || (u = !0, c.callback(L, R, S));
49
+ var u = !1, d = function(R, L, I) {
50
+ u || (u = !0, c.callback(R, L, I));
51
51
  };
52
52
  function p() {
53
- var L = void 0;
54
- if (L = h.response ? h.response : h.responseText || function(R) {
53
+ var R = void 0;
54
+ if (R = h.response ? h.response : h.responseText || function(L) {
55
55
  try {
56
- if (R.responseType === "document") return R.responseXML;
57
- var S = R.responseXML && R.responseXML.documentElement.nodeName === "parsererror";
58
- if (R.responseType === "" && !S) return R.responseXML;
56
+ if (L.responseType === "document") return L.responseXML;
57
+ var I = L.responseXML && L.responseXML.documentElement.nodeName === "parsererror";
58
+ if (L.responseType === "" && !I) return L.responseXML;
59
59
  } catch {
60
60
  }
61
61
  return null;
62
- }(h), A) try {
63
- L = JSON.parse(L);
62
+ }(h), U) try {
63
+ R = JSON.parse(R);
64
64
  } catch {
65
65
  }
66
- return L;
66
+ return R;
67
67
  }
68
- function f(L) {
69
- return clearTimeout(g), L instanceof Error || (L = new Error("" + (L || "Unknown XMLHttpRequest Error"))), L.statusCode = 0, d(L, k);
68
+ function f(R) {
69
+ return clearTimeout(g), R instanceof Error || (R = new Error("" + (R || "Unknown XMLHttpRequest Error"))), R.statusCode = 0, d(R, E);
70
70
  }
71
71
  function w() {
72
72
  if (!m) {
73
- var L;
74
- clearTimeout(g), L = c.useXDR && h.status === void 0 ? 200 : h.status === 1223 ? 204 : h.status;
75
- var R = k, S = null;
76
- return L !== 0 ? (R = { body: p(), statusCode: L, method: I, headers: {}, url: v, rawRequest: h }, h.getAllResponseHeaders && (R.headers = n(h.getAllResponseHeaders()))) : S = new Error("Internal XMLHttpRequest Error"), d(S, R, R.body);
73
+ var R;
74
+ clearTimeout(g), R = c.useXDR && h.status === void 0 ? 200 : h.status === 1223 ? 204 : h.status;
75
+ var L = E, I = null;
76
+ return R !== 0 ? (L = { body: p(), statusCode: R, method: S, headers: {}, url: v, rawRequest: h }, h.getAllResponseHeaders && (L.headers = n(h.getAllResponseHeaders()))) : I = new Error("Internal XMLHttpRequest Error"), d(I, L, L.body);
77
77
  }
78
78
  }
79
79
  var h = c.xhr || null;
80
80
  h || (h = c.cors || c.useXDR ? new o.XDomainRequest() : new o.XMLHttpRequest());
81
- var C, m, g, v = h.url = c.uri || c.url, I = h.method = c.method || "GET", O = c.body || c.data, E = h.headers = c.headers || {}, U = !!c.sync, A = !1, k = { body: void 0, headers: {}, statusCode: 0, method: I, url: v, rawRequest: h };
82
- if ("json" in c && c.json !== !1 && (A = !0, E.accept || E.Accept || (E.Accept = "application/json"), I !== "GET" && I !== "HEAD" && (E["content-type"] || E["Content-Type"] || (E["Content-Type"] = "application/json"), O = JSON.stringify(c.json === !0 ? O : c.json))), h.onreadystatechange = function() {
81
+ var C, m, g, v = h.url = c.uri || c.url, S = h.method = c.method || "GET", A = c.body || c.data, k = h.headers = c.headers || {}, M = !!c.sync, U = !1, E = { body: void 0, headers: {}, statusCode: 0, method: S, url: v, rawRequest: h };
82
+ if ("json" in c && c.json !== !1 && (U = !0, k.accept || k.Accept || (k.Accept = "application/json"), S !== "GET" && S !== "HEAD" && (k["content-type"] || k["Content-Type"] || (k["Content-Type"] = "application/json"), A = JSON.stringify(c.json === !0 ? A : c.json))), h.onreadystatechange = function() {
83
83
  h.readyState === 4 && setTimeout(w, 0);
84
84
  }, h.onload = w, h.onerror = f, h.onprogress = function() {
85
85
  }, h.onabort = function() {
86
86
  m = !0;
87
- }, h.ontimeout = f, h.open(I, v, !U, c.username, c.password), U || (h.withCredentials = !!c.withCredentials), !U && c.timeout > 0 && (g = setTimeout(function() {
87
+ }, h.ontimeout = f, h.open(S, v, !M, c.username, c.password), M || (h.withCredentials = !!c.withCredentials), !M && c.timeout > 0 && (g = setTimeout(function() {
88
88
  if (!m) {
89
89
  m = !0, h.abort("timeout");
90
- var L = new Error("XMLHttpRequest timeout");
91
- L.code = "ETIMEDOUT", f(L);
90
+ var R = new Error("XMLHttpRequest timeout");
91
+ R.code = "ETIMEDOUT", f(R);
92
92
  }
93
- }, c.timeout)), h.setRequestHeader) for (C in E) E.hasOwnProperty(C) && h.setRequestHeader(C, E[C]);
94
- else if (c.headers && !function(L) {
95
- for (var R in L) if (L.hasOwnProperty(R)) return !1;
93
+ }, c.timeout)), h.setRequestHeader) for (C in k) k.hasOwnProperty(C) && h.setRequestHeader(C, k[C]);
94
+ else if (c.headers && !function(R) {
95
+ for (var L in R) if (R.hasOwnProperty(L)) return !1;
96
96
  return !0;
97
97
  }(c.headers)) throw new Error("Headers cannot be set on an XDomainRequest object");
98
- return "responseType" in c && (h.responseType = c.responseType), "beforeSend" in c && typeof c.beforeSend == "function" && c.beforeSend(h), h.send(O || null), h;
98
+ return "responseType" in c && (h.responseType = c.responseType), "beforeSend" in c && typeof c.beforeSend == "function" && c.beforeSend(h), h.send(A || null), h;
99
99
  }
100
100
  t.exports = o, t.exports.default = o, o.XMLHttpRequest = r.XMLHttpRequest || function() {
101
101
  }, o.XDomainRequest = "withCredentials" in new o.XMLHttpRequest() ? o.XMLHttpRequest : r.XDomainRequest, function(c, u) {
@@ -129,7 +129,7 @@ var Me = typeof window < "u" ? window : typeof self < "u" ? self : typeof global
129
129
  } catch {
130
130
  }
131
131
  }
132
- }, Md = new ut("W01", "Unable to initialize event under dispatching."), Ud = new ut("W02", "Assigning any falsy value to 'cancelBubble' property has no effect."), Dd = new ut("W03", "Assigning any truthy value to 'returnValue' property has no effect."), Pd = new ut("W04", "Unable to preventDefault on non-cancelable events."), _d = new ut("W05", "Unable to preventDefault inside passive event listener invocation."), Nd = new ut("W06", "An event listener wasn't added because it has been added already: %o, %o"), Js = new ut("W07", "The %o option value was abandoned because the event listener wasn't added as duplicated."), po = new ut("W08", "The 'callback' argument must be a function or an object that has 'handleEvent' method: %o"), qe = class {
132
+ }, Md = new ut("W01", "Unable to initialize event under dispatching."), Ud = new ut("W02", "Assigning any falsy value to 'cancelBubble' property has no effect."), Dd = new ut("W03", "Assigning any truthy value to 'returnValue' property has no effect."), Pd = new ut("W04", "Unable to preventDefault on non-cancelable events."), _d = new ut("W05", "Unable to preventDefault inside passive event listener invocation."), Nd = new ut("W06", "An event listener wasn't added because it has been added already: %o, %o"), qs = new ut("W07", "The %o option value was abandoned because the event listener wasn't added as duplicated."), po = new ut("W08", "The 'callback' argument must be a function or an object that has 'handleEvent' method: %o"), Ye = class {
133
133
  static get NONE() {
134
134
  return ho;
135
135
  }
@@ -148,19 +148,19 @@ var Me = typeof window < "u" ? window : typeof self < "u" ? self : typeof global
148
148
  Cn.set(this, { type: String(e), bubbles: !!r.bubbles, cancelable: !!r.cancelable, composed: !!r.composed, target: null, currentTarget: null, stopPropagationFlag: !1, stopImmediatePropagationFlag: !1, canceledFlag: !1, inPassiveListenerFlag: !1, dispatchFlag: !1, timeStamp: Date.now() });
149
149
  }
150
150
  get type() {
151
- return he(this).type;
151
+ return pe(this).type;
152
152
  }
153
153
  get target() {
154
- return he(this).target;
154
+ return pe(this).target;
155
155
  }
156
156
  get srcElement() {
157
- return he(this).target;
157
+ return pe(this).target;
158
158
  }
159
159
  get currentTarget() {
160
- return he(this).currentTarget;
160
+ return pe(this).currentTarget;
161
161
  }
162
162
  composedPath() {
163
- let e = he(this).currentTarget;
163
+ let e = pe(this).currentTarget;
164
164
  return e ? [e] : [];
165
165
  }
166
166
  get NONE() {
@@ -176,65 +176,65 @@ var Me = typeof window < "u" ? window : typeof self < "u" ? self : typeof global
176
176
  return go;
177
177
  }
178
178
  get eventPhase() {
179
- return he(this).dispatchFlag ? 2 : 0;
179
+ return pe(this).dispatchFlag ? 2 : 0;
180
180
  }
181
181
  stopPropagation() {
182
- he(this).stopPropagationFlag = !0;
182
+ pe(this).stopPropagationFlag = !0;
183
183
  }
184
184
  get cancelBubble() {
185
- return he(this).stopPropagationFlag;
185
+ return pe(this).stopPropagationFlag;
186
186
  }
187
187
  set cancelBubble(e) {
188
- e ? he(this).stopPropagationFlag = !0 : Ud.warn();
188
+ e ? pe(this).stopPropagationFlag = !0 : Ud.warn();
189
189
  }
190
190
  stopImmediatePropagation() {
191
- let e = he(this);
191
+ let e = pe(this);
192
192
  e.stopPropagationFlag = e.stopImmediatePropagationFlag = !0;
193
193
  }
194
194
  get bubbles() {
195
- return he(this).bubbles;
195
+ return pe(this).bubbles;
196
196
  }
197
197
  get cancelable() {
198
- return he(this).cancelable;
198
+ return pe(this).cancelable;
199
199
  }
200
200
  get returnValue() {
201
- return !he(this).canceledFlag;
201
+ return !pe(this).canceledFlag;
202
202
  }
203
203
  set returnValue(e) {
204
- e ? Dd.warn() : yo(he(this));
204
+ e ? Dd.warn() : yo(pe(this));
205
205
  }
206
206
  preventDefault() {
207
- yo(he(this));
207
+ yo(pe(this));
208
208
  }
209
209
  get defaultPrevented() {
210
- return he(this).canceledFlag;
210
+ return pe(this).canceledFlag;
211
211
  }
212
212
  get composed() {
213
- return he(this).composed;
213
+ return pe(this).composed;
214
214
  }
215
215
  get isTrusted() {
216
216
  return !1;
217
217
  }
218
218
  get timeStamp() {
219
- return he(this).timeStamp;
219
+ return pe(this).timeStamp;
220
220
  }
221
221
  initEvent(e, t = !1, r = !1) {
222
- let s = he(this);
222
+ let s = pe(this);
223
223
  s.dispatchFlag ? Md.warn() : Cn.set(this, { ...s, type: String(e), bubbles: !!t, cancelable: !!r, target: null, currentTarget: null, stopPropagationFlag: !1, stopImmediatePropagationFlag: !1, canceledFlag: !1 });
224
224
  }
225
225
  }, ho = 0, mo = 1, fo = 2, go = 3, Cn = /* @__PURE__ */ new WeakMap();
226
- function he(e, t = "this") {
226
+ function pe(e, t = "this") {
227
227
  let r = Cn.get(e);
228
228
  return Ai(r != null, "'%s' must be an object that Event constructor created, but got another one: %o", t, e), r;
229
229
  }
230
230
  function yo(e) {
231
231
  e.inPassiveListenerFlag ? _d.warn() : e.cancelable ? e.canceledFlag = !0 : Pd.warn();
232
232
  }
233
- Object.defineProperty(qe, "NONE", { enumerable: !0 }), Object.defineProperty(qe, "CAPTURING_PHASE", { enumerable: !0 }), Object.defineProperty(qe, "AT_TARGET", { enumerable: !0 }), Object.defineProperty(qe, "BUBBLING_PHASE", { enumerable: !0 });
234
- var Ks = Object.getOwnPropertyNames(qe.prototype);
235
- for (let e = 0; e < Ks.length; ++e) Ks[e] !== "constructor" && Object.defineProperty(qe.prototype, Ks[e], { enumerable: !0 });
236
- Me !== void 0 && Me.Event !== void 0 && Object.setPrototypeOf(qe.prototype, Me.Event.prototype);
237
- var bt, wo = { INDEX_SIZE_ERR: 1, DOMSTRING_SIZE_ERR: 2, HIERARCHY_REQUEST_ERR: 3, WRONG_DOCUMENT_ERR: 4, INVALID_CHARACTER_ERR: 5, NO_DATA_ALLOWED_ERR: 6, NO_MODIFICATION_ALLOWED_ERR: 7, NOT_FOUND_ERR: 8, NOT_SUPPORTED_ERR: 9, INUSE_ATTRIBUTE_ERR: 10, INVALID_STATE_ERR: 11, SYNTAX_ERR: 12, INVALID_MODIFICATION_ERR: 13, NAMESPACE_ERR: 14, INVALID_ACCESS_ERR: 15, VALIDATION_ERR: 16, TYPE_MISMATCH_ERR: 17, SECURITY_ERR: 18, NETWORK_ERR: 19, ABORT_ERR: 20, URL_MISMATCH_ERR: 21, QUOTA_EXCEEDED_ERR: 22, TIMEOUT_ERR: 23, INVALID_NODE_TYPE_ERR: 24, DATA_CLONE_ERR: 25 };
233
+ Object.defineProperty(Ye, "NONE", { enumerable: !0 }), Object.defineProperty(Ye, "CAPTURING_PHASE", { enumerable: !0 }), Object.defineProperty(Ye, "AT_TARGET", { enumerable: !0 }), Object.defineProperty(Ye, "BUBBLING_PHASE", { enumerable: !0 });
234
+ var Ks = Object.getOwnPropertyNames(Ye.prototype);
235
+ for (let e = 0; e < Ks.length; ++e) Ks[e] !== "constructor" && Object.defineProperty(Ye.prototype, Ks[e], { enumerable: !0 });
236
+ Me !== void 0 && Me.Event !== void 0 && Object.setPrototypeOf(Ye.prototype, Me.Event.prototype);
237
+ var vt, wo = { INDEX_SIZE_ERR: 1, DOMSTRING_SIZE_ERR: 2, HIERARCHY_REQUEST_ERR: 3, WRONG_DOCUMENT_ERR: 4, INVALID_CHARACTER_ERR: 5, NO_DATA_ALLOWED_ERR: 6, NO_MODIFICATION_ALLOWED_ERR: 7, NOT_FOUND_ERR: 8, NOT_SUPPORTED_ERR: 9, INUSE_ATTRIBUTE_ERR: 10, INVALID_STATE_ERR: 11, SYNTAX_ERR: 12, INVALID_MODIFICATION_ERR: 13, NAMESPACE_ERR: 14, INVALID_ACCESS_ERR: 15, VALIDATION_ERR: 16, TYPE_MISMATCH_ERR: 17, SECURITY_ERR: 18, NETWORK_ERR: 19, ABORT_ERR: 20, URL_MISMATCH_ERR: 21, QUOTA_EXCEEDED_ERR: 22, TIMEOUT_ERR: 23, INVALID_NODE_TYPE_ERR: 24, DATA_CLONE_ERR: 25 };
238
238
  function bo(e) {
239
239
  let t = Object.keys(wo);
240
240
  for (let r = 0; r < t.length; ++r) {
@@ -242,7 +242,7 @@ function bo(e) {
242
242
  Object.defineProperty(e, s, { get: () => n, configurable: !0, enumerable: !0 });
243
243
  }
244
244
  }
245
- var ms = class extends qe {
245
+ var ms = class extends Ye {
246
246
  static wrap(e) {
247
247
  return new (gl(e))(e);
248
248
  }
@@ -375,12 +375,12 @@ var Us = class {
375
375
  d === -1 ? function(p, f, w, h, C, m) {
376
376
  let g;
377
377
  m && (g = Io.bind(null, p, f, w), m.addEventListener("abort", g));
378
- let v = function(I, O, E, U, A, k) {
379
- return { callback: I, flags: (O ? 1 : 0) | (E ? 2 : 0) | (U ? 4 : 0), signal: A, signalListener: k };
378
+ let v = function(S, A, k, M, U, E) {
379
+ return { callback: S, flags: (A ? 1 : 0) | (k ? 2 : 0) | (M ? 4 : 0), signal: U, signalListener: E };
380
380
  }(f, w, h, C, m, g);
381
381
  p.cow ? (p.cow = !1, p.listeners = [...p.listeners, v]) : p.listeners.push(v);
382
382
  }(u, n, i, o, a, l) : function(p, f, w, h) {
383
- Nd.warn(wl(p) ? "capture" : "bubble", p.callback), vo(p) !== f && Js.warn("passive"), So(p) !== w && Js.warn("once"), p.signal !== h && Js.warn("signal");
383
+ Nd.warn(wl(p) ? "capture" : "bubble", p.callback), vo(p) !== f && qs.warn("passive"), So(p) !== w && qs.warn("once"), p.signal !== h && qs.warn("signal");
384
384
  }(u.listeners[d], o, a, l);
385
385
  }
386
386
  removeEventListener(e, t, r) {
@@ -392,8 +392,8 @@ var Us = class {
392
392
  dispatchEvent(e) {
393
393
  let t = Zs(this)[String(e.type)];
394
394
  if (t == null) return !0;
395
- let r = e instanceof qe ? e : ms.wrap(e), s = he(r, "event");
396
- if (s.dispatchFlag) throw n = "This event has been in dispatching.", Me.DOMException ? new Me.DOMException(n, "InvalidStateError") : (bt == null && (bt = class Sl extends Error {
395
+ let r = e instanceof Ye ? e : ms.wrap(e), s = pe(r, "event");
396
+ if (s.dispatchFlag) throw n = "This event has been in dispatching.", Me.DOMException ? new Me.DOMException(n, "InvalidStateError") : (vt == null && (vt = class Sl extends Error {
397
397
  constructor(a) {
398
398
  super(a), Error.captureStackTrace && Error.captureStackTrace(this, Sl);
399
399
  }
@@ -403,7 +403,7 @@ var Us = class {
403
403
  get name() {
404
404
  return "InvalidStateError";
405
405
  }
406
- }, Object.defineProperties(bt.prototype, { code: { enumerable: !0 }, name: { enumerable: !0 } }), bo(bt), bo(bt.prototype)), new bt(n));
406
+ }, Object.defineProperties(vt.prototype, { code: { enumerable: !0 }, name: { enumerable: !0 } }), bo(vt), bo(vt.prototype)), new vt(n));
407
407
  var n;
408
408
  if (s.dispatchFlag = !0, s.target = s.currentTarget = this, !s.stopPropagationFlag) {
409
409
  let { cow: i, listeners: a } = t;
@@ -609,7 +609,7 @@ var ko, zd = ((e, t, r) => (r = e != null ? Id(Ed(e)) : {}, ((s, n, i, a) => {
609
609
  if (e && (r = await this.sendChunkWithRetries(e)), this.success = !!t, this.success && r && this.dispatch("success"), !r) return;
610
610
  }
611
611
  }
612
- }, Hd = El.createUpload, Gd = Object.defineProperty, x = (e, t, r) => ((s, n, i) => n in s ? Gd(s, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[n] = i)(e, typeof t != "symbol" ? t + "" : t, r), $d = Object.defineProperty, Eo = (e, t, r) => ((s, n, i) => n in s ? $d(s, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[n] = i)(e, typeof t != "symbol" ? t + "" : t, r), fe = ((e) => (e[e.Document = 0] = "Document", e[e.DocumentType = 1] = "DocumentType", e[e.Element = 2] = "Element", e[e.Text = 3] = "Text", e[e.CDATA = 4] = "CDATA", e[e.Comment = 5] = "Comment", e))(fe || {});
612
+ }, Hd = El.createUpload, Gd = Object.defineProperty, x = (e, t, r) => ((s, n, i) => n in s ? Gd(s, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[n] = i)(e, typeof t != "symbol" ? t + "" : t, r), $d = Object.defineProperty, Eo = (e, t, r) => ((s, n, i) => n in s ? $d(s, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[n] = i)(e, typeof t != "symbol" ? t + "" : t, r), me = ((e) => (e[e.Document = 0] = "Document", e[e.DocumentType = 1] = "DocumentType", e[e.Element = 2] = "Element", e[e.Text = 3] = "Text", e[e.CDATA = 4] = "CDATA", e[e.Comment = 5] = "Comment", e))(me || {});
613
613
  const xo = { Node: ["childNodes", "parentNode", "parentElement", "textContent"], ShadowRoot: ["host", "styleSheets"], Element: ["shadowRoot", "querySelector", "querySelectorAll"], MutationObserver: [] }, To = { Node: ["contains", "getRootNode"], ShadowRoot: ["getSelection"], Element: [], MutationObserver: ["constructor"] }, Sr = {};
614
614
  function Mi(e) {
615
615
  if (Sr[e]) return Sr[e];
@@ -647,7 +647,7 @@ function Ro(e, t, r) {
647
647
  const n = Mi(e)[r];
648
648
  return typeof n != "function" ? t[r] : (en[s] = n, n.bind(t));
649
649
  }
650
- const ye = { childNodes: function(e) {
650
+ const ge = { childNodes: function(e) {
651
651
  return Qe("Node", e, "childNodes");
652
652
  }, parentNode: function(e) {
653
653
  return Qe("Node", e, "parentNode");
@@ -676,13 +676,13 @@ function xl(e) {
676
676
  return e.nodeType === e.ELEMENT_NODE;
677
677
  }
678
678
  function Zt(e) {
679
- const t = e && "host" in e && "mode" in e && ye.host(e) || null;
680
- return !!(t && "shadowRoot" in t && ye.shadowRoot(t) === e);
679
+ const t = e && "host" in e && "mode" in e && ge.host(e) || null;
680
+ return !!(t && "shadowRoot" in t && ge.shadowRoot(t) === e);
681
681
  }
682
682
  function Xt(e) {
683
683
  return Object.prototype.toString.call(e) === "[object ShadowRoot]";
684
684
  }
685
- function qr(e) {
685
+ function Jr(e) {
686
686
  try {
687
687
  const r = e.rules || e.cssRules;
688
688
  return r ? ((t = Array.from(r, (n) => Tl(n, 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 Tl(e, t) {
697
697
  }(e)) {
698
698
  let r;
699
699
  try {
700
- r = qr(e.styleSheet) || function(s) {
700
+ r = Jr(e.styleSheet) || function(s) {
701
701
  const { cssText: n } = s;
702
702
  if (n.split('"').length < 3) return n;
703
703
  const i = ["@import", `url(${JSON.stringify(s.href)})`];
@@ -763,16 +763,16 @@ class Rl {
763
763
  }
764
764
  function Ui({ element: e, maskInputOptions: t, tagName: r, type: s, value: n, maskInputFn: i }) {
765
765
  let a = n || "";
766
- const o = s && mt(s);
766
+ const o = s && ft(s);
767
767
  return (t[r.toLowerCase()] || o && t[o]) && (a = i ? i(a, e) : "*".repeat(a.length)), a;
768
768
  }
769
- function mt(e) {
769
+ function ft(e) {
770
770
  return e.toLowerCase();
771
771
  }
772
772
  const Lo = "__rrweb_original__";
773
773
  function Di(e) {
774
774
  const t = e.type;
775
- return e.hasAttribute("data-rr-is-password") ? "password" : t ? mt(t) : null;
775
+ return e.hasAttribute("data-rr-is-password") ? "password" : t ? ft(t) : null;
776
776
  }
777
777
  function Oo(e, t) {
778
778
  let r;
@@ -784,12 +784,12 @@ function Oo(e, t) {
784
784
  const s = r.pathname.match(/\.([0-9a-z]+)(?:$)/i);
785
785
  return (s == null ? void 0 : s[1]) ?? null;
786
786
  }
787
- const Yd = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, qd = /^(?:[a-z+]+:)?\/\//i, Jd = /^www\..*/i, Kd = /^(data:)([^,]*),(.*)/i;
787
+ const Yd = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, Jd = /^(?:[a-z+]+:)?\/\//i, qd = /^www\..*/i, Kd = /^(data:)([^,]*),(.*)/i;
788
788
  function gs(e, t) {
789
789
  return (e || "").replace(Yd, (r, s, n, i, a, o) => {
790
790
  const l = n || a || o, c = s || i || "";
791
791
  if (!l) return r;
792
- if (qd.test(l) || Jd.test(l)) return `url(${c}${l}${c})`;
792
+ if (Jd.test(l) || qd.test(l)) return `url(${c}${l}${c})`;
793
793
  if (Kd.test(l)) return `url(${c}${l}${c})`;
794
794
  if (l[0] === "/") return `url(${c}${function(p) {
795
795
  let f = "";
@@ -806,7 +806,7 @@ const Xd = new RegExp("[^a-z0-9-_:]");
806
806
  function Ll() {
807
807
  return Zd++;
808
808
  }
809
- let vt, Ao;
809
+ let St, Ao;
810
810
  const Qd = /^[^ \t\n\r\u000c]+/, ep = /^[, \t\n\r\u000c]+/, Mo = /* @__PURE__ */ new WeakMap();
811
811
  function Ft(e, t) {
812
812
  return t && t.trim() !== "" ? Pi(e, t) : t;
@@ -864,20 +864,20 @@ function Al(e, t, r) {
864
864
  }
865
865
  function ys(e, t, r) {
866
866
  if (!e) return !1;
867
- if (e.nodeType !== e.ELEMENT_NODE) return !!r && ys(ye.parentNode(e), t, r);
867
+ if (e.nodeType !== e.ELEMENT_NODE) return !!r && ys(ge.parentNode(e), t, r);
868
868
  for (let s = e.classList.length; s--; ) {
869
869
  const n = e.classList[s];
870
870
  if (t.test(n)) return !0;
871
871
  }
872
- return !!r && ys(ye.parentNode(e), t, r);
872
+ return !!r && ys(ge.parentNode(e), t, r);
873
873
  }
874
874
  function Ml(e, t, r, s) {
875
875
  let n;
876
876
  if (xl(e)) {
877
- if (n = e, !ye.childNodes(n).length) return !1;
877
+ if (n = e, !ge.childNodes(n).length) return !1;
878
878
  } else {
879
- if (ye.parentElement(e) === null) return !1;
880
- n = ye.parentElement(e);
879
+ if (ge.parentElement(e) === null) return !1;
880
+ n = ge.parentElement(e);
881
881
  }
882
882
  try {
883
883
  if (typeof t == "string") {
@@ -902,198 +902,198 @@ function rp(e, t) {
902
902
  }(r, s);
903
903
  switch (e.nodeType) {
904
904
  case e.DOCUMENT_NODE:
905
- return e.compatMode !== "CSS1Compat" ? { type: fe.Document, childNodes: [], compatMode: e.compatMode } : { type: fe.Document, childNodes: [] };
905
+ return e.compatMode !== "CSS1Compat" ? { type: me.Document, childNodes: [], compatMode: e.compatMode } : { type: me.Document, childNodes: [] };
906
906
  case e.DOCUMENT_TYPE_NODE:
907
- return { type: fe.DocumentType, name: e.name, publicId: e.publicId, systemId: e.systemId, rootId: C };
907
+ return { type: me.DocumentType, name: e.name, publicId: e.publicId, systemId: e.systemId, rootId: C };
908
908
  case e.ELEMENT_NODE:
909
909
  return function(m, g) {
910
- const { doc: v, blockClass: I, blockSelector: O, inlineStylesheet: E, maskInputOptions: U = {}, maskInputFn: A, dataURLOptions: k = {}, inlineImages: L, recordCanvas: R, keepIframeSrcFn: S, newlyAddedElement: P = !1, rootId: M } = g, b = function(T, N, Q) {
910
+ const { doc: v, blockClass: S, blockSelector: A, inlineStylesheet: k, maskInputOptions: M = {}, maskInputFn: U, dataURLOptions: E = {}, inlineImages: R, recordCanvas: L, keepIframeSrcFn: I, newlyAddedElement: F = !1, rootId: P } = g, b = function(T, D, ne) {
911
911
  try {
912
- if (typeof N == "string") {
913
- if (T.classList.contains(N)) return !0;
914
- } else for (let Y = T.classList.length; Y--; ) {
915
- const me = T.classList[Y];
916
- if (N.test(me)) return !0;
912
+ if (typeof D == "string") {
913
+ if (T.classList.contains(D)) return !0;
914
+ } else for (let K = T.classList.length; K--; ) {
915
+ const he = T.classList[K];
916
+ if (D.test(he)) return !0;
917
917
  }
918
- if (Q) return T.matches(Q);
918
+ if (ne) return T.matches(ne);
919
919
  } catch {
920
920
  }
921
921
  return !1;
922
- }(m, I, O), y = function(T) {
922
+ }(m, S, A), y = function(T) {
923
923
  if (T instanceof HTMLFormElement) return "form";
924
- const N = mt(T.tagName);
925
- return Xd.test(N) ? "div" : N;
924
+ const D = ft(T.tagName);
925
+ return Xd.test(D) ? "div" : D;
926
926
  }(m);
927
- let D = {};
928
- const _ = m.attributes.length;
929
- for (let T = 0; T < _; T++) {
930
- const N = m.attributes[T];
931
- Al(y, N.name, N.value) || (D[N.name] = Ol(v, y, mt(N.name), N.value));
927
+ let O = {};
928
+ const B = m.attributes.length;
929
+ for (let T = 0; T < B; T++) {
930
+ const D = m.attributes[T];
931
+ Al(y, D.name, D.value) || (O[D.name] = Ol(v, y, ft(D.name), D.value));
932
932
  }
933
- if (y === "link" && E) {
934
- const T = Array.from(v.styleSheets).find((Q) => Q.href === m.href);
935
- let N = null;
936
- T && (N = qr(T)), N && (delete D.rel, delete D.href, D._cssText = N);
933
+ if (y === "link" && k) {
934
+ const T = Array.from(v.styleSheets).find((ne) => ne.href === m.href);
935
+ let D = null;
936
+ T && (D = Jr(T)), D && (delete O.rel, delete O.href, O._cssText = D);
937
937
  }
938
- if (y === "style" && m.sheet && !(m.innerText || ye.textContent(m) || "").trim().length) {
939
- const T = qr(m.sheet);
940
- T && (D._cssText = T);
938
+ if (y === "style" && m.sheet && !(m.innerText || ge.textContent(m) || "").trim().length) {
939
+ const T = Jr(m.sheet);
940
+ T && (O._cssText = T);
941
941
  }
942
942
  if (y === "input" || y === "textarea" || y === "select") {
943
- const T = m.value, N = m.checked;
944
- D.type !== "radio" && D.type !== "checkbox" && D.type !== "submit" && D.type !== "button" && T ? D.value = Ui({ element: m, type: Di(m), tagName: y, value: T, maskInputOptions: U, maskInputFn: A }) : N && (D.checked = N);
943
+ const T = m.value, D = m.checked;
944
+ O.type !== "radio" && O.type !== "checkbox" && O.type !== "submit" && O.type !== "button" && T ? O.value = Ui({ element: m, type: Di(m), tagName: y, value: T, maskInputOptions: M, maskInputFn: U }) : D && (O.checked = D);
945
945
  }
946
- if (y === "option" && (m.selected && !U.select ? D.selected = !0 : delete D.selected), y === "dialog" && m.open && (D.rr_open_mode = m.matches("dialog:modal") ? "modal" : "non-modal"), y === "canvas" && R) {
946
+ if (y === "option" && (m.selected && !M.select ? O.selected = !0 : delete O.selected), y === "dialog" && m.open && (O.rr_open_mode = m.matches("dialog:modal") ? "modal" : "non-modal"), y === "canvas" && L) {
947
947
  if (m.__context === "2d") (function(T) {
948
- const N = T.getContext("2d");
949
- if (!N) return !0;
950
- for (let Q = 0; Q < T.width; Q += 50) for (let Y = 0; Y < T.height; Y += 50) {
951
- const me = N.getImageData, _e = Lo in me ? me[Lo] : me;
952
- if (new Uint32Array(_e.call(N, Q, Y, Math.min(50, T.width - Q), Math.min(50, T.height - Y)).data.buffer).some((we) => we !== 0)) return !1;
948
+ const D = T.getContext("2d");
949
+ if (!D) return !0;
950
+ for (let ne = 0; ne < T.width; ne += 50) for (let K = 0; K < T.height; K += 50) {
951
+ const he = D.getImageData, Le = Lo in he ? he[Lo] : he;
952
+ if (new Uint32Array(Le.call(D, ne, K, Math.min(50, T.width - ne), Math.min(50, T.height - K)).data.buffer).some((ye) => ye !== 0)) return !1;
953
953
  }
954
954
  return !0;
955
- })(m) || (D.rr_dataURL = m.toDataURL(k.type, k.quality));
955
+ })(m) || (O.rr_dataURL = m.toDataURL(E.type, E.quality));
956
956
  else if (!("__context" in m)) {
957
- const T = m.toDataURL(k.type, k.quality), N = v.createElement("canvas");
958
- N.width = m.width, N.height = m.height, T !== N.toDataURL(k.type, k.quality) && (D.rr_dataURL = T);
957
+ const T = m.toDataURL(E.type, E.quality), D = v.createElement("canvas");
958
+ D.width = m.width, D.height = m.height, T !== D.toDataURL(E.type, E.quality) && (O.rr_dataURL = T);
959
959
  }
960
960
  }
961
- if (y === "img" && L) {
962
- vt || (vt = v.createElement("canvas"), Ao = vt.getContext("2d"));
963
- const T = m, N = T.currentSrc || T.getAttribute("src") || "<unknown-src>", Q = T.crossOrigin, Y = () => {
964
- T.removeEventListener("load", Y);
961
+ if (y === "img" && R) {
962
+ St || (St = v.createElement("canvas"), Ao = St.getContext("2d"));
963
+ const T = m, D = T.currentSrc || T.getAttribute("src") || "<unknown-src>", ne = T.crossOrigin, K = () => {
964
+ T.removeEventListener("load", K);
965
965
  try {
966
- vt.width = T.naturalWidth, vt.height = T.naturalHeight, Ao.drawImage(T, 0, 0), D.rr_dataURL = vt.toDataURL(k.type, k.quality);
967
- } catch (me) {
968
- if (T.crossOrigin !== "anonymous") return T.crossOrigin = "anonymous", void (T.complete && T.naturalWidth !== 0 ? Y() : T.addEventListener("load", Y));
969
- console.warn(`Cannot inline img src=${N}! Error: ${me}`);
966
+ St.width = T.naturalWidth, St.height = T.naturalHeight, Ao.drawImage(T, 0, 0), O.rr_dataURL = St.toDataURL(E.type, E.quality);
967
+ } catch (he) {
968
+ if (T.crossOrigin !== "anonymous") return T.crossOrigin = "anonymous", void (T.complete && T.naturalWidth !== 0 ? K() : T.addEventListener("load", K));
969
+ console.warn(`Cannot inline img src=${D}! Error: ${he}`);
970
970
  }
971
- T.crossOrigin === "anonymous" && (Q ? D.crossOrigin = Q : T.removeAttribute("crossorigin"));
971
+ T.crossOrigin === "anonymous" && (ne ? O.crossOrigin = ne : T.removeAttribute("crossorigin"));
972
972
  };
973
- T.complete && T.naturalWidth !== 0 ? Y() : T.addEventListener("load", Y);
973
+ T.complete && T.naturalWidth !== 0 ? K() : T.addEventListener("load", K);
974
974
  }
975
975
  if (y === "audio" || y === "video") {
976
- const T = D;
976
+ const T = O;
977
977
  T.rr_mediaState = m.paused ? "paused" : "played", T.rr_mediaCurrentTime = m.currentTime, T.rr_mediaPlaybackRate = m.playbackRate, T.rr_mediaMuted = m.muted, T.rr_mediaLoop = m.loop, T.rr_mediaVolume = m.volume;
978
978
  }
979
- if (P || (m.scrollLeft && (D.rr_scrollLeft = m.scrollLeft), m.scrollTop && (D.rr_scrollTop = m.scrollTop)), b) {
980
- const { width: T, height: N } = m.getBoundingClientRect();
981
- D = { class: D.class, rr_width: `${T}px`, rr_height: `${N}px` };
979
+ if (F || (m.scrollLeft && (O.rr_scrollLeft = m.scrollLeft), m.scrollTop && (O.rr_scrollTop = m.scrollTop)), b) {
980
+ const { width: T, height: D } = m.getBoundingClientRect();
981
+ O = { class: O.class, rr_width: `${T}px`, rr_height: `${D}px` };
982
982
  }
983
- y !== "iframe" || S(D.src) || (m.contentDocument || (D.rr_src = D.src), delete D.src);
984
- let W;
983
+ y !== "iframe" || I(O.src) || (m.contentDocument || (O.rr_src = O.src), delete O.src);
984
+ let j;
985
985
  try {
986
- customElements.get(y) && (W = !0);
986
+ customElements.get(y) && (j = !0);
987
987
  } catch {
988
988
  }
989
- return { type: fe.Element, tagName: y, attributes: D, childNodes: [], isSVG: tp(m) || void 0, needBlock: b, rootId: M, isCustom: W };
989
+ return { type: me.Element, tagName: y, attributes: O, childNodes: [], isSVG: tp(m) || void 0, needBlock: b, rootId: P, isCustom: j };
990
990
  }(e, { doc: r, blockClass: n, blockSelector: i, inlineStylesheet: o, maskInputOptions: l, maskInputFn: u, dataURLOptions: d, inlineImages: p, recordCanvas: f, keepIframeSrcFn: w, newlyAddedElement: h, rootId: C });
991
991
  case e.TEXT_NODE:
992
992
  return function(m, g) {
993
993
  var v;
994
- const { needsMask: I, maskTextFn: O, rootId: E } = g, U = ye.parentNode(m), A = U && U.tagName;
995
- let k = ye.textContent(m);
996
- const L = A === "STYLE" || void 0, R = A === "SCRIPT" || void 0;
997
- if (L && k) {
994
+ const { needsMask: S, maskTextFn: A, rootId: k } = g, M = ge.parentNode(m), U = M && M.tagName;
995
+ let E = ge.textContent(m);
996
+ const R = U === "STYLE" || void 0, L = U === "SCRIPT" || void 0;
997
+ if (R && E) {
998
998
  try {
999
- m.nextSibling || m.previousSibling || (v = U.sheet) != null && v.cssRules && (k = qr(U.sheet));
1000
- } catch (S) {
1001
- console.warn(`Cannot get CSS styles from text's parentNode. Error: ${S}`, m);
999
+ m.nextSibling || m.previousSibling || (v = M.sheet) != null && v.cssRules && (E = Jr(M.sheet));
1000
+ } catch (I) {
1001
+ console.warn(`Cannot get CSS styles from text's parentNode. Error: ${I}`, m);
1002
1002
  }
1003
- k = gs(k, Pi(g.doc));
1003
+ E = gs(E, Pi(g.doc));
1004
1004
  }
1005
- return R && (k = "SCRIPT_PLACEHOLDER"), !L && !R && k && I && (k = O ? O(k, ye.parentElement(m)) : k.replace(/[\S]/g, "*")), { type: fe.Text, textContent: k || "", isStyle: L, rootId: E };
1005
+ return L && (E = "SCRIPT_PLACEHOLDER"), !R && !L && E && S && (E = A ? A(E, ge.parentElement(m)) : E.replace(/[\S]/g, "*")), { type: me.Text, textContent: E || "", isStyle: R, rootId: k };
1006
1006
  }(e, { doc: r, needsMask: a, maskTextFn: c, rootId: C });
1007
1007
  case e.CDATA_SECTION_NODE:
1008
- return { type: fe.CDATA, textContent: "", rootId: C };
1008
+ return { type: me.CDATA, textContent: "", rootId: C };
1009
1009
  case e.COMMENT_NODE:
1010
- return { type: fe.Comment, textContent: ye.textContent(e) || "", rootId: C };
1010
+ return { type: me.Comment, textContent: ge.textContent(e) || "", rootId: C };
1011
1011
  default:
1012
1012
  return !1;
1013
1013
  }
1014
1014
  }
1015
- function se(e) {
1015
+ function te(e) {
1016
1016
  return e == null ? "" : e.toLowerCase();
1017
1017
  }
1018
- function Et(e, t) {
1019
- const { doc: r, mirror: s, blockClass: n, blockSelector: i, maskTextClass: a, maskTextSelector: o, skipChild: l = !1, inlineStylesheet: c = !0, maskInputOptions: u = {}, maskTextFn: d, maskInputFn: p, slimDOMOptions: f, dataURLOptions: w = {}, inlineImages: h = !1, recordCanvas: C = !1, onSerialize: m, onIframeLoad: g, iframeLoadTimeout: v = 5e3, onStylesheetLoad: I, stylesheetLoadTimeout: O = 5e3, keepIframeSrcFn: E = () => !1, newlyAddedElement: U = !1 } = t;
1020
- let { needsMask: A } = t, { preserveWhiteSpace: k = !0 } = t;
1021
- A || (A = Ml(e, a, o, A === void 0));
1022
- const L = rp(e, { doc: r, mirror: s, blockClass: n, blockSelector: i, needsMask: A, inlineStylesheet: c, maskInputOptions: u, maskTextFn: d, maskInputFn: p, dataURLOptions: w, inlineImages: h, recordCanvas: C, keepIframeSrcFn: E, newlyAddedElement: U });
1023
- if (!L) return console.warn(e, "not serialized"), null;
1024
- let R;
1025
- R = s.hasNode(e) ? s.getId(e) : !function(b, y) {
1026
- return !!(y.comment && b.type === fe.Comment || b.type === fe.Element && (y.script && (b.tagName === "script" || b.tagName === "link" && (b.attributes.rel === "preload" || b.attributes.rel === "modulepreload") && b.attributes.as === "script" || b.tagName === "link" && b.attributes.rel === "prefetch" && typeof b.attributes.href == "string" && Oo(b.attributes.href) === "js") || y.headFavicon && (b.tagName === "link" && b.attributes.rel === "shortcut icon" || b.tagName === "meta" && (se(b.attributes.name).match(/^msapplication-tile(image|color)$/) || se(b.attributes.name) === "application-name" || se(b.attributes.rel) === "icon" || se(b.attributes.rel) === "apple-touch-icon" || se(b.attributes.rel) === "shortcut icon")) || b.tagName === "meta" && (y.headMetaDescKeywords && se(b.attributes.name).match(/^description|keywords$/) || y.headMetaSocial && (se(b.attributes.property).match(/^(og|twitter|fb):/) || se(b.attributes.name).match(/^(og|twitter):/) || se(b.attributes.name) === "pinterest") || y.headMetaRobots && (se(b.attributes.name) === "robots" || se(b.attributes.name) === "googlebot" || se(b.attributes.name) === "bingbot") || y.headMetaHttpEquiv && b.attributes["http-equiv"] !== void 0 || y.headMetaAuthorship && (se(b.attributes.name) === "author" || se(b.attributes.name) === "generator" || se(b.attributes.name) === "framework" || se(b.attributes.name) === "publisher" || se(b.attributes.name) === "progid" || se(b.attributes.property).match(/^article:/) || se(b.attributes.property).match(/^product:/)) || y.headMetaVerification && (se(b.attributes.name) === "google-site-verification" || se(b.attributes.name) === "yandex-verification" || se(b.attributes.name) === "csrf-token" || se(b.attributes.name) === "p:domain_verify" || se(b.attributes.name) === "verify-v1" || se(b.attributes.name) === "verification" || se(b.attributes.name) === "shopify-checkout-api-token"))));
1027
- }(L, f) && (k || L.type !== fe.Text || L.isStyle || L.textContent.replace(/^\s+|\s+$/gm, "").length) ? Ll() : -2;
1028
- const S = Object.assign(L, { id: R });
1029
- if (s.add(e, S), R === -2) return null;
1018
+ function xt(e, t) {
1019
+ const { doc: r, mirror: s, blockClass: n, blockSelector: i, maskTextClass: a, maskTextSelector: o, skipChild: l = !1, inlineStylesheet: c = !0, maskInputOptions: u = {}, maskTextFn: d, maskInputFn: p, slimDOMOptions: f, dataURLOptions: w = {}, inlineImages: h = !1, recordCanvas: C = !1, onSerialize: m, onIframeLoad: g, iframeLoadTimeout: v = 5e3, onStylesheetLoad: S, stylesheetLoadTimeout: A = 5e3, keepIframeSrcFn: k = () => !1, newlyAddedElement: M = !1 } = t;
1020
+ let { needsMask: U } = t, { preserveWhiteSpace: E = !0 } = t;
1021
+ U || (U = Ml(e, a, o, U === void 0));
1022
+ const R = rp(e, { doc: r, mirror: s, blockClass: n, blockSelector: i, needsMask: U, inlineStylesheet: c, maskInputOptions: u, maskTextFn: d, maskInputFn: p, dataURLOptions: w, inlineImages: h, recordCanvas: C, keepIframeSrcFn: k, newlyAddedElement: M });
1023
+ if (!R) return console.warn(e, "not serialized"), null;
1024
+ let L;
1025
+ L = s.hasNode(e) ? s.getId(e) : !function(b, y) {
1026
+ return !!(y.comment && b.type === me.Comment || b.type === me.Element && (y.script && (b.tagName === "script" || b.tagName === "link" && (b.attributes.rel === "preload" || b.attributes.rel === "modulepreload") && b.attributes.as === "script" || b.tagName === "link" && b.attributes.rel === "prefetch" && typeof b.attributes.href == "string" && Oo(b.attributes.href) === "js") || y.headFavicon && (b.tagName === "link" && b.attributes.rel === "shortcut icon" || b.tagName === "meta" && (te(b.attributes.name).match(/^msapplication-tile(image|color)$/) || te(b.attributes.name) === "application-name" || te(b.attributes.rel) === "icon" || te(b.attributes.rel) === "apple-touch-icon" || te(b.attributes.rel) === "shortcut icon")) || b.tagName === "meta" && (y.headMetaDescKeywords && te(b.attributes.name).match(/^description|keywords$/) || y.headMetaSocial && (te(b.attributes.property).match(/^(og|twitter|fb):/) || te(b.attributes.name).match(/^(og|twitter):/) || te(b.attributes.name) === "pinterest") || y.headMetaRobots && (te(b.attributes.name) === "robots" || te(b.attributes.name) === "googlebot" || te(b.attributes.name) === "bingbot") || y.headMetaHttpEquiv && b.attributes["http-equiv"] !== void 0 || y.headMetaAuthorship && (te(b.attributes.name) === "author" || te(b.attributes.name) === "generator" || te(b.attributes.name) === "framework" || te(b.attributes.name) === "publisher" || te(b.attributes.name) === "progid" || te(b.attributes.property).match(/^article:/) || te(b.attributes.property).match(/^product:/)) || y.headMetaVerification && (te(b.attributes.name) === "google-site-verification" || te(b.attributes.name) === "yandex-verification" || te(b.attributes.name) === "csrf-token" || te(b.attributes.name) === "p:domain_verify" || te(b.attributes.name) === "verify-v1" || te(b.attributes.name) === "verification" || te(b.attributes.name) === "shopify-checkout-api-token"))));
1027
+ }(R, f) && (E || R.type !== me.Text || R.isStyle || R.textContent.replace(/^\s+|\s+$/gm, "").length) ? Ll() : -2;
1028
+ const I = Object.assign(R, { id: L });
1029
+ if (s.add(e, I), L === -2) return null;
1030
1030
  m && m(e);
1031
- let P = !l;
1032
- if (S.type === fe.Element) {
1033
- P = P && !S.needBlock, delete S.needBlock;
1034
- const b = ye.shadowRoot(e);
1035
- b && Xt(b) && (S.isShadowHost = !0);
1036
- }
1037
- if ((S.type === fe.Document || S.type === fe.Element) && P) {
1038
- f.headWhitespace && S.type === fe.Element && S.tagName === "head" && (k = !1);
1039
- const b = { doc: r, mirror: s, blockClass: n, blockSelector: i, needsMask: A, maskTextClass: a, maskTextSelector: o, skipChild: l, inlineStylesheet: c, maskInputOptions: u, maskTextFn: d, maskInputFn: p, slimDOMOptions: f, dataURLOptions: w, inlineImages: h, recordCanvas: C, preserveWhiteSpace: k, onSerialize: m, onIframeLoad: g, iframeLoadTimeout: v, onStylesheetLoad: I, stylesheetLoadTimeout: O, keepIframeSrcFn: E };
1040
- if (!(S.type === fe.Element && S.tagName === "textarea" && S.attributes.value !== void 0)) for (const D of Array.from(ye.childNodes(e))) {
1041
- const _ = Et(D, b);
1042
- _ && S.childNodes.push(_);
1031
+ let F = !l;
1032
+ if (I.type === me.Element) {
1033
+ F = F && !I.needBlock, delete I.needBlock;
1034
+ const b = ge.shadowRoot(e);
1035
+ b && Xt(b) && (I.isShadowHost = !0);
1036
+ }
1037
+ if ((I.type === me.Document || I.type === me.Element) && F) {
1038
+ f.headWhitespace && I.type === me.Element && I.tagName === "head" && (E = !1);
1039
+ const b = { doc: r, mirror: s, blockClass: n, blockSelector: i, needsMask: U, maskTextClass: a, maskTextSelector: o, skipChild: l, inlineStylesheet: c, maskInputOptions: u, maskTextFn: d, maskInputFn: p, slimDOMOptions: f, dataURLOptions: w, inlineImages: h, recordCanvas: C, preserveWhiteSpace: E, onSerialize: m, onIframeLoad: g, iframeLoadTimeout: v, onStylesheetLoad: S, stylesheetLoadTimeout: A, keepIframeSrcFn: k };
1040
+ if (!(I.type === me.Element && I.tagName === "textarea" && I.attributes.value !== void 0)) for (const O of Array.from(ge.childNodes(e))) {
1041
+ const B = xt(O, b);
1042
+ B && I.childNodes.push(B);
1043
1043
  }
1044
1044
  let y = null;
1045
- if (xl(e) && (y = ye.shadowRoot(e))) for (const D of Array.from(ye.childNodes(y))) {
1046
- const _ = Et(D, b);
1047
- _ && (Xt(y) && (_.isShadow = !0), S.childNodes.push(_));
1045
+ if (xl(e) && (y = ge.shadowRoot(e))) for (const O of Array.from(ge.childNodes(y))) {
1046
+ const B = xt(O, b);
1047
+ B && (Xt(y) && (B.isShadow = !0), I.childNodes.push(B));
1048
1048
  }
1049
1049
  }
1050
- const M = ye.parentNode(e);
1051
- return M && Zt(M) && Xt(M) && (S.isShadow = !0), S.type === fe.Element && S.tagName === "iframe" && function(b, y, D) {
1052
- const _ = b.contentWindow;
1053
- if (!_) return;
1054
- let W, T = !1;
1050
+ const P = ge.parentNode(e);
1051
+ return P && Zt(P) && Xt(P) && (I.isShadow = !0), I.type === me.Element && I.tagName === "iframe" && function(b, y, O) {
1052
+ const B = b.contentWindow;
1053
+ if (!B) return;
1054
+ let j, T = !1;
1055
1055
  try {
1056
- W = _.document.readyState;
1056
+ j = B.document.readyState;
1057
1057
  } catch {
1058
1058
  return;
1059
1059
  }
1060
- if (W !== "complete") {
1061
- const Q = setTimeout(() => {
1060
+ if (j !== "complete") {
1061
+ const ne = setTimeout(() => {
1062
1062
  T || (y(), T = !0);
1063
- }, D);
1063
+ }, O);
1064
1064
  return void b.addEventListener("load", () => {
1065
- clearTimeout(Q), T = !0, y();
1065
+ clearTimeout(ne), T = !0, y();
1066
1066
  });
1067
1067
  }
1068
- const N = "about:blank";
1069
- if (_.location.href !== N || b.src === N || b.src === "") return setTimeout(y, 0), b.addEventListener("load", y);
1068
+ const D = "about:blank";
1069
+ if (B.location.href !== D || b.src === D || b.src === "") return setTimeout(y, 0), b.addEventListener("load", y);
1070
1070
  b.addEventListener("load", y);
1071
1071
  }(e, () => {
1072
1072
  const b = e.contentDocument;
1073
1073
  if (b && g) {
1074
- const y = Et(b, { doc: b, mirror: s, blockClass: n, blockSelector: i, needsMask: A, maskTextClass: a, maskTextSelector: o, skipChild: !1, inlineStylesheet: c, maskInputOptions: u, maskTextFn: d, maskInputFn: p, slimDOMOptions: f, dataURLOptions: w, inlineImages: h, recordCanvas: C, preserveWhiteSpace: k, onSerialize: m, onIframeLoad: g, iframeLoadTimeout: v, onStylesheetLoad: I, stylesheetLoadTimeout: O, keepIframeSrcFn: E });
1074
+ const y = xt(b, { doc: b, mirror: s, blockClass: n, blockSelector: i, needsMask: U, maskTextClass: a, maskTextSelector: o, skipChild: !1, inlineStylesheet: c, maskInputOptions: u, maskTextFn: d, maskInputFn: p, slimDOMOptions: f, dataURLOptions: w, inlineImages: h, recordCanvas: C, preserveWhiteSpace: E, onSerialize: m, onIframeLoad: g, iframeLoadTimeout: v, onStylesheetLoad: S, stylesheetLoadTimeout: A, keepIframeSrcFn: k });
1075
1075
  y && g(e, y);
1076
1076
  }
1077
- }, v), S.type === fe.Element && S.tagName === "link" && typeof S.attributes.rel == "string" && (S.attributes.rel === "stylesheet" || S.attributes.rel === "preload" && typeof S.attributes.href == "string" && Oo(S.attributes.href) === "css") && function(b, y, D) {
1078
- let _, W = !1;
1077
+ }, v), I.type === me.Element && I.tagName === "link" && typeof I.attributes.rel == "string" && (I.attributes.rel === "stylesheet" || I.attributes.rel === "preload" && typeof I.attributes.href == "string" && Oo(I.attributes.href) === "css") && function(b, y, O) {
1078
+ let B, j = !1;
1079
1079
  try {
1080
- _ = b.sheet;
1080
+ B = b.sheet;
1081
1081
  } catch {
1082
1082
  return;
1083
1083
  }
1084
- if (_) return;
1084
+ if (B) return;
1085
1085
  const T = setTimeout(() => {
1086
- W || (y(), W = !0);
1087
- }, D);
1086
+ j || (y(), j = !0);
1087
+ }, O);
1088
1088
  b.addEventListener("load", () => {
1089
- clearTimeout(T), W = !0, y();
1089
+ clearTimeout(T), j = !0, y();
1090
1090
  });
1091
1091
  }(e, () => {
1092
- if (I) {
1093
- const b = Et(e, { doc: r, mirror: s, blockClass: n, blockSelector: i, needsMask: A, maskTextClass: a, maskTextSelector: o, skipChild: !1, inlineStylesheet: c, maskInputOptions: u, maskTextFn: d, maskInputFn: p, slimDOMOptions: f, dataURLOptions: w, inlineImages: h, recordCanvas: C, preserveWhiteSpace: k, onSerialize: m, onIframeLoad: g, iframeLoadTimeout: v, onStylesheetLoad: I, stylesheetLoadTimeout: O, keepIframeSrcFn: E });
1094
- b && I(e, b);
1092
+ if (S) {
1093
+ const b = xt(e, { doc: r, mirror: s, blockClass: n, blockSelector: i, needsMask: U, maskTextClass: a, maskTextSelector: o, skipChild: !1, inlineStylesheet: c, maskInputOptions: u, maskTextFn: d, maskInputFn: p, slimDOMOptions: f, dataURLOptions: w, inlineImages: h, recordCanvas: C, preserveWhiteSpace: E, onSerialize: m, onIframeLoad: g, iframeLoadTimeout: v, onStylesheetLoad: S, stylesheetLoadTimeout: A, keepIframeSrcFn: k });
1094
+ b && S(e, b);
1095
1095
  }
1096
- }, O), S;
1096
+ }, A), I;
1097
1097
  }
1098
1098
  function sp(e) {
1099
1099
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -1114,8 +1114,8 @@ function np(e) {
1114
1114
  } });
1115
1115
  }), r;
1116
1116
  }
1117
- var xn = { exports: {} }, oe = String, Uo = function() {
1118
- return { isColorSupported: !1, reset: oe, bold: oe, dim: oe, italic: oe, underline: oe, inverse: oe, hidden: oe, strikethrough: oe, black: oe, red: oe, green: oe, yellow: oe, blue: oe, magenta: oe, cyan: oe, white: oe, gray: oe, bgBlack: oe, bgRed: oe, bgGreen: oe, bgYellow: oe, bgBlue: oe, bgMagenta: oe, bgCyan: oe, bgWhite: oe };
1117
+ var xn = { exports: {} }, ie = String, Uo = function() {
1118
+ return { isColorSupported: !1, reset: ie, bold: ie, dim: ie, italic: ie, underline: ie, inverse: ie, hidden: ie, strikethrough: ie, black: ie, red: ie, green: ie, yellow: ie, blue: ie, magenta: ie, cyan: ie, white: ie, gray: ie, bgBlack: ie, bgRed: ie, bgGreen: ie, bgYellow: ie, bgBlue: ie, bgMagenta: ie, bgCyan: ie, bgWhite: ie };
1119
1119
  };
1120
1120
  xn.exports = Uo(), xn.exports.createColors = Uo;
1121
1121
  var ip = xn.exports;
@@ -1558,7 +1558,7 @@ let { SourceMapConsumer: No, SourceMapGenerator: Fo } = De, { existsSync: hp, re
1558
1558
  };
1559
1559
  var Pl = Un;
1560
1560
  Un.default = Un;
1561
- let { SourceMapConsumer: gp, SourceMapGenerator: yp } = De, { fileURLToPath: Bo, pathToFileURL: Cr } = De, { isAbsolute: Dn, resolve: Pn } = De, { nanoid: wp } = pp, rn = De, zo = _i, bp = Pl, sn = Symbol("fromOffsetCache"), vp = !!(gp && yp), jo = !!(Pn && Dn), Jr = class {
1561
+ let { SourceMapConsumer: gp, SourceMapGenerator: yp } = De, { fileURLToPath: Bo, pathToFileURL: Cr } = De, { isAbsolute: Dn, resolve: Pn } = De, { nanoid: wp } = pp, rn = De, zo = _i, bp = Pl, sn = Symbol("fromOffsetCache"), vp = !!(gp && yp), jo = !!(Pn && Dn), qr = 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 && (!jo || /^\w+:\/\//.test(t.from) || Dn(t.from) ? this.file = t.from : this.file = Pn(t.from)), jo && vp) {
@@ -1642,8 +1642,8 @@ let { SourceMapConsumer: gp, SourceMapGenerator: yp } = De, { fileURLToPath: Bo,
1642
1642
  return this.file || this.id;
1643
1643
  }
1644
1644
  };
1645
- var Bs = Jr;
1646
- Jr.default = Jr, rn && rn.registerInput && rn.registerInput(Jr);
1645
+ var Bs = qr;
1646
+ qr.default = qr, rn && rn.registerInput && rn.registerInput(qr);
1647
1647
  let { SourceMapConsumer: _l, SourceMapGenerator: Kr } = De, { dirname: Zr, relative: Nl, resolve: Fl, sep: Bl } = De, { pathToFileURL: Wo } = De, Sp = Bs, Ip = !!(_l && Kr), Cp = !!(Zr && Fl && Nl && Bl);
1648
1648
  var zl = class {
1649
1649
  constructor(e, t, r, s) {
@@ -1788,10 +1788,10 @@ let jl, Ni, Fi, Wl, { isClean: Vl, my: Hl } = ir, Gl = Fs, $l = zs, Ep = Ns;
1788
1788
  function Yl(e) {
1789
1789
  return e.map((t) => (t.nodes && (t.nodes = Yl(t.nodes)), delete t.source, t));
1790
1790
  }
1791
- function ql(e) {
1792
- if (e[Vl] = !1, e.proxyOf.nodes) for (let t of e.proxyOf.nodes) ql(t);
1791
+ function Jl(e) {
1792
+ if (e[Vl] = !1, e.proxyOf.nodes) for (let t of e.proxyOf.nodes) Jl(t);
1793
1793
  }
1794
- let Je = class Jl extends Ep {
1794
+ let Je = class ql extends Ep {
1795
1795
  append(...t) {
1796
1796
  for (let r of t) {
1797
1797
  let s = this.normalize(r, this.last);
@@ -1855,7 +1855,7 @@ let Je = class Jl extends Ep {
1855
1855
  if (!t.text) throw new Error("Unknown node type in node creation");
1856
1856
  t = [new $l(t)];
1857
1857
  }
1858
- return t.map((s) => (s[Hl] || Jl.rebuild(s), (s = s.proxyOf).parent && s.parent.removeChild(s), s[Vl] && ql(s), s.raws.before === void 0 && r && r.raws.before !== void 0 && (s.raws.before = r.raws.before.replace(/\S/g, "")), s.parent = this.proxyOf, s));
1858
+ return t.map((s) => (s[Hl] || ql.rebuild(s), (s = s.proxyOf).parent && s.parent.removeChild(s), s[Vl] && Jl(s), s.raws.before === void 0 && r && r.raws.before !== void 0 && (s.raws.before = r.raws.before.replace(/\S/g, "")), s.parent = this.proxyOf, s));
1859
1859
  }
1860
1860
  prepend(...t) {
1861
1861
  t = t.reverse();
@@ -1946,13 +1946,13 @@ Je.registerParse = (e) => {
1946
1946
  }, Je.registerRoot = (e) => {
1947
1947
  Wl = e;
1948
1948
  };
1949
- var gt = Je;
1949
+ var yt = Je;
1950
1950
  Je.default = Je, Je.rebuild = (e) => {
1951
1951
  e.type === "atrule" ? Object.setPrototypeOf(e, Fi.prototype) : e.type === "rule" ? Object.setPrototypeOf(e, Ni.prototype) : e.type === "decl" ? Object.setPrototypeOf(e, Gl.prototype) : e.type === "comment" ? Object.setPrototypeOf(e, $l.prototype) : e.type === "root" && Object.setPrototypeOf(e, Wl.prototype), e[Hl] = !0, e.nodes && e.nodes.forEach((t) => {
1952
1952
  Je.rebuild(t);
1953
1953
  });
1954
1954
  };
1955
- let Kl, Zl, xp = gt, or = class extends xp {
1955
+ let Kl, Zl, xp = yt, or = class extends xp {
1956
1956
  constructor(e) {
1957
1957
  super({ type: "document", ...e }), this.nodes || (this.nodes = []);
1958
1958
  }
@@ -2003,7 +2003,7 @@ let Tp = Xl, Fn = class {
2003
2003
  var zi = Fn;
2004
2004
  Fn.default = Fn;
2005
2005
  const nn = 39, Vo = 34, kr = 92, Ho = 47, Er = 10, Bt = 32, xr = 12, Tr = 9, Rr = 13, Rp = 91, Lp = 93, Op = 40, Ap = 41, Mp = 123, Up = 125, Dp = 59, Pp = 42, _p = 58, Np = 64, Lr = /[\t\n\f\r "#'()/;[\\\]{}]/g, Or = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Fp = /.[\r\n"'(/\\]/, Go = /[\da-f]/i;
2006
- let Ql = gt, Xr = class extends Ql {
2006
+ let Ql = yt, Xr = class extends Ql {
2007
2007
  constructor(e) {
2008
2008
  super(e), this.type = "atrule";
2009
2009
  }
@@ -2016,7 +2016,7 @@ let Ql = gt, Xr = class extends Ql {
2016
2016
  };
2017
2017
  var ji = Xr;
2018
2018
  Xr.default = Xr, Ql.registerAtRule(Xr);
2019
- let ec, tc, rc = gt, Lt = class extends rc {
2019
+ let ec, tc, rc = yt, Ot = class extends rc {
2020
2020
  constructor(e) {
2021
2021
  super(e), this.type = "root", this.nodes || (this.nodes = []);
2022
2022
  }
@@ -2036,13 +2036,13 @@ let ec, tc, rc = gt, Lt = class extends rc {
2036
2036
  return new ec(new tc(), this, e).stringify();
2037
2037
  }
2038
2038
  };
2039
- Lt.registerLazyResult = (e) => {
2039
+ Ot.registerLazyResult = (e) => {
2040
2040
  ec = e;
2041
- }, Lt.registerProcessor = (e) => {
2041
+ }, Ot.registerProcessor = (e) => {
2042
2042
  tc = e;
2043
2043
  };
2044
- var gr = Lt;
2045
- Lt.default = Lt, rc.registerRoot(Lt);
2044
+ var gr = Ot;
2045
+ Ot.default = Ot, rc.registerRoot(Ot);
2046
2046
  let ar = { comma: (e) => ar.split(e, [","], !0), space: (e) => ar.split(e, [" ", `
2047
2047
  `, " "]), split(e, t, r) {
2048
2048
  let s = [], n = "", i = !1, a = 0, o = !1, l = "", c = !1;
@@ -2051,7 +2051,7 @@ let ar = { comma: (e) => ar.split(e, [","], !0), space: (e) => ar.split(e, [" ",
2051
2051
  } };
2052
2052
  var sc = ar;
2053
2053
  ar.default = ar;
2054
- let nc = gt, Bp = sc, Qr = class extends nc {
2054
+ let nc = yt, Bp = sc, Qr = class extends nc {
2055
2055
  constructor(e) {
2056
2056
  super(e), this.type = "rule", this.nodes || (this.nodes = []);
2057
2057
  }
@@ -2077,7 +2077,7 @@ let zp = Fs, jp = function(e, t = {}) {
2077
2077
  }, nextToken: function(v) {
2078
2078
  if (m.length) return m.pop();
2079
2079
  if (h >= w) return;
2080
- let I = !!v && v.ignoreUnclosed;
2080
+ let S = !!v && v.ignoreUnclosed;
2081
2081
  switch (r = p.charCodeAt(h), r) {
2082
2082
  case Er:
2083
2083
  case Bt:
@@ -2097,8 +2097,8 @@ let zp = Fs, jp = function(e, t = {}) {
2097
2097
  case _p:
2098
2098
  case Dp:
2099
2099
  case Ap: {
2100
- let O = String.fromCharCode(r);
2101
- d = [O, O, h];
2100
+ let A = String.fromCharCode(r);
2101
+ d = [A, A, h];
2102
2102
  break;
2103
2103
  }
2104
2104
  case Op:
@@ -2106,7 +2106,7 @@ let zp = Fs, jp = function(e, t = {}) {
2106
2106
  s = h;
2107
2107
  do {
2108
2108
  if (o = !1, s = p.indexOf(")", s + 1), s === -1) {
2109
- if (f || I) {
2109
+ if (f || S) {
2110
2110
  s = h;
2111
2111
  break;
2112
2112
  }
@@ -2122,7 +2122,7 @@ let zp = Fs, jp = function(e, t = {}) {
2122
2122
  n = r === nn ? "'" : '"', s = h;
2123
2123
  do {
2124
2124
  if (o = !1, s = p.indexOf(n, s + 1), s === -1) {
2125
- if (f || I) {
2125
+ if (f || S) {
2126
2126
  s = h + 1;
2127
2127
  break;
2128
2128
  }
@@ -2144,7 +2144,7 @@ let zp = Fs, jp = function(e, t = {}) {
2144
2144
  d = ["word", p.slice(h, s + 1), h, s], h = s;
2145
2145
  break;
2146
2146
  default:
2147
- r === Ho && p.charCodeAt(h + 1) === Pp ? (s = p.indexOf("*/", h + 2) + 1, s === 0 && (f || I ? s = p.length : g("comment")), d = ["comment", p.slice(h, s + 1), h, s], h = s) : (Or.lastIndex = h + 1, Or.test(p), s = Or.lastIndex === 0 ? p.length - 1 : Or.lastIndex - 2, d = ["word", p.slice(h, s + 1), h, s], C.push(d), h = s);
2147
+ r === Ho && p.charCodeAt(h + 1) === Pp ? (s = p.indexOf("*/", h + 2) + 1, s === 0 && (f || S ? s = p.length : g("comment")), d = ["comment", p.slice(h, s + 1), h, s], h = s) : (Or.lastIndex = h + 1, Or.test(p), s = Or.lastIndex === 0 ? p.length - 1 : Or.lastIndex - 2, d = ["word", p.slice(h, s + 1), h, s], C.push(d), h = s);
2148
2148
  }
2149
2149
  return h++, d;
2150
2150
  }, position: function() {
@@ -2396,9 +2396,9 @@ var Gp = 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 $p = gt, Yp = Gp, qp = Bs;
2399
+ let $p = yt, Yp = Gp, Jp = Bs;
2400
2400
  function es(e, t) {
2401
- let r = new qp(e, t), s = new Yp(r);
2401
+ let r = new Jp(e, t), s = new Yp(r);
2402
2402
  try {
2403
2403
  s.parse();
2404
2404
  } catch (n) {
@@ -2408,7 +2408,7 @@ function es(e, t) {
2408
2408
  }
2409
2409
  var Vi = es;
2410
2410
  es.default = es, $p.registerParse(es);
2411
- let { isClean: Ne, my: Jp } = ir, Kp = zl, Zp = _s, Xp = gt, Qp = Bi, qo = zi, eh = Vi, th = gr;
2411
+ let { isClean: _e, my: qp } = ir, Kp = zl, Zp = _s, Xp = yt, Qp = Bi, Jo = zi, eh = Vi, th = gr;
2412
2412
  const rh = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, sh = { 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 }, nh = { Once: !0, postcssPlugin: !0, prepare: !0 };
2413
2413
  function zt(e) {
2414
2414
  return typeof e == "object" && typeof e.then == "function";
@@ -2417,17 +2417,17 @@ function ic(e) {
2417
2417
  let t = !1, r = rh[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"] : ic(e), { eventIndex: 0, events: t, iterator: 0, node: e, visitorIndex: 0, visitors: [] };
2423
2423
  }
2424
2424
  function Bn(e) {
2425
- return e[Ne] = !1, e.nodes && e.nodes.forEach((t) => Bn(t)), e;
2425
+ return e[_e] = !1, e.nodes && e.nodes.forEach((t) => Bn(t)), e;
2426
2426
  }
2427
- let zn = {}, xt = class oc {
2427
+ let zn = {}, Tt = class oc {
2428
2428
  constructor(t, r, s) {
2429
2429
  let n;
2430
- if (this.stringified = !1, this.processed = !1, typeof r != "object" || r === null || r.type !== "root" && r.type !== "document") if (r instanceof oc || r instanceof qo) n = Bn(r.root), r.map && (s.map === void 0 && (s.map = {}), s.map.inline || (s.map.inline = !1), s.map.prev = r.map);
2430
+ if (this.stringified = !1, this.processed = !1, typeof r != "object" || r === null || r.type !== "root" && r.type !== "document") if (r instanceof oc || r instanceof Jo) n = Bn(r.root), r.map && (s.map === void 0 && (s.map = {}), s.map.inline || (s.map.inline = !1), s.map.prev = r.map);
2431
2431
  else {
2432
2432
  let i = eh;
2433
2433
  s.syntax && (i = s.syntax.parse), s.parser && (i = s.parser), i.parse && (i = i.parse);
@@ -2436,10 +2436,10 @@ let zn = {}, xt = class oc {
2436
2436
  } catch (a) {
2437
2437
  this.processed = !0, this.error = a;
2438
2438
  }
2439
- n && !n[Jp] && Xp.rebuild(n);
2439
+ n && !n[qp] && Xp.rebuild(n);
2440
2440
  }
2441
2441
  else n = Bn(r);
2442
- this.result = new qo(t, n, s), this.helpers = { ...zn, postcss: zn, result: this.result }, this.plugins = this.processor.plugins.map((i) => typeof i == "object" && i.prepare ? { ...i, ...i.prepare(this.result) } : i);
2442
+ this.result = new Jo(t, n, s), this.helpers = { ...zn, postcss: zn, result: this.result }, this.plugins = this.processor.plugins.map((i) => typeof i == "object" && i.prepare ? { ...i, ...i.prepare(this.result) } : i);
2443
2443
  }
2444
2444
  async() {
2445
2445
  return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
@@ -2486,9 +2486,9 @@ let zn = {}, xt = class oc {
2486
2486
  }
2487
2487
  if (this.prepareVisitors(), this.hasListener) {
2488
2488
  let t = this.result.root;
2489
- for (; !t[Ne]; ) {
2490
- t[Ne] = !0;
2491
- let r = [Jo(t)];
2489
+ for (; !t[_e]; ) {
2490
+ t[_e] = !0;
2491
+ let r = [qo(t)];
2492
2492
  for (; r.length > 0; ) {
2493
2493
  let s = this.visitTick(r);
2494
2494
  if (zt(s)) try {
@@ -2545,7 +2545,7 @@ let zn = {}, xt = class oc {
2545
2545
  if (zt(this.runOnRoot(t))) throw this.getAsyncError();
2546
2546
  if (this.prepareVisitors(), this.hasListener) {
2547
2547
  let t = this.result.root;
2548
- for (; !t[Ne]; ) t[Ne] = !0, this.walkSync(t);
2548
+ for (; !t[_e]; ) t[_e] = !0, this.walkSync(t);
2549
2549
  if (this.listeners.OnceExit) if (t.type === "document") for (let r of t.nodes) this.visitSync(this.listeners.OnceExit, r);
2550
2550
  else this.visitSync(this.listeners.OnceExit, t);
2551
2551
  }
@@ -2584,22 +2584,22 @@ let zn = {}, xt = class oc {
2584
2584
  }
2585
2585
  if (r.iterator !== 0) {
2586
2586
  let a, o = r.iterator;
2587
- for (; a = s.nodes[s.indexes[o]]; ) if (s.indexes[o] += 1, !a[Ne]) return a[Ne] = !0, void t.push(Jo(a));
2587
+ for (; a = s.nodes[s.indexes[o]]; ) if (s.indexes[o] += 1, !a[_e]) return a[_e] = !0, void t.push(qo(a));
2588
2588
  r.iterator = 0, delete s.indexes[o];
2589
2589
  }
2590
2590
  let i = r.events;
2591
2591
  for (; r.eventIndex < i.length; ) {
2592
2592
  let a = i[r.eventIndex];
2593
- if (r.eventIndex += 1, a === 0) return void (s.nodes && s.nodes.length && (s[Ne] = !0, r.iterator = s.getIterator()));
2593
+ if (r.eventIndex += 1, a === 0) return void (s.nodes && s.nodes.length && (s[_e] = !0, r.iterator = s.getIterator()));
2594
2594
  if (this.listeners[a]) return void (r.visitors = this.listeners[a]);
2595
2595
  }
2596
2596
  t.pop();
2597
2597
  }
2598
2598
  walkSync(t) {
2599
- t[Ne] = !0;
2599
+ t[_e] = !0;
2600
2600
  let r = ic(t);
2601
2601
  for (let s of r) if (s === 0) t.nodes && t.each((n) => {
2602
- n[Ne] || this.walkSync(n);
2602
+ n[_e] || this.walkSync(n);
2603
2603
  });
2604
2604
  else {
2605
2605
  let n = this.listeners[s];
@@ -2634,11 +2634,11 @@ let zn = {}, xt = class oc {
2634
2634
  return "LazyResult";
2635
2635
  }
2636
2636
  };
2637
- xt.registerPostcss = (e) => {
2637
+ Tt.registerPostcss = (e) => {
2638
2638
  zn = e;
2639
2639
  };
2640
- var ac = xt;
2641
- xt.default = xt, th.registerLazyResult(xt), Qp.registerLazyResult(xt);
2640
+ var ac = Tt;
2641
+ Tt.default = Tt, th.registerLazyResult(Tt), Qp.registerLazyResult(Tt);
2642
2642
  let ih = zl, oh = _s, ah = Vi;
2643
2643
  const lh = zi;
2644
2644
  let jn = class {
@@ -2757,7 +2757,7 @@ function lr(e, t) {
2757
2757
  }
2758
2758
  var Ih = lr;
2759
2759
  lr.default = lr;
2760
- let Ch = _i, Ko = Fs, kh = ac, Eh = gt, Wn = mh, xh = _s, Th = Ih, Zo = Bi, Rh = Xl, Xo = zs, Qo = ji, Lh = zi, Oh = Bs, Ah = Vi, Mh = sc, ea = Wi, ta = gr, Uh = Ns;
2760
+ let Ch = _i, Ko = Fs, kh = ac, Eh = yt, Wn = mh, xh = _s, Th = Ih, Zo = Bi, Rh = Xl, Xo = zs, Qo = ji, Lh = zi, Oh = Bs, Ah = Vi, Mh = sc, ea = Wi, ta = gr, Uh = Ns;
2761
2761
  function Z(...e) {
2762
2762
  return e.length === 1 && Array.isArray(e[0]) && (e = e[0]), new Wn(e);
2763
2763
  }
@@ -2776,9 +2776,9 @@ https://www.w3ctech.com/topic/2226`));
2776
2776
  }, Z.stringify = xh, Z.parse = Ah, Z.fromJSON = Th, Z.list = Mh, Z.comment = (e) => new Xo(e), Z.atRule = (e) => new Qo(e), Z.decl = (e) => new Ko(e), Z.rule = (e) => new ea(e), Z.root = (e) => new ta(e), Z.document = (e) => new Zo(e), Z.CssSyntaxError = Ch, Z.Declaration = Ko, Z.Container = Eh, Z.Processor = Wn, Z.Document = Zo, Z.Comment = Xo, Z.Warning = Rh, Z.AtRule = Qo, Z.Result = Lh, Z.Input = Oh, Z.Rule = ea, Z.Root = ta, Z.Node = Uh, kh.registerPostcss(Z);
2777
2777
  var Dh = Z;
2778
2778
  Z.default = Z;
2779
- const le = sp(Dh);
2780
- le.stringify, le.fromJSON, le.plugin, le.parse, le.list, le.document, le.comment, le.atRule, le.rule, le.decl, le.root, le.CssSyntaxError, le.Declaration, le.Container, le.Processor, le.Document, le.Comment, le.Warning, le.AtRule, le.Result, le.Input, le.Rule, le.Root, le.Node;
2781
- var Ph = Object.defineProperty, Le = (e, t, r) => ((s, n, i) => n in s ? Ph(s, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[n] = i)(e, typeof t != "symbol" ? t + "" : t, r);
2779
+ const ae = sp(Dh);
2780
+ ae.stringify, ae.fromJSON, ae.plugin, ae.parse, ae.list, ae.document, ae.comment, ae.atRule, ae.rule, ae.decl, ae.root, ae.CssSyntaxError, ae.Declaration, ae.Container, ae.Processor, ae.Document, ae.Comment, ae.Warning, ae.AtRule, ae.Result, ae.Input, ae.Rule, ae.Root, ae.Node;
2781
+ var Ph = Object.defineProperty, Re = (e, t, r) => ((s, n, i) => n in s ? Ph(s, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[n] = i)(e, typeof t != "symbol" ? t + "" : t, r);
2782
2782
  function _h(e) {
2783
2783
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2784
2784
  }
@@ -2798,8 +2798,8 @@ function Nh(e) {
2798
2798
  } });
2799
2799
  }), r;
2800
2800
  }
2801
- var Vn = { exports: {} }, ae = String, ra = function() {
2802
- return { isColorSupported: !1, reset: ae, bold: ae, dim: ae, italic: ae, underline: ae, inverse: ae, hidden: ae, strikethrough: ae, black: ae, red: ae, green: ae, yellow: ae, blue: ae, magenta: ae, cyan: ae, white: ae, gray: ae, bgBlack: ae, bgRed: ae, bgGreen: ae, bgYellow: ae, bgBlue: ae, bgMagenta: ae, bgCyan: ae, bgWhite: ae };
2801
+ var Vn = { exports: {} }, oe = String, ra = function() {
2802
+ return { isColorSupported: !1, reset: oe, bold: oe, dim: oe, italic: oe, underline: oe, inverse: oe, hidden: oe, strikethrough: oe, black: oe, red: oe, green: oe, yellow: oe, blue: oe, magenta: oe, cyan: oe, white: oe, gray: oe, bgBlack: oe, bgRed: oe, bgGreen: oe, bgYellow: oe, bgBlue: oe, bgMagenta: oe, bgCyan: oe, bgWhite: oe };
2803
2803
  };
2804
2804
  Vn.exports = ra(), Vn.exports.createColors = ra;
2805
2805
  var Fh = Vn.exports;
@@ -3013,7 +3013,7 @@ function Yn(e, t) {
3013
3013
  }
3014
3014
  return r;
3015
3015
  }
3016
- let qn = class {
3016
+ let Jn = class {
3017
3017
  constructor(e = {}) {
3018
3018
  this.raws = {}, this[Ar] = !1, this[zh] = !0;
3019
3019
  for (let t in e) if (t === "nodes") {
@@ -3158,9 +3158,9 @@ let qn = class {
3158
3158
  return this;
3159
3159
  }
3160
3160
  };
3161
- var Ws = qn;
3162
- qn.default = qn;
3163
- let Hh = Ws, Jn = class extends Hh {
3161
+ var Ws = Jn;
3162
+ Jn.default = Jn;
3163
+ let Hh = Ws, qn = class extends Hh {
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 Hh = Ws, Jn = class extends Hh {
3168
3168
  return this.prop.startsWith("--") || this.prop[0] === "$";
3169
3169
  }
3170
3170
  };
3171
- var Vs = Jn;
3172
- Jn.default = Jn;
3171
+ var Vs = qn;
3172
+ qn.default = qn;
3173
3173
  var Gh = { 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: oa, SourceMapGenerator: aa } = Pe, { existsSync: $h, readFileSync: Yh } = Pe, { dirname: on, join: qh } = Pe, Kn = class {
3178
+ let { SourceMapConsumer: oa, SourceMapGenerator: aa } = Pe, { existsSync: $h, readFileSync: Yh } = Pe, { dirname: on, join: Jh } = Pe, Kn = 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:");
@@ -3229,7 +3229,7 @@ let { SourceMapConsumer: oa, SourceMapGenerator: aa } = Pe, { existsSync: $h, 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 = qh(on(e), r)), this.loadFile(r);
3232
+ return e && (r = Jh(on(e), r)), this.loadFile(r);
3233
3233
  }
3234
3234
  }
3235
3235
  }
@@ -3242,7 +3242,7 @@ let { SourceMapConsumer: oa, SourceMapGenerator: aa } = Pe, { existsSync: $h, re
3242
3242
  };
3243
3243
  var uc = Kn;
3244
3244
  Kn.default = Kn;
3245
- let { SourceMapConsumer: Jh, SourceMapGenerator: Kh } = Pe, { fileURLToPath: la, pathToFileURL: Mr } = Pe, { isAbsolute: Zn, resolve: Xn } = Pe, { nanoid: Zh } = Gh, an = Pe, ca = Hi, Xh = uc, ln = Symbol("fromOffsetCache"), Qh = !!(Jh && Kh), ua = !!(Xn && Zn), ts = class {
3245
+ let { SourceMapConsumer: qh, SourceMapGenerator: Kh } = Pe, { fileURLToPath: la, pathToFileURL: Mr } = Pe, { isAbsolute: Zn, resolve: Xn } = Pe, { nanoid: Zh } = Gh, an = Pe, ca = Hi, Xh = uc, ln = Symbol("fromOffsetCache"), Qh = !!(qh && Kh), ua = !!(Xn && Zn), ts = 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 && (!ua || /^\w+:\/\//.test(t.from) || Zn(t.from) ? this.file = t.from : this.file = Xn(t.from)), ua && Qh) {
@@ -3475,7 +3475,7 @@ function Ic(e) {
3475
3475
  function Cc(e) {
3476
3476
  if (e[wc] = !1, e.proxyOf.nodes) for (let t of e.proxyOf.nodes) Cc(t);
3477
3477
  }
3478
- let Ke = class kc extends nm {
3478
+ let qe = class kc extends nm {
3479
3479
  append(...t) {
3480
3480
  for (let r of t) {
3481
3481
  let s = this.normalize(r, this.last);
@@ -3621,22 +3621,22 @@ let Ke = class kc extends nm {
3621
3621
  if (this.proxyOf.nodes) return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
3622
3622
  }
3623
3623
  };
3624
- Ke.registerParse = (e) => {
3624
+ qe.registerParse = (e) => {
3625
3625
  gc = e;
3626
- }, Ke.registerRule = (e) => {
3626
+ }, qe.registerRule = (e) => {
3627
3627
  Gi = e;
3628
- }, Ke.registerAtRule = (e) => {
3628
+ }, qe.registerAtRule = (e) => {
3629
3629
  $i = e;
3630
- }, Ke.registerRoot = (e) => {
3630
+ }, qe.registerRoot = (e) => {
3631
3631
  yc = e;
3632
3632
  };
3633
- var yt = Ke;
3634
- Ke.default = Ke, Ke.rebuild = (e) => {
3633
+ var wt = qe;
3634
+ qe.default = qe, qe.rebuild = (e) => {
3635
3635
  e.type === "atrule" ? Object.setPrototypeOf(e, $i.prototype) : e.type === "rule" ? Object.setPrototypeOf(e, Gi.prototype) : e.type === "decl" ? Object.setPrototypeOf(e, vc.prototype) : e.type === "comment" ? Object.setPrototypeOf(e, Sc.prototype) : e.type === "root" && Object.setPrototypeOf(e, yc.prototype), e[bc] = !0, e.nodes && e.nodes.forEach((t) => {
3636
- Ke.rebuild(t);
3636
+ qe.rebuild(t);
3637
3637
  });
3638
3638
  };
3639
- let Ec, xc, im = yt, ur = class extends im {
3639
+ let Ec, xc, im = wt, ur = class extends im {
3640
3640
  constructor(e) {
3641
3641
  super({ type: "document", ...e }), this.nodes || (this.nodes = []);
3642
3642
  }
@@ -3684,10 +3684,10 @@ let om = Tc, ti = class {
3684
3684
  return this.css;
3685
3685
  }
3686
3686
  };
3687
- var qi = ti;
3687
+ var Ji = ti;
3688
3688
  ti.default = ti;
3689
3689
  const cn = 39, pa = 34, Ur = 92, ha = 47, Dr = 10, jt = 32, Pr = 12, _r = 9, Nr = 13, am = 91, lm = 93, cm = 40, um = 41, dm = 123, pm = 125, hm = 59, mm = 42, fm = 58, gm = 64, Fr = /[\t\n\f\r "#'()/;[\\\]{}]/g, Br = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, ym = /.[\r\n"'(/\\]/, ma = /[\da-f]/i;
3690
- let Rc = yt, ns = class extends Rc {
3690
+ let Rc = wt, ns = class extends Rc {
3691
3691
  constructor(e) {
3692
3692
  super(e), this.type = "atrule";
3693
3693
  }
@@ -3698,9 +3698,9 @@ let Rc = yt, ns = class extends Rc {
3698
3698
  return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e);
3699
3699
  }
3700
3700
  };
3701
- var Ji = ns;
3701
+ var qi = ns;
3702
3702
  ns.default = ns, Rc.registerAtRule(ns);
3703
- let Lc, Oc, Ac = yt, Ot = class extends Ac {
3703
+ let Lc, Oc, Ac = wt, At = class extends Ac {
3704
3704
  constructor(e) {
3705
3705
  super(e), this.type = "root", this.nodes || (this.nodes = []);
3706
3706
  }
@@ -3720,13 +3720,13 @@ let Lc, Oc, Ac = yt, Ot = class extends Ac {
3720
3720
  return new Lc(new Oc(), this, e).stringify();
3721
3721
  }
3722
3722
  };
3723
- Ot.registerLazyResult = (e) => {
3723
+ At.registerLazyResult = (e) => {
3724
3724
  Lc = e;
3725
- }, Ot.registerProcessor = (e) => {
3725
+ }, At.registerProcessor = (e) => {
3726
3726
  Oc = e;
3727
3727
  };
3728
- var yr = Ot;
3729
- Ot.default = Ot, Ac.registerRoot(Ot);
3728
+ var yr = At;
3729
+ At.default = At, Ac.registerRoot(At);
3730
3730
  let dr = { comma: (e) => dr.split(e, [","], !0), space: (e) => dr.split(e, [" ", `
3731
3731
  `, " "]), split(e, t, r) {
3732
3732
  let s = [], n = "", i = !1, a = 0, o = !1, l = "", c = !1;
@@ -3735,7 +3735,7 @@ let dr = { comma: (e) => dr.split(e, [","], !0), space: (e) => dr.split(e, [" ",
3735
3735
  } };
3736
3736
  var Mc = dr;
3737
3737
  dr.default = dr;
3738
- let Uc = yt, wm = Mc, is = class extends Uc {
3738
+ let Uc = wt, wm = Mc, is = class extends Uc {
3739
3739
  constructor(e) {
3740
3740
  super(e), this.type = "rule", this.nodes || (this.nodes = []);
3741
3741
  }
@@ -3761,7 +3761,7 @@ let bm = Vs, vm = function(e, t = {}) {
3761
3761
  }, nextToken: function(v) {
3762
3762
  if (m.length) return m.pop();
3763
3763
  if (h >= w) return;
3764
- let I = !!v && v.ignoreUnclosed;
3764
+ let S = !!v && v.ignoreUnclosed;
3765
3765
  switch (r = p.charCodeAt(h), r) {
3766
3766
  case Dr:
3767
3767
  case jt:
@@ -3781,8 +3781,8 @@ let bm = Vs, vm = function(e, t = {}) {
3781
3781
  case fm:
3782
3782
  case hm:
3783
3783
  case um: {
3784
- let O = String.fromCharCode(r);
3785
- d = [O, O, h];
3784
+ let A = String.fromCharCode(r);
3785
+ d = [A, A, h];
3786
3786
  break;
3787
3787
  }
3788
3788
  case cm:
@@ -3790,7 +3790,7 @@ let bm = Vs, vm = function(e, t = {}) {
3790
3790
  s = h;
3791
3791
  do {
3792
3792
  if (o = !1, s = p.indexOf(")", s + 1), s === -1) {
3793
- if (f || I) {
3793
+ if (f || S) {
3794
3794
  s = h;
3795
3795
  break;
3796
3796
  }
@@ -3806,7 +3806,7 @@ let bm = Vs, vm = function(e, t = {}) {
3806
3806
  n = r === cn ? "'" : '"', s = h;
3807
3807
  do {
3808
3808
  if (o = !1, s = p.indexOf(n, s + 1), s === -1) {
3809
- if (f || I) {
3809
+ if (f || S) {
3810
3810
  s = h + 1;
3811
3811
  break;
3812
3812
  }
@@ -3828,13 +3828,13 @@ let bm = Vs, vm = function(e, t = {}) {
3828
3828
  d = ["word", p.slice(h, s + 1), h, s], h = s;
3829
3829
  break;
3830
3830
  default:
3831
- r === ha && p.charCodeAt(h + 1) === mm ? (s = p.indexOf("*/", h + 2) + 1, s === 0 && (f || I ? s = p.length : g("comment")), d = ["comment", p.slice(h, s + 1), h, s], h = s) : (Br.lastIndex = h + 1, Br.test(p), s = Br.lastIndex === 0 ? p.length - 1 : Br.lastIndex - 2, d = ["word", p.slice(h, s + 1), h, s], C.push(d), h = s);
3831
+ r === ha && p.charCodeAt(h + 1) === mm ? (s = p.indexOf("*/", h + 2) + 1, s === 0 && (f || S ? s = p.length : g("comment")), d = ["comment", p.slice(h, s + 1), h, s], h = s) : (Br.lastIndex = h + 1, Br.test(p), s = Br.lastIndex === 0 ? p.length - 1 : Br.lastIndex - 2, d = ["word", p.slice(h, s + 1), h, s], C.push(d), h = s);
3832
3832
  }
3833
3833
  return h++, d;
3834
3834
  }, position: function() {
3835
3835
  return h;
3836
3836
  } };
3837
- }, Sm = Gs, Im = Ji, Cm = yr, fa = Ki;
3837
+ }, Sm = Gs, Im = qi, Cm = yr, fa = Ki;
3838
3838
  const ga = { empty: !0, space: !0 };
3839
3839
  var km = class {
3840
3840
  constructor(e) {
@@ -4080,7 +4080,7 @@ var km = 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 Em = yt, xm = km, Tm = Hs;
4083
+ let Em = wt, xm = km, Tm = Hs;
4084
4084
  function os(e, t) {
4085
4085
  let r = new Tm(e, t), s = new xm(r);
4086
4086
  try {
@@ -4092,7 +4092,7 @@ function os(e, t) {
4092
4092
  }
4093
4093
  var Zi = os;
4094
4094
  os.default = os, Em.registerParse(os);
4095
- let { isClean: Fe, my: Rm } = cr, Lm = fc, Om = js, Am = yt, Mm = Yi, ya = qi, Um = Zi, Dm = yr;
4095
+ let { isClean: Ne, my: Rm } = cr, Lm = fc, Om = js, Am = wt, Mm = Yi, ya = Ji, Um = Zi, Dm = yr;
4096
4096
  const Pm = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, _m = { 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 }, Nm = { Once: !0, postcssPlugin: !0, prepare: !0 };
4097
4097
  function Wt(e) {
4098
4098
  return typeof e == "object" && typeof e.then == "function";
@@ -4106,9 +4106,9 @@ function wa(e) {
4106
4106
  return t = e.type === "document" ? ["Document", 0, "DocumentExit"] : e.type === "root" ? ["Root", 0, "RootExit"] : Dc(e), { eventIndex: 0, events: t, iterator: 0, node: e, visitorIndex: 0, visitors: [] };
4107
4107
  }
4108
4108
  function ri(e) {
4109
- return e[Fe] = !1, e.nodes && e.nodes.forEach((t) => ri(t)), e;
4109
+ return e[Ne] = !1, e.nodes && e.nodes.forEach((t) => ri(t)), e;
4110
4110
  }
4111
- let si = {}, Tt = class Pc {
4111
+ let si = {}, Rt = class Pc {
4112
4112
  constructor(t, r, s) {
4113
4113
  let n;
4114
4114
  if (this.stringified = !1, this.processed = !1, typeof r != "object" || r === null || r.type !== "root" && r.type !== "document") if (r instanceof Pc || r instanceof ya) n = ri(r.root), r.map && (s.map === void 0 && (s.map = {}), s.map.inline || (s.map.inline = !1), s.map.prev = r.map);
@@ -4170,8 +4170,8 @@ let si = {}, Tt = class Pc {
4170
4170
  }
4171
4171
  if (this.prepareVisitors(), this.hasListener) {
4172
4172
  let t = this.result.root;
4173
- for (; !t[Fe]; ) {
4174
- t[Fe] = !0;
4173
+ for (; !t[Ne]; ) {
4174
+ t[Ne] = !0;
4175
4175
  let r = [wa(t)];
4176
4176
  for (; r.length > 0; ) {
4177
4177
  let s = this.visitTick(r);
@@ -4229,7 +4229,7 @@ let si = {}, Tt = class Pc {
4229
4229
  if (Wt(this.runOnRoot(t))) throw this.getAsyncError();
4230
4230
  if (this.prepareVisitors(), this.hasListener) {
4231
4231
  let t = this.result.root;
4232
- for (; !t[Fe]; ) t[Fe] = !0, this.walkSync(t);
4232
+ for (; !t[Ne]; ) t[Ne] = !0, this.walkSync(t);
4233
4233
  if (this.listeners.OnceExit) if (t.type === "document") for (let r of t.nodes) this.visitSync(this.listeners.OnceExit, r);
4234
4234
  else this.visitSync(this.listeners.OnceExit, t);
4235
4235
  }
@@ -4268,22 +4268,22 @@ let si = {}, Tt = class Pc {
4268
4268
  }
4269
4269
  if (r.iterator !== 0) {
4270
4270
  let a, o = r.iterator;
4271
- for (; a = s.nodes[s.indexes[o]]; ) if (s.indexes[o] += 1, !a[Fe]) return a[Fe] = !0, void t.push(wa(a));
4271
+ for (; a = s.nodes[s.indexes[o]]; ) if (s.indexes[o] += 1, !a[Ne]) return a[Ne] = !0, void t.push(wa(a));
4272
4272
  r.iterator = 0, delete s.indexes[o];
4273
4273
  }
4274
4274
  let i = r.events;
4275
4275
  for (; r.eventIndex < i.length; ) {
4276
4276
  let a = i[r.eventIndex];
4277
- if (r.eventIndex += 1, a === 0) return void (s.nodes && s.nodes.length && (s[Fe] = !0, r.iterator = s.getIterator()));
4277
+ if (r.eventIndex += 1, a === 0) return void (s.nodes && s.nodes.length && (s[Ne] = !0, r.iterator = s.getIterator()));
4278
4278
  if (this.listeners[a]) return void (r.visitors = this.listeners[a]);
4279
4279
  }
4280
4280
  t.pop();
4281
4281
  }
4282
4282
  walkSync(t) {
4283
- t[Fe] = !0;
4283
+ t[Ne] = !0;
4284
4284
  let r = Dc(t);
4285
4285
  for (let s of r) if (s === 0) t.nodes && t.each((n) => {
4286
- n[Fe] || this.walkSync(n);
4286
+ n[Ne] || this.walkSync(n);
4287
4287
  });
4288
4288
  else {
4289
4289
  let n = this.listeners[s];
@@ -4318,13 +4318,13 @@ let si = {}, Tt = class Pc {
4318
4318
  return "LazyResult";
4319
4319
  }
4320
4320
  };
4321
- Tt.registerPostcss = (e) => {
4321
+ Rt.registerPostcss = (e) => {
4322
4322
  si = e;
4323
4323
  };
4324
- var _c = Tt;
4325
- Tt.default = Tt, Dm.registerLazyResult(Tt), Mm.registerLazyResult(Tt);
4324
+ var _c = Rt;
4325
+ Rt.default = Rt, Dm.registerLazyResult(Rt), Mm.registerLazyResult(Rt);
4326
4326
  let Fm = fc, Bm = js, zm = Zi;
4327
- const jm = qi;
4327
+ const jm = Ji;
4328
4328
  let ni = class {
4329
4329
  constructor(e, t, r) {
4330
4330
  let s;
@@ -4417,7 +4417,7 @@ let Vm = Wm, Hm = _c, Gm = Yi, $m = yr, Gt = class {
4417
4417
  };
4418
4418
  var Ym = Gt;
4419
4419
  Gt.default = Gt, $m.registerProcessor(Gt), Gm.registerProcessor(Gt);
4420
- let qm = Vs, Jm = uc, Km = Gs, Zm = Ji, Xm = Hs, Qm = yr, ef = Ki;
4420
+ let Jm = Vs, qm = uc, Km = Gs, Zm = qi, Xm = Hs, Qm = yr, ef = Ki;
4421
4421
  function pr(e, t) {
4422
4422
  if (Array.isArray(e)) return e.map((n) => pr(n));
4423
4423
  let { inputs: r, ...s } = e;
@@ -4425,7 +4425,7 @@ function pr(e, t) {
4425
4425
  t = [];
4426
4426
  for (let n of r) {
4427
4427
  let i = { ...n, __proto__: Xm.prototype };
4428
- i.map && (i.map = { ...i.map, __proto__: Jm.prototype }), t.push(i);
4428
+ i.map && (i.map = { ...i.map, __proto__: qm.prototype }), t.push(i);
4429
4429
  }
4430
4430
  }
4431
4431
  if (s.nodes && (s.nodes = e.nodes.map((n) => pr(n, t))), s.source) {
@@ -4433,7 +4433,7 @@ function pr(e, t) {
4433
4433
  s.source = i, n != null && (s.source.input = t[n]);
4434
4434
  }
4435
4435
  if (s.type === "root") return new Qm(s);
4436
- if (s.type === "decl") return new qm(s);
4436
+ if (s.type === "decl") return new Jm(s);
4437
4437
  if (s.type === "rule") return new ef(s);
4438
4438
  if (s.type === "comment") return new Km(s);
4439
4439
  if (s.type === "atrule") return new Zm(s);
@@ -4441,7 +4441,7 @@ function pr(e, t) {
4441
4441
  }
4442
4442
  var tf = pr;
4443
4443
  pr.default = pr;
4444
- let rf = Hi, ba = Vs, sf = _c, nf = yt, ii = Ym, of = js, af = tf, va = Yi, lf = Tc, Sa = Gs, Ia = Ji, cf = qi, uf = Hs, df = Zi, pf = Mc, Ca = Ki, ka = yr, hf = Ws;
4444
+ let rf = Hi, ba = Vs, sf = _c, nf = wt, ii = Ym, of = js, af = tf, va = Yi, lf = Tc, Sa = Gs, Ia = qi, cf = Ji, uf = Hs, df = Zi, pf = Mc, Ca = Ki, ka = yr, hf = Ws;
4445
4445
  function X(...e) {
4446
4446
  return e.length === 1 && Array.isArray(e[0]) && (e = e[0]), new ii(e);
4447
4447
  }
@@ -4460,11 +4460,11 @@ https://www.w3ctech.com/topic/2226`));
4460
4460
  }, X.stringify = of, X.parse = df, X.fromJSON = af, X.list = pf, X.comment = (e) => new Sa(e), X.atRule = (e) => new Ia(e), X.decl = (e) => new ba(e), X.rule = (e) => new Ca(e), X.root = (e) => new ka(e), X.document = (e) => new va(e), X.CssSyntaxError = rf, X.Declaration = ba, X.Container = nf, X.Processor = ii, X.Document = va, X.Comment = Sa, X.Warning = lf, X.AtRule = Ia, X.Result = cf, X.Input = uf, X.Rule = Ca, X.Root = ka, X.Node = hf, sf.registerPostcss(X);
4461
4461
  var mf = X;
4462
4462
  X.default = X;
4463
- const ce = _h(mf);
4464
- ce.stringify, ce.fromJSON, ce.plugin, ce.parse, ce.list, ce.document, ce.comment, ce.atRule, ce.rule, ce.decl, ce.root, ce.CssSyntaxError, ce.Declaration, ce.Container, ce.Processor, ce.Document, ce.Comment, ce.Warning, ce.AtRule, ce.Result, ce.Input, ce.Rule, ce.Root, ce.Node;
4463
+ const le = _h(mf);
4464
+ le.stringify, le.fromJSON, le.plugin, le.parse, le.list, le.document, le.comment, le.atRule, le.rule, le.decl, le.root, le.CssSyntaxError, le.Declaration, le.Container, le.Processor, le.Document, le.Comment, le.Warning, le.AtRule, le.Result, le.Input, le.Rule, le.Root, le.Node;
4465
4465
  class Xi {
4466
4466
  constructor(...t) {
4467
- Le(this, "parentElement", null), Le(this, "parentNode", null), Le(this, "ownerDocument"), Le(this, "firstChild", null), Le(this, "lastChild", null), Le(this, "previousSibling", null), Le(this, "nextSibling", null), Le(this, "ELEMENT_NODE", 1), Le(this, "TEXT_NODE", 3), Le(this, "nodeType"), Le(this, "nodeName"), Le(this, "RRNodeType");
4467
+ Re(this, "parentElement", null), Re(this, "parentNode", null), Re(this, "ownerDocument"), Re(this, "firstChild", null), Re(this, "lastChild", null), Re(this, "previousSibling", null), Re(this, "nextSibling", null), Re(this, "ELEMENT_NODE", 1), Re(this, "TEXT_NODE", 3), Re(this, "nodeType"), Re(this, "nodeName"), Re(this, "RRNodeType");
4468
4468
  }
4469
4469
  get childNodes() {
4470
4470
  const t = [];
@@ -4534,7 +4534,7 @@ function Ta(e, t, r) {
4534
4534
  function Nc() {
4535
4535
  return Qi("MutationObserver").constructor;
4536
4536
  }
4537
- const V = { childNodes: function(e) {
4537
+ const H = { childNodes: function(e) {
4538
4538
  return et("Node", e, "childNodes");
4539
4539
  }, parentNode: function(e) {
4540
4540
  return et("Node", e, "parentNode");
@@ -4557,17 +4557,17 @@ const V = { childNodes: function(e) {
4557
4557
  }, querySelectorAll: function(e, t) {
4558
4558
  return et("Element", e, "querySelectorAll")(t);
4559
4559
  }, mutationObserver: Nc };
4560
- function Se(e, t, r = document) {
4560
+ function ve(e, t, r = document) {
4561
4561
  const s = { capture: !0, passive: !0 };
4562
4562
  return r.addEventListener(e, t, s), () => r.removeEventListener(e, t, s);
4563
4563
  }
4564
- const It = `Please stop import mirror directly. Instead of that,\r
4564
+ const Ct = `Please stop import mirror directly. Instead of that,\r
4565
4565
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
4566
4566
  or you can use record.mirror to access the mirror instance during recording.`;
4567
- let Ra = { map: {}, getId: () => (console.error(It), -1), getNode: () => (console.error(It), null), removeNodeFromMap() {
4568
- console.error(It);
4569
- }, has: () => (console.error(It), !1), reset() {
4570
- console.error(It);
4567
+ let Ra = { map: {}, getId: () => (console.error(Ct), -1), getNode: () => (console.error(Ct), null), removeNodeFromMap() {
4568
+ console.error(Ct);
4569
+ }, has: () => (console.error(Ct), !1), reset() {
4570
+ console.error(Ct);
4571
4571
  } };
4572
4572
  function $t(e, t, r = {}) {
4573
4573
  let s = null, n = 0;
@@ -4588,7 +4588,7 @@ function $s(e, t, r, s, n = window) {
4588
4588
  }, 0), i && i.set && i.set.call(this, a);
4589
4589
  } }), () => $s(e, t, i || {}, !0);
4590
4590
  }
4591
- function At(e, t, r) {
4591
+ function Mt(e, t, r) {
4592
4592
  try {
4593
4593
  if (!(t in e)) return () => {
4594
4594
  };
@@ -4601,12 +4601,12 @@ function At(e, t, r) {
4601
4601
  };
4602
4602
  }
4603
4603
  }
4604
- typeof window < "u" && window.Proxy && window.Reflect && (Ra = new Proxy(Ra, { get: (e, t, r) => (t === "map" && console.error(It), Reflect.get(e, t, r)) }));
4604
+ typeof window < "u" && window.Proxy && window.Reflect && (Ra = new Proxy(Ra, { get: (e, t, r) => (t === "map" && console.error(Ct), Reflect.get(e, t, r)) }));
4605
4605
  let ws = Date.now;
4606
4606
  function Fc(e) {
4607
4607
  var t, r, s, n;
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 = V.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) && ((s = V.parentElement(i.body)) == null ? void 0 : s.scrollTop) || ((n = i == null ? void 0 : i.body) == null ? void 0 : n.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 = 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) && ((s = H.parentElement(i.body)) == null ? void 0 : s.scrollTop) || ((n = i == null ? void 0 : i.body) == null ? void 0 : n.scrollTop) || 0 };
4610
4610
  }
4611
4611
  function Bc() {
4612
4612
  return window.innerHeight || document.documentElement && document.documentElement.clientHeight || document.body && document.body.clientHeight;
@@ -4615,9 +4615,9 @@ function zc() {
4615
4615
  return window.innerWidth || document.documentElement && document.documentElement.clientWidth || document.body && document.body.clientWidth;
4616
4616
  }
4617
4617
  function jc(e) {
4618
- return e ? e.nodeType === e.ELEMENT_NODE ? e : V.parentElement(e) : null;
4618
+ return e ? e.nodeType === e.ELEMENT_NODE ? e : H.parentElement(e) : null;
4619
4619
  }
4620
- function Ie(e, t, r, s) {
4620
+ function Se(e, t, r, s) {
4621
4621
  if (!e) return !1;
4622
4622
  const n = jc(e);
4623
4623
  if (!n) return !1;
@@ -4636,7 +4636,7 @@ function Wc(e, t) {
4636
4636
  if (Zt(e)) return !1;
4637
4637
  const r = t.getId(e);
4638
4638
  if (!t.has(r)) return !0;
4639
- const s = V.parentNode(e);
4639
+ const s = H.parentNode(e);
4640
4640
  return (!s || s.nodeType !== e.DOCUMENT_NODE) && (!s || Wc(s, t));
4641
4641
  }
4642
4642
  function oi(e) {
@@ -4649,7 +4649,7 @@ function Hc(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 Xi && "shadowRoot" in e ? !!e.shadowRoot : !!V.shadowRoot(e));
4652
+ return !!e && (e instanceof Xi && "shadowRoot" in e ? !!e.shadowRoot : !!H.shadowRoot(e));
4653
4653
  }
4654
4654
  /[1-9][0-9]{12}/.test(Date.now().toString()) || (ws = () => (/* @__PURE__ */ new Date()).getTime());
4655
4655
  class ff {
@@ -4680,7 +4680,7 @@ class ff {
4680
4680
  function Gc(e) {
4681
4681
  var t;
4682
4682
  let r = null;
4683
- return "getRootNode" in e && ((t = V.getRootNode(e)) == null ? void 0 : t.nodeType) === Node.DOCUMENT_FRAGMENT_NODE && V.host(V.getRootNode(e)) && (r = V.host(V.getRootNode(e))), r;
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;
4684
4684
  }
4685
4685
  function gf(e) {
4686
4686
  const t = e.ownerDocument;
@@ -4690,13 +4690,13 @@ function gf(e) {
4690
4690
  for (; n = Gc(i); ) i = n;
4691
4691
  return i;
4692
4692
  }(e);
4693
- return V.contains(t, r);
4693
+ return H.contains(t, r);
4694
4694
  }
4695
4695
  function $c(e) {
4696
4696
  const t = e.ownerDocument;
4697
- return !!t && (V.contains(t, e) || gf(e));
4697
+ return !!t && (H.contains(t, e) || gf(e));
4698
4698
  }
4699
- var $ = ((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))($ || {}), 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 || {}), Ce = ((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))(Ce || {}), 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 J = ((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))(J || {}), 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 || {}), Ce = ((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))(Ce || {}), He = ((e) => (e[e.Mouse = 0] = "Mouse", e[e.Pen = 1] = "Pen", e[e.Touch = 2] = "Touch", e))(He || {}), kt = ((e) => (e[e["2D"] = 0] = "2D", e[e.WebGL = 1] = "WebGL", e[e.WebGL2 = 2] = "WebGL2", e))(kt || {}), Et = ((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))(Et || {});
4700
4700
  function La(e) {
4701
4701
  return "__ln" in e;
4702
4702
  }
@@ -4738,12 +4738,12 @@ class wf {
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 = V.parentNode(l);
4741
+ const c = H.parentNode(l);
4742
4742
  if (!c || !$c(l) || c.tagName === "TEXTAREA") return;
4743
4743
  const u = Zt(c) ? this.mirror.getId(Gc(l)) : this.mirror.getId(c), d = n(l);
4744
4744
  if (u === -1 || d === -1) return s.addNode(l);
4745
- const p = 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
- Vc(f, this.mirror) && this.iframeManager.addIframe(f), Hc(f, this.mirror) && this.stylesheetManager.trackLinkElement(f), ai(l) && this.shadowDomManager.addShadowRoot(V.shadowRoot(l), this.doc);
4745
+ const p = xt(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
+ Vc(f, this.mirror) && this.iframeManager.addIframe(f), Hc(f, this.mirror) && this.stylesheetManager.trackLinkElement(f), ai(l) && this.shadowDomManager.addShadowRoot(H.shadowRoot(l), this.doc);
4747
4747
  }, onIframeLoad: (f, w) => {
4748
4748
  this.iframeManager.attachIframe(f, w), this.shadowDomManager.observeAttachShadow(f);
4749
4749
  }, onStylesheetLoad: (f, w) => {
@@ -4752,13 +4752,13 @@ class wf {
4752
4752
  p && (t.push({ parentId: u, nextId: d, node: p }), r.add(p.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(V.parentNode(l)) || i(l);
4755
+ for (const l of this.movedSet) Aa(this.removes, l, this.mirror) && !this.movedSet.has(H.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 (; s.length; ) {
4759
4759
  let l = null;
4760
4760
  if (a) {
4761
- const c = this.mirror.getId(V.parentNode(a.value)), u = n(a.value);
4761
+ const c = this.mirror.getId(H.parentNode(a.value)), u = n(a.value);
4762
4762
  c !== -1 && u !== -1 && (l = a);
4763
4763
  }
4764
4764
  if (!l) {
@@ -4766,16 +4766,16 @@ class wf {
4766
4766
  for (; c; ) {
4767
4767
  const u = c;
4768
4768
  if (c = c.previous, u) {
4769
- const d = this.mirror.getId(V.parentNode(u.value));
4769
+ const d = this.mirror.getId(H.parentNode(u.value));
4770
4770
  if (n(u.value) === -1) continue;
4771
4771
  if (d !== -1) {
4772
4772
  l = u;
4773
4773
  break;
4774
4774
  }
4775
4775
  {
4776
- const p = u.value, f = V.parentNode(p);
4776
+ const p = u.value, f = H.parentNode(p);
4777
4777
  if (f && f.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
4778
- const w = V.host(f);
4778
+ const w = H.host(f);
4779
4779
  if (this.mirror.getId(w) !== -1) {
4780
4780
  l = u;
4781
4781
  break;
@@ -4792,7 +4792,7 @@ class wf {
4792
4792
  a = l.previous, s.removeNode(l.value), i(l.value);
4793
4793
  }
4794
4794
  const o = { texts: this.texts.map((l) => {
4795
- const c = l.node, u = V.parentNode(c);
4795
+ const c = l.node, u = H.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,12 +4805,12 @@ class wf {
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
  }), x(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(V.childNodes(t), (s) => V.textContent(s) || "").join("");
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), (s) => H.textContent(s) || "").join("");
4809
4809
  }), x(this, "processMutation", (t) => {
4810
4810
  if (!pn(t.target, this.mirror, this.slimDOMOptions)) switch (t.type) {
4811
4811
  case "characterData": {
4812
- const r = V.textContent(t.target);
4813
- Ie(t.target, this.blockClass, this.blockSelector, !1) || r === t.oldValue || this.texts.push({ value: Ml(t.target, this.maskTextClass, this.maskTextSelector, !0) && r ? this.maskTextFn ? this.maskTextFn(r, jc(t.target)) : r.replace(/[\S]/g, "*") : r, node: t.target });
4812
+ const r = H.textContent(t.target);
4813
+ Se(t.target, this.blockClass, this.blockSelector, !1) || r === t.oldValue || this.texts.push({ value: Ml(t.target, this.maskTextClass, this.maskTextSelector, !0) && r ? this.maskTextFn ? this.maskTextFn(r, jc(t.target)) : r.replace(/[\S]/g, "*") : r, node: t.target });
4814
4814
  break;
4815
4815
  }
4816
4816
  case "attributes": {
@@ -4820,13 +4820,13 @@ class wf {
4820
4820
  const a = Di(r);
4821
4821
  n = Ui({ element: r, maskInputOptions: this.maskInputOptions, tagName: r.tagName, type: a, value: n, maskInputFn: this.maskInputFn });
4822
4822
  }
4823
- if (Ie(t.target, this.blockClass, this.blockSelector, !1) || n === t.oldValue) return;
4823
+ if (Se(t.target, this.blockClass, this.blockSelector, !1) || n === t.oldValue) return;
4824
4824
  let i = this.attributeMap.get(t.target);
4825
4825
  if (r.tagName === "IFRAME" && s === "src" && !this.keepIframeSrcFn(n)) {
4826
4826
  if (r.contentDocument) return;
4827
4827
  s = "rr_src";
4828
4828
  }
4829
- if (i || (i = { node: t.target, attributes: {}, styleDiff: {}, _unchangedStyles: {} }, this.attributes.push(i), this.attributeMap.set(t.target, i)), s === "type" && r.tagName === "INPUT" && (t.oldValue || "").toLowerCase() === "password" && r.setAttribute("data-rr-is-password", "true"), !Al(r.tagName, s)) if (i.attributes[s] = Ol(this.doc, mt(r.tagName), mt(s), n), s === "style") {
4829
+ if (i || (i = { node: t.target, attributes: {}, styleDiff: {}, _unchangedStyles: {} }, this.attributes.push(i), this.attributeMap.set(t.target, i)), s === "type" && r.tagName === "INPUT" && (t.oldValue || "").toLowerCase() === "password" && r.setAttribute("data-rr-is-password", "true"), !Al(r.tagName, s)) if (i.attributes[s] = Ol(this.doc, ft(r.tagName), ft(s), n), s === "style") {
4830
4830
  if (!this.unattachedDoc) try {
4831
4831
  this.unattachedDoc = document.implementation.createHTMLDocument();
4832
4832
  } catch {
@@ -4843,11 +4843,11 @@ class wf {
4843
4843
  break;
4844
4844
  }
4845
4845
  case "childList":
4846
- if (Ie(t.target, this.blockClass, this.blockSelector, !0)) return;
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 s = this.mirror.getId(r), n = Zt(t.target) ? this.mirror.getId(V.host(t.target)) : this.mirror.getId(t.target);
4850
- Ie(t.target, this.blockClass, this.blockSelector, !1) || pn(r, this.mirror, this.slimDOMOptions) || !function(i, a) {
4849
+ const s = this.mirror.getId(r), n = Zt(t.target) ? this.mirror.getId(H.host(t.target)) : this.mirror.getId(t.target);
4850
+ Se(t.target, this.blockClass, this.blockSelector, !1) || pn(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) && s === -1 || Wc(t.target, this.mirror) || (this.movedSet.has(r) && this.movedMap[Oa(s, n)] ? li(this.movedSet, r) : this.removes.push({ parentId: n, id: s, isShadow: !(!Zt(t.target) || !Xt(t.target)) || void 0 })), this.mapRemoves.push(r));
4853
4853
  });
@@ -4860,7 +4860,7 @@ class wf {
4860
4860
  let s = null;
4861
4861
  r && this.mirror.hasNode(r) && (s = this.mirror.getId(r)), s && s !== -1 && (this.movedMap[Oa(this.mirror.getId(t), s)] = !0);
4862
4862
  } else this.addedSet.add(t), this.droppedSet.delete(t);
4863
- Ie(t, this.blockClass, this.blockSelector, !1) || (V.childNodes(t).forEach((s) => this.genAdds(s)), ai(t) && V.childNodes(V.shadowRoot(t)).forEach((s) => {
4863
+ Se(t, this.blockClass, this.blockSelector, !1) || (H.childNodes(t).forEach((s) => this.genAdds(s)), ai(t) && H.childNodes(H.shadowRoot(t)).forEach((s) => {
4864
4864
  this.processedNodeManager.add(s, this), this.genAdds(s, t);
4865
4865
  }));
4866
4866
  }
@@ -4891,15 +4891,15 @@ class wf {
4891
4891
  }
4892
4892
  }
4893
4893
  function li(e, t) {
4894
- e.delete(t), V.childNodes(t).forEach((r) => li(e, r));
4894
+ e.delete(t), H.childNodes(t).forEach((r) => li(e, r));
4895
4895
  }
4896
4896
  function Aa(e, t, r) {
4897
4897
  return e.length !== 0 && function(s, n, i) {
4898
- let a = V.parentNode(n);
4898
+ let a = H.parentNode(n);
4899
4899
  for (; a; ) {
4900
4900
  const o = i.getId(a);
4901
4901
  if (s.some((l) => l.id === o)) return !0;
4902
- a = V.parentNode(a);
4902
+ a = H.parentNode(a);
4903
4903
  }
4904
4904
  return !1;
4905
4905
  }(e, t, r);
@@ -4908,18 +4908,18 @@ function Ma(e, t) {
4908
4908
  return e.size !== 0 && Yc(e, t);
4909
4909
  }
4910
4910
  function Yc(e, t) {
4911
- const r = V.parentNode(t);
4911
+ const r = H.parentNode(t);
4912
4912
  return !!r && (!!e.has(r) || Yc(e, r));
4913
4913
  }
4914
4914
  let Qt;
4915
- const G = (e) => Qt ? (...t) => {
4915
+ const $ = (e) => Qt ? (...t) => {
4916
4916
  try {
4917
4917
  return e(...t);
4918
4918
  } catch (r) {
4919
4919
  if (Qt && Qt(r) === !0) return;
4920
4920
  throw r;
4921
4921
  }
4922
- } : e, ht = [];
4922
+ } : e, mt = [];
4923
4923
  function er(e) {
4924
4924
  try {
4925
4925
  if ("composedPath" in e) {
@@ -4930,10 +4930,10 @@ function er(e) {
4930
4930
  }
4931
4931
  return e && e.target;
4932
4932
  }
4933
- function qc(e, t) {
4933
+ function Jc(e, t) {
4934
4934
  const r = new wf();
4935
- ht.push(r), r.init(e);
4936
- const s = new (Nc())(G(r.processMutations.bind(r)));
4935
+ mt.push(r), r.init(e);
4936
+ const s = new (Nc())($(r.processMutations.bind(r)));
4937
4937
  return s.observe(t, { attributes: !0, attributeOldValue: !0, characterData: !0, characterDataOldValue: !0, childList: !0, subtree: !0 }), s;
4938
4938
  }
4939
4939
  function bf({ mouseInteractionCb: e, doc: t, mirror: r, blockClass: s, blockSelector: n, sampling: i }) {
@@ -4942,29 +4942,29 @@ function bf({ mouseInteractionCb: e, doc: t, mirror: r, blockClass: s, blockSele
4942
4942
  const a = i.mouseInteraction === !0 || i.mouseInteraction === void 0 ? {} : i.mouseInteraction, o = [];
4943
4943
  let l = null;
4944
4944
  return Object.keys(Ce).filter((c) => Number.isNaN(Number(c)) && !c.endsWith("_Departed") && a[c] !== !1).forEach((c) => {
4945
- let u = mt(c);
4945
+ let u = ft(c);
4946
4946
  const d = /* @__PURE__ */ ((p) => (f) => {
4947
4947
  const w = er(f);
4948
- if (Ie(w, s, n, !0)) return;
4948
+ if (Se(w, s, n, !0)) return;
4949
4949
  let h = null, C = p;
4950
4950
  if ("pointerType" in f) {
4951
4951
  switch (f.pointerType) {
4952
4952
  case "mouse":
4953
- h = Ge.Mouse;
4953
+ h = He.Mouse;
4954
4954
  break;
4955
4955
  case "touch":
4956
- h = Ge.Touch;
4956
+ h = He.Touch;
4957
4957
  break;
4958
4958
  case "pen":
4959
- h = Ge.Pen;
4959
+ h = He.Pen;
4960
4960
  }
4961
- h === Ge.Touch ? Ce[p] === Ce.MouseDown ? C = "TouchStart" : Ce[p] === Ce.MouseUp && (C = "TouchEnd") : Ge.Pen;
4962
- } else oi(f) && (h = Ge.Touch);
4963
- h !== null ? (l = h, (C.startsWith("Touch") && h === Ge.Touch || C.startsWith("Mouse") && h === Ge.Mouse) && (h = null)) : Ce[p] === Ce.Click && (h = l, l = null);
4961
+ h === He.Touch ? Ce[p] === Ce.MouseDown ? C = "TouchStart" : Ce[p] === Ce.MouseUp && (C = "TouchEnd") : He.Pen;
4962
+ } else oi(f) && (h = He.Touch);
4963
+ h !== null ? (l = h, (C.startsWith("Touch") && h === He.Touch || C.startsWith("Mouse") && h === He.Mouse) && (h = null)) : Ce[p] === Ce.Click && (h = l, l = null);
4964
4964
  const m = oi(f) ? f.changedTouches[0] : f;
4965
4965
  if (!m) return;
4966
- const g = r.getId(w), { clientX: v, clientY: I } = m;
4967
- G(e)({ type: Ce[C], id: g, x: v, y: I, ...h !== null && { pointerType: h } });
4966
+ const g = r.getId(w), { clientX: v, clientY: S } = m;
4967
+ $(e)({ type: Ce[C], id: g, x: v, y: S, ...h !== null && { pointerType: h } });
4968
4968
  })(c);
4969
4969
  if (window.PointerEvent) switch (Ce[c]) {
4970
4970
  case Ce.MouseDown:
@@ -4975,15 +4975,15 @@ function bf({ mouseInteractionCb: e, doc: t, mirror: r, blockClass: s, blockSele
4975
4975
  case Ce.TouchEnd:
4976
4976
  return;
4977
4977
  }
4978
- o.push(Se(u, d, t));
4979
- }), G(() => {
4978
+ o.push(ve(u, d, t));
4979
+ }), $(() => {
4980
4980
  o.forEach((c) => c());
4981
4981
  });
4982
4982
  }
4983
- function Jc({ scrollCb: e, doc: t, mirror: r, blockClass: s, blockSelector: n, sampling: i }) {
4984
- return Se("scroll", G($t(G((a) => {
4983
+ function qc({ scrollCb: e, doc: t, mirror: r, blockClass: s, blockSelector: n, sampling: i }) {
4984
+ return ve("scroll", $($t($((a) => {
4985
4985
  const o = er(a);
4986
- if (!o || Ie(o, s, n, !0)) return;
4986
+ if (!o || Se(o, s, n, !0)) return;
4987
4987
  const l = r.getId(o);
4988
4988
  if (o === t && t.defaultView) {
4989
4989
  const c = Fc(t.defaultView);
@@ -5011,7 +5011,7 @@ function tt(e, t, r) {
5011
5011
  function Kc({ mirror: e, stylesheetManager: t }, r) {
5012
5012
  var s, n, i;
5013
5013
  let a = null;
5014
- a = r.nodeName === "#document" ? e.getId(r) : e.getId(V.host(r));
5014
+ a = r.nodeName === "#document" ? e.getId(r) : e.getId(H.host(r));
5015
5015
  const o = r.nodeName === "#document" ? (s = r.defaultView) == null ? void 0 : s.Document : (i = (n = r.ownerDocument) == null ? void 0 : n.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;
@@ -5024,7 +5024,7 @@ function Kc({ mirror: e, stylesheetManager: t }, r) {
5024
5024
  } catch {
5025
5025
  }
5026
5026
  return d;
5027
- } }), G(() => {
5027
+ } }), $(() => {
5028
5028
  Object.defineProperty(r, "adoptedStyleSheets", { configurable: l.configurable, enumerable: l.enumerable, get: l.get, set: l.set });
5029
5029
  })) : () => {
5030
5030
  };
@@ -5035,99 +5035,99 @@ function Sf(e, t = {}) {
5035
5035
  };
5036
5036
  let s;
5037
5037
  (function(m, g) {
5038
- const { mutationCb: v, mousemoveCb: I, mouseInteractionCb: O, scrollCb: E, viewportResizeCb: U, inputCb: A, mediaInteractionCb: k, styleSheetRuleCb: L, styleDeclarationCb: R, canvasMutationCb: S, fontCb: P, selectionCb: M, customElementCb: b } = m;
5038
+ const { mutationCb: v, mousemoveCb: S, mouseInteractionCb: A, scrollCb: k, viewportResizeCb: M, inputCb: U, mediaInteractionCb: E, styleSheetRuleCb: R, styleDeclarationCb: L, canvasMutationCb: I, fontCb: F, selectionCb: P, customElementCb: b } = m;
5039
5039
  m.mutationCb = (...y) => {
5040
5040
  g.mutation && g.mutation(...y), v(...y);
5041
5041
  }, m.mousemoveCb = (...y) => {
5042
- g.mousemove && g.mousemove(...y), I(...y);
5042
+ g.mousemove && g.mousemove(...y), S(...y);
5043
5043
  }, m.mouseInteractionCb = (...y) => {
5044
- g.mouseInteraction && g.mouseInteraction(...y), O(...y);
5044
+ g.mouseInteraction && g.mouseInteraction(...y), A(...y);
5045
5045
  }, m.scrollCb = (...y) => {
5046
- g.scroll && g.scroll(...y), E(...y);
5046
+ g.scroll && g.scroll(...y), k(...y);
5047
5047
  }, m.viewportResizeCb = (...y) => {
5048
- g.viewportResize && g.viewportResize(...y), U(...y);
5048
+ g.viewportResize && g.viewportResize(...y), M(...y);
5049
5049
  }, m.inputCb = (...y) => {
5050
- g.input && g.input(...y), A(...y);
5050
+ g.input && g.input(...y), U(...y);
5051
5051
  }, m.mediaInteractionCb = (...y) => {
5052
- g.mediaInteaction && g.mediaInteaction(...y), k(...y);
5052
+ g.mediaInteaction && g.mediaInteaction(...y), E(...y);
5053
5053
  }, m.styleSheetRuleCb = (...y) => {
5054
- g.styleSheetRule && g.styleSheetRule(...y), L(...y);
5054
+ g.styleSheetRule && g.styleSheetRule(...y), R(...y);
5055
5055
  }, m.styleDeclarationCb = (...y) => {
5056
- g.styleDeclaration && g.styleDeclaration(...y), R(...y);
5056
+ g.styleDeclaration && g.styleDeclaration(...y), L(...y);
5057
5057
  }, m.canvasMutationCb = (...y) => {
5058
- g.canvasMutation && g.canvasMutation(...y), S(...y);
5058
+ g.canvasMutation && g.canvasMutation(...y), I(...y);
5059
5059
  }, m.fontCb = (...y) => {
5060
- g.font && g.font(...y), P(...y);
5060
+ g.font && g.font(...y), F(...y);
5061
5061
  }, m.selectionCb = (...y) => {
5062
- g.selection && g.selection(...y), M(...y);
5062
+ g.selection && g.selection(...y), P(...y);
5063
5063
  }, m.customElementCb = (...y) => {
5064
5064
  g.customElement && g.customElement(...y), b(...y);
5065
5065
  };
5066
- })(e, t), e.recordDOM && (s = qc(e, e.doc));
5067
- const n = function({ mousemoveCb: m, sampling: g, doc: v, mirror: I }) {
5066
+ })(e, t), e.recordDOM && (s = Jc(e, e.doc));
5067
+ const n = function({ mousemoveCb: m, sampling: g, doc: v, mirror: S }) {
5068
5068
  if (g.mousemove === !1) return () => {
5069
5069
  };
5070
- const O = typeof g.mousemove == "number" ? g.mousemove : 50, E = typeof g.mousemoveCallback == "number" ? g.mousemoveCallback : 500;
5071
- let U, A = [];
5072
- const k = $t(G((S) => {
5073
- const P = Date.now() - U;
5074
- m(A.map((M) => (M.timeOffset -= P, M)), S), A = [], U = null;
5075
- }), E), L = G($t(G((S) => {
5076
- const P = er(S), { clientX: M, clientY: b } = oi(S) ? S.changedTouches[0] : S;
5077
- U || (U = ws()), A.push({ x: M, y: b, id: I.getId(P), timeOffset: ws() - U }), k(typeof DragEvent < "u" && S instanceof DragEvent ? H.Drag : S instanceof MouseEvent ? H.MouseMove : H.TouchMove);
5078
- }), O, { trailing: !1 })), R = [Se("mousemove", L, v), Se("touchmove", L, v), Se("drag", L, v)];
5079
- return G(() => {
5080
- R.forEach((S) => S());
5070
+ const A = typeof g.mousemove == "number" ? g.mousemove : 50, k = typeof g.mousemoveCallback == "number" ? g.mousemoveCallback : 500;
5071
+ let M, U = [];
5072
+ const E = $t($((I) => {
5073
+ const F = Date.now() - M;
5074
+ m(U.map((P) => (P.timeOffset -= F, P)), I), U = [], M = null;
5075
+ }), k), R = $($t($((I) => {
5076
+ const F = er(I), { clientX: P, clientY: b } = oi(I) ? I.changedTouches[0] : I;
5077
+ M || (M = ws()), U.push({ x: P, y: b, id: S.getId(F), timeOffset: ws() - M }), E(typeof DragEvent < "u" && I instanceof DragEvent ? G.Drag : I instanceof MouseEvent ? G.MouseMove : G.TouchMove);
5078
+ }), A, { trailing: !1 })), L = [ve("mousemove", R, v), ve("touchmove", R, v), ve("drag", R, v)];
5079
+ return $(() => {
5080
+ L.forEach((I) => I());
5081
5081
  });
5082
- }(e), i = bf(e), a = Jc(e), o = function({ viewportResizeCb: m }, { win: g }) {
5083
- let v = -1, I = -1;
5084
- return Se("resize", G($t(G(() => {
5085
- const O = Bc(), E = zc();
5086
- v === O && I === E || (m({ width: Number(E), height: Number(O) }), v = O, I = E);
5082
+ }(e), i = bf(e), a = qc(e), o = function({ viewportResizeCb: m }, { win: g }) {
5083
+ let v = -1, S = -1;
5084
+ return ve("resize", $($t($(() => {
5085
+ const A = Bc(), k = zc();
5086
+ v === A && S === k || (m({ width: Number(k), height: Number(A) }), v = A, S = k);
5087
5087
  }), 200)), g);
5088
- }(e, { win: r }), l = function({ inputCb: m, doc: g, mirror: v, blockClass: I, blockSelector: O, ignoreClass: E, ignoreSelector: U, maskInputOptions: A, maskInputFn: k, sampling: L, userTriggeredOnInput: R }) {
5089
- function S(_) {
5090
- let W = er(_);
5091
- const T = _.isTrusted, N = W && W.tagName;
5092
- if (W && N === "OPTION" && (W = V.parentElement(W)), !W || !N || vf.indexOf(N) < 0 || Ie(W, I, O, !0) || W.classList.contains(E) || U && W.matches(U)) return;
5093
- let Q = W.value, Y = !1;
5094
- const me = Di(W) || "";
5095
- me === "radio" || me === "checkbox" ? Y = W.checked : (A[N.toLowerCase()] || A[me]) && (Q = Ui({ element: W, maskInputOptions: A, tagName: N, type: me, value: Q, maskInputFn: k })), P(W, R ? { text: Q, isChecked: Y, userTriggered: T } : { text: Q, isChecked: Y });
5096
- const _e = W.name;
5097
- me === "radio" && _e && Y && g.querySelectorAll(`input[type="radio"][name="${_e}"]`).forEach((we) => {
5098
- if (we !== W) {
5099
- const ke = we.value;
5100
- P(we, R ? { text: ke, isChecked: !Y, userTriggered: !1 } : { text: ke, isChecked: !Y });
5088
+ }(e, { win: r }), l = function({ inputCb: m, doc: g, mirror: v, blockClass: S, blockSelector: A, ignoreClass: k, ignoreSelector: M, maskInputOptions: U, maskInputFn: E, sampling: R, userTriggeredOnInput: L }) {
5089
+ function I(B) {
5090
+ let j = er(B);
5091
+ const T = B.isTrusted, D = j && j.tagName;
5092
+ if (j && D === "OPTION" && (j = H.parentElement(j)), !j || !D || vf.indexOf(D) < 0 || Se(j, S, A, !0) || j.classList.contains(k) || M && j.matches(M)) return;
5093
+ let ne = j.value, K = !1;
5094
+ const he = Di(j) || "";
5095
+ he === "radio" || he === "checkbox" ? K = j.checked : (U[D.toLowerCase()] || U[he]) && (ne = Ui({ element: j, maskInputOptions: U, tagName: D, type: he, value: ne, maskInputFn: E })), F(j, L ? { text: ne, isChecked: K, userTriggered: T } : { text: ne, isChecked: K });
5096
+ const Le = j.name;
5097
+ he === "radio" && Le && K && g.querySelectorAll(`input[type="radio"][name="${Le}"]`).forEach((ye) => {
5098
+ if (ye !== j) {
5099
+ const ke = ye.value;
5100
+ F(ye, L ? { text: ke, isChecked: !K, userTriggered: !1 } : { text: ke, isChecked: !K });
5101
5101
  }
5102
5102
  });
5103
5103
  }
5104
- function P(_, W) {
5105
- const T = Ua.get(_);
5106
- if (!T || T.text !== W.text || T.isChecked !== W.isChecked) {
5107
- Ua.set(_, W);
5108
- const N = v.getId(_);
5109
- G(m)({ ...W, id: N });
5104
+ function F(B, j) {
5105
+ const T = Ua.get(B);
5106
+ if (!T || T.text !== j.text || T.isChecked !== j.isChecked) {
5107
+ Ua.set(B, j);
5108
+ const D = v.getId(B);
5109
+ $(m)({ ...j, id: D });
5110
5110
  }
5111
5111
  }
5112
- const M = (L.input === "last" ? ["change"] : ["input", "change"]).map((_) => Se(_, G(S), g)), b = g.defaultView;
5112
+ const P = (R.input === "last" ? ["change"] : ["input", "change"]).map((B) => ve(B, $(I), g)), b = g.defaultView;
5113
5113
  if (!b) return () => {
5114
- M.forEach((_) => _());
5114
+ P.forEach((B) => B());
5115
5115
  };
5116
- const y = b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype, "value"), D = [[b.HTMLInputElement.prototype, "value"], [b.HTMLInputElement.prototype, "checked"], [b.HTMLSelectElement.prototype, "value"], [b.HTMLTextAreaElement.prototype, "value"], [b.HTMLSelectElement.prototype, "selectedIndex"], [b.HTMLOptionElement.prototype, "selected"]];
5117
- return y && y.set && M.push(...D.map((_) => $s(_[0], _[1], { set() {
5118
- G(S)({ target: this, isTrusted: !1 });
5119
- } }, !1, b))), G(() => {
5120
- M.forEach((_) => _());
5116
+ const y = b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype, "value"), O = [[b.HTMLInputElement.prototype, "value"], [b.HTMLInputElement.prototype, "checked"], [b.HTMLSelectElement.prototype, "value"], [b.HTMLTextAreaElement.prototype, "value"], [b.HTMLSelectElement.prototype, "selectedIndex"], [b.HTMLOptionElement.prototype, "selected"]];
5117
+ return y && y.set && P.push(...O.map((B) => $s(B[0], B[1], { set() {
5118
+ $(I)({ target: this, isTrusted: !1 });
5119
+ } }, !1, b))), $(() => {
5120
+ P.forEach((B) => B());
5121
5121
  });
5122
- }(e), c = function({ mediaInteractionCb: m, blockClass: g, blockSelector: v, mirror: I, sampling: O, doc: E }) {
5123
- const U = G((k) => $t(G((L) => {
5124
- const R = er(L);
5125
- if (!R || Ie(R, g, v, !0)) return;
5126
- const { currentTime: S, volume: P, muted: M, playbackRate: b, loop: y } = R;
5127
- m({ type: k, id: I.getId(R), currentTime: S, volume: P, muted: M, playbackRate: b, loop: y });
5128
- }), O.media || 500)), A = [Se("play", U(kt.Play), E), Se("pause", U(kt.Pause), E), Se("seeked", U(kt.Seeked), E), Se("volumechange", U(kt.VolumeChange), E), Se("ratechange", U(kt.RateChange), E)];
5129
- return G(() => {
5130
- A.forEach((k) => k());
5122
+ }(e), c = function({ mediaInteractionCb: m, blockClass: g, blockSelector: v, mirror: S, sampling: A, doc: k }) {
5123
+ const M = $((E) => $t($((R) => {
5124
+ const L = er(R);
5125
+ if (!L || Se(L, g, v, !0)) return;
5126
+ const { currentTime: I, volume: F, muted: P, playbackRate: b, loop: y } = L;
5127
+ m({ type: E, id: S.getId(L), currentTime: I, volume: F, muted: P, playbackRate: b, loop: y });
5128
+ }), A.media || 500)), U = [ve("play", M(Et.Play), k), ve("pause", M(Et.Pause), k), ve("seeked", M(Et.Seeked), k), ve("volumechange", M(Et.VolumeChange), k), ve("ratechange", M(Et.RateChange), k)];
5129
+ return $(() => {
5130
+ U.forEach((E) => E());
5131
5131
  });
5132
5132
  }(e);
5133
5133
  let u = () => {
@@ -5135,121 +5135,121 @@ function Sf(e, t = {}) {
5135
5135
  }, p = () => {
5136
5136
  }, f = () => {
5137
5137
  };
5138
- e.recordDOM && (u = function({ styleSheetRuleCb: m, mirror: g, stylesheetManager: v }, { win: I }) {
5139
- if (!I.CSSStyleSheet || !I.CSSStyleSheet.prototype) return () => {
5138
+ e.recordDOM && (u = function({ styleSheetRuleCb: m, mirror: g, stylesheetManager: v }, { win: S }) {
5139
+ if (!S.CSSStyleSheet || !S.CSSStyleSheet.prototype) return () => {
5140
5140
  };
5141
- const O = I.CSSStyleSheet.prototype.insertRule;
5142
- I.CSSStyleSheet.prototype.insertRule = new Proxy(O, { apply: G((R, S, P) => {
5143
- const [M, b] = P, { id: y, styleId: D } = tt(S, g, v.styleMirror);
5144
- return (y && y !== -1 || D && D !== -1) && m({ id: y, styleId: D, adds: [{ rule: M, index: b }] }), R.apply(S, P);
5145
- }) }), I.CSSStyleSheet.prototype.addRule = function(R, S, P = this.cssRules.length) {
5146
- const M = `${R} { ${S} }`;
5147
- return I.CSSStyleSheet.prototype.insertRule.apply(this, [M, P]);
5141
+ const A = S.CSSStyleSheet.prototype.insertRule;
5142
+ S.CSSStyleSheet.prototype.insertRule = new Proxy(A, { apply: $((L, I, F) => {
5143
+ const [P, b] = F, { id: y, styleId: O } = tt(I, g, v.styleMirror);
5144
+ return (y && y !== -1 || O && O !== -1) && m({ id: y, styleId: O, adds: [{ rule: P, index: b }] }), L.apply(I, F);
5145
+ }) }), S.CSSStyleSheet.prototype.addRule = function(L, I, F = this.cssRules.length) {
5146
+ const P = `${L} { ${I} }`;
5147
+ return S.CSSStyleSheet.prototype.insertRule.apply(this, [P, F]);
5148
5148
  };
5149
- const E = I.CSSStyleSheet.prototype.deleteRule;
5150
- let U, A;
5151
- I.CSSStyleSheet.prototype.deleteRule = new Proxy(E, { apply: G((R, S, P) => {
5152
- const [M] = P, { id: b, styleId: y } = tt(S, g, v.styleMirror);
5153
- return (b && b !== -1 || y && y !== -1) && m({ id: b, styleId: y, removes: [{ index: M }] }), R.apply(S, P);
5154
- }) }), I.CSSStyleSheet.prototype.removeRule = function(R) {
5155
- return I.CSSStyleSheet.prototype.deleteRule.apply(this, [R]);
5156
- }, I.CSSStyleSheet.prototype.replace && (U = I.CSSStyleSheet.prototype.replace, I.CSSStyleSheet.prototype.replace = new Proxy(U, { apply: G((R, S, P) => {
5157
- const [M] = P, { id: b, styleId: y } = tt(S, g, v.styleMirror);
5158
- return (b && b !== -1 || y && y !== -1) && m({ id: b, styleId: y, replace: M }), R.apply(S, P);
5159
- }) })), I.CSSStyleSheet.prototype.replaceSync && (A = I.CSSStyleSheet.prototype.replaceSync, I.CSSStyleSheet.prototype.replaceSync = new Proxy(A, { apply: G((R, S, P) => {
5160
- const [M] = P, { id: b, styleId: y } = tt(S, g, v.styleMirror);
5161
- return (b && b !== -1 || y && y !== -1) && m({ id: b, styleId: y, replaceSync: M }), R.apply(S, P);
5149
+ const k = S.CSSStyleSheet.prototype.deleteRule;
5150
+ let M, U;
5151
+ S.CSSStyleSheet.prototype.deleteRule = new Proxy(k, { apply: $((L, I, F) => {
5152
+ const [P] = F, { id: b, styleId: y } = tt(I, g, v.styleMirror);
5153
+ return (b && b !== -1 || y && y !== -1) && m({ id: b, styleId: y, removes: [{ index: P }] }), L.apply(I, F);
5154
+ }) }), S.CSSStyleSheet.prototype.removeRule = function(L) {
5155
+ return S.CSSStyleSheet.prototype.deleteRule.apply(this, [L]);
5156
+ }, S.CSSStyleSheet.prototype.replace && (M = S.CSSStyleSheet.prototype.replace, S.CSSStyleSheet.prototype.replace = new Proxy(M, { apply: $((L, I, F) => {
5157
+ const [P] = F, { id: b, styleId: y } = tt(I, g, v.styleMirror);
5158
+ return (b && b !== -1 || y && y !== -1) && m({ id: b, styleId: y, replace: P }), L.apply(I, F);
5159
+ }) })), S.CSSStyleSheet.prototype.replaceSync && (U = S.CSSStyleSheet.prototype.replaceSync, S.CSSStyleSheet.prototype.replaceSync = new Proxy(U, { apply: $((L, I, F) => {
5160
+ const [P] = F, { id: b, styleId: y } = tt(I, g, v.styleMirror);
5161
+ return (b && b !== -1 || y && y !== -1) && m({ id: b, styleId: y, replaceSync: P }), L.apply(I, F);
5162
5162
  }) }));
5163
- const k = {};
5164
- Vr("CSSGroupingRule") ? k.CSSGroupingRule = I.CSSGroupingRule : (Vr("CSSMediaRule") && (k.CSSMediaRule = I.CSSMediaRule), Vr("CSSConditionRule") && (k.CSSConditionRule = I.CSSConditionRule), Vr("CSSSupportsRule") && (k.CSSSupportsRule = I.CSSSupportsRule));
5165
- const L = {};
5166
- return Object.entries(k).forEach(([R, S]) => {
5167
- L[R] = { insertRule: S.prototype.insertRule, deleteRule: S.prototype.deleteRule }, S.prototype.insertRule = new Proxy(L[R].insertRule, { apply: G((P, M, b) => {
5168
- const [y, D] = b, { id: _, styleId: W } = tt(M.parentStyleSheet, g, v.styleMirror);
5169
- return (_ && _ !== -1 || W && W !== -1) && m({ id: _, styleId: W, adds: [{ rule: y, index: [...jr(M), D || 0] }] }), P.apply(M, b);
5170
- }) }), S.prototype.deleteRule = new Proxy(L[R].deleteRule, { apply: G((P, M, b) => {
5171
- const [y] = b, { id: D, styleId: _ } = tt(M.parentStyleSheet, g, v.styleMirror);
5172
- return (D && D !== -1 || _ && _ !== -1) && m({ id: D, styleId: _, removes: [{ index: [...jr(M), y] }] }), P.apply(M, b);
5163
+ const E = {};
5164
+ Vr("CSSGroupingRule") ? E.CSSGroupingRule = S.CSSGroupingRule : (Vr("CSSMediaRule") && (E.CSSMediaRule = S.CSSMediaRule), Vr("CSSConditionRule") && (E.CSSConditionRule = S.CSSConditionRule), Vr("CSSSupportsRule") && (E.CSSSupportsRule = S.CSSSupportsRule));
5165
+ const R = {};
5166
+ return Object.entries(E).forEach(([L, I]) => {
5167
+ R[L] = { insertRule: I.prototype.insertRule, deleteRule: I.prototype.deleteRule }, I.prototype.insertRule = new Proxy(R[L].insertRule, { apply: $((F, P, b) => {
5168
+ const [y, O] = b, { id: B, styleId: j } = tt(P.parentStyleSheet, g, v.styleMirror);
5169
+ return (B && B !== -1 || j && j !== -1) && m({ id: B, styleId: j, adds: [{ rule: y, index: [...jr(P), O || 0] }] }), F.apply(P, b);
5170
+ }) }), I.prototype.deleteRule = new Proxy(R[L].deleteRule, { apply: $((F, P, b) => {
5171
+ const [y] = b, { id: O, styleId: B } = tt(P.parentStyleSheet, g, v.styleMirror);
5172
+ return (O && O !== -1 || B && B !== -1) && m({ id: O, styleId: B, removes: [{ index: [...jr(P), y] }] }), F.apply(P, b);
5173
5173
  }) });
5174
- }), G(() => {
5175
- I.CSSStyleSheet.prototype.insertRule = O, I.CSSStyleSheet.prototype.deleteRule = E, U && (I.CSSStyleSheet.prototype.replace = U), A && (I.CSSStyleSheet.prototype.replaceSync = A), Object.entries(k).forEach(([R, S]) => {
5176
- S.prototype.insertRule = L[R].insertRule, S.prototype.deleteRule = L[R].deleteRule;
5174
+ }), $(() => {
5175
+ S.CSSStyleSheet.prototype.insertRule = A, S.CSSStyleSheet.prototype.deleteRule = k, M && (S.CSSStyleSheet.prototype.replace = M), U && (S.CSSStyleSheet.prototype.replaceSync = U), Object.entries(E).forEach(([L, I]) => {
5176
+ I.prototype.insertRule = R[L].insertRule, I.prototype.deleteRule = R[L].deleteRule;
5177
5177
  });
5178
5178
  });
5179
- }(e, { win: r }), d = Kc(e, e.doc), p = function({ styleDeclarationCb: m, mirror: g, ignoreCSSAttributes: v, stylesheetManager: I }, { win: O }) {
5180
- const E = O.CSSStyleDeclaration.prototype.setProperty;
5181
- O.CSSStyleDeclaration.prototype.setProperty = new Proxy(E, { apply: G((A, k, L) => {
5182
- var R;
5183
- const [S, P, M] = L;
5184
- if (v.has(S)) return E.apply(k, [S, P, M]);
5185
- const { id: b, styleId: y } = tt((R = k.parentRule) == null ? void 0 : R.parentStyleSheet, g, I.styleMirror);
5186
- return (b && b !== -1 || y && y !== -1) && m({ id: b, styleId: y, set: { property: S, value: P, priority: M }, index: jr(k.parentRule) }), A.apply(k, L);
5179
+ }(e, { win: r }), d = Kc(e, e.doc), p = function({ styleDeclarationCb: m, mirror: g, ignoreCSSAttributes: v, stylesheetManager: S }, { win: A }) {
5180
+ const k = A.CSSStyleDeclaration.prototype.setProperty;
5181
+ A.CSSStyleDeclaration.prototype.setProperty = new Proxy(k, { apply: $((U, E, R) => {
5182
+ var L;
5183
+ const [I, F, P] = R;
5184
+ if (v.has(I)) return k.apply(E, [I, F, P]);
5185
+ const { id: b, styleId: y } = tt((L = E.parentRule) == null ? void 0 : L.parentStyleSheet, g, S.styleMirror);
5186
+ return (b && b !== -1 || y && y !== -1) && m({ id: b, styleId: y, set: { property: I, value: F, priority: P }, index: jr(E.parentRule) }), U.apply(E, R);
5187
5187
  }) });
5188
- const U = O.CSSStyleDeclaration.prototype.removeProperty;
5189
- return O.CSSStyleDeclaration.prototype.removeProperty = new Proxy(U, { apply: G((A, k, L) => {
5190
- var R;
5191
- const [S] = L;
5192
- if (v.has(S)) return U.apply(k, [S]);
5193
- const { id: P, styleId: M } = tt((R = k.parentRule) == null ? void 0 : R.parentStyleSheet, g, I.styleMirror);
5194
- return (P && P !== -1 || M && M !== -1) && m({ id: P, styleId: M, remove: { property: S }, index: jr(k.parentRule) }), A.apply(k, L);
5195
- }) }), G(() => {
5196
- O.CSSStyleDeclaration.prototype.setProperty = E, O.CSSStyleDeclaration.prototype.removeProperty = U;
5188
+ const M = A.CSSStyleDeclaration.prototype.removeProperty;
5189
+ return A.CSSStyleDeclaration.prototype.removeProperty = new Proxy(M, { apply: $((U, E, R) => {
5190
+ var L;
5191
+ const [I] = R;
5192
+ if (v.has(I)) return M.apply(E, [I]);
5193
+ const { id: F, styleId: P } = tt((L = E.parentRule) == null ? void 0 : L.parentStyleSheet, g, S.styleMirror);
5194
+ return (F && F !== -1 || P && P !== -1) && m({ id: F, styleId: P, remove: { property: I }, index: jr(E.parentRule) }), U.apply(E, R);
5195
+ }) }), $(() => {
5196
+ A.CSSStyleDeclaration.prototype.setProperty = k, A.CSSStyleDeclaration.prototype.removeProperty = M;
5197
5197
  });
5198
5198
  }(e, { win: r }), e.collectFonts && (f = function({ fontCb: m, doc: g }) {
5199
5199
  const v = g.defaultView;
5200
5200
  if (!v) return () => {
5201
5201
  };
5202
- const I = [], O = /* @__PURE__ */ new WeakMap(), E = v.FontFace;
5203
- v.FontFace = function(A, k, L) {
5204
- const R = new E(A, k, L);
5205
- return O.set(R, { family: A, buffer: typeof k != "string", descriptors: L, fontSource: typeof k == "string" ? k : JSON.stringify(Array.from(new Uint8Array(k))) }), R;
5202
+ const S = [], A = /* @__PURE__ */ new WeakMap(), k = v.FontFace;
5203
+ v.FontFace = function(U, E, R) {
5204
+ const L = new k(U, E, R);
5205
+ return A.set(L, { family: U, buffer: typeof E != "string", descriptors: R, fontSource: typeof E == "string" ? E : JSON.stringify(Array.from(new Uint8Array(E))) }), L;
5206
5206
  };
5207
- const U = At(g.fonts, "add", function(A) {
5208
- return function(k) {
5209
- return setTimeout(G(() => {
5210
- const L = O.get(k);
5211
- L && (m(L), O.delete(k));
5212
- }), 0), A.apply(this, [k]);
5207
+ const M = Mt(g.fonts, "add", function(U) {
5208
+ return function(E) {
5209
+ return setTimeout($(() => {
5210
+ const R = A.get(E);
5211
+ R && (m(R), A.delete(E));
5212
+ }), 0), U.apply(this, [E]);
5213
5213
  };
5214
5214
  });
5215
- return I.push(() => {
5216
- v.FontFace = E;
5217
- }), I.push(U), G(() => {
5218
- I.forEach((A) => A());
5215
+ return S.push(() => {
5216
+ v.FontFace = k;
5217
+ }), S.push(M), $(() => {
5218
+ S.forEach((U) => U());
5219
5219
  });
5220
5220
  }(e)));
5221
5221
  const w = function(m) {
5222
- const { doc: g, mirror: v, blockClass: I, blockSelector: O, selectionCb: E } = m;
5223
- let U = !0;
5224
- const A = G(() => {
5225
- const k = g.getSelection();
5226
- if (!k || U && (k != null && k.isCollapsed)) return;
5227
- U = k.isCollapsed || !1;
5228
- const L = [], R = k.rangeCount || 0;
5229
- for (let S = 0; S < R; S++) {
5230
- const P = k.getRangeAt(S), { startContainer: M, startOffset: b, endContainer: y, endOffset: D } = P;
5231
- Ie(M, I, O, !0) || Ie(y, I, O, !0) || L.push({ start: v.getId(M), startOffset: b, end: v.getId(y), endOffset: D });
5222
+ const { doc: g, mirror: v, blockClass: S, blockSelector: A, selectionCb: k } = m;
5223
+ let M = !0;
5224
+ const U = $(() => {
5225
+ const E = g.getSelection();
5226
+ if (!E || M && (E != null && E.isCollapsed)) return;
5227
+ M = E.isCollapsed || !1;
5228
+ const R = [], L = E.rangeCount || 0;
5229
+ for (let I = 0; I < L; I++) {
5230
+ const F = E.getRangeAt(I), { startContainer: P, startOffset: b, endContainer: y, endOffset: O } = F;
5231
+ Se(P, S, A, !0) || Se(y, S, A, !0) || R.push({ start: v.getId(P), startOffset: b, end: v.getId(y), endOffset: O });
5232
5232
  }
5233
- E({ ranges: L });
5233
+ k({ ranges: R });
5234
5234
  });
5235
- return A(), Se("selectionchange", A);
5235
+ return U(), ve("selectionchange", U);
5236
5236
  }(e), h = function({ doc: m, customElementCb: g }) {
5237
5237
  const v = m.defaultView;
5238
- return v && v.customElements ? At(v.customElements, "define", function(I) {
5239
- return function(O, E, U) {
5238
+ return v && v.customElements ? Mt(v.customElements, "define", function(S) {
5239
+ return function(A, k, M) {
5240
5240
  try {
5241
- g({ define: { name: O } });
5241
+ g({ define: { name: A } });
5242
5242
  } catch {
5243
- console.warn(`Custom element callback failed for ${O}`);
5243
+ console.warn(`Custom element callback failed for ${A}`);
5244
5244
  }
5245
- return I.apply(this, [O, E, U]);
5245
+ return S.apply(this, [A, k, M]);
5246
5246
  };
5247
5247
  }) : () => {
5248
5248
  };
5249
5249
  }(e), C = [];
5250
5250
  for (const m of e.plugins) C.push(m.observer(m.callback, r, m.options));
5251
- return G(() => {
5252
- ht.forEach((m) => m.reset()), s == null || s.disconnect(), n(), i(), a(), o(), l(), c(), u(), d(), p(), f(), w(), h(), C.forEach((m) => m());
5251
+ return $(() => {
5252
+ mt.forEach((m) => m.reset()), s == null || s.disconnect(), n(), i(), a(), o(), l(), c(), u(), d(), p(), f(), w(), h(), C.forEach((m) => m());
5253
5253
  });
5254
5254
  }
5255
5255
  function Wr(e) {
@@ -5317,22 +5317,22 @@ class If {
5317
5317
  transformCrossOriginEvent(t, r) {
5318
5318
  var s;
5319
5319
  switch (r.type) {
5320
- case $.FullSnapshot: {
5320
+ case J.FullSnapshot: {
5321
5321
  this.crossOriginIframeMirror.reset(t), this.crossOriginIframeStyleMirror.reset(t), this.replaceIdOnNode(r.data.node, t);
5322
5322
  const n = r.data.node.id;
5323
- return this.crossOriginIframeRootIdMap.set(t, n), this.patchRootIdOnNode(r.data.node, n), { timestamp: r.timestamp, type: $.IncrementalSnapshot, data: { source: H.Mutation, adds: [{ parentId: this.mirror.getId(t), nextId: null, node: r.data.node }], removes: [], texts: [], attributes: [], isAttachIframe: !0 } };
5323
+ return this.crossOriginIframeRootIdMap.set(t, n), this.patchRootIdOnNode(r.data.node, n), { timestamp: r.timestamp, type: J.IncrementalSnapshot, data: { source: G.Mutation, adds: [{ parentId: this.mirror.getId(t), nextId: null, node: r.data.node }], removes: [], texts: [], attributes: [], isAttachIframe: !0 } };
5324
5324
  }
5325
- case $.Meta:
5326
- case $.Load:
5327
- case $.DomContentLoaded:
5325
+ case J.Meta:
5326
+ case J.Load:
5327
+ case J.DomContentLoaded:
5328
5328
  return !1;
5329
- case $.Plugin:
5329
+ case J.Plugin:
5330
5330
  return r;
5331
- case $.Custom:
5331
+ case J.Custom:
5332
5332
  return this.replaceIds(r.data.payload, t, ["id", "parentId", "previousId", "nextId"]), r;
5333
- case $.IncrementalSnapshot:
5333
+ case J.IncrementalSnapshot:
5334
5334
  switch (r.data.source) {
5335
- case H.Mutation:
5335
+ case G.Mutation:
5336
5336
  return r.data.adds.forEach((n) => {
5337
5337
  this.replaceIds(n, t, ["parentId", "nextId", "previousId"]), this.replaceIdOnNode(n.node, t);
5338
5338
  const i = this.crossOriginIframeRootIdMap.get(t);
@@ -5344,30 +5344,30 @@ class If {
5344
5344
  }), r.data.texts.forEach((n) => {
5345
5345
  this.replaceIds(n, t, ["id"]);
5346
5346
  }), r;
5347
- case H.Drag:
5348
- case H.TouchMove:
5349
- case H.MouseMove:
5347
+ case G.Drag:
5348
+ case G.TouchMove:
5349
+ case G.MouseMove:
5350
5350
  return r.data.positions.forEach((n) => {
5351
5351
  this.replaceIds(n, t, ["id"]);
5352
5352
  }), r;
5353
- case H.ViewportResize:
5353
+ case G.ViewportResize:
5354
5354
  return !1;
5355
- case H.MediaInteraction:
5356
- case H.MouseInteraction:
5357
- case H.Scroll:
5358
- case H.CanvasMutation:
5359
- case H.Input:
5355
+ case G.MediaInteraction:
5356
+ case G.MouseInteraction:
5357
+ case G.Scroll:
5358
+ case G.CanvasMutation:
5359
+ case G.Input:
5360
5360
  return this.replaceIds(r.data, t, ["id"]), r;
5361
- case H.StyleSheetRule:
5362
- case H.StyleDeclaration:
5361
+ case G.StyleSheetRule:
5362
+ case G.StyleDeclaration:
5363
5363
  return this.replaceIds(r.data, t, ["id"]), this.replaceStyleIds(r.data, t, ["styleId"]), r;
5364
- case H.Font:
5364
+ case G.Font:
5365
5365
  return r;
5366
- case H.Selection:
5366
+ case G.Selection:
5367
5367
  return r.data.ranges.forEach((n) => {
5368
5368
  this.replaceIds(n, t, ["start", "end"]);
5369
5369
  }), r;
5370
- case H.AdoptedStyleSheet:
5370
+ case G.AdoptedStyleSheet:
5371
5371
  return this.replaceIds(r.data, t, ["id"]), this.replaceStyleIds(r.data, t, ["styleIds"]), (s = r.data.styles) == null || s.forEach((n) => {
5372
5372
  this.replaceStyleIds(n, t, ["styleId"]);
5373
5373
  }), r;
@@ -5391,7 +5391,7 @@ class If {
5391
5391
  });
5392
5392
  }
5393
5393
  patchRootIdOnNode(t, r) {
5394
- t.type === fe.Document || t.rootId || (t.rootId = r), "childNodes" in t && t.childNodes.forEach((s) => {
5394
+ t.type === me.Document || t.rootId || (t.rootId = r), "childNodes" in t && t.childNodes.forEach((s) => {
5395
5395
  this.patchRootIdOnNode(s, r);
5396
5396
  });
5397
5397
  }
@@ -5406,9 +5406,9 @@ class Cf {
5406
5406
  addShadowRoot(t, r) {
5407
5407
  if (!Xt(t) || this.shadowDoms.has(t)) return;
5408
5408
  this.shadowDoms.add(t);
5409
- const s = qc({ ...this.bypassOptions, doc: r, mutationCb: this.mutationCb, mirror: this.mirror, shadowDomManager: this }, t);
5410
- this.restoreHandlers.push(() => s.disconnect()), this.restoreHandlers.push(Jc({ ...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(V.host(t))), this.restoreHandlers.push(Kc({ mirror: this.mirror, stylesheetManager: this.bypassOptions.stylesheetManager }, t));
5409
+ const s = Jc({ ...this.bypassOptions, doc: r, mutationCb: this.mutationCb, mirror: this.mirror, shadowDomManager: this }, t);
5410
+ this.restoreHandlers.push(() => s.disconnect()), this.restoreHandlers.push(qc({ ...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(Kc({ mirror: this.mirror, stylesheetManager: this.bypassOptions.stylesheetManager }, t));
5412
5412
  }, 0);
5413
5413
  }
5414
5414
  observeAttachShadow(t) {
@@ -5416,9 +5416,9 @@ class Cf {
5416
5416
  }
5417
5417
  patchAttachShadow(t, r) {
5418
5418
  const s = this;
5419
- this.restoreHandlers.push(At(t.prototype, "attachShadow", function(n) {
5419
+ this.restoreHandlers.push(Mt(t.prototype, "attachShadow", function(n) {
5420
5420
  return function(i) {
5421
- const a = n.call(this, i), o = V.shadowRoot(this);
5421
+ const a = n.call(this, i), o = H.shadowRoot(this);
5422
5422
  return o && $c(this) && s.addShadowRoot(o, r), a;
5423
5423
  };
5424
5424
  }));
@@ -5465,9 +5465,9 @@ const Xc = (e, t, r) => e.map((s) => as(s, t, r)), Qc = (e, t) => !!["WebGLActiv
5465
5465
  function _a(e, t, r, s) {
5466
5466
  const n = [];
5467
5467
  try {
5468
- const i = At(e.HTMLCanvasElement.prototype, "getContext", function(a) {
5468
+ const i = Mt(e.HTMLCanvasElement.prototype, "getContext", function(a) {
5469
5469
  return function(o, ...l) {
5470
- if (!Ie(this, t, r, !0)) {
5470
+ if (!Se(this, t, r, !0)) {
5471
5471
  const c = /* @__PURE__ */ function(u) {
5472
5472
  return u === "experimental-webgl" ? "webgl" : u;
5473
5473
  }(o);
@@ -5491,10 +5491,10 @@ function Na(e, t, r, s, n, i) {
5491
5491
  const a = [], o = Object.getOwnPropertyNames(e);
5492
5492
  for (const l of o) if (!["isContextLost", "canvas", "drawingBufferWidth", "drawingBufferHeight"].includes(l)) try {
5493
5493
  if (typeof e[l] != "function") continue;
5494
- const c = At(e, l, function(u) {
5494
+ const c = Mt(e, l, function(u) {
5495
5495
  return function(...d) {
5496
5496
  const p = u.apply(this, d);
5497
- if (Zc(p, i, this), "tagName" in this.canvas && !Ie(this.canvas, s, n, !0)) {
5497
+ if (Zc(p, i, this), "tagName" in this.canvas && !Se(this.canvas, s, n, !0)) {
5498
5498
  const f = Xc(d, i, this), w = { type: t, property: l, args: f };
5499
5499
  r(this.canvas, w);
5500
5500
  }
@@ -5555,7 +5555,7 @@ class xf {
5555
5555
  const { id: w } = f.data;
5556
5556
  if (o.set(w, !1), !("base64" in f.data)) return;
5557
5557
  const { base64: h, type: C, width: m, height: g } = f.data;
5558
- this.mutationCb({ id: w, type: Ct["2D"], commands: [{ property: "clearRect", args: [0, 0, m, g] }, { property: "drawImage", args: [{ rr_type: "ImageBitmap", args: [{ rr_type: "Blob", data: [{ rr_type: "ArrayBuffer", base64: h }], type: C }] }, 0, 0] }] });
5558
+ this.mutationCb({ id: w, type: kt["2D"], commands: [{ property: "clearRect", args: [0, 0, m, g] }, { property: "drawImage", args: [{ rr_type: "ImageBitmap", args: [{ rr_type: "Blob", data: [{ rr_type: "ArrayBuffer", base64: h }], type: C }] }, 0, 0] }] });
5559
5559
  };
5560
5560
  const c = 1e3 / t;
5561
5561
  let u, d = 0;
@@ -5563,7 +5563,7 @@ class xf {
5563
5563
  d && f - d < c || (d = f, (() => {
5564
5564
  const w = [];
5565
5565
  return r.document.querySelectorAll("canvas").forEach((h) => {
5566
- Ie(h, s, n, !0) || w.push(h);
5566
+ Se(h, s, n, !0) || w.push(h);
5567
5567
  }), w;
5568
5568
  })().forEach(async (w) => {
5569
5569
  var h;
@@ -5587,18 +5587,18 @@ class xf {
5587
5587
  const d = [], p = Object.getOwnPropertyNames(l.CanvasRenderingContext2D.prototype);
5588
5588
  for (const f of p) try {
5589
5589
  if (typeof l.CanvasRenderingContext2D.prototype[f] != "function") continue;
5590
- const w = At(l.CanvasRenderingContext2D.prototype, f, function(h) {
5590
+ const w = Mt(l.CanvasRenderingContext2D.prototype, f, function(h) {
5591
5591
  return function(...C) {
5592
- return Ie(this.canvas, c, u, !0) || setTimeout(() => {
5592
+ return Se(this.canvas, c, u, !0) || setTimeout(() => {
5593
5593
  const m = Xc(C, l, this);
5594
- o(this.canvas, { type: Ct["2D"], property: f, args: m });
5594
+ o(this.canvas, { type: kt["2D"], property: f, args: m });
5595
5595
  }, 0), h.apply(this, C);
5596
5596
  };
5597
5597
  });
5598
5598
  d.push(w);
5599
5599
  } catch {
5600
5600
  const w = $s(l.CanvasRenderingContext2D.prototype, f, { set(h) {
5601
- o(this.canvas, { type: Ct["2D"], property: f, args: [h], setter: !0 });
5601
+ o(this.canvas, { type: kt["2D"], property: f, args: [h], setter: !0 });
5602
5602
  } });
5603
5603
  d.push(w);
5604
5604
  }
@@ -5607,7 +5607,7 @@ class xf {
5607
5607
  };
5608
5608
  }(this.processMutation.bind(this), t, r, s), a = function(o, l, c, u) {
5609
5609
  const d = [];
5610
- return d.push(...Na(l.WebGLRenderingContext.prototype, Ct.WebGL, o, c, u, l)), l.WebGL2RenderingContext !== void 0 && d.push(...Na(l.WebGL2RenderingContext.prototype, Ct.WebGL2, o, c, u, l)), () => {
5610
+ return d.push(...Na(l.WebGLRenderingContext.prototype, kt.WebGL, o, c, u, l)), l.WebGL2RenderingContext !== void 0 && d.push(...Na(l.WebGL2RenderingContext.prototype, kt.WebGL2, o, c, u, l)), () => {
5611
5611
  d.forEach((p) => p());
5612
5612
  };
5613
5613
  }(this.processMutation.bind(this), t, r, s);
@@ -5682,7 +5682,7 @@ class Rf {
5682
5682
  destroy() {
5683
5683
  }
5684
5684
  }
5685
- let ue, ls, hn, bs = !1;
5685
+ let ce, ls, hn, bs = !1;
5686
5686
  try {
5687
5687
  if (Array.from([1], (e) => 2 * e)[0] !== 2) {
5688
5688
  const e = document.createElement("iframe");
@@ -5692,110 +5692,110 @@ try {
5692
5692
  console.debug("Unable to override Array.from", e);
5693
5693
  }
5694
5694
  const Oe = new Rl();
5695
- function qt(e = {}) {
5696
- const { emit: t, checkoutEveryNms: r, checkoutEveryNth: s, blockClass: n = "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: p, slimDOMOptions: f, maskInputFn: w, maskTextFn: h, hooks: C, packFn: m, sampling: g = {}, dataURLOptions: v = {}, mousemoveWait: I, recordDOM: O = !0, recordCanvas: E = !1, recordCrossOriginIframes: U = !1, recordAfter: A = e.recordAfter === "DOMContentLoaded" ? e.recordAfter : "load", userTriggeredOnInput: k = !1, collectFonts: L = !1, inlineImages: R = !1, plugins: S, keepIframeSrcFn: P = () => !1, ignoreCSSAttributes: M = /* @__PURE__ */ new Set([]), errorHandler: b } = e;
5695
+ function Jt(e = {}) {
5696
+ const { emit: t, checkoutEveryNms: r, checkoutEveryNth: s, blockClass: n = "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: p, slimDOMOptions: f, maskInputFn: w, maskTextFn: h, hooks: C, packFn: m, sampling: g = {}, dataURLOptions: v = {}, mousemoveWait: S, recordDOM: A = !0, recordCanvas: k = !1, recordCrossOriginIframes: M = !1, recordAfter: U = e.recordAfter === "DOMContentLoaded" ? e.recordAfter : "load", userTriggeredOnInput: E = !1, collectFonts: R = !1, inlineImages: L = !1, plugins: I, keepIframeSrcFn: F = () => !1, ignoreCSSAttributes: P = /* @__PURE__ */ new Set([]), errorHandler: b } = e;
5697
5697
  Qt = b;
5698
- const y = !U || window.parent === window;
5699
- let D = !1;
5698
+ const y = !M || window.parent === window;
5699
+ let O = !1;
5700
5700
  if (!y) try {
5701
- window.parent.document && (D = !1);
5701
+ window.parent.document && (O = !1);
5702
5702
  } catch {
5703
- D = !0;
5703
+ O = !0;
5704
5704
  }
5705
5705
  if (y && !t) throw new Error("emit function is required");
5706
- if (!y && !D) return () => {
5706
+ if (!y && !O) return () => {
5707
5707
  };
5708
- I !== void 0 && g.mousemove === void 0 && (g.mousemove = I), Oe.reset();
5709
- const _ = d === !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 } : p !== void 0 ? p : { password: !0 }, W = f === !0 || f === "all" ? { script: !0, comment: !0, headFavicon: !0, headWhitespace: !0, headMetaSocial: !0, headMetaRobots: !0, headMetaHttpEquiv: !0, headMetaVerification: !0, headMetaAuthorship: f === "all", headMetaDescKeywords: f === "all", headTitleMutations: f === "all" } : f || {};
5708
+ S !== void 0 && g.mousemove === void 0 && (g.mousemove = S), Oe.reset();
5709
+ const B = d === !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 } : p !== void 0 ? p : { password: !0 }, j = f === !0 || f === "all" ? { script: !0, comment: !0, headFavicon: !0, headWhitespace: !0, headMetaSocial: !0, headMetaRobots: !0, headMetaHttpEquiv: !0, headMetaVerification: !0, headMetaAuthorship: f === "all", headMetaDescKeywords: f === "all", headTitleMutations: f === "all" } : f || {};
5710
5710
  let T;
5711
- (function(z = window) {
5712
- "NodeList" in z && !z.NodeList.prototype.forEach && (z.NodeList.prototype.forEach = Array.prototype.forEach), "DOMTokenList" in z && !z.DOMTokenList.prototype.forEach && (z.DOMTokenList.prototype.forEach = Array.prototype.forEach);
5711
+ (function(V = window) {
5712
+ "NodeList" in V && !V.NodeList.prototype.forEach && (V.NodeList.prototype.forEach = Array.prototype.forEach), "DOMTokenList" in V && !V.DOMTokenList.prototype.forEach && (V.DOMTokenList.prototype.forEach = Array.prototype.forEach);
5713
5713
  })();
5714
- let N = 0;
5715
- const Q = (z) => {
5716
- for (const ve of S || []) ve.eventProcessor && (z = ve.eventProcessor(z));
5717
- return m && !D && (z = m(z)), z;
5714
+ let D = 0;
5715
+ const ne = (V) => {
5716
+ for (const Ie of I || []) Ie.eventProcessor && (V = Ie.eventProcessor(V));
5717
+ return m && !O && (V = m(V)), V;
5718
5718
  };
5719
- ue = (z, ve) => {
5720
- var J;
5721
- const ee = z;
5722
- if (ee.timestamp = ws(), !((J = ht[0]) != null && J.isFrozen()) || ee.type === $.FullSnapshot || ee.type === $.IncrementalSnapshot && ee.data.source === H.Mutation || ht.forEach((Re) => Re.unfreeze()), y) t == null || t(Q(ee), ve);
5723
- else if (D) {
5724
- const Re = { type: "rrweb", event: Q(ee), origin: window.location.origin, isCheckout: ve };
5725
- window.parent.postMessage(Re, "*");
5726
- }
5727
- if (ee.type === $.FullSnapshot) T = ee, N = 0;
5728
- else if (ee.type === $.IncrementalSnapshot) {
5729
- if (ee.data.source === H.Mutation && ee.data.isAttachIframe) return;
5730
- N++;
5731
- const Re = s && N >= s, K = r && ee.timestamp - T.timestamp > r;
5732
- (Re || K) && ls(!0);
5719
+ ce = (V, Ie) => {
5720
+ var _;
5721
+ const q = V;
5722
+ if (q.timestamp = ws(), !((_ = mt[0]) != null && _.isFrozen()) || q.type === J.FullSnapshot || q.type === J.IncrementalSnapshot && q.data.source === G.Mutation || mt.forEach((we) => we.unfreeze()), y) t == null || t(ne(q), Ie);
5723
+ else if (O) {
5724
+ const we = { type: "rrweb", event: ne(q), origin: window.location.origin, isCheckout: Ie };
5725
+ window.parent.postMessage(we, "*");
5726
+ }
5727
+ if (q.type === J.FullSnapshot) T = q, D = 0;
5728
+ else if (q.type === J.IncrementalSnapshot) {
5729
+ if (q.data.source === G.Mutation && q.data.isAttachIframe) return;
5730
+ D++;
5731
+ const we = s && D >= s, Y = r && q.timestamp - T.timestamp > r;
5732
+ (we || Y) && ls(!0);
5733
5733
  }
5734
5734
  };
5735
- const Y = (z) => {
5736
- ue({ type: $.IncrementalSnapshot, data: { source: H.Mutation, ...z } });
5737
- }, me = (z) => ue({ type: $.IncrementalSnapshot, data: { source: H.Scroll, ...z } }), _e = (z) => ue({ type: $.IncrementalSnapshot, data: { source: H.CanvasMutation, ...z } }), we = new Tf({ mutationCb: Y, adoptedStyleSheetCb: (z) => ue({ type: $.IncrementalSnapshot, data: { source: H.AdoptedStyleSheet, ...z } }) }), ke = new If({ mirror: Oe, mutationCb: Y, stylesheetManager: we, recordCrossOriginIframes: U, wrappedEmit: ue });
5738
- for (const z of S || []) z.getMirror && z.getMirror({ nodeMirror: Oe, crossOriginIframeMirror: ke.crossOriginIframeMirror, crossOriginIframeStyleMirror: ke.crossOriginIframeStyleMirror });
5739
- const wt = new Rf();
5740
- hn = new xf({ recordCanvas: E, mutationCb: _e, win: window, blockClass: n, blockSelector: i, mirror: Oe, sampling: g.canvas, dataURLOptions: v });
5741
- const q = new Cf({ mutationCb: Y, scrollCb: me, bypassOptions: { blockClass: n, blockSelector: i, maskTextClass: l, maskTextSelector: c, inlineStylesheet: u, maskInputOptions: _, dataURLOptions: v, maskTextFn: h, maskInputFn: w, recordCanvas: E, inlineImages: R, sampling: g, slimDOMOptions: W, iframeManager: ke, stylesheetManager: we, canvasManager: hn, keepIframeSrcFn: P, processedNodeManager: wt }, mirror: Oe });
5742
- ls = (z = !1) => {
5743
- if (!O) return;
5744
- ue({ type: $.Meta, data: { href: window.location.href, width: zc(), height: Bc() } }, z), we.reset(), q.init(), ht.forEach((J) => J.lock());
5745
- const ve = function(J, ee) {
5746
- const { mirror: Re = new Rl(), blockClass: K = "rr-block", blockSelector: _t = null, maskTextClass: id = "rr-mask", maskTextSelector: od = null, inlineStylesheet: ad = !0, inlineImages: ld = !1, recordCanvas: cd = !1, maskAllInputs: qs = !1, maskTextFn: ud, maskInputFn: dd, slimDOM: Nt = !1, dataURLOptions: pd, preserveWhiteSpace: hd, onSerialize: md, onIframeLoad: fd, iframeLoadTimeout: gd, onStylesheetLoad: yd, stylesheetLoadTimeout: wd, keepIframeSrcFn: bd = () => !1 } = ee || {};
5747
- return Et(J, { doc: J, mirror: Re, blockClass: K, blockSelector: _t, maskTextClass: id, maskTextSelector: od, skipChild: !1, inlineStylesheet: ad, maskInputOptions: qs === !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 } : qs === !1 ? { password: !0 } : qs, maskTextFn: ud, maskInputFn: dd, 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: pd, inlineImages: ld, recordCanvas: cd, preserveWhiteSpace: hd, onSerialize: md, onIframeLoad: fd, iframeLoadTimeout: gd, onStylesheetLoad: yd, stylesheetLoadTimeout: wd, keepIframeSrcFn: bd, newlyAddedElement: !1 });
5748
- }(document, { mirror: Oe, blockClass: n, blockSelector: i, maskTextClass: l, maskTextSelector: c, inlineStylesheet: u, maskAllInputs: _, maskTextFn: h, maskInputFn: w, slimDOM: W, dataURLOptions: v, recordCanvas: E, inlineImages: R, onSerialize: (J) => {
5749
- Vc(J, Oe) && ke.addIframe(J), Hc(J, Oe) && we.trackLinkElement(J), ai(J) && q.addShadowRoot(V.shadowRoot(J), document);
5750
- }, onIframeLoad: (J, ee) => {
5751
- ke.attachIframe(J, ee), q.observeAttachShadow(J);
5752
- }, onStylesheetLoad: (J, ee) => {
5753
- we.attachLinkElement(J, ee);
5754
- }, keepIframeSrcFn: P });
5755
- if (!ve) return console.warn("Failed to snapshot the document");
5756
- ue({ type: $.FullSnapshot, data: { node: ve, initialOffset: Fc(window) } }, z), ht.forEach((J) => J.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && we.adoptStyleSheets(document.adoptedStyleSheets, Oe.getId(document));
5735
+ const K = (V) => {
5736
+ ce({ type: J.IncrementalSnapshot, data: { source: G.Mutation, ...V } });
5737
+ }, he = (V) => ce({ type: J.IncrementalSnapshot, data: { source: G.Scroll, ...V } }), Le = (V) => ce({ type: J.IncrementalSnapshot, data: { source: G.CanvasMutation, ...V } }), ye = new Tf({ mutationCb: K, adoptedStyleSheetCb: (V) => ce({ type: J.IncrementalSnapshot, data: { source: G.AdoptedStyleSheet, ...V } }) }), ke = new If({ mirror: Oe, mutationCb: K, stylesheetManager: ye, recordCrossOriginIframes: M, wrappedEmit: ce });
5738
+ for (const V of I || []) V.getMirror && V.getMirror({ nodeMirror: Oe, crossOriginIframeMirror: ke.crossOriginIframeMirror, crossOriginIframeStyleMirror: ke.crossOriginIframeStyleMirror });
5739
+ const bt = new Rf();
5740
+ hn = new xf({ recordCanvas: k, mutationCb: Le, win: window, blockClass: n, blockSelector: i, mirror: Oe, sampling: g.canvas, dataURLOptions: v });
5741
+ const dt = new Cf({ mutationCb: K, scrollCb: he, bypassOptions: { blockClass: n, blockSelector: i, maskTextClass: l, maskTextSelector: c, inlineStylesheet: u, maskInputOptions: B, dataURLOptions: v, maskTextFn: h, maskInputFn: w, recordCanvas: k, inlineImages: L, sampling: g, slimDOMOptions: j, iframeManager: ke, stylesheetManager: ye, canvasManager: hn, keepIframeSrcFn: F, processedNodeManager: bt }, mirror: Oe });
5742
+ ls = (V = !1) => {
5743
+ if (!A) return;
5744
+ ce({ type: J.Meta, data: { href: window.location.href, width: zc(), height: Bc() } }, V), ye.reset(), dt.init(), mt.forEach((_) => _.lock());
5745
+ const Ie = function(_, q) {
5746
+ const { mirror: we = new Rl(), blockClass: Y = "rr-block", blockSelector: Xe = null, maskTextClass: id = "rr-mask", maskTextSelector: od = null, inlineStylesheet: ad = !0, inlineImages: ld = !1, recordCanvas: cd = !1, maskAllInputs: Js = !1, maskTextFn: ud, maskInputFn: dd, slimDOM: Nt = !1, dataURLOptions: pd, preserveWhiteSpace: hd, onSerialize: md, onIframeLoad: fd, iframeLoadTimeout: gd, onStylesheetLoad: yd, stylesheetLoadTimeout: wd, keepIframeSrcFn: bd = () => !1 } = q || {};
5747
+ return xt(_, { doc: _, mirror: we, blockClass: Y, blockSelector: Xe, maskTextClass: id, maskTextSelector: od, skipChild: !1, inlineStylesheet: ad, maskInputOptions: Js === !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 } : Js === !1 ? { password: !0 } : Js, maskTextFn: ud, maskInputFn: dd, 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: pd, inlineImages: ld, recordCanvas: cd, preserveWhiteSpace: hd, onSerialize: md, onIframeLoad: fd, iframeLoadTimeout: gd, onStylesheetLoad: yd, stylesheetLoadTimeout: wd, keepIframeSrcFn: bd, newlyAddedElement: !1 });
5748
+ }(document, { mirror: Oe, blockClass: n, blockSelector: i, maskTextClass: l, maskTextSelector: c, inlineStylesheet: u, maskAllInputs: B, maskTextFn: h, maskInputFn: w, slimDOM: j, dataURLOptions: v, recordCanvas: k, inlineImages: L, onSerialize: (_) => {
5749
+ Vc(_, Oe) && ke.addIframe(_), Hc(_, Oe) && ye.trackLinkElement(_), ai(_) && dt.addShadowRoot(H.shadowRoot(_), document);
5750
+ }, onIframeLoad: (_, q) => {
5751
+ ke.attachIframe(_, q), dt.observeAttachShadow(_);
5752
+ }, onStylesheetLoad: (_, q) => {
5753
+ ye.attachLinkElement(_, q);
5754
+ }, keepIframeSrcFn: F });
5755
+ if (!Ie) return console.warn("Failed to snapshot the document");
5756
+ ce({ type: J.FullSnapshot, data: { node: Ie, initialOffset: Fc(window) } }, V), mt.forEach((_) => _.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && ye.adoptStyleSheets(document.adoptedStyleSheets, Oe.getId(document));
5757
5757
  };
5758
5758
  try {
5759
- const z = [], ve = (ee) => {
5760
- var Re;
5761
- return G(Sf)({ mutationCb: Y, mousemoveCb: (K, _t) => ue({ type: $.IncrementalSnapshot, data: { source: _t, positions: K } }), mouseInteractionCb: (K) => ue({ type: $.IncrementalSnapshot, data: { source: H.MouseInteraction, ...K } }), scrollCb: me, viewportResizeCb: (K) => ue({ type: $.IncrementalSnapshot, data: { source: H.ViewportResize, ...K } }), inputCb: (K) => ue({ type: $.IncrementalSnapshot, data: { source: H.Input, ...K } }), mediaInteractionCb: (K) => ue({ type: $.IncrementalSnapshot, data: { source: H.MediaInteraction, ...K } }), styleSheetRuleCb: (K) => ue({ type: $.IncrementalSnapshot, data: { source: H.StyleSheetRule, ...K } }), styleDeclarationCb: (K) => ue({ type: $.IncrementalSnapshot, data: { source: H.StyleDeclaration, ...K } }), canvasMutationCb: _e, fontCb: (K) => ue({ type: $.IncrementalSnapshot, data: { source: H.Font, ...K } }), selectionCb: (K) => {
5762
- ue({ type: $.IncrementalSnapshot, data: { source: H.Selection, ...K } });
5763
- }, customElementCb: (K) => {
5764
- ue({ type: $.IncrementalSnapshot, data: { source: H.CustomElement, ...K } });
5765
- }, blockClass: n, ignoreClass: a, ignoreSelector: o, maskTextClass: l, maskTextSelector: c, maskInputOptions: _, inlineStylesheet: u, sampling: g, recordDOM: O, recordCanvas: E, inlineImages: R, userTriggeredOnInput: k, collectFonts: L, doc: ee, maskInputFn: w, maskTextFn: h, keepIframeSrcFn: P, blockSelector: i, slimDOMOptions: W, dataURLOptions: v, mirror: Oe, iframeManager: ke, stylesheetManager: we, shadowDomManager: q, processedNodeManager: wt, canvasManager: hn, ignoreCSSAttributes: M, plugins: ((Re = S == null ? void 0 : S.filter((K) => K.observer)) == null ? void 0 : Re.map((K) => ({ observer: K.observer, options: K.options, callback: (_t) => ue({ type: $.Plugin, data: { plugin: K.name, payload: _t } }) }))) || [] }, C);
5759
+ const V = [], Ie = (q) => {
5760
+ var we;
5761
+ return $(Sf)({ mutationCb: K, mousemoveCb: (Y, Xe) => ce({ type: J.IncrementalSnapshot, data: { source: Xe, positions: Y } }), mouseInteractionCb: (Y) => ce({ type: J.IncrementalSnapshot, data: { source: G.MouseInteraction, ...Y } }), scrollCb: he, viewportResizeCb: (Y) => ce({ type: J.IncrementalSnapshot, data: { source: G.ViewportResize, ...Y } }), inputCb: (Y) => ce({ type: J.IncrementalSnapshot, data: { source: G.Input, ...Y } }), mediaInteractionCb: (Y) => ce({ type: J.IncrementalSnapshot, data: { source: G.MediaInteraction, ...Y } }), styleSheetRuleCb: (Y) => ce({ type: J.IncrementalSnapshot, data: { source: G.StyleSheetRule, ...Y } }), styleDeclarationCb: (Y) => ce({ type: J.IncrementalSnapshot, data: { source: G.StyleDeclaration, ...Y } }), canvasMutationCb: Le, fontCb: (Y) => ce({ type: J.IncrementalSnapshot, data: { source: G.Font, ...Y } }), selectionCb: (Y) => {
5762
+ ce({ type: J.IncrementalSnapshot, data: { source: G.Selection, ...Y } });
5763
+ }, customElementCb: (Y) => {
5764
+ ce({ type: J.IncrementalSnapshot, data: { source: G.CustomElement, ...Y } });
5765
+ }, blockClass: n, ignoreClass: a, ignoreSelector: o, maskTextClass: l, maskTextSelector: c, maskInputOptions: B, inlineStylesheet: u, sampling: g, recordDOM: A, recordCanvas: k, inlineImages: L, userTriggeredOnInput: E, collectFonts: R, doc: q, maskInputFn: w, maskTextFn: h, keepIframeSrcFn: F, blockSelector: i, slimDOMOptions: j, dataURLOptions: v, mirror: Oe, iframeManager: ke, stylesheetManager: ye, shadowDomManager: dt, processedNodeManager: bt, canvasManager: hn, ignoreCSSAttributes: P, plugins: ((we = I == null ? void 0 : I.filter((Y) => Y.observer)) == null ? void 0 : we.map((Y) => ({ observer: Y.observer, options: Y.options, callback: (Xe) => ce({ type: J.Plugin, data: { plugin: Y.name, payload: Xe } }) }))) || [] }, C);
5766
5766
  };
5767
- ke.addLoadListener((ee) => {
5767
+ ke.addLoadListener((q) => {
5768
5768
  try {
5769
- z.push(ve(ee.contentDocument));
5770
- } catch (Re) {
5771
- console.warn(Re);
5769
+ V.push(Ie(q.contentDocument));
5770
+ } catch (we) {
5771
+ console.warn(we);
5772
5772
  }
5773
5773
  });
5774
- const J = () => {
5775
- ls(), z.push(ve(document)), bs = !0;
5774
+ const _ = () => {
5775
+ ls(), V.push(Ie(document)), bs = !0;
5776
5776
  };
5777
- return document.readyState === "interactive" || document.readyState === "complete" ? J() : (z.push(Se("DOMContentLoaded", () => {
5778
- ue({ type: $.DomContentLoaded, data: {} }), A === "DOMContentLoaded" && J();
5779
- })), z.push(Se("load", () => {
5780
- ue({ type: $.Load, data: {} }), A === "load" && J();
5777
+ return document.readyState === "interactive" || document.readyState === "complete" ? _() : (V.push(ve("DOMContentLoaded", () => {
5778
+ ce({ type: J.DomContentLoaded, data: {} }), U === "DOMContentLoaded" && _();
5779
+ })), V.push(ve("load", () => {
5780
+ ce({ type: J.Load, data: {} }), U === "load" && _();
5781
5781
  }, window))), () => {
5782
- z.forEach((ee) => ee()), wt.destroy(), bs = !1, Qt = void 0;
5782
+ V.forEach((q) => q()), bt.destroy(), bs = !1, Qt = void 0;
5783
5783
  };
5784
- } catch (z) {
5785
- console.warn(z);
5784
+ } catch (V) {
5785
+ console.warn(V);
5786
5786
  }
5787
5787
  }
5788
- var za, St;
5789
- qt.addCustomEvent = (e, t) => {
5788
+ var za, It;
5789
+ Jt.addCustomEvent = (e, t) => {
5790
5790
  if (!bs) throw new Error("please add custom event after start recording");
5791
- ue({ type: $.Custom, data: { tag: e, payload: t } });
5792
- }, qt.freezePage = () => {
5793
- ht.forEach((e) => e.freeze());
5794
- }, qt.takeFullSnapshot = (e) => {
5791
+ ce({ type: J.Custom, data: { tag: e, payload: t } });
5792
+ }, Jt.freezePage = () => {
5793
+ mt.forEach((e) => e.freeze());
5794
+ }, Jt.takeFullSnapshot = (e) => {
5795
5795
  if (!bs) throw new Error("please take full snapshot after start recording");
5796
5796
  ls(e);
5797
- }, qt.mirror = Oe, (St = za || (za = {}))[St.NotStarted = 0] = "NotStarted", St[St.Running = 1] = "Running", St[St.Stopped = 2] = "Stopped";
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 || {});
5797
+ }, Jt.mirror = Oe, (It = za || (za = {}))[It.NotStarted = 0] = "NotStarted", It[It.Running = 1] = "Running", It[It.Stopped = 2] = "Stopped";
5798
+ var Fe = ((e) => (e.Closed = "close.click", e.Complete = "survey.completed", e.FeedbackClosed = "feedback.closed", e.PageChange = "page.change", e.API = "api", e.Override = "override", e))(Fe || {}), z = ((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))(z || {});
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
5800
  let Gr;
5801
5801
  const Lf = new Uint8Array(16);
@@ -5803,19 +5803,19 @@ function Of() {
5803
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
5804
  return Gr(Lf);
5805
5805
  }
5806
- const ge = [];
5807
- for (let e = 0; e < 256; ++e) ge.push((e + 256).toString(16).slice(1));
5806
+ const fe = [];
5807
+ for (let e = 0; e < 256; ++e) fe.push((e + 256).toString(16).slice(1));
5808
5808
  const ja = { randomUUID: typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto) };
5809
- function Ut(e, t, r) {
5809
+ function Dt(e, t, r) {
5810
5810
  if (ja.randomUUID && !e) return ja.randomUUID();
5811
5811
  const s = (e = e || {}).random || (e.rng || Of)();
5812
5812
  return s[6] = 15 & s[6] | 64, s[8] = 63 & s[8] | 128, function(n, i = 0) {
5813
- return ge[n[i + 0]] + ge[n[i + 1]] + ge[n[i + 2]] + ge[n[i + 3]] + "-" + ge[n[i + 4]] + ge[n[i + 5]] + "-" + ge[n[i + 6]] + ge[n[i + 7]] + "-" + ge[n[i + 8]] + ge[n[i + 9]] + "-" + ge[n[i + 10]] + ge[n[i + 11]] + ge[n[i + 12]] + ge[n[i + 13]] + ge[n[i + 14]] + ge[n[i + 15]];
5813
+ return fe[n[i + 0]] + fe[n[i + 1]] + fe[n[i + 2]] + fe[n[i + 3]] + "-" + fe[n[i + 4]] + fe[n[i + 5]] + "-" + fe[n[i + 6]] + fe[n[i + 7]] + "-" + fe[n[i + 8]] + fe[n[i + 9]] + "-" + fe[n[i + 10]] + fe[n[i + 11]] + fe[n[i + 12]] + fe[n[i + 13]] + fe[n[i + 14]] + fe[n[i + 15]];
5814
5814
  }(s);
5815
5815
  }
5816
- const Jg = 360, Kg = "ul-app", Zg = "#e6e6e6", Xg = "#bd282a", Qg = 1030, F = new class {
5816
+ const qg = 360, Kg = "ul-app", Zg = "#e6e6e6", Xg = "#bd282a", Qg = 1030, N = new class {
5817
5817
  constructor() {
5818
- de(this, "breadcrumbs", []);
5818
+ ue(this, "breadcrumbs", []);
5819
5819
  }
5820
5820
  getTimeStamp() {
5821
5821
  return (/* @__PURE__ */ new Date()).toISOString();
@@ -5947,7 +5947,7 @@ var Mf = class extends Error {
5947
5947
  }
5948
5948
  }, ru = tu;
5949
5949
  ru.defaultMaxListeners = 10;
5950
- const j = new ru(), vs = async (e) => {
5950
+ const W = new ru(), vs = async (e) => {
5951
5951
  await new Promise((t) => {
5952
5952
  setTimeout(t, e);
5953
5953
  });
@@ -5957,9 +5957,9 @@ const j = new ru(), vs = async (e) => {
5957
5957
  };
5958
5958
  class nu {
5959
5959
  constructor(t) {
5960
- de(this, "storage");
5961
- de(this, "tempStorage", {});
5962
- de(this, "isStorageAvailable");
5960
+ ue(this, "storage");
5961
+ ue(this, "tempStorage", {});
5962
+ ue(this, "isStorageAvailable");
5963
5963
  try {
5964
5964
  this.storage = window[t];
5965
5965
  const r = "__storage_test__";
@@ -6000,14 +6000,14 @@ class nu {
6000
6000
  const ey = (e, t) => {
6001
6001
  const r = [e[t]], s = e[t].groupId;
6002
6002
  return s ? e.slice(t).reduce((n, i) => (i.groupId === s && n.push(i), n), []) : r;
6003
- }, ty = (e) => e === "longFormSurvey", re = new nu("sessionStorage"), ct = new nu("localStorage");
6003
+ }, ty = (e) => e === "longFormSurvey", ee = new nu("sessionStorage"), ct = new nu("localStorage");
6004
6004
  class Uf {
6005
6005
  constructor(t) {
6006
- de(this, "payload");
6007
- de(this, "promise");
6008
- de(this, "reject", () => {
6006
+ ue(this, "payload");
6007
+ ue(this, "promise");
6008
+ ue(this, "reject", () => {
6009
6009
  });
6010
- de(this, "resolve", () => {
6010
+ ue(this, "resolve", () => {
6011
6011
  });
6012
6012
  this.payload = t, this.promise = new Promise((r, s) => {
6013
6013
  this.reject = s, this.resolve = r;
@@ -6017,9 +6017,9 @@ class Uf {
6017
6017
  this.resolve(t);
6018
6018
  }
6019
6019
  }
6020
- const ne = { replay: null }, Df = () => {
6020
+ const re = { replay: null }, Df = () => {
6021
6021
  const e = [];
6022
- return ne.replay && e.push("replay"), e.join(",");
6022
+ return re.replay && e.push("replay"), e.join(",");
6023
6023
  }, Pf = 10;
6024
6024
  let iu = !1, ou = "", $r = !1, au = !1, cs = [];
6025
6025
  const _f = (e) => e._config && e._config.installationMethod ? e._config.installationMethod : e._gtm ? "web-gtm" : e._segment ? "web-segment" : "web-snippet", Ha = (e) => {
@@ -6029,7 +6029,7 @@ const _f = (e) => e._config && e._config.installationMethod ? e._config.installa
6029
6029
  iu = !0, ou = e;
6030
6030
  };
6031
6031
  function Ue(e = {}) {
6032
- const t = { "Content-Type": "application/json", "userleap-platform": "web", "x-ul-sdk-version": "2.46.0", "x-ul-installation-method": _f(e), "sprig-modules": Df(), "x-ul-package-version": "2.46.0" };
6032
+ const t = { "Content-Type": "application/json", "userleap-platform": "web", "x-ul-sdk-version": "2.47.0", "x-ul-installation-method": _f(e), "sprig-modules": Df(), "x-ul-package-version": "2.47.0" };
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);
@@ -6042,7 +6042,7 @@ const Ga = async ({ shouldDropOnRateLimit: e, ...t }) => {
6042
6042
  const r = new Uf(t);
6043
6043
  return cs.push(r), r.promise;
6044
6044
  }
6045
- }, Xe = async (e, t) => {
6045
+ }, Ze = async (e, t) => {
6046
6046
  const { retries: r = 0, shouldDropOnRateLimit: s = !1, shouldRetryRequest: n = !1, ...i } = t, a = { url: e, options: i, retries: r, shouldDropOnRateLimit: s };
6047
6047
  if ($r && !n) return Ga(a);
6048
6048
  const o = { ok: !1, reportError: !1 };
@@ -6053,13 +6053,13 @@ const Ga = async ({ shouldDropOnRateLimit: e, ...t }) => {
6053
6053
  if (!$r && !s || n) {
6054
6054
  $r = !0;
6055
6055
  const c = l.headers.has("ratelimit-reset") ? Number(l.headers.get("ratelimit-reset")) : Pf;
6056
- return await vs(1e3 * c), Xe(e, { ...i, shouldDropOnRateLimit: s, shouldRetryRequest: !0 });
6056
+ return await vs(1e3 * c), Ze(e, { ...i, shouldDropOnRateLimit: s, shouldRetryRequest: !0 });
6057
6057
  }
6058
6058
  return Ga(a);
6059
6059
  }
6060
6060
  if ($r = !1, cs.length && (cs.map((c) => {
6061
6061
  const u = c.payload;
6062
- Xe(u.url, { ...u.options, retries: u.retries, shouldDropOnRateLimit: u.shouldDropOnRateLimit }).then((d) => {
6062
+ Ze(u.url, { ...u.options, retries: u.retries, shouldDropOnRateLimit: u.shouldDropOnRateLimit }).then((d) => {
6063
6063
  c.resolveRequest(d);
6064
6064
  });
6065
6065
  }), cs = []), l.ok) {
@@ -6074,21 +6074,21 @@ const Ga = async ({ shouldDropOnRateLimit: e, ...t }) => {
6074
6074
  return l;
6075
6075
  } catch (l) {
6076
6076
  const c = r + 1;
6077
- return c > 5 || au ? { ok: !1, reportError: !1, error: l } : (await vs(1e3 * Math.pow(2, r)), Xe(e, { ...i, retries: c }));
6077
+ return c > 5 || au ? { ok: !1, reportError: !1, error: l } : (await vs(1e3 * Math.pow(2, r)), Ze(e, { ...i, retries: c }));
6078
6078
  }
6079
6079
  }, $a = "ul-view-sdk-script", Nf = /* @__PURE__ */ new Set(["ios", "android"]), nt = "visitors", it = "environments";
6080
- async function ze(e, t) {
6080
+ async function Be(e, t) {
6081
6081
  var i, a, o;
6082
6082
  const { shouldDropOnRateLimit: r, ...s } = t;
6083
6083
  s.headers = Object.assign(Ue(window.UserLeap), s.headers);
6084
- const n = await Xe(e, { ...s, shouldDropOnRateLimit: r });
6084
+ const n = await Ze(e, { ...s, shouldDropOnRateLimit: r });
6085
6085
  if (n.ok) {
6086
6086
  const l = (i = n.headers) == null ? void 0 : i.get("Authorization"), c = l ? l.split(" ") : void 0, u = c && c.length === 2 ? c[1] : void 0, d = (a = n.headers) == null ? void 0 : a.get("x-ul-visitor-id");
6087
6087
  if (window.UserLeap.userId && d === window.UserLeap.visitorId) {
6088
6088
  const p = ct.getItemObject("sprig.anon.env.vid.map");
6089
6089
  p && p[window.UserLeap.envId] === d && (delete p[window.UserLeap.envId], ct.setItemObject("sprig.anon.env.vid.map", p));
6090
6090
  }
6091
- u && d && (d !== window.UserLeap.visitorId || window.UserLeap.token !== u) && (Ee("token", u), Ee("vid", d), j.emit(B.VisitorIDUpdated, { visitorId: d }), window.UserLeap.token = u, window.UserLeap.visitorId = d);
6091
+ u && d && (d !== window.UserLeap.visitorId || window.UserLeap.token !== u) && (Ee("token", u), Ee("vid", d), W.emit(z.VisitorIDUpdated, { visitorId: d }), window.UserLeap.token = u, window.UserLeap.visitorId = d);
6092
6092
  }
6093
6093
  return (o = n.json) != null && o.logMessage && console.warn(`[Sprig] ${n.json.logMessage}`), n;
6094
6094
  }
@@ -6107,67 +6107,67 @@ function Ae(e, t, r) {
6107
6107
  }), r && s.push(r), s.join("/");
6108
6108
  }
6109
6109
  const tr = async (e, t, r) => {
6110
- var _e, we, ke, wt;
6111
- const { context: s, delay: n, avatars: i, experimentFlags: a, forceBrandedLogo: o, endCard: l, isFeedback: c = !1, heatmap: u, locale: d, layout: p, previewMode: f, productConfig: w, providerPersona: h, questions: C, responseGroupUid: m, surveyId: g, uuid: v, vid: I, sessionReplay: O, showProviderPersona: E, studyType: U, surveyVisitorAttributes: A } = e, k = Ue(window.UserLeap), L = mr(k), R = Ys(k);
6112
- if (O) if (L) j.emit(B.ReplayCapture, { responseGroupUid: m, hasQuestions: !!(C != null && C.length), surveyId: g, uploadId: O.uploadId, replayType: O.replayDurationType ?? "before", seconds: O.replayDurationSeconds, generateVideoUploadUrlPayload: { mediaRecordingUid: Ut(), mediaType: "screen", questionId: 1, responseGroupUid: m, surveyId: g, updatedAt: (/* @__PURE__ */ new Date()).toISOString(), visitorId: window.UserLeap.visitorId, isReplay: !0 } });
6110
+ var bt, dt, V, Ie;
6111
+ const { context: s, delay: n, avatars: i, experimentFlags: a, forceBrandedLogo: o, endCard: l, isFeedback: c = !1, heatmap: u, locale: d, layout: p, previewMode: f, productConfig: w, quotaMessages: h, providerPersona: C, quotas: m, questions: g, responseGroupUid: v, surveyId: S, uuid: A, vid: k, sessionReplay: M, showProviderPersona: U, useBranding: E, studyType: R, surveyVisitorAttributes: L } = e, I = Ue(window.UserLeap), F = mr(I), P = Ys(I);
6112
+ if (M) if (F) W.emit(z.ReplayCapture, { responseGroupUid: v, hasQuestions: !!(g != null && g.length), surveyId: S, uploadId: M.uploadId, replayType: M.replayDurationType ?? "before", seconds: M.replayDurationSeconds, generateVideoUploadUrlPayload: { mediaRecordingUid: Dt(), mediaType: "screen", questionId: 1, responseGroupUid: v, surveyId: S, updatedAt: (/* @__PURE__ */ new Date()).toISOString(), visitorId: window.UserLeap.visitorId, isReplay: !0 } });
6113
6113
  else {
6114
- if (!ne.replay) return window.UserLeap.reportError("displayQuestions", new Error("Replay module not registered")), { success: !1, message: "Replay module not registered", surveyState: "no survey" };
6115
- ne.replay.scheduleOrCaptureReplay({ responseGroupId: m, surveyId: g, visitorId: I, replayParams: O, completeUploadHeaders: k, apiUrl: window.UserLeap._API_URL, triggerTimestamp: Date.now(), isStandalone: C.length === 0 });
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" };
6115
+ re.replay.scheduleOrCaptureReplay({ responseGroupId: v, surveyId: S, visitorId: k, replayParams: M, completeUploadHeaders: I, apiUrl: window.UserLeap._API_URL, triggerTimestamp: Date.now(), isStandalone: g.length === 0 });
6116
6116
  }
6117
6117
  if (u) {
6118
- if (!ne.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: q, replayParams: z, responseGroupUid: ve, surveyId: J } = u;
6120
- await ne.replay.initializeReplay({ maxReplayDurationSeconds: 300, maxInflightRequests: window.UserLeap.maxInflightReplayRequests, teardownAfter: !0, apiUrl: window.UserLeap._API_URL, replaySettings: r }), ne.replay.tryReplayAction(() => {
6121
- var ee;
6122
- return (ee = ne.replay) == null ? void 0 : ee.scheduleCapture({ apiUrl: window.UserLeap._API_URL, completeUploadHeaders: k, eventId: q, isHeatmap: !0, replayParams: z, responseGroupId: ve, surveyId: J, triggerTimestamp: Date.now(), visitorId: I });
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: _, replayParams: q, responseGroupUid: we, surveyId: Y } = u;
6120
+ await re.replay.initializeReplay({ maxReplayDurationSeconds: 300, maxInflightRequests: window.UserLeap.maxInflightReplayRequests, teardownAfter: !0, apiUrl: window.UserLeap._API_URL, replaySettings: r }), re.replay.tryReplayAction(() => {
6121
+ var Xe;
6122
+ return (Xe = re.replay) == null ? void 0 : Xe.scheduleCapture({ apiUrl: window.UserLeap._API_URL, completeUploadHeaders: I, eventId: _, isHeatmap: !0, replayParams: q, responseGroupId: we, surveyId: Y, triggerTimestamp: Date.now(), visitorId: k });
6123
6123
  }, "Error in scheduling/capturing replay");
6124
6124
  }
6125
- if (I == null || !(C != null && C.length)) return F.info("CannotDisplaySurvey", { vid: I }), { success: !1, message: "[Sprig] no survey found", surveyState: window.UserLeap.container ? "previous survey ready" : "no survey" };
6126
- if (Ff(C)) return { success: !1, message: "[Sprig] bundled version does not support video voice", surveyState: "no survey" };
6125
+ if (k == null || !(g != null && g.length)) return N.info("CannotDisplaySurvey", { vid: k }), { success: !1, message: "[Sprig] no survey found", surveyState: window.UserLeap.container ? "previous survey ready" : "no survey" };
6126
+ if (Ff(g)) return { success: !1, message: "[Sprig] bundled version does not support video voice", surveyState: "no survey" };
6127
6127
  if (window.UserLeap.container) {
6128
- F.info("AlreadyDisplayingSurvey");
6129
- const q = "[Sprig] (ERR-409) Found an existing Survey container, aborting rendering of this survey";
6130
- return console.warn(q), { success: !1, message: q, surveyState: "previous survey ready" };
6131
- }
6132
- if (I !== window.UserLeap.visitorId && v !== window.UserLeap.visitorId && !window.previewMode) {
6133
- const q = "Attempted to display survey to a different visitor";
6134
- return window.UserLeap.reportError("DisplaySurvey", new Error(q)), { success: !1, message: q, surveyState: "no survey" };
6135
- }
6136
- F.info("ShowingSurvey", { surveyId: g }), (_e = ne.replay) == null || _e.RecordSurveyShown({ id: g, userAgent: window.navigator.userAgent }), Af.disable(), j.emit(B.SurveyWillPresent, { name: B.SurveyWillPresent, "survey.id": g, layout: p });
6137
- let S, P, M, b, y = document.createElement("div");
6138
- const D = (q) => {
6139
- const { "view.version": z } = q;
6140
- z !== k["x-ul-sdk-version"] && cu(), j.removeListener("verify.view.version", D);
6128
+ N.info("AlreadyDisplayingSurvey");
6129
+ const _ = "[Sprig] (ERR-409) Found an existing Survey container, aborting rendering of this survey";
6130
+ return console.warn(_), { success: !1, message: _, surveyState: "previous survey ready" };
6131
+ }
6132
+ if (k !== window.UserLeap.visitorId && A !== window.UserLeap.visitorId && !window.previewMode) {
6133
+ const _ = "Attempted to display survey to a different visitor";
6134
+ return window.UserLeap.reportError("DisplaySurvey", new Error(_)), { success: !1, message: _, surveyState: "no survey" };
6135
+ }
6136
+ N.info("ShowingSurvey", { surveyId: S }), (bt = re.replay) == null || bt.RecordSurveyShown({ id: S, userAgent: window.navigator.userAgent }), Af.disable(), W.emit(z.SurveyWillPresent, { name: z.SurveyWillPresent, "survey.id": S, layout: p });
6137
+ let b, y, O, B, j = document.createElement("div");
6138
+ const T = (_) => {
6139
+ const { "view.version": q } = _;
6140
+ q !== I["x-ul-sdk-version"] && cu(), W.removeListener("verify.view.version", T);
6141
6141
  };
6142
- j.on("verify.view.version", D), window.UserLeap.useMobileStyling = R, su(k) ? (S = "ul-direct-embeded-frame", P = document.head, M = window, b = !1, (() => {
6143
- const q = Ue(window.UserLeap), z = mr(q), ve = window.UserLeap.forceDirectEmbed, J = q["userleap-platform"] === "web";
6144
- return z || ve && J;
6145
- })() && (lu(g, c), y.id = S, window.UserLeap.container.appendChild(y), uu(), j.emit(B.SurveyLifeCycle, { state: "presented" }), j.emit(B.SurveyPresented, { name: B.SurveyPresented, "survey.id": g }))) : { frameId: S, contentWinDocHead: P, contentWindow: M, hasOverlay: b, iframe: y } = jf({ productConfig: w, useMobileStyling: R, surveyId: g, isFeedback: c, enableCspTrustedTypes: (we = window.UserLeap._config) == null ? void 0 : we.enableCspTrustedTypes }), window.UserLeap.frameId = S;
6146
- const _ = { apiURL: window.UserLeap._API_URL, avatars: i, cards: C, configureExitOnOverlayClick: (q) => {
6147
- j.once(B.CloseSurveyOnOverlayClick, q);
6148
- }, context: s, endCard: l, envId: window.UserLeap.envId, eventEmitFn: j.emit.bind(j), experimentFlags: a, fontFamily: window.UserLeap.fontFamily, fontFamilyURL: window.UserLeap.fontFamilyURL, forceBrandedLogo: o, frame: y, headers: k, layout: p, locale: d, mobileSDKVersion: window.UserLeap.mobileSDKVersion, previewKey: re.getItem("sprig.previewKey"), previewMode: f || !!window.previewMode, productConfig: { framePosition: w == null ? void 0 : w.framePosition, desktopDisplay: w == null ? void 0 : w.desktopDisplay, placement: w == null ? void 0 : w.placement }, providerPersona: h, responseGroupUid: m, showProviderPersona: E, startingQuestionIdx: (ke = window.UserLeap.config) == null ? void 0 : ke.startingQuestionIdx, studyType: U, styleNonce: window.UserLeap.styleNonce, surveyId: g, tabTitle: document.title, trackPageViewUrl: t, ulEvents: hr, upchunkLibraryURL: window.UserLeap.upchunkLibraryURL, useMobileStyling: R, userId: v, viewDocument: M == null ? void 0 : M.document, viewWindow: M, visitorAttributes: { externalUserId: window.UserLeap.userId, email: window.UserLeap.email }, surveyVisitorAttributes: A || {}, ...window.UserLeap._config };
6149
- (wt = window.UserLeap._config) != null && wt.startingQuestionIdx && (window.UserLeap._config = { ...window.UserLeap._config, startingQuestionIdx: null });
6150
- const W = (c ? window.UserLeap.feedbackCustomStyles : window.UserLeap.customStyles) ?? w.customStyles;
6151
- _.customStyles = W, M && (M.__cfg = _);
6152
- const T = window.UserLeap.viewSDKURL ? window.UserLeap.viewSDKURL : _.path, N = document.getElementById($a);
6153
- N && N.remove();
6154
- const Q = function() {
6155
- const q = document.createElement("script");
6156
- return window.UserLeap.isMobileSDK || q.setAttribute("type", "module"), window.UserLeap.nonce && q.setAttribute("nonce", window.UserLeap.nonce), q.id = $a, q;
6157
- }(), Y = () => {
6142
+ W.on("verify.view.version", T), window.UserLeap.useMobileStyling = P, su(I) ? (b = "ul-direct-embeded-frame", y = document.head, O = window, B = !1, (() => {
6143
+ const _ = Ue(window.UserLeap), q = mr(_), we = window.UserLeap.forceDirectEmbed, Y = _["userleap-platform"] === "web";
6144
+ return q || we && Y;
6145
+ })() && (lu(S, c), j.id = b, window.UserLeap.container.appendChild(j), uu(), W.emit(z.SurveyLifeCycle, { state: "presented" }), W.emit(z.SurveyPresented, { name: z.SurveyPresented, "survey.id": S }))) : { frameId: b, contentWinDocHead: y, contentWindow: O, hasOverlay: B, iframe: j } = jf({ productConfig: w, useMobileStyling: P, surveyId: S, isFeedback: c, enableCspTrustedTypes: (dt = window.UserLeap._config) == null ? void 0 : dt.enableCspTrustedTypes }), window.UserLeap.frameId = b;
6146
+ const D = { apiURL: window.UserLeap._API_URL, avatars: i, cards: g, configureExitOnOverlayClick: (_) => {
6147
+ W.once(z.CloseSurveyOnOverlayClick, _);
6148
+ }, context: s, endCard: l, envId: window.UserLeap.envId, eventEmitFn: W.emit.bind(W), experimentFlags: a, fontFamily: window.UserLeap.fontFamily, fontFamilyURL: window.UserLeap.fontFamilyURL, forceBrandedLogo: o, frame: j, headers: I, layout: p, locale: d, mobileSDKVersion: window.UserLeap.mobileSDKVersion, previewKey: ee.getItem("sprig.previewKey"), previewMode: f || !!window.previewMode, productConfig: { framePosition: w == null ? void 0 : w.framePosition, desktopDisplay: w == null ? void 0 : w.desktopDisplay, placement: w == null ? void 0 : w.placement }, quotaMessages: h, providerPersona: C, quotas: m, responseGroupUid: v, showProviderPersona: U, useBranding: E ?? !0, startingQuestionIdx: (V = window.UserLeap.config) == null ? void 0 : V.startingQuestionIdx, studyType: R, styleNonce: window.UserLeap.styleNonce, surveyId: S, tabTitle: document.title, trackPageViewUrl: t, ulEvents: hr, upchunkLibraryURL: window.UserLeap.upchunkLibraryURL, useMobileStyling: P, userId: A, viewDocument: O == null ? void 0 : O.document, viewWindow: O, visitorAttributes: { externalUserId: window.UserLeap.userId, email: window.UserLeap.email }, surveyVisitorAttributes: L || {}, ...window.UserLeap._config };
6149
+ (Ie = window.UserLeap._config) != null && Ie.startingQuestionIdx && (window.UserLeap._config = { ...window.UserLeap._config, startingQuestionIdx: null });
6150
+ const ne = (c ? window.UserLeap.feedbackCustomStyles : window.UserLeap.customStyles) ?? w.customStyles;
6151
+ D.customStyles = ne, O && (O.__cfg = D);
6152
+ const K = window.UserLeap.viewSDKURL ? window.UserLeap.viewSDKURL : D.path, he = document.getElementById($a);
6153
+ he && he.remove();
6154
+ const Le = function() {
6155
+ const _ = document.createElement("script");
6156
+ return window.UserLeap.isMobileSDK || _.setAttribute("type", "module"), window.UserLeap.nonce && _.setAttribute("nonce", window.UserLeap.nonce), _.id = $a, _;
6157
+ }(), ye = () => {
6158
6158
  window.UserLeap.container && Object.assign(window.UserLeap.container.style, { display: "flex" });
6159
6159
  };
6160
- if (_.installationMethod === "web-npm" || _.installationMethod === "web-npm-bundled") {
6161
- const { default: q } = await import("./view-RRtNaAXH.js").then((z) => z.C);
6162
- q.configure(_), b && window.UserLeap.container && Y();
6163
- } else T && (Q.src = `${T}${window.UserLeap.isMobileSDK ? "" : `?t=${Date.now()}`}`, b && Q.addEventListener("load", () => {
6164
- window.UserLeap.container && Y();
6165
- }), M == null || M.addEventListener("error", (q) => {
6166
- q.target instanceof HTMLScriptElement && q.target.src === T && window.UserLeap.reportError("loadFrameScript", new Error("Frame script failed to load"));
6160
+ if (D.installationMethod === "web-npm" || D.installationMethod === "web-npm-bundled") {
6161
+ const { default: _ } = await import("./view-eRBVyC0l.js").then((q) => q.H);
6162
+ _.configure(D), B && window.UserLeap.container && ye();
6163
+ } else K && (Le.src = `${K}${window.UserLeap.isMobileSDK ? "" : `?t=${Date.now()}`}`, B && Le.addEventListener("load", () => {
6164
+ window.UserLeap.container && ye();
6165
+ }), O == null || O.addEventListener("error", (_) => {
6166
+ _.target instanceof HTMLScriptElement && _.target.src === K && window.UserLeap.reportError("loadFrameScript", new Error("Frame script failed to load"));
6167
6167
  }, { capture: !0, once: !0 }));
6168
- P == null || P.appendChild(Q);
6169
- const me = { success: !0, surveyState: "ready", surveyId: g, responseGroupUid: m };
6170
- return window.UserLeap.isMobileSDK && n && (me.delay = n), me;
6168
+ y == null || y.appendChild(Le);
6169
+ const ke = { success: !0, surveyState: "ready", surveyId: S, responseGroupUid: v };
6170
+ return window.UserLeap.isMobileSDK && n && (ke.delay = n), ke;
6171
6171
  };
6172
6172
  function Ys(e) {
6173
6173
  var r;
@@ -6205,13 +6205,13 @@ const mn = "0px", lu = (e, t, r) => {
6205
6205
  Vf();
6206
6206
  const r = globalThis.UserLeap.container;
6207
6207
  if (r) try {
6208
- (s = r.parentNode) == null || s.removeChild(r), globalThis.UserLeap.container = null, Ee("trackStartUrl", null), j.emit(B.SurveyLifeCycle, { state: "dismissed" }), j.emit(B.SurveyClosed, { name: B.SurveyClosed, initiator: e, "survey.id": parseInt(r.dataset.studyId), ...t && { studyType: t } });
6208
+ (s = r.parentNode) == null || s.removeChild(r), globalThis.UserLeap.container = null, Ee("trackStartUrl", null), W.emit(z.SurveyLifeCycle, { state: "dismissed" }), W.emit(z.SurveyClosed, { name: z.SurveyClosed, initiator: e, "survey.id": parseInt(r.dataset.studyId), ...t && { studyType: t } });
6209
6209
  } catch (n) {
6210
6210
  console.warn(`[Sprig] (ERR-412) Error removing UserLeap container by ${e} ` + r), n instanceof Error && globalThis.UserLeap.reportError("dismissActiveSurvey", n);
6211
6211
  }
6212
6212
  }, uu = () => {
6213
- j.once(B.SurveyWillClose, ({ initiator: e, studyType: t }) => {
6214
- j.removeAllListeners(B.CloseSurveyOnOverlayClick), cu(e, t);
6213
+ W.once(z.SurveyWillClose, ({ initiator: e, studyType: t }) => {
6214
+ W.removeAllListeners(z.CloseSurveyOnOverlayClick), cu(e, t);
6215
6215
  });
6216
6216
  }, zf = (e, t, r, s) => {
6217
6217
  var u, d;
@@ -6254,14 +6254,14 @@ const mn = "0px", lu = (e, t, r) => {
6254
6254
  uu();
6255
6255
  let c = !1;
6256
6256
  o.setHeight = (h) => {
6257
- parseInt(o.style.height) == h && c || (c = !0, o.style.height = `${h}px`, j.emit(B.SurveyHeight, { name: B.SurveyHeight, contentFrameHeight: h, "survey.id": r }));
6257
+ parseInt(o.style.height) == h && c || (c = !0, o.style.height = `${h}px`, W.emit(z.SurveyHeight, { name: z.SurveyHeight, contentFrameHeight: h, "survey.id": r }));
6258
6258
  };
6259
6259
  let u = !1;
6260
6260
  o.setWidth = (h) => {
6261
- parseInt(o.style.width) == h && u || (u = !0, o.style.width = `${h}px`, j.emit(B.SurveyWidth, { name: B.SurveyWidth, contentFrameWidth: h, "survey.id": r }));
6261
+ parseInt(o.style.width) == h && u || (u = !0, o.style.width = `${h}px`, W.emit(z.SurveyWidth, { name: z.SurveyWidth, contentFrameWidth: h, "survey.id": r }));
6262
6262
  }, (f = globalThis.UserLeap.container) == null || f.appendChild(o), e && (t ? e.exitOnOverlayClickMobile : e.exitOnOverlayClick) && globalThis.UserLeap.container && (globalThis.UserLeap.container.onclick = () => {
6263
- j.emit(B.CloseSurveyOnOverlayClick);
6264
- }), j.emit(B.SurveyLifeCycle, { state: "presented" }), j.emit(B.SurveyPresented, { name: B.SurveyPresented, "survey.id": r });
6263
+ W.emit(z.CloseSurveyOnOverlayClick);
6264
+ }), W.emit(z.SurveyLifeCycle, { state: "presented" }), W.emit(z.SurveyPresented, { name: z.SurveyPresented, "survey.id": r });
6265
6265
  const d = (w = o.contentWindow) == null ? void 0 : w.document;
6266
6266
  if (d && (d.open("text/html", "replace"), d.write(to("<!doctype html><head></head><body></body></html>", n, o.contentWindow)), d.close(), !t)) {
6267
6267
  const h = d.body;
@@ -6269,19 +6269,19 @@ const mn = "0px", lu = (e, t, r) => {
6269
6269
  }
6270
6270
  const p = d == null ? void 0 : d.head;
6271
6271
  return { frameId: i, contentWinDocHead: p, contentWindow: o.contentWindow, hasOverlay: l, iframe: o };
6272
- }, du = { [B.SurveyFadingOut]: () => {
6272
+ }, du = { [z.SurveyFadingOut]: () => {
6273
6273
  globalThis.UserLeap.container && Object.assign(globalThis.UserLeap.container.style, { "background-color": "rgba(0,0,0,0)" });
6274
6274
  } }, Wf = () => {
6275
6275
  Object.entries(du).forEach(([e, t]) => {
6276
- j.on(e, t);
6276
+ W.on(e, t);
6277
6277
  });
6278
6278
  }, Vf = () => {
6279
6279
  Object.entries(du).forEach(([e, t]) => {
6280
- j.off(e, t);
6280
+ W.off(e, t);
6281
6281
  });
6282
- }, qa = Object.freeze({ contains: (e, t) => t.includes(e), notContains: (e, t) => !t.includes(e), exactly: (e, t) => t === e, notExactly: (e, t) => t !== e, startsWith: (e, t) => t.startsWith(e), endsWith: (e, t) => t.endsWith(e), regex: (e, t) => new RegExp(e).test(t), legacy: (e, t) => new RegExp(e, "i").test(t) });
6282
+ }, Ja = Object.freeze({ contains: (e, t) => t.includes(e), notContains: (e, t) => !t.includes(e), exactly: (e, t) => t === e, notExactly: (e, t) => t !== e, startsWith: (e, t) => t.startsWith(e), endsWith: (e, t) => t.endsWith(e), regex: (e, t) => new RegExp(e).test(t), legacy: (e, t) => new RegExp(e, "i").test(t) });
6283
6283
  function so(e, t) {
6284
- const { matchType: r, pattern: s } = e, n = r ? qa[r] : qa.legacy;
6284
+ const { matchType: r, pattern: s } = e, n = r ? Ja[r] : Ja.legacy;
6285
6285
  let i = !1;
6286
6286
  try {
6287
6287
  i = n(s, t);
@@ -6294,7 +6294,7 @@ function so(e, t) {
6294
6294
  const pu = (e) => {
6295
6295
  const { pageUrlEvents: t } = window.UserLeap._config, r = t == null ? void 0 : t.find((s) => s.id === e);
6296
6296
  return !!r && so(r, window.location.href);
6297
- }, rt = (e) => !!e && e.nodeType === Node.ELEMENT_NODE, Ja = (e) => e instanceof HTMLElement || e instanceof SVGElement, Ss = ({ document: e, elementId: t, styleString: r, nonce: s }) => {
6297
+ }, rt = (e) => !!e && e.nodeType === Node.ELEMENT_NODE, qa = (e) => e instanceof HTMLElement || e instanceof SVGElement, Ss = ({ document: e, elementId: t, styleString: r, nonce: s }) => {
6298
6298
  const n = e.getElementById(t);
6299
6299
  if (n) return void (n.textContent = r);
6300
6300
  const i = e.createElement("style");
@@ -6325,32 +6325,32 @@ const pu = (e) => {
6325
6325
  }, ry = (e) => {
6326
6326
  const t = e.querySelector(".ul-card__container");
6327
6327
  t && (t.scrollTop = 0);
6328
- }, hu = () => te, Rt = () => document.getElementById("sprig-feedback-container"), ui = () => document.getElementById("sprig-feedback-loading-animation"), mu = () => !!document.getElementById(ro);
6329
- let Za = !1, te = null, je = null, no = !1, rr = null, dt = null;
6328
+ }, hu = () => Q, Lt = () => document.getElementById("sprig-feedback-container"), ui = () => document.getElementById("sprig-feedback-loading-animation"), mu = () => !!document.getElementById(ro);
6329
+ let Za = !1, Q = null, ze = null, no = !1, rr = null, pt = null;
6330
6330
  const Gf = ["bottom-left", "bottom-right", "center-left", "center-right"], Is = () => {
6331
6331
  var t;
6332
6332
  const e = window.UserLeap.container;
6333
6333
  return ((t = e == null ? void 0 : e.parentElement) == null ? void 0 : t.id) === "sprig-feedback-loading-container";
6334
6334
  }, fu = () => document.getElementById("sprig-feedback-error-container"), gu = () => {
6335
- if (!te) return 0;
6336
- const e = te == null ? void 0 : te.clientWidth, t = window.getComputedStyle(te);
6335
+ if (!Q) return 0;
6336
+ const e = Q == null ? void 0 : Q.clientWidth, t = window.getComputedStyle(Q);
6337
6337
  return e + parseInt(t.borderRightWidth || "0") + parseInt(t.borderLeftWidth || "0");
6338
6338
  }, Cs = (e) => {
6339
- const t = Rt();
6340
- t && (dt != null && dt.endsWith("right") ? t.style.right = `${e}px` : dt != null && dt.endsWith("left") && (t.style.left = `${e}px`));
6339
+ const t = Lt();
6340
+ t && (pt != null && pt.endsWith("right") ? t.style.right = `${e}px` : pt != null && pt.endsWith("left") && (t.style.left = `${e}px`));
6341
6341
  }, fn = () => {
6342
- if (te && (Is() || fu())) {
6343
- j.off(B.SurveyAppeared, Jt), di();
6342
+ if (Q && (Is() || fu())) {
6343
+ W.off(z.SurveyAppeared, qt), di();
6344
6344
  const e = gu();
6345
6345
  return Cs(-e), !0;
6346
6346
  }
6347
6347
  return !1;
6348
- }, Jt = () => {
6349
- if (!te || !je) return;
6348
+ }, qt = () => {
6349
+ if (!Q || !ze) return;
6350
6350
  const e = ui();
6351
- e && e.remove(), te.style.height = "auto", te.style.width = "auto", je.disabled = !1, no = !1;
6351
+ e && e.remove(), Q.style.height = "auto", Q.style.width = "auto", ze.disabled = !1, no = !1;
6352
6352
  }, di = () => {
6353
- if (te && !ui()) {
6353
+ if (Q && !ui()) {
6354
6354
  const e = (() => {
6355
6355
  var r;
6356
6356
  if (ui()) return;
@@ -6364,56 +6364,56 @@ const Gf = ["bottom-left", "bottom-right", "center-left", "center-right"], Is =
6364
6364
  </div>
6365
6365
  `, (r = window.UserLeap._config) == null ? void 0 : r.enableCspTrustedTypes), t;
6366
6366
  })();
6367
- e && (te.style.height = "300px", te.style.width = "360px", te.appendChild(e));
6367
+ e && (Q.style.height = "300px", Q.style.width = "360px", Q.appendChild(e));
6368
6368
  }
6369
6369
  }, Xa = () => {
6370
- te && je && (Cs(0), je.disabled = !0, no = !0);
6370
+ Q && ze && (Cs(0), ze.disabled = !0, no = !0);
6371
6371
  }, yu = async (e, t, r) => {
6372
6372
  const { buttonTheme: s, customStyles: n, eventId: i, placement: a, desktopDisplay: o, feedbackLabel: l, surveyUuid: c, surveyId: u } = e;
6373
6373
  window.UserLeap.feedbackCustomStyles = void 0;
6374
- let d = Rt();
6374
+ let d = Lt();
6375
6375
  if (d) {
6376
6376
  if (!t && i === rr) return;
6377
- d.remove(), j.off(hr.SURVEY_FADING_OUT, fn);
6377
+ d.remove(), W.off(hr.SURVEY_FADING_OUT, fn);
6378
6378
  }
6379
- rr = i, Ss({ 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 }), Ss({ document, elementId: "ul-custom-style", styleString: n ?? "", nonce: window.UserLeap.styleNonce }), Za = o === "center-modal", dt = a;
6379
+ rr = i, Ss({ 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 }), Ss({ document, elementId: "ul-custom-style", styleString: n ?? "", nonce: window.UserLeap.styleNonce }), Za = o === "center-modal", pt = a;
6380
6380
  const [p, f] = a.split("-");
6381
6381
  ((m) => {
6382
- if (Rt() || !Gf.includes(m)) return;
6383
- const [g, v] = m.split("-"), I = document.createElement("div");
6384
- I.id = "sprig-feedback-container", I.classList.add(`sprig-feedback-container-${v}`, `sprig-feedback-container-${g}`), document.body.appendChild(I);
6385
- })(a), d = Rt(), je = document.createElement("button");
6382
+ if (Lt() || !Gf.includes(m)) return;
6383
+ const [g, v] = m.split("-"), S = document.createElement("div");
6384
+ S.id = "sprig-feedback-container", S.classList.add(`sprig-feedback-container-${v}`, `sprig-feedback-container-${g}`), document.body.appendChild(S);
6385
+ })(a), d = Lt(), ze = document.createElement("button");
6386
6386
  const w = document.createElement("div");
6387
- w.className = "sprig-feedback-button-label", w.innerText = l, je.appendChild(w), je.id = "sprig-feedback-button", je.classList.add(`sprig-feedback-button-${f}`, `sprig-feedback-button-${p}`, `sprig-feedback-button-${s}`, "fade-in-transition"), j.on(hr.SURVEY_FADING_OUT, fn), je.addEventListener("click", async () => {
6387
+ w.className = "sprig-feedback-button-label", w.innerText = l, ze.appendChild(w), ze.id = "sprig-feedback-button", ze.classList.add(`sprig-feedback-button-${f}`, `sprig-feedback-button-${p}`, `sprig-feedback-button-${s}`, "fade-in-transition"), W.on(hr.SURVEY_FADING_OUT, fn), ze.addEventListener("click", async () => {
6388
6388
  const m = document.getElementById("sprig-feedback-error-container");
6389
6389
  if (mu() || fu()) {
6390
6390
  if (fn()) {
6391
- j.emit(B.SurveyCloseRequested, { name: B.SurveyCloseRequested, initiator: Be.FeedbackClosed, studyType: "feedbackButton", "survey.id": u }), j.emit(B.SurveyWillClose, { name: B.SurveyWillClose, initiator: Be.FeedbackClosed, studyType: "feedbackButton", "survey.id": u });
6392
- const v = Rt();
6393
- m && v && (v.remove(), rr = null, te = null);
6391
+ W.emit(z.SurveyCloseRequested, { name: z.SurveyCloseRequested, initiator: Fe.FeedbackClosed, studyType: "feedbackButton", "survey.id": u }), W.emit(z.SurveyWillClose, { name: z.SurveyWillClose, initiator: Fe.FeedbackClosed, studyType: "feedbackButton", "survey.id": u });
6392
+ const v = Lt();
6393
+ m && v && (v.remove(), rr = null, Q = null);
6394
6394
  }
6395
6395
  return;
6396
6396
  }
6397
- if (Ys(Ue(window.UserLeap)) || no || Xa(), t) return te && te.classList.add("sprig-feedback-loading-container-previews"), await tr(t), void Jt();
6397
+ if (Ys(Ue(window.UserLeap)) || no || Xa(), t) return Q && Q.classList.add("sprig-feedback-loading-container-previews"), await tr(t), void qt();
6398
6398
  const g = await (async (v) => {
6399
- const I = await ze(Ae("1", [nt], "startFeedbackStudy"), { body: JSON.stringify({ surveyUuid: v }), method: "POST" });
6400
- return I.ok ? I.json : null;
6399
+ const S = await Be(Ae("1", [nt], "startFeedbackStudy"), { body: JSON.stringify({ surveyUuid: v }), method: "POST" });
6400
+ return S.ok ? S.json : null;
6401
6401
  })(c);
6402
- if (g) j.once(B.SurveyAppeared, Jt), tr({ ...g, studyType: "feedbackButton" }, r);
6403
- else if (te) {
6402
+ if (g) W.once(z.SurveyAppeared, qt), tr({ ...g, studyType: "feedbackButton" }, r);
6403
+ else if (Q) {
6404
6404
  const v = $f();
6405
- te.appendChild(v), Jt(), te.style.height = "300px", te.style.width = "360px";
6405
+ Q.appendChild(v), qt(), Q.style.height = "300px", Q.style.width = "360px";
6406
6406
  }
6407
- }), d == null || d.appendChild(je), j.emit(B.FeedbackButtonLoaded, { name: B.FeedbackButtonLoaded, "survey.id": u });
6407
+ }), d == null || d.appendChild(ze), W.emit(z.FeedbackButtonLoaded, { name: z.FeedbackButtonLoaded, "survey.id": u });
6408
6408
  const { useMobileStyling: h, _config: { border: C } } = window.UserLeap;
6409
6409
  if (Za || h) Cs(0);
6410
6410
  else {
6411
6411
  const m = document.createElement("div");
6412
- m.id = "sprig-feedback-loading-container", m.className = `sprig-feedback-loading-container sprig-feedback-loading-container-${f}`, m.style.setProperty("--feedback-border", C), te = m, di(), d == null || d.appendChild(m);
6412
+ m.id = "sprig-feedback-loading-container", m.className = `sprig-feedback-loading-container sprig-feedback-loading-container-${f}`, m.style.setProperty("--feedback-border", C), Q = m, di(), d == null || d.appendChild(m);
6413
6413
  const g = gu();
6414
6414
  Cs(-g);
6415
6415
  }
6416
- window.UserLeap._config.isOnQuestionsTab && t && !Is() && te && (Xa(), di(), te && te.classList.add("sprig-feedback-loading-container-previews"), tr(t), Jt());
6416
+ window.UserLeap._config.isOnQuestionsTab && t && !Is() && Q && (Xa(), di(), Q && Q.classList.add("sprig-feedback-loading-container-previews"), tr(t), qt());
6417
6417
  }, $f = () => {
6418
6418
  var r;
6419
6419
  const e = document.createElement("div");
@@ -6426,7 +6426,7 @@ const Gf = ["bottom-left", "bottom-right", "center-left", "center-right"], Is =
6426
6426
  return t.className = "sprig-feedback-error-text", t.innerText = "There was an error while loading the survey", e.appendChild(t), e;
6427
6427
  }, pi = new class {
6428
6428
  constructor() {
6429
- de(this, "_ldData", {});
6429
+ ue(this, "_ldData", {});
6430
6430
  }
6431
6431
  getAllLaunchDarklyVariations() {
6432
6432
  return this._ldData;
@@ -6444,7 +6444,7 @@ const Gf = ["bottom-left", "bottom-right", "center-left", "center-right"], Is =
6444
6444
  Object.freeze(pi);
6445
6445
  const us = new class {
6446
6446
  constructor() {
6447
- de(this, "_optimizelyData", {});
6447
+ ue(this, "_optimizelyData", {});
6448
6448
  }
6449
6449
  setOptimizelyExperiment(e, t = !0) {
6450
6450
  if (!e || typeof e != "object") return !1;
@@ -6492,9 +6492,9 @@ const us = new class {
6492
6492
  Object.freeze(us);
6493
6493
  class Yf {
6494
6494
  constructor(t, r) {
6495
- de(this, "paused");
6496
- de(this, "queue");
6497
- de(this, "ul");
6495
+ ue(this, "paused");
6496
+ ue(this, "queue");
6497
+ ue(this, "ul");
6498
6498
  this.ul = t, this.paused = !1, this.queue = [], this.flush(r);
6499
6499
  }
6500
6500
  flush(t) {
@@ -6538,13 +6538,13 @@ class Yf {
6538
6538
  }
6539
6539
  }
6540
6540
  let wu = !0, hi = !1;
6541
- const qf = ["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 Jf = ["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"];
6542
6542
  let mi, Kt = {};
6543
- class Jf {
6543
+ class qf {
6544
6544
  constructor(t) {
6545
- de(this, "_values", []);
6546
- de(this, "_isWebMetric");
6547
- this.name = t, this._isWebMetric = qf.includes(this.name);
6545
+ ue(this, "_values", []);
6546
+ ue(this, "_isWebMetric");
6547
+ this.name = t, this._isWebMetric = Jf.includes(this.name);
6548
6548
  }
6549
6549
  report(t) {
6550
6550
  if (wu && this._values.push({ time: Date.now(), value: t }), hi || !this._isWebMetric) return;
@@ -6563,12 +6563,12 @@ class Jf {
6563
6563
  return r.type === "max" ? t > r.value : r.type === "min" && t < r.value;
6564
6564
  }
6565
6565
  }
6566
- const wr = {}, Ve = (e) => {
6567
- const t = new Jf(e);
6566
+ const wr = {}, We = (e) => {
6567
+ const t = new qf(e);
6568
6568
  return wr[e] = t, t;
6569
6569
  }, bu = (e, t) => {
6570
6570
  let r = wr[e];
6571
- return r || (r = Ve(e)), r.report(t);
6571
+ return r || (r = We(e)), r.report(t);
6572
6572
  }, Kf = ({ reportingIntervalSeconds: e, postMetrics: t }) => {
6573
6573
  e ? setInterval(() => {
6574
6574
  (async (r) => {
@@ -6576,7 +6576,7 @@ const wr = {}, Ve = (e) => {
6576
6576
  if (s.some((n) => n.values.length)) try {
6577
6577
  await r(JSON.stringify(s));
6578
6578
  } catch (n) {
6579
- n instanceof Error && F.error("MetricsErr", { error: { message: n.message, name: n.name } });
6579
+ n instanceof Error && N.error("MetricsErr", { error: { message: n.message, name: n.name } });
6580
6580
  }
6581
6581
  })(t);
6582
6582
  }, 1e3 * e) : wu = !1;
@@ -6595,10 +6595,10 @@ const fi = (e) => {
6595
6595
  t.report(s / 1e3), setTimeout(() => gi(e, t), e);
6596
6596
  }, 0);
6597
6597
  };
6598
- let ks, Es, xs, Ts, el, pt = {};
6598
+ let ks, Es, xs, Ts, el, ht = {};
6599
6599
  const Yr = (e, t = 1) => {
6600
6600
  const { name: r } = e;
6601
- pt[r] = (pt[r] || 0) + t;
6601
+ ht[r] = (ht[r] || 0) + t;
6602
6602
  }, Iu = (e) => {
6603
6603
  let t = 1;
6604
6604
  return e.childNodes.forEach((r) => {
@@ -6619,9 +6619,9 @@ const Yr = (e, t = 1) => {
6619
6619
  return void Yr(Ts);
6620
6620
  }
6621
6621
  }, Xf = (e) => e.forEach(Zf), Qf = () => {
6622
- ks.report(pt[ks.name] || 0), Es.report(pt[Es.name] || 0), xs.report(pt[xs.name] || 0), Ts.report(pt[Ts.name] || 0), pt = {};
6622
+ ks.report(ht[ks.name] || 0), Es.report(ht[Es.name] || 0), xs.report(ht[xs.name] || 0), Ts.report(ht[Ts.name] || 0), ht = {};
6623
6623
  }, eg = (e = 1e3) => {
6624
- ks = Ve("sdk_mutations_nodes_added"), Es = Ve("sdk_mutations_nodes_removed"), xs = Ve("sdk_mutations_attributes_changed"), Ts = Ve("sdk_mutations_character_data"), el = new MutationObserver(Xf), el.observe(document, { attributes: !0, attributeOldValue: !0, characterData: !0, characterDataOldValue: !0, childList: !0, subtree: !0 }), setInterval(Qf, e);
6624
+ ks = We("sdk_mutations_nodes_added"), Es = We("sdk_mutations_nodes_removed"), xs = We("sdk_mutations_attributes_changed"), Ts = We("sdk_mutations_character_data"), el = new MutationObserver(Xf), el.observe(document, { attributes: !0, attributeOldValue: !0, characterData: !0, characterDataOldValue: !0, childList: !0, subtree: !0 }), setInterval(Qf, e);
6625
6625
  }, tg = ({ isWeb: e, reportingIntervalSeconds: t, thresholds: r, postMetrics: s }) => {
6626
6626
  ((n, i) => {
6627
6627
  Kt = {}, hi = !1, n == null || n.forEach((a) => {
@@ -6630,15 +6630,15 @@ const Yr = (e, t = 1) => {
6630
6630
  }), mi = i;
6631
6631
  })(r, (n, i) => {
6632
6632
  var a, o;
6633
- if ((a = ne.replay) != null && a.isReplayRecording()) {
6633
+ if ((a = re.replay) != null && a.isReplayRecording()) {
6634
6634
  const l = `Value: ${n} on ${i.metric} violated threshold of ${i.type} ${i.value}`;
6635
- (o = ne.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;
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;
6636
6636
  }
6637
6637
  }), Kf({ reportingIntervalSeconds: t, postMetrics: s }), e && (((n = 1e3) => {
6638
- const i = Ve("sdk_event_queue_latency_seconds");
6638
+ const i = We("sdk_event_queue_latency_seconds");
6639
6639
  gi(n, i);
6640
6640
  })(), ((n = 1e4) => {
6641
- vu = Ve("sdk_dom_nodes_count"), Su = Ve("sdk_page_html_characters"), Qa(), setInterval(Qa, n);
6641
+ vu = We("sdk_dom_nodes_count"), Su = We("sdk_page_html_characters"), Qa(), setInterval(Qa, n);
6642
6642
  })(), eg());
6643
6643
  }, rg = "test", sg = ["popState", "pushState", "replaceState"];
6644
6644
  let io, sr;
@@ -6649,27 +6649,27 @@ function nr(e) {
6649
6649
  var o, l;
6650
6650
  const { pageUrlEvents: t, interactiveEvents: r, dismissOnPageChange: s, platform: n } = globalThis.UserLeap._config;
6651
6651
  if (n && n !== "web") return;
6652
- gn !== globalThis.location.href && F.navigation("LocationChange", { from: gn, to: globalThis.location.href }), gn = globalThis.location.href;
6652
+ gn !== globalThis.location.href && N.navigation("LocationChange", { from: gn, to: globalThis.location.href }), gn = globalThis.location.href;
6653
6653
  const i = xu().trackStartUrl, a = i ? String(i) : null;
6654
6654
  t && Ru(globalThis.location.href), r && (Eu(), ng()), hu() && (() => {
6655
6655
  if (Is()) return;
6656
- const c = Rt();
6657
- c && (pu(rr) || (c.remove(), rr = null, te = null));
6658
- })(), re.getItem("sprig.isCapturingHeatmap") && ((l = (o = ne.replay) == null ? void 0 : o.checkPendingHeatmapsUrl()) == null || l.then((c) => {
6656
+ const c = Lt();
6657
+ c && (pu(rr) || (c.remove(), rr = null, Q = null));
6658
+ })(), ee.getItem("sprig.isCapturingHeatmap") && ((l = (o = re.replay) == null ? void 0 : o.checkPendingHeatmapsUrl()) == null || l.then((c) => {
6659
6659
  var u;
6660
- c && ((u = ne.replay) == null || u.uploadReadyPendingCaptures(!0));
6661
- })), !Is() && s && a && a !== globalThis.location.href && e && sg.includes(e.type) && globalThis.UserLeap("dismissActiveSurvey", Be.PageChange);
6660
+ c && ((u = re.replay) == null || u.uploadReadyPendingCaptures(!0));
6661
+ })), !Is() && s && a && a !== globalThis.location.href && e && sg.includes(e.type) && globalThis.UserLeap("dismissActiveSurvey", Fe.PageChange);
6662
6662
  }
6663
6663
  const ku = { capture: !0 }, ng = () => {
6664
6664
  const e = globalThis.UserLeap._config.interactiveEvents.filter((r) => so(r, globalThis.location.href)).map((r) => {
6665
6665
  const { name: s, properties: n } = r, { selector: i, innerText: a } = n;
6666
6666
  return i ? (o) => {
6667
- if (Ja(o.target)) try {
6667
+ if (qa(o.target)) try {
6668
6668
  o.target.closest(i) && globalThis.UserLeap("track", s);
6669
6669
  } catch {
6670
6670
  }
6671
6671
  return !1;
6672
- } : (o) => (Ja(o.target) && o.target.innerText === a && globalThis.UserLeap("track", s), !1);
6672
+ } : (o) => (qa(o.target) && o.target.innerText === a && globalThis.UserLeap("track", s), !1);
6673
6673
  }), t = (r) => e.forEach((s) => s(r));
6674
6674
  globalThis.UserLeap._config.interactiveEventsHandler = t, globalThis.addEventListener("click", t, ku);
6675
6675
  }, Eu = () => {
@@ -6682,15 +6682,15 @@ function xu() {
6682
6682
  function Tu() {
6683
6683
  if (globalThis.previewMode) return;
6684
6684
  const e = ct.getItemObject("sprig.anon.env.vid.map") || {}, t = e[globalThis.UserLeap.envId];
6685
- globalThis.UserLeap.visitorId = t || Ut(), F.info("NewVid", { vid: globalThis.UserLeap.visitorId }), Ee("vid", globalThis.UserLeap.visitorId), t || (e[globalThis.UserLeap.envId] = globalThis.UserLeap.visitorId, ct.setItemObject("sprig.anon.env.vid.map", e)), j.emit(B.VisitorIDUpdated, { visitorId: globalThis.UserLeap.visitorId });
6685
+ globalThis.UserLeap.visitorId = t || Dt(), N.info("NewVid", { vid: globalThis.UserLeap.visitorId }), Ee("vid", globalThis.UserLeap.visitorId), t || (e[globalThis.UserLeap.envId] = globalThis.UserLeap.visitorId, ct.setItemObject("sprig.anon.env.vid.map", e)), W.emit(z.VisitorIDUpdated, { visitorId: globalThis.UserLeap.visitorId });
6686
6686
  }
6687
6687
  function Ru(e, t, r, s) {
6688
6688
  var n, i;
6689
6689
  try {
6690
6690
  if (e.endsWith("mock_snippet.html")) return;
6691
- F.info("PageView", { url: e });
6691
+ N.info("PageView", { url: e });
6692
6692
  const a = (n = document == null ? void 0 : document.querySelector('meta[name="description"]')) == null ? void 0 : n.getAttribute("content");
6693
- (i = ne.replay) == null || i.RecordPageView({ ...a && { description: a }, url: e, referrer: document.referrer, pageTitle: document.title });
6693
+ (i = re.replay) == null || i.RecordPageView({ ...a && { description: a }, url: e, referrer: document.referrer, pageTitle: document.title });
6694
6694
  const o = globalThis.UserLeap._config.pageUrlEvents;
6695
6695
  let l = !1;
6696
6696
  if (o && o.length) for (let u = 0; u < o.length && (l = so(o[u], e), !l); u++) ;
@@ -6716,7 +6716,7 @@ function ig() {
6716
6716
  async function yn(e, t) {
6717
6717
  const r = eo();
6718
6718
  e && !t && (globalThis.UserLeap._config.mode = rg);
6719
- const s = Ys(Ue(globalThis.UserLeap)), n = await ze(function(i) {
6719
+ const s = Ys(Ue(globalThis.UserLeap)), n = await Be(function(i) {
6720
6720
  const a = new URL(Ae("1", [it], "questions"));
6721
6721
  return Object.entries(i || {}).forEach(([o, l]) => {
6722
6722
  l && a.searchParams.append(o, String(l));
@@ -6746,48 +6746,48 @@ function og(e) {
6746
6746
  const ag = function(e) {
6747
6747
  if (!globalThis.UserLeap) return;
6748
6748
  const t = async (n = {}) => {
6749
- var m, g, v, I, O;
6749
+ var m, g, v, S, A;
6750
6750
  const { userId: i, anonymousId: a, metadata: o = {}, properties: l, showSurveyCallback: c } = n;
6751
6751
  let { eventName: u } = n;
6752
6752
  if (globalThis.UserLeap.debugMode && u !== Cu && console.info("[DEBUG] Sprig track", n), e.mode === "test") return;
6753
- const d = re.getItem("sprig.previewKey") ?? void 0;
6753
+ const d = ee.getItem("sprig.previewKey") ?? void 0;
6754
6754
  if (e.requireUserIdForTracking && !globalThis.UserLeap.userId && !i) {
6755
- const E = "[Sprig] - Skipping tracking without userId";
6756
- return console.warn(E), { success: !1, message: E, surveyState: "no survey" };
6755
+ const k = "[Sprig] - Skipping tracking without userId";
6756
+ return console.warn(k), { success: !1, message: k, surveyState: "no survey" };
6757
6757
  }
6758
6758
  if (!u || u.trim().length === 0) {
6759
6759
  u = u ? String(u) : "";
6760
- const E = "[Sprig] - Invalid event name " + u;
6761
- return console.warn(E), { success: !1, message: E, surveyState: "no survey" };
6760
+ const k = "[Sprig] - Invalid event name " + u;
6761
+ return console.warn(k), { success: !1, message: k, surveyState: "no survey" };
6762
6762
  }
6763
6763
  const p = sr ?? globalThis.location.href;
6764
- o.url || (o.url = p), Ee("trackStartUrl", p), (g = (m = globalThis.UserLeap) == null ? void 0 : m._config) != null && g.optimizelyEnabled && (mr(Ue(globalThis.UserLeap)) || us.getAndSetWebOptimizelyExperiments(), o.optimizelyExperiments = Object.assign({}, us.getAllOptimizelyExperiments())), (I = (v = globalThis.UserLeap) == null ? void 0 : v._config) != null && I.launchDarklyEnabled && (o.launchDarklyFlags = pi.getAllLaunchDarklyVariations()), i && (globalThis.UserLeap.userId = i), a && (globalThis.UserLeap.partnerAnonymousId = a), l && (o.eventProperties = l), (O = ne.replay) == null || O.RecordEvent({ name: u, url: o.url }), F.info("TrackEvent", { eventName: u });
6765
- const f = globalThis.UserLeap.delayingSurvey || mu() ? await ze(Ae("1", [nt], "events/batch"), { body: JSON.stringify({ events: [{ event: u, metadata: o }], previewKey: d }), method: "POST", shouldDropOnRateLimit: !0 }) : await ze(Ae("1", [nt], "events"), { body: JSON.stringify({ event: u, metadata: o, previewKey: d }), method: "POST", shouldDropOnRateLimit: !0 });
6764
+ o.url || (o.url = p), Ee("trackStartUrl", p), (g = (m = globalThis.UserLeap) == null ? void 0 : m._config) != null && g.optimizelyEnabled && (mr(Ue(globalThis.UserLeap)) || us.getAndSetWebOptimizelyExperiments(), o.optimizelyExperiments = Object.assign({}, us.getAllOptimizelyExperiments())), (S = (v = globalThis.UserLeap) == null ? void 0 : v._config) != null && S.launchDarklyEnabled && (o.launchDarklyFlags = pi.getAllLaunchDarklyVariations()), i && (globalThis.UserLeap.userId = i), a && (globalThis.UserLeap.partnerAnonymousId = a), l && (o.eventProperties = l), (A = re.replay) == null || A.RecordEvent({ name: u, url: o.url }), N.info("TrackEvent", { eventName: u });
6765
+ const f = globalThis.UserLeap.delayingSurvey || mu() ? await Be(Ae("1", [nt], "events/batch"), { body: JSON.stringify({ events: [{ event: u, metadata: o }], previewKey: d }), method: "POST", shouldDropOnRateLimit: !0 }) : await Be(Ae("1", [nt], "events"), { body: JSON.stringify({ event: u, metadata: o, previewKey: d }), method: "POST", shouldDropOnRateLimit: !0 });
6766
6766
  if (!f.ok) {
6767
- const E = "[Sprig] (ERR-421) Failed to track event";
6768
- return f.reportError && (console.warn(E, f.error), f.error && globalThis.UserLeap.reportError("track", f.error)), { success: !1, message: E, error: f.error, surveyState: "no survey" };
6767
+ const k = "[Sprig] (ERR-421) Failed to track event";
6768
+ return f.reportError && (console.warn(k, f.error), f.error && globalThis.UserLeap.reportError("track", f.error)), { success: !1, message: k, error: f.error, surveyState: "no survey" };
6769
6769
  }
6770
6770
  i && Ee("uid", i), a && Ee("aid", a);
6771
6771
  const w = f.json;
6772
- w.invalidPreviewKey && re.removeItem("sprig.previewKey");
6772
+ w.invalidPreviewKey && ee.removeItem("sprig.previewKey");
6773
6773
  const h = o.trackPageView ? o.url : void 0;
6774
- return w != null && w.feedbackButton && yu(w.feedbackButton, void 0, h), await async function(E, U) {
6775
- var k, L;
6776
- let A = !0;
6777
- return !(U && ((k = E == null ? void 0 : E.json) != null && k.surveyId) && (globalThis.UserLeap.delayingSurvey = !0, A = await U(E.json.surveyId), globalThis.UserLeap.delayingSurvey = !1, !A)) && ((L = E == null ? void 0 : E.json) != null && L.delay && !globalThis.UserLeap.isMobileSDK && (globalThis.UserLeap.delayingSurvey = !0, await vs(E.json.delay), globalThis.UserLeap.delayingSurvey = !1), A);
6778
- }(f, c) ? function(E) {
6774
+ return w != null && w.feedbackButton && yu(w.feedbackButton, void 0, h), await async function(k, M) {
6775
+ var E, R;
6776
+ let U = !0;
6777
+ return !(M && ((E = k == null ? void 0 : k.json) != null && E.surveyId) && (globalThis.UserLeap.delayingSurvey = !0, U = await M(k.json.surveyId), globalThis.UserLeap.delayingSurvey = !1, !U)) && ((R = k == null ? void 0 : k.json) != null && R.delay && !globalThis.UserLeap.isMobileSDK && (globalThis.UserLeap.delayingSurvey = !0, await vs(k.json.delay), globalThis.UserLeap.delayingSurvey = !1), U);
6778
+ }(f, c) ? function(k) {
6779
6779
  if (!globalThis.UserLeap._config.dismissOnPageChange) return !0;
6780
- const U = new URL(E), A = new URL(sr ?? globalThis.location.href);
6781
- return U.hostname === A.hostname && U.pathname === A.pathname;
6780
+ const M = new URL(k), U = new URL(sr ?? globalThis.location.href);
6781
+ return M.hostname === U.hostname && M.pathname === U.pathname;
6782
6782
  }(p) ? tr(w, h, io) : { success: !1, message: "Study should not be displayed after page navigation", surveyState: "no survey" } : { success: !1, message: "[Sprig] Callback returned false, aborting rendering of survey", surveyState: "no survey" };
6783
6783
  }, r = (n, i) => {
6784
6784
  var o;
6785
6785
  const a = (o = n == null ? void 0 : n.querySelector(`[id="${ro}"]`)) == null ? void 0 : o.contentDocument;
6786
6786
  a && Ss({ document: a, elementId: "ul-custom-style", styleString: i });
6787
- }, s = { displaySurvey: async (n) => (console.warn("[Sprig] displaySurvey should only be used to debug your studies; not intended for production usage."), globalThis.UserLeap("dismissActiveSurvey", Be.Override), yn({ surveyId: n }, !0)), _previewSurvey(n) {
6788
- globalThis.UserLeap("dismissActiveSurvey", Be.Override), yn({ surveyTemplateId: n }, !1);
6787
+ }, s = { displaySurvey: async (n) => (console.warn("[Sprig] displaySurvey should only be used to debug your studies; not intended for production usage."), globalThis.UserLeap("dismissActiveSurvey", Fe.Override), yn({ surveyId: n }, !0)), _previewSurvey(n) {
6788
+ globalThis.UserLeap("dismissActiveSurvey", Fe.Override), yn({ surveyTemplateId: n }, !1);
6789
6789
  }, _reviewSurvey(n) {
6790
- globalThis.UserLeap("dismissActiveSurvey", Be.Override), yn({ surveyId: n }, !1);
6790
+ globalThis.UserLeap("dismissActiveSurvey", Fe.Override), yn({ surveyId: n }, !1);
6791
6791
  }, previewSurvey(n) {
6792
6792
  s._previewSurvey(n);
6793
6793
  }, reviewSurvey(n) {
@@ -6798,8 +6798,8 @@ const ag = function(e) {
6798
6798
  globalThis.UserLeap._queue.unpause();
6799
6799
  }, setVisitorToken() {
6800
6800
  console.warn("[Sprig] setVisitorToken is deprecated.");
6801
- }, dismissActiveSurvey(n = Be.API) {
6802
- globalThis.UserLeap.container && (n === Be.Closed && globalThis.Sprig.trackHistory && globalThis.Sprig.trackHistory({ event: "closed" }), j.emit(B.SurveyCloseRequested, { name: B.SurveyCloseRequested, initiator: n, "survey.id": parseInt(globalThis.UserLeap.container.dataset.studyId) }), j.emit(B.SurveyWillClose, { name: B.SurveyWillClose, initiator: n, "survey.id": parseInt(globalThis.UserLeap.container.dataset.studyId) }));
6801
+ }, dismissActiveSurvey(n = Fe.API) {
6802
+ globalThis.UserLeap.container && (n === Fe.Closed && globalThis.Sprig.trackHistory && globalThis.Sprig.trackHistory({ event: "closed" }), W.emit(z.SurveyCloseRequested, { name: z.SurveyCloseRequested, initiator: n, "survey.id": parseInt(globalThis.UserLeap.container.dataset.studyId) }), W.emit(z.SurveyWillClose, { name: z.SurveyWillClose, initiator: n, "survey.id": parseInt(globalThis.UserLeap.container.dataset.studyId) }));
6803
6803
  }, async setAttribute(n, i) {
6804
6804
  if (!n || !i && i !== 0 && i !== !1) {
6805
6805
  const a = "[Sprig] - Disregarding empty attribute / value provided";
@@ -6831,7 +6831,7 @@ const ag = function(e) {
6831
6831
  if (!(o && Object.keys(o).length !== 0 || i && globalThis.UserLeap.userId !== i || a && globalThis.UserLeap.partnerAnonymousId !== a)) return { success: !0 };
6832
6832
  const l = {};
6833
6833
  let c;
6834
- return i && (l.userId = globalThis.UserLeap.userId = i), a && (l.partnerAnonymousId = globalThis.UserLeap.partnerAnonymousId = a), o && Object.keys(o).length > 0 ? (c = await ze(Ae("1", [it, nt], "attributes"), { body: JSON.stringify(o), method: "PUT" }), c.ok ? Object.assign(Rs, o) : c.reportError && (console.warn("[Sprig] (ERR-432) identifyAndSetAttributes failed", c.error), c.error && globalThis.UserLeap.reportError("identifyAndSetAttributes", c.error))) : c = await ze(Ae("1", [it, nt]), { body: JSON.stringify(l), method: "PUT" }), o && o[Vt] && (globalThis.UserLeap.email = o[Vt]), c.ok && (i && Ee("uid", i), a && Ee("aid", a)), { success: !!c.ok };
6834
+ return i && (l.userId = globalThis.UserLeap.userId = i), a && (l.partnerAnonymousId = globalThis.UserLeap.partnerAnonymousId = a), o && Object.keys(o).length > 0 ? (c = await Be(Ae("1", [it, nt], "attributes"), { body: JSON.stringify(o), method: "PUT" }), c.ok ? Object.assign(Rs, o) : c.reportError && (console.warn("[Sprig] (ERR-432) identifyAndSetAttributes failed", c.error), c.error && globalThis.UserLeap.reportError("identifyAndSetAttributes", c.error))) : c = await Be(Ae("1", [it, nt]), { body: JSON.stringify(l), method: "PUT" }), o && o[Vt] && (globalThis.UserLeap.email = o[Vt]), c.ok && (i && Ee("uid", i), a && Ee("aid", a)), { success: !!c.ok };
6835
6835
  }, async removeAttributes(n) {
6836
6836
  if (globalThis.UserLeap.debugMode && console.info("[DEBUG] Sprig removeAttributes", n), e.mode === "test") return;
6837
6837
  if (n == null || n.length === 0) {
@@ -6842,20 +6842,20 @@ const ag = function(e) {
6842
6842
  const a = "[Sprig] - Skipping tracking without userId";
6843
6843
  return console.warn(a), { success: !1, message: a };
6844
6844
  }
6845
- const i = await ze(Ae("1", [it, nt], "attributes"), { body: JSON.stringify({ delete: n }), method: "DELETE" });
6845
+ const i = await Be(Ae("1", [it, nt], "attributes"), { body: JSON.stringify({ delete: n }), method: "DELETE" });
6846
6846
  return !i.ok && i.reportError && (console.warn("[Sprig] (ERR-433) Remove attributes failed", i.error), i.error && globalThis.UserLeap.reportError("removeAttributes", i.error)), { success: !!i.ok };
6847
6847
  }, async addSurveyListener(n) {
6848
- j.on(B.SurveyLifeCycle, n);
6848
+ W.on(z.SurveyLifeCycle, n);
6849
6849
  }, async removeSurveyListener(n) {
6850
- j.removeListener(B.SurveyLifeCycle, n);
6850
+ W.removeListener(z.SurveyLifeCycle, n);
6851
6851
  }, async addListener(n, i) {
6852
- j.on(n, i);
6852
+ W.on(n, i);
6853
6853
  }, async removeListener(n, i) {
6854
- j.removeListener(n, i);
6854
+ W.removeListener(n, i);
6855
6855
  }, async removeAllListeners() {
6856
- j.removeAllListeners();
6856
+ W.removeAllListeners();
6857
6857
  }, setPreviewKey(n) {
6858
- n && typeof n == "string" && re.isStorageAvailable && n && re.setItem("sprig.previewKey", n);
6858
+ n && typeof n == "string" && ee.isStorageAvailable && n && ee.setItem("sprig.previewKey", n);
6859
6859
  }, async setUserId(n) {
6860
6860
  var o;
6861
6861
  if (globalThis.UserLeap.debugMode && console.info("[DEBUG] Sprig setUserId", n), n == null) {
@@ -6864,8 +6864,8 @@ const ag = function(e) {
6864
6864
  }
6865
6865
  if (e.mode === "test" || n === globalThis.UserLeap.userId) return;
6866
6866
  globalThis.UserLeap.userId = n;
6867
- const i = globalThis.UserLeap.visitorId, a = await ze(Ae("1", [it, nt]), { body: JSON.stringify({ userId: n }), method: "PUT" });
6868
- a.ok ? (i !== globalThis.UserLeap.visitorId && ((o = ne.replay) == null || o.clearUserReplayData()), Ee("uid", n)) : a.reportError && (console.warn("[Sprig] (ERR-420) Failed to set user id", a.error), a.error && globalThis.UserLeap.reportError("setUserId", a.error));
6867
+ const i = globalThis.UserLeap.visitorId, a = await Be(Ae("1", [it, nt]), { body: JSON.stringify({ userId: n }), method: "PUT" });
6868
+ a.ok ? (i !== globalThis.UserLeap.visitorId && ((o = re.replay) == null || o.clearUserReplayData()), Ee("uid", n)) : a.reportError && (console.warn("[Sprig] (ERR-420) Failed to set user id", a.error), a.error && globalThis.UserLeap.reportError("setUserId", a.error));
6869
6869
  }, async setPartnerAnonymousId(n) {
6870
6870
  if (globalThis.UserLeap.debugMode && console.info("[DEBUG] Sprig setPartnerAnonymousId", n), n == null) {
6871
6871
  const i = `[Sprig] - Invalid partnerAnonymousId ${n}`;
@@ -6885,12 +6885,12 @@ const ag = function(e) {
6885
6885
  const l = Ue(globalThis.UserLeap), c = Ys(l), u = l["userleap-platform"] === "web";
6886
6886
  if (!globalThis.UserLeap.frameId) return;
6887
6887
  const d = document.getElementById(globalThis.UserLeap.frameId);
6888
- d && (globalThis.UserLeap.useMobileStyling && ((p = globalThis.UserLeap.windowDimensions) != null && p.width && (d.style.width = `${globalThis.UserLeap.windowDimensions.width}px`), (f = globalThis.UserLeap.windowDimensions) != null && f.height && (d.style.maxHeight = globalThis.UserLeap.windowDimensions.height - 20 + "px"), d.contentDocument && (d.style.height = String(Hf(d.contentDocument, u && !c, su(l))[0]) + "px")), j.emit(B.SurveyDimensions, { name: B.SurveyDimensions, contentFrameWidth: d.clientWidth, contentFrameHeight: d.clientHeight, "survey.id": parseInt(globalThis.UserLeap.container.dataset.studyId) }));
6888
+ d && (globalThis.UserLeap.useMobileStyling && ((p = globalThis.UserLeap.windowDimensions) != null && p.width && (d.style.width = `${globalThis.UserLeap.windowDimensions.width}px`), (f = globalThis.UserLeap.windowDimensions) != null && f.height && (d.style.maxHeight = globalThis.UserLeap.windowDimensions.height - 20 + "px"), d.contentDocument && (d.style.height = String(Hf(d.contentDocument, u && !c, su(l))[0]) + "px")), W.emit(z.SurveyDimensions, { name: z.SurveyDimensions, contentFrameWidth: d.clientWidth, contentFrameHeight: d.clientHeight, "survey.id": parseInt(globalThis.UserLeap.container.dataset.studyId) }));
6889
6889
  }, logoutUser() {
6890
6890
  var n;
6891
- globalThis.UserLeap.debugMode && console.info("[DEBUG] Sprig logout"), F.info("LogOut", { vid: globalThis.UserLeap.visitorId, userId: globalThis.UserLeap.userId }), globalThis.UserLeap.visitorId = null, globalThis.UserLeap.userId = null, globalThis.UserLeap.partnerAnonymousId = null, globalThis.UserLeap.token = null, globalThis.UserLeap.email = null, ct.removeItem("userleap.ids"), globalThis.UserLeap._queue.isPaused() && globalThis.UserLeap._queue.empty(), Tu(), (n = ne.replay) == null || n.clearUserReplayData(), globalThis.UserLeap._queue.unpause();
6891
+ globalThis.UserLeap.debugMode && console.info("[DEBUG] Sprig logout"), N.info("LogOut", { vid: globalThis.UserLeap.visitorId, userId: globalThis.UserLeap.userId }), globalThis.UserLeap.visitorId = null, globalThis.UserLeap.userId = null, globalThis.UserLeap.partnerAnonymousId = null, globalThis.UserLeap.token = null, globalThis.UserLeap.email = null, ct.removeItem("userleap.ids"), globalThis.UserLeap._queue.isPaused() && globalThis.UserLeap._queue.empty(), Tu(), (n = re.replay) == null || n.clearUserReplayData(), globalThis.UserLeap._queue.unpause();
6892
6892
  }, teardown() {
6893
- ["hashchange", "popstate"].forEach((n) => globalThis.removeEventListener(n, nr, !0)), globalThis.UserLeap._config.interactiveEvents && Eu(), globalThis.UserLeap("dismissActiveSurvey", Be.API), delete globalThis.UserLeap, delete globalThis.Sprig, delete globalThis._Sprig;
6893
+ ["hashchange", "popstate"].forEach((n) => globalThis.removeEventListener(n, nr, !0)), globalThis.UserLeap._config.interactiveEvents && Eu(), globalThis.UserLeap("dismissActiveSurvey", Fe.API), delete globalThis.UserLeap, delete globalThis.Sprig, delete globalThis._Sprig;
6894
6894
  }, integrateOptimizely(n, i = !0) {
6895
6895
  var a, o;
6896
6896
  if ((o = (a = globalThis.UserLeap) == null ? void 0 : a._config) != null && o.optimizelyEnabled) try {
@@ -6928,20 +6928,20 @@ const ag = function(e) {
6928
6928
  bu(n, i);
6929
6929
  }, _completeSessionReplay: async ({ surveyId: n, responseGroupUuid: i, eventDigest: a }) => {
6930
6930
  var o;
6931
- return ne.replay ? (o = ne.replay) == null ? void 0 : o._completeSessionReplay({ surveyId: n, responseGroupUuid: i, eventDigest: a, headers: Ue(globalThis.UserLeap) }) : (globalThis.UserLeap.reportError("_completeSessionReplay", new Error("Replay module not registered")), !1);
6931
+ return re.replay ? (o = re.replay) == null ? void 0 : o._completeSessionReplay({ surveyId: n, responseGroupUuid: i, eventDigest: a, headers: Ue(globalThis.UserLeap) }) : (globalThis.UserLeap.reportError("_completeSessionReplay", new Error("Replay module not registered")), !1);
6932
6932
  }, pauseReplayRecording() {
6933
6933
  var n, i, a, o;
6934
- (i = (n = ne.replay) == null ? void 0 : n.isReplayPaused) != null && i.call(n) || ((o = (a = ne.replay) == null ? void 0 : a.recordReplayPaused) == null || o.call(a));
6934
+ (i = (n = re.replay) == null ? void 0 : n.isReplayPaused) != null && i.call(n) || ((o = (a = re.replay) == null ? void 0 : a.recordReplayPaused) == null || o.call(a));
6935
6935
  }, resumeReplayRecording() {
6936
6936
  var n, i, a, o, l, c;
6937
- (i = (n = ne.replay) == null ? void 0 : n.isReplayPaused) != null && i.call(n) && ((o = (a = ne.replay) == null ? void 0 : a.recordReplayResumed) == null || o.call(a), (c = (l = ne.replay) == null ? void 0 : l.recordFullSnapshot) == null || c.call(l));
6937
+ (i = (n = re.replay) == null ? void 0 : n.isReplayPaused) != null && i.call(n) && ((o = (a = re.replay) == null ? void 0 : a.recordReplayResumed) == null || o.call(a), (c = (l = re.replay) == null ? void 0 : l.recordFullSnapshot) == null || c.call(l));
6938
6938
  } };
6939
6939
  Object.assign(globalThis.UserLeap, s);
6940
6940
  };
6941
6941
  async function lg(e, t, r = {}, s = {}) {
6942
6942
  var u;
6943
- const n = (u = globalThis.__cfg) == null ? void 0 : u.mode, i = eo(), a = globalThis.UserLeap.envId, o = globalThis.document.documentElement, l = { mode: n, screenWidth: globalThis.screen.width, screenHeight: globalThis.screen.height, clientWidth: o.clientWidth, clientHeight: o.clientHeight, location: sr ?? globalThis.location.href, language: globalThis.navigator.language, ...r }, c = { action: e, breadcrumbs: F.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, ...s };
6944
- (await ze(Ae("1", null, "errors"), { method: "POST", headers: { "x-ul-error": globalThis.btoa(`userleap-${Date.now()}-error`) }, body: JSON.stringify(c), shouldDropOnRateLimit: !0 })).ok || console.warn("[Sprig] (ERR-444) Failed to report error to API", t);
6943
+ const n = (u = globalThis.__cfg) == null ? void 0 : u.mode, i = eo(), a = globalThis.UserLeap.envId, o = globalThis.document.documentElement, l = { mode: n, screenWidth: globalThis.screen.width, screenHeight: globalThis.screen.height, clientWidth: o.clientWidth, clientHeight: o.clientHeight, location: sr ?? globalThis.location.href, language: globalThis.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, ...s };
6944
+ (await Be(Ae("1", null, "errors"), { method: "POST", headers: { "x-ul-error": globalThis.btoa(`userleap-${Date.now()}-error`) }, body: JSON.stringify(c), shouldDropOnRateLimit: !0 })).ok || console.warn("[Sprig] (ERR-444) Failed to report error to API", t);
6945
6945
  }
6946
6946
  function cg(e = {}) {
6947
6947
  var s;
@@ -6970,22 +6970,22 @@ function cg(e = {}) {
6970
6970
  const c = mr(Ue(globalThis.UserLeap));
6971
6971
  (p = globalThis.SprigLoggerCallback) == null || p.call(globalThis, "Sprig fetching config");
6972
6972
  const u = await async function(C) {
6973
- var I, O;
6973
+ var S, A;
6974
6974
  const m = Ue(globalThis.UserLeap);
6975
6975
  document.addEventListener("securitypolicyviolation", Ha);
6976
- const g = await Xe(Ae("1", [it], "config"), { headers: m });
6977
- if (document.removeEventListener("securitypolicyviolation", Ha), !g.ok) return (I = globalThis.SprigLoggerCallback) == null || I.call(globalThis, "Sprig config fetch failed"), g.reportError && (console.warn("[Sprig] (ERR-422) Failed to load configuration", g.error), g.error && globalThis.UserLeap.reportError("applyRemoteConfig", g.error)), ci("Disabled: failed to fetch configuration"), C;
6976
+ const g = await Ze(Ae("1", [it], "config"), { headers: m });
6977
+ if (document.removeEventListener("securitypolicyviolation", Ha), !g.ok) return (S = globalThis.SprigLoggerCallback) == null || S.call(globalThis, "Sprig config fetch failed"), g.reportError && (console.warn("[Sprig] (ERR-422) Failed to load configuration", g.error), g.error && globalThis.UserLeap.reportError("applyRemoteConfig", g.error)), ci("Disabled: failed to fetch configuration"), C;
6978
6978
  const v = g.json;
6979
- return v != null && v.disabled ? ((O = globalThis.SprigLoggerCallback) == null || O.call(globalThis, "Sprig config fetch disabled"), ci(`Disabled: ${v.disabled}`), { disabled: v.disabled }) : Object.assign({}, v, C);
6979
+ return v != null && v.disabled ? ((A = globalThis.SprigLoggerCallback) == null || A.call(globalThis, "Sprig config fetch disabled"), ci(`Disabled: ${v.disabled}`), { disabled: v.disabled }) : Object.assign({}, v, C);
6980
6980
  }(e);
6981
6981
  if ((f = globalThis.SprigLoggerCallback) == null || f.call(globalThis, "Sprig fetched config"), tg({ isWeb: !c, reportingIntervalSeconds: u.metricsReportingEnabled || u.mobileMetricsReportingEnabled ? u.metricsReportingIntervalSeconds : 0, thresholds: u.metricThresholds, postMetrics: async (C) => {
6982
6982
  var m;
6983
- await ze(Ae("1", [it], "metrics"), { body: C, method: "POST", headers: { "x-ul-replay-enabled": `${!!((m = ne.replay) != null && m.isReplayRecording())}` }, shouldDropOnRateLimit: !0 });
6983
+ await Be(Ae("1", [it], "metrics"), { body: C, method: "POST", headers: { "x-ul-replay-enabled": `${!!((m = re.replay) != null && m.isReplayRecording())}` }, shouldDropOnRateLimit: !0 });
6984
6984
  } }), !c) {
6985
- const C = u.alwaysOnReplay ? { userAgent: globalThis.navigator.userAgent, surveyId: u.alwaysOnReplay.surveyId, responseGroupUuid: u.alwaysOnReplay.responseGroupUuid, sdkVersion: "2.46.0", maxDurationSeconds: u.alwaysOnReplay.maxDurationSeconds } : void 0;
6986
- await ((w = ne.replay) == null ? void 0 : w.initializeReplay({ maxReplayDurationSeconds: u.maxReplayDurationSeconds, maxInflightRequests: globalThis.UserLeap.maxInflightReplayRequests ?? 2, replaySettings: u.replaySettings, apiUrl: globalThis.UserLeap._API_URL, alwaysOnConfig: C })), io = u.replaySettings;
6985
+ const C = u.alwaysOnReplay ? { userAgent: globalThis.navigator.userAgent, surveyId: u.alwaysOnReplay.surveyId, responseGroupUuid: u.alwaysOnReplay.responseGroupUuid, sdkVersion: "2.47.0", maxDurationSeconds: u.alwaysOnReplay.maxDurationSeconds } : void 0;
6986
+ await ((w = re.replay) == null ? void 0 : w.initializeReplay({ maxReplayDurationSeconds: u.maxReplayDurationSeconds, maxInflightRequests: globalThis.UserLeap.maxInflightReplayRequests ?? 2, replaySettings: u.replaySettings, apiUrl: globalThis.UserLeap._API_URL, alwaysOnConfig: C })), io = u.replaySettings;
6987
6987
  }
6988
- ag(u), await og(u), globalThis.UserLeap._queue.unpause(), (h = globalThis.SprigLoggerCallback) == null || h.call(globalThis, "SdkReady"), j.emit(B.SDKReady, { mobileMetricsReportingEnabled: !!u.mobileMetricsReportingEnabled, metricsReportingInterval: u.metricsReportingIntervalSeconds || 0, metricsThresholds: u.metricThresholds || [], maxMobileReplayDurationSeconds: u.maxMobileReplayDurationSeconds, mobileReplaySettings: u.mobileReplaySettings }), j.emit(B.VisitorIDUpdated, { visitorId: globalThis.UserLeap.visitorId }), j.on(B.VisitorIDUpdated, () => {
6988
+ ag(u), await og(u), globalThis.UserLeap._queue.unpause(), (h = globalThis.SprigLoggerCallback) == null || h.call(globalThis, "SdkReady"), W.emit(z.SDKReady, { mobileMetricsReportingEnabled: !!u.mobileMetricsReportingEnabled, metricsReportingInterval: u.metricsReportingIntervalSeconds || 0, metricsThresholds: u.metricThresholds || [], maxMobileReplayDurationSeconds: u.maxMobileReplayDurationSeconds, mobileReplaySettings: u.mobileReplaySettings }), W.emit(z.VisitorIDUpdated, { visitorId: globalThis.UserLeap.visitorId }), W.on(z.VisitorIDUpdated, () => {
6989
6989
  for (const C in Rs) delete Rs[C];
6990
6990
  });
6991
6991
  }
@@ -6995,7 +6995,7 @@ function cg(e = {}) {
6995
6995
  }
6996
6996
  class yi {
6997
6997
  constructor() {
6998
- de(this, "UPDATES", hr);
6998
+ ue(this, "UPDATES", hr);
6999
6999
  }
7000
7000
  displaySurvey(t) {
7001
7001
  var r;
@@ -7102,7 +7102,7 @@ const sy = { configure: (e) => {
7102
7102
  const t = globalThis.Sprig;
7103
7103
  return t.appId = e.envId, t._queue = [], globalThis.UserLeap = t, cg(e), globalThis.Sprig;
7104
7104
  } }, ny = new yi();
7105
- var ot = ((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))(ot || {}), $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 || {});
7105
+ var ot = ((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))(ot || {}), Ge = ((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))(Ge || {});
7106
7106
  const wi = (e, t) => t.some((r) => e instanceof r);
7107
7107
  let rl, sl;
7108
7108
  const bi = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), Ls = /* @__PURE__ */ new WeakMap();
@@ -7191,8 +7191,8 @@ function ol(e, t) {
7191
7191
  Lu((e) => ({ ...e, get: (t, r, s) => ol(t, r) ? gg : e.get(t, r, s), has: (t, r) => ol(t, r) || e.has(t, r) }));
7192
7192
  const yg = "sprigReplayIframeLoaded", wg = "sprigReplayIframeSettings", bg = "sprigReplayIframeTakeFullSnapshot", vg = "sprigReplayTeardown", oo = [], Au = new class {
7193
7193
  constructor(e) {
7194
- de(this, "awaitingResolvers", []);
7195
- de(this, "activeCount", 0);
7194
+ ue(this, "awaitingResolvers", []);
7195
+ ue(this, "activeCount", 0);
7196
7196
  this.capacity = e;
7197
7197
  }
7198
7198
  async acquire() {
@@ -7217,10 +7217,10 @@ const yg = "sprigReplayIframeLoaded", wg = "sprigReplayIframeSettings", bg = "sp
7217
7217
  }
7218
7218
  }(2), Mu = async ({ apiUrl: e, surveyId: t, uploadId: r, etags: s, headers: n, responseGroupUuid: i, replayDuration: a, eventDigest: o }, l = !1) => {
7219
7219
  var u;
7220
- if (!l && !r && !s) return void F.error("UploadErr", { isMobile: l, uploadId: r, etags: s });
7221
- F.info("MarkUploadComplete", { surveyId: t });
7222
- const c = await Xe(`${e}/sdk/1/completeSessionReplay`, { method: "POST", body: JSON.stringify({ etags: s, uploadId: r, responseGroupUuid: i, surveyId: t, replayDuration: a, eventDigest: o, userAgent: (u = window == null ? void 0 : window.navigator) == null ? void 0 : u.userAgent }), headers: n, shouldRetryRequest: !0 });
7223
- return F.info("MarkUploadDone", { surveyId: t }), c;
7220
+ if (!l && !r && !s) return void N.error("UploadErr", { isMobile: l, uploadId: r, etags: s });
7221
+ N.info("MarkUploadComplete", { surveyId: t });
7222
+ const c = await Ze(`${e}/sdk/1/completeSessionReplay`, { method: "POST", body: JSON.stringify({ etags: s, uploadId: r, responseGroupUuid: i, surveyId: t, replayDuration: a, eventDigest: o, userAgent: (u = window == null ? void 0 : window.navigator) == null ? void 0 : u.userAgent }), headers: n, shouldRetryRequest: !0 });
7223
+ return N.info("MarkUploadDone", { surveyId: t }), c;
7224
7224
  }, Sg = (e) => {
7225
7225
  if (e instanceof Attr) return null;
7226
7226
  let t = 1;
@@ -7256,7 +7256,7 @@ const yg = "sprigReplayIframeLoaded", wg = "sprigReplayIframeSettings", bg = "sp
7256
7256
  return (s) => {
7257
7257
  clearTimeout(r), r = window.setTimeout(() => e(s), t);
7258
7258
  };
7259
- }, We = { capture: !0, passive: !0 }, Cg = ["a", "button", "input", "option", "li", "link"], kg = ["Escape", "Enter", "Backspace", "F5", "Tab"];
7259
+ }, je = { capture: !0, passive: !0 }, Cg = ["a", "button", "input", "option", "li", "link"], kg = ["Escape", "Enter", "Backspace", "F5", "Tab"];
7260
7260
  let Os = !1, Te = null, ds = null;
7261
7261
  const al = (e) => {
7262
7262
  var r;
@@ -7300,56 +7300,56 @@ const Fu = (e) => {
7300
7300
  e.button === 2 && Du("right_click", e);
7301
7301
  }, Bu = (e) => {
7302
7302
  window.Sprig && (window.Sprig.pointerDownTarget = e.target);
7303
- }, pe = { isRecording: !1, scrollEventUuids: {}, stopRecording: () => {
7303
+ }, de = { isRecording: !1, scrollEventUuids: {}, stopRecording: () => {
7304
7304
  } }, zu = () => globalThis.indexedDB && globalThis.IDBKeyRange && globalThis.CompressionStream, be = (() => {
7305
- const e = re.getItem("sprig.sessionId");
7306
- if (e) return F.info("SessionIDFound", { savedSessionId: e }), re.removeItem("sprig.sessionId"), e;
7307
- const t = Ut();
7308
- return F.info("GeneratedSessionID", { uuid: t }), t;
7305
+ const e = ee.getItem("sprig.sessionId");
7306
+ if (e) return N.info("SessionIDFound", { savedSessionId: e }), ee.removeItem("sprig.sessionId"), e;
7307
+ const t = Dt();
7308
+ return N.info("GeneratedSessionID", { uuid: t }), t;
7309
7309
  })(), ki = () => {
7310
- re.setItem("sprig.disableReplayRecording", "disabled");
7311
- }, He = () => !!re.getItem("sprig.disableReplayRecording"), As = () => !!re.getItem("sprig.isReplayPaused");
7310
+ ee.setItem("sprig.disableReplayRecording", "disabled");
7311
+ }, Ve = () => !!ee.getItem("sprig.disableReplayRecording"), As = () => !!ee.getItem("sprig.isReplayPaused");
7312
7312
  var dl;
7313
7313
  (dl = globalThis.addEventListener) == null || dl.call(globalThis, "beforeunload", () => {
7314
- F.info("BeforeUnload", { sessionId: be }), re.setItem("sprig.sessionId", be);
7314
+ N.info("BeforeUnload", { sessionId: be }), ee.setItem("sprig.sessionId", be);
7315
7315
  });
7316
- const Ye = (e, t) => {
7316
+ const $e = (e, t) => {
7317
7317
  var r, s;
7318
- if (!He() && pe.isRecording && !As()) try {
7318
+ if (!Ve() && de.isRecording && !As()) try {
7319
7319
  (s = (r = globalThis.rrwebRecord) == null ? void 0 : r.addCustomEvent) == null || s.call(r, e, t);
7320
7320
  } catch (n) {
7321
7321
  br("Error recording custom event", n);
7322
7322
  }
7323
7323
  }, Rg = async (e) => {
7324
- const { x: t, xPath: r, y: s } = e, n = pe.scrollEventUuids[r];
7324
+ const { x: t, xPath: r, y: s } = e, n = de.scrollEventUuids[r];
7325
7325
  if (n) return xe(async () => {
7326
7326
  var o, l, c, u;
7327
- const i = await ie.openDB(), a = await i.get("events", n);
7327
+ const i = await se.openDB(), a = await i.get("events", n);
7328
7328
  if (a != null && a.event) {
7329
7329
  const d = JSON.parse(a.event), p = t > ((l = (o = d.data) == null ? void 0 : o.payload) == null ? void 0 : l.x), f = s > ((u = (c = d.data) == null ? void 0 : c.payload) == null ? void 0 : u.y);
7330
7330
  if (!p && !f) return null;
7331
7331
  p && (d.data.payload.x = t), f && (d.data.payload.y = s), d.data.payload.elementAttributes = e.elementAttributes, a.event = JSON.stringify(d), await i.put("events", a);
7332
- } else Ye("Sprig_Scroll", e);
7332
+ } else $e("Sprig_Scroll", e);
7333
7333
  }, "Error updating scroll event");
7334
- Ye("Sprig_Scroll", e);
7334
+ $e("Sprig_Scroll", e);
7335
7335
  }, ju = () => {
7336
- pe.stopRecording && (pe.stopRecording(), pe.stopRecording = void 0), pe.isRecording = !1, ["cleanupInterval", "inactivityInterval", "pendingCheckInterval"].forEach((e) => {
7337
- pe[e] && (clearInterval(pe[e]), pe[e] = void 0);
7338
- }), Os && (window.removeEventListener("click", Nu, We), window.removeEventListener("pointerdown", Bu, We), window.removeEventListener("mousedown", Fu, We), window.removeEventListener("keydown", Pu, We), window.removeEventListener("scroll", _u, We), Os = !1), oo.forEach((e) => {
7336
+ de.stopRecording && (de.stopRecording(), de.stopRecording = void 0), de.isRecording = !1, ["cleanupInterval", "inactivityInterval", "pendingCheckInterval"].forEach((e) => {
7337
+ de[e] && (clearInterval(de[e]), de[e] = void 0);
7338
+ }), Os && (window.removeEventListener("click", Nu, je), window.removeEventListener("pointerdown", Bu, je), window.removeEventListener("mousedown", Fu, je), window.removeEventListener("keydown", Pu, je), window.removeEventListener("scroll", _u, je), Os = !1), oo.forEach((e) => {
7339
7339
  var t;
7340
7340
  (t = e.source) == null || t.postMessage({ type: vg }, { targetOrigin: e.origin });
7341
7341
  });
7342
7342
  }, Lg = ["did not allow mutations", "called in an invalid security context"], Og = (e, t, { reportError: r = !0, extraInfo: s = {} }) => {
7343
- if (!He() && t instanceof Error) {
7344
- if (ki(), t.name === "VersionError") return F.error("VersionErr", { message: e }), void ie.deleteDB();
7343
+ if (!Ve() && t instanceof Error) {
7344
+ if (ki(), t.name === "VersionError") return N.error("VersionErr", { message: e }), void se.deleteDB();
7345
7345
  ((n) => {
7346
7346
  if (!n) return !0;
7347
7347
  for (const i of Lg) if (n.toLowerCase().includes(i)) return !1;
7348
7348
  return !0;
7349
- })(t == null ? void 0 : t.message) && (r && globalThis.UserLeap.reportError(e, t, s), ie.clearAll());
7349
+ })(t == null ? void 0 : t.message) && (r && globalThis.UserLeap.reportError(e, t, s), se.clearAll());
7350
7350
  }
7351
7351
  }, br = (e, t, { reportError: r } = { reportError: !0 }) => {
7352
- ju(), F.error("ReplayErr", { code: t.code, name: t.name }), Og(e, t, { reportError: r });
7352
+ ju(), N.error("ReplayErr", { code: t.code, name: t.name }), Og(e, t, { reportError: r });
7353
7353
  }, xe = async (e, t) => {
7354
7354
  try {
7355
7355
  return await e();
@@ -7357,7 +7357,7 @@ const Ye = (e, t) => {
7357
7357
  br(t, r);
7358
7358
  }
7359
7359
  }, Ei = () => {
7360
- pe.isRecording && (xe(() => {
7360
+ de.isRecording && (xe(() => {
7361
7361
  var e, t;
7362
7362
  return (t = (e = globalThis.rrwebRecord) == null ? void 0 : e.takeFullSnapshot) == null ? void 0 : t.call(e, !0);
7363
7363
  }, "Error recording full snapshot"), oo.forEach((e) => {
@@ -7367,9 +7367,9 @@ const Ye = (e, t) => {
7367
7367
  };
7368
7368
  let vn = 0;
7369
7369
  (async () => zu() && Promise.allSettled([Ii("replayStorage"), Ii("sprig.replay")]))();
7370
- const ie = new class {
7370
+ const se = new class {
7371
7371
  constructor() {
7372
- de(this, "wrapTransactionWithCounter", (e) => {
7372
+ ue(this, "wrapTransactionWithCounter", (e) => {
7373
7373
  var s, n;
7374
7374
  const t = (n = (s = window.Sprig) == null ? void 0 : s._config) == null ? void 0 : n.outstandingTransactionLimit, r = t === void 0 ? 100 : t;
7375
7375
  if (r && vn > r) {
@@ -7380,7 +7380,7 @@ const ie = new class {
7380
7380
  vn--;
7381
7381
  });
7382
7382
  });
7383
- de(this, "getTransaction", async (e) => {
7383
+ ue(this, "getTransaction", async (e) => {
7384
7384
  const t = (await this.openDB()).transaction(e, "readwrite");
7385
7385
  return this.wrapTransactionWithCounter(t), t;
7386
7386
  });
@@ -7395,7 +7395,7 @@ const ie = new class {
7395
7395
  }).catch(() => {
7396
7396
  }), o;
7397
7397
  }("sprigReplay", 1, { upgrade: (e, t, r) => {
7398
- if (r === 0 && re.setItem("sprig.pendingCount", "0"), !e.objectStoreNames.contains("events")) {
7398
+ if (r === 0 && ee.setItem("sprig.pendingCount", "0"), !e.objectStoreNames.contains("events")) {
7399
7399
  const s = e.createObjectStore("events", { keyPath: "uuid" });
7400
7400
  s.createIndex("sessionId", "sessionId"), s.createIndex("timestamp", "timestamp"), s.createIndex("[sessionId+timestamp]", ["sessionId", "timestamp"]);
7401
7401
  }
@@ -7477,7 +7477,7 @@ const ie = new class {
7477
7477
  await t.done;
7478
7478
  }
7479
7479
  async markPendingHeatmapsReady(e) {
7480
- if (parseInt(re.getItem("sprig.pendingCount") ?? "0") === 0) return null;
7480
+ if (parseInt(ee.getItem("sprig.pendingCount") ?? "0") === 0) return null;
7481
7481
  const t = Date.now(), r = await this.getTransaction("pendingCaptures"), s = r.store.index("sessionId");
7482
7482
  for await (const n of s.iterate(be)) {
7483
7483
  const i = n.value;
@@ -7485,85 +7485,85 @@ const ie = new class {
7485
7485
  }
7486
7486
  await r.done;
7487
7487
  }
7488
- }(), Ze = [];
7489
- let vr, Wu, ft = [], Dt = !1, Mt = 0, ps = !1, Vu = !1;
7488
+ }(), Ke = [];
7489
+ let vr, Wu, gt = [], Pt = !1, Ut = 0, ps = !1, Vu = !1;
7490
7490
  const lo = [];
7491
7491
  let Ms, Hu, hs, Gu, Sn = !1;
7492
- const Pt = () => ps && !Dt && Date.now() <= Ms, Ag = ({ apiUrl: e, config: t, triggerSnapshot: r, forceInit: s = !1 }) => {
7493
- ps && !s || (re.isStorageAvailable ? (ft = [], lo.splice(0), Ze.splice(0), Mt = 0, hs = r, Wu = e, vr = { responseGroupUuid: t.responseGroupUuid, surveyId: t.surveyId, userAgent: t.userAgent, sdkVersion: t.sdkVersion }, Hu = t.maxDurationSeconds, Pg(), ps || (Gu = globalThis.setInterval(Dg, 500)), ps = !0) : Dt = !0);
7494
- }, Mg = [$e.Drag, $e.Input, $e.MediaInteraction, $e.MouseInteraction, $e.MouseMove, $e.Scroll, $e.Selection, $e.TouchMove], Ug = (e) => e.type === ot.Custom || e.type === ot.IncrementalSnapshot && Mg.includes(e.data.source), co = (e) => e.some(Ug), Dg = async () => {
7495
- if (!Pt()) return void globalThis.clearInterval(Gu);
7496
- if ($u(), !co(Ze)) return;
7497
- const e = Ze[0].timestamp;
7492
+ const _t = () => ps && !Pt && Date.now() <= Ms, Ag = ({ apiUrl: e, config: t, triggerSnapshot: r, forceInit: s = !1 }) => {
7493
+ ps && !s || (ee.isStorageAvailable ? (gt = [], lo.splice(0), Ke.splice(0), Ut = 0, hs = r, Wu = e, vr = { responseGroupUuid: t.responseGroupUuid, surveyId: t.surveyId, userAgent: t.userAgent, sdkVersion: t.sdkVersion }, Hu = t.maxDurationSeconds, Pg(), ps || (Gu = globalThis.setInterval(Dg, 500)), ps = !0) : Pt = !0);
7494
+ }, Mg = [Ge.Drag, Ge.Input, Ge.MediaInteraction, Ge.MouseInteraction, Ge.MouseMove, Ge.Scroll, Ge.Selection, Ge.TouchMove], Ug = (e) => e.type === ot.Custom || e.type === ot.IncrementalSnapshot && Mg.includes(e.data.source), co = (e) => e.some(Ug), Dg = async () => {
7495
+ if (!_t()) return void globalThis.clearInterval(Gu);
7496
+ if ($u(), !co(Ke)) return;
7497
+ const e = Ke[0].timestamp;
7498
7498
  Date.now() - e > 35e3 && (hs == null || hs());
7499
7499
  }, $u = async () => {
7500
- if (ft.length || Sn) return;
7500
+ if (gt.length || Sn) return;
7501
7501
  Sn = !0;
7502
7502
  const e = await Ng();
7503
- if (!e) return void (Dt = !0);
7504
- lo.splice(0, e.length).forEach((t) => t(e.shift())), e.forEach((t) => ft.push(t)), Sn = !1;
7503
+ if (!e) return void (Pt = !0);
7504
+ lo.splice(0, e.length).forEach((t) => t(e.shift())), e.forEach((t) => gt.push(t)), Sn = !1;
7505
7505
  }, Pg = () => {
7506
- const e = re.getItem("sprig.alwayson.info");
7506
+ const e = ee.getItem("sprig.alwayson.info");
7507
7507
  if (e) {
7508
- F.info("Read stored session state", e);
7508
+ N.info("Read stored session state", e);
7509
7509
  const t = JSON.parse(e);
7510
- Dt = t.disabled, vr = t.metadata, ft = t.uploadUrls, Mt = t.currentIndex, Ms = t.expirationTimestamp, t.pendingEventTimestamp && (F.info(`Uploading with pending timestamp: ${t.pendingEventTimestamp}`), _g(t.pendingEventTimestamp));
7510
+ Pt = t.disabled, vr = t.metadata, gt = t.uploadUrls, Ut = t.currentIndex, Ms = t.expirationTimestamp, t.pendingEventTimestamp && (N.info(`Uploading with pending timestamp: ${t.pendingEventTimestamp}`), _g(t.pendingEventTimestamp));
7511
7511
  } else Ms = 1e3 * Hu + Date.now();
7512
7512
  }, _g = async (e) => {
7513
- const t = Date.now(), r = (await ie.getEventsBetween(e, t)).map((n) => JSON.parse(n.event));
7513
+ const t = Date.now(), r = (await se.getEventsBetween(e, t)).map((n) => JSON.parse(n.event));
7514
7514
  if (!co(r)) return;
7515
7515
  Ku(r);
7516
- const s = await Ju();
7517
- s && await qu(s, r);
7516
+ const s = await qu();
7517
+ s && await Ju(s, r);
7518
7518
  }, Yu = async (e, t) => {
7519
7519
  try {
7520
7520
  const r = await e();
7521
7521
  if (!r.ok) throw new Error(`Error ${t}`);
7522
7522
  return r;
7523
7523
  } catch {
7524
- Dt = !0;
7524
+ Pt = !0;
7525
7525
  }
7526
- }, qu = async (e, t) => {
7527
- if (!Pt() || !e) return;
7526
+ }, Ju = async (e, t) => {
7527
+ if (!_t() || !e) return;
7528
7528
  const r = await (async (s) => {
7529
7529
  const n = new TextEncoder(), i = new CompressionStream("gzip"), a = i.writable.getWriter(), o = n.encode(JSON.stringify(s));
7530
7530
  return a.write(o), a.close(), new Uint8Array(await new Response(i.readable).arrayBuffer());
7531
7531
  })(t);
7532
- F.info("Uploading always-on events with presigned url"), await Yu(() => Xe(e, { body: r, method: "PUT" }), "uploading always-on with presigned url");
7532
+ N.info("Uploading always-on events with presigned url"), await Yu(() => Ze(e, { body: r, method: "PUT" }), "uploading always-on with presigned url");
7533
7533
  }, Ng = async () => {
7534
- if (!Pt()) return;
7535
- const { surveyId: e, responseGroupUuid: t } = vr, r = { responseGroupUuid: t, surveyId: e, index: Mt + 1 };
7536
- F.info("Fetching always-on upload urls", r);
7537
- const s = await Yu(() => Xe(`${Wu}/sdk/1/replayUrls`, { method: "POST", body: JSON.stringify(r), headers: Ue(globalThis.UserLeap) }), "fetching always-on signed urls");
7534
+ if (!_t()) return;
7535
+ const { surveyId: e, responseGroupUuid: t } = vr, r = { responseGroupUuid: t, surveyId: e, index: Ut + 1 };
7536
+ N.info("Fetching always-on upload urls", r);
7537
+ const s = await Yu(() => Ze(`${Wu}/sdk/1/replayUrls`, { method: "POST", body: JSON.stringify(r), headers: Ue(globalThis.UserLeap) }), "fetching always-on signed urls");
7538
7538
  if (!s) return;
7539
7539
  const n = s.json.signedUrls;
7540
- return F.info("Fetched more always-on upload urls", { body: r, urls: n }), n;
7541
- }, Ju = async () => {
7542
- if (ft.length) return ft.shift();
7540
+ return N.info("Fetched more always-on upload urls", { body: r, urls: n }), n;
7541
+ }, qu = async () => {
7542
+ if (gt.length) return gt.shift();
7543
7543
  const e = new Promise((t) => {
7544
7544
  lo.push(t);
7545
7545
  });
7546
7546
  return $u(), e;
7547
7547
  }, Ku = (e) => {
7548
7548
  var n, i, a;
7549
- const t = e.length ? e[e.length - 1].timestamp : Date.now(), r = Mt, s = ((i = (n = globalThis.UserLeap) == null ? void 0 : n.config) == null ? void 0 : i.customMetadata) ?? ((a = globalThis.__cfg) == null ? void 0 : a.customMetadata);
7550
- Mt++, e.push({ timestamp: t, type: ot.Custom, data: { tag: "Sprig_Meta", payload: { ...vr, index: r, visitorId: globalThis.UserLeap.visitorId ?? "", timestamp: t, customMetadata: s } } });
7549
+ const t = e.length ? e[e.length - 1].timestamp : Date.now(), r = Ut, s = ((i = (n = globalThis.UserLeap) == null ? void 0 : n.config) == null ? void 0 : i.customMetadata) ?? ((a = globalThis.__cfg) == null ? void 0 : a.customMetadata);
7550
+ Ut++, e.push({ timestamp: t, type: ot.Custom, data: { tag: "Sprig_Meta", payload: { ...vr, index: r, visitorId: globalThis.UserLeap.visitorId ?? "", timestamp: t, customMetadata: s } } });
7551
7551
  }, Fg = (e, t) => {
7552
- Pt() && !Vu && (e || Ze.length) && (e && Ze.length && (async () => {
7553
- const r = Ze.splice(0);
7552
+ _t() && !Vu && (e || Ke.length) && (e && Ke.length && (async () => {
7553
+ const r = Ke.splice(0);
7554
7554
  if (!co(r)) return;
7555
- F.info("Capturing always-on event array to upload"), Ku(r);
7556
- const s = await Ju();
7557
- s && await qu(s, r);
7558
- })(), Ze.push(t));
7555
+ N.info("Capturing always-on event array to upload"), Ku(r);
7556
+ const s = await qu();
7557
+ s && await Ju(s, r);
7558
+ })(), Ke.push(t));
7559
7559
  };
7560
7560
  var pl;
7561
7561
  (pl = globalThis.addEventListener) == null || pl.call(globalThis, "beforeunload", async () => {
7562
- Vu = !0, Pt() && (F.info("Always On handle page unload"), (() => {
7562
+ Vu = !0, _t() && (N.info("Always On handle page unload"), (() => {
7563
7563
  let e;
7564
- Ze.length && (e = Ze[0].timestamp);
7565
- const t = { disabled: Dt, metadata: vr, uploadUrls: ft, currentIndex: Mt, pendingEventTimestamp: e, expirationTimestamp: Ms };
7566
- F.info("Storing session state on unload", t), re.setItem("sprig.alwayson.info", JSON.stringify(t));
7564
+ Ke.length && (e = Ke[0].timestamp);
7565
+ const t = { disabled: Pt, metadata: vr, uploadUrls: gt, currentIndex: Ut, pendingEventTimestamp: e, expirationTimestamp: Ms };
7566
+ N.info("Storing session state on unload", t), ee.setItem("sprig.alwayson.info", JSON.stringify(t));
7567
7567
  })());
7568
7568
  });
7569
7569
  const Zu = async (e, t) => {
@@ -7574,7 +7574,7 @@ const Zu = async (e, t) => {
7574
7574
  } finally {
7575
7575
  const n = performance.now() - r;
7576
7576
  let i = wr[t];
7577
- i || (i = Ve(t)), i.report(n / 1e3);
7577
+ i || (i = We(t)), i.report(n / 1e3);
7578
7578
  }
7579
7579
  return s;
7580
7580
  }, Xu = (e, t) => {
@@ -7584,7 +7584,7 @@ const Zu = async (e, t) => {
7584
7584
  } finally {
7585
7585
  const s = performance.now() - r;
7586
7586
  let n = wr[t];
7587
- n || (n = Ve(t)), n.report(s / 1e3);
7587
+ n || (n = We(t)), n.report(s / 1e3);
7588
7588
  }
7589
7589
  };
7590
7590
  let Qu = 5e3, xi = 6e4, Ti = 0, lt, Ri = !1, Li = [];
@@ -7593,29 +7593,29 @@ const Bg = (e) => {
7593
7593
  if ((t = e.event) != null && t.includes("Sprig_Scroll")) {
7594
7594
  const i = (n = (s = (r = JSON.parse(e.event)) == null ? void 0 : r.data) == null ? void 0 : s.payload) == null ? void 0 : n.xPath;
7595
7595
  if (!i) return;
7596
- pe.scrollEventUuids[i] = e.uuid;
7596
+ de.scrollEventUuids[i] = e.uuid;
7597
7597
  }
7598
7598
  Li.push(e), Ri || zg();
7599
7599
  }, zg = () => {
7600
7600
  Ri = !0, setTimeout(async () => {
7601
- if (He() || As()) return;
7601
+ if (Ve() || As()) return;
7602
7602
  const e = Li;
7603
7603
  Li = [], Ri = !1, Xu(async () => {
7604
7604
  await (async (t) => {
7605
7605
  const r = t.map((s) => ({ ...s, sessionId: s.sessionId ?? be }));
7606
- if (r.length !== 0) return xe(() => ie.bulkAdd("events", r), "Error storing replay events");
7606
+ if (r.length !== 0) return xe(() => se.bulkAdd("events", r), "Error storing replay events");
7607
7607
  })(e);
7608
7608
  }, "sdk_replay_add_event_batch_seconds");
7609
7609
  }, 500);
7610
7610
  }, jg = (e, t, r) => {
7611
- pe.cleanupInterval = window.setInterval(() => {
7611
+ de.cleanupInterval = window.setInterval(() => {
7612
7612
  const s = Date.now();
7613
7613
  Zu(() => xe(async () => {
7614
- He() || await Promise.all([ie.deleteRowsBefore("events", s - 1e3 * e, (n) => n.expiredAt === void 0 || n.expiredAt < s - 1e3 * e), ie.deleteRowsBefore("chunkUploads", s - 1e3 * t), ie.deleteRowsBefore("pendingCaptures", s - 1e3 * r, (n) => !n.canUpload)]);
7615
- }, "Error deleting table rows"), "sdk_replay_cleanup_seconds"), F.debug("CleanupComplete");
7614
+ Ve() || await Promise.all([se.deleteRowsBefore("events", s - 1e3 * e, (n) => n.expiredAt === void 0 || n.expiredAt < s - 1e3 * e), se.deleteRowsBefore("chunkUploads", s - 1e3 * t), se.deleteRowsBefore("pendingCaptures", s - 1e3 * r, (n) => !n.canUpload)]);
7615
+ }, "Error deleting table rows"), "sdk_replay_cleanup_seconds"), N.debug("CleanupComplete");
7616
7616
  }, 3e4);
7617
7617
  }, Wg = () => {
7618
- pe.pendingCheckInterval = window.setInterval(async () => {
7618
+ de.pendingCheckInterval = window.setInterval(async () => {
7619
7619
  xe(async () => {
7620
7620
  await Oi();
7621
7621
  }, "Error initiating pending captures");
@@ -7627,45 +7627,45 @@ const Oi = async (e = !1) => {
7627
7627
  In = !0;
7628
7628
  const t = parseInt(lt ?? "0");
7629
7629
  if (t === 0) return;
7630
- const r = await ie.getPendingCaptures({ beforePresent: !0, isBeforeType: e }), s = await ie.openDB();
7631
- await Promise.all(r.map(async (n) => (await s.delete("pendingCaptures", n.uuid), rd(n.captureParams, n.canUpload)))), lt = (t - r.length).toString(), re.setItem("sprig.pendingCount", lt);
7630
+ const r = await se.getPendingCaptures({ beforePresent: !0, isBeforeType: e }), s = await se.openDB();
7631
+ await Promise.all(r.map(async (n) => (await s.delete("pendingCaptures", n.uuid), rd(n.captureParams, n.canUpload)))), lt = (t - r.length).toString(), ee.setItem("sprig.pendingCount", lt);
7632
7632
  } finally {
7633
7633
  In = !1;
7634
7634
  }
7635
7635
  }, Vg = async (e, t, r, s, n) => {
7636
- const i = Math.min(e + n, r), a = await Zu(() => ie.getEventsBetween(e, i), "sdk_replay_get_events_between_seconds");
7637
- if (!(a != null && a.length)) return F.debug("NoEventsFound"), { validStartFound: s, events: [] };
7636
+ const i = Math.min(e + n, r), a = await Zu(() => se.getEventsBetween(e, i), "sdk_replay_get_events_between_seconds");
7637
+ if (!(a != null && a.length)) return N.debug("NoEventsFound"), { validStartFound: s, events: [] };
7638
7638
  if (!s) {
7639
- F.debug("ValidStartSearch");
7639
+ N.debug("ValidStartSearch");
7640
7640
  let o = -1;
7641
7641
  return a == null || a.forEach((l, c) => {
7642
7642
  if (!l.isValidStart) return;
7643
7643
  const u = l.timestamp <= t;
7644
7644
  (o < 0 || u) && (o = c);
7645
- }), o < 0 ? (F.debug("ValidStartNotFound"), { validStartFound: s, events: [] }) : { validStartFound: !0, events: a == null ? void 0 : a.slice(o) };
7645
+ }), o < 0 ? (N.debug("ValidStartNotFound"), { validStartFound: s, events: [] }) : { validStartFound: !0, events: a == null ? void 0 : a.slice(o) };
7646
7646
  }
7647
7647
  return { validStartFound: s, events: a };
7648
7648
  }, ed = (e) => Promise.all(e.map(async (t) => {
7649
7649
  const r = await (async (s) => Au.execute(async () => {
7650
7650
  var a;
7651
- F.info("UploadChunkStart", { chunkIndex: s.chunkIndex, surveyId: s.surveyId });
7652
- const n = await Xe(s.uploadUrl, { body: s.data, method: "PUT" });
7653
- F.http("UploadChunkEnd", { url: s.uploadUrl, method: "PUT", status_code: n.status, reason: n.statusText ?? "OK", chunkIndex: s.chunkIndex, surveyId: s.surveyId });
7651
+ N.info("UploadChunkStart", { chunkIndex: s.chunkIndex, surveyId: s.surveyId });
7652
+ const n = await Ze(s.uploadUrl, { body: s.data, method: "PUT" });
7653
+ N.http("UploadChunkEnd", { url: s.uploadUrl, method: "PUT", status_code: n.status, reason: n.statusText ?? "OK", chunkIndex: s.chunkIndex, surveyId: s.surveyId });
7654
7654
  const i = (a = n.headers) == null ? void 0 : a.get("ETag");
7655
7655
  if (!i) throw new Error(`Upload response did not include etag for upload ${s.uploadId}, part ${s.chunkIndex}`);
7656
7656
  return i;
7657
7657
  }))(t);
7658
- return await ie.updatePartial("chunkUploads", t.uuid, { data: null, etag: r, status: "UploadComplete" }), t.uploadId;
7658
+ return await se.updatePartial("chunkUploads", t.uuid, { data: null, etag: r, status: "UploadComplete" }), t.uploadId;
7659
7659
  })), td = async (e) => {
7660
- const t = await ie.getChunkUploadsByStatus({ status: "UploadComplete", uploadId: e });
7661
- if (!(t != null && t.length)) return void F.info("NoChunksForUpload", { uploadId: e });
7660
+ const t = await se.getChunkUploadsByStatus({ status: "UploadComplete", uploadId: e });
7661
+ if (!(t != null && t.length)) return void N.info("NoChunksForUpload", { uploadId: e });
7662
7662
  const r = t.reduce((i, a) => (i.find((o) => o.chunkIndex === a.chunkIndex) || i.push(a), i), []);
7663
7663
  r.sort((i, a) => i.chunkIndex - a.chunkIndex);
7664
7664
  const s = r.map((i) => ({ ETag: i.etag, PartNumber: i.chunkIndex })).filter((i) => i.ETag !== null), n = r[0];
7665
- await Mu({ apiUrl: n.apiUrl, surveyId: n.surveyId, uploadId: e, responseGroupUuid: n.responseGroupId, etags: s, headers: n.completeUploadHeaders, replayDuration: n.replayDuration }), await ie.deleteChunkUploads("UploadComplete", e);
7665
+ await Mu({ apiUrl: n.apiUrl, surveyId: n.surveyId, uploadId: e, responseGroupUuid: n.responseGroupId, etags: s, headers: n.completeUploadHeaders, replayDuration: n.replayDuration }), await se.deleteChunkUploads("UploadComplete", e);
7666
7666
  }, Hg = () => {
7667
7667
  xe(async () => {
7668
- const e = await ie.getChunkUploadsByStatus({ sessionId: be, status: "ReadyForUpload" });
7668
+ const e = await se.getChunkUploadsByStatus({ sessionId: be, status: "ReadyForUpload" });
7669
7669
  if (!(e != null && e.length)) return;
7670
7670
  const t = await ed(e);
7671
7671
  t != null && t.length && await Promise.all(t.map((r) => {
@@ -7681,7 +7681,7 @@ const Oi = async (e = !1) => {
7681
7681
  let c = !1, u = !1, [d, p] = [0, 0], f = [];
7682
7682
  for (let h = s - 35e3; h < n; h += xi) {
7683
7683
  if ({ validStartFound: u, events: f } = await Vg(h, s, n, u, xi), !(f != null && f.length)) {
7684
- F.debug("NoEventsFound");
7684
+ N.debug("NoEventsFound");
7685
7685
  continue;
7686
7686
  }
7687
7687
  d === 0 && (d = f[0].timestamp), p = f[f.length - 1].timestamp;
@@ -7692,148 +7692,148 @@ const Oi = async (e = !1) => {
7692
7692
  l.write(g);
7693
7693
  }, "sdk_replay_compression_seconds"), c = !0;
7694
7694
  }
7695
- if (p - d < Qu) return F.debug("ReplayTooShort"), null;
7695
+ if (p - d < Qu) return N.debug("ReplayTooShort"), null;
7696
7696
  const w = i.encode("]");
7697
7697
  return l.write(w), l.close(), a = new Uint8Array(await new Response(o.readable).arrayBuffer()), a;
7698
7698
  })(r - e, r);
7699
7699
  }, cl = async (e) => {
7700
7700
  const { surveyId: t, responseGroupId: r, visitorId: s, apiUrl: n, completeUploadHeaders: i, replayParams: a, triggerTimestamp: o } = e, l = await Gg(1e3 * a.replayDurationSeconds, o);
7701
- if (!(l != null && l.length)) return void F.info("FileDataEmpty", { surveyId: t });
7701
+ if (!(l != null && l.length)) return void N.info("FileDataEmpty", { surveyId: t });
7702
7702
  const c = ((d, p, f) => {
7703
7703
  const w = d.length, h = 1024 * p * 1024, C = Math.ceil(w / f), m = Math.max(h, C), g = [];
7704
7704
  let v = 0;
7705
7705
  for (; v < w; ) g.push(d.slice(v, v + m)), v += m;
7706
7706
  return g;
7707
7707
  })(l, a.minimumChunkSizeMb, a.signedUrls.length), u = await Promise.all(c.map(async (d, p) => {
7708
- const f = Ut(), w = { apiUrl: n, chunkIndex: p + 1, completeUploadHeaders: i, etag: null, responseGroupId: r, status: "ReadyForUpload", surveyId: t, timestamp: o, totalChunks: c.length, data: d, uploadId: a.uploadId, uploadUrl: a.signedUrls[p].url, uuid: f, visitorId: s };
7709
- return await (await ie.openDB()).add("chunkUploads", { ...w, sessionId: w.sessionId ?? be }), w;
7708
+ const f = Dt(), w = { apiUrl: n, chunkIndex: p + 1, completeUploadHeaders: i, etag: null, responseGroupId: r, status: "ReadyForUpload", surveyId: t, timestamp: o, totalChunks: c.length, data: d, uploadId: a.uploadId, uploadUrl: a.signedUrls[p].url, uuid: f, visitorId: s };
7709
+ return await (await se.openDB()).add("chunkUploads", { ...w, sessionId: w.sessionId ?? be }), w;
7710
7710
  }));
7711
7711
  await (async (d, p) => {
7712
7712
  await ed(p), await Promise.all(d.map((f) => td(f)));
7713
7713
  })([a.uploadId], u);
7714
7714
  }, rd = async (e, t) => {
7715
- if (He()) return F.debug("ReplayDisabled-ScheduleOrCapture");
7715
+ if (Ve()) return N.debug("ReplayDisabled-ScheduleOrCapture");
7716
7716
  const { isHeatmap: r, isStandalone: s, replayParams: n, triggerTimestamp: i, responseGroupId: a } = e, o = async () => {
7717
- setTimeout(() => j.removeListener(B.QuestionAnswered, o), 0), xe(async () => {
7718
- n.replayDurationType === "before" ? await cl(e) : await ie.markPendingCaptureToCanUpload(a);
7717
+ setTimeout(() => W.removeListener(z.QuestionAnswered, o), 0), xe(async () => {
7718
+ n.replayDurationType === "before" ? await cl(e) : await se.markPendingCaptureToCanUpload(a);
7719
7719
  }, "Error in schedule/capture callback");
7720
7720
  };
7721
7721
  xe(async () => {
7722
7722
  if (n.replayDurationType === "after" || n.replayDurationType === "beforeAndAfter")
7723
- return !s && !r && j.on(B.QuestionAnswered, o), void await nd(e);
7723
+ return !s && !r && W.on(z.QuestionAnswered, o), void await nd(e);
7724
7724
  if (s || r || t) await cl(e), r && $g();
7725
7725
  else {
7726
7726
  const l = 35 + n.replayDurationSeconds, c = i - 1e3 * l, u = i;
7727
- await ie.updateEventsExpiredAt(c, u, n.expirationTimeLimitMinutes), j.on(B.QuestionAnswered, o);
7727
+ await se.updateEventsExpiredAt(c, u, n.expirationTimeLimitMinutes), W.on(z.QuestionAnswered, o);
7728
7728
  }
7729
7729
  }, "Error in scheduling/capturing replay");
7730
7730
  }, $g = async () => {
7731
- parseInt(lt ?? "0") || re.removeItem("sprig.isCapturingHeatmap"), re.getItem("sprig.teardownAfterCapture") && (ju(), sd(), re.removeItem("sprig.teardownAfterCapture"));
7732
- }, sd = async () => He() ? F.debug("ReplayDisabled-ClearData") : Promise.all([ie.deleteBySessionId("events", be), ie.deleteBySessionId("pendingCaptures", be)]).catch((e) => {
7731
+ parseInt(lt ?? "0") || ee.removeItem("sprig.isCapturingHeatmap"), ee.getItem("sprig.teardownAfterCapture") && (ju(), sd(), ee.removeItem("sprig.teardownAfterCapture"));
7732
+ }, sd = async () => Ve() ? N.debug("ReplayDisabled-ClearData") : Promise.all([se.deleteBySessionId("events", be), se.deleteBySessionId("pendingCaptures", be)]).catch((e) => {
7733
7733
  br("Error clearing user replay data", e);
7734
7734
  }), nd = async (e) => {
7735
- if (He()) return;
7735
+ if (Ve()) return;
7736
7736
  const { isHeatmap: t, surveyId: r } = e, s = { ...e, replayParams: { ...e.replayParams } };
7737
7737
  e.replayParams.replayDurationType === "beforeAndAfter" && (s.replayParams.replayDurationSeconds *= 2), s.replayParams.replayDurationType = "before";
7738
7738
  const n = e.triggerTimestamp + 1e3 * e.replayParams.replayDurationSeconds;
7739
7739
  s.triggerTimestamp = n;
7740
- const i = { canUpload: !1, captureParams: s, sessionId: be, targetTimestamp: n, timestamp: Date.now(), uuid: Ut() }, { added: a } = await ie.tryAddPendingCaptureForSurvey({ surveyId: r, record: i });
7741
- a ? (lt = (parseInt(lt ?? "0") + 1).toString(), re.setItem("sprig.pendingCount", lt), t && (Ei(), re.setItem("sprig.isCapturingHeatmap", "true"), Ti = Date.now(), pe.inactivityInterval || (pe.inactivityInterval = window.setInterval(() => {
7740
+ const i = { canUpload: !1, captureParams: s, sessionId: be, targetTimestamp: n, timestamp: Date.now(), uuid: Dt() }, { added: a } = await se.tryAddPendingCaptureForSurvey({ surveyId: r, record: i });
7741
+ a ? (lt = (parseInt(lt ?? "0") + 1).toString(), ee.setItem("sprig.pendingCount", lt), t && (Ei(), ee.setItem("sprig.isCapturingHeatmap", "true"), Ti = Date.now(), de.inactivityInterval || (de.inactivityInterval = window.setInterval(() => {
7742
7742
  var o;
7743
- o = Ti, Date.now() - o >= 3e4 && xe(() => ie.markPendingHeatmapsReady(), "Error in heatmap inactivity");
7744
- }, 1e3)))) : F.info("PendingCaptureExists", { surveyId: r });
7743
+ o = Ti, Date.now() - o >= 3e4 && xe(() => se.markPendingHeatmapsReady(), "Error in heatmap inactivity");
7744
+ }, 1e3)))) : N.info("PendingCaptureExists", { surveyId: r });
7745
7745
  }, Yg = Object.freeze(Object.defineProperty({ __proto__: null, RecordEvent: (e) => {
7746
- Ye("Sprig_TrackEvent", e);
7746
+ $e("Sprig_TrackEvent", e);
7747
7747
  }, RecordPageView: (e) => {
7748
- e.description && (e.description = ao(e.description)), Ye("Sprig_PageView", e);
7748
+ e.description && (e.description = ao(e.description)), $e("Sprig_PageView", e);
7749
7749
  }, RecordSurveyShown: (e) => {
7750
- Ye("Sprig_ShowSurvey", e);
7750
+ $e("Sprig_ShowSurvey", e);
7751
7751
  }, _completeSessionReplay: async ({ surveyId: e, responseGroupUuid: t, eventDigest: r, headers: s }) => {
7752
7752
  if (!e || !t) return !1;
7753
7753
  const n = globalThis.UserLeap._API_URL, i = await Mu({ surveyId: e, responseGroupUuid: t, eventDigest: r, apiUrl: n, headers: s }, !0);
7754
7754
  return !(i != null && i.error);
7755
- }, checkPendingHeatmapsUrl: () => He() ? F.debug("ReplayDisabled-PendingHeatmaps") : xe(async () => {
7756
- const e = (await ie.getPendingCaptures({ isHeatmap: !0 })).map((t) => ({ eventId: t.captureParams.eventId, uuid: t.uuid })).filter(({ eventId: t }) => !pu(t)).map(({ uuid: t }) => t);
7757
- return F.info("PendingHeatmapsToComplete", { count: e.length }), e.length && (await ie.markPendingHeatmapsReady(e), F.info("MarkedPendingHeatmapsReady")), e.length;
7755
+ }, checkPendingHeatmapsUrl: () => Ve() ? N.debug("ReplayDisabled-PendingHeatmaps") : xe(async () => {
7756
+ const e = (await se.getPendingCaptures({ isHeatmap: !0 })).map((t) => ({ eventId: t.captureParams.eventId, uuid: t.uuid })).filter(({ eventId: t }) => !pu(t)).map(({ uuid: t }) => t);
7757
+ return N.info("PendingHeatmapsToComplete", { count: e.length }), e.length && (await se.markPendingHeatmapsReady(e), N.info("MarkedPendingHeatmapsReady")), e.length;
7758
7758
  }, "Error marking pending heatmaps ready"), clearUserReplayData: sd, disableRecording: br, initializeReplay: async ({ maxReplayDurationSeconds: e, maxInflightRequests: t = 2, replaySettings: r, teardownAfter: s = !1, apiUrl: n, alwaysOnConfig: i }) => {
7759
7759
  if (i && Ag({ apiUrl: n, config: i, triggerSnapshot: () => {
7760
7760
  Ei();
7761
- } }), lt = re.getItem("sprig.pendingCount"), pe.isRecording) return;
7762
- if (s && re.setItem("sprig.teardownAfterCapture", "true"), He()) return F.debug("ReplayDisabled");
7761
+ } }), lt = ee.getItem("sprig.pendingCount"), de.isRecording) return;
7762
+ if (s && ee.setItem("sprig.teardownAfterCapture", "true"), Ve()) return N.debug("ReplayDisabled");
7763
7763
  if (await (async () => {
7764
7764
  var l;
7765
7765
  if (!zu()) return !0;
7766
7766
  if ((l = globalThis.navigator.storage) != null && l.estimate) try {
7767
7767
  const { quota: c = 0, usage: u = 0 } = await globalThis.navigator.storage.estimate(), d = (c - u) / 1024 ** 3;
7768
- return F.info("Storage", { availableGb: d }), d < 0.5;
7768
+ return N.info("Storage", { availableGb: d }), d < 0.5;
7769
7769
  } catch {
7770
7770
  return !0;
7771
7771
  }
7772
7772
  return !1;
7773
- })()) return F.debug("IDBNotSupported"), ki();
7773
+ })()) return N.debug("IDBNotSupported"), ki();
7774
7774
  try {
7775
- const l = await ie.openDB();
7776
- F.info("DBVersion", { version: l.version });
7775
+ const l = await se.openDB();
7776
+ N.info("DBVersion", { version: l.version });
7777
7777
  } catch (l) {
7778
- return F.error("ReplayOpenErr", { name: l.name }), l.name === "VersionError" && ie.deleteDB(), ki();
7778
+ return N.error("ReplayOpenErr", { name: l.name }), l.name === "VersionError" && se.deleteDB(), ki();
7779
7779
  }
7780
7780
  xe(async () => {
7781
7781
  await Oi(!0);
7782
7782
  }, "Error uploading ready pending captures");
7783
- const a = Pt() ? 30 : 0, o = Math.max(e ?? 0, a);
7784
- if (!o) return F.debug("MissingDuration");
7785
- F.debug("ReplayInit"), await xe(async () => {
7783
+ const a = _t() ? 30 : 0, o = Math.max(e ?? 0, a);
7784
+ if (!o) return N.debug("MissingDuration");
7785
+ N.debug("ReplayInit"), await xe(async () => {
7786
7786
  var l;
7787
7787
  r != null && r.minDuration && (Qu = r.minDuration), r != null && r.batchDuration && (xi = r.batchDuration), l = t, Au.setLimit(l), Hg(), jg(o + 35, 1800, o + 35), Wg();
7788
7788
  const c = window.UserLeap.replayLibraryURL ?? "https://cdn.sprig.com/dependencies/record.min.js", u = window.rrwebRecord;
7789
- if (!u) return F.error("RecordScriptFailed");
7789
+ if (!u) return N.error("RecordScriptFailed");
7790
7790
  let d = !0, p = 0;
7791
7791
  const f = { checkoutEveryNms: 3e4, sampling: { input: "last", scroll: 250, media: 800 }, ...r, mutationQueueEnabled: r == null ? void 0 : r.enableMutationQueue };
7792
7792
  var w, h;
7793
- pe.stopRecording = u({ emit: (C, m) => {
7794
- if (C.type === ot.Custom && (Ti = Date.now()), He() || As()) return;
7793
+ de.stopRecording = u({ emit: (C, m) => {
7794
+ if (C.type === ot.Custom && (Ti = Date.now()), Ve() || As()) return;
7795
7795
  if (m && C.type === ot.Meta) p = performance.now();
7796
7796
  else if (m && p && C.type === ot.FullSnapshot) {
7797
7797
  const v = performance.now() - p;
7798
7798
  bu("sdk_replay_snapshot_seconds", v / 1e3);
7799
7799
  }
7800
7800
  const g = d || !!m && C.type === ot.Meta;
7801
- d = !1, Fg(g, C), Bg({ uuid: Ut(), event: JSON.stringify(C), isValidStart: g, timestamp: Date.now() });
7802
- }, ...f }), pe.isRecording = !!pe.stopRecording, pe.isRecording && (((C, m) => {
7801
+ d = !1, Fg(g, C), Bg({ uuid: Dt(), event: JSON.stringify(C), isValidStart: g, timestamp: Date.now() });
7802
+ }, ...f }), de.isRecording = !!de.stopRecording, de.isRecording && (((C, m) => {
7803
7803
  window.addEventListener("message", (g) => {
7804
7804
  var v;
7805
7805
  g.data.type === yg && (oo.push({ source: g.source, origin: g.origin }), (v = g.source) == null || v.postMessage({ type: wg, settings: C, replayLibraryUrl: m }, { targetOrigin: g.origin }));
7806
7806
  });
7807
- })(f, c), j.on("survey.complete", (C) => {
7807
+ })(f, c), W.on("survey.complete", (C) => {
7808
7808
  var m;
7809
- m = { id: C, userAgent: window.navigator.userAgent }, Ye("Sprig_SubmitSurvey", m);
7810
- }), w = Ye, h = Rg, Os || (Te = w, ds = h, window.addEventListener("click", Nu, We), window.addEventListener("pointerdown", Bu, We), window.addEventListener("mousedown", Fu, We), window.addEventListener("keydown", Pu, We), window.addEventListener("scroll", _u, We), Os = !0, xg(), Tg()));
7809
+ m = { id: C, userAgent: window.navigator.userAgent }, $e("Sprig_SubmitSurvey", m);
7810
+ }), w = $e, h = Rg, Os || (Te = w, ds = h, window.addEventListener("click", Nu, je), window.addEventListener("pointerdown", Bu, je), window.addEventListener("mousedown", Fu, je), window.addEventListener("keydown", Pu, je), window.addEventListener("scroll", _u, je), Os = !0, xg(), Tg()));
7811
7811
  }, "Error initializing replay");
7812
- }, isReplayPaused: As, isReplayRecording: () => pe.isRecording, recordFullSnapshot: Ei, recordReplayPaused: () => {
7813
- Ye("Sprig_ReplayPaused", { timestamp: Date.now() }), re.setItem("sprig.isReplayPaused", "true");
7812
+ }, isReplayPaused: As, isReplayRecording: () => de.isRecording, recordFullSnapshot: Ei, recordReplayPaused: () => {
7813
+ $e("Sprig_ReplayPaused", { timestamp: Date.now() }), ee.setItem("sprig.isReplayPaused", "true");
7814
7814
  }, recordReplayResumed: () => {
7815
- re.removeItem("sprig.isReplayPaused"), Ye("Sprig_ReplayResumed", { timestamp: Date.now() });
7815
+ ee.removeItem("sprig.isReplayPaused"), $e("Sprig_ReplayResumed", { timestamp: Date.now() });
7816
7816
  }, scheduleCapture: nd, scheduleOrCaptureReplay: rd, tryReplayAction: xe, uploadReadyPendingCaptures: Oi }, Symbol.toStringTag, { value: "Module" }));
7817
7817
  ((e) => {
7818
- ne.replay = e;
7819
- })(Yg), window.UpChunk = { createUpload: Hd }, window.rrwebRecord = qt;
7818
+ re.replay = e;
7819
+ })(Yg), window.UpChunk = { createUpload: Hd }, window.rrwebRecord = Jt;
7820
7820
  export {
7821
7821
  Kg as A,
7822
7822
  Af as C,
7823
- Jg as D,
7823
+ qg as D,
7824
7824
  Xg as E,
7825
- B as S,
7826
- Xe as a,
7827
- F as b,
7825
+ z as S,
7826
+ Ze as a,
7827
+ N as b,
7828
7828
  Hf as c,
7829
- Be as d,
7830
- j as e,
7831
- Ss as f,
7829
+ Fe as d,
7830
+ W as e,
7831
+ ty as f,
7832
7832
  ey as g,
7833
- Zg as h,
7834
- ty as i,
7835
- to as j,
7836
- rt as k,
7833
+ Ss as h,
7834
+ rt as i,
7835
+ Zg as j,
7836
+ to as k,
7837
7837
  Ig as l,
7838
7838
  Qg as m,
7839
7839
  ny as n,
@@ -7841,5 +7841,5 @@ export {
7841
7841
  sy as p,
7842
7842
  ry as r,
7843
7843
  su as s,
7844
- Ut as v
7844
+ Dt as v
7845
7845
  };