@eloquentai/chat-sdk 0.16.1-dev → 0.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ import { useDebounce as cs } from "@uidotdev/usehooks";
5
5
  import { clsx as dd } from "clsx";
6
6
  import { twMerge as fd } from "tailwind-merge";
7
7
  import { useRive as hd, Layout as pd, Alignment as md, Fit as gd, useStateMachineInput as yd } from "@rive-app/react-canvas";
8
- import { RefreshCcw as bd, X as ic, Copy as wd, ThumbsUp as _d, ThumbsDown as vd, FileSearch as Sd, ChevronDown as ac, CheckCircle as Ed, Info as xd, XCircle as kd, AlertTriangle as Id, ArrowUp as Cd } from "lucide-react";
8
+ import { RefreshCcw as bd, X as ic, Copy as wd, ThumbsUp as _d, ThumbsDown as vd, FileSearch as Sd, ChevronDown as ac, CheckCircle as Ed, Info as xd, XCircle as Id, AlertTriangle as kd, ArrowUp as Cd } from "lucide-react";
9
9
  import * as $t from "@radix-ui/react-avatar";
10
10
  import * as at from "@radix-ui/react-scroll-area";
11
11
  import { ScrollArea as Td } from "@radix-ui/react-scroll-area";
@@ -15,14 +15,14 @@ import { z as se } from "zod";
15
15
  import Rd from "react-dom/client";
16
16
  try {
17
17
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
18
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "f744fe9d-d48f-4ddf-a419-915c9eec45e8", e._sentryDebugIdIdentifier = "sentry-dbid-f744fe9d-d48f-4ddf-a419-915c9eec45e8");
18
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "986d0a7d-f3fa-4377-b7dc-014e3a9eae08", e._sentryDebugIdIdentifier = "sentry-dbid-986d0a7d-f3fa-4377-b7dc-014e3a9eae08");
19
19
  } catch {
20
20
  }
21
21
  const U = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, ct = "9.19.0", $ = globalThis;
22
22
  function _n() {
23
- return Ir($), $;
23
+ return kr($), $;
24
24
  }
25
- function Ir(e) {
25
+ function kr(e) {
26
26
  const t = e.__SENTRY__ = e.__SENTRY__ || {};
27
27
  return t.version = t.version || ct, t[ct] = t[ct] || {};
28
28
  }
@@ -216,7 +216,7 @@ function Bd() {
216
216
  };
217
217
  }), t;
218
218
  }
219
- const I = Cr("logger", Bd);
219
+ const k = Cr("logger", Bd);
220
220
  function ur(e, t = 0) {
221
221
  return typeof e != "string" || t === 0 || e.length <= t ? e : `${e.slice(0, t)}...`;
222
222
  }
@@ -251,7 +251,7 @@ function me(e, t, n) {
251
251
  try {
252
252
  e[t] = o;
253
253
  } catch {
254
- U && I.log(`Failed to replace method "${t}" in object`, e);
254
+ U && k.log(`Failed to replace method "${t}" in object`, e);
255
255
  }
256
256
  }
257
257
  function lt(e, t, n) {
@@ -263,7 +263,7 @@ function lt(e, t, n) {
263
263
  configurable: !0
264
264
  });
265
265
  } catch {
266
- U && I.log(`Failed to add non-enumerable property "${t}" to object`, e);
266
+ U && k.log(`Failed to add non-enumerable property "${t}" to object`, e);
267
267
  }
268
268
  }
