@konnectio/core 4.4.8 → 4.5.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.
Files changed (130) hide show
  1. package/dist/ActionField-X2QEHCxM.js +148 -0
  2. package/dist/ActionField-X2QEHCxM.js.br +0 -0
  3. package/dist/ActionField-X2QEHCxM.js.gz +0 -0
  4. package/dist/AvailabilitySkeleton-sfPLQyx0.js +10131 -0
  5. package/dist/AvailabilitySkeleton-sfPLQyx0.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-sfPLQyx0.js.gz +0 -0
  7. package/dist/CheckoutWindow-BRnjOTlw.js +701 -0
  8. package/dist/CheckoutWindow-BRnjOTlw.js.br +0 -0
  9. package/dist/CheckoutWindow-BRnjOTlw.js.gz +0 -0
  10. package/dist/ErrorMessage-4qWixsXZ.js +31 -0
  11. package/dist/ErrorMessage-4qWixsXZ.js.br +0 -0
  12. package/dist/ErrorMessage-4qWixsXZ.js.gz +0 -0
  13. package/dist/EventAvailabilityForm-DAeAtR3I.js +114 -0
  14. package/dist/EventAvailabilityForm-DAeAtR3I.js.br +0 -0
  15. package/dist/EventAvailabilityForm-DAeAtR3I.js.gz +0 -0
  16. package/dist/Field-CyDf8ah0.js +57 -0
  17. package/dist/Field-CyDf8ah0.js.br +0 -0
  18. package/dist/Field-CyDf8ah0.js.gz +0 -0
  19. package/dist/HotelAvailabilityForm-BPSy0THr.js +317 -0
  20. package/dist/HotelAvailabilityForm-BPSy0THr.js.br +0 -0
  21. package/dist/HotelAvailabilityForm-BPSy0THr.js.gz +0 -0
  22. package/dist/SelectField-CX4o6A18.js +11133 -0
  23. package/dist/SelectField-CX4o6A18.js.br +0 -0
  24. package/dist/SelectField-CX4o6A18.js.gz +0 -0
  25. package/dist/TermsOfService-CWjn_42W.js +17 -0
  26. package/dist/TermsOfService-CWjn_42W.js.br +5 -0
  27. package/dist/TermsOfService-CWjn_42W.js.gz +0 -0
  28. package/dist/_-qyWkj4S8.js +22 -0
  29. package/dist/_-qyWkj4S8.js.br +0 -0
  30. package/dist/_-qyWkj4S8.js.gz +0 -0
  31. package/dist/availability.js +99 -129
  32. package/dist/availability.js.br +0 -0
  33. package/dist/availability.js.gz +0 -0
  34. package/dist/cancel-reservation.js +155 -158
  35. package/dist/cancel-reservation.js.br +0 -0
  36. package/dist/cancel-reservation.js.gz +0 -0
  37. package/dist/chunk-BPfpcrXh.js +20 -0
  38. package/dist/chunk-BPfpcrXh.js.br +0 -0
  39. package/dist/chunk-BPfpcrXh.js.gz +2 -0
  40. package/dist/core.css +2 -1
  41. package/dist/core.css.br +0 -0
  42. package/dist/core.css.gz +0 -0
  43. package/dist/deep-link.js +43 -47
  44. package/dist/deep-link.js.br +0 -0
  45. package/dist/deep-link.js.gz +0 -0
  46. package/dist/dist-CVBZ2agG.js +944 -0
  47. package/dist/dist-CVBZ2agG.js.br +0 -0
  48. package/dist/dist-CVBZ2agG.js.gz +0 -0
  49. package/dist/event.js +1069 -1192
  50. package/dist/event.js.br +0 -0
  51. package/dist/event.js.gz +0 -0
  52. package/dist/gift-card-validation.js +114 -161
  53. package/dist/gift-card-validation.js.br +0 -0
  54. package/dist/gift-card-validation.js.gz +0 -0
  55. package/dist/gift-card.js +452 -451
  56. package/dist/gift-card.js.br +0 -0
  57. package/dist/gift-card.js.gz +0 -0
  58. package/dist/giftCard-BrTMBQuW.js +101 -0
  59. package/dist/giftCard-BrTMBQuW.js.br +0 -0
  60. package/dist/giftCard-BrTMBQuW.js.gz +0 -0
  61. package/dist/hotel.js +8165 -10392
  62. package/dist/hotel.js.br +0 -0
  63. package/dist/hotel.js.gz +0 -0
  64. package/dist/masonry.plugin-Doip-tm0.js +8747 -0
  65. package/dist/masonry.plugin-Doip-tm0.js.br +0 -0
  66. package/dist/masonry.plugin-Doip-tm0.js.gz +0 -0
  67. package/dist/mitt-DrOLO7f9.js +9694 -0
  68. package/dist/mitt-DrOLO7f9.js.br +0 -0
  69. package/dist/mitt-DrOLO7f9.js.gz +0 -0
  70. package/dist/polyfill.js +9298 -11610
  71. package/dist/polyfill.js.br +0 -0
  72. package/dist/polyfill.js.gz +0 -0
  73. package/dist/style-k68BwP9N.js +1709 -0
  74. package/dist/style-k68BwP9N.js.br +0 -0
  75. package/dist/style-k68BwP9N.js.gz +0 -0
  76. package/package.json +24 -27
  77. package/dist/ActionField-DjYUsVEl.js +0 -103
  78. package/dist/ActionField-DjYUsVEl.js.br +0 -0
  79. package/dist/ActionField-DjYUsVEl.js.gz +0 -0
  80. package/dist/AvailabilitySkeleton-Ced6gdUY.js +0 -338
  81. package/dist/AvailabilitySkeleton-Ced6gdUY.js.br +0 -0
  82. package/dist/AvailabilitySkeleton-Ced6gdUY.js.gz +0 -0
  83. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-0XtS8ACM.js +0 -10188
  84. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-0XtS8ACM.js.br +0 -0
  85. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-0XtS8ACM.js.gz +0 -0
  86. package/dist/CheckoutWindow-B-HulkOw.js +0 -668
  87. package/dist/CheckoutWindow-B-HulkOw.js.br +0 -0
  88. package/dist/CheckoutWindow-B-HulkOw.js.gz +0 -0
  89. package/dist/ErrorMessage-C-LZif3u.js +0 -39
  90. package/dist/ErrorMessage-C-LZif3u.js.br +0 -0
  91. package/dist/ErrorMessage-C-LZif3u.js.gz +0 -0
  92. package/dist/EventAvailabilityForm-CdaoawQu.js +0 -119
  93. package/dist/EventAvailabilityForm-CdaoawQu.js.br +0 -0
  94. package/dist/EventAvailabilityForm-CdaoawQu.js.gz +0 -0
  95. package/dist/Field-BxQDGBO6.js +0 -44
  96. package/dist/Field-BxQDGBO6.js.br +0 -0
  97. package/dist/Field-BxQDGBO6.js.gz +0 -0
  98. package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-B40vQ6md.js +0 -21
  99. package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-B40vQ6md.js.br +0 -0
  100. package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-B40vQ6md.js.gz +0 -0
  101. package/dist/SelectField.vue_vue_type_style_index_0_lang-DJhjUqti.js +0 -11901
  102. package/dist/SelectField.vue_vue_type_style_index_0_lang-DJhjUqti.js.br +0 -0
  103. package/dist/SelectField.vue_vue_type_style_index_0_lang-DJhjUqti.js.gz +0 -0
  104. package/dist/TermsOfService-9-UO5S3G.js +0 -28
  105. package/dist/TermsOfService-9-UO5S3G.js.br +0 -0
  106. package/dist/TermsOfService-9-UO5S3G.js.gz +0 -0
  107. package/dist/_-DgORUiWu.js +0 -5
  108. package/dist/_-DgORUiWu.js.br +0 -0
  109. package/dist/_-DgORUiWu.js.gz +0 -0
  110. package/dist/_.vue_vue_type_style_index_0_lang-C8tlnRr1.js +0 -25
  111. package/dist/_.vue_vue_type_style_index_0_lang-C8tlnRr1.js.br +0 -0
  112. package/dist/_.vue_vue_type_style_index_0_lang-C8tlnRr1.js.gz +0 -0
  113. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -9
  114. package/dist/_commonjsHelpers-DaMA6jEr.js.br +0 -0
  115. package/dist/_commonjsHelpers-DaMA6jEr.js.gz +0 -0
  116. package/dist/giftCard-D-f02FPM.js +0 -109
  117. package/dist/giftCard-D-f02FPM.js.br +0 -0
  118. package/dist/giftCard-D-f02FPM.js.gz +0 -0
  119. package/dist/index-CBRMHLd-.js +0 -639
  120. package/dist/index-CBRMHLd-.js.br +0 -0
  121. package/dist/index-CBRMHLd-.js.gz +0 -0
  122. package/dist/masonry.plugin-emIQEcmM.js +0 -10816
  123. package/dist/masonry.plugin-emIQEcmM.js.br +0 -0
  124. package/dist/masonry.plugin-emIQEcmM.js.gz +0 -0
  125. package/dist/mitt-Cj---5fy.js +0 -13346
  126. package/dist/mitt-Cj---5fy.js.br +0 -0
  127. package/dist/mitt-Cj---5fy.js.gz +0 -0
  128. package/dist/style-DLdT0Zxs.js +0 -1750
  129. package/dist/style-DLdT0Zxs.js.br +0 -0
  130. package/dist/style-DLdT0Zxs.js.gz +0 -0
