@sprig-technologies/sprig-bundled 2.41.0 → 2.41.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/conversational-styles-41oiRRxR.cjs +1 -0
- package/dist/conversational-styles-Cw5d-ccF.js +4 -0
- package/dist/{conversational-ui-BMaVlQM7.js → conversational-ui-B9H7uNQs.js} +277 -266
- package/dist/conversational-ui-IgSB2b9B.cjs +658 -0
- package/dist/{getAttributedUrl-CuAx8r1V.cjs → getAttributedUrl-DPVLIzlh.cjs} +1 -1
- package/dist/{getAttributedUrl-BI712lA1.js → getAttributedUrl-DxNZ8ZsR.js} +2 -2
- package/dist/{index-YBebm7NT.js → index-BiIngDfi.js} +373 -373
- package/dist/index-CL3rX0v3.js +706 -0
- package/dist/{index-DZZhe9UA.cjs → index-DEIb7Tgo.cjs} +15 -15
- package/dist/index-QboanN7x.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/view-DunMtls8.cjs +1 -0
- package/dist/{view-BHOd3THT.js → view-E1bmiI1s.js} +302 -300
- package/package.json +1 -1
- package/dist/conversational-styles-BiL7hMhj.js +0 -4
- package/dist/conversational-styles-DlhTFTL6.cjs +0 -1
- package/dist/conversational-ui-Dfwwfe2B.cjs +0 -658
- package/dist/index-CEpl_fRY.cjs +0 -1
- package/dist/index-cT-GmgDY.js +0 -712
- package/dist/view-Btk1gSAI.cjs +0 -1
|
@@ -116,7 +116,7 @@ function ul(e, t) {
|
|
|
116
116
|
function dl(e) {
|
|
117
117
|
return typeof e != "object" || e === null ? String(e) : Object.prototype.toString.call(e);
|
|
118
118
|
}
|
|
119
|
-
var
|
|
119
|
+
var Me = typeof window < "u" ? window : typeof self < "u" ? self : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : void 0, ut = class {
|
|
120
120
|
constructor(e, t) {
|
|
121
121
|
this.code = e, this.message = t;
|
|
122
122
|
}
|
|
@@ -129,7 +129,7 @@ var Ue = typeof window < "u" ? window : typeof self < "u" ? self : typeof global
|
|
|
129
129
|
} catch {
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
}, Od = new ut("W01", "Unable to initialize event under dispatching."), Ad = new ut("W02", "Assigning any falsy value to 'cancelBubble' property has no effect."), Md = new ut("W03", "Assigning any truthy value to 'returnValue' property has no effect."), Ud = new ut("W04", "Unable to preventDefault on non-cancelable events."), Td = new ut("W05", "Unable to preventDefault inside passive event listener invocation."), Dd = new ut("W06", "An event listener wasn't added because it has been added already: %o, %o"), Kn = new ut("W07", "The %o option value was abandoned because the event listener wasn't added as duplicated."), uo = new ut("W08", "The 'callback' argument must be a function or an object that has 'handleEvent' method: %o"),
|
|
132
|
+
}, Od = new ut("W01", "Unable to initialize event under dispatching."), Ad = new ut("W02", "Assigning any falsy value to 'cancelBubble' property has no effect."), Md = new ut("W03", "Assigning any truthy value to 'returnValue' property has no effect."), Ud = new ut("W04", "Unable to preventDefault on non-cancelable events."), Td = new ut("W05", "Unable to preventDefault inside passive event listener invocation."), Dd = new ut("W06", "An event listener wasn't added because it has been added already: %o, %o"), Kn = new ut("W07", "The %o option value was abandoned because the event listener wasn't added as duplicated."), uo = 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 po;
|
|
135
135
|
}
|
|
@@ -230,10 +230,10 @@ function he(e, t = "this") {
|
|
|
230
230
|
function go(e) {
|
|
231
231
|
e.inPassiveListenerFlag ? Td.warn() : e.cancelable ? e.canceledFlag = !0 : Ud.warn();
|
|
232
232
|
}
|
|
233
|
-
Object.defineProperty(
|
|
234
|
-
var Zn = Object.getOwnPropertyNames(
|
|
235
|
-
for (let e = 0; e < Zn.length; ++e) Zn[e] !== "constructor" && Object.defineProperty(
|
|
236
|
-
|
|
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 Zn = Object.getOwnPropertyNames(Ye.prototype);
|
|
235
|
+
for (let e = 0; e < Zn.length; ++e) Zn[e] !== "constructor" && Object.defineProperty(Ye.prototype, Zn[e], { enumerable: !0 });
|
|
236
|
+
Me !== void 0 && Me.Event !== void 0 && Object.setPrototypeOf(Ye.prototype, Me.Event.prototype);
|
|
237
237
|
var vt, yo = { 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 wo(e) {
|
|
239
239
|
let t = Object.keys(yo);
|
|
@@ -242,7 +242,7 @@ function wo(e) {
|
|
|
242
242
|
Object.defineProperty(e, n, { get: () => s, configurable: !0, enumerable: !0 });
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
|
-
var fn = class extends
|
|
245
|
+
var fn = class extends Ye {
|
|
246
246
|
static wrap(e) {
|
|
247
247
|
return new (hl(e))(e);
|
|
248
248
|
}
|
|
@@ -256,7 +256,7 @@ var fn = class extends qe {
|
|
|
256
256
|
}
|
|
257
257
|
stopPropagation() {
|
|
258
258
|
super.stopPropagation();
|
|
259
|
-
let { original: e } =
|
|
259
|
+
let { original: e } = nt(this);
|
|
260
260
|
"stopPropagation" in e && e.stopPropagation();
|
|
261
261
|
}
|
|
262
262
|
get cancelBubble() {
|
|
@@ -264,12 +264,12 @@ var fn = class extends qe {
|
|
|
264
264
|
}
|
|
265
265
|
set cancelBubble(e) {
|
|
266
266
|
super.cancelBubble = e;
|
|
267
|
-
let { original: t } =
|
|
267
|
+
let { original: t } = nt(this);
|
|
268
268
|
"cancelBubble" in t && (t.cancelBubble = e);
|
|
269
269
|
}
|
|
270
270
|
stopImmediatePropagation() {
|
|
271
271
|
super.stopImmediatePropagation();
|
|
272
|
-
let { original: e } =
|
|
272
|
+
let { original: e } = nt(this);
|
|
273
273
|
"stopImmediatePropagation" in e && e.stopImmediatePropagation();
|
|
274
274
|
}
|
|
275
275
|
get returnValue() {
|
|
@@ -277,20 +277,20 @@ var fn = class extends qe {
|
|
|
277
277
|
}
|
|
278
278
|
set returnValue(e) {
|
|
279
279
|
super.returnValue = e;
|
|
280
|
-
let { original: t } =
|
|
280
|
+
let { original: t } = nt(this);
|
|
281
281
|
"returnValue" in t && (t.returnValue = e);
|
|
282
282
|
}
|
|
283
283
|
preventDefault() {
|
|
284
284
|
super.preventDefault();
|
|
285
|
-
let { original: e } =
|
|
285
|
+
let { original: e } = nt(this);
|
|
286
286
|
"preventDefault" in e && e.preventDefault();
|
|
287
287
|
}
|
|
288
288
|
get timeStamp() {
|
|
289
|
-
let { original: e } =
|
|
289
|
+
let { original: e } = nt(this);
|
|
290
290
|
return "timeStamp" in e ? e.timeStamp : super.timeStamp;
|
|
291
291
|
}
|
|
292
292
|
}, pl = /* @__PURE__ */ new WeakMap();
|
|
293
|
-
function
|
|
293
|
+
function nt(e) {
|
|
294
294
|
let t = pl.get(e);
|
|
295
295
|
return Ai(t != null, "'this' is expected an Event object, but got", e), t;
|
|
296
296
|
}
|
|
@@ -310,10 +310,10 @@ function hl(e) {
|
|
|
310
310
|
function ml(e, t) {
|
|
311
311
|
let r = Object.getOwnPropertyDescriptor(e, t);
|
|
312
312
|
return { get() {
|
|
313
|
-
let n =
|
|
313
|
+
let n = nt(this).original, s = n[t];
|
|
314
314
|
return typeof s == "function" ? s.bind(n) : s;
|
|
315
315
|
}, set(n) {
|
|
316
|
-
|
|
316
|
+
nt(this).original[t] = n;
|
|
317
317
|
}, configurable: r.configurable, enumerable: r.enumerable };
|
|
318
318
|
}
|
|
319
319
|
function fl(e) {
|
|
@@ -357,7 +357,7 @@ function yl(e, t, r = !1) {
|
|
|
357
357
|
s.flags |= 8;
|
|
358
358
|
}(n), n.signal && n.signal.removeEventListener("abort", n.signalListener), e.cow && !r ? (e.cow = !1, e.listeners = e.listeners.filter((s, i) => i !== t), !1) : (e.listeners.splice(t, 1), !0);
|
|
359
359
|
}
|
|
360
|
-
gn.set(Object.prototype, fn),
|
|
360
|
+
gn.set(Object.prototype, fn), Me !== void 0 && Me.Event !== void 0 && gn.set(Me.Event.prototype, fn);
|
|
361
361
|
var Dn = class {
|
|
362
362
|
constructor() {
|
|
363
363
|
vl.set(this, /* @__PURE__ */ Object.create(null));
|
|
@@ -392,8 +392,8 @@ var Dn = class {
|
|
|
392
392
|
dispatchEvent(e) {
|
|
393
393
|
let t = Xn(this)[String(e.type)];
|
|
394
394
|
if (t == null) return !0;
|
|
395
|
-
let r = e instanceof
|
|
396
|
-
if (n.dispatchFlag) throw s = "This event has been in dispatching.",
|
|
395
|
+
let r = e instanceof Ye ? e : fn.wrap(e), n = he(r, "event");
|
|
396
|
+
if (n.dispatchFlag) throw s = "This event has been in dispatching.", Me.DOMException ? new Me.DOMException(s, "InvalidStateError") : (vt == null && (vt = class wl extends Error {
|
|
397
397
|
constructor(a) {
|
|
398
398
|
super(a), Error.captureStackTrace && Error.captureStackTrace(this, wl);
|
|
399
399
|
}
|
|
@@ -429,7 +429,7 @@ function Io(e) {
|
|
|
429
429
|
}
|
|
430
430
|
var Qn = Object.getOwnPropertyNames(Dn.prototype);
|
|
431
431
|
for (let e = 0; e < Qn.length; ++e) Qn[e] !== "constructor" && Object.defineProperty(Dn.prototype, Qn[e], { enumerable: !0 });
|
|
432
|
-
|
|
432
|
+
Me !== void 0 && Me.EventTarget !== void 0 && Object.setPrototypeOf(Dn.prototype, Me.EventTarget.prototype);
|
|
433
433
|
var Co, Nd = ((e, t, r) => (r = e != null ? vd(Id(e)) : {}, ((n, s, i, a) => {
|
|
434
434
|
if (s && typeof s == "object" || typeof s == "function") for (let o of Sd(s)) !Cd.call(n, o) && o !== i && co(n, o, { get: () => s[o], enumerable: !(a = bd(s, o)) || a.enumerable });
|
|
435
435
|
return n;
|
|
@@ -633,7 +633,7 @@ function Mi(e) {
|
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
635
|
const es = {};
|
|
636
|
-
function
|
|
636
|
+
function Qe(e, t, r) {
|
|
637
637
|
var n;
|
|
638
638
|
const s = `${e}.${String(r)}`;
|
|
639
639
|
if (es[s]) return es[s].call(t);
|
|
@@ -648,27 +648,27 @@ function Ro(e, t, r) {
|
|
|
648
648
|
return typeof s != "function" ? t[r] : (ts[n] = s, s.bind(t));
|
|
649
649
|
}
|
|
650
650
|
const we = { childNodes: function(e) {
|
|
651
|
-
return
|
|
651
|
+
return Qe("Node", e, "childNodes");
|
|
652
652
|
}, parentNode: function(e) {
|
|
653
|
-
return
|
|
653
|
+
return Qe("Node", e, "parentNode");
|
|
654
654
|
}, parentElement: function(e) {
|
|
655
|
-
return
|
|
655
|
+
return Qe("Node", e, "parentElement");
|
|
656
656
|
}, textContent: function(e) {
|
|
657
|
-
return
|
|
657
|
+
return Qe("Node", e, "textContent");
|
|
658
658
|
}, contains: function(e, t) {
|
|
659
659
|
return Ro("Node", e, "contains")(t);
|
|
660
660
|
}, getRootNode: function(e) {
|
|
661
661
|
return Ro("Node", e, "getRootNode")();
|
|
662
662
|
}, host: function(e) {
|
|
663
|
-
return e && "host" in e ?
|
|
663
|
+
return e && "host" in e ? Qe("ShadowRoot", e, "host") : null;
|
|
664
664
|
}, styleSheets: function(e) {
|
|
665
665
|
return e.styleSheets;
|
|
666
666
|
}, shadowRoot: function(e) {
|
|
667
|
-
return e && "shadowRoot" in e ?
|
|
667
|
+
return e && "shadowRoot" in e ? Qe("Element", e, "shadowRoot") : null;
|
|
668
668
|
}, querySelector: function(e, t) {
|
|
669
|
-
return
|
|
669
|
+
return Qe("Element", e, "querySelector")(t);
|
|
670
670
|
}, querySelectorAll: function(e, t) {
|
|
671
|
-
return
|
|
671
|
+
return Qe("Element", e, "querySelectorAll")(t);
|
|
672
672
|
}, mutationObserver: function() {
|
|
673
673
|
return Mi("MutationObserver").constructor;
|
|
674
674
|
} };
|
|
@@ -907,7 +907,7 @@ function Qd(e, t) {
|
|
|
907
907
|
return { type: fe.DocumentType, name: e.name, publicId: e.publicId, systemId: e.systemId, rootId: I };
|
|
908
908
|
case e.ELEMENT_NODE:
|
|
909
909
|
return function(m, g) {
|
|
910
|
-
const { doc: b, blockClass: C, blockSelector: A, inlineStylesheet: E, maskInputOptions: T = {}, maskInputFn: M, dataURLOptions: k = {}, inlineImages: R, recordCanvas: x, keepIframeSrcFn: S, newlyAddedElement: D = !1, rootId: P } = g, w = function(O, _,
|
|
910
|
+
const { doc: b, blockClass: C, blockSelector: A, inlineStylesheet: E, maskInputOptions: T = {}, maskInputFn: M, dataURLOptions: k = {}, inlineImages: R, recordCanvas: x, keepIframeSrcFn: S, newlyAddedElement: D = !1, rootId: P } = g, w = function(O, _, te) {
|
|
911
911
|
try {
|
|
912
912
|
if (typeof _ == "string") {
|
|
913
913
|
if (O.classList.contains(_)) return !0;
|
|
@@ -915,7 +915,7 @@ function Qd(e, t) {
|
|
|
915
915
|
const me = O.classList[q];
|
|
916
916
|
if (_.test(me)) return !0;
|
|
917
917
|
}
|
|
918
|
-
if (
|
|
918
|
+
if (te) return O.matches(te);
|
|
919
919
|
} catch {
|
|
920
920
|
}
|
|
921
921
|
return !1;
|
|
@@ -931,7 +931,7 @@ function Qd(e, t) {
|
|
|
931
931
|
Ll(y, _.name, _.value) || (U[_.name] = Rl(b, y, ft(_.name), _.value));
|
|
932
932
|
}
|
|
933
933
|
if (y === "link" && E) {
|
|
934
|
-
const O = Array.from(b.styleSheets).find((
|
|
934
|
+
const O = Array.from(b.styleSheets).find((te) => te.href === m.href);
|
|
935
935
|
let _ = null;
|
|
936
936
|
O && (_ = qr(O)), _ && (delete U.rel, delete U.href, U._cssText = _);
|
|
937
937
|
}
|
|
@@ -947,9 +947,9 @@ function Qd(e, t) {
|
|
|
947
947
|
if (m.__context === "2d") (function(O) {
|
|
948
948
|
const _ = O.getContext("2d");
|
|
949
949
|
if (!_) return !0;
|
|
950
|
-
for (let
|
|
951
|
-
const me = _.getImageData,
|
|
952
|
-
if (new Uint32Array(
|
|
950
|
+
for (let te = 0; te < O.width; te += 50) for (let q = 0; q < O.height; q += 50) {
|
|
951
|
+
const me = _.getImageData, Pe = Lo in me ? me[Lo] : me;
|
|
952
|
+
if (new Uint32Array(Pe.call(_, te, q, Math.min(50, O.width - te), Math.min(50, O.height - q)).data.buffer).some((V) => V !== 0)) return !1;
|
|
953
953
|
}
|
|
954
954
|
return !0;
|
|
955
955
|
})(m) || (U.rr_dataURL = m.toDataURL(k.type, k.quality));
|
|
@@ -960,7 +960,7 @@ function Qd(e, t) {
|
|
|
960
960
|
}
|
|
961
961
|
if (y === "img" && R) {
|
|
962
962
|
bt || (bt = b.createElement("canvas"), Ao = bt.getContext("2d"));
|
|
963
|
-
const O = m, _ = O.currentSrc || O.getAttribute("src") || "<unknown-src>",
|
|
963
|
+
const O = m, _ = O.currentSrc || O.getAttribute("src") || "<unknown-src>", te = O.crossOrigin, q = () => {
|
|
964
964
|
O.removeEventListener("load", q);
|
|
965
965
|
try {
|
|
966
966
|
bt.width = O.naturalWidth, bt.height = O.naturalHeight, Ao.drawImage(O, 0, 0), U.rr_dataURL = bt.toDataURL(k.type, k.quality);
|
|
@@ -968,7 +968,7 @@ function Qd(e, t) {
|
|
|
968
968
|
if (O.crossOrigin !== "anonymous") return O.crossOrigin = "anonymous", void (O.complete && O.naturalWidth !== 0 ? q() : O.addEventListener("load", q));
|
|
969
969
|
console.warn(`Cannot inline img src=${_}! Error: ${me}`);
|
|
970
970
|
}
|
|
971
|
-
O.crossOrigin === "anonymous" && (
|
|
971
|
+
O.crossOrigin === "anonymous" && (te ? U.crossOrigin = te : O.removeAttribute("crossorigin"));
|
|
972
972
|
};
|
|
973
973
|
O.complete && O.naturalWidth !== 0 ? q() : O.addEventListener("load", q);
|
|
974
974
|
}
|
|
@@ -1012,7 +1012,7 @@ function Qd(e, t) {
|
|
|
1012
1012
|
return !1;
|
|
1013
1013
|
}
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1015
|
+
function re(e) {
|
|
1016
1016
|
return e == null ? "" : e.toLowerCase();
|
|
1017
1017
|
}
|
|
1018
1018
|
function Et(e, t) {
|
|
@@ -1023,7 +1023,7 @@ function Et(e, t) {
|
|
|
1023
1023
|
if (!R) return console.warn(e, "not serialized"), null;
|
|
1024
1024
|
let x;
|
|
1025
1025
|
x = n.hasNode(e) ? n.getId(e) : !function(w, y) {
|
|
1026
|
-
return !!(y.comment && w.type === fe.Comment || w.type === fe.Element && (y.script && (w.tagName === "script" || w.tagName === "link" && (w.attributes.rel === "preload" || w.attributes.rel === "modulepreload") && w.attributes.as === "script" || w.tagName === "link" && w.attributes.rel === "prefetch" && typeof w.attributes.href == "string" && Oo(w.attributes.href) === "js") || y.headFavicon && (w.tagName === "link" && w.attributes.rel === "shortcut icon" || w.tagName === "meta" && (
|
|
1026
|
+
return !!(y.comment && w.type === fe.Comment || w.type === fe.Element && (y.script && (w.tagName === "script" || w.tagName === "link" && (w.attributes.rel === "preload" || w.attributes.rel === "modulepreload") && w.attributes.as === "script" || w.tagName === "link" && w.attributes.rel === "prefetch" && typeof w.attributes.href == "string" && Oo(w.attributes.href) === "js") || y.headFavicon && (w.tagName === "link" && w.attributes.rel === "shortcut icon" || w.tagName === "meta" && (re(w.attributes.name).match(/^msapplication-tile(image|color)$/) || re(w.attributes.name) === "application-name" || re(w.attributes.rel) === "icon" || re(w.attributes.rel) === "apple-touch-icon" || re(w.attributes.rel) === "shortcut icon")) || w.tagName === "meta" && (y.headMetaDescKeywords && re(w.attributes.name).match(/^description|keywords$/) || y.headMetaSocial && (re(w.attributes.property).match(/^(og|twitter|fb):/) || re(w.attributes.name).match(/^(og|twitter):/) || re(w.attributes.name) === "pinterest") || y.headMetaRobots && (re(w.attributes.name) === "robots" || re(w.attributes.name) === "googlebot" || re(w.attributes.name) === "bingbot") || y.headMetaHttpEquiv && w.attributes["http-equiv"] !== void 0 || y.headMetaAuthorship && (re(w.attributes.name) === "author" || re(w.attributes.name) === "generator" || re(w.attributes.name) === "framework" || re(w.attributes.name) === "publisher" || re(w.attributes.name) === "progid" || re(w.attributes.property).match(/^article:/) || re(w.attributes.property).match(/^product:/)) || y.headMetaVerification && (re(w.attributes.name) === "google-site-verification" || re(w.attributes.name) === "yandex-verification" || re(w.attributes.name) === "csrf-token" || re(w.attributes.name) === "p:domain_verify" || re(w.attributes.name) === "verify-v1" || re(w.attributes.name) === "verification" || re(w.attributes.name) === "shopify-checkout-api-token"))));
|
|
1027
1027
|
}(R, f) && (k || R.type !== fe.Text || R.isStyle || R.textContent.replace(/^\s+|\s+$/gm, "").length) ? xl() : -2;
|
|
1028
1028
|
const S = Object.assign(R, { id: x });
|
|
1029
1029
|
if (n.add(e, S), x === -2) return null;
|
|
@@ -1058,11 +1058,11 @@ function Et(e, t) {
|
|
|
1058
1058
|
return;
|
|
1059
1059
|
}
|
|
1060
1060
|
if (j !== "complete") {
|
|
1061
|
-
const
|
|
1061
|
+
const te = setTimeout(() => {
|
|
1062
1062
|
O || (y(), O = !0);
|
|
1063
1063
|
}, U);
|
|
1064
1064
|
return void w.addEventListener("load", () => {
|
|
1065
|
-
clearTimeout(
|
|
1065
|
+
clearTimeout(te), O = !0, y();
|
|
1066
1066
|
});
|
|
1067
1067
|
}
|
|
1068
1068
|
const _ = "about:blank";
|
|
@@ -1114,13 +1114,13 @@ function tp(e) {
|
|
|
1114
1114
|
} });
|
|
1115
1115
|
}), r;
|
|
1116
1116
|
}
|
|
1117
|
-
var xs = { exports: {} },
|
|
1118
|
-
return { isColorSupported: !1, reset:
|
|
1117
|
+
var xs = { 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
|
xs.exports = Uo(), xs.exports.createColors = Uo;
|
|
1121
1121
|
var rp = xs.exports;
|
|
1122
|
-
const
|
|
1123
|
-
let To = rp, Do =
|
|
1122
|
+
const Te = tp(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
|
|
1123
|
+
let To = rp, Do = Te, Rs = class Al extends Error {
|
|
1124
1124
|
constructor(t, r, n, s, i, a) {
|
|
1125
1125
|
super(t), this.name = "CssSyntaxError", this.reason = t, i && (this.file = i), s && (this.source = s), a && (this.plugin = a), r !== void 0 && n !== void 0 && (typeof r == "number" ? (this.line = r, this.column = n) : (this.line = r.line, this.column = r.column, this.endLine = n.line, this.endColumn = n.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, Al);
|
|
1126
1126
|
}
|
|
@@ -1491,7 +1491,7 @@ var cp = { nanoid: (e = 21) => {
|
|
|
1491
1491
|
for (; r--; ) t += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64 * Math.random() | 0];
|
|
1492
1492
|
return t;
|
|
1493
1493
|
} };
|
|
1494
|
-
let { SourceMapConsumer: _o, SourceMapGenerator: No } =
|
|
1494
|
+
let { SourceMapConsumer: _o, SourceMapGenerator: No } = Te, { existsSync: up, readFileSync: dp } = Te, { dirname: rs, join: pp } = Te, Ts = class {
|
|
1495
1495
|
constructor(e, t) {
|
|
1496
1496
|
if (t.map === !1) return;
|
|
1497
1497
|
this.loadAnnotation(e), this.inline = this.startWith(this.annotation, "data:");
|
|
@@ -1558,7 +1558,7 @@ let { SourceMapConsumer: _o, SourceMapGenerator: No } = De, { existsSync: up, re
|
|
|
1558
1558
|
};
|
|
1559
1559
|
var Ul = Ts;
|
|
1560
1560
|
Ts.default = Ts;
|
|
1561
|
-
let { SourceMapConsumer: hp, SourceMapGenerator: mp } =
|
|
1561
|
+
let { SourceMapConsumer: hp, SourceMapGenerator: mp } = Te, { fileURLToPath: Fo, pathToFileURL: Cr } = Te, { isAbsolute: Ds, resolve: Ps } = Te, { nanoid: fp } = cp, ns = Te, Bo = Pi, gp = Ul, ss = Symbol("fromOffsetCache"), yp = !!(hp && mp), zo = !!(Ps && Ds), Jr = class {
|
|
1562
1562
|
constructor(e, t = {}) {
|
|
1563
1563
|
if (e == null || typeof e == "object" && !e.toString) throw new Error(`PostCSS received ${e} instead of CSS string`);
|
|
1564
1564
|
if (this.css = e.toString(), this.css[0] === "\uFEFF" || this.css[0] === "" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, t.from && (!zo || /^\w+:\/\//.test(t.from) || Ds(t.from) ? this.file = t.from : this.file = Ps(t.from)), zo && yp) {
|
|
@@ -1644,7 +1644,7 @@ let { SourceMapConsumer: hp, SourceMapGenerator: mp } = De, { fileURLToPath: Fo,
|
|
|
1644
1644
|
};
|
|
1645
1645
|
var zn = Jr;
|
|
1646
1646
|
Jr.default = Jr, ns && ns.registerInput && ns.registerInput(Jr);
|
|
1647
|
-
let { SourceMapConsumer: Tl, SourceMapGenerator: Kr } =
|
|
1647
|
+
let { SourceMapConsumer: Tl, SourceMapGenerator: Kr } = Te, { dirname: Zr, relative: Dl, resolve: Pl, sep: _l } = Te, { pathToFileURL: jo } = Te, wp = zn, vp = !!(Tl && Kr), bp = !!(Zr && Pl && Dl && _l);
|
|
1648
1648
|
var Nl = class {
|
|
1649
1649
|
constructor(e, t, r, n) {
|
|
1650
1650
|
this.stringify = e, this.mapOpts = r.map || {}, this.root = t, this.opts = r, this.css = n, this.originalCSS = n, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
|
|
@@ -1791,7 +1791,7 @@ function Gl(e) {
|
|
|
1791
1791
|
function Hl(e) {
|
|
1792
1792
|
if (e[zl] = !1, e.proxyOf.nodes) for (let t of e.proxyOf.nodes) Hl(t);
|
|
1793
1793
|
}
|
|
1794
|
-
let
|
|
1794
|
+
let qe = class $l extends Ip {
|
|
1795
1795
|
append(...t) {
|
|
1796
1796
|
for (let r of t) {
|
|
1797
1797
|
let n = this.normalize(r, this.last);
|
|
@@ -1937,19 +1937,19 @@ let Je = class $l extends Ip {
|
|
|
1937
1937
|
if (this.proxyOf.nodes) return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
|
|
1938
1938
|
}
|
|
1939
1939
|
};
|
|
1940
|
-
|
|
1940
|
+
qe.registerParse = (e) => {
|
|
1941
1941
|
Fl = e;
|
|
1942
|
-
},
|
|
1942
|
+
}, qe.registerRule = (e) => {
|
|
1943
1943
|
_i = e;
|
|
1944
|
-
},
|
|
1944
|
+
}, qe.registerAtRule = (e) => {
|
|
1945
1945
|
Ni = e;
|
|
1946
|
-
},
|
|
1946
|
+
}, qe.registerRoot = (e) => {
|
|
1947
1947
|
Bl = e;
|
|
1948
1948
|
};
|
|
1949
|
-
var yt =
|
|
1950
|
-
|
|
1949
|
+
var yt = qe;
|
|
1950
|
+
qe.default = qe, qe.rebuild = (e) => {
|
|
1951
1951
|
e.type === "atrule" ? Object.setPrototypeOf(e, Ni.prototype) : e.type === "rule" ? Object.setPrototypeOf(e, _i.prototype) : e.type === "decl" ? Object.setPrototypeOf(e, Wl.prototype) : e.type === "comment" ? Object.setPrototypeOf(e, Vl.prototype) : e.type === "root" && Object.setPrototypeOf(e, Bl.prototype), e[jl] = !0, e.nodes && e.nodes.forEach((t) => {
|
|
1952
|
-
|
|
1952
|
+
qe.rebuild(t);
|
|
1953
1953
|
});
|
|
1954
1954
|
};
|
|
1955
1955
|
let Yl, ql, Cp = yt, or = class extends Cp {
|
|
@@ -2408,7 +2408,7 @@ function en(e, t) {
|
|
|
2408
2408
|
}
|
|
2409
2409
|
var Wi = en;
|
|
2410
2410
|
en.default = en, Vp.registerParse(en);
|
|
2411
|
-
let { isClean:
|
|
2411
|
+
let { isClean: _e, my: $p } = ir, Yp = Nl, qp = Nn, Jp = yt, Kp = Fi, Yo = Bi, Zp = Wi, Xp = gr;
|
|
2412
2412
|
const Qp = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, eh = { AtRule: !0, AtRuleExit: !0, Comment: !0, CommentExit: !0, Declaration: !0, DeclarationExit: !0, Document: !0, DocumentExit: !0, Once: !0, OnceExit: !0, postcssPlugin: !0, prepare: !0, Root: !0, RootExit: !0, Rule: !0, RuleExit: !0 }, th = { Once: !0, postcssPlugin: !0, prepare: !0 };
|
|
2413
2413
|
function zt(e) {
|
|
2414
2414
|
return typeof e == "object" && typeof e.then == "function";
|
|
@@ -2422,7 +2422,7 @@ function qo(e) {
|
|
|
2422
2422
|
return t = e.type === "document" ? ["Document", 0, "DocumentExit"] : e.type === "root" ? ["Root", 0, "RootExit"] : rc(e), { eventIndex: 0, events: t, iterator: 0, node: e, visitorIndex: 0, visitors: [] };
|
|
2423
2423
|
}
|
|
2424
2424
|
function Bs(e) {
|
|
2425
|
-
return e[
|
|
2425
|
+
return e[_e] = !1, e.nodes && e.nodes.forEach((t) => Bs(t)), e;
|
|
2426
2426
|
}
|
|
2427
2427
|
let zs = {}, xt = class nc {
|
|
2428
2428
|
constructor(t, r, n) {
|
|
@@ -2486,8 +2486,8 @@ let zs = {}, xt = class nc {
|
|
|
2486
2486
|
}
|
|
2487
2487
|
if (this.prepareVisitors(), this.hasListener) {
|
|
2488
2488
|
let t = this.result.root;
|
|
2489
|
-
for (; !t[
|
|
2490
|
-
t[
|
|
2489
|
+
for (; !t[_e]; ) {
|
|
2490
|
+
t[_e] = !0;
|
|
2491
2491
|
let r = [qo(t)];
|
|
2492
2492
|
for (; r.length > 0; ) {
|
|
2493
2493
|
let n = this.visitTick(r);
|
|
@@ -2545,7 +2545,7 @@ let zs = {}, xt = class nc {
|
|
|
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[
|
|
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 zs = {}, xt = class nc {
|
|
|
2584
2584
|
}
|
|
2585
2585
|
if (r.iterator !== 0) {
|
|
2586
2586
|
let a, o = r.iterator;
|
|
2587
|
-
for (; a = n.nodes[n.indexes[o]]; ) if (n.indexes[o] += 1, !a[
|
|
2587
|
+
for (; a = n.nodes[n.indexes[o]]; ) if (n.indexes[o] += 1, !a[_e]) return a[_e] = !0, void t.push(qo(a));
|
|
2588
2588
|
r.iterator = 0, delete n.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 (n.nodes && n.nodes.length && (n[
|
|
2593
|
+
if (r.eventIndex += 1, a === 0) return void (n.nodes && n.nodes.length && (n[_e] = !0, r.iterator = n.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[
|
|
2599
|
+
t[_e] = !0;
|
|
2600
2600
|
let r = rc(t);
|
|
2601
2601
|
for (let n of r) if (n === 0) t.nodes && t.each((s) => {
|
|
2602
|
-
s[
|
|
2602
|
+
s[_e] || this.walkSync(s);
|
|
2603
2603
|
});
|
|
2604
2604
|
else {
|
|
2605
2605
|
let s = this.listeners[n];
|
|
@@ -2776,9 +2776,9 @@ https://www.w3ctech.com/topic/2226`));
|
|
|
2776
2776
|
}, K.stringify = Ch, K.parse = Lh, K.fromJSON = kh, K.list = Oh, K.comment = (e) => new Zo(e), K.atRule = (e) => new Xo(e), K.decl = (e) => new Jo(e), K.rule = (e) => new Qo(e), K.root = (e) => new ea(e), K.document = (e) => new Ko(e), K.CssSyntaxError = bh, K.Declaration = Jo, K.Container = Ih, K.Processor = Ws, K.Document = Ko, K.Comment = Zo, K.Warning = Eh, K.AtRule = Xo, K.Result = xh, K.Input = Rh, K.Rule = Qo, K.Root = ea, K.Node = Ah, Sh.registerPostcss(K);
|
|
2777
2777
|
var Mh = K;
|
|
2778
2778
|
K.default = K;
|
|
2779
|
-
const
|
|
2780
|
-
|
|
2781
|
-
var Uh = Object.defineProperty,
|
|
2779
|
+
const le = ep(Mh);
|
|
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 Uh = Object.defineProperty, Re = (e, t, r) => ((n, s, i) => s in n ? Uh(n, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[s] = i)(e, typeof t != "symbol" ? t + "" : t, r);
|
|
2782
2782
|
function Th(e) {
|
|
2783
2783
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2784
2784
|
}
|
|
@@ -2798,13 +2798,13 @@ function Dh(e) {
|
|
|
2798
2798
|
} });
|
|
2799
2799
|
}), r;
|
|
2800
2800
|
}
|
|
2801
|
-
var Vs = { exports: {} },
|
|
2802
|
-
return { isColorSupported: !1, reset:
|
|
2801
|
+
var Vs = { exports: {} }, oe = String, ta = 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
|
Vs.exports = ta(), Vs.exports.createColors = ta;
|
|
2805
2805
|
var Ph = Vs.exports;
|
|
2806
|
-
const
|
|
2807
|
-
let ra = Ph, na =
|
|
2806
|
+
const De = Dh(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
|
|
2807
|
+
let ra = Ph, na = De, Gs = class ic extends Error {
|
|
2808
2808
|
constructor(t, r, n, s, i, a) {
|
|
2809
2809
|
super(t), this.name = "CssSyntaxError", this.reason = t, i && (this.file = i), s && (this.source = s), a && (this.plugin = a), r !== void 0 && n !== void 0 && (typeof r == "number" ? (this.line = r, this.column = n) : (this.line = r.line, this.column = r.column, this.endLine = n.line, this.endColumn = n.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, ic);
|
|
2810
2810
|
}
|
|
@@ -3175,7 +3175,7 @@ var Wh = { nanoid: (e = 21) => {
|
|
|
3175
3175
|
for (; r--; ) t += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64 * Math.random() | 0];
|
|
3176
3176
|
return t;
|
|
3177
3177
|
} };
|
|
3178
|
-
let { SourceMapConsumer: ia, SourceMapGenerator: oa } =
|
|
3178
|
+
let { SourceMapConsumer: ia, SourceMapGenerator: oa } = De, { existsSync: Vh, readFileSync: Gh } = De, { dirname: os, join: Hh } = De, Ks = 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:");
|
|
@@ -3242,7 +3242,7 @@ let { SourceMapConsumer: ia, SourceMapGenerator: oa } = Pe, { existsSync: Vh, re
|
|
|
3242
3242
|
};
|
|
3243
3243
|
var ac = Ks;
|
|
3244
3244
|
Ks.default = Ks;
|
|
3245
|
-
let { SourceMapConsumer: $h, SourceMapGenerator: Yh } =
|
|
3245
|
+
let { SourceMapConsumer: $h, SourceMapGenerator: Yh } = De, { fileURLToPath: aa, pathToFileURL: Ur } = De, { isAbsolute: Zs, resolve: Xs } = De, { nanoid: qh } = Wh, as = De, la = Vi, Jh = ac, ls = Symbol("fromOffsetCache"), Kh = !!($h && Yh), ca = !!(Xs && Zs), tn = class {
|
|
3246
3246
|
constructor(e, t = {}) {
|
|
3247
3247
|
if (e == null || typeof e == "object" && !e.toString) throw new Error(`PostCSS received ${e} instead of CSS string`);
|
|
3248
3248
|
if (this.css = e.toString(), this.css[0] === "\uFEFF" || this.css[0] === "" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, t.from && (!ca || /^\w+:\/\//.test(t.from) || Zs(t.from) ? this.file = t.from : this.file = Xs(t.from)), ca && Kh) {
|
|
@@ -3328,7 +3328,7 @@ let { SourceMapConsumer: $h, SourceMapGenerator: Yh } = Pe, { fileURLToPath: aa,
|
|
|
3328
3328
|
};
|
|
3329
3329
|
var Hn = tn;
|
|
3330
3330
|
tn.default = tn, as && as.registerInput && as.registerInput(tn);
|
|
3331
|
-
let { SourceMapConsumer: lc, SourceMapGenerator: rn } =
|
|
3331
|
+
let { SourceMapConsumer: lc, SourceMapGenerator: rn } = De, { dirname: nn, relative: cc, resolve: uc, sep: dc } = De, { pathToFileURL: ua } = De, Zh = Hn, Xh = !!(lc && rn), Qh = !!(nn && uc && cc && dc);
|
|
3332
3332
|
var pc = class {
|
|
3333
3333
|
constructor(e, t, r, n) {
|
|
3334
3334
|
this.stringify = e, this.mapOpts = r.map || {}, this.root = t, this.opts = r, this.css = n, this.originalCSS = n, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
|
|
@@ -3475,7 +3475,7 @@ function vc(e) {
|
|
|
3475
3475
|
function bc(e) {
|
|
3476
3476
|
if (e[fc] = !1, e.proxyOf.nodes) for (let t of e.proxyOf.nodes) bc(t);
|
|
3477
3477
|
}
|
|
3478
|
-
let
|
|
3478
|
+
let Je = class Sc extends tm {
|
|
3479
3479
|
append(...t) {
|
|
3480
3480
|
for (let r of t) {
|
|
3481
3481
|
let n = this.normalize(r, this.last);
|
|
@@ -3621,19 +3621,19 @@ let Ke = class Sc extends tm {
|
|
|
3621
3621
|
if (this.proxyOf.nodes) return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
|
|
3622
3622
|
}
|
|
3623
3623
|
};
|
|
3624
|
-
|
|
3624
|
+
Je.registerParse = (e) => {
|
|
3625
3625
|
hc = e;
|
|
3626
|
-
},
|
|
3626
|
+
}, Je.registerRule = (e) => {
|
|
3627
3627
|
Gi = e;
|
|
3628
|
-
},
|
|
3628
|
+
}, Je.registerAtRule = (e) => {
|
|
3629
3629
|
Hi = e;
|
|
3630
|
-
},
|
|
3630
|
+
}, Je.registerRoot = (e) => {
|
|
3631
3631
|
mc = e;
|
|
3632
3632
|
};
|
|
3633
|
-
var wt =
|
|
3634
|
-
|
|
3633
|
+
var wt = Je;
|
|
3634
|
+
Je.default = Je, Je.rebuild = (e) => {
|
|
3635
3635
|
e.type === "atrule" ? Object.setPrototypeOf(e, Hi.prototype) : e.type === "rule" ? Object.setPrototypeOf(e, Gi.prototype) : e.type === "decl" ? Object.setPrototypeOf(e, yc.prototype) : e.type === "comment" ? Object.setPrototypeOf(e, wc.prototype) : e.type === "root" && Object.setPrototypeOf(e, mc.prototype), e[gc] = !0, e.nodes && e.nodes.forEach((t) => {
|
|
3636
|
-
|
|
3636
|
+
Je.rebuild(t);
|
|
3637
3637
|
});
|
|
3638
3638
|
};
|
|
3639
3639
|
let Ic, Cc, rm = wt, ur = class extends rm {
|
|
@@ -4092,7 +4092,7 @@ function an(e, t) {
|
|
|
4092
4092
|
}
|
|
4093
4093
|
var Ki = an;
|
|
4094
4094
|
an.default = an, Im.registerParse(an);
|
|
4095
|
-
let { isClean:
|
|
4095
|
+
let { isClean: Ne, my: Em } = cr, xm = pc, Rm = Wn, Lm = wt, Om = $i, ga = Yi, Am = Ki, Mm = yr;
|
|
4096
4096
|
const Um = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, Tm = { 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 }, Dm = { Once: !0, postcssPlugin: !0, prepare: !0 };
|
|
4097
4097
|
function Wt(e) {
|
|
4098
4098
|
return typeof e == "object" && typeof e.then == "function";
|
|
@@ -4106,7 +4106,7 @@ function ya(e) {
|
|
|
4106
4106
|
return t = e.type === "document" ? ["Document", 0, "DocumentExit"] : e.type === "root" ? ["Root", 0, "RootExit"] : Mc(e), { eventIndex: 0, events: t, iterator: 0, node: e, visitorIndex: 0, visitors: [] };
|
|
4107
4107
|
}
|
|
4108
4108
|
function ri(e) {
|
|
4109
|
-
return e[
|
|
4109
|
+
return e[Ne] = !1, e.nodes && e.nodes.forEach((t) => ri(t)), e;
|
|
4110
4110
|
}
|
|
4111
4111
|
let ni = {}, Rt = class Uc {
|
|
4112
4112
|
constructor(t, r, n) {
|
|
@@ -4170,8 +4170,8 @@ let ni = {}, Rt = class Uc {
|
|
|
4170
4170
|
}
|
|
4171
4171
|
if (this.prepareVisitors(), this.hasListener) {
|
|
4172
4172
|
let t = this.result.root;
|
|
4173
|
-
for (; !t[
|
|
4174
|
-
t[
|
|
4173
|
+
for (; !t[Ne]; ) {
|
|
4174
|
+
t[Ne] = !0;
|
|
4175
4175
|
let r = [ya(t)];
|
|
4176
4176
|
for (; r.length > 0; ) {
|
|
4177
4177
|
let n = this.visitTick(r);
|
|
@@ -4229,7 +4229,7 @@ let ni = {}, Rt = class Uc {
|
|
|
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[
|
|
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 ni = {}, Rt = class Uc {
|
|
|
4268
4268
|
}
|
|
4269
4269
|
if (r.iterator !== 0) {
|
|
4270
4270
|
let a, o = r.iterator;
|
|
4271
|
-
for (; a = n.nodes[n.indexes[o]]; ) if (n.indexes[o] += 1, !a[
|
|
4271
|
+
for (; a = n.nodes[n.indexes[o]]; ) if (n.indexes[o] += 1, !a[Ne]) return a[Ne] = !0, void t.push(ya(a));
|
|
4272
4272
|
r.iterator = 0, delete n.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 (n.nodes && n.nodes.length && (n[
|
|
4277
|
+
if (r.eventIndex += 1, a === 0) return void (n.nodes && n.nodes.length && (n[Ne] = !0, r.iterator = n.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[
|
|
4283
|
+
t[Ne] = !0;
|
|
4284
4284
|
let r = Mc(t);
|
|
4285
4285
|
for (let n of r) if (n === 0) t.nodes && t.each((s) => {
|
|
4286
|
-
s[
|
|
4286
|
+
s[Ne] || this.walkSync(s);
|
|
4287
4287
|
});
|
|
4288
4288
|
else {
|
|
4289
4289
|
let s = this.listeners[n];
|
|
@@ -4460,11 +4460,11 @@ https://www.w3ctech.com/topic/2226`));
|
|
|
4460
4460
|
}, Z.stringify = rf, Z.parse = lf, Z.fromJSON = nf, Z.list = cf, Z.comment = (e) => new ba(e), Z.atRule = (e) => new Sa(e), Z.decl = (e) => new wa(e), Z.rule = (e) => new Ia(e), Z.root = (e) => new Ca(e), Z.document = (e) => new va(e), Z.CssSyntaxError = Qm, Z.Declaration = wa, Z.Container = tf, Z.Processor = ii, Z.Document = va, Z.Comment = ba, Z.Warning = sf, Z.AtRule = Sa, Z.Result = of, Z.Input = af, Z.Rule = Ia, Z.Root = Ca, Z.Node = uf, ef.registerPostcss(Z);
|
|
4461
4461
|
var df = Z;
|
|
4462
4462
|
Z.default = Z;
|
|
4463
|
-
const
|
|
4464
|
-
|
|
4463
|
+
const ce = Th(df);
|
|
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;
|
|
4465
4465
|
class Zi {
|
|
4466
4466
|
constructor(...t) {
|
|
4467
|
-
|
|
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 = [];
|
|
@@ -4517,7 +4517,7 @@ function Xi(e) {
|
|
|
4517
4517
|
}
|
|
4518
4518
|
}
|
|
4519
4519
|
const us = {};
|
|
4520
|
-
function
|
|
4520
|
+
function et(e, t, r) {
|
|
4521
4521
|
var n;
|
|
4522
4522
|
const s = `${e}.${String(r)}`;
|
|
4523
4523
|
if (us[s]) return us[s].call(t);
|
|
@@ -4535,27 +4535,27 @@ function Dc() {
|
|
|
4535
4535
|
return Xi("MutationObserver").constructor;
|
|
4536
4536
|
}
|
|
4537
4537
|
const G = { childNodes: function(e) {
|
|
4538
|
-
return
|
|
4538
|
+
return et("Node", e, "childNodes");
|
|
4539
4539
|
}, parentNode: function(e) {
|
|
4540
|
-
return
|
|
4540
|
+
return et("Node", e, "parentNode");
|
|
4541
4541
|
}, parentElement: function(e) {
|
|
4542
|
-
return
|
|
4542
|
+
return et("Node", e, "parentElement");
|
|
4543
4543
|
}, textContent: function(e) {
|
|
4544
|
-
return
|
|
4544
|
+
return et("Node", e, "textContent");
|
|
4545
4545
|
}, contains: function(e, t) {
|
|
4546
4546
|
return xa("Node", e, "contains")(t);
|
|
4547
4547
|
}, getRootNode: function(e) {
|
|
4548
4548
|
return xa("Node", e, "getRootNode")();
|
|
4549
4549
|
}, host: function(e) {
|
|
4550
|
-
return e && "host" in e ?
|
|
4550
|
+
return e && "host" in e ? et("ShadowRoot", e, "host") : null;
|
|
4551
4551
|
}, styleSheets: function(e) {
|
|
4552
4552
|
return e.styleSheets;
|
|
4553
4553
|
}, shadowRoot: function(e) {
|
|
4554
|
-
return e && "shadowRoot" in e ?
|
|
4554
|
+
return e && "shadowRoot" in e ? et("Element", e, "shadowRoot") : null;
|
|
4555
4555
|
}, querySelector: function(e, t) {
|
|
4556
|
-
return
|
|
4556
|
+
return et("Element", e, "querySelector")(t);
|
|
4557
4557
|
}, querySelectorAll: function(e, t) {
|
|
4558
|
-
return
|
|
4558
|
+
return et("Element", e, "querySelectorAll")(t);
|
|
4559
4559
|
}, mutationObserver: Dc };
|
|
4560
4560
|
function ve(e, t, r = document) {
|
|
4561
4561
|
const n = { capture: !0, passive: !0 };
|
|
@@ -4696,7 +4696,7 @@ function Vc(e) {
|
|
|
4696
4696
|
const t = e.ownerDocument;
|
|
4697
4697
|
return !!t && (G.contains(t, e) || hf(e));
|
|
4698
4698
|
}
|
|
4699
|
-
var Y = ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e))(Y || {}), H = ((e) => (e[e.Mutation = 0] = "Mutation", e[e.MouseMove = 1] = "MouseMove", e[e.MouseInteraction = 2] = "MouseInteraction", e[e.Scroll = 3] = "Scroll", e[e.ViewportResize = 4] = "ViewportResize", e[e.Input = 5] = "Input", e[e.TouchMove = 6] = "TouchMove", e[e.MediaInteraction = 7] = "MediaInteraction", e[e.StyleSheetRule = 8] = "StyleSheetRule", e[e.CanvasMutation = 9] = "CanvasMutation", e[e.Font = 10] = "Font", e[e.Log = 11] = "Log", e[e.Drag = 12] = "Drag", e[e.StyleDeclaration = 13] = "StyleDeclaration", e[e.Selection = 14] = "Selection", e[e.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e[e.CustomElement = 16] = "CustomElement", e))(H || {}), Ie = ((e) => (e[e.MouseUp = 0] = "MouseUp", e[e.MouseDown = 1] = "MouseDown", e[e.Click = 2] = "Click", e[e.ContextMenu = 3] = "ContextMenu", e[e.DblClick = 4] = "DblClick", e[e.Focus = 5] = "Focus", e[e.Blur = 6] = "Blur", e[e.TouchStart = 7] = "TouchStart", e[e.TouchMove_Departed = 8] = "TouchMove_Departed", e[e.TouchEnd = 9] = "TouchEnd", e[e.TouchCancel = 10] = "TouchCancel", e))(Ie || {}),
|
|
4699
|
+
var Y = ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e))(Y || {}), H = ((e) => (e[e.Mutation = 0] = "Mutation", e[e.MouseMove = 1] = "MouseMove", e[e.MouseInteraction = 2] = "MouseInteraction", e[e.Scroll = 3] = "Scroll", e[e.ViewportResize = 4] = "ViewportResize", e[e.Input = 5] = "Input", e[e.TouchMove = 6] = "TouchMove", e[e.MediaInteraction = 7] = "MediaInteraction", e[e.StyleSheetRule = 8] = "StyleSheetRule", e[e.CanvasMutation = 9] = "CanvasMutation", e[e.Font = 10] = "Font", e[e.Log = 11] = "Log", e[e.Drag = 12] = "Drag", e[e.StyleDeclaration = 13] = "StyleDeclaration", e[e.Selection = 14] = "Selection", e[e.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e[e.CustomElement = 16] = "CustomElement", e))(H || {}), Ie = ((e) => (e[e.MouseUp = 0] = "MouseUp", e[e.MouseDown = 1] = "MouseDown", e[e.Click = 2] = "Click", e[e.ContextMenu = 3] = "ContextMenu", e[e.DblClick = 4] = "DblClick", e[e.Focus = 5] = "Focus", e[e.Blur = 6] = "Blur", e[e.TouchStart = 7] = "TouchStart", e[e.TouchMove_Departed = 8] = "TouchMove_Departed", e[e.TouchEnd = 9] = "TouchEnd", e[e.TouchCancel = 10] = "TouchCancel", e))(Ie || {}), 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 || {});
|
|
4700
4700
|
function La(e) {
|
|
4701
4701
|
return "__ln" in e;
|
|
4702
4702
|
}
|
|
@@ -4950,17 +4950,17 @@ function gf({ mouseInteractionCb: e, doc: t, mirror: r, blockClass: n, blockSele
|
|
|
4950
4950
|
if ("pointerType" in f) {
|
|
4951
4951
|
switch (f.pointerType) {
|
|
4952
4952
|
case "mouse":
|
|
4953
|
-
p =
|
|
4953
|
+
p = Ge.Mouse;
|
|
4954
4954
|
break;
|
|
4955
4955
|
case "touch":
|
|
4956
|
-
p =
|
|
4956
|
+
p = Ge.Touch;
|
|
4957
4957
|
break;
|
|
4958
4958
|
case "pen":
|
|
4959
|
-
p =
|
|
4959
|
+
p = Ge.Pen;
|
|
4960
4960
|
}
|
|
4961
|
-
p ===
|
|
4962
|
-
} else oi(f) && (p =
|
|
4963
|
-
p !== null ? (l = p, (I.startsWith("Touch") && p ===
|
|
4961
|
+
p === Ge.Touch ? Ie[h] === Ie.MouseDown ? I = "TouchStart" : Ie[h] === Ie.MouseUp && (I = "TouchEnd") : Ge.Pen;
|
|
4962
|
+
} else oi(f) && (p = Ge.Touch);
|
|
4963
|
+
p !== null ? (l = p, (I.startsWith("Touch") && p === Ge.Touch || I.startsWith("Mouse") && p === Ge.Mouse) && (p = null)) : Ie[h] === Ie.Click && (p = l, l = null);
|
|
4964
4964
|
const m = oi(f) ? f.changedTouches[0] : f;
|
|
4965
4965
|
if (!m) return;
|
|
4966
4966
|
const g = r.getId(v), { clientX: b, clientY: C } = m;
|
|
@@ -5004,7 +5004,7 @@ function jr(e) {
|
|
|
5004
5004
|
return r;
|
|
5005
5005
|
}(e, []);
|
|
5006
5006
|
}
|
|
5007
|
-
function
|
|
5007
|
+
function tt(e, t, r) {
|
|
5008
5008
|
let n, s;
|
|
5009
5009
|
return e ? (e.ownerNode ? n = t.getId(e.ownerNode) : s = r.getId(e), { styleId: s, id: n }) : {};
|
|
5010
5010
|
}
|
|
@@ -5090,11 +5090,11 @@ function wf(e, t = {}) {
|
|
|
5090
5090
|
let j = er(F);
|
|
5091
5091
|
const O = F.isTrusted, _ = j && j.tagName;
|
|
5092
5092
|
if (j && _ === "OPTION" && (j = G.parentElement(j)), !j || !_ || yf.indexOf(_) < 0 || Se(j, C, A, !0) || j.classList.contains(E) || T && j.matches(T)) return;
|
|
5093
|
-
let
|
|
5093
|
+
let te = j.value, q = !1;
|
|
5094
5094
|
const me = Ti(j) || "";
|
|
5095
|
-
me === "radio" || me === "checkbox" ? q = j.checked : (M[_.toLowerCase()] || M[me]) && (
|
|
5096
|
-
const
|
|
5097
|
-
me === "radio" &&
|
|
5095
|
+
me === "radio" || me === "checkbox" ? q = j.checked : (M[_.toLowerCase()] || M[me]) && (te = Ui({ element: j, maskInputOptions: M, tagName: _, type: me, value: te, maskInputFn: k })), D(j, x ? { text: te, isChecked: q, userTriggered: O } : { text: te, isChecked: q });
|
|
5096
|
+
const Pe = j.name;
|
|
5097
|
+
me === "radio" && Pe && q && g.querySelectorAll(`input[type="radio"][name="${Pe}"]`).forEach((V) => {
|
|
5098
5098
|
if (V !== j) {
|
|
5099
5099
|
const ge = V.value;
|
|
5100
5100
|
D(V, x ? { text: ge, isChecked: !q, userTriggered: !1 } : { text: ge, isChecked: !q });
|
|
@@ -5140,7 +5140,7 @@ function wf(e, t = {}) {
|
|
|
5140
5140
|
};
|
|
5141
5141
|
const A = C.CSSStyleSheet.prototype.insertRule;
|
|
5142
5142
|
C.CSSStyleSheet.prototype.insertRule = new Proxy(A, { apply: $((x, S, D) => {
|
|
5143
|
-
const [P, w] = D, { id: y, styleId: U } =
|
|
5143
|
+
const [P, w] = D, { id: y, styleId: U } = tt(S, g, b.styleMirror);
|
|
5144
5144
|
return (y && y !== -1 || U && U !== -1) && m({ id: y, styleId: U, adds: [{ rule: P, index: w }] }), x.apply(S, D);
|
|
5145
5145
|
}) }), C.CSSStyleSheet.prototype.addRule = function(x, S, D = this.cssRules.length) {
|
|
5146
5146
|
const P = `${x} { ${S} }`;
|
|
@@ -5149,15 +5149,15 @@ function wf(e, t = {}) {
|
|
|
5149
5149
|
const E = C.CSSStyleSheet.prototype.deleteRule;
|
|
5150
5150
|
let T, M;
|
|
5151
5151
|
C.CSSStyleSheet.prototype.deleteRule = new Proxy(E, { apply: $((x, S, D) => {
|
|
5152
|
-
const [P] = D, { id: w, styleId: y } =
|
|
5152
|
+
const [P] = D, { id: w, styleId: y } = tt(S, g, b.styleMirror);
|
|
5153
5153
|
return (w && w !== -1 || y && y !== -1) && m({ id: w, styleId: y, removes: [{ index: P }] }), x.apply(S, D);
|
|
5154
5154
|
}) }), C.CSSStyleSheet.prototype.removeRule = function(x) {
|
|
5155
5155
|
return C.CSSStyleSheet.prototype.deleteRule.apply(this, [x]);
|
|
5156
5156
|
}, C.CSSStyleSheet.prototype.replace && (T = C.CSSStyleSheet.prototype.replace, C.CSSStyleSheet.prototype.replace = new Proxy(T, { apply: $((x, S, D) => {
|
|
5157
|
-
const [P] = D, { id: w, styleId: y } =
|
|
5157
|
+
const [P] = D, { id: w, styleId: y } = tt(S, g, b.styleMirror);
|
|
5158
5158
|
return (w && w !== -1 || y && y !== -1) && m({ id: w, styleId: y, replace: P }), x.apply(S, D);
|
|
5159
5159
|
}) })), C.CSSStyleSheet.prototype.replaceSync && (M = C.CSSStyleSheet.prototype.replaceSync, C.CSSStyleSheet.prototype.replaceSync = new Proxy(M, { apply: $((x, S, D) => {
|
|
5160
|
-
const [P] = D, { id: w, styleId: y } =
|
|
5160
|
+
const [P] = D, { id: w, styleId: y } = tt(S, g, b.styleMirror);
|
|
5161
5161
|
return (w && w !== -1 || y && y !== -1) && m({ id: w, styleId: y, replaceSync: P }), x.apply(S, D);
|
|
5162
5162
|
}) }));
|
|
5163
5163
|
const k = {};
|
|
@@ -5165,10 +5165,10 @@ function wf(e, t = {}) {
|
|
|
5165
5165
|
const R = {};
|
|
5166
5166
|
return Object.entries(k).forEach(([x, S]) => {
|
|
5167
5167
|
R[x] = { insertRule: S.prototype.insertRule, deleteRule: S.prototype.deleteRule }, S.prototype.insertRule = new Proxy(R[x].insertRule, { apply: $((D, P, w) => {
|
|
5168
|
-
const [y, U] = w, { id: F, styleId: j } =
|
|
5168
|
+
const [y, U] = w, { id: F, styleId: j } = tt(P.parentStyleSheet, g, b.styleMirror);
|
|
5169
5169
|
return (F && F !== -1 || j && j !== -1) && m({ id: F, styleId: j, adds: [{ rule: y, index: [...jr(P), U || 0] }] }), D.apply(P, w);
|
|
5170
5170
|
}) }), S.prototype.deleteRule = new Proxy(R[x].deleteRule, { apply: $((D, P, w) => {
|
|
5171
|
-
const [y] = w, { id: U, styleId: F } =
|
|
5171
|
+
const [y] = w, { id: U, styleId: F } = tt(P.parentStyleSheet, g, b.styleMirror);
|
|
5172
5172
|
return (U && U !== -1 || F && F !== -1) && m({ id: U, styleId: F, removes: [{ index: [...jr(P), y] }] }), D.apply(P, w);
|
|
5173
5173
|
}) });
|
|
5174
5174
|
}), $(() => {
|
|
@@ -5182,7 +5182,7 @@ function wf(e, t = {}) {
|
|
|
5182
5182
|
var x;
|
|
5183
5183
|
const [S, D, P] = R;
|
|
5184
5184
|
if (b.has(S)) return E.apply(k, [S, D, P]);
|
|
5185
|
-
const { id: w, styleId: y } =
|
|
5185
|
+
const { id: w, styleId: y } = tt((x = k.parentRule) == null ? void 0 : x.parentStyleSheet, g, C.styleMirror);
|
|
5186
5186
|
return (w && w !== -1 || y && y !== -1) && m({ id: w, styleId: y, set: { property: S, value: D, priority: P }, index: jr(k.parentRule) }), M.apply(k, R);
|
|
5187
5187
|
}) });
|
|
5188
5188
|
const T = A.CSSStyleDeclaration.prototype.removeProperty;
|
|
@@ -5190,7 +5190,7 @@ function wf(e, t = {}) {
|
|
|
5190
5190
|
var x;
|
|
5191
5191
|
const [S] = R;
|
|
5192
5192
|
if (b.has(S)) return T.apply(k, [S]);
|
|
5193
|
-
const { id: D, styleId: P } =
|
|
5193
|
+
const { id: D, styleId: P } = tt((x = k.parentRule) == null ? void 0 : x.parentStyleSheet, g, C.styleMirror);
|
|
5194
5194
|
return (D && D !== -1 || P && P !== -1) && m({ id: D, styleId: P, remove: { property: S }, index: jr(k.parentRule) }), M.apply(k, R);
|
|
5195
5195
|
}) }), $(() => {
|
|
5196
5196
|
A.CSSStyleDeclaration.prototype.setProperty = E, A.CSSStyleDeclaration.prototype.removeProperty = T;
|
|
@@ -5682,7 +5682,7 @@ class Ef {
|
|
|
5682
5682
|
destroy() {
|
|
5683
5683
|
}
|
|
5684
5684
|
}
|
|
5685
|
-
let
|
|
5685
|
+
let ue, cn, hs, bn = !1;
|
|
5686
5686
|
try {
|
|
5687
5687
|
if (Array.from([1], (e) => 2 * e)[0] !== 2) {
|
|
5688
5688
|
const e = document.createElement("iframe");
|
|
@@ -5691,7 +5691,7 @@ try {
|
|
|
5691
5691
|
} catch (e) {
|
|
5692
5692
|
console.debug("Unable to override Array.from", e);
|
|
5693
5693
|
}
|
|
5694
|
-
const
|
|
5694
|
+
const Oe = new El();
|
|
5695
5695
|
function qt(e = {}) {
|
|
5696
5696
|
const { emit: t, checkoutEveryNms: r, checkoutEveryNth: n, blockClass: s = "rr-block", blockSelector: i = null, ignoreClass: a = "rr-ignore", ignoreSelector: o = null, maskTextClass: l = "rr-mask", maskTextSelector: c = null, inlineStylesheet: u = !0, maskAllInputs: d, maskInputOptions: h, slimDOMOptions: f, maskInputFn: v, maskTextFn: p, hooks: I, packFn: m, sampling: g = {}, dataURLOptions: b = {}, mousemoveWait: C, recordDOM: A = !0, recordCanvas: E = !1, recordCrossOriginIframes: T = !1, recordAfter: M = e.recordAfter === "DOMContentLoaded" ? e.recordAfter : "load", userTriggeredOnInput: k = !1, collectFonts: R = !1, inlineImages: x = !1, plugins: S, keepIframeSrcFn: D = () => !1, ignoreCSSAttributes: P = /* @__PURE__ */ new Set([]), errorHandler: w } = e;
|
|
5697
5697
|
Qt = w;
|
|
@@ -5705,81 +5705,81 @@ function qt(e = {}) {
|
|
|
5705
5705
|
if (y && !t) throw new Error("emit function is required");
|
|
5706
5706
|
if (!y && !U) return () => {
|
|
5707
5707
|
};
|
|
5708
|
-
C !== void 0 && g.mousemove === void 0 && (g.mousemove = C),
|
|
5708
|
+
C !== void 0 && g.mousemove === void 0 && (g.mousemove = C), Oe.reset();
|
|
5709
5709
|
const F = 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 } : h !== void 0 ? h : { 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 O;
|
|
5711
5711
|
(function(W = window) {
|
|
5712
5712
|
"NodeList" in W && !W.NodeList.prototype.forEach && (W.NodeList.prototype.forEach = Array.prototype.forEach), "DOMTokenList" in W && !W.DOMTokenList.prototype.forEach && (W.DOMTokenList.prototype.forEach = Array.prototype.forEach);
|
|
5713
5713
|
})();
|
|
5714
5714
|
let _ = 0;
|
|
5715
|
-
const
|
|
5716
|
-
for (const
|
|
5715
|
+
const te = (W) => {
|
|
5716
|
+
for (const Le of S || []) Le.eventProcessor && (W = Le.eventProcessor(W));
|
|
5717
5717
|
return m && !U && (W = m(W)), W;
|
|
5718
5718
|
};
|
|
5719
|
-
|
|
5720
|
-
var
|
|
5721
|
-
const
|
|
5722
|
-
if (
|
|
5719
|
+
ue = (W, Le) => {
|
|
5720
|
+
var se;
|
|
5721
|
+
const ae = W;
|
|
5722
|
+
if (ae.timestamp = vn(), !((se = mt[0]) != null && se.isFrozen()) || ae.type === Y.FullSnapshot || ae.type === Y.IncrementalSnapshot && ae.data.source === H.Mutation || mt.forEach((xe) => xe.unfreeze()), y) t == null || t(te(ae), Le);
|
|
5723
5723
|
else if (U) {
|
|
5724
|
-
const
|
|
5725
|
-
window.parent.postMessage(
|
|
5724
|
+
const xe = { type: "rrweb", event: te(ae), origin: window.location.origin, isCheckout: Le };
|
|
5725
|
+
window.parent.postMessage(xe, "*");
|
|
5726
5726
|
}
|
|
5727
|
-
if (
|
|
5728
|
-
else if (
|
|
5729
|
-
if (
|
|
5727
|
+
if (ae.type === Y.FullSnapshot) O = ae, _ = 0;
|
|
5728
|
+
else if (ae.type === Y.IncrementalSnapshot) {
|
|
5729
|
+
if (ae.data.source === H.Mutation && ae.data.isAttachIframe) return;
|
|
5730
5730
|
_++;
|
|
5731
|
-
const
|
|
5732
|
-
(
|
|
5731
|
+
const xe = n && _ >= n, J = r && ae.timestamp - O.timestamp > r;
|
|
5732
|
+
(xe || J) && cn(!0);
|
|
5733
5733
|
}
|
|
5734
5734
|
};
|
|
5735
5735
|
const q = (W) => {
|
|
5736
|
-
|
|
5737
|
-
}, me = (W) =>
|
|
5738
|
-
for (const W of S || []) W.getMirror && W.getMirror({ nodeMirror:
|
|
5736
|
+
ue({ type: Y.IncrementalSnapshot, data: { source: H.Mutation, ...W } });
|
|
5737
|
+
}, me = (W) => ue({ type: Y.IncrementalSnapshot, data: { source: H.Scroll, ...W } }), Pe = (W) => ue({ type: Y.IncrementalSnapshot, data: { source: H.CanvasMutation, ...W } }), V = new kf({ mutationCb: q, adoptedStyleSheetCb: (W) => ue({ type: Y.IncrementalSnapshot, data: { source: H.AdoptedStyleSheet, ...W } }) }), ge = new vf({ mirror: Oe, mutationCb: q, stylesheetManager: V, recordCrossOriginIframes: T, wrappedEmit: ue });
|
|
5738
|
+
for (const W of S || []) W.getMirror && W.getMirror({ nodeMirror: Oe, crossOriginIframeMirror: ge.crossOriginIframeMirror, crossOriginIframeStyleMirror: ge.crossOriginIframeStyleMirror });
|
|
5739
5739
|
const dt = new Ef();
|
|
5740
|
-
hs = new Cf({ recordCanvas: E, mutationCb:
|
|
5741
|
-
const
|
|
5740
|
+
hs = new Cf({ recordCanvas: E, mutationCb: Pe, win: window, blockClass: s, blockSelector: i, mirror: Oe, sampling: g.canvas, dataURLOptions: b });
|
|
5741
|
+
const Xe = new bf({ mutationCb: q, scrollCb: me, bypassOptions: { blockClass: s, blockSelector: i, maskTextClass: l, maskTextSelector: c, inlineStylesheet: u, maskInputOptions: F, dataURLOptions: b, maskTextFn: p, maskInputFn: v, recordCanvas: E, inlineImages: x, sampling: g, slimDOMOptions: j, iframeManager: ge, stylesheetManager: V, canvasManager: hs, keepIframeSrcFn: D, processedNodeManager: dt }, mirror: Oe });
|
|
5742
5742
|
cn = (W = !1) => {
|
|
5743
5743
|
if (!A) return;
|
|
5744
|
-
|
|
5745
|
-
const
|
|
5746
|
-
const { mirror:
|
|
5747
|
-
return Et(
|
|
5748
|
-
}(document, { mirror:
|
|
5749
|
-
zc(
|
|
5750
|
-
}, onIframeLoad: (
|
|
5751
|
-
ge.attachIframe(
|
|
5752
|
-
}, onStylesheetLoad: (
|
|
5753
|
-
V.attachLinkElement(
|
|
5744
|
+
ue({ type: Y.Meta, data: { href: window.location.href, width: Nc(), height: _c() } }, W), V.reset(), Xe.init(), mt.forEach((se) => se.lock());
|
|
5745
|
+
const Le = function(se, ae) {
|
|
5746
|
+
const { mirror: xe = new El(), blockClass: J = "rr-block", blockSelector: _t = null, maskTextClass: rd = "rr-mask", maskTextSelector: nd = null, inlineStylesheet: sd = !0, inlineImages: id = !1, recordCanvas: od = !1, maskAllInputs: Jn = !1, maskTextFn: ad, maskInputFn: ld, slimDOM: Nt = !1, dataURLOptions: cd, preserveWhiteSpace: ud, onSerialize: dd, onIframeLoad: pd, iframeLoadTimeout: hd, onStylesheetLoad: md, stylesheetLoadTimeout: fd, keepIframeSrcFn: gd = () => !1 } = ae || {};
|
|
5747
|
+
return Et(se, { doc: se, mirror: xe, blockClass: J, blockSelector: _t, maskTextClass: rd, maskTextSelector: nd, skipChild: !1, inlineStylesheet: sd, maskInputOptions: Jn === !0 ? { color: !0, date: !0, "datetime-local": !0, email: !0, month: !0, number: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0, textarea: !0, select: !0, password: !0 } : Jn === !1 ? { password: !0 } : Jn, maskTextFn: ad, maskInputFn: ld, slimDOMOptions: Nt === !0 || Nt === "all" ? { script: !0, comment: !0, headFavicon: !0, headWhitespace: !0, headMetaDescKeywords: Nt === "all", headMetaSocial: !0, headMetaRobots: !0, headMetaHttpEquiv: !0, headMetaAuthorship: !0, headMetaVerification: !0 } : Nt === !1 ? {} : Nt, dataURLOptions: cd, inlineImages: id, recordCanvas: od, preserveWhiteSpace: ud, onSerialize: dd, onIframeLoad: pd, iframeLoadTimeout: hd, onStylesheetLoad: md, stylesheetLoadTimeout: fd, keepIframeSrcFn: gd, newlyAddedElement: !1 });
|
|
5748
|
+
}(document, { mirror: Oe, blockClass: s, blockSelector: i, maskTextClass: l, maskTextSelector: c, inlineStylesheet: u, maskAllInputs: F, maskTextFn: p, maskInputFn: v, slimDOM: j, dataURLOptions: b, recordCanvas: E, inlineImages: x, onSerialize: (se) => {
|
|
5749
|
+
zc(se, Oe) && ge.addIframe(se), jc(se, Oe) && V.trackLinkElement(se), ai(se) && Xe.addShadowRoot(G.shadowRoot(se), document);
|
|
5750
|
+
}, onIframeLoad: (se, ae) => {
|
|
5751
|
+
ge.attachIframe(se, ae), Xe.observeAttachShadow(se);
|
|
5752
|
+
}, onStylesheetLoad: (se, ae) => {
|
|
5753
|
+
V.attachLinkElement(se, ae);
|
|
5754
5754
|
}, keepIframeSrcFn: D });
|
|
5755
|
-
if (!
|
|
5756
|
-
|
|
5755
|
+
if (!Le) return console.warn("Failed to snapshot the document");
|
|
5756
|
+
ue({ type: Y.FullSnapshot, data: { node: Le, initialOffset: Pc(window) } }, W), mt.forEach((se) => se.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && V.adoptStyleSheets(document.adoptedStyleSheets, Oe.getId(document));
|
|
5757
5757
|
};
|
|
5758
5758
|
try {
|
|
5759
|
-
const W = [],
|
|
5760
|
-
var
|
|
5761
|
-
return $(wf)({ mutationCb: q, mousemoveCb: (J, _t) =>
|
|
5762
|
-
|
|
5759
|
+
const W = [], Le = (ae) => {
|
|
5760
|
+
var xe;
|
|
5761
|
+
return $(wf)({ mutationCb: q, mousemoveCb: (J, _t) => ue({ type: Y.IncrementalSnapshot, data: { source: _t, positions: J } }), mouseInteractionCb: (J) => ue({ type: Y.IncrementalSnapshot, data: { source: H.MouseInteraction, ...J } }), scrollCb: me, viewportResizeCb: (J) => ue({ type: Y.IncrementalSnapshot, data: { source: H.ViewportResize, ...J } }), inputCb: (J) => ue({ type: Y.IncrementalSnapshot, data: { source: H.Input, ...J } }), mediaInteractionCb: (J) => ue({ type: Y.IncrementalSnapshot, data: { source: H.MediaInteraction, ...J } }), styleSheetRuleCb: (J) => ue({ type: Y.IncrementalSnapshot, data: { source: H.StyleSheetRule, ...J } }), styleDeclarationCb: (J) => ue({ type: Y.IncrementalSnapshot, data: { source: H.StyleDeclaration, ...J } }), canvasMutationCb: Pe, fontCb: (J) => ue({ type: Y.IncrementalSnapshot, data: { source: H.Font, ...J } }), selectionCb: (J) => {
|
|
5762
|
+
ue({ type: Y.IncrementalSnapshot, data: { source: H.Selection, ...J } });
|
|
5763
5763
|
}, customElementCb: (J) => {
|
|
5764
|
-
|
|
5765
|
-
}, blockClass: s, ignoreClass: a, ignoreSelector: o, maskTextClass: l, maskTextSelector: c, maskInputOptions: F, inlineStylesheet: u, sampling: g, recordDOM: A, recordCanvas: E, inlineImages: x, userTriggeredOnInput: k, collectFonts: R, doc:
|
|
5764
|
+
ue({ type: Y.IncrementalSnapshot, data: { source: H.CustomElement, ...J } });
|
|
5765
|
+
}, blockClass: s, ignoreClass: a, ignoreSelector: o, maskTextClass: l, maskTextSelector: c, maskInputOptions: F, inlineStylesheet: u, sampling: g, recordDOM: A, recordCanvas: E, inlineImages: x, userTriggeredOnInput: k, collectFonts: R, doc: ae, maskInputFn: v, maskTextFn: p, keepIframeSrcFn: D, blockSelector: i, slimDOMOptions: j, dataURLOptions: b, mirror: Oe, iframeManager: ge, stylesheetManager: V, shadowDomManager: Xe, processedNodeManager: dt, canvasManager: hs, ignoreCSSAttributes: P, plugins: ((xe = S == null ? void 0 : S.filter((J) => J.observer)) == null ? void 0 : xe.map((J) => ({ observer: J.observer, options: J.options, callback: (_t) => ue({ type: Y.Plugin, data: { plugin: J.name, payload: _t } }) }))) || [] }, I);
|
|
5766
5766
|
};
|
|
5767
|
-
ge.addLoadListener((
|
|
5767
|
+
ge.addLoadListener((ae) => {
|
|
5768
5768
|
try {
|
|
5769
|
-
W.push(
|
|
5770
|
-
} catch (
|
|
5771
|
-
console.warn(
|
|
5769
|
+
W.push(Le(ae.contentDocument));
|
|
5770
|
+
} catch (xe) {
|
|
5771
|
+
console.warn(xe);
|
|
5772
5772
|
}
|
|
5773
5773
|
});
|
|
5774
|
-
const
|
|
5775
|
-
cn(), W.push(
|
|
5774
|
+
const se = () => {
|
|
5775
|
+
cn(), W.push(Le(document)), bn = !0;
|
|
5776
5776
|
};
|
|
5777
|
-
return document.readyState === "interactive" || document.readyState === "complete" ?
|
|
5778
|
-
|
|
5777
|
+
return document.readyState === "interactive" || document.readyState === "complete" ? se() : (W.push(ve("DOMContentLoaded", () => {
|
|
5778
|
+
ue({ type: Y.DomContentLoaded, data: {} }), M === "DOMContentLoaded" && se();
|
|
5779
5779
|
})), W.push(ve("load", () => {
|
|
5780
|
-
|
|
5780
|
+
ue({ type: Y.Load, data: {} }), M === "load" && se();
|
|
5781
5781
|
}, window))), () => {
|
|
5782
|
-
W.forEach((
|
|
5782
|
+
W.forEach((ae) => ae()), dt.destroy(), bn = !1, Qt = void 0;
|
|
5783
5783
|
};
|
|
5784
5784
|
} catch (W) {
|
|
5785
5785
|
console.warn(W);
|
|
@@ -5788,14 +5788,14 @@ function qt(e = {}) {
|
|
|
5788
5788
|
var Ba, St;
|
|
5789
5789
|
qt.addCustomEvent = (e, t) => {
|
|
5790
5790
|
if (!bn) throw new Error("please add custom event after start recording");
|
|
5791
|
-
|
|
5791
|
+
ue({ type: Y.Custom, data: { tag: e, payload: t } });
|
|
5792
5792
|
}, qt.freezePage = () => {
|
|
5793
5793
|
mt.forEach((e) => e.freeze());
|
|
5794
5794
|
}, qt.takeFullSnapshot = (e) => {
|
|
5795
5795
|
if (!bn) throw new Error("please take full snapshot after start recording");
|
|
5796
5796
|
cn(e);
|
|
5797
|
-
}, qt.mirror =
|
|
5798
|
-
var
|
|
5797
|
+
}, qt.mirror = Oe, (St = Ba || (Ba = {}))[St.NotStarted = 0] = "NotStarted", St[St.Running = 1] = "Running", St[St.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 || {}), B = ((e) => (e.ReplayCapture = "replay.capture", e.ReplayPaused = "replay.paused", e.ReplayResumed = "replay.resumed", e.FeedbackButtonLoaded = "feedback.button.loaded", e.SDKReady = "sdk.ready", e.SurveyAppeared = "survey.appeared", e.SurveyCloseRequested = "survey.closeRequested", e.SurveyClosed = "survey.closed", e.SurveyDimensions = "survey.dimensions", e.SurveyFadingOut = "survey.fadingOut", e.SurveyHeight = "survey.height", e.SurveyPresented = "survey.presented", e.SurveyLifeCycle = "survey.lifeCycle", e.SurveyWidth = "survey.width", e.SurveyWillClose = "survey.willClose", e.SurveyWillPresent = "survey.will.present", e.CloseSurveyOnOverlayClick = "close.survey.overlayClick", e.VisitorIDUpdated = "visitor.id.updated", e.QuestionAnswered = "question.answered", e))(B || {});
|
|
5799
5799
|
const hr = { FEEDBACK_BUTTON_LOADED: "feedback.button.loaded", SDK_READY: "sdk.ready", SURVEY_APPEARED: "survey.appeared", SURVEY_CLOSED: "survey.closed", SURVEY_DIMENSIONS: "survey.dimensions", SURVEY_FADING_OUT: "survey.fadingOut", SURVEY_HEIGHT: "survey.height", SURVEY_WIDTH: "survey.width", SURVEY_PRESENTED: "survey.presented", SURVEY_LIFE_CYCLE: "survey.lifeCycle", SURVEY_WILL_CLOSE: "survey.willClose", SURVEY_WILL_PRESENT: "survey.will.present", QUESTION_ANSWERED: "question.answered", REPLAY_CAPTURE: "replay.capture", CLOSE_SURVEY_ON_OVERLAY_CLICK: "close.survey.overlayClick", VISITOR_ID_UPDATED: "visitor.id.updated", DATA: { DISMISS_REASONS: { API: "api", CLOSED: "close.click", COMPLETE: "survey.completed", PAGE_CHANGE: "page.change", OVERRIDE: "override" }, SURVEY_ID: "survey.id" } };
|
|
5800
5800
|
let Hr;
|
|
5801
5801
|
const xf = new Uint8Array(16);
|
|
@@ -6000,7 +6000,7 @@ class tu {
|
|
|
6000
6000
|
const Zg = (e, t) => {
|
|
6001
6001
|
const r = [e[t]], n = e[t].groupId;
|
|
6002
6002
|
return n ? e.slice(t).reduce((s, i) => (i.groupId === n && s.push(i), s), []) : r;
|
|
6003
|
-
}, Xg = (e) => e === "longFormSurvey",
|
|
6003
|
+
}, Xg = (e) => e === "longFormSurvey", Q = new tu("sessionStorage"), ct = new tu("localStorage");
|
|
6004
6004
|
class Af {
|
|
6005
6005
|
constructor(t) {
|
|
6006
6006
|
de(this, "payload");
|
|
@@ -6017,9 +6017,9 @@ class Af {
|
|
|
6017
6017
|
this.resolve(t);
|
|
6018
6018
|
}
|
|
6019
6019
|
}
|
|
6020
|
-
const
|
|
6020
|
+
const ne = { replay: null }, Mf = () => {
|
|
6021
6021
|
const e = [];
|
|
6022
|
-
return
|
|
6022
|
+
return ne.replay && e.push("replay"), e.join(",");
|
|
6023
6023
|
}, Uf = 10;
|
|
6024
6024
|
let ru = !1, nu = "", $r = !1, su = !1, un = [];
|
|
6025
6025
|
const Tf = (e) => e._config && e._config.installationMethod ? e._config.installationMethod : e._gtm ? "web-gtm" : e._segment ? "web-segment" : "web-snippet", Va = (e) => {
|
|
@@ -6028,8 +6028,8 @@ const Tf = (e) => e._config && e._config.installationMethod ? e._config.installa
|
|
|
6028
6028
|
}, ci = (e = "") => {
|
|
6029
6029
|
ru = !0, nu = e;
|
|
6030
6030
|
};
|
|
6031
|
-
function
|
|
6032
|
-
const t = { "Content-Type": "application/json", "userleap-platform": "web", "x-ul-sdk-version": "2.41.
|
|
6031
|
+
function Ue(e = {}) {
|
|
6032
|
+
const t = { "Content-Type": "application/json", "userleap-platform": "web", "x-ul-sdk-version": "2.41.2", "x-ul-installation-method": Tf(e), "sprig-modules": Mf(), "x-ul-package-version": "2.41.2" };
|
|
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 Af(t);
|
|
6043
6043
|
return un.push(r), r.promise;
|
|
6044
6044
|
}
|
|
6045
|
-
},
|
|
6045
|
+
}, Ze = async (e, t) => {
|
|
6046
6046
|
const { retries: r = 0, shouldDropOnRateLimit: n = !1, shouldRetryRequest: s = !1, ...i } = t, a = { url: e, options: i, retries: r, shouldDropOnRateLimit: n };
|
|
6047
6047
|
if ($r && !s) 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 && !n || s) {
|
|
6054
6054
|
$r = !0;
|
|
6055
6055
|
const c = l.headers.has("ratelimit-reset") ? Number(l.headers.get("ratelimit-reset")) : Uf;
|
|
6056
|
-
return await Sn(1e3 * c),
|
|
6056
|
+
return await Sn(1e3 * c), Ze(e, { ...i, shouldDropOnRateLimit: n, shouldRetryRequest: !0 });
|
|
6057
6057
|
}
|
|
6058
6058
|
return Ga(a);
|
|
6059
6059
|
}
|
|
6060
6060
|
if ($r = !1, un.length && (un.map((c) => {
|
|
6061
6061
|
const u = c.payload;
|
|
6062
|
-
|
|
6062
|
+
Ze(u.url, { ...u.options, retries: u.retries, shouldDropOnRateLimit: u.shouldDropOnRateLimit }).then((d) => {
|
|
6063
6063
|
c.resolveRequest(d);
|
|
6064
6064
|
});
|
|
6065
6065
|
}), un = []), l.ok) {
|
|
@@ -6074,52 +6074,52 @@ const Ga = async ({ shouldDropOnRateLimit: e, ...t }) => {
|
|
|
6074
6074
|
return l;
|
|
6075
6075
|
} catch (l) {
|
|
6076
6076
|
const c = r + 1;
|
|
6077
|
-
return c > 5 || su ? { ok: !1, reportError: !1, error: l } : (await Sn(1e3 * Math.pow(2, r)),
|
|
6077
|
+
return c > 5 || su ? { ok: !1, reportError: !1, error: l } : (await Sn(1e3 * Math.pow(2, r)), Ze(e, { ...i, retries: c }));
|
|
6078
6078
|
}
|
|
6079
|
-
}, Ha = "ul-view-sdk-script", Df = /* @__PURE__ */ new Set(["ios", "android"]),
|
|
6080
|
-
async function
|
|
6079
|
+
}, Ha = "ul-view-sdk-script", Df = /* @__PURE__ */ new Set(["ios", "android"]), st = "visitors", it = "environments";
|
|
6080
|
+
async function Be(e, t) {
|
|
6081
6081
|
var i, a, o;
|
|
6082
6082
|
const { shouldDropOnRateLimit: r, ...n } = t;
|
|
6083
|
-
n.headers = Object.assign(
|
|
6084
|
-
const s = await
|
|
6083
|
+
n.headers = Object.assign(Ue(window.UserLeap), n.headers);
|
|
6084
|
+
const s = await Ze(e, { ...n, shouldDropOnRateLimit: r });
|
|
6085
6085
|
if (s.ok) {
|
|
6086
6086
|
const l = (i = s.headers) == null ? void 0 : i.get("Authorization"), c = l ? l.split(" ") : void 0, u = c && c.length === 2 ? c[1] : void 0, d = (a = s.headers) == null ? void 0 : a.get("x-ul-visitor-id");
|
|
6087
6087
|
if (window.UserLeap.userId && d === window.UserLeap.visitorId) {
|
|
6088
|
-
const h =
|
|
6089
|
-
h && h[window.UserLeap.envId] === d && (delete h[window.UserLeap.envId],
|
|
6088
|
+
const h = ct.getItemObject("sprig.anon.env.vid.map");
|
|
6089
|
+
h && h[window.UserLeap.envId] === d && (delete h[window.UserLeap.envId], ct.setItemObject("sprig.anon.env.vid.map", h));
|
|
6090
6090
|
}
|
|
6091
6091
|
u && d && (d !== window.UserLeap.visitorId || window.UserLeap.token !== u) && (Ce("token", u), Ce("vid", d), z.emit(B.VisitorIDUpdated, { visitorId: d }), window.UserLeap.token = u, window.UserLeap.visitorId = d);
|
|
6092
6092
|
}
|
|
6093
6093
|
return (o = s.json) != null && o.logMessage && console.warn(`[Sprig] ${s.json.logMessage}`), s;
|
|
6094
6094
|
}
|
|
6095
6095
|
function Ce(e, t) {
|
|
6096
|
-
const r =
|
|
6096
|
+
const r = ct.getItemObject("userleap.ids");
|
|
6097
6097
|
let n = r[window.UserLeap.envId];
|
|
6098
|
-
n ? n[e] = t : n = { [e]: t }, r[window.UserLeap.envId] = n,
|
|
6098
|
+
n ? n[e] = t : n = { [e]: t }, r[window.UserLeap.envId] = n, ct.setItemObject("userleap.ids", r);
|
|
6099
6099
|
}
|
|
6100
6100
|
function Qi() {
|
|
6101
6101
|
return window.previewMode ? "0" : window.UserLeap.visitorId ?? "";
|
|
6102
6102
|
}
|
|
6103
|
-
function
|
|
6103
|
+
function Ae(e, t, r) {
|
|
6104
6104
|
const n = [window.UserLeap._API_URL, "sdk", e];
|
|
6105
6105
|
return t && t.forEach((s) => {
|
|
6106
|
-
n.push(s), s ===
|
|
6106
|
+
n.push(s), s === it ? n.push(window.UserLeap.envId) : s === st && n.push(Qi());
|
|
6107
6107
|
}), r && n.push(r), n.join("/");
|
|
6108
6108
|
}
|
|
6109
6109
|
const tr = async (e, t, r) => {
|
|
6110
|
-
var
|
|
6111
|
-
const { context: n, delay: s, avatars: i, forceBrandedLogo: a, endCard: o, isFeedback: l = !1, heatmap: c, locale: u, layout: d, previewMode: h, productConfig: f, questions: v, responseGroupUid: p, surveyId: I, uuid: m, vid: g, sessionReplay: b, studyType: C, surveyVisitorAttributes: A } = e, E =
|
|
6110
|
+
var te, q, me, Pe;
|
|
6111
|
+
const { context: n, delay: s, avatars: i, forceBrandedLogo: a, endCard: o, isFeedback: l = !1, heatmap: c, locale: u, layout: d, previewMode: h, productConfig: f, questions: v, responseGroupUid: p, surveyId: I, uuid: m, vid: g, sessionReplay: b, studyType: C, surveyVisitorAttributes: A } = e, E = Ue(window.UserLeap), T = mr(E), M = qn(E);
|
|
6112
6112
|
if (b) if (T) z.emit(B.ReplayCapture, { responseGroupUid: p, hasQuestions: !!(v != null && v.length), surveyId: I, uploadId: b.uploadId, replayType: b.replayDurationType ?? "before", seconds: b.replayDurationSeconds, generateVideoUploadUrlPayload: { mediaRecordingUid: Tt(), mediaType: "screen", questionId: 1, responseGroupUid: p, surveyId: I, updatedAt: (/* @__PURE__ */ new Date()).toISOString(), visitorId: window.UserLeap.visitorId, isReplay: !0 } });
|
|
6113
6113
|
else {
|
|
6114
|
-
if (!
|
|
6115
|
-
|
|
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: p, surveyId: I, visitorId: g, replayParams: b, completeUploadHeaders: E, apiUrl: window.UserLeap._API_URL, triggerTimestamp: Date.now(), isStandalone: v.length === 0 });
|
|
6116
6116
|
}
|
|
6117
6117
|
if (c) {
|
|
6118
|
-
if (!
|
|
6119
|
-
const { eventId: V, replayParams: ge, responseGroupUid: dt, surveyId:
|
|
6120
|
-
await
|
|
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: V, replayParams: ge, responseGroupUid: dt, surveyId: Xe } = c;
|
|
6120
|
+
await ne.replay.initializeReplay({ maxReplayDurationSeconds: 300, maxInflightRequests: window.UserLeap.maxInflightReplayRequests, teardownAfter: !0, apiUrl: window.UserLeap._API_URL, replaySettings: r }), ne.replay.tryReplayAction(() => {
|
|
6121
6121
|
var W;
|
|
6122
|
-
return (W =
|
|
6122
|
+
return (W = ne.replay) == null ? void 0 : W.scheduleCapture({ apiUrl: window.UserLeap._API_URL, completeUploadHeaders: E, eventId: V, isHeatmap: !0, replayParams: ge, responseGroupId: dt, surveyId: Xe, triggerTimestamp: Date.now(), visitorId: g });
|
|
6123
6123
|
}, "Error in scheduling/capturing replay");
|
|
6124
6124
|
}
|
|
6125
6125
|
if (g == null || !(v != null && v.length)) return N.info("CannotDisplaySurvey", { vid: g }), { success: !1, message: "[Sprig] no survey found", surveyState: "no survey" };
|
|
@@ -6133,20 +6133,20 @@ const tr = async (e, t, r) => {
|
|
|
6133
6133
|
const V = "Attempted to display survey to a different visitor";
|
|
6134
6134
|
return window.UserLeap.reportError("DisplaySurvey", new Error(V)), { success: !1, message: V, surveyState: "no survey" };
|
|
6135
6135
|
}
|
|
6136
|
-
N.info("ShowingSurvey", { surveyId: I }), (
|
|
6136
|
+
N.info("ShowingSurvey", { surveyId: I }), (te = ne.replay) == null || te.RecordSurveyShown({ id: I, userAgent: window.navigator.userAgent }), Lf.disable(), z.emit(B.SurveyWillPresent, { name: B.SurveyWillPresent, "survey.id": I, layout: d });
|
|
6137
6137
|
let k, R, x, S, D = document.createElement("div");
|
|
6138
6138
|
const P = (V) => {
|
|
6139
6139
|
const { "view.version": ge } = V;
|
|
6140
6140
|
ge !== E["x-ul-sdk-version"] && ou(), z.removeListener("verify.view.version", P);
|
|
6141
6141
|
};
|
|
6142
6142
|
z.on("verify.view.version", P), window.UserLeap.useMobileStyling = M, eu(E) ? (k = "ul-direct-embeded-frame", R = document.head, x = window, S = !1, (() => {
|
|
6143
|
-
const V =
|
|
6144
|
-
return ge || dt &&
|
|
6143
|
+
const V = Ue(window.UserLeap), ge = mr(V), dt = window.UserLeap.forceDirectEmbed, Xe = V["userleap-platform"] === "web";
|
|
6144
|
+
return ge || dt && Xe;
|
|
6145
6145
|
})() && (iu(I, l), D.id = k, window.UserLeap.container.appendChild(D), au(), z.emit(B.SurveyLifeCycle, { state: "presented" }), z.emit(B.SurveyPresented, { name: B.SurveyPresented, "survey.id": I }))) : { frameId: k, contentWinDocHead: R, contentWindow: x, hasOverlay: S, iframe: D } = Ff({ productConfig: f, useMobileStyling: M, surveyId: I, isFeedback: l, enableCspTrustedTypes: (q = window.UserLeap._config) == null ? void 0 : q.enableCspTrustedTypes }), window.UserLeap.frameId = k;
|
|
6146
6146
|
const w = { apiURL: window.UserLeap._API_URL, avatars: i, cards: v, configureExitOnOverlayClick: (V) => {
|
|
6147
6147
|
z.once(B.CloseSurveyOnOverlayClick, V);
|
|
6148
|
-
}, context: n, endCard: o, envId: window.UserLeap.envId, eventEmitFn: z.emit.bind(z), fontFamily: window.UserLeap.fontFamily, fontFamilyURL: window.UserLeap.fontFamilyURL, forceBrandedLogo: a, frame: D, headers: E, layout: d, locale: u, mobileSDKVersion: window.UserLeap.mobileSDKVersion, previewKey:
|
|
6149
|
-
(
|
|
6148
|
+
}, context: n, endCard: o, envId: window.UserLeap.envId, eventEmitFn: z.emit.bind(z), fontFamily: window.UserLeap.fontFamily, fontFamilyURL: window.UserLeap.fontFamilyURL, forceBrandedLogo: a, frame: D, headers: E, layout: d, locale: u, mobileSDKVersion: window.UserLeap.mobileSDKVersion, previewKey: Q.getItem("sprig.previewKey"), previewMode: h || !!window.previewMode, productConfig: { framePosition: f == null ? void 0 : f.framePosition, desktopDisplay: f == null ? void 0 : f.desktopDisplay, placement: f == null ? void 0 : f.placement }, responseGroupUid: p, startingQuestionIdx: (me = window.UserLeap.config) == null ? void 0 : me.startingQuestionIdx, studyType: C, styleNonce: window.UserLeap.styleNonce, surveyId: I, tabTitle: document.title, trackPageViewUrl: t, ulEvents: hr, upchunkLibraryURL: window.UserLeap.upchunkLibraryURL, useMobileStyling: M, userId: m, viewDocument: x == null ? void 0 : x.document, viewWindow: x, visitorAttributes: { externalUserId: window.UserLeap.userId, email: window.UserLeap.email }, surveyVisitorAttributes: A || {}, ...window.UserLeap._config };
|
|
6149
|
+
(Pe = window.UserLeap._config) != null && Pe.startingQuestionIdx && (window.UserLeap._config = { ...window.UserLeap._config, startingQuestionIdx: null });
|
|
6150
6150
|
const y = (l ? window.UserLeap.feedbackCustomStyles : window.UserLeap.customStyles) ?? f.customStyles;
|
|
6151
6151
|
w.customStyles = y, x && (x.__cfg = w);
|
|
6152
6152
|
const U = window.UserLeap.viewSDKURL ? window.UserLeap.viewSDKURL : w.path, F = document.getElementById(Ha);
|
|
@@ -6158,7 +6158,7 @@ const tr = async (e, t, r) => {
|
|
|
6158
6158
|
window.UserLeap.container && Object.assign(window.UserLeap.container.style, { display: "flex" });
|
|
6159
6159
|
};
|
|
6160
6160
|
if (w.installationMethod === "web-npm" || w.installationMethod === "web-npm-bundled") {
|
|
6161
|
-
const { default: V } = await import("./view-
|
|
6161
|
+
const { default: V } = await import("./view-E1bmiI1s.js").then((ge) => ge.z);
|
|
6162
6162
|
V.configure(w), S && window.UserLeap.container && O();
|
|
6163
6163
|
} else U && (j.src = `${U}${window.UserLeap.isMobileSDK ? "" : `?t=${Date.now()}`}`, S && j.addEventListener("load", () => {
|
|
6164
6164
|
window.UserLeap.container && O();
|
|
@@ -6294,26 +6294,26 @@ function ro(e, t) {
|
|
|
6294
6294
|
const cu = (e) => {
|
|
6295
6295
|
const { pageUrlEvents: t } = window.UserLeap._config, r = t == null ? void 0 : t.find((n) => n.id === e);
|
|
6296
6296
|
return !!r && ro(r, window.location.href);
|
|
6297
|
-
},
|
|
6297
|
+
}, rt = (e) => !!e && e.nodeType === Node.ELEMENT_NODE, qa = (e) => e instanceof HTMLElement || e instanceof SVGElement, In = ({ document: e, elementId: t, styleString: r, nonce: n }) => {
|
|
6298
6298
|
const s = e.getElementById(t);
|
|
6299
6299
|
if (s) return void (s.textContent = r);
|
|
6300
6300
|
const i = e.createElement("style");
|
|
6301
6301
|
n && (i.nonce = n), i.textContent = r, i.id = t, e.head.appendChild(i);
|
|
6302
6302
|
}, Ja = (e, t) => {
|
|
6303
6303
|
const r = t.querySelector(e);
|
|
6304
|
-
if (!
|
|
6304
|
+
if (!rt(r)) return 0;
|
|
6305
6305
|
const n = getComputedStyle(r);
|
|
6306
6306
|
return parseFloat(n.paddingLeft) + parseFloat(n.paddingRight) + (parseFloat(n.marginLeft) + parseFloat(n.marginRight)) + (parseFloat(n.borderLeftWidth) + parseFloat(n.borderRightWidth));
|
|
6307
6307
|
}, jf = (e, t, r) => {
|
|
6308
6308
|
const n = e.querySelector(".ul-card__container"), s = e.querySelector(".ul-app");
|
|
6309
6309
|
let i = 600, a = 360;
|
|
6310
|
-
if (
|
|
6310
|
+
if (rt(n) && rt(s)) {
|
|
6311
6311
|
const o = n.querySelector(".ul-card--matrix_grid"), l = !o && t && r;
|
|
6312
6312
|
try {
|
|
6313
6313
|
l && (s.style.width = "360px"), i = n.scrollHeight, i += ((d) => {
|
|
6314
6314
|
const h = d.querySelector(".sprig-question-body"), f = d.querySelector(".ul-card"), v = d.querySelector(".ul-card-main-content"), p = d.querySelector(".ul-footer"), I = d.querySelector(".sprig-container");
|
|
6315
6315
|
let m = 0;
|
|
6316
|
-
return
|
|
6316
|
+
return rt(f) && (m += f.scrollHeight - f.clientHeight), rt(v) && (m += v.scrollHeight - v.clientHeight), rt(h) && (m += h.scrollHeight - h.clientHeight), rt(p) && rt(I) && I.clientHeight === 0 && (m += p.clientHeight), m;
|
|
6317
6317
|
})(e);
|
|
6318
6318
|
const c = getComputedStyle(n), u = parseFloat(c.marginTop) + parseFloat(c.marginBottom);
|
|
6319
6319
|
i += u + (parseFloat(c.borderTopWidth) + parseFloat(c.borderBottomWidth)), o && (a = o.scrollWidth, a += Ja(".ul-card__container", e), a += Ja(".sprig-question-body", e));
|
|
@@ -6326,7 +6326,7 @@ const cu = (e) => {
|
|
|
6326
6326
|
const t = e.querySelector(".ul-card__container");
|
|
6327
6327
|
t && (t.scrollTop = 0);
|
|
6328
6328
|
}, uu = () => X, Lt = () => document.getElementById("sprig-feedback-container"), ui = () => document.getElementById("sprig-feedback-loading-animation"), du = () => !!document.getElementById(to);
|
|
6329
|
-
let Ka = !1, X = null,
|
|
6329
|
+
let Ka = !1, X = null, ze = null, no = !1, rr = null, pt = null;
|
|
6330
6330
|
const Wf = ["bottom-left", "bottom-right", "center-left", "center-right"], Cn = () => {
|
|
6331
6331
|
var t;
|
|
6332
6332
|
const e = window.UserLeap.container;
|
|
@@ -6346,9 +6346,9 @@ const Wf = ["bottom-left", "bottom-right", "center-left", "center-right"], Cn =
|
|
|
6346
6346
|
}
|
|
6347
6347
|
return !1;
|
|
6348
6348
|
}, Jt = () => {
|
|
6349
|
-
if (!X || !
|
|
6349
|
+
if (!X || !ze) return;
|
|
6350
6350
|
const e = ui();
|
|
6351
|
-
e && e.remove(), X.style.height = "auto", X.style.width = "auto",
|
|
6351
|
+
e && e.remove(), X.style.height = "auto", X.style.width = "auto", ze.disabled = !1, no = !1;
|
|
6352
6352
|
}, di = () => {
|
|
6353
6353
|
if (X && !ui()) {
|
|
6354
6354
|
const e = (() => {
|
|
@@ -6367,7 +6367,7 @@ const Wf = ["bottom-left", "bottom-right", "center-left", "center-right"], Cn =
|
|
|
6367
6367
|
e && (X.style.height = "300px", X.style.width = "360px", X.appendChild(e));
|
|
6368
6368
|
}
|
|
6369
6369
|
}, Za = () => {
|
|
6370
|
-
X &&
|
|
6370
|
+
X && ze && (kn(0), ze.disabled = !0, no = !0);
|
|
6371
6371
|
}, mu = async (e, t, r) => {
|
|
6372
6372
|
const { buttonTheme: n, customStyles: s, eventId: i, placement: a, desktopDisplay: o, feedbackLabel: l, surveyUuid: c, surveyId: u } = e;
|
|
6373
6373
|
window.UserLeap.feedbackCustomStyles = void 0;
|
|
@@ -6382,21 +6382,21 @@ const Wf = ["bottom-left", "bottom-right", "center-left", "center-right"], Cn =
|
|
|
6382
6382
|
if (Lt() || !Wf.includes(m)) return;
|
|
6383
6383
|
const [g, b] = m.split("-"), C = document.createElement("div");
|
|
6384
6384
|
C.id = "sprig-feedback-container", C.classList.add(`sprig-feedback-container-${b}`, `sprig-feedback-container-${g}`), document.body.appendChild(C);
|
|
6385
|
-
})(a), d = Lt(),
|
|
6385
|
+
})(a), d = Lt(), ze = document.createElement("button");
|
|
6386
6386
|
const v = document.createElement("div");
|
|
6387
|
-
v.className = "sprig-feedback-button-label", v.innerText = l,
|
|
6387
|
+
v.className = "sprig-feedback-button-label", v.innerText = l, ze.appendChild(v), ze.id = "sprig-feedback-button", ze.classList.add(`sprig-feedback-button-${f}`, `sprig-feedback-button-${h}`, `sprig-feedback-button-${n}`, "fade-in-transition"), z.on(hr.SURVEY_FADING_OUT, fs), ze.addEventListener("click", async () => {
|
|
6388
6388
|
const m = document.getElementById("sprig-feedback-error-container");
|
|
6389
6389
|
if (du() || pu()) {
|
|
6390
6390
|
if (fs()) {
|
|
6391
|
-
z.emit(B.SurveyCloseRequested, { name: B.SurveyCloseRequested, initiator:
|
|
6391
|
+
z.emit(B.SurveyCloseRequested, { name: B.SurveyCloseRequested, initiator: Fe.FeedbackClosed, studyType: "feedbackButton", "survey.id": u }), z.emit(B.SurveyWillClose, { name: B.SurveyWillClose, initiator: Fe.FeedbackClosed, studyType: "feedbackButton", "survey.id": u });
|
|
6392
6392
|
const b = Lt();
|
|
6393
6393
|
m && b && (b.remove(), rr = null, X = null);
|
|
6394
6394
|
}
|
|
6395
6395
|
return;
|
|
6396
6396
|
}
|
|
6397
|
-
if (qn(
|
|
6397
|
+
if (qn(Ue(window.UserLeap)) || no || Za(), t) return X && X.classList.add("sprig-feedback-loading-container-previews"), await tr(t), void Jt();
|
|
6398
6398
|
const g = await (async (b) => {
|
|
6399
|
-
const C = await
|
|
6399
|
+
const C = await Be(Ae("1", [st], "startFeedbackStudy"), { body: JSON.stringify({ surveyUuid: b }), method: "POST" });
|
|
6400
6400
|
return C.ok ? C.json : null;
|
|
6401
6401
|
})(c);
|
|
6402
6402
|
if (g) z.once(B.SurveyAppeared, Jt), tr({ ...g, studyType: "feedbackButton" }, r);
|
|
@@ -6404,7 +6404,7 @@ const Wf = ["bottom-left", "bottom-right", "center-left", "center-right"], Cn =
|
|
|
6404
6404
|
const b = Vf();
|
|
6405
6405
|
X.appendChild(b), Jt(), X.style.height = "300px", X.style.width = "360px";
|
|
6406
6406
|
}
|
|
6407
|
-
}), d == null || d.appendChild(
|
|
6407
|
+
}), d == null || d.appendChild(ze), z.emit(B.FeedbackButtonLoaded, { name: B.FeedbackButtonLoaded, "survey.id": u });
|
|
6408
6408
|
const { useMobileStyling: p, _config: { border: I } } = window.UserLeap;
|
|
6409
6409
|
if (Ka || p) kn(0);
|
|
6410
6410
|
else {
|
|
@@ -6563,12 +6563,12 @@ class $f {
|
|
|
6563
6563
|
return r.type === "max" ? t > r.value : r.type === "min" && t < r.value;
|
|
6564
6564
|
}
|
|
6565
6565
|
}
|
|
6566
|
-
const wr = {},
|
|
6566
|
+
const wr = {}, We = (e) => {
|
|
6567
6567
|
const t = new $f(e);
|
|
6568
6568
|
return wr[e] = t, t;
|
|
6569
6569
|
}, gu = (e, t) => {
|
|
6570
6570
|
let r = wr[e];
|
|
6571
|
-
return r || (r =
|
|
6571
|
+
return r || (r = We(e)), r.report(t);
|
|
6572
6572
|
}, Yf = ({ reportingIntervalSeconds: e, postMetrics: t }) => {
|
|
6573
6573
|
e ? setInterval(() => {
|
|
6574
6574
|
(async (r) => {
|
|
@@ -6621,7 +6621,7 @@ const Yr = (e, t = 1) => {
|
|
|
6621
6621
|
}, Jf = (e) => e.forEach(qf), Kf = () => {
|
|
6622
6622
|
En.report(ht[En.name] || 0), xn.report(ht[xn.name] || 0), Rn.report(ht[Rn.name] || 0), Ln.report(ht[Ln.name] || 0), ht = {};
|
|
6623
6623
|
}, Zf = (e = 1e3) => {
|
|
6624
|
-
En =
|
|
6624
|
+
En = We("sdk_mutations_nodes_added"), xn = We("sdk_mutations_nodes_removed"), Rn = We("sdk_mutations_attributes_changed"), Ln = We("sdk_mutations_character_data"), Qa = new MutationObserver(Jf), Qa.observe(document, { attributes: !0, attributeOldValue: !0, characterData: !0, characterDataOldValue: !0, childList: !0, subtree: !0 }), setInterval(Kf, e);
|
|
6625
6625
|
}, Xf = ({ isWeb: e, reportingIntervalSeconds: t, thresholds: r, postMetrics: n }) => {
|
|
6626
6626
|
((s, i) => {
|
|
6627
6627
|
Kt = {}, hi = !1, s == null || s.forEach((a) => {
|
|
@@ -6630,15 +6630,15 @@ const Yr = (e, t = 1) => {
|
|
|
6630
6630
|
}), mi = i;
|
|
6631
6631
|
})(r, (s, i) => {
|
|
6632
6632
|
var a, o;
|
|
6633
|
-
if ((a =
|
|
6633
|
+
if ((a = ne.replay) != null && a.isReplayRecording()) {
|
|
6634
6634
|
const l = `Value: ${s} on ${i.metric} violated threshold of ${i.type} ${i.value}`;
|
|
6635
|
-
(o =
|
|
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;
|
|
6636
6636
|
}
|
|
6637
6637
|
}), Yf({ reportingIntervalSeconds: t, postMetrics: n }), e && (((s = 1e3) => {
|
|
6638
|
-
const i =
|
|
6638
|
+
const i = We("sdk_event_queue_latency_seconds");
|
|
6639
6639
|
gi(s, i);
|
|
6640
6640
|
})(), ((s = 1e4) => {
|
|
6641
|
-
yu =
|
|
6641
|
+
yu = We("sdk_dom_nodes_count"), wu = We("sdk_page_html_characters"), Xa(), setInterval(Xa, s);
|
|
6642
6642
|
})(), Zf());
|
|
6643
6643
|
}, Qf = "test", eg = ["popState", "pushState", "replaceState"];
|
|
6644
6644
|
let so, nr;
|
|
@@ -6654,10 +6654,10 @@ function sr(e) {
|
|
|
6654
6654
|
if (Cn()) return;
|
|
6655
6655
|
const c = Lt();
|
|
6656
6656
|
c && (cu(rr) || (c.remove(), rr = null, X = null));
|
|
6657
|
-
})(),
|
|
6657
|
+
})(), Q.getItem("sprig.isCapturingHeatmap") && ((l = (o = ne.replay) == null ? void 0 : o.checkPendingHeatmapsUrl()) == null || l.then((c) => {
|
|
6658
6658
|
var u;
|
|
6659
|
-
c && ((u =
|
|
6660
|
-
})), !Cn() && n && a && a !== window.location.href && e && eg.includes(e.type) && window.UserLeap("dismissActiveSurvey",
|
|
6659
|
+
c && ((u = ne.replay) == null || u.uploadReadyPendingCaptures(!0));
|
|
6660
|
+
})), !Cn() && n && a && a !== window.location.href && e && eg.includes(e.type) && window.UserLeap("dismissActiveSurvey", Fe.PageChange);
|
|
6661
6661
|
}
|
|
6662
6662
|
const Su = { capture: !0 }, tg = () => {
|
|
6663
6663
|
const e = window.UserLeap._config.interactiveEvents.filter((r) => ro(r, window.location.href)).map((r) => {
|
|
@@ -6675,13 +6675,13 @@ const Su = { capture: !0 }, tg = () => {
|
|
|
6675
6675
|
window.UserLeap._config.interactiveEventsHandler && window.removeEventListener("click", window.UserLeap._config.interactiveEventsHandler, Su), delete window.UserLeap._config.interactiveEventsHandler;
|
|
6676
6676
|
};
|
|
6677
6677
|
function Cu() {
|
|
6678
|
-
const e =
|
|
6678
|
+
const e = ct.getItemObject("userleap.ids");
|
|
6679
6679
|
return e && e[window.UserLeap.envId] || {};
|
|
6680
6680
|
}
|
|
6681
6681
|
function ku() {
|
|
6682
6682
|
if (window.previewMode) return;
|
|
6683
|
-
const e =
|
|
6684
|
-
window.UserLeap.visitorId = t || Tt(), N.info("NewVid", { vid: window.UserLeap.visitorId }), Ce("vid", window.UserLeap.visitorId), t || (e[window.UserLeap.envId] = window.UserLeap.visitorId,
|
|
6683
|
+
const e = ct.getItemObject("sprig.anon.env.vid.map") || {}, t = e[window.UserLeap.envId];
|
|
6684
|
+
window.UserLeap.visitorId = t || Tt(), N.info("NewVid", { vid: window.UserLeap.visitorId }), Ce("vid", window.UserLeap.visitorId), t || (e[window.UserLeap.envId] = window.UserLeap.visitorId, ct.setItemObject("sprig.anon.env.vid.map", e)), z.emit(B.VisitorIDUpdated, { visitorId: window.UserLeap.visitorId });
|
|
6685
6685
|
}
|
|
6686
6686
|
function Eu(e, t, r, n) {
|
|
6687
6687
|
var s, i;
|
|
@@ -6689,7 +6689,7 @@ function Eu(e, t, r, n) {
|
|
|
6689
6689
|
if (e.endsWith("mock_snippet.html")) return;
|
|
6690
6690
|
N.info("PageView", { url: e });
|
|
6691
6691
|
const a = (s = document == null ? void 0 : document.querySelector('meta[name="description"]')) == null ? void 0 : s.getAttribute("content");
|
|
6692
|
-
(i =
|
|
6692
|
+
(i = ne.replay) == null || i.RecordPageView({ ...a && { description: a }, url: e, referrer: document.referrer, pageTitle: document.title });
|
|
6693
6693
|
const o = window.UserLeap._config.pageUrlEvents;
|
|
6694
6694
|
let l = !1;
|
|
6695
6695
|
if (o && o.length) for (let u = 0; u < o.length && (l = ro(o[u], e), !l); u++) ;
|
|
@@ -6714,8 +6714,8 @@ function rg() {
|
|
|
6714
6714
|
async function ys(e, t) {
|
|
6715
6715
|
const r = Qi();
|
|
6716
6716
|
e && !t && (window.UserLeap._config.mode = Qf);
|
|
6717
|
-
const n = qn(
|
|
6718
|
-
const a = new URL(
|
|
6717
|
+
const n = qn(Ue(window.UserLeap)), s = await Be(function(i) {
|
|
6718
|
+
const a = new URL(Ae("1", [it], "questions"));
|
|
6719
6719
|
return Object.entries(i || {}).forEach(([o, l]) => {
|
|
6720
6720
|
l && a.searchParams.append(o, String(l));
|
|
6721
6721
|
}), a.toString();
|
|
@@ -6748,7 +6748,7 @@ const sg = function(e) {
|
|
|
6748
6748
|
const { userId: i, anonymousId: a, metadata: o = {}, properties: l, showSurveyCallback: c } = s;
|
|
6749
6749
|
let { eventName: u } = s;
|
|
6750
6750
|
if (window.UserLeap.debugMode && u !== bu && console.info("[DEBUG] Sprig track", s), e.mode === "test") return;
|
|
6751
|
-
const d =
|
|
6751
|
+
const d = Q.getItem("sprig.previewKey") ?? void 0;
|
|
6752
6752
|
if (e.requireUserIdForTracking && !window.UserLeap.userId && !i) {
|
|
6753
6753
|
const E = "[Sprig] - Skipping tracking without userId";
|
|
6754
6754
|
return console.warn(E), { success: !1, message: E, surveyState: "no survey" };
|
|
@@ -6759,15 +6759,15 @@ const sg = function(e) {
|
|
|
6759
6759
|
return console.warn(E), { success: !1, message: E, surveyState: "no survey" };
|
|
6760
6760
|
}
|
|
6761
6761
|
const h = nr ?? window.location.href;
|
|
6762
|
-
o.url || (o.url = h), Ce("trackStartUrl", h), (g = (m = window.UserLeap) == null ? void 0 : m._config) != null && g.optimizelyEnabled && (mr(
|
|
6763
|
-
const f = window.UserLeap.delayingSurvey || du() ? await
|
|
6762
|
+
o.url || (o.url = h), Ce("trackStartUrl", h), (g = (m = window.UserLeap) == null ? void 0 : m._config) != null && g.optimizelyEnabled && (mr(Ue(window.UserLeap)) || dn.getAndSetWebOptimizelyExperiments(), o.optimizelyExperiments = Object.assign({}, dn.getAllOptimizelyExperiments())), (C = (b = window.UserLeap) == null ? void 0 : b._config) != null && C.launchDarklyEnabled && (o.launchDarklyFlags = pi.getAllLaunchDarklyVariations()), i && (window.UserLeap.userId = i), a && (window.UserLeap.partnerAnonymousId = a), l && (o.eventProperties = l), (A = ne.replay) == null || A.RecordEvent({ name: u, url: o.url }), N.info("TrackEvent", { eventName: u });
|
|
6763
|
+
const f = window.UserLeap.delayingSurvey || du() ? await Be(Ae("1", [st], "events/batch"), { body: JSON.stringify({ events: [{ event: u, metadata: o }], previewKey: d }), method: "POST", shouldDropOnRateLimit: !0 }) : await Be(Ae("1", [st], "events"), { body: JSON.stringify({ event: u, metadata: o, previewKey: d }), method: "POST", shouldDropOnRateLimit: !0 });
|
|
6764
6764
|
if (!f.ok) {
|
|
6765
6765
|
const E = "[Sprig] (ERR-421) Failed to track event";
|
|
6766
6766
|
return f.reportError && (console.warn(E, f.error), f.error && window.UserLeap.reportError("track", f.error)), { success: !1, message: E, error: f.error, surveyState: "no survey" };
|
|
6767
6767
|
}
|
|
6768
6768
|
i && Ce("uid", i), a && Ce("aid", a);
|
|
6769
6769
|
const v = f.json;
|
|
6770
|
-
v.invalidPreviewKey &&
|
|
6770
|
+
v.invalidPreviewKey && Q.removeItem("sprig.previewKey");
|
|
6771
6771
|
const p = o.trackPageView ? o.url : void 0;
|
|
6772
6772
|
return v != null && v.feedbackButton && mu(v.feedbackButton, void 0, p), await async function(E, T) {
|
|
6773
6773
|
var k, R;
|
|
@@ -6782,10 +6782,10 @@ const sg = function(e) {
|
|
|
6782
6782
|
var o;
|
|
6783
6783
|
const a = (o = s == null ? void 0 : s.querySelector(`[id="${to}"]`)) == null ? void 0 : o.contentDocument;
|
|
6784
6784
|
a && In({ document: a, elementId: "ul-custom-style", styleString: i });
|
|
6785
|
-
}, n = { displaySurvey: async (s) => (console.warn("[Sprig] displaySurvey should only be used to debug your studies; not intended for production usage."), window.UserLeap("dismissActiveSurvey",
|
|
6786
|
-
window.UserLeap("dismissActiveSurvey",
|
|
6785
|
+
}, n = { displaySurvey: async (s) => (console.warn("[Sprig] displaySurvey should only be used to debug your studies; not intended for production usage."), window.UserLeap("dismissActiveSurvey", Fe.Override), ys({ surveyId: s }, !0)), _previewSurvey(s) {
|
|
6786
|
+
window.UserLeap("dismissActiveSurvey", Fe.Override), ys({ surveyTemplateId: s }, !1);
|
|
6787
6787
|
}, _reviewSurvey(s) {
|
|
6788
|
-
window.UserLeap("dismissActiveSurvey",
|
|
6788
|
+
window.UserLeap("dismissActiveSurvey", Fe.Override), ys({ surveyId: s }, !1);
|
|
6789
6789
|
}, previewSurvey(s) {
|
|
6790
6790
|
n._previewSurvey(s);
|
|
6791
6791
|
}, reviewSurvey(s) {
|
|
@@ -6796,8 +6796,8 @@ const sg = function(e) {
|
|
|
6796
6796
|
window.UserLeap._queue.unpause();
|
|
6797
6797
|
}, setVisitorToken() {
|
|
6798
6798
|
console.warn("[Sprig] setVisitorToken is deprecated.");
|
|
6799
|
-
}, dismissActiveSurvey(s =
|
|
6800
|
-
window.UserLeap.container && (s ===
|
|
6799
|
+
}, dismissActiveSurvey(s = Fe.API) {
|
|
6800
|
+
window.UserLeap.container && (s === Fe.Closed && window.Sprig.trackHistory && window.Sprig.trackHistory({ event: "closed" }), z.emit(B.SurveyCloseRequested, { name: B.SurveyCloseRequested, initiator: s, "survey.id": parseInt(window.UserLeap.container.dataset.studyId) }), z.emit(B.SurveyWillClose, { name: B.SurveyWillClose, initiator: s, "survey.id": parseInt(window.UserLeap.container.dataset.studyId) }));
|
|
6801
6801
|
}, async setAttribute(s, i) {
|
|
6802
6802
|
if (!s || !i && i !== 0 && i !== !1) {
|
|
6803
6803
|
const a = "[Sprig] - Disregarding empty attribute / value provided";
|
|
@@ -6829,7 +6829,7 @@ const sg = function(e) {
|
|
|
6829
6829
|
if (!(o && Object.keys(o).length !== 0 || i && window.UserLeap.userId !== i || a && window.UserLeap.partnerAnonymousId !== a)) return { success: !0 };
|
|
6830
6830
|
const l = {};
|
|
6831
6831
|
let c;
|
|
6832
|
-
return i && (l.userId = window.UserLeap.userId = i), a && (l.partnerAnonymousId = window.UserLeap.partnerAnonymousId = a), o && Object.keys(o).length > 0 ? (c = await
|
|
6832
|
+
return i && (l.userId = window.UserLeap.userId = i), a && (l.partnerAnonymousId = window.UserLeap.partnerAnonymousId = a), o && Object.keys(o).length > 0 ? (c = await Be(Ae("1", [it, st], "attributes"), { body: JSON.stringify(o), method: "PUT" }), c.ok ? Object.assign(On, o) : c.reportError && (console.warn("[Sprig] (ERR-432) identifyAndSetAttributes failed", c.error), c.error && window.UserLeap.reportError("identifyAndSetAttributes", c.error))) : c = await Be(Ae("1", [it, st]), { body: JSON.stringify(l), method: "PUT" }), o && o[Vt] && (window.UserLeap.email = o[Vt]), c.ok && (i && Ce("uid", i), a && Ce("aid", a)), { success: !!c.ok };
|
|
6833
6833
|
}, async removeAttributes(s) {
|
|
6834
6834
|
if (window.UserLeap.debugMode && console.info("[DEBUG] Sprig removeAttributes", s), e.mode === "test") return;
|
|
6835
6835
|
if (s == null || s.length === 0) {
|
|
@@ -6840,7 +6840,7 @@ const sg = function(e) {
|
|
|
6840
6840
|
const a = "[Sprig] - Skipping tracking without userId";
|
|
6841
6841
|
return console.warn(a), { success: !1, message: a };
|
|
6842
6842
|
}
|
|
6843
|
-
const i = await
|
|
6843
|
+
const i = await Be(Ae("1", [it, st], "attributes"), { body: JSON.stringify({ delete: s }), method: "DELETE" });
|
|
6844
6844
|
return !i.ok && i.reportError && (console.warn("[Sprig] (ERR-433) Remove attributes failed", i.error), i.error && window.UserLeap.reportError("removeAttributes", i.error)), { success: !!i.ok };
|
|
6845
6845
|
}, async addSurveyListener(s) {
|
|
6846
6846
|
z.on(B.SurveyLifeCycle, s);
|
|
@@ -6853,7 +6853,7 @@ const sg = function(e) {
|
|
|
6853
6853
|
}, async removeAllListeners() {
|
|
6854
6854
|
z.removeAllListeners();
|
|
6855
6855
|
}, setPreviewKey(s) {
|
|
6856
|
-
s && typeof s == "string" &&
|
|
6856
|
+
s && typeof s == "string" && Q.isStorageAvailable && s && Q.setItem("sprig.previewKey", s);
|
|
6857
6857
|
}, async setUserId(s) {
|
|
6858
6858
|
var o;
|
|
6859
6859
|
if (window.UserLeap.debugMode && console.info("[DEBUG] Sprig setUserId", s), s == null) {
|
|
@@ -6862,8 +6862,8 @@ const sg = function(e) {
|
|
|
6862
6862
|
}
|
|
6863
6863
|
if (e.mode === "test" || s === window.UserLeap.userId) return;
|
|
6864
6864
|
window.UserLeap.userId = s;
|
|
6865
|
-
const i = window.UserLeap.visitorId, a = await
|
|
6866
|
-
a.ok ? (i !== window.UserLeap.visitorId && ((o =
|
|
6865
|
+
const i = window.UserLeap.visitorId, a = await Be(Ae("1", [it, st]), { body: JSON.stringify({ userId: s }), method: "PUT" });
|
|
6866
|
+
a.ok ? (i !== window.UserLeap.visitorId && ((o = ne.replay) == null || o.clearUserReplayData()), Ce("uid", s)) : a.reportError && (console.warn("[Sprig] (ERR-420) Failed to set user id", a.error), a.error && window.UserLeap.reportError("setUserId", a.error));
|
|
6867
6867
|
}, async setPartnerAnonymousId(s) {
|
|
6868
6868
|
if (window.UserLeap.debugMode && console.info("[DEBUG] Sprig setPartnerAnonymousId", s), s == null) {
|
|
6869
6869
|
const i = `[Sprig] - Invalid partnerAnonymousId ${s}`;
|
|
@@ -6880,15 +6880,15 @@ const sg = function(e) {
|
|
|
6880
6880
|
var h, f;
|
|
6881
6881
|
const a = typeof s == "string" ? parseInt(s, 10) : s, o = typeof i == "string" ? parseInt(i, 10) : i;
|
|
6882
6882
|
isNaN(a) || isNaN(o) || (window.UserLeap.windowDimensions = { width: a, height: o });
|
|
6883
|
-
const l =
|
|
6883
|
+
const l = Ue(window.UserLeap), c = qn(l), u = l["userleap-platform"] === "web";
|
|
6884
6884
|
if (!window.UserLeap.frameId) return;
|
|
6885
6885
|
const d = document.getElementById(window.UserLeap.frameId);
|
|
6886
6886
|
d && (window.UserLeap.useMobileStyling && ((h = window.UserLeap.windowDimensions) != null && h.width && (d.style.width = `${window.UserLeap.windowDimensions.width}px`), (f = window.UserLeap.windowDimensions) != null && f.height && (d.style.maxHeight = window.UserLeap.windowDimensions.height - 20 + "px"), d.contentDocument && (d.style.height = String(jf(d.contentDocument, u && !c, eu(l))[0]) + "px")), z.emit(B.SurveyDimensions, { name: B.SurveyDimensions, contentFrameWidth: d.clientWidth, contentFrameHeight: d.clientHeight, "survey.id": parseInt(window.UserLeap.container.dataset.studyId) }));
|
|
6887
6887
|
}, logoutUser() {
|
|
6888
6888
|
var s;
|
|
6889
|
-
window.UserLeap.debugMode && console.info("[DEBUG] Sprig logout"), N.info("LogOut", { vid: window.UserLeap.visitorId, userId: window.UserLeap.userId }), window.UserLeap.visitorId = null, window.UserLeap.userId = null, window.UserLeap.partnerAnonymousId = null, window.UserLeap.token = null, window.UserLeap.email = null,
|
|
6889
|
+
window.UserLeap.debugMode && console.info("[DEBUG] Sprig logout"), N.info("LogOut", { vid: window.UserLeap.visitorId, userId: window.UserLeap.userId }), window.UserLeap.visitorId = null, window.UserLeap.userId = null, window.UserLeap.partnerAnonymousId = null, window.UserLeap.token = null, window.UserLeap.email = null, ct.removeItem("userleap.ids"), window.UserLeap._queue.isPaused() && window.UserLeap._queue.empty(), ku(), (s = ne.replay) == null || s.clearUserReplayData(), window.UserLeap._queue.unpause();
|
|
6890
6890
|
}, teardown() {
|
|
6891
|
-
["hashchange", "popstate"].forEach((s) => window.removeEventListener(s, sr, !0)), window.UserLeap._config.interactiveEvents && Iu(), window.UserLeap("dismissActiveSurvey",
|
|
6891
|
+
["hashchange", "popstate"].forEach((s) => window.removeEventListener(s, sr, !0)), window.UserLeap._config.interactiveEvents && Iu(), window.UserLeap("dismissActiveSurvey", Fe.API), delete window.UserLeap, delete window.Sprig, delete window._Sprig;
|
|
6892
6892
|
}, integrateOptimizely(s, i = !0) {
|
|
6893
6893
|
var a, o;
|
|
6894
6894
|
if ((o = (a = window.UserLeap) == null ? void 0 : a._config) != null && o.optimizelyEnabled) try {
|
|
@@ -6926,19 +6926,19 @@ const sg = function(e) {
|
|
|
6926
6926
|
gu(s, i);
|
|
6927
6927
|
}, _completeSessionReplay: async ({ surveyId: s, responseGroupUuid: i, eventDigest: a }) => {
|
|
6928
6928
|
var o;
|
|
6929
|
-
return
|
|
6929
|
+
return ne.replay ? (o = ne.replay) == null ? void 0 : o._completeSessionReplay({ surveyId: s, responseGroupUuid: i, eventDigest: a, headers: Ue(window.UserLeap) }) : (window.UserLeap.reportError("_completeSessionReplay", new Error("Replay module not registered")), !1);
|
|
6930
6930
|
}, pauseReplayRecording() {
|
|
6931
6931
|
var s, i, a, o;
|
|
6932
|
-
(i = (s =
|
|
6932
|
+
(i = (s = ne.replay) == null ? void 0 : s.isReplayPaused) != null && i.call(s) || ((o = (a = ne.replay) == null ? void 0 : a.recordReplayPaused) == null || o.call(a));
|
|
6933
6933
|
}, resumeReplayRecording() {
|
|
6934
6934
|
var s, i, a, o, l, c;
|
|
6935
|
-
(i = (s =
|
|
6935
|
+
(i = (s = ne.replay) == null ? void 0 : s.isReplayPaused) != null && i.call(s) && ((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));
|
|
6936
6936
|
} };
|
|
6937
6937
|
Object.assign(window.UserLeap, n);
|
|
6938
6938
|
};
|
|
6939
6939
|
async function ig(e, t, r = {}, n = {}) {
|
|
6940
6940
|
const s = window.__cfg && window.__cfg.mode, i = Qi(), a = window.UserLeap.envId, o = window.document.documentElement, l = { mode: s, screenWidth: window.screen.width, screenHeight: window.screen.height, clientWidth: o.clientWidth, clientHeight: o.clientHeight, location: nr ?? window.location.href, language: window.navigator.language, ...r }, c = { action: e, breadcrumbs: N.breadcrumbs, err: { message: `${t == null ? void 0 : t.name} - ${t == null ? void 0 : t.message}`, stack: t == null ? void 0 : t.stack }, meta: l, vid: i, envId: a, ...n };
|
|
6941
|
-
(await
|
|
6941
|
+
(await Be(Ae("1", null, "errors"), { method: "POST", headers: { "x-ul-error": window.btoa(`userleap-${Date.now()}-error`) }, body: JSON.stringify(c), shouldDropOnRateLimit: !0 })).ok || console.warn("[Sprig] (ERR-444) Failed to report error to API", t);
|
|
6942
6942
|
}
|
|
6943
6943
|
function og(e = {}) {
|
|
6944
6944
|
var n;
|
|
@@ -6964,23 +6964,23 @@ function og(e = {}) {
|
|
|
6964
6964
|
for (let I = 0; I < o.length; I++) window.UserLeap._queue.push(o[I]);
|
|
6965
6965
|
const l = s.token;
|
|
6966
6966
|
l ? (window.UserLeap.token = l, window.UserLeap.visitorId = s.vid ?? null, window.UserLeap.userId = s.uid ?? null, window.UserLeap.partnerAnonymousId = s.aid ?? null) : ku();
|
|
6967
|
-
const c = mr(
|
|
6967
|
+
const c = mr(Ue(window.UserLeap));
|
|
6968
6968
|
(h = window.SprigLoggerCallback) == null || h.call(window, "Sprig fetching config");
|
|
6969
6969
|
const u = await async function(I) {
|
|
6970
6970
|
var C, A;
|
|
6971
|
-
const m =
|
|
6971
|
+
const m = Ue(window.UserLeap);
|
|
6972
6972
|
document.addEventListener("securitypolicyviolation", Va);
|
|
6973
|
-
const g = await
|
|
6973
|
+
const g = await Ze(Ae("1", [it], "config"), { headers: m });
|
|
6974
6974
|
if (document.removeEventListener("securitypolicyviolation", Va), !g.ok) return (C = window.SprigLoggerCallback) == null || C.call(window, "Sprig config fetch failed"), g.reportError && (console.warn("[Sprig] (ERR-422) Failed to load configuration", g.error), g.error && window.UserLeap.reportError("applyRemoteConfig", g.error)), ci("Disabled: failed to fetch configuration"), I;
|
|
6975
6975
|
const b = g.json;
|
|
6976
6976
|
return b != null && b.disabled ? ((A = window.SprigLoggerCallback) == null || A.call(window, "Sprig config fetch disabled"), ci(`Disabled: ${b.disabled}`), { disabled: b.disabled }) : Object.assign({}, b, I);
|
|
6977
6977
|
}(e);
|
|
6978
6978
|
if ((f = window.SprigLoggerCallback) == null || f.call(window, "Sprig fetched config"), Xf({ isWeb: !c, reportingIntervalSeconds: u.metricsReportingEnabled || u.mobileMetricsReportingEnabled ? u.metricsReportingIntervalSeconds : 0, thresholds: u.metricThresholds, postMetrics: async (I) => {
|
|
6979
6979
|
var m;
|
|
6980
|
-
await
|
|
6980
|
+
await Be(Ae("1", [it], "metrics"), { body: I, method: "POST", headers: { "x-ul-replay-enabled": `${!!((m = ne.replay) != null && m.isReplayRecording())}` }, shouldDropOnRateLimit: !0 });
|
|
6981
6981
|
} }), !c) {
|
|
6982
|
-
const I = u.alwaysOnReplay ? { userAgent: window.navigator.userAgent, surveyId: u.alwaysOnReplay.surveyId, responseGroupUuid: u.alwaysOnReplay.responseGroupUuid, sdkVersion: "2.41.
|
|
6983
|
-
await ((v =
|
|
6982
|
+
const I = u.alwaysOnReplay ? { userAgent: window.navigator.userAgent, surveyId: u.alwaysOnReplay.surveyId, responseGroupUuid: u.alwaysOnReplay.responseGroupUuid, sdkVersion: "2.41.2", maxDurationSeconds: u.alwaysOnReplay.maxDurationSeconds } : void 0;
|
|
6983
|
+
await ((v = ne.replay) == null ? void 0 : v.initializeReplay({ maxReplayDurationSeconds: u.maxReplayDurationSeconds, maxInflightRequests: window.UserLeap.maxInflightReplayRequests ?? 2, replaySettings: u.replaySettings, apiUrl: window.UserLeap._API_URL, alwaysOnConfig: I })), so = u.replaySettings;
|
|
6984
6984
|
}
|
|
6985
6985
|
sg(u), await ng(u), window.UserLeap._queue.unpause(), (p = window.SprigLoggerCallback) == null || p.call(window, "SdkReady"), z.emit(B.SDKReady, { mobileMetricsReportingEnabled: !!u.mobileMetricsReportingEnabled, metricsReportingInterval: u.metricsReportingIntervalSeconds || 0, metricsThresholds: u.metricThresholds || [], maxMobileReplayDurationSeconds: u.maxMobileReplayDurationSeconds, mobileReplaySettings: u.mobileReplaySettings }), z.emit(B.VisitorIDUpdated, { visitorId: window.UserLeap.visitorId }), z.on(B.VisitorIDUpdated, () => {
|
|
6986
6986
|
for (const I in On) delete On[I];
|
|
@@ -7075,7 +7075,7 @@ const ey = { configure: (e) => {
|
|
|
7075
7075
|
const t = window.Sprig;
|
|
7076
7076
|
return t.appId = e.envId, t._queue = [], window.UserLeap = t, og(e), window.Sprig;
|
|
7077
7077
|
} };
|
|
7078
|
-
var
|
|
7078
|
+
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 || {}), He = ((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))(He || {});
|
|
7079
7079
|
const yi = (e, t) => t.some((r) => e instanceof r);
|
|
7080
7080
|
let rl, nl;
|
|
7081
7081
|
const wi = /* @__PURE__ */ new WeakMap(), ws = /* @__PURE__ */ new WeakMap(), An = /* @__PURE__ */ new WeakMap();
|
|
@@ -7084,16 +7084,16 @@ let vi = { get(e, t, r) {
|
|
|
7084
7084
|
if (t === "done") return wi.get(e);
|
|
7085
7085
|
if (t === "store") return r.objectStoreNames[1] ? void 0 : r.objectStore(r.objectStoreNames[0]);
|
|
7086
7086
|
}
|
|
7087
|
-
return
|
|
7087
|
+
return at(e[t]);
|
|
7088
7088
|
}, set: (e, t, r) => (e[t] = r, !0), has: (e, t) => e instanceof IDBTransaction && (t === "done" || t === "store") || t in e };
|
|
7089
7089
|
function xu(e) {
|
|
7090
7090
|
vi = e(vi);
|
|
7091
7091
|
}
|
|
7092
7092
|
function ag(e) {
|
|
7093
7093
|
return (nl || (nl = [IDBCursor.prototype.advance, IDBCursor.prototype.continue, IDBCursor.prototype.continuePrimaryKey])).includes(e) ? function(...t) {
|
|
7094
|
-
return e.apply(bi(this), t),
|
|
7094
|
+
return e.apply(bi(this), t), at(this.request);
|
|
7095
7095
|
} : function(...t) {
|
|
7096
|
-
return
|
|
7096
|
+
return at(e.apply(bi(this), t));
|
|
7097
7097
|
};
|
|
7098
7098
|
}
|
|
7099
7099
|
function lg(e) {
|
|
@@ -7110,11 +7110,11 @@ function lg(e) {
|
|
|
7110
7110
|
wi.set(t, r);
|
|
7111
7111
|
}(e), yi(e, rl || (rl = [IDBDatabase, IDBObjectStore, IDBIndex, IDBCursor, IDBTransaction])) ? new Proxy(e, vi) : e);
|
|
7112
7112
|
}
|
|
7113
|
-
function
|
|
7113
|
+
function at(e) {
|
|
7114
7114
|
if (e instanceof IDBRequest) return function(r) {
|
|
7115
7115
|
const n = new Promise((s, i) => {
|
|
7116
7116
|
r.onsuccess = () => {
|
|
7117
|
-
s(
|
|
7117
|
+
s(at(r.result));
|
|
7118
7118
|
}, r.onerror = () => {
|
|
7119
7119
|
i(r.error);
|
|
7120
7120
|
};
|
|
@@ -7128,7 +7128,7 @@ function lt(e) {
|
|
|
7128
7128
|
const bi = (e) => An.get(e);
|
|
7129
7129
|
function Si(e, { blocked: t } = {}) {
|
|
7130
7130
|
const r = indexedDB.deleteDatabase(e);
|
|
7131
|
-
return t && (r.onblocked = (n) => t(n.oldVersion, n)),
|
|
7131
|
+
return t && (r.onblocked = (n) => t(n.oldVersion, n)), at(r).then(() => {
|
|
7132
7132
|
});
|
|
7133
7133
|
}
|
|
7134
7134
|
const cg = ["get", "getKey", "getAll", "getAllKeys", "count"], ug = ["put", "add", "delete", "clear"], vs = /* @__PURE__ */ new Map();
|
|
@@ -7192,7 +7192,7 @@ const mg = "sprigReplayIframeLoaded", fg = "sprigReplayIframeSettings", gg = "sp
|
|
|
7192
7192
|
var u;
|
|
7193
7193
|
if (!l && !r && !n) return void N.error("UploadErr", { isMobile: l, uploadId: r, etags: n });
|
|
7194
7194
|
N.info("MarkUploadComplete", { surveyId: t });
|
|
7195
|
-
const c = await
|
|
7195
|
+
const c = await Ze(`${e}/sdk/1/completeSessionReplay`, { method: "POST", body: JSON.stringify({ etags: n, uploadId: r, responseGroupUuid: i, surveyId: t, replayDuration: a, eventDigest: o, userAgent: (u = window == null ? void 0 : window.navigator) == null ? void 0 : u.userAgent }), headers: s, shouldRetryRequest: !0 });
|
|
7196
7196
|
return N.info("MarkUploadDone", { surveyId: t }), c;
|
|
7197
7197
|
}, wg = (e) => {
|
|
7198
7198
|
if (e instanceof Attr) return null;
|
|
@@ -7229,8 +7229,8 @@ const mg = "sprigReplayIframeLoaded", fg = "sprigReplayIframeSettings", gg = "sp
|
|
|
7229
7229
|
return (n) => {
|
|
7230
7230
|
clearTimeout(r), r = window.setTimeout(() => e(n), t);
|
|
7231
7231
|
};
|
|
7232
|
-
},
|
|
7233
|
-
let Mn = !1,
|
|
7232
|
+
}, je = { capture: !0, passive: !0 }, bg = ["a", "button", "input", "option", "li", "link"], Sg = ["Escape", "Enter", "Backspace", "F5", "Tab"];
|
|
7233
|
+
let Mn = !1, Ee = null, pn = null;
|
|
7234
7234
|
const al = (e) => {
|
|
7235
7235
|
var r;
|
|
7236
7236
|
if (((r = e.tagName) == null ? void 0 : r.toLowerCase()) === "html") return { element: "html" };
|
|
@@ -7253,16 +7253,16 @@ const al = (e) => {
|
|
|
7253
7253
|
var s, i;
|
|
7254
7254
|
let r = t.target;
|
|
7255
7255
|
var n;
|
|
7256
|
-
t.target === ((s = window.document) == null ? void 0 : s.body) && window.Sprig.pointerDownTarget && (r = window.Sprig.pointerDownTarget), n = { x: t.x, y: t.y, type: e, elementAttributes: Ig(r), windowHeight: window.innerHeight, windowWidth: window.innerWidth, ...r instanceof HTMLElement || r instanceof SVGElement || r instanceof MathMLElement ? { rect: r == null ? void 0 : r.getBoundingClientRect(), xPath: Au(r) } : {} }, (i = n == null ? void 0 : n.elementAttributes) != null && i.text && (n.elementAttributes.text = oo(n.elementAttributes.text)),
|
|
7256
|
+
t.target === ((s = window.document) == null ? void 0 : s.body) && window.Sprig.pointerDownTarget && (r = window.Sprig.pointerDownTarget), n = { x: t.x, y: t.y, type: e, elementAttributes: Ig(r), windowHeight: window.innerHeight, windowWidth: window.innerWidth, ...r instanceof HTMLElement || r instanceof SVGElement || r instanceof MathMLElement ? { rect: r == null ? void 0 : r.getBoundingClientRect(), xPath: Au(r) } : {} }, (i = n == null ? void 0 : n.elementAttributes) != null && i.text && (n.elementAttributes.text = oo(n.elementAttributes.text)), Ee == null || Ee("Sprig_Click", n);
|
|
7257
7257
|
}, Uu = (e) => {
|
|
7258
7258
|
var t;
|
|
7259
|
-
Sg.includes(e.key) && (t = { key: e.key },
|
|
7259
|
+
Sg.includes(e.key) && (t = { key: e.key }, Ee == null || Ee("Sprig_Keystroke", t));
|
|
7260
7260
|
}, Cg = () => {
|
|
7261
7261
|
var e;
|
|
7262
|
-
window.performance.getEntriesByType("navigation").map((t) => t.type).includes("reload") && (e = { url: window.location.href, currentPageTitle: document.title },
|
|
7262
|
+
window.performance.getEntriesByType("navigation").map((t) => t.type).includes("reload") && (e = { url: window.location.href, currentPageTitle: document.title }, Ee == null || Ee("Sprig_Refresh", e));
|
|
7263
7263
|
}, kg = () => {
|
|
7264
7264
|
var e;
|
|
7265
|
-
window.performance.getEntriesByType("navigation").map((t) => t.type).includes("back_forward") && ((e = { curUrl: window.location.href, fromUrl: document.referrer, currentPageTitle: document.title }).currentPageTitle && (e.currentPageTitle = oo(e.currentPageTitle)),
|
|
7265
|
+
window.performance.getEntriesByType("navigation").map((t) => t.type).includes("back_forward") && ((e = { curUrl: window.location.href, fromUrl: document.referrer, currentPageTitle: document.title }).currentPageTitle && (e.currentPageTitle = oo(e.currentPageTitle)), Ee == null || Ee("Sprig_BackForward", e));
|
|
7266
7266
|
}, Tu = vg((e) => {
|
|
7267
7267
|
if (!(e.target instanceof HTMLElement || e.target instanceof Document)) return;
|
|
7268
7268
|
let t = e.target;
|
|
@@ -7275,61 +7275,61 @@ const Pu = (e) => {
|
|
|
7275
7275
|
window.Sprig && (window.Sprig.pointerDownTarget = e.target);
|
|
7276
7276
|
}, pe = { isRecording: !1, scrollEventUuids: {}, stopRecording: () => {
|
|
7277
7277
|
} }, Nu = () => window.indexedDB && window.IDBKeyRange && window.CompressionStream, be = (() => {
|
|
7278
|
-
const e =
|
|
7279
|
-
if (e) return N.info("SessionIDFound", { savedSessionId: e }),
|
|
7278
|
+
const e = Q.getItem("sprig.sessionId");
|
|
7279
|
+
if (e) return N.info("SessionIDFound", { savedSessionId: e }), Q.removeItem("sprig.sessionId"), e;
|
|
7280
7280
|
const t = Tt();
|
|
7281
7281
|
return N.info("GeneratedSessionID", { uuid: t }), t;
|
|
7282
7282
|
})(), Ci = () => {
|
|
7283
|
-
|
|
7284
|
-
},
|
|
7283
|
+
Q.setItem("sprig.disableReplayRecording", "disabled");
|
|
7284
|
+
}, Ve = () => !!Q.getItem("sprig.disableReplayRecording"), Un = () => !!Q.getItem("sprig.isReplayPaused");
|
|
7285
7285
|
window.addEventListener("beforeunload", () => {
|
|
7286
|
-
N.info("BeforeUnload", { sessionId: be }),
|
|
7286
|
+
N.info("BeforeUnload", { sessionId: be }), Q.setItem("sprig.sessionId", be);
|
|
7287
7287
|
});
|
|
7288
|
-
const
|
|
7288
|
+
const $e = (e, t) => {
|
|
7289
7289
|
var r, n;
|
|
7290
|
-
if (!
|
|
7290
|
+
if (!Ve() && pe.isRecording && !Un()) try {
|
|
7291
7291
|
(n = (r = window.rrwebRecord) == null ? void 0 : r.addCustomEvent) == null || n.call(r, e, t);
|
|
7292
7292
|
} catch (s) {
|
|
7293
7293
|
vr("Error recording custom event", s);
|
|
7294
7294
|
}
|
|
7295
7295
|
}, Eg = async (e) => {
|
|
7296
7296
|
const { x: t, xPath: r, y: n } = e, s = pe.scrollEventUuids[r];
|
|
7297
|
-
if (s) return
|
|
7297
|
+
if (s) return ke(async () => {
|
|
7298
7298
|
var o, l, c, u;
|
|
7299
|
-
const i = await
|
|
7299
|
+
const i = await ee.openDB(), a = await i.get("events", s);
|
|
7300
7300
|
if (a != null && a.event) {
|
|
7301
7301
|
const d = JSON.parse(a.event), h = t > ((l = (o = d.data) == null ? void 0 : o.payload) == null ? void 0 : l.x), f = n > ((u = (c = d.data) == null ? void 0 : c.payload) == null ? void 0 : u.y);
|
|
7302
7302
|
if (!h && !f) return null;
|
|
7303
7303
|
h && (d.data.payload.x = t), f && (d.data.payload.y = n), d.data.payload.elementAttributes = e.elementAttributes, a.event = JSON.stringify(d), await i.put("events", a);
|
|
7304
|
-
} else
|
|
7304
|
+
} else $e("Sprig_Scroll", e);
|
|
7305
7305
|
}, "Error updating scroll event");
|
|
7306
|
-
|
|
7306
|
+
$e("Sprig_Scroll", e);
|
|
7307
7307
|
}, Fu = () => {
|
|
7308
7308
|
pe.stopRecording && (pe.stopRecording(), pe.stopRecording = void 0), pe.isRecording = !1, ["cleanupInterval", "inactivityInterval", "pendingCheckInterval"].forEach((e) => {
|
|
7309
7309
|
pe[e] && (clearInterval(pe[e]), pe[e] = void 0);
|
|
7310
|
-
}), Mn && (window.removeEventListener("click", Du,
|
|
7310
|
+
}), Mn && (window.removeEventListener("click", Du, je), window.removeEventListener("pointerdown", _u, je), window.removeEventListener("mousedown", Pu, je), window.removeEventListener("keydown", Uu, je), window.removeEventListener("scroll", Tu, je), Mn = !1), io.forEach((e) => {
|
|
7311
7311
|
var t;
|
|
7312
7312
|
(t = e.source) == null || t.postMessage({ type: yg }, { targetOrigin: e.origin });
|
|
7313
7313
|
});
|
|
7314
7314
|
}, xg = ["did not allow mutations", "called in an invalid security context"], Rg = (e, t, { reportError: r = !0, extraInfo: n = {} }) => {
|
|
7315
|
-
if (!
|
|
7316
|
-
if (Ci(), t.name === "VersionError") return N.error("VersionErr", { message: e }), void
|
|
7315
|
+
if (!Ve() && t instanceof Error) {
|
|
7316
|
+
if (Ci(), t.name === "VersionError") return N.error("VersionErr", { message: e }), void ee.deleteDB();
|
|
7317
7317
|
((s) => {
|
|
7318
7318
|
if (!s) return !0;
|
|
7319
7319
|
for (const i of xg) if (s.toLowerCase().includes(i)) return !1;
|
|
7320
7320
|
return !0;
|
|
7321
|
-
})(t == null ? void 0 : t.message) && (r && window.UserLeap.reportError(e, t, n),
|
|
7321
|
+
})(t == null ? void 0 : t.message) && (r && window.UserLeap.reportError(e, t, n), ee.clearAll());
|
|
7322
7322
|
}
|
|
7323
7323
|
}, vr = (e, t, { reportError: r } = { reportError: !0 }) => {
|
|
7324
7324
|
Fu(), N.error("ReplayErr", { code: t.code, name: t.name }), Rg(e, t, { reportError: r });
|
|
7325
|
-
},
|
|
7325
|
+
}, ke = async (e, t) => {
|
|
7326
7326
|
try {
|
|
7327
7327
|
return await e();
|
|
7328
7328
|
} catch (r) {
|
|
7329
7329
|
vr(t, r);
|
|
7330
7330
|
}
|
|
7331
7331
|
}, ki = () => {
|
|
7332
|
-
pe.isRecording && (
|
|
7332
|
+
pe.isRecording && (ke(() => {
|
|
7333
7333
|
var e, t;
|
|
7334
7334
|
return (t = (e = window.rrwebRecord) == null ? void 0 : e.takeFullSnapshot) == null ? void 0 : t.call(e, !0);
|
|
7335
7335
|
}, "Error recording full snapshot"), io.forEach((e) => {
|
|
@@ -7339,7 +7339,7 @@ const Ye = (e, t) => {
|
|
|
7339
7339
|
};
|
|
7340
7340
|
let bs = 0;
|
|
7341
7341
|
(async () => Nu() && Promise.allSettled([Si("replayStorage"), Si("sprig.replay")]))();
|
|
7342
|
-
const
|
|
7342
|
+
const ee = new class {
|
|
7343
7343
|
constructor() {
|
|
7344
7344
|
de(this, "wrapTransactionWithCounter", (e) => {
|
|
7345
7345
|
var n, s;
|
|
@@ -7359,15 +7359,15 @@ const Q = new class {
|
|
|
7359
7359
|
}
|
|
7360
7360
|
openDB() {
|
|
7361
7361
|
return function(e, t, { blocked: r, upgrade: n, blocking: s, terminated: i } = {}) {
|
|
7362
|
-
const a = indexedDB.open(e, t), o =
|
|
7362
|
+
const a = indexedDB.open(e, t), o = at(a);
|
|
7363
7363
|
return n && (a.onupgradeneeded = (l) => {
|
|
7364
|
-
n(
|
|
7364
|
+
n(at(a.result), l.oldVersion, l.newVersion, at(a.transaction), l);
|
|
7365
7365
|
}), r && (a.onblocked = (l) => r(l.oldVersion, l.newVersion, l)), o.then((l) => {
|
|
7366
7366
|
i && (l.onclose = () => i()), s && (l.onversionchange = (c) => s(c.oldVersion, c.newVersion, c));
|
|
7367
7367
|
}).catch(() => {
|
|
7368
7368
|
}), o;
|
|
7369
7369
|
}("sprigReplay", 1, { upgrade: (e, t, r) => {
|
|
7370
|
-
if (r === 0 &&
|
|
7370
|
+
if (r === 0 && Q.setItem("sprig.pendingCount", "0"), !e.objectStoreNames.contains("events")) {
|
|
7371
7371
|
const n = e.createObjectStore("events", { keyPath: "uuid" });
|
|
7372
7372
|
n.createIndex("sessionId", "sessionId"), n.createIndex("timestamp", "timestamp"), n.createIndex("[sessionId+timestamp]", ["sessionId", "timestamp"]);
|
|
7373
7373
|
}
|
|
@@ -7443,7 +7443,7 @@ const Q = new class {
|
|
|
7443
7443
|
await t.done;
|
|
7444
7444
|
}
|
|
7445
7445
|
async markPendingHeatmapsReady(e) {
|
|
7446
|
-
if (parseInt(
|
|
7446
|
+
if (parseInt(Q.getItem("sprig.pendingCount") ?? "0") === 0) return null;
|
|
7447
7447
|
const t = Date.now(), r = await this.getTransaction("pendingCaptures"), n = r.store.index("sessionId");
|
|
7448
7448
|
for await (const s of n.iterate(be)) {
|
|
7449
7449
|
const i = s.value;
|
|
@@ -7451,16 +7451,16 @@ const Q = new class {
|
|
|
7451
7451
|
}
|
|
7452
7452
|
await r.done;
|
|
7453
7453
|
}
|
|
7454
|
-
}(),
|
|
7454
|
+
}(), Ke = [];
|
|
7455
7455
|
let br, Bu, gt = [], Dt = !1, Ut = 0, hn = !1, zu = !1;
|
|
7456
7456
|
const ao = [];
|
|
7457
7457
|
let Tn, ju, mn, Wu, Ss = !1;
|
|
7458
7458
|
const Pt = () => hn && !Dt && Date.now() <= Tn, Lg = ({ apiUrl: e, config: t, triggerSnapshot: r, forceInit: n = !1 }) => {
|
|
7459
|
-
hn && !n || (
|
|
7460
|
-
}, Og = [
|
|
7459
|
+
hn && !n || (Q.isStorageAvailable ? (gt = [], ao.splice(0), Ke.splice(0), Ut = 0, mn = r, Bu = e, br = { responseGroupUuid: t.responseGroupUuid, surveyId: t.surveyId, userAgent: t.userAgent, sdkVersion: t.sdkVersion }, ju = t.maxDurationSeconds, Ug(), hn || (Wu = window.setInterval(Mg, 500)), hn = !0) : Dt = !0);
|
|
7460
|
+
}, Og = [He.Drag, He.Input, He.MediaInteraction, He.MouseInteraction, He.MouseMove, He.Scroll, He.Selection, He.TouchMove], Ag = (e) => e.type === ot.Custom || e.type === ot.IncrementalSnapshot && Og.includes(e.data.source), lo = (e) => e.some(Ag), Mg = async () => {
|
|
7461
7461
|
if (!Pt()) return void window.clearInterval(Wu);
|
|
7462
|
-
if (Vu(), !lo(
|
|
7463
|
-
const e =
|
|
7462
|
+
if (Vu(), !lo(Ke)) return;
|
|
7463
|
+
const e = Ke[0].timestamp;
|
|
7464
7464
|
Date.now() - e > 35e3 && (mn == null || mn());
|
|
7465
7465
|
}, Vu = async () => {
|
|
7466
7466
|
if (gt.length || Ss) return;
|
|
@@ -7469,14 +7469,14 @@ const Pt = () => hn && !Dt && Date.now() <= Tn, Lg = ({ apiUrl: e, config: t, tr
|
|
|
7469
7469
|
if (!e) return void (Dt = !0);
|
|
7470
7470
|
ao.splice(0, e.length).forEach((t) => t(e.shift())), e.forEach((t) => gt.push(t)), Ss = !1;
|
|
7471
7471
|
}, Ug = () => {
|
|
7472
|
-
const e =
|
|
7472
|
+
const e = Q.getItem("sprig.alwayson.info");
|
|
7473
7473
|
if (e) {
|
|
7474
7474
|
N.info("Read stored session state", e);
|
|
7475
7475
|
const t = JSON.parse(e);
|
|
7476
7476
|
Dt = t.disabled, br = t.metadata, gt = t.uploadUrls, Ut = t.currentIndex, Tn = t.expirationTimestamp, t.pendingEventTimestamp && (N.info(`Uploading with pending timestamp: ${t.pendingEventTimestamp}`), Tg(t.pendingEventTimestamp));
|
|
7477
7477
|
} else Tn = 1e3 * ju + Date.now();
|
|
7478
7478
|
}, Tg = async (e) => {
|
|
7479
|
-
const t = Date.now(), r = (await
|
|
7479
|
+
const t = Date.now(), r = (await ee.getEventsBetween(e, t)).map((s) => JSON.parse(s.event));
|
|
7480
7480
|
if (!lo(r)) return;
|
|
7481
7481
|
Yu(r);
|
|
7482
7482
|
const n = await $u();
|
|
@@ -7495,12 +7495,12 @@ const Pt = () => hn && !Dt && Date.now() <= Tn, Lg = ({ apiUrl: e, config: t, tr
|
|
|
7495
7495
|
const s = new TextEncoder(), i = new CompressionStream("gzip"), a = i.writable.getWriter(), o = s.encode(JSON.stringify(n));
|
|
7496
7496
|
return a.write(o), a.close(), new Uint8Array(await new Response(i.readable).arrayBuffer());
|
|
7497
7497
|
})(t);
|
|
7498
|
-
N.info("Uploading always-on events with presigned url"), await Gu(() =>
|
|
7498
|
+
N.info("Uploading always-on events with presigned url"), await Gu(() => Ze(e, { body: r, method: "PUT" }), "uploading always-on with presigned url");
|
|
7499
7499
|
}, Dg = async () => {
|
|
7500
7500
|
if (!Pt()) return;
|
|
7501
7501
|
const { surveyId: e, responseGroupUuid: t } = br, r = { responseGroupUuid: t, surveyId: e, index: Ut + 1 };
|
|
7502
7502
|
N.info("Fetching always-on upload urls", r);
|
|
7503
|
-
const n = await Gu(() =>
|
|
7503
|
+
const n = await Gu(() => Ze(`${Bu}/sdk/1/replayUrls`, { method: "POST", body: JSON.stringify(r), headers: Ue(window.UserLeap) }), "fetching always-on signed urls");
|
|
7504
7504
|
if (!n) return;
|
|
7505
7505
|
const s = n.json.signedUrls;
|
|
7506
7506
|
return N.info("Fetched more always-on upload urls", { body: r, urls: s }), s;
|
|
@@ -7513,22 +7513,22 @@ const Pt = () => hn && !Dt && Date.now() <= Tn, Lg = ({ apiUrl: e, config: t, tr
|
|
|
7513
7513
|
}, Yu = (e) => {
|
|
7514
7514
|
var s, i, a;
|
|
7515
7515
|
const t = e.length ? e[e.length - 1].timestamp : Date.now(), r = Ut, n = ((i = (s = window.UserLeap) == null ? void 0 : s.config) == null ? void 0 : i.customMetadata) ?? ((a = window.__cfg) == null ? void 0 : a.customMetadata);
|
|
7516
|
-
Ut++, e.push({ timestamp: t, type:
|
|
7516
|
+
Ut++, e.push({ timestamp: t, type: ot.Custom, data: { tag: "Sprig_Meta", payload: { ...br, index: r, visitorId: window.UserLeap.visitorId ?? "", timestamp: t, customMetadata: n } } });
|
|
7517
7517
|
}, Pg = (e, t) => {
|
|
7518
|
-
Pt() && !zu && (e ||
|
|
7519
|
-
const r =
|
|
7518
|
+
Pt() && !zu && (e || Ke.length) && (e && Ke.length && (async () => {
|
|
7519
|
+
const r = Ke.splice(0);
|
|
7520
7520
|
if (!lo(r)) return;
|
|
7521
7521
|
N.info("Capturing always-on event array to upload"), Yu(r);
|
|
7522
7522
|
const n = await $u();
|
|
7523
7523
|
n && await Hu(n, r);
|
|
7524
|
-
})(),
|
|
7524
|
+
})(), Ke.push(t));
|
|
7525
7525
|
};
|
|
7526
7526
|
window.addEventListener("beforeunload", async () => {
|
|
7527
7527
|
zu = !0, Pt() && (N.info("Always On handle page unload"), (() => {
|
|
7528
7528
|
let e;
|
|
7529
|
-
|
|
7529
|
+
Ke.length && (e = Ke[0].timestamp);
|
|
7530
7530
|
const t = { disabled: Dt, metadata: br, uploadUrls: gt, currentIndex: Ut, pendingEventTimestamp: e, expirationTimestamp: Tn };
|
|
7531
|
-
N.info("Storing session state on unload", t),
|
|
7531
|
+
N.info("Storing session state on unload", t), Q.setItem("sprig.alwayson.info", JSON.stringify(t));
|
|
7532
7532
|
})());
|
|
7533
7533
|
});
|
|
7534
7534
|
const qu = async (e, t) => {
|
|
@@ -7539,7 +7539,7 @@ const qu = async (e, t) => {
|
|
|
7539
7539
|
} finally {
|
|
7540
7540
|
const s = performance.now() - r;
|
|
7541
7541
|
let i = wr[t];
|
|
7542
|
-
i || (i =
|
|
7542
|
+
i || (i = We(t)), i.report(s / 1e3);
|
|
7543
7543
|
}
|
|
7544
7544
|
return n;
|
|
7545
7545
|
}, Ju = (e, t) => {
|
|
@@ -7549,10 +7549,10 @@ const qu = async (e, t) => {
|
|
|
7549
7549
|
} finally {
|
|
7550
7550
|
const n = performance.now() - r;
|
|
7551
7551
|
let s = wr[t];
|
|
7552
|
-
s || (s =
|
|
7552
|
+
s || (s = We(t)), s.report(n / 1e3);
|
|
7553
7553
|
}
|
|
7554
7554
|
};
|
|
7555
|
-
let Ku = 5e3, Ei = 6e4, xi = 0,
|
|
7555
|
+
let Ku = 5e3, Ei = 6e4, xi = 0, lt, Ri = !1, Li = [];
|
|
7556
7556
|
const _g = (e) => {
|
|
7557
7557
|
var t, r, n, s;
|
|
7558
7558
|
if ((t = e.event) != null && t.includes("Sprig_Scroll")) {
|
|
@@ -7563,25 +7563,25 @@ const _g = (e) => {
|
|
|
7563
7563
|
Li.push(e), Ri || Ng();
|
|
7564
7564
|
}, Ng = () => {
|
|
7565
7565
|
Ri = !0, setTimeout(async () => {
|
|
7566
|
-
if (
|
|
7566
|
+
if (Ve() || Un()) return;
|
|
7567
7567
|
const e = Li;
|
|
7568
7568
|
Li = [], Ri = !1, Ju(async () => {
|
|
7569
7569
|
await (async (t) => {
|
|
7570
7570
|
const r = t.map((n) => ({ ...n, sessionId: n.sessionId ?? be }));
|
|
7571
|
-
if (r.length !== 0) return
|
|
7571
|
+
if (r.length !== 0) return ke(() => ee.bulkAdd("events", r), "Error storing replay events");
|
|
7572
7572
|
})(e);
|
|
7573
7573
|
}, "sdk_replay_add_event_batch_seconds");
|
|
7574
7574
|
}, 500);
|
|
7575
7575
|
}, Fg = (e, t, r) => {
|
|
7576
7576
|
pe.cleanupInterval = window.setInterval(() => {
|
|
7577
7577
|
const n = Date.now();
|
|
7578
|
-
qu(() =>
|
|
7579
|
-
|
|
7578
|
+
qu(() => ke(async () => {
|
|
7579
|
+
Ve() || await Promise.all([ee.deleteRowsBefore("events", n - 1e3 * e, (s) => s.expiredAt === void 0 || s.expiredAt < n - 1e3 * e), ee.deleteRowsBefore("chunkUploads", n - 1e3 * t), ee.deleteRowsBefore("pendingCaptures", n - 1e3 * r, (s) => !s.canUpload)]);
|
|
7580
7580
|
}, "Error deleting table rows"), "sdk_replay_cleanup_seconds"), N.debug("CleanupComplete");
|
|
7581
7581
|
}, 3e4);
|
|
7582
7582
|
}, Bg = () => {
|
|
7583
7583
|
pe.pendingCheckInterval = window.setInterval(async () => {
|
|
7584
|
-
|
|
7584
|
+
ke(async () => {
|
|
7585
7585
|
await Oi();
|
|
7586
7586
|
}, "Error initiating pending captures");
|
|
7587
7587
|
}, 5e3);
|
|
@@ -7590,15 +7590,15 @@ let Is = !1;
|
|
|
7590
7590
|
const Oi = async (e = !1) => {
|
|
7591
7591
|
if (!Is) try {
|
|
7592
7592
|
Is = !0;
|
|
7593
|
-
const t = parseInt(
|
|
7593
|
+
const t = parseInt(lt ?? "0");
|
|
7594
7594
|
if (t === 0) return;
|
|
7595
|
-
const r = await
|
|
7596
|
-
await Promise.all(r.map(async (s) => (await n.delete("pendingCaptures", s.uuid), Qu(s.captureParams, s.canUpload)))),
|
|
7595
|
+
const r = await ee.getPendingCaptures({ beforePresent: !0, isBeforeType: e }), n = await ee.openDB();
|
|
7596
|
+
await Promise.all(r.map(async (s) => (await n.delete("pendingCaptures", s.uuid), Qu(s.captureParams, s.canUpload)))), lt = (t - r.length).toString(), Q.setItem("sprig.pendingCount", lt);
|
|
7597
7597
|
} finally {
|
|
7598
7598
|
Is = !1;
|
|
7599
7599
|
}
|
|
7600
7600
|
}, zg = async (e, t, r, n, s) => {
|
|
7601
|
-
const i = Math.min(e + s, r), a = await qu(() =>
|
|
7601
|
+
const i = Math.min(e + s, r), a = await qu(() => ee.getEventsBetween(e, i), "sdk_replay_get_events_between_seconds");
|
|
7602
7602
|
if (!(a != null && a.length)) return N.debug("NoEventsFound"), { validStartFound: n, events: [] };
|
|
7603
7603
|
if (!n) {
|
|
7604
7604
|
N.debug("ValidStartSearch");
|
|
@@ -7614,23 +7614,23 @@ const Oi = async (e = !1) => {
|
|
|
7614
7614
|
const r = await (async (n) => Lu.execute(async () => {
|
|
7615
7615
|
var a;
|
|
7616
7616
|
N.info("UploadChunkStart", { chunkIndex: n.chunkIndex, surveyId: n.surveyId });
|
|
7617
|
-
const s = await
|
|
7617
|
+
const s = await Ze(n.uploadUrl, { body: n.data, method: "PUT" });
|
|
7618
7618
|
N.http("UploadChunkEnd", { url: n.uploadUrl, method: "PUT", status_code: s.status, reason: s.statusText ?? "OK", chunkIndex: n.chunkIndex, surveyId: n.surveyId });
|
|
7619
7619
|
const i = (a = s.headers) == null ? void 0 : a.get("ETag");
|
|
7620
7620
|
if (!i) throw new Error(`Upload response did not include etag for upload ${n.uploadId}, part ${n.chunkIndex}`);
|
|
7621
7621
|
return i;
|
|
7622
7622
|
}))(t);
|
|
7623
|
-
return await
|
|
7623
|
+
return await ee.updatePartial("chunkUploads", t.uuid, { data: null, etag: r, status: "UploadComplete" }), t.uploadId;
|
|
7624
7624
|
})), Xu = async (e) => {
|
|
7625
|
-
const t = await
|
|
7625
|
+
const t = await ee.getChunkUploadsByStatus({ status: "UploadComplete", uploadId: e });
|
|
7626
7626
|
if (!(t != null && t.length)) return void N.info("NoChunksForUpload", { uploadId: e });
|
|
7627
7627
|
const r = t.reduce((i, a) => (i.find((o) => o.chunkIndex === a.chunkIndex) || i.push(a), i), []);
|
|
7628
7628
|
r.sort((i, a) => i.chunkIndex - a.chunkIndex);
|
|
7629
7629
|
const n = r.map((i) => ({ ETag: i.etag, PartNumber: i.chunkIndex })).filter((i) => i.ETag !== null), s = r[0];
|
|
7630
|
-
await Ou({ apiUrl: s.apiUrl, surveyId: s.surveyId, uploadId: e, responseGroupUuid: s.responseGroupId, etags: n, headers: s.completeUploadHeaders, replayDuration: s.replayDuration }), await
|
|
7630
|
+
await Ou({ apiUrl: s.apiUrl, surveyId: s.surveyId, uploadId: e, responseGroupUuid: s.responseGroupId, etags: n, headers: s.completeUploadHeaders, replayDuration: s.replayDuration }), await ee.deleteChunkUploads("UploadComplete", e);
|
|
7631
7631
|
}, jg = () => {
|
|
7632
|
-
|
|
7633
|
-
const e = await
|
|
7632
|
+
ke(async () => {
|
|
7633
|
+
const e = await ee.getChunkUploadsByStatus({ sessionId: be, status: "ReadyForUpload" });
|
|
7634
7634
|
if (!(e != null && e.length)) return;
|
|
7635
7635
|
const t = await Zu(e);
|
|
7636
7636
|
t != null && t.length && await Promise.all(t.map((r) => {
|
|
@@ -7671,61 +7671,61 @@ const Oi = async (e = !1) => {
|
|
|
7671
7671
|
return g;
|
|
7672
7672
|
})(l, a.minimumChunkSizeMb, a.signedUrls.length), u = await Promise.all(c.map(async (d, h) => {
|
|
7673
7673
|
const f = Tt(), v = { apiUrl: s, chunkIndex: h + 1, completeUploadHeaders: i, etag: null, responseGroupId: r, status: "ReadyForUpload", surveyId: t, timestamp: o, totalChunks: c.length, data: d, uploadId: a.uploadId, uploadUrl: a.signedUrls[h].url, uuid: f, visitorId: n };
|
|
7674
|
-
return await (await
|
|
7674
|
+
return await (await ee.openDB()).add("chunkUploads", { ...v, sessionId: v.sessionId ?? be }), v;
|
|
7675
7675
|
}));
|
|
7676
7676
|
await (async (d, h) => {
|
|
7677
7677
|
await Zu(h), await Promise.all(d.map((f) => Xu(f)));
|
|
7678
7678
|
})([a.uploadId], u);
|
|
7679
7679
|
}, Qu = async (e, t) => {
|
|
7680
|
-
if (
|
|
7680
|
+
if (Ve()) return N.debug("ReplayDisabled-ScheduleOrCapture");
|
|
7681
7681
|
const { isHeatmap: r, isStandalone: n, replayParams: s, triggerTimestamp: i, responseGroupId: a } = e, o = async () => {
|
|
7682
|
-
setTimeout(() => z.removeListener(B.QuestionAnswered, o), 0),
|
|
7683
|
-
s.replayDurationType === "before" ? await cl(e) : await
|
|
7682
|
+
setTimeout(() => z.removeListener(B.QuestionAnswered, o), 0), ke(async () => {
|
|
7683
|
+
s.replayDurationType === "before" ? await cl(e) : await ee.markPendingCaptureToCanUpload(a);
|
|
7684
7684
|
}, "Error in schedule/capture callback");
|
|
7685
7685
|
};
|
|
7686
|
-
|
|
7686
|
+
ke(async () => {
|
|
7687
7687
|
if (s.replayDurationType === "after" || s.replayDurationType === "beforeAndAfter")
|
|
7688
7688
|
return !n && !r && z.on(B.QuestionAnswered, o), void await td(e);
|
|
7689
7689
|
if (n || r || t) await cl(e), r && Vg();
|
|
7690
7690
|
else {
|
|
7691
7691
|
const l = 35 + s.replayDurationSeconds, c = i - 1e3 * l, u = i;
|
|
7692
|
-
await
|
|
7692
|
+
await ee.updateEventsExpiredAt(c, u, s.expirationTimeLimitMinutes), z.on(B.QuestionAnswered, o);
|
|
7693
7693
|
}
|
|
7694
7694
|
}, "Error in scheduling/capturing replay");
|
|
7695
7695
|
}, Vg = async () => {
|
|
7696
|
-
parseInt(
|
|
7697
|
-
}, ed = async () =>
|
|
7696
|
+
parseInt(lt ?? "0") || Q.removeItem("sprig.isCapturingHeatmap"), Q.getItem("sprig.teardownAfterCapture") && (Fu(), ed(), Q.removeItem("sprig.teardownAfterCapture"));
|
|
7697
|
+
}, ed = async () => Ve() ? N.debug("ReplayDisabled-ClearData") : Promise.all([ee.deleteBySessionId("events", be), ee.deleteBySessionId("pendingCaptures", be)]).catch((e) => {
|
|
7698
7698
|
vr("Error clearing user replay data", e);
|
|
7699
7699
|
}), td = async (e) => {
|
|
7700
|
-
if (
|
|
7701
|
-
const { isHeatmap: t, surveyId: r } = e, n = await
|
|
7700
|
+
if (Ve()) return;
|
|
7701
|
+
const { isHeatmap: t, surveyId: r } = e, n = await ee.getPendingCaptures(), s = n == null ? void 0 : n.filter((l) => l.captureParams.surveyId === r);
|
|
7702
7702
|
if (s != null && s.length) return void N.info("PendingCaptureExists", { surveyId: r });
|
|
7703
|
-
t && (ki(),
|
|
7703
|
+
t && (ki(), Q.setItem("sprig.isCapturingHeatmap", "true"), xi = Date.now(), pe.inactivityInterval || (pe.inactivityInterval = window.setInterval(() => {
|
|
7704
7704
|
var l;
|
|
7705
|
-
l = xi, Date.now() - l >= 3e4 &&
|
|
7705
|
+
l = xi, Date.now() - l >= 3e4 && ke(() => ee.markPendingHeatmapsReady(), "Error in heatmap inactivity");
|
|
7706
7706
|
}, 1e3)));
|
|
7707
7707
|
const i = { ...e, replayParams: { ...e.replayParams } };
|
|
7708
7708
|
e.replayParams.replayDurationType === "beforeAndAfter" && (i.replayParams.replayDurationSeconds *= 2), i.replayParams.replayDurationType = "before";
|
|
7709
7709
|
const a = e.triggerTimestamp + 1e3 * e.replayParams.replayDurationSeconds;
|
|
7710
|
-
i.triggerTimestamp = a,
|
|
7710
|
+
i.triggerTimestamp = a, lt = (parseInt(lt ?? "0") + 1).toString(), Q.setItem("sprig.pendingCount", lt), await (await ee.openDB()).add("pendingCaptures", { canUpload: !1, captureParams: i, sessionId: be, targetTimestamp: a, timestamp: Date.now(), uuid: Tt() });
|
|
7711
7711
|
}, Gg = Object.freeze(Object.defineProperty({ __proto__: null, RecordEvent: (e) => {
|
|
7712
|
-
|
|
7712
|
+
$e("Sprig_TrackEvent", e);
|
|
7713
7713
|
}, RecordPageView: (e) => {
|
|
7714
|
-
e.description && (e.description = oo(e.description)),
|
|
7714
|
+
e.description && (e.description = oo(e.description)), $e("Sprig_PageView", e);
|
|
7715
7715
|
}, RecordSurveyShown: (e) => {
|
|
7716
|
-
|
|
7716
|
+
$e("Sprig_ShowSurvey", e);
|
|
7717
7717
|
}, _completeSessionReplay: async ({ surveyId: e, responseGroupUuid: t, eventDigest: r, headers: n }) => {
|
|
7718
7718
|
if (!e || !t) return !1;
|
|
7719
7719
|
const s = window.UserLeap._API_URL, i = await Ou({ surveyId: e, responseGroupUuid: t, eventDigest: r, apiUrl: s, headers: n }, !0);
|
|
7720
7720
|
return !(i != null && i.error);
|
|
7721
|
-
}, checkPendingHeatmapsUrl: () =>
|
|
7722
|
-
const e = (await
|
|
7723
|
-
return N.info("PendingHeatmapsToComplete", { count: e.length }), e.length && (await
|
|
7721
|
+
}, checkPendingHeatmapsUrl: () => Ve() ? N.debug("ReplayDisabled-PendingHeatmaps") : ke(async () => {
|
|
7722
|
+
const e = (await ee.getPendingCaptures({ isHeatmap: !0 })).map((t) => ({ eventId: t.captureParams.eventId, uuid: t.uuid })).filter(({ eventId: t }) => !cu(t)).map(({ uuid: t }) => t);
|
|
7723
|
+
return N.info("PendingHeatmapsToComplete", { count: e.length }), e.length && (await ee.markPendingHeatmapsReady(e), N.info("MarkedPendingHeatmapsReady")), e.length;
|
|
7724
7724
|
}, "Error marking pending heatmaps ready"), clearUserReplayData: ed, disableRecording: vr, initializeReplay: async ({ maxReplayDurationSeconds: e, maxInflightRequests: t = 2, replaySettings: r, teardownAfter: n = !1, apiUrl: s, alwaysOnConfig: i }) => {
|
|
7725
7725
|
if (i && Lg({ apiUrl: s, config: i, triggerSnapshot: () => {
|
|
7726
7726
|
ki();
|
|
7727
|
-
} }),
|
|
7728
|
-
if (n &&
|
|
7727
|
+
} }), lt = Q.getItem("sprig.pendingCount"), pe.isRecording) return;
|
|
7728
|
+
if (n && Q.setItem("sprig.teardownAfterCapture", "true"), Ve()) return N.debug("ReplayDisabled");
|
|
7729
7729
|
if (await (async () => {
|
|
7730
7730
|
var l;
|
|
7731
7731
|
if (!Nu()) return !0;
|
|
@@ -7738,17 +7738,17 @@ const Oi = async (e = !1) => {
|
|
|
7738
7738
|
return !1;
|
|
7739
7739
|
})()) return N.debug("IDBNotSupported"), Ci();
|
|
7740
7740
|
try {
|
|
7741
|
-
const l = await
|
|
7741
|
+
const l = await ee.openDB();
|
|
7742
7742
|
N.info("DBVersion", { version: l.version });
|
|
7743
7743
|
} catch (l) {
|
|
7744
|
-
return N.error("ReplayOpenErr", { name: l.name }), l.name === "VersionError" &&
|
|
7744
|
+
return N.error("ReplayOpenErr", { name: l.name }), l.name === "VersionError" && ee.deleteDB(), Ci();
|
|
7745
7745
|
}
|
|
7746
|
-
|
|
7746
|
+
ke(async () => {
|
|
7747
7747
|
await Oi(!0);
|
|
7748
7748
|
}, "Error uploading ready pending captures");
|
|
7749
7749
|
const a = Pt() ? 30 : 0, o = Math.max(e ?? 0, a);
|
|
7750
7750
|
if (!o) return N.debug("MissingDuration");
|
|
7751
|
-
N.debug("ReplayInit"), await
|
|
7751
|
+
N.debug("ReplayInit"), await ke(async () => {
|
|
7752
7752
|
var l;
|
|
7753
7753
|
r != null && r.minDuration && (Ku = r.minDuration), r != null && r.batchDuration && (Ei = r.batchDuration), l = t, Lu.setLimit(l), jg(), Fg(o + 35, 1800, o + 35), Bg();
|
|
7754
7754
|
const c = window.UserLeap.replayLibraryURL ?? "https://cdn.sprig.com/dependencies/record.min.js", u = window.rrwebRecord;
|
|
@@ -7757,13 +7757,13 @@ const Oi = async (e = !1) => {
|
|
|
7757
7757
|
const f = { checkoutEveryNms: 3e4, sampling: { input: "last", scroll: 250, media: 800 }, ...r, mutationQueueEnabled: r == null ? void 0 : r.enableMutationQueue };
|
|
7758
7758
|
var v, p;
|
|
7759
7759
|
pe.stopRecording = u({ emit: (I, m) => {
|
|
7760
|
-
if (I.type ===
|
|
7761
|
-
if (m && I.type ===
|
|
7762
|
-
else if (m && h && I.type ===
|
|
7760
|
+
if (I.type === ot.Custom && (xi = Date.now()), Ve() || Un()) return;
|
|
7761
|
+
if (m && I.type === ot.Meta) h = performance.now();
|
|
7762
|
+
else if (m && h && I.type === ot.FullSnapshot) {
|
|
7763
7763
|
const b = performance.now() - h;
|
|
7764
7764
|
gu("sdk_replay_snapshot_seconds", b / 1e3);
|
|
7765
7765
|
}
|
|
7766
|
-
const g = d || !!m && I.type ===
|
|
7766
|
+
const g = d || !!m && I.type === ot.Meta;
|
|
7767
7767
|
d = !1, Pg(g, I), _g({ uuid: Tt(), event: JSON.stringify(I), isValidStart: g, timestamp: Date.now() });
|
|
7768
7768
|
}, ...f }), pe.isRecording = !!pe.stopRecording, pe.isRecording && (((I, m) => {
|
|
7769
7769
|
window.addEventListener("message", (g) => {
|
|
@@ -7772,16 +7772,16 @@ const Oi = async (e = !1) => {
|
|
|
7772
7772
|
});
|
|
7773
7773
|
})(f, c), z.on("survey.complete", (I) => {
|
|
7774
7774
|
var m;
|
|
7775
|
-
m = { id: I, userAgent: window.navigator.userAgent },
|
|
7776
|
-
}), v =
|
|
7775
|
+
m = { id: I, userAgent: window.navigator.userAgent }, $e("Sprig_SubmitSurvey", m);
|
|
7776
|
+
}), v = $e, p = Eg, Mn || (Ee = v, pn = p, window.addEventListener("click", Du, je), window.addEventListener("pointerdown", _u, je), window.addEventListener("mousedown", Pu, je), window.addEventListener("keydown", Uu, je), window.addEventListener("scroll", Tu, je), Mn = !0, Cg(), kg()));
|
|
7777
7777
|
}, "Error initializing replay");
|
|
7778
7778
|
}, isReplayPaused: Un, isReplayRecording: () => pe.isRecording, recordFullSnapshot: ki, recordReplayPaused: () => {
|
|
7779
|
-
|
|
7779
|
+
$e("Sprig_ReplayPaused", { timestamp: Date.now() }), Q.setItem("sprig.isReplayPaused", "true");
|
|
7780
7780
|
}, recordReplayResumed: () => {
|
|
7781
|
-
|
|
7782
|
-
}, scheduleCapture: td, scheduleOrCaptureReplay: Qu, tryReplayAction:
|
|
7781
|
+
Q.removeItem("sprig.isReplayPaused"), $e("Sprig_ReplayResumed", { timestamp: Date.now() });
|
|
7782
|
+
}, scheduleCapture: td, scheduleOrCaptureReplay: Qu, tryReplayAction: ke, uploadReadyPendingCaptures: Oi }, Symbol.toStringTag, { value: "Module" }));
|
|
7783
7783
|
((e) => {
|
|
7784
|
-
|
|
7784
|
+
ne.replay = e;
|
|
7785
7785
|
})(Gg), window.UpChunk = { createUpload: jd }, window.rrwebRecord = qt;
|
|
7786
7786
|
export {
|
|
7787
7787
|
Yg as A,
|
|
@@ -7789,17 +7789,17 @@ export {
|
|
|
7789
7789
|
$g as D,
|
|
7790
7790
|
Jg as E,
|
|
7791
7791
|
B as S,
|
|
7792
|
-
|
|
7792
|
+
Ze as a,
|
|
7793
7793
|
N as b,
|
|
7794
7794
|
jf as c,
|
|
7795
|
-
|
|
7795
|
+
Fe as d,
|
|
7796
7796
|
z as e,
|
|
7797
7797
|
In as f,
|
|
7798
7798
|
Zg as g,
|
|
7799
7799
|
qg as h,
|
|
7800
7800
|
Xg as i,
|
|
7801
7801
|
eo as j,
|
|
7802
|
-
|
|
7802
|
+
rt as k,
|
|
7803
7803
|
vg as l,
|
|
7804
7804
|
Kg as m,
|
|
7805
7805
|
tl as n,
|