zudoku 0.13.7 → 0.14.0

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.
Files changed (160) hide show
  1. package/cli.js +2 -2
  2. package/dist/app/entry.client.js +2 -2
  3. package/dist/app/entry.client.js.map +1 -1
  4. package/dist/app/entry.server.js +3 -0
  5. package/dist/app/entry.server.js.map +1 -1
  6. package/dist/app/main.d.ts +1 -0
  7. package/dist/app/main.js +6 -21
  8. package/dist/app/main.js.map +1 -1
  9. package/dist/app/standalone.js.map +1 -1
  10. package/dist/cli/common/machine-id/lib.js.map +1 -1
  11. package/dist/cli/common/outdated.js.map +1 -1
  12. package/dist/cli/common/utils/box.js.map +1 -1
  13. package/dist/config/validators/InputSidebarSchema.d.ts +2 -2
  14. package/dist/config/validators/SidebarSchema.d.ts +24 -1
  15. package/dist/config/validators/SidebarSchema.js +76 -39
  16. package/dist/config/validators/SidebarSchema.js.map +1 -1
  17. package/dist/config/validators/validate.d.ts +329 -264
  18. package/dist/config/validators/validate.js +11 -10
  19. package/dist/config/validators/validate.js.map +1 -1
  20. package/dist/index.d.ts +4 -1
  21. package/dist/index.js +1 -1
  22. package/dist/index.js.map +1 -1
  23. package/dist/lib/components/Header.js +5 -1
  24. package/dist/lib/components/Header.js.map +1 -1
  25. package/dist/lib/components/Heading.d.ts +1 -1
  26. package/dist/lib/components/SyntaxHighlight.js +4 -1
  27. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  28. package/dist/lib/components/TopNavigation.js +30 -5
  29. package/dist/lib/components/TopNavigation.js.map +1 -1
  30. package/dist/lib/components/context/ZudokuContext.d.ts +6 -12
  31. package/dist/lib/components/context/ZudokuContext.js +26 -20
  32. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  33. package/dist/lib/components/navigation/Sidebar.js +3 -3
  34. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  35. package/dist/lib/components/navigation/SidebarCategory.js +2 -4
  36. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  37. package/dist/lib/components/navigation/SidebarItem.js +1 -3
  38. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  39. package/dist/lib/components/navigation/utils.js +10 -14
  40. package/dist/lib/components/navigation/utils.js.map +1 -1
  41. package/dist/lib/core/DevPortalContext.d.ts +3 -7
  42. package/dist/lib/core/DevPortalContext.js.map +1 -1
  43. package/dist/lib/core/plugins.d.ts +1 -0
  44. package/dist/lib/core/plugins.js.map +1 -1
  45. package/dist/lib/plugins/markdown/index.d.ts +5 -6
  46. package/dist/lib/plugins/markdown/index.js +31 -3
  47. package/dist/lib/plugins/markdown/index.js.map +1 -1
  48. package/dist/lib/plugins/markdown/resolver.d.ts +38 -0
  49. package/dist/lib/plugins/markdown/resolver.js +75 -0
  50. package/dist/lib/plugins/markdown/resolver.js.map +1 -0
  51. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  52. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  53. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  54. package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
  55. package/dist/lib/plugins/openapi/index.js.map +1 -1
  56. package/dist/lib/ui/Badge.d.ts +1 -1
  57. package/dist/lib/ui/Button.d.ts +1 -1
  58. package/dist/lib/util/MdxComponents.js.map +1 -1
  59. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  60. package/dist/vite/build.js +7 -2
  61. package/dist/vite/build.js.map +1 -1
  62. package/dist/vite/config.js +11 -6
  63. package/dist/vite/config.js.map +1 -1
  64. package/dist/vite/debug.d.ts +1 -0
  65. package/dist/vite/debug.js +10 -0
  66. package/dist/vite/debug.js.map +1 -0
  67. package/dist/vite/plugin-config-reload.js +0 -2
  68. package/dist/vite/plugin-config-reload.js.map +1 -1
  69. package/dist/vite/plugin-docs.js +37 -26
  70. package/dist/vite/plugin-docs.js.map +1 -1
  71. package/dist/vite/plugin-frontmatter.d.ts +2 -1
  72. package/dist/vite/plugin-frontmatter.js +27 -24
  73. package/dist/vite/plugin-frontmatter.js.map +1 -1
  74. package/dist/vite/plugin-sidebar.js +7 -6
  75. package/dist/vite/plugin-sidebar.js.map +1 -1
  76. package/dist/vite/plugin.js +1 -1
  77. package/dist/vite/plugin.js.map +1 -1
  78. package/dist/vite/prerender.d.ts +5 -1
  79. package/dist/vite/prerender.js +6 -5
  80. package/dist/vite/prerender.js.map +1 -1
  81. package/lib/{utils-B2yoT99j.js → AnchorLink-BbB2q-jx.js} +214 -258
  82. package/lib/AnchorLink-BbB2q-jx.js.map +1 -0
  83. package/lib/{AuthenticationPlugin-Bpdes0cJ.js → AuthenticationPlugin-C9BHGXlE.js} +2 -2
  84. package/lib/{AuthenticationPlugin-Bpdes0cJ.js.map → AuthenticationPlugin-C9BHGXlE.js.map} +1 -1
  85. package/lib/{Markdown-1BO9EA_X.js → Markdown-BDcCAWwm.js} +18 -16
  86. package/lib/{Markdown-1BO9EA_X.js.map → Markdown-BDcCAWwm.js.map} +1 -1
  87. package/lib/{MdxPage-BEOcOICU.js → MdxPage-DKMH_t0f.js} +14 -13
  88. package/lib/{MdxPage-BEOcOICU.js.map → MdxPage-DKMH_t0f.js.map} +1 -1
  89. package/lib/{OperationList-Cea2Yt8e.js → OperationList-DnaAtLxP.js} +3 -3
  90. package/lib/OperationList-DnaAtLxP.js.map +1 -0
  91. package/lib/{Route-BHT-onwf.js → Route-DSbLrlig.js} +2 -2
  92. package/lib/{Route-BHT-onwf.js.map → Route-DSbLrlig.js.map} +1 -1
  93. package/lib/{Select-m1aXZGAP.js → Select-Bagt3Bme.js} +3 -3
  94. package/lib/{Select-m1aXZGAP.js.map → Select-Bagt3Bme.js.map} +1 -1
  95. package/lib/{SlotletProvider-CPfsBw39.js → SlotletProvider-4Naek_5M.js} +2 -2
  96. package/lib/{SlotletProvider-CPfsBw39.js.map → SlotletProvider-4Naek_5M.js.map} +1 -1
  97. package/lib/{ZudokuContext-D1D8Anlj.js → ZudokuContext-BKXGJTmu.js} +459 -410
  98. package/lib/ZudokuContext-BKXGJTmu.js.map +1 -0
  99. package/lib/__vite-browser-external-BYRIRx8p.js +9 -0
  100. package/lib/__vite-browser-external-BYRIRx8p.js.map +1 -0
  101. package/lib/assets/worker-Bf8vjASY.js.map +1 -1
  102. package/lib/{hook-JSRuxV1P.js → hook-sn0zMTkE.js} +2 -2
  103. package/lib/{hook-JSRuxV1P.js.map → hook-sn0zMTkE.js.map} +1 -1
  104. package/lib/{index-Cj-F-4ME.js → index-B3F9d8oi.js} +430 -433
  105. package/lib/index-B3F9d8oi.js.map +1 -0
  106. package/lib/{urql-core-KJnLL26g.js → urql-core-CqTI9H6N.js} +289 -261
  107. package/lib/urql-core-CqTI9H6N.js.map +1 -0
  108. package/lib/zudoku.auth-clerk.js +1 -1
  109. package/lib/zudoku.auth-openid.js +2 -2
  110. package/lib/zudoku.components.js +454 -444
  111. package/lib/zudoku.components.js.map +1 -1
  112. package/lib/zudoku.openapi-worker.js +1 -1
  113. package/lib/zudoku.plugin-api-keys.js +6 -6
  114. package/lib/zudoku.plugin-custom-pages.js +1 -1
  115. package/lib/zudoku.plugin-markdown.js +93 -27
  116. package/lib/zudoku.plugin-markdown.js.map +1 -1
  117. package/lib/zudoku.plugin-openapi.js +6 -7
  118. package/lib/zudoku.plugin-openapi.js.map +1 -1
  119. package/package.json +3 -3
  120. package/src/app/entry.client.tsx +4 -2
  121. package/src/app/entry.server.tsx +4 -0
  122. package/src/app/main.css +4 -0
  123. package/src/app/main.tsx +9 -25
  124. package/src/app/standalone.tsx +1 -1
  125. package/src/lib/components/Header.tsx +10 -2
  126. package/src/lib/components/SyntaxHighlight.tsx +5 -1
  127. package/src/lib/components/TopNavigation.tsx +58 -24
  128. package/src/lib/components/context/ZudokuContext.ts +28 -20
  129. package/src/lib/components/navigation/Sidebar.tsx +5 -5
  130. package/src/lib/components/navigation/SidebarCategory.tsx +2 -4
  131. package/src/lib/components/navigation/SidebarItem.tsx +1 -3
  132. package/src/lib/components/navigation/utils.ts +11 -16
  133. package/src/lib/core/DevPortalContext.ts +3 -7
  134. package/src/lib/core/plugins.ts +2 -0
  135. package/src/lib/plugins/markdown/index.tsx +49 -12
  136. package/src/lib/plugins/markdown/resolver.ts +92 -0
  137. package/src/lib/plugins/openapi/Endpoint.tsx +2 -2
  138. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +1 -1
  139. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  140. package/src/lib/plugins/openapi/client/worker.ts +2 -2
  141. package/src/lib/plugins/openapi/index.tsx +1 -1
  142. package/src/lib/util/MdxComponents.tsx +0 -1
  143. package/src/lib/util/useScrollToAnchor.ts +1 -1
  144. package/dist/lib/plugins/markdown/generateRoutes.d.ts +0 -3
  145. package/dist/lib/plugins/markdown/generateRoutes.js +0 -21
  146. package/dist/lib/plugins/markdown/generateRoutes.js.map +0 -1
  147. package/dist/lib/ui/Note.d.ts +0 -8
  148. package/dist/lib/ui/Note.js +0 -23
  149. package/dist/lib/ui/Note.js.map +0 -1
  150. package/lib/OperationList-Cea2Yt8e.js.map +0 -1
  151. package/lib/ZudokuContext-D1D8Anlj.js.map +0 -1
  152. package/lib/index-Cj-F-4ME.js.map +0 -1
  153. package/lib/joinPath-B7kNnUX4.js +0 -8
  154. package/lib/joinPath-B7kNnUX4.js.map +0 -1
  155. package/lib/ui/Note.js +0 -51
  156. package/lib/ui/Note.js.map +0 -1
  157. package/lib/urql-core-KJnLL26g.js.map +0 -1
  158. package/lib/utils-B2yoT99j.js.map +0 -1
  159. package/src/lib/plugins/markdown/generateRoutes.tsx +0 -38
  160. package/src/lib/ui/Note.tsx +0 -58
