@konnectio/core 4.0.67 → 4.0.68

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.
Files changed (70) hide show
  1. package/dist/{ActionField-CT_apby-.js → ActionField-_CEmKSlf.js} +15 -15
  2. package/dist/ActionField-_CEmKSlf.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-CZ8yMhKx.js → AvailabilitySkeleton-CHDZOB_s.js} +67 -70
  4. package/dist/AvailabilitySkeleton-CHDZOB_s.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DjFIhQhI.js +8725 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DjFIhQhI.js.br +0 -0
  7. package/dist/{CheckoutWindow-B5_4BaaS.js → CheckoutWindow-BzoYJ5v5.js} +5 -5
  8. package/dist/CheckoutWindow-BzoYJ5v5.js.br +0 -0
  9. package/dist/{ErrorMessage-M78h-mvR.js → ErrorMessage-Cc8QanBP.js} +4 -4
  10. package/dist/ErrorMessage-Cc8QanBP.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-HdD0h2K-.js → EventAvailabilityForm-CdmiDieo.js} +25 -25
  12. package/dist/EventAvailabilityForm-CdmiDieo.js.br +0 -0
  13. package/dist/{Field-B8yANlQ6.js → Field-DMMbo6LE.js} +9 -9
  14. package/dist/Field-DMMbo6LE.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-rrYg4a8F.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DKrodyae.js} +3235 -3231
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DKrodyae.js.br +0 -0
  17. package/dist/{TermsOfService-BJKKDCJG.js → TermsOfService-YxQsHH5-.js} +6 -6
  18. package/dist/TermsOfService-YxQsHH5-.js.br +0 -0
  19. package/dist/{_-yypsiI8V.js → _-DZrN6t_6.js} +3 -3
  20. package/dist/{_.vue_vue_type_style_index_0_lang-CyUM1wWD.js → _.vue_vue_type_style_index_0_lang-C4mV4F7L.js} +7 -7
  21. package/dist/_.vue_vue_type_style_index_0_lang-C4mV4F7L.js.br +0 -0
  22. package/dist/_commonjsHelpers-BqFuLgLz.js +25 -0
  23. package/dist/_commonjsHelpers-BqFuLgLz.js.br +0 -0
  24. package/dist/{_sentry-release-injection-file-gSWd_6hD.js → _sentry-release-injection-file-Bgn3HK9h.js} +3798 -3814
  25. package/dist/_sentry-release-injection-file-Bgn3HK9h.js.br +0 -0
  26. package/dist/availability.js +63 -74
  27. package/dist/availability.js.br +0 -0
  28. package/dist/deep-link.js +25 -37
  29. package/dist/deep-link.js.br +0 -0
  30. package/dist/event.js +410 -421
  31. package/dist/event.js.br +0 -0
  32. package/dist/gift-card-validation.js +75 -86
  33. package/dist/gift-card-validation.js.br +0 -0
  34. package/dist/gift-card.js +250 -261
  35. package/dist/gift-card.js.br +0 -0
  36. package/dist/{giftCard-Baweqc3Y.js → giftCard-D-wdGVBh.js} +15 -15
  37. package/dist/giftCard-D-wdGVBh.js.br +0 -0
  38. package/dist/hotel.js +870 -878
  39. package/dist/hotel.js.br +0 -0
  40. package/dist/{masonry.plugin-HPRfkQvp.js → masonry.plugin-D3cbfEtC.js} +947 -973
  41. package/dist/masonry.plugin-D3cbfEtC.js.br +0 -0
  42. package/dist/{mitt-CayBWWiP.js → mitt-BWKhoTz3.js} +796 -779
  43. package/dist/mitt-BWKhoTz3.js.br +0 -0
  44. package/dist/polyfill.js +4662 -13673
  45. package/dist/polyfill.js.br +0 -0
  46. package/dist/sentry-D-KvzqAy.js +1452 -0
  47. package/dist/sentry-D-KvzqAy.js.br +0 -0
  48. package/dist/{style-B31Ox_CN.js → style-B8UHQIzP.js} +50 -50
  49. package/dist/style-B8UHQIzP.js.br +0 -0
  50. package/dist/style.css +1 -1
  51. package/dist/style.css.br +0 -0
  52. package/package.json +11 -11
  53. package/dist/ActionField-CT_apby-.js.br +0 -0
  54. package/dist/AvailabilitySkeleton-CZ8yMhKx.js.br +0 -0
  55. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-L3G7fjJr.js +0 -8678
  56. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-L3G7fjJr.js.br +0 -0
  57. package/dist/CheckoutWindow-B5_4BaaS.js.br +0 -0
  58. package/dist/ErrorMessage-M78h-mvR.js.br +0 -0
  59. package/dist/EventAvailabilityForm-HdD0h2K-.js.br +0 -0
  60. package/dist/Field-B8yANlQ6.js.br +0 -0
  61. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-rrYg4a8F.js.br +0 -0
  62. package/dist/TermsOfService-BJKKDCJG.js.br +0 -0
  63. package/dist/_.vue_vue_type_style_index_0_lang-CyUM1wWD.js.br +0 -0
  64. package/dist/_commonjsHelpers-Dn7n5RRb.js +0 -2650
  65. package/dist/_commonjsHelpers-Dn7n5RRb.js.br +0 -0
  66. package/dist/_sentry-release-injection-file-gSWd_6hD.js.br +0 -0
  67. package/dist/giftCard-Baweqc3Y.js.br +0 -0
  68. package/dist/masonry.plugin-HPRfkQvp.js.br +0 -0
  69. package/dist/mitt-CayBWWiP.js.br +0 -0
  70. package/dist/style-B31Ox_CN.js.br +0 -0
