zudoku 0.16.0 → 0.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/oas/graphql/index.js +1 -1
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/lib/assets/{worker-CBt_PtXk.js → worker-YA-aCP3P.js} +807 -807
- package/lib/assets/{worker-CBt_PtXk.js.map → worker-YA-aCP3P.js.map} +1 -1
- package/lib/zudoku.openapi-worker.js +826 -826
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/package.json +2 -2
- package/src/lib/oas/graphql/index.ts +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
1
|
+
var wl = Object.defineProperty;
|
|
2
2
|
var yo = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var U = (t, e, n) =>
|
|
5
|
+
var Tl = (t, e, n) => e in t ? wl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
6
|
+
var U = (t, e, n) => Tl(t, typeof e != "symbol" ? e + "" : e, n), Wr = (t, e, n) => e.has(t) || yo("Cannot " + n);
|
|
7
7
|
var l = (t, e, n) => (Wr(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Y = (t, e, n) => e.has(t) ? yo("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), $ = (t, e, n, i) => (Wr(t, e, "write to private field"), i ? i.call(t, n) : e.set(t, n), n), k = (t, e, n) => (Wr(t, e, "access private method"), n);
|
|
8
8
|
var Tn = (t, e, n, i) => ({
|
|
9
9
|
set _(r) {
|
|
@@ -13,7 +13,7 @@ var Tn = (t, e, n, i) => ({
|
|
|
13
13
|
return l(t, e, i);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
function
|
|
16
|
+
function Sl(t, e) {
|
|
17
17
|
return e.forEach(function(n) {
|
|
18
18
|
n && typeof n != "string" && !Array.isArray(n) && Object.keys(n).forEach(function(i) {
|
|
19
19
|
if (i !== "default" && !(i in t)) {
|
|
@@ -28,11 +28,11 @@ function _l(t, e) {
|
|
|
28
28
|
});
|
|
29
29
|
}), Object.freeze(t);
|
|
30
30
|
}
|
|
31
|
-
const
|
|
32
|
-
function
|
|
31
|
+
const _l = /* @__PURE__ */ new WeakMap(), Yr = Symbol("ENVELOP_IS_INTROSPECTION");
|
|
32
|
+
function Il(t) {
|
|
33
33
|
return (typeof t == "string" ? t : t.body).indexOf("__schema") !== -1;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Ol(t) {
|
|
36
36
|
return t.length === 1 ? t[0] : {
|
|
37
37
|
schema: t[0],
|
|
38
38
|
document: t[1],
|
|
@@ -44,7 +44,7 @@ function Nl(t) {
|
|
|
44
44
|
subscribeFieldResolver: t[7]
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
const bo = (t) => (...e) => t(
|
|
47
|
+
const bo = (t) => (...e) => t(Ol(e));
|
|
48
48
|
function vo(t, e) {
|
|
49
49
|
const n = t[Symbol.asyncIterator]();
|
|
50
50
|
async function i(s) {
|
|
@@ -83,7 +83,7 @@ function vo(t, e) {
|
|
|
83
83
|
};
|
|
84
84
|
return r;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function Nl(t) {
|
|
87
87
|
return t.length === 1 ? t[0] : {
|
|
88
88
|
schema: t[0],
|
|
89
89
|
document: t[1],
|
|
@@ -95,7 +95,7 @@ function Al(t) {
|
|
|
95
95
|
typeResolver: t[7]
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
const Eo = (t) => (...e) => t(
|
|
98
|
+
const Eo = (t) => (...e) => t(Nl(e));
|
|
99
99
|
function zt(t) {
|
|
100
100
|
return typeof t == "object" && t != null && typeof t[Symbol.asyncIterator] == "function";
|
|
101
101
|
}
|
|
@@ -134,7 +134,7 @@ function To(t, e) {
|
|
|
134
134
|
};
|
|
135
135
|
return r;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function Al(t, e) {
|
|
138
138
|
const n = t[Symbol.asyncIterator](), i = {
|
|
139
139
|
[Symbol.asyncIterator]() {
|
|
140
140
|
return i;
|
|
@@ -164,7 +164,7 @@ function xl(t, e) {
|
|
|
164
164
|
function zi(t) {
|
|
165
165
|
throw Error(`No \`${t}\` function found! Register it using "useEngine" plugin.`);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function xl({ plugins: t }) {
|
|
168
168
|
let e = null, n = !1;
|
|
169
169
|
const i = () => zi("parse"), r = () => zi("validate"), s = () => zi("execute"), o = () => zi("subscribe"), a = (S, A = -1) => {
|
|
170
170
|
if (e = S, n)
|
|
@@ -247,7 +247,7 @@ function Fl({ plugins: t }) {
|
|
|
247
247
|
throw new Error("Failed to parse document.");
|
|
248
248
|
if (C instanceof Error)
|
|
249
249
|
throw C;
|
|
250
|
-
return
|
|
250
|
+
return _l.set(C, A.toString()), C;
|
|
251
251
|
} : () => i, p = c.validate.length ? (S) => (A, O, C, T, _) => {
|
|
252
252
|
let m = C ? [...C] : void 0, b = r, d = null;
|
|
253
253
|
const N = S, L = [];
|
|
@@ -381,7 +381,7 @@ function Fl({ plugins: t }) {
|
|
|
381
381
|
})), b.length && zt(_) && (_ = To(_, () => {
|
|
382
382
|
for (const d of b)
|
|
383
383
|
d();
|
|
384
|
-
})), C.length && zt(_) && (_ =
|
|
384
|
+
})), C.length && zt(_) && (_ = Al(_, (d) => {
|
|
385
385
|
let N = d;
|
|
386
386
|
for (const L of C)
|
|
387
387
|
L({
|
|
@@ -463,11 +463,11 @@ function Fl({ plugins: t }) {
|
|
|
463
463
|
contextFactory: w
|
|
464
464
|
};
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function Fl(t) {
|
|
467
467
|
return t != null;
|
|
468
468
|
}
|
|
469
|
-
function
|
|
470
|
-
const e = t.plugins.filter(
|
|
469
|
+
function Rl(t) {
|
|
470
|
+
const e = t.plugins.filter(Fl), n = xl({
|
|
471
471
|
plugins: e
|
|
472
472
|
}), i = (r = {}) => {
|
|
473
473
|
const s = n;
|
|
@@ -484,14 +484,14 @@ function Ll(t) {
|
|
|
484
484
|
}
|
|
485
485
|
const So = {
|
|
486
486
|
logFn: console.log
|
|
487
|
-
},
|
|
487
|
+
}, Ll = (t = So) => {
|
|
488
488
|
const e = {
|
|
489
489
|
DEFAULT_OPTIONS: So,
|
|
490
490
|
...t
|
|
491
491
|
};
|
|
492
492
|
return {
|
|
493
493
|
onParse({ extendContext: n, params: i }) {
|
|
494
|
-
e.skipIntrospection &&
|
|
494
|
+
e.skipIntrospection && Il(i.source) && n({
|
|
495
495
|
[Yr]: !0
|
|
496
496
|
});
|
|
497
497
|
},
|
|
@@ -512,14 +512,14 @@ const So = {
|
|
|
512
512
|
};
|
|
513
513
|
}
|
|
514
514
|
};
|
|
515
|
-
},
|
|
516
|
-
function
|
|
515
|
+
}, Cl = "Unexpected error.";
|
|
516
|
+
function kl(t) {
|
|
517
517
|
return t instanceof Error && t.name === "GraphQLError";
|
|
518
518
|
}
|
|
519
519
|
function Pa(t) {
|
|
520
|
-
return
|
|
520
|
+
return kl(t) ? t.originalError != null ? Pa(t.originalError) : !0 : !1;
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function Dl(t, e, n) {
|
|
523
523
|
const i = new Error(t);
|
|
524
524
|
if (i.name = "GraphQLError", n) {
|
|
525
525
|
const r = e instanceof Error ? { message: e.message, stack: e.stack } : { message: String(e) };
|
|
@@ -538,13 +538,13 @@ function $l(t, e, n) {
|
|
|
538
538
|
}
|
|
539
539
|
}), i;
|
|
540
540
|
}
|
|
541
|
-
const
|
|
541
|
+
const $l = (t) => (e, n) => Pa(e) ? e : Dl(n, e, t);
|
|
542
542
|
var xa, Fa;
|
|
543
|
-
const
|
|
543
|
+
const Pl = ((Fa = (xa = globalThis.process) == null ? void 0 : xa.env) == null ? void 0 : Fa.NODE_ENV) === "development", jl = $l(Pl), Ml = (t, e) => ({ result: n, setResult: i }) => {
|
|
544
544
|
n.errors != null && i({ ...n, errors: n.errors.map((r) => t(r, e)) });
|
|
545
545
|
};
|
|
546
|
-
function
|
|
547
|
-
const e = (t == null ? void 0 : t.maskError) ??
|
|
546
|
+
function Ul(t) {
|
|
547
|
+
const e = (t == null ? void 0 : t.maskError) ?? jl, n = (t == null ? void 0 : t.errorMessage) || Cl, i = Ml(e, n);
|
|
548
548
|
return {
|
|
549
549
|
onPluginInit(r) {
|
|
550
550
|
r.registerContextErrorHandler(({ error: s, setError: o }) => {
|
|
@@ -570,11 +570,11 @@ function Vl(t) {
|
|
|
570
570
|
}
|
|
571
571
|
};
|
|
572
572
|
}
|
|
573
|
-
const
|
|
573
|
+
const Vl = (t) => ({
|
|
574
574
|
async onContextBuilding({ context: e, extendContext: n }) {
|
|
575
575
|
n(await t(e));
|
|
576
576
|
}
|
|
577
|
-
}),
|
|
577
|
+
}), Bl = (t) => ({
|
|
578
578
|
onExecute: ({ setExecuteFn: e }) => {
|
|
579
579
|
t.execute && e(t.execute);
|
|
580
580
|
},
|
|
@@ -598,7 +598,7 @@ function ae(t, e) {
|
|
|
598
598
|
if (!!!t)
|
|
599
599
|
throw new Error(e);
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function Gl(t) {
|
|
602
602
|
return typeof (t == null ? void 0 : t.then) == "function";
|
|
603
603
|
}
|
|
604
604
|
function Ht(t) {
|
|
@@ -610,10 +610,10 @@ function Yt(t, e) {
|
|
|
610
610
|
e ?? "Unexpected invariant triggered."
|
|
611
611
|
);
|
|
612
612
|
}
|
|
613
|
-
const
|
|
613
|
+
const ql = /\r\n|[\n\r]/g;
|
|
614
614
|
function as(t, e) {
|
|
615
615
|
let n = 0, i = 1;
|
|
616
|
-
for (const r of t.body.matchAll(
|
|
616
|
+
for (const r of t.body.matchAll(ql)) {
|
|
617
617
|
if (typeof r.index == "number" || Yt(!1), r.index >= e)
|
|
618
618
|
break;
|
|
619
619
|
n = r.index + r[0].length, i += 1;
|
|
@@ -623,7 +623,7 @@ function as(t, e) {
|
|
|
623
623
|
column: e + 1 - n
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function zl(t) {
|
|
627
627
|
return Ma(
|
|
628
628
|
t.source,
|
|
629
629
|
as(t.source, t.start)
|
|
@@ -656,7 +656,7 @@ function _o(t) {
|
|
|
656
656
|
return e.map(([i, r]) => i.padStart(n) + (r ? " " + r : "")).join(`
|
|
657
657
|
`);
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function Ql(t) {
|
|
660
660
|
const e = t[0];
|
|
661
661
|
return e == null || "kind" in e || "length" in e ? {
|
|
662
662
|
nodes: e,
|
|
@@ -708,7 +708,7 @@ let P = class Ua extends Error {
|
|
|
708
708
|
*/
|
|
709
709
|
constructor(e, ...n) {
|
|
710
710
|
var i, r, s;
|
|
711
|
-
const { nodes: o, source: a, positions: u, path: c, originalError: f, extensions: g } =
|
|
711
|
+
const { nodes: o, source: a, positions: u, path: c, originalError: f, extensions: g } = Ql(n);
|
|
712
712
|
super(e), this.name = "GraphQLError", this.path = c ?? void 0, this.originalError = f ?? void 0, this.nodes = Io(
|
|
713
713
|
Array.isArray(o) ? o : o ? [o] : void 0
|
|
714
714
|
);
|
|
@@ -758,7 +758,7 @@ let P = class Ua extends Error {
|
|
|
758
758
|
for (const n of this.nodes)
|
|
759
759
|
n.loc && (e += `
|
|
760
760
|
|
|
761
|
-
` +
|
|
761
|
+
` + zl(n.loc));
|
|
762
762
|
else if (this.source && this.locations)
|
|
763
763
|
for (const n of this.locations)
|
|
764
764
|
e += `
|
|
@@ -782,7 +782,7 @@ function $e(t, e, n) {
|
|
|
782
782
|
positions: [e]
|
|
783
783
|
});
|
|
784
784
|
}
|
|
785
|
-
class
|
|
785
|
+
class Wl {
|
|
786
786
|
/**
|
|
787
787
|
* The character offset at which this Node begins.
|
|
788
788
|
*/
|
|
@@ -927,10 +927,10 @@ const Ba = {
|
|
|
927
927
|
UnionTypeExtension: ["name", "directives", "types"],
|
|
928
928
|
EnumTypeExtension: ["name", "directives", "values"],
|
|
929
929
|
InputObjectTypeExtension: ["name", "directives", "fields"]
|
|
930
|
-
},
|
|
930
|
+
}, Yl = new Set(Object.keys(Ba));
|
|
931
931
|
function us(t) {
|
|
932
932
|
const e = t == null ? void 0 : t.kind;
|
|
933
|
-
return typeof e == "string" &&
|
|
933
|
+
return typeof e == "string" && Yl.has(e);
|
|
934
934
|
}
|
|
935
935
|
var Je;
|
|
936
936
|
(function(t) {
|
|
@@ -947,7 +947,7 @@ var I;
|
|
|
947
947
|
function ls(t) {
|
|
948
948
|
return t === 9 || t === 32;
|
|
949
949
|
}
|
|
950
|
-
function
|
|
950
|
+
function Fi(t) {
|
|
951
951
|
return t >= 48 && t <= 57;
|
|
952
952
|
}
|
|
953
953
|
function Ga(t) {
|
|
@@ -958,14 +958,14 @@ function $s(t) {
|
|
|
958
958
|
return Ga(t) || t === 95;
|
|
959
959
|
}
|
|
960
960
|
function qa(t) {
|
|
961
|
-
return Ga(t) ||
|
|
961
|
+
return Ga(t) || Fi(t) || t === 95;
|
|
962
962
|
}
|
|
963
|
-
function
|
|
963
|
+
function Hl(t) {
|
|
964
964
|
var e;
|
|
965
965
|
let n = Number.MAX_SAFE_INTEGER, i = null, r = -1;
|
|
966
966
|
for (let o = 0; o < t.length; ++o) {
|
|
967
967
|
var s;
|
|
968
|
-
const a = t[o], u =
|
|
968
|
+
const a = t[o], u = Jl(a);
|
|
969
969
|
u !== a.length && (i = (s = i) !== null && s !== void 0 ? s : o, r = o, o !== 0 && u < n && (n = u));
|
|
970
970
|
}
|
|
971
971
|
return t.map((o, a) => a === 0 ? o : o.slice(n)).slice(
|
|
@@ -973,13 +973,13 @@ function Jl(t) {
|
|
|
973
973
|
r + 1
|
|
974
974
|
);
|
|
975
975
|
}
|
|
976
|
-
function
|
|
976
|
+
function Jl(t) {
|
|
977
977
|
let e = 0;
|
|
978
978
|
for (; e < t.length && ls(t.charCodeAt(e)); )
|
|
979
979
|
++e;
|
|
980
980
|
return e;
|
|
981
981
|
}
|
|
982
|
-
function
|
|
982
|
+
function Kl(t, e) {
|
|
983
983
|
const n = t.replace(/"""/g, '\\"""'), i = n.split(/\r\n|[\n\r]/g), r = i.length === 1, s = i.length > 1 && i.slice(1).every((w) => w.length === 0 || ls(w.charCodeAt(0))), o = n.endsWith('\\"""'), a = t.endsWith('"') && !o, u = t.endsWith("\\"), c = a || u, f = (
|
|
984
984
|
// add leading and trailing new lines only if it improves readability
|
|
985
985
|
!r || t.length > 70 || c || s || o
|
|
@@ -994,7 +994,7 @@ var D;
|
|
|
994
994
|
(function(t) {
|
|
995
995
|
t.SOF = "<SOF>", t.EOF = "<EOF>", t.BANG = "!", t.DOLLAR = "$", t.AMP = "&", t.PAREN_L = "(", t.PAREN_R = ")", t.SPREAD = "...", t.COLON = ":", t.EQUALS = "=", t.AT = "@", t.BRACKET_L = "[", t.BRACKET_R = "]", t.BRACE_L = "{", t.PIPE = "|", t.BRACE_R = "}", t.NAME = "Name", t.INT = "Int", t.FLOAT = "Float", t.STRING = "String", t.BLOCK_STRING = "BlockString", t.COMMENT = "Comment";
|
|
996
996
|
})(D || (D = {}));
|
|
997
|
-
class
|
|
997
|
+
class Xl {
|
|
998
998
|
/**
|
|
999
999
|
* The previously focused non-ignored token.
|
|
1000
1000
|
*/
|
|
@@ -1031,17 +1031,17 @@ class Zl {
|
|
|
1031
1031
|
if (e.next)
|
|
1032
1032
|
e = e.next;
|
|
1033
1033
|
else {
|
|
1034
|
-
const n =
|
|
1034
|
+
const n = ec(this, e.end);
|
|
1035
1035
|
e.next = n, n.prev = e, e = n;
|
|
1036
1036
|
}
|
|
1037
1037
|
while (e.kind === D.COMMENT);
|
|
1038
1038
|
return e;
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1041
|
+
function Zl(t) {
|
|
1042
1042
|
return t === D.BANG || t === D.DOLLAR || t === D.AMP || t === D.PAREN_L || t === D.PAREN_R || t === D.SPREAD || t === D.COLON || t === D.EQUALS || t === D.AT || t === D.BRACKET_L || t === D.BRACKET_R || t === D.BRACE_L || t === D.PIPE || t === D.BRACE_R;
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1044
|
+
function ui(t) {
|
|
1045
1045
|
return t >= 0 && t <= 55295 || t >= 57344 && t <= 1114111;
|
|
1046
1046
|
}
|
|
1047
1047
|
function Fr(t, e) {
|
|
@@ -1067,7 +1067,7 @@ function _e(t, e, n, i, r) {
|
|
|
1067
1067
|
const s = t.line, o = 1 + n - t.lineStart;
|
|
1068
1068
|
return new Va(e, n, i, s, o, r);
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function ec(t, e) {
|
|
1071
1071
|
const n = t.source.body, i = n.length;
|
|
1072
1072
|
let r = e;
|
|
1073
1073
|
for (; r < i; ) {
|
|
@@ -1086,7 +1086,7 @@ function tc(t, e) {
|
|
|
1086
1086
|
n.charCodeAt(r + 1) === 10 ? r += 2 : ++r, ++t.line, t.lineStart = r;
|
|
1087
1087
|
continue;
|
|
1088
1088
|
case 35:
|
|
1089
|
-
return
|
|
1089
|
+
return tc(t, r);
|
|
1090
1090
|
case 33:
|
|
1091
1091
|
return _e(t, D.BANG, r, r + 1);
|
|
1092
1092
|
case 36:
|
|
@@ -1118,28 +1118,28 @@ function tc(t, e) {
|
|
|
1118
1118
|
case 125:
|
|
1119
1119
|
return _e(t, D.BRACE_R, r, r + 1);
|
|
1120
1120
|
case 34:
|
|
1121
|
-
return n.charCodeAt(r + 1) === 34 && n.charCodeAt(r + 2) === 34 ?
|
|
1121
|
+
return n.charCodeAt(r + 1) === 34 && n.charCodeAt(r + 2) === 34 ? ac(t, r) : ic(t, r);
|
|
1122
1122
|
}
|
|
1123
|
-
if (
|
|
1124
|
-
return
|
|
1123
|
+
if (Fi(s) || s === 45)
|
|
1124
|
+
return nc(t, r, s);
|
|
1125
1125
|
if ($s(s))
|
|
1126
|
-
return
|
|
1126
|
+
return uc(t, r);
|
|
1127
1127
|
throw $e(
|
|
1128
1128
|
t.source,
|
|
1129
1129
|
r,
|
|
1130
|
-
s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` :
|
|
1130
|
+
s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : ui(s) || Fr(n, r) ? `Unexpected character: ${Ln(t, r)}.` : `Invalid character: ${Ln(t, r)}.`
|
|
1131
1131
|
);
|
|
1132
1132
|
}
|
|
1133
1133
|
return _e(t, D.EOF, i, i);
|
|
1134
1134
|
}
|
|
1135
|
-
function
|
|
1135
|
+
function tc(t, e) {
|
|
1136
1136
|
const n = t.source.body, i = n.length;
|
|
1137
1137
|
let r = e + 1;
|
|
1138
1138
|
for (; r < i; ) {
|
|
1139
1139
|
const s = n.charCodeAt(r);
|
|
1140
1140
|
if (s === 10 || s === 13)
|
|
1141
1141
|
break;
|
|
1142
|
-
if (
|
|
1142
|
+
if (ui(s))
|
|
1143
1143
|
++r;
|
|
1144
1144
|
else if (Fr(n, r))
|
|
1145
1145
|
r += 2;
|
|
@@ -1154,11 +1154,11 @@ function nc(t, e) {
|
|
|
1154
1154
|
n.slice(e + 1, r)
|
|
1155
1155
|
);
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1157
|
+
function nc(t, e, n) {
|
|
1158
1158
|
const i = t.source.body;
|
|
1159
1159
|
let r = e, s = n, o = !1;
|
|
1160
1160
|
if (s === 45 && (s = i.charCodeAt(++r)), s === 48) {
|
|
1161
|
-
if (s = i.charCodeAt(++r),
|
|
1161
|
+
if (s = i.charCodeAt(++r), Fi(s))
|
|
1162
1162
|
throw $e(
|
|
1163
1163
|
t.source,
|
|
1164
1164
|
r,
|
|
@@ -1187,7 +1187,7 @@ function ic(t, e, n) {
|
|
|
1187
1187
|
);
|
|
1188
1188
|
}
|
|
1189
1189
|
function Hr(t, e, n) {
|
|
1190
|
-
if (!
|
|
1190
|
+
if (!Fi(n))
|
|
1191
1191
|
throw $e(
|
|
1192
1192
|
t.source,
|
|
1193
1193
|
e,
|
|
@@ -1198,11 +1198,11 @@ function Hr(t, e, n) {
|
|
|
1198
1198
|
);
|
|
1199
1199
|
const i = t.source.body;
|
|
1200
1200
|
let r = e + 1;
|
|
1201
|
-
for (;
|
|
1201
|
+
for (; Fi(i.charCodeAt(r)); )
|
|
1202
1202
|
++r;
|
|
1203
1203
|
return r;
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1205
|
+
function ic(t, e) {
|
|
1206
1206
|
const n = t.source.body, i = n.length;
|
|
1207
1207
|
let r = e + 1, s = r, o = "";
|
|
1208
1208
|
for (; r < i; ) {
|
|
@@ -1211,13 +1211,13 @@ function rc(t, e) {
|
|
|
1211
1211
|
return o += n.slice(s, r), _e(t, D.STRING, e, r + 1, o);
|
|
1212
1212
|
if (a === 92) {
|
|
1213
1213
|
o += n.slice(s, r);
|
|
1214
|
-
const u = n.charCodeAt(r + 1) === 117 ? n.charCodeAt(r + 2) === 123 ?
|
|
1214
|
+
const u = n.charCodeAt(r + 1) === 117 ? n.charCodeAt(r + 2) === 123 ? rc(t, r) : sc(t, r) : oc(t, r);
|
|
1215
1215
|
o += u.value, r += u.size, s = r;
|
|
1216
1216
|
continue;
|
|
1217
1217
|
}
|
|
1218
1218
|
if (a === 10 || a === 13)
|
|
1219
1219
|
break;
|
|
1220
|
-
if (
|
|
1220
|
+
if (ui(a))
|
|
1221
1221
|
++r;
|
|
1222
1222
|
else if (Fr(n, r))
|
|
1223
1223
|
r += 2;
|
|
@@ -1233,20 +1233,20 @@ function rc(t, e) {
|
|
|
1233
1233
|
}
|
|
1234
1234
|
throw $e(t.source, r, "Unterminated string.");
|
|
1235
1235
|
}
|
|
1236
|
-
function
|
|
1236
|
+
function rc(t, e) {
|
|
1237
1237
|
const n = t.source.body;
|
|
1238
1238
|
let i = 0, r = 3;
|
|
1239
1239
|
for (; r < 12; ) {
|
|
1240
1240
|
const s = n.charCodeAt(e + r++);
|
|
1241
1241
|
if (s === 125) {
|
|
1242
|
-
if (r < 5 || !
|
|
1242
|
+
if (r < 5 || !ui(i))
|
|
1243
1243
|
break;
|
|
1244
1244
|
return {
|
|
1245
1245
|
value: String.fromCodePoint(i),
|
|
1246
1246
|
size: r
|
|
1247
1247
|
};
|
|
1248
1248
|
}
|
|
1249
|
-
if (i = i << 4 |
|
|
1249
|
+
if (i = i << 4 | bi(s), i < 0)
|
|
1250
1250
|
break;
|
|
1251
1251
|
}
|
|
1252
1252
|
throw $e(
|
|
@@ -1258,9 +1258,9 @@ function sc(t, e) {
|
|
|
1258
1258
|
)}".`
|
|
1259
1259
|
);
|
|
1260
1260
|
}
|
|
1261
|
-
function
|
|
1261
|
+
function sc(t, e) {
|
|
1262
1262
|
const n = t.source.body, i = Oo(n, e + 2);
|
|
1263
|
-
if (
|
|
1263
|
+
if (ui(i))
|
|
1264
1264
|
return {
|
|
1265
1265
|
value: String.fromCodePoint(i),
|
|
1266
1266
|
size: 6
|
|
@@ -1280,12 +1280,12 @@ function oc(t, e) {
|
|
|
1280
1280
|
);
|
|
1281
1281
|
}
|
|
1282
1282
|
function Oo(t, e) {
|
|
1283
|
-
return
|
|
1283
|
+
return bi(t.charCodeAt(e)) << 12 | bi(t.charCodeAt(e + 1)) << 8 | bi(t.charCodeAt(e + 2)) << 4 | bi(t.charCodeAt(e + 3));
|
|
1284
1284
|
}
|
|
1285
|
-
function
|
|
1285
|
+
function bi(t) {
|
|
1286
1286
|
return t >= 48 && t <= 57 ? t - 48 : t >= 65 && t <= 70 ? t - 55 : t >= 97 && t <= 102 ? t - 87 : -1;
|
|
1287
1287
|
}
|
|
1288
|
-
function
|
|
1288
|
+
function oc(t, e) {
|
|
1289
1289
|
const n = t.source.body;
|
|
1290
1290
|
switch (n.charCodeAt(e + 1)) {
|
|
1291
1291
|
case 34:
|
|
@@ -1339,7 +1339,7 @@ function ac(t, e) {
|
|
|
1339
1339
|
)}".`
|
|
1340
1340
|
);
|
|
1341
1341
|
}
|
|
1342
|
-
function
|
|
1342
|
+
function ac(t, e) {
|
|
1343
1343
|
const n = t.source.body, i = n.length;
|
|
1344
1344
|
let r = t.lineStart, s = e + 3, o = s, a = "";
|
|
1345
1345
|
const u = [];
|
|
@@ -1353,7 +1353,7 @@ function uc(t, e) {
|
|
|
1353
1353
|
e,
|
|
1354
1354
|
s + 3,
|
|
1355
1355
|
// Return a string of the lines joined with U+000A.
|
|
1356
|
-
|
|
1356
|
+
Hl(u).join(`
|
|
1357
1357
|
`)
|
|
1358
1358
|
);
|
|
1359
1359
|
return t.line += u.length - 1, t.lineStart = r, f;
|
|
@@ -1366,7 +1366,7 @@ function uc(t, e) {
|
|
|
1366
1366
|
a += n.slice(o, s), u.push(a), c === 13 && n.charCodeAt(s + 1) === 10 ? s += 2 : ++s, a = "", o = s, r = s;
|
|
1367
1367
|
continue;
|
|
1368
1368
|
}
|
|
1369
|
-
if (
|
|
1369
|
+
if (ui(c))
|
|
1370
1370
|
++s;
|
|
1371
1371
|
else if (Fr(n, s))
|
|
1372
1372
|
s += 2;
|
|
@@ -1382,7 +1382,7 @@ function uc(t, e) {
|
|
|
1382
1382
|
}
|
|
1383
1383
|
throw $e(t.source, s, "Unterminated string.");
|
|
1384
1384
|
}
|
|
1385
|
-
function
|
|
1385
|
+
function uc(t, e) {
|
|
1386
1386
|
const n = t.source.body, i = n.length;
|
|
1387
1387
|
let r = e + 1;
|
|
1388
1388
|
for (; r < i; ) {
|
|
@@ -1400,7 +1400,7 @@ function lc(t, e) {
|
|
|
1400
1400
|
n.slice(e, r)
|
|
1401
1401
|
);
|
|
1402
1402
|
}
|
|
1403
|
-
const
|
|
1403
|
+
const lc = 10, Wa = 2;
|
|
1404
1404
|
function G(t) {
|
|
1405
1405
|
return Rr(t, []);
|
|
1406
1406
|
}
|
|
@@ -1411,45 +1411,45 @@ function Rr(t, e) {
|
|
|
1411
1411
|
case "function":
|
|
1412
1412
|
return t.name ? `[function ${t.name}]` : "[function]";
|
|
1413
1413
|
case "object":
|
|
1414
|
-
return
|
|
1414
|
+
return cc(t, e);
|
|
1415
1415
|
default:
|
|
1416
1416
|
return String(t);
|
|
1417
1417
|
}
|
|
1418
1418
|
}
|
|
1419
|
-
function
|
|
1419
|
+
function cc(t, e) {
|
|
1420
1420
|
if (t === null)
|
|
1421
1421
|
return "null";
|
|
1422
1422
|
if (e.includes(t))
|
|
1423
1423
|
return "[Circular]";
|
|
1424
1424
|
const n = [...e, t];
|
|
1425
|
-
if (
|
|
1425
|
+
if (fc(t)) {
|
|
1426
1426
|
const i = t.toJSON();
|
|
1427
1427
|
if (i !== t)
|
|
1428
1428
|
return typeof i == "string" ? i : Rr(i, n);
|
|
1429
1429
|
} else if (Array.isArray(t))
|
|
1430
|
-
return
|
|
1431
|
-
return
|
|
1430
|
+
return hc(t, n);
|
|
1431
|
+
return dc(t, n);
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function fc(t) {
|
|
1434
1434
|
return typeof t.toJSON == "function";
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function dc(t, e) {
|
|
1437
1437
|
const n = Object.entries(t);
|
|
1438
|
-
return n.length === 0 ? "{}" : e.length > Wa ? "[" +
|
|
1438
|
+
return n.length === 0 ? "{}" : e.length > Wa ? "[" + pc(t) + "]" : "{ " + n.map(
|
|
1439
1439
|
([r, s]) => r + ": " + Rr(s, e)
|
|
1440
1440
|
).join(", ") + " }";
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1442
|
+
function hc(t, e) {
|
|
1443
1443
|
if (t.length === 0)
|
|
1444
1444
|
return "[]";
|
|
1445
1445
|
if (e.length > Wa)
|
|
1446
1446
|
return "[Array]";
|
|
1447
|
-
const n = Math.min(
|
|
1447
|
+
const n = Math.min(lc, t.length), i = t.length - n, r = [];
|
|
1448
1448
|
for (let s = 0; s < n; ++s)
|
|
1449
1449
|
r.push(Rr(t[s], e));
|
|
1450
1450
|
return i === 1 ? r.push("... 1 more item") : i > 1 && r.push(`... ${i} more items`), "[" + r.join(", ") + "]";
|
|
1451
1451
|
}
|
|
1452
|
-
function
|
|
1452
|
+
function pc(t) {
|
|
1453
1453
|
const e = Object.prototype.toString.call(t).replace(/^\[object /, "").replace(/]$/, "");
|
|
1454
1454
|
if (e === "Object" && typeof t.constructor == "function") {
|
|
1455
1455
|
const n = t.constructor.name;
|
|
@@ -1458,11 +1458,11 @@ function gc(t) {
|
|
|
1458
1458
|
}
|
|
1459
1459
|
return e;
|
|
1460
1460
|
}
|
|
1461
|
-
const
|
|
1461
|
+
const gc = globalThis.process && // eslint-disable-next-line no-undef
|
|
1462
1462
|
process.env.NODE_ENV === "production", Gt = (
|
|
1463
1463
|
/* c8 ignore next 6 */
|
|
1464
1464
|
// FIXME: https://github.com/graphql/graphql-js/issues/2317
|
|
1465
|
-
|
|
1465
|
+
gc ? function(e, n) {
|
|
1466
1466
|
return e instanceof n;
|
|
1467
1467
|
} : function(e, n) {
|
|
1468
1468
|
if (e instanceof n)
|
|
@@ -1509,16 +1509,16 @@ class Ya {
|
|
|
1509
1509
|
return "Source";
|
|
1510
1510
|
}
|
|
1511
1511
|
}
|
|
1512
|
-
function
|
|
1512
|
+
function mc(t) {
|
|
1513
1513
|
return Gt(t, Ya);
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1516
|
-
return new
|
|
1515
|
+
function yc(t, e) {
|
|
1516
|
+
return new bc(t, e).parseDocument();
|
|
1517
1517
|
}
|
|
1518
|
-
class
|
|
1518
|
+
class bc {
|
|
1519
1519
|
constructor(e, n = {}) {
|
|
1520
|
-
const i =
|
|
1521
|
-
this._lexer = new
|
|
1520
|
+
const i = mc(e) ? e : new Ya(e);
|
|
1521
|
+
this._lexer = new Xl(i), this._options = n, this._tokenCounter = 0;
|
|
1522
1522
|
}
|
|
1523
1523
|
/**
|
|
1524
1524
|
* Converts a name lex token into a name parse node.
|
|
@@ -2485,7 +2485,7 @@ class vc {
|
|
|
2485
2485
|
* given parsed object.
|
|
2486
2486
|
*/
|
|
2487
2487
|
node(e, n) {
|
|
2488
|
-
return this._options.noLocation !== !0 && (n.loc = new
|
|
2488
|
+
return this._options.noLocation !== !0 && (n.loc = new Wl(
|
|
2489
2489
|
e,
|
|
2490
2490
|
this._lexer.lastToken,
|
|
2491
2491
|
this._lexer.source
|
|
@@ -2621,9 +2621,9 @@ function Qi(t) {
|
|
|
2621
2621
|
return Ha(t.kind) + (e != null ? ` "${e}"` : "");
|
|
2622
2622
|
}
|
|
2623
2623
|
function Ha(t) {
|
|
2624
|
-
return
|
|
2624
|
+
return Zl(t) ? `"${t}"` : t;
|
|
2625
2625
|
}
|
|
2626
|
-
const
|
|
2626
|
+
const vc = 5;
|
|
2627
2627
|
function mn(t, e) {
|
|
2628
2628
|
const [n, i] = e ? [t, e] : [void 0, t];
|
|
2629
2629
|
let r = " Did you mean ";
|
|
@@ -2637,7 +2637,7 @@ function mn(t, e) {
|
|
|
2637
2637
|
case 2:
|
|
2638
2638
|
return r + s[0] + " or " + s[1] + "?";
|
|
2639
2639
|
}
|
|
2640
|
-
const o = s.slice(0,
|
|
2640
|
+
const o = s.slice(0, vc), a = o.pop();
|
|
2641
2641
|
return r + o.join(", ") + ", or " + a + "?";
|
|
2642
2642
|
}
|
|
2643
2643
|
function No(t) {
|
|
@@ -2688,12 +2688,12 @@ function $i(t, e) {
|
|
|
2688
2688
|
}
|
|
2689
2689
|
return t.length - e.length;
|
|
2690
2690
|
}
|
|
2691
|
-
const cs = 48,
|
|
2691
|
+
const cs = 48, Ec = 57;
|
|
2692
2692
|
function Wi(t) {
|
|
2693
|
-
return !isNaN(t) && cs <= t && t <=
|
|
2693
|
+
return !isNaN(t) && cs <= t && t <= Ec;
|
|
2694
2694
|
}
|
|
2695
2695
|
function kn(t, e) {
|
|
2696
|
-
const n = /* @__PURE__ */ Object.create(null), i = new
|
|
2696
|
+
const n = /* @__PURE__ */ Object.create(null), i = new wc(t), r = Math.floor(t.length * 0.4) + 1;
|
|
2697
2697
|
for (const s of e) {
|
|
2698
2698
|
const o = i.measure(s, r);
|
|
2699
2699
|
o !== void 0 && (n[s] = o);
|
|
@@ -2703,7 +2703,7 @@ function kn(t, e) {
|
|
|
2703
2703
|
return a !== 0 ? a : $i(s, o);
|
|
2704
2704
|
});
|
|
2705
2705
|
}
|
|
2706
|
-
class
|
|
2706
|
+
class wc {
|
|
2707
2707
|
constructor(e) {
|
|
2708
2708
|
this._input = e, this._inputLowerCase = e.toLowerCase(), this._inputArray = Ao(this._inputLowerCase), this._rows = [
|
|
2709
2709
|
new Array(e.length + 1).fill(0),
|
|
@@ -2770,14 +2770,14 @@ function mt(t) {
|
|
|
2770
2770
|
e[n] = i;
|
|
2771
2771
|
return e;
|
|
2772
2772
|
}
|
|
2773
|
-
function
|
|
2774
|
-
return `"${t.replace(
|
|
2773
|
+
function Tc(t) {
|
|
2774
|
+
return `"${t.replace(Sc, _c)}"`;
|
|
2775
2775
|
}
|
|
2776
|
-
const
|
|
2777
|
-
function
|
|
2778
|
-
return
|
|
2776
|
+
const Sc = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
|
|
2777
|
+
function _c(t) {
|
|
2778
|
+
return Ic[t.charCodeAt(0)];
|
|
2779
2779
|
}
|
|
2780
|
-
const
|
|
2780
|
+
const Ic = [
|
|
2781
2781
|
"\\u0000",
|
|
2782
2782
|
"\\u0001",
|
|
2783
2783
|
"\\u0002",
|
|
@@ -2943,7 +2943,7 @@ const Oc = [
|
|
|
2943
2943
|
"\\u009D",
|
|
2944
2944
|
"\\u009E",
|
|
2945
2945
|
"\\u009F"
|
|
2946
|
-
],
|
|
2946
|
+
], vi = Object.freeze({});
|
|
2947
2947
|
function Ps(t, e, n = Ba) {
|
|
2948
2948
|
const i = /* @__PURE__ */ new Map();
|
|
2949
2949
|
for (const y of Object.values(I))
|
|
@@ -2981,7 +2981,7 @@ function Ps(t, e, n = Ba) {
|
|
|
2981
2981
|
var v, R;
|
|
2982
2982
|
us(c) || ae(!1, `Invalid AST Node: ${G(c)}.`);
|
|
2983
2983
|
const O = y ? (v = i.get(c.kind)) === null || v === void 0 ? void 0 : v.leave : (R = i.get(c.kind)) === null || R === void 0 ? void 0 : R.enter;
|
|
2984
|
-
if (A = O == null ? void 0 : O.call(e, c, f, g, p, w), A ===
|
|
2984
|
+
if (A = O == null ? void 0 : O.call(e, c, f, g, p, w), A === vi)
|
|
2985
2985
|
break;
|
|
2986
2986
|
if (A === !1) {
|
|
2987
2987
|
if (!y) {
|
|
@@ -3011,7 +3011,7 @@ function Ps(t, e, n = Ba) {
|
|
|
3011
3011
|
} while (r !== void 0);
|
|
3012
3012
|
return u.length !== 0 ? u[u.length - 1][1] : t;
|
|
3013
3013
|
}
|
|
3014
|
-
function
|
|
3014
|
+
function Oc(t) {
|
|
3015
3015
|
const e = new Array(t.length).fill(null), n = /* @__PURE__ */ Object.create(null);
|
|
3016
3016
|
for (const i of Object.values(I)) {
|
|
3017
3017
|
let r = !1;
|
|
@@ -3031,8 +3031,8 @@ function Nc(t) {
|
|
|
3031
3031
|
const p = (f = s[g]) === null || f === void 0 ? void 0 : f.apply(t[g], u);
|
|
3032
3032
|
if (p === !1)
|
|
3033
3033
|
e[g] = c;
|
|
3034
|
-
else if (p ===
|
|
3035
|
-
e[g] =
|
|
3034
|
+
else if (p === vi)
|
|
3035
|
+
e[g] = vi;
|
|
3036
3036
|
else if (p !== void 0)
|
|
3037
3037
|
return p;
|
|
3038
3038
|
}
|
|
@@ -3043,8 +3043,8 @@ function Nc(t) {
|
|
|
3043
3043
|
if (e[g] === null) {
|
|
3044
3044
|
var f;
|
|
3045
3045
|
const p = (f = o[g]) === null || f === void 0 ? void 0 : f.apply(t[g], u);
|
|
3046
|
-
if (p ===
|
|
3047
|
-
e[g] =
|
|
3046
|
+
if (p === vi)
|
|
3047
|
+
e[g] = vi;
|
|
3048
3048
|
else if (p !== void 0 && p !== !1)
|
|
3049
3049
|
return p;
|
|
3050
3050
|
} else e[g] === c && (e[g] = null);
|
|
@@ -3065,9 +3065,9 @@ function vr(t, e) {
|
|
|
3065
3065
|
};
|
|
3066
3066
|
}
|
|
3067
3067
|
function be(t) {
|
|
3068
|
-
return Ps(t,
|
|
3068
|
+
return Ps(t, Ac);
|
|
3069
3069
|
}
|
|
3070
|
-
const
|
|
3070
|
+
const Nc = 80, Ac = {
|
|
3071
3071
|
Name: {
|
|
3072
3072
|
leave: (t) => t.value
|
|
3073
3073
|
},
|
|
@@ -3103,7 +3103,7 @@ const Ac = 80, xc = {
|
|
|
3103
3103
|
leave({ alias: t, name: e, arguments: n, directives: i, selectionSet: r }) {
|
|
3104
3104
|
const s = se("", t, ": ") + e;
|
|
3105
3105
|
let o = s + se("(", H(n, ", "), ")");
|
|
3106
|
-
return o.length >
|
|
3106
|
+
return o.length > Nc && (o = s + se(`(
|
|
3107
3107
|
`, ur(H(n, `
|
|
3108
3108
|
`)), `
|
|
3109
3109
|
)`)), H([o, H(i, " "), r], " ");
|
|
@@ -3141,7 +3141,7 @@ const Ac = 80, xc = {
|
|
|
3141
3141
|
leave: ({ value: t }) => t
|
|
3142
3142
|
},
|
|
3143
3143
|
StringValue: {
|
|
3144
|
-
leave: ({ value: t, block: e }) => e ?
|
|
3144
|
+
leave: ({ value: t, block: e }) => e ? Kl(t) : Tc(t)
|
|
3145
3145
|
},
|
|
3146
3146
|
BooleanValue: {
|
|
3147
3147
|
leave: ({ value: t }) => t ? "true" : "false"
|
|
@@ -3366,7 +3366,7 @@ function qt(t) {
|
|
|
3366
3366
|
);
|
|
3367
3367
|
return t;
|
|
3368
3368
|
}
|
|
3369
|
-
function
|
|
3369
|
+
function xc(t) {
|
|
3370
3370
|
if (t === "true" || t === "false" || t === "null")
|
|
3371
3371
|
throw new P(`Enum values cannot be named: ${t}`);
|
|
3372
3372
|
return qt(t);
|
|
@@ -3390,7 +3390,7 @@ function Bt(t) {
|
|
|
3390
3390
|
return Gt(t, ri);
|
|
3391
3391
|
}
|
|
3392
3392
|
function ze(t) {
|
|
3393
|
-
return Gt(t,
|
|
3393
|
+
return Gt(t, Ai);
|
|
3394
3394
|
}
|
|
3395
3395
|
function je(t) {
|
|
3396
3396
|
return Gt(t, Ue);
|
|
@@ -3401,8 +3401,8 @@ function re(t) {
|
|
|
3401
3401
|
function Pt(t) {
|
|
3402
3402
|
return Dn(t) || Bt(t) || ze(t) || Ms(t) && Pt(t.ofType);
|
|
3403
3403
|
}
|
|
3404
|
-
function
|
|
3405
|
-
return Dn(t) || pe(t) || Ee(t) || Vt(t) || Bt(t) || Ms(t) &&
|
|
3404
|
+
function Ni(t) {
|
|
3405
|
+
return Dn(t) || pe(t) || Ee(t) || Vt(t) || Bt(t) || Ms(t) && Ni(t.ofType);
|
|
3406
3406
|
}
|
|
3407
3407
|
function yn(t) {
|
|
3408
3408
|
return Dn(t) || Bt(t);
|
|
@@ -3429,7 +3429,7 @@ class Ue {
|
|
|
3429
3429
|
}
|
|
3430
3430
|
class ne {
|
|
3431
3431
|
constructor(e) {
|
|
3432
|
-
|
|
3432
|
+
Fc(e) || ae(
|
|
3433
3433
|
!1,
|
|
3434
3434
|
`Expected ${G(e)} to be a GraphQL nullable type.`
|
|
3435
3435
|
), this.ofType = e;
|
|
@@ -3447,14 +3447,14 @@ class ne {
|
|
|
3447
3447
|
function Ms(t) {
|
|
3448
3448
|
return je(t) || re(t);
|
|
3449
3449
|
}
|
|
3450
|
-
function
|
|
3450
|
+
function Fc(t) {
|
|
3451
3451
|
return js(t) && !re(t);
|
|
3452
3452
|
}
|
|
3453
3453
|
function Ja(t) {
|
|
3454
3454
|
if (t)
|
|
3455
3455
|
return re(t) ? t.ofType : t;
|
|
3456
3456
|
}
|
|
3457
|
-
function
|
|
3457
|
+
function Rc(t) {
|
|
3458
3458
|
return Dn(t) || pe(t) || Ee(t) || Vt(t) || Bt(t) || ze(t);
|
|
3459
3459
|
}
|
|
3460
3460
|
function jt(t) {
|
|
@@ -3668,7 +3668,7 @@ class _n {
|
|
|
3668
3668
|
class Gn {
|
|
3669
3669
|
constructor(e) {
|
|
3670
3670
|
var n;
|
|
3671
|
-
this.name = qt(e.name), this.description = e.description, this.resolveType = e.resolveType, this.extensions = mt(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = (n = e.extensionASTNodes) !== null && n !== void 0 ? n : [], this._types =
|
|
3671
|
+
this.name = qt(e.name), this.description = e.description, this.resolveType = e.resolveType, this.extensions = mt(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = (n = e.extensionASTNodes) !== null && n !== void 0 ? n : [], this._types = Lc.bind(void 0, e), e.resolveType == null || typeof e.resolveType == "function" || ae(
|
|
3672
3672
|
!1,
|
|
3673
3673
|
`${this.name} must provide "resolveType" as a function, but got: ${G(e.resolveType)}.`
|
|
3674
3674
|
);
|
|
@@ -3697,7 +3697,7 @@ class Gn {
|
|
|
3697
3697
|
return this.toString();
|
|
3698
3698
|
}
|
|
3699
3699
|
}
|
|
3700
|
-
function
|
|
3700
|
+
function Lc(t) {
|
|
3701
3701
|
const e = Ka(t.types);
|
|
3702
3702
|
return Array.isArray(e) || ae(
|
|
3703
3703
|
!1,
|
|
@@ -3806,7 +3806,7 @@ function Fo(t, e) {
|
|
|
3806
3806
|
!1,
|
|
3807
3807
|
`${t}.${n} must refer to an object with a "value" key representing an internal value but got: ${G(i)}.`
|
|
3808
3808
|
), {
|
|
3809
|
-
name:
|
|
3809
|
+
name: xc(n),
|
|
3810
3810
|
description: i.description,
|
|
3811
3811
|
value: i.value !== void 0 ? i.value : n,
|
|
3812
3812
|
deprecationReason: i.deprecationReason,
|
|
@@ -3814,10 +3814,10 @@ function Fo(t, e) {
|
|
|
3814
3814
|
astNode: i.astNode
|
|
3815
3815
|
}));
|
|
3816
3816
|
}
|
|
3817
|
-
class
|
|
3817
|
+
class Ai {
|
|
3818
3818
|
constructor(e) {
|
|
3819
3819
|
var n, i;
|
|
3820
|
-
this.name = qt(e.name), this.description = e.description, this.extensions = mt(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = (n = e.extensionASTNodes) !== null && n !== void 0 ? n : [], this.isOneOf = (i = e.isOneOf) !== null && i !== void 0 ? i : !1, this._fields =
|
|
3820
|
+
this.name = qt(e.name), this.description = e.description, this.extensions = mt(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = (n = e.extensionASTNodes) !== null && n !== void 0 ? n : [], this.isOneOf = (i = e.isOneOf) !== null && i !== void 0 ? i : !1, this._fields = Cc.bind(void 0, e);
|
|
3821
3821
|
}
|
|
3822
3822
|
get [Symbol.toStringTag]() {
|
|
3823
3823
|
return "GraphQLInputObjectType";
|
|
@@ -3851,7 +3851,7 @@ class Ni {
|
|
|
3851
3851
|
return this.toString();
|
|
3852
3852
|
}
|
|
3853
3853
|
}
|
|
3854
|
-
function
|
|
3854
|
+
function Cc(t) {
|
|
3855
3855
|
const e = Xa(t.fields);
|
|
3856
3856
|
return Qn(e) || ae(
|
|
3857
3857
|
!1,
|
|
@@ -4049,7 +4049,7 @@ const Jr = 2147483647, Kr = -2147483648, ji = new Ut({
|
|
|
4049
4049
|
);
|
|
4050
4050
|
return t.value;
|
|
4051
4051
|
}
|
|
4052
|
-
}),
|
|
4052
|
+
}), kc = Object.freeze([
|
|
4053
4053
|
ue,
|
|
4054
4054
|
ji,
|
|
4055
4055
|
kr,
|
|
@@ -4130,7 +4130,7 @@ const Us = new nn({
|
|
|
4130
4130
|
description: "Skipped when true."
|
|
4131
4131
|
}
|
|
4132
4132
|
}
|
|
4133
|
-
}),
|
|
4133
|
+
}), Dc = "No longer supported", ou = new nn({
|
|
4134
4134
|
name: "deprecated",
|
|
4135
4135
|
description: "Marks an element of a GraphQL schema as no longer supported.",
|
|
4136
4136
|
locations: [
|
|
@@ -4143,10 +4143,10 @@ const Us = new nn({
|
|
|
4143
4143
|
reason: {
|
|
4144
4144
|
type: ue,
|
|
4145
4145
|
description: "Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",
|
|
4146
|
-
defaultValue:
|
|
4146
|
+
defaultValue: Dc
|
|
4147
4147
|
}
|
|
4148
4148
|
}
|
|
4149
|
-
}),
|
|
4149
|
+
}), $c = new nn({
|
|
4150
4150
|
name: "specifiedBy",
|
|
4151
4151
|
description: "Exposes a URL that specifies the behavior of this scalar.",
|
|
4152
4152
|
locations: [K.SCALAR],
|
|
@@ -4156,7 +4156,7 @@ const Us = new nn({
|
|
|
4156
4156
|
description: "The URL that specifies the behavior of this scalar."
|
|
4157
4157
|
}
|
|
4158
4158
|
}
|
|
4159
|
-
}),
|
|
4159
|
+
}), Pc = new nn({
|
|
4160
4160
|
name: "oneOf",
|
|
4161
4161
|
description: "Indicates exactly one field must be supplied and this field must not be `null`.",
|
|
4162
4162
|
locations: [K.INPUT_OBJECT],
|
|
@@ -4165,15 +4165,15 @@ const Us = new nn({
|
|
|
4165
4165
|
Us,
|
|
4166
4166
|
Vs,
|
|
4167
4167
|
ou,
|
|
4168
|
-
|
|
4169
|
-
|
|
4168
|
+
$c,
|
|
4169
|
+
Pc
|
|
4170
4170
|
]);
|
|
4171
4171
|
function au(t) {
|
|
4172
4172
|
return typeof t == "object" && typeof (t == null ? void 0 : t[Symbol.iterator]) == "function";
|
|
4173
4173
|
}
|
|
4174
|
-
function
|
|
4174
|
+
function Ei(t, e) {
|
|
4175
4175
|
if (re(e)) {
|
|
4176
|
-
const n =
|
|
4176
|
+
const n = Ei(t, e.ofType);
|
|
4177
4177
|
return (n == null ? void 0 : n.kind) === I.NULL ? null : n;
|
|
4178
4178
|
}
|
|
4179
4179
|
if (t === null)
|
|
@@ -4187,7 +4187,7 @@ function vi(t, e) {
|
|
|
4187
4187
|
if (au(t)) {
|
|
4188
4188
|
const i = [];
|
|
4189
4189
|
for (const r of t) {
|
|
4190
|
-
const s =
|
|
4190
|
+
const s = Ei(r, n);
|
|
4191
4191
|
s != null && i.push(s);
|
|
4192
4192
|
}
|
|
4193
4193
|
return {
|
|
@@ -4195,14 +4195,14 @@ function vi(t, e) {
|
|
|
4195
4195
|
values: i
|
|
4196
4196
|
};
|
|
4197
4197
|
}
|
|
4198
|
-
return
|
|
4198
|
+
return Ei(t, n);
|
|
4199
4199
|
}
|
|
4200
4200
|
if (ze(e)) {
|
|
4201
4201
|
if (!Ht(t))
|
|
4202
4202
|
return null;
|
|
4203
4203
|
const n = [];
|
|
4204
4204
|
for (const i of Object.values(e.getFields())) {
|
|
4205
|
-
const r =
|
|
4205
|
+
const r = Ei(t[i.name], i.type);
|
|
4206
4206
|
r && n.push({
|
|
4207
4207
|
kind: I.OBJECT_FIELD,
|
|
4208
4208
|
name: {
|
|
@@ -4580,7 +4580,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
4580
4580
|
type: ue,
|
|
4581
4581
|
description: "A GraphQL-formatted string representing the default value for this input value.",
|
|
4582
4582
|
resolve(t) {
|
|
4583
|
-
const { type: e, defaultValue: n } = t, i =
|
|
4583
|
+
const { type: e, defaultValue: n } = t, i = Ei(n, e);
|
|
4584
4584
|
return i ? be(i) : null;
|
|
4585
4585
|
}
|
|
4586
4586
|
},
|
|
@@ -4709,7 +4709,7 @@ function pu(t) {
|
|
|
4709
4709
|
function gu(t) {
|
|
4710
4710
|
return Gt(t, Gs);
|
|
4711
4711
|
}
|
|
4712
|
-
function
|
|
4712
|
+
function jc(t) {
|
|
4713
4713
|
if (!gu(t))
|
|
4714
4714
|
throw new Error(`Expected ${G(t)} to be a GraphQL schema.`);
|
|
4715
4715
|
return t;
|
|
@@ -4863,22 +4863,22 @@ function $t(t, e) {
|
|
|
4863
4863
|
}
|
|
4864
4864
|
return e;
|
|
4865
4865
|
}
|
|
4866
|
-
function
|
|
4867
|
-
if (
|
|
4866
|
+
function Mc(t) {
|
|
4867
|
+
if (jc(t), t.__validationErrors)
|
|
4868
4868
|
return t.__validationErrors;
|
|
4869
|
-
const e = new
|
|
4870
|
-
|
|
4869
|
+
const e = new Uc(t);
|
|
4870
|
+
Vc(e), Bc(e), Gc(e);
|
|
4871
4871
|
const n = e.getErrors();
|
|
4872
4872
|
return t.__validationErrors = n, n;
|
|
4873
4873
|
}
|
|
4874
4874
|
function mu(t) {
|
|
4875
|
-
const e =
|
|
4875
|
+
const e = Mc(t);
|
|
4876
4876
|
if (e.length !== 0)
|
|
4877
4877
|
throw new Error(e.map((n) => n.message).join(`
|
|
4878
4878
|
|
|
4879
4879
|
`));
|
|
4880
4880
|
}
|
|
4881
|
-
class
|
|
4881
|
+
class Uc {
|
|
4882
4882
|
constructor(e) {
|
|
4883
4883
|
this._errors = [], this.schema = e;
|
|
4884
4884
|
}
|
|
@@ -4894,7 +4894,7 @@ class Vc {
|
|
|
4894
4894
|
return this._errors;
|
|
4895
4895
|
}
|
|
4896
4896
|
}
|
|
4897
|
-
function
|
|
4897
|
+
function Vc(t) {
|
|
4898
4898
|
const e = t.schema, n = e.getQueryType();
|
|
4899
4899
|
if (!n)
|
|
4900
4900
|
t.reportError("Query root type must be provided.", e.astNode);
|
|
@@ -4946,7 +4946,7 @@ function Xr(t, e) {
|
|
|
4946
4946
|
}
|
|
4947
4947
|
).find((i) => i.operation === e)) === null || n === void 0 ? void 0 : n.type;
|
|
4948
4948
|
}
|
|
4949
|
-
function
|
|
4949
|
+
function Bc(t) {
|
|
4950
4950
|
for (const n of t.schema.getDirectives()) {
|
|
4951
4951
|
if (!su(n)) {
|
|
4952
4952
|
t.reportError(
|
|
@@ -4978,17 +4978,17 @@ function Cn(t, e) {
|
|
|
4978
4978
|
e.astNode
|
|
4979
4979
|
);
|
|
4980
4980
|
}
|
|
4981
|
-
function
|
|
4982
|
-
const e =
|
|
4981
|
+
function Gc(t) {
|
|
4982
|
+
const e = Jc(t), n = t.schema.getTypeMap();
|
|
4983
4983
|
for (const i of Object.values(n)) {
|
|
4984
|
-
if (!
|
|
4984
|
+
if (!Rc(i)) {
|
|
4985
4985
|
t.reportError(
|
|
4986
4986
|
`Expected GraphQL named type but got: ${G(i)}.`,
|
|
4987
4987
|
i.astNode
|
|
4988
4988
|
);
|
|
4989
4989
|
continue;
|
|
4990
4990
|
}
|
|
4991
|
-
pu(i) || Cn(t, i), pe(i) || Ee(i) ? (Co(t, i), ko(t, i)) : Vt(i) ?
|
|
4991
|
+
pu(i) || Cn(t, i), pe(i) || Ee(i) ? (Co(t, i), ko(t, i)) : Vt(i) ? Qc(t, i) : Bt(i) ? Wc(t, i) : ze(i) && (Yc(t, i), e(i));
|
|
4992
4992
|
}
|
|
4993
4993
|
}
|
|
4994
4994
|
function Co(t, e) {
|
|
@@ -4998,7 +4998,7 @@ function Co(t, e) {
|
|
|
4998
4998
|
...e.extensionASTNodes
|
|
4999
4999
|
]);
|
|
5000
5000
|
for (const o of n) {
|
|
5001
|
-
if (Cn(t, o), !
|
|
5001
|
+
if (Cn(t, o), !Ni(o.type)) {
|
|
5002
5002
|
var i;
|
|
5003
5003
|
t.reportError(
|
|
5004
5004
|
`The type of ${e.name}.${o.name} must be Output Type but got: ${G(o.type)}.`,
|
|
@@ -5033,28 +5033,28 @@ function ko(t, e) {
|
|
|
5033
5033
|
if (!Ee(i)) {
|
|
5034
5034
|
t.reportError(
|
|
5035
5035
|
`Type ${G(e)} must only implement Interface types, it cannot implement ${G(i)}.`,
|
|
5036
|
-
|
|
5036
|
+
xi(e, i)
|
|
5037
5037
|
);
|
|
5038
5038
|
continue;
|
|
5039
5039
|
}
|
|
5040
5040
|
if (e === i) {
|
|
5041
5041
|
t.reportError(
|
|
5042
5042
|
`Type ${e.name} cannot implement itself because it would create a circular reference.`,
|
|
5043
|
-
|
|
5043
|
+
xi(e, i)
|
|
5044
5044
|
);
|
|
5045
5045
|
continue;
|
|
5046
5046
|
}
|
|
5047
5047
|
if (n[i.name]) {
|
|
5048
5048
|
t.reportError(
|
|
5049
5049
|
`Type ${e.name} can only implement ${i.name} once.`,
|
|
5050
|
-
|
|
5050
|
+
xi(e, i)
|
|
5051
5051
|
);
|
|
5052
5052
|
continue;
|
|
5053
5053
|
}
|
|
5054
|
-
n[i.name] = !0,
|
|
5054
|
+
n[i.name] = !0, zc(t, e, i), qc(t, e, i);
|
|
5055
5055
|
}
|
|
5056
5056
|
}
|
|
5057
|
-
function
|
|
5057
|
+
function qc(t, e, n) {
|
|
5058
5058
|
const i = e.getFields();
|
|
5059
5059
|
for (const u of Object.values(n.getFields())) {
|
|
5060
5060
|
const c = u.name, f = i[c];
|
|
@@ -5104,18 +5104,18 @@ function zc(t, e, n) {
|
|
|
5104
5104
|
}
|
|
5105
5105
|
}
|
|
5106
5106
|
}
|
|
5107
|
-
function
|
|
5107
|
+
function zc(t, e, n) {
|
|
5108
5108
|
const i = e.getInterfaces();
|
|
5109
5109
|
for (const r of n.getInterfaces())
|
|
5110
5110
|
i.includes(r) || t.reportError(
|
|
5111
5111
|
r === e ? `Type ${e.name} cannot implement ${n.name} because it would create a circular reference.` : `Type ${e.name} must implement ${r.name} because it is implemented by ${n.name}.`,
|
|
5112
5112
|
[
|
|
5113
|
-
...
|
|
5114
|
-
...
|
|
5113
|
+
...xi(n, r),
|
|
5114
|
+
...xi(e, n)
|
|
5115
5115
|
]
|
|
5116
5116
|
);
|
|
5117
5117
|
}
|
|
5118
|
-
function
|
|
5118
|
+
function Qc(t, e) {
|
|
5119
5119
|
const n = e.getTypes();
|
|
5120
5120
|
n.length === 0 && t.reportError(
|
|
5121
5121
|
`Union type ${e.name} must define one or more member types.`,
|
|
@@ -5136,7 +5136,7 @@ function Wc(t, e) {
|
|
|
5136
5136
|
);
|
|
5137
5137
|
}
|
|
5138
5138
|
}
|
|
5139
|
-
function
|
|
5139
|
+
function Wc(t, e) {
|
|
5140
5140
|
const n = e.getValues();
|
|
5141
5141
|
n.length === 0 && t.reportError(
|
|
5142
5142
|
`Enum type ${e.name} must define one or more values.`,
|
|
@@ -5145,7 +5145,7 @@ function Yc(t, e) {
|
|
|
5145
5145
|
for (const i of n)
|
|
5146
5146
|
Cn(t, i);
|
|
5147
5147
|
}
|
|
5148
|
-
function
|
|
5148
|
+
function Yc(t, e) {
|
|
5149
5149
|
const n = Object.values(e.getFields());
|
|
5150
5150
|
n.length === 0 && t.reportError(
|
|
5151
5151
|
`Input Object type ${e.name} must define one or more fields.`,
|
|
@@ -5169,10 +5169,10 @@ function Hc(t, e) {
|
|
|
5169
5169
|
]
|
|
5170
5170
|
);
|
|
5171
5171
|
}
|
|
5172
|
-
e.isOneOf &&
|
|
5172
|
+
e.isOneOf && Hc(e, s, t);
|
|
5173
5173
|
}
|
|
5174
5174
|
}
|
|
5175
|
-
function
|
|
5175
|
+
function Hc(t, e, n) {
|
|
5176
5176
|
if (re(e.type)) {
|
|
5177
5177
|
var i;
|
|
5178
5178
|
n.reportError(
|
|
@@ -5185,7 +5185,7 @@ function Jc(t, e, n) {
|
|
|
5185
5185
|
e.astNode
|
|
5186
5186
|
);
|
|
5187
5187
|
}
|
|
5188
|
-
function
|
|
5188
|
+
function Jc(t) {
|
|
5189
5189
|
const e = /* @__PURE__ */ Object.create(null), n = [], i = /* @__PURE__ */ Object.create(null);
|
|
5190
5190
|
return r;
|
|
5191
5191
|
function r(s) {
|
|
@@ -5210,7 +5210,7 @@ function Kc(t) {
|
|
|
5210
5210
|
i[s.name] = void 0;
|
|
5211
5211
|
}
|
|
5212
5212
|
}
|
|
5213
|
-
function
|
|
5213
|
+
function xi(t, e) {
|
|
5214
5214
|
const { astNode: n, extensionASTNodes: i } = t;
|
|
5215
5215
|
return (n != null ? [n, ...i] : i).flatMap((s) => {
|
|
5216
5216
|
var o;
|
|
@@ -5252,7 +5252,7 @@ function it(t, e) {
|
|
|
5252
5252
|
}
|
|
5253
5253
|
class yu {
|
|
5254
5254
|
constructor(e, n, i) {
|
|
5255
|
-
this._schema = e, this._typeStack = [], this._parentTypeStack = [], this._inputTypeStack = [], this._fieldDefStack = [], this._defaultValueStack = [], this._directive = null, this._argument = null, this._enumValue = null, this._getFieldDef = i ??
|
|
5255
|
+
this._schema = e, this._typeStack = [], this._parentTypeStack = [], this._inputTypeStack = [], this._fieldDefStack = [], this._defaultValueStack = [], this._directive = null, this._argument = null, this._enumValue = null, this._getFieldDef = i ?? Kc, n && (Pt(n) && this._inputTypeStack.push(n), bn(n) && this._parentTypeStack.push(n), Ni(n) && this._typeStack.push(n));
|
|
5256
5256
|
}
|
|
5257
5257
|
get [Symbol.toStringTag]() {
|
|
5258
5258
|
return "TypeInfo";
|
|
@@ -5303,7 +5303,7 @@ class yu {
|
|
|
5303
5303
|
case I.FIELD: {
|
|
5304
5304
|
const r = this.getParentType();
|
|
5305
5305
|
let s, o;
|
|
5306
|
-
r && (s = this._getFieldDef(n, r, e), s && (o = s.type)), this._fieldDefStack.push(s), this._typeStack.push(
|
|
5306
|
+
r && (s = this._getFieldDef(n, r, e), s && (o = s.type)), this._fieldDefStack.push(s), this._typeStack.push(Ni(o) ? o : void 0);
|
|
5307
5307
|
break;
|
|
5308
5308
|
}
|
|
5309
5309
|
case I.DIRECTIVE:
|
|
@@ -5317,7 +5317,7 @@ class yu {
|
|
|
5317
5317
|
case I.INLINE_FRAGMENT:
|
|
5318
5318
|
case I.FRAGMENT_DEFINITION: {
|
|
5319
5319
|
const r = e.typeCondition, s = r ? it(n, r) : jt(this.getType());
|
|
5320
|
-
this._typeStack.push(
|
|
5320
|
+
this._typeStack.push(Ni(s) ? s : void 0);
|
|
5321
5321
|
break;
|
|
5322
5322
|
}
|
|
5323
5323
|
case I.VARIABLE_DEFINITION: {
|
|
@@ -5391,7 +5391,7 @@ class yu {
|
|
|
5391
5391
|
}
|
|
5392
5392
|
}
|
|
5393
5393
|
}
|
|
5394
|
-
function
|
|
5394
|
+
function Kc(t, e, n) {
|
|
5395
5395
|
const i = n.name.value;
|
|
5396
5396
|
if (i === Er.name && t.getQueryType() === e)
|
|
5397
5397
|
return Er;
|
|
@@ -5420,26 +5420,26 @@ function bu(t, e) {
|
|
|
5420
5420
|
}
|
|
5421
5421
|
};
|
|
5422
5422
|
}
|
|
5423
|
-
function
|
|
5423
|
+
function Xc(t) {
|
|
5424
5424
|
return t.kind === I.OPERATION_DEFINITION || t.kind === I.FRAGMENT_DEFINITION;
|
|
5425
5425
|
}
|
|
5426
|
-
function
|
|
5426
|
+
function Zc(t) {
|
|
5427
5427
|
return t.kind === I.SCHEMA_DEFINITION || zs(t) || t.kind === I.DIRECTIVE_DEFINITION;
|
|
5428
5428
|
}
|
|
5429
5429
|
function zs(t) {
|
|
5430
5430
|
return t.kind === I.SCALAR_TYPE_DEFINITION || t.kind === I.OBJECT_TYPE_DEFINITION || t.kind === I.INTERFACE_TYPE_DEFINITION || t.kind === I.UNION_TYPE_DEFINITION || t.kind === I.ENUM_TYPE_DEFINITION || t.kind === I.INPUT_OBJECT_TYPE_DEFINITION;
|
|
5431
5431
|
}
|
|
5432
|
-
function
|
|
5432
|
+
function ef(t) {
|
|
5433
5433
|
return t.kind === I.SCHEMA_EXTENSION || vu(t);
|
|
5434
5434
|
}
|
|
5435
5435
|
function vu(t) {
|
|
5436
5436
|
return t.kind === I.SCALAR_TYPE_EXTENSION || t.kind === I.OBJECT_TYPE_EXTENSION || t.kind === I.INTERFACE_TYPE_EXTENSION || t.kind === I.UNION_TYPE_EXTENSION || t.kind === I.ENUM_TYPE_EXTENSION || t.kind === I.INPUT_OBJECT_TYPE_EXTENSION;
|
|
5437
5437
|
}
|
|
5438
|
-
function
|
|
5438
|
+
function tf(t) {
|
|
5439
5439
|
return {
|
|
5440
5440
|
Document(e) {
|
|
5441
5441
|
for (const n of e.definitions)
|
|
5442
|
-
if (!
|
|
5442
|
+
if (!Xc(n)) {
|
|
5443
5443
|
const i = n.kind === I.SCHEMA_DEFINITION || n.kind === I.SCHEMA_EXTENSION ? "schema" : '"' + n.name.value + '"';
|
|
5444
5444
|
t.reportError(
|
|
5445
5445
|
new P(`The ${i} definition is not executable.`, {
|
|
@@ -5451,7 +5451,7 @@ function nf(t) {
|
|
|
5451
5451
|
}
|
|
5452
5452
|
};
|
|
5453
5453
|
}
|
|
5454
|
-
function
|
|
5454
|
+
function nf(t) {
|
|
5455
5455
|
return {
|
|
5456
5456
|
Field(e) {
|
|
5457
5457
|
const n = t.getParentType();
|
|
@@ -5459,9 +5459,9 @@ function rf(t) {
|
|
|
5459
5459
|
const r = t.getSchema(), s = e.name.value;
|
|
5460
5460
|
let o = mn(
|
|
5461
5461
|
"to use an inline fragment on",
|
|
5462
|
-
|
|
5462
|
+
rf(r, n, s)
|
|
5463
5463
|
);
|
|
5464
|
-
o === "" && (o = mn(
|
|
5464
|
+
o === "" && (o = mn(sf(n, s))), t.reportError(
|
|
5465
5465
|
new P(
|
|
5466
5466
|
`Cannot query field "${s}" on type "${n.name}".` + o,
|
|
5467
5467
|
{
|
|
@@ -5473,7 +5473,7 @@ function rf(t) {
|
|
|
5473
5473
|
}
|
|
5474
5474
|
};
|
|
5475
5475
|
}
|
|
5476
|
-
function
|
|
5476
|
+
function rf(t, e, n) {
|
|
5477
5477
|
if (!tn(e))
|
|
5478
5478
|
return [];
|
|
5479
5479
|
const i = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ Object.create(null);
|
|
@@ -5490,14 +5490,14 @@ function sf(t, e, n) {
|
|
|
5490
5490
|
return u !== 0 ? u : Ee(o) && t.isSubType(o, a) ? -1 : Ee(a) && t.isSubType(a, o) ? 1 : $i(o.name, a.name);
|
|
5491
5491
|
}).map((o) => o.name);
|
|
5492
5492
|
}
|
|
5493
|
-
function
|
|
5493
|
+
function sf(t, e) {
|
|
5494
5494
|
if (pe(t) || Ee(t)) {
|
|
5495
5495
|
const n = Object.keys(t.getFields());
|
|
5496
5496
|
return kn(e, n);
|
|
5497
5497
|
}
|
|
5498
5498
|
return [];
|
|
5499
5499
|
}
|
|
5500
|
-
function
|
|
5500
|
+
function of(t) {
|
|
5501
5501
|
return {
|
|
5502
5502
|
InlineFragment(e) {
|
|
5503
5503
|
const n = e.typeCondition;
|
|
@@ -5532,10 +5532,10 @@ function af(t) {
|
|
|
5532
5532
|
}
|
|
5533
5533
|
};
|
|
5534
5534
|
}
|
|
5535
|
-
function
|
|
5535
|
+
function af(t) {
|
|
5536
5536
|
return {
|
|
5537
5537
|
// eslint-disable-next-line new-cap
|
|
5538
|
-
...
|
|
5538
|
+
...uf(t),
|
|
5539
5539
|
Argument(e) {
|
|
5540
5540
|
const n = t.getArgument(), i = t.getFieldDef(), r = t.getParentType();
|
|
5541
5541
|
if (!n && i && r) {
|
|
@@ -5552,7 +5552,7 @@ function uf(t) {
|
|
|
5552
5552
|
}
|
|
5553
5553
|
};
|
|
5554
5554
|
}
|
|
5555
|
-
function
|
|
5555
|
+
function uf(t) {
|
|
5556
5556
|
const e = /* @__PURE__ */ Object.create(null), n = t.getSchema(), i = n ? n.getDirectives() : Vi;
|
|
5557
5557
|
for (const o of i)
|
|
5558
5558
|
e[o.name] = o.args.map((a) => a.name);
|
|
@@ -5585,7 +5585,7 @@ function lf(t) {
|
|
|
5585
5585
|
}
|
|
5586
5586
|
};
|
|
5587
5587
|
}
|
|
5588
|
-
function
|
|
5588
|
+
function lf(t) {
|
|
5589
5589
|
const e = /* @__PURE__ */ Object.create(null), n = t.getSchema(), i = n ? n.getDirectives() : Vi;
|
|
5590
5590
|
for (const s of i)
|
|
5591
5591
|
e[s.name] = s.locations;
|
|
@@ -5603,7 +5603,7 @@ function cf(t) {
|
|
|
5603
5603
|
);
|
|
5604
5604
|
return;
|
|
5605
5605
|
}
|
|
5606
|
-
const p =
|
|
5606
|
+
const p = cf(c);
|
|
5607
5607
|
p && !g.includes(p) && t.reportError(
|
|
5608
5608
|
new P(
|
|
5609
5609
|
`Directive "@${f}" may not be used on ${p}.`,
|
|
@@ -5615,11 +5615,11 @@ function cf(t) {
|
|
|
5615
5615
|
}
|
|
5616
5616
|
};
|
|
5617
5617
|
}
|
|
5618
|
-
function
|
|
5618
|
+
function cf(t) {
|
|
5619
5619
|
const e = t[t.length - 1];
|
|
5620
5620
|
switch ("kind" in e || Yt(!1), e.kind) {
|
|
5621
5621
|
case I.OPERATION_DEFINITION:
|
|
5622
|
-
return
|
|
5622
|
+
return ff(e.operation);
|
|
5623
5623
|
case I.FIELD:
|
|
5624
5624
|
return K.FIELD;
|
|
5625
5625
|
case I.FRAGMENT_SPREAD:
|
|
@@ -5663,7 +5663,7 @@ function ff(t) {
|
|
|
5663
5663
|
Yt(!1, "Unexpected kind: " + G(e.kind));
|
|
5664
5664
|
}
|
|
5665
5665
|
}
|
|
5666
|
-
function
|
|
5666
|
+
function ff(t) {
|
|
5667
5667
|
switch (t) {
|
|
5668
5668
|
case Je.QUERY:
|
|
5669
5669
|
return K.QUERY;
|
|
@@ -5673,7 +5673,7 @@ function df(t) {
|
|
|
5673
5673
|
return K.SUBSCRIPTION;
|
|
5674
5674
|
}
|
|
5675
5675
|
}
|
|
5676
|
-
function
|
|
5676
|
+
function df(t) {
|
|
5677
5677
|
return {
|
|
5678
5678
|
FragmentSpread(e) {
|
|
5679
5679
|
const n = e.name.value;
|
|
@@ -5685,7 +5685,7 @@ function hf(t) {
|
|
|
5685
5685
|
}
|
|
5686
5686
|
};
|
|
5687
5687
|
}
|
|
5688
|
-
function
|
|
5688
|
+
function hf(t) {
|
|
5689
5689
|
const e = t.getSchema(), n = e ? e.getTypeMap() : /* @__PURE__ */ Object.create(null), i = /* @__PURE__ */ Object.create(null);
|
|
5690
5690
|
for (const s of t.getDocument().definitions)
|
|
5691
5691
|
zs(s) && (i[s.name.value] = !0);
|
|
@@ -5698,7 +5698,7 @@ function pf(t) {
|
|
|
5698
5698
|
const f = s.name.value;
|
|
5699
5699
|
if (!n[f] && !i[f]) {
|
|
5700
5700
|
var g;
|
|
5701
|
-
const p = (g = c[2]) !== null && g !== void 0 ? g : a, w = p != null &&
|
|
5701
|
+
const p = (g = c[2]) !== null && g !== void 0 ? g : a, w = p != null && pf(p);
|
|
5702
5702
|
if (w && $o.includes(f))
|
|
5703
5703
|
return;
|
|
5704
5704
|
const v = kn(
|
|
@@ -5717,13 +5717,13 @@ function pf(t) {
|
|
|
5717
5717
|
}
|
|
5718
5718
|
};
|
|
5719
5719
|
}
|
|
5720
|
-
const $o = [...
|
|
5720
|
+
const $o = [...kc, ...hu].map(
|
|
5721
5721
|
(t) => t.name
|
|
5722
5722
|
);
|
|
5723
|
-
function
|
|
5724
|
-
return "kind" in t && (
|
|
5723
|
+
function pf(t) {
|
|
5724
|
+
return "kind" in t && (Zc(t) || ef(t));
|
|
5725
5725
|
}
|
|
5726
|
-
function
|
|
5726
|
+
function gf(t) {
|
|
5727
5727
|
let e = 0;
|
|
5728
5728
|
return {
|
|
5729
5729
|
Document(n) {
|
|
@@ -5743,8 +5743,8 @@ function mf(t) {
|
|
|
5743
5743
|
}
|
|
5744
5744
|
};
|
|
5745
5745
|
}
|
|
5746
|
-
const
|
|
5747
|
-
function
|
|
5746
|
+
const mf = 3;
|
|
5747
|
+
function yf(t) {
|
|
5748
5748
|
function e(n, i = /* @__PURE__ */ Object.create(null), r = 0) {
|
|
5749
5749
|
if (n.kind === I.FRAGMENT_SPREAD) {
|
|
5750
5750
|
const s = n.name.value;
|
|
@@ -5760,7 +5760,7 @@ function bf(t) {
|
|
|
5760
5760
|
}
|
|
5761
5761
|
}
|
|
5762
5762
|
if (n.kind === I.FIELD && // check all introspection lists
|
|
5763
|
-
(n.name.value === "fields" || n.name.value === "interfaces" || n.name.value === "possibleTypes" || n.name.value === "inputFields") && (r++, r >=
|
|
5763
|
+
(n.name.value === "fields" || n.name.value === "interfaces" || n.name.value === "possibleTypes" || n.name.value === "inputFields") && (r++, r >= mf))
|
|
5764
5764
|
return !0;
|
|
5765
5765
|
if ("selectionSet" in n && n.selectionSet) {
|
|
5766
5766
|
for (const s of n.selectionSet.selections)
|
|
@@ -5780,7 +5780,7 @@ function bf(t) {
|
|
|
5780
5780
|
}
|
|
5781
5781
|
};
|
|
5782
5782
|
}
|
|
5783
|
-
function
|
|
5783
|
+
function bf(t) {
|
|
5784
5784
|
const e = /* @__PURE__ */ Object.create(null), n = [], i = /* @__PURE__ */ Object.create(null);
|
|
5785
5785
|
return {
|
|
5786
5786
|
OperationDefinition: () => !1,
|
|
@@ -5818,7 +5818,7 @@ function vf(t) {
|
|
|
5818
5818
|
}
|
|
5819
5819
|
}
|
|
5820
5820
|
}
|
|
5821
|
-
function
|
|
5821
|
+
function vf(t) {
|
|
5822
5822
|
let e = /* @__PURE__ */ Object.create(null);
|
|
5823
5823
|
return {
|
|
5824
5824
|
OperationDefinition: {
|
|
@@ -5845,7 +5845,7 @@ function Ef(t) {
|
|
|
5845
5845
|
}
|
|
5846
5846
|
};
|
|
5847
5847
|
}
|
|
5848
|
-
function
|
|
5848
|
+
function Ef(t) {
|
|
5849
5849
|
const e = [], n = [];
|
|
5850
5850
|
return {
|
|
5851
5851
|
OperationDefinition(i) {
|
|
@@ -5874,7 +5874,7 @@ function wf(t) {
|
|
|
5874
5874
|
}
|
|
5875
5875
|
};
|
|
5876
5876
|
}
|
|
5877
|
-
function
|
|
5877
|
+
function wf(t) {
|
|
5878
5878
|
let e = [];
|
|
5879
5879
|
return {
|
|
5880
5880
|
OperationDefinition: {
|
|
@@ -5906,7 +5906,7 @@ function Tf(t) {
|
|
|
5906
5906
|
function Qs(t) {
|
|
5907
5907
|
switch (t.kind) {
|
|
5908
5908
|
case I.OBJECT:
|
|
5909
|
-
return { ...t, fields:
|
|
5909
|
+
return { ...t, fields: Tf(t.fields) };
|
|
5910
5910
|
case I.LIST:
|
|
5911
5911
|
return { ...t, values: t.values.map(Qs) };
|
|
5912
5912
|
case I.INT:
|
|
@@ -5919,7 +5919,7 @@ function Qs(t) {
|
|
|
5919
5919
|
return t;
|
|
5920
5920
|
}
|
|
5921
5921
|
}
|
|
5922
|
-
function
|
|
5922
|
+
function Tf(t) {
|
|
5923
5923
|
return t.map((e) => ({
|
|
5924
5924
|
...e,
|
|
5925
5925
|
value: Qs(e.value)
|
|
@@ -5932,11 +5932,11 @@ function Eu(t) {
|
|
|
5932
5932
|
([e, n]) => `subfields "${e}" conflict because ` + Eu(n)
|
|
5933
5933
|
).join(" and ") : t;
|
|
5934
5934
|
}
|
|
5935
|
-
function
|
|
5936
|
-
const e = new
|
|
5935
|
+
function Sf(t) {
|
|
5936
|
+
const e = new xf(), n = /* @__PURE__ */ new Map();
|
|
5937
5937
|
return {
|
|
5938
5938
|
SelectionSet(i) {
|
|
5939
|
-
const r =
|
|
5939
|
+
const r = _f(
|
|
5940
5940
|
t,
|
|
5941
5941
|
n,
|
|
5942
5942
|
e,
|
|
@@ -5957,14 +5957,14 @@ function _f(t) {
|
|
|
5957
5957
|
}
|
|
5958
5958
|
};
|
|
5959
5959
|
}
|
|
5960
|
-
function
|
|
5960
|
+
function _f(t, e, n, i, r) {
|
|
5961
5961
|
const s = [], [o, a] = Ir(
|
|
5962
5962
|
t,
|
|
5963
5963
|
e,
|
|
5964
5964
|
i,
|
|
5965
5965
|
r
|
|
5966
5966
|
);
|
|
5967
|
-
if (
|
|
5967
|
+
if (Of(
|
|
5968
5968
|
t,
|
|
5969
5969
|
s,
|
|
5970
5970
|
e,
|
|
@@ -6083,7 +6083,7 @@ function _r(t, e, n, i, r, s, o) {
|
|
|
6083
6083
|
o
|
|
6084
6084
|
);
|
|
6085
6085
|
}
|
|
6086
|
-
function
|
|
6086
|
+
function If(t, e, n, i, r, s, o, a) {
|
|
6087
6087
|
const u = [], [c, f] = Ir(
|
|
6088
6088
|
t,
|
|
6089
6089
|
e,
|
|
@@ -6137,7 +6137,7 @@ function Of(t, e, n, i, r, s, o, a) {
|
|
|
6137
6137
|
);
|
|
6138
6138
|
return u;
|
|
6139
6139
|
}
|
|
6140
|
-
function
|
|
6140
|
+
function Of(t, e, n, i, r) {
|
|
6141
6141
|
for (const [s, o] of Object.entries(r))
|
|
6142
6142
|
if (o.length > 1)
|
|
6143
6143
|
for (let a = 0; a < o.length; a++)
|
|
@@ -6184,7 +6184,7 @@ function wu(t, e, n, i, r, s, o) {
|
|
|
6184
6184
|
[u],
|
|
6185
6185
|
[g]
|
|
6186
6186
|
];
|
|
6187
|
-
if (!
|
|
6187
|
+
if (!Nf(u, g))
|
|
6188
6188
|
return [
|
|
6189
6189
|
[r, "they have differing arguments"],
|
|
6190
6190
|
[u],
|
|
@@ -6205,7 +6205,7 @@ function wu(t, e, n, i, r, s, o) {
|
|
|
6205
6205
|
];
|
|
6206
6206
|
const x = u.selectionSet, y = g.selectionSet;
|
|
6207
6207
|
if (x && y) {
|
|
6208
|
-
const S =
|
|
6208
|
+
const S = If(
|
|
6209
6209
|
t,
|
|
6210
6210
|
e,
|
|
6211
6211
|
n,
|
|
@@ -6215,10 +6215,10 @@ function wu(t, e, n, i, r, s, o) {
|
|
|
6215
6215
|
jt(R),
|
|
6216
6216
|
y
|
|
6217
6217
|
);
|
|
6218
|
-
return
|
|
6218
|
+
return Af(S, r, u, g);
|
|
6219
6219
|
}
|
|
6220
6220
|
}
|
|
6221
|
-
function
|
|
6221
|
+
function Nf(t, e) {
|
|
6222
6222
|
const n = t.arguments, i = e.arguments;
|
|
6223
6223
|
if (n === void 0 || n.length === 0)
|
|
6224
6224
|
return i === void 0 || i.length === 0;
|
|
@@ -6290,7 +6290,7 @@ function Tu(t, e, n, i, r) {
|
|
|
6290
6290
|
}
|
|
6291
6291
|
}
|
|
6292
6292
|
}
|
|
6293
|
-
function
|
|
6293
|
+
function Af(t, e, n, i) {
|
|
6294
6294
|
if (t.length > 0)
|
|
6295
6295
|
return [
|
|
6296
6296
|
[e, t.map(([r]) => r)],
|
|
@@ -6298,7 +6298,7 @@ function xf(t, e, n, i) {
|
|
|
6298
6298
|
[i, ...t.map(([, , r]) => r).flat()]
|
|
6299
6299
|
];
|
|
6300
6300
|
}
|
|
6301
|
-
class
|
|
6301
|
+
class xf {
|
|
6302
6302
|
constructor() {
|
|
6303
6303
|
this._data = /* @__PURE__ */ new Map();
|
|
6304
6304
|
}
|
|
@@ -6312,7 +6312,7 @@ class Ff {
|
|
|
6312
6312
|
o === void 0 ? this._data.set(r, /* @__PURE__ */ new Map([[s, i]])) : o.set(s, i);
|
|
6313
6313
|
}
|
|
6314
6314
|
}
|
|
6315
|
-
function
|
|
6315
|
+
function Ff(t) {
|
|
6316
6316
|
return {
|
|
6317
6317
|
InlineFragment(e) {
|
|
6318
6318
|
const n = t.getType(), i = t.getParentType();
|
|
@@ -6329,7 +6329,7 @@ function Rf(t) {
|
|
|
6329
6329
|
}
|
|
6330
6330
|
},
|
|
6331
6331
|
FragmentSpread(e) {
|
|
6332
|
-
const n = e.name.value, i =
|
|
6332
|
+
const n = e.name.value, i = Rf(t, n), r = t.getParentType();
|
|
6333
6333
|
if (i && r && !Ro(t.getSchema(), i, r)) {
|
|
6334
6334
|
const s = G(r), o = G(i);
|
|
6335
6335
|
t.reportError(
|
|
@@ -6344,7 +6344,7 @@ function Rf(t) {
|
|
|
6344
6344
|
}
|
|
6345
6345
|
};
|
|
6346
6346
|
}
|
|
6347
|
-
function
|
|
6347
|
+
function Rf(t, e) {
|
|
6348
6348
|
const n = t.getFragment(e);
|
|
6349
6349
|
if (n) {
|
|
6350
6350
|
const i = it(t.getSchema(), n.typeCondition);
|
|
@@ -6352,10 +6352,10 @@ function Lf(t, e) {
|
|
|
6352
6352
|
return i;
|
|
6353
6353
|
}
|
|
6354
6354
|
}
|
|
6355
|
-
function
|
|
6355
|
+
function Lf(t) {
|
|
6356
6356
|
return {
|
|
6357
6357
|
// eslint-disable-next-line new-cap
|
|
6358
|
-
...
|
|
6358
|
+
...Cf(t),
|
|
6359
6359
|
Field: {
|
|
6360
6360
|
// Validate on leave to allow for deeper errors to appear first.
|
|
6361
6361
|
leave(e) {
|
|
@@ -6384,7 +6384,7 @@ function Cf(t) {
|
|
|
6384
6384
|
}
|
|
6385
6385
|
};
|
|
6386
6386
|
}
|
|
6387
|
-
function
|
|
6387
|
+
function Cf(t) {
|
|
6388
6388
|
var e;
|
|
6389
6389
|
const n = /* @__PURE__ */ Object.create(null), i = t.getSchema(), r = (e = i == null ? void 0 : i.getDirectives()) !== null && e !== void 0 ? e : Vi;
|
|
6390
6390
|
for (const a of r)
|
|
@@ -6398,7 +6398,7 @@ function kf(t) {
|
|
|
6398
6398
|
var o;
|
|
6399
6399
|
const u = (o = a.arguments) !== null && o !== void 0 ? o : [];
|
|
6400
6400
|
n[a.name.value] = ii(
|
|
6401
|
-
u.filter(
|
|
6401
|
+
u.filter(kf),
|
|
6402
6402
|
(c) => c.name.value
|
|
6403
6403
|
);
|
|
6404
6404
|
}
|
|
@@ -6427,10 +6427,10 @@ function kf(t) {
|
|
|
6427
6427
|
}
|
|
6428
6428
|
};
|
|
6429
6429
|
}
|
|
6430
|
-
function
|
|
6430
|
+
function kf(t) {
|
|
6431
6431
|
return t.type.kind === I.NON_NULL_TYPE && t.defaultValue == null;
|
|
6432
6432
|
}
|
|
6433
|
-
function
|
|
6433
|
+
function Df(t) {
|
|
6434
6434
|
return {
|
|
6435
6435
|
Field(e) {
|
|
6436
6436
|
const n = t.getType(), i = e.selectionSet;
|
|
@@ -6462,7 +6462,7 @@ function $f(t) {
|
|
|
6462
6462
|
}
|
|
6463
6463
|
};
|
|
6464
6464
|
}
|
|
6465
|
-
function
|
|
6465
|
+
function $f(t) {
|
|
6466
6466
|
return t.map(
|
|
6467
6467
|
(e) => typeof e == "number" ? "[" + e.toString() + "]" : "." + e
|
|
6468
6468
|
).join("");
|
|
@@ -6481,17 +6481,17 @@ function Kt(t) {
|
|
|
6481
6481
|
e.push(n.key), n = n.prev;
|
|
6482
6482
|
return e.reverse();
|
|
6483
6483
|
}
|
|
6484
|
-
function
|
|
6485
|
-
return
|
|
6484
|
+
function Pf(t, e, n = jf) {
|
|
6485
|
+
return wi(t, e, n, void 0);
|
|
6486
6486
|
}
|
|
6487
|
-
function
|
|
6487
|
+
function jf(t, e, n) {
|
|
6488
6488
|
let i = "Invalid value " + G(e);
|
|
6489
|
-
throw t.length > 0 && (i += ` at "value${
|
|
6489
|
+
throw t.length > 0 && (i += ` at "value${$f(t)}"`), n.message = i + ": " + n.message, n;
|
|
6490
6490
|
}
|
|
6491
|
-
function
|
|
6491
|
+
function wi(t, e, n, i) {
|
|
6492
6492
|
if (re(e)) {
|
|
6493
6493
|
if (t != null)
|
|
6494
|
-
return
|
|
6494
|
+
return wi(t, e.ofType, n, i);
|
|
6495
6495
|
n(
|
|
6496
6496
|
Kt(i),
|
|
6497
6497
|
t,
|
|
@@ -6507,8 +6507,8 @@ function Ei(t, e, n, i) {
|
|
|
6507
6507
|
const r = e.ofType;
|
|
6508
6508
|
return au(t) ? Array.from(t, (s, o) => {
|
|
6509
6509
|
const a = jo(i, o, void 0);
|
|
6510
|
-
return
|
|
6511
|
-
}) : [
|
|
6510
|
+
return wi(s, r, n, a);
|
|
6511
|
+
}) : [wi(t, r, n, i)];
|
|
6512
6512
|
}
|
|
6513
6513
|
if (ze(e)) {
|
|
6514
6514
|
if (!Ht(t)) {
|
|
@@ -6537,7 +6537,7 @@ function Ei(t, e, n, i) {
|
|
|
6537
6537
|
}
|
|
6538
6538
|
continue;
|
|
6539
6539
|
}
|
|
6540
|
-
r[o.name] =
|
|
6540
|
+
r[o.name] = wi(
|
|
6541
6541
|
a,
|
|
6542
6542
|
o.type,
|
|
6543
6543
|
n,
|
|
@@ -6671,7 +6671,7 @@ function Nn(t, e, n) {
|
|
|
6671
6671
|
function Mo(t, e) {
|
|
6672
6672
|
return t.kind === I.VARIABLE && (e == null || e[t.name.value] === void 0);
|
|
6673
6673
|
}
|
|
6674
|
-
function
|
|
6674
|
+
function Mf(t, e, n) {
|
|
6675
6675
|
var i;
|
|
6676
6676
|
const r = {}, s = (i = e.arguments) !== null && i !== void 0 ? i : [], o = ii(s, (a) => a.name.value);
|
|
6677
6677
|
for (const a of t.args) {
|
|
@@ -6692,7 +6692,7 @@ function Uf(t, e, n) {
|
|
|
6692
6692
|
let p = g.kind === I.NULL;
|
|
6693
6693
|
if (g.kind === I.VARIABLE) {
|
|
6694
6694
|
const v = g.name.value;
|
|
6695
|
-
if (n == null || !
|
|
6695
|
+
if (n == null || !Uf(n, v)) {
|
|
6696
6696
|
if (a.defaultValue !== void 0)
|
|
6697
6697
|
r[u] = a.defaultValue;
|
|
6698
6698
|
else if (re(c))
|
|
@@ -6731,12 +6731,12 @@ function si(t, e, n) {
|
|
|
6731
6731
|
(s) => s.name.value === t.name
|
|
6732
6732
|
);
|
|
6733
6733
|
if (r)
|
|
6734
|
-
return
|
|
6734
|
+
return Mf(t, r, n);
|
|
6735
6735
|
}
|
|
6736
|
-
function
|
|
6736
|
+
function Uf(t, e) {
|
|
6737
6737
|
return Object.prototype.hasOwnProperty.call(t, e);
|
|
6738
6738
|
}
|
|
6739
|
-
function
|
|
6739
|
+
function Vf(t, e, n, i, r) {
|
|
6740
6740
|
const s = /* @__PURE__ */ new Map();
|
|
6741
6741
|
return gs(
|
|
6742
6742
|
t,
|
|
@@ -6754,7 +6754,7 @@ function gs(t, e, n, i, r, s, o) {
|
|
|
6754
6754
|
case I.FIELD: {
|
|
6755
6755
|
if (!Zr(n, a))
|
|
6756
6756
|
continue;
|
|
6757
|
-
const u =
|
|
6757
|
+
const u = Bf(a), c = s.get(u);
|
|
6758
6758
|
c !== void 0 ? c.push(a) : s.set(u, [a]);
|
|
6759
6759
|
break;
|
|
6760
6760
|
}
|
|
@@ -6811,10 +6811,10 @@ function Uo(t, e, n) {
|
|
|
6811
6811
|
const r = it(t, i);
|
|
6812
6812
|
return r === n ? !0 : tn(r) ? t.isSubType(r, n) : !1;
|
|
6813
6813
|
}
|
|
6814
|
-
function
|
|
6814
|
+
function Bf(t) {
|
|
6815
6815
|
return t.alias ? t.alias.value : t.name.value;
|
|
6816
6816
|
}
|
|
6817
|
-
function
|
|
6817
|
+
function Gf(t) {
|
|
6818
6818
|
return {
|
|
6819
6819
|
OperationDefinition(e) {
|
|
6820
6820
|
if (e.operation === "subscription") {
|
|
@@ -6823,7 +6823,7 @@ function qf(t) {
|
|
|
6823
6823
|
const r = e.name ? e.name.value : null, s = /* @__PURE__ */ Object.create(null), o = t.getDocument(), a = /* @__PURE__ */ Object.create(null);
|
|
6824
6824
|
for (const c of o.definitions)
|
|
6825
6825
|
c.kind === I.FRAGMENT_DEFINITION && (a[c.name.value] = c);
|
|
6826
|
-
const u =
|
|
6826
|
+
const u = Vf(
|
|
6827
6827
|
n,
|
|
6828
6828
|
a,
|
|
6829
6829
|
s,
|
|
@@ -6863,7 +6863,7 @@ function Su(t, e) {
|
|
|
6863
6863
|
}
|
|
6864
6864
|
return n;
|
|
6865
6865
|
}
|
|
6866
|
-
function
|
|
6866
|
+
function qf(t) {
|
|
6867
6867
|
return {
|
|
6868
6868
|
Field: e,
|
|
6869
6869
|
Directive: e
|
|
@@ -6882,7 +6882,7 @@ function zf(t) {
|
|
|
6882
6882
|
);
|
|
6883
6883
|
}
|
|
6884
6884
|
}
|
|
6885
|
-
function
|
|
6885
|
+
function zf(t) {
|
|
6886
6886
|
const e = /* @__PURE__ */ Object.create(null), n = t.getSchema(), i = n ? n.getDirectives() : Vi;
|
|
6887
6887
|
for (const a of i)
|
|
6888
6888
|
e[a.name] = !a.isRepeatable;
|
|
@@ -6919,7 +6919,7 @@ function Qf(t) {
|
|
|
6919
6919
|
}
|
|
6920
6920
|
};
|
|
6921
6921
|
}
|
|
6922
|
-
function
|
|
6922
|
+
function Qf(t) {
|
|
6923
6923
|
const e = /* @__PURE__ */ Object.create(null);
|
|
6924
6924
|
return {
|
|
6925
6925
|
OperationDefinition: () => !1,
|
|
@@ -6936,7 +6936,7 @@ function Wf(t) {
|
|
|
6936
6936
|
}
|
|
6937
6937
|
};
|
|
6938
6938
|
}
|
|
6939
|
-
function
|
|
6939
|
+
function Wf(t) {
|
|
6940
6940
|
const e = [];
|
|
6941
6941
|
let n = /* @__PURE__ */ Object.create(null);
|
|
6942
6942
|
return {
|
|
@@ -6962,7 +6962,7 @@ function Yf(t) {
|
|
|
6962
6962
|
}
|
|
6963
6963
|
};
|
|
6964
6964
|
}
|
|
6965
|
-
function
|
|
6965
|
+
function Yf(t) {
|
|
6966
6966
|
const e = /* @__PURE__ */ Object.create(null);
|
|
6967
6967
|
return {
|
|
6968
6968
|
OperationDefinition(n) {
|
|
@@ -6982,7 +6982,7 @@ function Hf(t) {
|
|
|
6982
6982
|
FragmentDefinition: () => !1
|
|
6983
6983
|
};
|
|
6984
6984
|
}
|
|
6985
|
-
function
|
|
6985
|
+
function Hf(t) {
|
|
6986
6986
|
return {
|
|
6987
6987
|
OperationDefinition(e) {
|
|
6988
6988
|
var n;
|
|
@@ -7002,7 +7002,7 @@ function Jf(t) {
|
|
|
7002
7002
|
}
|
|
7003
7003
|
};
|
|
7004
7004
|
}
|
|
7005
|
-
function
|
|
7005
|
+
function Jf(t) {
|
|
7006
7006
|
let e = {};
|
|
7007
7007
|
return {
|
|
7008
7008
|
OperationDefinition: {
|
|
@@ -7035,7 +7035,7 @@ function Kf(t) {
|
|
|
7035
7035
|
)
|
|
7036
7036
|
);
|
|
7037
7037
|
}
|
|
7038
|
-
i.isOneOf &&
|
|
7038
|
+
i.isOneOf && Kf(
|
|
7039
7039
|
t,
|
|
7040
7040
|
n,
|
|
7041
7041
|
i,
|
|
@@ -7124,7 +7124,7 @@ function Sn(t, e) {
|
|
|
7124
7124
|
);
|
|
7125
7125
|
}
|
|
7126
7126
|
}
|
|
7127
|
-
function
|
|
7127
|
+
function Kf(t, e, n, i, r) {
|
|
7128
7128
|
var s;
|
|
7129
7129
|
const o = Object.keys(i);
|
|
7130
7130
|
if (o.length !== 1) {
|
|
@@ -7159,7 +7159,7 @@ function Xf(t, e, n, i, r) {
|
|
|
7159
7159
|
);
|
|
7160
7160
|
}
|
|
7161
7161
|
}
|
|
7162
|
-
function
|
|
7162
|
+
function Xf(t) {
|
|
7163
7163
|
return {
|
|
7164
7164
|
VariableDefinition(e) {
|
|
7165
7165
|
const n = it(t.getSchema(), e.type);
|
|
@@ -7177,7 +7177,7 @@ function Zf(t) {
|
|
|
7177
7177
|
}
|
|
7178
7178
|
};
|
|
7179
7179
|
}
|
|
7180
|
-
function
|
|
7180
|
+
function Zf(t) {
|
|
7181
7181
|
let e = /* @__PURE__ */ Object.create(null);
|
|
7182
7182
|
return {
|
|
7183
7183
|
OperationDefinition: {
|
|
@@ -7190,7 +7190,7 @@ function ed(t) {
|
|
|
7190
7190
|
const a = r.name.value, u = e[a];
|
|
7191
7191
|
if (u && s) {
|
|
7192
7192
|
const c = t.getSchema(), f = it(c, u.type);
|
|
7193
|
-
if (f && !
|
|
7193
|
+
if (f && !ed(
|
|
7194
7194
|
c,
|
|
7195
7195
|
f,
|
|
7196
7196
|
u.defaultValue,
|
|
@@ -7216,7 +7216,7 @@ function ed(t) {
|
|
|
7216
7216
|
}
|
|
7217
7217
|
};
|
|
7218
7218
|
}
|
|
7219
|
-
function
|
|
7219
|
+
function ed(t, e, n, i, r) {
|
|
7220
7220
|
if (re(i) && !re(e)) {
|
|
7221
7221
|
if (!(n != null && n.kind !== I.NULL) && !(r !== void 0))
|
|
7222
7222
|
return !1;
|
|
@@ -7225,36 +7225,36 @@ function td(t, e, n, i, r) {
|
|
|
7225
7225
|
}
|
|
7226
7226
|
return Wn(t, e, i);
|
|
7227
7227
|
}
|
|
7228
|
-
const
|
|
7228
|
+
const td = Object.freeze([yf]), _u = Object.freeze([
|
|
7229
|
+
tf,
|
|
7230
|
+
Yf,
|
|
7231
|
+
gf,
|
|
7232
|
+
Gf,
|
|
7233
|
+
hf,
|
|
7234
|
+
of,
|
|
7235
|
+
Xf,
|
|
7236
|
+
Df,
|
|
7229
7237
|
nf,
|
|
7238
|
+
Qf,
|
|
7239
|
+
df,
|
|
7240
|
+
Ef,
|
|
7241
|
+
Ff,
|
|
7242
|
+
bf,
|
|
7230
7243
|
Hf,
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7244
|
+
vf,
|
|
7245
|
+
wf,
|
|
7246
|
+
lf,
|
|
7247
|
+
zf,
|
|
7234
7248
|
af,
|
|
7249
|
+
qf,
|
|
7250
|
+
Jf,
|
|
7251
|
+
Lf,
|
|
7235
7252
|
Zf,
|
|
7236
|
-
|
|
7237
|
-
rf,
|
|
7253
|
+
Sf,
|
|
7238
7254
|
Wf,
|
|
7239
|
-
|
|
7240
|
-
wf,
|
|
7241
|
-
Rf,
|
|
7242
|
-
vf,
|
|
7243
|
-
Jf,
|
|
7244
|
-
Ef,
|
|
7245
|
-
Tf,
|
|
7246
|
-
cf,
|
|
7247
|
-
Qf,
|
|
7248
|
-
uf,
|
|
7249
|
-
zf,
|
|
7250
|
-
Kf,
|
|
7251
|
-
Cf,
|
|
7252
|
-
ed,
|
|
7253
|
-
_f,
|
|
7254
|
-
Yf,
|
|
7255
|
-
...nd
|
|
7255
|
+
...td
|
|
7256
7256
|
]);
|
|
7257
|
-
class
|
|
7257
|
+
class nd {
|
|
7258
7258
|
constructor(e, n) {
|
|
7259
7259
|
this._ast = e, this._fragments = void 0, this._fragmentSpreads = /* @__PURE__ */ new Map(), this._recursivelyReferencedFragments = /* @__PURE__ */ new Map(), this._onError = n;
|
|
7260
7260
|
}
|
|
@@ -7312,7 +7312,7 @@ class id {
|
|
|
7312
7312
|
return n;
|
|
7313
7313
|
}
|
|
7314
7314
|
}
|
|
7315
|
-
class
|
|
7315
|
+
class id extends nd {
|
|
7316
7316
|
constructor(e, n, i, r) {
|
|
7317
7317
|
super(n, r), this._schema = e, this._typeInfo = i, this._variableUsages = /* @__PURE__ */ new Map(), this._recursiveVariableUsages = /* @__PURE__ */ new Map();
|
|
7318
7318
|
}
|
|
@@ -7377,11 +7377,11 @@ class rd extends id {
|
|
|
7377
7377
|
return this._typeInfo.getEnumValue();
|
|
7378
7378
|
}
|
|
7379
7379
|
}
|
|
7380
|
-
function
|
|
7380
|
+
function rd(t, e, n = _u, i, r = new yu(t)) {
|
|
7381
7381
|
var s;
|
|
7382
7382
|
const o = (s = i == null ? void 0 : i.maxErrors) !== null && s !== void 0 ? s : 100;
|
|
7383
7383
|
e || ae(!1, "Must provide document."), mu(t);
|
|
7384
|
-
const a = Object.freeze({}), u = [], c = new
|
|
7384
|
+
const a = Object.freeze({}), u = [], c = new id(
|
|
7385
7385
|
t,
|
|
7386
7386
|
e,
|
|
7387
7387
|
r,
|
|
@@ -7394,7 +7394,7 @@ function sd(t, e, n = _u, i, r = new yu(t)) {
|
|
|
7394
7394
|
), a;
|
|
7395
7395
|
u.push(g);
|
|
7396
7396
|
}
|
|
7397
|
-
), f =
|
|
7397
|
+
), f = Oc(n.map((g) => g(c)));
|
|
7398
7398
|
try {
|
|
7399
7399
|
Ps(e, bu(r, f));
|
|
7400
7400
|
} catch (g) {
|
|
@@ -7403,18 +7403,18 @@ function sd(t, e, n = _u, i, r = new yu(t)) {
|
|
|
7403
7403
|
}
|
|
7404
7404
|
return u;
|
|
7405
7405
|
}
|
|
7406
|
-
function
|
|
7407
|
-
return t instanceof Error ? t : new
|
|
7406
|
+
function sd(t) {
|
|
7407
|
+
return t instanceof Error ? t : new od(t);
|
|
7408
7408
|
}
|
|
7409
|
-
let
|
|
7409
|
+
let od = class extends Error {
|
|
7410
7410
|
constructor(e) {
|
|
7411
7411
|
super("Unexpected error value: " + G(e)), this.name = "NonErrorThrown", this.thrownValue = e;
|
|
7412
7412
|
}
|
|
7413
7413
|
};
|
|
7414
7414
|
function tt(t, e, n) {
|
|
7415
7415
|
var i;
|
|
7416
|
-
const r =
|
|
7417
|
-
return
|
|
7416
|
+
const r = sd(t);
|
|
7417
|
+
return ad(r) ? r : new P(r.message, {
|
|
7418
7418
|
nodes: (i = r.nodes) !== null && i !== void 0 ? i : e,
|
|
7419
7419
|
source: r.source,
|
|
7420
7420
|
positions: r.positions,
|
|
@@ -7422,7 +7422,7 @@ function tt(t, e, n) {
|
|
|
7422
7422
|
originalError: r
|
|
7423
7423
|
});
|
|
7424
7424
|
}
|
|
7425
|
-
function
|
|
7425
|
+
function ad(t) {
|
|
7426
7426
|
return Array.isArray(t.path);
|
|
7427
7427
|
}
|
|
7428
7428
|
const Vo = function(t, e, n, i) {
|
|
@@ -7433,7 +7433,7 @@ const Vo = function(t, e, n, i) {
|
|
|
7433
7433
|
const a = r[o];
|
|
7434
7434
|
if (a.isTypeOf) {
|
|
7435
7435
|
const u = a.isTypeOf(t, e, n);
|
|
7436
|
-
if (
|
|
7436
|
+
if (Gl(u))
|
|
7437
7437
|
s[o] = u;
|
|
7438
7438
|
else if (u)
|
|
7439
7439
|
return a.name;
|
|
@@ -7465,7 +7465,7 @@ function Ys(t, e) {
|
|
|
7465
7465
|
}
|
|
7466
7466
|
return n;
|
|
7467
7467
|
}
|
|
7468
|
-
function
|
|
7468
|
+
function ud(t) {
|
|
7469
7469
|
const e = t.toConfig(), n = Lr(
|
|
7470
7470
|
es(e.types),
|
|
7471
7471
|
(p) => p.name,
|
|
@@ -7550,7 +7550,7 @@ function ld(t) {
|
|
|
7550
7550
|
}
|
|
7551
7551
|
if (ze(p)) {
|
|
7552
7552
|
const w = p.toConfig();
|
|
7553
|
-
return new
|
|
7553
|
+
return new Ai({
|
|
7554
7554
|
...w,
|
|
7555
7555
|
fields: () => c(w.fields)
|
|
7556
7556
|
});
|
|
@@ -7583,18 +7583,18 @@ class ie extends Bi {
|
|
|
7583
7583
|
super(e, n), this.name = "PothosSchemaError";
|
|
7584
7584
|
}
|
|
7585
7585
|
}
|
|
7586
|
-
const
|
|
7587
|
-
function
|
|
7586
|
+
const ld = Symbol.for("Pothos.contextCache");
|
|
7587
|
+
function cd(t) {
|
|
7588
7588
|
const e = /* @__PURE__ */ new WeakMap();
|
|
7589
7589
|
return (n, ...i) => {
|
|
7590
|
-
const r = n[
|
|
7590
|
+
const r = n[ld] || n;
|
|
7591
7591
|
if (e.has(r))
|
|
7592
7592
|
return e.get(r);
|
|
7593
7593
|
const s = t(n, ...i);
|
|
7594
7594
|
return e.set(r, s), s;
|
|
7595
7595
|
};
|
|
7596
7596
|
}
|
|
7597
|
-
function
|
|
7597
|
+
function fi(t, e, n) {
|
|
7598
7598
|
return e in t ? Object.defineProperty(t, e, {
|
|
7599
7599
|
value: n,
|
|
7600
7600
|
enumerable: !0,
|
|
@@ -7602,8 +7602,8 @@ function ci(t, e, n) {
|
|
|
7602
7602
|
writable: !0
|
|
7603
7603
|
}) : t[e] = n, t;
|
|
7604
7604
|
}
|
|
7605
|
-
const
|
|
7606
|
-
class
|
|
7605
|
+
const di = /* @__PURE__ */ new WeakMap();
|
|
7606
|
+
class fd {
|
|
7607
7607
|
/**
|
|
7608
7608
|
* Called for each type defined with the SchemaBuilder
|
|
7609
7609
|
* @param {PothosTypeConfig} typeConfig - Config object describing the added type
|
|
@@ -7686,11 +7686,11 @@ class dd {
|
|
|
7686
7686
|
return e;
|
|
7687
7687
|
}
|
|
7688
7688
|
runUnique(e, n) {
|
|
7689
|
-
if (
|
|
7689
|
+
if (di.has(this.builder) || di.set(this.builder, /* @__PURE__ */ new Map()), !di.get(this.builder).has(e)) {
|
|
7690
7690
|
const i = n();
|
|
7691
|
-
return
|
|
7691
|
+
return di.get(this.builder).set(e, i), i;
|
|
7692
7692
|
}
|
|
7693
|
-
return
|
|
7693
|
+
return di.get(this.builder).get(e);
|
|
7694
7694
|
}
|
|
7695
7695
|
/**
|
|
7696
7696
|
* Creates a data object unique to the current request for use by this plugin
|
|
@@ -7709,10 +7709,10 @@ class dd {
|
|
|
7709
7709
|
return this.requestDataMap(e);
|
|
7710
7710
|
}
|
|
7711
7711
|
constructor(e, n) {
|
|
7712
|
-
|
|
7712
|
+
fi(this, "name", void 0), fi(this, "builder", void 0), fi(this, "buildCache", void 0), fi(this, "options", void 0), fi(this, "requestDataMap", cd((i) => this.createRequestData(i))), this.name = n, this.builder = e.builder, this.buildCache = e, this.options = e.options;
|
|
7713
7713
|
}
|
|
7714
7714
|
}
|
|
7715
|
-
function
|
|
7715
|
+
function dd(t, e, n) {
|
|
7716
7716
|
return e in t ? Object.defineProperty(t, e, {
|
|
7717
7717
|
value: n,
|
|
7718
7718
|
enumerable: !0,
|
|
@@ -7720,7 +7720,7 @@ function hd(t, e, n) {
|
|
|
7720
7720
|
writable: !0
|
|
7721
7721
|
}) : t[e] = n, t;
|
|
7722
7722
|
}
|
|
7723
|
-
class
|
|
7723
|
+
class hd extends fd {
|
|
7724
7724
|
onTypeConfig(e) {
|
|
7725
7725
|
return this.plugins.reduceRight((n, i) => n === null ? n : i.onTypeConfig(n), e);
|
|
7726
7726
|
}
|
|
@@ -7753,10 +7753,10 @@ class pd extends dd {
|
|
|
7753
7753
|
return this.plugins.reduceRight((i, r) => r.wrapIsTypeOf(i, n), e);
|
|
7754
7754
|
}
|
|
7755
7755
|
constructor(e, n) {
|
|
7756
|
-
super(e, "PothosMergedPlugin"),
|
|
7756
|
+
super(e, "PothosMergedPlugin"), dd(this, "plugins", void 0), this.plugins = n;
|
|
7757
7757
|
}
|
|
7758
7758
|
}
|
|
7759
|
-
const $n = Symbol.for("Pothos.outputShapeKey"),
|
|
7759
|
+
const $n = Symbol.for("Pothos.outputShapeKey"), li = Symbol.for("Pothos.parentShapeKey"), Gi = Symbol.for("Pothos.inputShapeKey"), pd = Symbol.for("Pothos.inputFieldShapeKey"), gd = Symbol.for("Pothos.outputFieldShapeKey"), Or = Symbol.for("Pothos.typeBrandKey");
|
|
7760
7760
|
function Bo(t, e, n) {
|
|
7761
7761
|
return e in t ? Object.defineProperty(t, e, {
|
|
7762
7762
|
value: n,
|
|
@@ -7781,13 +7781,13 @@ function jn(t, e, n) {
|
|
|
7781
7781
|
writable: !0
|
|
7782
7782
|
}) : t[e] = n, t;
|
|
7783
7783
|
}
|
|
7784
|
-
let
|
|
7784
|
+
let md = $n, yd = li, bd = Gi;
|
|
7785
7785
|
class Ou extends Ne {
|
|
7786
7786
|
constructor(e) {
|
|
7787
|
-
super("Scalar", e), jn(this, "kind", "Scalar"), jn(this, "$inferType", void 0), jn(this, "$inferInput", void 0), jn(this,
|
|
7787
|
+
super("Scalar", e), jn(this, "kind", "Scalar"), jn(this, "$inferType", void 0), jn(this, "$inferInput", void 0), jn(this, md, void 0), jn(this, yd, void 0), jn(this, bd, void 0);
|
|
7788
7788
|
}
|
|
7789
7789
|
}
|
|
7790
|
-
function
|
|
7790
|
+
function vd(t, e, n) {
|
|
7791
7791
|
return e in t ? Object.defineProperty(t, e, {
|
|
7792
7792
|
value: n,
|
|
7793
7793
|
enumerable: !0,
|
|
@@ -7797,10 +7797,10 @@ function Ed(t, e, n) {
|
|
|
7797
7797
|
}
|
|
7798
7798
|
class Nu extends Ou {
|
|
7799
7799
|
constructor(e) {
|
|
7800
|
-
super(e.name),
|
|
7800
|
+
super(e.name), vd(this, "type", void 0), this.type = e;
|
|
7801
7801
|
}
|
|
7802
7802
|
}
|
|
7803
|
-
function
|
|
7803
|
+
function hi(t, e, n) {
|
|
7804
7804
|
return e in t ? Object.defineProperty(t, e, {
|
|
7805
7805
|
value: n,
|
|
7806
7806
|
enumerable: !0,
|
|
@@ -7808,10 +7808,10 @@ function di(t, e, n) {
|
|
|
7808
7808
|
writable: !0
|
|
7809
7809
|
}) : t[e] = n, t;
|
|
7810
7810
|
}
|
|
7811
|
-
let
|
|
7811
|
+
let Ed = Gi;
|
|
7812
7812
|
class $r extends Ne {
|
|
7813
7813
|
constructor(e, n) {
|
|
7814
|
-
super("InputList", `InputList<${String(e)}>`),
|
|
7814
|
+
super("InputList", `InputList<${String(e)}>`), hi(this, "kind", "InputList"), hi(this, Ed, void 0), hi(this, "$inferInput", void 0), hi(this, "listType", void 0), hi(this, "required", void 0), this.listType = e, this.required = n;
|
|
7815
7815
|
}
|
|
7816
7816
|
}
|
|
7817
7817
|
function Mn(t, e, n) {
|
|
@@ -7822,13 +7822,13 @@ function Mn(t, e, n) {
|
|
|
7822
7822
|
writable: !0
|
|
7823
7823
|
}) : t[e] = n, t;
|
|
7824
7824
|
}
|
|
7825
|
-
let
|
|
7825
|
+
let wd = $n, Td = li;
|
|
7826
7826
|
class Pr extends Ne {
|
|
7827
7827
|
constructor(e, n) {
|
|
7828
|
-
super("List", `List<${String(e)}>`), Mn(this, "kind", "List"), Mn(this, "$inferType", void 0), Mn(this,
|
|
7828
|
+
super("List", `List<${String(e)}>`), Mn(this, "kind", "List"), Mn(this, "$inferType", void 0), Mn(this, wd, void 0), Mn(this, Td, void 0), Mn(this, "listType", void 0), Mn(this, "nullable", void 0), this.listType = e, this.nullable = n;
|
|
7829
7829
|
}
|
|
7830
7830
|
}
|
|
7831
|
-
function
|
|
7831
|
+
function Sd(t) {
|
|
7832
7832
|
const e = {};
|
|
7833
7833
|
return Array.isArray(t) ? t.forEach((n) => {
|
|
7834
7834
|
e[String(n)] = {
|
|
@@ -7843,7 +7843,7 @@ function _d(t) {
|
|
|
7843
7843
|
});
|
|
7844
7844
|
}), e;
|
|
7845
7845
|
}
|
|
7846
|
-
function
|
|
7846
|
+
function _d(t, e) {
|
|
7847
7847
|
const n = {};
|
|
7848
7848
|
return Object.keys(t).filter((i) => typeof t[t[i]] != "number").forEach((i) => {
|
|
7849
7849
|
n[i] = {
|
|
@@ -7899,10 +7899,10 @@ function ys(t, e, n) {
|
|
|
7899
7899
|
};
|
|
7900
7900
|
throw new ie(`Expected input param ${a} to be an InputObject, Enum, or Scalar but got ${o}`);
|
|
7901
7901
|
}
|
|
7902
|
-
function
|
|
7902
|
+
function Id(t) {
|
|
7903
7903
|
throw new TypeError(`Unexpected value: ${t}`);
|
|
7904
7904
|
}
|
|
7905
|
-
function
|
|
7905
|
+
function Od(t) {
|
|
7906
7906
|
return !!(t && (typeof t == "object" || typeof t == "function") && typeof t.then == "function");
|
|
7907
7907
|
}
|
|
7908
7908
|
function Xt(t) {
|
|
@@ -7937,7 +7937,7 @@ builder.objectType('MyObject', {
|
|
|
7937
7937
|
`);
|
|
7938
7938
|
}
|
|
7939
7939
|
}
|
|
7940
|
-
function
|
|
7940
|
+
function Nd(t) {
|
|
7941
7941
|
return typeof t == "object" && t !== null && Or in t ? t[Or] : null;
|
|
7942
7942
|
}
|
|
7943
7943
|
function bs(t) {
|
|
@@ -7951,7 +7951,7 @@ function ht(t, e, n) {
|
|
|
7951
7951
|
writable: !0
|
|
7952
7952
|
}) : t[e] = n, t;
|
|
7953
7953
|
}
|
|
7954
|
-
class
|
|
7954
|
+
class Ad {
|
|
7955
7955
|
getTypeConfig(e, n) {
|
|
7956
7956
|
const i = this.configStore.getTypeConfig(e, n);
|
|
7957
7957
|
return this.typeConfigs.has(i.name) || this.typeConfigs.set(i.name, this.plugin.onTypeConfig(i)), this.typeConfigs.get(i.name);
|
|
@@ -7980,7 +7980,7 @@ class xd {
|
|
|
7980
7980
|
}), this.configStore.typeConfigs.forEach((e) => {
|
|
7981
7981
|
e.kind === "InputObject" && this.buildTypeFromConfig(e);
|
|
7982
7982
|
}), this.types.forEach((e) => {
|
|
7983
|
-
e instanceof
|
|
7983
|
+
e instanceof Ai && e.getFields();
|
|
7984
7984
|
}), this.configStore.typeConfigs.forEach((e) => {
|
|
7985
7985
|
e.kind === "Interface" && this.buildTypeFromConfig(e);
|
|
7986
7986
|
}), this.configStore.typeConfigs.forEach((e) => {
|
|
@@ -8018,7 +8018,7 @@ class xd {
|
|
|
8018
8018
|
this.addType(i, this.buildObject(n));
|
|
8019
8019
|
break;
|
|
8020
8020
|
default:
|
|
8021
|
-
|
|
8021
|
+
Id(n);
|
|
8022
8022
|
}
|
|
8023
8023
|
}
|
|
8024
8024
|
addType(e, n) {
|
|
@@ -8127,7 +8127,7 @@ class xd {
|
|
|
8127
8127
|
}
|
|
8128
8128
|
getOutputType(e) {
|
|
8129
8129
|
const n = this.getType(e);
|
|
8130
|
-
if (n instanceof
|
|
8130
|
+
if (n instanceof Ai)
|
|
8131
8131
|
throw new ie(`Expected ${String(e)} to be an output type but it was defined as an InputObject`);
|
|
8132
8132
|
return n;
|
|
8133
8133
|
}
|
|
@@ -8193,7 +8193,7 @@ class xd {
|
|
|
8193
8193
|
}
|
|
8194
8194
|
buildInterface(e) {
|
|
8195
8195
|
const n = (r, s, o) => {
|
|
8196
|
-
const a =
|
|
8196
|
+
const a = Nd(r);
|
|
8197
8197
|
if (a)
|
|
8198
8198
|
return typeof a == "string" ? a : this.getTypeConfig(a).name;
|
|
8199
8199
|
var u;
|
|
@@ -8230,7 +8230,7 @@ class xd {
|
|
|
8230
8230
|
}
|
|
8231
8231
|
return c;
|
|
8232
8232
|
};
|
|
8233
|
-
return
|
|
8233
|
+
return Od(a) ? a.then(u) : u(a);
|
|
8234
8234
|
};
|
|
8235
8235
|
return new Gn({
|
|
8236
8236
|
...e,
|
|
@@ -8244,7 +8244,7 @@ class xd {
|
|
|
8244
8244
|
});
|
|
8245
8245
|
}
|
|
8246
8246
|
buildInputObject(e) {
|
|
8247
|
-
const n = new
|
|
8247
|
+
const n = new Ai({
|
|
8248
8248
|
...e,
|
|
8249
8249
|
extensions: {
|
|
8250
8250
|
...e.extensions,
|
|
@@ -8290,7 +8290,7 @@ class xd {
|
|
|
8290
8290
|
if (!o)
|
|
8291
8291
|
throw new Bi(`No plugin named ${s} was registered`);
|
|
8292
8292
|
return i[s] = new o(this, s), i[s];
|
|
8293
|
-
}), this.pluginMap = i, this.plugin = new
|
|
8293
|
+
}), this.pluginMap = i, this.plugin = new hd(this, this.pluginList);
|
|
8294
8294
|
}
|
|
8295
8295
|
}
|
|
8296
8296
|
function ts(t, e, n) {
|
|
@@ -8301,10 +8301,10 @@ function ts(t, e, n) {
|
|
|
8301
8301
|
writable: !0
|
|
8302
8302
|
}) : t[e] = n, t;
|
|
8303
8303
|
}
|
|
8304
|
-
let
|
|
8305
|
-
class
|
|
8304
|
+
let xd = Gi;
|
|
8305
|
+
class Fd extends Ne {
|
|
8306
8306
|
constructor(e, n) {
|
|
8307
|
-
super(e, n), ts(this, "kind", void 0), ts(this, "$inferInput", void 0), ts(this,
|
|
8307
|
+
super(e, n), ts(this, "kind", void 0), ts(this, "$inferInput", void 0), ts(this, xd, void 0), this.kind = e;
|
|
8308
8308
|
}
|
|
8309
8309
|
}
|
|
8310
8310
|
function Ji(t, e, n) {
|
|
@@ -8315,10 +8315,10 @@ function Ji(t, e, n) {
|
|
|
8315
8315
|
writable: !0
|
|
8316
8316
|
}) : t[e] = n, t;
|
|
8317
8317
|
}
|
|
8318
|
-
let
|
|
8319
|
-
class
|
|
8318
|
+
let Rd = $n, Ld = li;
|
|
8319
|
+
class Cd extends Ne {
|
|
8320
8320
|
constructor(e, n) {
|
|
8321
|
-
super(e, n), Ji(this, "kind", void 0), Ji(this, "$inferType", void 0), Ji(this,
|
|
8321
|
+
super(e, n), Ji(this, "kind", void 0), Ji(this, "$inferType", void 0), Ji(this, Rd, void 0), Ji(this, Ld, void 0), this.kind = e;
|
|
8322
8322
|
}
|
|
8323
8323
|
}
|
|
8324
8324
|
function vt(t, e, n) {
|
|
@@ -8329,7 +8329,7 @@ function vt(t, e, n) {
|
|
|
8329
8329
|
writable: !0
|
|
8330
8330
|
}) : t[e] = n, t;
|
|
8331
8331
|
}
|
|
8332
|
-
class
|
|
8332
|
+
class kd {
|
|
8333
8333
|
hasConfig(e) {
|
|
8334
8334
|
return typeof e == "string" ? this.typeConfigs.has(e) : this.refsToName.has(e);
|
|
8335
8335
|
}
|
|
@@ -8425,7 +8425,7 @@ class Dd {
|
|
|
8425
8425
|
const n = this.typeConfigs.get(e);
|
|
8426
8426
|
if (n.graphqlKind !== "InputObject" && n.graphqlKind !== "Enum" && n.graphqlKind !== "Scalar")
|
|
8427
8427
|
throw new ie(`Expected ${n.name} to be an input type but got ${n.graphqlKind}`);
|
|
8428
|
-
const i = new
|
|
8428
|
+
const i = new Fd(n.graphqlKind, n.name);
|
|
8429
8429
|
return this.refsToName.set(i, n.name), i;
|
|
8430
8430
|
}
|
|
8431
8431
|
}
|
|
@@ -8446,7 +8446,7 @@ class Dd {
|
|
|
8446
8446
|
const n = this.typeConfigs.get(e);
|
|
8447
8447
|
if (n.graphqlKind === "InputObject")
|
|
8448
8448
|
throw new ie(`Expected ${n.name} to be an output type but got ${n.graphqlKind}`);
|
|
8449
|
-
const i = new
|
|
8449
|
+
const i = new Cd(n.graphqlKind, n.name);
|
|
8450
8450
|
return this.refsToName.set(i, n.name), i;
|
|
8451
8451
|
}
|
|
8452
8452
|
}
|
|
@@ -8546,8 +8546,8 @@ function Un(t, e, n) {
|
|
|
8546
8546
|
writable: !0
|
|
8547
8547
|
}) : t[e] = n, t;
|
|
8548
8548
|
}
|
|
8549
|
-
let
|
|
8550
|
-
class
|
|
8549
|
+
let Dd = pd;
|
|
8550
|
+
class $d {
|
|
8551
8551
|
toString() {
|
|
8552
8552
|
var e;
|
|
8553
8553
|
if (this.kind !== "Arg")
|
|
@@ -8559,7 +8559,7 @@ class Pd {
|
|
|
8559
8559
|
return `${this.parentTypename}.${i}(${s})`;
|
|
8560
8560
|
}
|
|
8561
8561
|
constructor(e, n) {
|
|
8562
|
-
Un(this, "kind", void 0), Un(this, "parentTypename", void 0), Un(this, "fieldName", void 0), Un(this, "argFor", void 0), Un(this, "$inferInput", void 0), Un(this,
|
|
8562
|
+
Un(this, "kind", void 0), Un(this, "parentTypename", void 0), Un(this, "fieldName", void 0), Un(this, "argFor", void 0), Un(this, "$inferInput", void 0), Un(this, Dd, void 0), this.kind = e, this.parentTypename = n;
|
|
8563
8563
|
}
|
|
8564
8564
|
}
|
|
8565
8565
|
function Ze(t, e, n) {
|
|
@@ -8585,7 +8585,7 @@ class vs {
|
|
|
8585
8585
|
* @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
|
|
8586
8586
|
*/
|
|
8587
8587
|
field(e) {
|
|
8588
|
-
const n = new
|
|
8588
|
+
const n = new $d(this.kind, this.typename);
|
|
8589
8589
|
return this.builder.configStore.addFieldRef(n, e.type, {}, (i, r, s) => {
|
|
8590
8590
|
var o;
|
|
8591
8591
|
return {
|
|
@@ -8629,7 +8629,7 @@ class vs {
|
|
|
8629
8629
|
}), this.builder = e, this.kind = n, this.typename = i;
|
|
8630
8630
|
}
|
|
8631
8631
|
}
|
|
8632
|
-
function
|
|
8632
|
+
function pi(t, e, n) {
|
|
8633
8633
|
return e in t ? Object.defineProperty(t, e, {
|
|
8634
8634
|
value: n,
|
|
8635
8635
|
enumerable: !0,
|
|
@@ -8637,13 +8637,13 @@ function hi(t, e, n) {
|
|
|
8637
8637
|
writable: !0
|
|
8638
8638
|
}) : t[e] = n, t;
|
|
8639
8639
|
}
|
|
8640
|
-
let
|
|
8641
|
-
class
|
|
8640
|
+
let Pd = gd;
|
|
8641
|
+
class jd {
|
|
8642
8642
|
toString() {
|
|
8643
8643
|
return this.fieldName ? `${this.parentTypename}.${this.fieldName}` : this.parentTypename;
|
|
8644
8644
|
}
|
|
8645
8645
|
constructor(e, n) {
|
|
8646
|
-
|
|
8646
|
+
pi(this, "kind", void 0), pi(this, "parentTypename", void 0), pi(this, "fieldName", void 0), pi(this, "$inferType", void 0), pi(this, Pd, void 0), this.kind = e, this.parentTypename = n;
|
|
8647
8647
|
}
|
|
8648
8648
|
}
|
|
8649
8649
|
function Ki(t, e, n) {
|
|
@@ -8654,9 +8654,9 @@ function Ki(t, e, n) {
|
|
|
8654
8654
|
writable: !0
|
|
8655
8655
|
}) : t[e] = n, t;
|
|
8656
8656
|
}
|
|
8657
|
-
class
|
|
8657
|
+
class Md {
|
|
8658
8658
|
createField(e) {
|
|
8659
|
-
const n = new
|
|
8659
|
+
const n = new jd(this.kind, this.typename);
|
|
8660
8660
|
var i;
|
|
8661
8661
|
return this.builder.configStore.addFieldRef(n, e.type, (i = e.args) !== null && i !== void 0 ? i : {}, (r, s, o) => {
|
|
8662
8662
|
var a;
|
|
@@ -8706,7 +8706,7 @@ class Ud {
|
|
|
8706
8706
|
Ki(this, "typename", void 0), Ki(this, "builder", void 0), Ki(this, "kind", void 0), Ki(this, "graphqlKind", void 0), this.typename = e, this.builder = n, this.kind = i, this.graphqlKind = r;
|
|
8707
8707
|
}
|
|
8708
8708
|
}
|
|
8709
|
-
function
|
|
8709
|
+
function Ud(t, e, n) {
|
|
8710
8710
|
return e in t ? Object.defineProperty(t, e, {
|
|
8711
8711
|
value: n,
|
|
8712
8712
|
enumerable: !0,
|
|
@@ -8714,7 +8714,7 @@ function Vd(t, e, n) {
|
|
|
8714
8714
|
writable: !0
|
|
8715
8715
|
}) : t[e] = n, t;
|
|
8716
8716
|
}
|
|
8717
|
-
class jr extends
|
|
8717
|
+
class jr extends Md {
|
|
8718
8718
|
/**
|
|
8719
8719
|
* Create a Boolean field
|
|
8720
8720
|
* @param {PothosSchemaTypes.FieldOptions} options - Options for this field
|
|
@@ -8857,7 +8857,7 @@ class jr extends Ud {
|
|
|
8857
8857
|
return new Pr(e, (i = n == null ? void 0 : n.nullable) !== null && i !== void 0 ? i : !1);
|
|
8858
8858
|
}
|
|
8859
8859
|
constructor(...e) {
|
|
8860
|
-
super(...e),
|
|
8860
|
+
super(...e), Ud(this, "arg", new vs(this.builder, "Arg", this.typename).argBuilder());
|
|
8861
8861
|
}
|
|
8862
8862
|
}
|
|
8863
8863
|
class Au extends jr {
|
|
@@ -9026,7 +9026,7 @@ class nr extends jr {
|
|
|
9026
9026
|
super("Subscription", e, "Subscription", "Object");
|
|
9027
9027
|
}
|
|
9028
9028
|
}
|
|
9029
|
-
function
|
|
9029
|
+
function gi(t, e, n) {
|
|
9030
9030
|
return e in t ? Object.defineProperty(t, e, {
|
|
9031
9031
|
value: n,
|
|
9032
9032
|
enumerable: !0,
|
|
@@ -9034,10 +9034,10 @@ function pi(t, e, n) {
|
|
|
9034
9034
|
writable: !0
|
|
9035
9035
|
}) : t[e] = n, t;
|
|
9036
9036
|
}
|
|
9037
|
-
let
|
|
9038
|
-
class
|
|
9037
|
+
let Vd = $n, Bd = Gi;
|
|
9038
|
+
class Gd extends Ne {
|
|
9039
9039
|
constructor(e) {
|
|
9040
|
-
super("Enum", e),
|
|
9040
|
+
super("Enum", e), gi(this, "kind", "Enum"), gi(this, "$inferType", void 0), gi(this, "$inferInput", void 0), gi(this, Vd, void 0), gi(this, Bd, void 0);
|
|
9041
9041
|
}
|
|
9042
9042
|
}
|
|
9043
9043
|
function cr(t, e, n) {
|
|
@@ -9048,13 +9048,13 @@ function cr(t, e, n) {
|
|
|
9048
9048
|
writable: !0
|
|
9049
9049
|
}) : t[e] = n, t;
|
|
9050
9050
|
}
|
|
9051
|
-
let
|
|
9051
|
+
let qd = Gi;
|
|
9052
9052
|
class xu extends Ne {
|
|
9053
9053
|
constructor(e) {
|
|
9054
|
-
super("InputObject", e), cr(this, "kind", "InputObject"), cr(this, "$inferInput", void 0), cr(this,
|
|
9054
|
+
super("InputObject", e), cr(this, "kind", "InputObject"), cr(this, "$inferInput", void 0), cr(this, qd, void 0);
|
|
9055
9055
|
}
|
|
9056
9056
|
}
|
|
9057
|
-
class
|
|
9057
|
+
class zd extends xu {
|
|
9058
9058
|
implement(e) {
|
|
9059
9059
|
return this.builder.inputType(this, e), this;
|
|
9060
9060
|
}
|
|
@@ -9062,7 +9062,7 @@ class Qd extends xu {
|
|
|
9062
9062
|
super(n), cr(this, "builder", void 0), this.builder = e;
|
|
9063
9063
|
}
|
|
9064
9064
|
}
|
|
9065
|
-
function
|
|
9065
|
+
function Ti(t, e, n) {
|
|
9066
9066
|
return e in t ? Object.defineProperty(t, e, {
|
|
9067
9067
|
value: n,
|
|
9068
9068
|
enumerable: !0,
|
|
@@ -9070,21 +9070,21 @@ function wi(t, e, n) {
|
|
|
9070
9070
|
writable: !0
|
|
9071
9071
|
}) : t[e] = n, t;
|
|
9072
9072
|
}
|
|
9073
|
-
let
|
|
9073
|
+
let Qd = $n, Wd = li;
|
|
9074
9074
|
class Fu extends Ne {
|
|
9075
9075
|
constructor(e) {
|
|
9076
|
-
super("Interface", e),
|
|
9076
|
+
super("Interface", e), Ti(this, "kind", "Interface"), Ti(this, "$inferType", void 0), Ti(this, Qd, void 0), Ti(this, Wd, void 0);
|
|
9077
9077
|
}
|
|
9078
9078
|
}
|
|
9079
|
-
class
|
|
9079
|
+
class Yd extends Fu {
|
|
9080
9080
|
implement(e) {
|
|
9081
9081
|
return this.builder.interfaceType(this, e);
|
|
9082
9082
|
}
|
|
9083
9083
|
constructor(e, n) {
|
|
9084
|
-
super(n),
|
|
9084
|
+
super(n), Ti(this, "builder", void 0), this.builder = e;
|
|
9085
9085
|
}
|
|
9086
9086
|
}
|
|
9087
|
-
function
|
|
9087
|
+
function Si(t, e, n) {
|
|
9088
9088
|
return e in t ? Object.defineProperty(t, e, {
|
|
9089
9089
|
value: n,
|
|
9090
9090
|
enumerable: !0,
|
|
@@ -9092,18 +9092,18 @@ function Ti(t, e, n) {
|
|
|
9092
9092
|
writable: !0
|
|
9093
9093
|
}) : t[e] = n, t;
|
|
9094
9094
|
}
|
|
9095
|
-
let
|
|
9095
|
+
let Hd = $n, Jd = li;
|
|
9096
9096
|
class Es extends Ne {
|
|
9097
9097
|
constructor(e) {
|
|
9098
|
-
super("Object", e),
|
|
9098
|
+
super("Object", e), Si(this, "kind", "Object"), Si(this, "$inferType", void 0), Si(this, Hd, void 0), Si(this, Jd, void 0);
|
|
9099
9099
|
}
|
|
9100
9100
|
}
|
|
9101
|
-
class
|
|
9101
|
+
class Kd extends Es {
|
|
9102
9102
|
implement(e) {
|
|
9103
9103
|
return this.builder.objectType(this, e);
|
|
9104
9104
|
}
|
|
9105
9105
|
constructor(e, n) {
|
|
9106
|
-
super(n),
|
|
9106
|
+
super(n), Si(this, "builder", void 0), this.builder = e;
|
|
9107
9107
|
}
|
|
9108
9108
|
}
|
|
9109
9109
|
function ir(t, e, n) {
|
|
@@ -9114,10 +9114,10 @@ function ir(t, e, n) {
|
|
|
9114
9114
|
writable: !0
|
|
9115
9115
|
}) : t[e] = n, t;
|
|
9116
9116
|
}
|
|
9117
|
-
let
|
|
9118
|
-
class
|
|
9117
|
+
let Xd = $n, Zd = li;
|
|
9118
|
+
class eh extends Ne {
|
|
9119
9119
|
constructor(e) {
|
|
9120
|
-
super("Union", e), ir(this, "kind", "Union"), ir(this, "$inferType", void 0), ir(this,
|
|
9120
|
+
super("Union", e), ir(this, "kind", "Union"), ir(this, "$inferType", void 0), ir(this, Xd, void 0), ir(this, Zd, void 0);
|
|
9121
9121
|
}
|
|
9122
9122
|
}
|
|
9123
9123
|
function qn(t, e, n) {
|
|
@@ -9255,7 +9255,7 @@ let Hs = class {
|
|
|
9255
9255
|
});
|
|
9256
9256
|
}
|
|
9257
9257
|
unionType(e, n) {
|
|
9258
|
-
const i = new
|
|
9258
|
+
const i = new eh(e);
|
|
9259
9259
|
Array.isArray(n.types) && n.types.forEach((s) => {
|
|
9260
9260
|
Xt(s);
|
|
9261
9261
|
});
|
|
@@ -9273,11 +9273,11 @@ let Hs = class {
|
|
|
9273
9273
|
}
|
|
9274
9274
|
enumType(e, n) {
|
|
9275
9275
|
Xt(e);
|
|
9276
|
-
const i = typeof e == "string" ? e : n.name, r = new
|
|
9276
|
+
const i = typeof e == "string" ? e : n.name, r = new Gd(i), s = typeof e == "object" ? _d(
|
|
9277
9277
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
9278
9278
|
e,
|
|
9279
9279
|
n == null ? void 0 : n.values
|
|
9280
|
-
) :
|
|
9280
|
+
) : Sd(n.values), o = {
|
|
9281
9281
|
kind: "Enum",
|
|
9282
9282
|
graphqlKind: "Enum",
|
|
9283
9283
|
name: i,
|
|
@@ -9327,13 +9327,13 @@ let Hs = class {
|
|
|
9327
9327
|
return this.configStore.addTypeConfig(s, r), this.configStore.addFields(r, () => n.fields(new vs(this, "InputObject", i))), r;
|
|
9328
9328
|
}
|
|
9329
9329
|
inputRef(e) {
|
|
9330
|
-
return new
|
|
9330
|
+
return new zd(this, e);
|
|
9331
9331
|
}
|
|
9332
9332
|
objectRef(e) {
|
|
9333
|
-
return new
|
|
9333
|
+
return new Kd(this, e);
|
|
9334
9334
|
}
|
|
9335
9335
|
interfaceRef(e) {
|
|
9336
|
-
return new
|
|
9336
|
+
return new Yd(this, e);
|
|
9337
9337
|
}
|
|
9338
9338
|
toSchema(...e) {
|
|
9339
9339
|
const [n = {}] = e, { directives: i, extensions: r } = n;
|
|
@@ -9346,7 +9346,7 @@ let Hs = class {
|
|
|
9346
9346
|
].forEach((f) => {
|
|
9347
9347
|
this.configStore.hasConfig(f.name) || this.addScalarType(f.name, f);
|
|
9348
9348
|
});
|
|
9349
|
-
const o = new
|
|
9349
|
+
const o = new Ad(this, n);
|
|
9350
9350
|
o.plugin.beforeBuild(), o.buildAll();
|
|
9351
9351
|
const a = [
|
|
9352
9352
|
...o.types.values()
|
|
@@ -9358,10 +9358,10 @@ let Hs = class {
|
|
|
9358
9358
|
directives: i,
|
|
9359
9359
|
types: a
|
|
9360
9360
|
}), c = o.plugin.afterBuild(u);
|
|
9361
|
-
return n.sortSchema === !1 ? c :
|
|
9361
|
+
return n.sortSchema === !1 ? c : ud(c);
|
|
9362
9362
|
}
|
|
9363
9363
|
constructor(e) {
|
|
9364
|
-
qn(this, "configStore", void 0), qn(this, "options", void 0), qn(this, "defaultFieldNullability", void 0), qn(this, "defaultInputFieldRequiredness", void 0), this.options = e, this.configStore = new
|
|
9364
|
+
qn(this, "configStore", void 0), qn(this, "options", void 0), qn(this, "defaultFieldNullability", void 0), qn(this, "defaultInputFieldRequiredness", void 0), this.options = e, this.configStore = new kd();
|
|
9365
9365
|
var n;
|
|
9366
9366
|
this.defaultFieldNullability = (n = e.defaultFieldNullability) !== null && n !== void 0 ? n : !1;
|
|
9367
9367
|
var i;
|
|
@@ -9370,13 +9370,13 @@ let Hs = class {
|
|
|
9370
9370
|
};
|
|
9371
9371
|
qn(Hs, "plugins", {});
|
|
9372
9372
|
qn(Hs, "allowPluginReRegistration", !1);
|
|
9373
|
-
const
|
|
9373
|
+
const th = Hs;
|
|
9374
9374
|
function Js(t) {
|
|
9375
9375
|
if (typeof t != "string")
|
|
9376
9376
|
throw new TypeError("Expected a string");
|
|
9377
9377
|
return t.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
9378
9378
|
}
|
|
9379
|
-
const
|
|
9379
|
+
const nh = [
|
|
9380
9380
|
// German umlauts
|
|
9381
9381
|
["ß", "ss"],
|
|
9382
9382
|
["ẞ", "Ss"],
|
|
@@ -11395,12 +11395,12 @@ const ih = [
|
|
|
11395
11395
|
["🆇", "X"],
|
|
11396
11396
|
["🆈", "Y"],
|
|
11397
11397
|
["🆉", "Z"]
|
|
11398
|
-
],
|
|
11398
|
+
], ih = (t, e) => {
|
|
11399
11399
|
for (const [n, i] of e)
|
|
11400
11400
|
t = t.replace(new RegExp(Js(n), "g"), i);
|
|
11401
11401
|
return t;
|
|
11402
11402
|
};
|
|
11403
|
-
function
|
|
11403
|
+
function rh(t, e) {
|
|
11404
11404
|
if (typeof t != "string")
|
|
11405
11405
|
throw new TypeError(`Expected a string, got \`${typeof t}\``);
|
|
11406
11406
|
e = {
|
|
@@ -11408,19 +11408,19 @@ function sh(t, e) {
|
|
|
11408
11408
|
...e
|
|
11409
11409
|
};
|
|
11410
11410
|
const n = new Map([
|
|
11411
|
-
...
|
|
11411
|
+
...nh,
|
|
11412
11412
|
...e.customReplacements
|
|
11413
11413
|
]);
|
|
11414
|
-
return t = t.normalize(), t =
|
|
11414
|
+
return t = t.normalize(), t = ih(t, n), t = t.normalize("NFD").replace(new RegExp("\\p{Diacritic}", "gu"), "").normalize(), t;
|
|
11415
11415
|
}
|
|
11416
|
-
const
|
|
11416
|
+
const sh = [
|
|
11417
11417
|
["&", " and "],
|
|
11418
11418
|
["🦄", " unicorn "],
|
|
11419
11419
|
["♥", " love "]
|
|
11420
|
-
],
|
|
11420
|
+
], oh = (t) => t.replace(/([A-Z]{2,})(\d+)/g, "$1 $2").replace(/([a-z\d]+)([A-Z]{2,})/g, "$1 $2").replace(/([a-z\d])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-rt-z\d]+)/g, "$1 $2"), ah = (t, e) => {
|
|
11421
11421
|
const n = Js(e);
|
|
11422
11422
|
return t.replace(new RegExp(`${n}{2,}`, "g"), e).replace(new RegExp(`^${n}|${n}$`, "g"), "");
|
|
11423
|
-
},
|
|
11423
|
+
}, uh = (t) => {
|
|
11424
11424
|
let e = "a-z\\d";
|
|
11425
11425
|
if (e += t.lowercase ? "" : "A-Z", t.preserveCharacters.length > 0)
|
|
11426
11426
|
for (const n of t.preserveCharacters) {
|
|
@@ -11430,7 +11430,7 @@ const oh = [
|
|
|
11430
11430
|
}
|
|
11431
11431
|
return new RegExp(`[^${e}]+`, "g");
|
|
11432
11432
|
};
|
|
11433
|
-
function
|
|
11433
|
+
function lh(t, e) {
|
|
11434
11434
|
if (typeof t != "string")
|
|
11435
11435
|
throw new TypeError(`Expected a string, got \`${typeof t}\``);
|
|
11436
11436
|
e = {
|
|
@@ -11444,16 +11444,16 @@ function ch(t, e) {
|
|
|
11444
11444
|
...e
|
|
11445
11445
|
};
|
|
11446
11446
|
const n = e.preserveLeadingUnderscore && t.startsWith("_"), i = e.preserveTrailingDash && t.endsWith("-"), r = new Map([
|
|
11447
|
-
...
|
|
11447
|
+
...sh,
|
|
11448
11448
|
...e.customReplacements
|
|
11449
11449
|
]);
|
|
11450
|
-
t =
|
|
11451
|
-
const s =
|
|
11452
|
-
return e.lowercase && (t = t.toLowerCase()), t = t.replace(/([a-zA-Z\d]+)'([ts])(\s|$)/g, "$1$2$3"), t = t.replace(s, e.separator), t = t.replace(/\\/g, ""), e.separator && (t =
|
|
11450
|
+
t = rh(t, { customReplacements: r }), e.decamelize && (t = oh(t));
|
|
11451
|
+
const s = uh(e);
|
|
11452
|
+
return e.lowercase && (t = t.toLowerCase()), t = t.replace(/([a-zA-Z\d]+)'([ts])(\s|$)/g, "$1$2$3"), t = t.replace(s, e.separator), t = t.replace(/\\/g, ""), e.separator && (t = ah(t, e.separator)), n && (t = `_${t}`), i && (t = `${t}-`), t;
|
|
11453
11453
|
}
|
|
11454
|
-
function
|
|
11454
|
+
function ch() {
|
|
11455
11455
|
const t = /* @__PURE__ */ new Map(), e = (n, i) => {
|
|
11456
|
-
if (n =
|
|
11456
|
+
if (n = lh(n, i), !n)
|
|
11457
11457
|
return "";
|
|
11458
11458
|
const r = n.toLowerCase(), s = t.get(r.replace(/(?:-\d+?)+?$/, "")) || 0, o = t.get(r);
|
|
11459
11459
|
t.set(r, typeof o == "number" ? o + 1 : 1);
|
|
@@ -11500,7 +11500,7 @@ function Ks(t, e, n) {
|
|
|
11500
11500
|
throw new TypeError(t + " cannot represent value: " + be(e));
|
|
11501
11501
|
}
|
|
11502
11502
|
}
|
|
11503
|
-
var
|
|
11503
|
+
var fh = new Ut({
|
|
11504
11504
|
name: "JSON",
|
|
11505
11505
|
description: "The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).",
|
|
11506
11506
|
specifiedByUrl: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf",
|
|
@@ -11509,7 +11509,7 @@ var dh = new Ut({
|
|
|
11509
11509
|
parseLiteral: function(e, n) {
|
|
11510
11510
|
return Ks("JSON", e, n);
|
|
11511
11511
|
}
|
|
11512
|
-
}),
|
|
11512
|
+
}), dh = new Ut({
|
|
11513
11513
|
name: "JSONObject",
|
|
11514
11514
|
description: "The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).",
|
|
11515
11515
|
specifiedByUrl: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf",
|
|
@@ -11532,7 +11532,7 @@ function Mr(t, e) {
|
|
|
11532
11532
|
case "function":
|
|
11533
11533
|
return t.name ? `[function ${t.name}]` : "[function]";
|
|
11534
11534
|
case "object":
|
|
11535
|
-
return
|
|
11535
|
+
return hh(t, e);
|
|
11536
11536
|
default:
|
|
11537
11537
|
return String(t);
|
|
11538
11538
|
}
|
|
@@ -11541,7 +11541,7 @@ function Qo(t) {
|
|
|
11541
11541
|
return (t.name = "GraphQLError") ? t.toString() : `${t.name}: ${t.message};
|
|
11542
11542
|
${t.stack}`;
|
|
11543
11543
|
}
|
|
11544
|
-
function
|
|
11544
|
+
function hh(t, e) {
|
|
11545
11545
|
if (t === null)
|
|
11546
11546
|
return "null";
|
|
11547
11547
|
if (t instanceof Error)
|
|
@@ -11550,20 +11550,20 @@ function ph(t, e) {
|
|
|
11550
11550
|
if (e.includes(t))
|
|
11551
11551
|
return "[Circular]";
|
|
11552
11552
|
const n = [...e, t];
|
|
11553
|
-
if (
|
|
11553
|
+
if (ph(t)) {
|
|
11554
11554
|
const i = t.toJSON();
|
|
11555
11555
|
if (i !== t)
|
|
11556
11556
|
return typeof i == "string" ? i : Mr(i, n);
|
|
11557
11557
|
} else if (Array.isArray(t))
|
|
11558
11558
|
return Wo(t, n);
|
|
11559
|
-
return
|
|
11559
|
+
return gh(t, n);
|
|
11560
11560
|
}
|
|
11561
|
-
function
|
|
11561
|
+
function ph(t) {
|
|
11562
11562
|
return typeof t.toJSON == "function";
|
|
11563
11563
|
}
|
|
11564
|
-
function
|
|
11564
|
+
function gh(t, e) {
|
|
11565
11565
|
const n = Object.entries(t);
|
|
11566
|
-
return n.length === 0 ? "{}" : e.length > Lu ? "[" +
|
|
11566
|
+
return n.length === 0 ? "{}" : e.length > Lu ? "[" + mh(t) + "]" : "{ " + n.map(([r, s]) => r + ": " + Mr(s, e)).join(", ") + " }";
|
|
11567
11567
|
}
|
|
11568
11568
|
function Wo(t, e) {
|
|
11569
11569
|
if (t.length === 0)
|
|
@@ -11575,7 +11575,7 @@ function Wo(t, e) {
|
|
|
11575
11575
|
i.push(Mr(t[r], e));
|
|
11576
11576
|
return "[" + i.join(", ") + "]";
|
|
11577
11577
|
}
|
|
11578
|
-
function
|
|
11578
|
+
function mh(t) {
|
|
11579
11579
|
const e = Object.prototype.toString.call(t).replace(/^\[object /, "").replace(/]$/, "");
|
|
11580
11580
|
if (e === "Object" && typeof t.constructor == "function") {
|
|
11581
11581
|
const n = t.constructor.name;
|
|
@@ -11584,7 +11584,7 @@ function yh(t) {
|
|
|
11584
11584
|
}
|
|
11585
11585
|
return e;
|
|
11586
11586
|
}
|
|
11587
|
-
const
|
|
11587
|
+
const yh = [
|
|
11588
11588
|
"message",
|
|
11589
11589
|
"locations",
|
|
11590
11590
|
"path",
|
|
@@ -11596,13 +11596,13 @@ const bh = [
|
|
|
11596
11596
|
"stack",
|
|
11597
11597
|
"extensions"
|
|
11598
11598
|
];
|
|
11599
|
-
function
|
|
11600
|
-
return t != null && typeof t == "object" && Object.keys(t).every((e) =>
|
|
11599
|
+
function bh(t) {
|
|
11600
|
+
return t != null && typeof t == "object" && Object.keys(t).every((e) => yh.includes(e));
|
|
11601
11601
|
}
|
|
11602
11602
|
function X(t, e) {
|
|
11603
|
-
return e != null && e.originalError && !(e.originalError instanceof Error) &&
|
|
11603
|
+
return e != null && e.originalError && !(e.originalError instanceof Error) && bh(e.originalError) && (e.originalError = X(e.originalError.message, e.originalError)), ja.major >= 17 ? new P(t, e) : new P(t, e == null ? void 0 : e.nodes, e == null ? void 0 : e.source, e == null ? void 0 : e.positions, e == null ? void 0 : e.path, e == null ? void 0 : e.originalError, e == null ? void 0 : e.extensions);
|
|
11604
11604
|
}
|
|
11605
|
-
function
|
|
11605
|
+
function vh(t) {
|
|
11606
11606
|
return t != null && typeof t == "object" && Symbol.iterator in t;
|
|
11607
11607
|
}
|
|
11608
11608
|
function Cu(t) {
|
|
@@ -11611,7 +11611,7 @@ function Cu(t) {
|
|
|
11611
11611
|
function Ae(t) {
|
|
11612
11612
|
return (t == null ? void 0 : t.then) != null;
|
|
11613
11613
|
}
|
|
11614
|
-
function
|
|
11614
|
+
function Eh(t, e, n) {
|
|
11615
11615
|
let i = n;
|
|
11616
11616
|
for (const r of t)
|
|
11617
11617
|
i = Ae(i) ? i.then((s) => e(s, r)) : e(i, r);
|
|
@@ -11675,7 +11675,7 @@ function $u(t) {
|
|
|
11675
11675
|
return r;
|
|
11676
11676
|
};
|
|
11677
11677
|
}
|
|
11678
|
-
function
|
|
11678
|
+
function wh(t) {
|
|
11679
11679
|
const e = /* @__PURE__ */ new WeakMap();
|
|
11680
11680
|
return function(i, r, s) {
|
|
11681
11681
|
let o = e.get(i);
|
|
@@ -11700,7 +11700,7 @@ function Th(t) {
|
|
|
11700
11700
|
return u;
|
|
11701
11701
|
};
|
|
11702
11702
|
}
|
|
11703
|
-
function
|
|
11703
|
+
function Th(t) {
|
|
11704
11704
|
const e = /* @__PURE__ */ new WeakMap();
|
|
11705
11705
|
return function(i, r, s, o, a) {
|
|
11706
11706
|
let u = e.get(i);
|
|
@@ -11747,15 +11747,15 @@ function Sh(t) {
|
|
|
11747
11747
|
return p;
|
|
11748
11748
|
};
|
|
11749
11749
|
}
|
|
11750
|
-
function
|
|
11751
|
-
const r =
|
|
11750
|
+
function Sh(t, e, n) {
|
|
11751
|
+
const r = _h(t).get(e);
|
|
11752
11752
|
if (r == null)
|
|
11753
11753
|
throw X(`Schema is not configured to execute ${e} operation.`, {
|
|
11754
11754
|
nodes: n
|
|
11755
11755
|
});
|
|
11756
11756
|
return r;
|
|
11757
11757
|
}
|
|
11758
|
-
const
|
|
11758
|
+
const _h = $u(function(e) {
|
|
11759
11759
|
const n = /* @__PURE__ */ new Map(), i = e.getQueryType();
|
|
11760
11760
|
i && n.set("query", i);
|
|
11761
11761
|
const r = e.getMutationType();
|
|
@@ -11808,7 +11808,7 @@ class Nr extends Map {
|
|
|
11808
11808
|
i === void 0 ? this.set(e, [n]) : i.push(n);
|
|
11809
11809
|
}
|
|
11810
11810
|
}
|
|
11811
|
-
const
|
|
11811
|
+
const Ih = new nn({
|
|
11812
11812
|
name: "defer",
|
|
11813
11813
|
description: "Directs the executor to defer this fragment when the `if` argument is true or undefined.",
|
|
11814
11814
|
locations: [K.FRAGMENT_SPREAD, K.INLINE_FRAGMENT],
|
|
@@ -11823,7 +11823,7 @@ const Oh = new nn({
|
|
|
11823
11823
|
description: "Unique name"
|
|
11824
11824
|
}
|
|
11825
11825
|
}
|
|
11826
|
-
}),
|
|
11826
|
+
}), Oh = new nn({
|
|
11827
11827
|
name: "stream",
|
|
11828
11828
|
description: "Directs the executor to stream plural fields when the `if` argument is true or undefined.",
|
|
11829
11829
|
locations: [K.FIELD],
|
|
@@ -11850,7 +11850,7 @@ function zn(t, e, n, i, r, s, o, a) {
|
|
|
11850
11850
|
case I.FIELD: {
|
|
11851
11851
|
if (!ns(n, u))
|
|
11852
11852
|
continue;
|
|
11853
|
-
s.add(
|
|
11853
|
+
s.add(Nh(u), u);
|
|
11854
11854
|
break;
|
|
11855
11855
|
}
|
|
11856
11856
|
case I.INLINE_FRAGMENT: {
|
|
@@ -11907,17 +11907,17 @@ function Jo(t, e, n) {
|
|
|
11907
11907
|
const r = it(t, i);
|
|
11908
11908
|
return r === n ? !0 : tn(r) ? t.getPossibleTypes(r).includes(n) : !1;
|
|
11909
11909
|
}
|
|
11910
|
-
function
|
|
11910
|
+
function Nh(t) {
|
|
11911
11911
|
return t.alias ? t.alias.value : t.name.value;
|
|
11912
11912
|
}
|
|
11913
11913
|
function Ko(t, e) {
|
|
11914
|
-
const n = si(
|
|
11914
|
+
const n = si(Ih, e, t);
|
|
11915
11915
|
if (n && n.if !== !1)
|
|
11916
11916
|
return {
|
|
11917
11917
|
label: typeof n.label == "string" ? n.label : void 0
|
|
11918
11918
|
};
|
|
11919
11919
|
}
|
|
11920
|
-
const
|
|
11920
|
+
const Ah = Th(function(e, n, i, r, s) {
|
|
11921
11921
|
const o = new Nr(), a = /* @__PURE__ */ new Set(), u = [], c = {
|
|
11922
11922
|
fields: o,
|
|
11923
11923
|
patches: u
|
|
@@ -11929,7 +11929,7 @@ const xh = Sh(function(e, n, i, r, s) {
|
|
|
11929
11929
|
function Ur(t) {
|
|
11930
11930
|
return (t == null ? void 0 : t[Symbol.asyncIterator]) != null;
|
|
11931
11931
|
}
|
|
11932
|
-
function
|
|
11932
|
+
function ci(t, e, n) {
|
|
11933
11933
|
return { prev: t, key: e, typename: n };
|
|
11934
11934
|
}
|
|
11935
11935
|
function Ve(t) {
|
|
@@ -11939,13 +11939,13 @@ function Ve(t) {
|
|
|
11939
11939
|
e.push(n.key), n = n.prev;
|
|
11940
11940
|
return e.reverse();
|
|
11941
11941
|
}
|
|
11942
|
-
function
|
|
11942
|
+
function xh(t) {
|
|
11943
11943
|
return t.map((e) => typeof e == "number" ? "[" + e.toString() + "]" : "." + e).join("");
|
|
11944
11944
|
}
|
|
11945
|
-
function
|
|
11945
|
+
function Fh(t) {
|
|
11946
11946
|
return t != null && typeof t == "object" && "errors" in t;
|
|
11947
11947
|
}
|
|
11948
|
-
function
|
|
11948
|
+
function Rh(t) {
|
|
11949
11949
|
return t != null && typeof t.toString == "function";
|
|
11950
11950
|
}
|
|
11951
11951
|
function oi(t) {
|
|
@@ -11960,7 +11960,7 @@ function Uu(t) {
|
|
|
11960
11960
|
}
|
|
11961
11961
|
function fr(t, e, n) {
|
|
11962
11962
|
const i = /* @__PURE__ */ new Set();
|
|
11963
|
-
if (
|
|
11963
|
+
if (Fh(t))
|
|
11964
11964
|
for (const r of t.errors) {
|
|
11965
11965
|
const s = fr(r, e, n);
|
|
11966
11966
|
for (const o of s)
|
|
@@ -11979,7 +11979,7 @@ function fr(t, e, n) {
|
|
|
11979
11979
|
extensions: {
|
|
11980
11980
|
unexpected: !0
|
|
11981
11981
|
}
|
|
11982
|
-
})) :
|
|
11982
|
+
})) : Rh(t) ? i.add(X(t.toString(), {
|
|
11983
11983
|
extensions: {
|
|
11984
11984
|
unexpected: !0
|
|
11985
11985
|
}
|
|
@@ -12009,7 +12009,7 @@ function Xs(t, e = {}, n = !1) {
|
|
|
12009
12009
|
headers: e
|
|
12010
12010
|
};
|
|
12011
12011
|
}
|
|
12012
|
-
function
|
|
12012
|
+
function Lh(t) {
|
|
12013
12013
|
return Array.isArray(t) && t.length > 0 && // if one item in the array is a GraphQLError, we're good
|
|
12014
12014
|
t.some(oi);
|
|
12015
12015
|
}
|
|
@@ -12019,40 +12019,40 @@ const vn = {
|
|
|
12019
12019
|
magenta: "\x1B[35m",
|
|
12020
12020
|
cyan: "\x1B[36m",
|
|
12021
12021
|
reset: "\x1B[0m"
|
|
12022
|
-
}, Xo = vn.yellow + "WARN" + vn.reset, Zo = vn.cyan + "INFO" + vn.reset, ea = vn.red + "ERR" + vn.reset, ta = vn.magenta + "DEBUG" + vn.reset,
|
|
12022
|
+
}, Xo = vn.yellow + "WARN" + vn.reset, Zo = vn.cyan + "INFO" + vn.reset, ea = vn.red + "ERR" + vn.reset, ta = vn.magenta + "DEBUG" + vn.reset, mi = {
|
|
12023
12023
|
debug: 0,
|
|
12024
12024
|
info: 1,
|
|
12025
12025
|
warn: 2,
|
|
12026
12026
|
error: 3,
|
|
12027
12027
|
silent: 4
|
|
12028
12028
|
}, rr = () => {
|
|
12029
|
-
}, Vr = (t) => (...e) => console.log(t, ...e),
|
|
12030
|
-
const n =
|
|
12029
|
+
}, Vr = (t) => (...e) => console.log(t, ...e), Ch = console.debug ? (...t) => console.debug(ta, ...t) : Vr(ta), kh = console.info ? (...t) => console.info(Zo, ...t) : Vr(Zo), Dh = console.warn ? (...t) => console.warn(Xo, ...t) : Vr(Xo), $h = console.error ? (...t) => console.error(ea, ...t) : Vr(ea), is = (t = ((e) => (e = globalThis.process) == null ? void 0 : e.env.DEBUG)() === "1" ? "debug" : "info") => {
|
|
12030
|
+
const n = mi[t];
|
|
12031
12031
|
return {
|
|
12032
|
-
debug: n >
|
|
12033
|
-
info: n >
|
|
12034
|
-
warn: n >
|
|
12035
|
-
error: n >
|
|
12032
|
+
debug: n > mi.debug ? rr : Ch,
|
|
12033
|
+
info: n > mi.info ? rr : kh,
|
|
12034
|
+
warn: n > mi.warn ? rr : Dh,
|
|
12035
|
+
error: n > mi.error ? rr : $h
|
|
12036
12036
|
};
|
|
12037
12037
|
};
|
|
12038
|
-
var
|
|
12039
|
-
function
|
|
12038
|
+
var Ph = '<!doctype html><html lang=en><head><meta charset=utf-8><title>__TITLE__</title><link rel=icon href=https://raw.githubusercontent.com/dotansimha/graphql-yoga/main/website/public/favicon.ico><link rel=stylesheet href=https://unpkg.com/@graphql-yoga/graphiql@4.3.1/dist/style.css></head><body id=body class=no-focus-outline><noscript>You need to enable JavaScript to run this app.</noscript><div id=root></div><script type=module>import{renderYogaGraphiQL}from"https://unpkg.com/@graphql-yoga/graphiql@4.3.1/dist/yoga-graphiql.es.js";renderYogaGraphiQL(root,__OPTS__)<\/script></body></html>';
|
|
12039
|
+
function jh({ headers: t, method: e }) {
|
|
12040
12040
|
var n;
|
|
12041
12041
|
return e === "GET" && !!((n = t == null ? void 0 : t.get("accept")) != null && n.includes("text/html"));
|
|
12042
12042
|
}
|
|
12043
|
-
const
|
|
12044
|
-
function
|
|
12043
|
+
const Mh = (t) => Ph.replace("__TITLE__", (t == null ? void 0 : t.title) || "Yoga GraphiQL").replace("__OPTS__", JSON.stringify(t ?? {}));
|
|
12044
|
+
function Uh(t) {
|
|
12045
12045
|
const e = t.logger ?? console;
|
|
12046
12046
|
let n;
|
|
12047
12047
|
typeof (t == null ? void 0 : t.options) == "function" ? n = t == null ? void 0 : t.options : typeof (t == null ? void 0 : t.options) == "object" ? n = () => t == null ? void 0 : t.options : (t == null ? void 0 : t.options) === !1 ? n = () => !1 : n = () => ({});
|
|
12048
|
-
const i = (t == null ? void 0 : t.render) ??
|
|
12048
|
+
const i = (t == null ? void 0 : t.render) ?? Mh;
|
|
12049
12049
|
let r;
|
|
12050
12050
|
const s = ({ URLPattern: o }) => (r || (r = new o({
|
|
12051
12051
|
pathname: t.graphqlEndpoint
|
|
12052
12052
|
})), r);
|
|
12053
12053
|
return {
|
|
12054
12054
|
async onRequest({ request: o, serverContext: a, fetchAPI: u, endResponse: c, url: f }) {
|
|
12055
|
-
if (
|
|
12055
|
+
if (jh(o) && (o.url.endsWith(t.graphqlEndpoint) || o.url.endsWith(`${t.graphqlEndpoint}/`) || f.pathname === t.graphqlEndpoint || f.pathname === `${t.graphqlEndpoint}/` || s(u).test(f))) {
|
|
12056
12056
|
e.debug("Rendering GraphiQL");
|
|
12057
12057
|
const g = await n(o, a);
|
|
12058
12058
|
if (g) {
|
|
@@ -12070,7 +12070,7 @@ function Vh(t) {
|
|
|
12070
12070
|
}
|
|
12071
12071
|
};
|
|
12072
12072
|
}
|
|
12073
|
-
const
|
|
12073
|
+
const Vh = (t) => {
|
|
12074
12074
|
if (t == null)
|
|
12075
12075
|
return {};
|
|
12076
12076
|
if (gu(t))
|
|
@@ -12119,10 +12119,10 @@ const Bh = (t) => {
|
|
|
12119
12119
|
}
|
|
12120
12120
|
};
|
|
12121
12121
|
};
|
|
12122
|
-
function
|
|
12122
|
+
function Bh(t) {
|
|
12123
12123
|
return t != null && typeof t.then == "function";
|
|
12124
12124
|
}
|
|
12125
|
-
const
|
|
12125
|
+
const Gh = (t) => {
|
|
12126
12126
|
throw t;
|
|
12127
12127
|
};
|
|
12128
12128
|
class pt {
|
|
@@ -12135,7 +12135,7 @@ class pt {
|
|
|
12135
12135
|
this.state = { status: "rejected", value: i };
|
|
12136
12136
|
return;
|
|
12137
12137
|
}
|
|
12138
|
-
if (
|
|
12138
|
+
if (Bh(n)) {
|
|
12139
12139
|
this.state = { status: "pending", value: n };
|
|
12140
12140
|
return;
|
|
12141
12141
|
}
|
|
@@ -12145,7 +12145,7 @@ class pt {
|
|
|
12145
12145
|
const i = this.state;
|
|
12146
12146
|
if (i.status === "pending")
|
|
12147
12147
|
return new pt(() => i.value.then(e, n));
|
|
12148
|
-
const r = typeof n == "function" ? n :
|
|
12148
|
+
const r = typeof n == "function" ? n : Gh;
|
|
12149
12149
|
if (i.status === "rejected")
|
|
12150
12150
|
return new pt(() => r(i.value));
|
|
12151
12151
|
try {
|
|
@@ -12196,7 +12196,7 @@ function Qt(t) {
|
|
|
12196
12196
|
}
|
|
12197
12197
|
return new Error(String(t));
|
|
12198
12198
|
}
|
|
12199
|
-
function
|
|
12199
|
+
function qh(t) {
|
|
12200
12200
|
const e = t[Symbol.asyncIterator]();
|
|
12201
12201
|
let n, i, r = !1;
|
|
12202
12202
|
async function s() {
|
|
@@ -12248,10 +12248,10 @@ async function ia(t, e) {
|
|
|
12248
12248
|
})).then(() => i(), r);
|
|
12249
12249
|
}), n;
|
|
12250
12250
|
}
|
|
12251
|
-
function
|
|
12251
|
+
function zh(t, e, n, i) {
|
|
12252
12252
|
const r = [], s = i == null ? void 0 : i.maxErrors;
|
|
12253
12253
|
try {
|
|
12254
|
-
const o =
|
|
12254
|
+
const o = Qh(t, e, n, (a) => {
|
|
12255
12255
|
if (s != null && r.length >= s)
|
|
12256
12256
|
throw X("Too many errors processing variables, error limit reached. Execution aborted.");
|
|
12257
12257
|
r.push(a);
|
|
@@ -12263,7 +12263,7 @@ function Qh(t, e, n, i) {
|
|
|
12263
12263
|
}
|
|
12264
12264
|
return { errors: r };
|
|
12265
12265
|
}
|
|
12266
|
-
function
|
|
12266
|
+
function Qh(t, e, n, i) {
|
|
12267
12267
|
const r = {};
|
|
12268
12268
|
for (const s of e) {
|
|
12269
12269
|
const o = s.variable.name.value, a = it(t, s.type);
|
|
@@ -12291,9 +12291,9 @@ function Wh(t, e, n, i) {
|
|
|
12291
12291
|
}));
|
|
12292
12292
|
continue;
|
|
12293
12293
|
}
|
|
12294
|
-
r[o] =
|
|
12294
|
+
r[o] = Pf(u, a, (c, f, g) => {
|
|
12295
12295
|
let p = `Variable "$${o}" got invalid value ` + nt(f);
|
|
12296
|
-
c.length > 0 && (p += ` at "${o}${
|
|
12296
|
+
c.length > 0 && (p += ` at "${o}${xh(c)}"`), i(X(p + "; " + g.message, {
|
|
12297
12297
|
nodes: s,
|
|
12298
12298
|
originalError: g
|
|
12299
12299
|
}));
|
|
@@ -12301,8 +12301,8 @@ function Wh(t, e, n, i) {
|
|
|
12301
12301
|
}
|
|
12302
12302
|
return r;
|
|
12303
12303
|
}
|
|
12304
|
-
const
|
|
12305
|
-
function
|
|
12304
|
+
const Wh = wh((t, e, n) => Ah(t.schema, t.fragments, t.variableValues, e, n));
|
|
12305
|
+
function Yh(t) {
|
|
12306
12306
|
const e = Bu(t);
|
|
12307
12307
|
return "schema" in e ? Vu(e) : {
|
|
12308
12308
|
errors: e.map((n) => {
|
|
@@ -12323,14 +12323,14 @@ function Vu(t) {
|
|
|
12323
12323
|
var n;
|
|
12324
12324
|
if ((n = t.signal) != null && n.aborted)
|
|
12325
12325
|
throw t.signal.reason;
|
|
12326
|
-
return new pt(() =>
|
|
12326
|
+
return new pt(() => Kh(t)).then((i) => {
|
|
12327
12327
|
const r = ra(i, t.errors);
|
|
12328
12328
|
return t.subsequentPayloads.size > 0 ? {
|
|
12329
12329
|
initialResult: {
|
|
12330
12330
|
...r,
|
|
12331
12331
|
hasNext: !0
|
|
12332
12332
|
},
|
|
12333
|
-
subsequentResults:
|
|
12333
|
+
subsequentResults: hp(t)
|
|
12334
12334
|
} : r;
|
|
12335
12335
|
}, (i) => {
|
|
12336
12336
|
var r;
|
|
@@ -12342,7 +12342,7 @@ function Vu(t) {
|
|
|
12342
12342
|
function ra(t, e) {
|
|
12343
12343
|
return e.length === 0 ? { data: t } : { errors: e, data: t };
|
|
12344
12344
|
}
|
|
12345
|
-
const
|
|
12345
|
+
const Hh = $u(function(e) {
|
|
12346
12346
|
const n = /* @__PURE__ */ Object.create(null);
|
|
12347
12347
|
for (const i of e.definitions)
|
|
12348
12348
|
i.kind === I.FRAGMENT_DEFINITION && (n[i.name.value] = i);
|
|
@@ -12352,7 +12352,7 @@ function Bu(t) {
|
|
|
12352
12352
|
var R;
|
|
12353
12353
|
const { schema: e, document: n, rootValue: i, contextValue: r, variableValues: s, operationName: o, fieldResolver: a, typeResolver: u, subscribeFieldResolver: c, signal: f } = t;
|
|
12354
12354
|
mu(e);
|
|
12355
|
-
const g =
|
|
12355
|
+
const g = Hh(n);
|
|
12356
12356
|
let p;
|
|
12357
12357
|
for (const x of n.definitions)
|
|
12358
12358
|
switch (x.kind) {
|
|
@@ -12368,7 +12368,7 @@ function Bu(t) {
|
|
|
12368
12368
|
}
|
|
12369
12369
|
if (p == null)
|
|
12370
12370
|
return o != null ? [X(`Unknown operation named "${o}".`)] : [X("Must provide an operation.")];
|
|
12371
|
-
const w = p.variableDefinitions ?? [], v =
|
|
12371
|
+
const w = p.variableDefinitions ?? [], v = zh(e, w, s ?? {}, {
|
|
12372
12372
|
maxErrors: 50
|
|
12373
12373
|
});
|
|
12374
12374
|
return v.errors ? v.errors : {
|
|
@@ -12379,14 +12379,14 @@ function Bu(t) {
|
|
|
12379
12379
|
operation: p,
|
|
12380
12380
|
variableValues: v.coerced,
|
|
12381
12381
|
fieldResolver: a ?? ua,
|
|
12382
|
-
typeResolver: u ??
|
|
12382
|
+
typeResolver: u ?? rp,
|
|
12383
12383
|
subscribeFieldResolver: c ?? ua,
|
|
12384
12384
|
subsequentPayloads: /* @__PURE__ */ new Set(),
|
|
12385
12385
|
errors: [],
|
|
12386
12386
|
signal: f
|
|
12387
12387
|
};
|
|
12388
12388
|
}
|
|
12389
|
-
function
|
|
12389
|
+
function Jh(t, e) {
|
|
12390
12390
|
return {
|
|
12391
12391
|
...t,
|
|
12392
12392
|
rootValue: e,
|
|
@@ -12394,24 +12394,24 @@ function Kh(t, e) {
|
|
|
12394
12394
|
errors: []
|
|
12395
12395
|
};
|
|
12396
12396
|
}
|
|
12397
|
-
function
|
|
12398
|
-
const { operation: e, schema: n, fragments: i, variableValues: r, rootValue: s } = t, o =
|
|
12397
|
+
function Kh(t) {
|
|
12398
|
+
const { operation: e, schema: n, fragments: i, variableValues: r, rootValue: s } = t, o = Sh(n, e.operation, [e]);
|
|
12399
12399
|
o == null && X(`Schema is not configured to execute ${e.operation} operation.`, {
|
|
12400
12400
|
nodes: e
|
|
12401
12401
|
});
|
|
12402
12402
|
const { fields: a, patches: u } = ju(n, i, r, o, e.selectionSet), c = void 0;
|
|
12403
12403
|
let f;
|
|
12404
|
-
e.operation === "mutation" ? f =
|
|
12404
|
+
e.operation === "mutation" ? f = Xh(t, o, s, c, a) : f = Zs(t, o, s, c, a);
|
|
12405
12405
|
for (const g of u) {
|
|
12406
12406
|
const { label: p, fields: w } = g;
|
|
12407
12407
|
Yu(t, o, s, w, p, c);
|
|
12408
12408
|
}
|
|
12409
12409
|
return f;
|
|
12410
12410
|
}
|
|
12411
|
-
function
|
|
12412
|
-
return
|
|
12411
|
+
function Xh(t, e, n, i, r) {
|
|
12412
|
+
return Eh(r, (s, [o, a]) => {
|
|
12413
12413
|
var c;
|
|
12414
|
-
const u =
|
|
12414
|
+
const u = ci(i, o, e.name);
|
|
12415
12415
|
if ((c = t.signal) != null && c.aborted)
|
|
12416
12416
|
throw t.signal.reason;
|
|
12417
12417
|
return new pt(() => Gu(t, e, n, a, u)).then((f) => (f === void 0 || (s[o] = f), s));
|
|
@@ -12425,7 +12425,7 @@ function Zs(t, e, n, i, r, s) {
|
|
|
12425
12425
|
for (const [c, f] of r) {
|
|
12426
12426
|
if ((u = t.signal) != null && u.aborted)
|
|
12427
12427
|
throw t.signal.reason;
|
|
12428
|
-
const g =
|
|
12428
|
+
const g = ci(i, c, e.name), p = Gu(t, e, n, f, g, s);
|
|
12429
12429
|
p !== void 0 && (o[c] = p, Ae(p) && (a = !0));
|
|
12430
12430
|
}
|
|
12431
12431
|
} catch (c) {
|
|
@@ -12480,10 +12480,10 @@ function qu(t, e, n, i, r) {
|
|
|
12480
12480
|
variableValues: t.variableValues
|
|
12481
12481
|
};
|
|
12482
12482
|
}
|
|
12483
|
-
const
|
|
12483
|
+
const Zh = "CRITICAL_ERROR";
|
|
12484
12484
|
function gt(t, e, n) {
|
|
12485
12485
|
var i;
|
|
12486
|
-
if (re(e) || (i = t.extensions) != null && i[
|
|
12486
|
+
if (re(e) || (i = t.extensions) != null && i[Zh])
|
|
12487
12487
|
throw t;
|
|
12488
12488
|
return n.push(t), null;
|
|
12489
12489
|
}
|
|
@@ -12499,11 +12499,11 @@ function En(t, e, n, i, r, s, o) {
|
|
|
12499
12499
|
if (s == null)
|
|
12500
12500
|
return null;
|
|
12501
12501
|
if (je(e))
|
|
12502
|
-
return
|
|
12502
|
+
return tp(t, e, n, i, r, s, o);
|
|
12503
12503
|
if (yn(e))
|
|
12504
|
-
return
|
|
12504
|
+
return np(e, s);
|
|
12505
12505
|
if (tn(e))
|
|
12506
|
-
return
|
|
12506
|
+
return ip(t, e, n, i, r, s, o);
|
|
12507
12507
|
if (pe(e))
|
|
12508
12508
|
return ws(t, e, n, i, r, s, o);
|
|
12509
12509
|
console.assert(!1, "Cannot complete value of unexpected output type: " + nt(e));
|
|
@@ -12511,14 +12511,14 @@ function En(t, e, n, i, r, s, o) {
|
|
|
12511
12511
|
function zu(t, e, n) {
|
|
12512
12512
|
if (typeof n.key == "number")
|
|
12513
12513
|
return;
|
|
12514
|
-
const i = si(
|
|
12514
|
+
const i = si(Oh, e[0], t.variableValues);
|
|
12515
12515
|
if (i && i.if !== !1)
|
|
12516
12516
|
return na(typeof i.initialCount == "number", "initialCount must be a number"), na(i.initialCount >= 0, "initialCount must be a positive integer"), {
|
|
12517
12517
|
initialCount: i.initialCount,
|
|
12518
12518
|
label: typeof i.label == "string" ? i.label : void 0
|
|
12519
12519
|
};
|
|
12520
12520
|
}
|
|
12521
|
-
async function
|
|
12521
|
+
async function ep(t, e, n, i, r, s, o) {
|
|
12522
12522
|
var p;
|
|
12523
12523
|
(p = t.signal) == null || p.addEventListener("abort", () => {
|
|
12524
12524
|
var w;
|
|
@@ -12530,10 +12530,10 @@ async function tp(t, e, n, i, r, s, o) {
|
|
|
12530
12530
|
let g = 0;
|
|
12531
12531
|
for (; ; ) {
|
|
12532
12532
|
if (u && typeof u.initialCount == "number" && g >= u.initialCount) {
|
|
12533
|
-
|
|
12533
|
+
fp(g, s, t, n, i, e, r, u.label, o);
|
|
12534
12534
|
break;
|
|
12535
12535
|
}
|
|
12536
|
-
const w =
|
|
12536
|
+
const w = ci(r, g, void 0);
|
|
12537
12537
|
let v;
|
|
12538
12538
|
try {
|
|
12539
12539
|
if (v = await s.next(), v.done)
|
|
@@ -12547,22 +12547,22 @@ async function tp(t, e, n, i, r, s, o) {
|
|
|
12547
12547
|
}
|
|
12548
12548
|
return c ? Promise.all(f) : f;
|
|
12549
12549
|
}
|
|
12550
|
-
function
|
|
12550
|
+
function tp(t, e, n, i, r, s, o) {
|
|
12551
12551
|
const a = e.ofType, u = (o == null ? void 0 : o.errors) ?? t.errors;
|
|
12552
12552
|
if (Ur(s)) {
|
|
12553
12553
|
const v = s[Symbol.asyncIterator]();
|
|
12554
|
-
return
|
|
12554
|
+
return ep(t, a, n, i, r, v, o);
|
|
12555
12555
|
}
|
|
12556
|
-
if (!
|
|
12556
|
+
if (!vh(s))
|
|
12557
12557
|
throw X(`Expected Iterable, but did not find one for field "${i.parentType.name}.${i.fieldName}".`);
|
|
12558
12558
|
const c = zu(t, n, r);
|
|
12559
12559
|
let f = !1, g = o;
|
|
12560
12560
|
const p = [];
|
|
12561
12561
|
let w = 0;
|
|
12562
12562
|
for (const v of s) {
|
|
12563
|
-
const R =
|
|
12563
|
+
const R = ci(r, w, void 0);
|
|
12564
12564
|
if (c && typeof c.initialCount == "number" && w >= c.initialCount) {
|
|
12565
|
-
g =
|
|
12565
|
+
g = lp(r, R, v, t, n, i, a, c.label, g), w++;
|
|
12566
12566
|
continue;
|
|
12567
12567
|
}
|
|
12568
12568
|
Qu(v, p, u, t, a, n, i, R, o) && (f = !0), w++;
|
|
@@ -12585,7 +12585,7 @@ function Qu(t, e, n, i, r, s, o, a, u) {
|
|
|
12585
12585
|
}
|
|
12586
12586
|
return !1;
|
|
12587
12587
|
}
|
|
12588
|
-
function
|
|
12588
|
+
function np(t, e) {
|
|
12589
12589
|
let n;
|
|
12590
12590
|
try {
|
|
12591
12591
|
n = t.serialize(e);
|
|
@@ -12596,7 +12596,7 @@ function ip(t, e) {
|
|
|
12596
12596
|
throw new Error(`Expected \`${nt(t)}.serialize(${nt(e)})\` to return non-nullable value, returned: ${nt(n)}`);
|
|
12597
12597
|
return n;
|
|
12598
12598
|
}
|
|
12599
|
-
function
|
|
12599
|
+
function ip(t, e, n, i, r, s, o) {
|
|
12600
12600
|
const a = e.resolveType ?? t.typeResolver, u = t.contextValue, c = a(s, u, i, e);
|
|
12601
12601
|
return Ae(c) ? c.then((f) => ws(t, sa(f, t, e, n, i, s), n, i, r, s, o)) : ws(t, sa(c, t, e, n, i, s), n, i, r, s, o);
|
|
12602
12602
|
}
|
|
@@ -12639,14 +12639,14 @@ function oa(t, e, n) {
|
|
|
12639
12639
|
});
|
|
12640
12640
|
}
|
|
12641
12641
|
function aa(t, e, n, i, r, s) {
|
|
12642
|
-
const { fields: o, patches: a } =
|
|
12642
|
+
const { fields: o, patches: a } = Wh(t, e, n), u = Zs(t, e, r, i, o, s);
|
|
12643
12643
|
for (const c of a) {
|
|
12644
12644
|
const { label: f, fields: g } = c;
|
|
12645
12645
|
Yu(t, e, r, g, f, i, s);
|
|
12646
12646
|
}
|
|
12647
12647
|
return u;
|
|
12648
12648
|
}
|
|
12649
|
-
const
|
|
12649
|
+
const rp = function(t, e, n, i) {
|
|
12650
12650
|
if (Cu(t) && typeof t.__typename == "string")
|
|
12651
12651
|
return t.__typename;
|
|
12652
12652
|
const r = n.schema.getPossibleTypes(i), s = [];
|
|
@@ -12672,7 +12672,7 @@ const sp = function(t, e, n, i) {
|
|
|
12672
12672
|
return typeof r == "function" ? t[i.fieldName](e, n, i) : r;
|
|
12673
12673
|
}
|
|
12674
12674
|
};
|
|
12675
|
-
function
|
|
12675
|
+
function sp(t) {
|
|
12676
12676
|
const e = Bu(t);
|
|
12677
12677
|
if (!("schema" in e))
|
|
12678
12678
|
return {
|
|
@@ -12689,7 +12689,7 @@ function op(t) {
|
|
|
12689
12689
|
}), i;
|
|
12690
12690
|
})
|
|
12691
12691
|
};
|
|
12692
|
-
const n =
|
|
12692
|
+
const n = ap(e);
|
|
12693
12693
|
return Ae(n) ? n.then((i) => la(e, i)) : la(e, n);
|
|
12694
12694
|
}
|
|
12695
12695
|
function Wu(t) {
|
|
@@ -12716,11 +12716,11 @@ function Wu(t) {
|
|
|
12716
12716
|
}
|
|
12717
12717
|
};
|
|
12718
12718
|
}
|
|
12719
|
-
async function*
|
|
12719
|
+
async function* op(t) {
|
|
12720
12720
|
"initialResult" in t ? yield* Wu(t) : yield t;
|
|
12721
12721
|
}
|
|
12722
12722
|
function la(t, e) {
|
|
12723
|
-
return Ur(e) ?
|
|
12723
|
+
return Ur(e) ? qh(Pu(e, async (n) => op(await Vu(Jh(t, n))), (n) => {
|
|
12724
12724
|
throw n instanceof AggregateError ? new AggregateError(n.errors.map((i) => ca(i, t.operation)), n.message) : ca(n, t.operation);
|
|
12725
12725
|
})) : e;
|
|
12726
12726
|
}
|
|
@@ -12730,15 +12730,15 @@ function ca(t, e) {
|
|
|
12730
12730
|
nodes: [e]
|
|
12731
12731
|
});
|
|
12732
12732
|
}
|
|
12733
|
-
function
|
|
12733
|
+
function ap(t) {
|
|
12734
12734
|
try {
|
|
12735
|
-
const e =
|
|
12735
|
+
const e = up(t);
|
|
12736
12736
|
return Ae(e) ? e.then(void 0, (n) => ({ errors: [n] })) : e;
|
|
12737
12737
|
} catch (e) {
|
|
12738
12738
|
return { errors: [e] };
|
|
12739
12739
|
}
|
|
12740
12740
|
}
|
|
12741
|
-
function
|
|
12741
|
+
function up(t) {
|
|
12742
12742
|
const { schema: e, fragments: n, operation: i, variableValues: r, rootValue: s } = t, o = e.getSubscriptionType();
|
|
12743
12743
|
if (o == null)
|
|
12744
12744
|
throw X("Schema is not configured to execute subscription operation.", {
|
|
@@ -12749,7 +12749,7 @@ function lp(t) {
|
|
|
12749
12749
|
throw X(`The subscription field "${f}" is not defined.`, {
|
|
12750
12750
|
nodes: c
|
|
12751
12751
|
});
|
|
12752
|
-
const p =
|
|
12752
|
+
const p = ci(void 0, u, o.name), w = qu(t, g, c, o, p);
|
|
12753
12753
|
try {
|
|
12754
12754
|
const v = Du(g, c[0], r), R = t.contextValue, y = (g.subscribe ?? t.subscribeFieldResolver)(s, v, R, w);
|
|
12755
12755
|
return Ae(y) ? y.then(fa).then(void 0, (S) => {
|
|
@@ -12775,7 +12775,7 @@ function fa(t, e) {
|
|
|
12775
12775
|
};
|
|
12776
12776
|
}
|
|
12777
12777
|
function Yu(t, e, n, i, r, s, o) {
|
|
12778
|
-
const a = new
|
|
12778
|
+
const a = new pp({
|
|
12779
12779
|
label: r,
|
|
12780
12780
|
path: s,
|
|
12781
12781
|
parentContext: o,
|
|
@@ -12789,7 +12789,7 @@ function Yu(t, e, n, i, r, s, o) {
|
|
|
12789
12789
|
}
|
|
12790
12790
|
a.addData(u);
|
|
12791
12791
|
}
|
|
12792
|
-
function
|
|
12792
|
+
function lp(t, e, n, i, r, s, o, a, u) {
|
|
12793
12793
|
const c = new Hu({
|
|
12794
12794
|
label: a,
|
|
12795
12795
|
path: e,
|
|
@@ -12814,7 +12814,7 @@ function cp(t, e, n, i, r, s, o, a, u) {
|
|
|
12814
12814
|
let g;
|
|
12815
12815
|
return Ae(f) ? g = f.then((p) => [p], (p) => (c.errors.push(p), dt(i, t, c), null)) : g = [f], c.addItems(g), c;
|
|
12816
12816
|
}
|
|
12817
|
-
async function
|
|
12817
|
+
async function cp(t, e, n, i, r, s, o) {
|
|
12818
12818
|
let a;
|
|
12819
12819
|
try {
|
|
12820
12820
|
const { value: c, done: f } = await t.next();
|
|
@@ -12836,10 +12836,10 @@ async function fp(t, e, n, i, r, s, o) {
|
|
|
12836
12836
|
return dt(e, o, s), { done: !1, value: g };
|
|
12837
12837
|
}
|
|
12838
12838
|
}
|
|
12839
|
-
async function
|
|
12839
|
+
async function fp(t, e, n, i, r, s, o, a, u) {
|
|
12840
12840
|
let c = t, f = u ?? void 0;
|
|
12841
12841
|
for (; ; ) {
|
|
12842
|
-
const g =
|
|
12842
|
+
const g = ci(o, c, void 0), p = new Hu({
|
|
12843
12843
|
label: a,
|
|
12844
12844
|
path: g,
|
|
12845
12845
|
parentContext: f,
|
|
@@ -12848,7 +12848,7 @@ async function dp(t, e, n, i, r, s, o, a, u) {
|
|
|
12848
12848
|
});
|
|
12849
12849
|
let w;
|
|
12850
12850
|
try {
|
|
12851
|
-
w = await
|
|
12851
|
+
w = await cp(e, n, i, r, s, p, g);
|
|
12852
12852
|
} catch (y) {
|
|
12853
12853
|
p.errors.push(y), dt(n, o, p), p.addItems(null), e != null && e.return && e.return().catch(() => {
|
|
12854
12854
|
});
|
|
@@ -12874,7 +12874,7 @@ function dt(t, e, n) {
|
|
|
12874
12874
|
}
|
|
12875
12875
|
});
|
|
12876
12876
|
}
|
|
12877
|
-
function
|
|
12877
|
+
function dp(t) {
|
|
12878
12878
|
const e = [];
|
|
12879
12879
|
for (const n of t.subsequentPayloads) {
|
|
12880
12880
|
const i = {};
|
|
@@ -12893,7 +12893,7 @@ function hp(t) {
|
|
|
12893
12893
|
}
|
|
12894
12894
|
return e;
|
|
12895
12895
|
}
|
|
12896
|
-
function
|
|
12896
|
+
function hp(t) {
|
|
12897
12897
|
let e = !1;
|
|
12898
12898
|
const n = new Promise((s, o) => {
|
|
12899
12899
|
var a;
|
|
@@ -12910,7 +12910,7 @@ function pp(t) {
|
|
|
12910
12910
|
...Array.from(t.subsequentPayloads).map((a) => a.promise)
|
|
12911
12911
|
]), e)
|
|
12912
12912
|
return { value: void 0, done: !0 };
|
|
12913
|
-
const s =
|
|
12913
|
+
const s = dp(t), o = t.subsequentPayloads.size > 0;
|
|
12914
12914
|
return !s.length && o ? i() : (o || (e = !0), {
|
|
12915
12915
|
value: s.length ? { incremental: s, hasNext: o } : { hasNext: o },
|
|
12916
12916
|
done: !1
|
|
@@ -12936,7 +12936,7 @@ function pp(t) {
|
|
|
12936
12936
|
}
|
|
12937
12937
|
};
|
|
12938
12938
|
}
|
|
12939
|
-
class
|
|
12939
|
+
class pp {
|
|
12940
12940
|
constructor(e) {
|
|
12941
12941
|
U(this, "type");
|
|
12942
12942
|
U(this, "errors");
|
|
@@ -13012,63 +13012,63 @@ function da(t) {
|
|
|
13012
13012
|
const e = Ys(t.document, t.operationName);
|
|
13013
13013
|
if (e == null)
|
|
13014
13014
|
throw new Error("Must provide an operation.");
|
|
13015
|
-
return e.operation === "subscription" ?
|
|
13015
|
+
return e.operation === "subscription" ? sp(t) : new pt(() => Yh(t)).then((n) => "initialResult" in n ? Wu(n) : n).resolve();
|
|
13016
13016
|
}
|
|
13017
|
-
function
|
|
13017
|
+
function gp(t) {
|
|
13018
13018
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
13019
13019
|
}
|
|
13020
|
-
var ve = {},
|
|
13020
|
+
var ve = {}, mp = ve.fetch = globalThis.fetch, yp = ve.Headers = globalThis.Headers, bp = ve.Request = globalThis.Request, Ku = ve.Response = globalThis.Response, vp = ve.FormData = globalThis.FormData, Ep = ve.ReadableStream = globalThis.ReadableStream, wp = ve.WritableStream = globalThis.WritableStream, Tp = ve.TransformStream = globalThis.TransformStream, Sp = ve.CompressionStream = globalThis.CompressionStream, _p = ve.DecompressionStream = globalThis.DecompressionStream, Ip = ve.Blob = globalThis.Blob, Op = ve.File = globalThis.File, Np = ve.crypto = globalThis.crypto, Ap = ve.btoa = globalThis.btoa, xp = ve.TextEncoder = globalThis.TextEncoder, Fp = ve.TextDecoder = globalThis.TextDecoder, Rp = ve.URLPattern = globalThis.URLPattern, Xu = ve.URL = globalThis.URL, to = ve.URLSearchParams = globalThis.URLSearchParams, Lp = ve.createFetch = () => globalThis, Zu = /* @__PURE__ */ Sl({
|
|
13021
13021
|
__proto__: null,
|
|
13022
|
-
Blob:
|
|
13023
|
-
CompressionStream:
|
|
13024
|
-
DecompressionStream:
|
|
13025
|
-
File:
|
|
13026
|
-
FormData:
|
|
13027
|
-
Headers:
|
|
13028
|
-
ReadableStream:
|
|
13029
|
-
Request:
|
|
13022
|
+
Blob: Ip,
|
|
13023
|
+
CompressionStream: Sp,
|
|
13024
|
+
DecompressionStream: _p,
|
|
13025
|
+
File: Op,
|
|
13026
|
+
FormData: vp,
|
|
13027
|
+
Headers: yp,
|
|
13028
|
+
ReadableStream: Ep,
|
|
13029
|
+
Request: bp,
|
|
13030
13030
|
Response: Ku,
|
|
13031
|
-
TextDecoder:
|
|
13032
|
-
TextEncoder:
|
|
13033
|
-
TransformStream:
|
|
13031
|
+
TextDecoder: Fp,
|
|
13032
|
+
TextEncoder: xp,
|
|
13033
|
+
TransformStream: Tp,
|
|
13034
13034
|
URL: Xu,
|
|
13035
|
-
URLPattern:
|
|
13035
|
+
URLPattern: Rp,
|
|
13036
13036
|
URLSearchParams: to,
|
|
13037
|
-
WritableStream:
|
|
13038
|
-
btoa:
|
|
13039
|
-
createFetch:
|
|
13040
|
-
crypto:
|
|
13037
|
+
WritableStream: wp,
|
|
13038
|
+
btoa: Ap,
|
|
13039
|
+
createFetch: Lp,
|
|
13040
|
+
crypto: Np,
|
|
13041
13041
|
default: ve,
|
|
13042
|
-
fetch:
|
|
13042
|
+
fetch: mp
|
|
13043
13043
|
}, [ve]);
|
|
13044
13044
|
function el(t) {
|
|
13045
13045
|
return t != null && typeof t == "object" && typeof t[Symbol.asyncIterator] == "function";
|
|
13046
13046
|
}
|
|
13047
|
-
function
|
|
13047
|
+
function Cp(t) {
|
|
13048
13048
|
var i, r, s, o, a;
|
|
13049
13049
|
if ((i = t.socket) != null && i.localPort)
|
|
13050
13050
|
return (r = t.socket) == null ? void 0 : r.localPort;
|
|
13051
13051
|
const e = ((s = t.headers) == null ? void 0 : s[":authority"]) || ((o = t.headers) == null ? void 0 : o.host), n = (a = e == null ? void 0 : e.split(":")) == null ? void 0 : a[1];
|
|
13052
13052
|
return n || 80;
|
|
13053
13053
|
}
|
|
13054
|
-
function
|
|
13054
|
+
function kp(t) {
|
|
13055
13055
|
var i, r, s, o, a;
|
|
13056
13056
|
if ((i = t.headers) != null && i[":authority"])
|
|
13057
13057
|
return (r = t.headers) == null ? void 0 : r[":authority"];
|
|
13058
13058
|
if ((s = t.headers) != null && s.host)
|
|
13059
13059
|
return (o = t.headers) == null ? void 0 : o.host;
|
|
13060
|
-
const e =
|
|
13060
|
+
const e = Cp(t);
|
|
13061
13061
|
if (t.hostname)
|
|
13062
13062
|
return t.hostname + ":" + e;
|
|
13063
13063
|
const n = (a = t.socket) == null ? void 0 : a.localAddress;
|
|
13064
13064
|
return n && !(n != null && n.includes("::")) && !(n != null && n.includes("ffff")) ? `${n}:${e}` : "localhost";
|
|
13065
13065
|
}
|
|
13066
|
-
function
|
|
13066
|
+
function Dp(t) {
|
|
13067
13067
|
var r;
|
|
13068
|
-
const e =
|
|
13068
|
+
const e = kp(t), n = t.protocol || ((r = t.socket) != null && r.encrypted ? "https" : "http"), i = t.originalUrl || t.url || "/graphql";
|
|
13069
13069
|
return `${n}://${e}${i}`;
|
|
13070
13070
|
}
|
|
13071
|
-
function
|
|
13071
|
+
function $p(t) {
|
|
13072
13072
|
const e = t[Symbol.toStringTag];
|
|
13073
13073
|
return !!(typeof t == "string" || e === "Uint8Array" || e === "Blob" || e === "FormData" || e === "URLSearchParams" || el(t));
|
|
13074
13074
|
}
|
|
@@ -13098,10 +13098,10 @@ class tl extends EventTarget {
|
|
|
13098
13098
|
}
|
|
13099
13099
|
let ha = !1;
|
|
13100
13100
|
const Ts = /* @__PURE__ */ new WeakMap();
|
|
13101
|
-
function
|
|
13101
|
+
function Pp(t, e) {
|
|
13102
13102
|
var u, c, f, g;
|
|
13103
13103
|
const n = t.raw || t.req || t;
|
|
13104
|
-
let i =
|
|
13104
|
+
let i = Dp(n);
|
|
13105
13105
|
if (t.query) {
|
|
13106
13106
|
const p = new Xu(i);
|
|
13107
13107
|
for (const w in t.query)
|
|
@@ -13140,7 +13140,7 @@ function jp(t, e) {
|
|
|
13140
13140
|
});
|
|
13141
13141
|
const a = t.body;
|
|
13142
13142
|
if (a != null && Object.keys(a).length > 0) {
|
|
13143
|
-
if (
|
|
13143
|
+
if ($p(a))
|
|
13144
13144
|
return new e(i, {
|
|
13145
13145
|
method: t.method,
|
|
13146
13146
|
headers: o,
|
|
@@ -13196,23 +13196,23 @@ It will affect your performance. Please check our Bun integration recipe, and av
|
|
|
13196
13196
|
function no(t) {
|
|
13197
13197
|
return t.read != null;
|
|
13198
13198
|
}
|
|
13199
|
-
function
|
|
13199
|
+
function jp(t) {
|
|
13200
13200
|
return no(t);
|
|
13201
13201
|
}
|
|
13202
13202
|
function pa(t) {
|
|
13203
13203
|
return t != null && t.setHeader != null && t.end != null && t.once != null && t.write != null;
|
|
13204
13204
|
}
|
|
13205
|
-
function
|
|
13205
|
+
function Mp(t) {
|
|
13206
13206
|
return t != null && t.request != null && t.respondWith != null;
|
|
13207
13207
|
}
|
|
13208
|
-
function
|
|
13208
|
+
function Up(t) {
|
|
13209
13209
|
var e, n, i, r, s, o;
|
|
13210
13210
|
(n = (e = t == null ? void 0 : t.socket) == null ? void 0 : e.setTimeout) == null || n.call(e, 0), (r = (i = t == null ? void 0 : t.socket) == null ? void 0 : i.setNoDelay) == null || r.call(i, !0), (o = (s = t == null ? void 0 : t.socket) == null ? void 0 : s.setKeepAlive) == null || o.call(s, !0);
|
|
13211
13211
|
}
|
|
13212
13212
|
function dr(t) {
|
|
13213
13213
|
t.end(null, null, null);
|
|
13214
13214
|
}
|
|
13215
|
-
async function
|
|
13215
|
+
async function Vp(t, e) {
|
|
13216
13216
|
let n = !1;
|
|
13217
13217
|
const i = () => {
|
|
13218
13218
|
n = !0;
|
|
@@ -13268,16 +13268,16 @@ function ga(t, e, n) {
|
|
|
13268
13268
|
e.write(s), dr(e);
|
|
13269
13269
|
return;
|
|
13270
13270
|
}
|
|
13271
|
-
if (
|
|
13271
|
+
if (Up(n), no(s)) {
|
|
13272
13272
|
e.once("close", () => {
|
|
13273
13273
|
s.destroy();
|
|
13274
13274
|
}), s.pipe(e);
|
|
13275
13275
|
return;
|
|
13276
13276
|
}
|
|
13277
13277
|
if (el(s))
|
|
13278
|
-
return
|
|
13278
|
+
return Vp(e, s);
|
|
13279
13279
|
}
|
|
13280
|
-
function
|
|
13280
|
+
function Bp(t) {
|
|
13281
13281
|
return t != null && typeof t == "object" && ("body" in t || "cache" in t || "credentials" in t || "headers" in t || "integrity" in t || "keepalive" in t || "method" in t || "mode" in t || "redirect" in t || "referrer" in t || "referrerPolicy" in t || "signal" in t || "window" in t);
|
|
13282
13282
|
}
|
|
13283
13283
|
function sr(...t) {
|
|
@@ -13362,7 +13362,7 @@ function ya(t, e) {
|
|
|
13362
13362
|
}
|
|
13363
13363
|
});
|
|
13364
13364
|
}
|
|
13365
|
-
function
|
|
13365
|
+
function Gp() {
|
|
13366
13366
|
let t, e;
|
|
13367
13367
|
return {
|
|
13368
13368
|
promise: new Promise(function(r, s) {
|
|
@@ -13378,7 +13378,7 @@ function qp() {
|
|
|
13378
13378
|
}
|
|
13379
13379
|
function ba(t, e) {
|
|
13380
13380
|
if (hn(t) && e) {
|
|
13381
|
-
const n =
|
|
13381
|
+
const n = Gp();
|
|
13382
13382
|
return e.addEventListener("abort", function() {
|
|
13383
13383
|
n.reject(e.reason);
|
|
13384
13384
|
}), t.then(function(r) {
|
|
@@ -13389,10 +13389,10 @@ function ba(t, e) {
|
|
|
13389
13389
|
}
|
|
13390
13390
|
return t;
|
|
13391
13391
|
}
|
|
13392
|
-
function
|
|
13392
|
+
function qp(t) {
|
|
13393
13393
|
return !!t.onData;
|
|
13394
13394
|
}
|
|
13395
|
-
function
|
|
13395
|
+
function zp({ req: t, res: e, fetchAPI: n, signal: i }) {
|
|
13396
13396
|
let r;
|
|
13397
13397
|
const s = t.getMethod();
|
|
13398
13398
|
if (s !== "get" && s !== "head") {
|
|
@@ -13436,7 +13436,7 @@ function Qp({ req: t, res: e, fetchAPI: n, signal: i }) {
|
|
|
13436
13436
|
duplex: "half"
|
|
13437
13437
|
});
|
|
13438
13438
|
}
|
|
13439
|
-
async function
|
|
13439
|
+
async function Qp(t, e, n) {
|
|
13440
13440
|
for await (const i of e.body) {
|
|
13441
13441
|
if (n.aborted)
|
|
13442
13442
|
return;
|
|
@@ -13475,21 +13475,21 @@ function va(t, e, n) {
|
|
|
13475
13475
|
t.end();
|
|
13476
13476
|
return;
|
|
13477
13477
|
}
|
|
13478
|
-
return
|
|
13478
|
+
return Qp(t, e, n);
|
|
13479
13479
|
}
|
|
13480
13480
|
}
|
|
13481
|
-
async function
|
|
13481
|
+
async function Wp(t) {
|
|
13482
13482
|
await Promise.allSettled(t);
|
|
13483
13483
|
}
|
|
13484
|
-
function
|
|
13484
|
+
function Yp(t) {
|
|
13485
13485
|
try {
|
|
13486
13486
|
return !!(t != null && t.request);
|
|
13487
13487
|
} catch {
|
|
13488
13488
|
return !1;
|
|
13489
13489
|
}
|
|
13490
13490
|
}
|
|
13491
|
-
const
|
|
13492
|
-
function
|
|
13491
|
+
const Hp = {};
|
|
13492
|
+
function Jp(t, e) {
|
|
13493
13493
|
const n = {
|
|
13494
13494
|
...Zu,
|
|
13495
13495
|
...e == null ? void 0 : e.fetchAPI
|
|
@@ -13501,7 +13501,7 @@ function Kp(t, e) {
|
|
|
13501
13501
|
let O = i, C;
|
|
13502
13502
|
if (r.length === 0)
|
|
13503
13503
|
return b();
|
|
13504
|
-
let T = new Proxy(
|
|
13504
|
+
let T = new Proxy(Hp, {
|
|
13505
13505
|
get(d, N, L) {
|
|
13506
13506
|
return T = new n.URL(S.url, "http://localhost"), Reflect.get(T, N, T);
|
|
13507
13507
|
}
|
|
@@ -13546,7 +13546,7 @@ function Kp(t, e) {
|
|
|
13546
13546
|
return hn(_) ? _.then(b) : b();
|
|
13547
13547
|
} : i;
|
|
13548
13548
|
function a(y, ...S) {
|
|
13549
|
-
const A = S.length > 1 ? sr(...S) : S[0] || {}, O =
|
|
13549
|
+
const A = S.length > 1 ? sr(...S) : S[0] || {}, O = Pp(y, n.Request);
|
|
13550
13550
|
return o(O, A);
|
|
13551
13551
|
}
|
|
13552
13552
|
function u(y, S, ...A) {
|
|
@@ -13593,7 +13593,7 @@ function Kp(t, e) {
|
|
|
13593
13593
|
}), y.onAborted = function(q) {
|
|
13594
13594
|
m.addEventListener("abort", q);
|
|
13595
13595
|
};
|
|
13596
|
-
const L =
|
|
13596
|
+
const L = zp({
|
|
13597
13597
|
req: S,
|
|
13598
13598
|
res: y,
|
|
13599
13599
|
fetchAPI: n,
|
|
@@ -13631,12 +13631,12 @@ ${q.stack || q.message || q}`);
|
|
|
13631
13631
|
const A = S.filter((_) => _ != null);
|
|
13632
13632
|
let O;
|
|
13633
13633
|
const C = A.length > 1 ? sr({}, ...A) : ya(A[0], A[0] == null || A[0].waitUntil == null ? O = [] : void 0), T = o(y, C);
|
|
13634
|
-
return O != null && O.length ?
|
|
13634
|
+
return O != null && O.length ? Wp(O).then(() => T) : T;
|
|
13635
13635
|
}
|
|
13636
13636
|
const w = (y, ...S) => {
|
|
13637
13637
|
if (typeof y == "string" || "href" in y) {
|
|
13638
13638
|
const [O, ...C] = S;
|
|
13639
|
-
if (
|
|
13639
|
+
if (Bp(O)) {
|
|
13640
13640
|
const _ = new n.Request(y, O), m = p(_, ...C);
|
|
13641
13641
|
return ba(m, O == null ? void 0 : O.signal);
|
|
13642
13642
|
}
|
|
@@ -13647,16 +13647,16 @@ ${q.stack || q.message || q}`);
|
|
|
13647
13647
|
return ba(A, y._signal);
|
|
13648
13648
|
}, v = (y, ...S) => {
|
|
13649
13649
|
const [A, ...O] = S;
|
|
13650
|
-
if (
|
|
13650
|
+
if (jp(y)) {
|
|
13651
13651
|
if (!pa(A))
|
|
13652
13652
|
throw new TypeError(`Expected ServerResponse, got ${A}`);
|
|
13653
13653
|
return c(y, A, ...O);
|
|
13654
13654
|
}
|
|
13655
|
-
if (
|
|
13655
|
+
if (qp(y))
|
|
13656
13656
|
return f(y, A, ...O);
|
|
13657
13657
|
if (pa(A))
|
|
13658
13658
|
throw new TypeError("Got Node response without Node request");
|
|
13659
|
-
return
|
|
13659
|
+
return Yp(y) ? Mp(y) ? g(y, ...S) : p(y.request, y, ...S) : w(y, ...S);
|
|
13660
13660
|
}, R = {
|
|
13661
13661
|
handleRequest: p,
|
|
13662
13662
|
fetch: w,
|
|
@@ -13691,7 +13691,7 @@ ${q.stack || q.message || q}`);
|
|
|
13691
13691
|
});
|
|
13692
13692
|
return x;
|
|
13693
13693
|
}
|
|
13694
|
-
function
|
|
13694
|
+
function Kp(t, e) {
|
|
13695
13695
|
var r, s;
|
|
13696
13696
|
const n = t.headers.get("origin");
|
|
13697
13697
|
if (e === !1 || n == null)
|
|
@@ -13711,11 +13711,11 @@ function Xp(t, e) {
|
|
|
13711
13711
|
}
|
|
13712
13712
|
return e.credentials != null ? e.credentials === !0 && (i["Access-Control-Allow-Credentials"] = "true") : i["Access-Control-Allow-Origin"] !== "*" && (i["Access-Control-Allow-Credentials"] = "true"), e.exposedHeaders && (i["Access-Control-Expose-Headers"] = e.exposedHeaders.join(", ")), e.maxAge && (i["Access-Control-Max-Age"] = e.maxAge.toString()), i;
|
|
13713
13713
|
}
|
|
13714
|
-
async function
|
|
13714
|
+
async function Xp(t, e, n) {
|
|
13715
13715
|
const i = await e(t, n);
|
|
13716
|
-
return
|
|
13716
|
+
return Kp(t, i);
|
|
13717
13717
|
}
|
|
13718
|
-
function
|
|
13718
|
+
function Zp(t) {
|
|
13719
13719
|
let e = () => ({});
|
|
13720
13720
|
if (t != null)
|
|
13721
13721
|
if (typeof t == "function")
|
|
@@ -13742,14 +13742,14 @@ function eg(t) {
|
|
|
13742
13742
|
}
|
|
13743
13743
|
},
|
|
13744
13744
|
async onResponse({ request: n, serverContext: i, response: r }) {
|
|
13745
|
-
const s = await
|
|
13745
|
+
const s = await Xp(n, e, i);
|
|
13746
13746
|
if (s != null)
|
|
13747
13747
|
for (const o in s)
|
|
13748
13748
|
r.headers.set(o, s[o]);
|
|
13749
13749
|
}
|
|
13750
13750
|
};
|
|
13751
13751
|
}
|
|
13752
|
-
function
|
|
13752
|
+
function eg(t = Ku) {
|
|
13753
13753
|
return function(n) {
|
|
13754
13754
|
return n.details || n.status || n.headers || n.name === "HTTPError" ? new t(typeof n.details == "object" ? JSON.stringify(n.details) : n.message, {
|
|
13755
13755
|
status: n.status,
|
|
@@ -13760,10 +13760,10 @@ function tg(t = Ku) {
|
|
|
13760
13760
|
function Ss(t) {
|
|
13761
13761
|
return t.error ? t.error() : new t(null, { status: 500 });
|
|
13762
13762
|
}
|
|
13763
|
-
function
|
|
13763
|
+
function tg(t) {
|
|
13764
13764
|
return {
|
|
13765
13765
|
onRequest({ requestHandler: e, setRequestHandler: n, fetchAPI: i }) {
|
|
13766
|
-
const r = t ||
|
|
13766
|
+
const r = t || eg(i.Response);
|
|
13767
13767
|
n(function(o, a) {
|
|
13768
13768
|
try {
|
|
13769
13769
|
const u = e(o, a);
|
|
@@ -13784,40 +13784,40 @@ function nl(t) {
|
|
|
13784
13784
|
extensions: r ? JSON.parse(r) : void 0
|
|
13785
13785
|
};
|
|
13786
13786
|
}
|
|
13787
|
-
function
|
|
13787
|
+
function ng(t) {
|
|
13788
13788
|
const e = new to(t);
|
|
13789
13789
|
return nl(e);
|
|
13790
13790
|
}
|
|
13791
|
-
function
|
|
13791
|
+
function Ri(t, e) {
|
|
13792
13792
|
let n = t.headers.get("content-type");
|
|
13793
13793
|
return n = (n == null ? void 0 : n.split(",")[0]) || null, n === e || !!(n != null && n.startsWith(`${e};`));
|
|
13794
13794
|
}
|
|
13795
|
-
function
|
|
13795
|
+
function ig(t) {
|
|
13796
13796
|
return t.method === "GET";
|
|
13797
13797
|
}
|
|
13798
|
-
function
|
|
13798
|
+
function rg(t) {
|
|
13799
13799
|
const [, e = ""] = t.url.split("?"), n = new to(e);
|
|
13800
13800
|
return nl(n);
|
|
13801
13801
|
}
|
|
13802
|
-
function
|
|
13803
|
-
return t.method === "POST" &&
|
|
13802
|
+
function sg(t) {
|
|
13803
|
+
return t.method === "POST" && Ri(t, "application/x-www-form-urlencoded");
|
|
13804
13804
|
}
|
|
13805
|
-
async function
|
|
13805
|
+
async function og(t) {
|
|
13806
13806
|
const e = await t.text();
|
|
13807
|
-
return
|
|
13807
|
+
return ng(e);
|
|
13808
13808
|
}
|
|
13809
|
-
function
|
|
13810
|
-
return t.method === "POST" &&
|
|
13809
|
+
function ag(t) {
|
|
13810
|
+
return t.method === "POST" && Ri(t, "application/graphql");
|
|
13811
13811
|
}
|
|
13812
|
-
async function
|
|
13812
|
+
async function ug(t) {
|
|
13813
13813
|
return {
|
|
13814
13814
|
query: await t.text()
|
|
13815
13815
|
};
|
|
13816
13816
|
}
|
|
13817
|
-
function
|
|
13818
|
-
return t.method === "POST" && (
|
|
13817
|
+
function lg(t) {
|
|
13818
|
+
return t.method === "POST" && (Ri(t, "application/json") || Ri(t, "application/graphql+json"));
|
|
13819
13819
|
}
|
|
13820
|
-
async function
|
|
13820
|
+
async function cg(t) {
|
|
13821
13821
|
let e;
|
|
13822
13822
|
try {
|
|
13823
13823
|
e = await t.json();
|
|
@@ -13854,15 +13854,15 @@ async function fg(t) {
|
|
|
13854
13854
|
});
|
|
13855
13855
|
return e;
|
|
13856
13856
|
}
|
|
13857
|
-
function
|
|
13857
|
+
function fg(t, e, n) {
|
|
13858
13858
|
e.split && (e = e.split("."));
|
|
13859
13859
|
for (var i = 0, r = e.length, s = t, o, a; i < r && (a = "" + e[i++], !(a === "__proto__" || a === "constructor" || a === "prototype")); )
|
|
13860
13860
|
s = s[a] = i === r ? n : typeof (o = s[a]) == typeof e ? o : e[i] * 0 !== 0 || ~("" + e[i]).indexOf(".") ? {} : [];
|
|
13861
13861
|
}
|
|
13862
|
-
function
|
|
13863
|
-
return t.method === "POST" &&
|
|
13862
|
+
function dg(t) {
|
|
13863
|
+
return t.method === "POST" && Ri(t, "multipart/form-data");
|
|
13864
13864
|
}
|
|
13865
|
-
async function
|
|
13865
|
+
async function hg(t) {
|
|
13866
13866
|
let e;
|
|
13867
13867
|
try {
|
|
13868
13868
|
e = await t.formData();
|
|
@@ -13899,13 +13899,13 @@ async function pg(t) {
|
|
|
13899
13899
|
for (const o in s) {
|
|
13900
13900
|
const a = e.get(o), u = s[o];
|
|
13901
13901
|
for (const c of u)
|
|
13902
|
-
|
|
13902
|
+
fg(i, c, a);
|
|
13903
13903
|
}
|
|
13904
13904
|
}
|
|
13905
13905
|
return i;
|
|
13906
13906
|
}
|
|
13907
|
-
const
|
|
13908
|
-
function
|
|
13907
|
+
const pg = /* @__PURE__ */ new Set(["query", "variables", "operationName", "extensions"]);
|
|
13908
|
+
function gg(t, e) {
|
|
13909
13909
|
if (t == null || typeof t != "object")
|
|
13910
13910
|
throw X('Invalid "params" in the request body', {
|
|
13911
13911
|
extensions: {
|
|
@@ -13916,7 +13916,7 @@ function mg(t, e) {
|
|
|
13916
13916
|
}
|
|
13917
13917
|
});
|
|
13918
13918
|
for (const n in t)
|
|
13919
|
-
if (t[n] != null && !
|
|
13919
|
+
if (t[n] != null && !pg.has(n)) {
|
|
13920
13920
|
if (e != null && e.includes(n))
|
|
13921
13921
|
continue;
|
|
13922
13922
|
throw X(`Unexpected parameter "${n}" in the request body.`, {
|
|
@@ -13928,9 +13928,9 @@ function mg(t, e) {
|
|
|
13928
13928
|
});
|
|
13929
13929
|
}
|
|
13930
13930
|
}
|
|
13931
|
-
function
|
|
13932
|
-
if (!
|
|
13933
|
-
throw X(`Expected params to be an object but given ${
|
|
13931
|
+
function mg(t, e) {
|
|
13932
|
+
if (!bg(t))
|
|
13933
|
+
throw X(`Expected params to be an object but given ${_i(t)}.`, {
|
|
13934
13934
|
extensions: {
|
|
13935
13935
|
http: {
|
|
13936
13936
|
status: 400,
|
|
@@ -13940,7 +13940,7 @@ function yg(t, e) {
|
|
|
13940
13940
|
}
|
|
13941
13941
|
}
|
|
13942
13942
|
});
|
|
13943
|
-
if (
|
|
13943
|
+
if (gg(t, e), t.query == null)
|
|
13944
13944
|
throw X("Must provide query string.", {
|
|
13945
13945
|
extensions: {
|
|
13946
13946
|
http: {
|
|
@@ -13952,7 +13952,7 @@ function yg(t, e) {
|
|
|
13952
13952
|
}
|
|
13953
13953
|
}
|
|
13954
13954
|
});
|
|
13955
|
-
const n =
|
|
13955
|
+
const n = _i(t.query);
|
|
13956
13956
|
if (n !== "string")
|
|
13957
13957
|
throw X(`Expected "query" param to be a string, but given ${n}.`, {
|
|
13958
13958
|
extensions: {
|
|
@@ -13964,7 +13964,7 @@ function yg(t, e) {
|
|
|
13964
13964
|
}
|
|
13965
13965
|
}
|
|
13966
13966
|
});
|
|
13967
|
-
const i =
|
|
13967
|
+
const i = _i(t.variables);
|
|
13968
13968
|
if (!["object", "null", "undefined"].includes(i))
|
|
13969
13969
|
throw X(`Expected "variables" param to be empty or an object, but given ${i}.`, {
|
|
13970
13970
|
extensions: {
|
|
@@ -13976,7 +13976,7 @@ function yg(t, e) {
|
|
|
13976
13976
|
}
|
|
13977
13977
|
}
|
|
13978
13978
|
});
|
|
13979
|
-
const r =
|
|
13979
|
+
const r = _i(t.extensions);
|
|
13980
13980
|
if (!["object", "null", "undefined"].includes(r))
|
|
13981
13981
|
throw X(`Expected "extensions" param to be empty or an object, but given ${r}.`, {
|
|
13982
13982
|
extensions: {
|
|
@@ -13990,26 +13990,26 @@ function yg(t, e) {
|
|
|
13990
13990
|
});
|
|
13991
13991
|
return t;
|
|
13992
13992
|
}
|
|
13993
|
-
function
|
|
13993
|
+
function yg(t) {
|
|
13994
13994
|
return {
|
|
13995
13995
|
onParams({ params: e }) {
|
|
13996
|
-
|
|
13996
|
+
mg(e, t);
|
|
13997
13997
|
}
|
|
13998
13998
|
};
|
|
13999
13999
|
}
|
|
14000
|
-
function
|
|
14000
|
+
function _i(t) {
|
|
14001
14001
|
return t === null ? "null" : Array.isArray(t) ? "array" : typeof t;
|
|
14002
14002
|
}
|
|
14003
|
-
function
|
|
14004
|
-
return
|
|
14003
|
+
function bg(t) {
|
|
14004
|
+
return _i(t) === "object";
|
|
14005
14005
|
}
|
|
14006
|
-
function
|
|
14006
|
+
function vg(t) {
|
|
14007
14007
|
return t === "GET" || t === "POST";
|
|
14008
14008
|
}
|
|
14009
|
-
function
|
|
14009
|
+
function Eg() {
|
|
14010
14010
|
return {
|
|
14011
14011
|
onRequestParse({ request: t }) {
|
|
14012
|
-
if (!
|
|
14012
|
+
if (!vg(t.method))
|
|
14013
14013
|
throw X("GraphQL only supports GET and POST requests.", {
|
|
14014
14014
|
extensions: {
|
|
14015
14015
|
http: {
|
|
@@ -14023,7 +14023,7 @@ function wg() {
|
|
|
14023
14023
|
}
|
|
14024
14024
|
};
|
|
14025
14025
|
}
|
|
14026
|
-
function
|
|
14026
|
+
function wg() {
|
|
14027
14027
|
return {
|
|
14028
14028
|
onValidate() {
|
|
14029
14029
|
return ({ valid: t, result: e }) => {
|
|
@@ -14039,7 +14039,7 @@ function Tg() {
|
|
|
14039
14039
|
}
|
|
14040
14040
|
};
|
|
14041
14041
|
}
|
|
14042
|
-
function
|
|
14042
|
+
function Tg(t) {
|
|
14043
14043
|
return {
|
|
14044
14044
|
onRequestParse() {
|
|
14045
14045
|
return {
|
|
@@ -14067,7 +14067,7 @@ function Sg(t) {
|
|
|
14067
14067
|
}
|
|
14068
14068
|
};
|
|
14069
14069
|
}
|
|
14070
|
-
function
|
|
14070
|
+
function Sg(t, e, n) {
|
|
14071
14071
|
const i = e ? Ys(e, n) ?? void 0 : void 0;
|
|
14072
14072
|
if (!i)
|
|
14073
14073
|
throw X("Could not determine what operation to execute.", {
|
|
@@ -14089,7 +14089,7 @@ function _g(t, e, n) {
|
|
|
14089
14089
|
}
|
|
14090
14090
|
});
|
|
14091
14091
|
}
|
|
14092
|
-
function
|
|
14092
|
+
function _g() {
|
|
14093
14093
|
return {
|
|
14094
14094
|
onParse() {
|
|
14095
14095
|
return ({ result: t, context: {
|
|
@@ -14104,13 +14104,13 @@ function Ig() {
|
|
|
14104
14104
|
spec: !0,
|
|
14105
14105
|
status: 400
|
|
14106
14106
|
}), t;
|
|
14107
|
-
|
|
14107
|
+
Sg(e.method, t, n);
|
|
14108
14108
|
}
|
|
14109
14109
|
};
|
|
14110
14110
|
}
|
|
14111
14111
|
};
|
|
14112
14112
|
}
|
|
14113
|
-
function
|
|
14113
|
+
function Ig({ id: t = Date.now().toString(), logger: e = console, endpoint: n = "/health" } = {}) {
|
|
14114
14114
|
return {
|
|
14115
14115
|
onRequest({ endResponse: i, fetchAPI: r, request: s }) {
|
|
14116
14116
|
if (s.url.endsWith(n)) {
|
|
@@ -14162,14 +14162,14 @@ if (typeof Ar > "u") {
|
|
|
14162
14162
|
t && (t = !1, rl("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", e));
|
|
14163
14163
|
};
|
|
14164
14164
|
}
|
|
14165
|
-
const
|
|
14165
|
+
const Og = (t) => !il.has(t), rn = (t) => t && t === Math.floor(t) && t > 0 && isFinite(t), sl = (t) => rn(t) ? t <= Math.pow(2, 8) ? Uint8Array : t <= Math.pow(2, 16) ? Uint16Array : t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? hr : null : null;
|
|
14166
14166
|
let hr = class extends Array {
|
|
14167
14167
|
constructor(e) {
|
|
14168
14168
|
super(e), this.fill(0);
|
|
14169
14169
|
}
|
|
14170
14170
|
};
|
|
14171
14171
|
var Wt, Yn;
|
|
14172
|
-
let
|
|
14172
|
+
let Ng = (Wt = class {
|
|
14173
14173
|
constructor(e, n) {
|
|
14174
14174
|
U(this, "heap");
|
|
14175
14175
|
U(this, "length");
|
|
@@ -14193,8 +14193,8 @@ let Ag = (Wt = class {
|
|
|
14193
14193
|
}
|
|
14194
14194
|
}, Yn = new WeakMap(), // private constructor
|
|
14195
14195
|
Y(Wt, Yn, !1), Wt);
|
|
14196
|
-
var La, Ca, Et, rt, wt, Tt, Hn, Jn, Ie, St, Te, de, ee, Qe, st, Ge, Re, _t, Le, It, Ot, ot, Nt, pn, We, V, Is, An, Zt, Li, at, ol, xn, Kn, Ci, sn, on, Os, pr, gr, ce, Ns,
|
|
14197
|
-
let
|
|
14196
|
+
var La, Ca, Et, rt, wt, Tt, Hn, Jn, Ie, St, Te, de, ee, Qe, st, Ge, Re, _t, Le, It, Ot, ot, Nt, pn, We, V, Is, An, Zt, Li, at, ol, xn, Kn, Ci, sn, on, Os, pr, gr, ce, Ns, Ii, an, As, Xn;
|
|
14197
|
+
let Ag = (Xn = class {
|
|
14198
14198
|
constructor(e) {
|
|
14199
14199
|
Y(this, V);
|
|
14200
14200
|
// options that cannot be changed without disaster
|
|
@@ -14322,7 +14322,7 @@ let xg = (Xn = class {
|
|
|
14322
14322
|
throw new TypeError("memoMethod must be a function if defined");
|
|
14323
14323
|
if ($(this, Jn, y), x !== void 0 && typeof x != "function")
|
|
14324
14324
|
throw new TypeError("fetchMethod must be a function if specified");
|
|
14325
|
-
if ($(this, Hn, x), $(this, pn, !!x), $(this, Te, /* @__PURE__ */ new Map()), $(this, de, new Array(n).fill(void 0)), $(this, ee, new Array(n).fill(void 0)), $(this, Qe, new _(n)), $(this, st, new _(n)), $(this, Ge, 0), $(this, Re, 0), $(this, _t,
|
|
14325
|
+
if ($(this, Hn, x), $(this, pn, !!x), $(this, Te, /* @__PURE__ */ new Map()), $(this, de, new Array(n).fill(void 0)), $(this, ee, new Array(n).fill(void 0)), $(this, Qe, new _(n)), $(this, st, new _(n)), $(this, Ge, 0), $(this, Re, 0), $(this, _t, Ng.create(n)), $(this, Ie, 0), $(this, St, 0), typeof c == "function" && $(this, wt, c), typeof f == "function" ? ($(this, Tt, f), $(this, Le, [])) : ($(this, Tt, void 0), $(this, Le, void 0)), $(this, Nt, !!l(this, wt)), $(this, We, !!l(this, Tt)), this.noDisposeOnSet = !!g, this.noUpdateTTL = !!p, this.noDeleteOnFetchRejection = !!S, this.allowStaleOnFetchRejection = !!O, this.allowStaleOnFetchAbort = !!C, this.ignoreFetchAbort = !!T, this.maxEntrySize !== 0) {
|
|
14326
14326
|
if (l(this, rt) !== 0 && !rn(l(this, rt)))
|
|
14327
14327
|
throw new TypeError("maxSize must be a positive integer if specified");
|
|
14328
14328
|
if (!rn(this.maxEntrySize))
|
|
@@ -14338,7 +14338,7 @@ let xg = (Xn = class {
|
|
|
14338
14338
|
throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
14339
14339
|
if (!this.ttlAutopurge && !l(this, Et) && !l(this, rt)) {
|
|
14340
14340
|
const m = "LRU_CACHE_UNBOUNDED";
|
|
14341
|
-
|
|
14341
|
+
Og(m) && (il.add(m), rl("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", m, Xn));
|
|
14342
14342
|
}
|
|
14343
14343
|
}
|
|
14344
14344
|
/**
|
|
@@ -14379,7 +14379,7 @@ let xg = (Xn = class {
|
|
|
14379
14379
|
},
|
|
14380
14380
|
moveToTail: (n) => {
|
|
14381
14381
|
var i;
|
|
14382
|
-
return k(i = e, V,
|
|
14382
|
+
return k(i = e, V, Ii).call(i, n);
|
|
14383
14383
|
},
|
|
14384
14384
|
indexes: (n) => {
|
|
14385
14385
|
var i;
|
|
@@ -14681,7 +14681,7 @@ let xg = (Xn = class {
|
|
|
14681
14681
|
if (g === void 0)
|
|
14682
14682
|
g = l(this, Ie) === 0 ? l(this, Re) : l(this, _t).length !== 0 ? l(this, _t).pop() : l(this, Ie) === l(this, Et) ? k(this, V, pr).call(this, !1) : l(this, Ie), l(this, de)[g] = e, l(this, ee)[g] = n, l(this, Te).set(e, g), l(this, Qe)[l(this, Re)] = g, l(this, st)[g] = l(this, Re), $(this, Re, g), Tn(this, Ie)._++, l(this, Kn).call(this, g, f, u), u && (u.set = "add"), c = !1;
|
|
14683
14683
|
else {
|
|
14684
|
-
k(this, V,
|
|
14684
|
+
k(this, V, Ii).call(this, g);
|
|
14685
14685
|
const y = l(this, ee)[g];
|
|
14686
14686
|
if (n !== y) {
|
|
14687
14687
|
if (l(this, pn) && k(this, V, ce).call(this, y)) {
|
|
@@ -14828,7 +14828,7 @@ let xg = (Xn = class {
|
|
|
14828
14828
|
}
|
|
14829
14829
|
const T = l(this, at).call(this, O);
|
|
14830
14830
|
if (!x && !T)
|
|
14831
|
-
return y && (y.fetch = "hit"), k(this, V,
|
|
14831
|
+
return y && (y.fetch = "hit"), k(this, V, Ii).call(this, O), r && l(this, An).call(this, O), y && l(this, Zt).call(this, y, O), C;
|
|
14832
14832
|
const _ = k(this, V, gr).call(this, e, O, A, R), b = _.__staleWhileFetching !== void 0 && i;
|
|
14833
14833
|
return y && (y.fetch = T ? "stale" : "refresh", b && T && (y.returnedStale = !0)), b ? _.__staleWhileFetching : _.__returned = _;
|
|
14834
14834
|
}
|
|
@@ -14862,7 +14862,7 @@ let xg = (Xn = class {
|
|
|
14862
14862
|
const { allowStale: i = this.allowStale, updateAgeOnGet: r = this.updateAgeOnGet, noDeleteOnStaleGet: s = this.noDeleteOnStaleGet, status: o } = n, a = l(this, Te).get(e);
|
|
14863
14863
|
if (a !== void 0) {
|
|
14864
14864
|
const u = l(this, ee)[a], c = k(this, V, ce).call(this, u);
|
|
14865
|
-
return o && l(this, Zt).call(this, o, a), l(this, at).call(this, a) ? (o && (o.get = "stale"), c ? (o && i && u.__staleWhileFetching !== void 0 && (o.returnedStale = !0), i ? u.__staleWhileFetching : void 0) : (s || k(this, V, an).call(this, e, "expire"), o && i && (o.returnedStale = !0), i ? u : void 0)) : (o && (o.get = "hit"), c ? u.__staleWhileFetching : (k(this, V,
|
|
14865
|
+
return o && l(this, Zt).call(this, o, a), l(this, at).call(this, a) ? (o && (o.get = "stale"), c ? (o && i && u.__staleWhileFetching !== void 0 && (o.returnedStale = !0), i ? u.__staleWhileFetching : void 0) : (s || k(this, V, an).call(this, e, "expire"), o && i && (o.returnedStale = !0), i ? u : void 0)) : (o && (o.get = "hit"), c ? u.__staleWhileFetching : (k(this, V, Ii).call(this, a), r && l(this, An).call(this, a), u));
|
|
14866
14866
|
} else o && (o.get = "miss");
|
|
14867
14867
|
}
|
|
14868
14868
|
/**
|
|
@@ -15006,7 +15006,7 @@ let xg = (Xn = class {
|
|
|
15006
15006
|
return !!n && n instanceof Promise && n.hasOwnProperty("__staleWhileFetching") && n.__abortController instanceof Ar;
|
|
15007
15007
|
}, Ns = function(e, n) {
|
|
15008
15008
|
l(this, st)[n] = e, l(this, Qe)[e] = n;
|
|
15009
|
-
},
|
|
15009
|
+
}, Ii = function(e) {
|
|
15010
15010
|
e !== l(this, Re) && (e === l(this, Ge) ? $(this, Ge, l(this, Qe)[e]) : k(this, V, Ns).call(this, l(this, st)[e], l(this, Qe)[e]), k(this, V, Ns).call(this, l(this, Re), e), $(this, Re, e));
|
|
15011
15011
|
}, an = function(e, n) {
|
|
15012
15012
|
var r, s, o, a;
|
|
@@ -15057,11 +15057,11 @@ let xg = (Xn = class {
|
|
|
15057
15057
|
(r = l(this, Tt)) == null || r.call(this, ...o);
|
|
15058
15058
|
}
|
|
15059
15059
|
}, Xn);
|
|
15060
|
-
const
|
|
15061
|
-
function rs({ max: t =
|
|
15062
|
-
return new
|
|
15060
|
+
const xg = 1024, Fg = 36e5;
|
|
15061
|
+
function rs({ max: t = xg, ttl: e = Fg } = {}) {
|
|
15062
|
+
return new Ag({ max: t, ttl: e });
|
|
15063
15063
|
}
|
|
15064
|
-
function
|
|
15064
|
+
function Rg({ documentCache: t = rs(), errorCache: e = rs(), validationCache: n = !0 }) {
|
|
15065
15065
|
const i = rs();
|
|
15066
15066
|
return {
|
|
15067
15067
|
onParse({ params: r, setParsedDocument: s }) {
|
|
@@ -15100,16 +15100,16 @@ function Lg({ documentCache: t = rs(), errorCache: e = rs(), validationCache: n
|
|
|
15100
15100
|
}
|
|
15101
15101
|
};
|
|
15102
15102
|
}
|
|
15103
|
-
const
|
|
15104
|
-
function
|
|
15105
|
-
const e = t.match ||
|
|
15103
|
+
const Lg = () => !0;
|
|
15104
|
+
function yi(t) {
|
|
15105
|
+
const e = t.match || Lg;
|
|
15106
15106
|
return {
|
|
15107
15107
|
onRequestParse({ request: n, setRequestParser: i }) {
|
|
15108
15108
|
e(n) && i(t.parse);
|
|
15109
15109
|
}
|
|
15110
15110
|
};
|
|
15111
15111
|
}
|
|
15112
|
-
function
|
|
15112
|
+
function Cg(t) {
|
|
15113
15113
|
const e = (t.headers.get("accept") || "*/*").replace(/\s/g, "").toLowerCase().split(","), n = [];
|
|
15114
15114
|
for (const i of e) {
|
|
15115
15115
|
const [r, ...s] = i.split(";");
|
|
@@ -15117,7 +15117,7 @@ function kg(t) {
|
|
|
15117
15117
|
}
|
|
15118
15118
|
return n.reverse();
|
|
15119
15119
|
}
|
|
15120
|
-
function
|
|
15120
|
+
function kg(t, e) {
|
|
15121
15121
|
const [n, i] = t.split("/"), [r, s] = e.split("/");
|
|
15122
15122
|
return (r === "*" || r === n) && (s === "*" || s === i);
|
|
15123
15123
|
}
|
|
@@ -15156,7 +15156,7 @@ function al(t) {
|
|
|
15156
15156
|
}
|
|
15157
15157
|
return t;
|
|
15158
15158
|
}
|
|
15159
|
-
function
|
|
15159
|
+
function Dg(t, e) {
|
|
15160
15160
|
const i = Xs(t, {
|
|
15161
15161
|
Connection: "keep-alive",
|
|
15162
15162
|
"Content-Type": 'multipart/mixed; boundary="-"',
|
|
@@ -15202,7 +15202,7 @@ function $g(t, e) {
|
|
|
15202
15202
|
});
|
|
15203
15203
|
return new e.Response(o, i);
|
|
15204
15204
|
}
|
|
15205
|
-
function
|
|
15205
|
+
function $g(t, e, n) {
|
|
15206
15206
|
if (Ur(t))
|
|
15207
15207
|
return new e.Response(null, {
|
|
15208
15208
|
status: 406,
|
|
@@ -15217,14 +15217,14 @@ function Pg(t, e, n) {
|
|
|
15217
15217
|
t,
|
|
15218
15218
|
i,
|
|
15219
15219
|
// prefer 200 only if accepting application/json and all errors are exclusively GraphQL errors
|
|
15220
|
-
n === "application/json" && !Array.isArray(t) &&
|
|
15220
|
+
n === "application/json" && !Array.isArray(t) && Lh(t.errors) && t.errors.some((o) => {
|
|
15221
15221
|
var a;
|
|
15222
15222
|
return !((a = o.extensions) != null && a.originalError) || oi(o.extensions.originalError);
|
|
15223
15223
|
})
|
|
15224
15224
|
), s = io(t);
|
|
15225
15225
|
return new e.Response(s, r);
|
|
15226
15226
|
}
|
|
15227
|
-
function
|
|
15227
|
+
function Pg() {
|
|
15228
15228
|
return function(e, n) {
|
|
15229
15229
|
var f, g;
|
|
15230
15230
|
let i = 12e3;
|
|
@@ -15284,40 +15284,40 @@ function jg() {
|
|
|
15284
15284
|
return new n.Response(c, s);
|
|
15285
15285
|
};
|
|
15286
15286
|
}
|
|
15287
|
-
const
|
|
15287
|
+
const jg = {
|
|
15288
15288
|
mediaTypes: ["multipart/mixed"],
|
|
15289
15289
|
asyncIterables: !0,
|
|
15290
|
-
processResult:
|
|
15290
|
+
processResult: Dg
|
|
15291
15291
|
};
|
|
15292
|
-
function
|
|
15292
|
+
function Mg() {
|
|
15293
15293
|
return {
|
|
15294
15294
|
mediaTypes: ["text/event-stream"],
|
|
15295
15295
|
asyncIterables: !0,
|
|
15296
|
-
processResult:
|
|
15296
|
+
processResult: Pg()
|
|
15297
15297
|
};
|
|
15298
15298
|
}
|
|
15299
15299
|
const Ta = {
|
|
15300
15300
|
mediaTypes: ["application/graphql-response+json", "application/json"],
|
|
15301
15301
|
asyncIterables: !1,
|
|
15302
|
-
processResult:
|
|
15302
|
+
processResult: $g
|
|
15303
15303
|
};
|
|
15304
|
-
function
|
|
15305
|
-
const t = /* @__PURE__ */ new WeakMap(), e =
|
|
15304
|
+
function Ug() {
|
|
15305
|
+
const t = /* @__PURE__ */ new WeakMap(), e = Mg(), n = [e, jg, Ta], i = [e, Ta];
|
|
15306
15306
|
return {
|
|
15307
15307
|
onSubscribe({ args: { contextValue: r } }) {
|
|
15308
15308
|
r.request && t.set(r.request, !0);
|
|
15309
15309
|
},
|
|
15310
15310
|
onResultProcess({ request: r, result: s, acceptableMediaTypes: o, setResultProcessor: a }) {
|
|
15311
|
-
const c = t.get(r) ? i : n, f =
|
|
15311
|
+
const c = t.get(r) ? i : n, f = Cg(r), g = zt(s);
|
|
15312
15312
|
for (const p of c)
|
|
15313
15313
|
for (const w of f)
|
|
15314
15314
|
if (!(g && !p.asyncIterables))
|
|
15315
15315
|
for (const v of p.mediaTypes)
|
|
15316
|
-
o.push(v),
|
|
15316
|
+
o.push(v), kg(v, w) && a(p.processResult, v);
|
|
15317
15317
|
}
|
|
15318
15318
|
};
|
|
15319
15319
|
}
|
|
15320
|
-
var Bg = `<!doctype html><html lang=en><head><meta charset=utf-8><title>Welcome to GraphQL Yoga</title><link rel=icon href=https://raw.githubusercontent.com/dotansimha/graphql-yoga/main/website/public/favicon.ico><style>body,html{padding:0;margin:0;height:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',sans-serif;color:#fff;background-color:#000}main>section.hero{display:flex;height:90vh;justify-content:center;align-items:center;flex-direction:column}.logo{display:flex;align-items:center}.buttons{margin-top:24px}h1{font-size:80px}h2{color:#888;max-width:50%;margin-top:0;text-align:center}a{color:#fff;text-decoration:none;margin-left:10px;margin-right:10px;font-weight:700;transition:color .3s ease;padding:4px;overflow:visible}a.graphiql:hover{color:rgba(255,0,255,.7)}a.docs:hover{color:rgba(28,200,238,.7)}a.tutorial:hover{color:rgba(125,85,245,.7)}svg{margin-right:24px}.not-what-your-looking-for{margin-top:5vh}.not-what-your-looking-for>*{margin-left:auto;margin-right:auto}.not-what-your-looking-for>p{text-align:center}.not-what-your-looking-for>h2{color:#464646}.not-what-your-looking-for>p{max-width:600px;line-height:1.3em}.not-what-your-looking-for>pre{max-width:300px}</style></head><body id=body><main><section class=hero><div class=logo><div><svg xmlns=http://www.w3.org/2000/svg viewBox="-0.41 0.445 472.812 499.811" height=150><defs><linearGradient id=paint0_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint1_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint2_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint3_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint4_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint5_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><filter id=filter0_f_1677_11483 x=23 y=-25 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter><filter id=filter1_f_1677_11483 x=-24 y=19 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter><linearGradient id=paint6_linear_1677_11483 x1=30 y1=28 x2=66.1645 y2=44.4363 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><filter id=filter2_f_1677_11483 x=-12 y=-44 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter><filter id=filter3_f_1677_11483 x=13 y=19 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter></defs><mask id=mask0_1677_11483 style=mask-type:alpha maskUnits=userSpaceOnUse x=16 y=14 width=58 height=62><path d="M21 25.3501C21.7279 25.3501 22.4195 25.5056 23.0433 25.7853L42.1439 14.8C43.0439 14.3 44.1439 14 45.1439 14C46.2439 14 47.2439 14.3 48.1439 14.8L64.5439 24.3C63.3439 25.1 62.4439 26.3 61.8439 27.7L45.9438 18.5C45.6439 18.3 45.344 18.3 45.0441 18.3C44.7441 18.3 44.4439 18.4 44.1439 18.5L25.8225 29.0251C25.9382 29.4471 26 29.8914 26 30.3501C26 33.1115 23.7614 35.3501 21 35.3501C18.2386 35.3501 16 33.1115 16 30.3501C16 27.5887 18.2386 25.3501 21 25.3501Z" fill=url(#paint3_linear_1677_11483) /><path d="M67.2438 35.0329C65.3487 34.3219 64 32.4934 64 30.35C64 27.5886 66.2386 25.35 69 25.35C71.7614 25.35 74 27.5886 74 30.35C74 32.1825 73.0142 33.7848 71.5439 34.6554V55.2C71.5439 57.4 70.3439 59.4 68.5439 60.5L52.1439 69.9C52.1439 68.4 51.6438 66.9 50.7438 65.8L66.3439 56.8C66.9439 56.5 67.2438 55.9 67.2438 55.2V35.0329Z" fill=url(#paint4_linear_1677_11483) /><path d="M49.8439 69.1055C49.9458 69.5034 50 69.9204 50 70.3501C50 73.1115 47.7614 75.3501 45 75.3501C42.5102 75.3501 40.4454 73.5302 40.0633 71.1481L21.8439 60.6C19.9439 59.5 18.8439 57.5 18.8439 55.3V36.8C19.5439 37 20.3439 37.2 21.0439 37.2C21.7439 37.2 22.4439 37.1 23.0439 36.9V55.3C23.0439 56 23.4438 56.6 23.9438 56.9L41.3263 66.9583C42.2398 65.9694 43.5476 65.3501 45 65.3501C47.3291 65.3501 49.2862 66.9426 49.8419 69.0981L49.8436 69.0997L49.8439 69.1055Z" fill=url(#paint5_linear_1677_11483) /></mask><mask id=mask1_1677_11483 style=mask-type:alpha maskUnits=userSpaceOnUse x=30 y=28 width=30 height=30><path fill-rule=evenodd clip-rule=evenodd d="M49.3945 32.3945C49.3945 34.7088 47.5796 38.5469 45 38.5469C42.4271 38.5469 40.6055 34.7112 40.6055 32.3945C40.6055 29.9714 42.5769 28 45 28C47.4231 28 49.3945 29.9714 49.3945 32.3945ZM35.332 49.0433V48.2148C35.332 42.8117 37.8535 41.0004 39.8796 39.545L39.8801 39.5447C40.3928 39.1767 40.8604 38.8404 41.2488 38.4742C42.3293 39.6642 43.626 40.3047 45 40.3047C46.3752 40.3047 47.6725 39.6642 48.7529 38.4754C49.1408 38.841 49.6078 39.1773 50.1199 39.5447L50.1204 39.545C52.1465 41.0004 54.668 42.8117 54.668 48.2148V49.0433L53.8406 49.092C49.9848 49.3185 46.8646 46.9002 45 43.5777C43.1159 46.935 39.9847 49.318 36.1594 49.092L35.332 49.0433ZM58.1463 51.0747L58.1463 51.0746C57.0179 50.891 50.0128 49.7507 45.0007 55.693C40.0116 49.7553 33.1965 50.8592 31.9095 51.0677L31.9095 51.0677C31.7906 51.087 31.7189 51.0986 31.7002 51.0963C31.7005 51.0969 31.7011 51.1045 31.7023 51.1187C31.726 51.4003 31.9682 54.2745 34.0566 56.2422L30 58H60L55.8956 56.2422C57.8537 54.4764 58.1396 52.2685 58.2508 51.4092V51.4091C58.2697 51.2628 58.2836 51.1556 58.2998 51.0963C58.2881 51.0977 58.2356 51.0892 58.1463 51.0747ZM40.4836 50.104C42.3956 49.3212 43.6746 48.1737 45 46.61C46.332 48.1841 47.6159 49.3259 49.5164 50.104C49.5356 50.1425 49.5557 50.1805 49.5756 50.2182C49.5793 50.2253 49.583 50.2323 49.5867 50.2393C48.0911 50.8127 46.4264 51.825 45.0047 53.1444C43.5906 51.8221 41.9673 50.8196 40.4256 50.2153C40.4455 50.1784 40.4648 50.1415 40.4836 50.104Z" fill=black /></mask><path d="M 40.59 93.095 C 46.517 93.095 52.14 94.365 57.22 96.635 L 212.7 7.22 C 220.025 3.149 228.978 0.706 237.12 0.706 C 246.073 0.706 254.213 3.149 261.54 7.22 L 395.032 84.547 C 385.264 91.059 377.939 100.827 373.055 112.224 L 243.631 37.338 C 241.19 35.71 238.747 35.71 236.305 35.71 C 233.863 35.71 231.42 36.523 228.978 37.338 L 79.84 123.009 C 80.786 126.443 81.29 130.058 81.29 133.793 C 81.29 156.269 63.065 174.493 40.59 174.493 C 18.116 174.493 -0.109 156.269 -0.109 133.793 C -0.109 111.32 18.116 93.095 40.59 93.095 Z" fill=url(#paint0_linear_1677_11483) /><path d="M 417.01 171.913 C 401.585 166.126 390.603 151.238 390.603 133.793 C 390.603 111.32 408.83 93.095 431.303 93.095 C 453.777 93.095 472.001 111.32 472.001 133.793 C 472.001 148.706 463.976 161.755 452.011 168.835 L 452.011 336.07 C 452.011 353.977 442.243 370.258 427.591 379.21 L 294.098 455.726 C 294.098 443.516 290.029 431.306 282.703 422.353 L 409.683 349.093 C 414.568 346.651 417.01 341.767 417.01 336.07 L 417.01 171.913 Z" fill=url(#paint1_linear_1677_11483) /><path d="M 275.376 449.253 C 276.206 452.495 276.646 455.889 276.646 459.389 C 276.646 481.863 258.422 500.087 235.947 500.087 C 215.679 500.087 198.87 485.272 195.761 465.883 L 47.46 380.025 C 31.995 371.071 23.041 354.792 23.041 336.884 L 23.041 186.296 C 28.738 187.923 35.25 189.553 40.948 189.553 C 46.646 189.553 52.345 188.738 57.228 187.111 L 57.228 336.884 C 57.228 342.582 60.485 347.465 64.554 349.908 L 206.042 431.777 C 213.481 423.728 224.127 418.689 235.947 418.689 C 254.905 418.689 270.833 431.656 275.36 449.196 L 275.376 449.214 L 275.376 449.253 Z" fill=url(#paint2_linear_1677_11483) /><g mask=url(#mask0_1677_11483) transform="matrix(8.139854, 0, 0, 8.139854, -130.346375, -113.251038)"><g filter=url(#filter0_f_1677_11483)><circle cx=73 cy=25 r=26 fill=#ED2E7E /></g><g filter=url(#filter1_f_1677_11483)><circle cx=26 cy=69 r=26 fill=#1CC8EE /></g></g><path fill-rule=evenodd clip-rule=evenodd d="M 271.713 150.431 C 271.713 169.275 256.948 200.517 235.947 200.517 C 215.003 200.517 200.172 169.292 200.172 150.431 C 200.172 130.708 216.225 114.666 235.947 114.666 C 255.67 114.666 271.713 130.708 271.713 150.431 Z M 157.251 285.952 L 157.251 279.212 C 157.251 235.233 177.771 220.485 194.27 208.641 C 198.447 205.644 202.247 202.901 205.414 199.923 C 214.204 209.608 224.763 214.826 235.947 214.826 C 247.138 214.826 257.697 209.608 266.496 199.931 C 269.653 202.911 273.456 205.644 277.622 208.641 C 294.114 220.485 314.642 235.233 314.642 279.212 L 314.642 285.952 L 307.912 286.351 C 276.525 288.191 251.128 268.509 235.947 241.468 C 220.611 268.795 195.126 288.191 163.981 286.351 L 157.251 285.952 Z M 342.953 302.492 C 333.771 300.994 276.751 291.715 235.955 340.082 C 195.345 291.749 139.865 300.734 129.389 302.436 C 128.428 302.59 127.841 302.688 127.687 302.665 C 127.687 302.673 127.695 302.729 127.702 302.85 C 127.897 305.138 129.867 328.532 146.872 344.55 L 113.849 358.862 L 358.044 358.862 L 324.639 344.55 C 340.576 330.177 342.905 312.202 343.807 305.212 C 343.962 304.022 344.077 303.153 344.206 302.665 C 344.108 302.68 343.686 302.606 342.953 302.492 Z M 199.188 294.59 C 214.751 288.215 225.161 278.879 235.947 266.15 C 246.788 278.96 257.241 288.255 272.707 294.59 C 272.869 294.898 273.031 295.207 273.196 295.518 C 273.219 295.574 273.252 295.631 273.285 295.688 C 261.107 300.361 247.555 308.598 235.989 319.334 C 224.477 308.573 211.258 300.417 198.715 295.493 C 198.87 295.191 199.033 294.891 199.188 294.59 Z" fill=url(#paint6_linear_1677_11483) /><g mask=url(#mask1_1677_11483) transform="matrix(8.139854, 0, 0, 8.139854, -130.346375, -113.251038)"><g filter=url(#filter2_f_1677_11483)><circle cx=38 cy=6 r=26 fill=#ED2E7E /></g><g filter=url(#filter3_f_1677_11483)><circle cx=63 cy=69 r=26 fill=#1CC8EE /></g></g></svg></div><h1>GraphQL Yoga</h1></div><h2>The batteries-included cross-platform GraphQL Server.</h2><div class=buttons><a href=https://www.the-guild.dev/graphql/yoga-server/docs class=docs>Read the Docs</a> <a href=https://www.the-guild.dev/graphql/yoga-server/tutorial/basic class=tutorial>Start the Tutorial </a><a href=__GRAPHIQL_LINK__ class=graphiql>Visit GraphiQL</a></div></section><section class=not-what-your-looking-for><h2>Not the page you are looking for? 👀</h2><p>This page is shown be default whenever a 404 is hit.<br>You can disable this by behavior via the <code>landingPage</code> option.</p><pre>
|
|
15320
|
+
var Vg = `<!doctype html><html lang=en><head><meta charset=utf-8><title>Welcome to GraphQL Yoga</title><link rel=icon href=https://raw.githubusercontent.com/dotansimha/graphql-yoga/main/website/public/favicon.ico><style>body,html{padding:0;margin:0;height:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',sans-serif;color:#fff;background-color:#000}main>section.hero{display:flex;height:90vh;justify-content:center;align-items:center;flex-direction:column}.logo{display:flex;align-items:center}.buttons{margin-top:24px}h1{font-size:80px}h2{color:#888;max-width:50%;margin-top:0;text-align:center}a{color:#fff;text-decoration:none;margin-left:10px;margin-right:10px;font-weight:700;transition:color .3s ease;padding:4px;overflow:visible}a.graphiql:hover{color:rgba(255,0,255,.7)}a.docs:hover{color:rgba(28,200,238,.7)}a.tutorial:hover{color:rgba(125,85,245,.7)}svg{margin-right:24px}.not-what-your-looking-for{margin-top:5vh}.not-what-your-looking-for>*{margin-left:auto;margin-right:auto}.not-what-your-looking-for>p{text-align:center}.not-what-your-looking-for>h2{color:#464646}.not-what-your-looking-for>p{max-width:600px;line-height:1.3em}.not-what-your-looking-for>pre{max-width:300px}</style></head><body id=body><main><section class=hero><div class=logo><div><svg xmlns=http://www.w3.org/2000/svg viewBox="-0.41 0.445 472.812 499.811" height=150><defs><linearGradient id=paint0_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint1_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint2_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint3_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint4_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint5_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><filter id=filter0_f_1677_11483 x=23 y=-25 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter><filter id=filter1_f_1677_11483 x=-24 y=19 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter><linearGradient id=paint6_linear_1677_11483 x1=30 y1=28 x2=66.1645 y2=44.4363 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><filter id=filter2_f_1677_11483 x=-12 y=-44 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter><filter id=filter3_f_1677_11483 x=13 y=19 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter></defs><mask id=mask0_1677_11483 style=mask-type:alpha maskUnits=userSpaceOnUse x=16 y=14 width=58 height=62><path d="M21 25.3501C21.7279 25.3501 22.4195 25.5056 23.0433 25.7853L42.1439 14.8C43.0439 14.3 44.1439 14 45.1439 14C46.2439 14 47.2439 14.3 48.1439 14.8L64.5439 24.3C63.3439 25.1 62.4439 26.3 61.8439 27.7L45.9438 18.5C45.6439 18.3 45.344 18.3 45.0441 18.3C44.7441 18.3 44.4439 18.4 44.1439 18.5L25.8225 29.0251C25.9382 29.4471 26 29.8914 26 30.3501C26 33.1115 23.7614 35.3501 21 35.3501C18.2386 35.3501 16 33.1115 16 30.3501C16 27.5887 18.2386 25.3501 21 25.3501Z" fill=url(#paint3_linear_1677_11483) /><path d="M67.2438 35.0329C65.3487 34.3219 64 32.4934 64 30.35C64 27.5886 66.2386 25.35 69 25.35C71.7614 25.35 74 27.5886 74 30.35C74 32.1825 73.0142 33.7848 71.5439 34.6554V55.2C71.5439 57.4 70.3439 59.4 68.5439 60.5L52.1439 69.9C52.1439 68.4 51.6438 66.9 50.7438 65.8L66.3439 56.8C66.9439 56.5 67.2438 55.9 67.2438 55.2V35.0329Z" fill=url(#paint4_linear_1677_11483) /><path d="M49.8439 69.1055C49.9458 69.5034 50 69.9204 50 70.3501C50 73.1115 47.7614 75.3501 45 75.3501C42.5102 75.3501 40.4454 73.5302 40.0633 71.1481L21.8439 60.6C19.9439 59.5 18.8439 57.5 18.8439 55.3V36.8C19.5439 37 20.3439 37.2 21.0439 37.2C21.7439 37.2 22.4439 37.1 23.0439 36.9V55.3C23.0439 56 23.4438 56.6 23.9438 56.9L41.3263 66.9583C42.2398 65.9694 43.5476 65.3501 45 65.3501C47.3291 65.3501 49.2862 66.9426 49.8419 69.0981L49.8436 69.0997L49.8439 69.1055Z" fill=url(#paint5_linear_1677_11483) /></mask><mask id=mask1_1677_11483 style=mask-type:alpha maskUnits=userSpaceOnUse x=30 y=28 width=30 height=30><path fill-rule=evenodd clip-rule=evenodd d="M49.3945 32.3945C49.3945 34.7088 47.5796 38.5469 45 38.5469C42.4271 38.5469 40.6055 34.7112 40.6055 32.3945C40.6055 29.9714 42.5769 28 45 28C47.4231 28 49.3945 29.9714 49.3945 32.3945ZM35.332 49.0433V48.2148C35.332 42.8117 37.8535 41.0004 39.8796 39.545L39.8801 39.5447C40.3928 39.1767 40.8604 38.8404 41.2488 38.4742C42.3293 39.6642 43.626 40.3047 45 40.3047C46.3752 40.3047 47.6725 39.6642 48.7529 38.4754C49.1408 38.841 49.6078 39.1773 50.1199 39.5447L50.1204 39.545C52.1465 41.0004 54.668 42.8117 54.668 48.2148V49.0433L53.8406 49.092C49.9848 49.3185 46.8646 46.9002 45 43.5777C43.1159 46.935 39.9847 49.318 36.1594 49.092L35.332 49.0433ZM58.1463 51.0747L58.1463 51.0746C57.0179 50.891 50.0128 49.7507 45.0007 55.693C40.0116 49.7553 33.1965 50.8592 31.9095 51.0677L31.9095 51.0677C31.7906 51.087 31.7189 51.0986 31.7002 51.0963C31.7005 51.0969 31.7011 51.1045 31.7023 51.1187C31.726 51.4003 31.9682 54.2745 34.0566 56.2422L30 58H60L55.8956 56.2422C57.8537 54.4764 58.1396 52.2685 58.2508 51.4092V51.4091C58.2697 51.2628 58.2836 51.1556 58.2998 51.0963C58.2881 51.0977 58.2356 51.0892 58.1463 51.0747ZM40.4836 50.104C42.3956 49.3212 43.6746 48.1737 45 46.61C46.332 48.1841 47.6159 49.3259 49.5164 50.104C49.5356 50.1425 49.5557 50.1805 49.5756 50.2182C49.5793 50.2253 49.583 50.2323 49.5867 50.2393C48.0911 50.8127 46.4264 51.825 45.0047 53.1444C43.5906 51.8221 41.9673 50.8196 40.4256 50.2153C40.4455 50.1784 40.4648 50.1415 40.4836 50.104Z" fill=black /></mask><path d="M 40.59 93.095 C 46.517 93.095 52.14 94.365 57.22 96.635 L 212.7 7.22 C 220.025 3.149 228.978 0.706 237.12 0.706 C 246.073 0.706 254.213 3.149 261.54 7.22 L 395.032 84.547 C 385.264 91.059 377.939 100.827 373.055 112.224 L 243.631 37.338 C 241.19 35.71 238.747 35.71 236.305 35.71 C 233.863 35.71 231.42 36.523 228.978 37.338 L 79.84 123.009 C 80.786 126.443 81.29 130.058 81.29 133.793 C 81.29 156.269 63.065 174.493 40.59 174.493 C 18.116 174.493 -0.109 156.269 -0.109 133.793 C -0.109 111.32 18.116 93.095 40.59 93.095 Z" fill=url(#paint0_linear_1677_11483) /><path d="M 417.01 171.913 C 401.585 166.126 390.603 151.238 390.603 133.793 C 390.603 111.32 408.83 93.095 431.303 93.095 C 453.777 93.095 472.001 111.32 472.001 133.793 C 472.001 148.706 463.976 161.755 452.011 168.835 L 452.011 336.07 C 452.011 353.977 442.243 370.258 427.591 379.21 L 294.098 455.726 C 294.098 443.516 290.029 431.306 282.703 422.353 L 409.683 349.093 C 414.568 346.651 417.01 341.767 417.01 336.07 L 417.01 171.913 Z" fill=url(#paint1_linear_1677_11483) /><path d="M 275.376 449.253 C 276.206 452.495 276.646 455.889 276.646 459.389 C 276.646 481.863 258.422 500.087 235.947 500.087 C 215.679 500.087 198.87 485.272 195.761 465.883 L 47.46 380.025 C 31.995 371.071 23.041 354.792 23.041 336.884 L 23.041 186.296 C 28.738 187.923 35.25 189.553 40.948 189.553 C 46.646 189.553 52.345 188.738 57.228 187.111 L 57.228 336.884 C 57.228 342.582 60.485 347.465 64.554 349.908 L 206.042 431.777 C 213.481 423.728 224.127 418.689 235.947 418.689 C 254.905 418.689 270.833 431.656 275.36 449.196 L 275.376 449.214 L 275.376 449.253 Z" fill=url(#paint2_linear_1677_11483) /><g mask=url(#mask0_1677_11483) transform="matrix(8.139854, 0, 0, 8.139854, -130.346375, -113.251038)"><g filter=url(#filter0_f_1677_11483)><circle cx=73 cy=25 r=26 fill=#ED2E7E /></g><g filter=url(#filter1_f_1677_11483)><circle cx=26 cy=69 r=26 fill=#1CC8EE /></g></g><path fill-rule=evenodd clip-rule=evenodd d="M 271.713 150.431 C 271.713 169.275 256.948 200.517 235.947 200.517 C 215.003 200.517 200.172 169.292 200.172 150.431 C 200.172 130.708 216.225 114.666 235.947 114.666 C 255.67 114.666 271.713 130.708 271.713 150.431 Z M 157.251 285.952 L 157.251 279.212 C 157.251 235.233 177.771 220.485 194.27 208.641 C 198.447 205.644 202.247 202.901 205.414 199.923 C 214.204 209.608 224.763 214.826 235.947 214.826 C 247.138 214.826 257.697 209.608 266.496 199.931 C 269.653 202.911 273.456 205.644 277.622 208.641 C 294.114 220.485 314.642 235.233 314.642 279.212 L 314.642 285.952 L 307.912 286.351 C 276.525 288.191 251.128 268.509 235.947 241.468 C 220.611 268.795 195.126 288.191 163.981 286.351 L 157.251 285.952 Z M 342.953 302.492 C 333.771 300.994 276.751 291.715 235.955 340.082 C 195.345 291.749 139.865 300.734 129.389 302.436 C 128.428 302.59 127.841 302.688 127.687 302.665 C 127.687 302.673 127.695 302.729 127.702 302.85 C 127.897 305.138 129.867 328.532 146.872 344.55 L 113.849 358.862 L 358.044 358.862 L 324.639 344.55 C 340.576 330.177 342.905 312.202 343.807 305.212 C 343.962 304.022 344.077 303.153 344.206 302.665 C 344.108 302.68 343.686 302.606 342.953 302.492 Z M 199.188 294.59 C 214.751 288.215 225.161 278.879 235.947 266.15 C 246.788 278.96 257.241 288.255 272.707 294.59 C 272.869 294.898 273.031 295.207 273.196 295.518 C 273.219 295.574 273.252 295.631 273.285 295.688 C 261.107 300.361 247.555 308.598 235.989 319.334 C 224.477 308.573 211.258 300.417 198.715 295.493 C 198.87 295.191 199.033 294.891 199.188 294.59 Z" fill=url(#paint6_linear_1677_11483) /><g mask=url(#mask1_1677_11483) transform="matrix(8.139854, 0, 0, 8.139854, -130.346375, -113.251038)"><g filter=url(#filter2_f_1677_11483)><circle cx=38 cy=6 r=26 fill=#ED2E7E /></g><g filter=url(#filter3_f_1677_11483)><circle cx=63 cy=69 r=26 fill=#1CC8EE /></g></g></svg></div><h1>GraphQL Yoga</h1></div><h2>The batteries-included cross-platform GraphQL Server.</h2><div class=buttons><a href=https://www.the-guild.dev/graphql/yoga-server/docs class=docs>Read the Docs</a> <a href=https://www.the-guild.dev/graphql/yoga-server/tutorial/basic class=tutorial>Start the Tutorial </a><a href=__GRAPHIQL_LINK__ class=graphiql>Visit GraphiQL</a></div></section><section class=not-what-your-looking-for><h2>Not the page you are looking for? 👀</h2><p>This page is shown be default whenever a 404 is hit.<br>You can disable this by behavior via the <code>landingPage</code> option.</p><pre>
|
|
15321
15321
|
<code>
|
|
15322
15322
|
import { createYoga } from 'graphql-yoga';
|
|
15323
15323
|
|
|
@@ -15334,8 +15334,8 @@ const yoga = createYoga({
|
|
|
15334
15334
|
})
|
|
15335
15335
|
</code>
|
|
15336
15336
|
</pre></section></main></body></html>`;
|
|
15337
|
-
const
|
|
15338
|
-
return new e.fetchAPI.Response(
|
|
15337
|
+
const Bg = function(e) {
|
|
15338
|
+
return new e.fetchAPI.Response(Vg.replace(/__GRAPHIQL_LINK__/g, e.graphqlEndpoint).replace(/__REQUEST_PATH__/g, e.url.pathname), {
|
|
15339
15339
|
status: 200,
|
|
15340
15340
|
statusText: "OK",
|
|
15341
15341
|
headers: {
|
|
@@ -15343,14 +15343,14 @@ const Gg = function(e) {
|
|
|
15343
15343
|
}
|
|
15344
15344
|
});
|
|
15345
15345
|
};
|
|
15346
|
-
function
|
|
15346
|
+
function Gg(t) {
|
|
15347
15347
|
let e;
|
|
15348
15348
|
function n({ URLPattern: r }) {
|
|
15349
15349
|
return e || (e = new r({
|
|
15350
15350
|
pathname: t.graphqlEndpoint
|
|
15351
15351
|
})), e;
|
|
15352
15352
|
}
|
|
15353
|
-
const i = t.landingPageRenderer ||
|
|
15353
|
+
const i = t.landingPageRenderer || Bg;
|
|
15354
15354
|
return {
|
|
15355
15355
|
onRequest({ request: r, fetchAPI: s, endResponse: o, url: a }) {
|
|
15356
15356
|
var u, c;
|
|
@@ -15404,7 +15404,7 @@ async function Sa({ request: t, result: e, fetchAPI: n, onResultProcessHooks: i,
|
|
|
15404
15404
|
}
|
|
15405
15405
|
});
|
|
15406
15406
|
}
|
|
15407
|
-
async function
|
|
15407
|
+
async function qg({ params: t, enveloped: e }) {
|
|
15408
15408
|
const n = e.parse(t.query), i = e.validate(e.schema, n);
|
|
15409
15409
|
if (i.length > 0)
|
|
15410
15410
|
return { errors: i };
|
|
@@ -15417,7 +15417,7 @@ async function zg({ params: t, enveloped: e }) {
|
|
|
15417
15417
|
}, o = Ys(n, t.operationName);
|
|
15418
15418
|
return ((o == null ? void 0 : o.operation) === "subscription" ? e.subscribe : e.execute)(s);
|
|
15419
15419
|
}
|
|
15420
|
-
const
|
|
15420
|
+
const zg = (t, e, n = ((r) => (r = ((i) => (i = globalThis.process) == null ? void 0 : i.env)()) == null ? void 0 : r.NODE_ENV)() === "development") => {
|
|
15421
15421
|
if (oi(t)) {
|
|
15422
15422
|
if (t.originalError) {
|
|
15423
15423
|
if (t.originalError.name === "GraphQLError")
|
|
@@ -15449,7 +15449,7 @@ const Qg = (t, e, n = ((r) => (r = ((i) => (i = globalThis.process) == null ? vo
|
|
|
15449
15449
|
}
|
|
15450
15450
|
});
|
|
15451
15451
|
};
|
|
15452
|
-
class
|
|
15452
|
+
class Qg {
|
|
15453
15453
|
constructor(e) {
|
|
15454
15454
|
/**
|
|
15455
15455
|
* Instance of envelop
|
|
@@ -15519,7 +15519,7 @@ class Wg {
|
|
|
15519
15519
|
e.fetchAPI[u] && (this.fetchAPI[u] = e.fetchAPI[u]);
|
|
15520
15520
|
const n = (e == null ? void 0 : e.logging) == null ? !0 : e.logging;
|
|
15521
15521
|
this.logger = typeof n == "boolean" ? n === !0 ? is() : is("silent") : typeof n == "string" ? is(n) : n;
|
|
15522
|
-
const i = typeof (e == null ? void 0 : e.maskedErrors) == "object" && e.maskedErrors.maskError ||
|
|
15522
|
+
const i = typeof (e == null ? void 0 : e.maskedErrors) == "object" && e.maskedErrors.maskError || zg, r = /* @__PURE__ */ new WeakSet();
|
|
15523
15523
|
this.maskedErrorsOpts = (e == null ? void 0 : e.maskedErrors) === !1 ? null : {
|
|
15524
15524
|
errorMessage: "Unexpected error.",
|
|
15525
15525
|
...typeof (e == null ? void 0 : e.maskedErrors) == "object" ? e.maskedErrors : {},
|
|
@@ -15536,53 +15536,53 @@ class Wg {
|
|
|
15536
15536
|
e != null && e.batching && (typeof e.batching == "boolean" ? o = 10 : o = e.batching.limit ?? 10), this.graphqlEndpoint = (e == null ? void 0 : e.graphqlEndpoint) || "/graphql";
|
|
15537
15537
|
const a = this.graphqlEndpoint;
|
|
15538
15538
|
this.plugins = [
|
|
15539
|
-
|
|
15540
|
-
parse:
|
|
15541
|
-
validate:
|
|
15539
|
+
Bl({
|
|
15540
|
+
parse: yc,
|
|
15541
|
+
validate: rd,
|
|
15542
15542
|
execute: da,
|
|
15543
15543
|
subscribe: da,
|
|
15544
15544
|
specifiedRules: _u
|
|
15545
15545
|
}),
|
|
15546
15546
|
// Use the schema provided by the user
|
|
15547
|
-
!!(e != null && e.schema) &&
|
|
15548
|
-
(e == null ? void 0 : e.context) != null &&
|
|
15547
|
+
!!(e != null && e.schema) && Vh(e.schema),
|
|
15548
|
+
(e == null ? void 0 : e.context) != null && Vl((u) => e != null && e.context ? typeof e.context == "function" ? e.context(u) : e.context : {}),
|
|
15549
15549
|
// Middlewares before processing the incoming HTTP request
|
|
15550
|
-
|
|
15550
|
+
Ig({
|
|
15551
15551
|
id: this.id,
|
|
15552
15552
|
logger: this.logger,
|
|
15553
15553
|
endpoint: e == null ? void 0 : e.healthCheckEndpoint
|
|
15554
15554
|
}),
|
|
15555
|
-
(e == null ? void 0 : e.cors) !== !1 &&
|
|
15556
|
-
(e == null ? void 0 : e.graphiql) !== !1 &&
|
|
15555
|
+
(e == null ? void 0 : e.cors) !== !1 && Zp(e == null ? void 0 : e.cors),
|
|
15556
|
+
(e == null ? void 0 : e.graphiql) !== !1 && Uh({
|
|
15557
15557
|
graphqlEndpoint: a,
|
|
15558
15558
|
options: e == null ? void 0 : e.graphiql,
|
|
15559
15559
|
render: e == null ? void 0 : e.renderGraphiQL,
|
|
15560
15560
|
logger: this.logger
|
|
15561
15561
|
}),
|
|
15562
15562
|
// Middlewares before the GraphQL execution
|
|
15563
|
-
|
|
15564
|
-
match:
|
|
15565
|
-
parse:
|
|
15563
|
+
yi({
|
|
15564
|
+
match: ig,
|
|
15565
|
+
parse: rg
|
|
15566
15566
|
}),
|
|
15567
|
-
|
|
15568
|
-
match:
|
|
15569
|
-
parse:
|
|
15567
|
+
yi({
|
|
15568
|
+
match: lg,
|
|
15569
|
+
parse: cg
|
|
15570
15570
|
}),
|
|
15571
|
-
(e == null ? void 0 : e.multipart) !== !1 &&
|
|
15572
|
-
match:
|
|
15573
|
-
parse:
|
|
15571
|
+
(e == null ? void 0 : e.multipart) !== !1 && yi({
|
|
15572
|
+
match: dg,
|
|
15573
|
+
parse: hg
|
|
15574
15574
|
}),
|
|
15575
|
-
|
|
15576
|
-
match:
|
|
15577
|
-
parse:
|
|
15575
|
+
yi({
|
|
15576
|
+
match: ag,
|
|
15577
|
+
parse: ug
|
|
15578
15578
|
}),
|
|
15579
|
-
|
|
15580
|
-
match:
|
|
15581
|
-
parse:
|
|
15579
|
+
yi({
|
|
15580
|
+
match: sg,
|
|
15581
|
+
parse: og
|
|
15582
15582
|
}),
|
|
15583
15583
|
// Middlewares after the GraphQL execution
|
|
15584
|
-
|
|
15585
|
-
|
|
15584
|
+
Ug(),
|
|
15585
|
+
tg((u, c, f) => {
|
|
15586
15586
|
const p = {
|
|
15587
15587
|
errors: fr(u, this.maskedErrorsOpts, this.logger)
|
|
15588
15588
|
};
|
|
@@ -15600,17 +15600,17 @@ class Wg {
|
|
|
15600
15600
|
onPluginInit({ addPlugin: u }) {
|
|
15601
15601
|
(e == null ? void 0 : e.parserAndValidationCache) !== !1 && u(
|
|
15602
15602
|
// @ts-expect-error Add plugins has context but this hook doesn't care
|
|
15603
|
-
|
|
15604
|
-
), u(
|
|
15603
|
+
Rg(!(e != null && e.parserAndValidationCache) || (e == null ? void 0 : e.parserAndValidationCache) === !0 ? {} : e == null ? void 0 : e.parserAndValidationCache)
|
|
15604
|
+
), u(Tg(o)), u(yg(e == null ? void 0 : e.extraParamNames));
|
|
15605
15605
|
const c = !!((e == null ? void 0 : e.landingPage) ?? !0);
|
|
15606
15606
|
u(
|
|
15607
15607
|
// @ts-expect-error Add plugins has context but this hook doesn't care
|
|
15608
|
-
|
|
15608
|
+
Gg({
|
|
15609
15609
|
graphqlEndpoint: a,
|
|
15610
15610
|
showLandingPage: c,
|
|
15611
15611
|
landingPageRenderer: typeof (e == null ? void 0 : e.landingPage) == "function" ? e.landingPage : void 0
|
|
15612
15612
|
})
|
|
15613
|
-
), u(
|
|
15613
|
+
), u(Eg()), u(_g()), s && (u({
|
|
15614
15614
|
onSubscribe() {
|
|
15615
15615
|
return {
|
|
15616
15616
|
onSubscribeError({ error: f }) {
|
|
@@ -15619,13 +15619,13 @@ class Wg {
|
|
|
15619
15619
|
}
|
|
15620
15620
|
};
|
|
15621
15621
|
}
|
|
15622
|
-
}), u(
|
|
15622
|
+
}), u(Ul(s))), u(
|
|
15623
15623
|
// We handle validation errors at the end
|
|
15624
|
-
|
|
15624
|
+
wg()
|
|
15625
15625
|
);
|
|
15626
15626
|
}
|
|
15627
15627
|
}
|
|
15628
|
-
], this.getEnveloped =
|
|
15628
|
+
], this.getEnveloped = Rl({
|
|
15629
15629
|
plugins: this.plugins
|
|
15630
15630
|
}), this.plugins = this.getEnveloped._plugins, this.onRequestParseHooks = [], this.onParamsHooks = [], this.onExecutionResultHooks = [], this.onResultProcessHooks = [];
|
|
15631
15631
|
for (const u of this.plugins)
|
|
@@ -15657,7 +15657,7 @@ class Wg {
|
|
|
15657
15657
|
};
|
|
15658
15658
|
o = Object.assign(i ? Object.create(r) : r, a);
|
|
15659
15659
|
const u = this.getEnveloped(o);
|
|
15660
|
-
this.logger.debug("Processing GraphQL Parameters"), s = await
|
|
15660
|
+
this.logger.debug("Processing GraphQL Parameters"), s = await qg({
|
|
15661
15661
|
params: e,
|
|
15662
15662
|
enveloped: u
|
|
15663
15663
|
}), this.logger.debug("Processing GraphQL Parameters done.");
|
|
@@ -15689,9 +15689,9 @@ class Wg {
|
|
|
15689
15689
|
return s;
|
|
15690
15690
|
}
|
|
15691
15691
|
}
|
|
15692
|
-
function
|
|
15693
|
-
const e = new
|
|
15694
|
-
return
|
|
15692
|
+
function Wg(t) {
|
|
15693
|
+
const e = new Qg(t);
|
|
15694
|
+
return Jp(e, {
|
|
15695
15695
|
fetchAPI: e.fetchAPI,
|
|
15696
15696
|
plugins: e.plugins
|
|
15697
15697
|
});
|
|
@@ -15732,7 +15732,7 @@ if (typeof xr > "u") {
|
|
|
15732
15732
|
t && (t = !1, ll("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", e));
|
|
15733
15733
|
};
|
|
15734
15734
|
}
|
|
15735
|
-
const
|
|
15735
|
+
const Yg = (t) => !ul.has(t), un = (t) => t && t === Math.floor(t) && t > 0 && isFinite(t), cl = (t) => un(t) ? t <= Math.pow(2, 8) ? Uint8Array : t <= Math.pow(2, 16) ? Uint16Array : t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? mr : null : null;
|
|
15736
15736
|
class mr extends Array {
|
|
15737
15737
|
constructor(e) {
|
|
15738
15738
|
super(e), this.fill(0);
|
|
@@ -15765,7 +15765,7 @@ const On = class On {
|
|
|
15765
15765
|
Zn = new WeakMap(), // private constructor
|
|
15766
15766
|
Y(On, Zn, !1);
|
|
15767
15767
|
let Fs = On;
|
|
15768
|
-
var Da, $a, At, ut, xt, Ft, ei, ti, Oe, Rt, Se, he, te, Ye, lt, qe, Ce, Lt, ke, Ct, kt, ct, Dt, gn, He, B, Ls, Fn, en, ki, ft, fl, Rn, ni, Di, ln, cn, Cs, yr, br, fe, ks,
|
|
15768
|
+
var Da, $a, At, ut, xt, Ft, ei, ti, Oe, Rt, Se, he, te, Ye, lt, qe, Ce, Lt, ke, Ct, kt, ct, Dt, gn, He, B, Ls, Fn, en, ki, ft, fl, Rn, ni, Di, ln, cn, Cs, yr, br, fe, ks, Oi, fn, Ds;
|
|
15769
15769
|
const fo = class fo {
|
|
15770
15770
|
constructor(e) {
|
|
15771
15771
|
Y(this, B);
|
|
@@ -15910,7 +15910,7 @@ const fo = class fo {
|
|
|
15910
15910
|
throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
15911
15911
|
if (!this.ttlAutopurge && !l(this, At) && !l(this, ut)) {
|
|
15912
15912
|
const m = "LRU_CACHE_UNBOUNDED";
|
|
15913
|
-
|
|
15913
|
+
Yg(m) && (ul.add(m), ll("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", m, fo));
|
|
15914
15914
|
}
|
|
15915
15915
|
}
|
|
15916
15916
|
/**
|
|
@@ -15951,7 +15951,7 @@ const fo = class fo {
|
|
|
15951
15951
|
},
|
|
15952
15952
|
moveToTail: (n) => {
|
|
15953
15953
|
var i;
|
|
15954
|
-
return k(i = e, B,
|
|
15954
|
+
return k(i = e, B, Oi).call(i, n);
|
|
15955
15955
|
},
|
|
15956
15956
|
indexes: (n) => {
|
|
15957
15957
|
var i;
|
|
@@ -16253,7 +16253,7 @@ const fo = class fo {
|
|
|
16253
16253
|
if (g === void 0)
|
|
16254
16254
|
g = l(this, Oe) === 0 ? l(this, Ce) : l(this, Lt).length !== 0 ? l(this, Lt).pop() : l(this, Oe) === l(this, At) ? k(this, B, yr).call(this, !1) : l(this, Oe), l(this, he)[g] = e, l(this, te)[g] = n, l(this, Se).set(e, g), l(this, Ye)[l(this, Ce)] = g, l(this, lt)[g] = l(this, Ce), $(this, Ce, g), Tn(this, Oe)._++, l(this, ni).call(this, g, f, u), u && (u.set = "add"), c = !1;
|
|
16255
16255
|
else {
|
|
16256
|
-
k(this, B,
|
|
16256
|
+
k(this, B, Oi).call(this, g);
|
|
16257
16257
|
const y = l(this, te)[g];
|
|
16258
16258
|
if (n !== y) {
|
|
16259
16259
|
if (l(this, gn) && k(this, B, fe).call(this, y)) {
|
|
@@ -16400,7 +16400,7 @@ const fo = class fo {
|
|
|
16400
16400
|
}
|
|
16401
16401
|
const T = l(this, ft).call(this, O);
|
|
16402
16402
|
if (!x && !T)
|
|
16403
|
-
return y && (y.fetch = "hit"), k(this, B,
|
|
16403
|
+
return y && (y.fetch = "hit"), k(this, B, Oi).call(this, O), r && l(this, Fn).call(this, O), y && l(this, en).call(this, y, O), C;
|
|
16404
16404
|
const _ = k(this, B, br).call(this, e, O, A, R), b = _.__staleWhileFetching !== void 0 && i;
|
|
16405
16405
|
return y && (y.fetch = T ? "stale" : "refresh", b && T && (y.returnedStale = !0)), b ? _.__staleWhileFetching : _.__returned = _;
|
|
16406
16406
|
}
|
|
@@ -16434,7 +16434,7 @@ const fo = class fo {
|
|
|
16434
16434
|
const { allowStale: i = this.allowStale, updateAgeOnGet: r = this.updateAgeOnGet, noDeleteOnStaleGet: s = this.noDeleteOnStaleGet, status: o } = n, a = l(this, Se).get(e);
|
|
16435
16435
|
if (a !== void 0) {
|
|
16436
16436
|
const u = l(this, te)[a], c = k(this, B, fe).call(this, u);
|
|
16437
|
-
return o && l(this, en).call(this, o, a), l(this, ft).call(this, a) ? (o && (o.get = "stale"), c ? (o && i && u.__staleWhileFetching !== void 0 && (o.returnedStale = !0), i ? u.__staleWhileFetching : void 0) : (s || k(this, B, fn).call(this, e, "expire"), o && i && (o.returnedStale = !0), i ? u : void 0)) : (o && (o.get = "hit"), c ? u.__staleWhileFetching : (k(this, B,
|
|
16437
|
+
return o && l(this, en).call(this, o, a), l(this, ft).call(this, a) ? (o && (o.get = "stale"), c ? (o && i && u.__staleWhileFetching !== void 0 && (o.returnedStale = !0), i ? u.__staleWhileFetching : void 0) : (s || k(this, B, fn).call(this, e, "expire"), o && i && (o.returnedStale = !0), i ? u : void 0)) : (o && (o.get = "hit"), c ? u.__staleWhileFetching : (k(this, B, Oi).call(this, a), r && l(this, Fn).call(this, a), u));
|
|
16438
16438
|
} else o && (o.get = "miss");
|
|
16439
16439
|
}
|
|
16440
16440
|
/**
|
|
@@ -16579,7 +16579,7 @@ At = new WeakMap(), ut = new WeakMap(), xt = new WeakMap(), Ft = new WeakMap(),
|
|
|
16579
16579
|
return !!n && n instanceof Promise && n.hasOwnProperty("__staleWhileFetching") && n.__abortController instanceof xr;
|
|
16580
16580
|
}, ks = function(e, n) {
|
|
16581
16581
|
l(this, lt)[n] = e, l(this, Ye)[e] = n;
|
|
16582
|
-
},
|
|
16582
|
+
}, Oi = function(e) {
|
|
16583
16583
|
e !== l(this, Ce) && (e === l(this, qe) ? $(this, qe, l(this, Ye)[e]) : k(this, B, ks).call(this, l(this, lt)[e], l(this, Ye)[e]), k(this, B, ks).call(this, l(this, Ce), e), $(this, Ce, e));
|
|
16584
16584
|
}, fn = function(e, n) {
|
|
16585
16585
|
var r, s, o, a;
|
|
@@ -17409,20 +17409,20 @@ list should be an Array.`), h.length === 0) return new x(0);
|
|
|
17409
17409
|
}, { buffer: 3, lYpoI2: 11 }] }, {}, [1])(1);
|
|
17410
17410
|
});
|
|
17411
17411
|
})(dl);
|
|
17412
|
-
var
|
|
17412
|
+
var Hg = dl.exports, Jg = /* @__PURE__ */ gp(Hg), In = {}, wn = {}, ro = {};
|
|
17413
17413
|
Object.defineProperty(ro, "__esModule", {
|
|
17414
17414
|
value: !0
|
|
17415
17415
|
});
|
|
17416
|
-
ro.isObjectLike =
|
|
17417
|
-
function
|
|
17416
|
+
ro.isObjectLike = Kg;
|
|
17417
|
+
function Kg(t) {
|
|
17418
17418
|
return typeof t == "object" && t !== null;
|
|
17419
17419
|
}
|
|
17420
17420
|
var Br = {}, so = {};
|
|
17421
17421
|
Object.defineProperty(so, "__esModule", {
|
|
17422
17422
|
value: !0
|
|
17423
17423
|
});
|
|
17424
|
-
so.invariant =
|
|
17425
|
-
function
|
|
17424
|
+
so.invariant = Xg;
|
|
17425
|
+
function Xg(t, e) {
|
|
17426
17426
|
if (!!!t)
|
|
17427
17427
|
throw new Error(
|
|
17428
17428
|
e ?? "Unexpected invariant triggered."
|
|
@@ -17431,13 +17431,13 @@ function Zg(t, e) {
|
|
|
17431
17431
|
Object.defineProperty(Br, "__esModule", {
|
|
17432
17432
|
value: !0
|
|
17433
17433
|
});
|
|
17434
|
-
Br.getLocation =
|
|
17435
|
-
var
|
|
17436
|
-
const
|
|
17437
|
-
function
|
|
17434
|
+
Br.getLocation = tm;
|
|
17435
|
+
var Zg = so;
|
|
17436
|
+
const em = /\r\n|[\n\r]/g;
|
|
17437
|
+
function tm(t, e) {
|
|
17438
17438
|
let n = 0, i = 1;
|
|
17439
|
-
for (const r of t.body.matchAll(
|
|
17440
|
-
if (typeof r.index == "number" || (0,
|
|
17439
|
+
for (const r of t.body.matchAll(em)) {
|
|
17440
|
+
if (typeof r.index == "number" || (0, Zg.invariant)(!1), r.index >= e)
|
|
17441
17441
|
break;
|
|
17442
17442
|
n = r.index + r[0].length, i += 1;
|
|
17443
17443
|
}
|
|
@@ -17450,13 +17450,13 @@ var Gr = {};
|
|
|
17450
17450
|
Object.defineProperty(Gr, "__esModule", {
|
|
17451
17451
|
value: !0
|
|
17452
17452
|
});
|
|
17453
|
-
Gr.printLocation =
|
|
17453
|
+
Gr.printLocation = im;
|
|
17454
17454
|
Gr.printSourceLocation = hl;
|
|
17455
|
-
var
|
|
17456
|
-
function
|
|
17455
|
+
var nm = Br;
|
|
17456
|
+
function im(t) {
|
|
17457
17457
|
return hl(
|
|
17458
17458
|
t.source,
|
|
17459
|
-
(0,
|
|
17459
|
+
(0, nm.getLocation)(t.source, t.start)
|
|
17460
17460
|
);
|
|
17461
17461
|
}
|
|
17462
17462
|
function hl(t, e) {
|
|
@@ -17490,10 +17490,10 @@ Object.defineProperty(wn, "__esModule", {
|
|
|
17490
17490
|
value: !0
|
|
17491
17491
|
});
|
|
17492
17492
|
wn.GraphQLError = void 0;
|
|
17493
|
-
wn.formatError =
|
|
17494
|
-
wn.printError =
|
|
17495
|
-
var
|
|
17496
|
-
function
|
|
17493
|
+
wn.formatError = am;
|
|
17494
|
+
wn.printError = om;
|
|
17495
|
+
var rm = ro, Oa = Br, Na = Gr;
|
|
17496
|
+
function sm(t) {
|
|
17497
17497
|
const e = t[0];
|
|
17498
17498
|
return e == null || "kind" in e || "length" in e ? {
|
|
17499
17499
|
nodes: e,
|
|
@@ -17545,7 +17545,7 @@ class oo extends Error {
|
|
|
17545
17545
|
*/
|
|
17546
17546
|
constructor(e, ...n) {
|
|
17547
17547
|
var i, r, s;
|
|
17548
|
-
const { nodes: o, source: a, positions: u, path: c, originalError: f, extensions: g } =
|
|
17548
|
+
const { nodes: o, source: a, positions: u, path: c, originalError: f, extensions: g } = sm(n);
|
|
17549
17549
|
super(e), this.name = "GraphQLError", this.path = c ?? void 0, this.originalError = f ?? void 0, this.nodes = Aa(
|
|
17550
17550
|
Array.isArray(o) ? o : o ? [o] : void 0
|
|
17551
17551
|
);
|
|
@@ -17555,7 +17555,7 @@ class oo extends Error {
|
|
|
17555
17555
|
this.source = a ?? (p == null || (r = p[0]) === null || r === void 0 ? void 0 : r.source), this.positions = u ?? (p == null ? void 0 : p.map((v) => v.start)), this.locations = u && a ? u.map((v) => (0, Oa.getLocation)(a, v)) : p == null ? void 0 : p.map(
|
|
17556
17556
|
(v) => (0, Oa.getLocation)(v.source, v.start)
|
|
17557
17557
|
);
|
|
17558
|
-
const w = (0,
|
|
17558
|
+
const w = (0, rm.isObjectLike)(
|
|
17559
17559
|
f == null ? void 0 : f.extensions
|
|
17560
17560
|
) ? f == null ? void 0 : f.extensions : void 0;
|
|
17561
17561
|
this.extensions = (s = g ?? w) !== null && s !== void 0 ? s : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
|
|
@@ -17616,20 +17616,20 @@ wn.GraphQLError = oo;
|
|
|
17616
17616
|
function Aa(t) {
|
|
17617
17617
|
return t === void 0 || t.length === 0 ? void 0 : t;
|
|
17618
17618
|
}
|
|
17619
|
-
function
|
|
17619
|
+
function om(t) {
|
|
17620
17620
|
return t.toString();
|
|
17621
17621
|
}
|
|
17622
|
-
function
|
|
17622
|
+
function am(t) {
|
|
17623
17623
|
return t.toJSON();
|
|
17624
17624
|
}
|
|
17625
17625
|
var ao = {};
|
|
17626
17626
|
Object.defineProperty(ao, "__esModule", {
|
|
17627
17627
|
value: !0
|
|
17628
17628
|
});
|
|
17629
|
-
ao.syntaxError =
|
|
17630
|
-
var
|
|
17631
|
-
function
|
|
17632
|
-
return new
|
|
17629
|
+
ao.syntaxError = lm;
|
|
17630
|
+
var um = wn;
|
|
17631
|
+
function lm(t, e, n) {
|
|
17632
|
+
return new um.GraphQLError(`Syntax Error: ${n}`, {
|
|
17633
17633
|
source: t,
|
|
17634
17634
|
positions: [e]
|
|
17635
17635
|
});
|
|
@@ -17638,9 +17638,9 @@ var uo = {}, lo = {}, co = {};
|
|
|
17638
17638
|
Object.defineProperty(co, "__esModule", {
|
|
17639
17639
|
value: !0
|
|
17640
17640
|
});
|
|
17641
|
-
co.inspect =
|
|
17642
|
-
const
|
|
17643
|
-
function
|
|
17641
|
+
co.inspect = fm;
|
|
17642
|
+
const cm = 10, pl = 2;
|
|
17643
|
+
function fm(t) {
|
|
17644
17644
|
return qr(t, []);
|
|
17645
17645
|
}
|
|
17646
17646
|
function qr(t, e) {
|
|
@@ -17650,45 +17650,45 @@ function qr(t, e) {
|
|
|
17650
17650
|
case "function":
|
|
17651
17651
|
return t.name ? `[function ${t.name}]` : "[function]";
|
|
17652
17652
|
case "object":
|
|
17653
|
-
return
|
|
17653
|
+
return dm(t, e);
|
|
17654
17654
|
default:
|
|
17655
17655
|
return String(t);
|
|
17656
17656
|
}
|
|
17657
17657
|
}
|
|
17658
|
-
function
|
|
17658
|
+
function dm(t, e) {
|
|
17659
17659
|
if (t === null)
|
|
17660
17660
|
return "null";
|
|
17661
17661
|
if (e.includes(t))
|
|
17662
17662
|
return "[Circular]";
|
|
17663
17663
|
const n = [...e, t];
|
|
17664
|
-
if (
|
|
17664
|
+
if (hm(t)) {
|
|
17665
17665
|
const i = t.toJSON();
|
|
17666
17666
|
if (i !== t)
|
|
17667
17667
|
return typeof i == "string" ? i : qr(i, n);
|
|
17668
17668
|
} else if (Array.isArray(t))
|
|
17669
|
-
return
|
|
17670
|
-
return
|
|
17669
|
+
return gm(t, n);
|
|
17670
|
+
return pm(t, n);
|
|
17671
17671
|
}
|
|
17672
|
-
function
|
|
17672
|
+
function hm(t) {
|
|
17673
17673
|
return typeof t.toJSON == "function";
|
|
17674
17674
|
}
|
|
17675
|
-
function
|
|
17675
|
+
function pm(t, e) {
|
|
17676
17676
|
const n = Object.entries(t);
|
|
17677
|
-
return n.length === 0 ? "{}" : e.length > pl ? "[" +
|
|
17677
|
+
return n.length === 0 ? "{}" : e.length > pl ? "[" + mm(t) + "]" : "{ " + n.map(
|
|
17678
17678
|
([r, s]) => r + ": " + qr(s, e)
|
|
17679
17679
|
).join(", ") + " }";
|
|
17680
17680
|
}
|
|
17681
|
-
function
|
|
17681
|
+
function gm(t, e) {
|
|
17682
17682
|
if (t.length === 0)
|
|
17683
17683
|
return "[]";
|
|
17684
17684
|
if (e.length > pl)
|
|
17685
17685
|
return "[Array]";
|
|
17686
|
-
const n = Math.min(
|
|
17686
|
+
const n = Math.min(cm, t.length), i = t.length - n, r = [];
|
|
17687
17687
|
for (let s = 0; s < n; ++s)
|
|
17688
17688
|
r.push(qr(t[s], e));
|
|
17689
17689
|
return i === 1 ? r.push("... 1 more item") : i > 1 && r.push(`... ${i} more items`), "[" + r.join(", ") + "]";
|
|
17690
17690
|
}
|
|
17691
|
-
function
|
|
17691
|
+
function mm(t) {
|
|
17692
17692
|
const e = Object.prototype.toString.call(t).replace(/^\[object /, "").replace(/]$/, "");
|
|
17693
17693
|
if (e === "Object" && typeof t.constructor == "function") {
|
|
17694
17694
|
const n = t.constructor.name;
|
|
@@ -17700,25 +17700,25 @@ function ym(t) {
|
|
|
17700
17700
|
Object.defineProperty(lo, "__esModule", {
|
|
17701
17701
|
value: !0
|
|
17702
17702
|
});
|
|
17703
|
-
lo.toError =
|
|
17704
|
-
var
|
|
17705
|
-
function
|
|
17706
|
-
return t instanceof Error ? t : new
|
|
17703
|
+
lo.toError = bm;
|
|
17704
|
+
var ym = co;
|
|
17705
|
+
function bm(t) {
|
|
17706
|
+
return t instanceof Error ? t : new vm(t);
|
|
17707
17707
|
}
|
|
17708
|
-
class
|
|
17708
|
+
class vm extends Error {
|
|
17709
17709
|
constructor(e) {
|
|
17710
|
-
super("Unexpected error value: " + (0,
|
|
17710
|
+
super("Unexpected error value: " + (0, ym.inspect)(e)), this.name = "NonErrorThrown", this.thrownValue = e;
|
|
17711
17711
|
}
|
|
17712
17712
|
}
|
|
17713
17713
|
Object.defineProperty(uo, "__esModule", {
|
|
17714
17714
|
value: !0
|
|
17715
17715
|
});
|
|
17716
|
-
uo.locatedError =
|
|
17717
|
-
var
|
|
17718
|
-
function
|
|
17716
|
+
uo.locatedError = Tm;
|
|
17717
|
+
var Em = lo, wm = wn;
|
|
17718
|
+
function Tm(t, e, n) {
|
|
17719
17719
|
var i;
|
|
17720
|
-
const r = (0,
|
|
17721
|
-
return
|
|
17720
|
+
const r = (0, Em.toError)(t);
|
|
17721
|
+
return Sm(r) ? r : new wm.GraphQLError(r.message, {
|
|
17722
17722
|
nodes: (i = r.nodes) !== null && i !== void 0 ? i : e,
|
|
17723
17723
|
source: r.source,
|
|
17724
17724
|
positions: r.positions,
|
|
@@ -17726,7 +17726,7 @@ function Sm(t, e, n) {
|
|
|
17726
17726
|
originalError: r
|
|
17727
17727
|
});
|
|
17728
17728
|
}
|
|
17729
|
-
function
|
|
17729
|
+
function Sm(t) {
|
|
17730
17730
|
return Array.isArray(t.path);
|
|
17731
17731
|
}
|
|
17732
17732
|
(function(t) {
|
|
@@ -17772,7 +17772,7 @@ var gl = {};
|
|
|
17772
17772
|
})(e.HttpMethods || (e.HttpMethods = {}));
|
|
17773
17773
|
}(t.OpenAPIV2 || (t.OpenAPIV2 = {}));
|
|
17774
17774
|
})(gl);
|
|
17775
|
-
const ss = /* @__PURE__ */ new Map(),
|
|
17775
|
+
const ss = /* @__PURE__ */ new Map(), _m = (t, e) => {
|
|
17776
17776
|
ss.has(t) || ss.set(t, /* @__PURE__ */ new Map());
|
|
17777
17777
|
const n = ss.get(t);
|
|
17778
17778
|
if (n.has(e))
|
|
@@ -17782,11 +17782,11 @@ const ss = /* @__PURE__ */ new Map(), Im = (t, e) => {
|
|
|
17782
17782
|
for (const s of i)
|
|
17783
17783
|
(!r || typeof r != "object") && (r = null), r = r[s] ?? null;
|
|
17784
17784
|
return n.set(e, r), r;
|
|
17785
|
-
}, os = /* @__PURE__ */ new Map(),
|
|
17785
|
+
}, os = /* @__PURE__ */ new Map(), Im = (t) => t !== null && typeof t == "object", Om = async (t, e = []) => {
|
|
17786
17786
|
if (os.has(t))
|
|
17787
17787
|
return os.get(t);
|
|
17788
17788
|
const n = structuredClone(t), i = /* @__PURE__ */ new Set(), r = async (o, a) => {
|
|
17789
|
-
if (
|
|
17789
|
+
if (Im(o)) {
|
|
17790
17790
|
if (i.has(o))
|
|
17791
17791
|
return o;
|
|
17792
17792
|
if (i.add(o), Array.isArray(o))
|
|
@@ -17798,7 +17798,7 @@ const ss = /* @__PURE__ */ new Map(), Im = (t, e) => {
|
|
|
17798
17798
|
const c = await u(o.$ref);
|
|
17799
17799
|
if (c) return c;
|
|
17800
17800
|
}
|
|
17801
|
-
return await
|
|
17801
|
+
return await _m(n, o.$ref);
|
|
17802
17802
|
}
|
|
17803
17803
|
for (const u in o)
|
|
17804
17804
|
o[u] = await r(o[u]);
|
|
@@ -17816,7 +17816,7 @@ function dn(t, e) {
|
|
|
17816
17816
|
) : typeof r == "object" && r !== null ? n[i] = dn(r, e) : n[i] = r;
|
|
17817
17817
|
return e(n);
|
|
17818
17818
|
}
|
|
17819
|
-
const
|
|
17819
|
+
const Nm = (t) => {
|
|
17820
17820
|
var e;
|
|
17821
17821
|
return (e = t.openapi) != null && e.startsWith("3.0") && (t.openapi = "3.1.0"), t = dn(t, (n) => (n.type !== "undefined" && n.nullable === !0 && (n.type = ["null", n.type], delete n.nullable), n)), t = dn(t, (n) => (n.exclusiveMinimum === !0 ? (n.exclusiveMinimum = n.minimum, delete n.minimum) : n.exclusiveMinimum === !1 && delete n.exclusiveMinimum, n.exclusiveMaximum === !0 ? (n.exclusiveMaximum = n.maximum, delete n.maximum) : n.exclusiveMaximum === !1 && delete n.exclusiveMaximum, n)), t = dn(t, (n) => (n.example !== void 0 && (n.examples = {
|
|
17822
17822
|
default: {
|
|
@@ -17836,7 +17836,7 @@ const Am = (t) => {
|
|
|
17836
17836
|
type: "string",
|
|
17837
17837
|
contentEncoding: "base64"
|
|
17838
17838
|
} : n), t;
|
|
17839
|
-
},
|
|
17839
|
+
}, Am = Object.values(gl.OpenAPIV3.HttpMethods), xm = async (t) => {
|
|
17840
17840
|
if (typeof t == "string") {
|
|
17841
17841
|
if (t.trim().startsWith("{"))
|
|
17842
17842
|
try {
|
|
@@ -17875,32 +17875,32 @@ const Am = (t) => {
|
|
|
17875
17875
|
}
|
|
17876
17876
|
if (typeof t == "object") return t;
|
|
17877
17877
|
throw new In.GraphQLError("Unsupported schema input: " + t);
|
|
17878
|
-
},
|
|
17879
|
-
const e = await
|
|
17878
|
+
}, Fm = async (t) => {
|
|
17879
|
+
const e = await xm(t);
|
|
17880
17880
|
if (!e.openapi)
|
|
17881
17881
|
throw new In.GraphQLError("OpenAPI version is not defined");
|
|
17882
|
-
const n = await
|
|
17883
|
-
return
|
|
17884
|
-
},
|
|
17882
|
+
const n = await Om(e);
|
|
17883
|
+
return Nm(n);
|
|
17884
|
+
}, Rm = (t, e, n) => {
|
|
17885
17885
|
const i = (e.summary ?? "") + (e.operationId ? "-" + e.operationId.slice(0, (e.summary, 1 / 0)) : "");
|
|
17886
17886
|
return t(
|
|
17887
17887
|
(n ? n + "-" : "") + (i || `${e.method}-${e.path}`)
|
|
17888
17888
|
);
|
|
17889
|
-
},
|
|
17889
|
+
}, Lm = new Rs({
|
|
17890
17890
|
ttl: 60 * 10 * 1e3,
|
|
17891
17891
|
ttlAutopurge: !0,
|
|
17892
|
-
fetchMethod: (t, e, { context: n }) =>
|
|
17893
|
-
}), Me = new
|
|
17892
|
+
fetchMethod: (t, e, { context: n }) => Fm(n)
|
|
17893
|
+
}), Me = new th({}), ai = Me.addScalarType("JSON", fh), Cm = Me.addScalarType("JSONObject", dh), ml = (t) => {
|
|
17894
17894
|
const e = t.tags ?? [], n = Object.values(t.paths ?? {}).flatMap((r) => Object.values(r ?? {})).flatMap(
|
|
17895
17895
|
(r) => typeof r == "object" && "tags" in r ? r.tags ?? [] : []
|
|
17896
17896
|
), i = [...new Set(n)].filter(
|
|
17897
17897
|
(r) => !e.some((s) => s.name === r)
|
|
17898
17898
|
);
|
|
17899
17899
|
return [...e, ...i.map((r) => ({ name: r }))];
|
|
17900
|
-
},
|
|
17901
|
-
const n =
|
|
17900
|
+
}, yl = (t, e) => {
|
|
17901
|
+
const n = ch();
|
|
17902
17902
|
return Object.entries(t ?? {}).flatMap(
|
|
17903
|
-
([i, r]) =>
|
|
17903
|
+
([i, r]) => Am.flatMap((s) => {
|
|
17904
17904
|
if (!(r != null && r[s])) return [];
|
|
17905
17905
|
const o = r[s], a = r.parameters ?? [], u = o.parameters ?? [], c = [
|
|
17906
17906
|
...a.filter(
|
|
@@ -17922,7 +17922,7 @@ const Am = (t) => {
|
|
|
17922
17922
|
path: i,
|
|
17923
17923
|
parameters: c,
|
|
17924
17924
|
tags: o.tags ?? [],
|
|
17925
|
-
slug:
|
|
17925
|
+
slug: Rm(n, f, e)
|
|
17926
17926
|
};
|
|
17927
17927
|
})
|
|
17928
17928
|
);
|
|
@@ -17931,10 +17931,10 @@ const Am = (t) => {
|
|
|
17931
17931
|
name: t.exposeString("name", { nullable: !0 }),
|
|
17932
17932
|
description: t.exposeString("description", { nullable: !0 }),
|
|
17933
17933
|
operations: t.field({
|
|
17934
|
-
type: [
|
|
17934
|
+
type: [El],
|
|
17935
17935
|
resolve: (e, n, i) => {
|
|
17936
|
-
const r =
|
|
17937
|
-
return
|
|
17936
|
+
const r = ml(i.schema).map((s) => s.name);
|
|
17937
|
+
return yl(i.schema.paths, e.name).filter(
|
|
17938
17938
|
(s) => e.name ? s.tags.includes(e.name) : s.tags.length === 0 || // If none of the tags are present in the root tags, then show them here
|
|
17939
17939
|
s.tags.every((o) => !r.includes(o))
|
|
17940
17940
|
);
|
|
@@ -17960,17 +17960,17 @@ const Am = (t) => {
|
|
|
17960
17960
|
fields: (t) => ({
|
|
17961
17961
|
name: t.exposeString("name"),
|
|
17962
17962
|
contentType: t.exposeString("contentType", { nullable: !0 }),
|
|
17963
|
-
headers: t.expose("headers", { type:
|
|
17963
|
+
headers: t.expose("headers", { type: Cm, nullable: !0 }),
|
|
17964
17964
|
style: t.exposeString("style", { nullable: !0 }),
|
|
17965
17965
|
explode: t.exposeBoolean("explode", { nullable: !0 }),
|
|
17966
17966
|
allowReserved: t.exposeBoolean("allowReserved", { nullable: !0 })
|
|
17967
17967
|
})
|
|
17968
|
-
}),
|
|
17968
|
+
}), bl = Me.objectRef("ExampleItem").implement({
|
|
17969
17969
|
fields: (t) => ({
|
|
17970
17970
|
name: t.exposeString("name"),
|
|
17971
17971
|
summary: t.exposeString("summary", { nullable: !0 }),
|
|
17972
17972
|
description: t.exposeString("description", { nullable: !0 }),
|
|
17973
|
-
value: t.expose("value", { type:
|
|
17973
|
+
value: t.expose("value", { type: ai, nullable: !0 }),
|
|
17974
17974
|
externalValue: t.exposeString("externalValue", { nullable: !0 })
|
|
17975
17975
|
})
|
|
17976
17976
|
}), Mm = Me.enumType("ParameterIn", {
|
|
@@ -17990,37 +17990,37 @@ const Am = (t) => {
|
|
|
17990
17990
|
explode: t.exposeBoolean("explode", { nullable: !0 }),
|
|
17991
17991
|
allowReserved: t.exposeBoolean("allowReserved", { nullable: !0 }),
|
|
17992
17992
|
examples: t.field({
|
|
17993
|
-
type: [
|
|
17993
|
+
type: [bl],
|
|
17994
17994
|
resolve: (e) => Object.entries(e.examples ?? {}).map(([n, i]) => ({
|
|
17995
17995
|
name: n,
|
|
17996
17996
|
...typeof i == "string" ? { value: i } : i
|
|
17997
17997
|
})),
|
|
17998
17998
|
nullable: !0
|
|
17999
17999
|
}),
|
|
18000
|
-
schema: t.expose("schema", { type:
|
|
18000
|
+
schema: t.expose("schema", { type: ai, nullable: !0 })
|
|
18001
18001
|
})
|
|
18002
|
-
}),
|
|
18002
|
+
}), vl = Me.objectRef("MediaTypeObject").implement({
|
|
18003
18003
|
fields: (t) => ({
|
|
18004
18004
|
mediaType: t.exposeString("mediaType"),
|
|
18005
|
-
schema: t.expose("schema", { type:
|
|
18006
|
-
examples: t.expose("examples", { type: [
|
|
18005
|
+
schema: t.expose("schema", { type: ai, nullable: !0 }),
|
|
18006
|
+
examples: t.expose("examples", { type: [bl], nullable: !0 }),
|
|
18007
18007
|
encoding: t.expose("encoding", { type: [jm], nullable: !0 })
|
|
18008
18008
|
})
|
|
18009
18009
|
}), Vm = Me.objectRef("RequestBodyObject").implement({
|
|
18010
18010
|
fields: (t) => ({
|
|
18011
18011
|
description: t.exposeString("description", { nullable: !0 }),
|
|
18012
|
-
content: t.expose("content", { type: [
|
|
18012
|
+
content: t.expose("content", { type: [vl], nullable: !0 }),
|
|
18013
18013
|
required: t.exposeBoolean("required", { nullable: !0 })
|
|
18014
18014
|
})
|
|
18015
18015
|
}), Bm = Me.objectRef("ResponseItem").implement({
|
|
18016
18016
|
fields: (t) => ({
|
|
18017
18017
|
statusCode: t.exposeString("statusCode"),
|
|
18018
18018
|
description: t.exposeString("description", { nullable: !0 }),
|
|
18019
|
-
content: t.expose("content", { type: [
|
|
18020
|
-
headers: t.expose("headers", { type:
|
|
18021
|
-
links: t.expose("links", { type:
|
|
18019
|
+
content: t.expose("content", { type: [vl], nullable: !0 }),
|
|
18020
|
+
headers: t.expose("headers", { type: ai, nullable: !0 }),
|
|
18021
|
+
links: t.expose("links", { type: ai, nullable: !0 })
|
|
18022
18022
|
})
|
|
18023
|
-
}),
|
|
18023
|
+
}), El = Me.objectRef("OperationItem").implement({
|
|
18024
18024
|
fields: (t) => ({
|
|
18025
18025
|
slug: t.exposeString("slug"),
|
|
18026
18026
|
path: t.exposeString("path"),
|
|
@@ -18127,26 +18127,26 @@ const Am = (t) => {
|
|
|
18127
18127
|
},
|
|
18128
18128
|
type: [km],
|
|
18129
18129
|
resolve: (e, n) => {
|
|
18130
|
-
const i = [...
|
|
18130
|
+
const i = [...ml(e), { name: "" }];
|
|
18131
18131
|
return n.name ? i.filter((r) => r.name === n.name) : i;
|
|
18132
18132
|
}
|
|
18133
18133
|
}),
|
|
18134
18134
|
operations: t.field({
|
|
18135
|
-
type: [
|
|
18135
|
+
type: [El],
|
|
18136
18136
|
args: {
|
|
18137
18137
|
path: t.arg.string(),
|
|
18138
18138
|
method: t.arg.string(),
|
|
18139
18139
|
operationId: t.arg.string(),
|
|
18140
18140
|
tag: t.arg.string()
|
|
18141
18141
|
},
|
|
18142
|
-
resolve: (e, n) =>
|
|
18142
|
+
resolve: (e, n) => yl(e.paths).filter(
|
|
18143
18143
|
(i) => (!n.operationId || i.operationId === n.operationId) && (!n.path || i.path === n.path) && (!n.method || i.method === n.method) && (!n.tag || i.tags.includes(n.tag))
|
|
18144
18144
|
)
|
|
18145
18145
|
})
|
|
18146
18146
|
})
|
|
18147
18147
|
}), qm = async (t) => {
|
|
18148
|
-
const e =
|
|
18149
|
-
return await
|
|
18148
|
+
const e = Jg(t);
|
|
18149
|
+
return await Lm.forceFetch(e, { context: t });
|
|
18150
18150
|
}, zm = Me.enumType("SchemaType", {
|
|
18151
18151
|
values: ["url", "file", "raw"]
|
|
18152
18152
|
});
|
|
@@ -18157,7 +18157,7 @@ Me.queryType({
|
|
|
18157
18157
|
type: Gm,
|
|
18158
18158
|
args: {
|
|
18159
18159
|
type: t.arg({ type: zm, required: !0 }),
|
|
18160
|
-
input: t.arg({ type:
|
|
18160
|
+
input: t.arg({ type: ai, required: !0 })
|
|
18161
18161
|
},
|
|
18162
18162
|
resolve: async (e, n, i) => {
|
|
18163
18163
|
const r = await qm(n.input);
|
|
@@ -18166,10 +18166,10 @@ Me.queryType({
|
|
|
18166
18166
|
})
|
|
18167
18167
|
})
|
|
18168
18168
|
});
|
|
18169
|
-
const Qm = Me.toSchema(), Wm = (t) =>
|
|
18169
|
+
const Qm = Me.toSchema(), Wm = (t) => Wg({ schema: Qm, ...t }), Ym = () => Wm({
|
|
18170
18170
|
plugins: [
|
|
18171
18171
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
18172
|
-
|
|
18172
|
+
Ll({
|
|
18173
18173
|
logFn: (t, { args: e }) => {
|
|
18174
18174
|
}
|
|
18175
18175
|
})
|
|
@@ -18196,4 +18196,4 @@ Jm.addEventListener(
|
|
|
18196
18196
|
};
|
|
18197
18197
|
}
|
|
18198
18198
|
);
|
|
18199
|
-
//# sourceMappingURL=worker-
|
|
18199
|
+
//# sourceMappingURL=worker-YA-aCP3P.js.map
|