@@ -0,0 +1,944 @@
1
+ import { r as e, t } from "./chunk-BPfpcrXh.js";
2
+ import { F as n, K as r, P as i, bt as a, lt as o } from "./mitt-DrOLO7f9.js";
3
+ //#region node_modules/stackframe/stackframe.js
4
+ var s = /* @__PURE__ */ t(((e, t) => {
5
+ (function(n, r) {
6
+ /* istanbul ignore next */
7
+ typeof define == "function" && define.amd ? define("stackframe", [], r) : typeof e == "object" ? t.exports = r() : n.StackFrame = r();
8
+ })(e, function() {
9
+ function e(e) {
10
+ return !isNaN(parseFloat(e)) && isFinite(e);
11
+ }
12
+ function t(e) {
13
+ return e.charAt(0).toUpperCase() + e.substring(1);
14
+ }
15
+ function n(e) {
16
+ return function() {
17
+ return this[e];
18
+ };
19
+ }
20
+ var r = [
21
+ "isConstructor",
22
+ "isEval",
23
+ "isNative",
24
+ "isToplevel"
25
+ ], i = ["columnNumber", "lineNumber"], a = [
26
+ "fileName",
27
+ "functionName",
28
+ "source"
29
+ ], o = r.concat(i, a, ["args"], ["evalOrigin"]);
30
+ function s(e) {
31
+ if (e) for (var n = 0; n < o.length; n++) e[o[n]] !== void 0 && this["set" + t(o[n])](e[o[n]]);
32
+ }
33
+ s.prototype = {
34
+ getArgs: function() {
35
+ return this.args;
36
+ },
37
+ setArgs: function(e) {
38
+ if (Object.prototype.toString.call(e) !== "[object Array]") throw TypeError("Args must be an Array");
39
+ this.args = e;
40
+ },
41
+ getEvalOrigin: function() {
42
+ return this.evalOrigin;
43
+ },
44
+ setEvalOrigin: function(e) {
45
+ if (e instanceof s) this.evalOrigin = e;
46
+ else if (e instanceof Object) this.evalOrigin = new s(e);
47
+ else throw TypeError("Eval Origin must be an Object or StackFrame");
48
+ },
49
+ toString: function() {
50
+ var e = this.getFileName() || "", t = this.getLineNumber() || "", n = this.getColumnNumber() || "", r = this.getFunctionName() || "";
51
+ return this.getIsEval() ? e ? "[eval] (" + e + ":" + t + ":" + n + ")" : "[eval]:" + t + ":" + n : r ? r + " (" + e + ":" + t + ":" + n + ")" : e + ":" + t + ":" + n;
52
+ }
53
+ }, s.fromString = function(e) {
54
+ var t = e.indexOf("("), n = e.lastIndexOf(")"), r = e.substring(0, t), i = e.substring(t + 1, n).split(","), a = e.substring(n + 1);
55
+ if (a.indexOf("@") === 0) var o = /@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(a, ""), c = o[1], l = o[2], u = o[3];
56
+ return new s({
57
+ functionName: r,
58
+ args: i || void 0,
59
+ fileName: c,
60
+ lineNumber: l || void 0,
61
+ columnNumber: u || void 0
62
+ });
63
+ };
64
+ for (var c = 0; c < r.length; c++) s.prototype["get" + t(r[c])] = n(r[c]), s.prototype["set" + t(r[c])] = (function(e) {
65
+ return function(t) {
66
+ this[e] = !!t;
67
+ };
68
+ })(r[c]);
69
+ for (var l = 0; l < i.length; l++) s.prototype["get" + t(i[l])] = n(i[l]), s.prototype["set" + t(i[l])] = (function(t) {
70
+ return function(n) {
71
+ if (!e(n)) throw TypeError(t + " must be a Number");
72
+ this[t] = Number(n);
73
+ };
74
+ })(i[l]);
75
+ for (var u = 0; u < a.length; u++) s.prototype["get" + t(a[u])] = n(a[u]), s.prototype["set" + t(a[u])] = (function(e) {
76
+ return function(t) {
77
+ this[e] = String(t);
78
+ };
79
+ })(a[u]);
80
+ return s;
81
+ });
82
+ })), c = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
83
+ (function(n, r) {
84
+ /* istanbul ignore next */
85
+ typeof define == "function" && define.amd ? define("error-stack-parser", ["stackframe"], r) : typeof e == "object" ? t.exports = r(s()) : n.ErrorStackParser = r(n.StackFrame);
86
+ })(e, function(e) {
87
+ var t = /(^|@)\S+:\d+/, n = /^\s*at .*(\S+:\d+|\(native\))/m, r = /^(eval@)?(\[native code])?$/;
88
+ return {
89
+ parse: function(e) {
90
+ if (e.stacktrace !== void 0 || e["opera#sourceloc"] !== void 0) return this.parseOpera(e);
91
+ if (e.stack && e.stack.match(n)) return this.parseV8OrIE(e);
92
+ if (e.stack) return this.parseFFOrSafari(e);
93
+ throw Error("Cannot parse given Error object");
94
+ },
95
+ extractLocation: function(e) {
96
+ if (e.indexOf(":") === -1) return [e];
97
+ var t = /(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g, ""));
98
+ return [
99
+ t[1],
100
+ t[2] || void 0,
101
+ t[3] || void 0
102
+ ];
103
+ },
104
+ parseV8OrIE: function(t) {
105
+ return t.stack.split("\n").filter(function(e) {
106
+ return !!e.match(n);
107
+ }, this).map(function(t) {
108
+ t.indexOf("(eval ") > -1 && (t = t.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(,.*$)/g, ""));
109
+ var n = t.replace(/^\s+/, "").replace(/\(eval code/g, "(").replace(/^.*?\s+/, ""), r = n.match(/ (\(.+\)$)/);
110
+ n = r ? n.replace(r[0], "") : n;
111
+ var i = this.extractLocation(r ? r[1] : n);
112
+ return new e({
113
+ functionName: r && n || void 0,
114
+ fileName: ["eval", "<anonymous>"].indexOf(i[0]) > -1 ? void 0 : i[0],
115
+ lineNumber: i[1],
116
+ columnNumber: i[2],
117
+ source: t
118
+ });
119
+ }, this);
120
+ },
121
+ parseFFOrSafari: function(t) {
122
+ return t.stack.split("\n").filter(function(e) {
123
+ return !e.match(r);
124
+ }, this).map(function(t) {
125
+ if (t.indexOf(" > eval") > -1 && (t = t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1")), t.indexOf("@") === -1 && t.indexOf(":") === -1) return new e({ functionName: t });
126
+ var n = /((.*".+"[^@]*)?[^@]*)(?:@)/, r = t.match(n), i = r && r[1] ? r[1] : void 0, a = this.extractLocation(t.replace(n, ""));
127
+ return new e({
128
+ functionName: i,
129
+ fileName: a[0],
130
+ lineNumber: a[1],
131
+ columnNumber: a[2],
132
+ source: t
133
+ });
134
+ }, this);
135
+ },
136
+ parseOpera: function(e) {
137
+ return !e.stacktrace || e.message.indexOf("\n") > -1 && e.message.split("\n").length > e.stacktrace.split("\n").length ? this.parseOpera9(e) : e.stack ? this.parseOpera11(e) : this.parseOpera10(e);
138
+ },
139
+ parseOpera9: function(t) {
140
+ for (var n = /Line (\d+).*script (?:in )?(\S+)/i, r = t.message.split("\n"), i = [], a = 2, o = r.length; a < o; a += 2) {
141
+ var s = n.exec(r[a]);
142
+ s && i.push(new e({
143
+ fileName: s[2],
144
+ lineNumber: s[1],
145
+ source: r[a]
146
+ }));
147
+ }
148
+ return i;
149
+ },
150
+ parseOpera10: function(t) {
151
+ for (var n = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i, r = t.stacktrace.split("\n"), i = [], a = 0, o = r.length; a < o; a += 2) {
152
+ var s = n.exec(r[a]);
153
+ s && i.push(new e({
154
+ functionName: s[3] || void 0,
155
+ fileName: s[2],
156
+ lineNumber: s[1],
157
+ source: r[a]
158
+ }));
159
+ }
160
+ return i;
161
+ },
162
+ parseOpera11: function(n) {
163
+ return n.stack.split("\n").filter(function(e) {
164
+ return !!e.match(t) && !e.match(/^Error created at/);
165
+ }, this).map(function(t) {
166
+ var n = t.split("@"), r = this.extractLocation(n.pop()), i = n.shift() || "", a = i.replace(/<anonymous function(: (\w+))?>/, "$2").replace(/\([^)]*\)/g, "") || void 0, o;
167
+ return i.match(/\(([^)]*)\)/) && (o = i.replace(/^[^(]+\(([^)]*)\)$/, "$1")), new e({
168
+ functionName: a,
169
+ args: o === void 0 || o === "[arguments not available]" ? void 0 : o.split(","),
170
+ fileName: r[0],
171
+ lineNumber: r[1],
172
+ columnNumber: r[2],
173
+ source: t
174
+ });
175
+ }, this);
176
+ }
177
+ };
178
+ });
179
+ })))(), 1);
180
+ function l() {
181
+ typeof window > "u" || (window.addEventListener("error", (e) => {
182
+ let t = window.flare;
183
+ t && e.error instanceof Error && Promise.resolve(t.report(e.error)).catch(() => {});
184
+ }), window.addEventListener("unhandledrejection", (e) => {
185
+ let t = window.flare;
186
+ if (!t) return;
187
+ let n = e.reason;
188
+ if (n instanceof Error) {
189
+ Promise.resolve(t.report(n)).catch(() => {});
190
+ return;
191
+ }
192
+ if (d(n)) {
193
+ let e = Error(u(n));
194
+ e.stack = n.stack, Promise.resolve(t.report(e)).catch(() => {});
195
+ return;
196
+ }
197
+ Promise.resolve(t.reportUnhandledRejection(u(n))).catch(() => {});
198
+ }));
199
+ }
200
+ function u(e) {
201
+ if (typeof e == "string") return e;
202
+ if (e && typeof e == "object") {
203
+ let t = e.message;
204
+ if (typeof t == "string") return t;
205
+ try {
206
+ return JSON.stringify(e);
207
+ } catch {
208
+ return "Unhandled promise rejection (non-serializable reason)";
209
+ }
210
+ }
211
+ return String(e);
212
+ }
213
+ function d(e) {
214
+ return typeof e == "object" && !!e && "stack" in e && typeof e.stack == "string";
215
+ }
216
+ var f = typeof process < "u" ? "2.0.0" : "?", p = "5pqzBljrmDvquWZYSrSUKldIUREtPyB3", m = "\"4.5.0\"";
217
+ function h(e, t, n) {
218
+ return n && !e && console.error(`Flare JavaScript client v${f}: ${t}`), !!e;
219
+ }
220
+ function g(e, t) {
221
+ return h(e, "The client was not yet initialised with an API key. Run client.light('<flare-project-key>') when you initialise your app. If you are running in dev mode and didn't run the light command on purpose, you can ignore this error.", t);
222
+ }
223
+ var _ = 64;
224
+ function v(e) {
225
+ let t = e.code;
226
+ if (!(typeof t != "string" || t.length === 0)) return t.slice(0, _);
227
+ }
228
+ function y(e) {
229
+ return JSON.stringify(b(e));
230
+ }
231
+ function ee(e) {
232
+ if (typeof e != "object" || !e) return !1;
233
+ let t = Object.getPrototypeOf(e);
234
+ return t === Object.prototype || t === null;
235
+ }
236
+ function b(e) {
237
+ let t = /* @__PURE__ */ new WeakSet();
238
+ function n(e) {
239
+ if (Array.isArray(e)) {
240
+ if (t.has(e)) return "[Circular]";
241
+ t.add(e);
242
+ let r = e.map(n);
243
+ return t.delete(e), r;
244
+ }
245
+ if (ee(e)) {
246
+ if (t.has(e)) return "[Circular]";
247
+ t.add(e);
248
+ let r = {};
249
+ for (let [t, i] of Object.entries(e)) r[t] = n(i);
250
+ return t.delete(e), r;
251
+ }
252
+ return e;
253
+ }
254
+ return n(e);
255
+ }
256
+ function te(e) {
257
+ return e.map((e) => ({
258
+ type: "php_glow",
259
+ startTimeUnixNano: Math.round(e.microtime * 1e9),
260
+ endTimeUnixNano: null,
261
+ attributes: {
262
+ "glow.name": String(e.name),
263
+ "glow.level": e.messageLevel,
264
+ "glow.context": e.metaData ?? {}
265
+ }
266
+ }));
267
+ }
268
+ function x() {
269
+ return Math.round(Date.now() / 1e3);
270
+ }
271
+ var S = /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;
272
+ function C(e, t = !1, n = S) {
273
+ if (!e) return n;
274
+ if (t) {
275
+ let t = e.flags.replace(/[gy]/g, "");
276
+ return new RegExp(e.source, t);
277
+ }
278
+ let r = w(n.flags, e.flags);
279
+ return RegExp(`(?:${n.source})|(?:${e.source})`, r);
280
+ }
281
+ function w(e, t) {
282
+ let n = /* @__PURE__ */ new Set();
283
+ for (let r of e + t) r === "g" || r === "y" || n.add(r);
284
+ return [...n].join("");
285
+ }
286
+ function T(e, t = S) {
287
+ let n = e.indexOf("?");
288
+ if (n === -1) return e;
289
+ 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);
290
+ return `${a}${o.split("&").map((e) => {
291
+ if (e === "") return e;
292
+ let n = e.indexOf("="), r = n === -1 ? e : e.slice(0, n), i = ne(r);
293
+ return t.test(i) ? n === -1 ? r : `${r}=[redacted]` : e;
294
+ }).join("&")}${s}`;
295
+ }
296
+ function ne(e) {
297
+ try {
298
+ return decodeURIComponent(e);
299
+ } catch {
300
+ return e;
301
+ }
302
+ }
303
+ var re = class {
304
+ report(e, t, n, r, i = !1) {
305
+ return fetch(t, {
306
+ method: "POST",
307
+ headers: {
308
+ Accept: "application/json",
309
+ "Content-Type": "application/json",
310
+ "X-Api-Token": n ?? "",
311
+ "X-Report-Browser-Extension-Errors": JSON.stringify(r),
312
+ "X-Flare-Client-Version": "2"
313
+ },
314
+ body: y(e)
315
+ }).then((e) => {
316
+ i && e.status !== 201 && console.error(`Received response with status ${e.status} from Flare`);
317
+ }, (e) => {
318
+ i && console.error(e);
319
+ });
320
+ }
321
+ };
322
+ function ie() {
323
+ if (!window.document.cookie) return {};
324
+ let e = {};
325
+ return window.document.cookie.split("; ").forEach((t) => {
326
+ let n = t.indexOf("=");
327
+ if (n === -1) {
328
+ e[t] = "";
329
+ return;
330
+ }
331
+ let r = t.slice(0, n);
332
+ e[r] = t.slice(n + 1);
333
+ }), { "http.request.cookies": e };
334
+ }
335
+ function ae(e) {
336
+ return {
337
+ "url.full": T(window.location.href, e),
338
+ "user_agent.original": window.navigator.userAgent,
339
+ "http.request.referrer": T(window.document.referrer, e),
340
+ "document.ready_state": window.document.readyState
341
+ };
342
+ }
343
+ function E(e) {
344
+ return window.location.search ? { "url.query": T(window.location.search, e).replace(/^\?/, "") } : {};
345
+ }
346
+ function D(e) {
347
+ return typeof window > "u" ? {} : {
348
+ ...ae(e),
349
+ ...E(e),
350
+ ...ie()
351
+ };
352
+ }
353
+ var O = {};
354
+ function oe(e, t, n) {
355
+ return new Promise((r) => {
356
+ if (!e || !t) return r({
357
+ codeSnippet: { 0: `Could not read from file: missing file URL or line number. URL: ${e} lineNumber: ${t}` },
358
+ trimmedColumnNumber: null
359
+ });
360
+ if (!se(e)) return r({
361
+ codeSnippet: { 0: `Could not read from file: unsupported URL scheme. URL: ${e}` },
362
+ trimmedColumnNumber: null
363
+ });
364
+ k(e).then((i) => r(i ? A(i, t, n) : {
365
+ codeSnippet: { 0: `Could not read from file: Error while opening file at URL ${e}` },
366
+ trimmedColumnNumber: null
367
+ }));
368
+ });
369
+ }
370
+ function se(e) {
371
+ return /^https?:\/\//i.test(e);
372
+ }
373
+ function k(e) {
374
+ return O[e] === void 0 ? fetch(e).then((e) => e.status === 200 ? e.text() : null).then((t) => (t !== null && (O[e] = t), t)).catch(() => null) : Promise.resolve(O[e]);
375
+ }
376
+ function A(e, t, n, r = 1e3, i = 40) {
377
+ let a = {}, o = null, s = e.split("\n"), c = t - 1, l = Math.floor(i / 2);
378
+ for (let e = -l; e <= l; e++) {
379
+ let i = c + e;
380
+ if (i < 0 || !s[i]) continue;
381
+ let l = i + 1, u = s[i];
382
+ if (u.length > r) {
383
+ if (n && n > r / 2) {
384
+ let e = n - Math.round(r / 2);
385
+ a[l] = u.slice(e, e + r), l === t && (o = Math.round(r / 2));
386
+ continue;
387
+ }
388
+ a[l] = u.slice(0, r) + "…";
389
+ continue;
390
+ }
391
+ a[l] = u;
392
+ }
393
+ return {
394
+ codeSnippet: a,
395
+ trimmedColumnNumber: o
396
+ };
397
+ }
398
+ function j(e, t) {
399
+ return new Promise((n) => {
400
+ if (!ce(e)) return n([M("stacktrace missing")]);
401
+ let r;
402
+ try {
403
+ r = c.default.parse(e);
404
+ } catch (r) {
405
+ return h(!1, "Couldn't parse stacktrace of below error:", t), t && (console.error(r), console.error(e)), n([M("stacktrace could not be parsed")]);
406
+ }
407
+ Promise.all(r.map((e) => oe(e.fileName, e.lineNumber, e.columnNumber).then((t) => ({
408
+ lineNumber: e.lineNumber || 1,
409
+ columnNumber: e.columnNumber || 1,
410
+ method: e.functionName || "Anonymous or unknown function",
411
+ file: e.fileName || "Unknown file",
412
+ codeSnippet: t.codeSnippet,
413
+ class: "",
414
+ isApplicationFrame: le(e.fileName)
415
+ })))).then(n);
416
+ });
417
+ }
418
+ function M(e) {
419
+ return {
420
+ lineNumber: 0,
421
+ columnNumber: 0,
422
+ method: "unknown",
423
+ file: "unknown",
424
+ codeSnippet: { 0: `Could not read from file: ${e}` },
425
+ class: "unknown"
426
+ };
427
+ }
428
+ function ce(e) {
429
+ if (!e || typeof e != "object") return !1;
430
+ let t = e, n = t.stack ?? t.stacktrace ?? t["opera#sourceloc"];
431
+ return typeof n == "string" && n !== `${t.name}: ${t.message}`;
432
+ }
433
+ function le(e) {
434
+ return e ? !(/[/\\]node_modules[/\\]/.test(e) || /(^|[/\\])(vendor|vendors)[.~-][^/\\]*\.js/i.test(e)) : !0;
435
+ }
436
+ var ue = "@flareapp/js", N = new class {
437
+ _config = {
438
+ key: null,
439
+ version: "",
440
+ sourcemapVersionId: m,
441
+ stage: "",
442
+ maxGlowsPerReport: 30,
443
+ ingestUrl: "https://ingress.flareapp.io/v1/errors",
444
+ reportBrowserExtensionErrors: !1,
445
+ debug: !1,
446
+ urlDenylist: S,
447
+ replaceDefaultUrlDenylist: !1,
448
+ sampleRate: 1,
449
+ beforeEvaluate: (e) => e,
450
+ beforeSubmit: (e) => e
451
+ };
452
+ _glows = [];
453
+ pendingAttributes = {};
454
+ entryPoint = null;
455
+ sdkInfo = {
456
+ name: ue,
457
+ version: f
458
+ };
459
+ framework = null;
460
+ constructor(e = new re()) {
461
+ this.api = e;
462
+ }
463
+ get config() {
464
+ return this._config;
465
+ }
466
+ get glows() {
467
+ return this._glows;
468
+ }
469
+ light(e = p, t) {
470
+ return this._config.key = e, t !== void 0 && (this._config.debug = t), this;
471
+ }
472
+ configure(e) {
473
+ return this._config = {
474
+ ...this._config,
475
+ ...e
476
+ }, e.sampleRate !== void 0 && (this._config.sampleRate = Math.max(0, Math.min(1, e.sampleRate))), this._config.urlDenylist = C(e.urlDenylist, e.replaceDefaultUrlDenylist ?? this._config.replaceDefaultUrlDenylist), this;
477
+ }
478
+ async test() {
479
+ let e = await this.createReportFromError(/* @__PURE__ */ Error("The Flare client is set up correctly!"));
480
+ if (e) return this.sendReport(e);
481
+ }
482
+ glow(e, t = "info", n = []) {
483
+ let r = x();
484
+ return this._glows.push({
485
+ name: e,
486
+ messageLevel: t,
487
+ metaData: n,
488
+ time: r,
489
+ microtime: r
490
+ }), this._glows.length > this._config.maxGlowsPerReport && (this._glows = this._glows.slice(this._glows.length - this._config.maxGlowsPerReport)), this;
491
+ }
492
+ clearGlows() {
493
+ return this._glows = [], this;
494
+ }
495
+ addContext(e, t) {
496
+ let n = this.pendingAttributes["context.custom"] ?? {};
497
+ return this.pendingAttributes["context.custom"] = {
498
+ ...n,
499
+ [e]: t
500
+ }, this;
501
+ }
502
+ addContextGroup(e, t) {
503
+ return this.pendingAttributes[`context.${e}`] = t, this;
504
+ }
505
+ setEntryPoint(e) {
506
+ return this.entryPoint = e, this;
507
+ }
508
+ setSdkInfo(e) {
509
+ return this.sdkInfo = e, this;
510
+ }
511
+ setFramework(e) {
512
+ return this.framework = e, this;
513
+ }
514
+ async report(e, t = {}) {
515
+ if (this._config.sampleRate < 1 && Math.random() >= this._config.sampleRate) return;
516
+ let n = Date.now() * 1e6, r = e instanceof Error ? e : Error(typeof e == "string" ? e : String(e)), i = await this._config.beforeEvaluate(r);
517
+ if (!i) return;
518
+ let a = await this.createReportFromError(i, t, n);
519
+ if (a) return this.sendReport(a);
520
+ }
521
+ async reportUnhandledRejection(e, t = {}) {
522
+ if (Math.random() >= this._config.sampleRate) return;
523
+ let n = Date.now() * 1e6, r = this.buildReport({
524
+ exceptionClass: "UnhandledRejection",
525
+ message: e,
526
+ stacktrace: [],
527
+ isLog: !1,
528
+ level: void 0,
529
+ extraAttributes: t,
530
+ code: void 0,
531
+ seenAtUnixNano: n
532
+ });
533
+ return this.sendReport(r);
534
+ }
535
+ async reportMessage(e, t, n = {}) {
536
+ if (this._config.sampleRate < 1 && Math.random() >= this._config.sampleRate) return;
537
+ let r = Date.now() * 1e6, i = await j(/* @__PURE__ */ Error(), this._config.debug);
538
+ i.shift();
539
+ let a = this.buildReport({
540
+ exceptionClass: "Log",
541
+ message: e,
542
+ stacktrace: i,
543
+ isLog: !0,
544
+ level: t,
545
+ extraAttributes: n,
546
+ code: void 0,
547
+ seenAtUnixNano: r
548
+ });
549
+ return this.sendReport(a);
550
+ }
551
+ async createReportFromError(e, t = {}, n = Date.now() * 1e6) {
552
+ if (!h(e, "No error provided.", this._config.debug)) return !1;
553
+ let r = await j(e, this._config.debug);
554
+ h(r.length, "Couldn't generate stacktrace of this error: " + e, this._config.debug);
555
+ let i = e.constructor && e.constructor.name ? e.constructor.name : "undefined";
556
+ return this.buildReport({
557
+ exceptionClass: i,
558
+ message: e.message,
559
+ stacktrace: r,
560
+ isLog: !1,
561
+ level: void 0,
562
+ extraAttributes: t,
563
+ code: v(e),
564
+ seenAtUnixNano: n
565
+ });
566
+ }
567
+ buildReport(e) {
568
+ let t = {
569
+ "telemetry.sdk.language": "javascript",
570
+ "telemetry.sdk.name": this.sdkInfo.name,
571
+ "telemetry.sdk.version": this.sdkInfo.version,
572
+ "flare.language.name": "javascript",
573
+ "flare.entry_point.type": "web"
574
+ };
575
+ typeof window < "u" && window?.location?.href && (t["flare.entry_point.value"] = T(window.location.href, this._config.urlDenylist));
576
+ let n = this.entryPoint?.identifier ?? (typeof window < "u" && window?.location?.pathname ? window.location.pathname : void 0), r = this.entryPoint?.type ?? (typeof window < "u" && window ? "browser" : void 0);
577
+ n !== void 0 && (t["flare.entry_point.handler.identifier"] = n), r !== void 0 && (t["flare.entry_point.handler.type"] = r), this.entryPoint?.name !== void 0 && (t["flare.entry_point.handler.name"] = this.entryPoint.name), this.framework?.name && (t["flare.framework.name"] = this.framework.name), this.framework?.version && (t["flare.framework.version"] = this.framework.version), this._config.stage && (t["service.stage"] = this._config.stage), this._config.version && (t["service.version"] = this._config.version);
578
+ let i = {
579
+ ...t,
580
+ ...D(this._config.urlDenylist),
581
+ ...this.pendingAttributes,
582
+ ...e.extraAttributes
583
+ }, a = this.pendingAttributes["context.custom"], o = e.extraAttributes["context.custom"];
584
+ a && o && typeof a == "object" && typeof o == "object" && !Array.isArray(a) && !Array.isArray(o) && (i["context.custom"] = {
585
+ ...a,
586
+ ...o
587
+ });
588
+ let s = {
589
+ exceptionClass: e.exceptionClass,
590
+ message: e.message,
591
+ seenAtUnixNano: e.seenAtUnixNano,
592
+ stacktrace: e.stacktrace,
593
+ events: te(this._glows),
594
+ attributes: i
595
+ };
596
+ return e.isLog && (s.isLog = !0), e.level !== void 0 && (s.level = e.level), this._config.sourcemapVersionId && (s.sourcemapVersionId = this._config.sourcemapVersionId), e.code !== void 0 && (s.code = e.code), s;
597
+ }
598
+ async sendReport(e) {
599
+ if (!g(this._config.key, this._config.debug)) return;
600
+ let t = await this._config.beforeSubmit(e);
601
+ if (t) return this.api.report(t, this._config.ingestUrl, this._config.key, this._config.reportBrowserExtensionErrors, this._config.debug);
602
+ }
603
+ }();
604
+ typeof window < "u" && window && (window.flare = N, l());
605
+ //#endregion
606
+ //#region src/plugins/flare.ts
607
+ 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')".split(",");
608
+ N.light("5pqzBljrmDvquWZYSrSUKldIUREtPyB3"), N.addContext("version", "4.5.0"), N.beforeEvaluate = (e) => {
609
+ for (let t = 0; t < P.length; t++) if (e.message.includes(P[t])) return !1;
610
+ return e;
611
+ };
612
+ //#endregion
613
+ //#region node_modules/@flareapp/vue/dist/index.mjs
614
+ var F = typeof process < "u" && process.env?.PACKAGE_VERSION !== void 0 ? process.env.PACKAGE_VERSION : "?", I = 50, L = /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;
615
+ function R(e, t = !1) {
616
+ return C(e, t, L);
617
+ }
618
+ var z = 1e3, B = 100, V = 100, H = {
619
+ "setup function": "setup",
620
+ "render function": "render",
621
+ "component update": "render",
622
+ "watcher getter": "watcher",
623
+ "watcher callback": "watcher",
624
+ "watcher cleanup function": "watcher",
625
+ "native event handler": "event",
626
+ "component event handler": "event",
627
+ "beforeCreate hook": "lifecycle",
628
+ "created hook": "lifecycle",
629
+ "beforeMount hook": "lifecycle",
630
+ "mounted hook": "lifecycle",
631
+ "beforeUpdate hook": "lifecycle",
632
+ "updated hook": "lifecycle",
633
+ "beforeUnmount hook": "lifecycle",
634
+ "unmounted hook": "lifecycle",
635
+ "activated hook": "lifecycle",
636
+ "deactivated hook": "lifecycle",
637
+ "errorCaptured hook": "lifecycle",
638
+ "renderTracked hook": "lifecycle",
639
+ "renderTriggered hook": "lifecycle",
640
+ "serverPrefetch hook": "lifecycle",
641
+ "vnode hook": "lifecycle",
642
+ "directive hook": "lifecycle",
643
+ "transition hook": "lifecycle",
644
+ "ref function": "setup",
645
+ "async component loader": "setup",
646
+ "scheduler flush": "render",
647
+ "app errorHandler": "lifecycle",
648
+ "app warnHandler": "lifecycle",
649
+ "app unmount cleanup function": "lifecycle",
650
+ 0: "setup",
651
+ 1: "render",
652
+ 2: "watcher",
653
+ 3: "watcher",
654
+ 4: "watcher",
655
+ 5: "event",
656
+ 6: "event",
657
+ 7: "lifecycle",
658
+ 8: "lifecycle",
659
+ 9: "lifecycle",
660
+ 10: "lifecycle",
661
+ 11: "lifecycle",
662
+ 12: "setup",
663
+ 13: "setup",
664
+ 14: "render",
665
+ 15: "render",
666
+ 16: "lifecycle",
667
+ sp: "lifecycle",
668
+ bc: "lifecycle",
669
+ c: "lifecycle",
670
+ bm: "lifecycle",
671
+ m: "lifecycle",
672
+ bu: "lifecycle",
673
+ u: "lifecycle",
674
+ bum: "lifecycle",
675
+ um: "lifecycle",
676
+ a: "lifecycle",
677
+ da: "lifecycle",
678
+ ec: "lifecycle",
679
+ rtc: "lifecycle",
680
+ rtg: "lifecycle"
681
+ };
682
+ function U(e) {
683
+ if (!e) return "AnonymousComponent";
684
+ let t = e.$options;
685
+ return t.__name || t.name || "AnonymousComponent";
686
+ }
687
+ function W(e) {
688
+ let t = [], n = e;
689
+ for (; n && t.length < I;) t.push(U(n)), n = n.$parent;
690
+ return t;
691
+ }
692
+ function G(e, t, n = L) {
693
+ return K(e, 0, t, /* @__PURE__ */ new WeakSet(), n);
694
+ }
695
+ function K(e, t, n, r, i) {
696
+ if (e === null) return null;
697
+ let a = typeof e;
698
+ if (a === "function") return "[Function]";
699
+ if (a === "symbol") return "[Symbol]";
700
+ if (a === "bigint") return e.toString();
701
+ if (a === "string") return de(e);
702
+ if (a !== "object") return e;
703
+ if (r.has(e)) return "[Circular]";
704
+ if (Array.isArray(e)) {
705
+ if (t > n) return "[Array]";
706
+ r.add(e);
707
+ let a = (e.length > B ? e.slice(0, B) : e).map((e) => K(e, t + 1, n, r, i));
708
+ return e.length > B && a.push(`[… ${e.length - B} more items]`), r.delete(e), a;
709
+ }
710
+ if (!fe(e) || t > n) return "[Object]";
711
+ r.add(e);
712
+ let o = {}, s = Object.keys(e), c = s.length > V ? s.slice(0, V) : s;
713
+ for (let a of c) {
714
+ if (i.test(a)) {
715
+ o[a] = "[redacted]";
716
+ continue;
717
+ }
718
+ o[a] = K(e[a], t + 1, n, r, i);
719
+ }
720
+ return s.length > V && (o["…"] = `[${s.length - V} more keys]`), r.delete(e), o;
721
+ }
722
+ function de(e) {
723
+ return e.length <= z ? e : `${e.slice(0, z)}…[truncated ${e.length - z} chars]`;
724
+ }
725
+ function fe(e) {
726
+ if (typeof e != "object" || !e) return !1;
727
+ let t = Object.getPrototypeOf(e);
728
+ return t === null || t === Object.prototype;
729
+ }
730
+ function q(e, t) {
731
+ let n = [], r = e;
732
+ for (; r && n.length < I;) {
733
+ let e = r.$options, i = {
734
+ component: U(r),
735
+ file: e.__file ?? null
736
+ };
737
+ t.attachProps && r.$props && (i.props = G(r.$props, t.propsMaxDepth, t.propsDenylist)), n.push(i), r = r.$parent;
738
+ }
739
+ return n;
740
+ }
741
+ function J(e) {
742
+ return e instanceof Error ? e : Error(typeof e == "string" ? e : String(e));
743
+ }
744
+ function Y(e) {
745
+ return H[e] ?? "unknown";
746
+ }
747
+ var X = 2;
748
+ function Z(e, t = {}) {
749
+ if (!e || typeof e != "object" || !("currentRoute" in e)) return null;
750
+ let n = e.currentRoute;
751
+ if (!n || typeof n != "object" || !("value" in n)) return null;
752
+ let r = n.value;
753
+ if (!r || typeof r != "object") return null;
754
+ let i = r, a = i.name, o = t.denylist ?? L, s = i.params && typeof i.params == "object" ? i.params : {}, c = i.query && typeof i.query == "object" ? i.query : {};
755
+ return {
756
+ name: typeof a == "string" ? a : typeof a == "symbol" ? a.toString() : null,
757
+ path: typeof i.path == "string" ? i.path : "",
758
+ fullPath: typeof i.fullPath == "string" ? T(i.fullPath, o) : "",
759
+ params: G(s, X, o),
760
+ query: G(c, X, o),
761
+ hash: typeof i.hash == "string" ? i.hash : "",
762
+ matched: Array.isArray(i.matched) ? i.matched.map((e) => {
763
+ if (!e || typeof e != "object") return "unknown";
764
+ let t = e.name;
765
+ return typeof t == "string" ? t : typeof t == "symbol" ? t.toString() : "unknown";
766
+ }) : []
767
+ };
768
+ }
769
+ function Q(e) {
770
+ let t = {
771
+ info: e.vue.info,
772
+ errorOrigin: e.vue.errorOrigin,
773
+ componentName: e.vue.componentName,
774
+ componentHierarchy: e.vue.componentHierarchy,
775
+ componentHierarchyFrames: e.vue.componentHierarchyFrames
776
+ };
777
+ return e.vue.componentProps && (t.componentProps = e.vue.componentProps), e.vue.route && (t.route = e.vue.route), { "context.custom": {
778
+ framework: "vue",
779
+ vue: t
780
+ } };
781
+ }
782
+ function pe(e) {
783
+ let t = {
784
+ type: e.vue.type,
785
+ info: e.vue.info,
786
+ componentName: e.vue.componentName,
787
+ componentTrace: e.vue.componentTrace
788
+ };
789
+ return e.vue.route && (t.route = e.vue.route), { "context.custom": {
790
+ framework: "vue",
791
+ vue: t
792
+ } };
793
+ }
794
+ var $ = /* @__PURE__ */ new WeakSet(), me = (e, t) => {
795
+ if ($.has(e)) return;
796
+ $.add(e), N.setSdkInfo({
797
+ name: "@flareapp/vue",
798
+ version: F
799
+ }), N.setFramework({
800
+ name: "Vue",
801
+ version: e.version
802
+ });
803
+ let n = t?.attachProps ?? !1, r = t?.propsMaxDepth ?? 2, i = R(t?.propsDenylist, t?.replaceDefaultDenylist), a = e.config.errorHandler;
804
+ if (e.config.errorHandler = (o, s, c) => {
805
+ let l = J(o);
806
+ t?.beforeEvaluate?.({
807
+ error: l,
808
+ instance: s,
809
+ info: c
810
+ });
811
+ let u = Y(c), d = U(s), f = n && s?.$props ? G(s.$props, r, i) : void 0, p = W(s), m = q(s, {
812
+ attachProps: n,
813
+ propsMaxDepth: r,
814
+ propsDenylist: i
815
+ }), h = Z(e.config.globalProperties.$router, { denylist: i }), g = { vue: {
816
+ info: c,
817
+ errorOrigin: u,
818
+ componentName: d,
819
+ ...f && { componentProps: f },
820
+ componentHierarchy: p,
821
+ componentHierarchyFrames: m,
822
+ ...h && { route: h }
823
+ } }, _ = t?.beforeSubmit?.({
824
+ error: l,
825
+ instance: s,
826
+ info: c,
827
+ context: g
828
+ }) ?? g;
829
+ if (Promise.resolve(N.report(l, Q(_))).catch(() => {}), t?.afterSubmit?.({
830
+ error: l,
831
+ instance: s,
832
+ info: c,
833
+ context: _
834
+ }), typeof a == "function") {
835
+ a(o, s, c);
836
+ return;
837
+ }
838
+ console.error(o);
839
+ }, t?.captureWarnings) {
840
+ let t = e.config.warnHandler;
841
+ e.config.warnHandler = (n, r, a) => {
842
+ let o = U(r), s = Z(e.config.globalProperties.$router, { denylist: i }), c = { vue: {
843
+ type: "warning",
844
+ info: n,
845
+ componentName: o,
846
+ componentTrace: a,
847
+ ...s && { route: s }
848
+ } };
849
+ Promise.resolve(N.reportMessage(n, "warning", pe(c))).catch(() => {}), typeof t == "function" && t(n, r, a);
850
+ };
851
+ }
852
+ };
853
+ i({
854
+ name: "FlareErrorBoundary",
855
+ props: {
856
+ beforeEvaluate: {
857
+ type: Function,
858
+ default: void 0
859
+ },
860
+ beforeSubmit: {
861
+ type: Function,
862
+ default: void 0
863
+ },
864
+ afterSubmit: {
865
+ type: Function,
866
+ default: void 0
867
+ },
868
+ onReset: {
869
+ type: Function,
870
+ default: void 0
871
+ },
872
+ resetKeys: {
873
+ type: Array,
874
+ default: void 0
875
+ },
876
+ attachProps: {
877
+ type: Boolean,
878
+ default: !1
879
+ },
880
+ propsMaxDepth: {
881
+ type: Number,
882
+ default: 2
883
+ },
884
+ propsDenylist: {
885
+ type: RegExp,
886
+ default: void 0
887
+ },
888
+ replaceDefaultDenylist: {
889
+ type: Boolean,
890
+ default: !1
891
+ }
892
+ },
893
+ setup(e, { slots: t }) {
894
+ let i = n(), s = a(null), c = a(void 0), l = a([]), u = a([]), d = () => {
895
+ e.onReset?.(s.value), s.value = null, c.value = void 0, l.value = [], u.value = [];
896
+ };
897
+ return o(() => e.resetKeys, (e, t) => {
898
+ if (s.value === null || !e || !t) return;
899
+ let n = t.length !== e.length, r = e.some((e, n) => !Object.is(e, t[n]));
900
+ (n || r) && d();
901
+ }), r((t, n, r) => {
902
+ let a = J(t);
903
+ e.beforeEvaluate?.({
904
+ error: a,
905
+ instance: n,
906
+ info: r
907
+ });
908
+ let o = R(e.propsDenylist, e.replaceDefaultDenylist), d = W(n), f = q(n, {
909
+ attachProps: e.attachProps,
910
+ propsMaxDepth: e.propsMaxDepth,
911
+ propsDenylist: o
912
+ }), p = U(n);
913
+ s.value = a;
914
+ let m = e.attachProps && n?.$props ? G(n.$props, e.propsMaxDepth, o) : void 0, h = Y(r), g = Z(i?.appContext.config.globalProperties.$router, { denylist: o }), _ = { vue: {
915
+ info: r,
916
+ errorOrigin: h,
917
+ ...g && { route: g },
918
+ componentName: p,
919
+ ...m && { componentProps: m },
920
+ componentHierarchy: d,
921
+ componentHierarchyFrames: f
922
+ } }, v = e.beforeSubmit?.({
923
+ error: a,
924
+ instance: n,
925
+ info: r,
926
+ context: _
927
+ }) ?? _;
928
+ return c.value = v.vue.componentProps, l.value = v.vue.componentHierarchy, u.value = v.vue.componentHierarchyFrames, Promise.resolve(N.report(a, Q(v))).catch(() => {}), e.afterSubmit?.({
929
+ error: a,
930
+ instance: n,
931
+ info: r,
932
+ context: v
933
+ }), !1;
934
+ }), () => s.value === null ? t.default?.() : t.fallback ? t.fallback({
935
+ error: s.value,
936
+ ...c.value && { componentProps: c.value },
937
+ componentHierarchy: l.value,
938
+ componentHierarchyFrames: u.value,
939
+ resetErrorBoundary: d
940
+ }) : null;
941
+ }
942
+ });
943
+ //#endregion
944
+ export { me as t };