zudoku 0.3.0-dev.66 → 0.3.0-dev.68

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 (62) hide show
  1. package/dist/lib/components/context/ViewportAnchorContext.js +2 -1
  2. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  3. package/dist/lib/plugins/markdown/Toc.js +2 -1
  4. package/dist/lib/plugins/markdown/Toc.js.map +1 -1
  5. package/dist/lib/plugins/openapi/ColorizedParam.js +2 -2
  6. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  7. package/dist/lib/plugins/openapi/StaggeredRender.js +3 -2
  8. package/dist/lib/plugins/openapi/StaggeredRender.js.map +1 -1
  9. package/dist/lib/plugins/openapi/playground/PathParams.js +1 -1
  10. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  11. package/dist/lib/plugins/openapi/playground/Playground.js +4 -3
  12. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  13. package/dist/lib/plugins/openapi/playground/QueryParams.js +1 -1
  14. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  15. package/dist/lib/plugins/openapi/playground/createUrl.js +5 -9
  16. package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -1
  17. package/dist/lib/util/requestIdle.d.ts +2 -0
  18. package/dist/lib/util/requestIdle.js +3 -0
  19. package/dist/lib/util/requestIdle.js.map +1 -0
  20. package/dist/lib/util/useScrollToAnchor.js +3 -2
  21. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  22. package/lib/{AnchorLink-C_pYhuZi.js → AnchorLink-61IZfWrS.js} +2 -2
  23. package/lib/{AnchorLink-C_pYhuZi.js.map → AnchorLink-61IZfWrS.js.map} +1 -1
  24. package/lib/{CategoryHeading-D5Q-X6lE.js → CategoryHeading-aW8CL0KA.js} +2 -2
  25. package/lib/{CategoryHeading-D5Q-X6lE.js.map → CategoryHeading-aW8CL0KA.js.map} +1 -1
  26. package/lib/{Combination-Cq0UkOXq.js → Combination-BbWKjDLe.js} +2 -2
  27. package/lib/{Combination-Cq0UkOXq.js.map → Combination-BbWKjDLe.js.map} +1 -1
  28. package/lib/{Input-DdAxw3vC.js → Input-BY0B_0qy.js} +3 -3
  29. package/lib/{Input-DdAxw3vC.js.map → Input-BY0B_0qy.js.map} +1 -1
  30. package/lib/{Markdown-DsCvZnhw.js → Markdown-BO5EsS-C.js} +748 -746
  31. package/lib/Markdown-BO5EsS-C.js.map +1 -0
  32. package/lib/{MdxPage-B_7x36CA.js → MdxPage-DEfyHwSx.js} +28 -28
  33. package/lib/MdxPage-DEfyHwSx.js.map +1 -0
  34. package/lib/{OperationList-Cv0GStt7.js → OperationList-VK1_1rzp.js} +167 -162
  35. package/lib/OperationList-VK1_1rzp.js.map +1 -0
  36. package/lib/{Spinner-DyDcSKPz.js → Spinner-6NfpF1CA.js} +56 -56
  37. package/lib/Spinner-6NfpF1CA.js.map +1 -0
  38. package/lib/{hook-Cz5jddRs.js → hook-gOGk1OUF.js} +4 -4
  39. package/lib/{hook-Cz5jddRs.js.map → hook-gOGk1OUF.js.map} +1 -1
  40. package/lib/{index-NGns0N9q.js → index-7W7DUZbY.js} +4 -4
  41. package/lib/{index-NGns0N9q.js.map → index-7W7DUZbY.js.map} +1 -1
  42. package/lib/zudoku.components.js +351 -351
  43. package/lib/zudoku.components.js.map +1 -1
  44. package/lib/zudoku.plugin-api-keys.js +4 -4
  45. package/lib/zudoku.plugin-custom-page.js +1 -1
  46. package/lib/zudoku.plugin-markdown.js +1 -1
  47. package/lib/zudoku.plugin-openapi.js +2 -2
  48. package/package.json +1 -1
  49. package/src/lib/components/context/ViewportAnchorContext.tsx +2 -1
  50. package/src/lib/plugins/markdown/Toc.tsx +2 -1
  51. package/src/lib/plugins/openapi/ColorizedParam.tsx +2 -2
  52. package/src/lib/plugins/openapi/StaggeredRender.tsx +3 -2
  53. package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -1
  54. package/src/lib/plugins/openapi/playground/Playground.tsx +10 -7
  55. package/src/lib/plugins/openapi/playground/QueryParams.tsx +1 -3
  56. package/src/lib/plugins/openapi/playground/createUrl.ts +11 -14
  57. package/src/lib/util/requestIdle.ts +4 -0
  58. package/src/lib/util/useScrollToAnchor.ts +3 -2
  59. package/lib/Markdown-DsCvZnhw.js.map +0 -1
  60. package/lib/MdxPage-B_7x36CA.js.map +0 -1
  61. package/lib/OperationList-Cv0GStt7.js.map +0 -1
  62. package/lib/Spinner-DyDcSKPz.js.map +0 -1
@@ -1,15 +1,15 @@
1
1
  import { j as u } from "./jsx-runtime-BIr0WBt_.js";
2
- import { C as Tr } from "./CategoryHeading-D5Q-X6lE.js";
3
- import { a as gn, k as _a, o as vn, n as nt, P as pe, d as ve, B as Ge, u as nr, R as Fa, S as bn, h as La, e as Ua, F as Ma, D as Ha, q as Ba, m as Da, p as za } from "./Combination-Cq0UkOXq.js";
4
- import { g as ar, M as Wa, E as Ja } from "./index-NGns0N9q.js";
5
- import { c as Ke, a as k, u as Va, h as qe, H as He, P as Ga, i as Ka, S as Qe, j as Qa, I as Or } from "./Markdown-DsCvZnhw.js";
2
+ import { C as Tr } from "./CategoryHeading-aW8CL0KA.js";
3
+ import { a as gn, k as _a, o as vn, n as nt, P as pe, d as ve, B as Ge, u as nr, R as Fa, S as bn, h as La, e as Ua, F as Ma, D as Ha, q as Ba, m as Da, p as za } from "./Combination-BbWKjDLe.js";
4
+ import { g as ar, M as Wa, E as Ja } from "./index-7W7DUZbY.js";
5
+ import { c as Ke, a as k, u as Va, h as qe, H as He, P as Ga, i as Ka, S as Qe, j as Qa, I as Or } from "./Markdown-BO5EsS-C.js";
6
6
  import * as O from "react";
7
7
  import { useRef as Ya, useEffect as Xa, useState as or, Fragment as at, useTransition as Za, useMemo as eo } from "react";
8
- import { c as xn, R as to, I as ro, P as $t, a as $n, T as jn, C as wn, b as Cr, d as no } from "./Spinner-DyDcSKPz.js";
8
+ import { c as xn, R as to, I as ro, P as $t, a as $n, T as jn, C as wn, b as Cr, d as no } from "./Spinner-6NfpF1CA.js";
9
9
  import { u as Sn } from "./context-_fYfJFgk.js";
10
10
  import { u as ao, a as oo } from "./urql-DMlBWUKL.js";
11
11
  import { a as so, c as ot, g as io } from "./_commonjsHelpers-BVfed4GL.js";
