@launchdarkly/o11y 1.4.1 → 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 +26 -0
- package/dist/LDObserve-o8Ro1UV8.js +160 -0
- package/dist/LDObserve-o8Ro1UV8.js.map +1 -0
- package/dist/LDObserve.d.ts +44 -0
- package/dist/LDObserve.js +1 -1
- package/dist/{common-D8kkCWo3.js → common-C6gSg2Rq.js} +704 -675
- package/dist/{common-D8kkCWo3.js.map → common-C6gSg2Rq.js.map} +1 -1
- package/dist/index.d.ts +134 -0
- package/dist/index.js +209 -207
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +115 -115
- package/dist/index.umd.js.map +1 -1
- package/dist/{observe-BCebRa17.js → observe-CL-A2YiL.js} +2429 -2204
- package/dist/observe-CL-A2YiL.js.map +1 -0
- package/dist/observe.d.ts +122 -0
- package/dist/observe.js +3 -3
- package/dist/{record-DG2IcHxO.js → record-BpTfYU5r.js} +489 -487
- package/dist/record-BpTfYU5r.js.map +1 -0
- package/dist/record.d.ts +418 -0
- package/dist/record.js +2 -2
- package/package.json +1 -1
- package/dist/LDObserve-BQr7RYVC.js +0 -130
- package/dist/LDObserve-BQr7RYVC.js.map +0 -1
- package/dist/observe-BCebRa17.js.map +0 -1
- package/dist/record-DG2IcHxO.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 xt(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 En(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
|
-
function
|
|
243
|
-
return new
|
|
242
|
+
function D(e, t, n) {
|
|
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 _n {
|
|
|
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 Ot {
|
|
|
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 Dt = {
|
|
|
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
|
-
function
|
|
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 vn(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 In {
|
|
|
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 In {
|
|
|
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) {
|
|
@@ -526,11 +526,11 @@ function j(e, t) {
|
|
|
526
526
|
}
|
|
527
527
|
return "U+" + n.toString(16).toUpperCase().padStart(4, "0");
|
|
528
528
|
}
|
|
529
|
-
function
|
|
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 xn(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
|
|
@@ -581,52 +581,52 @@ function xn(e, t) {
|
|
|
581
581
|
//
|
|
582
582
|
// Punctuator :: one of ! $ & ( ) ... : = @ [ ] { | }
|
|
583
583
|
case 33:
|
|
584
|
-
return
|
|
584
|
+
return N(e, l.BANG, i, i + 1);
|
|
585
585
|
case 36:
|
|
586
|
-
return
|
|
586
|
+
return N(e, l.DOLLAR, i, i + 1);
|
|
587
587
|
case 38:
|
|
588
|
-
return
|
|
588
|
+
return N(e, l.AMP, i, i + 1);
|
|
589
589
|
case 40:
|
|
590
|
-
return
|
|
590
|
+
return N(e, l.PAREN_L, i, i + 1);
|
|
591
591
|
case 41:
|
|
592
|
-
return
|
|
592
|
+
return N(e, l.PAREN_R, i, i + 1);
|
|
593
593
|
case 46:
|
|
594
594
|
if (n.charCodeAt(i + 1) === 46 && n.charCodeAt(i + 2) === 46)
|
|
595
|
-
return
|
|
595
|
+
return N(e, l.SPREAD, i, i + 3);
|
|
596
596
|
break;
|
|
597
597
|
case 58:
|
|
598
|
-
return
|
|
598
|
+
return N(e, l.COLON, i, i + 1);
|
|
599
599
|
case 61:
|
|
600
|
-
return
|
|
600
|
+
return N(e, l.EQUALS, i, i + 1);
|
|
601
601
|
case 64:
|
|
602
|
-
return
|
|
602
|
+
return N(e, l.AT, i, i + 1);
|
|
603
603
|
case 91:
|
|
604
|
-
return
|
|
604
|
+
return N(e, l.BRACKET_L, i, i + 1);
|
|
605
605
|
case 93:
|
|
606
|
-
return
|
|
606
|
+
return N(e, l.BRACKET_R, i, i + 1);
|
|
607
607
|
case 123:
|
|
608
|
-
return
|
|
608
|
+
return N(e, l.BRACE_L, i, i + 1);
|
|
609
609
|
case 124:
|
|
610
|
-
return
|
|
610
|
+
return N(e, l.PIPE, i, i + 1);
|
|
611
611
|
case 125:
|
|
612
|
-
return
|
|
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
|
|
621
|
-
throw
|
|
617
|
+
if (oe(s) || s === 45)
|
|
618
|
+
return Cn(e, i, s);
|
|
619
|
+
if (Lt(s))
|
|
620
|
+
return Mn(e, i);
|
|
621
|
+
throw D(
|
|
622
622
|
e.source,
|
|
623
623
|
i,
|
|
624
624
|
s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : Z(s) || Ae(n, i) ? `Unexpected character: ${j(e, i)}.` : `Invalid character: ${j(e, i)}.`
|
|
625
625
|
);
|
|
626
626
|
}
|
|
627
|
-
return
|
|
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; ) {
|
|
@@ -640,7 +640,7 @@ function On(e, t) {
|
|
|
640
640
|
else
|
|
641
641
|
break;
|
|
642
642
|
}
|
|
643
|
-
return
|
|
643
|
+
return N(
|
|
644
644
|
e,
|
|
645
645
|
l.COMMENT,
|
|
646
646
|
t,
|
|
@@ -648,12 +648,12 @@ 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),
|
|
656
|
-
throw
|
|
655
|
+
if (s = r.charCodeAt(++i), oe(s))
|
|
656
|
+
throw D(
|
|
657
657
|
e.source,
|
|
658
658
|
i,
|
|
659
659
|
`Invalid number, unexpected digit after 0: ${j(
|
|
@@ -662,9 +662,9 @@ function Dn(e, t, n) {
|
|
|
662
662
|
)}.`
|
|
663
663
|
);
|
|
664
664
|
} else
|
|
665
|
-
i =
|
|
666
|
-
if (s === 46 && (o = !0, s = r.charCodeAt(++i), i =
|
|
667
|
-
throw
|
|
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
|
+
throw D(
|
|
668
668
|
e.source,
|
|
669
669
|
i,
|
|
670
670
|
`Invalid number, expected digit but got: ${j(
|
|
@@ -672,7 +672,7 @@ function Dn(e, t, n) {
|
|
|
672
672
|
i
|
|
673
673
|
)}.`
|
|
674
674
|
);
|
|
675
|
-
return
|
|
675
|
+
return N(
|
|
676
676
|
e,
|
|
677
677
|
o ? l.FLOAT : l.INT,
|
|
678
678
|
t,
|
|
@@ -680,9 +680,9 @@ function Dn(e, t, n) {
|
|
|
680
680
|
r.slice(t, i)
|
|
681
681
|
);
|
|
682
682
|
}
|
|
683
|
-
function
|
|
684
|
-
if (!
|
|
685
|
-
throw
|
|
683
|
+
function Re(e, t, n) {
|
|
684
|
+
if (!oe(n))
|
|
685
|
+
throw D(
|
|
686
686
|
e.source,
|
|
687
687
|
t,
|
|
688
688
|
`Invalid number, expected digit but got: ${j(
|
|
@@ -692,20 +692,20 @@ 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; ) {
|
|
703
703
|
const a = n.charCodeAt(i);
|
|
704
704
|
if (a === 34)
|
|
705
|
-
return o += n.slice(s, i),
|
|
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
|
}
|
|
@@ -716,7 +716,7 @@ function wn(e, t) {
|
|
|
716
716
|
else if (Ae(n, i))
|
|
717
717
|
i += 2;
|
|
718
718
|
else
|
|
719
|
-
throw
|
|
719
|
+
throw D(
|
|
720
720
|
e.source,
|
|
721
721
|
i,
|
|
722
722
|
`Invalid character within String: ${j(
|
|
@@ -725,9 +725,9 @@ function wn(e, t) {
|
|
|
725
725
|
)}.`
|
|
726
726
|
);
|
|
727
727
|
}
|
|
728
|
-
throw
|
|
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,10 +740,10 @@ function Cn(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
|
-
throw
|
|
746
|
+
throw D(
|
|
747
747
|
e.source,
|
|
748
748
|
t,
|
|
749
749
|
`Invalid Unicode escape sequence: "${n.slice(
|
|
@@ -752,34 +752,34 @@ function Cn(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
|
|
768
768
|
};
|
|
769
769
|
}
|
|
770
|
-
throw
|
|
770
|
+
throw D(
|
|
771
771
|
e.source,
|
|
772
772
|
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:
|
|
@@ -824,7 +824,7 @@ function Rn(e, t) {
|
|
|
824
824
|
size: 2
|
|
825
825
|
};
|
|
826
826
|
}
|
|
827
|
-
throw
|
|
827
|
+
throw D(
|
|
828
828
|
e.source,
|
|
829
829
|
t,
|
|
830
830
|
`Invalid character escape sequence: "${n.slice(
|
|
@@ -833,7 +833,7 @@ function Rn(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 = [];
|
|
@@ -841,13 +841,13 @@ function Ln(e, t) {
|
|
|
841
841
|
const f = n.charCodeAt(s);
|
|
842
842
|
if (f === 34 && n.charCodeAt(s + 1) === 34 && n.charCodeAt(s + 2) === 34) {
|
|
843
843
|
a += n.slice(o, s), c.push(a);
|
|
844
|
-
const h =
|
|
844
|
+
const h = N(
|
|
845
845
|
e,
|
|
846
846
|
l.BLOCK_STRING,
|
|
847
847
|
t,
|
|
848
848
|
s + 3,
|
|
849
849
|
// Return a string of the lines joined with U+000A.
|
|
850
|
-
|
|
850
|
+
An(c).join(`
|
|
851
851
|
`)
|
|
852
852
|
);
|
|
853
853
|
return e.line += c.length - 1, e.lineStart = i, h;
|
|
@@ -865,7 +865,7 @@ function Ln(e, t) {
|
|
|
865
865
|
else if (Ae(n, s))
|
|
866
866
|
s += 2;
|
|
867
867
|
else
|
|
868
|
-
throw
|
|
868
|
+
throw D(
|
|
869
869
|
e.source,
|
|
870
870
|
s,
|
|
871
871
|
`Invalid character within String: ${j(
|
|
@@ -874,19 +874,19 @@ function Ln(e, t) {
|
|
|
874
874
|
)}.`
|
|
875
875
|
);
|
|
876
876
|
}
|
|
877
|
-
throw
|
|
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;
|
|
888
888
|
}
|
|
889
|
-
return
|
|
889
|
+
return N(
|
|
890
890
|
e,
|
|
891
891
|
l.NAME,
|
|
892
892
|
t,
|
|
@@ -894,8 +894,8 @@ function Pn(e, t) {
|
|
|
894
894
|
n.slice(t, i)
|
|
895
895
|
);
|
|
896
896
|
}
|
|
897
|
-
const
|
|
898
|
-
function
|
|
897
|
+
const $n = 10, Mt = 2;
|
|
898
|
+
function Ze(e) {
|
|
899
899
|
return Ne(e, []);
|
|
900
900
|
}
|
|
901
901
|
function Ne(e, t) {
|
|
@@ -905,45 +905,45 @@ function Ne(e, t) {
|
|
|
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
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 >
|
|
932
|
+
return n.length === 0 ? "{}" : t.length > Mt ? "[" + qn(e) + "]" : "{ " + n.map(
|
|
933
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
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 Vn(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", qn = (
|
|
|
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 Pt {
|
|
|
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;
|
|
@@ -1092,7 +1092,7 @@ class Gn {
|
|
|
1092
1092
|
return this.parseDirectiveDefinition();
|
|
1093
1093
|
}
|
|
1094
1094
|
if (t)
|
|
1095
|
-
throw
|
|
1095
|
+
throw D(
|
|
1096
1096
|
this._lexer.source,
|
|
1097
1097
|
this._lexer.token.start,
|
|
1098
1098
|
"Unexpected description, descriptions are supported only on type definitions."
|
|
@@ -1366,7 +1366,7 @@ class Gn {
|
|
|
1366
1366
|
if (t)
|
|
1367
1367
|
if (this.expectToken(l.DOLLAR), this._lexer.token.kind === l.NAME) {
|
|
1368
1368
|
const r = this._lexer.token.value;
|
|
1369
|
-
throw
|
|
1369
|
+
throw D(
|
|
1370
1370
|
this._lexer.source,
|
|
1371
1371
|
n.start,
|
|
1372
1372
|
`Unexpected variable "$${r}" in constant value.`
|
|
@@ -1713,10 +1713,10 @@ class Gn {
|
|
|
1713
1713
|
*/
|
|
1714
1714
|
parseEnumValueName() {
|
|
1715
1715
|
if (this._lexer.token.value === "true" || this._lexer.token.value === "false" || this._lexer.token.value === "null")
|
|
1716
|
-
throw
|
|
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 Gn {
|
|
|
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 Gn {
|
|
|
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
|
|
@@ -2006,10 +2006,10 @@ class Gn {
|
|
|
2006
2006
|
const n = this._lexer.token;
|
|
2007
2007
|
if (n.kind === t)
|
|
2008
2008
|
return this.advanceLexer(), n;
|
|
2009
|
-
throw
|
|
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
|
/**
|
|
@@ -2028,10 +2028,10 @@ class Gn {
|
|
|
2028
2028
|
if (n.kind === l.NAME && n.value === t)
|
|
2029
2029
|
this.advanceLexer();
|
|
2030
2030
|
else
|
|
2031
|
-
throw
|
|
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
|
/**
|
|
@@ -2047,10 +2047,10 @@ class Gn {
|
|
|
2047
2047
|
*/
|
|
2048
2048
|
unexpected(t) {
|
|
2049
2049
|
const n = t != null ? t : this._lexer.token;
|
|
2050
|
-
return
|
|
2050
|
+
return D(
|
|
2051
2051
|
this._lexer.source,
|
|
2052
2052
|
n.start,
|
|
2053
|
-
`Unexpected ${
|
|
2053
|
+
`Unexpected ${he(n)}.`
|
|
2054
2054
|
);
|
|
2055
2055
|
}
|
|
2056
2056
|
/**
|
|
@@ -2110,28 +2110,28 @@ class Gn {
|
|
|
2110
2110
|
advanceLexer() {
|
|
2111
2111
|
const { maxTokens: t } = this._options, n = this._lexer.advance();
|
|
2112
2112
|
if (n.kind !== l.EOF && (++this._tokenCounter, t !== void 0 && this._tokenCounter > t))
|
|
2113
|
-
throw
|
|
2113
|
+
throw D(
|
|
2114
2114
|
this._lexer.source,
|
|
2115
2115
|
n.start,
|
|
2116
2116
|
`Document contains more that ${t} tokens. Parsing aborted.`
|
|
2117
2117
|
);
|
|
2118
2118
|
}
|
|
2119
2119
|
}
|
|
2120
|
-
function
|
|
2120
|
+
function he(e) {
|
|
2121
2121
|
const t = e.value;
|
|
2122
|
-
return
|
|
2123
|
-
}
|
|
2124
|
-
function Mt(e) {
|
|
2125
|
-
return bn(e) ? `"${e}"` : e;
|
|
2122
|
+
return Bt(e.kind) + (t != null ? ` "${t}"` : "");
|
|
2126
2123
|
}
|
|
2127
|
-
function
|
|
2128
|
-
return `"${e
|
|
2124
|
+
function Bt(e) {
|
|
2125
|
+
return Dn(e) ? `"${e}"` : e;
|
|
2129
2126
|
}
|
|
2130
|
-
const zn = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
|
|
2131
2127
|
function Jn(e) {
|
|
2132
|
-
return
|
|
2128
|
+
return `"${e.replace(Xn, Qn)}"`;
|
|
2133
2129
|
}
|
|
2134
|
-
const Xn = [
|
|
2130
|
+
const Xn = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
|
|
2131
|
+
function Qn(e) {
|
|
2132
|
+
return Kn[e.charCodeAt(0)];
|
|
2133
|
+
}
|
|
2134
|
+
const Kn = [
|
|
2135
2135
|
"\\u0000",
|
|
2136
2136
|
"\\u0001",
|
|
2137
2137
|
"\\u0002",
|
|
@@ -2297,11 +2297,11 @@ const Xn = [
|
|
|
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 Kn(e, t, n = Dt) {
|
|
|
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 Kn(e, t, n = Dt) {
|
|
|
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 Kn(e, t, n = Dt) {
|
|
|
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 Kn(e, t, n = Dt) {
|
|
|
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 Wn(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 er = 80, tr = {
|
|
|
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 er = 80, tr = {
|
|
|
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 er = 80, tr = {
|
|
|
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 er = 80, tr = {
|
|
|
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("="),
|
|
2882
|
-
d.append(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
|
|
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
|
-
var
|
|
2929
|
-
if (
|
|
2928
|
+
var O = new U(u, d);
|
|
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 Oe = "response" in
|
|
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
2943
|
T(new M(Oe, te));
|
|
2944
|
-
},
|
|
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
|
-
}),
|
|
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), cr = /* @__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 Oi {
|
|
|
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 Oi {
|
|
|
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 Oi {
|
|
|
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
|
|
3152
|
-
return
|
|
3151
|
+
function gr(e) {
|
|
3152
|
+
return jt(e.source.body.substring(e.start, e.end));
|
|
3153
3153
|
}
|
|
3154
|
-
function
|
|
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 gr(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,37 +3194,37 @@ 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 Er() {
|
|
3200
|
-
Ee.clear(), Ye.clear();
|
|
3201
|
-
}
|
|
3202
|
-
function _r() {
|
|
3203
|
-
$t = !1;
|
|
3197
|
+
}), _r(r);
|
|
3204
3198
|
}
|
|
3205
3199
|
function Tr() {
|
|
3206
|
-
|
|
3200
|
+
_e.clear(), ze.clear();
|
|
3207
3201
|
}
|
|
3208
3202
|
function Sr() {
|
|
3209
|
-
|
|
3203
|
+
Vt = !1;
|
|
3204
|
+
}
|
|
3205
|
+
function vr() {
|
|
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
|
|
3226
3226
|
}
|
|
3227
|
-
`,
|
|
3227
|
+
`, Ar = k`
|
|
3228
3228
|
mutation PushPayload(
|
|
3229
3229
|
$session_secure_id: String!
|
|
3230
3230
|
$payload_id: ID!
|
|
@@ -3250,7 +3250,7 @@ const Bt = 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 Bt = 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 Bt = 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 Bt = 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 Bt = 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 Bt = 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,14 +3445,14 @@ const Bt = 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(
|
|
3454
3454
|
(i) => e.request(
|
|
3455
|
-
|
|
3455
|
+
Ar,
|
|
3456
3456
|
n,
|
|
3457
3457
|
E(E({}, r), i)
|
|
3458
3458
|
),
|
|
@@ -3464,7 +3464,7 @@ function wi(e, t = Cr) {
|
|
|
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 wi(e, t = Cr) {
|
|
|
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 wi(e, t = Cr) {
|
|
|
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 wi(e, t = Cr) {
|
|
|
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 wi(e, t = Cr) {
|
|
|
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 wi(e, t = Cr) {
|
|
|
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 wi(e, t = Cr) {
|
|
|
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 wi(e, t = Cr) {
|
|
|
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 wi(e, t = Cr) {
|
|
|
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 Ci(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 kr(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 ki(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 ki(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 Ri() {
|
|
|
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 Pi = "exception.message", Fi = "exception.stacktrace", Mi = "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 Pr = {
|
|
|
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 Mr {
|
|
|
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 Mr(), W = new $r(), Ie = () => {
|
|
|
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 Mr(), W = new $r(), Ie = () => {
|
|
|
3821
3821
|
), e = K;
|
|
3822
3822
|
}
|
|
3823
3823
|
return e;
|
|
3824
|
-
},
|
|
3825
|
-
|
|
3826
|
-
},
|
|
3827
|
-
|
|
3828
|
-
},
|
|
3829
|
-
|
|
3830
|
-
},
|
|
3824
|
+
}, Vr = (e) => {
|
|
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 Mr(), W = new $r(), Ie = () => {
|
|
|
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 Mr(), W = new $r(), Ie = () => {
|
|
|
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 Mr(), W = new $r(), Ie = () => {
|
|
|
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,41 +3891,53 @@ const K = new Mr(), W = new $r(), Ie = () => {
|
|
|
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
|
-
|
|
3916
|
-
|
|
3913
|
+
it(ae(e));
|
|
3914
|
+
}, Gr = (e) => {
|
|
3915
|
+
const t = e != null ? e : st();
|
|
3916
|
+
if (t)
|
|
3917
|
+
try {
|
|
3918
|
+
return ot(t);
|
|
3919
|
+
} catch (n) {
|
|
3920
|
+
return;
|
|
3921
|
+
}
|
|
3922
|
+
};
|
|
3923
|
+
let Xt;
|
|
3924
|
+
const us = () => Xt, Yr = (e) => {
|
|
3925
|
+
Xt = e;
|
|
3926
|
+
}, zr = 10 * 1e3;
|
|
3927
|
+
let Tt = 0;
|
|
3928
|
+
const ls = () => {
|
|
3917
3929
|
const e = Date.now();
|
|
3918
|
-
if (!(e -
|
|
3919
|
-
|
|
3930
|
+
if (!(e - Tt < zr)) {
|
|
3931
|
+
Tt = e;
|
|
3920
3932
|
try {
|
|
3921
|
-
const t = Yt(
|
|
3933
|
+
const t = ot(Yt());
|
|
3922
3934
|
if (!(t != null && t.sessionSecureID))
|
|
3923
3935
|
return;
|
|
3924
|
-
if (
|
|
3925
|
-
|
|
3936
|
+
if (Jt(t, e)) {
|
|
3937
|
+
it(ae(t.sessionSecureID));
|
|
3926
3938
|
return;
|
|
3927
3939
|
}
|
|
3928
|
-
|
|
3940
|
+
at(B(E({}, t), { lastPushTime: e }));
|
|
3929
3941
|
} catch (t) {
|
|
3930
3942
|
$(
|
|
3931
3943
|
"highlightSession",
|
|
@@ -3936,26 +3948,26 @@ const is = () => {
|
|
|
3936
3948
|
);
|
|
3937
3949
|
}
|
|
3938
3950
|
}
|
|
3939
|
-
},
|
|
3951
|
+
}, at = function(e) {
|
|
3940
3952
|
if (!(e != null && e.sessionSecureID)) return;
|
|
3941
3953
|
const t = e.sessionSecureID;
|
|
3942
|
-
|
|
3943
|
-
const n =
|
|
3944
|
-
|
|
3945
|
-
},
|
|
3954
|
+
qr(t);
|
|
3955
|
+
const n = ae(t);
|
|
3956
|
+
Gt(n, JSON.stringify(e)), Xr(n);
|
|
3957
|
+
}, Jr = function() {
|
|
3946
3958
|
const e = W.getItem(
|
|
3947
3959
|
ee.SESSION_ID
|
|
3948
3960
|
);
|
|
3949
|
-
|
|
3950
|
-
const t =
|
|
3961
|
+
zt(e);
|
|
3962
|
+
const t = ae(e), n = W.getItem(t);
|
|
3951
3963
|
try {
|
|
3952
|
-
|
|
3964
|
+
at(JSON.parse(n));
|
|
3953
3965
|
} catch (r) {
|
|
3954
3966
|
}
|
|
3955
3967
|
};
|
|
3956
|
-
function
|
|
3968
|
+
function Xr(e) {
|
|
3957
3969
|
var i;
|
|
3958
|
-
const t = `${ee.SESSION_DATA}_`, n = /* @__PURE__ */ new Set(), r =
|
|
3970
|
+
const t = `${ee.SESSION_DATA}_`, n = /* @__PURE__ */ new Set(), r = be();
|
|
3959
3971
|
for (let s = r.length - 1; s >= 0; s--) {
|
|
3960
3972
|
const o = r.key(s);
|
|
3961
3973
|
o && o.startsWith(t) && o !== e && n.add(o);
|
|
@@ -3965,8 +3977,8 @@ function Gr(e) {
|
|
|
3965
3977
|
for (const s of n) {
|
|
3966
3978
|
let o = !0;
|
|
3967
3979
|
try {
|
|
3968
|
-
const a =
|
|
3969
|
-
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;
|
|
3970
3982
|
} catch (a) {
|
|
3971
3983
|
}
|
|
3972
3984
|
o && ($(
|
|
@@ -3974,27 +3986,27 @@ function Gr(e) {
|
|
|
3974
3986
|
"pruneSessionData",
|
|
3975
3987
|
"debug",
|
|
3976
3988
|
`removing session data for stale key ${s}`
|
|
3977
|
-
),
|
|
3989
|
+
), it(s));
|
|
3978
3990
|
}
|
|
3979
3991
|
}
|
|
3980
|
-
var
|
|
3981
|
-
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) => {
|
|
3982
3994
|
var n;
|
|
3983
3995
|
return ((n = e.response.errors) == null ? void 0 : n.find(
|
|
3984
|
-
(r) =>
|
|
3996
|
+
(r) => Zr.includes(r.message)
|
|
3985
3997
|
)) === void 0;
|
|
3986
|
-
},
|
|
3998
|
+
}, fs = () => {
|
|
3987
3999
|
const e = (t, n, r, i, s = 0) => V(void 0, null, function* () {
|
|
3988
4000
|
try {
|
|
3989
4001
|
return yield t();
|
|
3990
4002
|
} catch (o) {
|
|
3991
|
-
if (o instanceof Q && !
|
|
4003
|
+
if (o instanceof Q && !ei(o))
|
|
3992
4004
|
throw o;
|
|
3993
|
-
if (s <
|
|
4005
|
+
if (s < Qr)
|
|
3994
4006
|
return yield new Promise(
|
|
3995
4007
|
(a) => setTimeout(
|
|
3996
4008
|
a,
|
|
3997
|
-
|
|
4009
|
+
Kr + Wr * Math.pow(2, s)
|
|
3998
4010
|
)
|
|
3999
4011
|
), yield e(
|
|
4000
4012
|
t,
|
|
@@ -4003,14 +4015,14 @@ const Yr = 3, zr = 1e3, Jr = 500, Xr = [Jt.BillingQuotaExceeded.toString()], Qr
|
|
|
4003
4015
|
i,
|
|
4004
4016
|
s + 1
|
|
4005
4017
|
);
|
|
4006
|
-
throw
|
|
4018
|
+
throw pn(
|
|
4007
4019
|
"error",
|
|
4008
4020
|
`highlight.io: data request failed after ${s} retries`
|
|
4009
4021
|
), o;
|
|
4010
4022
|
}
|
|
4011
4023
|
});
|
|
4012
4024
|
return e;
|
|
4013
|
-
}, 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 = {
|
|
4014
4026
|
kind: `${C}.result.reason.kind`,
|
|
4015
4027
|
errorKind: `${C}.result.reason.errorKind`,
|
|
4016
4028
|
ruleIndex: `${C}.result.reason.ruleIndex`,
|
|
@@ -4018,18 +4030,18 @@ const Yr = 3, zr = 1e3, Jr = 500, Xr = [Jt.BillingQuotaExceeded.toString()], Qr
|
|
|
4018
4030
|
prerequisiteKey: `${C}.result.reason.prerequisiteKey`,
|
|
4019
4031
|
inExperiment: `${C}.result.reason.inExperiment`,
|
|
4020
4032
|
bigSegmentsStatus: `${C}.result.reason.bigSegmentsStatus`
|
|
4021
|
-
},
|
|
4022
|
-
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) {
|
|
4023
4035
|
return e.includes("%") || e.includes(":") ? e.replace(/%/g, "%25").replace(/:/g, "%3A") : e;
|
|
4024
4036
|
}
|
|
4025
|
-
function
|
|
4037
|
+
function Zt(e) {
|
|
4026
4038
|
return e.kind === "multi";
|
|
4027
4039
|
}
|
|
4028
|
-
function
|
|
4029
|
-
return
|
|
4040
|
+
function At(e) {
|
|
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;
|
|
4030
4042
|
}
|
|
4031
|
-
function
|
|
4032
|
-
return
|
|
4043
|
+
function Nt(e) {
|
|
4044
|
+
return Zt(e) ? Object.keys(e).sort().filter((t) => t !== "kind").map((t) => ({
|
|
4033
4045
|
[t]: e[t].key
|
|
4034
4046
|
})).reduce((t, n) => E(E({}, t), n), {}) : "kind" in e ? {
|
|
4035
4047
|
[e.kind]: e.key
|
|
@@ -4037,42 +4049,42 @@ function vt(e) {
|
|
|
4037
4049
|
user: e.key
|
|
4038
4050
|
};
|
|
4039
4051
|
}
|
|
4040
|
-
function
|
|
4052
|
+
function Ts(e, t, n) {
|
|
4041
4053
|
t.addHook({
|
|
4042
4054
|
getMetadata: () => ({
|
|
4043
4055
|
name: "highlight.run"
|
|
4044
4056
|
}),
|
|
4045
4057
|
afterIdentify: (r, i, s) => {
|
|
4046
4058
|
var a, c;
|
|
4047
|
-
const o = B(E({},
|
|
4048
|
-
key: (c = (a = n == null ? void 0 : n.contextFriendlyName) == null ? void 0 : a.call(n, r.context)) != null ? c :
|
|
4059
|
+
const o = B(E({}, Nt(r.context)), {
|
|
4060
|
+
key: (c = (a = n == null ? void 0 : n.contextFriendlyName) == null ? void 0 : a.call(n, r.context)) != null ? c : At(r.context)
|
|
4049
4061
|
});
|
|
4050
4062
|
return e.log("LD.identify", "INFO", o), s.status === "completed" && e.identify(o.key, o, "LaunchDarkly"), i;
|
|
4051
4063
|
},
|
|
4052
4064
|
afterEvaluation: (r, i, s) => {
|
|
4053
4065
|
const o = E({
|
|
4054
|
-
[
|
|
4055
|
-
[
|
|
4056
|
-
[
|
|
4066
|
+
[oi]: "LaunchDarkly",
|
|
4067
|
+
[ni]: r.flagKey,
|
|
4068
|
+
[si]: JSON.stringify(s.value)
|
|
4057
4069
|
}, s.variationIndex !== void 0 && s.variationIndex !== null ? {
|
|
4058
|
-
[
|
|
4070
|
+
[ai]: s.variationIndex
|
|
4059
4071
|
} : {});
|
|
4060
4072
|
if (s.reason)
|
|
4061
|
-
for (const a in
|
|
4073
|
+
for (const a in St) {
|
|
4062
4074
|
const c = a, f = s.reason[c];
|
|
4063
|
-
f != null && (o[
|
|
4075
|
+
f != null && (o[St[c]] = f);
|
|
4064
4076
|
}
|
|
4065
|
-
return r.context && (o[
|
|
4066
|
-
|
|
4067
|
-
), o[
|
|
4077
|
+
return r.context && (o[ri] = JSON.stringify(
|
|
4078
|
+
Nt(r.context)
|
|
4079
|
+
), o[ii] = At(
|
|
4068
4080
|
r.context
|
|
4069
|
-
)), e.startSpan(
|
|
4070
|
-
a && a.addEvent(
|
|
4081
|
+
)), e.startSpan(Wt, (a) => {
|
|
4082
|
+
a && a.addEvent(ti, o);
|
|
4071
4083
|
}), i;
|
|
4072
4084
|
}
|
|
4073
4085
|
});
|
|
4074
4086
|
}
|
|
4075
|
-
class
|
|
4087
|
+
class li {
|
|
4076
4088
|
constructor(t, n) {
|
|
4077
4089
|
Y(this, "client");
|
|
4078
4090
|
Y(this, "metadata");
|
|
@@ -4082,7 +4094,7 @@ class oi {
|
|
|
4082
4094
|
return [];
|
|
4083
4095
|
}
|
|
4084
4096
|
init(t) {
|
|
4085
|
-
this.client.track(
|
|
4097
|
+
this.client.track(ui, {
|
|
4086
4098
|
sessionID: t
|
|
4087
4099
|
});
|
|
4088
4100
|
}
|
|
@@ -4095,18 +4107,18 @@ class oi {
|
|
|
4095
4107
|
track(t, n) {
|
|
4096
4108
|
const r = n.event;
|
|
4097
4109
|
this.client.track(
|
|
4098
|
-
r ? `${
|
|
4110
|
+
r ? `${vt}:${r}` : vt,
|
|
4099
4111
|
B(E({}, n), {
|
|
4100
4112
|
sessionID: t
|
|
4101
4113
|
})
|
|
4102
4114
|
);
|
|
4103
4115
|
}
|
|
4104
4116
|
}
|
|
4105
|
-
class
|
|
4117
|
+
class Ss extends mn {
|
|
4106
4118
|
constructor(n, r) {
|
|
4107
4119
|
super();
|
|
4108
4120
|
Y(this, "client");
|
|
4109
|
-
this.client = new
|
|
4121
|
+
this.client = new li(n, r);
|
|
4110
4122
|
}
|
|
4111
4123
|
getHooks(n) {
|
|
4112
4124
|
return [
|
|
@@ -4139,37 +4151,51 @@ class ms extends dn {
|
|
|
4139
4151
|
return this._bufferCall("track", [n, r]);
|
|
4140
4152
|
}
|
|
4141
4153
|
}
|
|
4142
|
-
const
|
|
4143
|
-
e
|
|
4144
|
-
const t =
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
history.
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
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 = () => {
|
|
4155
4169
|
window.dispatchEvent(new Event("locationchange"));
|
|
4156
4170
|
};
|
|
4157
|
-
window.addEventListener("popstate",
|
|
4158
|
-
|
|
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() {
|
|
4159
4183
|
e(window.location.href);
|
|
4160
4184
|
};
|
|
4161
|
-
|
|
4162
|
-
|
|
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]));
|
|
4163
4189
|
};
|
|
4164
|
-
},
|
|
4165
|
-
version:
|
|
4166
|
-
},
|
|
4167
|
-
let L,
|
|
4168
|
-
function
|
|
4169
|
-
return e.nodeType, Node.ELEMENT_NODE,
|
|
4170
|
-
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);
|
|
4171
4197
|
}
|
|
4172
|
-
function
|
|
4198
|
+
function Ns(e) {
|
|
4173
4199
|
if (e.id.length)
|
|
4174
4200
|
return `#${e.id}`;
|
|
4175
4201
|
if (e.classList.length) {
|
|
@@ -4180,7 +4206,7 @@ function _s(e) {
|
|
|
4180
4206
|
}
|
|
4181
4207
|
return e.nodeName.toLowerCase();
|
|
4182
4208
|
}
|
|
4183
|
-
function
|
|
4209
|
+
function pi(e, t) {
|
|
4184
4210
|
if (e.tagName.toLowerCase() === "html")
|
|
4185
4211
|
return "html";
|
|
4186
4212
|
try {
|
|
@@ -4196,14 +4222,14 @@ function ui(e, t) {
|
|
|
4196
4222
|
maxNumberOfTries: 1e3,
|
|
4197
4223
|
optimized: !0
|
|
4198
4224
|
};
|
|
4199
|
-
L = E(E({}, n), t),
|
|
4200
|
-
let r =
|
|
4225
|
+
L = E(E({}, n), t), ct = mi(L.root, n);
|
|
4226
|
+
let r = Me(
|
|
4201
4227
|
e,
|
|
4202
4228
|
0,
|
|
4203
|
-
() =>
|
|
4229
|
+
() => Me(
|
|
4204
4230
|
e,
|
|
4205
4231
|
1,
|
|
4206
|
-
() =>
|
|
4232
|
+
() => Me(
|
|
4207
4233
|
e,
|
|
4208
4234
|
2
|
|
4209
4235
|
/* One */
|
|
@@ -4212,54 +4238,54 @@ function ui(e, t) {
|
|
|
4212
4238
|
);
|
|
4213
4239
|
if (r) {
|
|
4214
4240
|
if (L.optimized) {
|
|
4215
|
-
const i =
|
|
4241
|
+
const i = nn(rn(r, e));
|
|
4216
4242
|
i.length > 0 && (r = i[0]);
|
|
4217
4243
|
}
|
|
4218
|
-
return
|
|
4244
|
+
return xe(r);
|
|
4219
4245
|
} else
|
|
4220
|
-
return
|
|
4246
|
+
return Ke(e);
|
|
4221
4247
|
} catch (n) {
|
|
4222
|
-
return
|
|
4248
|
+
return Ke(e);
|
|
4223
4249
|
}
|
|
4224
4250
|
}
|
|
4225
|
-
function
|
|
4251
|
+
function mi(e, t) {
|
|
4226
4252
|
return e.nodeType === Node.DOCUMENT_NODE ? e : e === t.root ? e.ownerDocument : e;
|
|
4227
4253
|
}
|
|
4228
|
-
function
|
|
4254
|
+
function Me(e, t, n) {
|
|
4229
4255
|
let r = null, i = [], s = e, o = 0;
|
|
4230
4256
|
for (; s && s !== L.root.parentElement; ) {
|
|
4231
|
-
let a =
|
|
4232
|
-
const c =
|
|
4257
|
+
let a = me(gi(s)) || me(...yi(s)) || me(...Ei(s)) || me(_i(s)) || [Ti()];
|
|
4258
|
+
const c = Si(s);
|
|
4233
4259
|
if (t === 0)
|
|
4234
4260
|
c && (a = a.concat(
|
|
4235
|
-
a.filter(
|
|
4261
|
+
a.filter(Ue).map((f) => $e(f, c))
|
|
4236
4262
|
));
|
|
4237
4263
|
else if (t === 1)
|
|
4238
4264
|
a = a.slice(0, 1), c && (a = a.concat(
|
|
4239
|
-
a.filter(
|
|
4265
|
+
a.filter(Ue).map((f) => $e(f, c))
|
|
4240
4266
|
));
|
|
4241
4267
|
else if (t === 2) {
|
|
4242
4268
|
const [f] = a = a.slice(0, 1);
|
|
4243
|
-
c &&
|
|
4269
|
+
c && Ue(f) && (a = [$e(f, c)]);
|
|
4244
4270
|
}
|
|
4245
4271
|
for (let f of a)
|
|
4246
4272
|
f.level = o;
|
|
4247
|
-
if (i.push(a), i.length >= L.seedMinLength && (r =
|
|
4273
|
+
if (i.push(a), i.length >= L.seedMinLength && (r = bt(i, n), r))
|
|
4248
4274
|
break;
|
|
4249
4275
|
s = s.parentElement, o++;
|
|
4250
4276
|
}
|
|
4251
|
-
return r || (r =
|
|
4277
|
+
return r || (r = bt(i, n)), r;
|
|
4252
4278
|
}
|
|
4253
|
-
function
|
|
4254
|
-
const n =
|
|
4279
|
+
function bt(e, t) {
|
|
4280
|
+
const n = nn(tn(e));
|
|
4255
4281
|
if (n.length > L.threshold)
|
|
4256
4282
|
return t ? t() : null;
|
|
4257
4283
|
for (let r of n)
|
|
4258
|
-
if (
|
|
4284
|
+
if (en(r))
|
|
4259
4285
|
return r;
|
|
4260
4286
|
return null;
|
|
4261
4287
|
}
|
|
4262
|
-
function
|
|
4288
|
+
function xe(e) {
|
|
4263
4289
|
let t = e[0], n = t.name;
|
|
4264
4290
|
for (let r = 1; r < e.length; r++) {
|
|
4265
4291
|
const i = e[r].level || 0;
|
|
@@ -4267,11 +4293,11 @@ function be(e) {
|
|
|
4267
4293
|
}
|
|
4268
4294
|
return n;
|
|
4269
4295
|
}
|
|
4270
|
-
function
|
|
4296
|
+
function xt(e) {
|
|
4271
4297
|
return e.map((t) => t.penalty).reduce((t, n) => t + n, 0);
|
|
4272
4298
|
}
|
|
4273
|
-
function
|
|
4274
|
-
switch (
|
|
4299
|
+
function en(e) {
|
|
4300
|
+
switch (ct.querySelectorAll(xe(e)).length) {
|
|
4275
4301
|
case 0:
|
|
4276
4302
|
return !0;
|
|
4277
4303
|
case 1:
|
|
@@ -4280,45 +4306,45 @@ function Wt(e) {
|
|
|
4280
4306
|
return !1;
|
|
4281
4307
|
}
|
|
4282
4308
|
}
|
|
4283
|
-
function
|
|
4309
|
+
function gi(e) {
|
|
4284
4310
|
const t = e.getAttribute("id");
|
|
4285
4311
|
return t && L.idName(t) ? {
|
|
4286
|
-
name: "#" +
|
|
4312
|
+
name: "#" + Ie(t, { isIdentifier: !0 }),
|
|
4287
4313
|
penalty: 0
|
|
4288
4314
|
} : null;
|
|
4289
4315
|
}
|
|
4290
|
-
function
|
|
4316
|
+
function yi(e) {
|
|
4291
4317
|
return Array.from(e.attributes).filter(
|
|
4292
4318
|
(n) => L.attr(n.name, n.value)
|
|
4293
4319
|
).map(
|
|
4294
4320
|
(n) => ({
|
|
4295
|
-
name: "[" +
|
|
4321
|
+
name: "[" + Ie(n.name, { isIdentifier: !0 }) + '="' + Ie(n.value) + '"]',
|
|
4296
4322
|
penalty: 0.5
|
|
4297
4323
|
})
|
|
4298
4324
|
);
|
|
4299
4325
|
}
|
|
4300
|
-
function
|
|
4326
|
+
function Ei(e) {
|
|
4301
4327
|
return Array.from(e.classList).filter(L.className).map(
|
|
4302
4328
|
(n) => ({
|
|
4303
|
-
name: "." +
|
|
4329
|
+
name: "." + Ie(n, { isIdentifier: !0 }),
|
|
4304
4330
|
penalty: 1
|
|
4305
4331
|
})
|
|
4306
4332
|
);
|
|
4307
4333
|
}
|
|
4308
|
-
function
|
|
4334
|
+
function _i(e) {
|
|
4309
4335
|
const t = e.tagName.toLowerCase();
|
|
4310
4336
|
return L.tagName(t) ? {
|
|
4311
4337
|
name: t,
|
|
4312
4338
|
penalty: 2
|
|
4313
4339
|
} : null;
|
|
4314
4340
|
}
|
|
4315
|
-
function
|
|
4341
|
+
function Ti() {
|
|
4316
4342
|
return {
|
|
4317
4343
|
name: "*",
|
|
4318
4344
|
penalty: 3
|
|
4319
4345
|
};
|
|
4320
4346
|
}
|
|
4321
|
-
function
|
|
4347
|
+
function Si(e) {
|
|
4322
4348
|
const t = e.parentNode;
|
|
4323
4349
|
if (!t)
|
|
4324
4350
|
return null;
|
|
@@ -4330,33 +4356,33 @@ function gi(e) {
|
|
|
4330
4356
|
n = n.nextSibling;
|
|
4331
4357
|
return r;
|
|
4332
4358
|
}
|
|
4333
|
-
function
|
|
4359
|
+
function $e(e, t) {
|
|
4334
4360
|
return {
|
|
4335
4361
|
name: e.name + `:nth-child(${t})`,
|
|
4336
4362
|
penalty: e.penalty + 1
|
|
4337
4363
|
};
|
|
4338
4364
|
}
|
|
4339
|
-
function
|
|
4365
|
+
function Ue(e) {
|
|
4340
4366
|
return e.name !== "html" && !e.name.startsWith("#");
|
|
4341
4367
|
}
|
|
4342
|
-
function
|
|
4343
|
-
const t = e.filter(
|
|
4368
|
+
function me(...e) {
|
|
4369
|
+
const t = e.filter(vi);
|
|
4344
4370
|
return t.length > 0 ? t : null;
|
|
4345
4371
|
}
|
|
4346
|
-
function
|
|
4372
|
+
function vi(e) {
|
|
4347
4373
|
return e != null;
|
|
4348
4374
|
}
|
|
4349
|
-
function*
|
|
4375
|
+
function* tn(e, t = []) {
|
|
4350
4376
|
if (e.length > 0)
|
|
4351
4377
|
for (let n of e[0])
|
|
4352
|
-
yield*
|
|
4378
|
+
yield* ke(tn(e.slice(1, e.length), t.concat(n)));
|
|
4353
4379
|
else
|
|
4354
4380
|
yield t;
|
|
4355
4381
|
}
|
|
4356
|
-
function
|
|
4357
|
-
return Array.from(e).sort((t, n) =>
|
|
4382
|
+
function nn(e) {
|
|
4383
|
+
return Array.from(e).sort((t, n) => xt(t) - xt(n));
|
|
4358
4384
|
}
|
|
4359
|
-
function*
|
|
4385
|
+
function* rn(e, t, n = {
|
|
4360
4386
|
counter: 0,
|
|
4361
4387
|
visited: /* @__PURE__ */ new Map()
|
|
4362
4388
|
}) {
|
|
@@ -4367,23 +4393,23 @@ function* tn(e, t, n = {
|
|
|
4367
4393
|
n.counter += 1;
|
|
4368
4394
|
const i = [...e];
|
|
4369
4395
|
i.splice(r, 1);
|
|
4370
|
-
const s =
|
|
4396
|
+
const s = xe(i);
|
|
4371
4397
|
if (n.visited.has(s))
|
|
4372
4398
|
return;
|
|
4373
|
-
|
|
4399
|
+
en(i) && Ii(i, t) && (yield i, n.visited.set(s, !0), yield* ke(rn(i, t, n)));
|
|
4374
4400
|
}
|
|
4375
4401
|
}
|
|
4376
|
-
function
|
|
4377
|
-
return
|
|
4402
|
+
function Ii(e, t) {
|
|
4403
|
+
return ct.querySelector(xe(e)) === t;
|
|
4378
4404
|
}
|
|
4379
|
-
const
|
|
4405
|
+
const Ai = /[ -,\.\/:-@\[-\^`\{-~]/, Ni = /[ -,\.\/:-@\[\]\^`\{-~]/, bi = /(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g, xi = {
|
|
4380
4406
|
escapeEverything: !1,
|
|
4381
4407
|
isIdentifier: !1,
|
|
4382
4408
|
quotes: "single",
|
|
4383
4409
|
wrap: !1
|
|
4384
4410
|
};
|
|
4385
|
-
function
|
|
4386
|
-
const n = E(E({},
|
|
4411
|
+
function Ie(e, t = {}) {
|
|
4412
|
+
const n = E(E({}, xi), t);
|
|
4387
4413
|
n.quotes != "single" && n.quotes != "double" && (n.quotes = "single");
|
|
4388
4414
|
const r = n.quotes == "double" ? '"' : "'", i = n.isIdentifier, s = e.charAt(0);
|
|
4389
4415
|
let o = "", a = 0;
|
|
@@ -4398,18 +4424,18 @@ function ve(e, t = {}) {
|
|
|
4398
4424
|
}
|
|
4399
4425
|
m = "\\" + h.toString(16).toUpperCase() + " ";
|
|
4400
4426
|
} else
|
|
4401
|
-
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;
|
|
4402
4428
|
o += m;
|
|
4403
4429
|
}
|
|
4404
|
-
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) {
|
|
4405
4431
|
return h && h.length % 2 ? f : (h || "") + m;
|
|
4406
4432
|
}), !i && n.wrap ? r + o + r : o;
|
|
4407
4433
|
}
|
|
4408
|
-
const
|
|
4434
|
+
const Ke = (e) => {
|
|
4409
4435
|
let t = "";
|
|
4410
4436
|
const n = e.getAttribute("class"), r = e.getAttribute("id");
|
|
4411
|
-
return r && (t = t.concat(
|
|
4412
|
-
},
|
|
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) => {
|
|
4413
4439
|
let t;
|
|
4414
4440
|
const r = () => {
|
|
4415
4441
|
clearTimeout(t), t = setTimeout(() => {
|
|
@@ -4427,7 +4453,7 @@ const Qe = (e) => {
|
|
|
4427
4453
|
};
|
|
4428
4454
|
return window.addEventListener("resize", r), r(), () => window.removeEventListener("resize", r);
|
|
4429
4455
|
};
|
|
4430
|
-
var
|
|
4456
|
+
var sn = { exports: {} };
|
|
4431
4457
|
/**
|
|
4432
4458
|
* @preserve
|
|
4433
4459
|
* JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
|
|
@@ -4480,21 +4506,21 @@ var nn = { exports: {} };
|
|
|
4480
4506
|
return this.h1 = typeof r == "number" ? r : 0, this.rem = this.k1 = this.len = 0, this;
|
|
4481
4507
|
}, t = new n(), e.exports = n;
|
|
4482
4508
|
})();
|
|
4483
|
-
})(
|
|
4484
|
-
var
|
|
4485
|
-
const
|
|
4509
|
+
})(sn);
|
|
4510
|
+
var Di = sn.exports;
|
|
4511
|
+
const Oi = /* @__PURE__ */ tt(Di), Be = 28, J = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", wi = 2246822507, Ot = (e) => {
|
|
4486
4512
|
var n;
|
|
4487
4513
|
var t = "";
|
|
4488
4514
|
if (e) {
|
|
4489
|
-
const r =
|
|
4490
|
-
for (let i = 0; i <
|
|
4491
|
-
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;
|
|
4492
4518
|
t += J.charAt(o);
|
|
4493
4519
|
}
|
|
4494
4520
|
} else {
|
|
4495
|
-
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);
|
|
4496
4522
|
r && window.crypto.getRandomValues(i);
|
|
4497
|
-
for (let s = 0; s <
|
|
4523
|
+
for (let s = 0; s < Be; s++)
|
|
4498
4524
|
r ? t += J.charAt(
|
|
4499
4525
|
i[s] % J.length
|
|
4500
4526
|
) : t += J.charAt(
|
|
@@ -4503,13 +4529,13 @@ const Ni = /* @__PURE__ */ et(Ai), Ue = 28, J = "abcdefghijklmnopqrstuvwxyzABCDE
|
|
|
4503
4529
|
}
|
|
4504
4530
|
return t;
|
|
4505
4531
|
};
|
|
4506
|
-
class
|
|
4532
|
+
class xs {
|
|
4507
4533
|
constructor(t) {
|
|
4508
4534
|
Y(this, "sessionSecureID");
|
|
4509
4535
|
try {
|
|
4510
|
-
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);
|
|
4511
4537
|
} catch (n) {
|
|
4512
|
-
|
|
4538
|
+
ft(
|
|
4513
4539
|
"Error initializing @launchdarkly observability plugin",
|
|
4514
4540
|
"error",
|
|
4515
4541
|
n
|
|
@@ -4518,13 +4544,15 @@ class Ss {
|
|
|
4518
4544
|
}
|
|
4519
4545
|
configureSession(t, n) {
|
|
4520
4546
|
try {
|
|
4521
|
-
const r =
|
|
4522
|
-
|
|
4547
|
+
const r = Yt(), i = Gr(
|
|
4548
|
+
r
|
|
4549
|
+
);
|
|
4550
|
+
let s = Hr(
|
|
4523
4551
|
r
|
|
4524
4552
|
);
|
|
4525
|
-
|
|
4553
|
+
s != null && s.sessionSecureID ? this.sessionSecureID = s.sessionSecureID : (n != null && n.sessionKey ? this.sessionSecureID = Ot(
|
|
4526
4554
|
`${t}-${n.sessionKey}`
|
|
4527
|
-
) : this.sessionSecureID =
|
|
4555
|
+
) : this.sessionSecureID = Ot(), i != null && i.sessionSecureID && i.sessionSecureID !== this.sessionSecureID && Yr(i.sessionSecureID), zt(this.sessionSecureID), at({
|
|
4528
4556
|
sessionSecureID: this.sessionSecureID,
|
|
4529
4557
|
sessionKey: n == null ? void 0 : n.sessionKey,
|
|
4530
4558
|
projectID: 0,
|
|
@@ -4532,7 +4560,7 @@ class Ss {
|
|
|
4532
4560
|
lastPushTime: Date.now()
|
|
4533
4561
|
}));
|
|
4534
4562
|
} catch (r) {
|
|
4535
|
-
|
|
4563
|
+
ft(
|
|
4536
4564
|
"Error configuring session in @launchdarkly observability plugin",
|
|
4537
4565
|
"error",
|
|
4538
4566
|
r
|
|
@@ -4541,86 +4569,87 @@ class Ss {
|
|
|
4541
4569
|
}
|
|
4542
4570
|
}
|
|
4543
4571
|
export {
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
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,
|
|
4582
|
+
At as J,
|
|
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,
|
|
4563
4591
|
ee as S,
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
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
|
-
Gt as
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
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,
|
|
4622
|
+
C as al,
|
|
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
|
|
4625
4654
|
};
|
|
4626
|
-
//# sourceMappingURL=common-
|
|
4655
|
+
//# sourceMappingURL=common-C6gSg2Rq.js.map
|