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 kl = Object.defineProperty;
|
|
2
2
|
var To = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var U = (t, e, n) =>
|
|
5
|
+
var Dl = (t, e, n) => e in t ? kl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
6
|
+
var U = (t, e, n) => Dl(t, typeof e != "symbol" ? e + "" : e, n), Kr = (t, e, n) => e.has(t) || To("Cannot " + n);
|
|
7
7
|
var l = (t, e, n) => (Kr(t, e, "read from private field"), n ? n.call(t) : e.get(t)), H = (t, e, n) => e.has(t) ? To("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), $ = (t, e, n, i) => (Kr(t, e, "write to private field"), i ? i.call(t, n) : e.set(t, n), n), k = (t, e, n) => (Kr(t, e, "access private method"), n);
|
|
8
8
|
var Sn = (t, e, n, i) => ({
|
|
9
9
|
set _(r) {
|
|
@@ -13,10 +13,10 @@ var Sn = (t, e, n, i) => ({
|
|
|
13
13
|
return l(t, e, i);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { a as
|
|
17
|
-
import { g as
|
|
16
|
+
import { a as $l } from "./index-LNp6rxyU.js";
|
|
17
|
+
import { g as jl } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
18
18
|
import { C as Qa, b as Wa, m as Ha, f as Ya } from "./urql-core-KJnLL26g.js";
|
|
19
|
-
function
|
|
19
|
+
function Pl(t, e) {
|
|
20
20
|
for (var n = 0; n < e.length; n++) {
|
|
21
21
|
const i = e[n];
|
|
22
22
|
if (typeof i != "string" && !Array.isArray(i)) {
|
|
@@ -37,17 +37,17 @@ function Xr(t) {
|
|
|
37
37
|
throw new Error("Parameter was not an error");
|
|
38
38
|
}
|
|
39
39
|
function Vs(t) {
|
|
40
|
-
return !!t && typeof t == "object" &&
|
|
40
|
+
return !!t && typeof t == "object" && Ml(t) === "[object Error]" || t instanceof Error;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Ml(t) {
|
|
43
43
|
return Object.prototype.toString.call(t);
|
|
44
44
|
}
|
|
45
|
-
const
|
|
46
|
-
let
|
|
47
|
-
function
|
|
48
|
-
return
|
|
45
|
+
const Ul = "Layerr";
|
|
46
|
+
let Vl = Ul;
|
|
47
|
+
function Bl() {
|
|
48
|
+
return Vl;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Gl(t) {
|
|
51
51
|
let e, n = "";
|
|
52
52
|
if (t.length === 0)
|
|
53
53
|
e = {};
|
|
@@ -68,9 +68,9 @@ function ql(t) {
|
|
|
68
68
|
}
|
|
69
69
|
class gt extends Error {
|
|
70
70
|
constructor(e, n) {
|
|
71
|
-
const i = [...arguments], { options: r, shortMessage: s } =
|
|
71
|
+
const i = [...arguments], { options: r, shortMessage: s } = Gl(i);
|
|
72
72
|
let o = s;
|
|
73
|
-
if (r.cause && (o = `${o}: ${r.cause.message}`), super(o), this.message = o, r.name && typeof r.name == "string" ? this.name = r.name : this.name =
|
|
73
|
+
if (r.cause && (o = `${o}: ${r.cause.message}`), super(o), this.message = o, r.name && typeof r.name == "string" ? this.name = r.name : this.name = Bl(), r.cause && Object.defineProperty(this, "_cause", { value: r.cause }), Object.defineProperty(this, "_info", { value: {} }), r.info && typeof r.info == "object" && Object.assign(this._info, r.info), Error.captureStackTrace) {
|
|
74
74
|
const a = r.constructorOpt || this.constructor;
|
|
75
75
|
Error.captureStackTrace(this, a);
|
|
76
76
|
}
|
|
@@ -94,11 +94,11 @@ caused by: ${gt.fullStack(n)}` : e.stack ?? "";
|
|
|
94
94
|
return this.message && (e = `${e}: ${this.message}`), e;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
const
|
|
97
|
+
const Fi = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", Hn = 32, So = 281474976710655, _o = 10, ql = 16, An = Object.freeze({
|
|
98
98
|
source: "ulid"
|
|
99
99
|
});
|
|
100
|
-
function
|
|
101
|
-
const e =
|
|
100
|
+
function zl(t) {
|
|
101
|
+
const e = Ql(), n = e && (e.crypto || e.msCrypto) || null;
|
|
102
102
|
if (typeof (n == null ? void 0 : n.getRandomValues) == "function")
|
|
103
103
|
return () => {
|
|
104
104
|
const i = new Uint8Array(1);
|
|
@@ -113,13 +113,13 @@ function Ql(t) {
|
|
|
113
113
|
}
|
|
114
114
|
}, "Failed to find a reliable PRNG");
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
return
|
|
116
|
+
function Ql() {
|
|
117
|
+
return Yl() ? self : typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : null;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Wl(t, e) {
|
|
120
120
|
let n = "";
|
|
121
121
|
for (; t > 0; t--)
|
|
122
|
-
n =
|
|
122
|
+
n = Kl(e) + n;
|
|
123
123
|
return n;
|
|
124
124
|
}
|
|
125
125
|
function Io(t, e) {
|
|
@@ -153,14 +153,14 @@ function Io(t, e) {
|
|
|
153
153
|
}, `Time must be an integer: ${t}`);
|
|
154
154
|
let n, i = "";
|
|
155
155
|
for (let r = e; r > 0; r--)
|
|
156
|
-
n = t % Hn, i =
|
|
156
|
+
n = t % Hn, i = Fi.charAt(n) + i, t = (t - n) / Hn;
|
|
157
157
|
return i;
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Hl(t) {
|
|
160
160
|
let e, n = t.length, i, r, s = t;
|
|
161
161
|
const o = Hn - 1;
|
|
162
162
|
for (; !e && n-- >= 0; ) {
|
|
163
|
-
if (i = s[n], r =
|
|
163
|
+
if (i = s[n], r = Fi.indexOf(i), r === -1)
|
|
164
164
|
throw new gt({
|
|
165
165
|
info: {
|
|
166
166
|
code: "B32_INC_ENC",
|
|
@@ -168,10 +168,10 @@ function Yl(t) {
|
|
|
168
168
|
}
|
|
169
169
|
}, "Incorrectly encoded string");
|
|
170
170
|
if (r === o) {
|
|
171
|
-
s = Oo(s, n,
|
|
171
|
+
s = Oo(s, n, Fi[0]);
|
|
172
172
|
continue;
|
|
173
173
|
}
|
|
174
|
-
e = Oo(s, n,
|
|
174
|
+
e = Oo(s, n, Fi[r + 1]);
|
|
175
175
|
}
|
|
176
176
|
if (typeof e == "string")
|
|
177
177
|
return e;
|
|
@@ -182,31 +182,31 @@ function Yl(t) {
|
|
|
182
182
|
}
|
|
183
183
|
}, "Failed incrementing string");
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Yl() {
|
|
186
186
|
return typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
const e =
|
|
188
|
+
function Jl(t) {
|
|
189
|
+
const e = zl();
|
|
190
190
|
let n = 0, i;
|
|
191
191
|
return function(s) {
|
|
192
192
|
const o = isNaN(s) ? Date.now() : s;
|
|
193
193
|
if (o <= n) {
|
|
194
|
-
const u = i =
|
|
194
|
+
const u = i = Hl(i);
|
|
195
195
|
return Io(n, _o) + u;
|
|
196
196
|
}
|
|
197
197
|
n = o;
|
|
198
|
-
const a = i =
|
|
198
|
+
const a = i = Wl(ql, e);
|
|
199
199
|
return Io(o, _o) + a;
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function Kl(t) {
|
|
203
203
|
let e = Math.floor(t() * Hn);
|
|
204
|
-
return e === Hn && (e = Hn - 1),
|
|
204
|
+
return e === Hn && (e = Hn - 1), Fi.charAt(e);
|
|
205
205
|
}
|
|
206
206
|
function Oo(t, e, n) {
|
|
207
207
|
return e > t.length - 1 ? t : t.substr(0, e) + n + t.substr(e + 1);
|
|
208
208
|
}
|
|
209
|
-
const
|
|
209
|
+
const Xl = () => {
|
|
210
210
|
const t = /* @__PURE__ */ new Map();
|
|
211
211
|
return [(i) => new Promise((r) => {
|
|
212
212
|
t.set(i, r);
|
|
@@ -214,11 +214,11 @@ const Zl = () => {
|
|
|
214
214
|
const s = t.get(i);
|
|
215
215
|
s && (s(r), t.delete(i));
|
|
216
216
|
}];
|
|
217
|
-
},
|
|
218
|
-
function
|
|
217
|
+
}, Zl = /* @__PURE__ */ new WeakMap(), Zr = Symbol("ENVELOP_IS_INTROSPECTION");
|
|
218
|
+
function ec(t) {
|
|
219
219
|
return (typeof t == "string" ? t : t.body).indexOf("__schema") !== -1;
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function tc(t) {
|
|
222
222
|
return t.length === 1 ? t[0] : {
|
|
223
223
|
schema: t[0],
|
|
224
224
|
document: t[1],
|
|
@@ -230,7 +230,7 @@ function nc(t) {
|
|
|
230
230
|
subscribeFieldResolver: t[7]
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
|
-
const No = (t) => (...e) => t(
|
|
233
|
+
const No = (t) => (...e) => t(tc(e));
|
|
234
234
|
function Ao(t, e) {
|
|
235
235
|
const n = t[Symbol.asyncIterator]();
|
|
236
236
|
async function i(s) {
|
|
@@ -269,7 +269,7 @@ function Ao(t, e) {
|
|
|
269
269
|
};
|
|
270
270
|
return r;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function nc(t) {
|
|
273
273
|
return t.length === 1 ? t[0] : {
|
|
274
274
|
schema: t[0],
|
|
275
275
|
document: t[1],
|
|
@@ -281,7 +281,7 @@ function ic(t) {
|
|
|
281
281
|
typeResolver: t[7]
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
|
-
const xo = (t) => (...e) => t(
|
|
284
|
+
const xo = (t) => (...e) => t(nc(e));
|
|
285
285
|
function Qt(t) {
|
|
286
286
|
return typeof t == "object" && t != null && typeof t[Symbol.asyncIterator] == "function";
|
|
287
287
|
}
|
|
@@ -320,7 +320,7 @@ function Ro(t, e) {
|
|
|
320
320
|
};
|
|
321
321
|
return r;
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function ic(t, e) {
|
|
324
324
|
const n = t[Symbol.asyncIterator](), i = {
|
|
325
325
|
[Symbol.asyncIterator]() {
|
|
326
326
|
return i;
|
|
@@ -350,7 +350,7 @@ function rc(t, e) {
|
|
|
350
350
|
function Yi(t) {
|
|
351
351
|
throw Error(`No \`${t}\` function found! Register it using "useEngine" plugin.`);
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function rc({ plugins: t }) {
|
|
354
354
|
let e = null, n = !1;
|
|
355
355
|
const i = () => Yi("parse"), r = () => Yi("validate"), s = () => Yi("execute"), o = () => Yi("subscribe"), a = (S, A = -1) => {
|
|
356
356
|
if (e = S, n)
|
|
@@ -433,7 +433,7 @@ function sc({ plugins: t }) {
|
|
|
433
433
|
throw new Error("Failed to parse document.");
|
|
434
434
|
if (C instanceof Error)
|
|
435
435
|
throw C;
|
|
436
|
-
return
|
|
436
|
+
return Zl.set(C, A.toString()), C;
|
|
437
437
|
} : () => i, p = c.validate.length ? (S) => (A, O, C, T, _) => {
|
|
438
438
|
let m = C ? [...C] : void 0, b = r, d = null;
|
|
439
439
|
const N = S, L = [];
|
|
@@ -567,7 +567,7 @@ function sc({ plugins: t }) {
|
|
|
567
567
|
})), b.length && Qt(_) && (_ = Ro(_, () => {
|
|
568
568
|
for (const d of b)
|
|
569
569
|
d();
|
|
570
|
-
})), C.length && Qt(_) && (_ =
|
|
570
|
+
})), C.length && Qt(_) && (_ = ic(_, (d) => {
|
|
571
571
|
let N = d;
|
|
572
572
|
for (const L of C)
|
|
573
573
|
L({
|
|
@@ -649,11 +649,11 @@ function sc({ plugins: t }) {
|
|
|
649
649
|
contextFactory: v
|
|
650
650
|
};
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function sc(t) {
|
|
653
653
|
return t != null;
|
|
654
654
|
}
|
|
655
|
-
function
|
|
656
|
-
const e = t.plugins.filter(
|
|
655
|
+
function oc(t) {
|
|
656
|
+
const e = t.plugins.filter(sc), n = rc({
|
|
657
657
|
plugins: e
|
|
658
658
|
}), i = (r = {}) => {
|
|
659
659
|
const s = n;
|
|
@@ -670,14 +670,14 @@ function ac(t) {
|
|
|
670
670
|
}
|
|
671
671
|
const Lo = {
|
|
672
672
|
logFn: console.log
|
|
673
|
-
},
|
|
673
|
+
}, ac = (t = Lo) => {
|
|
674
674
|
const e = {
|
|
675
675
|
DEFAULT_OPTIONS: Lo,
|
|
676
676
|
...t
|
|
677
677
|
};
|
|
678
678
|
return {
|
|
679
679
|
onParse({ extendContext: n, params: i }) {
|
|
680
|
-
e.skipIntrospection &&
|
|
680
|
+
e.skipIntrospection && ec(i.source) && n({
|
|
681
681
|
[Zr]: !0
|
|
682
682
|
});
|
|
683
683
|
},
|
|
@@ -698,14 +698,14 @@ const Lo = {
|
|
|
698
698
|
};
|
|
699
699
|
}
|
|
700
700
|
};
|
|
701
|
-
},
|
|
702
|
-
function
|
|
701
|
+
}, uc = "Unexpected error.";
|
|
702
|
+
function lc(t) {
|
|
703
703
|
return t instanceof Error && t.name === "GraphQLError";
|
|
704
704
|
}
|
|
705
705
|
function Ja(t) {
|
|
706
|
-
return
|
|
706
|
+
return lc(t) ? t.originalError != null ? Ja(t.originalError) : !0 : !1;
|
|
707
707
|
}
|
|
708
|
-
function
|
|
708
|
+
function cc(t, e, n) {
|
|
709
709
|
const i = new Error(t);
|
|
710
710
|
if (i.name = "GraphQLError", n) {
|
|
711
711
|
const r = e instanceof Error ? { message: e.message, stack: e.stack } : { message: String(e) };
|
|
@@ -724,13 +724,13 @@ function fc(t, e, n) {
|
|
|
724
724
|
}
|
|
725
725
|
}), i;
|
|
726
726
|
}
|
|
727
|
-
const
|
|
727
|
+
const fc = (t) => (e, n) => Ja(e) ? e : cc(n, e, t);
|
|
728
728
|
var Pa, Ma;
|
|
729
|
-
const
|
|
729
|
+
const dc = ((Ma = (Pa = globalThis.process) == null ? void 0 : Pa.env) == null ? void 0 : Ma.NODE_ENV) === "development", hc = fc(dc), pc = (t, e) => ({ result: n, setResult: i }) => {
|
|
730
730
|
n.errors != null && i({ ...n, errors: n.errors.map((r) => t(r, e)) });
|
|
731
731
|
};
|
|
732
|
-
function
|
|
733
|
-
const e = (t == null ? void 0 : t.maskError) ??
|
|
732
|
+
function gc(t) {
|
|
733
|
+
const e = (t == null ? void 0 : t.maskError) ?? hc, n = (t == null ? void 0 : t.errorMessage) || uc, i = pc(e, n);
|
|
734
734
|
return {
|
|
735
735
|
onPluginInit(r) {
|
|
736
736
|
r.registerContextErrorHandler(({ error: s, setError: o }) => {
|
|
@@ -756,11 +756,11 @@ function mc(t) {
|
|
|
756
756
|
}
|
|
757
757
|
};
|
|
758
758
|
}
|
|
759
|
-
const
|
|
759
|
+
const mc = (t) => ({
|
|
760
760
|
async onContextBuilding({ context: e, extendContext: n }) {
|
|
761
761
|
n(await t(e));
|
|
762
762
|
}
|
|
763
|
-
}),
|
|
763
|
+
}), yc = (t) => ({
|
|
764
764
|
onExecute: ({ setExecuteFn: e }) => {
|
|
765
765
|
t.execute && e(t.execute);
|
|
766
766
|
},
|
|
@@ -784,7 +784,7 @@ function ae(t, e) {
|
|
|
784
784
|
if (!!!t)
|
|
785
785
|
throw new Error(e);
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function bc(t) {
|
|
788
788
|
return typeof (t == null ? void 0 : t.then) == "function";
|
|
789
789
|
}
|
|
790
790
|
function Jt(t) {
|
|
@@ -796,10 +796,10 @@ function Yt(t, e) {
|
|
|
796
796
|
e ?? "Unexpected invariant triggered."
|
|
797
797
|
);
|
|
798
798
|
}
|
|
799
|
-
const
|
|
799
|
+
const wc = /\r\n|[\n\r]/g;
|
|
800
800
|
function ds(t, e) {
|
|
801
801
|
let n = 0, i = 1;
|
|
802
|
-
for (const r of t.body.matchAll(
|
|
802
|
+
for (const r of t.body.matchAll(wc)) {
|
|
803
803
|
if (typeof r.index == "number" || Yt(!1), r.index >= e)
|
|
804
804
|
break;
|
|
805
805
|
n = r.index + r[0].length, i += 1;
|
|
@@ -809,7 +809,7 @@ function ds(t, e) {
|
|
|
809
809
|
column: e + 1 - n
|
|
810
810
|
};
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function Ec(t) {
|
|
813
813
|
return Xa(
|
|
814
814
|
t.source,
|
|
815
815
|
ds(t.source, t.start)
|
|
@@ -842,7 +842,7 @@ function Co(t) {
|
|
|
842
842
|
return e.map(([i, r]) => i.padStart(n) + (r ? " " + r : "")).join(`
|
|
843
843
|
`);
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function vc(t) {
|
|
846
846
|
const e = t[0];
|
|
847
847
|
return e == null || "kind" in e || "length" in e ? {
|
|
848
848
|
nodes: e,
|
|
@@ -894,7 +894,7 @@ let j = class Za extends Error {
|
|
|
894
894
|
*/
|
|
895
895
|
constructor(e, ...n) {
|
|
896
896
|
var i, r, s;
|
|
897
|
-
const { nodes: o, source: a, positions: u, path: c, originalError: f, extensions: g } =
|
|
897
|
+
const { nodes: o, source: a, positions: u, path: c, originalError: f, extensions: g } = vc(n);
|
|
898
898
|
super(e), this.name = "GraphQLError", this.path = c ?? void 0, this.originalError = f ?? void 0, this.nodes = ko(
|
|
899
899
|
Array.isArray(o) ? o : o ? [o] : void 0
|
|
900
900
|
);
|
|
@@ -944,7 +944,7 @@ let j = class Za extends Error {
|
|
|
944
944
|
for (const n of this.nodes)
|
|
945
945
|
n.loc && (e += `
|
|
946
946
|
|
|
947
|
-
` +
|
|
947
|
+
` + Ec(n.loc));
|
|
948
948
|
else if (this.source && this.locations)
|
|
949
949
|
for (const n of this.locations)
|
|
950
950
|
e += `
|
|
@@ -968,7 +968,7 @@ function $e(t, e, n) {
|
|
|
968
968
|
positions: [e]
|
|
969
969
|
});
|
|
970
970
|
}
|
|
971
|
-
class
|
|
971
|
+
class Tc {
|
|
972
972
|
/**
|
|
973
973
|
* The character offset at which this Node begins.
|
|
974
974
|
*/
|
|
@@ -1113,10 +1113,10 @@ const tu = {
|
|
|
1113
1113
|
UnionTypeExtension: ["name", "directives", "types"],
|
|
1114
1114
|
EnumTypeExtension: ["name", "directives", "values"],
|
|
1115
1115
|
InputObjectTypeExtension: ["name", "directives", "fields"]
|
|
1116
|
-
},
|
|
1116
|
+
}, Sc = new Set(Object.keys(tu));
|
|
1117
1117
|
function hs(t) {
|
|
1118
1118
|
const e = t == null ? void 0 : t.kind;
|
|
1119
|
-
return typeof e == "string" &&
|
|
1119
|
+
return typeof e == "string" && Sc.has(e);
|
|
1120
1120
|
}
|
|
1121
1121
|
var Je;
|
|
1122
1122
|
(function(t) {
|
|
@@ -1133,7 +1133,7 @@ var I;
|
|
|
1133
1133
|
function ps(t) {
|
|
1134
1134
|
return t === 9 || t === 32;
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function ki(t) {
|
|
1137
1137
|
return t >= 48 && t <= 57;
|
|
1138
1138
|
}
|
|
1139
1139
|
function nu(t) {
|
|
@@ -1144,14 +1144,14 @@ function Bs(t) {
|
|
|
1144
1144
|
return nu(t) || t === 95;
|
|
1145
1145
|
}
|
|
1146
1146
|
function iu(t) {
|
|
1147
|
-
return nu(t) ||
|
|
1147
|
+
return nu(t) || ki(t) || t === 95;
|
|
1148
1148
|
}
|
|
1149
|
-
function
|
|
1149
|
+
function _c(t) {
|
|
1150
1150
|
var e;
|
|
1151
1151
|
let n = Number.MAX_SAFE_INTEGER, i = null, r = -1;
|
|
1152
1152
|
for (let o = 0; o < t.length; ++o) {
|
|
1153
1153
|
var s;
|
|
1154
|
-
const a = t[o], u =
|
|
1154
|
+
const a = t[o], u = Ic(a);
|
|
1155
1155
|
u !== a.length && (i = (s = i) !== null && s !== void 0 ? s : o, r = o, o !== 0 && u < n && (n = u));
|
|
1156
1156
|
}
|
|
1157
1157
|
return t.map((o, a) => a === 0 ? o : o.slice(n)).slice(
|
|
@@ -1159,13 +1159,13 @@ function Ic(t) {
|
|
|
1159
1159
|
r + 1
|
|
1160
1160
|
);
|
|
1161
1161
|
}
|
|
1162
|
-
function
|
|
1162
|
+
function Ic(t) {
|
|
1163
1163
|
let e = 0;
|
|
1164
1164
|
for (; e < t.length && ps(t.charCodeAt(e)); )
|
|
1165
1165
|
++e;
|
|
1166
1166
|
return e;
|
|
1167
1167
|
}
|
|
1168
|
-
function
|
|
1168
|
+
function Oc(t, e) {
|
|
1169
1169
|
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((v) => v.length === 0 || ps(v.charCodeAt(0))), o = n.endsWith('\\"""'), a = t.endsWith('"') && !o, u = t.endsWith("\\"), c = a || u, f = (
|
|
1170
1170
|
// add leading and trailing new lines only if it improves readability
|
|
1171
1171
|
!r || t.length > 70 || c || s || o
|
|
@@ -1180,7 +1180,7 @@ var D;
|
|
|
1180
1180
|
(function(t) {
|
|
1181
1181
|
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";
|
|
1182
1182
|
})(D || (D = {}));
|
|
1183
|
-
class
|
|
1183
|
+
class Nc {
|
|
1184
1184
|
/**
|
|
1185
1185
|
* The previously focused non-ignored token.
|
|
1186
1186
|
*/
|
|
@@ -1217,17 +1217,17 @@ class Ac {
|
|
|
1217
1217
|
if (e.next)
|
|
1218
1218
|
e = e.next;
|
|
1219
1219
|
else {
|
|
1220
|
-
const n =
|
|
1220
|
+
const n = xc(this, e.end);
|
|
1221
1221
|
e.next = n, n.prev = e, e = n;
|
|
1222
1222
|
}
|
|
1223
1223
|
while (e.kind === D.COMMENT);
|
|
1224
1224
|
return e;
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1227
|
+
function Ac(t) {
|
|
1228
1228
|
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;
|
|
1229
1229
|
}
|
|
1230
|
-
function
|
|
1230
|
+
function fi(t) {
|
|
1231
1231
|
return t >= 0 && t <= 55295 || t >= 57344 && t <= 1114111;
|
|
1232
1232
|
}
|
|
1233
1233
|
function kr(t, e) {
|
|
@@ -1253,7 +1253,7 @@ function _e(t, e, n, i, r) {
|
|
|
1253
1253
|
const s = t.line, o = 1 + n - t.lineStart;
|
|
1254
1254
|
return new eu(e, n, i, s, o, r);
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1256
|
+
function xc(t, e) {
|
|
1257
1257
|
const n = t.source.body, i = n.length;
|
|
1258
1258
|
let r = e;
|
|
1259
1259
|
for (; r < i; ) {
|
|
@@ -1272,7 +1272,7 @@ function Fc(t, e) {
|
|
|
1272
1272
|
n.charCodeAt(r + 1) === 10 ? r += 2 : ++r, ++t.line, t.lineStart = r;
|
|
1273
1273
|
continue;
|
|
1274
1274
|
case 35:
|
|
1275
|
-
return
|
|
1275
|
+
return Fc(t, r);
|
|
1276
1276
|
case 33:
|
|
1277
1277
|
return _e(t, D.BANG, r, r + 1);
|
|
1278
1278
|
case 36:
|
|
@@ -1304,28 +1304,28 @@ function Fc(t, e) {
|
|
|
1304
1304
|
case 125:
|
|
1305
1305
|
return _e(t, D.BRACE_R, r, r + 1);
|
|
1306
1306
|
case 34:
|
|
1307
|
-
return n.charCodeAt(r + 1) === 34 && n.charCodeAt(r + 2) === 34 ?
|
|
1307
|
+
return n.charCodeAt(r + 1) === 34 && n.charCodeAt(r + 2) === 34 ? $c(t, r) : Lc(t, r);
|
|
1308
1308
|
}
|
|
1309
|
-
if (
|
|
1310
|
-
return
|
|
1309
|
+
if (ki(s) || s === 45)
|
|
1310
|
+
return Rc(t, r, s);
|
|
1311
1311
|
if (Bs(s))
|
|
1312
|
-
return
|
|
1312
|
+
return jc(t, r);
|
|
1313
1313
|
throw $e(
|
|
1314
1314
|
t.source,
|
|
1315
1315
|
r,
|
|
1316
|
-
s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` :
|
|
1316
|
+
s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : fi(s) || kr(n, r) ? `Unexpected character: ${kn(t, r)}.` : `Invalid character: ${kn(t, r)}.`
|
|
1317
1317
|
);
|
|
1318
1318
|
}
|
|
1319
1319
|
return _e(t, D.EOF, i, i);
|
|
1320
1320
|
}
|
|
1321
|
-
function
|
|
1321
|
+
function Fc(t, e) {
|
|
1322
1322
|
const n = t.source.body, i = n.length;
|
|
1323
1323
|
let r = e + 1;
|
|
1324
1324
|
for (; r < i; ) {
|
|
1325
1325
|
const s = n.charCodeAt(r);
|
|
1326
1326
|
if (s === 10 || s === 13)
|
|
1327
1327
|
break;
|
|
1328
|
-
if (
|
|
1328
|
+
if (fi(s))
|
|
1329
1329
|
++r;
|
|
1330
1330
|
else if (kr(n, r))
|
|
1331
1331
|
r += 2;
|
|
@@ -1340,11 +1340,11 @@ function Rc(t, e) {
|
|
|
1340
1340
|
n.slice(e + 1, r)
|
|
1341
1341
|
);
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1343
|
+
function Rc(t, e, n) {
|
|
1344
1344
|
const i = t.source.body;
|
|
1345
1345
|
let r = e, s = n, o = !1;
|
|
1346
1346
|
if (s === 45 && (s = i.charCodeAt(++r)), s === 48) {
|
|
1347
|
-
if (s = i.charCodeAt(++r),
|
|
1347
|
+
if (s = i.charCodeAt(++r), ki(s))
|
|
1348
1348
|
throw $e(
|
|
1349
1349
|
t.source,
|
|
1350
1350
|
r,
|
|
@@ -1373,7 +1373,7 @@ function Lc(t, e, n) {
|
|
|
1373
1373
|
);
|
|
1374
1374
|
}
|
|
1375
1375
|
function es(t, e, n) {
|
|
1376
|
-
if (!
|
|
1376
|
+
if (!ki(n))
|
|
1377
1377
|
throw $e(
|
|
1378
1378
|
t.source,
|
|
1379
1379
|
e,
|
|
@@ -1384,11 +1384,11 @@ function es(t, e, n) {
|
|
|
1384
1384
|
);
|
|
1385
1385
|
const i = t.source.body;
|
|
1386
1386
|
let r = e + 1;
|
|
1387
|
-
for (;
|
|
1387
|
+
for (; ki(i.charCodeAt(r)); )
|
|
1388
1388
|
++r;
|
|
1389
1389
|
return r;
|
|
1390
1390
|
}
|
|
1391
|
-
function
|
|
1391
|
+
function Lc(t, e) {
|
|
1392
1392
|
const n = t.source.body, i = n.length;
|
|
1393
1393
|
let r = e + 1, s = r, o = "";
|
|
1394
1394
|
for (; r < i; ) {
|
|
@@ -1397,13 +1397,13 @@ function Cc(t, e) {
|
|
|
1397
1397
|
return o += n.slice(s, r), _e(t, D.STRING, e, r + 1, o);
|
|
1398
1398
|
if (a === 92) {
|
|
1399
1399
|
o += n.slice(s, r);
|
|
1400
|
-
const u = n.charCodeAt(r + 1) === 117 ? n.charCodeAt(r + 2) === 123 ?
|
|
1400
|
+
const u = n.charCodeAt(r + 1) === 117 ? n.charCodeAt(r + 2) === 123 ? Cc(t, r) : kc(t, r) : Dc(t, r);
|
|
1401
1401
|
o += u.value, r += u.size, s = r;
|
|
1402
1402
|
continue;
|
|
1403
1403
|
}
|
|
1404
1404
|
if (a === 10 || a === 13)
|
|
1405
1405
|
break;
|
|
1406
|
-
if (
|
|
1406
|
+
if (fi(a))
|
|
1407
1407
|
++r;
|
|
1408
1408
|
else if (kr(n, r))
|
|
1409
1409
|
r += 2;
|
|
@@ -1419,20 +1419,20 @@ function Cc(t, e) {
|
|
|
1419
1419
|
}
|
|
1420
1420
|
throw $e(t.source, r, "Unterminated string.");
|
|
1421
1421
|
}
|
|
1422
|
-
function
|
|
1422
|
+
function Cc(t, e) {
|
|
1423
1423
|
const n = t.source.body;
|
|
1424
1424
|
let i = 0, r = 3;
|
|
1425
1425
|
for (; r < 12; ) {
|
|
1426
1426
|
const s = n.charCodeAt(e + r++);
|
|
1427
1427
|
if (s === 125) {
|
|
1428
|
-
if (r < 5 || !
|
|
1428
|
+
if (r < 5 || !fi(i))
|
|
1429
1429
|
break;
|
|
1430
1430
|
return {
|
|
1431
1431
|
value: String.fromCodePoint(i),
|
|
1432
1432
|
size: r
|
|
1433
1433
|
};
|
|
1434
1434
|
}
|
|
1435
|
-
if (i = i << 4 |
|
|
1435
|
+
if (i = i << 4 | vi(s), i < 0)
|
|
1436
1436
|
break;
|
|
1437
1437
|
}
|
|
1438
1438
|
throw $e(
|
|
@@ -1444,9 +1444,9 @@ function kc(t, e) {
|
|
|
1444
1444
|
)}".`
|
|
1445
1445
|
);
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1447
|
+
function kc(t, e) {
|
|
1448
1448
|
const n = t.source.body, i = Do(n, e + 2);
|
|
1449
|
-
if (
|
|
1449
|
+
if (fi(i))
|
|
1450
1450
|
return {
|
|
1451
1451
|
value: String.fromCodePoint(i),
|
|
1452
1452
|
size: 6
|
|
@@ -1466,12 +1466,12 @@ function Dc(t, e) {
|
|
|
1466
1466
|
);
|
|
1467
1467
|
}
|
|
1468
1468
|
function Do(t, e) {
|
|
1469
|
-
return
|
|
1469
|
+
return vi(t.charCodeAt(e)) << 12 | vi(t.charCodeAt(e + 1)) << 8 | vi(t.charCodeAt(e + 2)) << 4 | vi(t.charCodeAt(e + 3));
|
|
1470
1470
|
}
|
|
1471
|
-
function
|
|
1471
|
+
function vi(t) {
|
|
1472
1472
|
return t >= 48 && t <= 57 ? t - 48 : t >= 65 && t <= 70 ? t - 55 : t >= 97 && t <= 102 ? t - 87 : -1;
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
1474
|
+
function Dc(t, e) {
|
|
1475
1475
|
const n = t.source.body;
|
|
1476
1476
|
switch (n.charCodeAt(e + 1)) {
|
|
1477
1477
|
case 34:
|
|
@@ -1525,7 +1525,7 @@ function $c(t, e) {
|
|
|
1525
1525
|
)}".`
|
|
1526
1526
|
);
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function $c(t, e) {
|
|
1529
1529
|
const n = t.source.body, i = n.length;
|
|
1530
1530
|
let r = t.lineStart, s = e + 3, o = s, a = "";
|
|
1531
1531
|
const u = [];
|
|
@@ -1539,7 +1539,7 @@ function jc(t, e) {
|
|
|
1539
1539
|
e,
|
|
1540
1540
|
s + 3,
|
|
1541
1541
|
// Return a string of the lines joined with U+000A.
|
|
1542
|
-
|
|
1542
|
+
_c(u).join(`
|
|
1543
1543
|
`)
|
|
1544
1544
|
);
|
|
1545
1545
|
return t.line += u.length - 1, t.lineStart = r, f;
|
|
@@ -1552,7 +1552,7 @@ function jc(t, e) {
|
|
|
1552
1552
|
a += n.slice(o, s), u.push(a), c === 13 && n.charCodeAt(s + 1) === 10 ? s += 2 : ++s, a = "", o = s, r = s;
|
|
1553
1553
|
continue;
|
|
1554
1554
|
}
|
|
1555
|
-
if (
|
|
1555
|
+
if (fi(c))
|
|
1556
1556
|
++s;
|
|
1557
1557
|
else if (kr(n, s))
|
|
1558
1558
|
s += 2;
|
|
@@ -1568,7 +1568,7 @@ function jc(t, e) {
|
|
|
1568
1568
|
}
|
|
1569
1569
|
throw $e(t.source, s, "Unterminated string.");
|
|
1570
1570
|
}
|
|
1571
|
-
function
|
|
1571
|
+
function jc(t, e) {
|
|
1572
1572
|
const n = t.source.body, i = n.length;
|
|
1573
1573
|
let r = e + 1;
|
|
1574
1574
|
for (; r < i; ) {
|
|
@@ -1586,7 +1586,7 @@ function Pc(t, e) {
|
|
|
1586
1586
|
n.slice(e, r)
|
|
1587
1587
|
);
|
|
1588
1588
|
}
|
|
1589
|
-
const
|
|
1589
|
+
const Pc = 10, ou = 2;
|
|
1590
1590
|
function G(t) {
|
|
1591
1591
|
return Dr(t, []);
|
|
1592
1592
|
}
|
|
@@ -1597,45 +1597,45 @@ function Dr(t, e) {
|
|
|
1597
1597
|
case "function":
|
|
1598
1598
|
return t.name ? `[function ${t.name}]` : "[function]";
|
|
1599
1599
|
case "object":
|
|
1600
|
-
return
|
|
1600
|
+
return Mc(t, e);
|
|
1601
1601
|
default:
|
|
1602
1602
|
return String(t);
|
|
1603
1603
|
}
|
|
1604
1604
|
}
|
|
1605
|
-
function
|
|
1605
|
+
function Mc(t, e) {
|
|
1606
1606
|
if (t === null)
|
|
1607
1607
|
return "null";
|
|
1608
1608
|
if (e.includes(t))
|
|
1609
1609
|
return "[Circular]";
|
|
1610
1610
|
const n = [...e, t];
|
|
1611
|
-
if (
|
|
1611
|
+
if (Uc(t)) {
|
|
1612
1612
|
const i = t.toJSON();
|
|
1613
1613
|
if (i !== t)
|
|
1614
1614
|
return typeof i == "string" ? i : Dr(i, n);
|
|
1615
1615
|
} else if (Array.isArray(t))
|
|
1616
|
-
return
|
|
1617
|
-
return
|
|
1616
|
+
return Bc(t, n);
|
|
1617
|
+
return Vc(t, n);
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1619
|
+
function Uc(t) {
|
|
1620
1620
|
return typeof t.toJSON == "function";
|
|
1621
1621
|
}
|
|
1622
|
-
function
|
|
1622
|
+
function Vc(t, e) {
|
|
1623
1623
|
const n = Object.entries(t);
|
|
1624
|
-
return n.length === 0 ? "{}" : e.length > ou ? "[" +
|
|
1624
|
+
return n.length === 0 ? "{}" : e.length > ou ? "[" + Gc(t) + "]" : "{ " + n.map(
|
|
1625
1625
|
([r, s]) => r + ": " + Dr(s, e)
|
|
1626
1626
|
).join(", ") + " }";
|
|
1627
1627
|
}
|
|
1628
|
-
function
|
|
1628
|
+
function Bc(t, e) {
|
|
1629
1629
|
if (t.length === 0)
|
|
1630
1630
|
return "[]";
|
|
1631
1631
|
if (e.length > ou)
|
|
1632
1632
|
return "[Array]";
|
|
1633
|
-
const n = Math.min(
|
|
1633
|
+
const n = Math.min(Pc, t.length), i = t.length - n, r = [];
|
|
1634
1634
|
for (let s = 0; s < n; ++s)
|
|
1635
1635
|
r.push(Dr(t[s], e));
|
|
1636
1636
|
return i === 1 ? r.push("... 1 more item") : i > 1 && r.push(`... ${i} more items`), "[" + r.join(", ") + "]";
|
|
1637
1637
|
}
|
|
1638
|
-
function
|
|
1638
|
+
function Gc(t) {
|
|
1639
1639
|
const e = Object.prototype.toString.call(t).replace(/^\[object /, "").replace(/]$/, "");
|
|
1640
1640
|
if (e === "Object" && typeof t.constructor == "function") {
|
|
1641
1641
|
const n = t.constructor.name;
|
|
@@ -1644,11 +1644,11 @@ function qc(t) {
|
|
|
1644
1644
|
}
|
|
1645
1645
|
return e;
|
|
1646
1646
|
}
|
|
1647
|
-
const
|
|
1647
|
+
const qc = globalThis.process && // eslint-disable-next-line no-undef
|
|
1648
1648
|
process.env.NODE_ENV === "production", qt = (
|
|
1649
1649
|
/* c8 ignore next 6 */
|
|
1650
1650
|
// FIXME: https://github.com/graphql/graphql-js/issues/2317
|
|
1651
|
-
|
|
1651
|
+
qc ? function(e, n) {
|
|
1652
1652
|
return e instanceof n;
|
|
1653
1653
|
} : function(e, n) {
|
|
1654
1654
|
if (e instanceof n)
|
|
@@ -1695,16 +1695,16 @@ class au {
|
|
|
1695
1695
|
return "Source";
|
|
1696
1696
|
}
|
|
1697
1697
|
}
|
|
1698
|
-
function
|
|
1698
|
+
function zc(t) {
|
|
1699
1699
|
return qt(t, au);
|
|
1700
1700
|
}
|
|
1701
|
-
function
|
|
1702
|
-
return new
|
|
1701
|
+
function Qc(t, e) {
|
|
1702
|
+
return new Wc(t, e).parseDocument();
|
|
1703
1703
|
}
|
|
1704
|
-
class
|
|
1704
|
+
class Wc {
|
|
1705
1705
|
constructor(e, n = {}) {
|
|
1706
|
-
const i =
|
|
1707
|
-
this._lexer = new
|
|
1706
|
+
const i = zc(e) ? e : new au(e);
|
|
1707
|
+
this._lexer = new Nc(i), this._options = n, this._tokenCounter = 0;
|
|
1708
1708
|
}
|
|
1709
1709
|
/**
|
|
1710
1710
|
* Converts a name lex token into a name parse node.
|
|
@@ -2671,7 +2671,7 @@ class Hc {
|
|
|
2671
2671
|
* given parsed object.
|
|
2672
2672
|
*/
|
|
2673
2673
|
node(e, n) {
|
|
2674
|
-
return this._options.noLocation !== !0 && (n.loc = new
|
|
2674
|
+
return this._options.noLocation !== !0 && (n.loc = new Tc(
|
|
2675
2675
|
e,
|
|
2676
2676
|
this._lexer.lastToken,
|
|
2677
2677
|
this._lexer.source
|
|
@@ -2807,9 +2807,9 @@ function Ji(t) {
|
|
|
2807
2807
|
return uu(t.kind) + (e != null ? ` "${e}"` : "");
|
|
2808
2808
|
}
|
|
2809
2809
|
function uu(t) {
|
|
2810
|
-
return
|
|
2810
|
+
return Ac(t) ? `"${t}"` : t;
|
|
2811
2811
|
}
|
|
2812
|
-
const
|
|
2812
|
+
const Hc = 5;
|
|
2813
2813
|
function yn(t, e) {
|
|
2814
2814
|
const [n, i] = e ? [t, e] : [void 0, t];
|
|
2815
2815
|
let r = " Did you mean ";
|
|
@@ -2823,7 +2823,7 @@ function yn(t, e) {
|
|
|
2823
2823
|
case 2:
|
|
2824
2824
|
return r + s[0] + " or " + s[1] + "?";
|
|
2825
2825
|
}
|
|
2826
|
-
const o = s.slice(0,
|
|
2826
|
+
const o = s.slice(0, Hc), a = o.pop();
|
|
2827
2827
|
return r + o.join(", ") + ", or " + a + "?";
|
|
2828
2828
|
}
|
|
2829
2829
|
function $o(t) {
|
|
@@ -2874,12 +2874,12 @@ function Ui(t, e) {
|
|
|
2874
2874
|
}
|
|
2875
2875
|
return t.length - e.length;
|
|
2876
2876
|
}
|
|
2877
|
-
const gs = 48,
|
|
2877
|
+
const gs = 48, Yc = 57;
|
|
2878
2878
|
function Ki(t) {
|
|
2879
|
-
return !isNaN(t) && gs <= t && t <=
|
|
2879
|
+
return !isNaN(t) && gs <= t && t <= Yc;
|
|
2880
2880
|
}
|
|
2881
2881
|
function $n(t, e) {
|
|
2882
|
-
const n = /* @__PURE__ */ Object.create(null), i = new
|
|
2882
|
+
const n = /* @__PURE__ */ Object.create(null), i = new Jc(t), r = Math.floor(t.length * 0.4) + 1;
|
|
2883
2883
|
for (const s of e) {
|
|
2884
2884
|
const o = i.measure(s, r);
|
|
2885
2885
|
o !== void 0 && (n[s] = o);
|
|
@@ -2889,7 +2889,7 @@ function $n(t, e) {
|
|
|
2889
2889
|
return a !== 0 ? a : Ui(s, o);
|
|
2890
2890
|
});
|
|
2891
2891
|
}
|
|
2892
|
-
class
|
|
2892
|
+
class Jc {
|
|
2893
2893
|
constructor(e) {
|
|
2894
2894
|
this._input = e, this._inputLowerCase = e.toLowerCase(), this._inputArray = jo(this._inputLowerCase), this._rows = [
|
|
2895
2895
|
new Array(e.length + 1).fill(0),
|
|
@@ -2956,14 +2956,14 @@ function yt(t) {
|
|
|
2956
2956
|
e[n] = i;
|
|
2957
2957
|
return e;
|
|
2958
2958
|
}
|
|
2959
|
-
function
|
|
2960
|
-
return `"${t.replace(
|
|
2959
|
+
function Kc(t) {
|
|
2960
|
+
return `"${t.replace(Xc, Zc)}"`;
|
|
2961
2961
|
}
|
|
2962
|
-
const
|
|
2963
|
-
function
|
|
2964
|
-
return
|
|
2962
|
+
const Xc = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
|
|
2963
|
+
function Zc(t) {
|
|
2964
|
+
return ef[t.charCodeAt(0)];
|
|
2965
2965
|
}
|
|
2966
|
-
const
|
|
2966
|
+
const ef = [
|
|
2967
2967
|
"\\u0000",
|
|
2968
2968
|
"\\u0001",
|
|
2969
2969
|
"\\u0002",
|
|
@@ -3129,7 +3129,7 @@ const tf = [
|
|
|
3129
3129
|
"\\u009D",
|
|
3130
3130
|
"\\u009E",
|
|
3131
3131
|
"\\u009F"
|
|
3132
|
-
],
|
|
3132
|
+
], Ti = Object.freeze({});
|
|
3133
3133
|
function Gs(t, e, n = tu) {
|
|
3134
3134
|
const i = /* @__PURE__ */ new Map();
|
|
3135
3135
|
for (const y of Object.values(I))
|
|
@@ -3167,7 +3167,7 @@ function Gs(t, e, n = tu) {
|
|
|
3167
3167
|
var w, R;
|
|
3168
3168
|
hs(c) || ae(!1, `Invalid AST Node: ${G(c)}.`);
|
|
3169
3169
|
const O = y ? (w = i.get(c.kind)) === null || w === void 0 ? void 0 : w.leave : (R = i.get(c.kind)) === null || R === void 0 ? void 0 : R.enter;
|
|
3170
|
-
if (A = O == null ? void 0 : O.call(e, c, f, g, p, v), A ===
|
|
3170
|
+
if (A = O == null ? void 0 : O.call(e, c, f, g, p, v), A === Ti)
|
|
3171
3171
|
break;
|
|
3172
3172
|
if (A === !1) {
|
|
3173
3173
|
if (!y) {
|
|
@@ -3197,7 +3197,7 @@ function Gs(t, e, n = tu) {
|
|
|
3197
3197
|
} while (r !== void 0);
|
|
3198
3198
|
return u.length !== 0 ? u[u.length - 1][1] : t;
|
|
3199
3199
|
}
|
|
3200
|
-
function
|
|
3200
|
+
function tf(t) {
|
|
3201
3201
|
const e = new Array(t.length).fill(null), n = /* @__PURE__ */ Object.create(null);
|
|
3202
3202
|
for (const i of Object.values(I)) {
|
|
3203
3203
|
let r = !1;
|
|
@@ -3217,8 +3217,8 @@ function nf(t) {
|
|
|
3217
3217
|
const p = (f = s[g]) === null || f === void 0 ? void 0 : f.apply(t[g], u);
|
|
3218
3218
|
if (p === !1)
|
|
3219
3219
|
e[g] = c;
|
|
3220
|
-
else if (p ===
|
|
3221
|
-
e[g] =
|
|
3220
|
+
else if (p === Ti)
|
|
3221
|
+
e[g] = Ti;
|
|
3222
3222
|
else if (p !== void 0)
|
|
3223
3223
|
return p;
|
|
3224
3224
|
}
|
|
@@ -3229,8 +3229,8 @@ function nf(t) {
|
|
|
3229
3229
|
if (e[g] === null) {
|
|
3230
3230
|
var f;
|
|
3231
3231
|
const p = (f = o[g]) === null || f === void 0 ? void 0 : f.apply(t[g], u);
|
|
3232
|
-
if (p ===
|
|
3233
|
-
e[g] =
|
|
3232
|
+
if (p === Ti)
|
|
3233
|
+
e[g] = Ti;
|
|
3234
3234
|
else if (p !== void 0 && p !== !1)
|
|
3235
3235
|
return p;
|
|
3236
3236
|
} else e[g] === c && (e[g] = null);
|
|
@@ -3251,9 +3251,9 @@ function Sr(t, e) {
|
|
|
3251
3251
|
};
|
|
3252
3252
|
}
|
|
3253
3253
|
function be(t) {
|
|
3254
|
-
return Gs(t,
|
|
3254
|
+
return Gs(t, rf);
|
|
3255
3255
|
}
|
|
3256
|
-
const
|
|
3256
|
+
const nf = 80, rf = {
|
|
3257
3257
|
Name: {
|
|
3258
3258
|
leave: (t) => t.value
|
|
3259
3259
|
},
|
|
@@ -3289,7 +3289,7 @@ const rf = 80, sf = {
|
|
|
3289
3289
|
leave({ alias: t, name: e, arguments: n, directives: i, selectionSet: r }) {
|
|
3290
3290
|
const s = se("", t, ": ") + e;
|
|
3291
3291
|
let o = s + se("(", Y(n, ", "), ")");
|
|
3292
|
-
return o.length >
|
|
3292
|
+
return o.length > nf && (o = s + se(`(
|
|
3293
3293
|
`, dr(Y(n, `
|
|
3294
3294
|
`)), `
|
|
3295
3295
|
)`)), Y([o, Y(i, " "), r], " ");
|
|
@@ -3327,7 +3327,7 @@ const rf = 80, sf = {
|
|
|
3327
3327
|
leave: ({ value: t }) => t
|
|
3328
3328
|
},
|
|
3329
3329
|
StringValue: {
|
|
3330
|
-
leave: ({ value: t, block: e }) => e ?
|
|
3330
|
+
leave: ({ value: t, block: e }) => e ? Oc(t) : Kc(t)
|
|
3331
3331
|
},
|
|
3332
3332
|
BooleanValue: {
|
|
3333
3333
|
leave: ({ value: t }) => t ? "true" : "false"
|
|
@@ -3552,7 +3552,7 @@ function zt(t) {
|
|
|
3552
3552
|
);
|
|
3553
3553
|
return t;
|
|
3554
3554
|
}
|
|
3555
|
-
function
|
|
3555
|
+
function sf(t) {
|
|
3556
3556
|
if (t === "true" || t === "false" || t === "null")
|
|
3557
3557
|
throw new j(`Enum values cannot be named: ${t}`);
|
|
3558
3558
|
return zt(t);
|
|
@@ -3576,7 +3576,7 @@ function Gt(t) {
|
|
|
3576
3576
|
return qt(t, ai);
|
|
3577
3577
|
}
|
|
3578
3578
|
function ze(t) {
|
|
3579
|
-
return qt(t,
|
|
3579
|
+
return qt(t, Li);
|
|
3580
3580
|
}
|
|
3581
3581
|
function Pe(t) {
|
|
3582
3582
|
return qt(t, Ue);
|
|
@@ -3587,8 +3587,8 @@ function re(t) {
|
|
|
3587
3587
|
function Pt(t) {
|
|
3588
3588
|
return jn(t) || Gt(t) || ze(t) || zs(t) && Pt(t.ofType);
|
|
3589
3589
|
}
|
|
3590
|
-
function
|
|
3591
|
-
return jn(t) || pe(t) || Ee(t) || Bt(t) || Gt(t) || zs(t) &&
|
|
3590
|
+
function Ri(t) {
|
|
3591
|
+
return jn(t) || pe(t) || Ee(t) || Bt(t) || Gt(t) || zs(t) && Ri(t.ofType);
|
|
3592
3592
|
}
|
|
3593
3593
|
function bn(t) {
|
|
3594
3594
|
return jn(t) || Gt(t);
|
|
@@ -3615,7 +3615,7 @@ class Ue {
|
|
|
3615
3615
|
}
|
|
3616
3616
|
class ne {
|
|
3617
3617
|
constructor(e) {
|
|
3618
|
-
|
|
3618
|
+
of(e) || ae(
|
|
3619
3619
|
!1,
|
|
3620
3620
|
`Expected ${G(e)} to be a GraphQL nullable type.`
|
|
3621
3621
|
), this.ofType = e;
|
|
@@ -3633,14 +3633,14 @@ class ne {
|
|
|
3633
3633
|
function zs(t) {
|
|
3634
3634
|
return Pe(t) || re(t);
|
|
3635
3635
|
}
|
|
3636
|
-
function
|
|
3636
|
+
function of(t) {
|
|
3637
3637
|
return qs(t) && !re(t);
|
|
3638
3638
|
}
|
|
3639
3639
|
function lu(t) {
|
|
3640
3640
|
if (t)
|
|
3641
3641
|
return re(t) ? t.ofType : t;
|
|
3642
3642
|
}
|
|
3643
|
-
function
|
|
3643
|
+
function af(t) {
|
|
3644
3644
|
return jn(t) || pe(t) || Ee(t) || Bt(t) || Gt(t) || ze(t);
|
|
3645
3645
|
}
|
|
3646
3646
|
function Mt(t) {
|
|
@@ -3854,7 +3854,7 @@ class In {
|
|
|
3854
3854
|
class zn {
|
|
3855
3855
|
constructor(e) {
|
|
3856
3856
|
var n;
|
|
3857
|
-
this.name = zt(e.name), this.description = e.description, this.resolveType = e.resolveType, this.extensions = yt(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = (n = e.extensionASTNodes) !== null && n !== void 0 ? n : [], this._types =
|
|
3857
|
+
this.name = zt(e.name), this.description = e.description, this.resolveType = e.resolveType, this.extensions = yt(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = (n = e.extensionASTNodes) !== null && n !== void 0 ? n : [], this._types = uf.bind(void 0, e), e.resolveType == null || typeof e.resolveType == "function" || ae(
|
|
3858
3858
|
!1,
|
|
3859
3859
|
`${this.name} must provide "resolveType" as a function, but got: ${G(e.resolveType)}.`
|
|
3860
3860
|
);
|
|
@@ -3883,7 +3883,7 @@ class zn {
|
|
|
3883
3883
|
return this.toString();
|
|
3884
3884
|
}
|
|
3885
3885
|
}
|
|
3886
|
-
function
|
|
3886
|
+
function uf(t) {
|
|
3887
3887
|
const e = cu(t.types);
|
|
3888
3888
|
return Array.isArray(e) || ae(
|
|
3889
3889
|
!1,
|
|
@@ -3992,7 +3992,7 @@ function Mo(t, e) {
|
|
|
3992
3992
|
!1,
|
|
3993
3993
|
`${t}.${n} must refer to an object with a "value" key representing an internal value but got: ${G(i)}.`
|
|
3994
3994
|
), {
|
|
3995
|
-
name:
|
|
3995
|
+
name: sf(n),
|
|
3996
3996
|
description: i.description,
|
|
3997
3997
|
value: i.value !== void 0 ? i.value : n,
|
|
3998
3998
|
deprecationReason: i.deprecationReason,
|
|
@@ -4000,10 +4000,10 @@ function Mo(t, e) {
|
|
|
4000
4000
|
astNode: i.astNode
|
|
4001
4001
|
}));
|
|
4002
4002
|
}
|
|
4003
|
-
class
|
|
4003
|
+
class Li {
|
|
4004
4004
|
constructor(e) {
|
|
4005
4005
|
var n, i;
|
|
4006
|
-
this.name = zt(e.name), this.description = e.description, this.extensions = yt(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 =
|
|
4006
|
+
this.name = zt(e.name), this.description = e.description, this.extensions = yt(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 = lf.bind(void 0, e);
|
|
4007
4007
|
}
|
|
4008
4008
|
get [Symbol.toStringTag]() {
|
|
4009
4009
|
return "GraphQLInputObjectType";
|
|
@@ -4037,7 +4037,7 @@ class Ri {
|
|
|
4037
4037
|
return this.toString();
|
|
4038
4038
|
}
|
|
4039
4039
|
}
|
|
4040
|
-
function
|
|
4040
|
+
function lf(t) {
|
|
4041
4041
|
const e = fu(t.fields);
|
|
4042
4042
|
return Yn(e) || ae(
|
|
4043
4043
|
!1,
|
|
@@ -4235,7 +4235,7 @@ const ts = 2147483647, ns = -2147483648, Bi = new Vt({
|
|
|
4235
4235
|
);
|
|
4236
4236
|
return t.value;
|
|
4237
4237
|
}
|
|
4238
|
-
}),
|
|
4238
|
+
}), cf = Object.freeze([
|
|
4239
4239
|
ue,
|
|
4240
4240
|
Bi,
|
|
4241
4241
|
Pr,
|
|
@@ -4316,7 +4316,7 @@ const Qs = new rn({
|
|
|
4316
4316
|
description: "Skipped when true."
|
|
4317
4317
|
}
|
|
4318
4318
|
}
|
|
4319
|
-
}),
|
|
4319
|
+
}), ff = "No longer supported", wu = new rn({
|
|
4320
4320
|
name: "deprecated",
|
|
4321
4321
|
description: "Marks an element of a GraphQL schema as no longer supported.",
|
|
4322
4322
|
locations: [
|
|
@@ -4329,10 +4329,10 @@ const Qs = new rn({
|
|
|
4329
4329
|
reason: {
|
|
4330
4330
|
type: ue,
|
|
4331
4331
|
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/).",
|
|
4332
|
-
defaultValue:
|
|
4332
|
+
defaultValue: ff
|
|
4333
4333
|
}
|
|
4334
4334
|
}
|
|
4335
|
-
}),
|
|
4335
|
+
}), df = new rn({
|
|
4336
4336
|
name: "specifiedBy",
|
|
4337
4337
|
description: "Exposes a URL that specifies the behavior of this scalar.",
|
|
4338
4338
|
locations: [K.SCALAR],
|
|
@@ -4342,7 +4342,7 @@ const Qs = new rn({
|
|
|
4342
4342
|
description: "The URL that specifies the behavior of this scalar."
|
|
4343
4343
|
}
|
|
4344
4344
|
}
|
|
4345
|
-
}),
|
|
4345
|
+
}), hf = new rn({
|
|
4346
4346
|
name: "oneOf",
|
|
4347
4347
|
description: "Indicates exactly one field must be supplied and this field must not be `null`.",
|
|
4348
4348
|
locations: [K.INPUT_OBJECT],
|
|
@@ -4351,15 +4351,15 @@ const Qs = new rn({
|
|
|
4351
4351
|
Qs,
|
|
4352
4352
|
Ws,
|
|
4353
4353
|
wu,
|
|
4354
|
-
|
|
4355
|
-
|
|
4354
|
+
df,
|
|
4355
|
+
hf
|
|
4356
4356
|
]);
|
|
4357
4357
|
function Eu(t) {
|
|
4358
4358
|
return typeof t == "object" && typeof (t == null ? void 0 : t[Symbol.iterator]) == "function";
|
|
4359
4359
|
}
|
|
4360
|
-
function
|
|
4360
|
+
function Si(t, e) {
|
|
4361
4361
|
if (re(e)) {
|
|
4362
|
-
const n =
|
|
4362
|
+
const n = Si(t, e.ofType);
|
|
4363
4363
|
return (n == null ? void 0 : n.kind) === I.NULL ? null : n;
|
|
4364
4364
|
}
|
|
4365
4365
|
if (t === null)
|
|
@@ -4373,7 +4373,7 @@ function Ti(t, e) {
|
|
|
4373
4373
|
if (Eu(t)) {
|
|
4374
4374
|
const i = [];
|
|
4375
4375
|
for (const r of t) {
|
|
4376
|
-
const s =
|
|
4376
|
+
const s = Si(r, n);
|
|
4377
4377
|
s != null && i.push(s);
|
|
4378
4378
|
}
|
|
4379
4379
|
return {
|
|
@@ -4381,14 +4381,14 @@ function Ti(t, e) {
|
|
|
4381
4381
|
values: i
|
|
4382
4382
|
};
|
|
4383
4383
|
}
|
|
4384
|
-
return
|
|
4384
|
+
return Si(t, n);
|
|
4385
4385
|
}
|
|
4386
4386
|
if (ze(e)) {
|
|
4387
4387
|
if (!Jt(t))
|
|
4388
4388
|
return null;
|
|
4389
4389
|
const n = [];
|
|
4390
4390
|
for (const i of Object.values(e.getFields())) {
|
|
4391
|
-
const r =
|
|
4391
|
+
const r = Si(t[i.name], i.type);
|
|
4392
4392
|
r && n.push({
|
|
4393
4393
|
kind: I.OBJECT_FIELD,
|
|
4394
4394
|
name: {
|
|
@@ -4766,7 +4766,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
4766
4766
|
type: ue,
|
|
4767
4767
|
description: "A GraphQL-formatted string representing the default value for this input value.",
|
|
4768
4768
|
resolve(t) {
|
|
4769
|
-
const { type: e, defaultValue: n } = t, i =
|
|
4769
|
+
const { type: e, defaultValue: n } = t, i = Si(n, e);
|
|
4770
4770
|
return i ? be(i) : null;
|
|
4771
4771
|
}
|
|
4772
4772
|
},
|
|
@@ -4895,7 +4895,7 @@ function Nu(t) {
|
|
|
4895
4895
|
function Au(t) {
|
|
4896
4896
|
return qt(t, Ys);
|
|
4897
4897
|
}
|
|
4898
|
-
function
|
|
4898
|
+
function pf(t) {
|
|
4899
4899
|
if (!Au(t))
|
|
4900
4900
|
throw new Error(`Expected ${G(t)} to be a GraphQL schema.`);
|
|
4901
4901
|
return t;
|
|
@@ -5049,22 +5049,22 @@ function jt(t, e) {
|
|
|
5049
5049
|
}
|
|
5050
5050
|
return e;
|
|
5051
5051
|
}
|
|
5052
|
-
function
|
|
5053
|
-
if (
|
|
5052
|
+
function gf(t) {
|
|
5053
|
+
if (pf(t), t.__validationErrors)
|
|
5054
5054
|
return t.__validationErrors;
|
|
5055
|
-
const e = new
|
|
5056
|
-
|
|
5055
|
+
const e = new mf(t);
|
|
5056
|
+
yf(e), bf(e), wf(e);
|
|
5057
5057
|
const n = e.getErrors();
|
|
5058
5058
|
return t.__validationErrors = n, n;
|
|
5059
5059
|
}
|
|
5060
5060
|
function xu(t) {
|
|
5061
|
-
const e =
|
|
5061
|
+
const e = gf(t);
|
|
5062
5062
|
if (e.length !== 0)
|
|
5063
5063
|
throw new Error(e.map((n) => n.message).join(`
|
|
5064
5064
|
|
|
5065
5065
|
`));
|
|
5066
5066
|
}
|
|
5067
|
-
class
|
|
5067
|
+
class mf {
|
|
5068
5068
|
constructor(e) {
|
|
5069
5069
|
this._errors = [], this.schema = e;
|
|
5070
5070
|
}
|
|
@@ -5080,7 +5080,7 @@ class yf {
|
|
|
5080
5080
|
return this._errors;
|
|
5081
5081
|
}
|
|
5082
5082
|
}
|
|
5083
|
-
function
|
|
5083
|
+
function yf(t) {
|
|
5084
5084
|
const e = t.schema, n = e.getQueryType();
|
|
5085
5085
|
if (!n)
|
|
5086
5086
|
t.reportError("Query root type must be provided.", e.astNode);
|
|
@@ -5132,7 +5132,7 @@ function is(t, e) {
|
|
|
5132
5132
|
}
|
|
5133
5133
|
).find((i) => i.operation === e)) === null || n === void 0 ? void 0 : n.type;
|
|
5134
5134
|
}
|
|
5135
|
-
function
|
|
5135
|
+
function bf(t) {
|
|
5136
5136
|
for (const n of t.schema.getDirectives()) {
|
|
5137
5137
|
if (!bu(n)) {
|
|
5138
5138
|
t.reportError(
|
|
@@ -5164,17 +5164,17 @@ function Dn(t, e) {
|
|
|
5164
5164
|
e.astNode
|
|
5165
5165
|
);
|
|
5166
5166
|
}
|
|
5167
|
-
function
|
|
5168
|
-
const e =
|
|
5167
|
+
function wf(t) {
|
|
5168
|
+
const e = Of(t), n = t.schema.getTypeMap();
|
|
5169
5169
|
for (const i of Object.values(n)) {
|
|
5170
|
-
if (!
|
|
5170
|
+
if (!af(i)) {
|
|
5171
5171
|
t.reportError(
|
|
5172
5172
|
`Expected GraphQL named type but got: ${G(i)}.`,
|
|
5173
5173
|
i.astNode
|
|
5174
5174
|
);
|
|
5175
5175
|
continue;
|
|
5176
5176
|
}
|
|
5177
|
-
Nu(i) || Dn(t, i), pe(i) || Ee(i) ? (Bo(t, i), Go(t, i)) : Bt(i) ?
|
|
5177
|
+
Nu(i) || Dn(t, i), pe(i) || Ee(i) ? (Bo(t, i), Go(t, i)) : Bt(i) ? Tf(t, i) : Gt(i) ? Sf(t, i) : ze(i) && (_f(t, i), e(i));
|
|
5178
5178
|
}
|
|
5179
5179
|
}
|
|
5180
5180
|
function Bo(t, e) {
|
|
@@ -5184,7 +5184,7 @@ function Bo(t, e) {
|
|
|
5184
5184
|
...e.extensionASTNodes
|
|
5185
5185
|
]);
|
|
5186
5186
|
for (const o of n) {
|
|
5187
|
-
if (Dn(t, o), !
|
|
5187
|
+
if (Dn(t, o), !Ri(o.type)) {
|
|
5188
5188
|
var i;
|
|
5189
5189
|
t.reportError(
|
|
5190
5190
|
`The type of ${e.name}.${o.name} must be Output Type but got: ${G(o.type)}.`,
|
|
@@ -5219,28 +5219,28 @@ function Go(t, e) {
|
|
|
5219
5219
|
if (!Ee(i)) {
|
|
5220
5220
|
t.reportError(
|
|
5221
5221
|
`Type ${G(e)} must only implement Interface types, it cannot implement ${G(i)}.`,
|
|
5222
|
-
|
|
5222
|
+
Ci(e, i)
|
|
5223
5223
|
);
|
|
5224
5224
|
continue;
|
|
5225
5225
|
}
|
|
5226
5226
|
if (e === i) {
|
|
5227
5227
|
t.reportError(
|
|
5228
5228
|
`Type ${e.name} cannot implement itself because it would create a circular reference.`,
|
|
5229
|
-
|
|
5229
|
+
Ci(e, i)
|
|
5230
5230
|
);
|
|
5231
5231
|
continue;
|
|
5232
5232
|
}
|
|
5233
5233
|
if (n[i.name]) {
|
|
5234
5234
|
t.reportError(
|
|
5235
5235
|
`Type ${e.name} can only implement ${i.name} once.`,
|
|
5236
|
-
|
|
5236
|
+
Ci(e, i)
|
|
5237
5237
|
);
|
|
5238
5238
|
continue;
|
|
5239
5239
|
}
|
|
5240
|
-
n[i.name] = !0,
|
|
5240
|
+
n[i.name] = !0, vf(t, e, i), Ef(t, e, i);
|
|
5241
5241
|
}
|
|
5242
5242
|
}
|
|
5243
|
-
function
|
|
5243
|
+
function Ef(t, e, n) {
|
|
5244
5244
|
const i = e.getFields();
|
|
5245
5245
|
for (const u of Object.values(n.getFields())) {
|
|
5246
5246
|
const c = u.name, f = i[c];
|
|
@@ -5290,18 +5290,18 @@ function vf(t, e, n) {
|
|
|
5290
5290
|
}
|
|
5291
5291
|
}
|
|
5292
5292
|
}
|
|
5293
|
-
function
|
|
5293
|
+
function vf(t, e, n) {
|
|
5294
5294
|
const i = e.getInterfaces();
|
|
5295
5295
|
for (const r of n.getInterfaces())
|
|
5296
5296
|
i.includes(r) || t.reportError(
|
|
5297
5297
|
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}.`,
|
|
5298
5298
|
[
|
|
5299
|
-
...
|
|
5300
|
-
...
|
|
5299
|
+
...Ci(n, r),
|
|
5300
|
+
...Ci(e, n)
|
|
5301
5301
|
]
|
|
5302
5302
|
);
|
|
5303
5303
|
}
|
|
5304
|
-
function
|
|
5304
|
+
function Tf(t, e) {
|
|
5305
5305
|
const n = e.getTypes();
|
|
5306
5306
|
n.length === 0 && t.reportError(
|
|
5307
5307
|
`Union type ${e.name} must define one or more member types.`,
|
|
@@ -5322,7 +5322,7 @@ function Sf(t, e) {
|
|
|
5322
5322
|
);
|
|
5323
5323
|
}
|
|
5324
5324
|
}
|
|
5325
|
-
function
|
|
5325
|
+
function Sf(t, e) {
|
|
5326
5326
|
const n = e.getValues();
|
|
5327
5327
|
n.length === 0 && t.reportError(
|
|
5328
5328
|
`Enum type ${e.name} must define one or more values.`,
|
|
@@ -5331,7 +5331,7 @@ function _f(t, e) {
|
|
|
5331
5331
|
for (const i of n)
|
|
5332
5332
|
Dn(t, i);
|
|
5333
5333
|
}
|
|
5334
|
-
function
|
|
5334
|
+
function _f(t, e) {
|
|
5335
5335
|
const n = Object.values(e.getFields());
|
|
5336
5336
|
n.length === 0 && t.reportError(
|
|
5337
5337
|
`Input Object type ${e.name} must define one or more fields.`,
|
|
@@ -5355,10 +5355,10 @@ function If(t, e) {
|
|
|
5355
5355
|
]
|
|
5356
5356
|
);
|
|
5357
5357
|
}
|
|
5358
|
-
e.isOneOf &&
|
|
5358
|
+
e.isOneOf && If(e, s, t);
|
|
5359
5359
|
}
|
|
5360
5360
|
}
|
|
5361
|
-
function
|
|
5361
|
+
function If(t, e, n) {
|
|
5362
5362
|
if (re(e.type)) {
|
|
5363
5363
|
var i;
|
|
5364
5364
|
n.reportError(
|
|
@@ -5371,7 +5371,7 @@ function Of(t, e, n) {
|
|
|
5371
5371
|
e.astNode
|
|
5372
5372
|
);
|
|
5373
5373
|
}
|
|
5374
|
-
function
|
|
5374
|
+
function Of(t) {
|
|
5375
5375
|
const e = /* @__PURE__ */ Object.create(null), n = [], i = /* @__PURE__ */ Object.create(null);
|
|
5376
5376
|
return r;
|
|
5377
5377
|
function r(s) {
|
|
@@ -5396,7 +5396,7 @@ function Nf(t) {
|
|
|
5396
5396
|
i[s.name] = void 0;
|
|
5397
5397
|
}
|
|
5398
5398
|
}
|
|
5399
|
-
function
|
|
5399
|
+
function Ci(t, e) {
|
|
5400
5400
|
const { astNode: n, extensionASTNodes: i } = t;
|
|
5401
5401
|
return (n != null ? [n, ...i] : i).flatMap((s) => {
|
|
5402
5402
|
var o;
|
|
@@ -5438,7 +5438,7 @@ function it(t, e) {
|
|
|
5438
5438
|
}
|
|
5439
5439
|
class Fu {
|
|
5440
5440
|
constructor(e, n, i) {
|
|
5441
|
-
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 ??
|
|
5441
|
+
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 ?? Nf, n && (Pt(n) && this._inputTypeStack.push(n), wn(n) && this._parentTypeStack.push(n), Ri(n) && this._typeStack.push(n));
|
|
5442
5442
|
}
|
|
5443
5443
|
get [Symbol.toStringTag]() {
|
|
5444
5444
|
return "TypeInfo";
|
|
@@ -5489,7 +5489,7 @@ class Fu {
|
|
|
5489
5489
|
case I.FIELD: {
|
|
5490
5490
|
const r = this.getParentType();
|
|
5491
5491
|
let s, o;
|
|
5492
|
-
r && (s = this._getFieldDef(n, r, e), s && (o = s.type)), this._fieldDefStack.push(s), this._typeStack.push(
|
|
5492
|
+
r && (s = this._getFieldDef(n, r, e), s && (o = s.type)), this._fieldDefStack.push(s), this._typeStack.push(Ri(o) ? o : void 0);
|
|
5493
5493
|
break;
|
|
5494
5494
|
}
|
|
5495
5495
|
case I.DIRECTIVE:
|
|
@@ -5503,7 +5503,7 @@ class Fu {
|
|
|
5503
5503
|
case I.INLINE_FRAGMENT:
|
|
5504
5504
|
case I.FRAGMENT_DEFINITION: {
|
|
5505
5505
|
const r = e.typeCondition, s = r ? it(n, r) : Mt(this.getType());
|
|
5506
|
-
this._typeStack.push(
|
|
5506
|
+
this._typeStack.push(Ri(s) ? s : void 0);
|
|
5507
5507
|
break;
|
|
5508
5508
|
}
|
|
5509
5509
|
case I.VARIABLE_DEFINITION: {
|
|
@@ -5577,7 +5577,7 @@ class Fu {
|
|
|
5577
5577
|
}
|
|
5578
5578
|
}
|
|
5579
5579
|
}
|
|
5580
|
-
function
|
|
5580
|
+
function Nf(t, e, n) {
|
|
5581
5581
|
const i = n.name.value;
|
|
5582
5582
|
if (i === _r.name && t.getQueryType() === e)
|
|
5583
5583
|
return _r;
|
|
@@ -5606,26 +5606,26 @@ function Ru(t, e) {
|
|
|
5606
5606
|
}
|
|
5607
5607
|
};
|
|
5608
5608
|
}
|
|
5609
|
-
function
|
|
5609
|
+
function Af(t) {
|
|
5610
5610
|
return t.kind === I.OPERATION_DEFINITION || t.kind === I.FRAGMENT_DEFINITION;
|
|
5611
5611
|
}
|
|
5612
|
-
function
|
|
5612
|
+
function xf(t) {
|
|
5613
5613
|
return t.kind === I.SCHEMA_DEFINITION || Ks(t) || t.kind === I.DIRECTIVE_DEFINITION;
|
|
5614
5614
|
}
|
|
5615
5615
|
function Ks(t) {
|
|
5616
5616
|
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;
|
|
5617
5617
|
}
|
|
5618
|
-
function
|
|
5618
|
+
function Ff(t) {
|
|
5619
5619
|
return t.kind === I.SCHEMA_EXTENSION || Lu(t);
|
|
5620
5620
|
}
|
|
5621
5621
|
function Lu(t) {
|
|
5622
5622
|
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;
|
|
5623
5623
|
}
|
|
5624
|
-
function
|
|
5624
|
+
function Rf(t) {
|
|
5625
5625
|
return {
|
|
5626
5626
|
Document(e) {
|
|
5627
5627
|
for (const n of e.definitions)
|
|
5628
|
-
if (!
|
|
5628
|
+
if (!Af(n)) {
|
|
5629
5629
|
const i = n.kind === I.SCHEMA_DEFINITION || n.kind === I.SCHEMA_EXTENSION ? "schema" : '"' + n.name.value + '"';
|
|
5630
5630
|
t.reportError(
|
|
5631
5631
|
new j(`The ${i} definition is not executable.`, {
|
|
@@ -5637,7 +5637,7 @@ function Lf(t) {
|
|
|
5637
5637
|
}
|
|
5638
5638
|
};
|
|
5639
5639
|
}
|
|
5640
|
-
function
|
|
5640
|
+
function Lf(t) {
|
|
5641
5641
|
return {
|
|
5642
5642
|
Field(e) {
|
|
5643
5643
|
const n = t.getParentType();
|
|
@@ -5645,9 +5645,9 @@ function Cf(t) {
|
|
|
5645
5645
|
const r = t.getSchema(), s = e.name.value;
|
|
5646
5646
|
let o = yn(
|
|
5647
5647
|
"to use an inline fragment on",
|
|
5648
|
-
|
|
5648
|
+
Cf(r, n, s)
|
|
5649
5649
|
);
|
|
5650
|
-
o === "" && (o = yn(
|
|
5650
|
+
o === "" && (o = yn(kf(n, s))), t.reportError(
|
|
5651
5651
|
new j(
|
|
5652
5652
|
`Cannot query field "${s}" on type "${n.name}".` + o,
|
|
5653
5653
|
{
|
|
@@ -5659,7 +5659,7 @@ function Cf(t) {
|
|
|
5659
5659
|
}
|
|
5660
5660
|
};
|
|
5661
5661
|
}
|
|
5662
|
-
function
|
|
5662
|
+
function Cf(t, e, n) {
|
|
5663
5663
|
if (!nn(e))
|
|
5664
5664
|
return [];
|
|
5665
5665
|
const i = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ Object.create(null);
|
|
@@ -5676,14 +5676,14 @@ function kf(t, e, n) {
|
|
|
5676
5676
|
return u !== 0 ? u : Ee(o) && t.isSubType(o, a) ? -1 : Ee(a) && t.isSubType(a, o) ? 1 : Ui(o.name, a.name);
|
|
5677
5677
|
}).map((o) => o.name);
|
|
5678
5678
|
}
|
|
5679
|
-
function
|
|
5679
|
+
function kf(t, e) {
|
|
5680
5680
|
if (pe(t) || Ee(t)) {
|
|
5681
5681
|
const n = Object.keys(t.getFields());
|
|
5682
5682
|
return $n(e, n);
|
|
5683
5683
|
}
|
|
5684
5684
|
return [];
|
|
5685
5685
|
}
|
|
5686
|
-
function
|
|
5686
|
+
function Df(t) {
|
|
5687
5687
|
return {
|
|
5688
5688
|
InlineFragment(e) {
|
|
5689
5689
|
const n = e.typeCondition;
|
|
@@ -5718,10 +5718,10 @@ function $f(t) {
|
|
|
5718
5718
|
}
|
|
5719
5719
|
};
|
|
5720
5720
|
}
|
|
5721
|
-
function
|
|
5721
|
+
function $f(t) {
|
|
5722
5722
|
return {
|
|
5723
5723
|
// eslint-disable-next-line new-cap
|
|
5724
|
-
...
|
|
5724
|
+
...jf(t),
|
|
5725
5725
|
Argument(e) {
|
|
5726
5726
|
const n = t.getArgument(), i = t.getFieldDef(), r = t.getParentType();
|
|
5727
5727
|
if (!n && i && r) {
|
|
@@ -5738,7 +5738,7 @@ function jf(t) {
|
|
|
5738
5738
|
}
|
|
5739
5739
|
};
|
|
5740
5740
|
}
|
|
5741
|
-
function
|
|
5741
|
+
function jf(t) {
|
|
5742
5742
|
const e = /* @__PURE__ */ Object.create(null), n = t.getSchema(), i = n ? n.getDirectives() : zi;
|
|
5743
5743
|
for (const o of i)
|
|
5744
5744
|
e[o.name] = o.args.map((a) => a.name);
|
|
@@ -5771,7 +5771,7 @@ function Pf(t) {
|
|
|
5771
5771
|
}
|
|
5772
5772
|
};
|
|
5773
5773
|
}
|
|
5774
|
-
function
|
|
5774
|
+
function Pf(t) {
|
|
5775
5775
|
const e = /* @__PURE__ */ Object.create(null), n = t.getSchema(), i = n ? n.getDirectives() : zi;
|
|
5776
5776
|
for (const s of i)
|
|
5777
5777
|
e[s.name] = s.locations;
|
|
@@ -5789,7 +5789,7 @@ function Mf(t) {
|
|
|
5789
5789
|
);
|
|
5790
5790
|
return;
|
|
5791
5791
|
}
|
|
5792
|
-
const p =
|
|
5792
|
+
const p = Mf(c);
|
|
5793
5793
|
p && !g.includes(p) && t.reportError(
|
|
5794
5794
|
new j(
|
|
5795
5795
|
`Directive "@${f}" may not be used on ${p}.`,
|
|
@@ -5801,11 +5801,11 @@ function Mf(t) {
|
|
|
5801
5801
|
}
|
|
5802
5802
|
};
|
|
5803
5803
|
}
|
|
5804
|
-
function
|
|
5804
|
+
function Mf(t) {
|
|
5805
5805
|
const e = t[t.length - 1];
|
|
5806
5806
|
switch ("kind" in e || Yt(!1), e.kind) {
|
|
5807
5807
|
case I.OPERATION_DEFINITION:
|
|
5808
|
-
return
|
|
5808
|
+
return Uf(e.operation);
|
|
5809
5809
|
case I.FIELD:
|
|
5810
5810
|
return K.FIELD;
|
|
5811
5811
|
case I.FRAGMENT_SPREAD:
|
|
@@ -5849,7 +5849,7 @@ function Uf(t) {
|
|
|
5849
5849
|
Yt(!1, "Unexpected kind: " + G(e.kind));
|
|
5850
5850
|
}
|
|
5851
5851
|
}
|
|
5852
|
-
function
|
|
5852
|
+
function Uf(t) {
|
|
5853
5853
|
switch (t) {
|
|
5854
5854
|
case Je.QUERY:
|
|
5855
5855
|
return K.QUERY;
|
|
@@ -5859,7 +5859,7 @@ function Vf(t) {
|
|
|
5859
5859
|
return K.SUBSCRIPTION;
|
|
5860
5860
|
}
|
|
5861
5861
|
}
|
|
5862
|
-
function
|
|
5862
|
+
function Vf(t) {
|
|
5863
5863
|
return {
|
|
5864
5864
|
FragmentSpread(e) {
|
|
5865
5865
|
const n = e.name.value;
|
|
@@ -5871,7 +5871,7 @@ function Bf(t) {
|
|
|
5871
5871
|
}
|
|
5872
5872
|
};
|
|
5873
5873
|
}
|
|
5874
|
-
function
|
|
5874
|
+
function Bf(t) {
|
|
5875
5875
|
const e = t.getSchema(), n = e ? e.getTypeMap() : /* @__PURE__ */ Object.create(null), i = /* @__PURE__ */ Object.create(null);
|
|
5876
5876
|
for (const s of t.getDocument().definitions)
|
|
5877
5877
|
Ks(s) && (i[s.name.value] = !0);
|
|
@@ -5884,7 +5884,7 @@ function Gf(t) {
|
|
|
5884
5884
|
const f = s.name.value;
|
|
5885
5885
|
if (!n[f] && !i[f]) {
|
|
5886
5886
|
var g;
|
|
5887
|
-
const p = (g = c[2]) !== null && g !== void 0 ? g : a, v = p != null &&
|
|
5887
|
+
const p = (g = c[2]) !== null && g !== void 0 ? g : a, v = p != null && Gf(p);
|
|
5888
5888
|
if (v && zo.includes(f))
|
|
5889
5889
|
return;
|
|
5890
5890
|
const w = $n(
|
|
@@ -5903,13 +5903,13 @@ function Gf(t) {
|
|
|
5903
5903
|
}
|
|
5904
5904
|
};
|
|
5905
5905
|
}
|
|
5906
|
-
const zo = [...
|
|
5906
|
+
const zo = [...cf, ...Ou].map(
|
|
5907
5907
|
(t) => t.name
|
|
5908
5908
|
);
|
|
5909
|
-
function
|
|
5910
|
-
return "kind" in t && (
|
|
5909
|
+
function Gf(t) {
|
|
5910
|
+
return "kind" in t && (xf(t) || Ff(t));
|
|
5911
5911
|
}
|
|
5912
|
-
function
|
|
5912
|
+
function qf(t) {
|
|
5913
5913
|
let e = 0;
|
|
5914
5914
|
return {
|
|
5915
5915
|
Document(n) {
|
|
@@ -5929,8 +5929,8 @@ function zf(t) {
|
|
|
5929
5929
|
}
|
|
5930
5930
|
};
|
|
5931
5931
|
}
|
|
5932
|
-
const
|
|
5933
|
-
function
|
|
5932
|
+
const zf = 3;
|
|
5933
|
+
function Qf(t) {
|
|
5934
5934
|
function e(n, i = /* @__PURE__ */ Object.create(null), r = 0) {
|
|
5935
5935
|
if (n.kind === I.FRAGMENT_SPREAD) {
|
|
5936
5936
|
const s = n.name.value;
|
|
@@ -5946,7 +5946,7 @@ function Wf(t) {
|
|
|
5946
5946
|
}
|
|
5947
5947
|
}
|
|
5948
5948
|
if (n.kind === I.FIELD && // check all introspection lists
|
|
5949
|
-
(n.name.value === "fields" || n.name.value === "interfaces" || n.name.value === "possibleTypes" || n.name.value === "inputFields") && (r++, r >=
|
|
5949
|
+
(n.name.value === "fields" || n.name.value === "interfaces" || n.name.value === "possibleTypes" || n.name.value === "inputFields") && (r++, r >= zf))
|
|
5950
5950
|
return !0;
|
|
5951
5951
|
if ("selectionSet" in n && n.selectionSet) {
|
|
5952
5952
|
for (const s of n.selectionSet.selections)
|
|
@@ -5966,7 +5966,7 @@ function Wf(t) {
|
|
|
5966
5966
|
}
|
|
5967
5967
|
};
|
|
5968
5968
|
}
|
|
5969
|
-
function
|
|
5969
|
+
function Wf(t) {
|
|
5970
5970
|
const e = /* @__PURE__ */ Object.create(null), n = [], i = /* @__PURE__ */ Object.create(null);
|
|
5971
5971
|
return {
|
|
5972
5972
|
OperationDefinition: () => !1,
|
|
@@ -6004,7 +6004,7 @@ function Hf(t) {
|
|
|
6004
6004
|
}
|
|
6005
6005
|
}
|
|
6006
6006
|
}
|
|
6007
|
-
function
|
|
6007
|
+
function Hf(t) {
|
|
6008
6008
|
let e = /* @__PURE__ */ Object.create(null);
|
|
6009
6009
|
return {
|
|
6010
6010
|
OperationDefinition: {
|
|
@@ -6031,7 +6031,7 @@ function Yf(t) {
|
|
|
6031
6031
|
}
|
|
6032
6032
|
};
|
|
6033
6033
|
}
|
|
6034
|
-
function
|
|
6034
|
+
function Yf(t) {
|
|
6035
6035
|
const e = [], n = [];
|
|
6036
6036
|
return {
|
|
6037
6037
|
OperationDefinition(i) {
|
|
@@ -6060,7 +6060,7 @@ function Jf(t) {
|
|
|
6060
6060
|
}
|
|
6061
6061
|
};
|
|
6062
6062
|
}
|
|
6063
|
-
function
|
|
6063
|
+
function Jf(t) {
|
|
6064
6064
|
let e = [];
|
|
6065
6065
|
return {
|
|
6066
6066
|
OperationDefinition: {
|
|
@@ -6092,7 +6092,7 @@ function Kf(t) {
|
|
|
6092
6092
|
function Xs(t) {
|
|
6093
6093
|
switch (t.kind) {
|
|
6094
6094
|
case I.OBJECT:
|
|
6095
|
-
return { ...t, fields:
|
|
6095
|
+
return { ...t, fields: Kf(t.fields) };
|
|
6096
6096
|
case I.LIST:
|
|
6097
6097
|
return { ...t, values: t.values.map(Xs) };
|
|
6098
6098
|
case I.INT:
|
|
@@ -6105,7 +6105,7 @@ function Xs(t) {
|
|
|
6105
6105
|
return t;
|
|
6106
6106
|
}
|
|
6107
6107
|
}
|
|
6108
|
-
function
|
|
6108
|
+
function Kf(t) {
|
|
6109
6109
|
return t.map((e) => ({
|
|
6110
6110
|
...e,
|
|
6111
6111
|
value: Xs(e.value)
|
|
@@ -6118,11 +6118,11 @@ function Cu(t) {
|
|
|
6118
6118
|
([e, n]) => `subfields "${e}" conflict because ` + Cu(n)
|
|
6119
6119
|
).join(" and ") : t;
|
|
6120
6120
|
}
|
|
6121
|
-
function
|
|
6122
|
-
const e = new
|
|
6121
|
+
function Xf(t) {
|
|
6122
|
+
const e = new rd(), n = /* @__PURE__ */ new Map();
|
|
6123
6123
|
return {
|
|
6124
6124
|
SelectionSet(i) {
|
|
6125
|
-
const r =
|
|
6125
|
+
const r = Zf(
|
|
6126
6126
|
t,
|
|
6127
6127
|
n,
|
|
6128
6128
|
e,
|
|
@@ -6143,14 +6143,14 @@ function Zf(t) {
|
|
|
6143
6143
|
}
|
|
6144
6144
|
};
|
|
6145
6145
|
}
|
|
6146
|
-
function
|
|
6146
|
+
function Zf(t, e, n, i, r) {
|
|
6147
6147
|
const s = [], [o, a] = xr(
|
|
6148
6148
|
t,
|
|
6149
6149
|
e,
|
|
6150
6150
|
i,
|
|
6151
6151
|
r
|
|
6152
6152
|
);
|
|
6153
|
-
if (
|
|
6153
|
+
if (td(
|
|
6154
6154
|
t,
|
|
6155
6155
|
s,
|
|
6156
6156
|
e,
|
|
@@ -6269,7 +6269,7 @@ function Ar(t, e, n, i, r, s, o) {
|
|
|
6269
6269
|
o
|
|
6270
6270
|
);
|
|
6271
6271
|
}
|
|
6272
|
-
function
|
|
6272
|
+
function ed(t, e, n, i, r, s, o, a) {
|
|
6273
6273
|
const u = [], [c, f] = xr(
|
|
6274
6274
|
t,
|
|
6275
6275
|
e,
|
|
@@ -6323,7 +6323,7 @@ function td(t, e, n, i, r, s, o, a) {
|
|
|
6323
6323
|
);
|
|
6324
6324
|
return u;
|
|
6325
6325
|
}
|
|
6326
|
-
function
|
|
6326
|
+
function td(t, e, n, i, r) {
|
|
6327
6327
|
for (const [s, o] of Object.entries(r))
|
|
6328
6328
|
if (o.length > 1)
|
|
6329
6329
|
for (let a = 0; a < o.length; a++)
|
|
@@ -6370,7 +6370,7 @@ function ku(t, e, n, i, r, s, o) {
|
|
|
6370
6370
|
[u],
|
|
6371
6371
|
[g]
|
|
6372
6372
|
];
|
|
6373
|
-
if (!
|
|
6373
|
+
if (!nd(u, g))
|
|
6374
6374
|
return [
|
|
6375
6375
|
[r, "they have differing arguments"],
|
|
6376
6376
|
[u],
|
|
@@ -6391,7 +6391,7 @@ function ku(t, e, n, i, r, s, o) {
|
|
|
6391
6391
|
];
|
|
6392
6392
|
const x = u.selectionSet, y = g.selectionSet;
|
|
6393
6393
|
if (x && y) {
|
|
6394
|
-
const S =
|
|
6394
|
+
const S = ed(
|
|
6395
6395
|
t,
|
|
6396
6396
|
e,
|
|
6397
6397
|
n,
|
|
@@ -6401,10 +6401,10 @@ function ku(t, e, n, i, r, s, o) {
|
|
|
6401
6401
|
Mt(R),
|
|
6402
6402
|
y
|
|
6403
6403
|
);
|
|
6404
|
-
return
|
|
6404
|
+
return id(S, r, u, g);
|
|
6405
6405
|
}
|
|
6406
6406
|
}
|
|
6407
|
-
function
|
|
6407
|
+
function nd(t, e) {
|
|
6408
6408
|
const n = t.arguments, i = e.arguments;
|
|
6409
6409
|
if (n === void 0 || n.length === 0)
|
|
6410
6410
|
return i === void 0 || i.length === 0;
|
|
@@ -6476,7 +6476,7 @@ function Du(t, e, n, i, r) {
|
|
|
6476
6476
|
}
|
|
6477
6477
|
}
|
|
6478
6478
|
}
|
|
6479
|
-
function
|
|
6479
|
+
function id(t, e, n, i) {
|
|
6480
6480
|
if (t.length > 0)
|
|
6481
6481
|
return [
|
|
6482
6482
|
[e, t.map(([r]) => r)],
|
|
@@ -6484,7 +6484,7 @@ function rd(t, e, n, i) {
|
|
|
6484
6484
|
[i, ...t.map(([, , r]) => r).flat()]
|
|
6485
6485
|
];
|
|
6486
6486
|
}
|
|
6487
|
-
class
|
|
6487
|
+
class rd {
|
|
6488
6488
|
constructor() {
|
|
6489
6489
|
this._data = /* @__PURE__ */ new Map();
|
|
6490
6490
|
}
|
|
@@ -6498,7 +6498,7 @@ class sd {
|
|
|
6498
6498
|
o === void 0 ? this._data.set(r, /* @__PURE__ */ new Map([[s, i]])) : o.set(s, i);
|
|
6499
6499
|
}
|
|
6500
6500
|
}
|
|
6501
|
-
function
|
|
6501
|
+
function sd(t) {
|
|
6502
6502
|
return {
|
|
6503
6503
|
InlineFragment(e) {
|
|
6504
6504
|
const n = t.getType(), i = t.getParentType();
|
|
@@ -6515,7 +6515,7 @@ function od(t) {
|
|
|
6515
6515
|
}
|
|
6516
6516
|
},
|
|
6517
6517
|
FragmentSpread(e) {
|
|
6518
|
-
const n = e.name.value, i =
|
|
6518
|
+
const n = e.name.value, i = od(t, n), r = t.getParentType();
|
|
6519
6519
|
if (i && r && !Uo(t.getSchema(), i, r)) {
|
|
6520
6520
|
const s = G(r), o = G(i);
|
|
6521
6521
|
t.reportError(
|
|
@@ -6530,7 +6530,7 @@ function od(t) {
|
|
|
6530
6530
|
}
|
|
6531
6531
|
};
|
|
6532
6532
|
}
|
|
6533
|
-
function
|
|
6533
|
+
function od(t, e) {
|
|
6534
6534
|
const n = t.getFragment(e);
|
|
6535
6535
|
if (n) {
|
|
6536
6536
|
const i = it(t.getSchema(), n.typeCondition);
|
|
@@ -6538,10 +6538,10 @@ function ad(t, e) {
|
|
|
6538
6538
|
return i;
|
|
6539
6539
|
}
|
|
6540
6540
|
}
|
|
6541
|
-
function
|
|
6541
|
+
function ad(t) {
|
|
6542
6542
|
return {
|
|
6543
6543
|
// eslint-disable-next-line new-cap
|
|
6544
|
-
...
|
|
6544
|
+
...ud(t),
|
|
6545
6545
|
Field: {
|
|
6546
6546
|
// Validate on leave to allow for deeper errors to appear first.
|
|
6547
6547
|
leave(e) {
|
|
@@ -6570,7 +6570,7 @@ function ud(t) {
|
|
|
6570
6570
|
}
|
|
6571
6571
|
};
|
|
6572
6572
|
}
|
|
6573
|
-
function
|
|
6573
|
+
function ud(t) {
|
|
6574
6574
|
var e;
|
|
6575
6575
|
const n = /* @__PURE__ */ Object.create(null), i = t.getSchema(), r = (e = i == null ? void 0 : i.getDirectives()) !== null && e !== void 0 ? e : zi;
|
|
6576
6576
|
for (const a of r)
|
|
@@ -6584,7 +6584,7 @@ function ld(t) {
|
|
|
6584
6584
|
var o;
|
|
6585
6585
|
const u = (o = a.arguments) !== null && o !== void 0 ? o : [];
|
|
6586
6586
|
n[a.name.value] = oi(
|
|
6587
|
-
u.filter(
|
|
6587
|
+
u.filter(ld),
|
|
6588
6588
|
(c) => c.name.value
|
|
6589
6589
|
);
|
|
6590
6590
|
}
|
|
@@ -6613,10 +6613,10 @@ function ld(t) {
|
|
|
6613
6613
|
}
|
|
6614
6614
|
};
|
|
6615
6615
|
}
|
|
6616
|
-
function
|
|
6616
|
+
function ld(t) {
|
|
6617
6617
|
return t.type.kind === I.NON_NULL_TYPE && t.defaultValue == null;
|
|
6618
6618
|
}
|
|
6619
|
-
function
|
|
6619
|
+
function cd(t) {
|
|
6620
6620
|
return {
|
|
6621
6621
|
Field(e) {
|
|
6622
6622
|
const n = t.getType(), i = e.selectionSet;
|
|
@@ -6648,7 +6648,7 @@ function fd(t) {
|
|
|
6648
6648
|
}
|
|
6649
6649
|
};
|
|
6650
6650
|
}
|
|
6651
|
-
function
|
|
6651
|
+
function fd(t) {
|
|
6652
6652
|
return t.map(
|
|
6653
6653
|
(e) => typeof e == "number" ? "[" + e.toString() + "]" : "." + e
|
|
6654
6654
|
).join("");
|
|
@@ -6667,17 +6667,17 @@ function Xt(t) {
|
|
|
6667
6667
|
e.push(n.key), n = n.prev;
|
|
6668
6668
|
return e.reverse();
|
|
6669
6669
|
}
|
|
6670
|
-
function
|
|
6671
|
-
return
|
|
6670
|
+
function dd(t, e, n = hd) {
|
|
6671
|
+
return _i(t, e, n, void 0);
|
|
6672
6672
|
}
|
|
6673
|
-
function
|
|
6673
|
+
function hd(t, e, n) {
|
|
6674
6674
|
let i = "Invalid value " + G(e);
|
|
6675
|
-
throw t.length > 0 && (i += ` at "value${
|
|
6675
|
+
throw t.length > 0 && (i += ` at "value${fd(t)}"`), n.message = i + ": " + n.message, n;
|
|
6676
6676
|
}
|
|
6677
|
-
function
|
|
6677
|
+
function _i(t, e, n, i) {
|
|
6678
6678
|
if (re(e)) {
|
|
6679
6679
|
if (t != null)
|
|
6680
|
-
return
|
|
6680
|
+
return _i(t, e.ofType, n, i);
|
|
6681
6681
|
n(
|
|
6682
6682
|
Xt(i),
|
|
6683
6683
|
t,
|
|
@@ -6693,8 +6693,8 @@ function Si(t, e, n, i) {
|
|
|
6693
6693
|
const r = e.ofType;
|
|
6694
6694
|
return Eu(t) ? Array.from(t, (s, o) => {
|
|
6695
6695
|
const a = Wo(i, o, void 0);
|
|
6696
|
-
return
|
|
6697
|
-
}) : [
|
|
6696
|
+
return _i(s, r, n, a);
|
|
6697
|
+
}) : [_i(t, r, n, i)];
|
|
6698
6698
|
}
|
|
6699
6699
|
if (ze(e)) {
|
|
6700
6700
|
if (!Jt(t)) {
|
|
@@ -6723,7 +6723,7 @@ function Si(t, e, n, i) {
|
|
|
6723
6723
|
}
|
|
6724
6724
|
continue;
|
|
6725
6725
|
}
|
|
6726
|
-
r[o.name] =
|
|
6726
|
+
r[o.name] = _i(
|
|
6727
6727
|
a,
|
|
6728
6728
|
o.type,
|
|
6729
6729
|
n,
|
|
@@ -6857,7 +6857,7 @@ function xn(t, e, n) {
|
|
|
6857
6857
|
function Ho(t, e) {
|
|
6858
6858
|
return t.kind === I.VARIABLE && (e == null || e[t.name.value] === void 0);
|
|
6859
6859
|
}
|
|
6860
|
-
function
|
|
6860
|
+
function pd(t, e, n) {
|
|
6861
6861
|
var i;
|
|
6862
6862
|
const r = {}, s = (i = e.arguments) !== null && i !== void 0 ? i : [], o = oi(s, (a) => a.name.value);
|
|
6863
6863
|
for (const a of t.args) {
|
|
@@ -6878,7 +6878,7 @@ function gd(t, e, n) {
|
|
|
6878
6878
|
let p = g.kind === I.NULL;
|
|
6879
6879
|
if (g.kind === I.VARIABLE) {
|
|
6880
6880
|
const w = g.name.value;
|
|
6881
|
-
if (n == null || !
|
|
6881
|
+
if (n == null || !gd(n, w)) {
|
|
6882
6882
|
if (a.defaultValue !== void 0)
|
|
6883
6883
|
r[u] = a.defaultValue;
|
|
6884
6884
|
else if (re(c))
|
|
@@ -6917,12 +6917,12 @@ function ui(t, e, n) {
|
|
|
6917
6917
|
(s) => s.name.value === t.name
|
|
6918
6918
|
);
|
|
6919
6919
|
if (r)
|
|
6920
|
-
return
|
|
6920
|
+
return pd(t, r, n);
|
|
6921
6921
|
}
|
|
6922
|
-
function
|
|
6922
|
+
function gd(t, e) {
|
|
6923
6923
|
return Object.prototype.hasOwnProperty.call(t, e);
|
|
6924
6924
|
}
|
|
6925
|
-
function
|
|
6925
|
+
function md(t, e, n, i, r) {
|
|
6926
6926
|
const s = /* @__PURE__ */ new Map();
|
|
6927
6927
|
return Es(
|
|
6928
6928
|
t,
|
|
@@ -6940,7 +6940,7 @@ function Es(t, e, n, i, r, s, o) {
|
|
|
6940
6940
|
case I.FIELD: {
|
|
6941
6941
|
if (!rs(n, a))
|
|
6942
6942
|
continue;
|
|
6943
|
-
const u =
|
|
6943
|
+
const u = yd(a), c = s.get(u);
|
|
6944
6944
|
c !== void 0 ? c.push(a) : s.set(u, [a]);
|
|
6945
6945
|
break;
|
|
6946
6946
|
}
|
|
@@ -6997,10 +6997,10 @@ function Yo(t, e, n) {
|
|
|
6997
6997
|
const r = it(t, i);
|
|
6998
6998
|
return r === n ? !0 : nn(r) ? t.isSubType(r, n) : !1;
|
|
6999
6999
|
}
|
|
7000
|
-
function
|
|
7000
|
+
function yd(t) {
|
|
7001
7001
|
return t.alias ? t.alias.value : t.name.value;
|
|
7002
7002
|
}
|
|
7003
|
-
function
|
|
7003
|
+
function bd(t) {
|
|
7004
7004
|
return {
|
|
7005
7005
|
OperationDefinition(e) {
|
|
7006
7006
|
if (e.operation === "subscription") {
|
|
@@ -7009,7 +7009,7 @@ function wd(t) {
|
|
|
7009
7009
|
const r = e.name ? e.name.value : null, s = /* @__PURE__ */ Object.create(null), o = t.getDocument(), a = /* @__PURE__ */ Object.create(null);
|
|
7010
7010
|
for (const c of o.definitions)
|
|
7011
7011
|
c.kind === I.FRAGMENT_DEFINITION && (a[c.name.value] = c);
|
|
7012
|
-
const u =
|
|
7012
|
+
const u = md(
|
|
7013
7013
|
n,
|
|
7014
7014
|
a,
|
|
7015
7015
|
s,
|
|
@@ -7049,7 +7049,7 @@ function $u(t, e) {
|
|
|
7049
7049
|
}
|
|
7050
7050
|
return n;
|
|
7051
7051
|
}
|
|
7052
|
-
function
|
|
7052
|
+
function wd(t) {
|
|
7053
7053
|
return {
|
|
7054
7054
|
Field: e,
|
|
7055
7055
|
Directive: e
|
|
@@ -7068,7 +7068,7 @@ function Ed(t) {
|
|
|
7068
7068
|
);
|
|
7069
7069
|
}
|
|
7070
7070
|
}
|
|
7071
|
-
function
|
|
7071
|
+
function Ed(t) {
|
|
7072
7072
|
const e = /* @__PURE__ */ Object.create(null), n = t.getSchema(), i = n ? n.getDirectives() : zi;
|
|
7073
7073
|
for (const a of i)
|
|
7074
7074
|
e[a.name] = !a.isRepeatable;
|
|
@@ -7105,7 +7105,7 @@ function vd(t) {
|
|
|
7105
7105
|
}
|
|
7106
7106
|
};
|
|
7107
7107
|
}
|
|
7108
|
-
function
|
|
7108
|
+
function vd(t) {
|
|
7109
7109
|
const e = /* @__PURE__ */ Object.create(null);
|
|
7110
7110
|
return {
|
|
7111
7111
|
OperationDefinition: () => !1,
|
|
@@ -7122,7 +7122,7 @@ function Td(t) {
|
|
|
7122
7122
|
}
|
|
7123
7123
|
};
|
|
7124
7124
|
}
|
|
7125
|
-
function
|
|
7125
|
+
function Td(t) {
|
|
7126
7126
|
const e = [];
|
|
7127
7127
|
let n = /* @__PURE__ */ Object.create(null);
|
|
7128
7128
|
return {
|
|
@@ -7148,7 +7148,7 @@ function Sd(t) {
|
|
|
7148
7148
|
}
|
|
7149
7149
|
};
|
|
7150
7150
|
}
|
|
7151
|
-
function
|
|
7151
|
+
function Sd(t) {
|
|
7152
7152
|
const e = /* @__PURE__ */ Object.create(null);
|
|
7153
7153
|
return {
|
|
7154
7154
|
OperationDefinition(n) {
|
|
@@ -7168,7 +7168,7 @@ function _d(t) {
|
|
|
7168
7168
|
FragmentDefinition: () => !1
|
|
7169
7169
|
};
|
|
7170
7170
|
}
|
|
7171
|
-
function
|
|
7171
|
+
function _d(t) {
|
|
7172
7172
|
return {
|
|
7173
7173
|
OperationDefinition(e) {
|
|
7174
7174
|
var n;
|
|
@@ -7188,7 +7188,7 @@ function Id(t) {
|
|
|
7188
7188
|
}
|
|
7189
7189
|
};
|
|
7190
7190
|
}
|
|
7191
|
-
function
|
|
7191
|
+
function Id(t) {
|
|
7192
7192
|
let e = {};
|
|
7193
7193
|
return {
|
|
7194
7194
|
OperationDefinition: {
|
|
@@ -7221,7 +7221,7 @@ function Od(t) {
|
|
|
7221
7221
|
)
|
|
7222
7222
|
);
|
|
7223
7223
|
}
|
|
7224
|
-
i.isOneOf &&
|
|
7224
|
+
i.isOneOf && Od(
|
|
7225
7225
|
t,
|
|
7226
7226
|
n,
|
|
7227
7227
|
i,
|
|
@@ -7310,7 +7310,7 @@ function _n(t, e) {
|
|
|
7310
7310
|
);
|
|
7311
7311
|
}
|
|
7312
7312
|
}
|
|
7313
|
-
function
|
|
7313
|
+
function Od(t, e, n, i, r) {
|
|
7314
7314
|
var s;
|
|
7315
7315
|
const o = Object.keys(i);
|
|
7316
7316
|
if (o.length !== 1) {
|
|
@@ -7345,7 +7345,7 @@ function Nd(t, e, n, i, r) {
|
|
|
7345
7345
|
);
|
|
7346
7346
|
}
|
|
7347
7347
|
}
|
|
7348
|
-
function
|
|
7348
|
+
function Nd(t) {
|
|
7349
7349
|
return {
|
|
7350
7350
|
VariableDefinition(e) {
|
|
7351
7351
|
const n = it(t.getSchema(), e.type);
|
|
@@ -7363,7 +7363,7 @@ function Ad(t) {
|
|
|
7363
7363
|
}
|
|
7364
7364
|
};
|
|
7365
7365
|
}
|
|
7366
|
-
function
|
|
7366
|
+
function Ad(t) {
|
|
7367
7367
|
let e = /* @__PURE__ */ Object.create(null);
|
|
7368
7368
|
return {
|
|
7369
7369
|
OperationDefinition: {
|
|
@@ -7376,7 +7376,7 @@ function xd(t) {
|
|
|
7376
7376
|
const a = r.name.value, u = e[a];
|
|
7377
7377
|
if (u && s) {
|
|
7378
7378
|
const c = t.getSchema(), f = it(c, u.type);
|
|
7379
|
-
if (f && !
|
|
7379
|
+
if (f && !xd(
|
|
7380
7380
|
c,
|
|
7381
7381
|
f,
|
|
7382
7382
|
u.defaultValue,
|
|
@@ -7402,7 +7402,7 @@ function xd(t) {
|
|
|
7402
7402
|
}
|
|
7403
7403
|
};
|
|
7404
7404
|
}
|
|
7405
|
-
function
|
|
7405
|
+
function xd(t, e, n, i, r) {
|
|
7406
7406
|
if (re(i) && !re(e)) {
|
|
7407
7407
|
if (!(n != null && n.kind !== I.NULL) && !(r !== void 0))
|
|
7408
7408
|
return !1;
|
|
@@ -7411,36 +7411,36 @@ function Fd(t, e, n, i, r) {
|
|
|
7411
7411
|
}
|
|
7412
7412
|
return Jn(t, e, i);
|
|
7413
7413
|
}
|
|
7414
|
-
const
|
|
7414
|
+
const Fd = Object.freeze([Qf]), ju = Object.freeze([
|
|
7415
|
+
Rf,
|
|
7416
|
+
Sd,
|
|
7417
|
+
qf,
|
|
7418
|
+
bd,
|
|
7419
|
+
Bf,
|
|
7420
|
+
Df,
|
|
7421
|
+
Nd,
|
|
7422
|
+
cd,
|
|
7415
7423
|
Lf,
|
|
7424
|
+
vd,
|
|
7425
|
+
Vf,
|
|
7426
|
+
Yf,
|
|
7427
|
+
sd,
|
|
7428
|
+
Wf,
|
|
7416
7429
|
_d,
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7430
|
+
Hf,
|
|
7431
|
+
Jf,
|
|
7432
|
+
Pf,
|
|
7433
|
+
Ed,
|
|
7420
7434
|
$f,
|
|
7435
|
+
wd,
|
|
7436
|
+
Id,
|
|
7437
|
+
ad,
|
|
7421
7438
|
Ad,
|
|
7422
|
-
|
|
7423
|
-
Cf,
|
|
7439
|
+
Xf,
|
|
7424
7440
|
Td,
|
|
7425
|
-
|
|
7426
|
-
Jf,
|
|
7427
|
-
od,
|
|
7428
|
-
Hf,
|
|
7429
|
-
Id,
|
|
7430
|
-
Yf,
|
|
7431
|
-
Kf,
|
|
7432
|
-
Mf,
|
|
7433
|
-
vd,
|
|
7434
|
-
jf,
|
|
7435
|
-
Ed,
|
|
7436
|
-
Od,
|
|
7437
|
-
ud,
|
|
7438
|
-
xd,
|
|
7439
|
-
Zf,
|
|
7440
|
-
Sd,
|
|
7441
|
-
...Rd
|
|
7441
|
+
...Fd
|
|
7442
7442
|
]);
|
|
7443
|
-
class
|
|
7443
|
+
class Rd {
|
|
7444
7444
|
constructor(e, n) {
|
|
7445
7445
|
this._ast = e, this._fragments = void 0, this._fragmentSpreads = /* @__PURE__ */ new Map(), this._recursivelyReferencedFragments = /* @__PURE__ */ new Map(), this._onError = n;
|
|
7446
7446
|
}
|
|
@@ -7498,7 +7498,7 @@ class Ld {
|
|
|
7498
7498
|
return n;
|
|
7499
7499
|
}
|
|
7500
7500
|
}
|
|
7501
|
-
class
|
|
7501
|
+
class Ld extends Rd {
|
|
7502
7502
|
constructor(e, n, i, r) {
|
|
7503
7503
|
super(n, r), this._schema = e, this._typeInfo = i, this._variableUsages = /* @__PURE__ */ new Map(), this._recursiveVariableUsages = /* @__PURE__ */ new Map();
|
|
7504
7504
|
}
|
|
@@ -7563,11 +7563,11 @@ class Cd extends Ld {
|
|
|
7563
7563
|
return this._typeInfo.getEnumValue();
|
|
7564
7564
|
}
|
|
7565
7565
|
}
|
|
7566
|
-
function
|
|
7566
|
+
function Cd(t, e, n = ju, i, r = new Fu(t)) {
|
|
7567
7567
|
var s;
|
|
7568
7568
|
const o = (s = i == null ? void 0 : i.maxErrors) !== null && s !== void 0 ? s : 100;
|
|
7569
7569
|
e || ae(!1, "Must provide document."), xu(t);
|
|
7570
|
-
const a = Object.freeze({}), u = [], c = new
|
|
7570
|
+
const a = Object.freeze({}), u = [], c = new Ld(
|
|
7571
7571
|
t,
|
|
7572
7572
|
e,
|
|
7573
7573
|
r,
|
|
@@ -7580,7 +7580,7 @@ function kd(t, e, n = ju, i, r = new Fu(t)) {
|
|
|
7580
7580
|
), a;
|
|
7581
7581
|
u.push(g);
|
|
7582
7582
|
}
|
|
7583
|
-
), f =
|
|
7583
|
+
), f = tf(n.map((g) => g(c)));
|
|
7584
7584
|
try {
|
|
7585
7585
|
Gs(e, Ru(r, f));
|
|
7586
7586
|
} catch (g) {
|
|
@@ -7589,18 +7589,18 @@ function kd(t, e, n = ju, i, r = new Fu(t)) {
|
|
|
7589
7589
|
}
|
|
7590
7590
|
return u;
|
|
7591
7591
|
}
|
|
7592
|
-
function
|
|
7593
|
-
return t instanceof Error ? t : new
|
|
7592
|
+
function kd(t) {
|
|
7593
|
+
return t instanceof Error ? t : new Dd(t);
|
|
7594
7594
|
}
|
|
7595
|
-
let
|
|
7595
|
+
let Dd = class extends Error {
|
|
7596
7596
|
constructor(e) {
|
|
7597
7597
|
super("Unexpected error value: " + G(e)), this.name = "NonErrorThrown", this.thrownValue = e;
|
|
7598
7598
|
}
|
|
7599
7599
|
};
|
|
7600
7600
|
function tt(t, e, n) {
|
|
7601
7601
|
var i;
|
|
7602
|
-
const r =
|
|
7603
|
-
return
|
|
7602
|
+
const r = kd(t);
|
|
7603
|
+
return $d(r) ? r : new j(r.message, {
|
|
7604
7604
|
nodes: (i = r.nodes) !== null && i !== void 0 ? i : e,
|
|
7605
7605
|
source: r.source,
|
|
7606
7606
|
positions: r.positions,
|
|
@@ -7608,7 +7608,7 @@ function tt(t, e, n) {
|
|
|
7608
7608
|
originalError: r
|
|
7609
7609
|
});
|
|
7610
7610
|
}
|
|
7611
|
-
function
|
|
7611
|
+
function $d(t) {
|
|
7612
7612
|
return Array.isArray(t.path);
|
|
7613
7613
|
}
|
|
7614
7614
|
const Jo = function(t, e, n, i) {
|
|
@@ -7619,7 +7619,7 @@ const Jo = function(t, e, n, i) {
|
|
|
7619
7619
|
const a = r[o];
|
|
7620
7620
|
if (a.isTypeOf) {
|
|
7621
7621
|
const u = a.isTypeOf(t, e, n);
|
|
7622
|
-
if (
|
|
7622
|
+
if (bc(u))
|
|
7623
7623
|
s[o] = u;
|
|
7624
7624
|
else if (u)
|
|
7625
7625
|
return a.name;
|
|
@@ -7651,7 +7651,7 @@ function eo(t, e) {
|
|
|
7651
7651
|
}
|
|
7652
7652
|
return n;
|
|
7653
7653
|
}
|
|
7654
|
-
function
|
|
7654
|
+
function jd(t) {
|
|
7655
7655
|
const e = t.toConfig(), n = $r(
|
|
7656
7656
|
ss(e.types),
|
|
7657
7657
|
(p) => p.name,
|
|
@@ -7736,7 +7736,7 @@ function Pd(t) {
|
|
|
7736
7736
|
}
|
|
7737
7737
|
if (ze(p)) {
|
|
7738
7738
|
const v = p.toConfig();
|
|
7739
|
-
return new
|
|
7739
|
+
return new Li({
|
|
7740
7740
|
...v,
|
|
7741
7741
|
fields: () => c(v.fields)
|
|
7742
7742
|
});
|
|
@@ -7769,18 +7769,18 @@ class ie extends Qi {
|
|
|
7769
7769
|
super(e, n), this.name = "PothosSchemaError";
|
|
7770
7770
|
}
|
|
7771
7771
|
}
|
|
7772
|
-
const
|
|
7773
|
-
function
|
|
7772
|
+
const Pd = Symbol.for("Pothos.contextCache");
|
|
7773
|
+
function Md(t) {
|
|
7774
7774
|
const e = /* @__PURE__ */ new WeakMap();
|
|
7775
7775
|
return (n, ...i) => {
|
|
7776
|
-
const r = n[
|
|
7776
|
+
const r = n[Pd] || n;
|
|
7777
7777
|
if (e.has(r))
|
|
7778
7778
|
return e.get(r);
|
|
7779
7779
|
const s = t(n, ...i);
|
|
7780
7780
|
return e.set(r, s), s;
|
|
7781
7781
|
};
|
|
7782
7782
|
}
|
|
7783
|
-
function
|
|
7783
|
+
function pi(t, e, n) {
|
|
7784
7784
|
return e in t ? Object.defineProperty(t, e, {
|
|
7785
7785
|
value: n,
|
|
7786
7786
|
enumerable: !0,
|
|
@@ -7788,8 +7788,8 @@ function hi(t, e, n) {
|
|
|
7788
7788
|
writable: !0
|
|
7789
7789
|
}) : t[e] = n, t;
|
|
7790
7790
|
}
|
|
7791
|
-
const
|
|
7792
|
-
class
|
|
7791
|
+
const gi = /* @__PURE__ */ new WeakMap();
|
|
7792
|
+
class Ud {
|
|
7793
7793
|
/**
|
|
7794
7794
|
* Called for each type defined with the SchemaBuilder
|
|
7795
7795
|
* @param {PothosTypeConfig} typeConfig - Config object describing the added type
|
|
@@ -7872,11 +7872,11 @@ class Vd {
|
|
|
7872
7872
|
return e;
|
|
7873
7873
|
}
|
|
7874
7874
|
runUnique(e, n) {
|
|
7875
|
-
if (
|
|
7875
|
+
if (gi.has(this.builder) || gi.set(this.builder, /* @__PURE__ */ new Map()), !gi.get(this.builder).has(e)) {
|
|
7876
7876
|
const i = n();
|
|
7877
|
-
return
|
|
7877
|
+
return gi.get(this.builder).set(e, i), i;
|
|
7878
7878
|
}
|
|
7879
|
-
return
|
|
7879
|
+
return gi.get(this.builder).get(e);
|
|
7880
7880
|
}
|
|
7881
7881
|
/**
|
|
7882
7882
|
* Creates a data object unique to the current request for use by this plugin
|
|
@@ -7895,10 +7895,10 @@ class Vd {
|
|
|
7895
7895
|
return this.requestDataMap(e);
|
|
7896
7896
|
}
|
|
7897
7897
|
constructor(e, n) {
|
|
7898
|
-
|
|
7898
|
+
pi(this, "name", void 0), pi(this, "builder", void 0), pi(this, "buildCache", void 0), pi(this, "options", void 0), pi(this, "requestDataMap", Md((i) => this.createRequestData(i))), this.name = n, this.builder = e.builder, this.buildCache = e, this.options = e.options;
|
|
7899
7899
|
}
|
|
7900
7900
|
}
|
|
7901
|
-
function
|
|
7901
|
+
function Vd(t, e, n) {
|
|
7902
7902
|
return e in t ? Object.defineProperty(t, e, {
|
|
7903
7903
|
value: n,
|
|
7904
7904
|
enumerable: !0,
|
|
@@ -7906,7 +7906,7 @@ function Bd(t, e, n) {
|
|
|
7906
7906
|
writable: !0
|
|
7907
7907
|
}) : t[e] = n, t;
|
|
7908
7908
|
}
|
|
7909
|
-
class
|
|
7909
|
+
class Bd extends Ud {
|
|
7910
7910
|
onTypeConfig(e) {
|
|
7911
7911
|
return this.plugins.reduceRight((n, i) => n === null ? n : i.onTypeConfig(n), e);
|
|
7912
7912
|
}
|
|
@@ -7939,10 +7939,10 @@ class Gd extends Vd {
|
|
|
7939
7939
|
return this.plugins.reduceRight((i, r) => r.wrapIsTypeOf(i, n), e);
|
|
7940
7940
|
}
|
|
7941
7941
|
constructor(e, n) {
|
|
7942
|
-
super(e, "PothosMergedPlugin"),
|
|
7942
|
+
super(e, "PothosMergedPlugin"), Vd(this, "plugins", void 0), this.plugins = n;
|
|
7943
7943
|
}
|
|
7944
7944
|
}
|
|
7945
|
-
const Pn = Symbol.for("Pothos.outputShapeKey"),
|
|
7945
|
+
const Pn = Symbol.for("Pothos.outputShapeKey"), di = Symbol.for("Pothos.parentShapeKey"), Wi = Symbol.for("Pothos.inputShapeKey"), Gd = Symbol.for("Pothos.inputFieldShapeKey"), qd = Symbol.for("Pothos.outputFieldShapeKey"), Fr = Symbol.for("Pothos.typeBrandKey");
|
|
7946
7946
|
function Ko(t, e, n) {
|
|
7947
7947
|
return e in t ? Object.defineProperty(t, e, {
|
|
7948
7948
|
value: n,
|
|
@@ -7967,13 +7967,13 @@ function Un(t, e, n) {
|
|
|
7967
7967
|
writable: !0
|
|
7968
7968
|
}) : t[e] = n, t;
|
|
7969
7969
|
}
|
|
7970
|
-
let
|
|
7970
|
+
let zd = Pn, Qd = di, Wd = Wi;
|
|
7971
7971
|
class Mu extends Ne {
|
|
7972
7972
|
constructor(e) {
|
|
7973
|
-
super("Scalar", e), Un(this, "kind", "Scalar"), Un(this, "$inferType", void 0), Un(this, "$inferInput", void 0), Un(this,
|
|
7973
|
+
super("Scalar", e), Un(this, "kind", "Scalar"), Un(this, "$inferType", void 0), Un(this, "$inferInput", void 0), Un(this, zd, void 0), Un(this, Qd, void 0), Un(this, Wd, void 0);
|
|
7974
7974
|
}
|
|
7975
7975
|
}
|
|
7976
|
-
function
|
|
7976
|
+
function Hd(t, e, n) {
|
|
7977
7977
|
return e in t ? Object.defineProperty(t, e, {
|
|
7978
7978
|
value: n,
|
|
7979
7979
|
enumerable: !0,
|
|
@@ -7983,10 +7983,10 @@ function Yd(t, e, n) {
|
|
|
7983
7983
|
}
|
|
7984
7984
|
class Uu extends Mu {
|
|
7985
7985
|
constructor(e) {
|
|
7986
|
-
super(e.name),
|
|
7986
|
+
super(e.name), Hd(this, "type", void 0), this.type = e;
|
|
7987
7987
|
}
|
|
7988
7988
|
}
|
|
7989
|
-
function
|
|
7989
|
+
function mi(t, e, n) {
|
|
7990
7990
|
return e in t ? Object.defineProperty(t, e, {
|
|
7991
7991
|
value: n,
|
|
7992
7992
|
enumerable: !0,
|
|
@@ -7994,10 +7994,10 @@ function gi(t, e, n) {
|
|
|
7994
7994
|
writable: !0
|
|
7995
7995
|
}) : t[e] = n, t;
|
|
7996
7996
|
}
|
|
7997
|
-
let
|
|
7997
|
+
let Yd = Wi;
|
|
7998
7998
|
class Ur extends Ne {
|
|
7999
7999
|
constructor(e, n) {
|
|
8000
|
-
super("InputList", `InputList<${String(e)}>`),
|
|
8000
|
+
super("InputList", `InputList<${String(e)}>`), mi(this, "kind", "InputList"), mi(this, Yd, void 0), mi(this, "$inferInput", void 0), mi(this, "listType", void 0), mi(this, "required", void 0), this.listType = e, this.required = n;
|
|
8001
8001
|
}
|
|
8002
8002
|
}
|
|
8003
8003
|
function Vn(t, e, n) {
|
|
@@ -8008,13 +8008,13 @@ function Vn(t, e, n) {
|
|
|
8008
8008
|
writable: !0
|
|
8009
8009
|
}) : t[e] = n, t;
|
|
8010
8010
|
}
|
|
8011
|
-
let
|
|
8011
|
+
let Jd = Pn, Kd = di;
|
|
8012
8012
|
class Vr extends Ne {
|
|
8013
8013
|
constructor(e, n) {
|
|
8014
|
-
super("List", `List<${String(e)}>`), Vn(this, "kind", "List"), Vn(this, "$inferType", void 0), Vn(this,
|
|
8014
|
+
super("List", `List<${String(e)}>`), Vn(this, "kind", "List"), Vn(this, "$inferType", void 0), Vn(this, Jd, void 0), Vn(this, Kd, void 0), Vn(this, "listType", void 0), Vn(this, "nullable", void 0), this.listType = e, this.nullable = n;
|
|
8015
8015
|
}
|
|
8016
8016
|
}
|
|
8017
|
-
function
|
|
8017
|
+
function Xd(t) {
|
|
8018
8018
|
const e = {};
|
|
8019
8019
|
return Array.isArray(t) ? t.forEach((n) => {
|
|
8020
8020
|
e[String(n)] = {
|
|
@@ -8029,7 +8029,7 @@ function Zd(t) {
|
|
|
8029
8029
|
});
|
|
8030
8030
|
}), e;
|
|
8031
8031
|
}
|
|
8032
|
-
function
|
|
8032
|
+
function Zd(t, e) {
|
|
8033
8033
|
const n = {};
|
|
8034
8034
|
return Object.keys(t).filter((i) => typeof t[t[i]] != "number").forEach((i) => {
|
|
8035
8035
|
n[i] = {
|
|
@@ -8085,10 +8085,10 @@ function Ts(t, e, n) {
|
|
|
8085
8085
|
};
|
|
8086
8086
|
throw new ie(`Expected input param ${a} to be an InputObject, Enum, or Scalar but got ${o}`);
|
|
8087
8087
|
}
|
|
8088
|
-
function
|
|
8088
|
+
function eh(t) {
|
|
8089
8089
|
throw new TypeError(`Unexpected value: ${t}`);
|
|
8090
8090
|
}
|
|
8091
|
-
function
|
|
8091
|
+
function th(t) {
|
|
8092
8092
|
return !!(t && (typeof t == "object" || typeof t == "function") && typeof t.then == "function");
|
|
8093
8093
|
}
|
|
8094
8094
|
function Zt(t) {
|
|
@@ -8123,7 +8123,7 @@ builder.objectType('MyObject', {
|
|
|
8123
8123
|
`);
|
|
8124
8124
|
}
|
|
8125
8125
|
}
|
|
8126
|
-
function
|
|
8126
|
+
function nh(t) {
|
|
8127
8127
|
return typeof t == "object" && t !== null && Fr in t ? t[Fr] : null;
|
|
8128
8128
|
}
|
|
8129
8129
|
function Ss(t) {
|
|
@@ -8137,7 +8137,7 @@ function ht(t, e, n) {
|
|
|
8137
8137
|
writable: !0
|
|
8138
8138
|
}) : t[e] = n, t;
|
|
8139
8139
|
}
|
|
8140
|
-
class
|
|
8140
|
+
class ih {
|
|
8141
8141
|
getTypeConfig(e, n) {
|
|
8142
8142
|
const i = this.configStore.getTypeConfig(e, n);
|
|
8143
8143
|
return this.typeConfigs.has(i.name) || this.typeConfigs.set(i.name, this.plugin.onTypeConfig(i)), this.typeConfigs.get(i.name);
|
|
@@ -8166,7 +8166,7 @@ class rh {
|
|
|
8166
8166
|
}), this.configStore.typeConfigs.forEach((e) => {
|
|
8167
8167
|
e.kind === "InputObject" && this.buildTypeFromConfig(e);
|
|
8168
8168
|
}), this.types.forEach((e) => {
|
|
8169
|
-
e instanceof
|
|
8169
|
+
e instanceof Li && e.getFields();
|
|
8170
8170
|
}), this.configStore.typeConfigs.forEach((e) => {
|
|
8171
8171
|
e.kind === "Interface" && this.buildTypeFromConfig(e);
|
|
8172
8172
|
}), this.configStore.typeConfigs.forEach((e) => {
|
|
@@ -8204,7 +8204,7 @@ class rh {
|
|
|
8204
8204
|
this.addType(i, this.buildObject(n));
|
|
8205
8205
|
break;
|
|
8206
8206
|
default:
|
|
8207
|
-
|
|
8207
|
+
eh(n);
|
|
8208
8208
|
}
|
|
8209
8209
|
}
|
|
8210
8210
|
addType(e, n) {
|
|
@@ -8313,7 +8313,7 @@ class rh {
|
|
|
8313
8313
|
}
|
|
8314
8314
|
getOutputType(e) {
|
|
8315
8315
|
const n = this.getType(e);
|
|
8316
|
-
if (n instanceof
|
|
8316
|
+
if (n instanceof Li)
|
|
8317
8317
|
throw new ie(`Expected ${String(e)} to be an output type but it was defined as an InputObject`);
|
|
8318
8318
|
return n;
|
|
8319
8319
|
}
|
|
@@ -8379,7 +8379,7 @@ class rh {
|
|
|
8379
8379
|
}
|
|
8380
8380
|
buildInterface(e) {
|
|
8381
8381
|
const n = (r, s, o) => {
|
|
8382
|
-
const a =
|
|
8382
|
+
const a = nh(r);
|
|
8383
8383
|
if (a)
|
|
8384
8384
|
return typeof a == "string" ? a : this.getTypeConfig(a).name;
|
|
8385
8385
|
var u;
|
|
@@ -8416,7 +8416,7 @@ class rh {
|
|
|
8416
8416
|
}
|
|
8417
8417
|
return c;
|
|
8418
8418
|
};
|
|
8419
|
-
return
|
|
8419
|
+
return th(a) ? a.then(u) : u(a);
|
|
8420
8420
|
};
|
|
8421
8421
|
return new zn({
|
|
8422
8422
|
...e,
|
|
@@ -8430,7 +8430,7 @@ class rh {
|
|
|
8430
8430
|
});
|
|
8431
8431
|
}
|
|
8432
8432
|
buildInputObject(e) {
|
|
8433
|
-
const n = new
|
|
8433
|
+
const n = new Li({
|
|
8434
8434
|
...e,
|
|
8435
8435
|
extensions: {
|
|
8436
8436
|
...e.extensions,
|
|
@@ -8476,7 +8476,7 @@ class rh {
|
|
|
8476
8476
|
if (!o)
|
|
8477
8477
|
throw new Qi(`No plugin named ${s} was registered`);
|
|
8478
8478
|
return i[s] = new o(this, s), i[s];
|
|
8479
|
-
}), this.pluginMap = i, this.plugin = new
|
|
8479
|
+
}), this.pluginMap = i, this.plugin = new Bd(this, this.pluginList);
|
|
8480
8480
|
}
|
|
8481
8481
|
}
|
|
8482
8482
|
function os(t, e, n) {
|
|
@@ -8487,10 +8487,10 @@ function os(t, e, n) {
|
|
|
8487
8487
|
writable: !0
|
|
8488
8488
|
}) : t[e] = n, t;
|
|
8489
8489
|
}
|
|
8490
|
-
let
|
|
8491
|
-
class
|
|
8490
|
+
let rh = Wi;
|
|
8491
|
+
class sh extends Ne {
|
|
8492
8492
|
constructor(e, n) {
|
|
8493
|
-
super(e, n), os(this, "kind", void 0), os(this, "$inferInput", void 0), os(this,
|
|
8493
|
+
super(e, n), os(this, "kind", void 0), os(this, "$inferInput", void 0), os(this, rh, void 0), this.kind = e;
|
|
8494
8494
|
}
|
|
8495
8495
|
}
|
|
8496
8496
|
function er(t, e, n) {
|
|
@@ -8501,10 +8501,10 @@ function er(t, e, n) {
|
|
|
8501
8501
|
writable: !0
|
|
8502
8502
|
}) : t[e] = n, t;
|
|
8503
8503
|
}
|
|
8504
|
-
let
|
|
8505
|
-
class
|
|
8504
|
+
let oh = Pn, ah = di;
|
|
8505
|
+
class uh extends Ne {
|
|
8506
8506
|
constructor(e, n) {
|
|
8507
|
-
super(e, n), er(this, "kind", void 0), er(this, "$inferType", void 0), er(this,
|
|
8507
|
+
super(e, n), er(this, "kind", void 0), er(this, "$inferType", void 0), er(this, oh, void 0), er(this, ah, void 0), this.kind = e;
|
|
8508
8508
|
}
|
|
8509
8509
|
}
|
|
8510
8510
|
function Et(t, e, n) {
|
|
@@ -8515,7 +8515,7 @@ function Et(t, e, n) {
|
|
|
8515
8515
|
writable: !0
|
|
8516
8516
|
}) : t[e] = n, t;
|
|
8517
8517
|
}
|
|
8518
|
-
class
|
|
8518
|
+
class lh {
|
|
8519
8519
|
hasConfig(e) {
|
|
8520
8520
|
return typeof e == "string" ? this.typeConfigs.has(e) : this.refsToName.has(e);
|
|
8521
8521
|
}
|
|
@@ -8611,7 +8611,7 @@ class ch {
|
|
|
8611
8611
|
const n = this.typeConfigs.get(e);
|
|
8612
8612
|
if (n.graphqlKind !== "InputObject" && n.graphqlKind !== "Enum" && n.graphqlKind !== "Scalar")
|
|
8613
8613
|
throw new ie(`Expected ${n.name} to be an input type but got ${n.graphqlKind}`);
|
|
8614
|
-
const i = new
|
|
8614
|
+
const i = new sh(n.graphqlKind, n.name);
|
|
8615
8615
|
return this.refsToName.set(i, n.name), i;
|
|
8616
8616
|
}
|
|
8617
8617
|
}
|
|
@@ -8632,7 +8632,7 @@ class ch {
|
|
|
8632
8632
|
const n = this.typeConfigs.get(e);
|
|
8633
8633
|
if (n.graphqlKind === "InputObject")
|
|
8634
8634
|
throw new ie(`Expected ${n.name} to be an output type but got ${n.graphqlKind}`);
|
|
8635
|
-
const i = new
|
|
8635
|
+
const i = new uh(n.graphqlKind, n.name);
|
|
8636
8636
|
return this.refsToName.set(i, n.name), i;
|
|
8637
8637
|
}
|
|
8638
8638
|
}
|
|
@@ -8732,8 +8732,8 @@ function Bn(t, e, n) {
|
|
|
8732
8732
|
writable: !0
|
|
8733
8733
|
}) : t[e] = n, t;
|
|
8734
8734
|
}
|
|
8735
|
-
let
|
|
8736
|
-
class
|
|
8735
|
+
let ch = Gd;
|
|
8736
|
+
class fh {
|
|
8737
8737
|
toString() {
|
|
8738
8738
|
var e;
|
|
8739
8739
|
if (this.kind !== "Arg")
|
|
@@ -8745,7 +8745,7 @@ class dh {
|
|
|
8745
8745
|
return `${this.parentTypename}.${i}(${s})`;
|
|
8746
8746
|
}
|
|
8747
8747
|
constructor(e, n) {
|
|
8748
|
-
Bn(this, "kind", void 0), Bn(this, "parentTypename", void 0), Bn(this, "fieldName", void 0), Bn(this, "argFor", void 0), Bn(this, "$inferInput", void 0), Bn(this,
|
|
8748
|
+
Bn(this, "kind", void 0), Bn(this, "parentTypename", void 0), Bn(this, "fieldName", void 0), Bn(this, "argFor", void 0), Bn(this, "$inferInput", void 0), Bn(this, ch, void 0), this.kind = e, this.parentTypename = n;
|
|
8749
8749
|
}
|
|
8750
8750
|
}
|
|
8751
8751
|
function Ze(t, e, n) {
|
|
@@ -8771,7 +8771,7 @@ class _s {
|
|
|
8771
8771
|
* @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
|
|
8772
8772
|
*/
|
|
8773
8773
|
field(e) {
|
|
8774
|
-
const n = new
|
|
8774
|
+
const n = new fh(this.kind, this.typename);
|
|
8775
8775
|
return this.builder.configStore.addFieldRef(n, e.type, {}, (i, r, s) => {
|
|
8776
8776
|
var o;
|
|
8777
8777
|
return {
|
|
@@ -8815,7 +8815,7 @@ class _s {
|
|
|
8815
8815
|
}), this.builder = e, this.kind = n, this.typename = i;
|
|
8816
8816
|
}
|
|
8817
8817
|
}
|
|
8818
|
-
function
|
|
8818
|
+
function yi(t, e, n) {
|
|
8819
8819
|
return e in t ? Object.defineProperty(t, e, {
|
|
8820
8820
|
value: n,
|
|
8821
8821
|
enumerable: !0,
|
|
@@ -8823,13 +8823,13 @@ function mi(t, e, n) {
|
|
|
8823
8823
|
writable: !0
|
|
8824
8824
|
}) : t[e] = n, t;
|
|
8825
8825
|
}
|
|
8826
|
-
let
|
|
8827
|
-
class
|
|
8826
|
+
let dh = qd;
|
|
8827
|
+
class hh {
|
|
8828
8828
|
toString() {
|
|
8829
8829
|
return this.fieldName ? `${this.parentTypename}.${this.fieldName}` : this.parentTypename;
|
|
8830
8830
|
}
|
|
8831
8831
|
constructor(e, n) {
|
|
8832
|
-
|
|
8832
|
+
yi(this, "kind", void 0), yi(this, "parentTypename", void 0), yi(this, "fieldName", void 0), yi(this, "$inferType", void 0), yi(this, dh, void 0), this.kind = e, this.parentTypename = n;
|
|
8833
8833
|
}
|
|
8834
8834
|
}
|
|
8835
8835
|
function tr(t, e, n) {
|
|
@@ -8840,9 +8840,9 @@ function tr(t, e, n) {
|
|
|
8840
8840
|
writable: !0
|
|
8841
8841
|
}) : t[e] = n, t;
|
|
8842
8842
|
}
|
|
8843
|
-
class
|
|
8843
|
+
class ph {
|
|
8844
8844
|
createField(e) {
|
|
8845
|
-
const n = new
|
|
8845
|
+
const n = new hh(this.kind, this.typename);
|
|
8846
8846
|
var i;
|
|
8847
8847
|
return this.builder.configStore.addFieldRef(n, e.type, (i = e.args) !== null && i !== void 0 ? i : {}, (r, s, o) => {
|
|
8848
8848
|
var a;
|
|
@@ -8892,7 +8892,7 @@ class gh {
|
|
|
8892
8892
|
tr(this, "typename", void 0), tr(this, "builder", void 0), tr(this, "kind", void 0), tr(this, "graphqlKind", void 0), this.typename = e, this.builder = n, this.kind = i, this.graphqlKind = r;
|
|
8893
8893
|
}
|
|
8894
8894
|
}
|
|
8895
|
-
function
|
|
8895
|
+
function gh(t, e, n) {
|
|
8896
8896
|
return e in t ? Object.defineProperty(t, e, {
|
|
8897
8897
|
value: n,
|
|
8898
8898
|
enumerable: !0,
|
|
@@ -8900,7 +8900,7 @@ function mh(t, e, n) {
|
|
|
8900
8900
|
writable: !0
|
|
8901
8901
|
}) : t[e] = n, t;
|
|
8902
8902
|
}
|
|
8903
|
-
class Br extends
|
|
8903
|
+
class Br extends ph {
|
|
8904
8904
|
/**
|
|
8905
8905
|
* Create a Boolean field
|
|
8906
8906
|
* @param {PothosSchemaTypes.FieldOptions} options - Options for this field
|
|
@@ -9043,7 +9043,7 @@ class Br extends gh {
|
|
|
9043
9043
|
return new Vr(e, (i = n == null ? void 0 : n.nullable) !== null && i !== void 0 ? i : !1);
|
|
9044
9044
|
}
|
|
9045
9045
|
constructor(...e) {
|
|
9046
|
-
super(...e),
|
|
9046
|
+
super(...e), gh(this, "arg", new _s(this.builder, "Arg", this.typename).argBuilder());
|
|
9047
9047
|
}
|
|
9048
9048
|
}
|
|
9049
9049
|
class Vu extends Br {
|
|
@@ -9212,7 +9212,7 @@ class or extends Br {
|
|
|
9212
9212
|
super("Subscription", e, "Subscription", "Object");
|
|
9213
9213
|
}
|
|
9214
9214
|
}
|
|
9215
|
-
function
|
|
9215
|
+
function bi(t, e, n) {
|
|
9216
9216
|
return e in t ? Object.defineProperty(t, e, {
|
|
9217
9217
|
value: n,
|
|
9218
9218
|
enumerable: !0,
|
|
@@ -9220,10 +9220,10 @@ function yi(t, e, n) {
|
|
|
9220
9220
|
writable: !0
|
|
9221
9221
|
}) : t[e] = n, t;
|
|
9222
9222
|
}
|
|
9223
|
-
let
|
|
9224
|
-
class
|
|
9223
|
+
let mh = Pn, yh = Wi;
|
|
9224
|
+
class bh extends Ne {
|
|
9225
9225
|
constructor(e) {
|
|
9226
|
-
super("Enum", e),
|
|
9226
|
+
super("Enum", e), bi(this, "kind", "Enum"), bi(this, "$inferType", void 0), bi(this, "$inferInput", void 0), bi(this, mh, void 0), bi(this, yh, void 0);
|
|
9227
9227
|
}
|
|
9228
9228
|
}
|
|
9229
9229
|
function pr(t, e, n) {
|
|
@@ -9234,13 +9234,13 @@ function pr(t, e, n) {
|
|
|
9234
9234
|
writable: !0
|
|
9235
9235
|
}) : t[e] = n, t;
|
|
9236
9236
|
}
|
|
9237
|
-
let
|
|
9237
|
+
let wh = Wi;
|
|
9238
9238
|
class Bu extends Ne {
|
|
9239
9239
|
constructor(e) {
|
|
9240
|
-
super("InputObject", e), pr(this, "kind", "InputObject"), pr(this, "$inferInput", void 0), pr(this,
|
|
9240
|
+
super("InputObject", e), pr(this, "kind", "InputObject"), pr(this, "$inferInput", void 0), pr(this, wh, void 0);
|
|
9241
9241
|
}
|
|
9242
9242
|
}
|
|
9243
|
-
class
|
|
9243
|
+
class Eh extends Bu {
|
|
9244
9244
|
implement(e) {
|
|
9245
9245
|
return this.builder.inputType(this, e), this;
|
|
9246
9246
|
}
|
|
@@ -9248,7 +9248,7 @@ class vh extends Bu {
|
|
|
9248
9248
|
super(n), pr(this, "builder", void 0), this.builder = e;
|
|
9249
9249
|
}
|
|
9250
9250
|
}
|
|
9251
|
-
function
|
|
9251
|
+
function Ii(t, e, n) {
|
|
9252
9252
|
return e in t ? Object.defineProperty(t, e, {
|
|
9253
9253
|
value: n,
|
|
9254
9254
|
enumerable: !0,
|
|
@@ -9256,21 +9256,21 @@ function _i(t, e, n) {
|
|
|
9256
9256
|
writable: !0
|
|
9257
9257
|
}) : t[e] = n, t;
|
|
9258
9258
|
}
|
|
9259
|
-
let
|
|
9259
|
+
let vh = Pn, Th = di;
|
|
9260
9260
|
class Gu extends Ne {
|
|
9261
9261
|
constructor(e) {
|
|
9262
|
-
super("Interface", e),
|
|
9262
|
+
super("Interface", e), Ii(this, "kind", "Interface"), Ii(this, "$inferType", void 0), Ii(this, vh, void 0), Ii(this, Th, void 0);
|
|
9263
9263
|
}
|
|
9264
9264
|
}
|
|
9265
|
-
class
|
|
9265
|
+
class Sh extends Gu {
|
|
9266
9266
|
implement(e) {
|
|
9267
9267
|
return this.builder.interfaceType(this, e);
|
|
9268
9268
|
}
|
|
9269
9269
|
constructor(e, n) {
|
|
9270
|
-
super(n),
|
|
9270
|
+
super(n), Ii(this, "builder", void 0), this.builder = e;
|
|
9271
9271
|
}
|
|
9272
9272
|
}
|
|
9273
|
-
function
|
|
9273
|
+
function Oi(t, e, n) {
|
|
9274
9274
|
return e in t ? Object.defineProperty(t, e, {
|
|
9275
9275
|
value: n,
|
|
9276
9276
|
enumerable: !0,
|
|
@@ -9278,18 +9278,18 @@ function Ii(t, e, n) {
|
|
|
9278
9278
|
writable: !0
|
|
9279
9279
|
}) : t[e] = n, t;
|
|
9280
9280
|
}
|
|
9281
|
-
let
|
|
9281
|
+
let _h = Pn, Ih = di;
|
|
9282
9282
|
class Is extends Ne {
|
|
9283
9283
|
constructor(e) {
|
|
9284
|
-
super("Object", e),
|
|
9284
|
+
super("Object", e), Oi(this, "kind", "Object"), Oi(this, "$inferType", void 0), Oi(this, _h, void 0), Oi(this, Ih, void 0);
|
|
9285
9285
|
}
|
|
9286
9286
|
}
|
|
9287
|
-
class
|
|
9287
|
+
class Oh extends Is {
|
|
9288
9288
|
implement(e) {
|
|
9289
9289
|
return this.builder.objectType(this, e);
|
|
9290
9290
|
}
|
|
9291
9291
|
constructor(e, n) {
|
|
9292
|
-
super(n),
|
|
9292
|
+
super(n), Oi(this, "builder", void 0), this.builder = e;
|
|
9293
9293
|
}
|
|
9294
9294
|
}
|
|
9295
9295
|
function ar(t, e, n) {
|
|
@@ -9300,10 +9300,10 @@ function ar(t, e, n) {
|
|
|
9300
9300
|
writable: !0
|
|
9301
9301
|
}) : t[e] = n, t;
|
|
9302
9302
|
}
|
|
9303
|
-
let
|
|
9304
|
-
class
|
|
9303
|
+
let Nh = Pn, Ah = di;
|
|
9304
|
+
class xh extends Ne {
|
|
9305
9305
|
constructor(e) {
|
|
9306
|
-
super("Union", e), ar(this, "kind", "Union"), ar(this, "$inferType", void 0), ar(this,
|
|
9306
|
+
super("Union", e), ar(this, "kind", "Union"), ar(this, "$inferType", void 0), ar(this, Nh, void 0), ar(this, Ah, void 0);
|
|
9307
9307
|
}
|
|
9308
9308
|
}
|
|
9309
9309
|
function Qn(t, e, n) {
|
|
@@ -9441,7 +9441,7 @@ let to = class {
|
|
|
9441
9441
|
});
|
|
9442
9442
|
}
|
|
9443
9443
|
unionType(e, n) {
|
|
9444
|
-
const i = new
|
|
9444
|
+
const i = new xh(e);
|
|
9445
9445
|
Array.isArray(n.types) && n.types.forEach((s) => {
|
|
9446
9446
|
Zt(s);
|
|
9447
9447
|
});
|
|
@@ -9459,11 +9459,11 @@ let to = class {
|
|
|
9459
9459
|
}
|
|
9460
9460
|
enumType(e, n) {
|
|
9461
9461
|
Zt(e);
|
|
9462
|
-
const i = typeof e == "string" ? e : n.name, r = new
|
|
9462
|
+
const i = typeof e == "string" ? e : n.name, r = new bh(i), s = typeof e == "object" ? Zd(
|
|
9463
9463
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
9464
9464
|
e,
|
|
9465
9465
|
n == null ? void 0 : n.values
|
|
9466
|
-
) :
|
|
9466
|
+
) : Xd(n.values), o = {
|
|
9467
9467
|
kind: "Enum",
|
|
9468
9468
|
graphqlKind: "Enum",
|
|
9469
9469
|
name: i,
|
|
@@ -9513,13 +9513,13 @@ let to = class {
|
|
|
9513
9513
|
return this.configStore.addTypeConfig(s, r), this.configStore.addFields(r, () => n.fields(new _s(this, "InputObject", i))), r;
|
|
9514
9514
|
}
|
|
9515
9515
|
inputRef(e) {
|
|
9516
|
-
return new
|
|
9516
|
+
return new Eh(this, e);
|
|
9517
9517
|
}
|
|
9518
9518
|
objectRef(e) {
|
|
9519
|
-
return new
|
|
9519
|
+
return new Oh(this, e);
|
|
9520
9520
|
}
|
|
9521
9521
|
interfaceRef(e) {
|
|
9522
|
-
return new
|
|
9522
|
+
return new Sh(this, e);
|
|
9523
9523
|
}
|
|
9524
9524
|
toSchema(...e) {
|
|
9525
9525
|
const [n = {}] = e, { directives: i, extensions: r } = n;
|
|
@@ -9532,7 +9532,7 @@ let to = class {
|
|
|
9532
9532
|
].forEach((f) => {
|
|
9533
9533
|
this.configStore.hasConfig(f.name) || this.addScalarType(f.name, f);
|
|
9534
9534
|
});
|
|
9535
|
-
const o = new
|
|
9535
|
+
const o = new ih(this, n);
|
|
9536
9536
|
o.plugin.beforeBuild(), o.buildAll();
|
|
9537
9537
|
const a = [
|
|
9538
9538
|
...o.types.values()
|
|
@@ -9544,10 +9544,10 @@ let to = class {
|
|
|
9544
9544
|
directives: i,
|
|
9545
9545
|
types: a
|
|
9546
9546
|
}), c = o.plugin.afterBuild(u);
|
|
9547
|
-
return n.sortSchema === !1 ? c :
|
|
9547
|
+
return n.sortSchema === !1 ? c : jd(c);
|
|
9548
9548
|
}
|
|
9549
9549
|
constructor(e) {
|
|
9550
|
-
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
|
|
9550
|
+
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 lh();
|
|
9551
9551
|
var n;
|
|
9552
9552
|
this.defaultFieldNullability = (n = e.defaultFieldNullability) !== null && n !== void 0 ? n : !1;
|
|
9553
9553
|
var i;
|
|
@@ -9556,7 +9556,7 @@ let to = class {
|
|
|
9556
9556
|
};
|
|
9557
9557
|
Qn(to, "plugins", {});
|
|
9558
9558
|
Qn(to, "allowPluginReRegistration", !1);
|
|
9559
|
-
const
|
|
9559
|
+
const Fh = to;
|
|
9560
9560
|
function Zo(t) {
|
|
9561
9561
|
return t;
|
|
9562
9562
|
}
|
|
@@ -9593,7 +9593,7 @@ function no(t, e, n) {
|
|
|
9593
9593
|
throw new TypeError(t + " cannot represent value: " + be(e));
|
|
9594
9594
|
}
|
|
9595
9595
|
}
|
|
9596
|
-
var
|
|
9596
|
+
var Rh = new Vt({
|
|
9597
9597
|
name: "JSON",
|
|
9598
9598
|
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).",
|
|
9599
9599
|
specifiedByUrl: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf",
|
|
@@ -9602,7 +9602,7 @@ var Lh = new Vt({
|
|
|
9602
9602
|
parseLiteral: function(e, n) {
|
|
9603
9603
|
return no("JSON", e, n);
|
|
9604
9604
|
}
|
|
9605
|
-
}),
|
|
9605
|
+
}), Lh = new Vt({
|
|
9606
9606
|
name: "JSONObject",
|
|
9607
9607
|
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).",
|
|
9608
9608
|
specifiedByUrl: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf",
|
|
@@ -9625,7 +9625,7 @@ function Gr(t, e) {
|
|
|
9625
9625
|
case "function":
|
|
9626
9626
|
return t.name ? `[function ${t.name}]` : "[function]";
|
|
9627
9627
|
case "object":
|
|
9628
|
-
return
|
|
9628
|
+
return Ch(t, e);
|
|
9629
9629
|
default:
|
|
9630
9630
|
return String(t);
|
|
9631
9631
|
}
|
|
@@ -9634,7 +9634,7 @@ function ta(t) {
|
|
|
9634
9634
|
return (t.name = "GraphQLError") ? t.toString() : `${t.name}: ${t.message};
|
|
9635
9635
|
${t.stack}`;
|
|
9636
9636
|
}
|
|
9637
|
-
function
|
|
9637
|
+
function Ch(t, e) {
|
|
9638
9638
|
if (t === null)
|
|
9639
9639
|
return "null";
|
|
9640
9640
|
if (t instanceof Error)
|
|
@@ -9643,20 +9643,20 @@ function kh(t, e) {
|
|
|
9643
9643
|
if (e.includes(t))
|
|
9644
9644
|
return "[Circular]";
|
|
9645
9645
|
const n = [...e, t];
|
|
9646
|
-
if (
|
|
9646
|
+
if (kh(t)) {
|
|
9647
9647
|
const i = t.toJSON();
|
|
9648
9648
|
if (i !== t)
|
|
9649
9649
|
return typeof i == "string" ? i : Gr(i, n);
|
|
9650
9650
|
} else if (Array.isArray(t))
|
|
9651
9651
|
return na(t, n);
|
|
9652
|
-
return
|
|
9652
|
+
return Dh(t, n);
|
|
9653
9653
|
}
|
|
9654
|
-
function
|
|
9654
|
+
function kh(t) {
|
|
9655
9655
|
return typeof t.toJSON == "function";
|
|
9656
9656
|
}
|
|
9657
|
-
function
|
|
9657
|
+
function Dh(t, e) {
|
|
9658
9658
|
const n = Object.entries(t);
|
|
9659
|
-
return n.length === 0 ? "{}" : e.length > zu ? "[" +
|
|
9659
|
+
return n.length === 0 ? "{}" : e.length > zu ? "[" + $h(t) + "]" : "{ " + n.map(([r, s]) => r + ": " + Gr(s, e)).join(", ") + " }";
|
|
9660
9660
|
}
|
|
9661
9661
|
function na(t, e) {
|
|
9662
9662
|
if (t.length === 0)
|
|
@@ -9668,7 +9668,7 @@ function na(t, e) {
|
|
|
9668
9668
|
i.push(Gr(t[r], e));
|
|
9669
9669
|
return "[" + i.join(", ") + "]";
|
|
9670
9670
|
}
|
|
9671
|
-
function
|
|
9671
|
+
function $h(t) {
|
|
9672
9672
|
const e = Object.prototype.toString.call(t).replace(/^\[object /, "").replace(/]$/, "");
|
|
9673
9673
|
if (e === "Object" && typeof t.constructor == "function") {
|
|
9674
9674
|
const n = t.constructor.name;
|
|
@@ -9677,7 +9677,7 @@ function jh(t) {
|
|
|
9677
9677
|
}
|
|
9678
9678
|
return e;
|
|
9679
9679
|
}
|
|
9680
|
-
const
|
|
9680
|
+
const jh = [
|
|
9681
9681
|
"message",
|
|
9682
9682
|
"locations",
|
|
9683
9683
|
"path",
|
|
@@ -9689,13 +9689,13 @@ const Ph = [
|
|
|
9689
9689
|
"stack",
|
|
9690
9690
|
"extensions"
|
|
9691
9691
|
];
|
|
9692
|
-
function
|
|
9693
|
-
return t != null && typeof t == "object" && Object.keys(t).every((e) =>
|
|
9692
|
+
function Ph(t) {
|
|
9693
|
+
return t != null && typeof t == "object" && Object.keys(t).every((e) => jh.includes(e));
|
|
9694
9694
|
}
|
|
9695
9695
|
function X(t, e) {
|
|
9696
|
-
return e != null && e.originalError && !(e.originalError instanceof Error) &&
|
|
9696
|
+
return e != null && e.originalError && !(e.originalError instanceof Error) && Ph(e.originalError) && (e.originalError = X(e.originalError.message, e.originalError)), Ka.major >= 17 ? new j(t, e) : new j(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);
|
|
9697
9697
|
}
|
|
9698
|
-
function
|
|
9698
|
+
function Mh(t) {
|
|
9699
9699
|
return t != null && typeof t == "object" && Symbol.iterator in t;
|
|
9700
9700
|
}
|
|
9701
9701
|
function Qu(t) {
|
|
@@ -9704,7 +9704,7 @@ function Qu(t) {
|
|
|
9704
9704
|
function Ae(t) {
|
|
9705
9705
|
return (t == null ? void 0 : t.then) != null;
|
|
9706
9706
|
}
|
|
9707
|
-
function
|
|
9707
|
+
function Uh(t, e, n) {
|
|
9708
9708
|
let i = n;
|
|
9709
9709
|
for (const r of t)
|
|
9710
9710
|
i = Ae(i) ? i.then((s) => e(s, r)) : e(i, r);
|
|
@@ -9768,7 +9768,7 @@ function Yu(t) {
|
|
|
9768
9768
|
return r;
|
|
9769
9769
|
};
|
|
9770
9770
|
}
|
|
9771
|
-
function
|
|
9771
|
+
function Vh(t) {
|
|
9772
9772
|
const e = /* @__PURE__ */ new WeakMap();
|
|
9773
9773
|
return function(i, r, s) {
|
|
9774
9774
|
let o = e.get(i);
|
|
@@ -9793,7 +9793,7 @@ function Bh(t) {
|
|
|
9793
9793
|
return u;
|
|
9794
9794
|
};
|
|
9795
9795
|
}
|
|
9796
|
-
function
|
|
9796
|
+
function Bh(t) {
|
|
9797
9797
|
const e = /* @__PURE__ */ new WeakMap();
|
|
9798
9798
|
return function(i, r, s, o, a) {
|
|
9799
9799
|
let u = e.get(i);
|
|
@@ -9840,15 +9840,15 @@ function Gh(t) {
|
|
|
9840
9840
|
return p;
|
|
9841
9841
|
};
|
|
9842
9842
|
}
|
|
9843
|
-
function
|
|
9844
|
-
const r =
|
|
9843
|
+
function Gh(t, e, n) {
|
|
9844
|
+
const r = qh(t).get(e);
|
|
9845
9845
|
if (r == null)
|
|
9846
9846
|
throw X(`Schema is not configured to execute ${e} operation.`, {
|
|
9847
9847
|
nodes: n
|
|
9848
9848
|
});
|
|
9849
9849
|
return r;
|
|
9850
9850
|
}
|
|
9851
|
-
const
|
|
9851
|
+
const qh = Yu(function(e) {
|
|
9852
9852
|
const n = /* @__PURE__ */ new Map(), i = e.getQueryType();
|
|
9853
9853
|
i && n.set("query", i);
|
|
9854
9854
|
const r = e.getMutationType();
|
|
@@ -9901,7 +9901,7 @@ class Rr extends Map {
|
|
|
9901
9901
|
i === void 0 ? this.set(e, [n]) : i.push(n);
|
|
9902
9902
|
}
|
|
9903
9903
|
}
|
|
9904
|
-
const
|
|
9904
|
+
const zh = new rn({
|
|
9905
9905
|
name: "defer",
|
|
9906
9906
|
description: "Directs the executor to defer this fragment when the `if` argument is true or undefined.",
|
|
9907
9907
|
locations: [K.FRAGMENT_SPREAD, K.INLINE_FRAGMENT],
|
|
@@ -9916,7 +9916,7 @@ const Qh = new rn({
|
|
|
9916
9916
|
description: "Unique name"
|
|
9917
9917
|
}
|
|
9918
9918
|
}
|
|
9919
|
-
}),
|
|
9919
|
+
}), Qh = new rn({
|
|
9920
9920
|
name: "stream",
|
|
9921
9921
|
description: "Directs the executor to stream plural fields when the `if` argument is true or undefined.",
|
|
9922
9922
|
locations: [K.FIELD],
|
|
@@ -9943,7 +9943,7 @@ function Wn(t, e, n, i, r, s, o, a) {
|
|
|
9943
9943
|
case I.FIELD: {
|
|
9944
9944
|
if (!as(n, u))
|
|
9945
9945
|
continue;
|
|
9946
|
-
s.add(
|
|
9946
|
+
s.add(Wh(u), u);
|
|
9947
9947
|
break;
|
|
9948
9948
|
}
|
|
9949
9949
|
case I.INLINE_FRAGMENT: {
|
|
@@ -10000,17 +10000,17 @@ function sa(t, e, n) {
|
|
|
10000
10000
|
const r = it(t, i);
|
|
10001
10001
|
return r === n ? !0 : nn(r) ? t.getPossibleTypes(r).includes(n) : !1;
|
|
10002
10002
|
}
|
|
10003
|
-
function
|
|
10003
|
+
function Wh(t) {
|
|
10004
10004
|
return t.alias ? t.alias.value : t.name.value;
|
|
10005
10005
|
}
|
|
10006
10006
|
function oa(t, e) {
|
|
10007
|
-
const n = ui(
|
|
10007
|
+
const n = ui(zh, e, t);
|
|
10008
10008
|
if (n && n.if !== !1)
|
|
10009
10009
|
return {
|
|
10010
10010
|
label: typeof n.label == "string" ? n.label : void 0
|
|
10011
10011
|
};
|
|
10012
10012
|
}
|
|
10013
|
-
const
|
|
10013
|
+
const Hh = Bh(function(e, n, i, r, s) {
|
|
10014
10014
|
const o = new Rr(), a = /* @__PURE__ */ new Set(), u = [], c = {
|
|
10015
10015
|
fields: o,
|
|
10016
10016
|
patches: u
|
|
@@ -10022,7 +10022,7 @@ const Yh = Gh(function(e, n, i, r, s) {
|
|
|
10022
10022
|
function qr(t) {
|
|
10023
10023
|
return (t == null ? void 0 : t[Symbol.asyncIterator]) != null;
|
|
10024
10024
|
}
|
|
10025
|
-
function
|
|
10025
|
+
function hi(t, e, n) {
|
|
10026
10026
|
return { prev: t, key: e, typename: n };
|
|
10027
10027
|
}
|
|
10028
10028
|
function Ve(t) {
|
|
@@ -10032,13 +10032,13 @@ function Ve(t) {
|
|
|
10032
10032
|
e.push(n.key), n = n.prev;
|
|
10033
10033
|
return e.reverse();
|
|
10034
10034
|
}
|
|
10035
|
-
function
|
|
10035
|
+
function Yh(t) {
|
|
10036
10036
|
return t.map((e) => typeof e == "number" ? "[" + e.toString() + "]" : "." + e).join("");
|
|
10037
10037
|
}
|
|
10038
|
-
function
|
|
10038
|
+
function Jh(t) {
|
|
10039
10039
|
return t != null && typeof t == "object" && "errors" in t;
|
|
10040
10040
|
}
|
|
10041
|
-
function
|
|
10041
|
+
function Kh(t) {
|
|
10042
10042
|
return t != null && typeof t.toString == "function";
|
|
10043
10043
|
}
|
|
10044
10044
|
function li(t) {
|
|
@@ -10053,7 +10053,7 @@ function Zu(t) {
|
|
|
10053
10053
|
}
|
|
10054
10054
|
function gr(t, e, n) {
|
|
10055
10055
|
const i = /* @__PURE__ */ new Set();
|
|
10056
|
-
if (
|
|
10056
|
+
if (Jh(t))
|
|
10057
10057
|
for (const r of t.errors) {
|
|
10058
10058
|
const s = gr(r, e, n);
|
|
10059
10059
|
for (const o of s)
|
|
@@ -10072,7 +10072,7 @@ function gr(t, e, n) {
|
|
|
10072
10072
|
extensions: {
|
|
10073
10073
|
unexpected: !0
|
|
10074
10074
|
}
|
|
10075
|
-
})) :
|
|
10075
|
+
})) : Kh(t) ? i.add(X(t.toString(), {
|
|
10076
10076
|
extensions: {
|
|
10077
10077
|
unexpected: !0
|
|
10078
10078
|
}
|
|
@@ -10102,7 +10102,7 @@ function io(t, e = {}, n = !1) {
|
|
|
10102
10102
|
headers: e
|
|
10103
10103
|
};
|
|
10104
10104
|
}
|
|
10105
|
-
function
|
|
10105
|
+
function Xh(t) {
|
|
10106
10106
|
return Array.isArray(t) && t.length > 0 && // if one item in the array is a GraphQLError, we're good
|
|
10107
10107
|
t.some(li);
|
|
10108
10108
|
}
|
|
@@ -10112,39 +10112,39 @@ const En = {
|
|
|
10112
10112
|
magenta: "\x1B[35m",
|
|
10113
10113
|
cyan: "\x1B[36m",
|
|
10114
10114
|
reset: "\x1B[0m"
|
|
10115
|
-
}, aa = En.yellow + "WARN" + En.reset, ua = En.cyan + "INFO" + En.reset, la = En.red + "ERR" + En.reset, ca = En.magenta + "DEBUG" + En.reset,
|
|
10115
|
+
}, aa = En.yellow + "WARN" + En.reset, ua = En.cyan + "INFO" + En.reset, la = En.red + "ERR" + En.reset, ca = En.magenta + "DEBUG" + En.reset, wi = {
|
|
10116
10116
|
debug: 0,
|
|
10117
10117
|
info: 1,
|
|
10118
10118
|
warn: 2,
|
|
10119
10119
|
error: 3,
|
|
10120
10120
|
silent: 4
|
|
10121
10121
|
}, ur = () => {
|
|
10122
|
-
}, zr = (t) => (...e) => console.log(t, ...e),
|
|
10123
|
-
const n =
|
|
10122
|
+
}, zr = (t) => (...e) => console.log(t, ...e), Zh = console.debug ? (...t) => console.debug(ca, ...t) : zr(ca), ep = console.info ? (...t) => console.info(ua, ...t) : zr(ua), tp = console.warn ? (...t) => console.warn(aa, ...t) : zr(aa), np = console.error ? (...t) => console.error(la, ...t) : zr(la), us = (t = ((e) => (e = globalThis.process) == null ? void 0 : e.env.DEBUG)() === "1" ? "debug" : "info") => {
|
|
10123
|
+
const n = wi[t];
|
|
10124
10124
|
return {
|
|
10125
|
-
debug: n >
|
|
10126
|
-
info: n >
|
|
10127
|
-
warn: n >
|
|
10128
|
-
error: n >
|
|
10125
|
+
debug: n > wi.debug ? ur : Zh,
|
|
10126
|
+
info: n > wi.info ? ur : ep,
|
|
10127
|
+
warn: n > wi.warn ? ur : tp,
|
|
10128
|
+
error: n > wi.error ? ur : np
|
|
10129
10129
|
};
|
|
10130
|
-
},
|
|
10131
|
-
function
|
|
10130
|
+
}, ip = '<!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>';
|
|
10131
|
+
function rp({ headers: t, method: e }) {
|
|
10132
10132
|
var n;
|
|
10133
10133
|
return e === "GET" && !!((n = t == null ? void 0 : t.get("accept")) != null && n.includes("text/html"));
|
|
10134
10134
|
}
|
|
10135
|
-
const
|
|
10136
|
-
function
|
|
10135
|
+
const sp = (t) => ip.replace("__TITLE__", (t == null ? void 0 : t.title) || "Yoga GraphiQL").replace("__OPTS__", JSON.stringify(t ?? {}));
|
|
10136
|
+
function op(t) {
|
|
10137
10137
|
const e = t.logger ?? console;
|
|
10138
10138
|
let n;
|
|
10139
10139
|
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 = () => ({});
|
|
10140
|
-
const i = (t == null ? void 0 : t.render) ??
|
|
10140
|
+
const i = (t == null ? void 0 : t.render) ?? sp;
|
|
10141
10141
|
let r;
|
|
10142
10142
|
const s = ({ URLPattern: o }) => (r || (r = new o({
|
|
10143
10143
|
pathname: t.graphqlEndpoint
|
|
10144
10144
|
})), r);
|
|
10145
10145
|
return {
|
|
10146
10146
|
async onRequest({ request: o, serverContext: a, fetchAPI: u, endResponse: c, url: f }) {
|
|
10147
|
-
if (
|
|
10147
|
+
if (rp(o) && (o.url.endsWith(t.graphqlEndpoint) || o.url.endsWith(`${t.graphqlEndpoint}/`) || f.pathname === t.graphqlEndpoint || f.pathname === `${t.graphqlEndpoint}/` || s(u).test(f))) {
|
|
10148
10148
|
e.debug("Rendering GraphiQL");
|
|
10149
10149
|
const g = await n(o, a);
|
|
10150
10150
|
if (g) {
|
|
@@ -10162,7 +10162,7 @@ function ap(t) {
|
|
|
10162
10162
|
}
|
|
10163
10163
|
};
|
|
10164
10164
|
}
|
|
10165
|
-
const
|
|
10165
|
+
const ap = (t) => {
|
|
10166
10166
|
if (t == null)
|
|
10167
10167
|
return {};
|
|
10168
10168
|
if (Au(t))
|
|
@@ -10211,10 +10211,10 @@ const up = (t) => {
|
|
|
10211
10211
|
}
|
|
10212
10212
|
};
|
|
10213
10213
|
};
|
|
10214
|
-
function
|
|
10214
|
+
function up(t) {
|
|
10215
10215
|
return t != null && typeof t.then == "function";
|
|
10216
10216
|
}
|
|
10217
|
-
const
|
|
10217
|
+
const lp = (t) => {
|
|
10218
10218
|
throw t;
|
|
10219
10219
|
};
|
|
10220
10220
|
class pt {
|
|
@@ -10227,7 +10227,7 @@ class pt {
|
|
|
10227
10227
|
this.state = { status: "rejected", value: i };
|
|
10228
10228
|
return;
|
|
10229
10229
|
}
|
|
10230
|
-
if (
|
|
10230
|
+
if (up(n)) {
|
|
10231
10231
|
this.state = { status: "pending", value: n };
|
|
10232
10232
|
return;
|
|
10233
10233
|
}
|
|
@@ -10237,7 +10237,7 @@ class pt {
|
|
|
10237
10237
|
const i = this.state;
|
|
10238
10238
|
if (i.status === "pending")
|
|
10239
10239
|
return new pt(() => i.value.then(e, n));
|
|
10240
|
-
const r = typeof n == "function" ? n :
|
|
10240
|
+
const r = typeof n == "function" ? n : lp;
|
|
10241
10241
|
if (i.status === "rejected")
|
|
10242
10242
|
return new pt(() => r(i.value));
|
|
10243
10243
|
try {
|
|
@@ -10288,7 +10288,7 @@ function Wt(t) {
|
|
|
10288
10288
|
}
|
|
10289
10289
|
return new Error(String(t));
|
|
10290
10290
|
}
|
|
10291
|
-
function
|
|
10291
|
+
function cp(t) {
|
|
10292
10292
|
const e = t[Symbol.asyncIterator]();
|
|
10293
10293
|
let n, i, r = !1;
|
|
10294
10294
|
async function s() {
|
|
@@ -10340,10 +10340,10 @@ async function da(t, e) {
|
|
|
10340
10340
|
})).then(() => i(), r);
|
|
10341
10341
|
}), n;
|
|
10342
10342
|
}
|
|
10343
|
-
function
|
|
10343
|
+
function fp(t, e, n, i) {
|
|
10344
10344
|
const r = [], s = i == null ? void 0 : i.maxErrors;
|
|
10345
10345
|
try {
|
|
10346
|
-
const o =
|
|
10346
|
+
const o = dp(t, e, n, (a) => {
|
|
10347
10347
|
if (s != null && r.length >= s)
|
|
10348
10348
|
throw X("Too many errors processing variables, error limit reached. Execution aborted.");
|
|
10349
10349
|
r.push(a);
|
|
@@ -10355,7 +10355,7 @@ function dp(t, e, n, i) {
|
|
|
10355
10355
|
}
|
|
10356
10356
|
return { errors: r };
|
|
10357
10357
|
}
|
|
10358
|
-
function
|
|
10358
|
+
function dp(t, e, n, i) {
|
|
10359
10359
|
const r = {};
|
|
10360
10360
|
for (const s of e) {
|
|
10361
10361
|
const o = s.variable.name.value, a = it(t, s.type);
|
|
@@ -10383,9 +10383,9 @@ function hp(t, e, n, i) {
|
|
|
10383
10383
|
}));
|
|
10384
10384
|
continue;
|
|
10385
10385
|
}
|
|
10386
|
-
r[o] =
|
|
10386
|
+
r[o] = dd(u, a, (c, f, g) => {
|
|
10387
10387
|
let p = `Variable "$${o}" got invalid value ` + nt(f);
|
|
10388
|
-
c.length > 0 && (p += ` at "${o}${
|
|
10388
|
+
c.length > 0 && (p += ` at "${o}${Yh(c)}"`), i(X(p + "; " + g.message, {
|
|
10389
10389
|
nodes: s,
|
|
10390
10390
|
originalError: g
|
|
10391
10391
|
}));
|
|
@@ -10393,8 +10393,8 @@ function hp(t, e, n, i) {
|
|
|
10393
10393
|
}
|
|
10394
10394
|
return r;
|
|
10395
10395
|
}
|
|
10396
|
-
const
|
|
10397
|
-
function
|
|
10396
|
+
const hp = Vh((t, e, n) => Hh(t.schema, t.fragments, t.variableValues, e, n));
|
|
10397
|
+
function pp(t) {
|
|
10398
10398
|
const e = tl(t);
|
|
10399
10399
|
return "schema" in e ? el(e) : {
|
|
10400
10400
|
errors: e.map((n) => {
|
|
@@ -10415,14 +10415,14 @@ function el(t) {
|
|
|
10415
10415
|
var n;
|
|
10416
10416
|
if ((n = t.signal) != null && n.aborted)
|
|
10417
10417
|
throw t.signal.reason;
|
|
10418
|
-
return new pt(() =>
|
|
10418
|
+
return new pt(() => yp(t)).then((i) => {
|
|
10419
10419
|
const r = ha(i, t.errors);
|
|
10420
10420
|
return t.subsequentPayloads.size > 0 ? {
|
|
10421
10421
|
initialResult: {
|
|
10422
10422
|
...r,
|
|
10423
10423
|
hasNext: !0
|
|
10424
10424
|
},
|
|
10425
|
-
subsequentResults:
|
|
10425
|
+
subsequentResults: Cp(t)
|
|
10426
10426
|
} : r;
|
|
10427
10427
|
}, (i) => {
|
|
10428
10428
|
var r;
|
|
@@ -10434,7 +10434,7 @@ function el(t) {
|
|
|
10434
10434
|
function ha(t, e) {
|
|
10435
10435
|
return e.length === 0 ? { data: t } : { errors: e, data: t };
|
|
10436
10436
|
}
|
|
10437
|
-
const
|
|
10437
|
+
const gp = Yu(function(e) {
|
|
10438
10438
|
const n = /* @__PURE__ */ Object.create(null);
|
|
10439
10439
|
for (const i of e.definitions)
|
|
10440
10440
|
i.kind === I.FRAGMENT_DEFINITION && (n[i.name.value] = i);
|
|
@@ -10444,7 +10444,7 @@ function tl(t) {
|
|
|
10444
10444
|
var R;
|
|
10445
10445
|
const { schema: e, document: n, rootValue: i, contextValue: r, variableValues: s, operationName: o, fieldResolver: a, typeResolver: u, subscribeFieldResolver: c, signal: f } = t;
|
|
10446
10446
|
xu(e);
|
|
10447
|
-
const g =
|
|
10447
|
+
const g = gp(n);
|
|
10448
10448
|
let p;
|
|
10449
10449
|
for (const x of n.definitions)
|
|
10450
10450
|
switch (x.kind) {
|
|
@@ -10460,7 +10460,7 @@ function tl(t) {
|
|
|
10460
10460
|
}
|
|
10461
10461
|
if (p == null)
|
|
10462
10462
|
return o != null ? [X(`Unknown operation named "${o}".`)] : [X("Must provide an operation.")];
|
|
10463
|
-
const v = p.variableDefinitions ?? [], w =
|
|
10463
|
+
const v = p.variableDefinitions ?? [], w = fp(e, v, s ?? {}, {
|
|
10464
10464
|
maxErrors: 50
|
|
10465
10465
|
});
|
|
10466
10466
|
return w.errors ? w.errors : {
|
|
@@ -10471,14 +10471,14 @@ function tl(t) {
|
|
|
10471
10471
|
operation: p,
|
|
10472
10472
|
variableValues: w.coerced,
|
|
10473
10473
|
fieldResolver: a ?? ya,
|
|
10474
|
-
typeResolver: u ??
|
|
10474
|
+
typeResolver: u ?? _p,
|
|
10475
10475
|
subscribeFieldResolver: c ?? ya,
|
|
10476
10476
|
subsequentPayloads: /* @__PURE__ */ new Set(),
|
|
10477
10477
|
errors: [],
|
|
10478
10478
|
signal: f
|
|
10479
10479
|
};
|
|
10480
10480
|
}
|
|
10481
|
-
function
|
|
10481
|
+
function mp(t, e) {
|
|
10482
10482
|
return {
|
|
10483
10483
|
...t,
|
|
10484
10484
|
rootValue: e,
|
|
@@ -10486,24 +10486,24 @@ function yp(t, e) {
|
|
|
10486
10486
|
errors: []
|
|
10487
10487
|
};
|
|
10488
10488
|
}
|
|
10489
|
-
function
|
|
10490
|
-
const { operation: e, schema: n, fragments: i, variableValues: r, rootValue: s } = t, o =
|
|
10489
|
+
function yp(t) {
|
|
10490
|
+
const { operation: e, schema: n, fragments: i, variableValues: r, rootValue: s } = t, o = Gh(n, e.operation, [e]);
|
|
10491
10491
|
o == null && X(`Schema is not configured to execute ${e.operation} operation.`, {
|
|
10492
10492
|
nodes: e
|
|
10493
10493
|
});
|
|
10494
10494
|
const { fields: a, patches: u } = Ku(n, i, r, o, e.selectionSet), c = void 0;
|
|
10495
10495
|
let f;
|
|
10496
|
-
e.operation === "mutation" ? f =
|
|
10496
|
+
e.operation === "mutation" ? f = bp(t, o, s, c, a) : f = ro(t, o, s, c, a);
|
|
10497
10497
|
for (const g of u) {
|
|
10498
10498
|
const { label: p, fields: v } = g;
|
|
10499
10499
|
al(t, o, s, v, p, c);
|
|
10500
10500
|
}
|
|
10501
10501
|
return f;
|
|
10502
10502
|
}
|
|
10503
|
-
function
|
|
10504
|
-
return
|
|
10503
|
+
function bp(t, e, n, i, r) {
|
|
10504
|
+
return Uh(r, (s, [o, a]) => {
|
|
10505
10505
|
var c;
|
|
10506
|
-
const u =
|
|
10506
|
+
const u = hi(i, o, e.name);
|
|
10507
10507
|
if ((c = t.signal) != null && c.aborted)
|
|
10508
10508
|
throw t.signal.reason;
|
|
10509
10509
|
return new pt(() => nl(t, e, n, a, u)).then((f) => (f === void 0 || (s[o] = f), s));
|
|
@@ -10517,7 +10517,7 @@ function ro(t, e, n, i, r, s) {
|
|
|
10517
10517
|
for (const [c, f] of r) {
|
|
10518
10518
|
if ((u = t.signal) != null && u.aborted)
|
|
10519
10519
|
throw t.signal.reason;
|
|
10520
|
-
const g =
|
|
10520
|
+
const g = hi(i, c, e.name), p = nl(t, e, n, f, g, s);
|
|
10521
10521
|
p !== void 0 && (o[c] = p, Ae(p) && (a = !0));
|
|
10522
10522
|
}
|
|
10523
10523
|
} catch (c) {
|
|
@@ -10572,10 +10572,10 @@ function il(t, e, n, i, r) {
|
|
|
10572
10572
|
variableValues: t.variableValues
|
|
10573
10573
|
};
|
|
10574
10574
|
}
|
|
10575
|
-
const
|
|
10575
|
+
const wp = "CRITICAL_ERROR";
|
|
10576
10576
|
function mt(t, e, n) {
|
|
10577
10577
|
var i;
|
|
10578
|
-
if (re(e) || (i = t.extensions) != null && i[
|
|
10578
|
+
if (re(e) || (i = t.extensions) != null && i[wp])
|
|
10579
10579
|
throw t;
|
|
10580
10580
|
return n.push(t), null;
|
|
10581
10581
|
}
|
|
@@ -10591,11 +10591,11 @@ function vn(t, e, n, i, r, s, o) {
|
|
|
10591
10591
|
if (s == null)
|
|
10592
10592
|
return null;
|
|
10593
10593
|
if (Pe(e))
|
|
10594
|
-
return
|
|
10594
|
+
return vp(t, e, n, i, r, s, o);
|
|
10595
10595
|
if (bn(e))
|
|
10596
|
-
return
|
|
10596
|
+
return Tp(e, s);
|
|
10597
10597
|
if (nn(e))
|
|
10598
|
-
return
|
|
10598
|
+
return Sp(t, e, n, i, r, s, o);
|
|
10599
10599
|
if (pe(e))
|
|
10600
10600
|
return Os(t, e, n, i, r, s, o);
|
|
10601
10601
|
console.assert(!1, "Cannot complete value of unexpected output type: " + nt(e));
|
|
@@ -10603,14 +10603,14 @@ function vn(t, e, n, i, r, s, o) {
|
|
|
10603
10603
|
function rl(t, e, n) {
|
|
10604
10604
|
if (typeof n.key == "number")
|
|
10605
10605
|
return;
|
|
10606
|
-
const i = ui(
|
|
10606
|
+
const i = ui(Qh, e[0], t.variableValues);
|
|
10607
10607
|
if (i && i.if !== !1)
|
|
10608
10608
|
return fa(typeof i.initialCount == "number", "initialCount must be a number"), fa(i.initialCount >= 0, "initialCount must be a positive integer"), {
|
|
10609
10609
|
initialCount: i.initialCount,
|
|
10610
10610
|
label: typeof i.label == "string" ? i.label : void 0
|
|
10611
10611
|
};
|
|
10612
10612
|
}
|
|
10613
|
-
async function
|
|
10613
|
+
async function Ep(t, e, n, i, r, s, o) {
|
|
10614
10614
|
var p;
|
|
10615
10615
|
(p = t.signal) == null || p.addEventListener("abort", () => {
|
|
10616
10616
|
var v;
|
|
@@ -10622,10 +10622,10 @@ async function vp(t, e, n, i, r, s, o) {
|
|
|
10622
10622
|
let g = 0;
|
|
10623
10623
|
for (; ; ) {
|
|
10624
10624
|
if (u && typeof u.initialCount == "number" && g >= u.initialCount) {
|
|
10625
|
-
|
|
10625
|
+
Rp(g, s, t, n, i, e, r, u.label, o);
|
|
10626
10626
|
break;
|
|
10627
10627
|
}
|
|
10628
|
-
const v =
|
|
10628
|
+
const v = hi(r, g, void 0);
|
|
10629
10629
|
let w;
|
|
10630
10630
|
try {
|
|
10631
10631
|
if (w = await s.next(), w.done)
|
|
@@ -10639,22 +10639,22 @@ async function vp(t, e, n, i, r, s, o) {
|
|
|
10639
10639
|
}
|
|
10640
10640
|
return c ? Promise.all(f) : f;
|
|
10641
10641
|
}
|
|
10642
|
-
function
|
|
10642
|
+
function vp(t, e, n, i, r, s, o) {
|
|
10643
10643
|
const a = e.ofType, u = (o == null ? void 0 : o.errors) ?? t.errors;
|
|
10644
10644
|
if (qr(s)) {
|
|
10645
10645
|
const w = s[Symbol.asyncIterator]();
|
|
10646
|
-
return
|
|
10646
|
+
return Ep(t, a, n, i, r, w, o);
|
|
10647
10647
|
}
|
|
10648
|
-
if (!
|
|
10648
|
+
if (!Mh(s))
|
|
10649
10649
|
throw X(`Expected Iterable, but did not find one for field "${i.parentType.name}.${i.fieldName}".`);
|
|
10650
10650
|
const c = rl(t, n, r);
|
|
10651
10651
|
let f = !1, g = o;
|
|
10652
10652
|
const p = [];
|
|
10653
10653
|
let v = 0;
|
|
10654
10654
|
for (const w of s) {
|
|
10655
|
-
const R =
|
|
10655
|
+
const R = hi(r, v, void 0);
|
|
10656
10656
|
if (c && typeof c.initialCount == "number" && v >= c.initialCount) {
|
|
10657
|
-
g =
|
|
10657
|
+
g = xp(r, R, w, t, n, i, a, c.label, g), v++;
|
|
10658
10658
|
continue;
|
|
10659
10659
|
}
|
|
10660
10660
|
sl(w, p, u, t, a, n, i, R, o) && (f = !0), v++;
|
|
@@ -10677,7 +10677,7 @@ function sl(t, e, n, i, r, s, o, a, u) {
|
|
|
10677
10677
|
}
|
|
10678
10678
|
return !1;
|
|
10679
10679
|
}
|
|
10680
|
-
function
|
|
10680
|
+
function Tp(t, e) {
|
|
10681
10681
|
let n;
|
|
10682
10682
|
try {
|
|
10683
10683
|
n = t.serialize(e);
|
|
@@ -10688,7 +10688,7 @@ function Sp(t, e) {
|
|
|
10688
10688
|
throw new Error(`Expected \`${nt(t)}.serialize(${nt(e)})\` to return non-nullable value, returned: ${nt(n)}`);
|
|
10689
10689
|
return n;
|
|
10690
10690
|
}
|
|
10691
|
-
function
|
|
10691
|
+
function Sp(t, e, n, i, r, s, o) {
|
|
10692
10692
|
const a = e.resolveType ?? t.typeResolver, u = t.contextValue, c = a(s, u, i, e);
|
|
10693
10693
|
return Ae(c) ? c.then((f) => Os(t, pa(f, t, e, n, i, s), n, i, r, s, o)) : Os(t, pa(c, t, e, n, i, s), n, i, r, s, o);
|
|
10694
10694
|
}
|
|
@@ -10731,14 +10731,14 @@ function ga(t, e, n) {
|
|
|
10731
10731
|
});
|
|
10732
10732
|
}
|
|
10733
10733
|
function ma(t, e, n, i, r, s) {
|
|
10734
|
-
const { fields: o, patches: a } =
|
|
10734
|
+
const { fields: o, patches: a } = hp(t, e, n), u = ro(t, e, r, i, o, s);
|
|
10735
10735
|
for (const c of a) {
|
|
10736
10736
|
const { label: f, fields: g } = c;
|
|
10737
10737
|
al(t, e, r, g, f, i, s);
|
|
10738
10738
|
}
|
|
10739
10739
|
return u;
|
|
10740
10740
|
}
|
|
10741
|
-
const
|
|
10741
|
+
const _p = function(t, e, n, i) {
|
|
10742
10742
|
if (Qu(t) && typeof t.__typename == "string")
|
|
10743
10743
|
return t.__typename;
|
|
10744
10744
|
const r = n.schema.getPossibleTypes(i), s = [];
|
|
@@ -10764,7 +10764,7 @@ const Ip = function(t, e, n, i) {
|
|
|
10764
10764
|
return typeof r == "function" ? t[i.fieldName](e, n, i) : r;
|
|
10765
10765
|
}
|
|
10766
10766
|
};
|
|
10767
|
-
function
|
|
10767
|
+
function Ip(t) {
|
|
10768
10768
|
const e = tl(t);
|
|
10769
10769
|
if (!("schema" in e))
|
|
10770
10770
|
return {
|
|
@@ -10781,7 +10781,7 @@ function Op(t) {
|
|
|
10781
10781
|
}), i;
|
|
10782
10782
|
})
|
|
10783
10783
|
};
|
|
10784
|
-
const n =
|
|
10784
|
+
const n = Np(e);
|
|
10785
10785
|
return Ae(n) ? n.then((i) => ba(e, i)) : ba(e, n);
|
|
10786
10786
|
}
|
|
10787
10787
|
function ol(t) {
|
|
@@ -10808,11 +10808,11 @@ function ol(t) {
|
|
|
10808
10808
|
}
|
|
10809
10809
|
};
|
|
10810
10810
|
}
|
|
10811
|
-
async function*
|
|
10811
|
+
async function* Op(t) {
|
|
10812
10812
|
"initialResult" in t ? yield* ol(t) : yield t;
|
|
10813
10813
|
}
|
|
10814
10814
|
function ba(t, e) {
|
|
10815
|
-
return qr(e) ?
|
|
10815
|
+
return qr(e) ? cp(Ju(e, async (n) => Op(await el(mp(t, n))), (n) => {
|
|
10816
10816
|
throw n instanceof AggregateError ? new AggregateError(n.errors.map((i) => wa(i, t.operation)), n.message) : wa(n, t.operation);
|
|
10817
10817
|
})) : e;
|
|
10818
10818
|
}
|
|
@@ -10822,15 +10822,15 @@ function wa(t, e) {
|
|
|
10822
10822
|
nodes: [e]
|
|
10823
10823
|
});
|
|
10824
10824
|
}
|
|
10825
|
-
function
|
|
10825
|
+
function Np(t) {
|
|
10826
10826
|
try {
|
|
10827
|
-
const e =
|
|
10827
|
+
const e = Ap(t);
|
|
10828
10828
|
return Ae(e) ? e.then(void 0, (n) => ({ errors: [n] })) : e;
|
|
10829
10829
|
} catch (e) {
|
|
10830
10830
|
return { errors: [e] };
|
|
10831
10831
|
}
|
|
10832
10832
|
}
|
|
10833
|
-
function
|
|
10833
|
+
function Ap(t) {
|
|
10834
10834
|
const { schema: e, fragments: n, operation: i, variableValues: r, rootValue: s } = t, o = e.getSubscriptionType();
|
|
10835
10835
|
if (o == null)
|
|
10836
10836
|
throw X("Schema is not configured to execute subscription operation.", {
|
|
@@ -10841,7 +10841,7 @@ function xp(t) {
|
|
|
10841
10841
|
throw X(`The subscription field "${f}" is not defined.`, {
|
|
10842
10842
|
nodes: c
|
|
10843
10843
|
});
|
|
10844
|
-
const p =
|
|
10844
|
+
const p = hi(void 0, u, o.name), v = il(t, g, c, o, p);
|
|
10845
10845
|
try {
|
|
10846
10846
|
const w = Hu(g, c[0], r), R = t.contextValue, y = (g.subscribe ?? t.subscribeFieldResolver)(s, w, R, v);
|
|
10847
10847
|
return Ae(y) ? y.then(Ea).then(void 0, (S) => {
|
|
@@ -10867,7 +10867,7 @@ function Ea(t, e) {
|
|
|
10867
10867
|
};
|
|
10868
10868
|
}
|
|
10869
10869
|
function al(t, e, n, i, r, s, o) {
|
|
10870
|
-
const a = new
|
|
10870
|
+
const a = new kp({
|
|
10871
10871
|
label: r,
|
|
10872
10872
|
path: s,
|
|
10873
10873
|
parentContext: o,
|
|
@@ -10881,7 +10881,7 @@ function al(t, e, n, i, r, s, o) {
|
|
|
10881
10881
|
}
|
|
10882
10882
|
a.addData(u);
|
|
10883
10883
|
}
|
|
10884
|
-
function
|
|
10884
|
+
function xp(t, e, n, i, r, s, o, a, u) {
|
|
10885
10885
|
const c = new ul({
|
|
10886
10886
|
label: a,
|
|
10887
10887
|
path: e,
|
|
@@ -10906,7 +10906,7 @@ function Fp(t, e, n, i, r, s, o, a, u) {
|
|
|
10906
10906
|
let g;
|
|
10907
10907
|
return Ae(f) ? g = f.then((p) => [p], (p) => (c.errors.push(p), dt(i, t, c), null)) : g = [f], c.addItems(g), c;
|
|
10908
10908
|
}
|
|
10909
|
-
async function
|
|
10909
|
+
async function Fp(t, e, n, i, r, s, o) {
|
|
10910
10910
|
let a;
|
|
10911
10911
|
try {
|
|
10912
10912
|
const { value: c, done: f } = await t.next();
|
|
@@ -10928,10 +10928,10 @@ async function Rp(t, e, n, i, r, s, o) {
|
|
|
10928
10928
|
return dt(e, o, s), { done: !1, value: g };
|
|
10929
10929
|
}
|
|
10930
10930
|
}
|
|
10931
|
-
async function
|
|
10931
|
+
async function Rp(t, e, n, i, r, s, o, a, u) {
|
|
10932
10932
|
let c = t, f = u ?? void 0;
|
|
10933
10933
|
for (; ; ) {
|
|
10934
|
-
const g =
|
|
10934
|
+
const g = hi(o, c, void 0), p = new ul({
|
|
10935
10935
|
label: a,
|
|
10936
10936
|
path: g,
|
|
10937
10937
|
parentContext: f,
|
|
@@ -10940,7 +10940,7 @@ async function Lp(t, e, n, i, r, s, o, a, u) {
|
|
|
10940
10940
|
});
|
|
10941
10941
|
let v;
|
|
10942
10942
|
try {
|
|
10943
|
-
v = await
|
|
10943
|
+
v = await Fp(e, n, i, r, s, p, g);
|
|
10944
10944
|
} catch (y) {
|
|
10945
10945
|
p.errors.push(y), dt(n, o, p), p.addItems(null), e != null && e.return && e.return().catch(() => {
|
|
10946
10946
|
});
|
|
@@ -10966,7 +10966,7 @@ function dt(t, e, n) {
|
|
|
10966
10966
|
}
|
|
10967
10967
|
});
|
|
10968
10968
|
}
|
|
10969
|
-
function
|
|
10969
|
+
function Lp(t) {
|
|
10970
10970
|
const e = [];
|
|
10971
10971
|
for (const n of t.subsequentPayloads) {
|
|
10972
10972
|
const i = {};
|
|
@@ -10985,7 +10985,7 @@ function Cp(t) {
|
|
|
10985
10985
|
}
|
|
10986
10986
|
return e;
|
|
10987
10987
|
}
|
|
10988
|
-
function
|
|
10988
|
+
function Cp(t) {
|
|
10989
10989
|
let e = !1;
|
|
10990
10990
|
const n = new Promise((s, o) => {
|
|
10991
10991
|
var a;
|
|
@@ -11002,7 +11002,7 @@ function kp(t) {
|
|
|
11002
11002
|
...Array.from(t.subsequentPayloads).map((a) => a.promise)
|
|
11003
11003
|
]), e)
|
|
11004
11004
|
return { value: void 0, done: !0 };
|
|
11005
|
-
const s =
|
|
11005
|
+
const s = Lp(t), o = t.subsequentPayloads.size > 0;
|
|
11006
11006
|
return !s.length && o ? i() : (o || (e = !0), {
|
|
11007
11007
|
value: s.length ? { incremental: s, hasNext: o } : { hasNext: o },
|
|
11008
11008
|
done: !1
|
|
@@ -11028,7 +11028,7 @@ function kp(t) {
|
|
|
11028
11028
|
}
|
|
11029
11029
|
};
|
|
11030
11030
|
}
|
|
11031
|
-
class
|
|
11031
|
+
class kp {
|
|
11032
11032
|
constructor(e) {
|
|
11033
11033
|
U(this, "type");
|
|
11034
11034
|
U(this, "errors");
|
|
@@ -11104,61 +11104,61 @@ function va(t) {
|
|
|
11104
11104
|
const e = eo(t.document, t.operationName);
|
|
11105
11105
|
if (e == null)
|
|
11106
11106
|
throw new Error("Must provide an operation.");
|
|
11107
|
-
return e.operation === "subscription" ?
|
|
11107
|
+
return e.operation === "subscription" ? Ip(t) : new pt(() => pp(t)).then((n) => "initialResult" in n ? ol(n) : n).resolve();
|
|
11108
11108
|
}
|
|
11109
|
-
var we = {},
|
|
11110
|
-
const dl = /* @__PURE__ */
|
|
11109
|
+
var we = {}, Dp = we.fetch = globalThis.fetch, $p = we.Headers = globalThis.Headers, jp = we.Request = globalThis.Request, cl = we.Response = globalThis.Response, Pp = we.FormData = globalThis.FormData, Mp = we.ReadableStream = globalThis.ReadableStream, Up = we.WritableStream = globalThis.WritableStream, Vp = we.TransformStream = globalThis.TransformStream, Bp = we.CompressionStream = globalThis.CompressionStream, Gp = we.DecompressionStream = globalThis.DecompressionStream, qp = we.Blob = globalThis.Blob, zp = we.File = globalThis.File, Qp = we.crypto = globalThis.crypto, Wp = we.btoa = globalThis.btoa, Hp = we.TextEncoder = globalThis.TextEncoder, Yp = we.TextDecoder = globalThis.TextDecoder, Jp = we.URLPattern = globalThis.URLPattern, fl = we.URL = globalThis.URL, oo = we.URLSearchParams = globalThis.URLSearchParams, Kp = we.createFetch = () => globalThis;
|
|
11110
|
+
const dl = /* @__PURE__ */ Pl({
|
|
11111
11111
|
__proto__: null,
|
|
11112
|
-
Blob:
|
|
11113
|
-
CompressionStream:
|
|
11114
|
-
DecompressionStream:
|
|
11115
|
-
File:
|
|
11116
|
-
FormData:
|
|
11117
|
-
Headers:
|
|
11118
|
-
ReadableStream:
|
|
11119
|
-
Request:
|
|
11112
|
+
Blob: qp,
|
|
11113
|
+
CompressionStream: Bp,
|
|
11114
|
+
DecompressionStream: Gp,
|
|
11115
|
+
File: zp,
|
|
11116
|
+
FormData: Pp,
|
|
11117
|
+
Headers: $p,
|
|
11118
|
+
ReadableStream: Mp,
|
|
11119
|
+
Request: jp,
|
|
11120
11120
|
Response: cl,
|
|
11121
|
-
TextDecoder:
|
|
11122
|
-
TextEncoder:
|
|
11123
|
-
TransformStream:
|
|
11121
|
+
TextDecoder: Yp,
|
|
11122
|
+
TextEncoder: Hp,
|
|
11123
|
+
TransformStream: Vp,
|
|
11124
11124
|
URL: fl,
|
|
11125
|
-
URLPattern:
|
|
11125
|
+
URLPattern: Jp,
|
|
11126
11126
|
URLSearchParams: oo,
|
|
11127
|
-
WritableStream:
|
|
11128
|
-
btoa:
|
|
11129
|
-
createFetch:
|
|
11130
|
-
crypto:
|
|
11127
|
+
WritableStream: Up,
|
|
11128
|
+
btoa: Wp,
|
|
11129
|
+
createFetch: Kp,
|
|
11130
|
+
crypto: Qp,
|
|
11131
11131
|
default: we,
|
|
11132
|
-
fetch:
|
|
11132
|
+
fetch: Dp
|
|
11133
11133
|
}, [we]);
|
|
11134
11134
|
function hl(t) {
|
|
11135
11135
|
return t != null && typeof t == "object" && typeof t[Symbol.asyncIterator] == "function";
|
|
11136
11136
|
}
|
|
11137
|
-
function
|
|
11137
|
+
function Xp(t) {
|
|
11138
11138
|
var i, r, s, o, a;
|
|
11139
11139
|
if ((i = t.socket) != null && i.localPort)
|
|
11140
11140
|
return (r = t.socket) == null ? void 0 : r.localPort;
|
|
11141
11141
|
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];
|
|
11142
11142
|
return n || 80;
|
|
11143
11143
|
}
|
|
11144
|
-
function
|
|
11144
|
+
function Zp(t) {
|
|
11145
11145
|
var i, r, s, o, a;
|
|
11146
11146
|
if ((i = t.headers) != null && i[":authority"])
|
|
11147
11147
|
return (r = t.headers) == null ? void 0 : r[":authority"];
|
|
11148
11148
|
if ((s = t.headers) != null && s.host)
|
|
11149
11149
|
return (o = t.headers) == null ? void 0 : o.host;
|
|
11150
|
-
const e =
|
|
11150
|
+
const e = Xp(t);
|
|
11151
11151
|
if (t.hostname)
|
|
11152
11152
|
return t.hostname + ":" + e;
|
|
11153
11153
|
const n = (a = t.socket) == null ? void 0 : a.localAddress;
|
|
11154
11154
|
return n && !(n != null && n.includes("::")) && !(n != null && n.includes("ffff")) ? `${n}:${e}` : "localhost";
|
|
11155
11155
|
}
|
|
11156
|
-
function
|
|
11156
|
+
function eg(t) {
|
|
11157
11157
|
var r;
|
|
11158
|
-
const e =
|
|
11158
|
+
const e = Zp(t), n = t.protocol || ((r = t.socket) != null && r.encrypted ? "https" : "http"), i = t.originalUrl || t.url || "/graphql";
|
|
11159
11159
|
return `${n}://${e}${i}`;
|
|
11160
11160
|
}
|
|
11161
|
-
function
|
|
11161
|
+
function tg(t) {
|
|
11162
11162
|
const e = t[Symbol.toStringTag];
|
|
11163
11163
|
return !!(typeof t == "string" || e === "Uint8Array" || e === "Blob" || e === "FormData" || e === "URLSearchParams" || hl(t));
|
|
11164
11164
|
}
|
|
@@ -11188,10 +11188,10 @@ class pl extends EventTarget {
|
|
|
11188
11188
|
}
|
|
11189
11189
|
let Ta = !1;
|
|
11190
11190
|
const Ns = /* @__PURE__ */ new WeakMap();
|
|
11191
|
-
function
|
|
11191
|
+
function ng(t, e) {
|
|
11192
11192
|
var u, c, f, g;
|
|
11193
11193
|
const n = t.raw || t.req || t;
|
|
11194
|
-
let i =
|
|
11194
|
+
let i = eg(n);
|
|
11195
11195
|
if (t.query) {
|
|
11196
11196
|
const p = new fl(i);
|
|
11197
11197
|
for (const v in t.query)
|
|
@@ -11230,7 +11230,7 @@ function ig(t, e) {
|
|
|
11230
11230
|
});
|
|
11231
11231
|
const a = t.body;
|
|
11232
11232
|
if (a != null && Object.keys(a).length > 0) {
|
|
11233
|
-
if (
|
|
11233
|
+
if (tg(a))
|
|
11234
11234
|
return new e(i, {
|
|
11235
11235
|
method: t.method,
|
|
11236
11236
|
headers: o,
|
|
@@ -11286,23 +11286,23 @@ It will affect your performance. Please check our Bun integration recipe, and av
|
|
|
11286
11286
|
function ao(t) {
|
|
11287
11287
|
return t.read != null;
|
|
11288
11288
|
}
|
|
11289
|
-
function
|
|
11289
|
+
function ig(t) {
|
|
11290
11290
|
return ao(t);
|
|
11291
11291
|
}
|
|
11292
11292
|
function Sa(t) {
|
|
11293
11293
|
return t != null && t.setHeader != null && t.end != null && t.once != null && t.write != null;
|
|
11294
11294
|
}
|
|
11295
|
-
function
|
|
11295
|
+
function rg(t) {
|
|
11296
11296
|
return t != null && t.request != null && t.respondWith != null;
|
|
11297
11297
|
}
|
|
11298
|
-
function
|
|
11298
|
+
function sg(t) {
|
|
11299
11299
|
var e, n, i, r, s, o;
|
|
11300
11300
|
(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);
|
|
11301
11301
|
}
|
|
11302
11302
|
function mr(t) {
|
|
11303
11303
|
t.end(null, null, null);
|
|
11304
11304
|
}
|
|
11305
|
-
async function
|
|
11305
|
+
async function og(t, e) {
|
|
11306
11306
|
let n = !1;
|
|
11307
11307
|
const i = () => {
|
|
11308
11308
|
n = !0;
|
|
@@ -11358,16 +11358,16 @@ function _a(t, e, n) {
|
|
|
11358
11358
|
e.write(s), mr(e);
|
|
11359
11359
|
return;
|
|
11360
11360
|
}
|
|
11361
|
-
if (
|
|
11361
|
+
if (sg(n), ao(s)) {
|
|
11362
11362
|
e.once("close", () => {
|
|
11363
11363
|
s.destroy();
|
|
11364
11364
|
}), s.pipe(e);
|
|
11365
11365
|
return;
|
|
11366
11366
|
}
|
|
11367
11367
|
if (hl(s))
|
|
11368
|
-
return
|
|
11368
|
+
return og(e, s);
|
|
11369
11369
|
}
|
|
11370
|
-
function
|
|
11370
|
+
function ag(t) {
|
|
11371
11371
|
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);
|
|
11372
11372
|
}
|
|
11373
11373
|
function lr(...t) {
|
|
@@ -11452,7 +11452,7 @@ function Oa(t, e) {
|
|
|
11452
11452
|
}
|
|
11453
11453
|
});
|
|
11454
11454
|
}
|
|
11455
|
-
function
|
|
11455
|
+
function ug() {
|
|
11456
11456
|
let t, e;
|
|
11457
11457
|
return {
|
|
11458
11458
|
promise: new Promise(function(r, s) {
|
|
@@ -11468,7 +11468,7 @@ function lg() {
|
|
|
11468
11468
|
}
|
|
11469
11469
|
function Na(t, e) {
|
|
11470
11470
|
if (pn(t) && e) {
|
|
11471
|
-
const n =
|
|
11471
|
+
const n = ug();
|
|
11472
11472
|
return e.addEventListener("abort", function() {
|
|
11473
11473
|
n.reject(e.reason);
|
|
11474
11474
|
}), t.then(function(r) {
|
|
@@ -11479,10 +11479,10 @@ function Na(t, e) {
|
|
|
11479
11479
|
}
|
|
11480
11480
|
return t;
|
|
11481
11481
|
}
|
|
11482
|
-
function
|
|
11482
|
+
function lg(t) {
|
|
11483
11483
|
return !!t.onData;
|
|
11484
11484
|
}
|
|
11485
|
-
function
|
|
11485
|
+
function cg({ req: t, res: e, fetchAPI: n, signal: i }) {
|
|
11486
11486
|
let r;
|
|
11487
11487
|
const s = t.getMethod();
|
|
11488
11488
|
if (s !== "get" && s !== "head") {
|
|
@@ -11526,7 +11526,7 @@ function fg({ req: t, res: e, fetchAPI: n, signal: i }) {
|
|
|
11526
11526
|
duplex: "half"
|
|
11527
11527
|
});
|
|
11528
11528
|
}
|
|
11529
|
-
async function
|
|
11529
|
+
async function fg(t, e, n) {
|
|
11530
11530
|
for await (const i of e.body) {
|
|
11531
11531
|
if (n.aborted)
|
|
11532
11532
|
return;
|
|
@@ -11565,21 +11565,21 @@ function Aa(t, e, n) {
|
|
|
11565
11565
|
t.end();
|
|
11566
11566
|
return;
|
|
11567
11567
|
}
|
|
11568
|
-
return
|
|
11568
|
+
return fg(t, e, n);
|
|
11569
11569
|
}
|
|
11570
11570
|
}
|
|
11571
|
-
async function
|
|
11571
|
+
async function dg(t) {
|
|
11572
11572
|
await Promise.allSettled(t);
|
|
11573
11573
|
}
|
|
11574
|
-
function
|
|
11574
|
+
function hg(t) {
|
|
11575
11575
|
try {
|
|
11576
11576
|
return !!(t != null && t.request);
|
|
11577
11577
|
} catch {
|
|
11578
11578
|
return !1;
|
|
11579
11579
|
}
|
|
11580
11580
|
}
|
|
11581
|
-
const
|
|
11582
|
-
function
|
|
11581
|
+
const pg = {};
|
|
11582
|
+
function gg(t, e) {
|
|
11583
11583
|
const n = {
|
|
11584
11584
|
...dl,
|
|
11585
11585
|
...e == null ? void 0 : e.fetchAPI
|
|
@@ -11591,7 +11591,7 @@ function mg(t, e) {
|
|
|
11591
11591
|
let O = i, C;
|
|
11592
11592
|
if (r.length === 0)
|
|
11593
11593
|
return b();
|
|
11594
|
-
let T = new Proxy(
|
|
11594
|
+
let T = new Proxy(pg, {
|
|
11595
11595
|
get(d, N, L) {
|
|
11596
11596
|
return T = new n.URL(S.url, "http://localhost"), Reflect.get(T, N, T);
|
|
11597
11597
|
}
|
|
@@ -11636,7 +11636,7 @@ function mg(t, e) {
|
|
|
11636
11636
|
return pn(_) ? _.then(b) : b();
|
|
11637
11637
|
} : i;
|
|
11638
11638
|
function a(y, ...S) {
|
|
11639
|
-
const A = S.length > 1 ? lr(...S) : S[0] || {}, O =
|
|
11639
|
+
const A = S.length > 1 ? lr(...S) : S[0] || {}, O = ng(y, n.Request);
|
|
11640
11640
|
return o(O, A);
|
|
11641
11641
|
}
|
|
11642
11642
|
function u(y, S, ...A) {
|
|
@@ -11683,7 +11683,7 @@ function mg(t, e) {
|
|
|
11683
11683
|
}), y.onAborted = function(q) {
|
|
11684
11684
|
m.addEventListener("abort", q);
|
|
11685
11685
|
};
|
|
11686
|
-
const L =
|
|
11686
|
+
const L = cg({
|
|
11687
11687
|
req: S,
|
|
11688
11688
|
res: y,
|
|
11689
11689
|
fetchAPI: n,
|
|
@@ -11721,12 +11721,12 @@ ${q.stack || q.message || q}`);
|
|
|
11721
11721
|
const A = S.filter((_) => _ != null);
|
|
11722
11722
|
let O;
|
|
11723
11723
|
const C = A.length > 1 ? lr({}, ...A) : Oa(A[0], A[0] == null || A[0].waitUntil == null ? O = [] : void 0), T = o(y, C);
|
|
11724
|
-
return O != null && O.length ?
|
|
11724
|
+
return O != null && O.length ? dg(O).then(() => T) : T;
|
|
11725
11725
|
}
|
|
11726
11726
|
const v = (y, ...S) => {
|
|
11727
11727
|
if (typeof y == "string" || "href" in y) {
|
|
11728
11728
|
const [O, ...C] = S;
|
|
11729
|
-
if (
|
|
11729
|
+
if (ag(O)) {
|
|
11730
11730
|
const _ = new n.Request(y, O), m = p(_, ...C);
|
|
11731
11731
|
return Na(m, O == null ? void 0 : O.signal);
|
|
11732
11732
|
}
|
|
@@ -11737,16 +11737,16 @@ ${q.stack || q.message || q}`);
|
|
|
11737
11737
|
return Na(A, y._signal);
|
|
11738
11738
|
}, w = (y, ...S) => {
|
|
11739
11739
|
const [A, ...O] = S;
|
|
11740
|
-
if (
|
|
11740
|
+
if (ig(y)) {
|
|
11741
11741
|
if (!Sa(A))
|
|
11742
11742
|
throw new TypeError(`Expected ServerResponse, got ${A}`);
|
|
11743
11743
|
return c(y, A, ...O);
|
|
11744
11744
|
}
|
|
11745
|
-
if (
|
|
11745
|
+
if (lg(y))
|
|
11746
11746
|
return f(y, A, ...O);
|
|
11747
11747
|
if (Sa(A))
|
|
11748
11748
|
throw new TypeError("Got Node response without Node request");
|
|
11749
|
-
return
|
|
11749
|
+
return hg(y) ? rg(y) ? g(y, ...S) : p(y.request, y, ...S) : v(y, ...S);
|
|
11750
11750
|
}, R = {
|
|
11751
11751
|
handleRequest: p,
|
|
11752
11752
|
fetch: v,
|
|
@@ -11781,7 +11781,7 @@ ${q.stack || q.message || q}`);
|
|
|
11781
11781
|
});
|
|
11782
11782
|
return x;
|
|
11783
11783
|
}
|
|
11784
|
-
function
|
|
11784
|
+
function mg(t, e) {
|
|
11785
11785
|
var r, s;
|
|
11786
11786
|
const n = t.headers.get("origin");
|
|
11787
11787
|
if (e === !1 || n == null)
|
|
@@ -11801,11 +11801,11 @@ function yg(t, e) {
|
|
|
11801
11801
|
}
|
|
11802
11802
|
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;
|
|
11803
11803
|
}
|
|
11804
|
-
async function
|
|
11804
|
+
async function yg(t, e, n) {
|
|
11805
11805
|
const i = await e(t, n);
|
|
11806
|
-
return
|
|
11806
|
+
return mg(t, i);
|
|
11807
11807
|
}
|
|
11808
|
-
function
|
|
11808
|
+
function bg(t) {
|
|
11809
11809
|
let e = () => ({});
|
|
11810
11810
|
if (t != null)
|
|
11811
11811
|
if (typeof t == "function")
|
|
@@ -11832,14 +11832,14 @@ function wg(t) {
|
|
|
11832
11832
|
}
|
|
11833
11833
|
},
|
|
11834
11834
|
async onResponse({ request: n, serverContext: i, response: r }) {
|
|
11835
|
-
const s = await
|
|
11835
|
+
const s = await yg(n, e, i);
|
|
11836
11836
|
if (s != null)
|
|
11837
11837
|
for (const o in s)
|
|
11838
11838
|
r.headers.set(o, s[o]);
|
|
11839
11839
|
}
|
|
11840
11840
|
};
|
|
11841
11841
|
}
|
|
11842
|
-
function
|
|
11842
|
+
function wg(t = cl) {
|
|
11843
11843
|
return function(n) {
|
|
11844
11844
|
return n.details || n.status || n.headers || n.name === "HTTPError" ? new t(typeof n.details == "object" ? JSON.stringify(n.details) : n.message, {
|
|
11845
11845
|
status: n.status,
|
|
@@ -11850,10 +11850,10 @@ function Eg(t = cl) {
|
|
|
11850
11850
|
function As(t) {
|
|
11851
11851
|
return t.error ? t.error() : new t(null, { status: 500 });
|
|
11852
11852
|
}
|
|
11853
|
-
function
|
|
11853
|
+
function Eg(t) {
|
|
11854
11854
|
return {
|
|
11855
11855
|
onRequest({ requestHandler: e, setRequestHandler: n, fetchAPI: i }) {
|
|
11856
|
-
const r = t ||
|
|
11856
|
+
const r = t || wg(i.Response);
|
|
11857
11857
|
n(function(o, a) {
|
|
11858
11858
|
try {
|
|
11859
11859
|
const u = e(o, a);
|
|
@@ -11874,40 +11874,40 @@ function gl(t) {
|
|
|
11874
11874
|
extensions: r ? JSON.parse(r) : void 0
|
|
11875
11875
|
};
|
|
11876
11876
|
}
|
|
11877
|
-
function
|
|
11877
|
+
function vg(t) {
|
|
11878
11878
|
const e = new oo(t);
|
|
11879
11879
|
return gl(e);
|
|
11880
11880
|
}
|
|
11881
|
-
function
|
|
11881
|
+
function Di(t, e) {
|
|
11882
11882
|
let n = t.headers.get("content-type");
|
|
11883
11883
|
return n = (n == null ? void 0 : n.split(",")[0]) || null, n === e || !!(n != null && n.startsWith(`${e};`));
|
|
11884
11884
|
}
|
|
11885
|
-
function
|
|
11885
|
+
function Tg(t) {
|
|
11886
11886
|
return t.method === "GET";
|
|
11887
11887
|
}
|
|
11888
|
-
function
|
|
11888
|
+
function Sg(t) {
|
|
11889
11889
|
const [, e = ""] = t.url.split("?"), n = new oo(e);
|
|
11890
11890
|
return gl(n);
|
|
11891
11891
|
}
|
|
11892
|
-
function
|
|
11893
|
-
return t.method === "POST" &&
|
|
11892
|
+
function _g(t) {
|
|
11893
|
+
return t.method === "POST" && Di(t, "application/x-www-form-urlencoded");
|
|
11894
11894
|
}
|
|
11895
|
-
async function
|
|
11895
|
+
async function Ig(t) {
|
|
11896
11896
|
const e = await t.text();
|
|
11897
|
-
return
|
|
11897
|
+
return vg(e);
|
|
11898
11898
|
}
|
|
11899
|
-
function
|
|
11900
|
-
return t.method === "POST" &&
|
|
11899
|
+
function Og(t) {
|
|
11900
|
+
return t.method === "POST" && Di(t, "application/graphql");
|
|
11901
11901
|
}
|
|
11902
|
-
async function
|
|
11902
|
+
async function Ng(t) {
|
|
11903
11903
|
return {
|
|
11904
11904
|
query: await t.text()
|
|
11905
11905
|
};
|
|
11906
11906
|
}
|
|
11907
|
-
function
|
|
11908
|
-
return t.method === "POST" && (
|
|
11907
|
+
function Ag(t) {
|
|
11908
|
+
return t.method === "POST" && (Di(t, "application/json") || Di(t, "application/graphql+json"));
|
|
11909
11909
|
}
|
|
11910
|
-
async function
|
|
11910
|
+
async function xg(t) {
|
|
11911
11911
|
let e;
|
|
11912
11912
|
try {
|
|
11913
11913
|
e = await t.json();
|
|
@@ -11944,15 +11944,15 @@ async function Fg(t) {
|
|
|
11944
11944
|
});
|
|
11945
11945
|
return e;
|
|
11946
11946
|
}
|
|
11947
|
-
function
|
|
11947
|
+
function Fg(t, e, n) {
|
|
11948
11948
|
e.split && (e = e.split("."));
|
|
11949
11949
|
for (var i = 0, r = e.length, s = t, o, a; i < r && (a = "" + e[i++], !(a === "__proto__" || a === "constructor" || a === "prototype")); )
|
|
11950
11950
|
s = s[a] = i === r ? n : typeof (o = s[a]) == typeof e ? o : e[i] * 0 !== 0 || ~("" + e[i]).indexOf(".") ? {} : [];
|
|
11951
11951
|
}
|
|
11952
|
-
function
|
|
11953
|
-
return t.method === "POST" &&
|
|
11952
|
+
function Rg(t) {
|
|
11953
|
+
return t.method === "POST" && Di(t, "multipart/form-data");
|
|
11954
11954
|
}
|
|
11955
|
-
async function
|
|
11955
|
+
async function Lg(t) {
|
|
11956
11956
|
let e;
|
|
11957
11957
|
try {
|
|
11958
11958
|
e = await t.formData();
|
|
@@ -11989,13 +11989,13 @@ async function Cg(t) {
|
|
|
11989
11989
|
for (const o in s) {
|
|
11990
11990
|
const a = e.get(o), u = s[o];
|
|
11991
11991
|
for (const c of u)
|
|
11992
|
-
|
|
11992
|
+
Fg(i, c, a);
|
|
11993
11993
|
}
|
|
11994
11994
|
}
|
|
11995
11995
|
return i;
|
|
11996
11996
|
}
|
|
11997
|
-
const
|
|
11998
|
-
function
|
|
11997
|
+
const Cg = /* @__PURE__ */ new Set(["query", "variables", "operationName", "extensions"]);
|
|
11998
|
+
function kg(t, e) {
|
|
11999
11999
|
if (t == null || typeof t != "object")
|
|
12000
12000
|
throw X('Invalid "params" in the request body', {
|
|
12001
12001
|
extensions: {
|
|
@@ -12006,7 +12006,7 @@ function Dg(t, e) {
|
|
|
12006
12006
|
}
|
|
12007
12007
|
});
|
|
12008
12008
|
for (const n in t)
|
|
12009
|
-
if (t[n] != null && !
|
|
12009
|
+
if (t[n] != null && !Cg.has(n)) {
|
|
12010
12010
|
if (e != null && e.includes(n))
|
|
12011
12011
|
continue;
|
|
12012
12012
|
throw X(`Unexpected parameter "${n}" in the request body.`, {
|
|
@@ -12018,9 +12018,9 @@ function Dg(t, e) {
|
|
|
12018
12018
|
});
|
|
12019
12019
|
}
|
|
12020
12020
|
}
|
|
12021
|
-
function
|
|
12022
|
-
if (!
|
|
12023
|
-
throw X(`Expected params to be an object but given ${
|
|
12021
|
+
function Dg(t, e) {
|
|
12022
|
+
if (!jg(t))
|
|
12023
|
+
throw X(`Expected params to be an object but given ${Ni(t)}.`, {
|
|
12024
12024
|
extensions: {
|
|
12025
12025
|
http: {
|
|
12026
12026
|
status: 400,
|
|
@@ -12030,7 +12030,7 @@ function $g(t, e) {
|
|
|
12030
12030
|
}
|
|
12031
12031
|
}
|
|
12032
12032
|
});
|
|
12033
|
-
if (
|
|
12033
|
+
if (kg(t, e), t.query == null)
|
|
12034
12034
|
throw X("Must provide query string.", {
|
|
12035
12035
|
extensions: {
|
|
12036
12036
|
http: {
|
|
@@ -12042,7 +12042,7 @@ function $g(t, e) {
|
|
|
12042
12042
|
}
|
|
12043
12043
|
}
|
|
12044
12044
|
});
|
|
12045
|
-
const n =
|
|
12045
|
+
const n = Ni(t.query);
|
|
12046
12046
|
if (n !== "string")
|
|
12047
12047
|
throw X(`Expected "query" param to be a string, but given ${n}.`, {
|
|
12048
12048
|
extensions: {
|
|
@@ -12054,7 +12054,7 @@ function $g(t, e) {
|
|
|
12054
12054
|
}
|
|
12055
12055
|
}
|
|
12056
12056
|
});
|
|
12057
|
-
const i =
|
|
12057
|
+
const i = Ni(t.variables);
|
|
12058
12058
|
if (!["object", "null", "undefined"].includes(i))
|
|
12059
12059
|
throw X(`Expected "variables" param to be empty or an object, but given ${i}.`, {
|
|
12060
12060
|
extensions: {
|
|
@@ -12066,7 +12066,7 @@ function $g(t, e) {
|
|
|
12066
12066
|
}
|
|
12067
12067
|
}
|
|
12068
12068
|
});
|
|
12069
|
-
const r =
|
|
12069
|
+
const r = Ni(t.extensions);
|
|
12070
12070
|
if (!["object", "null", "undefined"].includes(r))
|
|
12071
12071
|
throw X(`Expected "extensions" param to be empty or an object, but given ${r}.`, {
|
|
12072
12072
|
extensions: {
|
|
@@ -12080,26 +12080,26 @@ function $g(t, e) {
|
|
|
12080
12080
|
});
|
|
12081
12081
|
return t;
|
|
12082
12082
|
}
|
|
12083
|
-
function
|
|
12083
|
+
function $g(t) {
|
|
12084
12084
|
return {
|
|
12085
12085
|
onParams({ params: e }) {
|
|
12086
|
-
|
|
12086
|
+
Dg(e, t);
|
|
12087
12087
|
}
|
|
12088
12088
|
};
|
|
12089
12089
|
}
|
|
12090
|
-
function
|
|
12090
|
+
function Ni(t) {
|
|
12091
12091
|
return t === null ? "null" : Array.isArray(t) ? "array" : typeof t;
|
|
12092
12092
|
}
|
|
12093
|
-
function
|
|
12094
|
-
return
|
|
12093
|
+
function jg(t) {
|
|
12094
|
+
return Ni(t) === "object";
|
|
12095
12095
|
}
|
|
12096
|
-
function
|
|
12096
|
+
function Pg(t) {
|
|
12097
12097
|
return t === "GET" || t === "POST";
|
|
12098
12098
|
}
|
|
12099
|
-
function
|
|
12099
|
+
function Mg() {
|
|
12100
12100
|
return {
|
|
12101
12101
|
onRequestParse({ request: t }) {
|
|
12102
|
-
if (!
|
|
12102
|
+
if (!Pg(t.method))
|
|
12103
12103
|
throw X("GraphQL only supports GET and POST requests.", {
|
|
12104
12104
|
extensions: {
|
|
12105
12105
|
http: {
|
|
@@ -12113,7 +12113,7 @@ function Ug() {
|
|
|
12113
12113
|
}
|
|
12114
12114
|
};
|
|
12115
12115
|
}
|
|
12116
|
-
function
|
|
12116
|
+
function Ug() {
|
|
12117
12117
|
return {
|
|
12118
12118
|
onValidate() {
|
|
12119
12119
|
return ({ valid: t, result: e }) => {
|
|
@@ -12129,7 +12129,7 @@ function Vg() {
|
|
|
12129
12129
|
}
|
|
12130
12130
|
};
|
|
12131
12131
|
}
|
|
12132
|
-
function
|
|
12132
|
+
function Vg(t) {
|
|
12133
12133
|
return {
|
|
12134
12134
|
onRequestParse() {
|
|
12135
12135
|
return {
|
|
@@ -12157,7 +12157,7 @@ function Bg(t) {
|
|
|
12157
12157
|
}
|
|
12158
12158
|
};
|
|
12159
12159
|
}
|
|
12160
|
-
function
|
|
12160
|
+
function Bg(t, e, n) {
|
|
12161
12161
|
const i = e ? eo(e, n) ?? void 0 : void 0;
|
|
12162
12162
|
if (!i)
|
|
12163
12163
|
throw X("Could not determine what operation to execute.", {
|
|
@@ -12179,7 +12179,7 @@ function Gg(t, e, n) {
|
|
|
12179
12179
|
}
|
|
12180
12180
|
});
|
|
12181
12181
|
}
|
|
12182
|
-
function
|
|
12182
|
+
function Gg() {
|
|
12183
12183
|
return {
|
|
12184
12184
|
onParse() {
|
|
12185
12185
|
return ({ result: t, context: {
|
|
@@ -12194,13 +12194,13 @@ function qg() {
|
|
|
12194
12194
|
spec: !0,
|
|
12195
12195
|
status: 400
|
|
12196
12196
|
}), t;
|
|
12197
|
-
|
|
12197
|
+
Bg(e.method, t, n);
|
|
12198
12198
|
}
|
|
12199
12199
|
};
|
|
12200
12200
|
}
|
|
12201
12201
|
};
|
|
12202
12202
|
}
|
|
12203
|
-
function
|
|
12203
|
+
function qg({ id: t = Date.now().toString(), logger: e = console, endpoint: n = "/health" } = {}) {
|
|
12204
12204
|
return {
|
|
12205
12205
|
onRequest({ endResponse: i, fetchAPI: r, request: s }) {
|
|
12206
12206
|
if (s.url.endsWith(n)) {
|
|
@@ -12252,14 +12252,14 @@ if (typeof Lr > "u") {
|
|
|
12252
12252
|
t && (t = !1, yl("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));
|
|
12253
12253
|
};
|
|
12254
12254
|
}
|
|
12255
|
-
const
|
|
12255
|
+
const zg = (t) => !ml.has(t), sn = (t) => t && t === Math.floor(t) && t > 0 && isFinite(t), bl = (t) => sn(t) ? t <= Math.pow(2, 8) ? Uint8Array : t <= Math.pow(2, 16) ? Uint16Array : t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? yr : null : null;
|
|
12256
12256
|
let yr = class extends Array {
|
|
12257
12257
|
constructor(e) {
|
|
12258
12258
|
super(e), this.fill(0);
|
|
12259
12259
|
}
|
|
12260
12260
|
};
|
|
12261
12261
|
var Ht, Kn;
|
|
12262
|
-
let
|
|
12262
|
+
let Qg = (Ht = class {
|
|
12263
12263
|
constructor(e, n) {
|
|
12264
12264
|
U(this, "heap");
|
|
12265
12265
|
U(this, "length");
|
|
@@ -12283,8 +12283,8 @@ let Wg = (Ht = class {
|
|
|
12283
12283
|
}
|
|
12284
12284
|
}, Kn = new WeakMap(), // private constructor
|
|
12285
12285
|
H(Ht, Kn, !1), Ht);
|
|
12286
|
-
var Va, Ba, vt, rt, Tt, St, Xn, Zn, Ie, _t, Te, de, ee, Qe, st, Ge, Re, It, Le, Ot, Nt, ot, At, gn, We, V, Fs, Fn, en, $i, at, wl, Rn, ei, ji, on, an, Rs, br, wr, ce, Ls,
|
|
12287
|
-
let
|
|
12286
|
+
var Va, Ba, vt, rt, Tt, St, Xn, Zn, Ie, _t, Te, de, ee, Qe, st, Ge, Re, It, Le, Ot, Nt, ot, At, gn, We, V, Fs, Fn, en, $i, at, wl, Rn, ei, ji, on, an, Rs, br, wr, ce, Ls, Ai, un, Cs, ti;
|
|
12287
|
+
let Wg = (ti = class {
|
|
12288
12288
|
constructor(e) {
|
|
12289
12289
|
H(this, V);
|
|
12290
12290
|
// options that cannot be changed without disaster
|
|
@@ -12412,7 +12412,7 @@ let Hg = (ti = class {
|
|
|
12412
12412
|
throw new TypeError("memoMethod must be a function if defined");
|
|
12413
12413
|
if ($(this, Zn, y), x !== void 0 && typeof x != "function")
|
|
12414
12414
|
throw new TypeError("fetchMethod must be a function if specified");
|
|
12415
|
-
if ($(this, Xn, x), $(this, gn, !!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, It,
|
|
12415
|
+
if ($(this, Xn, x), $(this, gn, !!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, It, Qg.create(n)), $(this, Ie, 0), $(this, _t, 0), typeof c == "function" && $(this, Tt, c), typeof f == "function" ? ($(this, St, f), $(this, Le, [])) : ($(this, St, void 0), $(this, Le, void 0)), $(this, At, !!l(this, Tt)), $(this, We, !!l(this, St)), this.noDisposeOnSet = !!g, this.noUpdateTTL = !!p, this.noDeleteOnFetchRejection = !!S, this.allowStaleOnFetchRejection = !!O, this.allowStaleOnFetchAbort = !!C, this.ignoreFetchAbort = !!T, this.maxEntrySize !== 0) {
|
|
12416
12416
|
if (l(this, rt) !== 0 && !sn(l(this, rt)))
|
|
12417
12417
|
throw new TypeError("maxSize must be a positive integer if specified");
|
|
12418
12418
|
if (!sn(this.maxEntrySize))
|
|
@@ -12428,7 +12428,7 @@ let Hg = (ti = class {
|
|
|
12428
12428
|
throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
12429
12429
|
if (!this.ttlAutopurge && !l(this, vt) && !l(this, rt)) {
|
|
12430
12430
|
const m = "LRU_CACHE_UNBOUNDED";
|
|
12431
|
-
|
|
12431
|
+
zg(m) && (ml.add(m), yl("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", m, ti));
|
|
12432
12432
|
}
|
|
12433
12433
|
}
|
|
12434
12434
|
/**
|
|
@@ -12469,7 +12469,7 @@ let Hg = (ti = class {
|
|
|
12469
12469
|
},
|
|
12470
12470
|
moveToTail: (n) => {
|
|
12471
12471
|
var i;
|
|
12472
|
-
return k(i = e, V,
|
|
12472
|
+
return k(i = e, V, Ai).call(i, n);
|
|
12473
12473
|
},
|
|
12474
12474
|
indexes: (n) => {
|
|
12475
12475
|
var i;
|
|
@@ -12771,7 +12771,7 @@ let Hg = (ti = class {
|
|
|
12771
12771
|
if (g === void 0)
|
|
12772
12772
|
g = l(this, Ie) === 0 ? l(this, Re) : l(this, It).length !== 0 ? l(this, It).pop() : l(this, Ie) === l(this, vt) ? k(this, V, br).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), Sn(this, Ie)._++, l(this, ei).call(this, g, f, u), u && (u.set = "add"), c = !1;
|
|
12773
12773
|
else {
|
|
12774
|
-
k(this, V,
|
|
12774
|
+
k(this, V, Ai).call(this, g);
|
|
12775
12775
|
const y = l(this, ee)[g];
|
|
12776
12776
|
if (n !== y) {
|
|
12777
12777
|
if (l(this, gn) && k(this, V, ce).call(this, y)) {
|
|
@@ -12918,7 +12918,7 @@ let Hg = (ti = class {
|
|
|
12918
12918
|
}
|
|
12919
12919
|
const T = l(this, at).call(this, O);
|
|
12920
12920
|
if (!x && !T)
|
|
12921
|
-
return y && (y.fetch = "hit"), k(this, V,
|
|
12921
|
+
return y && (y.fetch = "hit"), k(this, V, Ai).call(this, O), r && l(this, Fn).call(this, O), y && l(this, en).call(this, y, O), C;
|
|
12922
12922
|
const _ = k(this, V, wr).call(this, e, O, A, R), b = _.__staleWhileFetching !== void 0 && i;
|
|
12923
12923
|
return y && (y.fetch = T ? "stale" : "refresh", b && T && (y.returnedStale = !0)), b ? _.__staleWhileFetching : _.__returned = _;
|
|
12924
12924
|
}
|
|
@@ -12952,7 +12952,7 @@ let Hg = (ti = class {
|
|
|
12952
12952
|
const { allowStale: i = this.allowStale, updateAgeOnGet: r = this.updateAgeOnGet, noDeleteOnStaleGet: s = this.noDeleteOnStaleGet, status: o } = n, a = l(this, Te).get(e);
|
|
12953
12953
|
if (a !== void 0) {
|
|
12954
12954
|
const u = l(this, ee)[a], c = k(this, V, ce).call(this, u);
|
|
12955
|
-
return o && l(this, en).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, un).call(this, e, "expire"), o && i && (o.returnedStale = !0), i ? u : void 0)) : (o && (o.get = "hit"), c ? u.__staleWhileFetching : (k(this, V,
|
|
12955
|
+
return o && l(this, en).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, un).call(this, e, "expire"), o && i && (o.returnedStale = !0), i ? u : void 0)) : (o && (o.get = "hit"), c ? u.__staleWhileFetching : (k(this, V, Ai).call(this, a), r && l(this, Fn).call(this, a), u));
|
|
12956
12956
|
} else o && (o.get = "miss");
|
|
12957
12957
|
}
|
|
12958
12958
|
/**
|
|
@@ -13096,7 +13096,7 @@ let Hg = (ti = class {
|
|
|
13096
13096
|
return !!n && n instanceof Promise && n.hasOwnProperty("__staleWhileFetching") && n.__abortController instanceof Lr;
|
|
13097
13097
|
}, Ls = function(e, n) {
|
|
13098
13098
|
l(this, st)[n] = e, l(this, Qe)[e] = n;
|
|
13099
|
-
},
|
|
13099
|
+
}, Ai = function(e) {
|
|
13100
13100
|
e !== l(this, Re) && (e === l(this, Ge) ? $(this, Ge, l(this, Qe)[e]) : k(this, V, Ls).call(this, l(this, st)[e], l(this, Qe)[e]), k(this, V, Ls).call(this, l(this, Re), e), $(this, Re, e));
|
|
13101
13101
|
}, un = function(e, n) {
|
|
13102
13102
|
var r, s, o, a;
|
|
@@ -13147,11 +13147,11 @@ let Hg = (ti = class {
|
|
|
13147
13147
|
(r = l(this, St)) == null || r.call(this, ...o);
|
|
13148
13148
|
}
|
|
13149
13149
|
}, ti);
|
|
13150
|
-
const
|
|
13151
|
-
function ls({ max: t =
|
|
13152
|
-
return new
|
|
13150
|
+
const Hg = 1024, Yg = 36e5;
|
|
13151
|
+
function ls({ max: t = Hg, ttl: e = Yg } = {}) {
|
|
13152
|
+
return new Wg({ max: t, ttl: e });
|
|
13153
13153
|
}
|
|
13154
|
-
function
|
|
13154
|
+
function Jg({ documentCache: t = ls(), errorCache: e = ls(), validationCache: n = !0 }) {
|
|
13155
13155
|
const i = ls();
|
|
13156
13156
|
return {
|
|
13157
13157
|
onParse({ params: r, setParsedDocument: s }) {
|
|
@@ -13190,16 +13190,16 @@ function Kg({ documentCache: t = ls(), errorCache: e = ls(), validationCache: n
|
|
|
13190
13190
|
}
|
|
13191
13191
|
};
|
|
13192
13192
|
}
|
|
13193
|
-
const
|
|
13194
|
-
function
|
|
13195
|
-
const e = t.match ||
|
|
13193
|
+
const Kg = () => !0;
|
|
13194
|
+
function Ei(t) {
|
|
13195
|
+
const e = t.match || Kg;
|
|
13196
13196
|
return {
|
|
13197
13197
|
onRequestParse({ request: n, setRequestParser: i }) {
|
|
13198
13198
|
e(n) && i(t.parse);
|
|
13199
13199
|
}
|
|
13200
13200
|
};
|
|
13201
13201
|
}
|
|
13202
|
-
function
|
|
13202
|
+
function Xg(t) {
|
|
13203
13203
|
const e = (t.headers.get("accept") || "*/*").replace(/\s/g, "").toLowerCase().split(","), n = [];
|
|
13204
13204
|
for (const i of e) {
|
|
13205
13205
|
const [r, ...s] = i.split(";");
|
|
@@ -13207,7 +13207,7 @@ function Zg(t) {
|
|
|
13207
13207
|
}
|
|
13208
13208
|
return n.reverse();
|
|
13209
13209
|
}
|
|
13210
|
-
function
|
|
13210
|
+
function Zg(t, e) {
|
|
13211
13211
|
const [n, i] = t.split("/"), [r, s] = e.split("/");
|
|
13212
13212
|
return (r === "*" || r === n) && (s === "*" || s === i);
|
|
13213
13213
|
}
|
|
@@ -13246,7 +13246,7 @@ function El(t) {
|
|
|
13246
13246
|
}
|
|
13247
13247
|
return t;
|
|
13248
13248
|
}
|
|
13249
|
-
function
|
|
13249
|
+
function em(t, e) {
|
|
13250
13250
|
const i = io(t, {
|
|
13251
13251
|
Connection: "keep-alive",
|
|
13252
13252
|
"Content-Type": 'multipart/mixed; boundary="-"',
|
|
@@ -13292,7 +13292,7 @@ function tm(t, e) {
|
|
|
13292
13292
|
});
|
|
13293
13293
|
return new e.Response(o, i);
|
|
13294
13294
|
}
|
|
13295
|
-
function
|
|
13295
|
+
function tm(t, e, n) {
|
|
13296
13296
|
if (qr(t))
|
|
13297
13297
|
return new e.Response(null, {
|
|
13298
13298
|
status: 406,
|
|
@@ -13307,14 +13307,14 @@ function nm(t, e, n) {
|
|
|
13307
13307
|
t,
|
|
13308
13308
|
i,
|
|
13309
13309
|
// prefer 200 only if accepting application/json and all errors are exclusively GraphQL errors
|
|
13310
|
-
n === "application/json" && !Array.isArray(t) &&
|
|
13310
|
+
n === "application/json" && !Array.isArray(t) && Xh(t.errors) && t.errors.some((o) => {
|
|
13311
13311
|
var a;
|
|
13312
13312
|
return !((a = o.extensions) != null && a.originalError) || li(o.extensions.originalError);
|
|
13313
13313
|
})
|
|
13314
13314
|
), s = uo(t);
|
|
13315
13315
|
return new e.Response(s, r);
|
|
13316
13316
|
}
|
|
13317
|
-
function
|
|
13317
|
+
function nm() {
|
|
13318
13318
|
return function(e, n) {
|
|
13319
13319
|
var f, g;
|
|
13320
13320
|
let i = 12e3;
|
|
@@ -13374,40 +13374,40 @@ function im() {
|
|
|
13374
13374
|
return new n.Response(c, s);
|
|
13375
13375
|
};
|
|
13376
13376
|
}
|
|
13377
|
-
const
|
|
13377
|
+
const im = {
|
|
13378
13378
|
mediaTypes: ["multipart/mixed"],
|
|
13379
13379
|
asyncIterables: !0,
|
|
13380
|
-
processResult:
|
|
13380
|
+
processResult: em
|
|
13381
13381
|
};
|
|
13382
|
-
function
|
|
13382
|
+
function rm() {
|
|
13383
13383
|
return {
|
|
13384
13384
|
mediaTypes: ["text/event-stream"],
|
|
13385
13385
|
asyncIterables: !0,
|
|
13386
|
-
processResult:
|
|
13386
|
+
processResult: nm()
|
|
13387
13387
|
};
|
|
13388
13388
|
}
|
|
13389
13389
|
const Ra = {
|
|
13390
13390
|
mediaTypes: ["application/graphql-response+json", "application/json"],
|
|
13391
13391
|
asyncIterables: !1,
|
|
13392
|
-
processResult:
|
|
13392
|
+
processResult: tm
|
|
13393
13393
|
};
|
|
13394
|
-
function
|
|
13395
|
-
const t = /* @__PURE__ */ new WeakMap(), e =
|
|
13394
|
+
function sm() {
|
|
13395
|
+
const t = /* @__PURE__ */ new WeakMap(), e = rm(), n = [e, im, Ra], i = [e, Ra];
|
|
13396
13396
|
return {
|
|
13397
13397
|
onSubscribe({ args: { contextValue: r } }) {
|
|
13398
13398
|
r.request && t.set(r.request, !0);
|
|
13399
13399
|
},
|
|
13400
13400
|
onResultProcess({ request: r, result: s, acceptableMediaTypes: o, setResultProcessor: a }) {
|
|
13401
|
-
const c = t.get(r) ? i : n, f =
|
|
13401
|
+
const c = t.get(r) ? i : n, f = Xg(r), g = Qt(s);
|
|
13402
13402
|
for (const p of c)
|
|
13403
13403
|
for (const v of f)
|
|
13404
13404
|
if (!(g && !p.asyncIterables))
|
|
13405
13405
|
for (const w of p.mediaTypes)
|
|
13406
|
-
o.push(w),
|
|
13406
|
+
o.push(w), Zg(w, v) && a(p.processResult, w);
|
|
13407
13407
|
}
|
|
13408
13408
|
};
|
|
13409
13409
|
}
|
|
13410
|
-
const am = `<!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>
|
|
13410
|
+
const om = `<!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>
|
|
13411
13411
|
<code>
|
|
13412
13412
|
import { createYoga } from 'graphql-yoga';
|
|
13413
13413
|
|
|
@@ -13423,8 +13423,8 @@ const yoga = createYoga({
|
|
|
13423
13423
|
graphqlEndpoint: '__REQUEST_PATH__',
|
|
13424
13424
|
})
|
|
13425
13425
|
</code>
|
|
13426
|
-
</pre></section></main></body></html>`,
|
|
13427
|
-
return new e.fetchAPI.Response(
|
|
13426
|
+
</pre></section></main></body></html>`, am = function(e) {
|
|
13427
|
+
return new e.fetchAPI.Response(om.replace(/__GRAPHIQL_LINK__/g, e.graphqlEndpoint).replace(/__REQUEST_PATH__/g, e.url.pathname), {
|
|
13428
13428
|
status: 200,
|
|
13429
13429
|
statusText: "OK",
|
|
13430
13430
|
headers: {
|
|
@@ -13432,14 +13432,14 @@ const yoga = createYoga({
|
|
|
13432
13432
|
}
|
|
13433
13433
|
});
|
|
13434
13434
|
};
|
|
13435
|
-
function
|
|
13435
|
+
function um(t) {
|
|
13436
13436
|
let e;
|
|
13437
13437
|
function n({ URLPattern: r }) {
|
|
13438
13438
|
return e || (e = new r({
|
|
13439
13439
|
pathname: t.graphqlEndpoint
|
|
13440
13440
|
})), e;
|
|
13441
13441
|
}
|
|
13442
|
-
const i = t.landingPageRenderer ||
|
|
13442
|
+
const i = t.landingPageRenderer || am;
|
|
13443
13443
|
return {
|
|
13444
13444
|
onRequest({ request: r, fetchAPI: s, endResponse: o, url: a }) {
|
|
13445
13445
|
var u, c;
|
|
@@ -13493,7 +13493,7 @@ async function La({ request: t, result: e, fetchAPI: n, onResultProcessHooks: i,
|
|
|
13493
13493
|
}
|
|
13494
13494
|
});
|
|
13495
13495
|
}
|
|
13496
|
-
async function
|
|
13496
|
+
async function lm({ params: t, enveloped: e }) {
|
|
13497
13497
|
const n = e.parse(t.query), i = e.validate(e.schema, n);
|
|
13498
13498
|
if (i.length > 0)
|
|
13499
13499
|
return { errors: i };
|
|
@@ -13506,7 +13506,7 @@ async function cm({ params: t, enveloped: e }) {
|
|
|
13506
13506
|
}, o = eo(n, t.operationName);
|
|
13507
13507
|
return ((o == null ? void 0 : o.operation) === "subscription" ? e.subscribe : e.execute)(s);
|
|
13508
13508
|
}
|
|
13509
|
-
const
|
|
13509
|
+
const cm = (t, e, n = ((r) => (r = ((i) => (i = globalThis.process) == null ? void 0 : i.env)()) == null ? void 0 : r.NODE_ENV)() === "development") => {
|
|
13510
13510
|
if (li(t)) {
|
|
13511
13511
|
if (t.originalError) {
|
|
13512
13512
|
if (t.originalError.name === "GraphQLError")
|
|
@@ -13538,7 +13538,7 @@ const fm = (t, e, n = ((r) => (r = ((i) => (i = globalThis.process) == null ? vo
|
|
|
13538
13538
|
}
|
|
13539
13539
|
});
|
|
13540
13540
|
};
|
|
13541
|
-
class
|
|
13541
|
+
class fm {
|
|
13542
13542
|
constructor(e) {
|
|
13543
13543
|
/**
|
|
13544
13544
|
* Instance of envelop
|
|
@@ -13608,7 +13608,7 @@ class dm {
|
|
|
13608
13608
|
e.fetchAPI[u] && (this.fetchAPI[u] = e.fetchAPI[u]);
|
|
13609
13609
|
const n = (e == null ? void 0 : e.logging) == null ? !0 : e.logging;
|
|
13610
13610
|
this.logger = typeof n == "boolean" ? n === !0 ? us() : us("silent") : typeof n == "string" ? us(n) : n;
|
|
13611
|
-
const i = typeof (e == null ? void 0 : e.maskedErrors) == "object" && e.maskedErrors.maskError ||
|
|
13611
|
+
const i = typeof (e == null ? void 0 : e.maskedErrors) == "object" && e.maskedErrors.maskError || cm, r = /* @__PURE__ */ new WeakSet();
|
|
13612
13612
|
this.maskedErrorsOpts = (e == null ? void 0 : e.maskedErrors) === !1 ? null : {
|
|
13613
13613
|
errorMessage: "Unexpected error.",
|
|
13614
13614
|
...typeof (e == null ? void 0 : e.maskedErrors) == "object" ? e.maskedErrors : {},
|
|
@@ -13625,53 +13625,53 @@ class dm {
|
|
|
13625
13625
|
e != null && e.batching && (typeof e.batching == "boolean" ? o = 10 : o = e.batching.limit ?? 10), this.graphqlEndpoint = (e == null ? void 0 : e.graphqlEndpoint) || "/graphql";
|
|
13626
13626
|
const a = this.graphqlEndpoint;
|
|
13627
13627
|
this.plugins = [
|
|
13628
|
-
|
|
13629
|
-
parse:
|
|
13630
|
-
validate:
|
|
13628
|
+
yc({
|
|
13629
|
+
parse: Qc,
|
|
13630
|
+
validate: Cd,
|
|
13631
13631
|
execute: va,
|
|
13632
13632
|
subscribe: va,
|
|
13633
13633
|
specifiedRules: ju
|
|
13634
13634
|
}),
|
|
13635
13635
|
// Use the schema provided by the user
|
|
13636
|
-
!!(e != null && e.schema) &&
|
|
13637
|
-
(e == null ? void 0 : e.context) != null &&
|
|
13636
|
+
!!(e != null && e.schema) && ap(e.schema),
|
|
13637
|
+
(e == null ? void 0 : e.context) != null && mc((u) => e != null && e.context ? typeof e.context == "function" ? e.context(u) : e.context : {}),
|
|
13638
13638
|
// Middlewares before processing the incoming HTTP request
|
|
13639
|
-
|
|
13639
|
+
qg({
|
|
13640
13640
|
id: this.id,
|
|
13641
13641
|
logger: this.logger,
|
|
13642
13642
|
endpoint: e == null ? void 0 : e.healthCheckEndpoint
|
|
13643
13643
|
}),
|
|
13644
|
-
(e == null ? void 0 : e.cors) !== !1 &&
|
|
13645
|
-
(e == null ? void 0 : e.graphiql) !== !1 &&
|
|
13644
|
+
(e == null ? void 0 : e.cors) !== !1 && bg(e == null ? void 0 : e.cors),
|
|
13645
|
+
(e == null ? void 0 : e.graphiql) !== !1 && op({
|
|
13646
13646
|
graphqlEndpoint: a,
|
|
13647
13647
|
options: e == null ? void 0 : e.graphiql,
|
|
13648
13648
|
render: e == null ? void 0 : e.renderGraphiQL,
|
|
13649
13649
|
logger: this.logger
|
|
13650
13650
|
}),
|
|
13651
13651
|
// Middlewares before the GraphQL execution
|
|
13652
|
-
|
|
13653
|
-
match:
|
|
13654
|
-
parse:
|
|
13652
|
+
Ei({
|
|
13653
|
+
match: Tg,
|
|
13654
|
+
parse: Sg
|
|
13655
13655
|
}),
|
|
13656
|
-
|
|
13657
|
-
match:
|
|
13658
|
-
parse:
|
|
13656
|
+
Ei({
|
|
13657
|
+
match: Ag,
|
|
13658
|
+
parse: xg
|
|
13659
13659
|
}),
|
|
13660
|
-
(e == null ? void 0 : e.multipart) !== !1 &&
|
|
13661
|
-
match:
|
|
13662
|
-
parse:
|
|
13660
|
+
(e == null ? void 0 : e.multipart) !== !1 && Ei({
|
|
13661
|
+
match: Rg,
|
|
13662
|
+
parse: Lg
|
|
13663
13663
|
}),
|
|
13664
|
-
|
|
13665
|
-
match:
|
|
13666
|
-
parse:
|
|
13664
|
+
Ei({
|
|
13665
|
+
match: Og,
|
|
13666
|
+
parse: Ng
|
|
13667
13667
|
}),
|
|
13668
|
-
|
|
13669
|
-
match:
|
|
13670
|
-
parse:
|
|
13668
|
+
Ei({
|
|
13669
|
+
match: _g,
|
|
13670
|
+
parse: Ig
|
|
13671
13671
|
}),
|
|
13672
13672
|
// Middlewares after the GraphQL execution
|
|
13673
|
-
|
|
13674
|
-
|
|
13673
|
+
sm(),
|
|
13674
|
+
Eg((u, c, f) => {
|
|
13675
13675
|
const p = {
|
|
13676
13676
|
errors: gr(u, this.maskedErrorsOpts, this.logger)
|
|
13677
13677
|
};
|
|
@@ -13689,17 +13689,17 @@ class dm {
|
|
|
13689
13689
|
onPluginInit({ addPlugin: u }) {
|
|
13690
13690
|
(e == null ? void 0 : e.parserAndValidationCache) !== !1 && u(
|
|
13691
13691
|
// @ts-expect-error Add plugins has context but this hook doesn't care
|
|
13692
|
-
|
|
13693
|
-
), u(
|
|
13692
|
+
Jg(!(e != null && e.parserAndValidationCache) || (e == null ? void 0 : e.parserAndValidationCache) === !0 ? {} : e == null ? void 0 : e.parserAndValidationCache)
|
|
13693
|
+
), u(Vg(o)), u($g(e == null ? void 0 : e.extraParamNames));
|
|
13694
13694
|
const c = !!((e == null ? void 0 : e.landingPage) ?? !0);
|
|
13695
13695
|
u(
|
|
13696
13696
|
// @ts-expect-error Add plugins has context but this hook doesn't care
|
|
13697
|
-
|
|
13697
|
+
um({
|
|
13698
13698
|
graphqlEndpoint: a,
|
|
13699
13699
|
showLandingPage: c,
|
|
13700
13700
|
landingPageRenderer: typeof (e == null ? void 0 : e.landingPage) == "function" ? e.landingPage : void 0
|
|
13701
13701
|
})
|
|
13702
|
-
), u(
|
|
13702
|
+
), u(Mg()), u(Gg()), s && (u({
|
|
13703
13703
|
onSubscribe() {
|
|
13704
13704
|
return {
|
|
13705
13705
|
onSubscribeError({ error: f }) {
|
|
@@ -13708,13 +13708,13 @@ class dm {
|
|
|
13708
13708
|
}
|
|
13709
13709
|
};
|
|
13710
13710
|
}
|
|
13711
|
-
}), u(
|
|
13711
|
+
}), u(gc(s))), u(
|
|
13712
13712
|
// We handle validation errors at the end
|
|
13713
|
-
|
|
13713
|
+
Ug()
|
|
13714
13714
|
);
|
|
13715
13715
|
}
|
|
13716
13716
|
}
|
|
13717
|
-
], this.getEnveloped =
|
|
13717
|
+
], this.getEnveloped = oc({
|
|
13718
13718
|
plugins: this.plugins
|
|
13719
13719
|
}), this.plugins = this.getEnveloped._plugins, this.onRequestParseHooks = [], this.onParamsHooks = [], this.onExecutionResultHooks = [], this.onResultProcessHooks = [];
|
|
13720
13720
|
for (const u of this.plugins)
|
|
@@ -13746,7 +13746,7 @@ class dm {
|
|
|
13746
13746
|
};
|
|
13747
13747
|
o = Object.assign(i ? Object.create(r) : r, a);
|
|
13748
13748
|
const u = this.getEnveloped(o);
|
|
13749
|
-
this.logger.debug("Processing GraphQL Parameters"), s = await
|
|
13749
|
+
this.logger.debug("Processing GraphQL Parameters"), s = await lm({
|
|
13750
13750
|
params: e,
|
|
13751
13751
|
enveloped: u
|
|
13752
13752
|
}), this.logger.debug("Processing GraphQL Parameters done.");
|
|
@@ -13778,9 +13778,9 @@ class dm {
|
|
|
13778
13778
|
return s;
|
|
13779
13779
|
}
|
|
13780
13780
|
}
|
|
13781
|
-
function
|
|
13782
|
-
const e = new
|
|
13783
|
-
return
|
|
13781
|
+
function dm(t) {
|
|
13782
|
+
const e = new fm(t);
|
|
13783
|
+
return gg(e, {
|
|
13784
13784
|
fetchAPI: e.fetchAPI,
|
|
13785
13785
|
plugins: e.plugins
|
|
13786
13786
|
});
|
|
@@ -13821,7 +13821,7 @@ if (typeof Cr > "u") {
|
|
|
13821
13821
|
t && (t = !1, Tl("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));
|
|
13822
13822
|
};
|
|
13823
13823
|
}
|
|
13824
|
-
const
|
|
13824
|
+
const hm = (t) => !vl.has(t), ln = (t) => t && t === Math.floor(t) && t > 0 && isFinite(t), Sl = (t) => ln(t) ? t <= Math.pow(2, 8) ? Uint8Array : t <= Math.pow(2, 16) ? Uint16Array : t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? Er : null : null;
|
|
13825
13825
|
class Er extends Array {
|
|
13826
13826
|
constructor(e) {
|
|
13827
13827
|
super(e), this.fill(0);
|
|
@@ -13854,7 +13854,7 @@ const Nn = class Nn {
|
|
|
13854
13854
|
ni = new WeakMap(), // private constructor
|
|
13855
13855
|
H(Nn, ni, !1);
|
|
13856
13856
|
let Ds = Nn;
|
|
13857
|
-
var qa, za, xt, ut, Ft, Rt, ii, ri, Oe, Lt, Se, he, te, He, lt, qe, Ce, Ct, ke, kt, Dt, ct, $t, mn, Ye, B, js, Ln, tn, Pi, ft, _l, Cn, si, Mi, cn, fn, Ps, vr, Tr, fe, Ms,
|
|
13857
|
+
var qa, za, xt, ut, Ft, Rt, ii, ri, Oe, Lt, Se, he, te, He, lt, qe, Ce, Ct, ke, kt, Dt, ct, $t, mn, Ye, B, js, Ln, tn, Pi, ft, _l, Cn, si, Mi, cn, fn, Ps, vr, Tr, fe, Ms, xi, dn, Us;
|
|
13858
13858
|
const yo = class yo {
|
|
13859
13859
|
constructor(e) {
|
|
13860
13860
|
H(this, B);
|
|
@@ -13999,7 +13999,7 @@ const yo = class yo {
|
|
|
13999
13999
|
throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
14000
14000
|
if (!this.ttlAutopurge && !l(this, xt) && !l(this, ut)) {
|
|
14001
14001
|
const m = "LRU_CACHE_UNBOUNDED";
|
|
14002
|
-
|
|
14002
|
+
hm(m) && (vl.add(m), Tl("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", m, yo));
|
|
14003
14003
|
}
|
|
14004
14004
|
}
|
|
14005
14005
|
/**
|
|
@@ -14040,7 +14040,7 @@ const yo = class yo {
|
|
|
14040
14040
|
},
|
|
14041
14041
|
moveToTail: (n) => {
|
|
14042
14042
|
var i;
|
|
14043
|
-
return k(i = e, B,
|
|
14043
|
+
return k(i = e, B, xi).call(i, n);
|
|
14044
14044
|
},
|
|
14045
14045
|
indexes: (n) => {
|
|
14046
14046
|
var i;
|
|
@@ -14342,7 +14342,7 @@ const yo = class yo {
|
|
|
14342
14342
|
if (g === void 0)
|
|
14343
14343
|
g = l(this, Oe) === 0 ? l(this, Ce) : l(this, Ct).length !== 0 ? l(this, Ct).pop() : l(this, Oe) === l(this, xt) ? k(this, B, vr).call(this, !1) : l(this, Oe), l(this, he)[g] = e, l(this, te)[g] = n, l(this, Se).set(e, g), l(this, He)[l(this, Ce)] = g, l(this, lt)[g] = l(this, Ce), $(this, Ce, g), Sn(this, Oe)._++, l(this, si).call(this, g, f, u), u && (u.set = "add"), c = !1;
|
|
14344
14344
|
else {
|
|
14345
|
-
k(this, B,
|
|
14345
|
+
k(this, B, xi).call(this, g);
|
|
14346
14346
|
const y = l(this, te)[g];
|
|
14347
14347
|
if (n !== y) {
|
|
14348
14348
|
if (l(this, mn) && k(this, B, fe).call(this, y)) {
|
|
@@ -14489,7 +14489,7 @@ const yo = class yo {
|
|
|
14489
14489
|
}
|
|
14490
14490
|
const T = l(this, ft).call(this, O);
|
|
14491
14491
|
if (!x && !T)
|
|
14492
|
-
return y && (y.fetch = "hit"), k(this, B,
|
|
14492
|
+
return y && (y.fetch = "hit"), k(this, B, xi).call(this, O), r && l(this, Ln).call(this, O), y && l(this, tn).call(this, y, O), C;
|
|
14493
14493
|
const _ = k(this, B, Tr).call(this, e, O, A, R), b = _.__staleWhileFetching !== void 0 && i;
|
|
14494
14494
|
return y && (y.fetch = T ? "stale" : "refresh", b && T && (y.returnedStale = !0)), b ? _.__staleWhileFetching : _.__returned = _;
|
|
14495
14495
|
}
|
|
@@ -14523,7 +14523,7 @@ const yo = class yo {
|
|
|
14523
14523
|
const { allowStale: i = this.allowStale, updateAgeOnGet: r = this.updateAgeOnGet, noDeleteOnStaleGet: s = this.noDeleteOnStaleGet, status: o } = n, a = l(this, Se).get(e);
|
|
14524
14524
|
if (a !== void 0) {
|
|
14525
14525
|
const u = l(this, te)[a], c = k(this, B, fe).call(this, u);
|
|
14526
|
-
return o && l(this, tn).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, dn).call(this, e, "expire"), o && i && (o.returnedStale = !0), i ? u : void 0)) : (o && (o.get = "hit"), c ? u.__staleWhileFetching : (k(this, B,
|
|
14526
|
+
return o && l(this, tn).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, dn).call(this, e, "expire"), o && i && (o.returnedStale = !0), i ? u : void 0)) : (o && (o.get = "hit"), c ? u.__staleWhileFetching : (k(this, B, xi).call(this, a), r && l(this, Ln).call(this, a), u));
|
|
14527
14527
|
} else o && (o.get = "miss");
|
|
14528
14528
|
}
|
|
14529
14529
|
/**
|
|
@@ -14668,7 +14668,7 @@ xt = new WeakMap(), ut = new WeakMap(), Ft = new WeakMap(), Rt = new WeakMap(),
|
|
|
14668
14668
|
return !!n && n instanceof Promise && n.hasOwnProperty("__staleWhileFetching") && n.__abortController instanceof Cr;
|
|
14669
14669
|
}, Ms = function(e, n) {
|
|
14670
14670
|
l(this, lt)[n] = e, l(this, He)[e] = n;
|
|
14671
|
-
},
|
|
14671
|
+
}, xi = function(e) {
|
|
14672
14672
|
e !== l(this, Ce) && (e === l(this, qe) ? $(this, qe, l(this, He)[e]) : k(this, B, Ms).call(this, l(this, lt)[e], l(this, He)[e]), k(this, B, Ms).call(this, l(this, Ce), e), $(this, Ce, e));
|
|
14673
14673
|
}, dn = function(e, n) {
|
|
14674
14674
|
var r, s, o, a;
|
|
@@ -15498,22 +15498,22 @@ list should be an Array.`), h.length === 0) return new x(0);
|
|
|
15498
15498
|
}, { buffer: 3, lYpoI2: 11 }] }, {}, [1])(1);
|
|
15499
15499
|
});
|
|
15500
15500
|
})(Il);
|
|
15501
|
-
var
|
|
15502
|
-
const
|
|
15501
|
+
var pm = Il.exports;
|
|
15502
|
+
const gm = /* @__PURE__ */ jl(pm);
|
|
15503
15503
|
var On = {}, Tn = {}, lo = {};
|
|
15504
15504
|
Object.defineProperty(lo, "__esModule", {
|
|
15505
15505
|
value: !0
|
|
15506
15506
|
});
|
|
15507
|
-
lo.isObjectLike =
|
|
15508
|
-
function
|
|
15507
|
+
lo.isObjectLike = mm;
|
|
15508
|
+
function mm(t) {
|
|
15509
15509
|
return typeof t == "object" && t !== null;
|
|
15510
15510
|
}
|
|
15511
15511
|
var Qr = {}, co = {};
|
|
15512
15512
|
Object.defineProperty(co, "__esModule", {
|
|
15513
15513
|
value: !0
|
|
15514
15514
|
});
|
|
15515
|
-
co.invariant =
|
|
15516
|
-
function
|
|
15515
|
+
co.invariant = ym;
|
|
15516
|
+
function ym(t, e) {
|
|
15517
15517
|
if (!!!t)
|
|
15518
15518
|
throw new Error(
|
|
15519
15519
|
e ?? "Unexpected invariant triggered."
|
|
@@ -15522,13 +15522,13 @@ function bm(t, e) {
|
|
|
15522
15522
|
Object.defineProperty(Qr, "__esModule", {
|
|
15523
15523
|
value: !0
|
|
15524
15524
|
});
|
|
15525
|
-
Qr.getLocation =
|
|
15526
|
-
var
|
|
15527
|
-
const
|
|
15528
|
-
function
|
|
15525
|
+
Qr.getLocation = Em;
|
|
15526
|
+
var bm = co;
|
|
15527
|
+
const wm = /\r\n|[\n\r]/g;
|
|
15528
|
+
function Em(t, e) {
|
|
15529
15529
|
let n = 0, i = 1;
|
|
15530
|
-
for (const r of t.body.matchAll(
|
|
15531
|
-
if (typeof r.index == "number" || (0,
|
|
15530
|
+
for (const r of t.body.matchAll(wm)) {
|
|
15531
|
+
if (typeof r.index == "number" || (0, bm.invariant)(!1), r.index >= e)
|
|
15532
15532
|
break;
|
|
15533
15533
|
n = r.index + r[0].length, i += 1;
|
|
15534
15534
|
}
|
|
@@ -15541,13 +15541,13 @@ var Wr = {};
|
|
|
15541
15541
|
Object.defineProperty(Wr, "__esModule", {
|
|
15542
15542
|
value: !0
|
|
15543
15543
|
});
|
|
15544
|
-
Wr.printLocation =
|
|
15544
|
+
Wr.printLocation = Tm;
|
|
15545
15545
|
Wr.printSourceLocation = Ol;
|
|
15546
|
-
var
|
|
15547
|
-
function
|
|
15546
|
+
var vm = Qr;
|
|
15547
|
+
function Tm(t) {
|
|
15548
15548
|
return Ol(
|
|
15549
15549
|
t.source,
|
|
15550
|
-
(0,
|
|
15550
|
+
(0, vm.getLocation)(t.source, t.start)
|
|
15551
15551
|
);
|
|
15552
15552
|
}
|
|
15553
15553
|
function Ol(t, e) {
|
|
@@ -15581,10 +15581,10 @@ Object.defineProperty(Tn, "__esModule", {
|
|
|
15581
15581
|
value: !0
|
|
15582
15582
|
});
|
|
15583
15583
|
Tn.GraphQLError = void 0;
|
|
15584
|
-
Tn.formatError =
|
|
15585
|
-
Tn.printError =
|
|
15586
|
-
var
|
|
15587
|
-
function
|
|
15584
|
+
Tn.formatError = Om;
|
|
15585
|
+
Tn.printError = Im;
|
|
15586
|
+
var Sm = lo, Da = Qr, $a = Wr;
|
|
15587
|
+
function _m(t) {
|
|
15588
15588
|
const e = t[0];
|
|
15589
15589
|
return e == null || "kind" in e || "length" in e ? {
|
|
15590
15590
|
nodes: e,
|
|
@@ -15636,7 +15636,7 @@ class fo extends Error {
|
|
|
15636
15636
|
*/
|
|
15637
15637
|
constructor(e, ...n) {
|
|
15638
15638
|
var i, r, s;
|
|
15639
|
-
const { nodes: o, source: a, positions: u, path: c, originalError: f, extensions: g } =
|
|
15639
|
+
const { nodes: o, source: a, positions: u, path: c, originalError: f, extensions: g } = _m(n);
|
|
15640
15640
|
super(e), this.name = "GraphQLError", this.path = c ?? void 0, this.originalError = f ?? void 0, this.nodes = ja(
|
|
15641
15641
|
Array.isArray(o) ? o : o ? [o] : void 0
|
|
15642
15642
|
);
|
|
@@ -15646,7 +15646,7 @@ class fo extends Error {
|
|
|
15646
15646
|
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((w) => w.start)), this.locations = u && a ? u.map((w) => (0, Da.getLocation)(a, w)) : p == null ? void 0 : p.map(
|
|
15647
15647
|
(w) => (0, Da.getLocation)(w.source, w.start)
|
|
15648
15648
|
);
|
|
15649
|
-
const v = (0,
|
|
15649
|
+
const v = (0, Sm.isObjectLike)(
|
|
15650
15650
|
f == null ? void 0 : f.extensions
|
|
15651
15651
|
) ? f == null ? void 0 : f.extensions : void 0;
|
|
15652
15652
|
this.extensions = (s = g ?? v) !== null && s !== void 0 ? s : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
|
|
@@ -15707,20 +15707,20 @@ Tn.GraphQLError = fo;
|
|
|
15707
15707
|
function ja(t) {
|
|
15708
15708
|
return t === void 0 || t.length === 0 ? void 0 : t;
|
|
15709
15709
|
}
|
|
15710
|
-
function
|
|
15710
|
+
function Im(t) {
|
|
15711
15711
|
return t.toString();
|
|
15712
15712
|
}
|
|
15713
|
-
function
|
|
15713
|
+
function Om(t) {
|
|
15714
15714
|
return t.toJSON();
|
|
15715
15715
|
}
|
|
15716
15716
|
var ho = {};
|
|
15717
15717
|
Object.defineProperty(ho, "__esModule", {
|
|
15718
15718
|
value: !0
|
|
15719
15719
|
});
|
|
15720
|
-
ho.syntaxError =
|
|
15721
|
-
var
|
|
15722
|
-
function
|
|
15723
|
-
return new
|
|
15720
|
+
ho.syntaxError = Am;
|
|
15721
|
+
var Nm = Tn;
|
|
15722
|
+
function Am(t, e, n) {
|
|
15723
|
+
return new Nm.GraphQLError(`Syntax Error: ${n}`, {
|
|
15724
15724
|
source: t,
|
|
15725
15725
|
positions: [e]
|
|
15726
15726
|
});
|
|
@@ -15729,9 +15729,9 @@ var po = {}, go = {}, mo = {};
|
|
|
15729
15729
|
Object.defineProperty(mo, "__esModule", {
|
|
15730
15730
|
value: !0
|
|
15731
15731
|
});
|
|
15732
|
-
mo.inspect =
|
|
15733
|
-
const
|
|
15734
|
-
function
|
|
15732
|
+
mo.inspect = Fm;
|
|
15733
|
+
const xm = 10, Nl = 2;
|
|
15734
|
+
function Fm(t) {
|
|
15735
15735
|
return Hr(t, []);
|
|
15736
15736
|
}
|
|
15737
15737
|
function Hr(t, e) {
|
|
@@ -15741,45 +15741,45 @@ function Hr(t, e) {
|
|
|
15741
15741
|
case "function":
|
|
15742
15742
|
return t.name ? `[function ${t.name}]` : "[function]";
|
|
15743
15743
|
case "object":
|
|
15744
|
-
return
|
|
15744
|
+
return Rm(t, e);
|
|
15745
15745
|
default:
|
|
15746
15746
|
return String(t);
|
|
15747
15747
|
}
|
|
15748
15748
|
}
|
|
15749
|
-
function
|
|
15749
|
+
function Rm(t, e) {
|
|
15750
15750
|
if (t === null)
|
|
15751
15751
|
return "null";
|
|
15752
15752
|
if (e.includes(t))
|
|
15753
15753
|
return "[Circular]";
|
|
15754
15754
|
const n = [...e, t];
|
|
15755
|
-
if (
|
|
15755
|
+
if (Lm(t)) {
|
|
15756
15756
|
const i = t.toJSON();
|
|
15757
15757
|
if (i !== t)
|
|
15758
15758
|
return typeof i == "string" ? i : Hr(i, n);
|
|
15759
15759
|
} else if (Array.isArray(t))
|
|
15760
|
-
return
|
|
15761
|
-
return
|
|
15760
|
+
return km(t, n);
|
|
15761
|
+
return Cm(t, n);
|
|
15762
15762
|
}
|
|
15763
|
-
function
|
|
15763
|
+
function Lm(t) {
|
|
15764
15764
|
return typeof t.toJSON == "function";
|
|
15765
15765
|
}
|
|
15766
|
-
function
|
|
15766
|
+
function Cm(t, e) {
|
|
15767
15767
|
const n = Object.entries(t);
|
|
15768
|
-
return n.length === 0 ? "{}" : e.length > Nl ? "[" +
|
|
15768
|
+
return n.length === 0 ? "{}" : e.length > Nl ? "[" + Dm(t) + "]" : "{ " + n.map(
|
|
15769
15769
|
([r, s]) => r + ": " + Hr(s, e)
|
|
15770
15770
|
).join(", ") + " }";
|
|
15771
15771
|
}
|
|
15772
|
-
function
|
|
15772
|
+
function km(t, e) {
|
|
15773
15773
|
if (t.length === 0)
|
|
15774
15774
|
return "[]";
|
|
15775
15775
|
if (e.length > Nl)
|
|
15776
15776
|
return "[Array]";
|
|
15777
|
-
const n = Math.min(
|
|
15777
|
+
const n = Math.min(xm, t.length), i = t.length - n, r = [];
|
|
15778
15778
|
for (let s = 0; s < n; ++s)
|
|
15779
15779
|
r.push(Hr(t[s], e));
|
|
15780
15780
|
return i === 1 ? r.push("... 1 more item") : i > 1 && r.push(`... ${i} more items`), "[" + r.join(", ") + "]";
|
|
15781
15781
|
}
|
|
15782
|
-
function
|
|
15782
|
+
function Dm(t) {
|
|
15783
15783
|
const e = Object.prototype.toString.call(t).replace(/^\[object /, "").replace(/]$/, "");
|
|
15784
15784
|
if (e === "Object" && typeof t.constructor == "function") {
|
|
15785
15785
|
const n = t.constructor.name;
|
|
@@ -15791,25 +15791,25 @@ function $m(t) {
|
|
|
15791
15791
|
Object.defineProperty(go, "__esModule", {
|
|
15792
15792
|
value: !0
|
|
15793
15793
|
});
|
|
15794
|
-
go.toError =
|
|
15795
|
-
var
|
|
15796
|
-
function
|
|
15797
|
-
return t instanceof Error ? t : new
|
|
15794
|
+
go.toError = jm;
|
|
15795
|
+
var $m = mo;
|
|
15796
|
+
function jm(t) {
|
|
15797
|
+
return t instanceof Error ? t : new Pm(t);
|
|
15798
15798
|
}
|
|
15799
|
-
class
|
|
15799
|
+
class Pm extends Error {
|
|
15800
15800
|
constructor(e) {
|
|
15801
|
-
super("Unexpected error value: " + (0,
|
|
15801
|
+
super("Unexpected error value: " + (0, $m.inspect)(e)), this.name = "NonErrorThrown", this.thrownValue = e;
|
|
15802
15802
|
}
|
|
15803
15803
|
}
|
|
15804
15804
|
Object.defineProperty(po, "__esModule", {
|
|
15805
15805
|
value: !0
|
|
15806
15806
|
});
|
|
15807
|
-
po.locatedError =
|
|
15808
|
-
var
|
|
15809
|
-
function
|
|
15807
|
+
po.locatedError = Vm;
|
|
15808
|
+
var Mm = go, Um = Tn;
|
|
15809
|
+
function Vm(t, e, n) {
|
|
15810
15810
|
var i;
|
|
15811
|
-
const r = (0,
|
|
15812
|
-
return
|
|
15811
|
+
const r = (0, Mm.toError)(t);
|
|
15812
|
+
return Bm(r) ? r : new Um.GraphQLError(r.message, {
|
|
15813
15813
|
nodes: (i = r.nodes) !== null && i !== void 0 ? i : e,
|
|
15814
15814
|
source: r.source,
|
|
15815
15815
|
positions: r.positions,
|
|
@@ -15817,7 +15817,7 @@ function Bm(t, e, n) {
|
|
|
15817
15817
|
originalError: r
|
|
15818
15818
|
});
|
|
15819
15819
|
}
|
|
15820
|
-
function
|
|
15820
|
+
function Bm(t) {
|
|
15821
15821
|
return Array.isArray(t.path);
|
|
15822
15822
|
}
|
|
15823
15823
|
(function(t) {
|
|
@@ -15863,7 +15863,7 @@ var Al = {};
|
|
|
15863
15863
|
})(e.HttpMethods || (e.HttpMethods = {}));
|
|
15864
15864
|
}(t.OpenAPIV2 || (t.OpenAPIV2 = {}));
|
|
15865
15865
|
})(Al);
|
|
15866
|
-
const cs = /* @__PURE__ */ new Map(),
|
|
15866
|
+
const cs = /* @__PURE__ */ new Map(), Gm = (t, e) => {
|
|
15867
15867
|
cs.has(t) || cs.set(t, /* @__PURE__ */ new Map());
|
|
15868
15868
|
const n = cs.get(t);
|
|
15869
15869
|
if (n.has(e))
|
|
@@ -15873,11 +15873,11 @@ const cs = /* @__PURE__ */ new Map(), qm = (t, e) => {
|
|
|
15873
15873
|
for (const s of i)
|
|
15874
15874
|
(!r || typeof r != "object") && (r = null), r = r[s] ?? null;
|
|
15875
15875
|
return n.set(e, r), r;
|
|
15876
|
-
}, fs = /* @__PURE__ */ new Map(),
|
|
15876
|
+
}, fs = /* @__PURE__ */ new Map(), qm = (t) => t !== null && typeof t == "object", zm = async (t, e = []) => {
|
|
15877
15877
|
if (fs.has(t))
|
|
15878
15878
|
return fs.get(t);
|
|
15879
15879
|
const n = structuredClone(t), i = /* @__PURE__ */ new Set(), r = async (o, a) => {
|
|
15880
|
-
if (
|
|
15880
|
+
if (qm(o)) {
|
|
15881
15881
|
if (i.has(o))
|
|
15882
15882
|
return o;
|
|
15883
15883
|
if (i.add(o), Array.isArray(o))
|
|
@@ -15889,7 +15889,7 @@ const cs = /* @__PURE__ */ new Map(), qm = (t, e) => {
|
|
|
15889
15889
|
const c = await u(o.$ref);
|
|
15890
15890
|
if (c) return c;
|
|
15891
15891
|
}
|
|
15892
|
-
return await
|
|
15892
|
+
return await Gm(n, o.$ref);
|
|
15893
15893
|
}
|
|
15894
15894
|
for (const u in o)
|
|
15895
15895
|
o[u] = await r(o[u]);
|
|
@@ -15907,7 +15907,7 @@ function hn(t, e) {
|
|
|
15907
15907
|
) : typeof r == "object" && r !== null ? n[i] = hn(r, e) : n[i] = r;
|
|
15908
15908
|
return e(n);
|
|
15909
15909
|
}
|
|
15910
|
-
const
|
|
15910
|
+
const Qm = (t) => {
|
|
15911
15911
|
var e;
|
|
15912
15912
|
return (e = t.openapi) != null && e.startsWith("3.0") && (t.openapi = "3.1.0"), t = hn(t, (n) => (n.type !== "undefined" && n.nullable === !0 && (n.type = ["null", n.type], delete n.nullable), n)), t = hn(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 = hn(t, (n) => (n.example !== void 0 && (n.examples = {
|
|
15913
15913
|
default: {
|
|
@@ -15927,7 +15927,7 @@ const Wm = (t) => {
|
|
|
15927
15927
|
type: "string",
|
|
15928
15928
|
contentEncoding: "base64"
|
|
15929
15929
|
} : n), t;
|
|
15930
|
-
},
|
|
15930
|
+
}, Wm = Object.values(Al.OpenAPIV3.HttpMethods), Hm = async (t) => {
|
|
15931
15931
|
if (typeof t == "string") {
|
|
15932
15932
|
if (t.trim().startsWith("{"))
|
|
15933
15933
|
try {
|
|
@@ -15966,32 +15966,32 @@ const Wm = (t) => {
|
|
|
15966
15966
|
}
|
|
15967
15967
|
if (typeof t == "object") return t;
|
|
15968
15968
|
throw new On.GraphQLError("Unsupported schema input: " + t);
|
|
15969
|
-
},
|
|
15970
|
-
const e = await
|
|
15969
|
+
}, Ym = async (t) => {
|
|
15970
|
+
const e = await Hm(t);
|
|
15971
15971
|
if (!e.openapi)
|
|
15972
15972
|
throw new On.GraphQLError("OpenAPI version is not defined");
|
|
15973
|
-
const n = await
|
|
15974
|
-
return
|
|
15975
|
-
},
|
|
15973
|
+
const n = await zm(e);
|
|
15974
|
+
return Qm(n);
|
|
15975
|
+
}, Jm = (t, e, n) => {
|
|
15976
15976
|
const i = (e.summary ?? "") + (e.operationId ? "-" + e.operationId.slice(0, (e.summary, 1 / 0)) : "");
|
|
15977
15977
|
return t(
|
|
15978
15978
|
(n ? n + "-" : "") + (i || `${e.method}-${e.path}`)
|
|
15979
15979
|
);
|
|
15980
|
-
},
|
|
15980
|
+
}, Km = new $s({
|
|
15981
15981
|
ttl: 60 * 10 * 1e3,
|
|
15982
15982
|
ttlAutopurge: !0,
|
|
15983
|
-
fetchMethod: (t, e, { context: n }) =>
|
|
15984
|
-
}), Me = new
|
|
15983
|
+
fetchMethod: (t, e, { context: n }) => Ym(n)
|
|
15984
|
+
}), Me = new Fh({}), ci = Me.addScalarType("JSON", Rh), Xm = Me.addScalarType("JSONObject", Lh), xl = (t) => {
|
|
15985
15985
|
const e = t.tags ?? [], n = Object.values(t.paths ?? {}).flatMap((r) => Object.values(r ?? {})).flatMap(
|
|
15986
15986
|
(r) => typeof r == "object" && "tags" in r ? r.tags ?? [] : []
|
|
15987
15987
|
), i = [...new Set(n)].filter(
|
|
15988
15988
|
(r) => !e.some((s) => s.name === r)
|
|
15989
15989
|
);
|
|
15990
15990
|
return [...e, ...i.map((r) => ({ name: r }))];
|
|
15991
|
-
},
|
|
15992
|
-
const n =
|
|
15991
|
+
}, Fl = (t, e) => {
|
|
15992
|
+
const n = $l();
|
|
15993
15993
|
return Object.entries(t ?? {}).flatMap(
|
|
15994
|
-
([i, r]) =>
|
|
15994
|
+
([i, r]) => Wm.flatMap((s) => {
|
|
15995
15995
|
if (!(r != null && r[s])) return [];
|
|
15996
15996
|
const o = r[s], a = r.parameters ?? [], u = o.parameters ?? [], c = [
|
|
15997
15997
|
...a.filter(
|
|
@@ -16013,7 +16013,7 @@ const Wm = (t) => {
|
|
|
16013
16013
|
path: i,
|
|
16014
16014
|
parameters: c,
|
|
16015
16015
|
tags: o.tags ?? [],
|
|
16016
|
-
slug:
|
|
16016
|
+
slug: Jm(n, f, e)
|
|
16017
16017
|
};
|
|
16018
16018
|
})
|
|
16019
16019
|
);
|
|
@@ -16022,10 +16022,10 @@ const Wm = (t) => {
|
|
|
16022
16022
|
name: t.exposeString("name", { nullable: !0 }),
|
|
16023
16023
|
description: t.exposeString("description", { nullable: !0 }),
|
|
16024
16024
|
operations: t.field({
|
|
16025
|
-
type: [
|
|
16025
|
+
type: [Cl],
|
|
16026
16026
|
resolve: (e, n, i) => {
|
|
16027
|
-
const r =
|
|
16028
|
-
return
|
|
16027
|
+
const r = xl(i.schema).map((s) => s.name);
|
|
16028
|
+
return Fl(i.schema.paths, e.name).filter(
|
|
16029
16029
|
(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
|
|
16030
16030
|
s.tags.every((o) => !r.includes(o))
|
|
16031
16031
|
);
|
|
@@ -16051,17 +16051,17 @@ const Wm = (t) => {
|
|
|
16051
16051
|
fields: (t) => ({
|
|
16052
16052
|
name: t.exposeString("name"),
|
|
16053
16053
|
contentType: t.exposeString("contentType", { nullable: !0 }),
|
|
16054
|
-
headers: t.expose("headers", { type:
|
|
16054
|
+
headers: t.expose("headers", { type: Xm, nullable: !0 }),
|
|
16055
16055
|
style: t.exposeString("style", { nullable: !0 }),
|
|
16056
16056
|
explode: t.exposeBoolean("explode", { nullable: !0 }),
|
|
16057
16057
|
allowReserved: t.exposeBoolean("allowReserved", { nullable: !0 })
|
|
16058
16058
|
})
|
|
16059
|
-
}),
|
|
16059
|
+
}), Rl = Me.objectRef("ExampleItem").implement({
|
|
16060
16060
|
fields: (t) => ({
|
|
16061
16061
|
name: t.exposeString("name"),
|
|
16062
16062
|
summary: t.exposeString("summary", { nullable: !0 }),
|
|
16063
16063
|
description: t.exposeString("description", { nullable: !0 }),
|
|
16064
|
-
value: t.expose("value", { type:
|
|
16064
|
+
value: t.expose("value", { type: ci, nullable: !0 }),
|
|
16065
16065
|
externalValue: t.exposeString("externalValue", { nullable: !0 })
|
|
16066
16066
|
})
|
|
16067
16067
|
}), ry = Me.enumType("ParameterIn", {
|
|
@@ -16081,37 +16081,37 @@ const Wm = (t) => {
|
|
|
16081
16081
|
explode: t.exposeBoolean("explode", { nullable: !0 }),
|
|
16082
16082
|
allowReserved: t.exposeBoolean("allowReserved", { nullable: !0 }),
|
|
16083
16083
|
examples: t.field({
|
|
16084
|
-
type: [
|
|
16084
|
+
type: [Rl],
|
|
16085
16085
|
resolve: (e) => Object.entries(e.examples ?? {}).map(([n, i]) => ({
|
|
16086
16086
|
name: n,
|
|
16087
16087
|
...typeof i == "string" ? { value: i } : i
|
|
16088
16088
|
})),
|
|
16089
16089
|
nullable: !0
|
|
16090
16090
|
}),
|
|
16091
|
-
schema: t.expose("schema", { type:
|
|
16091
|
+
schema: t.expose("schema", { type: ci, nullable: !0 })
|
|
16092
16092
|
})
|
|
16093
|
-
}),
|
|
16093
|
+
}), Ll = Me.objectRef("MediaTypeObject").implement({
|
|
16094
16094
|
fields: (t) => ({
|
|
16095
16095
|
mediaType: t.exposeString("mediaType"),
|
|
16096
|
-
schema: t.expose("schema", { type:
|
|
16097
|
-
examples: t.expose("examples", { type: [
|
|
16096
|
+
schema: t.expose("schema", { type: ci, nullable: !0 }),
|
|
16097
|
+
examples: t.expose("examples", { type: [Rl], nullable: !0 }),
|
|
16098
16098
|
encoding: t.expose("encoding", { type: [iy], nullable: !0 })
|
|
16099
16099
|
})
|
|
16100
16100
|
}), oy = Me.objectRef("RequestBodyObject").implement({
|
|
16101
16101
|
fields: (t) => ({
|
|
16102
16102
|
description: t.exposeString("description", { nullable: !0 }),
|
|
16103
|
-
content: t.expose("content", { type: [
|
|
16103
|
+
content: t.expose("content", { type: [Ll], nullable: !0 }),
|
|
16104
16104
|
required: t.exposeBoolean("required", { nullable: !0 })
|
|
16105
16105
|
})
|
|
16106
16106
|
}), ay = Me.objectRef("ResponseItem").implement({
|
|
16107
16107
|
fields: (t) => ({
|
|
16108
16108
|
statusCode: t.exposeString("statusCode"),
|
|
16109
16109
|
description: t.exposeString("description", { nullable: !0 }),
|
|
16110
|
-
content: t.expose("content", { type: [
|
|
16111
|
-
headers: t.expose("headers", { type:
|
|
16112
|
-
links: t.expose("links", { type:
|
|
16110
|
+
content: t.expose("content", { type: [Ll], nullable: !0 }),
|
|
16111
|
+
headers: t.expose("headers", { type: ci, nullable: !0 }),
|
|
16112
|
+
links: t.expose("links", { type: ci, nullable: !0 })
|
|
16113
16113
|
})
|
|
16114
|
-
}),
|
|
16114
|
+
}), Cl = Me.objectRef("OperationItem").implement({
|
|
16115
16115
|
fields: (t) => ({
|
|
16116
16116
|
slug: t.exposeString("slug"),
|
|
16117
16117
|
path: t.exposeString("path"),
|
|
@@ -16218,26 +16218,26 @@ const Wm = (t) => {
|
|
|
16218
16218
|
},
|
|
16219
16219
|
type: [Zm],
|
|
16220
16220
|
resolve: (e, n) => {
|
|
16221
|
-
const i = [...
|
|
16221
|
+
const i = [...xl(e), { name: "" }];
|
|
16222
16222
|
return n.name ? i.filter((r) => r.name === n.name) : i;
|
|
16223
16223
|
}
|
|
16224
16224
|
}),
|
|
16225
16225
|
operations: t.field({
|
|
16226
|
-
type: [
|
|
16226
|
+
type: [Cl],
|
|
16227
16227
|
args: {
|
|
16228
16228
|
path: t.arg.string(),
|
|
16229
16229
|
method: t.arg.string(),
|
|
16230
16230
|
operationId: t.arg.string(),
|
|
16231
16231
|
tag: t.arg.string()
|
|
16232
16232
|
},
|
|
16233
|
-
resolve: (e, n) =>
|
|
16233
|
+
resolve: (e, n) => Fl(e.paths).filter(
|
|
16234
16234
|
(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))
|
|
16235
16235
|
)
|
|
16236
16236
|
})
|
|
16237
16237
|
})
|
|
16238
16238
|
}), ly = async (t) => {
|
|
16239
|
-
const e =
|
|
16240
|
-
return await
|
|
16239
|
+
const e = gm(t);
|
|
16240
|
+
return await Km.forceFetch(e, { context: t });
|
|
16241
16241
|
}, cy = Me.enumType("SchemaType", {
|
|
16242
16242
|
values: ["url", "file", "raw"]
|
|
16243
16243
|
});
|
|
@@ -16248,7 +16248,7 @@ Me.queryType({
|
|
|
16248
16248
|
type: uy,
|
|
16249
16249
|
args: {
|
|
16250
16250
|
type: t.arg({ type: cy, required: !0 }),
|
|
16251
|
-
input: t.arg({ type:
|
|
16251
|
+
input: t.arg({ type: ci, required: !0 })
|
|
16252
16252
|
},
|
|
16253
16253
|
resolve: async (e, n, i) => {
|
|
16254
16254
|
const r = await ly(n.input);
|
|
@@ -16257,10 +16257,10 @@ Me.queryType({
|
|
|
16257
16257
|
})
|
|
16258
16258
|
})
|
|
16259
16259
|
});
|
|
16260
|
-
const fy = Me.toSchema(), dy = (t) =>
|
|
16260
|
+
const fy = Me.toSchema(), dy = (t) => dm({ schema: fy, ...t }), hy = () => dy({
|
|
16261
16261
|
plugins: [
|
|
16262
16262
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
16263
|
-
|
|
16263
|
+
ac({
|
|
16264
16264
|
logFn: (t, { args: e }) => {
|
|
16265
16265
|
}
|
|
16266
16266
|
})
|
|
@@ -16290,14 +16290,14 @@ const fy = Me.toSchema(), dy = (t) => hm({ schema: fy, ...t }), hy = () => dy({
|
|
|
16290
16290
|
}),
|
|
16291
16291
|
Ya
|
|
16292
16292
|
]
|
|
16293
|
-
}), my =
|
|
16293
|
+
}), my = Jl(), Ay = ({
|
|
16294
16294
|
useMemoryClient: t
|
|
16295
16295
|
}) => {
|
|
16296
16296
|
if (t || typeof SharedWorker > "u")
|
|
16297
16297
|
return gy();
|
|
16298
16298
|
const e = new SharedWorker(new URL(
|
|
16299
16299
|
/* @vite-ignore */
|
|
16300
|
-
"./assets/worker-
|
|
16300
|
+
"./assets/worker-YA-aCP3P.js",
|
|
16301
16301
|
import.meta.url
|
|
16302
16302
|
), {
|
|
16303
16303
|
type: "module"
|
|
@@ -16305,7 +16305,7 @@ const fy = Me.toSchema(), dy = (t) => hm({ schema: fy, ...t }), hy = () => dy({
|
|
|
16305
16305
|
e.onerror = (r) => {
|
|
16306
16306
|
console.error(r);
|
|
16307
16307
|
}, e.port.start();
|
|
16308
|
-
const [n, i] =
|
|
16308
|
+
const [n, i] = Xl();
|
|
16309
16309
|
return e.port.onmessage = (r) => {
|
|
16310
16310
|
i(r.data.id, r.data.body);
|
|
16311
16311
|
}, new Qa({
|