12
- import { g as sr, h as Pr, i as Tn, C as Se, I as On, u as lo, a as co, F as uo, S as fo, b as po, c as ho, d as mo, f as Nr, V as yo } from "./Input-DdAxw3vC.js";
12
+ import { g as sr, h as Pr, i as Tn, C as Se, I as On, u as lo, a as co, F as uo, S as fo, b as po, c as ho, d as mo, f as Nr, V as yo } from "./Input-BY0B_0qy.js";
13
13
  import { A as go } from "./DevPortalProvider-BBhQ8kgI.js";
14
14
  /**
15
15
  * @license lucide-react v0.378.0 - ISC
@@ -278,7 +278,7 @@ const Bn = (t, e) => t.reduce(
278
278
  children: o,
279
279
  onClick: n
280
280
  }) => {
281
- const s = Ya(null), l = t.replace("{", "").replace("}", ""), c = i == null ? void 0 : i.replace("{", "").replace("}", ""), f = Oo(l), p = `hsl(${f} / ${a})`, d = `hsl(${f} / ${r})`;
281
+ const s = Ya(null), l = t.replace(/[{}]/g, ""), c = i == null ? void 0 : i.replace(/[{}]/g, ""), f = Oo(l), p = `hsl(${f} / ${a})`, d = `hsl(${f} / ${r})`;
282
282
  return Xa(() => {
283
283
  if (!c || !s.current) return;
284
284
  const h = () => {
@@ -597,7 +597,7 @@ var Fo = (t, e, r) => {
597
597
  ` ? "\\n" : "\\r"), n.singleQuotes === !1 ? (o = o.replace(/"/g, '\\"'), `"${o}"`) : (o = o.replace(/\\?'/g, "\\'"), `'${o}'`);
598
598
  }(t, e, r);
599
599
  };
600
- const K = /* @__PURE__ */ so(Fo);
600
+ const Q = /* @__PURE__ */ so(Fo);
601
601
  function We(t, e = {}) {
602
602
  const { delimiter: r = '"', escapeChar: a = "\\", escapeNewlines: i = !0 } = e;
603
603
  return [...t.toString()].map((n) => n === "\b" ? `${a}b` : n === " " ? `${a}t` : n === `
@@ -1083,7 +1083,7 @@ var Vo = {
1083
1083
  default:
1084
1084
  i.text && (p.data = i.text);
1085
1085
  }
1086
- const d = K(p, {
1086
+ const d = Q(p, {
1087
1087
  indent: " ",
1088
1088
  inlineCharacterLimit: 80
1089
1089
  }).replace('"[form]"', "form");
@@ -1124,7 +1124,7 @@ var Vo = {
1124
1124
  r.text && (c.body = r.text);
1125
1125
  }
1126
1126
  return c.headers && !Object.keys(c.headers).length && delete c.headers, l(
1127
- `const options = ${K(c, {
1127
+ `const options = ${Q(c, {
1128
1128
  indent: o.indent,
1129
1129
  inlineCharacterLimit: 80,
1130
1130
  // The Fetch API body only accepts string parameters, but stringified JSON can be difficult
@@ -1183,7 +1183,7 @@ var Vo = {
1183
1183
  default:
1184
1184
  a.text && (c.data = a.text);
1185
1185
  }
1186
- const f = K(c, { indent: o.indent }).replace("'[form]'", "form");
1186
+ const f = Q(c, { indent: o.indent }).replace("'[form]'", "form");
1187
1187
  return s(`const settings = ${f};`), n(), s("$.ajax(settings).done(function (response) {"), s("console.log(response);", 1), s("});"), l();
1188
1188
  }
1189
1189
  }, is = {
@@ -1204,7 +1204,7 @@ var Vo = {
1204
1204
  switch (t.mimeType) {
1205
1205
  case "application/json":
1206
1206
  s(
1207
- `const data = JSON.stringify(${K(t.jsonObj, {
1207
+ `const data = JSON.stringify(${Q(t.jsonObj, {
1208
1208
  indent: o.indent
1209
1209
  })});`
1210
1210
  ), n();
@@ -1339,7 +1339,7 @@ var Vo = {
1339
1339
  default:
1340
1340
  n(), a.text && (f.data = a.text);
1341
1341
  }
1342
- const p = K(f, { indent: " ", inlineCharacterLimit: 80 });
1342
+ const p = Q(f, { indent: " ", inlineCharacterLimit: 80 });
1343
1343
  return l(`const options = ${p};`), n(), l("axios"), l(".request(options)", 1), l(".then(function (response) {", 1), l("console.log(response.data);", 2), l("})", 1), l(".catch(function (error) {", 1), l("console.error(error);", 2), l("});", 1), s();
1344
1344
  }
1345
1345
  }, hs = {
@@ -1392,7 +1392,7 @@ var Vo = {
1392
1392
  h.headers || (h.headers = {}), h.headers.cookie = v;
1393
1393
  }
1394
1394
  l(), c(`const url = '${d}';`), h.headers && !Object.keys(h.headers).length && delete h.headers;
1395
- const m = K(h, {
1395
+ const m = Q(h, {
1396
1396
  indent: " ",
1397
1397
  inlineCharacterLimit: 80,
1398
1398
  // The Fetch API body only accepts string parameters, but stringified JSON can be difficult to
@@ -1419,10 +1419,10 @@ var Vo = {
1419
1419
  path: t.path,
1420
1420
  headers: r
1421
1421
  };
1422
- switch (l(`const http = require('${(p = t.protocol) == null ? void 0 : p.replace(":", "")}');`), n(), l(`const options = ${K(f, { indent: o })};`), n(), l("const req = http.request(options, function (res) {"), l("const chunks = [];", 1), n(), l("res.on('data', function (chunk) {", 1), l("chunks.push(chunk);", 2), l("});", 1), n(), l("res.on('end', function () {", 1), l("const body = Buffer.concat(chunks);", 2), l("console.log(body.toString());", 2), l("});", 1), l("});"), n(), a.mimeType) {
1422
+ switch (l(`const http = require('${(p = t.protocol) == null ? void 0 : p.replace(":", "")}');`), n(), l(`const options = ${Q(f, { indent: o })};`), n(), l("const req = http.request(options, function (res) {"), l("const chunks = [];", 1), n(), l("res.on('data', function (chunk) {", 1), l("chunks.push(chunk);", 2), l("});", 1), n(), l("res.on('end', function () {", 1), l("const body = Buffer.concat(chunks);", 2), l("console.log(body.toString());", 2), l("});", 1), l("});"), n(), a.mimeType) {
1423
1423
  case "application/x-www-form-urlencoded":
1424
1424
  a.paramsObj && (c("const qs = require('querystring');"), l(
1425
- `req.write(qs.stringify(${K(a.paramsObj, {
1425
+ `req.write(qs.stringify(${Q(a.paramsObj, {
1426
1426
  indent: " ",
1427
1427
  inlineCharacterLimit: 80
1428
1428
  })}));`
@@ -1430,14 +1430,14 @@ var Vo = {
1430
1430
  break;
1431
1431
  case "application/json":
1432
1432
  a.jsonObj && l(
1433
- `req.write(JSON.stringify(${K(a.jsonObj, {
1433
+ `req.write(JSON.stringify(${Q(a.jsonObj, {
1434
1434
  indent: " ",
1435
1435
  inlineCharacterLimit: 80
1436
1436
  })}));`
1437
1437
  );
1438
1438
  break;
1439
1439
  default:
1440
- a.text && l(`req.write(${K(a.text, { indent: o })});`);
1440
+ a.text && l(`req.write(${Q(a.text, { indent: o })});`);
1441
1441
  }
1442
1442
  return l("req.end();"), s();
1443
1443
  }
@@ -1492,7 +1492,7 @@ var Vo = {
1492
1492
  }
1493
1493
  return o.length && (m.jar = "JAR", c("const jar = request.jar();"), o.forEach(({ name: y, value: v }) => {
1494
1494
  c(`jar.setCookie(request.cookie('${encodeURIComponent(y)}=${encodeURIComponent(v)}'), '${e}');`);
1495
- }), f(), h((y) => y.replace(/'JAR'/, "jar"))), l && d("const fs = require('fs');"), c(`const options = ${K(m, { indent: " ", inlineCharacterLimit: 80 })};`), f(), c("request(options, function (error, response, body) {"), c("if (error) throw new Error(error);", 1), f(), c("console.log(body);", 1), c("});"), p();
1495
+ }), f(), h((y) => y.replace(/'JAR'/, "jar"))), l && d("const fs = require('fs');"), c(`const options = ${Q(m, { indent: " ", inlineCharacterLimit: 80 })};`), f(), c("request(options, function (error, response, body) {"), c("if (error) throw new Error(error);", 1), f(), c("console.log(body);", 1), c("});"), p();
1496
1496
  }
1497
1497
  }, gs = {
1498
1498
  info: {
@@ -1513,12 +1513,12 @@ var Vo = {
1513
1513
  });
1514
1514
  switch (d("const unirest = require('unirest');"), f(), d(`const req = unirest('${t}', '${e}');`), f(), r.length && (d("const CookieJar = unirest.jar();"), r.forEach((m) => {
1515
1515
  d(`CookieJar.add('${encodeURIComponent(m.name)}=${encodeURIComponent(m.value)}', '${e}');`);
1516
- }), d("req.jar(CookieJar);"), f()), Object.keys(a).length && (d(`req.query(${K(a, { indent: s.indent })});`), f()), Object.keys(o).length && (d(`req.headers(${K(o, { indent: s.indent })});`), f()), i.mimeType) {
1516
+ }), d("req.jar(CookieJar);"), f()), Object.keys(a).length && (d(`req.query(${Q(a, { indent: s.indent })});`), f()), Object.keys(o).length && (d(`req.headers(${Q(o, { indent: s.indent })});`), f()), i.mimeType) {
1517
1517
  case "application/x-www-form-urlencoded":
1518
- i.paramsObj && (d(`req.form(${K(i.paramsObj, { indent: s.indent })});`), f());
1518
+ i.paramsObj && (d(`req.form(${Q(i.paramsObj, { indent: s.indent })});`), f());
1519
1519
  break;
1520
1520
  case "application/json":
1521
- i.jsonObj && (d("req.type('json');"), d(`req.send(${K(i.jsonObj, { indent: s.indent })});`), f());
1521
+ i.jsonObj && (d("req.type('json');"), d(`req.send(${Q(i.jsonObj, { indent: s.indent })});`), f());
1522
1522
  break;
1523
1523
  case "multipart/form-data": {
1524
1524
  if (!i.params)
@@ -1527,11 +1527,11 @@ var Vo = {
1527
1527
  i.params.forEach((y) => {
1528
1528
  const v = {};
1529
1529
  y.fileName && !y.value ? (l = !0, v.body = `fs.createReadStream('${y.fileName}')`, c((x) => x.replace(/'fs\.createReadStream\(\\'(.+)\\'\)'/, "fs.createReadStream('$1')"))) : y.value && (v.body = y.value), v.body && (y.contentType && (v["content-type"] = y.contentType), m.push(v));
1530
- }), d(`req.multipart(${K(m, { indent: s.indent })});`), f();
1530
+ }), d(`req.multipart(${Q(m, { indent: s.indent })});`), f();
1531
1531
  break;
1532
1532
  }
1533
1533
  default:
1534
- i.text && (d(`req.send(${K(i.text, { indent: s.indent })});`), f());
1534
+ i.text && (d(`req.send(${Q(i.text, { indent: s.indent })});`), f());
1535
1535
  }
1536
1536
  return l && h("const fs = require('fs');"), d("req.end(function (res) {"), d("if (res.error) throw new Error(res.error);", 1), f(), d("console.log(res.body);", 1), d("});"), p();
1537
1537
  }
@@ -2177,7 +2177,7 @@ var ke = (t, e, r) => {
2177
2177
  clientsById: {
2178
2178
  native: _s
2179
2179
  }
2180
- }, G = (t = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(t) ? t : `'${t.replace(/'/g, "'\\''")}'`, Ls = (t) => t.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), Us = {
2180
+ }, K = (t = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(t) ? t : `'${t.replace(/'/g, "'\\''")}'`, Ls = (t) => t.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), Us = {
2181
2181
  "http1.0": "0",
2182
2182
  "url ": "",
2183
2183
  cookie: "b",
@@ -2208,7 +2208,7 @@ var ke = (t, e, r) => {
2208
2208
  join: s !== !1 ? ` \\
2209
2209
  ${s}` : " "
2210
2210
  }), m = Ms(l);
2211
- let y = G(t);
2211
+ let y = K(t);
2212
2212
  if (d(`curl ${m("request")} ${e}`), f && (y = unescape(y), d(m("globoff"))), d(`${m("url ")}${y}`), r === "HTTP/1.0" && d(m("http1.0")), fe(i, "accept-encoding") && d("--compressed"), o.mimeType === "multipart/form-data") {
2213
2213
  const x = X(a, "content-type");
2214
2214
  if (x) {
@@ -2221,19 +2221,19 @@ ${s}` : " "
2221
2221
  }
2222
2222
  switch (Object.keys(a).sort().forEach((x) => {
2223
2223
  const g = `${x}: ${a[x]}`;
2224
- d(`${m("header")} ${G(g)}`);
2225
- }), i.cookie && d(`${m("cookie")} ${G(i.cookie)}`), o.mimeType) {
2224
+ d(`${m("header")} ${K(g)}`);
2225
+ }), i.cookie && d(`${m("cookie")} ${K(i.cookie)}`), o.mimeType) {
2226
2226
  case "multipart/form-data":
2227
2227
  (v = o.params) == null || v.forEach((g) => {
2228
2228
  let b = "";
2229
- g.fileName ? b = `${g.name}='@${g.fileName}'` : b = G(`${g.name}=${g.value}`), d(`${m("form")} ${b}`);
2229
+ g.fileName ? b = `${g.name}='@${g.fileName}'` : b = K(`${g.name}=${g.value}`), d(`${m("form")} ${b}`);
2230
2230
  });
2231
2231
  break;
2232
2232
  case "application/x-www-form-urlencoded":
2233
2233
  o.params ? o.params.forEach((g) => {
2234
2234
  const b = g.name, S = encodeURIComponent(g.name), j = S !== b, T = j ? S : b, w = c ? "--data-binary" : j ? "--data-urlencode" : m("data");
2235
- d(`${w} ${G(`${T}=${g.value}`)}`);
2236
- }) : d(`${c ? "--data-binary" : m("data")} ${G(o.text)}`);
2235
+ d(`${w} ${K(`${T}=${g.value}`)}`);
2236
+ }) : d(`${c ? "--data-binary" : m("data")} ${K(o.text)}`);
2237
2237
  break;
2238
2238
  default:
2239
2239
  if (!o.text)
@@ -2257,7 +2257,7 @@ ${JSON.stringify(g, null, p)}
2257
2257
  );
2258
2258
  } catch {
2259
2259
  }
2260
- x || d(`${c ? "--data-binary" : m("data")} ${G(o.text)}`);
2260
+ x || d(`${c ? "--data-binary" : m("data")} ${K(o.text)}`);
2261
2261
  }
2262
2262
  return h();
2263
2263
  }
@@ -2296,16 +2296,16 @@ ${s.indent}` : " "
2296
2296
  s.headers && d.push(s.short ? "-h" : "--headers"), s.body && d.push(s.short ? "-b" : "--body"), s.verbose && d.push(s.short ? "-v" : "--verbose"), s.print && d.push(`${s.short ? "-p" : "--print"}=${s.print}`), s.verify && d.push(`--verify=${s.verify}`), s.cert && d.push(`--cert=${s.cert}`), s.pretty && d.push(`--pretty=${s.pretty}`), s.style && d.push(`--style=${s.style}`), s.timeout && d.push(`--timeout=${s.timeout}`), s.queryParams && Object.keys(r).forEach((m) => {
2297
2297
  const y = r[m];
2298
2298
  Array.isArray(y) ? y.forEach((v) => {
2299
- l(`${m}==${G(v)}`);
2300
- }) : l(`${m}==${G(y)}`);
2299
+ l(`${m}==${K(v)}`);
2300
+ }) : l(`${m}==${K(y)}`);
2301
2301
  }), Object.keys(t).sort().forEach((m) => {
2302
- l(`${m}:${G(t[m])}`);
2302
+ l(`${m}:${K(t[m])}`);
2303
2303
  }), e.mimeType === "application/x-www-form-urlencoded" ? e.params && e.params.length && (d.push(s.short ? "-f" : "--form"), e.params.forEach((m) => {
2304
- l(`${m.name}=${G(m.value)}`);
2304
+ l(`${m.name}=${K(m.value)}`);
2305
2305
  })) : p = !0;
2306
2306
  const h = d.length ? `${d.join(" ")} ` : "";
2307
- if (o = G(s.queryParams ? o : a), f(`http ${h}${i} ${o}`), p && e.text) {
2308
- const m = G(e.text);
2307
+ if (o = K(s.queryParams ? o : a), f(`http ${h}${i} ${o}`), p && e.text) {
2308
+ const m = K(e.text);
2309
2309
  f(`echo ${m} | `);
2310
2310
  }
2311
2311
  return c();
@@ -2329,10 +2329,10 @@ ${s.indent}` : " "
2329
2329
  join: o.indent !== !1 ? ` \\
2330
2330
  ${o.indent}` : " "
2331
2331
  });
2332
- return o.verbose ? n(`wget ${o.short ? "-v" : "--verbose"}`) : n(`wget ${o.short ? "-q" : "--quiet"}`), n(`--method ${G(t)}`), Object.keys(r).forEach((l) => {
2332
+ return o.verbose ? n(`wget ${o.short ? "-v" : "--verbose"}`) : n(`wget ${o.short ? "-q" : "--quiet"}`), n(`--method ${K(t)}`), Object.keys(r).forEach((l) => {
2333
2333
  const c = `${l}: ${r[l]}`;
2334
- n(`--header ${G(c)}`);
2335
- }), e.text && n(`--body-data ${Ls(G(e.text))}`), n(o.short ? "-O" : "--output-document"), n(`- ${G(a)}`), s();
2334
+ n(`--header ${K(c)}`);
2335
+ }), e.text && n(`--body-data ${Ls(K(e.text))}`), n(o.short ? "-O" : "--output-document"), n(`- ${K(a)}`), s();
2336
2336
  }
2337
2337
  }, zs = {
2338
2338
  info: {
@@ -2482,15 +2482,15 @@ mt.exports;
2482
2482
  function _($, C) {
2483
2483
  var R = $.split("@"), F = "";
2484
2484
  R.length > 1 && (F = R[0] + "@", $ = R[1]), $ = $.replace(g, ".");
2485
- var L = $.split("."), ee = A(L, C).join(".");
2485
+ var U = $.split("."), ee = A(U, C).join(".");
2486
2486
  return F + ee;
2487
2487
  }
2488
- function D($) {
2489
- for (var C = [], R = 0, F = $.length, L, ee; R < F; )
2490
- L = $.charCodeAt(R++), L >= 55296 && L <= 56319 && R < F ? (ee = $.charCodeAt(R++), (ee & 64512) == 56320 ? C.push(((L & 1023) << 10) + (ee & 1023) + 65536) : (C.push(L), R--)) : C.push(L);
2488
+ function z($) {
2489
+ for (var C = [], R = 0, F = $.length, U, ee; R < F; )
2490
+ U = $.charCodeAt(R++), U >= 55296 && U <= 56319 && R < F ? (ee = $.charCodeAt(R++), (ee & 64512) == 56320 ? C.push(((U & 1023) << 10) + (ee & 1023) + 65536) : (C.push(U), R--)) : C.push(U);
2491
2491
  return C;
2492
2492
  }
2493
- function Q($) {
2493
+ function V($) {
2494
2494
  return A($, function(C) {
2495
2495
  var R = "";
2496
2496
  return C > 65535 && (C -= 65536, R += T(C >>> 10 & 1023 | 55296), C = 56320 | C & 1023), R += T(C), R;
@@ -2499,40 +2499,40 @@ mt.exports;
2499
2499
  function I($) {
2500
2500
  return $ - 48 < 10 ? $ - 22 : $ - 65 < 26 ? $ - 65 : $ - 97 < 26 ? $ - 97 : l;
2501
2501
  }
2502
- function M($, C) {
2502
+ function L($, C) {
2503
2503
  return $ + 22 + 75 * ($ < 26) - ((C != 0) << 5);
2504
2504
  }
2505
- function z($, C, R) {
2505
+ function H($, C, R) {
2506
2506
  var F = 0;
2507
2507
  for ($ = R ? j($ / d) : $ >> 1, $ += j($ / C); $ > S * f >> 1; F += l)
2508
2508
  $ = j($ / S);
2509
2509
  return j(F + (S + 1) * $ / ($ + p));
2510
2510
  }
2511
- function H($) {
2512
- var C = [], R = $.length, F, L = 0, ee = m, V = h, te, ne, ie, de, Y, re, ae, me, xe;
2511
+ function B($) {
2512
+ var C = [], R = $.length, F, U = 0, ee = m, G = h, te, ne, ie, de, Y, re, ae, me, xe;
2513
2513
  for (te = $.lastIndexOf(y), te < 0 && (te = 0), ne = 0; ne < te; ++ne)
2514
2514
  $.charCodeAt(ne) >= 128 && E("not-basic"), C.push($.charCodeAt(ne));
2515
2515
  for (ie = te > 0 ? te + 1 : 0; ie < R; ) {
2516
- for (de = L, Y = 1, re = l; ie >= R && E("invalid-input"), ae = I($.charCodeAt(ie++)), (ae >= l || ae > j((s - L) / Y)) && E("overflow"), L += ae * Y, me = re <= V ? c : re >= V + f ? f : re - V, !(ae < me); re += l)
2516
+ for (de = U, Y = 1, re = l; ie >= R && E("invalid-input"), ae = I($.charCodeAt(ie++)), (ae >= l || ae > j((s - U) / Y)) && E("overflow"), U += ae * Y, me = re <= G ? c : re >= G + f ? f : re - G, !(ae < me); re += l)
2517
2517
  xe = l - me, Y > j(s / xe) && E("overflow"), Y *= xe;
2518
- F = C.length + 1, V = z(L - de, F, de == 0), j(L / F) > s - ee && E("overflow"), ee += j(L / F), L %= F, C.splice(L++, 0, ee);
2518
+ F = C.length + 1, G = H(U - de, F, de == 0), j(U / F) > s - ee && E("overflow"), ee += j(U / F), U %= F, C.splice(U++, 0, ee);
2519
2519
  }
2520
- return Q(C);
2520
+ return V(C);
2521
2521
  }
2522
2522
  function he($) {
2523
- var C, R, F, L, ee, V, te, ne, ie, de, Y, re = [], ae, me, xe, Tt;
2524
- for ($ = D($), ae = $.length, C = m, R = 0, ee = h, V = 0; V < ae; ++V)
2525
- Y = $[V], Y < 128 && re.push(T(Y));
2526
- for (F = L = re.length, L && re.push(y); F < ae; ) {
2527
- for (te = s, V = 0; V < ae; ++V)
2528
- Y = $[V], Y >= C && Y < te && (te = Y);
2529
- for (me = F + 1, te - C > j((s - R) / me) && E("overflow"), R += (te - C) * me, C = te, V = 0; V < ae; ++V)
2530
- if (Y = $[V], Y < C && ++R > s && E("overflow"), Y == C) {
2523
+ var C, R, F, U, ee, G, te, ne, ie, de, Y, re = [], ae, me, xe, Tt;
2524
+ for ($ = z($), ae = $.length, C = m, R = 0, ee = h, G = 0; G < ae; ++G)
2525
+ Y = $[G], Y < 128 && re.push(T(Y));
2526
+ for (F = U = re.length, U && re.push(y); F < ae; ) {
2527
+ for (te = s, G = 0; G < ae; ++G)
2528
+ Y = $[G], Y >= C && Y < te && (te = Y);
2529
+ for (me = F + 1, te - C > j((s - R) / me) && E("overflow"), R += (te - C) * me, C = te, G = 0; G < ae; ++G)
2530
+ if (Y = $[G], Y < C && ++R > s && E("overflow"), Y == C) {
2531
2531
  for (ne = R, ie = l; de = ie <= ee ? c : ie >= ee + f ? f : ie - ee, !(ne < de); ie += l)
2532
2532
  Tt = ne - de, xe = l - de, re.push(
2533
- T(M(de + Tt % xe, 0))
2533
+ T(L(de + Tt % xe, 0))
2534
2534
  ), ne = j(Tt / xe);
2535
- re.push(T(M(ne, 0))), ee = z(R, me, F == L), R = 0, ++F;
2535
+ re.push(T(L(ne, 0))), ee = H(R, me, F == U), R = 0, ++F;
2536
2536
  }
2537
2537
  ++R, ++C;
2538
2538
  }
@@ -2540,7 +2540,7 @@ mt.exports;
2540
2540
  }
2541
2541
  function St($) {
2542
2542
  return _($, function(C) {
2543
- return v.test(C) ? H(C.slice(4).toLowerCase()) : C;
2543
+ return v.test(C) ? B(C.slice(4).toLowerCase()) : C;
2544
2544
  });
2545
2545
  }
2546
2546
  function Ze($) {
@@ -2563,10 +2563,10 @@ mt.exports;
2563
2563
  * @type Object
2564
2564
  */
2565
2565
  ucs2: {
2566
- decode: D,
2567
- encode: Q
2566
+ decode: z,
2567
+ encode: V
2568
2568
  },
2569
- decode: H,
2569
+ decode: B,
2570
2570
  encode: he,
2571
2571
  toASCII: Ze,
2572
2572
  toUnicode: St
@@ -3035,12 +3035,12 @@ var Gt = Vi, ln = Gt.custom, cn = ra(ln) ? ln : null, nl = function t(e, r, a, i
3035
3035
  i = [];
3036
3036
  else if (na(i, e) >= 0)
3037
3037
  return "[Circular]";
3038
- function d(I, M, z) {
3039
- if (M && (i = rl.call(i), i.push(M)), z) {
3040
- var H = {
3038
+ function d(I, L, H) {
3039
+ if (L && (i = rl.call(i), i.push(L)), H) {
3040
+ var B = {
3041
3041
  depth: o.depth
3042
3042
  };
3043
- return ye(o, "quoteStyle") && (H.quoteStyle = o.quoteStyle), t(I, H, a + 1, i);
3043
+ return ye(o, "quoteStyle") && (B.quoteStyle = o.quoteStyle), t(I, B, a + 1, i);
3044
3044
  }
3045
3045
  return t(I, o, a + 1, i);
3046
3046
  }
@@ -3075,8 +3075,8 @@ var Gt = Vi, ln = Gt.custom, cn = ra(ln) ? ln : null, nl = function t(e, r, a, i
3075
3075
  }
3076
3076
  if (pl(e)) {
3077
3077
  var j = [];
3078
- return Zr && Zr.call(e, function(I, M) {
3079
- j.push(d(M, e, !0) + " => " + d(I, e));
3078
+ return Zr && Zr.call(e, function(I, L) {
3079
+ j.push(d(L, e, !0) + " => " + d(I, e));
3080
3080
  }), fn("Map", vt.call(e), j, p);
3081
3081
  }
3082
3082
  if (yl(e)) {
@@ -3104,8 +3104,8 @@ var Gt = Vi, ln = Gt.custom, cn = ra(ln) ? ln : null, nl = function t(e, r, a, i
3104
3104
  if (e === ot)
3105
3105
  return "{ [object globalThis] }";
3106
3106
  if (!ol(e) && !un(e)) {
3107
- var w = et(e, d), E = on ? on(e) === Object.prototype : e instanceof Object || e.constructor === Object, A = e instanceof Object ? "" : "null prototype", _ = !E && Z && Object(e) === e && Z in e ? hr.call(be(e), 8, -1) : A ? "Object" : "", D = E || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", Q = D + (_ || A ? "[" + ue.call(nn.call([], _ || [], A || []), ": ") + "] " : "");
3108
- return w.length === 0 ? Q + "{}" : p ? Q + "{" + Qt(w, p) + "}" : Q + "{ " + ue.call(w, ", ") + " }";
3107
+ var w = et(e, d), E = on ? on(e) === Object.prototype : e instanceof Object || e.constructor === Object, A = e instanceof Object ? "" : "null prototype", _ = !E && Z && Object(e) === e && Z in e ? hr.call(be(e), 8, -1) : A ? "Object" : "", z = E || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", V = z + (_ || A ? "[" + ue.call(nn.call([], _ || [], A || []), ": ") + "] " : "");
3108
+ return w.length === 0 ? V + "{}" : p ? V + "{" + Qt(w, p) + "}" : V + "{ " + ue.call(w, ", ") + " }";
3109
3109
  }
3110
3110
  return String(e);
3111
3111
  };
@@ -3527,7 +3527,7 @@ var oa = Le, Ue = zi, jl = nl, wl = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
3527
3527
  }
3528
3528
  }, ce = Array.isArray, Gl = Array.prototype.push, ua = function(t, e) {
3529
3529
  Gl.apply(t, ce(e) ? e : [e]);
3530
- }, Kl = Date.prototype.toISOString, dn = ze.default, B = {
3530
+ }, Kl = Date.prototype.toISOString, dn = ze.default, D = {
3531
3531
  addQueryPrefix: !1,
3532
3532
  allowDots: !1,
3533
3533
  allowEmptyArrays: !1,
@@ -3564,13 +3564,13 @@ var oa = Le, Ue = zi, jl = nl, wl = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
3564
3564
  return $ instanceof Date ? h($) : $;
3565
3565
  })), b === null) {
3566
3566
  if (n)
3567
- return c && !v ? c(r, B.encoder, x, "key", m) : r;
3567
+ return c && !v ? c(r, D.encoder, x, "key", m) : r;
3568
3568
  b = "";
3569
3569
  }
3570
3570
  if (Ql(b) || lt.isBuffer(b)) {
3571
3571
  if (c) {
3572
- var E = v ? r : c(r, B.encoder, x, "key", m);
3573
- return [y(E) + "=" + y(c(b, B.encoder, x, "value", m))];
3572
+ var E = v ? r : c(r, D.encoder, x, "key", m);
3573
+ return [y(E) + "=" + y(c(b, D.encoder, x, "value", m))];
3574
3574
  }
3575
3575
  return [y(r) + "=" + y(String(b))];
3576
3576
  }
@@ -3583,20 +3583,20 @@ var oa = Le, Ue = zi, jl = nl, wl = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
3583
3583
  else if (ce(f))
3584
3584
  _ = f;
3585
3585
  else {
3586
- var D = Object.keys(b);
3587
- _ = p ? D.sort(p) : D;
3586
+ var z = Object.keys(b);
3587
+ _ = p ? z.sort(p) : z;
3588
3588
  }
3589
- var Q = l ? r.replace(/\./g, "%2E") : r, I = i && ce(b) && b.length === 1 ? Q + "[]" : Q;
3589
+ var V = l ? r.replace(/\./g, "%2E") : r, I = i && ce(b) && b.length === 1 ? V + "[]" : V;
3590
3590
  if (o && ce(b) && b.length === 0)
3591
3591
  return I + "[]";
3592
- for (var M = 0; M < _.length; ++M) {
3593
- var z = _[M], H = typeof z == "object" && typeof z.value < "u" ? z.value : b[z];
3594
- if (!(s && H === null)) {
3595
- var he = d && l ? z.replace(/\./g, "%2E") : z, St = ce(b) ? typeof a == "function" ? a(I, he) : I : I + (d ? "." + he : "[" + he + "]");
3592
+ for (var L = 0; L < _.length; ++L) {
3593
+ var H = _[L], B = typeof H == "object" && typeof H.value < "u" ? H.value : b[H];
3594
+ if (!(s && B === null)) {
3595
+ var he = d && l ? H.replace(/\./g, "%2E") : H, St = ce(b) ? typeof a == "function" ? a(I, he) : I : I + (d ? "." + he : "[" + he + "]");
3596
3596
  g.set(e, j);
3597
3597
  var Ze = la();
3598
3598
  Ze.set(Ht, g), ua(A, t(
3599
- H,
3599
+ B,
3600
3600
  St,
3601
3601
  a,
3602
3602
  i,
@@ -3620,14 +3620,14 @@ var oa = Le, Ue = zi, jl = nl, wl = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
3620
3620
  return A;
3621
3621
  }, Xl = function(e) {
3622
3622
  if (!e)
3623
- return B;
3623
+ return D;
3624
3624
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
3625
3625
  throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
3626
3626
  if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
3627
3627
  throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
3628
3628
  if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
3629
3629
  throw new TypeError("Encoder has to be a function.");
3630
- var r = e.charset || B.charset;
3630
+ var r = e.charset || D.charset;
3631
3631
  if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
3632
3632
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
3633
3633
  var a = ze.default;
@@ -3636,32 +3636,32 @@ var oa = Le, Ue = zi, jl = nl, wl = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
3636
3636
  throw new TypeError("Unknown format option provided.");
3637
3637
  a = e.format;
3638
3638
  }
3639
- var i = ze.formatters[a], o = B.filter;
3639
+ var i = ze.formatters[a], o = D.filter;
3640
3640
  (typeof e.filter == "function" || ce(e.filter)) && (o = e.filter);
3641
3641
  var n;
3642
- if (e.arrayFormat in ca ? n = e.arrayFormat : "indices" in e ? n = e.indices ? "indices" : "repeat" : n = B.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
3642
+ if (e.arrayFormat in ca ? n = e.arrayFormat : "indices" in e ? n = e.indices ? "indices" : "repeat" : n = D.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
3643
3643
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
3644
- var s = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : B.allowDots : !!e.allowDots;
3644
+ var s = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : D.allowDots : !!e.allowDots;
3645
3645
  return {
3646
- addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : B.addQueryPrefix,
3646
+ addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : D.addQueryPrefix,
3647
3647
  allowDots: s,
3648
- allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : B.allowEmptyArrays,
3648
+ allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : D.allowEmptyArrays,
3649
3649
  arrayFormat: n,
3650
3650
  charset: r,
3651
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : B.charsetSentinel,
3651
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : D.charsetSentinel,
3652
3652
  commaRoundTrip: e.commaRoundTrip,
3653
- delimiter: typeof e.delimiter > "u" ? B.delimiter : e.delimiter,
3654
- encode: typeof e.encode == "boolean" ? e.encode : B.encode,
3655
- encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : B.encodeDotInKeys,
3656
- encoder: typeof e.encoder == "function" ? e.encoder : B.encoder,
3657
- encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : B.encodeValuesOnly,
3653
+ delimiter: typeof e.delimiter > "u" ? D.delimiter : e.delimiter,
3654
+ encode: typeof e.encode == "boolean" ? e.encode : D.encode,
3655
+ encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : D.encodeDotInKeys,
3656
+ encoder: typeof e.encoder == "function" ? e.encoder : D.encoder,
3657
+ encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : D.encodeValuesOnly,
3658
3658
  filter: o,
3659
3659
  format: a,
3660
3660
  formatter: i,
3661
- serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : B.serializeDate,
3662
- skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : B.skipNulls,
3661
+ serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : D.serializeDate,
3662
+ skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : D.skipNulls,
3663
3663
  sort: typeof e.sort == "function" ? e.sort : null,
3664
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : B.strictNullHandling
3664
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : D.strictNullHandling
3665
3665
  };
3666
3666
  }, Zl = function(t, e) {
3667
3667
  var r = t, a = Xl(e), i, o;
@@ -3696,7 +3696,7 @@ var oa = Le, Ue = zi, jl = nl, wl = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
3696
3696
  }
3697
3697
  var d = n.join(a.delimiter), h = a.addQueryPrefix === !0 ? "?" : "";
3698
3698
  return a.charsetSentinel && (a.charset === "iso-8859-1" ? h += "utf8=%26%2310003%3B&" : h += "utf8=%E2%9C%93&"), d.length > 0 ? h + d : "";
3699
- }, Fe = ia, Yt = Object.prototype.hasOwnProperty, ec = Array.isArray, U = {
3699
+ }, Fe = ia, Yt = Object.prototype.hasOwnProperty, ec = Array.isArray, M = {
3700
3700
  allowDots: !1,
3701
3701
  allowEmptyArrays: !1,
3702
3702
  allowPrototypes: !1,
@@ -3730,10 +3730,10 @@ var oa = Le, Ue = zi, jl = nl, wl = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
3730
3730
  for (l = 0; l < n.length; ++l)
3731
3731
  if (l !== s) {
3732
3732
  var f = n[l], p = f.indexOf("]="), d = p === -1 ? f.indexOf("=") : p + 1, h, m;
3733
- d === -1 ? (h = r.decoder(f, U.decoder, c, "key"), m = r.strictNullHandling ? null : "") : (h = r.decoder(f.slice(0, d), U.decoder, c, "key"), m = Fe.maybeMap(
3733
+ d === -1 ? (h = r.decoder(f, M.decoder, c, "key"), m = r.strictNullHandling ? null : "") : (h = r.decoder(f.slice(0, d), M.decoder, c, "key"), m = Fe.maybeMap(
3734
3734
  fa(f.slice(d + 1), r),
3735
3735
  function(v) {
3736
- return r.decoder(v, U.decoder, c, "value");
3736
+ return r.decoder(v, M.decoder, c, "value");
3737
3737
  }
3738
3738
  )), m && r.interpretNumericEntities && c === "iso-8859-1" && (m = tc(m)), f.indexOf("[]=") > -1 && (m = ec(m) ? [m] : m);
3739
3739
  var y = Yt.call(a, h);
@@ -3770,7 +3770,7 @@ var oa = Le, Ue = zi, jl = nl, wl = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
3770
3770
  }
3771
3771
  }, ic = function(e) {
3772
3772
  if (!e)
3773
- return U;
3773
+ return M;
3774
3774
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
3775
3775
  throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
3776
3776
  if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
@@ -3779,31 +3779,31 @@ var oa = Le, Ue = zi, jl = nl, wl = Ye, tt = oa("%WeakMap%", !0), rt = oa("%Map%
3779
3779
  throw new TypeError("Decoder has to be a function.");
3780
3780
  if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
3781
3781
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
3782
- var r = typeof e.charset > "u" ? U.charset : e.charset, a = typeof e.duplicates > "u" ? U.duplicates : e.duplicates;
3782
+ var r = typeof e.charset > "u" ? M.charset : e.charset, a = typeof e.duplicates > "u" ? M.duplicates : e.duplicates;
3783
3783
  if (a !== "combine" && a !== "first" && a !== "last")
3784
3784
  throw new TypeError("The duplicates option must be either combine, first, or last");
3785
- var i = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : U.allowDots : !!e.allowDots;
3785
+ var i = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : M.allowDots : !!e.allowDots;
3786
3786
  return {
3787
3787
  allowDots: i,
3788
- allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : U.allowEmptyArrays,
3789
- allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : U.allowPrototypes,
3790
- allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : U.allowSparse,
3791
- arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : U.arrayLimit,
3788
+ allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : M.allowEmptyArrays,
3789
+ allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : M.allowPrototypes,
3790
+ allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : M.allowSparse,
3791
+ arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : M.arrayLimit,
3792
3792
  charset: r,
3793
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : U.charsetSentinel,
3794
- comma: typeof e.comma == "boolean" ? e.comma : U.comma,
3795
- decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : U.decodeDotInKeys,
3796
- decoder: typeof e.decoder == "function" ? e.decoder : U.decoder,
3797
- delimiter: typeof e.delimiter == "string" || Fe.isRegExp(e.delimiter) ? e.delimiter : U.delimiter,
3793
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : M.charsetSentinel,
3794
+ comma: typeof e.comma == "boolean" ? e.comma : M.comma,
3795
+ decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : M.decodeDotInKeys,
3796
+ decoder: typeof e.decoder == "function" ? e.decoder : M.decoder,
3797
+ delimiter: typeof e.delimiter == "string" || Fe.isRegExp(e.delimiter) ? e.delimiter : M.delimiter,
3798
3798
  // eslint-disable-next-line no-implicit-coercion, no-extra-parens
3799
- depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : U.depth,
3799
+ depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : M.depth,
3800
3800
  duplicates: a,
3801
3801
  ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
3802
- interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : U.interpretNumericEntities,
3803
- parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : U.parameterLimit,
3802
+ interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : M.interpretNumericEntities,
3803
+ parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : M.parameterLimit,
3804
3804
  parseArrays: e.parseArrays !== !1,
3805
- plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : U.plainObjects,
3806
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : U.strictNullHandling
3805
+ plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : M.plainObjects,
3806
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : M.strictNullHandling
3807
3807
  };
3808
3808
  }, lc = function(t, e) {
3809
3809
  var r = ic(e);
@@ -3921,23 +3921,23 @@ oe.prototype.parse = function(t, e, r) {
3921
3921
  }
3922
3922
  }
3923
3923
  this.hostname.length > vc ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), x || (this.hostname = dc.toASCII(this.hostname));
3924
- var D = this.port ? ":" + this.port : "", Q = this.hostname || "";
3925
- this.host = Q + D, this.href += this.host, x && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), s[0] !== "/" && (s = "/" + s));
3924
+ var z = this.port ? ":" + this.port : "", V = this.hostname || "";
3925
+ this.host = V + z, this.href += this.host, x && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), s[0] !== "/" && (s = "/" + s));
3926
3926
  }
3927
3927
  if (!xc[f])
3928
3928
  for (var h = 0, b = Xt.length; h < b; h++) {
3929
3929
  var I = Xt[h];
3930
3930
  if (s.indexOf(I) !== -1) {
3931
- var M = encodeURIComponent(I);
3932
- M === I && (M = escape(I)), s = s.split(I).join(M);
3931
+ var L = encodeURIComponent(I);
3932
+ L === I && (L = escape(I)), s = s.split(I).join(L);
3933
3933
  }
3934
3934
  }
3935
- var z = s.indexOf("#");
3936
- z !== -1 && (this.hash = s.substr(z), s = s.slice(0, z));
3937
- var H = s.indexOf("?");
3938
- if (H !== -1 ? (this.search = s.substr(H), this.query = s.substr(H + 1), e && (this.query = er.parse(this.query)), s = s.slice(0, H)) : e && (this.search = "", this.query = {}), s && (this.pathname = s), Ae[f] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
3939
- var D = this.pathname || "", he = this.search || "";
3940
- this.path = D + he;
3935
+ var H = s.indexOf("#");
3936
+ H !== -1 && (this.hash = s.substr(H), s = s.slice(0, H));
3937
+ var B = s.indexOf("?");
3938
+ if (B !== -1 ? (this.search = s.substr(B), this.query = s.substr(B + 1), e && (this.query = er.parse(this.query)), s = s.slice(0, B)) : e && (this.search = "", this.query = {}), s && (this.pathname = s), Ae[f] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
3939
+ var z = this.pathname || "", he = this.search || "";
3940
+ this.path = z + he;
3941
3941
  }
3942
3942
  return this.href = this.format(), this;
3943
3943
  };
@@ -4498,17 +4498,16 @@ const Wc = O.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ u.jsx(
4498
4498
  ));
4499
4499
  Wc.displayName = "CardFooter";
4500
4500
  const Jc = (t, e, r) => {
4501
- const a = new URL(
4502
- t + e.split("/").map(
4503
- (i) => {
4504
- var o;
4505
- return i.startsWith("{") && i.endsWith("}") ? ((o = r.pathParams.find((n) => n.name === i.slice(1, -1))) == null ? void 0 : o.value) ?? i : i;
4506
- }
4507
- ).join("/")
4508
- );
4509
- return r.queryParams.forEach((i) => {
4510
- a.searchParams.set(i.name, i.value);
4511
- }), a;
4501
+ const a = e.replace(
4502
+ /\{(\w+)}/g,
4503
+ (o, n) => {
4504
+ var s;
4505
+ return ((s = r.pathParams.find((l) => l.name === n)) == null ? void 0 : s.value) || `{${n}}`;
4506
+ }
4507
+ ), i = new URL(a, t);
4508
+ return r.queryParams.filter((o) => o.active).forEach((o) => {
4509
+ i.searchParams.set(o.name, o.value);
4510
+ }), i;
4512
4511
  }, Vc = (t, e) => {
4513
4512
  const r = O.forwardRef(({ className: a, asChild: i, ...o }, n) => {
4514
4513
  const s = i ? bn : t;
@@ -4611,7 +4610,7 @@ const Jc = (t, e, r) => {
4611
4610
  {
4612
4611
  slug: a.name,
4613
4612
  name: a.name,
4614
- backgroundOpacity: "0",
4613
+ backgroundOpacity: "25%",
4615
4614
  borderOpacity: o.value ? "100%" : "0",
4616
4615
  className: k(
4617
4616
  "font-mono text-xs m-2",
@@ -4700,7 +4699,7 @@ const Jc = (t, e, r) => {
4700
4699
  title: a[o] ? "Required field" : void 0,
4701
4700
  children: [
4702
4701
  n.value,
4703
- a[o] && /* @__PURE__ */ u.jsx("sup", { className: "text-destructive", children: "*" })
4702
+ a[o] && /* @__PURE__ */ u.jsx("sup", { children: " *" })
4704
4703
  ]
4705
4704
  }
4706
4705
  ) }),
@@ -4806,42 +4805,48 @@ const Zc = {
4806
4805
  }
4807
4806
  }), h = p(), m = go(), y = co({
4808
4807
  mutationFn: async (w) => {
4809
- var I, M, z;
4808
+ var I, L, H;
4810
4809
  const E = Jc(((I = s.data) == null ? void 0 : I.schema.url) ?? "", t, w), A = performance.now(), _ = new Request(E, {
4811
4810
  method: e.toUpperCase(),
4812
4811
  headers: Object.fromEntries(
4813
- w.headers.filter((H) => H.name).map((H) => [H.name, H.value])
4812
+ w.headers.filter((B) => B.name).map((B) => [B.name, B.value])
4814
4813
  )
4815
4814
  });
4816
- w.identity !== ut && ((z = (M = m.data) == null ? void 0 : M.find((H) => H.id === w.identity)) == null || z.authorizeRequest(_));
4817
- const D = await fetch(_), Q = await D.text();
4815
+ w.identity !== ut && ((H = (L = m.data) == null ? void 0 : L.find((B) => B.id === w.identity)) == null || H.authorizeRequest(_));
4816
+ const z = await fetch(_), V = await z.text();
4818
4817
  return {
4819
- status: D.status,
4820
- headers: D.headers,
4821
- size: Q.length,
4822
- body: Q,
4818
+ status: z.status,
4819
+ headers: z.headers,
4820
+ size: V.length,
4821
+ body: V,
4823
4822
  time: performance.now() - A
4824
4823
  };
4825
4824
  }
4826
4825
  }), v = t.split("/").map((w, E, A) => {
4827
- var I;
4828
- const _ = w.startsWith("{") && w.endsWith("}"), D = (I = h.pathParams.find(
4829
- (M) => M.name === w.slice(1, -1)
4830
- )) == null ? void 0 : I.value, Q = D ? /* @__PURE__ */ u.jsx(jt, { backgroundOpacity: "0%", name: w, slug: w, children: D }) : /* @__PURE__ */ u.jsx("span", { className: "underline decoration-wavy decoration-red-500", children: w });
4826
+ var L;
4827
+ const _ = w.startsWith("{") && w.endsWith("}"), z = w.replace(/[{}]/g, ""), V = (L = h.pathParams.find((H) => H.name === z)) == null ? void 0 : L.value, I = V ? /* @__PURE__ */ u.jsx(jt, { backgroundOpacity: "25%", name: w, slug: w, children: V }) : /* @__PURE__ */ u.jsx(
4828
+ "span",
4829
+ {
4830
+ className: "underline decoration-wavy decoration-red-500",
4831
+ title: `Missing value for path parameter \`${z}\``,
4832
+ children: w
4833
+ }
4834
+ );
4831
4835
  return (
4832
4836
  // eslint-disable-next-line react/no-array-index-key
4833
4837
  /* @__PURE__ */ u.jsxs(at, { children: [
4834
- _ ? Q : w,
4838
+ _ ? I : w,
4835
4839
  E < A.length - 1 && "/",
4836
4840
  /* @__PURE__ */ u.jsx("wbr", {})
4837
4841
  ] }, w + E)
4838
4842
  );
4839
4843
  }), x = Xc(
4840
4844
  ((S = y.data) == null ? void 0 : S.headers.get("Content-Type")) ?? ""
4841
- ), g = Array.from(((j = y.data) == null ? void 0 : j.headers.entries()) ?? []), b = h.queryParams.filter((w) => w.active).map((w) => /* @__PURE__ */ u.jsxs(at, { children: [
4845
+ ), g = Array.from(((j = y.data) == null ? void 0 : j.headers.entries()) ?? []), b = h.queryParams.filter((w) => w.active).map((w, E, A) => /* @__PURE__ */ u.jsxs(at, { children: [
4842
4846
  w.name,
4843
4847
  "=",
4844
- w.value,
4848
+ encodeURIComponent(w.value).replaceAll("%20", "+"),
4849
+ E < A.length - 1 && "&",
4845
4850
  /* @__PURE__ */ u.jsx("wbr", {})
4846
4851
  ] }, w.name));
4847
4852
  return /* @__PURE__ */ u.jsx(uo, { register: l, control: c, handleSubmit: f, watch: p, ...d, children: /* @__PURE__ */ u.jsx("form", { onSubmit: f((w) => y.mutateAsync(w)), children: /* @__PURE__ */ u.jsxs("div", { className: "grid grid-cols-2 text-sm h-full", children: [
@@ -5459,4 +5464,4 @@ export {
5459
5464
  Eu as OperationList,
5460
5465
  du as OperationsFragment
5461
5466
  };
5462
- //# sourceMappingURL=OperationList-Cv0GStt7.js.map
5467
+ //# sourceMappingURL=OperationList-VK1_1rzp.js.map