@launchdarkly/o11y 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/{common-1QcQF8EE.js → common-C6gSg2Rq.js} +649 -635
- package/dist/{common-1QcQF8EE.js.map → common-C6gSg2Rq.js.map} +1 -1
- package/dist/index.d.ts +49 -0
- package/dist/index.js +5 -5
- package/dist/index.umd.js +74 -74
- package/dist/index.umd.js.map +1 -1
- package/dist/{observe-TWCqC5wb.js → observe-CL-A2YiL.js} +1807 -1687
- package/dist/observe-CL-A2YiL.js.map +1 -0
- package/dist/observe.d.ts +49 -0
- package/dist/observe.js +2 -2
- package/dist/{record-Bgkzgi9x.js → record-BpTfYU5r.js} +2 -2
- package/dist/{record-Bgkzgi9x.js.map → record-BpTfYU5r.js.map} +1 -1
- package/dist/record.d.ts +49 -0
- package/dist/record.js +2 -2
- package/package.json +1 -1
- package/dist/observe-TWCqC5wb.js.map +0 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var un = Object.defineProperty, ln = Object.defineProperties;
|
|
2
|
+
var fn = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var fe = Object.getOwnPropertySymbols;
|
|
4
|
+
var ut = Object.prototype.hasOwnProperty, lt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var we = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), hn = (e) => {
|
|
6
6
|
throw TypeError(e);
|
|
7
7
|
};
|
|
8
|
-
var
|
|
8
|
+
var Ce = (e, t, n) => t in e ? un(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, E = (e, t) => {
|
|
9
9
|
for (var n in t || (t = {}))
|
|
10
|
-
|
|
11
|
-
if (
|
|
12
|
-
for (var n of
|
|
13
|
-
|
|
10
|
+
ut.call(t, n) && Ce(e, n, t[n]);
|
|
11
|
+
if (fe)
|
|
12
|
+
for (var n of fe(t))
|
|
13
|
+
lt.call(t, n) && Ce(e, n, t[n]);
|
|
14
14
|
return e;
|
|
15
|
-
}, B = (e, t) =>
|
|
15
|
+
}, B = (e, t) => ln(e, fn(t));
|
|
16
16
|
var G = (e, t) => {
|
|
17
17
|
var n = {};
|
|
18
18
|
for (var r in e)
|
|
19
|
-
|
|
20
|
-
if (e != null &&
|
|
21
|
-
for (var r of
|
|
22
|
-
t.indexOf(r) < 0 &&
|
|
19
|
+
ut.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
20
|
+
if (e != null && fe)
|
|
21
|
+
for (var r of fe(e))
|
|
22
|
+
t.indexOf(r) < 0 && lt.call(e, r) && (n[r] = e[r]);
|
|
23
23
|
return n;
|
|
24
24
|
};
|
|
25
|
-
var Y = (e, t, n) =>
|
|
25
|
+
var Y = (e, t, n) => Ce(e, typeof t != "symbol" ? t + "" : t, n);
|
|
26
26
|
var V = (e, t, n) => new Promise((r, i) => {
|
|
27
27
|
var s = (c) => {
|
|
28
28
|
try {
|
|
@@ -38,46 +38,46 @@ var V = (e, t, n) => new Promise((r, i) => {
|
|
|
38
38
|
}
|
|
39
39
|
}, a = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(s, o);
|
|
40
40
|
a((n = n.apply(e, t)).next());
|
|
41
|
-
}),
|
|
41
|
+
}), dn = function(e, t) {
|
|
42
42
|
this[0] = e, this[1] = t;
|
|
43
43
|
};
|
|
44
|
-
var
|
|
45
|
-
var t = e[
|
|
46
|
-
return t == null ? (t = e[
|
|
44
|
+
var ke = (e) => {
|
|
45
|
+
var t = e[we("asyncIterator")], n = !1, r, i = {};
|
|
46
|
+
return t == null ? (t = e[we("iterator")](), r = (s) => i[s] = (o) => t[s](o)) : (t = t.call(e), r = (s) => i[s] = (o) => {
|
|
47
47
|
if (n) {
|
|
48
48
|
if (n = !1, s === "throw") throw o;
|
|
49
49
|
return o;
|
|
50
50
|
}
|
|
51
51
|
return n = !0, {
|
|
52
52
|
done: !1,
|
|
53
|
-
value: new
|
|
53
|
+
value: new dn(new Promise((a) => {
|
|
54
54
|
var c = t[s](o);
|
|
55
|
-
c instanceof Object ||
|
|
55
|
+
c instanceof Object || hn("Object expected"), a(c);
|
|
56
56
|
}), 1)
|
|
57
57
|
};
|
|
58
|
-
}), i[
|
|
58
|
+
}), i[we("iterator")] = () => i, r("next"), "throw" in t ? r("throw") : i.throw = (s) => {
|
|
59
59
|
throw s;
|
|
60
60
|
}, "return" in t && r("return"), i;
|
|
61
61
|
};
|
|
62
|
-
import { d as $, a as
|
|
63
|
-
function
|
|
62
|
+
import { d as $, a as pn, B as mn, i as ft } from "./buffer-CwCRPuMA.js";
|
|
63
|
+
function ge(e, t) {
|
|
64
64
|
if (!!!e)
|
|
65
65
|
throw new Error(t);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function gn(e) {
|
|
68
68
|
return typeof e == "object" && e !== null;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function yn(e, t) {
|
|
71
71
|
if (!!!e)
|
|
72
72
|
throw new Error(
|
|
73
73
|
"Unexpected invariant triggered."
|
|
74
74
|
);
|
|
75
75
|
}
|
|
76
|
-
const
|
|
77
|
-
function
|
|
76
|
+
const En = /\r\n|[\n\r]/g;
|
|
77
|
+
function Ve(e, t) {
|
|
78
78
|
let n = 0, r = 1;
|
|
79
|
-
for (const i of e.body.matchAll(
|
|
80
|
-
if (typeof i.index == "number" ||
|
|
79
|
+
for (const i of e.body.matchAll(En)) {
|
|
80
|
+
if (typeof i.index == "number" || yn(!1), i.index >= t)
|
|
81
81
|
break;
|
|
82
82
|
n = i.index + i[0].length, r += 1;
|
|
83
83
|
}
|
|
@@ -86,27 +86,27 @@ function Be(e, t) {
|
|
|
86
86
|
column: t + 1 - n
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
return
|
|
89
|
+
function _n(e) {
|
|
90
|
+
return wt(
|
|
91
91
|
e.source,
|
|
92
|
-
|
|
92
|
+
Ve(e.source, e.start)
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function wt(e, t) {
|
|
96
96
|
const n = e.locationOffset.column - 1, r = "".padStart(n) + e.body, i = t.line - 1, s = e.locationOffset.line - 1, o = t.line + s, a = t.line === 1 ? n : 0, c = t.column + a, f = `${e.name}:${o}:${c}
|
|
97
97
|
`, h = r.split(/\r\n|[\n\r]/g), m = h[i];
|
|
98
98
|
if (m.length > 120) {
|
|
99
99
|
const _ = Math.floor(c / 80), v = c % 80, y = [];
|
|
100
|
-
for (let
|
|
101
|
-
y.push(m.slice(
|
|
102
|
-
return f +
|
|
100
|
+
for (let A = 0; A < m.length; A += 80)
|
|
101
|
+
y.push(m.slice(A, A + 80));
|
|
102
|
+
return f + ht([
|
|
103
103
|
[`${o} |`, y[0]],
|
|
104
|
-
...y.slice(1, _ + 1).map((
|
|
104
|
+
...y.slice(1, _ + 1).map((A) => ["|", A]),
|
|
105
105
|
["|", "^".padStart(v)],
|
|
106
106
|
["|", y[_ + 1]]
|
|
107
107
|
]);
|
|
108
108
|
}
|
|
109
|
-
return f +
|
|
109
|
+
return f + ht([
|
|
110
110
|
// Lines specified like this: ["prefix", "string"],
|
|
111
111
|
[`${o - 1} |`, h[i - 1]],
|
|
112
112
|
[`${o} |`, m],
|
|
@@ -114,12 +114,12 @@ function Ot(e, t) {
|
|
|
114
114
|
[`${o + 1} |`, h[i + 1]]
|
|
115
115
|
]);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function ht(e) {
|
|
118
118
|
const t = e.filter(([r, i]) => i !== void 0), n = Math.max(...t.map(([r]) => r.length));
|
|
119
119
|
return t.map(([r, i]) => r.padStart(n) + (i ? " " + i : "")).join(`
|
|
120
120
|
`);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Tn(e) {
|
|
123
123
|
const t = e[0];
|
|
124
124
|
return t == null || "kind" in t || "length" in t ? {
|
|
125
125
|
nodes: t,
|
|
@@ -130,7 +130,7 @@ function _n(e) {
|
|
|
130
130
|
extensions: e[5]
|
|
131
131
|
} : t;
|
|
132
132
|
}
|
|
133
|
-
class
|
|
133
|
+
class We extends Error {
|
|
134
134
|
/**
|
|
135
135
|
* An array of `{ line, column }` locations within the source GraphQL document
|
|
136
136
|
* which correspond to this error.
|
|
@@ -171,15 +171,15 @@ class Ke extends Error {
|
|
|
171
171
|
*/
|
|
172
172
|
constructor(t, ...n) {
|
|
173
173
|
var r, i, s;
|
|
174
|
-
const { nodes: o, source: a, positions: c, path: f, originalError: h, extensions: m } =
|
|
175
|
-
super(t), this.name = "GraphQLError", this.path = f != null ? f : void 0, this.originalError = h != null ? h : void 0, this.nodes =
|
|
174
|
+
const { nodes: o, source: a, positions: c, path: f, originalError: h, extensions: m } = Tn(n);
|
|
175
|
+
super(t), this.name = "GraphQLError", this.path = f != null ? f : void 0, this.originalError = h != null ? h : void 0, this.nodes = dt(
|
|
176
176
|
Array.isArray(o) ? o : o ? [o] : void 0
|
|
177
177
|
);
|
|
178
|
-
const _ =
|
|
178
|
+
const _ = dt(
|
|
179
179
|
(r = this.nodes) === null || r === void 0 ? void 0 : r.map((y) => y.loc).filter((y) => y != null)
|
|
180
180
|
);
|
|
181
|
-
this.source = a != null ? a : _ == null || (i = _[0]) === null || i === void 0 ? void 0 : i.source, this.positions = c != null ? c : _ == null ? void 0 : _.map((y) => y.start), this.locations = c && a ? c.map((y) =>
|
|
182
|
-
const v =
|
|
181
|
+
this.source = a != null ? a : _ == null || (i = _[0]) === null || i === void 0 ? void 0 : i.source, this.positions = c != null ? c : _ == null ? void 0 : _.map((y) => y.start), this.locations = c && a ? c.map((y) => Ve(a, y)) : _ == null ? void 0 : _.map((y) => Ve(y.source, y.start));
|
|
182
|
+
const v = gn(
|
|
183
183
|
h == null ? void 0 : h.extensions
|
|
184
184
|
) ? h == null ? void 0 : h.extensions : void 0;
|
|
185
185
|
this.extensions = (s = m != null ? m : v) !== null && s !== void 0 ? s : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
|
|
@@ -206,7 +206,7 @@ class Ke extends Error {
|
|
|
206
206
|
value: h.stack,
|
|
207
207
|
writable: !0,
|
|
208
208
|
configurable: !0
|
|
209
|
-
}) : Error.captureStackTrace ? Error.captureStackTrace(this,
|
|
209
|
+
}) : Error.captureStackTrace ? Error.captureStackTrace(this, We) : Object.defineProperty(this, "stack", {
|
|
210
210
|
value: Error().stack,
|
|
211
211
|
writable: !0,
|
|
212
212
|
configurable: !0
|
|
@@ -221,12 +221,12 @@ class Ke extends Error {
|
|
|
221
221
|
for (const n of this.nodes)
|
|
222
222
|
n.loc && (t += `
|
|
223
223
|
|
|
224
|
-
` +
|
|
224
|
+
` + _n(n.loc));
|
|
225
225
|
else if (this.source && this.locations)
|
|
226
226
|
for (const n of this.locations)
|
|
227
227
|
t += `
|
|
228
228
|
|
|
229
|
-
` +
|
|
229
|
+
` + wt(this.source, n);
|
|
230
230
|
return t;
|
|
231
231
|
}
|
|
232
232
|
toJSON() {
|
|
@@ -236,16 +236,16 @@ class Ke extends Error {
|
|
|
236
236
|
return this.locations != null && (t.locations = this.locations), this.path != null && (t.path = this.path), this.extensions != null && Object.keys(this.extensions).length > 0 && (t.extensions = this.extensions), t;
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function dt(e) {
|
|
240
240
|
return e === void 0 || e.length === 0 ? void 0 : e;
|
|
241
241
|
}
|
|
242
242
|
function D(e, t, n) {
|
|
243
|
-
return new
|
|
243
|
+
return new We(`Syntax Error: ${n}`, {
|
|
244
244
|
source: e,
|
|
245
245
|
positions: [t]
|
|
246
246
|
});
|
|
247
247
|
}
|
|
248
|
-
class
|
|
248
|
+
class Sn {
|
|
249
249
|
/**
|
|
250
250
|
* The character offset at which this Node begins.
|
|
251
251
|
*/
|
|
@@ -274,7 +274,7 @@ class Tn {
|
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
class
|
|
277
|
+
class Ct {
|
|
278
278
|
/**
|
|
279
279
|
* The kind of Token.
|
|
280
280
|
*/
|
|
@@ -316,7 +316,7 @@ class wt {
|
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
|
-
const
|
|
319
|
+
const kt = {
|
|
320
320
|
Name: [],
|
|
321
321
|
Document: ["definitions"],
|
|
322
322
|
OperationDefinition: [
|
|
@@ -390,45 +390,45 @@ const Ct = {
|
|
|
390
390
|
UnionTypeExtension: ["name", "directives", "types"],
|
|
391
391
|
EnumTypeExtension: ["name", "directives", "values"],
|
|
392
392
|
InputObjectTypeExtension: ["name", "directives", "fields"]
|
|
393
|
-
},
|
|
394
|
-
function
|
|
393
|
+
}, vn = new Set(Object.keys(kt));
|
|
394
|
+
function pt(e) {
|
|
395
395
|
const t = e == null ? void 0 : e.kind;
|
|
396
|
-
return typeof t == "string" &&
|
|
396
|
+
return typeof t == "string" && vn.has(t);
|
|
397
397
|
}
|
|
398
398
|
var X;
|
|
399
399
|
(function(e) {
|
|
400
400
|
e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
|
|
401
401
|
})(X || (X = {}));
|
|
402
|
-
var
|
|
402
|
+
var je;
|
|
403
403
|
(function(e) {
|
|
404
404
|
e.QUERY = "QUERY", e.MUTATION = "MUTATION", e.SUBSCRIPTION = "SUBSCRIPTION", e.FIELD = "FIELD", e.FRAGMENT_DEFINITION = "FRAGMENT_DEFINITION", e.FRAGMENT_SPREAD = "FRAGMENT_SPREAD", e.INLINE_FRAGMENT = "INLINE_FRAGMENT", e.VARIABLE_DEFINITION = "VARIABLE_DEFINITION", e.SCHEMA = "SCHEMA", e.SCALAR = "SCALAR", e.OBJECT = "OBJECT", e.FIELD_DEFINITION = "FIELD_DEFINITION", e.ARGUMENT_DEFINITION = "ARGUMENT_DEFINITION", e.INTERFACE = "INTERFACE", e.UNION = "UNION", e.ENUM = "ENUM", e.ENUM_VALUE = "ENUM_VALUE", e.INPUT_OBJECT = "INPUT_OBJECT", e.INPUT_FIELD_DEFINITION = "INPUT_FIELD_DEFINITION";
|
|
405
|
-
})(
|
|
405
|
+
})(je || (je = {}));
|
|
406
406
|
var g;
|
|
407
407
|
(function(e) {
|
|
408
408
|
e.NAME = "Name", e.DOCUMENT = "Document", e.OPERATION_DEFINITION = "OperationDefinition", e.VARIABLE_DEFINITION = "VariableDefinition", e.SELECTION_SET = "SelectionSet", e.FIELD = "Field", e.ARGUMENT = "Argument", e.FRAGMENT_SPREAD = "FragmentSpread", e.INLINE_FRAGMENT = "InlineFragment", e.FRAGMENT_DEFINITION = "FragmentDefinition", e.VARIABLE = "Variable", e.INT = "IntValue", e.FLOAT = "FloatValue", e.STRING = "StringValue", e.BOOLEAN = "BooleanValue", e.NULL = "NullValue", e.ENUM = "EnumValue", e.LIST = "ListValue", e.OBJECT = "ObjectValue", e.OBJECT_FIELD = "ObjectField", e.DIRECTIVE = "Directive", e.NAMED_TYPE = "NamedType", e.LIST_TYPE = "ListType", e.NON_NULL_TYPE = "NonNullType", e.SCHEMA_DEFINITION = "SchemaDefinition", e.OPERATION_TYPE_DEFINITION = "OperationTypeDefinition", e.SCALAR_TYPE_DEFINITION = "ScalarTypeDefinition", e.OBJECT_TYPE_DEFINITION = "ObjectTypeDefinition", e.FIELD_DEFINITION = "FieldDefinition", e.INPUT_VALUE_DEFINITION = "InputValueDefinition", e.INTERFACE_TYPE_DEFINITION = "InterfaceTypeDefinition", e.UNION_TYPE_DEFINITION = "UnionTypeDefinition", e.ENUM_TYPE_DEFINITION = "EnumTypeDefinition", e.ENUM_VALUE_DEFINITION = "EnumValueDefinition", e.INPUT_OBJECT_TYPE_DEFINITION = "InputObjectTypeDefinition", e.DIRECTIVE_DEFINITION = "DirectiveDefinition", e.SCHEMA_EXTENSION = "SchemaExtension", e.SCALAR_TYPE_EXTENSION = "ScalarTypeExtension", e.OBJECT_TYPE_EXTENSION = "ObjectTypeExtension", e.INTERFACE_TYPE_EXTENSION = "InterfaceTypeExtension", e.UNION_TYPE_EXTENSION = "UnionTypeExtension", e.ENUM_TYPE_EXTENSION = "EnumTypeExtension", e.INPUT_OBJECT_TYPE_EXTENSION = "InputObjectTypeExtension";
|
|
409
409
|
})(g || (g = {}));
|
|
410
|
-
function
|
|
410
|
+
function qe(e) {
|
|
411
411
|
return e === 9 || e === 32;
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function oe(e) {
|
|
414
414
|
return e >= 48 && e <= 57;
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function Rt(e) {
|
|
417
417
|
return e >= 97 && e <= 122 || // A-Z
|
|
418
418
|
e >= 65 && e <= 90;
|
|
419
419
|
}
|
|
420
|
-
function
|
|
421
|
-
return
|
|
420
|
+
function Lt(e) {
|
|
421
|
+
return Rt(e) || e === 95;
|
|
422
422
|
}
|
|
423
|
-
function
|
|
424
|
-
return
|
|
423
|
+
function In(e) {
|
|
424
|
+
return Rt(e) || oe(e) || e === 95;
|
|
425
425
|
}
|
|
426
426
|
function An(e) {
|
|
427
427
|
var t;
|
|
428
428
|
let n = Number.MAX_SAFE_INTEGER, r = null, i = -1;
|
|
429
429
|
for (let o = 0; o < e.length; ++o) {
|
|
430
430
|
var s;
|
|
431
|
-
const a = e[o], c =
|
|
431
|
+
const a = e[o], c = Nn(a);
|
|
432
432
|
c !== a.length && (r = (s = r) !== null && s !== void 0 ? s : o, i = o, o !== 0 && c < n && (n = c));
|
|
433
433
|
}
|
|
434
434
|
return e.map((o, a) => a === 0 ? o : o.slice(n)).slice(
|
|
@@ -436,19 +436,19 @@ function An(e) {
|
|
|
436
436
|
i + 1
|
|
437
437
|
);
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function Nn(e) {
|
|
440
440
|
let t = 0;
|
|
441
|
-
for (; t < e.length &&
|
|
441
|
+
for (; t < e.length && qe(e.charCodeAt(t)); )
|
|
442
442
|
++t;
|
|
443
443
|
return t;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
446
|
-
const n = e.replace(/"""/g, '\\"""'), r = n.split(/\r\n|[\n\r]/g), i = r.length === 1, s = r.length > 1 && r.slice(1).every((v) => v.length === 0 ||
|
|
445
|
+
function bn(e, t) {
|
|
446
|
+
const n = e.replace(/"""/g, '\\"""'), r = n.split(/\r\n|[\n\r]/g), i = r.length === 1, s = r.length > 1 && r.slice(1).every((v) => v.length === 0 || qe(v.charCodeAt(0))), o = n.endsWith('\\"""'), a = e.endsWith('"') && !o, c = e.endsWith("\\"), f = a || c, h = (
|
|
447
447
|
// add leading and trailing new lines only if it improves readability
|
|
448
448
|
!i || e.length > 70 || f || s || o
|
|
449
449
|
);
|
|
450
450
|
let m = "";
|
|
451
|
-
const _ = i &&
|
|
451
|
+
const _ = i && qe(e.charCodeAt(0));
|
|
452
452
|
return (h && !_ || s) && (m += `
|
|
453
453
|
`), m += n, (h || f) && (m += `
|
|
454
454
|
`), '"""' + m + '"""';
|
|
@@ -457,7 +457,7 @@ var l;
|
|
|
457
457
|
(function(e) {
|
|
458
458
|
e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
|
|
459
459
|
})(l || (l = {}));
|
|
460
|
-
class
|
|
460
|
+
class xn {
|
|
461
461
|
/**
|
|
462
462
|
* The previously focused non-ignored token.
|
|
463
463
|
*/
|
|
@@ -471,7 +471,7 @@ class bn {
|
|
|
471
471
|
* The character offset at which the current line begins.
|
|
472
472
|
*/
|
|
473
473
|
constructor(t) {
|
|
474
|
-
const n = new
|
|
474
|
+
const n = new Ct(l.SOF, 0, 0, 0, 0);
|
|
475
475
|
this.source = t, this.lastToken = n, this.token = n, this.line = 1, this.lineStart = 0;
|
|
476
476
|
}
|
|
477
477
|
get [Symbol.toStringTag]() {
|
|
@@ -494,26 +494,26 @@ class bn {
|
|
|
494
494
|
if (t.next)
|
|
495
495
|
t = t.next;
|
|
496
496
|
else {
|
|
497
|
-
const n =
|
|
497
|
+
const n = On(this, t.end);
|
|
498
498
|
t.next = n, n.prev = t, t = n;
|
|
499
499
|
}
|
|
500
500
|
while (t.kind === l.COMMENT);
|
|
501
501
|
return t;
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function Dn(e) {
|
|
505
505
|
return e === l.BANG || e === l.DOLLAR || e === l.AMP || e === l.PAREN_L || e === l.PAREN_R || e === l.SPREAD || e === l.COLON || e === l.EQUALS || e === l.AT || e === l.BRACKET_L || e === l.BRACKET_R || e === l.BRACE_L || e === l.PIPE || e === l.BRACE_R;
|
|
506
506
|
}
|
|
507
507
|
function Z(e) {
|
|
508
508
|
return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
|
|
509
509
|
}
|
|
510
510
|
function Ae(e, t) {
|
|
511
|
-
return
|
|
511
|
+
return Pt(e.charCodeAt(t)) && Ft(e.charCodeAt(t + 1));
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function Pt(e) {
|
|
514
514
|
return e >= 55296 && e <= 56319;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function Ft(e) {
|
|
517
517
|
return e >= 56320 && e <= 57343;
|
|
518
518
|
}
|
|
519
519
|
function j(e, t) {
|
|
@@ -528,9 +528,9 @@ function j(e, t) {
|
|
|
528
528
|
}
|
|
529
529
|
function N(e, t, n, r, i) {
|
|
530
530
|
const s = e.line, o = 1 + n - e.lineStart;
|
|
531
|
-
return new
|
|
531
|
+
return new Ct(t, n, r, s, o, i);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function On(e, t) {
|
|
534
534
|
const n = e.source.body, r = n.length;
|
|
535
535
|
let i = t;
|
|
536
536
|
for (; i < r; ) {
|
|
@@ -571,7 +571,7 @@ function Dn(e, t) {
|
|
|
571
571
|
continue;
|
|
572
572
|
// Comment
|
|
573
573
|
case 35:
|
|
574
|
-
return
|
|
574
|
+
return wn(e, i);
|
|
575
575
|
// Token ::
|
|
576
576
|
// - Punctuator
|
|
577
577
|
// - Name
|
|
@@ -612,12 +612,12 @@ function Dn(e, t) {
|
|
|
612
612
|
return N(e, l.BRACE_R, i, i + 1);
|
|
613
613
|
// StringValue
|
|
614
614
|
case 34:
|
|
615
|
-
return n.charCodeAt(i + 1) === 34 && n.charCodeAt(i + 2) === 34 ?
|
|
615
|
+
return n.charCodeAt(i + 1) === 34 && n.charCodeAt(i + 2) === 34 ? Fn(e, i) : kn(e, i);
|
|
616
616
|
}
|
|
617
|
-
if (
|
|
618
|
-
return
|
|
619
|
-
if (
|
|
620
|
-
return
|
|
617
|
+
if (oe(s) || s === 45)
|
|
618
|
+
return Cn(e, i, s);
|
|
619
|
+
if (Lt(s))
|
|
620
|
+
return Mn(e, i);
|
|
621
621
|
throw D(
|
|
622
622
|
e.source,
|
|
623
623
|
i,
|
|
@@ -626,7 +626,7 @@ function Dn(e, t) {
|
|
|
626
626
|
}
|
|
627
627
|
return N(e, l.EOF, r, r);
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function wn(e, t) {
|
|
630
630
|
const n = e.source.body, r = n.length;
|
|
631
631
|
let i = t + 1;
|
|
632
632
|
for (; i < r; ) {
|
|
@@ -648,11 +648,11 @@ function On(e, t) {
|
|
|
648
648
|
n.slice(t + 1, i)
|
|
649
649
|
);
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function Cn(e, t, n) {
|
|
652
652
|
const r = e.source.body;
|
|
653
653
|
let i = t, s = n, o = !1;
|
|
654
654
|
if (s === 45 && (s = r.charCodeAt(++i)), s === 48) {
|
|
655
|
-
if (s = r.charCodeAt(++i),
|
|
655
|
+
if (s = r.charCodeAt(++i), oe(s))
|
|
656
656
|
throw D(
|
|
657
657
|
e.source,
|
|
658
658
|
i,
|
|
@@ -662,8 +662,8 @@ function wn(e, t, n) {
|
|
|
662
662
|
)}.`
|
|
663
663
|
);
|
|
664
664
|
} else
|
|
665
|
-
i =
|
|
666
|
-
if (s === 46 && (o = !0, s = r.charCodeAt(++i), i =
|
|
665
|
+
i = Re(e, i, s), s = r.charCodeAt(i);
|
|
666
|
+
if (s === 46 && (o = !0, s = r.charCodeAt(++i), i = Re(e, i, s), s = r.charCodeAt(i)), (s === 69 || s === 101) && (o = !0, s = r.charCodeAt(++i), (s === 43 || s === 45) && (s = r.charCodeAt(++i)), i = Re(e, i, s), s = r.charCodeAt(i)), s === 46 || Lt(s))
|
|
667
667
|
throw D(
|
|
668
668
|
e.source,
|
|
669
669
|
i,
|
|
@@ -680,8 +680,8 @@ function wn(e, t, n) {
|
|
|
680
680
|
r.slice(t, i)
|
|
681
681
|
);
|
|
682
682
|
}
|
|
683
|
-
function
|
|
684
|
-
if (!
|
|
683
|
+
function Re(e, t, n) {
|
|
684
|
+
if (!oe(n))
|
|
685
685
|
throw D(
|
|
686
686
|
e.source,
|
|
687
687
|
t,
|
|
@@ -692,11 +692,11 @@ function ke(e, t, n) {
|
|
|
692
692
|
);
|
|
693
693
|
const r = e.source.body;
|
|
694
694
|
let i = t + 1;
|
|
695
|
-
for (;
|
|
695
|
+
for (; oe(r.charCodeAt(i)); )
|
|
696
696
|
++i;
|
|
697
697
|
return i;
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function kn(e, t) {
|
|
700
700
|
const n = e.source.body, r = n.length;
|
|
701
701
|
let i = t + 1, s = i, o = "";
|
|
702
702
|
for (; i < r; ) {
|
|
@@ -705,7 +705,7 @@ function Cn(e, t) {
|
|
|
705
705
|
return o += n.slice(s, i), N(e, l.STRING, t, i + 1, o);
|
|
706
706
|
if (a === 92) {
|
|
707
707
|
o += n.slice(s, i);
|
|
708
|
-
const c = n.charCodeAt(i + 1) === 117 ? n.charCodeAt(i + 2) === 123 ?
|
|
708
|
+
const c = n.charCodeAt(i + 1) === 117 ? n.charCodeAt(i + 2) === 123 ? Rn(e, i) : Ln(e, i) : Pn(e, i);
|
|
709
709
|
o += c.value, i += c.size, s = i;
|
|
710
710
|
continue;
|
|
711
711
|
}
|
|
@@ -727,7 +727,7 @@ function Cn(e, t) {
|
|
|
727
727
|
}
|
|
728
728
|
throw D(e.source, i, "Unterminated string.");
|
|
729
729
|
}
|
|
730
|
-
function
|
|
730
|
+
function Rn(e, t) {
|
|
731
731
|
const n = e.source.body;
|
|
732
732
|
let r = 0, i = 3;
|
|
733
733
|
for (; i < 12; ) {
|
|
@@ -740,7 +740,7 @@ function kn(e, t) {
|
|
|
740
740
|
size: i
|
|
741
741
|
};
|
|
742
742
|
}
|
|
743
|
-
if (r = r << 4 |
|
|
743
|
+
if (r = r << 4 | ie(s), r < 0)
|
|
744
744
|
break;
|
|
745
745
|
}
|
|
746
746
|
throw D(
|
|
@@ -752,16 +752,16 @@ function kn(e, t) {
|
|
|
752
752
|
)}".`
|
|
753
753
|
);
|
|
754
754
|
}
|
|
755
|
-
function
|
|
756
|
-
const n = e.source.body, r =
|
|
755
|
+
function Ln(e, t) {
|
|
756
|
+
const n = e.source.body, r = mt(n, t + 2);
|
|
757
757
|
if (Z(r))
|
|
758
758
|
return {
|
|
759
759
|
value: String.fromCodePoint(r),
|
|
760
760
|
size: 6
|
|
761
761
|
};
|
|
762
|
-
if (
|
|
763
|
-
const i =
|
|
764
|
-
if (
|
|
762
|
+
if (Pt(r) && n.charCodeAt(t + 6) === 92 && n.charCodeAt(t + 7) === 117) {
|
|
763
|
+
const i = mt(n, t + 8);
|
|
764
|
+
if (Ft(i))
|
|
765
765
|
return {
|
|
766
766
|
value: String.fromCodePoint(r, i),
|
|
767
767
|
size: 12
|
|
@@ -773,13 +773,13 @@ function Rn(e, t) {
|
|
|
773
773
|
`Invalid Unicode escape sequence: "${n.slice(t, t + 6)}".`
|
|
774
774
|
);
|
|
775
775
|
}
|
|
776
|
-
function
|
|
777
|
-
return
|
|
776
|
+
function mt(e, t) {
|
|
777
|
+
return ie(e.charCodeAt(t)) << 12 | ie(e.charCodeAt(t + 1)) << 8 | ie(e.charCodeAt(t + 2)) << 4 | ie(e.charCodeAt(t + 3));
|
|
778
778
|
}
|
|
779
|
-
function
|
|
779
|
+
function ie(e) {
|
|
780
780
|
return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function Pn(e, t) {
|
|
783
783
|
const n = e.source.body;
|
|
784
784
|
switch (n.charCodeAt(t + 1)) {
|
|
785
785
|
case 34:
|
|
@@ -833,7 +833,7 @@ function Ln(e, t) {
|
|
|
833
833
|
)}".`
|
|
834
834
|
);
|
|
835
835
|
}
|
|
836
|
-
function
|
|
836
|
+
function Fn(e, t) {
|
|
837
837
|
const n = e.source.body, r = n.length;
|
|
838
838
|
let i = e.lineStart, s = t + 3, o = s, a = "";
|
|
839
839
|
const c = [];
|
|
@@ -876,12 +876,12 @@ function Pn(e, t) {
|
|
|
876
876
|
}
|
|
877
877
|
throw D(e.source, s, "Unterminated string.");
|
|
878
878
|
}
|
|
879
|
-
function
|
|
879
|
+
function Mn(e, t) {
|
|
880
880
|
const n = e.source.body, r = n.length;
|
|
881
881
|
let i = t + 1;
|
|
882
882
|
for (; i < r; ) {
|
|
883
883
|
const s = n.charCodeAt(i);
|
|
884
|
-
if (
|
|
884
|
+
if (In(s))
|
|
885
885
|
++i;
|
|
886
886
|
else
|
|
887
887
|
break;
|
|
@@ -894,56 +894,56 @@ function Fn(e, t) {
|
|
|
894
894
|
n.slice(t, i)
|
|
895
895
|
);
|
|
896
896
|
}
|
|
897
|
-
const
|
|
898
|
-
function
|
|
899
|
-
return
|
|
897
|
+
const $n = 10, Mt = 2;
|
|
898
|
+
function Ze(e) {
|
|
899
|
+
return Ne(e, []);
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function Ne(e, t) {
|
|
902
902
|
switch (typeof e) {
|
|
903
903
|
case "string":
|
|
904
904
|
return JSON.stringify(e);
|
|
905
905
|
case "function":
|
|
906
906
|
return e.name ? `[function ${e.name}]` : "[function]";
|
|
907
907
|
case "object":
|
|
908
|
-
return
|
|
908
|
+
return Un(e, t);
|
|
909
909
|
default:
|
|
910
910
|
return String(e);
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function Un(e, t) {
|
|
914
914
|
if (e === null)
|
|
915
915
|
return "null";
|
|
916
916
|
if (t.includes(e))
|
|
917
917
|
return "[Circular]";
|
|
918
918
|
const n = [...t, e];
|
|
919
|
-
if (
|
|
919
|
+
if (Bn(e)) {
|
|
920
920
|
const r = e.toJSON();
|
|
921
921
|
if (r !== e)
|
|
922
|
-
return typeof r == "string" ? r :
|
|
922
|
+
return typeof r == "string" ? r : Ne(r, n);
|
|
923
923
|
} else if (Array.isArray(e))
|
|
924
|
-
return
|
|
925
|
-
return
|
|
924
|
+
return jn(e, n);
|
|
925
|
+
return Vn(e, n);
|
|
926
926
|
}
|
|
927
|
-
function
|
|
927
|
+
function Bn(e) {
|
|
928
928
|
return typeof e.toJSON == "function";
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function Vn(e, t) {
|
|
931
931
|
const n = Object.entries(e);
|
|
932
|
-
return n.length === 0 ? "{}" : t.length >
|
|
933
|
-
([i, s]) => i + ": " +
|
|
932
|
+
return n.length === 0 ? "{}" : t.length > Mt ? "[" + qn(e) + "]" : "{ " + n.map(
|
|
933
|
+
([i, s]) => i + ": " + Ne(s, t)
|
|
934
934
|
).join(", ") + " }";
|
|
935
935
|
}
|
|
936
|
-
function
|
|
936
|
+
function jn(e, t) {
|
|
937
937
|
if (e.length === 0)
|
|
938
938
|
return "[]";
|
|
939
|
-
if (t.length >
|
|
939
|
+
if (t.length > Mt)
|
|
940
940
|
return "[Array]";
|
|
941
|
-
const n = Math.min(
|
|
941
|
+
const n = Math.min($n, e.length), r = e.length - n, i = [];
|
|
942
942
|
for (let s = 0; s < n; ++s)
|
|
943
|
-
i.push(
|
|
943
|
+
i.push(Ne(e[s], t));
|
|
944
944
|
return r === 1 ? i.push("... 1 more item") : r > 1 && i.push(`... ${r} more items`), "[" + i.join(", ") + "]";
|
|
945
945
|
}
|
|
946
|
-
function
|
|
946
|
+
function qn(e) {
|
|
947
947
|
const t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
|
|
948
948
|
if (t === "Object" && typeof e.constructor == "function") {
|
|
949
949
|
const n = e.constructor.name;
|
|
@@ -952,11 +952,11 @@ function jn(e) {
|
|
|
952
952
|
}
|
|
953
953
|
return t;
|
|
954
954
|
}
|
|
955
|
-
const
|
|
956
|
-
process.env.NODE_ENV === "production",
|
|
955
|
+
const Hn = globalThis.process && // eslint-disable-next-line no-undef
|
|
956
|
+
process.env.NODE_ENV === "production", Gn = (
|
|
957
957
|
/* c8 ignore next 6 */
|
|
958
958
|
// FIXME: https://github.com/graphql/graphql-js/issues/2317
|
|
959
|
-
|
|
959
|
+
Hn ? function(t, n) {
|
|
960
960
|
return t instanceof n;
|
|
961
961
|
} : function(t, n) {
|
|
962
962
|
if (t instanceof n)
|
|
@@ -968,7 +968,7 @@ process.env.NODE_ENV === "production", Hn = (
|
|
|
968
968
|
Symbol.toStringTag in t ? t[Symbol.toStringTag] : (r = t.constructor) === null || r === void 0 ? void 0 : r.name
|
|
969
969
|
);
|
|
970
970
|
if (i === s) {
|
|
971
|
-
const o =
|
|
971
|
+
const o = Ze(t);
|
|
972
972
|
throw new Error(`Cannot use ${i} "${o}" from another module or realm.
|
|
973
973
|
|
|
974
974
|
Ensure that there is only one instance of "graphql" in the node_modules
|
|
@@ -986,15 +986,15 @@ spurious results.`);
|
|
|
986
986
|
return !1;
|
|
987
987
|
}
|
|
988
988
|
);
|
|
989
|
-
class
|
|
989
|
+
class $t {
|
|
990
990
|
constructor(t, n = "GraphQL request", r = {
|
|
991
991
|
line: 1,
|
|
992
992
|
column: 1
|
|
993
993
|
}) {
|
|
994
|
-
typeof t == "string" ||
|
|
994
|
+
typeof t == "string" || ge(!1, `Body must be a string. Received: ${Ze(t)}.`), this.body = t, this.name = n, this.locationOffset = r, this.locationOffset.line > 0 || ge(
|
|
995
995
|
!1,
|
|
996
996
|
"line in locationOffset is 1-indexed and must be positive."
|
|
997
|
-
), this.locationOffset.column > 0 ||
|
|
997
|
+
), this.locationOffset.column > 0 || ge(
|
|
998
998
|
!1,
|
|
999
999
|
"column in locationOffset is 1-indexed and must be positive."
|
|
1000
1000
|
);
|
|
@@ -1003,20 +1003,20 @@ class Mt {
|
|
|
1003
1003
|
return "Source";
|
|
1004
1004
|
}
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1007
|
-
return
|
|
1006
|
+
function Yn(e) {
|
|
1007
|
+
return Gn(e, $t);
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1010
|
-
const n = new
|
|
1009
|
+
function Ut(e, t) {
|
|
1010
|
+
const n = new zn(e, t), r = n.parseDocument();
|
|
1011
1011
|
return Object.defineProperty(r, "tokenCount", {
|
|
1012
1012
|
enumerable: !1,
|
|
1013
1013
|
value: n.tokenCount
|
|
1014
1014
|
}), r;
|
|
1015
1015
|
}
|
|
1016
|
-
class
|
|
1016
|
+
class zn {
|
|
1017
1017
|
constructor(t, n = {}) {
|
|
1018
|
-
const r =
|
|
1019
|
-
this._lexer = new
|
|
1018
|
+
const r = Yn(t) ? t : new $t(t);
|
|
1019
|
+
this._lexer = new xn(r), this._options = n, this._tokenCounter = 0;
|
|
1020
1020
|
}
|
|
1021
1021
|
get tokenCount() {
|
|
1022
1022
|
return this._tokenCounter;
|
|
@@ -1716,7 +1716,7 @@ class Yn {
|
|
|
1716
1716
|
throw D(
|
|
1717
1717
|
this._lexer.source,
|
|
1718
1718
|
this._lexer.token.start,
|
|
1719
|
-
`${
|
|
1719
|
+
`${he(
|
|
1720
1720
|
this._lexer.token
|
|
1721
1721
|
)} is reserved and cannot be used for an enum value.`
|
|
1722
1722
|
);
|
|
@@ -1975,7 +1975,7 @@ class Yn {
|
|
|
1975
1975
|
*/
|
|
1976
1976
|
parseDirectiveLocation() {
|
|
1977
1977
|
const t = this._lexer.token, n = this.parseName();
|
|
1978
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1978
|
+
if (Object.prototype.hasOwnProperty.call(je, n.value))
|
|
1979
1979
|
return n;
|
|
1980
1980
|
throw this.unexpected(t);
|
|
1981
1981
|
}
|
|
@@ -1986,7 +1986,7 @@ class Yn {
|
|
|
1986
1986
|
* given parsed object.
|
|
1987
1987
|
*/
|
|
1988
1988
|
node(t, n) {
|
|
1989
|
-
return this._options.noLocation !== !0 && (n.loc = new
|
|
1989
|
+
return this._options.noLocation !== !0 && (n.loc = new Sn(
|
|
1990
1990
|
t,
|
|
1991
1991
|
this._lexer.lastToken,
|
|
1992
1992
|
this._lexer.source
|
|
@@ -2009,7 +2009,7 @@ class Yn {
|
|
|
2009
2009
|
throw D(
|
|
2010
2010
|
this._lexer.source,
|
|
2011
2011
|
n.start,
|
|
2012
|
-
`Expected ${
|
|
2012
|
+
`Expected ${Bt(t)}, found ${he(n)}.`
|
|
2013
2013
|
);
|
|
2014
2014
|
}
|
|
2015
2015
|
/**
|
|
@@ -2031,7 +2031,7 @@ class Yn {
|
|
|
2031
2031
|
throw D(
|
|
2032
2032
|
this._lexer.source,
|
|
2033
2033
|
n.start,
|
|
2034
|
-
`Expected "${t}", found ${
|
|
2034
|
+
`Expected "${t}", found ${he(n)}.`
|
|
2035
2035
|
);
|
|
2036
2036
|
}
|
|
2037
2037
|
/**
|
|
@@ -2050,7 +2050,7 @@ class Yn {
|
|
|
2050
2050
|
return D(
|
|
2051
2051
|
this._lexer.source,
|
|
2052
2052
|
n.start,
|
|
2053
|
-
`Unexpected ${
|
|
2053
|
+
`Unexpected ${he(n)}.`
|
|
2054
2054
|
);
|
|
2055
2055
|
}
|
|
2056
2056
|
/**
|
|
@@ -2117,21 +2117,21 @@ class Yn {
|
|
|
2117
2117
|
);
|
|
2118
2118
|
}
|
|
2119
2119
|
}
|
|
2120
|
-
function
|
|
2120
|
+
function he(e) {
|
|
2121
2121
|
const t = e.value;
|
|
2122
|
-
return
|
|
2122
|
+
return Bt(e.kind) + (t != null ? ` "${t}"` : "");
|
|
2123
2123
|
}
|
|
2124
|
-
function
|
|
2125
|
-
return
|
|
2124
|
+
function Bt(e) {
|
|
2125
|
+
return Dn(e) ? `"${e}"` : e;
|
|
2126
2126
|
}
|
|
2127
|
-
function
|
|
2128
|
-
return `"${e.replace(
|
|
2127
|
+
function Jn(e) {
|
|
2128
|
+
return `"${e.replace(Xn, Qn)}"`;
|
|
2129
2129
|
}
|
|
2130
|
-
const
|
|
2131
|
-
function
|
|
2132
|
-
return
|
|
2130
|
+
const Xn = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
|
|
2131
|
+
function Qn(e) {
|
|
2132
|
+
return Kn[e.charCodeAt(0)];
|
|
2133
2133
|
}
|
|
2134
|
-
const
|
|
2134
|
+
const Kn = [
|
|
2135
2135
|
"\\u0000",
|
|
2136
2136
|
"\\u0001",
|
|
2137
2137
|
"\\u0002",
|
|
@@ -2297,11 +2297,11 @@ const Qn = [
|
|
|
2297
2297
|
"\\u009D",
|
|
2298
2298
|
"\\u009E",
|
|
2299
2299
|
"\\u009F"
|
|
2300
|
-
],
|
|
2301
|
-
function
|
|
2300
|
+
], Wn = Object.freeze({});
|
|
2301
|
+
function Zn(e, t, n = kt) {
|
|
2302
2302
|
const r = /* @__PURE__ */ new Map();
|
|
2303
2303
|
for (const x of Object.values(g))
|
|
2304
|
-
r.set(x,
|
|
2304
|
+
r.set(x, er(t, x));
|
|
2305
2305
|
let i, s = Array.isArray(e), o = [e], a = -1, c = [], f = e, h, m;
|
|
2306
2306
|
const _ = [], v = [];
|
|
2307
2307
|
do {
|
|
@@ -2312,9 +2312,9 @@ function Wn(e, t, n = Ct) {
|
|
|
2312
2312
|
if (s) {
|
|
2313
2313
|
f = f.slice();
|
|
2314
2314
|
let P = 0;
|
|
2315
|
-
for (const [H,
|
|
2316
|
-
const
|
|
2317
|
-
|
|
2315
|
+
for (const [H, ce] of c) {
|
|
2316
|
+
const ue = H - P;
|
|
2317
|
+
ce === null ? (f.splice(ue, 1), P++) : f[ue] = ce;
|
|
2318
2318
|
}
|
|
2319
2319
|
} else {
|
|
2320
2320
|
f = E({}, f);
|
|
@@ -2329,10 +2329,10 @@ function Wn(e, t, n = Ct) {
|
|
|
2329
2329
|
}
|
|
2330
2330
|
let R;
|
|
2331
2331
|
if (!Array.isArray(f)) {
|
|
2332
|
-
var y,
|
|
2333
|
-
|
|
2334
|
-
const P = x ? (y = r.get(f.kind)) === null || y === void 0 ? void 0 : y.leave : (
|
|
2335
|
-
if (R = P == null ? void 0 : P.call(t, f, h, m, _, v), R ===
|
|
2332
|
+
var y, A;
|
|
2333
|
+
pt(f) || ge(!1, `Invalid AST Node: ${Ze(f)}.`);
|
|
2334
|
+
const P = x ? (y = r.get(f.kind)) === null || y === void 0 ? void 0 : y.leave : (A = r.get(f.kind)) === null || A === void 0 ? void 0 : A.enter;
|
|
2335
|
+
if (R = P == null ? void 0 : P.call(t, f, h, m, _, v), R === Wn)
|
|
2336
2336
|
break;
|
|
2337
2337
|
if (R === !1) {
|
|
2338
2338
|
if (!x) {
|
|
@@ -2340,7 +2340,7 @@ function Wn(e, t, n = Ct) {
|
|
|
2340
2340
|
continue;
|
|
2341
2341
|
}
|
|
2342
2342
|
} else if (R !== void 0 && (c.push([h, R]), !x))
|
|
2343
|
-
if (
|
|
2343
|
+
if (pt(R))
|
|
2344
2344
|
f = R;
|
|
2345
2345
|
else {
|
|
2346
2346
|
_.pop();
|
|
@@ -2362,7 +2362,7 @@ function Wn(e, t, n = Ct) {
|
|
|
2362
2362
|
} while (i !== void 0);
|
|
2363
2363
|
return c.length !== 0 ? c[c.length - 1][1] : e;
|
|
2364
2364
|
}
|
|
2365
|
-
function
|
|
2365
|
+
function er(e, t) {
|
|
2366
2366
|
const n = e[t];
|
|
2367
2367
|
return typeof n == "object" ? n : typeof n == "function" ? {
|
|
2368
2368
|
enter: n,
|
|
@@ -2372,10 +2372,10 @@ function Zn(e, t) {
|
|
|
2372
2372
|
leave: e.leave
|
|
2373
2373
|
};
|
|
2374
2374
|
}
|
|
2375
|
-
function
|
|
2376
|
-
return
|
|
2375
|
+
function tr(e) {
|
|
2376
|
+
return Zn(e, rr);
|
|
2377
2377
|
}
|
|
2378
|
-
const
|
|
2378
|
+
const nr = 80, rr = {
|
|
2379
2379
|
Name: {
|
|
2380
2380
|
leave: (e) => e.value
|
|
2381
2381
|
},
|
|
@@ -2411,8 +2411,8 @@ const tr = 80, nr = {
|
|
|
2411
2411
|
leave({ alias: e, name: t, arguments: n, directives: r, selectionSet: i }) {
|
|
2412
2412
|
const s = S("", e, ": ") + t;
|
|
2413
2413
|
let o = s + S("(", p(n, ", "), ")");
|
|
2414
|
-
return o.length >
|
|
2415
|
-
`,
|
|
2414
|
+
return o.length > nr && (o = s + S(`(
|
|
2415
|
+
`, ye(p(n, `
|
|
2416
2416
|
`)), `
|
|
2417
2417
|
)`)), p([o, p(r, " "), i], " ");
|
|
2418
2418
|
}
|
|
@@ -2449,7 +2449,7 @@ const tr = 80, nr = {
|
|
|
2449
2449
|
leave: ({ value: e }) => e
|
|
2450
2450
|
},
|
|
2451
2451
|
StringValue: {
|
|
2452
|
-
leave: ({ value: e, block: t }) => t ?
|
|
2452
|
+
leave: ({ value: e, block: t }) => t ? bn(e) : Jn(e)
|
|
2453
2453
|
},
|
|
2454
2454
|
BooleanValue: {
|
|
2455
2455
|
leave: ({ value: e }) => e ? "true" : "false"
|
|
@@ -2510,8 +2510,8 @@ const tr = 80, nr = {
|
|
|
2510
2510
|
},
|
|
2511
2511
|
FieldDefinition: {
|
|
2512
2512
|
leave: ({ description: e, name: t, arguments: n, type: r, directives: i }) => S("", e, `
|
|
2513
|
-
`) + t + (
|
|
2514
|
-
`,
|
|
2513
|
+
`) + t + (gt(n) ? S(`(
|
|
2514
|
+
`, ye(p(n, `
|
|
2515
2515
|
`)), `
|
|
2516
2516
|
)`) : S("(", p(n, ", "), ")")) + ": " + r + S(" ", p(i, " "))
|
|
2517
2517
|
},
|
|
@@ -2556,8 +2556,8 @@ const tr = 80, nr = {
|
|
|
2556
2556
|
},
|
|
2557
2557
|
DirectiveDefinition: {
|
|
2558
2558
|
leave: ({ description: e, name: t, arguments: n, repeatable: r, locations: i }) => S("", e, `
|
|
2559
|
-
`) + "directive @" + t + (
|
|
2560
|
-
`,
|
|
2559
|
+
`) + "directive @" + t + (gt(n) ? S(`(
|
|
2560
|
+
`, ye(p(n, `
|
|
2561
2561
|
`)), `
|
|
2562
2562
|
)`) : S("(", p(n, ", "), ")")) + (r ? " repeatable" : "") + " on " + p(i, " | ")
|
|
2563
2563
|
},
|
|
@@ -2618,58 +2618,58 @@ function p(e, t = "") {
|
|
|
2618
2618
|
}
|
|
2619
2619
|
function F(e) {
|
|
2620
2620
|
return S(`{
|
|
2621
|
-
`,
|
|
2621
|
+
`, ye(p(e, `
|
|
2622
2622
|
`)), `
|
|
2623
2623
|
}`);
|
|
2624
2624
|
}
|
|
2625
2625
|
function S(e, t, n = "") {
|
|
2626
2626
|
return t != null && t !== "" ? e + t + n : "";
|
|
2627
2627
|
}
|
|
2628
|
-
function
|
|
2628
|
+
function ye(e) {
|
|
2629
2629
|
return S(" ", e.replace(/\n/g, `
|
|
2630
2630
|
`));
|
|
2631
2631
|
}
|
|
2632
|
-
function
|
|
2632
|
+
function gt(e) {
|
|
2633
2633
|
var t;
|
|
2634
2634
|
return (t = e == null ? void 0 : e.some((n) => n.includes(`
|
|
2635
2635
|
`))) !== null && t !== void 0 ? t : !1;
|
|
2636
2636
|
}
|
|
2637
|
-
const
|
|
2637
|
+
const et = JSON, ir = (e) => e.toUpperCase(), sr = (e) => {
|
|
2638
2638
|
const t = {};
|
|
2639
2639
|
return e.forEach((n, r) => {
|
|
2640
2640
|
t[r] = n;
|
|
2641
2641
|
}), t;
|
|
2642
|
-
},
|
|
2642
|
+
}, or = (e, t, n) => e.document ? e : {
|
|
2643
2643
|
document: e,
|
|
2644
2644
|
variables: t,
|
|
2645
2645
|
requestHeaders: n,
|
|
2646
2646
|
signal: void 0
|
|
2647
|
-
},
|
|
2647
|
+
}, ar = (e, t, n) => e.query ? e : {
|
|
2648
2648
|
query: e,
|
|
2649
2649
|
variables: t,
|
|
2650
2650
|
requestHeaders: n,
|
|
2651
2651
|
signal: void 0
|
|
2652
|
-
},
|
|
2652
|
+
}, cr = (e, t) => e.documents ? e : {
|
|
2653
2653
|
documents: e,
|
|
2654
2654
|
requestHeaders: t,
|
|
2655
2655
|
signal: void 0
|
|
2656
|
-
},
|
|
2656
|
+
}, yt = (e) => {
|
|
2657
2657
|
var r, i;
|
|
2658
2658
|
let t;
|
|
2659
2659
|
const n = e.definitions.filter((s) => s.kind === "OperationDefinition");
|
|
2660
2660
|
return n.length === 1 && (t = (i = (r = n[0]) == null ? void 0 : r.name) == null ? void 0 : i.value), t;
|
|
2661
|
-
},
|
|
2661
|
+
}, Le = (e) => {
|
|
2662
2662
|
if (typeof e == "string") {
|
|
2663
2663
|
let n;
|
|
2664
2664
|
try {
|
|
2665
|
-
const r =
|
|
2666
|
-
n =
|
|
2665
|
+
const r = Ut(e);
|
|
2666
|
+
n = yt(r);
|
|
2667
2667
|
} catch (r) {
|
|
2668
2668
|
}
|
|
2669
2669
|
return { query: e, operationName: n };
|
|
2670
2670
|
}
|
|
2671
|
-
const t =
|
|
2672
|
-
return { query:
|
|
2671
|
+
const t = yt(e);
|
|
2672
|
+
return { query: tr(e), operationName: t };
|
|
2673
2673
|
};
|
|
2674
2674
|
class Q extends Error {
|
|
2675
2675
|
constructor(t, n) {
|
|
@@ -2684,13 +2684,13 @@ class Q extends Error {
|
|
|
2684
2684
|
return (i = (r = (n = t.errors) == null ? void 0 : n[0]) == null ? void 0 : r.message) != null ? i : `GraphQL Error (Code: ${t.status})`;
|
|
2685
2685
|
}
|
|
2686
2686
|
}
|
|
2687
|
-
var
|
|
2688
|
-
function
|
|
2687
|
+
var ur = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
2688
|
+
function tt(e) {
|
|
2689
2689
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2690
2690
|
}
|
|
2691
|
-
var
|
|
2691
|
+
var He = { exports: {} };
|
|
2692
2692
|
(function(e, t) {
|
|
2693
|
-
var n = typeof self != "undefined" ? self :
|
|
2693
|
+
var n = typeof self != "undefined" ? self : ur, r = function() {
|
|
2694
2694
|
function s() {
|
|
2695
2695
|
this.fetch = !1, this.DOMException = n.DOMException;
|
|
2696
2696
|
}
|
|
@@ -2787,7 +2787,7 @@ var qe = { exports: {} };
|
|
|
2787
2787
|
u.push([T, d]);
|
|
2788
2788
|
}), v(u);
|
|
2789
2789
|
}, a.iterable && (y.prototype[Symbol.iterator] = y.prototype.entries);
|
|
2790
|
-
function
|
|
2790
|
+
function A(u) {
|
|
2791
2791
|
if (u.bodyUsed)
|
|
2792
2792
|
return Promise.reject(new TypeError("Already read"));
|
|
2793
2793
|
u.bodyUsed = !0;
|
|
@@ -2824,7 +2824,7 @@ var qe = { exports: {} };
|
|
|
2824
2824
|
return this.bodyUsed = !1, this._initBody = function(u) {
|
|
2825
2825
|
this._bodyInit = u, u ? typeof u == "string" ? this._bodyText = u : a.blob && Blob.prototype.isPrototypeOf(u) ? this._bodyBlob = u : a.formData && FormData.prototype.isPrototypeOf(u) ? this._bodyFormData = u : a.searchParams && URLSearchParams.prototype.isPrototypeOf(u) ? this._bodyText = u.toString() : a.arrayBuffer && a.blob && c(u) ? (this._bodyArrayBuffer = P(u.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : a.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(u) || h(u)) ? this._bodyArrayBuffer = P(u) : this._bodyText = u = Object.prototype.toString.call(u) : this._bodyText = "", this.headers.get("content-type") || (typeof u == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : a.searchParams && URLSearchParams.prototype.isPrototypeOf(u) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
2826
2826
|
}, a.blob && (this.blob = function() {
|
|
2827
|
-
var u =
|
|
2827
|
+
var u = A(this);
|
|
2828
2828
|
if (u)
|
|
2829
2829
|
return u;
|
|
2830
2830
|
if (this._bodyBlob)
|
|
@@ -2835,9 +2835,9 @@ var qe = { exports: {} };
|
|
|
2835
2835
|
throw new Error("could not read FormData body as blob");
|
|
2836
2836
|
return Promise.resolve(new Blob([this._bodyText]));
|
|
2837
2837
|
}, this.arrayBuffer = function() {
|
|
2838
|
-
return this._bodyArrayBuffer ?
|
|
2838
|
+
return this._bodyArrayBuffer ? A(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(x);
|
|
2839
2839
|
}), this.text = function() {
|
|
2840
|
-
var u =
|
|
2840
|
+
var u = A(this);
|
|
2841
2841
|
if (u)
|
|
2842
2842
|
return u;
|
|
2843
2843
|
if (this._bodyBlob)
|
|
@@ -2848,15 +2848,15 @@ var qe = { exports: {} };
|
|
|
2848
2848
|
throw new Error("could not read FormData body as text");
|
|
2849
2849
|
return Promise.resolve(this._bodyText);
|
|
2850
2850
|
}, a.formData && (this.formData = function() {
|
|
2851
|
-
return this.text().then(
|
|
2851
|
+
return this.text().then(on);
|
|
2852
2852
|
}), this.json = function() {
|
|
2853
2853
|
return this.text().then(JSON.parse);
|
|
2854
2854
|
}, this;
|
|
2855
2855
|
}
|
|
2856
|
-
var
|
|
2857
|
-
function
|
|
2856
|
+
var ce = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
|
|
2857
|
+
function ue(u) {
|
|
2858
2858
|
var d = u.toUpperCase();
|
|
2859
|
-
return
|
|
2859
|
+
return ce.indexOf(d) > -1 ? d : u;
|
|
2860
2860
|
}
|
|
2861
2861
|
function U(u, d) {
|
|
2862
2862
|
d = d || {};
|
|
@@ -2867,29 +2867,29 @@ var qe = { exports: {} };
|
|
|
2867
2867
|
this.url = u.url, this.credentials = u.credentials, d.headers || (this.headers = new y(u.headers)), this.method = u.method, this.mode = u.mode, this.signal = u.signal, !T && u._bodyInit != null && (T = u._bodyInit, u.bodyUsed = !0);
|
|
2868
2868
|
} else
|
|
2869
2869
|
this.url = String(u);
|
|
2870
|
-
if (this.credentials = d.credentials || this.credentials || "same-origin", (d.headers || !this.headers) && (this.headers = new y(d.headers)), this.method =
|
|
2870
|
+
if (this.credentials = d.credentials || this.credentials || "same-origin", (d.headers || !this.headers) && (this.headers = new y(d.headers)), this.method = ue(d.method || this.method || "GET"), this.mode = d.mode || this.mode || null, this.signal = d.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && T)
|
|
2871
2871
|
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
2872
2872
|
this._initBody(T);
|
|
2873
2873
|
}
|
|
2874
2874
|
U.prototype.clone = function() {
|
|
2875
2875
|
return new U(this, { body: this._bodyInit });
|
|
2876
2876
|
};
|
|
2877
|
-
function
|
|
2877
|
+
function on(u) {
|
|
2878
2878
|
var d = new FormData();
|
|
2879
2879
|
return u.trim().split("&").forEach(function(T) {
|
|
2880
2880
|
if (T) {
|
|
2881
|
-
var w = T.split("="), O = w.shift().replace(/\+/g, " "),
|
|
2882
|
-
d.append(decodeURIComponent(O), decodeURIComponent(
|
|
2881
|
+
var w = T.split("="), O = w.shift().replace(/\+/g, " "), I = w.join("=").replace(/\+/g, " ");
|
|
2882
|
+
d.append(decodeURIComponent(O), decodeURIComponent(I));
|
|
2883
2883
|
}
|
|
2884
2884
|
}), d;
|
|
2885
2885
|
}
|
|
2886
|
-
function
|
|
2886
|
+
function an(u) {
|
|
2887
2887
|
var d = new y(), T = u.replace(/\r?\n[\t ]+/g, " ");
|
|
2888
2888
|
return T.split(/\r?\n/).forEach(function(w) {
|
|
2889
|
-
var O = w.split(":"),
|
|
2890
|
-
if (
|
|
2891
|
-
var
|
|
2892
|
-
d.append(
|
|
2889
|
+
var O = w.split(":"), I = O.shift().trim();
|
|
2890
|
+
if (I) {
|
|
2891
|
+
var le = O.join(":").trim();
|
|
2892
|
+
d.append(I, le);
|
|
2893
2893
|
}
|
|
2894
2894
|
}), d;
|
|
2895
2895
|
}
|
|
@@ -2908,9 +2908,9 @@ var qe = { exports: {} };
|
|
|
2908
2908
|
var u = new M(null, { status: 0, statusText: "" });
|
|
2909
2909
|
return u.type = "error", u;
|
|
2910
2910
|
};
|
|
2911
|
-
var
|
|
2911
|
+
var cn = [301, 302, 303, 307, 308];
|
|
2912
2912
|
M.redirect = function(u, d) {
|
|
2913
|
-
if (
|
|
2913
|
+
if (cn.indexOf(d) === -1)
|
|
2914
2914
|
throw new RangeError("Invalid status code");
|
|
2915
2915
|
return new M(null, { status: d, headers: { location: u } });
|
|
2916
2916
|
}, o.DOMException = s.DOMException;
|
|
@@ -2923,73 +2923,73 @@ var qe = { exports: {} };
|
|
|
2923
2923
|
this.stack = w.stack;
|
|
2924
2924
|
}, o.DOMException.prototype = Object.create(Error.prototype), o.DOMException.prototype.constructor = o.DOMException;
|
|
2925
2925
|
}
|
|
2926
|
-
function
|
|
2926
|
+
function De(u, d) {
|
|
2927
2927
|
return new Promise(function(T, w) {
|
|
2928
2928
|
var O = new U(u, d);
|
|
2929
2929
|
if (O.signal && O.signal.aborted)
|
|
2930
2930
|
return w(new o.DOMException("Aborted", "AbortError"));
|
|
2931
|
-
var
|
|
2932
|
-
function
|
|
2933
|
-
|
|
2931
|
+
var I = new XMLHttpRequest();
|
|
2932
|
+
function le() {
|
|
2933
|
+
I.abort();
|
|
2934
2934
|
}
|
|
2935
|
-
|
|
2935
|
+
I.onload = function() {
|
|
2936
2936
|
var te = {
|
|
2937
|
-
status:
|
|
2938
|
-
statusText:
|
|
2939
|
-
headers:
|
|
2937
|
+
status: I.status,
|
|
2938
|
+
statusText: I.statusText,
|
|
2939
|
+
headers: an(I.getAllResponseHeaders() || "")
|
|
2940
2940
|
};
|
|
2941
|
-
te.url = "responseURL" in
|
|
2942
|
-
var
|
|
2943
|
-
T(new M(
|
|
2944
|
-
},
|
|
2941
|
+
te.url = "responseURL" in I ? I.responseURL : te.headers.get("X-Request-URL");
|
|
2942
|
+
var Oe = "response" in I ? I.response : I.responseText;
|
|
2943
|
+
T(new M(Oe, te));
|
|
2944
|
+
}, I.onerror = function() {
|
|
2945
2945
|
w(new TypeError("Network request failed"));
|
|
2946
|
-
},
|
|
2946
|
+
}, I.ontimeout = function() {
|
|
2947
2947
|
w(new TypeError("Network request failed"));
|
|
2948
|
-
},
|
|
2948
|
+
}, I.onabort = function() {
|
|
2949
2949
|
w(new o.DOMException("Aborted", "AbortError"));
|
|
2950
|
-
},
|
|
2951
|
-
|
|
2952
|
-
}), O.signal && (O.signal.addEventListener("abort",
|
|
2953
|
-
|
|
2954
|
-
}),
|
|
2950
|
+
}, I.open(O.method, O.url, !0), O.credentials === "include" ? I.withCredentials = !0 : O.credentials === "omit" && (I.withCredentials = !1), "responseType" in I && a.blob && (I.responseType = "blob"), O.headers.forEach(function(te, Oe) {
|
|
2951
|
+
I.setRequestHeader(Oe, te);
|
|
2952
|
+
}), O.signal && (O.signal.addEventListener("abort", le), I.onreadystatechange = function() {
|
|
2953
|
+
I.readyState === 4 && O.signal.removeEventListener("abort", le);
|
|
2954
|
+
}), I.send(typeof O._bodyInit == "undefined" ? null : O._bodyInit);
|
|
2955
2955
|
});
|
|
2956
2956
|
}
|
|
2957
|
-
return
|
|
2957
|
+
return De.polyfill = !0, s.fetch || (s.fetch = De, s.Headers = y, s.Request = U, s.Response = M), o.Headers = y, o.Request = U, o.Response = M, o.fetch = De, Object.defineProperty(o, "__esModule", { value: !0 }), o;
|
|
2958
2958
|
})({});
|
|
2959
2959
|
})(r), r.fetch.ponyfill = !0, delete r.fetch.polyfill;
|
|
2960
2960
|
var i = r;
|
|
2961
2961
|
t = i.fetch, t.default = i.fetch, t.fetch = i.fetch, t.Headers = i.Headers, t.Request = i.Request, t.Response = i.Response, e.exports = t;
|
|
2962
|
-
})(
|
|
2963
|
-
var
|
|
2964
|
-
const
|
|
2962
|
+
})(He, He.exports);
|
|
2963
|
+
var Ge = He.exports;
|
|
2964
|
+
const Ee = /* @__PURE__ */ tt(Ge), lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2965
2965
|
__proto__: null,
|
|
2966
|
-
default:
|
|
2966
|
+
default: Ee
|
|
2967
2967
|
}, Symbol.toStringTag, { value: "Module" })), z = (e) => {
|
|
2968
2968
|
let t = {};
|
|
2969
|
-
return e && (typeof Headers != "undefined" && e instanceof Headers ||
|
|
2969
|
+
return e && (typeof Headers != "undefined" && e instanceof Headers || lr && Ge.Headers && e instanceof Ge.Headers ? t = sr(e) : Array.isArray(e) ? e.forEach(([n, r]) => {
|
|
2970
2970
|
n && r !== void 0 && (t[n] = r);
|
|
2971
2971
|
}) : t = e), t;
|
|
2972
|
-
},
|
|
2972
|
+
}, Et = (e) => e.replace(/([\s,]|#[^\n\r]+)+/g, " ").trim(), fr = (e) => {
|
|
2973
2973
|
if (!Array.isArray(e.query)) {
|
|
2974
|
-
const r = e, i = [`query=${encodeURIComponent(
|
|
2974
|
+
const r = e, i = [`query=${encodeURIComponent(Et(r.query))}`];
|
|
2975
2975
|
return e.variables && i.push(`variables=${encodeURIComponent(r.jsonSerializer.stringify(r.variables))}`), r.operationName && i.push(`operationName=${encodeURIComponent(r.operationName)}`), i.join("&");
|
|
2976
2976
|
}
|
|
2977
2977
|
if (typeof e.variables != "undefined" && !Array.isArray(e.variables))
|
|
2978
2978
|
throw new Error("Cannot create query with given variable type, array expected");
|
|
2979
2979
|
const t = e, n = e.query.reduce((r, i, s) => (r.push({
|
|
2980
|
-
query:
|
|
2980
|
+
query: Et(i),
|
|
2981
2981
|
variables: t.variables ? t.jsonSerializer.stringify(t.variables[s]) : void 0
|
|
2982
2982
|
}), r), []);
|
|
2983
2983
|
return `query=${encodeURIComponent(t.jsonSerializer.stringify(n))}`;
|
|
2984
|
-
},
|
|
2985
|
-
var
|
|
2984
|
+
}, hr = (e) => (t) => V(void 0, null, function* () {
|
|
2985
|
+
var A;
|
|
2986
2986
|
const { url: n, query: r, variables: i, operationName: s, fetch: o, fetchOptions: a, middleware: c } = t, f = E({}, t.headers);
|
|
2987
2987
|
let h = "", m;
|
|
2988
|
-
e === "POST" ? (m =
|
|
2988
|
+
e === "POST" ? (m = dr(r, i, s, a.jsonSerializer), typeof m == "string" && (f["Content-Type"] = "application/json")) : h = fr({
|
|
2989
2989
|
query: r,
|
|
2990
2990
|
variables: i,
|
|
2991
2991
|
operationName: s,
|
|
2992
|
-
jsonSerializer: (
|
|
2992
|
+
jsonSerializer: (A = a.jsonSerializer) != null ? A : et
|
|
2993
2993
|
});
|
|
2994
2994
|
const _ = E({
|
|
2995
2995
|
method: e,
|
|
@@ -3003,18 +3003,18 @@ const ye = /* @__PURE__ */ et(He), ur = /* @__PURE__ */ Object.freeze(/* @__PURE
|
|
|
3003
3003
|
}
|
|
3004
3004
|
return h && (v = `${v}?${h}`), yield o(v, y);
|
|
3005
3005
|
});
|
|
3006
|
-
class
|
|
3006
|
+
class Ri {
|
|
3007
3007
|
constructor(t, n = {}) {
|
|
3008
3008
|
this.url = t, this.requestConfig = n, this.rawRequest = (...r) => V(this, null, function* () {
|
|
3009
|
-
const [i, s, o] = r, a =
|
|
3009
|
+
const [i, s, o] = r, a = ar(i, s, o), b = this.requestConfig, { headers: c, fetch: f = Ee, method: h = "POST", requestMiddleware: m, responseMiddleware: _ } = b, v = G(b, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: y } = this;
|
|
3010
3010
|
a.signal !== void 0 && (v.signal = a.signal);
|
|
3011
|
-
const { operationName:
|
|
3012
|
-
return
|
|
3011
|
+
const { operationName: A } = Le(a.query);
|
|
3012
|
+
return Pe({
|
|
3013
3013
|
url: y,
|
|
3014
3014
|
query: a.query,
|
|
3015
3015
|
variables: a.variables,
|
|
3016
|
-
headers: E(E({}, z(
|
|
3017
|
-
operationName:
|
|
3016
|
+
headers: E(E({}, z(Fe(c))), z(a.requestHeaders)),
|
|
3017
|
+
operationName: A,
|
|
3018
3018
|
fetch: f,
|
|
3019
3019
|
method: h,
|
|
3020
3020
|
fetchOptions: v,
|
|
@@ -3026,14 +3026,14 @@ class Ci {
|
|
|
3026
3026
|
}
|
|
3027
3027
|
request(t, ...n) {
|
|
3028
3028
|
return V(this, null, function* () {
|
|
3029
|
-
const [r, i] = n, s =
|
|
3029
|
+
const [r, i] = n, s = or(t, r, i), A = this.requestConfig, { headers: o, fetch: a = Ee, method: c = "POST", requestMiddleware: f, responseMiddleware: h } = A, m = G(A, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: _ } = this;
|
|
3030
3030
|
s.signal !== void 0 && (m.signal = s.signal);
|
|
3031
|
-
const { query: v, operationName: y } =
|
|
3032
|
-
return
|
|
3031
|
+
const { query: v, operationName: y } = Le(s.document);
|
|
3032
|
+
return Pe({
|
|
3033
3033
|
url: _,
|
|
3034
3034
|
query: v,
|
|
3035
3035
|
variables: s.variables,
|
|
3036
|
-
headers: E(E({}, z(
|
|
3036
|
+
headers: E(E({}, z(Fe(o))), z(s.requestHeaders)),
|
|
3037
3037
|
operationName: y,
|
|
3038
3038
|
fetch: a,
|
|
3039
3039
|
method: c,
|
|
@@ -3047,17 +3047,17 @@ class Ci {
|
|
|
3047
3047
|
// prettier-ignore
|
|
3048
3048
|
batchRequests(t, n) {
|
|
3049
3049
|
var f;
|
|
3050
|
-
const r =
|
|
3050
|
+
const r = cr(t, n), c = this.requestConfig, { headers: i } = c, s = G(c, ["headers"]);
|
|
3051
3051
|
r.signal !== void 0 && (s.signal = r.signal);
|
|
3052
|
-
const o = r.documents.map(({ document: h }) =>
|
|
3053
|
-
return
|
|
3052
|
+
const o = r.documents.map(({ document: h }) => Le(h).query), a = r.documents.map(({ variables: h }) => h);
|
|
3053
|
+
return Pe({
|
|
3054
3054
|
url: this.url,
|
|
3055
3055
|
query: o,
|
|
3056
3056
|
// @ts-expect-error TODO reconcile batch variables into system.
|
|
3057
3057
|
variables: a,
|
|
3058
|
-
headers: E(E({}, z(
|
|
3058
|
+
headers: E(E({}, z(Fe(i))), z(r.requestHeaders)),
|
|
3059
3059
|
operationName: void 0,
|
|
3060
|
-
fetch: (f = this.requestConfig.fetch) != null ? f :
|
|
3060
|
+
fetch: (f = this.requestConfig.fetch) != null ? f : Ee,
|
|
3061
3061
|
method: this.requestConfig.method || "POST",
|
|
3062
3062
|
fetchOptions: s,
|
|
3063
3063
|
middleware: this.requestConfig.requestMiddleware
|
|
@@ -3082,12 +3082,12 @@ class Ci {
|
|
|
3082
3082
|
return this.url = t, this;
|
|
3083
3083
|
}
|
|
3084
3084
|
}
|
|
3085
|
-
const
|
|
3085
|
+
const Pe = (e) => V(void 0, null, function* () {
|
|
3086
3086
|
var h, m;
|
|
3087
|
-
const { query: t, variables: n, fetchOptions: r } = e, i =
|
|
3087
|
+
const { query: t, variables: n, fetchOptions: r } = e, i = hr(ir((h = e.method) != null ? h : "post")), s = Array.isArray(e.query), o = yield i(e), a = yield pr(o, (m = r.jsonSerializer) != null ? m : et), c = Array.isArray(a) ? !a.some(({ data: v }) => !v) : !!a.data, f = Array.isArray(a) || !a.errors || Array.isArray(a.errors) && !a.errors.length || r.errorPolicy === "all" || r.errorPolicy === "ignore";
|
|
3088
3088
|
if (o.ok && f && c) {
|
|
3089
|
-
const _ = (Array.isArray(a), a), { errors: v } = _, y = G(_, ["errors"]),
|
|
3090
|
-
return B(E({}, s ? { data:
|
|
3089
|
+
const _ = (Array.isArray(a), a), { errors: v } = _, y = G(_, ["errors"]), A = r.errorPolicy === "ignore" ? y : a;
|
|
3090
|
+
return B(E({}, s ? { data: A } : A), {
|
|
3091
3091
|
headers: o.headers,
|
|
3092
3092
|
status: o.status
|
|
3093
3093
|
});
|
|
@@ -3101,21 +3101,21 @@ const Le = (e) => V(void 0, null, function* () {
|
|
|
3101
3101
|
{ query: t, variables: n }
|
|
3102
3102
|
);
|
|
3103
3103
|
}
|
|
3104
|
-
}),
|
|
3105
|
-
const i = r != null ? r :
|
|
3104
|
+
}), dr = (e, t, n, r) => {
|
|
3105
|
+
const i = r != null ? r : et;
|
|
3106
3106
|
if (!Array.isArray(e))
|
|
3107
3107
|
return i.stringify({ query: e, variables: t, operationName: n });
|
|
3108
3108
|
if (typeof t != "undefined" && !Array.isArray(t))
|
|
3109
3109
|
throw new Error("Cannot create request body with given variable type, array expected");
|
|
3110
3110
|
const s = e.reduce((o, a, c) => (o.push({ query: a, variables: t ? t[c] : void 0 }), o), []);
|
|
3111
3111
|
return i.stringify(s);
|
|
3112
|
-
},
|
|
3112
|
+
}, pr = (e, t) => V(void 0, null, function* () {
|
|
3113
3113
|
let n;
|
|
3114
3114
|
return e.headers.forEach((r, i) => {
|
|
3115
3115
|
i.toLowerCase() === "content-type" && (n = r);
|
|
3116
3116
|
}), n && (n.toLowerCase().startsWith("application/json") || n.toLowerCase().startsWith("application/graphql+json") || n.toLowerCase().startsWith("application/graphql-response+json")) ? t.parse(yield e.text()) : e.text();
|
|
3117
|
-
}),
|
|
3118
|
-
var
|
|
3117
|
+
}), Fe = (e) => typeof e == "function" ? e() : e;
|
|
3118
|
+
var Ye = { exports: {} };
|
|
3119
3119
|
(function(e, t) {
|
|
3120
3120
|
t = e.exports = n, t.getSerialize = r;
|
|
3121
3121
|
function n(i, s, o, a) {
|
|
@@ -3133,37 +3133,37 @@ var Ge = { exports: {} };
|
|
|
3133
3133
|
return i == null ? f : i.call(this, c, f);
|
|
3134
3134
|
};
|
|
3135
3135
|
}
|
|
3136
|
-
})(
|
|
3137
|
-
var
|
|
3138
|
-
const
|
|
3139
|
-
var
|
|
3140
|
-
return
|
|
3136
|
+
})(Ye, Ye.exports);
|
|
3137
|
+
var mr = Ye.exports;
|
|
3138
|
+
const Li = /* @__PURE__ */ tt(mr);
|
|
3139
|
+
var Te = function() {
|
|
3140
|
+
return Te = Object.assign || function(t) {
|
|
3141
3141
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
3142
3142
|
n = arguments[r];
|
|
3143
3143
|
for (var s in n) Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
|
|
3144
3144
|
}
|
|
3145
3145
|
return t;
|
|
3146
|
-
},
|
|
3147
|
-
},
|
|
3148
|
-
function
|
|
3146
|
+
}, Te.apply(this, arguments);
|
|
3147
|
+
}, _e = /* @__PURE__ */ new Map(), ze = /* @__PURE__ */ new Map(), Vt = !0, Se = !1;
|
|
3148
|
+
function jt(e) {
|
|
3149
3149
|
return e.replace(/[\s,]+/g, " ").trim();
|
|
3150
3150
|
}
|
|
3151
|
-
function mr(e) {
|
|
3152
|
-
return Vt(e.source.body.substring(e.start, e.end));
|
|
3153
|
-
}
|
|
3154
3151
|
function gr(e) {
|
|
3152
|
+
return jt(e.source.body.substring(e.start, e.end));
|
|
3153
|
+
}
|
|
3154
|
+
function yr(e) {
|
|
3155
3155
|
var t = /* @__PURE__ */ new Set(), n = [];
|
|
3156
3156
|
return e.definitions.forEach(function(r) {
|
|
3157
3157
|
if (r.kind === "FragmentDefinition") {
|
|
3158
|
-
var i = r.name.value, s =
|
|
3159
|
-
o && !o.has(s) ?
|
|
3158
|
+
var i = r.name.value, s = gr(r.loc), o = ze.get(i);
|
|
3159
|
+
o && !o.has(s) ? Vt && console.warn("Warning: fragment with name " + i + ` already exists.
|
|
3160
3160
|
graphql-tag enforces all fragment names across your application to be unique; read more about
|
|
3161
|
-
this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`) : o ||
|
|
3161
|
+
this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`) : o || ze.set(i, o = /* @__PURE__ */ new Set()), o.add(s), t.has(s) || (t.add(s), n.push(r));
|
|
3162
3162
|
} else
|
|
3163
3163
|
n.push(r);
|
|
3164
|
-
}),
|
|
3164
|
+
}), Te(Te({}, e), { definitions: n });
|
|
3165
3165
|
}
|
|
3166
|
-
function
|
|
3166
|
+
function Er(e) {
|
|
3167
3167
|
var t = new Set(e.definitions);
|
|
3168
3168
|
t.forEach(function(r) {
|
|
3169
3169
|
r.loc && delete r.loc, Object.keys(r).forEach(function(i) {
|
|
@@ -3174,18 +3174,18 @@ function yr(e) {
|
|
|
3174
3174
|
var n = e.loc;
|
|
3175
3175
|
return n && (delete n.startToken, delete n.endToken), e;
|
|
3176
3176
|
}
|
|
3177
|
-
function
|
|
3178
|
-
var t =
|
|
3179
|
-
if (!
|
|
3180
|
-
var n =
|
|
3181
|
-
experimentalFragmentVariables:
|
|
3182
|
-
allowLegacyFragmentVariables:
|
|
3177
|
+
function _r(e) {
|
|
3178
|
+
var t = jt(e);
|
|
3179
|
+
if (!_e.has(t)) {
|
|
3180
|
+
var n = Ut(e, {
|
|
3181
|
+
experimentalFragmentVariables: Se,
|
|
3182
|
+
allowLegacyFragmentVariables: Se
|
|
3183
3183
|
});
|
|
3184
3184
|
if (!n || n.kind !== "Document")
|
|
3185
3185
|
throw new Error("Not a valid GraphQL document.");
|
|
3186
|
-
|
|
3186
|
+
_e.set(t, Er(yr(n)));
|
|
3187
3187
|
}
|
|
3188
|
-
return
|
|
3188
|
+
return _e.get(t);
|
|
3189
3189
|
}
|
|
3190
3190
|
function k(e) {
|
|
3191
3191
|
for (var t = [], n = 1; n < arguments.length; n++)
|
|
@@ -3194,32 +3194,32 @@ function k(e) {
|
|
|
3194
3194
|
var r = e[0];
|
|
3195
3195
|
return t.forEach(function(i, s) {
|
|
3196
3196
|
i && i.kind === "Document" ? r += i.loc.source.body : r += i, r += e[s + 1];
|
|
3197
|
-
}),
|
|
3198
|
-
}
|
|
3199
|
-
function _r() {
|
|
3200
|
-
Ee.clear(), Ye.clear();
|
|
3197
|
+
}), _r(r);
|
|
3201
3198
|
}
|
|
3202
3199
|
function Tr() {
|
|
3203
|
-
|
|
3200
|
+
_e.clear(), ze.clear();
|
|
3204
3201
|
}
|
|
3205
3202
|
function Sr() {
|
|
3206
|
-
|
|
3203
|
+
Vt = !1;
|
|
3207
3204
|
}
|
|
3208
3205
|
function vr() {
|
|
3209
|
-
|
|
3206
|
+
Se = !0;
|
|
3207
|
+
}
|
|
3208
|
+
function Ir() {
|
|
3209
|
+
Se = !1;
|
|
3210
3210
|
}
|
|
3211
3211
|
var ne = {
|
|
3212
3212
|
gql: k,
|
|
3213
|
-
resetCaches:
|
|
3214
|
-
disableFragmentWarnings:
|
|
3215
|
-
enableExperimentalFragmentVariables:
|
|
3216
|
-
disableExperimentalFragmentVariables:
|
|
3213
|
+
resetCaches: Tr,
|
|
3214
|
+
disableFragmentWarnings: Sr,
|
|
3215
|
+
enableExperimentalFragmentVariables: vr,
|
|
3216
|
+
disableExperimentalFragmentVariables: Ir
|
|
3217
3217
|
};
|
|
3218
3218
|
(function(e) {
|
|
3219
3219
|
e.gql = ne.gql, e.resetCaches = ne.resetCaches, e.disableFragmentWarnings = ne.disableFragmentWarnings, e.enableExperimentalFragmentVariables = ne.enableExperimentalFragmentVariables, e.disableExperimentalFragmentVariables = ne.disableExperimentalFragmentVariables;
|
|
3220
3220
|
})(k || (k = {}));
|
|
3221
3221
|
k.default = k;
|
|
3222
|
-
const
|
|
3222
|
+
const qt = k`
|
|
3223
3223
|
fragment MatchParts on MatchConfig {
|
|
3224
3224
|
regexValue
|
|
3225
3225
|
matchValue
|
|
@@ -3250,7 +3250,7 @@ const jt = k`
|
|
|
3250
3250
|
highlight_logs: $highlight_logs
|
|
3251
3251
|
)
|
|
3252
3252
|
}
|
|
3253
|
-
`,
|
|
3253
|
+
`, Nr = k`
|
|
3254
3254
|
mutation PushSessionEvents(
|
|
3255
3255
|
$session_secure_id: String!
|
|
3256
3256
|
$payload_id: Int64ID!
|
|
@@ -3262,7 +3262,7 @@ const jt = k`
|
|
|
3262
3262
|
data: $data
|
|
3263
3263
|
)
|
|
3264
3264
|
}
|
|
3265
|
-
`,
|
|
3265
|
+
`, br = k`
|
|
3266
3266
|
mutation identifySession(
|
|
3267
3267
|
$session_secure_id: String!
|
|
3268
3268
|
$user_identifier: String!
|
|
@@ -3274,7 +3274,7 @@ const jt = k`
|
|
|
3274
3274
|
user_object: $user_object
|
|
3275
3275
|
)
|
|
3276
3276
|
}
|
|
3277
|
-
`,
|
|
3277
|
+
`, xr = k`
|
|
3278
3278
|
mutation addSessionProperties(
|
|
3279
3279
|
$session_secure_id: String!
|
|
3280
3280
|
$properties_object: Any
|
|
@@ -3284,11 +3284,11 @@ const jt = k`
|
|
|
3284
3284
|
properties_object: $properties_object
|
|
3285
3285
|
)
|
|
3286
3286
|
}
|
|
3287
|
-
`,
|
|
3287
|
+
`, Dr = k`
|
|
3288
3288
|
mutation pushMetrics($metrics: [MetricInput]!) {
|
|
3289
3289
|
pushMetrics(metrics: $metrics)
|
|
3290
3290
|
}
|
|
3291
|
-
`,
|
|
3291
|
+
`, Or = k`
|
|
3292
3292
|
mutation addSessionFeedback(
|
|
3293
3293
|
$session_secure_id: String!
|
|
3294
3294
|
$user_name: String
|
|
@@ -3304,7 +3304,7 @@ const jt = k`
|
|
|
3304
3304
|
timestamp: $timestamp
|
|
3305
3305
|
)
|
|
3306
3306
|
}
|
|
3307
|
-
`,
|
|
3307
|
+
`, wr = k`
|
|
3308
3308
|
mutation initializeSession(
|
|
3309
3309
|
$session_secure_id: String!
|
|
3310
3310
|
$session_key: String
|
|
@@ -3391,12 +3391,12 @@ const jt = k`
|
|
|
3391
3391
|
}
|
|
3392
3392
|
}
|
|
3393
3393
|
}
|
|
3394
|
-
${
|
|
3395
|
-
`,
|
|
3394
|
+
${qt}
|
|
3395
|
+
`, Cr = k`
|
|
3396
3396
|
query Ignore($id: ID!) {
|
|
3397
3397
|
ignore(id: $id)
|
|
3398
3398
|
}
|
|
3399
|
-
`,
|
|
3399
|
+
`, kr = k`
|
|
3400
3400
|
query GetSamplingConfig($organization_verbose_id: String!) {
|
|
3401
3401
|
sampling(organization_verbose_id: $organization_verbose_id) {
|
|
3402
3402
|
spans {
|
|
@@ -3445,9 +3445,9 @@ const jt = k`
|
|
|
3445
3445
|
}
|
|
3446
3446
|
}
|
|
3447
3447
|
}
|
|
3448
|
-
${
|
|
3449
|
-
`,
|
|
3450
|
-
function
|
|
3448
|
+
${qt}
|
|
3449
|
+
`, Rr = (e, t, n, r) => e();
|
|
3450
|
+
function Pi(e, t = Rr) {
|
|
3451
3451
|
return {
|
|
3452
3452
|
PushPayload(n, r) {
|
|
3453
3453
|
return t(
|
|
@@ -3464,7 +3464,7 @@ function Ri(e, t = kr) {
|
|
|
3464
3464
|
PushSessionEvents(n, r) {
|
|
3465
3465
|
return t(
|
|
3466
3466
|
(i) => e.request(
|
|
3467
|
-
|
|
3467
|
+
Nr,
|
|
3468
3468
|
n,
|
|
3469
3469
|
E(E({}, r), i)
|
|
3470
3470
|
),
|
|
@@ -3476,7 +3476,7 @@ function Ri(e, t = kr) {
|
|
|
3476
3476
|
identifySession(n, r) {
|
|
3477
3477
|
return t(
|
|
3478
3478
|
(i) => e.request(
|
|
3479
|
-
|
|
3479
|
+
br,
|
|
3480
3480
|
n,
|
|
3481
3481
|
E(E({}, r), i)
|
|
3482
3482
|
),
|
|
@@ -3488,7 +3488,7 @@ function Ri(e, t = kr) {
|
|
|
3488
3488
|
addSessionProperties(n, r) {
|
|
3489
3489
|
return t(
|
|
3490
3490
|
(i) => e.request(
|
|
3491
|
-
|
|
3491
|
+
xr,
|
|
3492
3492
|
n,
|
|
3493
3493
|
E(E({}, r), i)
|
|
3494
3494
|
),
|
|
@@ -3500,7 +3500,7 @@ function Ri(e, t = kr) {
|
|
|
3500
3500
|
pushMetrics(n, r) {
|
|
3501
3501
|
return t(
|
|
3502
3502
|
(i) => e.request(
|
|
3503
|
-
|
|
3503
|
+
Dr,
|
|
3504
3504
|
n,
|
|
3505
3505
|
E(E({}, r), i)
|
|
3506
3506
|
),
|
|
@@ -3512,7 +3512,7 @@ function Ri(e, t = kr) {
|
|
|
3512
3512
|
addSessionFeedback(n, r) {
|
|
3513
3513
|
return t(
|
|
3514
3514
|
(i) => e.request(
|
|
3515
|
-
|
|
3515
|
+
Or,
|
|
3516
3516
|
n,
|
|
3517
3517
|
E(E({}, r), i)
|
|
3518
3518
|
),
|
|
@@ -3524,7 +3524,7 @@ function Ri(e, t = kr) {
|
|
|
3524
3524
|
initializeSession(n, r) {
|
|
3525
3525
|
return t(
|
|
3526
3526
|
(i) => e.request(
|
|
3527
|
-
|
|
3527
|
+
wr,
|
|
3528
3528
|
n,
|
|
3529
3529
|
E(E({}, r), i)
|
|
3530
3530
|
),
|
|
@@ -3535,7 +3535,7 @@ function Ri(e, t = kr) {
|
|
|
3535
3535
|
},
|
|
3536
3536
|
Ignore(n, r) {
|
|
3537
3537
|
return t(
|
|
3538
|
-
(i) => e.request(
|
|
3538
|
+
(i) => e.request(Cr, n, E(E({}, r), i)),
|
|
3539
3539
|
"Ignore",
|
|
3540
3540
|
"query",
|
|
3541
3541
|
n
|
|
@@ -3544,7 +3544,7 @@ function Ri(e, t = kr) {
|
|
|
3544
3544
|
GetSamplingConfig(n, r) {
|
|
3545
3545
|
return t(
|
|
3546
3546
|
(i) => e.request(
|
|
3547
|
-
|
|
3547
|
+
kr,
|
|
3548
3548
|
n,
|
|
3549
3549
|
E(E({}, r), i)
|
|
3550
3550
|
),
|
|
@@ -3555,7 +3555,7 @@ function Ri(e, t = kr) {
|
|
|
3555
3555
|
}
|
|
3556
3556
|
};
|
|
3557
3557
|
}
|
|
3558
|
-
function
|
|
3558
|
+
function Fi(e, t, n) {
|
|
3559
3559
|
try {
|
|
3560
3560
|
if (!(t in e))
|
|
3561
3561
|
return () => {
|
|
@@ -3574,7 +3574,7 @@ function Li(e, t, n) {
|
|
|
3574
3574
|
};
|
|
3575
3575
|
}
|
|
3576
3576
|
}
|
|
3577
|
-
function
|
|
3577
|
+
function Lr(e) {
|
|
3578
3578
|
if (!e || !e.outerHTML)
|
|
3579
3579
|
return "";
|
|
3580
3580
|
let t = "";
|
|
@@ -3593,19 +3593,19 @@ function Rr(e) {
|
|
|
3593
3593
|
}
|
|
3594
3594
|
return t;
|
|
3595
3595
|
}
|
|
3596
|
-
function
|
|
3596
|
+
function Je(e) {
|
|
3597
3597
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
3598
3598
|
}
|
|
3599
|
-
function
|
|
3599
|
+
function Ht(e, t) {
|
|
3600
3600
|
if (t === 0)
|
|
3601
3601
|
return !0;
|
|
3602
3602
|
const n = Object.keys(e);
|
|
3603
3603
|
for (const r of n)
|
|
3604
|
-
if (
|
|
3604
|
+
if (Je(e[r]) && Ht(e[r], t - 1))
|
|
3605
3605
|
return !0;
|
|
3606
3606
|
return !1;
|
|
3607
3607
|
}
|
|
3608
|
-
function
|
|
3608
|
+
function Mi(e, t) {
|
|
3609
3609
|
const n = {
|
|
3610
3610
|
numOfKeysLimit: 50,
|
|
3611
3611
|
depthOfLimit: 4
|
|
@@ -3626,7 +3626,7 @@ function Pi(e, t) {
|
|
|
3626
3626
|
const f = {};
|
|
3627
3627
|
for (const h in c) {
|
|
3628
3628
|
const m = c[h];
|
|
3629
|
-
Array.isArray(m) ? f[h] =
|
|
3629
|
+
Array.isArray(m) ? f[h] = Lr(
|
|
3630
3630
|
m.length ? m[0] : null
|
|
3631
3631
|
) : f[h] = m;
|
|
3632
3632
|
}
|
|
@@ -3640,19 +3640,19 @@ function Pi(e, t) {
|
|
|
3640
3640
|
return c;
|
|
3641
3641
|
});
|
|
3642
3642
|
function s(a) {
|
|
3643
|
-
return
|
|
3643
|
+
return Je(a) && Object.keys(a).length > n.numOfKeysLimit || typeof a == "function" ? !0 : a instanceof Event && a.isTrusted === !1 ? Object.keys(a).length === 1 : !!(Je(a) && Ht(a, n.depthOfLimit));
|
|
3644
3644
|
}
|
|
3645
3645
|
function o(a) {
|
|
3646
3646
|
let c = a.toString();
|
|
3647
3647
|
return n.stringLengthLimit && c.length > n.stringLengthLimit && (c = `${c.slice(0, n.stringLengthLimit)}...`), c;
|
|
3648
3648
|
}
|
|
3649
3649
|
}
|
|
3650
|
-
function
|
|
3650
|
+
function Pr() {
|
|
3651
3651
|
var e = document.createElement("canvas");
|
|
3652
3652
|
return e.getContext && e.getContext("2d") ? e.toDataURL("image/webp").indexOf("data:image/webp") == 0 : !1;
|
|
3653
3653
|
}
|
|
3654
|
-
function
|
|
3655
|
-
return
|
|
3654
|
+
function $i() {
|
|
3655
|
+
return Pr() ? {
|
|
3656
3656
|
type: "image/webp",
|
|
3657
3657
|
quality: 0.9
|
|
3658
3658
|
} : {
|
|
@@ -3660,10 +3660,10 @@ function Fi() {
|
|
|
3660
3660
|
quality: 0.6
|
|
3661
3661
|
};
|
|
3662
3662
|
}
|
|
3663
|
-
function
|
|
3663
|
+
function Ui(e) {
|
|
3664
3664
|
return typeof e == "number" && !isNaN(e) && isFinite(e);
|
|
3665
3665
|
}
|
|
3666
|
-
const
|
|
3666
|
+
const Bi = "exception.message", Vi = "exception.stacktrace", ji = "exception.type", qi = "http.response.status_code", Hi = "server.address", Gi = "service.name", Yi = "service.version", zi = "telemetry.sdk.name", Ji = "telemetry.sdk.version", Xi = "url.full", Qi = "url.path", Ki = "url.query", Wi = "user_agent.original", Zi = 1e3, es = 1e3 * 2, Fr = 4 * 60 * 60 * 1e3, nt = 15 * 60 * 1e3, ts = {
|
|
3667
3667
|
normal: {
|
|
3668
3668
|
bytes: 1e7,
|
|
3669
3669
|
time: 4 * 60 * 1e3
|
|
@@ -3672,13 +3672,13 @@ const $i = "exception.message", Ui = "exception.stacktrace", Bi = "exception.typ
|
|
|
3672
3672
|
bytes: 16e6,
|
|
3673
3673
|
time: 5e3
|
|
3674
3674
|
}
|
|
3675
|
-
},
|
|
3675
|
+
}, ns = 100, rs = "app.highlight.io", is = "https://app.launchdarkly.com", ss = {
|
|
3676
3676
|
"observability.ld-stg.launchdarkly.com": "ld-stg.launchdarkly.com",
|
|
3677
3677
|
"observability.app.launchdarkly.com": "app.launchdarkly.com",
|
|
3678
3678
|
"observability.app.ld.catamorphic.com": "app.ld.catamorphic.com"
|
|
3679
|
-
},
|
|
3679
|
+
}, os = "/projects/default", as = new RegExp("pub\\.(?<domain>.+)");
|
|
3680
3680
|
/*! js-cookie v3.0.8 | MIT */
|
|
3681
|
-
function
|
|
3681
|
+
function de(e) {
|
|
3682
3682
|
for (var t = 1; t < arguments.length; t++) {
|
|
3683
3683
|
var n = arguments[t];
|
|
3684
3684
|
for (var r in n)
|
|
@@ -3686,7 +3686,7 @@ function he(e) {
|
|
|
3686
3686
|
}
|
|
3687
3687
|
return e;
|
|
3688
3688
|
}
|
|
3689
|
-
var
|
|
3689
|
+
var Mr = {
|
|
3690
3690
|
read: function(e) {
|
|
3691
3691
|
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
3692
3692
|
},
|
|
@@ -3697,10 +3697,10 @@ var Fr = {
|
|
|
3697
3697
|
);
|
|
3698
3698
|
}
|
|
3699
3699
|
};
|
|
3700
|
-
function
|
|
3700
|
+
function Xe(e, t) {
|
|
3701
3701
|
function n(i, s, o) {
|
|
3702
3702
|
if (typeof document != "undefined") {
|
|
3703
|
-
o =
|
|
3703
|
+
o = de({}, t, o), typeof o.expires == "number" && (o.expires = new Date(Date.now() + o.expires * 864e5)), o.expires && (o.expires = o.expires.toUTCString()), i = encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
3704
3704
|
var a = "";
|
|
3705
3705
|
for (var c in o)
|
|
3706
3706
|
o[c] && (a += "; " + c, o[c] !== !0 && (a += "=" + o[c].split(";")[0]));
|
|
@@ -3729,16 +3729,16 @@ function Je(e, t) {
|
|
|
3729
3729
|
n(
|
|
3730
3730
|
i,
|
|
3731
3731
|
"",
|
|
3732
|
-
|
|
3732
|
+
de({}, s, {
|
|
3733
3733
|
expires: -1
|
|
3734
3734
|
})
|
|
3735
3735
|
);
|
|
3736
3736
|
},
|
|
3737
3737
|
withAttributes: function(i) {
|
|
3738
|
-
return
|
|
3738
|
+
return Xe(this.converter, de({}, this.attributes, i));
|
|
3739
3739
|
},
|
|
3740
3740
|
withConverter: function(i) {
|
|
3741
|
-
return
|
|
3741
|
+
return Xe(de({}, this.converter, i), this.attributes);
|
|
3742
3742
|
}
|
|
3743
3743
|
},
|
|
3744
3744
|
{
|
|
@@ -3747,9 +3747,9 @@ function Je(e, t) {
|
|
|
3747
3747
|
}
|
|
3748
3748
|
);
|
|
3749
3749
|
}
|
|
3750
|
-
var
|
|
3751
|
-
let
|
|
3752
|
-
class
|
|
3750
|
+
var pe = Xe(Mr, { path: "/" }), $r = /* @__PURE__ */ ((e) => (e.CLIENT_ID = "highlightClientID", e))($r || {});
|
|
3751
|
+
let ve = "localStorage", Qe = !0, se;
|
|
3752
|
+
class Ur {
|
|
3753
3753
|
constructor() {
|
|
3754
3754
|
Y(this, "storage", {});
|
|
3755
3755
|
}
|
|
@@ -3771,33 +3771,33 @@ class $r {
|
|
|
3771
3771
|
delete this.storage[t];
|
|
3772
3772
|
}
|
|
3773
3773
|
}
|
|
3774
|
-
class
|
|
3774
|
+
class Br {
|
|
3775
3775
|
getItem(t) {
|
|
3776
3776
|
var n;
|
|
3777
|
-
return (n =
|
|
3777
|
+
return (n = pe.get(t)) != null ? n : "";
|
|
3778
3778
|
}
|
|
3779
3779
|
setItem(t, n) {
|
|
3780
|
-
if (!
|
|
3780
|
+
if (!Qe)
|
|
3781
3781
|
return;
|
|
3782
3782
|
const r = /* @__PURE__ */ new Date();
|
|
3783
|
-
r.setTime(r.getTime() +
|
|
3783
|
+
r.setTime(r.getTime() + nt), pe.set(t, n, E({
|
|
3784
3784
|
expires: r
|
|
3785
|
-
},
|
|
3785
|
+
}, se ? { domain: se } : {}));
|
|
3786
3786
|
}
|
|
3787
3787
|
removeItem(t) {
|
|
3788
|
-
|
|
3788
|
+
Qe && pe.remove(t, se ? { domain: se } : void 0);
|
|
3789
3789
|
}
|
|
3790
3790
|
keys() {
|
|
3791
3791
|
var t;
|
|
3792
|
-
return Object.keys((t =
|
|
3792
|
+
return Object.keys((t = pe.get()) != null ? t : {});
|
|
3793
3793
|
}
|
|
3794
3794
|
}
|
|
3795
|
-
const K = new
|
|
3795
|
+
const K = new Ur(), W = new Br(), be = () => {
|
|
3796
3796
|
let e = null;
|
|
3797
3797
|
if (typeof window == "undefined")
|
|
3798
3798
|
return K;
|
|
3799
3799
|
try {
|
|
3800
|
-
switch (
|
|
3800
|
+
switch (ve) {
|
|
3801
3801
|
case "localStorage":
|
|
3802
3802
|
e = window.localStorage;
|
|
3803
3803
|
break;
|
|
@@ -3809,7 +3809,7 @@ const K = new $r(), W = new Ur(), Ne = () => {
|
|
|
3809
3809
|
"storage",
|
|
3810
3810
|
"getPersistentStorage",
|
|
3811
3811
|
"debug",
|
|
3812
|
-
`persistent storage was not found for mode ${
|
|
3812
|
+
`persistent storage was not found for mode ${ve}; using global storage`
|
|
3813
3813
|
), e = K);
|
|
3814
3814
|
} catch (t) {
|
|
3815
3815
|
$(
|
|
@@ -3821,15 +3821,15 @@ const K = new $r(), W = new Ur(), Ne = () => {
|
|
|
3821
3821
|
), e = K;
|
|
3822
3822
|
}
|
|
3823
3823
|
return e;
|
|
3824
|
-
}, Br = (e) => {
|
|
3825
|
-
Se = e;
|
|
3826
|
-
}, Et = (e) => {
|
|
3827
|
-
Xe = e;
|
|
3828
3824
|
}, Vr = (e) => {
|
|
3829
|
-
|
|
3830
|
-
},
|
|
3825
|
+
ve = e;
|
|
3826
|
+
}, _t = (e) => {
|
|
3827
|
+
Qe = e;
|
|
3828
|
+
}, jr = (e) => {
|
|
3829
|
+
se = e;
|
|
3830
|
+
}, rt = (e) => {
|
|
3831
3831
|
try {
|
|
3832
|
-
return
|
|
3832
|
+
return be().getItem(e);
|
|
3833
3833
|
} catch (t) {
|
|
3834
3834
|
return $(
|
|
3835
3835
|
"storage",
|
|
@@ -3839,10 +3839,10 @@ const K = new $r(), W = new Ur(), Ne = () => {
|
|
|
3839
3839
|
t
|
|
3840
3840
|
), K.getItem(e);
|
|
3841
3841
|
}
|
|
3842
|
-
},
|
|
3842
|
+
}, Gt = (e, t) => {
|
|
3843
3843
|
W.setItem(e, t);
|
|
3844
3844
|
try {
|
|
3845
|
-
return
|
|
3845
|
+
return be().setItem(e, t);
|
|
3846
3846
|
} catch (n) {
|
|
3847
3847
|
return $(
|
|
3848
3848
|
"storage",
|
|
@@ -3852,10 +3852,10 @@ const K = new $r(), W = new Ur(), Ne = () => {
|
|
|
3852
3852
|
n
|
|
3853
3853
|
), K.setItem(e, t);
|
|
3854
3854
|
}
|
|
3855
|
-
},
|
|
3855
|
+
}, it = (e) => {
|
|
3856
3856
|
W.removeItem(e);
|
|
3857
3857
|
try {
|
|
3858
|
-
return
|
|
3858
|
+
return be().removeItem(e);
|
|
3859
3859
|
} catch (t) {
|
|
3860
3860
|
return $(
|
|
3861
3861
|
"storage",
|
|
@@ -3865,8 +3865,8 @@ const K = new $r(), W = new Ur(), Ne = () => {
|
|
|
3865
3865
|
t
|
|
3866
3866
|
), K.removeItem(e);
|
|
3867
3867
|
}
|
|
3868
|
-
},
|
|
3869
|
-
if (
|
|
3868
|
+
}, cs = (e) => {
|
|
3869
|
+
if (ve === "sessionStorage") {
|
|
3870
3870
|
$(
|
|
3871
3871
|
"segment",
|
|
3872
3872
|
"sessionStorage",
|
|
@@ -3891,53 +3891,53 @@ const K = new $r(), W = new Ur(), Ne = () => {
|
|
|
3891
3891
|
};
|
|
3892
3892
|
};
|
|
3893
3893
|
var ee = /* @__PURE__ */ ((e) => (e.SEGMENT_LAST_SENT_HASH_KEY = "HIGHLIGHT_SEGMENT_LAST_SENT_HASH_KEY", e.SESSION_ID = "sessionID", e.SESSION_DATA = "sessionData", e.USER_IDENTIFIER = "highlightIdentifier", e.USER_OBJECT = "highlightUserObject", e))(ee || {});
|
|
3894
|
-
const
|
|
3894
|
+
const ae = (e) => `${ee.SESSION_DATA}_${e}`, Yt = () => {
|
|
3895
3895
|
var e;
|
|
3896
|
-
return typeof globalThis != "undefined" && ((e = globalThis.persistentSessionSecureID) != null && e.length) ? globalThis.persistentSessionSecureID :
|
|
3897
|
-
},
|
|
3896
|
+
return typeof globalThis != "undefined" && ((e = globalThis.persistentSessionSecureID) != null && e.length) ? globalThis.persistentSessionSecureID : st();
|
|
3897
|
+
}, qr = (e) => {
|
|
3898
3898
|
typeof globalThis != "undefined" && (e != null && e.length) && (globalThis.persistentSessionSecureID = e);
|
|
3899
|
-
},
|
|
3899
|
+
}, st = () => {
|
|
3900
3900
|
var e;
|
|
3901
|
-
return (e =
|
|
3902
|
-
},
|
|
3903
|
-
|
|
3904
|
-
},
|
|
3905
|
-
const t =
|
|
3906
|
-
return JSON.parse(
|
|
3907
|
-
},
|
|
3908
|
-
e || (e =
|
|
3909
|
-
let t =
|
|
3910
|
-
if (t && t.lastPushTime && Date.now() - t.lastPushTime <
|
|
3911
|
-
!
|
|
3901
|
+
return (e = rt(ee.SESSION_ID)) != null ? e : "";
|
|
3902
|
+
}, zt = (e) => {
|
|
3903
|
+
Gt(ee.SESSION_ID, e);
|
|
3904
|
+
}, ot = (e) => {
|
|
3905
|
+
const t = ae(e);
|
|
3906
|
+
return JSON.parse(rt(t) || "{}");
|
|
3907
|
+
}, Jt = (e, t) => !e.sessionKey && !!e.sessionStartTime && t - e.sessionStartTime > Fr, Hr = (e) => {
|
|
3908
|
+
e || (e = st());
|
|
3909
|
+
let t = ot(e);
|
|
3910
|
+
if (t && t.lastPushTime && Date.now() - t.lastPushTime < nt && // A recent push does not extend a session past its maximum length.
|
|
3911
|
+
!Jt(t, Date.now()))
|
|
3912
3912
|
return t;
|
|
3913
|
-
|
|
3914
|
-
},
|
|
3915
|
-
const t = e != null ? e :
|
|
3913
|
+
it(ae(e));
|
|
3914
|
+
}, Gr = (e) => {
|
|
3915
|
+
const t = e != null ? e : st();
|
|
3916
3916
|
if (t)
|
|
3917
3917
|
try {
|
|
3918
|
-
return
|
|
3918
|
+
return ot(t);
|
|
3919
3919
|
} catch (n) {
|
|
3920
3920
|
return;
|
|
3921
3921
|
}
|
|
3922
3922
|
};
|
|
3923
|
-
let
|
|
3924
|
-
const
|
|
3925
|
-
|
|
3926
|
-
},
|
|
3927
|
-
let
|
|
3928
|
-
const
|
|
3923
|
+
let Xt;
|
|
3924
|
+
const us = () => Xt, Yr = (e) => {
|
|
3925
|
+
Xt = e;
|
|
3926
|
+
}, zr = 10 * 1e3;
|
|
3927
|
+
let Tt = 0;
|
|
3928
|
+
const ls = () => {
|
|
3929
3929
|
const e = Date.now();
|
|
3930
|
-
if (!(e -
|
|
3931
|
-
|
|
3930
|
+
if (!(e - Tt < zr)) {
|
|
3931
|
+
Tt = e;
|
|
3932
3932
|
try {
|
|
3933
|
-
const t =
|
|
3933
|
+
const t = ot(Yt());
|
|
3934
3934
|
if (!(t != null && t.sessionSecureID))
|
|
3935
3935
|
return;
|
|
3936
|
-
if (
|
|
3937
|
-
|
|
3936
|
+
if (Jt(t, e)) {
|
|
3937
|
+
it(ae(t.sessionSecureID));
|
|
3938
3938
|
return;
|
|
3939
3939
|
}
|
|
3940
|
-
|
|
3940
|
+
at(B(E({}, t), { lastPushTime: e }));
|
|
3941
3941
|
} catch (t) {
|
|
3942
3942
|
$(
|
|
3943
3943
|
"highlightSession",
|
|
@@ -3948,26 +3948,26 @@ const cs = () => {
|
|
|
3948
3948
|
);
|
|
3949
3949
|
}
|
|
3950
3950
|
}
|
|
3951
|
-
},
|
|
3951
|
+
}, at = function(e) {
|
|
3952
3952
|
if (!(e != null && e.sessionSecureID)) return;
|
|
3953
3953
|
const t = e.sessionSecureID;
|
|
3954
|
-
|
|
3955
|
-
const n =
|
|
3956
|
-
|
|
3957
|
-
},
|
|
3954
|
+
qr(t);
|
|
3955
|
+
const n = ae(t);
|
|
3956
|
+
Gt(n, JSON.stringify(e)), Xr(n);
|
|
3957
|
+
}, Jr = function() {
|
|
3958
3958
|
const e = W.getItem(
|
|
3959
3959
|
ee.SESSION_ID
|
|
3960
3960
|
);
|
|
3961
|
-
|
|
3962
|
-
const t =
|
|
3961
|
+
zt(e);
|
|
3962
|
+
const t = ae(e), n = W.getItem(t);
|
|
3963
3963
|
try {
|
|
3964
|
-
|
|
3964
|
+
at(JSON.parse(n));
|
|
3965
3965
|
} catch (r) {
|
|
3966
3966
|
}
|
|
3967
3967
|
};
|
|
3968
|
-
function
|
|
3968
|
+
function Xr(e) {
|
|
3969
3969
|
var i;
|
|
3970
|
-
const t = `${ee.SESSION_DATA}_`, n = /* @__PURE__ */ new Set(), r =
|
|
3970
|
+
const t = `${ee.SESSION_DATA}_`, n = /* @__PURE__ */ new Set(), r = be();
|
|
3971
3971
|
for (let s = r.length - 1; s >= 0; s--) {
|
|
3972
3972
|
const o = r.key(s);
|
|
3973
3973
|
o && o.startsWith(t) && o !== e && n.add(o);
|
|
@@ -3977,8 +3977,8 @@ function Jr(e) {
|
|
|
3977
3977
|
for (const s of n) {
|
|
3978
3978
|
let o = !0;
|
|
3979
3979
|
try {
|
|
3980
|
-
const a =
|
|
3981
|
-
o = f === void 0 || Date.now() - f >=
|
|
3980
|
+
const a = rt(s) || W.getItem(s) || "{}", c = JSON.parse(a), f = (i = c.lastPushTime) != null ? i : c.sessionStartTime;
|
|
3981
|
+
o = f === void 0 || Date.now() - f >= nt;
|
|
3982
3982
|
} catch (a) {
|
|
3983
3983
|
}
|
|
3984
3984
|
o && ($(
|
|
@@ -3986,27 +3986,27 @@ function Jr(e) {
|
|
|
3986
3986
|
"pruneSessionData",
|
|
3987
3987
|
"debug",
|
|
3988
3988
|
`removing session data for stale key ${s}`
|
|
3989
|
-
),
|
|
3989
|
+
), it(s));
|
|
3990
3990
|
}
|
|
3991
3991
|
}
|
|
3992
|
-
var
|
|
3993
|
-
const
|
|
3992
|
+
var Qt = /* @__PURE__ */ ((e) => (e.BillingQuotaExceeded = "BillingQuotaExceeded", e))(Qt || {});
|
|
3993
|
+
const Qr = 3, Kr = 1e3, Wr = 500, Zr = [Qt.BillingQuotaExceeded.toString()], ei = (e) => {
|
|
3994
3994
|
var n;
|
|
3995
3995
|
return ((n = e.response.errors) == null ? void 0 : n.find(
|
|
3996
|
-
(r) =>
|
|
3996
|
+
(r) => Zr.includes(r.message)
|
|
3997
3997
|
)) === void 0;
|
|
3998
|
-
},
|
|
3998
|
+
}, fs = () => {
|
|
3999
3999
|
const e = (t, n, r, i, s = 0) => V(void 0, null, function* () {
|
|
4000
4000
|
try {
|
|
4001
4001
|
return yield t();
|
|
4002
4002
|
} catch (o) {
|
|
4003
|
-
if (o instanceof Q && !
|
|
4003
|
+
if (o instanceof Q && !ei(o))
|
|
4004
4004
|
throw o;
|
|
4005
|
-
if (s <
|
|
4005
|
+
if (s < Qr)
|
|
4006
4006
|
return yield new Promise(
|
|
4007
4007
|
(a) => setTimeout(
|
|
4008
4008
|
a,
|
|
4009
|
-
|
|
4009
|
+
Kr + Wr * Math.pow(2, s)
|
|
4010
4010
|
)
|
|
4011
4011
|
), yield e(
|
|
4012
4012
|
t,
|
|
@@ -4015,14 +4015,14 @@ const Xr = 3, Qr = 1e3, Kr = 500, Wr = [Xt.BillingQuotaExceeded.toString()], Zr
|
|
|
4015
4015
|
i,
|
|
4016
4016
|
s + 1
|
|
4017
4017
|
);
|
|
4018
|
-
throw
|
|
4018
|
+
throw pn(
|
|
4019
4019
|
"error",
|
|
4020
4020
|
`highlight.io: data request failed after ${s} retries`
|
|
4021
4021
|
), o;
|
|
4022
4022
|
}
|
|
4023
4023
|
});
|
|
4024
4024
|
return e;
|
|
4025
|
-
}, C = "feature_flag",
|
|
4025
|
+
}, C = "feature_flag", Kt = "launchdarkly", Wt = "evaluation", ti = `${C}.${Wt}`, hs = `${C}.set.id`, ni = `${C}.key`, ri = `${C}.contextKeys`, ii = `${C}.context.id`, si = `${C}.result.value`, oi = `${C}.provider.name`, St = {
|
|
4026
4026
|
kind: `${C}.result.reason.kind`,
|
|
4027
4027
|
errorKind: `${C}.result.reason.errorKind`,
|
|
4028
4028
|
ruleIndex: `${C}.result.reason.ruleIndex`,
|
|
@@ -4030,18 +4030,18 @@ const Xr = 3, Qr = 1e3, Kr = 500, Wr = [Xt.BillingQuotaExceeded.toString()], Zr
|
|
|
4030
4030
|
prerequisiteKey: `${C}.result.reason.prerequisiteKey`,
|
|
4031
4031
|
inExperiment: `${C}.result.reason.inExperiment`,
|
|
4032
4032
|
bigSegmentsStatus: `${C}.result.reason.bigSegmentsStatus`
|
|
4033
|
-
},
|
|
4034
|
-
function
|
|
4033
|
+
}, ai = `${C}.result.variationIndex`, ds = `${Kt}.application.id`, ps = `${Kt}.application.version`, ci = "context", ms = `${ci}.contextKeys`, ui = "$ld:telemetry:session:init", vt = "$ld:telemetry:track", gs = "launchdarkly.track", ys = "page_view", Es = "document_load", _s = "result.status";
|
|
4034
|
+
function It(e) {
|
|
4035
4035
|
return e.includes("%") || e.includes(":") ? e.replace(/%/g, "%25").replace(/:/g, "%3A") : e;
|
|
4036
4036
|
}
|
|
4037
|
-
function
|
|
4037
|
+
function Zt(e) {
|
|
4038
4038
|
return e.kind === "multi";
|
|
4039
4039
|
}
|
|
4040
4040
|
function At(e) {
|
|
4041
|
-
return
|
|
4041
|
+
return Zt(e) ? Object.keys(e).sort().filter((t) => t !== "kind").map((t) => `${t}:${It(e[t].key)}`).join(":") : "kind" in e && e.kind === "user" ? e.key : "kind" in e ? `${e.kind}:${It(e.key)}` : e.key;
|
|
4042
4042
|
}
|
|
4043
|
-
function
|
|
4044
|
-
return
|
|
4043
|
+
function Nt(e) {
|
|
4044
|
+
return Zt(e) ? Object.keys(e).sort().filter((t) => t !== "kind").map((t) => ({
|
|
4045
4045
|
[t]: e[t].key
|
|
4046
4046
|
})).reduce((t, n) => E(E({}, t), n), {}) : "kind" in e ? {
|
|
4047
4047
|
[e.kind]: e.key
|
|
@@ -4049,42 +4049,42 @@ function It(e) {
|
|
|
4049
4049
|
user: e.key
|
|
4050
4050
|
};
|
|
4051
4051
|
}
|
|
4052
|
-
function
|
|
4052
|
+
function Ts(e, t, n) {
|
|
4053
4053
|
t.addHook({
|
|
4054
4054
|
getMetadata: () => ({
|
|
4055
4055
|
name: "highlight.run"
|
|
4056
4056
|
}),
|
|
4057
4057
|
afterIdentify: (r, i, s) => {
|
|
4058
4058
|
var a, c;
|
|
4059
|
-
const o = B(E({},
|
|
4059
|
+
const o = B(E({}, Nt(r.context)), {
|
|
4060
4060
|
key: (c = (a = n == null ? void 0 : n.contextFriendlyName) == null ? void 0 : a.call(n, r.context)) != null ? c : At(r.context)
|
|
4061
4061
|
});
|
|
4062
4062
|
return e.log("LD.identify", "INFO", o), s.status === "completed" && e.identify(o.key, o, "LaunchDarkly"), i;
|
|
4063
4063
|
},
|
|
4064
4064
|
afterEvaluation: (r, i, s) => {
|
|
4065
4065
|
const o = E({
|
|
4066
|
-
[
|
|
4067
|
-
[
|
|
4068
|
-
[
|
|
4066
|
+
[oi]: "LaunchDarkly",
|
|
4067
|
+
[ni]: r.flagKey,
|
|
4068
|
+
[si]: JSON.stringify(s.value)
|
|
4069
4069
|
}, s.variationIndex !== void 0 && s.variationIndex !== null ? {
|
|
4070
|
-
[
|
|
4070
|
+
[ai]: s.variationIndex
|
|
4071
4071
|
} : {});
|
|
4072
4072
|
if (s.reason)
|
|
4073
|
-
for (const a in
|
|
4073
|
+
for (const a in St) {
|
|
4074
4074
|
const c = a, f = s.reason[c];
|
|
4075
|
-
f != null && (o[
|
|
4075
|
+
f != null && (o[St[c]] = f);
|
|
4076
4076
|
}
|
|
4077
|
-
return r.context && (o[
|
|
4078
|
-
|
|
4079
|
-
), o[
|
|
4077
|
+
return r.context && (o[ri] = JSON.stringify(
|
|
4078
|
+
Nt(r.context)
|
|
4079
|
+
), o[ii] = At(
|
|
4080
4080
|
r.context
|
|
4081
|
-
)), e.startSpan(
|
|
4082
|
-
a && a.addEvent(
|
|
4081
|
+
)), e.startSpan(Wt, (a) => {
|
|
4082
|
+
a && a.addEvent(ti, o);
|
|
4083
4083
|
}), i;
|
|
4084
4084
|
}
|
|
4085
4085
|
});
|
|
4086
4086
|
}
|
|
4087
|
-
class
|
|
4087
|
+
class li {
|
|
4088
4088
|
constructor(t, n) {
|
|
4089
4089
|
Y(this, "client");
|
|
4090
4090
|
Y(this, "metadata");
|
|
@@ -4094,7 +4094,7 @@ class ui {
|
|
|
4094
4094
|
return [];
|
|
4095
4095
|
}
|
|
4096
4096
|
init(t) {
|
|
4097
|
-
this.client.track(
|
|
4097
|
+
this.client.track(ui, {
|
|
4098
4098
|
sessionID: t
|
|
4099
4099
|
});
|
|
4100
4100
|
}
|
|
@@ -4107,18 +4107,18 @@ class ui {
|
|
|
4107
4107
|
track(t, n) {
|
|
4108
4108
|
const r = n.event;
|
|
4109
4109
|
this.client.track(
|
|
4110
|
-
r ? `${
|
|
4110
|
+
r ? `${vt}:${r}` : vt,
|
|
4111
4111
|
B(E({}, n), {
|
|
4112
4112
|
sessionID: t
|
|
4113
4113
|
})
|
|
4114
4114
|
);
|
|
4115
4115
|
}
|
|
4116
4116
|
}
|
|
4117
|
-
class
|
|
4117
|
+
class Ss extends mn {
|
|
4118
4118
|
constructor(n, r) {
|
|
4119
4119
|
super();
|
|
4120
4120
|
Y(this, "client");
|
|
4121
|
-
this.client = new
|
|
4121
|
+
this.client = new li(n, r);
|
|
4122
4122
|
}
|
|
4123
4123
|
getHooks(n) {
|
|
4124
4124
|
return [
|
|
@@ -4151,37 +4151,51 @@ class _s extends pn {
|
|
|
4151
4151
|
return this._bufferCall("track", [n, r]);
|
|
4152
4152
|
}
|
|
4153
4153
|
}
|
|
4154
|
-
const
|
|
4155
|
-
e
|
|
4156
|
-
const t =
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
history.
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4154
|
+
const re = "__ldPathListenerHistoryWrap", fi = () => {
|
|
4155
|
+
let e = !0;
|
|
4156
|
+
const t = (a) => {
|
|
4157
|
+
e && (window.dispatchEvent(new Event(a)), window.dispatchEvent(new Event("locationchange")));
|
|
4158
|
+
}, n = history.pushState, r = function() {
|
|
4159
|
+
const a = n.apply(this, arguments);
|
|
4160
|
+
return t("pushstate"), a;
|
|
4161
|
+
};
|
|
4162
|
+
history.pushState = r;
|
|
4163
|
+
const i = history.replaceState, s = function() {
|
|
4164
|
+
const a = i.apply(this, arguments);
|
|
4165
|
+
return t("replacestate"), a;
|
|
4166
|
+
};
|
|
4167
|
+
history.replaceState = s;
|
|
4168
|
+
const o = () => {
|
|
4167
4169
|
window.dispatchEvent(new Event("locationchange"));
|
|
4168
4170
|
};
|
|
4169
|
-
window.addEventListener("popstate",
|
|
4170
|
-
|
|
4171
|
+
return window.addEventListener("popstate", o), {
|
|
4172
|
+
subscribers: 0,
|
|
4173
|
+
release: () => {
|
|
4174
|
+
e = !1, window.removeEventListener("popstate", o), history.pushState === r && (history.pushState = n), history.replaceState === s && (history.replaceState = i);
|
|
4175
|
+
}
|
|
4176
|
+
};
|
|
4177
|
+
}, vs = (e) => {
|
|
4178
|
+
var s;
|
|
4179
|
+
e(window.location.href);
|
|
4180
|
+
const t = window, n = (s = t[re]) != null ? s : t[re] = fi();
|
|
4181
|
+
n.subscribers++;
|
|
4182
|
+
const r = function() {
|
|
4171
4183
|
e(window.location.href);
|
|
4172
4184
|
};
|
|
4173
|
-
|
|
4174
|
-
|
|
4185
|
+
window.addEventListener("locationchange", r);
|
|
4186
|
+
let i = !0;
|
|
4187
|
+
return () => {
|
|
4188
|
+
i && (i = !1, window.removeEventListener("locationchange", r), n.subscribers--, n.subscribers <= 0 && t[re] === n && (n.release(), delete t[re]));
|
|
4175
4189
|
};
|
|
4176
|
-
},
|
|
4177
|
-
version:
|
|
4178
|
-
},
|
|
4179
|
-
let L,
|
|
4180
|
-
function
|
|
4181
|
-
return e.nodeType, Node.ELEMENT_NODE,
|
|
4182
|
-
return
|
|
4190
|
+
}, hi = "1.6.0", di = {
|
|
4191
|
+
version: hi
|
|
4192
|
+
}, Is = di.version;
|
|
4193
|
+
let L, ct;
|
|
4194
|
+
function As(e, t) {
|
|
4195
|
+
return e.nodeType, Node.ELEMENT_NODE, Ke(e);
|
|
4196
|
+
return pi(e, t);
|
|
4183
4197
|
}
|
|
4184
|
-
function
|
|
4198
|
+
function Ns(e) {
|
|
4185
4199
|
if (e.id.length)
|
|
4186
4200
|
return `#${e.id}`;
|
|
4187
4201
|
if (e.classList.length) {
|
|
@@ -4192,7 +4206,7 @@ function As(e) {
|
|
|
4192
4206
|
}
|
|
4193
4207
|
return e.nodeName.toLowerCase();
|
|
4194
4208
|
}
|
|
4195
|
-
function
|
|
4209
|
+
function pi(e, t) {
|
|
4196
4210
|
if (e.tagName.toLowerCase() === "html")
|
|
4197
4211
|
return "html";
|
|
4198
4212
|
try {
|
|
@@ -4208,14 +4222,14 @@ function hi(e, t) {
|
|
|
4208
4222
|
maxNumberOfTries: 1e3,
|
|
4209
4223
|
optimized: !0
|
|
4210
4224
|
};
|
|
4211
|
-
L = E(E({}, n), t),
|
|
4212
|
-
let r =
|
|
4225
|
+
L = E(E({}, n), t), ct = mi(L.root, n);
|
|
4226
|
+
let r = Me(
|
|
4213
4227
|
e,
|
|
4214
4228
|
0,
|
|
4215
|
-
() =>
|
|
4229
|
+
() => Me(
|
|
4216
4230
|
e,
|
|
4217
4231
|
1,
|
|
4218
|
-
() =>
|
|
4232
|
+
() => Me(
|
|
4219
4233
|
e,
|
|
4220
4234
|
2
|
|
4221
4235
|
/* One */
|
|
@@ -4224,54 +4238,54 @@ function hi(e, t) {
|
|
|
4224
4238
|
);
|
|
4225
4239
|
if (r) {
|
|
4226
4240
|
if (L.optimized) {
|
|
4227
|
-
const i =
|
|
4241
|
+
const i = nn(rn(r, e));
|
|
4228
4242
|
i.length > 0 && (r = i[0]);
|
|
4229
4243
|
}
|
|
4230
|
-
return
|
|
4244
|
+
return xe(r);
|
|
4231
4245
|
} else
|
|
4232
|
-
return
|
|
4246
|
+
return Ke(e);
|
|
4233
4247
|
} catch (n) {
|
|
4234
|
-
return
|
|
4248
|
+
return Ke(e);
|
|
4235
4249
|
}
|
|
4236
4250
|
}
|
|
4237
|
-
function
|
|
4251
|
+
function mi(e, t) {
|
|
4238
4252
|
return e.nodeType === Node.DOCUMENT_NODE ? e : e === t.root ? e.ownerDocument : e;
|
|
4239
4253
|
}
|
|
4240
|
-
function
|
|
4254
|
+
function Me(e, t, n) {
|
|
4241
4255
|
let r = null, i = [], s = e, o = 0;
|
|
4242
4256
|
for (; s && s !== L.root.parentElement; ) {
|
|
4243
|
-
let a =
|
|
4244
|
-
const c =
|
|
4257
|
+
let a = me(gi(s)) || me(...yi(s)) || me(...Ei(s)) || me(_i(s)) || [Ti()];
|
|
4258
|
+
const c = Si(s);
|
|
4245
4259
|
if (t === 0)
|
|
4246
4260
|
c && (a = a.concat(
|
|
4247
|
-
a.filter(
|
|
4261
|
+
a.filter(Ue).map((f) => $e(f, c))
|
|
4248
4262
|
));
|
|
4249
4263
|
else if (t === 1)
|
|
4250
4264
|
a = a.slice(0, 1), c && (a = a.concat(
|
|
4251
|
-
a.filter(
|
|
4265
|
+
a.filter(Ue).map((f) => $e(f, c))
|
|
4252
4266
|
));
|
|
4253
4267
|
else if (t === 2) {
|
|
4254
4268
|
const [f] = a = a.slice(0, 1);
|
|
4255
|
-
c &&
|
|
4269
|
+
c && Ue(f) && (a = [$e(f, c)]);
|
|
4256
4270
|
}
|
|
4257
4271
|
for (let f of a)
|
|
4258
4272
|
f.level = o;
|
|
4259
|
-
if (i.push(a), i.length >= L.seedMinLength && (r =
|
|
4273
|
+
if (i.push(a), i.length >= L.seedMinLength && (r = bt(i, n), r))
|
|
4260
4274
|
break;
|
|
4261
4275
|
s = s.parentElement, o++;
|
|
4262
4276
|
}
|
|
4263
|
-
return r || (r =
|
|
4277
|
+
return r || (r = bt(i, n)), r;
|
|
4264
4278
|
}
|
|
4265
|
-
function
|
|
4266
|
-
const n = tn(
|
|
4279
|
+
function bt(e, t) {
|
|
4280
|
+
const n = nn(tn(e));
|
|
4267
4281
|
if (n.length > L.threshold)
|
|
4268
4282
|
return t ? t() : null;
|
|
4269
4283
|
for (let r of n)
|
|
4270
|
-
if (
|
|
4284
|
+
if (en(r))
|
|
4271
4285
|
return r;
|
|
4272
4286
|
return null;
|
|
4273
4287
|
}
|
|
4274
|
-
function
|
|
4288
|
+
function xe(e) {
|
|
4275
4289
|
let t = e[0], n = t.name;
|
|
4276
4290
|
for (let r = 1; r < e.length; r++) {
|
|
4277
4291
|
const i = e[r].level || 0;
|
|
@@ -4279,11 +4293,11 @@ function be(e) {
|
|
|
4279
4293
|
}
|
|
4280
4294
|
return n;
|
|
4281
4295
|
}
|
|
4282
|
-
function
|
|
4296
|
+
function xt(e) {
|
|
4283
4297
|
return e.map((t) => t.penalty).reduce((t, n) => t + n, 0);
|
|
4284
4298
|
}
|
|
4285
|
-
function
|
|
4286
|
-
switch (
|
|
4299
|
+
function en(e) {
|
|
4300
|
+
switch (ct.querySelectorAll(xe(e)).length) {
|
|
4287
4301
|
case 0:
|
|
4288
4302
|
return !0;
|
|
4289
4303
|
case 1:
|
|
@@ -4292,45 +4306,45 @@ function Zt(e) {
|
|
|
4292
4306
|
return !1;
|
|
4293
4307
|
}
|
|
4294
4308
|
}
|
|
4295
|
-
function
|
|
4309
|
+
function gi(e) {
|
|
4296
4310
|
const t = e.getAttribute("id");
|
|
4297
4311
|
return t && L.idName(t) ? {
|
|
4298
|
-
name: "#" +
|
|
4312
|
+
name: "#" + Ie(t, { isIdentifier: !0 }),
|
|
4299
4313
|
penalty: 0
|
|
4300
4314
|
} : null;
|
|
4301
4315
|
}
|
|
4302
|
-
function
|
|
4316
|
+
function yi(e) {
|
|
4303
4317
|
return Array.from(e.attributes).filter(
|
|
4304
4318
|
(n) => L.attr(n.name, n.value)
|
|
4305
4319
|
).map(
|
|
4306
4320
|
(n) => ({
|
|
4307
|
-
name: "[" +
|
|
4321
|
+
name: "[" + Ie(n.name, { isIdentifier: !0 }) + '="' + Ie(n.value) + '"]',
|
|
4308
4322
|
penalty: 0.5
|
|
4309
4323
|
})
|
|
4310
4324
|
);
|
|
4311
4325
|
}
|
|
4312
|
-
function
|
|
4326
|
+
function Ei(e) {
|
|
4313
4327
|
return Array.from(e.classList).filter(L.className).map(
|
|
4314
4328
|
(n) => ({
|
|
4315
|
-
name: "." +
|
|
4329
|
+
name: "." + Ie(n, { isIdentifier: !0 }),
|
|
4316
4330
|
penalty: 1
|
|
4317
4331
|
})
|
|
4318
4332
|
);
|
|
4319
4333
|
}
|
|
4320
|
-
function
|
|
4334
|
+
function _i(e) {
|
|
4321
4335
|
const t = e.tagName.toLowerCase();
|
|
4322
4336
|
return L.tagName(t) ? {
|
|
4323
4337
|
name: t,
|
|
4324
4338
|
penalty: 2
|
|
4325
4339
|
} : null;
|
|
4326
4340
|
}
|
|
4327
|
-
function
|
|
4341
|
+
function Ti() {
|
|
4328
4342
|
return {
|
|
4329
4343
|
name: "*",
|
|
4330
4344
|
penalty: 3
|
|
4331
4345
|
};
|
|
4332
4346
|
}
|
|
4333
|
-
function
|
|
4347
|
+
function Si(e) {
|
|
4334
4348
|
const t = e.parentNode;
|
|
4335
4349
|
if (!t)
|
|
4336
4350
|
return null;
|
|
@@ -4342,33 +4356,33 @@ function _i(e) {
|
|
|
4342
4356
|
n = n.nextSibling;
|
|
4343
4357
|
return r;
|
|
4344
4358
|
}
|
|
4345
|
-
function
|
|
4359
|
+
function $e(e, t) {
|
|
4346
4360
|
return {
|
|
4347
4361
|
name: e.name + `:nth-child(${t})`,
|
|
4348
4362
|
penalty: e.penalty + 1
|
|
4349
4363
|
};
|
|
4350
4364
|
}
|
|
4351
|
-
function
|
|
4365
|
+
function Ue(e) {
|
|
4352
4366
|
return e.name !== "html" && !e.name.startsWith("#");
|
|
4353
4367
|
}
|
|
4354
|
-
function
|
|
4355
|
-
const t = e.filter(
|
|
4368
|
+
function me(...e) {
|
|
4369
|
+
const t = e.filter(vi);
|
|
4356
4370
|
return t.length > 0 ? t : null;
|
|
4357
4371
|
}
|
|
4358
|
-
function
|
|
4372
|
+
function vi(e) {
|
|
4359
4373
|
return e != null;
|
|
4360
4374
|
}
|
|
4361
|
-
function*
|
|
4375
|
+
function* tn(e, t = []) {
|
|
4362
4376
|
if (e.length > 0)
|
|
4363
4377
|
for (let n of e[0])
|
|
4364
|
-
yield*
|
|
4378
|
+
yield* ke(tn(e.slice(1, e.length), t.concat(n)));
|
|
4365
4379
|
else
|
|
4366
4380
|
yield t;
|
|
4367
4381
|
}
|
|
4368
|
-
function
|
|
4369
|
-
return Array.from(e).sort((t, n) =>
|
|
4382
|
+
function nn(e) {
|
|
4383
|
+
return Array.from(e).sort((t, n) => xt(t) - xt(n));
|
|
4370
4384
|
}
|
|
4371
|
-
function*
|
|
4385
|
+
function* rn(e, t, n = {
|
|
4372
4386
|
counter: 0,
|
|
4373
4387
|
visited: /* @__PURE__ */ new Map()
|
|
4374
4388
|
}) {
|
|
@@ -4379,23 +4393,23 @@ function* nn(e, t, n = {
|
|
|
4379
4393
|
n.counter += 1;
|
|
4380
4394
|
const i = [...e];
|
|
4381
4395
|
i.splice(r, 1);
|
|
4382
|
-
const s =
|
|
4396
|
+
const s = xe(i);
|
|
4383
4397
|
if (n.visited.has(s))
|
|
4384
4398
|
return;
|
|
4385
|
-
|
|
4399
|
+
en(i) && Ii(i, t) && (yield i, n.visited.set(s, !0), yield* ke(rn(i, t, n)));
|
|
4386
4400
|
}
|
|
4387
4401
|
}
|
|
4388
|
-
function
|
|
4389
|
-
return
|
|
4402
|
+
function Ii(e, t) {
|
|
4403
|
+
return ct.querySelector(xe(e)) === t;
|
|
4390
4404
|
}
|
|
4391
|
-
const
|
|
4405
|
+
const Ai = /[ -,\.\/:-@\[-\^`\{-~]/, Ni = /[ -,\.\/:-@\[\]\^`\{-~]/, bi = /(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g, xi = {
|
|
4392
4406
|
escapeEverything: !1,
|
|
4393
4407
|
isIdentifier: !1,
|
|
4394
4408
|
quotes: "single",
|
|
4395
4409
|
wrap: !1
|
|
4396
4410
|
};
|
|
4397
|
-
function
|
|
4398
|
-
const n = E(E({},
|
|
4411
|
+
function Ie(e, t = {}) {
|
|
4412
|
+
const n = E(E({}, xi), t);
|
|
4399
4413
|
n.quotes != "single" && n.quotes != "double" && (n.quotes = "single");
|
|
4400
4414
|
const r = n.quotes == "double" ? '"' : "'", i = n.isIdentifier, s = e.charAt(0);
|
|
4401
4415
|
let o = "", a = 0;
|
|
@@ -4410,18 +4424,18 @@ function ve(e, t = {}) {
|
|
|
4410
4424
|
}
|
|
4411
4425
|
m = "\\" + h.toString(16).toUpperCase() + " ";
|
|
4412
4426
|
} else
|
|
4413
|
-
n.escapeEverything ?
|
|
4427
|
+
n.escapeEverything ? Ai.test(f) ? m = "\\" + f : m = "\\" + h.toString(16).toUpperCase() + " " : /[\t\n\f\r\x0B]/.test(f) ? m = "\\" + h.toString(16).toUpperCase() + " " : f == "\\" || !i && (f == '"' && r == f || f == "'" && r == f) || i && Ni.test(f) ? m = "\\" + f : m = f;
|
|
4414
4428
|
o += m;
|
|
4415
4429
|
}
|
|
4416
|
-
return i && (/^-[-\d]/.test(o) ? o = "\\-" + o.slice(1) : /\d/.test(s) && (o = "\\3" + s + " " + o.slice(1))), o = o.replace(
|
|
4430
|
+
return i && (/^-[-\d]/.test(o) ? o = "\\-" + o.slice(1) : /\d/.test(s) && (o = "\\3" + s + " " + o.slice(1))), o = o.replace(bi, function(f, h, m) {
|
|
4417
4431
|
return h && h.length % 2 ? f : (h || "") + m;
|
|
4418
4432
|
}), !i && n.wrap ? r + o + r : o;
|
|
4419
4433
|
}
|
|
4420
|
-
const
|
|
4434
|
+
const Ke = (e) => {
|
|
4421
4435
|
let t = "";
|
|
4422
4436
|
const n = e.getAttribute("class"), r = e.getAttribute("id");
|
|
4423
|
-
return r && (t = t.concat(
|
|
4424
|
-
},
|
|
4437
|
+
return r && (t = t.concat(Dt(r, "#"))), n && (t = t.concat(Dt(n, "."))), t === "" && (t = t.concat(e.tagName.toLowerCase())), t;
|
|
4438
|
+
}, Dt = (e, t) => `${t}${e.trim().split(" ").join(t)}`, bs = (e) => {
|
|
4425
4439
|
let t;
|
|
4426
4440
|
const r = () => {
|
|
4427
4441
|
clearTimeout(t), t = setTimeout(() => {
|
|
@@ -4439,7 +4453,7 @@ const Qe = (e) => {
|
|
|
4439
4453
|
};
|
|
4440
4454
|
return window.addEventListener("resize", r), r(), () => window.removeEventListener("resize", r);
|
|
4441
4455
|
};
|
|
4442
|
-
var
|
|
4456
|
+
var sn = { exports: {} };
|
|
4443
4457
|
/**
|
|
4444
4458
|
* @preserve
|
|
4445
4459
|
* JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
|
|
@@ -4492,21 +4506,21 @@ var rn = { exports: {} };
|
|
|
4492
4506
|
return this.h1 = typeof r == "number" ? r : 0, this.rem = this.k1 = this.len = 0, this;
|
|
4493
4507
|
}, t = new n(), e.exports = n;
|
|
4494
4508
|
})();
|
|
4495
|
-
})(
|
|
4496
|
-
var
|
|
4497
|
-
const
|
|
4509
|
+
})(sn);
|
|
4510
|
+
var Di = sn.exports;
|
|
4511
|
+
const Oi = /* @__PURE__ */ tt(Di), Be = 28, J = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", wi = 2246822507, Ot = (e) => {
|
|
4498
4512
|
var n;
|
|
4499
4513
|
var t = "";
|
|
4500
4514
|
if (e) {
|
|
4501
|
-
const r =
|
|
4502
|
-
for (let i = 0; i <
|
|
4503
|
-
const o = ((r ^ i *
|
|
4515
|
+
const r = Oi(e).result();
|
|
4516
|
+
for (let i = 0; i < Be; i++) {
|
|
4517
|
+
const o = ((r ^ i * wi) >>> 0) % J.length;
|
|
4504
4518
|
t += J.charAt(o);
|
|
4505
4519
|
}
|
|
4506
4520
|
} else {
|
|
4507
|
-
const r = typeof window != "undefined" && ((n = window.crypto) == null ? void 0 : n.getRandomValues), i = new Uint32Array(
|
|
4521
|
+
const r = typeof window != "undefined" && ((n = window.crypto) == null ? void 0 : n.getRandomValues), i = new Uint32Array(Be);
|
|
4508
4522
|
r && window.crypto.getRandomValues(i);
|
|
4509
|
-
for (let s = 0; s <
|
|
4523
|
+
for (let s = 0; s < Be; s++)
|
|
4510
4524
|
r ? t += J.charAt(
|
|
4511
4525
|
i[s] % J.length
|
|
4512
4526
|
) : t += J.charAt(
|
|
@@ -4515,13 +4529,13 @@ const xi = /* @__PURE__ */ et(bi), Ue = 28, J = "abcdefghijklmnopqrstuvwxyzABCDE
|
|
|
4515
4529
|
}
|
|
4516
4530
|
return t;
|
|
4517
4531
|
};
|
|
4518
|
-
class
|
|
4532
|
+
class xs {
|
|
4519
4533
|
constructor(t) {
|
|
4520
4534
|
Y(this, "sessionSecureID");
|
|
4521
4535
|
try {
|
|
4522
|
-
t != null && t.storageMode &&
|
|
4536
|
+
t != null && t.storageMode && Vr(t == null ? void 0 : t.storageMode), _t(!!(t != null && t.sessionCookie)), (t == null ? void 0 : t.sessionCookieDomain) !== void 0 && jr(t.sessionCookieDomain), t != null && t.sessionCookie ? Jr() : _t(!1);
|
|
4523
4537
|
} catch (n) {
|
|
4524
|
-
|
|
4538
|
+
ft(
|
|
4525
4539
|
"Error initializing @launchdarkly observability plugin",
|
|
4526
4540
|
"error",
|
|
4527
4541
|
n
|
|
@@ -4530,15 +4544,15 @@ class Ns {
|
|
|
4530
4544
|
}
|
|
4531
4545
|
configureSession(t, n) {
|
|
4532
4546
|
try {
|
|
4533
|
-
const r =
|
|
4547
|
+
const r = Yt(), i = Gr(
|
|
4534
4548
|
r
|
|
4535
4549
|
);
|
|
4536
|
-
let s =
|
|
4550
|
+
let s = Hr(
|
|
4537
4551
|
r
|
|
4538
4552
|
);
|
|
4539
|
-
s != null && s.sessionSecureID ? this.sessionSecureID = s.sessionSecureID : (n != null && n.sessionKey ? this.sessionSecureID =
|
|
4553
|
+
s != null && s.sessionSecureID ? this.sessionSecureID = s.sessionSecureID : (n != null && n.sessionKey ? this.sessionSecureID = Ot(
|
|
4540
4554
|
`${t}-${n.sessionKey}`
|
|
4541
|
-
) : this.sessionSecureID =
|
|
4555
|
+
) : this.sessionSecureID = Ot(), i != null && i.sessionSecureID && i.sessionSecureID !== this.sessionSecureID && Yr(i.sessionSecureID), zt(this.sessionSecureID), at({
|
|
4542
4556
|
sessionSecureID: this.sessionSecureID,
|
|
4543
4557
|
sessionKey: n == null ? void 0 : n.sessionKey,
|
|
4544
4558
|
projectID: 0,
|
|
@@ -4546,7 +4560,7 @@ class Ns {
|
|
|
4546
4560
|
lastPushTime: Date.now()
|
|
4547
4561
|
}));
|
|
4548
4562
|
} catch (r) {
|
|
4549
|
-
|
|
4563
|
+
ft(
|
|
4550
4564
|
"Error configuring session in @launchdarkly observability plugin",
|
|
4551
4565
|
"error",
|
|
4552
4566
|
r
|
|
@@ -4555,87 +4569,87 @@ class Ns {
|
|
|
4555
4569
|
}
|
|
4556
4570
|
}
|
|
4557
4571
|
export {
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4572
|
+
Qr as $,
|
|
4573
|
+
cs as A,
|
|
4574
|
+
as as B,
|
|
4575
|
+
is as C,
|
|
4576
|
+
ss as D,
|
|
4577
|
+
os as E,
|
|
4578
|
+
Zi as F,
|
|
4579
|
+
Ot as G,
|
|
4580
|
+
rs as H,
|
|
4581
|
+
xs as I,
|
|
4568
4582
|
At as J,
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4583
|
+
Nt as K,
|
|
4584
|
+
Ss as L,
|
|
4585
|
+
Fr as M,
|
|
4586
|
+
ps as N,
|
|
4587
|
+
ds as O,
|
|
4588
|
+
vs as P,
|
|
4589
|
+
oi as Q,
|
|
4590
|
+
hs as R,
|
|
4577
4591
|
ee as S,
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4592
|
+
Ji as T,
|
|
4593
|
+
zi as U,
|
|
4594
|
+
ns as V,
|
|
4595
|
+
ur as W,
|
|
4596
|
+
tt as X,
|
|
4597
|
+
Fi as Y,
|
|
4598
|
+
Mi as Z,
|
|
4599
|
+
Yt as _,
|
|
4600
|
+
rt as a,
|
|
4601
|
+
Kr as a0,
|
|
4602
|
+
Wr as a1,
|
|
4603
|
+
Xi as a2,
|
|
4604
|
+
ys as a3,
|
|
4605
|
+
qi as a4,
|
|
4606
|
+
ls as a5,
|
|
4607
|
+
Wi as a6,
|
|
4608
|
+
Yi as a7,
|
|
4609
|
+
Gi as a8,
|
|
4610
|
+
Es as a9,
|
|
4611
|
+
Ki as aa,
|
|
4612
|
+
Qi as ab,
|
|
4613
|
+
us as ac,
|
|
4614
|
+
ji as ad,
|
|
4615
|
+
Bi as ae,
|
|
4616
|
+
Vi as af,
|
|
4617
|
+
ms as ag,
|
|
4618
|
+
Hi as ah,
|
|
4619
|
+
gs as ai,
|
|
4620
|
+
si as aj,
|
|
4621
|
+
Wt as ak,
|
|
4608
4622
|
C as al,
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4623
|
+
ai as am,
|
|
4624
|
+
ni as an,
|
|
4625
|
+
St as ao,
|
|
4626
|
+
ri as ap,
|
|
4627
|
+
ii as aq,
|
|
4628
|
+
_s as ar,
|
|
4629
|
+
$i as b,
|
|
4630
|
+
Pi as c,
|
|
4631
|
+
Gt as d,
|
|
4632
|
+
zt as e,
|
|
4633
|
+
at as f,
|
|
4634
|
+
Hr as g,
|
|
4635
|
+
bs as h,
|
|
4636
|
+
es as i,
|
|
4637
|
+
_t as j,
|
|
4638
|
+
jr as k,
|
|
4639
|
+
ts as l,
|
|
4640
|
+
$r as m,
|
|
4641
|
+
Vr as n,
|
|
4642
|
+
fs as o,
|
|
4643
|
+
tr as p,
|
|
4644
|
+
Ri as q,
|
|
4645
|
+
it as r,
|
|
4646
|
+
Li as s,
|
|
4647
|
+
Ns as t,
|
|
4648
|
+
Ui as u,
|
|
4649
|
+
Nr as v,
|
|
4650
|
+
Ts as w,
|
|
4651
|
+
Jr as x,
|
|
4652
|
+
Is as y,
|
|
4653
|
+
As as z
|
|
4640
4654
|
};
|
|
4641
|
-
//# sourceMappingURL=common-
|
|
4655
|
+
//# sourceMappingURL=common-C6gSg2Rq.js.map
|