@@ -25,14 +25,14 @@ var M = {
25
25
  NON_NULL_TYPE: "NonNullType"
26
26
  };
27
27
  class fe extends Error {
28
- constructor(r, t, n, i, a, o, l) {
28
+ constructor(r, t, n, i, a, o, s) {
29
29
  super(r), this.name = "GraphQLError", this.message = r, a && (this.path = a), t && (this.nodes = Array.isArray(t) ? t : [t]), n && (this.source = n), i && (this.positions = i), o && (this.originalError = o);
30
- var f = l;
31
- if (!f && o) {
30
+ var c = s;
31
+ if (!c && o) {
32
32
  var u = o.extensions;
33
- u && typeof u == "object" && (f = u);
33
+ u && typeof u == "object" && (c = u);
34
34
  }
35
- this.extensions = f || {};
35
+ this.extensions = c || {};
36
36
  }
37
37
  toJSON() {
38
38
  return {
@@ -60,12 +60,12 @@ function Qe(e) {
60
60
  for (var r = e.split(`
61
61
  `), t = "", n = 0, i = 0, a = r.length - 1, o = 0; o < r.length; o++)
62
62
  Y.lastIndex = 0, Y.test(r[o]) && (o && (!n || Y.lastIndex < n) && (n = Y.lastIndex), i = i || o, a = o);
63
- for (var l = i; l <= a; l++)
64
- l !== i && (t += `
65
- `), t += r[l].slice(n).replace(/\\"""/g, '"""');
63
+ for (var s = i; s <= a; s++)
64
+ s !== i && (t += `
65
+ `), t += r[s].slice(n).replace(/\\"""/g, '"""');
66
66
  return t;
67
67
  }
68
- function h() {
68
+ function p() {
69
69
  for (var e = 0 | g.charCodeAt(d++); e === 9 || e === 10 || e === 13 || e === 32 || e === 35 || e === 44 || e === 65279; e = 0 | g.charCodeAt(d++))
70
70
  if (e === 35)
71
71
  for (; (e = g.charCodeAt(d++)) !== 10 && e !== 13; )
@@ -78,19 +78,19 @@ var O = /[_A-Za-z]\w*/y, se = new RegExp("(?:(null|true|false)|\\$(" + O.source
78
78
  function K(e) {
79
79
  var r, t;
80
80
  if (se.lastIndex = d, g.charCodeAt(d) === 91) {
81
- d++, h();
81
+ d++, p();
82
82
  for (var n = []; g.charCodeAt(d) !== 93; )
83
83
  n.push(K(e));
84
- return d++, h(), {
84
+ return d++, p(), {
85
85
  kind: "ListValue",
86
86
  values: n
87
87
  };
88
88
  } else if (g.charCodeAt(d) === 123) {
89
- d++, h();
89
+ d++, p();
90
90
  for (var i = []; g.charCodeAt(d) !== 125; ) {
91
- if ((r = _(O)) == null || (h(), g.charCodeAt(d++) !== 58))
91
+ if ((r = _(O)) == null || (p(), g.charCodeAt(d++) !== 58))
92
92
  throw N("ObjectField");
93
- h(), i.push({
93
+ p(), i.push({
94
94
  kind: "ObjectField",
95
95
  name: {
96
96
  kind: "Name",
@@ -99,12 +99,12 @@ function K(e) {
99
99
  value: K(e)
100
100
  });
101
101
  }
102
- return d++, h(), {
102
+ return d++, p(), {
103
103
  kind: "ObjectValue",
104
104
  fields: i
105
105
  };
106
106
  } else if ((t = se.exec(g)) != null) {
107
- if (d = se.lastIndex, h(), (r = t[L.Const]) != null)
107
+ if (d = se.lastIndex, p(), (r = t[L.Const]) != null)
108
108
  return r === "null" ? {
109
109
  kind: "NullValue"
110
110
  } : {
@@ -155,12 +155,12 @@ function K(e) {
155
155
  function Le(e) {
156
156
  if (g.charCodeAt(d) === 40) {
157
157
  var r = [];
158
- d++, h();
158
+ d++, p();
159
159
  var t;
160
160
  do {
161
- if ((t = _(O)) == null || (h(), g.charCodeAt(d++) !== 58))
161
+ if ((t = _(O)) == null || (p(), g.charCodeAt(d++) !== 58))
162
162
  throw N("Argument");
163
- h(), r.push({
163
+ p(), r.push({
164
164
  kind: "Argument",
165
165
  name: {
166
166
  kind: "Name",
@@ -169,7 +169,7 @@ function Le(e) {
169
169
  value: K(e)
170
170
  });
171
171
  } while (g.charCodeAt(d) !== 41);
172
- return d++, h(), r;
172
+ return d++, p(), r;
173
173
  }
174
174
  }
175
175
  function $(e) {
@@ -178,7 +178,7 @@ function $(e) {
178
178
  do {
179
179
  if (d++, (t = _(O)) == null)
180
180
  throw N("Directive");
181
- h(), r.push({
181
+ p(), r.push({
182
182
  kind: "Directive",
183
183
  name: {
184
184
  kind: "Name",
@@ -192,10 +192,10 @@ function $(e) {
192
192
  }
193
193
  function ze() {
194
194
  for (var e, r = 0; g.charCodeAt(d) === 91; )
195
- r++, d++, h();
195
+ r++, d++, p();
196
196
  if ((e = _(O)) == null)
197
197
  throw N("NamedType");
198
- h();
198
+ p();
199
199
  var t = {
200
200
  kind: "NamedType",
201
201
  name: {
@@ -204,13 +204,13 @@ function ze() {
204
204
  }
205
205
  };
206
206
  do
207
- if (g.charCodeAt(d) === 33 && (d++, h(), t = {
207
+ if (g.charCodeAt(d) === 33 && (d++, p(), t = {
208
208
  kind: "NonNullType",
209
209
  type: t
210
210
  }), r) {
211
211
  if (g.charCodeAt(d++) !== 93)
212
212
  throw N("NamedType");
213
- h(), t = {
213
+ p(), t = {
214
214
  kind: "ListType",
215
215
  type: t
216
216
  };
@@ -226,10 +226,10 @@ function X() {
226
226
  do
227
227
  if (le.lastIndex = d, (t = le.exec(g)) != null) {
228
228
  if (d = le.lastIndex, t[ve.Spread] != null) {
229
- h();
229
+ p();
230
230
  var n = _(O);
231
231
  if (n != null && n !== "on")
232
- h(), e.push({
232
+ p(), e.push({
233
233
  kind: "FragmentSpread",
234
234
  name: {
235
235
  kind: "Name",
@@ -238,15 +238,15 @@ function X() {
238
238
  directives: $(!1)
239
239
  });
240
240
  else {
241
- if (h(), n === "on") {
241
+ if (p(), n === "on") {
242
242
  if ((n = _(O)) == null)
243
243
  throw N("NamedType");
244
- h();
244
+ p();
245
245
  }
246
246
  var i = $(!1);
247
247
  if (g.charCodeAt(d++) !== 123)
248
248
  throw N("InlineFragment");
249
- h(), e.push({
249
+ p(), e.push({
250
250
  kind: "InlineFragment",
251
251
  typeCondition: n ? {
252
252
  kind: "NamedType",
@@ -261,15 +261,15 @@ function X() {
261
261
  }
262
262
  } else if ((r = t[ve.Name]) != null) {
263
263
  var a = void 0;
264
- if (h(), g.charCodeAt(d) === 58) {
265
- if (d++, h(), a = r, (r = _(O)) == null)
264
+ if (p(), g.charCodeAt(d) === 58) {
265
+ if (d++, p(), a = r, (r = _(O)) == null)
266
266
  throw N("Field");
267
- h();
267
+ p();
268
268
  }
269
269
  var o = Le(!1);
270
- h();
271
- var l = $(!1), f = void 0;
272
- g.charCodeAt(d) === 123 && (d++, h(), f = X()), e.push({
270
+ p();
271
+ var s = $(!1), c = void 0;
272
+ g.charCodeAt(d) === 123 && (d++, p(), c = X()), e.push({
273
273
  kind: "Field",
274
274
  alias: a ? {
275
275
  kind: "Name",
@@ -280,27 +280,27 @@ function X() {
280
280
  value: r
281
281
  },
282
282
  arguments: o,
283
- directives: l,
284
- selectionSet: f
283
+ directives: s,
284
+ selectionSet: c
285
285
  });
286
286
  }
287
287
  } else
288
288
  throw N("SelectionSet");
289
289
  while (g.charCodeAt(d) !== 125);
290
- return d++, h(), {
290
+ return d++, p(), {
291
291
  kind: "SelectionSet",
292
292
  selections: e
293
293
  };
294
294
  }
295
295
  function Ye() {
296
296
  var e, r;
297
- if ((e = _(O)) == null || (h(), _(O) !== "on") || (h(), (r = _(O)) == null))
297
+ if ((e = _(O)) == null || (p(), _(O) !== "on") || (p(), (r = _(O)) == null))
298
298
  throw N("FragmentDefinition");
299
- h();
299
+ p();
300
300
  var t = $(!1);
301
301
  if (g.charCodeAt(d++) !== 123)
302
302
  throw N("FragmentDefinition");
303
- return h(), {
303
+ return p(), {
304
304
  kind: "FragmentDefinition",
305
305
  name: {
306
306
  kind: "Name",
@@ -320,19 +320,19 @@ function Ye() {
320
320
  var We = /(?:query|mutation|subscription|fragment)/y;
321
321
  function He(e) {
322
322
  var r, t, n;
323
- if (e && (h(), r = _(O), t = function() {
324
- if (h(), g.charCodeAt(d) === 40) {
323
+ if (e && (p(), r = _(O), t = function() {
324
+ if (p(), g.charCodeAt(d) === 40) {
325
325
  var a = [];
326
- d++, h();
326
+ d++, p();
327
327
  var o;
328
328
  do {
329
329
  if (g.charCodeAt(d++) !== 36 || (o = _(O)) == null)
330
330
  throw N("Variable");
331
- if (h(), g.charCodeAt(d++) !== 58)
331
+ if (p(), g.charCodeAt(d++) !== 58)
332
332
  throw N("VariableDefinition");
333
- h();
334
- var l = ze(), f = void 0;
335
- g.charCodeAt(d) === 61 && (d++, h(), f = K(!0)), h(), a.push({
333
+ p();
334
+ var s = ze(), c = void 0;
335
+ g.charCodeAt(d) === 61 && (d++, p(), c = K(!0)), p(), a.push({
336
336
  kind: "VariableDefinition",
337
337
  variable: {
338
338
  kind: "Variable",
@@ -341,15 +341,15 @@ function He(e) {
341
341
  value: o
342
342
  }
343
343
  },
344
- type: l,
345
- defaultValue: f,
344
+ type: s,
345
+ defaultValue: c,
346
346
  directives: $(!0)
347
347
  });
348
348
  } while (g.charCodeAt(d) !== 41);
349
- return d++, h(), a;
349
+ return d++, p(), a;
350
350
  }
351
351
  }(), n = $(!1)), g.charCodeAt(d) === 123)
352
- return d++, h(), {
352
+ return d++, p(), {
353
353
  kind: "OperationDefinition",
354
354
  operation: e || "query",
355
355
  name: r ? {
@@ -362,23 +362,49 @@ function He(e) {
362
362
  };
363
363
  }
364
364
  function Ze(e, r) {
365
- return g = typeof e.body == "string" ? e.body : e, d = 0, function() {
366
- var n, i;
367
- h();
368
- var a = [];
365
+ return d = 0, function(n, i) {
366
+ var a, o;
367
+ p();
368
+ var s = [];
369
369
  do
370
- if ((n = _(We)) === "fragment")
371
- h(), a.push(Ye());
372
- else if ((i = He(n)) != null)
373
- a.push(i);
370
+ if ((a = _(We)) === "fragment")
371
+ p(), s.push(Ye());
372
+ else if ((o = He(a)) != null)
373
+ s.push(o);
374
374
  else
375
375
  throw N("Document");
376
- while (d < g.length);
376
+ while (d < n.length);
377
+ if (!i) {
378
+ var c;
379
+ return {
380
+ kind: "Document",
381
+ definitions: s,
382
+ set loc(u) {
383
+ c = u;
384
+ },
385
+ get loc() {
386
+ return c || (c = {
387
+ start: 0,
388
+ end: n.length,
389
+ startToken: void 0,
390
+ endToken: void 0,
391
+ source: {
392
+ body: n,
393
+ name: "graphql.web",
394
+ locationOffset: {
395
+ line: 1,
396
+ column: 1
397
+ }
398
+ }
399
+ }), c;
400
+ }
401
+ };
402
+ }
377
403
  return {
378
404
  kind: "Document",
379
- definitions: a
405
+ definitions: s
380
406
  };
381
- }();
407
+ }(g = typeof e.body == "string" ? e.body : e, r && r.noLocation);
382
408
  }
383
409
  function S(e, r, t) {
384
410
  for (var n = "", i = 0; i < e.length; i++)
@@ -486,28 +512,28 @@ function W(e) {
486
512
  function ee(e) {
487
513
  return (r) => (t) => {
488
514
  var n = [], i = T, a = !1, o = !1;
489
- r((l) => {
490
- o || (l === 0 ? (o = !0, n.length || t(0)) : l.tag === 0 ? i = l[0] : (a = !1, function(u) {
491
- var p = T;
492
- u((c) => {
493
- if (c === 0) {
515
+ r((s) => {
516
+ o || (s === 0 ? (o = !0, n.length || t(0)) : s.tag === 0 ? i = s[0] : (a = !1, function(u) {
517
+ var h = T;
518
+ u((f) => {
519
+ if (f === 0) {
494
520
  if (n.length) {
495
- var m = n.indexOf(p);
521
+ var m = n.indexOf(h);
496
522
  m > -1 && (n = n.slice()).splice(m, 1), n.length || (o ? t(0) : a || (a = !0, i(0)));
497
523
  }
498
- } else c.tag === 0 ? (n.push(p = c[0]), p(0)) : n.length && (t(c), p(0));
524
+ } else f.tag === 0 ? (n.push(h = f[0]), h(0)) : n.length && (t(f), h(0));
499
525
  });
500
- }(e(l[0])), a || (a = !0, i(0))));
501
- }), t(C((l) => {
502
- if (l === 1) {
526
+ }(e(s[0])), a || (a = !0, i(0))));
527
+ }), t(C((s) => {
528
+ if (s === 1) {
503
529
  o || (o = !0, i(1));
504
- for (var f = 0, u = n, p = n.length; f < p; f++)
505
- u[f](1);
530
+ for (var c = 0, u = n, h = n.length; c < h; c++)
531
+ u[c](1);
506
532
  n.length = 0;
507
533
  } else {
508
534
  !o && !a ? (a = !0, i(0)) : a = !1;
509
- for (var c = 0, m = n, x = n.length; c < x; c++)
510
- m[c](0);
535
+ for (var f = 0, m = n, x = n.length; f < x; f++)
536
+ m[f](0);
511
537
  }
512
538
  }));
513
539
  };
@@ -560,15 +586,15 @@ function Q(e) {
560
586
  return (i) => {
561
587
  r.push(i), r.length === 1 && e((a) => {
562
588
  if (a === 0) {
563
- for (var o = 0, l = r, f = r.length; o < f; o++)
564
- l[o](0);
589
+ for (var o = 0, s = r, c = r.length; o < c; o++)
590
+ s[o](0);
565
591
  r.length = 0;
566
592
  } else if (a.tag === 0)
567
593
  t = a[0];
568
594
  else {
569
595
  n = !1;
570
- for (var u = 0, p = r, c = r.length; u < c; u++)
571
- p[u](a);
596
+ for (var u = 0, h = r, f = r.length; u < f; u++)
597
+ h[u](a);
572
598
  }
573
599
  }), i(C((a) => {
574
600
  if (a === 1) {
@@ -580,15 +606,15 @@ function Q(e) {
580
606
  }
581
607
  function we(e) {
582
608
  return (r) => (t) => {
583
- var n = T, i = T, a = !1, o = !1, l = !1, f = !1;
609
+ var n = T, i = T, a = !1, o = !1, s = !1, c = !1;
584
610
  r((u) => {
585
- f || (u === 0 ? (f = !0, l || t(0)) : u.tag === 0 ? n = u[0] : (l && (i(1), i = T), a ? a = !1 : (a = !0, n(0)), function(c) {
586
- l = !0, c((m) => {
587
- l && (m === 0 ? (l = !1, f ? t(0) : a || (a = !0, n(0))) : m.tag === 0 ? (o = !1, (i = m[0])(0)) : (t(m), o ? o = !1 : i(0)));
611
+ c || (u === 0 ? (c = !0, s || t(0)) : u.tag === 0 ? n = u[0] : (s && (i(1), i = T), a ? a = !1 : (a = !0, n(0)), function(f) {
612
+ s = !0, f((m) => {
613
+ s && (m === 0 ? (s = !1, c ? t(0) : a || (a = !0, n(0))) : m.tag === 0 ? (o = !1, (i = m[0])(0)) : (t(m), o ? o = !1 : i(0)));
588
614
  });
589
615
  }(e(u[0]))));
590
616
  }), t(C((u) => {
591
- u === 1 ? (f || (f = !0, n(1)), l && (l = !1, i(1))) : (!f && !a && (a = !0, n(0)), l && !o && (o = !0, i(0)));
617
+ u === 1 ? (c || (c = !0, n(1)), s && (s = !1, i(1))) : (!c && !a && (a = !0, n(0)), s && !o && (o = !0, i(0)));
592
618
  }));
593
619
  };
594
620
  }
@@ -606,8 +632,8 @@ function Me(e) {
606
632
  return (r) => (t) => {
607
633
  var n = T, i = T, a = !1;
608
634
  r((o) => {
609
- a || (o === 0 ? (a = !0, i(1), t(0)) : o.tag === 0 ? (n = o[0], e((l) => {
610
- l === 0 || (l.tag === 0 ? (i = l[0])(0) : (a = !0, i(1), n(1), t(0)));
635
+ a || (o === 0 ? (a = !0, i(1), t(0)) : o.tag === 0 ? (n = o[0], e((s) => {
636
+ s === 0 || (s.tag === 0 ? (i = s[0])(0) : (a = !0, i(1), n(1), t(0)));
611
637
  })) : t(o));
612
638
  }), t(C((o) => {
613
639
  o === 1 && !a ? (a = !0, n(1), i(1)) : a || n(0);
@@ -628,8 +654,8 @@ function ar(e) {
628
654
  function $e(e) {
629
655
  return (r) => {
630
656
  var t = e[Ne()] && e[Ne()]() || e, n = !1, i = !1, a = !1, o;
631
- r(C(async (l) => {
632
- if (l === 1)
657
+ r(C(async (s) => {
658
+ if (s === 1)
633
659
  n = !0, t.return && t.return();
634
660
  else if (i)
635
661
  a = !0;
@@ -640,11 +666,11 @@ function $e(e) {
640
666
  else
641
667
  try {
642
668
  a = !1, r(z(o.value));
643
- } catch (f) {
669
+ } catch (c) {
644
670
  if (t.throw)
645
- (n = !!(await t.throw(f)).done) && r(0);
671
+ (n = !!(await t.throw(c)).done) && r(0);
646
672
  else
647
- throw f;
673
+ throw c;
648
674
  }
649
675
  i = !1;
650
676
  }
@@ -654,8 +680,8 @@ function $e(e) {
654
680
  function ir(e) {
655
681
  return e[Symbol.asyncIterator] ? $e(e) : (r) => {
656
682
  var t = e[Symbol.iterator](), n = !1, i = !1, a = !1, o;
657
- r(C((l) => {
658
- if (l === 1)
683
+ r(C((s) => {
684
+ if (s === 1)
659
685
  n = !0, t.return && t.return();
660
686
  else if (i)
661
687
  a = !0;
@@ -666,11 +692,11 @@ function ir(e) {
666
692
  else
667
693
  try {
668
694
  a = !1, r(z(o.value));
669
- } catch (f) {
695
+ } catch (c) {
670
696
  if (t.throw)
671
- (n = !!t.throw(f).done) && r(0);
697
+ (n = !!t.throw(c).done) && r(0);
672
698
  else
673
- throw f;
699
+ throw c;
674
700
  }
675
701
  i = !1;
676
702
  }
@@ -752,9 +778,9 @@ class ke extends Error {
752
778
  if (i)
753
779
  return `[Network] ${i.message}`;
754
780
  if (a)
755
- for (var l of a)
781
+ for (var s of a)
756
782
  o && (o += `
757
- `), o += `[GraphQL] ${l.message}`;
783
+ `), o += `[GraphQL] ${s.message}`;
758
784
  return o;
759
785
  })(r.networkError, t);
760
786
  super(n), this.name = "CombinedError", this.message = n, this.graphQLErrors = t, this.networkError = r.networkError, this.response = r.response;
@@ -790,9 +816,9 @@ var H = (e, r) => {
790
816
  }
791
817
  j.add(e);
792
818
  var o = "{";
793
- for (var l of i) {
794
- var f = R(e[l], r);
795
- f && (o.length > 1 && (o += ","), o += R(l, r) + ":" + f);
819
+ for (var s of i) {
820
+ var c = R(e[s], r);
821
+ c && (o.length > 1 && (o += ","), o += R(s, r) + ":" + c);
796
822
  }
797
823
  return j.delete(e), o += "}";
798
824
  }, de = (e, r, t) => {
@@ -836,7 +862,9 @@ var ne = typeof File < "u" ? File : B, ae = typeof Blob < "u" ? Blob : B, cr = /
836
862
  return r;
837
863
  }, Ge = (e) => {
838
864
  var r, t;
839
- return typeof e == "string" ? (r = Ie(e), t = Z.get(r) || Ze(e)) : (r = e.__key || Ie(e), t = Z.get(r) || e), t.loc || xe(t), t.__key = r, Z.set(r, t), t;
865
+ return typeof e == "string" ? (r = Ie(e), t = Z.get(r) || Ze(e, {
866
+ noLocation: !0
867
+ })) : (r = e.__key || Ie(e), t = Z.get(r) || e), t.loc || xe(t), t.__key = r, Z.set(r, t), t;
840
868
  }, ue = (e, r, t) => {
841
869
  var n = r || {}, i = Ge(e), a = te(n, !0), o = i.__key;
842
870
  return a !== "{}" && (o = H(a, o)), {
@@ -853,7 +881,7 @@ var ne = typeof File < "u" ? File : B, ae = typeof Blob < "u" ? Blob : B, cr = /
853
881
  for (var r of e.definitions)
854
882
  if (r.kind === M.OPERATION_DEFINITION)
855
883
  return r.operation;
856
- }, pe = (e, r, t) => {
884
+ }, he = (e, r, t) => {
857
885
  if (!("data" in r || "errors" in r && Array.isArray(r.errors)))
858
886
  throw new Error("No Content");
859
887
  var n = e.kind === "subscription";
@@ -870,51 +898,51 @@ var ne = typeof File < "u" ? File : B, ae = typeof Blob < "u" ? Blob : B, cr = /
870
898
  hasNext: r.hasNext == null ? n : r.hasNext,
871
899
  stale: !1
872
900
  };
873
- }, he = (e, r) => {
901
+ }, pe = (e, r) => {
874
902
  if (typeof e == "object" && e != null && (!e.constructor || e.constructor === Object || Array.isArray(e))) {
875
903
  e = Array.isArray(e) ? [...e] : {
876
904
  ...e
877
905
  };
878
906
  for (var t of Object.keys(r))
879
- e[t] = he(e[t], r[t]);
907
+ e[t] = pe(e[t], r[t]);
880
908
  return e;
881
909
  }
882
910
  return r;
883
- }, pr = (e, r, t, n) => {
911
+ }, hr = (e, r, t, n) => {
884
912
  var i = e.error ? e.error.graphQLErrors : [], a = !!e.extensions || !!(r.payload || r).extensions, o = {
885
913
  ...e.extensions,
886
914
  ...(r.payload || r).extensions
887
- }, l = r.incremental;
888
- "path" in r && (l = [r]);
889
- var f = {
915
+ }, s = r.incremental;
916
+ "path" in r && (s = [r]);
917
+ var c = {
890
918
  data: e.data
891
919
  };
892
- if (l) {
893
- var u = function(c) {
894
- Array.isArray(c.errors) && i.push(...c.errors), c.extensions && (Object.assign(o, c.extensions), a = !0);
895
- var m = "data", x = f, k = [];
896
- if (c.path)
897
- k = c.path;
920
+ if (s) {
921
+ var u = function(f) {
922
+ Array.isArray(f.errors) && i.push(...f.errors), f.extensions && (Object.assign(o, f.extensions), a = !0);
923
+ var m = "data", x = c, k = [];
924
+ if (f.path)
925
+ k = f.path;
898
926
  else if (n) {
899
- var w = n.find((y) => y.id === c.id);
900
- c.subPath ? k = [...w.path, ...c.subPath] : k = w.path;
927
+ var w = n.find((y) => y.id === f.id);
928
+ f.subPath ? k = [...w.path, ...f.subPath] : k = w.path;
901
929
  }
902
930
  for (var E = 0, D = k.length; E < D; m = k[E++])
903
931
  x = x[m] = Array.isArray(x[m]) ? [...x[m]] : {
904
932
  ...x[m]
905
933
  };
906
- if (c.items)
907
- for (var q = +m >= 0 ? m : 0, I = 0, s = c.items.length; I < s; I++)
908
- x[q + I] = he(x[q + I], c.items[I]);
909
- else c.data !== void 0 && (x[m] = he(x[m], c.data));
934
+ if (f.items)
935
+ for (var q = +m >= 0 ? m : 0, I = 0, l = f.items.length; I < l; I++)
936
+ x[q + I] = pe(x[q + I], f.items[I]);
937
+ else f.data !== void 0 && (x[m] = pe(x[m], f.data));
910
938
  };
911
- for (var p of l)
912
- u(p);
939
+ for (var h of s)
940
+ u(h);
913
941
  } else
914
- f.data = (r.payload || r).data || e.data, i = r.errors || r.payload && r.payload.errors || i;
942
+ c.data = (r.payload || r).data || e.data, i = r.errors || r.payload && r.payload.errors || i;
915
943
  return {
916
944
  operation: e.operation,
917
- data: f.data,
945
+ data: c.data,
918
946
  error: i.length ? new ke({
919
947
  graphQLErrors: i,
920
948
  response: t
@@ -923,7 +951,7 @@ var ne = typeof File < "u" ? File : B, ae = typeof Blob < "u" ? Blob : B, cr = /
923
951
  hasNext: r.hasNext != null ? r.hasNext : e.hasNext,
924
952
  stale: !1
925
953
  };
926
- }, hr = (e, r, t) => ({
954
+ }, pr = (e, r, t) => ({
927
955
  operation: e,
928
956
  data: void 0,
929
957
  error: new ke({
@@ -960,14 +988,14 @@ var mr = (e, r) => {
960
988
  return r > -1 ? [e.slice(0, r), new URLSearchParams(e.slice(r + 1))] : [e, new URLSearchParams()];
961
989
  }, kr = (e, r) => {
962
990
  if (r && !(e.kind === "query" && e.context.preferGetMethod)) {
963
- var t = te(r), n = ((l) => {
964
- var f = /* @__PURE__ */ new Map();
965
- return (ne !== B || ae !== B) && (j.clear(), de(f, "variables", l)), f;
991
+ var t = te(r), n = ((s) => {
992
+ var c = /* @__PURE__ */ new Map();
993
+ return (ne !== B || ae !== B) && (j.clear(), de(c, "variables", s)), c;
966
994
  })(r.variables);
967
995
  if (n.size) {
968
996
  var i = new FormData();
969
997
  i.append("operations", t), i.append("map", te({
970
- ...[...n.keys()].map((l) => [l])
998
+ ...[...n.keys()].map((s) => [s])
971
999
  }));
972
1000
  var a = 0;
973
1001
  for (var o of n.values())
@@ -982,12 +1010,12 @@ var mr = (e, r) => {
982
1010
  }, n = (typeof e.context.fetchOptions == "function" ? e.context.fetchOptions() : e.context.fetchOptions) || {};
983
1011
  if (n.headers)
984
1012
  if (((o) => "has" in o && !Object.keys(o).length)(n.headers))
985
- n.headers.forEach((o, l) => {
986
- t[l] = o;
1013
+ n.headers.forEach((o, s) => {
1014
+ t[s] = o;
987
1015
  });
988
1016
  else if (Array.isArray(n.headers))
989
- n.headers.forEach((o, l) => {
990
- Array.isArray(o) ? t[o[0]] ? t[o[0]] = `${t[o[0]]},${o[1]}` : t[o[0]] = o[1] : t[l] = o;
1017
+ n.headers.forEach((o, s) => {
1018
+ Array.isArray(o) ? t[o[0]] ? t[o[0]] = `${t[o[0]]},${o[1]}` : t[o[0]] = o[1] : t[s] = o;
991
1019
  });
992
1020
  else
993
1021
  for (var i in n.headers)
@@ -1024,9 +1052,9 @@ async function* Er(e, r, t) {
1024
1052
  var n = !0, i = null, a;
1025
1053
  try {
1026
1054
  yield await Promise.resolve();
1027
- var o = (a = await (e.context.fetch || fetch)(r, t)).headers.get("Content-Type") || "", l;
1028
- /multipart\/mixed/i.test(o) ? l = async function* (c, m) {
1029
- var x = c.match(br), k = "--" + (x ? x[1] : "-"), w = !0, E;
1055
+ var o = (a = await (e.context.fetch || fetch)(r, t)).headers.get("Content-Type") || "", s;
1056
+ /multipart\/mixed/i.test(o) ? s = async function* (f, m) {
1057
+ var x = f.match(br), k = "--" + (x ? x[1] : "-"), w = !0, E;
1030
1058
  for await (var D of Te(_e(m), `\r
1031
1059
  ` + k)) {
1032
1060
  if (w) {
@@ -1051,9 +1079,9 @@ async function* Er(e, r, t) {
1051
1079
  E && E.hasNext !== !1 && (yield {
1052
1080
  hasNext: !1
1053
1081
  });
1054
- }(o, a) : /text\/event-stream/i.test(o) ? l = async function* (c) {
1082
+ }(o, a) : /text\/event-stream/i.test(o) ? s = async function* (f) {
1055
1083
  var m;
1056
- for await (var x of Te(_e(c), `
1084
+ for await (var x of Te(_e(f), `
1057
1085
 
1058
1086
  `)) {
1059
1087
  var k = x.match(wr);
@@ -1072,25 +1100,25 @@ async function* Er(e, r, t) {
1072
1100
  m && m.hasNext !== !1 && (yield {
1073
1101
  hasNext: !1
1074
1102
  });
1075
- }(a) : /text\//i.test(o) ? l = async function* (c) {
1076
- var m = await c.text();
1103
+ }(a) : /text\//i.test(o) ? s = async function* (f) {
1104
+ var m = await f.text();
1077
1105
  try {
1078
1106
  var x = JSON.parse(m);
1079
1107
  process.env.NODE_ENV !== "production" && console.warn('Found response with content-type "text/plain" but it had a valid "application/json" response.'), yield x;
1080
1108
  } catch {
1081
1109
  throw new Error(m);
1082
1110
  }
1083
- }(a) : l = async function* (c) {
1084
- yield JSON.parse(await c.text());
1111
+ }(a) : s = async function* (f) {
1112
+ yield JSON.parse(await f.text());
1085
1113
  }(a);
1086
- var f;
1087
- for await (var u of l)
1088
- u.pending && !i ? f = u.pending : u.pending && (f = [...f, ...u.pending]), i = i ? pr(i, u, a, f) : pe(e, u, a), n = !1, yield i, n = !0;
1089
- i || (yield i = pe(e, {}, a));
1090
- } catch (p) {
1114
+ var c;
1115
+ for await (var u of s)
1116
+ u.pending && !i ? c = u.pending : u.pending && (c = [...c, ...u.pending]), i = i ? hr(i, u, a, c) : he(e, u, a), n = !1, yield i, n = !0;
1117
+ i || (yield i = he(e, {}, a));
1118
+ } catch (h) {
1091
1119
  if (!n)
1092
- throw p;
1093
- yield hr(e, a && (a.status < 200 || a.status >= 300) && a.statusText ? new Error(a.statusText) : p, a);
1120
+ throw h;
1121
+ yield pr(e, a && (a.status < 200 || a.status >= 300) && a.statusText ? new Error(a.statusText) : h, a);
1094
1122
  }
1095
1123
  }
1096
1124
  function Or(e, r, t) {
@@ -1122,8 +1150,8 @@ var ye = (e, r) => {
1122
1150
  if ("directives" in e && e.directives && e.directives.length) {
1123
1151
  var i = [], a = {};
1124
1152
  for (var o of e.directives) {
1125
- var l = o.name.value;
1126
- l[0] !== "_" ? i.push(o) : l = l.slice(1), a[l] = o;
1153
+ var s = o.name.value;
1154
+ s[0] !== "_" ? i.push(o) : s = s.slice(1), a[s] = o;
1127
1155
  }
1128
1156
  e = {
1129
1157
  ...e,
@@ -1132,14 +1160,14 @@ var ye = (e, r) => {
1132
1160
  };
1133
1161
  }
1134
1162
  if ("selectionSet" in e) {
1135
- var f = [], u = e.kind === M.OPERATION_DEFINITION;
1163
+ var c = [], u = e.kind === M.OPERATION_DEFINITION;
1136
1164
  if (e.selectionSet) {
1137
- for (var p of e.selectionSet.selections || []) {
1138
- u = u || p.kind === M.FIELD && p.name.value === "__typename" && !p.alias;
1139
- var c = me(p);
1140
- f.push(c);
1165
+ for (var h of e.selectionSet.selections || []) {
1166
+ u = u || h.kind === M.FIELD && h.name.value === "__typename" && !h.alias;
1167
+ var f = me(h);
1168
+ c.push(f);
1141
1169
  }
1142
- return u || f.push({
1170
+ return u || c.push({
1143
1171
  kind: M.FIELD,
1144
1172
  name: {
1145
1173
  kind: M.NAME,
@@ -1150,7 +1178,7 @@ var ye = (e, r) => {
1150
1178
  ...e,
1151
1179
  selectionSet: {
1152
1180
  ...e.selectionSet,
1153
- selections: f
1181
+ selections: c
1154
1182
  }
1155
1183
  };
1156
1184
  }
@@ -1193,11 +1221,11 @@ var Fe = (e, r) => U(e.kind, e, {
1193
1221
  }, _r = ({ forward: e, client: r, dispatchDebug: t }) => {
1194
1222
  var n = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = (o) => o.kind === "query" && o.context.requestPolicy !== "network-only" && (o.context.requestPolicy === "cache-only" || n.has(o.key));
1195
1223
  return (o) => {
1196
- var l = W((u) => {
1197
- var p = n.get(u.key);
1224
+ var s = W((u) => {
1225
+ var h = n.get(u.key);
1198
1226
  process.env.NODE_ENV !== "production" && t({
1199
1227
  operation: u,
1200
- ...p ? {
1228
+ ...h ? {
1201
1229
  type: "cacheHit",
1202
1230
  message: "The result was successfully retried from the cache"
1203
1231
  } : {
@@ -1206,79 +1234,79 @@ var Fe = (e, r) => U(e.kind, e, {
1206
1234
  },
1207
1235
  source: "cacheExchange"
1208
1236
  });
1209
- var c = p || pe(u, {
1237
+ var f = h || he(u, {
1210
1238
  data: null
1211
1239
  });
1212
- return c = {
1213
- ...c,
1240
+ return f = {
1241
+ ...f,
1214
1242
  operation: process.env.NODE_ENV !== "production" ? Fe(u, {
1215
- cacheOutcome: p ? "hit" : "miss"
1243
+ cacheOutcome: h ? "hit" : "miss"
1216
1244
  }) : u
1217
- }, u.context.requestPolicy === "cache-and-network" && (c.stale = !0, Pe(r, u)), c;
1218
- })(A((u) => !ce(u) && a(u))(o)), f = ie((u) => {
1219
- var { operation: p } = u;
1220
- if (p) {
1221
- var c = p.context.additionalTypenames || [];
1222
- if (u.operation.kind !== "subscription" && (c = ((y) => [...ye(y, /* @__PURE__ */ new Set())])(u.data).concat(c)), u.operation.kind === "mutation" || u.operation.kind === "subscription") {
1245
+ }, u.context.requestPolicy === "cache-and-network" && (f.stale = !0, Pe(r, u)), f;
1246
+ })(A((u) => !ce(u) && a(u))(o)), c = ie((u) => {
1247
+ var { operation: h } = u;
1248
+ if (h) {
1249
+ var f = h.context.additionalTypenames || [];
1250
+ if (u.operation.kind !== "subscription" && (f = ((y) => [...ye(y, /* @__PURE__ */ new Set())])(u.data).concat(f)), u.operation.kind === "mutation" || u.operation.kind === "subscription") {
1223
1251
  var m = /* @__PURE__ */ new Set();
1224
1252
  process.env.NODE_ENV !== "production" && t({
1225
1253
  type: "cacheInvalidation",
1226
- message: `The following typenames have been invalidated: ${c}`,
1227
- operation: p,
1254
+ message: `The following typenames have been invalidated: ${f}`,
1255
+ operation: h,
1228
1256
  data: {
1229
- typenames: c,
1257
+ typenames: f,
1230
1258
  response: u
1231
1259
  },
1232
1260
  source: "cacheExchange"
1233
1261
  });
1234
- for (var x = 0; x < c.length; x++) {
1235
- var k = c[x], w = i.get(k);
1262
+ for (var x = 0; x < f.length; x++) {
1263
+ var k = f[x], w = i.get(k);
1236
1264
  w || i.set(k, w = /* @__PURE__ */ new Set());
1237
1265
  for (var E of w.values())
1238
1266
  m.add(E);
1239
1267
  w.clear();
1240
1268
  }
1241
1269
  for (var D of m.values())
1242
- n.has(D) && (p = n.get(D).operation, n.delete(D), Pe(r, p));
1243
- } else if (p.kind === "query" && u.data) {
1244
- n.set(p.key, u);
1245
- for (var q = 0; q < c.length; q++) {
1246
- var I = c[q], s = i.get(I);
1247
- s || i.set(I, s = /* @__PURE__ */ new Set()), s.add(p.key);
1270
+ n.has(D) && (h = n.get(D).operation, n.delete(D), Pe(r, h));
1271
+ } else if (h.kind === "query" && u.data) {
1272
+ n.set(h.key, u);
1273
+ for (var q = 0; q < f.length; q++) {
1274
+ var I = f[q], l = i.get(I);
1275
+ l || i.set(I, l = /* @__PURE__ */ new Set()), l.add(h.key);
1248
1276
  }
1249
1277
  }
1250
1278
  }
1251
1279
  })(e(A((u) => u.kind !== "query" || u.context.requestPolicy !== "cache-only")(W((u) => process.env.NODE_ENV !== "production" ? Fe(u, {
1252
1280
  cacheOutcome: "miss"
1253
1281
  }) : u)(J([W(Dr)(A((u) => !ce(u) && !a(u))(o)), A((u) => ce(u))(o)])))));
1254
- return J([l, f]);
1282
+ return J([s, c]);
1255
1283
  };
1256
1284
  }, Pe = (e, r) => e.reexecuteOperation(U(r.kind, r, {
1257
1285
  requestPolicy: "network-only"
1258
1286
  })), Tr = ({ forward: e, dispatchDebug: r }) => (t) => {
1259
1287
  var n = ee((a) => {
1260
- var o = yr(a), l = mr(a, o), f = xr(a, o);
1288
+ var o = yr(a), s = mr(a, o), c = xr(a, o);
1261
1289
  process.env.NODE_ENV !== "production" && r({
1262
1290
  type: "fetchRequest",
1263
1291
  message: "A fetch request is being executed.",
1264
1292
  operation: a,
1265
1293
  data: {
1266
- url: l,
1267
- fetchOptions: f
1294
+ url: s,
1295
+ fetchOptions: c
1268
1296
  },
1269
1297
  source: "fetchExchange"
1270
1298
  });
1271
- var u = Me(A((p) => p.kind === "teardown" && p.key === a.key)(t))(Or(a, l, f));
1272
- return process.env.NODE_ENV !== "production" ? ie((p) => {
1273
- var c = p.data ? void 0 : p.error;
1299
+ var u = Me(A((h) => h.kind === "teardown" && h.key === a.key)(t))(Or(a, s, c));
1300
+ return process.env.NODE_ENV !== "production" ? ie((h) => {
1301
+ var f = h.data ? void 0 : h.error;
1274
1302
  process.env.NODE_ENV !== "production" && r({
1275
- type: c ? "fetchError" : "fetchSuccess",
1276
- message: `A ${c ? "failed" : "successful"} fetch response has been returned.`,
1303
+ type: f ? "fetchError" : "fetchSuccess",
1304
+ message: `A ${f ? "failed" : "successful"} fetch response has been returned.`,
1277
1305
  operation: a,
1278
1306
  data: {
1279
- url: l,
1280
- fetchOptions: f,
1281
- value: c || p
1307
+ url: s,
1308
+ fetchOptions: c,
1309
+ value: f || h
1282
1310
  },
1283
1311
  source: "fetchExchange"
1284
1312
  });
@@ -1289,19 +1317,19 @@ var Fe = (e, r) => U(e.kind, e, {
1289
1317
  var o = !1;
1290
1318
  return a({
1291
1319
  client: r,
1292
- forward(l) {
1320
+ forward(s) {
1293
1321
  if (process.env.NODE_ENV !== "production") {
1294
1322
  if (o)
1295
1323
  throw new Error("forward() must only be called once in each Exchange.");
1296
1324
  o = !0;
1297
1325
  }
1298
- return Q(i(Q(l)));
1326
+ return Q(i(Q(s)));
1299
1327
  },
1300
- dispatchDebug(l) {
1328
+ dispatchDebug(s) {
1301
1329
  process.env.NODE_ENV !== "production" && n({
1302
1330
  timestamp: Date.now(),
1303
1331
  source: a.name,
1304
- ...l
1332
+ ...s
1305
1333
  });
1306
1334
  }
1307
1335
  });
@@ -1325,112 +1353,112 @@ var Fe = (e, r) => U(e.kind, e, {
1325
1353
  })(r)), A((t) => !1)(r)), Cr = function e(r) {
1326
1354
  if (process.env.NODE_ENV !== "production" && !r.url)
1327
1355
  throw new Error("You are creating an urql-client without a url.");
1328
- var t = 0, n = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set(), o = [], l = {
1356
+ var t = 0, n = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set(), o = [], s = {
1329
1357
  url: r.url,
1330
1358
  fetchSubscriptions: r.fetchSubscriptions,
1331
1359
  fetchOptions: r.fetchOptions,
1332
1360
  fetch: r.fetch,
1333
1361
  preferGetMethod: r.preferGetMethod,
1334
1362
  requestPolicy: r.requestPolicy || "cache-first"
1335
- }, f = Ee();
1336
- function u(s) {
1337
- (s.kind === "mutation" || s.kind === "teardown" || !a.has(s.key)) && (s.kind === "teardown" ? a.delete(s.key) : s.kind !== "mutation" && a.add(s.key), f.next(s));
1363
+ }, c = Ee();
1364
+ function u(l) {
1365
+ (l.kind === "mutation" || l.kind === "teardown" || !a.has(l.key)) && (l.kind === "teardown" ? a.delete(l.key) : l.kind !== "mutation" && a.add(l.key), c.next(l));
1338
1366
  }
1339
- var p = !1;
1340
- function c(s) {
1341
- if (s && u(s), !p) {
1342
- for (p = !0; p && (s = o.shift()); )
1343
- u(s);
1344
- p = !1;
1367
+ var h = !1;
1368
+ function f(l) {
1369
+ if (l && u(l), !h) {
1370
+ for (h = !0; h && (l = o.shift()); )
1371
+ u(l);
1372
+ h = !1;
1345
1373
  }
1346
1374
  }
1347
- var m = (s) => {
1348
- var y = Me(A((v) => v.kind === "teardown" && v.key === s.key)(f.source))(A((v) => v.operation.kind === s.kind && v.operation.key === s.key && (!v.operation.context._instance || v.operation.context._instance === s.context._instance))(I));
1349
- return s.kind !== "query" ? y = nr((v) => !!v.hasNext, !0)(y) : y = we((v) => {
1375
+ var m = (l) => {
1376
+ var y = Me(A((v) => v.kind === "teardown" && v.key === l.key)(c.source))(A((v) => v.operation.kind === l.kind && v.operation.key === l.key && (!v.operation.context._instance || v.operation.context._instance === l.context._instance))(I));
1377
+ return l.kind !== "query" ? y = nr((v) => !!v.hasNext, !0)(y) : y = we((v) => {
1350
1378
  var V = G(v);
1351
- return v.stale || v.hasNext ? V : J([V, W(() => (v.stale = !0, v))(Re(1)(A((oe) => oe.key === s.key)(f.source)))]);
1352
- })(y), s.kind !== "mutation" ? y = je(() => {
1353
- a.delete(s.key), n.delete(s.key), i.delete(s.key), p = !1;
1379
+ return v.stale || v.hasNext ? V : J([V, W(() => (v.stale = !0, v))(Re(1)(A((oe) => oe.key === l.key)(c.source)))]);
1380
+ })(y), l.kind !== "mutation" ? y = je(() => {
1381
+ a.delete(l.key), n.delete(l.key), i.delete(l.key), h = !1;
1354
1382
  for (var v = o.length - 1; v >= 0; v--)
1355
- o[v].key === s.key && o.splice(v, 1);
1356
- u(U("teardown", s, s.context));
1383
+ o[v].key === l.key && o.splice(v, 1);
1384
+ u(U("teardown", l, l.context));
1357
1385
  })(ie((v) => {
1358
1386
  if (v.stale) {
1359
1387
  if (!v.hasNext)
1360
- a.delete(s.key);
1388
+ a.delete(l.key);
1361
1389
  else
1362
1390
  for (var V of o)
1363
1391
  if (V.key === v.operation.key) {
1364
1392
  a.delete(V.key);
1365
1393
  break;
1366
1394
  }
1367
- } else v.hasNext || a.delete(s.key);
1368
- n.set(s.key, v);
1395
+ } else v.hasNext || a.delete(l.key);
1396
+ n.set(l.key, v);
1369
1397
  })(y)) : y = be(() => {
1370
- u(s);
1398
+ u(l);
1371
1399
  })(y), Q(y);
1372
1400
  }, x = this instanceof e ? this : Object.create(e.prototype), k = Object.assign(x, {
1373
1401
  suspense: !!r.suspense,
1374
- operations$: f.source,
1375
- reexecuteOperation(s) {
1376
- if (s.kind === "teardown")
1377
- c(s);
1378
- else if (s.kind === "mutation")
1379
- o.push(s), Promise.resolve().then(c);
1380
- else if (i.has(s.key)) {
1402
+ operations$: c.source,
1403
+ reexecuteOperation(l) {
1404
+ if (l.kind === "teardown")
1405
+ f(l);
1406
+ else if (l.kind === "mutation")
1407
+ o.push(l), Promise.resolve().then(f);
1408
+ else if (i.has(l.key)) {
1381
1409
  for (var y = !1, v = 0; v < o.length; v++)
1382
- o[v].key === s.key && (o[v] = s, y = !0);
1383
- y || a.has(s.key) && s.context.requestPolicy !== "network-only" ? (a.delete(s.key), Promise.resolve().then(c)) : (o.push(s), Promise.resolve().then(c));
1410
+ o[v].key === l.key && (o[v] = l, y = !0);
1411
+ y || a.has(l.key) && l.context.requestPolicy !== "network-only" ? (a.delete(l.key), Promise.resolve().then(f)) : (o.push(l), Promise.resolve().then(f));
1384
1412
  }
1385
1413
  },
1386
- createRequestOperation(s, y, v) {
1414
+ createRequestOperation(l, y, v) {
1387
1415
  v || (v = {});
1388
1416
  var V;
1389
- if (process.env.NODE_ENV !== "production" && s !== "teardown" && (V = dr(y.query)) !== s)
1390
- throw new Error(`Expected operation of type "${s}" but found "${V}"`);
1391
- return U(s, y, {
1392
- _instance: s === "mutation" ? t = t + 1 | 0 : void 0,
1393
- ...l,
1417
+ if (process.env.NODE_ENV !== "production" && l !== "teardown" && (V = dr(y.query)) !== l)
1418
+ throw new Error(`Expected operation of type "${l}" but found "${V}"`);
1419
+ return U(l, y, {
1420
+ _instance: l === "mutation" ? t = t + 1 | 0 : void 0,
1421
+ ...s,
1394
1422
  ...v,
1395
- requestPolicy: v.requestPolicy || l.requestPolicy,
1423
+ requestPolicy: v.requestPolicy || s.requestPolicy,
1396
1424
  suspense: v.suspense || v.suspense !== !1 && k.suspense
1397
1425
  });
1398
1426
  },
1399
- executeRequestOperation(s) {
1400
- return s.kind === "mutation" ? Ce(m(s)) : Ce(ar(() => {
1401
- var y = i.get(s.key);
1402
- y || i.set(s.key, y = m(s)), y = be(() => {
1403
- c(s);
1427
+ executeRequestOperation(l) {
1428
+ return l.kind === "mutation" ? Ce(m(l)) : Ce(ar(() => {
1429
+ var y = i.get(l.key);
1430
+ y || i.set(l.key, y = m(l)), y = be(() => {
1431
+ f(l);
1404
1432
  })(y);
1405
- var v = n.get(s.key);
1406
- return s.kind === "query" && v && (v.stale || v.hasNext) ? we(G)(J([y, A((V) => V === n.get(s.key))(G(v))])) : y;
1433
+ var v = n.get(l.key);
1434
+ return l.kind === "query" && v && (v.stale || v.hasNext) ? we(G)(J([y, A((V) => V === n.get(l.key))(G(v))])) : y;
1407
1435
  }));
1408
1436
  },
1409
- executeQuery(s, y) {
1410
- var v = k.createRequestOperation("query", s, y);
1437
+ executeQuery(l, y) {
1438
+ var v = k.createRequestOperation("query", l, y);
1411
1439
  return k.executeRequestOperation(v);
1412
1440
  },
1413
- executeSubscription(s, y) {
1414
- var v = k.createRequestOperation("subscription", s, y);
1441
+ executeSubscription(l, y) {
1442
+ var v = k.createRequestOperation("subscription", l, y);
1415
1443
  return k.executeRequestOperation(v);
1416
1444
  },
1417
- executeMutation(s, y) {
1418
- var v = k.createRequestOperation("mutation", s, y);
1445
+ executeMutation(l, y) {
1446
+ var v = k.createRequestOperation("mutation", l, y);
1419
1447
  return k.executeRequestOperation(v);
1420
1448
  },
1421
- readQuery(s, y, v) {
1449
+ readQuery(l, y, v) {
1422
1450
  var V = null;
1423
1451
  return re((oe) => {
1424
1452
  V = oe;
1425
- })(k.query(s, y, v)).unsubscribe(), V;
1453
+ })(k.query(l, y, v)).unsubscribe(), V;
1426
1454
  },
1427
- query: (s, y, v) => k.executeQuery(ue(s, y), v),
1428
- subscription: (s, y, v) => k.executeSubscription(ue(s, y), v),
1429
- mutation: (s, y, v) => k.executeMutation(ue(s, y), v)
1455
+ query: (l, y, v) => k.executeQuery(ue(l, y), v),
1456
+ subscription: (l, y, v) => k.executeSubscription(ue(l, y), v),
1457
+ mutation: (l, y, v) => k.executeMutation(ue(l, y), v)
1430
1458
  }), w = Ar;
1431
1459
  if (process.env.NODE_ENV !== "production") {
1432
1460
  var { next: E, source: D } = Ee();
1433
- k.subscribeToDebugTarget = (s) => re(s)(D), w = E;
1461
+ k.subscribeToDebugTarget = (l) => re(l)(D), w = E;
1434
1462
  }
1435
1463
  var q = Ir(r.exchanges), I = Q(q({
1436
1464
  client: k,
@@ -1438,7 +1466,7 @@ var Fe = (e, r) => U(e.kind, e, {
1438
1466
  forward: Vr({
1439
1467
  dispatchDebug: w
1440
1468
  })
1441
- })(f.source));
1469
+ })(c.source));
1442
1470
  return sr(I), k;
1443
1471
  };
1444
1472
  export {
@@ -1452,4 +1480,4 @@ export {
1452
1480
  re as s,
1453
1481
  nr as t
1454
1482
  };
1455
- //# sourceMappingURL=urql-core-KJnLL26g.js.map
1483
+ //# sourceMappingURL=urql-core-CqTI9H6N.js.map