@konnectio/core 4.5.10 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +274 -274
- package/dist/{ActionField-DRRWeUYM.js → ActionField-B7UmJY0Z.js} +4 -4
- package/dist/ActionField-B7UmJY0Z.js.br +0 -0
- package/dist/ActionField-B7UmJY0Z.js.gz +0 -0
- package/dist/{AvailabilitySkeleton-Dts-myrc.js → AvailabilitySkeleton-BUHF365q.js} +2677 -2639
- package/dist/AvailabilitySkeleton-BUHF365q.js.br +0 -0
- package/dist/AvailabilitySkeleton-BUHF365q.js.gz +0 -0
- package/dist/{CheckoutWindow-BHVG2dxQ.js → CheckoutWindow-0YZfQh0h.js} +11 -11
- package/dist/CheckoutWindow-0YZfQh0h.js.br +0 -0
- package/dist/CheckoutWindow-0YZfQh0h.js.gz +0 -0
- package/dist/{ErrorMessage-B9Z6kWVl.js → ErrorMessage-DAJHMXps.js} +4 -4
- package/dist/ErrorMessage-DAJHMXps.js.br +0 -0
- package/dist/ErrorMessage-DAJHMXps.js.gz +0 -0
- package/dist/{EventAvailabilityForm-kkiWxezV.js → EventAvailabilityForm-CYqJiGK-.js} +5 -5
- package/dist/EventAvailabilityForm-CYqJiGK-.js.br +0 -0
- package/dist/EventAvailabilityForm-CYqJiGK-.js.gz +0 -0
- package/dist/{Field-uy59BBE5.js → Field-Bot3mYQN.js} +9 -9
- package/dist/Field-Bot3mYQN.js.br +0 -0
- package/dist/Field-Bot3mYQN.js.gz +0 -0
- package/dist/{HotelAvailabilityForm-BorqaKO9.js → HotelAvailabilityForm-B7kyXx-7.js} +5 -5
- package/dist/HotelAvailabilityForm-B7kyXx-7.js.br +0 -0
- package/dist/HotelAvailabilityForm-B7kyXx-7.js.gz +0 -0
- package/dist/{SelectField-Deugng4e.js → SelectField-hnSeKsyE.js} +2819 -2510
- package/dist/SelectField-hnSeKsyE.js.br +0 -0
- package/dist/SelectField-hnSeKsyE.js.gz +0 -0
- package/dist/{TermsOfService-B0e2zZ1G.js → TermsOfService-BNMlDWlr.js} +5 -5
- package/dist/TermsOfService-BNMlDWlr.js.br +0 -0
- package/dist/TermsOfService-BNMlDWlr.js.gz +3 -0
- package/dist/{_-BLU96am3.js → _-C-uU-YJK.js} +4 -4
- package/dist/_-C-uU-YJK.js.br +0 -0
- package/dist/_-C-uU-YJK.js.gz +4 -0
- package/dist/availability.js +11 -11
- package/dist/availability.js.br +0 -0
- package/dist/availability.js.gz +0 -0
- package/dist/cancel-reservation.js +8 -8
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/cancel-reservation.js.gz +0 -0
- package/dist/core.css +1 -1
- package/dist/core.css.br +0 -0
- package/dist/core.css.gz +0 -0
- package/dist/deep-link.js +1 -1
- package/dist/deep-link.js.br +0 -0
- package/dist/deep-link.js.gz +0 -0
- package/dist/{dist-CkHp-kIg.js → dist-BRLG6yf0.js} +290 -231
- package/dist/dist-BRLG6yf0.js.br +0 -0
- package/dist/dist-BRLG6yf0.js.gz +0 -0
- package/dist/event.js +48 -51
- package/dist/event.js.br +0 -0
- package/dist/event.js.gz +0 -0
- package/dist/gift-card-validation.js +12 -12
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card-validation.js.gz +0 -0
- package/dist/gift-card.js +19 -18
- package/dist/gift-card.js.br +0 -0
- package/dist/gift-card.js.gz +0 -0
- package/dist/{giftCard-D4xa9d4r.js → giftCard-DVmVkjIL.js} +2 -2
- package/dist/giftCard-DVmVkjIL.js.br +0 -0
- package/dist/giftCard-DVmVkjIL.js.gz +0 -0
- package/dist/hotel.js +1706 -1660
- package/dist/hotel.js.br +0 -0
- package/dist/hotel.js.gz +0 -0
- package/dist/{masonry.plugin-DeTZh8E2.js → masonry.plugin-BE-hxMX3.js} +2844 -3800
- package/dist/masonry.plugin-BE-hxMX3.js.br +0 -0
- package/dist/masonry.plugin-BE-hxMX3.js.gz +0 -0
- package/dist/{mitt-Dp_pykgV.js → mitt-CC88Lv06.js} +3447 -3342
- package/dist/mitt-CC88Lv06.js.br +0 -0
- package/dist/mitt-CC88Lv06.js.gz +0 -0
- package/dist/polyfill.js +27 -27
- package/dist/polyfill.js.br +0 -0
- package/dist/polyfill.js.gz +0 -0
- package/dist/rolldown-runtime-Dqa2HsxW.js.gz +2 -0
- package/dist/{style-CyChAn2F.js → style-BYpuwNCr.js} +4 -4
- package/dist/style-BYpuwNCr.js.br +0 -0
- package/dist/style-BYpuwNCr.js.gz +0 -0
- package/dist-wix/availability.js +594 -0
- package/dist-wix/event.js +595 -0
- package/dist-wix/gift-card-validation.js +584 -0
- package/dist-wix/gift-card.js +593 -0
- package/dist-wix/hotel.js +595 -0
- package/package.json +121 -121
- package/dist/ActionField-DRRWeUYM.js.br +0 -0
- package/dist/ActionField-DRRWeUYM.js.gz +0 -0
- package/dist/AvailabilitySkeleton-Dts-myrc.js.br +0 -0
- package/dist/AvailabilitySkeleton-Dts-myrc.js.gz +0 -0
- package/dist/CheckoutWindow-BHVG2dxQ.js.br +0 -0
- package/dist/CheckoutWindow-BHVG2dxQ.js.gz +0 -0
- package/dist/ErrorMessage-B9Z6kWVl.js.br +0 -0
- package/dist/ErrorMessage-B9Z6kWVl.js.gz +0 -0
- package/dist/EventAvailabilityForm-kkiWxezV.js.br +0 -0
- package/dist/EventAvailabilityForm-kkiWxezV.js.gz +0 -0
- package/dist/Field-uy59BBE5.js.br +0 -0
- package/dist/Field-uy59BBE5.js.gz +0 -0
- package/dist/HotelAvailabilityForm-BorqaKO9.js.br +0 -0
- package/dist/HotelAvailabilityForm-BorqaKO9.js.gz +0 -0
- package/dist/SelectField-Deugng4e.js.br +0 -0
- package/dist/SelectField-Deugng4e.js.gz +0 -0
- package/dist/TermsOfService-B0e2zZ1G.js.br +0 -0
- package/dist/TermsOfService-B0e2zZ1G.js.gz +0 -1
- package/dist/_-BLU96am3.js.br +0 -0
- package/dist/_-BLU96am3.js.gz +0 -0
- package/dist/chunk-BPfpcrXh.js.gz +0 -0
- package/dist/dist-CkHp-kIg.js.br +0 -0
- package/dist/dist-CkHp-kIg.js.gz +0 -0
- package/dist/giftCard-D4xa9d4r.js.br +0 -0
- package/dist/giftCard-D4xa9d4r.js.gz +0 -9
- package/dist/masonry.plugin-DeTZh8E2.js.br +0 -0
- package/dist/masonry.plugin-DeTZh8E2.js.gz +0 -0
- package/dist/mitt-Dp_pykgV.js.br +0 -0
- package/dist/mitt-Dp_pykgV.js.gz +0 -0
- package/dist/style-CyChAn2F.js.br +0 -0
- package/dist/style-CyChAn2F.js.gz +0 -0
- /package/dist/{chunk-BPfpcrXh.js → rolldown-runtime-Dqa2HsxW.js} +0 -0
- /package/dist/{chunk-BPfpcrXh.js.br → rolldown-runtime-Dqa2HsxW.js.br} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as e, t } from "./
|
|
2
|
-
import { F as n, K as r, P as i, bt as a, lt as o } from "./mitt-
|
|
1
|
+
import { r as e, t } from "./rolldown-runtime-Dqa2HsxW.js";
|
|
2
|
+
import { F as n, K as r, P as i, bt as a, lt as o } from "./mitt-CC88Lv06.js";
|
|
3
3
|
//#region node_modules/stackframe/stackframe.js
|
|
4
4
|
var s = /* @__PURE__ */ t(((e, t) => {
|
|
5
5
|
(function(n, r) {
|
|
@@ -176,7 +176,7 @@ var s = /* @__PURE__ */ t(((e, t) => {
|
|
|
176
176
|
}
|
|
177
177
|
};
|
|
178
178
|
});
|
|
179
|
-
})))(), 1), l = typeof process < "u" ? "2.
|
|
179
|
+
})))(), 1), l = typeof process < "u" ? "2.6.0" : "?", u = "5pqzBljrmDvquWZYSrSUKldIUREtPyB3", d = "\"4.6.0\"";
|
|
180
180
|
function f(e, t, n) {
|
|
181
181
|
return n && !e && console.error(`Flare JavaScript client v${l}: ${t}`), !!e;
|
|
182
182
|
}
|
|
@@ -225,7 +225,7 @@ function y(e) {
|
|
|
225
225
|
}
|
|
226
226
|
return n(e);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function b(e) {
|
|
229
229
|
return e.map((e) => ({
|
|
230
230
|
type: "php_glow",
|
|
231
231
|
startTimeUnixNano: Math.round(e.microtime * 1e9),
|
|
@@ -237,42 +237,70 @@ function ee(e) {
|
|
|
237
237
|
}
|
|
238
238
|
}));
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function ee() {
|
|
241
241
|
return Math.round(Date.now() / 1e3);
|
|
242
242
|
}
|
|
243
|
-
var
|
|
244
|
-
function
|
|
243
|
+
var x = /password|passwd|pwd|token|secret|authorization|\bauth\b|bearer|oauth|credentials?|cookie|api[-_]?key|private[-_]?key|session|csrf|xsrf|\bpin\b|\bssn\b|card[-_]?number|\bcvv\b/i;
|
|
244
|
+
function S(e, t = !1, n = x) {
|
|
245
245
|
if (!e) return n;
|
|
246
246
|
if (t) {
|
|
247
247
|
let t = e.flags.replace(/[gy]/g, "");
|
|
248
248
|
return new RegExp(e.source, t);
|
|
249
249
|
}
|
|
250
|
-
let r =
|
|
250
|
+
let r = te(n.flags, e.flags);
|
|
251
251
|
return RegExp(`(?:${n.source})|(?:${e.source})`, r);
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function te(e, t) {
|
|
254
254
|
let n = /* @__PURE__ */ new Set();
|
|
255
255
|
for (let r of e + t) r === "g" || r === "y" || n.add(r);
|
|
256
256
|
return [...n].join("");
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function C(e, t = x) {
|
|
259
259
|
let n = e.indexOf("?");
|
|
260
260
|
if (n === -1) return e;
|
|
261
261
|
let r = e.indexOf("#", n), i = r === -1 ? e.length : r, a = e.slice(0, n + 1), o = e.slice(n + 1, i), s = e.slice(i);
|
|
262
262
|
return `${a}${o.split("&").map((e) => {
|
|
263
263
|
if (e === "") return e;
|
|
264
|
-
let n = e.indexOf("="), r = n === -1 ? e : e.slice(0, n), i =
|
|
264
|
+
let n = e.indexOf("="), r = n === -1 ? e : e.slice(0, n), i = ne(r);
|
|
265
265
|
return t.test(i) ? n === -1 ? r : `${r}=[redacted]` : e;
|
|
266
266
|
}).join("&")}${s}`;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function ne(e) {
|
|
269
269
|
try {
|
|
270
270
|
return decodeURIComponent(e);
|
|
271
271
|
} catch {
|
|
272
272
|
return e;
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
|
-
|
|
275
|
+
function re(e) {
|
|
276
|
+
if (typeof e == "string") return e;
|
|
277
|
+
if (e && typeof e == "object") {
|
|
278
|
+
let t = e.message;
|
|
279
|
+
if (typeof t == "string" && t) return t;
|
|
280
|
+
try {
|
|
281
|
+
return JSON.stringify(e);
|
|
282
|
+
} catch {
|
|
283
|
+
return "Unhandled promise rejection (non-serializable reason)";
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
return String(e);
|
|
287
|
+
}
|
|
288
|
+
function ie(e) {
|
|
289
|
+
return !!e && typeof e == "object" && typeof e.stack == "string";
|
|
290
|
+
}
|
|
291
|
+
function ae(e, t) {
|
|
292
|
+
if (t instanceof Error) {
|
|
293
|
+
e.reportSilently(t);
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
if (ie(t)) {
|
|
297
|
+
let n = Error(re(t));
|
|
298
|
+
n.stack = t.stack, e.reportSilently(n);
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
Promise.resolve(e.reportUnhandledRejection(re(t))).catch(() => {});
|
|
302
|
+
}
|
|
303
|
+
var w = class {
|
|
276
304
|
report(e, t, n, r, i = !1) {
|
|
277
305
|
return fetch(t, {
|
|
278
306
|
method: "POST",
|
|
@@ -307,7 +335,7 @@ var C = class {
|
|
|
307
335
|
});
|
|
308
336
|
}
|
|
309
337
|
};
|
|
310
|
-
function
|
|
338
|
+
function T(e, t = /* @__PURE__ */ new WeakSet()) {
|
|
311
339
|
if (typeof e == "string") return { stringValue: e };
|
|
312
340
|
if (typeof e == "boolean") return { boolValue: e };
|
|
313
341
|
if (typeof e == "number") return Number.isFinite(e) ? Number.isInteger(e) ? { intValue: e } : { doubleValue: e } : null;
|
|
@@ -317,7 +345,7 @@ function w(e, t = /* @__PURE__ */ new WeakSet()) {
|
|
|
317
345
|
t.add(e);
|
|
318
346
|
let n = [];
|
|
319
347
|
for (let r of e) {
|
|
320
|
-
let e =
|
|
348
|
+
let e = T(r, t);
|
|
321
349
|
e !== null && n.push(e);
|
|
322
350
|
}
|
|
323
351
|
return t.delete(e), { arrayValue: { values: n } };
|
|
@@ -327,7 +355,7 @@ function w(e, t = /* @__PURE__ */ new WeakSet()) {
|
|
|
327
355
|
t.add(e);
|
|
328
356
|
let n = [];
|
|
329
357
|
for (let [r, i] of Object.entries(e)) {
|
|
330
|
-
let e =
|
|
358
|
+
let e = T(i, t);
|
|
331
359
|
e !== null && n.push({
|
|
332
360
|
key: r,
|
|
333
361
|
value: e
|
|
@@ -337,10 +365,10 @@ function w(e, t = /* @__PURE__ */ new WeakSet()) {
|
|
|
337
365
|
}
|
|
338
366
|
return null;
|
|
339
367
|
}
|
|
340
|
-
function
|
|
368
|
+
function E(e) {
|
|
341
369
|
let t = [];
|
|
342
370
|
for (let [n, r] of Object.entries(e)) {
|
|
343
|
-
let e =
|
|
371
|
+
let e = T(r);
|
|
344
372
|
e !== null && t.push({
|
|
345
373
|
key: n,
|
|
346
374
|
value: e
|
|
@@ -348,10 +376,10 @@ function T(e) {
|
|
|
348
376
|
}
|
|
349
377
|
return t;
|
|
350
378
|
}
|
|
351
|
-
function
|
|
379
|
+
function oe(e, t, n, r) {
|
|
352
380
|
return { resourceLogs: [{
|
|
353
381
|
resource: {
|
|
354
|
-
attributes:
|
|
382
|
+
attributes: E(t),
|
|
355
383
|
droppedAttributesCount: 0
|
|
356
384
|
},
|
|
357
385
|
scopeLogs: [{
|
|
@@ -374,7 +402,7 @@ function ie(e, t, n, r) {
|
|
|
374
402
|
}]
|
|
375
403
|
}] };
|
|
376
404
|
}
|
|
377
|
-
var
|
|
405
|
+
var se = {
|
|
378
406
|
debug: 5,
|
|
379
407
|
info: 9,
|
|
380
408
|
notice: 10,
|
|
@@ -384,16 +412,16 @@ var ae = {
|
|
|
384
412
|
alert: 19,
|
|
385
413
|
emergency: 21
|
|
386
414
|
};
|
|
387
|
-
function
|
|
388
|
-
return
|
|
415
|
+
function D(e) {
|
|
416
|
+
return se[e];
|
|
389
417
|
}
|
|
390
|
-
function
|
|
418
|
+
function ce(e) {
|
|
391
419
|
return e.toUpperCase();
|
|
392
420
|
}
|
|
393
|
-
function
|
|
394
|
-
return
|
|
421
|
+
function le(e, t) {
|
|
422
|
+
return D(e) >= D(t);
|
|
395
423
|
}
|
|
396
|
-
var
|
|
424
|
+
var ue = class {
|
|
397
425
|
buffer = [];
|
|
398
426
|
resourceAttributes = {};
|
|
399
427
|
timer;
|
|
@@ -430,16 +458,16 @@ var ce = class {
|
|
|
430
458
|
}
|
|
431
459
|
record(e, t, n, r) {
|
|
432
460
|
let i = this.deps.getConfig();
|
|
433
|
-
if (!i.enableLogs || i.minimumLogLevel && !
|
|
461
|
+
if (!i.enableLogs || i.minimumLogLevel && !le(e, i.minimumLogLevel)) return;
|
|
434
462
|
let a = {
|
|
435
463
|
"log.context": n,
|
|
436
464
|
...r
|
|
437
465
|
}, { record: o, resource: s } = this.deps.buildLogAttributes(a), c = {
|
|
438
466
|
timeUnixNano: String(Date.now()) + "000000",
|
|
439
|
-
severityNumber:
|
|
440
|
-
severityText:
|
|
467
|
+
severityNumber: D(e),
|
|
468
|
+
severityText: ce(e),
|
|
441
469
|
message: t,
|
|
442
|
-
recordAttributes:
|
|
470
|
+
recordAttributes: E(o),
|
|
443
471
|
resourceAttributes: s
|
|
444
472
|
};
|
|
445
473
|
if (this.estimateBytes(c) > i.logFlushMaxBytes) {
|
|
@@ -489,7 +517,7 @@ var ce = class {
|
|
|
489
517
|
}
|
|
490
518
|
buildEnvelope(e) {
|
|
491
519
|
let t = this.deps.getSdkInfo();
|
|
492
|
-
return
|
|
520
|
+
return oe(e, this.resourceForFlush(), t.name, t.version);
|
|
493
521
|
}
|
|
494
522
|
resourceForFlush() {
|
|
495
523
|
let e = this.deps.getConfig(), t = this.deps.getSdkInfo(), n = this.deps.getFramework(), r = {
|
|
@@ -512,9 +540,9 @@ var ce = class {
|
|
|
512
540
|
bufferBytes() {
|
|
513
541
|
return this.buffer.reduce((e, t) => e + this.estimateBytes(t), 0);
|
|
514
542
|
}
|
|
515
|
-
},
|
|
543
|
+
}, de = class {
|
|
516
544
|
register() {}
|
|
517
|
-
},
|
|
545
|
+
}, fe = [
|
|
518
546
|
"service.",
|
|
519
547
|
"telemetry.",
|
|
520
548
|
"host.",
|
|
@@ -522,16 +550,21 @@ var ce = class {
|
|
|
522
550
|
"process.",
|
|
523
551
|
"flare.framework.",
|
|
524
552
|
"flare.language."
|
|
525
|
-
],
|
|
526
|
-
function
|
|
553
|
+
], pe = /* @__PURE__ */ new Set(["process.uptime"]);
|
|
554
|
+
function me(e) {
|
|
527
555
|
let t = {}, n = {};
|
|
528
|
-
for (let [r, i] of Object.entries(e)) !
|
|
556
|
+
for (let [r, i] of Object.entries(e)) !pe.has(r) && fe.some((e) => r.startsWith(e)) ? t[r] = i : n[r] = i;
|
|
529
557
|
return {
|
|
530
558
|
resource: t,
|
|
531
559
|
record: n
|
|
532
560
|
};
|
|
533
561
|
}
|
|
534
|
-
var
|
|
562
|
+
var O = {
|
|
563
|
+
id: "user.id",
|
|
564
|
+
email: "user.email",
|
|
565
|
+
fullName: "user.full_name",
|
|
566
|
+
ipAddress: "client.address"
|
|
567
|
+
}, he = [...Object.values(O), "user.attributes"], ge = class {
|
|
535
568
|
glows = [];
|
|
536
569
|
pendingAttributes = {};
|
|
537
570
|
entryPoint = null;
|
|
@@ -547,28 +580,28 @@ var pe = class {
|
|
|
547
580
|
mergeAttributes(e) {
|
|
548
581
|
Object.assign(this.pendingAttributes, e);
|
|
549
582
|
}
|
|
550
|
-
},
|
|
551
|
-
scope = new
|
|
583
|
+
}, k = class {
|
|
584
|
+
scope = new ge();
|
|
552
585
|
active() {
|
|
553
586
|
return this.scope;
|
|
554
587
|
}
|
|
555
|
-
},
|
|
556
|
-
function
|
|
588
|
+
}, A = {};
|
|
589
|
+
function _e(e, t, n, r) {
|
|
557
590
|
return new Promise((i) => {
|
|
558
591
|
if (!t || !n) return i({
|
|
559
592
|
codeSnippet: { 0: `Could not read from file: missing file URL or line number. URL: ${t} lineNumber: ${n}` },
|
|
560
593
|
trimmedColumnNumber: null
|
|
561
594
|
});
|
|
562
|
-
|
|
595
|
+
ve(e, t).then((e) => i(e ? ye(e, n, r) : {
|
|
563
596
|
codeSnippet: { 0: `Could not read from file: Error while opening file at URL ${t}` },
|
|
564
597
|
trimmedColumnNumber: null
|
|
565
598
|
}));
|
|
566
599
|
});
|
|
567
600
|
}
|
|
568
|
-
function
|
|
569
|
-
return
|
|
601
|
+
function ve(e, t) {
|
|
602
|
+
return A[t] === void 0 ? e.read(t).then((e) => (e !== null && (A[t] = e), e)) : Promise.resolve(A[t]);
|
|
570
603
|
}
|
|
571
|
-
function
|
|
604
|
+
function ye(e, t, n, r = 1e3, i = 40) {
|
|
572
605
|
let a = {}, o = null, s = e.split("\n"), c = t - 1, l = Math.floor(i / 2);
|
|
573
606
|
for (let e = -l; e <= l; e++) {
|
|
574
607
|
let i = c + e;
|
|
@@ -590,27 +623,34 @@ function ge(e, t, n, r = 1e3, i = 40) {
|
|
|
590
623
|
trimmedColumnNumber: o
|
|
591
624
|
};
|
|
592
625
|
}
|
|
593
|
-
function
|
|
626
|
+
function j(e, t, n) {
|
|
594
627
|
return new Promise((r) => {
|
|
595
|
-
if (!
|
|
628
|
+
if (!Se(e)) return r([M("stacktrace missing")]);
|
|
596
629
|
let i;
|
|
597
630
|
try {
|
|
598
631
|
i = c.default.parse(e);
|
|
599
632
|
} catch (n) {
|
|
600
|
-
return f(!1, "Couldn't parse stacktrace of below error:", t), t && (console.error(n), console.error(e)), r([
|
|
633
|
+
return f(!1, "Couldn't parse stacktrace of below error:", t), t && (console.error(n), console.error(e)), r([M("stacktrace could not be parsed")]);
|
|
601
634
|
}
|
|
602
|
-
Promise.all(i.map((e) =>
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
635
|
+
Promise.all(i.map((e) => {
|
|
636
|
+
let t = xe(e.fileName);
|
|
637
|
+
return _e(n, t, e.lineNumber, e.columnNumber).then((n) => ({
|
|
638
|
+
lineNumber: e.lineNumber || 1,
|
|
639
|
+
columnNumber: e.columnNumber || 1,
|
|
640
|
+
method: e.functionName || "Anonymous or unknown function",
|
|
641
|
+
file: t || "Unknown file",
|
|
642
|
+
codeSnippet: n.codeSnippet,
|
|
643
|
+
class: "",
|
|
644
|
+
isApplicationFrame: Ce(t)
|
|
645
|
+
}));
|
|
646
|
+
})).then(r);
|
|
611
647
|
});
|
|
612
648
|
}
|
|
613
|
-
|
|
649
|
+
var be = "address at ";
|
|
650
|
+
function xe(e) {
|
|
651
|
+
return e?.startsWith(be) ? e.slice(11) : e;
|
|
652
|
+
}
|
|
653
|
+
function M(e) {
|
|
614
654
|
return {
|
|
615
655
|
lineNumber: 0,
|
|
616
656
|
columnNumber: 0,
|
|
@@ -620,19 +660,19 @@ function A(e) {
|
|
|
620
660
|
class: "unknown"
|
|
621
661
|
};
|
|
622
662
|
}
|
|
623
|
-
function
|
|
663
|
+
function Se(e) {
|
|
624
664
|
if (!e || typeof e != "object") return !1;
|
|
625
665
|
let t = e, n = t.stack ?? t.stacktrace ?? t["opera#sourceloc"];
|
|
626
666
|
return typeof n == "string" && n !== `${t.name}: ${t.message}`;
|
|
627
667
|
}
|
|
628
|
-
function
|
|
629
|
-
return e
|
|
668
|
+
function Ce(e) {
|
|
669
|
+
return !e || !(/[/\\]node_modules[/\\]/.test(e) || /(^|[/\\])(vendor|vendors)[.~-][^/\\]*\.js/i.test(e));
|
|
630
670
|
}
|
|
631
|
-
var
|
|
671
|
+
var we = class {
|
|
632
672
|
read(e) {
|
|
633
673
|
return Promise.resolve(null);
|
|
634
674
|
}
|
|
635
|
-
},
|
|
675
|
+
}, Te = "@flareapp/core", Ee = class {
|
|
636
676
|
inflight = /* @__PURE__ */ new Set();
|
|
637
677
|
_logger;
|
|
638
678
|
_config = {
|
|
@@ -644,7 +684,7 @@ var ye = class {
|
|
|
644
684
|
ingestUrl: "https://ingress.flareapp.io/v1/errors",
|
|
645
685
|
reportBrowserExtensionErrors: !1,
|
|
646
686
|
debug: !1,
|
|
647
|
-
urlDenylist:
|
|
687
|
+
urlDenylist: x,
|
|
648
688
|
replaceDefaultUrlDenylist: !1,
|
|
649
689
|
sampleRate: 1,
|
|
650
690
|
beforeEvaluate: (e) => e,
|
|
@@ -657,12 +697,12 @@ var ye = class {
|
|
|
657
697
|
keepaliveMaxBytes: 6e4
|
|
658
698
|
};
|
|
659
699
|
sdkInfo = {
|
|
660
|
-
name:
|
|
700
|
+
name: Te,
|
|
661
701
|
version: l
|
|
662
702
|
};
|
|
663
703
|
framework = null;
|
|
664
|
-
constructor(e = new
|
|
665
|
-
this.api = e, this.contextCollector = t, this.fileReader = n, this.scopeProvider = r, this._logger = new
|
|
704
|
+
constructor(e = new w(), t = () => ({}), n = new we(), r = new k(), i = new de()) {
|
|
705
|
+
this.api = e, this.contextCollector = t, this.fileReader = n, this.scopeProvider = r, this._logger = new ue({
|
|
666
706
|
api: this.api,
|
|
667
707
|
getConfig: () => this._config,
|
|
668
708
|
getSdkInfo: () => this.sdkInfo,
|
|
@@ -703,7 +743,7 @@ var ye = class {
|
|
|
703
743
|
return this._config = {
|
|
704
744
|
...this._config,
|
|
705
745
|
...e
|
|
706
|
-
}, e.sampleRate !== void 0 && (this._config.sampleRate = Math.max(0, Math.min(1, e.sampleRate))), this._config.urlDenylist =
|
|
746
|
+
}, e.sampleRate !== void 0 && (this._config.sampleRate = Math.max(0, Math.min(1, e.sampleRate))), this._config.urlDenylist = S(e.urlDenylist, e.replaceDefaultUrlDenylist ?? this._config.replaceDefaultUrlDenylist), t && this._config.enableLogs === !1 && this._logger.clear(), e.key !== void 0 && this._logger.flush(), this;
|
|
707
747
|
}
|
|
708
748
|
test() {
|
|
709
749
|
return this.track(this.testInternal());
|
|
@@ -713,7 +753,7 @@ var ye = class {
|
|
|
713
753
|
if (e) return this.sendReport(e);
|
|
714
754
|
}
|
|
715
755
|
glow(e, t = "info", n = []) {
|
|
716
|
-
let r =
|
|
756
|
+
let r = ee();
|
|
717
757
|
return this.scopeProvider.active().addGlow({
|
|
718
758
|
name: e,
|
|
719
759
|
messageLevel: t,
|
|
@@ -735,6 +775,15 @@ var ye = class {
|
|
|
735
775
|
addContextGroup(e, t) {
|
|
736
776
|
return this.scopeProvider.active().setAttribute(`context.${e}`, t), this;
|
|
737
777
|
}
|
|
778
|
+
setUser(e) {
|
|
779
|
+
let t = this.scopeProvider.active();
|
|
780
|
+
for (let e of he) delete t.pendingAttributes[e];
|
|
781
|
+
if (!e) return this;
|
|
782
|
+
let { id: n, email: r, fullName: i, ipAddress: a, ...o } = e;
|
|
783
|
+
n != null && t.setAttribute(O.id, String(n)), r !== void 0 && t.setAttribute(O.email, r), i !== void 0 && t.setAttribute(O.fullName, i), a !== void 0 && t.setAttribute(O.ipAddress, a);
|
|
784
|
+
let s = Object.fromEntries(Object.entries(o).filter(([, e]) => e !== void 0));
|
|
785
|
+
return Object.keys(s).length > 0 && t.setAttribute("user.attributes", s), this;
|
|
786
|
+
}
|
|
738
787
|
setEntryPoint(e) {
|
|
739
788
|
return this.scopeProvider.active().entryPoint = e, this;
|
|
740
789
|
}
|
|
@@ -779,7 +828,7 @@ var ye = class {
|
|
|
779
828
|
}
|
|
780
829
|
async reportMessageInternal(e, t, n = {}) {
|
|
781
830
|
if (this._config.sampleRate < 1 && Math.random() >= this._config.sampleRate) return;
|
|
782
|
-
let r = Date.now() * 1e6, i = await
|
|
831
|
+
let r = Date.now() * 1e6, i = await j(/* @__PURE__ */ Error(), this._config.debug, this.fileReader);
|
|
783
832
|
i.shift();
|
|
784
833
|
let a = this.buildReport({
|
|
785
834
|
exceptionClass: "Log",
|
|
@@ -795,7 +844,7 @@ var ye = class {
|
|
|
795
844
|
}
|
|
796
845
|
async createReportFromError(e, t = {}, n = Date.now() * 1e6) {
|
|
797
846
|
if (!f(e, "No error provided.", this._config.debug)) return !1;
|
|
798
|
-
let r = await
|
|
847
|
+
let r = await j(e, this._config.debug, this.fileReader);
|
|
799
848
|
f(r.length, "Couldn't generate stacktrace of this error: " + e, this._config.debug);
|
|
800
849
|
let i = e.constructor && e.constructor.name ? e.constructor.name : "undefined";
|
|
801
850
|
return this.buildReport({
|
|
@@ -837,7 +886,7 @@ var ye = class {
|
|
|
837
886
|
}), s;
|
|
838
887
|
}
|
|
839
888
|
buildLogAttributes(e) {
|
|
840
|
-
let { resource: t, record: n } =
|
|
889
|
+
let { resource: t, record: n } = me(this.contextCollector(this._config));
|
|
841
890
|
return {
|
|
842
891
|
resource: t,
|
|
843
892
|
record: this.assembleAttributes(n, e, !1)
|
|
@@ -849,7 +898,7 @@ var ye = class {
|
|
|
849
898
|
message: e.message,
|
|
850
899
|
seenAtUnixNano: e.seenAtUnixNano,
|
|
851
900
|
stacktrace: e.stacktrace,
|
|
852
|
-
events:
|
|
901
|
+
events: b(t.glows),
|
|
853
902
|
attributes: n
|
|
854
903
|
};
|
|
855
904
|
return e.isLog && (r.isLog = !0), e.level !== void 0 && (r.level = e.level), this._config.sourcemapVersionId && (r.sourcemapVersionId = this._config.sourcemapVersionId), e.code !== void 0 && (r.code = e.code), r;
|
|
@@ -859,14 +908,14 @@ var ye = class {
|
|
|
859
908
|
let t = await this._config.beforeSubmit(e);
|
|
860
909
|
if (t) return this.api.report(t, this._config.ingestUrl, this._config.key, this._config.reportBrowserExtensionErrors, this._config.debug);
|
|
861
910
|
}
|
|
862
|
-
},
|
|
911
|
+
}, De = class {
|
|
863
912
|
register(e) {
|
|
864
913
|
typeof document > "u" || !document || document.addEventListener("visibilitychange", () => {
|
|
865
914
|
document.visibilityState === "hidden" && e({ keepalive: !0 });
|
|
866
915
|
});
|
|
867
916
|
}
|
|
868
917
|
};
|
|
869
|
-
function
|
|
918
|
+
function Oe() {
|
|
870
919
|
if (!window.document.cookie) return {};
|
|
871
920
|
let e = {};
|
|
872
921
|
return window.document.cookie.split("; ").forEach((t) => {
|
|
@@ -879,87 +928,81 @@ function N() {
|
|
|
879
928
|
e[r] = t.slice(n + 1);
|
|
880
929
|
}), { "http.request.cookies": e };
|
|
881
930
|
}
|
|
882
|
-
function
|
|
931
|
+
function ke(e) {
|
|
883
932
|
return {
|
|
884
|
-
"url.full":
|
|
933
|
+
"url.full": C(window.location.href, e),
|
|
885
934
|
"user_agent.original": window.navigator.userAgent,
|
|
886
|
-
"http.request.referrer":
|
|
935
|
+
"http.request.referrer": C(window.document.referrer, e),
|
|
887
936
|
"document.ready_state": window.document.readyState
|
|
888
937
|
};
|
|
889
938
|
}
|
|
890
|
-
function
|
|
891
|
-
return window.location.search ? { "url.query":
|
|
939
|
+
function Ae(e) {
|
|
940
|
+
return window.location.search ? { "url.query": C(window.location.search, e).replace(/^\?/, "") } : {};
|
|
892
941
|
}
|
|
893
|
-
var
|
|
942
|
+
var je = (e) => {
|
|
894
943
|
if (typeof window > "u") return { "flare.entry_point.type": "server" };
|
|
895
944
|
let t = { "flare.entry_point.type": "web" };
|
|
896
|
-
return window?.location?.href && (t["flare.entry_point.value"] =
|
|
897
|
-
},
|
|
945
|
+
return window?.location?.href && (t["flare.entry_point.value"] = C(window.location.href, e.urlDenylist), window.location.pathname && (t["flare.entry_point.handler.identifier"] = window.location.pathname, t["flare.entry_point.handler.type"] = "browser")), window?.location?.hostname && (t["host.name"] = window.location.hostname), Object.assign(t, ke(e.urlDenylist)), Object.assign(t, Ae(e.urlDenylist)), Object.assign(t, Oe()), t;
|
|
946
|
+
}, Me = class {
|
|
898
947
|
read(e) {
|
|
899
948
|
return /^https?:\/\//i.test(e) ? fetch(e).then((e) => e.status === 200 ? e.text() : null).catch(() => null) : Promise.resolve(null);
|
|
900
949
|
}
|
|
901
|
-
},
|
|
902
|
-
function
|
|
950
|
+
}, Ne = typeof process < "u" ? "2.6.0" : "?";
|
|
951
|
+
function Pe() {
|
|
903
952
|
typeof window > "u" || (window.addEventListener("error", (e) => {
|
|
904
953
|
let t = window.flare;
|
|
905
954
|
t && e.error instanceof Error && t.reportSilently(e.error);
|
|
906
955
|
}), window.addEventListener("unhandledrejection", (e) => {
|
|
907
956
|
let t = window.flare;
|
|
908
|
-
|
|
909
|
-
let n = e.reason;
|
|
910
|
-
if (n instanceof Error) {
|
|
911
|
-
t.reportSilently(n);
|
|
912
|
-
return;
|
|
913
|
-
}
|
|
914
|
-
if (Ee(n)) {
|
|
915
|
-
let e = Error(F(n));
|
|
916
|
-
e.stack = n.stack, t.reportSilently(e);
|
|
917
|
-
return;
|
|
918
|
-
}
|
|
919
|
-
Promise.resolve(t.reportUnhandledRejection(F(n))).catch(() => {});
|
|
957
|
+
t && ae(t, e.reason);
|
|
920
958
|
}));
|
|
921
959
|
}
|
|
922
|
-
function F(e) {
|
|
923
|
-
if (typeof e == "string") return e;
|
|
924
|
-
if (e && typeof e == "object") {
|
|
925
|
-
let t = e.message;
|
|
926
|
-
if (typeof t == "string") return t;
|
|
927
|
-
try {
|
|
928
|
-
return JSON.stringify(e);
|
|
929
|
-
} catch {
|
|
930
|
-
return "Unhandled promise rejection (non-serializable reason)";
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
return String(e);
|
|
934
|
-
}
|
|
935
|
-
function Ee(e) {
|
|
936
|
-
return typeof e == "object" && !!e && "stack" in e && typeof e.stack == "string";
|
|
937
|
-
}
|
|
938
960
|
//#endregion
|
|
939
961
|
//#region node_modules/@flareapp/js/dist/index.mjs
|
|
940
|
-
var
|
|
941
|
-
constructor(e = new
|
|
942
|
-
super(e, t, n, r, new
|
|
962
|
+
var N = new class extends Ee {
|
|
963
|
+
constructor(e = new w(), t = je, n = new Me(), r = new k()) {
|
|
964
|
+
super(e, t, n, r, new De()), this.setSdkInfo({
|
|
943
965
|
name: "@flareapp/js",
|
|
944
|
-
version:
|
|
966
|
+
version: Ne
|
|
945
967
|
});
|
|
946
968
|
}
|
|
947
969
|
}();
|
|
948
|
-
typeof window < "u" && window && (window.flare =
|
|
970
|
+
typeof window < "u" && window && (window.flare = N, Pe());
|
|
949
971
|
//#endregion
|
|
950
972
|
//#region src/plugins/flare.ts
|
|
951
|
-
var
|
|
952
|
-
|
|
953
|
-
for (let t = 0; t <
|
|
973
|
+
var P = /* @__PURE__ */ "fancybox,jQuery,Modernizr,cssua,ScrollTrigger,calcSelectArrowDimensions,this.elements.$menu.smartmenus,woocommerce,elementor,avadaAddQuantityBoxes,fusion,FLBuilderAccordion,_initLayerSlider,Divi,gsap,Swiper,mailchimp,_AutofillCallbackHandler,$(...),imagesLoaded,accessing a cross-origin frame,scrollspy,No layout mode: packery,Vimeo,Network Error,Request aborted,timeout exceeded,Loading chunk,TrackerStorageType,Failed to load because no supported source was found.,The element has no supported sources.,grecaptcha,lightbox,priceCalcElement,AwesomeMenu,breakdance,Maximum call stack size exceeded.,Cookies is not defined,getUniqId,Cannot read properties of null (reading 'classList'),n.getModal,e.target.closest is not a function,Cannot read properties of undefined (reading 'Item'),refreshFsLightbox,fbq,Cannot assign to read only property 'push' of object '[object Array]',naturalWidth,Request failed with status code,Can't find variable: _,astraNavMenuTogglePro,The operation was aborted.,Failed to fetch dynamically imported module:,Importing a module script failed.,The request is not allowed by the user agent,this.Vi.close,The operation is insecure.,gformValidateFileSize,BreakdanceEntrance,Cannot read properties of undefined (reading '__'),The play() request was interrupted because video-only,Animation is interrupted by user input.,Animation is already playing.,Position \"NaN\" is not reachable.,Cannot redefine property: onbeforeunload,e.remove is not a function,Can't find variable: Cookies,Load failed,wp is not defined,Backbone,Invalid attempt to destructure non-iterable instance,Can't find variable: EmptyRanges,Cannot read properties of undefined (reading 'setLocaleData'),Function snaptr not implemented.,window.sbi_init is not a function".split(",");
|
|
974
|
+
/(meta-external|facebookexternalhit|googlebot|bingbot|slurp|duckduckbot|baiduspider|yandexbot|twitterbot|linkedinbot|semrushbot|ahrefsbot|applebot|bytespider|crawler|spider)/i.test(navigator.userAgent) || (N.light("5pqzBljrmDvquWZYSrSUKldIUREtPyB3"), N.addContext("version", "4.6.0"), N.beforeEvaluate = (e) => {
|
|
975
|
+
for (let t = 0; t < P.length; t++) if (e.message.includes(P[t])) return !1;
|
|
954
976
|
return e;
|
|
955
|
-
};
|
|
977
|
+
});
|
|
956
978
|
//#endregion
|
|
957
|
-
//#region node_modules/@flareapp/vue/dist/
|
|
958
|
-
var
|
|
959
|
-
function
|
|
960
|
-
|
|
979
|
+
//#region node_modules/@flareapp/vue/dist/FlareErrorBoundary-9LmNTGFB.mjs
|
|
980
|
+
var F = null;
|
|
981
|
+
function Fe() {
|
|
982
|
+
try {
|
|
983
|
+
return !1;
|
|
984
|
+
} catch {
|
|
985
|
+
return !1;
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
function Ie(e) {
|
|
989
|
+
if (typeof window < "u" && window.__flare) {
|
|
990
|
+
let e = "[flare] @flareapp/vue (web root) was imported in a renderer where the Electron bridge is present, pulling the keyed @flareapp/js singleton into the renderer. Import @flareapp/vue/inject and pass the @flareapp/electron/renderer instance instead.";
|
|
991
|
+
if (Fe()) throw Error(e);
|
|
992
|
+
console.warn(e);
|
|
993
|
+
}
|
|
994
|
+
F = e;
|
|
995
|
+
}
|
|
996
|
+
function I(e) {
|
|
997
|
+
if (e) return e;
|
|
998
|
+
if (F) return F();
|
|
999
|
+
throw Error("[flare] No Flare instance available. Pass `flare` (e.g. from @flareapp/electron/renderer), or import @flareapp/vue (the package root) to use the @flareapp/js default singleton.");
|
|
961
1000
|
}
|
|
962
|
-
var
|
|
1001
|
+
var Le = typeof process < "u" && process.env?.PACKAGE_VERSION !== void 0 ? process.env.PACKAGE_VERSION : "?", L = 50, R = /password|passwd|pwd|token|secret|authorization|\bauth\b|bearer|oauth|credentials?|cookie|api[-_]?key|private[-_]?key|session|csrf|xsrf|\bpin\b|\bssn\b|card[-_]?number|\bcvv\b/i;
|
|
1002
|
+
function z(e, t = !1) {
|
|
1003
|
+
return S(e, t, R);
|
|
1004
|
+
}
|
|
1005
|
+
var B = 1e3, V = 100, H = 100, Re = {
|
|
963
1006
|
"setup function": "setup",
|
|
964
1007
|
"render function": "render",
|
|
965
1008
|
"component update": "render",
|
|
@@ -1023,82 +1066,82 @@ var V = 1e3, H = 100, U = 100, Oe = {
|
|
|
1023
1066
|
rtc: "lifecycle",
|
|
1024
1067
|
rtg: "lifecycle"
|
|
1025
1068
|
};
|
|
1026
|
-
function
|
|
1069
|
+
function U(e) {
|
|
1027
1070
|
if (!e) return "AnonymousComponent";
|
|
1028
1071
|
let t = e.$options;
|
|
1029
1072
|
return t.__name || t.name || "AnonymousComponent";
|
|
1030
1073
|
}
|
|
1031
|
-
function
|
|
1074
|
+
function W(e) {
|
|
1032
1075
|
let t = [], n = e;
|
|
1033
|
-
for (; n && t.length <
|
|
1076
|
+
for (; n && t.length < L;) t.push(U(n)), n = n.$parent;
|
|
1034
1077
|
return t;
|
|
1035
1078
|
}
|
|
1036
|
-
function
|
|
1037
|
-
return
|
|
1079
|
+
function G(e, t, n = R) {
|
|
1080
|
+
return K(e, 0, t, /* @__PURE__ */ new WeakSet(), n);
|
|
1038
1081
|
}
|
|
1039
|
-
function
|
|
1082
|
+
function K(e, t, n, r, i) {
|
|
1040
1083
|
if (e === null) return null;
|
|
1041
1084
|
let a = typeof e;
|
|
1042
1085
|
if (a === "function") return "[Function]";
|
|
1043
1086
|
if (a === "symbol") return "[Symbol]";
|
|
1044
1087
|
if (a === "bigint") return e.toString();
|
|
1045
|
-
if (a === "string") return
|
|
1088
|
+
if (a === "string") return ze(e);
|
|
1046
1089
|
if (a !== "object") return e;
|
|
1047
1090
|
if (r.has(e)) return "[Circular]";
|
|
1048
1091
|
if (Array.isArray(e)) {
|
|
1049
1092
|
if (t > n) return "[Array]";
|
|
1050
1093
|
r.add(e);
|
|
1051
|
-
let a = (e.length >
|
|
1052
|
-
return e.length >
|
|
1094
|
+
let a = (e.length > V ? e.slice(0, V) : e).map((e) => K(e, t + 1, n, r, i));
|
|
1095
|
+
return e.length > V && a.push(`[… ${e.length - V} more items]`), r.delete(e), a;
|
|
1053
1096
|
}
|
|
1054
|
-
if (!
|
|
1097
|
+
if (!Be(e) || t > n) return "[Object]";
|
|
1055
1098
|
r.add(e);
|
|
1056
|
-
let o = {}, s = Object.keys(e), c = s.length >
|
|
1099
|
+
let o = {}, s = Object.keys(e), c = s.length > H ? s.slice(0, H) : s;
|
|
1057
1100
|
for (let a of c) {
|
|
1058
1101
|
if (i.test(a)) {
|
|
1059
1102
|
o[a] = "[redacted]";
|
|
1060
1103
|
continue;
|
|
1061
1104
|
}
|
|
1062
|
-
o[a] =
|
|
1105
|
+
o[a] = K(e[a], t + 1, n, r, i);
|
|
1063
1106
|
}
|
|
1064
|
-
return s.length >
|
|
1107
|
+
return s.length > H && (o["…"] = `[${s.length - H} more keys]`), r.delete(e), o;
|
|
1065
1108
|
}
|
|
1066
|
-
function
|
|
1067
|
-
return e.length <=
|
|
1109
|
+
function ze(e) {
|
|
1110
|
+
return e.length <= B ? e : `${e.slice(0, B)}…[truncated ${e.length - B} chars]`;
|
|
1068
1111
|
}
|
|
1069
|
-
function
|
|
1112
|
+
function Be(e) {
|
|
1070
1113
|
if (typeof e != "object" || !e) return !1;
|
|
1071
1114
|
let t = Object.getPrototypeOf(e);
|
|
1072
1115
|
return t === null || t === Object.prototype;
|
|
1073
1116
|
}
|
|
1074
|
-
function
|
|
1117
|
+
function q(e, t) {
|
|
1075
1118
|
let n = [], r = e;
|
|
1076
|
-
for (; r && n.length <
|
|
1119
|
+
for (; r && n.length < L;) {
|
|
1077
1120
|
let e = r.$options, i = {
|
|
1078
|
-
component:
|
|
1121
|
+
component: U(r),
|
|
1079
1122
|
file: e.__file ?? null
|
|
1080
1123
|
};
|
|
1081
|
-
t.attachProps && r.$props && (i.props =
|
|
1124
|
+
t.attachProps && r.$props && (i.props = G(r.$props, t.propsMaxDepth, t.propsDenylist)), n.push(i), r = r.$parent;
|
|
1082
1125
|
}
|
|
1083
1126
|
return n;
|
|
1084
1127
|
}
|
|
1085
|
-
function
|
|
1086
|
-
return
|
|
1128
|
+
function J(e) {
|
|
1129
|
+
return Re[e] ?? "unknown";
|
|
1087
1130
|
}
|
|
1088
|
-
var
|
|
1089
|
-
function
|
|
1131
|
+
var Y = 2;
|
|
1132
|
+
function X(e, t = {}) {
|
|
1090
1133
|
if (!e || typeof e != "object" || !("currentRoute" in e)) return null;
|
|
1091
1134
|
let n = e.currentRoute;
|
|
1092
1135
|
if (!n || typeof n != "object" || !("value" in n)) return null;
|
|
1093
1136
|
let r = n.value;
|
|
1094
1137
|
if (!r || typeof r != "object") return null;
|
|
1095
|
-
let i = r, a = i.name, o = t.denylist ??
|
|
1138
|
+
let i = r, a = i.name, o = t.denylist ?? R, s = i.params && typeof i.params == "object" ? i.params : {}, c = i.query && typeof i.query == "object" ? i.query : {};
|
|
1096
1139
|
return {
|
|
1097
1140
|
name: typeof a == "string" ? a : typeof a == "symbol" ? a.toString() : null,
|
|
1098
1141
|
path: typeof i.path == "string" ? i.path : "",
|
|
1099
|
-
fullPath: typeof i.fullPath == "string" ?
|
|
1100
|
-
params:
|
|
1101
|
-
query:
|
|
1142
|
+
fullPath: typeof i.fullPath == "string" ? C(i.fullPath, o) : "",
|
|
1143
|
+
params: G(s, Y, o),
|
|
1144
|
+
query: G(c, Y, o),
|
|
1102
1145
|
hash: typeof i.hash == "string" ? i.hash : "",
|
|
1103
1146
|
matched: Array.isArray(i.matched) ? i.matched.map((e) => {
|
|
1104
1147
|
if (!e || typeof e != "object") return "unknown";
|
|
@@ -1107,7 +1150,20 @@ function Z(e, t = {}) {
|
|
|
1107
1150
|
}) : []
|
|
1108
1151
|
};
|
|
1109
1152
|
}
|
|
1110
|
-
|
|
1153
|
+
var Z = /* @__PURE__ */ new WeakSet(), Q = /* @__PURE__ */ new WeakSet();
|
|
1154
|
+
function Ve(e) {
|
|
1155
|
+
Z.has(e) || (Z.add(e), e.setSdkInfo({
|
|
1156
|
+
name: "@flareapp/vue",
|
|
1157
|
+
version: Le
|
|
1158
|
+
}));
|
|
1159
|
+
}
|
|
1160
|
+
function He(e, t) {
|
|
1161
|
+
Q.has(e) || (Q.add(e), e.setFramework({
|
|
1162
|
+
name: "Vue",
|
|
1163
|
+
version: t
|
|
1164
|
+
}));
|
|
1165
|
+
}
|
|
1166
|
+
function Ue(e) {
|
|
1111
1167
|
let t = {
|
|
1112
1168
|
info: e.vue.info,
|
|
1113
1169
|
errorOrigin: e.vue.errorOrigin,
|
|
@@ -1117,7 +1173,7 @@ function Q(e) {
|
|
|
1117
1173
|
};
|
|
1118
1174
|
return e.vue.componentProps && (t.componentProps = e.vue.componentProps), e.vue.route && (t.route = e.vue.route), { "context.custom": { vue: t } };
|
|
1119
1175
|
}
|
|
1120
|
-
function
|
|
1176
|
+
function We(e) {
|
|
1121
1177
|
let t = {
|
|
1122
1178
|
type: e.vue.type,
|
|
1123
1179
|
info: e.vue.info,
|
|
@@ -1126,68 +1182,69 @@ function je(e) {
|
|
|
1126
1182
|
};
|
|
1127
1183
|
return e.vue.route && (t.route = e.vue.route), { "context.custom": { vue: t } };
|
|
1128
1184
|
}
|
|
1129
|
-
var $ = /* @__PURE__ */ new WeakSet(),
|
|
1185
|
+
var $ = /* @__PURE__ */ new WeakSet(), Ge = (e, t) => {
|
|
1130
1186
|
if ($.has(e)) return;
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
version: e.version
|
|
1137
|
-
});
|
|
1138
|
-
let n = t?.attachProps ?? !1, r = t?.propsMaxDepth ?? 2, i = B(t?.propsDenylist, t?.replaceDefaultDenylist), a = e.config.errorHandler;
|
|
1139
|
-
if (e.config.errorHandler = (o, s, c) => {
|
|
1140
|
-
let l = m(o);
|
|
1187
|
+
let n = I(t?.flare);
|
|
1188
|
+
$.add(e), t?.flare || Ve(n), He(n, e.version);
|
|
1189
|
+
let r = t?.attachProps ?? !1, i = t?.propsMaxDepth ?? 2, a = z(t?.propsDenylist, t?.replaceDefaultDenylist), o = e.config.errorHandler;
|
|
1190
|
+
if (e.config.errorHandler = (s, c, l) => {
|
|
1191
|
+
let u = m(s);
|
|
1141
1192
|
t?.beforeEvaluate?.({
|
|
1142
|
-
error:
|
|
1143
|
-
instance:
|
|
1144
|
-
info:
|
|
1193
|
+
error: u,
|
|
1194
|
+
instance: c,
|
|
1195
|
+
info: l
|
|
1145
1196
|
});
|
|
1146
|
-
let
|
|
1147
|
-
attachProps:
|
|
1148
|
-
propsMaxDepth:
|
|
1149
|
-
propsDenylist:
|
|
1150
|
-
}),
|
|
1151
|
-
info:
|
|
1152
|
-
errorOrigin:
|
|
1153
|
-
componentName:
|
|
1154
|
-
...
|
|
1155
|
-
componentHierarchy:
|
|
1156
|
-
componentHierarchyFrames:
|
|
1157
|
-
...
|
|
1158
|
-
} },
|
|
1159
|
-
error:
|
|
1160
|
-
instance:
|
|
1161
|
-
info:
|
|
1162
|
-
context: _
|
|
1163
|
-
}) ?? _;
|
|
1164
|
-
if (I.reportSilently(l, Q(v)), t?.afterSubmit?.({
|
|
1165
|
-
error: l,
|
|
1166
|
-
instance: s,
|
|
1167
|
-
info: c,
|
|
1197
|
+
let d = J(l), f = U(c), p = r && c?.$props ? G(c.$props, i, a) : void 0, h = W(c), g = q(c, {
|
|
1198
|
+
attachProps: r,
|
|
1199
|
+
propsMaxDepth: i,
|
|
1200
|
+
propsDenylist: a
|
|
1201
|
+
}), _ = X(e.config.globalProperties.$router, { denylist: a }), v = { vue: {
|
|
1202
|
+
info: l,
|
|
1203
|
+
errorOrigin: d,
|
|
1204
|
+
componentName: f,
|
|
1205
|
+
...p && { componentProps: p },
|
|
1206
|
+
componentHierarchy: h,
|
|
1207
|
+
componentHierarchyFrames: g,
|
|
1208
|
+
..._ && { route: _ }
|
|
1209
|
+
} }, y = t?.beforeSubmit?.({
|
|
1210
|
+
error: u,
|
|
1211
|
+
instance: c,
|
|
1212
|
+
info: l,
|
|
1168
1213
|
context: v
|
|
1169
|
-
})
|
|
1170
|
-
|
|
1214
|
+
}) ?? v;
|
|
1215
|
+
if (n.reportSilently(u, Ue(y)), t?.afterSubmit?.({
|
|
1216
|
+
error: u,
|
|
1217
|
+
instance: c,
|
|
1218
|
+
info: l,
|
|
1219
|
+
context: y
|
|
1220
|
+
}), typeof o == "function") {
|
|
1221
|
+
o(s, c, l);
|
|
1171
1222
|
return;
|
|
1172
1223
|
}
|
|
1173
|
-
console.error(
|
|
1224
|
+
console.error(s);
|
|
1174
1225
|
}, t?.captureWarnings) {
|
|
1175
1226
|
let t = e.config.warnHandler;
|
|
1176
|
-
e.config.warnHandler = (
|
|
1177
|
-
let
|
|
1227
|
+
e.config.warnHandler = (r, i, o) => {
|
|
1228
|
+
let s = U(i), c = X(e.config.globalProperties.$router, { denylist: a }), l = { vue: {
|
|
1178
1229
|
type: "warning",
|
|
1179
|
-
info:
|
|
1180
|
-
componentName:
|
|
1181
|
-
componentTrace:
|
|
1182
|
-
...
|
|
1230
|
+
info: r,
|
|
1231
|
+
componentName: s,
|
|
1232
|
+
componentTrace: o,
|
|
1233
|
+
...c && { route: c }
|
|
1183
1234
|
} };
|
|
1184
|
-
Promise.resolve(
|
|
1235
|
+
Promise.resolve(n.reportMessage(r, "warning", We(l))).catch(() => {}), typeof t == "function" && t(r, i, o);
|
|
1185
1236
|
};
|
|
1186
1237
|
}
|
|
1187
1238
|
};
|
|
1239
|
+
//#endregion
|
|
1240
|
+
//#region node_modules/@flareapp/vue/dist/index.mjs
|
|
1188
1241
|
i({
|
|
1189
1242
|
name: "FlareErrorBoundary",
|
|
1190
1243
|
props: {
|
|
1244
|
+
flare: {
|
|
1245
|
+
type: Object,
|
|
1246
|
+
default: void 0
|
|
1247
|
+
},
|
|
1191
1248
|
beforeEvaluate: {
|
|
1192
1249
|
type: Function,
|
|
1193
1250
|
default: void 0
|
|
@@ -1226,13 +1283,15 @@ i({
|
|
|
1226
1283
|
}
|
|
1227
1284
|
},
|
|
1228
1285
|
setup(e, { slots: t }) {
|
|
1229
|
-
let i =
|
|
1230
|
-
|
|
1286
|
+
let i = I(e.flare);
|
|
1287
|
+
He(i, n()?.appContext.app.version);
|
|
1288
|
+
let s = n(), c = a(null), l = a(void 0), u = a([]), d = a([]), f = () => {
|
|
1289
|
+
e.onReset?.(c.value), c.value = null, l.value = void 0, u.value = [], d.value = [];
|
|
1231
1290
|
};
|
|
1232
1291
|
return o(() => e.resetKeys, (e, t) => {
|
|
1233
|
-
if (
|
|
1292
|
+
if (c.value === null || !e || !t) return;
|
|
1234
1293
|
let n = t.length !== e.length, r = e.some((e, n) => !Object.is(e, t[n]));
|
|
1235
|
-
(n || r) &&
|
|
1294
|
+
(n || r) && f();
|
|
1236
1295
|
}), r((t, n, r) => {
|
|
1237
1296
|
let a = m(t);
|
|
1238
1297
|
e.beforeEvaluate?.({
|
|
@@ -1240,40 +1299,40 @@ i({
|
|
|
1240
1299
|
instance: n,
|
|
1241
1300
|
info: r
|
|
1242
1301
|
});
|
|
1243
|
-
let o =
|
|
1302
|
+
let o = z(e.propsDenylist, e.replaceDefaultDenylist), f = W(n), p = q(n, {
|
|
1244
1303
|
attachProps: e.attachProps,
|
|
1245
1304
|
propsMaxDepth: e.propsMaxDepth,
|
|
1246
1305
|
propsDenylist: o
|
|
1247
|
-
}),
|
|
1248
|
-
|
|
1249
|
-
let
|
|
1306
|
+
}), h = U(n);
|
|
1307
|
+
c.value = a;
|
|
1308
|
+
let g = e.attachProps && n?.$props ? G(n.$props, e.propsMaxDepth, o) : void 0, _ = J(r), v = X(s?.appContext.config.globalProperties.$router, { denylist: o }), y = { vue: {
|
|
1250
1309
|
info: r,
|
|
1251
|
-
errorOrigin:
|
|
1252
|
-
...
|
|
1253
|
-
componentName:
|
|
1254
|
-
...
|
|
1255
|
-
componentHierarchy:
|
|
1256
|
-
componentHierarchyFrames:
|
|
1257
|
-
} },
|
|
1310
|
+
errorOrigin: _,
|
|
1311
|
+
...v && { route: v },
|
|
1312
|
+
componentName: h,
|
|
1313
|
+
...g && { componentProps: g },
|
|
1314
|
+
componentHierarchy: f,
|
|
1315
|
+
componentHierarchyFrames: p
|
|
1316
|
+
} }, b = e.beforeSubmit?.({
|
|
1258
1317
|
error: a,
|
|
1259
1318
|
instance: n,
|
|
1260
1319
|
info: r,
|
|
1261
|
-
context:
|
|
1262
|
-
}) ??
|
|
1263
|
-
return
|
|
1320
|
+
context: y
|
|
1321
|
+
}) ?? y;
|
|
1322
|
+
return l.value = b.vue.componentProps, u.value = b.vue.componentHierarchy, d.value = b.vue.componentHierarchyFrames, i.reportSilently(a, Ue(b)), e.afterSubmit?.({
|
|
1264
1323
|
error: a,
|
|
1265
1324
|
instance: n,
|
|
1266
1325
|
info: r,
|
|
1267
|
-
context:
|
|
1326
|
+
context: b
|
|
1268
1327
|
}), !1;
|
|
1269
|
-
}), () =>
|
|
1270
|
-
error:
|
|
1271
|
-
...
|
|
1272
|
-
componentHierarchy:
|
|
1273
|
-
componentHierarchyFrames:
|
|
1274
|
-
resetErrorBoundary:
|
|
1328
|
+
}), () => c.value === null ? t.default?.() : t.fallback ? t.fallback({
|
|
1329
|
+
error: c.value,
|
|
1330
|
+
...l.value && { componentProps: l.value },
|
|
1331
|
+
componentHierarchy: u.value,
|
|
1332
|
+
componentHierarchyFrames: d.value,
|
|
1333
|
+
resetErrorBoundary: f
|
|
1275
1334
|
}) : null;
|
|
1276
1335
|
}
|
|
1277
|
-
});
|
|
1336
|
+
}), Ie(() => N);
|
|
1278
1337
|
//#endregion
|
|
1279
|
-
export {
|
|
1338
|
+
export { Ge as t };
|