@expofp/floorplan
Version:
Interactive floor plan library for expos and events
1,597 lines • 99.6 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.20.0" };
var t = new e.Error().stack;
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "23565ca1-d16d-4dcc-b5f2-84398dd60a5d", e._sentryDebugIdIdentifier = "sentry-dbid-23565ca1-d16d-4dcc-b5f2-84398dd60a5d");
} catch {}
})();
import { r as e } from "./rolldown-runtime-7-Wh3Cc7.js";
import { A as t, D as n, E as r, O as i, Rt as a, i as o, l as s } from "./i18n-B6dEf7vu.js";
import { t as c } from "./react-lDheuaid.js";
import { n as l, r as u, t as d } from "./loadImage-DidrxJwE.js";
import { $ as f, A as p, B as m, C as h, D as g, E as _, F as v, G as y, H as b, I as x, J as S, K as C, L as ee, M as w, N as te, O as ne, P as re, Q as ie, R as ae, S as oe, T, U as E, V as se, W as ce, X as le, Y as ue, Z as de, _ as D, _t as fe, a as pe, at as me, b as he, bt as O, c as ge, ct as _e, d as ve, dt as k, et as ye, f as be, ft as xe, g as Se, gt as Ce, h as we, ht as A, it as Te, j, k as Ee, l as De, lt as Oe, m as ke, mt as Ae, n as je, nt as Me, o as Ne, ot as Pe, p as Fe, pt as Ie, q as M, r as Le, rt as Re, s as ze, st as N, t as Be, tt as Ve, u as He, ut as Ue, v as We, vt as Ge, w as Ke, x as qe, xt as P, y as Je, yt as Ye, z as F } from "./exports-BScyxu3S.js";
import { t as Xe } from "./is-webview-CPRfPICf.js";
//#region ../config/src/lib/apply-intents.ts
function Ze(e, t) {
let n = JSON.parse(JSON.stringify(t.args));
e[t.name](...n);
}
function Qe(e, t) {
for (let n of t) try {
Ze(e, n);
} catch (e) {
console.error(`Intent ${n.name} failed:`, e);
}
}
//#endregion
//#region src/tools/report-error.ts
var $e;
function et(e) {
$e || 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)) || ($e = 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: u.messages.join("\n"),
userAgent: navigator.userAgent,
language: n,
group: "FP",
url: document.location,
subject: "FP JS error: " + document.location.host
};
u.info("Sending error report", r), await Promise.all([tt(r), nt(r)]);
}, 2e3));
}
async function tt(e) {
let t = await fetch("https://app.expofp.com/api/report-error", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(e)
});
u.log("Reporter response: ", await t.text());
}
async function nt(e) {
let t = rt(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)
});
u.log("Slack reporter response: ", await n.text());
}
function rt(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.69.0/node_modules/@sentry/core/build/esm/instrument/handlers.js
var I = {}, it = {};
function L(e, t) {
return I[e] = I[e] || [], I[e].push(t), () => {
let n = I[e];
if (n) {
let e = n.indexOf(t);
e !== -1 && n.splice(e, 1);
}
};
}
function R(e, t) {
if (!it[e]) {
it[e] = !0;
try {
t();
} catch (t) {
P && A.error(`Error while instrumenting ${e}`, t);
}
}
}
function z(e, t) {
let n = e && I[e];
if (n) for (let r of n) try {
r(t);
} catch (t) {
P && A.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${k(r)}
Error:`, t);
}
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/instrument/globalError.js
var at = null;
function ot(e) {
let t = "error";
L(t, e), R(t, st);
}
function st() {
at = O.onerror, O.onerror = function(e, t, n, r, i) {
return z("error", {
column: r,
error: i,
line: n,
msg: e,
url: t
}), at ? at.apply(this, arguments) : !1;
}, O.onerror.__SENTRY_INSTRUMENTED__ = !0;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/instrument/globalUnhandledRejection.js
var ct = null;
function lt(e) {
let t = "unhandledrejection";
L(t, e), R(t, ut);
}
function ut() {
ct = O.onunhandledrejection, O.onunhandledrejection = function(e) {
return z("unhandledrejection", e), !ct || ct.apply(this, arguments);
}, O.onunhandledrejection.__SENTRY_INSTRUMENTED__ = !0;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/parseSampleRate.js
function dt(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.69.0/node_modules/@sentry/core/build/esm/utils/should-ignore-span.js
function ft(e) {
A.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`);
}
function pt(e, t) {
if (!(t != null && t.length)) return !1;
for (let n of t) {
if (gt(n)) {
if (e.description && ee(e.description, n)) return P && ft(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 && ee(e.description, n.name), i = !n.op || e.op && ee(e.op, n.op), a = !n.attributes || Object.entries(n.attributes).every(([t, n]) => {
var r;
return mt((r = e.attributes) == null ? void 0 : r[t], n);
});
if (r && i && a) return P && ft(e), !0;
}
return !1;
}
function mt(e, t) {
return typeof e == "string" && (typeof t == "string" || t instanceof RegExp) ? ee(e, t) : Array.isArray(e) && Array.isArray(t) ? e.length === t.length && e.every((e, n) => e === t[n]) : e === t;
}
function ht(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 gt(e) {
return typeof e == "string" || e instanceof RegExp;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/tracing/spans/beforeSendSpan.js
function _t(e) {
return !!e && typeof e == "function" && "_streamed" in e && !!e._streamed;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/envelope.js
function B(e, t = []) {
return [e, t];
}
function vt(e, t) {
let [n, r] = e;
return [n, [...r, t]];
}
function yt(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 bt(e, t) {
return yt(e, (e, n) => t.includes(n));
}
function xt(e) {
let t = Ge(O);
return t.encodePolyfill ? t.encodePolyfill(e) : new TextEncoder().encode(e);
}
function St(e) {
let [t, n] = e, r = JSON.stringify(t);
function i(e) {
typeof r == "string" ? r = typeof e == "string" ? r + e : [xt(r), e] : r.push(typeof e == "string" ? xt(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(m(n));
}
i(e);
}
}
return typeof r == "string" ? r : Ct(r);
}
function Ct(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 wt(e) {
let t = typeof e.data == "string" ? xt(e.data) : e.data;
return [{
type: "attachment",
length: t.length,
filename: e.filename,
content_type: e.contentType,
attachment_type: e.attachmentType
}, t];
}
var Tt = {
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 Et(e) {
return e in Tt;
}
function Dt(e) {
return Et(e) ? Tt[e] : e;
}
function Ot(e) {
if (!(e != null && e.sdk)) return;
let { name: t, version: n } = e.sdk;
return {
name: t,
version: n
};
}
function kt(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(E()).toISOString(),
...t && { sdk: t },
...!!n && r && { dsn: D(r) },
...a && { trace: a }
};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/envelope.js
function At(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 jt(e, t, n, r) {
let i = Ot(n);
return B({
sent_at: new Date(E()).toISOString(),
...i && { sdk: i },
...!!r && t && { dsn: D(t) }
}, ["aggregates" in e ? [{ type: "sessions" }, e] : [{ type: "session" }, e.toJSON()]]);
}
function Mt(e, t, n, r) {
let i = Ot(n), a = e.type && e.type !== "replay_event" ? e.type : "event";
At(e, n == null ? void 0 : n.sdk);
let o = kt(e, i, r, t);
return delete e.sdkProcessingMetadata, B(o, [[{ type: a }, e]]);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/tracing/spans/hasSpanStreamingEnabled.js
function Nt(e) {
return e.getOptions().traceLifecycle === "stream";
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+conventions@0.16.0/node_modules/@sentry/conventions/dist/attributes.mjs
var Pt = "url.full";
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/tracing/spans/captureSpan.js
function Ft(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);
});
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/timer.js
function It(e) {
return typeof e == "object" && typeof e.unref == "function" && e.unref(), e;
}
function Lt(e) {
let t = e.protocol ? `${e.protocol}:` : "", n = e.port ? `:${e.port}` : "";
return `${t}//${e.host}${n}${e.path ? `/${e.path}` : ""}/api/`;
}
function Rt(e) {
return `${Lt(e)}${e.projectId}/envelope/`;
}
function zt(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 Bt(e, t, n) {
return t || `${Rt(e)}?${zt(e, n)}`;
}
function Vt(e, t) {
let n = We(e);
if (!n) return "";
let r = `${Lt(n)}embed/error-page/`, i = `dsn=${D(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.69.0/node_modules/@sentry/core/build/esm/integration.js
var Ht = [];
function Ut(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 Wt(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 Ut(r);
}
function Gt(e, t) {
let n = {};
return t.forEach((t) => {
t != null && t.beforeSetup && t.beforeSetup(e);
}), t.forEach((t) => {
t && qt(e, t, n);
}), n;
}
function Kt(e, t) {
for (let n of t) n != null && n.afterAllSetup && n.afterAllSetup(e);
}
function qt(e, t, n) {
if (n[t.name]) {
P && A.log(`Integration skipped because it was already installed: ${t.name}`);
return;
}
if (n[t.name] = t, !Ht.includes(t.name) && typeof t.setupOnce == "function" && (t.setupOnce(), Ht.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 && A.log(`Integration installed: ${t.name}`);
}
function V(e) {
return e;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/env.js
function Jt() {
return typeof __SENTRY_BROWSER_BUNDLE__ < "u" && !!__SENTRY_BROWSER_BUNDLE__;
}
function Yt() {
return "npm";
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/node.js
function Xt() {
return !Jt() && Object.prototype.toString.call(typeof process < "u" ? process : 0) === "[object process]";
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/isBrowser.js
function Zt() {
return typeof window < "u" && (!Xt() || Qt());
}
function Qt() {
let e = O.process;
return (e == null ? void 0 : e.type) === "renderer";
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/logs/envelope.js
function $t(e, t) {
let n = t ? "auto" : "never";
return [{
type: "log",
item_count: e.length,
content_type: "application/vnd.sentry.items.log+json"
}, {
version: 2,
...Zt() && { ingest_settings: {
infer_ip: n,
infer_user_agent: n
} },
items: e
}];
}
function en(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 = D(r)), B(a, [$t(e, i)]);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/logs/internal.js
function tn(e, t) {
var n;
let r = (n = t == null ? nn(e) : t) == null ? [] : n;
if (r.length === 0) return;
let i = e.getOptions(), a = en(r, i._metadata, i.tunnel, e.getDsn(), e.getDataCollectionOptions().userInfo);
rn().set(e, []), e.emit("flushLogs"), e.sendEnvelope(a);
}
function nn(e) {
return rn().get(e);
}
function rn() {
return fe("clientToLogBufferMap", () => /* @__PURE__ */ new WeakMap());
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/metrics/envelope.js
function an(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,
...Zt() && { ingest_settings: {
infer_ip: n,
infer_user_agent: n
} },
items: e
}];
}
function on(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 = D(r)), B(a, [an(e, i)]);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/metrics/internal.js
function sn(e, t) {
var n;
let r = (n = t == null ? cn(e) : t) == null ? [] : n;
if (r.length === 0) return;
let i = e.getOptions(), a = on(r, i._metadata, i.tunnel, e.getDsn(), e.getDataCollectionOptions().userInfo);
ln().set(e, []), e.emit("flushMetrics"), e.sendEnvelope(a);
}
function cn(e) {
return ln().get(e);
}
function ln() {
return fe("clientToMetricBufferMap", () => /* @__PURE__ */ new WeakMap());
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/tracing/spans/spanJsonToStreamedSpan.js
function un(e) {
return Se({
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.69.0/node_modules/@sentry/core/build/esm/tracing/spans/extractGenAiSpans.js
function dn(e, t) {
var n, r;
if (e.type !== "transaction" || !((n = e.spans) != null && n.length) || !((r = e.sdkProcessingMetadata) != null && r.hasGenAiSpans) || t.getOptions().streamGenAiSpans === !1 || Nt(t)) return;
let i = [], a = [];
for (let t of e.spans) {
var o;
(o = t.op) != null && o.startsWith("gen_ai.") ? i.push(un(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,
...Zt() && { ingest_settings: {
infer_ip: s,
infer_user_agent: s
} },
items: i
}];
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/promisebuffer.js
var fn = /* @__PURE__ */ Symbol.for("SentryBufferFullError");
function pn(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 He(fn);
let i = e();
return t.add(i), i.then(() => r(i), () => r(i)), i;
}
function a(e) {
if (!t.size) return ve(!0);
let n = Promise.allSettled(Array.from(t)).then(() => !0);
if (!e) return n;
let r = [n, new Promise((t) => It(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.69.0/node_modules/@sentry/core/build/esm/utils/ratelimit.js
var mn = 60 * 1e3;
function hn(e, t = E()) {
let n = parseInt(`${e}`, 10);
if (!isNaN(n)) return n * 1e3;
let r = Date.parse(`${e}`);
return isNaN(r) ? mn : r - t;
}
function gn(e, t) {
return e[t] || e.all || 0;
}
function _n(e, t, n = E()) {
return gn(e, t) > n;
}
function vn(e, { statusCode: t, headers: n }, r = E()) {
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 + hn(o, r) : t === 429 && (i.all = r + 60 * 1e3);
return i;
}
function yn(e, t, n = pn(e.bufferSize || 64)) {
let r = {}, i = (e) => n.drain(e);
function a(i) {
let a = [];
if (yt(i, (t, n) => {
let i = Dt(n);
_n(r, i) ? e.recordDroppedEvent("ratelimit_backoff", i) : a.push(t);
}), a.length === 0) return Promise.resolve({});
let o = B(i[0], a), s = (t) => {
if (bt(o, ["client_report"])) {
P && A.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);
return;
}
yt(o, (n, r) => {
e.recordDroppedEvent(t, Dt(r));
});
};
return n.add(() => t({ body: St(o) }).then((e) => e.statusCode === 413 ? (P && A.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) && A.warn(`Sentry responded with status code ${e.statusCode} to sent event.`), r = vn(r, e), e), (e) => {
throw s("network_error"), P && A.error("Encountered error running transport request:", e), e;
})).then((e) => e, (e) => {
if (e === fn) return P && A.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.69.0/node_modules/@sentry/core/build/esm/utils/clientreport.js
function bn(e, t, n) {
let r = [{ type: "client_report" }, {
timestamp: n || p(),
discarded_events: e
}];
return B(t ? { dsn: t } : {}, [r]);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/eventUtils.js
function xn(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.69.0/node_modules/@sentry/core/build/esm/utils/transactionEvent.js
function Sn(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[qe],
exclusive_time: l == null ? void 0 : l[he],
measurements: e.measurements,
is_segment: !0
};
}
function Cn(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.69.0/node_modules/@sentry/core/build/esm/utils/data-collection/filtering-snippets.js
var wn = [
"forwarded",
"-ip",
"remote-",
"via",
"-user"
];
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/data-collection/defaultPiiToCollectionOptions.js
function Tn(e) {
return e === !0 ? {
userInfo: !0,
cookies: !0,
httpHeaders: {
request: !0,
response: !0
},
httpBodies: [
"incomingRequest",
"outgoingRequest",
"incomingResponse",
"outgoingResponse"
],
urlQueryParams: !0,
graphQL: {
document: !0,
variables: !0
},
genAI: {
inputs: !0,
outputs: !0
},
databaseQueryData: !0,
stackFrameVariables: !0,
frameContextLines: 7
} : {
userInfo: !1,
cookies: { deny: wn },
httpHeaders: {
request: { deny: wn },
response: { deny: wn }
},
httpBodies: [],
urlQueryParams: { deny: wn },
graphQL: {
document: !0,
variables: !0
},
genAI: {
inputs: !1,
outputs: !1
},
databaseQueryData: !1,
stackFrameVariables: !0,
frameContextLines: 7
};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/data-collection/resolveDataCollectionOptions.js
var En = {
userInfo: !0,
cookies: !0,
httpHeaders: {
request: !0,
response: !0
},
httpBodies: [
"incomingRequest",
"outgoingRequest",
"incomingResponse",
"outgoingResponse"
],
urlQueryParams: !0,
graphQL: {
document: !0,
variables: !0
},
genAI: {
inputs: !0,
outputs: !0
},
databaseQueryData: !0,
stackFrameVariables: !0,
frameContextLines: 5
};
function Dn(e) {
var t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x;
let S = e.dataCollection == null ? Tn(e.sendDefaultPii) : En, C = (t = e.dataCollection) == null ? {} : t;
return {
userInfo: (n = C.userInfo) == null ? S.userInfo : n,
cookies: (r = C.cookies) == null ? S.cookies : r,
httpHeaders: {
request: (i = (a = C.httpHeaders) == null ? void 0 : a.request) == null ? S.httpHeaders.request : i,
response: (o = (s = C.httpHeaders) == null ? void 0 : s.response) == null ? S.httpHeaders.response : o
},
httpBodies: (c = C.httpBodies) == null ? S.httpBodies : c,
urlQueryParams: (l = (u = C.urlQueryParams) == null ? C.queryParams : u) == null ? S.urlQueryParams : l,
graphQL: {
document: (d = (f = C.graphQL) == null ? void 0 : f.document) == null ? S.graphQL.document : d,
variables: (p = (m = C.graphQL) == null ? void 0 : m.variables) == null ? S.graphQL.variables : p
},
genAI: {
inputs: (h = (g = C.genAI) == null ? void 0 : g.inputs) == null ? S.genAI.inputs : h,
outputs: (_ = (v = C.genAI) == null ? void 0 : v.outputs) == null ? S.genAI.outputs : _
},
databaseQueryData: (y = C.databaseQueryData) == null ? S.databaseQueryData : y,
stackFrameVariables: (b = C.stackFrameVariables) == null ? S.stackFrameVariables : b,
frameContextLines: (x = C.frameContextLines) == null ? S.frameContextLines : x
};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/client.js
var On = "Not capturing exception because it's already been captured.", kn = "Discarded session because of missing or non-string release", An = /* @__PURE__ */ Symbol.for("SentryInternalError"), jn = /* @__PURE__ */ Symbol.for("SentryDoNotSendEventError"), Mn = 5e3;
function Nn(e) {
return {
message: e,
[An]: !0
};
}
function Pn(e) {
return {
message: e,
[jn]: !0
};
}
function Fn(e) {
return Me(e) && An in e;
}
function In(e) {
return Me(e) && jn in e;
}
function Ln(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 ? Mn : n;
t > 0 && (s = !0, o = It(setTimeout(() => {
i(e);
}, t)));
}
}), e.on("flush", () => {
i(e);
});
}
var Rn = 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 = pn((t = (n = e.transportOptions) == null ? void 0 : n.bufferSize) == null ? 64 : t), this._dataCollection = Dn(e), e.dsn ? this._dsn = We(e.dsn) : P && A.warn("No DSN provided, client will not send events."), this._dsn) {
let t = Bt(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 && Ln(this, "afterCaptureLog", "flushLogs", Gn, tn), ((a = (o = this._options.enableMetrics) == null ? (s = this._options._experiments) == null ? void 0 : s.enableMetrics : o) == null || a) && Ln(this, "afterCaptureMetric", "flushMetrics", Wn, sn);
}
captureException(e, t, n) {
let r = x();
if (re(e)) return P && A.log(On), 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: x(),
...n
}, a = Re(e) ? e : String(e), o = me(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 = x();
if (t != null && t.originalException && re(t.originalException)) return P && A.log(On), r;
let i = {
event_id: r,
...t
}, a = e.sdkProcessingMetadata || {}, o = a.capturedSpanScope, s = a.capturedSpanIsolationScope, c = zn(e.type);
return this._process(() => this._captureEvent(e, i, o || n, s), c), i.event_id;
}
captureSession(e) {
this.sendSession(e), Ee(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) {
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), qt(this, e, this._integrations), t || Kt(this, [e]);
}
sendEvent(e, t = {}) {
this.emit("beforeSendEvent", e, t);
let n = dn(e, this), r = Mt(e, this._dsn, this._options._metadata, this._options.tunnel);
for (let e of t.attachments || []) r = vt(r, wt(e));
n && (r = vt(r, n)), this.sendEnvelope(r).then((t) => this.emit("afterSendEvent", e, t));
}
sendSession(e) {
let { release: t, environment: n = Fe } = this._options;
if ("aggregates" in e) {
let r = e.attrs || {};
if (!r.release && !t) {
P && A.warn(kn);
return;
}
r.release = r.release || t, r.environment = r.environment || n, e.attrs = r;
} else {
if (!e.release && !t) {
P && A.warn(kn);
return;
}
e.release = e.release || t, e.environment = e.environment || n;
}
this.emit("beforeSendSession", e);
let r = jt(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 && A.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 && A.error("Error while sending envelope:", e), {};
}
return P && A.error("Transport disabled"), {};
}
registerCleanup(e) {}
dispose() {}
_setupIntegrations() {
let { integrations: e } = this._options;
this._integrations = Gt(this, e), Kt(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) && (Ee(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), De(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,
..._(n)
},
...e.contexts
}, e.sdkProcessingMetadata = {
dynamicSamplingContext: be(this, n),
...e.sdkProcessingMetadata
}, e);
});
}
_captureEvent(e, t = {}, n = Ke(), r = T()) {
return P && Hn(e) && A.log(`Captured error event \`${xn(e)[0] || "<unknown>"}\``), this._processEvent(e, t, n, r).then((e) => e.event_id, (e) => {
P && (In(e) ? A.log(e.message) : Fn(e) ? A.warn(e.message) : A.warn(e));
});
}
_processEvent(e, t, n, r) {
let i = this.getOptions(), { sampleRate: a } = i, o = Un(e), s = Hn(e), c = `before send for type \`${e.type || "error"}\``, l = a === void 0 ? void 0 : dt(a);
if (s && typeof l == "number" && ce() > l) return this.recordDroppedEvent("sample_rate", "error"), He(Pn(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));
let u = zn(e.type);
return this._prepareEvent(e, t, n, r).then((e) => {
var n;
if (e === null) throw this.recordDroppedEvent("event_processor", u), Pn("An event processor returned `null`, will not send event.");
return ((n = t.data) == null ? void 0 : n.__sentry__) === !0 ? e : Bn(Vn(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 Pn(`${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 In(e) || Fn(e) ? e : (this.captureException(e, {
mechanism: {
handled: !1,
type: "internal"
},
data: { __sentry__: !0 },
originalException: e
}), Nn(`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 === fn && 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 && A.log("Flushing outcomes...");
let e = this._clearOutcomes();
if (e.length === 0) {
P && A.log("No outcomes to send");
return;
}
if (!this._dsn) {
P && A.log("No dsn provided, will not send outcomes");
return;
}
P && A.log("Sending outcomes:", e);
let t = bn(e, this._options.tunnel && D(this._dsn));
this.sendEnvelope(t);
}
};
function zn(e) {
return e === "replay_event" ? "replay" : e || "error";
}
function Bn(e, t) {
let n = `${t} must return \`null\` or a valid event.`;
if (_e(e)) return e.then((e) => {
if (!Te(e) && e !== null) throw Nn(n);
return e;
}, (e) => {
throw Nn(`${t} rejected with ${e}`);
});
if (!Te(e) && e !== null) throw Nn(n);
return e;
}
function Vn(e, t, n, r) {
let { beforeSend: i, beforeSendTransaction: a, ignoreSpans: o } = t, s = !_t(t.beforeSendSpan) && t.beforeSendSpan, c = n;
if (Hn(c) && i) return i(c, r);
if (Un(c)) {
if (s || o) {
let t = Sn(c);
if (o != null && o.length && pt({
description: t.description,
op: t.op,
attributes: t.data
}, o)) return null;
if (s) {
let e = s(t);
e ? c = ne(n, Cn(e)) : ke();
}
if (c.spans) {
let t = [], n = c.spans;
for (let e of n) {
if (o != null && o.length && pt({
description: e.description,
op: e.op,
attributes: e.data
}, o)) {
ht(n, e);
continue;
}
if (s) {
let n = s(e);
n ? t.push(n) : (ke(), 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 Hn(e) {
return e.type === void 0;
}
function Un(e) {
return e.type === "transaction";
}
function Wn(e) {
let t = 0;
return e.name && (t += e.name.length * 2), t += 8, t + Kn(e.attributes);
}
function Gn(e) {
let t = 0;
return e.message && (t += e.message.length * 2), t + Kn(e.attributes);
}
function Kn(e) {
if (!e) return 0;
let t = 0;
return Object.values(e).forEach((e) => {
Array.isArray(e) ? t += e.length * qn(e[0]) : me(e) ? t += qn(e) : t += 100;
}), t;
}
function qn(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.69.0/node_modules/@sentry/core/build/esm/sdk.js
function Jn(e, t) {
t.debug === !0 && (P ? A.enable() : Ae(() => {
console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");
})), Ke().update(t.initialScope);
let n = new e(t);
return Yn(n), n.init(), n;
}
function Yn(e) {
Ke().setClient(e);
}
var Xn = 5e3, Zn = 36e5;
function Qn(e) {
function t(...e) {
P && A.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 = Xn, o;
function s(e, t, r) {
return bt(e, ["client_report"]) ? !1 : !n.shouldStore || n.shouldStore(e, t, r);
}
function c(e) {
o && clearTimeout(o), o = It(setTimeout(async () => {
o = void 0;
let e = await i.shift();
e && (t("Attempting to send previously queued event"), e[0].sent_at = new Date(E()).toISOString(), u(e, !0).catch((e) => {
t("Failed to retry sending", e);
}));
}, e));
}
function l() {
o || (c(a), a = Math.min(a * 2, Zn));
}
async function u(e, o = !1) {
if (!o && bt(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 = hn(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 = Xn, 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 = Xn, c(100)), r.flush(e))
};
};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/url.js
function $n(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 er(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.69.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.69.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: Ye
})), i.version = Ye);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/breadcrumbs.js
var rr = 100;
function H(e, t) {
let n = h(), r = T();
if (!n) return;
let { beforeBreadcrumb: i = null, maxBreadcrumbs: a = rr } = n.getOptions();
if (a <= 0) return;
let o = {
timestamp: p(),
...e
}, s = i ? Ae(() => 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.69.0/node_modules/@sentry/core/build/esm/integrations/functiontostring.js
var ir = "FunctionToString", ar = /* @__PURE__ */ new WeakMap(), or = V((() => ({
name: ir,
setupOnce() {
let e = Function.prototype.toString;
try {
Function.prototype.toString = function(...t) {
var n;
let r = S(this), i;
try {
ar.has(h()) && r !== void 0 && (i = r);
} catch {}
return e.apply((n = i) == null ? this : n, t);
};
} catch {}
},
setup(e) {
ar.set(e, !0);
}
}))), sr = [
/^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$/
], cr = "EventFilters", lr = V((e = {}) => {
let t;
return {
name: cr,
setup(n) {
t = dr(e, n.getOptions());
},
processEvent(n, r, i) {
return t || (t = dr(e, i.getOptions())), fr(n, t) ? null : n;
}
};
}), ur = V(((e = {}) => ({
...lr(e),
name: "InboundFilters"
})));
function dr(e = {}, t = {}) {
return {
allowUrls: [...e.allowUrls || [], ...t.allowUrls || []],
denyUrls: [...e.denyUrls || [], ...t.denyUrls || []],
ignoreErrors: [
...e.ignoreErrors || [],
...t.ignoreErrors || [],
...e.disableErrorDefaults ? [] : sr
],
ignoreTransactions: [...e.ignoreTransactions || [], ...t.ignoreTransactions || []]
};
}
function fr(e, t) {
if (!e.type) {
if (pr(e, t.ignoreErrors)) return P && A.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${v(e)}`), !0;
if (yr(e)) return P && A.warn(`Event dropped due to not having an error message, error type or stacktrace.
Event: ${v(e)}`), !0;
if (hr(e, t.denyUrls)) return P && A.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${v(e)}.
Url: ${vr(e)}`), !0;
if (!gr(e, t.allowUrls)) return P && A.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${v(e)}.
Url: ${vr(e)}`), !0;
} else if (e.type === "transaction" && mr(e, t.ignoreTransactions)) return P && A.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${v(e)}`), !0;
return !1;
}
function pr(e, t) {
return t != null && t.length ? xn(e).some((e) => F(e, t)) : !1;
}
function mr(e, t) {
if (!(t != null && t.length)) return !1;
let n = e.transaction;
return n ? F(n, t) : !1;
}
function hr(e, t) {
if (!(t != null && t.length)) return !1;
let n = vr(e);
return n ? F(n, t) : !1;
}
function gr(e, t) {
if (!(t != null && t.length)) return !0;
let n = vr(e);
return !n || F(n, t);
}
function _r(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 vr(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 ? _r(a) : null;
} catch {
return P && A.error(`Cannot extract url for event ${v(e)}`), null;
}
}
function yr(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.69.0/node_modules/@sentry/core/build/esm/utils/aggregate-errors.js
function br(e, t, n, r, i, a) {
var o;
if (!((o = i.exception) != null && o.values) || !a || !Ve(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 = xr(e, t, r, a.originalException, n, i.exception.values, s, 0));
}
function xr(e, t, n, r, i, a, o, s) {
if (a.length >= n + 1) return a;
let c = [...a];
if (Ve(r[i], Error)) {
Cr(o, s, r);
let a = e(t, r[i]), l = c.length;
wr(a, i, l, s), c = xr(e, t, n, r[i], i, [a, ...c], a, l);
}
return Sr(r) && r.errors.forEach((a, l) => {
if (Ve(a, Error)) {
Cr(o, s, r);
let u = e(t, a), d = c.length;
wr(u, `errors[${l}]`, d, s), c = xr(e, t, n, a, i, [u, ...c], u, d);
}
}), c;
}
function Sr(e) {
return Array.isArray(e.errors);
}
function Cr(e, t, n) {
e.mechanism = {
handled: !0,
type: "auto.core.linked_errors",
...Sr(n) && { is_exception_group: !0 },
...e.mechanism,
exception_id: t
};
}
function wr(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.69.0/node_modules/@sentry/core/build/esm/utils/eventbuilder.js
function Tr(e) {
return ie(e) && "__sentry_fetch_url_host__" in e && typeof e.__sentry_fetch_url_host__ == "string";
}
function Er(e) {
return Tr(e) ? `${e.message} (${e.__sentry_fetch_url_host__})` : e.message;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/instrument/console.js
var Dr = /* @__PURE__ */ new Set([]);
function Or(e) {
let t = "console", n = L(t, e);
return R(t, Ar), n;
}
var kr = /* @__PURE__ */ new Set();
function Ar() {
"console" in O && Ie.forEach(function(e) {
kr.has(e) || !(e in O.console) || (kr.add(e), M(O.console, e, function(t) {
return Ce[e] = t, function(...t) {
let n = t[0], r = Ce[e], i = Dr.size && typeof n == "string" && F(n, Dr);
i || z("console", {
args: t,
level: e
}), (!i || P && A.isEnabled()) && (r == null || r.apply(O.console, t));
};
}));
});
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.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.69.0/node_modules/@sentry/core/build/esm/integrations/dedupe.js
var Mr = "Dedupe", Nr = V((() => {
let e;
return {
name: Mr,
processEvent(t) {
if (t.type) return t;
try {
if (Pr(t, e)) return P && A.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 = Ue(e), r = Ue(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;