@launchdarkly/o11y 1.3.0 → 1.4.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.
@@ -1,29 +1,29 @@
1
- var tn = Object.defineProperty, nn = Object.defineProperties;
2
- var rn = Object.getOwnPropertyDescriptors;
3
- var ce = Object.getOwnPropertySymbols;
4
- var rt = Object.prototype.hasOwnProperty, it = Object.prototype.propertyIsEnumerable;
5
- var Oe = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), sn = (e) => {
1
+ var an = Object.defineProperty, cn = Object.defineProperties;
2
+ var un = Object.getOwnPropertyDescriptors;
3
+ var le = Object.getOwnPropertySymbols;
4
+ var ot = Object.prototype.hasOwnProperty, at = Object.prototype.propertyIsEnumerable;
5
+ var De = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), ln = (e) => {
6
6
  throw TypeError(e);
7
7
  };
8
- var De = (e, t, n) => t in e ? tn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, _ = (e, t) => {
8
+ var we = (e, t, n) => t in e ? an(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
- rt.call(t, n) && De(e, n, t[n]);
11
- if (ce)
12
- for (var n of ce(t))
13
- it.call(t, n) && De(e, n, t[n]);
10
+ ot.call(t, n) && we(e, n, t[n]);
11
+ if (le)
12
+ for (var n of le(t))
13
+ at.call(t, n) && we(e, n, t[n]);
14
14
  return e;
15
- }, q = (e, t) => nn(e, rn(t));
16
- var H = (e, t) => {
15
+ }, B = (e, t) => cn(e, un(t));
16
+ var G = (e, t) => {
17
17
  var n = {};
18
18
  for (var r in e)
19
- rt.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
20
- if (e != null && ce)
21
- for (var r of ce(e))
22
- t.indexOf(r) < 0 && it.call(e, r) && (n[r] = e[r]);
19
+ ot.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
20
+ if (e != null && le)
21
+ for (var r of le(e))
22
+ t.indexOf(r) < 0 && at.call(e, r) && (n[r] = e[r]);
23
23
  return n;
24
24
  };
25
- var G = (e, t, n) => De(e, typeof t != "symbol" ? t + "" : t, n);
26
- var U = (e, t, n) => new Promise((r, i) => {
25
+ var Y = (e, t, n) => we(e, typeof t != "symbol" ? t + "" : t, n);
26
+ var V = (e, t, n) => new Promise((r, i) => {
27
27
  var s = (c) => {
28
28
  try {
29
29
  a(n.next(c));
@@ -38,46 +38,46 @@ var U = (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
- }), on = function(e, t) {
41
+ }), fn = function(e, t) {
42
42
  this[0] = e, this[1] = t;
43
43
  };
44
- var we = (e) => {
45
- var t = e[Oe("asyncIterator")], n = !1, r, i = {};
46
- return t == null ? (t = e[Oe("iterator")](), r = (s) => i[s] = (o) => t[s](o)) : (t = t.call(e), r = (s) => i[s] = (o) => {
44
+ var Ce = (e) => {
45
+ var t = e[De("asyncIterator")], n = !1, r, i = {};
46
+ return t == null ? (t = e[De("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 on(new Promise((a) => {
53
+ value: new fn(new Promise((a) => {
54
54
  var c = t[s](o);
55
- c instanceof Object || sn("Object expected"), a(c);
55
+ c instanceof Object || ln("Object expected"), a(c);
56
56
  }), 1)
57
57
  };
58
- }), i[Oe("iterator")] = () => i, r("next"), "throw" in t ? r("throw") : i.throw = (s) => {
58
+ }), i[De("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 { a as K, B as an, i as st } from "./buffer-DIFxvF2Q.js";
63
- function de(e, t) {
62
+ import { d as $, a as hn, B as dn, i as ct } from "./buffer-CwCRPuMA.js";
63
+ function me(e, t) {
64
64
  if (!!!e)
65
65
  throw new Error(t);
66
66
  }
67
- function cn(e) {
67
+ function pn(e) {
68
68
  return typeof e == "object" && e !== null;
69
69
  }
70
- function un(e, t) {
70
+ function mn(e, t) {
71
71
  if (!!!e)
72
72
  throw new Error(
73
73
  "Unexpected invariant triggered."
74
74
  );
75
75
  }
76
- const ln = /\r\n|[\n\r]/g;
77
- function Ue(e, t) {
76
+ const gn = /\r\n|[\n\r]/g;
77
+ function Be(e, t) {
78
78
  let n = 0, r = 1;
79
- for (const i of e.body.matchAll(ln)) {
80
- if (typeof i.index == "number" || un(!1), i.index >= t)
79
+ for (const i of e.body.matchAll(gn)) {
80
+ if (typeof i.index == "number" || mn(!1), i.index >= t)
81
81
  break;
82
82
  n = i.index + i[0].length, r += 1;
83
83
  }
@@ -86,27 +86,27 @@ function Ue(e, t) {
86
86
  column: t + 1 - n
87
87
  };
88
88
  }
89
- function fn(e) {
90
- return At(
89
+ function yn(e) {
90
+ return xt(
91
91
  e.source,
92
- Ue(e.source, e.start)
92
+ Be(e.source, e.start)
93
93
  );
94
94
  }
95
- function At(e, t) {
95
+ function xt(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
- const E = Math.floor(c / 80), S = c % 80, y = [];
99
+ const _ = Math.floor(c / 80), v = c % 80, y = [];
100
100
  for (let N = 0; N < m.length; N += 80)
101
101
  y.push(m.slice(N, N + 80));
102
- return f + ot([
102
+ return f + ut([
103
103
  [`${o} |`, y[0]],
104
- ...y.slice(1, E + 1).map((N) => ["|", N]),
105
- ["|", "^".padStart(S)],
106
- ["|", y[E + 1]]
104
+ ...y.slice(1, _ + 1).map((N) => ["|", N]),
105
+ ["|", "^".padStart(v)],
106
+ ["|", y[_ + 1]]
107
107
  ]);
108
108
  }
109
- return f + ot([
109
+ return f + ut([
110
110
  // Lines specified like this: ["prefix", "string"],
111
111
  [`${o - 1} |`, h[i - 1]],
112
112
  [`${o} |`, m],
@@ -114,12 +114,12 @@ function At(e, t) {
114
114
  [`${o + 1} |`, h[i + 1]]
115
115
  ]);
116
116
  }
117
- function ot(e) {
117
+ function ut(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 hn(e) {
122
+ function En(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 hn(e) {
130
130
  extensions: e[5]
131
131
  } : t;
132
132
  }
133
- class Qe extends Error {
133
+ class Ke 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,18 +171,18 @@ class Qe 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 } = hn(n);
175
- super(t), this.name = "GraphQLError", this.path = f != null ? f : void 0, this.originalError = h != null ? h : void 0, this.nodes = at(
174
+ const { nodes: o, source: a, positions: c, path: f, originalError: h, extensions: m } = En(n);
175
+ super(t), this.name = "GraphQLError", this.path = f != null ? f : void 0, this.originalError = h != null ? h : void 0, this.nodes = lt(
176
176
  Array.isArray(o) ? o : o ? [o] : void 0
177
177
  );
178
- const E = at(
178
+ const _ = lt(
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 : E == null || (i = E[0]) === null || i === void 0 ? void 0 : i.source, this.positions = c != null ? c : E == null ? void 0 : E.map((y) => y.start), this.locations = c && a ? c.map((y) => Ue(a, y)) : E == null ? void 0 : E.map((y) => Ue(y.source, y.start));
182
- const S = cn(
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) => Be(a, y)) : _ == null ? void 0 : _.map((y) => Be(y.source, y.start));
182
+ const v = pn(
183
183
  h == null ? void 0 : h.extensions
184
184
  ) ? h == null ? void 0 : h.extensions : void 0;
185
- this.extensions = (s = m != null ? m : S) !== null && s !== void 0 ? s : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
185
+ this.extensions = (s = m != null ? m : v) !== null && s !== void 0 ? s : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
186
186
  message: {
187
187
  writable: !0,
188
188
  enumerable: !0
@@ -206,7 +206,7 @@ class Qe extends Error {
206
206
  value: h.stack,
207
207
  writable: !0,
208
208
  configurable: !0
209
- }) : Error.captureStackTrace ? Error.captureStackTrace(this, Qe) : Object.defineProperty(this, "stack", {
209
+ }) : Error.captureStackTrace ? Error.captureStackTrace(this, Ke) : Object.defineProperty(this, "stack", {
210
210
  value: Error().stack,
211
211
  writable: !0,
212
212
  configurable: !0
@@ -221,12 +221,12 @@ class Qe extends Error {
221
221
  for (const n of this.nodes)
222
222
  n.loc && (t += `
223
223
 
224
- ` + fn(n.loc));
224
+ ` + yn(n.loc));
225
225
  else if (this.source && this.locations)
226
226
  for (const n of this.locations)
227
227
  t += `
228
228
 
229
- ` + At(this.source, n);
229
+ ` + xt(this.source, n);
230
230
  return t;
231
231
  }
232
232
  toJSON() {
@@ -236,16 +236,16 @@ class Qe 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 at(e) {
239
+ function lt(e) {
240
240
  return e === void 0 || e.length === 0 ? void 0 : e;
241
241
  }
242
242
  function O(e, t, n) {
243
- return new Qe(`Syntax Error: ${n}`, {
243
+ return new Ke(`Syntax Error: ${n}`, {
244
244
  source: e,
245
245
  positions: [t]
246
246
  });
247
247
  }
248
- class dn {
248
+ class _n {
249
249
  /**
250
250
  * The character offset at which this Node begins.
251
251
  */
@@ -274,7 +274,7 @@ class dn {
274
274
  };
275
275
  }
276
276
  }
277
- class Nt {
277
+ class Ot {
278
278
  /**
279
279
  * The kind of Token.
280
280
  */
@@ -316,7 +316,7 @@ class Nt {
316
316
  };
317
317
  }
318
318
  }
319
- const It = {
319
+ const Dt = {
320
320
  Name: [],
321
321
  Document: ["definitions"],
322
322
  OperationDefinition: [
@@ -390,45 +390,45 @@ const It = {
390
390
  UnionTypeExtension: ["name", "directives", "types"],
391
391
  EnumTypeExtension: ["name", "directives", "values"],
392
392
  InputObjectTypeExtension: ["name", "directives", "fields"]
393
- }, pn = new Set(Object.keys(It));
394
- function ct(e) {
393
+ }, Tn = new Set(Object.keys(Dt));
394
+ function ft(e) {
395
395
  const t = e == null ? void 0 : e.kind;
396
- return typeof t == "string" && pn.has(t);
396
+ return typeof t == "string" && Tn.has(t);
397
397
  }
398
- var J;
398
+ var X;
399
399
  (function(e) {
400
400
  e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
401
- })(J || (J = {}));
402
- var Be;
401
+ })(X || (X = {}));
402
+ var Ve;
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
- })(Be || (Be = {}));
405
+ })(Ve || (Ve = {}));
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 Ve(e) {
410
+ function je(e) {
411
411
  return e === 9 || e === 32;
412
412
  }
413
- function ie(e) {
413
+ function se(e) {
414
414
  return e >= 48 && e <= 57;
415
415
  }
416
- function bt(e) {
416
+ function wt(e) {
417
417
  return e >= 97 && e <= 122 || // A-Z
418
418
  e >= 65 && e <= 90;
419
419
  }
420
- function xt(e) {
421
- return bt(e) || e === 95;
420
+ function Ct(e) {
421
+ return wt(e) || e === 95;
422
422
  }
423
- function mn(e) {
424
- return bt(e) || ie(e) || e === 95;
423
+ function Sn(e) {
424
+ return wt(e) || se(e) || e === 95;
425
425
  }
426
- function gn(e) {
426
+ function vn(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 = yn(a);
431
+ const a = e[o], c = An(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,20 +436,20 @@ function gn(e) {
436
436
  i + 1
437
437
  );
438
438
  }
439
- function yn(e) {
439
+ function An(e) {
440
440
  let t = 0;
441
- for (; t < e.length && Ve(e.charCodeAt(t)); )
441
+ for (; t < e.length && je(e.charCodeAt(t)); )
442
442
  ++t;
443
443
  return t;
444
444
  }
445
- function En(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((S) => S.length === 0 || Ve(S.charCodeAt(0))), o = n.endsWith('\\"""'), a = e.endsWith('"') && !o, c = e.endsWith("\\"), f = a || c, h = (
445
+ function Nn(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 || je(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 E = i && Ve(e.charCodeAt(0));
452
- return (h && !E || s) && (m += `
451
+ const _ = i && je(e.charCodeAt(0));
452
+ return (h && !_ || s) && (m += `
453
453
  `), m += n, (h || f) && (m += `
454
454
  `), '"""' + m + '"""';
455
455
  }
@@ -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 _n {
460
+ class In {
461
461
  /**
462
462
  * The previously focused non-ignored token.
463
463
  */
@@ -471,7 +471,7 @@ class _n {
471
471
  * The character offset at which the current line begins.
472
472
  */
473
473
  constructor(t) {
474
- const n = new Nt(l.SOF, 0, 0, 0, 0);
474
+ const n = new Ot(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,29 +494,29 @@ class _n {
494
494
  if (t.next)
495
495
  t = t.next;
496
496
  else {
497
- const n = vn(this, t.end);
497
+ const n = xn(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 Tn(e) {
504
+ function bn(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
- function ve(e, t) {
511
- return Ot(e.charCodeAt(t)) && Dt(e.charCodeAt(t + 1));
510
+ function Ae(e, t) {
511
+ return kt(e.charCodeAt(t)) && Rt(e.charCodeAt(t + 1));
512
512
  }
513
- function Ot(e) {
513
+ function kt(e) {
514
514
  return e >= 55296 && e <= 56319;
515
515
  }
516
- function Dt(e) {
516
+ function Rt(e) {
517
517
  return e >= 56320 && e <= 57343;
518
518
  }
519
- function B(e, t) {
519
+ function j(e, t) {
520
520
  const n = e.source.body.codePointAt(t);
521
521
  if (n === void 0)
522
522
  return l.EOF;
@@ -528,9 +528,9 @@ function B(e, t) {
528
528
  }
529
529
  function I(e, t, n, r, i) {
530
530
  const s = e.line, o = 1 + n - e.lineStart;
531
- return new Nt(t, n, r, s, o, i);
531
+ return new Ot(t, n, r, s, o, i);
532
532
  }
533
- function vn(e, t) {
533
+ function xn(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 vn(e, t) {
571
571
  continue;
572
572
  // Comment
573
573
  case 35:
574
- return Sn(e, i);
574
+ return On(e, i);
575
575
  // Token ::
576
576
  // - Punctuator
577
577
  // - Name
@@ -612,21 +612,21 @@ function vn(e, t) {
612
612
  return I(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 ? On(e, i) : Nn(e, i);
615
+ return n.charCodeAt(i + 1) === 34 && n.charCodeAt(i + 2) === 34 ? Ln(e, i) : wn(e, i);
616
616
  }
617
- if (ie(s) || s === 45)
618
- return An(e, i, s);
619
- if (xt(s))
620
- return Dn(e, i);
617
+ if (se(s) || s === 45)
618
+ return Dn(e, i, s);
619
+ if (Ct(s))
620
+ return Pn(e, i);
621
621
  throw O(
622
622
  e.source,
623
623
  i,
624
- s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : Z(s) || ve(n, i) ? `Unexpected character: ${B(e, i)}.` : `Invalid character: ${B(e, i)}.`
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
627
  return I(e, l.EOF, r, r);
628
628
  }
629
- function Sn(e, t) {
629
+ function On(e, t) {
630
630
  const n = e.source.body, r = n.length;
631
631
  let i = t + 1;
632
632
  for (; i < r; ) {
@@ -635,7 +635,7 @@ function Sn(e, t) {
635
635
  break;
636
636
  if (Z(s))
637
637
  ++i;
638
- else if (ve(n, i))
638
+ else if (Ae(n, i))
639
639
  i += 2;
640
640
  else
641
641
  break;
@@ -648,26 +648,26 @@ function Sn(e, t) {
648
648
  n.slice(t + 1, i)
649
649
  );
650
650
  }
651
- function An(e, t, n) {
651
+ function Dn(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), ie(s))
655
+ if (s = r.charCodeAt(++i), se(s))
656
656
  throw O(
657
657
  e.source,
658
658
  i,
659
- `Invalid number, unexpected digit after 0: ${B(
659
+ `Invalid number, unexpected digit after 0: ${j(
660
660
  e,
661
661
  i
662
662
  )}.`
663
663
  );
664
664
  } else
665
- i = Ce(e, i, s), s = r.charCodeAt(i);
666
- if (s === 46 && (o = !0, s = r.charCodeAt(++i), i = Ce(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 = Ce(e, i, s), s = r.charCodeAt(i)), s === 46 || xt(s))
665
+ i = ke(e, i, s), s = r.charCodeAt(i);
666
+ if (s === 46 && (o = !0, s = r.charCodeAt(++i), i = ke(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 = ke(e, i, s), s = r.charCodeAt(i)), s === 46 || Ct(s))
667
667
  throw O(
668
668
  e.source,
669
669
  i,
670
- `Invalid number, expected digit but got: ${B(
670
+ `Invalid number, expected digit but got: ${j(
671
671
  e,
672
672
  i
673
673
  )}.`
@@ -680,23 +680,23 @@ function An(e, t, n) {
680
680
  r.slice(t, i)
681
681
  );
682
682
  }
683
- function Ce(e, t, n) {
684
- if (!ie(n))
683
+ function ke(e, t, n) {
684
+ if (!se(n))
685
685
  throw O(
686
686
  e.source,
687
687
  t,
688
- `Invalid number, expected digit but got: ${B(
688
+ `Invalid number, expected digit but got: ${j(
689
689
  e,
690
690
  t
691
691
  )}.`
692
692
  );
693
693
  const r = e.source.body;
694
694
  let i = t + 1;
695
- for (; ie(r.charCodeAt(i)); )
695
+ for (; se(r.charCodeAt(i)); )
696
696
  ++i;
697
697
  return i;
698
698
  }
699
- function Nn(e, t) {
699
+ function wn(e, t) {
700
700
  const n = e.source.body, r = n.length;
701
701
  let i = t + 1, s = i, o = "";
702
702
  for (; i < r; ) {
@@ -705,7 +705,7 @@ function Nn(e, t) {
705
705
  return o += n.slice(s, i), I(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 ? In(e, i) : bn(e, i) : xn(e, i);
708
+ const c = n.charCodeAt(i + 1) === 117 ? n.charCodeAt(i + 2) === 123 ? Cn(e, i) : kn(e, i) : Rn(e, i);
709
709
  o += c.value, i += c.size, s = i;
710
710
  continue;
711
711
  }
@@ -713,13 +713,13 @@ function Nn(e, t) {
713
713
  break;
714
714
  if (Z(a))
715
715
  ++i;
716
- else if (ve(n, i))
716
+ else if (Ae(n, i))
717
717
  i += 2;
718
718
  else
719
719
  throw O(
720
720
  e.source,
721
721
  i,
722
- `Invalid character within String: ${B(
722
+ `Invalid character within String: ${j(
723
723
  e,
724
724
  i
725
725
  )}.`
@@ -727,7 +727,7 @@ function Nn(e, t) {
727
727
  }
728
728
  throw O(e.source, i, "Unterminated string.");
729
729
  }
730
- function In(e, t) {
730
+ function Cn(e, t) {
731
731
  const n = e.source.body;
732
732
  let r = 0, i = 3;
733
733
  for (; i < 12; ) {
@@ -752,16 +752,16 @@ function In(e, t) {
752
752
  )}".`
753
753
  );
754
754
  }
755
- function bn(e, t) {
756
- const n = e.source.body, r = ut(n, t + 2);
755
+ function kn(e, t) {
756
+ const n = e.source.body, r = ht(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 (Ot(r) && n.charCodeAt(t + 6) === 92 && n.charCodeAt(t + 7) === 117) {
763
- const i = ut(n, t + 8);
764
- if (Dt(i))
762
+ if (kt(r) && n.charCodeAt(t + 6) === 92 && n.charCodeAt(t + 7) === 117) {
763
+ const i = ht(n, t + 8);
764
+ if (Rt(i))
765
765
  return {
766
766
  value: String.fromCodePoint(r, i),
767
767
  size: 12
@@ -773,13 +773,13 @@ function bn(e, t) {
773
773
  `Invalid Unicode escape sequence: "${n.slice(t, t + 6)}".`
774
774
  );
775
775
  }
776
- function ut(e, t) {
776
+ function ht(e, t) {
777
777
  return re(e.charCodeAt(t)) << 12 | re(e.charCodeAt(t + 1)) << 8 | re(e.charCodeAt(t + 2)) << 4 | re(e.charCodeAt(t + 3));
778
778
  }
779
779
  function re(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 xn(e, t) {
782
+ function Rn(e, t) {
783
783
  const n = e.source.body;
784
784
  switch (n.charCodeAt(t + 1)) {
785
785
  case 34:
@@ -833,7 +833,7 @@ function xn(e, t) {
833
833
  )}".`
834
834
  );
835
835
  }
836
- function On(e, t) {
836
+ function Ln(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 = [];
@@ -847,7 +847,7 @@ function On(e, t) {
847
847
  t,
848
848
  s + 3,
849
849
  // Return a string of the lines joined with U+000A.
850
- gn(c).join(`
850
+ vn(c).join(`
851
851
  `)
852
852
  );
853
853
  return e.line += c.length - 1, e.lineStart = i, h;
@@ -862,13 +862,13 @@ function On(e, t) {
862
862
  }
863
863
  if (Z(f))
864
864
  ++s;
865
- else if (ve(n, s))
865
+ else if (Ae(n, s))
866
866
  s += 2;
867
867
  else
868
868
  throw O(
869
869
  e.source,
870
870
  s,
871
- `Invalid character within String: ${B(
871
+ `Invalid character within String: ${j(
872
872
  e,
873
873
  s
874
874
  )}.`
@@ -876,12 +876,12 @@ function On(e, t) {
876
876
  }
877
877
  throw O(e.source, s, "Unterminated string.");
878
878
  }
879
- function Dn(e, t) {
879
+ function Pn(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 (mn(s))
884
+ if (Sn(s))
885
885
  ++i;
886
886
  else
887
887
  break;
@@ -894,56 +894,56 @@ function Dn(e, t) {
894
894
  n.slice(t, i)
895
895
  );
896
896
  }
897
- const wn = 10, wt = 2;
898
- function Ke(e) {
899
- return Se(e, []);
897
+ const Fn = 10, Lt = 2;
898
+ function We(e) {
899
+ return Ne(e, []);
900
900
  }
901
- function Se(e, t) {
901
+ function Ne(e, t) {
902
902
  switch (typeof e) {
903
903
  case "string":
904
904
  return JSON.stringify(e);
905
905
  case "function":
906
906
  return e.name ? `[function ${e.name}]` : "[function]";
907
907
  case "object":
908
- return Cn(e, t);
908
+ return Mn(e, t);
909
909
  default:
910
910
  return String(e);
911
911
  }
912
912
  }
913
- function Cn(e, t) {
913
+ function Mn(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 (Rn(e)) {
919
+ if ($n(e)) {
920
920
  const r = e.toJSON();
921
921
  if (r !== e)
922
- return typeof r == "string" ? r : Se(r, n);
922
+ return typeof r == "string" ? r : Ne(r, n);
923
923
  } else if (Array.isArray(e))
924
- return Ln(e, n);
925
- return kn(e, n);
924
+ return Bn(e, n);
925
+ return Un(e, n);
926
926
  }
927
- function Rn(e) {
927
+ function $n(e) {
928
928
  return typeof e.toJSON == "function";
929
929
  }
930
- function kn(e, t) {
930
+ function Un(e, t) {
931
931
  const n = Object.entries(e);
932
- return n.length === 0 ? "{}" : t.length > wt ? "[" + Pn(e) + "]" : "{ " + n.map(
933
- ([i, s]) => i + ": " + Se(s, t)
932
+ return n.length === 0 ? "{}" : t.length > Lt ? "[" + Vn(e) + "]" : "{ " + n.map(
933
+ ([i, s]) => i + ": " + Ne(s, t)
934
934
  ).join(", ") + " }";
935
935
  }
936
- function Ln(e, t) {
936
+ function Bn(e, t) {
937
937
  if (e.length === 0)
938
938
  return "[]";
939
- if (t.length > wt)
939
+ if (t.length > Lt)
940
940
  return "[Array]";
941
- const n = Math.min(wn, e.length), r = e.length - n, i = [];
941
+ const n = Math.min(Fn, e.length), r = e.length - n, i = [];
942
942
  for (let s = 0; s < n; ++s)
943
- i.push(Se(e[s], t));
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 Pn(e) {
946
+ function Vn(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 Pn(e) {
952
952
  }
953
953
  return t;
954
954
  }
955
- const Fn = globalThis.process && // eslint-disable-next-line no-undef
956
- process.env.NODE_ENV === "production", Mn = (
955
+ const jn = globalThis.process && // eslint-disable-next-line no-undef
956
+ process.env.NODE_ENV === "production", qn = (
957
957
  /* c8 ignore next 6 */
958
958
  // FIXME: https://github.com/graphql/graphql-js/issues/2317
959
- Fn ? function(t, n) {
959
+ jn ? 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", Mn = (
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 = Ke(t);
971
+ const o = We(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 Ct {
989
+ class Pt {
990
990
  constructor(t, n = "GraphQL request", r = {
991
991
  line: 1,
992
992
  column: 1
993
993
  }) {
994
- typeof t == "string" || de(!1, `Body must be a string. Received: ${Ke(t)}.`), this.body = t, this.name = n, this.locationOffset = r, this.locationOffset.line > 0 || de(
994
+ typeof t == "string" || me(!1, `Body must be a string. Received: ${We(t)}.`), this.body = t, this.name = n, this.locationOffset = r, this.locationOffset.line > 0 || me(
995
995
  !1,
996
996
  "line in locationOffset is 1-indexed and must be positive."
997
- ), this.locationOffset.column > 0 || de(
997
+ ), this.locationOffset.column > 0 || me(
998
998
  !1,
999
999
  "column in locationOffset is 1-indexed and must be positive."
1000
1000
  );
@@ -1003,20 +1003,20 @@ class Ct {
1003
1003
  return "Source";
1004
1004
  }
1005
1005
  }
1006
- function $n(e) {
1007
- return Mn(e, Ct);
1006
+ function Hn(e) {
1007
+ return qn(e, Pt);
1008
1008
  }
1009
- function Rt(e, t) {
1010
- const n = new Un(e, t), r = n.parseDocument();
1009
+ function Ft(e, t) {
1010
+ const n = new Gn(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 Un {
1016
+ class Gn {
1017
1017
  constructor(t, n = {}) {
1018
- const r = $n(t) ? t : new Ct(t);
1019
- this._lexer = new _n(r), this._options = n, this._tokenCounter = 0;
1018
+ const r = Hn(t) ? t : new Pt(t);
1019
+ this._lexer = new In(r), this._options = n, this._tokenCounter = 0;
1020
1020
  }
1021
1021
  get tokenCount() {
1022
1022
  return this._tokenCounter;
@@ -1121,7 +1121,7 @@ class Un {
1121
1121
  if (this.peek(l.BRACE_L))
1122
1122
  return this.node(t, {
1123
1123
  kind: g.OPERATION_DEFINITION,
1124
- operation: J.QUERY,
1124
+ operation: X.QUERY,
1125
1125
  name: void 0,
1126
1126
  variableDefinitions: [],
1127
1127
  directives: [],
@@ -1145,11 +1145,11 @@ class Un {
1145
1145
  const t = this.expectToken(l.NAME);
1146
1146
  switch (t.value) {
1147
1147
  case "query":
1148
- return J.QUERY;
1148
+ return X.QUERY;
1149
1149
  case "mutation":
1150
- return J.MUTATION;
1150
+ return X.MUTATION;
1151
1151
  case "subscription":
1152
- return J.SUBSCRIPTION;
1152
+ return X.SUBSCRIPTION;
1153
1153
  }
1154
1154
  throw this.unexpected(t);
1155
1155
  }
@@ -1716,7 +1716,7 @@ class Un {
1716
1716
  throw O(
1717
1717
  this._lexer.source,
1718
1718
  this._lexer.token.start,
1719
- `${ue(
1719
+ `${fe(
1720
1720
  this._lexer.token
1721
1721
  )} is reserved and cannot be used for an enum value.`
1722
1722
  );
@@ -1975,7 +1975,7 @@ class Un {
1975
1975
  */
1976
1976
  parseDirectiveLocation() {
1977
1977
  const t = this._lexer.token, n = this.parseName();
1978
- if (Object.prototype.hasOwnProperty.call(Be, n.value))
1978
+ if (Object.prototype.hasOwnProperty.call(Ve, n.value))
1979
1979
  return n;
1980
1980
  throw this.unexpected(t);
1981
1981
  }
@@ -1986,7 +1986,7 @@ class Un {
1986
1986
  * given parsed object.
1987
1987
  */
1988
1988
  node(t, n) {
1989
- return this._options.noLocation !== !0 && (n.loc = new dn(
1989
+ return this._options.noLocation !== !0 && (n.loc = new _n(
1990
1990
  t,
1991
1991
  this._lexer.lastToken,
1992
1992
  this._lexer.source
@@ -2009,7 +2009,7 @@ class Un {
2009
2009
  throw O(
2010
2010
  this._lexer.source,
2011
2011
  n.start,
2012
- `Expected ${kt(t)}, found ${ue(n)}.`
2012
+ `Expected ${Mt(t)}, found ${fe(n)}.`
2013
2013
  );
2014
2014
  }
2015
2015
  /**
@@ -2031,7 +2031,7 @@ class Un {
2031
2031
  throw O(
2032
2032
  this._lexer.source,
2033
2033
  n.start,
2034
- `Expected "${t}", found ${ue(n)}.`
2034
+ `Expected "${t}", found ${fe(n)}.`
2035
2035
  );
2036
2036
  }
2037
2037
  /**
@@ -2050,7 +2050,7 @@ class Un {
2050
2050
  return O(
2051
2051
  this._lexer.source,
2052
2052
  n.start,
2053
- `Unexpected ${ue(n)}.`
2053
+ `Unexpected ${fe(n)}.`
2054
2054
  );
2055
2055
  }
2056
2056
  /**
@@ -2117,21 +2117,21 @@ class Un {
2117
2117
  );
2118
2118
  }
2119
2119
  }
2120
- function ue(e) {
2120
+ function fe(e) {
2121
2121
  const t = e.value;
2122
- return kt(e.kind) + (t != null ? ` "${t}"` : "");
2122
+ return Mt(e.kind) + (t != null ? ` "${t}"` : "");
2123
2123
  }
2124
- function kt(e) {
2125
- return Tn(e) ? `"${e}"` : e;
2124
+ function Mt(e) {
2125
+ return bn(e) ? `"${e}"` : e;
2126
2126
  }
2127
- function Bn(e) {
2128
- return `"${e.replace(Vn, jn)}"`;
2127
+ function Yn(e) {
2128
+ return `"${e.replace(zn, Jn)}"`;
2129
2129
  }
2130
- const Vn = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
2131
- function jn(e) {
2132
- return qn[e.charCodeAt(0)];
2130
+ const zn = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
2131
+ function Jn(e) {
2132
+ return Xn[e.charCodeAt(0)];
2133
2133
  }
2134
- const qn = [
2134
+ const Xn = [
2135
2135
  "\\u0000",
2136
2136
  "\\u0001",
2137
2137
  "\\u0002",
@@ -2297,58 +2297,58 @@ const qn = [
2297
2297
  "\\u009D",
2298
2298
  "\\u009E",
2299
2299
  "\\u009F"
2300
- ], Hn = Object.freeze({});
2301
- function Gn(e, t, n = It) {
2300
+ ], Qn = Object.freeze({});
2301
+ function Kn(e, t, n = Dt) {
2302
2302
  const r = /* @__PURE__ */ new Map();
2303
2303
  for (const x of Object.values(g))
2304
- r.set(x, Yn(t, x));
2304
+ r.set(x, Wn(t, x));
2305
2305
  let i, s = Array.isArray(e), o = [e], a = -1, c = [], f = e, h, m;
2306
- const E = [], S = [];
2306
+ const _ = [], v = [];
2307
2307
  do {
2308
2308
  a++;
2309
- const x = a === o.length, V = x && c.length !== 0;
2309
+ const x = a === o.length, q = x && c.length !== 0;
2310
2310
  if (x) {
2311
- if (h = S.length === 0 ? void 0 : E[E.length - 1], f = m, m = S.pop(), V)
2311
+ if (h = v.length === 0 ? void 0 : _[_.length - 1], f = m, m = v.pop(), q)
2312
2312
  if (s) {
2313
2313
  f = f.slice();
2314
2314
  let P = 0;
2315
- for (const [j, se] of c) {
2316
- const oe = j - P;
2317
- se === null ? (f.splice(oe, 1), P++) : f[oe] = se;
2315
+ for (const [H, ae] of c) {
2316
+ const ce = H - P;
2317
+ ae === null ? (f.splice(ce, 1), P++) : f[ce] = ae;
2318
2318
  }
2319
2319
  } else {
2320
- f = _({}, f);
2321
- for (const [P, j] of c)
2322
- f[P] = j;
2320
+ f = E({}, f);
2321
+ for (const [P, H] of c)
2322
+ f[P] = H;
2323
2323
  }
2324
2324
  a = i.index, o = i.keys, c = i.edits, s = i.inArray, i = i.prev;
2325
2325
  } else if (m) {
2326
2326
  if (h = s ? a : o[a], f = m[h], f == null)
2327
2327
  continue;
2328
- E.push(h);
2328
+ _.push(h);
2329
2329
  }
2330
- let k;
2330
+ let R;
2331
2331
  if (!Array.isArray(f)) {
2332
2332
  var y, N;
2333
- ct(f) || de(!1, `Invalid AST Node: ${Ke(f)}.`);
2333
+ ft(f) || me(!1, `Invalid AST Node: ${We(f)}.`);
2334
2334
  const P = x ? (y = r.get(f.kind)) === null || y === void 0 ? void 0 : y.leave : (N = r.get(f.kind)) === null || N === void 0 ? void 0 : N.enter;
2335
- if (k = P == null ? void 0 : P.call(t, f, h, m, E, S), k === Hn)
2335
+ if (R = P == null ? void 0 : P.call(t, f, h, m, _, v), R === Qn)
2336
2336
  break;
2337
- if (k === !1) {
2337
+ if (R === !1) {
2338
2338
  if (!x) {
2339
- E.pop();
2339
+ _.pop();
2340
2340
  continue;
2341
2341
  }
2342
- } else if (k !== void 0 && (c.push([h, k]), !x))
2343
- if (ct(k))
2344
- f = k;
2342
+ } else if (R !== void 0 && (c.push([h, R]), !x))
2343
+ if (ft(R))
2344
+ f = R;
2345
2345
  else {
2346
- E.pop();
2346
+ _.pop();
2347
2347
  continue;
2348
2348
  }
2349
2349
  }
2350
- if (k === void 0 && V && c.push([h, f]), x)
2351
- E.pop();
2350
+ if (R === void 0 && q && c.push([h, f]), x)
2351
+ _.pop();
2352
2352
  else {
2353
2353
  var b;
2354
2354
  i = {
@@ -2357,12 +2357,12 @@ function Gn(e, t, n = It) {
2357
2357
  keys: o,
2358
2358
  edits: c,
2359
2359
  prev: i
2360
- }, s = Array.isArray(f), o = s ? f : (b = n[f.kind]) !== null && b !== void 0 ? b : [], a = -1, c = [], m && S.push(m), m = f;
2360
+ }, s = Array.isArray(f), o = s ? f : (b = n[f.kind]) !== null && b !== void 0 ? b : [], a = -1, c = [], m && v.push(m), m = f;
2361
2361
  }
2362
2362
  } while (i !== void 0);
2363
2363
  return c.length !== 0 ? c[c.length - 1][1] : e;
2364
2364
  }
2365
- function Yn(e, t) {
2365
+ function Wn(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 Yn(e, t) {
2372
2372
  leave: e.leave
2373
2373
  };
2374
2374
  }
2375
- function zn(e) {
2376
- return Gn(e, Xn);
2375
+ function Zn(e) {
2376
+ return Kn(e, tr);
2377
2377
  }
2378
- const Jn = 80, Xn = {
2378
+ const er = 80, tr = {
2379
2379
  Name: {
2380
2380
  leave: (e) => e.value
2381
2381
  },
@@ -2390,7 +2390,7 @@ const Jn = 80, Xn = {
2390
2390
  },
2391
2391
  OperationDefinition: {
2392
2392
  leave(e) {
2393
- const t = v("(", p(e.variableDefinitions, ", "), ")"), n = p(
2393
+ const t = S("(", p(e.variableDefinitions, ", "), ")"), n = p(
2394
2394
  [
2395
2395
  e.operation,
2396
2396
  p([e.name, t]),
@@ -2402,17 +2402,17 @@ const Jn = 80, Xn = {
2402
2402
  }
2403
2403
  },
2404
2404
  VariableDefinition: {
2405
- leave: ({ variable: e, type: t, defaultValue: n, directives: r }) => e + ": " + t + v(" = ", n) + v(" ", p(r, " "))
2405
+ leave: ({ variable: e, type: t, defaultValue: n, directives: r }) => e + ": " + t + S(" = ", n) + S(" ", p(r, " "))
2406
2406
  },
2407
2407
  SelectionSet: {
2408
2408
  leave: ({ selections: e }) => F(e)
2409
2409
  },
2410
2410
  Field: {
2411
2411
  leave({ alias: e, name: t, arguments: n, directives: r, selectionSet: i }) {
2412
- const s = v("", e, ": ") + t;
2413
- let o = s + v("(", p(n, ", "), ")");
2414
- return o.length > Jn && (o = s + v(`(
2415
- `, pe(p(n, `
2412
+ const s = S("", e, ": ") + t;
2413
+ let o = s + S("(", p(n, ", "), ")");
2414
+ return o.length > er && (o = s + S(`(
2415
+ `, ge(p(n, `
2416
2416
  `)), `
2417
2417
  )`)), p([o, p(r, " "), i], " ");
2418
2418
  }
@@ -2422,13 +2422,13 @@ const Jn = 80, Xn = {
2422
2422
  },
2423
2423
  // Fragments
2424
2424
  FragmentSpread: {
2425
- leave: ({ name: e, directives: t }) => "..." + e + v(" ", p(t, " "))
2425
+ leave: ({ name: e, directives: t }) => "..." + e + S(" ", p(t, " "))
2426
2426
  },
2427
2427
  InlineFragment: {
2428
2428
  leave: ({ typeCondition: e, directives: t, selectionSet: n }) => p(
2429
2429
  [
2430
2430
  "...",
2431
- v("on ", e),
2431
+ S("on ", e),
2432
2432
  p(t, " "),
2433
2433
  n
2434
2434
  ],
@@ -2438,7 +2438,7 @@ const Jn = 80, Xn = {
2438
2438
  FragmentDefinition: {
2439
2439
  leave: ({ name: e, typeCondition: t, variableDefinitions: n, directives: r, selectionSet: i }) => (
2440
2440
  // or removed in the future.
2441
- `fragment ${e}${v("(", p(n, ", "), ")")} on ${t} ${v("", p(r, " "), " ")}` + i
2441
+ `fragment ${e}${S("(", p(n, ", "), ")")} on ${t} ${S("", p(r, " "), " ")}` + i
2442
2442
  )
2443
2443
  },
2444
2444
  // Value
@@ -2449,7 +2449,7 @@ const Jn = 80, Xn = {
2449
2449
  leave: ({ value: e }) => e
2450
2450
  },
2451
2451
  StringValue: {
2452
- leave: ({ value: e, block: t }) => t ? En(e) : Bn(e)
2452
+ leave: ({ value: e, block: t }) => t ? Nn(e) : Yn(e)
2453
2453
  },
2454
2454
  BooleanValue: {
2455
2455
  leave: ({ value: e }) => e ? "true" : "false"
@@ -2471,7 +2471,7 @@ const Jn = 80, Xn = {
2471
2471
  },
2472
2472
  // Directive
2473
2473
  Directive: {
2474
- leave: ({ name: e, arguments: t }) => "@" + e + v("(", p(t, ", "), ")")
2474
+ leave: ({ name: e, arguments: t }) => "@" + e + S("(", p(t, ", "), ")")
2475
2475
  },
2476
2476
  // Type
2477
2477
  NamedType: {
@@ -2485,23 +2485,23 @@ const Jn = 80, Xn = {
2485
2485
  },
2486
2486
  // Type System Definitions
2487
2487
  SchemaDefinition: {
2488
- leave: ({ description: e, directives: t, operationTypes: n }) => v("", e, `
2488
+ leave: ({ description: e, directives: t, operationTypes: n }) => S("", e, `
2489
2489
  `) + p(["schema", p(t, " "), F(n)], " ")
2490
2490
  },
2491
2491
  OperationTypeDefinition: {
2492
2492
  leave: ({ operation: e, type: t }) => e + ": " + t
2493
2493
  },
2494
2494
  ScalarTypeDefinition: {
2495
- leave: ({ description: e, name: t, directives: n }) => v("", e, `
2495
+ leave: ({ description: e, name: t, directives: n }) => S("", e, `
2496
2496
  `) + p(["scalar", t, p(n, " ")], " ")
2497
2497
  },
2498
2498
  ObjectTypeDefinition: {
2499
- leave: ({ description: e, name: t, interfaces: n, directives: r, fields: i }) => v("", e, `
2499
+ leave: ({ description: e, name: t, interfaces: n, directives: r, fields: i }) => S("", e, `
2500
2500
  `) + p(
2501
2501
  [
2502
2502
  "type",
2503
2503
  t,
2504
- v("implements ", p(n, " & ")),
2504
+ S("implements ", p(n, " & ")),
2505
2505
  p(r, " "),
2506
2506
  F(i)
2507
2507
  ],
@@ -2509,26 +2509,26 @@ const Jn = 80, Xn = {
2509
2509
  )
2510
2510
  },
2511
2511
  FieldDefinition: {
2512
- leave: ({ description: e, name: t, arguments: n, type: r, directives: i }) => v("", e, `
2513
- `) + t + (lt(n) ? v(`(
2514
- `, pe(p(n, `
2512
+ leave: ({ description: e, name: t, arguments: n, type: r, directives: i }) => S("", e, `
2513
+ `) + t + (dt(n) ? S(`(
2514
+ `, ge(p(n, `
2515
2515
  `)), `
2516
- )`) : v("(", p(n, ", "), ")")) + ": " + r + v(" ", p(i, " "))
2516
+ )`) : S("(", p(n, ", "), ")")) + ": " + r + S(" ", p(i, " "))
2517
2517
  },
2518
2518
  InputValueDefinition: {
2519
- leave: ({ description: e, name: t, type: n, defaultValue: r, directives: i }) => v("", e, `
2519
+ leave: ({ description: e, name: t, type: n, defaultValue: r, directives: i }) => S("", e, `
2520
2520
  `) + p(
2521
- [t + ": " + n, v("= ", r), p(i, " ")],
2521
+ [t + ": " + n, S("= ", r), p(i, " ")],
2522
2522
  " "
2523
2523
  )
2524
2524
  },
2525
2525
  InterfaceTypeDefinition: {
2526
- leave: ({ description: e, name: t, interfaces: n, directives: r, fields: i }) => v("", e, `
2526
+ leave: ({ description: e, name: t, interfaces: n, directives: r, fields: i }) => S("", e, `
2527
2527
  `) + p(
2528
2528
  [
2529
2529
  "interface",
2530
2530
  t,
2531
- v("implements ", p(n, " & ")),
2531
+ S("implements ", p(n, " & ")),
2532
2532
  p(r, " "),
2533
2533
  F(i)
2534
2534
  ],
@@ -2536,30 +2536,30 @@ const Jn = 80, Xn = {
2536
2536
  )
2537
2537
  },
2538
2538
  UnionTypeDefinition: {
2539
- leave: ({ description: e, name: t, directives: n, types: r }) => v("", e, `
2539
+ leave: ({ description: e, name: t, directives: n, types: r }) => S("", e, `
2540
2540
  `) + p(
2541
- ["union", t, p(n, " "), v("= ", p(r, " | "))],
2541
+ ["union", t, p(n, " "), S("= ", p(r, " | "))],
2542
2542
  " "
2543
2543
  )
2544
2544
  },
2545
2545
  EnumTypeDefinition: {
2546
- leave: ({ description: e, name: t, directives: n, values: r }) => v("", e, `
2546
+ leave: ({ description: e, name: t, directives: n, values: r }) => S("", e, `
2547
2547
  `) + p(["enum", t, p(n, " "), F(r)], " ")
2548
2548
  },
2549
2549
  EnumValueDefinition: {
2550
- leave: ({ description: e, name: t, directives: n }) => v("", e, `
2550
+ leave: ({ description: e, name: t, directives: n }) => S("", e, `
2551
2551
  `) + p([t, p(n, " ")], " ")
2552
2552
  },
2553
2553
  InputObjectTypeDefinition: {
2554
- leave: ({ description: e, name: t, directives: n, fields: r }) => v("", e, `
2554
+ leave: ({ description: e, name: t, directives: n, fields: r }) => S("", e, `
2555
2555
  `) + p(["input", t, p(n, " "), F(r)], " ")
2556
2556
  },
2557
2557
  DirectiveDefinition: {
2558
- leave: ({ description: e, name: t, arguments: n, repeatable: r, locations: i }) => v("", e, `
2559
- `) + "directive @" + t + (lt(n) ? v(`(
2560
- `, pe(p(n, `
2558
+ leave: ({ description: e, name: t, arguments: n, repeatable: r, locations: i }) => S("", e, `
2559
+ `) + "directive @" + t + (dt(n) ? S(`(
2560
+ `, ge(p(n, `
2561
2561
  `)), `
2562
- )`) : v("(", p(n, ", "), ")")) + (r ? " repeatable" : "") + " on " + p(i, " | ")
2562
+ )`) : S("(", p(n, ", "), ")")) + (r ? " repeatable" : "") + " on " + p(i, " | ")
2563
2563
  },
2564
2564
  SchemaExtension: {
2565
2565
  leave: ({ directives: e, operationTypes: t }) => p(
@@ -2575,7 +2575,7 @@ const Jn = 80, Xn = {
2575
2575
  [
2576
2576
  "extend type",
2577
2577
  e,
2578
- v("implements ", p(t, " & ")),
2578
+ S("implements ", p(t, " & ")),
2579
2579
  p(n, " "),
2580
2580
  F(r)
2581
2581
  ],
@@ -2587,7 +2587,7 @@ const Jn = 80, Xn = {
2587
2587
  [
2588
2588
  "extend interface",
2589
2589
  e,
2590
- v("implements ", p(t, " & ")),
2590
+ S("implements ", p(t, " & ")),
2591
2591
  p(n, " "),
2592
2592
  F(r)
2593
2593
  ],
@@ -2600,7 +2600,7 @@ const Jn = 80, Xn = {
2600
2600
  "extend union",
2601
2601
  e,
2602
2602
  p(t, " "),
2603
- v("= ", p(n, " | "))
2603
+ S("= ", p(n, " | "))
2604
2604
  ],
2605
2605
  " "
2606
2606
  )
@@ -2617,43 +2617,43 @@ function p(e, t = "") {
2617
2617
  return (n = e == null ? void 0 : e.filter((r) => r).join(t)) !== null && n !== void 0 ? n : "";
2618
2618
  }
2619
2619
  function F(e) {
2620
- return v(`{
2621
- `, pe(p(e, `
2620
+ return S(`{
2621
+ `, ge(p(e, `
2622
2622
  `)), `
2623
2623
  }`);
2624
2624
  }
2625
- function v(e, t, n = "") {
2625
+ function S(e, t, n = "") {
2626
2626
  return t != null && t !== "" ? e + t + n : "";
2627
2627
  }
2628
- function pe(e) {
2629
- return v(" ", e.replace(/\n/g, `
2628
+ function ge(e) {
2629
+ return S(" ", e.replace(/\n/g, `
2630
2630
  `));
2631
2631
  }
2632
- function lt(e) {
2632
+ function dt(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 We = JSON, Qn = (e) => e.toUpperCase(), Kn = (e) => {
2637
+ const Ze = JSON, nr = (e) => e.toUpperCase(), rr = (e) => {
2638
2638
  const t = {};
2639
2639
  return e.forEach((n, r) => {
2640
2640
  t[r] = n;
2641
2641
  }), t;
2642
- }, Wn = (e, t, n) => e.document ? e : {
2642
+ }, ir = (e, t, n) => e.document ? e : {
2643
2643
  document: e,
2644
2644
  variables: t,
2645
2645
  requestHeaders: n,
2646
2646
  signal: void 0
2647
- }, Zn = (e, t, n) => e.query ? e : {
2647
+ }, sr = (e, t, n) => e.query ? e : {
2648
2648
  query: e,
2649
2649
  variables: t,
2650
2650
  requestHeaders: n,
2651
2651
  signal: void 0
2652
- }, er = (e, t) => e.documents ? e : {
2652
+ }, or = (e, t) => e.documents ? e : {
2653
2653
  documents: e,
2654
2654
  requestHeaders: t,
2655
2655
  signal: void 0
2656
- }, ft = (e) => {
2656
+ }, pt = (e) => {
2657
2657
  var r, i;
2658
2658
  let t;
2659
2659
  const n = e.definitions.filter((s) => s.kind === "OperationDefinition");
@@ -2662,35 +2662,35 @@ const We = JSON, Qn = (e) => e.toUpperCase(), Kn = (e) => {
2662
2662
  if (typeof e == "string") {
2663
2663
  let n;
2664
2664
  try {
2665
- const r = Rt(e);
2666
- n = ft(r);
2665
+ const r = Ft(e);
2666
+ n = pt(r);
2667
2667
  } catch (r) {
2668
2668
  }
2669
2669
  return { query: e, operationName: n };
2670
2670
  }
2671
- const t = ft(e);
2672
- return { query: zn(e), operationName: t };
2671
+ const t = pt(e);
2672
+ return { query: Zn(e), operationName: t };
2673
2673
  };
2674
- class X extends Error {
2674
+ class Q extends Error {
2675
2675
  constructor(t, n) {
2676
- const r = `${X.extractMessage(t)}: ${JSON.stringify({
2676
+ const r = `${Q.extractMessage(t)}: ${JSON.stringify({
2677
2677
  response: t,
2678
2678
  request: n
2679
2679
  })}`;
2680
- super(r), Object.setPrototypeOf(this, X.prototype), this.response = t, this.request = n, typeof Error.captureStackTrace == "function" && Error.captureStackTrace(this, X);
2680
+ super(r), Object.setPrototypeOf(this, Q.prototype), this.response = t, this.request = n, typeof Error.captureStackTrace == "function" && Error.captureStackTrace(this, Q);
2681
2681
  }
2682
2682
  static extractMessage(t) {
2683
2683
  var n, r, i;
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 tr = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
2688
- function Ze(e) {
2687
+ var ar = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
2688
+ function et(e) {
2689
2689
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2690
2690
  }
2691
- var je = { exports: {} };
2691
+ var qe = { exports: {} };
2692
2692
  (function(e, t) {
2693
- var n = typeof self != "undefined" ? self : tr, r = function() {
2693
+ var n = typeof self != "undefined" ? self : ar, r = function() {
2694
2694
  function s() {
2695
2695
  this.fetch = !1, this.DOMException = n.DOMException;
2696
2696
  }
@@ -2733,10 +2733,10 @@ var je = { exports: {} };
2733
2733
  throw new TypeError("Invalid character in header field name");
2734
2734
  return u.toLowerCase();
2735
2735
  }
2736
- function E(u) {
2736
+ function _(u) {
2737
2737
  return typeof u != "string" && (u = String(u)), u;
2738
2738
  }
2739
- function S(u) {
2739
+ function v(u) {
2740
2740
  var d = {
2741
2741
  next: function() {
2742
2742
  var T = u.shift();
@@ -2757,7 +2757,7 @@ var je = { exports: {} };
2757
2757
  }, this);
2758
2758
  }
2759
2759
  y.prototype.append = function(u, d) {
2760
- u = m(u), d = E(d);
2760
+ u = m(u), d = _(d);
2761
2761
  var T = this.map[u];
2762
2762
  this.map[u] = T ? T + ", " + d : d;
2763
2763
  }, y.prototype.delete = function(u) {
@@ -2767,7 +2767,7 @@ var je = { exports: {} };
2767
2767
  }, y.prototype.has = function(u) {
2768
2768
  return this.map.hasOwnProperty(m(u));
2769
2769
  }, y.prototype.set = function(u, d) {
2770
- this.map[m(u)] = E(d);
2770
+ this.map[m(u)] = _(d);
2771
2771
  }, y.prototype.forEach = function(u, d) {
2772
2772
  for (var T in this.map)
2773
2773
  this.map.hasOwnProperty(T) && u.call(d, this.map[T], T, this);
@@ -2775,17 +2775,17 @@ var je = { exports: {} };
2775
2775
  var u = [];
2776
2776
  return this.forEach(function(d, T) {
2777
2777
  u.push(T);
2778
- }), S(u);
2778
+ }), v(u);
2779
2779
  }, y.prototype.values = function() {
2780
2780
  var u = [];
2781
2781
  return this.forEach(function(d) {
2782
2782
  u.push(d);
2783
- }), S(u);
2783
+ }), v(u);
2784
2784
  }, y.prototype.entries = function() {
2785
2785
  var u = [];
2786
2786
  return this.forEach(function(d, T) {
2787
2787
  u.push([T, d]);
2788
- }), S(u);
2788
+ }), v(u);
2789
2789
  }, a.iterable && (y.prototype[Symbol.iterator] = y.prototype.entries);
2790
2790
  function N(u) {
2791
2791
  if (u.bodyUsed)
@@ -2805,11 +2805,11 @@ var je = { exports: {} };
2805
2805
  var d = new FileReader(), T = b(d);
2806
2806
  return d.readAsArrayBuffer(u), T;
2807
2807
  }
2808
- function V(u) {
2808
+ function q(u) {
2809
2809
  var d = new FileReader(), T = b(d);
2810
2810
  return d.readAsText(u), T;
2811
2811
  }
2812
- function k(u) {
2812
+ function R(u) {
2813
2813
  for (var d = new Uint8Array(u), T = new Array(d.length), w = 0; w < d.length; w++)
2814
2814
  T[w] = String.fromCharCode(d[w]);
2815
2815
  return T.join("");
@@ -2820,7 +2820,7 @@ var je = { exports: {} };
2820
2820
  var d = new Uint8Array(u.byteLength);
2821
2821
  return d.set(new Uint8Array(u)), d.buffer;
2822
2822
  }
2823
- function j() {
2823
+ function H() {
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() {
@@ -2841,40 +2841,40 @@ var je = { exports: {} };
2841
2841
  if (u)
2842
2842
  return u;
2843
2843
  if (this._bodyBlob)
2844
- return V(this._bodyBlob);
2844
+ return q(this._bodyBlob);
2845
2845
  if (this._bodyArrayBuffer)
2846
- return Promise.resolve(k(this._bodyArrayBuffer));
2846
+ return Promise.resolve(R(this._bodyArrayBuffer));
2847
2847
  if (this._bodyFormData)
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(Wt);
2851
+ return this.text().then(rn);
2852
2852
  }), this.json = function() {
2853
2853
  return this.text().then(JSON.parse);
2854
2854
  }, this;
2855
2855
  }
2856
- var se = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
2857
- function oe(u) {
2856
+ var ae = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
2857
+ function ce(u) {
2858
2858
  var d = u.toUpperCase();
2859
- return se.indexOf(d) > -1 ? d : u;
2859
+ return ae.indexOf(d) > -1 ? d : u;
2860
2860
  }
2861
- function $(u, d) {
2861
+ function U(u, d) {
2862
2862
  d = d || {};
2863
2863
  var T = d.body;
2864
- if (u instanceof $) {
2864
+ if (u instanceof U) {
2865
2865
  if (u.bodyUsed)
2866
2866
  throw new TypeError("Already read");
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 = oe(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)
2870
+ if (this.credentials = d.credentials || this.credentials || "same-origin", (d.headers || !this.headers) && (this.headers = new y(d.headers)), this.method = ce(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
- $.prototype.clone = function() {
2875
- return new $(this, { body: this._bodyInit });
2874
+ U.prototype.clone = function() {
2875
+ return new U(this, { body: this._bodyInit });
2876
2876
  };
2877
- function Wt(u) {
2877
+ function rn(u) {
2878
2878
  var d = new FormData();
2879
2879
  return u.trim().split("&").forEach(function(T) {
2880
2880
  if (T) {
@@ -2883,21 +2883,21 @@ var je = { exports: {} };
2883
2883
  }
2884
2884
  }), d;
2885
2885
  }
2886
- function Zt(u) {
2886
+ function sn(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
2889
  var D = w.split(":"), A = D.shift().trim();
2890
2890
  if (A) {
2891
- var ae = D.join(":").trim();
2892
- d.append(A, ae);
2891
+ var ue = D.join(":").trim();
2892
+ d.append(A, ue);
2893
2893
  }
2894
2894
  }), d;
2895
2895
  }
2896
- j.call($.prototype);
2896
+ H.call(U.prototype);
2897
2897
  function M(u, d) {
2898
2898
  d || (d = {}), this.type = "default", this.status = d.status === void 0 ? 200 : d.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in d ? d.statusText : "OK", this.headers = new y(d.headers), this.url = d.url || "", this._initBody(u);
2899
2899
  }
2900
- j.call(M.prototype), M.prototype.clone = function() {
2900
+ H.call(M.prototype), M.prototype.clone = function() {
2901
2901
  return new M(this._bodyInit, {
2902
2902
  status: this.status,
2903
2903
  statusText: this.statusText,
@@ -2908,9 +2908,9 @@ var je = { exports: {} };
2908
2908
  var u = new M(null, { status: 0, statusText: "" });
2909
2909
  return u.type = "error", u;
2910
2910
  };
2911
- var en = [301, 302, 303, 307, 308];
2911
+ var on = [301, 302, 303, 307, 308];
2912
2912
  M.redirect = function(u, d) {
2913
- if (en.indexOf(d) === -1)
2913
+ if (on.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,117 +2923,117 @@ var je = { 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 be(u, d) {
2926
+ function xe(u, d) {
2927
2927
  return new Promise(function(T, w) {
2928
- var D = new $(u, d);
2928
+ var D = new U(u, d);
2929
2929
  if (D.signal && D.signal.aborted)
2930
2930
  return w(new o.DOMException("Aborted", "AbortError"));
2931
2931
  var A = new XMLHttpRequest();
2932
- function ae() {
2932
+ function ue() {
2933
2933
  A.abort();
2934
2934
  }
2935
2935
  A.onload = function() {
2936
2936
  var te = {
2937
2937
  status: A.status,
2938
2938
  statusText: A.statusText,
2939
- headers: Zt(A.getAllResponseHeaders() || "")
2939
+ headers: sn(A.getAllResponseHeaders() || "")
2940
2940
  };
2941
2941
  te.url = "responseURL" in A ? A.responseURL : te.headers.get("X-Request-URL");
2942
- var xe = "response" in A ? A.response : A.responseText;
2943
- T(new M(xe, te));
2942
+ var Oe = "response" in A ? A.response : A.responseText;
2943
+ T(new M(Oe, te));
2944
2944
  }, A.onerror = function() {
2945
2945
  w(new TypeError("Network request failed"));
2946
2946
  }, A.ontimeout = function() {
2947
2947
  w(new TypeError("Network request failed"));
2948
2948
  }, A.onabort = function() {
2949
2949
  w(new o.DOMException("Aborted", "AbortError"));
2950
- }, A.open(D.method, D.url, !0), D.credentials === "include" ? A.withCredentials = !0 : D.credentials === "omit" && (A.withCredentials = !1), "responseType" in A && a.blob && (A.responseType = "blob"), D.headers.forEach(function(te, xe) {
2951
- A.setRequestHeader(xe, te);
2952
- }), D.signal && (D.signal.addEventListener("abort", ae), A.onreadystatechange = function() {
2953
- A.readyState === 4 && D.signal.removeEventListener("abort", ae);
2950
+ }, A.open(D.method, D.url, !0), D.credentials === "include" ? A.withCredentials = !0 : D.credentials === "omit" && (A.withCredentials = !1), "responseType" in A && a.blob && (A.responseType = "blob"), D.headers.forEach(function(te, Oe) {
2951
+ A.setRequestHeader(Oe, te);
2952
+ }), D.signal && (D.signal.addEventListener("abort", ue), A.onreadystatechange = function() {
2953
+ A.readyState === 4 && D.signal.removeEventListener("abort", ue);
2954
2954
  }), A.send(typeof D._bodyInit == "undefined" ? null : D._bodyInit);
2955
2955
  });
2956
2956
  }
2957
- return be.polyfill = !0, s.fetch || (s.fetch = be, s.Headers = y, s.Request = $, s.Response = M), o.Headers = y, o.Request = $, o.Response = M, o.fetch = be, Object.defineProperty(o, "__esModule", { value: !0 }), o;
2957
+ return xe.polyfill = !0, s.fetch || (s.fetch = xe, s.Headers = y, s.Request = U, s.Response = M), o.Headers = y, o.Request = U, o.Response = M, o.fetch = xe, 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
- })(je, je.exports);
2963
- var qe = je.exports;
2964
- const me = /* @__PURE__ */ Ze(qe), nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2962
+ })(qe, qe.exports);
2963
+ var He = qe.exports;
2964
+ const ye = /* @__PURE__ */ et(He), cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2965
2965
  __proto__: null,
2966
- default: me
2967
- }, Symbol.toStringTag, { value: "Module" })), Y = (e) => {
2966
+ default: ye
2967
+ }, Symbol.toStringTag, { value: "Module" })), z = (e) => {
2968
2968
  let t = {};
2969
- return e && (typeof Headers != "undefined" && e instanceof Headers || nr && qe.Headers && e instanceof qe.Headers ? t = Kn(e) : Array.isArray(e) ? e.forEach(([n, r]) => {
2969
+ return e && (typeof Headers != "undefined" && e instanceof Headers || cr && He.Headers && e instanceof He.Headers ? t = rr(e) : Array.isArray(e) ? e.forEach(([n, r]) => {
2970
2970
  n && r !== void 0 && (t[n] = r);
2971
2971
  }) : t = e), t;
2972
- }, ht = (e) => e.replace(/([\s,]|#[^\n\r]+)+/g, " ").trim(), rr = (e) => {
2972
+ }, mt = (e) => e.replace(/([\s,]|#[^\n\r]+)+/g, " ").trim(), ur = (e) => {
2973
2973
  if (!Array.isArray(e.query)) {
2974
- const r = e, i = [`query=${encodeURIComponent(ht(r.query))}`];
2974
+ const r = e, i = [`query=${encodeURIComponent(mt(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: ht(i),
2980
+ query: mt(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
- }, ir = (e) => (t) => U(void 0, null, function* () {
2984
+ }, lr = (e) => (t) => V(void 0, null, function* () {
2985
2985
  var N;
2986
- const { url: n, query: r, variables: i, operationName: s, fetch: o, fetchOptions: a, middleware: c } = t, f = _({}, t.headers);
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 = sr(r, i, s, a.jsonSerializer), typeof m == "string" && (f["Content-Type"] = "application/json")) : h = rr({
2988
+ e === "POST" ? (m = fr(r, i, s, a.jsonSerializer), typeof m == "string" && (f["Content-Type"] = "application/json")) : h = ur({
2989
2989
  query: r,
2990
2990
  variables: i,
2991
2991
  operationName: s,
2992
- jsonSerializer: (N = a.jsonSerializer) != null ? N : We
2992
+ jsonSerializer: (N = a.jsonSerializer) != null ? N : Ze
2993
2993
  });
2994
- const E = _({
2994
+ const _ = E({
2995
2995
  method: e,
2996
2996
  headers: f,
2997
2997
  body: m
2998
2998
  }, a);
2999
- let S = n, y = E;
2999
+ let v = n, y = _;
3000
3000
  if (c) {
3001
- const b = yield Promise.resolve(c(q(_({}, E), { url: n, operationName: s, variables: i }))), { url: V } = b, k = H(b, ["url"]);
3002
- S = V, y = k;
3001
+ const b = yield Promise.resolve(c(B(E({}, _), { url: n, operationName: s, variables: i }))), { url: q } = b, R = G(b, ["url"]);
3002
+ v = q, y = R;
3003
3003
  }
3004
- return h && (S = `${S}?${h}`), yield o(S, y);
3004
+ return h && (v = `${v}?${h}`), yield o(v, y);
3005
3005
  });
3006
- class vi {
3006
+ class Oi {
3007
3007
  constructor(t, n = {}) {
3008
- this.url = t, this.requestConfig = n, this.rawRequest = (...r) => U(this, null, function* () {
3009
- const [i, s, o] = r, a = Zn(i, s, o), b = this.requestConfig, { headers: c, fetch: f = me, method: h = "POST", requestMiddleware: m, responseMiddleware: E } = b, S = H(b, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: y } = this;
3010
- a.signal !== void 0 && (S.signal = a.signal);
3008
+ this.url = t, this.requestConfig = n, this.rawRequest = (...r) => V(this, null, function* () {
3009
+ const [i, s, o] = r, a = sr(i, s, o), b = this.requestConfig, { headers: c, fetch: f = ye, method: h = "POST", requestMiddleware: m, responseMiddleware: _ } = b, v = G(b, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: y } = this;
3010
+ a.signal !== void 0 && (v.signal = a.signal);
3011
3011
  const { operationName: N } = Re(a.query);
3012
- return ke({
3012
+ return Le({
3013
3013
  url: y,
3014
3014
  query: a.query,
3015
3015
  variables: a.variables,
3016
- headers: _(_({}, Y(Le(c))), Y(a.requestHeaders)),
3016
+ headers: E(E({}, z(Pe(c))), z(a.requestHeaders)),
3017
3017
  operationName: N,
3018
3018
  fetch: f,
3019
3019
  method: h,
3020
- fetchOptions: S,
3020
+ fetchOptions: v,
3021
3021
  middleware: m
3022
- }).then((x) => (E && E(x), x)).catch((x) => {
3023
- throw E && E(x), x;
3022
+ }).then((x) => (_ && _(x), x)).catch((x) => {
3023
+ throw _ && _(x), x;
3024
3024
  });
3025
3025
  });
3026
3026
  }
3027
3027
  request(t, ...n) {
3028
- return U(this, null, function* () {
3029
- const [r, i] = n, s = Wn(t, r, i), N = this.requestConfig, { headers: o, fetch: a = me, method: c = "POST", requestMiddleware: f, responseMiddleware: h } = N, m = H(N, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: E } = this;
3028
+ return V(this, null, function* () {
3029
+ const [r, i] = n, s = ir(t, r, i), N = this.requestConfig, { headers: o, fetch: a = ye, method: c = "POST", requestMiddleware: f, responseMiddleware: h } = N, m = G(N, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: _ } = this;
3030
3030
  s.signal !== void 0 && (m.signal = s.signal);
3031
- const { query: S, operationName: y } = Re(s.document);
3032
- return ke({
3033
- url: E,
3034
- query: S,
3031
+ const { query: v, operationName: y } = Re(s.document);
3032
+ return Le({
3033
+ url: _,
3034
+ query: v,
3035
3035
  variables: s.variables,
3036
- headers: _(_({}, Y(Le(o))), Y(s.requestHeaders)),
3036
+ headers: E(E({}, z(Pe(o))), z(s.requestHeaders)),
3037
3037
  operationName: y,
3038
3038
  fetch: a,
3039
3039
  method: c,
@@ -3047,17 +3047,17 @@ class vi {
3047
3047
  // prettier-ignore
3048
3048
  batchRequests(t, n) {
3049
3049
  var f;
3050
- const r = er(t, n), c = this.requestConfig, { headers: i } = c, s = H(c, ["headers"]);
3050
+ const r = or(t, n), c = this.requestConfig, { headers: i } = c, s = G(c, ["headers"]);
3051
3051
  r.signal !== void 0 && (s.signal = r.signal);
3052
3052
  const o = r.documents.map(({ document: h }) => Re(h).query), a = r.documents.map(({ variables: h }) => h);
3053
- return ke({
3053
+ return Le({
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: _(_({}, Y(Le(i))), Y(r.requestHeaders)),
3058
+ headers: E(E({}, z(Pe(i))), z(r.requestHeaders)),
3059
3059
  operationName: void 0,
3060
- fetch: (f = this.requestConfig.fetch) != null ? f : me,
3060
+ fetch: (f = this.requestConfig.fetch) != null ? f : ye,
3061
3061
  method: this.requestConfig.method || "POST",
3062
3062
  fetchOptions: s,
3063
3063
  middleware: this.requestConfig.requestMiddleware
@@ -3082,40 +3082,40 @@ class vi {
3082
3082
  return this.url = t, this;
3083
3083
  }
3084
3084
  }
3085
- const ke = (e) => U(void 0, null, function* () {
3085
+ const Le = (e) => V(void 0, null, function* () {
3086
3086
  var h, m;
3087
- const { query: t, variables: n, fetchOptions: r } = e, i = ir(Qn((h = e.method) != null ? h : "post")), s = Array.isArray(e.query), o = yield i(e), a = yield or(o, (m = r.jsonSerializer) != null ? m : We), c = Array.isArray(a) ? !a.some(({ data: S }) => !S) : !!a.data, f = Array.isArray(a) || !a.errors || Array.isArray(a.errors) && !a.errors.length || r.errorPolicy === "all" || r.errorPolicy === "ignore";
3087
+ const { query: t, variables: n, fetchOptions: r } = e, i = lr(nr((h = e.method) != null ? h : "post")), s = Array.isArray(e.query), o = yield i(e), a = yield hr(o, (m = r.jsonSerializer) != null ? m : Ze), 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 E = (Array.isArray(a), a), { errors: S } = E, y = H(E, ["errors"]), N = r.errorPolicy === "ignore" ? y : a;
3090
- return q(_({}, s ? { data: N } : N), {
3089
+ const _ = (Array.isArray(a), a), { errors: v } = _, y = G(_, ["errors"]), N = r.errorPolicy === "ignore" ? y : a;
3090
+ return B(E({}, s ? { data: N } : N), {
3091
3091
  headers: o.headers,
3092
3092
  status: o.status
3093
3093
  });
3094
3094
  } else {
3095
- const S = typeof a == "string" ? {
3095
+ const v = typeof a == "string" ? {
3096
3096
  error: a
3097
3097
  } : a;
3098
- throw new X(
3098
+ throw new Q(
3099
3099
  // @ts-expect-error TODO
3100
- q(_({}, S), { status: o.status, headers: o.headers }),
3100
+ B(E({}, v), { status: o.status, headers: o.headers }),
3101
3101
  { query: t, variables: n }
3102
3102
  );
3103
3103
  }
3104
- }), sr = (e, t, n, r) => {
3105
- const i = r != null ? r : We;
3104
+ }), fr = (e, t, n, r) => {
3105
+ const i = r != null ? r : Ze;
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
- }, or = (e, t) => U(void 0, null, function* () {
3112
+ }, hr = (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
- }), Le = (e) => typeof e == "function" ? e() : e;
3118
- var He = { exports: {} };
3117
+ }), Pe = (e) => typeof e == "function" ? e() : e;
3118
+ var Ge = { 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 He = { exports: {} };
3133
3133
  return i == null ? f : i.call(this, c, f);
3134
3134
  };
3135
3135
  }
3136
- })(He, He.exports);
3137
- var ar = He.exports;
3138
- const Si = /* @__PURE__ */ Ze(ar);
3139
- var ye = function() {
3140
- return ye = Object.assign || function(t) {
3136
+ })(Ge, Ge.exports);
3137
+ var dr = Ge.exports;
3138
+ const Di = /* @__PURE__ */ et(dr);
3139
+ var _e = function() {
3140
+ return _e = 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
- }, ye.apply(this, arguments);
3147
- }, ge = /* @__PURE__ */ new Map(), Ge = /* @__PURE__ */ new Map(), Lt = !0, Ee = !1;
3148
- function Pt(e) {
3146
+ }, _e.apply(this, arguments);
3147
+ }, Ee = /* @__PURE__ */ new Map(), Ye = /* @__PURE__ */ new Map(), $t = !0, Te = !1;
3148
+ function Ut(e) {
3149
3149
  return e.replace(/[\s,]+/g, " ").trim();
3150
3150
  }
3151
- function cr(e) {
3152
- return Pt(e.source.body.substring(e.start, e.end));
3151
+ function pr(e) {
3152
+ return Ut(e.source.body.substring(e.start, e.end));
3153
3153
  }
3154
- function ur(e) {
3154
+ function mr(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 = cr(r.loc), o = Ge.get(i);
3159
- o && !o.has(s) ? Lt && console.warn("Warning: fragment with name " + i + ` already exists.
3158
+ var i = r.name.value, s = pr(r.loc), o = Ye.get(i);
3159
+ o && !o.has(s) ? $t && 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 || Ge.set(i, o = /* @__PURE__ */ new Set()), o.add(s), t.has(s) || (t.add(s), n.push(r));
3161
+ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`) : o || Ye.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
- }), ye(ye({}, e), { definitions: n });
3164
+ }), _e(_e({}, e), { definitions: n });
3165
3165
  }
3166
- function lr(e) {
3166
+ function gr(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,57 +3174,57 @@ function lr(e) {
3174
3174
  var n = e.loc;
3175
3175
  return n && (delete n.startToken, delete n.endToken), e;
3176
3176
  }
3177
- function fr(e) {
3178
- var t = Pt(e);
3179
- if (!ge.has(t)) {
3180
- var n = Rt(e, {
3181
- experimentalFragmentVariables: Ee,
3182
- allowLegacyFragmentVariables: Ee
3177
+ function yr(e) {
3178
+ var t = Ut(e);
3179
+ if (!Ee.has(t)) {
3180
+ var n = Ft(e, {
3181
+ experimentalFragmentVariables: Te,
3182
+ allowLegacyFragmentVariables: Te
3183
3183
  });
3184
3184
  if (!n || n.kind !== "Document")
3185
3185
  throw new Error("Not a valid GraphQL document.");
3186
- ge.set(t, lr(ur(n)));
3186
+ Ee.set(t, gr(mr(n)));
3187
3187
  }
3188
- return ge.get(t);
3188
+ return Ee.get(t);
3189
3189
  }
3190
- function R(e) {
3190
+ function k(e) {
3191
3191
  for (var t = [], n = 1; n < arguments.length; n++)
3192
3192
  t[n - 1] = arguments[n];
3193
3193
  typeof e == "string" && (e = [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
- }), fr(r);
3197
+ }), yr(r);
3198
3198
  }
3199
- function hr() {
3200
- ge.clear(), Ge.clear();
3199
+ function Er() {
3200
+ Ee.clear(), Ye.clear();
3201
3201
  }
3202
- function dr() {
3203
- Lt = !1;
3202
+ function _r() {
3203
+ $t = !1;
3204
3204
  }
3205
- function pr() {
3206
- Ee = !0;
3205
+ function Tr() {
3206
+ Te = !0;
3207
3207
  }
3208
- function mr() {
3209
- Ee = !1;
3208
+ function Sr() {
3209
+ Te = !1;
3210
3210
  }
3211
3211
  var ne = {
3212
- gql: R,
3213
- resetCaches: hr,
3214
- disableFragmentWarnings: dr,
3215
- enableExperimentalFragmentVariables: pr,
3216
- disableExperimentalFragmentVariables: mr
3212
+ gql: k,
3213
+ resetCaches: Er,
3214
+ disableFragmentWarnings: _r,
3215
+ enableExperimentalFragmentVariables: Tr,
3216
+ disableExperimentalFragmentVariables: Sr
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
- })(R || (R = {}));
3221
- R.default = R;
3222
- const Ft = R`
3220
+ })(k || (k = {}));
3221
+ k.default = k;
3222
+ const Bt = k`
3223
3223
  fragment MatchParts on MatchConfig {
3224
3224
  regexValue
3225
3225
  matchValue
3226
3226
  }
3227
- `, gr = R`
3227
+ `, vr = k`
3228
3228
  mutation PushPayload(
3229
3229
  $session_secure_id: String!
3230
3230
  $payload_id: ID!
@@ -3250,7 +3250,7 @@ const Ft = R`
3250
3250
  highlight_logs: $highlight_logs
3251
3251
  )
3252
3252
  }
3253
- `, yr = R`
3253
+ `, Ar = k`
3254
3254
  mutation PushSessionEvents(
3255
3255
  $session_secure_id: String!
3256
3256
  $payload_id: Int64ID!
@@ -3262,7 +3262,7 @@ const Ft = R`
3262
3262
  data: $data
3263
3263
  )
3264
3264
  }
3265
- `, Er = R`
3265
+ `, Nr = k`
3266
3266
  mutation identifySession(
3267
3267
  $session_secure_id: String!
3268
3268
  $user_identifier: String!
@@ -3274,7 +3274,7 @@ const Ft = R`
3274
3274
  user_object: $user_object
3275
3275
  )
3276
3276
  }
3277
- `, _r = R`
3277
+ `, Ir = k`
3278
3278
  mutation addSessionProperties(
3279
3279
  $session_secure_id: String!
3280
3280
  $properties_object: Any
@@ -3284,11 +3284,11 @@ const Ft = R`
3284
3284
  properties_object: $properties_object
3285
3285
  )
3286
3286
  }
3287
- `, Tr = R`
3287
+ `, br = k`
3288
3288
  mutation pushMetrics($metrics: [MetricInput]!) {
3289
3289
  pushMetrics(metrics: $metrics)
3290
3290
  }
3291
- `, vr = R`
3291
+ `, xr = k`
3292
3292
  mutation addSessionFeedback(
3293
3293
  $session_secure_id: String!
3294
3294
  $user_name: String
@@ -3304,7 +3304,7 @@ const Ft = R`
3304
3304
  timestamp: $timestamp
3305
3305
  )
3306
3306
  }
3307
- `, Sr = R`
3307
+ `, Or = k`
3308
3308
  mutation initializeSession(
3309
3309
  $session_secure_id: String!
3310
3310
  $session_key: String
@@ -3391,12 +3391,12 @@ const Ft = R`
3391
3391
  }
3392
3392
  }
3393
3393
  }
3394
- ${Ft}
3395
- `, Ar = R`
3394
+ ${Bt}
3395
+ `, Dr = k`
3396
3396
  query Ignore($id: ID!) {
3397
3397
  ignore(id: $id)
3398
3398
  }
3399
- `, Nr = R`
3399
+ `, wr = k`
3400
3400
  query GetSamplingConfig($organization_verbose_id: String!) {
3401
3401
  sampling(organization_verbose_id: $organization_verbose_id) {
3402
3402
  spans {
@@ -3445,16 +3445,16 @@ const Ft = R`
3445
3445
  }
3446
3446
  }
3447
3447
  }
3448
- ${Ft}
3449
- `, Ir = (e, t, n, r) => e();
3450
- function Ai(e, t = Ir) {
3448
+ ${Bt}
3449
+ `, Cr = (e, t, n, r) => e();
3450
+ function wi(e, t = Cr) {
3451
3451
  return {
3452
3452
  PushPayload(n, r) {
3453
3453
  return t(
3454
3454
  (i) => e.request(
3455
- gr,
3455
+ vr,
3456
3456
  n,
3457
- _(_({}, r), i)
3457
+ E(E({}, r), i)
3458
3458
  ),
3459
3459
  "PushPayload",
3460
3460
  "mutation",
@@ -3464,9 +3464,9 @@ function Ai(e, t = Ir) {
3464
3464
  PushSessionEvents(n, r) {
3465
3465
  return t(
3466
3466
  (i) => e.request(
3467
- yr,
3467
+ Ar,
3468
3468
  n,
3469
- _(_({}, r), i)
3469
+ E(E({}, r), i)
3470
3470
  ),
3471
3471
  "PushSessionEvents",
3472
3472
  "mutation",
@@ -3476,9 +3476,9 @@ function Ai(e, t = Ir) {
3476
3476
  identifySession(n, r) {
3477
3477
  return t(
3478
3478
  (i) => e.request(
3479
- Er,
3479
+ Nr,
3480
3480
  n,
3481
- _(_({}, r), i)
3481
+ E(E({}, r), i)
3482
3482
  ),
3483
3483
  "identifySession",
3484
3484
  "mutation",
@@ -3488,9 +3488,9 @@ function Ai(e, t = Ir) {
3488
3488
  addSessionProperties(n, r) {
3489
3489
  return t(
3490
3490
  (i) => e.request(
3491
- _r,
3491
+ Ir,
3492
3492
  n,
3493
- _(_({}, r), i)
3493
+ E(E({}, r), i)
3494
3494
  ),
3495
3495
  "addSessionProperties",
3496
3496
  "mutation",
@@ -3500,9 +3500,9 @@ function Ai(e, t = Ir) {
3500
3500
  pushMetrics(n, r) {
3501
3501
  return t(
3502
3502
  (i) => e.request(
3503
- Tr,
3503
+ br,
3504
3504
  n,
3505
- _(_({}, r), i)
3505
+ E(E({}, r), i)
3506
3506
  ),
3507
3507
  "pushMetrics",
3508
3508
  "mutation",
@@ -3512,9 +3512,9 @@ function Ai(e, t = Ir) {
3512
3512
  addSessionFeedback(n, r) {
3513
3513
  return t(
3514
3514
  (i) => e.request(
3515
- vr,
3515
+ xr,
3516
3516
  n,
3517
- _(_({}, r), i)
3517
+ E(E({}, r), i)
3518
3518
  ),
3519
3519
  "addSessionFeedback",
3520
3520
  "mutation",
@@ -3524,9 +3524,9 @@ function Ai(e, t = Ir) {
3524
3524
  initializeSession(n, r) {
3525
3525
  return t(
3526
3526
  (i) => e.request(
3527
- Sr,
3527
+ Or,
3528
3528
  n,
3529
- _(_({}, r), i)
3529
+ E(E({}, r), i)
3530
3530
  ),
3531
3531
  "initializeSession",
3532
3532
  "mutation",
@@ -3535,7 +3535,7 @@ function Ai(e, t = Ir) {
3535
3535
  },
3536
3536
  Ignore(n, r) {
3537
3537
  return t(
3538
- (i) => e.request(Ar, n, _(_({}, r), i)),
3538
+ (i) => e.request(Dr, n, E(E({}, r), i)),
3539
3539
  "Ignore",
3540
3540
  "query",
3541
3541
  n
@@ -3544,9 +3544,9 @@ function Ai(e, t = Ir) {
3544
3544
  GetSamplingConfig(n, r) {
3545
3545
  return t(
3546
3546
  (i) => e.request(
3547
- Nr,
3547
+ wr,
3548
3548
  n,
3549
- _(_({}, r), i)
3549
+ E(E({}, r), i)
3550
3550
  ),
3551
3551
  "GetSamplingConfig",
3552
3552
  "query",
@@ -3555,7 +3555,7 @@ function Ai(e, t = Ir) {
3555
3555
  }
3556
3556
  };
3557
3557
  }
3558
- function Ni(e, t, n) {
3558
+ function Ci(e, t, n) {
3559
3559
  try {
3560
3560
  if (!(t in e))
3561
3561
  return () => {
@@ -3574,7 +3574,7 @@ function Ni(e, t, n) {
3574
3574
  };
3575
3575
  }
3576
3576
  }
3577
- function br(e) {
3577
+ function kr(e) {
3578
3578
  if (!e || !e.outerHTML)
3579
3579
  return "";
3580
3580
  let t = "";
@@ -3593,19 +3593,19 @@ function br(e) {
3593
3593
  }
3594
3594
  return t;
3595
3595
  }
3596
- function Ye(e) {
3596
+ function ze(e) {
3597
3597
  return Object.prototype.toString.call(e) === "[object Object]";
3598
3598
  }
3599
- function Mt(e, t) {
3599
+ function Vt(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 (Ye(e[r]) && Mt(e[r], t - 1))
3604
+ if (ze(e[r]) && Vt(e[r], t - 1))
3605
3605
  return !0;
3606
3606
  return !1;
3607
3607
  }
3608
- function Ii(e, t) {
3608
+ function ki(e, t) {
3609
3609
  const n = {
3610
3610
  numOfKeysLimit: 50,
3611
3611
  depthOfLimit: 4
@@ -3626,7 +3626,7 @@ function Ii(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] = br(
3629
+ Array.isArray(m) ? f[h] = kr(
3630
3630
  m.length ? m[0] : null
3631
3631
  ) : f[h] = m;
3632
3632
  }
@@ -3640,19 +3640,19 @@ function Ii(e, t) {
3640
3640
  return c;
3641
3641
  });
3642
3642
  function s(a) {
3643
- return Ye(a) && Object.keys(a).length > n.numOfKeysLimit || typeof a == "function" ? !0 : a instanceof Event && a.isTrusted === !1 ? Object.keys(a).length === 1 : !!(Ye(a) && Mt(a, n.depthOfLimit));
3643
+ return ze(a) && Object.keys(a).length > n.numOfKeysLimit || typeof a == "function" ? !0 : a instanceof Event && a.isTrusted === !1 ? Object.keys(a).length === 1 : !!(ze(a) && Vt(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 xr() {
3650
+ function Rr() {
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 bi() {
3655
- return xr() ? {
3654
+ function Ri() {
3655
+ return Rr() ? {
3656
3656
  type: "image/webp",
3657
3657
  quality: 0.9
3658
3658
  } : {
@@ -3660,10 +3660,10 @@ function bi() {
3660
3660
  quality: 0.6
3661
3661
  };
3662
3662
  }
3663
- function xi(e) {
3663
+ function Li(e) {
3664
3664
  return typeof e == "number" && !isNaN(e) && isFinite(e);
3665
3665
  }
3666
- const Oi = "exception.message", Di = "exception.stacktrace", wi = "exception.type", Ci = "http.response.status_code", Ri = "server.address", ki = "service.name", Li = "service.version", Pi = "telemetry.sdk.name", Fi = "telemetry.sdk.version", Mi = "url.full", $i = "url.path", Ui = "url.query", Bi = "user_agent.original", Vi = 1e3, ji = 1e3 * 2, qi = 4 * 60 * 60 * 1e3, et = 15 * 60 * 1e3, Hi = {
3666
+ const Pi = "exception.message", Fi = "exception.stacktrace", Mi = "exception.type", $i = "http.response.status_code", Ui = "server.address", Bi = "service.name", Vi = "service.version", ji = "telemetry.sdk.name", qi = "telemetry.sdk.version", Hi = "url.full", Gi = "url.path", Yi = "url.query", zi = "user_agent.original", Ji = 1e3, Xi = 1e3 * 2, Lr = 4 * 60 * 60 * 1e3, tt = 15 * 60 * 1e3, Qi = {
3667
3667
  normal: {
3668
3668
  bytes: 1e7,
3669
3669
  time: 4 * 60 * 1e3
@@ -3672,13 +3672,13 @@ const Oi = "exception.message", Di = "exception.stacktrace", wi = "exception.typ
3672
3672
  bytes: 16e6,
3673
3673
  time: 5e3
3674
3674
  }
3675
- }, Gi = 100, Yi = "app.highlight.io", zi = "https://app.launchdarkly.com", Ji = {
3675
+ }, Ki = 100, Wi = "app.highlight.io", Zi = "https://app.launchdarkly.com", es = {
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
- }, Xi = "/projects/default", Qi = new RegExp("pub\\.(?<domain>.+)");
3679
+ }, ts = "/projects/default", ns = new RegExp("pub\\.(?<domain>.+)");
3680
3680
  /*! js-cookie v3.0.8 | MIT */
3681
- function le(e) {
3681
+ function he(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 le(e) {
3686
3686
  }
3687
3687
  return e;
3688
3688
  }
3689
- var Or = {
3689
+ var Pr = {
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 Or = {
3697
3697
  );
3698
3698
  }
3699
3699
  };
3700
- function ze(e, t) {
3700
+ function Je(e, t) {
3701
3701
  function n(i, s, o) {
3702
3702
  if (typeof document != "undefined") {
3703
- o = le({}, 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);
3703
+ o = he({}, 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 ze(e, t) {
3729
3729
  n(
3730
3730
  i,
3731
3731
  "",
3732
- le({}, s, {
3732
+ he({}, s, {
3733
3733
  expires: -1
3734
3734
  })
3735
3735
  );
3736
3736
  },
3737
3737
  withAttributes: function(i) {
3738
- return ze(this.converter, le({}, this.attributes, i));
3738
+ return Je(this.converter, he({}, this.attributes, i));
3739
3739
  },
3740
3740
  withConverter: function(i) {
3741
- return ze(le({}, this.converter, i), this.attributes);
3741
+ return Je(he({}, this.converter, i), this.attributes);
3742
3742
  }
3743
3743
  },
3744
3744
  {
@@ -3747,11 +3747,11 @@ function ze(e, t) {
3747
3747
  }
3748
3748
  );
3749
3749
  }
3750
- var fe = ze(Or, { path: "/" }), Dr = /* @__PURE__ */ ((e) => (e.CLIENT_ID = "highlightClientID", e))(Dr || {});
3751
- let _e = "localStorage", Je = !0;
3752
- class wr {
3750
+ var de = Je(Pr, { path: "/" }), Fr = /* @__PURE__ */ ((e) => (e.CLIENT_ID = "highlightClientID", e))(Fr || {});
3751
+ let Se = "localStorage", Xe = !0, ie;
3752
+ class Mr {
3753
3753
  constructor() {
3754
- G(this, "storage", {});
3754
+ Y(this, "storage", {});
3755
3755
  }
3756
3756
  get length() {
3757
3757
  return Object.keys(this.storage).length;
@@ -3771,31 +3771,33 @@ class wr {
3771
3771
  delete this.storage[t];
3772
3772
  }
3773
3773
  }
3774
- class Cr {
3774
+ class $r {
3775
3775
  getItem(t) {
3776
3776
  var n;
3777
- return (n = fe.get(t)) != null ? n : "";
3777
+ return (n = de.get(t)) != null ? n : "";
3778
3778
  }
3779
3779
  setItem(t, n) {
3780
- if (!Je)
3780
+ if (!Xe)
3781
3781
  return;
3782
3782
  const r = /* @__PURE__ */ new Date();
3783
- r.setTime(r.getTime() + et), fe.set(t, n, { expires: r });
3783
+ r.setTime(r.getTime() + tt), de.set(t, n, E({
3784
+ expires: r
3785
+ }, ie ? { domain: ie } : {}));
3784
3786
  }
3785
3787
  removeItem(t) {
3786
- Je && fe.remove(t);
3788
+ Xe && de.remove(t, ie ? { domain: ie } : void 0);
3787
3789
  }
3788
3790
  keys() {
3789
3791
  var t;
3790
- return Object.keys((t = fe.get()) != null ? t : {});
3792
+ return Object.keys((t = de.get()) != null ? t : {});
3791
3793
  }
3792
3794
  }
3793
- const Q = new wr(), W = new Cr(), Ae = () => {
3795
+ const K = new Mr(), W = new $r(), Ie = () => {
3794
3796
  let e = null;
3795
3797
  if (typeof window == "undefined")
3796
- return Q;
3798
+ return K;
3797
3799
  try {
3798
- switch (_e) {
3800
+ switch (Se) {
3799
3801
  case "localStorage":
3800
3802
  e = window.localStorage;
3801
3803
  break;
@@ -3803,73 +3805,81 @@ const Q = new wr(), W = new Cr(), Ae = () => {
3803
3805
  e = window.sessionStorage;
3804
3806
  break;
3805
3807
  }
3806
- e || (K(
3808
+ e || ($(
3807
3809
  "storage",
3808
3810
  "getPersistentStorage",
3809
3811
  "debug",
3810
- `persistent storage was not found for mode ${_e}; using global storage`
3811
- ), e = Q);
3812
+ `persistent storage was not found for mode ${Se}; using global storage`
3813
+ ), e = K);
3812
3814
  } catch (t) {
3813
- K(
3815
+ $(
3814
3816
  "storage",
3815
3817
  "getPersistentStorage",
3816
3818
  "debug",
3817
3819
  "failed to get persistent storage; using global storage",
3818
3820
  t
3819
- ), e = Q;
3821
+ ), e = K;
3820
3822
  }
3821
3823
  return e;
3822
- }, Rr = (e) => {
3823
- _e = e;
3824
- }, dt = (e) => {
3825
- Je = e;
3826
- }, tt = (e) => {
3824
+ }, Ur = (e) => {
3825
+ Se = e;
3826
+ }, gt = (e) => {
3827
+ Xe = e;
3828
+ }, Br = (e) => {
3829
+ ie = e;
3830
+ }, nt = (e) => {
3827
3831
  try {
3828
- return Ae().getItem(e);
3832
+ return Ie().getItem(e);
3829
3833
  } catch (t) {
3830
- return K(
3834
+ return $(
3831
3835
  "storage",
3832
3836
  "getItem",
3833
3837
  "debug",
3834
3838
  `failed to get item ${e}; using global storage`,
3835
3839
  t
3836
- ), Q.getItem(e);
3840
+ ), K.getItem(e);
3837
3841
  }
3838
- }, $t = (e, t) => {
3842
+ }, jt = (e, t) => {
3839
3843
  W.setItem(e, t);
3840
3844
  try {
3841
- return Ae().setItem(e, t);
3845
+ return Ie().setItem(e, t);
3842
3846
  } catch (n) {
3843
- return K(
3847
+ return $(
3844
3848
  "storage",
3845
3849
  "setItem",
3846
3850
  "debug",
3847
3851
  `failed to set item ${e}; using global storage`,
3848
3852
  n
3849
- ), Q.setItem(e, t);
3853
+ ), K.setItem(e, t);
3850
3854
  }
3851
- }, Ut = (e) => {
3855
+ }, rt = (e) => {
3852
3856
  W.removeItem(e);
3853
3857
  try {
3854
- return Ae().removeItem(e);
3858
+ return Ie().removeItem(e);
3855
3859
  } catch (t) {
3856
- return K(
3860
+ return $(
3857
3861
  "storage",
3858
3862
  "removeItem",
3859
3863
  "debug",
3860
3864
  `failed to remove item ${e}; using global storage`,
3861
3865
  t
3862
- ), Q.removeItem(e);
3863
- }
3864
- }, Ki = (e) => {
3865
- if (_e === "sessionStorage") {
3866
- console.warn(
3866
+ ), K.removeItem(e);
3867
+ }
3868
+ }, rs = (e) => {
3869
+ if (Se === "sessionStorage") {
3870
+ $(
3871
+ "segment",
3872
+ "sessionStorage",
3873
+ "warn",
3867
3874
  "highlight.io cannot use local storage; segment integration will not work"
3868
3875
  );
3869
3876
  return;
3870
3877
  }
3871
3878
  if (typeof window == "undefined") {
3872
- console.warn(
3879
+ $(
3880
+ "segment",
3881
+ "no-window",
3882
+ "warn",
3873
3883
  "highlight.io cannot use local storage (not a window); segment integration will not work"
3874
3884
  );
3875
3885
  return;
@@ -3881,45 +3891,71 @@ const Q = new wr(), W = new Cr(), Ae = () => {
3881
3891
  };
3882
3892
  };
3883
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 || {});
3884
- const Ne = (e) => `${ee.SESSION_DATA}_${e}`, kr = () => {
3894
+ const oe = (e) => `${ee.SESSION_DATA}_${e}`, qt = () => {
3885
3895
  var e;
3886
- return typeof globalThis != "undefined" && ((e = globalThis.persistentSessionSecureID) != null && e.length) ? globalThis.persistentSessionSecureID : Bt();
3887
- }, Lr = (e) => {
3896
+ return typeof globalThis != "undefined" && ((e = globalThis.persistentSessionSecureID) != null && e.length) ? globalThis.persistentSessionSecureID : Ht();
3897
+ }, Vr = (e) => {
3888
3898
  typeof globalThis != "undefined" && (e != null && e.length) && (globalThis.persistentSessionSecureID = e);
3889
- }, Bt = () => {
3899
+ }, Ht = () => {
3890
3900
  var e;
3891
- return (e = tt(ee.SESSION_ID)) != null ? e : "";
3892
- }, Vt = (e) => {
3893
- $t(ee.SESSION_ID, e);
3894
- }, Pr = (e) => {
3895
- const t = Ne(e);
3896
- return JSON.parse(tt(t) || "{}");
3897
- }, Fr = (e) => {
3898
- e || (e = Bt());
3899
- let t = Pr(e);
3900
- if (t && t.lastPushTime && Date.now() - t.lastPushTime < et)
3901
+ return (e = nt(ee.SESSION_ID)) != null ? e : "";
3902
+ }, Gt = (e) => {
3903
+ jt(ee.SESSION_ID, e);
3904
+ }, Yt = (e) => {
3905
+ const t = oe(e);
3906
+ return JSON.parse(nt(t) || "{}");
3907
+ }, zt = (e, t) => !e.sessionKey && !!e.sessionStartTime && t - e.sessionStartTime > Lr, jr = (e) => {
3908
+ e || (e = Ht());
3909
+ let t = Yt(e);
3910
+ if (t && t.lastPushTime && Date.now() - t.lastPushTime < tt && // A recent push does not extend a session past its maximum length.
3911
+ !zt(t, Date.now()))
3901
3912
  return t;
3902
- Ut(Ne(e));
3903
- }, jt = function(e) {
3913
+ rt(oe(e));
3914
+ }, qr = 10 * 1e3;
3915
+ let yt = 0;
3916
+ const is = () => {
3917
+ const e = Date.now();
3918
+ if (!(e - yt < qr)) {
3919
+ yt = e;
3920
+ try {
3921
+ const t = Yt(qt());
3922
+ if (!(t != null && t.sessionSecureID))
3923
+ return;
3924
+ if (zt(t, e)) {
3925
+ rt(oe(t.sessionSecureID));
3926
+ return;
3927
+ }
3928
+ it(B(E({}, t), { lastPushTime: e }));
3929
+ } catch (t) {
3930
+ $(
3931
+ "highlightSession",
3932
+ "touchSession",
3933
+ "debug",
3934
+ "failed to refresh session activity",
3935
+ t
3936
+ );
3937
+ }
3938
+ }
3939
+ }, it = function(e) {
3904
3940
  if (!(e != null && e.sessionSecureID)) return;
3905
3941
  const t = e.sessionSecureID;
3906
- Lr(t);
3907
- const n = Ne(t);
3908
- $t(n, JSON.stringify(e)), $r(n);
3909
- }, Mr = function() {
3942
+ Vr(t);
3943
+ const n = oe(t);
3944
+ jt(n, JSON.stringify(e)), Gr(n);
3945
+ }, Hr = function() {
3910
3946
  const e = W.getItem(
3911
3947
  ee.SESSION_ID
3912
3948
  );
3913
- Vt(e);
3914
- const t = Ne(e), n = W.getItem(t);
3949
+ Gt(e);
3950
+ const t = oe(e), n = W.getItem(t);
3915
3951
  try {
3916
- jt(JSON.parse(n));
3952
+ it(JSON.parse(n));
3917
3953
  } catch (r) {
3918
3954
  }
3919
3955
  };
3920
- function $r(e) {
3956
+ function Gr(e) {
3921
3957
  var i;
3922
- const t = `${ee.SESSION_DATA}_`, n = /* @__PURE__ */ new Set(), r = Ae();
3958
+ const t = `${ee.SESSION_DATA}_`, n = /* @__PURE__ */ new Set(), r = Ie();
3923
3959
  for (let s = r.length - 1; s >= 0; s--) {
3924
3960
  const o = r.key(s);
3925
3961
  o && o.startsWith(t) && o !== e && n.add(o);
@@ -3929,36 +3965,36 @@ function $r(e) {
3929
3965
  for (const s of n) {
3930
3966
  let o = !0;
3931
3967
  try {
3932
- const a = tt(s) || W.getItem(s) || "{}", c = JSON.parse(a), f = (i = c.lastPushTime) != null ? i : c.sessionStartTime;
3933
- o = f === void 0 || Date.now() - f >= et;
3968
+ const a = nt(s) || W.getItem(s) || "{}", c = JSON.parse(a), f = (i = c.lastPushTime) != null ? i : c.sessionStartTime;
3969
+ o = f === void 0 || Date.now() - f >= tt;
3934
3970
  } catch (a) {
3935
3971
  }
3936
- o && (K(
3972
+ o && ($(
3937
3973
  "highlightSession",
3938
3974
  "pruneSessionData",
3939
3975
  "debug",
3940
3976
  `removing session data for stale key ${s}`
3941
- ), Ut(s));
3977
+ ), rt(s));
3942
3978
  }
3943
3979
  }
3944
- var qt = /* @__PURE__ */ ((e) => (e.BillingQuotaExceeded = "BillingQuotaExceeded", e))(qt || {});
3945
- const Ur = 3, Br = 1e3, Vr = 500, jr = [qt.BillingQuotaExceeded.toString()], qr = (e) => {
3980
+ var Jt = /* @__PURE__ */ ((e) => (e.BillingQuotaExceeded = "BillingQuotaExceeded", e))(Jt || {});
3981
+ const Yr = 3, zr = 1e3, Jr = 500, Xr = [Jt.BillingQuotaExceeded.toString()], Qr = (e) => {
3946
3982
  var n;
3947
3983
  return ((n = e.response.errors) == null ? void 0 : n.find(
3948
- (r) => jr.includes(r.message)
3984
+ (r) => Xr.includes(r.message)
3949
3985
  )) === void 0;
3950
- }, Wi = () => {
3951
- const e = (t, n, r, i, s = 0) => U(void 0, null, function* () {
3986
+ }, ss = () => {
3987
+ const e = (t, n, r, i, s = 0) => V(void 0, null, function* () {
3952
3988
  try {
3953
3989
  return yield t();
3954
3990
  } catch (o) {
3955
- if (o instanceof X && !qr(o))
3991
+ if (o instanceof Q && !Qr(o))
3956
3992
  throw o;
3957
- if (s < Ur)
3993
+ if (s < Yr)
3958
3994
  return yield new Promise(
3959
3995
  (a) => setTimeout(
3960
3996
  a,
3961
- Br + Vr * Math.pow(2, s)
3997
+ zr + Jr * Math.pow(2, s)
3962
3998
  )
3963
3999
  ), yield e(
3964
4000
  t,
@@ -3967,13 +4003,14 @@ const Ur = 3, Br = 1e3, Vr = 500, jr = [qt.BillingQuotaExceeded.toString()], qr
3967
4003
  i,
3968
4004
  s + 1
3969
4005
  );
3970
- throw console.error(
4006
+ throw hn(
4007
+ "error",
3971
4008
  `highlight.io: data request failed after ${s} retries`
3972
4009
  ), o;
3973
4010
  }
3974
4011
  });
3975
4012
  return e;
3976
- }, C = "feature_flag", Ht = "launchdarkly", Gt = "evaluation", Hr = `${C}.${Gt}`, Zi = `${C}.set.id`, Gr = `${C}.key`, Yr = `${C}.contextKeys`, zr = `${C}.context.id`, Jr = `${C}.result.value`, Xr = `${C}.provider.name`, pt = {
4013
+ }, C = "feature_flag", Xt = "launchdarkly", Qt = "evaluation", Kr = `${C}.${Qt}`, os = `${C}.set.id`, Wr = `${C}.key`, Zr = `${C}.contextKeys`, ei = `${C}.context.id`, ti = `${C}.result.value`, ni = `${C}.provider.name`, Et = {
3977
4014
  kind: `${C}.result.reason.kind`,
3978
4015
  errorKind: `${C}.result.reason.errorKind`,
3979
4016
  ruleIndex: `${C}.result.reason.ruleIndex`,
@@ -3981,71 +4018,71 @@ const Ur = 3, Br = 1e3, Vr = 500, jr = [qt.BillingQuotaExceeded.toString()], qr
3981
4018
  prerequisiteKey: `${C}.result.reason.prerequisiteKey`,
3982
4019
  inExperiment: `${C}.result.reason.inExperiment`,
3983
4020
  bigSegmentsStatus: `${C}.result.reason.bigSegmentsStatus`
3984
- }, Qr = `${C}.result.variationIndex`, es = `${Ht}.application.id`, ts = `${Ht}.application.version`, Kr = "context", ns = `${Kr}.contextKeys`, Wr = "$ld:telemetry:session:init", mt = "$ld:telemetry:track", rs = "launchdarkly.track", is = "page_view", ss = "document_load", os = "result.status";
3985
- function gt(e) {
4021
+ }, ri = `${C}.result.variationIndex`, as = `${Xt}.application.id`, cs = `${Xt}.application.version`, ii = "context", us = `${ii}.contextKeys`, si = "$ld:telemetry:session:init", _t = "$ld:telemetry:track", ls = "launchdarkly.track", fs = "page_view", hs = "document_load", ds = "result.status";
4022
+ function Tt(e) {
3986
4023
  return e.includes("%") || e.includes(":") ? e.replace(/%/g, "%25").replace(/:/g, "%3A") : e;
3987
4024
  }
3988
- function Yt(e) {
4025
+ function Kt(e) {
3989
4026
  return e.kind === "multi";
3990
4027
  }
3991
- function yt(e) {
3992
- return Yt(e) ? Object.keys(e).sort().filter((t) => t !== "kind").map((t) => `${t}:${gt(e[t].key)}`).join(":") : "kind" in e && e.kind === "user" ? e.key : "kind" in e ? `${e.kind}:${gt(e.key)}` : e.key;
4028
+ function St(e) {
4029
+ return Kt(e) ? Object.keys(e).sort().filter((t) => t !== "kind").map((t) => `${t}:${Tt(e[t].key)}`).join(":") : "kind" in e && e.kind === "user" ? e.key : "kind" in e ? `${e.kind}:${Tt(e.key)}` : e.key;
3993
4030
  }
3994
- function Et(e) {
3995
- return Yt(e) ? Object.keys(e).sort().filter((t) => t !== "kind").map((t) => ({
4031
+ function vt(e) {
4032
+ return Kt(e) ? Object.keys(e).sort().filter((t) => t !== "kind").map((t) => ({
3996
4033
  [t]: e[t].key
3997
- })).reduce((t, n) => _(_({}, t), n), {}) : "kind" in e ? {
4034
+ })).reduce((t, n) => E(E({}, t), n), {}) : "kind" in e ? {
3998
4035
  [e.kind]: e.key
3999
4036
  } : {
4000
4037
  user: e.key
4001
4038
  };
4002
4039
  }
4003
- function as(e, t, n) {
4040
+ function ps(e, t, n) {
4004
4041
  t.addHook({
4005
4042
  getMetadata: () => ({
4006
4043
  name: "highlight.run"
4007
4044
  }),
4008
4045
  afterIdentify: (r, i, s) => {
4009
4046
  var a, c;
4010
- const o = q(_({}, Et(r.context)), {
4011
- key: (c = (a = n == null ? void 0 : n.contextFriendlyName) == null ? void 0 : a.call(n, r.context)) != null ? c : yt(r.context)
4047
+ const o = B(E({}, vt(r.context)), {
4048
+ key: (c = (a = n == null ? void 0 : n.contextFriendlyName) == null ? void 0 : a.call(n, r.context)) != null ? c : St(r.context)
4012
4049
  });
4013
4050
  return e.log("LD.identify", "INFO", o), s.status === "completed" && e.identify(o.key, o, "LaunchDarkly"), i;
4014
4051
  },
4015
4052
  afterEvaluation: (r, i, s) => {
4016
- const o = _({
4017
- [Xr]: "LaunchDarkly",
4018
- [Gr]: r.flagKey,
4019
- [Jr]: JSON.stringify(s.value)
4053
+ const o = E({
4054
+ [ni]: "LaunchDarkly",
4055
+ [Wr]: r.flagKey,
4056
+ [ti]: JSON.stringify(s.value)
4020
4057
  }, s.variationIndex !== void 0 && s.variationIndex !== null ? {
4021
- [Qr]: s.variationIndex
4058
+ [ri]: s.variationIndex
4022
4059
  } : {});
4023
4060
  if (s.reason)
4024
- for (const a in pt) {
4061
+ for (const a in Et) {
4025
4062
  const c = a, f = s.reason[c];
4026
- f != null && (o[pt[c]] = f);
4063
+ f != null && (o[Et[c]] = f);
4027
4064
  }
4028
- return r.context && (o[Yr] = JSON.stringify(
4029
- Et(r.context)
4030
- ), o[zr] = yt(
4065
+ return r.context && (o[Zr] = JSON.stringify(
4066
+ vt(r.context)
4067
+ ), o[ei] = St(
4031
4068
  r.context
4032
- )), e.startSpan(Gt, (a) => {
4033
- a && a.addEvent(Hr, o);
4069
+ )), e.startSpan(Qt, (a) => {
4070
+ a && a.addEvent(Kr, o);
4034
4071
  }), i;
4035
4072
  }
4036
4073
  });
4037
4074
  }
4038
- class Zr {
4075
+ class oi {
4039
4076
  constructor(t, n) {
4040
- G(this, "client");
4041
- G(this, "metadata");
4077
+ Y(this, "client");
4078
+ Y(this, "metadata");
4042
4079
  this.client = t, this.metadata = n;
4043
4080
  }
4044
4081
  getHooks(t) {
4045
4082
  return [];
4046
4083
  }
4047
4084
  init(t) {
4048
- this.client.track(Wr, {
4085
+ this.client.track(si, {
4049
4086
  sessionID: t
4050
4087
  });
4051
4088
  }
@@ -4058,18 +4095,18 @@ class Zr {
4058
4095
  track(t, n) {
4059
4096
  const r = n.event;
4060
4097
  this.client.track(
4061
- r ? `${mt}:${r}` : mt,
4062
- q(_({}, n), {
4098
+ r ? `${_t}:${r}` : _t,
4099
+ B(E({}, n), {
4063
4100
  sessionID: t
4064
4101
  })
4065
4102
  );
4066
4103
  }
4067
4104
  }
4068
- class cs extends an {
4105
+ class ms extends dn {
4069
4106
  constructor(n, r) {
4070
4107
  super();
4071
- G(this, "client");
4072
- this.client = new Zr(n, r);
4108
+ Y(this, "client");
4109
+ this.client = new oi(n, r);
4073
4110
  }
4074
4111
  getHooks(n) {
4075
4112
  return [
@@ -4102,7 +4139,7 @@ class cs extends an {
4102
4139
  return this._bufferCall("track", [n, r]);
4103
4140
  }
4104
4141
  }
4105
- const us = (e) => {
4142
+ const gs = (e) => {
4106
4143
  e(window.location.href);
4107
4144
  const t = history.pushState;
4108
4145
  history.pushState = /* @__PURE__ */ ((s) => function() {
@@ -4124,15 +4161,15 @@ const us = (e) => {
4124
4161
  return window.addEventListener("locationchange", i), () => {
4125
4162
  window.removeEventListener("popstate", r), window.removeEventListener("locationchange", i), history.pushState = t, history.replaceState = n;
4126
4163
  };
4127
- }, ei = "1.3.0", ti = {
4128
- version: ei
4129
- }, ls = ti.version;
4130
- let L, nt;
4131
- function fs(e, t) {
4132
- return e.nodeType, Node.ELEMENT_NODE, Xe(e);
4133
- return ni(e, t);
4164
+ }, ai = "1.4.0", ci = {
4165
+ version: ai
4166
+ }, ys = ci.version;
4167
+ let L, st;
4168
+ function Es(e, t) {
4169
+ return e.nodeType, Node.ELEMENT_NODE, Qe(e);
4170
+ return ui(e, t);
4134
4171
  }
4135
- function hs(e) {
4172
+ function _s(e) {
4136
4173
  if (e.id.length)
4137
4174
  return `#${e.id}`;
4138
4175
  if (e.classList.length) {
@@ -4143,7 +4180,7 @@ function hs(e) {
4143
4180
  }
4144
4181
  return e.nodeName.toLowerCase();
4145
4182
  }
4146
- function ni(e, t) {
4183
+ function ui(e, t) {
4147
4184
  if (e.tagName.toLowerCase() === "html")
4148
4185
  return "html";
4149
4186
  try {
@@ -4159,14 +4196,14 @@ function ni(e, t) {
4159
4196
  maxNumberOfTries: 1e3,
4160
4197
  optimized: !0
4161
4198
  };
4162
- L = _(_({}, n), t), nt = ri(L.root, n);
4163
- let r = Pe(
4199
+ L = E(E({}, n), t), st = li(L.root, n);
4200
+ let r = Fe(
4164
4201
  e,
4165
4202
  0,
4166
- () => Pe(
4203
+ () => Fe(
4167
4204
  e,
4168
4205
  1,
4169
- () => Pe(
4206
+ () => Fe(
4170
4207
  e,
4171
4208
  2
4172
4209
  /* One */
@@ -4175,54 +4212,54 @@ function ni(e, t) {
4175
4212
  );
4176
4213
  if (r) {
4177
4214
  if (L.optimized) {
4178
- const i = Xt(Qt(r, e));
4215
+ const i = en(tn(r, e));
4179
4216
  i.length > 0 && (r = i[0]);
4180
4217
  }
4181
- return Ie(r);
4218
+ return be(r);
4182
4219
  } else
4183
- return Xe(e);
4220
+ return Qe(e);
4184
4221
  } catch (n) {
4185
- return Xe(e);
4222
+ return Qe(e);
4186
4223
  }
4187
4224
  }
4188
- function ri(e, t) {
4225
+ function li(e, t) {
4189
4226
  return e.nodeType === Node.DOCUMENT_NODE ? e : e === t.root ? e.ownerDocument : e;
4190
4227
  }
4191
- function Pe(e, t, n) {
4228
+ function Fe(e, t, n) {
4192
4229
  let r = null, i = [], s = e, o = 0;
4193
4230
  for (; s && s !== L.root.parentElement; ) {
4194
- let a = he(ii(s)) || he(...si(s)) || he(...oi(s)) || he(ai(s)) || [ci()];
4195
- const c = ui(s);
4231
+ let a = pe(fi(s)) || pe(...hi(s)) || pe(...di(s)) || pe(pi(s)) || [mi()];
4232
+ const c = gi(s);
4196
4233
  if (t === 0)
4197
4234
  c && (a = a.concat(
4198
- a.filter(Me).map((f) => Fe(f, c))
4235
+ a.filter($e).map((f) => Me(f, c))
4199
4236
  ));
4200
4237
  else if (t === 1)
4201
4238
  a = a.slice(0, 1), c && (a = a.concat(
4202
- a.filter(Me).map((f) => Fe(f, c))
4239
+ a.filter($e).map((f) => Me(f, c))
4203
4240
  ));
4204
4241
  else if (t === 2) {
4205
4242
  const [f] = a = a.slice(0, 1);
4206
- c && Me(f) && (a = [Fe(f, c)]);
4243
+ c && $e(f) && (a = [Me(f, c)]);
4207
4244
  }
4208
4245
  for (let f of a)
4209
4246
  f.level = o;
4210
- if (i.push(a), i.length >= L.seedMinLength && (r = _t(i, n), r))
4247
+ if (i.push(a), i.length >= L.seedMinLength && (r = At(i, n), r))
4211
4248
  break;
4212
4249
  s = s.parentElement, o++;
4213
4250
  }
4214
- return r || (r = _t(i, n)), r;
4251
+ return r || (r = At(i, n)), r;
4215
4252
  }
4216
- function _t(e, t) {
4217
- const n = Xt(Jt(e));
4253
+ function At(e, t) {
4254
+ const n = en(Zt(e));
4218
4255
  if (n.length > L.threshold)
4219
4256
  return t ? t() : null;
4220
4257
  for (let r of n)
4221
- if (zt(r))
4258
+ if (Wt(r))
4222
4259
  return r;
4223
4260
  return null;
4224
4261
  }
4225
- function Ie(e) {
4262
+ function be(e) {
4226
4263
  let t = e[0], n = t.name;
4227
4264
  for (let r = 1; r < e.length; r++) {
4228
4265
  const i = e[r].level || 0;
@@ -4230,11 +4267,11 @@ function Ie(e) {
4230
4267
  }
4231
4268
  return n;
4232
4269
  }
4233
- function Tt(e) {
4270
+ function Nt(e) {
4234
4271
  return e.map((t) => t.penalty).reduce((t, n) => t + n, 0);
4235
4272
  }
4236
- function zt(e) {
4237
- switch (nt.querySelectorAll(Ie(e)).length) {
4273
+ function Wt(e) {
4274
+ switch (st.querySelectorAll(be(e)).length) {
4238
4275
  case 0:
4239
4276
  return !0;
4240
4277
  case 1:
@@ -4243,45 +4280,45 @@ function zt(e) {
4243
4280
  return !1;
4244
4281
  }
4245
4282
  }
4246
- function ii(e) {
4283
+ function fi(e) {
4247
4284
  const t = e.getAttribute("id");
4248
4285
  return t && L.idName(t) ? {
4249
- name: "#" + Te(t, { isIdentifier: !0 }),
4286
+ name: "#" + ve(t, { isIdentifier: !0 }),
4250
4287
  penalty: 0
4251
4288
  } : null;
4252
4289
  }
4253
- function si(e) {
4290
+ function hi(e) {
4254
4291
  return Array.from(e.attributes).filter(
4255
4292
  (n) => L.attr(n.name, n.value)
4256
4293
  ).map(
4257
4294
  (n) => ({
4258
- name: "[" + Te(n.name, { isIdentifier: !0 }) + '="' + Te(n.value) + '"]',
4295
+ name: "[" + ve(n.name, { isIdentifier: !0 }) + '="' + ve(n.value) + '"]',
4259
4296
  penalty: 0.5
4260
4297
  })
4261
4298
  );
4262
4299
  }
4263
- function oi(e) {
4300
+ function di(e) {
4264
4301
  return Array.from(e.classList).filter(L.className).map(
4265
4302
  (n) => ({
4266
- name: "." + Te(n, { isIdentifier: !0 }),
4303
+ name: "." + ve(n, { isIdentifier: !0 }),
4267
4304
  penalty: 1
4268
4305
  })
4269
4306
  );
4270
4307
  }
4271
- function ai(e) {
4308
+ function pi(e) {
4272
4309
  const t = e.tagName.toLowerCase();
4273
4310
  return L.tagName(t) ? {
4274
4311
  name: t,
4275
4312
  penalty: 2
4276
4313
  } : null;
4277
4314
  }
4278
- function ci() {
4315
+ function mi() {
4279
4316
  return {
4280
4317
  name: "*",
4281
4318
  penalty: 3
4282
4319
  };
4283
4320
  }
4284
- function ui(e) {
4321
+ function gi(e) {
4285
4322
  const t = e.parentNode;
4286
4323
  if (!t)
4287
4324
  return null;
@@ -4293,33 +4330,33 @@ function ui(e) {
4293
4330
  n = n.nextSibling;
4294
4331
  return r;
4295
4332
  }
4296
- function Fe(e, t) {
4333
+ function Me(e, t) {
4297
4334
  return {
4298
4335
  name: e.name + `:nth-child(${t})`,
4299
4336
  penalty: e.penalty + 1
4300
4337
  };
4301
4338
  }
4302
- function Me(e) {
4339
+ function $e(e) {
4303
4340
  return e.name !== "html" && !e.name.startsWith("#");
4304
4341
  }
4305
- function he(...e) {
4306
- const t = e.filter(li);
4342
+ function pe(...e) {
4343
+ const t = e.filter(yi);
4307
4344
  return t.length > 0 ? t : null;
4308
4345
  }
4309
- function li(e) {
4346
+ function yi(e) {
4310
4347
  return e != null;
4311
4348
  }
4312
- function* Jt(e, t = []) {
4349
+ function* Zt(e, t = []) {
4313
4350
  if (e.length > 0)
4314
4351
  for (let n of e[0])
4315
- yield* we(Jt(e.slice(1, e.length), t.concat(n)));
4352
+ yield* Ce(Zt(e.slice(1, e.length), t.concat(n)));
4316
4353
  else
4317
4354
  yield t;
4318
4355
  }
4319
- function Xt(e) {
4320
- return Array.from(e).sort((t, n) => Tt(t) - Tt(n));
4356
+ function en(e) {
4357
+ return Array.from(e).sort((t, n) => Nt(t) - Nt(n));
4321
4358
  }
4322
- function* Qt(e, t, n = {
4359
+ function* tn(e, t, n = {
4323
4360
  counter: 0,
4324
4361
  visited: /* @__PURE__ */ new Map()
4325
4362
  }) {
@@ -4330,23 +4367,23 @@ function* Qt(e, t, n = {
4330
4367
  n.counter += 1;
4331
4368
  const i = [...e];
4332
4369
  i.splice(r, 1);
4333
- const s = Ie(i);
4370
+ const s = be(i);
4334
4371
  if (n.visited.has(s))
4335
4372
  return;
4336
- zt(i) && fi(i, t) && (yield i, n.visited.set(s, !0), yield* we(Qt(i, t, n)));
4373
+ Wt(i) && Ei(i, t) && (yield i, n.visited.set(s, !0), yield* Ce(tn(i, t, n)));
4337
4374
  }
4338
4375
  }
4339
- function fi(e, t) {
4340
- return nt.querySelector(Ie(e)) === t;
4376
+ function Ei(e, t) {
4377
+ return st.querySelector(be(e)) === t;
4341
4378
  }
4342
- const hi = /[ -,\.\/:-@\[-\^`\{-~]/, di = /[ -,\.\/:-@\[\]\^`\{-~]/, pi = /(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g, mi = {
4379
+ const _i = /[ -,\.\/:-@\[-\^`\{-~]/, Ti = /[ -,\.\/:-@\[\]\^`\{-~]/, Si = /(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g, vi = {
4343
4380
  escapeEverything: !1,
4344
4381
  isIdentifier: !1,
4345
4382
  quotes: "single",
4346
4383
  wrap: !1
4347
4384
  };
4348
- function Te(e, t = {}) {
4349
- const n = _(_({}, mi), t);
4385
+ function ve(e, t = {}) {
4386
+ const n = E(E({}, vi), t);
4350
4387
  n.quotes != "single" && n.quotes != "double" && (n.quotes = "single");
4351
4388
  const r = n.quotes == "double" ? '"' : "'", i = n.isIdentifier, s = e.charAt(0);
4352
4389
  let o = "", a = 0;
@@ -4356,23 +4393,23 @@ function Te(e, t = {}) {
4356
4393
  let h = f.charCodeAt(0), m;
4357
4394
  if (h < 32 || h > 126) {
4358
4395
  if (h >= 55296 && h <= 56319 && a < c) {
4359
- const E = e.charCodeAt(a++);
4360
- (E & 64512) == 56320 ? h = ((h & 1023) << 10) + (E & 1023) + 65536 : a--;
4396
+ const _ = e.charCodeAt(a++);
4397
+ (_ & 64512) == 56320 ? h = ((h & 1023) << 10) + (_ & 1023) + 65536 : a--;
4361
4398
  }
4362
4399
  m = "\\" + h.toString(16).toUpperCase() + " ";
4363
4400
  } else
4364
- n.escapeEverything ? hi.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 && di.test(f) ? m = "\\" + f : m = f;
4401
+ n.escapeEverything ? _i.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 && Ti.test(f) ? m = "\\" + f : m = f;
4365
4402
  o += m;
4366
4403
  }
4367
- return i && (/^-[-\d]/.test(o) ? o = "\\-" + o.slice(1) : /\d/.test(s) && (o = "\\3" + s + " " + o.slice(1))), o = o.replace(pi, function(f, h, m) {
4404
+ return i && (/^-[-\d]/.test(o) ? o = "\\-" + o.slice(1) : /\d/.test(s) && (o = "\\3" + s + " " + o.slice(1))), o = o.replace(Si, function(f, h, m) {
4368
4405
  return h && h.length % 2 ? f : (h || "") + m;
4369
4406
  }), !i && n.wrap ? r + o + r : o;
4370
4407
  }
4371
- const Xe = (e) => {
4408
+ const Qe = (e) => {
4372
4409
  let t = "";
4373
4410
  const n = e.getAttribute("class"), r = e.getAttribute("id");
4374
- return r && (t = t.concat(vt(r, "#"))), n && (t = t.concat(vt(n, "."))), t === "" && (t = t.concat(e.tagName.toLowerCase())), t;
4375
- }, vt = (e, t) => `${t}${e.trim().split(" ").join(t)}`, ds = (e) => {
4411
+ return r && (t = t.concat(It(r, "#"))), n && (t = t.concat(It(n, "."))), t === "" && (t = t.concat(e.tagName.toLowerCase())), t;
4412
+ }, It = (e, t) => `${t}${e.trim().split(" ").join(t)}`, Ts = (e) => {
4376
4413
  let t;
4377
4414
  const r = () => {
4378
4415
  clearTimeout(t), t = setTimeout(() => {
@@ -4390,7 +4427,7 @@ const Xe = (e) => {
4390
4427
  };
4391
4428
  return window.addEventListener("resize", r), r(), () => window.removeEventListener("resize", r);
4392
4429
  };
4393
- var Kt = { exports: {} };
4430
+ var nn = { exports: {} };
4394
4431
  /**
4395
4432
  * @preserve
4396
4433
  * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
@@ -4443,36 +4480,36 @@ var Kt = { exports: {} };
4443
4480
  return this.h1 = typeof r == "number" ? r : 0, this.rem = this.k1 = this.len = 0, this;
4444
4481
  }, t = new n(), e.exports = n;
4445
4482
  })();
4446
- })(Kt);
4447
- var gi = Kt.exports;
4448
- const yi = /* @__PURE__ */ Ze(gi), $e = 28, z = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", Ei = 2246822507, St = (e) => {
4483
+ })(nn);
4484
+ var Ai = nn.exports;
4485
+ const Ni = /* @__PURE__ */ et(Ai), Ue = 28, J = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", Ii = 2246822507, bt = (e) => {
4449
4486
  var n;
4450
4487
  var t = "";
4451
4488
  if (e) {
4452
- const r = yi(e).result();
4453
- for (let i = 0; i < $e; i++) {
4454
- const o = ((r ^ i * Ei) >>> 0) % z.length;
4455
- t += z.charAt(o);
4489
+ const r = Ni(e).result();
4490
+ for (let i = 0; i < Ue; i++) {
4491
+ const o = ((r ^ i * Ii) >>> 0) % J.length;
4492
+ t += J.charAt(o);
4456
4493
  }
4457
4494
  } else {
4458
- const r = typeof window != "undefined" && ((n = window.crypto) == null ? void 0 : n.getRandomValues), i = new Uint32Array($e);
4495
+ const r = typeof window != "undefined" && ((n = window.crypto) == null ? void 0 : n.getRandomValues), i = new Uint32Array(Ue);
4459
4496
  r && window.crypto.getRandomValues(i);
4460
- for (let s = 0; s < $e; s++)
4461
- r ? t += z.charAt(
4462
- i[s] % z.length
4463
- ) : t += z.charAt(
4464
- Math.floor(Math.random() * z.length)
4497
+ for (let s = 0; s < Ue; s++)
4498
+ r ? t += J.charAt(
4499
+ i[s] % J.length
4500
+ ) : t += J.charAt(
4501
+ Math.floor(Math.random() * J.length)
4465
4502
  );
4466
4503
  }
4467
4504
  return t;
4468
4505
  };
4469
- class ps {
4506
+ class Ss {
4470
4507
  constructor(t) {
4471
- G(this, "sessionSecureID");
4508
+ Y(this, "sessionSecureID");
4472
4509
  try {
4473
- t != null && t.storageMode && Rr(t == null ? void 0 : t.storageMode), dt(!!(t != null && t.sessionCookie)), t != null && t.sessionCookie ? Mr() : dt(!1);
4510
+ t != null && t.storageMode && Ur(t == null ? void 0 : t.storageMode), gt(!!(t != null && t.sessionCookie)), (t == null ? void 0 : t.sessionCookieDomain) !== void 0 && Br(t.sessionCookieDomain), t != null && t.sessionCookie ? Hr() : gt(!1);
4474
4511
  } catch (n) {
4475
- st(
4512
+ ct(
4476
4513
  "Error initializing @launchdarkly observability plugin",
4477
4514
  "error",
4478
4515
  n
@@ -4481,13 +4518,13 @@ class ps {
4481
4518
  }
4482
4519
  configureSession(t, n) {
4483
4520
  try {
4484
- const r = kr();
4485
- let i = Fr(
4521
+ const r = qt();
4522
+ let i = jr(
4486
4523
  r
4487
4524
  );
4488
- i != null && i.sessionSecureID ? this.sessionSecureID = i.sessionSecureID : (n != null && n.sessionKey ? this.sessionSecureID = St(
4525
+ i != null && i.sessionSecureID ? this.sessionSecureID = i.sessionSecureID : (n != null && n.sessionKey ? this.sessionSecureID = bt(
4489
4526
  `${t}-${n.sessionKey}`
4490
- ) : this.sessionSecureID = St(), Vt(this.sessionSecureID), jt({
4527
+ ) : this.sessionSecureID = bt(), Gt(this.sessionSecureID), it({
4491
4528
  sessionSecureID: this.sessionSecureID,
4492
4529
  sessionKey: n == null ? void 0 : n.sessionKey,
4493
4530
  projectID: 0,
@@ -4495,7 +4532,7 @@ class ps {
4495
4532
  lastPushTime: Date.now()
4496
4533
  }));
4497
4534
  } catch (r) {
4498
- st(
4535
+ ct(
4499
4536
  "Error configuring session in @launchdarkly observability plugin",
4500
4537
  "error",
4501
4538
  r
@@ -4504,84 +4541,86 @@ class ps {
4504
4541
  }
4505
4542
  }
4506
4543
  export {
4507
- Br as $,
4508
- Qi as A,
4509
- zi as B,
4510
- Ji as C,
4511
- Xi as D,
4512
- ps as E,
4513
- Vi as F,
4514
- St as G,
4515
- Yi as H,
4516
- yt as I,
4517
- Et as J,
4518
- ts as K,
4519
- cs as L,
4520
- qi as M,
4521
- es as N,
4522
- Xr as O,
4523
- us as P,
4524
- Zi as Q,
4525
- Fi as R,
4544
+ Yr as $,
4545
+ rs as A,
4546
+ ns as B,
4547
+ Zi as C,
4548
+ es as D,
4549
+ ts as E,
4550
+ Ji as F,
4551
+ bt as G,
4552
+ Wi as H,
4553
+ Ss as I,
4554
+ St as J,
4555
+ vt as K,
4556
+ ms as L,
4557
+ Lr as M,
4558
+ cs as N,
4559
+ as as O,
4560
+ gs as P,
4561
+ ni as Q,
4562
+ os as R,
4526
4563
  ee as S,
4527
- Pi as T,
4528
- tr as U,
4529
- Gi as V,
4530
- Ze as W,
4531
- Ni as X,
4532
- Ii as Y,
4533
- kr as Z,
4534
- Ur as _,
4535
- tt as a,
4536
- Vr as a0,
4537
- Mi as a1,
4538
- is as a2,
4539
- Ci as a3,
4540
- Bi as a4,
4541
- Li as a5,
4542
- ki as a6,
4543
- ss as a7,
4544
- Ui as a8,
4545
- $i as a9,
4546
- wi as aa,
4547
- Oi as ab,
4548
- Di as ac,
4549
- ns as ad,
4550
- Ri as ae,
4551
- rs as af,
4552
- Jr as ag,
4553
- Gt as ah,
4554
- C as ai,
4555
- Qr as aj,
4556
- Gr as ak,
4557
- pt as al,
4558
- Yr as am,
4559
- zr as an,
4560
- os as ao,
4561
- bi as b,
4562
- Ai as c,
4563
- $t as d,
4564
- Vt as e,
4565
- jt as f,
4566
- Fr as g,
4567
- ds as h,
4568
- ji as i,
4569
- dt as j,
4570
- Hi as k,
4571
- Dr as l,
4572
- Rr as m,
4573
- Wi as n,
4574
- vi as o,
4575
- zn as p,
4576
- hs as q,
4577
- Ut as r,
4578
- Si as s,
4579
- xi as t,
4580
- yr as u,
4581
- as as v,
4582
- Mr as w,
4583
- ls as x,
4584
- fs as y,
4585
- Ki as z
4564
+ qi as T,
4565
+ ji as U,
4566
+ Ki as V,
4567
+ ar as W,
4568
+ et as X,
4569
+ Ci as Y,
4570
+ ki as Z,
4571
+ qt as _,
4572
+ nt as a,
4573
+ zr as a0,
4574
+ Jr as a1,
4575
+ Hi as a2,
4576
+ fs as a3,
4577
+ $i as a4,
4578
+ is as a5,
4579
+ zi as a6,
4580
+ Vi as a7,
4581
+ Bi as a8,
4582
+ hs as a9,
4583
+ Yi as aa,
4584
+ Gi as ab,
4585
+ Mi as ac,
4586
+ Pi as ad,
4587
+ Fi as ae,
4588
+ us as af,
4589
+ Ui as ag,
4590
+ ls as ah,
4591
+ ti as ai,
4592
+ Qt as aj,
4593
+ C as ak,
4594
+ ri as al,
4595
+ Wr as am,
4596
+ Et as an,
4597
+ Zr as ao,
4598
+ ei as ap,
4599
+ ds as aq,
4600
+ Ri as b,
4601
+ wi as c,
4602
+ jt as d,
4603
+ Gt as e,
4604
+ it as f,
4605
+ jr as g,
4606
+ Ts as h,
4607
+ Xi as i,
4608
+ gt as j,
4609
+ Br as k,
4610
+ Qi as l,
4611
+ Fr as m,
4612
+ Ur as n,
4613
+ ss as o,
4614
+ Zn as p,
4615
+ Oi as q,
4616
+ rt as r,
4617
+ Di as s,
4618
+ _s as t,
4619
+ Li as u,
4620
+ Ar as v,
4621
+ ps as w,
4622
+ Hr as x,
4623
+ ys as y,
4624
+ Es as z
4586
4625
  };
4587
- //# sourceMappingURL=common-BkAGcE30.js.map
4626
+ //# sourceMappingURL=common-7gIdCuSo.js.map