@cloudflare/vite-plugin 0.0.0-35710e590 → 0.0.0-35c1dc321

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -88,24 +88,24 @@ var Un = 80;
88
88
  function Dt(t, e = {}) {
89
89
  if (!t) return "<unknown>";
90
90
  try {
91
- let n = t, r = 5, s = [], i = 0, o = 0, a = " > ", u = a.length, c, f = Array.isArray(e) ? e : e.keyAttrs, d = !Array.isArray(e) && e.maxStringLength || Un;
92
- for (; n && i++ < r && (c = Gn(n, f), !(c === "html" || i > 1 && o + s.length * u + c.length >= d)); ) s.push(c), o += c.length, n = n.parentNode;
91
+ let n = t, r = 5, s = [], i = 0, o = 0, a = " > ", c = a.length, u, f = Array.isArray(e) ? e : e.keyAttrs, d = !Array.isArray(e) && e.maxStringLength || Un;
92
+ for (; n && i++ < r && (u = Gn(n, f), !(u === "html" || i > 1 && o + s.length * c + u.length >= d)); ) s.push(u), o += u.length, n = n.parentNode;
93
93
  return s.reverse().join(a);
94
94
  } catch {
95
95
  return "<unknown>";
96
96
  }
97
97
  }
98
98
  function Gn(t, e) {
99
- let n = t, r = [], s, i, o, a, u;
99
+ let n = t, r = [], s, i, o, a, c;
100
100
  if (!n || !n.tagName) return "";
101
101
  r.push(n.tagName.toLowerCase());
102
- let c = e && e.length ? e.filter((d) => n.getAttribute(d)).map((d) => [d, n.getAttribute(d)]) : null;
103
- if (c && c.length) c.forEach((d) => {
102
+ let u = e && e.length ? e.filter((d) => n.getAttribute(d)).map((d) => [d, n.getAttribute(d)]) : null;
103
+ if (u && u.length) u.forEach((d) => {
104
104
  r.push(`[${d[0]}="${d[1]}"]`);
105
105
  });
106
- else if (n.id && r.push(`#${n.id}`), s = n.className, s && j(s)) for (i = s.split(/\s+/), u = 0; u < i.length; u++) r.push(`.${i[u]}`);
106
+ else if (n.id && r.push(`#${n.id}`), s = n.className, s && j(s)) for (i = s.split(/\s+/), c = 0; c < i.length; c++) r.push(`.${i[c]}`);
107
107
  let f = ["aria-label", "type", "name", "title", "alt"];
108
- for (u = 0; u < f.length; u++) o = f[u], a = n.getAttribute(o), a && r.push(`[${o}="${a}"]`);
108
+ for (c = 0; c < f.length; c++) o = f[c], a = n.getAttribute(o), a && r.push(`[${o}="${a}"]`);
109
109
  return r.join("");
110
110
  }
111
111
  var Fn = "Sentry Logger ";
@@ -149,8 +149,8 @@ function Yn(t) {
149
149
  return t === "http" || t === "https";
150
150
  }
151
151
  function C(t, e = false) {
152
- let { host: n, path: r, pass: s, port: i, projectId: o, protocol: a, publicKey: u } = t;
153
- return `${a}://${u}${e && s ? `:${s}` : ""}@${n}${i ? `:${i}` : ""}/${r && `${r}/`}${o}`;
152
+ let { host: n, path: r, pass: s, port: i, projectId: o, protocol: a, publicKey: c } = t;
153
+ return `${a}://${c}${e && s ? `:${s}` : ""}@${n}${i ? `:${i}` : ""}/${r && `${r}/`}${o}`;
154
154
  }
155
155
  function kt(t) {
156
156
  let e = Ln.exec(t);
@@ -158,12 +158,12 @@ function kt(t) {
158
158
  console.error(`Invalid Sentry Dsn: ${t}`);
159
159
  return;
160
160
  }
161
- let [n, r, s = "", i, o = "", a] = e.slice(1), u = "", c = a, f = c.split("/");
162
- if (f.length > 1 && (u = f.slice(0, -1).join("/"), c = f.pop()), c) {
163
- let d = c.match(/^\d+/);
164
- d && (c = d[0]);
161
+ let [n, r, s = "", i, o = "", a] = e.slice(1), c = "", u = a, f = u.split("/");
162
+ if (f.length > 1 && (c = f.slice(0, -1).join("/"), u = f.pop()), u) {
163
+ let d = u.match(/^\d+/);
164
+ d && (u = d[0]);
165
165
  }
166
- return Ot({ host: i, pass: s, path: u, projectId: c, port: o, protocol: n, publicKey: r });
166
+ return Ot({ host: i, pass: s, path: c, projectId: u, port: o, protocol: n, publicKey: r });
167
167
  }
168
168
  function Ot(t) {
169
169
  return { protocol: t.protocol, publicKey: t.publicKey || "", pass: t.pass || "", host: t.host, port: t.port || "", path: t.path || "", projectId: t.projectId };
@@ -265,7 +265,7 @@ function Ct(t) {
265
265
  return (r) => {
266
266
  let s = r.match(n);
267
267
  if (s) {
268
- let i, o, a, u, c;
268
+ let i, o, a, c, u;
269
269
  if (s[1]) {
270
270
  a = s[1];
271
271
  let l = a.lastIndexOf(".");
@@ -274,9 +274,9 @@ function Ct(t) {
274
274
  let _ = i.indexOf(".Module");
275
275
  _ > 0 && (a = a.slice(_ + 1), i = i.slice(0, _));
276
276
  }
277
- u = void 0;
277
+ c = void 0;
278
278
  }
279
- o && (u = i, c = o), o === "<anonymous>" && (c = void 0, a = void 0), a === void 0 && (c = c || "<anonymous>", a = u ? `${u}.${c}` : c);
279
+ o && (c = i, u = o), o === "<anonymous>" && (u = void 0, a = void 0), a === void 0 && (u = u || "<anonymous>", a = c ? `${c}.${u}` : u);
280
280
  let f = s[2] && s[2].startsWith("file://") ? s[2].slice(7) : s[2], d = s[5] === "native";
281
281
  return !f && s[5] && !d && (f = s[5]), { filename: f, module: t ? t(f) : void 0, function: a, lineno: parseInt(s[3], 10) || void 0, colno: parseInt(s[4], 10) || void 0, in_app: jn(f, d) };
282
282
  }
@@ -294,10 +294,10 @@ function Ee(...t) {
294
294
  for (let o = r; o < i.length; o++) {
295
295
  let a = i[o];
296
296
  if (a.length > 1024) continue;
297
- let u = Pt.test(a) ? a.replace(Pt, "$1") : a;
298
- if (!u.match(/\S*Error: /)) {
299
- for (let c of e) {
300
- let f = c(u);
297
+ let c = Pt.test(a) ? a.replace(Pt, "$1") : a;
298
+ if (!c.match(/\S*Error: /)) {
299
+ for (let u of e) {
300
+ let f = u(c);
301
301
  if (f) {
302
302
  s.push(f);
303
303
  break;
@@ -309,7 +309,7 @@ function Ee(...t) {
309
309
  return Gt(s);
310
310
  };
311
311
  }
312
- function Ke(t) {
312
+ function Ve(t) {
313
313
  return Array.isArray(t) ? Ee(...t) : t;
314
314
  }
315
315
  function Gt(t) {
@@ -317,12 +317,12 @@ function Gt(t) {
317
317
  let e = Array.from(t);
318
318
  return /sentryWrapped/.test(e[e.length - 1].function || "") && e.pop(), e.reverse(), Mt.test(e[e.length - 1].function || "") && (e.pop(), Mt.test(e[e.length - 1].function || "") && e.pop()), e.slice(0, Ut).map((n) => ({ ...n, filename: n.filename || e[e.length - 1].filename, function: n.function || "?" }));
319
319
  }
320
- var Ve = "<anonymous>";
320
+ var Ke = "<anonymous>";
321
321
  function ne(t) {
322
322
  try {
323
- return !t || typeof t != "function" ? Ve : t.name || Ve;
323
+ return !t || typeof t != "function" ? Ke : t.name || Ke;
324
324
  } catch {
325
- return Ve;
325
+ return Ke;
326
326
  }
327
327
  }
328
328
  function Je(t) {
@@ -376,7 +376,7 @@ function qn(t) {
376
376
  zn();
377
377
  break;
378
378
  case "history":
379
- Vn();
379
+ Kn();
380
380
  break;
381
381
  case "error":
382
382
  Zn();
@@ -456,13 +456,13 @@ function Wt() {
456
456
  }
457
457
  };
458
458
  return "onreadystatechange" in this && typeof this.onreadystatechange == "function" ? I(this, "onreadystatechange", function(a) {
459
- return function(...u) {
460
- return o(), a.apply(this, u);
459
+ return function(...c) {
460
+ return o(), a.apply(this, c);
461
461
  };
462
462
  }) : this.addEventListener("readystatechange", o), I(this, "setRequestHeader", function(a) {
463
- return function(...u) {
464
- let [c, f] = u, d = this[re];
465
- return d && (d.request_headers[c.toLowerCase()] = f), a.apply(this, u);
463
+ return function(...c) {
464
+ let [u, f] = c, d = this[re];
465
+ return d && (d.request_headers[u.toLowerCase()] = f), a.apply(this, c);
466
466
  };
467
467
  }), e.apply(this, n);
468
468
  };
@@ -474,7 +474,7 @@ function Wt() {
474
474
  });
475
475
  }
476
476
  var ye;
477
- function Vn() {
477
+ function Kn() {
478
478
  if (!Lt()) return;
479
479
  let t = E.onpopstate;
480
480
  E.onpopstate = function(...n) {
@@ -496,7 +496,7 @@ function Vn() {
496
496
  }
497
497
  I(E.history, "pushState", e), I(E.history, "replaceState", e);
498
498
  }
499
- var Kn = 1e3;
499
+ var Vn = 1e3;
500
500
  var jt;
501
501
  var Te;
502
502
  function Jn(t, e) {
@@ -524,7 +524,7 @@ function Ht(t, e = false) {
524
524
  let r = n.type === "keypress" ? "input" : n.type;
525
525
  (Te === void 0 || !Jn(Te, n)) && (t({ event: n, name: r, global: e }), Te = n), clearTimeout(jt), jt = E.setTimeout(() => {
526
526
  Te = void 0;
527
- }, Kn);
527
+ }, Vn);
528
528
  };
529
529
  }
530
530
  function zt() {
@@ -535,7 +535,7 @@ function zt() {
535
535
  !r || !r.hasOwnProperty || !r.hasOwnProperty("addEventListener") || (I(r, "addEventListener", function(s) {
536
536
  return function(i, o, a) {
537
537
  if (i === "click" || i == "keypress") try {
538
- let u = this, c = u.__sentry_instrumentation_handlers__ = u.__sentry_instrumentation_handlers__ || {}, f = c[i] = c[i] || { refCount: 0 };
538
+ let c = this, u = c.__sentry_instrumentation_handlers__ = c.__sentry_instrumentation_handlers__ || {}, f = u[i] = u[i] || { refCount: 0 };
539
539
  if (!f.handler) {
540
540
  let d = Ht(t);
541
541
  f.handler = d, s.call(this, i, d, a);
@@ -548,8 +548,8 @@ function zt() {
548
548
  }), I(r, "removeEventListener", function(s) {
549
549
  return function(i, o, a) {
550
550
  if (i === "click" || i == "keypress") try {
551
- let u = this, c = u.__sentry_instrumentation_handlers__ || {}, f = c[i];
552
- f && (f.refCount--, f.refCount <= 0 && (s.call(this, i, f.handler, a), f.handler = void 0, delete c[i]), Object.keys(c).length === 0 && delete u.__sentry_instrumentation_handlers__);
551
+ let c = this, u = c.__sentry_instrumentation_handlers__ || {}, f = u[i];
552
+ f && (f.refCount--, f.refCount <= 0 && (s.call(this, i, f.handler, a), f.handler = void 0, delete u[i]), Object.keys(u).length === 0 && delete c.__sentry_instrumentation_handlers__);
553
553
  } catch {
554
554
  }
555
555
  return s.call(this, i, o, a);
@@ -569,11 +569,11 @@ function Qn() {
569
569
  return N("unhandledrejection", t), Re && !Re.__SENTRY_LOADER__ ? Re.apply(this, arguments) : true;
570
570
  }, E.onunhandledrejection.__SENTRY_INSTRUMENTED__ = true;
571
571
  }
572
- function Vt() {
572
+ function Kt() {
573
573
  return typeof __SENTRY_BROWSER_BUNDLE__ < "u" && !!__SENTRY_BROWSER_BUNDLE__;
574
574
  }
575
- function Kt() {
576
- return !Vt() && Object.prototype.toString.call(typeof process < "u" ? process : 0) === "[object process]";
575
+ function Vt() {
576
+ return !Kt() && Object.prototype.toString.call(typeof process < "u" ? process : 0) === "[object process]";
577
577
  }
578
578
  function Jt(t, e) {
579
579
  return t.require(e);
@@ -647,13 +647,13 @@ function Ne(t, e, n = 1 / 0, r = 1 / 0, s = Xt()) {
647
647
  let a = tr(t, e);
648
648
  if (!a.startsWith("[object ")) return a;
649
649
  if (e.__sentry_skip_normalization__) return e;
650
- let u = typeof e.__sentry_override_normalization_depth__ == "number" ? e.__sentry_override_normalization_depth__ : n;
651
- if (u === 0) return a.replace("object ", "");
650
+ let c = typeof e.__sentry_override_normalization_depth__ == "number" ? e.__sentry_override_normalization_depth__ : n;
651
+ if (c === 0) return a.replace("object ", "");
652
652
  if (i(e)) return "[Circular ~]";
653
- let c = e;
654
- if (c && typeof c.toJSON == "function") try {
655
- let _ = c.toJSON();
656
- return Ne("", _, u - 1, r, s);
653
+ let u = e;
654
+ if (u && typeof u.toJSON == "function") try {
655
+ let _ = u.toJSON();
656
+ return Ne("", _, c - 1, r, s);
657
657
  } catch {
658
658
  }
659
659
  let f = Array.isArray(e) ? [] : {}, d = 0, l = ge(e);
@@ -664,7 +664,7 @@ function Ne(t, e, n = 1 / 0, r = 1 / 0, s = Xt()) {
664
664
  break;
665
665
  }
666
666
  let M = l[_];
667
- f[_] = Ne(_, M, u - 1, r, s), d++;
667
+ f[_] = Ne(_, M, c - 1, r, s), d++;
668
668
  }
669
669
  return o(e), f;
670
670
  }
@@ -817,16 +817,16 @@ function et(t) {
817
817
  })), a;
818
818
  }
819
819
  function i(o) {
820
- return new S((a, u) => {
821
- let c = e.length;
822
- if (!c) return a(true);
820
+ return new S((a, c) => {
821
+ let u = e.length;
822
+ if (!u) return a(true);
823
823
  let f = setTimeout(() => {
824
824
  o && o > 0 && a(false);
825
825
  }, o);
826
826
  e.forEach((d) => {
827
827
  T(d).then(() => {
828
- --c || (clearTimeout(f), a(true));
829
- }, u);
828
+ --u || (clearTimeout(f), a(true));
829
+ }, c);
830
830
  });
831
831
  });
832
832
  }
@@ -847,7 +847,7 @@ function cr() {
847
847
  return;
848
848
  }
849
849
  }
850
- var tt = Kt() ? cr() : ar();
850
+ var tt = Vt() ? cr() : ar();
851
851
  var Zt = tt === void 0 ? nt : { nowSeconds: () => (tt.timeOrigin + tt.now()) / 1e3 };
852
852
  var B = nt.nowSeconds.bind(nt);
853
853
  var L = Zt.nowSeconds.bind(Zt);
@@ -858,8 +858,8 @@ var ur = (() => {
858
858
  ce = "none";
859
859
  return;
860
860
  }
861
- let e = 3600 * 1e3, n = t.now(), r = Date.now(), s = t.timeOrigin ? Math.abs(t.timeOrigin + n - r) : e, i = s < e, o = t.timing && t.timing.navigationStart, u = typeof o == "number" ? Math.abs(o + n - r) : e, c = u < e;
862
- return i || c ? s <= u ? (ce = "timeOrigin", t.timeOrigin) : (ce = "navigationStart", o) : (ce = "dateNow", r);
861
+ let e = 3600 * 1e3, n = t.now(), r = Date.now(), s = t.timeOrigin ? Math.abs(t.timeOrigin + n - r) : e, i = s < e, o = t.timing && t.timing.navigationStart, c = typeof o == "number" ? Math.abs(o + n - r) : e, u = c < e;
862
+ return i || u ? s <= c ? (ce = "timeOrigin", t.timeOrigin) : (ce = "navigationStart", o) : (ce = "dateNow", r);
863
863
  })();
864
864
  var dr = new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");
865
865
  function rt(t = h(), e = h().substring(16), n) {
@@ -890,18 +890,18 @@ function ot(t, e) {
890
890
  typeof s == "string" ? s = typeof o == "string" ? s + o : [st(s, e), o] : s.push(typeof o == "string" ? st(o, e) : o);
891
891
  }
892
892
  for (let o of r) {
893
- let [a, u] = o;
893
+ let [a, c] = o;
894
894
  if (i(`
895
895
  ${JSON.stringify(a)}
896
- `), typeof u == "string" || u instanceof Uint8Array) i(u);
896
+ `), typeof c == "string" || c instanceof Uint8Array) i(c);
897
897
  else {
898
- let c;
898
+ let u;
899
899
  try {
900
- c = JSON.stringify(u);
900
+ u = JSON.stringify(c);
901
901
  } catch {
902
- c = JSON.stringify(D(u));
902
+ u = JSON.stringify(D(c));
903
903
  }
904
- i(c);
904
+ i(u);
905
905
  }
906
906
  }
907
907
  return typeof s == "string" ? s : fr(s);
@@ -943,9 +943,9 @@ function ut(t, e, n = Date.now()) {
943
943
  function dt(t, { statusCode: e, headers: n }, r = Date.now()) {
944
944
  let s = { ...t }, i = n && n["x-sentry-rate-limits"], o = n && n["retry-after"];
945
945
  if (i) for (let a of i.trim().split(",")) {
946
- let [u, c] = a.split(":", 2), f = parseInt(u, 10), d = (isNaN(f) ? 60 : f) * 1e3;
947
- if (!c) s.all = r + d;
948
- else for (let l of c.split(";")) s[l] = r + d;
946
+ let [c, u] = a.split(":", 2), f = parseInt(c, 10), d = (isNaN(f) ? 60 : f) * 1e3;
947
+ if (!u) s.all = r + d;
948
+ else for (let l of u.split(";")) s[l] = r + d;
949
949
  }
950
950
  else o ? s.all = r + en(o, r) : e === 429 && (s.all = r + 60 * 1e3);
951
951
  return s;
@@ -967,8 +967,8 @@ function pt(t, e, n, r) {
967
967
  let s = n, o = r && r.data && r.data.mechanism || { handled: true, type: "generic" };
968
968
  if (!U(n)) {
969
969
  if (R(n)) {
970
- let u = t(), c = u.getClient(), f = c && c.getOptions().normalizeDepth;
971
- u.configureScope((l) => {
970
+ let c = t(), u = c.getClient(), f = u && u.getOptions().normalizeDepth;
971
+ c.configureScope((l) => {
972
972
  l.setExtra("__serialized__", W(n, f));
973
973
  });
974
974
  let d = lr(n);
@@ -994,13 +994,13 @@ function ue() {
994
994
  function rn(t) {
995
995
  ue().push(t);
996
996
  }
997
- function V(t, e, n, r = 0) {
997
+ function K(t, e, n, r = 0) {
998
998
  return new S((s, i) => {
999
999
  let o = t[r];
1000
1000
  if (e === null || typeof o != "function") s(e);
1001
1001
  else {
1002
1002
  let a = o({ ...e }, n);
1003
- (typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && o.id && a === null && p.log(`Event processor "${o.id}" dropped event`), G(a) ? a.then((u) => V(t, u, n, r + 1).then(s)).then(null, i) : V(t, a, n, r + 1).then(s).then(null, i);
1003
+ (typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && o.id && a === null && p.log(`Event processor "${o.id}" dropped event`), G(a) ? a.then((c) => K(t, c, n, r + 1).then(s)).then(null, i) : K(t, a, n, r + 1).then(s).then(null, i);
1004
1004
  }
1005
1005
  });
1006
1006
  }
@@ -1135,7 +1135,7 @@ var k = class {
1135
1135
  }
1136
1136
  this._applyFingerprint(e);
1137
1137
  let s = this._getBreadcrumbs(), i = [...e.breadcrumbs || [], ...s];
1138
- return e.breadcrumbs = i.length > 0 ? i : void 0, e.sdkProcessingMetadata = { ...e.sdkProcessingMetadata, ...this._sdkProcessingMetadata, propagationContext: this._propagationContext }, V([...r || [], ...ue(), ...this._eventProcessors], e, n);
1138
+ return e.breadcrumbs = i.length > 0 ? i : void 0, e.sdkProcessingMetadata = { ...e.sdkProcessingMetadata, ...this._sdkProcessingMetadata, propagationContext: this._propagationContext }, K([...r || [], ...ue(), ...this._eventProcessors], e, n);
1139
1139
  }
1140
1140
  setSDKProcessingMetadata(e) {
1141
1141
  return this._sdkProcessingMetadata = { ...this._sdkProcessingMetadata, ...e }, this;
@@ -1227,8 +1227,8 @@ var Y = class {
1227
1227
  if (!s) return;
1228
1228
  let { beforeBreadcrumb: i = null, maxBreadcrumbs: o = hr } = s.getOptions && s.getOptions() || {};
1229
1229
  if (o <= 0) return;
1230
- let u = { timestamp: B(), ...e }, c = i ? _e(() => i(u, n)) : u;
1231
- c !== null && (s.emit && s.emit("beforeAddBreadcrumb", c, n), r.addBreadcrumb(c, o));
1230
+ let c = { timestamp: B(), ...e }, u = i ? _e(() => i(c, n)) : c;
1231
+ u !== null && (s.emit && s.emit("beforeAddBreadcrumb", u, n), r.addBreadcrumb(u, o));
1232
1232
  }
1233
1233
  setUser(e) {
1234
1234
  this.getScope().setUser(e);
@@ -1292,8 +1292,8 @@ Sentry.init({...});
1292
1292
  r && on(r), this._sendSessionUpdate(), n.setSession();
1293
1293
  }
1294
1294
  startSession(e) {
1295
- let { scope: n, client: r } = this.getStackTop(), { release: s, environment: i = z } = r && r.getOptions() || {}, { userAgent: o } = m.navigator || {}, a = sn({ release: s, environment: i, user: n.getUser(), ...o && { userAgent: o }, ...e }), u = n.getSession && n.getSession();
1296
- return u && u.status === "ok" && w(u, { status: "exited" }), this.endSession(), n.setSession(a), a;
1295
+ let { scope: n, client: r } = this.getStackTop(), { release: s, environment: i = z } = r && r.getOptions() || {}, { userAgent: o } = m.navigator || {}, a = sn({ release: s, environment: i, user: n.getUser(), ...o && { userAgent: o }, ...e }), c = n.getSession && n.getSession();
1296
+ return c && c.status === "ok" && w(c, { status: "exited" }), this.endSession(), n.setSession(a), a;
1297
1297
  }
1298
1298
  shouldSendDefaultPii() {
1299
1299
  let e = this.getClient(), n = e && e.getOptions();
@@ -1365,7 +1365,7 @@ var we = class {
1365
1365
  this.spans.length > this._maxlen ? e.spanRecorder = void 0 : this.spans.push(e);
1366
1366
  }
1367
1367
  };
1368
- var K = class {
1368
+ var V = class {
1369
1369
  constructor(e = {}) {
1370
1370
  this.traceId = e.traceId || h(), this.spanId = e.spanId || h().substring(16), this.startTimestamp = e.startTimestamp || L(), this.tags = e.tags || {}, this.data = e.data || {}, this.instrumenter = e.instrumenter || "sentry", this.origin = e.origin || "manual", e.parentSpanId && (this.parentSpanId = e.parentSpanId), "sampled" in e && (this.sampled = e.sampled), e.op && (this.op = e.op), e.description && (this.description = e.description), e.name && (this.description = e.name), e.status && (this.status = e.status), e.endTimestamp && (this.endTimestamp = e.endTimestamp);
1371
1371
  }
@@ -1376,7 +1376,7 @@ var K = class {
1376
1376
  this.setName(e);
1377
1377
  }
1378
1378
  startChild(e) {
1379
- let n = new K({ ...e, parentSpanId: this.spanId, sampled: this.sampled, traceId: this.traceId });
1379
+ let n = new V({ ...e, parentSpanId: this.spanId, sampled: this.sampled, traceId: this.traceId });
1380
1380
  if (n.spanRecorder = this.spanRecorder, n.spanRecorder && n.spanRecorder.add(n), n.transaction = this.transaction, (typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && n.transaction) {
1381
1381
  let r = e && e.op || "< unknown op >", s = n.transaction.name || "< unknown name >", i = n.transaction.spanId, o = `[Tracing] Starting '${r}' span on transaction '${s}' (${i}).`;
1382
1382
  n.transaction.metadata.spanMetadata[n.spanId] = { logMessage: o }, p.log(o);
@@ -1460,7 +1460,7 @@ function J(t, e, n) {
1460
1460
  let r = e.getOptions(), { publicKey: s } = e.getDsn() || {}, { segment: i } = n && n.getUser() || {}, o = g({ environment: r.environment || z, release: r.release, user_segment: i, public_key: s, trace_id: t });
1461
1461
  return e.emit && e.emit("createDsc", o), o;
1462
1462
  }
1463
- var ve = class extends K {
1463
+ var ve = class extends V {
1464
1464
  constructor(e, n) {
1465
1465
  super(e), delete this.description, this._measurements = {}, this._contexts = {}, this._hub = n || b(), this._name = e.name || "", this.metadata = { source: "custom", ...e.metadata, spanMetadata: {} }, this._trimEnd = e.trimEnd, this.transaction = this;
1466
1466
  let r = this.metadata.dynamicSamplingContext;
@@ -1519,7 +1519,7 @@ var ve = class extends K {
1519
1519
  return;
1520
1520
  }
1521
1521
  let r = this.spanRecorder ? this.spanRecorder.spans.filter((a) => a !== this && a.endTimestamp) : [];
1522
- this._trimEnd && r.length > 0 && (this.endTimestamp = r.reduce((a, u) => a.endTimestamp && u.endTimestamp ? a.endTimestamp > u.endTimestamp ? a : u : a).endTimestamp);
1522
+ this._trimEnd && r.length > 0 && (this.endTimestamp = r.reduce((a, c) => a.endTimestamp && c.endTimestamp ? a.endTimestamp > c.endTimestamp ? a : c : a).endTimestamp);
1523
1523
  let s = this.metadata, i = { contexts: { ...this._contexts, trace: this.getTraceContext() }, spans: r, start_timestamp: this.startTimestamp, tags: this.tags, timestamp: this.endTimestamp, transaction: this.name, type: "transaction", sdkProcessingMetadata: { ...s, dynamicSamplingContext: this.getDynamicSamplingContext() }, ...s.source && { transaction_info: { source: s.source } } };
1524
1524
  return Object.keys(this._measurements).length > 0 && ((typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && p.log("[Measurements] Adding measurements to transaction", JSON.stringify(this._measurements, void 0, 2)), i.measurements = this._measurements), (typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && p.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`), i;
1525
1525
  }
@@ -1659,18 +1659,18 @@ function Or(t, e) {
1659
1659
  return -1;
1660
1660
  }
1661
1661
  function Tn(t, e, n, r, s) {
1662
- let { normalizeDepth: i = 3, normalizeMaxBreadth: o = 1e3 } = t, a = { ...e, event_id: e.event_id || n.event_id || h(), timestamp: e.timestamp || B() }, u = n.integrations || t.integrations.map((l) => l.name);
1663
- Ar(a, t), Cr(a, u), e.type === void 0 && wr(a, t.stackParser);
1664
- let c = r;
1665
- n.captureContext && (c = k.clone(c).update(n.captureContext));
1662
+ let { normalizeDepth: i = 3, normalizeMaxBreadth: o = 1e3 } = t, a = { ...e, event_id: e.event_id || n.event_id || h(), timestamp: e.timestamp || B() }, c = n.integrations || t.integrations.map((l) => l.name);
1663
+ Ar(a, t), Cr(a, c), e.type === void 0 && wr(a, t.stackParser);
1664
+ let u = r;
1665
+ n.captureContext && (u = k.clone(u).update(n.captureContext));
1666
1666
  let f = T(a), d = s && s.getEventProcessors ? s.getEventProcessors() : [];
1667
- if (c) {
1668
- if (c.getAttachments) {
1669
- let l = [...n.attachments || [], ...c.getAttachments()];
1667
+ if (u) {
1668
+ if (u.getAttachments) {
1669
+ let l = [...n.attachments || [], ...u.getAttachments()];
1670
1670
  l.length && (n.attachments = l);
1671
1671
  }
1672
- f = c.applyToEvent(a, n, d);
1673
- } else f = V([...d, ...ue()], a, n);
1672
+ f = u.applyToEvent(a, n, d);
1673
+ } else f = K([...d, ...ue()], a, n);
1674
1674
  return f.then((l) => (l && vr(l), typeof i == "number" && i > 0 ? Pr(l, i, o) : l));
1675
1675
  }
1676
1676
  function Ar(t, e) {
@@ -1688,10 +1688,10 @@ function wr(t, e) {
1688
1688
  let r, s = yn.get(e);
1689
1689
  s ? r = s : (r = /* @__PURE__ */ new Map(), yn.set(e, r));
1690
1690
  let i = Object.keys(n).reduce((o, a) => {
1691
- let u, c = r.get(a);
1692
- c ? u = c : (u = e(a), r.set(a, u));
1693
- for (let f = u.length - 1; f >= 0; f--) {
1694
- let d = u[f];
1691
+ let c, u = r.get(a);
1692
+ u ? c = u : (c = e(a), r.set(a, c));
1693
+ for (let f = c.length - 1; f >= 0; f--) {
1694
+ let d = c[f];
1695
1695
  if (d.filename) {
1696
1696
  o[d.filename] = n[a];
1697
1697
  break;
@@ -1838,9 +1838,9 @@ var Pe = class {
1838
1838
  let r = false, s = false, i = n.exception && n.exception.values;
1839
1839
  if (i) {
1840
1840
  s = true;
1841
- for (let u of i) {
1842
- let c = u.mechanism;
1843
- if (c && c.handled === false) {
1841
+ for (let c of i) {
1842
+ let u = c.mechanism;
1843
+ if (u && u.handled === false) {
1844
1844
  r = true;
1845
1845
  break;
1846
1846
  }
@@ -1865,9 +1865,9 @@ var Pe = class {
1865
1865
  if (o === null) return o;
1866
1866
  let { propagationContext: a } = o.sdkProcessingMetadata || {};
1867
1867
  if (!(o.contexts && o.contexts.trace) && a) {
1868
- let { traceId: c, spanId: f, parentSpanId: d, dsc: l } = a;
1869
- o.contexts = { trace: { trace_id: c, span_id: f, parent_span_id: d }, ...o.contexts };
1870
- let _ = l || J(c, this, r);
1868
+ let { traceId: u, spanId: f, parentSpanId: d, dsc: l } = a;
1869
+ o.contexts = { trace: { trace_id: u, span_id: f, parent_span_id: d }, ...o.contexts };
1870
+ let _ = l || J(u, this, r);
1871
1871
  o.sdkProcessingMetadata = { dynamicSamplingContext: _, ...o.sdkProcessingMetadata };
1872
1872
  }
1873
1873
  return o;
@@ -1882,16 +1882,16 @@ var Pe = class {
1882
1882
  });
1883
1883
  }
1884
1884
  _processEvent(e, n, r) {
1885
- let s = this.getOptions(), { sampleRate: i } = s, o = In(e), a = Rn(e), u = e.type || "error", c = `before send for type \`${u}\``;
1885
+ let s = this.getOptions(), { sampleRate: i } = s, o = In(e), a = Rn(e), c = e.type || "error", u = `before send for type \`${c}\``;
1886
1886
  if (a && typeof i == "number" && Math.random() > i) return this.recordDroppedEvent("sample_rate", "error", e), F(new y(`Discarding event because it's not included in the random sample (sampling rate = ${i})`, "log"));
1887
- let f = u === "replay_event" ? "replay" : u;
1887
+ let f = c === "replay_event" ? "replay" : c;
1888
1888
  return this._prepareEvent(e, n, r).then((d) => {
1889
1889
  if (d === null) throw this.recordDroppedEvent("event_processor", f, e), new y("An event processor returned `null`, will not send event.", "log");
1890
1890
  if (n.data && n.data.__sentry__ === true) return d;
1891
1891
  let _ = Ur(s, d, n);
1892
- return Mr(_, c);
1892
+ return Mr(_, u);
1893
1893
  }).then((d) => {
1894
- if (d === null) throw this.recordDroppedEvent("before_send", f, e), new y(`${c} returned \`null\`, will not send event.`, "log");
1894
+ if (d === null) throw this.recordDroppedEvent("before_send", f, e), new y(`${u} returned \`null\`, will not send event.`, "log");
1895
1895
  let l = r && r.getSession();
1896
1896
  !o && l && this._updateSessionFromEvent(l, d);
1897
1897
  let _ = d.transaction_info;
@@ -1986,11 +1986,11 @@ var de = class extends Pe {
1986
1986
  captureCheckIn(e, n, r) {
1987
1987
  let s = e.status !== "in_progress" && e.checkInId ? e.checkInId : h();
1988
1988
  if (!this._isEnabled()) return (typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && p.warn("SDK not enabled, will not capture checkin."), s;
1989
- let i = this.getOptions(), { release: o, environment: a, tunnel: u } = i, c = { check_in_id: s, monitor_slug: e.monitorSlug, status: e.status, release: o, environment: a };
1990
- e.status !== "in_progress" && (c.duration = e.duration), n && (c.monitor_config = { schedule: n.schedule, checkin_margin: n.checkinMargin, max_runtime: n.maxRuntime, timezone: n.timezone });
1989
+ let i = this.getOptions(), { release: o, environment: a, tunnel: c } = i, u = { check_in_id: s, monitor_slug: e.monitorSlug, status: e.status, release: o, environment: a };
1990
+ e.status !== "in_progress" && (u.duration = e.duration), n && (u.monitor_config = { schedule: n.schedule, checkin_margin: n.checkinMargin, max_runtime: n.maxRuntime, timezone: n.timezone });
1991
1991
  let [f, d] = this._getTraceInfoFromScope(r);
1992
- d && (c.contexts = { trace: d });
1993
- let l = xn(c, f, this.getSdkMetadata(), u, this.getDsn());
1992
+ d && (u.contexts = { trace: d });
1993
+ let l = xn(u, f, this.getSdkMetadata(), c, this.getDsn());
1994
1994
  return (typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && p.info("Sending checkin:", e.monitorSlug, e.status), this._sendEnvelope(l), s;
1995
1995
  }
1996
1996
  _captureRequestSession() {
@@ -2019,16 +2019,16 @@ function St(t, e, n = et(t.bufferSize || Fr)) {
2019
2019
  t.recordDroppedEvent("ratelimit_backoff", _, M);
2020
2020
  } else a.push(d);
2021
2021
  }), a.length === 0) return T();
2022
- let u = P(o[0], a), c = (d) => {
2023
- De(u, (l, _) => {
2022
+ let c = P(o[0], a), u = (d) => {
2023
+ De(c, (l, _) => {
2024
2024
  let M = Nn(l, _);
2025
2025
  t.recordDroppedEvent(d, ke(_), M);
2026
2026
  });
2027
- }, f = () => e({ body: ot(u, t.textEncoder) }).then((d) => (d.statusCode !== void 0 && (d.statusCode < 200 || d.statusCode >= 300) && (typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && p.warn(`Sentry responded with status code ${d.statusCode} to sent event.`), r = dt(r, d), d), (d) => {
2028
- throw c("network_error"), d;
2027
+ }, f = () => e({ body: ot(c, t.textEncoder) }).then((d) => (d.statusCode !== void 0 && (d.statusCode < 200 || d.statusCode >= 300) && (typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && p.warn(`Sentry responded with status code ${d.statusCode} to sent event.`), r = dt(r, d), d), (d) => {
2028
+ throw u("network_error"), d;
2029
2029
  });
2030
2030
  return n.add(f).then((d) => d, (d) => {
2031
- if (d instanceof y) return (typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && p.error("Skipped sending event because buffer is full."), c("queue_overflow"), T();
2031
+ if (d instanceof y) return (typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__) && p.error("Skipped sending event because buffer is full."), u("queue_overflow"), T();
2032
2032
  throw d;
2033
2033
  });
2034
2034
  }
@@ -2068,10 +2068,10 @@ function jr(t, e, n, r) {
2068
2068
  if (U(n)) s = n;
2069
2069
  else {
2070
2070
  if (R(n)) {
2071
- let u = `Non-Error exception captured with keys: ${te(n)}`, c = t?.getClient(), f = c && c.getOptions().normalizeDepth;
2071
+ let c = `Non-Error exception captured with keys: ${te(n)}`, u = t?.getClient(), f = u && u.getOptions().normalizeDepth;
2072
2072
  t?.configureScope((d) => {
2073
2073
  d.setExtra("__serialized__", W(n, f));
2074
- }), s = r && r.syntheticException || new Error(u), s.message = u;
2074
+ }), s = r && r.syntheticException || new Error(c), s.message = c;
2075
2075
  } else s = r && r.syntheticException || new Error(n), s.message = n;
2076
2076
  o.synthetic = true;
2077
2077
  }
@@ -2124,37 +2124,37 @@ var Be = class {
2124
2124
  setupOnce(e, n) {
2125
2125
  n().getClient() && e((s) => {
2126
2126
  let { sdkProcessingMetadata: i } = s;
2127
- return !n().getIntegration(Be) || !i || ("request" in i && i.request instanceof Request && (s.request = Kr(i.request, Ye(this, X)), s.user = Vr(s.user ?? {}, i.request, Ye(this, X))), "requestData" in i && (s.request ? s.request.data = i.requestData : s.request = { data: i.requestData })), s;
2127
+ return !n().getIntegration(Be) || !i || ("request" in i && i.request instanceof Request && (s.request = Vr(i.request, Ye(this, X)), s.user = Kr(s.user ?? {}, i.request, Ye(this, X))), "requestData" in i && (s.request ? s.request.data = i.requestData : s.request = { data: i.requestData })), s;
2128
2128
  });
2129
2129
  }
2130
2130
  };
2131
2131
  var Ue = Be;
2132
2132
  X = /* @__PURE__ */ new WeakMap(), fe(Ue, "id", "RequestData");
2133
- function Vr(t, e, n) {
2133
+ function Kr(t, e, n) {
2134
2134
  let r = e.headers.get("CF-Connecting-IP"), { allowedIps: s } = n, i = { ...t };
2135
2135
  return !("ip_address" in t) && r && s !== void 0 && Jr(r, s) && (i.ip_address = r), Object.keys(i).length > 0 ? i : void 0;
2136
2136
  }
2137
- function Kr(t, e) {
2137
+ function Vr(t, e) {
2138
2138
  let n = t.headers.get("cookie"), r;
2139
2139
  if (n) try {
2140
2140
  r = Xr(n);
2141
2141
  } catch {
2142
2142
  }
2143
2143
  let s = {};
2144
- for (let [c, f] of t.headers.entries()) c !== "cookie" && (s[c] = f);
2144
+ for (let [u, f] of t.headers.entries()) u !== "cookie" && (s[u] = f);
2145
2145
  let i = { method: t.method, cookies: r, headers: s };
2146
2146
  try {
2147
- let c = new URL(t.url);
2148
- i.url = `${c.protocol}//${c.hostname}${c.pathname}`, i.query_string = c.search;
2147
+ let u = new URL(t.url);
2148
+ i.url = `${u.protocol}//${u.hostname}${u.pathname}`, i.query_string = u.search;
2149
2149
  } catch {
2150
2150
  let f = t.url.indexOf("?");
2151
2151
  f < 0 ? i.url = t.url : (i.url = t.url.substr(0, f), i.query_string = t.url.substr(f + 1));
2152
2152
  }
2153
- let { allowedHeaders: o, allowedCookies: a, allowedSearchParams: u } = e;
2154
- if (o !== void 0 && i.headers ? (i.headers = yt(i.headers, o), Object.keys(i.headers).length === 0 && delete i.headers) : delete i.headers, a !== void 0 && i.cookies ? (i.cookies = yt(i.cookies, a), Object.keys(i.cookies).length === 0 && delete i.cookies) : delete i.cookies, u !== void 0) {
2155
- let c = Object.fromEntries(new URLSearchParams(i.query_string)), f = new URLSearchParams();
2156
- Object.keys(yt(c, u)).forEach((d) => {
2157
- f.set(d, c[d]);
2153
+ let { allowedHeaders: o, allowedCookies: a, allowedSearchParams: c } = e;
2154
+ if (o !== void 0 && i.headers ? (i.headers = yt(i.headers, o), Object.keys(i.headers).length === 0 && delete i.headers) : delete i.headers, a !== void 0 && i.cookies ? (i.cookies = yt(i.cookies, a), Object.keys(i.cookies).length === 0 && delete i.cookies) : delete i.cookies, c !== void 0) {
2155
+ let u = Object.fromEntries(new URLSearchParams(i.query_string)), f = new URLSearchParams();
2156
+ Object.keys(yt(u, c)).forEach((d) => {
2157
+ f.set(d, u[d]);
2158
2158
  }), i.query_string = f.toString();
2159
2159
  } else delete i.query_string;
2160
2160
  return i;
@@ -2250,7 +2250,7 @@ var Ge = class extends Y {
2250
2250
  let r = Yr();
2251
2251
  r !== void 0 && (e.release = r);
2252
2252
  }
2253
- let n = new Tt({ ...e, transport: ns, integrations: gt(e), stackParser: Ke(e.stackParser || ts), transportOptions: { ...e.transportOptions, context: e.context } });
2253
+ let n = new Tt({ ...e, transport: ns, integrations: gt(e), stackParser: Ve(e.stackParser || ts), transportOptions: { ...e.transportOptions, context: e.context } });
2254
2254
  super(n), n.setSdk(this), n.setupIntegrations();
2255
2255
  }
2256
2256
  setRequestBody(e) {
@@ -2263,10 +2263,10 @@ var Ge = class extends Y {
2263
2263
  return e.status === "in_progress" && this.setContext("monitor", { slug: e.monitorSlug }), this.getClient().captureCheckIn(e, n, r);
2264
2264
  }
2265
2265
  };
2266
- function vn(t, e, n, r, s, i, o, a, u) {
2266
+ function vn(t, e, n, r, s, i, o, a) {
2267
2267
  if (!(n && r && s)) return;
2268
- let c = new Ge({ dsn: n, request: t, context: e, sampleRate: 1, release: o?.tag, requestDataOptions: { allowedHeaders: ["user-agent", "cf-challenge", "accept-encoding", "accept-language", "cf-ray", "content-length", "content-type", "host"], allowedSearchParams: /(.*)/ }, transportOptions: { headers: { "CF-Access-Client-ID": r, "CF-Access-Client-Secret": s } } });
2269
- return i && (c.setTag("colo", i.coloId), c.setTag("metal", i.metalId)), a && u && (c.setTag("accountId", a), c.setTag("scriptId", u)), c.setUser({ id: a?.toString() }), c;
2268
+ let c = new Ge({ dsn: n, request: t, context: e, sampleRate: 1, requestDataOptions: { allowedHeaders: ["user-agent", "cf-challenge", "accept-encoding", "accept-language", "cf-ray", "content-length", "content-type", "host"], allowedSearchParams: /(.*)/ }, transportOptions: { headers: { "CF-Access-Client-ID": r, "CF-Access-Client-Secret": s } } });
2269
+ return i && (c.setTag("colo", i.coloId), c.setTag("metal", i.metalId)), o && a && (c.setTag("accountId", o), c.setTag("scriptId", a)), c.setUser({ id: o?.toString() }), c;
2270
2270
  }
2271
2271
  function rs() {
2272
2272
  return { addLogs: () => {
@@ -2296,19 +2296,19 @@ var Le = class {
2296
2296
  var nc = { async fetch(t, e, n) {
2297
2297
  let r, s = false, i = new Le(e.ANALYTICS), o = new pe(e.UNSAFE_PERFORMANCE), a = o.now();
2298
2298
  try {
2299
- e.JAEGER || (e.JAEGER = Cn()), r = vn(t, n, e.SENTRY_DSN, e.SENTRY_ACCESS_CLIENT_ID, e.SENTRY_ACCESS_CLIENT_SECRET, e.COLO_METADATA, e.VERSION_METADATA, e.CONFIG?.account_id, e.CONFIG?.script_id);
2300
- let u = new URL(t.url);
2301
- e.COLO_METADATA && e.VERSION_METADATA && e.CONFIG && i.setData({ accountId: e.CONFIG.account_id, scriptId: e.CONFIG.script_id, coloId: e.COLO_METADATA.coloId, metalId: e.COLO_METADATA.metalId, coloTier: e.COLO_METADATA.coloTier, coloRegion: e.COLO_METADATA.coloRegion, hostname: u.hostname, version: e.VERSION_METADATA.id, userWorkerAhead: e.CONFIG.invoke_user_worker_ahead_of_assets });
2302
- let c = t.clone();
2299
+ e.JAEGER || (e.JAEGER = Cn()), r = vn(t, n, e.SENTRY_DSN, e.SENTRY_ACCESS_CLIENT_ID, e.SENTRY_ACCESS_CLIENT_SECRET, e.COLO_METADATA, e.CONFIG?.account_id, e.CONFIG?.script_id);
2300
+ let c = new URL(t.url);
2301
+ e.COLO_METADATA && e.VERSION_METADATA && e.CONFIG && i.setData({ accountId: e.CONFIG.account_id, scriptId: e.CONFIG.script_id, coloId: e.COLO_METADATA.coloId, metalId: e.COLO_METADATA.metalId, coloTier: e.COLO_METADATA.coloTier, coloRegion: e.COLO_METADATA.coloRegion, hostname: c.hostname, version: e.VERSION_METADATA.id, userWorkerAhead: e.CONFIG.invoke_user_worker_ahead_of_assets });
2302
+ let u = t.clone();
2303
2303
  if (e.CONFIG.invoke_user_worker_ahead_of_assets) {
2304
2304
  if (!e.CONFIG.has_user_worker) throw new Error("Fetch for user worker without having a user worker binding");
2305
- return i.setData({ dispatchtype: "worker" }), await e.JAEGER.enterSpan("dispatch_worker", async (d) => (d.setTags({ hasUserWorker: true, asset: "ignored", dispatchType: "worker" }), s = true, e.USER_WORKER.fetch(c)));
2305
+ return i.setData({ dispatchtype: "worker" }), await e.JAEGER.enterSpan("dispatch_worker", async (d) => (d.setTags({ hasUserWorker: true, asset: "ignored", dispatchType: "worker" }), s = true, e.USER_WORKER.fetch(u)));
2306
2306
  }
2307
2307
  let f = await e.ASSET_WORKER.unstable_canFetch(t);
2308
- return e.CONFIG.has_user_worker && !f ? (i.setData({ dispatchtype: "worker" }), await e.JAEGER.enterSpan("dispatch_worker", async (d) => (d.setTags({ hasUserWorker: e.CONFIG.has_user_worker || false, asset: f, dispatchType: "worker" }), s = true, e.USER_WORKER.fetch(c)))) : (i.setData({ dispatchtype: "asset" }), await e.JAEGER.enterSpan("dispatch_assets", async (d) => (d.setTags({ hasUserWorker: e.CONFIG.has_user_worker || false, asset: f, dispatchType: "asset" }), e.ASSET_WORKER.fetch(c))));
2309
- } catch (u) {
2308
+ return e.CONFIG.has_user_worker && !f ? (i.setData({ dispatchtype: "worker" }), await e.JAEGER.enterSpan("dispatch_worker", async (d) => (d.setTags({ hasUserWorker: e.CONFIG.has_user_worker || false, asset: f, dispatchType: "worker" }), s = true, e.USER_WORKER.fetch(u)))) : (i.setData({ dispatchtype: "asset" }), await e.JAEGER.enterSpan("dispatch_assets", async (d) => (d.setTags({ hasUserWorker: e.CONFIG.has_user_worker || false, asset: f, dispatchType: "asset" }), e.ASSET_WORKER.fetch(u))));
2309
+ } catch (c) {
2310
2310
  if (s) return;
2311
- throw u instanceof Error && i.setData({ error: u.message }), r && r.captureException(u), u;
2311
+ throw c instanceof Error && i.setData({ error: c.message }), r && r.captureException(c), c;
2312
2312
  } finally {
2313
2313
  i.setData({ requestTime: o.now() - a }), i.write();
2314
2314
  }