@builtbystack/sq-shopify-theme-sdk 0.0.34 → 0.0.37

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,16 +1,16 @@
1
1
  var Je = Object.defineProperty;
2
2
  var Xe = (e, t, n) => t in e ? Je(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var Se = (e, t, n) => Xe(e, typeof t != "symbol" ? t + "" : t, n);
3
+ var Pe = (e, t, n) => Xe(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  function Ke(e, t) {
5
5
  for (var n = 0; n < t.length; n++) {
6
- const r = t[n];
7
- if (typeof r != "string" && !Array.isArray(r)) {
8
- for (const i in r)
9
- if (i !== "default" && !(i in e)) {
10
- const s = Object.getOwnPropertyDescriptor(r, i);
11
- s && Object.defineProperty(e, i, s.get ? s : {
6
+ const i = t[n];
7
+ if (typeof i != "string" && !Array.isArray(i)) {
8
+ for (const r in i)
9
+ if (r !== "default" && !(r in e)) {
10
+ const s = Object.getOwnPropertyDescriptor(i, r);
11
+ s && Object.defineProperty(e, r, s.get ? s : {
12
12
  enumerable: !0,
13
- get: () => r[i]
13
+ get: () => i[r]
14
14
  });
15
15
  }
16
16
  }
@@ -19,8 +19,8 @@ function Ke(e, t) {
19
19
  }
20
20
  const Ae = JSON, Ze = (e) => e.toUpperCase(), We = (e) => {
21
21
  const t = {};
22
- return e.forEach((n, r) => {
23
- t[r] = n;
22
+ return e.forEach((n, i) => {
23
+ t[i] = n;
24
24
  }), t;
25
25
  }, et = (e, t, n) => e.document ? e : {
26
26
  document: e,
@@ -41,10 +41,10 @@ function ee(e, t) {
41
41
  if (!!!e)
42
42
  throw new Error(t);
43
43
  }
44
- function it(e) {
44
+ function rt(e) {
45
45
  return typeof e == "object" && e !== null;
46
46
  }
47
- function rt(e, t) {
47
+ function it(e, t) {
48
48
  if (!!!e)
49
49
  throw new Error(
50
50
  "Unexpected invariant triggered."
@@ -52,14 +52,14 @@ function rt(e, t) {
52
52
  }
53
53
  const st = /\r\n|[\n\r]/g;
54
54
  function ge(e, t) {
55
- let n = 0, r = 1;
56
- for (const i of e.body.matchAll(st)) {
57
- if (typeof i.index == "number" || rt(!1), i.index >= t)
55
+ let n = 0, i = 1;
56
+ for (const r of e.body.matchAll(st)) {
57
+ if (typeof r.index == "number" || it(!1), r.index >= t)
58
58
  break;
59
- n = i.index + i[0].length, r += 1;
59
+ n = r.index + r[0].length, i += 1;
60
60
  }
61
61
  return {
62
- line: r,
62
+ line: i,
63
63
  column: t + 1 - n
64
64
  };
65
65
  }
@@ -70,30 +70,30 @@ function at(e) {
70
70
  );
71
71
  }
72
72
  function ke(e, t) {
73
- const n = e.locationOffset.column - 1, r = "".padStart(n) + e.body, i = t.line - 1, s = e.locationOffset.line - 1, a = t.line + s, c = t.line === 1 ? n : 0, l = t.column + c, m = `${e.name}:${a}:${l}
74
- `, f = r.split(/\r\n|[\n\r]/g), A = f[i];
73
+ const n = e.locationOffset.column - 1, i = "".padStart(n) + e.body, r = t.line - 1, s = e.locationOffset.line - 1, a = t.line + s, c = t.line === 1 ? n : 0, l = t.column + c, m = `${e.name}:${a}:${l}
74
+ `, f = i.split(/\r\n|[\n\r]/g), A = f[r];
75
75
  if (A.length > 120) {
76
- const C = Math.floor(l / 80), R = l % 80, I = [];
76
+ const C = Math.floor(l / 80), S = l % 80, I = [];
77
77
  for (let y = 0; y < A.length; y += 80)
78
78
  I.push(A.slice(y, y + 80));
79
- return m + Re([
79
+ return m + Se([
80
80
  [`${a} |`, I[0]],
81
81
  ...I.slice(1, C + 1).map((y) => ["|", y]),
82
- ["|", "^".padStart(R)],
82
+ ["|", "^".padStart(S)],
83
83
  ["|", I[C + 1]]
84
84
  ]);
85
85
  }
86
- return m + Re([
86
+ return m + Se([
87
87
  // Lines specified like this: ["prefix", "string"],
88
- [`${a - 1} |`, f[i - 1]],
88
+ [`${a - 1} |`, f[r - 1]],
89
89
  [`${a} |`, A],
90
90
  ["|", "^".padStart(l)],
91
- [`${a + 1} |`, f[i + 1]]
91
+ [`${a + 1} |`, f[r + 1]]
92
92
  ]);
93
93
  }
94
- function Re(e) {
95
- const t = e.filter(([r, i]) => i !== void 0), n = Math.max(...t.map(([r]) => r.length));
96
- return t.map(([r, i]) => r.padStart(n) + (i ? " " + i : "")).join(`
94
+ function Se(e) {
95
+ const t = e.filter(([i, r]) => r !== void 0), n = Math.max(...t.map(([i]) => i.length));
96
+ return t.map(([i, r]) => i.padStart(n) + (r ? " " + r : "")).join(`
97
97
  `);
98
98
  }
99
99
  function ot(e) {
@@ -147,19 +147,19 @@ class ve extends Error {
147
147
  * @deprecated Please use the `GraphQLErrorOptions` constructor overload instead.
148
148
  */
149
149
  constructor(t, ...n) {
150
- var r, i, s;
150
+ var i, r, s;
151
151
  const { nodes: a, source: c, positions: l, path: m, originalError: f, extensions: A } = ot(n);
152
152
  super(t), this.name = "GraphQLError", this.path = m ?? void 0, this.originalError = f ?? void 0, this.nodes = Oe(
153
153
  Array.isArray(a) ? a : a ? [a] : void 0
154
154
  );
155
155
  const C = Oe(
156
- (r = this.nodes) === null || r === void 0 ? void 0 : r.map((I) => I.loc).filter((I) => I != null)
156
+ (i = this.nodes) === null || i === void 0 ? void 0 : i.map((I) => I.loc).filter((I) => I != null)
157
157
  );
158
- this.source = c ?? (C == null || (i = C[0]) === null || i === void 0 ? void 0 : i.source), this.positions = l ?? (C == null ? void 0 : C.map((I) => I.start)), this.locations = l && c ? l.map((I) => ge(c, I)) : C == null ? void 0 : C.map((I) => ge(I.source, I.start));
159
- const R = it(
158
+ this.source = c ?? (C == null || (r = C[0]) === null || r === void 0 ? void 0 : r.source), this.positions = l ?? (C == null ? void 0 : C.map((I) => I.start)), this.locations = l && c ? l.map((I) => ge(c, I)) : C == null ? void 0 : C.map((I) => ge(I.source, I.start));
159
+ const S = rt(
160
160
  f == null ? void 0 : f.extensions
161
161
  ) ? f == null ? void 0 : f.extensions : void 0;
162
- this.extensions = (s = A ?? R) !== null && s !== void 0 ? s : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
162
+ this.extensions = (s = A ?? S) !== null && s !== void 0 ? s : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
163
163
  message: {
164
164
  writable: !0,
165
165
  enumerable: !0
@@ -216,7 +216,7 @@ class ve extends Error {
216
216
  function Oe(e) {
217
217
  return e === void 0 || e.length === 0 ? void 0 : e;
218
218
  }
219
- function P(e, t, n) {
219
+ function x(e, t, n) {
220
220
  return new ve(`Syntax Error: ${n}`, {
221
221
  source: e,
222
222
  positions: [t]
@@ -238,8 +238,8 @@ class ut {
238
238
  /**
239
239
  * The Source document the AST represents.
240
240
  */
241
- constructor(t, n, r) {
242
- this.start = t.start, this.end = n.end, this.startToken = t, this.endToken = n, this.source = r;
241
+ constructor(t, n, i) {
242
+ this.start = t.start, this.end = n.end, this.startToken = t, this.endToken = n, this.source = i;
243
243
  }
244
244
  get [Symbol.toStringTag]() {
245
245
  return "Location";
@@ -278,8 +278,8 @@ class _e {
278
278
  * including ignored tokens. <SOF> is always the first node and <EOF>
279
279
  * the last.
280
280
  */
281
- constructor(t, n, r, i, s, a) {
282
- this.kind = t, this.start = n, this.end = r, this.line = i, this.column = s, this.value = a, this.prev = null, this.next = null;
281
+ constructor(t, n, i, r, s, a) {
282
+ this.kind = t, this.start = n, this.end = i, this.line = r, this.column = s, this.value = a, this.prev = null, this.next = null;
283
283
  }
284
284
  get [Symbol.toStringTag]() {
285
285
  return "Token";
@@ -381,26 +381,26 @@ const Le = {
381
381
  DirectiveCoordinate: ["name"],
382
382
  DirectiveArgumentCoordinate: ["name", "argumentName"]
383
383
  }, ct = new Set(Object.keys(Le));
384
- function xe(e) {
384
+ function Re(e) {
385
385
  const t = e == null ? void 0 : e.kind;
386
386
  return typeof t == "string" && ct.has(t);
387
387
  }
388
- var V;
388
+ var U;
389
389
  (function(e) {
390
390
  e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
391
- })(V || (V = {}));
391
+ })(U || (U = {}));
392
392
  var Ce;
393
393
  (function(e) {
394
394
  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";
395
395
  })(Ce || (Ce = {}));
396
- var p;
396
+ var h;
397
397
  (function(e) {
398
398
  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", e.TYPE_COORDINATE = "TypeCoordinate", e.MEMBER_COORDINATE = "MemberCoordinate", e.ARGUMENT_COORDINATE = "ArgumentCoordinate", e.DIRECTIVE_COORDINATE = "DirectiveCoordinate", e.DIRECTIVE_ARGUMENT_COORDINATE = "DirectiveArgumentCoordinate";
399
- })(p || (p = {}));
399
+ })(h || (h = {}));
400
400
  function ye(e) {
401
401
  return e === 9 || e === 32;
402
402
  }
403
- function z(e) {
403
+ function Q(e) {
404
404
  return e >= 48 && e <= 57;
405
405
  }
406
406
  function we(e) {
@@ -411,34 +411,34 @@ function Me(e) {
411
411
  return we(e) || e === 95;
412
412
  }
413
413
  function dt(e) {
414
- return we(e) || z(e) || e === 95;
414
+ return we(e) || Q(e) || e === 95;
415
415
  }
416
416
  function lt(e) {
417
417
  var t;
418
- let n = Number.MAX_SAFE_INTEGER, r = null, i = -1;
418
+ let n = Number.MAX_SAFE_INTEGER, i = null, r = -1;
419
419
  for (let a = 0; a < e.length; ++a) {
420
420
  var s;
421
- const c = e[a], l = ht(c);
422
- l !== c.length && (r = (s = r) !== null && s !== void 0 ? s : a, i = a, a !== 0 && l < n && (n = l));
421
+ const c = e[a], l = pt(c);
422
+ l !== c.length && (i = (s = i) !== null && s !== void 0 ? s : a, r = a, a !== 0 && l < n && (n = l));
423
423
  }
424
424
  return e.map((a, c) => c === 0 ? a : a.slice(n)).slice(
425
- (t = r) !== null && t !== void 0 ? t : 0,
426
- i + 1
425
+ (t = i) !== null && t !== void 0 ? t : 0,
426
+ r + 1
427
427
  );
428
428
  }
429
- function ht(e) {
429
+ function pt(e) {
430
430
  let t = 0;
431
431
  for (; t < e.length && ye(e.charCodeAt(t)); )
432
432
  ++t;
433
433
  return t;
434
434
  }
435
- function pt(e, t) {
436
- 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((R) => R.length === 0 || ye(R.charCodeAt(0))), a = n.endsWith('\\"""'), c = e.endsWith('"') && !a, l = e.endsWith("\\"), m = c || l, f = (
435
+ function ht(e, t) {
436
+ const n = e.replace(/"""/g, '\\"""'), i = n.split(/\r\n|[\n\r]/g), r = i.length === 1, s = i.length > 1 && i.slice(1).every((S) => S.length === 0 || ye(S.charCodeAt(0))), a = n.endsWith('\\"""'), c = e.endsWith('"') && !a, l = e.endsWith("\\"), m = c || l, f = (
437
437
  // add leading and trailing new lines only if it improves readability
438
- !i || e.length > 70 || m || s || a
438
+ !r || e.length > 70 || m || s || a
439
439
  );
440
440
  let A = "";
441
- const C = i && ye(e.charCodeAt(0));
441
+ const C = r && ye(e.charCodeAt(0));
442
442
  return (f && !C || s) && (A += `
443
443
  `), A += n, (f || m) && (A += `
444
444
  `), '"""' + A + '"""';
@@ -494,37 +494,37 @@ class mt {
494
494
  function ft(e) {
495
495
  return e === u.BANG || e === u.DOLLAR || e === u.AMP || e === u.PAREN_L || e === u.PAREN_R || e === u.DOT || e === u.SPREAD || e === u.COLON || e === u.EQUALS || e === u.AT || e === u.BRACKET_L || e === u.BRACKET_R || e === u.BRACE_L || e === u.PIPE || e === u.BRACE_R;
496
496
  }
497
- function G(e) {
497
+ function V(e) {
498
498
  return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
499
499
  }
500
500
  function oe(e, t) {
501
- return qe(e.charCodeAt(t)) && Be(e.charCodeAt(t + 1));
501
+ return qe(e.charCodeAt(t)) && Fe(e.charCodeAt(t + 1));
502
502
  }
503
503
  function qe(e) {
504
504
  return e >= 55296 && e <= 56319;
505
505
  }
506
- function Be(e) {
506
+ function Fe(e) {
507
507
  return e >= 56320 && e <= 57343;
508
508
  }
509
- function B(e, t) {
509
+ function F(e, t) {
510
510
  const n = e.source.body.codePointAt(t);
511
511
  if (n === void 0)
512
512
  return u.EOF;
513
513
  if (n >= 32 && n <= 126) {
514
- const r = String.fromCodePoint(n);
515
- return r === '"' ? `'"'` : `"${r}"`;
514
+ const i = String.fromCodePoint(n);
515
+ return i === '"' ? `'"'` : `"${i}"`;
516
516
  }
517
517
  return "U+" + n.toString(16).toUpperCase().padStart(4, "0");
518
518
  }
519
- function x(e, t, n, r, i) {
519
+ function R(e, t, n, i, r) {
520
520
  const s = e.line, a = 1 + n - e.lineStart;
521
- return new _e(t, n, r, s, a, i);
521
+ return new _e(t, n, i, s, a, r);
522
522
  }
523
523
  function gt(e, t) {
524
- const n = e.source.body, r = n.length;
525
- let i = t;
526
- for (; i < r; ) {
527
- const s = n.charCodeAt(i);
524
+ const n = e.source.body, i = n.length;
525
+ let r = t;
526
+ for (; r < i; ) {
527
+ const s = n.charCodeAt(r);
528
528
  switch (s) {
529
529
  // Ignored ::
530
530
  // - UnicodeBOM
@@ -547,21 +547,21 @@ function gt(e, t) {
547
547
  case 32:
548
548
  // <space>
549
549
  case 44:
550
- ++i;
550
+ ++r;
551
551
  continue;
552
552
  // LineTerminator ::
553
553
  // - "New Line (U+000A)"
554
554
  // - "Carriage Return (U+000D)" [lookahead != "New Line (U+000A)"]
555
555
  // - "Carriage Return (U+000D)" "New Line (U+000A)"
556
556
  case 10:
557
- ++i, ++e.line, e.lineStart = i;
557
+ ++r, ++e.line, e.lineStart = r;
558
558
  continue;
559
559
  case 13:
560
- n.charCodeAt(i + 1) === 10 ? i += 2 : ++i, ++e.line, e.lineStart = i;
560
+ n.charCodeAt(r + 1) === 10 ? r += 2 : ++r, ++e.line, e.lineStart = r;
561
561
  continue;
562
562
  // Comment
563
563
  case 35:
564
- return Ct(e, i);
564
+ return Ct(e, r);
565
565
  // Token ::
566
566
  // - Punctuator
567
567
  // - Name
@@ -571,199 +571,199 @@ function gt(e, t) {
571
571
  //
572
572
  // Punctuator :: one of ! $ & ( ) ... : = @ [ ] { | }
573
573
  case 33:
574
- return x(e, u.BANG, i, i + 1);
574
+ return R(e, u.BANG, r, r + 1);
575
575
  case 36:
576
- return x(e, u.DOLLAR, i, i + 1);
576
+ return R(e, u.DOLLAR, r, r + 1);
577
577
  case 38:
578
- return x(e, u.AMP, i, i + 1);
578
+ return R(e, u.AMP, r, r + 1);
579
579
  case 40:
580
- return x(e, u.PAREN_L, i, i + 1);
580
+ return R(e, u.PAREN_L, r, r + 1);
581
581
  case 41:
582
- return x(e, u.PAREN_R, i, i + 1);
582
+ return R(e, u.PAREN_R, r, r + 1);
583
583
  case 46:
584
- if (n.charCodeAt(i + 1) === 46 && n.charCodeAt(i + 2) === 46)
585
- return x(e, u.SPREAD, i, i + 3);
584
+ if (n.charCodeAt(r + 1) === 46 && n.charCodeAt(r + 2) === 46)
585
+ return R(e, u.SPREAD, r, r + 3);
586
586
  break;
587
587
  case 58:
588
- return x(e, u.COLON, i, i + 1);
588
+ return R(e, u.COLON, r, r + 1);
589
589
  case 61:
590
- return x(e, u.EQUALS, i, i + 1);
590
+ return R(e, u.EQUALS, r, r + 1);
591
591
  case 64:
592
- return x(e, u.AT, i, i + 1);
592
+ return R(e, u.AT, r, r + 1);
593
593
  case 91:
594
- return x(e, u.BRACKET_L, i, i + 1);
594
+ return R(e, u.BRACKET_L, r, r + 1);
595
595
  case 93:
596
- return x(e, u.BRACKET_R, i, i + 1);
596
+ return R(e, u.BRACKET_R, r, r + 1);
597
597
  case 123:
598
- return x(e, u.BRACE_L, i, i + 1);
598
+ return R(e, u.BRACE_L, r, r + 1);
599
599
  case 124:
600
- return x(e, u.PIPE, i, i + 1);
600
+ return R(e, u.PIPE, r, r + 1);
601
601
  case 125:
602
- return x(e, u.BRACE_R, i, i + 1);
602
+ return R(e, u.BRACE_R, r, r + 1);
603
603
  // StringValue
604
604
  case 34:
605
- return n.charCodeAt(i + 1) === 34 && n.charCodeAt(i + 2) === 34 ? It(e, i) : Et(e, i);
605
+ return n.charCodeAt(r + 1) === 34 && n.charCodeAt(r + 2) === 34 ? It(e, r) : Et(e, r);
606
606
  }
607
- if (z(s) || s === 45)
608
- return yt(e, i, s);
607
+ if (Q(s) || s === 45)
608
+ return yt(e, r, s);
609
609
  if (Me(s))
610
- return St(e, i);
611
- throw P(
610
+ return Pt(e, r);
611
+ throw x(
612
612
  e.source,
613
- i,
614
- s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : G(s) || oe(n, i) ? `Unexpected character: ${B(e, i)}.` : `Invalid character: ${B(e, i)}.`
613
+ r,
614
+ s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : V(s) || oe(n, r) ? `Unexpected character: ${F(e, r)}.` : `Invalid character: ${F(e, r)}.`
615
615
  );
616
616
  }
617
- return x(e, u.EOF, r, r);
617
+ return R(e, u.EOF, i, i);
618
618
  }
619
619
  function Ct(e, t) {
620
- const n = e.source.body, r = n.length;
621
- let i = t + 1;
622
- for (; i < r; ) {
623
- const s = n.charCodeAt(i);
620
+ const n = e.source.body, i = n.length;
621
+ let r = t + 1;
622
+ for (; r < i; ) {
623
+ const s = n.charCodeAt(r);
624
624
  if (s === 10 || s === 13)
625
625
  break;
626
- if (G(s))
627
- ++i;
628
- else if (oe(n, i))
629
- i += 2;
626
+ if (V(s))
627
+ ++r;
628
+ else if (oe(n, r))
629
+ r += 2;
630
630
  else
631
631
  break;
632
632
  }
633
- return x(
633
+ return R(
634
634
  e,
635
635
  u.COMMENT,
636
636
  t,
637
- i,
638
- n.slice(t + 1, i)
637
+ r,
638
+ n.slice(t + 1, r)
639
639
  );
640
640
  }
641
641
  function yt(e, t, n) {
642
- const r = e.source.body;
643
- let i = t, s = n, a = !1;
644
- if (s === 45 && (s = r.charCodeAt(++i)), s === 48) {
645
- if (s = r.charCodeAt(++i), z(s))
646
- throw P(
642
+ const i = e.source.body;
643
+ let r = t, s = n, a = !1;
644
+ if (s === 45 && (s = i.charCodeAt(++r)), s === 48) {
645
+ if (s = i.charCodeAt(++r), Q(s))
646
+ throw x(
647
647
  e.source,
648
- i,
649
- `Invalid number, unexpected digit after 0: ${B(
648
+ r,
649
+ `Invalid number, unexpected digit after 0: ${F(
650
650
  e,
651
- i
651
+ r
652
652
  )}.`
653
653
  );
654
654
  } else
655
- i = le(e, i, s), s = r.charCodeAt(i);
656
- if (s === 46 && (a = !0, s = r.charCodeAt(++i), i = le(e, i, s), s = r.charCodeAt(i)), (s === 69 || s === 101) && (a = !0, s = r.charCodeAt(++i), (s === 43 || s === 45) && (s = r.charCodeAt(++i)), i = le(e, i, s), s = r.charCodeAt(i)), s === 46 || Me(s))
657
- throw P(
655
+ r = le(e, r, s), s = i.charCodeAt(r);
656
+ if (s === 46 && (a = !0, s = i.charCodeAt(++r), r = le(e, r, s), s = i.charCodeAt(r)), (s === 69 || s === 101) && (a = !0, s = i.charCodeAt(++r), (s === 43 || s === 45) && (s = i.charCodeAt(++r)), r = le(e, r, s), s = i.charCodeAt(r)), s === 46 || Me(s))
657
+ throw x(
658
658
  e.source,
659
- i,
660
- `Invalid number, expected digit but got: ${B(
659
+ r,
660
+ `Invalid number, expected digit but got: ${F(
661
661
  e,
662
- i
662
+ r
663
663
  )}.`
664
664
  );
665
- return x(
665
+ return R(
666
666
  e,
667
667
  a ? u.FLOAT : u.INT,
668
668
  t,
669
- i,
670
- r.slice(t, i)
669
+ r,
670
+ i.slice(t, r)
671
671
  );
672
672
  }
673
673
  function le(e, t, n) {
674
- if (!z(n))
675
- throw P(
674
+ if (!Q(n))
675
+ throw x(
676
676
  e.source,
677
677
  t,
678
- `Invalid number, expected digit but got: ${B(
678
+ `Invalid number, expected digit but got: ${F(
679
679
  e,
680
680
  t
681
681
  )}.`
682
682
  );
683
- const r = e.source.body;
684
- let i = t + 1;
685
- for (; z(r.charCodeAt(i)); )
686
- ++i;
687
- return i;
683
+ const i = e.source.body;
684
+ let r = t + 1;
685
+ for (; Q(i.charCodeAt(r)); )
686
+ ++r;
687
+ return r;
688
688
  }
689
689
  function Et(e, t) {
690
- const n = e.source.body, r = n.length;
691
- let i = t + 1, s = i, a = "";
692
- for (; i < r; ) {
693
- const c = n.charCodeAt(i);
690
+ const n = e.source.body, i = n.length;
691
+ let r = t + 1, s = r, a = "";
692
+ for (; r < i; ) {
693
+ const c = n.charCodeAt(r);
694
694
  if (c === 34)
695
- return a += n.slice(s, i), x(e, u.STRING, t, i + 1, a);
695
+ return a += n.slice(s, r), R(e, u.STRING, t, r + 1, a);
696
696
  if (c === 92) {
697
- a += n.slice(s, i);
698
- const l = n.charCodeAt(i + 1) === 117 ? n.charCodeAt(i + 2) === 123 ? At(e, i) : vt(e, i) : Tt(e, i);
699
- a += l.value, i += l.size, s = i;
697
+ a += n.slice(s, r);
698
+ const l = n.charCodeAt(r + 1) === 117 ? n.charCodeAt(r + 2) === 123 ? At(e, r) : vt(e, r) : Tt(e, r);
699
+ a += l.value, r += l.size, s = r;
700
700
  continue;
701
701
  }
702
702
  if (c === 10 || c === 13)
703
703
  break;
704
- if (G(c))
705
- ++i;
706
- else if (oe(n, i))
707
- i += 2;
704
+ if (V(c))
705
+ ++r;
706
+ else if (oe(n, r))
707
+ r += 2;
708
708
  else
709
- throw P(
709
+ throw x(
710
710
  e.source,
711
- i,
712
- `Invalid character within String: ${B(
711
+ r,
712
+ `Invalid character within String: ${F(
713
713
  e,
714
- i
714
+ r
715
715
  )}.`
716
716
  );
717
717
  }
718
- throw P(e.source, i, "Unterminated string.");
718
+ throw x(e.source, r, "Unterminated string.");
719
719
  }
720
720
  function At(e, t) {
721
721
  const n = e.source.body;
722
- let r = 0, i = 3;
723
- for (; i < 12; ) {
724
- const s = n.charCodeAt(t + i++);
722
+ let i = 0, r = 3;
723
+ for (; r < 12; ) {
724
+ const s = n.charCodeAt(t + r++);
725
725
  if (s === 125) {
726
- if (i < 5 || !G(r))
726
+ if (r < 5 || !V(i))
727
727
  break;
728
728
  return {
729
- value: String.fromCodePoint(r),
730
- size: i
729
+ value: String.fromCodePoint(i),
730
+ size: r
731
731
  };
732
732
  }
733
- if (r = r << 4 | H(s), r < 0)
733
+ if (i = i << 4 | H(s), i < 0)
734
734
  break;
735
735
  }
736
- throw P(
736
+ throw x(
737
737
  e.source,
738
738
  t,
739
739
  `Invalid Unicode escape sequence: "${n.slice(
740
740
  t,
741
- t + i
741
+ t + r
742
742
  )}".`
743
743
  );
744
744
  }
745
745
  function vt(e, t) {
746
- const n = e.source.body, r = Pe(n, t + 2);
747
- if (G(r))
746
+ const n = e.source.body, i = xe(n, t + 2);
747
+ if (V(i))
748
748
  return {
749
- value: String.fromCodePoint(r),
749
+ value: String.fromCodePoint(i),
750
750
  size: 6
751
751
  };
752
- if (qe(r) && n.charCodeAt(t + 6) === 92 && n.charCodeAt(t + 7) === 117) {
753
- const i = Pe(n, t + 8);
754
- if (Be(i))
752
+ if (qe(i) && n.charCodeAt(t + 6) === 92 && n.charCodeAt(t + 7) === 117) {
753
+ const r = xe(n, t + 8);
754
+ if (Fe(r))
755
755
  return {
756
- value: String.fromCodePoint(r, i),
756
+ value: String.fromCodePoint(i, r),
757
757
  size: 12
758
758
  };
759
759
  }
760
- throw P(
760
+ throw x(
761
761
  e.source,
762
762
  t,
763
763
  `Invalid Unicode escape sequence: "${n.slice(t, t + 6)}".`
764
764
  );
765
765
  }
766
- function Pe(e, t) {
766
+ function xe(e, t) {
767
767
  return H(e.charCodeAt(t)) << 12 | H(e.charCodeAt(t + 1)) << 8 | H(e.charCodeAt(t + 2)) << 4 | H(e.charCodeAt(t + 3));
768
768
  }
769
769
  function H(e) {
@@ -814,7 +814,7 @@ function Tt(e, t) {
814
814
  size: 2
815
815
  };
816
816
  }
817
- throw P(
817
+ throw x(
818
818
  e.source,
819
819
  t,
820
820
  `Invalid character escape sequence: "${n.slice(
@@ -824,14 +824,14 @@ function Tt(e, t) {
824
824
  );
825
825
  }
826
826
  function It(e, t) {
827
- const n = e.source.body, r = n.length;
828
- let i = e.lineStart, s = t + 3, a = s, c = "";
827
+ const n = e.source.body, i = n.length;
828
+ let r = e.lineStart, s = t + 3, a = s, c = "";
829
829
  const l = [];
830
- for (; s < r; ) {
830
+ for (; s < i; ) {
831
831
  const m = n.charCodeAt(s);
832
832
  if (m === 34 && n.charCodeAt(s + 1) === 34 && n.charCodeAt(s + 2) === 34) {
833
833
  c += n.slice(a, s), l.push(c);
834
- const f = x(
834
+ const f = R(
835
835
  e,
836
836
  u.BLOCK_STRING,
837
837
  t,
@@ -840,51 +840,51 @@ function It(e, t) {
840
840
  lt(l).join(`
841
841
  `)
842
842
  );
843
- return e.line += l.length - 1, e.lineStart = i, f;
843
+ return e.line += l.length - 1, e.lineStart = r, f;
844
844
  }
845
845
  if (m === 92 && n.charCodeAt(s + 1) === 34 && n.charCodeAt(s + 2) === 34 && n.charCodeAt(s + 3) === 34) {
846
846
  c += n.slice(a, s), a = s + 1, s += 4;
847
847
  continue;
848
848
  }
849
849
  if (m === 10 || m === 13) {
850
- c += n.slice(a, s), l.push(c), m === 13 && n.charCodeAt(s + 1) === 10 ? s += 2 : ++s, c = "", a = s, i = s;
850
+ c += n.slice(a, s), l.push(c), m === 13 && n.charCodeAt(s + 1) === 10 ? s += 2 : ++s, c = "", a = s, r = s;
851
851
  continue;
852
852
  }
853
- if (G(m))
853
+ if (V(m))
854
854
  ++s;
855
855
  else if (oe(n, s))
856
856
  s += 2;
857
857
  else
858
- throw P(
858
+ throw x(
859
859
  e.source,
860
860
  s,
861
- `Invalid character within String: ${B(
861
+ `Invalid character within String: ${F(
862
862
  e,
863
863
  s
864
864
  )}.`
865
865
  );
866
866
  }
867
- throw P(e.source, s, "Unterminated string.");
867
+ throw x(e.source, s, "Unterminated string.");
868
868
  }
869
- function St(e, t) {
870
- const n = e.source.body, r = n.length;
871
- let i = t + 1;
872
- for (; i < r; ) {
873
- const s = n.charCodeAt(i);
869
+ function Pt(e, t) {
870
+ const n = e.source.body, i = n.length;
871
+ let r = t + 1;
872
+ for (; r < i; ) {
873
+ const s = n.charCodeAt(r);
874
874
  if (dt(s))
875
- ++i;
875
+ ++r;
876
876
  else
877
877
  break;
878
878
  }
879
- return x(
879
+ return R(
880
880
  e,
881
881
  u.NAME,
882
882
  t,
883
- i,
884
- n.slice(t, i)
883
+ r,
884
+ n.slice(t, r)
885
885
  );
886
886
  }
887
- const Rt = 10, Fe = 2;
887
+ const St = 10, Be = 2;
888
888
  function Te(e) {
889
889
  return ue(e, []);
890
890
  }
@@ -906,32 +906,32 @@ function Ot(e, t) {
906
906
  if (t.includes(e))
907
907
  return "[Circular]";
908
908
  const n = [...t, e];
909
- if (xt(e)) {
910
- const r = e.toJSON();
911
- if (r !== e)
912
- return typeof r == "string" ? r : ue(r, n);
909
+ if (Rt(e)) {
910
+ const i = e.toJSON();
911
+ if (i !== e)
912
+ return typeof i == "string" ? i : ue(i, n);
913
913
  } else if (Array.isArray(e))
914
914
  return Dt(e, n);
915
- return Pt(e, n);
915
+ return xt(e, n);
916
916
  }
917
- function xt(e) {
917
+ function Rt(e) {
918
918
  return typeof e.toJSON == "function";
919
919
  }
920
- function Pt(e, t) {
920
+ function xt(e, t) {
921
921
  const n = Object.entries(e);
922
- return n.length === 0 ? "{}" : t.length > Fe ? "[" + Nt(e) + "]" : "{ " + n.map(
923
- ([i, s]) => i + ": " + ue(s, t)
922
+ return n.length === 0 ? "{}" : t.length > Be ? "[" + Nt(e) + "]" : "{ " + n.map(
923
+ ([r, s]) => r + ": " + ue(s, t)
924
924
  ).join(", ") + " }";
925
925
  }
926
926
  function Dt(e, t) {
927
927
  if (e.length === 0)
928
928
  return "[]";
929
- if (t.length > Fe)
929
+ if (t.length > Be)
930
930
  return "[Array]";
931
- const n = Math.min(Rt, e.length), r = e.length - n, i = [];
931
+ const n = Math.min(St, e.length), i = e.length - n, r = [];
932
932
  for (let s = 0; s < n; ++s)
933
- i.push(ue(e[s], t));
934
- return r === 1 ? i.push("... 1 more item") : r > 1 && i.push(`... ${r} more items`), "[" + i.join(", ") + "]";
933
+ r.push(ue(e[s], t));
934
+ return i === 1 ? r.push("... 1 more item") : i > 1 && r.push(`... ${i} more items`), "[" + r.join(", ") + "]";
935
935
  }
936
936
  function Nt(e) {
937
937
  const t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
@@ -952,14 +952,14 @@ process.env.NODE_ENV === "production", kt = (
952
952
  if (t instanceof n)
953
953
  return !0;
954
954
  if (typeof t == "object" && t !== null) {
955
- var r;
956
- const i = n.prototype[Symbol.toStringTag], s = (
955
+ var i;
956
+ const r = n.prototype[Symbol.toStringTag], s = (
957
957
  // We still need to support constructor's name to detect conflicts with older versions of this library.
958
- Symbol.toStringTag in t ? t[Symbol.toStringTag] : (r = t.constructor) === null || r === void 0 ? void 0 : r.name
958
+ Symbol.toStringTag in t ? t[Symbol.toStringTag] : (i = t.constructor) === null || i === void 0 ? void 0 : i.name
959
959
  );
960
- if (i === s) {
960
+ if (r === s) {
961
961
  const a = Te(t);
962
- throw new Error(`Cannot use ${i} "${a}" from another module or realm.
962
+ throw new Error(`Cannot use ${r} "${a}" from another module or realm.
963
963
 
964
964
  Ensure that there is only one instance of "graphql" in the node_modules
965
965
  directory. If different versions of "graphql" are the dependencies of other
@@ -976,12 +976,12 @@ spurious results.`);
976
976
  return !1;
977
977
  }
978
978
  );
979
- class Ue {
980
- constructor(t, n = "GraphQL request", r = {
979
+ class Ge {
980
+ constructor(t, n = "GraphQL request", i = {
981
981
  line: 1,
982
982
  column: 1
983
983
  }) {
984
- typeof t == "string" || ee(!1, `Body must be a string. Received: ${Te(t)}.`), this.body = t, this.name = n, this.locationOffset = r, this.locationOffset.line > 0 || ee(
984
+ typeof t == "string" || ee(!1, `Body must be a string. Received: ${Te(t)}.`), this.body = t, this.name = n, this.locationOffset = i, this.locationOffset.line > 0 || ee(
985
985
  !1,
986
986
  "line in locationOffset is 1-indexed and must be positive."
987
987
  ), this.locationOffset.column > 0 || ee(
@@ -994,25 +994,25 @@ class Ue {
994
994
  }
995
995
  }
996
996
  function _t(e) {
997
- return kt(e, Ue);
997
+ return kt(e, Ge);
998
998
  }
999
- function Ve(e, t) {
1000
- const n = new Lt(e, t), r = n.parseDocument();
1001
- return Object.defineProperty(r, "tokenCount", {
999
+ function Ue(e, t) {
1000
+ const n = new Lt(e, t), i = n.parseDocument();
1001
+ return Object.defineProperty(i, "tokenCount", {
1002
1002
  enumerable: !1,
1003
1003
  value: n.tokenCount
1004
- }), r;
1004
+ }), i;
1005
1005
  }
1006
1006
  class Lt {
1007
1007
  constructor(t, n = {}) {
1008
- const { lexer: r, ...i } = n;
1009
- if (r)
1010
- this._lexer = r;
1008
+ const { lexer: i, ...r } = n;
1009
+ if (i)
1010
+ this._lexer = i;
1011
1011
  else {
1012
- const s = _t(t) ? t : new Ue(t);
1012
+ const s = _t(t) ? t : new Ge(t);
1013
1013
  this._lexer = new mt(s);
1014
1014
  }
1015
- this._options = i, this._tokenCounter = 0;
1015
+ this._options = r, this._tokenCounter = 0;
1016
1016
  }
1017
1017
  get tokenCount() {
1018
1018
  return this._tokenCounter;
@@ -1023,7 +1023,7 @@ class Lt {
1023
1023
  parseName() {
1024
1024
  const t = this.expectToken(u.NAME);
1025
1025
  return this.node(t, {
1026
- kind: p.NAME,
1026
+ kind: h.NAME,
1027
1027
  value: t.value
1028
1028
  });
1029
1029
  }
@@ -1033,7 +1033,7 @@ class Lt {
1033
1033
  */
1034
1034
  parseDocument() {
1035
1035
  return this.node(this._lexer.token, {
1036
- kind: p.DOCUMENT,
1036
+ kind: h.DOCUMENT,
1037
1037
  definitions: this.many(
1038
1038
  u.SOF,
1039
1039
  this.parseDefinition,
@@ -1069,7 +1069,7 @@ class Lt {
1069
1069
  return this.parseOperationDefinition();
1070
1070
  const t = this.peekDescription(), n = t ? this._lexer.lookahead() : this._lexer.token;
1071
1071
  if (t && n.kind === u.BRACE_L)
1072
- throw P(
1072
+ throw x(
1073
1073
  this._lexer.source,
1074
1074
  this._lexer.token.start,
1075
1075
  "Unexpected description, descriptions are not supported on shorthand queries."
@@ -1102,7 +1102,7 @@ class Lt {
1102
1102
  return this.parseFragmentDefinition();
1103
1103
  }
1104
1104
  if (t)
1105
- throw P(
1105
+ throw x(
1106
1106
  this._lexer.source,
1107
1107
  this._lexer.token.start,
1108
1108
  "Unexpected description, only GraphQL definitions support descriptions."
@@ -1124,21 +1124,21 @@ class Lt {
1124
1124
  const t = this._lexer.token;
1125
1125
  if (this.peek(u.BRACE_L))
1126
1126
  return this.node(t, {
1127
- kind: p.OPERATION_DEFINITION,
1128
- operation: V.QUERY,
1127
+ kind: h.OPERATION_DEFINITION,
1128
+ operation: U.QUERY,
1129
1129
  description: void 0,
1130
1130
  name: void 0,
1131
1131
  variableDefinitions: [],
1132
1132
  directives: [],
1133
1133
  selectionSet: this.parseSelectionSet()
1134
1134
  });
1135
- const n = this.parseDescription(), r = this.parseOperationType();
1136
- let i;
1137
- return this.peek(u.NAME) && (i = this.parseName()), this.node(t, {
1138
- kind: p.OPERATION_DEFINITION,
1139
- operation: r,
1135
+ const n = this.parseDescription(), i = this.parseOperationType();
1136
+ let r;
1137
+ return this.peek(u.NAME) && (r = this.parseName()), this.node(t, {
1138
+ kind: h.OPERATION_DEFINITION,
1139
+ operation: i,
1140
1140
  description: n,
1141
- name: i,
1141
+ name: r,
1142
1142
  variableDefinitions: this.parseVariableDefinitions(),
1143
1143
  directives: this.parseDirectives(!1),
1144
1144
  selectionSet: this.parseSelectionSet()
@@ -1151,11 +1151,11 @@ class Lt {
1151
1151
  const t = this.expectToken(u.NAME);
1152
1152
  switch (t.value) {
1153
1153
  case "query":
1154
- return V.QUERY;
1154
+ return U.QUERY;
1155
1155
  case "mutation":
1156
- return V.MUTATION;
1156
+ return U.MUTATION;
1157
1157
  case "subscription":
1158
- return V.SUBSCRIPTION;
1158
+ return U.SUBSCRIPTION;
1159
1159
  }
1160
1160
  throw this.unexpected(t);
1161
1161
  }
@@ -1174,7 +1174,7 @@ class Lt {
1174
1174
  */
1175
1175
  parseVariableDefinition() {
1176
1176
  return this.node(this._lexer.token, {
1177
- kind: p.VARIABLE_DEFINITION,
1177
+ kind: h.VARIABLE_DEFINITION,
1178
1178
  description: this.parseDescription(),
1179
1179
  variable: this.parseVariable(),
1180
1180
  type: (this.expectToken(u.COLON), this.parseTypeReference()),
@@ -1188,7 +1188,7 @@ class Lt {
1188
1188
  parseVariable() {
1189
1189
  const t = this._lexer.token;
1190
1190
  return this.expectToken(u.DOLLAR), this.node(t, {
1191
- kind: p.VARIABLE,
1191
+ kind: h.VARIABLE,
1192
1192
  name: this.parseName()
1193
1193
  });
1194
1194
  }
@@ -1199,7 +1199,7 @@ class Lt {
1199
1199
  */
1200
1200
  parseSelectionSet() {
1201
1201
  return this.node(this._lexer.token, {
1202
- kind: p.SELECTION_SET,
1202
+ kind: h.SELECTION_SET,
1203
1203
  selections: this.many(
1204
1204
  u.BRACE_L,
1205
1205
  this.parseSelection,
@@ -1223,11 +1223,11 @@ class Lt {
1223
1223
  */
1224
1224
  parseField() {
1225
1225
  const t = this._lexer.token, n = this.parseName();
1226
- let r, i;
1227
- return this.expectOptionalToken(u.COLON) ? (r = n, i = this.parseName()) : i = n, this.node(t, {
1228
- kind: p.FIELD,
1229
- alias: r,
1230
- name: i,
1226
+ let i, r;
1227
+ return this.expectOptionalToken(u.COLON) ? (i = n, r = this.parseName()) : r = n, this.node(t, {
1228
+ kind: h.FIELD,
1229
+ alias: i,
1230
+ name: r,
1231
1231
  arguments: this.parseArguments(!1),
1232
1232
  directives: this.parseDirectives(!1),
1233
1233
  selectionSet: this.peek(u.BRACE_L) ? this.parseSelectionSet() : void 0
@@ -1244,10 +1244,10 @@ class Lt {
1244
1244
  * Argument[Const] : Name : Value[?Const]
1245
1245
  */
1246
1246
  parseArgument(t = !1) {
1247
- const n = this._lexer.token, r = this.parseName();
1247
+ const n = this._lexer.token, i = this.parseName();
1248
1248
  return this.expectToken(u.COLON), this.node(n, {
1249
- kind: p.ARGUMENT,
1250
- name: r,
1249
+ kind: h.ARGUMENT,
1250
+ name: i,
1251
1251
  value: this.parseValueLiteral(t)
1252
1252
  });
1253
1253
  }
@@ -1267,11 +1267,11 @@ class Lt {
1267
1267
  this.expectToken(u.SPREAD);
1268
1268
  const n = this.expectOptionalKeyword("on");
1269
1269
  return !n && this.peek(u.NAME) ? this.node(t, {
1270
- kind: p.FRAGMENT_SPREAD,
1270
+ kind: h.FRAGMENT_SPREAD,
1271
1271
  name: this.parseFragmentName(),
1272
1272
  directives: this.parseDirectives(!1)
1273
1273
  }) : this.node(t, {
1274
- kind: p.INLINE_FRAGMENT,
1274
+ kind: h.INLINE_FRAGMENT,
1275
1275
  typeCondition: n ? this.parseNamedType() : void 0,
1276
1276
  directives: this.parseDirectives(!1),
1277
1277
  selectionSet: this.parseSelectionSet()
@@ -1286,7 +1286,7 @@ class Lt {
1286
1286
  parseFragmentDefinition() {
1287
1287
  const t = this._lexer.token, n = this.parseDescription();
1288
1288
  return this.expectKeyword("fragment"), this._options.allowLegacyFragmentVariables === !0 ? this.node(t, {
1289
- kind: p.FRAGMENT_DEFINITION,
1289
+ kind: h.FRAGMENT_DEFINITION,
1290
1290
  description: n,
1291
1291
  name: this.parseFragmentName(),
1292
1292
  variableDefinitions: this.parseVariableDefinitions(),
@@ -1294,7 +1294,7 @@ class Lt {
1294
1294
  directives: this.parseDirectives(!1),
1295
1295
  selectionSet: this.parseSelectionSet()
1296
1296
  }) : this.node(t, {
1297
- kind: p.FRAGMENT_DEFINITION,
1297
+ kind: h.FRAGMENT_DEFINITION,
1298
1298
  description: n,
1299
1299
  name: this.parseFragmentName(),
1300
1300
  typeCondition: (this.expectKeyword("on"), this.parseNamedType()),
@@ -1338,12 +1338,12 @@ class Lt {
1338
1338
  return this.parseObject(t);
1339
1339
  case u.INT:
1340
1340
  return this.advanceLexer(), this.node(n, {
1341
- kind: p.INT,
1341
+ kind: h.INT,
1342
1342
  value: n.value
1343
1343
  });
1344
1344
  case u.FLOAT:
1345
1345
  return this.advanceLexer(), this.node(n, {
1346
- kind: p.FLOAT,
1346
+ kind: h.FLOAT,
1347
1347
  value: n.value
1348
1348
  });
1349
1349
  case u.STRING:
@@ -1353,32 +1353,32 @@ class Lt {
1353
1353
  switch (this.advanceLexer(), n.value) {
1354
1354
  case "true":
1355
1355
  return this.node(n, {
1356
- kind: p.BOOLEAN,
1356
+ kind: h.BOOLEAN,
1357
1357
  value: !0
1358
1358
  });
1359
1359
  case "false":
1360
1360
  return this.node(n, {
1361
- kind: p.BOOLEAN,
1361
+ kind: h.BOOLEAN,
1362
1362
  value: !1
1363
1363
  });
1364
1364
  case "null":
1365
1365
  return this.node(n, {
1366
- kind: p.NULL
1366
+ kind: h.NULL
1367
1367
  });
1368
1368
  default:
1369
1369
  return this.node(n, {
1370
- kind: p.ENUM,
1370
+ kind: h.ENUM,
1371
1371
  value: n.value
1372
1372
  });
1373
1373
  }
1374
1374
  case u.DOLLAR:
1375
1375
  if (t)
1376
1376
  if (this.expectToken(u.DOLLAR), this._lexer.token.kind === u.NAME) {
1377
- const r = this._lexer.token.value;
1378
- throw P(
1377
+ const i = this._lexer.token.value;
1378
+ throw x(
1379
1379
  this._lexer.source,
1380
1380
  n.start,
1381
- `Unexpected variable "$${r}" in constant value.`
1381
+ `Unexpected variable "$${i}" in constant value.`
1382
1382
  );
1383
1383
  } else
1384
1384
  throw this.unexpected(n);
@@ -1393,7 +1393,7 @@ class Lt {
1393
1393
  parseStringLiteral() {
1394
1394
  const t = this._lexer.token;
1395
1395
  return this.advanceLexer(), this.node(t, {
1396
- kind: p.STRING,
1396
+ kind: h.STRING,
1397
1397
  value: t.value,
1398
1398
  block: t.kind === u.BLOCK_STRING
1399
1399
  });
@@ -1406,7 +1406,7 @@ class Lt {
1406
1406
  parseList(t) {
1407
1407
  const n = () => this.parseValueLiteral(t);
1408
1408
  return this.node(this._lexer.token, {
1409
- kind: p.LIST,
1409
+ kind: h.LIST,
1410
1410
  values: this.any(u.BRACKET_L, n, u.BRACKET_R)
1411
1411
  });
1412
1412
  }
@@ -1420,7 +1420,7 @@ class Lt {
1420
1420
  parseObject(t) {
1421
1421
  const n = () => this.parseObjectField(t);
1422
1422
  return this.node(this._lexer.token, {
1423
- kind: p.OBJECT,
1423
+ kind: h.OBJECT,
1424
1424
  fields: this.any(u.BRACE_L, n, u.BRACE_R)
1425
1425
  });
1426
1426
  }
@@ -1428,10 +1428,10 @@ class Lt {
1428
1428
  * ObjectField[Const] : Name : Value[?Const]
1429
1429
  */
1430
1430
  parseObjectField(t) {
1431
- const n = this._lexer.token, r = this.parseName();
1431
+ const n = this._lexer.token, i = this.parseName();
1432
1432
  return this.expectToken(u.COLON), this.node(n, {
1433
- kind: p.OBJECT_FIELD,
1434
- name: r,
1433
+ kind: h.OBJECT_FIELD,
1434
+ name: i,
1435
1435
  value: this.parseValueLiteral(t)
1436
1436
  });
1437
1437
  }
@@ -1456,7 +1456,7 @@ class Lt {
1456
1456
  parseDirective(t) {
1457
1457
  const n = this._lexer.token;
1458
1458
  return this.expectToken(u.AT), this.node(n, {
1459
- kind: p.DIRECTIVE,
1459
+ kind: h.DIRECTIVE,
1460
1460
  name: this.parseName(),
1461
1461
  arguments: this.parseArguments(t)
1462
1462
  });
@@ -1472,15 +1472,15 @@ class Lt {
1472
1472
  const t = this._lexer.token;
1473
1473
  let n;
1474
1474
  if (this.expectOptionalToken(u.BRACKET_L)) {
1475
- const r = this.parseTypeReference();
1475
+ const i = this.parseTypeReference();
1476
1476
  this.expectToken(u.BRACKET_R), n = this.node(t, {
1477
- kind: p.LIST_TYPE,
1478
- type: r
1477
+ kind: h.LIST_TYPE,
1478
+ type: i
1479
1479
  });
1480
1480
  } else
1481
1481
  n = this.parseNamedType();
1482
1482
  return this.expectOptionalToken(u.BANG) ? this.node(t, {
1483
- kind: p.NON_NULL_TYPE,
1483
+ kind: h.NON_NULL_TYPE,
1484
1484
  type: n
1485
1485
  }) : n;
1486
1486
  }
@@ -1489,7 +1489,7 @@ class Lt {
1489
1489
  */
1490
1490
  parseNamedType() {
1491
1491
  return this.node(this._lexer.token, {
1492
- kind: p.NAMED_TYPE,
1492
+ kind: h.NAMED_TYPE,
1493
1493
  name: this.parseName()
1494
1494
  });
1495
1495
  }
@@ -1512,16 +1512,16 @@ class Lt {
1512
1512
  parseSchemaDefinition() {
1513
1513
  const t = this._lexer.token, n = this.parseDescription();
1514
1514
  this.expectKeyword("schema");
1515
- const r = this.parseConstDirectives(), i = this.many(
1515
+ const i = this.parseConstDirectives(), r = this.many(
1516
1516
  u.BRACE_L,
1517
1517
  this.parseOperationTypeDefinition,
1518
1518
  u.BRACE_R
1519
1519
  );
1520
1520
  return this.node(t, {
1521
- kind: p.SCHEMA_DEFINITION,
1521
+ kind: h.SCHEMA_DEFINITION,
1522
1522
  description: n,
1523
- directives: r,
1524
- operationTypes: i
1523
+ directives: i,
1524
+ operationTypes: r
1525
1525
  });
1526
1526
  }
1527
1527
  /**
@@ -1530,11 +1530,11 @@ class Lt {
1530
1530
  parseOperationTypeDefinition() {
1531
1531
  const t = this._lexer.token, n = this.parseOperationType();
1532
1532
  this.expectToken(u.COLON);
1533
- const r = this.parseNamedType();
1533
+ const i = this.parseNamedType();
1534
1534
  return this.node(t, {
1535
- kind: p.OPERATION_TYPE_DEFINITION,
1535
+ kind: h.OPERATION_TYPE_DEFINITION,
1536
1536
  operation: n,
1537
- type: r
1537
+ type: i
1538
1538
  });
1539
1539
  }
1540
1540
  /**
@@ -1543,12 +1543,12 @@ class Lt {
1543
1543
  parseScalarTypeDefinition() {
1544
1544
  const t = this._lexer.token, n = this.parseDescription();
1545
1545
  this.expectKeyword("scalar");
1546
- const r = this.parseName(), i = this.parseConstDirectives();
1546
+ const i = this.parseName(), r = this.parseConstDirectives();
1547
1547
  return this.node(t, {
1548
- kind: p.SCALAR_TYPE_DEFINITION,
1548
+ kind: h.SCALAR_TYPE_DEFINITION,
1549
1549
  description: n,
1550
- name: r,
1551
- directives: i
1550
+ name: i,
1551
+ directives: r
1552
1552
  });
1553
1553
  }
1554
1554
  /**
@@ -1559,12 +1559,12 @@ class Lt {
1559
1559
  parseObjectTypeDefinition() {
1560
1560
  const t = this._lexer.token, n = this.parseDescription();
1561
1561
  this.expectKeyword("type");
1562
- const r = this.parseName(), i = this.parseImplementsInterfaces(), s = this.parseConstDirectives(), a = this.parseFieldsDefinition();
1562
+ const i = this.parseName(), r = this.parseImplementsInterfaces(), s = this.parseConstDirectives(), a = this.parseFieldsDefinition();
1563
1563
  return this.node(t, {
1564
- kind: p.OBJECT_TYPE_DEFINITION,
1564
+ kind: h.OBJECT_TYPE_DEFINITION,
1565
1565
  description: n,
1566
- name: r,
1567
- interfaces: i,
1566
+ name: i,
1567
+ interfaces: r,
1568
1568
  directives: s,
1569
1569
  fields: a
1570
1570
  });
@@ -1594,14 +1594,14 @@ class Lt {
1594
1594
  * - Description? Name ArgumentsDefinition? : Type Directives[Const]?
1595
1595
  */
1596
1596
  parseFieldDefinition() {
1597
- const t = this._lexer.token, n = this.parseDescription(), r = this.parseName(), i = this.parseArgumentDefs();
1597
+ const t = this._lexer.token, n = this.parseDescription(), i = this.parseName(), r = this.parseArgumentDefs();
1598
1598
  this.expectToken(u.COLON);
1599
1599
  const s = this.parseTypeReference(), a = this.parseConstDirectives();
1600
1600
  return this.node(t, {
1601
- kind: p.FIELD_DEFINITION,
1601
+ kind: h.FIELD_DEFINITION,
1602
1602
  description: n,
1603
- name: r,
1604
- arguments: i,
1603
+ name: i,
1604
+ arguments: r,
1605
1605
  type: s,
1606
1606
  directives: a
1607
1607
  });
@@ -1621,17 +1621,17 @@ class Lt {
1621
1621
  * - Description? Name : Type DefaultValue? Directives[Const]?
1622
1622
  */
1623
1623
  parseInputValueDef() {
1624
- const t = this._lexer.token, n = this.parseDescription(), r = this.parseName();
1624
+ const t = this._lexer.token, n = this.parseDescription(), i = this.parseName();
1625
1625
  this.expectToken(u.COLON);
1626
- const i = this.parseTypeReference();
1626
+ const r = this.parseTypeReference();
1627
1627
  let s;
1628
1628
  this.expectOptionalToken(u.EQUALS) && (s = this.parseConstValueLiteral());
1629
1629
  const a = this.parseConstDirectives();
1630
1630
  return this.node(t, {
1631
- kind: p.INPUT_VALUE_DEFINITION,
1631
+ kind: h.INPUT_VALUE_DEFINITION,
1632
1632
  description: n,
1633
- name: r,
1634
- type: i,
1633
+ name: i,
1634
+ type: r,
1635
1635
  defaultValue: s,
1636
1636
  directives: a
1637
1637
  });
@@ -1643,12 +1643,12 @@ class Lt {
1643
1643
  parseInterfaceTypeDefinition() {
1644
1644
  const t = this._lexer.token, n = this.parseDescription();
1645
1645
  this.expectKeyword("interface");
1646
- const r = this.parseName(), i = this.parseImplementsInterfaces(), s = this.parseConstDirectives(), a = this.parseFieldsDefinition();
1646
+ const i = this.parseName(), r = this.parseImplementsInterfaces(), s = this.parseConstDirectives(), a = this.parseFieldsDefinition();
1647
1647
  return this.node(t, {
1648
- kind: p.INTERFACE_TYPE_DEFINITION,
1648
+ kind: h.INTERFACE_TYPE_DEFINITION,
1649
1649
  description: n,
1650
- name: r,
1651
- interfaces: i,
1650
+ name: i,
1651
+ interfaces: r,
1652
1652
  directives: s,
1653
1653
  fields: a
1654
1654
  });
@@ -1660,12 +1660,12 @@ class Lt {
1660
1660
  parseUnionTypeDefinition() {
1661
1661
  const t = this._lexer.token, n = this.parseDescription();
1662
1662
  this.expectKeyword("union");
1663
- const r = this.parseName(), i = this.parseConstDirectives(), s = this.parseUnionMemberTypes();
1663
+ const i = this.parseName(), r = this.parseConstDirectives(), s = this.parseUnionMemberTypes();
1664
1664
  return this.node(t, {
1665
- kind: p.UNION_TYPE_DEFINITION,
1665
+ kind: h.UNION_TYPE_DEFINITION,
1666
1666
  description: n,
1667
- name: r,
1668
- directives: i,
1667
+ name: i,
1668
+ directives: r,
1669
1669
  types: s
1670
1670
  });
1671
1671
  }
@@ -1684,12 +1684,12 @@ class Lt {
1684
1684
  parseEnumTypeDefinition() {
1685
1685
  const t = this._lexer.token, n = this.parseDescription();
1686
1686
  this.expectKeyword("enum");
1687
- const r = this.parseName(), i = this.parseConstDirectives(), s = this.parseEnumValuesDefinition();
1687
+ const i = this.parseName(), r = this.parseConstDirectives(), s = this.parseEnumValuesDefinition();
1688
1688
  return this.node(t, {
1689
- kind: p.ENUM_TYPE_DEFINITION,
1689
+ kind: h.ENUM_TYPE_DEFINITION,
1690
1690
  description: n,
1691
- name: r,
1692
- directives: i,
1691
+ name: i,
1692
+ directives: r,
1693
1693
  values: s
1694
1694
  });
1695
1695
  }
@@ -1709,12 +1709,12 @@ class Lt {
1709
1709
  * EnumValueDefinition : Description? EnumValue Directives[Const]?
1710
1710
  */
1711
1711
  parseEnumValueDefinition() {
1712
- const t = this._lexer.token, n = this.parseDescription(), r = this.parseEnumValueName(), i = this.parseConstDirectives();
1712
+ const t = this._lexer.token, n = this.parseDescription(), i = this.parseEnumValueName(), r = this.parseConstDirectives();
1713
1713
  return this.node(t, {
1714
- kind: p.ENUM_VALUE_DEFINITION,
1714
+ kind: h.ENUM_VALUE_DEFINITION,
1715
1715
  description: n,
1716
- name: r,
1717
- directives: i
1716
+ name: i,
1717
+ directives: r
1718
1718
  });
1719
1719
  }
1720
1720
  /**
@@ -1722,7 +1722,7 @@ class Lt {
1722
1722
  */
1723
1723
  parseEnumValueName() {
1724
1724
  if (this._lexer.token.value === "true" || this._lexer.token.value === "false" || this._lexer.token.value === "null")
1725
- throw P(
1725
+ throw x(
1726
1726
  this._lexer.source,
1727
1727
  this._lexer.token.start,
1728
1728
  `${K(
@@ -1738,12 +1738,12 @@ class Lt {
1738
1738
  parseInputObjectTypeDefinition() {
1739
1739
  const t = this._lexer.token, n = this.parseDescription();
1740
1740
  this.expectKeyword("input");
1741
- const r = this.parseName(), i = this.parseConstDirectives(), s = this.parseInputFieldsDefinition();
1741
+ const i = this.parseName(), r = this.parseConstDirectives(), s = this.parseInputFieldsDefinition();
1742
1742
  return this.node(t, {
1743
- kind: p.INPUT_OBJECT_TYPE_DEFINITION,
1743
+ kind: h.INPUT_OBJECT_TYPE_DEFINITION,
1744
1744
  description: n,
1745
- name: r,
1746
- directives: i,
1745
+ name: i,
1746
+ directives: r,
1747
1747
  fields: s
1748
1748
  });
1749
1749
  }
@@ -1803,17 +1803,17 @@ class Lt {
1803
1803
  parseSchemaExtension() {
1804
1804
  const t = this._lexer.token;
1805
1805
  this.expectKeyword("extend"), this.expectKeyword("schema");
1806
- const n = this.parseConstDirectives(), r = this.optionalMany(
1806
+ const n = this.parseConstDirectives(), i = this.optionalMany(
1807
1807
  u.BRACE_L,
1808
1808
  this.parseOperationTypeDefinition,
1809
1809
  u.BRACE_R
1810
1810
  );
1811
- if (n.length === 0 && r.length === 0)
1811
+ if (n.length === 0 && i.length === 0)
1812
1812
  throw this.unexpected();
1813
1813
  return this.node(t, {
1814
- kind: p.SCHEMA_EXTENSION,
1814
+ kind: h.SCHEMA_EXTENSION,
1815
1815
  directives: n,
1816
- operationTypes: r
1816
+ operationTypes: i
1817
1817
  });
1818
1818
  }
1819
1819
  /**
@@ -1823,13 +1823,13 @@ class Lt {
1823
1823
  parseScalarTypeExtension() {
1824
1824
  const t = this._lexer.token;
1825
1825
  this.expectKeyword("extend"), this.expectKeyword("scalar");
1826
- const n = this.parseName(), r = this.parseConstDirectives();
1827
- if (r.length === 0)
1826
+ const n = this.parseName(), i = this.parseConstDirectives();
1827
+ if (i.length === 0)
1828
1828
  throw this.unexpected();
1829
1829
  return this.node(t, {
1830
- kind: p.SCALAR_TYPE_EXTENSION,
1830
+ kind: h.SCALAR_TYPE_EXTENSION,
1831
1831
  name: n,
1832
- directives: r
1832
+ directives: i
1833
1833
  });
1834
1834
  }
1835
1835
  /**
@@ -1841,14 +1841,14 @@ class Lt {
1841
1841
  parseObjectTypeExtension() {
1842
1842
  const t = this._lexer.token;
1843
1843
  this.expectKeyword("extend"), this.expectKeyword("type");
1844
- const n = this.parseName(), r = this.parseImplementsInterfaces(), i = this.parseConstDirectives(), s = this.parseFieldsDefinition();
1845
- if (r.length === 0 && i.length === 0 && s.length === 0)
1844
+ const n = this.parseName(), i = this.parseImplementsInterfaces(), r = this.parseConstDirectives(), s = this.parseFieldsDefinition();
1845
+ if (i.length === 0 && r.length === 0 && s.length === 0)
1846
1846
  throw this.unexpected();
1847
1847
  return this.node(t, {
1848
- kind: p.OBJECT_TYPE_EXTENSION,
1848
+ kind: h.OBJECT_TYPE_EXTENSION,
1849
1849
  name: n,
1850
- interfaces: r,
1851
- directives: i,
1850
+ interfaces: i,
1851
+ directives: r,
1852
1852
  fields: s
1853
1853
  });
1854
1854
  }
@@ -1861,14 +1861,14 @@ class Lt {
1861
1861
  parseInterfaceTypeExtension() {
1862
1862
  const t = this._lexer.token;
1863
1863
  this.expectKeyword("extend"), this.expectKeyword("interface");
1864
- const n = this.parseName(), r = this.parseImplementsInterfaces(), i = this.parseConstDirectives(), s = this.parseFieldsDefinition();
1865
- if (r.length === 0 && i.length === 0 && s.length === 0)
1864
+ const n = this.parseName(), i = this.parseImplementsInterfaces(), r = this.parseConstDirectives(), s = this.parseFieldsDefinition();
1865
+ if (i.length === 0 && r.length === 0 && s.length === 0)
1866
1866
  throw this.unexpected();
1867
1867
  return this.node(t, {
1868
- kind: p.INTERFACE_TYPE_EXTENSION,
1868
+ kind: h.INTERFACE_TYPE_EXTENSION,
1869
1869
  name: n,
1870
- interfaces: r,
1871
- directives: i,
1870
+ interfaces: i,
1871
+ directives: r,
1872
1872
  fields: s
1873
1873
  });
1874
1874
  }
@@ -1880,14 +1880,14 @@ class Lt {
1880
1880
  parseUnionTypeExtension() {
1881
1881
  const t = this._lexer.token;
1882
1882
  this.expectKeyword("extend"), this.expectKeyword("union");
1883
- const n = this.parseName(), r = this.parseConstDirectives(), i = this.parseUnionMemberTypes();
1884
- if (r.length === 0 && i.length === 0)
1883
+ const n = this.parseName(), i = this.parseConstDirectives(), r = this.parseUnionMemberTypes();
1884
+ if (i.length === 0 && r.length === 0)
1885
1885
  throw this.unexpected();
1886
1886
  return this.node(t, {
1887
- kind: p.UNION_TYPE_EXTENSION,
1887
+ kind: h.UNION_TYPE_EXTENSION,
1888
1888
  name: n,
1889
- directives: r,
1890
- types: i
1889
+ directives: i,
1890
+ types: r
1891
1891
  });
1892
1892
  }
1893
1893
  /**
@@ -1898,14 +1898,14 @@ class Lt {
1898
1898
  parseEnumTypeExtension() {
1899
1899
  const t = this._lexer.token;
1900
1900
  this.expectKeyword("extend"), this.expectKeyword("enum");
1901
- const n = this.parseName(), r = this.parseConstDirectives(), i = this.parseEnumValuesDefinition();
1902
- if (r.length === 0 && i.length === 0)
1901
+ const n = this.parseName(), i = this.parseConstDirectives(), r = this.parseEnumValuesDefinition();
1902
+ if (i.length === 0 && r.length === 0)
1903
1903
  throw this.unexpected();
1904
1904
  return this.node(t, {
1905
- kind: p.ENUM_TYPE_EXTENSION,
1905
+ kind: h.ENUM_TYPE_EXTENSION,
1906
1906
  name: n,
1907
- directives: r,
1908
- values: i
1907
+ directives: i,
1908
+ values: r
1909
1909
  });
1910
1910
  }
1911
1911
  /**
@@ -1916,14 +1916,14 @@ class Lt {
1916
1916
  parseInputObjectTypeExtension() {
1917
1917
  const t = this._lexer.token;
1918
1918
  this.expectKeyword("extend"), this.expectKeyword("input");
1919
- const n = this.parseName(), r = this.parseConstDirectives(), i = this.parseInputFieldsDefinition();
1920
- if (r.length === 0 && i.length === 0)
1919
+ const n = this.parseName(), i = this.parseConstDirectives(), r = this.parseInputFieldsDefinition();
1920
+ if (i.length === 0 && r.length === 0)
1921
1921
  throw this.unexpected();
1922
1922
  return this.node(t, {
1923
- kind: p.INPUT_OBJECT_TYPE_EXTENSION,
1923
+ kind: h.INPUT_OBJECT_TYPE_EXTENSION,
1924
1924
  name: n,
1925
- directives: r,
1926
- fields: i
1925
+ directives: i,
1926
+ fields: r
1927
1927
  });
1928
1928
  }
1929
1929
  /**
@@ -1935,14 +1935,14 @@ class Lt {
1935
1935
  parseDirectiveDefinition() {
1936
1936
  const t = this._lexer.token, n = this.parseDescription();
1937
1937
  this.expectKeyword("directive"), this.expectToken(u.AT);
1938
- const r = this.parseName(), i = this.parseArgumentDefs(), s = this.expectOptionalKeyword("repeatable");
1938
+ const i = this.parseName(), r = this.parseArgumentDefs(), s = this.expectOptionalKeyword("repeatable");
1939
1939
  this.expectKeyword("on");
1940
1940
  const a = this.parseDirectiveLocations();
1941
1941
  return this.node(t, {
1942
- kind: p.DIRECTIVE_DEFINITION,
1942
+ kind: h.DIRECTIVE_DEFINITION,
1943
1943
  description: n,
1944
- name: r,
1945
- arguments: i,
1944
+ name: i,
1945
+ arguments: r,
1946
1946
  repeatable: s,
1947
1947
  locations: a
1948
1948
  });
@@ -1998,29 +1998,29 @@ class Lt {
1998
1998
  * - \@ Name ( Name : )
1999
1999
  */
2000
2000
  parseSchemaCoordinate() {
2001
- const t = this._lexer.token, n = this.expectOptionalToken(u.AT), r = this.parseName();
2002
- let i;
2003
- !n && this.expectOptionalToken(u.DOT) && (i = this.parseName());
2001
+ const t = this._lexer.token, n = this.expectOptionalToken(u.AT), i = this.parseName();
2002
+ let r;
2003
+ !n && this.expectOptionalToken(u.DOT) && (r = this.parseName());
2004
2004
  let s;
2005
- return (n || i) && this.expectOptionalToken(u.PAREN_L) && (s = this.parseName(), this.expectToken(u.COLON), this.expectToken(u.PAREN_R)), n ? s ? this.node(t, {
2006
- kind: p.DIRECTIVE_ARGUMENT_COORDINATE,
2007
- name: r,
2005
+ return (n || r) && this.expectOptionalToken(u.PAREN_L) && (s = this.parseName(), this.expectToken(u.COLON), this.expectToken(u.PAREN_R)), n ? s ? this.node(t, {
2006
+ kind: h.DIRECTIVE_ARGUMENT_COORDINATE,
2007
+ name: i,
2008
2008
  argumentName: s
2009
2009
  }) : this.node(t, {
2010
- kind: p.DIRECTIVE_COORDINATE,
2011
- name: r
2012
- }) : i ? s ? this.node(t, {
2013
- kind: p.ARGUMENT_COORDINATE,
2014
- name: r,
2015
- fieldName: i,
2010
+ kind: h.DIRECTIVE_COORDINATE,
2011
+ name: i
2012
+ }) : r ? s ? this.node(t, {
2013
+ kind: h.ARGUMENT_COORDINATE,
2014
+ name: i,
2015
+ fieldName: r,
2016
2016
  argumentName: s
2017
2017
  }) : this.node(t, {
2018
- kind: p.MEMBER_COORDINATE,
2019
- name: r,
2020
- memberName: i
2018
+ kind: h.MEMBER_COORDINATE,
2019
+ name: i,
2020
+ memberName: r
2021
2021
  }) : this.node(t, {
2022
- kind: p.TYPE_COORDINATE,
2023
- name: r
2022
+ kind: h.TYPE_COORDINATE,
2023
+ name: i
2024
2024
  });
2025
2025
  }
2026
2026
  // Core parsing utility functions
@@ -2050,10 +2050,10 @@ class Lt {
2050
2050
  const n = this._lexer.token;
2051
2051
  if (n.kind === t)
2052
2052
  return this.advanceLexer(), n;
2053
- throw P(
2053
+ throw x(
2054
2054
  this._lexer.source,
2055
2055
  n.start,
2056
- `Expected ${Ge(t)}, found ${K(n)}.`
2056
+ `Expected ${Ve(t)}, found ${K(n)}.`
2057
2057
  );
2058
2058
  }
2059
2059
  /**
@@ -2072,7 +2072,7 @@ class Lt {
2072
2072
  if (n.kind === u.NAME && n.value === t)
2073
2073
  this.advanceLexer();
2074
2074
  else
2075
- throw P(
2075
+ throw x(
2076
2076
  this._lexer.source,
2077
2077
  n.start,
2078
2078
  `Expected "${t}", found ${K(n)}.`
@@ -2091,7 +2091,7 @@ class Lt {
2091
2091
  */
2092
2092
  unexpected(t) {
2093
2093
  const n = t ?? this._lexer.token;
2094
- return P(
2094
+ return x(
2095
2095
  this._lexer.source,
2096
2096
  n.start,
2097
2097
  `Unexpected ${K(n)}.`
@@ -2102,12 +2102,12 @@ class Lt {
2102
2102
  * This list begins with a lex token of openKind and ends with a lex token of closeKind.
2103
2103
  * Advances the parser to the next lex token after the closing token.
2104
2104
  */
2105
- any(t, n, r) {
2105
+ any(t, n, i) {
2106
2106
  this.expectToken(t);
2107
- const i = [];
2108
- for (; !this.expectOptionalToken(r); )
2109
- i.push(n.call(this));
2110
- return i;
2107
+ const r = [];
2108
+ for (; !this.expectOptionalToken(i); )
2109
+ r.push(n.call(this));
2110
+ return r;
2111
2111
  }
2112
2112
  /**
2113
2113
  * Returns a list of parse nodes, determined by the parseFn.
@@ -2115,13 +2115,13 @@ class Lt {
2115
2115
  * that begins with a lex token of openKind and ends with a lex token of closeKind.
2116
2116
  * Advances the parser to the next lex token after the closing token.
2117
2117
  */
2118
- optionalMany(t, n, r) {
2118
+ optionalMany(t, n, i) {
2119
2119
  if (this.expectOptionalToken(t)) {
2120
- const i = [];
2120
+ const r = [];
2121
2121
  do
2122
- i.push(n.call(this));
2123
- while (!this.expectOptionalToken(r));
2124
- return i;
2122
+ r.push(n.call(this));
2123
+ while (!this.expectOptionalToken(i));
2124
+ return r;
2125
2125
  }
2126
2126
  return [];
2127
2127
  }
@@ -2130,13 +2130,13 @@ class Lt {
2130
2130
  * This list begins with a lex token of openKind and ends with a lex token of closeKind.
2131
2131
  * Advances the parser to the next lex token after the closing token.
2132
2132
  */
2133
- many(t, n, r) {
2133
+ many(t, n, i) {
2134
2134
  this.expectToken(t);
2135
- const i = [];
2135
+ const r = [];
2136
2136
  do
2137
- i.push(n.call(this));
2138
- while (!this.expectOptionalToken(r));
2139
- return i;
2137
+ r.push(n.call(this));
2138
+ while (!this.expectOptionalToken(i));
2139
+ return r;
2140
2140
  }
2141
2141
  /**
2142
2142
  * Returns a non-empty list of parse nodes, determined by the parseFn.
@@ -2145,16 +2145,16 @@ class Lt {
2145
2145
  */
2146
2146
  delimitedMany(t, n) {
2147
2147
  this.expectOptionalToken(t);
2148
- const r = [];
2148
+ const i = [];
2149
2149
  do
2150
- r.push(n.call(this));
2150
+ i.push(n.call(this));
2151
2151
  while (this.expectOptionalToken(t));
2152
- return r;
2152
+ return i;
2153
2153
  }
2154
2154
  advanceLexer() {
2155
2155
  const { maxTokens: t } = this._options, n = this._lexer.advance();
2156
2156
  if (n.kind !== u.EOF && (++this._tokenCounter, t !== void 0 && this._tokenCounter > t))
2157
- throw P(
2157
+ throw x(
2158
2158
  this._lexer.source,
2159
2159
  n.start,
2160
2160
  `Document contains more that ${t} tokens. Parsing aborted.`
@@ -2163,9 +2163,9 @@ class Lt {
2163
2163
  }
2164
2164
  function K(e) {
2165
2165
  const t = e.value;
2166
- return Ge(e.kind) + (t != null ? ` "${t}"` : "");
2166
+ return Ve(e.kind) + (t != null ? ` "${t}"` : "");
2167
2167
  }
2168
- function Ge(e) {
2168
+ function Ve(e) {
2169
2169
  return ft(e) ? `"${e}"` : e;
2170
2170
  }
2171
2171
  function wt(e) {
@@ -2173,9 +2173,9 @@ function wt(e) {
2173
2173
  }
2174
2174
  const Mt = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
2175
2175
  function qt(e) {
2176
- return Bt[e.charCodeAt(0)];
2176
+ return Ft[e.charCodeAt(0)];
2177
2177
  }
2178
- const Bt = [
2178
+ const Ft = [
2179
2179
  "\\u0000",
2180
2180
  "\\u0001",
2181
2181
  "\\u0002",
@@ -2341,31 +2341,31 @@ const Bt = [
2341
2341
  "\\u009D",
2342
2342
  "\\u009E",
2343
2343
  "\\u009F"
2344
- ], Ft = Object.freeze({});
2345
- function Ut(e, t, n = Le) {
2346
- const r = /* @__PURE__ */ new Map();
2347
- for (const b of Object.values(p))
2348
- r.set(b, Vt(t, b));
2349
- let i, s = Array.isArray(e), a = [e], c = -1, l = [], m = e, f, A;
2350
- const C = [], R = [];
2344
+ ], Bt = Object.freeze({});
2345
+ function Gt(e, t, n = Le) {
2346
+ const i = /* @__PURE__ */ new Map();
2347
+ for (const b of Object.values(h))
2348
+ i.set(b, Ut(t, b));
2349
+ let r, s = Array.isArray(e), a = [e], c = -1, l = [], m = e, f, A;
2350
+ const C = [], S = [];
2351
2351
  do {
2352
2352
  c++;
2353
- const b = c === a.length, Q = b && l.length !== 0;
2353
+ const b = c === a.length, z = b && l.length !== 0;
2354
2354
  if (b) {
2355
- if (f = R.length === 0 ? void 0 : C[C.length - 1], m = A, A = R.pop(), Q)
2355
+ if (f = S.length === 0 ? void 0 : C[C.length - 1], m = A, A = S.pop(), z)
2356
2356
  if (s) {
2357
2357
  m = m.slice();
2358
2358
  let w = 0;
2359
- for (const [F, $] of l) {
2360
- const J = F - w;
2359
+ for (const [B, $] of l) {
2360
+ const J = B - w;
2361
2361
  $ === null ? (m.splice(J, 1), w++) : m[J] = $;
2362
2362
  }
2363
2363
  } else {
2364
2364
  m = { ...m };
2365
- for (const [w, F] of l)
2366
- m[w] = F;
2365
+ for (const [w, B] of l)
2366
+ m[w] = B;
2367
2367
  }
2368
- c = i.index, a = i.keys, l = i.edits, s = i.inArray, i = i.prev;
2368
+ c = r.index, a = r.keys, l = r.edits, s = r.inArray, r = r.prev;
2369
2369
  } else if (A) {
2370
2370
  if (f = s ? c : a[c], m = A[f], m == null)
2371
2371
  continue;
@@ -2374,9 +2374,9 @@ function Ut(e, t, n = Le) {
2374
2374
  let L;
2375
2375
  if (!Array.isArray(m)) {
2376
2376
  var I, y;
2377
- xe(m) || ee(!1, `Invalid AST Node: ${Te(m)}.`);
2378
- const w = b ? (I = r.get(m.kind)) === null || I === void 0 ? void 0 : I.leave : (y = r.get(m.kind)) === null || y === void 0 ? void 0 : y.enter;
2379
- if (L = w == null ? void 0 : w.call(t, m, f, A, C, R), L === Ft)
2377
+ Re(m) || ee(!1, `Invalid AST Node: ${Te(m)}.`);
2378
+ const w = b ? (I = i.get(m.kind)) === null || I === void 0 ? void 0 : I.leave : (y = i.get(m.kind)) === null || y === void 0 ? void 0 : y.enter;
2379
+ if (L = w == null ? void 0 : w.call(t, m, f, A, C, S), L === Bt)
2380
2380
  break;
2381
2381
  if (L === !1) {
2382
2382
  if (!b) {
@@ -2384,29 +2384,29 @@ function Ut(e, t, n = Le) {
2384
2384
  continue;
2385
2385
  }
2386
2386
  } else if (L !== void 0 && (l.push([f, L]), !b))
2387
- if (xe(L))
2387
+ if (Re(L))
2388
2388
  m = L;
2389
2389
  else {
2390
2390
  C.pop();
2391
2391
  continue;
2392
2392
  }
2393
2393
  }
2394
- if (L === void 0 && Q && l.push([f, m]), b)
2394
+ if (L === void 0 && z && l.push([f, m]), b)
2395
2395
  C.pop();
2396
2396
  else {
2397
2397
  var N;
2398
- i = {
2398
+ r = {
2399
2399
  inArray: s,
2400
2400
  index: c,
2401
2401
  keys: a,
2402
2402
  edits: l,
2403
- prev: i
2404
- }, s = Array.isArray(m), a = s ? m : (N = n[m.kind]) !== null && N !== void 0 ? N : [], c = -1, l = [], A && R.push(A), A = m;
2403
+ prev: r
2404
+ }, s = Array.isArray(m), a = s ? m : (N = n[m.kind]) !== null && N !== void 0 ? N : [], c = -1, l = [], A && S.push(A), A = m;
2405
2405
  }
2406
- } while (i !== void 0);
2406
+ } while (r !== void 0);
2407
2407
  return l.length !== 0 ? l[l.length - 1][1] : e;
2408
2408
  }
2409
- function Vt(e, t) {
2409
+ function Ut(e, t) {
2410
2410
  const n = e[t];
2411
2411
  return typeof n == "object" ? n : typeof n == "function" ? {
2412
2412
  enter: n,
@@ -2416,8 +2416,8 @@ function Vt(e, t) {
2416
2416
  leave: e.leave
2417
2417
  };
2418
2418
  }
2419
- function Gt(e) {
2420
- return Ut(e, jt);
2419
+ function Vt(e) {
2420
+ return Gt(e, jt);
2421
2421
  }
2422
2422
  const $t = 80, jt = {
2423
2423
  Name: {
@@ -2428,21 +2428,21 @@ const $t = 80, jt = {
2428
2428
  },
2429
2429
  // Document
2430
2430
  Document: {
2431
- leave: (e) => h(e.definitions, `
2431
+ leave: (e) => p(e.definitions, `
2432
2432
 
2433
2433
  `)
2434
2434
  },
2435
2435
  OperationDefinition: {
2436
2436
  leave(e) {
2437
- const t = he(e.variableDefinitions) ? g(`(
2438
- `, h(e.variableDefinitions, `
2437
+ const t = pe(e.variableDefinitions) ? g(`(
2438
+ `, p(e.variableDefinitions, `
2439
2439
  `), `
2440
- )`) : g("(", h(e.variableDefinitions, ", "), ")"), n = g("", e.description, `
2441
- `) + h(
2440
+ )`) : g("(", p(e.variableDefinitions, ", "), ")"), n = g("", e.description, `
2441
+ `) + p(
2442
2442
  [
2443
2443
  e.operation,
2444
- h([e.name, t]),
2445
- h(e.directives, " ")
2444
+ p([e.name, t]),
2445
+ p(e.directives, " ")
2446
2446
  ],
2447
2447
  " "
2448
2448
  );
@@ -2450,20 +2450,20 @@ const $t = 80, jt = {
2450
2450
  }
2451
2451
  },
2452
2452
  VariableDefinition: {
2453
- leave: ({ variable: e, type: t, defaultValue: n, directives: r, description: i }) => g("", i, `
2454
- `) + e + ": " + t + g(" = ", n) + g(" ", h(r, " "))
2453
+ leave: ({ variable: e, type: t, defaultValue: n, directives: i, description: r }) => g("", r, `
2454
+ `) + e + ": " + t + g(" = ", n) + g(" ", p(i, " "))
2455
2455
  },
2456
2456
  SelectionSet: {
2457
2457
  leave: ({ selections: e }) => _(e)
2458
2458
  },
2459
2459
  Field: {
2460
- leave({ alias: e, name: t, arguments: n, directives: r, selectionSet: i }) {
2460
+ leave({ alias: e, name: t, arguments: n, directives: i, selectionSet: r }) {
2461
2461
  const s = g("", e, ": ") + t;
2462
- let a = s + g("(", h(n, ", "), ")");
2462
+ let a = s + g("(", p(n, ", "), ")");
2463
2463
  return a.length > $t && (a = s + g(`(
2464
- `, te(h(n, `
2464
+ `, te(p(n, `
2465
2465
  `)), `
2466
- )`)), h([a, h(r, " "), i], " ");
2466
+ )`)), p([a, p(i, " "), r], " ");
2467
2467
  }
2468
2468
  },
2469
2469
  Argument: {
@@ -2471,14 +2471,14 @@ const $t = 80, jt = {
2471
2471
  },
2472
2472
  // Fragments
2473
2473
  FragmentSpread: {
2474
- leave: ({ name: e, directives: t }) => "..." + e + g(" ", h(t, " "))
2474
+ leave: ({ name: e, directives: t }) => "..." + e + g(" ", p(t, " "))
2475
2475
  },
2476
2476
  InlineFragment: {
2477
- leave: ({ typeCondition: e, directives: t, selectionSet: n }) => h(
2477
+ leave: ({ typeCondition: e, directives: t, selectionSet: n }) => p(
2478
2478
  [
2479
2479
  "...",
2480
2480
  g("on ", e),
2481
- h(t, " "),
2481
+ p(t, " "),
2482
2482
  n
2483
2483
  ],
2484
2484
  " "
@@ -2489,13 +2489,13 @@ const $t = 80, jt = {
2489
2489
  name: e,
2490
2490
  typeCondition: t,
2491
2491
  variableDefinitions: n,
2492
- directives: r,
2493
- selectionSet: i,
2492
+ directives: i,
2493
+ selectionSet: r,
2494
2494
  description: s
2495
2495
  }) => g("", s, `
2496
2496
  `) + // Note: fragment variable definitions are experimental and may be changed
2497
2497
  // or removed in the future.
2498
- `fragment ${e}${g("(", h(n, ", "), ")")} on ${t} ${g("", h(r, " "), " ")}` + i
2498
+ `fragment ${e}${g("(", p(n, ", "), ")")} on ${t} ${g("", p(i, " "), " ")}` + r
2499
2499
  },
2500
2500
  // Value
2501
2501
  IntValue: {
@@ -2505,7 +2505,7 @@ const $t = 80, jt = {
2505
2505
  leave: ({ value: e }) => e
2506
2506
  },
2507
2507
  StringValue: {
2508
- leave: ({ value: e, block: t }) => t ? pt(e) : wt(e)
2508
+ leave: ({ value: e, block: t }) => t ? ht(e) : wt(e)
2509
2509
  },
2510
2510
  BooleanValue: {
2511
2511
  leave: ({ value: e }) => e ? "true" : "false"
@@ -2517,17 +2517,17 @@ const $t = 80, jt = {
2517
2517
  leave: ({ value: e }) => e
2518
2518
  },
2519
2519
  ListValue: {
2520
- leave: ({ values: e }) => "[" + h(e, ", ") + "]"
2520
+ leave: ({ values: e }) => "[" + p(e, ", ") + "]"
2521
2521
  },
2522
2522
  ObjectValue: {
2523
- leave: ({ fields: e }) => "{" + h(e, ", ") + "}"
2523
+ leave: ({ fields: e }) => "{" + p(e, ", ") + "}"
2524
2524
  },
2525
2525
  ObjectField: {
2526
2526
  leave: ({ name: e, value: t }) => e + ": " + t
2527
2527
  },
2528
2528
  // Directive
2529
2529
  Directive: {
2530
- leave: ({ name: e, arguments: t }) => "@" + e + g("(", h(t, ", "), ")")
2530
+ leave: ({ name: e, arguments: t }) => "@" + e + g("(", p(t, ", "), ")")
2531
2531
  },
2532
2532
  // Type
2533
2533
  NamedType: {
@@ -2542,155 +2542,155 @@ const $t = 80, jt = {
2542
2542
  // Type System Definitions
2543
2543
  SchemaDefinition: {
2544
2544
  leave: ({ description: e, directives: t, operationTypes: n }) => g("", e, `
2545
- `) + h(["schema", h(t, " "), _(n)], " ")
2545
+ `) + p(["schema", p(t, " "), _(n)], " ")
2546
2546
  },
2547
2547
  OperationTypeDefinition: {
2548
2548
  leave: ({ operation: e, type: t }) => e + ": " + t
2549
2549
  },
2550
2550
  ScalarTypeDefinition: {
2551
2551
  leave: ({ description: e, name: t, directives: n }) => g("", e, `
2552
- `) + h(["scalar", t, h(n, " ")], " ")
2552
+ `) + p(["scalar", t, p(n, " ")], " ")
2553
2553
  },
2554
2554
  ObjectTypeDefinition: {
2555
- leave: ({ description: e, name: t, interfaces: n, directives: r, fields: i }) => g("", e, `
2556
- `) + h(
2555
+ leave: ({ description: e, name: t, interfaces: n, directives: i, fields: r }) => g("", e, `
2556
+ `) + p(
2557
2557
  [
2558
2558
  "type",
2559
2559
  t,
2560
- g("implements ", h(n, " & ")),
2561
- h(r, " "),
2562
- _(i)
2560
+ g("implements ", p(n, " & ")),
2561
+ p(i, " "),
2562
+ _(r)
2563
2563
  ],
2564
2564
  " "
2565
2565
  )
2566
2566
  },
2567
2567
  FieldDefinition: {
2568
- leave: ({ description: e, name: t, arguments: n, type: r, directives: i }) => g("", e, `
2569
- `) + t + (he(n) ? g(`(
2570
- `, te(h(n, `
2568
+ leave: ({ description: e, name: t, arguments: n, type: i, directives: r }) => g("", e, `
2569
+ `) + t + (pe(n) ? g(`(
2570
+ `, te(p(n, `
2571
2571
  `)), `
2572
- )`) : g("(", h(n, ", "), ")")) + ": " + r + g(" ", h(i, " "))
2572
+ )`) : g("(", p(n, ", "), ")")) + ": " + i + g(" ", p(r, " "))
2573
2573
  },
2574
2574
  InputValueDefinition: {
2575
- leave: ({ description: e, name: t, type: n, defaultValue: r, directives: i }) => g("", e, `
2576
- `) + h(
2577
- [t + ": " + n, g("= ", r), h(i, " ")],
2575
+ leave: ({ description: e, name: t, type: n, defaultValue: i, directives: r }) => g("", e, `
2576
+ `) + p(
2577
+ [t + ": " + n, g("= ", i), p(r, " ")],
2578
2578
  " "
2579
2579
  )
2580
2580
  },
2581
2581
  InterfaceTypeDefinition: {
2582
- leave: ({ description: e, name: t, interfaces: n, directives: r, fields: i }) => g("", e, `
2583
- `) + h(
2582
+ leave: ({ description: e, name: t, interfaces: n, directives: i, fields: r }) => g("", e, `
2583
+ `) + p(
2584
2584
  [
2585
2585
  "interface",
2586
2586
  t,
2587
- g("implements ", h(n, " & ")),
2588
- h(r, " "),
2589
- _(i)
2587
+ g("implements ", p(n, " & ")),
2588
+ p(i, " "),
2589
+ _(r)
2590
2590
  ],
2591
2591
  " "
2592
2592
  )
2593
2593
  },
2594
2594
  UnionTypeDefinition: {
2595
- leave: ({ description: e, name: t, directives: n, types: r }) => g("", e, `
2596
- `) + h(
2597
- ["union", t, h(n, " "), g("= ", h(r, " | "))],
2595
+ leave: ({ description: e, name: t, directives: n, types: i }) => g("", e, `
2596
+ `) + p(
2597
+ ["union", t, p(n, " "), g("= ", p(i, " | "))],
2598
2598
  " "
2599
2599
  )
2600
2600
  },
2601
2601
  EnumTypeDefinition: {
2602
- leave: ({ description: e, name: t, directives: n, values: r }) => g("", e, `
2603
- `) + h(["enum", t, h(n, " "), _(r)], " ")
2602
+ leave: ({ description: e, name: t, directives: n, values: i }) => g("", e, `
2603
+ `) + p(["enum", t, p(n, " "), _(i)], " ")
2604
2604
  },
2605
2605
  EnumValueDefinition: {
2606
2606
  leave: ({ description: e, name: t, directives: n }) => g("", e, `
2607
- `) + h([t, h(n, " ")], " ")
2607
+ `) + p([t, p(n, " ")], " ")
2608
2608
  },
2609
2609
  InputObjectTypeDefinition: {
2610
- leave: ({ description: e, name: t, directives: n, fields: r }) => g("", e, `
2611
- `) + h(["input", t, h(n, " "), _(r)], " ")
2610
+ leave: ({ description: e, name: t, directives: n, fields: i }) => g("", e, `
2611
+ `) + p(["input", t, p(n, " "), _(i)], " ")
2612
2612
  },
2613
2613
  DirectiveDefinition: {
2614
- leave: ({ description: e, name: t, arguments: n, repeatable: r, locations: i }) => g("", e, `
2615
- `) + "directive @" + t + (he(n) ? g(`(
2616
- `, te(h(n, `
2614
+ leave: ({ description: e, name: t, arguments: n, repeatable: i, locations: r }) => g("", e, `
2615
+ `) + "directive @" + t + (pe(n) ? g(`(
2616
+ `, te(p(n, `
2617
2617
  `)), `
2618
- )`) : g("(", h(n, ", "), ")")) + (r ? " repeatable" : "") + " on " + h(i, " | ")
2618
+ )`) : g("(", p(n, ", "), ")")) + (i ? " repeatable" : "") + " on " + p(r, " | ")
2619
2619
  },
2620
2620
  SchemaExtension: {
2621
- leave: ({ directives: e, operationTypes: t }) => h(
2622
- ["extend schema", h(e, " "), _(t)],
2621
+ leave: ({ directives: e, operationTypes: t }) => p(
2622
+ ["extend schema", p(e, " "), _(t)],
2623
2623
  " "
2624
2624
  )
2625
2625
  },
2626
2626
  ScalarTypeExtension: {
2627
- leave: ({ name: e, directives: t }) => h(["extend scalar", e, h(t, " ")], " ")
2627
+ leave: ({ name: e, directives: t }) => p(["extend scalar", e, p(t, " ")], " ")
2628
2628
  },
2629
2629
  ObjectTypeExtension: {
2630
- leave: ({ name: e, interfaces: t, directives: n, fields: r }) => h(
2630
+ leave: ({ name: e, interfaces: t, directives: n, fields: i }) => p(
2631
2631
  [
2632
2632
  "extend type",
2633
2633
  e,
2634
- g("implements ", h(t, " & ")),
2635
- h(n, " "),
2636
- _(r)
2634
+ g("implements ", p(t, " & ")),
2635
+ p(n, " "),
2636
+ _(i)
2637
2637
  ],
2638
2638
  " "
2639
2639
  )
2640
2640
  },
2641
2641
  InterfaceTypeExtension: {
2642
- leave: ({ name: e, interfaces: t, directives: n, fields: r }) => h(
2642
+ leave: ({ name: e, interfaces: t, directives: n, fields: i }) => p(
2643
2643
  [
2644
2644
  "extend interface",
2645
2645
  e,
2646
- g("implements ", h(t, " & ")),
2647
- h(n, " "),
2648
- _(r)
2646
+ g("implements ", p(t, " & ")),
2647
+ p(n, " "),
2648
+ _(i)
2649
2649
  ],
2650
2650
  " "
2651
2651
  )
2652
2652
  },
2653
2653
  UnionTypeExtension: {
2654
- leave: ({ name: e, directives: t, types: n }) => h(
2654
+ leave: ({ name: e, directives: t, types: n }) => p(
2655
2655
  [
2656
2656
  "extend union",
2657
2657
  e,
2658
- h(t, " "),
2659
- g("= ", h(n, " | "))
2658
+ p(t, " "),
2659
+ g("= ", p(n, " | "))
2660
2660
  ],
2661
2661
  " "
2662
2662
  )
2663
2663
  },
2664
2664
  EnumTypeExtension: {
2665
- leave: ({ name: e, directives: t, values: n }) => h(["extend enum", e, h(t, " "), _(n)], " ")
2665
+ leave: ({ name: e, directives: t, values: n }) => p(["extend enum", e, p(t, " "), _(n)], " ")
2666
2666
  },
2667
2667
  InputObjectTypeExtension: {
2668
- leave: ({ name: e, directives: t, fields: n }) => h(["extend input", e, h(t, " "), _(n)], " ")
2668
+ leave: ({ name: e, directives: t, fields: n }) => p(["extend input", e, p(t, " "), _(n)], " ")
2669
2669
  },
2670
2670
  // Schema Coordinates
2671
2671
  TypeCoordinate: {
2672
2672
  leave: ({ name: e }) => e
2673
2673
  },
2674
2674
  MemberCoordinate: {
2675
- leave: ({ name: e, memberName: t }) => h([e, g(".", t)])
2675
+ leave: ({ name: e, memberName: t }) => p([e, g(".", t)])
2676
2676
  },
2677
2677
  ArgumentCoordinate: {
2678
- leave: ({ name: e, fieldName: t, argumentName: n }) => h([e, g(".", t), g("(", n, ":)")])
2678
+ leave: ({ name: e, fieldName: t, argumentName: n }) => p([e, g(".", t), g("(", n, ":)")])
2679
2679
  },
2680
2680
  DirectiveCoordinate: {
2681
- leave: ({ name: e }) => h(["@", e])
2681
+ leave: ({ name: e }) => p(["@", e])
2682
2682
  },
2683
2683
  DirectiveArgumentCoordinate: {
2684
- leave: ({ name: e, argumentName: t }) => h(["@", e, g("(", t, ":)")])
2684
+ leave: ({ name: e, argumentName: t }) => p(["@", e, g("(", t, ":)")])
2685
2685
  }
2686
2686
  };
2687
- function h(e, t = "") {
2687
+ function p(e, t = "") {
2688
2688
  var n;
2689
- return (n = e == null ? void 0 : e.filter((r) => r).join(t)) !== null && n !== void 0 ? n : "";
2689
+ return (n = e == null ? void 0 : e.filter((i) => i).join(t)) !== null && n !== void 0 ? n : "";
2690
2690
  }
2691
2691
  function _(e) {
2692
2692
  return g(`{
2693
- `, te(h(e, `
2693
+ `, te(p(e, `
2694
2694
  `)), `
2695
2695
  }`);
2696
2696
  }
@@ -2701,40 +2701,40 @@ function te(e) {
2701
2701
  return g(" ", e.replace(/\n/g, `
2702
2702
  `));
2703
2703
  }
2704
- function he(e) {
2704
+ function pe(e) {
2705
2705
  var t;
2706
2706
  return (t = e == null ? void 0 : e.some((n) => n.includes(`
2707
2707
  `))) !== null && t !== void 0 ? t : !1;
2708
2708
  }
2709
2709
  const De = (e) => {
2710
- var r, i;
2710
+ var i, r;
2711
2711
  let t;
2712
2712
  const n = e.definitions.filter((s) => s.kind === "OperationDefinition");
2713
- return n.length === 1 && (t = (i = (r = n[0]) == null ? void 0 : r.name) == null ? void 0 : i.value), t;
2714
- }, pe = (e) => {
2713
+ return n.length === 1 && (t = (r = (i = n[0]) == null ? void 0 : i.name) == null ? void 0 : r.value), t;
2714
+ }, he = (e) => {
2715
2715
  if (typeof e == "string") {
2716
2716
  let n;
2717
2717
  try {
2718
- const r = Ve(e);
2719
- n = De(r);
2718
+ const i = Ue(e);
2719
+ n = De(i);
2720
2720
  } catch {
2721
2721
  }
2722
2722
  return { query: e, operationName: n };
2723
2723
  }
2724
2724
  const t = De(e);
2725
- return { query: Gt(e), operationName: t };
2725
+ return { query: Vt(e), operationName: t };
2726
2726
  };
2727
2727
  class Y extends Error {
2728
2728
  constructor(t, n) {
2729
- const r = `${Y.extractMessage(t)}: ${JSON.stringify({
2729
+ const i = `${Y.extractMessage(t)}: ${JSON.stringify({
2730
2730
  response: t,
2731
2731
  request: n
2732
2732
  })}`;
2733
- super(r), Object.setPrototypeOf(this, Y.prototype), this.response = t, this.request = n, typeof Error.captureStackTrace == "function" && Error.captureStackTrace(this, Y);
2733
+ super(i), Object.setPrototypeOf(this, Y.prototype), this.response = t, this.request = n, typeof Error.captureStackTrace == "function" && Error.captureStackTrace(this, Y);
2734
2734
  }
2735
2735
  static extractMessage(t) {
2736
- var n, r;
2737
- return ((r = (n = t.errors) == null ? void 0 : n[0]) == null ? void 0 : r.message) ?? `GraphQL Error (Code: ${t.status})`;
2736
+ var n, i;
2737
+ return ((i = (n = t.errors) == null ? void 0 : n[0]) == null ? void 0 : i.message) ?? `GraphQL Error (Code: ${t.status})`;
2738
2738
  }
2739
2739
  }
2740
2740
  var Z = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -2744,7 +2744,7 @@ function Ht(e) {
2744
2744
  var W = { exports: {} }, Ne;
2745
2745
  function Yt() {
2746
2746
  return Ne || (Ne = 1, (function(e, t) {
2747
- var n = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof Z < "u" && Z, r = (function() {
2747
+ var n = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof Z < "u" && Z, i = (function() {
2748
2748
  function s() {
2749
2749
  this.fetch = !1, this.DOMException = n.DOMException;
2750
2750
  }
@@ -2788,7 +2788,7 @@ function Yt() {
2788
2788
  throw new TypeError('Invalid character in header field name: "' + o + '"');
2789
2789
  return o.toLowerCase();
2790
2790
  }
2791
- function R(o) {
2791
+ function S(o) {
2792
2792
  return typeof o != "string" && (o = String(o)), o;
2793
2793
  }
2794
2794
  function I(o) {
@@ -2814,7 +2814,7 @@ function Yt() {
2814
2814
  }, this);
2815
2815
  }
2816
2816
  y.prototype.append = function(o, d) {
2817
- o = C(o), d = R(d);
2817
+ o = C(o), d = S(d);
2818
2818
  var E = this.map[o];
2819
2819
  this.map[o] = E ? E + ", " + d : d;
2820
2820
  }, y.prototype.delete = function(o) {
@@ -2824,7 +2824,7 @@ function Yt() {
2824
2824
  }, y.prototype.has = function(o) {
2825
2825
  return this.map.hasOwnProperty(C(o));
2826
2826
  }, y.prototype.set = function(o, d) {
2827
- this.map[C(o)] = R(d);
2827
+ this.map[C(o)] = S(d);
2828
2828
  }, y.prototype.forEach = function(o, d) {
2829
2829
  for (var E in this.map)
2830
2830
  this.map.hasOwnProperty(E) && o.call(d, this.map[E], E, this);
@@ -2860,20 +2860,20 @@ function Yt() {
2860
2860
  };
2861
2861
  });
2862
2862
  }
2863
- function Q(o) {
2863
+ function z(o) {
2864
2864
  var d = new FileReader(), E = b(d);
2865
2865
  return d.readAsArrayBuffer(o), E;
2866
2866
  }
2867
2867
  function L(o) {
2868
- var d = new FileReader(), E = b(d), S = /charset=([A-Za-z0-9_-]+)/.exec(o.type), O = S ? S[1] : "utf-8";
2868
+ var d = new FileReader(), E = b(d), P = /charset=([A-Za-z0-9_-]+)/.exec(o.type), O = P ? P[1] : "utf-8";
2869
2869
  return d.readAsText(o, O), E;
2870
2870
  }
2871
2871
  function w(o) {
2872
- for (var d = new Uint8Array(o), E = new Array(d.length), S = 0; S < d.length; S++)
2873
- E[S] = String.fromCharCode(d[S]);
2872
+ for (var d = new Uint8Array(o), E = new Array(d.length), P = 0; P < d.length; P++)
2873
+ E[P] = String.fromCharCode(d[P]);
2874
2874
  return E.join("");
2875
2875
  }
2876
- function F(o) {
2876
+ function B(o) {
2877
2877
  if (o.slice)
2878
2878
  return o.slice(0);
2879
2879
  var d = new Uint8Array(o.byteLength);
@@ -2881,7 +2881,7 @@ function Yt() {
2881
2881
  }
2882
2882
  function $() {
2883
2883
  return this.bodyUsed = !1, this._initBody = function(o) {
2884
- this.bodyUsed = this.bodyUsed, this._bodyInit = o, o ? typeof o == "string" ? this._bodyText = o : l.blob && Blob.prototype.isPrototypeOf(o) ? this._bodyBlob = o : l.formData && FormData.prototype.isPrototypeOf(o) ? this._bodyFormData = o : l.searchParams && URLSearchParams.prototype.isPrototypeOf(o) ? this._bodyText = o.toString() : l.arrayBuffer && l.blob && m(o) ? (this._bodyArrayBuffer = F(o.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : l.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(o) || A(o)) ? this._bodyArrayBuffer = F(o) : this._bodyText = o = Object.prototype.toString.call(o) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof o == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : l.searchParams && URLSearchParams.prototype.isPrototypeOf(o) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
2884
+ this.bodyUsed = this.bodyUsed, this._bodyInit = o, o ? typeof o == "string" ? this._bodyText = o : l.blob && Blob.prototype.isPrototypeOf(o) ? this._bodyBlob = o : l.formData && FormData.prototype.isPrototypeOf(o) ? this._bodyFormData = o : l.searchParams && URLSearchParams.prototype.isPrototypeOf(o) ? this._bodyText = o.toString() : l.arrayBuffer && l.blob && m(o) ? (this._bodyArrayBuffer = B(o.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : l.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(o) || A(o)) ? this._bodyArrayBuffer = B(o) : this._bodyText = o = Object.prototype.toString.call(o) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof o == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : l.searchParams && URLSearchParams.prototype.isPrototypeOf(o) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
2885
2885
  }, l.blob && (this.blob = function() {
2886
2886
  var o = N(this);
2887
2887
  if (o)
@@ -2904,7 +2904,7 @@ function Yt() {
2904
2904
  ) : Promise.resolve(this._bodyArrayBuffer));
2905
2905
  } else {
2906
2906
  if (l.blob)
2907
- return this.blob().then(Q);
2907
+ return this.blob().then(z);
2908
2908
  throw new Error("could not read as ArrayBuffer");
2909
2909
  }
2910
2910
  }, this.text = function() {
@@ -2948,9 +2948,9 @@ function Yt() {
2948
2948
  })(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") && E)
2949
2949
  throw new TypeError("Body not allowed for GET or HEAD requests");
2950
2950
  if (this._initBody(E), (this.method === "GET" || this.method === "HEAD") && (d.cache === "no-store" || d.cache === "no-cache")) {
2951
- var S = /([?&])_=[^&]*/;
2952
- if (S.test(this.url))
2953
- this.url = this.url.replace(S, "$1_=" + (/* @__PURE__ */ new Date()).getTime());
2951
+ var P = /([?&])_=[^&]*/;
2952
+ if (P.test(this.url))
2953
+ this.url = this.url.replace(P, "$1_=" + (/* @__PURE__ */ new Date()).getTime());
2954
2954
  else {
2955
2955
  var O = /\?/;
2956
2956
  this.url += (O.test(this.url) ? "&" : "?") + "_=" + (/* @__PURE__ */ new Date()).getTime();
@@ -2964,18 +2964,18 @@ function Yt() {
2964
2964
  var d = new FormData();
2965
2965
  return o.trim().split("&").forEach(function(E) {
2966
2966
  if (E) {
2967
- var S = E.split("="), O = S.shift().replace(/\+/g, " "), v = S.join("=").replace(/\+/g, " ");
2967
+ var P = E.split("="), O = P.shift().replace(/\+/g, " "), v = P.join("=").replace(/\+/g, " ");
2968
2968
  d.append(decodeURIComponent(O), decodeURIComponent(v));
2969
2969
  }
2970
2970
  }), d;
2971
2971
  }
2972
- function ze(o) {
2972
+ function Qe(o) {
2973
2973
  var d = new y(), E = o.replace(/\r?\n[\t ]+/g, " ");
2974
- return E.split("\r").map(function(S) {
2975
- return S.indexOf(`
2976
- `) === 0 ? S.substr(1, S.length) : S;
2977
- }).forEach(function(S) {
2978
- var O = S.split(":"), v = O.shift().trim();
2974
+ return E.split("\r").map(function(P) {
2975
+ return P.indexOf(`
2976
+ `) === 0 ? P.substr(1, P.length) : P;
2977
+ }).forEach(function(P) {
2978
+ var O = P.split(":"), v = O.shift().trim();
2979
2979
  if (v) {
2980
2980
  var X = O.join(":").trim();
2981
2981
  try {
@@ -3005,9 +3005,9 @@ function Yt() {
3005
3005
  var o = new k(null, { status: 200, statusText: "" });
3006
3006
  return o.ok = !1, o.status = 0, o.type = "error", o;
3007
3007
  };
3008
- var Qe = [301, 302, 303, 307, 308];
3008
+ var ze = [301, 302, 303, 307, 308];
3009
3009
  k.redirect = function(o, d) {
3010
- if (Qe.indexOf(d) === -1)
3010
+ if (ze.indexOf(d) === -1)
3011
3011
  throw new RangeError("Invalid status code");
3012
3012
  return new k(null, { status: d, headers: { location: o } });
3013
3013
  }, a.DOMException = c.DOMException;
@@ -3016,15 +3016,15 @@ function Yt() {
3016
3016
  } catch {
3017
3017
  a.DOMException = function(d, E) {
3018
3018
  this.message = d, this.name = E;
3019
- var S = Error(d);
3020
- this.stack = S.stack;
3019
+ var P = Error(d);
3020
+ this.stack = P.stack;
3021
3021
  }, a.DOMException.prototype = Object.create(Error.prototype), a.DOMException.prototype.constructor = a.DOMException;
3022
3022
  }
3023
3023
  function ce(o, d) {
3024
- return new Promise(function(E, S) {
3024
+ return new Promise(function(E, P) {
3025
3025
  var O = new M(o, d);
3026
3026
  if (O.signal && O.signal.aborted)
3027
- return S(new a.DOMException("Aborted", "AbortError"));
3027
+ return P(new a.DOMException("Aborted", "AbortError"));
3028
3028
  var v = new XMLHttpRequest();
3029
3029
  function X() {
3030
3030
  v.abort();
@@ -3032,7 +3032,7 @@ function Yt() {
3032
3032
  v.onload = function() {
3033
3033
  var D = {
3034
3034
  statusText: v.statusText,
3035
- headers: ze(v.getAllResponseHeaders() || "")
3035
+ headers: Qe(v.getAllResponseHeaders() || "")
3036
3036
  };
3037
3037
  O.url.indexOf("file://") === 0 && (v.status < 200 || v.status > 599) ? D.status = 200 : D.status = v.status, D.url = "responseURL" in v ? v.responseURL : D.headers.get("X-Request-URL");
3038
3038
  var q = "response" in v ? v.response : v.responseText;
@@ -3041,15 +3041,15 @@ function Yt() {
3041
3041
  }, 0);
3042
3042
  }, v.onerror = function() {
3043
3043
  setTimeout(function() {
3044
- S(new TypeError("Network request failed"));
3044
+ P(new TypeError("Network request failed"));
3045
3045
  }, 0);
3046
3046
  }, v.ontimeout = function() {
3047
3047
  setTimeout(function() {
3048
- S(new TypeError("Network request timed out"));
3048
+ P(new TypeError("Network request timed out"));
3049
3049
  }, 0);
3050
3050
  }, v.onabort = function() {
3051
3051
  setTimeout(function() {
3052
- S(new a.DOMException("Aborted", "AbortError"));
3052
+ P(new a.DOMException("Aborted", "AbortError"));
3053
3053
  }, 0);
3054
3054
  };
3055
3055
  function de(D) {
@@ -3062,7 +3062,7 @@ function Yt() {
3062
3062
  if (v.open(O.method, de(O.url), !0), O.credentials === "include" ? v.withCredentials = !0 : O.credentials === "omit" && (v.withCredentials = !1), "responseType" in v && (l.blob ? v.responseType = "blob" : l.arrayBuffer && (v.responseType = "arraybuffer")), d && typeof d.headers == "object" && !(d.headers instanceof y || c.Headers && d.headers instanceof c.Headers)) {
3063
3063
  var Ie = [];
3064
3064
  Object.getOwnPropertyNames(d.headers).forEach(function(D) {
3065
- Ie.push(C(D)), v.setRequestHeader(D, R(d.headers[D]));
3065
+ Ie.push(C(D)), v.setRequestHeader(D, S(d.headers[D]));
3066
3066
  }), O.headers.forEach(function(D, q) {
3067
3067
  Ie.indexOf(q) === -1 && v.setRequestHeader(q, D);
3068
3068
  });
@@ -3077,38 +3077,38 @@ function Yt() {
3077
3077
  }
3078
3078
  return ce.polyfill = !0, c.fetch || (c.fetch = ce, c.Headers = y, c.Request = M, c.Response = k), a.Headers = y, a.Request = M, a.Response = k, a.fetch = ce, Object.defineProperty(a, "__esModule", { value: !0 }), a;
3079
3079
  })({});
3080
- })(r), r.fetch.ponyfill = !0, delete r.fetch.polyfill;
3081
- var i = n.fetch ? n : r;
3082
- 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;
3080
+ })(i), i.fetch.ponyfill = !0, delete i.fetch.polyfill;
3081
+ var r = n.fetch ? n : i;
3082
+ t = r.fetch, t.default = r.fetch, t.fetch = r.fetch, t.Headers = r.Headers, t.Request = r.Request, t.Response = r.Response, e.exports = t;
3083
3083
  })(W, W.exports)), W.exports;
3084
3084
  }
3085
- var re = Yt();
3086
- const ne = /* @__PURE__ */ Ht(re), zt = /* @__PURE__ */ Ke({
3085
+ var ie = Yt();
3086
+ const ne = /* @__PURE__ */ Ht(ie), Qt = /* @__PURE__ */ Ke({
3087
3087
  __proto__: null,
3088
3088
  default: ne
3089
- }, [re]), U = (e) => {
3089
+ }, [ie]), G = (e) => {
3090
3090
  let t = {};
3091
- return e && (typeof Headers < "u" && e instanceof Headers || zt && re.Headers && e instanceof re.Headers ? t = We(e) : Array.isArray(e) ? e.forEach(([n, r]) => {
3092
- n && r !== void 0 && (t[n] = r);
3091
+ return e && (typeof Headers < "u" && e instanceof Headers || Qt && ie.Headers && e instanceof ie.Headers ? t = We(e) : Array.isArray(e) ? e.forEach(([n, i]) => {
3092
+ n && i !== void 0 && (t[n] = i);
3093
3093
  }) : t = e), t;
3094
- }, be = (e) => e.replace(/([\s,]|#[^\n\r]+)+/g, " ").trim(), Qt = (e) => {
3094
+ }, be = (e) => e.replace(/([\s,]|#[^\n\r]+)+/g, " ").trim(), zt = (e) => {
3095
3095
  if (!Array.isArray(e.query)) {
3096
- const r = e, i = [`query=${encodeURIComponent(be(r.query))}`];
3097
- return e.variables && i.push(`variables=${encodeURIComponent(r.jsonSerializer.stringify(r.variables))}`), r.operationName && i.push(`operationName=${encodeURIComponent(r.operationName)}`), i.join("&");
3096
+ const i = e, r = [`query=${encodeURIComponent(be(i.query))}`];
3097
+ return e.variables && r.push(`variables=${encodeURIComponent(i.jsonSerializer.stringify(i.variables))}`), i.operationName && r.push(`operationName=${encodeURIComponent(i.operationName)}`), r.join("&");
3098
3098
  }
3099
3099
  if (typeof e.variables < "u" && !Array.isArray(e.variables))
3100
3100
  throw new Error("Cannot create query with given variable type, array expected");
3101
- const t = e, n = e.query.reduce((r, i, s) => (r.push({
3102
- query: be(i),
3101
+ const t = e, n = e.query.reduce((i, r, s) => (i.push({
3102
+ query: be(r),
3103
3103
  variables: t.variables ? t.jsonSerializer.stringify(t.variables[s]) : void 0
3104
- }), r), []);
3104
+ }), i), []);
3105
3105
  return `query=${encodeURIComponent(t.jsonSerializer.stringify(n))}`;
3106
3106
  }, Jt = (e) => async (t) => {
3107
- const { url: n, query: r, variables: i, operationName: s, fetch: a, fetchOptions: c, middleware: l } = t, m = { ...t.headers };
3107
+ const { url: n, query: i, variables: r, operationName: s, fetch: a, fetchOptions: c, middleware: l } = t, m = { ...t.headers };
3108
3108
  let f = "", A;
3109
- e === "POST" ? (A = Kt(r, i, s, c.jsonSerializer), typeof A == "string" && (m["Content-Type"] = "application/json")) : f = Qt({
3110
- query: r,
3111
- variables: i,
3109
+ e === "POST" ? (A = Kt(i, r, s, c.jsonSerializer), typeof A == "string" && (m["Content-Type"] = "application/json")) : f = zt({
3110
+ query: i,
3111
+ variables: r,
3112
3112
  operationName: s,
3113
3113
  jsonSerializer: c.jsonSerializer ?? Ae
3114
3114
  });
@@ -3118,31 +3118,31 @@ const ne = /* @__PURE__ */ Ht(re), zt = /* @__PURE__ */ Ke({
3118
3118
  body: A,
3119
3119
  ...c
3120
3120
  };
3121
- let R = n, I = C;
3121
+ let S = n, I = C;
3122
3122
  if (l) {
3123
- const y = await Promise.resolve(l({ ...C, url: n, operationName: s, variables: i })), { url: N, ...b } = y;
3124
- R = N, I = b;
3123
+ const y = await Promise.resolve(l({ ...C, url: n, operationName: s, variables: r })), { url: N, ...b } = y;
3124
+ S = N, I = b;
3125
3125
  }
3126
- return f && (R = `${R}?${f}`), await a(R, I);
3126
+ return f && (S = `${S}?${f}`), await a(S, I);
3127
3127
  };
3128
3128
  class Xt {
3129
3129
  constructor(t, n = {}) {
3130
- this.url = t, this.requestConfig = n, this.rawRequest = async (...r) => {
3131
- const [i, s, a] = r, c = tt(i, s, a), { headers: l, fetch: m = ne, method: f = "POST", requestMiddleware: A, responseMiddleware: C, ...R } = this.requestConfig, { url: I } = this;
3132
- c.signal !== void 0 && (R.signal = c.signal);
3133
- const { operationName: y } = pe(c.query);
3130
+ this.url = t, this.requestConfig = n, this.rawRequest = async (...i) => {
3131
+ const [r, s, a] = i, c = tt(r, s, a), { headers: l, fetch: m = ne, method: f = "POST", requestMiddleware: A, responseMiddleware: C, ...S } = this.requestConfig, { url: I } = this;
3132
+ c.signal !== void 0 && (S.signal = c.signal);
3133
+ const { operationName: y } = he(c.query);
3134
3134
  return me({
3135
3135
  url: I,
3136
3136
  query: c.query,
3137
3137
  variables: c.variables,
3138
3138
  headers: {
3139
- ...U(fe(l)),
3140
- ...U(c.requestHeaders)
3139
+ ...G(fe(l)),
3140
+ ...G(c.requestHeaders)
3141
3141
  },
3142
3142
  operationName: y,
3143
3143
  fetch: m,
3144
3144
  method: f,
3145
- fetchOptions: R,
3145
+ fetchOptions: S,
3146
3146
  middleware: A
3147
3147
  }).then((N) => (C && C(N), N)).catch((N) => {
3148
3148
  throw C && C(N), N;
@@ -3150,16 +3150,16 @@ class Xt {
3150
3150
  };
3151
3151
  }
3152
3152
  async request(t, ...n) {
3153
- const [r, i] = n, s = et(t, r, i), { headers: a, fetch: c = ne, method: l = "POST", requestMiddleware: m, responseMiddleware: f, ...A } = this.requestConfig, { url: C } = this;
3153
+ const [i, r] = n, s = et(t, i, r), { headers: a, fetch: c = ne, method: l = "POST", requestMiddleware: m, responseMiddleware: f, ...A } = this.requestConfig, { url: C } = this;
3154
3154
  s.signal !== void 0 && (A.signal = s.signal);
3155
- const { query: R, operationName: I } = pe(s.document);
3155
+ const { query: S, operationName: I } = he(s.document);
3156
3156
  return me({
3157
3157
  url: C,
3158
- query: R,
3158
+ query: S,
3159
3159
  variables: s.variables,
3160
3160
  headers: {
3161
- ...U(fe(a)),
3162
- ...U(s.requestHeaders)
3161
+ ...G(fe(a)),
3162
+ ...G(s.requestHeaders)
3163
3163
  },
3164
3164
  operationName: I,
3165
3165
  fetch: c,
@@ -3172,17 +3172,17 @@ class Xt {
3172
3172
  }
3173
3173
  // prettier-ignore
3174
3174
  batchRequests(t, n) {
3175
- const r = nt(t, n), { headers: i, ...s } = this.requestConfig;
3176
- r.signal !== void 0 && (s.signal = r.signal);
3177
- const a = r.documents.map(({ document: l }) => pe(l).query), c = r.documents.map(({ variables: l }) => l);
3175
+ const i = nt(t, n), { headers: r, ...s } = this.requestConfig;
3176
+ i.signal !== void 0 && (s.signal = i.signal);
3177
+ const a = i.documents.map(({ document: l }) => he(l).query), c = i.documents.map(({ variables: l }) => l);
3178
3178
  return me({
3179
3179
  url: this.url,
3180
3180
  query: a,
3181
3181
  // @ts-expect-error TODO reconcile batch variables into system.
3182
3182
  variables: c,
3183
3183
  headers: {
3184
- ...U(fe(i)),
3185
- ...U(r.requestHeaders)
3184
+ ...G(fe(r)),
3185
+ ...G(i.requestHeaders)
3186
3186
  },
3187
3187
  operationName: void 0,
3188
3188
  fetch: this.requestConfig.fetch ?? ne,
@@ -3200,8 +3200,8 @@ class Xt {
3200
3200
  * Attach a header to the client. All subsequent requests will have this header.
3201
3201
  */
3202
3202
  setHeader(t, n) {
3203
- const { headers: r } = this.requestConfig;
3204
- return r ? r[t] = n : this.requestConfig.headers = { [t]: n }, this;
3203
+ const { headers: i } = this.requestConfig;
3204
+ return i ? i[t] = n : this.requestConfig.headers = { [t]: n }, this;
3205
3205
  }
3206
3206
  /**
3207
3207
  * Change the client endpoint. All subsequent requests will send to this endpoint.
@@ -3211,9 +3211,9 @@ class Xt {
3211
3211
  }
3212
3212
  }
3213
3213
  const me = async (e) => {
3214
- const { query: t, variables: n, fetchOptions: r } = e, i = Jt(Ze(e.method ?? "post")), s = Array.isArray(e.query), a = await i(e), c = await Zt(a, r.jsonSerializer ?? Ae), l = Array.isArray(c) ? !c.some(({ data: f }) => !f) : !!c.data, m = Array.isArray(c) || !c.errors || Array.isArray(c.errors) && !c.errors.length || r.errorPolicy === "all" || r.errorPolicy === "ignore";
3214
+ const { query: t, variables: n, fetchOptions: i } = e, r = Jt(Ze(e.method ?? "post")), s = Array.isArray(e.query), a = await r(e), c = await Zt(a, i.jsonSerializer ?? Ae), l = Array.isArray(c) ? !c.some(({ data: f }) => !f) : !!c.data, m = Array.isArray(c) || !c.errors || Array.isArray(c.errors) && !c.errors.length || i.errorPolicy === "all" || i.errorPolicy === "ignore";
3215
3215
  if (a.ok && m && l) {
3216
- const { errors: f, ...A } = (Array.isArray(c), c), C = r.errorPolicy === "ignore" ? A : c;
3216
+ const { errors: f, ...A } = (Array.isArray(c), c), C = i.errorPolicy === "ignore" ? A : c;
3217
3217
  return {
3218
3218
  ...s ? { data: C } : C,
3219
3219
  headers: a.headers,
@@ -3229,30 +3229,30 @@ const me = async (e) => {
3229
3229
  { query: t, variables: n }
3230
3230
  );
3231
3231
  }
3232
- }, Kt = (e, t, n, r) => {
3233
- const i = r ?? Ae;
3232
+ }, Kt = (e, t, n, i) => {
3233
+ const r = i ?? Ae;
3234
3234
  if (!Array.isArray(e))
3235
- return i.stringify({ query: e, variables: t, operationName: n });
3235
+ return r.stringify({ query: e, variables: t, operationName: n });
3236
3236
  if (typeof t < "u" && !Array.isArray(t))
3237
3237
  throw new Error("Cannot create request body with given variable type, array expected");
3238
3238
  const s = e.reduce((a, c, l) => (a.push({ query: c, variables: t ? t[l] : void 0 }), a), []);
3239
- return i.stringify(s);
3239
+ return r.stringify(s);
3240
3240
  }, Zt = async (e, t) => {
3241
3241
  let n;
3242
- return e.headers.forEach((r, i) => {
3243
- i.toLowerCase() === "content-type" && (n = r);
3242
+ return e.headers.forEach((i, r) => {
3243
+ r.toLowerCase() === "content-type" && (n = i);
3244
3244
  }), n && (n.toLowerCase().startsWith("application/json") || n.toLowerCase().startsWith("application/graphql+json") || n.toLowerCase().startsWith("application/graphql-response+json")) ? t.parse(await e.text()) : e.text();
3245
3245
  }, fe = (e) => typeof e == "function" ? e() : e;
3246
3246
  var se = function() {
3247
3247
  return se = Object.assign || function(t) {
3248
- for (var n, r = 1, i = arguments.length; r < i; r++) {
3249
- n = arguments[r];
3248
+ for (var n, i = 1, r = arguments.length; i < r; i++) {
3249
+ n = arguments[i];
3250
3250
  for (var s in n) Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
3251
3251
  }
3252
3252
  return t;
3253
3253
  }, se.apply(this, arguments);
3254
3254
  };
3255
- var ie = /* @__PURE__ */ new Map(), Ee = /* @__PURE__ */ new Map(), $e = !0, ae = !1;
3255
+ var re = /* @__PURE__ */ new Map(), Ee = /* @__PURE__ */ new Map(), $e = !0, ae = !1;
3256
3256
  function je(e) {
3257
3257
  return e.replace(/[\s,]+/g, " ").trim();
3258
3258
  }
@@ -3261,21 +3261,21 @@ function Wt(e) {
3261
3261
  }
3262
3262
  function en(e) {
3263
3263
  var t = /* @__PURE__ */ new Set(), n = [];
3264
- return e.definitions.forEach(function(r) {
3265
- if (r.kind === "FragmentDefinition") {
3266
- var i = r.name.value, s = Wt(r.loc), a = Ee.get(i);
3267
- a && !a.has(s) ? $e && console.warn("Warning: fragment with name " + i + ` already exists.
3264
+ return e.definitions.forEach(function(i) {
3265
+ if (i.kind === "FragmentDefinition") {
3266
+ var r = i.name.value, s = Wt(i.loc), a = Ee.get(r);
3267
+ a && !a.has(s) ? $e && console.warn("Warning: fragment with name " + r + ` already exists.
3268
3268
  graphql-tag enforces all fragment names across your application to be unique; read more about
3269
- this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`) : a || Ee.set(i, a = /* @__PURE__ */ new Set()), a.add(s), t.has(s) || (t.add(s), n.push(r));
3269
+ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`) : a || Ee.set(r, a = /* @__PURE__ */ new Set()), a.add(s), t.has(s) || (t.add(s), n.push(i));
3270
3270
  } else
3271
- n.push(r);
3271
+ n.push(i);
3272
3272
  }), se(se({}, e), { definitions: n });
3273
3273
  }
3274
3274
  function tn(e) {
3275
3275
  var t = new Set(e.definitions);
3276
- t.forEach(function(r) {
3277
- r.loc && delete r.loc, Object.keys(r).forEach(function(i) {
3278
- var s = r[i];
3276
+ t.forEach(function(i) {
3277
+ i.loc && delete i.loc, Object.keys(i).forEach(function(r) {
3278
+ var s = i[r];
3279
3279
  s && typeof s == "object" && t.add(s);
3280
3280
  });
3281
3281
  });
@@ -3284,28 +3284,28 @@ function tn(e) {
3284
3284
  }
3285
3285
  function nn(e) {
3286
3286
  var t = je(e);
3287
- if (!ie.has(t)) {
3288
- var n = Ve(e, {
3287
+ if (!re.has(t)) {
3288
+ var n = Ue(e, {
3289
3289
  experimentalFragmentVariables: ae,
3290
3290
  allowLegacyFragmentVariables: ae
3291
3291
  });
3292
3292
  if (!n || n.kind !== "Document")
3293
3293
  throw new Error("Not a valid GraphQL document.");
3294
- ie.set(t, tn(en(n)));
3294
+ re.set(t, tn(en(n)));
3295
3295
  }
3296
- return ie.get(t);
3296
+ return re.get(t);
3297
3297
  }
3298
3298
  function T(e) {
3299
3299
  for (var t = [], n = 1; n < arguments.length; n++)
3300
3300
  t[n - 1] = arguments[n];
3301
3301
  typeof e == "string" && (e = [e]);
3302
- var r = e[0];
3303
- return t.forEach(function(i, s) {
3304
- i && i.kind === "Document" ? r += i.loc.source.body : r += i, r += e[s + 1];
3305
- }), nn(r);
3302
+ var i = e[0];
3303
+ return t.forEach(function(r, s) {
3304
+ r && r.kind === "Document" ? i += r.loc.source.body : i += r, i += e[s + 1];
3305
+ }), nn(i);
3306
3306
  }
3307
3307
  function rn() {
3308
- ie.clear(), Ee.clear();
3308
+ re.clear(), Ee.clear();
3309
3309
  }
3310
3310
  function sn() {
3311
3311
  $e = !1;
@@ -3413,7 +3413,7 @@ const un = T`
3413
3413
  }
3414
3414
  }
3415
3415
  }
3416
- `, hn = T`
3416
+ `, pn = T`
3417
3417
  query GetLocations($first: Int, $after: String, $filter: LocationFilter, $isReverse: Boolean! = false) {
3418
3418
  locations(first: $first, after: $after, filter: $filter, isReverse: $isReverse) {
3419
3419
  nodes {
@@ -3444,7 +3444,7 @@ const un = T`
3444
3444
  }
3445
3445
  }
3446
3446
  }
3447
- `, pn = T`
3447
+ `, hn = T`
3448
3448
  query GetPurchasingCustomerDiscounts($first: Int, $after: String, $isReverse: Boolean! = false) {
3449
3449
  purchasingCustomer {
3450
3450
  id
@@ -3582,13 +3582,20 @@ const un = T`
3582
3582
  }
3583
3583
  }
3584
3584
  `, Cn = T`
3585
+ query GetPurchasingCustomerBarcode {
3586
+ purchasingCustomer {
3587
+ id
3588
+ barcode
3589
+ }
3590
+ }
3591
+ `, yn = T`
3585
3592
  query GetSharingPurchasingCustomerCount {
3586
3593
  purchasingCustomer {
3587
3594
  id
3588
3595
  sharingPurchasingCustomerCount
3589
3596
  }
3590
3597
  }
3591
- `, yn = T`
3598
+ `, En = T`
3592
3599
  query GetPurchasingCustomerSharing {
3593
3600
  purchasingCustomer {
3594
3601
  id
@@ -3605,7 +3612,7 @@ const un = T`
3605
3612
  }
3606
3613
  }
3607
3614
  }
3608
- `, En = T`
3615
+ `, An = T`
3609
3616
  query GetProduct($id: String!, $first: Int, $after: String, $isReverse: Boolean! = false, $sortKeys: ProductVariantSortKeys! = CREATED_AT) {
3610
3617
  productByProductShopifyLegacyResourceID(productShopifyLegacyResourceID: $id) {
3611
3618
  id
@@ -3637,14 +3644,14 @@ const un = T`
3637
3644
  }
3638
3645
  }
3639
3646
  }
3640
- `, An = T`
3647
+ `, vn = T`
3641
3648
  query GetHasBackOrderProductVariantsByProductShopifyLegacyResourceID($id: String!) {
3642
3649
  productByProductShopifyLegacyResourceID(productShopifyLegacyResourceID: $id) {
3643
3650
  id
3644
3651
  hasBackOrderProductVariants
3645
3652
  }
3646
3653
  }
3647
- `, vn = T`
3654
+ `, Tn = T`
3648
3655
  query GetPointCampaignOrderRuleTargetCustomerRank {
3649
3656
  pointCampaignOrderRuleTargetCustomerRank {
3650
3657
  pointCampaignOrderRule {
@@ -3657,7 +3664,7 @@ const un = T`
3657
3664
  fixedPoint
3658
3665
  }
3659
3666
  }
3660
- `, Tn = T`
3667
+ `, In = T`
3661
3668
  query GetEstimatedShopifyCartPoint($input: EstimatedShopifyCartPointInput!) {
3662
3669
  estimatedShopifyCartPoint(input: $input) {
3663
3670
  pointsEarning
@@ -3673,7 +3680,7 @@ const un = T`
3673
3680
  }
3674
3681
  }
3675
3682
  }
3676
- `, In = T`
3683
+ `, Pn = T`
3677
3684
  query GetEstimatedShopifyCartLineItemPoint($input: EstimatedShopifyCartLineItemPointInput!) {
3678
3685
  estimatedShopifyCartLineItemPoint(input: $input) {
3679
3686
  pointsEarning
@@ -3697,7 +3704,7 @@ const un = T`
3697
3704
  smsVerifiedPhone
3698
3705
  }
3699
3706
  }
3700
- `, Rn = T`
3707
+ `, On = T`
3701
3708
  mutation PurchasingCustomerSendCustomerSharingActivationCode {
3702
3709
  purchasingCustomerSendCustomerSharingActivationCode {
3703
3710
  purchasingCustomer {
@@ -3713,7 +3720,7 @@ const un = T`
3713
3720
  }
3714
3721
  }
3715
3722
  }
3716
- `, On = T`
3723
+ `, Rn = T`
3717
3724
  mutation PurchasingCustomerActivateCustomerSharing($email: String!, $activationCode: String!) {
3718
3725
  purchasingCustomerActivateCustomerSharing(
3719
3726
  input: {email: $email, activationCode: $activationCode}
@@ -3734,7 +3741,7 @@ const un = T`
3734
3741
  miles
3735
3742
  }
3736
3743
  }
3737
- `, Pn = T`
3744
+ `, Dn = T`
3738
3745
  query GetPurchasingCustomerMileChangeActivities($first: Int, $after: String, $isReverse: Boolean! = false, $sortKeys: MileChangeActivitySortKey! = CREATED_AT) {
3739
3746
  purchasingCustomer {
3740
3747
  id
@@ -3763,7 +3770,7 @@ const un = T`
3763
3770
  }
3764
3771
  }
3765
3772
  }
3766
- `, Dn = T`
3773
+ `, Nn = T`
3767
3774
  query GetMileItems($first: Int, $after: String, $isReverse: Boolean! = false, $sortKeys: ShopifyMileItemSortKey! = CREATED_AT) {
3768
3775
  mileItems(
3769
3776
  first: $first
@@ -3791,7 +3798,7 @@ const un = T`
3791
3798
  }
3792
3799
  }
3793
3800
  }
3794
- `, Nn = T`
3801
+ `, bn = T`
3795
3802
  query GetMileOrders($first: Int, $after: String, $isReverse: Boolean! = false, $sortKeys: MileOrderSortKey! = CREATED_AT) {
3796
3803
  purchasingCustomer {
3797
3804
  id
@@ -3828,7 +3835,77 @@ const un = T`
3828
3835
  }
3829
3836
  }
3830
3837
  }
3831
- `, bn = T`
3838
+ `, kn = T`
3839
+ query GetPurchasingCustomerRetailOrders($first: Int, $after: String, $isReverse: Boolean! = false, $sortKeys: RetailOrderSortKey! = CREATED_AT) {
3840
+ purchasingCustomer {
3841
+ retailOrders(
3842
+ first: $first
3843
+ after: $after
3844
+ isReverse: $isReverse
3845
+ sortKeys: $sortKeys
3846
+ ) {
3847
+ nodes {
3848
+ id
3849
+ managementCode
3850
+ source
3851
+ purchasedAt
3852
+ fulfilledAt
3853
+ isCancelled
3854
+ cancelledAt
3855
+ tags
3856
+ paymentStatus
3857
+ retailLocation {
3858
+ id
3859
+ name
3860
+ displayName
3861
+ }
3862
+ totalQuantity
3863
+ currentTotalQuantity
3864
+ pointApplicationPrice {
3865
+ amount
3866
+ currencyCode
3867
+ }
3868
+ currentPointApplicationPrice {
3869
+ amount
3870
+ currencyCode
3871
+ }
3872
+ totalOrderDiscountPrice {
3873
+ amount
3874
+ currencyCode
3875
+ }
3876
+ subtotalPrice {
3877
+ amount
3878
+ currencyCode
3879
+ }
3880
+ totalTaxPrice {
3881
+ amount
3882
+ currencyCode
3883
+ }
3884
+ currentTotalTaxPrice {
3885
+ amount
3886
+ currencyCode
3887
+ }
3888
+ currentSubtotalPrice {
3889
+ amount
3890
+ currencyCode
3891
+ }
3892
+ totalPrice {
3893
+ amount
3894
+ currencyCode
3895
+ }
3896
+ createdAt
3897
+ updatedAt
3898
+ }
3899
+ pageInfo {
3900
+ startCursor
3901
+ endCursor
3902
+ hasNextPage
3903
+ hasPreviousPage
3904
+ }
3905
+ }
3906
+ }
3907
+ }
3908
+ `, _n = T`
3832
3909
  mutation MileItemExchange($mileItemID: ID!) {
3833
3910
  mileItemExchange(input: {mileItemID: $mileItemID}) {
3834
3911
  mileOrder {
@@ -3851,7 +3928,7 @@ const un = T`
3851
3928
  }
3852
3929
  }
3853
3930
  }
3854
- `, kn = T`
3931
+ `, Ln = T`
3855
3932
  mutation PurchasingCustomerSendSMSVerificationCode($phone: String!) {
3856
3933
  purchasingCustomerSendSMSVerificationCode(input: {phone: $phone}) {
3857
3934
  purchasingCustomer {
@@ -3861,7 +3938,7 @@ const un = T`
3861
3938
  }
3862
3939
  }
3863
3940
  }
3864
- `, _n = T`
3941
+ `, wn = T`
3865
3942
  mutation PurchasingCustomerVerifySMS($phone: String!, $verificationCode: String!) {
3866
3943
  purchasingCustomerVerifySMS(
3867
3944
  input: {phone: $phone, verificationCode: $verificationCode}
@@ -3873,7 +3950,7 @@ const un = T`
3873
3950
  }
3874
3951
  }
3875
3952
  }
3876
- `, Ln = T`
3953
+ `, Mn = T`
3877
3954
  mutation DiscountUsageCreate($orderPriceAdjustmentRuleID: ID!) {
3878
3955
  shopifyOrderPriceAdjustmentUsageCreate(
3879
3956
  input: {orderPriceAdjustmentRuleID: $orderPriceAdjustmentRuleID}
@@ -3883,97 +3960,103 @@ const un = T`
3883
3960
  }
3884
3961
  }
3885
3962
  }
3886
- `, wn = (e, t, n, r) => e();
3887
- function Mn(e, t = wn) {
3963
+ `, qn = (e, t, n, i) => e();
3964
+ function Fn(e, t = qn) {
3888
3965
  return {
3889
- GetLocationAvailabilities(n, r, i) {
3890
- return t((s) => e.request({ document: un, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "GetLocationAvailabilities", "query", n);
3966
+ GetLocationAvailabilities(n, i, r) {
3967
+ return t((s) => e.request({ document: un, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetLocationAvailabilities", "query", n);
3968
+ },
3969
+ GetLocationAvailability(n, i, r) {
3970
+ return t((s) => e.request({ document: cn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetLocationAvailability", "query", n);
3891
3971
  },
3892
- GetLocationAvailability(n, r, i) {
3893
- return t((s) => e.request({ document: cn, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "GetLocationAvailability", "query", n);
3972
+ GetPurchasingCustomerMetafield(n, i, r) {
3973
+ return t((s) => e.request({ document: dn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetPurchasingCustomerMetafield", "query", n);
3894
3974
  },
3895
- GetPurchasingCustomerMetafield(n, r, i) {
3896
- return t((s) => e.request({ document: dn, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "GetPurchasingCustomerMetafield", "query", n);
3975
+ GetPoints(n, i, r) {
3976
+ return t((s) => e.request({ document: ln, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetPoints", "query", n);
3897
3977
  },
3898
- GetPoints(n, r, i) {
3899
- return t((s) => e.request({ document: ln, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "GetPoints", "query", n);
3978
+ GetLocations(n, i, r) {
3979
+ return t((s) => e.request({ document: pn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetLocations", "query", n);
3900
3980
  },
3901
- GetLocations(n, r, i) {
3902
- return t((s) => e.request({ document: hn, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "GetLocations", "query", n);
3981
+ GetPurchasingCustomerDiscounts(n, i, r) {
3982
+ return t((s) => e.request({ document: hn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetPurchasingCustomerDiscounts", "query", n);
3903
3983
  },
3904
- GetPurchasingCustomerDiscounts(n, r, i) {
3905
- return t((s) => e.request({ document: pn, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "GetPurchasingCustomerDiscounts", "query", n);
3984
+ GetPurchasingCustomerDiscountCodeCount(n, i, r) {
3985
+ return t((s) => e.request({ document: mn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetPurchasingCustomerDiscountCodeCount", "query", n);
3906
3986
  },
3907
- GetPurchasingCustomerDiscountCodeCount(n, r, i) {
3908
- return t((s) => e.request({ document: mn, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "GetPurchasingCustomerDiscountCodeCount", "query", n);
3987
+ GetPurchasingCustomerPointChangeActivities(n, i, r) {
3988
+ return t((s) => e.request({ document: fn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetPurchasingCustomerPointChangeActivities", "query", n);
3909
3989
  },
3910
- GetPurchasingCustomerPointChangeActivities(n, r, i) {
3911
- return t((s) => e.request({ document: fn, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "GetPurchasingCustomerPointChangeActivities", "query", n);
3990
+ GetPurchasingCustomerRank(n, i, r) {
3991
+ return t((s) => e.request({ document: gn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetPurchasingCustomerRank", "query", n);
3912
3992
  },
3913
- GetPurchasingCustomerRank(n, r, i) {
3914
- return t((s) => e.request({ document: gn, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "GetPurchasingCustomerRank", "query", n);
3993
+ GetPurchasingCustomerBarcode(n, i, r) {
3994
+ return t((s) => e.request({ document: Cn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetPurchasingCustomerBarcode", "query", n);
3915
3995
  },
3916
- GetSharingPurchasingCustomerCount(n, r, i) {
3917
- return t((s) => e.request({ document: Cn, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "GetSharingPurchasingCustomerCount", "query", n);
3996
+ GetSharingPurchasingCustomerCount(n, i, r) {
3997
+ return t((s) => e.request({ document: yn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetSharingPurchasingCustomerCount", "query", n);
3918
3998
  },
3919
- GetPurchasingCustomerSharing(n, r, i) {
3920
- return t((s) => e.request({ document: yn, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "GetPurchasingCustomerSharing", "query", n);
3999
+ GetPurchasingCustomerSharing(n, i, r) {
4000
+ return t((s) => e.request({ document: En, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetPurchasingCustomerSharing", "query", n);
3921
4001
  },
3922
- GetProduct(n, r, i) {
3923
- return t((s) => e.request({ document: En, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "GetProduct", "query", n);
4002
+ GetProduct(n, i, r) {
4003
+ return t((s) => e.request({ document: An, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetProduct", "query", n);
3924
4004
  },
3925
- GetHasBackOrderProductVariantsByProductShopifyLegacyResourceID(n, r, i) {
3926
- return t((s) => e.request({ document: An, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "GetHasBackOrderProductVariantsByProductShopifyLegacyResourceID", "query", n);
4005
+ GetHasBackOrderProductVariantsByProductShopifyLegacyResourceID(n, i, r) {
4006
+ return t((s) => e.request({ document: vn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetHasBackOrderProductVariantsByProductShopifyLegacyResourceID", "query", n);
3927
4007
  },
3928
- GetPointCampaignOrderRuleTargetCustomerRank(n, r, i) {
3929
- return t((s) => e.request({ document: vn, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "GetPointCampaignOrderRuleTargetCustomerRank", "query", n);
4008
+ GetPointCampaignOrderRuleTargetCustomerRank(n, i, r) {
4009
+ return t((s) => e.request({ document: Tn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetPointCampaignOrderRuleTargetCustomerRank", "query", n);
3930
4010
  },
3931
- GetEstimatedShopifyCartPoint(n, r, i) {
3932
- return t((s) => e.request({ document: Tn, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "GetEstimatedShopifyCartPoint", "query", n);
4011
+ GetEstimatedShopifyCartPoint(n, i, r) {
4012
+ return t((s) => e.request({ document: In, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetEstimatedShopifyCartPoint", "query", n);
3933
4013
  },
3934
- GetEstimatedShopifyCartLineItemPoint(n, r, i) {
3935
- return t((s) => e.request({ document: In, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "GetEstimatedShopifyCartLineItemPoint", "query", n);
4014
+ GetEstimatedShopifyCartLineItemPoint(n, i, r) {
4015
+ return t((s) => e.request({ document: Pn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetEstimatedShopifyCartLineItemPoint", "query", n);
3936
4016
  },
3937
- GetPurchasingCustomerSMS(n, r, i) {
3938
- return t((s) => e.request({ document: Sn, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "GetPurchasingCustomerSMS", "query", n);
4017
+ GetPurchasingCustomerSMS(n, i, r) {
4018
+ return t((s) => e.request({ document: Sn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetPurchasingCustomerSMS", "query", n);
3939
4019
  },
3940
- PurchasingCustomerSendCustomerSharingActivationCode(n, r, i) {
3941
- return t((s) => e.request({ document: Rn, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "PurchasingCustomerSendCustomerSharingActivationCode", "mutation", n);
4020
+ PurchasingCustomerSendCustomerSharingActivationCode(n, i, r) {
4021
+ return t((s) => e.request({ document: On, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "PurchasingCustomerSendCustomerSharingActivationCode", "mutation", n);
3942
4022
  },
3943
- PurchasingCustomerActivateCustomerSharing(n, r, i) {
3944
- return t((s) => e.request({ document: On, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "PurchasingCustomerActivateCustomerSharing", "mutation", n);
4023
+ PurchasingCustomerActivateCustomerSharing(n, i, r) {
4024
+ return t((s) => e.request({ document: Rn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "PurchasingCustomerActivateCustomerSharing", "mutation", n);
3945
4025
  },
3946
- GetMiles(n, r, i) {
3947
- return t((s) => e.request({ document: xn, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "GetMiles", "query", n);
4026
+ GetMiles(n, i, r) {
4027
+ return t((s) => e.request({ document: xn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetMiles", "query", n);
3948
4028
  },
3949
- GetPurchasingCustomerMileChangeActivities(n, r, i) {
3950
- return t((s) => e.request({ document: Pn, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "GetPurchasingCustomerMileChangeActivities", "query", n);
4029
+ GetPurchasingCustomerMileChangeActivities(n, i, r) {
4030
+ return t((s) => e.request({ document: Dn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetPurchasingCustomerMileChangeActivities", "query", n);
3951
4031
  },
3952
- GetMileItems(n, r, i) {
3953
- return t((s) => e.request({ document: Dn, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "GetMileItems", "query", n);
4032
+ GetMileItems(n, i, r) {
4033
+ return t((s) => e.request({ document: Nn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetMileItems", "query", n);
3954
4034
  },
3955
- GetMileOrders(n, r, i) {
3956
- return t((s) => e.request({ document: Nn, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "GetMileOrders", "query", n);
4035
+ GetMileOrders(n, i, r) {
4036
+ return t((s) => e.request({ document: bn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetMileOrders", "query", n);
3957
4037
  },
3958
- MileItemExchange(n, r, i) {
3959
- return t((s) => e.request({ document: bn, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "MileItemExchange", "mutation", n);
4038
+ GetPurchasingCustomerRetailOrders(n, i, r) {
4039
+ return t((s) => e.request({ document: kn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "GetPurchasingCustomerRetailOrders", "query", n);
3960
4040
  },
3961
- PurchasingCustomerSendSMSVerificationCode(n, r, i) {
3962
- return t((s) => e.request({ document: kn, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "PurchasingCustomerSendSMSVerificationCode", "mutation", n);
4041
+ MileItemExchange(n, i, r) {
4042
+ return t((s) => e.request({ document: _n, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "MileItemExchange", "mutation", n);
3963
4043
  },
3964
- PurchasingCustomerVerifySMS(n, r, i) {
3965
- return t((s) => e.request({ document: _n, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "PurchasingCustomerVerifySMS", "mutation", n);
4044
+ PurchasingCustomerSendSMSVerificationCode(n, i, r) {
4045
+ return t((s) => e.request({ document: Ln, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "PurchasingCustomerSendSMSVerificationCode", "mutation", n);
3966
4046
  },
3967
- DiscountUsageCreate(n, r, i) {
3968
- return t((s) => e.request({ document: Ln, variables: n, requestHeaders: { ...r, ...s }, signal: i }), "DiscountUsageCreate", "mutation", n);
4047
+ PurchasingCustomerVerifySMS(n, i, r) {
4048
+ return t((s) => e.request({ document: wn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "PurchasingCustomerVerifySMS", "mutation", n);
4049
+ },
4050
+ DiscountUsageCreate(n, i, r) {
4051
+ return t((s) => e.request({ document: Mn, variables: n, requestHeaders: { ...i, ...s }, signal: r }), "DiscountUsageCreate", "mutation", n);
3969
4052
  }
3970
4053
  };
3971
4054
  }
3972
- var qn = /* @__PURE__ */ ((e) => (e.Eur = "EUR", e.Jpy = "JPY", e.Usd = "USD", e))(qn || {}), Bn = /* @__PURE__ */ ((e) => (e.Retail = "RETAIL", e.Warehouse = "WAREHOUSE", e))(Bn || {});
3973
- class Un {
4055
+ var Bn = /* @__PURE__ */ ((e) => (e.Eur = "EUR", e.Jpy = "JPY", e.Usd = "USD", e))(Bn || {}), Gn = /* @__PURE__ */ ((e) => (e.Retail = "RETAIL", e.Warehouse = "WAREHOUSE", e))(Gn || {});
4056
+ class Vn {
3974
4057
  constructor(t) {
3975
- Se(this, "api");
3976
- this.api = Mn(
4058
+ Pe(this, "api");
4059
+ this.api = Fn(
3977
4060
  new Xt(`${t}/apps/sq-api`, {
3978
4061
  headers: {
3979
4062
  "X-SQ-CLIENT": "ShopifyAppProxy"
@@ -3989,12 +4072,12 @@ class Un {
3989
4072
  * @param {string} [after] ページングの値。指定しない場合先頭から取得してくる。
3990
4073
  * @param {boolean} [isReverse] 並び順。デフォルトはfalse。
3991
4074
  */
3992
- async getLocationAvailabilities(t, n, r, i) {
4075
+ async getLocationAvailabilities(t, n, i, r) {
3993
4076
  const s = await this.api.GetLocationAvailabilities({
3994
4077
  sku: t,
3995
4078
  first: n,
3996
- after: r,
3997
- isReverse: i
4079
+ after: i,
4080
+ isReverse: r
3998
4081
  });
3999
4082
  return {
4000
4083
  nodes: s.locationAvailabilities.nodes.map(
@@ -4029,27 +4112,27 @@ class Un {
4029
4112
  * @param {string} locationID 在庫情報を取得したいLocationのID。
4030
4113
  */
4031
4114
  async getLocationAvailability(t, n) {
4032
- const r = await this.api.GetLocationAvailability({ sku: t, locationID: n });
4115
+ const i = await this.api.GetLocationAvailability({ sku: t, locationID: n });
4033
4116
  return {
4034
4117
  location: {
4035
- id: r.locationAvailability.location.id,
4036
- name: r.locationAvailability.location.name,
4037
- phone: r.locationAvailability.location.phone,
4038
- mapURL: r.locationAvailability.location.mapURL,
4039
- tags: r.locationAvailability.location.tags,
4040
- address: r.locationAvailability.location.address ? {
4041
- id: r.locationAvailability.location.address.id,
4042
- countryCode: r.locationAvailability.location.address.countryCode,
4043
- country: r.locationAvailability.location.address.country,
4044
- postalCode: r.locationAvailability.location.address.postalCode,
4045
- provinceCode: r.locationAvailability.location.address.provinceCode,
4046
- province: r.locationAvailability.location.address.province,
4047
- city: r.locationAvailability.location.address.city,
4048
- address1: r.locationAvailability.location.address.address1,
4049
- address2: r.locationAvailability.location.address.address2
4118
+ id: i.locationAvailability.location.id,
4119
+ name: i.locationAvailability.location.name,
4120
+ phone: i.locationAvailability.location.phone,
4121
+ mapURL: i.locationAvailability.location.mapURL,
4122
+ tags: i.locationAvailability.location.tags,
4123
+ address: i.locationAvailability.location.address ? {
4124
+ id: i.locationAvailability.location.address.id,
4125
+ countryCode: i.locationAvailability.location.address.countryCode,
4126
+ country: i.locationAvailability.location.address.country,
4127
+ postalCode: i.locationAvailability.location.address.postalCode,
4128
+ provinceCode: i.locationAvailability.location.address.provinceCode,
4129
+ province: i.locationAvailability.location.address.province,
4130
+ city: i.locationAvailability.location.address.city,
4131
+ address1: i.locationAvailability.location.address.address1,
4132
+ address2: i.locationAvailability.location.address.address2
4050
4133
  } : void 0
4051
4134
  },
4052
- inventoryQuantity: r.locationAvailability.inventoryQuantity
4135
+ inventoryQuantity: i.locationAvailability.inventoryQuantity
4053
4136
  };
4054
4137
  }
4055
4138
  /**
@@ -4092,12 +4175,12 @@ class Un {
4092
4175
  * @param {LocationFilter} [locationFilter] ロケーションのロケーションのフィルタリング条件。
4093
4176
  * @param {boolean} [isReverse] 並び順。デフォルトはfalse。
4094
4177
  */
4095
- async getLocations(t, n, r, i) {
4178
+ async getLocations(t, n, i, r) {
4096
4179
  const s = await this.api.GetLocations({
4097
4180
  first: t,
4098
4181
  after: n,
4099
- filter: r,
4100
- isReverse: i
4182
+ filter: i,
4183
+ isReverse: r
4101
4184
  });
4102
4185
  return {
4103
4186
  nodes: s.locations.nodes.map((a) => ({
@@ -4129,15 +4212,15 @@ class Un {
4129
4212
  * @param {string} [after] ページングの値。指定しない場合先頭から取得してくる。
4130
4213
  * @param {boolean} [isReverse] 並び順。デフォルトはfalse。
4131
4214
  */
4132
- async getPurchasingCustomerDiscounts(t, n, r) {
4133
- const i = await this.api.GetPurchasingCustomerDiscounts({
4215
+ async getPurchasingCustomerDiscounts(t, n, i) {
4216
+ const r = await this.api.GetPurchasingCustomerDiscounts({
4134
4217
  first: t,
4135
4218
  after: n,
4136
- isReverse: r
4219
+ isReverse: i
4137
4220
  });
4138
- return i.purchasingCustomer ? {
4139
- id: i.purchasingCustomer.id,
4140
- nodes: i.purchasingCustomer.orderPriceAdjustmentRules.nodes.map(
4221
+ return r.purchasingCustomer ? {
4222
+ id: r.purchasingCustomer.id,
4223
+ nodes: r.purchasingCustomer.orderPriceAdjustmentRules.nodes.map(
4141
4224
  (s) => ({
4142
4225
  id: s.id,
4143
4226
  title: s.title,
@@ -4154,7 +4237,7 @@ class Un {
4154
4237
  updatedAt: new Date(s.updatedAt)
4155
4238
  })
4156
4239
  ) ?? [],
4157
- pageInfo: i.purchasingCustomer.orderPriceAdjustmentRules.pageInfo ?? null
4240
+ pageInfo: r.purchasingCustomer.orderPriceAdjustmentRules.pageInfo ?? null
4158
4241
  } : null;
4159
4242
  }
4160
4243
  /**
@@ -4165,12 +4248,12 @@ class Un {
4165
4248
  * @param {boolean} [isReverse] 並び順。デフォルトはfalse。
4166
4249
  * @param {PointChangeActivitySortKey} [sortKeys] ソートキー。CREATED_ATかPOINT_CHANGE_CREATED_ATを渡す。デフォルトはCREATED_AT。
4167
4250
  */
4168
- async getPointChangeActivities(t, n, r, i) {
4251
+ async getPointChangeActivities(t, n, i, r) {
4169
4252
  const s = await this.api.GetPurchasingCustomerPointChangeActivities({
4170
4253
  first: t,
4171
4254
  after: n,
4172
- isReverse: r,
4173
- sortKeys: i
4255
+ isReverse: i,
4256
+ sortKeys: r
4174
4257
  });
4175
4258
  return s.purchasingCustomer ? {
4176
4259
  nodes: s.purchasingCustomer.pointChangeActivities.nodes.map(
@@ -4289,23 +4372,23 @@ class Un {
4289
4372
  return (n = t.purchasingCustomer) != null && n.customerSharing ? {
4290
4373
  id: t.purchasingCustomer.customerSharing.id,
4291
4374
  purchasingCustomers: t.purchasingCustomer.customerSharing.purchasingCustomers.map(
4292
- (r) => ({
4293
- id: r.id,
4294
- sharingPurchasingCustomerCount: r.sharingPurchasingCustomerCount,
4375
+ (i) => ({
4376
+ id: i.id,
4377
+ sharingPurchasingCustomerCount: i.sharingPurchasingCustomerCount,
4295
4378
  tenant: {
4296
- id: r.tenant.id,
4297
- name: r.tenant.name
4379
+ id: i.tenant.id,
4380
+ name: i.tenant.name
4298
4381
  }
4299
4382
  })
4300
4383
  )
4301
4384
  } : null;
4302
4385
  }
4303
- async getProduct(t, n, r, i, s) {
4386
+ async getProduct(t, n, i, r, s) {
4304
4387
  const a = await this.api.GetProduct({
4305
4388
  id: t,
4306
4389
  first: n,
4307
- after: r,
4308
- isReverse: i,
4390
+ after: i,
4391
+ isReverse: r,
4309
4392
  sortKeys: s
4310
4393
  });
4311
4394
  return a.productByProductShopifyLegacyResourceID ? {
@@ -4356,35 +4439,35 @@ class Un {
4356
4439
  fixedPoint: t.pointCampaignOrderRuleTargetCustomerRank.fixedPoint ? t.pointCampaignOrderRuleTargetCustomerRank.fixedPoint : void 0
4357
4440
  } : null;
4358
4441
  }
4359
- async getEstimatedShopifyCartPoint(t, n, r) {
4360
- const i = await this.api.GetEstimatedShopifyCartPoint({
4442
+ async getEstimatedShopifyCartPoint(t, n, i) {
4443
+ const r = await this.api.GetEstimatedShopifyCartPoint({
4361
4444
  input: {
4362
4445
  currencyCode: t,
4363
4446
  taxesIncluded: n,
4364
- lineItems: r
4447
+ lineItems: i
4365
4448
  }
4366
4449
  });
4367
- return i.estimatedShopifyCartPoint ? {
4368
- pointsEarning: i.estimatedShopifyCartPoint.pointsEarning,
4369
- totalPointsEarning: i.estimatedShopifyCartPoint.totalPointsEarning,
4370
- pointCampaign: i.estimatedShopifyCartPoint.pointCampaign ? {
4371
- pointsEarning: i.estimatedShopifyCartPoint.pointCampaign.pointsEarning,
4450
+ return r.estimatedShopifyCartPoint ? {
4451
+ pointsEarning: r.estimatedShopifyCartPoint.pointsEarning,
4452
+ totalPointsEarning: r.estimatedShopifyCartPoint.totalPointsEarning,
4453
+ pointCampaign: r.estimatedShopifyCartPoint.pointCampaign ? {
4454
+ pointsEarning: r.estimatedShopifyCartPoint.pointCampaign.pointsEarning,
4372
4455
  pointCampaignOrderRule: {
4373
- id: i.estimatedShopifyCartPoint.pointCampaign.pointCampaignOrderRule.id,
4374
- title: i.estimatedShopifyCartPoint.pointCampaign.pointCampaignOrderRule.title,
4375
- pointMethod: i.estimatedShopifyCartPoint.pointCampaign.pointCampaignOrderRule.pointMethod,
4376
- targetType: i.estimatedShopifyCartPoint.pointCampaign.pointCampaignOrderRule.targetType
4456
+ id: r.estimatedShopifyCartPoint.pointCampaign.pointCampaignOrderRule.id,
4457
+ title: r.estimatedShopifyCartPoint.pointCampaign.pointCampaignOrderRule.title,
4458
+ pointMethod: r.estimatedShopifyCartPoint.pointCampaign.pointCampaignOrderRule.pointMethod,
4459
+ targetType: r.estimatedShopifyCartPoint.pointCampaign.pointCampaignOrderRule.targetType
4377
4460
  }
4378
4461
  } : void 0
4379
4462
  } : null;
4380
4463
  }
4381
- async getEstimatedShopifyCartLineItemPoint(t, n, r, i, s) {
4464
+ async getEstimatedShopifyCartLineItemPoint(t, n, i, r, s) {
4382
4465
  const a = await this.api.GetEstimatedShopifyCartLineItemPoint({
4383
4466
  input: {
4384
4467
  currencyCode: t,
4385
4468
  taxesIncluded: n,
4386
- sku: r,
4387
- quantity: i,
4469
+ sku: i,
4470
+ quantity: r,
4388
4471
  unitPrice: s
4389
4472
  }
4390
4473
  });
@@ -4427,16 +4510,16 @@ class Un {
4427
4510
  throw new Error(
4428
4511
  `Invalid activation code: ${n} is not 6 characters.`
4429
4512
  );
4430
- const r = await this.api.PurchasingCustomerActivateCustomerSharing({
4513
+ const i = await this.api.PurchasingCustomerActivateCustomerSharing({
4431
4514
  email: t,
4432
4515
  activationCode: n
4433
4516
  });
4434
- return r.purchasingCustomerActivateCustomerSharing ? {
4435
- id: r.purchasingCustomerActivateCustomerSharing.purchasingCustomer.id,
4436
- sharingPurchasingCustomerCount: r.purchasingCustomerActivateCustomerSharing.purchasingCustomer.sharingPurchasingCustomerCount,
4517
+ return i.purchasingCustomerActivateCustomerSharing ? {
4518
+ id: i.purchasingCustomerActivateCustomerSharing.purchasingCustomer.id,
4519
+ sharingPurchasingCustomerCount: i.purchasingCustomerActivateCustomerSharing.purchasingCustomer.sharingPurchasingCustomerCount,
4437
4520
  tenant: {
4438
- id: r.purchasingCustomerActivateCustomerSharing.purchasingCustomer.tenant.id,
4439
- name: r.purchasingCustomerActivateCustomerSharing.purchasingCustomer.tenant.name
4521
+ id: i.purchasingCustomerActivateCustomerSharing.purchasingCustomer.tenant.id,
4522
+ name: i.purchasingCustomerActivateCustomerSharing.purchasingCustomer.tenant.name
4440
4523
  }
4441
4524
  } : null;
4442
4525
  }
@@ -4457,12 +4540,12 @@ class Un {
4457
4540
  * @param {boolean} [isReverse] 並び順。デフォルトはfalse。
4458
4541
  * @param {MileChangeActivitySortKey} [sortKeys] ソートキー。CREATED_ATかMILE_CHANGE_CREATED_ATを渡す。デフォルトはCREATED_AT。
4459
4542
  */
4460
- async getMileChangeActivities(t, n, r, i) {
4543
+ async getMileChangeActivities(t, n, i, r) {
4461
4544
  const s = await this.api.GetPurchasingCustomerMileChangeActivities({
4462
4545
  first: t,
4463
4546
  after: n,
4464
- isReverse: r,
4465
- sortKeys: i
4547
+ isReverse: i,
4548
+ sortKeys: r
4466
4549
  });
4467
4550
  return s.purchasingCustomer ? {
4468
4551
  nodes: s.purchasingCustomer.mileChangeActivities.nodes.map(
@@ -4490,12 +4573,12 @@ class Un {
4490
4573
  * @param {boolean} [isReverse] 並び順。デフォルトはfalse。
4491
4574
  * @param {ShopifyMileItemSortKey} [sortKeys] ソートキー。デフォルトはCREATED_AT。
4492
4575
  */
4493
- async getMileItems(t, n, r, i) {
4576
+ async getMileItems(t, n, i, r) {
4494
4577
  const s = await this.api.GetMileItems({
4495
4578
  first: t,
4496
4579
  after: n,
4497
- isReverse: r,
4498
- sortKeys: i
4580
+ isReverse: i,
4581
+ sortKeys: r
4499
4582
  });
4500
4583
  return s.mileItems ? {
4501
4584
  nodes: s.mileItems.nodes.map((a) => ({
@@ -4521,12 +4604,12 @@ class Un {
4521
4604
  * @param {boolean} [isReverse] 並び順。デフォルトはfalse。
4522
4605
  * @param {MileOrderSortKey} [sortKeys] ソートキー。デフォルトはCREATED_AT。
4523
4606
  */
4524
- async getMileOrders(t, n, r, i) {
4607
+ async getMileOrders(t, n, i, r) {
4525
4608
  const s = await this.api.GetMileOrders({
4526
4609
  first: t,
4527
4610
  after: n,
4528
- isReverse: r,
4529
- sortKeys: i
4611
+ isReverse: i,
4612
+ sortKeys: r
4530
4613
  });
4531
4614
  return s.purchasingCustomer ? {
4532
4615
  nodes: s.purchasingCustomer.mileOrders.nodes.map(
@@ -4563,6 +4646,89 @@ class Un {
4563
4646
  smsVerified: t.purchasingCustomer.smsVerified
4564
4647
  } : null;
4565
4648
  }
4649
+ /**
4650
+ * getPurchasingCustomerBarcode は顧客の会員証バーコード情報を返します。
4651
+ */
4652
+ async getPurchasingCustomerBarcode() {
4653
+ const t = await this.api.GetPurchasingCustomerBarcode();
4654
+ return t.purchasingCustomer ? {
4655
+ id: t.purchasingCustomer.id,
4656
+ barcode: t.purchasingCustomer.barcode
4657
+ } : null;
4658
+ }
4659
+ /**
4660
+ * getPurchasingCustomerRetailOrders は顧客の店舗受取注文一覧を取得します。
4661
+ * @param first 取得する注文数の上限
4662
+ * @param after ページネーション用のカーソル
4663
+ * @param isReverse 並び順を逆にするかどうか
4664
+ * @param sortKeys ソートキー
4665
+ * @returns 顧客の店舗受取注文一覧、または顧客が存在しない場合はnull
4666
+ */
4667
+ async getPurchasingCustomerRetailOrders(t, n, i, r) {
4668
+ const s = await this.api.GetPurchasingCustomerRetailOrders({
4669
+ first: t,
4670
+ after: n,
4671
+ isReverse: i,
4672
+ sortKeys: r
4673
+ });
4674
+ return s.purchasingCustomer ? {
4675
+ nodes: s.purchasingCustomer.retailOrders.nodes.map(
4676
+ (a) => ({
4677
+ id: a.id,
4678
+ managementCode: a.managementCode,
4679
+ source: a.source,
4680
+ purchasedAt: new Date(a.purchasedAt),
4681
+ fulfilledAt: a.fulfilledAt ? new Date(a.fulfilledAt) : null,
4682
+ isCancelled: a.isCancelled,
4683
+ cancelledAt: a.cancelledAt ? new Date(a.cancelledAt) : null,
4684
+ tags: a.tags,
4685
+ paymentStatus: a.paymentStatus,
4686
+ retailLocation: {
4687
+ id: a.retailLocation.id,
4688
+ name: a.retailLocation.name,
4689
+ displayName: a.retailLocation.displayName
4690
+ },
4691
+ totalQuantity: a.totalQuantity,
4692
+ currentTotalQuantity: a.currentTotalQuantity,
4693
+ pointApplicationPrice: {
4694
+ amount: parseFloat(a.pointApplicationPrice.amount),
4695
+ currencyCode: a.pointApplicationPrice.currencyCode
4696
+ },
4697
+ currentPointApplicationPrice: {
4698
+ amount: parseFloat(a.currentPointApplicationPrice.amount),
4699
+ currencyCode: a.currentPointApplicationPrice.currencyCode
4700
+ },
4701
+ totalOrderDiscountPrice: {
4702
+ amount: parseFloat(a.totalOrderDiscountPrice.amount),
4703
+ currencyCode: a.totalOrderDiscountPrice.currencyCode
4704
+ },
4705
+ subtotalPrice: {
4706
+ amount: parseFloat(a.subtotalPrice.amount),
4707
+ currencyCode: a.subtotalPrice.currencyCode
4708
+ },
4709
+ totalTaxPrice: {
4710
+ amount: parseFloat(a.totalTaxPrice.amount),
4711
+ currencyCode: a.totalTaxPrice.currencyCode
4712
+ },
4713
+ currentTotalTaxPrice: {
4714
+ amount: parseFloat(a.currentTotalTaxPrice.amount),
4715
+ currencyCode: a.currentTotalTaxPrice.currencyCode
4716
+ },
4717
+ currentSubtotalPrice: {
4718
+ amount: parseFloat(a.currentSubtotalPrice.amount),
4719
+ currencyCode: a.currentSubtotalPrice.currencyCode
4720
+ },
4721
+ totalPrice: {
4722
+ amount: parseFloat(a.totalPrice.amount),
4723
+ currencyCode: a.totalPrice.currencyCode
4724
+ },
4725
+ createdAt: new Date(a.createdAt),
4726
+ updatedAt: new Date(a.updatedAt)
4727
+ })
4728
+ ),
4729
+ pageInfo: s.purchasingCustomer.retailOrders.pageInfo
4730
+ } : null;
4731
+ }
4566
4732
  /**
4567
4733
  * mileItemExchange は指定したマイル商品を交換します。
4568
4734
  *
@@ -4599,14 +4765,14 @@ class Un {
4599
4765
  * @param {string} phone SMS認証コードを送信する電話番号
4600
4766
  */
4601
4767
  async purchasingCustomerSendSMSVerificationCode(t) {
4602
- var i;
4603
- const r = (i = (await this.api.PurchasingCustomerSendSMSVerificationCode({
4768
+ var r;
4769
+ const i = (r = (await this.api.PurchasingCustomerSendSMSVerificationCode({
4604
4770
  phone: t
4605
- })).purchasingCustomerSendSMSVerificationCode) == null ? void 0 : i.purchasingCustomer;
4606
- return r ? {
4607
- id: r.id,
4608
- smsVerifiedPhone: r.smsVerifiedPhone,
4609
- smsVerified: r.smsVerified
4771
+ })).purchasingCustomerSendSMSVerificationCode) == null ? void 0 : r.purchasingCustomer;
4772
+ return i ? {
4773
+ id: i.id,
4774
+ smsVerifiedPhone: i.smsVerifiedPhone,
4775
+ smsVerified: i.smsVerified
4610
4776
  } : null;
4611
4777
  }
4612
4778
  /**
@@ -4617,14 +4783,14 @@ class Un {
4617
4783
  */
4618
4784
  async purchasingCustomerVerifySMS(t, n) {
4619
4785
  var s;
4620
- const i = (s = (await this.api.PurchasingCustomerVerifySMS({
4786
+ const r = (s = (await this.api.PurchasingCustomerVerifySMS({
4621
4787
  phone: t,
4622
4788
  verificationCode: n
4623
4789
  })).purchasingCustomerVerifySMS) == null ? void 0 : s.purchasingCustomer;
4624
- return i ? {
4625
- id: i.id,
4626
- smsVerifiedPhone: i.smsVerifiedPhone,
4627
- smsVerified: i.smsVerified
4790
+ return r ? {
4791
+ id: r.id,
4792
+ smsVerifiedPhone: r.smsVerifiedPhone,
4793
+ smsVerified: r.smsVerified
4628
4794
  } : null;
4629
4795
  }
4630
4796
  /**
@@ -4633,15 +4799,15 @@ class Un {
4633
4799
  * @param {string} orderPriceAdjustmentRuleID 利用する注文価格調整ルールのID
4634
4800
  */
4635
4801
  async DiscountUsageCreate(t) {
4636
- var r;
4802
+ var i;
4637
4803
  const n = await this.api.DiscountUsageCreate({
4638
4804
  orderPriceAdjustmentRuleID: t
4639
4805
  });
4640
- return (r = n == null ? void 0 : n.shopifyOrderPriceAdjustmentUsageCreate) != null && r.orderPriceAdjustmentRule ? n.shopifyOrderPriceAdjustmentUsageCreate.orderPriceAdjustmentRule : null;
4806
+ return (i = n == null ? void 0 : n.shopifyOrderPriceAdjustmentUsageCreate) != null && i.orderPriceAdjustmentRule ? n.shopifyOrderPriceAdjustmentUsageCreate.orderPriceAdjustmentRule : null;
4641
4807
  }
4642
4808
  }
4643
4809
  export {
4644
- qn as CurrencyCode,
4645
- Bn as LocationType,
4646
- Un as SDK
4810
+ Bn as CurrencyCode,
4811
+ Gn as LocationType,
4812
+ Vn as SDK
4647
4813
  };