@askdialog/dialog-vue 2.0.1 → 3.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.
@@ -1,13 +1,14 @@
1
- import { defineComponent as Ae, createElementBlock as Me, openBlock as ie, createElementVNode as H, toDisplayString as Ci, Fragment as fs, renderList as Fn, createVNode as Bt, createBlock as Ht, ref as wt, withDirectives as Tn, withKeys as On, vModelText as Rn, onMounted as Dn, watch as _s, renderSlot as Mn, computed as ui, withCtx as An, createCommentVNode as Ln } from "vue";
2
- var gr;
1
+ import { defineComponent as Me, createElementBlock as De, openBlock as ie, createElementVNode as H, toDisplayString as Ii, Fragment as fs, renderList as Tn, createVNode as Bt, createBlock as Ht, ref as wt, withDirectives as Fn, withKeys as On, vModelText as Rn, onMounted as An, watch as _s, renderSlot as Dn, computed as hi, withCtx as Mn, createCommentVNode as Ln } from "vue";
2
+ var Vt;
3
3
  (function(r) {
4
- r.OPEN_ASSISTANT = "open_assistant", r.CLOSE_ASSISTANT = "close_assistant", r.SEND_MESSAGE = "PRODUCT_QUESTION", r.SEND_GENERIC_QUESTION = "GENERIC_QUESTION";
5
- })(gr || (gr = {}));
4
+ r.OPEN_ASSISTANT = "open_assistant", r.CLOSE_ASSISTANT = "close_assistant", r.SEND_MESSAGE = "PRODUCT_QUESTION", r.SEND_GENERIC_QUESTION = "GENERIC_QUESTION", r.TRACK_ADD_TO_CART = "TRACK_ADD_TO_CART", r.TRACK_SUBMIT_CHECKOUT = "TRACK_SUBMIT_CHECKOUT";
5
+ })(Vt || (Vt = {}));
6
6
  var fr;
7
7
  (function(r) {
8
8
  r.USER_OPENED_ASSISTANT = "userOpenedAssistant", r.USER_CLOSED_ASSISTANT = "userClosedAssistant", r.USER_SENT_MESSAGE = "userSentMessage", r.USER_CLICKED_ON_PRODUCT_CARD = "userClickedOnProductCard", r.USER_OPENED_RECOMMENDATION = "userOpenedRecommendation", r.USER_ADDED_TO_CART = "userAddedToCart", r.USER_SEND_POSITIVE_FEEDBACK = "userSendPositiveFeedback", r.USER_SEND_NEGATIVE_FEEDBACK = "userSendNegativeFeedback";
9
9
  })(fr || (fr = {}));
