@launchdarkly/observability 0.3.10 → 0.3.12
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/CHANGELOG.md +14 -0
- package/dist/observability.js +590 -589
- package/dist/observability.js.map +1 -1
- package/package.json +2 -2
package/dist/observability.js
CHANGED
|
@@ -14,11 +14,11 @@ var Ou = Object.defineProperty, Au = (t, e, n) => e in t ? Ou(t, e, { enumerable
|
|
|
14
14
|
}, u = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(o, a);
|
|
15
15
|
u((n = n.apply(t, e)).next());
|
|
16
16
|
});
|
|
17
|
-
const
|
|
17
|
+
const ji = /* @__PURE__ */ Object.create(null), Ce = (t, e, ...n) => {
|
|
18
18
|
const r = `[@launchdarkly plugins]: (${t}): `;
|
|
19
19
|
console[e].apply(console, [r, ...n]), Nu(r, ...n);
|
|
20
20
|
}, Ee = (t, e, n, ...r) => {
|
|
21
|
-
|
|
21
|
+
ji[`${t}-${e}`] || (ji[`${t}-${e}`] = !0, Ce(t, n, ...r));
|
|
22
22
|
}, Nu = (t, ...e) => xu(void 0, null, function* () {
|
|
23
23
|
try {
|
|
24
24
|
const { LDObserve: n } = yield Promise.resolve().then(() => Xl);
|
|
@@ -26,7 +26,7 @@ const $i = /* @__PURE__ */ Object.create(null), Ce = (t, e, ...n) => {
|
|
|
26
26
|
} catch {
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
|
-
|
|
29
|
+
class Cu {
|
|
30
30
|
constructor(e, n) {
|
|
31
31
|
ye(this, "debug"), ye(this, "name"), this.debug = e, this.name = n;
|
|
32
32
|
}
|
|
@@ -40,7 +40,8 @@ let Cu = class {
|
|
|
40
40
|
let n = `[${Date.now()}]`;
|
|
41
41
|
this.name && (n += ` - ${this.name}`), console.warn.apply(console, [n, ...e]);
|
|
42
42
|
}
|
|
43
|
-
}
|
|
43
|
+
}
|
|
44
|
+
let _a = class {
|
|
44
45
|
constructor() {
|
|
45
46
|
ye(this, "_sdk"), ye(this, "_isLoaded", !1), ye(this, "_callBuffer", []), ye(this, "_capacity", 1e5), ye(this, "_droppedEvents", 0), ye(this, "_exceededCapacity", !1), ye(this, "_logger", new Cu());
|
|
46
47
|
}
|
|
@@ -81,22 +82,22 @@ let Cu = class {
|
|
|
81
82
|
this._callBuffer = [];
|
|
82
83
|
}
|
|
83
84
|
};
|
|
84
|
-
var Lu = Object.defineProperty, Ru = Object.defineProperties, Iu = Object.getOwnPropertyDescriptors, bn = Object.getOwnPropertySymbols,
|
|
85
|
+
var Lu = Object.defineProperty, Ru = Object.defineProperties, Iu = Object.getOwnPropertyDescriptors, bn = Object.getOwnPropertySymbols, ba = Object.prototype.hasOwnProperty, Ea = Object.prototype.propertyIsEnumerable, Ur = (t, e, n) => e in t ? Lu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, x = (t, e) => {
|
|
85
86
|
for (var n in e || (e = {}))
|
|
86
|
-
|
|
87
|
+
ba.call(e, n) && Ur(t, n, e[n]);
|
|
87
88
|
if (bn)
|
|
88
89
|
for (var n of bn(e))
|
|
89
|
-
|
|
90
|
+
Ea.call(e, n) && Ur(t, n, e[n]);
|
|
90
91
|
return t;
|
|
91
92
|
}, st = (t, e) => Ru(t, Iu(e)), Nt = (t, e) => {
|
|
92
93
|
var n = {};
|
|
93
94
|
for (var r in t)
|
|
94
|
-
|
|
95
|
+
ba.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
|
|
95
96
|
if (t != null && bn)
|
|
96
97
|
for (var r of bn(t))
|
|
97
|
-
e.indexOf(r) < 0 &&
|
|
98
|
+
e.indexOf(r) < 0 && Ea.call(t, r) && (n[r] = t[r]);
|
|
98
99
|
return n;
|
|
99
|
-
}, Mt = (t, e, n) =>
|
|
100
|
+
}, Mt = (t, e, n) => Ur(t, typeof e != "symbol" ? e + "" : e, n), pt = (t, e, n) => new Promise((r, i) => {
|
|
100
101
|
var o = (c) => {
|
|
101
102
|
try {
|
|
102
103
|
u(n.next(c));
|
|
@@ -140,7 +141,7 @@ function Mu(t, e) {
|
|
|
140
141
|
);
|
|
141
142
|
}
|
|
142
143
|
const Du = /\r\n|[\n\r]/g;
|
|
143
|
-
function
|
|
144
|
+
function $r(t, e) {
|
|
144
145
|
let n = 0, r = 1;
|
|
145
146
|
for (const i of t.body.matchAll(Du)) {
|
|
146
147
|
if (typeof i.index == "number" || Mu(), i.index >= e)
|
|
@@ -153,26 +154,26 @@ function Ur(t, e) {
|
|
|
153
154
|
};
|
|
154
155
|
}
|
|
155
156
|
function Uu(t) {
|
|
156
|
-
return
|
|
157
|
+
return Ta(
|
|
157
158
|
t.source,
|
|
158
|
-
|
|
159
|
+
$r(t.source, t.start)
|
|
159
160
|
);
|
|
160
161
|
}
|
|
161
|
-
function
|
|
162
|
+
function Ta(t, e) {
|
|
162
163
|
const n = t.locationOffset.column - 1, r = "".padStart(n) + t.body, i = e.line - 1, o = t.locationOffset.line - 1, a = e.line + o, u = e.line === 1 ? n : 0, c = e.column + u, s = `${t.name}:${a}:${c}
|
|
163
164
|
`, l = r.split(/\r\n|[\n\r]/g), p = l[i];
|
|
164
165
|
if (p.length > 120) {
|
|
165
166
|
const f = Math.floor(c / 80), m = c % 80, v = [];
|
|
166
167
|
for (let y = 0; y < p.length; y += 80)
|
|
167
168
|
v.push(p.slice(y, y + 80));
|
|
168
|
-
return s +
|
|
169
|
+
return s + Bi([
|
|
169
170
|
[`${a} |`, v[0]],
|
|
170
171
|
...v.slice(1, f + 1).map((y) => ["|", y]),
|
|
171
172
|
["|", "^".padStart(m)],
|
|
172
173
|
["|", v[f + 1]]
|
|
173
174
|
]);
|
|
174
175
|
}
|
|
175
|
-
return s +
|
|
176
|
+
return s + Bi([
|
|
176
177
|
// Lines specified like this: ["prefix", "string"],
|
|
177
178
|
[`${a - 1} |`, l[i - 1]],
|
|
178
179
|
[`${a} |`, p],
|
|
@@ -180,7 +181,7 @@ function Ea(t, e) {
|
|
|
180
181
|
[`${a + 1} |`, l[i + 1]]
|
|
181
182
|
]);
|
|
182
183
|
}
|
|
183
|
-
function
|
|
184
|
+
function Bi(t) {
|
|
184
185
|
const e = t.filter(([r, i]) => i !== void 0), n = Math.max(...e.map(([r]) => r.length));
|
|
185
186
|
return e.map(([r, i]) => r.padStart(n) + (i ? " " + i : "")).join(`
|
|
186
187
|
`);
|
|
@@ -196,7 +197,7 @@ function $u(t) {
|
|
|
196
197
|
extensions: t[5]
|
|
197
198
|
} : e;
|
|
198
199
|
}
|
|
199
|
-
class
|
|
200
|
+
class hi extends Error {
|
|
200
201
|
/**
|
|
201
202
|
* An array of `{ line, column }` locations within the source GraphQL document
|
|
202
203
|
* which correspond to this error.
|
|
@@ -238,13 +239,13 @@ class fi extends Error {
|
|
|
238
239
|
constructor(e, ...n) {
|
|
239
240
|
var r, i, o;
|
|
240
241
|
const { nodes: a, source: u, positions: c, path: s, originalError: l, extensions: p } = $u(n);
|
|
241
|
-
super(e), this.name = "GraphQLError", this.path = s ?? void 0, this.originalError = l ?? void 0, this.nodes =
|
|
242
|
+
super(e), this.name = "GraphQLError", this.path = s ?? void 0, this.originalError = l ?? void 0, this.nodes = Fi(
|
|
242
243
|
Array.isArray(a) ? a : a ? [a] : void 0
|
|
243
244
|
);
|
|
244
|
-
const f =
|
|
245
|
+
const f = Fi(
|
|
245
246
|
(r = this.nodes) === null || r === void 0 ? void 0 : r.map((v) => v.loc).filter((v) => v != null)
|
|
246
247
|
);
|
|
247
|
-
this.source = u ?? (f == null || (i = f[0]) === null || i === void 0 ? void 0 : i.source), this.positions = c ?? f?.map((v) => v.start), this.locations = c && u ? c.map((v) =>
|
|
248
|
+
this.source = u ?? (f == null || (i = f[0]) === null || i === void 0 ? void 0 : i.source), this.positions = c ?? f?.map((v) => v.start), this.locations = c && u ? c.map((v) => $r(u, v)) : f?.map((v) => $r(v.source, v.start));
|
|
248
249
|
const m = ku(
|
|
249
250
|
l?.extensions
|
|
250
251
|
) ? l?.extensions : void 0;
|
|
@@ -272,7 +273,7 @@ class fi extends Error {
|
|
|
272
273
|
value: l.stack,
|
|
273
274
|
writable: !0,
|
|
274
275
|
configurable: !0
|
|
275
|
-
}) : Error.captureStackTrace ? Error.captureStackTrace(this,
|
|
276
|
+
}) : Error.captureStackTrace ? Error.captureStackTrace(this, hi) : Object.defineProperty(this, "stack", {
|
|
276
277
|
value: Error().stack,
|
|
277
278
|
writable: !0,
|
|
278
279
|
configurable: !0
|
|
@@ -292,7 +293,7 @@ class fi extends Error {
|
|
|
292
293
|
for (const n of this.locations)
|
|
293
294
|
e += `
|
|
294
295
|
|
|
295
|
-
` +
|
|
296
|
+
` + Ta(this.source, n);
|
|
296
297
|
return e;
|
|
297
298
|
}
|
|
298
299
|
toJSON() {
|
|
@@ -302,11 +303,11 @@ class fi extends Error {
|
|
|
302
303
|
return this.locations != null && (e.locations = this.locations), this.path != null && (e.path = this.path), this.extensions != null && Object.keys(this.extensions).length > 0 && (e.extensions = this.extensions), e;
|
|
303
304
|
}
|
|
304
305
|
}
|
|
305
|
-
function
|
|
306
|
+
function Fi(t) {
|
|
306
307
|
return t === void 0 || t.length === 0 ? void 0 : t;
|
|
307
308
|
}
|
|
308
309
|
function H(t, e, n) {
|
|
309
|
-
return new
|
|
310
|
+
return new hi(`Syntax Error: ${n}`, {
|
|
310
311
|
source: t,
|
|
311
312
|
positions: [e]
|
|
312
313
|
});
|
|
@@ -339,7 +340,8 @@ let ju = class {
|
|
|
339
340
|
end: this.end
|
|
340
341
|
};
|
|
341
342
|
}
|
|
342
|
-
}
|
|
343
|
+
};
|
|
344
|
+
class wa {
|
|
343
345
|
/**
|
|
344
346
|
* The kind of Token.
|
|
345
347
|
*/
|
|
@@ -380,8 +382,8 @@ let ju = class {
|
|
|
380
382
|
column: this.column
|
|
381
383
|
};
|
|
382
384
|
}
|
|
383
|
-
}
|
|
384
|
-
const
|
|
385
|
+
}
|
|
386
|
+
const Sa = {
|
|
385
387
|
Name: [],
|
|
386
388
|
Document: ["definitions"],
|
|
387
389
|
OperationDefinition: [
|
|
@@ -455,8 +457,8 @@ const wa = {
|
|
|
455
457
|
UnionTypeExtension: ["name", "directives", "types"],
|
|
456
458
|
EnumTypeExtension: ["name", "directives", "values"],
|
|
457
459
|
InputObjectTypeExtension: ["name", "directives", "fields"]
|
|
458
|
-
}, Bu = new Set(Object.keys(
|
|
459
|
-
function
|
|
460
|
+
}, Bu = new Set(Object.keys(Sa));
|
|
461
|
+
function Vi(t) {
|
|
460
462
|
const e = t?.kind;
|
|
461
463
|
return typeof e == "string" && Bu.has(e);
|
|
462
464
|
}
|
|
@@ -464,29 +466,29 @@ var it;
|
|
|
464
466
|
(function(t) {
|
|
465
467
|
t.QUERY = "query", t.MUTATION = "mutation", t.SUBSCRIPTION = "subscription";
|
|
466
468
|
})(it || (it = {}));
|
|
467
|
-
var
|
|
469
|
+
var jr;
|
|
468
470
|
(function(t) {
|
|
469
471
|
t.QUERY = "QUERY", t.MUTATION = "MUTATION", t.SUBSCRIPTION = "SUBSCRIPTION", t.FIELD = "FIELD", t.FRAGMENT_DEFINITION = "FRAGMENT_DEFINITION", t.FRAGMENT_SPREAD = "FRAGMENT_SPREAD", t.INLINE_FRAGMENT = "INLINE_FRAGMENT", t.VARIABLE_DEFINITION = "VARIABLE_DEFINITION", t.SCHEMA = "SCHEMA", t.SCALAR = "SCALAR", t.OBJECT = "OBJECT", t.FIELD_DEFINITION = "FIELD_DEFINITION", t.ARGUMENT_DEFINITION = "ARGUMENT_DEFINITION", t.INTERFACE = "INTERFACE", t.UNION = "UNION", t.ENUM = "ENUM", t.ENUM_VALUE = "ENUM_VALUE", t.INPUT_OBJECT = "INPUT_OBJECT", t.INPUT_FIELD_DEFINITION = "INPUT_FIELD_DEFINITION";
|
|
470
|
-
})(
|
|
472
|
+
})(jr || (jr = {}));
|
|
471
473
|
var w;
|
|
472
474
|
(function(t) {
|
|
473
475
|
t.NAME = "Name", t.DOCUMENT = "Document", t.OPERATION_DEFINITION = "OperationDefinition", t.VARIABLE_DEFINITION = "VariableDefinition", t.SELECTION_SET = "SelectionSet", t.FIELD = "Field", t.ARGUMENT = "Argument", t.FRAGMENT_SPREAD = "FragmentSpread", t.INLINE_FRAGMENT = "InlineFragment", t.FRAGMENT_DEFINITION = "FragmentDefinition", t.VARIABLE = "Variable", t.INT = "IntValue", t.FLOAT = "FloatValue", t.STRING = "StringValue", t.BOOLEAN = "BooleanValue", t.NULL = "NullValue", t.ENUM = "EnumValue", t.LIST = "ListValue", t.OBJECT = "ObjectValue", t.OBJECT_FIELD = "ObjectField", t.DIRECTIVE = "Directive", t.NAMED_TYPE = "NamedType", t.LIST_TYPE = "ListType", t.NON_NULL_TYPE = "NonNullType", t.SCHEMA_DEFINITION = "SchemaDefinition", t.OPERATION_TYPE_DEFINITION = "OperationTypeDefinition", t.SCALAR_TYPE_DEFINITION = "ScalarTypeDefinition", t.OBJECT_TYPE_DEFINITION = "ObjectTypeDefinition", t.FIELD_DEFINITION = "FieldDefinition", t.INPUT_VALUE_DEFINITION = "InputValueDefinition", t.INTERFACE_TYPE_DEFINITION = "InterfaceTypeDefinition", t.UNION_TYPE_DEFINITION = "UnionTypeDefinition", t.ENUM_TYPE_DEFINITION = "EnumTypeDefinition", t.ENUM_VALUE_DEFINITION = "EnumValueDefinition", t.INPUT_OBJECT_TYPE_DEFINITION = "InputObjectTypeDefinition", t.DIRECTIVE_DEFINITION = "DirectiveDefinition", t.SCHEMA_EXTENSION = "SchemaExtension", t.SCALAR_TYPE_EXTENSION = "ScalarTypeExtension", t.OBJECT_TYPE_EXTENSION = "ObjectTypeExtension", t.INTERFACE_TYPE_EXTENSION = "InterfaceTypeExtension", t.UNION_TYPE_EXTENSION = "UnionTypeExtension", t.ENUM_TYPE_EXTENSION = "EnumTypeExtension", t.INPUT_OBJECT_TYPE_EXTENSION = "InputObjectTypeExtension";
|
|
474
476
|
})(w || (w = {}));
|
|
475
|
-
function
|
|
477
|
+
function Br(t) {
|
|
476
478
|
return t === 9 || t === 32;
|
|
477
479
|
}
|
|
478
480
|
function Dt(t) {
|
|
479
481
|
return t >= 48 && t <= 57;
|
|
480
482
|
}
|
|
481
|
-
function
|
|
483
|
+
function Oa(t) {
|
|
482
484
|
return t >= 97 && t <= 122 || // A-Z
|
|
483
485
|
t >= 65 && t <= 90;
|
|
484
486
|
}
|
|
485
|
-
function
|
|
486
|
-
return
|
|
487
|
+
function Aa(t) {
|
|
488
|
+
return Oa(t) || t === 95;
|
|
487
489
|
}
|
|
488
490
|
function Fu(t) {
|
|
489
|
-
return
|
|
491
|
+
return Oa(t) || Dt(t) || t === 95;
|
|
490
492
|
}
|
|
491
493
|
function Vu(t) {
|
|
492
494
|
var e;
|
|
@@ -503,17 +505,17 @@ function Vu(t) {
|
|
|
503
505
|
}
|
|
504
506
|
function Hu(t) {
|
|
505
507
|
let e = 0;
|
|
506
|
-
for (; e < t.length &&
|
|
508
|
+
for (; e < t.length && Br(t.charCodeAt(e)); )
|
|
507
509
|
++e;
|
|
508
510
|
return e;
|
|
509
511
|
}
|
|
510
512
|
function Gu(t, e) {
|
|
511
|
-
const n = t.replace(/"""/g, '\\"""'), r = n.split(/\r\n|[\n\r]/g), i = r.length === 1, o = r.length > 1 && r.slice(1).every((m) => m.length === 0 ||
|
|
513
|
+
const n = t.replace(/"""/g, '\\"""'), r = n.split(/\r\n|[\n\r]/g), i = r.length === 1, o = r.length > 1 && r.slice(1).every((m) => m.length === 0 || Br(m.charCodeAt(0))), a = n.endsWith('\\"""'), u = t.endsWith('"') && !a, c = t.endsWith("\\"), s = u || c, l = (
|
|
512
514
|
// add leading and trailing new lines only if it improves readability
|
|
513
515
|
!i || t.length > 70 || s || o || a
|
|
514
516
|
);
|
|
515
517
|
let p = "";
|
|
516
|
-
const f = i &&
|
|
518
|
+
const f = i && Br(t.charCodeAt(0));
|
|
517
519
|
return (l && !f || o) && (p += `
|
|
518
520
|
`), p += n, (l || s) && (p += `
|
|
519
521
|
`), '"""' + p + '"""';
|
|
@@ -536,7 +538,7 @@ let zu = class {
|
|
|
536
538
|
* The character offset at which the current line begins.
|
|
537
539
|
*/
|
|
538
540
|
constructor(e) {
|
|
539
|
-
const n = new
|
|
541
|
+
const n = new wa(d.SOF, 0, 0, 0, 0);
|
|
540
542
|
this.source = e, this.lastToken = n, this.token = n, this.line = 1, this.lineStart = 0;
|
|
541
543
|
}
|
|
542
544
|
get [Symbol.toStringTag]() {
|
|
@@ -573,12 +575,12 @@ function vt(t) {
|
|
|
573
575
|
return t >= 0 && t <= 55295 || t >= 57344 && t <= 1114111;
|
|
574
576
|
}
|
|
575
577
|
function Dn(t, e) {
|
|
576
|
-
return
|
|
578
|
+
return xa(t.charCodeAt(e)) && Na(t.charCodeAt(e + 1));
|
|
577
579
|
}
|
|
578
|
-
function
|
|
580
|
+
function xa(t) {
|
|
579
581
|
return t >= 55296 && t <= 56319;
|
|
580
582
|
}
|
|
581
|
-
function
|
|
583
|
+
function Na(t) {
|
|
582
584
|
return t >= 56320 && t <= 57343;
|
|
583
585
|
}
|
|
584
586
|
function Be(t, e) {
|
|
@@ -593,7 +595,7 @@ function Be(t, e) {
|
|
|
593
595
|
}
|
|
594
596
|
function B(t, e, n, r, i) {
|
|
595
597
|
const o = t.line, a = 1 + n - t.lineStart;
|
|
596
|
-
return new
|
|
598
|
+
return new wa(e, n, r, o, a, i);
|
|
597
599
|
}
|
|
598
600
|
function Xu(t, e) {
|
|
599
601
|
const n = t.source.body, r = n.length;
|
|
@@ -650,7 +652,7 @@ function Xu(t, e) {
|
|
|
650
652
|
}
|
|
651
653
|
if (Dt(o) || o === 45)
|
|
652
654
|
return Wu(t, i, o);
|
|
653
|
-
if (
|
|
655
|
+
if (Aa(o))
|
|
654
656
|
return tc(t, i);
|
|
655
657
|
throw H(
|
|
656
658
|
t.source,
|
|
@@ -697,7 +699,7 @@ function Wu(t, e, n) {
|
|
|
697
699
|
);
|
|
698
700
|
} else
|
|
699
701
|
i = Wn(t, i, o), o = r.charCodeAt(i);
|
|
700
|
-
if (o === 46 && (a = !0, o = r.charCodeAt(++i), i = Wn(t, i, o), o = r.charCodeAt(i)), (o === 69 || o === 101) && (a = !0, o = r.charCodeAt(++i), (o === 43 || o === 45) && (o = r.charCodeAt(++i)), i = Wn(t, i, o), o = r.charCodeAt(i)), o === 46 ||
|
|
702
|
+
if (o === 46 && (a = !0, o = r.charCodeAt(++i), i = Wn(t, i, o), o = r.charCodeAt(i)), (o === 69 || o === 101) && (a = !0, o = r.charCodeAt(++i), (o === 43 || o === 45) && (o = r.charCodeAt(++i)), i = Wn(t, i, o), o = r.charCodeAt(i)), o === 46 || Aa(o))
|
|
701
703
|
throw H(
|
|
702
704
|
t.source,
|
|
703
705
|
i,
|
|
@@ -787,15 +789,15 @@ function Ju(t, e) {
|
|
|
787
789
|
);
|
|
788
790
|
}
|
|
789
791
|
function Qu(t, e) {
|
|
790
|
-
const n = t.source.body, r =
|
|
792
|
+
const n = t.source.body, r = Hi(n, e + 2);
|
|
791
793
|
if (vt(r))
|
|
792
794
|
return {
|
|
793
795
|
value: String.fromCodePoint(r),
|
|
794
796
|
size: 6
|
|
795
797
|
};
|
|
796
|
-
if (
|
|
797
|
-
const i =
|
|
798
|
-
if (
|
|
798
|
+
if (xa(r) && n.charCodeAt(e + 6) === 92 && n.charCodeAt(e + 7) === 117) {
|
|
799
|
+
const i = Hi(n, e + 8);
|
|
800
|
+
if (Na(i))
|
|
799
801
|
return {
|
|
800
802
|
value: String.fromCodePoint(r, i),
|
|
801
803
|
size: 12
|
|
@@ -807,7 +809,7 @@ function Qu(t, e) {
|
|
|
807
809
|
`Invalid Unicode escape sequence: "${n.slice(e, e + 6)}".`
|
|
808
810
|
);
|
|
809
811
|
}
|
|
810
|
-
function
|
|
812
|
+
function Hi(t, e) {
|
|
811
813
|
return At(t.charCodeAt(e)) << 12 | At(t.charCodeAt(e + 1)) << 8 | At(t.charCodeAt(e + 2)) << 4 | At(t.charCodeAt(e + 3));
|
|
812
814
|
}
|
|
813
815
|
function At(t) {
|
|
@@ -928,8 +930,8 @@ function tc(t, e) {
|
|
|
928
930
|
n.slice(e, i)
|
|
929
931
|
);
|
|
930
932
|
}
|
|
931
|
-
const nc = 10,
|
|
932
|
-
function
|
|
933
|
+
const nc = 10, Ca = 2;
|
|
934
|
+
function di(t) {
|
|
933
935
|
return Un(t, []);
|
|
934
936
|
}
|
|
935
937
|
function Un(t, e) {
|
|
@@ -963,14 +965,14 @@ function ic(t) {
|
|
|
963
965
|
}
|
|
964
966
|
function oc(t, e) {
|
|
965
967
|
const n = Object.entries(t);
|
|
966
|
-
return n.length === 0 ? "{}" : e.length >
|
|
968
|
+
return n.length === 0 ? "{}" : e.length > Ca ? "[" + sc(t) + "]" : "{ " + n.map(
|
|
967
969
|
([r, i]) => r + ": " + Un(i, e)
|
|
968
970
|
).join(", ") + " }";
|
|
969
971
|
}
|
|
970
972
|
function ac(t, e) {
|
|
971
973
|
if (t.length === 0)
|
|
972
974
|
return "[]";
|
|
973
|
-
if (e.length >
|
|
975
|
+
if (e.length > Ca)
|
|
974
976
|
return "[Array]";
|
|
975
977
|
const n = Math.min(nc, t.length), r = t.length - n, i = [];
|
|
976
978
|
for (let o = 0; o < n; ++o)
|
|
@@ -1002,7 +1004,7 @@ process.env.NODE_ENV === "production", cc = (
|
|
|
1002
1004
|
Symbol.toStringTag in t ? t[Symbol.toStringTag] : (n = t.constructor) === null || n === void 0 ? void 0 : n.name
|
|
1003
1005
|
);
|
|
1004
1006
|
if (r === i) {
|
|
1005
|
-
const o =
|
|
1007
|
+
const o = di(t);
|
|
1006
1008
|
throw new Error(`Cannot use ${r} "${o}" from another module or realm.
|
|
1007
1009
|
|
|
1008
1010
|
Ensure that there is only one instance of "graphql" in the node_modules
|
|
@@ -1020,12 +1022,12 @@ spurious results.`);
|
|
|
1020
1022
|
return !1;
|
|
1021
1023
|
}
|
|
1022
1024
|
);
|
|
1023
|
-
|
|
1025
|
+
class La {
|
|
1024
1026
|
constructor(e, n = "GraphQL request", r = {
|
|
1025
1027
|
line: 1,
|
|
1026
1028
|
column: 1
|
|
1027
1029
|
}) {
|
|
1028
|
-
typeof e == "string" || ln(!1, `Body must be a string. Received: ${
|
|
1030
|
+
typeof e == "string" || ln(!1, `Body must be a string. Received: ${di(e)}.`), this.body = e, this.name = n, this.locationOffset = r, this.locationOffset.line > 0 || ln(
|
|
1029
1031
|
!1,
|
|
1030
1032
|
"line in locationOffset is 1-indexed and must be positive."
|
|
1031
1033
|
), this.locationOffset.column > 0 || ln(
|
|
@@ -1036,11 +1038,11 @@ let Ca = class {
|
|
|
1036
1038
|
get [Symbol.toStringTag]() {
|
|
1037
1039
|
return "Source";
|
|
1038
1040
|
}
|
|
1039
|
-
}
|
|
1041
|
+
}
|
|
1040
1042
|
function lc(t) {
|
|
1041
|
-
return cc(t,
|
|
1043
|
+
return cc(t, La);
|
|
1042
1044
|
}
|
|
1043
|
-
function
|
|
1045
|
+
function vi(t, e) {
|
|
1044
1046
|
const n = new pc(t, e), r = n.parseDocument();
|
|
1045
1047
|
return Object.defineProperty(r, "tokenCount", {
|
|
1046
1048
|
enumerable: !1,
|
|
@@ -1049,7 +1051,7 @@ function di(t, e) {
|
|
|
1049
1051
|
}
|
|
1050
1052
|
let pc = class {
|
|
1051
1053
|
constructor(e, n = {}) {
|
|
1052
|
-
const r = lc(e) ? e : new
|
|
1054
|
+
const r = lc(e) ? e : new La(e);
|
|
1053
1055
|
this._lexer = new zu(r), this._options = n, this._tokenCounter = 0;
|
|
1054
1056
|
}
|
|
1055
1057
|
get tokenCount() {
|
|
@@ -2009,7 +2011,7 @@ let pc = class {
|
|
|
2009
2011
|
*/
|
|
2010
2012
|
parseDirectiveLocation() {
|
|
2011
2013
|
const e = this._lexer.token, n = this.parseName();
|
|
2012
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
2014
|
+
if (Object.prototype.hasOwnProperty.call(jr, n.value))
|
|
2013
2015
|
return n;
|
|
2014
2016
|
throw this.unexpected(e);
|
|
2015
2017
|
}
|
|
@@ -2043,7 +2045,7 @@ let pc = class {
|
|
|
2043
2045
|
throw H(
|
|
2044
2046
|
this._lexer.source,
|
|
2045
2047
|
n.start,
|
|
2046
|
-
`Expected ${
|
|
2048
|
+
`Expected ${Ra(e)}, found ${Yt(n)}.`
|
|
2047
2049
|
);
|
|
2048
2050
|
}
|
|
2049
2051
|
/**
|
|
@@ -2153,9 +2155,9 @@ let pc = class {
|
|
|
2153
2155
|
};
|
|
2154
2156
|
function Yt(t) {
|
|
2155
2157
|
const e = t.value;
|
|
2156
|
-
return
|
|
2158
|
+
return Ra(t.kind) + (e != null ? ` "${e}"` : "");
|
|
2157
2159
|
}
|
|
2158
|
-
function
|
|
2160
|
+
function Ra(t) {
|
|
2159
2161
|
return qu(t) ? `"${t}"` : t;
|
|
2160
2162
|
}
|
|
2161
2163
|
function fc(t) {
|
|
@@ -2332,7 +2334,7 @@ const vc = [
|
|
|
2332
2334
|
"\\u009E",
|
|
2333
2335
|
"\\u009F"
|
|
2334
2336
|
], mc = Object.freeze({});
|
|
2335
|
-
function yc(t, e, n =
|
|
2337
|
+
function yc(t, e, n = Sa) {
|
|
2336
2338
|
const r = /* @__PURE__ */ new Map();
|
|
2337
2339
|
for (const b of Object.values(w))
|
|
2338
2340
|
r.set(b, gc(e, b));
|
|
@@ -2364,7 +2366,7 @@ function yc(t, e, n = wa) {
|
|
|
2364
2366
|
let U;
|
|
2365
2367
|
if (!Array.isArray(s)) {
|
|
2366
2368
|
var v, y;
|
|
2367
|
-
|
|
2369
|
+
Vi(s) || ln(!1, `Invalid AST Node: ${di(s)}.`);
|
|
2368
2370
|
const D = b ? (v = r.get(s.kind)) === null || v === void 0 ? void 0 : v.leave : (y = r.get(s.kind)) === null || y === void 0 ? void 0 : y.enter;
|
|
2369
2371
|
if (U = D?.call(e, s, l, p, f, m), U === mc)
|
|
2370
2372
|
break;
|
|
@@ -2374,7 +2376,7 @@ function yc(t, e, n = wa) {
|
|
|
2374
2376
|
continue;
|
|
2375
2377
|
}
|
|
2376
2378
|
} else if (U !== void 0 && (c.push([l, U]), !b))
|
|
2377
|
-
if (
|
|
2379
|
+
if (Vi(U))
|
|
2378
2380
|
s = U;
|
|
2379
2381
|
else {
|
|
2380
2382
|
f.pop();
|
|
@@ -2544,7 +2546,7 @@ const bc = 80, Ec = {
|
|
|
2544
2546
|
},
|
|
2545
2547
|
FieldDefinition: {
|
|
2546
2548
|
leave: ({ description: t, name: e, arguments: n, type: r, directives: i }) => N("", t, `
|
|
2547
|
-
`) + e + (
|
|
2549
|
+
`) + e + (Gi(n) ? N(`(
|
|
2548
2550
|
`, pn(T(n, `
|
|
2549
2551
|
`)), `
|
|
2550
2552
|
)`) : N("(", T(n, ", "), ")")) + ": " + r + N(" ", T(i, " "))
|
|
@@ -2590,7 +2592,7 @@ const bc = 80, Ec = {
|
|
|
2590
2592
|
},
|
|
2591
2593
|
DirectiveDefinition: {
|
|
2592
2594
|
leave: ({ description: t, name: e, arguments: n, repeatable: r, locations: i }) => N("", t, `
|
|
2593
|
-
`) + "directive @" + e + (
|
|
2595
|
+
`) + "directive @" + e + (Gi(n) ? N(`(
|
|
2594
2596
|
`, pn(T(n, `
|
|
2595
2597
|
`)), `
|
|
2596
2598
|
)`) : N("(", T(n, ", "), ")")) + (r ? " repeatable" : "") + " on " + T(i, " | ")
|
|
@@ -2663,12 +2665,12 @@ function pn(t) {
|
|
|
2663
2665
|
return N(" ", t.replace(/\n/g, `
|
|
2664
2666
|
`));
|
|
2665
2667
|
}
|
|
2666
|
-
function
|
|
2668
|
+
function Gi(t) {
|
|
2667
2669
|
var e;
|
|
2668
2670
|
return (e = t?.some((n) => n.includes(`
|
|
2669
2671
|
`))) !== null && e !== void 0 ? e : !1;
|
|
2670
2672
|
}
|
|
2671
|
-
const
|
|
2673
|
+
const mi = JSON, Tc = (t) => t.toUpperCase(), wc = (t) => {
|
|
2672
2674
|
const e = {};
|
|
2673
2675
|
return t.forEach((n, r) => {
|
|
2674
2676
|
e[r] = n;
|
|
@@ -2687,7 +2689,7 @@ const vi = JSON, Tc = (t) => t.toUpperCase(), wc = (t) => {
|
|
|
2687
2689
|
documents: t,
|
|
2688
2690
|
requestHeaders: e,
|
|
2689
2691
|
signal: void 0
|
|
2690
|
-
},
|
|
2692
|
+
}, zi = (t) => {
|
|
2691
2693
|
var e, n;
|
|
2692
2694
|
let r;
|
|
2693
2695
|
const i = t.definitions.filter((o) => o.kind === "OperationDefinition");
|
|
@@ -2696,16 +2698,16 @@ const vi = JSON, Tc = (t) => t.toUpperCase(), wc = (t) => {
|
|
|
2696
2698
|
if (typeof t == "string") {
|
|
2697
2699
|
let n;
|
|
2698
2700
|
try {
|
|
2699
|
-
const r =
|
|
2700
|
-
n =
|
|
2701
|
+
const r = vi(t);
|
|
2702
|
+
n = zi(r);
|
|
2701
2703
|
} catch {
|
|
2702
2704
|
}
|
|
2703
2705
|
return { query: t, operationName: n };
|
|
2704
2706
|
}
|
|
2705
|
-
const e =
|
|
2707
|
+
const e = zi(t);
|
|
2706
2708
|
return { query: _c(t), operationName: e };
|
|
2707
2709
|
};
|
|
2708
|
-
let
|
|
2710
|
+
let Ia = class fn extends Error {
|
|
2709
2711
|
constructor(e, n) {
|
|
2710
2712
|
const r = `${fn.extractMessage(e)}: ${JSON.stringify({
|
|
2711
2713
|
response: e,
|
|
@@ -2718,13 +2720,13 @@ let Ra = class fn extends Error {
|
|
|
2718
2720
|
return (i = (r = (n = e.errors) == null ? void 0 : n[0]) == null ? void 0 : r.message) != null ? i : `GraphQL Error (Code: ${e.status})`;
|
|
2719
2721
|
}
|
|
2720
2722
|
};
|
|
2721
|
-
var
|
|
2723
|
+
var yi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2722
2724
|
function $n(t) {
|
|
2723
2725
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
2724
2726
|
}
|
|
2725
|
-
var
|
|
2727
|
+
var Fr = { exports: {} };
|
|
2726
2728
|
(function(t, e) {
|
|
2727
|
-
var n = typeof self < "u" ? self :
|
|
2729
|
+
var n = typeof self < "u" ? self : yi, r = function() {
|
|
2728
2730
|
function o() {
|
|
2729
2731
|
this.fetch = !1, this.DOMException = n.DOMException;
|
|
2730
2732
|
}
|
|
@@ -2993,8 +2995,8 @@ var Br = { exports: {} };
|
|
|
2993
2995
|
})(r), r.fetch.ponyfill = !0, delete r.fetch.polyfill;
|
|
2994
2996
|
var i = r;
|
|
2995
2997
|
e = i.fetch, e.default = i.fetch, e.fetch = i.fetch, e.Headers = i.Headers, e.Request = i.Request, e.Response = i.Response, t.exports = e;
|
|
2996
|
-
})(
|
|
2997
|
-
var En =
|
|
2998
|
+
})(Fr, Fr.exports);
|
|
2999
|
+
var En = Fr.exports;
|
|
2998
3000
|
const hn = /* @__PURE__ */ $n(En), xc = /* @__PURE__ */ Pu({
|
|
2999
3001
|
__proto__: null,
|
|
3000
3002
|
default: hn
|
|
@@ -3003,15 +3005,15 @@ const hn = /* @__PURE__ */ $n(En), xc = /* @__PURE__ */ Pu({
|
|
|
3003
3005
|
return t && (typeof Headers < "u" && t instanceof Headers || xc && En.Headers && t instanceof En.Headers ? e = wc(t) : Array.isArray(t) ? t.forEach(([n, r]) => {
|
|
3004
3006
|
n && r !== void 0 && (e[n] = r);
|
|
3005
3007
|
}) : e = t), e;
|
|
3006
|
-
},
|
|
3008
|
+
}, qi = (t) => t.replace(/([\s,]|#[^\n\r]+)+/g, " ").trim(), Nc = (t) => {
|
|
3007
3009
|
if (!Array.isArray(t.query)) {
|
|
3008
|
-
const r = t, i = [`query=${encodeURIComponent(
|
|
3010
|
+
const r = t, i = [`query=${encodeURIComponent(qi(r.query))}`];
|
|
3009
3011
|
return t.variables && i.push(`variables=${encodeURIComponent(r.jsonSerializer.stringify(r.variables))}`), r.operationName && i.push(`operationName=${encodeURIComponent(r.operationName)}`), i.join("&");
|
|
3010
3012
|
}
|
|
3011
3013
|
if (typeof t.variables < "u" && !Array.isArray(t.variables))
|
|
3012
3014
|
throw new Error("Cannot create query with given variable type, array expected");
|
|
3013
3015
|
const e = t, n = t.query.reduce((r, i, o) => (r.push({
|
|
3014
|
-
query:
|
|
3016
|
+
query: qi(i),
|
|
3015
3017
|
variables: e.variables ? e.jsonSerializer.stringify(e.variables[o]) : void 0
|
|
3016
3018
|
}), r), []);
|
|
3017
3019
|
return `query=${encodeURIComponent(e.jsonSerializer.stringify(n))}`;
|
|
@@ -3023,7 +3025,7 @@ const hn = /* @__PURE__ */ $n(En), xc = /* @__PURE__ */ Pu({
|
|
|
3023
3025
|
query: i,
|
|
3024
3026
|
variables: o,
|
|
3025
3027
|
operationName: a,
|
|
3026
|
-
jsonSerializer: (n = c.jsonSerializer) != null ? n :
|
|
3028
|
+
jsonSerializer: (n = c.jsonSerializer) != null ? n : mi
|
|
3027
3029
|
});
|
|
3028
3030
|
const m = x({
|
|
3029
3031
|
method: t,
|
|
@@ -3118,7 +3120,7 @@ let Lc = class {
|
|
|
3118
3120
|
};
|
|
3119
3121
|
const Jn = (t) => pt(void 0, null, function* () {
|
|
3120
3122
|
var e, n;
|
|
3121
|
-
const { query: r, variables: i, fetchOptions: o } = t, a = Cc(Tc((e = t.method) != null ? e : "post")), u = Array.isArray(t.query), c = yield a(t), s = yield Ic(c, (n = o.jsonSerializer) != null ? n :
|
|
3123
|
+
const { query: r, variables: i, fetchOptions: o } = t, a = Cc(Tc((e = t.method) != null ? e : "post")), u = Array.isArray(t.query), c = yield a(t), s = yield Ic(c, (n = o.jsonSerializer) != null ? n : mi), l = Array.isArray(s) ? !s.some(({ data: f }) => !f) : !!s.data, p = Array.isArray(s) || !s.errors || Array.isArray(s.errors) && !s.errors.length || o.errorPolicy === "all" || o.errorPolicy === "ignore";
|
|
3122
3124
|
if (c.ok && p && l) {
|
|
3123
3125
|
const f = s, m = Nt(f, ["errors"]), v = o.errorPolicy === "ignore" ? m : s;
|
|
3124
3126
|
return st(x({}, u ? { data: v } : v), {
|
|
@@ -3129,14 +3131,14 @@ const Jn = (t) => pt(void 0, null, function* () {
|
|
|
3129
3131
|
const f = typeof s == "string" ? {
|
|
3130
3132
|
error: s
|
|
3131
3133
|
} : s;
|
|
3132
|
-
throw new
|
|
3134
|
+
throw new Ia(
|
|
3133
3135
|
// @ts-expect-error TODO
|
|
3134
3136
|
st(x({}, f), { status: c.status, headers: c.headers }),
|
|
3135
3137
|
{ query: r, variables: i }
|
|
3136
3138
|
);
|
|
3137
3139
|
}
|
|
3138
3140
|
}), Rc = (t, e, n, r) => {
|
|
3139
|
-
const i = r ??
|
|
3141
|
+
const i = r ?? mi;
|
|
3140
3142
|
if (!Array.isArray(t))
|
|
3141
3143
|
return i.stringify({ query: t, variables: e, operationName: n });
|
|
3142
3144
|
if (typeof e < "u" && !Array.isArray(e))
|
|
@@ -3149,7 +3151,7 @@ const Jn = (t) => pt(void 0, null, function* () {
|
|
|
3149
3151
|
i.toLowerCase() === "content-type" && (n = r);
|
|
3150
3152
|
}), n && (n.toLowerCase().startsWith("application/json") || n.toLowerCase().startsWith("application/graphql+json") || n.toLowerCase().startsWith("application/graphql-response+json")) ? e.parse(yield t.text()) : t.text();
|
|
3151
3153
|
}), Qn = (t) => typeof t == "function" ? t() : t;
|
|
3152
|
-
var
|
|
3154
|
+
var Vr = { exports: {} };
|
|
3153
3155
|
(function(t, e) {
|
|
3154
3156
|
e = t.exports = n, e.getSerialize = r;
|
|
3155
3157
|
function n(i, o, a, u) {
|
|
@@ -3167,8 +3169,8 @@ var Fr = { exports: {} };
|
|
|
3167
3169
|
return i == null ? s : i.call(this, c, s);
|
|
3168
3170
|
};
|
|
3169
3171
|
}
|
|
3170
|
-
})(
|
|
3171
|
-
var Pc =
|
|
3172
|
+
})(Vr, Vr.exports);
|
|
3173
|
+
var Pc = Vr.exports;
|
|
3172
3174
|
const Ct = /* @__PURE__ */ $n(Pc);
|
|
3173
3175
|
var Tn = function() {
|
|
3174
3176
|
return Tn = Object.assign || function(t) {
|
|
@@ -3178,21 +3180,21 @@ var Tn = function() {
|
|
|
3178
3180
|
}
|
|
3179
3181
|
return t;
|
|
3180
3182
|
}, Tn.apply(this, arguments);
|
|
3181
|
-
}, dn = /* @__PURE__ */ new Map(),
|
|
3182
|
-
function
|
|
3183
|
+
}, dn = /* @__PURE__ */ new Map(), Hr = /* @__PURE__ */ new Map(), Pa = !0, wn = !1;
|
|
3184
|
+
function ka(t) {
|
|
3183
3185
|
return t.replace(/[\s,]+/g, " ").trim();
|
|
3184
3186
|
}
|
|
3185
3187
|
function kc(t) {
|
|
3186
|
-
return
|
|
3188
|
+
return ka(t.source.body.substring(t.start, t.end));
|
|
3187
3189
|
}
|
|
3188
3190
|
function Mc(t) {
|
|
3189
3191
|
var e = /* @__PURE__ */ new Set(), n = [];
|
|
3190
3192
|
return t.definitions.forEach(function(r) {
|
|
3191
3193
|
if (r.kind === "FragmentDefinition") {
|
|
3192
|
-
var i = r.name.value, o = kc(r.loc), a =
|
|
3193
|
-
a && !a.has(o) ?
|
|
3194
|
+
var i = r.name.value, o = kc(r.loc), a = Hr.get(i);
|
|
3195
|
+
a && !a.has(o) ? Pa && console.warn("Warning: fragment with name " + i + ` already exists.
|
|
3194
3196
|
graphql-tag enforces all fragment names across your application to be unique; read more about
|
|
3195
|
-
this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`) : a ||
|
|
3197
|
+
this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`) : a || Hr.set(i, a = /* @__PURE__ */ new Set()), a.add(o), e.has(o) || (e.add(o), n.push(r));
|
|
3196
3198
|
} else
|
|
3197
3199
|
n.push(r);
|
|
3198
3200
|
}), Tn(Tn({}, t), { definitions: n });
|
|
@@ -3209,9 +3211,9 @@ function Dc(t) {
|
|
|
3209
3211
|
return n && (delete n.startToken, delete n.endToken), t;
|
|
3210
3212
|
}
|
|
3211
3213
|
function Uc(t) {
|
|
3212
|
-
var e =
|
|
3214
|
+
var e = ka(t);
|
|
3213
3215
|
if (!dn.has(e)) {
|
|
3214
|
-
var n =
|
|
3216
|
+
var n = vi(t, {
|
|
3215
3217
|
experimentalFragmentVariables: wn,
|
|
3216
3218
|
allowLegacyFragmentVariables: wn
|
|
3217
3219
|
});
|
|
@@ -3231,10 +3233,10 @@ function Z(t) {
|
|
|
3231
3233
|
}), Uc(r);
|
|
3232
3234
|
}
|
|
3233
3235
|
function $c() {
|
|
3234
|
-
dn.clear(),
|
|
3236
|
+
dn.clear(), Hr.clear();
|
|
3235
3237
|
}
|
|
3236
3238
|
function jc() {
|
|
3237
|
-
|
|
3239
|
+
Pa = !1;
|
|
3238
3240
|
}
|
|
3239
3241
|
function Bc() {
|
|
3240
3242
|
wn = !0;
|
|
@@ -3253,7 +3255,7 @@ var bt = {
|
|
|
3253
3255
|
t.gql = bt.gql, t.resetCaches = bt.resetCaches, t.disableFragmentWarnings = bt.disableFragmentWarnings, t.enableExperimentalFragmentVariables = bt.enableExperimentalFragmentVariables, t.disableExperimentalFragmentVariables = bt.disableExperimentalFragmentVariables;
|
|
3254
3256
|
})(Z || (Z = {}));
|
|
3255
3257
|
Z.default = Z;
|
|
3256
|
-
const
|
|
3258
|
+
const Ma = Z`
|
|
3257
3259
|
fragment MatchParts on MatchConfig {
|
|
3258
3260
|
regexValue
|
|
3259
3261
|
matchValue
|
|
@@ -3425,7 +3427,7 @@ const ka = Z`
|
|
|
3425
3427
|
}
|
|
3426
3428
|
}
|
|
3427
3429
|
}
|
|
3428
|
-
${
|
|
3430
|
+
${Ma}
|
|
3429
3431
|
`, Wc = Z`
|
|
3430
3432
|
query Ignore($id: ID!) {
|
|
3431
3433
|
ignore(id: $id)
|
|
@@ -3479,7 +3481,7 @@ const ka = Z`
|
|
|
3479
3481
|
}
|
|
3480
3482
|
}
|
|
3481
3483
|
}
|
|
3482
|
-
${
|
|
3484
|
+
${Ma}
|
|
3483
3485
|
`, Jc = (t, e, n, r) => t();
|
|
3484
3486
|
function Qc(t, e = Jc) {
|
|
3485
3487
|
return {
|
|
@@ -3648,19 +3650,19 @@ function tl(t) {
|
|
|
3648
3650
|
}
|
|
3649
3651
|
return e;
|
|
3650
3652
|
}
|
|
3651
|
-
function
|
|
3653
|
+
function Gr(t) {
|
|
3652
3654
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
3653
3655
|
}
|
|
3654
|
-
function
|
|
3656
|
+
function Da(t, e) {
|
|
3655
3657
|
if (e === 0)
|
|
3656
3658
|
return !0;
|
|
3657
3659
|
const n = Object.keys(t);
|
|
3658
3660
|
for (const r of n)
|
|
3659
|
-
if (
|
|
3661
|
+
if (Gr(t[r]) && Da(t[r], e - 1))
|
|
3660
3662
|
return !0;
|
|
3661
3663
|
return !1;
|
|
3662
3664
|
}
|
|
3663
|
-
function
|
|
3665
|
+
function zr(t, e) {
|
|
3664
3666
|
const n = {
|
|
3665
3667
|
numOfKeysLimit: 50,
|
|
3666
3668
|
depthOfLimit: 4
|
|
@@ -3695,14 +3697,14 @@ function Gr(t, e) {
|
|
|
3695
3697
|
return c;
|
|
3696
3698
|
});
|
|
3697
3699
|
function o(u) {
|
|
3698
|
-
return
|
|
3700
|
+
return Gr(u) && Object.keys(u).length > n.numOfKeysLimit || typeof u == "function" ? !0 : u instanceof Event && u.isTrusted === !1 ? Object.keys(u).length === 1 : !!(Gr(u) && Da(u, n.depthOfLimit));
|
|
3699
3701
|
}
|
|
3700
3702
|
function a(u) {
|
|
3701
3703
|
let c = u.toString();
|
|
3702
3704
|
return n.stringLengthLimit && c.length > n.stringLengthLimit && (c = `${c.slice(0, n.stringLengthLimit)}...`), c;
|
|
3703
3705
|
}
|
|
3704
3706
|
}
|
|
3705
|
-
const Zn = "exception.message", nl = "exception.stacktrace", er = "exception.type", rl = "service.name", il = "telemetry.sdk.name", ol = "telemetry.sdk.version", al = "url.full", sl = "url.path", ul = "url.query", cl = "user_agent.original",
|
|
3707
|
+
const Zn = "exception.message", nl = "exception.stacktrace", er = "exception.type", rl = "service.name", il = "telemetry.sdk.name", ol = "telemetry.sdk.version", al = "url.full", sl = "url.path", ul = "url.query", cl = "user_agent.original", gi = 15 * 60 * 1e3;
|
|
3706
3708
|
/*! js-cookie v3.0.5 | MIT */
|
|
3707
3709
|
function Jt(t) {
|
|
3708
3710
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -3723,7 +3725,7 @@ var ll = {
|
|
|
3723
3725
|
);
|
|
3724
3726
|
}
|
|
3725
3727
|
};
|
|
3726
|
-
function
|
|
3728
|
+
function qr(t, e) {
|
|
3727
3729
|
function n(i, o, a) {
|
|
3728
3730
|
if (typeof document < "u") {
|
|
3729
3731
|
a = Jt({}, e, a), typeof a.expires == "number" && (a.expires = new Date(Date.now() + a.expires * 864e5)), a.expires && (a.expires = a.expires.toUTCString()), i = encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
@@ -3761,10 +3763,10 @@ function zr(t, e) {
|
|
|
3761
3763
|
);
|
|
3762
3764
|
},
|
|
3763
3765
|
withAttributes: function(i) {
|
|
3764
|
-
return
|
|
3766
|
+
return qr(this.converter, Jt({}, this.attributes, i));
|
|
3765
3767
|
},
|
|
3766
3768
|
withConverter: function(i) {
|
|
3767
|
-
return
|
|
3769
|
+
return qr(Jt({}, this.converter, i), this.attributes);
|
|
3768
3770
|
}
|
|
3769
3771
|
},
|
|
3770
3772
|
{
|
|
@@ -3773,9 +3775,8 @@ function zr(t, e) {
|
|
|
3773
3775
|
}
|
|
3774
3776
|
);
|
|
3775
3777
|
}
|
|
3776
|
-
var tr =
|
|
3777
|
-
let
|
|
3778
|
-
class pl {
|
|
3778
|
+
var tr = qr(ll, { path: "/" });
|
|
3779
|
+
let Xr = "localStorage", Kr = !0, pl = class {
|
|
3779
3780
|
constructor() {
|
|
3780
3781
|
Mt(this, "storage", {});
|
|
3781
3782
|
}
|
|
@@ -3796,20 +3797,19 @@ class pl {
|
|
|
3796
3797
|
removeItem(e) {
|
|
3797
3798
|
delete this.storage[e];
|
|
3798
3799
|
}
|
|
3799
|
-
}
|
|
3800
|
-
let fl = class {
|
|
3800
|
+
}, fl = class {
|
|
3801
3801
|
getItem(e) {
|
|
3802
3802
|
var n;
|
|
3803
3803
|
return (n = tr.get(e)) != null ? n : "";
|
|
3804
3804
|
}
|
|
3805
3805
|
setItem(e, n) {
|
|
3806
|
-
if (!
|
|
3806
|
+
if (!Kr)
|
|
3807
3807
|
return;
|
|
3808
3808
|
const r = /* @__PURE__ */ new Date();
|
|
3809
|
-
r.setTime(r.getTime() +
|
|
3809
|
+
r.setTime(r.getTime() + gi), tr.set(e, n, { expires: r });
|
|
3810
3810
|
}
|
|
3811
3811
|
removeItem(e) {
|
|
3812
|
-
|
|
3812
|
+
Kr && tr.remove(e);
|
|
3813
3813
|
}
|
|
3814
3814
|
};
|
|
3815
3815
|
const ut = new pl(), Sn = new fl(), Ut = () => {
|
|
@@ -3817,7 +3817,7 @@ const ut = new pl(), Sn = new fl(), Ut = () => {
|
|
|
3817
3817
|
if (typeof window > "u")
|
|
3818
3818
|
return ut;
|
|
3819
3819
|
try {
|
|
3820
|
-
switch (
|
|
3820
|
+
switch (Xr) {
|
|
3821
3821
|
case "localStorage":
|
|
3822
3822
|
t = window.localStorage;
|
|
3823
3823
|
break;
|
|
@@ -3829,7 +3829,7 @@ const ut = new pl(), Sn = new fl(), Ut = () => {
|
|
|
3829
3829
|
"storage",
|
|
3830
3830
|
"getPersistentStorage",
|
|
3831
3831
|
"debug",
|
|
3832
|
-
`persistent storage was not found for mode ${
|
|
3832
|
+
`persistent storage was not found for mode ${Xr}; using global storage`
|
|
3833
3833
|
), t = ut);
|
|
3834
3834
|
} catch (e) {
|
|
3835
3835
|
Ee(
|
|
@@ -3842,10 +3842,10 @@ const ut = new pl(), Sn = new fl(), Ut = () => {
|
|
|
3842
3842
|
}
|
|
3843
3843
|
return t;
|
|
3844
3844
|
}, hl = (t) => {
|
|
3845
|
-
qr = t;
|
|
3846
|
-
}, qi = (t) => {
|
|
3847
3845
|
Xr = t;
|
|
3848
|
-
},
|
|
3846
|
+
}, Xi = (t) => {
|
|
3847
|
+
Kr = t;
|
|
3848
|
+
}, _i = (t) => {
|
|
3849
3849
|
try {
|
|
3850
3850
|
return Ut().getItem(t);
|
|
3851
3851
|
} catch (e) {
|
|
@@ -3857,7 +3857,7 @@ const ut = new pl(), Sn = new fl(), Ut = () => {
|
|
|
3857
3857
|
e
|
|
3858
3858
|
), ut.getItem(t);
|
|
3859
3859
|
}
|
|
3860
|
-
},
|
|
3860
|
+
}, Ua = (t, e) => {
|
|
3861
3861
|
Sn.setItem(t, e);
|
|
3862
3862
|
try {
|
|
3863
3863
|
return Ut().setItem(t, e);
|
|
@@ -3870,7 +3870,7 @@ const ut = new pl(), Sn = new fl(), Ut = () => {
|
|
|
3870
3870
|
n
|
|
3871
3871
|
), ut.setItem(t, e);
|
|
3872
3872
|
}
|
|
3873
|
-
},
|
|
3873
|
+
}, $a = (t) => {
|
|
3874
3874
|
Sn.removeItem(t);
|
|
3875
3875
|
try {
|
|
3876
3876
|
return Ut().removeItem(t);
|
|
@@ -3887,37 +3887,37 @@ const ut = new pl(), Sn = new fl(), Ut = () => {
|
|
|
3887
3887
|
var mt = /* @__PURE__ */ ((t) => (t.SEGMENT_LAST_SENT_HASH_KEY = "HIGHLIGHT_SEGMENT_LAST_SENT_HASH_KEY", t.SESSION_ID = "sessionID", t.SESSION_DATA = "sessionData", t.USER_IDENTIFIER = "highlightIdentifier", t.USER_OBJECT = "highlightUserObject", t))(mt || {});
|
|
3888
3888
|
const jn = (t) => `${mt.SESSION_DATA}_${t}`, Ae = () => {
|
|
3889
3889
|
var t;
|
|
3890
|
-
return typeof globalThis < "u" && (t = globalThis.persistentSessionSecureID) != null && t.length ? globalThis.persistentSessionSecureID :
|
|
3890
|
+
return typeof globalThis < "u" && (t = globalThis.persistentSessionSecureID) != null && t.length ? globalThis.persistentSessionSecureID : ja();
|
|
3891
3891
|
}, dl = (t) => {
|
|
3892
3892
|
typeof globalThis < "u" && t != null && t.length && (globalThis.persistentSessionSecureID = t);
|
|
3893
|
-
},
|
|
3893
|
+
}, ja = () => {
|
|
3894
3894
|
var t;
|
|
3895
|
-
return (t =
|
|
3896
|
-
},
|
|
3897
|
-
|
|
3895
|
+
return (t = _i(mt.SESSION_ID)) != null ? t : "";
|
|
3896
|
+
}, Ba = (t) => {
|
|
3897
|
+
Ua(mt.SESSION_ID, t);
|
|
3898
3898
|
}, vl = (t) => {
|
|
3899
3899
|
const e = jn(t);
|
|
3900
|
-
return JSON.parse(
|
|
3900
|
+
return JSON.parse(_i(e) || "{}");
|
|
3901
3901
|
}, ml = (t) => {
|
|
3902
|
-
t || (t =
|
|
3902
|
+
t || (t = ja());
|
|
3903
3903
|
let e = vl(t);
|
|
3904
|
-
if (e && e.lastPushTime && Date.now() - e.lastPushTime <
|
|
3904
|
+
if (e && e.lastPushTime && Date.now() - e.lastPushTime < gi)
|
|
3905
3905
|
return e;
|
|
3906
|
-
|
|
3907
|
-
},
|
|
3906
|
+
$a(jn(t));
|
|
3907
|
+
}, Fa = function(t) {
|
|
3908
3908
|
if (!(t != null && t.sessionSecureID)) return;
|
|
3909
3909
|
const e = t.sessionSecureID;
|
|
3910
3910
|
dl(e);
|
|
3911
3911
|
const n = jn(e);
|
|
3912
|
-
|
|
3912
|
+
Ua(n, JSON.stringify(t)), gl(n);
|
|
3913
3913
|
}, yl = function() {
|
|
3914
3914
|
const t = Sn.getItem(
|
|
3915
3915
|
mt.SESSION_ID
|
|
3916
3916
|
);
|
|
3917
|
-
|
|
3917
|
+
Ba(t);
|
|
3918
3918
|
const e = jn(t), n = Sn.getItem(e);
|
|
3919
3919
|
try {
|
|
3920
|
-
|
|
3920
|
+
Fa(JSON.parse(n));
|
|
3921
3921
|
} catch {
|
|
3922
3922
|
}
|
|
3923
3923
|
};
|
|
@@ -3928,19 +3928,19 @@ function gl(t) {
|
|
|
3928
3928
|
if (r && r.startsWith(e) && r !== t)
|
|
3929
3929
|
try {
|
|
3930
3930
|
const i = JSON.parse(
|
|
3931
|
-
|
|
3931
|
+
_i(r) || "{}"
|
|
3932
3932
|
);
|
|
3933
3933
|
i.lastPushTime === void 0 ? Ee(
|
|
3934
3934
|
"highlightSession",
|
|
3935
3935
|
"pruneSessionData",
|
|
3936
3936
|
"error",
|
|
3937
3937
|
`data for key ${r} is not session data`
|
|
3938
|
-
) : Date.now() - i.lastPushTime >=
|
|
3938
|
+
) : Date.now() - i.lastPushTime >= gi && (Ee(
|
|
3939
3939
|
"highlightSession",
|
|
3940
3940
|
"pruneSessionData",
|
|
3941
3941
|
"debug",
|
|
3942
3942
|
`removing session data for stale key ${r}`
|
|
3943
|
-
),
|
|
3943
|
+
), $a(r));
|
|
3944
3944
|
} catch (i) {
|
|
3945
3945
|
Ee(
|
|
3946
3946
|
"highlightSession",
|
|
@@ -3952,8 +3952,8 @@ function gl(t) {
|
|
|
3952
3952
|
}
|
|
3953
3953
|
}
|
|
3954
3954
|
}
|
|
3955
|
-
var
|
|
3956
|
-
const
|
|
3955
|
+
var Va = /* @__PURE__ */ ((t) => (t.BillingQuotaExceeded = "BillingQuotaExceeded", t))(Va || {});
|
|
3956
|
+
const bi = 10, Ei = 1e3, Ti = 500, _l = [Va.BillingQuotaExceeded.toString()], bl = (t) => {
|
|
3957
3957
|
var e;
|
|
3958
3958
|
return ((e = t.response.errors) == null ? void 0 : e.find(
|
|
3959
3959
|
(n) => _l.includes(n.message)
|
|
@@ -3963,13 +3963,13 @@ const _i = 10, bi = 1e3, Ei = 500, _l = [Fa.BillingQuotaExceeded.toString()], bl
|
|
|
3963
3963
|
try {
|
|
3964
3964
|
return yield e();
|
|
3965
3965
|
} catch (a) {
|
|
3966
|
-
if (a instanceof
|
|
3966
|
+
if (a instanceof Ia && !bl(a))
|
|
3967
3967
|
throw a;
|
|
3968
|
-
if (o <
|
|
3968
|
+
if (o < bi)
|
|
3969
3969
|
return yield new Promise(
|
|
3970
3970
|
(u) => setTimeout(
|
|
3971
3971
|
u,
|
|
3972
|
-
|
|
3972
|
+
Ei + Ti * Math.pow(2, o)
|
|
3973
3973
|
)
|
|
3974
3974
|
), yield t(
|
|
3975
3975
|
e,
|
|
@@ -3984,7 +3984,7 @@ const _i = 10, bi = 1e3, Ei = 500, _l = [Fa.BillingQuotaExceeded.toString()], bl
|
|
|
3984
3984
|
}
|
|
3985
3985
|
});
|
|
3986
3986
|
return t;
|
|
3987
|
-
}, J = "feature_flag",
|
|
3987
|
+
}, J = "feature_flag", Ha = "launchdarkly", Tl = "evaluation", wl = `${J}.set.id`, Sl = `${J}.key`, Ol = `${J}.contextKeys`, Al = `${J}.context.id`, xl = `${J}.result.value`, Nl = `${J}.provider.name`, Ki = {
|
|
3988
3988
|
kind: `${J}.result.reason.kind`,
|
|
3989
3989
|
errorKind: `${J}.result.reason.errorKind`,
|
|
3990
3990
|
ruleIndex: `${J}.result.reason.ruleIndex`,
|
|
@@ -3992,27 +3992,24 @@ const _i = 10, bi = 1e3, Ei = 500, _l = [Fa.BillingQuotaExceeded.toString()], bl
|
|
|
3992
3992
|
prerequisiteKey: `${J}.result.reason.prerequisiteKey`,
|
|
3993
3993
|
inExperiment: `${J}.result.reason.inExperiment`,
|
|
3994
3994
|
bigSegmentsStatus: `${J}.result.reason.bigSegmentsStatus`
|
|
3995
|
-
}, Cl = `${J}.result.variationIndex`, Ll = `${
|
|
3996
|
-
function
|
|
3995
|
+
}, Cl = `${J}.result.variationIndex`, Ll = `${Ha}.application.id`, Rl = `${Ha}.application.version`, Il = "$ld:telemetry:session:init", Pl = "$ld:telemetry:error", Wi = "$ld:telemetry:track", kl = "$ld:telemetry:metric", Ga = "document_load", Ml = "result.status";
|
|
3996
|
+
function Yi(t) {
|
|
3997
3997
|
return t.includes("%") || t.includes(":") ? t.replace(/%/g, "%25").replace(/:/g, "%3A") : t;
|
|
3998
3998
|
}
|
|
3999
3999
|
function za(t) {
|
|
4000
4000
|
return t.kind === "multi";
|
|
4001
4001
|
}
|
|
4002
|
-
function
|
|
4003
|
-
|
|
4004
|
-
if (t.member) {
|
|
4005
|
-
const e = t.member;
|
|
4006
|
-
return e.email ? e.email : e.key;
|
|
4007
|
-
}
|
|
4008
|
-
return Object.keys(t).sort().filter((e) => e !== "kind").map((e) => `${e}:${Ga(t[e].key)}`).join(":");
|
|
4009
|
-
}
|
|
4010
|
-
return t.key;
|
|
4002
|
+
function nr(t) {
|
|
4003
|
+
return za(t) ? Object.keys(t).sort().filter((e) => e !== "kind").map((e) => `${e}:${Yi(t[e].key)}`).join(":") : "kind" in t && t.kind === "user" ? t.key : "kind" in t ? `${t.kind}:${Yi(t.key)}` : t.key;
|
|
4011
4004
|
}
|
|
4012
|
-
function
|
|
4005
|
+
function Ji(t) {
|
|
4013
4006
|
return za(t) ? Object.keys(t).sort().filter((e) => e !== "kind").map((e) => ({
|
|
4014
|
-
[e]:
|
|
4015
|
-
})).reduce((e, n) => x(x({}, e), n), {}) : {
|
|
4007
|
+
[e]: t[e].key
|
|
4008
|
+
})).reduce((e, n) => x(x({}, e), n), {}) : "kind" in t ? {
|
|
4009
|
+
[t.kind]: t.key
|
|
4010
|
+
} : {
|
|
4011
|
+
user: t.key
|
|
4012
|
+
};
|
|
4016
4013
|
}
|
|
4017
4014
|
class Dl {
|
|
4018
4015
|
constructor(e, n) {
|
|
@@ -4028,7 +4025,7 @@ class Dl {
|
|
|
4028
4025
|
}
|
|
4029
4026
|
recordGauge(e, n) {
|
|
4030
4027
|
var r;
|
|
4031
|
-
n.category !== ne.WebVital && n.name !==
|
|
4028
|
+
n.category !== ne.WebVital && n.name !== Ga || n.name !== "Jank" && this.client.track(
|
|
4032
4029
|
`${kl}:${n.name.toLowerCase()}`,
|
|
4033
4030
|
st(x({}, (r = n.tags) == null ? void 0 : r.map((i) => ({ [i.name]: i.value })).reduce((i, o) => x(x({}, i), o), {})), {
|
|
4034
4031
|
category: n.category,
|
|
@@ -4048,14 +4045,14 @@ class Dl {
|
|
|
4048
4045
|
track(e, n) {
|
|
4049
4046
|
const r = n.event;
|
|
4050
4047
|
this.client.track(
|
|
4051
|
-
r ? `${
|
|
4048
|
+
r ? `${Wi}:${r}` : Wi,
|
|
4052
4049
|
st(x({}, n), {
|
|
4053
4050
|
sessionID: e
|
|
4054
4051
|
})
|
|
4055
4052
|
);
|
|
4056
4053
|
}
|
|
4057
4054
|
}
|
|
4058
|
-
class Ul extends
|
|
4055
|
+
class Ul extends _a {
|
|
4059
4056
|
constructor(e, n) {
|
|
4060
4057
|
super(), Mt(this, "client"), this.client = new Dl(e, n);
|
|
4061
4058
|
}
|
|
@@ -4090,7 +4087,7 @@ class Ul extends ga {
|
|
|
4090
4087
|
return this._bufferCall("track", [e, n]);
|
|
4091
4088
|
}
|
|
4092
4089
|
}
|
|
4093
|
-
const $l = "9.
|
|
4090
|
+
const $l = "9.20.0", jl = {
|
|
4094
4091
|
version: $l
|
|
4095
4092
|
}, Bl = jl.version;
|
|
4096
4093
|
function Fl(t) {
|
|
@@ -4177,18 +4174,18 @@ var qa = { exports: {} };
|
|
|
4177
4174
|
})();
|
|
4178
4175
|
})(qa);
|
|
4179
4176
|
var Hl = qa.exports;
|
|
4180
|
-
const Gl = /* @__PURE__ */ $n(Hl),
|
|
4177
|
+
const Gl = /* @__PURE__ */ $n(Hl), rr = 28, Qe = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", zl = 2246822507, Qi = (t) => {
|
|
4181
4178
|
var e, n = "";
|
|
4182
4179
|
if (t) {
|
|
4183
4180
|
const r = Gl(t).result();
|
|
4184
|
-
for (let i = 0; i <
|
|
4181
|
+
for (let i = 0; i < rr; i++) {
|
|
4185
4182
|
const o = ((r ^ i * zl) >>> 0) % Qe.length;
|
|
4186
4183
|
n += Qe.charAt(o);
|
|
4187
4184
|
}
|
|
4188
4185
|
} else {
|
|
4189
|
-
const r = typeof window < "u" && ((e = window.crypto) == null ? void 0 : e.getRandomValues), i = new Uint32Array(
|
|
4186
|
+
const r = typeof window < "u" && ((e = window.crypto) == null ? void 0 : e.getRandomValues), i = new Uint32Array(rr);
|
|
4190
4187
|
r && window.crypto.getRandomValues(i);
|
|
4191
|
-
for (let o = 0; o <
|
|
4188
|
+
for (let o = 0; o < rr; o++)
|
|
4192
4189
|
r ? n += Qe.charAt(
|
|
4193
4190
|
i[o] % Qe.length
|
|
4194
4191
|
) : n += Qe.charAt(
|
|
@@ -4201,7 +4198,7 @@ class ql {
|
|
|
4201
4198
|
constructor(e) {
|
|
4202
4199
|
Mt(this, "sessionSecureID");
|
|
4203
4200
|
try {
|
|
4204
|
-
e != null && e.storageMode && hl(e?.storageMode),
|
|
4201
|
+
e != null && e.storageMode && hl(e?.storageMode), Xi(!!(e != null && e.sessionCookie)), e != null && e.sessionCookie ? yl() : Xi(!1);
|
|
4205
4202
|
} catch (n) {
|
|
4206
4203
|
Ce(
|
|
4207
4204
|
"Error initializing @launchdarkly observability plugin",
|
|
@@ -4216,9 +4213,9 @@ class ql {
|
|
|
4216
4213
|
let i = ml(
|
|
4217
4214
|
r
|
|
4218
4215
|
);
|
|
4219
|
-
i != null && i.sessionSecureID ? this.sessionSecureID = i.sessionSecureID : (n != null && n.sessionKey ? this.sessionSecureID =
|
|
4216
|
+
i != null && i.sessionSecureID ? this.sessionSecureID = i.sessionSecureID : (n != null && n.sessionKey ? this.sessionSecureID = Qi(
|
|
4220
4217
|
`${e}-${n.sessionKey}`
|
|
4221
|
-
) : this.sessionSecureID =
|
|
4218
|
+
) : this.sessionSecureID = Qi(), Ba(this.sessionSecureID), Fa({
|
|
4222
4219
|
sessionSecureID: this.sessionSecureID,
|
|
4223
4220
|
sessionKey: n?.sessionKey,
|
|
4224
4221
|
projectID: 0,
|
|
@@ -4234,7 +4231,7 @@ class ql {
|
|
|
4234
4231
|
}
|
|
4235
4232
|
}
|
|
4236
4233
|
}
|
|
4237
|
-
class
|
|
4234
|
+
class Zi extends _a {
|
|
4238
4235
|
start() {
|
|
4239
4236
|
return this._sdk.start();
|
|
4240
4237
|
}
|
|
@@ -4281,21 +4278,21 @@ class Qi extends ga {
|
|
|
4281
4278
|
}
|
|
4282
4279
|
}
|
|
4283
4280
|
let ot;
|
|
4284
|
-
typeof globalThis < "u" ? globalThis.LDObserve ? ot = globalThis.LDObserve : (ot = new
|
|
4281
|
+
typeof globalThis < "u" ? globalThis.LDObserve ? ot = globalThis.LDObserve : (ot = new Zi(), globalThis.LDObserve = ot) : ot = new Zi();
|
|
4285
4282
|
const Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4286
4283
|
__proto__: null,
|
|
4287
4284
|
get LDObserve() {
|
|
4288
4285
|
return ot;
|
|
4289
4286
|
}
|
|
4290
4287
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4291
|
-
var Kl = Object.defineProperty, Wl = Object.defineProperties, Yl = Object.getOwnPropertyDescriptors,
|
|
4288
|
+
var Kl = Object.defineProperty, Wl = Object.defineProperties, Yl = Object.getOwnPropertyDescriptors, eo = Object.getOwnPropertySymbols, Jl = Object.prototype.hasOwnProperty, Ql = Object.prototype.propertyIsEnumerable, Wr = (t, e, n) => e in t ? Kl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, P = (t, e) => {
|
|
4292
4289
|
for (var n in e || (e = {}))
|
|
4293
|
-
Jl.call(e, n) &&
|
|
4294
|
-
if (
|
|
4295
|
-
for (var n of
|
|
4296
|
-
Ql.call(e, n) &&
|
|
4290
|
+
Jl.call(e, n) && Wr(t, n, e[n]);
|
|
4291
|
+
if (eo)
|
|
4292
|
+
for (var n of eo(e))
|
|
4293
|
+
Ql.call(e, n) && Wr(t, n, e[n]);
|
|
4297
4294
|
return t;
|
|
4298
|
-
}, ee = (t, e) => Wl(t, Yl(e)), k = (t, e, n) =>
|
|
4295
|
+
}, ee = (t, e) => Wl(t, Yl(e)), k = (t, e, n) => Wr(t, typeof e != "symbol" ? e + "" : e, n), ct = (t, e, n) => new Promise((r, i) => {
|
|
4299
4296
|
var o = (c) => {
|
|
4300
4297
|
try {
|
|
4301
4298
|
u(n.next(c));
|
|
@@ -4310,12 +4307,12 @@ var Kl = Object.defineProperty, Wl = Object.defineProperties, Yl = Object.getOwn
|
|
|
4310
4307
|
}
|
|
4311
4308
|
}, u = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(o, a);
|
|
4312
4309
|
u((n = n.apply(t, e)).next());
|
|
4313
|
-
}), Xa = { exports: {} },
|
|
4310
|
+
}), Xa = { exports: {} }, to = { exports: {} }, no;
|
|
4314
4311
|
function Zl() {
|
|
4315
|
-
return
|
|
4312
|
+
return no || (no = 1, function(t, e) {
|
|
4316
4313
|
(function(n, r) {
|
|
4317
4314
|
t.exports = r();
|
|
4318
|
-
})(
|
|
4315
|
+
})(yi, function() {
|
|
4319
4316
|
function n(y) {
|
|
4320
4317
|
return !isNaN(parseFloat(y)) && isFinite(y);
|
|
4321
4318
|
}
|
|
@@ -4391,12 +4388,12 @@ function Zl() {
|
|
|
4391
4388
|
}(u[v]);
|
|
4392
4389
|
return p;
|
|
4393
4390
|
});
|
|
4394
|
-
}(
|
|
4391
|
+
}(to)), to.exports;
|
|
4395
4392
|
}
|
|
4396
4393
|
(function(t, e) {
|
|
4397
4394
|
(function(n, r) {
|
|
4398
4395
|
t.exports = r(Zl());
|
|
4399
|
-
})(
|
|
4396
|
+
})(yi, function(n) {
|
|
4400
4397
|
var r = /(^|@)\S+:\d+/, i = /^\s*at .*(\S+:\d+|\(native\))/m, o = /^(eval@)?(\[native code])?$/;
|
|
4401
4398
|
return {
|
|
4402
4399
|
/**
|
|
@@ -4517,13 +4514,13 @@ function Zl() {
|
|
|
4517
4514
|
});
|
|
4518
4515
|
})(Xa);
|
|
4519
4516
|
var ep = Xa.exports;
|
|
4520
|
-
const
|
|
4517
|
+
const ro = /* @__PURE__ */ $n(ep);
|
|
4521
4518
|
function Bn(t) {
|
|
4522
4519
|
try {
|
|
4523
|
-
return
|
|
4520
|
+
return ro.parse(t);
|
|
4524
4521
|
} catch (e) {
|
|
4525
4522
|
try {
|
|
4526
|
-
return
|
|
4523
|
+
return ro.parse(new Error());
|
|
4527
4524
|
} catch (n) {
|
|
4528
4525
|
return console.warn("Highlight Warning: failed to parse error", {
|
|
4529
4526
|
originalError: e,
|
|
@@ -4543,7 +4540,7 @@ function tp(t, e) {
|
|
|
4543
4540
|
let l = [];
|
|
4544
4541
|
s && (l = Bn(s));
|
|
4545
4542
|
const p = [
|
|
4546
|
-
|
|
4543
|
+
zr(c, e.stringifyOptions)
|
|
4547
4544
|
];
|
|
4548
4545
|
t({
|
|
4549
4546
|
type: "Error",
|
|
@@ -4575,13 +4572,13 @@ function tp(t, e) {
|
|
|
4575
4572
|
}
|
|
4576
4573
|
function np(t, e, ...n) {
|
|
4577
4574
|
const r = Bn(new Error()), i = e.serializeConsoleAttributes ? n.map(
|
|
4578
|
-
(o) => typeof o == "object" ?
|
|
4575
|
+
(o) => typeof o == "object" ? zr(o, e.stringifyOptions) : o
|
|
4579
4576
|
) : n.filter((o) => typeof o != "object").map((o) => `${o}`);
|
|
4580
4577
|
return {
|
|
4581
4578
|
type: t,
|
|
4582
4579
|
trace: r,
|
|
4583
4580
|
value: i,
|
|
4584
|
-
attributes:
|
|
4581
|
+
attributes: zr(
|
|
4585
4582
|
n.filter((o) => typeof o == "object").reduce((o, a) => P(P({}, o), a), {}),
|
|
4586
4583
|
e.stringifyOptions
|
|
4587
4584
|
),
|
|
@@ -4594,10 +4591,10 @@ const rp = {
|
|
|
4594
4591
|
}, ip = {
|
|
4595
4592
|
start: 4,
|
|
4596
4593
|
end: 5
|
|
4597
|
-
},
|
|
4594
|
+
}, ir = {
|
|
4598
4595
|
start: 6,
|
|
4599
4596
|
end: 7
|
|
4600
|
-
},
|
|
4597
|
+
}, or = {
|
|
4601
4598
|
start: 8,
|
|
4602
4599
|
end: 8
|
|
4603
4600
|
}, op = {
|
|
@@ -4624,7 +4621,7 @@ function Ze(t, e) {
|
|
|
4624
4621
|
return n;
|
|
4625
4622
|
}
|
|
4626
4623
|
function up(t) {
|
|
4627
|
-
return t[
|
|
4624
|
+
return t[or.start] = (t[or.start] | 128) & 191, t[ir.start] = t[ir.start] & 15 | 64, `${Ze(t, rp)}-${Ze(t, ip)}-${Ze(t, ir)}-${Ze(t, or)}${Ze(t, op)}-${Ze(t, ap)}`;
|
|
4628
4625
|
}
|
|
4629
4626
|
function cp() {
|
|
4630
4627
|
const t = sp();
|
|
@@ -4633,7 +4630,7 @@ function cp() {
|
|
|
4633
4630
|
function Ka() {
|
|
4634
4631
|
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : cp();
|
|
4635
4632
|
}
|
|
4636
|
-
function
|
|
4633
|
+
function ar(t, e, n, r) {
|
|
4637
4634
|
var i, o, a, u;
|
|
4638
4635
|
let c = r ?? e, s = Bn(c), l = {};
|
|
4639
4636
|
e instanceof Error && (e = e.message, e.cause && (l = { "exception.cause": e.cause }));
|
|
@@ -4656,16 +4653,16 @@ const lp = (t, { enablePromisePatch: e }) => {
|
|
|
4656
4653
|
if (typeof window > "u") return () => {
|
|
4657
4654
|
};
|
|
4658
4655
|
const n = window.onerror = (a, u, c, s, l) => {
|
|
4659
|
-
|
|
4656
|
+
ar(t, a, u, l);
|
|
4660
4657
|
}, r = window.onunhandledrejection = (a) => {
|
|
4661
4658
|
if (a.reason) {
|
|
4662
4659
|
const u = a.promise;
|
|
4663
|
-
u.getStack ?
|
|
4660
|
+
u.getStack ? ar(
|
|
4664
4661
|
t,
|
|
4665
4662
|
a.reason,
|
|
4666
4663
|
a.type,
|
|
4667
4664
|
u.getStack()
|
|
4668
|
-
) :
|
|
4665
|
+
) : ar(t, a.reason, a.type);
|
|
4669
4666
|
}
|
|
4670
4667
|
}, i = window.Promise, o = class extends i {
|
|
4671
4668
|
constructor(a) {
|
|
@@ -4711,9 +4708,9 @@ const lp = (t, { enablePromisePatch: e }) => {
|
|
|
4711
4708
|
"websocket error",
|
|
4712
4709
|
'\\"ResizeObserver loop'
|
|
4713
4710
|
];
|
|
4714
|
-
var dp = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : typeof window == "object" ? window : typeof global == "object" ? global : {}, $e = "1.9.0",
|
|
4711
|
+
var dp = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : typeof window == "object" ? window : typeof global == "object" ? global : {}, $e = "1.9.0", io = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
|
|
4715
4712
|
function vp(t) {
|
|
4716
|
-
var e = /* @__PURE__ */ new Set([t]), n = /* @__PURE__ */ new Set(), r = t.match(
|
|
4713
|
+
var e = /* @__PURE__ */ new Set([t]), n = /* @__PURE__ */ new Set(), r = t.match(io);
|
|
4717
4714
|
if (!r)
|
|
4718
4715
|
return function() {
|
|
4719
4716
|
return !1;
|
|
@@ -4739,7 +4736,7 @@ function vp(t) {
|
|
|
4739
4736
|
return !0;
|
|
4740
4737
|
if (n.has(u))
|
|
4741
4738
|
return !1;
|
|
4742
|
-
var c = u.match(
|
|
4739
|
+
var c = u.match(io);
|
|
4743
4740
|
if (!c)
|
|
4744
4741
|
return o(u);
|
|
4745
4742
|
var s = {
|
|
@@ -4991,7 +4988,7 @@ function Rp(t) {
|
|
|
4991
4988
|
}
|
|
4992
4989
|
};
|
|
4993
4990
|
}
|
|
4994
|
-
function
|
|
4991
|
+
function wi(t) {
|
|
4995
4992
|
return Symbol.for(t);
|
|
4996
4993
|
}
|
|
4997
4994
|
var Ip = (
|
|
@@ -5098,7 +5095,7 @@ var Ip = (
|
|
|
5098
5095
|
return e.prototype.record = function(n, r) {
|
|
5099
5096
|
}, e;
|
|
5100
5097
|
}(Fn)
|
|
5101
|
-
),
|
|
5098
|
+
), Si = (
|
|
5102
5099
|
/** @class */
|
|
5103
5100
|
function() {
|
|
5104
5101
|
function t() {
|
|
@@ -5115,7 +5112,7 @@ var Ip = (
|
|
|
5115
5112
|
return t !== null && t.apply(this, arguments) || this;
|
|
5116
5113
|
}
|
|
5117
5114
|
return e;
|
|
5118
|
-
}(
|
|
5115
|
+
}(Si)
|
|
5119
5116
|
), jp = (
|
|
5120
5117
|
/** @class */
|
|
5121
5118
|
function(t) {
|
|
@@ -5124,7 +5121,7 @@ var Ip = (
|
|
|
5124
5121
|
return t !== null && t.apply(this, arguments) || this;
|
|
5125
5122
|
}
|
|
5126
5123
|
return e;
|
|
5127
|
-
}(
|
|
5124
|
+
}(Si)
|
|
5128
5125
|
), Bp = (
|
|
5129
5126
|
/** @class */
|
|
5130
5127
|
function(t) {
|
|
@@ -5133,7 +5130,7 @@ var Ip = (
|
|
|
5133
5130
|
return t !== null && t.apply(this, arguments) || this;
|
|
5134
5131
|
}
|
|
5135
5132
|
return e;
|
|
5136
|
-
}(
|
|
5133
|
+
}(Si)
|
|
5137
5134
|
), Wa = new Pp(), Fp = new kp(), Vp = new Dp(), Hp = new Up(), Gp = new Mp(), zp = new $p(), qp = new jp(), Xp = new Bp();
|
|
5138
5135
|
function Kp() {
|
|
5139
5136
|
return Wa;
|
|
@@ -5213,7 +5210,7 @@ var Wp = {
|
|
|
5213
5210
|
if (arguments.length === 2) for (var r = 0, i = e.length, o; r < i; r++)
|
|
5214
5211
|
(o || !(r in e)) && (o || (o = Array.prototype.slice.call(e, 0, r)), o[r] = e[r]);
|
|
5215
5212
|
return t.concat(o || Array.prototype.slice.call(e));
|
|
5216
|
-
},
|
|
5213
|
+
}, sr = "context", nf = new Zp(), Vn = (
|
|
5217
5214
|
/** @class */
|
|
5218
5215
|
function() {
|
|
5219
5216
|
function t() {
|
|
@@ -5221,7 +5218,7 @@ var Wp = {
|
|
|
5221
5218
|
return t.getInstance = function() {
|
|
5222
5219
|
return this._instance || (this._instance = new t()), this._instance;
|
|
5223
5220
|
}, t.prototype.setGlobalContextManager = function(e) {
|
|
5224
|
-
return Gt(
|
|
5221
|
+
return Gt(sr, e, ve.instance());
|
|
5225
5222
|
}, t.prototype.active = function() {
|
|
5226
5223
|
return this._getContextManager().active();
|
|
5227
5224
|
}, t.prototype.with = function(e, n, r) {
|
|
@@ -5231,9 +5228,9 @@ var Wp = {
|
|
|
5231
5228
|
}, t.prototype.bind = function(e, n) {
|
|
5232
5229
|
return this._getContextManager().bind(e, n);
|
|
5233
5230
|
}, t.prototype._getContextManager = function() {
|
|
5234
|
-
return Fe(
|
|
5231
|
+
return Fe(sr) || nf;
|
|
5235
5232
|
}, t.prototype.disable = function() {
|
|
5236
|
-
this._getContextManager().disable(), zt(
|
|
5233
|
+
this._getContextManager().disable(), zt(sr, ve.instance());
|
|
5237
5234
|
}, t;
|
|
5238
5235
|
}()
|
|
5239
5236
|
), Te;
|
|
@@ -5272,25 +5269,25 @@ var Ya = "0000000000000000", Ja = "00000000000000000000000000000000", Qa = {
|
|
|
5272
5269
|
}, t.prototype.recordException = function(e, n) {
|
|
5273
5270
|
}, t;
|
|
5274
5271
|
}()
|
|
5275
|
-
),
|
|
5276
|
-
function
|
|
5277
|
-
return t.getValue(
|
|
5272
|
+
), Oi = wi("OpenTelemetry Context Key SPAN");
|
|
5273
|
+
function Ai(t) {
|
|
5274
|
+
return t.getValue(Oi) || void 0;
|
|
5278
5275
|
}
|
|
5279
5276
|
function rf() {
|
|
5280
|
-
return
|
|
5277
|
+
return Ai(Vn.getInstance().active());
|
|
5281
5278
|
}
|
|
5282
|
-
function
|
|
5283
|
-
return t.setValue(
|
|
5279
|
+
function xi(t, e) {
|
|
5280
|
+
return t.setValue(Oi, e);
|
|
5284
5281
|
}
|
|
5285
5282
|
function of(t) {
|
|
5286
|
-
return t.deleteValue(
|
|
5283
|
+
return t.deleteValue(Oi);
|
|
5287
5284
|
}
|
|
5288
5285
|
function af(t, e) {
|
|
5289
|
-
return
|
|
5286
|
+
return xi(t, new Lt(e));
|
|
5290
5287
|
}
|
|
5291
5288
|
function Za(t) {
|
|
5292
5289
|
var e;
|
|
5293
|
-
return (e =
|
|
5290
|
+
return (e = Ai(t)) === null || e === void 0 ? void 0 : e.spanContext();
|
|
5294
5291
|
}
|
|
5295
5292
|
var sf = /^([0-9a-f]{32})$/i, uf = /^[0-9a-f]{16}$/i;
|
|
5296
5293
|
function es(t) {
|
|
@@ -5305,13 +5302,13 @@ function Hn(t) {
|
|
|
5305
5302
|
function lf(t) {
|
|
5306
5303
|
return new Lt(t);
|
|
5307
5304
|
}
|
|
5308
|
-
var
|
|
5305
|
+
var ur = Vn.getInstance(), ts = (
|
|
5309
5306
|
/** @class */
|
|
5310
5307
|
function() {
|
|
5311
5308
|
function t() {
|
|
5312
5309
|
}
|
|
5313
5310
|
return t.prototype.startSpan = function(e, n, r) {
|
|
5314
|
-
r === void 0 && (r =
|
|
5311
|
+
r === void 0 && (r = ur.active());
|
|
5315
5312
|
var i = !!(n != null && n.root);
|
|
5316
5313
|
if (i)
|
|
5317
5314
|
return new Lt();
|
|
@@ -5321,8 +5318,8 @@ var sr = Vn.getInstance(), ts = (
|
|
|
5321
5318
|
var o, a, u;
|
|
5322
5319
|
if (!(arguments.length < 2)) {
|
|
5323
5320
|
arguments.length === 2 ? u = n : arguments.length === 3 ? (o = n, u = r) : (o = n, a = r, u = i);
|
|
5324
|
-
var c = a ??
|
|
5325
|
-
return
|
|
5321
|
+
var c = a ?? ur.active(), s = this.startSpan(e, o, c), l = xi(c, s);
|
|
5322
|
+
return ur.with(l, u, void 0, s);
|
|
5326
5323
|
}
|
|
5327
5324
|
}, t;
|
|
5328
5325
|
}()
|
|
@@ -5357,7 +5354,7 @@ var ff = new ts(), hf = (
|
|
|
5357
5354
|
return new ts();
|
|
5358
5355
|
}, t;
|
|
5359
5356
|
}()
|
|
5360
|
-
), vf = new df(),
|
|
5357
|
+
), vf = new df(), oo = (
|
|
5361
5358
|
/** @class */
|
|
5362
5359
|
function() {
|
|
5363
5360
|
function t() {
|
|
@@ -5396,7 +5393,7 @@ var C = Vn.getInstance(), E = ve.instance(), mf = (
|
|
|
5396
5393
|
return Wa;
|
|
5397
5394
|
}, t;
|
|
5398
5395
|
}()
|
|
5399
|
-
), yf = new mf(),
|
|
5396
|
+
), yf = new mf(), cr = "metrics", gf = (
|
|
5400
5397
|
/** @class */
|
|
5401
5398
|
function() {
|
|
5402
5399
|
function t() {
|
|
@@ -5404,13 +5401,13 @@ var C = Vn.getInstance(), E = ve.instance(), mf = (
|
|
|
5404
5401
|
return t.getInstance = function() {
|
|
5405
5402
|
return this._instance || (this._instance = new t()), this._instance;
|
|
5406
5403
|
}, t.prototype.setGlobalMeterProvider = function(e) {
|
|
5407
|
-
return Gt(
|
|
5404
|
+
return Gt(cr, e, ve.instance());
|
|
5408
5405
|
}, t.prototype.getMeterProvider = function() {
|
|
5409
|
-
return Fe(
|
|
5406
|
+
return Fe(cr) || yf;
|
|
5410
5407
|
}, t.prototype.getMeter = function(e, n, r) {
|
|
5411
5408
|
return this.getMeterProvider().getMeter(e, n, r);
|
|
5412
5409
|
}, t.prototype.disable = function() {
|
|
5413
|
-
zt(
|
|
5410
|
+
zt(cr, ve.instance());
|
|
5414
5411
|
}, t;
|
|
5415
5412
|
}()
|
|
5416
5413
|
), he = gf.getInstance(), _f = (
|
|
@@ -5425,20 +5422,20 @@ var C = Vn.getInstance(), E = ve.instance(), mf = (
|
|
|
5425
5422
|
return [];
|
|
5426
5423
|
}, t;
|
|
5427
5424
|
}()
|
|
5428
|
-
),
|
|
5425
|
+
), Ni = wi("OpenTelemetry Baggage Key");
|
|
5429
5426
|
function ns(t) {
|
|
5430
|
-
return t.getValue(
|
|
5427
|
+
return t.getValue(Ni) || void 0;
|
|
5431
5428
|
}
|
|
5432
5429
|
function bf() {
|
|
5433
5430
|
return ns(Vn.getInstance().active());
|
|
5434
5431
|
}
|
|
5435
5432
|
function Ef(t, e) {
|
|
5436
|
-
return t.setValue(
|
|
5433
|
+
return t.setValue(Ni, e);
|
|
5437
5434
|
}
|
|
5438
5435
|
function Tf(t) {
|
|
5439
|
-
return t.deleteValue(
|
|
5436
|
+
return t.deleteValue(Ni);
|
|
5440
5437
|
}
|
|
5441
|
-
var
|
|
5438
|
+
var lr = "propagation", wf = new _f(), Sf = (
|
|
5442
5439
|
/** @class */
|
|
5443
5440
|
function() {
|
|
5444
5441
|
function t() {
|
|
@@ -5447,7 +5444,7 @@ var cr = "propagation", wf = new _f(), Sf = (
|
|
|
5447
5444
|
return t.getInstance = function() {
|
|
5448
5445
|
return this._instance || (this._instance = new t()), this._instance;
|
|
5449
5446
|
}, t.prototype.setGlobalPropagator = function(e) {
|
|
5450
|
-
return Gt(
|
|
5447
|
+
return Gt(lr, e, ve.instance());
|
|
5451
5448
|
}, t.prototype.inject = function(e, n, r) {
|
|
5452
5449
|
return r === void 0 && (r = Yp), this._getGlobalPropagator().inject(e, n, r);
|
|
5453
5450
|
}, t.prototype.extract = function(e, n, r) {
|
|
@@ -5455,38 +5452,38 @@ var cr = "propagation", wf = new _f(), Sf = (
|
|
|
5455
5452
|
}, t.prototype.fields = function() {
|
|
5456
5453
|
return this._getGlobalPropagator().fields();
|
|
5457
5454
|
}, t.prototype.disable = function() {
|
|
5458
|
-
zt(
|
|
5455
|
+
zt(lr, ve.instance());
|
|
5459
5456
|
}, t.prototype._getGlobalPropagator = function() {
|
|
5460
|
-
return Fe(
|
|
5457
|
+
return Fe(lr) || wf;
|
|
5461
5458
|
}, t;
|
|
5462
5459
|
}()
|
|
5463
|
-
), re = Sf.getInstance(),
|
|
5460
|
+
), re = Sf.getInstance(), pr = "trace", Of = (
|
|
5464
5461
|
/** @class */
|
|
5465
5462
|
function() {
|
|
5466
5463
|
function t() {
|
|
5467
|
-
this._proxyTracerProvider = new
|
|
5464
|
+
this._proxyTracerProvider = new oo(), this.wrapSpanContext = lf, this.isSpanContextValid = Hn, this.deleteSpan = of, this.getSpan = Ai, this.getActiveSpan = rf, this.getSpanContext = Za, this.setSpan = xi, this.setSpanContext = af;
|
|
5468
5465
|
}
|
|
5469
5466
|
return t.getInstance = function() {
|
|
5470
5467
|
return this._instance || (this._instance = new t()), this._instance;
|
|
5471
5468
|
}, t.prototype.setGlobalTracerProvider = function(e) {
|
|
5472
|
-
var n = Gt(
|
|
5469
|
+
var n = Gt(pr, this._proxyTracerProvider, ve.instance());
|
|
5473
5470
|
return n && this._proxyTracerProvider.setDelegate(e), n;
|
|
5474
5471
|
}, t.prototype.getTracerProvider = function() {
|
|
5475
|
-
return Fe(
|
|
5472
|
+
return Fe(pr) || this._proxyTracerProvider;
|
|
5476
5473
|
}, t.prototype.getTracer = function(e, n) {
|
|
5477
5474
|
return this.getTracerProvider().getTracer(e, n);
|
|
5478
5475
|
}, t.prototype.disable = function() {
|
|
5479
|
-
zt(
|
|
5476
|
+
zt(pr, ve.instance()), this._proxyTracerProvider = new oo();
|
|
5480
5477
|
}, t;
|
|
5481
5478
|
}()
|
|
5482
|
-
), R = Of.getInstance(), rs =
|
|
5479
|
+
), R = Of.getInstance(), rs = wi("OpenTelemetry SDK Context Key SUPPRESS_TRACING");
|
|
5483
5480
|
function is(t) {
|
|
5484
5481
|
return t.setValue(rs, !0);
|
|
5485
5482
|
}
|
|
5486
|
-
function
|
|
5483
|
+
function Ci(t) {
|
|
5487
5484
|
return t.getValue(rs) === !0;
|
|
5488
5485
|
}
|
|
5489
|
-
var Af = "=",
|
|
5486
|
+
var Af = "=", Yr = ";", Jr = ",", fr = "baggage", xf = 180, Nf = 4096, Cf = 8192, Lf = function(t, e) {
|
|
5490
5487
|
var n = typeof Symbol == "function" && t[Symbol.iterator];
|
|
5491
5488
|
if (!n) return t;
|
|
5492
5489
|
var r = n.call(t), i, o = [], a;
|
|
@@ -5505,25 +5502,25 @@ var Af = "=", Wr = ";", Yr = ",", pr = "baggage", xf = 180, Nf = 4096, Cf = 8192
|
|
|
5505
5502
|
};
|
|
5506
5503
|
function Rf(t) {
|
|
5507
5504
|
return t.reduce(function(e, n) {
|
|
5508
|
-
var r = "" + e + (e !== "" ?
|
|
5505
|
+
var r = "" + e + (e !== "" ? Jr : "") + n;
|
|
5509
5506
|
return r.length > Cf ? e : r;
|
|
5510
5507
|
}, "");
|
|
5511
5508
|
}
|
|
5512
5509
|
function If(t) {
|
|
5513
5510
|
return t.getAllEntries().map(function(e) {
|
|
5514
5511
|
var n = Lf(e, 2), r = n[0], i = n[1], o = encodeURIComponent(r) + "=" + encodeURIComponent(i.value);
|
|
5515
|
-
return i.metadata !== void 0 && (o +=
|
|
5512
|
+
return i.metadata !== void 0 && (o += Yr + i.metadata.toString()), o;
|
|
5516
5513
|
});
|
|
5517
5514
|
}
|
|
5518
5515
|
function Pf(t) {
|
|
5519
|
-
var e = t.split(
|
|
5516
|
+
var e = t.split(Yr);
|
|
5520
5517
|
if (!(e.length <= 0)) {
|
|
5521
5518
|
var n = e.shift();
|
|
5522
5519
|
if (n) {
|
|
5523
5520
|
var r = n.indexOf(Af);
|
|
5524
5521
|
if (!(r <= 0)) {
|
|
5525
5522
|
var i = decodeURIComponent(n.substring(0, r).trim()), o = decodeURIComponent(n.substring(r + 1).trim()), a;
|
|
5526
|
-
return e.length > 0 && (a = Rp(e.join(
|
|
5523
|
+
return e.length > 0 && (a = Rp(e.join(Yr))), { key: i, value: o, metadata: a };
|
|
5527
5524
|
}
|
|
5528
5525
|
}
|
|
5529
5526
|
}
|
|
@@ -5535,20 +5532,20 @@ var os = (
|
|
|
5535
5532
|
}
|
|
5536
5533
|
return t.prototype.inject = function(e, n, r) {
|
|
5537
5534
|
var i = re.getBaggage(e);
|
|
5538
|
-
if (!(!i ||
|
|
5535
|
+
if (!(!i || Ci(e))) {
|
|
5539
5536
|
var o = If(i).filter(function(u) {
|
|
5540
5537
|
return u.length <= Nf;
|
|
5541
5538
|
}).slice(0, xf), a = Rf(o);
|
|
5542
|
-
a.length > 0 && r.set(n,
|
|
5539
|
+
a.length > 0 && r.set(n, fr, a);
|
|
5543
5540
|
}
|
|
5544
5541
|
}, t.prototype.extract = function(e, n, r) {
|
|
5545
|
-
var i = r.get(n,
|
|
5542
|
+
var i = r.get(n, fr), o = Array.isArray(i) ? i.join(Jr) : i;
|
|
5546
5543
|
if (!o)
|
|
5547
5544
|
return e;
|
|
5548
5545
|
var a = {};
|
|
5549
5546
|
if (o.length === 0)
|
|
5550
5547
|
return e;
|
|
5551
|
-
var u = o.split(
|
|
5548
|
+
var u = o.split(Jr);
|
|
5552
5549
|
return u.forEach(function(c) {
|
|
5553
5550
|
var s = Pf(c);
|
|
5554
5551
|
if (s) {
|
|
@@ -5557,7 +5554,7 @@ var os = (
|
|
|
5557
5554
|
}
|
|
5558
5555
|
}), Object.entries(a).length === 0 ? e : re.setBaggage(e, re.createBaggage(a));
|
|
5559
5556
|
}, t.prototype.fields = function() {
|
|
5560
|
-
return [
|
|
5557
|
+
return [fr];
|
|
5561
5558
|
}, t;
|
|
5562
5559
|
}()
|
|
5563
5560
|
), as = function(t) {
|
|
@@ -5872,22 +5869,22 @@ function ft() {
|
|
|
5872
5869
|
function th() {
|
|
5873
5870
|
return ls(Rt);
|
|
5874
5871
|
}
|
|
5875
|
-
function
|
|
5872
|
+
function ao(t) {
|
|
5876
5873
|
return t >= 48 && t <= 57 ? t - 48 : t >= 97 && t <= 102 ? t - 87 : t - 55;
|
|
5877
5874
|
}
|
|
5878
|
-
function
|
|
5875
|
+
function Li(t) {
|
|
5879
5876
|
for (var e = new Uint8Array(t.length / 2), n = 0, r = 0; r < t.length; r += 2) {
|
|
5880
|
-
var i =
|
|
5877
|
+
var i = ao(t.charCodeAt(r)), o = ao(t.charCodeAt(r + 1));
|
|
5881
5878
|
e[n++] = i << 4 | o;
|
|
5882
5879
|
}
|
|
5883
5880
|
return e;
|
|
5884
5881
|
}
|
|
5885
|
-
var oe = performance, nh = "1.30.1", rh = "process.runtime.name", ih = "telemetry.sdk.name", oh = "telemetry.sdk.language", ah = "telemetry.sdk.version", sh = rh, uh = ih, ch = oh, lh = ah, ph = "webjs", fh = ph, et,
|
|
5882
|
+
var oe = performance, nh = "1.30.1", rh = "process.runtime.name", ih = "telemetry.sdk.name", oh = "telemetry.sdk.language", ah = "telemetry.sdk.version", sh = rh, uh = ih, ch = oh, lh = ah, ph = "webjs", fh = ph, et, hr = (et = {}, et[uh] = "opentelemetry", et[sh] = "browser", et[ch] = fh, et[lh] = nh, et), hh = 9, dh = 6, vh = Math.pow(10, dh), xn = Math.pow(10, hh);
|
|
5886
5883
|
function ie(t) {
|
|
5887
5884
|
var e = t / 1e3, n = Math.trunc(e), r = Math.round(t % 1e3 * vh);
|
|
5888
5885
|
return [n, r];
|
|
5889
5886
|
}
|
|
5890
|
-
function
|
|
5887
|
+
function Ri() {
|
|
5891
5888
|
var t = oe.timeOrigin;
|
|
5892
5889
|
if (typeof t != "number") {
|
|
5893
5890
|
var e = oe;
|
|
@@ -5896,14 +5893,14 @@ function Li() {
|
|
|
5896
5893
|
return t;
|
|
5897
5894
|
}
|
|
5898
5895
|
function Ve(t) {
|
|
5899
|
-
var e = ie(
|
|
5896
|
+
var e = ie(Ri()), n = ie(typeof t == "number" ? t : oe.now());
|
|
5900
5897
|
return ps(e, n);
|
|
5901
5898
|
}
|
|
5902
5899
|
function It(t) {
|
|
5903
|
-
if (
|
|
5900
|
+
if (Ii(t))
|
|
5904
5901
|
return t;
|
|
5905
5902
|
if (typeof t == "number")
|
|
5906
|
-
return t <
|
|
5903
|
+
return t < Ri() ? Ve(t) : ie(t);
|
|
5907
5904
|
if (t instanceof Date)
|
|
5908
5905
|
return ie(t.getTime());
|
|
5909
5906
|
throw TypeError("Invalid input type");
|
|
@@ -5918,11 +5915,11 @@ function be(t) {
|
|
|
5918
5915
|
function Qt(t) {
|
|
5919
5916
|
return t[0] * 1e6 + t[1] / 1e3;
|
|
5920
5917
|
}
|
|
5921
|
-
function
|
|
5918
|
+
function Ii(t) {
|
|
5922
5919
|
return Array.isArray(t) && t.length === 2 && typeof t[0] == "number" && typeof t[1] == "number";
|
|
5923
5920
|
}
|
|
5924
|
-
function
|
|
5925
|
-
return
|
|
5921
|
+
function so(t) {
|
|
5922
|
+
return Ii(t) || typeof t == "number" || t instanceof Date;
|
|
5926
5923
|
}
|
|
5927
5924
|
function ps(t, e) {
|
|
5928
5925
|
var n = [t[0] + e[0], t[1] + e[1]];
|
|
@@ -5986,14 +5983,14 @@ var yh = function(t) {
|
|
|
5986
5983
|
return this._fields.slice();
|
|
5987
5984
|
}, t;
|
|
5988
5985
|
}()
|
|
5989
|
-
),
|
|
5986
|
+
), Qr = "[_0-9a-z-*/]", gh = "[a-z]" + Qr + "{0,255}", _h = "[a-z0-9]" + Qr + "{0,240}@[a-z]" + Qr + "{0,13}", bh = new RegExp("^(?:" + gh + "|" + _h + ")$"), Eh = /^[ -~]{0,255}[!-~]$/, Th = /,|=/;
|
|
5990
5987
|
function wh(t) {
|
|
5991
5988
|
return bh.test(t);
|
|
5992
5989
|
}
|
|
5993
5990
|
function Sh(t) {
|
|
5994
5991
|
return Eh.test(t) && !Th.test(t);
|
|
5995
5992
|
}
|
|
5996
|
-
var
|
|
5993
|
+
var uo = 32, Oh = 512, co = ",", lo = "=", Ah = (
|
|
5997
5994
|
/** @class */
|
|
5998
5995
|
function() {
|
|
5999
5996
|
function t(e) {
|
|
@@ -6010,17 +6007,17 @@ var so = 32, Oh = 512, uo = ",", co = "=", Ah = (
|
|
|
6010
6007
|
}, t.prototype.serialize = function() {
|
|
6011
6008
|
var e = this;
|
|
6012
6009
|
return this._keys().reduce(function(n, r) {
|
|
6013
|
-
return n.push(r +
|
|
6014
|
-
}, []).join(
|
|
6010
|
+
return n.push(r + lo + e.get(r)), n;
|
|
6011
|
+
}, []).join(co);
|
|
6015
6012
|
}, t.prototype._parse = function(e) {
|
|
6016
|
-
e.length > Oh || (this._internalState = e.split(
|
|
6017
|
-
var i = r.trim(), o = i.indexOf(
|
|
6013
|
+
e.length > Oh || (this._internalState = e.split(co).reverse().reduce(function(n, r) {
|
|
6014
|
+
var i = r.trim(), o = i.indexOf(lo);
|
|
6018
6015
|
if (o !== -1) {
|
|
6019
6016
|
var a = i.slice(0, o), u = i.slice(o + 1, r.length);
|
|
6020
6017
|
wh(a) && Sh(u) && n.set(a, u);
|
|
6021
6018
|
}
|
|
6022
6019
|
return n;
|
|
6023
|
-
}, /* @__PURE__ */ new Map()), this._internalState.size >
|
|
6020
|
+
}, /* @__PURE__ */ new Map()), this._internalState.size > uo && (this._internalState = new Map(Array.from(this._internalState.entries()).reverse().slice(0, uo))));
|
|
6024
6021
|
}, t.prototype._keys = function() {
|
|
6025
6022
|
return Array.from(this._internalState.keys()).reverse();
|
|
6026
6023
|
}, t.prototype._clone = function() {
|
|
@@ -6028,7 +6025,7 @@ var so = 32, Oh = 512, uo = ",", co = "=", Ah = (
|
|
|
6028
6025
|
return e._internalState = new Map(this._internalState), e;
|
|
6029
6026
|
}, t;
|
|
6030
6027
|
}()
|
|
6031
|
-
), gn = "traceparent",
|
|
6028
|
+
), gn = "traceparent", dr = "tracestate", xh = "00", Nh = "(?!ff)[\\da-f]{2}", Ch = "(?![0]{32})[\\da-f]{32}", Lh = "(?![0]{16})[\\da-f]{16}", Rh = "[\\da-f]{2}", Ih = new RegExp("^\\s?(" + Nh + ")-(" + Ch + ")-(" + Lh + ")-(" + Rh + ")(-.*)?\\s?$");
|
|
6032
6029
|
function Ph(t) {
|
|
6033
6030
|
var e = Ih.exec(t);
|
|
6034
6031
|
return !e || e[1] === "00" && e[5] ? null : {
|
|
@@ -6044,9 +6041,9 @@ var hs = (
|
|
|
6044
6041
|
}
|
|
6045
6042
|
return t.prototype.inject = function(e, n, r) {
|
|
6046
6043
|
var i = R.getSpanContext(e);
|
|
6047
|
-
if (!(!i ||
|
|
6044
|
+
if (!(!i || Ci(e) || !Hn(i))) {
|
|
6048
6045
|
var o = xh + "-" + i.traceId + "-" + i.spanId + "-0" + Number(i.traceFlags || Te.NONE).toString(16);
|
|
6049
|
-
r.set(n, gn, o), i.traceState && r.set(n,
|
|
6046
|
+
r.set(n, gn, o), i.traceState && r.set(n, dr, i.traceState.serialize());
|
|
6050
6047
|
}
|
|
6051
6048
|
}, t.prototype.extract = function(e, n, r) {
|
|
6052
6049
|
var i = r.get(n, gn);
|
|
@@ -6059,14 +6056,14 @@ var hs = (
|
|
|
6059
6056
|
if (!a)
|
|
6060
6057
|
return e;
|
|
6061
6058
|
a.isRemote = !0;
|
|
6062
|
-
var u = r.get(n,
|
|
6059
|
+
var u = r.get(n, dr);
|
|
6063
6060
|
if (u) {
|
|
6064
6061
|
var c = Array.isArray(u) ? u.join(",") : u;
|
|
6065
6062
|
a.traceState = new Ah(typeof c == "string" ? c : void 0);
|
|
6066
6063
|
}
|
|
6067
6064
|
return R.setSpanContext(e, a);
|
|
6068
6065
|
}, t.prototype.fields = function() {
|
|
6069
|
-
return [gn,
|
|
6066
|
+
return [gn, dr];
|
|
6070
6067
|
}, t;
|
|
6071
6068
|
}()
|
|
6072
6069
|
), kh = "[object Object]", Mh = "[object Null]", Dh = "[object Undefined]", Uh = Function.prototype, ds = Uh.toString, $h = ds.call(Object), jh = Bh(Object.getPrototypeOf, Object), vs = Object.prototype, ms = vs.hasOwnProperty, De = Symbol ? Symbol.toStringTag : void 0, ys = vs.toString;
|
|
@@ -6075,7 +6072,7 @@ function Bh(t, e) {
|
|
|
6075
6072
|
return t(e(n));
|
|
6076
6073
|
};
|
|
6077
6074
|
}
|
|
6078
|
-
function
|
|
6075
|
+
function po(t) {
|
|
6079
6076
|
if (!Fh(t) || Vh(t) !== kh)
|
|
6080
6077
|
return !1;
|
|
6081
6078
|
var e = jh(t);
|
|
@@ -6110,7 +6107,7 @@ function gs() {
|
|
|
6110
6107
|
n = _s(n, t.shift(), 0, r);
|
|
6111
6108
|
return n;
|
|
6112
6109
|
}
|
|
6113
|
-
function
|
|
6110
|
+
function vr(t) {
|
|
6114
6111
|
return Nn(t) ? t.slice() : t;
|
|
6115
6112
|
}
|
|
6116
6113
|
function _s(t, e, n, r) {
|
|
@@ -6118,15 +6115,15 @@ function _s(t, e, n, r) {
|
|
|
6118
6115
|
var i;
|
|
6119
6116
|
if (!(n > zh)) {
|
|
6120
6117
|
if (n++, _n(t) || _n(e) || bs(e))
|
|
6121
|
-
i =
|
|
6118
|
+
i = vr(e);
|
|
6122
6119
|
else if (Nn(t)) {
|
|
6123
6120
|
if (i = t.slice(), Nn(e))
|
|
6124
6121
|
for (var o = 0, a = e.length; o < a; o++)
|
|
6125
|
-
i.push(
|
|
6122
|
+
i.push(vr(e[o]));
|
|
6126
6123
|
else if (Tt(e))
|
|
6127
6124
|
for (var u = Object.keys(e), o = 0, a = u.length; o < a; o++) {
|
|
6128
6125
|
var c = u[o];
|
|
6129
|
-
i[c] =
|
|
6126
|
+
i[c] = vr(e[c]);
|
|
6130
6127
|
}
|
|
6131
6128
|
} else if (Tt(t))
|
|
6132
6129
|
if (Tt(e)) {
|
|
@@ -6139,7 +6136,7 @@ function _s(t, e, n, r) {
|
|
|
6139
6136
|
typeof s > "u" ? delete i[c] : i[c] = s;
|
|
6140
6137
|
else {
|
|
6141
6138
|
var l = i[c], p = s;
|
|
6142
|
-
if (
|
|
6139
|
+
if (fo(t, c, r) || fo(e, c, r))
|
|
6143
6140
|
delete i[c];
|
|
6144
6141
|
else {
|
|
6145
6142
|
if (Tt(l) && Tt(p)) {
|
|
@@ -6155,7 +6152,7 @@ function _s(t, e, n, r) {
|
|
|
6155
6152
|
return i;
|
|
6156
6153
|
}
|
|
6157
6154
|
}
|
|
6158
|
-
function
|
|
6155
|
+
function fo(t, e, n) {
|
|
6159
6156
|
for (var r = n.get(t[e]) || [], i = 0, o = r.length; i < o; i++) {
|
|
6160
6157
|
var a = r[i];
|
|
6161
6158
|
if (a.key === e && a.obj === t)
|
|
@@ -6176,7 +6173,7 @@ function _n(t) {
|
|
|
6176
6173
|
return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t > "u" || t instanceof Date || t instanceof RegExp || t === null;
|
|
6177
6174
|
}
|
|
6178
6175
|
function qh(t, e) {
|
|
6179
|
-
return !(!
|
|
6176
|
+
return !(!po(t) || !po(e));
|
|
6180
6177
|
}
|
|
6181
6178
|
var Xh = function(t) {
|
|
6182
6179
|
var e = typeof Symbol == "function" && Symbol.iterator, n = e && t[e], r = 0;
|
|
@@ -6333,7 +6330,7 @@ var Zh = {
|
|
|
6333
6330
|
return e ? (this._delegate = e, this._delegate) : ed;
|
|
6334
6331
|
}, t;
|
|
6335
6332
|
}()
|
|
6336
|
-
),
|
|
6333
|
+
), ho = (
|
|
6337
6334
|
/** @class */
|
|
6338
6335
|
function() {
|
|
6339
6336
|
function t() {
|
|
@@ -6357,23 +6354,23 @@ function id(t, e, n) {
|
|
|
6357
6354
|
return r === t ? e : n;
|
|
6358
6355
|
};
|
|
6359
6356
|
}
|
|
6360
|
-
var
|
|
6357
|
+
var vo = 1, od = (
|
|
6361
6358
|
/** @class */
|
|
6362
6359
|
function() {
|
|
6363
6360
|
function t() {
|
|
6364
|
-
this._proxyLoggerProvider = new
|
|
6361
|
+
this._proxyLoggerProvider = new ho();
|
|
6365
6362
|
}
|
|
6366
6363
|
return t.getInstance = function() {
|
|
6367
6364
|
return this._instance || (this._instance = new t()), this._instance;
|
|
6368
6365
|
}, t.prototype.setGlobalLoggerProvider = function(e) {
|
|
6369
|
-
return wt[Zt] ? this.getLoggerProvider() : (wt[Zt] = id(
|
|
6366
|
+
return wt[Zt] ? this.getLoggerProvider() : (wt[Zt] = id(vo, e, Ss), this._proxyLoggerProvider.setDelegate(e), e);
|
|
6370
6367
|
}, t.prototype.getLoggerProvider = function() {
|
|
6371
6368
|
var e, n;
|
|
6372
|
-
return (n = (e = wt[Zt]) === null || e === void 0 ? void 0 : e.call(wt,
|
|
6369
|
+
return (n = (e = wt[Zt]) === null || e === void 0 ? void 0 : e.call(wt, vo)) !== null && n !== void 0 ? n : this._proxyLoggerProvider;
|
|
6373
6370
|
}, t.prototype.getLogger = function(e, n, r) {
|
|
6374
6371
|
return this.getLoggerProvider().getLogger(e, n, r);
|
|
6375
6372
|
}, t.prototype.disable = function() {
|
|
6376
|
-
delete wt[Zt], this._proxyLoggerProvider = new
|
|
6373
|
+
delete wt[Zt], this._proxyLoggerProvider = new ho();
|
|
6377
6374
|
}, t;
|
|
6378
6375
|
}()
|
|
6379
6376
|
), qt = od.getInstance();
|
|
@@ -6394,7 +6391,7 @@ function ud(t) {
|
|
|
6394
6391
|
sd(a);
|
|
6395
6392
|
};
|
|
6396
6393
|
}
|
|
6397
|
-
function
|
|
6394
|
+
function Zr(t) {
|
|
6398
6395
|
return typeof t == "function";
|
|
6399
6396
|
}
|
|
6400
6397
|
var Q = console.error.bind(console);
|
|
@@ -6408,7 +6405,7 @@ function St(t, e, n) {
|
|
|
6408
6405
|
});
|
|
6409
6406
|
}
|
|
6410
6407
|
function Xt(t) {
|
|
6411
|
-
t && t.logger && (
|
|
6408
|
+
t && t.logger && (Zr(t.logger) ? Q = t.logger : Q("new logger isn't a function, not replacing"));
|
|
6412
6409
|
}
|
|
6413
6410
|
function Os(t, e, n) {
|
|
6414
6411
|
if (!t || !t[e]) {
|
|
@@ -6419,7 +6416,7 @@ function Os(t, e, n) {
|
|
|
6419
6416
|
Q("no wrapper function"), Q(new Error().stack);
|
|
6420
6417
|
return;
|
|
6421
6418
|
}
|
|
6422
|
-
if (!
|
|
6419
|
+
if (!Zr(t[e]) || !Zr(n)) {
|
|
6423
6420
|
Q("original object and wrapper must be functions");
|
|
6424
6421
|
return;
|
|
6425
6422
|
}
|
|
@@ -6476,14 +6473,14 @@ Xt.wrap = Os;
|
|
|
6476
6473
|
Xt.massWrap = cd;
|
|
6477
6474
|
Xt.unwrap = As;
|
|
6478
6475
|
Xt.massUnwrap = ld;
|
|
6479
|
-
var K = Xt,
|
|
6480
|
-
return
|
|
6476
|
+
var K = Xt, ei = function() {
|
|
6477
|
+
return ei = Object.assign || function(t) {
|
|
6481
6478
|
for (var e, n = 1, r = arguments.length; n < r; n++) {
|
|
6482
6479
|
e = arguments[n];
|
|
6483
6480
|
for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
|
|
6484
6481
|
}
|
|
6485
6482
|
return t;
|
|
6486
|
-
},
|
|
6483
|
+
}, ei.apply(this, arguments);
|
|
6487
6484
|
}, pd = (
|
|
6488
6485
|
/** @class */
|
|
6489
6486
|
function() {
|
|
@@ -6517,7 +6514,7 @@ var K = Xt, Zr = function() {
|
|
|
6517
6514
|
}, t.prototype.getConfig = function() {
|
|
6518
6515
|
return this._config;
|
|
6519
6516
|
}, t.prototype.setConfig = function(e) {
|
|
6520
|
-
this._config =
|
|
6517
|
+
this._config = ei({ enabled: !0 }, e);
|
|
6521
6518
|
}, t.prototype.setTracerProvider = function(e) {
|
|
6522
6519
|
this._tracer = e.getTracer(this.instrumentationName, this.instrumentationVersion);
|
|
6523
6520
|
}, Object.defineProperty(t.prototype, "tracer", {
|
|
@@ -6567,14 +6564,14 @@ var K = Xt, Zr = function() {
|
|
|
6567
6564
|
function Y(t) {
|
|
6568
6565
|
return typeof t == "function" && typeof t.__original == "function" && typeof t.__unwrap == "function" && t.__wrapped === !0;
|
|
6569
6566
|
}
|
|
6570
|
-
var dd = "exception.type", vd = "exception.message", md = "exception.stacktrace", yd = "http.response_content_length", gd = "http.response_content_length_uncompressed",
|
|
6571
|
-
return
|
|
6567
|
+
var dd = "exception.type", vd = "exception.message", md = "exception.stacktrace", yd = "http.response_content_length", gd = "http.response_content_length_uncompressed", mr = dd, yr = vd, _d = md, bd = yd, Ed = gd, Td = "exception", ti = function() {
|
|
6568
|
+
return ti = Object.assign || function(t) {
|
|
6572
6569
|
for (var e, n = 1, r = arguments.length; n < r; n++) {
|
|
6573
6570
|
e = arguments[n];
|
|
6574
6571
|
for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
|
|
6575
6572
|
}
|
|
6576
6573
|
return t;
|
|
6577
|
-
},
|
|
6574
|
+
}, ti.apply(this, arguments);
|
|
6578
6575
|
}, wd = function(t) {
|
|
6579
6576
|
var e = typeof Symbol == "function" && Symbol.iterator, n = e && t[e], r = 0;
|
|
6580
6577
|
if (n) return n.call(t);
|
|
@@ -6584,7 +6581,7 @@ var dd = "exception.type", vd = "exception.message", md = "exception.stacktrace"
|
|
|
6584
6581
|
}
|
|
6585
6582
|
};
|
|
6586
6583
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
6587
|
-
},
|
|
6584
|
+
}, mo = function(t, e) {
|
|
6588
6585
|
var n = typeof Symbol == "function" && t[Symbol.iterator];
|
|
6589
6586
|
if (!n) return t;
|
|
6590
6587
|
var r = n.call(t), i, o = [], a;
|
|
@@ -6612,7 +6609,7 @@ var dd = "exception.type", vd = "exception.message", md = "exception.stacktrace"
|
|
|
6612
6609
|
code: An.UNSET
|
|
6613
6610
|
}, this.endTime = [0, 0], this._ended = !1, this._duration = [-1, -1], this.name = r, this._spanContext = i, this.parentSpanId = a, this.kind = o, this.links = u;
|
|
6614
6611
|
var p = Date.now();
|
|
6615
|
-
this._performanceStartTime = oe.now(), this._performanceOffset = p - (this._performanceStartTime +
|
|
6612
|
+
this._performanceStartTime = oe.now(), this._performanceOffset = p - (this._performanceStartTime + Ri()), this._startTimeProvided = c != null, this.startTime = this._getTime(c ?? p), this.resource = e.resource, this.instrumentationLibrary = e.instrumentationLibrary, this._spanLimits = e.getSpanLimits(), this._attributeValueLengthLimit = this._spanLimits.attributeValueLengthLimit || 0, l != null && this.setAttributes(l), this._spanProcessor = e.getActiveSpanProcessor(), this._spanProcessor.onStart(this, n);
|
|
6616
6613
|
}
|
|
6617
6614
|
return t.prototype.spanContext = function() {
|
|
6618
6615
|
return this._spanContext;
|
|
@@ -6622,7 +6619,7 @@ var dd = "exception.type", vd = "exception.message", md = "exception.stacktrace"
|
|
|
6622
6619
|
var n, r;
|
|
6623
6620
|
try {
|
|
6624
6621
|
for (var i = wd(Object.entries(e)), o = i.next(); !o.done; o = i.next()) {
|
|
6625
|
-
var a =
|
|
6622
|
+
var a = mo(o.value, 2), u = a[0], c = a[1];
|
|
6626
6623
|
this.setAttribute(u, c);
|
|
6627
6624
|
}
|
|
6628
6625
|
} catch (s) {
|
|
@@ -6640,7 +6637,7 @@ var dd = "exception.type", vd = "exception.message", md = "exception.stacktrace"
|
|
|
6640
6637
|
return this;
|
|
6641
6638
|
if (this._spanLimits.eventCountLimit === 0)
|
|
6642
6639
|
return E.warn("No events allowed."), this._droppedEventsCount++, this;
|
|
6643
|
-
this.events.length >= this._spanLimits.eventCountLimit && (this._droppedEventsCount === 0 && E.debug("Dropping extra events."), this.events.shift(), this._droppedEventsCount++),
|
|
6640
|
+
this.events.length >= this._spanLimits.eventCountLimit && (this._droppedEventsCount === 0 && E.debug("Dropping extra events."), this.events.shift(), this._droppedEventsCount++), so(n) && (so(r) || (r = n), n = void 0);
|
|
6644
6641
|
var i = vn(n);
|
|
6645
6642
|
return this.events.push({
|
|
6646
6643
|
name: e,
|
|
@@ -6652,9 +6649,9 @@ var dd = "exception.type", vd = "exception.message", md = "exception.stacktrace"
|
|
|
6652
6649
|
return this.links.push(e), this;
|
|
6653
6650
|
}, t.prototype.addLinks = function(e) {
|
|
6654
6651
|
var n;
|
|
6655
|
-
return (n = this.links).push.apply(n, Sd([],
|
|
6652
|
+
return (n = this.links).push.apply(n, Sd([], mo(e), !1)), this;
|
|
6656
6653
|
}, t.prototype.setStatus = function(e) {
|
|
6657
|
-
return this._isSpanEnded() ? this : (this.status =
|
|
6654
|
+
return this._isSpanEnded() ? this : (this.status = ti({}, e), this.status.message != null && typeof e.message != "string" && (E.warn("Dropping invalid status.message of type '" + typeof e.message + "', expected 'string'"), delete this.status.message), this);
|
|
6658
6655
|
}, t.prototype.updateName = function(e) {
|
|
6659
6656
|
return this._isSpanEnded() ? this : (this.name = e, this);
|
|
6660
6657
|
}, t.prototype.end = function(e) {
|
|
@@ -6670,7 +6667,7 @@ var dd = "exception.type", vd = "exception.message", md = "exception.stacktrace"
|
|
|
6670
6667
|
return ie(e);
|
|
6671
6668
|
if (e instanceof Date)
|
|
6672
6669
|
return ie(e.getTime());
|
|
6673
|
-
if (
|
|
6670
|
+
if (Ii(e))
|
|
6674
6671
|
return e;
|
|
6675
6672
|
if (this._startTimeProvided)
|
|
6676
6673
|
return ie(Date.now());
|
|
@@ -6680,7 +6677,7 @@ var dd = "exception.type", vd = "exception.message", md = "exception.stacktrace"
|
|
|
6680
6677
|
return this._ended === !1;
|
|
6681
6678
|
}, t.prototype.recordException = function(e, n) {
|
|
6682
6679
|
var r = {};
|
|
6683
|
-
typeof e == "string" ? r[
|
|
6680
|
+
typeof e == "string" ? r[yr] = e : e && (e.code ? r[mr] = e.code.toString() : e.name && (r[mr] = e.name), e.message && (r[yr] = e.message), e.stack && (r[_d] = e.stack)), r[mr] || r[yr] ? this.addEvent(Td, r, n) : E.warn("Failed to record an exception " + e);
|
|
6684
6681
|
}, Object.defineProperty(t.prototype, "duration", {
|
|
6685
6682
|
get: function() {
|
|
6686
6683
|
return this._duration;
|
|
@@ -6752,7 +6749,7 @@ var Cn = (
|
|
|
6752
6749
|
return "AlwaysOnSampler";
|
|
6753
6750
|
}, t;
|
|
6754
6751
|
}()
|
|
6755
|
-
),
|
|
6752
|
+
), gr = (
|
|
6756
6753
|
/** @class */
|
|
6757
6754
|
function() {
|
|
6758
6755
|
function t(e) {
|
|
@@ -6766,7 +6763,7 @@ var Cn = (
|
|
|
6766
6763
|
return "ParentBased{root=" + this._root.toString() + ", remoteParentSampled=" + this._remoteParentSampled.toString() + ", remoteParentNotSampled=" + this._remoteParentNotSampled.toString() + ", localParentSampled=" + this._localParentSampled.toString() + ", localParentNotSampled=" + this._localParentNotSampled.toString() + "}";
|
|
6767
6764
|
}, t;
|
|
6768
6765
|
}()
|
|
6769
|
-
),
|
|
6766
|
+
), yo = (
|
|
6770
6767
|
/** @class */
|
|
6771
6768
|
function() {
|
|
6772
6769
|
function t(e) {
|
|
@@ -6816,24 +6813,24 @@ function Ns(t) {
|
|
|
6816
6813
|
case pe.AlwaysOff:
|
|
6817
6814
|
return new Cn();
|
|
6818
6815
|
case pe.ParentBasedAlwaysOn:
|
|
6819
|
-
return new
|
|
6816
|
+
return new gr({
|
|
6820
6817
|
root: new lt()
|
|
6821
6818
|
});
|
|
6822
6819
|
case pe.ParentBasedAlwaysOff:
|
|
6823
|
-
return new
|
|
6820
|
+
return new gr({
|
|
6824
6821
|
root: new Cn()
|
|
6825
6822
|
});
|
|
6826
6823
|
case pe.TraceIdRatio:
|
|
6827
|
-
return new
|
|
6824
|
+
return new yo(go(t));
|
|
6828
6825
|
case pe.ParentBasedTraceIdRatio:
|
|
6829
|
-
return new
|
|
6830
|
-
root: new
|
|
6826
|
+
return new gr({
|
|
6827
|
+
root: new yo(go(t))
|
|
6831
6828
|
});
|
|
6832
6829
|
default:
|
|
6833
6830
|
return E.error('OTEL_TRACES_SAMPLER value "' + t.OTEL_TRACES_SAMPLER + " invalid, defaulting to " + Ad + '".'), new lt();
|
|
6834
6831
|
}
|
|
6835
6832
|
}
|
|
6836
|
-
function
|
|
6833
|
+
function go(t) {
|
|
6837
6834
|
if (t.OTEL_TRACES_SAMPLER_ARG === void 0 || t.OTEL_TRACES_SAMPLER_ARG === "")
|
|
6838
6835
|
return E.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to " + tt + "."), tt;
|
|
6839
6836
|
var e = Number(t.OTEL_TRACES_SAMPLER_ARG);
|
|
@@ -6975,12 +6972,12 @@ var Cd = (
|
|
|
6975
6972
|
/** @class */
|
|
6976
6973
|
/* @__PURE__ */ function() {
|
|
6977
6974
|
function t() {
|
|
6978
|
-
this.generateTraceId =
|
|
6975
|
+
this.generateTraceId = _o(Id), this.generateSpanId = _o(Rd);
|
|
6979
6976
|
}
|
|
6980
6977
|
return t;
|
|
6981
6978
|
}()
|
|
6982
6979
|
), en = Array(32);
|
|
6983
|
-
function
|
|
6980
|
+
function _o(t) {
|
|
6984
6981
|
return function() {
|
|
6985
6982
|
for (var e = 0; e < t * 2; e++)
|
|
6986
6983
|
en[e] = Math.floor(Math.random() * 16) + 48, en[e] >= 58 && (en[e] += 39);
|
|
@@ -6999,7 +6996,7 @@ var kd = (
|
|
|
6999
6996
|
var i, o, a;
|
|
7000
6997
|
n === void 0 && (n = {}), r === void 0 && (r = C.active()), n.root && (r = R.deleteSpan(r));
|
|
7001
6998
|
var u = R.getSpan(r);
|
|
7002
|
-
if (
|
|
6999
|
+
if (Ci(r)) {
|
|
7003
7000
|
E.debug("Instrumentation suppressed, returning Noop Span");
|
|
7004
7001
|
var c = R.wrapSpanContext(Qa);
|
|
7005
7002
|
return c;
|
|
@@ -7036,7 +7033,7 @@ var kd = (
|
|
|
7036
7033
|
return this._tracerProvider.getActiveSpanProcessor();
|
|
7037
7034
|
}, t;
|
|
7038
7035
|
}()
|
|
7039
|
-
), Md = "service.name", Dd = "telemetry.sdk.name", Ud = "telemetry.sdk.language", $d = "telemetry.sdk.version", jd = Md,
|
|
7036
|
+
), Md = "service.name", Dd = "telemetry.sdk.name", Ud = "telemetry.sdk.language", $d = "telemetry.sdk.version", jd = Md, bo = Dd, Eo = Ud, To = $d;
|
|
7040
7037
|
function Bd() {
|
|
7041
7038
|
return "unknown_service";
|
|
7042
7039
|
}
|
|
@@ -7164,7 +7161,7 @@ var xe = function() {
|
|
|
7164
7161
|
return t.EMPTY;
|
|
7165
7162
|
}, t.default = function() {
|
|
7166
7163
|
var e;
|
|
7167
|
-
return new t((e = {}, e[jd] = Bd(), e[
|
|
7164
|
+
return new t((e = {}, e[jd] = Bd(), e[Eo] = hr[Eo], e[bo] = hr[bo], e[To] = hr[To], e));
|
|
7168
7165
|
}, Object.defineProperty(t.prototype, "attributes", {
|
|
7169
7166
|
get: function() {
|
|
7170
7167
|
var e;
|
|
@@ -7214,7 +7211,7 @@ var xe = function() {
|
|
|
7214
7211
|
}
|
|
7215
7212
|
};
|
|
7216
7213
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
7217
|
-
},
|
|
7214
|
+
}, wo = (
|
|
7218
7215
|
/** @class */
|
|
7219
7216
|
function() {
|
|
7220
7217
|
function t(e) {
|
|
@@ -7346,7 +7343,7 @@ var Xd = (
|
|
|
7346
7343
|
if (this.resource = (n = i.resource) !== null && n !== void 0 ? n : Ft.empty(), i.mergeResourceWithDefaults && (this.resource = Ft.default().merge(this.resource)), this._config = Object.assign({}, i, {
|
|
7347
7344
|
resource: this.resource
|
|
7348
7345
|
}), !((r = e.spanProcessors) === null || r === void 0) && r.length)
|
|
7349
|
-
this._registeredSpanProcessors = qd([], zd(e.spanProcessors), !1), this.activeSpanProcessor = new
|
|
7346
|
+
this._registeredSpanProcessors = qd([], zd(e.spanProcessors), !1), this.activeSpanProcessor = new wo(this._registeredSpanProcessors);
|
|
7350
7347
|
else {
|
|
7351
7348
|
var o = this._buildExporterFromEnv();
|
|
7352
7349
|
if (o !== void 0) {
|
|
@@ -7362,7 +7359,7 @@ var Xd = (
|
|
|
7362
7359
|
}, t.prototype.addSpanProcessor = function(e) {
|
|
7363
7360
|
this._registeredSpanProcessors.length === 0 && this.activeSpanProcessor.shutdown().catch(function(n) {
|
|
7364
7361
|
return E.error("Error while trying to shutdown current span processor", n);
|
|
7365
|
-
}), this._registeredSpanProcessors.push(e), this.activeSpanProcessor = new
|
|
7362
|
+
}), this._registeredSpanProcessors.push(e), this.activeSpanProcessor = new wo(this._registeredSpanProcessors);
|
|
7366
7363
|
}, t.prototype.getActiveSpanProcessor = function() {
|
|
7367
7364
|
return this.activeSpanProcessor;
|
|
7368
7365
|
}, t.prototype.register = function(e) {
|
|
@@ -7523,9 +7520,9 @@ var Xd = (
|
|
|
7523
7520
|
(function(t) {
|
|
7524
7521
|
t.CONNECT_END = "connectEnd", t.CONNECT_START = "connectStart", t.DECODED_BODY_SIZE = "decodedBodySize", t.DOM_COMPLETE = "domComplete", t.DOM_CONTENT_LOADED_EVENT_END = "domContentLoadedEventEnd", t.DOM_CONTENT_LOADED_EVENT_START = "domContentLoadedEventStart", t.DOM_INTERACTIVE = "domInteractive", t.DOMAIN_LOOKUP_END = "domainLookupEnd", t.DOMAIN_LOOKUP_START = "domainLookupStart", t.ENCODED_BODY_SIZE = "encodedBodySize", t.FETCH_START = "fetchStart", t.LOAD_EVENT_END = "loadEventEnd", t.LOAD_EVENT_START = "loadEventStart", t.NAVIGATION_START = "navigationStart", t.REDIRECT_END = "redirectEnd", t.REDIRECT_START = "redirectStart", t.REQUEST_START = "requestStart", t.RESPONSE_END = "responseEnd", t.RESPONSE_START = "responseStart", t.SECURE_CONNECTION_START = "secureConnectionStart", t.UNLOAD_EVENT_END = "unloadEventEnd", t.UNLOAD_EVENT_START = "unloadEventStart";
|
|
7525
7522
|
})(S || (S = {}));
|
|
7526
|
-
var
|
|
7523
|
+
var _r;
|
|
7527
7524
|
function Qd() {
|
|
7528
|
-
return
|
|
7525
|
+
return _r || (_r = document.createElement("a")), _r;
|
|
7529
7526
|
}
|
|
7530
7527
|
function Ie(t, e) {
|
|
7531
7528
|
return e in t;
|
|
@@ -7643,14 +7640,14 @@ function ks(t, e) {
|
|
|
7643
7640
|
return Es(t, i);
|
|
7644
7641
|
});
|
|
7645
7642
|
}
|
|
7646
|
-
var
|
|
7647
|
-
return
|
|
7643
|
+
var ni = function() {
|
|
7644
|
+
return ni = Object.assign || function(t) {
|
|
7648
7645
|
for (var e, n = 1, r = arguments.length; n < r; n++) {
|
|
7649
7646
|
e = arguments[n];
|
|
7650
7647
|
for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
|
|
7651
7648
|
}
|
|
7652
7649
|
return t;
|
|
7653
|
-
},
|
|
7650
|
+
}, ni.apply(this, arguments);
|
|
7654
7651
|
}, iv = (
|
|
7655
7652
|
/** @class */
|
|
7656
7653
|
function() {
|
|
@@ -7684,7 +7681,7 @@ var ti = function() {
|
|
|
7684
7681
|
}, t.prototype.getConfig = function() {
|
|
7685
7682
|
return this._config;
|
|
7686
7683
|
}, t.prototype.setConfig = function(e) {
|
|
7687
|
-
this._config =
|
|
7684
|
+
this._config = ni({ enabled: !0 }, e);
|
|
7688
7685
|
}, t.prototype.setTracerProvider = function(e) {
|
|
7689
7686
|
this._tracer = e.getTracer(this.instrumentationName, this.instrumentationVersion);
|
|
7690
7687
|
}, Object.defineProperty(t.prototype, "tracer", {
|
|
@@ -7731,7 +7728,7 @@ var ti = function() {
|
|
|
7731
7728
|
return e;
|
|
7732
7729
|
}(iv)
|
|
7733
7730
|
);
|
|
7734
|
-
function
|
|
7731
|
+
function So(t, e, n) {
|
|
7735
7732
|
var r, i;
|
|
7736
7733
|
try {
|
|
7737
7734
|
i = t();
|
|
@@ -7746,7 +7743,7 @@ var Pt;
|
|
|
7746
7743
|
t.DOCUMENT_LOAD = "documentLoad", t.DOCUMENT_FETCH = "documentFetch", t.RESOURCE_FETCH = "resourceFetch";
|
|
7747
7744
|
})(Pt || (Pt = {}));
|
|
7748
7745
|
var sv = "0.44.0", uv = "@opentelemetry/instrumentation-document-load";
|
|
7749
|
-
const cv = "http.url", lv = "http.user_agent",
|
|
7746
|
+
const cv = "http.url", lv = "http.user_agent", br = cv, pv = lv;
|
|
7750
7747
|
var Ln;
|
|
7751
7748
|
(function(t) {
|
|
7752
7749
|
t.FIRST_PAINT = "firstPaint", t.FIRST_CONTENTFUL_PAINT = "firstContentfulPaint";
|
|
@@ -7774,14 +7771,14 @@ var fv = function() {
|
|
|
7774
7771
|
}
|
|
7775
7772
|
}
|
|
7776
7773
|
return n;
|
|
7777
|
-
},
|
|
7774
|
+
}, Oo = {
|
|
7778
7775
|
"first-paint": Ln.FIRST_PAINT,
|
|
7779
7776
|
"first-contentful-paint": Ln.FIRST_CONTENTFUL_PAINT
|
|
7780
7777
|
}, hv = function(t) {
|
|
7781
7778
|
var e, n, r = (n = (e = oe).getEntriesByType) === null || n === void 0 ? void 0 : n.call(e, "paint");
|
|
7782
7779
|
r && r.forEach(function(i) {
|
|
7783
7780
|
var o = i.name, a = i.startTime;
|
|
7784
|
-
Ie(
|
|
7781
|
+
Ie(Oo, o) && t.addEvent(Oo[o], a);
|
|
7785
7782
|
});
|
|
7786
7783
|
}, dv = /* @__PURE__ */ function() {
|
|
7787
7784
|
var t = function(e, n) {
|
|
@@ -7828,17 +7825,17 @@ var fv = function() {
|
|
|
7828
7825
|
var a, u = n._startSpan(Pt.DOCUMENT_LOAD, S.FETCH_START, i);
|
|
7829
7826
|
u && (C.with(R.setSpan(C.active(), u), function() {
|
|
7830
7827
|
var c = n._startSpan(Pt.DOCUMENT_FETCH, S.FETCH_START, i);
|
|
7831
|
-
c && (c.setAttribute(
|
|
7828
|
+
c && (c.setAttribute(br, location.href), C.with(R.setSpan(C.active(), c), function() {
|
|
7832
7829
|
var s;
|
|
7833
7830
|
n.getConfig().ignoreNetworkEvents || dt(c, i), n._addCustomAttributesOnSpan(c, (s = n.getConfig().applyCustomAttributesOnSpan) === null || s === void 0 ? void 0 : s.documentFetch), n._endSpan(c, S.RESPONSE_END, i);
|
|
7834
7831
|
}));
|
|
7835
|
-
}), u.setAttribute(
|
|
7832
|
+
}), u.setAttribute(br, location.href), u.setAttribute(pv, navigator.userAgent), n._addResourcesSpans(u), n.getConfig().ignoreNetworkEvents || (V(u, S.FETCH_START, i), V(u, S.UNLOAD_EVENT_START, i), V(u, S.UNLOAD_EVENT_END, i), V(u, S.DOM_INTERACTIVE, i), V(u, S.DOM_CONTENT_LOADED_EVENT_START, i), V(u, S.DOM_CONTENT_LOADED_EVENT_END, i), V(u, S.DOM_COMPLETE, i), V(u, S.LOAD_EVENT_START, i), V(u, S.LOAD_EVENT_END, i)), n.getConfig().ignorePerformancePaintEvents || hv(u), n._addCustomAttributesOnSpan(u, (a = n.getConfig().applyCustomAttributesOnSpan) === null || a === void 0 ? void 0 : a.documentLoad), n._endSpan(u, S.LOAD_EVENT_END, i));
|
|
7836
7833
|
});
|
|
7837
7834
|
}, e.prototype._endSpan = function(n, r, i) {
|
|
7838
7835
|
n && (Ie(i, r) ? n.end(i[r]) : n.end());
|
|
7839
7836
|
}, e.prototype._initResourceSpan = function(n, r) {
|
|
7840
7837
|
var i, o = this._startSpan(Pt.RESOURCE_FETCH, S.FETCH_START, n, r);
|
|
7841
|
-
o && (o.setAttribute(
|
|
7838
|
+
o && (o.setAttribute(br, n.name), this.getConfig().ignoreNetworkEvents || dt(o, n), this._addCustomAttributesOnResourceSpan(o, n, (i = this.getConfig().applyCustomAttributesOnSpan) === null || i === void 0 ? void 0 : i.resourceFetch), this._endSpan(o, S.RESPONSE_END, n));
|
|
7842
7839
|
}, e.prototype._startSpan = function(n, r, i, o) {
|
|
7843
7840
|
if (Ie(i, r) && typeof i[r] == "number") {
|
|
7844
7841
|
var a = this.tracer.startSpan(n, {
|
|
@@ -7850,14 +7847,14 @@ var fv = function() {
|
|
|
7850
7847
|
window.document.readyState === "complete" ? this._onDocumentLoaded() : (this._onDocumentLoaded = this._onDocumentLoaded.bind(this), window.addEventListener("load", this._onDocumentLoaded));
|
|
7851
7848
|
}, e.prototype._addCustomAttributesOnSpan = function(n, r) {
|
|
7852
7849
|
var i = this;
|
|
7853
|
-
r &&
|
|
7850
|
+
r && So(function() {
|
|
7854
7851
|
return r(n);
|
|
7855
7852
|
}, function(o) {
|
|
7856
7853
|
o && i._diag.error("addCustomAttributesOnSpan", o);
|
|
7857
7854
|
});
|
|
7858
7855
|
}, e.prototype._addCustomAttributesOnResourceSpan = function(n, r, i) {
|
|
7859
7856
|
var o = this;
|
|
7860
|
-
i &&
|
|
7857
|
+
i && So(function() {
|
|
7861
7858
|
return i(n, r);
|
|
7862
7859
|
}, function(a) {
|
|
7863
7860
|
a && o._diag.error("addCustomAttributesOnResourceSpan", a);
|
|
@@ -7868,14 +7865,14 @@ var fv = function() {
|
|
|
7868
7865
|
window.removeEventListener("load", this._onDocumentLoaded);
|
|
7869
7866
|
}, e;
|
|
7870
7867
|
}(av)
|
|
7871
|
-
),
|
|
7872
|
-
return
|
|
7868
|
+
), ri = function() {
|
|
7869
|
+
return ri = Object.assign || function(t) {
|
|
7873
7870
|
for (var e, n = 1, r = arguments.length; n < r; n++) {
|
|
7874
7871
|
e = arguments[n];
|
|
7875
7872
|
for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
|
|
7876
7873
|
}
|
|
7877
7874
|
return t;
|
|
7878
|
-
},
|
|
7875
|
+
}, ri.apply(this, arguments);
|
|
7879
7876
|
}, mv = (
|
|
7880
7877
|
/** @class */
|
|
7881
7878
|
function() {
|
|
@@ -7909,7 +7906,7 @@ var fv = function() {
|
|
|
7909
7906
|
}, t.prototype.getConfig = function() {
|
|
7910
7907
|
return this._config;
|
|
7911
7908
|
}, t.prototype.setConfig = function(e) {
|
|
7912
|
-
this._config =
|
|
7909
|
+
this._config = ri({ enabled: !0 }, e);
|
|
7913
7910
|
}, t.prototype.setTracerProvider = function(e) {
|
|
7914
7911
|
this._tracer = e.getTracer(this.instrumentationName, this.instrumentationVersion);
|
|
7915
7912
|
}, Object.defineProperty(t.prototype, "tracer", {
|
|
@@ -8101,7 +8098,7 @@ function jv() {
|
|
|
8101
8098
|
} else {
|
|
8102
8099
|
var a = t[0];
|
|
8103
8100
|
return a != null && a.body ? a.clone().text().then(function(u) {
|
|
8104
|
-
return
|
|
8101
|
+
return ii(u);
|
|
8105
8102
|
}) : Promise.resolve();
|
|
8106
8103
|
}
|
|
8107
8104
|
}
|
|
@@ -8151,13 +8148,13 @@ function Fv(t) {
|
|
|
8151
8148
|
if (t instanceof FormData)
|
|
8152
8149
|
return Hv(t);
|
|
8153
8150
|
if (t instanceof URLSearchParams)
|
|
8154
|
-
return
|
|
8151
|
+
return ii(t.toString());
|
|
8155
8152
|
if (typeof t == "string")
|
|
8156
|
-
return
|
|
8153
|
+
return ii(t);
|
|
8157
8154
|
Ms.warn("unknown body type");
|
|
8158
8155
|
}
|
|
8159
8156
|
var Vv = new TextEncoder();
|
|
8160
|
-
function
|
|
8157
|
+
function ii(t) {
|
|
8161
8158
|
return Vv.encode(t).byteLength;
|
|
8162
8159
|
}
|
|
8163
8160
|
function Hv(t) {
|
|
@@ -8178,7 +8175,7 @@ function Hv(t) {
|
|
|
8178
8175
|
}
|
|
8179
8176
|
return r;
|
|
8180
8177
|
}
|
|
8181
|
-
var
|
|
8178
|
+
var Ao = "0.57.2", Gv = /* @__PURE__ */ function() {
|
|
8182
8179
|
var t = function(e, n) {
|
|
8183
8180
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
8184
8181
|
r.__proto__ = i;
|
|
@@ -8215,14 +8212,14 @@ var Oo = "0.57.2", Gv = /* @__PURE__ */ function() {
|
|
|
8215
8212
|
if (arguments.length === 2) for (var r = 0, i = e.length, o; r < i; r++)
|
|
8216
8213
|
(o || !(r in e)) && (o || (o = Array.prototype.slice.call(e, 0, r)), o[r] = e[r]);
|
|
8217
8214
|
return t.concat(o || Array.prototype.slice.call(e));
|
|
8218
|
-
},
|
|
8215
|
+
}, Er, Xv = 300, xo = typeof process == "object" && ((Er = process.release) === null || Er === void 0 ? void 0 : Er.name) === "node", Kv = (
|
|
8219
8216
|
/** @class */
|
|
8220
8217
|
function(t) {
|
|
8221
8218
|
Gv(e, t);
|
|
8222
8219
|
function e(n) {
|
|
8223
8220
|
n === void 0 && (n = {});
|
|
8224
|
-
var r = t.call(this, "@opentelemetry/instrumentation-fetch",
|
|
8225
|
-
return r.component = "fetch", r.version =
|
|
8221
|
+
var r = t.call(this, "@opentelemetry/instrumentation-fetch", Ao, n) || this;
|
|
8222
|
+
return r.component = "fetch", r.version = Ao, r.moduleName = r.component, r._usedResources = /* @__PURE__ */ new WeakSet(), r._tasksCount = 0, r;
|
|
8226
8223
|
}
|
|
8227
8224
|
return e.prototype.init = function() {
|
|
8228
8225
|
}, e.prototype._addChildSpan = function(n, r) {
|
|
@@ -8380,23 +8377,23 @@ var Oo = "0.57.2", Gv = /* @__PURE__ */ function() {
|
|
|
8380
8377
|
entryTypes: ["resource"]
|
|
8381
8378
|
}), { entries: i, observer: o, startTime: r, spanUrl: n };
|
|
8382
8379
|
}, e.prototype.enable = function() {
|
|
8383
|
-
if (
|
|
8380
|
+
if (xo) {
|
|
8384
8381
|
this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()");
|
|
8385
8382
|
return;
|
|
8386
8383
|
}
|
|
8387
8384
|
bv(fetch) && (this._unwrap(Rt, "fetch"), this._diag.debug("removing previous patch for constructor")), this._wrap(Rt, "fetch", this._patchConstructor());
|
|
8388
8385
|
}, e.prototype.disable = function() {
|
|
8389
|
-
|
|
8386
|
+
xo || (this._unwrap(Rt, "fetch"), this._usedResources = /* @__PURE__ */ new WeakSet());
|
|
8390
8387
|
}, e;
|
|
8391
8388
|
}(gv)
|
|
8392
|
-
),
|
|
8393
|
-
return
|
|
8389
|
+
), oi = function() {
|
|
8390
|
+
return oi = Object.assign || function(t) {
|
|
8394
8391
|
for (var e, n = 1, r = arguments.length; n < r; n++) {
|
|
8395
8392
|
e = arguments[n];
|
|
8396
8393
|
for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
|
|
8397
8394
|
}
|
|
8398
8395
|
return t;
|
|
8399
|
-
},
|
|
8396
|
+
}, oi.apply(this, arguments);
|
|
8400
8397
|
}, Wv = (
|
|
8401
8398
|
/** @class */
|
|
8402
8399
|
function() {
|
|
@@ -8430,7 +8427,7 @@ var Oo = "0.57.2", Gv = /* @__PURE__ */ function() {
|
|
|
8430
8427
|
}, t.prototype.getConfig = function() {
|
|
8431
8428
|
return this._config;
|
|
8432
8429
|
}, t.prototype.setConfig = function(e) {
|
|
8433
|
-
this._config =
|
|
8430
|
+
this._config = oi({ enabled: !0 }, e);
|
|
8434
8431
|
}, t.prototype.setTracerProvider = function(e) {
|
|
8435
8432
|
this._tracer = e.getTracer(this.instrumentationName, this.instrumentationVersion);
|
|
8436
8433
|
}, Object.defineProperty(t.prototype, "tracer", {
|
|
@@ -8487,7 +8484,7 @@ function Qv(t, e, n) {
|
|
|
8487
8484
|
return e(r, i), i;
|
|
8488
8485
|
}
|
|
8489
8486
|
}
|
|
8490
|
-
function
|
|
8487
|
+
function No(t) {
|
|
8491
8488
|
return typeof t == "function" && typeof t.__original == "function" && typeof t.__unwrap == "function" && t.__wrapped === !0;
|
|
8492
8489
|
}
|
|
8493
8490
|
var Zv = "http.method", em = "http.url", tm = "http.host", nm = "http.scheme", rm = "http.status_code", im = "http.user_agent", om = "http.request_content_length_uncompressed", am = Zv, sm = em, um = tm, cm = nm, lm = rm, pm = im, fm = om, ge;
|
|
@@ -8532,13 +8529,13 @@ function mm(t) {
|
|
|
8532
8529
|
if (t instanceof FormData)
|
|
8533
8530
|
return gm(t);
|
|
8534
8531
|
if (t instanceof URLSearchParams)
|
|
8535
|
-
return
|
|
8532
|
+
return Co(t.toString());
|
|
8536
8533
|
if (typeof t == "string")
|
|
8537
|
-
return
|
|
8534
|
+
return Co(t);
|
|
8538
8535
|
vm.warn("unknown body type");
|
|
8539
8536
|
}
|
|
8540
8537
|
var ym = new TextEncoder();
|
|
8541
|
-
function
|
|
8538
|
+
function Co(t) {
|
|
8542
8539
|
return ym.encode(t).byteLength;
|
|
8543
8540
|
}
|
|
8544
8541
|
function gm(t) {
|
|
@@ -8559,10 +8556,10 @@ function gm(t) {
|
|
|
8559
8556
|
}
|
|
8560
8557
|
return r;
|
|
8561
8558
|
}
|
|
8562
|
-
var
|
|
8559
|
+
var Lo = "0.57.2", ai;
|
|
8563
8560
|
(function(t) {
|
|
8564
8561
|
t.HTTP_STATUS_TEXT = "http.status_text";
|
|
8565
|
-
})(
|
|
8562
|
+
})(ai || (ai = {}));
|
|
8566
8563
|
var _m = /* @__PURE__ */ function() {
|
|
8567
8564
|
var t = function(e, n) {
|
|
8568
8565
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
@@ -8586,8 +8583,8 @@ var _m = /* @__PURE__ */ function() {
|
|
|
8586
8583
|
_m(e, t);
|
|
8587
8584
|
function e(n) {
|
|
8588
8585
|
n === void 0 && (n = {});
|
|
8589
|
-
var r = t.call(this, "@opentelemetry/instrumentation-xml-http-request",
|
|
8590
|
-
return r.component = "xml-http-request", r.version =
|
|
8586
|
+
var r = t.call(this, "@opentelemetry/instrumentation-xml-http-request", Lo, n) || this;
|
|
8587
|
+
return r.component = "xml-http-request", r.version = Lo, r.moduleName = r.component, r._tasksCount = 0, r._xhrMem = /* @__PURE__ */ new WeakMap(), r._usedResources = /* @__PURE__ */ new WeakSet(), r;
|
|
8591
8588
|
}
|
|
8592
8589
|
return e.prototype.init = function() {
|
|
8593
8590
|
}, e.prototype._addHeaders = function(n, r) {
|
|
@@ -8612,7 +8609,7 @@ var _m = /* @__PURE__ */ function() {
|
|
|
8612
8609
|
}, e.prototype._addFinalSpanAttributes = function(n, r, i) {
|
|
8613
8610
|
if (typeof i == "string") {
|
|
8614
8611
|
var o = _e(i);
|
|
8615
|
-
r.status !== void 0 && n.setAttribute(lm, r.status), r.statusText !== void 0 && n.setAttribute(
|
|
8612
|
+
r.status !== void 0 && n.setAttribute(lm, r.status), r.statusText !== void 0 && n.setAttribute(ai.HTTP_STATUS_TEXT, r.statusText), n.setAttribute(um, o.host), n.setAttribute(cm, o.protocol.replace(":", "")), n.setAttribute(pm, navigator.userAgent);
|
|
8616
8613
|
}
|
|
8617
8614
|
}, e.prototype._applyAttributesAfterXHR = function(n, r) {
|
|
8618
8615
|
var i = this, o = this.getConfig().applyCustomAttributesOnSpan;
|
|
@@ -8739,7 +8736,7 @@ var _m = /* @__PURE__ */ function() {
|
|
|
8739
8736
|
};
|
|
8740
8737
|
};
|
|
8741
8738
|
}, e.prototype.enable = function() {
|
|
8742
|
-
this._diag.debug("applying patch to", this.moduleName, this.version),
|
|
8739
|
+
this._diag.debug("applying patch to", this.moduleName, this.version), No(XMLHttpRequest.prototype.open) && (this._unwrap(XMLHttpRequest.prototype, "open"), this._diag.debug("removing previous patch from method open")), No(XMLHttpRequest.prototype.send) && (this._unwrap(XMLHttpRequest.prototype, "send"), this._diag.debug("removing previous patch from method send")), this._wrap(XMLHttpRequest.prototype, "open", this._patchOpen()), this._wrap(XMLHttpRequest.prototype, "send", this._patchSend());
|
|
8743
8740
|
}, e.prototype.disable = function() {
|
|
8744
8741
|
this._diag.debug("removing patch from", this.moduleName, this.version), this._unwrap(XMLHttpRequest.prototype, "open"), this._unwrap(XMLHttpRequest.prototype, "send"), this._tasksCount = 0, this._xhrMem = /* @__PURE__ */ new WeakMap(), this._usedResources = /* @__PURE__ */ new WeakSet();
|
|
8745
8742
|
}, e;
|
|
@@ -8783,14 +8780,14 @@ const Nm = (t) => ["events.ld.catamorphic.com", "events.launchdarkly.com"].some(
|
|
|
8783
8780
|
return i.forEach((a) => {
|
|
8784
8781
|
t.match(a) && (o = !0);
|
|
8785
8782
|
}), o;
|
|
8786
|
-
},
|
|
8783
|
+
}, Ro = 64 * 1024, Pm = {
|
|
8787
8784
|
"application/json": 64 * 1024 * 1024,
|
|
8788
8785
|
// MB
|
|
8789
8786
|
"text/plain": 64 * 1024 * 1024
|
|
8790
8787
|
// MB
|
|
8791
8788
|
}, Ds = (t, e, n, r) => {
|
|
8792
8789
|
var i, o, a;
|
|
8793
|
-
let u =
|
|
8790
|
+
let u = Ro;
|
|
8794
8791
|
if (r) {
|
|
8795
8792
|
let c = "";
|
|
8796
8793
|
typeof r.get == "function" ? c = (i = r.get("content-type")) != null ? i : "" : c = (o = r["content-type"]) != null ? o : "";
|
|
@@ -8798,7 +8795,7 @@ const Nm = (t) => ["events.ld.catamorphic.com", "events.launchdarkly.com"].some(
|
|
|
8798
8795
|
c = c.split(";")[0];
|
|
8799
8796
|
} catch {
|
|
8800
8797
|
}
|
|
8801
|
-
u = (a = Pm[c]) != null ? a :
|
|
8798
|
+
u = (a = Pm[c]) != null ? a : Ro;
|
|
8802
8799
|
}
|
|
8803
8800
|
if (t) {
|
|
8804
8801
|
if (e)
|
|
@@ -8883,7 +8880,7 @@ var Us = (
|
|
|
8883
8880
|
}
|
|
8884
8881
|
e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
|
|
8885
8882
|
};
|
|
8886
|
-
}(),
|
|
8883
|
+
}(), Io = (
|
|
8887
8884
|
/** @class */
|
|
8888
8885
|
function(t) {
|
|
8889
8886
|
Mm(e, t);
|
|
@@ -9183,10 +9180,10 @@ var qm = function(t, e, n, r) {
|
|
|
9183
9180
|
return;
|
|
9184
9181
|
} else o.status === "retryable" ? n({
|
|
9185
9182
|
code: q.FAILED,
|
|
9186
|
-
error: new
|
|
9183
|
+
error: new Io("Export failed with retryable status")
|
|
9187
9184
|
}) : n({
|
|
9188
9185
|
code: q.FAILED,
|
|
9189
|
-
error: new
|
|
9186
|
+
error: new Io("Export failed with unknown error")
|
|
9190
9187
|
});
|
|
9191
9188
|
}, function(o) {
|
|
9192
9189
|
return n({
|
|
@@ -9240,16 +9237,16 @@ function Jm(t) {
|
|
|
9240
9237
|
return e.toString();
|
|
9241
9238
|
}
|
|
9242
9239
|
var Qm = typeof BigInt < "u" ? Jm : be;
|
|
9243
|
-
function
|
|
9240
|
+
function Po(t) {
|
|
9244
9241
|
return t;
|
|
9245
9242
|
}
|
|
9246
9243
|
function Fs(t) {
|
|
9247
9244
|
if (t !== void 0)
|
|
9248
|
-
return
|
|
9245
|
+
return Li(t);
|
|
9249
9246
|
}
|
|
9250
9247
|
var Zm = {
|
|
9251
9248
|
encodeHrTime: Bs,
|
|
9252
|
-
encodeSpanContext:
|
|
9249
|
+
encodeSpanContext: Li,
|
|
9253
9250
|
encodeOptionalSpanContext: Fs
|
|
9254
9251
|
};
|
|
9255
9252
|
function Vs(t) {
|
|
@@ -9259,8 +9256,8 @@ function Vs(t) {
|
|
|
9259
9256
|
var r = (e = t.useLongBits) !== null && e !== void 0 ? e : !0, i = (n = t.useHex) !== null && n !== void 0 ? n : !1;
|
|
9260
9257
|
return {
|
|
9261
9258
|
encodeHrTime: r ? Bs : Qm,
|
|
9262
|
-
encodeSpanContext: i ?
|
|
9263
|
-
encodeOptionalSpanContext: i ?
|
|
9259
|
+
encodeSpanContext: i ? Po : Li,
|
|
9260
|
+
encodeOptionalSpanContext: i ? Po : Fs
|
|
9264
9261
|
};
|
|
9265
9262
|
}
|
|
9266
9263
|
var ey = function(t, e) {
|
|
@@ -9339,7 +9336,7 @@ var ty = /* @__PURE__ */ function() {
|
|
|
9339
9336
|
}
|
|
9340
9337
|
e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
|
|
9341
9338
|
};
|
|
9342
|
-
}(),
|
|
9339
|
+
}(), ko = function(t, e, n, r) {
|
|
9343
9340
|
function i(o) {
|
|
9344
9341
|
return o instanceof n ? o : new n(function(a) {
|
|
9345
9342
|
a(o);
|
|
@@ -9365,7 +9362,7 @@ var ty = /* @__PURE__ */ function() {
|
|
|
9365
9362
|
}
|
|
9366
9363
|
s((r = r.apply(t, [])).next());
|
|
9367
9364
|
});
|
|
9368
|
-
},
|
|
9365
|
+
}, Mo = function(t, e) {
|
|
9369
9366
|
var n = { label: 0, sent: function() {
|
|
9370
9367
|
if (o[0] & 1) throw o[1];
|
|
9371
9368
|
return o[1];
|
|
@@ -9491,13 +9488,13 @@ function Vt(t, e) {
|
|
|
9491
9488
|
});
|
|
9492
9489
|
}
|
|
9493
9490
|
function sy(t) {
|
|
9494
|
-
return
|
|
9491
|
+
return ko(this, void 0, void 0, function() {
|
|
9495
9492
|
var e = this;
|
|
9496
|
-
return
|
|
9493
|
+
return Mo(this, function(n) {
|
|
9497
9494
|
return [2, Promise.all(t.map(function(r) {
|
|
9498
|
-
return
|
|
9495
|
+
return ko(e, void 0, void 0, function() {
|
|
9499
9496
|
var i, o;
|
|
9500
|
-
return
|
|
9497
|
+
return Mo(this, function(a) {
|
|
9501
9498
|
switch (a.label) {
|
|
9502
9499
|
case 0:
|
|
9503
9500
|
return a.trys.push([0, 2, , 3]), [4, r];
|
|
@@ -9526,7 +9523,7 @@ function sy(t) {
|
|
|
9526
9523
|
function uy(t) {
|
|
9527
9524
|
return t.status === "rejected";
|
|
9528
9525
|
}
|
|
9529
|
-
function
|
|
9526
|
+
function Do(t, e) {
|
|
9530
9527
|
var n = [];
|
|
9531
9528
|
return t.forEach(function(r) {
|
|
9532
9529
|
n.push.apply(n, ry([], ny(e(r)), !1));
|
|
@@ -9645,7 +9642,7 @@ function gy(t) {
|
|
|
9645
9642
|
max: -1 / 0
|
|
9646
9643
|
};
|
|
9647
9644
|
}
|
|
9648
|
-
var
|
|
9645
|
+
var Tr = (
|
|
9649
9646
|
/** @class */
|
|
9650
9647
|
function() {
|
|
9651
9648
|
function t(e, n, r, i) {
|
|
@@ -9670,12 +9667,12 @@ var Er = (
|
|
|
9670
9667
|
this._boundaries = e, this._recordMinMax = n, this.kind = He.HISTOGRAM;
|
|
9671
9668
|
}
|
|
9672
9669
|
return t.prototype.createAccumulation = function(e) {
|
|
9673
|
-
return new
|
|
9670
|
+
return new Tr(e, this._boundaries, this._recordMinMax);
|
|
9674
9671
|
}, t.prototype.merge = function(e, n) {
|
|
9675
9672
|
for (var r = e.toPointValue(), i = n.toPointValue(), o = r.buckets.counts, a = i.buckets.counts, u = new Array(o.length), c = 0; c < o.length; c++)
|
|
9676
9673
|
u[c] = o[c] + a[c];
|
|
9677
9674
|
var s = 1 / 0, l = -1 / 0;
|
|
9678
|
-
return this._recordMinMax && (r.hasMinMax && i.hasMinMax ? (s = Math.min(r.min, i.min), l = Math.max(r.max, i.max)) : r.hasMinMax ? (s = r.min, l = r.max) : i.hasMinMax && (s = i.min, l = i.max)), new
|
|
9675
|
+
return this._recordMinMax && (r.hasMinMax && i.hasMinMax ? (s = Math.min(r.min, i.min), l = Math.max(r.max, i.max)) : r.hasMinMax ? (s = r.min, l = r.max) : i.hasMinMax && (s = i.min, l = i.max)), new Tr(e.startTime, r.buckets.boundaries, this._recordMinMax, {
|
|
9679
9676
|
buckets: {
|
|
9680
9677
|
boundaries: r.buckets.boundaries,
|
|
9681
9678
|
counts: u
|
|
@@ -9689,7 +9686,7 @@ var Er = (
|
|
|
9689
9686
|
}, t.prototype.diff = function(e, n) {
|
|
9690
9687
|
for (var r = e.toPointValue(), i = n.toPointValue(), o = r.buckets.counts, a = i.buckets.counts, u = new Array(o.length), c = 0; c < o.length; c++)
|
|
9691
9688
|
u[c] = a[c] - o[c];
|
|
9692
|
-
return new
|
|
9689
|
+
return new Tr(n.startTime, r.buckets.boundaries, this._recordMinMax, {
|
|
9693
9690
|
buckets: {
|
|
9694
9691
|
boundaries: r.buckets.boundaries,
|
|
9695
9692
|
counts: u
|
|
@@ -9723,7 +9720,7 @@ var Er = (
|
|
|
9723
9720
|
};
|
|
9724
9721
|
}, t;
|
|
9725
9722
|
}()
|
|
9726
|
-
),
|
|
9723
|
+
), wr = function(t, e) {
|
|
9727
9724
|
var n = typeof Symbol == "function" && t[Symbol.iterator];
|
|
9728
9725
|
if (!n) return t;
|
|
9729
9726
|
var r = n.call(t), i, o = [], a;
|
|
@@ -9739,11 +9736,11 @@ var Er = (
|
|
|
9739
9736
|
}
|
|
9740
9737
|
}
|
|
9741
9738
|
return o;
|
|
9742
|
-
},
|
|
9739
|
+
}, Sr = function(t, e, n) {
|
|
9743
9740
|
if (arguments.length === 2) for (var r = 0, i = e.length, o; r < i; r++)
|
|
9744
9741
|
(o || !(r in e)) && (o || (o = Array.prototype.slice.call(e, 0, r)), o[r] = e[r]);
|
|
9745
9742
|
return t.concat(o || Array.prototype.slice.call(e));
|
|
9746
|
-
},
|
|
9743
|
+
}, Uo = (
|
|
9747
9744
|
/** @class */
|
|
9748
9745
|
function() {
|
|
9749
9746
|
function t(e, n, r, i) {
|
|
@@ -9835,10 +9832,10 @@ var Er = (
|
|
|
9835
9832
|
return this._counts[e];
|
|
9836
9833
|
}, t.prototype.growTo = function(e, n, r) {
|
|
9837
9834
|
var i = new Array(e).fill(0);
|
|
9838
|
-
i.splice.apply(i,
|
|
9835
|
+
i.splice.apply(i, Sr([
|
|
9839
9836
|
r,
|
|
9840
9837
|
this._counts.length - n
|
|
9841
|
-
],
|
|
9838
|
+
], wr(this._counts.slice(n)), !1)), i.splice.apply(i, Sr([0, n], wr(this._counts.slice(0, n)), !1)), this._counts = i;
|
|
9842
9839
|
}, t.prototype.reverse = function(e, n) {
|
|
9843
9840
|
for (var r = Math.floor((e + n) / 2) - e, i = 0; i < r; i++) {
|
|
9844
9841
|
var o = this._counts[e + i];
|
|
@@ -9852,15 +9849,15 @@ var Er = (
|
|
|
9852
9849
|
}, t.prototype.decrement = function(e, n) {
|
|
9853
9850
|
this._counts[e] >= n ? this._counts[e] -= n : this._counts[e] = 0;
|
|
9854
9851
|
}, t.prototype.clone = function() {
|
|
9855
|
-
return new t(
|
|
9852
|
+
return new t(Sr([], wr(this._counts), !1));
|
|
9856
9853
|
}, t;
|
|
9857
9854
|
}()
|
|
9858
|
-
), by = 52, Ey = 2146435072, Ty = 1048575,
|
|
9855
|
+
), by = 52, Ey = 2146435072, Ty = 1048575, Pi = 1023, Ys = -Pi + 1, Js = Pi, si = Math.pow(2, -1022);
|
|
9859
9856
|
function Qs(t) {
|
|
9860
9857
|
var e = new DataView(new ArrayBuffer(8));
|
|
9861
9858
|
e.setFloat64(0, t);
|
|
9862
9859
|
var n = e.getUint32(0), r = (n & Ey) >> 20;
|
|
9863
|
-
return r -
|
|
9860
|
+
return r - Pi;
|
|
9864
9861
|
}
|
|
9865
9862
|
function Zs(t) {
|
|
9866
9863
|
var e = new DataView(new ArrayBuffer(8));
|
|
@@ -9868,7 +9865,7 @@ function Zs(t) {
|
|
|
9868
9865
|
var n = e.getUint32(0), r = e.getUint32(4), i = (n & Ty) * Math.pow(2, 32);
|
|
9869
9866
|
return i + r;
|
|
9870
9867
|
}
|
|
9871
|
-
function
|
|
9868
|
+
function ui(t, e) {
|
|
9872
9869
|
return t === 0 || t === Number.POSITIVE_INFINITY || t === Number.NEGATIVE_INFINITY || Number.isNaN(t) ? t : t * Math.pow(2, e);
|
|
9873
9870
|
}
|
|
9874
9871
|
function wy(t) {
|
|
@@ -9907,7 +9904,7 @@ var Sy = /* @__PURE__ */ function() {
|
|
|
9907
9904
|
this._shift = -e;
|
|
9908
9905
|
}
|
|
9909
9906
|
return t.prototype.mapToIndex = function(e) {
|
|
9910
|
-
if (e <
|
|
9907
|
+
if (e < si)
|
|
9911
9908
|
return this._minNormalLowerBoundaryIndex();
|
|
9912
9909
|
var n = Qs(e), r = this._rightShift(Zs(e) - 1, by);
|
|
9913
9910
|
return n + r >> this._shift;
|
|
@@ -9918,7 +9915,7 @@ var Sy = /* @__PURE__ */ function() {
|
|
|
9918
9915
|
var r = this._maxNormalLowerBoundaryIndex();
|
|
9919
9916
|
if (e > r)
|
|
9920
9917
|
throw new Ht("overflow: " + e + " is > maximum lower boundary: " + r);
|
|
9921
|
-
return
|
|
9918
|
+
return ui(1, e << this._shift);
|
|
9922
9919
|
}, Object.defineProperty(t.prototype, "scale", {
|
|
9923
9920
|
/**
|
|
9924
9921
|
* The scale used by this mapping
|
|
@@ -9942,10 +9939,10 @@ var Sy = /* @__PURE__ */ function() {
|
|
|
9942
9939
|
/** @class */
|
|
9943
9940
|
function() {
|
|
9944
9941
|
function t(e) {
|
|
9945
|
-
this._scale = e, this._scaleFactor =
|
|
9942
|
+
this._scale = e, this._scaleFactor = ui(Math.LOG2E, e), this._inverseFactor = ui(Math.LN2, -e);
|
|
9946
9943
|
}
|
|
9947
9944
|
return t.prototype.mapToIndex = function(e) {
|
|
9948
|
-
if (e <=
|
|
9945
|
+
if (e <= si)
|
|
9949
9946
|
return this._minNormalLowerBoundaryIndex() - 1;
|
|
9950
9947
|
if (Zs(e) === 0) {
|
|
9951
9948
|
var n = Qs(e);
|
|
@@ -9963,7 +9960,7 @@ var Sy = /* @__PURE__ */ function() {
|
|
|
9963
9960
|
var r = this._minNormalLowerBoundaryIndex();
|
|
9964
9961
|
if (e <= r) {
|
|
9965
9962
|
if (e === r)
|
|
9966
|
-
return
|
|
9963
|
+
return si;
|
|
9967
9964
|
if (e === r - 1)
|
|
9968
9965
|
return Math.exp((e + (1 << this._scale)) / this._scaleFactor) / 2;
|
|
9969
9966
|
throw new Ht("overflow: " + e + " is < minimum lower boundary: " + r);
|
|
@@ -9985,12 +9982,12 @@ var Sy = /* @__PURE__ */ function() {
|
|
|
9985
9982
|
return (Js + 1 << this._scale) - 1;
|
|
9986
9983
|
}, t;
|
|
9987
9984
|
}()
|
|
9988
|
-
),
|
|
9985
|
+
), $o = -10, jo = 20, xy = Array.from({ length: 31 }, function(t, e) {
|
|
9989
9986
|
return e > 10 ? new Ay(e - 10) : new Oy(e - 10);
|
|
9990
9987
|
});
|
|
9991
|
-
function
|
|
9992
|
-
if (t >
|
|
9993
|
-
throw new Ht("expected scale >= " +
|
|
9988
|
+
function Bo(t) {
|
|
9989
|
+
if (t > jo || t < $o)
|
|
9990
|
+
throw new Ht("expected scale >= " + $o + " && <= " + jo + ", got: " + t);
|
|
9994
9991
|
return xy[t + 10];
|
|
9995
9992
|
}
|
|
9996
9993
|
var Ny = function(t, e) {
|
|
@@ -10019,11 +10016,11 @@ var Ny = function(t, e) {
|
|
|
10019
10016
|
return new t(Math.min(e.low, n.low), Math.max(e.high, n.high));
|
|
10020
10017
|
}, t;
|
|
10021
10018
|
}()
|
|
10022
|
-
), Cy = 20, Ly = 160,
|
|
10019
|
+
), Cy = 20, Ly = 160, Or = 2, Ry = (
|
|
10023
10020
|
/** @class */
|
|
10024
10021
|
function() {
|
|
10025
10022
|
function t(e, n, r, i, o, a, u, c, s, l, p) {
|
|
10026
|
-
e === void 0 && (e = e), n === void 0 && (n = Ly), r === void 0 && (r = !0), i === void 0 && (i = 0), o === void 0 && (o = 0), a === void 0 && (a = 0), u === void 0 && (u = Number.POSITIVE_INFINITY), c === void 0 && (c = Number.NEGATIVE_INFINITY), s === void 0 && (s = new
|
|
10023
|
+
e === void 0 && (e = e), n === void 0 && (n = Ly), r === void 0 && (r = !0), i === void 0 && (i = 0), o === void 0 && (o = 0), a === void 0 && (a = 0), u === void 0 && (u = Number.POSITIVE_INFINITY), c === void 0 && (c = Number.NEGATIVE_INFINITY), s === void 0 && (s = new Uo()), l === void 0 && (l = new Uo()), p === void 0 && (p = Bo(Cy)), this.startTime = e, this._maxSize = n, this._recordMinMax = r, this._sum = i, this._count = o, this._zeroCount = a, this._min = u, this._max = c, this._positive = s, this._negative = l, this._mapping = p, this._maxSize < Or && (E.warn("Exponential Histogram Max Size set to " + this._maxSize + ", changing to the minimum size of: " + Or), this._maxSize = Or);
|
|
10027
10024
|
}
|
|
10028
10025
|
return t.prototype.record = function(e) {
|
|
10029
10026
|
this.updateByIncrement(e, 1);
|
|
@@ -10172,7 +10169,7 @@ var Ny = function(t, e) {
|
|
|
10172
10169
|
if (e < 0)
|
|
10173
10170
|
throw new Error("impossible change of scale: " + this.scale);
|
|
10174
10171
|
var n = this._mapping.scale - e;
|
|
10175
|
-
this._positive.downscale(e), this._negative.downscale(e), this._mapping =
|
|
10172
|
+
this._positive.downscale(e), this._negative.downscale(e), this._mapping = Bo(n);
|
|
10176
10173
|
}
|
|
10177
10174
|
}, t.prototype._minScale = function(e) {
|
|
10178
10175
|
var n = Math.min(this.scale, e.scale), r = nn.combine(this._highLowAtScale(this.positive, this.scale, n), this._highLowAtScale(e.positive, e.scale, n)), i = nn.combine(this._highLowAtScale(this.negative, this.scale, n), this._highLowAtScale(e.negative, e.scale, n));
|
|
@@ -10255,7 +10252,7 @@ var Ny = function(t, e) {
|
|
|
10255
10252
|
}
|
|
10256
10253
|
}
|
|
10257
10254
|
return o;
|
|
10258
|
-
},
|
|
10255
|
+
}, Ar = (
|
|
10259
10256
|
/** @class */
|
|
10260
10257
|
function() {
|
|
10261
10258
|
function t(e, n, r) {
|
|
@@ -10276,13 +10273,13 @@ var Ny = function(t, e) {
|
|
|
10276
10273
|
this.kind = He.LAST_VALUE;
|
|
10277
10274
|
}
|
|
10278
10275
|
return t.prototype.createAccumulation = function(e) {
|
|
10279
|
-
return new
|
|
10276
|
+
return new Ar(e);
|
|
10280
10277
|
}, t.prototype.merge = function(e, n) {
|
|
10281
10278
|
var r = Qt(n.sampleTime) >= Qt(e.sampleTime) ? n : e;
|
|
10282
|
-
return new
|
|
10279
|
+
return new Ar(e.startTime, r.toPointValue(), r.sampleTime);
|
|
10283
10280
|
}, t.prototype.diff = function(e, n) {
|
|
10284
10281
|
var r = Qt(n.sampleTime) >= Qt(e.sampleTime) ? n : e;
|
|
10285
|
-
return new
|
|
10282
|
+
return new Ar(n.startTime, r.toPointValue(), r.sampleTime);
|
|
10286
10283
|
}, t.prototype.toMetricData = function(e, n, r, i) {
|
|
10287
10284
|
return {
|
|
10288
10285
|
descriptor: e,
|
|
@@ -10330,7 +10327,7 @@ var Ny = function(t, e) {
|
|
|
10330
10327
|
return this._current;
|
|
10331
10328
|
}, t;
|
|
10332
10329
|
}()
|
|
10333
|
-
),
|
|
10330
|
+
), Fo = (
|
|
10334
10331
|
/** @class */
|
|
10335
10332
|
function() {
|
|
10336
10333
|
function t(e) {
|
|
@@ -10425,7 +10422,7 @@ var Ny = function(t, e) {
|
|
|
10425
10422
|
default:
|
|
10426
10423
|
return e.NON_MONOTONIC_INSTANCE;
|
|
10427
10424
|
}
|
|
10428
|
-
}, e.MONOTONIC_INSTANCE = new
|
|
10425
|
+
}, e.MONOTONIC_INSTANCE = new Fo(!0), e.NON_MONOTONIC_INSTANCE = new Fo(!1), e;
|
|
10429
10426
|
}(we)
|
|
10430
10427
|
), $y = (
|
|
10431
10428
|
/** @class */
|
|
@@ -10510,7 +10507,7 @@ var Ny = function(t, e) {
|
|
|
10510
10507
|
return we.Default();
|
|
10511
10508
|
}, qy = function(t) {
|
|
10512
10509
|
return le.CUMULATIVE;
|
|
10513
|
-
},
|
|
10510
|
+
}, xr = function(t, e, n, r) {
|
|
10514
10511
|
function i(o) {
|
|
10515
10512
|
return o instanceof n ? o : new n(function(a) {
|
|
10516
10513
|
a(o);
|
|
@@ -10536,7 +10533,7 @@ var Ny = function(t, e) {
|
|
|
10536
10533
|
}
|
|
10537
10534
|
s((r = r.apply(t, [])).next());
|
|
10538
10535
|
});
|
|
10539
|
-
},
|
|
10536
|
+
}, Nr = function(t, e) {
|
|
10540
10537
|
var n = { label: 0, sent: function() {
|
|
10541
10538
|
if (o[0] & 1) throw o[1];
|
|
10542
10539
|
return o[1];
|
|
@@ -10595,7 +10592,7 @@ var Ny = function(t, e) {
|
|
|
10595
10592
|
if (s[0] & 5) throw s[1];
|
|
10596
10593
|
return { value: s[0] ? s[1] : void 0, done: !0 };
|
|
10597
10594
|
}
|
|
10598
|
-
},
|
|
10595
|
+
}, Vo = function(t, e) {
|
|
10599
10596
|
var n = typeof Symbol == "function" && t[Symbol.iterator];
|
|
10600
10597
|
if (!n) return t;
|
|
10601
10598
|
var r = n.call(t), i, o = [], a;
|
|
@@ -10634,9 +10631,9 @@ var Ny = function(t, e) {
|
|
|
10634
10631
|
return this._cardinalitySelector ? this._cardinalitySelector(e) : 2e3;
|
|
10635
10632
|
}, t.prototype.onInitialized = function() {
|
|
10636
10633
|
}, t.prototype.collect = function(e) {
|
|
10637
|
-
return
|
|
10634
|
+
return xr(this, void 0, void 0, function() {
|
|
10638
10635
|
var n, r, i, o, a, u;
|
|
10639
|
-
return
|
|
10636
|
+
return Nr(this, function(c) {
|
|
10640
10637
|
switch (c.label) {
|
|
10641
10638
|
case 0:
|
|
10642
10639
|
if (this._sdkMetricProducer === void 0)
|
|
@@ -10647,15 +10644,15 @@ var Ny = function(t, e) {
|
|
|
10647
10644
|
this._sdkMetricProducer.collect({
|
|
10648
10645
|
timeoutMillis: e?.timeoutMillis
|
|
10649
10646
|
})
|
|
10650
|
-
],
|
|
10647
|
+
], Vo(this._metricProducers.map(function(s) {
|
|
10651
10648
|
return s.collect({
|
|
10652
10649
|
timeoutMillis: e?.timeoutMillis
|
|
10653
10650
|
});
|
|
10654
10651
|
})), !1))];
|
|
10655
10652
|
case 1:
|
|
10656
|
-
return n =
|
|
10653
|
+
return n = Vo.apply(void 0, [c.sent()]), r = n[0], i = n.slice(1), o = r.errors.concat(Do(i, function(s) {
|
|
10657
10654
|
return s.errors;
|
|
10658
|
-
})), a = r.resourceMetrics.resource, u = r.resourceMetrics.scopeMetrics.concat(
|
|
10655
|
+
})), a = r.resourceMetrics.resource, u = r.resourceMetrics.scopeMetrics.concat(Do(i, function(s) {
|
|
10659
10656
|
return s.resourceMetrics.scopeMetrics;
|
|
10660
10657
|
})), [2, {
|
|
10661
10658
|
resourceMetrics: {
|
|
@@ -10668,8 +10665,8 @@ var Ny = function(t, e) {
|
|
|
10668
10665
|
});
|
|
10669
10666
|
});
|
|
10670
10667
|
}, t.prototype.shutdown = function(e) {
|
|
10671
|
-
return
|
|
10672
|
-
return
|
|
10668
|
+
return xr(this, void 0, void 0, function() {
|
|
10669
|
+
return Nr(this, function(n) {
|
|
10673
10670
|
switch (n.label) {
|
|
10674
10671
|
case 0:
|
|
10675
10672
|
return this._shutdown ? (E.error("Cannot call shutdown twice."), [
|
|
@@ -10691,8 +10688,8 @@ var Ny = function(t, e) {
|
|
|
10691
10688
|
});
|
|
10692
10689
|
});
|
|
10693
10690
|
}, t.prototype.forceFlush = function(e) {
|
|
10694
|
-
return
|
|
10695
|
-
return
|
|
10691
|
+
return xr(this, void 0, void 0, function() {
|
|
10692
|
+
return Nr(this, function(n) {
|
|
10696
10693
|
switch (n.label) {
|
|
10697
10694
|
case 0:
|
|
10698
10695
|
return this._shutdown ? (E.warn("Cannot forceFlush on already shutdown MetricReader."), [
|
|
@@ -11093,7 +11090,7 @@ var Ny = function(t, e) {
|
|
|
11093
11090
|
return e;
|
|
11094
11091
|
}(zn)
|
|
11095
11092
|
);
|
|
11096
|
-
function
|
|
11093
|
+
function ci(t) {
|
|
11097
11094
|
return t instanceof zn;
|
|
11098
11095
|
}
|
|
11099
11096
|
var sg = (
|
|
@@ -11163,7 +11160,7 @@ var sg = (
|
|
|
11163
11160
|
}
|
|
11164
11161
|
e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
|
|
11165
11162
|
};
|
|
11166
|
-
}(),
|
|
11163
|
+
}(), Ho = function(t, e) {
|
|
11167
11164
|
var n = { label: 0, sent: function() {
|
|
11168
11165
|
if (o[0] & 1) throw o[1];
|
|
11169
11166
|
return o[1];
|
|
@@ -11242,7 +11239,7 @@ var sg = (
|
|
|
11242
11239
|
return n != null || (n = this._hash(e)), this._valueMap.has(n);
|
|
11243
11240
|
}, t.prototype.keys = function() {
|
|
11244
11241
|
var e, n;
|
|
11245
|
-
return
|
|
11242
|
+
return Ho(this, function(r) {
|
|
11246
11243
|
switch (r.label) {
|
|
11247
11244
|
case 0:
|
|
11248
11245
|
e = this._keyMap.entries(), n = e.next(), r.label = 1;
|
|
@@ -11259,7 +11256,7 @@ var sg = (
|
|
|
11259
11256
|
});
|
|
11260
11257
|
}, t.prototype.entries = function() {
|
|
11261
11258
|
var e, n;
|
|
11262
|
-
return
|
|
11259
|
+
return Ho(this, function(r) {
|
|
11263
11260
|
switch (r.label) {
|
|
11264
11261
|
case 0:
|
|
11265
11262
|
e = this._valueMap.entries(), n = e.next(), r.label = 1;
|
|
@@ -11350,7 +11347,7 @@ var sg = (
|
|
|
11350
11347
|
return this._activeCollectionStorage = new je(), e;
|
|
11351
11348
|
}, t;
|
|
11352
11349
|
}()
|
|
11353
|
-
),
|
|
11350
|
+
), Cr = function(t) {
|
|
11354
11351
|
var e = typeof Symbol == "function" && Symbol.iterator, n = e && t[e], r = 0;
|
|
11355
11352
|
if (n) return n.call(t);
|
|
11356
11353
|
if (t && typeof t.length == "number") return {
|
|
@@ -11359,7 +11356,7 @@ var sg = (
|
|
|
11359
11356
|
}
|
|
11360
11357
|
};
|
|
11361
11358
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
11362
|
-
},
|
|
11359
|
+
}, Go = function(t, e) {
|
|
11363
11360
|
var n = typeof Symbol == "function" && t[Symbol.iterator];
|
|
11364
11361
|
if (!n) return t;
|
|
11365
11362
|
var r = n.call(t), i, o = [], a;
|
|
@@ -11409,7 +11406,7 @@ var sg = (
|
|
|
11409
11406
|
}, t.prototype._stashAccumulations = function(e) {
|
|
11410
11407
|
var n, r, i = this._unreportedAccumulations.keys();
|
|
11411
11408
|
try {
|
|
11412
|
-
for (var o =
|
|
11409
|
+
for (var o = Cr(i), a = o.next(); !a.done; a = o.next()) {
|
|
11413
11410
|
var u = a.value, c = this._unreportedAccumulations.get(u);
|
|
11414
11411
|
c === void 0 && (c = [], this._unreportedAccumulations.set(u, c)), c.push(e);
|
|
11415
11412
|
}
|
|
@@ -11427,7 +11424,7 @@ var sg = (
|
|
|
11427
11424
|
if (this._unreportedAccumulations.set(e, []), o === void 0)
|
|
11428
11425
|
return i;
|
|
11429
11426
|
try {
|
|
11430
|
-
for (var a =
|
|
11427
|
+
for (var a = Cr(o), u = a.next(); !u.done; u = a.next()) {
|
|
11431
11428
|
var c = u.value;
|
|
11432
11429
|
i = t.merge(i, c, this._aggregator);
|
|
11433
11430
|
}
|
|
@@ -11443,7 +11440,7 @@ var sg = (
|
|
|
11443
11440
|
return i;
|
|
11444
11441
|
}, t.merge = function(e, n, r) {
|
|
11445
11442
|
for (var i = e, o = n.entries(), a = o.next(); a.done !== !0; ) {
|
|
11446
|
-
var u =
|
|
11443
|
+
var u = Go(a.value, 3), c = u[0], s = u[1], l = u[2];
|
|
11447
11444
|
if (e.has(c, l)) {
|
|
11448
11445
|
var p = e.get(c, l), f = r.merge(p, s);
|
|
11449
11446
|
i.set(c, f, l);
|
|
@@ -11455,8 +11452,8 @@ var sg = (
|
|
|
11455
11452
|
}, t.calibrateStartTime = function(e, n, r) {
|
|
11456
11453
|
var i, o;
|
|
11457
11454
|
try {
|
|
11458
|
-
for (var a =
|
|
11459
|
-
var c =
|
|
11455
|
+
for (var a = Cr(e.keys()), u = a.next(); !u.done; u = a.next()) {
|
|
11456
|
+
var c = Go(u.value, 2), s = c[0], l = c[1], p = n.get(s, l);
|
|
11460
11457
|
p?.setStartTime(r);
|
|
11461
11458
|
}
|
|
11462
11459
|
} catch (f) {
|
|
@@ -11528,7 +11525,7 @@ var fg = /* @__PURE__ */ function() {
|
|
|
11528
11525
|
}, e;
|
|
11529
11526
|
}(iu)
|
|
11530
11527
|
);
|
|
11531
|
-
function
|
|
11528
|
+
function zo(t, e) {
|
|
11532
11529
|
var n = "";
|
|
11533
11530
|
return t.unit !== e.unit && (n += " - Unit '" + t.unit + "' does not match '" + e.unit + `'
|
|
11534
11531
|
`), t.type !== e.type && (n += " - Type '" + t.type + "' does not match '" + e.type + `'
|
|
@@ -11560,10 +11557,10 @@ function gg(t, e) {
|
|
|
11560
11557
|
- OR - create a new view with the name ` + t.name + " and description '" + t.description + "' and InstrumentSelector " + r + `
|
|
11561
11558
|
- OR - create a new view with the name ` + e.name + " and description '" + t.description + "' and InstrumentSelector " + r;
|
|
11562
11559
|
}
|
|
11563
|
-
function
|
|
11560
|
+
function qo(t, e) {
|
|
11564
11561
|
return t.valueType !== e.valueType ? vg(t, e) : t.unit !== e.unit ? mg(t, e) : t.type !== e.type ? yg(t, e) : t.description !== e.description ? gg(t, e) : "";
|
|
11565
11562
|
}
|
|
11566
|
-
var
|
|
11563
|
+
var Lr = function(t) {
|
|
11567
11564
|
var e = typeof Symbol == "function" && Symbol.iterator, n = e && t[e], r = 0;
|
|
11568
11565
|
if (n) return n.call(t);
|
|
11569
11566
|
if (t && typeof t.length == "number") return {
|
|
@@ -11583,7 +11580,7 @@ var Cr = function(t) {
|
|
|
11583
11580
|
}, t.prototype.getStorages = function(e) {
|
|
11584
11581
|
var n, r, i, o, a = [];
|
|
11585
11582
|
try {
|
|
11586
|
-
for (var u =
|
|
11583
|
+
for (var u = Lr(this._sharedRegistry.values()), c = u.next(); !c.done; c = u.next()) {
|
|
11587
11584
|
var s = c.value;
|
|
11588
11585
|
a = a.concat(s);
|
|
11589
11586
|
}
|
|
@@ -11599,7 +11596,7 @@ var Cr = function(t) {
|
|
|
11599
11596
|
var l = this._perCollectorRegistry.get(e);
|
|
11600
11597
|
if (l != null)
|
|
11601
11598
|
try {
|
|
11602
|
-
for (var p =
|
|
11599
|
+
for (var p = Lr(l.values()), f = p.next(); !f.done; f = p.next()) {
|
|
11603
11600
|
var s = f.value;
|
|
11604
11601
|
a = a.concat(s);
|
|
11605
11602
|
}
|
|
@@ -11637,15 +11634,15 @@ var Cr = function(t) {
|
|
|
11637
11634
|
}, t.prototype._findOrUpdateCompatibleStorage = function(e, n) {
|
|
11638
11635
|
var r, i, o = null;
|
|
11639
11636
|
try {
|
|
11640
|
-
for (var a =
|
|
11637
|
+
for (var a = Lr(n), u = a.next(); !u.done; u = a.next()) {
|
|
11641
11638
|
var c = u.value, s = c.getInstrumentDescriptor();
|
|
11642
11639
|
dy(s, e) ? (s.description !== e.description && (e.description.length > s.description.length && c.updateDescription(e.description), E.warn("A view or instrument with the name ", e.name, ` has already been registered, but has a different description and is incompatible with another registered view.
|
|
11643
11640
|
`, `Details:
|
|
11644
|
-
`,
|
|
11645
|
-
To resolve the conflict:`,
|
|
11641
|
+
`, zo(s, e), `The longer description will be used.
|
|
11642
|
+
To resolve the conflict:`, qo(s, e))), o = c) : E.warn("A view or instrument with the name ", e.name, ` has already been registered and is incompatible with another registered view.
|
|
11646
11643
|
`, `Details:
|
|
11647
|
-
`,
|
|
11648
|
-
`,
|
|
11644
|
+
`, zo(s, e), `To resolve the conflict:
|
|
11645
|
+
`, qo(s, e));
|
|
11649
11646
|
}
|
|
11650
11647
|
} catch (l) {
|
|
11651
11648
|
r = { error: l };
|
|
@@ -11692,7 +11689,7 @@ To resolve the conflict:`, zo(s, e))), o = c) : E.warn("A view or instrument wit
|
|
|
11692
11689
|
this._buffer = /* @__PURE__ */ new Map();
|
|
11693
11690
|
}
|
|
11694
11691
|
return t.prototype.observe = function(e, n, r) {
|
|
11695
|
-
if (r === void 0 && (r = {}), !!
|
|
11692
|
+
if (r === void 0 && (r = {}), !!ci(e)) {
|
|
11696
11693
|
var i = this._buffer.get(e);
|
|
11697
11694
|
if (i == null && (i = new je(), this._buffer.set(e, i)), typeof n != "number") {
|
|
11698
11695
|
E.warn("non-number value provided to metric " + e._descriptor.name + ": " + n);
|
|
@@ -11702,7 +11699,7 @@ To resolve the conflict:`, zo(s, e))), o = c) : E.warn("A view or instrument wit
|
|
|
11702
11699
|
}
|
|
11703
11700
|
}, t;
|
|
11704
11701
|
}()
|
|
11705
|
-
),
|
|
11702
|
+
), Rr = function(t, e, n, r) {
|
|
11706
11703
|
function i(o) {
|
|
11707
11704
|
return o instanceof n ? o : new n(function(a) {
|
|
11708
11705
|
a(o);
|
|
@@ -11728,7 +11725,7 @@ To resolve the conflict:`, zo(s, e))), o = c) : E.warn("A view or instrument wit
|
|
|
11728
11725
|
}
|
|
11729
11726
|
s((r = r.apply(t, [])).next());
|
|
11730
11727
|
});
|
|
11731
|
-
},
|
|
11728
|
+
}, Ir = function(t, e) {
|
|
11732
11729
|
var n = { label: 0, sent: function() {
|
|
11733
11730
|
if (o[0] & 1) throw o[1];
|
|
11734
11731
|
return o[1];
|
|
@@ -11787,7 +11784,7 @@ To resolve the conflict:`, zo(s, e))), o = c) : E.warn("A view or instrument wit
|
|
|
11787
11784
|
if (s[0] & 5) throw s[1];
|
|
11788
11785
|
return { value: s[0] ? s[1] : void 0, done: !0 };
|
|
11789
11786
|
}
|
|
11790
|
-
},
|
|
11787
|
+
}, Xo = function(t, e) {
|
|
11791
11788
|
var n = typeof Symbol == "function" && t[Symbol.iterator];
|
|
11792
11789
|
if (!n) return t;
|
|
11793
11790
|
var r = n.call(t), i, o = [], a;
|
|
@@ -11803,7 +11800,7 @@ To resolve the conflict:`, zo(s, e))), o = c) : E.warn("A view or instrument wit
|
|
|
11803
11800
|
}
|
|
11804
11801
|
}
|
|
11805
11802
|
return o;
|
|
11806
|
-
},
|
|
11803
|
+
}, Ko = function(t, e, n) {
|
|
11807
11804
|
if (arguments.length === 2) for (var r = 0, i = e.length, o; r < i; r++)
|
|
11808
11805
|
(o || !(r in e)) && (o || (o = Array.prototype.slice.call(e, 0, r)), o[r] = e[r]);
|
|
11809
11806
|
return t.concat(o || Array.prototype.slice.call(e));
|
|
@@ -11820,7 +11817,7 @@ To resolve the conflict:`, zo(s, e))), o = c) : E.warn("A view or instrument wit
|
|
|
11820
11817
|
var r = this._findCallback(e, n);
|
|
11821
11818
|
r < 0 || this._callbacks.splice(r, 1);
|
|
11822
11819
|
}, t.prototype.addBatchCallback = function(e, n) {
|
|
11823
|
-
var r = new Set(n.filter(
|
|
11820
|
+
var r = new Set(n.filter(ci));
|
|
11824
11821
|
if (r.size === 0) {
|
|
11825
11822
|
E.error("BatchObservableCallback is not associated with valid instruments", n);
|
|
11826
11823
|
return;
|
|
@@ -11828,15 +11825,15 @@ To resolve the conflict:`, zo(s, e))), o = c) : E.warn("A view or instrument wit
|
|
|
11828
11825
|
var i = this._findBatchCallback(e, r);
|
|
11829
11826
|
i >= 0 || this._batchCallbacks.push({ callback: e, instruments: r });
|
|
11830
11827
|
}, t.prototype.removeBatchCallback = function(e, n) {
|
|
11831
|
-
var r = new Set(n.filter(
|
|
11828
|
+
var r = new Set(n.filter(ci)), i = this._findBatchCallback(e, r);
|
|
11832
11829
|
i < 0 || this._batchCallbacks.splice(i, 1);
|
|
11833
11830
|
}, t.prototype.observe = function(e, n) {
|
|
11834
|
-
return
|
|
11831
|
+
return Rr(this, void 0, void 0, function() {
|
|
11835
11832
|
var r, i, o, a;
|
|
11836
|
-
return
|
|
11833
|
+
return Ir(this, function(u) {
|
|
11837
11834
|
switch (u.label) {
|
|
11838
11835
|
case 0:
|
|
11839
|
-
return r = this._observeCallbacks(e, n), i = this._observeBatchCallbacks(e, n), [4, sy(
|
|
11836
|
+
return r = this._observeCallbacks(e, n), i = this._observeBatchCallbacks(e, n), [4, sy(Ko(Ko([], Xo(r), !1), Xo(i), !1))];
|
|
11840
11837
|
case 1:
|
|
11841
11838
|
return o = u.sent(), a = o.filter(uy).map(function(c) {
|
|
11842
11839
|
return c.reason;
|
|
@@ -11848,9 +11845,9 @@ To resolve the conflict:`, zo(s, e))), o = c) : E.warn("A view or instrument wit
|
|
|
11848
11845
|
var r = this;
|
|
11849
11846
|
return this._callbacks.map(function(i) {
|
|
11850
11847
|
var o = i.callback, a = i.instrument;
|
|
11851
|
-
return
|
|
11848
|
+
return Rr(r, void 0, void 0, function() {
|
|
11852
11849
|
var u, c;
|
|
11853
|
-
return
|
|
11850
|
+
return Ir(this, function(s) {
|
|
11854
11851
|
switch (s.label) {
|
|
11855
11852
|
case 0:
|
|
11856
11853
|
return u = new Eg(a._descriptor.name, a._descriptor.valueType), c = Promise.resolve(o(u)), n != null && (c = Vt(c, n)), [4, c];
|
|
@@ -11869,9 +11866,9 @@ To resolve the conflict:`, zo(s, e))), o = c) : E.warn("A view or instrument wit
|
|
|
11869
11866
|
var r = this;
|
|
11870
11867
|
return this._batchCallbacks.map(function(i) {
|
|
11871
11868
|
var o = i.callback, a = i.instruments;
|
|
11872
|
-
return
|
|
11869
|
+
return Rr(r, void 0, void 0, function() {
|
|
11873
11870
|
var u, c;
|
|
11874
|
-
return
|
|
11871
|
+
return Ir(this, function(s) {
|
|
11875
11872
|
switch (s.label) {
|
|
11876
11873
|
case 0:
|
|
11877
11874
|
return u = new Tg(), c = Promise.resolve(o(u)), n != null && (c = Vt(c, n)), [4, c];
|
|
@@ -11948,7 +11945,7 @@ To resolve the conflict:`, zo(s, e))), o = c) : E.warn("A view or instrument wit
|
|
|
11948
11945
|
}
|
|
11949
11946
|
e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
|
|
11950
11947
|
};
|
|
11951
|
-
}(),
|
|
11948
|
+
}(), ki = (
|
|
11952
11949
|
/** @class */
|
|
11953
11950
|
function() {
|
|
11954
11951
|
function t() {
|
|
@@ -11967,7 +11964,7 @@ To resolve the conflict:`, zo(s, e))), o = c) : E.warn("A view or instrument wit
|
|
|
11967
11964
|
return e.prototype.process = function(n, r) {
|
|
11968
11965
|
return n;
|
|
11969
11966
|
}, e;
|
|
11970
|
-
}(
|
|
11967
|
+
}(ki)
|
|
11971
11968
|
);
|
|
11972
11969
|
(function(t) {
|
|
11973
11970
|
su(e, t);
|
|
@@ -11983,7 +11980,7 @@ To resolve the conflict:`, zo(s, e))), o = c) : E.warn("A view or instrument wit
|
|
|
11983
11980
|
return o[a] = n[a];
|
|
11984
11981
|
}), o;
|
|
11985
11982
|
}, e;
|
|
11986
|
-
})(
|
|
11983
|
+
})(ki);
|
|
11987
11984
|
var xg = new Ag(), Ng = function(t, e, n, r) {
|
|
11988
11985
|
function i(o) {
|
|
11989
11986
|
return o instanceof n ? o : new n(function(a) {
|
|
@@ -12130,7 +12127,7 @@ var xg = new Ag(), Ng = function(t, e, n, r) {
|
|
|
12130
12127
|
var s = Lg(c, 2), l = s[0], p = s[1], f = r.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(l, e);
|
|
12131
12128
|
if (f != null)
|
|
12132
12129
|
return f;
|
|
12133
|
-
var m = p.createAggregator(e), v = l.selectCardinalityLimit(e.type), y = new n(e, m,
|
|
12130
|
+
var m = p.createAggregator(e), v = l.selectCardinalityLimit(e.type), y = new n(e, m, ki.Noop(), [l], v);
|
|
12134
12131
|
return r.metricStorageRegistry.registerForCollector(l, y), y;
|
|
12135
12132
|
});
|
|
12136
12133
|
o = o.concat(u);
|
|
@@ -12356,7 +12353,7 @@ var xg = new Ag(), Ng = function(t, e, n, r) {
|
|
|
12356
12353
|
return (i = (r = (n = this._metricReader).selectCardinalityLimit) === null || r === void 0 ? void 0 : r.call(n, e)) !== null && i !== void 0 ? i : 2e3;
|
|
12357
12354
|
}, t;
|
|
12358
12355
|
}()
|
|
12359
|
-
),
|
|
12356
|
+
), Wo = function(t, e, n, r) {
|
|
12360
12357
|
function i(o) {
|
|
12361
12358
|
return o instanceof n ? o : new n(function(a) {
|
|
12362
12359
|
a(o);
|
|
@@ -12382,7 +12379,7 @@ var xg = new Ag(), Ng = function(t, e, n, r) {
|
|
|
12382
12379
|
}
|
|
12383
12380
|
s((r = r.apply(t, [])).next());
|
|
12384
12381
|
});
|
|
12385
|
-
},
|
|
12382
|
+
}, Yo = function(t, e) {
|
|
12386
12383
|
var n = { label: 0, sent: function() {
|
|
12387
12384
|
if (o[0] & 1) throw o[1];
|
|
12388
12385
|
return o[1];
|
|
@@ -12441,7 +12438,7 @@ var xg = new Ag(), Ng = function(t, e, n, r) {
|
|
|
12441
12438
|
if (s[0] & 5) throw s[1];
|
|
12442
12439
|
return { value: s[0] ? s[1] : void 0, done: !0 };
|
|
12443
12440
|
}
|
|
12444
|
-
},
|
|
12441
|
+
}, Jo = function(t) {
|
|
12445
12442
|
var e = typeof Symbol == "function" && Symbol.iterator, n = e && t[e], r = 0;
|
|
12446
12443
|
if (n) return n.call(t);
|
|
12447
12444
|
if (t && typeof t.length == "number") return {
|
|
@@ -12462,7 +12459,7 @@ var $g = (
|
|
|
12462
12459
|
var n, r, i, o, a;
|
|
12463
12460
|
if (this._shutdown = !1, this._sharedState = new Pg(Ug((a = e?.mergeResourceWithDefaults) !== null && a !== void 0 ? a : !0, e?.resource)), e?.views != null && e.views.length > 0)
|
|
12464
12461
|
try {
|
|
12465
|
-
for (var u =
|
|
12462
|
+
for (var u = Jo(e.views), c = u.next(); !c.done; c = u.next()) {
|
|
12466
12463
|
var s = c.value;
|
|
12467
12464
|
this._sharedState.viewRegistry.addView(s);
|
|
12468
12465
|
}
|
|
@@ -12477,7 +12474,7 @@ var $g = (
|
|
|
12477
12474
|
}
|
|
12478
12475
|
if (e?.readers != null && e.readers.length > 0)
|
|
12479
12476
|
try {
|
|
12480
|
-
for (var l =
|
|
12477
|
+
for (var l = Jo(e.readers), p = l.next(); !p.done; p = l.next()) {
|
|
12481
12478
|
var f = p.value;
|
|
12482
12479
|
this.addMetricReader(f);
|
|
12483
12480
|
}
|
|
@@ -12501,8 +12498,8 @@ var $g = (
|
|
|
12501
12498
|
var n = new Dg(this._sharedState, e);
|
|
12502
12499
|
e.setMetricProducer(n), this._sharedState.metricCollectors.push(n);
|
|
12503
12500
|
}, t.prototype.shutdown = function(e) {
|
|
12504
|
-
return
|
|
12505
|
-
return
|
|
12501
|
+
return Wo(this, void 0, void 0, function() {
|
|
12502
|
+
return Yo(this, function(n) {
|
|
12506
12503
|
switch (n.label) {
|
|
12507
12504
|
case 0:
|
|
12508
12505
|
return this._shutdown ? (E.warn("shutdown may only be called once per MeterProvider"), [
|
|
@@ -12520,8 +12517,8 @@ var $g = (
|
|
|
12520
12517
|
});
|
|
12521
12518
|
});
|
|
12522
12519
|
}, t.prototype.forceFlush = function(e) {
|
|
12523
|
-
return
|
|
12524
|
-
return
|
|
12520
|
+
return Wo(this, void 0, void 0, function() {
|
|
12521
|
+
return Yo(this, function(n) {
|
|
12525
12522
|
switch (n.label) {
|
|
12526
12523
|
case 0:
|
|
12527
12524
|
return this._shutdown ? (E.warn("invalid attempt to force flush after MeterProvider shutdown"), [
|
|
@@ -12571,12 +12568,12 @@ function Fg(t, e) {
|
|
|
12571
12568
|
n.sum = {
|
|
12572
12569
|
aggregationTemporality: r,
|
|
12573
12570
|
isMonotonic: t.isMonotonic,
|
|
12574
|
-
dataPoints:
|
|
12571
|
+
dataPoints: Qo(t, e)
|
|
12575
12572
|
};
|
|
12576
12573
|
break;
|
|
12577
12574
|
case de.GAUGE:
|
|
12578
12575
|
n.gauge = {
|
|
12579
|
-
dataPoints:
|
|
12576
|
+
dataPoints: Qo(t, e)
|
|
12580
12577
|
};
|
|
12581
12578
|
break;
|
|
12582
12579
|
case de.HISTOGRAM:
|
|
@@ -12610,7 +12607,7 @@ function Vg(t, e, n) {
|
|
|
12610
12607
|
}
|
|
12611
12608
|
return r;
|
|
12612
12609
|
}
|
|
12613
|
-
function
|
|
12610
|
+
function Qo(t, e) {
|
|
12614
12611
|
return t.dataPoints.map(function(n) {
|
|
12615
12612
|
return Vg(n, t.descriptor.valueType, e);
|
|
12616
12613
|
});
|
|
@@ -12902,9 +12899,9 @@ var t_ = {
|
|
|
12902
12899
|
if (s[0] & 5) throw s[1];
|
|
12903
12900
|
return { value: s[0] ? s[1] : void 0, done: !0 };
|
|
12904
12901
|
}
|
|
12905
|
-
}, o_ = 5, a_ = 1e3, s_ = 5e3, u_ = 1.5,
|
|
12902
|
+
}, o_ = 5, a_ = 1e3, s_ = 5e3, u_ = 1.5, Zo = 0.2;
|
|
12906
12903
|
function c_() {
|
|
12907
|
-
return Math.random() * (2 *
|
|
12904
|
+
return Math.random() * (2 * Zo) - Zo;
|
|
12908
12905
|
}
|
|
12909
12906
|
var l_ = (
|
|
12910
12907
|
/** @class */
|
|
@@ -13182,7 +13179,7 @@ var C_ = /* @__PURE__ */ function() {
|
|
|
13182
13179
|
}
|
|
13183
13180
|
e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
|
|
13184
13181
|
};
|
|
13185
|
-
}(),
|
|
13182
|
+
}(), li = function() {
|
|
13186
13183
|
return le.CUMULATIVE;
|
|
13187
13184
|
}, lu = function(t) {
|
|
13188
13185
|
switch (t) {
|
|
@@ -13211,10 +13208,10 @@ var C_ = /* @__PURE__ */ function() {
|
|
|
13211
13208
|
};
|
|
13212
13209
|
function L_() {
|
|
13213
13210
|
var t = ft(), e = t.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE.trim().toLowerCase();
|
|
13214
|
-
return e === "cumulative" ?
|
|
13211
|
+
return e === "cumulative" ? li : e === "delta" ? lu : e === "lowmemory" ? pu : (E.warn("OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE is set to '" + t.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + "', but only 'cumulative' and 'delta' are allowed. Using default ('cumulative') instead."), li);
|
|
13215
13212
|
}
|
|
13216
13213
|
function R_(t) {
|
|
13217
|
-
return t != null ? t === In.DELTA ? lu : t === In.LOWMEMORY ? pu :
|
|
13214
|
+
return t != null ? t === In.DELTA ? lu : t === In.LOWMEMORY ? pu : li : L_();
|
|
13218
13215
|
}
|
|
13219
13216
|
function I_(t) {
|
|
13220
13217
|
return t != null && t.aggregationPreference ? t.aggregationPreference : function(e) {
|
|
@@ -13324,7 +13321,7 @@ class $_ extends N_ {
|
|
|
13324
13321
|
return n({
|
|
13325
13322
|
code: q.SUCCESS
|
|
13326
13323
|
});
|
|
13327
|
-
if (i++, i >
|
|
13324
|
+
if (i++, i > bi)
|
|
13328
13325
|
return console.error(
|
|
13329
13326
|
`[@launchdarkly/observability] failed to export OTeL traces: ${(u = a.error) == null ? void 0 : u.message}`,
|
|
13330
13327
|
a.error
|
|
@@ -13335,7 +13332,7 @@ class $_ extends N_ {
|
|
|
13335
13332
|
new Promise(
|
|
13336
13333
|
(c) => setTimeout(
|
|
13337
13334
|
c,
|
|
13338
|
-
|
|
13335
|
+
Ei + Ti * Math.pow(2, i)
|
|
13339
13336
|
)
|
|
13340
13337
|
).then(() => {
|
|
13341
13338
|
var c;
|
|
@@ -13362,7 +13359,7 @@ class j_ extends M_ {
|
|
|
13362
13359
|
return n({
|
|
13363
13360
|
code: q.SUCCESS
|
|
13364
13361
|
});
|
|
13365
|
-
if (r++, r >
|
|
13362
|
+
if (r++, r > bi)
|
|
13366
13363
|
return console.error(
|
|
13367
13364
|
`[@launchdarkly/observability] failed to export OTeL metrics: ${(a = o.error) == null ? void 0 : a.message}`,
|
|
13368
13365
|
o.error
|
|
@@ -13373,7 +13370,7 @@ class j_ extends M_ {
|
|
|
13373
13370
|
new Promise(
|
|
13374
13371
|
(u) => setTimeout(
|
|
13375
13372
|
u,
|
|
13376
|
-
|
|
13373
|
+
Ei + Ti * Math.pow(2, r)
|
|
13377
13374
|
)
|
|
13378
13375
|
).then(() => {
|
|
13379
13376
|
var u;
|
|
@@ -13390,7 +13387,7 @@ const B_ = "OT_ZONE_CONTEXT", F_ = "Navigation:", V_ = ["click", "input", "submi
|
|
|
13390
13387
|
function H_() {
|
|
13391
13388
|
return !1;
|
|
13392
13389
|
}
|
|
13393
|
-
const
|
|
13390
|
+
const pi = class ke extends hd {
|
|
13394
13391
|
constructor(e = {}) {
|
|
13395
13392
|
var n;
|
|
13396
13393
|
super(
|
|
@@ -13786,9 +13783,9 @@ const li = class ke extends hd {
|
|
|
13786
13783
|
return window.Zone;
|
|
13787
13784
|
}
|
|
13788
13785
|
};
|
|
13789
|
-
k(
|
|
13790
|
-
let G_ =
|
|
13791
|
-
const Pn = "highlight.record", z_ = "highlight.session_id", fu = "launchdarkly.js.log", q_ = "launchdarkly.exception.id",
|
|
13786
|
+
k(pi, "version", "0.1.0"), k(pi, "moduleName", "user-interaction");
|
|
13787
|
+
let G_ = pi, Oe = {}, rt;
|
|
13788
|
+
const Pn = "highlight.record", z_ = "highlight.session_id", fu = "launchdarkly.js.log", q_ = "launchdarkly.exception.id", ea = "launchdarkly.sampling.ratio", hu = "log.severity", du = "log.message", X_ = (t, e) => {
|
|
13792
13789
|
var n, r, i, o, a, u, c, s, l;
|
|
13793
13790
|
if (Oe.tracerProvider !== void 0) {
|
|
13794
13791
|
console.warn("OTEL already initialized. Skipping...");
|
|
@@ -13844,8 +13841,8 @@ const Pn = "highlight.record", z_ = "highlight.session_id", fu = "launchdarkly.j
|
|
|
13844
13841
|
((a = t.instrumentations) == null ? void 0 : a["@opentelemetry/instrumentation-document-load"]) !== !1 && D.push(
|
|
13845
13842
|
new vv({
|
|
13846
13843
|
applyCustomAttributesOnSpan: {
|
|
13847
|
-
documentLoad:
|
|
13848
|
-
documentFetch:
|
|
13844
|
+
documentLoad: ia,
|
|
13845
|
+
documentFetch: ia,
|
|
13849
13846
|
resourceFetch: J_
|
|
13850
13847
|
}
|
|
13851
13848
|
})
|
|
@@ -13855,7 +13852,7 @@ const Pn = "highlight.record", z_ = "highlight.session_id", fu = "launchdarkly.j
|
|
|
13855
13852
|
})
|
|
13856
13853
|
), (c = t.networkRecordingOptions) != null && c.enabled && (((s = t.instrumentations) == null ? void 0 : s["@opentelemetry/instrumentation-fetch"]) !== !1 && D.push(
|
|
13857
13854
|
new Kv({
|
|
13858
|
-
propagateTraceHeaderCorsUrls:
|
|
13855
|
+
propagateTraceHeaderCorsUrls: oa(
|
|
13859
13856
|
t.tracingOrigins
|
|
13860
13857
|
),
|
|
13861
13858
|
applyCustomAttributesOnSpan: (M, G, $) => ct(void 0, null, function* () {
|
|
@@ -13866,14 +13863,14 @@ const Pn = "highlight.record", z_ = "highlight.session_id", fu = "launchdarkly.j
|
|
|
13866
13863
|
if (Ye.attributes[Pn] === !1)
|
|
13867
13864
|
return;
|
|
13868
13865
|
const gt = Ye.attributes["http.url"], h = (me = G.method) != null ? me : "GET";
|
|
13869
|
-
if (M.updateName(
|
|
13866
|
+
if (M.updateName(na(gt, h, G.body)), !($ instanceof Response)) {
|
|
13870
13867
|
M.setAttributes({
|
|
13871
13868
|
"http.response.error": $.message,
|
|
13872
13869
|
"http.response.status": $.status
|
|
13873
13870
|
});
|
|
13874
13871
|
return;
|
|
13875
13872
|
}
|
|
13876
|
-
|
|
13873
|
+
ra(
|
|
13877
13874
|
M,
|
|
13878
13875
|
G.body,
|
|
13879
13876
|
G.headers,
|
|
@@ -13889,7 +13886,7 @@ const Pn = "highlight.record", z_ = "highlight.session_id", fu = "launchdarkly.j
|
|
|
13889
13886
|
})
|
|
13890
13887
|
), ((l = t.instrumentations) == null ? void 0 : l["@opentelemetry/instrumentation-xml-http-request"]) !== !1 && D.push(
|
|
13891
13888
|
new Em({
|
|
13892
|
-
propagateTraceHeaderCorsUrls:
|
|
13889
|
+
propagateTraceHeaderCorsUrls: oa(
|
|
13893
13890
|
t.tracingOrigins
|
|
13894
13891
|
),
|
|
13895
13892
|
applyCustomAttributesOnSpan: (M, G) => {
|
|
@@ -13897,12 +13894,12 @@ const Pn = "highlight.record", z_ = "highlight.session_id", fu = "launchdarkly.j
|
|
|
13897
13894
|
const ue = G;
|
|
13898
13895
|
if (!M.attributes || M.attributes[Pn] === !1)
|
|
13899
13896
|
return;
|
|
13900
|
-
const W =
|
|
13897
|
+
const W = na(
|
|
13901
13898
|
ue._url,
|
|
13902
13899
|
ue._method,
|
|
13903
13900
|
G.responseText
|
|
13904
13901
|
);
|
|
13905
|
-
M.updateName(W),
|
|
13902
|
+
M.updateName(W), ra(
|
|
13906
13903
|
M,
|
|
13907
13904
|
ue._body,
|
|
13908
13905
|
ue._requestHeaders,
|
|
@@ -13969,23 +13966,23 @@ class W_ extends hs {
|
|
|
13969
13966
|
)) || super.inject(e, n, r);
|
|
13970
13967
|
}
|
|
13971
13968
|
}
|
|
13972
|
-
const vu = "highlight-browser", un = vu,
|
|
13969
|
+
const vu = "highlight-browser", un = vu, ta = () => {
|
|
13973
13970
|
var t;
|
|
13974
13971
|
return (t = Oe.tracerProvider) == null ? void 0 : t.getTracer(vu);
|
|
13975
|
-
},
|
|
13972
|
+
}, na = (t, e, n) => {
|
|
13976
13973
|
var r, i, o;
|
|
13977
13974
|
let a;
|
|
13978
13975
|
const u = new URL(t), c = u.pathname;
|
|
13979
13976
|
let s = `${e.toUpperCase()} - ${c}`;
|
|
13980
13977
|
try {
|
|
13981
13978
|
if (a = typeof n == "string" ? JSON.parse(n) : n, a && a.query) {
|
|
13982
|
-
const l =
|
|
13979
|
+
const l = vi(a.query), p = ((r = l.definitions[0]) == null ? void 0 : r.kind) === "OperationDefinition" ? (o = (i = l.definitions[0]) == null ? void 0 : i.name) == null ? void 0 : o.value : void 0;
|
|
13983
13980
|
p && (s = `${p} (GraphQL: ${u.host + u.pathname})`);
|
|
13984
13981
|
}
|
|
13985
13982
|
} catch {
|
|
13986
13983
|
}
|
|
13987
13984
|
return s;
|
|
13988
|
-
},
|
|
13985
|
+
}, ra = (t, e, n, r) => {
|
|
13989
13986
|
var i;
|
|
13990
13987
|
const o = typeof e == "string" ? e : String(e);
|
|
13991
13988
|
if (!t.attributes)
|
|
@@ -14022,7 +14019,7 @@ const vu = "highlight-browser", un = vu, ea = () => {
|
|
|
14022
14019
|
) ? !1 : Rm(
|
|
14023
14020
|
t,
|
|
14024
14021
|
e
|
|
14025
|
-
),
|
|
14022
|
+
), ia = (t) => {
|
|
14026
14023
|
var e, n, r;
|
|
14027
14024
|
if (!t.events)
|
|
14028
14025
|
return;
|
|
@@ -14059,7 +14056,7 @@ const vu = "highlight-browser", un = vu, ea = () => {
|
|
|
14059
14056
|
if (o.document_load !== void 0)
|
|
14060
14057
|
for (const u of a)
|
|
14061
14058
|
u.recordGauge((r = rt?.sessionSecureId) != null ? r : "", {
|
|
14062
|
-
name:
|
|
14059
|
+
name: Ga,
|
|
14063
14060
|
value: o.document_load / 1e6
|
|
14064
14061
|
});
|
|
14065
14062
|
Object.entries(o).forEach(([u, c]) => {
|
|
@@ -14104,7 +14101,7 @@ const J_ = (t, e) => {
|
|
|
14104
14101
|
return `${Number(e.toFixed(1))}µs`;
|
|
14105
14102
|
} else
|
|
14106
14103
|
return `${Number(t.toFixed(1))}ns`;
|
|
14107
|
-
},
|
|
14104
|
+
}, oa = (t) => t === !0 ? [/localhost/, /^\//, new RegExp(window.location.host)] : Array.isArray(t) ? t.map(
|
|
14108
14105
|
(e) => typeof e == "string" ? new RegExp(e) : e
|
|
14109
14106
|
) : /^$/, Q_ = 30, Z_ = () => new Promise(
|
|
14110
14107
|
(t) => requestAnimationFrame(
|
|
@@ -14144,10 +14141,10 @@ const J_ = (t, e) => {
|
|
|
14144
14141
|
return window.addEventListener("click", i, !0), window.addEventListener("keydown", i, !0), () => {
|
|
14145
14142
|
window.removeEventListener("keydown", i, !0), window.removeEventListener("click", i, !0);
|
|
14146
14143
|
};
|
|
14147
|
-
}, nb = typeof window < "u",
|
|
14144
|
+
}, nb = typeof window < "u", aa = nb && "performance" in window && "memory" in performance ? performance : { memory: {} }, rb = (t, e) => {
|
|
14148
14145
|
let n = 0, r = 0;
|
|
14149
14146
|
const i = () => {
|
|
14150
|
-
const s = ((/* @__PURE__ */ new Date()).getTime() - e) / 1e3, l =
|
|
14147
|
+
const s = ((/* @__PURE__ */ new Date()).getTime() - e) / 1e3, l = aa.memory.jsHeapSizeLimit || 0, p = aa.memory.usedJSHeapSize || 0;
|
|
14151
14148
|
t({
|
|
14152
14149
|
jsHeapSizeLimit: l,
|
|
14153
14150
|
usedJSHeapSize: p,
|
|
@@ -14169,17 +14166,17 @@ const J_ = (t, e) => {
|
|
|
14169
14166
|
clearInterval(o), cancelAnimationFrame(r);
|
|
14170
14167
|
};
|
|
14171
14168
|
};
|
|
14172
|
-
var Ne, kt, yu, kn,
|
|
14169
|
+
var Ne, kt, yu, kn, fi, gu = -1, We = function(t) {
|
|
14173
14170
|
addEventListener("pageshow", function(e) {
|
|
14174
14171
|
e.persisted && (gu = e.timeStamp, t(e));
|
|
14175
14172
|
}, !0);
|
|
14176
|
-
},
|
|
14173
|
+
}, Mi = function() {
|
|
14177
14174
|
return window.performance && performance.getEntriesByType && performance.getEntriesByType("navigation")[0];
|
|
14178
14175
|
}, qn = function() {
|
|
14179
|
-
var t =
|
|
14176
|
+
var t = Mi();
|
|
14180
14177
|
return t && t.activationStart || 0;
|
|
14181
14178
|
}, ae = function(t, e) {
|
|
14182
|
-
var n =
|
|
14179
|
+
var n = Mi(), r = "navigate";
|
|
14183
14180
|
return gu >= 0 ? r = "back-forward-cache" : n && (document.prerendering || qn() > 0 ? r = "prerender" : document.wasDiscarded ? r = "restore" : n.type && (r = n.type.replace(/_/g, "-"))), { name: t, value: e === void 0 ? -1 : e, rating: "good", delta: 0, entries: [], id: "v3-".concat(Date.now(), "-").concat(Math.floor(8999999999999 * Math.random()) + 1e12), navigationType: r };
|
|
14184
14181
|
}, yt = function(t, e, n) {
|
|
14185
14182
|
try {
|
|
@@ -14200,7 +14197,7 @@ var Ne, kt, yu, kn, pi, gu = -1, We = function(t) {
|
|
|
14200
14197
|
return u > c[1] ? "poor" : u > c[0] ? "needs-improvement" : "good";
|
|
14201
14198
|
}(e.value, n), t(e));
|
|
14202
14199
|
};
|
|
14203
|
-
},
|
|
14200
|
+
}, Di = function(t) {
|
|
14204
14201
|
requestAnimationFrame(function() {
|
|
14205
14202
|
return requestAnimationFrame(function() {
|
|
14206
14203
|
return t();
|
|
@@ -14211,23 +14208,23 @@ var Ne, kt, yu, kn, pi, gu = -1, We = function(t) {
|
|
|
14211
14208
|
n.type !== "pagehide" && document.visibilityState !== "hidden" || t(n);
|
|
14212
14209
|
};
|
|
14213
14210
|
addEventListener("visibilitychange", e, !0), addEventListener("pagehide", e, !0);
|
|
14214
|
-
},
|
|
14211
|
+
}, Ui = function(t) {
|
|
14215
14212
|
var e = !1;
|
|
14216
14213
|
return function(n) {
|
|
14217
14214
|
e || (t(n), e = !0);
|
|
14218
14215
|
};
|
|
14219
|
-
}, at = -1,
|
|
14216
|
+
}, at = -1, sa = function() {
|
|
14220
14217
|
return document.visibilityState !== "hidden" || document.prerendering ? 1 / 0 : 0;
|
|
14221
14218
|
}, Mn = function(t) {
|
|
14222
14219
|
document.visibilityState === "hidden" && at > -1 && (at = t.type === "visibilitychange" ? t.timeStamp : 0, ib());
|
|
14223
|
-
},
|
|
14220
|
+
}, ua = function() {
|
|
14224
14221
|
addEventListener("visibilitychange", Mn, !0), addEventListener("prerenderingchange", Mn, !0);
|
|
14225
14222
|
}, ib = function() {
|
|
14226
14223
|
removeEventListener("visibilitychange", Mn, !0), removeEventListener("prerenderingchange", Mn, !0);
|
|
14227
|
-
},
|
|
14228
|
-
return at < 0 && (at =
|
|
14224
|
+
}, $i = function() {
|
|
14225
|
+
return at < 0 && (at = sa(), ua(), We(function() {
|
|
14229
14226
|
setTimeout(function() {
|
|
14230
|
-
at =
|
|
14227
|
+
at = sa(), ua();
|
|
14231
14228
|
}, 0);
|
|
14232
14229
|
})), { get firstHiddenTime() {
|
|
14233
14230
|
return at;
|
|
@@ -14236,21 +14233,21 @@ var Ne, kt, yu, kn, pi, gu = -1, We = function(t) {
|
|
|
14236
14233
|
document.prerendering ? addEventListener("prerenderingchange", function() {
|
|
14237
14234
|
return t();
|
|
14238
14235
|
}, !0) : t();
|
|
14239
|
-
},
|
|
14236
|
+
}, ca = [1800, 3e3], _u = function(t, e) {
|
|
14240
14237
|
e = e || {}, Kt(function() {
|
|
14241
|
-
var n, r =
|
|
14238
|
+
var n, r = $i(), i = ae("FCP"), o = yt("paint", function(a) {
|
|
14242
14239
|
a.forEach(function(u) {
|
|
14243
14240
|
u.name === "first-contentful-paint" && (o.disconnect(), u.startTime < r.firstHiddenTime && (i.value = Math.max(u.startTime - qn(), 0), i.entries.push(u), n(!0)));
|
|
14244
14241
|
});
|
|
14245
14242
|
});
|
|
14246
|
-
o && (n = se(t, i,
|
|
14247
|
-
i = ae("FCP"), n = se(t, i,
|
|
14243
|
+
o && (n = se(t, i, ca, e.reportAllChanges), We(function(a) {
|
|
14244
|
+
i = ae("FCP"), n = se(t, i, ca, e.reportAllChanges), Di(function() {
|
|
14248
14245
|
i.value = performance.now() - a.timeStamp, n(!0);
|
|
14249
14246
|
});
|
|
14250
14247
|
}));
|
|
14251
14248
|
});
|
|
14252
|
-
},
|
|
14253
|
-
e = e || {}, _u(
|
|
14249
|
+
}, la = [0.1, 0.25], ob = function(t, e) {
|
|
14250
|
+
e = e || {}, _u(Ui(function() {
|
|
14254
14251
|
var n, r = ae("CLS", 0), i = 0, o = [], a = function(c) {
|
|
14255
14252
|
c.forEach(function(s) {
|
|
14256
14253
|
if (!s.hadRecentInput) {
|
|
@@ -14259,15 +14256,15 @@ var Ne, kt, yu, kn, pi, gu = -1, We = function(t) {
|
|
|
14259
14256
|
}
|
|
14260
14257
|
}), i > r.value && (r.value = i, r.entries = o, n());
|
|
14261
14258
|
}, u = yt("layout-shift", a);
|
|
14262
|
-
u && (n = se(t, r,
|
|
14259
|
+
u && (n = se(t, r, la, e.reportAllChanges), Xn(function() {
|
|
14263
14260
|
a(u.takeRecords()), n(!0);
|
|
14264
14261
|
}), We(function() {
|
|
14265
|
-
i = 0, r = ae("CLS", 0), n = se(t, r,
|
|
14262
|
+
i = 0, r = ae("CLS", 0), n = se(t, r, la, e.reportAllChanges), Di(function() {
|
|
14266
14263
|
return n();
|
|
14267
14264
|
});
|
|
14268
14265
|
}), setTimeout(n, 0));
|
|
14269
14266
|
}));
|
|
14270
|
-
}, xt = { passive: !0, capture: !0 }, ab = /* @__PURE__ */ new Date(),
|
|
14267
|
+
}, xt = { passive: !0, capture: !0 }, ab = /* @__PURE__ */ new Date(), pa = function(t, e) {
|
|
14271
14268
|
Ne || (Ne = e, kt = t, yu = /* @__PURE__ */ new Date(), Eu(removeEventListener), bu());
|
|
14272
14269
|
}, bu = function() {
|
|
14273
14270
|
if (kt >= 0 && kt < yu - ab) {
|
|
@@ -14281,55 +14278,55 @@ var Ne, kt, yu, kn, pi, gu = -1, We = function(t) {
|
|
|
14281
14278
|
var e = (t.timeStamp > 1e12 ? /* @__PURE__ */ new Date() : performance.now()) - t.timeStamp;
|
|
14282
14279
|
t.type == "pointerdown" ? function(n, r) {
|
|
14283
14280
|
var i = function() {
|
|
14284
|
-
|
|
14281
|
+
pa(n, r), a();
|
|
14285
14282
|
}, o = function() {
|
|
14286
14283
|
a();
|
|
14287
14284
|
}, a = function() {
|
|
14288
14285
|
removeEventListener("pointerup", i, xt), removeEventListener("pointercancel", o, xt);
|
|
14289
14286
|
};
|
|
14290
14287
|
addEventListener("pointerup", i, xt), addEventListener("pointercancel", o, xt);
|
|
14291
|
-
}(e, t) :
|
|
14288
|
+
}(e, t) : pa(e, t);
|
|
14292
14289
|
}
|
|
14293
14290
|
}, Eu = function(t) {
|
|
14294
14291
|
["mousedown", "keydown", "touchstart", "pointerdown"].forEach(function(e) {
|
|
14295
14292
|
return t(e, sb, xt);
|
|
14296
14293
|
});
|
|
14297
|
-
},
|
|
14294
|
+
}, fa = [100, 300], ub = function(t, e) {
|
|
14298
14295
|
e = e || {}, Kt(function() {
|
|
14299
|
-
var n, r =
|
|
14296
|
+
var n, r = $i(), i = ae("FID"), o = function(c) {
|
|
14300
14297
|
c.startTime < r.firstHiddenTime && (i.value = c.processingStart - c.startTime, i.entries.push(c), n(!0));
|
|
14301
14298
|
}, a = function(c) {
|
|
14302
14299
|
c.forEach(o);
|
|
14303
14300
|
}, u = yt("first-input", a);
|
|
14304
|
-
n = se(t, i,
|
|
14301
|
+
n = se(t, i, fa, e.reportAllChanges), u && Xn(Ui(function() {
|
|
14305
14302
|
a(u.takeRecords()), u.disconnect();
|
|
14306
14303
|
})), u && We(function() {
|
|
14307
14304
|
var c;
|
|
14308
|
-
i = ae("FID"), n = se(t, i,
|
|
14305
|
+
i = ae("FID"), n = se(t, i, fa, e.reportAllChanges), kn = [], kt = -1, Ne = null, Eu(addEventListener), c = o, kn.push(c), bu();
|
|
14309
14306
|
});
|
|
14310
14307
|
});
|
|
14311
|
-
}, Tu = 0,
|
|
14308
|
+
}, Tu = 0, Pr = 1 / 0, cn = 0, cb = function(t) {
|
|
14312
14309
|
t.forEach(function(e) {
|
|
14313
|
-
e.interactionId && (
|
|
14310
|
+
e.interactionId && (Pr = Math.min(Pr, e.interactionId), cn = Math.max(cn, e.interactionId), Tu = cn ? (cn - Pr) / 7 + 1 : 0);
|
|
14314
14311
|
});
|
|
14315
14312
|
}, wu = function() {
|
|
14316
|
-
return
|
|
14313
|
+
return fi ? Tu : performance.interactionCount || 0;
|
|
14317
14314
|
}, lb = function() {
|
|
14318
|
-
"interactionCount" in performance ||
|
|
14319
|
-
},
|
|
14315
|
+
"interactionCount" in performance || fi || (fi = yt("event", cb, { type: "event", buffered: !0, durationThreshold: 0 }));
|
|
14316
|
+
}, ha = [200, 500], Su = 0, da = function() {
|
|
14320
14317
|
return wu() - Su;
|
|
14321
|
-
}, fe = [],
|
|
14322
|
-
var e = fe[fe.length - 1], n =
|
|
14318
|
+
}, fe = [], kr = {}, va = function(t) {
|
|
14319
|
+
var e = fe[fe.length - 1], n = kr[t.interactionId];
|
|
14323
14320
|
if (n || fe.length < 10 || t.duration > e.latency) {
|
|
14324
14321
|
if (n) n.entries.push(t), n.latency = Math.max(n.latency, t.duration);
|
|
14325
14322
|
else {
|
|
14326
14323
|
var r = { id: t.interactionId, latency: t.duration, entries: [t] };
|
|
14327
|
-
|
|
14324
|
+
kr[r.id] = r, fe.push(r);
|
|
14328
14325
|
}
|
|
14329
14326
|
fe.sort(function(i, o) {
|
|
14330
14327
|
return o.latency - i.latency;
|
|
14331
14328
|
}), fe.splice(10).forEach(function(i) {
|
|
14332
|
-
delete
|
|
14329
|
+
delete kr[i.id];
|
|
14333
14330
|
});
|
|
14334
14331
|
}
|
|
14335
14332
|
}, pb = function(t, e) {
|
|
@@ -14338,44 +14335,44 @@ var Ne, kt, yu, kn, pi, gu = -1, We = function(t) {
|
|
|
14338
14335
|
lb();
|
|
14339
14336
|
var r, i = ae("INP"), o = function(u) {
|
|
14340
14337
|
u.forEach(function(l) {
|
|
14341
|
-
l.interactionId &&
|
|
14338
|
+
l.interactionId && va(l), l.entryType === "first-input" && !fe.some(function(p) {
|
|
14342
14339
|
return p.entries.some(function(f) {
|
|
14343
14340
|
return l.duration === f.duration && l.startTime === f.startTime;
|
|
14344
14341
|
});
|
|
14345
|
-
}) &&
|
|
14342
|
+
}) && va(l);
|
|
14346
14343
|
});
|
|
14347
|
-
var c, s = (c = Math.min(fe.length - 1, Math.floor(
|
|
14344
|
+
var c, s = (c = Math.min(fe.length - 1, Math.floor(da() / 50)), fe[c]);
|
|
14348
14345
|
s && s.latency !== i.value && (i.value = s.latency, i.entries = s.entries, r());
|
|
14349
14346
|
}, a = yt("event", o, { durationThreshold: (n = e.durationThreshold) !== null && n !== void 0 ? n : 40 });
|
|
14350
|
-
r = se(t, i,
|
|
14351
|
-
o(a.takeRecords()), i.value < 0 &&
|
|
14347
|
+
r = se(t, i, ha, e.reportAllChanges), a && ("interactionId" in PerformanceEventTiming.prototype && a.observe({ type: "first-input", buffered: !0 }), Xn(function() {
|
|
14348
|
+
o(a.takeRecords()), i.value < 0 && da() > 0 && (i.value = 0, i.entries = []), r(!0);
|
|
14352
14349
|
}), We(function() {
|
|
14353
|
-
fe = [], Su = wu(), i = ae("INP"), r = se(t, i,
|
|
14350
|
+
fe = [], Su = wu(), i = ae("INP"), r = se(t, i, ha, e.reportAllChanges);
|
|
14354
14351
|
}));
|
|
14355
14352
|
});
|
|
14356
|
-
},
|
|
14353
|
+
}, ma = [2500, 4e3], Mr = {}, fb = function(t, e) {
|
|
14357
14354
|
e = e || {}, Kt(function() {
|
|
14358
|
-
var n, r =
|
|
14355
|
+
var n, r = $i(), i = ae("LCP"), o = function(c) {
|
|
14359
14356
|
var s = c[c.length - 1];
|
|
14360
14357
|
s && s.startTime < r.firstHiddenTime && (i.value = Math.max(s.startTime - qn(), 0), i.entries = [s], n());
|
|
14361
14358
|
}, a = yt("largest-contentful-paint", o);
|
|
14362
14359
|
if (a) {
|
|
14363
|
-
n = se(t, i,
|
|
14364
|
-
var u =
|
|
14365
|
-
|
|
14360
|
+
n = se(t, i, ma, e.reportAllChanges);
|
|
14361
|
+
var u = Ui(function() {
|
|
14362
|
+
Mr[i.id] || (o(a.takeRecords()), a.disconnect(), Mr[i.id] = !0, n(!0));
|
|
14366
14363
|
});
|
|
14367
14364
|
["keydown", "click"].forEach(function(c) {
|
|
14368
14365
|
addEventListener(c, function() {
|
|
14369
14366
|
return setTimeout(u, 0);
|
|
14370
14367
|
}, !0);
|
|
14371
14368
|
}), Xn(u), We(function(c) {
|
|
14372
|
-
i = ae("LCP"), n = se(t, i,
|
|
14373
|
-
i.value = performance.now() - c.timeStamp,
|
|
14369
|
+
i = ae("LCP"), n = se(t, i, ma, e.reportAllChanges), Di(function() {
|
|
14370
|
+
i.value = performance.now() - c.timeStamp, Mr[i.id] = !0, n(!0);
|
|
14374
14371
|
});
|
|
14375
14372
|
});
|
|
14376
14373
|
}
|
|
14377
14374
|
});
|
|
14378
|
-
},
|
|
14375
|
+
}, ya = [800, 1800], hb = function t(e) {
|
|
14379
14376
|
document.prerendering ? Kt(function() {
|
|
14380
14377
|
return t(e);
|
|
14381
14378
|
}) : document.readyState !== "complete" ? addEventListener("load", function() {
|
|
@@ -14383,14 +14380,14 @@ var Ne, kt, yu, kn, pi, gu = -1, We = function(t) {
|
|
|
14383
14380
|
}, !0) : setTimeout(e, 0);
|
|
14384
14381
|
}, db = function(t, e) {
|
|
14385
14382
|
e = e || {};
|
|
14386
|
-
var n = ae("TTFB"), r = se(t, n,
|
|
14383
|
+
var n = ae("TTFB"), r = se(t, n, ya, e.reportAllChanges);
|
|
14387
14384
|
hb(function() {
|
|
14388
|
-
var i =
|
|
14385
|
+
var i = Mi();
|
|
14389
14386
|
if (i) {
|
|
14390
14387
|
var o = i.responseStart;
|
|
14391
14388
|
if (o <= 0 || o > performance.now()) return;
|
|
14392
14389
|
n.value = Math.max(o - qn(), 0), n.entries = [i], r(!0), We(function() {
|
|
14393
|
-
n = ae("TTFB", 0), (r = se(t, n,
|
|
14390
|
+
n = ae("TTFB", 0), (r = se(t, n, ya, e.reportAllChanges))(!0);
|
|
14394
14391
|
});
|
|
14395
14392
|
}
|
|
14396
14393
|
});
|
|
@@ -14430,11 +14427,11 @@ const vb = (t) => (ob(t), _u(t), ub(t), fb(t), db(t), pb(t), () => {
|
|
|
14430
14427
|
)
|
|
14431
14428
|
}),
|
|
14432
14429
|
getCurrentDeviceDetails: () => {
|
|
14433
|
-
const e =
|
|
14430
|
+
const e = Dr(
|
|
14434
14431
|
t.memory.jsHeapSizeLimit
|
|
14435
|
-
), n =
|
|
14432
|
+
), n = Dr(
|
|
14436
14433
|
t.memory.totalJSHeapSize
|
|
14437
|
-
), r =
|
|
14434
|
+
), r = Dr(
|
|
14438
14435
|
t.memory.usedJSHeapSize
|
|
14439
14436
|
);
|
|
14440
14437
|
return {
|
|
@@ -14444,7 +14441,7 @@ const vb = (t) => (ob(t), _u(t), ub(t), fb(t), db(t), pb(t), () => {
|
|
|
14444
14441
|
};
|
|
14445
14442
|
}
|
|
14446
14443
|
};
|
|
14447
|
-
},
|
|
14444
|
+
}, Dr = (t) => t / Math.pow(1e3, 2), gb = (t) => 1024 * t;
|
|
14448
14445
|
function _b(t) {
|
|
14449
14446
|
return "regexValue" in t;
|
|
14450
14447
|
}
|
|
@@ -14575,7 +14572,7 @@ class Tb {
|
|
|
14575
14572
|
return {
|
|
14576
14573
|
sample: this.sampler(r.samplingRatio),
|
|
14577
14574
|
attributes: {
|
|
14578
|
-
[
|
|
14575
|
+
[ea]: r.samplingRatio
|
|
14579
14576
|
}
|
|
14580
14577
|
};
|
|
14581
14578
|
}
|
|
@@ -14597,7 +14594,7 @@ class Tb {
|
|
|
14597
14594
|
return {
|
|
14598
14595
|
sample: this.sampler(r.samplingRatio),
|
|
14599
14596
|
attributes: {
|
|
14600
|
-
[
|
|
14597
|
+
[ea]: r.samplingRatio
|
|
14601
14598
|
}
|
|
14602
14599
|
};
|
|
14603
14600
|
}
|
|
@@ -14606,7 +14603,7 @@ class Tb {
|
|
|
14606
14603
|
};
|
|
14607
14604
|
}
|
|
14608
14605
|
}
|
|
14609
|
-
const
|
|
14606
|
+
const ga = () => {
|
|
14610
14607
|
const t = {
|
|
14611
14608
|
end: () => {
|
|
14612
14609
|
},
|
|
@@ -14803,9 +14800,9 @@ class Ob {
|
|
|
14803
14800
|
}));
|
|
14804
14801
|
}
|
|
14805
14802
|
startSpan(e, n, r, i) {
|
|
14806
|
-
const o =
|
|
14803
|
+
const o = ta();
|
|
14807
14804
|
if (!o) {
|
|
14808
|
-
const u =
|
|
14805
|
+
const u = ga();
|
|
14809
14806
|
return i === void 0 && r === void 0 ? n(u) : i === void 0 ? r(u) : i(u);
|
|
14810
14807
|
}
|
|
14811
14808
|
const a = (u, c) => {
|
|
@@ -14827,9 +14824,9 @@ class Ob {
|
|
|
14827
14824
|
);
|
|
14828
14825
|
}
|
|
14829
14826
|
startManualSpan(e, n, r, i) {
|
|
14830
|
-
const o =
|
|
14827
|
+
const o = ta();
|
|
14831
14828
|
if (!o) {
|
|
14832
|
-
const a =
|
|
14829
|
+
const a = ga();
|
|
14833
14830
|
return i === void 0 && r === void 0 ? n(a) : i === void 0 ? r(a) : i(a);
|
|
14834
14831
|
}
|
|
14835
14832
|
return i === void 0 && r === void 0 ? o.startActiveSpan(e, n) : i === void 0 ? o.startActiveSpan(
|
|
@@ -14997,7 +14994,7 @@ class Ob {
|
|
|
14997
14994
|
return this._recordLog(e, n, r);
|
|
14998
14995
|
}
|
|
14999
14996
|
}
|
|
15000
|
-
class
|
|
14997
|
+
class Pb extends ql {
|
|
15001
14998
|
constructor(e) {
|
|
15002
14999
|
super(e), k(this, "observe"), k(this, "options"), this.options = e;
|
|
15003
15000
|
}
|
|
@@ -15055,16 +15052,20 @@ class Mb extends ql {
|
|
|
15055
15052
|
name: "@launchdarkly/observability/hooks"
|
|
15056
15053
|
}),
|
|
15057
15054
|
afterIdentify: (u, c, s) => {
|
|
15058
|
-
var l, p, f, m, v;
|
|
15059
|
-
for (const
|
|
15060
|
-
(m =
|
|
15055
|
+
var l, p, f, m, v, y, _, b;
|
|
15056
|
+
for (const L of (f = (p = (l = this.observe) == null ? void 0 : l.getHooks) == null ? void 0 : p.call(l, e)) != null ? f : [])
|
|
15057
|
+
(m = L.afterIdentify) == null || m.call(L, u, c, s);
|
|
15061
15058
|
if (s.status === "completed") {
|
|
15062
|
-
const
|
|
15063
|
-
key:
|
|
15059
|
+
const L = ee(P({}, Ji(u.context)), {
|
|
15060
|
+
key: (_ = (y = (v = this.options) == null ? void 0 : v.contextFriendlyName) == null ? void 0 : y.call(
|
|
15061
|
+
v,
|
|
15062
|
+
u.context
|
|
15063
|
+
)) != null ? _ : nr(u.context),
|
|
15064
15064
|
timeout: u.timeout,
|
|
15065
|
+
canonicalKey: nr(u.context),
|
|
15065
15066
|
[Ml]: s.status
|
|
15066
15067
|
});
|
|
15067
|
-
(
|
|
15068
|
+
(b = this.observe) == null || b.recordLog("LD.identify", "info", P(P({}, a), L));
|
|
15068
15069
|
}
|
|
15069
15070
|
return c;
|
|
15070
15071
|
},
|
|
@@ -15079,11 +15080,11 @@ class Mb extends ql {
|
|
|
15079
15080
|
[Cl]: s.variationIndex
|
|
15080
15081
|
} : {});
|
|
15081
15082
|
if (s.reason)
|
|
15082
|
-
for (const b in
|
|
15083
|
+
for (const b in Ki) {
|
|
15083
15084
|
const L = b, U = s.reason[L];
|
|
15084
|
-
U && (y[
|
|
15085
|
+
U && (y[Ki[L]] = U);
|
|
15085
15086
|
}
|
|
15086
|
-
u.context && (y[Ol] = JSON.stringify(
|
|
15087
|
+
u.context && (y[Ol] = JSON.stringify(Ji(u.context)), y[Al] = nr(u.context));
|
|
15087
15088
|
const _ = P(P({}, a), y);
|
|
15088
15089
|
return (v = this.observe) == null || v.startSpan(Tl, (b) => {
|
|
15089
15090
|
b && b.addEvent(J, _);
|
|
@@ -15104,6 +15105,6 @@ class Mb extends ql {
|
|
|
15104
15105
|
}
|
|
15105
15106
|
export {
|
|
15106
15107
|
ot as LDObserve,
|
|
15107
|
-
|
|
15108
|
+
Pb as default
|
|
15108
15109
|
};
|
|
15109
15110
|
//# sourceMappingURL=observability.js.map
|