@expofp/floorplan
Version:
Interactive floor plan library for expos and events
1,588 lines • 98.4 kB
JavaScript
(function() {
try {
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
e.SENTRY_RELEASE = { id: "3.7.8" };
var t = new e.Error().stack;
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "97c2d87d-cd9e-406f-92a5-d5e30a95836a", e._sentryDebugIdIdentifier = "sentry-dbid-97c2d87d-cd9e-406f-92a5-d5e30a95836a");
} catch {}
})();
import { r as e } from "./rolldown-runtime-YBAZwyzS.js";
import { t } from "./react-Di3Pmpio.js";
import { _ as n, c as r, g as i, n as a, r as o, t as s, y as c } from "./loadImage-CAq2UZsg.js";
import { D as l, E as u, O as d, T as ee, c as f, ct as p, i as te, j as m } from "./i18n-BEer1tI4.js";
import { $ as h, A as g, B as _, C as v, D as ne, E as re, F as y, G as b, H as x, I as S, J as ie, K as C, L as ae, M as oe, N as se, O as ce, P as w, Q as le, R as T, S as E, T as ue, U as de, V as fe, W as D, X as pe, Y as me, Z as he, _ as O, _t as ge, a as _e, at as k, b as ve, c as ye, ct as be, d as xe, dt as Se, et as Ce, f as we, ft as Te, g as Ee, gt as De, h as Oe, ht as ke, it as Ae, j as A, k as je, l as Me, lt as j, m as Ne, mt as Pe, n as Fe, nt as Ie, o as Le, ot as Re, p as ze, pt as M, q as Be, r as Ve, rt as He, s as Ue, st as We, t as Ge, tt as Ke, u as qe, ut as Je, v as Ye, vt as N, w as Xe, x as Ze, y as Qe, yt as P, z as $e } from "./exports-Bo62ffaz.js";
//#region src/tools/report-error.ts
var et;
function tt(e) {
et || e.filename.indexOf("expofp.com") === -1 || [
/loading chunk \d{1,2}\b/i,
/zaloJS/i,
/e.target.name/i,
/ResizeObserver loop/i,
/ChunkLoadError/i,
/FloorPlan not ready/i
].some((t) => t.test(e.message)) || (et = window.setTimeout(async function() {
var t;
let n = navigator.languages && navigator.languages.length ? navigator.languages[0] : navigator.language, r = {
host: document.location.host,
message: e.message,
filename: e.filename,
lineno: e.lineno,
colno: e.colno,
stack: (t = e.error) == null ? void 0 : t.stack,
log: p.messages.join("\n"),
userAgent: navigator.userAgent,
language: n,
group: "FP",
url: document.location,
subject: "FP JS error: " + document.location.host
};
p.info("Sending error report", r), await Promise.all([nt(r), rt(r)]);
}, 2e3));
}
async function nt(e) {
let t = await fetch("https://app.expofp.com/api/report-error", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(e)
});
p.log("Reporter response: ", await t.text());
}
async function rt(e) {
let t = it(e), n = await fetch("https://msg.expofp.com/v1/post-message/" + window.location.hostname, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(t)
});
p.log("Slack reporter response: ", await n.text());
}
function it(e) {
let t = JSON.parse(JSON.stringify(e));
delete t.subject, delete t.message, delete t.stack, delete t.log;
let n = [];
return n.push({
type: "section",
text: {
type: "mrkdwn",
text: `:warning:* ${e.subject}*`
}
}), n.push({
type: "section",
text: {
type: "plain_text",
text: e.message + " → " + (e.stack || "").split("\n")[0]
}
}), {
channel: "#fp-errors",
username: "error-reporter-bot",
type: "mrkdwn",
text: e.subject,
blocks: n
};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/instrument/handlers.js
var F = {}, at = {};
function I(e, t) {
return F[e] = F[e] || [], F[e].push(t), () => {
let n = F[e];
if (n) {
let e = n.indexOf(t);
e !== -1 && n.splice(e, 1);
}
};
}
function L(e, t) {
if (!at[e]) {
at[e] = !0;
try {
t();
} catch (t) {
P && M.error(`Error while instrumenting ${e}`, t);
}
}
}
function R(e, t) {
let n = e && F[e];
if (n) for (let r of n) try {
r(t);
} catch (t) {
P && M.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${j(r)}
Error:`, t);
}
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/instrument/globalError.js
var ot = null;
function st(e) {
let t = "error";
I(t, e), L(t, ct);
}
function ct() {
ot = N.onerror, N.onerror = function(e, t, n, r, i) {
return R("error", {
column: r,
error: i,
line: n,
msg: e,
url: t
}), ot ? ot.apply(this, arguments) : !1;
}, N.onerror.__SENTRY_INSTRUMENTED__ = !0;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/instrument/globalUnhandledRejection.js
var lt = null;
function ut(e) {
let t = "unhandledrejection";
I(t, e), L(t, dt);
}
function dt() {
lt = N.onunhandledrejection, N.onunhandledrejection = function(e) {
return R("unhandledrejection", e), lt ? lt.apply(this, arguments) : !0;
}, N.onunhandledrejection.__SENTRY_INSTRUMENTED__ = !0;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/parseSampleRate.js
function ft(e) {
if (typeof e == "boolean") return Number(e);
let t = typeof e == "string" ? parseFloat(e) : e;
if (!(typeof t != "number" || isNaN(t) || t < 0 || t > 1)) return t;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/should-ignore-span.js
function pt(e) {
M.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`);
}
function mt(e, t) {
if (!(t != null && t.length)) return !1;
for (let n of t) {
if (_t(n)) {
if (e.description && S(e.description, n)) return P && pt(e), !0;
continue;
}
let t = !!n.attributes && Object.keys(n.attributes).length > 0;
if (!n.name && !n.op && !t) continue;
let r = n.name ? e.description && S(e.description, n.name) : !0, i = n.op ? e.op && S(e.op, n.op) : !0, a = n.attributes ? Object.entries(n.attributes).every(([t, n]) => {
var r;
return ht((r = e.attributes) == null ? void 0 : r[t], n);
}) : !0;
if (r && i && a) return P && pt(e), !0;
}
return !1;
}
function ht(e, t) {
return typeof e == "string" && (typeof t == "string" || t instanceof RegExp) ? S(e, t) : Array.isArray(e) && Array.isArray(t) ? e.length === t.length && e.every((e, n) => e === t[n]) : e === t;
}
function gt(e, t) {
let n = t.parent_span_id, r = t.span_id;
if (n) for (let t of e) t.parent_span_id === r && (t.parent_span_id = n);
}
function _t(e) {
return typeof e == "string" || e instanceof RegExp;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/tracing/spans/beforeSendSpan.js
function vt(e) {
return !!e && typeof e == "function" && "_streamed" in e && !!e._streamed;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/envelope.js
function z(e, t = []) {
return [e, t];
}
function yt(e, t) {
let [n, r] = e;
return [n, [...r, t]];
}
function bt(e, t) {
let n = e[1];
for (let e of n) {
let n = e[0].type;
if (t(e, n)) return !0;
}
return !1;
}
function xt(e, t) {
return bt(e, (e, n) => t.includes(n));
}
function St(e) {
let t = De(N);
return t.encodePolyfill ? t.encodePolyfill(e) : new TextEncoder().encode(e);
}
function Ct(e) {
let [t, n] = e, r = JSON.stringify(t);
function i(e) {
typeof r == "string" ? r = typeof e == "string" ? r + e : [St(r), e] : r.push(typeof e == "string" ? St(e) : e);
}
for (let e of n) {
let [t, n] = e;
if (i(`
${JSON.stringify(t)}
`), typeof n == "string" || n instanceof Uint8Array) i(n);
else {
let e;
try {
e = JSON.stringify(n);
} catch {
e = JSON.stringify($e(n));
}
i(e);
}
}
return typeof r == "string" ? r : wt(r);
}
function wt(e) {
let t = e.reduce((e, t) => e + t.length, 0), n = new Uint8Array(t), r = 0;
for (let t of e) n.set(t, r), r += t.length;
return n;
}
function Tt(e) {
let t = typeof e.data == "string" ? St(e.data) : e.data;
return [{
type: "attachment",
length: t.length,
filename: e.filename,
content_type: e.contentType,
attachment_type: e.attachmentType
}, t];
}
var Et = {
sessions: "session",
event: "error",
client_report: "internal",
user_report: "default",
profile_chunk: "profile",
replay_event: "replay",
replay_recording: "replay",
check_in: "monitor",
raw_security: "security",
log: "log_item",
trace_metric: "metric"
};
function Dt(e) {
return e in Et;
}
function Ot(e) {
return Dt(e) ? Et[e] : e;
}
function kt(e) {
if (!(e != null && e.sdk)) return;
let { name: t, version: n } = e.sdk;
return {
name: t,
version: n
};
}
function At(e, t, n, r) {
var i;
let a = (i = e.sdkProcessingMetadata) == null ? void 0 : i.dynamicSamplingContext;
return {
event_id: e.event_id,
sent_at: new Date(x()).toISOString(),
...t && { sdk: t },
...!!n && r && { dsn: O(r) },
...a && { trace: a }
};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/envelope.js
function jt(e, t) {
var n, r, i, a;
if (!t) return e;
let o = e.sdk || {};
return e.sdk = {
...o,
name: o.name || t.name,
version: o.version || t.version,
integrations: [...((n = e.sdk) == null ? void 0 : n.integrations) || [], ...t.integrations || []],
packages: [...((r = e.sdk) == null ? void 0 : r.packages) || [], ...t.packages || []],
settings: (i = e.sdk) != null && i.settings || t.settings ? {
...(a = e.sdk) == null ? void 0 : a.settings,
...t.settings
} : void 0
}, e;
}
function Mt(e, t, n, r) {
let i = kt(n);
return z({
sent_at: new Date(x()).toISOString(),
...i && { sdk: i },
...!!r && t && { dsn: O(t) }
}, ["aggregates" in e ? [{ type: "sessions" }, e] : [{ type: "session" }, e.toJSON()]]);
}
function Nt(e, t, n, r) {
let i = kt(n), a = e.type && e.type !== "replay_event" ? e.type : "event";
jt(e, n == null ? void 0 : n.sdk);
let o = At(e, i, r, t);
return delete e.sdkProcessingMetadata, z(o, [[{ type: a }, e]]);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/tracing/spans/hasSpanStreamingEnabled.js
function Pt(e) {
return e.getOptions().traceLifecycle === "stream";
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/url.js
function Ft(e) {
if (!e) return {};
let t = e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);
if (!t) return {};
let n = t[6] || "", r = t[8] || "";
return {
host: t[4],
path: t[5],
protocol: t[2],
search: n,
hash: r,
relative: t[5] + n + r
};
}
function It(e, t = !0) {
if (e.startsWith("data:")) {
let n = e.match(/^data:([^;,]+)/), r = n ? n[1] : "text/plain", i = e.includes(";base64,"), a = e.indexOf(","), o = "";
if (t && a !== -1) {
let t = e.slice(a + 1);
o = t.length > 10 ? `${t.slice(0, 10)}... [truncated]` : t;
}
return `data:${r}${i ? ",base64" : ""}${o ? `,${o}` : ""}`;
}
return e;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/tracing/spans/captureSpan.js
function Lt(e, t) {
var n;
let r = (n = e.attributes) == null ? e.attributes = {} : n;
Object.entries(t).forEach(([e, t]) => {
t != null && !(e in r) && (r[e] = t);
});
}
function Rt(e) {
let t = e.protocol ? `${e.protocol}:` : "", n = e.port ? `:${e.port}` : "";
return `${t}//${e.host}${n}${e.path ? `/${e.path}` : ""}/api/`;
}
function zt(e) {
return `${Rt(e)}${e.projectId}/envelope/`;
}
function Bt(e, t) {
let n = { sentry_version: "7" };
return e.publicKey && (n.sentry_key = e.publicKey), t && (n.sentry_client = `${t.name}/${t.version}`), new URLSearchParams(n).toString();
}
function Vt(e, t, n) {
return t || `${zt(e)}?${Bt(e, n)}`;
}
function Ht(e, t) {
let n = Ye(e);
if (!n) return "";
let r = `${Rt(n)}embed/error-page/`, i = `dsn=${O(n)}`;
for (let e in t) if (e !== "dsn" && e !== "onClose") if (e === "user") {
let e = t.user;
if (!e) continue;
e.name && (i += `&name=${encodeURIComponent(e.name)}`), e.email && (i += `&email=${encodeURIComponent(e.email)}`);
} else i += `&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;
return `${r}?${i}`;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/integration.js
var Ut = [];
function Wt(e) {
let t = {};
return e.forEach((e) => {
let { name: n } = e, r = t[n];
r && !r.isDefaultInstance && e.isDefaultInstance || (t[n] = e);
}), Object.values(t);
}
function Gt(e) {
let t = e.defaultIntegrations || [], n = e.integrations;
t.forEach((e) => {
e.isDefaultInstance = !0;
});
let r;
if (Array.isArray(n)) r = [...t, ...n];
else if (typeof n == "function") {
let e = n(t);
r = Array.isArray(e) ? e : [e];
} else r = t;
return Wt(r);
}
function Kt(e, t) {
let n = {};
return t.forEach((t) => {
t != null && t.beforeSetup && t.beforeSetup(e);
}), t.forEach((t) => {
t && Jt(e, t, n);
}), n;
}
function qt(e, t) {
for (let n of t) n != null && n.afterAllSetup && n.afterAllSetup(e);
}
function Jt(e, t, n) {
if (n[t.name]) {
P && M.log(`Integration skipped because it was already installed: ${t.name}`);
return;
}
if (n[t.name] = t, !Ut.includes(t.name) && typeof t.setupOnce == "function" && (t.setupOnce(), Ut.push(t.name)), t.setup && typeof t.setup == "function" && t.setup(e), typeof t.preprocessEvent == "function") {
let n = t.preprocessEvent.bind(t);
e.on("preprocessEvent", (t, r) => n(t, r, e));
}
if (typeof t.processEvent == "function") {
let n = t.processEvent.bind(t), r = Object.assign((t, r) => n(t, r, e), { id: t.name });
e.addEventProcessor(r);
}
["processSpan", "processSegmentSpan"].forEach((n) => {
let r = t[n];
typeof r == "function" && e.on(n, (n) => r.call(t, n, e));
}), P && M.log(`Integration installed: ${t.name}`);
}
function B(e) {
return e;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/env.js
function Yt() {
return typeof __SENTRY_BROWSER_BUNDLE__ < "u" && !!__SENTRY_BROWSER_BUNDLE__;
}
function Xt() {
return "npm";
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/node.js
function Zt() {
return !Yt() && Object.prototype.toString.call(typeof process < "u" ? process : 0) === "[object process]";
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/isBrowser.js
function Qt() {
return typeof window < "u" && (!Zt() || $t());
}
function $t() {
let e = N.process;
return (e == null ? void 0 : e.type) === "renderer";
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/logs/envelope.js
function en(e, t) {
let n = t ? "auto" : "never";
return [{
type: "log",
item_count: e.length,
content_type: "application/vnd.sentry.items.log+json"
}, {
version: 2,
...Qt() && { ingest_settings: {
infer_ip: n,
infer_user_agent: n
} },
items: e
}];
}
function tn(e, t, n, r, i) {
let a = {};
return t != null && t.sdk && (a.sdk = {
name: t.sdk.name,
version: t.sdk.version
}), n && r && (a.dsn = O(r)), z(a, [en(e, i)]);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/logs/internal.js
function nn(e, t) {
var n;
let r = (n = t == null ? rn(e) : t) == null ? [] : n;
if (r.length === 0) return;
let i = e.getOptions(), a = tn(r, i._metadata, i.tunnel, e.getDsn(), e.getDataCollectionOptions().userInfo);
an().set(e, []), e.emit("flushLogs"), e.sendEnvelope(a);
}
function rn(e) {
return an().get(e);
}
function an() {
return ke("clientToLogBufferMap", () => /* @__PURE__ */ new WeakMap());
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/metrics/envelope.js
function on(e, t) {
let n = t ? "auto" : "never";
return [{
type: "trace_metric",
item_count: e.length,
content_type: "application/vnd.sentry.items.trace-metric+json"
}, {
version: 2,
...Qt() && { ingest_settings: {
infer_ip: n,
infer_user_agent: n
} },
items: e
}];
}
function sn(e, t, n, r, i) {
let a = {};
return t != null && t.sdk && (a.sdk = {
name: t.sdk.name,
version: t.sdk.version
}), n && r && (a.dsn = O(r)), z(a, [on(e, i)]);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/metrics/internal.js
function cn(e, t) {
var n;
let r = (n = t == null ? ln(e) : t) == null ? [] : n;
if (r.length === 0) return;
let i = e.getOptions(), a = sn(r, i._metadata, i.tunnel, e.getDsn(), e.getDataCollectionOptions().userInfo);
un().set(e, []), e.emit("flushMetrics"), e.sendEnvelope(a);
}
function ln(e) {
return un().get(e);
}
function un() {
return ke("clientToMetricBufferMap", () => /* @__PURE__ */ new WeakMap());
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/tracing/spans/spanJsonToStreamedSpan.js
function dn(e) {
return Ee({
trace_id: e.trace_id,
span_id: e.span_id,
parent_span_id: e.parent_span_id,
name: e.description || "",
start_timestamp: e.start_timestamp,
end_timestamp: e.timestamp || e.start_timestamp,
status: !e.status || e.status === "ok" || e.status === "cancelled" ? "ok" : "error",
is_segment: !1,
attributes: { ...e.data },
links: e.links
});
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/tracing/spans/extractGenAiSpans.js
function fn(e, t) {
var n, r;
if (e.type !== "transaction" || !((n = e.spans) != null && n.length) || !((r = e.sdkProcessingMetadata) != null && r.hasGenAiSpans) || !t.getOptions().streamGenAiSpans || Pt(t)) return;
let i = [], a = [];
for (let t of e.spans) {
var o;
(o = t.op) != null && o.startsWith("gen_ai.") ? i.push(dn(t)) : a.push(t);
}
if (i.length === 0) return;
e.spans = a;
let s = t.getDataCollectionOptions().userInfo ? "auto" : "never";
return [{
type: "span",
item_count: i.length,
content_type: "application/vnd.sentry.items.span.v2+json"
}, {
version: 2,
...Qt() && { ingest_settings: {
infer_ip: s,
infer_user_agent: s
} },
items: i
}];
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/timer.js
function pn(e) {
return typeof e == "object" && typeof e.unref == "function" && e.unref(), e;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/promisebuffer.js
var mn = /* @__PURE__ */ Symbol.for("SentryBufferFullError");
function hn(e = 100) {
let t = /* @__PURE__ */ new Set();
function n() {
return t.size < e;
}
function r(e) {
t.delete(e);
}
function i(e) {
if (!n()) return qe(mn);
let i = e();
return t.add(i), i.then(() => r(i), () => r(i)), i;
}
function a(e) {
if (!t.size) return xe(!0);
let n = Promise.allSettled(Array.from(t)).then(() => !0);
if (!e) return n;
let r = [n, new Promise((t) => pn(setTimeout(() => t(!1), e)))];
return Promise.race(r);
}
return {
get $() {
return Array.from(t);
},
add: i,
drain: a
};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/ratelimit.js
var gn = 60 * 1e3;
function _n(e, t = x()) {
let n = parseInt(`${e}`, 10);
if (!isNaN(n)) return n * 1e3;
let r = Date.parse(`${e}`);
return isNaN(r) ? gn : r - t;
}
function vn(e, t) {
return e[t] || e.all || 0;
}
function yn(e, t, n = x()) {
return vn(e, t) > n;
}
function bn(e, { statusCode: t, headers: n }, r = x()) {
let i = { ...e }, a = n == null ? void 0 : n["x-sentry-rate-limits"], o = n == null ? void 0 : n["retry-after"];
if (a) for (let e of a.trim().split(",")) {
let [t, n, , , a] = e.split(":", 5), o = parseInt(t, 10), s = (isNaN(o) ? 60 : o) * 1e3;
if (!n) i.all = r + s;
else for (let e of n.split(";")) e === "metric_bucket" ? (!a || a.split(";").includes("custom")) && (i[e] = r + s) : i[e] = r + s;
}
else o ? i.all = r + _n(o, r) : t === 429 && (i.all = r + 60 * 1e3);
return i;
}
function xn(e, t, n = hn(e.bufferSize || 64)) {
let r = {}, i = (e) => n.drain(e);
function a(i) {
let a = [];
if (bt(i, (t, n) => {
let i = Ot(n);
yn(r, i) ? e.recordDroppedEvent("ratelimit_backoff", i) : a.push(t);
}), a.length === 0) return Promise.resolve({});
let o = z(i[0], a), s = (t) => {
if (xt(o, ["client_report"])) {
P && M.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);
return;
}
bt(o, (n, r) => {
e.recordDroppedEvent(t, Ot(r));
});
};
return n.add(() => t({ body: Ct(o) }).then((e) => e.statusCode === 413 ? (P && M.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."), s("send_error"), e) : (P && e.statusCode !== void 0 && (e.statusCode < 200 || e.statusCode >= 300) && M.warn(`Sentry responded with status code ${e.statusCode} to sent event.`), r = bn(r, e), e), (e) => {
throw s("network_error"), P && M.error("Encountered error running transport request:", e), e;
})).then((e) => e, (e) => {
if (e === mn) return P && M.error("Skipped sending event because buffer is full."), s("queue_overflow"), Promise.resolve({});
throw e;
});
}
return {
send: a,
flush: i
};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/clientreport.js
function Sn(e, t, n) {
let r = [{ type: "client_report" }, {
timestamp: n || je(),
discarded_events: e
}];
return z(t ? { dsn: t } : {}, [r]);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/eventUtils.js
function Cn(e) {
let t = [];
e.message && t.push(e.message);
try {
let n = e.exception.values[e.exception.values.length - 1];
n != null && n.value && (t.push(n.value), n.type && t.push(`${n.type}: ${n.value}`));
} catch {}
return t;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/transactionEvent.js
function wn(e) {
var t, n, r;
let { trace_id: i, parent_span_id: a, span_id: o, status: s, origin: c, data: l, op: u } = (t = (n = e.contexts) == null ? void 0 : n.trace) == null ? {} : t;
return {
data: l == null ? {} : l,
description: e.transaction,
op: u,
parent_span_id: a,
span_id: o == null ? "" : o,
start_timestamp: (r = e.start_timestamp) == null ? 0 : r,
status: s,
timestamp: e.timestamp,
trace_id: i == null ? "" : i,
origin: c,
profile_id: l == null ? void 0 : l[Ze],
exclusive_time: l == null ? void 0 : l[ve],
measurements: e.measurements,
is_segment: !0
};
}
function Tn(e) {
return {
type: "transaction",
timestamp: e.timestamp,
start_timestamp: e.start_timestamp,
transaction: e.description,
contexts: { trace: {
trace_id: e.trace_id,
span_id: e.span_id,
parent_span_id: e.parent_span_id,
op: e.op,
status: e.status,
origin: e.origin,
data: {
...e.data,
...e.profile_id && { "sentry.profile_id": e.profile_id },
...e.exclusive_time && { "sentry.exclusive_time": e.exclusive_time }
}
} },
measurements: e.measurements
};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/data-collection/filtering-snippets.js
var En = [
"forwarded",
"-ip",
"remote-",
"via",
"-user"
];
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/data-collection/defaultPiiToCollectionOptions.js
function Dn(e) {
return e === !0 ? {
userInfo: !0,
cookies: !0,
httpHeaders: {
request: !0,
response: !0
},
httpBodies: [
"incomingRequest",
"outgoingRequest",
"incomingResponse",
"outgoingResponse"
],
queryParams: !0,
genAI: {
inputs: !0,
outputs: !0
},
stackFrameVariables: !0,
frameContextLines: 7
} : {
userInfo: !1,
cookies: { deny: En },
httpHeaders: {
request: { deny: En },
response: { deny: En }
},
httpBodies: [],
queryParams: { deny: En },
genAI: {
inputs: !1,
outputs: !1
},
stackFrameVariables: !0,
frameContextLines: 7
};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/data-collection/resolveDataCollectionOptions.js
var On = {
userInfo: !0,
cookies: !0,
httpHeaders: {
request: !0,
response: !0
},
httpBodies: [
"incomingRequest",
"outgoingRequest",
"incomingResponse",
"outgoingResponse"
],
queryParams: !0,
genAI: {
inputs: !0,
outputs: !0
},
stackFrameVariables: !0,
frameContextLines: 5
};
function kn(e) {
var t, n, r, i, a, o, s, c, l, u, d, ee, f, p, te;
let m = e.dataCollection == null ? Dn(e.sendDefaultPii) : On, h = (t = e.dataCollection) == null ? {} : t;
return {
userInfo: (n = h.userInfo) == null ? m.userInfo : n,
cookies: (r = h.cookies) == null ? m.cookies : r,
httpHeaders: {
request: (i = (a = h.httpHeaders) == null ? void 0 : a.request) == null ? m.httpHeaders.request : i,
response: (o = (s = h.httpHeaders) == null ? void 0 : s.response) == null ? m.httpHeaders.response : o
},
httpBodies: (c = h.httpBodies) == null ? m.httpBodies : c,
queryParams: (l = h.queryParams) == null ? m.queryParams : l,
genAI: {
inputs: (u = (d = h.genAI) == null ? void 0 : d.inputs) == null ? m.genAI.inputs : u,
outputs: (ee = (f = h.genAI) == null ? void 0 : f.outputs) == null ? m.genAI.outputs : ee
},
stackFrameVariables: (p = h.stackFrameVariables) == null ? m.stackFrameVariables : p,
frameContextLines: (te = h.frameContextLines) == null ? m.frameContextLines : te
};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/client.js
var An = "Not capturing exception because it's already been captured.", jn = "Discarded session because of missing or non-string release", Mn = /* @__PURE__ */ Symbol.for("SentryInternalError"), Nn = /* @__PURE__ */ Symbol.for("SentryDoNotSendEventError"), Pn = 5e3;
function Fn(e) {
return {
message: e,
[Mn]: !0
};
}
function In(e) {
return {
message: e,
[Nn]: !0
};
}
function Ln(e) {
return !!e && typeof e == "object" && Mn in e;
}
function Rn(e) {
return !!e && typeof e == "object" && Nn in e;
}
function zn(e, t, n, r, i) {
let a = 0, o, s = !1;
e.on(n, () => {
a = 0, clearTimeout(o), s = !1;
}), e.on(t, (t) => {
if (a += r(t), a >= 8e5) i(e);
else if (!s) {
var n;
let t = (n = e.getOptions()._flushInterval) == null ? Pn : n;
t > 0 && (s = !0, o = pn(setTimeout(() => {
i(e);
}, t)));
}
}), e.on("flush", () => {
i(e);
});
}
var Bn = class {
constructor(e) {
var t, n, r, i, a, o, s;
if (this._options = e, this._integrations = {}, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], this._promiseBuffer = hn((t = (n = e.transportOptions) == null ? void 0 : n.bufferSize) == null ? 64 : t), this._dataCollection = kn(e), e.dsn ? this._dsn = Ye(e.dsn) : P && M.warn("No DSN provided, client will not send events."), this._dsn) {
let t = Vt(this._dsn, e.tunnel, e._metadata ? e._metadata.sdk : void 0);
this._transport = e.transport({
tunnel: this._options.tunnel,
recordDroppedEvent: this.recordDroppedEvent.bind(this),
...e.transportOptions,
url: t
});
}
this._options.enableLogs = (r = this._options.enableLogs) == null ? (i = this._options._experiments) == null ? void 0 : i.enableLogs : r, this._options.enableLogs && zn(this, "afterCaptureLog", "flushLogs", qn, nn), ((a = (o = this._options.enableMetrics) == null ? (s = this._options._experiments) == null ? void 0 : s.enableMetrics : o) == null || a) && zn(this, "afterCaptureMetric", "flushMetrics", Kn, cn);
}
captureException(e, t, n) {
let r = y();
if (se(e)) return P && M.log(An), r;
let i = {
event_id: r,
...t
};
return this._process(() => this.eventFromException(e, i).then((e) => this._captureEvent(e, i, n)).then((e) => e), "error"), i.event_id;
}
captureMessage(e, t, n, r) {
let i = {
event_id: y(),
...n
}, a = Ke(e) ? e : String(e), o = He(e), s = o ? this.eventFromMessage(a, t, i) : this.eventFromException(e, i);
return this._process(() => s.then((e) => this._captureEvent(e, i, r)), o ? "unknown" : "error"), i.event_id;
}
captureEvent(e, t, n) {
let r = y();
if (t != null && t.originalException && se(t.originalException)) return P && M.log(An), r;
let i = {
event_id: r,
...t
}, a = e.sdkProcessingMetadata || {}, o = a.capturedSpanScope, s = a.capturedSpanIsolationScope, c = Vn(e.type);
return this._process(() => this._captureEvent(e, i, o || n, s), c), i.event_id;
}
captureSession(e) {
this.sendSession(e), ce(e, { init: !1 });
}
getDsn() {
return this._dsn;
}
getOptions() {
return this._options;
}
getDataCollectionOptions() {
return this._dataCollection;
}
getSdkMetadata() {
return this._options._metadata;
}
getTransport() {
return this._transport;
}
async flush(e) {
let t = this._transport;
if (this.emit("flush"), !t) return !0;
let n = await this._isClientDoneProcessing(e), r = await t.flush(e);
return n && r;
}
async close(e) {
nn(this);
let t = await this.flush(e);
return this.getOptions().enabled = !1, this.emit("close"), t;
}
getEventProcessors() {
return this._eventProcessors;
}
addEventProcessor(e) {
this._eventProcessors.push(e);
}
init() {
(this._isEnabled() || this._options.integrations.some(({ name: e }) => e.startsWith("Spotlight"))) && this._setupIntegrations();
}
getIntegrationByName(e) {
return this._integrations[e];
}
getIntegrationNames() {
return Object.keys(this._integrations);
}
addIntegration(e) {
let t = this._integrations[e.name];
!t && e.beforeSetup && e.beforeSetup(this), Jt(this, e, this._integrations), t || qt(this, [e]);
}
sendEvent(e, t = {}) {
this.emit("beforeSendEvent", e, t);
let n = fn(e, this), r = Nt(e, this._dsn, this._options._metadata, this._options.tunnel);
for (let e of t.attachments || []) r = yt(r, Tt(e));
n && (r = yt(r, n)), this.sendEnvelope(r).then((t) => this.emit("afterSendEvent", e, t));
}
sendSession(e) {
let { release: t, environment: n = ze } = this._options;
if ("aggregates" in e) {
let r = e.attrs || {};
if (!r.release && !t) {
P && M.warn(jn);
return;
}
r.release = r.release || t, r.environment = r.environment || n, e.attrs = r;
} else {
if (!e.release && !t) {
P && M.warn(jn);
return;
}
e.release = e.release || t, e.environment = e.environment || n;
}
this.emit("beforeSendSession", e);
let r = Mt(e, this._dsn, this._options._metadata, this._options.tunnel);
this.sendEnvelope(r);
}
recordDroppedEvent(e, t, n = 1) {
if (this._options.sendClientReports) {
let r = `${e}:${t}`;
P && M.log(`Recording outcome: "${r}"${n > 1 ? ` (${n} times)` : ""}`), this._outcomes[r] = (this._outcomes[r] || 0) + n;
}
}
on(e, t) {
let n = this._hooks[e] = this._hooks[e] || /* @__PURE__ */ new Set(), r = (...e) => t(...e);
return n.add(r), () => {
n.delete(r);
};
}
emit(e, ...t) {
let n = this._hooks[e];
n && n.forEach((e) => e(...t));
}
async sendEnvelope(e) {
if (this.emit("beforeEnvelope", e), this._isEnabled() && this._transport) try {
return await this._transport.send(e);
} catch (e) {
return P && M.error("Error while sending envelope:", e), {};
}
return P && M.error("Transport disabled"), {};
}
registerCleanup(e) {}
dispose() {}
_setupIntegrations() {
let { integrations: e } = this._options;
this._integrations = Kt(this, e), qt(this, e);
}
_updateSessionFromEvent(e, t) {
var n;
let r = t.level === "fatal", i = !1, a = (n = t.exception) == null ? void 0 : n.values;
if (a) {
i = !0, r = !1;
for (let e of a) {
var o;
if (((o = e.mechanism) == null ? void 0 : o.handled) === !1) {
r = !0;
break;
}
}
}
let s = e.status === "ok";
(s && e.errors === 0 || s && r) && (ce(e, {
...r && { status: "crashed" },
errors: e.errors || Number(i || r)
}), this.captureSession(e));
}
async _isClientDoneProcessing(e) {
let t = 0;
for (; !e || t < e;) {
if (await new Promise((e) => setTimeout(e, 1)), !this._numProcessing) return !0;
t++;
}
return !1;
}
_isEnabled() {
return this.getOptions().enabled !== !1 && this._transport !== void 0;
}
_prepareEvent(e, t, n, r) {
let i = this.getOptions(), a = this.getIntegrationNames();
return !t.integrations && a.length && (t.integrations = a), this.emit("preprocessEvent", e, t), e.type || r.setLastEventId(e.event_id || t.event_id), Me(i, e, t, n, this, r).then((e) => {
var r;
return e === null ? e : (this.emit("postprocessEvent", e, t), e.contexts = {
trace: {
...(r = e.contexts) == null ? void 0 : r.trace,
...ue(n)
},
...e.contexts
}, e.sdkProcessingMetadata = {
dynamicSamplingContext: we(this, n),
...e.sdkProcessingMetadata
}, e);
});
}
_captureEvent(e, t = {}, n = v(), r = Xe()) {
return P && Wn(e) && M.log(`Captured error event \`${Cn(e)[0] || "<unknown>"}\``), this._processEvent(e, t, n, r).then((e) => e.event_id, (e) => {
P && (Rn(e) ? M.log(e.message) : Ln(e) ? M.warn(e.message) : M.warn(e));
});
}
_processEvent(e, t, n, r) {
let i = this.getOptions(), { sampleRate: a } = i, o = Gn(e), s = Wn(e), c = `before send for type \`${e.type || "error"}\``, l = a === void 0 ? void 0 : ft(a);
if (s && typeof l == "number" && de() > l) return this.recordDroppedEvent("sample_rate", "error"), qe(In(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));
let u = Vn(e.type);
return this._prepareEvent(e, t, n, r).then((e) => {
var n;
if (e === null) throw this.recordDroppedEvent("event_processor", u), In("An event processor returned `null`, will not send event.");
return ((n = t.data) == null ? void 0 : n.__sentry__) === !0 ? e : Hn(Un(this, i, e, t), c);
}).then((i) => {
if (i === null) {
if (this.recordDroppedEvent("before_send", u), o) {
let t = 1 + (e.spans || []).length;
this.recordDroppedEvent("before_send", "span", t);
}
throw In(`${c} returned \`null\`, will not send event.`);
}
let a = n.getSession() || r.getSession();
if (s && a && this._updateSessionFromEvent(a, i), o) {
var l;
let e = (((l = i.sdkProcessingMetadata) == null ? void 0 : l.spanCountBeforeProcessing) || 0) - (i.spans ? i.spans.length : 0);
e > 0 && this.recordDroppedEvent("before_send", "span", e);
}
let d = i.transaction_info;
return o && d && i.transaction !== e.transaction && (i.transaction_info = {
...d,
source: "custom"
}), this.sendEvent(i, t), i;
}).then(null, (e) => {
throw Rn(e) || Ln(e) ? e : (this.captureException(e, {
mechanism: {
handled: !1,
type: "internal"
},
data: { __sentry__: !0 },
originalException: e
}), Fn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${e}`));
});
}
_process(e, t) {
this._numProcessing++, this._promiseBuffer.add(e).then((e) => (this._numProcessing--, e), (e) => (this._numProcessing--, e === mn && this.recordDroppedEvent("queue_overflow", t), e));
}
_clearOutcomes() {
let e = this._outcomes;
return this._outcomes = {}, Object.entries(e).map(([e, t]) => {
let [n, r] = e.split(":");
return {
reason: n,
category: r,
quantity: t
};
});
}
_flushOutcomes() {
P && M.log("Flushing outcomes...");
let e = this._clearOutcomes();
if (e.length === 0) {
P && M.log("No outcomes to send");
return;
}
if (!this._dsn) {
P && M.log("No dsn provided, will not send outcomes");
return;
}
P && M.log("Sending outcomes:", e);
let t = Sn(e, this._options.tunnel && O(this._dsn));
this.sendEnvelope(t);
}
};
function Vn(e) {
return e === "replay_event" ? "replay" : e || "error";
}
function Hn(e, t) {
let n = `${t} must return \`null\` or a valid event.`;
if (Re(e)) return e.then((e) => {
if (!Ie(e) && e !== null) throw Fn(n);
return e;
}, (e) => {
throw Fn(`${t} rejected with ${e}`);
});
if (!Ie(e) && e !== null) throw Fn(n);
return e;
}
function Un(e, t, n, r) {
let { beforeSend: i, beforeSendTransaction: a, ignoreSpans: o } = t, s = !vt(t.beforeSendSpan) && t.beforeSendSpan, c = n;
if (Wn(c) && i) return i(c, r);
if (Gn(c)) {
if (s || o) {
let t = wn(c);
if (o != null && o.length && mt({
description: t.description,
op: t.op,
attributes: t.data
}, o)) return null;
if (s) {
let e = s(t);
e ? c = ne(n, Tn(e)) : Ne();
}
if (c.spans) {
let t = [], n = c.spans;
for (let e of n) {
if (o != null && o.length && mt({
description: e.description,
op: e.op,
attributes: e.data
}, o)) {
gt(n, e);
continue;
}
if (s) {
let n = s(e);
n ? t.push(n) : (Ne(), t.push(e));
} else t.push(e);
}
let r = c.spans.length - t.length;
r && e.recordDroppedEvent("before_send", "span", r), c.spans = t;
}
}
if (a) {
if (c.spans) {
let e = c.spans.length;
c.sdkProcessingMetadata = {
...n.sdkProcessingMetadata,
spanCountBeforeProcessing: e
};
}
return a(c, r);
}
}
return c;
}
function Wn(e) {
return e.type === void 0;
}
function Gn(e) {
return e.type === "transaction";
}
function Kn(e) {
let t = 0;
return e.name && (t += e.name.length * 2), t += 8, t + Jn(e.attributes);
}
function qn(e) {
let t = 0;
return e.message && (t += e.message.length * 2), t + Jn(e.attributes);
}
function Jn(e) {
if (!e) return 0;
let t = 0;
return Object.values(e).forEach((e) => {
Array.isArray(e) ? t += e.length * Yn(e[0]) : He(e) ? t += Yn(e) : t += 100;
}), t;
}
function Yn(e) {
return typeof e == "string" ? e.length * 2 : typeof e == "number" ? 8 : typeof e == "boolean" ? 4 : 0;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/sdk.js
function Xn(e, t) {
t.debug === !0 && (P ? M.enable() : Te(() => {
console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");
})), v().update(t.initialScope);
let n = new e(t);
return Zn(n), n.init(), n;
}
function Zn(e) {
v().setClient(e);
}
var Qn = 5e3, $n = 36e5;
function er(e) {
function t(...e) {
P && M.log("[Offline]:", ...e);
}
return (n) => {
let r = e(n);
if (!n.createStore) throw Error("No `createStore` function was provided");
let i = n.createStore(n), a = Qn, o;
function s(e, t, r) {
return xt(e, ["client_report"]) ? !1 : n.shouldStore ? n.shouldStore(e, t, r) : !0;
}
function c(e) {
o && clearTimeout(o), o = pn(setTimeout(async () => {
o = void 0;
let e = await i.shift();
e && (t("Attempting to send previously queued event"), e[0].sent_at = new Date(x()).toISOString(), u(e, !0).catch((e) => {
t("Failed to retry sending", e);
}));
}, e));
}
function l() {
o || (c(a), a = Math.min(a * 2, $n));
}
async function u(e, o = !1) {
if (!o && xt(e, ["replay_event", "replay_recording"])) return await i.push(e), c(100), {};
try {
if (n.shouldSend && await n.shouldSend(e) === !1) throw Error("Envelope not sent because `shouldSend` callback returned false");
let t = await r.send(e), i = 100;
if (t) {
var u, d;
if ((u = t.headers) != null && u["retry-after"]) i = _n(t.headers["retry-after"]);
else if ((d = t.headers) != null && d["x-sentry-rate-limits"]) i = 6e4;
else if ((t.statusCode || 0) >= 400) return t;
}
return c(i), a = Qn, t;
} catch (n) {
if (await s(e, n, a)) return o ? await i.unshift(e) : await i.push(e), l(), t("Error sending. Event queued.", n), {};
throw n;
}
}
return n.flushAtStartup && l(), {
send: u,
flush: (e) => (e === void 0 && (a = Qn, c(100)), r.flush(e))
};
};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/ipAddress.js
function tr(e) {
if ("aggregates" in e) {
var t;
((t = e.attrs) == null ? void 0 : t.ip_address) === void 0 && (e.attrs = {
...e.attrs,
ip_address: "{{auto}}"
});
} else e.ipAddress === void 0 && (e.ipAddress = "{{auto}}");
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/sdkMetadata.js
function nr(e, t, n = [t], r = "npm") {
let i = (e._metadata = e._metadata || {}).sdk = e._metadata.sdk || {};
i.name || (i.name = `sentry.javascript.${t}`, i.packages = n.map((e) => ({
name: `${r}:@sentry/${e}`,
version: ge
})), i.version = ge);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/breadcrumbs.js
var rr = 100;
function V(e, t) {
let n = E(), r = Xe();
if (!n) return;
let { beforeBreadcrumb: i = null, maxBreadcrumbs: a = rr } = n.getOptions();
if (a <= 0) return;
let o = {
timestamp: je(),
...e
}, s = i ? Te(() => i(o, t)) : o;
s !== null && (n.emit && n.emit("beforeAddBreadcrumb", s, t), r.addBreadcrumb(s, a));
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/integrations/functiontostring.js
var ir, ar = "FunctionToString", or = /* @__PURE__ */ new WeakMap(), sr = B((() => ({
name: ar,
setupOnce() {
ir = Function.prototype.toString;
try {
Function.prototype.toString = function(...e) {
let t = Be(this), n = or.has(E()) && t !== void 0 ? t : this;
return ir.apply(n, e);
};
} catch {}
},
setup(e) {
or.set(e, !0);
}
}))), cr = [
/^Script error\.?$/,
/^Javascript error: Script error\.? on line 0$/,
/^ResizeObserver loop completed with undelivered notifications.$/,
/^Cannot redefine property: googletag$/,
/^Can't find variable: gmo$/,
/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,
/can't redefine non-configurable property "solana"/,
/vv\(\)\.getRestrictions is not a function/,
/Can't find variable: _AutofillCallbackHandler/,
/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,
/^Java exception was raised during method invocation$/
], lr = "EventFilters", ur = B((e = {}) => {
let t;
return {
name: lr,
setup(n) {
t = fr(e, n.getOptions());
},
processEvent(n, r, i) {
return t || (t = fr(e, i.getOptions())), pr(n, t) ? null : n;
}
};
}), dr = B(((e = {}) => ({
...ur(e),
name: "InboundFilters"
})));
function fr(e = {}, t = {}) {
return {
allowUrls: [...e.allowUrls || [], ...t.allowUrls || []],
denyUrls: [...e.denyUrls || [], ...t.denyUrls || []],
ignoreErrors: [
...e.ignoreErrors || [],
...t.ignoreErrors || [],
...e.disableErrorDefaults ? [] : cr
],
ignoreTransactions: [...e.ignoreTransactions || [], ...t.ignoreTransactions || []]
};
}
function pr(e, t) {
if (!e.type) {
if (mr(e, t.ignoreErrors)) return P && M.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${w(e)}`), !0;
if (br(e)) return P && M.warn(`Event dropped due to not having an error message, error type or stacktrace.
Event: ${w(e)}`), !0;
if (gr(e, t.denyUrls)) return P && M.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${w(e)}.
Url: ${yr(e)}`), !0;
if (!_r(e, t.allowUrls)) return P && M.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${w(e)}.
Url: ${yr(e)}`), !0;
} else if (e.type === "transaction" && hr(e, t.ignoreTransactions)) return P && M.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${w(e)}`), !0;
return !1;
}
function mr(e, t) {
return t != null && t.length ? Cn(e).some((e) => T(e, t)) : !1;
}
function hr(e, t) {
if (!(t != null && t.length)) return !1;
let n = e.transaction;
return n ? T(n, t) : !1;
}
function gr(e, t) {
if (!(t != null && t.length)) return !1;
let n = yr(e);
return n ? T(n, t) : !1;
}
function _r(e, t) {
if (!(t != null && t.length)) return !0;
let n = yr(e);
return n ? T(n, t) : !0;
}
function vr(e = []) {
for (let t = e.length - 1; t >= 0; t--) {
let n = e[t];
if (n && n.filename !== "<anonymous>" && n.filename !== "[native code]") return n.filename || null;
}
return null;
}
function yr(e) {
try {
var t, n, r;
let i = [...(t = (n = e.exception) == null ? void 0 : n.values) == null ? [] : t].reverse().find((e) => {
var t, n;
return ((t = e.mechanism) == null ? void 0 : t.parent_id) === void 0 && ((n = e.stacktrace) == null || (n = n.frames) == null ? void 0 : n.length);
}), a = i == null || (r = i.stacktrace) == null ? void 0 : r.frames;
return a ? vr(a) : null;
} catch {
return P && M.error(`Cannot extract url for event ${w(e)}`), null;
}
}
function br(e) {
var t;
return !((t = e.exception) == null || (t = t.values) == null) && t.length ? !e.message && !e.exception.values.some((e) => e.stacktrace || e.type && e.type !== "Error" || e.value) : !1;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/aggregate-errors.js
function xr(e, t, n, r, i, a) {
var o;
if (!((o = i.exception) != null && o.values) || !a || !Ce(a.originalException, Error)) return;
let s = i.exception.values.length > 0 ? i.exception.values[i.exception.values.length - 1] : void 0;
s && (i.exception.values = Sr(e, t, r, a.originalException, n, i.exception.values, s, 0));
}
function Sr(e, t, n, r, i, a, o, s) {
if (a.length >= n + 1) return a;
let c = [...a];
if (Ce(r[i], Error)) {
wr(o, s, r);
let a = e(t, r[i]), l = c.length;
Tr(a, i, l, s), c = Sr(e, t, n, r[i], i, [a, ...c], a, l);
}
return Cr(r) && r.errors.forEach((a, l) => {
if (Ce(a, Error)) {
wr(o, s, r);
let u = e(t, a), d = c.length;
Tr(u, `errors[${l}]`, d, s), c = Sr(e, t, n, a, i, [u, ...c], u, d);
}
}), c;
}
function Cr(e) {
return Array.isArray(e.errors);
}
function wr(e, t, n) {
e.mechanism = {
handled: !0,
type: "auto.core.linked_errors",
...Cr(n) && { is_exception_group: !0 },
...e.mechanism,
exception_id: t
};
}
function Tr(e, t, n, r) {
e.mechanism = {
handled: !0,
...e.mechanism,
type: "chained",
source: t,
exception_id: n,
parent_id: r
};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/eventbuilder.js
function Er(e) {
return he(e) && "__sentry_fetch_url_host__" in e && typeof e.__sentry_fetch_url_host__ == "string";
}
function Dr(e) {
return Er(e) ? `${e.message} (${e.__sentry_fetch_url_host__})` : e.message;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/instrument/console.js
var Or = /* @__PURE__ */ new Set([]);
function kr(e) {
let t = "console", n = I(t, e);
return L(t, Ar), n;
}
function Ar() {
"console" in N && Se.forEach(function(e) {
e in N.console && C(N.console, e, function(t) {
return Pe[e] = t, function(...t) {
let n = t[0], r = Pe[e], i = Or.size && typeof n == "string" && T(n, Or);
i || R("console", {
args: t,
level: e
}), (!i || P && M.isEnabled()) && (r == null || r.apply(N.console, t));
};
});
});
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/severity.js
function jr(e) {
return e === "warn" ? "warning" : [
"fatal",
"error",
"warning",
"log",
"info",
"debug"
].includes(e) ? e : "log";
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/integrations/dedupe.js
var Mr = "Dedupe", Nr = B((() => {
let e;
return {
name: Mr,
processEvent(t) {
if (t.type) return t;
try {
if (Pr(t, e)) return P && M.warn("Event dropped due to being a duplicate of previously captured event."), null;
} catch {}
return e = t;
}
};
}));
function Pr(e, t) {
return t ? !!(Fr(e, t) || Ir(e, t)) : !1;
}
function Fr(e, t) {
let n = e.message, r = t.message;
return !(!n && !r || n && !r || !n && r || n !== r || !Rr(e, t) || !Lr(e, t));
}
function Ir(e, t) {
let n = zr(t), r = zr(e);
return !(!n || !r || n.type !== r.type || n.value !== r.value || !Rr(e, t) || !Lr(e, t));
}
function Lr(e, t) {
let n = be(e), r = be(t);
if (!n && !r) return !0;
if (n && !r || !n && r || (n = n, r = r, r.length !== n.length)) return !1;
for (let e = 0; e < r.length; e++) {
let t = r[e], i = n[e];
if (t.filename !== i.filename || t.lineno !== i.lineno || t.colno !== i.colno || t.function !== i.function) return !1;
}
return !0;
}
function Rr(e, t) {
let n = e.fingerprint, r = t.fingerprint;
if (!n && !r) return !0;
if (n && !r || !n && r) return !1;
n = n, r = r;
try {
return n.join("") === r.join("");
} catch {
return !1;
}
}
function zr(e) {
var t;
return (t = e.exception) == null || (t = t.values) == null ? void 0 : t[0];
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/integrations/conversationId.js
var Br = "ConversationId", Vr = B((() => ({
name: Br,
setup(e) {
e.on("spanStart", (e) => {
let t = v().getScopeData(), n = Xe().getScopeData(), r = t.conversationId || n.conversationId;
if (r) {
let { op: t, data: n, description: i } = Oe(e);
if (!(t != null && t.startsWith("gen_ai.")) && !n["ai.operationId"] && !(i != null && i.startsWith("ai."))) return;
e.setAttribute(Qe, r);
}
});
}
})));
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/breadcrumb-log-level.js
function Hr(e) {
if (e !== void 0) {
if (e >= 400 && e < 500) return "warning";
if (e >= 500) return "error";
}
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/supports.js
var H = N;
function Ur() {
return "history" in H && !!H.history;
}
f