@@ -1,2650 +0,0 @@
1
- import "./_sentry-release-injection-file-gSWd_6hD.js";
2
- (function() {
3
- try {
4
- var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, e = new Error().stack;
5
- e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "8fe9bcc8-751e-477e-bdcc-3549a0c77e5a", t._sentryDebugIdIdentifier = "sentry-dbid-8fe9bcc8-751e-477e-bdcc-3549a0c77e5a");
6
- } catch {
7
- }
8
- })();
9
- {
10
- var K = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
11
- K._sentryModuleMetadata = K._sentryModuleMetadata || {}, K._sentryModuleMetadata[new Error().stack] = Object.assign(
12
- {},
13
- K._sentryModuleMetadata[new Error().stack],
14
- { "_sentryBundlerPluginAppKey:konnectio-frontend-core": !0 }
15
- );
16
- }
17
- const Kt = Object.prototype.toString;
18
- function ye(t) {
19
- switch (Kt.call(t)) {
20
- case "[object Error]":
21
- case "[object Exception]":
22
- case "[object DOMException]":
23
- return !0;
24
- default:
25
- return W(t, Error);
26
- }
27
- }
28
- function L(t, e) {
29
- return Kt.call(t) === `[object ${e}]`;
30
- }
31
- function yr(t) {
32
- return L(t, "ErrorEvent");
33
- }
34
- function Er(t) {
35
- return L(t, "DOMError");
36
- }
37
- function br(t) {
38
- return L(t, "DOMException");
39
- }
40
- function q(t) {
41
- return L(t, "String");
42
- }
43
- function Ee(t) {
44
- return typeof t == "object" && t !== null && "__sentry_template_string__" in t && "__sentry_template_values__" in t;
45
- }
46
- function Tr(t) {
47
- return t === null || Ee(t) || typeof t != "object" && typeof t != "function";
48
- }
49
- function pt(t) {
50
- return L(t, "Object");
51
- }
52
- function be(t) {
53
- return typeof Event < "u" && W(t, Event);
54
- }
55
- function Te(t) {
56
- return typeof Element < "u" && W(t, Element);
57
- }
58
- function Ie(t) {
59
- return L(t, "RegExp");
60
- }
61
- function lt(t) {
62
- return !!(t && t.then && typeof t.then == "function");
63
- }
64
- function Ne(t) {
65
- return pt(t) && "nativeEvent" in t && "preventDefault" in t && "stopPropagation" in t;
66
- }
67
- function W(t, e) {
68
- try {
69
- return t instanceof e;
70
- } catch {
71
- return !1;
72
- }
73
- }
74
- function zt(t) {
75
- return !!(typeof t == "object" && t !== null && (t.__isVue || t._isVue));
76
- }
77
- function G(t, e = 0) {
78
- return typeof t != "string" || e === 0 || t.length <= e ? t : `${t.slice(0, e)}...`;
79
- }
80
- function Ir(t, e) {
81
- if (!Array.isArray(t))
82
- return "";
83
- const n = [];
84
- for (let r = 0; r < t.length; r++) {
85
- const s = t[r];
86
- try {
87
- zt(s) ? n.push("[VueViewModel]") : n.push(String(s));
88
- } catch {
89
- n.push("[value cannot be serialized]");
90
- }
91
- }
92
- return n.join(e);
93
- }
94
- function Ae(t, e, n = !1) {
95
- return q(t) ? Ie(e) ? e.test(t) : q(e) ? n ? t === e : t.includes(e) : !1 : !1;
96
- }
97
- function Nr(t, e = [], n = !1) {
98
- return e.some((r) => Ae(t, r, n));
99
- }
100
- const B = "8.19.0", h = globalThis;
101
- function _t(t, e, n) {
102
- const r = n || h, s = r.__SENTRY__ = r.__SENTRY__ || {}, i = s[B] = s[B] || {};
103
- return i[t] || (i[t] = e());
104
- }
105
- const $ = h, Oe = 80;
106
- function Re(t, e = {}) {
107
- if (!t)
108
- return "<unknown>";
109
- try {
110
- let n = t;
111
- const r = 5, s = [];
112
- let i = 0, o = 0;
113
- const a = " > ", u = a.length;
114
- let c;
115
- const f = Array.isArray(e) ? e : e.keyAttrs, d = !Array.isArray(e) && e.maxStringLength || Oe;
116
- for (; n && i++ < r && (c = De(n, f), !(c === "html" || i > 1 && o + s.length * u + c.length >= d)); )
117
- s.push(c), o += c.length, n = n.parentNode;
118
- return s.reverse().join(a);
119
- } catch {
120
- return "<unknown>";
121
- }
122
- }
123
- function De(t, e) {
124
- const n = t, r = [];
125
- if (!n || !n.tagName)
126
- return "";
127
- if ($.HTMLElement && n instanceof HTMLElement && n.dataset) {
128
- if (n.dataset.sentryComponent)
129
- return n.dataset.sentryComponent;
130
- if (n.dataset.sentryElement)
131
- return n.dataset.sentryElement;
132
- }
133
- r.push(n.tagName.toLowerCase());
134
- const s = e && e.length ? e.filter((o) => n.getAttribute(o)).map((o) => [o, n.getAttribute(o)]) : null;
135
- if (s && s.length)
136
- s.forEach((o) => {
137
- r.push(`[${o[0]}="${o[1]}"]`);
138
- });
139
- else {
140
- n.id && r.push(`#${n.id}`);
141
- const o = n.className;
142
- if (o && q(o)) {
143
- const a = o.split(/\s+/);
144
- for (const u of a)
145
- r.push(`.${u}`);
146
- }
147
- }
148
- const i = ["aria-label", "type", "name", "title", "alt"];
149
- for (const o of i) {
150
- const a = n.getAttribute(o);
151
- a && r.push(`[${o}="${a}"]`);
152
- }
153
- return r.join("");
154
- }
155
- function Ar() {
156
- try {
157
- return $.document.location.href;
158
- } catch {
159
- return "";
160
- }
161
- }
162
- function Or(t) {
163
- return $.document && $.document.querySelector ? $.document.querySelector(t) : null;
164
- }
165
- function Rr(t) {
166
- if (!$.HTMLElement)
167
- return null;
168
- let e = t;
169
- const n = 5;
170
- for (let r = 0; r < n; r++) {
171
- if (!e)
172
- return null;
173
- if (e instanceof HTMLElement) {
174
- if (e.dataset.sentryComponent)
175
- return e.dataset.sentryComponent;
176
- if (e.dataset.sentryElement)
177
- return e.dataset.sentryElement;
178
- }
179
- e = e.parentNode;
180
- }
181
- return null;
182
- }
183
- const X = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, Ce = "Sentry Logger ", At = [
184
- "debug",
185
- "info",
186
- "warn",
187
- "error",
188
- "log",
189
- "assert",
190
- "trace"
191
- ], Ot = {};
192
- function ht(t) {
193
- if (!("console" in h))
194
- return t();
195
- const e = h.console, n = {}, r = Object.keys(Ot);
196
- r.forEach((s) => {
197
- const i = Ot[s];
198
- n[s] = e[s], e[s] = i;
199
- });
200
- try {
201
- return t();
202
- } finally {
203
- r.forEach((s) => {
204
- e[s] = n[s];
205
- });
206
- }
207
- }
208
- function ke() {
209
- let t = !1;
210
- const e = {
211
- enable: () => {
212
- t = !0;
213
- },
214
- disable: () => {
215
- t = !1;
216
- },
217
- isEnabled: () => t
218
- };
219
- return X ? At.forEach((n) => {
220
- e[n] = (...r) => {
221
- t && ht(() => {
222
- h.console[n](`${Ce}[${n}]:`, ...r);
223
- });
224
- };
225
- }) : At.forEach((n) => {
226
- e[n] = () => {
227
- };
228
- }), e;
229
- }
230
- const p = ke(), we = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;
231
- function $e(t) {
232
- return t === "http" || t === "https";
233
- }
234
- function gt(t, e = !1) {
235
- const { host: n, path: r, pass: s, port: i, projectId: o, protocol: a, publicKey: u } = t;
236
- return `${a}://${u}${e && s ? `:${s}` : ""}@${n}${i ? `:${i}` : ""}/${r && `${r}/`}${o}`;
237
- }
238
- function xe(t) {
239
- const e = we.exec(t);
240
- if (!e) {
241
- ht(() => {
242
- console.error(`Invalid Sentry Dsn: ${t}`);
243
- });
244
- return;
245
- }
246
- const [n, r, s = "", i = "", o = "", a = ""] = e.slice(1);
247
- let u = "", c = a;
248
- const f = c.split("/");
249
- if (f.length > 1 && (u = f.slice(0, -1).join("/"), c = f.pop()), c) {
250
- const d = c.match(/^\d+/);
251
- d && (c = d[0]);
252
- }
253
- return qt({ host: i, pass: s, path: u, projectId: c, port: o, protocol: n, publicKey: r });
254
- }
255
- function qt(t) {
256
- return {
257
- protocol: t.protocol,
258
- publicKey: t.publicKey || "",
259
- pass: t.pass || "",
260
- host: t.host,
261
- port: t.port || "",
262
- path: t.path || "",
263
- projectId: t.projectId
264
- };
265
- }
266
- function Pe(t) {
267
- if (!X)
268
- return !0;
269
- const { port: e, projectId: n, protocol: r } = t;
270
- return ["protocol", "publicKey", "host", "projectId"].find((o) => t[o] ? !1 : (p.error(`Invalid Sentry Dsn: ${o} missing`), !0)) ? !1 : n.match(/^\d+$/) ? $e(r) ? e && isNaN(parseInt(e, 10)) ? (p.error(`Invalid Sentry Dsn: Invalid port ${e}`), !1) : !0 : (p.error(`Invalid Sentry Dsn: Invalid protocol ${r}`), !1) : (p.error(`Invalid Sentry Dsn: Invalid projectId ${n}`), !1);
271
- }
272
- function Dr(t) {
273
- const e = typeof t == "string" ? xe(t) : qt(t);
274
- if (!(!e || !Pe(e)))
275
- return e;
276
- }
277
- function Cr(t, e, n) {
278
- if (!(e in t))
279
- return;
280
- const r = t[e], s = n(r);
281
- typeof s == "function" && Me(s, r), t[e] = s;
282
- }
283
- function D(t, e, n) {
284
- try {
285
- Object.defineProperty(t, e, {
286
- // enumerable: false, // the default, so we can save on bundle size by not explicitly setting it
287
- value: n,
288
- writable: !0,
289
- configurable: !0
290
- });
291
- } catch {
292
- X && p.log(`Failed to add non-enumerable property "${e}" to object`, t);
293
- }
294
- }
295
- function Me(t, e) {
296
- try {
297
- const n = e.prototype || {};
298
- t.prototype = e.prototype = n, D(t, "__sentry_original__", e);
299
- } catch {
300
- }
301
- }
302
- function kr(t) {
303
- return t.__sentry_original__;
304
- }
305
- function wr(t) {
306
- return Object.keys(t).map((e) => `${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&");
307
- }
308
- function Vt(t) {
309
- if (ye(t))
310
- return {
311
- message: t.message,
312
- name: t.name,
313
- stack: t.stack,
314
- ...Dt(t)
315
- };
316
- if (be(t)) {
317
- const e = {
318
- type: t.type,
319
- target: Rt(t.target),
320
- currentTarget: Rt(t.currentTarget),
321
- ...Dt(t)
322
- };
323
- return typeof CustomEvent < "u" && W(t, CustomEvent) && (e.detail = t.detail), e;
324
- } else
325
- return t;
326
- }
327
- function Rt(t) {
328
- try {
329
- return Te(t) ? Re(t) : Object.prototype.toString.call(t);
330
- } catch {
331
- return "<unknown>";
332
- }
333
- }
334
- function Dt(t) {
335
- if (typeof t == "object" && t !== null) {
336
- const e = {};
337
- for (const n in t)
338
- Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
339
- return e;
340
- } else
341
- return {};
342
- }
343
- function $r(t, e = 40) {
344
- const n = Object.keys(Vt(t));
345
- n.sort();
346
- const r = n[0];
347
- if (!r)
348
- return "[object has no keys]";
349
- if (r.length >= e)
350
- return G(r, e);
351
- for (let s = n.length; s > 0; s--) {
352
- const i = n.slice(0, s).join(", ");
353
- if (!(i.length > e))
354
- return s === n.length ? i : G(i, e);
355
- }
356
- return "";
357
- }
358
- function m(t) {
359
- return nt(t, /* @__PURE__ */ new Map());
360
- }
361
- function nt(t, e) {
362
- if (Le(t)) {
363
- const n = e.get(t);
364
- if (n !== void 0)
365
- return n;
366
- const r = {};
367
- e.set(t, r);
368
- for (const s of Object.keys(t))
369
- typeof t[s] < "u" && (r[s] = nt(t[s], e));
370
- return r;
371
- }
372
- if (Array.isArray(t)) {
373
- const n = e.get(t);
374
- if (n !== void 0)
375
- return n;
376
- const r = [];
377
- return e.set(t, r), t.forEach((s) => {
378
- r.push(nt(s, e));
379
- }), r;
380
- }
381
- return t;
382
- }
383
- function Le(t) {
384
- if (!pt(t))
385
- return !1;
386
- try {
387
- const e = Object.getPrototypeOf(t).constructor.name;
388
- return !e || e === "Object";
389
- } catch {
390
- return !0;
391
- }
392
- }
393
- const Wt = 50, Ue = "?", Ct = /\(error: (.*)\)/, kt = /captureMessage|captureException/;
394
- function je(...t) {
395
- const e = t.sort((n, r) => n[0] - r[0]).map((n) => n[1]);
396
- return (n, r = 0, s = 0) => {
397
- const i = [], o = n.split(`
398
- `);
399
- for (let a = r; a < o.length; a++) {
400
- const u = o[a];
401
- if (u.length > 1024)
402
- continue;
403
- const c = Ct.test(u) ? u.replace(Ct, "$1") : u;
404
- if (!c.match(/\S*Error: /)) {
405
- for (const f of e) {
406
- const d = f(c);
407
- if (d) {
408
- i.push(d);
409
- break;
410
- }
411
- }
412
- if (i.length >= Wt + s)
413
- break;
414
- }
415
- }
416
- return ve(i.slice(s));
417
- };
418
- }
419
- function xr(t) {
420
- return Array.isArray(t) ? je(...t) : t;
421
- }
422
- function ve(t) {
423
- if (!t.length)
424
- return [];
425
- const e = Array.from(t);
426
- return /sentryWrapped/.test(z(e).function || "") && e.pop(), e.reverse(), kt.test(z(e).function || "") && (e.pop(), kt.test(z(e).function || "") && e.pop()), e.slice(0, Wt).map((n) => ({
427
- ...n,
428
- filename: n.filename || z(e).filename,
429
- function: n.function || Ue
430
- }));
431
- }
432
- function z(t) {
433
- return t[t.length - 1] || {};
434
- }
435
- const tt = "<anonymous>";
436
- function Fe(t) {
437
- try {
438
- return !t || typeof t != "function" ? tt : t.name || tt;
439
- } catch {
440
- return tt;
441
- }
442
- }
443
- function Pr(t) {
444
- const e = t.exception;
445
- if (e) {
446
- const n = [];
447
- try {
448
- return e.values.forEach((r) => {
449
- r.stacktrace.frames && n.push(...r.stacktrace.frames);
450
- }), n;
451
- } catch {
452
- return;
453
- }
454
- }
455
- }
456
- const Xt = 1e3;
457
- function mt() {
458
- return Date.now() / Xt;
459
- }
460
- function Ge() {
461
- const { performance: t } = h;
462
- if (!t || !t.now)
463
- return mt;
464
- const e = Date.now() - t.now(), n = t.timeOrigin == null ? e : t.timeOrigin;
465
- return () => (n + t.now()) / Xt;
466
- }
467
- const P = Ge(), Mr = (() => {
468
- const { performance: t } = h;
469
- if (!t || !t.now)
470
- return;
471
- const 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;
472
- return i || c ? s <= u ? t.timeOrigin : o : r;
473
- })();
474
- function Be() {
475
- const t = typeof WeakSet == "function", e = t ? /* @__PURE__ */ new WeakSet() : [];
476
- function n(s) {
477
- if (t)
478
- return e.has(s) ? !0 : (e.add(s), !1);
479
- for (let i = 0; i < e.length; i++)
480
- if (e[i] === s)
481
- return !0;
482
- return e.push(s), !1;
483
- }
484
- function r(s) {
485
- if (t)
486
- e.delete(s);
487
- else
488
- for (let i = 0; i < e.length; i++)
489
- if (e[i] === s) {
490
- e.splice(i, 1);
491
- break;
492
- }
493
- }
494
- return [n, r];
495
- }
496
- function _() {
497
- const t = h, e = t.crypto || t.msCrypto;
498
- let n = () => Math.random() * 16;
499
- try {
500
- if (e && e.randomUUID)
501
- return e.randomUUID().replace(/-/g, "");
502
- e && e.getRandomValues && (n = () => {
503
- const r = new Uint8Array(1);
504
- return e.getRandomValues(r), r[0];
505
- });
506
- } catch {
507
- }
508
- return ("10000000100040008000" + 1e11).replace(
509
- /[018]/g,
510
- (r) => (
511
- // eslint-disable-next-line no-bitwise
512
- (r ^ (n() & 15) >> r / 4).toString(16)
513
- )
514
- );
515
- }
516
- function Qt(t) {
517
- return t.exception && t.exception.values ? t.exception.values[0] : void 0;
518
- }
519
- function Lr(t) {
520
- const { message: e, event_id: n } = t;
521
- if (e)
522
- return e;
523
- const r = Qt(t);
524
- return r ? r.type && r.value ? `${r.type}: ${r.value}` : r.type || r.value || n || "<unknown>" : n || "<unknown>";
525
- }
526
- function Ur(t, e, n) {
527
- const r = t.exception = t.exception || {}, s = r.values = r.values || [], i = s[0] = s[0] || {};
528
- i.value || (i.value = e || ""), i.type || (i.type = n || "Error");
529
- }
530
- function He(t, e) {
531
- const n = Qt(t);
532
- if (!n)
533
- return;
534
- const r = { type: "generic", handled: !0 }, s = n.mechanism;
535
- if (n.mechanism = { ...r, ...s, ...e }, e && "data" in e) {
536
- const i = { ...s && s.data, ...e.data };
537
- n.mechanism.data = i;
538
- }
539
- }
540
- function jr(t) {
541
- if (t && t.__sentry_captured__)
542
- return !0;
543
- try {
544
- D(t, "__sentry_captured__", !0);
545
- } catch {
546
- }
547
- return !1;
548
- }
549
- function Ye(t) {
550
- return Array.isArray(t) ? t : [t];
551
- }
552
- function R(t, e = 100, n = 1 / 0) {
553
- try {
554
- return rt("", t, e, n);
555
- } catch (r) {
556
- return { ERROR: `**non-serializable** (${r})` };
557
- }
558
- }
559
- function Je(t, e = 3, n = 100 * 1024) {
560
- const r = R(t, e);
561
- return Ve(r) > n ? Je(t, e - 1, n) : r;
562
- }
563
- function rt(t, e, n = 1 / 0, r = 1 / 0, s = Be()) {
564
- const [i, o] = s;
565
- if (e == null || // this matches null and undefined -> eqeq not eqeqeq
566
- ["number", "boolean", "string"].includes(typeof e) && !Number.isNaN(e))
567
- return e;
568
- const a = Ke(t, e);
569
- if (!a.startsWith("[object "))
570
- return a;
571
- if (e.__sentry_skip_normalization__)
572
- return e;
573
- const u = typeof e.__sentry_override_normalization_depth__ == "number" ? e.__sentry_override_normalization_depth__ : n;
574
- if (u === 0)
575
- return a.replace("object ", "");
576
- if (i(e))
577
- return "[Circular ~]";
578
- const c = e;
579
- if (c && typeof c.toJSON == "function")
580
- try {
581
- const g = c.toJSON();
582
- return rt("", g, u - 1, r, s);
583
- } catch {
584
- }
585
- const f = Array.isArray(e) ? [] : {};
586
- let d = 0;
587
- const l = Vt(e);
588
- for (const g in l) {
589
- if (!Object.prototype.hasOwnProperty.call(l, g))
590
- continue;
591
- if (d >= r) {
592
- f[g] = "[MaxProperties ~]";
593
- break;
594
- }
595
- const w = l[g];
596
- f[g] = rt(g, w, u - 1, r, s), d++;
597
- }
598
- return o(e), f;
599
- }
600
- function Ke(t, e) {
601
- try {
602
- if (t === "domain" && e && typeof e == "object" && e._events)
603
- return "[Domain]";
604
- if (t === "domainEmitter")
605
- return "[DomainEmitter]";
606
- if (typeof global < "u" && e === global)
607
- return "[Global]";
608
- if (typeof window < "u" && e === window)
609
- return "[Window]";
610
- if (typeof document < "u" && e === document)
611
- return "[Document]";
612
- if (zt(e))
613
- return "[VueViewModel]";
614
- if (Ne(e))
615
- return "[SyntheticEvent]";
616
- if (typeof e == "number" && e !== e)
617
- return "[NaN]";
618
- if (typeof e == "function")
619
- return `[Function: ${Fe(e)}]`;
620
- if (typeof e == "symbol")
621
- return `[${String(e)}]`;
622
- if (typeof e == "bigint")
623
- return `[BigInt: ${String(e)}]`;
624
- const n = ze(e);
625
- return /^HTML(\w*)Element$/.test(n) ? `[HTMLElement: ${n}]` : `[object ${n}]`;
626
- } catch (n) {
627
- return `**non-serializable** (${n})`;
628
- }
629
- }
630
- function ze(t) {
631
- const e = Object.getPrototypeOf(t);
632
- return e ? e.constructor.name : "null prototype";
633
- }
634
- function qe(t) {
635
- return ~-encodeURI(t).split(/%..|./).length;
636
- }
637
- function Ve(t) {
638
- return qe(JSON.stringify(t));
639
- }
640
- var A;
641
- (function(t) {
642
- t[t.PENDING = 0] = "PENDING";
643
- const n = 1;
644
- t[t.RESOLVED = n] = "RESOLVED";
645
- const r = 2;
646
- t[t.REJECTED = r] = "REJECTED";
647
- })(A || (A = {}));
648
- function vr(t) {
649
- return new T((e) => {
650
- e(t);
651
- });
652
- }
653
- function Fr(t) {
654
- return new T((e, n) => {
655
- n(t);
656
- });
657
- }
658
- class T {
659
- constructor(e) {
660
- T.prototype.__init.call(this), T.prototype.__init2.call(this), T.prototype.__init3.call(this), T.prototype.__init4.call(this), this._state = A.PENDING, this._handlers = [];
661
- try {
662
- e(this._resolve, this._reject);
663
- } catch (n) {
664
- this._reject(n);
665
- }
666
- }
667
- /** JSDoc */
668
- then(e, n) {
669
- return new T((r, s) => {
670
- this._handlers.push([
671
- !1,
672
- (i) => {
673
- if (!e)
674
- r(i);
675
- else
676
- try {
677
- r(e(i));
678
- } catch (o) {
679
- s(o);
680
- }
681
- },
682
- (i) => {
683
- if (!n)
684
- s(i);
685
- else
686
- try {
687
- r(n(i));
688
- } catch (o) {
689
- s(o);
690
- }
691
- }
692
- ]), this._executeHandlers();
693
- });
694
- }
695
- /** JSDoc */
696
- catch(e) {
697
- return this.then((n) => n, e);
698
- }
699
- /** JSDoc */
700
- finally(e) {
701
- return new T((n, r) => {
702
- let s, i;
703
- return this.then(
704
- (o) => {
705
- i = !1, s = o, e && e();
706
- },
707
- (o) => {
708
- i = !0, s = o, e && e();
709
- }
710
- ).then(() => {
711
- if (i) {
712
- r(s);
713
- return;
714
- }
715
- n(s);
716
- });
717
- });
718
- }
719
- /** JSDoc */
720
- __init() {
721
- this._resolve = (e) => {
722
- this._setResult(A.RESOLVED, e);
723
- };
724
- }
725
- /** JSDoc */
726
- __init2() {
727
- this._reject = (e) => {
728
- this._setResult(A.REJECTED, e);
729
- };
730
- }
731
- /** JSDoc */
732
- __init3() {
733
- this._setResult = (e, n) => {
734
- if (this._state === A.PENDING) {
735
- if (lt(n)) {
736
- n.then(this._resolve, this._reject);
737
- return;
738
- }
739
- this._state = e, this._value = n, this._executeHandlers();
740
- }
741
- };
742
- }
743
- /** JSDoc */
744
- __init4() {
745
- this._executeHandlers = () => {
746
- if (this._state === A.PENDING)
747
- return;
748
- const e = this._handlers.slice();
749
- this._handlers = [], e.forEach((n) => {
750
- n[0] || (this._state === A.RESOLVED && n[1](this._value), this._state === A.REJECTED && n[2](this._value), n[0] = !0);
751
- });
752
- };
753
- }
754
- }
755
- const Gr = "baggage", Zt = "sentry-", We = /^sentry-/, Xe = 8192;
756
- function te(t) {
757
- const e = Qe(t);
758
- if (!e)
759
- return;
760
- const n = Object.entries(e).reduce((r, [s, i]) => {
761
- if (s.match(We)) {
762
- const o = s.slice(Zt.length);
763
- r[o] = i;
764
- }
765
- return r;
766
- }, {});
767
- if (Object.keys(n).length > 0)
768
- return n;
769
- }
770
- function Br(t) {
771
- if (!t)
772
- return;
773
- const e = Object.entries(t).reduce(
774
- (n, [r, s]) => (s && (n[`${Zt}${r}`] = s), n),
775
- {}
776
- );
777
- return Ze(e);
778
- }
779
- function Qe(t) {
780
- if (!(!t || !q(t) && !Array.isArray(t)))
781
- return Array.isArray(t) ? t.reduce((e, n) => {
782
- const r = wt(n);
783
- return Object.entries(r).forEach(([s, i]) => {
784
- e[s] = i;
785
- }), e;
786
- }, {}) : wt(t);
787
- }
788
- function wt(t) {
789
- return t.split(",").map((e) => e.split("=").map((n) => decodeURIComponent(n.trim()))).reduce((e, [n, r]) => (n && r && (e[n] = r), e), {});
790
- }
791
- function Ze(t) {
792
- if (Object.keys(t).length !== 0)
793
- return Object.entries(t).reduce((e, [n, r], s) => {
794
- const i = `${encodeURIComponent(n)}=${encodeURIComponent(r)}`, o = s === 0 ? i : `${e},${i}`;
795
- return o.length > Xe ? (X && p.warn(
796
- `Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`
797
- ), e) : o;
798
- }, "");
799
- }
800
- const tn = new RegExp(
801
- "^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$"
802
- // whitespace
803
- );
804
- function en(t) {
805
- if (!t)
806
- return;
807
- const e = t.match(tn);
808
- if (!e)
809
- return;
810
- let n;
811
- return e[3] === "1" ? n = !0 : e[3] === "0" && (n = !1), {
812
- traceId: e[1],
813
- parentSampled: n,
814
- parentSpanId: e[2]
815
- };
816
- }
817
- function Hr(t, e) {
818
- const n = en(t), r = te(e), { traceId: s, parentSpanId: i, parentSampled: o } = n || {};
819
- return n ? {
820
- traceId: s || _(),
821
- parentSpanId: i || _().substring(16),
822
- spanId: _().substring(16),
823
- sampled: o,
824
- dsc: r || {}
825
- // If we have traceparent data but no DSC it means we are not head of trace and we must freeze it
826
- } : {
827
- traceId: s || _(),
828
- spanId: _().substring(16)
829
- };
830
- }
831
- function nn(t = _(), e = _().substring(16), n) {
832
- let r = "";
833
- return n !== void 0 && (r = n ? "-1" : "-0"), `${t}-${e}${r}`;
834
- }
835
- function St(t, e = []) {
836
- return [t, e];
837
- }
838
- function Yr(t, e) {
839
- const [n, r] = t;
840
- return [n, [...r, e]];
841
- }
842
- function Jr(t, e) {
843
- const n = t[1];
844
- for (const r of n) {
845
- const s = r[0].type;
846
- if (e(r, s))
847
- return !0;
848
- }
849
- return !1;
850
- }
851
- function st(t) {
852
- return h.__SENTRY__ && h.__SENTRY__.encodePolyfill ? h.__SENTRY__.encodePolyfill(t) : new TextEncoder().encode(t);
853
- }
854
- function Kr(t) {
855
- const [e, n] = t;
856
- let r = JSON.stringify(e);
857
- function s(i) {
858
- typeof r == "string" ? r = typeof i == "string" ? r + i : [st(r), i] : r.push(typeof i == "string" ? st(i) : i);
859
- }
860
- for (const i of n) {
861
- const [o, a] = i;
862
- if (s(`
863
- ${JSON.stringify(o)}
864
- `), typeof a == "string" || a instanceof Uint8Array)
865
- s(a);
866
- else {
867
- let u;
868
- try {
869
- u = JSON.stringify(a);
870
- } catch {
871
- u = JSON.stringify(R(a));
872
- }
873
- s(u);
874
- }
875
- }
876
- return typeof r == "string" ? r : rn(r);
877
- }
878
- function rn(t) {
879
- const e = t.reduce((s, i) => s + i.length, 0), n = new Uint8Array(e);
880
- let r = 0;
881
- for (const s of t)
882
- n.set(s, r), r += s.length;
883
- return n;
884
- }
885
- function sn(t) {
886
- return [{
887
- type: "span"
888
- }, t];
889
- }
890
- function zr(t) {
891
- const e = typeof t.data == "string" ? st(t.data) : t.data;
892
- return [
893
- m({
894
- type: "attachment",
895
- length: e.length,
896
- filename: t.filename,
897
- content_type: t.contentType,
898
- attachment_type: t.attachmentType
899
- }),
900
- e
901
- ];
902
- }
903
- const on = {
904
- session: "session",
905
- sessions: "session",
906
- attachment: "attachment",
907
- transaction: "transaction",
908
- event: "error",
909
- client_report: "internal",
910
- user_report: "default",
911
- profile: "profile",
912
- profile_chunk: "profile",
913
- replay_event: "replay",
914
- replay_recording: "replay",
915
- check_in: "monitor",
916
- feedback: "feedback",
917
- span: "span",
918
- statsd: "metric_bucket"
919
- };
920
- function qr(t) {
921
- return on[t];
922
- }
923
- function ee(t) {
924
- if (!t || !t.sdk)
925
- return;
926
- const { name: e, version: n } = t.sdk;
927
- return { name: e, version: n };
928
- }
929
- function an(t, e, n, r) {
930
- const s = t.sdkProcessingMetadata && t.sdkProcessingMetadata.dynamicSamplingContext;
931
- return {
932
- event_id: t.event_id,
933
- sent_at: (/* @__PURE__ */ new Date()).toISOString(),
934
- ...e && { sdk: e },
935
- ...!!n && r && { dsn: gt(r) },
936
- ...s && {
937
- trace: m({ ...s })
938
- }
939
- };
940
- }
941
- function $t() {
942
- return {
943
- traceId: _(),
944
- spanId: _().substring(16)
945
- };
946
- }
947
- const y = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__;
948
- function U() {
949
- return yt(h), h;
950
- }
951
- function yt(t) {
952
- const e = t.__SENTRY__ = t.__SENTRY__ || {};
953
- return e.version = e.version || B, e[B] = e[B] || {};
954
- }
955
- function cn(t) {
956
- const e = P(), n = {
957
- sid: _(),
958
- init: !0,
959
- timestamp: e,
960
- started: e,
961
- duration: 0,
962
- status: "ok",
963
- errors: 0,
964
- ignoreDuration: !1,
965
- toJSON: () => fn(n)
966
- };
967
- return t && Q(n, t), n;
968
- }
969
- function Q(t, e = {}) {
970
- if (e.user && (!t.ipAddress && e.user.ip_address && (t.ipAddress = e.user.ip_address), !t.did && !e.did && (t.did = e.user.id || e.user.email || e.user.username)), t.timestamp = e.timestamp || P(), e.abnormal_mechanism && (t.abnormal_mechanism = e.abnormal_mechanism), e.ignoreDuration && (t.ignoreDuration = e.ignoreDuration), e.sid && (t.sid = e.sid.length === 32 ? e.sid : _()), e.init !== void 0 && (t.init = e.init), !t.did && e.did && (t.did = `${e.did}`), typeof e.started == "number" && (t.started = e.started), t.ignoreDuration)
971
- t.duration = void 0;
972
- else if (typeof e.duration == "number")
973
- t.duration = e.duration;
974
- else {
975
- const n = t.timestamp - t.started;
976
- t.duration = n >= 0 ? n : 0;
977
- }
978
- e.release && (t.release = e.release), e.environment && (t.environment = e.environment), !t.ipAddress && e.ipAddress && (t.ipAddress = e.ipAddress), !t.userAgent && e.userAgent && (t.userAgent = e.userAgent), typeof e.errors == "number" && (t.errors = e.errors), e.status && (t.status = e.status);
979
- }
980
- function un(t, e) {
981
- let n = {};
982
- e ? n = { status: e } : t.status === "ok" && (n = { status: "exited" }), Q(t, n);
983
- }
984
- function fn(t) {
985
- return m({
986
- sid: `${t.sid}`,
987
- init: t.init,
988
- // Make sure that sec is converted to ms for date constructor
989
- started: new Date(t.started * 1e3).toISOString(),
990
- timestamp: new Date(t.timestamp * 1e3).toISOString(),
991
- status: t.status,
992
- errors: t.errors,
993
- did: typeof t.did == "number" || typeof t.did == "string" ? `${t.did}` : void 0,
994
- duration: t.duration,
995
- abnormal_mechanism: t.abnormal_mechanism,
996
- attrs: {
997
- release: t.release,
998
- environment: t.environment,
999
- ip_address: t.ipAddress,
1000
- user_agent: t.userAgent
1001
- }
1002
- });
1003
- }
1004
- const it = "_sentrySpan";
1005
- function ot(t, e) {
1006
- e ? D(t, it, e) : delete t[it];
1007
- }
1008
- function V(t) {
1009
- return t[it];
1010
- }
1011
- const dn = 100;
1012
- class Et {
1013
- /** Flag if notifying is happening. */
1014
- /** Callback for client to receive scope changes. */
1015
- /** Callback list that will be called during event processing. */
1016
- /** Array of breadcrumbs. */
1017
- /** User */
1018
- /** Tags */
1019
- /** Extra */
1020
- /** Contexts */
1021
- /** Attachments */
1022
- /** Propagation Context for distributed tracing */
1023
- /**
1024
- * A place to stash data which is needed at some point in the SDK's event processing pipeline but which shouldn't get
1025
- * sent to Sentry
1026
- */
1027
- /** Fingerprint */
1028
- /** Severity */
1029
- /**
1030
- * Transaction Name
1031
- *
1032
- * IMPORTANT: The transaction name on the scope has nothing to do with root spans/transaction objects.
1033
- * It's purpose is to assign a transaction to the scope that's added to non-transaction events.
1034
- */
1035
- /** Session */
1036
- /** Request Mode Session Status */
1037
- /** The client on this scope */
1038
- /** Contains the last event id of a captured event. */
1039
- // NOTE: Any field which gets added here should get added not only to the constructor but also to the `clone` method.
1040
- constructor() {
1041
- this._notifyingListeners = !1, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._attachments = [], this._user = {}, this._tags = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {}, this._propagationContext = $t();
1042
- }
1043
- /**
1044
- * @inheritDoc
1045
- */
1046
- clone() {
1047
- const e = new Et();
1048
- return e._breadcrumbs = [...this._breadcrumbs], e._tags = { ...this._tags }, e._extra = { ...this._extra }, e._contexts = { ...this._contexts }, e._user = this._user, e._level = this._level, e._session = this._session, e._transactionName = this._transactionName, e._fingerprint = this._fingerprint, e._eventProcessors = [...this._eventProcessors], e._requestSession = this._requestSession, e._attachments = [...this._attachments], e._sdkProcessingMetadata = { ...this._sdkProcessingMetadata }, e._propagationContext = { ...this._propagationContext }, e._client = this._client, e._lastEventId = this._lastEventId, ot(e, V(this)), e;
1049
- }
1050
- /**
1051
- * @inheritDoc
1052
- */
1053
- setClient(e) {
1054
- this._client = e;
1055
- }
1056
- /**
1057
- * @inheritDoc
1058
- */
1059
- setLastEventId(e) {
1060
- this._lastEventId = e;
1061
- }
1062
- /**
1063
- * @inheritDoc
1064
- */
1065
- getClient() {
1066
- return this._client;
1067
- }
1068
- /**
1069
- * @inheritDoc
1070
- */
1071
- lastEventId() {
1072
- return this._lastEventId;
1073
- }
1074
- /**
1075
- * @inheritDoc
1076
- */
1077
- addScopeListener(e) {
1078
- this._scopeListeners.push(e);
1079
- }
1080
- /**
1081
- * @inheritDoc
1082
- */
1083
- addEventProcessor(e) {
1084
- return this._eventProcessors.push(e), this;
1085
- }
1086
- /**
1087
- * @inheritDoc
1088
- */
1089
- setUser(e) {
1090
- return this._user = e || {
1091
- email: void 0,
1092
- id: void 0,
1093
- ip_address: void 0,
1094
- username: void 0
1095
- }, this._session && Q(this._session, { user: e }), this._notifyScopeListeners(), this;
1096
- }
1097
- /**
1098
- * @inheritDoc
1099
- */
1100
- getUser() {
1101
- return this._user;
1102
- }
1103
- /**
1104
- * @inheritDoc
1105
- */
1106
- getRequestSession() {
1107
- return this._requestSession;
1108
- }
1109
- /**
1110
- * @inheritDoc
1111
- */
1112
- setRequestSession(e) {
1113
- return this._requestSession = e, this;
1114
- }
1115
- /**
1116
- * @inheritDoc
1117
- */
1118
- setTags(e) {
1119
- return this._tags = {
1120
- ...this._tags,
1121
- ...e
1122
- }, this._notifyScopeListeners(), this;
1123
- }
1124
- /**
1125
- * @inheritDoc
1126
- */
1127
- setTag(e, n) {
1128
- return this._tags = { ...this._tags, [e]: n }, this._notifyScopeListeners(), this;
1129
- }
1130
- /**
1131
- * @inheritDoc
1132
- */
1133
- setExtras(e) {
1134
- return this._extra = {
1135
- ...this._extra,
1136
- ...e
1137
- }, this._notifyScopeListeners(), this;
1138
- }
1139
- /**
1140
- * @inheritDoc
1141
- */
1142
- setExtra(e, n) {
1143
- return this._extra = { ...this._extra, [e]: n }, this._notifyScopeListeners(), this;
1144
- }
1145
- /**
1146
- * @inheritDoc
1147
- */
1148
- setFingerprint(e) {
1149
- return this._fingerprint = e, this._notifyScopeListeners(), this;
1150
- }
1151
- /**
1152
- * @inheritDoc
1153
- */
1154
- setLevel(e) {
1155
- return this._level = e, this._notifyScopeListeners(), this;
1156
- }
1157
- /**
1158
- * @inheritDoc
1159
- */
1160
- setTransactionName(e) {
1161
- return this._transactionName = e, this._notifyScopeListeners(), this;
1162
- }
1163
- /**
1164
- * @inheritDoc
1165
- */
1166
- setContext(e, n) {
1167
- return n === null ? delete this._contexts[e] : this._contexts[e] = n, this._notifyScopeListeners(), this;
1168
- }
1169
- /**
1170
- * @inheritDoc
1171
- */
1172
- setSession(e) {
1173
- return e ? this._session = e : delete this._session, this._notifyScopeListeners(), this;
1174
- }
1175
- /**
1176
- * @inheritDoc
1177
- */
1178
- getSession() {
1179
- return this._session;
1180
- }
1181
- /**
1182
- * @inheritDoc
1183
- */
1184
- update(e) {
1185
- if (!e)
1186
- return this;
1187
- const n = typeof e == "function" ? e(this) : e, [r, s] = n instanceof C ? [n.getScopeData(), n.getRequestSession()] : pt(n) ? [e, e.requestSession] : [], { tags: i, extra: o, user: a, contexts: u, level: c, fingerprint: f = [], propagationContext: d } = r || {};
1188
- return this._tags = { ...this._tags, ...i }, this._extra = { ...this._extra, ...o }, this._contexts = { ...this._contexts, ...u }, a && Object.keys(a).length && (this._user = a), c && (this._level = c), f.length && (this._fingerprint = f), d && (this._propagationContext = d), s && (this._requestSession = s), this;
1189
- }
1190
- /**
1191
- * @inheritDoc
1192
- */
1193
- clear() {
1194
- return this._breadcrumbs = [], this._tags = {}, this._extra = {}, this._user = {}, this._contexts = {}, this._level = void 0, this._transactionName = void 0, this._fingerprint = void 0, this._requestSession = void 0, this._session = void 0, ot(this, void 0), this._attachments = [], this._propagationContext = $t(), this._notifyScopeListeners(), this;
1195
- }
1196
- /**
1197
- * @inheritDoc
1198
- */
1199
- addBreadcrumb(e, n) {
1200
- const r = typeof n == "number" ? n : dn;
1201
- if (r <= 0)
1202
- return this;
1203
- const s = {
1204
- timestamp: mt(),
1205
- ...e
1206
- }, i = this._breadcrumbs;
1207
- return i.push(s), this._breadcrumbs = i.length > r ? i.slice(-r) : i, this._notifyScopeListeners(), this;
1208
- }
1209
- /**
1210
- * @inheritDoc
1211
- */
1212
- getLastBreadcrumb() {
1213
- return this._breadcrumbs[this._breadcrumbs.length - 1];
1214
- }
1215
- /**
1216
- * @inheritDoc
1217
- */
1218
- clearBreadcrumbs() {
1219
- return this._breadcrumbs = [], this._notifyScopeListeners(), this;
1220
- }
1221
- /**
1222
- * @inheritDoc
1223
- */
1224
- addAttachment(e) {
1225
- return this._attachments.push(e), this;
1226
- }
1227
- /**
1228
- * @inheritDoc
1229
- */
1230
- clearAttachments() {
1231
- return this._attachments = [], this;
1232
- }
1233
- /** @inheritDoc */
1234
- getScopeData() {
1235
- return {
1236
- breadcrumbs: this._breadcrumbs,
1237
- attachments: this._attachments,
1238
- contexts: this._contexts,
1239
- tags: this._tags,
1240
- extra: this._extra,
1241
- user: this._user,
1242
- level: this._level,
1243
- fingerprint: this._fingerprint || [],
1244
- eventProcessors: this._eventProcessors,
1245
- propagationContext: this._propagationContext,
1246
- sdkProcessingMetadata: this._sdkProcessingMetadata,
1247
- transactionName: this._transactionName,
1248
- span: V(this)
1249
- };
1250
- }
1251
- /**
1252
- * @inheritDoc
1253
- */
1254
- setSDKProcessingMetadata(e) {
1255
- return this._sdkProcessingMetadata = { ...this._sdkProcessingMetadata, ...e }, this;
1256
- }
1257
- /**
1258
- * @inheritDoc
1259
- */
1260
- setPropagationContext(e) {
1261
- return this._propagationContext = e, this;
1262
- }
1263
- /**
1264
- * @inheritDoc
1265
- */
1266
- getPropagationContext() {
1267
- return this._propagationContext;
1268
- }
1269
- /**
1270
- * @inheritDoc
1271
- */
1272
- captureException(e, n) {
1273
- const r = n && n.event_id ? n.event_id : _();
1274
- if (!this._client)
1275
- return p.warn("No client configured on scope - will not capture exception!"), r;
1276
- const s = new Error("Sentry syntheticException");
1277
- return this._client.captureException(
1278
- e,
1279
- {
1280
- originalException: e,
1281
- syntheticException: s,
1282
- ...n,
1283
- event_id: r
1284
- },
1285
- this
1286
- ), r;
1287
- }
1288
- /**
1289
- * @inheritDoc
1290
- */
1291
- captureMessage(e, n, r) {
1292
- const s = r && r.event_id ? r.event_id : _();
1293
- if (!this._client)
1294
- return p.warn("No client configured on scope - will not capture message!"), s;
1295
- const i = new Error(e);
1296
- return this._client.captureMessage(
1297
- e,
1298
- n,
1299
- {
1300
- originalException: e,
1301
- syntheticException: i,
1302
- ...r,
1303
- event_id: s
1304
- },
1305
- this
1306
- ), s;
1307
- }
1308
- /**
1309
- * @inheritDoc
1310
- */
1311
- captureEvent(e, n) {
1312
- const r = n && n.event_id ? n.event_id : _();
1313
- return this._client ? (this._client.captureEvent(e, { ...n, event_id: r }, this), r) : (p.warn("No client configured on scope - will not capture event!"), r);
1314
- }
1315
- /**
1316
- * This will be called on every set call.
1317
- */
1318
- _notifyScopeListeners() {
1319
- this._notifyingListeners || (this._notifyingListeners = !0, this._scopeListeners.forEach((e) => {
1320
- e(this);
1321
- }), this._notifyingListeners = !1);
1322
- }
1323
- }
1324
- const C = Et;
1325
- function pn() {
1326
- return _t("defaultCurrentScope", () => new C());
1327
- }
1328
- function ln() {
1329
- return _t("defaultIsolationScope", () => new C());
1330
- }
1331
- class _n {
1332
- constructor(e, n) {
1333
- let r;
1334
- e ? r = e : r = new C();
1335
- let s;
1336
- n ? s = n : s = new C(), this._stack = [{ scope: r }], this._isolationScope = s;
1337
- }
1338
- /**
1339
- * Fork a scope for the stack.
1340
- */
1341
- withScope(e) {
1342
- const n = this._pushScope();
1343
- let r;
1344
- try {
1345
- r = e(n);
1346
- } catch (s) {
1347
- throw this._popScope(), s;
1348
- }
1349
- return lt(r) ? r.then(
1350
- (s) => (this._popScope(), s),
1351
- (s) => {
1352
- throw this._popScope(), s;
1353
- }
1354
- ) : (this._popScope(), r);
1355
- }
1356
- /**
1357
- * Get the client of the stack.
1358
- */
1359
- getClient() {
1360
- return this.getStackTop().client;
1361
- }
1362
- /**
1363
- * Returns the scope of the top stack.
1364
- */
1365
- getScope() {
1366
- return this.getStackTop().scope;
1367
- }
1368
- /**
1369
- * Get the isolation scope for the stack.
1370
- */
1371
- getIsolationScope() {
1372
- return this._isolationScope;
1373
- }
1374
- /**
1375
- * Returns the topmost scope layer in the order domain > local > process.
1376
- */
1377
- getStackTop() {
1378
- return this._stack[this._stack.length - 1];
1379
- }
1380
- /**
1381
- * Push a scope to the stack.
1382
- */
1383
- _pushScope() {
1384
- const e = this.getScope().clone();
1385
- return this._stack.push({
1386
- client: this.getClient(),
1387
- scope: e
1388
- }), e;
1389
- }
1390
- /**
1391
- * Pop a scope from the stack.
1392
- */
1393
- _popScope() {
1394
- return this._stack.length <= 1 ? !1 : !!this._stack.pop();
1395
- }
1396
- }
1397
- function M() {
1398
- const t = U(), e = yt(t);
1399
- return e.stack = e.stack || new _n(pn(), ln());
1400
- }
1401
- function hn(t) {
1402
- return M().withScope(t);
1403
- }
1404
- function gn(t, e) {
1405
- const n = M();
1406
- return n.withScope(() => (n.getStackTop().scope = t, e(t)));
1407
- }
1408
- function xt(t) {
1409
- return M().withScope(() => t(M().getIsolationScope()));
1410
- }
1411
- function mn() {
1412
- return {
1413
- withIsolationScope: xt,
1414
- withScope: hn,
1415
- withSetScope: gn,
1416
- withSetIsolationScope: (t, e) => xt(e),
1417
- getCurrentScope: () => M().getScope(),
1418
- getIsolationScope: () => M().getIsolationScope()
1419
- };
1420
- }
1421
- function J(t) {
1422
- const e = yt(t);
1423
- return e.acs ? e.acs : mn();
1424
- }
1425
- function I() {
1426
- const t = U();
1427
- return J(t).getCurrentScope();
1428
- }
1429
- function j() {
1430
- const t = U();
1431
- return J(t).getIsolationScope();
1432
- }
1433
- function Sn() {
1434
- return _t("globalScope", () => new C());
1435
- }
1436
- function ne(...t) {
1437
- const e = U(), n = J(e);
1438
- if (t.length === 2) {
1439
- const [r, s] = t;
1440
- return r ? n.withSetScope(r, s) : n.withScope(s);
1441
- }
1442
- return n.withScope(t[0]);
1443
- }
1444
- function N() {
1445
- return I().getClient();
1446
- }
1447
- const yn = "_sentryMetrics";
1448
- function at(t) {
1449
- const e = t[yn];
1450
- if (!e)
1451
- return;
1452
- const n = {};
1453
- for (const [, [r, s]] of e)
1454
- (n[r] || (n[r] = [])).push(m(s));
1455
- return n;
1456
- }
1457
- const bt = "sentry.source", re = "sentry.sample_rate", ct = "sentry.op", Y = "sentry.origin", Vr = "sentry.idle_span_finish_reason", se = "sentry.measurement_unit", ie = "sentry.measurement_value", En = "sentry.profile_id", bn = "sentry.exclusive_time", Tn = 0, oe = 1, S = 2;
1458
- function In(t) {
1459
- if (t < 400 && t >= 100)
1460
- return { code: oe };
1461
- if (t >= 400 && t < 500)
1462
- switch (t) {
1463
- case 401:
1464
- return { code: S, message: "unauthenticated" };
1465
- case 403:
1466
- return { code: S, message: "permission_denied" };
1467
- case 404:
1468
- return { code: S, message: "not_found" };
1469
- case 409:
1470
- return { code: S, message: "already_exists" };
1471
- case 413:
1472
- return { code: S, message: "failed_precondition" };
1473
- case 429:
1474
- return { code: S, message: "resource_exhausted" };
1475
- case 499:
1476
- return { code: S, message: "cancelled" };
1477
- default:
1478
- return { code: S, message: "invalid_argument" };
1479
- }
1480
- if (t >= 500 && t < 600)
1481
- switch (t) {
1482
- case 501:
1483
- return { code: S, message: "unimplemented" };
1484
- case 503:
1485
- return { code: S, message: "unavailable" };
1486
- case 504:
1487
- return { code: S, message: "deadline_exceeded" };
1488
- default:
1489
- return { code: S, message: "internal_error" };
1490
- }
1491
- return { code: S, message: "unknown_error" };
1492
- }
1493
- function Wr(t, e) {
1494
- t.setAttribute("http.response.status_code", e);
1495
- const n = In(e);
1496
- n.message !== "unknown_error" && t.setStatus(n);
1497
- }
1498
- const ae = 0, ce = 1;
1499
- function Nn(t) {
1500
- const { spanId: e, traceId: n } = t.spanContext(), { data: r, op: s, parent_span_id: i, status: o, origin: a } = E(t);
1501
- return m({
1502
- parent_span_id: i,
1503
- span_id: e,
1504
- trace_id: n,
1505
- data: r,
1506
- op: s,
1507
- status: o,
1508
- origin: a
1509
- });
1510
- }
1511
- function An(t) {
1512
- const { spanId: e, traceId: n } = t.spanContext(), { parent_span_id: r } = E(t);
1513
- return m({ parent_span_id: r, span_id: e, trace_id: n });
1514
- }
1515
- function Xr(t) {
1516
- const { traceId: e, spanId: n } = t.spanContext(), r = v(t);
1517
- return nn(e, n, r);
1518
- }
1519
- function x(t) {
1520
- return typeof t == "number" ? Pt(t) : Array.isArray(t) ? t[0] + t[1] / 1e9 : t instanceof Date ? Pt(t.getTime()) : P();
1521
- }
1522
- function Pt(t) {
1523
- return t > 9999999999 ? t / 1e3 : t;
1524
- }
1525
- function E(t) {
1526
- if (Rn(t))
1527
- return t.getSpanJSON();
1528
- try {
1529
- const { spanId: e, traceId: n } = t.spanContext();
1530
- if (On(t)) {
1531
- const { attributes: r, startTime: s, name: i, endTime: o, parentSpanId: a, status: u } = t;
1532
- return m({
1533
- span_id: e,
1534
- trace_id: n,
1535
- data: r,
1536
- description: i,
1537
- parent_span_id: a,
1538
- start_timestamp: x(s),
1539
- // This is [0,0] by default in OTEL, in which case we want to interpret this as no end time
1540
- timestamp: x(o) || void 0,
1541
- status: ue(u),
1542
- op: r[ct],
1543
- origin: r[Y],
1544
- _metrics_summary: at(t)
1545
- });
1546
- }
1547
- return {
1548
- span_id: e,
1549
- trace_id: n
1550
- };
1551
- } catch {
1552
- return {};
1553
- }
1554
- }
1555
- function On(t) {
1556
- const e = t;
1557
- return !!e.attributes && !!e.startTime && !!e.name && !!e.endTime && !!e.status;
1558
- }
1559
- function Rn(t) {
1560
- return typeof t.getSpanJSON == "function";
1561
- }
1562
- function v(t) {
1563
- const { traceFlags: e } = t.spanContext();
1564
- return e === ce;
1565
- }
1566
- function ue(t) {
1567
- if (!(!t || t.code === Tn))
1568
- return t.code === oe ? "ok" : t.message || "unknown_error";
1569
- }
1570
- const k = "_sentryChildSpans", ut = "_sentryRootSpan";
1571
- function fe(t, e) {
1572
- const n = t[ut] || t;
1573
- D(e, ut, n), t[k] ? t[k].add(e) : D(t, k, /* @__PURE__ */ new Set([e]));
1574
- }
1575
- function Qr(t, e) {
1576
- t[k] && t[k].delete(e);
1577
- }
1578
- function Dn(t) {
1579
- const e = /* @__PURE__ */ new Set();
1580
- function n(r) {
1581
- if (!e.has(r) && v(r)) {
1582
- e.add(r);
1583
- const s = r[k] ? Array.from(r[k]) : [];
1584
- for (const i of s)
1585
- n(i);
1586
- }
1587
- }
1588
- return n(t), Array.from(e);
1589
- }
1590
- function O(t) {
1591
- return t[ut] || t;
1592
- }
1593
- function ft() {
1594
- const t = U(), e = J(t);
1595
- return e.getActiveSpan ? e.getActiveSpan() : V(I());
1596
- }
1597
- const de = "_sentryScope", pe = "_sentryIsolationScope";
1598
- function Cn(t, e, n) {
1599
- t && (D(t, pe, n), D(t, de, e));
1600
- }
1601
- function Mt(t) {
1602
- return {
1603
- scope: t[de],
1604
- isolationScope: t[pe]
1605
- };
1606
- }
1607
- function le(t) {
1608
- if (typeof __SENTRY_TRACING__ == "boolean" && !__SENTRY_TRACING__)
1609
- return !1;
1610
- const e = t || kn();
1611
- return !!e && (e.enableTracing || "tracesSampleRate" in e || "tracesSampler" in e);
1612
- }
1613
- function kn() {
1614
- const t = N();
1615
- return t && t.getOptions();
1616
- }
1617
- class Tt {
1618
- constructor(e = {}) {
1619
- this._traceId = e.traceId || _(), this._spanId = e.spanId || _().substring(16);
1620
- }
1621
- /** @inheritdoc */
1622
- spanContext() {
1623
- return {
1624
- spanId: this._spanId,
1625
- traceId: this._traceId,
1626
- traceFlags: ae
1627
- };
1628
- }
1629
- /** @inheritdoc */
1630
- // eslint-disable-next-line @typescript-eslint/no-empty-function
1631
- end(e) {
1632
- }
1633
- /** @inheritdoc */
1634
- setAttribute(e, n) {
1635
- return this;
1636
- }
1637
- /** @inheritdoc */
1638
- setAttributes(e) {
1639
- return this;
1640
- }
1641
- /** @inheritdoc */
1642
- setStatus(e) {
1643
- return this;
1644
- }
1645
- /** @inheritdoc */
1646
- updateName(e) {
1647
- return this;
1648
- }
1649
- /** @inheritdoc */
1650
- isRecording() {
1651
- return !1;
1652
- }
1653
- /** @inheritdoc */
1654
- addEvent(e, n, r) {
1655
- return this;
1656
- }
1657
- /**
1658
- * This should generally not be used,
1659
- * but we need it for being comliant with the OTEL Span interface.
1660
- *
1661
- * @hidden
1662
- * @internal
1663
- */
1664
- addLink(e) {
1665
- return this;
1666
- }
1667
- /**
1668
- * This should generally not be used,
1669
- * but we need it for being comliant with the OTEL Span interface.
1670
- *
1671
- * @hidden
1672
- * @internal
1673
- */
1674
- addLinks(e) {
1675
- return this;
1676
- }
1677
- /**
1678
- * This should generally not be used,
1679
- * but we need it for being comliant with the OTEL Span interface.
1680
- *
1681
- * @hidden
1682
- * @internal
1683
- */
1684
- recordException(e, n) {
1685
- }
1686
- }
1687
- const It = "production", _e = "_frozenDsc";
1688
- function Lt(t, e) {
1689
- D(t, _e, e);
1690
- }
1691
- function wn(t, e) {
1692
- const n = e.getOptions(), { publicKey: r } = e.getDsn() || {}, s = m({
1693
- environment: n.environment || It,
1694
- release: n.release,
1695
- public_key: r,
1696
- trace_id: t
1697
- });
1698
- return e.emit("createDsc", s), s;
1699
- }
1700
- function Z(t) {
1701
- const e = N();
1702
- if (!e)
1703
- return {};
1704
- const n = wn(E(t).trace_id || "", e), r = O(t), s = r[_e];
1705
- if (s)
1706
- return s;
1707
- const i = r.spanContext().traceState, o = i && i.get("sentry.dsc"), a = o && te(o);
1708
- if (a)
1709
- return a;
1710
- const u = E(r), c = u.data || {}, f = c[re];
1711
- f != null && (n.sample_rate = `${f}`);
1712
- const d = c[bt], l = u.description;
1713
- return d !== "url" && l && (n.transaction = l), n.sampled = String(v(r)), e.emit("createDsc", n, r), n;
1714
- }
1715
- function $n(t) {
1716
- if (!y) return;
1717
- const { description: e = "< unknown name >", op: n = "< unknown op >", parent_span_id: r } = E(t), { spanId: s } = t.spanContext(), i = v(t), o = O(t), a = o === t, u = `[Tracing] Starting ${i ? "sampled" : "unsampled"} ${a ? "root " : ""}span`, c = [`op: ${n}`, `name: ${e}`, `ID: ${s}`];
1718
- if (r && c.push(`parent ID: ${r}`), !a) {
1719
- const { op: f, description: d } = E(o);
1720
- c.push(`root ID: ${o.spanContext().spanId}`), f && c.push(`root op: ${f}`), d && c.push(`root description: ${d}`);
1721
- }
1722
- p.log(`${u}
1723
- ${c.join(`
1724
- `)}`);
1725
- }
1726
- function xn(t) {
1727
- if (!y) return;
1728
- const { description: e = "< unknown name >", op: n = "< unknown op >" } = E(t), { spanId: r } = t.spanContext(), i = O(t) === t, o = `[Tracing] Finishing "${n}" ${i ? "root " : ""}span "${e}" with ID ${r}`;
1729
- p.log(o);
1730
- }
1731
- function Pn(t) {
1732
- if (typeof t == "boolean")
1733
- return Number(t);
1734
- const e = typeof t == "string" ? parseFloat(t) : t;
1735
- if (typeof e != "number" || isNaN(e) || e < 0 || e > 1) {
1736
- y && p.warn(
1737
- `[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(
1738
- t
1739
- )} of type ${JSON.stringify(typeof t)}.`
1740
- );
1741
- return;
1742
- }
1743
- return e;
1744
- }
1745
- function Mn(t, e) {
1746
- if (!le(t))
1747
- return [!1];
1748
- let n;
1749
- typeof t.tracesSampler == "function" ? n = t.tracesSampler(e) : e.parentSampled !== void 0 ? n = e.parentSampled : typeof t.tracesSampleRate < "u" ? n = t.tracesSampleRate : n = 1;
1750
- const r = Pn(n);
1751
- return r === void 0 ? (y && p.warn("[Tracing] Discarding transaction because of invalid sample rate."), [!1]) : r ? Math.random() < r ? [!0, r] : (y && p.log(
1752
- `[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(
1753
- n
1754
- )})`
1755
- ), [!1, r]) : (y && p.log(
1756
- `[Tracing] Discarding transaction because ${typeof t.tracesSampler == "function" ? "tracesSampler returned 0 or false" : "a negative sampling decision was inherited or tracesSampleRate is set to 0"}`
1757
- ), [!1, r]);
1758
- }
1759
- function Ln(t, e) {
1760
- return e && (t.sdk = t.sdk || {}, t.sdk.name = t.sdk.name || e.name, t.sdk.version = t.sdk.version || e.version, t.sdk.integrations = [...t.sdk.integrations || [], ...e.integrations || []], t.sdk.packages = [...t.sdk.packages || [], ...e.packages || []]), t;
1761
- }
1762
- function Zr(t, e, n, r) {
1763
- const s = ee(n), i = {
1764
- sent_at: (/* @__PURE__ */ new Date()).toISOString(),
1765
- ...s && { sdk: s },
1766
- ...!!r && e && { dsn: gt(e) }
1767
- }, o = "aggregates" in t ? [{ type: "sessions" }, t] : [{ type: "session" }, t.toJSON()];
1768
- return St(i, [o]);
1769
- }
1770
- function ts(t, e, n, r) {
1771
- const s = ee(n), i = t.type && t.type !== "replay_event" ? t.type : "event";
1772
- Ln(t, n && n.sdk);
1773
- const o = an(t, s, r, e);
1774
- return delete t.sdkProcessingMetadata, St(o, [[{ type: i }, t]]);
1775
- }
1776
- function Un(t, e) {
1777
- function n(f) {
1778
- return !!f.trace_id && !!f.public_key;
1779
- }
1780
- const r = Z(t[0]), s = e && e.getDsn(), i = e && e.getOptions().tunnel, o = {
1781
- sent_at: (/* @__PURE__ */ new Date()).toISOString(),
1782
- ...n(r) && { trace: r },
1783
- ...!!i && s && { dsn: gt(s) }
1784
- }, a = e && e.getOptions().beforeSendSpan, u = a ? (f) => a(E(f)) : (f) => E(f), c = [];
1785
- for (const f of t) {
1786
- const d = u(f);
1787
- d && c.push(sn(d));
1788
- }
1789
- return St(o, c);
1790
- }
1791
- function es(t, e, n) {
1792
- const r = ft(), s = r && O(r);
1793
- s && s.addEvent(t, {
1794
- [ie]: e,
1795
- [se]: n
1796
- });
1797
- }
1798
- function Ut(t) {
1799
- if (!t || t.length === 0)
1800
- return;
1801
- const e = {};
1802
- return t.forEach((n) => {
1803
- const r = n.attributes || {}, s = r[se], i = r[ie];
1804
- typeof s == "string" && typeof i == "number" && (e[n.name] = { value: i, unit: s });
1805
- }), e;
1806
- }
1807
- const jt = 1e3;
1808
- class Nt {
1809
- /** Epoch timestamp in seconds when the span started. */
1810
- /** Epoch timestamp in seconds when the span ended. */
1811
- /** Internal keeper of the status */
1812
- /** The timed events added to this span. */
1813
- /** if true, treat span as a standalone span (not part of a transaction) */
1814
- /**
1815
- * You should never call the constructor manually, always use `Sentry.startSpan()`
1816
- * or other span methods.
1817
- * @internal
1818
- * @hideconstructor
1819
- * @hidden
1820
- */
1821
- constructor(e = {}) {
1822
- this._traceId = e.traceId || _(), this._spanId = e.spanId || _().substring(16), this._startTime = e.startTimestamp || P(), this._attributes = {}, this.setAttributes({
1823
- [Y]: "manual",
1824
- [ct]: e.op,
1825
- ...e.attributes
1826
- }), this._name = e.name, e.parentSpanId && (this._parentSpanId = e.parentSpanId), "sampled" in e && (this._sampled = e.sampled), e.endTimestamp && (this._endTime = e.endTimestamp), this._events = [], this._isStandaloneSpan = e.isStandalone, this._endTime && this._onSpanEnded();
1827
- }
1828
- /**
1829
- * This should generally not be used,
1830
- * but it is needed for being compliant with the OTEL Span interface.
1831
- *
1832
- * @hidden
1833
- * @internal
1834
- */
1835
- addLink(e) {
1836
- return this;
1837
- }
1838
- /**
1839
- * This should generally not be used,
1840
- * but it is needed for being compliant with the OTEL Span interface.
1841
- *
1842
- * @hidden
1843
- * @internal
1844
- */
1845
- addLinks(e) {
1846
- return this;
1847
- }
1848
- /**
1849
- * This should generally not be used,
1850
- * but it is needed for being compliant with the OTEL Span interface.
1851
- *
1852
- * @hidden
1853
- * @internal
1854
- */
1855
- recordException(e, n) {
1856
- }
1857
- /** @inheritdoc */
1858
- spanContext() {
1859
- const { _spanId: e, _traceId: n, _sampled: r } = this;
1860
- return {
1861
- spanId: e,
1862
- traceId: n,
1863
- traceFlags: r ? ce : ae
1864
- };
1865
- }
1866
- /** @inheritdoc */
1867
- setAttribute(e, n) {
1868
- return n === void 0 ? delete this._attributes[e] : this._attributes[e] = n, this;
1869
- }
1870
- /** @inheritdoc */
1871
- setAttributes(e) {
1872
- return Object.keys(e).forEach((n) => this.setAttribute(n, e[n])), this;
1873
- }
1874
- /**
1875
- * This should generally not be used,
1876
- * but we need it for browser tracing where we want to adjust the start time afterwards.
1877
- * USE THIS WITH CAUTION!
1878
- *
1879
- * @hidden
1880
- * @internal
1881
- */
1882
- updateStartTime(e) {
1883
- this._startTime = x(e);
1884
- }
1885
- /**
1886
- * @inheritDoc
1887
- */
1888
- setStatus(e) {
1889
- return this._status = e, this;
1890
- }
1891
- /**
1892
- * @inheritDoc
1893
- */
1894
- updateName(e) {
1895
- return this._name = e, this;
1896
- }
1897
- /** @inheritdoc */
1898
- end(e) {
1899
- this._endTime || (this._endTime = x(e), xn(this), this._onSpanEnded());
1900
- }
1901
- /**
1902
- * Get JSON representation of this span.
1903
- *
1904
- * @hidden
1905
- * @internal This method is purely for internal purposes and should not be used outside
1906
- * of SDK code. If you need to get a JSON representation of a span,
1907
- * use `spanToJSON(span)` instead.
1908
- */
1909
- getSpanJSON() {
1910
- return m({
1911
- data: this._attributes,
1912
- description: this._name,
1913
- op: this._attributes[ct],
1914
- parent_span_id: this._parentSpanId,
1915
- span_id: this._spanId,
1916
- start_timestamp: this._startTime,
1917
- status: ue(this._status),
1918
- timestamp: this._endTime,
1919
- trace_id: this._traceId,
1920
- origin: this._attributes[Y],
1921
- _metrics_summary: at(this),
1922
- profile_id: this._attributes[En],
1923
- exclusive_time: this._attributes[bn],
1924
- measurements: Ut(this._events),
1925
- is_segment: this._isStandaloneSpan && O(this) === this || void 0,
1926
- segment_id: this._isStandaloneSpan ? O(this).spanContext().spanId : void 0
1927
- });
1928
- }
1929
- /** @inheritdoc */
1930
- isRecording() {
1931
- return !this._endTime && !!this._sampled;
1932
- }
1933
- /**
1934
- * @inheritdoc
1935
- */
1936
- addEvent(e, n, r) {
1937
- y && p.log("[Tracing] Adding an event to span:", e);
1938
- const s = vt(n) ? n : r || P(), i = vt(n) ? {} : n || {}, o = {
1939
- name: e,
1940
- time: x(s),
1941
- attributes: i
1942
- };
1943
- return this._events.push(o), this;
1944
- }
1945
- /**
1946
- * This method should generally not be used,
1947
- * but for now we need a way to publicly check if the `_isStandaloneSpan` flag is set.
1948
- * USE THIS WITH CAUTION!
1949
- * @internal
1950
- * @hidden
1951
- * @experimental
1952
- */
1953
- isStandaloneSpan() {
1954
- return !!this._isStandaloneSpan;
1955
- }
1956
- /** Emit `spanEnd` when the span is ended. */
1957
- _onSpanEnded() {
1958
- const e = N();
1959
- if (e && e.emit("spanEnd", this), !(this._isStandaloneSpan || this === O(this)))
1960
- return;
1961
- if (this._isStandaloneSpan) {
1962
- this._sampled ? vn(Un([this], e)) : (y && p.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."), e && e.recordDroppedEvent("sample_rate", "span"));
1963
- return;
1964
- }
1965
- const r = this._convertSpanToTransaction();
1966
- r && (Mt(this).scope || I()).captureEvent(r);
1967
- }
1968
- /**
1969
- * Finish the transaction & prepare the event to send to Sentry.
1970
- */
1971
- _convertSpanToTransaction() {
1972
- if (!Ft(E(this)))
1973
- return;
1974
- this._name || (y && p.warn("Transaction has no name, falling back to `<unlabeled transaction>`."), this._name = "<unlabeled transaction>");
1975
- const { scope: e, isolationScope: n } = Mt(this), s = (e || I()).getClient() || N();
1976
- if (this._sampled !== !0) {
1977
- y && p.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."), s && s.recordDroppedEvent("sample_rate", "transaction");
1978
- return;
1979
- }
1980
- const o = Dn(this).filter((d) => d !== this && !jn(d)).map((d) => E(d)).filter(Ft), a = this._attributes[bt], u = {
1981
- contexts: {
1982
- trace: Nn(this)
1983
- },
1984
- spans: (
1985
- // spans.sort() mutates the array, but `spans` is already a copy so we can safely do this here
1986
- // we do not use spans anymore after this point
1987
- o.length > jt ? o.sort((d, l) => d.start_timestamp - l.start_timestamp).slice(0, jt) : o
1988
- ),
1989
- start_timestamp: this._startTime,
1990
- timestamp: this._endTime,
1991
- transaction: this._name,
1992
- type: "transaction",
1993
- sdkProcessingMetadata: {
1994
- capturedSpanScope: e,
1995
- capturedSpanIsolationScope: n,
1996
- ...m({
1997
- dynamicSamplingContext: Z(this)
1998
- })
1999
- },
2000
- _metrics_summary: at(this),
2001
- ...a && {
2002
- transaction_info: {
2003
- source: a
2004
- }
2005
- }
2006
- }, c = Ut(this._events);
2007
- return c && Object.keys(c).length && (y && p.log(
2008
- "[Measurements] Adding measurements to transaction event",
2009
- JSON.stringify(c, void 0, 2)
2010
- ), u.measurements = c), u;
2011
- }
2012
- }
2013
- function vt(t) {
2014
- return t && typeof t == "number" || t instanceof Date || Array.isArray(t);
2015
- }
2016
- function Ft(t) {
2017
- return !!t.start_timestamp && !!t.timestamp && !!t.span_id && !!t.trace_id;
2018
- }
2019
- function jn(t) {
2020
- return t instanceof Nt && t.isStandaloneSpan();
2021
- }
2022
- function vn(t) {
2023
- const e = N();
2024
- if (!e)
2025
- return;
2026
- const n = t[1];
2027
- if (!n || n.length === 0) {
2028
- e.recordDroppedEvent("before_send", "span");
2029
- return;
2030
- }
2031
- const r = e.getTransport();
2032
- r && r.send(t).then(null, (s) => {
2033
- y && p.error("Error while sending span:", s);
2034
- });
2035
- }
2036
- const he = "__SENTRY_SUPPRESS_TRACING__";
2037
- function Gt(t) {
2038
- const e = ge();
2039
- if (e.startInactiveSpan)
2040
- return e.startInactiveSpan(t);
2041
- const n = Bn(t), { forceTransaction: r, parentSpan: s } = t;
2042
- return (t.scope ? (o) => ne(t.scope, o) : s !== void 0 ? (o) => Fn(s, o) : (o) => o())(() => {
2043
- const o = I(), a = Yn(o);
2044
- return t.onlyIfParent && !a ? new Tt() : Gn({
2045
- parentSpan: a,
2046
- spanArguments: n,
2047
- forceTransaction: r,
2048
- scope: o
2049
- });
2050
- });
2051
- }
2052
- function Fn(t, e) {
2053
- const n = ge();
2054
- return n.withActiveSpan ? n.withActiveSpan(t, e) : ne((r) => (ot(r, t || void 0), e(r)));
2055
- }
2056
- function Gn({
2057
- parentSpan: t,
2058
- spanArguments: e,
2059
- forceTransaction: n,
2060
- scope: r
2061
- }) {
2062
- if (!le())
2063
- return new Tt();
2064
- const s = j();
2065
- let i;
2066
- if (t && !n)
2067
- i = Hn(t, r, e), fe(t, i);
2068
- else if (t) {
2069
- const o = Z(t), { traceId: a, spanId: u } = t.spanContext(), c = v(t);
2070
- i = Bt(
2071
- {
2072
- traceId: a,
2073
- parentSpanId: u,
2074
- ...e
2075
- },
2076
- r,
2077
- c
2078
- ), Lt(i, o);
2079
- } else {
2080
- const {
2081
- traceId: o,
2082
- dsc: a,
2083
- parentSpanId: u,
2084
- sampled: c
2085
- } = {
2086
- ...s.getPropagationContext(),
2087
- ...r.getPropagationContext()
2088
- };
2089
- i = Bt(
2090
- {
2091
- traceId: o,
2092
- parentSpanId: u,
2093
- ...e
2094
- },
2095
- r,
2096
- c
2097
- ), a && Lt(i, a);
2098
- }
2099
- return $n(i), Cn(i, r, s), i;
2100
- }
2101
- function Bn(t) {
2102
- const n = {
2103
- isStandalone: (t.experimental || {}).standalone,
2104
- ...t
2105
- };
2106
- if (t.startTime) {
2107
- const r = { ...n };
2108
- return r.startTimestamp = x(t.startTime), delete r.startTime, r;
2109
- }
2110
- return n;
2111
- }
2112
- function ge() {
2113
- const t = U();
2114
- return J(t);
2115
- }
2116
- function Bt(t, e, n) {
2117
- const r = N(), s = r && r.getOptions() || {}, { name: i = "", attributes: o } = t, [a, u] = e.getScopeData().sdkProcessingMetadata[he] ? [!1] : Mn(s, {
2118
- name: i,
2119
- parentSampled: n,
2120
- attributes: o,
2121
- transactionContext: {
2122
- name: i,
2123
- parentSampled: n
2124
- }
2125
- }), c = new Nt({
2126
- ...t,
2127
- attributes: {
2128
- [bt]: "custom",
2129
- ...t.attributes
2130
- },
2131
- sampled: a
2132
- });
2133
- return u !== void 0 && c.setAttribute(re, u), r && r.emit("spanStart", c), c;
2134
- }
2135
- function Hn(t, e, n) {
2136
- const { spanId: r, traceId: s } = t.spanContext(), i = e.getScopeData().sdkProcessingMetadata[he] ? !1 : v(t), o = i ? new Nt({
2137
- ...n,
2138
- parentSpanId: r,
2139
- traceId: s,
2140
- sampled: i
2141
- }) : new Tt({ traceId: s });
2142
- fe(t, o);
2143
- const a = N();
2144
- return a && (a.emit("spanStart", o), n.endTimestamp && a.emit("spanEnd", o)), o;
2145
- }
2146
- function Yn(t) {
2147
- const e = V(t);
2148
- if (!e)
2149
- return;
2150
- const n = N();
2151
- return (n ? n.getOptions() : {}).parentSpanIsAlwaysRootSpan ? O(e) : e;
2152
- }
2153
- function dt(t, e, n, r = 0) {
2154
- return new T((s, i) => {
2155
- const o = t[r];
2156
- if (e === null || typeof o != "function")
2157
- s(e);
2158
- else {
2159
- const a = o({ ...e }, n);
2160
- y && o.id && a === null && p.log(`Event processor "${o.id}" dropped event`), lt(a) ? a.then((u) => dt(t, u, n, r + 1).then(s)).then(null, i) : dt(t, a, n, r + 1).then(s).then(null, i);
2161
- }
2162
- });
2163
- }
2164
- function Jn(t, e) {
2165
- const { fingerprint: n, span: r, breadcrumbs: s, sdkProcessingMetadata: i } = e;
2166
- Kn(t, e), r && Vn(t, r), Wn(t, n), zn(t, s), qn(t, i);
2167
- }
2168
- function Ht(t, e) {
2169
- const {
2170
- extra: n,
2171
- tags: r,
2172
- user: s,
2173
- contexts: i,
2174
- level: o,
2175
- sdkProcessingMetadata: a,
2176
- breadcrumbs: u,
2177
- fingerprint: c,
2178
- eventProcessors: f,
2179
- attachments: d,
2180
- propagationContext: l,
2181
- transactionName: g,
2182
- span: w
2183
- } = e;
2184
- F(t, "extra", n), F(t, "tags", r), F(t, "user", s), F(t, "contexts", i), F(t, "sdkProcessingMetadata", a), o && (t.level = o), g && (t.transactionName = g), w && (t.span = w), u.length && (t.breadcrumbs = [...t.breadcrumbs, ...u]), c.length && (t.fingerprint = [...t.fingerprint, ...c]), f.length && (t.eventProcessors = [...t.eventProcessors, ...f]), d.length && (t.attachments = [...t.attachments, ...d]), t.propagationContext = { ...t.propagationContext, ...l };
2185
- }
2186
- function F(t, e, n) {
2187
- if (n && Object.keys(n).length) {
2188
- t[e] = { ...t[e] };
2189
- for (const r in n)
2190
- Object.prototype.hasOwnProperty.call(n, r) && (t[e][r] = n[r]);
2191
- }
2192
- }
2193
- function Kn(t, e) {
2194
- const { extra: n, tags: r, user: s, contexts: i, level: o, transactionName: a } = e, u = m(n);
2195
- u && Object.keys(u).length && (t.extra = { ...u, ...t.extra });
2196
- const c = m(r);
2197
- c && Object.keys(c).length && (t.tags = { ...c, ...t.tags });
2198
- const f = m(s);
2199
- f && Object.keys(f).length && (t.user = { ...f, ...t.user });
2200
- const d = m(i);
2201
- d && Object.keys(d).length && (t.contexts = { ...d, ...t.contexts }), o && (t.level = o), a && t.type !== "transaction" && (t.transaction = a);
2202
- }
2203
- function zn(t, e) {
2204
- const n = [...t.breadcrumbs || [], ...e];
2205
- t.breadcrumbs = n.length ? n : void 0;
2206
- }
2207
- function qn(t, e) {
2208
- t.sdkProcessingMetadata = {
2209
- ...t.sdkProcessingMetadata,
2210
- ...e
2211
- };
2212
- }
2213
- function Vn(t, e) {
2214
- t.contexts = {
2215
- trace: An(e),
2216
- ...t.contexts
2217
- }, t.sdkProcessingMetadata = {
2218
- dynamicSamplingContext: Z(e),
2219
- ...t.sdkProcessingMetadata
2220
- };
2221
- const n = O(e), r = E(n).description;
2222
- r && !t.transaction && t.type === "transaction" && (t.transaction = r);
2223
- }
2224
- function Wn(t, e) {
2225
- t.fingerprint = t.fingerprint ? Ye(t.fingerprint) : [], e && (t.fingerprint = t.fingerprint.concat(e)), t.fingerprint && !t.fingerprint.length && delete t.fingerprint;
2226
- }
2227
- function ns(t, e, n, r, s, i) {
2228
- const { normalizeDepth: o = 3, normalizeMaxBreadth: a = 1e3 } = t, u = {
2229
- ...e,
2230
- event_id: e.event_id || n.event_id || _(),
2231
- timestamp: e.timestamp || mt()
2232
- }, c = n.integrations || t.integrations.map((b) => b.name);
2233
- Xn(u, t), tr(u, c), s && s.emit("applyFrameMetadata", e), e.type === void 0 && Qn(u, t.stackParser);
2234
- const f = nr(r, n.captureContext);
2235
- n.mechanism && He(u, n.mechanism);
2236
- const d = s ? s.getEventProcessors() : [], l = Sn().getScopeData();
2237
- if (i) {
2238
- const b = i.getScopeData();
2239
- Ht(l, b);
2240
- }
2241
- if (f) {
2242
- const b = f.getScopeData();
2243
- Ht(l, b);
2244
- }
2245
- const g = [...n.attachments || [], ...l.attachments];
2246
- g.length && (n.attachments = g), Jn(u, l);
2247
- const w = [
2248
- ...d,
2249
- // Run scope event processors _after_ all other processors
2250
- ...l.eventProcessors
2251
- ];
2252
- return dt(w, u, n).then((b) => (b && Zn(b), typeof o == "number" && o > 0 ? er(b, o, a) : b));
2253
- }
2254
- function Xn(t, e) {
2255
- const { environment: n, release: r, dist: s, maxValueLength: i = 250 } = e;
2256
- "environment" in t || (t.environment = "environment" in e ? n : It), t.release === void 0 && r !== void 0 && (t.release = r), t.dist === void 0 && s !== void 0 && (t.dist = s), t.message && (t.message = G(t.message, i));
2257
- const o = t.exception && t.exception.values && t.exception.values[0];
2258
- o && o.value && (o.value = G(o.value, i));
2259
- const a = t.request;
2260
- a && a.url && (a.url = G(a.url, i));
2261
- }
2262
- const Yt = /* @__PURE__ */ new WeakMap();
2263
- function Qn(t, e) {
2264
- const n = h._sentryDebugIds;
2265
- if (!n)
2266
- return;
2267
- let r;
2268
- const s = Yt.get(e);
2269
- s ? r = s : (r = /* @__PURE__ */ new Map(), Yt.set(e, r));
2270
- const i = Object.entries(n).reduce(
2271
- (o, [a, u]) => {
2272
- let c;
2273
- const f = r.get(a);
2274
- f ? c = f : (c = e(a), r.set(a, c));
2275
- for (let d = c.length - 1; d >= 0; d--) {
2276
- const l = c[d];
2277
- if (l.filename) {
2278
- o[l.filename] = u;
2279
- break;
2280
- }
2281
- }
2282
- return o;
2283
- },
2284
- {}
2285
- );
2286
- try {
2287
- t.exception.values.forEach((o) => {
2288
- o.stacktrace.frames.forEach((a) => {
2289
- a.filename && (a.debug_id = i[a.filename]);
2290
- });
2291
- });
2292
- } catch {
2293
- }
2294
- }
2295
- function Zn(t) {
2296
- const e = {};
2297
- try {
2298
- t.exception.values.forEach((r) => {
2299
- r.stacktrace.frames.forEach((s) => {
2300
- s.debug_id && (s.abs_path ? e[s.abs_path] = s.debug_id : s.filename && (e[s.filename] = s.debug_id), delete s.debug_id);
2301
- });
2302
- });
2303
- } catch {
2304
- }
2305
- if (Object.keys(e).length === 0)
2306
- return;
2307
- t.debug_meta = t.debug_meta || {}, t.debug_meta.images = t.debug_meta.images || [];
2308
- const n = t.debug_meta.images;
2309
- Object.entries(e).forEach(([r, s]) => {
2310
- n.push({
2311
- type: "sourcemap",
2312
- code_file: r,
2313
- debug_id: s
2314
- });
2315
- });
2316
- }
2317
- function tr(t, e) {
2318
- e.length > 0 && (t.sdk = t.sdk || {}, t.sdk.integrations = [...t.sdk.integrations || [], ...e]);
2319
- }
2320
- function er(t, e, n) {
2321
- if (!t)
2322
- return null;
2323
- const r = {
2324
- ...t,
2325
- ...t.breadcrumbs && {
2326
- breadcrumbs: t.breadcrumbs.map((s) => ({
2327
- ...s,
2328
- ...s.data && {
2329
- data: R(s.data, e, n)
2330
- }
2331
- }))
2332
- },
2333
- ...t.user && {
2334
- user: R(t.user, e, n)
2335
- },
2336
- ...t.contexts && {
2337
- contexts: R(t.contexts, e, n)
2338
- },
2339
- ...t.extra && {
2340
- extra: R(t.extra, e, n)
2341
- }
2342
- };
2343
- return t.contexts && t.contexts.trace && r.contexts && (r.contexts.trace = t.contexts.trace, t.contexts.trace.data && (r.contexts.trace.data = R(t.contexts.trace.data, e, n))), t.spans && (r.spans = t.spans.map((s) => ({
2344
- ...s,
2345
- ...s.data && {
2346
- data: R(s.data, e, n)
2347
- }
2348
- }))), r;
2349
- }
2350
- function nr(t, e) {
2351
- if (!e)
2352
- return t;
2353
- const n = t ? t.clone() : new C();
2354
- return n.update(e), n;
2355
- }
2356
- function rr(t) {
2357
- if (t)
2358
- return sr(t) ? { captureContext: t } : or(t) ? {
2359
- captureContext: t
2360
- } : t;
2361
- }
2362
- function sr(t) {
2363
- return t instanceof C || typeof t == "function";
2364
- }
2365
- const ir = [
2366
- "user",
2367
- "level",
2368
- "extra",
2369
- "contexts",
2370
- "tags",
2371
- "fingerprint",
2372
- "requestSession",
2373
- "propagationContext"
2374
- ];
2375
- function or(t) {
2376
- return Object.keys(t).some((e) => ir.includes(e));
2377
- }
2378
- function ar(t, e) {
2379
- return I().captureException(t, rr(e));
2380
- }
2381
- function rs(t, e) {
2382
- return I().captureEvent(t, e);
2383
- }
2384
- function ss(t, e) {
2385
- j().setContext(t, e);
2386
- }
2387
- function is(t) {
2388
- j().addEventProcessor(t);
2389
- }
2390
- function os(t) {
2391
- const e = N(), n = j(), r = I(), { release: s, environment: i = It } = e && e.getOptions() || {}, { userAgent: o } = h.navigator || {}, a = cn({
2392
- release: s,
2393
- environment: i,
2394
- user: r.getUser() || n.getUser(),
2395
- ...o && { userAgent: o },
2396
- ...t
2397
- }), u = n.getSession();
2398
- return u && u.status === "ok" && Q(u, { status: "exited" }), me(), n.setSession(a), r.setSession(a), a;
2399
- }
2400
- function me() {
2401
- const t = j(), e = I(), n = e.getSession() || t.getSession();
2402
- n && un(n), Se(), t.setSession(), e.setSession();
2403
- }
2404
- function Se() {
2405
- const t = j(), e = I(), n = N(), r = e.getSession() || t.getSession();
2406
- r && n && n.captureSession(r);
2407
- }
2408
- function as(t = !1) {
2409
- if (t) {
2410
- me();
2411
- return;
2412
- }
2413
- Se();
2414
- }
2415
- const cr = ["activate", "mount", "update"], ur = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, fr = /(?:^|[-_])(\w)/g, dr = (t) => t.replace(fr, (e) => e.toUpperCase()).replace(/[-_]/g, ""), pr = "<Root>", et = "<Anonymous>", lr = (t, e) => t.repeat(e), H = (t, e) => {
2416
- if (!t)
2417
- return et;
2418
- if (t.$root === t)
2419
- return pr;
2420
- if (!t.$options)
2421
- return et;
2422
- const n = t.$options;
2423
- let r = n.name || n._componentTag;
2424
- const s = n.__file;
2425
- if (!r && s) {
2426
- const i = s.match(/([^/\\]+)\.vue$/);
2427
- i && (r = i[1]);
2428
- }
2429
- return (r ? `<${dr(r)}>` : et) + (s && e !== !1 ? ` at ${s}` : "");
2430
- }, _r = (t) => {
2431
- if (t && (t._isVue || t.__isVue) && t.$parent) {
2432
- const e = [];
2433
- let n = 0;
2434
- for (; t; ) {
2435
- if (e.length > 0) {
2436
- const s = e[e.length - 1];
2437
- if (s.constructor === t.constructor) {
2438
- n++, t = t.$parent;
2439
- continue;
2440
- } else n > 0 && (e[e.length - 1] = [s, n], n = 0);
2441
- }
2442
- e.push(t), t = t.$parent;
2443
- }
2444
- return `
2445
-
2446
- found in
2447
-
2448
- ${e.map(
2449
- (s, i) => `${(i === 0 ? "---> " : lr(" ", 5 + i * 2)) + (Array.isArray(s) ? `${H(s[0])}... (${s[1]} recursive calls)` : H(s))}`
2450
- ).join(`
2451
- `)}`;
2452
- }
2453
- return `
2454
-
2455
- (found in ${H(t)})`;
2456
- }, cs = (t, e) => {
2457
- const { errorHandler: n, warnHandler: r, silent: s } = t.config;
2458
- t.config.errorHandler = (i, o, a) => {
2459
- const u = H(o, !1), c = o ? _r(o) : "", f = {
2460
- componentName: u,
2461
- lifecycleHook: a,
2462
- trace: c
2463
- };
2464
- if (e.attachProps && o && (o.$options && o.$options.propsData ? f.propsData = o.$options.propsData : o.$props && (f.propsData = o.$props)), setTimeout(() => {
2465
- ar(i, {
2466
- captureContext: { contexts: { vue: f } },
2467
- mechanism: { handled: !1 }
2468
- });
2469
- }), typeof n == "function" && n.call(t, i, o, a), e.logErrors) {
2470
- const d = typeof console < "u", l = `Error in ${a}: "${i && i.toString()}"`;
2471
- r ? r.call(null, l, o, c) : d && !s && ht(() => {
2472
- console.error(`[Vue warn]: ${l}${c}`);
2473
- });
2474
- }
2475
- };
2476
- }, Jt = "ui.vue", hr = {
2477
- activate: ["activated", "deactivated"],
2478
- create: ["beforeCreate", "created"],
2479
- // Vue 3
2480
- unmount: ["beforeUnmount", "unmounted"],
2481
- // Vue 2
2482
- destroy: ["beforeDestroy", "destroyed"],
2483
- mount: ["beforeMount", "mounted"],
2484
- update: ["beforeUpdate", "updated"]
2485
- };
2486
- function gr(t, e, n) {
2487
- t.$_sentryRootSpanTimer && clearTimeout(t.$_sentryRootSpanTimer), t.$_sentryRootSpanTimer = setTimeout(() => {
2488
- t.$root && t.$root.$_sentryRootSpan && (t.$root.$_sentryRootSpan.end(e), t.$root.$_sentryRootSpan = void 0);
2489
- }, n);
2490
- }
2491
- const us = (t) => {
2492
- const e = (t.hooks || []).concat(cr).filter((r, s, i) => i.indexOf(r) === s), n = {};
2493
- for (const r of e) {
2494
- const s = hr[r];
2495
- if (!s) {
2496
- ur && p.warn(`Unknown hook: ${r}`);
2497
- continue;
2498
- }
2499
- for (const i of s)
2500
- n[i] = function() {
2501
- const o = this.$root === this;
2502
- o && ft() && (this.$_sentryRootSpan = this.$_sentryRootSpan || Gt({
2503
- name: "Application Render",
2504
- op: `${Jt}.render`,
2505
- attributes: {
2506
- [Y]: "auto.ui.vue"
2507
- }
2508
- }));
2509
- const a = H(this, !1), u = Array.isArray(t.trackComponents) ? t.trackComponents.indexOf(a) > -1 : t.trackComponents;
2510
- if (!(!o && !u))
2511
- if (this.$_sentrySpans = this.$_sentrySpans || {}, i == s[0]) {
2512
- if (this.$root && this.$root.$_sentryRootSpan || ft()) {
2513
- const f = this.$_sentrySpans[r];
2514
- f && f.end(), this.$_sentrySpans[r] = Gt({
2515
- name: `Vue <${a}>`,
2516
- op: `${Jt}.${r}`,
2517
- attributes: {
2518
- [Y]: "auto.ui.vue"
2519
- }
2520
- });
2521
- }
2522
- } else {
2523
- const c = this.$_sentrySpans[r];
2524
- if (!c) return;
2525
- c.end(), gr(this, P(), t.timeout);
2526
- }
2527
- };
2528
- }
2529
- return n;
2530
- };
2531
- var fs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2532
- function ds(t) {
2533
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
2534
- }
2535
- export {
2536
- pt as $,
2537
- Dn as A,
2538
- E as B,
2539
- At as C,
2540
- X as D,
2541
- Vr as E,
2542
- Qr as F,
2543
- h as G,
2544
- Gt as H,
2545
- wr as I,
2546
- Ye as J,
2547
- Dr as K,
2548
- _ as L,
2549
- jr as M,
2550
- Tr as N,
2551
- Q as O,
2552
- ts as P,
2553
- Yr as Q,
2554
- zr as R,
2555
- T as S,
2556
- Zr as T,
2557
- ns as U,
2558
- m as V,
2559
- wn as W,
2560
- j as X,
2561
- Pn as Y,
2562
- lt as Z,
2563
- ot as _,
2564
- us as a,
2565
- Ee as a0,
2566
- ht as a1,
2567
- Jr as a2,
2568
- qr as a3,
2569
- Kr as a4,
2570
- B as a5,
2571
- kr as a6,
2572
- Lr as a7,
2573
- Nr as a8,
2574
- Pr as a9,
2575
- bn as aA,
2576
- se as aB,
2577
- ie as aC,
2578
- je as aD,
2579
- Ue as aE,
2580
- Ir as aF,
2581
- rs as aG,
2582
- Ar as aH,
2583
- xr as aI,
2584
- os as aJ,
2585
- as as aK,
2586
- bt as aL,
2587
- is as aM,
2588
- ss as aN,
2589
- R as aO,
2590
- an as aP,
2591
- ee as aQ,
2592
- Hr as aR,
2593
- v as aS,
2594
- Or as aT,
2595
- $t as aU,
2596
- ur as aV,
2597
- cr as aW,
2598
- Y as aa,
2599
- ct as ab,
2600
- Xr as ac,
2601
- nn as ad,
2602
- Br as ae,
2603
- Z as af,
2604
- Gr as ag,
2605
- Wr as ah,
2606
- Me as ai,
2607
- ne as aj,
2608
- Ur as ak,
2609
- He as al,
2610
- ar as am,
2611
- yr as an,
2612
- Er as ao,
2613
- br as ap,
2614
- be as aq,
2615
- Je as ar,
2616
- $r as as,
2617
- gt as at,
2618
- Fn as au,
2619
- Mr as av,
2620
- Re as aw,
2621
- Rr as ax,
2622
- es as ay,
2623
- q as az,
2624
- cs as b,
2625
- fs as c,
2626
- Fe as d,
2627
- P as e,
2628
- Cr as f,
2629
- ds as g,
2630
- ye as h,
2631
- W as i,
2632
- D as j,
2633
- vr as k,
2634
- p as l,
2635
- St as m,
2636
- mt as n,
2637
- Ot as o,
2638
- ft as p,
2639
- O as q,
2640
- Fr as r,
2641
- y as s,
2642
- G as t,
2643
- S as u,
2644
- N as v,
2645
- le as w,
2646
- Tt as x,
2647
- I as y,
2648
- x as z
2649
- };
2650
- //# sourceMappingURL=_commonjsHelpers-Dn7n5RRb.js.map