269
269
  function dc(e, t) {
@@ -768,7 +768,7 @@ class qe {
768
768
  captureException(t, n) {
769
769
  const r = n?.event_id || _e();
770
770
  if (!this._client)
771
- return I.warn("No client configured on scope - will not capture exception!"), r;
771
+ return k.warn("No client configured on scope - will not capture exception!"), r;
772
772
  const o = new Error("Sentry syntheticException");
773
773
  return this._client.captureException(
774
774
  t,
@@ -789,7 +789,7 @@ class qe {
789
789
  captureMessage(t, n, r) {
790
790
  const o = r?.event_id || _e();
791
791
  if (!this._client)
792
- return I.warn("No client configured on scope - will not capture message!"), o;
792
+ return k.warn("No client configured on scope - will not capture message!"), o;
793
793
  const s = new Error(t);
794
794
  return this._client.captureMessage(
795
795
  t,
@@ -810,7 +810,7 @@ class qe {
810
810
  */
811
811
  captureEvent(t, n) {
812
812
  const r = n?.event_id || _e();
813
- return this._client ? (this._client.captureEvent(t, { ...n, event_id: r }, this), r) : (I.warn("No client configured on scope - will not capture event!"), r);
813
+ return this._client ? (this._client.captureEvent(t, { ...n, event_id: r }, this), r) : (k.warn("No client configured on scope - will not capture event!"), r);
814
814
  }
815
815
  /**
816
816
  * This will be called on every set call.
@@ -894,7 +894,7 @@ class Zd {
894
894
  }
895
895
  }
896
896
  function Mt() {
897
- const e = _n(), t = Ir(e);
897
+ const e = _n(), t = kr(e);
898
898
  return t.stack = t.stack || new Zd(Xd(), Qd());
899
899
  }
900
900
  function ef(e) {
@@ -918,7 +918,7 @@ function nf() {
918
918
  };
919
919
  }
920
920
  function Ar(e) {
921
- const t = Ir(e);
921
+ const t = kr(e);
922
922
  return t.acs ? t.acs : nf();
923
923
  }
924
924
  function Me() {
@@ -957,7 +957,7 @@ function wc(e) {
957
957
  isolationScope: e[pf]
958
958
  };
959
959
  }
960
- function ko(e) {
960
+ function Io(e) {
961
961
  if (typeof e == "boolean")
962
962
  return Number(e);
963
963
  const t = typeof e == "string" ? parseFloat(e) : e;
@@ -1068,9 +1068,9 @@ function xf(e) {
1068
1068
  if (!(!e || e.code === df))
1069
1069
  return e.code === ff ? "ok" : e.message || "unknown_error";
1070
1070
  }
1071
- const kf = "_sentryRootSpan";
1071
+ const If = "_sentryRootSpan";
1072
1072
  function ps(e) {
1073
- return e[kf] || e;
1073
+ return e[If] || e;
1074
1074
  }
1075
1075
  function vc() {
1076
1076
  const e = _n(), t = Ar(e);
@@ -1109,7 +1109,7 @@ function Ec(...e) {
1109
1109
  return Cf(s.slice(o));
1110
1110
  };
1111
1111
  }
1112
- function If(e) {
1112
+ function kf(e) {
1113
1113
  return Array.isArray(e) ? Ec(...e) : e;
1114
1114
  }
1115
1115
  function Cf(e) {
@@ -1156,7 +1156,7 @@ function mt(e, t) {
1156
1156
  try {
1157
1157
  t();
1158
1158
  } catch (n) {
1159
- U && I.error(`Error while instrumenting ${e}`, n);
1159
+ U && k.error(`Error while instrumenting ${e}`, n);
1160
1160
  }
1161
1161
  }
1162
1162
  }
@@ -1167,7 +1167,7 @@ function Oe(e, t) {
1167
1167
  try {
1168
1168
  r(t);
1169
1169
  } catch (o) {
1170
- U && I.error(
1170
+ U && k.error(
1171
1171
  `Error while triggering instrumentation handler.
1172
1172
  Type: ${e}
1173
1173
  Name: ${Ge(r)}
@@ -1223,7 +1223,7 @@ function Df(e, t) {
1223
1223
  const n = t.getPropagationContext();
1224
1224
  return n.dsc || xc(n.traceId, e);
1225
1225
  }
1226
- function kc(e) {
1226
+ function Ic(e) {
1227
1227
  const t = Q();
1228
1228
  if (!t)
1229
1229
  return {};
@@ -1266,9 +1266,9 @@ function Uf(e) {
1266
1266
  const d = u.match(/^\d+/);
1267
1267
  d && (u = d[0]);
1268
1268
  }
1269
- return Ic({ host: s, pass: o, path: a, projectId: u, port: i, protocol: n, publicKey: r });
1269
+ return kc({ host: s, pass: o, path: a, projectId: u, port: i, protocol: n, publicKey: r });
1270
1270
  }
1271
- function Ic(e) {
1271
+ function kc(e) {
1272
1272
  return {
1273
1273
  protocol: e.protocol,
1274
1274
  publicKey: e.publicKey || "",
@@ -1283,16 +1283,16 @@ function Ff(e) {
1283
1283
  if (!U)
1284
1284
  return !0;
1285
1285
  const { port: t, projectId: n, protocol: r } = e;
1286
- return ["protocol", "publicKey", "host", "projectId"].find((i) => e[i] ? !1 : (I.error(`Invalid Sentry Dsn: ${i} missing`), !0)) ? !1 : n.match(/^\d+$/) ? Pf(r) ? t && isNaN(parseInt(t, 10)) ? (I.error(`Invalid Sentry Dsn: Invalid port ${t}`), !1) : !0 : (I.error(`Invalid Sentry Dsn: Invalid protocol ${r}`), !1) : (I.error(`Invalid Sentry Dsn: Invalid projectId ${n}`), !1);
1286
+ return ["protocol", "publicKey", "host", "projectId"].find((i) => e[i] ? !1 : (k.error(`Invalid Sentry Dsn: ${i} missing`), !0)) ? !1 : n.match(/^\d+$/) ? Pf(r) ? t && isNaN(parseInt(t, 10)) ? (k.error(`Invalid Sentry Dsn: Invalid port ${t}`), !1) : !0 : (k.error(`Invalid Sentry Dsn: Invalid protocol ${r}`), !1) : (k.error(`Invalid Sentry Dsn: Invalid projectId ${n}`), !1);
1287
1287
  }
1288
1288
  function Bf(e) {
1289
- const t = typeof e == "string" ? Uf(e) : Ic(e);
1289
+ const t = typeof e == "string" ? Uf(e) : kc(e);
1290
1290
  if (!(!t || !Ff(t)))
1291
1291
  return t;
1292
1292
  }
1293
1293
  function Ne(e, t = 100, n = 1 / 0) {
1294
1294
  try {
1295
- return Io("", e, t, n);
1295
+ return ko("", e, t, n);
1296
1296
  } catch (r) {
1297
1297
  return { ERROR: `**non-serializable** (${r})` };
1298
1298
  }
@@ -1301,7 +1301,7 @@ function Cc(e, t = 3, n = 100 * 1024) {
1301
1301
  const r = Ne(e, t);
1302
1302
  return zf(r) > n ? Cc(e, t - 1, n) : r;
1303
1303
  }
1304
- function Io(e, t, n = 1 / 0, r = 1 / 0, o = jf()) {
1304
+ function ko(e, t, n = 1 / 0, r = 1 / 0, o = jf()) {
1305
1305
  const [s, i] = o;
1306
1306
  if (t == null || // this matches null and undefined -> eqeq not eqeqeq
1307
1307
  ["boolean", "string"].includes(typeof t) || typeof t == "number" && Number.isFinite(t))
@@ -1320,7 +1320,7 @@ function Io(e, t, n = 1 / 0, r = 1 / 0, o = jf()) {
1320
1320
  if (u && typeof u.toJSON == "function")
1321
1321
  try {
1322
1322
  const h = u.toJSON();
1323
- return Io("", h, a - 1, r, o);
1323
+ return ko("", h, a - 1, r, o);
1324
1324
  } catch {
1325
1325
  }
1326
1326
  const l = Array.isArray(t) ? [] : {};
@@ -1334,7 +1334,7 @@ function Io(e, t, n = 1 / 0, r = 1 / 0, o = jf()) {
1334
1334
  break;
1335
1335
  }
1336
1336
  const p = f[h];
1337
- l[h] = Io(h, p, a - 1, r, o), d++;
1337
+ l[h] = ko(h, p, a - 1, r, o), d++;
1338
1338
  }
1339
1339
  return i(t), l;
1340
1340
  }
@@ -1405,7 +1405,7 @@ function bi(e, t) {
1405
1405
  return !1;
1406
1406
  }
1407
1407
  function Co(e) {
1408
- const t = Ir($);
1408
+ const t = kr($);
1409
1409
  return t.encodePolyfill ? t.encodePolyfill(e) : new TextEncoder().encode(e);
1410
1410
  }
1411
1411
  function Gf(e) {
@@ -1620,7 +1620,7 @@ function To(e, t, n, r = 0) {
1620
1620
  o(t);
1621
1621
  else {
1622
1622
  const c = i({ ...t }, n);
1623
- U && i.id && c === null && I.log(`Event processor "${i.id}" dropped event`), Rr(c) ? c.then((a) => To(e, a, n, r + 1).then(o)).then(null, s) : To(e, c, n, r + 1).then(o).then(null, s);
1623
+ U && i.id && c === null && k.log(`Event processor "${i.id}" dropped event`), Rr(c) ? c.then((a) => To(e, a, n, r + 1).then(o)).then(null, s) : To(e, c, n, r + 1).then(o).then(null, s);
1624
1624
  }
1625
1625
  });
1626
1626
  }
@@ -1692,7 +1692,7 @@ function oh(e, t) {
1692
1692
  trace: wf(t),
1693
1693
  ...e.contexts
1694
1694
  }, e.sdkProcessingMetadata = {
1695
- dynamicSamplingContext: kc(t),
1695
+ dynamicSamplingContext: Ic(t),
1696
1696
  ...e.sdkProcessingMetadata
1697
1697
  };
1698
1698
  const n = ps(t), r = cn(n).description;
@@ -1880,13 +1880,13 @@ function _h(e, t) {
1880
1880
  r && Lc(e, r, n);
1881
1881
  }), n;
1882
1882
  }
1883
- function ki(e, t) {
1883
+ function Ii(e, t) {
1884
1884
  for (const n of t)
1885
1885
  n?.afterAllSetup && n.afterAllSetup(e);
1886
1886
  }
1887
1887
  function Lc(e, t, n) {
1888
1888
  if (n[t.name]) {
1889
- U && I.log(`Integration skipped because it was already installed: ${t.name}`);
1889
+ U && k.log(`Integration skipped because it was already installed: ${t.name}`);
1890
1890
  return;
1891
1891
  }
1892
1892
  if (n[t.name] = t, xi.indexOf(t.name) === -1 && typeof t.setupOnce == "function" && (t.setupOnce(), xi.push(t.name)), t.setup && typeof t.setup == "function" && t.setup(e), typeof t.preprocessEvent == "function") {
@@ -1899,7 +1899,7 @@ function Lc(e, t, n) {
1899
1899
  });
1900
1900
  e.addEventProcessor(o);
1901
1901
  }
1902
- U && I.log(`Integration installed: ${t.name}`);
1902
+ U && k.log(`Integration installed: ${t.name}`);
1903
1903
  }
1904
1904
  function Pc(e) {
1905
1905
  const t = [];
@@ -1964,7 +1964,7 @@ function Eh(e, t, n) {
1964
1964
  ];
1965
1965
  return Wt(t ? { dsn: t } : {}, [r]);
1966
1966
  }
1967
- const Ii = "Not capturing exception because it's already been captured.", Ci = "Discarded session because of missing or non-string release", Uc = Symbol.for("SentryInternalError"), Fc = Symbol.for("SentryDoNotSendEventError");
1967
+ const ki = "Not capturing exception because it's already been captured.", Ci = "Discarded session because of missing or non-string release", Uc = Symbol.for("SentryInternalError"), Fc = Symbol.for("SentryDoNotSendEventError");
1968
1968
  function Zn(e) {
1969
1969
  return {
1970
1970
  message: e,
@@ -1996,7 +1996,7 @@ class xh {
1996
1996
  * @param options Options for the client.
1997
1997
  */
1998
1998
  constructor(t) {
1999
- if (this._options = t, this._integrations = {}, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], t.dsn ? this._dsn = Bf(t.dsn) : U && I.warn("No DSN provided, client will not send events."), this._dsn) {
1999
+ if (this._options = t, this._integrations = {}, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], t.dsn ? this._dsn = Bf(t.dsn) : U && k.warn("No DSN provided, client will not send events."), this._dsn) {
2000
2000
  const n = yh(
2001
2001
  this._dsn,
2002
2002
  t.tunnel,
@@ -2018,7 +2018,7 @@ class xh {
2018
2018
  captureException(t, n, r) {
2019
2019
  const o = _e();
2020
2020
  if (si(t))
2021
- return U && I.log(Ii), o;
2021
+ return U && k.log(ki), o;
2022
2022
  const s = {
2023
2023
  event_id: o,
2024
2024
  ...n
@@ -2049,7 +2049,7 @@ class xh {
2049
2049
  captureEvent(t, n, r) {
2050
2050
  const o = _e();
2051
2051
  if (n?.originalException && si(n.originalException))
2052
- return U && I.log(Ii), o;
2052
+ return U && k.log(ki), o;
2053
2053
  const s = {
2054
2054
  event_id: o,
2055
2055
  ...n
@@ -2163,7 +2163,7 @@ class xh {
2163
2163
  */
2164
2164
  addIntegration(t) {
2165
2165
  const n = this._integrations[t.name];
2166
- Lc(this, t, this._integrations), n || ki(this, [t]);
2166
+ Lc(this, t, this._integrations), n || Ii(this, [t]);
2167
2167
  }
2168
2168
  /**
2169
2169
  * Send a fully prepared event to Sentry.
@@ -2184,13 +2184,13 @@ class xh {
2184
2184
  if ("aggregates" in t) {
2185
2185
  const s = t.attrs || {};
2186
2186
  if (!s.release && !n) {
2187
- U && I.warn(Ci);
2187
+ U && k.warn(Ci);
2188
2188
  return;
2189
2189
  }
2190
2190
  s.release = s.release || n, s.environment = s.environment || r, t.attrs = s;
2191
2191
  } else {
2192
2192
  if (!t.release && !n) {
2193
- U && I.warn(Ci);
2193
+ U && k.warn(Ci);
2194
2194
  return;
2195
2195
  }
2196
2196
  t.release = t.release || n, t.environment = t.environment || r;
@@ -2205,7 +2205,7 @@ class xh {
2205
2205
  recordDroppedEvent(t, n, r = 1) {
2206
2206
  if (this._options.sendClientReports) {
2207
2207
  const o = `${t}:${n}`;
2208
- U && I.log(`Recording outcome: "${o}"${r > 1 ? ` (${r} times)` : ""}`), this._outcomes[o] = (this._outcomes[o] || 0) + r;
2208
+ U && k.log(`Recording outcome: "${o}"${r > 1 ? ` (${r} times)` : ""}`), this._outcomes[o] = (this._outcomes[o] || 0) + r;
2209
2209
  }
2210
2210
  }
2211
2211
  /* eslint-disable @typescript-eslint/unified-signatures */
@@ -2236,13 +2236,13 @@ class xh {
2236
2236
  * Send an envelope to Sentry.
2237
2237
  */
2238
2238
  sendEnvelope(t) {
2239
- return this.emit("beforeEnvelope", t), this._isEnabled() && this._transport ? this._transport.send(t).then(null, (n) => (U && I.error("Error while sending envelope:", n), n)) : (U && I.error("Transport disabled"), Ke({}));
2239
+ return this.emit("beforeEnvelope", t), this._isEnabled() && this._transport ? this._transport.send(t).then(null, (n) => (U && k.error("Error while sending envelope:", n), n)) : (U && k.error("Transport disabled"), Ke({}));
2240
2240
  }
2241
2241
  /* eslint-enable @typescript-eslint/unified-signatures */
2242
2242
  /** Setup integrations for this client. */
2243
2243
  _setupIntegrations() {
2244
2244
  const { integrations: t } = this._options;
2245
- this._integrations = _h(this, t), ki(this, t);
2245
+ this._integrations = _h(this, t), Ii(this, t);
2246
2246
  }
2247
2247
  /** Updates existing session based on the provided event */
2248
2248
  _updateSessionFromEvent(t, n) {
@@ -2321,10 +2321,10 @@ class xh {
2321
2321
  * @param scope
2322
2322
  */
2323
2323
  _captureEvent(t, n = {}, r = Me(), o = nt()) {
2324
- return U && Ro(t) && I.log(`Captured error event \`${Pc(t)[0] || "<unknown>"}\``), this._processEvent(t, n, r, o).then(
2324
+ return U && Ro(t) && k.log(`Captured error event \`${Pc(t)[0] || "<unknown>"}\``), this._processEvent(t, n, r, o).then(
2325
2325
  (s) => s.event_id,
2326
2326
  (s) => {
2327
- U && (Ri(s) ? I.log(s.message) : Ti(s) ? I.warn(s.message) : I.warn(s));
2327
+ U && (Ri(s) ? k.log(s.message) : Ti(s) ? k.warn(s.message) : k.warn(s));
2328
2328
  }
2329
2329
  );
2330
2330
  }
@@ -2342,7 +2342,7 @@ class xh {
2342
2342
  * @returns A SyncPromise that resolves with the event or rejects in case event was/will not be send.
2343
2343
  */
2344
2344
  _processEvent(t, n, r, o) {
2345
- const s = this.getOptions(), { sampleRate: i } = s, c = Bc(t), a = Ro(t), u = t.type || "error", l = `before send for type \`${u}\``, d = typeof i > "u" ? void 0 : ko(i);
2345
+ const s = this.getOptions(), { sampleRate: i } = s, c = Bc(t), a = Ro(t), u = t.type || "error", l = `before send for type \`${u}\``, d = typeof i > "u" ? void 0 : Io(i);
2346
2346
  if (a && typeof d == "number" && Math.random() > d)
2347
2347
  return this.recordDroppedEvent("sample_rate", "error"), lr(
2348
2348
  ro(
@@ -2355,8 +2355,8 @@ class xh {
2355
2355
  throw this.recordDroppedEvent("event_processor", f), ro("An event processor returned `null`, will not send event.");
2356
2356
  if (n.data && n.data.__sentry__ === !0)
2357
2357
  return h;
2358
- const g = Ih(this, s, h, n);
2359
- return kh(g, l);
2358
+ const g = kh(this, s, h, n);
2359
+ return Ih(g, l);
2360
2360
  }).then((h) => {
2361
2361
  if (h === null) {
2362
2362
  if (this.recordDroppedEvent("before_send", f), c) {
@@ -2418,17 +2418,17 @@ Reason: ${h}`
2418
2418
  * Sends client reports as an envelope.
2419
2419
  */
2420
2420
  _flushOutcomes() {
2421
- U && I.log("Flushing outcomes...");
2421
+ U && k.log("Flushing outcomes...");
2422
2422
  const t = this._clearOutcomes();
2423
2423
  if (t.length === 0) {
2424
- U && I.log("No outcomes to send");
2424
+ U && k.log("No outcomes to send");
2425
2425
  return;
2426
2426
  }
2427
2427
  if (!this._dsn) {
2428
- U && I.log("No dsn provided, will not send outcomes");
2428
+ U && k.log("No dsn provided, will not send outcomes");
2429
2429
  return;
2430
2430
  }
2431
- U && I.log("Sending outcomes:", t);
2431
+ U && k.log("Sending outcomes:", t);
2432
2432
  const n = Eh(t, this._options.tunnel && Mr(this._dsn));
2433
2433
  this.sendEnvelope(n);
2434
2434
  }
@@ -2436,7 +2436,7 @@ Reason: ${h}`
2436
2436
  * Creates an {@link Event} from all inputs to `captureException` and non-primitive inputs to `captureMessage`.
2437
2437
  */
2438
2438
  }
2439
- function kh(e, t) {
2439
+ function Ih(e, t) {
2440
2440
  const n = `${t} must return \`null\` or a valid event.`;
2441
2441
  if (Rr(e))
2442
2442
  return e.then(
@@ -2453,7 +2453,7 @@ function kh(e, t) {
2453
2453
  throw Zn(n);
2454
2454
  return e;
2455
2455
  }
2456
- function Ih(e, t, n, r) {
2456
+ function kh(e, t, n, r) {
2457
2457
  const { beforeSend: o, beforeSendTransaction: s, beforeSendSpan: i } = t;
2458
2458
  let c = n;
2459
2459
  if (Ro(c) && o)
@@ -2520,7 +2520,7 @@ function Rh(e) {
2520
2520
  return $._sentryClientToLogBufferMap?.get(e);
2521
2521
  }
2522
2522
  function Nh(e, t) {
2523
- t.debug === !0 && (U ? I.enable() : ht(() => {
2523
+ t.debug === !0 && (U ? k.enable() : ht(() => {
2524
2524
  console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");
2525
2525
  })), Me().update(t.initialScope);
2526
2526
  const r = new e(t);
@@ -2617,16 +2617,16 @@ function Uh(e, t, n = Ah(
2617
2617
  e.recordDroppedEvent(d, wi(h));
2618
2618
  });
2619
2619
  }, l = () => t({ body: Gf(a) }).then(
2620
- (d) => (d.statusCode !== void 0 && (d.statusCode < 200 || d.statusCode >= 300) && U && I.warn(`Sentry responded with status code ${d.statusCode} to sent event.`), r = Wc(r, d), d),
2620
+ (d) => (d.statusCode !== void 0 && (d.statusCode < 200 || d.statusCode >= 300) && U && k.warn(`Sentry responded with status code ${d.statusCode} to sent event.`), r = Wc(r, d), d),
2621
2621
  (d) => {
2622
- throw u("network_error"), U && I.error("Encountered error running transport request:", d), d;
2622
+ throw u("network_error"), U && k.error("Encountered error running transport request:", d), d;
2623
2623
  }
2624
2624
  );
2625
2625
  return n.add(l).then(
2626
2626
  (d) => d,
2627
2627
  (d) => {
2628
2628
  if (d === $c)
2629
- return U && I.error("Skipped sending event because buffer is full."), u("queue_overflow"), Ke({});
2629
+ return U && k.error("Skipped sending event because buffer is full."), u("queue_overflow"), Ke({});
2630
2630
  throw d;
2631
2631
  }
2632
2632
  );
@@ -2753,25 +2753,25 @@ function Mi(e = {}, t = {}) {
2753
2753
  function Xh(e, t) {
2754
2754
  if (e.type) {
2755
2755
  if (e.type === "transaction" && Zh(e, t.ignoreTransactions))
2756
- return U && I.warn(
2756
+ return U && k.warn(
2757
2757
  `Event dropped due to being matched by \`ignoreTransactions\` option.
2758
2758
  Event: ${st(e)}`
2759
2759
  ), !0;
2760
2760
  } else {
2761
2761
  if (Qh(e, t.ignoreErrors))
2762
- return U && I.warn(
2762
+ return U && k.warn(
2763
2763
  `Event dropped due to being matched by \`ignoreErrors\` option.
2764
2764
  Event: ${st(e)}`
2765
2765
  ), !0;
2766
2766
  if (rp(e))
2767
- return U && I.warn(
2767
+ return U && k.warn(
2768
2768
  `Event dropped due to not having an error message, error type or stacktrace.
2769
2769
  Event: ${st(
2770
2770
  e
2771
2771
  )}`
2772
2772
  ), !0;
2773
2773
  if (ep(e, t.denyUrls))
2774
- return U && I.warn(
2774
+ return U && k.warn(
2775
2775
  `Event dropped due to being matched by \`denyUrls\` option.
2776
2776
  Event: ${st(
2777
2777
  e
@@ -2779,7 +2779,7 @@ Event: ${st(
2779
2779
  Url: ${dr(e)}`
2780
2780
  ), !0;
2781
2781
  if (!tp(e, t.allowUrls))
2782
- return U && I.warn(
2782
+ return U && k.warn(
2783
2783
  `Event dropped due to not being matched by \`allowUrls\` option.
2784
2784
  Event: ${st(
2785
2785
  e
@@ -2823,7 +2823,7 @@ function dr(e) {
2823
2823
  const n = [...e.exception?.values ?? []].reverse().find((r) => r.mechanism?.parent_id === void 0 && r.stacktrace?.frames?.length)?.stacktrace?.frames;
2824
2824
  return n ? np(n) : null;
2825
2825
  } catch {
2826
- return U && I.error(`Cannot extract url for event ${st(e)}`), null;
2826
+ return U && k.error(`Cannot extract url for event ${st(e)}`), null;
2827
2827
  }
2828
2828
  }
2829
2829
  function rp(e) {
@@ -2924,7 +2924,7 @@ const ap = "Dedupe", cp = () => {
2924
2924
  return t;
2925
2925
  try {
2926
2926
  if (lp(t, e))
2927
- return U && I.warn("Event dropped due to being a duplicate of previously captured event."), null;
2927
+ return U && k.warn("Event dropped due to being a duplicate of previously captured event."), null;
2928
2928
  } catch {
2929
2929
  }
2930
2930
  return e = t;
@@ -3022,7 +3022,7 @@ function pp() {
3022
3022
  const n = t.createElement("iframe");
3023
3023
  n.hidden = !0, t.head.appendChild(n), n.contentWindow?.fetch && (e = Oo(n.contentWindow.fetch)), t.head.removeChild(n);
3024
3024
  } catch (n) {
3025
- U && I.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", n);
3025
+ U && k.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", n);
3026
3026
  }
3027
3027
  return e;
3028
3028
  }
@@ -3213,16 +3213,16 @@ function io(e, t) {
3213
3213
  };
3214
3214
  }
3215
3215
  function bs(e, t) {
3216
- const n = t.stacktrace || t.stack || "", r = Ip(t), o = Cp(t);
3216
+ const n = t.stacktrace || t.stack || "", r = kp(t), o = Cp(t);
3217
3217
  try {
3218
3218
  return e(n, r, o);
3219
3219
  } catch {
3220
3220
  }
3221
3221
  return [];
3222
3222
  }
3223
- const kp = /Minified React error #\d+;/i;
3224
- function Ip(e) {
3225
- return e && kp.test(e.message) ? 1 : 0;
3223
+ const Ip = /Minified React error #\d+;/i;
3224
+ function kp(e) {
3225
+ return e && Ip.test(e.message) ? 1 : 0;
3226
3226
  }
3227
3227
  function Cp(e) {
3228
3228
  return typeof e.framesToPop == "number" ? e.framesToPop : 0;
@@ -3359,7 +3359,7 @@ const fr = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, Up = (e, t) => e >
3359
3359
  !e || t && t.responseStart > 0 && t.responseStart < performance.now()
3360
3360
  )
3361
3361
  return t;
3362
- }, _s = () => Xc()?.activationStart || 0, kn = (e, t) => {
3362
+ }, _s = () => Xc()?.activationStart || 0, In = (e, t) => {
3363
3363
  const n = Xc();
3364
3364
  let r = "navigate";
3365
3365
  return n && (q.document?.prerendering || _s() > 0 ? r = "prerender" : q.document?.wasDiscarded ? r = "restore" : n.type && (r = n.type.replace(/_/g, "-"))), {
@@ -3392,7 +3392,7 @@ const fr = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, Up = (e, t) => e >
3392
3392
  }
3393
3393
  } catch {
3394
3394
  }
3395
- }, In = (e) => {
3395
+ }, kn = (e) => {
3396
3396
  const t = (n) => {
3397
3397
  (n.type === "pagehide" || q.document?.visibilityState === "hidden") && e(n);
3398
3398
  };
@@ -3418,7 +3418,7 @@ const Bp = () => q.document.visibilityState === "hidden" && !q.document.prerende
3418
3418
  q.document?.prerendering ? addEventListener("prerenderingchange", () => e(), !0) : e();
3419
3419
  }, Wp = [1800, 3e3], zp = (e, t = {}) => {
3420
3420
  Lr(() => {
3421
- const n = vs(), r = kn("FCP");
3421
+ const n = vs(), r = In("FCP");
3422
3422
  let o;
3423
3423
  const i = gt("paint", (c) => {
3424
3424
  c.forEach((a) => {
@@ -3430,7 +3430,7 @@ const Bp = () => q.document.visibilityState === "hidden" && !q.document.prerende
3430
3430
  }, jp = [0.1, 0.25], qp = (e, t = {}) => {
3431
3431
  zp(
3432
3432
  Dr(() => {
3433
- const n = kn("CLS", 0);
3433
+ const n = In("CLS", 0);
3434
3434
  let r, o = 0, s = [];
3435
3435
  const i = (a) => {
3436
3436
  a.forEach((u) => {
@@ -3440,21 +3440,21 @@ const Bp = () => q.document.visibilityState === "hidden" && !q.document.prerende
3440
3440
  }
3441
3441
  }), o > n.value && (n.value = o, n.entries = s, r());
3442
3442
  }, c = gt("layout-shift", i);
3443
- c && (r = xn(e, n, jp, t.reportAllChanges), In(() => {
3443
+ c && (r = xn(e, n, jp, t.reportAllChanges), kn(() => {
3444
3444
  i(c.takeRecords()), r(!0);
3445
3445
  }), setTimeout(r, 0));
3446
3446
  })
3447
3447
  );
3448
3448
  }, Gp = [100, 300], Kp = (e, t = {}) => {
3449
3449
  Lr(() => {
3450
- const n = vs(), r = kn("FID");
3450
+ const n = vs(), r = In("FID");
3451
3451
  let o;
3452
3452
  const s = (a) => {
3453
3453
  a.startTime < n.firstHiddenTime && (r.value = a.processingStart - a.startTime, r.entries.push(a), o(!0));
3454
3454
  }, i = (a) => {
3455
3455
  a.forEach(s);
3456
3456
  }, c = gt("first-input", i);
3457
- o = xn(e, r, Gp, t.reportAllChanges), c && In(
3457
+ o = xn(e, r, Gp, t.reportAllChanges), c && kn(
3458
3458
  Dr(() => {
3459
3459
  i(c.takeRecords()), c.disconnect();
3460
3460
  })
@@ -3501,11 +3501,11 @@ const Zp = () => Yp() - Qp, em = () => {
3501
3501
  }, Zc = (e) => {
3502
3502
  const t = q.requestIdleCallback || q.setTimeout;
3503
3503
  let n = -1;
3504
- return e = Dr(e), q.document?.visibilityState === "hidden" ? e() : (n = t(e), In(e)), n;
3504
+ return e = Dr(e), q.document?.visibilityState === "hidden" ? e() : (n = t(e), kn(e)), n;
3505
3505
  }, rm = [200, 500], om = (e, t = {}) => {
3506
3506
  "PerformanceEventTiming" in q && "interactionId" in PerformanceEventTiming.prototype && Lr(() => {
3507
3507
  Jp();
3508
- const n = kn("INP");
3508
+ const n = In("INP");
3509
3509
  let r;
3510
3510
  const o = (i) => {
3511
3511
  Zc(() => {
@@ -3522,13 +3522,13 @@ const Zp = () => Yp() - Qp, em = () => {
3522
3522
  // gained.
3523
3523
  durationThreshold: t.durationThreshold != null ? t.durationThreshold : Xp
3524
3524
  });
3525
- r = xn(e, n, rm, t.reportAllChanges), s && (s.observe({ type: "first-input", buffered: !0 }), In(() => {
3525
+ r = xn(e, n, rm, t.reportAllChanges), s && (s.observe({ type: "first-input", buffered: !0 }), kn(() => {
3526
3526
  o(s.takeRecords()), r(!0);
3527
3527
  }));
3528
3528
  });
3529
3529
  }, sm = [2500, 4e3], Bi = {}, im = (e, t = {}) => {
3530
3530
  Lr(() => {
3531
- const n = vs(), r = kn("LCP");
3531
+ const n = vs(), r = In("LCP");
3532
3532
  let o;
3533
3533
  const s = (c) => {
3534
3534
  t.reportAllChanges || (c = c.slice(-1)), c.forEach((a) => {
@@ -3545,7 +3545,7 @@ const Zp = () => Yp() - Qp, em = () => {
3545
3545
  once: !0,
3546
3546
  capture: !0
3547
3547
  });
3548
- }), In(c);
3548
+ }), kn(c);
3549
3549
  }
3550
3550
  });
3551
3551
  }, en = {}, pr = {};
@@ -3572,7 +3572,7 @@ function Cn(e, t) {
3572
3572
  try {
3573
3573
  r(t);
3574
3574
  } catch (o) {
3575
- fr && I.error(
3575
+ fr && k.error(
3576
3576
  `Error while triggering instrumentation handler.
3577
3577
  Type: ${e}
3578
3578
  Name: ${Ge(r)}
@@ -3767,7 +3767,7 @@ function au(e) {
3767
3767
  const s = o.contentWindow;
3768
3768
  s?.[e] && (n = s[e]), r.head.removeChild(o);
3769
3769
  } catch (o) {
3770
- fr && I.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `, o);
3770
+ fr && k.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `, o);
3771
3771
  }
3772
3772
  return n && (er[e] = n.bind(q));
3773
3773
  }
@@ -3788,7 +3788,7 @@ function xm() {
3788
3788
  const e = XMLHttpRequest.prototype;
3789
3789
  e.open = new Proxy(e.open, {
3790
3790
  apply(t, n, r) {
3791
- const o = new Error(), s = ze() * 1e3, i = We(r[0]) ? r[0].toUpperCase() : void 0, c = km(r[1]);
3791
+ const o = new Error(), s = ze() * 1e3, i = We(r[0]) ? r[0].toUpperCase() : void 0, c = Im(r[1]);
3792
3792
  if (!i || !c)
3793
3793
  return t.apply(n, r);
3794
3794
  n[St] = {
@@ -3837,7 +3837,7 @@ function xm() {
3837
3837
  }
3838
3838
  });
3839
3839
  }
3840
- function km(e) {
3840
+ function Im(e) {
3841
3841
  if (We(e))
3842
3842
  return e;
3843
3843
  try {
@@ -3848,7 +3848,7 @@ function km(e) {
3848
3848
  function cu(e) {
3849
3849
  return new URLSearchParams(e).toString();
3850
3850
  }
3851
- function uu(e, t = I) {
3851
+ function uu(e, t = k) {
3852
3852
  try {
3853
3853
  if (typeof e == "string")
3854
3854
  return [e];
@@ -3867,7 +3867,7 @@ function lu(e = []) {
3867
3867
  if (!(e.length !== 2 || typeof e[1] != "object"))
3868
3868
  return e[1].body;
3869
3869
  }
3870
- function Im(e, t = au("fetch")) {
3870
+ function km(e, t = au("fetch")) {
3871
3871
  let n = 0, r = 0;
3872
3872
  function o(s) {
3873
3873
  const i = s.body.length;
@@ -3985,7 +3985,7 @@ function jm(e, t) {
3985
3985
  if (Q() !== e)
3986
3986
  return;
3987
3987
  let o, s, i = typeof t == "object" ? t.serializeAttribute : void 0, c = typeof t == "object" && typeof t.maxStringLength == "number" ? t.maxStringLength : void 0;
3988
- c && c > Bn && (ln && I.warn(
3988
+ c && c > Bn && (ln && k.warn(
3989
3989
  `\`dom.maxStringLength\` cannot exceed ${Bn}, but a value of ${c} was configured. Sentry will use ${Bn} instead.`
3990
3990
  ), c = Bn), typeof i == "string" && (i = [i]);
3991
3991
  try {
@@ -4268,7 +4268,7 @@ const og = () => ({
4268
4268
  name: "BrowserSession",
4269
4269
  setupOnce() {
4270
4270
  if (typeof ee.document > "u") {
4271
- ln && I.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");
4271
+ ln && k.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");
4272
4272
  return;
4273
4273
  }
4274
4274
  Si({ ignoreDuration: !0 }), Ei(), Ss(({ from: e, to: t }) => {
@@ -4362,7 +4362,7 @@ function fg(e, t, n, r) {
4362
4362
  }), e;
4363
4363
  }
4364
4364
  function ji(e) {
4365
- ln && I.log(`Global Handler attached: ${e}`);
4365
+ ln && k.log(`Global Handler attached: ${e}`);
4366
4366
  }
4367
4367
  function fu() {
4368
4368
  return Q()?.getOptions() || {
@@ -4455,18 +4455,18 @@ function Eg(e = {}) {
4455
4455
  });
4456
4456
  return;
4457
4457
  }
4458
- ln && !Vc() && I.warn(
4458
+ ln && !Vc() && k.warn(
4459
4459
  "No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."
4460
4460
  );
4461
4461
  const n = {
4462
4462
  ...t,
4463
- stackParser: If(t.stackParser || Bm),
4463
+ stackParser: kf(t.stackParser || Bm),
4464
4464
  integrations: wh(t),
4465
- transport: t.transport || Im
4465
+ transport: t.transport || km
4466
4466
  };
4467
4467
  return Nh(Pp, n);
4468
4468
  }
4469
- const Y = $, Es = "sentryReplaySession", xg = "replay_event", xs = "Unable to send Replay", kg = 3e5, Ig = 9e5, Cg = 5e3, Tg = 5500, Rg = 6e4, Ng = 5e3, Og = 3, qi = 15e4, $n = 5e3, Ag = 3e3, Mg = 300, ks = 2e7, Dg = 4999, Lg = 15e3, Gi = 36e5;
4469
+ const Y = $, Es = "sentryReplaySession", xg = "replay_event", xs = "Unable to send Replay", Ig = 3e5, kg = 9e5, Cg = 5e3, Tg = 5500, Rg = 6e4, Ng = 5e3, Og = 3, qi = 15e4, $n = 5e3, Ag = 3e3, Mg = 300, Is = 2e7, Dg = 4999, Lg = 15e3, Gi = 36e5;
4470
4470
  var Pg = Object.defineProperty, Ug = (e, t, n) => t in e ? Pg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ki = (e, t, n) => Ug(e, typeof t != "symbol" ? t + "" : t, n), re = /* @__PURE__ */ ((e) => (e[e.Document = 0] = "Document", e[e.DocumentType = 1] = "DocumentType", e[e.Element = 2] = "Element", e[e.Text = 3] = "Text", e[e.CDATA = 4] = "CDATA", e[e.Comment = 5] = "Comment", e))(re || {});
4471
4471
  function Fg(e) {
4472
4472
  return e.nodeType === e.ELEMENT_NODE;
@@ -4628,7 +4628,7 @@ function Gg(e) {
4628
4628
  }
4629
4629
  return !0;
4630
4630
  }
4631
- function Is(e) {
4631
+ function ks(e) {
4632
4632
  const t = e.type;
4633
4633
  return e.hasAttribute("data-rr-is-password") ? "password" : t ? (
4634
4634
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
@@ -4927,7 +4927,7 @@ function cy(e, t) {
4927
4927
  dataURLOptions: b = {},
4928
4928
  inlineImages: E,
4929
4929
  recordCanvas: O,
4930
- keepIframeSrcFn: k,
4930
+ keepIframeSrcFn: I,
4931
4931
  newlyAddedElement: w = !1
4932
4932
  } = t, v = uy(n, r);
4933
4933
  switch (e.nodeType) {
@@ -4962,7 +4962,7 @@ function cy(e, t) {
4962
4962
  dataURLOptions: b,
4963
4963
  inlineImages: E,
4964
4964
  recordCanvas: O,
4965
- keepIframeSrcFn: k,
4965
+ keepIframeSrcFn: I,
4966
4966
  newlyAddedElement: w,
4967
4967
  rootId: v,
4968
4968
  maskTextClass: u,
@@ -5087,7 +5087,7 @@ function dy(e, t) {
5087
5087
  unmaskTextClass: b,
5088
5088
  maskTextSelector: E,
5089
5089
  unmaskTextSelector: O
5090
- } = t, k = vu(
5090
+ } = t, I = vu(
5091
5091
  e,
5092
5092
  r,
5093
5093
  o,
@@ -5119,7 +5119,7 @@ function dy(e, t) {
5119
5119
  _ && (v._cssText = yr(_, Fr(n)));
5120
5120
  }
5121
5121
  if (w === "input" || w === "textarea" || w === "select" || w === "option") {
5122
- const _ = e, C = Is(_), z = gr(_, Bo(w), C), K = _.checked;
5122
+ const _ = e, C = ks(_), z = gr(_, Bo(w), C), K = _.checked;
5123
5123
  if (C !== "submit" && C !== "button" && z) {
5124
5124
  const L = Ut(
5125
5125
  _,
@@ -5183,7 +5183,7 @@ function dy(e, t) {
5183
5183
  };
5184
5184
  _.complete && _.naturalWidth !== 0 ? K() : _.addEventListener("load", K);
5185
5185
  }
5186
- if ((w === "audio" || w === "video") && (v.rr_mediaState = e.paused ? "paused" : "played", v.rr_mediaCurrentTime = e.currentTime), p || (e.scrollLeft && (v.rr_scrollLeft = e.scrollLeft), e.scrollTop && (v.rr_scrollTop = e.scrollTop)), k) {
5186
+ if ((w === "audio" || w === "video") && (v.rr_mediaState = e.paused ? "paused" : "played", v.rr_mediaCurrentTime = e.currentTime), p || (e.scrollLeft && (v.rr_scrollLeft = e.scrollLeft), e.scrollTop && (v.rr_scrollTop = e.scrollTop)), I) {
5187
5187
  const { width: _, height: C } = e.getBoundingClientRect();
5188
5188
  v = {
5189
5189
  class: v.class,
@@ -5191,7 +5191,7 @@ function dy(e, t) {
5191
5191
  rr_height: `${C}px`
5192
5192
  };
5193
5193
  }
5194
- w === "iframe" && !h(v.src) && (!k && !bu(e) && (v.rr_src = v.src), delete v.src);
5194
+ w === "iframe" && !h(v.src) && (!I && !bu(e) && (v.rr_src = v.src), delete v.src);
5195
5195
  let x;
5196
5196
  try {
5197
5197
  customElements.get(w) && (x = !0);
@@ -5203,7 +5203,7 @@ function dy(e, t) {
5203
5203
  attributes: v,
5204
5204
  childNodes: [],
5205
5205
  isSVG: oy(e) || void 0,
5206
- needBlock: k,
5206
+ needBlock: I,
5207
5207
  rootId: g,
5208
5208
  isCustom: x
5209
5209
  };
@@ -5242,7 +5242,7 @@ function fy(e, t) {
5242
5242
  }
5243
5243
  return !1;
5244
5244
  }
5245
- function kt(e, t) {
5245
+ function It(e, t) {
5246
5246
  const {
5247
5247
  doc: n,
5248
5248
  mirror: r,
@@ -5262,7 +5262,7 @@ function kt(e, t) {
5262
5262
  maskInputFn: b,
5263
5263
  slimDOMOptions: E,
5264
5264
  dataURLOptions: O = {},
5265
- inlineImages: k = !1,
5265
+ inlineImages: I = !1,
5266
5266
  recordCanvas: w = !1,
5267
5267
  onSerialize: v,
5268
5268
  onIframeLoad: S,
@@ -5290,7 +5290,7 @@ function kt(e, t) {
5290
5290
  maskTextFn: y,
5291
5291
  maskInputFn: b,
5292
5292
  dataURLOptions: O,
5293
- inlineImages: k,
5293
+ inlineImages: I,
5294
5294
  recordCanvas: w,
5295
5295
  keepIframeSrcFn: z,
5296
5296
  newlyAddedElement: K
@@ -5330,7 +5330,7 @@ function kt(e, t) {
5330
5330
  maskInputFn: b,
5331
5331
  slimDOMOptions: E,
5332
5332
  dataURLOptions: O,
5333
- inlineImages: k,
5333
+ inlineImages: I,
5334
5334
  recordCanvas: w,
5335
5335
  preserveWhiteSpace: L,
5336
5336
  onSerialize: v,
@@ -5341,12 +5341,12 @@ function kt(e, t) {
5341
5341
  keepIframeSrcFn: z
5342
5342
  };
5343
5343
  for (const ge of Array.from(e.childNodes)) {
5344
- const Se = kt(ge, J);
5344
+ const Se = It(ge, J);
5345
5345
  Se && P.childNodes.push(Se);
5346
5346
  }
5347
5347
  if (Fg(e) && e.shadowRoot)
5348
5348
  for (const ge of Array.from(e.shadowRoot.childNodes)) {
5349
- const Se = kt(ge, J);
5349
+ const Se = It(ge, J);
5350
5350
  Se && (nn(e.shadowRoot) && (Se.isShadow = !0), P.childNodes.push(Se));
5351
5351
  }
5352
5352
  }
@@ -5360,7 +5360,7 @@ function kt(e, t) {
5360
5360
  () => {
5361
5361
  const J = bu(e);
5362
5362
  if (J && S) {
5363
- const ge = kt(J, {
5363
+ const ge = It(J, {
5364
5364
  doc: J,
5365
5365
  mirror: r,
5366
5366
  blockClass: o,
@@ -5379,7 +5379,7 @@ function kt(e, t) {
5379
5379
  maskInputFn: b,
5380
5380
  slimDOMOptions: E,
5381
5381
  dataURLOptions: O,
5382
- inlineImages: k,
5382
+ inlineImages: I,
5383
5383
  recordCanvas: w,
5384
5384
  preserveWhiteSpace: L,
5385
5385
  onSerialize: v,
@@ -5400,7 +5400,7 @@ function kt(e, t) {
5400
5400
  e,
5401
5401
  () => {
5402
5402
  if (_) {
5403
- const J = kt(e, {
5403
+ const J = It(e, {
5404
5404
  doc: n,
5405
5405
  mirror: r,
5406
5406
  blockClass: o,
@@ -5419,7 +5419,7 @@ function kt(e, t) {
5419
5419
  maskInputFn: b,
5420
5420
  slimDOMOptions: E,
5421
5421
  dataURLOptions: O,
5422
- inlineImages: k,
5422
+ inlineImages: I,
5423
5423
  recordCanvas: w,
5424
5424
  preserveWhiteSpace: L,
5425
5425
  onSerialize: v,
@@ -5458,7 +5458,7 @@ function hy(e, t) {
5458
5458
  maskInputFn: b,
5459
5459
  slimDOM: E = !1,
5460
5460
  dataURLOptions: O,
5461
- preserveWhiteSpace: k,
5461
+ preserveWhiteSpace: I,
5462
5462
  onSerialize: w,
5463
5463
  onIframeLoad: v,
5464
5464
  iframeLoadTimeout: S,
@@ -5466,7 +5466,7 @@ function hy(e, t) {
5466
5466
  stylesheetLoadTimeout: _,
5467
5467
  keepIframeSrcFn: C = () => !1
5468
5468
  } = t || {};
5469
- return kt(e, {
5469
+ return It(e, {
5470
5470
  doc: e,
5471
5471
  mirror: n,
5472
5472
  blockClass: r,
@@ -5518,7 +5518,7 @@ function hy(e, t) {
5518
5518
  dataURLOptions: O,
5519
5519
  inlineImages: f,
5520
5520
  recordCanvas: h,
5521
- preserveWhiteSpace: k,
5521
+ preserveWhiteSpace: I,
5522
5522
  onSerialize: w,
5523
5523
  onIframeLoad: v,
5524
5524
  iframeLoadTimeout: S,
@@ -5614,10 +5614,10 @@ function Eu(e) {
5614
5614
  function xu() {
5615
5615
  return window.innerHeight || document.documentElement && document.documentElement.clientHeight || document.body && document.body.clientHeight;
5616
5616
  }
5617
- function ku() {
5617
+ function Iu() {
5618
5618
  return window.innerWidth || document.documentElement && document.documentElement.clientWidth || document.body && document.body.clientWidth;
5619
5619
  }
5620
- function Iu(e) {
5620
+ function ku(e) {
5621
5621
  if (!e)
5622
5622
  return null;
5623
5623
  try {
@@ -5629,7 +5629,7 @@ function Iu(e) {
5629
5629
  function be(e, t, n, r, o) {
5630
5630
  if (!e)
5631
5631
  return !1;
5632
- const s = Iu(e);
5632
+ const s = ku(e);
5633
5633
  if (!s)
5634
5634
  return !1;
5635
5635
  const i = xt(t, n);
@@ -5825,7 +5825,7 @@ class Ey {
5825
5825
  const u = tn(a.parentNode) ? this.mirror.getId(Nu(a)) : this.mirror.getId(a.parentNode), l = o(a);
5826
5826
  if (u === -1 || l === -1)
5827
5827
  return r.addNode(a);
5828
- const d = kt(a, {
5828
+ const d = It(a, {
5829
5829
  doc: this.doc,
5830
5830
  mirror: this.mirror,
5831
5831
  blockClass: this.blockClass,
@@ -5959,7 +5959,7 @@ class Ey {
5959
5959
  this.unmaskTextClass,
5960
5960
  this.unmaskTextSelector,
5961
5961
  this.maskAllText
5962
- ) && n ? this.maskTextFn ? this.maskTextFn(n, Iu(t.target)) : n.replace(/[\S]/g, "*") : n,
5962
+ ) && n ? this.maskTextFn ? this.maskTextFn(n, ku(t.target)) : n.replace(/[\S]/g, "*") : n,
5963
5963
  node: t.target
5964
5964
  });
5965
5965
  break;
@@ -5968,7 +5968,7 @@ class Ey {
5968
5968
  const n = t.target;
5969
5969
  let r = t.attributeName, o = t.target.getAttribute(r);
5970
5970
  if (r === "value") {
5971
- const i = Is(n), c = n.tagName;
5971
+ const i = ks(n), c = n.tagName;
5972
5972
  o = gr(n, c, i);
5973
5973
  const a = Ur({
5974
5974
  maskInputOptions: this.maskInputOptions,
@@ -6158,10 +6158,10 @@ function Au(e, t) {
6158
6158
  return n ? e.has(n) ? !0 : Au(e, n) : !1;
6159
6159
  }
6160
6160
  let rn;
6161
- function ky(e) {
6161
+ function Iy(e) {
6162
6162
  rn = e;
6163
6163
  }
6164
- function Iy() {
6164
+ function ky() {
6165
6165
  rn = void 0;
6166
6166
  }
6167
6167
  const B = (e) => rn ? (...n) => {
@@ -6173,7 +6173,7 @@ const B = (e) => rn ? (...n) => {
6173
6173
  };
6174
6174
  throw r;
6175
6175
  }
6176
- } : e, It = [];
6176
+ } : e, kt = [];
6177
6177
  function Tn(e) {
6178
6178
  try {
6179
6179
  if ("composedPath" in e) {
@@ -6188,7 +6188,7 @@ function Tn(e) {
6188
6188
  }
6189
6189
  function Mu(e, t) {
6190
6190
  const n = new Ey();
6191
- It.push(n), n.init(e);
6191
+ kt.push(n), n.init(e);
6192
6192
  let r = window.MutationObserver || /**
6193
6193
  * Some websites may disable MutationObserver by removing it from the window object.
6194
6194
  * If someone is using rrweb to build a browser extention or things like it, they
@@ -6378,7 +6378,7 @@ function Ry({ viewportResizeCb: e }, { win: t }) {
6378
6378
  const o = B(
6379
6379
  hn(
6380
6380
  B(() => {
6381
- const s = xu(), i = ku();
6381
+ const s = xu(), i = Iu();
6382
6382
  (n !== s || r !== i) && (e({
6383
6383
  width: Number(i),
6384
6384
  height: Number(s)
@@ -6422,7 +6422,7 @@ function Oy({
6422
6422
  const z = x;
6423
6423
  if (z.classList.contains(i) || c && z.matches(c))
6424
6424
  return;
6425
- const K = Is(x);
6425
+ const K = ks(x);
6426
6426
  let L = gr(z, C, K), Z = !1;
6427
6427
  const ae = Ur({
6428
6428
  maskInputOptions: a,
@@ -6475,22 +6475,22 @@ function Oy({
6475
6475
  }
6476
6476
  const O = (l.input === "last" ? ["change"] : ["input", "change"]).map(
6477
6477
  (S) => pe(S, B(y), t)
6478
- ), k = t.defaultView;
6479
- if (!k)
6478
+ ), I = t.defaultView;
6479
+ if (!I)
6480
6480
  return () => {
6481
6481
  O.forEach((S) => S());
6482
6482
  };
6483
- const w = k.Object.getOwnPropertyDescriptor(
6484
- k.HTMLInputElement.prototype,
6483
+ const w = I.Object.getOwnPropertyDescriptor(
6484
+ I.HTMLInputElement.prototype,
6485
6485
  "value"
6486
6486
  ), v = [
6487
- [k.HTMLInputElement.prototype, "value"],
6488
- [k.HTMLInputElement.prototype, "checked"],
6489
- [k.HTMLSelectElement.prototype, "value"],
6490
- [k.HTMLTextAreaElement.prototype, "value"],
6487
+ [I.HTMLInputElement.prototype, "value"],
6488
+ [I.HTMLInputElement.prototype, "checked"],
6489
+ [I.HTMLSelectElement.prototype, "value"],
6490
+ [I.HTMLTextAreaElement.prototype, "value"],
6491
6491
  // Some UI library use selectedIndex to set select value
6492
- [k.HTMLSelectElement.prototype, "selectedIndex"],
6493
- [k.HTMLOptionElement.prototype, "selected"]
6492
+ [I.HTMLSelectElement.prototype, "selectedIndex"],
6493
+ [I.HTMLOptionElement.prototype, "selected"]
6494
6494
  ];
6495
6495
  return w && w.set && O.push(
6496
6496
  ...v.map(
@@ -6507,7 +6507,7 @@ function Oy({
6507
6507
  }
6508
6508
  },
6509
6509
  !1,
6510
- k
6510
+ I
6511
6511
  )
6512
6512
  )
6513
6513
  ), B(() => {
@@ -6936,7 +6936,7 @@ function Fy(e, t = {}) {
6936
6936
  b.observer(b.callback, n, b.options)
6937
6937
  );
6938
6938
  return B(() => {
6939
- It.forEach((b) => b.reset()), r?.disconnect(), o(), s(), i(), c(), a(), u(), l(), d(), f(), h(), p(), g(), y.forEach((b) => b());
6939
+ kt.forEach((b) => b.reset()), r?.disconnect(), o(), s(), i(), c(), a(), u(), l(), d(), f(), h(), p(), g(), y.forEach((b) => b());
6940
6940
  });
6941
6941
  }
6942
6942
  function Hn(e) {
@@ -7367,7 +7367,7 @@ function je(e = {}) {
7367
7367
  slimDOMOptions: b,
7368
7368
  maskAttributeFn: E,
7369
7369
  maskInputFn: O,
7370
- maskTextFn: k,
7370
+ maskTextFn: I,
7371
7371
  maxCanvasSize: w = null,
7372
7372
  packFn: v,
7373
7373
  sampling: S = {},
@@ -7387,7 +7387,7 @@ function je(e = {}) {
7387
7387
  onMutation: jt,
7388
7388
  getCanvasManager: Vr
7389
7389
  } = e;
7390
- ky(Se);
7390
+ Iy(Se);
7391
7391
  const yt = K ? window.parent === window : !0;
7392
7392
  let G = !1;
7393
7393
  if (!yt)
@@ -7402,7 +7402,7 @@ function je(e = {}) {
7402
7402
  return () => {
7403
7403
  };
7404
7404
  _ !== void 0 && S.mousemove === void 0 && (S.mousemove = _), Te.reset();
7405
- const Ie = g === !0 ? {
7405
+ const ke = g === !0 ? {
7406
7406
  color: !0,
7407
7407
  date: !0,
7408
7408
  "datetime-local": !0,
@@ -7444,7 +7444,7 @@ function je(e = {}) {
7444
7444
  };
7445
7445
  X = (H, Ce) => {
7446
7446
  const F = H;
7447
- if (F.timestamp = br(), It[0]?.isFrozen() && F.type !== M.FullSnapshot && !(F.type === M.IncrementalSnapshot && F.data.source === N.Mutation) && It.forEach((de) => de.unfreeze()), yt)
7447
+ if (F.timestamp = br(), kt[0]?.isFrozen() && F.type !== M.FullSnapshot && !(F.type === M.IncrementalSnapshot && F.data.source === N.Mutation) && kt.forEach((de) => de.unfreeze()), yt)
7448
7448
  t?.(Kt(F), Ce);
7449
7449
  else if (G) {
7450
7450
  const de = {
@@ -7542,10 +7542,10 @@ function je(e = {}) {
7542
7542
  maskTextSelector: f,
7543
7543
  unmaskTextSelector: h,
7544
7544
  inlineStylesheet: p,
7545
- maskInputOptions: Ie,
7545
+ maskInputOptions: ke,
7546
7546
  dataURLOptions: x,
7547
7547
  maskAttributeFn: E,
7548
- maskTextFn: k,
7548
+ maskTextFn: I,
7549
7549
  maskInputFn: O,
7550
7550
  recordCanvas: z,
7551
7551
  inlineImages: P,
@@ -7566,12 +7566,12 @@ function je(e = {}) {
7566
7566
  type: M.Meta,
7567
7567
  data: {
7568
7568
  href: window.location.href,
7569
- width: ku(),
7569
+ width: Iu(),
7570
7570
  height: xu()
7571
7571
  }
7572
7572
  },
7573
7573
  H
7574
- ), rt.reset(), An.init(), It.forEach((F) => F.lock());
7574
+ ), rt.reset(), An.init(), kt.forEach((F) => F.lock());
7575
7575
  const Ce = hy(document, {
7576
7576
  mirror: Te,
7577
7577
  blockClass: o,
@@ -7583,10 +7583,10 @@ function je(e = {}) {
7583
7583
  maskTextSelector: f,
7584
7584
  unmaskTextSelector: h,
7585
7585
  inlineStylesheet: p,
7586
- maskAllInputs: Ie,
7586
+ maskAllInputs: ke,
7587
7587
  maskAttributeFn: E,
7588
7588
  maskInputFn: O,
7589
- maskTextFn: k,
7589
+ maskTextFn: I,
7590
7590
  slimDOM: qt,
7591
7591
  dataURLOptions: x,
7592
7592
  recordCanvas: z,
@@ -7610,7 +7610,7 @@ function je(e = {}) {
7610
7610
  node: Ce,
7611
7611
  initialOffset: Eu(window)
7612
7612
  }
7613
- }), It.forEach((F) => F.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && rt.adoptStyleSheets(
7613
+ }), kt.forEach((F) => F.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && rt.adoptStyleSheets(
7614
7614
  document.adoptedStyleSheets,
7615
7615
  Te.getId(document)
7616
7616
  );
@@ -7705,7 +7705,7 @@ function je(e = {}) {
7705
7705
  unmaskTextClass: d,
7706
7706
  maskTextSelector: f,
7707
7707
  unmaskTextSelector: h,
7708
- maskInputOptions: Ie,
7708
+ maskInputOptions: ke,
7709
7709
  inlineStylesheet: p,
7710
7710
  sampling: S,
7711
7711
  recordDOM: C,
@@ -7716,7 +7716,7 @@ function je(e = {}) {
7716
7716
  doc: de,
7717
7717
  maskAttributeFn: E,
7718
7718
  maskInputFn: O,
7719
- maskTextFn: k,
7719
+ maskTextFn: I,
7720
7720
  keepIframeSrcFn: J,
7721
7721
  blockSelector: s,
7722
7722
  unblockSelector: i,
@@ -7772,7 +7772,7 @@ function je(e = {}) {
7772
7772
  window
7773
7773
  )
7774
7774
  )), () => {
7775
- H.forEach((de) => de()), Yr.destroy(), _r = void 0, Iy();
7775
+ H.forEach((de) => de()), Yr.destroy(), _r = void 0, ky();
7776
7776
  };
7777
7777
  } catch (H) {
7778
7778
  console.warn(H);
@@ -8208,13 +8208,13 @@ function xb(e) {
8208
8208
  const t = e.entries[e.entries.length - 1], n = t?.element ? [t.element] : void 0;
8209
8209
  return $r(e, "largest-contentful-paint", n);
8210
8210
  }
8211
- function kb(e) {
8211
+ function Ib(e) {
8212
8212
  return e.sources !== void 0;
8213
8213
  }
8214
- function Ib(e) {
8214
+ function kb(e) {
8215
8215
  const t = [], n = [];
8216
8216
  for (const r of e.entries)
8217
- if (kb(r)) {
8217
+ if (Ib(r)) {
8218
8218
  const o = [];
8219
8219
  for (const s of r.sources)
8220
8220
  if (s.node) {
@@ -8262,7 +8262,7 @@ function Rb(e) {
8262
8262
  r.push(dm(o, n));
8263
8263
  }), r.push(
8264
8264
  cm(jn(xb, e)),
8265
- am(jn(Ib, e)),
8265
+ am(jn(kb, e)),
8266
8266
  um(jn(Cb, e)),
8267
8267
  lm(jn(Tb, e))
8268
8268
  ), () => {
@@ -8301,12 +8301,12 @@ function Ab() {
8301
8301
  };
8302
8302
  return T ? (ua.forEach((r) => {
8303
8303
  n[r] = (...o) => {
8304
- I[r](tr, ...o), t && ho(o.join(""), jc(r));
8304
+ k[r](tr, ...o), t && ho(o.join(""), jc(r));
8305
8305
  };
8306
8306
  }), n.exception = (r, ...o) => {
8307
- o.length && n.error && n.error(...o), I.error(tr, r), e ? Nc(r) : t && ho(r, "error");
8307
+ o.length && n.error && n.error(...o), k.error(tr, r), e ? Nc(r) : t && ho(r, "error");
8308
8308
  }, n.infoTick = (...r) => {
8309
- I.info(tr, ...r), t && setTimeout(() => ho(r[0]), 0);
8309
+ k.info(tr, ...r), t && setTimeout(() => ho(r[0]), 0);
8310
8310
  }) : ua.forEach((r) => {
8311
8311
  n[r] = () => {
8312
8312
  };
@@ -8315,7 +8315,7 @@ function Ab() {
8315
8315
  const R = Ab();
8316
8316
  class Ms extends Error {
8317
8317
  constructor() {
8318
- super(`Event buffer exceeded maximum size of ${ks}.`);
8318
+ super(`Event buffer exceeded maximum size of ${Is}.`);
8319
8319
  }
8320
8320
  }
8321
8321
  class $u {
@@ -8340,7 +8340,7 @@ class $u {
8340
8340
  /** @inheritdoc */
8341
8341
  async addEvent(t) {
8342
8342
  const n = JSON.stringify(t).length;
8343
- if (this._totalSize += n, this._totalSize > ks)
8343
+ if (this._totalSize += n, this._totalSize > Is)
8344
8344
  throw new Ms();
8345
8345
  this.events.push(t);
8346
8346
  }
@@ -8452,7 +8452,7 @@ class Db {
8452
8452
  const n = Os(t.timestamp);
8453
8453
  (!this._earliestTimestamp || n < this._earliestTimestamp) && (this._earliestTimestamp = n);
8454
8454
  const r = JSON.stringify(t);
8455
- return this._totalSize += r.length, this._totalSize > ks ? Promise.reject(new Ms()) : this._sendEventToWorker(r);
8455
+ return this._totalSize += r.length, this._totalSize > Is ? Promise.reject(new Ms()) : this._sendEventToWorker(r);
8456
8456
  }
8457
8457
  /**
8458
8458
  * Finish the event buffer and return the compressed data.
@@ -8847,7 +8847,7 @@ function Vu() {
8847
8847
  e && delete e.replay_id;
8848
8848
  const t = vc();
8849
8849
  if (t) {
8850
- const n = kc(t);
8850
+ const n = Ic(t);
8851
8851
  delete n.replay_id;
8852
8852
  }
8853
8853
  }
@@ -9169,7 +9169,7 @@ async function Sw(e) {
9169
9169
  }
9170
9170
  async function Ew(e, t, n) {
9171
9171
  try {
9172
- const r = kw(e, t, n), o = Xu("resource.xhr", r);
9172
+ const r = Iw(e, t, n), o = Xu("resource.xhr", r);
9173
9173
  Yu(n.replay, o);
9174
9174
  } catch (r) {
9175
9175
  T && R.exception(r, "Failed to capture xhr breadcrumb");
@@ -9182,7 +9182,7 @@ function xw(e, t) {
9182
9182
  const o = Wr(r), s = n.getResponseHeader("content-length") ? Ju(n.getResponseHeader("content-length")) : Rw(n.response, n.responseType);
9183
9183
  o !== void 0 && (e.data.request_body_size = o), s !== void 0 && (e.data.response_body_size = s);
9184
9184
  }
9185
- function kw(e, t, n) {
9185
+ function Iw(e, t, n) {
9186
9186
  const r = Date.now(), { startTimestamp: o = r, endTimestamp: s = r, input: i, xhr: c } = t, {
9187
9187
  url: a,
9188
9188
  method: u,
@@ -9204,18 +9204,18 @@ function kw(e, t, n) {
9204
9204
  response: S
9205
9205
  };
9206
9206
  }
9207
- const h = c[St], p = h ? Ko(h.request_headers, n.networkRequestHeaders) : {}, g = Ko(Iw(c), n.networkResponseHeaders), [y, b] = n.networkCaptureBodies ? uu(i, R) : [void 0], [E, O] = n.networkCaptureBodies ? Cw(c) : [void 0], k = Qe(p, d, y), w = Qe(g, f, E);
9207
+ const h = c[St], p = h ? Ko(h.request_headers, n.networkRequestHeaders) : {}, g = Ko(kw(c), n.networkResponseHeaders), [y, b] = n.networkCaptureBodies ? uu(i, R) : [void 0], [E, O] = n.networkCaptureBodies ? Cw(c) : [void 0], I = Qe(p, d, y), w = Qe(g, f, E);
9208
9208
  return {
9209
9209
  startTimestamp: o,
9210
9210
  endTimestamp: s,
9211
9211
  url: a,
9212
9212
  method: u,
9213
9213
  statusCode: l,
9214
- request: b ? vr(k, b) : k,
9214
+ request: b ? vr(I, b) : I,
9215
9215
  response: O ? vr(w, O) : w
9216
9216
  };
9217
9217
  }
9218
- function Iw(e) {
9218
+ function kw(e) {
9219
9219
  const t = e.getAllResponseHeaders();
9220
9220
  return t ? t.split(`\r
9221
9221
  `).reduce((n, r) => {
@@ -9514,10 +9514,10 @@ async function Kw({
9514
9514
  let E;
9515
9515
  try {
9516
9516
  E = await h.send(b);
9517
- } catch (k) {
9517
+ } catch (I) {
9518
9518
  const w = new Error(xs);
9519
9519
  try {
9520
- w.cause = k;
9520
+ w.cause = I;
9521
9521
  } catch {
9522
9522
  }
9523
9523
  throw w;
@@ -9650,8 +9650,8 @@ class Jw {
9650
9650
  recordingOptions: n
9651
9651
  }) {
9652
9652
  this.eventBuffer = null, this.performanceEntries = [], this.replayPerformanceEntries = [], this.recordingMode = "session", this.timeouts = {
9653
- sessionIdlePause: kg,
9654
- sessionIdleExpire: Ig
9653
+ sessionIdlePause: Ig,
9654
+ sessionIdleExpire: kg
9655
9655
  }, this._lastActivity = Date.now(), this._isEnabled = !1, this._isPaused = !1, this._requiresManualStart = !1, this._hasInitializedCoreListeners = !1, this._context = {
9656
9656
  errorIds: /* @__PURE__ */ new Set(),
9657
9657
  traceIds: /* @__PURE__ */ new Set(),
@@ -10331,7 +10331,7 @@ class t_ {
10331
10331
  networkDetailDenyUrls: b = [],
10332
10332
  networkCaptureBodies: E = !0,
10333
10333
  networkRequestHeaders: O = [],
10334
- networkResponseHeaders: k = [],
10334
+ networkResponseHeaders: I = [],
10335
10335
  mask: w = [],
10336
10336
  maskAttributes: v = ["title", "placeholder"],
10337
10337
  unmask: S = [],
@@ -10401,7 +10401,7 @@ class t_ {
10401
10401
  networkDetailDenyUrls: b,
10402
10402
  networkCaptureBodies: E,
10403
10403
  networkRequestHeaders: ma(O),
10404
- networkResponseHeaders: ma(k),
10404
+ networkResponseHeaders: ma(I),
10405
10405
  beforeAddRecordingEvent: K,
10406
10406
  beforeErrorSampling: L,
10407
10407
  onError: Z,
@@ -10508,7 +10508,7 @@ function n_(e, t) {
10508
10508
  sessionSampleRate: 0,
10509
10509
  errorSampleRate: 0,
10510
10510
  ...e
10511
- }, o = ko(n.replaysSessionSampleRate), s = ko(n.replaysOnErrorSampleRate);
10511
+ }, o = Io(n.replaysSessionSampleRate), s = Io(n.replaysOnErrorSampleRate);
10512
10512
  return o == null && s == null && ht(() => {
10513
10513
  console.warn(
10514
10514
  "Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set."
@@ -10526,9 +10526,9 @@ function r_(e) {
10526
10526
  }
10527
10527
  {
10528
10528
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
10529
- e.SENTRY_RELEASE = { id: "6325686ec1e2314bd752b6c3b4f7e92a836f79b7" };
10529
+ e.SENTRY_RELEASE = { id: "2df4946c992aa0713292e74aacdabf92b25f3f25" };
10530
10530
  }
10531
- const o_ = "development";
10531
+ const o_ = "production";
10532
10532
  r_({
10533
10533
  dsn: void 0,
10534
10534
  environment: o_,
@@ -10624,7 +10624,7 @@ const l_ = () => {
10624
10624
  if (!e)
10625
10625
  throw new Error("useTheme must be used within a ThemeProvider");
10626
10626
  return e;
10627
- }, d_ = "/assets/logo-waiting-simple.riv", f_ = "https://cdn.eloquentai.dev", h_ = "https://chat.eloquentai.dev", p_ = f_ + d_;
10627
+ }, d_ = "/assets/logo-waiting-simple.riv", f_ = "https://cdn.eloquentai.co", h_ = "https://chat.eloquentai.co", p_ = f_ + d_;
10628
10628
  function m_() {
10629
10629
  return h_;
10630
10630
  }
@@ -10918,7 +10918,7 @@ function x_(e, t = 50, n = !0) {
10918
10918
  }, [e, t, n]), n ? r : e;
10919
10919
  }
10920
10920
  const ya = ["Reviewing...", "Thinking...", "Validating..."];
10921
- function k_() {
10921
+ function I_() {
10922
10922
  const [e, t] = W(0);
10923
10923
  return ce(() => {
10924
10924
  const n = setInterval(() => {
@@ -10938,7 +10938,7 @@ function ba({
10938
10938
  }) {
10939
10939
  const c = !t, [a, u] = W(!1), [l, d] = W(
10940
10940
  null
10941
- ), [f, h] = W(!1), [p, g] = W(!1), y = l_(), { collectUserFeedback: b, onMessageClick: E } = zr(), O = k_(), k = !e.isWelcomeMessage && typeof E == "function", w = x_(
10941
+ ), [f, h] = W(!1), [p, g] = W(!1), y = l_(), { collectUserFeedback: b, onMessageClick: E } = zr(), O = I_(), I = !e.isWelcomeMessage && typeof E == "function", w = x_(
10942
10942
  e.isThinking ? O : e.content,
10943
10943
  15,
10944
10944
  n && c
@@ -11081,7 +11081,7 @@ function ba({
11081
11081
  }
11082
11082
  )
11083
11083
  ] }),
11084
- k && /* @__PURE__ */ m(
11084
+ I && /* @__PURE__ */ m(
11085
11085
  "button",
11086
11086
  {
11087
11087
  onClick: () => {
@@ -11110,7 +11110,7 @@ function ba({
11110
11110
  ] }) })
11111
11111
  ] });
11112
11112
  }
11113
- function I_({
11113
+ function k_({
11114
11114
  className: e,
11115
11115
  message: t,
11116
11116
  nextMessage: n,
@@ -11216,7 +11216,7 @@ function C_() {
11216
11216
  /* @__PURE__ */ m("div", { className: "chat-interface-body flex flex-col space-y-4 mb-10", children: e.messages?.map((l, d, f) => {
11217
11217
  const h = Array.isArray(l) ? l.map((p) => p.id).join("-") : l.id;
11218
11218
  return /* @__PURE__ */ m(
11219
- I_,
11219
+ k_,
11220
11220
  {
11221
11221
  message: l,
11222
11222
  nextMessage: f[d + 1],
@@ -11302,14 +11302,14 @@ const wa = {
11302
11302
  borderColor: "border-amber-400",
11303
11303
  textColor: "text-amber-800",
11304
11304
  iconColor: "text-amber-500",
11305
- icon: Id
11305
+ icon: kd
11306
11306
  },
11307
11307
  error: {
11308
11308
  bgColor: "bg-red-50",
11309
11309
  borderColor: "border-red-500",
11310
11310
  textColor: "text-red-800",
11311
11311
  iconColor: "text-red-500",
11312
- icon: kd
11312
+ icon: Id
11313
11313
  },
11314
11314
  info: {
11315
11315
  bgColor: "bg-blue-50",
@@ -11836,7 +11836,7 @@ function z_({
11836
11836
  baseURL: u,
11837
11837
  appId: e
11838
11838
  })
11839
- ), [d, f] = W(null), [h, p] = W(null), [g, y] = W([]), [b, E] = W(!1), k = B_("sdk-boot", () => l.boot()).fetch;
11839
+ ), [d, f] = W(null), [h, p] = W(null), [g, y] = W([]), [b, E] = W(!1), I = B_("sdk-boot", () => l.boot()).fetch;
11840
11840
  return ce(() => {
11841
11841
  if (i())
11842
11842
  c();
@@ -11853,7 +11853,7 @@ function z_({
11853
11853
  }, [a, i, c]), ce(() => {
11854
11854
  if (!s) return;
11855
11855
  (async () => {
11856
- const [v, S] = await i_(k());
11856
+ const [v, S] = await i_(I());
11857
11857
  if (S) {
11858
11858
  E(!0);
11859
11859
  return;
@@ -11915,7 +11915,7 @@ const Sa = {
11915
11915
  ERROR: 5,
11916
11916
  NONE: 6
11917
11917
  };
11918
- class ke {
11918
+ class Ie {
11919
11919
  /**
11920
11920
  * @constructor
11921
11921
  * @param {string} name - Name of the logger
@@ -11942,12 +11942,12 @@ class ke {
11942
11942
  */
11943
11943
  _log(t, ...n) {
11944
11944
  let r = this.level;
11945
- ke.LOG_LEVEL && (r = ke.LOG_LEVEL), typeof window < "u" && window.LOG_LEVEL && (r = window.LOG_LEVEL);
11945
+ Ie.LOG_LEVEL && (r = Ie.LOG_LEVEL), typeof window < "u" && window.LOG_LEVEL && (r = window.LOG_LEVEL);
11946
11946
  const o = Sa[r];
11947
11947
  if (!(Sa[t] >= o))
11948
11948
  return;
11949
11949
  let i = console.log.bind(console);
11950
- t === ye.ERROR && console.error && (i = console.error.bind(console)), t === ye.WARN && console.warn && (i = console.warn.bind(console)), ke.BIND_ALL_LOG_LEVELS && (t === ye.INFO && console.info && (i = console.info.bind(console)), t === ye.DEBUG && console.debug && (i = console.debug.bind(console)));
11950
+ t === ye.ERROR && console.error && (i = console.error.bind(console)), t === ye.WARN && console.warn && (i = console.warn.bind(console)), Ie.BIND_ALL_LOG_LEVELS && (t === ye.INFO && console.info && (i = console.info.bind(console)), t === ye.DEBUG && console.debug && (i = console.debug.bind(console)));
11951
11951
  const c = `[${t}] ${this._ts()} ${this.name}`;
11952
11952
  let a = "";
11953
11953
  if (n.length === 1 && typeof n[0] == "string")
@@ -12025,8 +12025,8 @@ class ke {
12025
12025
  return this._pluggables;
12026
12026
  }
12027
12027
  }
12028
- ke.LOG_LEVEL = null;
12029
- ke.BIND_ALL_LOG_LEVELS = !1;
12028
+ Ie.LOG_LEVEL = null;
12029
+ Ie.BIND_ALL_LOG_LEVELS = !1;
12030
12030
  class Ve extends Error {
12031
12031
  /**
12032
12032
  * Constructs an AmplifyError.
@@ -12048,7 +12048,7 @@ var Er;
12048
12048
  (function(e) {
12049
12049
  e.NoEndpointId = "NoEndpointId", e.PlatformNotSupported = "PlatformNotSupported", e.Unknown = "Unknown", e.NetworkError = "NetworkError";
12050
12050
  })(Er || (Er = {}));
12051
- const qs = typeof Symbol < "u" ? Symbol("amplify_default") : "@@amplify_default", Yt = new ke("Hub");
12051
+ const qs = typeof Symbol < "u" ? Symbol("amplify_default") : "@@amplify_default", Yt = new Ie("Hub");
12052
12052
  class V_ {
12053
12053
  constructor(t) {
12054
12054
  this.listeners = /* @__PURE__ */ new Map(), this.protectedChannels = [
@@ -12130,7 +12130,7 @@ const gl = new V_("__default__"), Y_ = () => {
12130
12130
  name: "Base64EncoderError",
12131
12131
  message: "Cannot resolve the `btoa` function from the environment."
12132
12132
  });
12133
- }, yl = (e) => e && e["nonRetryable"], Vn = new ke("retryUtil");
12133
+ }, yl = (e) => e && e["nonRetryable"], Vn = new Ie("retryUtil");
12134
12134
  async function J_(e, t, n, r) {
12135
12135
  if (typeof e != "function")
12136
12136
  throw Error("functionToRetry must be a function");
@@ -12167,7 +12167,7 @@ const bl = (e) => {
12167
12167
  (r && typeof r == "object" || typeof r == "function") && bl(r);
12168
12168
  }
12169
12169
  return Object.freeze(e);
12170
- }, X_ = new ke("parseAWSExports"), Q_ = {
12170
+ }, X_ = new Ie("parseAWSExports"), Q_ = {
12171
12171
  API_KEY: "apiKey",
12172
12172
  AWS_IAM: "iam",
12173
12173
  AMAZON_COGNITO_USER_POOLS: "userPool",
@@ -12187,7 +12187,7 @@ const bl = (e) => {
12187
12187
  message: "Invalid config parameter.",
12188
12188
  recoverySuggestion: "Ensure passing the config object imported from `amplifyconfiguration.json`."
12189
12189
  });
12190
- const { aws_appsync_apiKey: t, aws_appsync_authenticationType: n, aws_appsync_graphqlEndpoint: r, aws_appsync_region: o, aws_bots_config: s, aws_cognito_identity_pool_id: i, aws_cognito_sign_up_verification_method: c, aws_cognito_mfa_configuration: a, aws_cognito_mfa_types: u, aws_cognito_password_protection_settings: l, aws_cognito_verification_mechanisms: d, aws_cognito_signup_attributes: f, aws_cognito_social_providers: h, aws_cognito_username_attributes: p, aws_mandatory_sign_in: g, aws_mobile_analytics_app_id: y, aws_mobile_analytics_app_region: b, aws_user_files_s3_bucket: E, aws_user_files_s3_bucket_region: O, aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing: k, aws_user_pools_id: w, aws_user_pools_web_client_id: v, geo: S, oauth: x, predictions: _, aws_cloud_logic_custom: C, Notifications: z, modelIntrospection: K } = e, L = {};
12190
+ const { aws_appsync_apiKey: t, aws_appsync_authenticationType: n, aws_appsync_graphqlEndpoint: r, aws_appsync_region: o, aws_bots_config: s, aws_cognito_identity_pool_id: i, aws_cognito_sign_up_verification_method: c, aws_cognito_mfa_configuration: a, aws_cognito_mfa_types: u, aws_cognito_password_protection_settings: l, aws_cognito_verification_mechanisms: d, aws_cognito_signup_attributes: f, aws_cognito_social_providers: h, aws_cognito_username_attributes: p, aws_mandatory_sign_in: g, aws_mobile_analytics_app_id: y, aws_mobile_analytics_app_region: b, aws_user_files_s3_bucket: E, aws_user_files_s3_bucket_region: O, aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing: I, aws_user_pools_id: w, aws_user_pools_web_client_id: v, geo: S, oauth: x, predictions: _, aws_cloud_logic_custom: C, Notifications: z, modelIntrospection: K } = e, L = {};
12191
12191
  y && (L.Analytics = {
12192
12192
  Pinpoint: {
12193
12193
  appId: y,
@@ -12197,24 +12197,24 @@ const bl = (e) => {
12197
12197
  const { InAppMessaging: Z, Push: ae } = z ?? {};
12198
12198
  if (Z?.AWSPinpoint || ae?.AWSPinpoint) {
12199
12199
  if (Z?.AWSPinpoint) {
12200
- const { appId: G, region: Ie } = Z.AWSPinpoint;
12200
+ const { appId: G, region: ke } = Z.AWSPinpoint;
12201
12201
  L.Notifications = {
12202
12202
  InAppMessaging: {
12203
12203
  Pinpoint: {
12204
12204
  appId: G,
12205
- region: Ie
12205
+ region: ke
12206
12206
  }
12207
12207
  }
12208
12208
  };
12209
12209
  }
12210
12210
  if (ae?.AWSPinpoint) {
12211
- const { appId: G, region: Ie } = ae.AWSPinpoint;
12211
+ const { appId: G, region: ke } = ae.AWSPinpoint;
12212
12212
  L.Notifications = {
12213
12213
  ...L.Notifications,
12214
12214
  PushNotification: {
12215
12215
  Pinpoint: {
12216
12216
  appId: G,
12217
- region: Ie
12217
+ region: ke
12218
12218
  }
12219
12219
  }
12220
12220
  };
@@ -12246,10 +12246,10 @@ const bl = (e) => {
12246
12246
  } : void 0, ge = Array.from(/* @__PURE__ */ new Set([
12247
12247
  ...d ?? [],
12248
12248
  ...f ?? []
12249
- ])).reduce((G, Ie) => ({
12249
+ ])).reduce((G, ke) => ({
12250
12250
  ...G,
12251
12251
  // All user attributes generated by the CLI are required
12252
- [Ie.toLowerCase()]: { required: !0 }
12252
+ [ke.toLowerCase()]: { required: !0 }
12253
12253
  }), {}), Se = p?.includes("EMAIL") ?? !1, jt = p?.includes("PHONE_NUMBER") ?? !1;
12254
12254
  (i || w) && (L.Auth = {
12255
12255
  Cognito: {
@@ -12281,7 +12281,7 @@ const bl = (e) => {
12281
12281
  S3: {
12282
12282
  bucket: E,
12283
12283
  region: O,
12284
- dangerouslyConnectToHttpEndpointForTesting: k
12284
+ dangerouslyConnectToHttpEndpointForTesting: I
12285
12285
  }
12286
12286
  }), S) {
12287
12287
  const { amazon_location_service: G } = S;
@@ -12296,8 +12296,8 @@ const bl = (e) => {
12296
12296
  }
12297
12297
  if (C && (L.API = {
12298
12298
  ...L.API,
12299
- REST: C.reduce((G, Ie) => {
12300
- const { name: qt, endpoint: Gt, region: bt, service: Kt } = Ie;
12299
+ REST: C.reduce((G, ke) => {
12300
+ const { name: qt, endpoint: Gt, region: bt, service: Kt } = ke;
12301
12301
  return {
12302
12302
  ...G,
12303
12303
  [qt]: {
@@ -12504,14 +12504,14 @@ const yv = {
12504
12504
  function wl(e) {
12505
12505
  return yv[e];
12506
12506
  }
12507
- const ka = {
12507
+ const Ia = {
12508
12508
  GOOGLE: "Google",
12509
12509
  LOGIN_WITH_AMAZON: "Amazon",
12510
12510
  FACEBOOK: "Facebook",
12511
12511
  SIGN_IN_WITH_APPLE: "Apple"
12512
12512
  };
12513
12513
  function bv(e = []) {
12514
- return e.reduce((t, n) => (ka[n] !== void 0 && t.push(ka[n]), t), []);
12514
+ return e.reduce((t, n) => (Ia[n] !== void 0 && t.push(Ia[n]), t), []);
12515
12515
  }
12516
12516
  function wv(e) {
12517
12517
  return e === "OPTIONAL" ? "optional" : e === "REQUIRED" ? "on" : "off";
@@ -12725,7 +12725,7 @@ function Ev(e) {
12725
12725
  }, i);
12726
12726
  }
12727
12727
  }
12728
- var Ee = 64, xv = 32, kv = new Uint32Array([
12728
+ var Ee = 64, xv = 32, Iv = new Uint32Array([
12729
12729
  1116352408,
12730
12730
  1899447441,
12731
12731
  3049323471,
@@ -12790,7 +12790,7 @@ var Ee = 64, xv = 32, kv = new Uint32Array([
12790
12790
  2756734187,
12791
12791
  3204031479,
12792
12792
  3329325298
12793
- ]), Iv = [
12793
+ ]), kv = [
12794
12794
  1779033703,
12795
12795
  3144134277,
12796
12796
  1013904242,
@@ -12803,7 +12803,7 @@ var Ee = 64, xv = 32, kv = new Uint32Array([
12803
12803
  /** @class */
12804
12804
  function() {
12805
12805
  function e() {
12806
- this.state = Int32Array.from(Iv), this.temp = new Int32Array(64), this.buffer = new Uint8Array(64), this.bufferLength = 0, this.bytesHashed = 0, this.finished = !1;
12806
+ this.state = Int32Array.from(kv), this.temp = new Int32Array(64), this.buffer = new Uint8Array(64), this.bufferLength = 0, this.bytesHashed = 0, this.finished = !1;
12807
12807
  }
12808
12808
  return e.prototype.update = function(t) {
12809
12809
  if (this.finished)
@@ -12838,7 +12838,7 @@ var Ee = 64, xv = 32, kv = new Uint32Array([
12838
12838
  var g = (h >>> 7 | h << 25) ^ (h >>> 18 | h << 14) ^ h >>> 3;
12839
12839
  this.temp[f] = (p + this.temp[f - 7] | 0) + (g + this.temp[f - 16] | 0);
12840
12840
  }
12841
- var y = (((a >>> 6 | a << 26) ^ (a >>> 11 | a << 21) ^ (a >>> 25 | a << 7)) + (a & u ^ ~a & l) | 0) + (d + (kv[f] + this.temp[f] | 0) | 0) | 0, b = ((o >>> 2 | o << 30) ^ (o >>> 13 | o << 19) ^ (o >>> 22 | o << 10)) + (o & s ^ o & i ^ s & i) | 0;
12841
+ var y = (((a >>> 6 | a << 26) ^ (a >>> 11 | a << 21) ^ (a >>> 25 | a << 7)) + (a & u ^ ~a & l) | 0) + (d + (Iv[f] + this.temp[f] | 0) | 0) | 0, b = ((o >>> 2 | o << 30) ^ (o >>> 13 | o << 19) ^ (o >>> 22 | o << 10)) + (o & s ^ o & i ^ s & i) | 0;
12842
12842
  d = l, l = u, u = a, a = c + y | 0, c = i, i = s, s = o, o = y + b | 0;
12843
12843
  }
12844
12844
  r[0] += o, r[1] += s, r[2] += i, r[3] += c, r[4] += a, r[5] += u, r[6] += l, r[7] += d;
@@ -12916,10 +12916,10 @@ var te;
12916
12916
  (function(e) {
12917
12917
  e.WebUnknown = "0", e.React = "1", e.NextJs = "2", e.Angular = "3", e.VueJs = "4", e.Nuxt = "5", e.Svelte = "6", e.ServerSideUnknown = "100", e.ReactSSR = "101", e.NextJsSSR = "102", e.AngularSSR = "103", e.VueJsSSR = "104", e.NuxtSSR = "105", e.SvelteSSR = "106", e.ReactNative = "201", e.Expo = "202";
12918
12918
  })(te || (te = {}));
12919
- var Ia;
12919
+ var ka;
12920
12920
  (function(e) {
12921
12921
  e.AI = "ai", e.API = "api", e.Auth = "auth", e.Analytics = "analytics", e.DataStore = "datastore", e.Geo = "geo", e.InAppMessaging = "inappmessaging", e.Interactions = "interactions", e.Predictions = "predictions", e.PubSub = "pubsub", e.PushNotification = "pushnotification", e.Storage = "storage";
12922
- })(Ia || (Ia = {}));
12922
+ })(ka || (ka = {}));
12923
12923
  var Ca;
12924
12924
  (function(e) {
12925
12925
  e.CreateConversation = "1", e.GetConversation = "2", e.ListConversations = "3", e.DeleteConversation = "4", e.SendMessage = "5", e.ListMessages = "6", e.OnMessage = "7", e.Generation = "8", e.UpdateConversation = "9";
@@ -13005,7 +13005,7 @@ function qv() {
13005
13005
  return e || t;
13006
13006
  }
13007
13007
  function Gv() {
13008
- return Vs() && typeof process.env == "object" && "VITE_ENVIRONMENT=dev tsc -b && vite build --mode dev".startsWith("ng ") || !1;
13008
+ return Vs() && typeof process.env == "object" && "VITE_ENVIRONMENT=prod tsc -b && vite build --mode prod".startsWith("ng ") || !1;
13009
13009
  }
13010
13010
  function Kv() {
13011
13011
  return typeof navigator < "u" && typeof navigator.product < "u" && navigator.product === "ReactNative";
@@ -13074,7 +13074,7 @@ const nS = {}, rS = (e, t) => nS[e]?.[t]?.additionalDetails, oS = "aws-amplify",
13074
13074
  });
13075
13075
  }
13076
13076
  return n;
13077
- }, kl = (e) => iS(e).map(([r, o]) => r && o ? `${r}/${o}` : r).join(" ");
13077
+ }, Il = (e) => iS(e).map(([r, o]) => r && o ? `${r}/${o}` : r).join(" ");
13078
13078
  function ie(e) {
13079
13079
  return typeof e == "function";
13080
13080
  }
@@ -13189,7 +13189,7 @@ var Ys = function() {
13189
13189
  }(), e;
13190
13190
  }();
13191
13191
  Ys.EMPTY;
13192
- function Il(e) {
13192
+ function kl(e) {
13193
13193
  return e instanceof Ys || e && "closed" in e && ie(e.remove) && ie(e.add) && ie(e.unsubscribe);
13194
13194
  }
13195
13195
  function Ha(e) {
@@ -13222,7 +13222,7 @@ var Js = function(e) {
13222
13222
  Gs(t, e);
13223
13223
  function t(n) {
13224
13224
  var r = e.call(this) || this;
13225
- return r.isStopped = !1, n ? (r.destination = n, Il(n) && n.add(r)) : r.destination = hS, r;
13225
+ return r.isStopped = !1, n ? (r.destination = n, kl(n) && n.add(r)) : r.destination = hS, r;
13226
13226
  }
13227
13227
  return t.create = function(n, r, o) {
13228
13228
  return new Zo(n, r, o);
@@ -13384,7 +13384,7 @@ function gS(e) {
13384
13384
  return e && ie(e.next) && ie(e.error) && ie(e.complete);
13385
13385
  }
13386
13386
  function yS(e) {
13387
- return e && e instanceof Js || gS(e) && Il(e);
13387
+ return e && e instanceof Js || gS(e) && kl(e);
13388
13388
  }
13389
13389
  function bS(e) {
13390
13390
  return ie(e?.lift);
@@ -13511,7 +13511,7 @@ function Zs(e) {
13511
13511
  if (Dl(e))
13512
13512
  return xS(e);
13513
13513
  if (Pl(e))
13514
- return kS(e);
13514
+ return IS(e);
13515
13515
  }
13516
13516
  throw Al(e);
13517
13517
  }
@@ -13562,15 +13562,15 @@ function xS(e) {
13562
13562
  }
13563
13563
  function Ul(e) {
13564
13564
  return new ve(function(t) {
13565
- IS(e, t).catch(function(n) {
13565
+ kS(e, t).catch(function(n) {
13566
13566
  return t.error(n);
13567
13567
  });
13568
13568
  });
13569
13569
  }
13570
- function kS(e) {
13570
+ function IS(e) {
13571
13571
  return Ul(Ll(e));
13572
13572
  }
13573
- function IS(e, t) {
13573
+ function kS(e, t) {
13574
13574
  var n, r, o, s;
13575
13575
  return _l(this, void 0, void 0, function() {
13576
13576
  var i, c;
@@ -14069,7 +14069,7 @@ const GS = (e) => {
14069
14069
  c[o0] = e.url.host, c[s0] = s, i && (c[i0] = i);
14070
14070
  const a = { ...e, headers: c }, u = E0(a, n), l = `Credential=${r}/${o}`, d = `SignedHeaders=${Jl(c)}`, f = `Signature=${u}`;
14071
14071
  return c[r0] = `${Ql} ${l}, ${d}, ${f}`, a;
14072
- }, ed = (e) => new Date(Date.now() + e), x0 = 5 * 60 * 1e3, k0 = (e, t) => Math.abs(ed(t).getTime() - e) >= x0, I0 = (e, t) => k0(e, t) ? e - Date.now() : t, C0 = ({ credentials: e, region: t, service: n, uriEscapePath: r = !0 }) => {
14072
+ }, ed = (e) => new Date(Date.now() + e), x0 = 5 * 60 * 1e3, I0 = (e, t) => Math.abs(ed(t).getTime() - e) >= x0, k0 = (e, t) => I0(e, t) ? e - Date.now() : t, C0 = ({ credentials: e, region: t, service: n, uriEscapePath: r = !0 }) => {
14073
14073
  let o;
14074
14074
  return (s, i) => async function(a) {
14075
14075
  o = o ?? 0;
@@ -14082,7 +14082,7 @@ const GS = (e) => {
14082
14082
  signingService: n,
14083
14083
  uriEscapePath: r
14084
14084
  }, l = await Zl(a, u), d = await s(l), f = T0(d);
14085
- return f && (o = I0(Date.parse(f), o)), d;
14085
+ return f && (o = k0(Date.parse(f), o)), d;
14086
14086
  };
14087
14087
  }, T0 = ({ headers: e } = {}) => e?.date ?? e?.Date ?? e?.["x-amz-date"];
14088
14088
  function rr(e) {
@@ -14281,8 +14281,8 @@ var bo = /* @__PURE__ */ function(e) {
14281
14281
  }) : (f = p) === null || f === void 0 ? void 0 : f.map(function(w) {
14282
14282
  return ns(w.source, w.start);
14283
14283
  }), h.path = c ?? void 0;
14284
- var k = a?.extensions;
14285
- return u == null && R0(k) ? h.extensions = M0({}, k) : h.extensions = u ?? {}, Object.defineProperties(Qt(h), {
14284
+ var I = a?.extensions;
14285
+ return u == null && R0(I) ? h.extensions = M0({}, I) : h.extensions = u ?? {}, Object.defineProperties(Qt(h), {
14286
14286
  message: {
14287
14287
  enumerable: !0
14288
14288
  },
@@ -14400,13 +14400,13 @@ class wn extends xr {
14400
14400
  super(t), this.constructor = wn, Object.setPrototypeOf(this, wn.prototype);
14401
14401
  }
14402
14402
  }
14403
- class kr extends wn {
14403
+ class Ir extends wn {
14404
14404
  constructor(t = {}) {
14405
14405
  super({
14406
14406
  name: "CanceledError",
14407
14407
  message: "Request is canceled by user",
14408
14408
  ...t
14409
- }), this.constructor = kr, Object.setPrototypeOf(this, kr.prototype);
14409
+ }), this.constructor = Ir, Object.setPrototypeOf(this, Ir.prototype);
14410
14410
  }
14411
14411
  }
14412
14412
  var os;
@@ -14453,7 +14453,7 @@ const od = async (e) => {
14453
14453
  response: t
14454
14454
  });
14455
14455
  return Object.assign(n, { $metadata: e.$metadata });
14456
- }, ss = new ke("RestApis");
14456
+ }, ss = new Ie("RestApis");
14457
14457
  function Y0(e, t) {
14458
14458
  const n = (a) => !!t, r = new AbortController(), o = r.signal, s = t?.signal;
14459
14459
  let i;
@@ -14466,7 +14466,7 @@ function Y0(e, t) {
14466
14466
  } catch (a) {
14467
14467
  const u = s ?? o, l = i ?? u.reason;
14468
14468
  if (a.name === "AbortError" || u?.aborted === !0) {
14469
- const d = new kr({
14469
+ const d = new Ir({
14470
14470
  ...l && { message: l },
14471
14471
  underlyingError: a,
14472
14472
  recoverySuggestion: "The API request was explicitly canceled. If this is not intended, validate if you called the `cancel()` function on the API request erroneously."
@@ -14521,11 +14521,11 @@ const Ja = "execute-api", J0 = "us-east-1", X0 = /^.+\.([a-z0-9-]+)\.([a-z0-9-]+
14521
14521
  let y;
14522
14522
  const b = await sE(e);
14523
14523
  if (g && b) {
14524
- const E = Q0(o), O = r?.service ?? E.service, k = r?.region ?? E.region;
14524
+ const E = Q0(o), O = r?.service ?? E.service, I = r?.region ?? E.region;
14525
14525
  y = await tE(h, {
14526
14526
  ...p,
14527
14527
  credentials: b,
14528
- region: k,
14528
+ region: I,
14529
14529
  service: O
14530
14530
  });
14531
14531
  } else
@@ -14700,10 +14700,10 @@ class _E {
14700
14700
  });
14701
14701
  }
14702
14702
  }
14703
- const Za = "wss://", vE = /^https:\/\/\w{26}\.appsync-api\.\w{2}(?:(?:-\w{2,})+)-\d\.amazonaws.com(?:\.cn)?\/graphql$/i, SE = /^https:\/\/\w{26}\.\w+-api\.\w{2}(?:(?:-\w{2,})+)-\d\.amazonaws.com(?:\.cn)?\/event$/i, ec = "/realtime", EE = (e) => e.match(vE) === null, xE = (e) => e.match(SE) !== null, kE = (e) => {
14703
+ const Za = "wss://", vE = /^https:\/\/\w{26}\.appsync-api\.\w{2}(?:(?:-\w{2,})+)-\d\.amazonaws.com(?:\.cn)?\/graphql$/i, SE = /^https:\/\/\w{26}\.\w+-api\.\w{2}(?:(?:-\w{2,})+)-\d\.amazonaws.com(?:\.cn)?\/event$/i, ec = "/realtime", EE = (e) => e.match(vE) === null, xE = (e) => e.match(SE) !== null, IE = (e) => {
14704
14704
  let t = e ?? "";
14705
14705
  return xE(t) ? t = t.concat(ec).replace("ddpg-api", "grt-gamma").replace("appsync-api", "appsync-realtime-api") : EE(t) ? t = t.concat(ec) : t = t.replace("appsync-api", "appsync-realtime-api").replace("gogi-beta", "grt-beta").replace("ddpg-api", "grt-gamma"), t = t.replace("https://", Za).replace("http://", Za), new Nn(t);
14706
- }, IE = (e) => {
14706
+ }, kE = (e) => {
14707
14707
  if (!e)
14708
14708
  return {};
14709
14709
  if ("Authorization" in e) {
@@ -14712,12 +14712,12 @@ const Za = "wss://", vE = /^https:\/\/\w{26}\.appsync-api\.\w{2}(?:(?:-\w{2,})+)
14712
14712
  }
14713
14713
  return e;
14714
14714
  }, CE = (e) => {
14715
- const t = IE(e), n = new Yl();
14715
+ const t = kE(e), n = new Yl();
14716
14716
  return Object.entries(t).forEach(([r, o]) => {
14717
14717
  n.append(r, o);
14718
14718
  }), n;
14719
14719
  }, TE = (e, t) => {
14720
- const n = kE(e), r = new Yl(n.search);
14720
+ const n = IE(e), r = new Yl(n.search);
14721
14721
  for (const [o, s] of t.entries())
14722
14722
  r.append(o, s);
14723
14723
  return n.search = r.toString(), n.toString();
@@ -14735,7 +14735,7 @@ const Za = "wss://", vE = /^https:\/\/\w{26}\.appsync-api\.\w{2}(?:(?:-\w{2,})+)
14735
14735
  additionalCustomHeaders: i,
14736
14736
  libraryConfigHeaders: c
14737
14737
  };
14738
- }, tc = new ke("AWSAppSyncRealTimeProvider Auth"), nc = async ({ host: e }) => ({
14738
+ }, tc = new Ie("AWSAppSyncRealTimeProvider Auth"), nc = async ({ host: e }) => ({
14739
14739
  Authorization: (await Hl())?.tokens?.accessToken?.toString(),
14740
14740
  host: e
14741
14741
  }), RE = async ({ apiKey: e, host: t }) => {
@@ -14811,7 +14811,7 @@ class OE {
14811
14811
  // For now fall back to also checking known non-retryable error types
14812
14812
  lE.includes(s) ? new W0(s) : s ? new Error(s) : o;
14813
14813
  }
14814
- }, this.logger = new ke(t.providerName), this.wsProtocolName = t.wsProtocolName, this.wsConnectUri = t.connectUri, this.connectionStateMonitorSubscription = this._startConnectionStateMonitoring();
14814
+ }, this.logger = new Ie(t.providerName), this.wsProtocolName = t.wsProtocolName, this.wsConnectUri = t.connectUri, this.connectionStateMonitorSubscription = this._startConnectionStateMonitoring();
14815
14815
  }
14816
14816
  /**
14817
14817
  * Mark the socket closed and release all active listeners
@@ -15373,7 +15373,7 @@ class zE extends OE {
15373
15373
  }),
15374
15374
  ...s,
15375
15375
  ...o,
15376
- [G_]: kl(r)
15376
+ [G_]: Il(r)
15377
15377
  }, y = {
15378
15378
  id: n,
15379
15379
  channel: u,
@@ -15470,7 +15470,7 @@ async function GE(e, t, n, r) {
15470
15470
  // Custom headers from individual requests or API client configuration:
15471
15471
  ...d,
15472
15472
  // User agent headers:
15473
- [jE]: kl(r)
15473
+ [jE]: Il(r)
15474
15474
  };
15475
15475
  }
15476
15476
  const Jt = /* @__PURE__ */ new Set();
@@ -15655,7 +15655,7 @@ function XE({
15655
15655
  s(
15656
15656
  (w) => w.filter((v) => Array.isArray(v) ? !1 : v.isWelcomeMessage)
15657
15657
  ), h(), c(null);
15658
- }, [h, s, c]), k = Le(
15658
+ }, [h, s, c]), I = Le(
15659
15659
  async (w) => {
15660
15660
  if (!o) return;
15661
15661
  const v = {
@@ -15716,7 +15716,7 @@ function XE({
15716
15716
  );
15717
15717
  return {
15718
15718
  onCleanMessages: O,
15719
- onSendMessage: k
15719
+ onSendMessage: I
15720
15720
  };
15721
15721
  }
15722
15722
  function QE({
@@ -15736,7 +15736,7 @@ function QE({
15736
15736
  currentConversation: h,
15737
15737
  messages: p,
15738
15738
  isReady: g
15739
- } = z_({ appId: t, initialUserId: n }), y = j_({ chatProps: r, chatSettings: f }), [b, E] = W(s ?? i), O = cs(b, 200), [k, w] = W(
15739
+ } = z_({ appId: t, initialUserId: n }), y = j_({ chatProps: r, chatSettings: f }), [b, E] = W(s ?? i), O = cs(b, 200), [I, w] = W(
15740
15740
  r?.messages ?? []
15741
15741
  ), [v, S] = W(h), { onSendMessage: x, onCleanMessages: _ } = XE({
15742
15742
  appId: t,
@@ -15769,7 +15769,7 @@ function QE({
15769
15769
  chatInterfaceProps: y,
15770
15770
  chatOpen: b,
15771
15771
  chatOpenDebounced: O,
15772
- messages: k,
15772
+ messages: I,
15773
15773
  portalContainer: c,
15774
15774
  onSendMessage: x,
15775
15775
  setChatOpen: E,
@@ -15799,9 +15799,8 @@ function ex({
15799
15799
  INTERNAL_ONLY_BLOCK_STYLE: a = !1,
15800
15800
  INTERNAL_ONLY_FEATURE_MESSAGE_CLICK: u = void 0,
15801
15801
  INTERNAL_ONLY_FEATURE_CLEAR_CHAT_CLICK: l = void 0,
15802
- INTERNAL_ONLY_ENVIRONMENT: d = "production"
15802
+ INTERNAL_ONLY_ENVIRONMENT: d = "live"
15803
15803
  }) {
15804
- d = "dev";
15805
15804
  const {
15806
15805
  isReady: f,
15807
15806
  isMobile: h,
@@ -15811,7 +15810,7 @@ function ex({
15811
15810
  messages: b,
15812
15811
  portalContainer: E,
15813
15812
  onSendMessage: O,
15814
- setChatOpen: k,
15813
+ setChatOpen: I,
15815
15814
  onCleanMessages: w
15816
15815
  } = QE({
15817
15816
  environment: d,
@@ -15886,7 +15885,7 @@ function ex({
15886
15885
  isMobile: h,
15887
15886
  closeButton: o,
15888
15887
  cleanChatButton: s,
15889
- onClose: () => k(!1),
15888
+ onClose: () => I(!1),
15890
15889
  onCleanChat: () => {
15891
15890
  w(), l?.();
15892
15891
  }
@@ -15913,7 +15912,7 @@ function ex({
15913
15912
  D_,
15914
15913
  {
15915
15914
  isOpen: p,
15916
- toggleBubble: () => k((x) => !x)
15915
+ toggleBubble: () => I((x) => !x)
15917
15916
  }
15918
15917
  )
15919
15918
  }