@stonecrop/graphql-client 0.4.6 → 0.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- function St(e, t) {
1
+ function xt(e, t) {
2
2
  for (var n = 0; n < t.length; n++) {
3
3
  const i = t[n];
4
4
  if (typeof i != "string" && !Array.isArray(i)) {
@@ -21,7 +21,7 @@ function St(e, t) {
21
21
  * Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
22
22
  * MIT Licence
23
23
  */
24
- var ae = 9e15, ne = 1e9, Be = "0123456789abcdef", Ie = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", Oe = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", Ue = {
24
+ var Be = 9e15, ne = 1e9, Ue = "0123456789abcdef", Ie = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", Oe = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", qe = {
25
25
  // These values must be integers within the stated ranges (inclusive).
26
26
  // Most of these values can be changed at run-time using the `Decimal.config` method.
27
27
  // The maximum number of significant digits of the result of a calculation or base conversion.
@@ -70,16 +70,16 @@ var ae = 9e15, ne = 1e9, Be = "0123456789abcdef", Ie = "2.3025850929940456840179
70
70
  // 0 to EXP_LIMIT
71
71
  // The minimum exponent value, beneath which underflow to zero occurs.
72
72
  // JavaScript numbers: -324 (5e-324)
73
- minE: -ae,
73
+ minE: -9e15,
74
74
  // -1 to -EXP_LIMIT
75
75
  // The maximum exponent value, above which overflow to Infinity occurs.
76
76
  // JavaScript numbers: 308 (1.7976931348623157e+308)
77
- maxE: ae,
77
+ maxE: Be,
78
78
  // 1 to EXP_LIMIT
79
79
  // Whether to use cryptographically-secure random number generation, if available.
80
80
  crypto: !1
81
81
  // true/false
82
- }, at, Q, O = !0, De = "[DecimalError] ", te = De + "Invalid argument: ", ct = De + "Precision limit exceeded", ut = De + "crypto unavailable", lt = "[object Decimal]", V = Math.floor, F = Math.pow, xt = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, Ct = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, kt = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, ft = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, z = 1e7, A = 7, Rt = 9007199254740991, Lt = Ie.length - 1, qe = Oe.length - 1, m = { toStringTag: lt };
82
+ }, ct, Q, O = !0, be = "[DecimalError] ", te = be + "Invalid argument: ", ut = be + "Precision limit exceeded", lt = be + "crypto unavailable", ft = "[object Decimal]", V = Math.floor, F = Math.pow, Ct = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, kt = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, Rt = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, ht = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, z = 1e7, A = 7, Lt = 9007199254740991, Ft = Ie.length - 1, Ve = Oe.length - 1, m = { toStringTag: ft };
83
83
  m.absoluteValue = m.abs = function() {
84
84
  var e = new this.constructor(this);
85
85
  return e.s < 0 && (e.s = 1), T(e);
@@ -106,7 +106,7 @@ m.comparedTo = m.cmp = function(e) {
106
106
  };
107
107
  m.cosine = m.cos = function() {
108
108
  var e, t, n = this, i = n.constructor;
109
- return n.d ? n.d[0] ? (e = i.precision, t = i.rounding, i.precision = e + Math.max(n.e, n.sd()) + A, i.rounding = 1, n = Ft(i, gt(i, n)), i.precision = e, i.rounding = t, T(Q == 2 || Q == 3 ? n.neg() : n, e, t, !0)) : new i(1) : new i(NaN);
109
+ return n.d ? n.d[0] ? (e = i.precision, t = i.rounding, i.precision = e + Math.max(n.e, n.sd()) + A, i.rounding = 1, n = Pt(i, Et(i, n)), i.precision = e, i.rounding = t, T(Q == 2 || Q == 3 ? n.neg() : n, e, t, !0)) : new i(1) : new i(NaN);
110
110
  };
111
111
  m.cubeRoot = m.cbrt = function() {
112
112
  var e, t, n, i, r, s, o, a, u, c, l = this, f = l.constructor;
@@ -157,7 +157,7 @@ m.hyperbolicCosine = m.cosh = function() {
157
157
  var e, t, n, i, r, s = this, o = s.constructor, a = new o(1);
158
158
  if (!s.isFinite()) return new o(s.s ? 1 / 0 : NaN);
159
159
  if (s.isZero()) return a;
160
- n = o.precision, i = o.rounding, o.precision = n + Math.max(s.e, s.sd()) + 4, o.rounding = 1, r = s.d.length, r < 32 ? (e = Math.ceil(r / 3), t = (1 / xe(4, e)).toString()) : (e = 16, t = "2.3283064365386962890625e-10"), s = ue(o, 1, s.times(t), new o(1), !0);
160
+ n = o.precision, i = o.rounding, o.precision = n + Math.max(s.e, s.sd()) + 4, o.rounding = 1, r = s.d.length, r < 32 ? (e = Math.ceil(r / 3), t = (1 / xe(4, e)).toString()) : (e = 16, t = "2.3283064365386962890625e-10"), s = ce(o, 1, s.times(t), new o(1), !0);
161
161
  for (var u, c = e, l = new o(8); c--; )
162
162
  u = s.times(s), s = a.minus(u.times(l.minus(u.times(l))));
163
163
  return T(s, o.precision = n, o.rounding = i, !0);
@@ -166,9 +166,9 @@ m.hyperbolicSine = m.sinh = function() {
166
166
  var e, t, n, i, r = this, s = r.constructor;
167
167
  if (!r.isFinite() || r.isZero()) return new s(r);
168
168
  if (t = s.precision, n = s.rounding, s.precision = t + Math.max(r.e, r.sd()) + 4, s.rounding = 1, i = r.d.length, i < 3)
169
- r = ue(s, 2, r, r, !0);
169
+ r = ce(s, 2, r, r, !0);
170
170
  else {
171
- e = 1.4 * Math.sqrt(i), e = e > 16 ? 16 : e | 0, r = r.times(1 / xe(5, e)), r = ue(s, 2, r, r, !0);
171
+ e = 1.4 * Math.sqrt(i), e = e > 16 ? 16 : e | 0, r = r.times(1 / xe(5, e)), r = ce(s, 2, r, r, !0);
172
172
  for (var o, a = new s(5), u = new s(16), c = new s(20); e--; )
173
173
  o = r.times(r), r = r.times(a.plus(o.times(u.times(o).plus(c))));
174
174
  }
@@ -203,11 +203,11 @@ m.inverseTangent = m.atan = function() {
203
203
  if (c.isFinite()) {
204
204
  if (c.isZero())
205
205
  return new l(c);
206
- if (c.abs().eq(1) && f + 4 <= qe)
206
+ if (c.abs().eq(1) && f + 4 <= Ve)
207
207
  return o = J(l, f + 4, h).times(0.25), o.s = c.s, o;
208
208
  } else {
209
209
  if (!c.s) return new l(NaN);
210
- if (f + 4 <= qe)
210
+ if (f + 4 <= Ve)
211
211
  return o = J(l, f + 4, h).times(0.5), o.s = c.s, o;
212
212
  }
213
213
  for (l.precision = a = f + 10, l.rounding = 1, n = Math.min(28, a / A + 2 | 0), e = n; e; --e) c = c.div(c.times(c).plus(1).sqrt().plus(1));
@@ -305,7 +305,7 @@ m.modulo = m.mod = function(e) {
305
305
  return e = new i(e), !n.d || !e.s || e.d && !e.d[0] ? new i(NaN) : !e.d || n.d && !n.d[0] ? T(new i(n), i.precision, i.rounding) : (O = !1, i.modulo == 9 ? (t = k(n, e.abs(), 0, 3, 1), t.s *= e.s) : t = k(n, e, 0, i.modulo, 1), t = t.times(e), O = !0, n.minus(t));
306
306
  };
307
307
  m.naturalExponential = m.exp = function() {
308
- return Ve(this);
308
+ return je(this);
309
309
  };
310
310
  m.naturalLogarithm = m.ln = function() {
311
311
  return ee(this);
@@ -334,7 +334,7 @@ m.plus = m.add = function(e) {
334
334
  m.precision = m.sd = function(e) {
335
335
  var t, n = this;
336
336
  if (e !== void 0 && e !== !!e && e !== 1 && e !== 0) throw Error(te + e);
337
- return n.d ? (t = ht(n.d), e && n.e + 1 > t && (t = n.e + 1)) : t = NaN, t;
337
+ return n.d ? (t = dt(n.d), e && n.e + 1 > t && (t = n.e + 1)) : t = NaN, t;
338
338
  };
339
339
  m.round = function() {
340
340
  var e = this, t = e.constructor;
@@ -342,7 +342,7 @@ m.round = function() {
342
342
  };
343
343
  m.sine = m.sin = function() {
344
344
  var e, t, n = this, i = n.constructor;
345
- return n.isFinite() ? n.isZero() ? new i(n) : (e = i.precision, t = i.rounding, i.precision = e + Math.max(n.e, n.sd()) + A, i.rounding = 1, n = Mt(i, gt(i, n)), i.precision = e, i.rounding = t, T(Q > 2 ? n.neg() : n, e, t, !0)) : new i(NaN);
345
+ return n.isFinite() ? n.isZero() ? new i(n) : (e = i.precision, t = i.rounding, i.precision = e + Math.max(n.e, n.sd()) + A, i.rounding = 1, n = Bt(i, Et(i, n)), i.precision = e, i.rounding = t, T(Q > 2 ? n.neg() : n, e, t, !0)) : new i(NaN);
346
346
  };
347
347
  m.squareRoot = m.sqrt = function() {
348
348
  var e, t, n, i, r, s, o = this, a = o.d, u = o.e, c = o.s, l = o.constructor;
@@ -397,7 +397,7 @@ m.toFixed = function(e, t) {
397
397
  m.toFraction = function(e) {
398
398
  var t, n, i, r, s, o, a, u, c, l, f, h, E = this, N = E.d, y = E.constructor;
399
399
  if (!N) return new y(E);
400
- if (c = n = new y(1), i = u = new y(0), t = new y(i), s = t.e = ht(N) - E.e - 1, o = s % A, t.d[0] = F(10, o < 0 ? A + o : o), e == null)
400
+ if (c = n = new y(1), i = u = new y(0), t = new y(i), s = t.e = dt(N) - E.e - 1, o = s % A, t.d[0] = F(10, o < 0 ? A + o : o), e == null)
401
401
  e = s > 0 ? t : c;
402
402
  else {
403
403
  if (a = new y(e), !a.isInt() || a.lt(c)) throw Error(te + a);
@@ -433,14 +433,14 @@ m.toPower = m.pow = function(e) {
433
433
  if (!a.d || !e.d || !a.d[0] || !e.d[0]) return new u(F(+a, c));
434
434
  if (a = new u(a), a.eq(1)) return a;
435
435
  if (i = u.precision, s = u.rounding, e.eq(1)) return T(a, i, s);
436
- if (t = V(e.e / A), t >= e.d.length - 1 && (n = c < 0 ? -c : c) <= Rt)
437
- return r = dt(u, a, n, i), e.s < 0 ? new u(1).div(r) : T(r, i, s);
436
+ if (t = V(e.e / A), t >= e.d.length - 1 && (n = c < 0 ? -c : c) <= Lt)
437
+ return r = pt(u, a, n, i), e.s < 0 ? new u(1).div(r) : T(r, i, s);
438
438
  if (o = a.s, o < 0) {
439
439
  if (t < e.d.length - 1) return new u(NaN);
440
440
  if (e.d[t] & 1 || (o = 1), a.e == 0 && a.d[0] == 1 && a.d.length == 1)
441
441
  return a.s = o, a;
442
442
  }
443
- return n = F(+a, c), t = n == 0 || !isFinite(n) ? V(c * (Math.log("0." + B(a.d)) / Math.LN10 + a.e + 1)) : new u(n + "").e, t > u.maxE + 1 || t < u.minE - 1 ? new u(t > 0 ? o / 0 : 0) : (O = !1, u.rounding = a.s = 1, n = Math.min(12, (t + "").length), r = Ve(e.times(ee(a, i + n)), i), r.d && (r = T(r, i + 5, 1), ge(r.d, i, s) && (t = i + 10, r = T(Ve(e.times(ee(a, t + n)), t), t + 5, 1), +B(r.d).slice(i + 1, i + 15) + 1 == 1e14 && (r = T(r, i + 1, 0)))), r.s = o, O = !0, u.rounding = s, T(r, i, s));
443
+ return n = F(+a, c), t = n == 0 || !isFinite(n) ? V(c * (Math.log("0." + B(a.d)) / Math.LN10 + a.e + 1)) : new u(n + "").e, t > u.maxE + 1 || t < u.minE - 1 ? new u(t > 0 ? o / 0 : 0) : (O = !1, u.rounding = a.s = 1, n = Math.min(12, (t + "").length), r = je(e.times(ee(a, i + n)), i), r.d && (r = T(r, i + 5, 1), ge(r.d, i, s) && (t = i + 10, r = T(je(e.times(ee(a, t + n)), t), t + 5, 1), +B(r.d).slice(i + 1, i + 15) + 1 == 1e14 && (r = T(r, i + 1, 0)))), r.s = o, O = !0, u.rounding = s, T(r, i, s));
444
444
  };
445
445
  m.toPrecision = function(e, t) {
446
446
  var n, i = this, r = i.constructor;
@@ -484,15 +484,15 @@ function ge(e, t, n, i) {
484
484
  function ve(e, t, n) {
485
485
  for (var i, r = [0], s, o = 0, a = e.length; o < a; ) {
486
486
  for (s = r.length; s--; ) r[s] *= t;
487
- for (r[0] += Be.indexOf(e.charAt(o++)), i = 0; i < r.length; i++)
487
+ for (r[0] += Ue.indexOf(e.charAt(o++)), i = 0; i < r.length; i++)
488
488
  r[i] > n - 1 && (r[i + 1] === void 0 && (r[i + 1] = 0), r[i + 1] += r[i] / n | 0, r[i] %= n);
489
489
  }
490
490
  return r.reverse();
491
491
  }
492
- function Ft(e, t) {
492
+ function Pt(e, t) {
493
493
  var n, i, r;
494
494
  if (t.isZero()) return t;
495
- i = t.d.length, i < 32 ? (n = Math.ceil(i / 3), r = (1 / xe(4, n)).toString()) : (n = 16, r = "2.3283064365386962890625e-10"), e.precision += n, t = ue(e, 1, t.times(r), new e(1));
495
+ i = t.d.length, i < 32 ? (n = Math.ceil(i / 3), r = (1 / xe(4, n)).toString()) : (n = 16, r = "2.3283064365386962890625e-10"), e.precision += n, t = ce(e, 1, t.times(r), new e(1));
496
496
  for (var s = n; s--; ) {
497
497
  var o = t.times(t);
498
498
  t = o.times(o).minus(o).times(8).plus(1);
@@ -524,7 +524,7 @@ var k = /* @__PURE__ */ function() {
524
524
  for (; !i[0] && i.length > 1; ) i.shift();
525
525
  }
526
526
  return function(i, r, s, o, a, u) {
527
- var c, l, f, h, E, N, y, S, b, U, _, x, G, j, Z, H, ie, he, R, se, W = i.constructor, d = i.s == r.s ? 1 : -1, g = i.d, v = r.d;
527
+ var c, l, f, h, E, N, y, S, D, U, _, x, G, j, Z, H, ie, fe, R, se, W = i.constructor, d = i.s == r.s ? 1 : -1, g = i.d, v = r.d;
528
528
  if (!g || !g[0] || !v || !v[0])
529
529
  return new W(
530
530
  // Return NaN if either NaN, or both Infinity or 0.
@@ -533,7 +533,7 @@ var k = /* @__PURE__ */ function() {
533
533
  g && g[0] == 0 || !v ? d * 0 : d / 0
534
534
  )
535
535
  );
536
- for (u ? (E = 1, l = i.e - r.e) : (u = z, E = A, l = V(i.e / E) - V(r.e / E)), R = v.length, ie = g.length, b = new W(d), U = b.d = [], f = 0; v[f] == (g[f] || 0); f++) ;
536
+ for (u ? (E = 1, l = i.e - r.e) : (u = z, E = A, l = V(i.e / E) - V(r.e / E)), R = v.length, ie = g.length, D = new W(d), U = D.d = [], f = 0; v[f] == (g[f] || 0); f++) ;
537
537
  if (v[f] > (g[f] || 0) && l--, s == null ? (j = s = W.precision, o = W.rounding) : a ? j = s + (i.e - r.e) + 1 : j = s, j < 0)
538
538
  U.push(1), N = !0;
539
539
  else {
@@ -543,21 +543,21 @@ var k = /* @__PURE__ */ function() {
543
543
  N = h || f < ie;
544
544
  } else {
545
545
  for (h = u / (v[0] + 1) | 0, h > 1 && (v = e(v, h, u), g = e(g, h, u), R = v.length, ie = g.length), H = R, _ = g.slice(0, R), x = _.length; x < R; ) _[x++] = 0;
546
- se = v.slice(), se.unshift(0), he = v[0], v[1] >= u / 2 && ++he;
546
+ se = v.slice(), se.unshift(0), fe = v[0], v[1] >= u / 2 && ++fe;
547
547
  do
548
- h = 0, c = t(v, _, R, x), c < 0 ? (G = _[0], R != x && (G = G * u + (_[1] || 0)), h = G / he | 0, h > 1 ? (h >= u && (h = u - 1), y = e(v, h, u), S = y.length, x = _.length, c = t(y, _, S, x), c == 1 && (h--, n(y, R < S ? se : v, S, u))) : (h == 0 && (c = h = 1), y = v.slice()), S = y.length, S < x && y.unshift(0), n(_, y, x, u), c == -1 && (x = _.length, c = t(v, _, R, x), c < 1 && (h++, n(_, R < x ? se : v, x, u))), x = _.length) : c === 0 && (h++, _ = [0]), U[f++] = h, c && _[0] ? _[x++] = g[H] || 0 : (_ = [g[H]], x = 1);
548
+ h = 0, c = t(v, _, R, x), c < 0 ? (G = _[0], R != x && (G = G * u + (_[1] || 0)), h = G / fe | 0, h > 1 ? (h >= u && (h = u - 1), y = e(v, h, u), S = y.length, x = _.length, c = t(y, _, S, x), c == 1 && (h--, n(y, R < S ? se : v, S, u))) : (h == 0 && (c = h = 1), y = v.slice()), S = y.length, S < x && y.unshift(0), n(_, y, x, u), c == -1 && (x = _.length, c = t(v, _, R, x), c < 1 && (h++, n(_, R < x ? se : v, x, u))), x = _.length) : c === 0 && (h++, _ = [0]), U[f++] = h, c && _[0] ? _[x++] = g[H] || 0 : (_ = [g[H]], x = 1);
549
549
  while ((H++ < ie || _[0] !== void 0) && j--);
550
550
  N = _[0] !== void 0;
551
551
  }
552
552
  U[0] || U.shift();
553
553
  }
554
554
  if (E == 1)
555
- b.e = l, at = N;
555
+ D.e = l, ct = N;
556
556
  else {
557
557
  for (f = 1, h = U[0]; h >= 10; h /= 10) f++;
558
- b.e = f + l * E - 1, T(b, a ? s + b.e + 1 : s, o, N);
558
+ D.e = f + l * E - 1, T(D, a ? s + D.e + 1 : s, o, N);
559
559
  }
560
- return b;
560
+ return D;
561
561
  };
562
562
  }();
563
563
  function T(e, t, n, i) {
@@ -596,7 +596,7 @@ function T(e, t, n, i) {
596
596
  return O && (e.e > E.maxE ? (e.d = null, e.e = NaN) : e.e < E.minE && (e.e = 0, e.d = [0])), e;
597
597
  }
598
598
  function X(e, t, n) {
599
- if (!e.isFinite()) return mt(e);
599
+ if (!e.isFinite()) return gt(e);
600
600
  var i, r = e.e, s = B(e.d), o = s.length;
601
601
  return t ? (n && (i = n - o) > 0 ? s = s.charAt(0) + "." + s.slice(1) + K(i) : o > 1 && (s = s.charAt(0) + "." + s.slice(1)), s = s + (e.e < 0 ? "e" : "e+") + e.e) : r < 0 ? (s = "0." + K(-r - 1) + s, n && (i = n - o) > 0 && (s += K(i))) : r >= o ? (s += K(r + 1 - o), n && (i = n - r - 1) > 0 && (s = s + "." + K(i))) : ((i = r + 1) < o && (s = s.slice(0, i) + "." + s.slice(i)), n && (i = n - o) > 0 && (r + 1 === o && (s += "."), s += K(i))), s;
602
602
  }
@@ -606,15 +606,15 @@ function Se(e, t) {
606
606
  return t;
607
607
  }
608
608
  function _e(e, t, n) {
609
- if (t > Lt)
610
- throw O = !0, n && (e.precision = n), Error(ct);
609
+ if (t > Ft)
610
+ throw O = !0, n && (e.precision = n), Error(ut);
611
611
  return T(new e(Ie), t, 1, !0);
612
612
  }
613
613
  function J(e, t, n) {
614
- if (t > qe) throw Error(ct);
614
+ if (t > Ve) throw Error(ut);
615
615
  return T(new e(Oe), t, n, !0);
616
616
  }
617
- function ht(e) {
617
+ function dt(e) {
618
618
  var t = e.length - 1, n = t * A + 1;
619
619
  if (t = e[t], t) {
620
620
  for (; t % 10 == 0; t /= 10) n--;
@@ -626,7 +626,7 @@ function K(e) {
626
626
  for (var t = ""; e--; ) t += "0";
627
627
  return t;
628
628
  }
629
- function dt(e, t, n, i) {
629
+ function pt(e, t, n, i) {
630
630
  var r, s = new e(1), o = Math.ceil(i / A + 4);
631
631
  for (O = !1; ; ) {
632
632
  if (n % 2 && (s = s.times(t), We(s.d, o) && (r = !0)), n = V(n / 2), n === 0) {
@@ -640,7 +640,7 @@ function dt(e, t, n, i) {
640
640
  function Ze(e) {
641
641
  return e.d[e.d.length - 1] & 1;
642
642
  }
643
- function pt(e, t, n) {
643
+ function mt(e, t, n) {
644
644
  for (var i, r = new e(t[0]), s = 0; ++s < t.length; )
645
645
  if (i = new e(t[s]), i.s)
646
646
  r[n](i) && (r = i);
@@ -650,7 +650,7 @@ function pt(e, t, n) {
650
650
  }
651
651
  return r;
652
652
  }
653
- function Ve(e, t) {
653
+ function je(e, t) {
654
654
  var n, i, r, s, o, a, u, c = 0, l = 0, f = 0, h = e.constructor, E = h.rounding, N = h.precision;
655
655
  if (!e.d || !e.d[0] || e.e > 17)
656
656
  return new h(e.d ? e.d[0] ? e.s < 0 ? 0 : 1 / 0 : 1 : e.s ? e.s < 0 ? 0 : e : NaN);
@@ -671,31 +671,31 @@ function Ve(e, t) {
671
671
  }
672
672
  }
673
673
  function ee(e, t) {
674
- var n, i, r, s, o, a, u, c, l, f, h, E = 1, N = 10, y = e, S = y.d, b = y.constructor, U = b.rounding, _ = b.precision;
674
+ var n, i, r, s, o, a, u, c, l, f, h, E = 1, N = 10, y = e, S = y.d, D = y.constructor, U = D.rounding, _ = D.precision;
675
675
  if (y.s < 0 || !S || !S[0] || !y.e && S[0] == 1 && S.length == 1)
676
- return new b(S && !S[0] ? -1 / 0 : y.s != 1 ? NaN : S ? 0 : y);
677
- if (t == null ? (O = !1, l = _) : l = t, b.precision = l += N, n = B(S), i = n.charAt(0), Math.abs(s = y.e) < 15e14) {
676
+ return new D(S && !S[0] ? -1 / 0 : y.s != 1 ? NaN : S ? 0 : y);
677
+ if (t == null ? (O = !1, l = _) : l = t, D.precision = l += N, n = B(S), i = n.charAt(0), Math.abs(s = y.e) < 15e14) {
678
678
  for (; i < 7 && i != 1 || i == 1 && n.charAt(1) > 3; )
679
679
  y = y.times(e), n = B(y.d), i = n.charAt(0), E++;
680
- s = y.e, i > 1 ? (y = new b("0." + n), s++) : y = new b(i + "." + n.slice(1));
680
+ s = y.e, i > 1 ? (y = new D("0." + n), s++) : y = new D(i + "." + n.slice(1));
681
681
  } else
682
- return c = _e(b, l + 2, _).times(s + ""), y = ee(new b(i + "." + n.slice(1)), l - N).plus(c), b.precision = _, t == null ? T(y, _, U, O = !0) : y;
682
+ return c = _e(D, l + 2, _).times(s + ""), y = ee(new D(i + "." + n.slice(1)), l - N).plus(c), D.precision = _, t == null ? T(y, _, U, O = !0) : y;
683
683
  for (f = y, u = o = y = k(y.minus(1), y.plus(1), l, 1), h = T(y.times(y), l, 1), r = 3; ; ) {
684
- if (o = T(o.times(h), l, 1), c = u.plus(k(o, new b(r), l, 1)), B(c.d).slice(0, l) === B(u.d).slice(0, l))
685
- if (u = u.times(2), s !== 0 && (u = u.plus(_e(b, l + 2, _).times(s + ""))), u = k(u, new b(E), l, 1), t == null)
684
+ if (o = T(o.times(h), l, 1), c = u.plus(k(o, new D(r), l, 1)), B(c.d).slice(0, l) === B(u.d).slice(0, l))
685
+ if (u = u.times(2), s !== 0 && (u = u.plus(_e(D, l + 2, _).times(s + ""))), u = k(u, new D(E), l, 1), t == null)
686
686
  if (ge(u.d, l - N, U, a))
687
- b.precision = l += N, c = o = y = k(f.minus(1), f.plus(1), l, 1), h = T(y.times(y), l, 1), r = a = 1;
687
+ D.precision = l += N, c = o = y = k(f.minus(1), f.plus(1), l, 1), h = T(y.times(y), l, 1), r = a = 1;
688
688
  else
689
- return T(u, b.precision = _, U, O = !0);
689
+ return T(u, D.precision = _, U, O = !0);
690
690
  else
691
- return b.precision = _, u;
691
+ return D.precision = _, u;
692
692
  u = c, r += 2;
693
693
  }
694
694
  }
695
- function mt(e) {
695
+ function gt(e) {
696
696
  return String(e.s * e.s / 0);
697
697
  }
698
- function je(e, t) {
698
+ function $e(e, t) {
699
699
  var n, i, r;
700
700
  for ((n = t.indexOf(".")) > -1 && (t = t.replace(".", "")), (i = t.search(/e/i)) > 0 ? (n < 0 && (n = i), n += +t.slice(i + 1), t = t.substring(0, i)) : n < 0 && (n = t.length), i = 0; t.charCodeAt(i) === 48; i++) ;
701
701
  for (r = t.length; t.charCodeAt(r - 1) === 48; --r) ;
@@ -711,33 +711,33 @@ function je(e, t) {
711
711
  e.e = 0, e.d = [0];
712
712
  return e;
713
713
  }
714
- function Pt(e, t) {
714
+ function Mt(e, t) {
715
715
  var n, i, r, s, o, a, u, c, l;
716
716
  if (t.indexOf("_") > -1) {
717
- if (t = t.replace(/(\d)_(?=\d)/g, "$1"), ft.test(t)) return je(e, t);
717
+ if (t = t.replace(/(\d)_(?=\d)/g, "$1"), ht.test(t)) return $e(e, t);
718
718
  } else if (t === "Infinity" || t === "NaN")
719
719
  return +t || (e.s = NaN), e.e = NaN, e.d = null, e;
720
- if (Ct.test(t))
720
+ if (kt.test(t))
721
721
  n = 16, t = t.toLowerCase();
722
- else if (xt.test(t))
722
+ else if (Ct.test(t))
723
723
  n = 2;
724
- else if (kt.test(t))
724
+ else if (Rt.test(t))
725
725
  n = 8;
726
726
  else
727
727
  throw Error(te + t);
728
- for (s = t.search(/p/i), s > 0 ? (u = +t.slice(s + 1), t = t.substring(2, s)) : t = t.slice(2), s = t.indexOf("."), o = s >= 0, i = e.constructor, o && (t = t.replace(".", ""), a = t.length, s = a - s, r = dt(i, new i(n), s, s * 2)), c = ve(t, n, z), l = c.length - 1, s = l; c[s] === 0; --s) c.pop();
729
- return s < 0 ? new i(e.s * 0) : (e.e = Se(c, l), e.d = c, O = !1, o && (e = k(e, r, a * 4)), u && (e = e.times(Math.abs(u) < 54 ? F(2, u) : le.pow(2, u))), O = !0, e);
728
+ for (s = t.search(/p/i), s > 0 ? (u = +t.slice(s + 1), t = t.substring(2, s)) : t = t.slice(2), s = t.indexOf("."), o = s >= 0, i = e.constructor, o && (t = t.replace(".", ""), a = t.length, s = a - s, r = pt(i, new i(n), s, s * 2)), c = ve(t, n, z), l = c.length - 1, s = l; c[s] === 0; --s) c.pop();
729
+ return s < 0 ? new i(e.s * 0) : (e.e = Se(c, l), e.d = c, O = !1, o && (e = k(e, r, a * 4)), u && (e = e.times(Math.abs(u) < 54 ? F(2, u) : ue.pow(2, u))), O = !0, e);
730
730
  }
731
- function Mt(e, t) {
731
+ function Bt(e, t) {
732
732
  var n, i = t.d.length;
733
733
  if (i < 3)
734
- return t.isZero() ? t : ue(e, 2, t, t);
735
- n = 1.4 * Math.sqrt(i), n = n > 16 ? 16 : n | 0, t = t.times(1 / xe(5, n)), t = ue(e, 2, t, t);
734
+ return t.isZero() ? t : ce(e, 2, t, t);
735
+ n = 1.4 * Math.sqrt(i), n = n > 16 ? 16 : n | 0, t = t.times(1 / xe(5, n)), t = ce(e, 2, t, t);
736
736
  for (var r, s = new e(5), o = new e(16), a = new e(20); n--; )
737
737
  r = t.times(t), t = t.times(s.plus(r.times(o.times(r).minus(a))));
738
738
  return t;
739
739
  }
740
- function ue(e, t, n, i, r) {
740
+ function ce(e, t, n, i, r) {
741
741
  var s, o, a, u, c = e.precision, l = Math.ceil(c / A);
742
742
  for (O = !1, u = n.times(n), a = new e(i); ; ) {
743
743
  if (o = k(a.times(u), new e(t++ * t++), c, 1), a = r ? i.plus(o) : i.minus(o), i = k(o.times(u), new e(t++ * t++), c, 1), o = a.plus(i), o.d[l] !== void 0) {
@@ -752,7 +752,7 @@ function xe(e, t) {
752
752
  for (var n = e; --t; ) n *= e;
753
753
  return n;
754
754
  }
755
- function gt(e, t) {
755
+ function Et(e, t) {
756
756
  var n, i = t.s < 0, r = J(e, e.precision, 1), s = r.times(0.5);
757
757
  if (t = t.abs(), t.lte(s))
758
758
  return Q = i ? 4 : 1, t;
@@ -768,23 +768,23 @@ function gt(e, t) {
768
768
  function Je(e, t, n, i) {
769
769
  var r, s, o, a, u, c, l, f, h, E = e.constructor, N = n !== void 0;
770
770
  if (N ? ($(n, 1, ne), i === void 0 ? i = E.rounding : $(i, 0, 8)) : (n = E.precision, i = E.rounding), !e.isFinite())
771
- l = mt(e);
771
+ l = gt(e);
772
772
  else {
773
773
  for (l = X(e), o = l.indexOf("."), N ? (r = 2, t == 16 ? n = n * 4 - 3 : t == 8 && (n = n * 3 - 2)) : r = t, o >= 0 && (l = l.replace(".", ""), h = new E(1), h.e = l.length - o, h.d = ve(X(h), 10, r), h.e = h.d.length), f = ve(l, 10, r), s = u = f.length; f[--u] == 0; ) f.pop();
774
774
  if (!f[0])
775
775
  l = N ? "0p+0" : "0";
776
776
  else {
777
- if (o < 0 ? s-- : (e = new E(e), e.d = f, e.e = s, e = k(e, h, n, i, 0, r), f = e.d, s = e.e, c = at), o = f[n], a = r / 2, c = c || f[n + 1] !== void 0, c = i < 4 ? (o !== void 0 || c) && (i === 0 || i === (e.s < 0 ? 3 : 2)) : o > a || o === a && (i === 4 || c || i === 6 && f[n - 1] & 1 || i === (e.s < 0 ? 8 : 7)), f.length = n, c)
777
+ if (o < 0 ? s-- : (e = new E(e), e.d = f, e.e = s, e = k(e, h, n, i, 0, r), f = e.d, s = e.e, c = ct), o = f[n], a = r / 2, c = c || f[n + 1] !== void 0, c = i < 4 ? (o !== void 0 || c) && (i === 0 || i === (e.s < 0 ? 3 : 2)) : o > a || o === a && (i === 4 || c || i === 6 && f[n - 1] & 1 || i === (e.s < 0 ? 8 : 7)), f.length = n, c)
778
778
  for (; ++f[--n] > r - 1; )
779
779
  f[n] = 0, n || (++s, f.unshift(1));
780
780
  for (u = f.length; !f[u - 1]; --u) ;
781
- for (o = 0, l = ""; o < u; o++) l += Be.charAt(f[o]);
781
+ for (o = 0, l = ""; o < u; o++) l += Ue.charAt(f[o]);
782
782
  if (N) {
783
783
  if (u > 1)
784
784
  if (t == 16 || t == 8) {
785
785
  for (o = t == 16 ? 4 : 3, --u; u % o; u++) l += "0";
786
786
  for (f = ve(l, r, t), u = f.length; !f[u - 1]; --u) ;
787
- for (o = 1, l = "1."; o < u; o++) l += Be.charAt(f[o]);
787
+ for (o = 1, l = "1."; o < u; o++) l += Ue.charAt(f[o]);
788
788
  } else
789
789
  l = l.charAt(0) + "." + l.slice(1);
790
790
  l = l + (s < 0 ? "p" : "p+") + s;
@@ -802,46 +802,46 @@ function We(e, t) {
802
802
  if (e.length > t)
803
803
  return e.length = t, !0;
804
804
  }
805
- function Bt(e) {
805
+ function Ut(e) {
806
806
  return new this(e).abs();
807
807
  }
808
- function Ut(e) {
808
+ function qt(e) {
809
809
  return new this(e).acos();
810
810
  }
811
- function qt(e) {
811
+ function Vt(e) {
812
812
  return new this(e).acosh();
813
813
  }
814
- function Vt(e, t) {
814
+ function jt(e, t) {
815
815
  return new this(e).plus(t);
816
816
  }
817
- function jt(e) {
817
+ function $t(e) {
818
818
  return new this(e).asin();
819
819
  }
820
- function $t(e) {
820
+ function Ht(e) {
821
821
  return new this(e).asinh();
822
822
  }
823
- function Ht(e) {
823
+ function Gt(e) {
824
824
  return new this(e).atan();
825
825
  }
826
- function Gt(e) {
826
+ function Yt(e) {
827
827
  return new this(e).atanh();
828
828
  }
829
- function Yt(e, t) {
829
+ function Jt(e, t) {
830
830
  e = new this(e), t = new this(t);
831
831
  var n, i = this.precision, r = this.rounding, s = i + 4;
832
832
  return !e.s || !t.s ? n = new this(NaN) : !e.d && !t.d ? (n = J(this, s, 1).times(t.s > 0 ? 0.25 : 0.75), n.s = e.s) : !t.d || e.isZero() ? (n = t.s < 0 ? J(this, i, r) : new this(0), n.s = e.s) : !e.d || t.isZero() ? (n = J(this, s, 1).times(0.5), n.s = e.s) : t.s < 0 ? (this.precision = s, this.rounding = 1, n = this.atan(k(e, t, s, 1)), t = J(this, s, 1), this.precision = i, this.rounding = r, n = e.s < 0 ? n.minus(t) : n.plus(t)) : n = this.atan(k(e, t, s, 1)), n;
833
833
  }
834
- function Jt(e) {
834
+ function zt(e) {
835
835
  return new this(e).cbrt();
836
836
  }
837
- function zt(e) {
837
+ function Xt(e) {
838
838
  return T(e = new this(e), e.e + 1, 2);
839
839
  }
840
- function Xt(e, t, n) {
840
+ function Qt(e, t, n) {
841
841
  return new this(e).clamp(t, n);
842
842
  }
843
- function Qt(e) {
844
- if (!e || typeof e != "object") throw Error(De + "Object expected");
843
+ function Zt(e) {
844
+ if (!e || typeof e != "object") throw Error(be + "Object expected");
845
845
  var t, n, i, r = e.defaults === !0, s = [
846
846
  "precision",
847
847
  1,
@@ -850,45 +850,45 @@ function Qt(e) {
850
850
  0,
851
851
  8,
852
852
  "toExpNeg",
853
- -ae,
853
+ -9e15,
854
854
  0,
855
855
  "toExpPos",
856
856
  0,
857
- ae,
857
+ Be,
858
858
  "maxE",
859
859
  0,
860
- ae,
860
+ Be,
861
861
  "minE",
862
- -ae,
862
+ -9e15,
863
863
  0,
864
864
  "modulo",
865
865
  0,
866
866
  9
867
867
  ];
868
868
  for (t = 0; t < s.length; t += 3)
869
- if (n = s[t], r && (this[n] = Ue[n]), (i = e[n]) !== void 0)
869
+ if (n = s[t], r && (this[n] = qe[n]), (i = e[n]) !== void 0)
870
870
  if (V(i) === i && i >= s[t + 1] && i <= s[t + 2]) this[n] = i;
871
871
  else throw Error(te + n + ": " + i);
872
- if (n = "crypto", r && (this[n] = Ue[n]), (i = e[n]) !== void 0)
872
+ if (n = "crypto", r && (this[n] = qe[n]), (i = e[n]) !== void 0)
873
873
  if (i === !0 || i === !1 || i === 0 || i === 1)
874
874
  if (i)
875
875
  if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
876
876
  this[n] = !0;
877
877
  else
878
- throw Error(ut);
878
+ throw Error(lt);
879
879
  else
880
880
  this[n] = !1;
881
881
  else
882
882
  throw Error(te + n + ": " + i);
883
883
  return this;
884
884
  }
885
- function Zt(e) {
885
+ function Wt(e) {
886
886
  return new this(e).cos();
887
887
  }
888
- function Wt(e) {
888
+ function Kt(e) {
889
889
  return new this(e).cosh();
890
890
  }
891
- function Et(e) {
891
+ function Nt(e) {
892
892
  var t, n, i;
893
893
  function r(s) {
894
894
  var o, a, u, c = this;
@@ -910,25 +910,25 @@ function Et(e) {
910
910
  s || (c.s = NaN), c.e = NaN, c.d = null;
911
911
  return;
912
912
  }
913
- return je(c, s.toString());
913
+ return $e(c, s.toString());
914
914
  } else if (u !== "string")
915
915
  throw Error(te + s);
916
- return (a = s.charCodeAt(0)) === 45 ? (s = s.slice(1), c.s = -1) : (a === 43 && (s = s.slice(1)), c.s = 1), ft.test(s) ? je(c, s) : Pt(c, s);
916
+ return (a = s.charCodeAt(0)) === 45 ? (s = s.slice(1), c.s = -1) : (a === 43 && (s = s.slice(1)), c.s = 1), ht.test(s) ? $e(c, s) : Mt(c, s);
917
917
  }
918
- if (r.prototype = m, r.ROUND_UP = 0, r.ROUND_DOWN = 1, r.ROUND_CEIL = 2, r.ROUND_FLOOR = 3, r.ROUND_HALF_UP = 4, r.ROUND_HALF_DOWN = 5, r.ROUND_HALF_EVEN = 6, r.ROUND_HALF_CEIL = 7, r.ROUND_HALF_FLOOR = 8, r.EUCLID = 9, r.config = r.set = Qt, r.clone = Et, r.isDecimal = Ke, r.abs = Bt, r.acos = Ut, r.acosh = qt, r.add = Vt, r.asin = jt, r.asinh = $t, r.atan = Ht, r.atanh = Gt, r.atan2 = Yt, r.cbrt = Jt, r.ceil = zt, r.clamp = Xt, r.cos = Zt, r.cosh = Wt, r.div = Kt, r.exp = en, r.floor = tn, r.hypot = nn, r.ln = rn, r.log = sn, r.log10 = an, r.log2 = on, r.max = cn, r.min = un, r.mod = ln, r.mul = fn, r.pow = hn, r.random = dn, r.round = pn, r.sign = mn, r.sin = gn, r.sinh = En, r.sqrt = Nn, r.sub = yn, r.sum = vn, r.tan = wn, r.tanh = Tn, r.trunc = An, e === void 0 && (e = {}), e && e.defaults !== !0)
918
+ if (r.prototype = m, r.ROUND_UP = 0, r.ROUND_DOWN = 1, r.ROUND_CEIL = 2, r.ROUND_FLOOR = 3, r.ROUND_HALF_UP = 4, r.ROUND_HALF_DOWN = 5, r.ROUND_HALF_EVEN = 6, r.ROUND_HALF_CEIL = 7, r.ROUND_HALF_FLOOR = 8, r.EUCLID = 9, r.config = r.set = Zt, r.clone = Nt, r.isDecimal = Ke, r.abs = Ut, r.acos = qt, r.acosh = Vt, r.add = jt, r.asin = $t, r.asinh = Ht, r.atan = Gt, r.atanh = Yt, r.atan2 = Jt, r.cbrt = zt, r.ceil = Xt, r.clamp = Qt, r.cos = Wt, r.cosh = Kt, r.div = en, r.exp = tn, r.floor = nn, r.hypot = rn, r.ln = sn, r.log = on, r.log10 = cn, r.log2 = an, r.max = un, r.min = ln, r.mod = fn, r.mul = hn, r.pow = dn, r.random = pn, r.round = mn, r.sign = gn, r.sin = En, r.sinh = Nn, r.sqrt = yn, r.sub = vn, r.sum = wn, r.tan = Tn, r.tanh = An, r.trunc = In, e === void 0 && (e = {}), e && e.defaults !== !0)
919
919
  for (i = ["precision", "rounding", "toExpNeg", "toExpPos", "maxE", "minE", "modulo", "crypto"], t = 0; t < i.length; ) e.hasOwnProperty(n = i[t++]) || (e[n] = this[n]);
920
920
  return r.config(e), r;
921
921
  }
922
- function Kt(e, t) {
922
+ function en(e, t) {
923
923
  return new this(e).div(t);
924
924
  }
925
- function en(e) {
925
+ function tn(e) {
926
926
  return new this(e).exp();
927
927
  }
928
- function tn(e) {
928
+ function nn(e) {
929
929
  return T(e = new this(e), e.e + 1, 3);
930
930
  }
931
- function nn() {
931
+ function rn() {
932
932
  var e, t, n = new this(0);
933
933
  for (O = !1, e = 0; e < arguments.length; )
934
934
  if (t = new this(arguments[e++]), t.d)
@@ -941,36 +941,36 @@ function nn() {
941
941
  return O = !0, n.sqrt();
942
942
  }
943
943
  function Ke(e) {
944
- return e instanceof le || e && e.toStringTag === lt || !1;
944
+ return e instanceof ue || e && e.toStringTag === ft || !1;
945
945
  }
946
- function rn(e) {
946
+ function sn(e) {
947
947
  return new this(e).ln();
948
948
  }
949
- function sn(e, t) {
949
+ function on(e, t) {
950
950
  return new this(e).log(t);
951
951
  }
952
- function on(e) {
952
+ function an(e) {
953
953
  return new this(e).log(2);
954
954
  }
955
- function an(e) {
955
+ function cn(e) {
956
956
  return new this(e).log(10);
957
957
  }
958
- function cn() {
959
- return pt(this, arguments, "lt");
960
- }
961
958
  function un() {
962
- return pt(this, arguments, "gt");
959
+ return mt(this, arguments, "lt");
963
960
  }
964
- function ln(e, t) {
965
- return new this(e).mod(t);
961
+ function ln() {
962
+ return mt(this, arguments, "gt");
966
963
  }
967
964
  function fn(e, t) {
968
- return new this(e).mul(t);
965
+ return new this(e).mod(t);
969
966
  }
970
967
  function hn(e, t) {
968
+ return new this(e).mul(t);
969
+ }
970
+ function dn(e, t) {
971
971
  return new this(e).pow(t);
972
972
  }
973
- function dn(e) {
973
+ function pn(e) {
974
974
  var t, n, i, r, s = 0, o = new this(1), a = [];
975
975
  if (e === void 0 ? e = this.precision : $(e, 1, ne), i = Math.ceil(e / A), this.crypto)
976
976
  if (crypto.getRandomValues)
@@ -981,7 +981,7 @@ function dn(e) {
981
981
  r = t[s] + (t[s + 1] << 8) + (t[s + 2] << 16) + ((t[s + 3] & 127) << 24), r >= 214e7 ? crypto.randomBytes(4).copy(t, s) : (a.push(r % 1e7), s += 4);
982
982
  s = i / 4;
983
983
  } else
984
- throw Error(ut);
984
+ throw Error(lt);
985
985
  else for (; s < i; ) a[s++] = Math.random() * 1e7 | 0;
986
986
  for (i = a[--s], e %= A, i && e && (r = F(10, A - e), a[s] = (i / r | 0) * r); a[s] === 0; s--) a.pop();
987
987
  if (s < 0)
@@ -993,49 +993,49 @@ function dn(e) {
993
993
  }
994
994
  return o.e = n, o.d = a, o;
995
995
  }
996
- function pn(e) {
996
+ function mn(e) {
997
997
  return T(e = new this(e), e.e + 1, this.rounding);
998
998
  }
999
- function mn(e) {
999
+ function gn(e) {
1000
1000
  return e = new this(e), e.d ? e.d[0] ? e.s : 0 * e.s : e.s || NaN;
1001
1001
  }
1002
- function gn(e) {
1002
+ function En(e) {
1003
1003
  return new this(e).sin();
1004
1004
  }
1005
- function En(e) {
1005
+ function Nn(e) {
1006
1006
  return new this(e).sinh();
1007
1007
  }
1008
- function Nn(e) {
1008
+ function yn(e) {
1009
1009
  return new this(e).sqrt();
1010
1010
  }
1011
- function yn(e, t) {
1011
+ function vn(e, t) {
1012
1012
  return new this(e).sub(t);
1013
1013
  }
1014
- function vn() {
1014
+ function wn() {
1015
1015
  var e = 0, t = arguments, n = new this(t[e]);
1016
1016
  for (O = !1; n.s && ++e < t.length; ) n = n.plus(t[e]);
1017
1017
  return O = !0, T(n, this.precision, this.rounding);
1018
1018
  }
1019
- function wn(e) {
1019
+ function Tn(e) {
1020
1020
  return new this(e).tan();
1021
1021
  }
1022
- function Tn(e) {
1022
+ function An(e) {
1023
1023
  return new this(e).tanh();
1024
1024
  }
1025
- function An(e) {
1025
+ function In(e) {
1026
1026
  return T(e = new this(e), e.e + 1, 1);
1027
1027
  }
1028
1028
  m[Symbol.for("nodejs.util.inspect.custom")] = m.toString;
1029
1029
  m[Symbol.toStringTag] = "Decimal";
1030
- var le = m.constructor = Et(Ue);
1031
- Ie = new le(Ie);
1032
- Oe = new le(Oe);
1033
- const ze = JSON, In = (e) => e.toUpperCase(), On = (e) => {
1030
+ var ue = m.constructor = Nt(qe);
1031
+ Ie = new ue(Ie);
1032
+ Oe = new ue(Oe);
1033
+ const ze = JSON, On = (e) => e.toUpperCase(), _n = (e) => {
1034
1034
  const t = {};
1035
1035
  return e.forEach((n, i) => {
1036
1036
  t[i] = n;
1037
1037
  }), t;
1038
- }, _n = (e, t, n) => e.document ? e : {
1038
+ }, Dn = (e, t, n) => e.document ? e : {
1039
1039
  document: e,
1040
1040
  variables: t,
1041
1041
  requestHeaders: n,
@@ -1045,7 +1045,7 @@ const ze = JSON, In = (e) => e.toUpperCase(), On = (e) => {
1045
1045
  variables: t,
1046
1046
  requestHeaders: n,
1047
1047
  signal: void 0
1048
- }, Dn = (e, t) => e.documents ? e : {
1048
+ }, Sn = (e, t) => e.documents ? e : {
1049
1049
  documents: e,
1050
1050
  requestHeaders: t,
1051
1051
  signal: void 0
@@ -1054,20 +1054,20 @@ function we(e, t) {
1054
1054
  if (!!!e)
1055
1055
  throw new Error(t);
1056
1056
  }
1057
- function Sn(e) {
1057
+ function xn(e) {
1058
1058
  return typeof e == "object" && e !== null;
1059
1059
  }
1060
- function xn(e, t) {
1060
+ function Cn(e, t) {
1061
1061
  if (!!!e)
1062
1062
  throw new Error(
1063
1063
  "Unexpected invariant triggered."
1064
1064
  );
1065
1065
  }
1066
- const Cn = /\r\n|[\n\r]/g;
1067
- function $e(e, t) {
1066
+ const kn = /\r\n|[\n\r]/g;
1067
+ function He(e, t) {
1068
1068
  let n = 0, i = 1;
1069
- for (const r of e.body.matchAll(Cn)) {
1070
- if (typeof r.index == "number" || xn(!1), r.index >= t)
1069
+ for (const r of e.body.matchAll(kn)) {
1070
+ if (typeof r.index == "number" || Cn(!1), r.index >= t)
1071
1071
  break;
1072
1072
  n = r.index + r[0].length, i += 1;
1073
1073
  }
@@ -1076,13 +1076,13 @@ function $e(e, t) {
1076
1076
  column: t + 1 - n
1077
1077
  };
1078
1078
  }
1079
- function kn(e) {
1080
- return Nt(
1079
+ function Rn(e) {
1080
+ return yt(
1081
1081
  e.source,
1082
- $e(e.source, e.start)
1082
+ He(e.source, e.start)
1083
1083
  );
1084
1084
  }
1085
- function Nt(e, t) {
1085
+ function yt(e, t) {
1086
1086
  const n = e.locationOffset.column - 1, i = "".padStart(n) + e.body, r = t.line - 1, s = e.locationOffset.line - 1, o = t.line + s, a = t.line === 1 ? n : 0, u = t.column + a, c = `${e.name}:${o}:${u}
1087
1087
  `, l = i.split(/\r\n|[\n\r]/g), f = l[r];
1088
1088
  if (f.length > 120) {
@@ -1109,7 +1109,7 @@ function et(e) {
1109
1109
  return t.map(([i, r]) => i.padStart(n) + (r ? " " + r : "")).join(`
1110
1110
  `);
1111
1111
  }
1112
- function Rn(e) {
1112
+ function Ln(e) {
1113
1113
  const t = e[0];
1114
1114
  return t == null || "kind" in t || "length" in t ? {
1115
1115
  nodes: t,
@@ -1161,15 +1161,15 @@ class Xe extends Error {
1161
1161
  */
1162
1162
  constructor(t, ...n) {
1163
1163
  var i, r, s;
1164
- const { nodes: o, source: a, positions: u, path: c, originalError: l, extensions: f } = Rn(n);
1164
+ const { nodes: o, source: a, positions: u, path: c, originalError: l, extensions: f } = Ln(n);
1165
1165
  super(t), this.name = "GraphQLError", this.path = c ?? void 0, this.originalError = l ?? void 0, this.nodes = tt(
1166
1166
  Array.isArray(o) ? o : o ? [o] : void 0
1167
1167
  );
1168
1168
  const h = tt(
1169
1169
  (i = this.nodes) === null || i === void 0 ? void 0 : i.map((N) => N.loc).filter((N) => N != null)
1170
1170
  );
1171
- this.source = a ?? (h == null || (r = h[0]) === null || r === void 0 ? void 0 : r.source), this.positions = u ?? (h == null ? void 0 : h.map((N) => N.start)), this.locations = u && a ? u.map((N) => $e(a, N)) : h == null ? void 0 : h.map((N) => $e(N.source, N.start));
1172
- const E = Sn(
1171
+ this.source = a ?? (h == null || (r = h[0]) === null || r === void 0 ? void 0 : r.source), this.positions = u ?? (h == null ? void 0 : h.map((N) => N.start)), this.locations = u && a ? u.map((N) => He(a, N)) : h == null ? void 0 : h.map((N) => He(N.source, N.start));
1172
+ const E = xn(
1173
1173
  l == null ? void 0 : l.extensions
1174
1174
  ) ? l == null ? void 0 : l.extensions : void 0;
1175
1175
  this.extensions = (s = f ?? E) !== null && s !== void 0 ? s : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
@@ -1211,12 +1211,12 @@ class Xe extends Error {
1211
1211
  for (const n of this.nodes)
1212
1212
  n.loc && (t += `
1213
1213
 
1214
- ` + kn(n.loc));
1214
+ ` + Rn(n.loc));
1215
1215
  else if (this.source && this.locations)
1216
1216
  for (const n of this.locations)
1217
1217
  t += `
1218
1218
 
1219
- ` + Nt(this.source, n);
1219
+ ` + yt(this.source, n);
1220
1220
  return t;
1221
1221
  }
1222
1222
  toJSON() {
@@ -1235,7 +1235,7 @@ function P(e, t, n) {
1235
1235
  positions: [t]
1236
1236
  });
1237
1237
  }
1238
- class Ln {
1238
+ class Fn {
1239
1239
  /**
1240
1240
  * The character offset at which this Node begins.
1241
1241
  */
@@ -1264,7 +1264,7 @@ class Ln {
1264
1264
  };
1265
1265
  }
1266
1266
  }
1267
- class yt {
1267
+ class vt {
1268
1268
  /**
1269
1269
  * The kind of Token.
1270
1270
  */
@@ -1306,7 +1306,7 @@ class yt {
1306
1306
  };
1307
1307
  }
1308
1308
  }
1309
- const vt = {
1309
+ const wt = {
1310
1310
  Name: [],
1311
1311
  Document: ["definitions"],
1312
1312
  OperationDefinition: [
@@ -1380,45 +1380,45 @@ const vt = {
1380
1380
  UnionTypeExtension: ["name", "directives", "types"],
1381
1381
  EnumTypeExtension: ["name", "directives", "values"],
1382
1382
  InputObjectTypeExtension: ["name", "directives", "fields"]
1383
- }, Fn = new Set(Object.keys(vt));
1383
+ }, Pn = new Set(Object.keys(wt));
1384
1384
  function nt(e) {
1385
1385
  const t = e == null ? void 0 : e.kind;
1386
- return typeof t == "string" && Fn.has(t);
1386
+ return typeof t == "string" && Pn.has(t);
1387
1387
  }
1388
- var ce;
1388
+ var ae;
1389
1389
  (function(e) {
1390
1390
  e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
1391
- })(ce || (ce = {}));
1392
- var He;
1391
+ })(ae || (ae = {}));
1392
+ var Ge;
1393
1393
  (function(e) {
1394
1394
  e.QUERY = "QUERY", e.MUTATION = "MUTATION", e.SUBSCRIPTION = "SUBSCRIPTION", e.FIELD = "FIELD", e.FRAGMENT_DEFINITION = "FRAGMENT_DEFINITION", e.FRAGMENT_SPREAD = "FRAGMENT_SPREAD", e.INLINE_FRAGMENT = "INLINE_FRAGMENT", e.VARIABLE_DEFINITION = "VARIABLE_DEFINITION", e.SCHEMA = "SCHEMA", e.SCALAR = "SCALAR", e.OBJECT = "OBJECT", e.FIELD_DEFINITION = "FIELD_DEFINITION", e.ARGUMENT_DEFINITION = "ARGUMENT_DEFINITION", e.INTERFACE = "INTERFACE", e.UNION = "UNION", e.ENUM = "ENUM", e.ENUM_VALUE = "ENUM_VALUE", e.INPUT_OBJECT = "INPUT_OBJECT", e.INPUT_FIELD_DEFINITION = "INPUT_FIELD_DEFINITION";
1395
- })(He || (He = {}));
1395
+ })(Ge || (Ge = {}));
1396
1396
  var I;
1397
1397
  (function(e) {
1398
1398
  e.NAME = "Name", e.DOCUMENT = "Document", e.OPERATION_DEFINITION = "OperationDefinition", e.VARIABLE_DEFINITION = "VariableDefinition", e.SELECTION_SET = "SelectionSet", e.FIELD = "Field", e.ARGUMENT = "Argument", e.FRAGMENT_SPREAD = "FragmentSpread", e.INLINE_FRAGMENT = "InlineFragment", e.FRAGMENT_DEFINITION = "FragmentDefinition", e.VARIABLE = "Variable", e.INT = "IntValue", e.FLOAT = "FloatValue", e.STRING = "StringValue", e.BOOLEAN = "BooleanValue", e.NULL = "NullValue", e.ENUM = "EnumValue", e.LIST = "ListValue", e.OBJECT = "ObjectValue", e.OBJECT_FIELD = "ObjectField", e.DIRECTIVE = "Directive", e.NAMED_TYPE = "NamedType", e.LIST_TYPE = "ListType", e.NON_NULL_TYPE = "NonNullType", e.SCHEMA_DEFINITION = "SchemaDefinition", e.OPERATION_TYPE_DEFINITION = "OperationTypeDefinition", e.SCALAR_TYPE_DEFINITION = "ScalarTypeDefinition", e.OBJECT_TYPE_DEFINITION = "ObjectTypeDefinition", e.FIELD_DEFINITION = "FieldDefinition", e.INPUT_VALUE_DEFINITION = "InputValueDefinition", e.INTERFACE_TYPE_DEFINITION = "InterfaceTypeDefinition", e.UNION_TYPE_DEFINITION = "UnionTypeDefinition", e.ENUM_TYPE_DEFINITION = "EnumTypeDefinition", e.ENUM_VALUE_DEFINITION = "EnumValueDefinition", e.INPUT_OBJECT_TYPE_DEFINITION = "InputObjectTypeDefinition", e.DIRECTIVE_DEFINITION = "DirectiveDefinition", e.SCHEMA_EXTENSION = "SchemaExtension", e.SCALAR_TYPE_EXTENSION = "ScalarTypeExtension", e.OBJECT_TYPE_EXTENSION = "ObjectTypeExtension", e.INTERFACE_TYPE_EXTENSION = "InterfaceTypeExtension", e.UNION_TYPE_EXTENSION = "UnionTypeExtension", e.ENUM_TYPE_EXTENSION = "EnumTypeExtension", e.INPUT_OBJECT_TYPE_EXTENSION = "InputObjectTypeExtension";
1399
1399
  })(I || (I = {}));
1400
- function Ge(e) {
1400
+ function Ye(e) {
1401
1401
  return e === 9 || e === 32;
1402
1402
  }
1403
1403
  function Ee(e) {
1404
1404
  return e >= 48 && e <= 57;
1405
1405
  }
1406
- function wt(e) {
1406
+ function Tt(e) {
1407
1407
  return e >= 97 && e <= 122 || // A-Z
1408
1408
  e >= 65 && e <= 90;
1409
1409
  }
1410
- function Tt(e) {
1411
- return wt(e) || e === 95;
1412
- }
1413
- function Pn(e) {
1414
- return wt(e) || Ee(e) || e === 95;
1410
+ function At(e) {
1411
+ return Tt(e) || e === 95;
1415
1412
  }
1416
1413
  function Mn(e) {
1414
+ return Tt(e) || Ee(e) || e === 95;
1415
+ }
1416
+ function Bn(e) {
1417
1417
  var t;
1418
1418
  let n = Number.MAX_SAFE_INTEGER, i = null, r = -1;
1419
1419
  for (let o = 0; o < e.length; ++o) {
1420
1420
  var s;
1421
- const a = e[o], u = Bn(a);
1421
+ const a = e[o], u = Un(a);
1422
1422
  u !== a.length && (i = (s = i) !== null && s !== void 0 ? s : o, r = o, o !== 0 && u < n && (n = u));
1423
1423
  }
1424
1424
  return e.map((o, a) => a === 0 ? o : o.slice(n)).slice(
@@ -1426,19 +1426,19 @@ function Mn(e) {
1426
1426
  r + 1
1427
1427
  );
1428
1428
  }
1429
- function Bn(e) {
1429
+ function Un(e) {
1430
1430
  let t = 0;
1431
- for (; t < e.length && Ge(e.charCodeAt(t)); )
1431
+ for (; t < e.length && Ye(e.charCodeAt(t)); )
1432
1432
  ++t;
1433
1433
  return t;
1434
1434
  }
1435
- function Un(e, t) {
1436
- const n = e.replace(/"""/g, '\\"""'), i = n.split(/\r\n|[\n\r]/g), r = i.length === 1, s = i.length > 1 && i.slice(1).every((E) => E.length === 0 || Ge(E.charCodeAt(0))), o = n.endsWith('\\"""'), a = e.endsWith('"') && !o, u = e.endsWith("\\"), c = a || u, l = (
1435
+ function qn(e, t) {
1436
+ const n = e.replace(/"""/g, '\\"""'), i = n.split(/\r\n|[\n\r]/g), r = i.length === 1, s = i.length > 1 && i.slice(1).every((E) => E.length === 0 || Ye(E.charCodeAt(0))), o = n.endsWith('\\"""'), a = e.endsWith('"') && !o, u = e.endsWith("\\"), c = a || u, l = (
1437
1437
  // add leading and trailing new lines only if it improves readability
1438
1438
  !r || e.length > 70 || c || s || o
1439
1439
  );
1440
1440
  let f = "";
1441
- const h = r && Ge(e.charCodeAt(0));
1441
+ const h = r && Ye(e.charCodeAt(0));
1442
1442
  return (l && !h || s) && (f += `
1443
1443
  `), f += n, (l || c) && (f += `
1444
1444
  `), '"""' + f + '"""';
@@ -1447,7 +1447,7 @@ var p;
1447
1447
  (function(e) {
1448
1448
  e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
1449
1449
  })(p || (p = {}));
1450
- class qn {
1450
+ class Vn {
1451
1451
  /**
1452
1452
  * The previously focused non-ignored token.
1453
1453
  */
@@ -1461,7 +1461,7 @@ class qn {
1461
1461
  * The character offset at which the current line begins.
1462
1462
  */
1463
1463
  constructor(t) {
1464
- const n = new yt(p.SOF, 0, 0, 0, 0);
1464
+ const n = new vt(p.SOF, 0, 0, 0, 0);
1465
1465
  this.source = t, this.lastToken = n, this.token = n, this.line = 1, this.lineStart = 0;
1466
1466
  }
1467
1467
  get [Symbol.toStringTag]() {
@@ -1484,26 +1484,26 @@ class qn {
1484
1484
  if (t.next)
1485
1485
  t = t.next;
1486
1486
  else {
1487
- const n = jn(this, t.end);
1487
+ const n = $n(this, t.end);
1488
1488
  t.next = n, n.prev = t, t = n;
1489
1489
  }
1490
1490
  while (t.kind === p.COMMENT);
1491
1491
  return t;
1492
1492
  }
1493
1493
  }
1494
- function Vn(e) {
1494
+ function jn(e) {
1495
1495
  return e === p.BANG || e === p.DOLLAR || e === p.AMP || e === p.PAREN_L || e === p.PAREN_R || e === p.SPREAD || e === p.COLON || e === p.EQUALS || e === p.AT || e === p.BRACKET_L || e === p.BRACKET_R || e === p.BRACE_L || e === p.PIPE || e === p.BRACE_R;
1496
1496
  }
1497
- function fe(e) {
1497
+ function le(e) {
1498
1498
  return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
1499
1499
  }
1500
1500
  function Ce(e, t) {
1501
- return At(e.charCodeAt(t)) && It(e.charCodeAt(t + 1));
1501
+ return It(e.charCodeAt(t)) && Ot(e.charCodeAt(t + 1));
1502
1502
  }
1503
- function At(e) {
1503
+ function It(e) {
1504
1504
  return e >= 55296 && e <= 56319;
1505
1505
  }
1506
- function It(e) {
1506
+ function Ot(e) {
1507
1507
  return e >= 56320 && e <= 57343;
1508
1508
  }
1509
1509
  function re(e, t) {
@@ -1518,28 +1518,58 @@ function re(e, t) {
1518
1518
  }
1519
1519
  function L(e, t, n, i, r) {
1520
1520
  const s = e.line, o = 1 + n - e.lineStart;
1521
- return new yt(t, n, i, s, o, r);
1521
+ return new vt(t, n, i, s, o, r);
1522
1522
  }
1523
- function jn(e, t) {
1523
+ function $n(e, t) {
1524
1524
  const n = e.source.body, i = n.length;
1525
1525
  let r = t;
1526
1526
  for (; r < i; ) {
1527
1527
  const s = n.charCodeAt(r);
1528
1528
  switch (s) {
1529
+ // Ignored ::
1530
+ // - UnicodeBOM
1531
+ // - WhiteSpace
1532
+ // - LineTerminator
1533
+ // - Comment
1534
+ // - Comma
1535
+ //
1536
+ // UnicodeBOM :: "Byte Order Mark (U+FEFF)"
1537
+ //
1538
+ // WhiteSpace ::
1539
+ // - "Horizontal Tab (U+0009)"
1540
+ // - "Space (U+0020)"
1541
+ //
1542
+ // Comma :: ,
1529
1543
  case 65279:
1544
+ // <BOM>
1530
1545
  case 9:
1546
+ // \t
1531
1547
  case 32:
1548
+ // <space>
1532
1549
  case 44:
1533
1550
  ++r;
1534
1551
  continue;
1552
+ // LineTerminator ::
1553
+ // - "New Line (U+000A)"
1554
+ // - "Carriage Return (U+000D)" [lookahead != "New Line (U+000A)"]
1555
+ // - "Carriage Return (U+000D)" "New Line (U+000A)"
1535
1556
  case 10:
1536
1557
  ++r, ++e.line, e.lineStart = r;
1537
1558
  continue;
1538
1559
  case 13:
1539
1560
  n.charCodeAt(r + 1) === 10 ? r += 2 : ++r, ++e.line, e.lineStart = r;
1540
1561
  continue;
1562
+ // Comment
1541
1563
  case 35:
1542
- return $n(e, r);
1564
+ return Hn(e, r);
1565
+ // Token ::
1566
+ // - Punctuator
1567
+ // - Name
1568
+ // - IntValue
1569
+ // - FloatValue
1570
+ // - StringValue
1571
+ //
1572
+ // Punctuator :: one of ! $ & ( ) ... : = @ [ ] { | }
1543
1573
  case 33:
1544
1574
  return L(e, p.BANG, r, r + 1);
1545
1575
  case 36:
@@ -1570,29 +1600,30 @@ function jn(e, t) {
1570
1600
  return L(e, p.PIPE, r, r + 1);
1571
1601
  case 125:
1572
1602
  return L(e, p.BRACE_R, r, r + 1);
1603
+ // StringValue
1573
1604
  case 34:
1574
- return n.charCodeAt(r + 1) === 34 && n.charCodeAt(r + 2) === 34 ? Xn(e, r) : Gn(e, r);
1605
+ return n.charCodeAt(r + 1) === 34 && n.charCodeAt(r + 2) === 34 ? Qn(e, r) : Yn(e, r);
1575
1606
  }
1576
1607
  if (Ee(s) || s === 45)
1577
- return Hn(e, r, s);
1578
- if (Tt(s))
1579
- return Qn(e, r);
1608
+ return Gn(e, r, s);
1609
+ if (At(s))
1610
+ return Zn(e, r);
1580
1611
  throw P(
1581
1612
  e.source,
1582
1613
  r,
1583
- s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : fe(s) || Ce(n, r) ? `Unexpected character: ${re(e, r)}.` : `Invalid character: ${re(e, r)}.`
1614
+ s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : le(s) || Ce(n, r) ? `Unexpected character: ${re(e, r)}.` : `Invalid character: ${re(e, r)}.`
1584
1615
  );
1585
1616
  }
1586
1617
  return L(e, p.EOF, i, i);
1587
1618
  }
1588
- function $n(e, t) {
1619
+ function Hn(e, t) {
1589
1620
  const n = e.source.body, i = n.length;
1590
1621
  let r = t + 1;
1591
1622
  for (; r < i; ) {
1592
1623
  const s = n.charCodeAt(r);
1593
1624
  if (s === 10 || s === 13)
1594
1625
  break;
1595
- if (fe(s))
1626
+ if (le(s))
1596
1627
  ++r;
1597
1628
  else if (Ce(n, r))
1598
1629
  r += 2;
@@ -1607,7 +1638,7 @@ function $n(e, t) {
1607
1638
  n.slice(t + 1, r)
1608
1639
  );
1609
1640
  }
1610
- function Hn(e, t, n) {
1641
+ function Gn(e, t, n) {
1611
1642
  const i = e.source.body;
1612
1643
  let r = t, s = n, o = !1;
1613
1644
  if (s === 45 && (s = i.charCodeAt(++r)), s === 48) {
@@ -1622,7 +1653,7 @@ function Hn(e, t, n) {
1622
1653
  );
1623
1654
  } else
1624
1655
  r = Le(e, r, s), s = i.charCodeAt(r);
1625
- if (s === 46 && (o = !0, s = i.charCodeAt(++r), r = Le(e, r, s), s = i.charCodeAt(r)), (s === 69 || s === 101) && (o = !0, s = i.charCodeAt(++r), (s === 43 || s === 45) && (s = i.charCodeAt(++r)), r = Le(e, r, s), s = i.charCodeAt(r)), s === 46 || Tt(s))
1656
+ if (s === 46 && (o = !0, s = i.charCodeAt(++r), r = Le(e, r, s), s = i.charCodeAt(r)), (s === 69 || s === 101) && (o = !0, s = i.charCodeAt(++r), (s === 43 || s === 45) && (s = i.charCodeAt(++r)), r = Le(e, r, s), s = i.charCodeAt(r)), s === 46 || At(s))
1626
1657
  throw P(
1627
1658
  e.source,
1628
1659
  r,
@@ -1655,7 +1686,7 @@ function Le(e, t, n) {
1655
1686
  ++r;
1656
1687
  return r;
1657
1688
  }
1658
- function Gn(e, t) {
1689
+ function Yn(e, t) {
1659
1690
  const n = e.source.body, i = n.length;
1660
1691
  let r = t + 1, s = r, o = "";
1661
1692
  for (; r < i; ) {
@@ -1664,13 +1695,13 @@ function Gn(e, t) {
1664
1695
  return o += n.slice(s, r), L(e, p.STRING, t, r + 1, o);
1665
1696
  if (a === 92) {
1666
1697
  o += n.slice(s, r);
1667
- const u = n.charCodeAt(r + 1) === 117 ? n.charCodeAt(r + 2) === 123 ? Yn(e, r) : Jn(e, r) : zn(e, r);
1698
+ const u = n.charCodeAt(r + 1) === 117 ? n.charCodeAt(r + 2) === 123 ? Jn(e, r) : zn(e, r) : Xn(e, r);
1668
1699
  o += u.value, r += u.size, s = r;
1669
1700
  continue;
1670
1701
  }
1671
1702
  if (a === 10 || a === 13)
1672
1703
  break;
1673
- if (fe(a))
1704
+ if (le(a))
1674
1705
  ++r;
1675
1706
  else if (Ce(n, r))
1676
1707
  r += 2;
@@ -1686,20 +1717,20 @@ function Gn(e, t) {
1686
1717
  }
1687
1718
  throw P(e.source, r, "Unterminated string.");
1688
1719
  }
1689
- function Yn(e, t) {
1720
+ function Jn(e, t) {
1690
1721
  const n = e.source.body;
1691
1722
  let i = 0, r = 3;
1692
1723
  for (; r < 12; ) {
1693
1724
  const s = n.charCodeAt(t + r++);
1694
1725
  if (s === 125) {
1695
- if (r < 5 || !fe(i))
1726
+ if (r < 5 || !le(i))
1696
1727
  break;
1697
1728
  return {
1698
1729
  value: String.fromCodePoint(i),
1699
1730
  size: r
1700
1731
  };
1701
1732
  }
1702
- if (i = i << 4 | pe(s), i < 0)
1733
+ if (i = i << 4 | de(s), i < 0)
1703
1734
  break;
1704
1735
  }
1705
1736
  throw P(
@@ -1711,16 +1742,16 @@ function Yn(e, t) {
1711
1742
  )}".`
1712
1743
  );
1713
1744
  }
1714
- function Jn(e, t) {
1745
+ function zn(e, t) {
1715
1746
  const n = e.source.body, i = it(n, t + 2);
1716
- if (fe(i))
1747
+ if (le(i))
1717
1748
  return {
1718
1749
  value: String.fromCodePoint(i),
1719
1750
  size: 6
1720
1751
  };
1721
- if (At(i) && n.charCodeAt(t + 6) === 92 && n.charCodeAt(t + 7) === 117) {
1752
+ if (It(i) && n.charCodeAt(t + 6) === 92 && n.charCodeAt(t + 7) === 117) {
1722
1753
  const r = it(n, t + 8);
1723
- if (It(r))
1754
+ if (Ot(r))
1724
1755
  return {
1725
1756
  value: String.fromCodePoint(i, r),
1726
1757
  size: 12
@@ -1733,12 +1764,12 @@ function Jn(e, t) {
1733
1764
  );
1734
1765
  }
1735
1766
  function it(e, t) {
1736
- return pe(e.charCodeAt(t)) << 12 | pe(e.charCodeAt(t + 1)) << 8 | pe(e.charCodeAt(t + 2)) << 4 | pe(e.charCodeAt(t + 3));
1767
+ return de(e.charCodeAt(t)) << 12 | de(e.charCodeAt(t + 1)) << 8 | de(e.charCodeAt(t + 2)) << 4 | de(e.charCodeAt(t + 3));
1737
1768
  }
1738
- function pe(e) {
1769
+ function de(e) {
1739
1770
  return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
1740
1771
  }
1741
- function zn(e, t) {
1772
+ function Xn(e, t) {
1742
1773
  const n = e.source.body;
1743
1774
  switch (n.charCodeAt(t + 1)) {
1744
1775
  case 34:
@@ -1792,7 +1823,7 @@ function zn(e, t) {
1792
1823
  )}".`
1793
1824
  );
1794
1825
  }
1795
- function Xn(e, t) {
1826
+ function Qn(e, t) {
1796
1827
  const n = e.source.body, i = n.length;
1797
1828
  let r = e.lineStart, s = t + 3, o = s, a = "";
1798
1829
  const u = [];
@@ -1806,7 +1837,7 @@ function Xn(e, t) {
1806
1837
  t,
1807
1838
  s + 3,
1808
1839
  // Return a string of the lines joined with U+000A.
1809
- Mn(u).join(`
1840
+ Bn(u).join(`
1810
1841
  `)
1811
1842
  );
1812
1843
  return e.line += u.length - 1, e.lineStart = r, l;
@@ -1819,7 +1850,7 @@ function Xn(e, t) {
1819
1850
  a += n.slice(o, s), u.push(a), c === 13 && n.charCodeAt(s + 1) === 10 ? s += 2 : ++s, a = "", o = s, r = s;
1820
1851
  continue;
1821
1852
  }
1822
- if (fe(c))
1853
+ if (le(c))
1823
1854
  ++s;
1824
1855
  else if (Ce(n, s))
1825
1856
  s += 2;
@@ -1835,12 +1866,12 @@ function Xn(e, t) {
1835
1866
  }
1836
1867
  throw P(e.source, s, "Unterminated string.");
1837
1868
  }
1838
- function Qn(e, t) {
1869
+ function Zn(e, t) {
1839
1870
  const n = e.source.body, i = n.length;
1840
1871
  let r = t + 1;
1841
1872
  for (; r < i; ) {
1842
1873
  const s = n.charCodeAt(r);
1843
- if (Pn(s))
1874
+ if (Mn(s))
1844
1875
  ++r;
1845
1876
  else
1846
1877
  break;
@@ -1853,7 +1884,7 @@ function Qn(e, t) {
1853
1884
  n.slice(t, r)
1854
1885
  );
1855
1886
  }
1856
- const Zn = 10, Ot = 2;
1887
+ const Wn = 10, _t = 2;
1857
1888
  function Qe(e) {
1858
1889
  return ke(e, []);
1859
1890
  }
@@ -1864,45 +1895,45 @@ function ke(e, t) {
1864
1895
  case "function":
1865
1896
  return e.name ? `[function ${e.name}]` : "[function]";
1866
1897
  case "object":
1867
- return Wn(e, t);
1898
+ return Kn(e, t);
1868
1899
  default:
1869
1900
  return String(e);
1870
1901
  }
1871
1902
  }
1872
- function Wn(e, t) {
1903
+ function Kn(e, t) {
1873
1904
  if (e === null)
1874
1905
  return "null";
1875
1906
  if (t.includes(e))
1876
1907
  return "[Circular]";
1877
1908
  const n = [...t, e];
1878
- if (Kn(e)) {
1909
+ if (ei(e)) {
1879
1910
  const i = e.toJSON();
1880
1911
  if (i !== e)
1881
1912
  return typeof i == "string" ? i : ke(i, n);
1882
1913
  } else if (Array.isArray(e))
1883
- return ti(e, n);
1884
- return ei(e, n);
1914
+ return ni(e, n);
1915
+ return ti(e, n);
1885
1916
  }
1886
- function Kn(e) {
1917
+ function ei(e) {
1887
1918
  return typeof e.toJSON == "function";
1888
1919
  }
1889
- function ei(e, t) {
1920
+ function ti(e, t) {
1890
1921
  const n = Object.entries(e);
1891
- return n.length === 0 ? "{}" : t.length > Ot ? "[" + ni(e) + "]" : "{ " + n.map(
1922
+ return n.length === 0 ? "{}" : t.length > _t ? "[" + ii(e) + "]" : "{ " + n.map(
1892
1923
  ([r, s]) => r + ": " + ke(s, t)
1893
1924
  ).join(", ") + " }";
1894
1925
  }
1895
- function ti(e, t) {
1926
+ function ni(e, t) {
1896
1927
  if (e.length === 0)
1897
1928
  return "[]";
1898
- if (t.length > Ot)
1929
+ if (t.length > _t)
1899
1930
  return "[Array]";
1900
- const n = Math.min(Zn, e.length), i = e.length - n, r = [];
1931
+ const n = Math.min(Wn, e.length), i = e.length - n, r = [];
1901
1932
  for (let s = 0; s < n; ++s)
1902
1933
  r.push(ke(e[s], t));
1903
1934
  return i === 1 ? r.push("... 1 more item") : i > 1 && r.push(`... ${i} more items`), "[" + r.join(", ") + "]";
1904
1935
  }
1905
- function ni(e) {
1936
+ function ii(e) {
1906
1937
  const t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
1907
1938
  if (t === "Object" && typeof e.constructor == "function") {
1908
1939
  const n = e.constructor.name;
@@ -1911,7 +1942,7 @@ function ni(e) {
1911
1942
  }
1912
1943
  return t;
1913
1944
  }
1914
- const ii = (
1945
+ const ri = (
1915
1946
  /* c8 ignore next 6 */
1916
1947
  // FIXME: https://github.com/graphql/graphql-js/issues/2317
1917
1948
  // eslint-disable-next-line no-undef
@@ -1945,7 +1976,7 @@ spurious results.`);
1945
1976
  return !1;
1946
1977
  }
1947
1978
  );
1948
- class _t {
1979
+ class Dt {
1949
1980
  constructor(t, n = "GraphQL request", i = {
1950
1981
  line: 1,
1951
1982
  column: 1
@@ -1962,16 +1993,16 @@ class _t {
1962
1993
  return "Source";
1963
1994
  }
1964
1995
  }
1965
- function ri(e) {
1966
- return ii(e, _t);
1996
+ function si(e) {
1997
+ return ri(e, Dt);
1967
1998
  }
1968
- function si(e, t) {
1969
- return new oi(e, t).parseDocument();
1999
+ function oi(e, t) {
2000
+ return new ai(e, t).parseDocument();
1970
2001
  }
1971
- class oi {
2002
+ class ai {
1972
2003
  constructor(t, n = {}) {
1973
- const i = ri(t) ? t : new _t(t);
1974
- this._lexer = new qn(i), this._options = n, this._tokenCounter = 0;
2004
+ const i = si(t) ? t : new Dt(t);
2005
+ this._lexer = new Vn(i), this._options = n, this._tokenCounter = 0;
1975
2006
  }
1976
2007
  /**
1977
2008
  * Converts a name lex token into a name parse node.
@@ -2073,7 +2104,7 @@ class oi {
2073
2104
  if (this.peek(p.BRACE_L))
2074
2105
  return this.node(t, {
2075
2106
  kind: I.OPERATION_DEFINITION,
2076
- operation: ce.QUERY,
2107
+ operation: ae.QUERY,
2077
2108
  name: void 0,
2078
2109
  variableDefinitions: [],
2079
2110
  directives: [],
@@ -2097,11 +2128,11 @@ class oi {
2097
2128
  const t = this.expectToken(p.NAME);
2098
2129
  switch (t.value) {
2099
2130
  case "query":
2100
- return ce.QUERY;
2131
+ return ae.QUERY;
2101
2132
  case "mutation":
2102
- return ce.MUTATION;
2133
+ return ae.MUTATION;
2103
2134
  case "subscription":
2104
- return ce.SUBSCRIPTION;
2135
+ return ae.SUBSCRIPTION;
2105
2136
  }
2106
2137
  throw this.unexpected(t);
2107
2138
  }
@@ -2927,7 +2958,7 @@ class oi {
2927
2958
  */
2928
2959
  parseDirectiveLocation() {
2929
2960
  const t = this._lexer.token, n = this.parseName();
2930
- if (Object.prototype.hasOwnProperty.call(He, n.value))
2961
+ if (Object.prototype.hasOwnProperty.call(Ge, n.value))
2931
2962
  return n;
2932
2963
  throw this.unexpected(t);
2933
2964
  }
@@ -2938,7 +2969,7 @@ class oi {
2938
2969
  * given parsed object.
2939
2970
  */
2940
2971
  node(t, n) {
2941
- return this._options.noLocation !== !0 && (n.loc = new Ln(
2972
+ return this._options.noLocation !== !0 && (n.loc = new Fn(
2942
2973
  t,
2943
2974
  this._lexer.lastToken,
2944
2975
  this._lexer.source
@@ -3074,16 +3105,16 @@ function ye(e) {
3074
3105
  return bt(e.kind) + (t != null ? ` "${t}"` : "");
3075
3106
  }
3076
3107
  function bt(e) {
3077
- return Vn(e) ? `"${e}"` : e;
3108
+ return jn(e) ? `"${e}"` : e;
3078
3109
  }
3079
- function ai(e) {
3080
- return `"${e.replace(ci, ui)}"`;
3110
+ function ci(e) {
3111
+ return `"${e.replace(ui, li)}"`;
3081
3112
  }
3082
- const ci = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
3083
- function ui(e) {
3084
- return li[e.charCodeAt(0)];
3113
+ const ui = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
3114
+ function li(e) {
3115
+ return fi[e.charCodeAt(0)];
3085
3116
  }
3086
- const li = [
3117
+ const fi = [
3087
3118
  "\\u0000",
3088
3119
  "\\u0001",
3089
3120
  "\\u0002",
@@ -3249,17 +3280,17 @@ const li = [
3249
3280
  "\\u009D",
3250
3281
  "\\u009E",
3251
3282
  "\\u009F"
3252
- ], fi = Object.freeze({});
3253
- function hi(e, t, n = vt) {
3283
+ ], hi = Object.freeze({});
3284
+ function di(e, t, n = wt) {
3254
3285
  const i = /* @__PURE__ */ new Map();
3255
- for (const b of Object.values(I))
3256
- i.set(b, di(t, b));
3286
+ for (const D of Object.values(I))
3287
+ i.set(D, pi(t, D));
3257
3288
  let r, s = Array.isArray(e), o = [e], a = -1, u = [], c = e, l, f;
3258
3289
  const h = [], E = [];
3259
3290
  do {
3260
3291
  a++;
3261
- const b = a === o.length, U = b && u.length !== 0;
3262
- if (b) {
3292
+ const D = a === o.length, U = D && u.length !== 0;
3293
+ if (D) {
3263
3294
  if (l = E.length === 0 ? void 0 : h[h.length - 1], c = f, f = E.pop(), U)
3264
3295
  if (s) {
3265
3296
  c = c.slice();
@@ -3286,15 +3317,15 @@ function hi(e, t, n = vt) {
3286
3317
  if (!Array.isArray(c)) {
3287
3318
  var N, y;
3288
3319
  nt(c) || we(!1, `Invalid AST Node: ${Qe(c)}.`);
3289
- const x = b ? (N = i.get(c.kind)) === null || N === void 0 ? void 0 : N.leave : (y = i.get(c.kind)) === null || y === void 0 ? void 0 : y.enter;
3290
- if (_ = x == null ? void 0 : x.call(t, c, l, f, h, E), _ === fi)
3320
+ const x = D ? (N = i.get(c.kind)) === null || N === void 0 ? void 0 : N.leave : (y = i.get(c.kind)) === null || y === void 0 ? void 0 : y.enter;
3321
+ if (_ = x == null ? void 0 : x.call(t, c, l, f, h, E), _ === hi)
3291
3322
  break;
3292
3323
  if (_ === !1) {
3293
- if (!b) {
3324
+ if (!D) {
3294
3325
  h.pop();
3295
3326
  continue;
3296
3327
  }
3297
- } else if (_ !== void 0 && (u.push([l, _]), !b))
3328
+ } else if (_ !== void 0 && (u.push([l, _]), !D))
3298
3329
  if (nt(_))
3299
3330
  c = _;
3300
3331
  else {
@@ -3302,7 +3333,7 @@ function hi(e, t, n = vt) {
3302
3333
  continue;
3303
3334
  }
3304
3335
  }
3305
- if (_ === void 0 && U && u.push([l, c]), b)
3336
+ if (_ === void 0 && U && u.push([l, c]), D)
3306
3337
  h.pop();
3307
3338
  else {
3308
3339
  var S;
@@ -3317,7 +3348,7 @@ function hi(e, t, n = vt) {
3317
3348
  } while (r !== void 0);
3318
3349
  return u.length !== 0 ? u[u.length - 1][1] : e;
3319
3350
  }
3320
- function di(e, t) {
3351
+ function pi(e, t) {
3321
3352
  const n = e[t];
3322
3353
  return typeof n == "object" ? n : typeof n == "function" ? {
3323
3354
  enter: n,
@@ -3327,10 +3358,10 @@ function di(e, t) {
3327
3358
  leave: e.leave
3328
3359
  };
3329
3360
  }
3330
- function pi(e) {
3331
- return hi(e, gi);
3361
+ function mi(e) {
3362
+ return di(e, Ei);
3332
3363
  }
3333
- const mi = 80, gi = {
3364
+ const gi = 80, Ei = {
3334
3365
  Name: {
3335
3366
  leave: (e) => e.value
3336
3367
  },
@@ -3345,7 +3376,7 @@ const mi = 80, gi = {
3345
3376
  },
3346
3377
  OperationDefinition: {
3347
3378
  leave(e) {
3348
- const t = D("(", w(e.variableDefinitions, ", "), ")"), n = w(
3379
+ const t = b("(", w(e.variableDefinitions, ", "), ")"), n = w(
3349
3380
  [
3350
3381
  e.operation,
3351
3382
  w([e.name, t]),
@@ -3357,16 +3388,16 @@ const mi = 80, gi = {
3357
3388
  }
3358
3389
  },
3359
3390
  VariableDefinition: {
3360
- leave: ({ variable: e, type: t, defaultValue: n, directives: i }) => e + ": " + t + D(" = ", n) + D(" ", w(i, " "))
3391
+ leave: ({ variable: e, type: t, defaultValue: n, directives: i }) => e + ": " + t + b(" = ", n) + b(" ", w(i, " "))
3361
3392
  },
3362
3393
  SelectionSet: {
3363
3394
  leave: ({ selections: e }) => Y(e)
3364
3395
  },
3365
3396
  Field: {
3366
3397
  leave({ alias: e, name: t, arguments: n, directives: i, selectionSet: r }) {
3367
- const s = D("", e, ": ") + t;
3368
- let o = s + D("(", w(n, ", "), ")");
3369
- return o.length > mi && (o = s + D(`(
3398
+ const s = b("", e, ": ") + t;
3399
+ let o = s + b("(", w(n, ", "), ")");
3400
+ return o.length > gi && (o = s + b(`(
3370
3401
  `, Te(w(n, `
3371
3402
  `)), `
3372
3403
  )`)), w([o, w(i, " "), r], " ");
@@ -3377,13 +3408,13 @@ const mi = 80, gi = {
3377
3408
  },
3378
3409
  // Fragments
3379
3410
  FragmentSpread: {
3380
- leave: ({ name: e, directives: t }) => "..." + e + D(" ", w(t, " "))
3411
+ leave: ({ name: e, directives: t }) => "..." + e + b(" ", w(t, " "))
3381
3412
  },
3382
3413
  InlineFragment: {
3383
3414
  leave: ({ typeCondition: e, directives: t, selectionSet: n }) => w(
3384
3415
  [
3385
3416
  "...",
3386
- D("on ", e),
3417
+ b("on ", e),
3387
3418
  w(t, " "),
3388
3419
  n
3389
3420
  ],
@@ -3393,7 +3424,7 @@ const mi = 80, gi = {
3393
3424
  FragmentDefinition: {
3394
3425
  leave: ({ name: e, typeCondition: t, variableDefinitions: n, directives: i, selectionSet: r }) => (
3395
3426
  // or removed in the future.
3396
- `fragment ${e}${D("(", w(n, ", "), ")")} on ${t} ${D("", w(i, " "), " ")}` + r
3427
+ `fragment ${e}${b("(", w(n, ", "), ")")} on ${t} ${b("", w(i, " "), " ")}` + r
3397
3428
  )
3398
3429
  },
3399
3430
  // Value
@@ -3404,7 +3435,7 @@ const mi = 80, gi = {
3404
3435
  leave: ({ value: e }) => e
3405
3436
  },
3406
3437
  StringValue: {
3407
- leave: ({ value: e, block: t }) => t ? Un(e) : ai(e)
3438
+ leave: ({ value: e, block: t }) => t ? qn(e) : ci(e)
3408
3439
  },
3409
3440
  BooleanValue: {
3410
3441
  leave: ({ value: e }) => e ? "true" : "false"
@@ -3426,7 +3457,7 @@ const mi = 80, gi = {
3426
3457
  },
3427
3458
  // Directive
3428
3459
  Directive: {
3429
- leave: ({ name: e, arguments: t }) => "@" + e + D("(", w(t, ", "), ")")
3460
+ leave: ({ name: e, arguments: t }) => "@" + e + b("(", w(t, ", "), ")")
3430
3461
  },
3431
3462
  // Type
3432
3463
  NamedType: {
@@ -3440,23 +3471,23 @@ const mi = 80, gi = {
3440
3471
  },
3441
3472
  // Type System Definitions
3442
3473
  SchemaDefinition: {
3443
- leave: ({ description: e, directives: t, operationTypes: n }) => D("", e, `
3474
+ leave: ({ description: e, directives: t, operationTypes: n }) => b("", e, `
3444
3475
  `) + w(["schema", w(t, " "), Y(n)], " ")
3445
3476
  },
3446
3477
  OperationTypeDefinition: {
3447
3478
  leave: ({ operation: e, type: t }) => e + ": " + t
3448
3479
  },
3449
3480
  ScalarTypeDefinition: {
3450
- leave: ({ description: e, name: t, directives: n }) => D("", e, `
3481
+ leave: ({ description: e, name: t, directives: n }) => b("", e, `
3451
3482
  `) + w(["scalar", t, w(n, " ")], " ")
3452
3483
  },
3453
3484
  ObjectTypeDefinition: {
3454
- leave: ({ description: e, name: t, interfaces: n, directives: i, fields: r }) => D("", e, `
3485
+ leave: ({ description: e, name: t, interfaces: n, directives: i, fields: r }) => b("", e, `
3455
3486
  `) + w(
3456
3487
  [
3457
3488
  "type",
3458
3489
  t,
3459
- D("implements ", w(n, " & ")),
3490
+ b("implements ", w(n, " & ")),
3460
3491
  w(i, " "),
3461
3492
  Y(r)
3462
3493
  ],
@@ -3464,26 +3495,26 @@ const mi = 80, gi = {
3464
3495
  )
3465
3496
  },
3466
3497
  FieldDefinition: {
3467
- leave: ({ description: e, name: t, arguments: n, type: i, directives: r }) => D("", e, `
3468
- `) + t + (rt(n) ? D(`(
3498
+ leave: ({ description: e, name: t, arguments: n, type: i, directives: r }) => b("", e, `
3499
+ `) + t + (rt(n) ? b(`(
3469
3500
  `, Te(w(n, `
3470
3501
  `)), `
3471
- )`) : D("(", w(n, ", "), ")")) + ": " + i + D(" ", w(r, " "))
3502
+ )`) : b("(", w(n, ", "), ")")) + ": " + i + b(" ", w(r, " "))
3472
3503
  },
3473
3504
  InputValueDefinition: {
3474
- leave: ({ description: e, name: t, type: n, defaultValue: i, directives: r }) => D("", e, `
3505
+ leave: ({ description: e, name: t, type: n, defaultValue: i, directives: r }) => b("", e, `
3475
3506
  `) + w(
3476
- [t + ": " + n, D("= ", i), w(r, " ")],
3507
+ [t + ": " + n, b("= ", i), w(r, " ")],
3477
3508
  " "
3478
3509
  )
3479
3510
  },
3480
3511
  InterfaceTypeDefinition: {
3481
- leave: ({ description: e, name: t, interfaces: n, directives: i, fields: r }) => D("", e, `
3512
+ leave: ({ description: e, name: t, interfaces: n, directives: i, fields: r }) => b("", e, `
3482
3513
  `) + w(
3483
3514
  [
3484
3515
  "interface",
3485
3516
  t,
3486
- D("implements ", w(n, " & ")),
3517
+ b("implements ", w(n, " & ")),
3487
3518
  w(i, " "),
3488
3519
  Y(r)
3489
3520
  ],
@@ -3491,30 +3522,30 @@ const mi = 80, gi = {
3491
3522
  )
3492
3523
  },
3493
3524
  UnionTypeDefinition: {
3494
- leave: ({ description: e, name: t, directives: n, types: i }) => D("", e, `
3525
+ leave: ({ description: e, name: t, directives: n, types: i }) => b("", e, `
3495
3526
  `) + w(
3496
- ["union", t, w(n, " "), D("= ", w(i, " | "))],
3527
+ ["union", t, w(n, " "), b("= ", w(i, " | "))],
3497
3528
  " "
3498
3529
  )
3499
3530
  },
3500
3531
  EnumTypeDefinition: {
3501
- leave: ({ description: e, name: t, directives: n, values: i }) => D("", e, `
3532
+ leave: ({ description: e, name: t, directives: n, values: i }) => b("", e, `
3502
3533
  `) + w(["enum", t, w(n, " "), Y(i)], " ")
3503
3534
  },
3504
3535
  EnumValueDefinition: {
3505
- leave: ({ description: e, name: t, directives: n }) => D("", e, `
3536
+ leave: ({ description: e, name: t, directives: n }) => b("", e, `
3506
3537
  `) + w([t, w(n, " ")], " ")
3507
3538
  },
3508
3539
  InputObjectTypeDefinition: {
3509
- leave: ({ description: e, name: t, directives: n, fields: i }) => D("", e, `
3540
+ leave: ({ description: e, name: t, directives: n, fields: i }) => b("", e, `
3510
3541
  `) + w(["input", t, w(n, " "), Y(i)], " ")
3511
3542
  },
3512
3543
  DirectiveDefinition: {
3513
- leave: ({ description: e, name: t, arguments: n, repeatable: i, locations: r }) => D("", e, `
3514
- `) + "directive @" + t + (rt(n) ? D(`(
3544
+ leave: ({ description: e, name: t, arguments: n, repeatable: i, locations: r }) => b("", e, `
3545
+ `) + "directive @" + t + (rt(n) ? b(`(
3515
3546
  `, Te(w(n, `
3516
3547
  `)), `
3517
- )`) : D("(", w(n, ", "), ")")) + (i ? " repeatable" : "") + " on " + w(r, " | ")
3548
+ )`) : b("(", w(n, ", "), ")")) + (i ? " repeatable" : "") + " on " + w(r, " | ")
3518
3549
  },
3519
3550
  SchemaExtension: {
3520
3551
  leave: ({ directives: e, operationTypes: t }) => w(
@@ -3530,7 +3561,7 @@ const mi = 80, gi = {
3530
3561
  [
3531
3562
  "extend type",
3532
3563
  e,
3533
- D("implements ", w(t, " & ")),
3564
+ b("implements ", w(t, " & ")),
3534
3565
  w(n, " "),
3535
3566
  Y(i)
3536
3567
  ],
@@ -3542,7 +3573,7 @@ const mi = 80, gi = {
3542
3573
  [
3543
3574
  "extend interface",
3544
3575
  e,
3545
- D("implements ", w(t, " & ")),
3576
+ b("implements ", w(t, " & ")),
3546
3577
  w(n, " "),
3547
3578
  Y(i)
3548
3579
  ],
@@ -3555,7 +3586,7 @@ const mi = 80, gi = {
3555
3586
  "extend union",
3556
3587
  e,
3557
3588
  w(t, " "),
3558
- D("= ", w(n, " | "))
3589
+ b("= ", w(n, " | "))
3559
3590
  ],
3560
3591
  " "
3561
3592
  )
@@ -3572,16 +3603,16 @@ function w(e, t = "") {
3572
3603
  return (n = e == null ? void 0 : e.filter((i) => i).join(t)) !== null && n !== void 0 ? n : "";
3573
3604
  }
3574
3605
  function Y(e) {
3575
- return D(`{
3606
+ return b(`{
3576
3607
  `, Te(w(e, `
3577
3608
  `)), `
3578
3609
  }`);
3579
3610
  }
3580
- function D(e, t, n = "") {
3611
+ function b(e, t, n = "") {
3581
3612
  return t != null && t !== "" ? e + t + n : "";
3582
3613
  }
3583
3614
  function Te(e) {
3584
- return D(" ", e.replace(/\n/g, `
3615
+ return b(" ", e.replace(/\n/g, `
3585
3616
  `));
3586
3617
  }
3587
3618
  function rt(e) {
@@ -3598,14 +3629,14 @@ const st = (e) => {
3598
3629
  if (typeof e == "string") {
3599
3630
  let n;
3600
3631
  try {
3601
- const i = si(e);
3632
+ const i = oi(e);
3602
3633
  n = st(i);
3603
3634
  } catch {
3604
3635
  }
3605
3636
  return { query: e, operationName: n };
3606
3637
  }
3607
3638
  const t = st(e);
3608
- return { query: pi(e), operationName: t };
3639
+ return { query: mi(e), operationName: t };
3609
3640
  };
3610
3641
  class me extends Error {
3611
3642
  constructor(t, n) {
@@ -3620,307 +3651,308 @@ class me extends Error {
3620
3651
  return ((i = (n = t.errors) == null ? void 0 : n[0]) == null ? void 0 : i.message) ?? `GraphQL Error (Code: ${t.status})`;
3621
3652
  }
3622
3653
  }
3623
- var Ei = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3624
3654
  function Ni(e) {
3625
3655
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3626
3656
  }
3627
- var Ye = { exports: {} };
3628
- (function(e, t) {
3629
- var n = typeof self < "u" ? self : Ei, i = function() {
3630
- function s() {
3631
- this.fetch = !1, this.DOMException = n.DOMException;
3632
- }
3633
- return s.prototype = n, new s();
3634
- }();
3635
- (function(s) {
3636
- (function(o) {
3637
- var a = {
3638
- searchParams: "URLSearchParams" in s,
3639
- iterable: "Symbol" in s && "iterator" in Symbol,
3640
- blob: "FileReader" in s && "Blob" in s && function() {
3641
- try {
3642
- return new Blob(), !0;
3643
- } catch {
3644
- return !1;
3645
- }
3646
- }(),
3647
- formData: "FormData" in s,
3648
- arrayBuffer: "ArrayBuffer" in s
3649
- };
3650
- function u(d) {
3651
- return d && DataView.prototype.isPrototypeOf(d);
3652
- }
3653
- if (a.arrayBuffer)
3654
- var c = [
3655
- "[object Int8Array]",
3656
- "[object Uint8Array]",
3657
- "[object Uint8ClampedArray]",
3658
- "[object Int16Array]",
3659
- "[object Uint16Array]",
3660
- "[object Int32Array]",
3661
- "[object Uint32Array]",
3662
- "[object Float32Array]",
3663
- "[object Float64Array]"
3664
- ], l = ArrayBuffer.isView || function(d) {
3665
- return d && c.indexOf(Object.prototype.toString.call(d)) > -1;
3666
- };
3667
- function f(d) {
3668
- if (typeof d != "string" && (d = String(d)), /[^a-z0-9\-#$%&'*+.^_`|~]/i.test(d))
3669
- throw new TypeError("Invalid character in header field name");
3670
- return d.toLowerCase();
3657
+ var pe = { exports: {} }, yi = pe.exports, ot;
3658
+ function vi() {
3659
+ return ot || (ot = 1, function(e, t) {
3660
+ var n = typeof self < "u" ? self : yi, i = function() {
3661
+ function s() {
3662
+ this.fetch = !1, this.DOMException = n.DOMException;
3671
3663
  }
3672
- function h(d) {
3673
- return typeof d != "string" && (d = String(d)), d;
3674
- }
3675
- function E(d) {
3676
- var g = {
3677
- next: function() {
3678
- var v = d.shift();
3679
- return { done: v === void 0, value: v };
3680
- }
3664
+ return s.prototype = n, new s();
3665
+ }();
3666
+ (function(s) {
3667
+ (function(o) {
3668
+ var a = {
3669
+ searchParams: "URLSearchParams" in s,
3670
+ iterable: "Symbol" in s && "iterator" in Symbol,
3671
+ blob: "FileReader" in s && "Blob" in s && function() {
3672
+ try {
3673
+ return new Blob(), !0;
3674
+ } catch {
3675
+ return !1;
3676
+ }
3677
+ }(),
3678
+ formData: "FormData" in s,
3679
+ arrayBuffer: "ArrayBuffer" in s
3681
3680
  };
3682
- return a.iterable && (g[Symbol.iterator] = function() {
3683
- return g;
3684
- }), g;
3685
- }
3686
- function N(d) {
3687
- this.map = {}, d instanceof N ? d.forEach(function(g, v) {
3688
- this.append(v, g);
3689
- }, this) : Array.isArray(d) ? d.forEach(function(g) {
3690
- this.append(g[0], g[1]);
3691
- }, this) : d && Object.getOwnPropertyNames(d).forEach(function(g) {
3692
- this.append(g, d[g]);
3693
- }, this);
3694
- }
3695
- N.prototype.append = function(d, g) {
3696
- d = f(d), g = h(g);
3697
- var v = this.map[d];
3698
- this.map[d] = v ? v + ", " + g : g;
3699
- }, N.prototype.delete = function(d) {
3700
- delete this.map[f(d)];
3701
- }, N.prototype.get = function(d) {
3702
- return d = f(d), this.has(d) ? this.map[d] : null;
3703
- }, N.prototype.has = function(d) {
3704
- return this.map.hasOwnProperty(f(d));
3705
- }, N.prototype.set = function(d, g) {
3706
- this.map[f(d)] = h(g);
3707
- }, N.prototype.forEach = function(d, g) {
3708
- for (var v in this.map)
3709
- this.map.hasOwnProperty(v) && d.call(g, this.map[v], v, this);
3710
- }, N.prototype.keys = function() {
3711
- var d = [];
3712
- return this.forEach(function(g, v) {
3713
- d.push(v);
3714
- }), E(d);
3715
- }, N.prototype.values = function() {
3716
- var d = [];
3717
- return this.forEach(function(g) {
3718
- d.push(g);
3719
- }), E(d);
3720
- }, N.prototype.entries = function() {
3721
- var d = [];
3722
- return this.forEach(function(g, v) {
3723
- d.push([v, g]);
3724
- }), E(d);
3725
- }, a.iterable && (N.prototype[Symbol.iterator] = N.prototype.entries);
3726
- function y(d) {
3727
- if (d.bodyUsed)
3728
- return Promise.reject(new TypeError("Already read"));
3729
- d.bodyUsed = !0;
3730
- }
3731
- function S(d) {
3732
- return new Promise(function(g, v) {
3733
- d.onload = function() {
3734
- g(d.result);
3735
- }, d.onerror = function() {
3736
- v(d.error);
3681
+ function u(d) {
3682
+ return d && DataView.prototype.isPrototypeOf(d);
3683
+ }
3684
+ if (a.arrayBuffer)
3685
+ var c = [
3686
+ "[object Int8Array]",
3687
+ "[object Uint8Array]",
3688
+ "[object Uint8ClampedArray]",
3689
+ "[object Int16Array]",
3690
+ "[object Uint16Array]",
3691
+ "[object Int32Array]",
3692
+ "[object Uint32Array]",
3693
+ "[object Float32Array]",
3694
+ "[object Float64Array]"
3695
+ ], l = ArrayBuffer.isView || function(d) {
3696
+ return d && c.indexOf(Object.prototype.toString.call(d)) > -1;
3737
3697
  };
3738
- });
3739
- }
3740
- function b(d) {
3741
- var g = new FileReader(), v = S(g);
3742
- return g.readAsArrayBuffer(d), v;
3743
- }
3744
- function U(d) {
3745
- var g = new FileReader(), v = S(g);
3746
- return g.readAsText(d), v;
3747
- }
3748
- function _(d) {
3749
- for (var g = new Uint8Array(d), v = new Array(g.length), q = 0; q < g.length; q++)
3750
- v[q] = String.fromCharCode(g[q]);
3751
- return v.join("");
3752
- }
3753
- function x(d) {
3754
- if (d.slice)
3755
- return d.slice(0);
3756
- var g = new Uint8Array(d.byteLength);
3757
- return g.set(new Uint8Array(d)), g.buffer;
3758
- }
3759
- function G() {
3760
- return this.bodyUsed = !1, this._initBody = function(d) {
3761
- this._bodyInit = d, d ? typeof d == "string" ? this._bodyText = d : a.blob && Blob.prototype.isPrototypeOf(d) ? this._bodyBlob = d : a.formData && FormData.prototype.isPrototypeOf(d) ? this._bodyFormData = d : a.searchParams && URLSearchParams.prototype.isPrototypeOf(d) ? this._bodyText = d.toString() : a.arrayBuffer && a.blob && u(d) ? (this._bodyArrayBuffer = x(d.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : a.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(d) || l(d)) ? this._bodyArrayBuffer = x(d) : this._bodyText = d = Object.prototype.toString.call(d) : this._bodyText = "", this.headers.get("content-type") || (typeof d == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : a.searchParams && URLSearchParams.prototype.isPrototypeOf(d) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
3762
- }, a.blob && (this.blob = function() {
3763
- var d = y(this);
3764
- if (d)
3765
- return d;
3766
- if (this._bodyBlob)
3767
- return Promise.resolve(this._bodyBlob);
3768
- if (this._bodyArrayBuffer)
3769
- return Promise.resolve(new Blob([this._bodyArrayBuffer]));
3770
- if (this._bodyFormData)
3771
- throw new Error("could not read FormData body as blob");
3772
- return Promise.resolve(new Blob([this._bodyText]));
3773
- }, this.arrayBuffer = function() {
3774
- return this._bodyArrayBuffer ? y(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(b);
3775
- }), this.text = function() {
3776
- var d = y(this);
3777
- if (d)
3778
- return d;
3779
- if (this._bodyBlob)
3780
- return U(this._bodyBlob);
3781
- if (this._bodyArrayBuffer)
3782
- return Promise.resolve(_(this._bodyArrayBuffer));
3783
- if (this._bodyFormData)
3784
- throw new Error("could not read FormData body as text");
3785
- return Promise.resolve(this._bodyText);
3786
- }, a.formData && (this.formData = function() {
3787
- return this.text().then(ie);
3788
- }), this.json = function() {
3789
- return this.text().then(JSON.parse);
3790
- }, this;
3791
- }
3792
- var j = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
3793
- function Z(d) {
3794
- var g = d.toUpperCase();
3795
- return j.indexOf(g) > -1 ? g : d;
3796
- }
3797
- function H(d, g) {
3798
- g = g || {};
3799
- var v = g.body;
3800
- if (d instanceof H) {
3698
+ function f(d) {
3699
+ if (typeof d != "string" && (d = String(d)), /[^a-z0-9\-#$%&'*+.^_`|~]/i.test(d))
3700
+ throw new TypeError("Invalid character in header field name");
3701
+ return d.toLowerCase();
3702
+ }
3703
+ function h(d) {
3704
+ return typeof d != "string" && (d = String(d)), d;
3705
+ }
3706
+ function E(d) {
3707
+ var g = {
3708
+ next: function() {
3709
+ var v = d.shift();
3710
+ return { done: v === void 0, value: v };
3711
+ }
3712
+ };
3713
+ return a.iterable && (g[Symbol.iterator] = function() {
3714
+ return g;
3715
+ }), g;
3716
+ }
3717
+ function N(d) {
3718
+ this.map = {}, d instanceof N ? d.forEach(function(g, v) {
3719
+ this.append(v, g);
3720
+ }, this) : Array.isArray(d) ? d.forEach(function(g) {
3721
+ this.append(g[0], g[1]);
3722
+ }, this) : d && Object.getOwnPropertyNames(d).forEach(function(g) {
3723
+ this.append(g, d[g]);
3724
+ }, this);
3725
+ }
3726
+ N.prototype.append = function(d, g) {
3727
+ d = f(d), g = h(g);
3728
+ var v = this.map[d];
3729
+ this.map[d] = v ? v + ", " + g : g;
3730
+ }, N.prototype.delete = function(d) {
3731
+ delete this.map[f(d)];
3732
+ }, N.prototype.get = function(d) {
3733
+ return d = f(d), this.has(d) ? this.map[d] : null;
3734
+ }, N.prototype.has = function(d) {
3735
+ return this.map.hasOwnProperty(f(d));
3736
+ }, N.prototype.set = function(d, g) {
3737
+ this.map[f(d)] = h(g);
3738
+ }, N.prototype.forEach = function(d, g) {
3739
+ for (var v in this.map)
3740
+ this.map.hasOwnProperty(v) && d.call(g, this.map[v], v, this);
3741
+ }, N.prototype.keys = function() {
3742
+ var d = [];
3743
+ return this.forEach(function(g, v) {
3744
+ d.push(v);
3745
+ }), E(d);
3746
+ }, N.prototype.values = function() {
3747
+ var d = [];
3748
+ return this.forEach(function(g) {
3749
+ d.push(g);
3750
+ }), E(d);
3751
+ }, N.prototype.entries = function() {
3752
+ var d = [];
3753
+ return this.forEach(function(g, v) {
3754
+ d.push([v, g]);
3755
+ }), E(d);
3756
+ }, a.iterable && (N.prototype[Symbol.iterator] = N.prototype.entries);
3757
+ function y(d) {
3801
3758
  if (d.bodyUsed)
3802
- throw new TypeError("Already read");
3803
- this.url = d.url, this.credentials = d.credentials, g.headers || (this.headers = new N(d.headers)), this.method = d.method, this.mode = d.mode, this.signal = d.signal, !v && d._bodyInit != null && (v = d._bodyInit, d.bodyUsed = !0);
3804
- } else
3805
- this.url = String(d);
3806
- if (this.credentials = g.credentials || this.credentials || "same-origin", (g.headers || !this.headers) && (this.headers = new N(g.headers)), this.method = Z(g.method || this.method || "GET"), this.mode = g.mode || this.mode || null, this.signal = g.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && v)
3807
- throw new TypeError("Body not allowed for GET or HEAD requests");
3808
- this._initBody(v);
3809
- }
3810
- H.prototype.clone = function() {
3811
- return new H(this, { body: this._bodyInit });
3812
- };
3813
- function ie(d) {
3814
- var g = new FormData();
3815
- return d.trim().split("&").forEach(function(v) {
3816
- if (v) {
3817
- var q = v.split("="), M = q.shift().replace(/\+/g, " "), C = q.join("=").replace(/\+/g, " ");
3818
- g.append(decodeURIComponent(M), decodeURIComponent(C));
3819
- }
3820
- }), g;
3821
- }
3822
- function he(d) {
3823
- var g = new N(), v = d.replace(/\r?\n[\t ]+/g, " ");
3824
- return v.split(/\r?\n/).forEach(function(q) {
3825
- var M = q.split(":"), C = M.shift().trim();
3826
- if (C) {
3827
- var Ne = M.join(":").trim();
3828
- g.append(C, Ne);
3829
- }
3830
- }), g;
3831
- }
3832
- G.call(H.prototype);
3833
- function R(d, g) {
3834
- g || (g = {}), this.type = "default", this.status = g.status === void 0 ? 200 : g.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in g ? g.statusText : "OK", this.headers = new N(g.headers), this.url = g.url || "", this._initBody(d);
3835
- }
3836
- G.call(R.prototype), R.prototype.clone = function() {
3837
- return new R(this._bodyInit, {
3838
- status: this.status,
3839
- statusText: this.statusText,
3840
- headers: new N(this.headers),
3841
- url: this.url
3842
- });
3843
- }, R.error = function() {
3844
- var d = new R(null, { status: 0, statusText: "" });
3845
- return d.type = "error", d;
3846
- };
3847
- var se = [301, 302, 303, 307, 308];
3848
- R.redirect = function(d, g) {
3849
- if (se.indexOf(g) === -1)
3850
- throw new RangeError("Invalid status code");
3851
- return new R(null, { status: g, headers: { location: d } });
3852
- }, o.DOMException = s.DOMException;
3853
- try {
3854
- new o.DOMException();
3855
- } catch {
3856
- o.DOMException = function(g, v) {
3857
- this.message = g, this.name = v;
3858
- var q = Error(g);
3859
- this.stack = q.stack;
3860
- }, o.DOMException.prototype = Object.create(Error.prototype), o.DOMException.prototype.constructor = o.DOMException;
3861
- }
3862
- function W(d, g) {
3863
- return new Promise(function(v, q) {
3864
- var M = new H(d, g);
3865
- if (M.signal && M.signal.aborted)
3866
- return q(new o.DOMException("Aborted", "AbortError"));
3867
- var C = new XMLHttpRequest();
3868
- function Ne() {
3869
- C.abort();
3870
- }
3871
- C.onload = function() {
3872
- var de = {
3873
- status: C.status,
3874
- statusText: C.statusText,
3875
- headers: he(C.getAllResponseHeaders() || "")
3759
+ return Promise.reject(new TypeError("Already read"));
3760
+ d.bodyUsed = !0;
3761
+ }
3762
+ function S(d) {
3763
+ return new Promise(function(g, v) {
3764
+ d.onload = function() {
3765
+ g(d.result);
3766
+ }, d.onerror = function() {
3767
+ v(d.error);
3876
3768
  };
3877
- de.url = "responseURL" in C ? C.responseURL : de.headers.get("X-Request-URL");
3878
- var Re = "response" in C ? C.response : C.responseText;
3879
- v(new R(Re, de));
3880
- }, C.onerror = function() {
3881
- q(new TypeError("Network request failed"));
3882
- }, C.ontimeout = function() {
3883
- q(new TypeError("Network request failed"));
3884
- }, C.onabort = function() {
3885
- q(new o.DOMException("Aborted", "AbortError"));
3886
- }, C.open(M.method, M.url, !0), M.credentials === "include" ? C.withCredentials = !0 : M.credentials === "omit" && (C.withCredentials = !1), "responseType" in C && a.blob && (C.responseType = "blob"), M.headers.forEach(function(de, Re) {
3887
- C.setRequestHeader(Re, de);
3888
- }), M.signal && (M.signal.addEventListener("abort", Ne), C.onreadystatechange = function() {
3889
- C.readyState === 4 && M.signal.removeEventListener("abort", Ne);
3890
- }), C.send(typeof M._bodyInit > "u" ? null : M._bodyInit);
3891
- });
3892
- }
3893
- return W.polyfill = !0, s.fetch || (s.fetch = W, s.Headers = N, s.Request = H, s.Response = R), o.Headers = N, o.Request = H, o.Response = R, o.fetch = W, Object.defineProperty(o, "__esModule", { value: !0 }), o;
3894
- })({});
3895
- })(i), i.fetch.ponyfill = !0, delete i.fetch.polyfill;
3896
- var r = i;
3897
- t = r.fetch, t.default = r.fetch, t.fetch = r.fetch, t.Headers = r.Headers, t.Request = r.Request, t.Response = r.Response, e.exports = t;
3898
- })(Ye, Ye.exports);
3899
- var be = Ye.exports;
3900
- const Ae = /* @__PURE__ */ Ni(be), yi = /* @__PURE__ */ St({
3769
+ });
3770
+ }
3771
+ function D(d) {
3772
+ var g = new FileReader(), v = S(g);
3773
+ return g.readAsArrayBuffer(d), v;
3774
+ }
3775
+ function U(d) {
3776
+ var g = new FileReader(), v = S(g);
3777
+ return g.readAsText(d), v;
3778
+ }
3779
+ function _(d) {
3780
+ for (var g = new Uint8Array(d), v = new Array(g.length), q = 0; q < g.length; q++)
3781
+ v[q] = String.fromCharCode(g[q]);
3782
+ return v.join("");
3783
+ }
3784
+ function x(d) {
3785
+ if (d.slice)
3786
+ return d.slice(0);
3787
+ var g = new Uint8Array(d.byteLength);
3788
+ return g.set(new Uint8Array(d)), g.buffer;
3789
+ }
3790
+ function G() {
3791
+ return this.bodyUsed = !1, this._initBody = function(d) {
3792
+ this._bodyInit = d, d ? typeof d == "string" ? this._bodyText = d : a.blob && Blob.prototype.isPrototypeOf(d) ? this._bodyBlob = d : a.formData && FormData.prototype.isPrototypeOf(d) ? this._bodyFormData = d : a.searchParams && URLSearchParams.prototype.isPrototypeOf(d) ? this._bodyText = d.toString() : a.arrayBuffer && a.blob && u(d) ? (this._bodyArrayBuffer = x(d.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : a.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(d) || l(d)) ? this._bodyArrayBuffer = x(d) : this._bodyText = d = Object.prototype.toString.call(d) : this._bodyText = "", this.headers.get("content-type") || (typeof d == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : a.searchParams && URLSearchParams.prototype.isPrototypeOf(d) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
3793
+ }, a.blob && (this.blob = function() {
3794
+ var d = y(this);
3795
+ if (d)
3796
+ return d;
3797
+ if (this._bodyBlob)
3798
+ return Promise.resolve(this._bodyBlob);
3799
+ if (this._bodyArrayBuffer)
3800
+ return Promise.resolve(new Blob([this._bodyArrayBuffer]));
3801
+ if (this._bodyFormData)
3802
+ throw new Error("could not read FormData body as blob");
3803
+ return Promise.resolve(new Blob([this._bodyText]));
3804
+ }, this.arrayBuffer = function() {
3805
+ return this._bodyArrayBuffer ? y(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(D);
3806
+ }), this.text = function() {
3807
+ var d = y(this);
3808
+ if (d)
3809
+ return d;
3810
+ if (this._bodyBlob)
3811
+ return U(this._bodyBlob);
3812
+ if (this._bodyArrayBuffer)
3813
+ return Promise.resolve(_(this._bodyArrayBuffer));
3814
+ if (this._bodyFormData)
3815
+ throw new Error("could not read FormData body as text");
3816
+ return Promise.resolve(this._bodyText);
3817
+ }, a.formData && (this.formData = function() {
3818
+ return this.text().then(ie);
3819
+ }), this.json = function() {
3820
+ return this.text().then(JSON.parse);
3821
+ }, this;
3822
+ }
3823
+ var j = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
3824
+ function Z(d) {
3825
+ var g = d.toUpperCase();
3826
+ return j.indexOf(g) > -1 ? g : d;
3827
+ }
3828
+ function H(d, g) {
3829
+ g = g || {};
3830
+ var v = g.body;
3831
+ if (d instanceof H) {
3832
+ if (d.bodyUsed)
3833
+ throw new TypeError("Already read");
3834
+ this.url = d.url, this.credentials = d.credentials, g.headers || (this.headers = new N(d.headers)), this.method = d.method, this.mode = d.mode, this.signal = d.signal, !v && d._bodyInit != null && (v = d._bodyInit, d.bodyUsed = !0);
3835
+ } else
3836
+ this.url = String(d);
3837
+ if (this.credentials = g.credentials || this.credentials || "same-origin", (g.headers || !this.headers) && (this.headers = new N(g.headers)), this.method = Z(g.method || this.method || "GET"), this.mode = g.mode || this.mode || null, this.signal = g.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && v)
3838
+ throw new TypeError("Body not allowed for GET or HEAD requests");
3839
+ this._initBody(v);
3840
+ }
3841
+ H.prototype.clone = function() {
3842
+ return new H(this, { body: this._bodyInit });
3843
+ };
3844
+ function ie(d) {
3845
+ var g = new FormData();
3846
+ return d.trim().split("&").forEach(function(v) {
3847
+ if (v) {
3848
+ var q = v.split("="), M = q.shift().replace(/\+/g, " "), C = q.join("=").replace(/\+/g, " ");
3849
+ g.append(decodeURIComponent(M), decodeURIComponent(C));
3850
+ }
3851
+ }), g;
3852
+ }
3853
+ function fe(d) {
3854
+ var g = new N(), v = d.replace(/\r?\n[\t ]+/g, " ");
3855
+ return v.split(/\r?\n/).forEach(function(q) {
3856
+ var M = q.split(":"), C = M.shift().trim();
3857
+ if (C) {
3858
+ var Ne = M.join(":").trim();
3859
+ g.append(C, Ne);
3860
+ }
3861
+ }), g;
3862
+ }
3863
+ G.call(H.prototype);
3864
+ function R(d, g) {
3865
+ g || (g = {}), this.type = "default", this.status = g.status === void 0 ? 200 : g.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in g ? g.statusText : "OK", this.headers = new N(g.headers), this.url = g.url || "", this._initBody(d);
3866
+ }
3867
+ G.call(R.prototype), R.prototype.clone = function() {
3868
+ return new R(this._bodyInit, {
3869
+ status: this.status,
3870
+ statusText: this.statusText,
3871
+ headers: new N(this.headers),
3872
+ url: this.url
3873
+ });
3874
+ }, R.error = function() {
3875
+ var d = new R(null, { status: 0, statusText: "" });
3876
+ return d.type = "error", d;
3877
+ };
3878
+ var se = [301, 302, 303, 307, 308];
3879
+ R.redirect = function(d, g) {
3880
+ if (se.indexOf(g) === -1)
3881
+ throw new RangeError("Invalid status code");
3882
+ return new R(null, { status: g, headers: { location: d } });
3883
+ }, o.DOMException = s.DOMException;
3884
+ try {
3885
+ new o.DOMException();
3886
+ } catch {
3887
+ o.DOMException = function(g, v) {
3888
+ this.message = g, this.name = v;
3889
+ var q = Error(g);
3890
+ this.stack = q.stack;
3891
+ }, o.DOMException.prototype = Object.create(Error.prototype), o.DOMException.prototype.constructor = o.DOMException;
3892
+ }
3893
+ function W(d, g) {
3894
+ return new Promise(function(v, q) {
3895
+ var M = new H(d, g);
3896
+ if (M.signal && M.signal.aborted)
3897
+ return q(new o.DOMException("Aborted", "AbortError"));
3898
+ var C = new XMLHttpRequest();
3899
+ function Ne() {
3900
+ C.abort();
3901
+ }
3902
+ C.onload = function() {
3903
+ var he = {
3904
+ status: C.status,
3905
+ statusText: C.statusText,
3906
+ headers: fe(C.getAllResponseHeaders() || "")
3907
+ };
3908
+ he.url = "responseURL" in C ? C.responseURL : he.headers.get("X-Request-URL");
3909
+ var Re = "response" in C ? C.response : C.responseText;
3910
+ v(new R(Re, he));
3911
+ }, C.onerror = function() {
3912
+ q(new TypeError("Network request failed"));
3913
+ }, C.ontimeout = function() {
3914
+ q(new TypeError("Network request failed"));
3915
+ }, C.onabort = function() {
3916
+ q(new o.DOMException("Aborted", "AbortError"));
3917
+ }, C.open(M.method, M.url, !0), M.credentials === "include" ? C.withCredentials = !0 : M.credentials === "omit" && (C.withCredentials = !1), "responseType" in C && a.blob && (C.responseType = "blob"), M.headers.forEach(function(he, Re) {
3918
+ C.setRequestHeader(Re, he);
3919
+ }), M.signal && (M.signal.addEventListener("abort", Ne), C.onreadystatechange = function() {
3920
+ C.readyState === 4 && M.signal.removeEventListener("abort", Ne);
3921
+ }), C.send(typeof M._bodyInit > "u" ? null : M._bodyInit);
3922
+ });
3923
+ }
3924
+ return W.polyfill = !0, s.fetch || (s.fetch = W, s.Headers = N, s.Request = H, s.Response = R), o.Headers = N, o.Request = H, o.Response = R, o.fetch = W, Object.defineProperty(o, "__esModule", { value: !0 }), o;
3925
+ })({});
3926
+ })(i), i.fetch.ponyfill = !0, delete i.fetch.polyfill;
3927
+ var r = i;
3928
+ t = r.fetch, t.default = r.fetch, t.fetch = r.fetch, t.Headers = r.Headers, t.Request = r.Request, t.Response = r.Response, e.exports = t;
3929
+ }(pe, pe.exports)), pe.exports;
3930
+ }
3931
+ var De = vi();
3932
+ const Ae = /* @__PURE__ */ Ni(De), wi = /* @__PURE__ */ xt({
3901
3933
  __proto__: null,
3902
3934
  default: Ae
3903
- }, [be]), oe = (e) => {
3935
+ }, [De]), oe = (e) => {
3904
3936
  let t = {};
3905
- return e && (typeof Headers < "u" && e instanceof Headers || yi && be.Headers && e instanceof be.Headers ? t = On(e) : Array.isArray(e) ? e.forEach(([n, i]) => {
3937
+ return e && (typeof Headers < "u" && e instanceof Headers || wi && De.Headers && e instanceof De.Headers ? t = _n(e) : Array.isArray(e) ? e.forEach(([n, i]) => {
3906
3938
  n && i !== void 0 && (t[n] = i);
3907
3939
  }) : t = e), t;
3908
- }, ot = (e) => e.replace(/([\s,]|#[^\n\r]+)+/g, " ").trim(), vi = (e) => {
3940
+ }, at = (e) => e.replace(/([\s,]|#[^\n\r]+)+/g, " ").trim(), Ti = (e) => {
3909
3941
  if (!Array.isArray(e.query)) {
3910
- const i = e, r = [`query=${encodeURIComponent(ot(i.query))}`];
3942
+ const i = e, r = [`query=${encodeURIComponent(at(i.query))}`];
3911
3943
  return e.variables && r.push(`variables=${encodeURIComponent(i.jsonSerializer.stringify(i.variables))}`), i.operationName && r.push(`operationName=${encodeURIComponent(i.operationName)}`), r.join("&");
3912
3944
  }
3913
3945
  if (typeof e.variables < "u" && !Array.isArray(e.variables))
3914
3946
  throw new Error("Cannot create query with given variable type, array expected");
3915
3947
  const t = e, n = e.query.reduce((i, r, s) => (i.push({
3916
- query: ot(r),
3948
+ query: at(r),
3917
3949
  variables: t.variables ? t.jsonSerializer.stringify(t.variables[s]) : void 0
3918
3950
  }), i), []);
3919
3951
  return `query=${encodeURIComponent(t.jsonSerializer.stringify(n))}`;
3920
- }, wi = (e) => async (t) => {
3952
+ }, Ai = (e) => async (t) => {
3921
3953
  const { url: n, query: i, variables: r, operationName: s, fetch: o, fetchOptions: a, middleware: u } = t, c = { ...t.headers };
3922
3954
  let l = "", f;
3923
- e === "POST" ? (f = Ai(i, r, s, a.jsonSerializer), typeof f == "string" && (c["Content-Type"] = "application/json")) : l = vi({
3955
+ e === "POST" ? (f = Oi(i, r, s, a.jsonSerializer), typeof f == "string" && (c["Content-Type"] = "application/json")) : l = Ti({
3924
3956
  query: i,
3925
3957
  variables: r,
3926
3958
  operationName: s,
@@ -3934,12 +3966,12 @@ const Ae = /* @__PURE__ */ Ni(be), yi = /* @__PURE__ */ St({
3934
3966
  };
3935
3967
  let E = n, N = h;
3936
3968
  if (u) {
3937
- const y = await Promise.resolve(u({ ...h, url: n, operationName: s, variables: r })), { url: S, ...b } = y;
3938
- E = S, N = b;
3969
+ const y = await Promise.resolve(u({ ...h, url: n, operationName: s, variables: r })), { url: S, ...D } = y;
3970
+ E = S, N = D;
3939
3971
  }
3940
3972
  return l && (E = `${E}?${l}`), await o(E, N);
3941
3973
  };
3942
- class Ti {
3974
+ class Ii {
3943
3975
  constructor(t, n = {}) {
3944
3976
  this.url = t, this.requestConfig = n, this.rawRequest = async (...i) => {
3945
3977
  const [r, s, o] = i, a = bn(r, s, o), { headers: u, fetch: c = Ae, method: l = "POST", requestMiddleware: f, responseMiddleware: h, ...E } = this.requestConfig, { url: N } = this;
@@ -3964,7 +3996,7 @@ class Ti {
3964
3996
  };
3965
3997
  }
3966
3998
  async request(t, ...n) {
3967
- const [i, r] = n, s = _n(t, i, r), { headers: o, fetch: a = Ae, method: u = "POST", requestMiddleware: c, responseMiddleware: l, ...f } = this.requestConfig, { url: h } = this;
3999
+ const [i, r] = n, s = Dn(t, i, r), { headers: o, fetch: a = Ae, method: u = "POST", requestMiddleware: c, responseMiddleware: l, ...f } = this.requestConfig, { url: h } = this;
3968
4000
  s.signal !== void 0 && (f.signal = s.signal);
3969
4001
  const { query: E, operationName: N } = Fe(s.document);
3970
4002
  return Pe({
@@ -3986,7 +4018,7 @@ class Ti {
3986
4018
  }
3987
4019
  // prettier-ignore
3988
4020
  batchRequests(t, n) {
3989
- const i = Dn(t, n), { headers: r, ...s } = this.requestConfig;
4021
+ const i = Sn(t, n), { headers: r, ...s } = this.requestConfig;
3990
4022
  i.signal !== void 0 && (s.signal = i.signal);
3991
4023
  const o = i.documents.map(({ document: u }) => Fe(u).query), a = i.documents.map(({ variables: u }) => u);
3992
4024
  return Pe({
@@ -4025,7 +4057,7 @@ class Ti {
4025
4057
  }
4026
4058
  }
4027
4059
  const Pe = async (e) => {
4028
- const { query: t, variables: n, fetchOptions: i } = e, r = wi(In(e.method ?? "post")), s = Array.isArray(e.query), o = await r(e), a = await Ii(o, i.jsonSerializer ?? ze), u = Array.isArray(a) ? !a.some(({ data: l }) => !l) : !!a.data, c = Array.isArray(a) || !a.errors || Array.isArray(a.errors) && !a.errors.length || i.errorPolicy === "all" || i.errorPolicy === "ignore";
4060
+ const { query: t, variables: n, fetchOptions: i } = e, r = Ai(On(e.method ?? "post")), s = Array.isArray(e.query), o = await r(e), a = await _i(o, i.jsonSerializer ?? ze), u = Array.isArray(a) ? !a.some(({ data: l }) => !l) : !!a.data, c = Array.isArray(a) || !a.errors || Array.isArray(a.errors) && !a.errors.length || i.errorPolicy === "all" || i.errorPolicy === "ignore";
4029
4061
  if (o.ok && c && u) {
4030
4062
  const { errors: l, ...f } = (Array.isArray(a), a), h = i.errorPolicy === "ignore" ? f : a;
4031
4063
  return {
@@ -4043,7 +4075,7 @@ const Pe = async (e) => {
4043
4075
  { query: t, variables: n }
4044
4076
  );
4045
4077
  }
4046
- }, Ai = (e, t, n, i) => {
4078
+ }, Oi = (e, t, n, i) => {
4047
4079
  const r = i ?? ze;
4048
4080
  if (!Array.isArray(e))
4049
4081
  return r.stringify({ query: e, variables: t, operationName: n });
@@ -4051,13 +4083,13 @@ const Pe = async (e) => {
4051
4083
  throw new Error("Cannot create request body with given variable type, array expected");
4052
4084
  const s = e.reduce((o, a, u) => (o.push({ query: a, variables: t ? t[u] : void 0 }), o), []);
4053
4085
  return r.stringify(s);
4054
- }, Ii = async (e, t) => {
4086
+ }, _i = async (e, t) => {
4055
4087
  let n;
4056
4088
  return e.headers.forEach((i, r) => {
4057
4089
  r.toLowerCase() === "content-type" && (n = i);
4058
4090
  }), n && (n.toLowerCase().startsWith("application/json") || n.toLowerCase().startsWith("application/graphql+json") || n.toLowerCase().startsWith("application/graphql-response+json")) ? t.parse(await e.text()) : e.text();
4059
- }, Me = (e) => typeof e == "function" ? e() : e, Dt = (e, ...t) => e.reduce((n, i, r) => `${n}${i}${r in t ? String(t[r]) : ""}`, ""), Oi = {
4060
- getMeta: Dt`
4091
+ }, Me = (e) => typeof e == "function" ? e() : e, St = (e, ...t) => e.reduce((n, i, r) => `${n}${i}${r in t ? String(t[r]) : ""}`, ""), Di = {
4092
+ getMeta: St`
4061
4093
  query getDoctype($doctype: String!) {
4062
4094
  getMeta(doctype: $doctype) {
4063
4095
  id
@@ -4068,7 +4100,7 @@ const Pe = async (e) => {
4068
4100
  }
4069
4101
  }
4070
4102
  `
4071
- }, bi = Dt`
4103
+ }, Si = St`
4072
4104
  type Doctype {
4073
4105
  id: ID!
4074
4106
  name: String!
@@ -4114,35 +4146,35 @@ const Pe = async (e) => {
4114
4146
  query: Query
4115
4147
  mutation: Mutation
4116
4148
  }
4117
- `, _i = (e) => JSON.parse(e, (t, n) => {
4149
+ `, bi = (e) => JSON.parse(e, (t, n) => {
4118
4150
  if (typeof n == "string")
4119
4151
  try {
4120
- return JSON.parse(n, (i, r) => typeof r == "string" && !isNaN(Number(r)) ? new le(r) : r);
4152
+ return JSON.parse(n, (i, r) => typeof r == "string" && !isNaN(Number(r)) ? new ue(r) : r);
4121
4153
  } catch {
4122
4154
  return n;
4123
4155
  }
4124
4156
  else if (!isNaN(Number(n)))
4125
- return new le(n);
4157
+ return new ue(n);
4126
4158
  return n;
4127
- }), Di = {
4159
+ }), xi = {
4128
4160
  getMeta: async (e, t) => {
4129
- const n = new Ti(t || "/graphql", {
4161
+ const n = new Ii(t || "/graphql", {
4130
4162
  jsonSerializer: {
4131
4163
  stringify: (r) => JSON.stringify(r),
4132
4164
  // process the request object before sending; leave as default JSON
4133
- parse: _i
4165
+ parse: bi
4134
4166
  // process the response meta object
4135
4167
  }
4136
4168
  }), { getMeta: i } = await n.request({
4137
- document: Oi.getMeta,
4169
+ document: Di.getMeta,
4138
4170
  variables: { doctype: e }
4139
4171
  });
4140
4172
  return i;
4141
4173
  }
4142
4174
  };
4143
4175
  export {
4144
- Di as methods,
4145
- Oi as queries,
4146
- bi as typeDefs
4176
+ xi as methods,
4177
+ Di as queries,
4178
+ Si as typeDefs
4147
4179
  };
4148
4180
  //# sourceMappingURL=graphql-client.js.map