10
- var d = typeof window < "u" ? window : void 0, Y = typeof globalThis < "u" ? globalThis : d, vs = Array.prototype, _r = vs.forEach, vr = vs.indexOf, Q = Y == null ? void 0 : Y.navigator, m = Y == null ? void 0 : Y.document, z = Y == null ? void 0 : Y.location, $i = Y == null ? void 0 : Y.fetch, Ii = Y != null && Y.XMLHttpRequest && "withCredentials" in new Y.XMLHttpRequest() ? Y.XMLHttpRequest : void 0, mr = Y == null ? void 0 : Y.AbortController, W = Q == null ? void 0 : Q.userAgent, k = d ?? {}, me = { DEBUG: !1, LIB_VERSION: "1.293.0" };
10
+ Vt.TRACK_ADD_TO_CART, Vt.TRACK_SUBMIT_CHECKOUT;
11
+ var d = typeof window < "u" ? window : void 0, Y = typeof globalThis < "u" ? globalThis : d, vs = Array.prototype, _r = vs.forEach, vr = vs.indexOf, Q = Y == null ? void 0 : Y.navigator, m = Y == null ? void 0 : Y.document, z = Y == null ? void 0 : Y.location, $i = Y == null ? void 0 : Y.fetch, Ti = Y != null && Y.XMLHttpRequest && "withCredentials" in new Y.XMLHttpRequest() ? Y.XMLHttpRequest : void 0, mr = Y == null ? void 0 : Y.AbortController, W = Q == null ? void 0 : Q.userAgent, k = d ?? {}, me = { DEBUG: !1, LIB_VERSION: "1.293.0" };
11
12
  function yr(r, e, t, i, s, n, a) {
12
13
  try {
13
14
  var o = r[n](a), l = o.value;
@@ -60,23 +61,23 @@ var Nn = ["amazonbot", "amazonproductbot", "app.hypefactors.com", "applebot", "a
60
61
  function S(r, e) {
61
62
  return r.indexOf(e) !== -1;
62
63
  }
63
- var si = function(r) {
64
+ var ni = function(r) {
64
65
  return r.trim();
65
66
  }, Fi = function(r) {
66
67
  return r.replace(/^\$/, "");
67
- }, qn = Array.isArray, ys = Object.prototype, bs = ys.hasOwnProperty, ni = ys.toString, T = qn || function(r) {
68
- return ni.call(r) === "[object Array]";
69
- }, Te = (r) => typeof r == "function", j = (r) => r === Object(r) && !T(r), Ke = (r) => {
68
+ }, qn = Array.isArray, ys = Object.prototype, bs = ys.hasOwnProperty, ai = ys.toString, F = qn || function(r) {
69
+ return ai.call(r) === "[object Array]";
70
+ }, Fe = (r) => typeof r == "function", j = (r) => r === Object(r) && !F(r), Xe = (r) => {
70
71
  if (j(r)) {
71
72
  for (var e in r) if (bs.call(r, e)) return !1;
72
73
  return !0;
73
74
  }
74
75
  return !1;
75
- }, v = (r) => r === void 0, N = (r) => ni.call(r) == "[object String]", Ti = (r) => N(r) && r.trim().length === 0, Ee = (r) => r === null, O = (r) => v(r) || Ee(r), fe = (r) => ni.call(r) == "[object Number]", Oe = (r) => ni.call(r) === "[object Boolean]", jn = (r) => r instanceof FormData, Bn = (r) => S(Un, r);
76
- function Oi(r) {
76
+ }, v = (r) => r === void 0, N = (r) => ai.call(r) == "[object String]", Oi = (r) => N(r) && r.trim().length === 0, Ee = (r) => r === null, O = (r) => v(r) || Ee(r), fe = (r) => ai.call(r) == "[object Number]", Oe = (r) => ai.call(r) === "[object Boolean]", jn = (r) => r instanceof FormData, Bn = (r) => S(Un, r);
77
+ function Ri(r) {
77
78
  return r === null || typeof r != "object";
78
79
  }
79
- function Vt(r, e) {
80
+ function Gt(r, e) {
80
81
  return Object.prototype.toString.call(r) === "[object " + e + "]";
81
82
  }
82
83
  function ws(r) {
@@ -88,7 +89,7 @@ function ws(r) {
88
89
  }
89
90
  })(r, Event);
90
91
  }
91
- var Hn = [!0, "true", 1, "1", "yes"], hi = (r) => S(Hn, r), Vn = [!1, "false", 0, "0", "no"];
92
+ var Hn = [!0, "true", 1, "1", "yes"], di = (r) => S(Hn, r), Vn = [!1, "false", 0, "0", "no"];
92
93
  function de(r, e, t, i, s) {
93
94
  return e > t && (i.warn("min cannot be greater than max."), e = t), fe(r) ? r > t ? (i.warn(" cannot be greater than max: " + t + ". Using max value instead."), t) : r < e ? (i.warn(" cannot be less than min: " + e + ". Using min value instead."), e) : r : (i.warn(" must be a number. using max or fallback. max: " + t + ", fallback: " + s), de(s || t, e, t, i));
94
95
  }
@@ -111,12 +112,12 @@ class Gn {
111
112
  this.t = {};
112
113
  }
113
114
  }
114
- var Ot, Er, di, Wn = (r) => r instanceof Error;
115
+ var Ot, Er, pi, Wn = (r) => r instanceof Error;
115
116
  function zn(r) {
116
117
  var e = globalThis._posthogChunkIds;
117
118
  if (e) {
118
119
  var t = Object.keys(e);
119
- return di && t.length === Er || (Er = t.length, di = t.reduce(((i, s) => {
120
+ return pi && t.length === Er || (Er = t.length, pi = t.reduce(((i, s) => {
120
121
  Ot || (Ot = {});
121
122
  var n = Ot[s];
122
123
  if (n) i[n[0]] = n[1];
@@ -128,31 +129,31 @@ function zn(r) {
128
129
  }
129
130
  }
130
131
  return i;
131
- }), {})), di;
132
+ }), {})), pi;
132
133
  }
133
134
  }
134
135
  var et = "?";
135
- function Ri(r, e, t, i) {
136
+ function Ai(r, e, t, i) {
136
137
  var s = { platform: "web:javascript", filename: r, function: e === "<anonymous>" ? et : e, in_app: !0 };
137
138
  return v(t) || (s.lineno = t), v(i) || (s.colno = i), s;
138
139
  }
139
140
  var Es = (r, e) => {
140
141
  var t = r.indexOf("safari-extension") !== -1, i = r.indexOf("safari-web-extension") !== -1;
141
142
  return t || i ? [r.indexOf("@") !== -1 ? r.split("@")[0] : et, t ? "safari-extension:" + e : "safari-web-extension:" + e] : [r, e];
142
- }, Yn = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, Xn = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, Kn = /\((\S*)(?::(\d+))(?::(\d+))\)/, Jn = (r) => {
143
+ }, Yn = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, Kn = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, Xn = /\((\S*)(?::(\d+))(?::(\d+))\)/, Jn = (r) => {
143
144
  var e = Yn.exec(r);
144
145
  if (e) {
145
146
  var [, t, i, s] = e;
146
- return Ri(t, et, +i, +s);
147
+ return Ai(t, et, +i, +s);
147
148
  }
148
- var n = Xn.exec(r);
149
+ var n = Kn.exec(r);
149
150
  if (n) {
150
151
  if (n[2] && n[2].indexOf("eval") === 0) {
151
- var a = Kn.exec(n[2]);
152
+ var a = Xn.exec(n[2]);
152
153
  a && (n[2] = a[1], n[3] = a[2], n[4] = a[3]);
153
154
  }
154
155
  var [o, l] = Es(n[1] || et, n[2]);
155
- return Ri(l, o, n[3] ? +n[3] : void 0, n[4] ? +n[4] : void 0);
156
+ return Ai(l, o, n[3] ? +n[3] : void 0, n[4] ? +n[4] : void 0);
156
157
  }
157
158
  }, Zn = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i, Qn = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, ea = (r) => {
158
159
  var e = Zn.exec(r);
@@ -162,7 +163,7 @@ var Es = (r, e) => {
162
163
  t && (e[1] = e[1] || "eval", e[3] = t[1], e[4] = t[2], e[5] = "");
163
164
  }
164
165
  var i = e[3], s = e[1] || et;
165
- return [s, i] = Es(s, i), Ri(i, s, e[4] ? +e[4] : void 0, e[5] ? +e[5] : void 0);
166
+ return [s, i] = Es(s, i), Ai(i, s, e[4] ? +e[4] : void 0, e[5] ? +e[5] : void 0);
166
167
  }
167
168
  }, kr = /\(error: (.*)\)/, xr = 50;
168
169
  function ta() {
@@ -208,7 +209,7 @@ class ia {
208
209
  modifyFrames(e) {
209
210
  var t = this;
210
211
  return br((function* () {
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
+ for (var i of e) i.stacktrace && i.stacktrace.frames && F(i.stacktrace.frames) && (i.stacktrace.frames = yield t.applyModifiers(i.stacktrace.frames));
212
213
  return e;
213
214
  }))();
214
215
  }
@@ -271,10 +272,10 @@ class ra {
271
272
  return e.message ? t + ": " + e.message : t;
272
273
  }
273
274
  isDOMException(e) {
274
- return Vt(e, "DOMException");
275
+ return Gt(e, "DOMException");
275
276
  }
276
277
  isDOMError(e) {
277
- return Vt(e, "DOMError");
278
+ return Gt(e, "DOMError");
278
279
  }
279
280
  }
280
281
  class sa {
@@ -299,7 +300,7 @@ class na {
299
300
  constructor() {
300
301
  }
301
302
  match(e) {
302
- return Vt(e, "ErrorEvent") && e.error != null;
303
+ return Gt(e, "ErrorEvent") && e.error != null;
303
304
  }
304
305
  coerce(e, t) {
305
306
  var i, s = t.apply(e.error);
@@ -352,7 +353,7 @@ class ca {
352
353
  return (i && i !== "Object" ? "'" + i + "'" : "Object") + " captured as exception with keys: " + ks(e);
353
354
  }
354
355
  isSeverityLevel(e) {
355
- return N(e) && !Ti(e) && la.indexOf(e) >= 0;
356
+ return N(e) && !Oi(e) && la.indexOf(e) >= 0;
356
357
  }
357
358
  getErrorPropertyFromObject(e) {
358
359
  for (var t in e) if (Object.prototype.hasOwnProperty.call(e, t)) {
@@ -380,7 +381,7 @@ class ua {
380
381
  }
381
382
  class ha {
382
383
  match(e) {
383
- return Oi(e);
384
+ return Ri(e);
384
385
  }
385
386
  coerce(e, t) {
386
387
  var i;
@@ -389,14 +390,14 @@ class ha {
389
390
  }
390
391
  class da {
391
392
  match(e) {
392
- return Vt(e, "PromiseRejectionEvent");
393
+ return Gt(e, "PromiseRejectionEvent");
393
394
  }
394
395
  coerce(e, t) {
395
396
  var i, s = this.getUnhandledRejectionReason(e);
396
- return Oi(s) ? { type: "UnhandledRejection", value: "Non-Error promise rejection captured with value: " + String(s), stack: (i = t.syntheticException) == null ? void 0 : i.stack, synthetic: !0 } : t.apply(s);
397
+ return Ri(s) ? { type: "UnhandledRejection", value: "Non-Error promise rejection captured with value: " + String(s), stack: (i = t.syntheticException) == null ? void 0 : i.stack, synthetic: !0 } : t.apply(s);
397
398
  }
398
399
  getUnhandledRejectionReason(e) {
399
- if (Oi(e)) return e;
400
+ if (Ri(e)) return e;
400
401
  try {
401
402
  if ("reason" in e) return e.reason;
402
403
  if ("detail" in e && "reason" in e.detail) return e.detail.reason;
@@ -463,24 +464,24 @@ k.__PosthogExtensions__ = k.__PosthogExtensions__ || {}, k.__PosthogExtensions__
463
464
  var i = r.requestRouter.endpointFor("api", e);
464
465
  Sr(r, i, t);
465
466
  };
466
- var Gt = {};
467
+ var Wt = {};
467
468
  function Re(r, e, t) {
468
- if (T(r)) {
469
+ if (F(r)) {
469
470
  if (_r && r.forEach === _r) r.forEach(e, t);
470
471
  else if ("length" in r && r.length === +r.length) {
471
- for (var i = 0, s = r.length; i < s; i++) if (i in r && e.call(t, r[i], i) === Gt) return;
472
+ for (var i = 0, s = r.length; i < s; i++) if (i in r && e.call(t, r[i], i) === Wt) return;
472
473
  }
473
474
  }
474
475
  }
475
- function F(r, e, t) {
476
+ function T(r, e, t) {
476
477
  if (!O(r)) {
477
- if (T(r)) return Re(r, e, t);
478
+ if (F(r)) return Re(r, e, t);
478
479
  if (jn(r)) {
479
- for (var i of r.entries()) if (e.call(t, i[1], i[0]) === Gt) return;
480
- } else for (var s in r) if (bs.call(r, s) && e.call(t, r[s], s) === Gt) return;
480
+ for (var i of r.entries()) if (e.call(t, i[1], i[0]) === Wt) return;
481
+ } else for (var s in r) if (bs.call(r, s) && e.call(t, r[s], s) === Wt) return;
481
482
  }
482
483
  }
483
- var A = function(r) {
484
+ var M = function(r) {
484
485
  for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++) t[i - 1] = arguments[i];
485
486
  return Re(t, (function(s) {
486
487
  for (var n in s) s[n] !== void 0 && (r[n] = s[n]);
@@ -497,7 +498,7 @@ function Ut(r) {
497
498
  for (var e = Object.keys(r), t = e.length, i = new Array(t); t--; ) i[t] = [e[t], r[e[t]]];
498
499
  return i;
499
500
  }
500
- var Pr = function(r) {
501
+ var Cr = function(r) {
501
502
  try {
502
503
  return r();
503
504
  } catch {
@@ -512,17 +513,17 @@ var Pr = function(r) {
512
513
  y.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."), y.critical(s);
513
514
  }
514
515
  };
515
- }, Qi = function(r) {
516
+ }, er = function(r) {
516
517
  var e = {};
517
- return F(r, (function(t, i) {
518
+ return T(r, (function(t, i) {
518
519
  (N(t) && t.length > 0 || fe(t)) && (e[i] = t);
519
520
  })), e;
520
521
  };
521
522
  function fa(r, e) {
522
523
  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, ((c) => {
524
+ return a !== Object(a) ? i ? i(a, o) : a : s.has(a) ? void 0 : (s.add(a), F(a) ? (l = [], Re(a, ((c) => {
524
525
  l.push(n(c));
525
- }))) : (l = {}, F(a, ((c, u) => {
526
+ }))) : (l = {}, T(a, ((c, u) => {
526
527
  s.has(c) || (l[u] = n(c, u));
527
528
  }))), l);
528
529
  var l;
@@ -544,30 +545,30 @@ function L(r, e, t, i) {
544
545
  var { capture: s = !1, passive: n = !0 } = i ?? {};
545
546
  r == null || r.addEventListener(e, t, { capture: s, passive: n });
546
547
  }
547
- var Ps = "$people_distinct_id", gt = "__alias", ft = "__timers", Cr = "$autocapture_disabled_server_side", Di = "$heatmaps_enabled_server_side", $r = "$exception_capture_enabled_server_side", Mi = "$error_tracking_suppression_rules", Ir = "$error_tracking_capture_extension_exceptions", Fr = "$web_vitals_enabled_server_side", Cs = "$dead_clicks_enabled_server_side", Tr = "$web_vitals_allowed_metrics", pi = "$session_recording_remote_config", Wt = "$sesid", $s = "$session_is_sampled", Je = "$enabled_feature_flags", _t = "$early_access_features", Ai = "$feature_flag_details", vt = "$stored_person_properties", je = "$stored_group_properties", Li = "$surveys", Rt = "$surveys_activated", zt = "$flag_call_reported", ye = "$user_state", Ni = "$client_session_props", Ui = "$capture_rate_limit", qi = "$initial_campaign_params", ji = "$initial_referrer_info", Yt = "$initial_person_info", Xt = "$epp", Is = "__POSTHOG_TOOLBAR__", ot = "$posthog_cookieless", ma = [Ps, gt, "__cmpns", ft, "$session_recording_enabled_server_side", Di, Wt, Je, Mi, ye, _t, Ai, je, vt, Li, zt, Ni, Ui, qi, ji, Xt, Yt];
548
+ var Cs = "$people_distinct_id", gt = "__alias", ft = "__timers", Pr = "$autocapture_disabled_server_side", Di = "$heatmaps_enabled_server_side", Ir = "$exception_capture_enabled_server_side", Mi = "$error_tracking_suppression_rules", $r = "$error_tracking_capture_extension_exceptions", Tr = "$web_vitals_enabled_server_side", Ps = "$dead_clicks_enabled_server_side", Fr = "$web_vitals_allowed_metrics", gi = "$session_recording_remote_config", zt = "$sesid", Is = "$session_is_sampled", Je = "$enabled_feature_flags", _t = "$early_access_features", Li = "$feature_flag_details", vt = "$stored_person_properties", je = "$stored_group_properties", Ni = "$surveys", Rt = "$surveys_activated", Yt = "$flag_call_reported", ye = "$user_state", Ui = "$client_session_props", qi = "$capture_rate_limit", ji = "$initial_campaign_params", Bi = "$initial_referrer_info", Kt = "$initial_person_info", Xt = "$epp", $s = "__POSTHOG_TOOLBAR__", ot = "$posthog_cookieless", ma = [Cs, gt, "__cmpns", ft, "$session_recording_enabled_server_side", Di, zt, Je, Mi, ye, _t, Li, je, vt, Ni, Yt, Ui, qi, ji, Bi, Xt, Kt];
548
549
  function Or(r) {
549
- return r instanceof Element && (r.id === Is || !(r.closest == null || !r.closest(".toolbar-global-fade-container")));
550
+ return r instanceof Element && (r.id === $s || !(r.closest == null || !r.closest(".toolbar-global-fade-container")));
550
551
  }
551
- function ai(r) {
552
+ function oi(r) {
552
553
  return !!r && r.nodeType === 1;
553
554
  }
554
- function De(r, e) {
555
+ function Ae(r, e) {
555
556
  return !!r && !!r.tagName && r.tagName.toLowerCase() === e.toLowerCase();
556
557
  }
557
- function Fs(r) {
558
+ function Ts(r) {
558
559
  return !!r && r.nodeType === 3;
559
560
  }
560
- function Ts(r) {
561
+ function Fs(r) {
561
562
  return !!r && r.nodeType === 11;
562
563
  }
563
- function er(r) {
564
- return r ? si(r).split(/\s+/) : [];
564
+ function tr(r) {
565
+ return r ? ni(r).split(/\s+/) : [];
565
566
  }
566
567
  function Rr(r) {
567
568
  var e = d == null ? void 0 : d.location.href;
568
569
  return !!(e && r && r.some(((t) => e.match(t))));
569
570
  }
570
- function Kt(r) {
571
+ function Jt(r) {
571
572
  var e = "";
572
573
  switch (typeof r.className) {
573
574
  case "string":
@@ -579,24 +580,24 @@ function Kt(r) {
579
580
  default:
580
581
  e = "";
581
582
  }
582
- return er(e);
583
+ return tr(e);
583
584
  }
584
585
  function Os(r) {
585
- return O(r) ? null : si(r).split(/(\s+)/).filter(((e) => xt(e))).join("").replace(/[\r\n]/g, " ").replace(/[ ]+/g, " ").substring(0, 255);
586
+ return O(r) ? null : ni(r).split(/(\s+)/).filter(((e) => xt(e))).join("").replace(/[\r\n]/g, " ").replace(/[ ]+/g, " ").substring(0, 255);
586
587
  }
587
- function It(r) {
588
+ function $t(r) {
588
589
  var e = "";
589
- return Bi(r) && !Ls(r) && r.childNodes && r.childNodes.length && F(r.childNodes, (function(t) {
590
+ return Hi(r) && !Ls(r) && r.childNodes && r.childNodes.length && T(r.childNodes, (function(t) {
590
591
  var i;
591
- Fs(t) && t.textContent && (e += (i = Os(t.textContent)) !== null && i !== void 0 ? i : "");
592
- })), si(e);
592
+ Ts(t) && t.textContent && (e += (i = Os(t.textContent)) !== null && i !== void 0 ? i : "");
593
+ })), ni(e);
593
594
  }
594
595
  function Rs(r) {
595
596
  return v(r.target) ? r.srcElement || null : (e = r.target) != null && e.shadowRoot ? r.composedPath()[0] || null : r.target || null;
596
597
  var e;
597
598
  }
598
- var tr = ["a", "button", "form", "input", "select", "textarea", "label"];
599
- function Ds(r, e) {
599
+ var ir = ["a", "button", "form", "input", "select", "textarea", "label"];
600
+ function As(r, e) {
600
601
  if (v(e)) return !0;
601
602
  var t, i = function(n) {
602
603
  if (e.some(((a) => n.matches(a)))) return { v: !0 };
@@ -604,23 +605,23 @@ function Ds(r, e) {
604
605
  for (var s of r) if (t = i(s)) return t.v;
605
606
  return !1;
606
607
  }
607
- function Ms(r) {
608
+ function Ds(r) {
608
609
  var e = r.parentNode;
609
- return !(!e || !ai(e)) && e;
610
+ return !(!e || !oi(e)) && e;
610
611
  }
611
- var ya = ["next", "previous", "prev", ">", "<"], Dr = 10, Mr = [".ph-no-rageclick", ".ph-no-capture"];
612
+ var ya = ["next", "previous", "prev", ">", "<"], Ar = 10, Dr = [".ph-no-rageclick", ".ph-no-capture"];
612
613
  function ba(r, e) {
613
- if (!d || ir(r)) return !1;
614
+ if (!d || rr(r)) return !1;
614
615
  var t, i, s;
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
- var { targetElementList: n } = As(r, !1);
616
+ if (Oe(e) ? (t = !!e && Dr, i = void 0) : (t = (s = e == null ? void 0 : e.css_selector_ignorelist) !== null && s !== void 0 ? s : Dr, i = e == null ? void 0 : e.content_ignorelist), t === !1) return !1;
617
+ var { targetElementList: n } = Ms(r, !1);
617
618
  return !(function(a, o) {
618
619
  if (a === !1 || v(a)) return !1;
619
620
  var l;
620
621
  if (a === !0) l = ya;
621
622
  else {
622
- if (!T(a)) return !1;
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;
623
+ if (!F(a)) return !1;
624
+ if (a.length > Ar) return y.error("[PostHog] content_ignorelist array cannot exceed " + Ar + " items. Use css_selector_ignorelist for more complex matching."), !1;
624
625
  l = a.map(((c) => c.toLowerCase()));
625
626
  }
626
627
  return o.some(((c) => {
@@ -629,16 +630,16 @@ function ba(r, e) {
629
630
  }));
630
631
  })(i, n.map(((a) => {
631
632
  var o;
632
- return { safeText: It(a).toLowerCase(), ariaLabel: ((o = a.getAttribute("aria-label")) == null ? void 0 : o.toLowerCase().trim()) || "" };
633
- }))) && !Ds(n, t);
633
+ return { safeText: $t(a).toLowerCase(), ariaLabel: ((o = a.getAttribute("aria-label")) == null ? void 0 : o.toLowerCase().trim()) || "" };
634
+ }))) && !As(n, t);
634
635
  }
635
- var ir = (r) => !r || De(r, "html") || !ai(r), As = (r, e) => {
636
- if (!d || ir(r)) return { parentIsUsefulElement: !1, targetElementList: [] };
637
- for (var t = !1, i = [r], s = r; s.parentNode && !De(s, "body"); ) if (Ts(s.parentNode)) i.push(s.parentNode.host), s = s.parentNode.host;
636
+ var rr = (r) => !r || Ae(r, "html") || !oi(r), Ms = (r, e) => {
637
+ if (!d || rr(r)) return { parentIsUsefulElement: !1, targetElementList: [] };
638
+ for (var t = !1, i = [r], s = r; s.parentNode && !Ae(s, "body"); ) if (Fs(s.parentNode)) i.push(s.parentNode.host), s = s.parentNode.host;
638
639
  else {
639
- var n = Ms(s);
640
+ var n = Ds(s);
640
641
  if (!n) break;
641
- if (e || tr.indexOf(n.tagName.toLowerCase()) > -1) t = !0;
642
+ if (e || ir.indexOf(n.tagName.toLowerCase()) > -1) t = !0;
642
643
  else {
643
644
  var a = d.getComputedStyle(n);
644
645
  a && a.getPropertyValue("cursor") === "pointer" && (t = !0);
@@ -649,21 +650,21 @@ var ir = (r) => !r || De(r, "html") || !ai(r), As = (r, e) => {
649
650
  };
650
651
  function wa(r, e, t, i, s) {
651
652
  var n, a, o, l;
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
+ if (t === void 0 && (t = void 0), !d || rr(r) || (n = t) != null && n.url_allowlist && !Rr(t.url_allowlist) || (a = t) != null && a.url_ignorelist && Rr(t.url_ignorelist)) return !1;
653
654
  if ((o = t) != null && o.dom_event_allowlist) {
654
655
  var c = t.dom_event_allowlist;
655
656
  if (c && !c.some(((f) => e.type === f))) return !1;
656
657
  }
657
- var { parentIsUsefulElement: u, targetElementList: h } = As(r, i);
658
+ var { parentIsUsefulElement: u, targetElementList: h } = Ms(r, i);
658
659
  if (!(function(f, _) {
659
660
  var b = _ == null ? void 0 : _.element_allowlist;
660
661
  if (v(b)) return !0;
661
- var E, x = function(P) {
662
- if (b.some(((M) => P.tagName.toLowerCase() === M))) return { v: !0 };
662
+ var E, x = function(C) {
663
+ if (b.some(((D) => C.tagName.toLowerCase() === D))) return { v: !0 };
663
664
  };
664
- for (var $ of f) if (E = x($)) return E.v;
665
+ for (var I of f) if (E = x(I)) return E.v;
665
666
  return !1;
666
- })(h, t) || !Ds(h, (l = t) == null ? void 0 : l.css_selector_allowlist)) return !1;
667
+ })(h, t) || !As(h, (l = t) == null ? void 0 : l.css_selector_allowlist)) return !1;
667
668
  var g = d.getComputedStyle(r);
668
669
  if (g && g.getPropertyValue("cursor") === "pointer" && e.type === "click") return !0;
669
670
  var p = r.tagName.toLowerCase();
@@ -677,15 +678,15 @@ function wa(r, e, t, i, s) {
677
678
  case "textarea":
678
679
  return (s || ["change", "click"]).indexOf(e.type) >= 0;
679
680
  default:
680
- return u ? (s || ["click"]).indexOf(e.type) >= 0 : (s || ["click"]).indexOf(e.type) >= 0 && (tr.indexOf(p) > -1 || r.getAttribute("contenteditable") === "true");
681
+ return u ? (s || ["click"]).indexOf(e.type) >= 0 : (s || ["click"]).indexOf(e.type) >= 0 && (ir.indexOf(p) > -1 || r.getAttribute("contenteditable") === "true");
681
682
  }
682
683
  }
683
- function Bi(r) {
684
- for (var e = r; e.parentNode && !De(e, "body"); e = e.parentNode) {
685
- var t = Kt(e);
684
+ function Hi(r) {
685
+ for (var e = r; e.parentNode && !Ae(e, "body"); e = e.parentNode) {
686
+ var t = Jt(e);
686
687
  if (S(t, "ph-sensitive") || S(t, "ph-no-capture")) return !1;
687
688
  }
688
- if (S(Kt(r), "ph-include")) return !0;
689
+ if (S(Jt(r), "ph-include")) return !0;
689
690
  var i = r.type || "";
690
691
  if (N(i)) switch (i.toLowerCase()) {
691
692
  case "hidden":
@@ -696,29 +697,29 @@ function Bi(r) {
696
697
  return !(N(s) && /^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(s.replace(/[^a-zA-Z0-9]/g, "")));
697
698
  }
698
699
  function Ls(r) {
699
- return !!(De(r, "input") && !["button", "checkbox", "submit", "reset"].includes(r.type) || De(r, "select") || De(r, "textarea") || r.getAttribute("contenteditable") === "true");
700
+ return !!(Ae(r, "input") && !["button", "checkbox", "submit", "reset"].includes(r.type) || Ae(r, "select") || Ae(r, "textarea") || r.getAttribute("contenteditable") === "true");
700
701
  }
701
702
  var Ns = "(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})", Ea = new RegExp("^(?:" + Ns + ")$"), ka = new RegExp(Ns), Us = "\\d{3}-?\\d{2}-?\\d{4}", xa = new RegExp("^(" + Us + ")$"), Sa = new RegExp("(" + Us + ")");
702
703
  function xt(r, e) {
703
- return e === void 0 && (e = !0), !(O(r) || N(r) && (r = si(r), (e ? Ea : ka).test((r || "").replace(/[- ]/g, "")) || (e ? xa : Sa).test(r)));
704
+ return e === void 0 && (e = !0), !(O(r) || N(r) && (r = ni(r), (e ? Ea : ka).test((r || "").replace(/[- ]/g, "")) || (e ? xa : Sa).test(r)));
704
705
  }
705
706
  function qs(r) {
706
- var e = It(r);
707
+ var e = $t(r);
707
708
  return xt(e = (e + " " + js(r)).trim()) ? e : "";
708
709
  }
709
710
  function js(r) {
710
711
  var e = "";
711
- return r && r.childNodes && r.childNodes.length && F(r.childNodes, (function(t) {
712
+ return r && r.childNodes && r.childNodes.length && T(r.childNodes, (function(t) {
712
713
  var i;
713
714
  if (t && ((i = t.tagName) == null ? void 0 : i.toLowerCase()) === "span") try {
714
- var s = It(t);
715
+ var s = $t(t);
715
716
  e = (e + " " + s).trim(), t.childNodes && t.childNodes.length && (e = (e + " " + js(t)).trim());
716
717
  } catch (n) {
717
718
  y.error("[AutoCapture]", n);
718
719
  }
719
720
  })), e;
720
721
  }
721
- function Pa(r) {
722
+ function Ca(r) {
722
723
  return (function(e) {
723
724
  var t = e.map(((i) => {
724
725
  var s, n, a = "";
@@ -729,7 +730,7 @@ function Pa(r) {
729
730
  return g.localeCompare(p);
730
731
  })).forEach(((u) => {
731
732
  var [h, g] = u;
732
- return c[Ar(h.toString())] = Ar(g.toString());
733
+ return c[Mr(h.toString())] = Mr(g.toString());
733
734
  })), a += ":", a += Ut(c).map(((u) => {
734
735
  var [h, g] = u;
735
736
  return h + '="' + g + '"';
@@ -738,7 +739,7 @@ function Pa(r) {
738
739
  return t.join(";");
739
740
  })((function(e) {
740
741
  return e.map(((t) => {
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
+ 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: Pa(t), attr_id: t.attr__id, nth_child: t.nth_child, nth_of_type: t.nth_of_type, attributes: {} };
742
743
  return Ut(t).filter(((a) => {
743
744
  var [o] = a;
744
745
  return o.indexOf("attr__") === 0;
@@ -749,12 +750,12 @@ function Pa(r) {
749
750
  }));
750
751
  })(r));
751
752
  }
752
- function Ar(r) {
753
+ function Mr(r) {
753
754
  return r.replace(/"|\\"/g, '\\"');
754
755
  }
755
- function Ca(r) {
756
+ function Pa(r) {
756
757
  var e = r.attr__class;
757
- return e ? T(e) ? e : er(e) : void 0;
758
+ return e ? F(e) ? e : tr(e) : void 0;
758
759
  }
759
760
  class Bs {
760
761
  constructor(e) {
@@ -771,19 +772,19 @@ class Bs {
771
772
  return !1;
772
773
  }
773
774
  }
774
- var gi = "$copy_autocapture", we = (function(r) {
775
+ var fi = "$copy_autocapture", we = (function(r) {
775
776
  return r.GZipJS = "gzip-js", r.Base64 = "base64", r;
776
- })({}), Jt = (r) => {
777
+ })({}), Zt = (r) => {
777
778
  var e = m == null ? void 0 : m.createElement("a");
778
779
  return v(e) ? null : (e.href = r, e);
779
- }, $a = function(r, e) {
780
+ }, Ia = function(r, e) {
780
781
  var t, i;
781
782
  e === void 0 && (e = "&");
782
783
  var s = [];
783
- return F(r, (function(n, a) {
784
+ return T(r, (function(n, a) {
784
785
  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
786
  })), s.join(e);
786
- }, Zt = function(r, e) {
787
+ }, Qt = function(r, e) {
787
788
  for (var t, i = ((r.split("#")[0] || "").split(/\?(.*)/)[1] || "").replace(/^\?+/g, "").split("&"), s = 0; s < i.length; s++) {
788
789
  var n = i[s].split("=");
789
790
  if (n[0] === e) {
@@ -791,7 +792,7 @@ var gi = "$copy_autocapture", we = (function(r) {
791
792
  break;
792
793
  }
793
794
  }
794
- if (!T(t) || t.length < 2) return "";
795
+ if (!F(t) || t.length < 2) return "";
795
796
  var a = t[1];
796
797
  try {
797
798
  a = decodeURIComponent(a);
@@ -799,70 +800,70 @@ var gi = "$copy_autocapture", we = (function(r) {
799
800
  y.error("Skipping decoding for malformed query param: " + a);
800
801
  }
801
802
  return a.replace(/\+/g, " ");
802
- }, Ft = function(r, e, t) {
803
+ }, Tt = function(r, e, t) {
803
804
  if (!r || !e || !e.length) return r;
804
805
  for (var i = r.split("#"), s = i[0] || "", n = i[1], a = s.split("?"), o = a[1], l = a[0], c = (o || "").split("&"), u = [], h = 0; h < c.length; h++) {
805
806
  var g = c[h].split("=");
806
- T(g) && (e.includes(g[0]) ? u.push(g[0] + "=" + t) : u.push(c[h]));
807
+ F(g) && (e.includes(g[0]) ? u.push(g[0] + "=" + t) : u.push(c[h]));
807
808
  }
808
809
  var p = l;
809
810
  return o != null && (p += "?" + u.join("&")), n != null && (p += "#" + n), p;
810
- }, Qt = function(r, e) {
811
+ }, ei = function(r, e) {
811
812
  var t = r.match(new RegExp(e + "=([^&]*)"));
812
813
  return t ? t[1] : null;
813
814
  }, Lr = U("[AutoCapture]");
814
- function fi(r, e) {
815
+ function _i(r, e) {
815
816
  return e.length > r ? e.slice(0, r) + "..." : e;
816
817
  }
817
- function Ia(r) {
818
+ function $a(r) {
818
819
  if (r.previousElementSibling) return r.previousElementSibling;
819
820
  var e = r;
820
821
  do
821
822
  e = e.previousSibling;
822
- while (e && !ai(e));
823
+ while (e && !oi(e));
823
824
  return e;
824
825
  }
825
- function Fa(r, e, t, i) {
826
+ function Ta(r, e, t, i) {
826
827
  var s = r.tagName.toLowerCase(), n = { tag_name: s };
827
- tr.indexOf(s) > -1 && !t && (s.toLowerCase() === "a" || s.toLowerCase() === "button" ? n.$el_text = fi(1024, qs(r)) : n.$el_text = fi(1024, It(r)));
828
- var a = Kt(r);
828
+ ir.indexOf(s) > -1 && !t && (s.toLowerCase() === "a" || s.toLowerCase() === "button" ? n.$el_text = _i(1024, qs(r)) : n.$el_text = _i(1024, $t(r)));
829
+ var a = Jt(r);
829
830
  a.length > 0 && (n.classes = a.filter((function(u) {
830
831
  return u !== "";
831
- }))), F(r.attributes, (function(u) {
832
+ }))), T(r.attributes, (function(u) {
832
833
  var h;
833
834
  if ((!Ls(r) || ["name", "id", "class", "aria-label"].indexOf(u.name) !== -1) && (i == null || !i.includes(u.name)) && !e && xt(u.value) && (h = u.name, !N(h) || h.substring(0, 10) !== "_ngcontent" && h.substring(0, 7) !== "_nghost")) {
834
835
  var g = u.value;
835
- u.name === "class" && (g = er(g).join(" ")), n["attr__" + u.name] = fi(1024, g);
836
+ u.name === "class" && (g = tr(g).join(" ")), n["attr__" + u.name] = _i(1024, g);
836
837
  }
837
838
  }));
838
- for (var o = 1, l = 1, c = r; c = Ia(c); ) o++, c.tagName === r.tagName && l++;
839
+ for (var o = 1, l = 1, c = r; c = $a(c); ) o++, c.tagName === r.tagName && l++;
839
840
  return n.nth_child = o, n.nth_of_type = l, n;
840
841
  }
841
- function Ta(r, e) {
842
- for (var t, i, { e: s, maskAllElementAttributes: n, maskAllText: a, elementAttributeIgnoreList: o, elementsChainAsString: l } = e, c = [r], u = r; u.parentNode && !De(u, "body"); ) Ts(u.parentNode) ? (c.push(u.parentNode.host), u = u.parentNode.host) : (c.push(u.parentNode), u = u.parentNode);
842
+ function Fa(r, e) {
843
+ for (var t, i, { e: s, maskAllElementAttributes: n, maskAllText: a, elementAttributeIgnoreList: o, elementsChainAsString: l } = e, c = [r], u = r; u.parentNode && !Ae(u, "body"); ) Fs(u.parentNode) ? (c.push(u.parentNode.host), u = u.parentNode.host) : (c.push(u.parentNode), u = u.parentNode);
843
844
  var h, g = [], p = {}, f = !1, _ = !1;
844
- if (F(c, ((P) => {
845
- var M = Bi(P);
846
- P.tagName.toLowerCase() === "a" && (f = P.getAttribute("href"), f = M && f && xt(f) && f), S(Kt(P), "ph-no-capture") && (_ = !0), g.push(Fa(P, n, a, o));
847
- var ne = (function(K) {
848
- if (!Bi(K)) return {};
849
- var C = {};
850
- return F(K.attributes, (function(le) {
845
+ if (T(c, ((C) => {
846
+ var D = Hi(C);
847
+ C.tagName.toLowerCase() === "a" && (f = C.getAttribute("href"), f = D && f && xt(f) && f), S(Jt(C), "ph-no-capture") && (_ = !0), g.push(Ta(C, n, a, o));
848
+ var ne = (function(X) {
849
+ if (!Hi(X)) return {};
850
+ var P = {};
851
+ return T(X.attributes, (function(le) {
851
852
  if (le.name && le.name.indexOf("data-ph-capture-attribute") === 0) {
852
853
  var J = le.name.replace("data-ph-capture-attribute-", ""), ae = le.value;
853
- J && ae && xt(ae) && (C[J] = ae);
854
+ J && ae && xt(ae) && (P[J] = ae);
854
855
  }
855
- })), C;
856
- })(P);
857
- A(p, ne);
856
+ })), P;
857
+ })(C);
858
+ M(p, ne);
858
859
  })), _) return { props: {}, explicitNoCapture: _ };
859
- if (a || (r.tagName.toLowerCase() === "a" || r.tagName.toLowerCase() === "button" ? g[0].$el_text = qs(r) : g[0].$el_text = It(r)), f) {
860
+ if (a || (r.tagName.toLowerCase() === "a" || r.tagName.toLowerCase() === "button" ? g[0].$el_text = qs(r) : g[0].$el_text = $t(r)), f) {
860
861
  var b, E;
861
862
  g[0].attr__href = f;
862
- var x = (b = Jt(f)) == null ? void 0 : b.host, $ = d == null || (E = d.location) == null ? void 0 : E.host;
863
- x && $ && x !== $ && (h = f);
863
+ var x = (b = Zt(f)) == null ? void 0 : b.host, I = d == null || (E = d.location) == null ? void 0 : E.host;
864
+ x && I && x !== I && (h = f);
864
865
  }
865
- return { props: A({ $event_type: s.type, $ce_version: 1 }, l ? {} : { $elements: g }, { $elements_chain: Pa(g) }, (t = g[0]) != null && t.$el_text ? { $el_text: (i = g[0]) == null ? void 0 : i.$el_text } : {}, h && s.type === "click" ? { $external_click_url: h } : {}, p) };
866
+ return { props: M({ $event_type: s.type, $ce_version: 1 }, l ? {} : { $elements: g }, { $elements_chain: Ca(g) }, (t = g[0]) != null && t.$el_text ? { $el_text: (i = g[0]) == null ? void 0 : i.$el_text } : {}, h && s.type === "click" ? { $external_click_url: h } : {}, p) };
866
867
  }
867
868
  class Oa {
868
869
  constructor(e) {
@@ -885,7 +886,7 @@ class Oa {
885
886
  };
886
887
  if (L(m, "submit", e, { capture: !0 }), L(m, "change", e, { capture: !0 }), L(m, "click", e, { capture: !0 }), this.C.capture_copied_text) {
887
888
  var t = (i) => {
888
- i = i || (d == null ? void 0 : d.event), this.F(i, gi);
889
+ i = i || (d == null ? void 0 : d.event), this.F(i, fi);
889
890
  };
890
891
  L(m, "copy", t, { capture: !0 }), L(m, "cut", t, { capture: !0 });
891
892
  }
@@ -896,7 +897,7 @@ class Oa {
896
897
  this.isEnabled && !this.P && (this.O(), this.P = !0);
897
898
  }
898
899
  onRemoteConfig(e) {
899
- e.elementsChainAsString && (this.I = e.elementsChainAsString), this.instance.persistence && this.instance.persistence.register({ [Cr]: !!e.autocapture_opt_out }), this.T = !!e.autocapture_opt_out, this.startIfEnabled();
900
+ e.elementsChainAsString && (this.I = e.elementsChainAsString), this.instance.persistence && this.instance.persistence.register({ [Pr]: !!e.autocapture_opt_out }), this.T = !!e.autocapture_opt_out, this.startIfEnabled();
900
901
  }
901
902
  setElementSelectors(e) {
902
903
  this.R = e;
@@ -911,7 +912,7 @@ class Oa {
911
912
  })), i;
912
913
  }
913
914
  get isEnabled() {
914
- var e, t, i = (e = this.instance.persistence) == null ? void 0 : e.props[Cr], s = this.T;
915
+ var e, t, i = (e = this.instance.persistence) == null ? void 0 : e.props[Pr], s = this.T;
915
916
  if (Ee(s) && !Oe(i) && !this.instance.M()) return !1;
916
917
  var n = (t = this.T) !== null && t !== void 0 ? t : !!i;
917
918
  return !!this.instance.config.autocapture && !n;
@@ -919,13 +920,13 @@ class Oa {
919
920
  F(e, t) {
920
921
  if (t === void 0 && (t = "$autocapture"), this.isEnabled) {
921
922
  var i, s = Rs(e);
922
- Fs(s) && (s = s.parentNode || null), t === "$autocapture" && e.type === "click" && e instanceof MouseEvent && this.instance.config.rageclick && (i = this.rageclicks) != null && i.isRageClick(e.clientX, e.clientY, e.timeStamp || (/* @__PURE__ */ new Date()).getTime()) && ba(s, this.instance.config.rageclick) && this.F(e, "$rageclick");
923
- var n = t === gi;
923
+ Ts(s) && (s = s.parentNode || null), t === "$autocapture" && e.type === "click" && e instanceof MouseEvent && this.instance.config.rageclick && (i = this.rageclicks) != null && i.isRageClick(e.clientX, e.clientY, e.timeStamp || (/* @__PURE__ */ new Date()).getTime()) && ba(s, this.instance.config.rageclick) && this.F(e, "$rageclick");
924
+ var n = t === fi;
924
925
  if (s && wa(s, e, this.C, n, n ? ["copy", "cut"] : void 0)) {
925
- var { props: a, explicitNoCapture: o } = Ta(s, { e, maskAllElementAttributes: this.instance.config.mask_all_element_attributes, maskAllText: this.instance.config.mask_all_text, elementAttributeIgnoreList: this.C.element_attribute_ignorelist, elementsChainAsString: this.I });
926
+ var { props: a, explicitNoCapture: o } = Fa(s, { e, maskAllElementAttributes: this.instance.config.mask_all_element_attributes, maskAllText: this.instance.config.mask_all_text, elementAttributeIgnoreList: this.C.element_attribute_ignorelist, elementsChainAsString: this.I });
926
927
  if (o) return !1;
927
928
  var l = this.getElementSelectors(s);
928
- if (l && l.length > 0 && (a.$element_selectors = l), t === gi) {
929
+ if (l && l.length > 0 && (a.$element_selectors = l), t === fi) {
929
930
  var c, u = Os(d == null || (c = d.getSelection()) == null ? void 0 : c.toString()), h = e.type || "clipboard";
930
931
  if (!u) return !1;
931
932
  a.$selected_content = u, a.$copy_type = h;
@@ -935,7 +936,7 @@ class Oa {
935
936
  }
936
937
  }
937
938
  isBrowserSupported() {
938
- return Te(m == null ? void 0 : m.querySelectorAll);
939
+ return Fe(m == null ? void 0 : m.querySelectorAll);
939
940
  }
940
941
  }
941
942
  Math.trunc || (Math.trunc = function(r) {
@@ -944,14 +945,14 @@ Math.trunc || (Math.trunc = function(r) {
944
945
  return fe(r) && isFinite(r) && Math.floor(r) === r;
945
946
  });
946
947
  var Nr = "0123456789abcdef";
947
- class ei {
948
+ class ti {
948
949
  constructor(e) {
949
950
  if (this.bytes = e, e.length !== 16) throw new TypeError("not 128-bit length");
950
951
  }
951
952
  static fromFieldsV7(e, t, i, s) {
952
953
  if (!Number.isInteger(e) || !Number.isInteger(t) || !Number.isInteger(i) || !Number.isInteger(s) || e < 0 || t < 0 || i < 0 || s < 0 || e > 281474976710655 || t > 4095 || i > 1073741823 || s > 4294967295) throw new RangeError("invalid field value");
953
954
  var n = new Uint8Array(16);
954
- return n[0] = e / Math.pow(2, 40), n[1] = e / Math.pow(2, 32), n[2] = e / Math.pow(2, 24), n[3] = e / Math.pow(2, 16), n[4] = e / Math.pow(2, 8), n[5] = e, n[6] = 112 | t >>> 8, n[7] = t, n[8] = 128 | i >>> 24, n[9] = i >>> 16, n[10] = i >>> 8, n[11] = i, n[12] = s >>> 24, n[13] = s >>> 16, n[14] = s >>> 8, n[15] = s, new ei(n);
955
+ return n[0] = e / Math.pow(2, 40), n[1] = e / Math.pow(2, 32), n[2] = e / Math.pow(2, 24), n[3] = e / Math.pow(2, 16), n[4] = e / Math.pow(2, 8), n[5] = e, n[6] = 112 | t >>> 8, n[7] = t, n[8] = 128 | i >>> 24, n[9] = i >>> 16, n[10] = i >>> 8, n[11] = i, n[12] = s >>> 24, n[13] = s >>> 16, n[14] = s >>> 8, n[15] = s, new ti(n);
955
956
  }
956
957
  toString() {
957
958
  for (var e = "", t = 0; t < this.bytes.length; t++) e = e + Nr.charAt(this.bytes[t] >>> 4) + Nr.charAt(15 & this.bytes[t]), t !== 3 && t !== 5 && t !== 7 && t !== 9 || (e += "-");
@@ -959,7 +960,7 @@ class ei {
959
960
  return e;
960
961
  }
961
962
  clone() {
962
- return new ei(this.bytes.slice(0));
963
+ return new ti(this.bytes.slice(0));
963
964
  }
964
965
  equals(e) {
965
966
  return this.compareTo(e) === 0;
@@ -974,7 +975,7 @@ class ei {
974
975
  }
975
976
  class Ra {
976
977
  constructor() {
977
- this.A = 0, this.D = 0, this.j = new Da();
978
+ this.A = 0, this.D = 0, this.j = new Aa();
978
979
  }
979
980
  generate() {
980
981
  var e = this.generateOrAbort();
@@ -993,7 +994,7 @@ class Ra {
993
994
  if (!(e + 1e4 > this.A)) return;
994
995
  this.D++, this.D > 4398046511103 && (this.A++, this.L());
995
996
  }
996
- return ei.fromFieldsV7(this.A, Math.trunc(this.D / Math.pow(2, 30)), this.D & Math.pow(2, 30) - 1, this.j.nextUint32());
997
+ return ti.fromFieldsV7(this.A, Math.trunc(this.D / Math.pow(2, 30)), this.D & Math.pow(2, 30) - 1, this.j.nextUint32());
997
998
  }
998
999
  L() {
999
1000
  this.D = 1024 * this.j.nextUint32() + (1023 & this.j.nextUint32());
@@ -1005,7 +1006,7 @@ var Ur, Hs = (r) => {
1005
1006
  return r;
1006
1007
  };
1007
1008
  d && !v(d.crypto) && crypto.getRandomValues && (Hs = (r) => crypto.getRandomValues(r));
1008
- class Da {
1009
+ class Aa {
1009
1010
  constructor() {
1010
1011
  this.N = new Uint32Array(8), this.U = 1 / 0;
1011
1012
  }
@@ -1013,13 +1014,13 @@ class Da {
1013
1014
  return this.U >= this.N.length && (Hs(this.N), this.U = 0), this.N[this.U++];
1014
1015
  }
1015
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
+ var Te = () => Da().toString(), Da = () => (Ur || (Ur = new Ra())).generate(), lt = "", Ma = /[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i;
1017
1018
  function La(r, e) {
1018
1019
  if (e) {
1019
1020
  var t = (function(s, n) {
1020
1021
  if (n === void 0 && (n = m), lt) return lt;
1021
1022
  if (!n || ["localhost", "127.0.0.1"].includes(s)) return "";
1022
- for (var a = s.split("."), o = Math.min(a.length, 8), l = "dmn_chk_" + Fe(); !lt && o--; ) {
1023
+ for (var a = s.split("."), o = Math.min(a.length, 8), l = "dmn_chk_" + Te(); !lt && o--; ) {
1023
1024
  var c = a.slice(o).join("."), u = l + "=1;domain=." + c + ";path=/";
1024
1025
  n.cookie = u + ";max-age=3", n.cookie.includes(l) && (n.cookie = u + ";max-age=0", lt = c);
1025
1026
  }
@@ -1027,7 +1028,7 @@ function La(r, e) {
1027
1028
  })(r);
1028
1029
  if (!t) {
1029
1030
  var i = ((s) => {
1030
- var n = s.match(Aa);
1031
+ var n = s.match(Ma);
1031
1032
  return n ? n[0] : "";
1032
1033
  })(r);
1033
1034
  i !== t && y.info("Warning: cookie subdomain discovery mismatch", i, t), t = i;
@@ -1075,29 +1076,29 @@ var ge = { H: () => !!m, B: function(r) {
1075
1076
  } catch {
1076
1077
  return;
1077
1078
  }
1078
- } }, _i = null, D = { H: function() {
1079
- if (!Ee(_i)) return _i;
1079
+ } }, vi = null, A = { H: function() {
1080
+ if (!Ee(vi)) return vi;
1080
1081
  var r = !0;
1081
1082
  if (v(d)) r = !1;
1082
1083
  else try {
1083
1084
  var e = "__mplssupport__";
1084
- D.G(e, "xyz"), D.q(e) !== '"xyz"' && (r = !1), D.V(e);
1085
+ A.G(e, "xyz"), A.q(e) !== '"xyz"' && (r = !1), A.V(e);
1085
1086
  } catch {
1086
1087
  r = !1;
1087
1088
  }
1088
- return r || y.error("localStorage unsupported; falling back to cookie store"), _i = r, r;
1089
+ return r || y.error("localStorage unsupported; falling back to cookie store"), vi = r, r;
1089
1090
  }, B: function(r) {
1090
1091
  y.error("localStorage error: " + r);
1091
1092
  }, q: function(r) {
1092
1093
  try {
1093
1094
  return d == null ? void 0 : d.localStorage.getItem(r);
1094
1095
  } catch (e) {
1095
- D.B(e);
1096
+ A.B(e);
1096
1097
  }
1097
1098
  return null;
1098
1099
  }, W: function(r) {
1099
1100
  try {
1100
- return JSON.parse(D.q(r)) || {};
1101
+ return JSON.parse(A.q(r)) || {};
1101
1102
  } catch {
1102
1103
  }
1103
1104
  return null;
@@ -1105,54 +1106,54 @@ var ge = { H: () => !!m, B: function(r) {
1105
1106
  try {
1106
1107
  d == null || d.localStorage.setItem(r, JSON.stringify(e));
1107
1108
  } catch (t) {
1108
- D.B(t);
1109
+ A.B(t);
1109
1110
  }
1110
1111
  }, V: function(r) {
1111
1112
  try {
1112
1113
  d == null || d.localStorage.removeItem(r);
1113
1114
  } catch (e) {
1114
- D.B(e);
1115
+ A.B(e);
1115
1116
  }
1116
- } }, Na = ["distinct_id", Wt, $s, Xt, Yt], Dt = w({}, D, { W: function(r) {
1117
+ } }, Na = ["distinct_id", zt, Is, Xt, Kt], At = w({}, A, { W: function(r) {
1117
1118
  try {
1118
1119
  var e = {};
1119
1120
  try {
1120
1121
  e = ge.W(r) || {};
1121
1122
  } catch {
1122
1123
  }
1123
- var t = A(e, JSON.parse(D.q(r) || "{}"));
1124
- return D.G(r, t), t;
1124
+ var t = M(e, JSON.parse(A.q(r) || "{}"));
1125
+ return A.G(r, t), t;
1125
1126
  } catch {
1126
1127
  }
1127
1128
  return null;
1128
1129
  }, G: function(r, e, t, i, s, n) {
1129
1130
  try {
1130
- D.G(r, e, void 0, void 0, n);
1131
+ A.G(r, e, void 0, void 0, n);
1131
1132
  var a = {};
1132
1133
  Na.forEach(((o) => {
1133
1134
  e[o] && (a[o] = e[o]);
1134
1135
  })), Object.keys(a).length && ge.G(r, a, t, i, s, n);
1135
1136
  } catch (o) {
1136
- D.B(o);
1137
+ A.B(o);
1137
1138
  }
1138
1139
  }, V: function(r, e) {
1139
1140
  try {
1140
1141
  d == null || d.localStorage.removeItem(r), ge.V(r, e);
1141
1142
  } catch (t) {
1142
- D.B(t);
1143
+ A.B(t);
1143
1144
  }
1144
- } }), Mt = {}, Ua = { H: function() {
1145
+ } }), Dt = {}, Ua = { H: function() {
1145
1146
  return !0;
1146
1147
  }, B: function(r) {
1147
1148
  y.error("memoryStorage error: " + r);
1148
1149
  }, q: function(r) {
1149
- return Mt[r] || null;
1150
+ return Dt[r] || null;
1150
1151
  }, W: function(r) {
1151
- return Mt[r] || null;
1152
+ return Dt[r] || null;
1152
1153
  }, G: function(r, e) {
1153
- Mt[r] = e;
1154
+ Dt[r] = e;
1154
1155
  }, V: function(r) {
1155
- delete Mt[r];
1156
+ delete Dt[r];
1156
1157
  } }, Ne = null, q = { H: function() {
1157
1158
  if (!Ee(Ne)) return Ne;
1158
1159
  if (Ne = !0, v(d)) Ne = !1;
@@ -1224,23 +1225,23 @@ class qa {
1224
1225
  }
1225
1226
  get K() {
1226
1227
  var e = this.Y.q(this.X);
1227
- return hi(e) ? be.GRANTED : S(Vn, e) ? be.DENIED : be.PENDING;
1228
+ return di(e) ? be.GRANTED : S(Vn, e) ? be.DENIED : be.PENDING;
1228
1229
  }
1229
1230
  get Y() {
1230
1231
  if (!this.Z) {
1231
1232
  var e = this.C.opt_out_capturing_persistence_type;
1232
- this.Z = e === "localStorage" ? D : ge;
1233
- var t = e === "localStorage" ? ge : D;
1234
- t.q(this.X) && (this.Z.q(this.X) || this.optInOut(hi(t.q(this.X))), t.V(this.X, this.C.cross_subdomain_cookie));
1233
+ this.Z = e === "localStorage" ? A : ge;
1234
+ var t = e === "localStorage" ? ge : A;
1235
+ t.q(this.X) && (this.Z.q(this.X) || this.optInOut(di(t.q(this.X))), t.V(this.X, this.C.cross_subdomain_cookie));
1235
1236
  }
1236
1237
  return this.Z;
1237
1238
  }
1238
1239
  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)));
1240
+ return !!this.C.respect_dnt && !!Ss([Q == null ? void 0 : Q.doNotTrack, Q == null ? void 0 : Q.msDoNotTrack, k.doNotTrack], ((e) => di(e)));
1240
1241
  }
1241
1242
  }
1242
- var At = U("[Dead Clicks]"), ja = () => !0, Ba = (r) => {
1243
- var e, t = !((e = r.instance.persistence) == null || !e.get_property(Cs)), i = r.instance.config.capture_dead_clicks;
1243
+ var Mt = U("[Dead Clicks]"), ja = () => !0, Ba = (r) => {
1244
+ var e, t = !((e = r.instance.persistence) == null || !e.get_property(Ps)), i = r.instance.config.capture_dead_clicks;
1244
1245
  return Oe(i) ? i : t;
1245
1246
  };
1246
1247
  class Vs {
@@ -1251,7 +1252,7 @@ class Vs {
1251
1252
  this.instance = e, this.isEnabled = t, this.onCapture = i, this.startIfEnabled();
1252
1253
  }
1253
1254
  onRemoteConfig(e) {
1254
- this.instance.persistence && this.instance.persistence.register({ [Cs]: e == null ? void 0 : e.captureDeadClicks }), this.startIfEnabled();
1255
+ this.instance.persistence && this.instance.persistence.register({ [Ps]: e == null ? void 0 : e.captureDeadClicks }), this.startIfEnabled();
1255
1256
  }
1256
1257
  startIfEnabled() {
1257
1258
  this.isEnabled(this) && this.it((() => {
@@ -1261,7 +1262,7 @@ class Vs {
1261
1262
  it(e) {
1262
1263
  var t, i;
1263
1264
  (t = k.__PosthogExtensions__) != null && t.initDeadClicksAutocapture && e(), (i = k.__PosthogExtensions__) == null || i.loadExternalDependency == null || i.loadExternalDependency(this.instance, "dead-clicks-autocapture", ((s) => {
1264
- s ? At.error("failed to load script", s) : e();
1265
+ s ? Mt.error("failed to load script", s) : e();
1265
1266
  }));
1266
1267
  }
1267
1268
  et() {
@@ -1269,12 +1270,12 @@ class Vs {
1269
1270
  if (m) {
1270
1271
  if (!this.tt && (e = k.__PosthogExtensions__) != null && e.initDeadClicksAutocapture) {
1271
1272
  var t = j(this.instance.config.capture_dead_clicks) ? this.instance.config.capture_dead_clicks : {};
1272
- t.__onCapture = this.onCapture, this.tt = k.__PosthogExtensions__.initDeadClicksAutocapture(this.instance, t), this.tt.start(m), At.info("starting...");
1273
+ t.__onCapture = this.onCapture, this.tt = k.__PosthogExtensions__.initDeadClicksAutocapture(this.instance, t), this.tt.start(m), Mt.info("starting...");
1273
1274
  }
1274
- } else At.error("`document` not found. Cannot start.");
1275
+ } else Mt.error("`document` not found. Cannot start.");
1275
1276
  }
1276
1277
  stop() {
1277
- this.tt && (this.tt.stop(), this.tt = void 0, At.info("stopping..."));
1278
+ this.tt && (this.tt.stop(), this.tt = void 0, Mt.info("stopping..."));
1278
1279
  }
1279
1280
  }
1280
1281
  var ct = U("[ExceptionAutocapture]");
@@ -1291,7 +1292,7 @@ class Ha {
1291
1292
  ct.error("failed to start", c), this.lt();
1292
1293
  }
1293
1294
  }
1294
- }, this._instance = e, this.ut = !((t = this._instance.persistence) == null || !t.props[$r]), this.C = this.ht(), this.dt = new Gn({ refillRate: (i = this._instance.config.error_tracking.__exceptionRateLimiterRefillRate) !== null && i !== void 0 ? i : 1, bucketSize: (s = this._instance.config.error_tracking.__exceptionRateLimiterBucketSize) !== null && s !== void 0 ? s : 10, refillInterval: 1e4, h: ct }), this.startIfEnabled();
1295
+ }, this._instance = e, this.ut = !((t = this._instance.persistence) == null || !t.props[Ir]), this.C = this.ht(), this.dt = new Gn({ refillRate: (i = this._instance.config.error_tracking.__exceptionRateLimiterRefillRate) !== null && i !== void 0 ? i : 1, bucketSize: (s = this._instance.config.error_tracking.__exceptionRateLimiterBucketSize) !== null && s !== void 0 ? s : 10, refillInterval: 1e4, h: ct }), this.startIfEnabled();
1295
1296
  }
1296
1297
  ht() {
1297
1298
  var e = this._instance.config.capture_exceptions, t = { capture_unhandled_errors: !1, capture_unhandled_rejections: !1, capture_console_errors: !1 };
@@ -1316,7 +1317,7 @@ class Ha {
1316
1317
  }
1317
1318
  onRemoteConfig(e) {
1318
1319
  var t = e.autocaptureExceptions;
1319
- this.ut = !!t || !1, this.C = this.ht(), this._instance.persistence && this._instance.persistence.register({ [$r]: this.ut }), this.startIfEnabled();
1320
+ this.ut = !!t || !1, this.C = this.ht(), this._instance.persistence && this._instance.persistence.register({ [Ir]: this.ut }), this.startIfEnabled();
1320
1321
  }
1321
1322
  captureException(e) {
1322
1323
  var t, i, s = (t = e == null || (i = e.$exception_list) == null || (i = i[0]) == null ? void 0 : i.type) !== null && t !== void 0 ? t : "Exception";
@@ -1328,7 +1329,7 @@ function qr(r, e, t) {
1328
1329
  if (!(e in r)) return () => {
1329
1330
  };
1330
1331
  var i = r[e], s = t(i);
1331
- return Te(s) && (s.prototype = s.prototype || {}, Object.defineProperties(s, { __posthog_wrapped__: { enumerable: !1, value: !0 } })), r[e] = s, () => {
1332
+ return Fe(s) && (s.prototype = s.prototype || {}, Object.defineProperties(s, { __posthog_wrapped__: { enumerable: !1, value: !0 } })), r[e] = s, () => {
1332
1333
  r[e] = i;
1333
1334
  };
1334
1335
  } catch {
@@ -1381,7 +1382,7 @@ class Va {
1381
1382
  }
1382
1383
  }
1383
1384
  }
1384
- var vi = U("[SegmentIntegration]");
1385
+ var mi = U("[SegmentIntegration]");
1385
1386
  function Ga(r, e) {
1386
1387
  var t = r.config.segment;
1387
1388
  if (!t) return e();
@@ -1389,16 +1390,16 @@ function Ga(r, e) {
1389
1390
  var n = i.config.segment;
1390
1391
  if (!n) return s();
1391
1392
  var a = (l) => {
1392
- var c = () => l.anonymousId() || Fe();
1393
+ var c = () => l.anonymousId() || Te();
1393
1394
  i.config.get_device_id = c, l.id() && (i.register({ distinct_id: l.id(), $device_id: c() }), i.persistence.set_property(ye, "identified")), s();
1394
1395
  }, o = n.user();
1395
- "then" in o && Te(o.then) ? o.then(((l) => a(l))) : a(o);
1396
+ "then" in o && Fe(o.then) ? o.then(((l) => a(l))) : a(o);
1396
1397
  })(r, (() => {
1397
1398
  t.register(((i) => {
1398
- Promise && Promise.resolve || vi.warn("This browser does not have Promise support, and can not use the segment integration");
1399
+ Promise && Promise.resolve || mi.warn("This browser does not have Promise support, and can not use the segment integration");
1399
1400
  var s = (n, a) => {
1400
1401
  if (!a) return n;
1401
- n.event.userId || n.event.anonymousId === i.get_distinct_id() || (vi.info("No userId set, resetting PostHog"), i.reset()), n.event.userId && n.event.userId !== i.get_distinct_id() && (vi.info("UserId set, identifying with PostHog"), i.identify(n.event.userId));
1402
+ n.event.userId || n.event.anonymousId === i.get_distinct_id() || (mi.info("No userId set, resetting PostHog"), i.reset()), n.event.userId && n.event.userId !== i.get_distinct_id() && (mi.info("UserId set, identifying with PostHog"), i.identify(n.event.userId));
1402
1403
  var o = i.calculateEventProperties(a, n.event.properties);
1403
1404
  return n.event.properties = Object.assign({}, o, n.event.properties), n;
1404
1405
  };
@@ -1428,9 +1429,9 @@ class Wa {
1428
1429
  };
1429
1430
  }
1430
1431
  }
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
+ var za = d != null && d.location ? ei(d.location.hash, "__posthog") || ei(location.hash, "state") : null, jr = "_postHogToolbarParams", Br = U("[Toolbar]"), $e = (function(r) {
1432
1433
  return r[r.UNINITIALIZED = 0] = "UNINITIALIZED", r[r.LOADING = 1] = "LOADING", r[r.LOADED = 2] = "LOADED", r;
1433
- })(Ie || {});
1434
+ })($e || {});
1434
1435
  class Ya {
1435
1436
  constructor(e) {
1436
1437
  this.instance = e;
@@ -1440,7 +1441,7 @@ class Ya {
1440
1441
  }
1441
1442
  yt() {
1442
1443
  var e;
1443
- return (e = k.ph_toolbar_state) !== null && e !== void 0 ? e : Ie.UNINITIALIZED;
1444
+ return (e = k.ph_toolbar_state) !== null && e !== void 0 ? e : $e.UNINITIALIZED;
1444
1445
  }
1445
1446
  maybeLoadToolbar(e, t, i) {
1446
1447
  if (e === void 0 && (e = void 0), t === void 0 && (t = void 0), i === void 0 && (i = void 0), !d || !m) return !1;
@@ -1454,7 +1455,7 @@ class Ya {
1454
1455
  }
1455
1456
  t = d == null ? void 0 : d.localStorage;
1456
1457
  }
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
+ var s, n = za || ei(e.hash, "__posthog") || ei(e.hash, "state"), a = n ? Cr((() => JSON.parse(atob(decodeURIComponent(n))))) || Cr((() => JSON.parse(decodeURIComponent(n)))) : null;
1458
1459
  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
1460
  } catch {
1460
1461
  return !1;
@@ -1462,20 +1463,20 @@ class Ya {
1462
1463
  }
1463
1464
  bt(e) {
1464
1465
  var t = k.ph_load_toolbar || k.ph_load_editor;
1465
- !O(t) && Te(t) ? t(e, this.instance) : Br.warn("No toolbar load function found");
1466
+ !O(t) && Fe(t) ? t(e, this.instance) : Br.warn("No toolbar load function found");
1466
1467
  }
1467
1468
  loadToolbar(e) {
1468
- var t = !(m == null || !m.getElementById(Is));
1469
+ var t = !(m == null || !m.getElementById($s));
1469
1470
  if (!d || t) return !1;
1470
1471
  var i = this.instance.requestRouter.region === "custom" && this.instance.config.advanced_disable_toolbar_metrics, s = w({ token: this.instance.config.token }, e, { apiURL: this.instance.requestRouter.endpointFor("ui") }, i ? { instrument: !1 } : {});
1471
- if (d.localStorage.setItem(jr, JSON.stringify(w({}, s, { source: void 0 }))), this.yt() === Ie.LOADED) this.bt(s);
1472
- else if (this.yt() === Ie.UNINITIALIZED) {
1472
+ if (d.localStorage.setItem(jr, JSON.stringify(w({}, s, { source: void 0 }))), this.yt() === $e.LOADED) this.bt(s);
1473
+ else if (this.yt() === $e.UNINITIALIZED) {
1473
1474
  var n;
1474
- this._t(Ie.LOADING), (n = k.__PosthogExtensions__) == null || n.loadExternalDependency == null || n.loadExternalDependency(this.instance, "toolbar", ((a) => {
1475
- if (a) return Br.error("[Toolbar] Failed to load", a), void this._t(Ie.UNINITIALIZED);
1476
- this._t(Ie.LOADED), this.bt(s);
1475
+ this._t($e.LOADING), (n = k.__PosthogExtensions__) == null || n.loadExternalDependency == null || n.loadExternalDependency(this.instance, "toolbar", ((a) => {
1476
+ if (a) return Br.error("[Toolbar] Failed to load", a), void this._t($e.UNINITIALIZED);
1477
+ this._t($e.LOADED), this.bt(s);
1477
1478
  })), L(d, "turbolinks:load", (() => {
1478
- this._t(Ie.UNINITIALIZED), this.loadToolbar(s);
1479
+ this._t($e.UNINITIALIZED), this.loadToolbar(s);
1479
1480
  }));
1480
1481
  }
1481
1482
  return !0;
@@ -1487,8 +1488,8 @@ class Ya {
1487
1488
  return e === void 0 && (e = void 0), t === void 0 && (t = void 0), i === void 0 && (i = void 0), this.maybeLoadToolbar(e, t, i);
1488
1489
  }
1489
1490
  }
1490
- var Xa = U("[TracingHeaders]");
1491
- class Ka {
1491
+ var Ka = U("[TracingHeaders]");
1492
+ class Xa {
1492
1493
  constructor(e) {
1493
1494
  this.xt = void 0, this.$t = void 0, this.rt = () => {
1494
1495
  var t, i;
@@ -1498,7 +1499,7 @@ class Ka {
1498
1499
  it(e) {
1499
1500
  var t, i;
1500
1501
  (t = k.__PosthogExtensions__) != null && t.tracingHeadersPatchFns && e(), (i = k.__PosthogExtensions__) == null || i.loadExternalDependency == null || i.loadExternalDependency(this._instance, "tracing-headers", ((s) => {
1501
- if (s) return Xa.error("failed to load script", s);
1502
+ if (s) return Ka.error("failed to load script", s);
1502
1503
  e();
1503
1504
  }));
1504
1505
  }
@@ -1507,11 +1508,11 @@ class Ka {
1507
1508
  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
1509
  }
1509
1510
  }
1510
- var re = "Mobile", ti = "iOS", pe = "Android", St = "Tablet", zs = pe + " " + St, Ys = "iPad", Xs = "Apple", Ks = Xs + " Watch", Pt = "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, Ct = "Nintendo", $t = "PlayStation", Qe = "Xbox", nn = pe + " " + re, an = re + " " + Pt, mt = "Windows", Hi = mt + " Phone", Hr = "Nokia", Vi = "Ouya", on = "Generic", Qa = on + " " + re.toLowerCase(), ln = on + " " + St.toLowerCase(), Gi = "Konqueror", G = "(\\d+(\\.\\d+)?)", mi = new RegExp("Version/" + G), eo = new RegExp(Qe, "i"), to = new RegExp($t + " \\w+", "i"), io = new RegExp(Ct + " \\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
- return S(t, Pt) && !S(t, He) && !S(t, pe);
1511
+ var re = "Mobile", ii = "iOS", pe = "Android", St = "Tablet", zs = pe + " " + St, Ys = "iPad", Ks = "Apple", Xs = Ks + " Watch", Ct = "Safari", tt = "BlackBerry", Js = "Samsung", Zs = Js + "Browser", Qs = Js + " Internet", He = "Chrome", Ja = He + " OS", en = He + " " + ii, sr = "Internet Explorer", tn = sr + " " + re, nr = "Opera", Za = nr + " Mini", ar = "Edge", rn = "Microsoft " + ar, Ze = "Firefox", sn = Ze + " " + ii, Pt = "Nintendo", It = "PlayStation", Qe = "Xbox", nn = pe + " " + re, an = re + " " + Ct, mt = "Windows", Vi = mt + " Phone", Hr = "Nokia", Gi = "Ouya", on = "Generic", Qa = on + " " + re.toLowerCase(), ln = on + " " + St.toLowerCase(), Wi = "Konqueror", G = "(\\d+(\\.\\d+)?)", yi = new RegExp("Version/" + G), eo = new RegExp(Qe, "i"), to = new RegExp(It + " \\w+", "i"), io = new RegExp(Pt + " \\w+", "i"), or = 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, Ks) || (function(t) {
1512
+ return S(t, Ct) && !S(t, He) && !S(t, pe);
1512
1513
  })(r), cn = function(r, e) {
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, Pt) ? nn : S(r, "FxiOS") ? sn : S(r.toLowerCase(), Gi.toLowerCase()) ? Gi : so(r, e) ? S(r, re) ? an : Pt : S(r, Ze) ? Ze : S(r, "MSIE") || S(r, "Trident/") ? rr : S(r, "Gecko") ? Ze : "";
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)], [Pt]: [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) {
1514
+ return e = e || "", S(r, " OPR/") && S(r, "Mini") ? Za : S(r, " OPR/") ? nr : or.test(r) ? tt : S(r, "IE" + re) || S(r, "WPDesktop") ? tn : S(r, Zs) ? Qs : S(r, ar) || 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, Ct) ? nn : S(r, "FxiOS") ? sn : S(r.toLowerCase(), Wi.toLowerCase()) ? Wi : so(r, e) ? S(r, re) ? an : Ct : S(r, Ze) ? Ze : S(r, "MSIE") || S(r, "Trident/") ? sr : S(r, "Gecko") ? Ze : "";
1515
+ }, no = { [tn]: [new RegExp("rv:" + G)], [rn]: [new RegExp(ar + "?\\/" + G)], [He]: [new RegExp("(" + He + "|CrMo)\\/" + G)], [en]: [new RegExp("CriOS\\/" + G)], "UC Browser": [new RegExp("(UCBrowser|UCWEB)\\/" + G)], [Ct]: [yi], [an]: [yi], [nr]: [new RegExp("(Opera|OPR)\\/" + G)], [Ze]: [new RegExp(Ze + "\\/" + G)], [sn]: [new RegExp("FxiOS\\/" + G)], [Wi]: [new RegExp("Konqueror[:/]?" + G, "i")], [tt]: [new RegExp(tt + " " + G), yi], [nn]: [new RegExp("android\\s" + G, "i")], [Qs]: [new RegExp(Zs + "\\/" + G)], [sr]: [new RegExp("(rv:|MSIE )" + G)], Mozilla: [new RegExp("rv:" + G)] }, ao = function(r, e) {
1515
1516
  var t = cn(r, e), i = no[t];
1516
1517
  if (v(i)) return null;
1517
1518
  for (var s = 0; s < i.length; s++) {
@@ -1519,8 +1520,8 @@ var re = "Mobile", ti = "iOS", pe = "Android", St = "Tablet", zs = pe + " " + St
1519
1520
  if (a) return parseFloat(a[a.length - 2]);
1520
1521
  }
1521
1522
  return null;
1522
- }, Vr = [[new RegExp(Qe + "; " + Qe + " (.*?)[);]", "i"), (r) => [Qe, r && r[1] || ""]], [new RegExp(Ct, "i"), [Ct, ""]], [new RegExp($t, "i"), [$t, ""]], [ar, [tt, ""]], [new RegExp(mt, "i"), (r, e) => {
1523
- if (/Phone/.test(e) || /WPDesktop/.test(e)) return [Hi, ""];
1523
+ }, Vr = [[new RegExp(Qe + "; " + Qe + " (.*?)[);]", "i"), (r) => [Qe, r && r[1] || ""]], [new RegExp(Pt, "i"), [Pt, ""]], [new RegExp(It, "i"), [It, ""]], [or, [tt, ""]], [new RegExp(mt, "i"), (r, e) => {
1524
+ if (/Phone/.test(e) || /WPDesktop/.test(e)) return [Vi, ""];
1524
1525
  if (new RegExp(re).test(e) && !/IEMobile\b/.test(e)) return [mt + " " + re, ""];
1525
1526
  var t = /Windows NT ([0-9.]+)/i.exec(e);
1526
1527
  if (t && t[1]) {
@@ -1531,9 +1532,9 @@ var re = "Mobile", ti = "iOS", pe = "Android", St = "Tablet", zs = pe + " " + St
1531
1532
  }], [/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/, (r) => {
1532
1533
  if (r && r[3]) {
1533
1534
  var e = [r[3], r[4], r[5] || "0"];
1534
- return [ti, e.join(".")];
1535
+ return [ii, e.join(".")];
1535
1536
  }
1536
- return [ti, ""];
1537
+ return [ii, ""];
1537
1538
  }], [/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i, (r) => {
1538
1539
  var e = "";
1539
1540
  return r && r.length >= 3 && (e = v(r[2]) ? r[3] : r[2]), ["watchOS", e];
@@ -1551,20 +1552,20 @@ var re = "Mobile", ti = "iOS", pe = "Android", St = "Tablet", zs = pe + " " + St
1551
1552
  }
1552
1553
  return e;
1553
1554
  }], [/Mac/i, ["Mac OS X", ""]], [/CrOS/, [Ja, ""]], [/Linux|debian/i, ["Linux", ""]]], Gr = function(r) {
1554
- return io.test(r) ? Ct : to.test(r) ? $t : eo.test(r) ? Qe : new RegExp(Vi, "i").test(r) ? Vi : new RegExp("(" + Hi + "|WPDesktop)", "i").test(r) ? Hi : /iPad/.test(r) ? Ys : /iPod/.test(r) ? "iPod Touch" : /iPhone/.test(r) ? "iPhone" : /(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(r) ? Ks : ar.test(r) ? tt : /(kobo)\s(ereader|touch)/i.test(r) ? "Kobo" : new RegExp(Hr, "i").test(r) ? Hr : /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(r) || /(kf[a-z]+)( bui|\)).+silk\//i.test(r) ? "Kindle Fire" : /(Android|ZTE)/i.test(r) ? !new RegExp(re).test(r) || /(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(r) ? /pixel[\daxl ]{1,6}/i.test(r) && !/pixel c/i.test(r) || /(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(r) || /lmy47v/i.test(r) && !/QTAQZ3/i.test(r) ? pe : zs : pe : new RegExp("(pda|" + re + ")", "i").test(r) ? Qa : new RegExp(St, "i").test(r) && !new RegExp(St + " pc", "i").test(r) ? ln : "";
1555
- }, Lt = "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), Tt = "<masked>", lo = ["li_fat_id"];
1555
+ return io.test(r) ? Pt : to.test(r) ? It : eo.test(r) ? Qe : new RegExp(Gi, "i").test(r) ? Gi : new RegExp("(" + Vi + "|WPDesktop)", "i").test(r) ? Vi : /iPad/.test(r) ? Ys : /iPod/.test(r) ? "iPod Touch" : /iPhone/.test(r) ? "iPhone" : /(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(r) ? Xs : or.test(r) ? tt : /(kobo)\s(ereader|touch)/i.test(r) ? "Kobo" : new RegExp(Hr, "i").test(r) ? Hr : /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(r) || /(kf[a-z]+)( bui|\)).+silk\//i.test(r) ? "Kindle Fire" : /(Android|ZTE)/i.test(r) ? !new RegExp(re).test(r) || /(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(r) ? /pixel[\daxl ]{1,6}/i.test(r) && !/pixel c/i.test(r) || /(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(r) || /lmy47v/i.test(r) && !/QTAQZ3/i.test(r) ? pe : zs : pe : new RegExp("(pda|" + re + ")", "i").test(r) ? Qa : new RegExp(St, "i").test(r) && !new RegExp(St + " pc", "i").test(r) ? ln : "";
1556
+ }, Lt = "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
1557
  function un(r, e, t) {
1557
1558
  if (!m) return {};
1558
- var i, s = e ? st([], nt, t || []) : [], n = hn(Ft(m.URL, s, Tt), r), a = (i = {}, F(lo, (function(o) {
1559
+ var i, s = e ? st([], nt, t || []) : [], n = hn(Tt(m.URL, s, Ft), r), a = (i = {}, T(lo, (function(o) {
1559
1560
  var l = ge.q(o);
1560
1561
  i[o] = l || null;
1561
1562
  })), i);
1562
- return A(a, n);
1563
+ return M(a, n);
1563
1564
  }
1564
1565
  function hn(r, e) {
1565
1566
  var t = oo.concat(e || []), i = {};
1566
- return F(t, (function(s) {
1567
- var n = Zt(r, s);
1567
+ return T(t, (function(s) {
1568
+ var n = Qt(r, s);
1568
1569
  i[s] = n || null;
1569
1570
  })), i;
1570
1571
  }
@@ -1574,7 +1575,7 @@ function dn(r) {
1574
1575
  })(r), t = e != "yahoo" ? "q" : "p", i = {};
1575
1576
  if (!Ee(e)) {
1576
1577
  i.$search_engine = e;
1577
- var s = m ? Zt(m.referrer, t) : "";
1578
+ var s = m ? Qt(m.referrer, t) : "";
1578
1579
  s.length && (i.ph_keyword = s);
1579
1580
  }
1580
1581
  return i;
@@ -1587,20 +1588,20 @@ function pn() {
1587
1588
  }
1588
1589
  function gn(r, e) {
1589
1590
  var t = r ? st([], nt, e || []) : [], i = z == null ? void 0 : z.href.substring(0, 1e3);
1590
- return { r: pn().substring(0, 1e3), u: i ? Ft(i, t, Tt) : void 0 };
1591
+ return { r: pn().substring(0, 1e3), u: i ? Tt(i, t, Ft) : void 0 };
1591
1592
  }
1592
1593
  function fn(r) {
1593
- var e, { r: t, u: i } = r, s = { $referrer: t, $referring_domain: t == null ? void 0 : t == "$direct" ? "$direct" : (e = Jt(t)) == null ? void 0 : e.host };
1594
+ var e, { r: t, u: i } = r, s = { $referrer: t, $referring_domain: t == null ? void 0 : t == "$direct" ? "$direct" : (e = Zt(t)) == null ? void 0 : e.host };
1594
1595
  if (i) {
1595
1596
  s.$current_url = i;
1596
- var n = Jt(i);
1597
+ var n = Zt(i);
1597
1598
  s.$host = n == null ? void 0 : n.host, s.$pathname = n == null ? void 0 : n.pathname;
1598
1599
  var a = hn(i);
1599
- A(s, a);
1600
+ M(s, a);
1600
1601
  }
1601
1602
  if (t) {
1602
1603
  var o = dn(t);
1603
- A(s, o);
1604
+ M(s, o);
1604
1605
  }
1605
1606
  return s;
1606
1607
  }
@@ -1622,14 +1623,14 @@ function uo(r, e) {
1622
1623
  if (!W) return {};
1623
1624
  var t, i, s, n = r ? st([], nt, e || []) : [], [a, o] = (function(l) {
1624
1625
  for (var c = 0; c < Vr.length; c++) {
1625
- var [u, h] = Vr[c], g = u.exec(l), p = g && (Te(h) ? h(g, l) : h);
1626
+ var [u, h] = Vr[c], g = u.exec(l), p = g && (Fe(h) ? h(g, l) : h);
1626
1627
  if (p) return p;
1627
1628
  }
1628
1629
  return ["", ""];
1629
1630
  })(W);
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 ? St : s === Ct || s === Qe || s === $t || s === Vi ? "Console" : s === Ks ? "Wearable" : s ? re : "Desktop"), $timezone: _n(), $timezone_offset: co() }), { $current_url: Ft(z == null ? void 0 : z.href, n, Tt), $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
+ return M(er({ $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 ? St : s === Pt || s === Qe || s === It || s === Gi ? "Console" : s === Xs ? "Wearable" : s ? re : "Desktop"), $timezone: _n(), $timezone_offset: co() }), { $current_url: Tt(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
1632
  }
1632
- var Ce = U("[Web Vitals]"), zr = 9e5;
1633
+ var Pe = U("[Web Vitals]"), zr = 9e5;
1633
1634
  class ho {
1634
1635
  constructor(e) {
1635
1636
  var t;
@@ -1637,20 +1638,20 @@ class ho {
1637
1638
  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
1639
  }, this.Pt = (i) => {
1639
1640
  var s, n = (s = this._instance.sessionManager) == null ? void 0 : s.checkAndGetSessionAndWindowId(!0);
1640
- if (v(n)) Ce.error("Could not read session ID. Dropping metrics!");
1641
+ if (v(n)) Pe.error("Could not read session ID. Dropping metrics!");
1641
1642
  else {
1642
1643
  this.N = this.N || { url: void 0, metrics: [], firstMetricTimestamp: void 0 };
1643
1644
  var a = this.Tt();
1644
- v(a) || (O(i == null ? void 0 : i.name) || O(i == null ? void 0 : i.value) ? Ce.error("Invalid metric received", i) : this.It && i.value >= this.It ? Ce.error("Ignoring metric with value >= " + this.It, i) : (this.N.url !== a && (this.Et(), this.kt = setTimeout(this.Et, this.flushToCaptureTimeoutMs)), v(this.N.url) && (this.N.url = a), this.N.firstMetricTimestamp = v(this.N.firstMetricTimestamp) ? Date.now() : this.N.firstMetricTimestamp, i.attribution && i.attribution.interactionTargetElement && (i.attribution.interactionTargetElement = void 0), this.N.metrics.push(w({}, i, { $current_url: a, $session_id: n.sessionId, $window_id: n.windowId, timestamp: Date.now() })), this.N.metrics.length === this.allowedMetrics.length && this.Et()));
1645
+ v(a) || (O(i == null ? void 0 : i.name) || O(i == null ? void 0 : i.value) ? Pe.error("Invalid metric received", i) : this.It && i.value >= this.It ? Pe.error("Ignoring metric with value >= " + this.It, i) : (this.N.url !== a && (this.Et(), this.kt = setTimeout(this.Et, this.flushToCaptureTimeoutMs)), v(this.N.url) && (this.N.url = a), this.N.firstMetricTimestamp = v(this.N.firstMetricTimestamp) ? Date.now() : this.N.firstMetricTimestamp, i.attribution && i.attribution.interactionTargetElement && (i.attribution.interactionTargetElement = void 0), this.N.metrics.push(w({}, i, { $current_url: a, $session_id: n.sessionId, $window_id: n.windowId, timestamp: Date.now() })), this.N.metrics.length === this.allowedMetrics.length && this.Et()));
1645
1646
  }
1646
1647
  }, this.rt = () => {
1647
1648
  var i, s, n, a, o = k.__PosthogExtensions__;
1648
- v(o) || v(o.postHogWebVitalsCallbacks) || ({ onLCP: i, onCLS: s, onFCP: n, onINP: a } = o.postHogWebVitalsCallbacks), i && s && n && a ? (this.allowedMetrics.indexOf("LCP") > -1 && i(this.Pt.bind(this)), this.allowedMetrics.indexOf("CLS") > -1 && s(this.Pt.bind(this)), this.allowedMetrics.indexOf("FCP") > -1 && n(this.Pt.bind(this)), this.allowedMetrics.indexOf("INP") > -1 && a(this.Pt.bind(this)), this.P = !0) : Ce.error("web vitals callbacks not loaded - not starting");
1649
- }, this._instance = e, this.St = !((t = this._instance.persistence) == null || !t.props[Fr]), this.startIfEnabled();
1649
+ v(o) || v(o.postHogWebVitalsCallbacks) || ({ onLCP: i, onCLS: s, onFCP: n, onINP: a } = o.postHogWebVitalsCallbacks), i && s && n && a ? (this.allowedMetrics.indexOf("LCP") > -1 && i(this.Pt.bind(this)), this.allowedMetrics.indexOf("CLS") > -1 && s(this.Pt.bind(this)), this.allowedMetrics.indexOf("FCP") > -1 && n(this.Pt.bind(this)), this.allowedMetrics.indexOf("INP") > -1 && a(this.Pt.bind(this)), this.P = !0) : Pe.error("web vitals callbacks not loaded - not starting");
1650
+ }, this._instance = e, this.St = !((t = this._instance.persistence) == null || !t.props[Tr]), this.startIfEnabled();
1650
1651
  }
1651
1652
  get allowedMetrics() {
1652
1653
  var e, t, i = j(this._instance.config.capture_performance) ? (e = this._instance.config.capture_performance) == null ? void 0 : e.web_vitals_allowed_metrics : void 0;
1653
- return v(i) ? ((t = this._instance.persistence) == null ? void 0 : t.props[Tr]) || ["CLS", "FCP", "INP", "LCP"] : i;
1654
+ return v(i) ? ((t = this._instance.persistence) == null ? void 0 : t.props[Fr]) || ["CLS", "FCP", "INP", "LCP"] : i;
1654
1655
  }
1655
1656
  get flushToCaptureTimeoutMs() {
1656
1657
  return (j(this._instance.config.capture_performance) ? this._instance.config.capture_performance.web_vitals_delayed_flush_ms : void 0) || 5e3;
@@ -1661,30 +1662,30 @@ class ho {
1661
1662
  }
1662
1663
  get isEnabled() {
1663
1664
  var e = z == null ? void 0 : z.protocol;
1664
- if (e !== "http:" && e !== "https:") return Ce.info("Web Vitals are disabled on non-http/https protocols"), !1;
1665
+ if (e !== "http:" && e !== "https:") return Pe.info("Web Vitals are disabled on non-http/https protocols"), !1;
1665
1666
  var t = j(this._instance.config.capture_performance) ? this._instance.config.capture_performance.web_vitals : Oe(this._instance.config.capture_performance) ? this._instance.config.capture_performance : void 0;
1666
1667
  return Oe(t) ? t : this.St;
1667
1668
  }
1668
1669
  startIfEnabled() {
1669
- this.isEnabled && !this.P && (Ce.info("enabled, starting..."), this.it(this.rt));
1670
+ this.isEnabled && !this.P && (Pe.info("enabled, starting..."), this.it(this.rt));
1670
1671
  }
1671
1672
  onRemoteConfig(e) {
1672
1673
  var t = j(e.capturePerformance) && !!e.capturePerformance.web_vitals, i = j(e.capturePerformance) ? e.capturePerformance.web_vitals_allowed_metrics : void 0;
1673
- this._instance.persistence && (this._instance.persistence.register({ [Fr]: t }), this._instance.persistence.register({ [Tr]: i })), this.St = t, this.startIfEnabled();
1674
+ this._instance.persistence && (this._instance.persistence.register({ [Tr]: t }), this._instance.persistence.register({ [Fr]: i })), this.St = t, this.startIfEnabled();
1674
1675
  }
1675
1676
  it(e) {
1676
1677
  var t, i;
1677
1678
  (t = k.__PosthogExtensions__) != null && t.postHogWebVitalsCallbacks && e(), (i = k.__PosthogExtensions__) == null || i.loadExternalDependency == null || i.loadExternalDependency(this._instance, "web-vitals", ((s) => {
1678
- s ? Ce.error("failed to load script", s) : e();
1679
+ s ? Pe.error("failed to load script", s) : e();
1679
1680
  }));
1680
1681
  }
1681
1682
  Tt() {
1682
1683
  var e = d ? d.location.href : void 0;
1683
1684
  if (e) {
1684
1685
  var t = this._instance.config.mask_personal_data_properties, i = this._instance.config.custom_personal_data_properties, s = t ? st([], nt, i || []) : [];
1685
- return Ft(e, s, Tt);
1686
+ return Tt(e, s, Ft);
1686
1687
  }
1687
- Ce.error("Could not determine current URL");
1688
+ Pe.error("Could not determine current URL");
1688
1689
  }
1689
1690
  }
1690
1691
  var po = U("[Heatmaps]");
@@ -1737,10 +1738,10 @@ class go {
1737
1738
  }
1738
1739
  qt(e, t) {
1739
1740
  var i = this.instance.scrollManager.scrollY(), s = this.instance.scrollManager.scrollX(), n = this.instance.scrollManager.scrollElement(), a = (function(o, l, c) {
1740
- for (var u = o; u && ai(u) && !De(u, "body"); ) {
1741
+ for (var u = o; u && oi(u) && !Ae(u, "body"); ) {
1741
1742
  if (u === c) return !1;
1742
1743
  if (S(l, d == null ? void 0 : d.getComputedStyle(u).position)) return !0;
1743
- u = Ms(u);
1744
+ u = Ds(u);
1744
1745
  }
1745
1746
  return !1;
1746
1747
  })(Rs(e), ["fixed", "sticky"], n);
@@ -1760,12 +1761,12 @@ class go {
1760
1761
  }
1761
1762
  Wt(e) {
1762
1763
  if (d) {
1763
- var t = d.location.href, i = this.instance.config.mask_personal_data_properties, s = this.instance.config.custom_personal_data_properties, n = i ? st([], nt, s || []) : [], a = Ft(t, n, Tt);
1764
+ var t = d.location.href, i = this.instance.config.mask_personal_data_properties, s = this.instance.config.custom_personal_data_properties, n = i ? st([], nt, s || []) : [], a = Tt(t, n, Ft);
1764
1765
  this.N = this.N || {}, this.N[a] || (this.N[a] = []), this.N[a].push(e);
1765
1766
  }
1766
1767
  }
1767
1768
  Dt() {
1768
- this.N && !Ke(this.N) && this.instance.capture("$$heatmap", { $heatmap_data: this.getAndClearBuffer() });
1769
+ this.N && !Xe(this.N) && this.instance.capture("$$heatmap", { $heatmap_data: this.getAndClearBuffer() });
1769
1770
  }
1770
1771
  }
1771
1772
  class fo {
@@ -1793,41 +1794,41 @@ class fo {
1793
1794
  if (!(v(a) || v(o) || v(l) || v(c) || v(u) || v(h))) {
1794
1795
  a = Math.ceil(a), o = Math.ceil(o), l = Math.ceil(l), c = Math.ceil(c), u = Math.ceil(u), h = Math.ceil(h);
1795
1796
  var g = a <= 1 ? 1 : de(o / a, 0, 1, y), p = a <= 1 ? 1 : de(l / a, 0, 1, y), f = c <= 1 ? 1 : de(u / c, 0, 1, y), _ = c <= 1 ? 1 : de(h / c, 0, 1, y);
1796
- s = A(s, { $prev_pageview_last_scroll: o, $prev_pageview_last_scroll_percentage: g, $prev_pageview_max_scroll: l, $prev_pageview_max_scroll_percentage: p, $prev_pageview_last_content: u, $prev_pageview_last_content_percentage: f, $prev_pageview_max_content: h, $prev_pageview_max_content_percentage: _ });
1797
+ s = M(s, { $prev_pageview_last_scroll: o, $prev_pageview_last_scroll_percentage: g, $prev_pageview_max_scroll: l, $prev_pageview_max_scroll_percentage: p, $prev_pageview_last_content: u, $prev_pageview_last_content_percentage: f, $prev_pageview_max_content: h, $prev_pageview_max_content_percentage: _ });
1797
1798
  }
1798
1799
  }
1799
1800
  return i.pathname && (s.$prev_pageview_pathname = i.pathname), i.timestamp && (s.$prev_pageview_duration = (e.getTime() - i.timestamp.getTime()) / 1e3), s;
1800
1801
  }
1801
1802
  }
1802
- var se = Uint8Array, X = Uint16Array, it = Uint32Array, or = new se([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0, 0]), lr = new se([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 0, 0]), Xr = new se([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), vn = function(r, e) {
1803
- for (var t = new X(31), i = 0; i < 31; ++i) t[i] = e += 1 << r[i - 1];
1803
+ var se = Uint8Array, K = Uint16Array, it = Uint32Array, lr = new se([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0, 0]), cr = new se([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 0, 0]), Kr = new se([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), vn = function(r, e) {
1804
+ for (var t = new K(31), i = 0; i < 31; ++i) t[i] = e += 1 << r[i - 1];
1804
1805
  var s = new it(t[30]);
1805
1806
  for (i = 1; i < 30; ++i) for (var n = t[i]; n < t[i + 1]; ++n) s[n] = n - t[i] << 5 | i;
1806
1807
  return [t, s];
1807
- }, mn = vn(or, 2), _o = mn[0], Wi = mn[1];
1808
- _o[28] = 258, Wi[258] = 28;
1809
- for (var Kr = vn(lr, 0)[1], yn = new X(32768), R = 0; R < 32768; ++R) {
1808
+ }, mn = vn(lr, 2), _o = mn[0], zi = mn[1];
1809
+ _o[28] = 258, zi[258] = 28;
1810
+ for (var Xr = vn(cr, 0)[1], yn = new K(32768), R = 0; R < 32768; ++R) {
1810
1811
  var Ue = (43690 & R) >>> 1 | (21845 & R) << 1;
1811
1812
  Ue = (61680 & (Ue = (52428 & Ue) >>> 2 | (13107 & Ue) << 2)) >>> 4 | (3855 & Ue) << 4, yn[R] = ((65280 & Ue) >>> 8 | (255 & Ue) << 8) >>> 1;
1812
1813
  }
1813
1814
  var Et = function(r, e, t) {
1814
- for (var i = r.length, s = 0, n = new X(e); s < i; ++s) ++n[r[s] - 1];
1815
- var a, o = new X(e);
1815
+ for (var i = r.length, s = 0, n = new K(e); s < i; ++s) ++n[r[s] - 1];
1816
+ var a, o = new K(e);
1816
1817
  for (s = 0; s < e; ++s) o[s] = o[s - 1] + n[s - 1] << 1;
1817
- for (a = new X(i), s = 0; s < i; ++s) a[s] = yn[o[r[s] - 1]++] >>> 15 - r[s];
1818
+ for (a = new K(i), s = 0; s < i; ++s) a[s] = yn[o[r[s] - 1]++] >>> 15 - r[s];
1818
1819
  return a;
1819
1820
  }, Ve = new se(288);
1820
1821
  for (R = 0; R < 144; ++R) Ve[R] = 8;
1821
1822
  for (R = 144; R < 256; ++R) Ve[R] = 9;
1822
1823
  for (R = 256; R < 280; ++R) Ve[R] = 7;
1823
1824
  for (R = 280; R < 288; ++R) Ve[R] = 8;
1824
- var ii = new se(32);
1825
- for (R = 0; R < 32; ++R) ii[R] = 5;
1826
- var vo = Et(Ve, 9), mo = Et(ii, 5), bn = function(r) {
1825
+ var ri = new se(32);
1826
+ for (R = 0; R < 32; ++R) ri[R] = 5;
1827
+ var vo = Et(Ve, 9), mo = Et(ri, 5), bn = function(r) {
1827
1828
  return (r / 8 >> 0) + (7 & r && 1);
1828
1829
  }, wn = function(r, e, t) {
1829
1830
  (t == null || t > r.length) && (t = r.length);
1830
- var i = new (r instanceof X ? X : r instanceof it ? it : se)(t - e);
1831
+ var i = new (r instanceof K ? K : r instanceof it ? it : se)(t - e);
1831
1832
  return i.set(r.subarray(e, t)), i;
1832
1833
  }, ve = function(r, e, t) {
1833
1834
  t <<= 7 & e;
@@ -1837,7 +1838,7 @@ var vo = Et(Ve, 9), mo = Et(ii, 5), bn = function(r) {
1837
1838
  t <<= 7 & e;
1838
1839
  var i = e / 8 >> 0;
1839
1840
  r[i] |= t, r[i + 1] |= t >>> 8, r[i + 2] |= t >>> 16;
1840
- }, yi = function(r, e) {
1841
+ }, bi = function(r, e) {
1841
1842
  for (var t = [], i = 0; i < r.length; ++i) r[i] && t.push({ s: i, f: r[i] });
1842
1843
  var s = t.length, n = t.slice();
1843
1844
  if (!s) return [new se(0), 0];
@@ -1845,40 +1846,40 @@ var vo = Et(Ve, 9), mo = Et(ii, 5), bn = function(r) {
1845
1846
  var a = new se(t[0].s + 1);
1846
1847
  return a[t[0].s] = 1, [a, 1];
1847
1848
  }
1848
- t.sort((function(M, ne) {
1849
- return M.f - ne.f;
1849
+ t.sort((function(D, ne) {
1850
+ return D.f - ne.f;
1850
1851
  })), t.push({ s: -1, f: 25001 });
1851
1852
  var o = t[0], l = t[1], c = 0, u = 1, h = 2;
1852
1853
  for (t[0] = { s: -1, f: o.f + l.f, l: o, r: l }; u != s - 1; ) o = t[t[c].f < t[h].f ? c++ : h++], l = t[c != u && t[c].f < t[h].f ? c++ : h++], t[u++] = { s: -1, f: o.f + l.f, l: o, r: l };
1853
1854
  var g = n[0].s;
1854
1855
  for (i = 1; i < s; ++i) n[i].s > g && (g = n[i].s);
1855
- var p = new X(g + 1), f = zi(t[u - 1], p, 0);
1856
+ var p = new K(g + 1), f = Yi(t[u - 1], p, 0);
1856
1857
  if (f > e) {
1857
1858
  i = 0;
1858
1859
  var _ = 0, b = f - e, E = 1 << b;
1859
- for (n.sort((function(M, ne) {
1860
- return p[ne.s] - p[M.s] || M.f - ne.f;
1860
+ for (n.sort((function(D, ne) {
1861
+ return p[ne.s] - p[D.s] || D.f - ne.f;
1861
1862
  })); i < s; ++i) {
1862
1863
  var x = n[i].s;
1863
1864
  if (!(p[x] > e)) break;
1864
1865
  _ += E - (1 << f - p[x]), p[x] = e;
1865
1866
  }
1866
1867
  for (_ >>>= b; _ > 0; ) {
1867
- var $ = n[i].s;
1868
- p[$] < e ? _ -= 1 << e - p[$]++ - 1 : ++i;
1868
+ var I = n[i].s;
1869
+ p[I] < e ? _ -= 1 << e - p[I]++ - 1 : ++i;
1869
1870
  }
1870
1871
  for (; i >= 0 && _; --i) {
1871
- var P = n[i].s;
1872
- p[P] == e && (--p[P], ++_);
1872
+ var C = n[i].s;
1873
+ p[C] == e && (--p[C], ++_);
1873
1874
  }
1874
1875
  f = e;
1875
1876
  }
1876
1877
  return [new se(p), f];
1877
- }, zi = function(r, e, t) {
1878
- return r.s == -1 ? Math.max(zi(r.l, e, t + 1), zi(r.r, e, t + 1)) : e[r.s] = t;
1878
+ }, Yi = function(r, e, t) {
1879
+ return r.s == -1 ? Math.max(Yi(r.l, e, t + 1), Yi(r.r, e, t + 1)) : e[r.s] = t;
1879
1880
  }, Jr = function(r) {
1880
1881
  for (var e = r.length; e && !r[--e]; ) ;
1881
- for (var t = new X(++e), i = 0, s = r[0], n = 1, a = function(l) {
1882
+ for (var t = new K(++e), i = 0, s = r[0], n = 1, a = function(l) {
1882
1883
  t[i++] = l;
1883
1884
  }, o = 1; o <= e; ++o) if (r[o] == s && o != e) ++n;
1884
1885
  else {
@@ -1896,36 +1897,36 @@ var vo = Et(Ve, 9), mo = Et(ii, 5), bn = function(r) {
1896
1897
  }, ht = function(r, e) {
1897
1898
  for (var t = 0, i = 0; i < e.length; ++i) t += r[i] * e[i];
1898
1899
  return t;
1899
- }, Yi = function(r, e, t) {
1900
+ }, Ki = function(r, e, t) {
1900
1901
  var i = t.length, s = bn(e + 2);
1901
1902
  r[s] = 255 & i, r[s + 1] = i >>> 8, r[s + 2] = 255 ^ r[s], r[s + 3] = 255 ^ r[s + 1];
1902
1903
  for (var n = 0; n < i; ++n) r[s + n + 4] = t[n];
1903
1904
  return 8 * (s + 4 + i);
1904
1905
  }, Zr = function(r, e, t, i, s, n, a, o, l, c, u) {
1905
1906
  ve(e, u++, t), ++s[256];
1906
- for (var h = yi(s, 15), g = h[0], p = h[1], f = yi(n, 15), _ = f[0], b = f[1], E = Jr(g), x = E[0], $ = E[1], P = Jr(_), M = P[0], ne = P[1], K = new X(19), C = 0; C < x.length; ++C) K[31 & x[C]]++;
1907
- for (C = 0; C < M.length; ++C) K[31 & M[C]]++;
1908
- for (var le = yi(K, 7), J = le[0], ae = le[1], ee = 19; ee > 4 && !J[Xr[ee - 1]]; --ee) ;
1909
- var _e, ce, ue, Ge, ke = c + 5 << 3, Le = ht(s, Ve) + ht(n, ii) + a, he = ht(s, g) + ht(n, _) + a + 14 + 3 * ee + ht(K, J) + (2 * K[16] + 3 * K[17] + 7 * K[18]);
1910
- if (ke <= Le && ke <= he) return Yi(e, u, r.subarray(l, l + c));
1907
+ for (var h = bi(s, 15), g = h[0], p = h[1], f = bi(n, 15), _ = f[0], b = f[1], E = Jr(g), x = E[0], I = E[1], C = Jr(_), D = C[0], ne = C[1], X = new K(19), P = 0; P < x.length; ++P) X[31 & x[P]]++;
1908
+ for (P = 0; P < D.length; ++P) X[31 & D[P]]++;
1909
+ for (var le = bi(X, 7), J = le[0], ae = le[1], ee = 19; ee > 4 && !J[Kr[ee - 1]]; --ee) ;
1910
+ var _e, ce, ue, Ge, ke = c + 5 << 3, Le = ht(s, Ve) + ht(n, ri) + a, he = ht(s, g) + ht(n, _) + a + 14 + 3 * ee + ht(X, J) + (2 * X[16] + 3 * X[17] + 7 * X[18]);
1911
+ if (ke <= Le && ke <= he) return Ki(e, u, r.subarray(l, l + c));
1911
1912
  if (ve(e, u, 1 + (he < Le)), u += 2, he < Le) {
1912
1913
  _e = Et(g, p), ce = g, ue = Et(_, b), Ge = _;
1913
1914
  var xe = Et(J, ae);
1914
- for (ve(e, u, $ - 257), ve(e, u + 5, ne - 1), ve(e, u + 10, ee - 4), u += 14, C = 0; C < ee; ++C) ve(e, u + 3 * C, J[Xr[C]]);
1915
+ for (ve(e, u, I - 257), ve(e, u + 5, ne - 1), ve(e, u + 10, ee - 4), u += 14, P = 0; P < ee; ++P) ve(e, u + 3 * P, J[Kr[P]]);
1915
1916
  u += 3 * ee;
1916
- for (var We = [x, M], V = 0; V < 2; ++V) {
1917
+ for (var We = [x, D], V = 0; V < 2; ++V) {
1917
1918
  var te = We[V];
1918
- for (C = 0; C < te.length; ++C) {
1919
- var Z = 31 & te[C];
1920
- ve(e, u, xe[Z]), u += J[Z], Z > 15 && (ve(e, u, te[C] >>> 5 & 127), u += te[C] >>> 12);
1919
+ for (P = 0; P < te.length; ++P) {
1920
+ var Z = 31 & te[P];
1921
+ ve(e, u, xe[Z]), u += J[Z], Z > 15 && (ve(e, u, te[P] >>> 5 & 127), u += te[P] >>> 12);
1921
1922
  }
1922
1923
  }
1923
- } else _e = vo, ce = Ve, ue = mo, Ge = ii;
1924
- for (C = 0; C < o; ++C) if (i[C] > 255) {
1925
- Z = i[C] >>> 18 & 31, ut(e, u, _e[Z + 257]), u += ce[Z + 257], Z > 7 && (ve(e, u, i[C] >>> 23 & 31), u += or[Z]);
1926
- var ze = 31 & i[C];
1927
- ut(e, u, ue[ze]), u += Ge[ze], ze > 3 && (ut(e, u, i[C] >>> 5 & 8191), u += lr[ze]);
1928
- } else ut(e, u, _e[i[C]]), u += ce[i[C]];
1924
+ } else _e = vo, ce = Ve, ue = mo, Ge = ri;
1925
+ for (P = 0; P < o; ++P) if (i[P] > 255) {
1926
+ Z = i[P] >>> 18 & 31, ut(e, u, _e[Z + 257]), u += ce[Z + 257], Z > 7 && (ve(e, u, i[P] >>> 23 & 31), u += lr[Z]);
1927
+ var ze = 31 & i[P];
1928
+ ut(e, u, ue[ze]), u += Ge[ze], ze > 3 && (ut(e, u, i[P] >>> 5 & 8191), u += cr[ze]);
1929
+ } else ut(e, u, _e[i[P]]), u += ce[i[P]];
1929
1930
  return ut(e, u, _e[256]), u + ce[256];
1930
1931
  }, yo = new it([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), bo = (function() {
1931
1932
  for (var r = new it(256), e = 0; e < 256; ++e) {
@@ -1938,39 +1939,39 @@ var vo = Et(Ve, 9), mo = Et(ii, 5), bn = function(r) {
1938
1939
  var h = n.length, g = new se(l + h + 5 * (1 + Math.floor(h / 7e3)) + c), p = g.subarray(l, g.length - c), f = 0;
1939
1940
  if (!a || h < 8) for (var _ = 0; _ <= h; _ += 65535) {
1940
1941
  var b = _ + 65535;
1941
- b < h ? f = Yi(p, f, n.subarray(_, b)) : (p[_] = u, f = Yi(p, f, n.subarray(_, h)));
1942
+ b < h ? f = Ki(p, f, n.subarray(_, b)) : (p[_] = u, f = Ki(p, f, n.subarray(_, h)));
1942
1943
  }
1943
1944
  else {
1944
- for (var E = yo[a - 1], x = E >>> 13, $ = 8191 & E, P = (1 << o) - 1, M = new X(32768), ne = new X(P + 1), K = Math.ceil(o / 3), C = 2 * K, le = function(ci) {
1945
- return (n[ci] ^ n[ci + 1] << K ^ n[ci + 2] << C) & P;
1946
- }, J = new it(25e3), ae = new X(288), ee = new X(32), _e = 0, ce = 0, ue = (_ = 0, 0), Ge = 0, ke = 0; _ < h; ++_) {
1945
+ for (var E = yo[a - 1], x = E >>> 13, I = 8191 & E, C = (1 << o) - 1, D = new K(32768), ne = new K(C + 1), X = Math.ceil(o / 3), P = 2 * X, le = function(ui) {
1946
+ return (n[ui] ^ n[ui + 1] << X ^ n[ui + 2] << P) & C;
1947
+ }, J = new it(25e3), ae = new K(288), ee = new K(32), _e = 0, ce = 0, ue = (_ = 0, 0), Ge = 0, ke = 0; _ < h; ++_) {
1947
1948
  var Le = le(_), he = 32767 & _, xe = ne[Le];
1948
- if (M[he] = xe, ne[Le] = he, Ge <= _) {
1949
+ if (D[he] = xe, ne[Le] = he, Ge <= _) {
1949
1950
  var We = h - _;
1950
1951
  if ((_e > 7e3 || ue > 24576) && We > 423) {
1951
1952
  f = Zr(n, p, 0, J, ae, ee, ce, ue, ke, _ - ke, f), ue = _e = ce = 0, ke = _;
1952
1953
  for (var V = 0; V < 286; ++V) ae[V] = 0;
1953
1954
  for (V = 0; V < 30; ++V) ee[V] = 0;
1954
1955
  }
1955
- var te = 2, Z = 0, ze = $, Se = he - xe & 32767;
1956
- if (We > 2 && Le == le(_ - Se)) for (var Pn = Math.min(x, We) - 1, Cn = Math.min(32767, _), $n = Math.min(258, We); Se <= Cn && --ze && he != xe; ) {
1956
+ var te = 2, Z = 0, ze = I, Se = he - xe & 32767;
1957
+ if (We > 2 && Le == le(_ - Se)) for (var Cn = Math.min(x, We) - 1, Pn = Math.min(32767, _), In = Math.min(258, We); Se <= Pn && --ze && he != xe; ) {
1957
1958
  if (n[_ + te] == n[_ + te - Se]) {
1958
- for (var Pe = 0; Pe < $n && n[_ + Pe] == n[_ + Pe - Se]; ++Pe) ;
1959
- if (Pe > te) {
1960
- if (te = Pe, Z = Se, Pe > Pn) break;
1961
- var In = Math.min(Se, Pe - 2), ur = 0;
1962
- for (V = 0; V < In; ++V) {
1963
- var li = _ - Se + V + 32768 & 32767, hr = li - M[li] + 32768 & 32767;
1964
- hr > ur && (ur = hr, xe = li);
1959
+ for (var Ce = 0; Ce < In && n[_ + Ce] == n[_ + Ce - Se]; ++Ce) ;
1960
+ if (Ce > te) {
1961
+ if (te = Ce, Z = Se, Ce > Cn) break;
1962
+ var $n = Math.min(Se, Ce - 2), hr = 0;
1963
+ for (V = 0; V < $n; ++V) {
1964
+ var ci = _ - Se + V + 32768 & 32767, dr = ci - D[ci] + 32768 & 32767;
1965
+ dr > hr && (hr = dr, xe = ci);
1965
1966
  }
1966
1967
  }
1967
1968
  }
1968
- Se += (he = xe) - (xe = M[he]) + 32768 & 32767;
1969
+ Se += (he = xe) - (xe = D[he]) + 32768 & 32767;
1969
1970
  }
1970
1971
  if (Z) {
1971
- J[ue++] = 268435456 | Wi[te] << 18 | Kr[Z];
1972
- var dr = 31 & Wi[te], pr = 31 & Kr[Z];
1973
- ce += or[dr] + lr[pr], ++ae[257 + dr], ++ee[pr], Ge = _ + te, ++_e;
1972
+ J[ue++] = 268435456 | zi[te] << 18 | Xr[Z];
1973
+ var pr = 31 & zi[te], gr = 31 & Xr[Z];
1974
+ ce += lr[pr] + cr[gr], ++ae[257 + pr], ++ee[gr], Ge = _ + te, ++_e;
1974
1975
  } else J[ue++] = n[_], ++ae[n[_]];
1975
1976
  }
1976
1977
  }
@@ -1978,7 +1979,7 @@ var vo = Et(Ve, 9), mo = Et(ii, 5), bn = function(r) {
1978
1979
  }
1979
1980
  return wn(g, 0, l + bn(f) + c);
1980
1981
  })(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
- }, bi = function(r, e, t) {
1982
+ }, wi = function(r, e, t) {
1982
1983
  for (; t; ++e) r[e] = t, t >>>= 8;
1983
1984
  };
1984
1985
  function Eo(r, e) {
@@ -1996,11 +1997,11 @@ function Eo(r, e) {
1996
1997
  var s, n = wo(r, e, 10 + ((s = e).filename && s.filename.length + 1 || 0), 8), a = n.length;
1997
1998
  return (function(o, l) {
1998
1999
  var c = l.filename;
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)), c) {
2000
+ 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 && wi(o, 4, Math.floor(new Date(l.mtime || Date.now()) / 1e3)), c) {
2000
2001
  o[3] = 8;
2001
2002
  for (var u = 0; u <= c.length; ++u) o[u + 10] = c.charCodeAt(u);
2002
2003
  }
2003
- })(n, e), bi(n, a - 8, t.d()), bi(n, a - 4, i), n;
2004
+ })(n, e), wi(n, a - 8, t.d()), wi(n, a - 4, i), n;
2004
2005
  }
2005
2006
  var ko = function(r) {
2006
2007
  var e, t, i, s, n = "";
@@ -2011,15 +2012,15 @@ var ko = function(r) {
2011
2012
  a < 128 ? t++ : o = a > 127 && a < 2048 ? String.fromCharCode(a >> 6 | 192, 63 & a | 128) : String.fromCharCode(a >> 12 | 224, a >> 6 & 63 | 128, 63 & a | 128), Ee(o) || (t > e && (n += r.substring(e, t)), n += o, e = t = s + 1);
2012
2013
  }
2013
2014
  return t > e && (n += r.substring(e, r.length)), n;
2014
- }, xo = !!Ii || !!$i, Qr = "text/plain", ri = function(r, e, t) {
2015
+ }, xo = !!Ti || !!$i, Qr = "text/plain", si = function(r, e, t) {
2015
2016
  var i;
2016
2017
  t === void 0 && (t = !0);
2017
2018
  var [s, n] = r.split("?"), a = w({}, e), o = (i = n == null ? void 0 : n.split("&").map(((c) => {
2018
2019
  var u, [h, g] = c.split("="), p = t && (u = a[h]) !== null && u !== void 0 ? u : g;
2019
2020
  return delete a[h], h + "=" + p;
2020
- }))) !== null && i !== void 0 ? i : [], l = $a(a);
2021
+ }))) !== null && i !== void 0 ? i : [], l = Ia(a);
2021
2022
  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) => {
2023
+ }, yt = (r, e) => JSON.stringify(r, ((t, i) => typeof i == "bigint" ? i.toString() : i), e), Ei = (r) => {
2023
2024
  var { data: e, compression: t } = r;
2024
2025
  if (e) {
2025
2026
  if (t === we.GZipJS) {
@@ -2064,8 +2065,8 @@ var ko = function(r) {
2064
2065
  }
2065
2066
  }, qt = [];
2066
2067
  $i && qt.push({ transport: "fetch", method: (r) => {
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(u, h) {
2068
+ var e, t, { contentType: i, body: s, estimatedSize: n } = (e = Ei(r)) !== null && e !== void 0 ? e : {}, a = new Headers();
2069
+ T(r.headers, (function(u, h) {
2069
2070
  a.append(h, u);
2070
2071
  })), i && a.append("Content-Type", i);
2071
2072
  var o = r.url, l = null;
@@ -2084,11 +2085,11 @@ $i && qt.push({ transport: "fetch", method: (r) => {
2084
2085
  })))).catch(((u) => {
2085
2086
  y.error(u), r.callback == null || r.callback({ statusCode: 0, text: u });
2086
2087
  })).finally((() => l ? clearTimeout(l.timeout) : null));
2087
- } }), Ii && qt.push({ transport: "XHR", method: (r) => {
2088
- var e, t = new Ii();
2088
+ } }), Ti && qt.push({ transport: "XHR", method: (r) => {
2089
+ var e, t = new Ti();
2089
2090
  t.open(r.method || "GET", r.url, !0);
2090
- var { contentType: i, body: s } = (e = wi(r)) !== null && e !== void 0 ? e : {};
2091
- F(r.headers, (function(n, a) {
2091
+ var { contentType: i, body: s } = (e = Ei(r)) !== null && e !== void 0 ? e : {};
2092
+ T(r.headers, (function(n, a) {
2092
2093
  t.setRequestHeader(a, n);
2093
2094
  })), i && t.setRequestHeader("Content-Type", i), r.timeout && (t.timeout = r.timeout), r.disableXHRCredentials || (t.withCredentials = !0), t.onreadystatechange = () => {
2094
2095
  if (t.readyState === 4) {
@@ -2101,9 +2102,9 @@ $i && qt.push({ transport: "fetch", method: (r) => {
2101
2102
  }
2102
2103
  }, t.send(s);
2103
2104
  } }), Q != null && Q.sendBeacon && qt.push({ transport: "sendBeacon", method: (r) => {
2104
- var e = ri(r.url, { beacon: "1" });
2105
+ var e = si(r.url, { beacon: "1" });
2105
2106
  try {
2106
- var t, { contentType: i, body: s } = (t = wi(r)) !== null && t !== void 0 ? t : {}, n = typeof s == "string" ? new Blob([s], { type: i }) : s;
2107
+ var t, { contentType: i, body: s } = (t = Ei(r)) !== null && t !== void 0 ? t : {}, n = typeof s == "string" ? new Blob([s], { type: i }) : s;
2107
2108
  Q.sendBeacon(e, n);
2108
2109
  } catch {
2109
2110
  }
@@ -2126,7 +2127,7 @@ var rt = function(r, e) {
2126
2127
  function es(r, e, t) {
2127
2128
  return yt({ distinct_id: r, userPropertiesToSet: e, userPropertiesToSetOnce: t });
2128
2129
  }
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(Nt).some(((t) => r.map(Nt).some(((i) => t.includes(i))))), not_icontains: (r, e) => e.map(Nt).every(((t) => r.map(Nt).every(((i) => !t.includes(i))))) }, Nt = (r) => r.toLowerCase(), Ei = U("[Error tracking]");
2130
+ 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(Nt).some(((t) => r.map(Nt).some(((i) => t.includes(i))))), not_icontains: (r, e) => e.map(Nt).every(((t) => r.map(Nt).every(((i) => !t.includes(i))))) }, Nt = (r) => r.toLowerCase(), ki = U("[Error tracking]");
2130
2131
  class So {
2131
2132
  constructor(e) {
2132
2133
  var t, i;
@@ -2134,10 +2135,10 @@ class So {
2134
2135
  }
2135
2136
  onRemoteConfig(e) {
2136
2137
  var t, i, s, n = (t = (i = e.errorTracking) == null ? void 0 : i.suppressionRules) !== null && t !== void 0 ? t : [], a = (s = e.errorTracking) == null ? void 0 : s.captureExtensionExceptions;
2137
- this.Jt = n, this._instance.persistence && this._instance.persistence.register({ [Mi]: this.Jt, [Ir]: a });
2138
+ this.Jt = n, this._instance.persistence && this._instance.persistence.register({ [Mi]: this.Jt, [$r]: a });
2138
2139
  }
2139
2140
  get Yt() {
2140
- var e, t = !!this._instance.get_property(Ir), i = this._instance.config.error_tracking.captureExtensionExceptions;
2141
+ var e, t = !!this._instance.get_property($r), i = this._instance.config.error_tracking.captureExtensionExceptions;
2141
2142
  return (e = i ?? t) !== null && e !== void 0 && e;
2142
2143
  }
2143
2144
  buildProperties(e, t) {
@@ -2146,9 +2147,9 @@ class So {
2146
2147
  sendExceptionEvent(e) {
2147
2148
  var t = e.$exception_list;
2148
2149
  if (this.Xt(t)) {
2149
- if (this.Qt(t)) return void Ei.info("Skipping exception capture because a suppression rule matched");
2150
- if (!this.Yt && this.Zt(t)) return void Ei.info("Skipping exception capture because it was thrown by an extension");
2151
- if (!this._instance.config.error_tracking.__capturePostHogExceptions && this.ti(t)) return void Ei.info("Skipping exception capture because it was thrown by the PostHog SDK");
2150
+ if (this.Qt(t)) return void ki.info("Skipping exception capture because a suppression rule matched");
2151
+ if (!this.Yt && this.Zt(t)) return void ki.info("Skipping exception capture because it was thrown by an extension");
2152
+ if (!this._instance.config.error_tracking.__capturePostHogExceptions && this.ti(t)) return void ki.info("Skipping exception capture because it was thrown by the PostHog SDK");
2152
2153
  }
2153
2154
  return this._instance.capture("$exception", e, { _noTruncate: !0, _batchKey: "exceptionEvent" });
2154
2155
  }
@@ -2160,7 +2161,7 @@ class So {
2160
2161
  }), { $exception_types: [], $exception_values: [] });
2161
2162
  return this.Jt.some(((i) => {
2162
2163
  var s = i.values.map(((n) => {
2163
- var a, o = En[n.operator], l = T(n.value) ? n.value : [n.value], c = (a = t[n.key]) !== null && a !== void 0 ? a : [];
2164
+ var a, o = En[n.operator], l = F(n.value) ? n.value : [n.value], c = (a = t[n.key]) !== null && a !== void 0 ? a : [];
2164
2165
  return l.length > 0 && o(l, c);
2165
2166
  }));
2166
2167
  return i.type === "OR" ? s.some(Boolean) : s.every(Boolean);
@@ -2180,14 +2181,14 @@ class So {
2180
2181
  return !1;
2181
2182
  }
2182
2183
  Xt(e) {
2183
- return !O(e) && T(e);
2184
+ return !O(e) && F(e);
2184
2185
  }
2185
2186
  }
2186
- var oe = U("[FeatureFlags]"), ki = "$active_feature_flags", Ye = "$override_feature_flags", ts = "$feature_flag_payloads", dt = "$override_feature_flag_payloads", is = "$feature_flag_request_id", rs = (r) => {
2187
+ var oe = U("[FeatureFlags]"), xi = "$active_feature_flags", Ye = "$override_feature_flags", ts = "$feature_flag_payloads", dt = "$override_feature_flag_payloads", is = "$feature_flag_request_id", rs = (r) => {
2187
2188
  var e = {};
2188
2189
  for (var [t, i] of Ut(r || {})) i && (e[t] = i);
2189
2190
  return e;
2190
- }, Po = (r) => {
2191
+ }, Co = (r) => {
2191
2192
  var e = r.flags;
2192
2193
  return e ? (r.featureFlags = Object.fromEntries(Object.keys(e).map(((t) => {
2193
2194
  var i;
@@ -2199,10 +2200,10 @@ var oe = U("[FeatureFlags]"), ki = "$active_feature_flags", Ye = "$override_feat
2199
2200
  var i;
2200
2201
  return [t, (i = e[t].metadata) == null ? void 0 : i.payload];
2201
2202
  })))) : 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
+ }, Po = (function(r) {
2203
2204
  return r.FeatureFlags = "feature_flags", r.Recordings = "recordings", r;
2204
2205
  })({});
2205
- class $o {
2206
+ class Io {
2206
2207
  constructor(e) {
2207
2208
  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
2209
  }
@@ -2230,9 +2231,9 @@ class $o {
2230
2231
  return Object.keys(this.getFlagVariants());
2231
2232
  }
2232
2233
  getFlagsWithDetails() {
2233
- var e = this._instance.get_property(Ai), t = this._instance.get_property(Ye), i = this._instance.get_property(dt);
2234
+ var e = this._instance.get_property(Li), t = this._instance.get_property(Ye), i = this._instance.get_property(dt);
2234
2235
  if (!i && !t) return e || {};
2235
- var s = A({}, e || {}), n = [.../* @__PURE__ */ new Set([...Object.keys(i || {}), ...Object.keys(t || {})])];
2236
+ var s = M({}, e || {}), n = [.../* @__PURE__ */ new Set([...Object.keys(i || {}), ...Object.keys(t || {})])];
2236
2237
  for (var a of n) {
2237
2238
  var o, l, c = s[a], u = t == null ? void 0 : t[a], h = v(u) ? (o = c == null ? void 0 : c.enabled) !== null && o !== void 0 && o : !!u, g = v(u) ? c.variant : typeof u == "string" ? u : void 0, p = i == null ? void 0 : i[a], f = w({}, c, { enabled: h, variant: h ? g ?? (c == null ? void 0 : c.variant) : void 0 });
2238
2239
  h !== (c == null ? void 0 : c.enabled) && (f.original_enabled = c == null ? void 0 : c.enabled), g !== (c == null ? void 0 : c.variant) && (f.original_variant = c == null ? void 0 : c.variant), p && (f.metadata = w({}, c == null ? void 0 : c.metadata, { payload: p, original_payload: c == null || (l = c.metadata) == null ? void 0 : l.payload })), s[a] = f;
@@ -2242,13 +2243,13 @@ class $o {
2242
2243
  getFlagVariants() {
2243
2244
  var e = this._instance.get_property(Je), t = this._instance.get_property(Ye);
2244
2245
  if (!t) return e || {};
2245
- for (var i = A({}, e), s = Object.keys(t), n = 0; n < s.length; n++) i[s[n]] = t[s[n]];
2246
+ for (var i = M({}, e), s = Object.keys(t), n = 0; n < s.length; n++) i[s[n]] = t[s[n]];
2246
2247
  return this.ii || (oe.warn(" Overriding feature flags!", { enabledFlags: e, overriddenFlags: t, finalFlags: i }), this.ii = !0), i;
2247
2248
  }
2248
2249
  getFlagPayloads() {
2249
2250
  var e = this._instance.get_property(ts), t = this._instance.get_property(dt);
2250
2251
  if (!t) return e || {};
2251
- for (var i = A({}, e || {}), s = Object.keys(t), n = 0; n < s.length; n++) i[s[n]] = t[s[n]];
2252
+ for (var i = M({}, e || {}), s = Object.keys(t), n = 0; n < s.length; n++) i[s[n]] = t[s[n]];
2252
2253
  return this.ii || (oe.warn(" Overriding feature flag payloads!", { flagPayloads: e, overriddenPayloads: t, finalPayloads: i }), this.ii = !0), i;
2253
2254
  }
2254
2255
  reloadFeatureFlags() {
@@ -2277,7 +2278,7 @@ class $o {
2277
2278
  var s = this._instance.config.__preview_remote_config, n = s ? "/flags/?v=2" : "/flags/?v=2&config=true", a = this._instance.config.advanced_only_evaluate_survey_feature_flags ? "&only_evaluate_survey_feature_flags=true" : "", o = this._instance.requestRouter.endpointFor("flags", n + a);
2278
2279
  s && (i.timezone = _n()), this.ri = !0, this._instance.ci({ method: "POST", url: o, data: i, compression: this._instance.config.disable_compression ? void 0 : we.Base64, timeout: this._instance.config.feature_flag_request_timeout_ms, callback: (l) => {
2279
2280
  var c, u, h = !0;
2280
- if (l.statusCode === 200 && (this.ni || (this.$anon_distinct_id = void 0), h = !1), this.ri = !1, this.oi || (this.oi = !0, this._instance.fi((u = l.json) !== null && u !== void 0 ? u : {})), !i.disable_flags || this.ni) if (this.ai = !h, l.json && (c = l.json.quotaLimited) != null && c.includes(Co.FeatureFlags)) oe.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more.");
2281
+ if (l.statusCode === 200 && (this.ni || (this.$anon_distinct_id = void 0), h = !1), this.ri = !1, this.oi || (this.oi = !0, this._instance.fi((u = l.json) !== null && u !== void 0 ? u : {})), !i.disable_flags || this.ni) if (this.ai = !h, l.json && (c = l.json.quotaLimited) != null && c.includes(Po.FeatureFlags)) oe.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more.");
2281
2282
  else {
2282
2283
  var g;
2283
2284
  i.disable_flags || this.receivedFeatureFlags((g = l.json) !== null && g !== void 0 ? g : {}, h), this.ni && (this.ni = !1, this.di());
@@ -2287,14 +2288,14 @@ class $o {
2287
2288
  }
2288
2289
  getFeatureFlag(e, t) {
2289
2290
  if (t === void 0 && (t = {}), this.ei || this.getFlags() && this.getFlags().length > 0) {
2290
- var i = this.getFlagVariants()[e], s = "" + i, n = this._instance.get_property(is) || void 0, a = this._instance.get_property(zt) || {};
2291
+ var i = this.getFlagVariants()[e], s = "" + i, n = this._instance.get_property(is) || void 0, a = this._instance.get_property(Yt) || {};
2291
2292
  if ((t.send_event || !("send_event" in t)) && (!(e in a) || !a[e].includes(s))) {
2292
2293
  var o, l, c, u, h, g, p, f, _;
2293
- T(a[e]) ? a[e].push(s) : a[e] = [s], (o = this._instance.persistence) == null || o.register({ [zt]: a });
2294
+ F(a[e]) ? a[e].push(s) : a[e] = [s], (o = this._instance.persistence) == null || o.register({ [Yt]: a });
2294
2295
  var b = this.getFeatureFlagDetails(e), E = { $feature_flag: e, $feature_flag_response: i, $feature_flag_payload: this.getFeatureFlagPayload(e) || null, $feature_flag_request_id: n, $feature_flag_bootstrapped_response: ((l = this._instance.config.bootstrap) == null || (l = l.featureFlags) == null ? void 0 : l[e]) || null, $feature_flag_bootstrapped_payload: ((c = this._instance.config.bootstrap) == null || (c = c.featureFlagPayloads) == null ? void 0 : c[e]) || null, $used_bootstrap_value: !this.ai };
2295
2296
  v(b == null || (u = b.metadata) == null ? void 0 : u.version) || (E.$feature_flag_version = b.metadata.version);
2296
- var x, $ = (h = b == null || (g = b.reason) == null ? void 0 : g.description) !== null && h !== void 0 ? h : b == null || (p = b.reason) == null ? void 0 : p.code;
2297
- $ && (E.$feature_flag_reason = $), b != null && (f = b.metadata) != null && f.id && (E.$feature_flag_id = b.metadata.id), v(b == null ? void 0 : b.original_variant) && v(b == null ? void 0 : b.original_enabled) || (E.$feature_flag_original_response = v(b.original_variant) ? b.original_enabled : b.original_variant), b != null && (_ = b.metadata) != null && _.original_payload && (E.$feature_flag_original_payload = b == null || (x = b.metadata) == null ? void 0 : x.original_payload), this._instance.capture("$feature_flag_called", E);
2297
+ var x, I = (h = b == null || (g = b.reason) == null ? void 0 : g.description) !== null && h !== void 0 ? h : b == null || (p = b.reason) == null ? void 0 : p.code;
2298
+ I && (E.$feature_flag_reason = I), b != null && (f = b.metadata) != null && f.id && (E.$feature_flag_id = b.metadata.id), v(b == null ? void 0 : b.original_variant) && v(b == null ? void 0 : b.original_enabled) || (E.$feature_flag_original_response = v(b.original_variant) ? b.original_enabled : b.original_variant), b != null && (_ = b.metadata) != null && _.original_payload && (E.$feature_flag_original_payload = b == null || (x = b.metadata) == null ? void 0 : x.original_payload), this._instance.capture("$feature_flag_called", E);
2298
2299
  }
2299
2300
  return i;
2300
2301
  }
@@ -2332,17 +2333,17 @@ class $o {
2332
2333
  var i = this.getFlagVariants(), s = this.getFlagPayloads(), n = this.getFlagsWithDetails();
2333
2334
  (function(a, o, l, c, u) {
2334
2335
  l === void 0 && (l = {}), c === void 0 && (c = {}), u === void 0 && (u = {});
2335
- var h = Po(a), g = h.flags, p = h.featureFlags, f = h.featureFlagPayloads;
2336
+ var h = Co(a), g = h.flags, p = h.featureFlags, f = h.featureFlagPayloads;
2336
2337
  if (p) {
2337
2338
  var _ = a.requestId;
2338
- if (T(p)) {
2339
+ if (F(p)) {
2339
2340
  oe.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");
2340
2341
  var b = {};
2341
2342
  if (p) for (var E = 0; E < p.length; E++) b[p[E]] = !0;
2342
- o && o.register({ [ki]: p, [Je]: b });
2343
+ o && o.register({ [xi]: p, [Je]: b });
2343
2344
  } else {
2344
- var x = p, $ = f, P = g;
2345
- a.errorsWhileComputingFlags && (x = w({}, l, x), $ = w({}, c, $), P = w({}, u, P)), o && o.register(w({ [ki]: Object.keys(rs(x)), [Je]: x || {}, [ts]: $ || {}, [Ai]: P || {} }, _ ? { [is]: _ } : {}));
2345
+ var x = p, I = f, C = g;
2346
+ a.errorsWhileComputingFlags && (x = w({}, l, x), I = w({}, c, I), C = w({}, u, C)), o && o.register(w({ [xi]: Object.keys(rs(x)), [Je]: x || {}, [ts]: I || {}, [Li]: C || {} }, _ ? { [is]: _ } : {}));
2346
2347
  }
2347
2348
  }
2348
2349
  })(e, this._instance.persistence, i, s, n), this.pi(t);
@@ -2358,7 +2359,7 @@ class $o {
2358
2359
  var t, i = e;
2359
2360
  if (this.ii = !!((t = i.suppressWarning) !== null && t !== void 0 && t), "flags" in i) {
2360
2361
  if (i.flags === !1) this._instance.persistence.unregister(Ye);
2361
- else if (i.flags) if (T(i.flags)) {
2362
+ else if (i.flags) if (F(i.flags)) {
2362
2363
  for (var s = {}, n = 0; n < i.flags.length; n++) s[i.flags[n]] = !0;
2363
2364
  this._instance.persistence.register({ [Ye]: s });
2364
2365
  } else this._instance.persistence.register({ [Ye]: i.flags });
@@ -2378,7 +2379,7 @@ class $o {
2378
2379
  var s, n = (this._instance.get_property(_t) || []).find(((c) => c.flagKey === e)), a = { ["$feature_enrollment/" + e]: t }, o = { $feature_flag: e, $feature_enrollment: t, $set: a };
2379
2380
  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
2381
  var l = w({}, this.getFlagVariants(), { [e]: t });
2381
- (s = this._instance.persistence) == null || s.register({ [ki]: Object.keys(rs(l)), [Je]: l }), this.pi();
2382
+ (s = this._instance.persistence) == null || s.register({ [xi]: Object.keys(rs(l)), [Je]: l }), this.pi();
2382
2383
  }
2383
2384
  getEarlyAccessFeatures(e, t, i) {
2384
2385
  t === void 0 && (t = !1);
@@ -2425,8 +2426,8 @@ class $o {
2425
2426
  this.ei = !1, this.ri = !1, this.si = !1, this.ni = !1, this.oi = !1, this.ai = !1, this.$anon_distinct_id = void 0, this.vi(), this.ii = !1;
2426
2427
  }
2427
2428
  }
2428
- var Io = ["cookie", "localstorage", "localstorage+cookie", "sessionstorage", "memory"];
2429
- class xi {
2429
+ var $o = ["cookie", "localstorage", "localstorage+cookie", "sessionstorage", "memory"];
2430
+ class Si {
2430
2431
  constructor(e, t) {
2431
2432
  this.C = e, this.props = {}, this.mi = !1, this.yi = ((i) => {
2432
2433
  var s = "";
@@ -2437,16 +2438,16 @@ class xi {
2437
2438
  return !!this.wi;
2438
2439
  }
2439
2440
  bi(e) {
2440
- Io.indexOf(e.persistence.toLowerCase()) === -1 && (y.critical("Unknown persistence type " + e.persistence + "; falling back to localStorage+cookie"), e.persistence = "localStorage+cookie");
2441
+ $o.indexOf(e.persistence.toLowerCase()) === -1 && (y.critical("Unknown persistence type " + e.persistence + "; falling back to localStorage+cookie"), e.persistence = "localStorage+cookie");
2441
2442
  var t = e.persistence.toLowerCase();
2442
- return t === "localstorage" && D.H() ? D : t === "localstorage+cookie" && Dt.H() ? Dt : t === "sessionstorage" && q.H() ? q : t === "memory" ? Ua : t === "cookie" ? ge : Dt.H() ? Dt : ge;
2443
+ return t === "localstorage" && A.H() ? A : t === "localstorage+cookie" && At.H() ? At : t === "sessionstorage" && q.H() ? q : t === "memory" ? Ua : t === "cookie" ? ge : At.H() ? At : ge;
2443
2444
  }
2444
2445
  properties() {
2445
2446
  var e = {};
2446
- return F(this.props, (function(t, i) {
2447
+ return T(this.props, (function(t, i) {
2447
2448
  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(c) {
2449
- if (l || (l = c === o)) return Gt;
2449
+ else o = i, l = !1, (Ee(a = ma) ? l : vr && a.indexOf === vr ? a.indexOf(o) != -1 : (T(a, (function(c) {
2450
+ if (l || (l = c === o)) return Wt;
2450
2451
  })), l)) || (e[i] = t);
2451
2452
  var a, o, l;
2452
2453
  })), e;
@@ -2454,7 +2455,7 @@ class xi {
2454
2455
  load() {
2455
2456
  if (!this.wi) {
2456
2457
  var e = this.Y.W(this.yi);
2457
- e && (this.props = A({}, e));
2458
+ e && (this.props = M({}, e));
2458
2459
  }
2459
2460
  }
2460
2461
  save() {
@@ -2470,7 +2471,7 @@ class xi {
2470
2471
  if (j(e)) {
2471
2472
  v(t) && (t = "None"), this.xi = v(i) ? this.Ei : i;
2472
2473
  var s = !1;
2473
- if (F(e, ((n, a) => {
2474
+ if (T(e, ((n, a) => {
2474
2475
  this.props.hasOwnProperty(a) && this.props[a] !== t || (this.props[a] = n, s = !0);
2475
2476
  })), s) return this.save(), !0;
2476
2477
  }
@@ -2480,7 +2481,7 @@ class xi {
2480
2481
  if (j(e)) {
2481
2482
  this.xi = v(t) ? this.Ei : t;
2482
2483
  var i = !1;
2483
- if (F(e, ((s, n) => {
2484
+ if (T(e, ((s, n) => {
2484
2485
  e.hasOwnProperty(n) && this.props[n] !== s && (this.props[n] = s, i = !0);
2485
2486
  })), i) return this.save(), !0;
2486
2487
  }
@@ -2492,7 +2493,7 @@ class xi {
2492
2493
  update_campaign_params() {
2493
2494
  if (!this.mi) {
2494
2495
  var e = un(this.C.custom_campaign_params, this.C.mask_personal_data_properties, this.C.custom_personal_data_properties);
2495
- Ke(Qi(e)) || this.register(e), this.mi = !0;
2496
+ Xe(er(e)) || this.register(e), this.mi = !0;
2496
2497
  }
2497
2498
  }
2498
2499
  update_search_keyword() {
@@ -2501,30 +2502,30 @@ class xi {
2501
2502
  }
2502
2503
  update_referrer_info() {
2503
2504
  var e;
2504
- this.register_once({ $referrer: pn(), $referring_domain: m != null && m.referrer && ((e = Jt(m.referrer)) == null ? void 0 : e.host) || "$direct" }, void 0);
2505
+ this.register_once({ $referrer: pn(), $referring_domain: m != null && m.referrer && ((e = Zt(m.referrer)) == null ? void 0 : e.host) || "$direct" }, void 0);
2505
2506
  }
2506
2507
  set_initial_person_info() {
2507
- this.props[qi] || this.props[ji] || this.register_once({ [Yt]: gn(this.C.mask_personal_data_properties, this.C.custom_personal_data_properties) }, void 0);
2508
+ this.props[ji] || this.props[Bi] || this.register_once({ [Kt]: gn(this.C.mask_personal_data_properties, this.C.custom_personal_data_properties) }, void 0);
2508
2509
  }
2509
2510
  get_initial_props() {
2510
2511
  var e = {};
2511
- F([ji, qi], ((a) => {
2512
+ T([Bi, ji], ((a) => {
2512
2513
  var o = this.props[a];
2513
- o && F(o, (function(l, c) {
2514
+ o && T(o, (function(l, c) {
2514
2515
  e["$initial_" + Fi(c)] = l;
2515
2516
  }));
2516
2517
  }));
2517
- var t, i, s = this.props[Yt];
2518
+ var t, i, s = this.props[Kt];
2518
2519
  if (s) {
2519
- var n = (t = fn(s), i = {}, F(t, (function(a, o) {
2520
+ var n = (t = fn(s), i = {}, T(t, (function(a, o) {
2520
2521
  i["$initial_" + Fi(o)] = a;
2521
2522
  })), i);
2522
- A(e, n);
2523
+ M(e, n);
2523
2524
  }
2524
2525
  return e;
2525
2526
  }
2526
2527
  safe_merge(e) {
2527
- return F(this.props, (function(t, i) {
2528
+ return T(this.props, (function(t, i) {
2528
2529
  i in e || (e[i] = t);
2529
2530
  })), e;
2530
2531
  }
@@ -2564,7 +2565,7 @@ class xi {
2564
2565
  (function(r) {
2565
2566
  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
2567
  })({});
2567
- var Si = (function(r) {
2568
+ var Ci = (function(r) {
2568
2569
  return r.Popover = "popover", r.API = "api", r.Widget = "widget", r.ExternalSurvey = "external_survey", r;
2569
2570
  })({});
2570
2571
  (function(r) {
@@ -2583,7 +2584,7 @@ var jt = (function(r) {
2583
2584
  })({}), kn = (function(r) {
2584
2585
  return r.Popover = "popover", r.Inline = "inline", r;
2585
2586
  })({});
2586
- class cr {
2587
+ class ur {
2587
2588
  constructor() {
2588
2589
  this.ki = {}, this.ki = {};
2589
2590
  }
@@ -2599,7 +2600,7 @@ class cr {
2599
2600
  }
2600
2601
  class Be {
2601
2602
  constructor(e) {
2602
- this.Pi = new cr(), this.Ti = (t, i) => this.Ii(t, i) && this.Ri(t, i) && this.Ci(t, i), this.Ii = (t, i) => i == null || !i.event || (t == null ? void 0 : t.event) === (i == null ? void 0 : i.event), this._instance = e, this.Oi = /* @__PURE__ */ new Set(), this.Fi = /* @__PURE__ */ new Set();
2603
+ this.Pi = new ur(), this.Ti = (t, i) => this.Ii(t, i) && this.Ri(t, i) && this.Ci(t, i), this.Ii = (t, i) => i == null || !i.event || (t == null ? void 0 : t.event) === (i == null ? void 0 : i.event), this._instance = e, this.Oi = /* @__PURE__ */ new Set(), this.Fi = /* @__PURE__ */ new Set();
2603
2604
  }
2604
2605
  init() {
2605
2606
  var e;
@@ -2680,13 +2681,13 @@ class Be {
2680
2681
  return (e == null ? void 0 : e.properties.$elements) == null ? [] : e == null ? void 0 : e.properties.$elements;
2681
2682
  }
2682
2683
  }
2683
- var I = U("[Surveys]"), Xi = "seenSurvey_", Fo = (r, e) => {
2684
+ var $ = U("[Surveys]"), Xi = "seenSurvey_", To = (r, e) => {
2684
2685
  var t = "$survey_" + e + "/" + r.id;
2685
2686
  return r.current_iteration && r.current_iteration > 0 && (t = "$survey_" + e + "/" + r.id + "/" + r.current_iteration), t;
2686
2687
  }, ns = (r) => {
2687
2688
  var e = "" + Xi + r.id;
2688
2689
  return r.current_iteration && r.current_iteration > 0 && (e = "" + Xi + r.id + "_" + r.current_iteration), e;
2689
- }, To = [Si.Popover, Si.Widget, Si.API], Oo = { ignoreConditions: !1, ignoreDelay: !1, displayType: kn.Popover };
2690
+ }, Fo = [Ci.Popover, Ci.Widget, Ci.API], Oo = { ignoreConditions: !1, ignoreDelay: !1, displayType: kn.Popover };
2690
2691
  class Ro {
2691
2692
  constructor(e) {
2692
2693
  this._instance = e, this.Ui = /* @__PURE__ */ new Map(), this.zi = /* @__PURE__ */ new Map();
@@ -2733,14 +2734,14 @@ class Ro {
2733
2734
  var i, s, n = ((i = this._instance) == null || (i = i.persistence) == null ? void 0 : i.props[Rt]) || [];
2734
2735
  if (jt.SHOWN === e && t && n.length > 0) {
2735
2736
  var a;
2736
- I.info("survey event matched, removing survey from activated surveys", { event: e, eventPayload: t, existingActivatedSurveys: n });
2737
+ $.info("survey event matched, removing survey from activated surveys", { event: e, eventPayload: t, existingActivatedSurveys: n });
2737
2738
  var o = t == null || (a = t.properties) == null ? void 0 : a.$survey_id;
2738
2739
  if (o) {
2739
2740
  var l = n.indexOf(o);
2740
2741
  l >= 0 && (n.splice(l, 1), this.Wi(n));
2741
2742
  }
2742
2743
  } else if (this.Ui.has(e)) {
2743
- I.info("survey event name matched", { event: e, eventPayload: t, surveys: this.Ui.get(e) });
2744
+ $.info("survey event name matched", { event: e, eventPayload: t, surveys: this.Ui.get(e) });
2744
2745
  var c = [];
2745
2746
  (s = this._instance) == null || s.getSurveys(((h) => {
2746
2747
  c = h.filter(((g) => {
@@ -2753,8 +2754,8 @@ class Ro {
2753
2754
  return !!p && (!p.propertyFilters || Object.entries(p.propertyFilters).every(((f) => {
2754
2755
  var _, [b, E] = f, x = t == null || (_ = t.properties) == null ? void 0 : _[b];
2755
2756
  if (v(x) || Ee(x)) return !1;
2756
- var $ = [String(x)], P = En[E.operator];
2757
- return P ? P(E.values, $) : (I.warn("Unknown property comparison operator: " + E.operator), !1);
2757
+ var I = [String(x)], C = En[E.operator];
2758
+ return C ? C(E.values, I) : ($.warn("Unknown property comparison operator: " + E.operator), !1);
2758
2759
  })));
2759
2760
  }));
2760
2761
  this.Wi(n.concat(u.map(((h) => h.id)) || []));
@@ -2766,7 +2767,7 @@ class Ro {
2766
2767
  }
2767
2768
  Wi(e) {
2768
2769
  var t;
2769
- I.info("updating activated surveys", { activatedSurveys: e }), (t = this._instance) == null || (t = t.persistence) == null || t.register({ [Rt]: [...new Set(e)] });
2770
+ $.info("updating activated surveys", { activatedSurveys: e }), (t = this._instance) == null || (t = t.persistence) == null || t.register({ [Rt]: [...new Set(e)] });
2770
2771
  }
2771
2772
  getSurveys() {
2772
2773
  var e, t = (e = this._instance) == null || (e = e.persistence) == null ? void 0 : e.props[Rt];
@@ -2779,16 +2780,16 @@ class Ro {
2779
2780
  return this.qi;
2780
2781
  }
2781
2782
  }
2782
- class Do {
2783
+ class Ao {
2783
2784
  constructor(e) {
2784
2785
  this.Vi = void 0, this._surveyManager = null, this.Ji = !1, this.Ki = !1, this.Yi = [], this._instance = e, this._surveyEventReceiver = null;
2785
2786
  }
2786
2787
  onRemoteConfig(e) {
2787
2788
  if (!this._instance.config.disable_surveys) {
2788
2789
  var t = e.surveys;
2789
- if (O(t)) return I.warn("Flags not loaded yet. Not loading surveys.");
2790
- var i = T(t);
2791
- this.Vi = i ? t.length > 0 : t, I.info("flags response received, isSurveysEnabled: " + this.Vi), this.loadIfEnabled();
2790
+ if (O(t)) return $.warn("Flags not loaded yet. Not loading surveys.");
2791
+ var i = F(t);
2792
+ this.Vi = i ? t.length > 0 : t, $.info("flags response received, isSurveysEnabled: " + this.Vi), this.loadIfEnabled();
2792
2793
  }
2793
2794
  }
2794
2795
  reset() {
@@ -2800,9 +2801,9 @@ class Do {
2800
2801
  e.forEach(((s) => localStorage.removeItem(s)));
2801
2802
  }
2802
2803
  loadIfEnabled() {
2803
- if (!this._surveyManager) if (this.Ki) I.info("Already initializing surveys, skipping...");
2804
- else if (this._instance.config.disable_surveys) I.info("Disabled. Not loading surveys.");
2805
- else if (this._instance.config.cookieless_mode && this._instance.consent.isOptedOut()) I.info("Not loading surveys in cookieless mode without consent.");
2804
+ if (!this._surveyManager) if (this.Ki) $.info("Already initializing surveys, skipping...");
2805
+ else if (this._instance.config.disable_surveys) $.info("Disabled. Not loading surveys.");
2806
+ else if (this._instance.config.cookieless_mode && this._instance.consent.isOptedOut()) $.info("Not loading surveys in cookieless mode without consent.");
2806
2807
  else {
2807
2808
  var e = k == null ? void 0 : k.__PosthogExtensions__;
2808
2809
  if (e) {
@@ -2823,14 +2824,14 @@ class Do {
2823
2824
  this.Ki = !1;
2824
2825
  }
2825
2826
  }
2826
- } else I.error("PostHog Extensions not found.");
2827
+ } else $.error("PostHog Extensions not found.");
2827
2828
  }
2828
2829
  }
2829
2830
  Xi(e, t) {
2830
- this._surveyManager = e(this._instance, t), this._surveyEventReceiver = new Ro(this._instance), I.info("Surveys loaded successfully"), this.Zi({ isLoaded: !0 });
2831
+ this._surveyManager = e(this._instance, t), this._surveyEventReceiver = new Ro(this._instance), $.info("Surveys loaded successfully"), this.Zi({ isLoaded: !0 });
2831
2832
  }
2832
2833
  Qi(e, t) {
2833
- I.error(e, t), this.Zi({ isLoaded: !1, error: e });
2834
+ $.error(e, t), this.Zi({ isLoaded: !1, error: e });
2834
2835
  }
2835
2836
  onSurveysLoaded(e) {
2836
2837
  return this.Yi.push(e), this._surveyManager && this.Zi({ isLoaded: !0 }), () => {
@@ -2838,8 +2839,8 @@ class Do {
2838
2839
  };
2839
2840
  }
2840
2841
  getSurveys(e, t) {
2841
- if (t === void 0 && (t = !1), this._instance.config.disable_surveys) return I.info("Disabled. Not loading surveys."), e([]);
2842
- var i = this._instance.get_property(Li);
2842
+ if (t === void 0 && (t = !1), this._instance.config.disable_surveys) return $.info("Disabled. Not loading surveys."), e([]);
2843
+ var i = this._instance.get_property(Ni);
2843
2844
  if (i && !t) return e(i, { isLoaded: !0 });
2844
2845
  if (this.Ji) return e([], { isLoaded: !1, error: "Surveys are already being loaded" });
2845
2846
  try {
@@ -2849,7 +2850,7 @@ class Do {
2849
2850
  var a = s.statusCode;
2850
2851
  if (a !== 200 || !s.json) {
2851
2852
  var o = "Surveys API could not be loaded, status: " + a;
2852
- return I.error(o), e([], { isLoaded: !1, error: o });
2853
+ return $.error(o), e([], { isLoaded: !1, error: o });
2853
2854
  }
2854
2855
  var l, c = s.json.surveys || [], u = c.filter(((h) => (function(g) {
2855
2856
  return !(!g.start_date || g.end_date);
@@ -2860,7 +2861,7 @@ class Do {
2860
2861
  var p;
2861
2862
  return !((p = g.conditions) == null || (p = p.actions) == null || (p = p.values) == null || !p.length);
2862
2863
  })(h))));
2863
- return u.length > 0 && ((l = this._surveyEventReceiver) == null || l.register(u)), (n = this._instance.persistence) == null || n.register({ [Li]: c }), e(c, { isLoaded: !0 });
2864
+ return u.length > 0 && ((l = this._surveyEventReceiver) == null || l.register(u)), (n = this._instance.persistence) == null || n.register({ [Ni]: c }), e(c, { isLoaded: !0 });
2864
2865
  } });
2865
2866
  } catch (s) {
2866
2867
  throw this.Ji = !1, s;
@@ -2871,12 +2872,12 @@ class Do {
2871
2872
  if (!e.isLoaded) return t([], e);
2872
2873
  this.getSurveys(t);
2873
2874
  } catch (i) {
2874
- I.error("Error in survey callback", i);
2875
+ $.error("Error in survey callback", i);
2875
2876
  }
2876
2877
  }
2877
2878
  getActiveMatchingSurveys(e, t) {
2878
2879
  if (t === void 0 && (t = !1), !O(this._surveyManager)) return this._surveyManager.getActiveMatchingSurveys(e, t);
2879
- I.warn("init was not called");
2880
+ $.warn("init was not called");
2880
2881
  }
2881
2882
  te(e) {
2882
2883
  var t = null;
@@ -2891,12 +2892,12 @@ class Do {
2891
2892
  return t ? this._surveyManager.checkSurveyEligibility(t) : { eligible: !1, reason: "Survey not found" };
2892
2893
  }
2893
2894
  canRenderSurvey(e) {
2894
- if (O(this._surveyManager)) return I.warn("init was not called"), { visible: !1, disabledReason: "SDK is not enabled or survey functionality is not yet loaded" };
2895
+ if (O(this._surveyManager)) return $.warn("init was not called"), { visible: !1, disabledReason: "SDK is not enabled or survey functionality is not yet loaded" };
2895
2896
  var t = this.ie(e);
2896
2897
  return { visible: t.eligible, disabledReason: t.reason };
2897
2898
  }
2898
2899
  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
+ return O(this._surveyManager) ? ($.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
2901
  this.getSurveys(((s) => {
2901
2902
  var n, a = (n = s.find(((l) => l.id === e))) !== null && n !== void 0 ? n : null;
2902
2903
  if (a) {
@@ -2908,38 +2909,38 @@ class Do {
2908
2909
  }
2909
2910
  renderSurvey(e, t) {
2910
2911
  var i;
2911
- if (O(this._surveyManager)) I.warn("init was not called");
2912
+ if (O(this._surveyManager)) $.warn("init was not called");
2912
2913
  else {
2913
2914
  var s = typeof e == "string" ? this.te(e) : e;
2914
- if (s != null && s.id) if (To.includes(s.type)) {
2915
+ if (s != null && s.id) if (Fo.includes(s.type)) {
2915
2916
  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((() => {
2917
+ if (n) return (i = s.appearance) != null && i.surveyPopupDelaySeconds ? ($.info("Rendering survey " + s.id + " with delay of " + s.appearance.surveyPopupDelaySeconds + " seconds"), void setTimeout((() => {
2917
2918
  var a, o;
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
+ $.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), $.info("Survey " + s.id + " rendered");
2919
2920
  }), 1e3 * s.appearance.surveyPopupDelaySeconds)) : void this._surveyManager.renderSurvey(s, n);
2920
- I.warn("Survey element not found");
2921
- } else I.warn("Surveys of type " + s.type + " cannot be rendered in the app");
2922
- else I.warn("Survey not found");
2921
+ $.warn("Survey element not found");
2922
+ } else $.warn("Surveys of type " + s.type + " cannot be rendered in the app");
2923
+ else $.warn("Survey not found");
2923
2924
  }
2924
2925
  }
2925
2926
  displaySurvey(e, t) {
2926
2927
  var i;
2927
- if (O(this._surveyManager)) I.warn("init was not called");
2928
+ if (O(this._surveyManager)) $.warn("init was not called");
2928
2929
  else {
2929
2930
  var s = this.te(e);
2930
2931
  if (s) {
2931
2932
  var n = s;
2932
2933
  if ((i = s.appearance) != null && i.surveyPopupDelaySeconds && t.ignoreDelay && (n = w({}, s, { appearance: w({}, s.appearance, { surveyPopupDelaySeconds: 0 }) })), t.ignoreConditions === !1) {
2933
2934
  var a = this.canRenderSurvey(s);
2934
- if (!a.visible) return void I.warn("Survey is not eligible to be displayed: ", a.disabledReason);
2935
+ if (!a.visible) return void $.warn("Survey is not eligible to be displayed: ", a.disabledReason);
2935
2936
  }
2936
2937
  t.displayType !== kn.Inline ? this._surveyManager.handlePopoverSurvey(n) : this.renderSurvey(n, t.selector);
2937
- } else I.warn("Survey not found");
2938
+ } else $.warn("Survey not found");
2938
2939
  }
2939
2940
  }
2940
2941
  }
2941
2942
  var as = U("[RateLimiter]");
2942
- class Mo {
2943
+ class Do {
2943
2944
  constructor(e) {
2944
2945
  var t, i;
2945
2946
  this.serverLimits = {}, this.lastEventRateLimited = !1, this.checkForLimiting = (s) => {
@@ -2956,10 +2957,10 @@ class Mo {
2956
2957
  clientRateLimitContext(e) {
2957
2958
  var t, i, s;
2958
2959
  e === void 0 && (e = !1);
2959
- var n = (/* @__PURE__ */ new Date()).getTime(), a = (t = (i = this.instance.persistence) == null ? void 0 : i.get_property(Ui)) !== null && t !== void 0 ? t : { tokens: this.captureEventsBurstLimit, last: n };
2960
+ var n = (/* @__PURE__ */ new Date()).getTime(), a = (t = (i = this.instance.persistence) == null ? void 0 : i.get_property(qi)) !== null && t !== void 0 ? t : { tokens: this.captureEventsBurstLimit, last: n };
2960
2961
  a.tokens += (n - a.last) / 1e3 * this.captureEventsPerSecond, a.last = n, a.tokens > this.captureEventsBurstLimit && (a.tokens = this.captureEventsBurstLimit);
2961
2962
  var o = a.tokens < 1;
2962
- return o || e || (a.tokens = Math.max(0, a.tokens - 1)), !o || this.lastEventRateLimited || e || this.instance.capture("$$client_ingestion_warning", { $$client_ingestion_warning_message: "posthog-js client rate limited. Config is set to " + this.captureEventsPerSecond + " events per second and " + this.captureEventsBurstLimit + " events burst limit." }, { skip_client_rate_limiting: !0 }), this.lastEventRateLimited = o, (s = this.instance.persistence) == null || s.set_property(Ui, a), { isRateLimited: o, remainingTokens: a.tokens };
2963
+ return o || e || (a.tokens = Math.max(0, a.tokens - 1)), !o || this.lastEventRateLimited || e || this.instance.capture("$$client_ingestion_warning", { $$client_ingestion_warning_message: "posthog-js client rate limited. Config is set to " + this.captureEventsPerSecond + " events per second and " + this.captureEventsBurstLimit + " events burst limit." }, { skip_client_rate_limiting: !0 }), this.lastEventRateLimited = o, (s = this.instance.persistence) == null || s.set_property(qi, a), { isRateLimited: o, remainingTokens: a.tokens };
2963
2964
  }
2964
2965
  isServerRateLimited(e) {
2965
2966
  var t = this.serverLimits[e || "events"] || !1;
@@ -2967,7 +2968,7 @@ class Mo {
2967
2968
  }
2968
2969
  }
2969
2970
  var qe = U("[RemoteConfig]");
2970
- class Ao {
2971
+ class Mo {
2971
2972
  constructor(e) {
2972
2973
  this._instance = e;
2973
2974
  }
@@ -3002,10 +3003,10 @@ class Ao {
3002
3003
  e ? this._instance.config.__preview_remote_config ? (this._instance.fi(e), e.hasFeatureFlags !== !1 && this._instance.featureFlags.ensureFlagsLoaded()) : qe.info("__preview_remote_config is disabled. Logging config instead", e) : qe.error("Failed to fetch remote config from PostHog.");
3003
3004
  }
3004
3005
  }
3005
- var Ki = 3e3;
3006
+ var Ji = 3e3;
3006
3007
  class Lo {
3007
3008
  constructor(e, t) {
3008
- this.se = !0, this.ne = [], this.oe = de((t == null ? void 0 : t.flush_interval_ms) || Ki, 250, 5e3, y.createLogger("flush interval"), Ki), this.ae = e;
3009
+ this.se = !0, this.ne = [], this.oe = de((t == null ? void 0 : t.flush_interval_ms) || Ji, 250, 5e3, y.createLogger("flush interval"), Ji), this.ae = e;
3009
3010
  }
3010
3011
  enqueue(e) {
3011
3012
  this.ne.push(e), this.le || this.ue();
@@ -3026,7 +3027,7 @@ class Lo {
3026
3027
  if (this.he(), this.ne.length > 0) {
3027
3028
  var t = this.de(), i = function() {
3028
3029
  var n = t[s], a = (/* @__PURE__ */ new Date()).getTime();
3029
- n.data && T(n.data) && F(n.data, ((o) => {
3030
+ n.data && F(n.data) && T(n.data, ((o) => {
3030
3031
  o.offset = Math.abs(o.timestamp - a), delete o.timestamp;
3031
3032
  })), e.ae(n);
3032
3033
  };
@@ -3039,7 +3040,7 @@ class Lo {
3039
3040
  }
3040
3041
  de() {
3041
3042
  var e = {};
3042
- return F(this.ne, ((t) => {
3043
+ return T(this.ne, ((t) => {
3043
3044
  var i, s = t, n = (s ? s.batchKey : null) || s.url;
3044
3045
  v(e[n]) && (e[n] = w({}, s, { data: [] })), (i = e[n].data) == null || i.push(s.data);
3045
3046
  })), this.ne = [], e;
@@ -3059,7 +3060,7 @@ class Uo {
3059
3060
  }
3060
3061
  retriableRequest(e) {
3061
3062
  var { retriesPerformedSoFar: t } = e, i = ms(e, No);
3062
- fe(t) && t > 0 && (i.url = ri(i.url, { retry_count: t })), this._instance.ci(w({}, i, { callback: (s) => {
3063
+ fe(t) && t > 0 && (i.url = si(i.url, { retry_count: t })), this._instance.ci(w({}, i, { callback: (s) => {
3063
3064
  s.statusCode !== 200 && (s.statusCode < 400 || s.statusCode >= 500) && (t ?? 0) < 10 ? this._e(w({ retriesPerformedSoFar: t }, i)) : i.callback == null || i.callback(s);
3064
3065
  } }));
3065
3066
  }
@@ -3114,7 +3115,7 @@ class qo {
3114
3115
  }
3115
3116
  scrollElement() {
3116
3117
  if (!this._instance.config.scroll_root_selector) return d == null ? void 0 : d.document.documentElement;
3117
- var e = T(this._instance.config.scroll_root_selector) ? this._instance.config.scroll_root_selector : [this._instance.config.scroll_root_selector];
3118
+ var e = F(this._instance.config.scroll_root_selector) ? this._instance.config.scroll_root_selector : [this._instance.config.scroll_root_selector];
3118
3119
  for (var t of e) {
3119
3120
  var i = d == null ? void 0 : d.document.querySelector(t);
3120
3121
  if (i) return i;
@@ -3142,12 +3143,12 @@ class os {
3142
3143
  var a = this.$e();
3143
3144
  if (!a || a.sessionId !== n) {
3144
3145
  var o = { sessionId: n, props: this.Se(this._instance) };
3145
- this.Ee.register({ [Ni]: o });
3146
+ this.Ee.register({ [Ui]: o });
3146
3147
  }
3147
3148
  }, this._instance = e, this.ke = t, this.Ee = i, this.Se = s || jo, this.ke.onSessionId(this.xe);
3148
3149
  }
3149
3150
  $e() {
3150
- return this.Ee.props[Ni];
3151
+ return this.Ee.props[Ui];
3151
3152
  }
3152
3153
  getSetOnceProps() {
3153
3154
  var e, t = (e = this.$e()) == null ? void 0 : e.props;
@@ -3155,7 +3156,7 @@ class os {
3155
3156
  }
3156
3157
  getSessionProps() {
3157
3158
  var e = {};
3158
- return F(Qi(this.getSetOnceProps()), ((t, i) => {
3159
+ return T(er(this.getSetOnceProps()), ((t, i) => {
3159
3160
  i === "$current_url" && (i = "url"), e["$session_entry_" + Fi(i)] = t;
3160
3161
  })), e;
3161
3162
  }
@@ -3167,9 +3168,9 @@ class ls {
3167
3168
  }
3168
3169
  constructor(e, t, i) {
3169
3170
  var s;
3170
- if (this.Te = [], this.Ie = void 0, this.Pe = new cr(), this.Re = (u, h) => Math.abs(u - h) > this.sessionTimeoutMs, !e.persistence) throw new Error("SessionIdManager requires a PostHogPersistence instance");
3171
+ if (this.Te = [], this.Ie = void 0, this.Pe = new ur(), this.Re = (u, h) => Math.abs(u - h) > this.sessionTimeoutMs, !e.persistence) throw new Error("SessionIdManager requires a PostHogPersistence instance");
3171
3172
  if (e.config.cookieless_mode === "always") throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');
3172
- this.C = e.config, this.Ee = e.persistence, this.Ce = void 0, this.Oe = void 0, this._sessionStartTimestamp = null, this._sessionActivityTimestamp = null, this.Fe = t || Fe, this.Me = i || Fe;
3173
+ this.C = e.config, this.Ee = e.persistence, this.Ce = void 0, this.Oe = void 0, this._sessionStartTimestamp = null, this._sessionActivityTimestamp = null, this.Fe = t || Te, this.Me = i || Te;
3173
3174
  var n = this.C.persistence_name || this.C.token, a = this.C.session_idle_timeout_seconds || 1800;
3174
3175
  if (this._sessionTimeoutMs = 1e3 * de(a, 60, 36e3, Pi.createLogger("session_idle_timeout_seconds"), 1800), e.register({ $configured_session_timeout_ms: this._sessionTimeoutMs }), this.Ae(), this.De = "ph_" + n + "_window_id", this.je = "ph_" + n + "_primary_window_exists", this.Le()) {
3175
3176
  var o = q.W(this.De), l = q.W(this.je);
@@ -3206,12 +3207,12 @@ class ls {
3206
3207
  return this.Ce ? this.Ce : this.Le() ? q.W(this.De) : null;
3207
3208
  }
3208
3209
  Ne(e, t, i) {
3209
- e === this.Oe && t === this._sessionActivityTimestamp && i === this._sessionStartTimestamp || (this._sessionStartTimestamp = i, this._sessionActivityTimestamp = t, this.Oe = e, this.Ee.register({ [Wt]: [t, e, i] }));
3210
+ e === this.Oe && t === this._sessionActivityTimestamp && i === this._sessionStartTimestamp || (this._sessionStartTimestamp = i, this._sessionActivityTimestamp = t, this.Oe = e, this.Ee.register({ [zt]: [t, e, i] }));
3210
3211
  }
3211
3212
  Be() {
3212
3213
  if (this.Oe && this._sessionActivityTimestamp && this._sessionStartTimestamp) return [this._sessionActivityTimestamp, this.Oe, this._sessionStartTimestamp];
3213
- var e = this.Ee.props[Wt];
3214
- return T(e) && e.length === 2 && e.push(e[0]), e || [0, null, 0];
3214
+ var e = this.Ee.props[zt];
3215
+ return F(e) && e.length === 2 && e.push(e[0]), e || [0, null, 0];
3215
3216
  }
3216
3217
  resetSessionId() {
3217
3218
  this.Ne(null, null, null);
@@ -3241,7 +3242,7 @@ class ls {
3241
3242
  }), 1.1 * this.sessionTimeoutMs);
3242
3243
  }
3243
3244
  }
3244
- var Bo = ["$set_once", "$set"], $e = U("[SiteApps]");
3245
+ var Bo = ["$set_once", "$set"], Ie = U("[SiteApps]");
3245
3246
  class Ho {
3246
3247
  constructor(e) {
3247
3248
  this._instance = e, this.We = [], this.apps = {};
@@ -3278,9 +3279,9 @@ class Ho {
3278
3279
  setupSiteApp(e) {
3279
3280
  var t = this.apps[e.id], i = () => {
3280
3281
  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));
3282
+ !t.errored && this.We.length && (Ie.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
3283
  }, s = !1, n = (o) => {
3283
- t.errored = !o, t.loaded = !0, $e.info("Site app with id " + e.id + " " + (o ? "loaded" : "errored")), s && i();
3284
+ t.errored = !o, t.loaded = !0, Ie.info("Site app with id " + e.id + " " + (o ? "loaded" : "errored")), s && i();
3284
3285
  };
3285
3286
  try {
3286
3287
  var { processEvent: a } = e.init({ posthog: this._instance, callback: (o) => {
@@ -3288,12 +3289,12 @@ class Ho {
3288
3289
  } });
3289
3290
  a && (t.processEvent = a), s = !0;
3290
3291
  } catch (o) {
3291
- $e.error("Error while initializing PostHog app with config id " + e.id, o), n(!1);
3292
+ Ie.error("Error while initializing PostHog app with config id " + e.id, o), n(!1);
3292
3293
  }
3293
3294
  if (s && t.loaded) try {
3294
3295
  i();
3295
3296
  } catch (o) {
3296
- $e.error("Error while processing buffered events PostHog app with config id " + e.id, o), t.errored = !0;
3297
+ Ie.error("Error while processing buffered events PostHog app with config id " + e.id, o), t.errored = !0;
3297
3298
  }
3298
3299
  }
3299
3300
  Je() {
@@ -3307,22 +3308,22 @@ class Ho {
3307
3308
  for (var i of Object.values(this.apps)) try {
3308
3309
  i.processEvent == null || i.processEvent(t);
3309
3310
  } catch (s) {
3310
- $e.error("Error while processing event " + e.event + " for site app " + i.id, s);
3311
+ Ie.error("Error while processing event " + e.event + " for site app " + i.id, s);
3311
3312
  }
3312
3313
  }
3313
3314
  }
3314
3315
  onRemoteConfig(e) {
3315
3316
  var t, i, s, n = this;
3316
- if ((t = this.siteAppLoaders) != null && t.length) return this.isEnabled ? (this.Je(), void this._instance.on("eventCaptured", ((c) => this.Ke(c)))) : void $e.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');
3317
+ if ((t = this.siteAppLoaders) != null && t.length) return this.isEnabled ? (this.Je(), void this._instance.on("eventCaptured", ((c) => this.Ke(c)))) : void Ie.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');
3317
3318
  if ((i = this.Ve) == null || i.call(this), (s = e.siteApps) != null && s.length) if (this.isEnabled) {
3318
3319
  var a = function(c) {
3319
3320
  var u;
3320
3321
  k["__$$ph_site_app_" + c] = n._instance, (u = k.__PosthogExtensions__) == null || u.loadSiteApp == null || u.loadSiteApp(n._instance, l, ((h) => {
3321
- if (h) return $e.error("Error while initializing PostHog app with config id " + c, h);
3322
+ if (h) return Ie.error("Error while initializing PostHog app with config id " + c, h);
3322
3323
  }));
3323
3324
  };
3324
3325
  for (var { id: o, url: l } of e.siteApps) a(o);
3325
- } else $e.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');
3326
+ } else Ie.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');
3326
3327
  }
3327
3328
  }
3328
3329
  var xn = function(r, e) {
@@ -3408,7 +3409,7 @@ class B {
3408
3409
  previewWebExperiment() {
3409
3410
  var e = B.getWindowLocation();
3410
3411
  if (e != null && e.search) {
3411
- var t = Zt(e == null ? void 0 : e.search, "__experiment_id"), i = Zt(e == null ? void 0 : e.search, "__experiment_variant");
3412
+ var t = Qt(e == null ? void 0 : e.search, "__experiment_id"), i = Qt(e == null ? void 0 : e.search, "__experiment_variant");
3412
3413
  t && i && (B.Xe("previewing web experiments " + t + " && " + i), this.getWebExperiments(((s) => {
3413
3414
  this.ir(parseInt(t), i, s);
3414
3415
  }), !1, !0));
@@ -3500,7 +3501,7 @@ class Yo {
3500
3501
  }
3501
3502
  }
3502
3503
  }
3503
- var Ji = "[SessionRecording]", pt = U(Ji);
3504
+ var Zi = "[SessionRecording]", pt = U(Zi);
3504
3505
  class us {
3505
3506
  get started() {
3506
3507
  var e;
@@ -3510,11 +3511,11 @@ class us {
3510
3511
  return this.sr ? this.sr.status : this.nr && !this.ar ? "disabled" : "lazy_loading";
3511
3512
  }
3512
3513
  constructor(e) {
3513
- if (this._forceAllowLocalhostNetworkCapture = !1, this.nr = !1, this.lr = void 0, this._instance = e, !this._instance.sessionManager) throw pt.error("started without valid sessionManager"), new Error(Ji + " started without valid sessionManager. This is a bug.");
3514
- if (this._instance.config.cookieless_mode === "always") throw new Error(Ji + ' cannot be used with cookieless_mode="always"');
3514
+ if (this._forceAllowLocalhostNetworkCapture = !1, this.nr = !1, this.lr = void 0, this._instance = e, !this._instance.sessionManager) throw pt.error("started without valid sessionManager"), new Error(Zi + " started without valid sessionManager. This is a bug.");
3515
+ if (this._instance.config.cookieless_mode === "always") throw new Error(Zi + ' cannot be used with cookieless_mode="always"');
3515
3516
  }
3516
3517
  get ar() {
3517
- var e, t = !((e = this._instance.get_property(pi)) == null || !e.enabled), i = !this._instance.config.disable_session_recording, s = this._instance.config.disable_session_recording || this._instance.consent.isOptedOut();
3518
+ var e, t = !((e = this._instance.get_property(gi)) == null || !e.enabled), i = !this._instance.config.disable_session_recording, s = this._instance.config.disable_session_recording || this._instance.consent.isOptedOut();
3518
3519
  return d && t && i && !s;
3519
3520
  }
3520
3521
  startIfEnabledOrStop(e) {
@@ -3537,7 +3538,7 @@ class us {
3537
3538
  }
3538
3539
  vr() {
3539
3540
  var e;
3540
- (e = this._instance.persistence) == null || e.unregister($s);
3541
+ (e = this._instance.persistence) == null || e.unregister(Is);
3541
3542
  }
3542
3543
  cr(e) {
3543
3544
  if (this._instance.persistence) {
@@ -3545,7 +3546,7 @@ class us {
3545
3546
  var a = e.sessionRecording === !1 ? void 0 : e.sessionRecording, o = a == null ? void 0 : a.sampleRate, l = O(o) ? null : parseFloat(o);
3546
3547
  O(l) && this.vr();
3547
3548
  var c = a == null ? void 0 : a.minimumDurationMilliseconds;
3548
- s.register({ [pi]: w({ enabled: !!a }, a, { networkPayloadCapture: w({ capturePerformance: e.capturePerformance }, a == null ? void 0 : a.networkPayloadCapture), canvasRecording: { enabled: a == null ? void 0 : a.recordCanvas, fps: a == null ? void 0 : a.canvasFps, quality: a == null ? void 0 : a.canvasQuality }, sampleRate: l, minimumDurationMilliseconds: v(c) ? null : c, endpoint: a == null ? void 0 : a.endpoint, triggerMatchType: a == null ? void 0 : a.triggerMatchType, masking: a == null ? void 0 : a.masking, urlTriggers: a == null ? void 0 : a.urlTriggers }) });
3549
+ s.register({ [gi]: w({ enabled: !!a }, a, { networkPayloadCapture: w({ capturePerformance: e.capturePerformance }, a == null ? void 0 : a.networkPayloadCapture), canvasRecording: { enabled: a == null ? void 0 : a.recordCanvas, fps: a == null ? void 0 : a.canvasFps, quality: a == null ? void 0 : a.canvasQuality }, sampleRate: l, minimumDurationMilliseconds: v(c) ? null : c, endpoint: a == null ? void 0 : a.endpoint, triggerMatchType: a == null ? void 0 : a.triggerMatchType, masking: a == null ? void 0 : a.masking, urlTriggers: a == null ? void 0 : a.urlTriggers }) });
3549
3550
  };
3550
3551
  n(), (t = this.lr) == null || t.call(this), this.lr = (i = this._instance.sessionManager) == null ? void 0 : i.onSessionId(n);
3551
3552
  }
@@ -3558,7 +3559,7 @@ class us {
3558
3559
  t === void 0 && (t = "log"), (i = this.sr) != null && i.log ? this.sr.log(e, t) : pt.warn("log called before recorder was ready");
3559
3560
  }
3560
3561
  get dr() {
3561
- var e, t, i = (e = this._instance) == null || (e = e.persistence) == null ? void 0 : e.get_property(pi);
3562
+ var e, t, i = (e = this._instance) == null || (e = e.persistence) == null ? void 0 : e.get_property(gi);
3562
3563
  return (i == null || (t = i.scriptConfig) == null ? void 0 : t.script) || "lazy-recorder";
3563
3564
  }
3564
3565
  hr(e) {
@@ -3591,20 +3592,20 @@ class us {
3591
3592
  return !((i = this.sr) == null || !i.tryAddCustomEvent(e, t));
3592
3593
  }
3593
3594
  }
3594
- var kt = {}, Zi = () => {
3595
- }, Xe = "posthog", Sn = !xo && (W == null ? void 0 : W.indexOf("MSIE")) === -1 && (W == null ? void 0 : W.indexOf("Mozilla")) === -1, hs = (r) => {
3595
+ var kt = {}, Qi = () => {
3596
+ }, Ke = "posthog", Sn = !xo && (W == null ? void 0 : W.indexOf("MSIE")) === -1 && (W == null ? void 0 : W.indexOf("Mozilla")) === -1, hs = (r) => {
3596
3597
  var e;
3597
- return w({ api_host: "https://us.i.posthog.com", flags_api_host: null, ui_host: null, token: "", autocapture: !0, cross_subdomain_cookie: va(m == null ? void 0 : m.location), persistence: "localStorage+cookie", persistence_name: "", loaded: Zi, save_campaign_params: !0, custom_campaign_params: [], custom_blocked_useragents: [], save_referrer: !0, capture_pageleave: "if_capture_pageview", defaults: r ?? "unset", __preview_deferred_init_extensions: !1, debug: z && N(z == null ? void 0 : z.search) && z.search.indexOf("__posthog_debug=true") !== -1 || !1, cookie_expiration: 365, upgrade: !1, disable_session_recording: !1, disable_persistence: !1, disable_web_experiments: !0, disable_surveys: !1, disable_surveys_automatic_display: !1, disable_external_dependency_loading: !1, enable_recording_console_log: void 0, secure_cookie: (d == null || (e = d.location) == null ? void 0 : e.protocol) === "https:", ip: !1, opt_out_capturing_by_default: !1, opt_out_persistence_by_default: !1, opt_out_useragent_filter: !1, opt_out_capturing_persistence_type: "localStorage", consent_persistence_name: null, opt_out_capturing_cookie_prefix: null, opt_in_site_apps: !1, property_denylist: [], respect_dnt: !1, sanitize_properties: null, request_headers: {}, request_batching: !0, properties_string_max_length: 65535, mask_all_element_attributes: !1, mask_all_text: !1, mask_personal_data_properties: !1, custom_personal_data_properties: [], advanced_disable_flags: !1, advanced_disable_decide: !1, advanced_disable_feature_flags: !1, advanced_disable_feature_flags_on_first_load: !1, advanced_only_evaluate_survey_feature_flags: !1, advanced_enable_surveys: !1, advanced_disable_toolbar_metrics: !1, feature_flag_request_timeout_ms: 3e3, surveys_request_timeout_ms: 1e4, on_request_error: (t) => {
3598
+ return w({ api_host: "https://us.i.posthog.com", flags_api_host: null, ui_host: null, token: "", autocapture: !0, cross_subdomain_cookie: va(m == null ? void 0 : m.location), persistence: "localStorage+cookie", persistence_name: "", loaded: Qi, save_campaign_params: !0, custom_campaign_params: [], custom_blocked_useragents: [], save_referrer: !0, capture_pageleave: "if_capture_pageview", defaults: r ?? "unset", __preview_deferred_init_extensions: !1, debug: z && N(z == null ? void 0 : z.search) && z.search.indexOf("__posthog_debug=true") !== -1 || !1, cookie_expiration: 365, upgrade: !1, disable_session_recording: !1, disable_persistence: !1, disable_web_experiments: !0, disable_surveys: !1, disable_surveys_automatic_display: !1, disable_external_dependency_loading: !1, enable_recording_console_log: void 0, secure_cookie: (d == null || (e = d.location) == null ? void 0 : e.protocol) === "https:", ip: !1, opt_out_capturing_by_default: !1, opt_out_persistence_by_default: !1, opt_out_useragent_filter: !1, opt_out_capturing_persistence_type: "localStorage", consent_persistence_name: null, opt_out_capturing_cookie_prefix: null, opt_in_site_apps: !1, property_denylist: [], respect_dnt: !1, sanitize_properties: null, request_headers: {}, request_batching: !0, properties_string_max_length: 65535, mask_all_element_attributes: !1, mask_all_text: !1, mask_personal_data_properties: !1, custom_personal_data_properties: [], advanced_disable_flags: !1, advanced_disable_decide: !1, advanced_disable_feature_flags: !1, advanced_disable_feature_flags_on_first_load: !1, advanced_only_evaluate_survey_feature_flags: !1, advanced_enable_surveys: !1, advanced_disable_toolbar_metrics: !1, feature_flag_request_timeout_ms: 3e3, surveys_request_timeout_ms: 1e4, on_request_error: (t) => {
3598
3599
  var i = "Bad HTTP status: " + t.statusCode + " " + t.text;
3599
3600
  y.error(i);
3600
- }, get_device_id: (t) => t, capture_performance: void 0, name: "posthog", bootstrap: {}, disable_compression: !1, session_idle_timeout_seconds: 1800, person_profiles: "identified_only", before_send: void 0, request_queue_config: { flush_interval_ms: Ki }, error_tracking: {}, _onCapture: Zi, __preview_eager_load_replay: !1 }, ((t) => ({ rageclick: !(t && t >= "2025-11-30") || { content_ignorelist: !0 }, capture_pageview: !(t && t >= "2025-05-24") || "history_change", session_recording: t && t >= "2025-11-30" ? { strictMinimumDuration: !0 } : {} }))(r));
3601
+ }, get_device_id: (t) => t, capture_performance: void 0, name: "posthog", bootstrap: {}, disable_compression: !1, session_idle_timeout_seconds: 1800, person_profiles: "identified_only", before_send: void 0, request_queue_config: { flush_interval_ms: Ji }, error_tracking: {}, _onCapture: Qi, __preview_eager_load_replay: !1 }, ((t) => ({ rageclick: !(t && t >= "2025-11-30") || { content_ignorelist: !0 }, capture_pageview: !(t && t >= "2025-05-24") || "history_change", session_recording: t && t >= "2025-11-30" ? { strictMinimumDuration: !0 } : {} }))(r));
3601
3602
  }, ds = (r) => {
3602
3603
  var e = {};
3603
3604
  v(r.process_person) || (e.person_profiles = r.process_person), v(r.xhr_headers) || (e.request_headers = r.xhr_headers), v(r.cookie_name) || (e.persistence_name = r.cookie_name), v(r.disable_cookie) || (e.disable_persistence = r.disable_cookie), v(r.store_google) || (e.save_campaign_params = r.store_google), v(r.verbose) || (e.debug = r.verbose);
3604
- var t = A({}, e, r);
3605
- return T(r.property_blacklist) && (v(r.property_denylist) ? t.property_denylist = r.property_blacklist : T(r.property_denylist) ? t.property_denylist = [...r.property_blacklist, ...r.property_denylist] : y.error("Invalid value for property_denylist config: " + r.property_denylist)), t;
3605
+ var t = M({}, e, r);
3606
+ return F(r.property_blacklist) && (v(r.property_denylist) ? t.property_denylist = r.property_blacklist : F(r.property_denylist) ? t.property_denylist = [...r.property_blacklist, ...r.property_denylist] : y.error("Invalid value for property_denylist config: " + r.property_denylist)), t;
3606
3607
  };
3607
- class Xo {
3608
+ class Ko {
3608
3609
  constructor() {
3609
3610
  this.__forceAllowLocalhost = !1;
3610
3611
  }
@@ -3615,7 +3616,7 @@ class Xo {
3615
3616
  y.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"), this.__forceAllowLocalhost = e;
3616
3617
  }
3617
3618
  }
3618
- class oi {
3619
+ class li {
3619
3620
  get decideEndpointWasHit() {
3620
3621
  var e, t;
3621
3622
  return (e = (t = this.featureFlags) == null ? void 0 : t.hasLoadedFlags) !== null && e !== void 0 && e;
@@ -3625,10 +3626,10 @@ class oi {
3625
3626
  return (e = (t = this.featureFlags) == null ? void 0 : t.hasLoadedFlags) !== null && e !== void 0 && e;
3626
3627
  }
3627
3628
  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) {
3629
+ this.webPerformance = new Ko(), this.gr = !1, this.version = me.LIB_VERSION, this._r = new ur(), this._calculate_event_properties = this.calculateEventProperties.bind(this), this.config = hs(), this.SentryIntegration = Wa, this.sentryIntegration = (e) => (function(t, i) {
3629
3630
  var s = Ws(t, i);
3630
3631
  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) => {
3632
+ })(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 Io(this), this.toolbar = new Ya(this), this.scrollManager = new qo(this), this.pageViewManager = new fo(this), this.surveys = new Ao(this), this.experiments = new B(this), this.exceptions = new So(this), this.rateLimiter = new Do(this), this.requestRouter = new Vo(this), this.consent = new qa(this), this.externalIntegrations = new Yo(this), this.people = { set: (e, t, i) => {
3632
3633
  var s = N(e) ? { [e]: t } : e;
3633
3634
  this.setPersonProperties(s), i == null || i({});
3634
3635
  }, set_once: (e, t, i) => {
@@ -3637,54 +3638,54 @@ class oi {
3637
3638
  } }, this.on("eventCaptured", ((e) => y.info('send "' + (e == null ? void 0 : e.event) + '"', e)));
3638
3639
  }
3639
3640
  init(e, t, i) {
3640
- if (i && i !== Xe) {
3641
- var s, n = (s = kt[i]) !== null && s !== void 0 ? s : new oi();
3642
- return n._init(e, t, i), kt[i] = n, kt[Xe][i] = n, n;
3641
+ if (i && i !== Ke) {
3642
+ var s, n = (s = kt[i]) !== null && s !== void 0 ? s : new li();
3643
+ return n._init(e, t, i), kt[i] = n, kt[Ke][i] = n, n;
3643
3644
  }
3644
3645
  return this._init(e, t, i);
3645
3646
  }
3646
3647
  _init(e, t, i) {
3647
3648
  var s;
3648
- if (t === void 0 && (t = {}), v(e) || Ti(e)) return y.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"), this;
3649
+ if (t === void 0 && (t = {}), v(e) || Oi(e)) return y.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"), this;
3649
3650
  if (this.__loaded) return console.warn("[PostHog.js]", "You have already initialized PostHog! Re-initializing is a no-op"), this;
3650
- this.__loaded = !0, this.config = {}, t.debug = this.$r(t.debug), this.Sr = t, this.Er = [], t.person_profiles && (this.br = t.person_profiles), this.set_config(A({}, hs(t.defaults), ds(t), { name: i, token: e })), this.config.on_xhr_error && y.error("on_xhr_error is deprecated. Use on_request_error instead"), this.compression = t.disable_compression ? void 0 : we.GZipJS;
3651
+ this.__loaded = !0, this.config = {}, t.debug = this.$r(t.debug), this.Sr = t, this.Er = [], t.person_profiles && (this.br = t.person_profiles), this.set_config(M({}, hs(t.defaults), ds(t), { name: i, token: e })), this.config.on_xhr_error && y.error("on_xhr_error is deprecated. Use on_request_error instead"), this.compression = t.disable_compression ? void 0 : we.GZipJS;
3651
3652
  var n = this.kr();
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
+ this.persistence = new Si(this.config, n), this.sessionPersistence = this.config.persistence === "sessionStorage" || this.config.persistence === "memory" ? this.persistence : new Si(w({}, this.config, { persistence: "sessionStorage" }), n);
3653
3654
  var a = w({}, this.persistence.props), o = w({}, this.sessionPersistence.props);
3654
3655
  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
3656
  var l = this.config.cookieless_mode === "always" || this.config.cookieless_mode === "on_reject" && this.consent.isExplicitlyOptedOut();
3656
3657
  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
3658
  this.Rr(l);
3658
3659
  }), 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
- var c, u, h = this.config.get_device_id(Fe()), g = (c = t.bootstrap) != null && c.isIdentifiedID ? h : t.bootstrap.distinctID;
3660
+ var c, u, h = this.config.get_device_id(Te()), g = (c = t.bootstrap) != null && c.isIdentifiedID ? h : t.bootstrap.distinctID;
3660
3661
  this.persistence.set_property(ye, (u = t.bootstrap) != null && u.isIdentifiedID ? "identified" : "anonymous"), this.register({ distinct_id: t.bootstrap.distinctID, $device_id: g });
3661
3662
  }
3662
3663
  if (this.Cr()) {
3663
3664
  var p, f, _ = Object.keys(((p = t.bootstrap) == null ? void 0 : p.featureFlags) || {}).filter(((x) => {
3664
- var $;
3665
- return !(($ = t.bootstrap) == null || ($ = $.featureFlags) == null || !$[x]);
3666
- })).reduce(((x, $) => {
3667
- var P;
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, $) => {
3670
- var P, M;
3671
- return (P = t.bootstrap) != null && (P = P.featureFlagPayloads) != null && P[$] && (x[$] = (M = t.bootstrap) == null || (M = M.featureFlagPayloads) == null ? void 0 : M[$]), x;
3665
+ var I;
3666
+ return !((I = t.bootstrap) == null || (I = I.featureFlags) == null || !I[x]);
3667
+ })).reduce(((x, I) => {
3668
+ var C;
3669
+ return x[I] = ((C = t.bootstrap) == null || (C = C.featureFlags) == null ? void 0 : C[I]) || !1, x;
3670
+ }), {}), b = Object.keys(((f = t.bootstrap) == null ? void 0 : f.featureFlagPayloads) || {}).filter(((x) => _[x])).reduce(((x, I) => {
3671
+ var C, D;
3672
+ return (C = t.bootstrap) != null && (C = C.featureFlagPayloads) != null && C[I] && (x[I] = (D = t.bootstrap) == null || (D = D.featureFlagPayloads) == null ? void 0 : D[I]), x;
3672
3673
  }), {});
3673
3674
  this.featureFlags.receivedFeatureFlags({ featureFlags: _, featureFlagPayloads: b });
3674
3675
  }
3675
3676
  if (l) this.register_once({ distinct_id: ot, $device_id: null }, "");
3676
3677
  else if (!this.get_distinct_id()) {
3677
- var E = this.config.get_device_id(Fe());
3678
+ var E = this.config.get_device_id(Te());
3678
3679
  this.register_once({ distinct_id: E, $device_id: E }, ""), this.persistence.set_property(ye, "anonymous");
3679
3680
  }
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
+ 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(), Fe(this.config._onCapture) && this.config._onCapture !== Qi && (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
3682
  }
3682
3683
  Rr(e) {
3683
3684
  var t = performance.now();
3684
3685
  this.historyAutocapture = new Va(this), this.historyAutocapture.startIfEnabled();
3685
3686
  var i = [];
3686
3687
  i.push((() => {
3687
- new Ka(this).startIfEnabledOrStop();
3688
+ new Xa(this).startIfEnabledOrStop();
3688
3689
  })), i.push((() => {
3689
3690
  var s;
3690
3691
  this.siteApps = new Ho(this), (s = this.siteApps) == null || s.init();
@@ -3741,7 +3742,7 @@ class oi {
3741
3742
  }
3742
3743
  this.Ar(), this.config.capture_pageview && setTimeout((() => {
3743
3744
  (this.consent.isOptedIn() || this.config.cookieless_mode === "always") && this.Dr();
3744
- }), 1), new Ao(this).load(), this.featureFlags.flags();
3745
+ }), 1), new Mo(this).load(), this.featureFlags.flags();
3745
3746
  }
3746
3747
  Ar() {
3747
3748
  var e;
@@ -3755,9 +3756,9 @@ class oi {
3755
3756
  this.config.request_batching ? (this.jr() && this.capture("$pageleave"), (e = this.Pr) == null || e.unload(), (t = this.Ir) == null || t.unload()) : this.jr() && this.capture("$pageleave", null, { transport: "sendBeacon" });
3756
3757
  }
3757
3758
  ci(e) {
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
+ this.__loaded && (Sn ? this.__request_queue.push(e) : this.rateLimiter.isServerRateLimited(e.batchKey) || (e.transport = e.transport || this.config.api_transport, e.url = si(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
3760
  var i, s, n, a = w({}, t);
3760
- a.timeout = a.timeout || 6e4, a.url = ri(a.url, { _: (/* @__PURE__ */ new Date()).getTime().toString(), ver: me.LIB_VERSION, compression: a.compression });
3761
+ a.timeout = a.timeout || 6e4, a.url = si(a.url, { _: (/* @__PURE__ */ new Date()).getTime().toString(), ver: me.LIB_VERSION, compression: a.compression });
3761
3762
  var o = (i = a.transport) !== null && i !== void 0 ? i : "fetch", l = qt.filter(((u) => !a.disableTransport || !u.transport || !a.disableTransport.includes(u.transport))), c = (s = (n = Ss(l, ((u) => u.transport === o))) == null ? void 0 : n.method) !== null && s !== void 0 ? s : l[0].method;
3762
3763
  if (!c) throw new Error("No available transport method");
3763
3764
  c(a);
@@ -3772,13 +3773,13 @@ class oi {
3772
3773
  _execute_array(e) {
3773
3774
  var t, i = [], s = [], n = [];
3774
3775
  Re(e, ((o) => {
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
+ o && (t = o[0], F(t) ? n.push(o) : Fe(o) ? o.call(this) : F(o) && t === "alias" ? i.push(o) : F(o) && t.indexOf("capture") !== -1 && Fe(this[t]) ? n.push(o) : s.push(o));
3776
3777
  }));
3777
3778
  var a = function(o, l) {
3778
3779
  Re(o, (function(c) {
3779
- if (T(c[0])) {
3780
+ if (F(c[0])) {
3780
3781
  var u = l;
3781
- F(c, (function(h) {
3782
+ T(c, (function(h) {
3782
3783
  u = u[h[0]].apply(u, h.slice(1));
3783
3784
  }));
3784
3785
  } else this[c[0]].apply(this, c.slice(1));
@@ -3802,15 +3803,15 @@ class oi {
3802
3803
  var a = i != null && i.skip_client_rate_limiting ? void 0 : this.rateLimiter.clientRateLimitContext();
3803
3804
  if (a == null || !a.isRateLimited) {
3804
3805
  t != null && t.$current_url && !N(t == null ? void 0 : t.$current_url) && (y.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."), t == null || delete t.$current_url), this.sessionPersistence.update_search_keyword(), this.config.save_campaign_params && this.sessionPersistence.update_campaign_params(), this.config.save_referrer && this.sessionPersistence.update_referrer_info(), (this.config.save_campaign_params || this.config.save_referrer) && this.persistence.set_initial_person_info();
3805
- var o = /* @__PURE__ */ new Date(), l = (i == null ? void 0 : i.timestamp) || o, c = Fe(), u = { uuid: c, event: e, properties: this.calculateEventProperties(e, t || {}, l, c) };
3806
+ var o = /* @__PURE__ */ new Date(), l = (i == null ? void 0 : i.timestamp) || o, c = Te(), u = { uuid: c, event: e, properties: this.calculateEventProperties(e, t || {}, l, c) };
3806
3807
  e === "$pageview" && this.config.__preview_capture_bot_pageviews && n && (u.event = "$bot_pageview", u.properties.$browser_type = "bot"), a && (u.properties.$lib_rate_limit_remaining_tokens = a.remainingTokens), i != null && i.$set && (u.$set = i == null ? void 0 : i.$set);
3807
3808
  var h, g = this.Lr(i == null ? void 0 : i.$set_once);
3808
3809
  if (g && (u.$set_once = g), (u = fa(u, i != null && i._noTruncate ? null : this.config.properties_string_max_length)).timestamp = l, v(i == null ? void 0 : i.timestamp) || (u.properties.$event_time_override_provided = !0, u.properties.$event_time_override_system_time = o), e === jt.DISMISSED || e === jt.SENT) {
3809
3810
  var p = t == null ? void 0 : t[ss.SURVEY_ID], f = t == null ? void 0 : t[ss.SURVEY_ITERATION];
3810
- h = { id: p, current_iteration: f }, localStorage.getItem(ns(h)) || localStorage.setItem(ns(h), "true"), u.$set = w({}, u.$set, { [Fo({ id: p, current_iteration: f }, e === jt.SENT ? "responded" : "dismissed")]: !0 });
3811
+ h = { id: p, current_iteration: f }, localStorage.getItem(ns(h)) || localStorage.setItem(ns(h), "true"), u.$set = w({}, u.$set, { [To({ id: p, current_iteration: f }, e === jt.SENT ? "responded" : "dismissed")]: !0 });
3811
3812
  }
3812
3813
  var _ = w({}, u.properties.$set, u.$set);
3813
- if (Ke(_) || this.setPersonPropertiesForFlags(_), !O(this.config.before_send)) {
3814
+ if (Xe(_) || this.setPersonPropertiesForFlags(_), !O(this.config.before_send)) {
3814
3815
  var b = this.Nr(u);
3815
3816
  if (!b) return;
3816
3817
  u = b;
@@ -3832,25 +3833,25 @@ class oi {
3832
3833
  var a = n ? void 0 : this.persistence.remove_event_timer(e), o = w({}, t);
3833
3834
  if (o.token = this.config.token, o.$config_defaults = this.config.defaults, (this.config.cookieless_mode == "always" || this.config.cookieless_mode == "on_reject" && this.consent.isExplicitlyOptedOut()) && (o.$cookieless_mode = !0), e === "$snapshot") {
3834
3835
  var l = w({}, this.persistence.properties(), this.sessionPersistence.properties());
3835
- return o.distinct_id = l.distinct_id, (!N(o.distinct_id) && !fe(o.distinct_id) || Ti(o.distinct_id)) && y.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"), o;
3836
+ return o.distinct_id = l.distinct_id, (!N(o.distinct_id) && !fe(o.distinct_id) || Oi(o.distinct_id)) && y.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"), o;
3836
3837
  }
3837
3838
  var c, u = uo(this.config.mask_personal_data_properties, this.config.custom_personal_data_properties);
3838
3839
  if (this.sessionManager) {
3839
3840
  var { sessionId: h, windowId: g } = this.sessionManager.checkAndGetSessionAndWindowId(n, i.getTime());
3840
3841
  o.$session_id = h, o.$window_id = g;
3841
3842
  }
3842
- this.sessionPropsManager && A(o, this.sessionPropsManager.getSessionProps());
3843
+ this.sessionPropsManager && M(o, this.sessionPropsManager.getSessionProps());
3843
3844
  try {
3844
3845
  var p;
3845
- this.sessionRecording && A(o, this.sessionRecording.sdkDebugProperties), o.$sdk_debug_retry_queue_size = (p = this.Ir) == null ? void 0 : p.length;
3846
+ this.sessionRecording && M(o, this.sessionRecording.sdkDebugProperties), o.$sdk_debug_retry_queue_size = (p = this.Ir) == null ? void 0 : p.length;
3846
3847
  } catch (E) {
3847
3848
  o.$sdk_debug_error_capturing_properties = String(E);
3848
3849
  }
3849
- if (this.requestRouter.region === bt.CUSTOM && (o.$lib_custom_api_host = this.config.api_host), c = e !== "$pageview" || n ? e !== "$pageleave" || n ? this.pageViewManager.doEvent() : this.pageViewManager.doPageLeave(i) : this.pageViewManager.doPageView(i, s), o = A(o, c), e === "$pageview" && m && (o.title = m.title), !v(a)) {
3850
+ if (this.requestRouter.region === bt.CUSTOM && (o.$lib_custom_api_host = this.config.api_host), c = e !== "$pageview" || n ? e !== "$pageleave" || n ? this.pageViewManager.doEvent() : this.pageViewManager.doPageLeave(i) : this.pageViewManager.doPageView(i, s), o = M(o, c), e === "$pageview" && m && (o.title = m.title), !v(a)) {
3850
3851
  var f = i.getTime() - a;
3851
3852
  o.$duration = parseFloat((f / 1e3).toFixed(3));
3852
3853
  }
3853
- W && this.config.opt_out_useragent_filter && (o.$browser_type = this._is_bot() ? "bot" : "browser"), (o = A({}, u, this.persistence.properties(), this.sessionPersistence.properties(), o)).$is_identified = this._isIdentified(), T(this.config.property_denylist) ? F(this.config.property_denylist, (function(E) {
3854
+ W && this.config.opt_out_useragent_filter && (o.$browser_type = this._is_bot() ? "bot" : "browser"), (o = M({}, u, this.persistence.properties(), this.sessionPersistence.properties(), o)).$is_identified = this._isIdentified(), F(this.config.property_denylist) ? T(this.config.property_denylist, (function(E) {
3854
3855
  delete o[E];
3855
3856
  })) : y.error("Invalid value for property_denylist config: " + this.config.property_denylist + " or property_blacklist config: " + this.config.property_blacklist);
3856
3857
  var _ = this.config.sanitize_properties;
@@ -3861,8 +3862,8 @@ class oi {
3861
3862
  Lr(e) {
3862
3863
  var t;
3863
3864
  if (!this.persistence || !this.Ur() || this.gr) return e;
3864
- var i = this.persistence.get_initial_props(), s = (t = this.sessionPropsManager) == null ? void 0 : t.getSetOnceProps(), n = A({}, i, s || {}, e || {}), a = this.config.sanitize_properties;
3865
- return a && (y.error("sanitize_properties is deprecated. Use before_send instead"), n = a(n, "$set_once")), this.gr = !0, Ke(n) ? void 0 : n;
3865
+ var i = this.persistence.get_initial_props(), s = (t = this.sessionPropsManager) == null ? void 0 : t.getSetOnceProps(), n = M({}, i, s || {}, e || {}), a = this.config.sanitize_properties;
3866
+ return a && (y.error("sanitize_properties is deprecated. Use before_send instead"), n = a(n, "$set_once")), this.gr = !0, Xe(n) ? void 0 : n;
3866
3867
  }
3867
3868
  register(e, t) {
3868
3869
  var i;
@@ -3954,7 +3955,7 @@ class oi {
3954
3955
  }
3955
3956
  e !== s && e !== this.get_property(gt) && (this.unregister(gt), this.register({ distinct_id: e }));
3956
3957
  var a = (this.persistence.get_property(ye) || "anonymous") === "anonymous";
3957
- e !== s && a ? (this.persistence.set_property(ye, "identified"), this.setPersonPropertiesForFlags(w({}, i || {}, t || {}), !1), this.capture("$identify", { distinct_id: e, $anon_distinct_id: s }, { $set: t || {}, $set_once: i || {} }), this.wr = es(e, t, i), this.featureFlags.setAnonymousDistinctId(s)) : (t || i) && this.setPersonProperties(t, i), e !== s && (this.reloadFeatureFlags(), this.unregister(zt));
3958
+ e !== s && a ? (this.persistence.set_property(ye, "identified"), this.setPersonPropertiesForFlags(w({}, i || {}, t || {}), !1), this.capture("$identify", { distinct_id: e, $anon_distinct_id: s }, { $set: t || {}, $set_once: i || {} }), this.wr = es(e, t, i), this.featureFlags.setAnonymousDistinctId(s)) : (t || i) && this.setPersonProperties(t, i), e !== s && (this.reloadFeatureFlags(), this.unregister(Yt));
3958
3959
  }
3959
3960
  } else y.critical('The string "' + ot + '" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.');
3960
3961
  else y.error("Unique user id has not been set in posthog.identify");
@@ -3994,7 +3995,7 @@ class oi {
3994
3995
  var a = this.get_property("$device_id");
3995
3996
  if (this.consent.reset(), (t = this.persistence) == null || t.clear(), (i = this.sessionPersistence) == null || i.clear(), this.surveys.reset(), this.featureFlags.reset(), (s = this.persistence) == null || s.set_property(ye, "anonymous"), (n = this.sessionManager) == null || n.resetSessionId(), this.wr = null, this.config.cookieless_mode === "always") this.register_once({ distinct_id: ot, $device_id: null }, "");
3996
3997
  else {
3997
- var o = this.config.get_device_id(Fe());
3998
+ var o = this.config.get_device_id(Te());
3998
3999
  this.register_once({ distinct_id: o, $device_id: e ? o : a }, "");
3999
4000
  }
4000
4001
  this.register({ $last_posthog_reset: (/* @__PURE__ */ new Date()).toISOString() }, 1);
@@ -4020,17 +4021,17 @@ class oi {
4020
4021
  return s;
4021
4022
  }
4022
4023
  alias(e, t) {
4023
- return e === this.get_property(Ps) ? (y.critical("Attempting to create alias for existing People user - aborting."), -2) : this.zr("posthog.alias") ? (v(t) && (t = this.get_distinct_id()), e !== t ? (this.Hr(gt, e), this.capture("$create_alias", { alias: e, distinct_id: t })) : (y.warn("alias matches current distinct_id - skipping api call."), this.identify(e), -1)) : void 0;
4024
+ return e === this.get_property(Cs) ? (y.critical("Attempting to create alias for existing People user - aborting."), -2) : this.zr("posthog.alias") ? (v(t) && (t = this.get_distinct_id()), e !== t ? (this.Hr(gt, e), this.capture("$create_alias", { alias: e, distinct_id: t })) : (y.warn("alias matches current distinct_id - skipping api call."), this.identify(e), -1)) : void 0;
4024
4025
  }
4025
4026
  set_config(e) {
4026
4027
  var t = w({}, this.config);
4027
4028
  if (j(e)) {
4028
4029
  var i, s, n, a, o;
4029
- A(this.config, ds(e));
4030
+ M(this.config, ds(e));
4030
4031
  var l = this.kr();
4031
- (i = this.persistence) == null || i.update_config(this.config, t, l), this.sessionPersistence = this.config.persistence === "sessionStorage" || this.config.persistence === "memory" ? this.persistence : new xi(w({}, this.config, { persistence: "sessionStorage" }), l);
4032
+ (i = this.persistence) == null || i.update_config(this.config, t, l), this.sessionPersistence = this.config.persistence === "sessionStorage" || this.config.persistence === "memory" ? this.persistence : new Si(w({}, this.config, { persistence: "sessionStorage" }), l);
4032
4033
  var c = this.$r(this.config.debug);
4033
- Oe(c) && (this.config.debug = c), Oe(this.config.debug) && (this.config.debug ? (me.DEBUG = !0, D.H() && D.G("ph_debug", "true"), y.info("set_config", { config: e, oldConfig: t, newConfig: w({}, this.config) })) : (me.DEBUG = !1, D.H() && D.V("ph_debug"))), (s = this.sessionRecording) == null || s.startIfEnabledOrStop(), (n = this.autocapture) == null || n.startIfEnabled(), (a = this.heatmaps) == null || a.startIfEnabled(), this.surveys.loadIfEnabled(), this.Br(), (o = this.externalIntegrations) == null || o.startIfEnabledOrStop();
4034
+ Oe(c) && (this.config.debug = c), Oe(this.config.debug) && (this.config.debug ? (me.DEBUG = !0, A.H() && A.G("ph_debug", "true"), y.info("set_config", { config: e, oldConfig: t, newConfig: w({}, this.config) })) : (me.DEBUG = !1, A.H() && A.V("ph_debug"))), (s = this.sessionRecording) == null || s.startIfEnabledOrStop(), (n = this.autocapture) == null || n.startIfEnabled(), (a = this.heatmaps) == null || a.startIfEnabled(), this.surveys.loadIfEnabled(), this.Br(), (o = this.externalIntegrations) == null || o.startIfEnabledOrStop();
4034
4035
  }
4035
4036
  }
4036
4037
  startSessionRecording(e) {
@@ -4064,8 +4065,8 @@ class oi {
4064
4065
  return (t = this.sessionPersistence) == null ? void 0 : t.props[e];
4065
4066
  }
4066
4067
  toString() {
4067
- var e, t = (e = this.config.name) !== null && e !== void 0 ? e : Xe;
4068
- return t !== Xe && (t = Xe + "." + t), t;
4068
+ var e, t = (e = this.config.name) !== null && e !== void 0 ? e : Ke;
4069
+ return t !== Ke && (t = Ke + "." + t), t;
4069
4070
  }
4070
4071
  _isIdentified() {
4071
4072
  var e, t;
@@ -4073,7 +4074,7 @@ class oi {
4073
4074
  }
4074
4075
  Ur() {
4075
4076
  var e, t;
4076
- return !(this.config.person_profiles === "never" || this.config.person_profiles === "identified_only" && !this._isIdentified() && Ke(this.getGroups()) && ((e = this.persistence) == null || (e = e.props) == null || !e[gt]) && ((t = this.persistence) == null || (t = t.props) == null || !t[Xt]));
4077
+ return !(this.config.person_profiles === "never" || this.config.person_profiles === "identified_only" && !this._isIdentified() && Xe(this.getGroups()) && ((e = this.persistence) == null || (e = e.props) == null || !e[gt]) && ((t = this.persistence) == null || (t = t.props) == null || !t[Xt]));
4077
4078
  }
4078
4079
  jr() {
4079
4080
  return this.config.capture_pageleave === !0 || this.config.capture_pageleave === "if_capture_pageview" && (this.config.capture_pageview === !0 || this.config.capture_pageview === "history_change");
@@ -4134,13 +4135,13 @@ class oi {
4134
4135
  }
4135
4136
  Nr(e) {
4136
4137
  if (O(this.config.before_send)) return e;
4137
- var t = T(this.config.before_send) ? this.config.before_send : [this.config.before_send], i = e;
4138
+ var t = F(this.config.before_send) ? this.config.before_send : [this.config.before_send], i = e;
4138
4139
  for (var s of t) {
4139
4140
  if (i = s(i), O(i)) {
4140
4141
  var n = "Event '" + e.event + "' was rejected in beforeSend function";
4141
4142
  return Bn(e.event) ? y.warn(n + ". This can cause unexpected behavior.") : y.info(n), null;
4142
4143
  }
4143
- i.properties && !Ke(i.properties) || y.warn("Event '" + e.event + "' has no properties after beforeSend function, this is likely an error.");
4144
+ i.properties && !Xe(i.properties) || y.warn("Event '" + e.event + "' has no properties after beforeSend function, this is likely an error.");
4144
4145
  }
4145
4146
  return i;
4146
4147
  }
@@ -4155,17 +4156,17 @@ class oi {
4155
4156
  this.capture("$ai_metric", { $ai_trace_id: String(e), $ai_metric_name: t, $ai_metric_value: String(i) });
4156
4157
  }
4157
4158
  $r(e) {
4158
- var t = Oe(e) && !e, i = D.H() && D.q("ph_debug") === "true";
4159
+ var t = Oe(e) && !e, i = A.H() && A.q("ph_debug") === "true";
4159
4160
  return !t && (!!i || e);
4160
4161
  }
4161
4162
  }
4162
4163
  (function(r, e) {
4163
4164
  for (var t = 0; t < e.length; t++) r.prototype[e[t]] = ga(r.prototype[e[t]]);
4164
- })(oi, ["identify"]);
4165
+ })(li, ["identify"]);
4165
4166
  var ps;
4166
- ps = kt[Xe] = new oi(), (function() {
4167
+ ps = kt[Ke] = new li(), (function() {
4167
4168
  function r() {
4168
- r.done || (r.done = !0, Sn = !1, F(kt, (function(e) {
4169
+ r.done || (r.done = !0, Sn = !1, T(kt, (function(e) {
4169
4170
  e._dom_loaded();
4170
4171
  })));
4171
4172
  }
@@ -4175,7 +4176,7 @@ var gs;
4175
4176
  (function(r) {
4176
4177
  r.USER_ADDED_TO_CART = "user_added_to_cart", r.USER_SUBMITTED_CHECKOUT = "user_submitted_checkout";
4177
4178
  })(gs || (gs = {}));
4178
- const Ko = { class: "dialog-block-header-container" }, Jo = { class: "dialog-block-title" }, Zo = { class: "dialog-block-description" }, Qo = /* @__PURE__ */ Ae({
4179
+ const Xo = { class: "dialog-block-header-container" }, Jo = { class: "dialog-block-title" }, Zo = { class: "dialog-block-description" }, Qo = /* @__PURE__ */ Me({
4179
4180
  __name: "DialogBlockHeader",
4180
4181
  props: {
4181
4182
  title: {},
@@ -4183,9 +4184,9 @@ const Ko = { class: "dialog-block-header-container" }, Jo = { class: "dialog-blo
4183
4184
  },
4184
4185
  setup(r) {
4185
4186
  const e = r;
4186
- return (t, i) => (ie(), Me("div", Ko, [
4187
- H("div", Jo, Ci(e.title ?? "Your expert"), 1),
4188
- H("div", Zo, Ci(e.description ?? "A question about this product?"), 1)
4187
+ return (t, i) => (ie(), De("div", Xo, [
4188
+ H("div", Jo, Ii(e.title ?? "Your expert"), 1),
4189
+ H("div", Zo, Ii(e.description ?? "A question about this product?"), 1)
4189
4190
  ]));
4190
4191
  }
4191
4192
  }), at = (r, e) => {
@@ -4199,14 +4200,14 @@ const Ko = { class: "dialog-block-header-container" }, Jo = { class: "dialog-blo
4199
4200
  viewBox: "0 0 20 20",
4200
4201
  fill: "none",
4201
4202
  xmlns: "http://www.w3.org/2000/svg"
4202
- }, il = { "clip-path": "url(#clip0_466_934)" }, rl = ["stroke"], sl = ["stroke"], nl = /* @__PURE__ */ Ae({
4203
+ }, il = { "clip-path": "url(#clip0_466_934)" }, rl = ["stroke"], sl = ["stroke"], nl = /* @__PURE__ */ Me({
4203
4204
  __name: "AiStarsIcon",
4204
4205
  props: {
4205
4206
  color: {}
4206
4207
  },
4207
4208
  setup(r) {
4208
4209
  const e = r;
4209
- return (t, i) => (ie(), Me("svg", tl, [
4210
+ return (t, i) => (ie(), De("svg", tl, [
4210
4211
  H("g", il, [
4211
4212
  H("path", {
4212
4213
  d: `M5.41675 10.8333L6.07046 12.1408C6.2917 12.5832 6.40232 12.8045 6.55011
@@ -4252,7 +4253,7 @@ const Ko = { class: "dialog-block-header-container" }, Jo = { class: "dialog-blo
4252
4253
  ], -1))
4253
4254
  ]));
4254
4255
  }
4255
- }), al = ["onClick"], ol = { class: "dialog-block-suggestions-item-label" }, ll = /* @__PURE__ */ Ae({
4256
+ }), al = ["onClick"], ol = { class: "dialog-block-suggestions-item-label" }, ll = /* @__PURE__ */ Me({
4256
4257
  __name: "DialogBlockSuggestions",
4257
4258
  props: {
4258
4259
  client: {},
@@ -4271,7 +4272,7 @@ const Ko = { class: "dialog-block-header-container" }, Jo = { class: "dialog-blo
4271
4272
  fromQuestionSuggestion: !0
4272
4273
  });
4273
4274
  };
4274
- return (i, s) => (ie(!0), Me(fs, null, Fn(e.questions, (n) => (ie(), Me("button", {
4275
+ return (i, s) => (ie(!0), De(fs, null, Tn(e.questions, (n) => (ie(), De("button", {
4275
4276
  key: n.question,
4276
4277
  class: "dialog-block-suggestions-item",
4277
4278
  onClick: (a) => t(n.question)
@@ -4280,18 +4281,18 @@ const Ko = { class: "dialog-block-header-container" }, Jo = { class: "dialog-blo
4280
4281
  class: "dialog-block-suggestions-item-icon",
4281
4282
  color: e.client.theme.primaryColor
4282
4283
  }, null, 8, ["color"]),
4283
- H("span", ol, Ci(n.question), 1)
4284
+ H("span", ol, Ii(n.question), 1)
4284
4285
  ], 8, al))), 128));
4285
4286
  }
4286
4287
  }), cl = /* @__PURE__ */ at(ll, [["__scopeId", "data-v-fb1910ce"]]), ul = {};
4287
4288
  function hl(r, e) {
4288
- return ie(), Me(fs, null, [
4289
+ return ie(), De(fs, null, [
4289
4290
  e[0] || (e[0] = H("div", { class: "dialog-block-suggestions-skeleton-item" }, null, -1)),
4290
4291
  e[1] || (e[1] = H("div", { class: "dialog-block-suggestions-skeleton-item" }, null, -1)),
4291
4292
  e[2] || (e[2] = H("div", { class: "dialog-block-suggestions-skeleton-item" }, null, -1))
4292
4293
  ], 64);
4293
4294
  }
4294
- const dl = /* @__PURE__ */ at(ul, [["render", hl], ["__scopeId", "data-v-26a64b58"]]), pl = { class: "dialog-block-suggestions-container" }, gl = /* @__PURE__ */ Ae({
4295
+ const dl = /* @__PURE__ */ at(ul, [["render", hl], ["__scopeId", "data-v-26a64b58"]]), pl = { class: "dialog-block-suggestions-container" }, gl = /* @__PURE__ */ Me({
4295
4296
  __name: "DialogBlockSuggestionsContainer",
4296
4297
  props: {
4297
4298
  client: {},
@@ -4303,7 +4304,7 @@ const dl = /* @__PURE__ */ at(ul, [["render", hl], ["__scopeId", "data-v-26a64b5
4303
4304
  },
4304
4305
  setup(r) {
4305
4306
  const e = r;
4306
- return (t, i) => (ie(), Me("div", pl, [
4307
+ return (t, i) => (ie(), De("div", pl, [
4307
4308
  e.isLoading || !e.questions ? (ie(), Ht(dl, { key: 0 })) : (ie(), Ht(cl, {
4308
4309
  key: 1,
4309
4310
  client: e.client,
@@ -4320,14 +4321,14 @@ const dl = /* @__PURE__ */ at(ul, [["render", hl], ["__scopeId", "data-v-26a64b5
4320
4321
  viewBox: "0 0 20 20",
4321
4322
  fill: "none",
4322
4323
  xmlns: "http://www.w3.org/2000/svg"
4323
- }, vl = ["stroke"], ml = /* @__PURE__ */ Ae({
4324
+ }, vl = ["stroke"], ml = /* @__PURE__ */ Me({
4324
4325
  __name: "ArrowIcon",
4325
4326
  props: {
4326
4327
  color: {}
4327
4328
  },
4328
4329
  setup(r) {
4329
4330
  const e = r;
4330
- return (t, i) => (ie(), Me("svg", _l, [
4331
+ return (t, i) => (ie(), De("svg", _l, [
4331
4332
  H("path", {
4332
4333
  d: "M10 16.6667V3.33334M10 3.33334L5 8.33334M10 3.33334L15 8.33334",
4333
4334
  stroke: e.color || "#ffffff",
@@ -4337,7 +4338,7 @@ const dl = /* @__PURE__ */ at(ul, [["render", hl], ["__scopeId", "data-v-26a64b5
4337
4338
  }, null, 8, vl)
4338
4339
  ]));
4339
4340
  }
4340
- }), yl = ["placeholder"], bl = ["disabled"], wl = /* @__PURE__ */ Ae({
4341
+ }), yl = ["placeholder"], bl = ["disabled"], wl = /* @__PURE__ */ Me({
4341
4342
  __name: "DialogInput",
4342
4343
  props: {
4343
4344
  client: {},
@@ -4360,11 +4361,11 @@ const dl = /* @__PURE__ */ at(ul, [["render", hl], ["__scopeId", "data-v-26a64b5
4360
4361
  fromQuestionSuggestion: !0
4361
4362
  }), i.value = "");
4362
4363
  };
4363
- return (a, o) => (ie(), Me("div", {
4364
+ return (a, o) => (ie(), De("div", {
4364
4365
  class: "dialog-input-wrapper",
4365
4366
  onClick: s
4366
4367
  }, [
4367
- Tn(H("input", {
4368
+ Fn(H("input", {
4368
4369
  id: "dialog-ask-anything-input-ai-input",
4369
4370
  ref_key: "inputRef",
4370
4371
  ref: t,
@@ -4387,7 +4388,7 @@ const dl = /* @__PURE__ */ at(ul, [["render", hl], ["__scopeId", "data-v-26a64b5
4387
4388
  ], 8, bl)
4388
4389
  ]));
4389
4390
  }
4390
- }), El = /* @__PURE__ */ at(wl, [["__scopeId", "data-v-7649af7c"]]), kl = /* @__PURE__ */ Ae({
4391
+ }), El = /* @__PURE__ */ at(wl, [["__scopeId", "data-v-7649af7c"]]), kl = /* @__PURE__ */ Me({
4391
4392
  __name: "ThemeProvider",
4392
4393
  props: {
4393
4394
  theme: {}
@@ -4423,7 +4424,7 @@ const dl = /* @__PURE__ */ at(ul, [["render", hl], ["__scopeId", "data-v-26a64b5
4423
4424
  }
4424
4425
  });
4425
4426
  };
4426
- return Dn(() => {
4427
+ return An(() => {
4427
4428
  e.theme && s(e.theme);
4428
4429
  }), _s(
4429
4430
  () => e.theme,
@@ -4431,12 +4432,12 @@ const dl = /* @__PURE__ */ at(ul, [["render", hl], ["__scopeId", "data-v-26a64b5
4431
4432
  n && s(n);
4432
4433
  },
4433
4434
  { deep: !0 }
4434
- ), (n, a) => Mn(n.$slots, "default");
4435
+ ), (n, a) => Dn(n.$slots, "default");
4435
4436
  }
4436
4437
  }), xl = {
4437
4438
  id: "dialog-instant",
4438
4439
  class: "dialog-block-container"
4439
- }, Sl = /* @__PURE__ */ Ae({
4440
+ }, Sl = /* @__PURE__ */ Me({
4440
4441
  __name: "DialogProductBlock",
4441
4442
  props: {
4442
4443
  client: {},
@@ -4446,13 +4447,13 @@ const dl = /* @__PURE__ */ at(ul, [["render", hl], ["__scopeId", "data-v-26a64b5
4446
4447
  enableInput: { type: Boolean, default: !0 }
4447
4448
  },
4448
4449
  setup(r) {
4449
- const e = r, t = wt(!0), i = wt(void 0), s = wt(0), n = ui(() => {
4450
+ const e = r, t = wt(!0), i = wt(void 0), s = wt(0), n = hi(() => {
4450
4451
  var c;
4451
4452
  return t.value ? "" : (c = i.value) == null ? void 0 : c.assistantName;
4452
- }), a = ui(() => {
4453
+ }), a = hi(() => {
4453
4454
  var c;
4454
4455
  return t.value ? "" : (c = i.value) == null ? void 0 : c.description;
4455
- }), o = ui(() => {
4456
+ }), o = hi(() => {
4456
4457
  var c;
4457
4458
  return t.value ? "" : (c = i.value) == null ? void 0 : c.inputPlaceholder;
4458
4459
  }), l = async () => {
@@ -4476,7 +4477,7 @@ const dl = /* @__PURE__ */ at(ul, [["render", hl], ["__scopeId", "data-v-26a64b5
4476
4477
  ), (c, u) => (ie(), Ht(kl, {
4477
4478
  theme: e.client.theme
4478
4479
  }, {
4479
- default: An(() => {
4480
+ default: Mn(() => {
4480
4481
  var h;
4481
4482
  return [
4482
4483
  H("div", xl, [
@@ -4506,8 +4507,8 @@ const dl = /* @__PURE__ */ at(ul, [["render", hl], ["__scopeId", "data-v-26a64b5
4506
4507
  _: 1
4507
4508
  }, 8, ["theme"]));
4508
4509
  }
4509
- }), Cl = /* @__PURE__ */ at(Sl, [["__scopeId", "data-v-651875ac"]]);
4510
+ }), Pl = /* @__PURE__ */ at(Sl, [["__scopeId", "data-v-651875ac"]]);
4510
4511
  export {
4511
4512
  El as DialogInput,
4512
- Cl as DialogProductBlock
4513
+ Pl as DialogProductBlock
4513
4514
  };