@askdialog/dialog-vue 1.0.24-beta.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DialogProductBlock/DialogBlockSuggestions.vue.d.ts +1 -1
- package/dist/components/DialogProductBlock/DialogBlockSuggestionsContainer.vue.d.ts +1 -1
- package/dist/dialog-vue.css +1 -1
- package/dist/dialog-vue.js +368 -368
- package/dist/dialog-vue.umd.cjs +4 -4
- package/package.json +4 -17
package/dist/dialog-vue.js
CHANGED
|
@@ -19,7 +19,7 @@ function yr(r, e, t, i, s, n, a) {
|
|
|
19
19
|
function br(r) {
|
|
20
20
|
return function() {
|
|
21
21
|
var e = this, t = arguments;
|
|
22
|
-
return new Promise(function(i, s) {
|
|
22
|
+
return new Promise((function(i, s) {
|
|
23
23
|
var n = r.apply(e, t);
|
|
24
24
|
function a(l) {
|
|
25
25
|
yr(n, i, s, a, o, "next", l);
|
|
@@ -28,7 +28,7 @@ function br(r) {
|
|
|
28
28
|
yr(n, i, s, a, o, "throw", l);
|
|
29
29
|
}
|
|
30
30
|
a(void 0);
|
|
31
|
-
});
|
|
31
|
+
}));
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
function w() {
|
|
@@ -52,10 +52,10 @@ function ms(r, e) {
|
|
|
52
52
|
var Nn = ["amazonbot", "amazonproductbot", "app.hypefactors.com", "applebot", "archive.org_bot", "awariobot", "backlinksextendedbot", "baiduspider", "bingbot", "bingpreview", "chrome-lighthouse", "dataforseobot", "deepscan", "duckduckbot", "facebookexternal", "facebookcatalog", "http://yandex.com/bots", "hubspot", "ia_archiver", "leikibot", "linkedinbot", "meta-externalagent", "mj12bot", "msnbot", "nessus", "petalbot", "pinterest", "prerender", "rogerbot", "screaming frog", "sebot-wa", "sitebulb", "slackbot", "slurp", "trendictionbot", "turnitin", "twitterbot", "vercel-screenshot", "vercelbot", "yahoo! slurp", "yandexbot", "zoombot", "bot.htm", "bot.php", "(bot;", "bot/", "crawler", "ahrefsbot", "ahrefssiteaudit", "semrushbot", "siteauditbot", "splitsignalbot", "gptbot", "oai-searchbot", "chatgpt-user", "perplexitybot", "better uptime bot", "sentryuptimebot", "uptimerobot", "headlesschrome", "cypress", "google-hoteladsverifier", "adsbot-google", "apis-google", "duplexweb-google", "feedfetcher-google", "google favicon", "google web preview", "google-read-aloud", "googlebot", "googleother", "google-cloudvertexbot", "googleweblight", "mediapartners-google", "storebot-google", "google-inspectiontool", "bytespider"], wr = function(r, e) {
|
|
53
53
|
if (e === void 0 && (e = []), !r) return !1;
|
|
54
54
|
var t = r.toLowerCase();
|
|
55
|
-
return Nn.concat(e).some((i) => {
|
|
55
|
+
return Nn.concat(e).some(((i) => {
|
|
56
56
|
var s = i.toLowerCase();
|
|
57
57
|
return t.indexOf(s) !== -1;
|
|
58
|
-
});
|
|
58
|
+
}));
|
|
59
59
|
}, Un = ["$snapshot", "$pageview", "$pageleave", "$set", "survey dismissed", "survey sent", "survey shown", "$identify", "$groupidentify", "$create_alias", "$$client_ingestion_warning", "$web_experiment_applied", "$feature_enrollment_update", "$feature_flag_called"];
|
|
60
60
|
function S(r, e) {
|
|
61
61
|
return r.indexOf(e) !== -1;
|
|
@@ -80,13 +80,13 @@ function Vt(r, e) {
|
|
|
80
80
|
return Object.prototype.toString.call(r) === "[object " + e + "]";
|
|
81
81
|
}
|
|
82
82
|
function ws(r) {
|
|
83
|
-
return !v(Event) && function(e, t) {
|
|
83
|
+
return !v(Event) && (function(e, t) {
|
|
84
84
|
try {
|
|
85
85
|
return e instanceof t;
|
|
86
86
|
} catch {
|
|
87
87
|
return !1;
|
|
88
88
|
}
|
|
89
|
-
}(r, Event);
|
|
89
|
+
})(r, Event);
|
|
90
90
|
}
|
|
91
91
|
var Hn = [!0, "true", 1, "1", "yes"], hi = (r) => S(Hn, r), Vn = [!1, "false", 0, "0", "no"];
|
|
92
92
|
function de(r, e, t, i, s) {
|
|
@@ -116,7 +116,7 @@ function zn(r) {
|
|
|
116
116
|
var e = globalThis._posthogChunkIds;
|
|
117
117
|
if (e) {
|
|
118
118
|
var t = Object.keys(e);
|
|
119
|
-
return di && t.length === Er || (Er = t.length, di = t.reduce((i, s) => {
|
|
119
|
+
return di && t.length === Er || (Er = t.length, di = t.reduce(((i, s) => {
|
|
120
120
|
Tt || (Tt = {});
|
|
121
121
|
var n = Tt[s];
|
|
122
122
|
if (n) i[n[0]] = n[1];
|
|
@@ -128,7 +128,7 @@ function zn(r) {
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
return i;
|
|
131
|
-
}, {})), di;
|
|
131
|
+
}), {})), di;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
var et = "?";
|
|
@@ -186,14 +186,14 @@ function ta() {
|
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
return function(g) {
|
|
189
|
+
return (function(g) {
|
|
190
190
|
if (!g.length) return [];
|
|
191
191
|
var p = Array.from(g);
|
|
192
|
-
return p.reverse(), p.slice(0, xr).map((f) => {
|
|
192
|
+
return p.reverse(), p.slice(0, xr).map(((f) => {
|
|
193
193
|
return w({}, f, { filename: f.filename || (_ = p, _[_.length - 1] || {}).filename, function: f.function || et });
|
|
194
194
|
var _;
|
|
195
|
-
});
|
|
196
|
-
}(n);
|
|
195
|
+
}));
|
|
196
|
+
})(n);
|
|
197
197
|
};
|
|
198
198
|
}
|
|
199
199
|
class ia {
|
|
@@ -207,10 +207,10 @@ class ia {
|
|
|
207
207
|
}
|
|
208
208
|
modifyFrames(e) {
|
|
209
209
|
var t = this;
|
|
210
|
-
return br(function* () {
|
|
210
|
+
return br((function* () {
|
|
211
211
|
for (var i of e) i.stacktrace && i.stacktrace.frames && T(i.stacktrace.frames) && (i.stacktrace.frames = yield t.applyModifiers(i.stacktrace.frames));
|
|
212
212
|
return e;
|
|
213
|
-
})();
|
|
213
|
+
}))();
|
|
214
214
|
}
|
|
215
215
|
coerceFallback(e) {
|
|
216
216
|
var t;
|
|
@@ -221,7 +221,7 @@ class ia {
|
|
|
221
221
|
return e.cause != null && (i = this.parseStacktrace(e.cause, t)), e.stack != "" && e.stack != null && (s = this.applyChunkIds(this.stackParser(e.stack, e.synthetic ? 1 : 0), t.chunkIdMap)), w({}, e, { cause: i, stack: s });
|
|
222
222
|
}
|
|
223
223
|
applyChunkIds(e, t) {
|
|
224
|
-
return e.map((i) => (i.filename && t && (i.chunk_id = t[i.filename]), i));
|
|
224
|
+
return e.map(((i) => (i.filename && t && (i.chunk_id = t[i.filename]), i)));
|
|
225
225
|
}
|
|
226
226
|
applyCoercers(e, t) {
|
|
227
227
|
for (var i of this.coercers) if (i.match(e)) return i.coerce(e, t);
|
|
@@ -229,11 +229,11 @@ class ia {
|
|
|
229
229
|
}
|
|
230
230
|
applyModifiers(e) {
|
|
231
231
|
var t = this;
|
|
232
|
-
return br(function* () {
|
|
232
|
+
return br((function* () {
|
|
233
233
|
var i = e;
|
|
234
234
|
for (var s of t.modifiers) i = yield s(i);
|
|
235
235
|
return i;
|
|
236
|
-
})();
|
|
236
|
+
}))();
|
|
237
237
|
}
|
|
238
238
|
convertToExceptionList(e, t) {
|
|
239
239
|
var i, s, n, a = { type: e.type, value: e.value, mechanism: { type: (i = t.type) !== null && i !== void 0 ? i : "generic", handled: (s = t.handled) === null || s === void 0 || s, synthetic: (n = e.synthetic) !== null && n !== void 0 && n } };
|
|
@@ -434,9 +434,9 @@ var xs = (r) => {
|
|
|
434
434
|
for (var s, n = function() {
|
|
435
435
|
if (i[a].src === e) {
|
|
436
436
|
var l = i[a];
|
|
437
|
-
return l.__posthog_loading_callback_fired ? { v: t() } : (l.addEventListener("load", (u) => {
|
|
437
|
+
return l.__posthog_loading_callback_fired ? { v: t() } : (l.addEventListener("load", ((u) => {
|
|
438
438
|
l.__posthog_loading_callback_fired = !0, t(void 0, u);
|
|
439
|
-
}), l.onerror = (u) => t(u), { v: void 0 });
|
|
439
|
+
})), l.onerror = (u) => t(u), { v: void 0 });
|
|
440
440
|
}
|
|
441
441
|
}, a = 0; a < i.length; a++) if (s = n()) return s.v;
|
|
442
442
|
}
|
|
@@ -482,16 +482,16 @@ function F(r, e, t) {
|
|
|
482
482
|
}
|
|
483
483
|
var A = function(r) {
|
|
484
484
|
for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++) t[i - 1] = arguments[i];
|
|
485
|
-
return Re(t, function(s) {
|
|
485
|
+
return Re(t, (function(s) {
|
|
486
486
|
for (var n in s) s[n] !== void 0 && (r[n] = s[n]);
|
|
487
|
-
}), r;
|
|
487
|
+
})), r;
|
|
488
488
|
}, st = function(r) {
|
|
489
489
|
for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++) t[i - 1] = arguments[i];
|
|
490
|
-
return Re(t, function(s) {
|
|
491
|
-
Re(s, function(n) {
|
|
490
|
+
return Re(t, (function(s) {
|
|
491
|
+
Re(s, (function(n) {
|
|
492
492
|
r.push(n);
|
|
493
|
-
});
|
|
494
|
-
}), r;
|
|
493
|
+
}));
|
|
494
|
+
})), r;
|
|
495
495
|
};
|
|
496
496
|
function Nt(r) {
|
|
497
497
|
for (var e = Object.keys(r), t = e.length, i = new Array(t); t--; ) i[t] = [e[t], r[e[t]]];
|
|
@@ -514,19 +514,19 @@ var Pr = function(r) {
|
|
|
514
514
|
};
|
|
515
515
|
}, Qi = function(r) {
|
|
516
516
|
var e = {};
|
|
517
|
-
return F(r, function(t, i) {
|
|
517
|
+
return F(r, (function(t, i) {
|
|
518
518
|
(N(t) && t.length > 0 || fe(t)) && (e[i] = t);
|
|
519
|
-
}), e;
|
|
519
|
+
})), e;
|
|
520
520
|
};
|
|
521
521
|
function fa(r, e) {
|
|
522
|
-
return t = r, i = (n) => N(n) && !Ee(e) ? n.slice(0, e) : n, s = /* @__PURE__ */ new Set(), function n(a, o) {
|
|
523
|
-
return a !== Object(a) ? i ? i(a, o) : a : s.has(a) ? void 0 : (s.add(a), T(a) ? (l = [], Re(a, (u) => {
|
|
522
|
+
return t = r, i = (n) => N(n) && !Ee(e) ? n.slice(0, e) : n, s = /* @__PURE__ */ new Set(), (function n(a, o) {
|
|
523
|
+
return a !== Object(a) ? i ? i(a, o) : a : s.has(a) ? void 0 : (s.add(a), T(a) ? (l = [], Re(a, ((u) => {
|
|
524
524
|
l.push(n(u));
|
|
525
|
-
})) : (l = {}, F(a, (u, c) => {
|
|
525
|
+
}))) : (l = {}, F(a, ((u, c) => {
|
|
526
526
|
s.has(u) || (l[c] = n(u, c));
|
|
527
|
-
})), l);
|
|
527
|
+
}))), l);
|
|
528
528
|
var l;
|
|
529
|
-
}(t);
|
|
529
|
+
})(t);
|
|
530
530
|
var t, i, s;
|
|
531
531
|
}
|
|
532
532
|
var _a = ["herokuapp.com", "vercel.app", "netlify.app"];
|
|
@@ -565,7 +565,7 @@ function er(r) {
|
|
|
565
565
|
}
|
|
566
566
|
function Rr(r) {
|
|
567
567
|
var e = d == null ? void 0 : d.location.href;
|
|
568
|
-
return !!(e && r && r.some((t) => e.match(t)));
|
|
568
|
+
return !!(e && r && r.some(((t) => e.match(t))));
|
|
569
569
|
}
|
|
570
570
|
function Kt(r) {
|
|
571
571
|
var e = "";
|
|
@@ -582,14 +582,14 @@ function Kt(r) {
|
|
|
582
582
|
return er(e);
|
|
583
583
|
}
|
|
584
584
|
function Os(r) {
|
|
585
|
-
return O(r) ? null : si(r).split(/(\s+)/).filter((e) => kt(e)).join("").replace(/[\r\n]/g, " ").replace(/[ ]+/g, " ").substring(0, 255);
|
|
585
|
+
return O(r) ? null : si(r).split(/(\s+)/).filter(((e) => kt(e))).join("").replace(/[\r\n]/g, " ").replace(/[ ]+/g, " ").substring(0, 255);
|
|
586
586
|
}
|
|
587
587
|
function $t(r) {
|
|
588
588
|
var e = "";
|
|
589
|
-
return Bi(r) && !Ls(r) && r.childNodes && r.childNodes.length && F(r.childNodes, function(t) {
|
|
589
|
+
return Bi(r) && !Ls(r) && r.childNodes && r.childNodes.length && F(r.childNodes, (function(t) {
|
|
590
590
|
var i;
|
|
591
591
|
Fs(t) && t.textContent && (e += (i = Os(t.textContent)) !== null && i !== void 0 ? i : "");
|
|
592
|
-
}), si(e);
|
|
592
|
+
})), si(e);
|
|
593
593
|
}
|
|
594
594
|
function Rs(r) {
|
|
595
595
|
return v(r.target) ? r.srcElement || null : (e = r.target) != null && e.shadowRoot ? r.composedPath()[0] || null : r.target || null;
|
|
@@ -599,7 +599,7 @@ var tr = ["a", "button", "form", "input", "select", "textarea", "label"];
|
|
|
599
599
|
function Ds(r, e) {
|
|
600
600
|
if (v(e)) return !0;
|
|
601
601
|
var t, i = function(n) {
|
|
602
|
-
if (e.some((a) => n.matches(a))) return { v: !0 };
|
|
602
|
+
if (e.some(((a) => n.matches(a)))) return { v: !0 };
|
|
603
603
|
};
|
|
604
604
|
for (var s of r) if (t = i(s)) return t.v;
|
|
605
605
|
return !1;
|
|
@@ -614,23 +614,23 @@ function ba(r, e) {
|
|
|
614
614
|
var t, i, s;
|
|
615
615
|
if (Oe(e) ? (t = !!e && Mr, i = void 0) : (t = (s = e == null ? void 0 : e.css_selector_ignorelist) !== null && s !== void 0 ? s : Mr, i = e == null ? void 0 : e.content_ignorelist), t === !1) return !1;
|
|
616
616
|
var { targetElementList: n } = As(r, !1);
|
|
617
|
-
return !function(a, o) {
|
|
617
|
+
return !(function(a, o) {
|
|
618
618
|
if (a === !1 || v(a)) return !1;
|
|
619
619
|
var l;
|
|
620
620
|
if (a === !0) l = ya;
|
|
621
621
|
else {
|
|
622
622
|
if (!T(a)) return !1;
|
|
623
623
|
if (a.length > Dr) return y.error("[PostHog] content_ignorelist array cannot exceed " + Dr + " items. Use css_selector_ignorelist for more complex matching."), !1;
|
|
624
|
-
l = a.map((u) => u.toLowerCase());
|
|
624
|
+
l = a.map(((u) => u.toLowerCase()));
|
|
625
625
|
}
|
|
626
|
-
return o.some((u) => {
|
|
626
|
+
return o.some(((u) => {
|
|
627
627
|
var { safeText: c, ariaLabel: h } = u;
|
|
628
|
-
return l.some((g) => c.includes(g) || h.includes(g));
|
|
629
|
-
});
|
|
630
|
-
}(i, n.map((a) => {
|
|
628
|
+
return l.some(((g) => c.includes(g) || h.includes(g)));
|
|
629
|
+
}));
|
|
630
|
+
})(i, n.map(((a) => {
|
|
631
631
|
var o;
|
|
632
632
|
return { safeText: $t(a).toLowerCase(), ariaLabel: ((o = a.getAttribute("aria-label")) == null ? void 0 : o.toLowerCase().trim()) || "" };
|
|
633
|
-
})) && !Ds(n, t);
|
|
633
|
+
}))) && !Ds(n, t);
|
|
634
634
|
}
|
|
635
635
|
var ir = (r) => !r || De(r, "html") || !ai(r), As = (r, e) => {
|
|
636
636
|
if (!d || ir(r)) return { parentIsUsefulElement: !1, targetElementList: [] };
|
|
@@ -652,18 +652,18 @@ function wa(r, e, t, i, s) {
|
|
|
652
652
|
if (t === void 0 && (t = void 0), !d || ir(r) || (n = t) != null && n.url_allowlist && !Rr(t.url_allowlist) || (a = t) != null && a.url_ignorelist && Rr(t.url_ignorelist)) return !1;
|
|
653
653
|
if ((o = t) != null && o.dom_event_allowlist) {
|
|
654
654
|
var u = t.dom_event_allowlist;
|
|
655
|
-
if (u && !u.some((f) => e.type === f)) return !1;
|
|
655
|
+
if (u && !u.some(((f) => e.type === f))) return !1;
|
|
656
656
|
}
|
|
657
657
|
var { parentIsUsefulElement: c, targetElementList: h } = As(r, i);
|
|
658
|
-
if (!function(f, _) {
|
|
658
|
+
if (!(function(f, _) {
|
|
659
659
|
var b = _ == null ? void 0 : _.element_allowlist;
|
|
660
660
|
if (v(b)) return !0;
|
|
661
661
|
var E, x = function(P) {
|
|
662
|
-
if (b.some((M) => P.tagName.toLowerCase() === M)) return { v: !0 };
|
|
662
|
+
if (b.some(((M) => P.tagName.toLowerCase() === M))) return { v: !0 };
|
|
663
663
|
};
|
|
664
664
|
for (var $ of f) if (E = x($)) return E.v;
|
|
665
665
|
return !1;
|
|
666
|
-
}(h, t) || !Ds(h, (l = t) == null ? void 0 : l.css_selector_allowlist)) return !1;
|
|
666
|
+
})(h, t) || !Ds(h, (l = t) == null ? void 0 : l.css_selector_allowlist)) return !1;
|
|
667
667
|
var g = d.getComputedStyle(r);
|
|
668
668
|
if (g && g.getPropertyValue("cursor") === "pointer" && e.type === "click") return !0;
|
|
669
669
|
var p = r.tagName.toLowerCase();
|
|
@@ -708,7 +708,7 @@ function qs(r) {
|
|
|
708
708
|
}
|
|
709
709
|
function js(r) {
|
|
710
710
|
var e = "";
|
|
711
|
-
return r && r.childNodes && r.childNodes.length && F(r.childNodes, function(t) {
|
|
711
|
+
return r && r.childNodes && r.childNodes.length && F(r.childNodes, (function(t) {
|
|
712
712
|
var i;
|
|
713
713
|
if (t && ((i = t.tagName) == null ? void 0 : i.toLowerCase()) === "span") try {
|
|
714
714
|
var s = $t(t);
|
|
@@ -716,38 +716,38 @@ function js(r) {
|
|
|
716
716
|
} catch (n) {
|
|
717
717
|
y.error("[AutoCapture]", n);
|
|
718
718
|
}
|
|
719
|
-
}), e;
|
|
719
|
+
})), e;
|
|
720
720
|
}
|
|
721
721
|
function Pa(r) {
|
|
722
|
-
return function(e) {
|
|
723
|
-
var t = e.map((i) => {
|
|
722
|
+
return (function(e) {
|
|
723
|
+
var t = e.map(((i) => {
|
|
724
724
|
var s, n, a = "";
|
|
725
725
|
if (i.tag_name && (a += i.tag_name), i.attr_class) for (var o of (i.attr_class.sort(), i.attr_class)) a += "." + o.replace(/"/g, "");
|
|
726
726
|
var l = w({}, i.text ? { text: i.text } : {}, { "nth-child": (s = i.nth_child) !== null && s !== void 0 ? s : 0, "nth-of-type": (n = i.nth_of_type) !== null && n !== void 0 ? n : 0 }, i.href ? { href: i.href } : {}, i.attr_id ? { attr_id: i.attr_id } : {}, i.attributes), u = {};
|
|
727
|
-
return Nt(l).sort((c, h) => {
|
|
727
|
+
return Nt(l).sort(((c, h) => {
|
|
728
728
|
var [g] = c, [p] = h;
|
|
729
729
|
return g.localeCompare(p);
|
|
730
|
-
}).forEach((c) => {
|
|
730
|
+
})).forEach(((c) => {
|
|
731
731
|
var [h, g] = c;
|
|
732
732
|
return u[Ar(h.toString())] = Ar(g.toString());
|
|
733
|
-
}), a += ":", a += Nt(u).map((c) => {
|
|
733
|
+
})), a += ":", a += Nt(u).map(((c) => {
|
|
734
734
|
var [h, g] = c;
|
|
735
735
|
return h + '="' + g + '"';
|
|
736
|
-
}).join("");
|
|
737
|
-
});
|
|
736
|
+
})).join("");
|
|
737
|
+
}));
|
|
738
738
|
return t.join(";");
|
|
739
|
-
}(function(e) {
|
|
740
|
-
return e.map((t) => {
|
|
739
|
+
})((function(e) {
|
|
740
|
+
return e.map(((t) => {
|
|
741
741
|
var i, s, n = { text: (i = t.$el_text) == null ? void 0 : i.slice(0, 400), tag_name: t.tag_name, href: (s = t.attr__href) == null ? void 0 : s.slice(0, 2048), attr_class: Ca(t), attr_id: t.attr__id, nth_child: t.nth_child, nth_of_type: t.nth_of_type, attributes: {} };
|
|
742
|
-
return Nt(t).filter((a) => {
|
|
742
|
+
return Nt(t).filter(((a) => {
|
|
743
743
|
var [o] = a;
|
|
744
744
|
return o.indexOf("attr__") === 0;
|
|
745
|
-
}).forEach((a) => {
|
|
745
|
+
})).forEach(((a) => {
|
|
746
746
|
var [o, l] = a;
|
|
747
747
|
return n.attributes[o] = l;
|
|
748
|
-
}), n;
|
|
749
|
-
});
|
|
750
|
-
}(r));
|
|
748
|
+
})), n;
|
|
749
|
+
}));
|
|
750
|
+
})(r));
|
|
751
751
|
}
|
|
752
752
|
function Ar(r) {
|
|
753
753
|
return r.replace(/"|\\"/g, '\\"');
|
|
@@ -771,18 +771,18 @@ class Bs {
|
|
|
771
771
|
return !1;
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
|
-
var gi = "$copy_autocapture", we = function(r) {
|
|
774
|
+
var gi = "$copy_autocapture", we = (function(r) {
|
|
775
775
|
return r.GZipJS = "gzip-js", r.Base64 = "base64", r;
|
|
776
|
-
}({}), Jt = (r) => {
|
|
776
|
+
})({}), Jt = (r) => {
|
|
777
777
|
var e = m == null ? void 0 : m.createElement("a");
|
|
778
778
|
return v(e) ? null : (e.href = r, e);
|
|
779
779
|
}, $a = function(r, e) {
|
|
780
780
|
var t, i;
|
|
781
781
|
e === void 0 && (e = "&");
|
|
782
782
|
var s = [];
|
|
783
|
-
return F(r, function(n, a) {
|
|
783
|
+
return F(r, (function(n, a) {
|
|
784
784
|
v(n) || v(a) || a === "undefined" || (t = encodeURIComponent(((o) => o instanceof File)(n) ? n.name : n.toString()), i = encodeURIComponent(a), s[s.length] = i + "=" + t);
|
|
785
|
-
}), s.join(e);
|
|
785
|
+
})), s.join(e);
|
|
786
786
|
}, Zt = function(r, e) {
|
|
787
787
|
for (var t, i = ((r.split("#")[0] || "").split(/\?(.*)/)[1] || "").replace(/^\?+/g, "").split("&"), s = 0; s < i.length; s++) {
|
|
788
788
|
var n = i[s].split("=");
|
|
@@ -826,36 +826,36 @@ function Fa(r, e, t, i) {
|
|
|
826
826
|
var s = r.tagName.toLowerCase(), n = { tag_name: s };
|
|
827
827
|
tr.indexOf(s) > -1 && !t && (s.toLowerCase() === "a" || s.toLowerCase() === "button" ? n.$el_text = fi(1024, qs(r)) : n.$el_text = fi(1024, $t(r)));
|
|
828
828
|
var a = Kt(r);
|
|
829
|
-
a.length > 0 && (n.classes = a.filter(function(c) {
|
|
829
|
+
a.length > 0 && (n.classes = a.filter((function(c) {
|
|
830
830
|
return c !== "";
|
|
831
|
-
})), F(r.attributes, function(c) {
|
|
831
|
+
}))), F(r.attributes, (function(c) {
|
|
832
832
|
var h;
|
|
833
833
|
if ((!Ls(r) || ["name", "id", "class", "aria-label"].indexOf(c.name) !== -1) && (i == null || !i.includes(c.name)) && !e && kt(c.value) && (h = c.name, !N(h) || h.substring(0, 10) !== "_ngcontent" && h.substring(0, 7) !== "_nghost")) {
|
|
834
834
|
var g = c.value;
|
|
835
835
|
c.name === "class" && (g = er(g).join(" ")), n["attr__" + c.name] = fi(1024, g);
|
|
836
836
|
}
|
|
837
|
-
});
|
|
837
|
+
}));
|
|
838
838
|
for (var o = 1, l = 1, u = r; u = Ia(u); ) o++, u.tagName === r.tagName && l++;
|
|
839
839
|
return n.nth_child = o, n.nth_of_type = l, n;
|
|
840
840
|
}
|
|
841
841
|
function Ta(r, e) {
|
|
842
842
|
for (var t, i, { e: s, maskAllElementAttributes: n, maskAllText: a, elementAttributeIgnoreList: o, elementsChainAsString: l } = e, u = [r], c = r; c.parentNode && !De(c, "body"); ) Ts(c.parentNode) ? (u.push(c.parentNode.host), c = c.parentNode.host) : (u.push(c.parentNode), c = c.parentNode);
|
|
843
843
|
var h, g = [], p = {}, f = !1, _ = !1;
|
|
844
|
-
if (F(u, (P) => {
|
|
844
|
+
if (F(u, ((P) => {
|
|
845
845
|
var M = Bi(P);
|
|
846
846
|
P.tagName.toLowerCase() === "a" && (f = P.getAttribute("href"), f = M && f && kt(f) && f), S(Kt(P), "ph-no-capture") && (_ = !0), g.push(Fa(P, n, a, o));
|
|
847
|
-
var ne = function(K) {
|
|
847
|
+
var ne = (function(K) {
|
|
848
848
|
if (!Bi(K)) return {};
|
|
849
849
|
var C = {};
|
|
850
|
-
return F(K.attributes, function(le) {
|
|
850
|
+
return F(K.attributes, (function(le) {
|
|
851
851
|
if (le.name && le.name.indexOf("data-ph-capture-attribute") === 0) {
|
|
852
852
|
var J = le.name.replace("data-ph-capture-attribute-", ""), ae = le.value;
|
|
853
853
|
J && ae && kt(ae) && (C[J] = ae);
|
|
854
854
|
}
|
|
855
|
-
}), C;
|
|
856
|
-
}(P);
|
|
855
|
+
})), C;
|
|
856
|
+
})(P);
|
|
857
857
|
A(p, ne);
|
|
858
|
-
}), _) return { props: {}, explicitNoCapture: _ };
|
|
858
|
+
})), _) return { props: {}, explicitNoCapture: _ };
|
|
859
859
|
if (a || (r.tagName.toLowerCase() === "a" || r.tagName.toLowerCase() === "button" ? g[0].$el_text = qs(r) : g[0].$el_text = $t(r)), f) {
|
|
860
860
|
var b, E;
|
|
861
861
|
g[0].attr__href = f;
|
|
@@ -870,7 +870,7 @@ class Oa {
|
|
|
870
870
|
}
|
|
871
871
|
get C() {
|
|
872
872
|
var e, t, i = j(this.instance.config.autocapture) ? this.instance.config.autocapture : {};
|
|
873
|
-
return i.url_allowlist = (e = i.url_allowlist) == null ? void 0 : e.map((s) => new RegExp(s)), i.url_ignorelist = (t = i.url_ignorelist) == null ? void 0 : t.map((s) => new RegExp(s)), i;
|
|
873
|
+
return i.url_allowlist = (e = i.url_allowlist) == null ? void 0 : e.map(((s) => new RegExp(s))), i.url_ignorelist = (t = i.url_ignorelist) == null ? void 0 : t.map(((s) => new RegExp(s))), i;
|
|
874
874
|
}
|
|
875
875
|
O() {
|
|
876
876
|
if (this.isBrowserSupported()) {
|
|
@@ -903,12 +903,12 @@ class Oa {
|
|
|
903
903
|
}
|
|
904
904
|
getElementSelectors(e) {
|
|
905
905
|
var t, i = [];
|
|
906
|
-
return (t = this.R) == null || t.forEach((s) => {
|
|
906
|
+
return (t = this.R) == null || t.forEach(((s) => {
|
|
907
907
|
var n = m == null ? void 0 : m.querySelectorAll(s);
|
|
908
|
-
n == null || n.forEach((a) => {
|
|
908
|
+
n == null || n.forEach(((a) => {
|
|
909
909
|
e === a && i.push(s);
|
|
910
|
-
});
|
|
911
|
-
}), i;
|
|
910
|
+
}));
|
|
911
|
+
})), i;
|
|
912
912
|
}
|
|
913
913
|
get isEnabled() {
|
|
914
914
|
var e, t, i = (e = this.instance.persistence) == null ? void 0 : e.props[Cr], s = this.T;
|
|
@@ -1016,7 +1016,7 @@ class Da {
|
|
|
1016
1016
|
var Fe = () => Ma().toString(), Ma = () => (Ur || (Ur = new Ra())).generate(), lt = "", Aa = /[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i;
|
|
1017
1017
|
function La(r, e) {
|
|
1018
1018
|
if (e) {
|
|
1019
|
-
var t = function(s, n) {
|
|
1019
|
+
var t = (function(s, n) {
|
|
1020
1020
|
if (n === void 0 && (n = m), lt) return lt;
|
|
1021
1021
|
if (!n || ["localhost", "127.0.0.1"].includes(s)) return "";
|
|
1022
1022
|
for (var a = s.split("."), o = Math.min(a.length, 8), l = "dmn_chk_" + Fe(); !lt && o--; ) {
|
|
@@ -1024,7 +1024,7 @@ function La(r, e) {
|
|
|
1024
1024
|
n.cookie = c + ";max-age=3", n.cookie.includes(l) && (n.cookie = c + ";max-age=0", lt = u);
|
|
1025
1025
|
}
|
|
1026
1026
|
return lt;
|
|
1027
|
-
}(r);
|
|
1027
|
+
})(r);
|
|
1028
1028
|
if (!t) {
|
|
1029
1029
|
var i = ((s) => {
|
|
1030
1030
|
var n = s.match(Aa);
|
|
@@ -1041,7 +1041,7 @@ var ge = { H: () => !!m, B: function(r) {
|
|
|
1041
1041
|
}, q: function(r) {
|
|
1042
1042
|
if (m) {
|
|
1043
1043
|
try {
|
|
1044
|
-
for (var e = r + "=", t = m.cookie.split(";").filter((n) => n.length), i = 0; i < t.length; i++) {
|
|
1044
|
+
for (var e = r + "=", t = m.cookie.split(";").filter(((n) => n.length)), i = 0; i < t.length; i++) {
|
|
1045
1045
|
for (var s = t[i]; s.charAt(0) == " "; ) s = s.substring(1, s.length);
|
|
1046
1046
|
if (s.indexOf(e) === 0) return decodeURIComponent(s.substring(e.length, s.length));
|
|
1047
1047
|
}
|
|
@@ -1129,9 +1129,9 @@ var ge = { H: () => !!m, B: function(r) {
|
|
|
1129
1129
|
try {
|
|
1130
1130
|
D.G(r, e, void 0, void 0, n);
|
|
1131
1131
|
var a = {};
|
|
1132
|
-
Na.forEach((o) => {
|
|
1132
|
+
Na.forEach(((o) => {
|
|
1133
1133
|
e[o] && (a[o] = e[o]);
|
|
1134
|
-
}), Object.keys(a).length && ge.G(r, a, t, i, s, n);
|
|
1134
|
+
})), Object.keys(a).length && ge.G(r, a, t, i, s, n);
|
|
1135
1135
|
} catch (o) {
|
|
1136
1136
|
D.B(o);
|
|
1137
1137
|
}
|
|
@@ -1190,9 +1190,9 @@ var ge = { H: () => !!m, B: function(r) {
|
|
|
1190
1190
|
} catch (e) {
|
|
1191
1191
|
q.B(e);
|
|
1192
1192
|
}
|
|
1193
|
-
} }, be = function(r) {
|
|
1193
|
+
} }, be = (function(r) {
|
|
1194
1194
|
return r[r.PENDING = -1] = "PENDING", r[r.DENIED = 0] = "DENIED", r[r.GRANTED = 1] = "GRANTED", r;
|
|
1195
|
-
}({});
|
|
1195
|
+
})({});
|
|
1196
1196
|
class qa {
|
|
1197
1197
|
constructor(e) {
|
|
1198
1198
|
this._instance = e;
|
|
@@ -1236,7 +1236,7 @@ class qa {
|
|
|
1236
1236
|
return this.Z;
|
|
1237
1237
|
}
|
|
1238
1238
|
J() {
|
|
1239
|
-
return !!this.C.respect_dnt && !!Ss([Q == null ? void 0 : Q.doNotTrack, Q == null ? void 0 : Q.msDoNotTrack, k.doNotTrack], (e) => hi(e));
|
|
1239
|
+
return !!this.C.respect_dnt && !!Ss([Q == null ? void 0 : Q.doNotTrack, Q == null ? void 0 : Q.msDoNotTrack, k.doNotTrack], ((e) => hi(e)));
|
|
1240
1240
|
}
|
|
1241
1241
|
}
|
|
1242
1242
|
var Mt = U("[Dead Clicks]"), ja = () => !0, Ba = (r) => {
|
|
@@ -1254,15 +1254,15 @@ class Vs {
|
|
|
1254
1254
|
this.instance.persistence && this.instance.persistence.register({ [Cs]: e == null ? void 0 : e.captureDeadClicks }), this.startIfEnabled();
|
|
1255
1255
|
}
|
|
1256
1256
|
startIfEnabled() {
|
|
1257
|
-
this.isEnabled(this) && this.it(() => {
|
|
1257
|
+
this.isEnabled(this) && this.it((() => {
|
|
1258
1258
|
this.et();
|
|
1259
|
-
});
|
|
1259
|
+
}));
|
|
1260
1260
|
}
|
|
1261
1261
|
it(e) {
|
|
1262
1262
|
var t, i;
|
|
1263
|
-
(t = k.__PosthogExtensions__) != null && t.initDeadClicksAutocapture && e(), (i = k.__PosthogExtensions__) == null || i.loadExternalDependency == null || i.loadExternalDependency(this.instance, "dead-clicks-autocapture", (s) => {
|
|
1263
|
+
(t = k.__PosthogExtensions__) != null && t.initDeadClicksAutocapture && e(), (i = k.__PosthogExtensions__) == null || i.loadExternalDependency == null || i.loadExternalDependency(this.instance, "dead-clicks-autocapture", ((s) => {
|
|
1264
1264
|
s ? Mt.error("failed to load script", s) : e();
|
|
1265
|
-
});
|
|
1265
|
+
}));
|
|
1266
1266
|
}
|
|
1267
1267
|
et() {
|
|
1268
1268
|
var e;
|
|
@@ -1305,10 +1305,10 @@ class Ha {
|
|
|
1305
1305
|
}
|
|
1306
1306
|
it(e) {
|
|
1307
1307
|
var t, i;
|
|
1308
|
-
(t = k.__PosthogExtensions__) != null && t.errorWrappingFunctions && e(), (i = k.__PosthogExtensions__) == null || i.loadExternalDependency == null || i.loadExternalDependency(this._instance, "exception-autocapture", (s) => {
|
|
1308
|
+
(t = k.__PosthogExtensions__) != null && t.errorWrappingFunctions && e(), (i = k.__PosthogExtensions__) == null || i.loadExternalDependency == null || i.loadExternalDependency(this._instance, "exception-autocapture", ((s) => {
|
|
1309
1309
|
if (s) return ct.error("failed to load script", s);
|
|
1310
1310
|
e();
|
|
1311
|
-
});
|
|
1311
|
+
}));
|
|
1312
1312
|
}
|
|
1313
1313
|
lt() {
|
|
1314
1314
|
var e, t, i;
|
|
@@ -1354,11 +1354,11 @@ class Va {
|
|
|
1354
1354
|
var e, t;
|
|
1355
1355
|
if (d && d.history) {
|
|
1356
1356
|
var i = this;
|
|
1357
|
-
(e = d.history.pushState) != null && e.__posthog_wrapped__ || qr(d.history, "pushState", (s) => function(n, a, o) {
|
|
1357
|
+
(e = d.history.pushState) != null && e.__posthog_wrapped__ || qr(d.history, "pushState", ((s) => function(n, a, o) {
|
|
1358
1358
|
s.call(this, n, a, o), i.ft("pushState");
|
|
1359
|
-
}), (t = d.history.replaceState) != null && t.__posthog_wrapped__ || qr(d.history, "replaceState", (s) => function(n, a, o) {
|
|
1359
|
+
})), (t = d.history.replaceState) != null && t.__posthog_wrapped__ || qr(d.history, "replaceState", ((s) => function(n, a, o) {
|
|
1360
1360
|
s.call(this, n, a, o), i.ft("replaceState");
|
|
1361
|
-
}), this.gt();
|
|
1361
|
+
})), this.gt();
|
|
1362
1362
|
}
|
|
1363
1363
|
}
|
|
1364
1364
|
ft(e) {
|
|
@@ -1392,8 +1392,8 @@ function Ga(r, e) {
|
|
|
1392
1392
|
var u = () => l.anonymousId() || Fe();
|
|
1393
1393
|
i.config.get_device_id = u, l.id() && (i.register({ distinct_id: l.id(), $device_id: u() }), i.persistence.set_property(ye, "identified")), s();
|
|
1394
1394
|
}, o = n.user();
|
|
1395
|
-
"then" in o && Te(o.then) ? o.then((l) => a(l)) : a(o);
|
|
1396
|
-
})(r, () => {
|
|
1395
|
+
"then" in o && Te(o.then) ? o.then(((l) => a(l))) : a(o);
|
|
1396
|
+
})(r, (() => {
|
|
1397
1397
|
t.register(((i) => {
|
|
1398
1398
|
Promise && Promise.resolve || vi.warn("This browser does not have Promise support, and can not use the segment integration");
|
|
1399
1399
|
var s = (n, a) => {
|
|
@@ -1403,10 +1403,10 @@ function Ga(r, e) {
|
|
|
1403
1403
|
return n.event.properties = Object.assign({}, o, n.event.properties), n;
|
|
1404
1404
|
};
|
|
1405
1405
|
return { name: "PostHog JS", type: "enrichment", version: "1.0.0", isLoaded: () => !0, load: () => Promise.resolve(), track: (n) => s(n, n.event.event), page: (n) => s(n, "$pageview"), identify: (n) => s(n, "$identify"), screen: (n) => s(n, "$screen") };
|
|
1406
|
-
})(r)).then(() => {
|
|
1406
|
+
})(r)).then((() => {
|
|
1407
1407
|
e();
|
|
1408
|
-
});
|
|
1409
|
-
});
|
|
1408
|
+
}));
|
|
1409
|
+
}));
|
|
1410
1410
|
}
|
|
1411
1411
|
var Gs = "posthog-js";
|
|
1412
1412
|
function Ws(r, e) {
|
|
@@ -1417,7 +1417,7 @@ function Ws(r, e) {
|
|
|
1417
1417
|
o.tags || (o.tags = {});
|
|
1418
1418
|
var p = r.requestRouter.endpointFor("ui", "/project/" + r.config.token + "/person/" + r.get_distinct_id());
|
|
1419
1419
|
o.tags["PostHog Person URL"] = p, r.sessionRecordingStarted() && (o.tags["PostHog Recording URL"] = r.get_session_replay_url({ withTimestamp: !0 }));
|
|
1420
|
-
var f = ((l = o.exception) == null ? void 0 : l.values) || [], _ = f.map((E) => w({}, E, { stacktrace: E.stacktrace ? w({}, E.stacktrace, { type: "raw", frames: (E.stacktrace.frames || []).map((x) => w({}, x, { platform: "web:javascript" })) }) : void 0 })), b = { $exception_message: ((u = f[0]) == null ? void 0 : u.value) || o.message, $exception_type: (c = f[0]) == null ? void 0 : c.type, $exception_level: o.level, $exception_list: _, $sentry_event_id: o.event_id, $sentry_exception: o.exception, $sentry_exception_message: ((h = f[0]) == null ? void 0 : h.value) || o.message, $sentry_exception_type: (g = f[0]) == null ? void 0 : g.type, $sentry_tags: o.tags };
|
|
1420
|
+
var f = ((l = o.exception) == null ? void 0 : l.values) || [], _ = f.map(((E) => w({}, E, { stacktrace: E.stacktrace ? w({}, E.stacktrace, { type: "raw", frames: (E.stacktrace.frames || []).map(((x) => w({}, x, { platform: "web:javascript" }))) }) : void 0 }))), b = { $exception_message: ((u = f[0]) == null ? void 0 : u.value) || o.message, $exception_type: (c = f[0]) == null ? void 0 : c.type, $exception_level: o.level, $exception_list: _, $sentry_event_id: o.event_id, $sentry_exception: o.exception, $sentry_exception_message: ((h = f[0]) == null ? void 0 : h.value) || o.message, $sentry_exception_type: (g = f[0]) == null ? void 0 : g.type, $sentry_tags: o.tags };
|
|
1421
1421
|
return t && i && (b.$sentry_url = (s || "https://sentry.io/organizations/") + t + "/issues/?project=" + i + "&query=" + o.event_id), a && r.exceptions.sendExceptionEvent(b), o;
|
|
1422
1422
|
};
|
|
1423
1423
|
}
|
|
@@ -1428,9 +1428,9 @@ class Wa {
|
|
|
1428
1428
|
};
|
|
1429
1429
|
}
|
|
1430
1430
|
}
|
|
1431
|
-
var za = d != null && d.location ? Qt(d.location.hash, "__posthog") || Qt(location.hash, "state") : null, jr = "_postHogToolbarParams", Br = U("[Toolbar]"), Ie = function(r) {
|
|
1431
|
+
var za = d != null && d.location ? Qt(d.location.hash, "__posthog") || Qt(location.hash, "state") : null, jr = "_postHogToolbarParams", Br = U("[Toolbar]"), Ie = (function(r) {
|
|
1432
1432
|
return r[r.UNINITIALIZED = 0] = "UNINITIALIZED", r[r.LOADING = 1] = "LOADING", r[r.LOADED = 2] = "LOADED", r;
|
|
1433
|
-
}(Ie || {});
|
|
1433
|
+
})(Ie || {});
|
|
1434
1434
|
class Ya {
|
|
1435
1435
|
constructor(e) {
|
|
1436
1436
|
this.instance = e;
|
|
@@ -1454,7 +1454,7 @@ class Ya {
|
|
|
1454
1454
|
}
|
|
1455
1455
|
t = d == null ? void 0 : d.localStorage;
|
|
1456
1456
|
}
|
|
1457
|
-
var s, n = za || Qt(e.hash, "__posthog") || Qt(e.hash, "state"), a = n ? Pr(() => JSON.parse(atob(decodeURIComponent(n)))) || Pr(() => JSON.parse(decodeURIComponent(n))) : null;
|
|
1457
|
+
var s, n = za || Qt(e.hash, "__posthog") || Qt(e.hash, "state"), a = n ? Pr((() => JSON.parse(atob(decodeURIComponent(n))))) || Pr((() => JSON.parse(decodeURIComponent(n)))) : null;
|
|
1458
1458
|
return a && a.action === "ph_authorize" ? ((s = a).source = "url", s && Object.keys(s).length > 0 && (a.desiredHash ? e.hash = a.desiredHash : i ? i.replaceState(i.state, "", e.pathname + e.search) : e.hash = "")) : ((s = JSON.parse(t.getItem(jr) || "{}")).source = "localstorage", delete s.userIntent), !(!s.token || this.instance.config.token !== s.token) && (this.loadToolbar(s), !0);
|
|
1459
1459
|
} catch {
|
|
1460
1460
|
return !1;
|
|
@@ -1471,12 +1471,12 @@ class Ya {
|
|
|
1471
1471
|
if (d.localStorage.setItem(jr, JSON.stringify(w({}, s, { source: void 0 }))), this.yt() === Ie.LOADED) this.bt(s);
|
|
1472
1472
|
else if (this.yt() === Ie.UNINITIALIZED) {
|
|
1473
1473
|
var n;
|
|
1474
|
-
this._t(Ie.LOADING), (n = k.__PosthogExtensions__) == null || n.loadExternalDependency == null || n.loadExternalDependency(this.instance, "toolbar", (a) => {
|
|
1474
|
+
this._t(Ie.LOADING), (n = k.__PosthogExtensions__) == null || n.loadExternalDependency == null || n.loadExternalDependency(this.instance, "toolbar", ((a) => {
|
|
1475
1475
|
if (a) return Br.error("[Toolbar] Failed to load", a), void this._t(Ie.UNINITIALIZED);
|
|
1476
1476
|
this._t(Ie.LOADED), this.bt(s);
|
|
1477
|
-
}), L(d, "turbolinks:load", () => {
|
|
1477
|
+
})), L(d, "turbolinks:load", (() => {
|
|
1478
1478
|
this._t(Ie.UNINITIALIZED), this.loadToolbar(s);
|
|
1479
|
-
});
|
|
1479
|
+
}));
|
|
1480
1480
|
}
|
|
1481
1481
|
return !0;
|
|
1482
1482
|
}
|
|
@@ -1497,19 +1497,19 @@ class Ka {
|
|
|
1497
1497
|
}
|
|
1498
1498
|
it(e) {
|
|
1499
1499
|
var t, i;
|
|
1500
|
-
(t = k.__PosthogExtensions__) != null && t.tracingHeadersPatchFns && e(), (i = k.__PosthogExtensions__) == null || i.loadExternalDependency == null || i.loadExternalDependency(this._instance, "tracing-headers", (s) => {
|
|
1500
|
+
(t = k.__PosthogExtensions__) != null && t.tracingHeadersPatchFns && e(), (i = k.__PosthogExtensions__) == null || i.loadExternalDependency == null || i.loadExternalDependency(this._instance, "tracing-headers", ((s) => {
|
|
1501
1501
|
if (s) return Xa.error("failed to load script", s);
|
|
1502
1502
|
e();
|
|
1503
|
-
});
|
|
1503
|
+
}));
|
|
1504
1504
|
}
|
|
1505
1505
|
startIfEnabledOrStop() {
|
|
1506
1506
|
var e, t;
|
|
1507
1507
|
this._instance.config.__add_tracing_headers ? this.it(this.rt) : ((e = this.xt) == null || e.call(this), (t = this.$t) == null || t.call(this), this.xt = void 0, this.$t = void 0);
|
|
1508
1508
|
}
|
|
1509
1509
|
}
|
|
1510
|
-
var re = "Mobile", ti = "iOS", pe = "Android", xt = "Tablet", zs = pe + " " + xt, Ys = "iPad", Xs = "Apple", Ks = Xs + " Watch", St = "Safari", tt = "BlackBerry", Js = "Samsung", Zs = Js + "Browser", Qs = Js + " Internet", He = "Chrome", Ja = He + " OS", en = He + " " + ti, rr = "Internet Explorer", tn = rr + " " + re, sr = "Opera", Za = sr + " Mini", nr = "Edge", rn = "Microsoft " + nr, Ze = "Firefox", sn = Ze + " " + ti, Pt = "Nintendo", Ct = "PlayStation", Qe = "Xbox", nn = pe + " " + re, an = re + " " + St, mt = "Windows", Hi = mt + " Phone", Hr = "Nokia", Vi = "Ouya", on = "Generic", Qa = on + " " + re.toLowerCase(), ln = on + " " + xt.toLowerCase(), Gi = "Konqueror", G = "(\\d+(\\.\\d+)?)", mi = new RegExp("Version/" + G), eo = new RegExp(Qe, "i"), to = new RegExp(Ct + " \\w+", "i"), io = new RegExp(Pt + " \\w+", "i"), ar = new RegExp(tt + "|PlayBook|BB10", "i"), ro = { "NT3.51": "NT 3.11", "NT4.0": "NT 4.0", "5.0": "2000", 5.1: "XP", 5.2: "XP", "6.0": "Vista", 6.1: "7", 6.2: "8", 6.3: "8.1", 6.4: "10", "10.0": "10" }, so = (r, e) => e && S(e, Xs) || function(t) {
|
|
1510
|
+
var re = "Mobile", ti = "iOS", pe = "Android", xt = "Tablet", zs = pe + " " + xt, Ys = "iPad", Xs = "Apple", Ks = Xs + " Watch", St = "Safari", tt = "BlackBerry", Js = "Samsung", Zs = Js + "Browser", Qs = Js + " Internet", He = "Chrome", Ja = He + " OS", en = He + " " + ti, rr = "Internet Explorer", tn = rr + " " + re, sr = "Opera", Za = sr + " Mini", nr = "Edge", rn = "Microsoft " + nr, Ze = "Firefox", sn = Ze + " " + ti, Pt = "Nintendo", Ct = "PlayStation", Qe = "Xbox", nn = pe + " " + re, an = re + " " + St, mt = "Windows", Hi = mt + " Phone", Hr = "Nokia", Vi = "Ouya", on = "Generic", Qa = on + " " + re.toLowerCase(), ln = on + " " + xt.toLowerCase(), Gi = "Konqueror", G = "(\\d+(\\.\\d+)?)", mi = new RegExp("Version/" + G), eo = new RegExp(Qe, "i"), to = new RegExp(Ct + " \\w+", "i"), io = new RegExp(Pt + " \\w+", "i"), ar = new RegExp(tt + "|PlayBook|BB10", "i"), ro = { "NT3.51": "NT 3.11", "NT4.0": "NT 4.0", "5.0": "2000", 5.1: "XP", 5.2: "XP", "6.0": "Vista", 6.1: "7", 6.2: "8", 6.3: "8.1", 6.4: "10", "10.0": "10" }, so = (r, e) => e && S(e, Xs) || (function(t) {
|
|
1511
1511
|
return S(t, St) && !S(t, He) && !S(t, pe);
|
|
1512
|
-
}(r), cn = function(r, e) {
|
|
1512
|
+
})(r), cn = function(r, e) {
|
|
1513
1513
|
return e = e || "", S(r, " OPR/") && S(r, "Mini") ? Za : S(r, " OPR/") ? sr : ar.test(r) ? tt : S(r, "IE" + re) || S(r, "WPDesktop") ? tn : S(r, Zs) ? Qs : S(r, nr) || S(r, "Edg/") ? rn : S(r, "FBIOS") ? "Facebook " + re : S(r, "UCWEB") || S(r, "UCBrowser") ? "UC Browser" : S(r, "CriOS") ? en : S(r, "CrMo") || S(r, He) ? He : S(r, pe) && S(r, St) ? nn : S(r, "FxiOS") ? sn : S(r.toLowerCase(), Gi.toLowerCase()) ? Gi : so(r, e) ? S(r, re) ? an : St : S(r, Ze) ? Ze : S(r, "MSIE") || S(r, "Trident/") ? rr : S(r, "Gecko") ? Ze : "";
|
|
1514
1514
|
}, no = { [tn]: [new RegExp("rv:" + G)], [rn]: [new RegExp(nr + "?\\/" + G)], [He]: [new RegExp("(" + He + "|CrMo)\\/" + G)], [en]: [new RegExp("CriOS\\/" + G)], "UC Browser": [new RegExp("(UCBrowser|UCWEB)\\/" + G)], [St]: [mi], [an]: [mi], [sr]: [new RegExp("(Opera|OPR)\\/" + G)], [Ze]: [new RegExp(Ze + "\\/" + G)], [sn]: [new RegExp("FxiOS\\/" + G)], [Gi]: [new RegExp("Konqueror[:/]?" + G, "i")], [tt]: [new RegExp(tt + " " + G), mi], [nn]: [new RegExp("android\\s" + G, "i")], [Qs]: [new RegExp(Zs + "\\/" + G)], [rr]: [new RegExp("(rv:|MSIE )" + G)], Mozilla: [new RegExp("rv:" + G)] }, ao = function(r, e) {
|
|
1515
1515
|
var t = cn(r, e), i = no[t];
|
|
@@ -1555,23 +1555,23 @@ var re = "Mobile", ti = "iOS", pe = "Android", xt = "Tablet", zs = pe + " " + xt
|
|
|
1555
1555
|
}, At = "https?://(.*)", nt = ["gclid", "gclsrc", "dclid", "gbraid", "wbraid", "fbclid", "msclkid", "twclid", "li_fat_id", "igshid", "ttclid", "rdt_cid", "epik", "qclid", "sccid", "irclid", "_kx"], oo = st(["utm_source", "utm_medium", "utm_campaign", "utm_content", "utm_term", "gad_source", "mc_cid"], nt), Ft = "<masked>", lo = ["li_fat_id"];
|
|
1556
1556
|
function un(r, e, t) {
|
|
1557
1557
|
if (!m) return {};
|
|
1558
|
-
var i, s = e ? st([], nt, t || []) : [], n = hn(It(m.URL, s, Ft), r), a = (i = {}, F(lo, function(o) {
|
|
1558
|
+
var i, s = e ? st([], nt, t || []) : [], n = hn(It(m.URL, s, Ft), r), a = (i = {}, F(lo, (function(o) {
|
|
1559
1559
|
var l = ge.q(o);
|
|
1560
1560
|
i[o] = l || null;
|
|
1561
|
-
}), i);
|
|
1561
|
+
})), i);
|
|
1562
1562
|
return A(a, n);
|
|
1563
1563
|
}
|
|
1564
1564
|
function hn(r, e) {
|
|
1565
1565
|
var t = oo.concat(e || []), i = {};
|
|
1566
|
-
return F(t, function(s) {
|
|
1566
|
+
return F(t, (function(s) {
|
|
1567
1567
|
var n = Zt(r, s);
|
|
1568
1568
|
i[s] = n || null;
|
|
1569
|
-
}), i;
|
|
1569
|
+
})), i;
|
|
1570
1570
|
}
|
|
1571
1571
|
function dn(r) {
|
|
1572
|
-
var e = function(n) {
|
|
1572
|
+
var e = (function(n) {
|
|
1573
1573
|
return n ? n.search(At + "google.([^/?]*)") === 0 ? "google" : n.search(At + "bing.com") === 0 ? "bing" : n.search(At + "yahoo.com") === 0 ? "yahoo" : n.search(At + "duckduckgo.com") === 0 ? "duckduckgo" : null : null;
|
|
1574
|
-
}(r), t = e != "yahoo" ? "q" : "p", i = {};
|
|
1574
|
+
})(r), t = e != "yahoo" ? "q" : "p", i = {};
|
|
1575
1575
|
if (!Ee(e)) {
|
|
1576
1576
|
i.$search_engine = e;
|
|
1577
1577
|
var s = m ? Zt(m.referrer, t) : "";
|
|
@@ -1620,13 +1620,13 @@ function co() {
|
|
|
1620
1620
|
}
|
|
1621
1621
|
function uo(r, e) {
|
|
1622
1622
|
if (!W) return {};
|
|
1623
|
-
var t, i, s, n = r ? st([], nt, e || []) : [], [a, o] = function(l) {
|
|
1623
|
+
var t, i, s, n = r ? st([], nt, e || []) : [], [a, o] = (function(l) {
|
|
1624
1624
|
for (var u = 0; u < Vr.length; u++) {
|
|
1625
1625
|
var [c, h] = Vr[u], g = c.exec(l), p = g && (Te(h) ? h(g, l) : h);
|
|
1626
1626
|
if (p) return p;
|
|
1627
1627
|
}
|
|
1628
1628
|
return ["", ""];
|
|
1629
|
-
}(W);
|
|
1629
|
+
})(W);
|
|
1630
1630
|
return A(Qi({ $os: a, $os_version: o, $browser: cn(W, navigator.vendor), $device: Gr(W), $device_type: (i = W, s = Gr(i), s === Ys || s === zs || s === "Kobo" || s === "Kindle Fire" || s === ln ? xt : s === Pt || s === Qe || s === Ct || s === Vi ? "Console" : s === Ks ? "Wearable" : s ? re : "Desktop"), $timezone: _n(), $timezone_offset: co() }), { $current_url: It(z == null ? void 0 : z.href, n, Ft), $host: z == null ? void 0 : z.host, $pathname: z == null ? void 0 : z.pathname, $raw_user_agent: W.length > 1e3 ? W.substring(0, 997) + "..." : W, $browser_version: ao(W, navigator.vendor), $browser_language: Wr(), $browser_language_prefix: (t = Wr(), typeof t == "string" ? t.split("-")[0] : void 0), $screen_height: d == null ? void 0 : d.screen.height, $screen_width: d == null ? void 0 : d.screen.width, $viewport_height: d == null ? void 0 : d.innerHeight, $viewport_width: d == null ? void 0 : d.innerWidth, $lib: "web", $lib_version: me.LIB_VERSION, $insert_id: Math.random().toString(36).substring(2, 10) + Math.random().toString(36).substring(2, 10), $time: Date.now() / 1e3 });
|
|
1631
1631
|
}
|
|
1632
1632
|
var Ce = U("[Web Vitals]"), zr = 9e5;
|
|
@@ -1634,7 +1634,7 @@ class ho {
|
|
|
1634
1634
|
constructor(e) {
|
|
1635
1635
|
var t;
|
|
1636
1636
|
this.St = !1, this.P = !1, this.N = { url: void 0, metrics: [], firstMetricTimestamp: void 0 }, this.Et = () => {
|
|
1637
|
-
clearTimeout(this.kt), this.N.metrics.length !== 0 && (this._instance.capture("$web_vitals", this.N.metrics.reduce((i, s) => w({}, i, { ["$web_vitals_" + s.name + "_event"]: w({}, s), ["$web_vitals_" + s.name + "_value"]: s.value }), {})), this.N = { url: void 0, metrics: [], firstMetricTimestamp: void 0 });
|
|
1637
|
+
clearTimeout(this.kt), this.N.metrics.length !== 0 && (this._instance.capture("$web_vitals", this.N.metrics.reduce(((i, s) => w({}, i, { ["$web_vitals_" + s.name + "_event"]: w({}, s), ["$web_vitals_" + s.name + "_value"]: s.value })), {})), this.N = { url: void 0, metrics: [], firstMetricTimestamp: void 0 });
|
|
1638
1638
|
}, this.Pt = (i) => {
|
|
1639
1639
|
var s, n = (s = this._instance.sessionManager) == null ? void 0 : s.checkAndGetSessionAndWindowId(!0);
|
|
1640
1640
|
if (v(n)) Ce.error("Could not read session ID. Dropping metrics!");
|
|
@@ -1674,9 +1674,9 @@ class ho {
|
|
|
1674
1674
|
}
|
|
1675
1675
|
it(e) {
|
|
1676
1676
|
var t, i;
|
|
1677
|
-
(t = k.__PosthogExtensions__) != null && t.postHogWebVitalsCallbacks && e(), (i = k.__PosthogExtensions__) == null || i.loadExternalDependency == null || i.loadExternalDependency(this._instance, "web-vitals", (s) => {
|
|
1677
|
+
(t = k.__PosthogExtensions__) != null && t.postHogWebVitalsCallbacks && e(), (i = k.__PosthogExtensions__) == null || i.loadExternalDependency == null || i.loadExternalDependency(this._instance, "web-vitals", ((s) => {
|
|
1678
1678
|
s ? Ce.error("failed to load script", s) : e();
|
|
1679
|
-
});
|
|
1679
|
+
}));
|
|
1680
1680
|
}
|
|
1681
1681
|
Tt() {
|
|
1682
1682
|
var e = d ? d.location.href : void 0;
|
|
@@ -1724,9 +1724,9 @@ class go {
|
|
|
1724
1724
|
this.At(e.originalEvent, "deadclick");
|
|
1725
1725
|
}
|
|
1726
1726
|
Ot() {
|
|
1727
|
-
this.Rt && clearInterval(this.Rt), this.Rt = function(e) {
|
|
1727
|
+
this.Rt && clearInterval(this.Rt), this.Rt = (function(e) {
|
|
1728
1728
|
return (e == null ? void 0 : e.visibilityState) === "visible";
|
|
1729
|
-
}(m) ? setInterval(this.Dt.bind(this), this.flushIntervalMilliseconds) : null;
|
|
1729
|
+
})(m) ? setInterval(this.Dt.bind(this), this.flushIntervalMilliseconds) : null;
|
|
1730
1730
|
}
|
|
1731
1731
|
Ct() {
|
|
1732
1732
|
d && m && (this.jt = this.Dt.bind(this), L(d, "beforeunload", this.jt), this.Lt = (e) => this.At(e || (d == null ? void 0 : d.event)), L(m, "click", this.Lt, { capture: !0 }), this.Nt = (e) => this.Ut(e || (d == null ? void 0 : d.event)), L(m, "mousemove", this.Nt, { capture: !0 }), this.zt = new Vs(this.instance, ja, this.Mt.bind(this)), this.zt.startIfEnabled(), this.Ht = this.Ot.bind(this), L(m, "visibilitychange", this.Ht), this.P = !0);
|
|
@@ -1736,14 +1736,14 @@ class go {
|
|
|
1736
1736
|
d && m && (this.jt && d.removeEventListener("beforeunload", this.jt), this.Lt && m.removeEventListener("click", this.Lt, { capture: !0 }), this.Nt && m.removeEventListener("mousemove", this.Nt, { capture: !0 }), this.Ht && m.removeEventListener("visibilitychange", this.Ht), clearTimeout(this.Bt), (e = this.zt) == null || e.stop(), this.P = !1);
|
|
1737
1737
|
}
|
|
1738
1738
|
qt(e, t) {
|
|
1739
|
-
var i = this.instance.scrollManager.scrollY(), s = this.instance.scrollManager.scrollX(), n = this.instance.scrollManager.scrollElement(), a = function(o, l, u) {
|
|
1739
|
+
var i = this.instance.scrollManager.scrollY(), s = this.instance.scrollManager.scrollX(), n = this.instance.scrollManager.scrollElement(), a = (function(o, l, u) {
|
|
1740
1740
|
for (var c = o; c && ai(c) && !De(c, "body"); ) {
|
|
1741
1741
|
if (c === u) return !1;
|
|
1742
1742
|
if (S(l, d == null ? void 0 : d.getComputedStyle(c).position)) return !0;
|
|
1743
1743
|
c = Ms(c);
|
|
1744
1744
|
}
|
|
1745
1745
|
return !1;
|
|
1746
|
-
}(Rs(e), ["fixed", "sticky"], n);
|
|
1746
|
+
})(Rs(e), ["fixed", "sticky"], n);
|
|
1747
1747
|
return { x: e.clientX + (a ? 0 : s), y: e.clientY + (a ? 0 : i), target_fixed: a, type: t };
|
|
1748
1748
|
}
|
|
1749
1749
|
At(e, t) {
|
|
@@ -1754,9 +1754,9 @@ class go {
|
|
|
1754
1754
|
}
|
|
1755
1755
|
}
|
|
1756
1756
|
Ut(e) {
|
|
1757
|
-
!Or(e.target) && Yr(e) && (clearTimeout(this.Bt), this.Bt = setTimeout(() => {
|
|
1757
|
+
!Or(e.target) && Yr(e) && (clearTimeout(this.Bt), this.Bt = setTimeout((() => {
|
|
1758
1758
|
this.Wt(this.qt(e, "mousemove"));
|
|
1759
|
-
}, 500));
|
|
1759
|
+
}), 500));
|
|
1760
1760
|
}
|
|
1761
1761
|
Wt(e) {
|
|
1762
1762
|
if (d) {
|
|
@@ -1845,9 +1845,9 @@ var vo = wt(Ve, 9), mo = wt(ii, 5), bn = function(r) {
|
|
|
1845
1845
|
var a = new se(t[0].s + 1);
|
|
1846
1846
|
return a[t[0].s] = 1, [a, 1];
|
|
1847
1847
|
}
|
|
1848
|
-
t.sort(function(M, ne) {
|
|
1848
|
+
t.sort((function(M, ne) {
|
|
1849
1849
|
return M.f - ne.f;
|
|
1850
|
-
}), t.push({ s: -1, f: 25001 });
|
|
1850
|
+
})), t.push({ s: -1, f: 25001 });
|
|
1851
1851
|
var o = t[0], l = t[1], u = 0, c = 1, h = 2;
|
|
1852
1852
|
for (t[0] = { s: -1, f: o.f + l.f, l: o, r: l }; c != s - 1; ) o = t[t[u].f < t[h].f ? u++ : h++], l = t[u != c && t[u].f < t[h].f ? u++ : h++], t[c++] = { s: -1, f: o.f + l.f, l: o, r: l };
|
|
1853
1853
|
var g = n[0].s;
|
|
@@ -1856,9 +1856,9 @@ var vo = wt(Ve, 9), mo = wt(ii, 5), bn = function(r) {
|
|
|
1856
1856
|
if (f > e) {
|
|
1857
1857
|
i = 0;
|
|
1858
1858
|
var _ = 0, b = f - e, E = 1 << b;
|
|
1859
|
-
for (n.sort(function(M, ne) {
|
|
1859
|
+
for (n.sort((function(M, ne) {
|
|
1860
1860
|
return p[ne.s] - p[M.s] || M.f - ne.f;
|
|
1861
|
-
}); i < s; ++i) {
|
|
1861
|
+
})); i < s; ++i) {
|
|
1862
1862
|
var x = n[i].s;
|
|
1863
1863
|
if (!(p[x] > e)) break;
|
|
1864
1864
|
_ += E - (1 << f - p[x]), p[x] = e;
|
|
@@ -1927,14 +1927,14 @@ var vo = wt(Ve, 9), mo = wt(ii, 5), bn = function(r) {
|
|
|
1927
1927
|
ut(e, c, ue[ze]), c += Ge[ze], ze > 3 && (ut(e, c, i[C] >>> 5 & 8191), c += lr[ze]);
|
|
1928
1928
|
} else ut(e, c, _e[i[C]]), c += ce[i[C]];
|
|
1929
1929
|
return ut(e, c, _e[256]), c + ce[256];
|
|
1930
|
-
}, yo = new it([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), bo = function() {
|
|
1930
|
+
}, yo = new it([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), bo = (function() {
|
|
1931
1931
|
for (var r = new it(256), e = 0; e < 256; ++e) {
|
|
1932
1932
|
for (var t = e, i = 9; --i; ) t = (1 & t && 3988292384) ^ t >>> 1;
|
|
1933
1933
|
r[e] = t;
|
|
1934
1934
|
}
|
|
1935
1935
|
return r;
|
|
1936
|
-
}(), wo = function(r, e, t, i, s) {
|
|
1937
|
-
return function(n, a, o, l, u, c) {
|
|
1936
|
+
})(), wo = function(r, e, t, i, s) {
|
|
1937
|
+
return (function(n, a, o, l, u, c) {
|
|
1938
1938
|
var h = n.length, g = new se(l + h + 5 * (1 + Math.floor(h / 7e3)) + u), p = g.subarray(l, g.length - u), f = 0;
|
|
1939
1939
|
if (!a || h < 8) for (var _ = 0; _ <= h; _ += 65535) {
|
|
1940
1940
|
var b = _ + 65535;
|
|
@@ -1977,13 +1977,13 @@ var vo = wt(Ve, 9), mo = wt(ii, 5), bn = function(r) {
|
|
|
1977
1977
|
f = Zr(n, p, c, J, ae, ee, ce, ue, ke, _ - ke, f);
|
|
1978
1978
|
}
|
|
1979
1979
|
return wn(g, 0, l + bn(f) + u);
|
|
1980
|
-
}(r, e.level == null ? 6 : e.level, e.mem == null ? Math.ceil(1.5 * Math.max(8, Math.min(13, Math.log(r.length)))) : 12 + e.mem, t, i, !0);
|
|
1980
|
+
})(r, e.level == null ? 6 : e.level, e.mem == null ? Math.ceil(1.5 * Math.max(8, Math.min(13, Math.log(r.length)))) : 12 + e.mem, t, i, !0);
|
|
1981
1981
|
}, bi = function(r, e, t) {
|
|
1982
1982
|
for (; t; ++e) r[e] = t, t >>>= 8;
|
|
1983
1983
|
};
|
|
1984
1984
|
function Eo(r, e) {
|
|
1985
1985
|
e === void 0 && (e = {});
|
|
1986
|
-
var t = /* @__PURE__ */ function() {
|
|
1986
|
+
var t = /* @__PURE__ */ (function() {
|
|
1987
1987
|
var o = 4294967295;
|
|
1988
1988
|
return { p: function(l) {
|
|
1989
1989
|
for (var u = o, c = 0; c < l.length; ++c) u = bo[255 & u ^ l[c]] ^ u >>> 8;
|
|
@@ -1991,16 +1991,16 @@ function Eo(r, e) {
|
|
|
1991
1991
|
}, d: function() {
|
|
1992
1992
|
return 4294967295 ^ o;
|
|
1993
1993
|
} };
|
|
1994
|
-
}(), i = r.length;
|
|
1994
|
+
})(), i = r.length;
|
|
1995
1995
|
t.p(r);
|
|
1996
1996
|
var s, n = wo(r, e, 10 + ((s = e).filename && s.filename.length + 1 || 0), 8), a = n.length;
|
|
1997
|
-
return function(o, l) {
|
|
1997
|
+
return (function(o, l) {
|
|
1998
1998
|
var u = l.filename;
|
|
1999
1999
|
if (o[0] = 31, o[1] = 139, o[2] = 8, o[8] = l.level < 2 ? 4 : l.level == 9 ? 2 : 0, o[9] = 3, l.mtime != 0 && bi(o, 4, Math.floor(new Date(l.mtime || Date.now()) / 1e3)), u) {
|
|
2000
2000
|
o[3] = 8;
|
|
2001
2001
|
for (var c = 0; c <= u.length; ++c) o[c + 10] = u.charCodeAt(c);
|
|
2002
2002
|
}
|
|
2003
|
-
}(n, e), bi(n, a - 8, t.d()), bi(n, a - 4, i), n;
|
|
2003
|
+
})(n, e), bi(n, a - 8, t.d()), bi(n, a - 4, i), n;
|
|
2004
2004
|
}
|
|
2005
2005
|
var ko = function(r) {
|
|
2006
2006
|
var e, t, i, s, n = "";
|
|
@@ -2014,16 +2014,16 @@ var ko = function(r) {
|
|
|
2014
2014
|
}, xo = !!Ii || !!$i, Qr = "text/plain", ri = function(r, e, t) {
|
|
2015
2015
|
var i;
|
|
2016
2016
|
t === void 0 && (t = !0);
|
|
2017
|
-
var [s, n] = r.split("?"), a = w({}, e), o = (i = n == null ? void 0 : n.split("&").map((u) => {
|
|
2017
|
+
var [s, n] = r.split("?"), a = w({}, e), o = (i = n == null ? void 0 : n.split("&").map(((u) => {
|
|
2018
2018
|
var c, [h, g] = u.split("="), p = t && (c = a[h]) !== null && c !== void 0 ? c : g;
|
|
2019
2019
|
return delete a[h], h + "=" + p;
|
|
2020
|
-
})) !== null && i !== void 0 ? i : [], l = $a(a);
|
|
2020
|
+
}))) !== null && i !== void 0 ? i : [], l = $a(a);
|
|
2021
2021
|
return l && o.push(l), s + "?" + o.join("&");
|
|
2022
|
-
}, yt = (r, e) => JSON.stringify(r, (t, i) => typeof i == "bigint" ? i.toString() : i, e), wi = (r) => {
|
|
2022
|
+
}, yt = (r, e) => JSON.stringify(r, ((t, i) => typeof i == "bigint" ? i.toString() : i), e), wi = (r) => {
|
|
2023
2023
|
var { data: e, compression: t } = r;
|
|
2024
2024
|
if (e) {
|
|
2025
2025
|
if (t === we.GZipJS) {
|
|
2026
|
-
var i = Eo(function(l, u) {
|
|
2026
|
+
var i = Eo((function(l, u) {
|
|
2027
2027
|
var c = l.length;
|
|
2028
2028
|
if (typeof TextEncoder < "u") return new TextEncoder().encode(l);
|
|
2029
2029
|
for (var h = new se(l.length + (l.length >>> 1)), g = 0, p = function(E) {
|
|
@@ -2037,11 +2037,11 @@ var ko = function(r) {
|
|
|
2037
2037
|
b < 128 || u ? p(b) : b < 2048 ? (p(192 | b >>> 6), p(128 | 63 & b)) : b > 55295 && b < 57344 ? (p(240 | (b = 65536 + (1047552 & b) | 1023 & l.charCodeAt(++f)) >>> 18), p(128 | b >>> 12 & 63), p(128 | b >>> 6 & 63), p(128 | 63 & b)) : (p(224 | b >>> 12), p(128 | b >>> 6 & 63), p(128 | 63 & b));
|
|
2038
2038
|
}
|
|
2039
2039
|
return wn(h, 0, g);
|
|
2040
|
-
}(yt(e)), { mtime: 0 }), s = new Blob([i], { type: Qr });
|
|
2040
|
+
})(yt(e)), { mtime: 0 }), s = new Blob([i], { type: Qr });
|
|
2041
2041
|
return { contentType: Qr, body: s, estimatedSize: s.size };
|
|
2042
2042
|
}
|
|
2043
2043
|
if (t === we.Base64) {
|
|
2044
|
-
var n = function(l) {
|
|
2044
|
+
var n = (function(l) {
|
|
2045
2045
|
var u, c, h, g, p, f = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", _ = 0, b = 0, E = "", x = [];
|
|
2046
2046
|
if (!l) return l;
|
|
2047
2047
|
l = ko(l);
|
|
@@ -2056,7 +2056,7 @@ var ko = function(r) {
|
|
|
2056
2056
|
E = E.slice(0, -1) + "=";
|
|
2057
2057
|
}
|
|
2058
2058
|
return E;
|
|
2059
|
-
}(yt(e)), a = ((l) => "data=" + encodeURIComponent(typeof l == "string" ? l : yt(l)))(n);
|
|
2059
|
+
})(yt(e)), a = ((l) => "data=" + encodeURIComponent(typeof l == "string" ? l : yt(l)))(n);
|
|
2060
2060
|
return { contentType: "application/x-www-form-urlencoded", body: a, estimatedSize: new Blob([a]).size };
|
|
2061
2061
|
}
|
|
2062
2062
|
var o = yt(e);
|
|
@@ -2065,15 +2065,15 @@ var ko = function(r) {
|
|
|
2065
2065
|
}, Ut = [];
|
|
2066
2066
|
$i && Ut.push({ transport: "fetch", method: (r) => {
|
|
2067
2067
|
var e, t, { contentType: i, body: s, estimatedSize: n } = (e = wi(r)) !== null && e !== void 0 ? e : {}, a = new Headers();
|
|
2068
|
-
F(r.headers, function(c, h) {
|
|
2068
|
+
F(r.headers, (function(c, h) {
|
|
2069
2069
|
a.append(h, c);
|
|
2070
|
-
}), i && a.append("Content-Type", i);
|
|
2070
|
+
})), i && a.append("Content-Type", i);
|
|
2071
2071
|
var o = r.url, l = null;
|
|
2072
2072
|
if (mr) {
|
|
2073
2073
|
var u = new mr();
|
|
2074
|
-
l = { signal: u.signal, timeout: setTimeout(() => u.abort(), r.timeout) };
|
|
2074
|
+
l = { signal: u.signal, timeout: setTimeout((() => u.abort()), r.timeout) };
|
|
2075
2075
|
}
|
|
2076
|
-
$i(o, w({ method: (r == null ? void 0 : r.method) || "GET", headers: a, keepalive: r.method === "POST" && (n || 0) < 52428.8, body: s, signal: (t = l) == null ? void 0 : t.signal }, r.fetchOptions)).then((c) => c.text().then((h) => {
|
|
2076
|
+
$i(o, w({ method: (r == null ? void 0 : r.method) || "GET", headers: a, keepalive: r.method === "POST" && (n || 0) < 52428.8, body: s, signal: (t = l) == null ? void 0 : t.signal }, r.fetchOptions)).then(((c) => c.text().then(((h) => {
|
|
2077
2077
|
var g = { statusCode: c.status, text: h };
|
|
2078
2078
|
if (c.status === 200) try {
|
|
2079
2079
|
g.json = JSON.parse(h);
|
|
@@ -2081,16 +2081,16 @@ $i && Ut.push({ transport: "fetch", method: (r) => {
|
|
|
2081
2081
|
y.error(p);
|
|
2082
2082
|
}
|
|
2083
2083
|
r.callback == null || r.callback(g);
|
|
2084
|
-
})).catch((c) => {
|
|
2084
|
+
})))).catch(((c) => {
|
|
2085
2085
|
y.error(c), r.callback == null || r.callback({ statusCode: 0, text: c });
|
|
2086
|
-
}).finally(() => l ? clearTimeout(l.timeout) : null);
|
|
2086
|
+
})).finally((() => l ? clearTimeout(l.timeout) : null));
|
|
2087
2087
|
} }), Ii && Ut.push({ transport: "XHR", method: (r) => {
|
|
2088
2088
|
var e, t = new Ii();
|
|
2089
2089
|
t.open(r.method || "GET", r.url, !0);
|
|
2090
2090
|
var { contentType: i, body: s } = (e = wi(r)) !== null && e !== void 0 ? e : {};
|
|
2091
|
-
F(r.headers, function(n, a) {
|
|
2091
|
+
F(r.headers, (function(n, a) {
|
|
2092
2092
|
t.setRequestHeader(a, n);
|
|
2093
|
-
}), i && t.setRequestHeader("Content-Type", i), r.timeout && (t.timeout = r.timeout), r.disableXHRCredentials || (t.withCredentials = !0), t.onreadystatechange = () => {
|
|
2093
|
+
})), i && t.setRequestHeader("Content-Type", i), r.timeout && (t.timeout = r.timeout), r.disableXHRCredentials || (t.withCredentials = !0), t.onreadystatechange = () => {
|
|
2094
2094
|
if (t.readyState === 4) {
|
|
2095
2095
|
var n = { statusCode: t.status, text: t.responseText };
|
|
2096
2096
|
if (t.status === 200) try {
|
|
@@ -2109,14 +2109,14 @@ $i && Ut.push({ transport: "fetch", method: (r) => {
|
|
|
2109
2109
|
}
|
|
2110
2110
|
} });
|
|
2111
2111
|
var rt = function(r, e) {
|
|
2112
|
-
if (!function(t) {
|
|
2112
|
+
if (!(function(t) {
|
|
2113
2113
|
try {
|
|
2114
2114
|
new RegExp(t);
|
|
2115
2115
|
} catch {
|
|
2116
2116
|
return !1;
|
|
2117
2117
|
}
|
|
2118
2118
|
return !0;
|
|
2119
|
-
}(e)) return !1;
|
|
2119
|
+
})(e)) return !1;
|
|
2120
2120
|
try {
|
|
2121
2121
|
return new RegExp(e).test(r);
|
|
2122
2122
|
} catch {
|
|
@@ -2126,7 +2126,7 @@ var rt = function(r, e) {
|
|
|
2126
2126
|
function es(r, e, t) {
|
|
2127
2127
|
return yt({ distinct_id: r, userPropertiesToSet: e, userPropertiesToSetOnce: t });
|
|
2128
2128
|
}
|
|
2129
|
-
var En = { exact: (r, e) => e.some((t) => r.some((i) => t === i)), is_not: (r, e) => e.every((t) => r.every((i) => t !== i)), regex: (r, e) => e.some((t) => r.some((i) => rt(t, i))), not_regex: (r, e) => e.every((t) => r.every((i) => !rt(t, i))), icontains: (r, e) => e.map(Lt).some((t) => r.map(Lt).some((i) => t.includes(i))), not_icontains: (r, e) => e.map(Lt).every((t) => r.map(Lt).every((i) => !t.includes(i))) }, Lt = (r) => r.toLowerCase(), Ei = U("[Error tracking]");
|
|
2129
|
+
var En = { exact: (r, e) => e.some(((t) => r.some(((i) => t === i)))), is_not: (r, e) => e.every(((t) => r.every(((i) => t !== i)))), regex: (r, e) => e.some(((t) => r.some(((i) => rt(t, i))))), not_regex: (r, e) => e.every(((t) => r.every(((i) => !rt(t, i))))), icontains: (r, e) => e.map(Lt).some(((t) => r.map(Lt).some(((i) => t.includes(i))))), not_icontains: (r, e) => e.map(Lt).every(((t) => r.map(Lt).every(((i) => !t.includes(i))))) }, Lt = (r) => r.toLowerCase(), Ei = U("[Error tracking]");
|
|
2130
2130
|
class So {
|
|
2131
2131
|
constructor(e) {
|
|
2132
2132
|
var t, i;
|
|
@@ -2154,23 +2154,23 @@ class So {
|
|
|
2154
2154
|
}
|
|
2155
2155
|
Qt(e) {
|
|
2156
2156
|
if (e.length === 0) return !1;
|
|
2157
|
-
var t = e.reduce((i, s) => {
|
|
2157
|
+
var t = e.reduce(((i, s) => {
|
|
2158
2158
|
var { type: n, value: a } = s;
|
|
2159
2159
|
return N(n) && n.length > 0 && i.$exception_types.push(n), N(a) && a.length > 0 && i.$exception_values.push(a), i;
|
|
2160
|
-
}, { $exception_types: [], $exception_values: [] });
|
|
2161
|
-
return this.Jt.some((i) => {
|
|
2162
|
-
var s = i.values.map((n) => {
|
|
2160
|
+
}), { $exception_types: [], $exception_values: [] });
|
|
2161
|
+
return this.Jt.some(((i) => {
|
|
2162
|
+
var s = i.values.map(((n) => {
|
|
2163
2163
|
var a, o = En[n.operator], l = T(n.value) ? n.value : [n.value], u = (a = t[n.key]) !== null && a !== void 0 ? a : [];
|
|
2164
2164
|
return l.length > 0 && o(l, u);
|
|
2165
|
-
});
|
|
2165
|
+
}));
|
|
2166
2166
|
return i.type === "OR" ? s.some(Boolean) : s.every(Boolean);
|
|
2167
|
-
});
|
|
2167
|
+
}));
|
|
2168
2168
|
}
|
|
2169
2169
|
Zt(e) {
|
|
2170
|
-
return e.flatMap((t) => {
|
|
2170
|
+
return e.flatMap(((t) => {
|
|
2171
2171
|
var i, s;
|
|
2172
2172
|
return (i = (s = t.stacktrace) == null ? void 0 : s.frames) !== null && i !== void 0 ? i : [];
|
|
2173
|
-
}).some((t) => t.filename && t.filename.startsWith("chrome-extension://"));
|
|
2173
|
+
})).some(((t) => t.filename && t.filename.startsWith("chrome-extension://")));
|
|
2174
2174
|
}
|
|
2175
2175
|
ti(e) {
|
|
2176
2176
|
if (e.length > 0) {
|
|
@@ -2189,29 +2189,29 @@ var oe = U("[FeatureFlags]"), ki = "$active_feature_flags", Ye = "$override_feat
|
|
|
2189
2189
|
return e;
|
|
2190
2190
|
}, Po = (r) => {
|
|
2191
2191
|
var e = r.flags;
|
|
2192
|
-
return e ? (r.featureFlags = Object.fromEntries(Object.keys(e).map((t) => {
|
|
2192
|
+
return e ? (r.featureFlags = Object.fromEntries(Object.keys(e).map(((t) => {
|
|
2193
2193
|
var i;
|
|
2194
2194
|
return [t, (i = e[t].variant) !== null && i !== void 0 ? i : e[t].enabled];
|
|
2195
|
-
})), r.featureFlagPayloads = Object.fromEntries(Object.keys(e).filter((t) => e[t].enabled).filter((t) => {
|
|
2195
|
+
}))), r.featureFlagPayloads = Object.fromEntries(Object.keys(e).filter(((t) => e[t].enabled)).filter(((t) => {
|
|
2196
2196
|
var i;
|
|
2197
2197
|
return (i = e[t].metadata) == null ? void 0 : i.payload;
|
|
2198
|
-
}).map((t) => {
|
|
2198
|
+
})).map(((t) => {
|
|
2199
2199
|
var i;
|
|
2200
2200
|
return [t, (i = e[t].metadata) == null ? void 0 : i.payload];
|
|
2201
|
-
}))) : oe.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"), r;
|
|
2202
|
-
}, Co = function(r) {
|
|
2201
|
+
})))) : oe.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"), r;
|
|
2202
|
+
}, Co = (function(r) {
|
|
2203
2203
|
return r.FeatureFlags = "feature_flags", r.Recordings = "recordings", r;
|
|
2204
|
-
}({});
|
|
2204
|
+
})({});
|
|
2205
2205
|
class $o {
|
|
2206
2206
|
constructor(e) {
|
|
2207
2207
|
this.ii = !1, this.ei = !1, this.ri = !1, this.si = !1, this.ni = !1, this.oi = !1, this.ai = !1, this._instance = e, this.featureFlagEventHandlers = [];
|
|
2208
2208
|
}
|
|
2209
2209
|
li() {
|
|
2210
2210
|
var e = this._instance.config.evaluation_environments;
|
|
2211
|
-
return e != null && e.length ? e.filter((t) => {
|
|
2211
|
+
return e != null && e.length ? e.filter(((t) => {
|
|
2212
2212
|
var i = t && typeof t == "string" && t.trim().length > 0;
|
|
2213
2213
|
return i || oe.error("Invalid evaluation environment found:", t, "Expected non-empty string"), i;
|
|
2214
|
-
}) : [];
|
|
2214
|
+
})) : [];
|
|
2215
2215
|
}
|
|
2216
2216
|
ui() {
|
|
2217
2217
|
return this.li().length > 0;
|
|
@@ -2252,9 +2252,9 @@ class $o {
|
|
|
2252
2252
|
return this.ii || (oe.warn(" Overriding feature flag payloads!", { flagPayloads: e, overriddenPayloads: t, finalPayloads: i }), this.ii = !0), i;
|
|
2253
2253
|
}
|
|
2254
2254
|
reloadFeatureFlags() {
|
|
2255
|
-
this.si || this._instance.config.advanced_disable_feature_flags || this.hi || (this.hi = setTimeout(() => {
|
|
2255
|
+
this.si || this._instance.config.advanced_disable_feature_flags || this.hi || (this.hi = setTimeout((() => {
|
|
2256
2256
|
this.di();
|
|
2257
|
-
}, 5));
|
|
2257
|
+
}), 5));
|
|
2258
2258
|
}
|
|
2259
2259
|
vi() {
|
|
2260
2260
|
clearTimeout(this.hi), this.hi = void 0;
|
|
@@ -2324,7 +2324,7 @@ class $o {
|
|
|
2324
2324
|
this.featureFlagEventHandlers.push(e);
|
|
2325
2325
|
}
|
|
2326
2326
|
removeFeatureFlagsHandler(e) {
|
|
2327
|
-
this.featureFlagEventHandlers = this.featureFlagEventHandlers.filter((t) => t !== e);
|
|
2327
|
+
this.featureFlagEventHandlers = this.featureFlagEventHandlers.filter(((t) => t !== e));
|
|
2328
2328
|
}
|
|
2329
2329
|
receivedFeatureFlags(e, t) {
|
|
2330
2330
|
if (this._instance.persistence) {
|
|
@@ -2375,14 +2375,14 @@ class $o {
|
|
|
2375
2375
|
return () => this.removeFeatureFlagsHandler(e);
|
|
2376
2376
|
}
|
|
2377
2377
|
updateEarlyAccessFeatureEnrollment(e, t, i) {
|
|
2378
|
-
var s, n = (this._instance.get_property(_t) || []).find((u) => u.flagKey === e), a = { ["$feature_enrollment/" + e]: t }, o = { $feature_flag: e, $feature_enrollment: t, $set: a };
|
|
2378
|
+
var s, n = (this._instance.get_property(_t) || []).find(((u) => u.flagKey === e)), a = { ["$feature_enrollment/" + e]: t }, o = { $feature_flag: e, $feature_enrollment: t, $set: a };
|
|
2379
2379
|
n && (o.$early_access_feature_name = n.name), i && (o.$feature_enrollment_stage = i), this._instance.capture("$feature_enrollment_update", o), this.setPersonPropertiesForFlags(a, !1);
|
|
2380
2380
|
var l = w({}, this.getFlagVariants(), { [e]: t });
|
|
2381
2381
|
(s = this._instance.persistence) == null || s.register({ [ki]: Object.keys(rs(l)), [Je]: l }), this.pi();
|
|
2382
2382
|
}
|
|
2383
2383
|
getEarlyAccessFeatures(e, t, i) {
|
|
2384
2384
|
t === void 0 && (t = !1);
|
|
2385
|
-
var s = this._instance.get_property(_t), n = i ? "&" + i.map((a) => "stage=" + a).join("&") : "";
|
|
2385
|
+
var s = this._instance.get_property(_t), n = i ? "&" + i.map(((a) => "stage=" + a)).join("&") : "";
|
|
2386
2386
|
if (s && !t) return e(s);
|
|
2387
2387
|
this._instance.ci({ url: this._instance.requestRouter.endpointFor("api", "/api/early_access_features/?token=" + this._instance.config.token + n), method: "GET", callback: (a) => {
|
|
2388
2388
|
var o, l;
|
|
@@ -2394,11 +2394,11 @@ class $o {
|
|
|
2394
2394
|
}
|
|
2395
2395
|
gi() {
|
|
2396
2396
|
var e = this.getFlags(), t = this.getFlagVariants();
|
|
2397
|
-
return { flags: e.filter((i) => t[i]), flagVariants: Object.keys(t).filter((i) => t[i]).reduce((i, s) => (i[s] = t[s], i), {}) };
|
|
2397
|
+
return { flags: e.filter(((i) => t[i])), flagVariants: Object.keys(t).filter(((i) => t[i])).reduce(((i, s) => (i[s] = t[s], i)), {}) };
|
|
2398
2398
|
}
|
|
2399
2399
|
pi(e) {
|
|
2400
2400
|
var { flags: t, flagVariants: i } = this.gi();
|
|
2401
|
-
this.featureFlagEventHandlers.forEach((s) => s(t, i, { errorsLoading: e }));
|
|
2401
|
+
this.featureFlagEventHandlers.forEach(((s) => s(t, i, { errorsLoading: e })));
|
|
2402
2402
|
}
|
|
2403
2403
|
setPersonPropertiesForFlags(e, t) {
|
|
2404
2404
|
t === void 0 && (t = !0);
|
|
@@ -2411,9 +2411,9 @@ class $o {
|
|
|
2411
2411
|
setGroupPropertiesForFlags(e, t) {
|
|
2412
2412
|
t === void 0 && (t = !0);
|
|
2413
2413
|
var i = this._instance.get_property(je) || {};
|
|
2414
|
-
Object.keys(i).length !== 0 && Object.keys(i).forEach((s) => {
|
|
2414
|
+
Object.keys(i).length !== 0 && Object.keys(i).forEach(((s) => {
|
|
2415
2415
|
i[s] = w({}, i[s], e[s]), delete e[s];
|
|
2416
|
-
}), this._instance.register({ [je]: w({}, i, e) }), t && this._instance.reloadFeatureFlags();
|
|
2416
|
+
})), this._instance.register({ [je]: w({}, i, e) }), t && this._instance.reloadFeatureFlags();
|
|
2417
2417
|
}
|
|
2418
2418
|
resetGroupPropertiesForFlags(e) {
|
|
2419
2419
|
if (e) {
|
|
@@ -2443,13 +2443,13 @@ class xi {
|
|
|
2443
2443
|
}
|
|
2444
2444
|
properties() {
|
|
2445
2445
|
var e = {};
|
|
2446
|
-
return F(this.props, function(t, i) {
|
|
2446
|
+
return F(this.props, (function(t, i) {
|
|
2447
2447
|
if (i === Je && j(t)) for (var s = Object.keys(t), n = 0; n < s.length; n++) e["$feature/" + s[n]] = t[s[n]];
|
|
2448
|
-
else o = i, l = !1, (Ee(a = ma) ? l : vr && a.indexOf === vr ? a.indexOf(o) != -1 : (F(a, function(u) {
|
|
2448
|
+
else o = i, l = !1, (Ee(a = ma) ? l : vr && a.indexOf === vr ? a.indexOf(o) != -1 : (F(a, (function(u) {
|
|
2449
2449
|
if (l || (l = u === o)) return Gt;
|
|
2450
|
-
}), l)) || (e[i] = t);
|
|
2450
|
+
})), l)) || (e[i] = t);
|
|
2451
2451
|
var a, o, l;
|
|
2452
|
-
}), e;
|
|
2452
|
+
})), e;
|
|
2453
2453
|
}
|
|
2454
2454
|
load() {
|
|
2455
2455
|
if (!this.wi) {
|
|
@@ -2470,9 +2470,9 @@ class xi {
|
|
|
2470
2470
|
if (j(e)) {
|
|
2471
2471
|
v(t) && (t = "None"), this.xi = v(i) ? this.Ei : i;
|
|
2472
2472
|
var s = !1;
|
|
2473
|
-
if (F(e, (n, a) => {
|
|
2473
|
+
if (F(e, ((n, a) => {
|
|
2474
2474
|
this.props.hasOwnProperty(a) && this.props[a] !== t || (this.props[a] = n, s = !0);
|
|
2475
|
-
}), s) return this.save(), !0;
|
|
2475
|
+
})), s) return this.save(), !0;
|
|
2476
2476
|
}
|
|
2477
2477
|
return !1;
|
|
2478
2478
|
}
|
|
@@ -2480,9 +2480,9 @@ class xi {
|
|
|
2480
2480
|
if (j(e)) {
|
|
2481
2481
|
this.xi = v(t) ? this.Ei : t;
|
|
2482
2482
|
var i = !1;
|
|
2483
|
-
if (F(e, (s, n) => {
|
|
2483
|
+
if (F(e, ((s, n) => {
|
|
2484
2484
|
e.hasOwnProperty(n) && this.props[n] !== s && (this.props[n] = s, i = !0);
|
|
2485
|
-
}), i) return this.save(), !0;
|
|
2485
|
+
})), i) return this.save(), !0;
|
|
2486
2486
|
}
|
|
2487
2487
|
return !1;
|
|
2488
2488
|
}
|
|
@@ -2508,25 +2508,25 @@ class xi {
|
|
|
2508
2508
|
}
|
|
2509
2509
|
get_initial_props() {
|
|
2510
2510
|
var e = {};
|
|
2511
|
-
F([ji, qi], (a) => {
|
|
2511
|
+
F([ji, qi], ((a) => {
|
|
2512
2512
|
var o = this.props[a];
|
|
2513
|
-
o && F(o, function(l, u) {
|
|
2513
|
+
o && F(o, (function(l, u) {
|
|
2514
2514
|
e["$initial_" + Fi(u)] = l;
|
|
2515
|
-
});
|
|
2516
|
-
});
|
|
2515
|
+
}));
|
|
2516
|
+
}));
|
|
2517
2517
|
var t, i, s = this.props[Yt];
|
|
2518
2518
|
if (s) {
|
|
2519
|
-
var n = (t = fn(s), i = {}, F(t, function(a, o) {
|
|
2519
|
+
var n = (t = fn(s), i = {}, F(t, (function(a, o) {
|
|
2520
2520
|
i["$initial_" + Fi(o)] = a;
|
|
2521
|
-
}), i);
|
|
2521
|
+
})), i);
|
|
2522
2522
|
A(e, n);
|
|
2523
2523
|
}
|
|
2524
2524
|
return e;
|
|
2525
2525
|
}
|
|
2526
2526
|
safe_merge(e) {
|
|
2527
|
-
return F(this.props, function(t, i) {
|
|
2527
|
+
return F(this.props, (function(t, i) {
|
|
2528
2528
|
i in e || (e[i] = t);
|
|
2529
|
-
}), e;
|
|
2529
|
+
})), e;
|
|
2530
2530
|
}
|
|
2531
2531
|
update_config(e, t, i) {
|
|
2532
2532
|
if (this.Ei = this.xi = e.cookie_expiration, this.set_disabled(e.disable_persistence || !!i), this.set_cross_subdomain(e.cross_subdomain_cookie), this.set_secure(e.secure_cookie), e.persistence !== t.persistence) {
|
|
@@ -2564,9 +2564,9 @@ class xi {
|
|
|
2564
2564
|
(function(r) {
|
|
2565
2565
|
return r.TopLeft = "top_left", r.TopRight = "top_right", r.TopCenter = "top_center", r.MiddleLeft = "middle_left", r.MiddleRight = "middle_right", r.MiddleCenter = "middle_center", r.Left = "left", r.Center = "center", r.Right = "right", r.NextToTrigger = "next_to_trigger", r;
|
|
2566
2566
|
})({});
|
|
2567
|
-
var Si = function(r) {
|
|
2567
|
+
var Si = (function(r) {
|
|
2568
2568
|
return r.Popover = "popover", r.API = "api", r.Widget = "widget", r.ExternalSurvey = "external_survey", r;
|
|
2569
|
-
}({});
|
|
2569
|
+
})({});
|
|
2570
2570
|
(function(r) {
|
|
2571
2571
|
return r.Open = "open", r.MultipleChoice = "multiple_choice", r.SingleChoice = "single_choice", r.Rating = "rating", r.Link = "link", r;
|
|
2572
2572
|
})({});
|
|
@@ -2576,20 +2576,20 @@ var Si = function(r) {
|
|
|
2576
2576
|
(function(r) {
|
|
2577
2577
|
return r.Once = "once", r.Recurring = "recurring", r.Always = "always", r;
|
|
2578
2578
|
})({});
|
|
2579
|
-
var qt = function(r) {
|
|
2579
|
+
var qt = (function(r) {
|
|
2580
2580
|
return r.SHOWN = "survey shown", r.DISMISSED = "survey dismissed", r.SENT = "survey sent", r;
|
|
2581
|
-
}({}), ss = function(r) {
|
|
2581
|
+
})({}), ss = (function(r) {
|
|
2582
2582
|
return r.SURVEY_ID = "$survey_id", r.SURVEY_NAME = "$survey_name", r.SURVEY_RESPONSE = "$survey_response", r.SURVEY_ITERATION = "$survey_iteration", r.SURVEY_ITERATION_START_DATE = "$survey_iteration_start_date", r.SURVEY_PARTIALLY_COMPLETED = "$survey_partially_completed", r.SURVEY_SUBMISSION_ID = "$survey_submission_id", r.SURVEY_QUESTIONS = "$survey_questions", r.SURVEY_COMPLETED = "$survey_completed", r;
|
|
2583
|
-
}({}), kn = function(r) {
|
|
2583
|
+
})({}), kn = (function(r) {
|
|
2584
2584
|
return r.Popover = "popover", r.Inline = "inline", r;
|
|
2585
|
-
}({});
|
|
2585
|
+
})({});
|
|
2586
2586
|
class cr {
|
|
2587
2587
|
constructor() {
|
|
2588
2588
|
this.ki = {}, this.ki = {};
|
|
2589
2589
|
}
|
|
2590
2590
|
on(e, t) {
|
|
2591
2591
|
return this.ki[e] || (this.ki[e] = []), this.ki[e].push(t), () => {
|
|
2592
|
-
this.ki[e] = this.ki[e].filter((i) => i !== t);
|
|
2592
|
+
this.ki[e] = this.ki[e].filter(((i) => i !== t));
|
|
2593
2593
|
};
|
|
2594
2594
|
}
|
|
2595
2595
|
emit(e, t) {
|
|
@@ -2605,37 +2605,37 @@ class Be {
|
|
|
2605
2605
|
var e;
|
|
2606
2606
|
if (!v((e = this._instance) == null ? void 0 : e.Mi)) {
|
|
2607
2607
|
var t;
|
|
2608
|
-
(t = this._instance) == null || t.Mi((i, s) => {
|
|
2608
|
+
(t = this._instance) == null || t.Mi(((i, s) => {
|
|
2609
2609
|
this.on(i, s);
|
|
2610
|
-
});
|
|
2610
|
+
}));
|
|
2611
2611
|
}
|
|
2612
2612
|
}
|
|
2613
2613
|
register(e) {
|
|
2614
2614
|
var t, i;
|
|
2615
|
-
if (!v((t = this._instance) == null ? void 0 : t.Mi) && (e.forEach((a) => {
|
|
2615
|
+
if (!v((t = this._instance) == null ? void 0 : t.Mi) && (e.forEach(((a) => {
|
|
2616
2616
|
var o, l;
|
|
2617
|
-
(o = this.Fi) == null || o.add(a), (l = a.steps) == null || l.forEach((u) => {
|
|
2617
|
+
(o = this.Fi) == null || o.add(a), (l = a.steps) == null || l.forEach(((u) => {
|
|
2618
2618
|
var c;
|
|
2619
2619
|
(c = this.Oi) == null || c.add((u == null ? void 0 : u.event) || "");
|
|
2620
|
-
});
|
|
2621
|
-
}), (i = this._instance) != null && i.autocapture)) {
|
|
2620
|
+
}));
|
|
2621
|
+
})), (i = this._instance) != null && i.autocapture)) {
|
|
2622
2622
|
var s, n = /* @__PURE__ */ new Set();
|
|
2623
|
-
e.forEach((a) => {
|
|
2623
|
+
e.forEach(((a) => {
|
|
2624
2624
|
var o;
|
|
2625
|
-
(o = a.steps) == null || o.forEach((l) => {
|
|
2625
|
+
(o = a.steps) == null || o.forEach(((l) => {
|
|
2626
2626
|
l != null && l.selector && n.add(l == null ? void 0 : l.selector);
|
|
2627
|
-
});
|
|
2628
|
-
}), (s = this._instance) == null || s.autocapture.setElementSelectors(n);
|
|
2627
|
+
}));
|
|
2628
|
+
})), (s = this._instance) == null || s.autocapture.setElementSelectors(n);
|
|
2629
2629
|
}
|
|
2630
2630
|
}
|
|
2631
2631
|
on(e, t) {
|
|
2632
2632
|
var i;
|
|
2633
|
-
t != null && e.length != 0 && (this.Oi.has(e) || this.Oi.has(t == null ? void 0 : t.event)) && this.Fi && ((i = this.Fi) == null ? void 0 : i.size) > 0 && this.Fi.forEach((s) => {
|
|
2633
|
+
t != null && e.length != 0 && (this.Oi.has(e) || this.Oi.has(t == null ? void 0 : t.event)) && this.Fi && ((i = this.Fi) == null ? void 0 : i.size) > 0 && this.Fi.forEach(((s) => {
|
|
2634
2634
|
this.Ai(t, s) && this.Pi.emit("actionCaptured", s.name);
|
|
2635
|
-
});
|
|
2635
|
+
}));
|
|
2636
2636
|
}
|
|
2637
2637
|
Di(e) {
|
|
2638
|
-
this.onAction("actionCaptured", (t) => e(t));
|
|
2638
|
+
this.onAction("actionCaptured", ((t) => e(t)));
|
|
2639
2639
|
}
|
|
2640
2640
|
Ai(e, t) {
|
|
2641
2641
|
if ((t == null ? void 0 : t.steps) == null) return !1;
|
|
@@ -2669,7 +2669,7 @@ class Be {
|
|
|
2669
2669
|
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
2670
2670
|
}
|
|
2671
2671
|
Ci(e, t) {
|
|
2672
|
-
if ((t != null && t.href || t != null && t.tag_name || t != null && t.text) && !this.Ni(e).some((n) => !(t != null && t.href && !Be.ji(n.href || "", t == null ? void 0 : t.href, (t == null ? void 0 : t.href_matching) || "exact")) && (t == null || !t.tag_name || n.tag_name === (t == null ? void 0 : t.tag_name)) && !(t != null && t.text && !Be.ji(n.text || "", t == null ? void 0 : t.text, (t == null ? void 0 : t.text_matching) || "exact") && !Be.ji(n.$el_text || "", t == null ? void 0 : t.text, (t == null ? void 0 : t.text_matching) || "exact")))) return !1;
|
|
2672
|
+
if ((t != null && t.href || t != null && t.tag_name || t != null && t.text) && !this.Ni(e).some(((n) => !(t != null && t.href && !Be.ji(n.href || "", t == null ? void 0 : t.href, (t == null ? void 0 : t.href_matching) || "exact")) && (t == null || !t.tag_name || n.tag_name === (t == null ? void 0 : t.tag_name)) && !(t != null && t.text && !Be.ji(n.text || "", t == null ? void 0 : t.text, (t == null ? void 0 : t.text_matching) || "exact") && !Be.ji(n.$el_text || "", t == null ? void 0 : t.text, (t == null ? void 0 : t.text_matching) || "exact"))))) return !1;
|
|
2673
2673
|
if (t != null && t.selector) {
|
|
2674
2674
|
var i, s = e == null || (i = e.properties) == null ? void 0 : i.$element_selectors;
|
|
2675
2675
|
if (!s || !s.includes(t == null ? void 0 : t.selector)) return !1;
|
|
@@ -2696,38 +2696,38 @@ class Ro {
|
|
|
2696
2696
|
v((t = this._instance) == null ? void 0 : t.Mi) || (this.Hi(e), this.Bi(e));
|
|
2697
2697
|
}
|
|
2698
2698
|
Bi(e) {
|
|
2699
|
-
var t = e.filter((i) => {
|
|
2699
|
+
var t = e.filter(((i) => {
|
|
2700
2700
|
var s, n;
|
|
2701
2701
|
return ((s = i.conditions) == null ? void 0 : s.actions) && ((n = i.conditions) == null || (n = n.actions) == null || (n = n.values) == null ? void 0 : n.length) > 0;
|
|
2702
|
-
});
|
|
2703
|
-
t.length !== 0 && (this.qi == null && (this.qi = new Be(this._instance), this.qi.init(), this.qi.Di((i) => {
|
|
2702
|
+
}));
|
|
2703
|
+
t.length !== 0 && (this.qi == null && (this.qi = new Be(this._instance), this.qi.init(), this.qi.Di(((i) => {
|
|
2704
2704
|
this.onAction(i);
|
|
2705
|
-
})), t.forEach((i) => {
|
|
2705
|
+
}))), t.forEach(((i) => {
|
|
2706
2706
|
var s, n, a, o, l;
|
|
2707
|
-
i.conditions && (s = i.conditions) != null && s.actions && (n = i.conditions) != null && (n = n.actions) != null && n.values && ((a = i.conditions) == null || (a = a.actions) == null || (a = a.values) == null ? void 0 : a.length) > 0 && ((o = this.qi) == null || o.register(i.conditions.actions.values), (l = i.conditions) == null || (l = l.actions) == null || (l = l.values) == null || l.forEach((u) => {
|
|
2707
|
+
i.conditions && (s = i.conditions) != null && s.actions && (n = i.conditions) != null && (n = n.actions) != null && n.values && ((a = i.conditions) == null || (a = a.actions) == null || (a = a.values) == null ? void 0 : a.length) > 0 && ((o = this.qi) == null || o.register(i.conditions.actions.values), (l = i.conditions) == null || (l = l.actions) == null || (l = l.values) == null || l.forEach(((u) => {
|
|
2708
2708
|
if (u && u.name) {
|
|
2709
2709
|
var c = this.zi.get(u.name);
|
|
2710
2710
|
c && c.push(i.id), this.zi.set(u.name, c || [i.id]);
|
|
2711
2711
|
}
|
|
2712
|
-
}));
|
|
2713
|
-
}));
|
|
2712
|
+
})));
|
|
2713
|
+
})));
|
|
2714
2714
|
}
|
|
2715
2715
|
Hi(e) {
|
|
2716
2716
|
var t;
|
|
2717
|
-
e.filter((i) => {
|
|
2717
|
+
e.filter(((i) => {
|
|
2718
2718
|
var s, n;
|
|
2719
2719
|
return ((s = i.conditions) == null ? void 0 : s.events) && ((n = i.conditions) == null || (n = n.events) == null || (n = n.values) == null ? void 0 : n.length) > 0;
|
|
2720
|
-
}).length !== 0 && ((t = this._instance) == null || t.Mi((i, s) => {
|
|
2720
|
+
})).length !== 0 && ((t = this._instance) == null || t.Mi(((i, s) => {
|
|
2721
2721
|
this.onEvent(i, s);
|
|
2722
|
-
}), e.forEach((i) => {
|
|
2722
|
+
})), e.forEach(((i) => {
|
|
2723
2723
|
var s;
|
|
2724
|
-
(s = i.conditions) == null || (s = s.events) == null || (s = s.values) == null || s.forEach((n) => {
|
|
2724
|
+
(s = i.conditions) == null || (s = s.events) == null || (s = s.values) == null || s.forEach(((n) => {
|
|
2725
2725
|
if (n && n.name) {
|
|
2726
2726
|
var a = this.Ui.get(n.name);
|
|
2727
2727
|
a && a.push(i.id), this.Ui.set(n.name, a || [i.id]);
|
|
2728
2728
|
}
|
|
2729
|
-
});
|
|
2730
|
-
}));
|
|
2729
|
+
}));
|
|
2730
|
+
})));
|
|
2731
2731
|
}
|
|
2732
2732
|
onEvent(e, t) {
|
|
2733
2733
|
var i, s, n = ((i = this._instance) == null || (i = i.persistence) == null ? void 0 : i.props[Ot]) || [];
|
|
@@ -2742,22 +2742,22 @@ class Ro {
|
|
|
2742
2742
|
} else if (this.Ui.has(e)) {
|
|
2743
2743
|
I.info("survey event name matched", { event: e, eventPayload: t, surveys: this.Ui.get(e) });
|
|
2744
2744
|
var u = [];
|
|
2745
|
-
(s = this._instance) == null || s.getSurveys((h) => {
|
|
2746
|
-
u = h.filter((g) => {
|
|
2745
|
+
(s = this._instance) == null || s.getSurveys(((h) => {
|
|
2746
|
+
u = h.filter(((g) => {
|
|
2747
2747
|
var p;
|
|
2748
2748
|
return (p = this.Ui.get(e)) == null ? void 0 : p.includes(g.id);
|
|
2749
|
-
});
|
|
2750
|
-
});
|
|
2751
|
-
var c = u.filter((h) => {
|
|
2752
|
-
var g, p = (g = h.conditions) == null || (g = g.events) == null || (g = g.values) == null ? void 0 : g.find((f) => f.name === e);
|
|
2753
|
-
return !!p && (!p.propertyFilters || Object.entries(p.propertyFilters).every((f) => {
|
|
2749
|
+
}));
|
|
2750
|
+
}));
|
|
2751
|
+
var c = u.filter(((h) => {
|
|
2752
|
+
var g, p = (g = h.conditions) == null || (g = g.events) == null || (g = g.values) == null ? void 0 : g.find(((f) => f.name === e));
|
|
2753
|
+
return !!p && (!p.propertyFilters || Object.entries(p.propertyFilters).every(((f) => {
|
|
2754
2754
|
var _, [b, E] = f, x = t == null || (_ = t.properties) == null ? void 0 : _[b];
|
|
2755
2755
|
if (v(x) || Ee(x)) return !1;
|
|
2756
2756
|
var $ = [String(x)], P = En[E.operator];
|
|
2757
2757
|
return P ? P(E.values, $) : (I.warn("Unknown property comparison operator: " + E.operator), !1);
|
|
2758
|
-
}));
|
|
2759
|
-
});
|
|
2760
|
-
this.Wi(n.concat(c.map((h) => h.id) || []));
|
|
2758
|
+
})));
|
|
2759
|
+
}));
|
|
2760
|
+
this.Wi(n.concat(c.map(((h) => h.id)) || []));
|
|
2761
2761
|
}
|
|
2762
2762
|
}
|
|
2763
2763
|
onAction(e) {
|
|
@@ -2797,7 +2797,7 @@ class Do {
|
|
|
2797
2797
|
var i = localStorage.key(t);
|
|
2798
2798
|
(i != null && i.startsWith(Xi) || i != null && i.startsWith("inProgressSurvey_")) && e.push(i);
|
|
2799
2799
|
}
|
|
2800
|
-
e.forEach((s) => localStorage.removeItem(s));
|
|
2800
|
+
e.forEach(((s) => localStorage.removeItem(s)));
|
|
2801
2801
|
}
|
|
2802
2802
|
loadIfEnabled() {
|
|
2803
2803
|
if (!this._surveyManager) if (this.Ki) I.info("Already initializing surveys, skipping...");
|
|
@@ -2814,9 +2814,9 @@ class Do {
|
|
|
2814
2814
|
if (i) return void this.Xi(i, t);
|
|
2815
2815
|
var s = e.loadExternalDependency;
|
|
2816
2816
|
if (!s) return void this.Qi("PostHog loadExternalDependency extension not found.");
|
|
2817
|
-
s(this._instance, "surveys", (n) => {
|
|
2817
|
+
s(this._instance, "surveys", ((n) => {
|
|
2818
2818
|
n || !e.generateSurveys ? this.Qi("Could not load surveys script", n) : this.Xi(e.generateSurveys, t);
|
|
2819
|
-
});
|
|
2819
|
+
}));
|
|
2820
2820
|
} catch (n) {
|
|
2821
2821
|
throw this.Qi("Error initializing surveys", n), n;
|
|
2822
2822
|
} finally {
|
|
@@ -2834,7 +2834,7 @@ class Do {
|
|
|
2834
2834
|
}
|
|
2835
2835
|
onSurveysLoaded(e) {
|
|
2836
2836
|
return this.Yi.push(e), this._surveyManager && this.Zi({ isLoaded: !0 }), () => {
|
|
2837
|
-
this.Yi = this.Yi.filter((t) => t !== e);
|
|
2837
|
+
this.Yi = this.Yi.filter(((t) => t !== e));
|
|
2838
2838
|
};
|
|
2839
2839
|
}
|
|
2840
2840
|
getSurveys(e, t) {
|
|
@@ -2851,15 +2851,15 @@ class Do {
|
|
|
2851
2851
|
var o = "Surveys API could not be loaded, status: " + a;
|
|
2852
2852
|
return I.error(o), e([], { isLoaded: !1, error: o });
|
|
2853
2853
|
}
|
|
2854
|
-
var l, u = s.json.surveys || [], c = u.filter((h) => function(g) {
|
|
2854
|
+
var l, u = s.json.surveys || [], c = u.filter(((h) => (function(g) {
|
|
2855
2855
|
return !(!g.start_date || g.end_date);
|
|
2856
|
-
}(h) && (function(g) {
|
|
2856
|
+
})(h) && ((function(g) {
|
|
2857
2857
|
var p;
|
|
2858
2858
|
return !((p = g.conditions) == null || (p = p.events) == null || (p = p.values) == null || !p.length);
|
|
2859
|
-
}(h) || function(g) {
|
|
2859
|
+
})(h) || (function(g) {
|
|
2860
2860
|
var p;
|
|
2861
2861
|
return !((p = g.conditions) == null || (p = p.actions) == null || (p = p.values) == null || !p.length);
|
|
2862
|
-
}(h)));
|
|
2862
|
+
})(h))));
|
|
2863
2863
|
return c.length > 0 && ((l = this._surveyEventReceiver) == null || l.register(c)), (n = this._instance.persistence) == null || n.register({ [Li]: u }), e(u, { isLoaded: !0 });
|
|
2864
2864
|
} });
|
|
2865
2865
|
} catch (s) {
|
|
@@ -2880,10 +2880,10 @@ class Do {
|
|
|
2880
2880
|
}
|
|
2881
2881
|
te(e) {
|
|
2882
2882
|
var t = null;
|
|
2883
|
-
return this.getSurveys((i) => {
|
|
2883
|
+
return this.getSurveys(((i) => {
|
|
2884
2884
|
var s;
|
|
2885
|
-
t = (s = i.find((n) => n.id === e)) !== null && s !== void 0 ? s : null;
|
|
2886
|
-
}), t;
|
|
2885
|
+
t = (s = i.find(((n) => n.id === e))) !== null && s !== void 0 ? s : null;
|
|
2886
|
+
})), t;
|
|
2887
2887
|
}
|
|
2888
2888
|
ie(e) {
|
|
2889
2889
|
if (O(this._surveyManager)) return { eligible: !1, reason: "SDK is not enabled or survey functionality is not yet loaded" };
|
|
@@ -2896,15 +2896,15 @@ class Do {
|
|
|
2896
2896
|
return { visible: t.eligible, disabledReason: t.reason };
|
|
2897
2897
|
}
|
|
2898
2898
|
canRenderSurveyAsync(e, t) {
|
|
2899
|
-
return O(this._surveyManager) ? (I.warn("init was not called"), Promise.resolve({ visible: !1, disabledReason: "SDK is not enabled or survey functionality is not yet loaded" })) : new Promise((i) => {
|
|
2900
|
-
this.getSurveys((s) => {
|
|
2901
|
-
var n, a = (n = s.find((l) => l.id === e)) !== null && n !== void 0 ? n : null;
|
|
2899
|
+
return O(this._surveyManager) ? (I.warn("init was not called"), Promise.resolve({ visible: !1, disabledReason: "SDK is not enabled or survey functionality is not yet loaded" })) : new Promise(((i) => {
|
|
2900
|
+
this.getSurveys(((s) => {
|
|
2901
|
+
var n, a = (n = s.find(((l) => l.id === e))) !== null && n !== void 0 ? n : null;
|
|
2902
2902
|
if (a) {
|
|
2903
2903
|
var o = this.ie(a);
|
|
2904
2904
|
i({ visible: o.eligible, disabledReason: o.reason });
|
|
2905
2905
|
} else i({ visible: !1, disabledReason: "Survey not found" });
|
|
2906
|
-
}, t);
|
|
2907
|
-
});
|
|
2906
|
+
}), t);
|
|
2907
|
+
}));
|
|
2908
2908
|
}
|
|
2909
2909
|
renderSurvey(e, t) {
|
|
2910
2910
|
var i;
|
|
@@ -2913,10 +2913,10 @@ class Do {
|
|
|
2913
2913
|
var s = typeof e == "string" ? this.te(e) : e;
|
|
2914
2914
|
if (s != null && s.id) if (To.includes(s.type)) {
|
|
2915
2915
|
var n = m == null ? void 0 : m.querySelector(t);
|
|
2916
|
-
if (n) return (i = s.appearance) != null && i.surveyPopupDelaySeconds ? (I.info("Rendering survey " + s.id + " with delay of " + s.appearance.surveyPopupDelaySeconds + " seconds"), void setTimeout(() => {
|
|
2916
|
+
if (n) return (i = s.appearance) != null && i.surveyPopupDelaySeconds ? (I.info("Rendering survey " + s.id + " with delay of " + s.appearance.surveyPopupDelaySeconds + " seconds"), void setTimeout((() => {
|
|
2917
2917
|
var a, o;
|
|
2918
2918
|
I.info("Rendering survey " + s.id + " with delay of " + ((a = s.appearance) == null ? void 0 : a.surveyPopupDelaySeconds) + " seconds"), (o = this._surveyManager) == null || o.renderSurvey(s, n), I.info("Survey " + s.id + " rendered");
|
|
2919
|
-
}, 1e3 * s.appearance.surveyPopupDelaySeconds)) : void this._surveyManager.renderSurvey(s, n);
|
|
2919
|
+
}), 1e3 * s.appearance.surveyPopupDelaySeconds)) : void this._surveyManager.renderSurvey(s, n);
|
|
2920
2920
|
I.warn("Survey element not found");
|
|
2921
2921
|
} else I.warn("Surveys of type " + s.type + " cannot be rendered in the app");
|
|
2922
2922
|
else I.warn("Survey not found");
|
|
@@ -2945,9 +2945,9 @@ class Mo {
|
|
|
2945
2945
|
this.serverLimits = {}, this.lastEventRateLimited = !1, this.checkForLimiting = (s) => {
|
|
2946
2946
|
var n = s.text;
|
|
2947
2947
|
if (n && n.length) try {
|
|
2948
|
-
(JSON.parse(n).quota_limited || []).forEach((a) => {
|
|
2948
|
+
(JSON.parse(n).quota_limited || []).forEach(((a) => {
|
|
2949
2949
|
as.info((a || "events") + " is quota limited."), this.serverLimits[a] = (/* @__PURE__ */ new Date()).getTime() + 6e4;
|
|
2950
|
-
});
|
|
2950
|
+
}));
|
|
2951
2951
|
} catch (a) {
|
|
2952
2952
|
return void as.warn('could not rate limit - continuing. Error: "' + (a == null ? void 0 : a.message) + '"', { text: n });
|
|
2953
2953
|
}
|
|
@@ -2977,7 +2977,7 @@ class Ao {
|
|
|
2977
2977
|
}
|
|
2978
2978
|
ee(e) {
|
|
2979
2979
|
var t, i;
|
|
2980
|
-
(t = k.__PosthogExtensions__) != null && t.loadExternalDependency ? (i = k.__PosthogExtensions__) == null || i.loadExternalDependency == null || i.loadExternalDependency(this._instance, "remote-config", () => e(this.remoteConfig)) : (qe.error("PostHog Extensions not found. Cannot load remote config."), e());
|
|
2980
|
+
(t = k.__PosthogExtensions__) != null && t.loadExternalDependency ? (i = k.__PosthogExtensions__) == null || i.loadExternalDependency == null || i.loadExternalDependency(this._instance, "remote-config", (() => e(this.remoteConfig))) : (qe.error("PostHog Extensions not found. Cannot load remote config."), e());
|
|
2981
2981
|
}
|
|
2982
2982
|
re(e) {
|
|
2983
2983
|
this._instance.ci({ method: "GET", url: this._instance.requestRouter.endpointFor("assets", "/array/" + this._instance.config.token + "/config"), callback: (t) => {
|
|
@@ -2988,12 +2988,12 @@ class Ao {
|
|
|
2988
2988
|
try {
|
|
2989
2989
|
if (this.remoteConfig) return qe.info("Using preloaded remote config", this.remoteConfig), void this.fi(this.remoteConfig);
|
|
2990
2990
|
if (this._instance.M()) return void qe.warn("Remote config is disabled. Falling back to local config.");
|
|
2991
|
-
this.ee((e) => {
|
|
2992
|
-
if (!e) return qe.info("No config found after loading remote JS config. Falling back to JSON."), void this.re((t) => {
|
|
2991
|
+
this.ee(((e) => {
|
|
2992
|
+
if (!e) return qe.info("No config found after loading remote JS config. Falling back to JSON."), void this.re(((t) => {
|
|
2993
2993
|
this.fi(t);
|
|
2994
|
-
});
|
|
2994
|
+
}));
|
|
2995
2995
|
this.fi(e);
|
|
2996
|
-
});
|
|
2996
|
+
}));
|
|
2997
2997
|
} catch (e) {
|
|
2998
2998
|
qe.error("Error loading remote config", e);
|
|
2999
2999
|
}
|
|
@@ -3013,36 +3013,36 @@ class Lo {
|
|
|
3013
3013
|
unload() {
|
|
3014
3014
|
this.he();
|
|
3015
3015
|
var e = this.ne.length > 0 ? this.de() : {}, t = Object.values(e);
|
|
3016
|
-
[...t.filter((i) => i.url.indexOf("/e") === 0), ...t.filter((i) => i.url.indexOf("/e") !== 0)].map((i) => {
|
|
3016
|
+
[...t.filter(((i) => i.url.indexOf("/e") === 0)), ...t.filter(((i) => i.url.indexOf("/e") !== 0))].map(((i) => {
|
|
3017
3017
|
this.ae(w({}, i, { transport: "sendBeacon" }));
|
|
3018
|
-
});
|
|
3018
|
+
}));
|
|
3019
3019
|
}
|
|
3020
3020
|
enable() {
|
|
3021
3021
|
this.se = !1, this.ue();
|
|
3022
3022
|
}
|
|
3023
3023
|
ue() {
|
|
3024
3024
|
var e = this;
|
|
3025
|
-
this.se || (this.le = setTimeout(() => {
|
|
3025
|
+
this.se || (this.le = setTimeout((() => {
|
|
3026
3026
|
if (this.he(), this.ne.length > 0) {
|
|
3027
3027
|
var t = this.de(), i = function() {
|
|
3028
3028
|
var n = t[s], a = (/* @__PURE__ */ new Date()).getTime();
|
|
3029
|
-
n.data && T(n.data) && F(n.data, (o) => {
|
|
3029
|
+
n.data && T(n.data) && F(n.data, ((o) => {
|
|
3030
3030
|
o.offset = Math.abs(o.timestamp - a), delete o.timestamp;
|
|
3031
|
-
}), e.ae(n);
|
|
3031
|
+
})), e.ae(n);
|
|
3032
3032
|
};
|
|
3033
3033
|
for (var s in t) i();
|
|
3034
3034
|
}
|
|
3035
|
-
}, this.oe));
|
|
3035
|
+
}), this.oe));
|
|
3036
3036
|
}
|
|
3037
3037
|
he() {
|
|
3038
3038
|
clearTimeout(this.le), this.le = void 0;
|
|
3039
3039
|
}
|
|
3040
3040
|
de() {
|
|
3041
3041
|
var e = {};
|
|
3042
|
-
return F(this.ne, (t) => {
|
|
3042
|
+
return F(this.ne, ((t) => {
|
|
3043
3043
|
var i, s = t, n = (s ? s.batchKey : null) || s.url;
|
|
3044
3044
|
v(e[n]) && (e[n] = w({}, s, { data: [] })), (i = e[n].data) == null || i.push(s.data);
|
|
3045
|
-
}), this.ne = [], e;
|
|
3045
|
+
})), this.ne = [], e;
|
|
3046
3046
|
}
|
|
3047
3047
|
}
|
|
3048
3048
|
var No = ["retriesPerformedSoFar"];
|
|
@@ -3066,22 +3066,22 @@ class Uo {
|
|
|
3066
3066
|
_e(e) {
|
|
3067
3067
|
var t = e.retriesPerformedSoFar || 0;
|
|
3068
3068
|
e.retriesPerformedSoFar = t + 1;
|
|
3069
|
-
var i = function(a) {
|
|
3069
|
+
var i = (function(a) {
|
|
3070
3070
|
var o = 3e3 * Math.pow(2, a), l = o / 2, u = Math.min(18e5, o), c = (Math.random() - 0.5) * (u - l);
|
|
3071
3071
|
return Math.ceil(u + c);
|
|
3072
|
-
}(t), s = Date.now() + i;
|
|
3072
|
+
})(t), s = Date.now() + i;
|
|
3073
3073
|
this.ne.push({ retryAt: s, requestOptions: e });
|
|
3074
3074
|
var n = "Enqueued failed request for retry in " + i;
|
|
3075
3075
|
navigator.onLine || (n += " (Browser is offline)"), y.warn(n), this.ve || (this.ve = !0, this.me());
|
|
3076
3076
|
}
|
|
3077
3077
|
me() {
|
|
3078
3078
|
if (this.ye && clearTimeout(this.ye), this.ne.length === 0) return this.ve = !1, void (this.ye = void 0);
|
|
3079
|
-
this.ye = setTimeout(() => {
|
|
3079
|
+
this.ye = setTimeout((() => {
|
|
3080
3080
|
this.fe && this.ne.length > 0 && this.Dt(), this.me();
|
|
3081
|
-
}, this.ce);
|
|
3081
|
+
}), this.ce);
|
|
3082
3082
|
}
|
|
3083
3083
|
Dt() {
|
|
3084
|
-
var e = Date.now(), t = [], i = this.ne.filter((n) => n.retryAt < e || (t.push(n), !1));
|
|
3084
|
+
var e = Date.now(), t = [], i = this.ne.filter(((n) => n.retryAt < e || (t.push(n), !1)));
|
|
3085
3085
|
if (this.ne = t, i.length > 0) for (var { requestOptions: s } of i) this.retriableRequest(s);
|
|
3086
3086
|
}
|
|
3087
3087
|
unload() {
|
|
@@ -3155,9 +3155,9 @@ class os {
|
|
|
3155
3155
|
}
|
|
3156
3156
|
getSessionProps() {
|
|
3157
3157
|
var e = {};
|
|
3158
|
-
return F(Qi(this.getSetOnceProps()), (t, i) => {
|
|
3158
|
+
return F(Qi(this.getSetOnceProps()), ((t, i) => {
|
|
3159
3159
|
i === "$current_url" && (i = "url"), e["$session_entry_" + Fi(i)] = t;
|
|
3160
|
-
}), e;
|
|
3160
|
+
})), e;
|
|
3161
3161
|
}
|
|
3162
3162
|
}
|
|
3163
3163
|
var Pi = U("[SessionId]");
|
|
@@ -3193,7 +3193,7 @@ class ls {
|
|
|
3193
3193
|
}
|
|
3194
3194
|
onSessionId(e) {
|
|
3195
3195
|
return v(this.Te) && (this.Te = []), this.Te.push(e), this.Oe && e(this.Oe, this.Ce), () => {
|
|
3196
|
-
this.Te = this.Te.filter((t) => t !== e);
|
|
3196
|
+
this.Te = this.Te.filter(((t) => t !== e));
|
|
3197
3197
|
};
|
|
3198
3198
|
}
|
|
3199
3199
|
Le() {
|
|
@@ -3229,16 +3229,16 @@ class ls {
|
|
|
3229
3229
|
var i = t || (/* @__PURE__ */ new Date()).getTime(), [s, n, a] = this.Be(), o = this.He(), l = fe(a) && a > 0 && Math.abs(i - a) > 864e5, u = !1, c = !n, h = !c && !e && this.Re(i, s);
|
|
3230
3230
|
c || h || l ? (n = this.Fe(), o = this.Me(), Pi.info("new session ID generated", { sessionId: n, windowId: o, changeReason: { noSessionId: c, activityTimeout: h, sessionPastMaximumLength: l } }), a = i, u = !0) : o || (o = this.Me(), u = !0);
|
|
3231
3231
|
var g = s === 0 || !e || l ? i : s, p = a === 0 ? (/* @__PURE__ */ new Date()).getTime() : a;
|
|
3232
|
-
return this.ze(o), this.Ne(n, g, p), e || this.Ae(), u && this.Te.forEach((f) => f(n, o, u ? { noSessionId: c, activityTimeout: h, sessionPastMaximumLength: l } : void 0)), { sessionId: n, windowId: o, sessionStartTimestamp: p, changeReason: u ? { noSessionId: c, activityTimeout: h, sessionPastMaximumLength: l } : void 0, lastActivityTimestamp: s };
|
|
3232
|
+
return this.ze(o), this.Ne(n, g, p), e || this.Ae(), u && this.Te.forEach(((f) => f(n, o, u ? { noSessionId: c, activityTimeout: h, sessionPastMaximumLength: l } : void 0))), { sessionId: n, windowId: o, sessionStartTimestamp: p, changeReason: u ? { noSessionId: c, activityTimeout: h, sessionPastMaximumLength: l } : void 0, lastActivityTimestamp: s };
|
|
3233
3233
|
}
|
|
3234
3234
|
Ae() {
|
|
3235
|
-
clearTimeout(this.qe), this.qe = setTimeout(() => {
|
|
3235
|
+
clearTimeout(this.qe), this.qe = setTimeout((() => {
|
|
3236
3236
|
var [e] = this.Be();
|
|
3237
3237
|
if (this.Re((/* @__PURE__ */ new Date()).getTime(), e)) {
|
|
3238
3238
|
var t = this.Oe;
|
|
3239
3239
|
this.resetSessionId(), this.Pe.emit("forcedIdleReset", { idleSessionId: t });
|
|
3240
3240
|
}
|
|
3241
|
-
}, 1.1 * this.sessionTimeoutMs);
|
|
3241
|
+
}), 1.1 * this.sessionTimeoutMs);
|
|
3242
3242
|
}
|
|
3243
3243
|
}
|
|
3244
3244
|
var Bo = ["$set_once", "$set"], $e = U("[SiteApps]");
|
|
@@ -3278,7 +3278,7 @@ class Ho {
|
|
|
3278
3278
|
setupSiteApp(e) {
|
|
3279
3279
|
var t = this.apps[e.id], i = () => {
|
|
3280
3280
|
var o;
|
|
3281
|
-
!t.errored && this.We.length && ($e.info("Processing " + this.We.length + " events for site app with id " + e.id), this.We.forEach((l) => t.processEvent == null ? void 0 : t.processEvent(l)), t.processedBuffer = !0), Object.values(this.apps).every((l) => l.processedBuffer || l.errored) && ((o = this.Ve) == null || o.call(this));
|
|
3281
|
+
!t.errored && this.We.length && ($e.info("Processing " + this.We.length + " events for site app with id " + e.id), this.We.forEach(((l) => t.processEvent == null ? void 0 : t.processEvent(l))), t.processedBuffer = !0), Object.values(this.apps).every(((l) => l.processedBuffer || l.errored)) && ((o = this.Ve) == null || o.call(this));
|
|
3282
3282
|
}, s = !1, n = (o) => {
|
|
3283
3283
|
t.errored = !o, t.loaded = !0, $e.info("Site app with id " + e.id + " " + (o ? "loaded" : "errored")), s && i();
|
|
3284
3284
|
};
|
|
@@ -3313,13 +3313,13 @@ class Ho {
|
|
|
3313
3313
|
}
|
|
3314
3314
|
onRemoteConfig(e) {
|
|
3315
3315
|
var t, i, s, n = this;
|
|
3316
|
-
if ((t = this.siteAppLoaders) != null && t.length) return this.isEnabled ? (this.Je(), void this._instance.on("eventCaptured", (u) => this.Ke(u))) : void $e.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');
|
|
3316
|
+
if ((t = this.siteAppLoaders) != null && t.length) return this.isEnabled ? (this.Je(), void this._instance.on("eventCaptured", ((u) => this.Ke(u)))) : void $e.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');
|
|
3317
3317
|
if ((i = this.Ve) == null || i.call(this), (s = e.siteApps) != null && s.length) if (this.isEnabled) {
|
|
3318
3318
|
var a = function(u) {
|
|
3319
3319
|
var c;
|
|
3320
|
-
k["__$$ph_site_app_" + u] = n._instance, (c = k.__PosthogExtensions__) == null || c.loadSiteApp == null || c.loadSiteApp(n._instance, l, (h) => {
|
|
3320
|
+
k["__$$ph_site_app_" + u] = n._instance, (c = k.__PosthogExtensions__) == null || c.loadSiteApp == null || c.loadSiteApp(n._instance, l, ((h) => {
|
|
3321
3321
|
if (h) return $e.error("Error while initializing PostHog app with config id " + u, h);
|
|
3322
|
-
});
|
|
3322
|
+
}));
|
|
3323
3323
|
};
|
|
3324
3324
|
for (var { id: o, url: l } of e.siteApps) a(o);
|
|
3325
3325
|
} else $e.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');
|
|
@@ -3331,13 +3331,13 @@ var xn = function(r, e) {
|
|
|
3331
3331
|
if (t && wr(t, e)) return !0;
|
|
3332
3332
|
try {
|
|
3333
3333
|
var i = r == null ? void 0 : r.userAgentData;
|
|
3334
|
-
if (i != null && i.brands && i.brands.some((s) => wr(s == null ? void 0 : s.brand, e))) return !0;
|
|
3334
|
+
if (i != null && i.brands && i.brands.some(((s) => wr(s == null ? void 0 : s.brand, e)))) return !0;
|
|
3335
3335
|
} catch {
|
|
3336
3336
|
}
|
|
3337
3337
|
return !!r.webdriver;
|
|
3338
|
-
}, bt = function(r) {
|
|
3338
|
+
}, bt = (function(r) {
|
|
3339
3339
|
return r.US = "us", r.EU = "eu", r.CUSTOM = "custom", r;
|
|
3340
|
-
}({}), cs = "i.posthog.com";
|
|
3340
|
+
})({}), cs = "i.posthog.com";
|
|
3341
3341
|
class Vo {
|
|
3342
3342
|
constructor(e) {
|
|
3343
3343
|
this.Ye = {}, this.instance = e;
|
|
@@ -3375,8 +3375,8 @@ class B {
|
|
|
3375
3375
|
constructor(e) {
|
|
3376
3376
|
var t = this;
|
|
3377
3377
|
this.getWebExperimentsAndEvaluateDisplayLogic = function(i) {
|
|
3378
|
-
i === void 0 && (i = !1), t.getWebExperiments((s) => {
|
|
3379
|
-
B.Xe("retrieved web experiments from the server"), t.Qe = /* @__PURE__ */ new Map(), s.forEach((n) => {
|
|
3378
|
+
i === void 0 && (i = !1), t.getWebExperiments(((s) => {
|
|
3379
|
+
B.Xe("retrieved web experiments from the server"), t.Qe = /* @__PURE__ */ new Map(), s.forEach(((n) => {
|
|
3380
3380
|
if (n.feature_flag_key) {
|
|
3381
3381
|
var a;
|
|
3382
3382
|
t.Qe && (B.Xe("setting flag key ", n.feature_flag_key, " to web experiment ", n), (a = t.Qe) == null || a.set(n.feature_flag_key, n));
|
|
@@ -3386,32 +3386,32 @@ class B {
|
|
|
3386
3386
|
var u = n.variants[l];
|
|
3387
3387
|
B.tr(u) && t.Ze(n.name, l, u.transforms);
|
|
3388
3388
|
}
|
|
3389
|
-
});
|
|
3390
|
-
}, i);
|
|
3391
|
-
}, this._instance = e, this._instance.onFeatureFlags((i) => {
|
|
3389
|
+
}));
|
|
3390
|
+
}), i);
|
|
3391
|
+
}, this._instance = e, this._instance.onFeatureFlags(((i) => {
|
|
3392
3392
|
this.onFeatureFlags(i);
|
|
3393
|
-
});
|
|
3393
|
+
}));
|
|
3394
3394
|
}
|
|
3395
3395
|
onFeatureFlags(e) {
|
|
3396
3396
|
if (this._is_bot()) B.Xe("Refusing to render web experiment since the viewer is a likely bot");
|
|
3397
3397
|
else if (!this._instance.config.disable_web_experiments) {
|
|
3398
3398
|
if (O(this.Qe)) return this.Qe = /* @__PURE__ */ new Map(), this.loadIfEnabled(), void this.previewWebExperiment();
|
|
3399
|
-
B.Xe("applying feature flags", e), e.forEach((t) => {
|
|
3399
|
+
B.Xe("applying feature flags", e), e.forEach(((t) => {
|
|
3400
3400
|
var i;
|
|
3401
3401
|
if (this.Qe && (i = this.Qe) != null && i.has(t)) {
|
|
3402
3402
|
var s, n = this._instance.getFeatureFlag(t), a = (s = this.Qe) == null ? void 0 : s.get(t);
|
|
3403
3403
|
n && a != null && a.variants[n] && this.Ze(a.name, n, a.variants[n].transforms);
|
|
3404
3404
|
}
|
|
3405
|
-
});
|
|
3405
|
+
}));
|
|
3406
3406
|
}
|
|
3407
3407
|
}
|
|
3408
3408
|
previewWebExperiment() {
|
|
3409
3409
|
var e = B.getWindowLocation();
|
|
3410
3410
|
if (e != null && e.search) {
|
|
3411
3411
|
var t = Zt(e == null ? void 0 : e.search, "__experiment_id"), i = Zt(e == null ? void 0 : e.search, "__experiment_variant");
|
|
3412
|
-
t && i && (B.Xe("previewing web experiments " + t + " && " + i), this.getWebExperiments((s) => {
|
|
3412
|
+
t && i && (B.Xe("previewing web experiments " + t + " && " + i), this.getWebExperiments(((s) => {
|
|
3413
3413
|
this.ir(parseInt(t), i, s);
|
|
3414
|
-
}, !1, !0));
|
|
3414
|
+
}), !1, !0));
|
|
3415
3415
|
}
|
|
3416
3416
|
}
|
|
3417
3417
|
loadIfEnabled() {
|
|
@@ -3428,7 +3428,7 @@ class B {
|
|
|
3428
3428
|
} });
|
|
3429
3429
|
}
|
|
3430
3430
|
ir(e, t, i) {
|
|
3431
|
-
var s = i.filter((n) => n.id === e);
|
|
3431
|
+
var s = i.filter(((n) => n.id === e));
|
|
3432
3432
|
s && s.length > 0 && (B.Xe("Previewing web experiment [" + s[0].name + "] with variant [" + t + "]"), this.Ze(s[0].name, t, s[0].variants[t].transforms));
|
|
3433
3433
|
}
|
|
3434
3434
|
static tr(e) {
|
|
@@ -3458,17 +3458,17 @@ class B {
|
|
|
3458
3458
|
y.info("[WebExperiments] " + e, i);
|
|
3459
3459
|
}
|
|
3460
3460
|
Ze(e, t, i) {
|
|
3461
|
-
this._is_bot() ? B.Xe("Refusing to render web experiment since the viewer is a likely bot") : t !== "control" ? i.forEach((s) => {
|
|
3461
|
+
this._is_bot() ? B.Xe("Refusing to render web experiment since the viewer is a likely bot") : t !== "control" ? i.forEach(((s) => {
|
|
3462
3462
|
if (s.selector) {
|
|
3463
3463
|
var n;
|
|
3464
3464
|
B.Xe("applying transform of variant " + t + " for experiment " + e + " ", s);
|
|
3465
3465
|
var a = (n = document) == null ? void 0 : n.querySelectorAll(s.selector);
|
|
3466
|
-
a == null || a.forEach((o) => {
|
|
3466
|
+
a == null || a.forEach(((o) => {
|
|
3467
3467
|
var l = o;
|
|
3468
3468
|
s.html && (l.innerHTML = s.html), s.css && l.setAttribute("style", s.css);
|
|
3469
|
-
});
|
|
3469
|
+
}));
|
|
3470
3470
|
}
|
|
3471
|
-
}) : B.Xe("Control variants leave the page unmodified.");
|
|
3471
|
+
})) : B.Xe("Control variants leave the page unmodified.");
|
|
3472
3472
|
}
|
|
3473
3473
|
_is_bot() {
|
|
3474
3474
|
return Q && this._instance ? xn(Q, this._instance.config.custom_blocked_useragents) : void 0;
|
|
@@ -3481,18 +3481,18 @@ class Yo {
|
|
|
3481
3481
|
}
|
|
3482
3482
|
it(e, t) {
|
|
3483
3483
|
var i;
|
|
3484
|
-
(i = k.__PosthogExtensions__) == null || i.loadExternalDependency == null || i.loadExternalDependency(this._instance, e, (s) => {
|
|
3484
|
+
(i = k.__PosthogExtensions__) == null || i.loadExternalDependency == null || i.loadExternalDependency(this._instance, e, ((s) => {
|
|
3485
3485
|
if (s) return Wo.error("failed to load script", s);
|
|
3486
3486
|
t();
|
|
3487
|
-
});
|
|
3487
|
+
}));
|
|
3488
3488
|
}
|
|
3489
3489
|
startIfEnabledOrStop() {
|
|
3490
3490
|
var e = this, t = function(a) {
|
|
3491
3491
|
var o, l, u;
|
|
3492
|
-
!s || (o = k.__PosthogExtensions__) != null && (o = o.integrations) != null && o[a] || e.it(zo[a], () => {
|
|
3492
|
+
!s || (o = k.__PosthogExtensions__) != null && (o = o.integrations) != null && o[a] || e.it(zo[a], (() => {
|
|
3493
3493
|
var c;
|
|
3494
3494
|
(c = k.__PosthogExtensions__) == null || (c = c.integrations) == null || (c = c[a]) == null || c.start(e._instance);
|
|
3495
|
-
}), !s && (l = k.__PosthogExtensions__) != null && (l = l.integrations) != null && l[a] && ((u = k.__PosthogExtensions__) == null || (u = u.integrations) == null || (u = u[a]) == null || u.stop());
|
|
3495
|
+
})), !s && (l = k.__PosthogExtensions__) != null && (l = l.integrations) != null && l[a] && ((u = k.__PosthogExtensions__) == null || (u = u.integrations) == null || (u = u[a]) == null || u.stop());
|
|
3496
3496
|
};
|
|
3497
3497
|
for (var [i, s] of Object.entries((n = this._instance.config.integrations) !== null && n !== void 0 ? n : {})) {
|
|
3498
3498
|
var n;
|
|
@@ -3526,10 +3526,10 @@ class us {
|
|
|
3526
3526
|
}
|
|
3527
3527
|
ur(e) {
|
|
3528
3528
|
var t, i, s;
|
|
3529
|
-
this.ar && (k != null && (t = k.__PosthogExtensions__) != null && (t = t.rrweb) != null && t.record && (i = k.__PosthogExtensions__) != null && i.initSessionRecording ? this.hr(e) : (s = k.__PosthogExtensions__) == null || s.loadExternalDependency == null || s.loadExternalDependency(this._instance, this.dr, (n) => {
|
|
3529
|
+
this.ar && (k != null && (t = k.__PosthogExtensions__) != null && (t = t.rrweb) != null && t.record && (i = k.__PosthogExtensions__) != null && i.initSessionRecording ? this.hr(e) : (s = k.__PosthogExtensions__) == null || s.loadExternalDependency == null || s.loadExternalDependency(this._instance, this.dr, ((n) => {
|
|
3530
3530
|
if (n) return pt.error("could not load recorder", n);
|
|
3531
3531
|
this.hr(e);
|
|
3532
|
-
}));
|
|
3532
|
+
})));
|
|
3533
3533
|
}
|
|
3534
3534
|
stopRecording() {
|
|
3535
3535
|
var e, t;
|
|
@@ -3625,16 +3625,16 @@ class oi {
|
|
|
3625
3625
|
return (e = (t = this.featureFlags) == null ? void 0 : t.hasLoadedFlags) !== null && e !== void 0 && e;
|
|
3626
3626
|
}
|
|
3627
3627
|
constructor() {
|
|
3628
|
-
this.webPerformance = new Xo(), this.gr = !1, this.version = me.LIB_VERSION, this._r = new cr(), this._calculate_event_properties = this.calculateEventProperties.bind(this), this.config = hs(), this.SentryIntegration = Wa, this.sentryIntegration = (e) => function(t, i) {
|
|
3628
|
+
this.webPerformance = new Xo(), this.gr = !1, this.version = me.LIB_VERSION, this._r = new cr(), this._calculate_event_properties = this.calculateEventProperties.bind(this), this.config = hs(), this.SentryIntegration = Wa, this.sentryIntegration = (e) => (function(t, i) {
|
|
3629
3629
|
var s = Ws(t, i);
|
|
3630
3630
|
return { name: Gs, processEvent: (n) => s(n) };
|
|
3631
|
-
}(this, e), this.__request_queue = [], this.__loaded = !1, this.analyticsDefaultEndpoint = "/e/", this.mr = !1, this.yr = null, this.br = null, this.wr = null, this.featureFlags = new $o(this), this.toolbar = new Ya(this), this.scrollManager = new qo(this), this.pageViewManager = new fo(this), this.surveys = new Do(this), this.experiments = new B(this), this.exceptions = new So(this), this.rateLimiter = new Mo(this), this.requestRouter = new Vo(this), this.consent = new qa(this), this.externalIntegrations = new Yo(this), this.people = { set: (e, t, i) => {
|
|
3631
|
+
})(this, e), this.__request_queue = [], this.__loaded = !1, this.analyticsDefaultEndpoint = "/e/", this.mr = !1, this.yr = null, this.br = null, this.wr = null, this.featureFlags = new $o(this), this.toolbar = new Ya(this), this.scrollManager = new qo(this), this.pageViewManager = new fo(this), this.surveys = new Do(this), this.experiments = new B(this), this.exceptions = new So(this), this.rateLimiter = new Mo(this), this.requestRouter = new Vo(this), this.consent = new qa(this), this.externalIntegrations = new Yo(this), this.people = { set: (e, t, i) => {
|
|
3632
3632
|
var s = N(e) ? { [e]: t } : e;
|
|
3633
3633
|
this.setPersonProperties(s), i == null || i({});
|
|
3634
3634
|
}, set_once: (e, t, i) => {
|
|
3635
3635
|
var s = N(e) ? { [e]: t } : e;
|
|
3636
3636
|
this.setPersonProperties(void 0, s), i == null || i({});
|
|
3637
|
-
} }, this.on("eventCaptured", (e) => y.info('send "' + (e == null ? void 0 : e.event) + '"', e));
|
|
3637
|
+
} }, this.on("eventCaptured", ((e) => y.info('send "' + (e == null ? void 0 : e.event) + '"', e)));
|
|
3638
3638
|
}
|
|
3639
3639
|
init(e, t, i) {
|
|
3640
3640
|
if (i && i !== Xe) {
|
|
@@ -3651,25 +3651,25 @@ class oi {
|
|
|
3651
3651
|
var n = this.kr();
|
|
3652
3652
|
this.persistence = new xi(this.config, n), this.sessionPersistence = this.config.persistence === "sessionStorage" || this.config.persistence === "memory" ? this.persistence : new xi(w({}, this.config, { persistence: "sessionStorage" }), n);
|
|
3653
3653
|
var a = w({}, this.persistence.props), o = w({}, this.sessionPersistence.props);
|
|
3654
|
-
this.register({ $initialization_time: (/* @__PURE__ */ new Date()).toISOString() }), this.Pr = new Lo((x) => this.Tr(x), this.config.request_queue_config), this.Ir = new Uo(this), this.__request_queue = [];
|
|
3654
|
+
this.register({ $initialization_time: (/* @__PURE__ */ new Date()).toISOString() }), this.Pr = new Lo(((x) => this.Tr(x)), this.config.request_queue_config), this.Ir = new Uo(this), this.__request_queue = [];
|
|
3655
3655
|
var l = this.config.cookieless_mode === "always" || this.config.cookieless_mode === "on_reject" && this.consent.isExplicitlyOptedOut();
|
|
3656
|
-
if (l || (this.sessionManager = new ls(this), this.sessionPropsManager = new os(this, this.sessionManager, this.persistence)), this.config.__preview_deferred_init_extensions ? (y.info("Deferring extension initialization to improve startup performance"), setTimeout(() => {
|
|
3656
|
+
if (l || (this.sessionManager = new ls(this), this.sessionPropsManager = new os(this, this.sessionManager, this.persistence)), this.config.__preview_deferred_init_extensions ? (y.info("Deferring extension initialization to improve startup performance"), setTimeout((() => {
|
|
3657
3657
|
this.Rr(l);
|
|
3658
|
-
}, 0)) : (y.info("Initializing extensions synchronously"), this.Rr(l)), me.DEBUG = me.DEBUG || this.config.debug, me.DEBUG && y.info("Starting in debug mode", { this: this, config: t, thisC: w({}, this.config), p: a, s: o }), ((s = t.bootstrap) == null ? void 0 : s.distinctID) !== void 0) {
|
|
3658
|
+
}), 0)) : (y.info("Initializing extensions synchronously"), this.Rr(l)), me.DEBUG = me.DEBUG || this.config.debug, me.DEBUG && y.info("Starting in debug mode", { this: this, config: t, thisC: w({}, this.config), p: a, s: o }), ((s = t.bootstrap) == null ? void 0 : s.distinctID) !== void 0) {
|
|
3659
3659
|
var u, c, h = this.config.get_device_id(Fe()), g = (u = t.bootstrap) != null && u.isIdentifiedID ? h : t.bootstrap.distinctID;
|
|
3660
3660
|
this.persistence.set_property(ye, (c = t.bootstrap) != null && c.isIdentifiedID ? "identified" : "anonymous"), this.register({ distinct_id: t.bootstrap.distinctID, $device_id: g });
|
|
3661
3661
|
}
|
|
3662
3662
|
if (this.Cr()) {
|
|
3663
|
-
var p, f, _ = Object.keys(((p = t.bootstrap) == null ? void 0 : p.featureFlags) || {}).filter((x) => {
|
|
3663
|
+
var p, f, _ = Object.keys(((p = t.bootstrap) == null ? void 0 : p.featureFlags) || {}).filter(((x) => {
|
|
3664
3664
|
var $;
|
|
3665
3665
|
return !(($ = t.bootstrap) == null || ($ = $.featureFlags) == null || !$[x]);
|
|
3666
|
-
}).reduce((x, $) => {
|
|
3666
|
+
})).reduce(((x, $) => {
|
|
3667
3667
|
var P;
|
|
3668
3668
|
return x[$] = ((P = t.bootstrap) == null || (P = P.featureFlags) == null ? void 0 : P[$]) || !1, x;
|
|
3669
|
-
}, {}), b = Object.keys(((f = t.bootstrap) == null ? void 0 : f.featureFlagPayloads) || {}).filter((x) => _[x]).reduce((x, $) => {
|
|
3669
|
+
}), {}), b = Object.keys(((f = t.bootstrap) == null ? void 0 : f.featureFlagPayloads) || {}).filter(((x) => _[x])).reduce(((x, $) => {
|
|
3670
3670
|
var P, M;
|
|
3671
3671
|
return (P = t.bootstrap) != null && (P = P.featureFlagPayloads) != null && P[$] && (x[$] = (M = t.bootstrap) == null || (M = M.featureFlagPayloads) == null ? void 0 : M[$]), x;
|
|
3672
|
-
}, {});
|
|
3672
|
+
}), {});
|
|
3673
3673
|
this.featureFlags.receivedFeatureFlags({ featureFlags: _, featureFlagPayloads: b });
|
|
3674
3674
|
}
|
|
3675
3675
|
if (l) this.register_once({ distinct_id: ot, $device_id: null }, "");
|
|
@@ -3677,45 +3677,45 @@ class oi {
|
|
|
3677
3677
|
var E = this.config.get_device_id(Fe());
|
|
3678
3678
|
this.register_once({ distinct_id: E, $device_id: E }, ""), this.persistence.set_property(ye, "anonymous");
|
|
3679
3679
|
}
|
|
3680
|
-
return L(d, "onpagehide" in self ? "pagehide" : "unload", this._handle_unload.bind(this), { passive: !1 }), this.toolbar.maybeLoadToolbar(), t.segment ? Ga(this, () => this.Or()) : this.Or(), Te(this.config._onCapture) && this.config._onCapture !== Zi && (y.warn("onCapture is deprecated. Please use `before_send` instead"), this.on("eventCaptured", (x) => this.config._onCapture(x.event, x))), this.config.ip && y.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'), this;
|
|
3680
|
+
return L(d, "onpagehide" in self ? "pagehide" : "unload", this._handle_unload.bind(this), { passive: !1 }), this.toolbar.maybeLoadToolbar(), t.segment ? Ga(this, (() => this.Or())) : this.Or(), Te(this.config._onCapture) && this.config._onCapture !== Zi && (y.warn("onCapture is deprecated. Please use `before_send` instead"), this.on("eventCaptured", ((x) => this.config._onCapture(x.event, x)))), this.config.ip && y.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'), this;
|
|
3681
3681
|
}
|
|
3682
3682
|
Rr(e) {
|
|
3683
3683
|
var t = performance.now();
|
|
3684
3684
|
this.historyAutocapture = new Va(this), this.historyAutocapture.startIfEnabled();
|
|
3685
3685
|
var i = [];
|
|
3686
|
-
i.push(() => {
|
|
3686
|
+
i.push((() => {
|
|
3687
3687
|
new Ka(this).startIfEnabledOrStop();
|
|
3688
|
-
}), i.push(() => {
|
|
3688
|
+
})), i.push((() => {
|
|
3689
3689
|
var s;
|
|
3690
3690
|
this.siteApps = new Ho(this), (s = this.siteApps) == null || s.init();
|
|
3691
|
-
}), e || i.push(() => {
|
|
3691
|
+
})), e || i.push((() => {
|
|
3692
3692
|
this.sessionRecording = new us(this), this.sessionRecording.startIfEnabledOrStop();
|
|
3693
|
-
}), this.config.disable_scroll_properties || i.push(() => {
|
|
3693
|
+
})), this.config.disable_scroll_properties || i.push((() => {
|
|
3694
3694
|
this.scrollManager.startMeasuringScrollPosition();
|
|
3695
|
-
}), i.push(() => {
|
|
3695
|
+
})), i.push((() => {
|
|
3696
3696
|
this.autocapture = new Oa(this), this.autocapture.startIfEnabled();
|
|
3697
|
-
}), i.push(() => {
|
|
3697
|
+
})), i.push((() => {
|
|
3698
3698
|
this.surveys.loadIfEnabled();
|
|
3699
|
-
}), i.push(() => {
|
|
3699
|
+
})), i.push((() => {
|
|
3700
3700
|
this.heatmaps = new go(this), this.heatmaps.startIfEnabled();
|
|
3701
|
-
}), i.push(() => {
|
|
3701
|
+
})), i.push((() => {
|
|
3702
3702
|
this.webVitalsAutocapture = new ho(this);
|
|
3703
|
-
}), i.push(() => {
|
|
3703
|
+
})), i.push((() => {
|
|
3704
3704
|
this.exceptionObserver = new Ha(this), this.exceptionObserver.startIfEnabled();
|
|
3705
|
-
}), i.push(() => {
|
|
3705
|
+
})), i.push((() => {
|
|
3706
3706
|
this.deadClicksAutocapture = new Vs(this, Ba), this.deadClicksAutocapture.startIfEnabled();
|
|
3707
|
-
}), i.push(() => {
|
|
3707
|
+
})), i.push((() => {
|
|
3708
3708
|
if (this.Fr) {
|
|
3709
3709
|
var s = this.Fr;
|
|
3710
3710
|
this.Fr = void 0, this.fi(s);
|
|
3711
3711
|
}
|
|
3712
|
-
}), this.Mr(i, t);
|
|
3712
|
+
})), this.Mr(i, t);
|
|
3713
3713
|
}
|
|
3714
3714
|
Mr(e, t) {
|
|
3715
3715
|
for (; e.length > 0; ) {
|
|
3716
|
-
if (this.config.__preview_deferred_init_extensions && performance.now() - t >= 30 && e.length > 0) return void setTimeout(() => {
|
|
3716
|
+
if (this.config.__preview_deferred_init_extensions && performance.now() - t >= 30 && e.length > 0) return void setTimeout((() => {
|
|
3717
3717
|
this.Mr(e, t);
|
|
3718
|
-
}, 0);
|
|
3718
|
+
}), 0);
|
|
3719
3719
|
var i = e.shift();
|
|
3720
3720
|
if (i) try {
|
|
3721
3721
|
i();
|
|
@@ -3728,9 +3728,9 @@ class oi {
|
|
|
3728
3728
|
}
|
|
3729
3729
|
fi(e) {
|
|
3730
3730
|
var t, i, s, n, a, o, l, u;
|
|
3731
|
-
if (!m || !m.body) return y.info("document not ready yet, trying again in 500 milliseconds..."), void setTimeout(() => {
|
|
3731
|
+
if (!m || !m.body) return y.info("document not ready yet, trying again in 500 milliseconds..."), void setTimeout((() => {
|
|
3732
3732
|
this.fi(e);
|
|
3733
|
-
}, 500);
|
|
3733
|
+
}), 500);
|
|
3734
3734
|
this.config.__preview_deferred_init_extensions && (this.Fr = e), this.compression = void 0, e.supportedCompression && !this.config.disable_compression && (this.compression = S(e.supportedCompression, we.GZipJS) ? we.GZipJS : S(e.supportedCompression, we.Base64) ? we.Base64 : void 0), (t = e.analytics) != null && t.endpoint && (this.analyticsDefaultEndpoint = e.analytics.endpoint), this.set_config({ person_profiles: this.br ? this.br : "identified_only" }), (i = this.siteApps) == null || i.onRemoteConfig(e), (s = this.sessionRecording) == null || s.onRemoteConfig(e), (n = this.autocapture) == null || n.onRemoteConfig(e), (a = this.heatmaps) == null || a.onRemoteConfig(e), this.surveys.onRemoteConfig(e), (o = this.webVitalsAutocapture) == null || o.onRemoteConfig(e), (l = this.exceptionObserver) == null || l.onRemoteConfig(e), this.exceptions.onRemoteConfig(e), (u = this.deadClicksAutocapture) == null || u.onRemoteConfig(e);
|
|
3735
3735
|
}
|
|
3736
3736
|
Or() {
|
|
@@ -3739,16 +3739,16 @@ class oi {
|
|
|
3739
3739
|
} catch (e) {
|
|
3740
3740
|
y.critical("`loaded` function failed", e);
|
|
3741
3741
|
}
|
|
3742
|
-
this.Ar(), this.config.capture_pageview && setTimeout(() => {
|
|
3742
|
+
this.Ar(), this.config.capture_pageview && setTimeout((() => {
|
|
3743
3743
|
(this.consent.isOptedIn() || this.config.cookieless_mode === "always") && this.Dr();
|
|
3744
|
-
}, 1), new Ao(this).load(), this.featureFlags.flags();
|
|
3744
|
+
}), 1), new Ao(this).load(), this.featureFlags.flags();
|
|
3745
3745
|
}
|
|
3746
3746
|
Ar() {
|
|
3747
3747
|
var e;
|
|
3748
3748
|
this.is_capturing() && this.config.request_batching && ((e = this.Pr) == null || e.enable());
|
|
3749
3749
|
}
|
|
3750
3750
|
_dom_loaded() {
|
|
3751
|
-
this.is_capturing() && Re(this.__request_queue, (e) => this.Tr(e)), this.__request_queue = [], this.Ar();
|
|
3751
|
+
this.is_capturing() && Re(this.__request_queue, ((e) => this.Tr(e))), this.__request_queue = [], this.Ar();
|
|
3752
3752
|
}
|
|
3753
3753
|
_handle_unload() {
|
|
3754
3754
|
var e, t;
|
|
@@ -3758,7 +3758,7 @@ class oi {
|
|
|
3758
3758
|
this.__loaded && (Sn ? this.__request_queue.push(e) : this.rateLimiter.isServerRateLimited(e.batchKey) || (e.transport = e.transport || this.config.api_transport, e.url = ri(e.url, { ip: this.config.ip ? 1 : 0 }), e.headers = w({}, this.config.request_headers), e.compression = e.compression === "best-available" ? this.compression : e.compression, e.disableXHRCredentials = this.config.__preview_disable_xhr_credentials, this.config.__preview_disable_beacon && (e.disableTransport = ["sendBeacon"]), e.fetchOptions = e.fetchOptions || this.config.fetch_options, ((t) => {
|
|
3759
3759
|
var i, s, n, a = w({}, t);
|
|
3760
3760
|
a.timeout = a.timeout || 6e4, a.url = ri(a.url, { _: (/* @__PURE__ */ new Date()).getTime().toString(), ver: me.LIB_VERSION, compression: a.compression });
|
|
3761
|
-
var o = (i = a.transport) !== null && i !== void 0 ? i : "fetch", l = Ut.filter((c) => !a.disableTransport || !c.transport || !a.disableTransport.includes(c.transport)), u = (s = (n = Ss(l, (c) => c.transport === o)) == null ? void 0 : n.method) !== null && s !== void 0 ? s : l[0].method;
|
|
3761
|
+
var o = (i = a.transport) !== null && i !== void 0 ? i : "fetch", l = Ut.filter(((c) => !a.disableTransport || !c.transport || !a.disableTransport.includes(c.transport))), u = (s = (n = Ss(l, ((c) => c.transport === o))) == null ? void 0 : n.method) !== null && s !== void 0 ? s : l[0].method;
|
|
3762
3762
|
if (!u) throw new Error("No available transport method");
|
|
3763
3763
|
u(a);
|
|
3764
3764
|
})(w({}, e, { callback: (t) => {
|
|
@@ -3771,18 +3771,18 @@ class oi {
|
|
|
3771
3771
|
}
|
|
3772
3772
|
_execute_array(e) {
|
|
3773
3773
|
var t, i = [], s = [], n = [];
|
|
3774
|
-
Re(e, (o) => {
|
|
3774
|
+
Re(e, ((o) => {
|
|
3775
3775
|
o && (t = o[0], T(t) ? n.push(o) : Te(o) ? o.call(this) : T(o) && t === "alias" ? i.push(o) : T(o) && t.indexOf("capture") !== -1 && Te(this[t]) ? n.push(o) : s.push(o));
|
|
3776
|
-
});
|
|
3776
|
+
}));
|
|
3777
3777
|
var a = function(o, l) {
|
|
3778
|
-
Re(o, function(u) {
|
|
3778
|
+
Re(o, (function(u) {
|
|
3779
3779
|
if (T(u[0])) {
|
|
3780
3780
|
var c = l;
|
|
3781
|
-
F(u, function(h) {
|
|
3781
|
+
F(u, (function(h) {
|
|
3782
3782
|
c = c[h[0]].apply(c, h.slice(1));
|
|
3783
|
-
});
|
|
3783
|
+
}));
|
|
3784
3784
|
} else this[u[0]].apply(this, u.slice(1));
|
|
3785
|
-
}, l);
|
|
3785
|
+
}), l);
|
|
3786
3786
|
};
|
|
3787
3787
|
a(i, this), a(s, this), a(n, this);
|
|
3788
3788
|
}
|
|
@@ -3825,7 +3825,7 @@ class oi {
|
|
|
3825
3825
|
} else y.uninitializedWarning("posthog.capture");
|
|
3826
3826
|
}
|
|
3827
3827
|
Mi(e) {
|
|
3828
|
-
return this.on("eventCaptured", (t) => e(t.event, t));
|
|
3828
|
+
return this.on("eventCaptured", ((t) => e(t.event, t)));
|
|
3829
3829
|
}
|
|
3830
3830
|
calculateEventProperties(e, t, i, s, n) {
|
|
3831
3831
|
if (i = i || /* @__PURE__ */ new Date(), !this.persistence || !this.sessionPersistence) return t;
|
|
@@ -3850,9 +3850,9 @@ class oi {
|
|
|
3850
3850
|
var f = i.getTime() - a;
|
|
3851
3851
|
o.$duration = parseFloat((f / 1e3).toFixed(3));
|
|
3852
3852
|
}
|
|
3853
|
-
W && this.config.opt_out_useragent_filter && (o.$browser_type = this._is_bot() ? "bot" : "browser"), (o = A({}, c, this.persistence.properties(), this.sessionPersistence.properties(), o)).$is_identified = this._isIdentified(), T(this.config.property_denylist) ? F(this.config.property_denylist, function(E) {
|
|
3853
|
+
W && this.config.opt_out_useragent_filter && (o.$browser_type = this._is_bot() ? "bot" : "browser"), (o = A({}, c, this.persistence.properties(), this.sessionPersistence.properties(), o)).$is_identified = this._isIdentified(), T(this.config.property_denylist) ? F(this.config.property_denylist, (function(E) {
|
|
3854
3854
|
delete o[E];
|
|
3855
|
-
}) : y.error("Invalid value for property_denylist config: " + this.config.property_denylist + " or property_blacklist config: " + this.config.property_blacklist);
|
|
3855
|
+
})) : y.error("Invalid value for property_denylist config: " + this.config.property_denylist + " or property_blacklist config: " + this.config.property_blacklist);
|
|
3856
3856
|
var _ = this.config.sanitize_properties;
|
|
3857
3857
|
_ && (y.error("sanitize_properties is deprecated. Use before_send instead"), o = _(o, e));
|
|
3858
3858
|
var b = this.Ur();
|
|
@@ -4163,14 +4163,14 @@ class oi {
|
|
|
4163
4163
|
for (var t = 0; t < e.length; t++) r.prototype[e[t]] = ga(r.prototype[e[t]]);
|
|
4164
4164
|
})(oi, ["identify"]);
|
|
4165
4165
|
var ps;
|
|
4166
|
-
ps = Et[Xe] = new oi(), function() {
|
|
4166
|
+
ps = Et[Xe] = new oi(), (function() {
|
|
4167
4167
|
function r() {
|
|
4168
|
-
r.done || (r.done = !0, Sn = !1, F(Et, function(e) {
|
|
4168
|
+
r.done || (r.done = !0, Sn = !1, F(Et, (function(e) {
|
|
4169
4169
|
e._dom_loaded();
|
|
4170
|
-
}));
|
|
4170
|
+
})));
|
|
4171
4171
|
}
|
|
4172
4172
|
m != null && m.addEventListener ? m.readyState === "complete" ? r() : L(m, "DOMContentLoaded", r, { capture: !1 }) : d && y.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized");
|
|
4173
|
-
}();
|
|
4173
|
+
})();
|
|
4174
4174
|
var gs;
|
|
4175
4175
|
(function(r) {
|
|
4176
4176
|
r.USER_ADDED_TO_CART = "user_added_to_cart", r.USER_SUBMITTED_CHECKOUT = "user_submitted_checkout";
|
|
@@ -4193,7 +4193,7 @@ const Ko = { class: "dialog-block-header-container" }, Jo = { class: "dialog-blo
|
|
|
4193
4193
|
for (const [i, s] of e)
|
|
4194
4194
|
t[i] = s;
|
|
4195
4195
|
return t;
|
|
4196
|
-
}, el = /* @__PURE__ */ at(Qo, [["__scopeId", "data-v-
|
|
4196
|
+
}, el = /* @__PURE__ */ at(Qo, [["__scopeId", "data-v-28e6dda7"]]), tl = {
|
|
4197
4197
|
width: "20",
|
|
4198
4198
|
height: "20",
|
|
4199
4199
|
viewBox: "0 0 20 20",
|
|
@@ -4283,7 +4283,7 @@ const Ko = { class: "dialog-block-header-container" }, Jo = { class: "dialog-blo
|
|
|
4283
4283
|
H("span", ol, Ci(n.question), 1)
|
|
4284
4284
|
], 8, al))), 128));
|
|
4285
4285
|
}
|
|
4286
|
-
}), cl = /* @__PURE__ */ at(ll, [["__scopeId", "data-v-
|
|
4286
|
+
}), cl = /* @__PURE__ */ at(ll, [["__scopeId", "data-v-fb1910ce"]]), ul = {};
|
|
4287
4287
|
function hl(r, e) {
|
|
4288
4288
|
return ie(), Me(fs, null, [
|
|
4289
4289
|
e[0] || (e[0] = H("div", { class: "dialog-block-suggestions-skeleton-item" }, null, -1)),
|
|
@@ -4314,7 +4314,7 @@ const dl = /* @__PURE__ */ at(ul, [["render", hl], ["__scopeId", "data-v-26a64b5
|
|
|
4314
4314
|
}, null, 8, ["client", "questions", "product-id", "product-title", "selected-variant-id"]))
|
|
4315
4315
|
]));
|
|
4316
4316
|
}
|
|
4317
|
-
}), fl = /* @__PURE__ */ at(gl, [["__scopeId", "data-v-
|
|
4317
|
+
}), fl = /* @__PURE__ */ at(gl, [["__scopeId", "data-v-18c9e78b"]]), _l = {
|
|
4318
4318
|
width: "20",
|
|
4319
4319
|
height: "20",
|
|
4320
4320
|
viewBox: "0 0 20 20",
|
|
@@ -4387,7 +4387,7 @@ const dl = /* @__PURE__ */ at(ul, [["render", hl], ["__scopeId", "data-v-26a64b5
|
|
|
4387
4387
|
], 8, bl)
|
|
4388
4388
|
]));
|
|
4389
4389
|
}
|
|
4390
|
-
}), El = /* @__PURE__ */ at(wl, [["__scopeId", "data-v-
|
|
4390
|
+
}), El = /* @__PURE__ */ at(wl, [["__scopeId", "data-v-7649af7c"]]), kl = /* @__PURE__ */ Ae({
|
|
4391
4391
|
__name: "ThemeProvider",
|
|
4392
4392
|
props: {
|
|
4393
4393
|
theme: {}
|
|
@@ -4498,7 +4498,7 @@ const dl = /* @__PURE__ */ at(ul, [["render", hl], ["__scopeId", "data-v-26a64b5
|
|
|
4498
4498
|
_: 1
|
|
4499
4499
|
}, 8, ["theme"]));
|
|
4500
4500
|
}
|
|
4501
|
-
}), Cl = /* @__PURE__ */ at(Sl, [["__scopeId", "data-v-
|
|
4501
|
+
}), Cl = /* @__PURE__ */ at(Sl, [["__scopeId", "data-v-946a36fd"]]);
|
|
4502
4502
|
export {
|
|
4503
4503
|
El as DialogInput,
|
|
4504
4504
|
Cl as DialogProductBlock
|