@0no-co/graphql.web 0.0.0-canary-20230320141923

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.
@@ -0,0 +1,873 @@
1
+ Object.defineProperty(exports, "__esModule", {
2
+ value: !0
3
+ });
4
+
5
+ class GraphQLError extends Error {
6
+ constructor(e, r, i, n, t, a, o) {
7
+ super(e);
8
+ this.name = "GraphQLError";
9
+ this.message = e;
10
+ if (t) {
11
+ this.path = t;
12
+ }
13
+ if (r) {
14
+ this.nodes = Array.isArray(r) ? r : [ r ];
15
+ }
16
+ if (i) {
17
+ this.source = i;
18
+ }
19
+ if (n) {
20
+ this.positions = n;
21
+ }
22
+ if (a) {
23
+ this.originalError = a;
24
+ }
25
+ if (!o && a) {
26
+ var l = a.extensions;
27
+ if (l && "object" == typeof l) {
28
+ l;
29
+ }
30
+ }
31
+ this.extensions = o || {};
32
+ }
33
+ toJSON() {
34
+ return {
35
+ ...this
36
+ };
37
+ }
38
+ toString() {
39
+ return this.message;
40
+ }
41
+ get [Symbol.toStringTag]() {
42
+ return "GraphQLError";
43
+ }
44
+ }
45
+
46
+ var e;
47
+
48
+ var r;
49
+
50
+ function error(e) {
51
+ return new GraphQLError(`Syntax Error: Unexpected token at ${r} in ${e}`);
52
+ }
53
+
54
+ function advance(i) {
55
+ i.lastIndex = r;
56
+ if (i.test(e)) {
57
+ return e.slice(r, r = i.lastIndex);
58
+ }
59
+ }
60
+
61
+ var i = / +(?=[^\s])/y;
62
+
63
+ function blockString(e) {
64
+ var r = "";
65
+ var n = 0;
66
+ var t = 0;
67
+ var a = -1;
68
+ var o = e.split("\n");
69
+ for (var l = 0; l < o.length; l++) {
70
+ i.lastIndex = 0;
71
+ if (i.test(o[l])) {
72
+ if (l && (!n || i.lastIndex < n)) {
73
+ n = i.lastIndex;
74
+ }
75
+ t = t || l;
76
+ a = l;
77
+ }
78
+ }
79
+ for (var u = t; u <= a; u++) {
80
+ if (u !== t) {
81
+ r += "\n";
82
+ }
83
+ r += o[u].slice(n).replace(/\\"""/g, '"""');
84
+ }
85
+ return r;
86
+ }
87
+
88
+ var n = /(?:[\s,]*|#[^\n\r]*)*/y;
89
+
90
+ function ignored() {
91
+ n.lastIndex = r;
92
+ n.test(e);
93
+ r = n.lastIndex;
94
+ }
95
+
96
+ var t = /[_\w][_\d\w]*/y;
97
+
98
+ function name() {
99
+ var e;
100
+ if (e = advance(t)) {
101
+ return {
102
+ kind: "Name",
103
+ value: e
104
+ };
105
+ }
106
+ }
107
+
108
+ var a = /null|true|false/y;
109
+
110
+ var o = /\$[_\w][_\d\w]*/y;
111
+
112
+ var l = /[-]?\d+/y;
113
+
114
+ var u = /(?:[-]?\d+)?(?:\.\d+)(?:[eE][+-]?\d+)?/y;
115
+
116
+ var s = /\\/g;
117
+
118
+ var d = /"""(?:[\s\S]+(?="""))?"""/y;
119
+
120
+ var v = /"(?:[^"\r\n]+)?"/y;
121
+
122
+ function value(i) {
123
+ var n;
124
+ var c;
125
+ if (c = advance(a)) {
126
+ n = "null" === c ? {
127
+ kind: "NullValue"
128
+ } : {
129
+ kind: "BooleanValue",
130
+ value: "true" === c
131
+ };
132
+ } else if (!i && (c = advance(o))) {
133
+ n = {
134
+ kind: "Variable",
135
+ name: {
136
+ kind: "Name",
137
+ value: c.slice(1)
138
+ }
139
+ };
140
+ } else if (c = advance(u)) {
141
+ n = {
142
+ kind: "FloatValue",
143
+ value: c
144
+ };
145
+ } else if (c = advance(l)) {
146
+ n = {
147
+ kind: "IntValue",
148
+ value: c
149
+ };
150
+ } else if (c = advance(t)) {
151
+ n = {
152
+ kind: "EnumValue",
153
+ value: c
154
+ };
155
+ } else if (c = advance(d)) {
156
+ n = {
157
+ kind: "StringValue",
158
+ value: blockString(c.slice(3, -3)),
159
+ block: !0
160
+ };
161
+ } else if (c = advance(v)) {
162
+ n = {
163
+ kind: "StringValue",
164
+ value: s.test(c) ? JSON.parse(c) : c.slice(1, -1),
165
+ block: !1
166
+ };
167
+ } else if (n = function list(i) {
168
+ var n;
169
+ if (91 === e.charCodeAt(r)) {
170
+ r++;
171
+ ignored();
172
+ var t = [];
173
+ while (n = value(i)) {
174
+ t.push(n);
175
+ }
176
+ if (93 !== e.charCodeAt(r++)) {
177
+ throw error("ListValue");
178
+ }
179
+ ignored();
180
+ return {
181
+ kind: "ListValue",
182
+ values: t
183
+ };
184
+ }
185
+ }(i) || function object(i) {
186
+ if (123 === e.charCodeAt(r)) {
187
+ r++;
188
+ ignored();
189
+ var n = [];
190
+ var t;
191
+ while (t = name()) {
192
+ ignored();
193
+ if (58 !== e.charCodeAt(r++)) {
194
+ throw error("ObjectField");
195
+ }
196
+ ignored();
197
+ var a = value(i);
198
+ if (!a) {
199
+ throw error("ObjectField");
200
+ }
201
+ n.push({
202
+ kind: "ObjectField",
203
+ name: t,
204
+ value: a
205
+ });
206
+ }
207
+ if (125 !== e.charCodeAt(r++)) {
208
+ throw error("ObjectValue");
209
+ }
210
+ ignored();
211
+ return {
212
+ kind: "ObjectValue",
213
+ fields: n
214
+ };
215
+ }
216
+ }(i)) {
217
+ return n;
218
+ }
219
+ ignored();
220
+ return n;
221
+ }
222
+
223
+ function arguments_(i) {
224
+ var n = [];
225
+ ignored();
226
+ if (40 === e.charCodeAt(r)) {
227
+ r++;
228
+ ignored();
229
+ var t;
230
+ while (t = name()) {
231
+ ignored();
232
+ if (58 !== e.charCodeAt(r++)) {
233
+ throw error("Argument");
234
+ }
235
+ ignored();
236
+ var a = value(i);
237
+ if (!a) {
238
+ throw error("Argument");
239
+ }
240
+ n.push({
241
+ kind: "Argument",
242
+ name: t,
243
+ value: a
244
+ });
245
+ }
246
+ if (!n.length || 41 !== e.charCodeAt(r++)) {
247
+ throw error("Argument");
248
+ }
249
+ ignored();
250
+ }
251
+ return n;
252
+ }
253
+
254
+ function directives(i) {
255
+ var n = [];
256
+ ignored();
257
+ while (64 === e.charCodeAt(r)) {
258
+ r++;
259
+ var t = name();
260
+ if (!t) {
261
+ throw error("Directive");
262
+ }
263
+ ignored();
264
+ n.push({
265
+ kind: "Directive",
266
+ name: t,
267
+ arguments: arguments_(i)
268
+ });
269
+ }
270
+ return n;
271
+ }
272
+
273
+ function field() {
274
+ ignored();
275
+ var i = name();
276
+ if (i) {
277
+ ignored();
278
+ var n;
279
+ if (58 === e.charCodeAt(r)) {
280
+ r++;
281
+ ignored();
282
+ n = i;
283
+ if (!(i = name())) {
284
+ throw error("Field");
285
+ }
286
+ ignored();
287
+ }
288
+ return {
289
+ kind: "Field",
290
+ alias: n,
291
+ name: i,
292
+ arguments: arguments_(!1),
293
+ directives: directives(!1),
294
+ selectionSet: selectionSet()
295
+ };
296
+ }
297
+ }
298
+
299
+ function type() {
300
+ var i;
301
+ ignored();
302
+ if (91 === e.charCodeAt(r)) {
303
+ r++;
304
+ ignored();
305
+ var n = type();
306
+ if (!n || 93 !== e.charCodeAt(r++)) {
307
+ throw error("ListType");
308
+ }
309
+ i = {
310
+ kind: "ListType",
311
+ type: n
312
+ };
313
+ } else if (i = name()) {
314
+ i = {
315
+ kind: "NamedType",
316
+ name: i
317
+ };
318
+ } else {
319
+ throw error("NamedType");
320
+ }
321
+ ignored();
322
+ if (33 === e.charCodeAt(r)) {
323
+ r++;
324
+ ignored();
325
+ return {
326
+ kind: "NonNullType",
327
+ type: i
328
+ };
329
+ } else {
330
+ return i;
331
+ }
332
+ }
333
+
334
+ var c = /on/y;
335
+
336
+ function typeCondition() {
337
+ if (advance(c)) {
338
+ ignored();
339
+ var e = name();
340
+ if (!e) {
341
+ throw error("NamedType");
342
+ }
343
+ ignored();
344
+ return {
345
+ kind: "NamedType",
346
+ name: e
347
+ };
348
+ }
349
+ }
350
+
351
+ var f = /\.\.\./y;
352
+
353
+ function fragmentSpread() {
354
+ ignored();
355
+ if (advance(f)) {
356
+ ignored();
357
+ var e = r;
358
+ var i;
359
+ if ((i = name()) && "on" !== i.value) {
360
+ return {
361
+ kind: "FragmentSpread",
362
+ name: i,
363
+ directives: directives(!1)
364
+ };
365
+ } else {
366
+ r = e;
367
+ var n = typeCondition();
368
+ var t = directives(!1);
369
+ var a = selectionSet();
370
+ if (!a) {
371
+ throw error("InlineFragment");
372
+ }
373
+ return {
374
+ kind: "InlineFragment",
375
+ typeCondition: n,
376
+ directives: t,
377
+ selectionSet: a
378
+ };
379
+ }
380
+ }
381
+ }
382
+
383
+ function selectionSet() {
384
+ var i;
385
+ ignored();
386
+ if (123 === e.charCodeAt(r)) {
387
+ r++;
388
+ ignored();
389
+ var n = [];
390
+ while (i = fragmentSpread() || field()) {
391
+ n.push(i);
392
+ }
393
+ if (!n.length || 125 !== e.charCodeAt(r++)) {
394
+ throw error("SelectionSet");
395
+ }
396
+ ignored();
397
+ return {
398
+ kind: "SelectionSet",
399
+ selections: n
400
+ };
401
+ }
402
+ }
403
+
404
+ var p = /fragment/y;
405
+
406
+ function fragmentDefinition() {
407
+ if (advance(p)) {
408
+ ignored();
409
+ var e = name();
410
+ if (!e) {
411
+ throw error("FragmentDefinition");
412
+ }
413
+ ignored();
414
+ var r = typeCondition();
415
+ if (!r) {
416
+ throw error("FragmentDefinition");
417
+ }
418
+ var i = directives(!1);
419
+ var n = selectionSet();
420
+ if (!n) {
421
+ throw error("FragmentDefinition");
422
+ }
423
+ return {
424
+ kind: "FragmentDefinition",
425
+ name: e,
426
+ typeCondition: r,
427
+ directives: i,
428
+ selectionSet: n
429
+ };
430
+ }
431
+ }
432
+
433
+ var m = /query|mutation|subscription/y;
434
+
435
+ function operationDefinition() {
436
+ var i;
437
+ var n;
438
+ var t = [];
439
+ var a = [];
440
+ if (i = advance(m)) {
441
+ ignored();
442
+ n = name();
443
+ t = function variableDefinitions() {
444
+ var i;
445
+ var n = [];
446
+ ignored();
447
+ if (40 === e.charCodeAt(r)) {
448
+ r++;
449
+ ignored();
450
+ while (i = advance(o)) {
451
+ ignored();
452
+ if (58 !== e.charCodeAt(r++)) {
453
+ throw error("VariableDefinition");
454
+ }
455
+ var t = type();
456
+ if (!t) {
457
+ throw error("VariableDefinition");
458
+ }
459
+ var a = void 0;
460
+ if (61 === e.charCodeAt(r)) {
461
+ r++;
462
+ ignored();
463
+ if (!(a = value(!0))) {
464
+ throw error("VariableDefinition");
465
+ }
466
+ }
467
+ ignored();
468
+ n.push({
469
+ kind: "VariableDefinition",
470
+ variable: {
471
+ kind: "Variable",
472
+ name: {
473
+ kind: "Name",
474
+ value: i.slice(1)
475
+ }
476
+ },
477
+ type: t,
478
+ defaultValue: a,
479
+ directives: directives(!0)
480
+ });
481
+ }
482
+ if (41 !== e.charCodeAt(r++)) {
483
+ throw error("VariableDefinition");
484
+ }
485
+ ignored();
486
+ }
487
+ return n;
488
+ }();
489
+ a = directives(!1);
490
+ }
491
+ var l = selectionSet();
492
+ if (l) {
493
+ return {
494
+ kind: "OperationDefinition",
495
+ operation: i || "query",
496
+ name: n,
497
+ variableDefinitions: t,
498
+ directives: a,
499
+ selectionSet: l
500
+ };
501
+ }
502
+ }
503
+
504
+ var g = {};
505
+
506
+ function printString(e) {
507
+ return JSON.stringify(e);
508
+ }
509
+
510
+ function printBlockString(e) {
511
+ return '"""\n' + e.replace(/"""/g, '\\"""') + '\n"""';
512
+ }
513
+
514
+ var hasItems = e => !(!e || !e.length);
515
+
516
+ var h = 80;
517
+
518
+ function valueFromASTUntyped(e, r) {
519
+ switch (e.kind) {
520
+ case "NullValue":
521
+ return null;
522
+
523
+ case "IntValue":
524
+ return parseInt(e.value, 10);
525
+
526
+ case "FloatValue":
527
+ return parseFloat(e.value);
528
+
529
+ case "StringValue":
530
+ case "EnumValue":
531
+ case "BooleanValue":
532
+ return e.value;
533
+
534
+ case "ListValue":
535
+ var i = [];
536
+ for (var n = 0, t = e.values; n < t.length; n += 1) {
537
+ i.push(valueFromASTUntyped(t[n], r));
538
+ }
539
+ return i;
540
+
541
+ case "ObjectValue":
542
+ var a = Object.create(null);
543
+ for (var o = 0, l = e.fields; o < l.length; o += 1) {
544
+ var u = l[o];
545
+ a[u.name.value] = valueFromASTUntyped(u.value, r);
546
+ }
547
+ return a;
548
+
549
+ case "Variable":
550
+ return r && r[e.name.value];
551
+ }
552
+ }
553
+
554
+ exports.BREAK = g;
555
+
556
+ exports.GraphQLError = GraphQLError;
557
+
558
+ exports.Kind = {
559
+ NAME: "Name",
560
+ DOCUMENT: "Document",
561
+ OPERATION_DEFINITION: "OperationDefinition",
562
+ VARIABLE_DEFINITION: "VariableDefinition",
563
+ SELECTION_SET: "SelectionSet",
564
+ FIELD: "Field",
565
+ ARGUMENT: "Argument",
566
+ FRAGMENT_SPREAD: "FragmentSpread",
567
+ INLINE_FRAGMENT: "InlineFragment",
568
+ FRAGMENT_DEFINITION: "FragmentDefinition",
569
+ VARIABLE: "Variable",
570
+ OBJECT: "ObjectValue",
571
+ OBJECT_FIELD: "ObjectField",
572
+ DIRECTIVE: "Directive",
573
+ NAMED_TYPE: "NamedType",
574
+ LIST_TYPE: "ListType",
575
+ NON_NULL_TYPE: "NonNullType"
576
+ };
577
+
578
+ exports.OperationTypeNode = {
579
+ QUERY: "query",
580
+ MUTATION: "mutation",
581
+ SUBSCRIPTION: "subscription"
582
+ };
583
+
584
+ exports.blockString = blockString;
585
+
586
+ exports.parse = function parse(i, n) {
587
+ e = "string" == typeof i.body ? i.body : i;
588
+ r = 0;
589
+ return function document() {
590
+ var i;
591
+ ignored();
592
+ var n = [];
593
+ while (i = fragmentDefinition() || operationDefinition()) {
594
+ n.push(i);
595
+ }
596
+ if (r !== e.length) {
597
+ throw error("Document");
598
+ }
599
+ return {
600
+ kind: "Document",
601
+ definitions: n
602
+ };
603
+ }();
604
+ };
605
+
606
+ exports.parseType = function parseType(i, n) {
607
+ e = "string" == typeof i.body ? i.body : i;
608
+ r = 0;
609
+ var t = type();
610
+ if (!t) {
611
+ throw error("TypeNode");
612
+ }
613
+ return t;
614
+ };
615
+
616
+ exports.parseValue = function parseValue(i, n) {
617
+ e = "string" == typeof i.body ? i.body : i;
618
+ r = 0;
619
+ ignored();
620
+ var t = value(!1);
621
+ if (!t) {
622
+ throw error("ValueNode");
623
+ }
624
+ return t;
625
+ };
626
+
627
+ exports.print = function print(e) {
628
+ var r;
629
+ switch (e.kind) {
630
+ case "OperationDefinition":
631
+ if ("query" === e.operation && !e.name && !hasItems(e.variableDefinitions) && !hasItems(e.directives)) {
632
+ return print(e.selectionSet);
633
+ }
634
+ r = e.operation;
635
+ if (e.name) {
636
+ r += " " + e.name.value;
637
+ }
638
+ if (hasItems(e.variableDefinitions)) {
639
+ if (!e.name) {
640
+ r += " ";
641
+ }
642
+ r += "(" + e.variableDefinitions.map(print).join(", ") + ")";
643
+ }
644
+ if (hasItems(e.directives)) {
645
+ r += " " + e.directives.map(print).join(" ");
646
+ }
647
+ return r + " " + print(e.selectionSet);
648
+
649
+ case "VariableDefinition":
650
+ r = print(e.variable) + ": " + print(e.type);
651
+ if (e.defaultValue) {
652
+ r += " = " + print(e.defaultValue);
653
+ }
654
+ if (hasItems(e.directives)) {
655
+ r += " " + e.directives.map(print).join(" ");
656
+ }
657
+ return r;
658
+
659
+ case "Field":
660
+ r = (e.alias ? print(e.alias) + ": " : "") + e.name.value;
661
+ if (hasItems(e.arguments)) {
662
+ var i = e.arguments.map(print);
663
+ var n = r + "(" + i.join(", ") + ")";
664
+ r = n.length > h ? r + "(\n " + i.join("\n").replace(/\n/g, "\n ") + "\n)" : n;
665
+ }
666
+ if (hasItems(e.directives)) {
667
+ r += " " + e.directives.map(print).join(" ");
668
+ }
669
+ return e.selectionSet ? r + " " + print(e.selectionSet) : r;
670
+
671
+ case "StringValue":
672
+ return e.block ? printBlockString(e.value) : printString(e.value);
673
+
674
+ case "BooleanValue":
675
+ return "" + e.value;
676
+
677
+ case "NullValue":
678
+ return "null";
679
+
680
+ case "IntValue":
681
+ case "FloatValue":
682
+ case "EnumValue":
683
+ case "Name":
684
+ return e.value;
685
+
686
+ case "ListValue":
687
+ return "[" + e.values.map(print).join(", ") + "]";
688
+
689
+ case "ObjectValue":
690
+ return "{" + e.fields.map(print).join(", ") + "}";
691
+
692
+ case "ObjectField":
693
+ case "Argument":
694
+ return e.name.value + ": " + print(e.value);
695
+
696
+ case "Variable":
697
+ return "$" + e.name.value;
698
+
699
+ case "Document":
700
+ return hasItems(e.definitions) ? e.definitions.map(print).join("\n\n") : "";
701
+
702
+ case "SelectionSet":
703
+ return "{\n " + e.selections.map(print).join("\n").replace(/\n/g, "\n ") + "\n}";
704
+
705
+ case "FragmentSpread":
706
+ r = "..." + e.name.value;
707
+ if (hasItems(e.directives)) {
708
+ r += " " + e.directives.map(print).join(" ");
709
+ }
710
+ return r;
711
+
712
+ case "InlineFragment":
713
+ r = "...";
714
+ if (e.typeCondition) {
715
+ r += " on " + e.typeCondition.name.value;
716
+ }
717
+ if (hasItems(e.directives)) {
718
+ r += " " + e.directives.map(print).join(" ");
719
+ }
720
+ return r + " " + print(e.selectionSet);
721
+
722
+ case "FragmentDefinition":
723
+ r = "fragment " + e.name.value;
724
+ r += " on " + e.typeCondition.name.value;
725
+ if (hasItems(e.directives)) {
726
+ r += " " + e.directives.map(print).join(" ");
727
+ }
728
+ return r + " " + print(e.selectionSet);
729
+
730
+ case "Directive":
731
+ r = "@" + e.name.value;
732
+ if (hasItems(e.arguments)) {
733
+ r += "(" + e.arguments.map(print).join(", ") + ")";
734
+ }
735
+ return r;
736
+
737
+ case "NamedType":
738
+ return e.name.value;
739
+
740
+ case "ListType":
741
+ return "[" + print(e.type) + "]";
742
+
743
+ case "NonNullType":
744
+ return print(e.type) + "!";
745
+
746
+ default:
747
+ return "";
748
+ }
749
+ };
750
+
751
+ exports.printBlockString = printBlockString;
752
+
753
+ exports.printString = printString;
754
+
755
+ exports.valueFromASTUntyped = valueFromASTUntyped;
756
+
757
+ exports.valueFromTypeNode = function valueFromTypeNode(e, r, i) {
758
+ if ("Variable" === e.kind) {
759
+ return i ? valueFromTypeNode(i[e.name.value], r, i) : void 0;
760
+ } else if ("NonNullType" === r.kind) {
761
+ return "NullValue" !== e.kind ? valueFromTypeNode(e, r, i) : void 0;
762
+ } else if ("NullValue" === e.kind) {
763
+ return null;
764
+ } else if ("ListType" === r.kind) {
765
+ if ("ListValue" === e.kind) {
766
+ var n = [];
767
+ for (var t = 0, a = e.values; t < a.length; t += 1) {
768
+ var o = valueFromTypeNode(a[t], r.type, i);
769
+ if (void 0 === o) {
770
+ return;
771
+ } else {
772
+ n.push(o);
773
+ }
774
+ }
775
+ return n;
776
+ }
777
+ } else if ("NamedType" === r.kind) {
778
+ switch (r.name.value) {
779
+ case "Int":
780
+ case "Float":
781
+ case "String":
782
+ case "Bool":
783
+ return r.name.value + "Value" === e.kind ? valueFromASTUntyped(e, i) : void 0;
784
+
785
+ default:
786
+ return valueFromASTUntyped(e, i);
787
+ }
788
+ }
789
+ };
790
+
791
+ exports.visit = function visit(e, r) {
792
+ var i = [];
793
+ var n = [];
794
+ try {
795
+ var t = function traverse(e, t, a) {
796
+ var o = !1;
797
+ var l = r[e.kind] && r[e.kind].enter || r[e.kind];
798
+ var u = l && l.call(r, e, t, a, n, i);
799
+ if (!1 === u) {
800
+ return e;
801
+ } else if (null === u) {
802
+ return null;
803
+ } else if (u === g) {
804
+ throw g;
805
+ } else if (u && "string" == typeof u.kind) {
806
+ o = u !== e;
807
+ e = u;
808
+ }
809
+ if (a) {
810
+ i.push(a);
811
+ }
812
+ var s;
813
+ var d = {
814
+ ...e
815
+ };
816
+ for (var v in e) {
817
+ n.push(v);
818
+ var c = e[v];
819
+ if (Array.isArray(c)) {
820
+ var f = [];
821
+ for (var p = 0; p < c.length; p++) {
822
+ if (null != c[p] && "string" == typeof c[p].kind) {
823
+ i.push(e);
824
+ n.push(p);
825
+ s = traverse(c[p], p, c);
826
+ n.pop();
827
+ i.pop();
828
+ if (void 0 === s) {
829
+ f.push(c[p]);
830
+ } else if (null === s) {
831
+ o = !0;
832
+ } else {
833
+ o = o || s !== c[p];
834
+ f.push(s);
835
+ }
836
+ }
837
+ }
838
+ c = f;
839
+ } else if (null != c && "string" == typeof c.kind) {
840
+ if (void 0 !== (s = traverse(c, v, e))) {
841
+ o = o || c !== s;
842
+ c = s;
843
+ }
844
+ }
845
+ n.pop();
846
+ if (o) {
847
+ d[v] = c;
848
+ }
849
+ }
850
+ if (a) {
851
+ i.pop();
852
+ }
853
+ var m = r[e.kind] && r[e.kind].leave;
854
+ var h = m && m.call(r, e, t, a, n, i);
855
+ if (h === g) {
856
+ throw g;
857
+ } else if (void 0 !== h) {
858
+ return h;
859
+ } else if (void 0 !== u) {
860
+ return o ? d : u;
861
+ } else {
862
+ return o ? d : e;
863
+ }
864
+ }(e);
865
+ return void 0 !== t && !1 !== t ? t : e;
866
+ } catch (r) {
867
+ if (r !== g) {
868
+ throw r;
869
+ }
870
+ return e;
871
+ }
872
+ };
873
+ //# sourceMappingURL=graphql.web.js.map