zudoku 0.66.0 → 0.66.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/dist/config/validators/validate.d.ts +0 -2
  2. package/dist/config/validators/validate.js +0 -1
  3. package/dist/config/validators/validate.js.map +1 -1
  4. package/dist/flat-config.d.ts +1 -1
  5. package/dist/lib/authentication/ui/ZudokuAuthUi.js +5 -1
  6. package/dist/lib/authentication/ui/ZudokuAuthUi.js.map +1 -1
  7. package/dist/vite/config.js +1 -4
  8. package/dist/vite/config.js.map +1 -1
  9. package/lib/ActionButton-DUgvSylL.js +25 -0
  10. package/lib/ActionButton-DUgvSylL.js.map +1 -0
  11. package/lib/{ClaudeLogo-PxFjou9w.js → ClaudeLogo-CGRfGTk2.js} +2 -2
  12. package/lib/{ClaudeLogo-PxFjou9w.js.map → ClaudeLogo-CGRfGTk2.js.map} +1 -1
  13. package/lib/Drawer-Ci7XwhqT.js.map +1 -1
  14. package/lib/{ErrorAlert-BqjbNHIn.js → ErrorAlert-BUlG32M9.js} +6 -6
  15. package/lib/{ErrorAlert-BqjbNHIn.js.map → ErrorAlert-BUlG32M9.js.map} +1 -1
  16. package/lib/{MdxPage-CVFatbHw.js → MdxPage-Bjf72BP3.js} +7 -7
  17. package/lib/{MdxPage-CVFatbHw.js.map → MdxPage-Bjf72BP3.js.map} +1 -1
  18. package/lib/{Mermaid-CIFixY6C.js → Mermaid-D_VSX7_Q.js} +3 -3
  19. package/lib/{Mermaid-CIFixY6C.js.map → Mermaid-D_VSX7_Q.js.map} +1 -1
  20. package/lib/{OAuthErrorPage-Dup79DJk.js → OAuthErrorPage-1Ekji0PK.js} +6 -6
  21. package/lib/{OAuthErrorPage-Dup79DJk.js.map → OAuthErrorPage-1Ekji0PK.js.map} +1 -1
  22. package/lib/{OasProvider-BJeMq29o.js → OasProvider-BZxmTyMM.js} +3 -3
  23. package/lib/{OasProvider-BJeMq29o.js.map → OasProvider-BZxmTyMM.js.map} +1 -1
  24. package/lib/{OperationList-ff3ZvQsO.js → OperationList-B7nPIFB8.js} +329 -348
  25. package/lib/OperationList-B7nPIFB8.js.map +1 -0
  26. package/lib/{RouteGuard-BXy13JSz.js → RouteGuard-9wjejsKm.js} +3 -3
  27. package/lib/{RouteGuard-BXy13JSz.js.map → RouteGuard-9wjejsKm.js.map} +1 -1
  28. package/lib/{RouterError-CKOZTsDD.js → RouterError-DfTZblpv.js} +2 -2
  29. package/lib/{RouterError-CKOZTsDD.js.map → RouterError-DfTZblpv.js.map} +1 -1
  30. package/lib/{SchemaList-BSC1KM3v.js → SchemaList-16_obkku.js} +7 -7
  31. package/lib/{SchemaList-BSC1KM3v.js.map → SchemaList-16_obkku.js.map} +1 -1
  32. package/lib/{SchemaView-CgwJ9gtb.js → SchemaView-eyvR4bRt.js} +3 -3
  33. package/lib/{SchemaView-CgwJ9gtb.js.map → SchemaView-eyvR4bRt.js.map} +1 -1
  34. package/lib/Select-CkxXP5I7.js +243 -0
  35. package/lib/Select-CkxXP5I7.js.map +1 -0
  36. package/lib/Separator-CTPSeW1S.js +27 -0
  37. package/lib/Separator-CTPSeW1S.js.map +1 -0
  38. package/lib/{SignUp-Pm_LGm6T.js → SignUp-D54_QWFy.js} +3 -3
  39. package/lib/{SignUp-Pm_LGm6T.js.map → SignUp-D54_QWFy.js.map} +1 -1
  40. package/lib/{SyntaxHighlight-bkmst3oV.js → SyntaxHighlight-j_HRSPCU.js} +1508 -1492
  41. package/lib/SyntaxHighlight-j_HRSPCU.js.map +1 -0
  42. package/lib/{Toc-TUXNFbKl.js → Toc-z05x698-.js} +2 -2
  43. package/lib/{Toc-TUXNFbKl.js.map → Toc-z05x698-.js.map} +1 -1
  44. package/lib/{ZudokuContext-np1wheDl.js → ZudokuContext-BXldanA8.js} +5 -5
  45. package/lib/{ZudokuContext-np1wheDl.js.map → ZudokuContext-BXldanA8.js.map} +1 -1
  46. package/lib/chunk-PVWAREVJ-dLIqswPy.js.map +1 -1
  47. package/lib/{circular-XPj_dwqA.js → circular-D5sYCIWL.js} +2 -2
  48. package/lib/{circular-XPj_dwqA.js.map → circular-D5sYCIWL.js.map} +1 -1
  49. package/lib/{createServer-D01nCTNp.js → createServer-BlwU7lIr.js} +4 -4
  50. package/lib/{createServer-D01nCTNp.js.map → createServer-BlwU7lIr.js.map} +1 -1
  51. package/lib/createVariantComponent-B9_dVBvu.js +35 -0
  52. package/lib/createVariantComponent-B9_dVBvu.js.map +1 -0
  53. package/lib/{errors-B0hNTPFO.js → errors-BtC4Kn2j.js} +2 -2
  54. package/lib/{errors-B0hNTPFO.js.map → errors-BtC4Kn2j.js.map} +1 -1
  55. package/lib/firebase-Ibm_tv3G.js +7366 -0
  56. package/lib/firebase-Ibm_tv3G.js.map +1 -0
  57. package/lib/{hook-CvSwcbk6.js → hook-BNxidGQq.js} +2 -2
  58. package/lib/{hook-CvSwcbk6.js.map → hook-BNxidGQq.js.map} +1 -1
  59. package/lib/{index-Bjc_QsUR.js → index-CeVTNcfF.js} +452 -476
  60. package/lib/index-CeVTNcfF.js.map +1 -0
  61. package/lib/index-CrcNWbel.js.map +1 -1
  62. package/lib/{index-DnMgJWrI.js → index-Css56y3F.js} +3 -3
  63. package/lib/{index-DnMgJWrI.js.map → index-Css56y3F.js.map} +1 -1
  64. package/lib/{index-mfkNWYG-.js → index-DSOi7zVM.js} +5 -5
  65. package/lib/{index-mfkNWYG-.js.map → index-DSOi7zVM.js.map} +1 -1
  66. package/lib/{index-DscsS121.js → index-eKVhlB94.js} +2 -2
  67. package/lib/{index-DscsS121.js.map → index-eKVhlB94.js.map} +1 -1
  68. package/lib/index.esm-BYObtETB.js.map +1 -1
  69. package/lib/index.esm-BoKBnRoT.js +32 -0
  70. package/lib/index.esm-BoKBnRoT.js.map +1 -0
  71. package/lib/index.esm-DtzT_KoE.js.map +1 -1
  72. package/lib/jsx-runtime-BzflLqGi.js.map +1 -1
  73. package/lib/{mutation-BlmnL5qL.js → mutation-BoVlx8yA.js} +2 -2
  74. package/lib/{mutation-BlmnL5qL.js.map → mutation-BoVlx8yA.js.map} +1 -1
  75. package/lib/ui/Carousel.js.map +1 -1
  76. package/lib/ui/SyntaxHighlight.js +2 -2
  77. package/lib/useMutation-C6RqWmTS.js +97 -0
  78. package/lib/useMutation-C6RqWmTS.js.map +1 -0
  79. package/lib/zudoku.__internal.js +6 -6
  80. package/lib/zudoku.__internal.js.map +1 -1
  81. package/lib/zudoku.auth-auth0.js +1 -1
  82. package/lib/zudoku.auth-azureb2c.js +4 -4
  83. package/lib/zudoku.auth-clerk.js +2 -2
  84. package/lib/zudoku.auth-firebase.js +9 -0
  85. package/lib/zudoku.auth-firebase.js.map +1 -0
  86. package/lib/zudoku.auth-openid.js +4 -4
  87. package/lib/zudoku.auth-supabase.js +4 -4
  88. package/lib/zudoku.components.js +5 -5
  89. package/lib/zudoku.hooks.js +3 -3
  90. package/lib/zudoku.mermaid.js +3 -3
  91. package/lib/zudoku.plugin-api-catalog.js +4 -4
  92. package/lib/zudoku.plugin-api-keys.js +162 -178
  93. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  94. package/lib/zudoku.plugin-custom-pages.js +1 -1
  95. package/lib/zudoku.plugin-markdown.js +1 -1
  96. package/lib/zudoku.plugin-openapi.js +2 -2
  97. package/lib/zudoku.plugin-search-pagefind.js +2 -2
  98. package/lib/zudoku.router.js.map +1 -1
  99. package/package.json +19 -15
  100. package/src/lib/authentication/ui/ZudokuAuthUi.tsx +11 -1
  101. package/lib/OperationList-ff3ZvQsO.js.map +0 -1
  102. package/lib/Select-VmDZ-nKe.js +0 -337
  103. package/lib/Select-VmDZ-nKe.js.map +0 -1
  104. package/lib/SyntaxHighlight-bkmst3oV.js.map +0 -1
  105. package/lib/index-Bjc_QsUR.js.map +0 -1
@@ -1,40 +1,41 @@
1
1
  import { j as s } from "./jsx-runtime-BzflLqGi.js";
2
- import { e as ga, u as Ja, f as Da, O as Qa, j as Ka } from "./ZudokuContext-np1wheDl.js";
2
+ import { e as ga, u as Ja, k as Da, O as Qa, j as Ka } from "./ZudokuContext-BXldanA8.js";
3
3
  import { H as Ya } from "./index.esm-DtzT_KoE.js";
4
4
  import { DownloadIcon as Xa, ChevronDownIcon as va, ExternalLinkIcon as Ae, CopyIcon as Nr, ChevronsUpDownIcon as lt, CheckIcon as xa, MinusIcon as Za, PlusIcon as eo, InfoIcon as ba, ChevronsDownUpIcon as qr } from "lucide-react";
5
5
  import { b as to, c as ro, u as no } from "./chunk-PVWAREVJ-dLIqswPy.js";
6
- import { u as ct, a as Sr, d as Ve, e as ja, f as Or, P as ao, C as Rr, b as Er, c as Ar, h as oo, U as io } from "./index-Bjc_QsUR.js";
7
- import { S as so, a as lo, b as co, c as uo, e as po } from "./Select-VmDZ-nKe.js";
6
+ import { u as ct, a as Sr, d as Ve, e as ja, f as Or, P as ao, C as Rr, b as Er, c as Ar, h as oo, U as io } from "./index-CeVTNcfF.js";
7
+ import { S as so, a as lo, b as co, c as uo, e as po } from "./Select-CkxXP5I7.js";
8
8
  import { C as fo } from "./CategoryHeading-DhmodDcq.js";
9
- import { I as Ce, T as ho, M as Be, H as Fe, g as $a, h as wa, i as Sa, j as Oa, k as Ta, S as mo } from "./ErrorAlert-BqjbNHIn.js";
10
- import { S as Ir, i as yo, a as go, E as Xr, b as vo, c as xo, g as bo, P as Tr } from "./SchemaView-CgwJ9gtb.js";
11
- import { C as jo, a as $o, P as wo } from "./ClaudeLogo-PxFjou9w.js";
12
- import { B as ot, M as So } from "./index-mfkNWYG-.js";
9
+ import { I as Ce, T as ho, M as Be, H as Fe, g as $a, h as wa, i as Sa, j as Oa, k as Ta, S as mo } from "./ErrorAlert-BUlG32M9.js";
10
+ import { S as Ir, i as yo, a as go, E as Xr, b as vo, c as xo, g as bo, P as Tr } from "./SchemaView-eyvR4bRt.js";
11
+ import { C as jo, a as $o, P as wo } from "./ClaudeLogo-CGRfGTk2.js";
12
+ import { B as ot, M as So } from "./index-DSOi7zVM.js";
13
13
  import { Slot as Oo } from "@radix-ui/react-slot";
14
14
  import { c as Ca } from "./index-DI5SPFK9.js";
15
- import { c as pe } from "./cn-dYga0KKN.js";
16
- import * as To from "@radix-ui/react-separator";
17
- import { D as Co, a as Po, b as ko, c as Xe } from "./DropdownMenu-C8SX_-S_.js";
18
- import { u as No } from "./useCopyToClipboard-B_085nfO.js";
19
- import { useTransition as Pa, useState as ge, Fragment as qo, useRef as Ro, useEffect as Cr, useMemo as Eo } from "react";
15
+ import { c as fe } from "./cn-dYga0KKN.js";
16
+ import "@radix-ui/react-separator";
17
+ import { D as To, a as Co, b as Po, c as Xe } from "./DropdownMenu-C8SX_-S_.js";
18
+ import { u as ko } from "./useCopyToClipboard-B_085nfO.js";
19
+ import { useTransition as Pa, useState as ge, Fragment as No, useRef as qo, useEffect as Cr, useMemo as Ro } from "react";
20
20
  import { Button as Ur } from "./ui/Button.js";
21
+ import { S as Zr } from "./Separator-CTPSeW1S.js";
21
22
  import * as Ze from "@radix-ui/react-tabs";
22
- import { Callout as Zr } from "./ui/Callout.js";
23
- import { Card as Ao } from "./ui/Card.js";
24
- import { S as nt } from "./SyntaxHighlight-bkmst3oV.js";
25
- import { Tabs as Io, TabsList as Uo, TabsTrigger as et, TabsContent as tt } from "./ui/Tabs.js";
26
- import { VisuallyHidden as Lo } from "@radix-ui/react-visually-hidden";
27
- import { Frame as _o, FramePanel as Fo } from "./ui/Frame.js";
28
- import { Item as Bo, ItemContent as en, ItemTitle as Ho, ItemActions as Mo, ItemGroup as zo, ItemSeparator as Go } from "./ui/Item.js";
29
- import * as tn from "@radix-ui/react-collapsible";
30
- import { c as Wo } from "./index-DnMgJWrI.js";
23
+ import { Callout as en } from "./ui/Callout.js";
24
+ import { Card as Eo } from "./ui/Card.js";
25
+ import { S as nt } from "./SyntaxHighlight-j_HRSPCU.js";
26
+ import { Tabs as Ao, TabsList as Io, TabsTrigger as et, TabsContent as tt } from "./ui/Tabs.js";
27
+ import { VisuallyHidden as Uo } from "@radix-ui/react-visually-hidden";
28
+ import { Frame as Lo, FramePanel as _o } from "./ui/Frame.js";
29
+ import { Item as Fo, ItemContent as tn, ItemTitle as Bo, ItemActions as Ho, ItemGroup as Mo, ItemSeparator as zo } from "./ui/Item.js";
30
+ import * as rn from "@radix-ui/react-collapsible";
31
+ import { c as Go } from "./index-Css56y3F.js";
31
32
  import "./Button-CynVW1JV.js";
32
- import { a as Vo, c as it } from "./invariant-CGOLuIIz.js";
33
- import { r as Jo } from "./___vite-browser-external_commonjs-proxy-Cga3HsWk.js";
34
- function Do(e, n) {
33
+ import { a as Wo, c as it } from "./invariant-CGOLuIIz.js";
34
+ import { r as Vo } from "./___vite-browser-external_commonjs-proxy-Cga3HsWk.js";
35
+ function Jo(e, n) {
35
36
  return n;
36
37
  }
37
- const Qo = Ca(
38
+ const Do = Ca(
38
39
  "flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2",
39
40
  {
40
41
  variants: {
@@ -48,7 +49,7 @@ const Qo = Ca(
48
49
  }
49
50
  }
50
51
  );
51
- function Ko({
52
+ function Qo({
52
53
  className: e,
53
54
  orientation: n,
54
55
  ...r
@@ -59,15 +60,15 @@ function Ko({
59
60
  role: "group",
60
61
  "data-slot": "button-group",
61
62
  "data-orientation": n,
62
- className: pe(Qo({ orientation: n }), e),
63
+ className: fe(Do({ orientation: n }), e),
63
64
  ...r
64
65
  }
65
66
  );
66
67
  }
67
- const Yo = ({
68
+ const Ko = ({
68
69
  downloadUrl: e
69
70
  }) => {
70
- const [, n] = No(), r = async (a) => {
71
+ const [, n] = ko(), r = async (a) => {
71
72
  if (e.includes("://")) {
72
73
  a.preventDefault();
73
74
  try {
@@ -81,7 +82,7 @@ const Yo = ({
81
82
  }
82
83
  }
83
84
  };
84
- return /* @__PURE__ */ s.jsxs(Ko, { children: [
85
+ return /* @__PURE__ */ s.jsxs(Qo, { children: [
85
86
  /* @__PURE__ */ s.jsx(
86
87
  ot,
87
88
  {
@@ -95,9 +96,9 @@ const Yo = ({
95
96
  ] })
96
97
  }
97
98
  ),
98
- /* @__PURE__ */ s.jsxs(Co, { children: [
99
- /* @__PURE__ */ s.jsx(Po, { asChild: !0, children: /* @__PURE__ */ s.jsx(ot, { size: "sm", variant: "outline", className: "px-1.5", children: /* @__PURE__ */ s.jsx(va, { size: 14 }) }) }),
100
- /* @__PURE__ */ s.jsxs(ko, { align: "end", children: [
99
+ /* @__PURE__ */ s.jsxs(To, { children: [
100
+ /* @__PURE__ */ s.jsx(Co, { asChild: !0, children: /* @__PURE__ */ s.jsx(ot, { size: "sm", variant: "outline", className: "px-1.5", children: /* @__PURE__ */ s.jsx(va, { size: 14 }) }) }),
101
+ /* @__PURE__ */ s.jsxs(Po, { align: "end", children: [
101
102
  /* @__PURE__ */ s.jsx(Xe, { asChild: !0, children: /* @__PURE__ */ s.jsxs("a", { href: e, target: "_blank", rel: "noopener noreferrer", children: [
102
103
  /* @__PURE__ */ s.jsx(Ae, { size: 14 }),
103
104
  "Open in new tab"
@@ -148,7 +149,7 @@ const Yo = ({
148
149
  ] })
149
150
  ] })
150
151
  ] });
151
- }, Xo = ({
152
+ }, Yo = ({
152
153
  value: e,
153
154
  onChange: n,
154
155
  className: r,
@@ -158,7 +159,7 @@ const Yo = ({
158
159
  /* @__PURE__ */ s.jsx(
159
160
  "select",
160
161
  {
161
- className: pe(
162
+ className: fe(
162
163
  "w-full row-start-1 col-start-1 border border-input text-foreground px-2 py-1 pe-6",
163
164
  "rounded-md appearance-none bg-zinc-50 hover:bg-white dark:bg-zinc-800 hover:dark:bg-zinc-800/75",
164
165
  r
@@ -171,14 +172,14 @@ const Yo = ({
171
172
  /* @__PURE__ */ s.jsx(
172
173
  "div",
173
174
  {
174
- className: pe(
175
+ className: fe(
175
176
  !c && "hidden",
176
177
  "row-start-1 col-start-1 self-center justify-self-end relative end-2 pointer-events-none"
177
178
  ),
178
179
  children: /* @__PURE__ */ s.jsx(lt, { size: 14 })
179
180
  }
180
181
  )
181
- ] }), Zo = Ve(
182
+ ] }), Xo = Ve(
182
183
  /* GraphQL */
183
184
  `
184
185
  query ServersQuery($input: JSON!, $type: SchemaType!) {
@@ -190,7 +191,7 @@ const Yo = ({
190
191
  }
191
192
  }
192
193
  `
193
- ), ei = ({ url: e }) => {
194
+ ), Zo = ({ url: e }) => {
194
195
  const [n, r] = ge(!1);
195
196
  return /* @__PURE__ */ s.jsx(
196
197
  Ur,
@@ -205,14 +206,14 @@ const Yo = ({
205
206
  children: n ? /* @__PURE__ */ s.jsx(xa, { className: "text-green-600", size: 14 }) : /* @__PURE__ */ s.jsx(Nr, { size: 14, strokeWidth: 1.3 })
206
207
  }
207
208
  );
208
- }, ti = () => {
209
- const { input: e, type: n } = ct(), r = Sr(Zo, { input: e, type: n }), a = ga(r), [, c] = Pa(), { selectedServer: l, setSelectedServer: t } = ja(
209
+ }, ei = () => {
210
+ const { input: e, type: n } = ct(), r = Sr(Xo, { input: e, type: n }), a = ga(r), [, c] = Pa(), { selectedServer: l, setSelectedServer: t } = ja(
210
211
  a.data.schema.servers
211
212
  ), { servers: o } = a.data.schema, i = o.at(0);
212
213
  return i ? /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-1.5 flex-nowrap", children: [
213
214
  /* @__PURE__ */ s.jsx("span", { className: "font-medium text-sm", children: "Endpoint" }),
214
215
  o.length > 1 ? /* @__PURE__ */ s.jsx(
215
- Xo,
216
+ Yo,
216
217
  {
217
218
  className: "font-mono text-xs border-input bg-transparent dark:bg-input/30 dark:hover:bg-input/50 py-1.5 max-w-[450px] truncate",
218
219
  onChange: (u) => c(() => t(u.target.value)),
@@ -224,9 +225,9 @@ const Yo = ({
224
225
  }))
225
226
  }
226
227
  ) : /* @__PURE__ */ s.jsx(Ce, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: i.url }),
227
- /* @__PURE__ */ s.jsx(ei, { url: o.length > 1 ? l : i.url })
228
+ /* @__PURE__ */ s.jsx(Zo, { url: o.length > 1 ? l : i.url })
228
229
  ] }) : null;
229
- }, ri = Ca(
230
+ }, ti = Ca(
230
231
  "inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
231
232
  {
232
233
  variants: {
@@ -254,27 +255,7 @@ function He({
254
255
  c,
255
256
  {
256
257
  "data-slot": "badge",
257
- className: pe(ri({ variant: n }), e),
258
- ...a
259
- }
260
- );
261
- }
262
- function rn({
263
- className: e,
264
- orientation: n = "horizontal",
265
- decorative: r = !0,
266
- ...a
267
- }) {
268
- return /* @__PURE__ */ s.jsx(
269
- To.Root,
270
- {
271
- "data-slot": "separator",
272
- decorative: r,
273
- orientation: n,
274
- className: pe(
275
- "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
276
- e
277
- ),
258
+ className: fe(ti({ variant: n }), e),
278
259
  ...a
279
260
  }
280
261
  );
@@ -291,7 +272,7 @@ function Me({ className: e, ...n }) {
291
272
  "select",
292
273
  {
293
274
  "data-slot": "native-select",
294
- className: pe(
275
+ className: fe(
295
276
  "border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 h-9 w-full min-w-0 appearance-none rounded-md border bg-transparent px-3 py-2 pr-9 text-sm shadow-xs transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed",
296
277
  "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
297
278
  "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
@@ -315,7 +296,7 @@ function Me({ className: e, ...n }) {
315
296
  function ze({ ...e }) {
316
297
  return /* @__PURE__ */ s.jsx("option", { "data-slot": "native-select-option", ...e });
317
298
  }
318
- const nn = pe, ni = ({
299
+ const nn = fe, ri = ({
319
300
  responses: e,
320
301
  selectedResponse: n,
321
302
  onSelectResponse: r
@@ -387,7 +368,7 @@ const nn = pe, ni = ({
387
368
  ) }, i.statusCode))
388
369
  }
389
370
  ) });
390
- }, ai = ({
371
+ }, ni = ({
391
372
  serverUrl: e,
392
373
  summary: n,
393
374
  data: r
@@ -423,7 +404,7 @@ const nn = pe, ni = ({
423
404
  c(!0), setTimeout(() => c(!1), 2e3);
424
405
  });
425
406
  };
426
- return /* @__PURE__ */ s.jsx(Ao, { className: "p-6 mb-6 max-w-screen-md", children: /* @__PURE__ */ s.jsxs("div", { className: "space-y-4", children: [
407
+ return /* @__PURE__ */ s.jsx(Eo, { className: "p-6 mb-6 max-w-screen-md", children: /* @__PURE__ */ s.jsxs("div", { className: "space-y-4", children: [
427
408
  /* @__PURE__ */ s.jsxs("div", { children: [
428
409
  /* @__PURE__ */ s.jsx("h3", { className: "text-lg font-semibold mb-2", children: "MCP Endpoint" }),
429
410
  /* @__PURE__ */ s.jsxs("p", { className: "text-sm text-muted-foreground mb-3", children: [
@@ -444,7 +425,7 @@ const nn = pe, ni = ({
444
425
  /* @__PURE__ */ s.jsxs(
445
426
  "div",
446
427
  {
447
- className: pe(
428
+ className: fe(
448
429
  "relative flex items-center gap-2 p-3 rounded-md border border-primary/50"
449
430
  ),
450
431
  children: [
@@ -467,8 +448,8 @@ const nn = pe, ni = ({
467
448
  /* @__PURE__ */ s.jsx("h3", { className: "text-lg font-semibold mb-2", children: "AI Tool Configuration" }),
468
449
  /* @__PURE__ */ s.jsx("p", { className: "text-sm text-muted-foreground mb-3", children: "Choose your AI tool and copy the configuration to get started." }),
469
450
  /* @__PURE__ */ s.jsx("hr", { className: "my-4" }),
470
- /* @__PURE__ */ s.jsxs(Io, { defaultValue: "claude", className: "w-full", children: [
471
- /* @__PURE__ */ s.jsxs(Uo, { className: "grid w-full grid-cols-4", children: [
451
+ /* @__PURE__ */ s.jsxs(Ao, { defaultValue: "claude", className: "w-full", children: [
452
+ /* @__PURE__ */ s.jsxs(Io, { className: "grid w-full grid-cols-4", children: [
472
453
  /* @__PURE__ */ s.jsx(et, { value: "claude", children: "Claude" }),
473
454
  /* @__PURE__ */ s.jsx(et, { value: "chatgpt", children: "ChatGPT" }),
474
455
  /* @__PURE__ */ s.jsx(et, { value: "cursor", children: "Cursor" }),
@@ -526,7 +507,7 @@ const nn = pe, ni = ({
526
507
  )
527
508
  ] }),
528
509
  /* @__PURE__ */ s.jsxs(tt, { value: "chatgpt", className: "space-y-3", children: [
529
- /* @__PURE__ */ s.jsx(Zr, { type: "note", title: "Requirements", children: "ChatGPT Pro, Team, Enterprise, or Edu subscription. Note: MCP support is limited to read-only operations through Deep Research." }),
510
+ /* @__PURE__ */ s.jsx(en, { type: "note", title: "Requirements", children: "ChatGPT Pro, Team, Enterprise, or Edu subscription. Note: MCP support is limited to read-only operations through Deep Research." }),
530
511
  /* @__PURE__ */ s.jsxs("ol", { children: [
531
512
  /* @__PURE__ */ s.jsxs("li", { children: [
532
513
  "Go to ",
@@ -597,7 +578,7 @@ const nn = pe, ni = ({
597
578
  )
598
579
  ] }),
599
580
  /* @__PURE__ */ s.jsxs(tt, { value: "vscode", className: "space-y-3", children: [
600
- /* @__PURE__ */ s.jsx(Zr, { type: "note", title: "Requirements", children: "VS Code with GitHub Copilot extension" }),
581
+ /* @__PURE__ */ s.jsx(en, { type: "note", title: "Requirements", children: "VS Code with GitHub Copilot extension" }),
601
582
  /* @__PURE__ */ s.jsxs("ol", { children: [
602
583
  /* @__PURE__ */ s.jsxs("li", { children: [
603
584
  /* @__PURE__ */ s.jsx("span", { children: "Create " }),
@@ -635,18 +616,18 @@ const nn = pe, ni = ({
635
616
  ] })
636
617
  ] })
637
618
  ] }) });
638
- }, oi = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
619
+ }, ai = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
639
620
  type: "string"
640
- }, ii = ({
621
+ }, oi = ({
641
622
  parameter: e,
642
623
  group: n,
643
624
  id: r
644
625
  }) => {
645
- const a = oi(e), [c, l] = ge(!1), t = a.type === "object" || yo(a) && "items" in a && a.items?.type === "object", o = !!(e.description || a.description || a.type === "array" && a.items?.enum || a.enum || a.example !== void 0 || a.default !== void 0);
646
- return /* @__PURE__ */ s.jsxs(Bo, { children: [
647
- /* @__PURE__ */ s.jsxs(en, { className: "gap-y-2", children: [
626
+ const a = ai(e), [c, l] = ge(!1), t = a.type === "object" || yo(a) && "items" in a && a.items?.type === "object", o = !!(e.description || a.description || a.type === "array" && a.items?.enum || a.enum || a.example !== void 0 || a.default !== void 0);
627
+ return /* @__PURE__ */ s.jsxs(Fo, { children: [
628
+ /* @__PURE__ */ s.jsxs(tn, { className: "gap-y-2", children: [
648
629
  /* @__PURE__ */ s.jsxs("div", { children: [
649
- /* @__PURE__ */ s.jsx(Ho, { className: "inline me-2", children: t ? /* @__PURE__ */ s.jsx(
630
+ /* @__PURE__ */ s.jsx(Bo, { className: "inline me-2", children: t ? /* @__PURE__ */ s.jsx(
650
631
  "button",
651
632
  {
652
633
  onClick: () => l(!c),
@@ -697,7 +678,7 @@ const nn = pe, ni = ({
697
678
  /* @__PURE__ */ s.jsx(vo, { schema: a })
698
679
  ] })
699
680
  ] }),
700
- t && /* @__PURE__ */ s.jsx(Mo, { className: "self-start", children: /* @__PURE__ */ s.jsx(
681
+ t && /* @__PURE__ */ s.jsx(Ho, { className: "self-start", children: /* @__PURE__ */ s.jsx(
701
682
  Ur,
702
683
  {
703
684
  variant: "ghost",
@@ -709,13 +690,13 @@ const nn = pe, ni = ({
709
690
  }
710
691
  ) }),
711
692
  t && /* @__PURE__ */ s.jsx(
712
- tn.Root,
693
+ rn.Root,
713
694
  {
714
695
  defaultOpen: !1,
715
696
  open: c,
716
697
  onOpenChange: l,
717
- className: pe("w-full", !c && "contents"),
718
- children: /* @__PURE__ */ s.jsx(tn.Content, { asChild: !0, children: /* @__PURE__ */ s.jsx(en, { children: /* @__PURE__ */ s.jsx(
698
+ className: fe("w-full", !c && "contents"),
699
+ children: /* @__PURE__ */ s.jsx(rn.Content, { asChild: !0, children: /* @__PURE__ */ s.jsx(tn, { children: /* @__PURE__ */ s.jsx(
719
700
  Ir,
720
701
  {
721
702
  schema: "items" in a ? a.items : a
@@ -724,7 +705,7 @@ const nn = pe, ni = ({
724
705
  }
725
706
  )
726
707
  ] });
727
- }, si = ({
708
+ }, ii = ({
728
709
  summary: e,
729
710
  group: n,
730
711
  parameters: r,
@@ -741,7 +722,7 @@ const nn = pe, ni = ({
741
722
  id: `${a}/${n}-parameters`,
742
723
  className: "capitalize",
743
724
  children: [
744
- e && /* @__PURE__ */ s.jsxs(Lo, { children: [
725
+ e && /* @__PURE__ */ s.jsxs(Uo, { children: [
745
726
  e,
746
727
  " › "
747
728
  ] }),
@@ -749,10 +730,10 @@ const nn = pe, ni = ({
749
730
  ]
750
731
  }
751
732
  ),
752
- /* @__PURE__ */ s.jsx(_o, { children: /* @__PURE__ */ s.jsx(Fo, { className: "p-0!", children: /* @__PURE__ */ s.jsx(zo, { className: "overflow-clip", children: c.map((l, t) => /* @__PURE__ */ s.jsxs(qo, { children: [
753
- t > 0 && /* @__PURE__ */ s.jsx(Go, {}),
733
+ /* @__PURE__ */ s.jsx(Lo, { children: /* @__PURE__ */ s.jsx(_o, { className: "p-0!", children: /* @__PURE__ */ s.jsx(Mo, { className: "overflow-clip", children: c.map((l, t) => /* @__PURE__ */ s.jsxs(No, { children: [
734
+ t > 0 && /* @__PURE__ */ s.jsx(zo, {}),
754
735
  /* @__PURE__ */ s.jsx(
755
- ii,
736
+ oi,
756
737
  {
757
738
  parameter: l,
758
739
  id: a,
@@ -761,12 +742,12 @@ const nn = pe, ni = ({
761
742
  )
762
743
  ] }, `${l.name}-${l.in}`)) }) }) })
763
744
  ] });
764
- }, li = ({
745
+ }, si = ({
765
746
  rootMargin: e = "0px",
766
747
  threshold: n,
767
748
  root: r
768
749
  } = {}) => {
769
- const [a, c] = ge(!1), l = Ro(null);
750
+ const [a, c] = ge(!1), l = qo(null);
770
751
  return Cr(() => {
771
752
  const t = new IntersectionObserver(
772
753
  ([i]) => {
@@ -777,19 +758,19 @@ const nn = pe, ni = ({
777
758
  if (o)
778
759
  return t.observe(o), () => t.unobserve(o);
779
760
  }, [r, e, n]), [l, a];
780
- }, ci = () => /* @__PURE__ */ s.jsx("div", { className: "absolute inset-0 bg-linear-to-b from-transparent to-zinc-50/60 dark:to-zinc-950/90 z-10 transition-all group-hover:to-transparent" }), Lr = ({
761
+ }, li = () => /* @__PURE__ */ s.jsx("div", { className: "absolute inset-0 bg-linear-to-b from-transparent to-zinc-50/60 dark:to-zinc-950/90 z-10 transition-all group-hover:to-transparent" }), Lr = ({
781
762
  code: e,
782
763
  className: n
783
764
  }) => /* @__PURE__ */ s.jsx(
784
765
  "pre",
785
766
  {
786
- className: pe(
767
+ className: fe(
787
768
  "relative text-(--shiki-light) dark:text-(--shiki-dark) p-2 text-xs font-mono max-h-[250px] leading-4.5 bg-(--shiki-light-bg) dark:bg-(--shiki-dark-bg) overflow-hidden",
788
769
  n
789
770
  ),
790
771
  children: /* @__PURE__ */ s.jsxs("code", { children: [
791
772
  e.split(`
792
- `).length > 13 && /* @__PURE__ */ s.jsx(ci, {}),
773
+ `).length > 13 && /* @__PURE__ */ s.jsx(li, {}),
793
774
  e
794
775
  ] })
795
776
  }
@@ -797,7 +778,7 @@ const nn = pe, ni = ({
797
778
  "div",
798
779
  {
799
780
  "data-slot": "sidecar-box-root",
800
- className: pe(
781
+ className: fe(
801
782
  "relative text-xs flex min-w-0 flex-col rounded-xl border bg-muted/50 bg-clip-padding",
802
783
  "before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-xl)-1px)] before:shadow-[0_1px_2px_1px_--theme(--color-black/4%)] after:pointer-events-none after:absolute after:-inset-[5px] after:-z-1 after:rounded-[calc(var(--radius-xl)+4px)] after:border after:border-border/50 after:bg-clip-padding **:data-[slot=particle-wrapper]:w-full **:data-[slot=particle-wrapper]:max-w-64 lg:col-span-1 dark:after:bg-background/72",
803
784
  n
@@ -808,7 +789,7 @@ const nn = pe, ni = ({
808
789
  "div",
809
790
  {
810
791
  "data-slot": "sidecar-box-head",
811
- className: pe(
792
+ className: fe(
812
793
  "flex items-center gap-3 rounded-b-xl p-2.5 data-[slot=head]:rounded-b-none",
813
794
  n
814
795
  ),
@@ -818,7 +799,7 @@ const nn = pe, ni = ({
818
799
  "div",
819
800
  {
820
801
  "data-slot": "sidecar-box-body",
821
- className: pe(
802
+ className: fe(
822
803
  "overflow-auto -m-px flex min-w-0 flex-1 flex-col overflow-x-auto rounded-t-xl border bg-background",
823
804
  "rounded-b last:rounded-b-xl",
824
805
  "before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-xl)-1px)] dark:before:shadow-[0_-1px_--theme(--color-white/8%)]",
@@ -826,17 +807,17 @@ const nn = pe, ni = ({
826
807
  ),
827
808
  children: e
828
809
  }
829
- ), ui = ({ children: e, className: n }) => /* @__PURE__ */ s.jsx(
810
+ ), ci = ({ children: e, className: n }) => /* @__PURE__ */ s.jsx(
830
811
  "div",
831
812
  {
832
813
  "data-slot": "sidecar-box-footer",
833
- className: pe(
814
+ className: fe(
834
815
  "p-2 rounded-b-xl data-[slot=sidecar-box-footer]:rounded-b-none",
835
816
  n
836
817
  ),
837
818
  children: e
838
819
  }
839
- ), pi = ({
820
+ ), ui = ({
840
821
  code: e,
841
822
  isOnScreen: n,
842
823
  shouldLazyHighlight: r
@@ -857,7 +838,7 @@ const nn = pe, ni = ({
857
838
  className: "[--scrollbar-color:gray] rounded-none text-xs max-h-[200px]"
858
839
  }
859
840
  ) })
860
- ] }), fi = ({
841
+ ] }), pi = ({
861
842
  server: e,
862
843
  servers: n,
863
844
  operation: r,
@@ -894,10 +875,10 @@ const nn = pe, ni = ({
894
875
  examples: a
895
876
  }
896
877
  );
897
- }, di = (e) => {
878
+ }, fi = (e) => {
898
879
  if (e != null)
899
880
  return typeof e == "string" ? e.trim() : JSON.stringify(e, null, 2);
900
- }, hi = (e) => e ? e.endsWith("+json") ? "json" : e.endsWith("+xml") ? "xml" : e.endsWith("+yaml") ? "yaml" : {
881
+ }, di = (e) => e ? e.endsWith("+json") ? "json" : e.endsWith("+xml") ? "xml" : e.endsWith("+yaml") ? "yaml" : {
901
882
  "text/html": "html",
902
883
  "application/x-ndjson": "json",
903
884
  "application/json": "json",
@@ -915,7 +896,7 @@ const nn = pe, ni = ({
915
896
  isOnScreen: l,
916
897
  shouldLazyHighlight: t
917
898
  }) => {
918
- const o = e[a], i = o?.examples ?? [], u = i?.[c], h = di(u?.value), p = hi(o?.mediaType);
899
+ const o = e[a], i = o?.examples ?? [], u = i?.[c], h = fi(u?.value), p = di(o?.mediaType);
919
900
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
920
901
  /* @__PURE__ */ s.jsxs(_r, { className: "p-0", children: [
921
902
  u?.externalValue ? /* @__PURE__ */ s.jsx("div", { className: "p-4", children: /* @__PURE__ */ s.jsxs(
@@ -941,7 +922,7 @@ const nn = pe, ni = ({
941
922
  ) : /* @__PURE__ */ s.jsx("div", { className: "grid place-items-center text-xs text-muted-foreground min-h-18", children: "No example specified for this content type" }),
942
923
  u?.description && /* @__PURE__ */ s.jsx("div", { className: "border-t text-xs px-3 py-1.5 text-muted-foreground", children: u.description })
943
924
  ] }),
944
- /* @__PURE__ */ s.jsxs(ui, { className: "text-xs", children: [
925
+ /* @__PURE__ */ s.jsxs(ci, { className: "text-xs", children: [
945
926
  n && /* @__PURE__ */ s.jsx("div", { className: "text-muted-foreground text-xs px-1 py-2", children: n }),
946
927
  (i.length !== 0 || e.length !== 0) && /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 justify-between min-w-0", children: [
947
928
  /* @__PURE__ */ s.jsx("div", { className: "flex items-center gap-2 flex-wrap", children: e.length > 1 ? /* @__PURE__ */ s.jsx(
@@ -992,7 +973,7 @@ const nn = pe, ni = ({
992
973
  ] })
993
974
  ] })
994
975
  ] });
995
- }, mi = ({
976
+ }, hi = ({
996
977
  content: e,
997
978
  onExampleChange: n,
998
979
  isOnScreen: r,
@@ -1119,27 +1100,27 @@ var on = (e, n) => {
1119
1100
  }, this.indentationCharacter = e || sn, this.lineJoin = n ?? ln;
1120
1101
  }
1121
1102
  }, Ot, cn;
1122
- function yi() {
1103
+ function mi() {
1123
1104
  return cn || (cn = 1, Ot = function(e) {
1124
1105
  return Object.prototype.toString.call(e) === "[object RegExp]";
1125
1106
  }), Ot;
1126
1107
  }
1127
1108
  var Tt, un;
1128
- function gi() {
1109
+ function yi() {
1129
1110
  return un || (un = 1, Tt = function(e) {
1130
1111
  var n = typeof e;
1131
1112
  return e !== null && (n === "object" || n === "function");
1132
1113
  }), Tt;
1133
1114
  }
1134
1115
  var rt = {}, pn;
1135
- function vi() {
1116
+ function gi() {
1136
1117
  return pn || (pn = 1, Object.defineProperty(rt, "__esModule", { value: !0 }), rt.default = (e) => Object.getOwnPropertySymbols(e).filter((n) => Object.prototype.propertyIsEnumerable.call(e, n))), rt;
1137
1118
  }
1138
1119
  var Ct, fn;
1139
- function xi() {
1120
+ function vi() {
1140
1121
  if (fn) return Ct;
1141
1122
  fn = 1;
1142
- const e = yi(), n = gi(), r = vi().default;
1123
+ const e = mi(), n = yi(), r = gi().default;
1143
1124
  return Ct = (a, c, l) => {
1144
1125
  const t = [];
1145
1126
  return (function o(i, u, h) {
@@ -1199,14 +1180,14 @@ function xi() {
1199
1180
  })(a, c, l);
1200
1181
  }, Ct;
1201
1182
  }
1202
- var bi = xi();
1203
- const ue = /* @__PURE__ */ Vo(bi);
1183
+ var xi = vi();
1184
+ const ue = /* @__PURE__ */ Wo(xi);
1204
1185
  function Ge(e, n = {}) {
1205
1186
  const { delimiter: r = '"', escapeChar: a = "\\", escapeNewlines: c = !0 } = n;
1206
1187
  return [...e.toString()].map((t) => t === "\b" ? `${a}b` : t === " " ? `${a}t` : t === `
1207
1188
  ` ? c ? `${a}n` : t : t === "\f" ? `${a}f` : t === "\r" ? c ? `${a}r` : t : t === a ? a + a : t === r ? a + r : t < " " || t > "~" ? JSON.stringify(t).slice(1, -1) : t).join("");
1208
1189
  }
1209
- var We = (e) => Ge(e, { delimiter: "'" }), le = (e) => Ge(e, { delimiter: '"' }), ji = {
1190
+ var We = (e) => Ge(e, { delimiter: "'" }), le = (e) => Ge(e, { delimiter: '"' }), bi = {
1210
1191
  info: {
1211
1192
  key: "libcurl",
1212
1193
  title: "Libcurl",
@@ -1222,7 +1203,7 @@ var We = (e) => Ge(e, { delimiter: "'" }), le = (e) => Ge(e, { delimiter: '"' })
1222
1203
  l(`headers = curl_slist_append(headers, "${u}: ${le(r[u])}");`);
1223
1204
  }), l("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), a.cookie && (t(), l(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${a.cookie}");`)), c.text && (t(), l(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(c.text)});`)), t(), l("CURLcode ret = curl_easy_perform(hnd);"), o();
1224
1205
  }
1225
- }, $i = {
1206
+ }, ji = {
1226
1207
  info: {
1227
1208
  key: "c",
1228
1209
  title: "C",
@@ -1230,19 +1211,19 @@ var We = (e) => Ge(e, { delimiter: "'" }), le = (e) => Ge(e, { delimiter: '"' })
1230
1211
  cli: "c"
1231
1212
  },
1232
1213
  clientsById: {
1233
- libcurl: ji
1214
+ libcurl: bi
1234
1215
  }
1235
- }, fe = (e, n) => Object.keys(e).find((r) => r.toLowerCase() === n.toLowerCase()), ve = (e, n) => {
1236
- const r = fe(e, n);
1216
+ }, pe = (e, n) => Object.keys(e).find((r) => r.toLowerCase() === n.toLowerCase()), ve = (e, n) => {
1217
+ const r = pe(e, n);
1237
1218
  if (r)
1238
1219
  return e[r];
1239
- }, ft = (e, n) => !!fe(e, n), wi = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
1220
+ }, ft = (e, n) => !!pe(e, n), $i = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
1240
1221
  (n) => e.indexOf(n) > -1
1241
1222
  ), dn = class {
1242
1223
  constructor(e) {
1243
1224
  this.name = "", this.toString = () => `:${this.name}`, this.name = e;
1244
1225
  }
1245
- }, Si = class {
1226
+ }, wi = class {
1246
1227
  constructor(e) {
1247
1228
  this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
1248
1229
  }
@@ -1279,7 +1260,7 @@ ${r}`);
1279
1260
  default:
1280
1261
  return e.toString();
1281
1262
  }
1282
- }, Oi = {
1263
+ }, Si = {
1283
1264
  info: {
1284
1265
  key: "clj_http",
1285
1266
  title: "clj-http",
@@ -1299,21 +1280,21 @@ ${r}`);
1299
1280
  case "application/json":
1300
1281
  {
1301
1282
  u["content-type"] = new dn("json"), u["form-params"] = r.jsonObj;
1302
- const h = fe(u.headers, "content-type");
1283
+ const h = pe(u.headers, "content-type");
1303
1284
  h && delete u.headers[h];
1304
1285
  }
1305
1286
  break;
1306
1287
  case "application/x-www-form-urlencoded":
1307
1288
  {
1308
1289
  u["form-params"] = r.paramsObj;
1309
- const h = fe(u.headers, "content-type");
1290
+ const h = pe(u.headers, "content-type");
1310
1291
  h && delete u.headers[h];
1311
1292
  }
1312
1293
  break;
1313
1294
  case "text/plain":
1314
1295
  {
1315
1296
  u.body = r.text;
1316
- const h = fe(u.headers, "content-type");
1297
+ const h = pe(u.headers, "content-type");
1317
1298
  h && delete u.headers[h];
1318
1299
  }
1319
1300
  break;
@@ -1321,12 +1302,12 @@ ${r}`);
1321
1302
  if (r.params) {
1322
1303
  u.multipart = r.params.map((p) => p.fileName && !p.value ? {
1323
1304
  name: p.name,
1324
- content: new Si(p.fileName)
1305
+ content: new wi(p.fileName)
1325
1306
  } : {
1326
1307
  name: p.name,
1327
1308
  content: p.value
1328
1309
  });
1329
- const h = fe(u.headers, "content-type");
1310
+ const h = pe(u.headers, "content-type");
1330
1311
  h && delete u.headers[h];
1331
1312
  }
1332
1313
  break;
@@ -1336,7 +1317,7 @@ ${r}`);
1336
1317
  case "application/json":
1337
1318
  {
1338
1319
  u.accept = new dn("json");
1339
- const h = fe(u.headers, "accept");
1320
+ const h = pe(u.headers, "accept");
1340
1321
  h && delete u.headers[h];
1341
1322
  }
1342
1323
  break;
@@ -1350,16 +1331,16 @@ ${r}`);
1350
1331
  }
1351
1332
  return o();
1352
1333
  }
1353
- }, Ti = {
1334
+ }, Oi = {
1354
1335
  info: {
1355
1336
  key: "clojure",
1356
1337
  title: "Clojure",
1357
1338
  default: "clj_http"
1358
1339
  },
1359
1340
  clientsById: {
1360
- clj_http: Oi
1341
+ clj_http: Si
1361
1342
  }
1362
- }, Ci = (e) => {
1343
+ }, Ti = (e) => {
1363
1344
  let n = ve(e, "accept-encoding");
1364
1345
  if (!n)
1365
1346
  return [];
@@ -1376,7 +1357,7 @@ ${r}`);
1376
1357
  }
1377
1358
  });
1378
1359
  }), a;
1379
- }, Pi = {
1360
+ }, Ci = {
1380
1361
  info: {
1381
1362
  key: "httpclient",
1382
1363
  title: "HttpClient",
@@ -1391,7 +1372,7 @@ ${r}`);
1391
1372
  }, { push: t, join: o } = new Q({ indent: l.indent });
1392
1373
  t("using System.Net.Http.Headers;");
1393
1374
  let i = "";
1394
- const u = !!e.cookie, h = Ci(e);
1375
+ const u = !!e.cookie, h = Ti(e);
1395
1376
  (u || h.length) && (i = "clientHandler", t("var clientHandler = new HttpClientHandler"), t("{"), u && t("UseCookies = false,", 1), h.length && t(`AutomaticDecompression = ${h.join(" | ")},`, 1), t("};")), t(`var client = new HttpClient(${i});`), t("var request = new HttpRequestMessage"), t("{");
1396
1377
  const p = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
1397
1378
  r = r.toUpperCase(), r && p.includes(r) ? r = `HttpMethod.${r[0]}${r.substring(1).toLowerCase()}` : r = `new HttpMethod("${r}")`, t(`Method = ${r},`, 1), t(`RequestUri = new Uri("${a}"),`, 1);
@@ -1428,10 +1409,10 @@ ${r}`);
1428
1409
  return t("};"), t("using (var response = await client.SendAsync(request))"), t("{"), t("response.EnsureSuccessStatusCode();", 1), t("var body = await response.Content.ReadAsStringAsync();", 1), t("Console.WriteLine(body);", 1), t("}"), o();
1429
1410
  }
1430
1411
  };
1431
- function ki(e) {
1412
+ function Pi(e) {
1432
1413
  return e[0].toUpperCase() + e.slice(1).toLowerCase();
1433
1414
  }
1434
- var Ni = {
1415
+ var ki = {
1435
1416
  info: {
1436
1417
  key: "restsharp",
1437
1418
  title: "RestSharp",
@@ -1481,11 +1462,11 @@ var Ni = {
1481
1462
  if (!c.text) break;
1482
1463
  t(`request.AddStringBody("${c.text}", "${c.mimeType}");`);
1483
1464
  }
1484
- return t(`var response = await client.${ki(e)}Async(request);
1465
+ return t(`var response = await client.${Pi(e)}Async(request);
1485
1466
  `), t(`Console.WriteLine("{0}", response.Content);
1486
1467
  `), o();
1487
1468
  }
1488
- }, qi = {
1469
+ }, Ni = {
1489
1470
  info: {
1490
1471
  key: "csharp",
1491
1472
  title: "C#",
@@ -1493,10 +1474,10 @@ var Ni = {
1493
1474
  cli: "dotnet"
1494
1475
  },
1495
1476
  clientsById: {
1496
- httpclient: Pi,
1497
- restsharp: Ni
1477
+ httpclient: Ci,
1478
+ restsharp: ki
1498
1479
  }
1499
- }, Ri = {
1480
+ }, qi = {
1500
1481
  info: {
1501
1482
  key: "native",
1502
1483
  title: "NewRequest",
@@ -1514,7 +1495,7 @@ var Ni = {
1514
1495
  t(`req.Header.Add("${x}", "${le(r[x])}")`, y);
1515
1496
  }), l()), t(`res, ${m} := ${g}.Do(req)`, y), j(), h && (l(), t("defer res.Body.Close()", y), t(`body, ${m} := io.ReadAll(res.Body)`, y), j()), l(), h && t("fmt.Println(string(body))", y), i && (l(), t("}")), o();
1516
1497
  }
1517
- }, Ei = {
1498
+ }, Ri = {
1518
1499
  info: {
1519
1500
  key: "go",
1520
1501
  title: "Go",
@@ -1522,10 +1503,10 @@ var Ni = {
1522
1503
  cli: "go"
1523
1504
  },
1524
1505
  clientsById: {
1525
- native: Ri
1506
+ native: qi
1526
1507
  }
1527
1508
  }, mn = `\r
1528
- `, Ai = {
1509
+ `, Ei = {
1529
1510
  info: {
1530
1511
  key: "http1.1",
1531
1512
  title: "HTTP/1.1",
@@ -1553,16 +1534,16 @@ var Ni = {
1553
1534
  const y = h(), j = l.text || "";
1554
1535
  return `${y}${mn}${j}`;
1555
1536
  }
1556
- }, Ii = {
1537
+ }, Ai = {
1557
1538
  info: {
1558
1539
  key: "http",
1559
1540
  title: "HTTP",
1560
1541
  default: "http1.1"
1561
1542
  },
1562
1543
  clientsById: {
1563
- "http1.1": Ai
1544
+ "http1.1": Ei
1564
1545
  }
1565
- }, Ui = {
1546
+ }, Ii = {
1566
1547
  info: {
1567
1548
  key: "asynchttp",
1568
1549
  title: "AsyncHttp",
@@ -1579,7 +1560,7 @@ var Ni = {
1579
1560
  o(`.setHeader("${u}", "${le(n[u])}")`, 1);
1580
1561
  }), r.text && o(`.setBody(${JSON.stringify(r.text)})`, 1), o(".execute()", 1), o(".toCompletableFuture()", 1), o(".thenAccept(System.out::println)", 1), o(".join();", 1), t(), o("client.close();"), i();
1581
1562
  }
1582
- }, Li = {
1563
+ }, Ui = {
1583
1564
  info: {
1584
1565
  key: "nethttp",
1585
1566
  title: "java.net.http",
@@ -1601,7 +1582,7 @@ var Ni = {
1601
1582
  "HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"
1602
1583
  ), t("System.out.println(response.body());"), o();
1603
1584
  }
1604
- }, _i = {
1585
+ }, Li = {
1605
1586
  info: {
1606
1587
  key: "okhttp",
1607
1588
  title: "OkHttp",
@@ -1618,7 +1599,7 @@ var Ni = {
1618
1599
  t(`.addHeader("${p}", "${le(a[p])}")`, 1);
1619
1600
  }), t(".build();", 1), o(), t("Response response = client.newCall(request).execute();"), i();
1620
1601
  }
1621
- }, Fi = {
1602
+ }, _i = {
1622
1603
  info: {
1623
1604
  key: "unirest",
1624
1605
  title: "Unirest",
@@ -1635,19 +1616,19 @@ var Ni = {
1635
1616
  o(`.header("${u}", "${le(n[u])}")`, 1);
1636
1617
  }), r.text && o(`.body(${JSON.stringify(r.text)})`, 1), o(".asString();", 1), t();
1637
1618
  }
1638
- }, Bi = {
1619
+ }, Fi = {
1639
1620
  info: {
1640
1621
  key: "java",
1641
1622
  title: "Java",
1642
1623
  default: "unirest"
1643
1624
  },
1644
1625
  clientsById: {
1645
- asynchttp: Ui,
1646
- nethttp: Li,
1647
- okhttp: _i,
1648
- unirest: Fi
1626
+ asynchttp: Ii,
1627
+ nethttp: Ui,
1628
+ okhttp: Li,
1629
+ unirest: _i
1649
1630
  }
1650
- }, Hi = {
1631
+ }, Bi = {
1651
1632
  info: {
1652
1633
  key: "axios",
1653
1634
  title: "Axios",
@@ -1691,7 +1672,7 @@ var Ni = {
1691
1672
  }).replace('"[form]"', "form");
1692
1673
  return i(`const options = ${m};`), o(), i("axios"), i(".request(options)", 1), i(".then(function (response) {", 1), i("console.log(response.data);", 2), i("})", 1), i(".catch(function (error) {", 1), i("console.error(error);", 2), i("});", 1), u();
1693
1674
  }
1694
- }, Mi = {
1675
+ }, Hi = {
1695
1676
  info: {
1696
1677
  key: "fetch",
1697
1678
  title: "fetch",
@@ -1717,7 +1698,7 @@ var Ni = {
1717
1698
  case "multipart/form-data":
1718
1699
  if (!r.params)
1719
1700
  break;
1720
- const h = fe(n, "content-type");
1701
+ const h = pe(n, "content-type");
1721
1702
  h && delete n[h], i("const form = new FormData();"), r.params.forEach((p) => {
1722
1703
  i(`form.append('${p.name}', '${p.value || p.fileName || ""}');`);
1723
1704
  }), t();
@@ -1744,7 +1725,7 @@ var Ni = {
1744
1725
  })};`
1745
1726
  ), t(), r.params && r.mimeType === "multipart/form-data" && (i("options.body = form;"), t()), i(`fetch('${a}', options)`), i(".then(response => response.json())", 1), i(".then(response => console.log(response))", 1), i(".catch(err => console.error(err));", 1), o();
1746
1727
  }
1747
- }, zi = {
1728
+ }, Mi = {
1748
1729
  info: {
1749
1730
  key: "jquery",
1750
1731
  title: "jQuery",
@@ -1776,7 +1757,7 @@ var Ni = {
1776
1757
  if (o("const form = new FormData();"), a.params.forEach((p) => {
1777
1758
  o(`form.append('${p.name}', '${p.value || p.fileName || ""}');`);
1778
1759
  }), u.processData = !1, u.contentType = !1, u.mimeType = "multipart/form-data", u.data = "[form]", ft(r, "content-type") && ve(r, "content-type")?.includes("boundary")) {
1779
- const p = fe(r, "content-type");
1760
+ const p = pe(r, "content-type");
1780
1761
  p && delete u.headers[p];
1781
1762
  }
1782
1763
  t();
@@ -1787,7 +1768,7 @@ var Ni = {
1787
1768
  const h = ue(u, { indent: l.indent }).replace("'[form]'", "form");
1788
1769
  return o(`const settings = ${h};`), t(), o("$.ajax(settings).done(function (response) {"), o("console.log(response);", 1), o("});"), i();
1789
1770
  }
1790
- }, Gi = {
1771
+ }, zi = {
1791
1772
  info: {
1792
1773
  key: "xhr",
1793
1774
  title: "XMLHttpRequest",
@@ -1815,7 +1796,7 @@ var Ni = {
1815
1796
  if (o("const data = new FormData();"), e.params.forEach((u) => {
1816
1797
  o(`data.append('${u.name}', '${u.value || u.fileName || ""}');`);
1817
1798
  }), ft(n, "content-type") && ve(n, "content-type")?.includes("boundary")) {
1818
- const u = fe(n, "content-type");
1799
+ const u = pe(n, "content-type");
1819
1800
  u && delete n[u];
1820
1801
  }
1821
1802
  t();
@@ -1827,19 +1808,19 @@ var Ni = {
1827
1808
  o(`xhr.setRequestHeader('${u}', '${We(n[u])}');`);
1828
1809
  }), t(), o("xhr.send(data);"), i();
1829
1810
  }
1830
- }, Wi = {
1811
+ }, Gi = {
1831
1812
  info: {
1832
1813
  key: "javascript",
1833
1814
  title: "JavaScript",
1834
1815
  default: "xhr"
1835
1816
  },
1836
1817
  clientsById: {
1837
- xhr: Gi,
1838
- axios: Hi,
1839
- fetch: Mi,
1840
- jquery: zi
1818
+ xhr: zi,
1819
+ axios: Bi,
1820
+ fetch: Hi,
1821
+ jquery: Mi
1841
1822
  }
1842
- }, Vi = {
1823
+ }, Wi = {
1843
1824
  info: {
1844
1825
  key: "native",
1845
1826
  title: "Native JSON",
@@ -1873,16 +1854,16 @@ var Ni = {
1873
1854
  }
1874
1855
  return typeof a > "u" || a === "" ? "No JSON body" : JSON.stringify(a, null, r.indent);
1875
1856
  }
1876
- }, Ji = {
1857
+ }, Vi = {
1877
1858
  info: {
1878
1859
  key: "json",
1879
1860
  title: "JSON",
1880
1861
  default: "native"
1881
1862
  },
1882
1863
  clientsById: {
1883
- native: Vi
1864
+ native: Wi
1884
1865
  }
1885
- }, Di = {
1866
+ }, Ji = {
1886
1867
  info: {
1887
1868
  key: "okhttp",
1888
1869
  title: "OkHttp",
@@ -1899,16 +1880,16 @@ var Ni = {
1899
1880
  i(`.addHeader("${p}", "${le(a[p])}")`, 1);
1900
1881
  }), i(".build()", 1), t(), i("val response = client.newCall(request).execute()"), o();
1901
1882
  }
1902
- }, Qi = {
1883
+ }, Di = {
1903
1884
  info: {
1904
1885
  key: "kotlin",
1905
1886
  title: "Kotlin",
1906
1887
  default: "okhttp"
1907
1888
  },
1908
1889
  clientsById: {
1909
- okhttp: Di
1890
+ okhttp: Ji
1910
1891
  }
1911
- }, Ki = {
1892
+ }, Qi = {
1912
1893
  info: {
1913
1894
  key: "axios",
1914
1895
  title: "Axios",
@@ -1942,7 +1923,7 @@ var Ni = {
1942
1923
  const p = ue(h, { indent: " ", inlineCharacterLimit: 80 });
1943
1924
  return i(`const options = ${p};`), t(), i("axios"), i(".request(options)", 1), i(".then(function (response) {", 1), i("console.log(response.data);", 2), i("})", 1), i(".catch(function (error) {", 1), i("console.error(error);", 2), i("});", 1), o();
1944
1925
  }
1945
- }, Yi = {
1926
+ }, Ki = {
1946
1927
  info: {
1947
1928
  key: "fetch",
1948
1929
  title: "Fetch",
@@ -1974,7 +1955,7 @@ var Ni = {
1974
1955
  case "multipart/form-data":
1975
1956
  if (!r.params)
1976
1957
  break;
1977
- const b = fe(a, "content-type");
1958
+ const b = pe(a, "content-type");
1978
1959
  b && delete a[b], p("const FormData = require('form-data');"), u("const formData = new FormData();"), i(), r.params.forEach((f) => {
1979
1960
  if (!f.fileName && !f.fileName && !f.contentType) {
1980
1961
  u(`formData.append('${f.name}', '${f.value}');`);
@@ -2001,7 +1982,7 @@ var Ni = {
2001
1982
  });
2002
1983
  return u(`const options = ${j};`), i(), o && p("const fs = require('fs');"), r.params && r.mimeType === "multipart/form-data" && (u("options.body = formData;"), i()), u("fetch(url, options)"), u(".then(res => res.json())", 1), u(".then(json => console.log(json))", 1), u(".catch(err => console.error('error:' + err));", 1), h().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
2003
1984
  }
2004
- }, Xi = {
1985
+ }, Yi = {
2005
1986
  info: {
2006
1987
  key: "native",
2007
1988
  title: "HTTP",
@@ -2039,7 +2020,7 @@ var Ni = {
2039
2020
  }
2040
2021
  return i("req.end();"), o();
2041
2022
  }
2042
- }, Zi = {
2023
+ }, Xi = {
2043
2024
  info: {
2044
2025
  key: "request",
2045
2026
  title: "Request",
@@ -2092,7 +2073,7 @@ var Ni = {
2092
2073
  u(`jar.setCookie(request.cookie('${encodeURIComponent(b)}=${encodeURIComponent(f)}'), '${n}');`);
2093
2074
  }), h(), y((b) => b.replace(/'JAR'/, "jar"))), i && m("const fs = require('fs');"), u(`const options = ${ue(j, { indent: " ", inlineCharacterLimit: 80 })};`), h(), u("request(options, function (error, response, body) {"), u("if (error) throw new Error(error);", 1), h(), u("console.log(body);", 1), u("});"), p();
2094
2075
  }
2095
- }, es = {
2076
+ }, Zi = {
2096
2077
  info: {
2097
2078
  key: "unirest",
2098
2079
  title: "Unirest",
@@ -2133,7 +2114,7 @@ var Ni = {
2133
2114
  }
2134
2115
  return i && y("const fs = require('fs');"), m("req.end(function (res) {"), m("if (res.error) throw new Error(res.error);", 1), h(), m("console.log(res.body);", 1), m("});"), p();
2135
2116
  }
2136
- }, ts = {
2117
+ }, es = {
2137
2118
  info: {
2138
2119
  key: "node",
2139
2120
  title: "Node.js",
@@ -2141,11 +2122,11 @@ var Ni = {
2141
2122
  cli: "node %s"
2142
2123
  },
2143
2124
  clientsById: {
2144
- native: Xi,
2145
- request: Zi,
2146
- unirest: es,
2147
- axios: Ki,
2148
- fetch: Yi
2125
+ native: Yi,
2126
+ request: Xi,
2127
+ unirest: Zi,
2128
+ axios: Qi,
2129
+ fetch: Ki
2149
2130
  }
2150
2131
  }, Pt = (e, n, r, a) => {
2151
2132
  const c = `${e} *${n} = `, l = kr(r, a ? c.length : void 0);
@@ -2169,7 +2150,7 @@ var Ni = {
2169
2150
  default:
2170
2151
  return e == null ? "" : `@"${e.toString().replace(/"/g, '\\"')}"`;
2171
2152
  }
2172
- }, rs = {
2153
+ }, ts = {
2173
2154
  info: {
2174
2155
  key: "nsurlsession",
2175
2156
  title: "NSURLSession",
@@ -2225,16 +2206,16 @@ var Ni = {
2225
2206
  2
2226
2207
  ), t(' NSLog(@"%@", httpResponse);', 2), t(" }", 1), t(" }];"), t("[dataTask resume];"), o();
2227
2208
  }
2228
- }, ns = {
2209
+ }, rs = {
2229
2210
  info: {
2230
2211
  key: "objc",
2231
2212
  title: "Objective-C",
2232
2213
  default: "nsurlsession"
2233
2214
  },
2234
2215
  clientsById: {
2235
- nsurlsession: rs
2216
+ nsurlsession: ts
2236
2217
  }
2237
- }, as = {
2218
+ }, ns = {
2238
2219
  info: {
2239
2220
  key: "cohttp",
2240
2221
  title: "CoHTTP",
@@ -2260,14 +2241,14 @@ var Ni = {
2260
2241
  const p = h.length ? "~headers " : "", m = r.text ? "~body " : "", y = t.includes(a.toLowerCase()) ? `\`${a.toUpperCase()}` : `(Code.method_of_string "${a}")`;
2261
2242
  return o(`Client.call ${p}${m}${y} uri`), o(">>= fun (res, body_stream) ->"), o("(* Do stuff with the result *)", 1), u();
2262
2243
  }
2263
- }, os = {
2244
+ }, as = {
2264
2245
  info: {
2265
2246
  key: "ocaml",
2266
2247
  title: "OCaml",
2267
2248
  default: "cohttp"
2268
2249
  },
2269
2250
  clientsById: {
2270
- cohttp: as
2251
+ cohttp: ns
2271
2252
  }
2272
2253
  }, re = (e, n, r) => {
2273
2254
  switch (r = r || "", n = n || "", Object.prototype.toString.call(e)) {
@@ -2328,7 +2309,7 @@ ${r}]`;
2328
2309
  "UNLOCK",
2329
2310
  "UPDATE",
2330
2311
  "VERSION_CONTROL"
2331
- ], is = {
2312
+ ], os = {
2332
2313
  info: {
2333
2314
  key: "curl",
2334
2315
  title: "cURL",
@@ -2406,7 +2387,7 @@ ${u}` });
2406
2387
  return d.length && (S.push("CURLOPT_HTTPHEADER => ["), S.push(d.join(`,
2407
2388
  ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = curl_exec($curl);"), b("$err = curl_error($curl);"), f(), b("curl_close($curl);"), f(), b("if ($err) {"), b(p ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), b("} else {"), b("echo $response;", 1), b("}"), !m && i && (f(), b("?>")), g();
2408
2389
  }
2409
- }, ss = {
2390
+ }, is = {
2410
2391
  info: {
2411
2392
  key: "guzzle",
2412
2393
  title: "Guzzle",
@@ -2442,7 +2423,7 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
2442
2423
  contents: f.value
2443
2424
  });
2444
2425
  }), b.length && (p(`'multipart' => ${re(b, t.indent + t.indent, t.indent)}`, 1), ft(c, "content-type") && ve(c, "content-type")?.indexOf("boundary"))) {
2445
- const f = fe(c, "content-type");
2426
+ const f = pe(c, "content-type");
2446
2427
  f && delete c[f];
2447
2428
  }
2448
2429
  break;
@@ -2456,7 +2437,7 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
2456
2437
  return j.length && y.push(`${t.indent}${t.indent}'cookie' => '${We(j)}',`), y.length && (p("'headers' => [", 1), p(y.join(`
2457
2438
  `)), p("],", 1)), o("$client = new \\GuzzleHttp\\Client();"), i(), h.length ? (o(`$response = $client->request('${r}', '${n}', [`), o(m()), o("]);")) : o(`$response = $client->request('${r}', '${n}');`), i(), o("echo $response->getBody();"), !t.noTags && t.closingTag && (i(), o("?>")), u();
2458
2439
  }
2459
- }, ls = {
2440
+ }, ss = {
2460
2441
  info: {
2461
2442
  key: "http1",
2462
2443
  title: "HTTP v1",
@@ -2478,7 +2459,7 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
2478
2459
  }
2479
2460
  return p("try {"), p("$response = $request->send();", 1), m(), p("echo $response->getBody();", 1), p("} catch (HttpException $ex) {"), p("echo $ex;", 1), p("}"), !u && o && (m(), p("?>")), y();
2480
2461
  }
2481
- }, cs = {
2462
+ }, ls = {
2482
2463
  info: {
2483
2464
  key: "http2",
2484
2465
  title: "HTTP v2",
@@ -2511,7 +2492,7 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
2511
2492
  });
2512
2493
  const g = Object.keys(f).length ? re(f, i) : "null", x = b.length ? re(b, i) : "null";
2513
2494
  if (p("$body = new http\\Message\\Body;"), p(`$body->addForm(${g}, ${x});`), ft(n, "content-type") && ve(n, "content-type")?.indexOf("boundary")) {
2514
- const S = fe(n, "content-type");
2495
+ const S = pe(n, "content-type");
2515
2496
  S && delete n[S];
2516
2497
  }
2517
2498
  m(), j = !0;
@@ -2525,7 +2506,7 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
2525
2506
  }
2526
2507
  return p(`$request->setRequestUrl(${re(l)});`), p(`$request->setRequestMethod(${re(r)});`), j && (p("$request->setBody($body);"), m()), Object.keys(a).length && (p(`$request->setQuery(new http\\QueryString(${re(a, i)}));`), m()), Object.keys(n).length && (p(`$request->setHeaders(${re(n, i)});`), m()), Object.keys(c).length && (m(), p(`$client->setCookies(${re(c, i)});`), m()), p("$client->enqueue($request)->send();"), p("$response = $client->getResponse();"), m(), p("echo $response->getBody();"), !u && o && (m(), p("?>")), y();
2527
2508
  }
2528
- }, us = {
2509
+ }, cs = {
2529
2510
  info: {
2530
2511
  key: "php",
2531
2512
  title: "PHP",
@@ -2533,10 +2514,10 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
2533
2514
  cli: "php %s"
2534
2515
  },
2535
2516
  clientsById: {
2536
- curl: is,
2537
- guzzle: ss,
2538
- http1: ls,
2539
- http2: cs
2517
+ curl: os,
2518
+ guzzle: is,
2519
+ http1: ss,
2520
+ http2: ls
2540
2521
  }
2541
2522
  }, Ra = (e) => ({ method: r, headersObj: a, cookies: c, uriObj: l, fullUrl: t, postData: o, allHeaders: i }) => {
2542
2523
  const { push: u, join: h } = new Q();
@@ -2550,7 +2531,7 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
2550
2531
  }), m.push("-WebSession $session")), o.text && (m.push(
2551
2532
  `-ContentType '${Ge(ve(i, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
2552
2533
  ), m.push(`-Body '${o.text}'`)), u(`$response = ${e} -Uri '${t}' -Method ${r} ${m.join(" ")}`.trim()), h();
2553
- }, ps = {
2534
+ }, us = {
2554
2535
  info: {
2555
2536
  key: "restmethod",
2556
2537
  title: "Invoke-RestMethod",
@@ -2559,7 +2540,7 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
2559
2540
  extname: ".ps1"
2560
2541
  },
2561
2542
  convert: Ra("Invoke-RestMethod")
2562
- }, fs = {
2543
+ }, ps = {
2563
2544
  info: {
2564
2545
  key: "webrequest",
2565
2546
  title: "Invoke-WebRequest",
@@ -2568,15 +2549,15 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
2568
2549
  extname: ".ps1"
2569
2550
  },
2570
2551
  convert: Ra("Invoke-WebRequest")
2571
- }, ds = {
2552
+ }, fs = {
2572
2553
  info: {
2573
2554
  key: "powershell",
2574
2555
  title: "Powershell",
2575
2556
  default: "webrequest"
2576
2557
  },
2577
2558
  clientsById: {
2578
- webrequest: fs,
2579
- restmethod: ps
2559
+ webrequest: ps,
2560
+ restmethod: us
2580
2561
  }
2581
2562
  };
2582
2563
  function gn(e, n, r, a, c) {
@@ -2608,7 +2589,7 @@ var Ie = (e, n, r) => {
2608
2589
  default:
2609
2590
  return e == null ? "" : `"${e.toString().replace(/"/g, '\\"')}"`;
2610
2591
  }
2611
- }, hs = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], ms = {
2592
+ }, ds = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], hs = {
2612
2593
  info: {
2613
2594
  key: "requests",
2614
2595
  title: "Requests",
@@ -2639,7 +2620,7 @@ var Ie = (e, n, r) => {
2639
2620
  x.fileName ? (x.contentType ? m[x.name] = `('${x.fileName}', open('${x.fileName}', 'rb'), '${x.contentType}')` : m[x.name] = `('${x.fileName}', open('${x.fileName}', 'rb'))`, y = !0) : (p[x.name] = x.value, j = !0);
2640
2621
  }), y) {
2641
2622
  t(`files = ${Ie(m, l)}`), j && t(`payload = ${Ie(p, l)}`);
2642
- const x = fe(h, "content-type");
2623
+ const x = pe(h, "content-type");
2643
2624
  x && delete h[x];
2644
2625
  } else {
2645
2626
  const x = JSON.stringify(n.text);
@@ -2671,10 +2652,10 @@ var Ie = (e, n, r) => {
2671
2652
  t(x !== f ? `"${S}": "${le(h[S])}",` : `"${S}": "${le(h[S])}"`, 1), x += 1;
2672
2653
  }), t("}"), o();
2673
2654
  }
2674
- let g = hs.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
2655
+ let g = ds.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
2675
2656
  return j && (b ? g += ", json=payload" : g += ", data=payload"), y && (g += ", files=files"), f > 0 && (g += ", headers=headers"), g += ")", t(g), o(), t("print(response.text)"), i();
2676
2657
  }
2677
- }, ys = {
2658
+ }, ms = {
2678
2659
  info: {
2679
2660
  key: "python",
2680
2661
  title: "Python",
@@ -2682,9 +2663,9 @@ var Ie = (e, n, r) => {
2682
2663
  cli: "python3 %s"
2683
2664
  },
2684
2665
  clientsById: {
2685
- requests: ms
2666
+ requests: hs
2686
2667
  }
2687
- }, gs = {
2668
+ }, ys = {
2688
2669
  info: {
2689
2670
  key: "httr",
2690
2671
  title: "httr",
@@ -2723,16 +2704,16 @@ var Ie = (e, n, r) => {
2723
2704
  const C = [x, f, b, j].filter((d) => !!d).join(", ");
2724
2705
  return C && (S += `, ${C}`), (a.text || a.jsonObj || a.params) && (S += ", encode = encode"), S += ")", t(S), o(), t('content(response, "text")'), i();
2725
2706
  }
2726
- }, vs = {
2707
+ }, gs = {
2727
2708
  info: {
2728
2709
  key: "r",
2729
2710
  title: "R",
2730
2711
  default: "httr"
2731
2712
  },
2732
2713
  clientsById: {
2733
- httr: gs
2714
+ httr: ys
2734
2715
  }
2735
- }, xs = {
2716
+ }, vs = {
2736
2717
  info: {
2737
2718
  key: "native",
2738
2719
  title: "net::http",
@@ -2763,16 +2744,16 @@ var Ie = (e, n, r) => {
2763
2744
  l(`request["${m}"] = '${We(c[m])}'`);
2764
2745
  }), a.text && l(`request.body = ${JSON.stringify(a.text)}`), t(), l("response = http.request(request)"), l("puts response.read_body"), o();
2765
2746
  }
2766
- }, bs = {
2747
+ }, xs = {
2767
2748
  info: {
2768
2749
  key: "ruby",
2769
2750
  title: "Ruby",
2770
2751
  default: "native"
2771
2752
  },
2772
2753
  clientsById: {
2773
- native: xs
2754
+ native: vs
2774
2755
  }
2775
- }, ce = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, js = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), $s = {
2756
+ }, ce = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, bs = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), js = {
2776
2757
  "http1.0": "0",
2777
2758
  "url ": "",
2778
2759
  cookie: "b",
@@ -2782,13 +2763,13 @@ var Ie = (e, n, r) => {
2782
2763
  header: "H",
2783
2764
  insecure: "k",
2784
2765
  request: "X"
2785
- }, ws = (e) => (n) => {
2766
+ }, $s = (e) => (n) => {
2786
2767
  if (e) {
2787
- const r = $s[n];
2768
+ const r = js[n];
2788
2769
  return r ? `-${r}` : "";
2789
2770
  }
2790
2771
  return `--${n}`;
2791
- }, Ss = {
2772
+ }, ws = {
2792
2773
  info: {
2793
2774
  key: "curl",
2794
2775
  title: "cURL",
@@ -2801,10 +2782,10 @@ var Ie = (e, n, r) => {
2801
2782
  ...typeof o == "string" ? { indent: o } : {},
2802
2783
  join: o !== !1 ? ` \\
2803
2784
  ${o}` : " "
2804
- }), j = ws(i);
2785
+ }), j = $s(i);
2805
2786
  let b = ce(e);
2806
2787
  if (m(`curl ${j("request")} ${n}`), h && (b = unescape(b), m(j("globoff"))), m(`${j("url ")}${b}`), r === "HTTP/1.0" && m(j("http1.0")), ve(c, "accept-encoding") && m("--compressed"), l.mimeType === "multipart/form-data") {
2807
- const f = fe(a, "content-type");
2788
+ const f = pe(a, "content-type");
2808
2789
  if (f) {
2809
2790
  const g = a[f];
2810
2791
  if (f && g) {
@@ -2833,7 +2814,7 @@ ${o}` : " "
2833
2814
  if (!l.text)
2834
2815
  break;
2835
2816
  let f = !1;
2836
- if (wi(l.mimeType) && l.text.length > 20)
2817
+ if ($i(l.mimeType) && l.text.length > 20)
2837
2818
  try {
2838
2819
  const g = JSON.parse(l.text);
2839
2820
  f = !0, l.text.indexOf("'") > 0 ? m(
@@ -2855,7 +2836,7 @@ ${JSON.stringify(g, null, p)}
2855
2836
  }
2856
2837
  return y();
2857
2838
  }
2858
- }, Os = {
2839
+ }, Ss = {
2859
2840
  info: {
2860
2841
  key: "httpie",
2861
2842
  title: "HTTPie",
@@ -2904,7 +2885,7 @@ ${o.indent}` : " "
2904
2885
  }
2905
2886
  return u();
2906
2887
  }
2907
- }, Ts = {
2888
+ }, Os = {
2908
2889
  info: {
2909
2890
  key: "wget",
2910
2891
  title: "Wget",
@@ -2926,9 +2907,9 @@ ${l.indent}` : " "
2926
2907
  return l.verbose ? t(`wget ${l.short ? "-v" : "--verbose"}`) : t(`wget ${l.short ? "-q" : "--quiet"}`), t(`--method ${ce(e)}`), Object.keys(r).forEach((i) => {
2927
2908
  const u = `${i}: ${r[i]}`;
2928
2909
  t(`--header ${ce(u)}`);
2929
- }), n.text && t(`--body-data ${js(ce(n.text))}`), t(l.short ? "-O" : "--output-document"), t(`- ${ce(a)}`), o();
2910
+ }), n.text && t(`--body-data ${bs(ce(n.text))}`), t(l.short ? "-O" : "--output-document"), t(`- ${ce(a)}`), o();
2930
2911
  }
2931
- }, Cs = {
2912
+ }, Ts = {
2932
2913
  info: {
2933
2914
  key: "shell",
2934
2915
  title: "Shell",
@@ -2936,9 +2917,9 @@ ${l.indent}` : " "
2936
2917
  cli: "%s"
2937
2918
  },
2938
2919
  clientsById: {
2939
- curl: Ss,
2940
- httpie: Os,
2941
- wget: Ts
2920
+ curl: ws,
2921
+ httpie: Ss,
2922
+ wget: Os
2942
2923
  }
2943
2924
  }, vn = (e, n) => n.repeat(e), xn = (e, n, r, a) => {
2944
2925
  const c = vn(a, r), l = vn(a - 1, r), t = n ? `,
@@ -2973,7 +2954,7 @@ ${l}]` : `[${e.join(t)}]`;
2973
2954
  default:
2974
2955
  return e == null ? "nil" : `"${e.toString().replace(/"/g, '\\"')}"`;
2975
2956
  }
2976
- }, Ps = {
2957
+ }, Cs = {
2977
2958
  info: {
2978
2959
  key: "urlsession",
2979
2960
  title: "URLSession",
@@ -3023,39 +3004,39 @@ ${l}]` : `[${e.join(t)}]`;
3023
3004
  }
3024
3005
  }), o("]"), o("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), i(), o("var request = URLRequest(url: components.url!)")), o(`request.httpMethod = "${c}"`), o(`request.timeoutInterval = ${t.timeout}`), Object.keys(e).length && o(`request.allHTTPHeaderFields = ${st(e, t)}`), h && o("request.httpBody = postData"), i(), o("let (data, _) = try await URLSession.shared.data(for: request)"), o("print(String(decoding: data, as: UTF8.self))"), u();
3025
3006
  }
3026
- }, ks = {
3007
+ }, Ps = {
3027
3008
  info: {
3028
3009
  key: "swift",
3029
3010
  title: "Swift",
3030
3011
  default: "urlsession"
3031
3012
  },
3032
3013
  clientsById: {
3033
- urlsession: Ps
3014
+ urlsession: Cs
3034
3015
  }
3035
- }, Ns = {
3036
- c: $i,
3037
- clojure: Ti,
3038
- csharp: qi,
3039
- go: Ei,
3040
- http: Ii,
3041
- java: Bi,
3042
- javascript: Wi,
3043
- json: Ji,
3044
- kotlin: Qi,
3045
- node: ts,
3046
- objc: ns,
3047
- ocaml: os,
3048
- php: us,
3049
- powershell: ds,
3050
- python: ys,
3051
- r: vs,
3052
- ruby: bs,
3053
- shell: Cs,
3054
- swift: ks
3016
+ }, ks = {
3017
+ c: ji,
3018
+ clojure: Oi,
3019
+ csharp: Ni,
3020
+ go: Ri,
3021
+ http: Ai,
3022
+ java: Fi,
3023
+ javascript: Gi,
3024
+ json: Vi,
3025
+ kotlin: Di,
3026
+ node: es,
3027
+ objc: rs,
3028
+ ocaml: as,
3029
+ php: cs,
3030
+ powershell: fs,
3031
+ python: ms,
3032
+ r: gs,
3033
+ ruby: xs,
3034
+ shell: Ts,
3035
+ swift: Ps
3055
3036
  }, Te = {}, _e = { exports: {} };
3056
3037
  /*! https://mths.be/punycode v1.4.1 by @mathias */
3057
- var qs = _e.exports, jn;
3058
- function Rs() {
3038
+ var Ns = _e.exports, jn;
3039
+ function qs() {
3059
3040
  return jn || (jn = 1, (function(e, n) {
3060
3041
  (function(r) {
3061
3042
  var a = n && !n.nodeType && n, c = e && !e.nodeType && e, l = typeof it == "object" && it;
@@ -3172,7 +3153,7 @@ function Rs() {
3172
3153
  t.hasOwnProperty(v) && (a[v] = t[v]);
3173
3154
  else
3174
3155
  r.punycode = t;
3175
- })(qs);
3156
+ })(Ns);
3176
3157
  })(_e, _e.exports)), _e.exports;
3177
3158
  }
3178
3159
  var kt, $n;
@@ -3180,19 +3161,19 @@ function Ea() {
3180
3161
  return $n || ($n = 1, kt = Object), kt;
3181
3162
  }
3182
3163
  var Nt, wn;
3183
- function Es() {
3164
+ function Rs() {
3184
3165
  return wn || (wn = 1, Nt = Error), Nt;
3185
3166
  }
3186
3167
  var qt, Sn;
3187
- function As() {
3168
+ function Es() {
3188
3169
  return Sn || (Sn = 1, qt = EvalError), qt;
3189
3170
  }
3190
3171
  var Rt, On;
3191
- function Is() {
3172
+ function As() {
3192
3173
  return On || (On = 1, Rt = RangeError), Rt;
3193
3174
  }
3194
3175
  var Et, Tn;
3195
- function Us() {
3176
+ function Is() {
3196
3177
  return Tn || (Tn = 1, Et = ReferenceError), Et;
3197
3178
  }
3198
3179
  var At, Cn;
@@ -3204,57 +3185,57 @@ function Je() {
3204
3185
  return Pn || (Pn = 1, It = TypeError), It;
3205
3186
  }
3206
3187
  var Ut, kn;
3207
- function Ls() {
3188
+ function Us() {
3208
3189
  return kn || (kn = 1, Ut = URIError), Ut;
3209
3190
  }
3210
3191
  var Lt, Nn;
3211
- function _s() {
3192
+ function Ls() {
3212
3193
  return Nn || (Nn = 1, Lt = Math.abs), Lt;
3213
3194
  }
3214
3195
  var _t, qn;
3215
- function Fs() {
3196
+ function _s() {
3216
3197
  return qn || (qn = 1, _t = Math.floor), _t;
3217
3198
  }
3218
3199
  var Ft, Rn;
3219
- function Bs() {
3200
+ function Fs() {
3220
3201
  return Rn || (Rn = 1, Ft = Math.max), Ft;
3221
3202
  }
3222
3203
  var Bt, En;
3223
- function Hs() {
3204
+ function Bs() {
3224
3205
  return En || (En = 1, Bt = Math.min), Bt;
3225
3206
  }
3226
3207
  var Ht, An;
3227
- function Ms() {
3208
+ function Hs() {
3228
3209
  return An || (An = 1, Ht = Math.pow), Ht;
3229
3210
  }
3230
3211
  var Mt, In;
3231
- function zs() {
3212
+ function Ms() {
3232
3213
  return In || (In = 1, Mt = Math.round), Mt;
3233
3214
  }
3234
3215
  var zt, Un;
3235
- function Gs() {
3216
+ function zs() {
3236
3217
  return Un || (Un = 1, zt = Number.isNaN || function(n) {
3237
3218
  return n !== n;
3238
3219
  }), zt;
3239
3220
  }
3240
3221
  var Gt, Ln;
3241
- function Ws() {
3222
+ function Gs() {
3242
3223
  if (Ln) return Gt;
3243
3224
  Ln = 1;
3244
- var e = /* @__PURE__ */ Gs();
3225
+ var e = /* @__PURE__ */ zs();
3245
3226
  return Gt = function(r) {
3246
3227
  return e(r) || r === 0 ? r : r < 0 ? -1 : 1;
3247
3228
  }, Gt;
3248
3229
  }
3249
3230
  var Wt, _n;
3250
- function Vs() {
3231
+ function Ws() {
3251
3232
  return _n || (_n = 1, Wt = Object.getOwnPropertyDescriptor), Wt;
3252
3233
  }
3253
3234
  var Vt, Fn;
3254
3235
  function dt() {
3255
3236
  if (Fn) return Vt;
3256
3237
  Fn = 1;
3257
- var e = /* @__PURE__ */ Vs();
3238
+ var e = /* @__PURE__ */ Ws();
3258
3239
  if (e)
3259
3240
  try {
3260
3241
  e([], "length");
@@ -3277,7 +3258,7 @@ function ht() {
3277
3258
  return Jt = e, Jt;
3278
3259
  }
3279
3260
  var Dt, Hn;
3280
- function Js() {
3261
+ function Vs() {
3281
3262
  return Hn || (Hn = 1, Dt = function() {
3282
3263
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
3283
3264
  return !1;
@@ -3307,10 +3288,10 @@ function Js() {
3307
3288
  }), Dt;
3308
3289
  }
3309
3290
  var Qt, Mn;
3310
- function Ds() {
3291
+ function Js() {
3311
3292
  if (Mn) return Qt;
3312
3293
  Mn = 1;
3313
- var e = typeof Symbol < "u" && Symbol, n = Js();
3294
+ var e = typeof Symbol < "u" && Symbol, n = Vs();
3314
3295
  return Qt = function() {
3315
3296
  return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : n();
3316
3297
  }, Qt;
@@ -3327,7 +3308,7 @@ function Ua() {
3327
3308
  return Yt = e.getPrototypeOf || null, Yt;
3328
3309
  }
3329
3310
  var Xt, Wn;
3330
- function Qs() {
3311
+ function Ds() {
3331
3312
  if (Wn) return Xt;
3332
3313
  Wn = 1;
3333
3314
  var e = "Function.prototype.bind called on incompatible ", n = Object.prototype.toString, r = Math.max, a = "[object Function]", c = function(i, u) {
@@ -3375,7 +3356,7 @@ var Zt, Vn;
3375
3356
  function De() {
3376
3357
  if (Vn) return Zt;
3377
3358
  Vn = 1;
3378
- var e = Qs();
3359
+ var e = Ds();
3379
3360
  return Zt = Function.prototype.bind || e, Zt;
3380
3361
  }
3381
3362
  var er, Jn;
@@ -3387,14 +3368,14 @@ function Br() {
3387
3368
  return Dn || (Dn = 1, tr = Function.prototype.apply), tr;
3388
3369
  }
3389
3370
  var rr, Qn;
3390
- function Ks() {
3371
+ function Qs() {
3391
3372
  return Qn || (Qn = 1, rr = typeof Reflect < "u" && Reflect && Reflect.apply), rr;
3392
3373
  }
3393
3374
  var nr, Kn;
3394
3375
  function La() {
3395
3376
  if (Kn) return nr;
3396
3377
  Kn = 1;
3397
- var e = De(), n = Br(), r = Fr(), a = Ks();
3378
+ var e = De(), n = Br(), r = Fr(), a = Qs();
3398
3379
  return nr = a || e.call(r, n), nr;
3399
3380
  }
3400
3381
  var ar, Yn;
@@ -3409,7 +3390,7 @@ function _a() {
3409
3390
  }, ar;
3410
3391
  }
3411
3392
  var or, Xn;
3412
- function Ys() {
3393
+ function Ks() {
3413
3394
  if (Xn) return or;
3414
3395
  Xn = 1;
3415
3396
  var e = _a(), n = /* @__PURE__ */ dt(), r;
@@ -3433,10 +3414,10 @@ function Ys() {
3433
3414
  ) : !1, or;
3434
3415
  }
3435
3416
  var ir, Zn;
3436
- function Xs() {
3417
+ function Ys() {
3437
3418
  if (Zn) return ir;
3438
3419
  Zn = 1;
3439
- var e = Ia(), n = Ua(), r = /* @__PURE__ */ Ys();
3420
+ var e = Ia(), n = Ua(), r = /* @__PURE__ */ Ks();
3440
3421
  return ir = e ? function(c) {
3441
3422
  return e(c);
3442
3423
  } : n ? function(c) {
@@ -3448,7 +3429,7 @@ function Xs() {
3448
3429
  } : null, ir;
3449
3430
  }
3450
3431
  var sr, ea;
3451
- function Zs() {
3432
+ function Xs() {
3452
3433
  if (ea) return sr;
3453
3434
  ea = 1;
3454
3435
  var e = Function.prototype.call, n = Object.prototype.hasOwnProperty, r = De();
@@ -3458,7 +3439,7 @@ var lr, ta;
3458
3439
  function Hr() {
3459
3440
  if (ta) return lr;
3460
3441
  ta = 1;
3461
- var e, n = /* @__PURE__ */ Ea(), r = /* @__PURE__ */ Es(), a = /* @__PURE__ */ As(), c = /* @__PURE__ */ Is(), l = /* @__PURE__ */ Us(), t = /* @__PURE__ */ Aa(), o = /* @__PURE__ */ Je(), i = /* @__PURE__ */ Ls(), u = /* @__PURE__ */ _s(), h = /* @__PURE__ */ Fs(), p = /* @__PURE__ */ Bs(), m = /* @__PURE__ */ Hs(), y = /* @__PURE__ */ Ms(), j = /* @__PURE__ */ zs(), b = /* @__PURE__ */ Ws(), f = Function, g = function(D) {
3442
+ var e, n = /* @__PURE__ */ Ea(), r = /* @__PURE__ */ Rs(), a = /* @__PURE__ */ Es(), c = /* @__PURE__ */ As(), l = /* @__PURE__ */ Is(), t = /* @__PURE__ */ Aa(), o = /* @__PURE__ */ Je(), i = /* @__PURE__ */ Us(), u = /* @__PURE__ */ Ls(), h = /* @__PURE__ */ _s(), p = /* @__PURE__ */ Fs(), m = /* @__PURE__ */ Bs(), y = /* @__PURE__ */ Hs(), j = /* @__PURE__ */ Ms(), b = /* @__PURE__ */ Gs(), f = Function, g = function(D) {
3462
3443
  try {
3463
3444
  return f('"use strict"; return (' + D + ").constructor;")();
3464
3445
  } catch {
@@ -3475,7 +3456,7 @@ function Hr() {
3475
3456
  return C;
3476
3457
  }
3477
3458
  }
3478
- })() : C, T = Ds()(), v = Xs(), N = Ua(), A = Ia(), R = Br(), L = Fr(), O = {}, M = typeof Uint8Array > "u" || !v ? e : v(Uint8Array), _ = {
3459
+ })() : C, T = Js()(), v = Ys(), N = Ua(), A = Ia(), R = Br(), L = Fr(), O = {}, M = typeof Uint8Array > "u" || !v ? e : v(Uint8Array), _ = {
3479
3460
  __proto__: null,
3480
3461
  "%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
3481
3462
  "%Array%": Array,
@@ -3635,7 +3616,7 @@ function Hr() {
3635
3616
  "%URIErrorPrototype%": ["URIError", "prototype"],
3636
3617
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
3637
3618
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
3638
- }, E = De(), ne = /* @__PURE__ */ Zs(), k = E.call(L, Array.prototype.concat), q = E.call(R, Array.prototype.splice), F = E.call(L, String.prototype.replace), P = E.call(L, String.prototype.slice), U = E.call(L, RegExp.prototype.exec), J = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, W = /\\(\\)?/g, Y = function(I) {
3619
+ }, E = De(), ne = /* @__PURE__ */ Xs(), k = E.call(L, Array.prototype.concat), q = E.call(R, Array.prototype.splice), F = E.call(L, String.prototype.replace), P = E.call(L, String.prototype.slice), U = E.call(L, RegExp.prototype.exec), J = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, W = /\\(\\)?/g, Y = function(I) {
3639
3620
  var B = P(I, 0, 1), H = P(I, -1);
3640
3621
  if (B === "%" && H !== "%")
3641
3622
  throw new t("invalid intrinsic syntax, expected closing `%`");
@@ -3692,7 +3673,7 @@ function Hr() {
3692
3673
  }, lr;
3693
3674
  }
3694
3675
  var cr = { exports: {} }, ur, ra;
3695
- function el() {
3676
+ function Zs() {
3696
3677
  if (ra) return ur;
3697
3678
  ra = 1;
3698
3679
  var e = /* @__PURE__ */ ht(), n = /* @__PURE__ */ Aa(), r = /* @__PURE__ */ Je(), a = /* @__PURE__ */ dt();
@@ -3724,7 +3705,7 @@ function el() {
3724
3705
  }, ur;
3725
3706
  }
3726
3707
  var pr, na;
3727
- function tl() {
3708
+ function el() {
3728
3709
  if (na) return pr;
3729
3710
  na = 1;
3730
3711
  var e = /* @__PURE__ */ ht(), n = function() {
@@ -3741,10 +3722,10 @@ function tl() {
3741
3722
  }, pr = n, pr;
3742
3723
  }
3743
3724
  var fr, aa;
3744
- function rl() {
3725
+ function tl() {
3745
3726
  if (aa) return fr;
3746
3727
  aa = 1;
3747
- var e = /* @__PURE__ */ Hr(), n = /* @__PURE__ */ el(), r = /* @__PURE__ */ tl()(), a = /* @__PURE__ */ dt(), c = /* @__PURE__ */ Je(), l = e("%Math.floor%");
3728
+ var e = /* @__PURE__ */ Hr(), n = /* @__PURE__ */ Zs(), r = /* @__PURE__ */ el()(), a = /* @__PURE__ */ dt(), c = /* @__PURE__ */ Je(), l = e("%Math.floor%");
3748
3729
  return fr = function(o, i) {
3749
3730
  if (typeof o != "function")
3750
3731
  throw new c("`fn` is not a function");
@@ -3771,7 +3752,7 @@ function rl() {
3771
3752
  }, fr;
3772
3753
  }
3773
3754
  var dr, oa;
3774
- function nl() {
3755
+ function rl() {
3775
3756
  if (oa) return dr;
3776
3757
  oa = 1;
3777
3758
  var e = De(), n = Br(), r = La();
@@ -3780,9 +3761,9 @@ function nl() {
3780
3761
  }, dr;
3781
3762
  }
3782
3763
  var ia;
3783
- function al() {
3764
+ function nl() {
3784
3765
  return ia || (ia = 1, (function(e) {
3785
- var n = /* @__PURE__ */ rl(), r = /* @__PURE__ */ ht(), a = _a(), c = nl();
3766
+ var n = /* @__PURE__ */ tl(), r = /* @__PURE__ */ ht(), a = _a(), c = rl();
3786
3767
  e.exports = function(t) {
3787
3768
  var o = a(arguments), i = t.length - (arguments.length - 1);
3788
3769
  return n(
@@ -3794,17 +3775,17 @@ function al() {
3794
3775
  })(cr)), cr.exports;
3795
3776
  }
3796
3777
  var hr, sa;
3797
- function ol() {
3778
+ function al() {
3798
3779
  if (sa) return hr;
3799
3780
  sa = 1;
3800
- var e = /* @__PURE__ */ Hr(), n = al(), r = n(e("String.prototype.indexOf"));
3781
+ var e = /* @__PURE__ */ Hr(), n = nl(), r = n(e("String.prototype.indexOf"));
3801
3782
  return hr = function(c, l) {
3802
3783
  var t = e(c, !!l);
3803
3784
  return typeof t == "function" && r(c, ".prototype.") > -1 ? n(t) : t;
3804
3785
  }, hr;
3805
3786
  }
3806
3787
  var mr, la;
3807
- function il() {
3788
+ function ol() {
3808
3789
  if (la) return mr;
3809
3790
  la = 1;
3810
3791
  var e = typeof Map == "function" && Map.prototype, n = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, r = e && n && typeof n.get == "function" ? n.get : null, a = e && Map.prototype.forEach, c = typeof Set == "function" && Set.prototype, l = Object.getOwnPropertyDescriptor && c ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, t = c && l && typeof l.get == "function" ? l.get : null, o = c && Set.prototype.forEach, i = typeof WeakMap == "function" && WeakMap.prototype, u = i ? WeakMap.prototype.has : null, h = typeof WeakSet == "function" && WeakSet.prototype, p = h ? WeakSet.prototype.has : null, m = typeof WeakRef == "function" && WeakRef.prototype, y = m ? WeakRef.prototype.deref : null, j = Boolean.prototype.valueOf, b = Object.prototype.toString, f = Function.prototype.toString, g = String.prototype.match, x = String.prototype.slice, S = String.prototype.replace, C = String.prototype.toUpperCase, d = String.prototype.toLowerCase, T = RegExp.prototype.test, v = Array.prototype.concat, N = Array.prototype.join, A = Array.prototype.slice, R = Math.floor, L = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, O = Object.getOwnPropertySymbols, M = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, _ = typeof Symbol == "function" && typeof Symbol.iterator == "object", G = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === _ || !0) ? Symbol.toStringTag : null, se = Object.prototype.propertyIsEnumerable, ee = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function($) {
@@ -3823,7 +3804,7 @@ function il() {
3823
3804
  }
3824
3805
  return S.call(w, Z, "$&_");
3825
3806
  }
3826
- var ne = Jo, k = ne.custom, q = B(k) ? k : null;
3807
+ var ne = Vo, k = ne.custom, q = B(k) ? k : null;
3827
3808
  mr = function $(w, Z, te, ie) {
3828
3809
  var z = Z || {};
3829
3810
  if (V(z, "quoteStyle") && z.quoteStyle !== "single" && z.quoteStyle !== "double")
@@ -4162,10 +4143,10 @@ function il() {
4162
4143
  return mr;
4163
4144
  }
4164
4145
  var yr, ca;
4165
- function sl() {
4146
+ function il() {
4166
4147
  if (ca) return yr;
4167
4148
  ca = 1;
4168
- var e = /* @__PURE__ */ Hr(), n = ol(), r = /* @__PURE__ */ il(), a = /* @__PURE__ */ Je(), c = e("%WeakMap%", !0), l = e("%Map%", !0), t = n("WeakMap.prototype.get", !0), o = n("WeakMap.prototype.set", !0), i = n("WeakMap.prototype.has", !0), u = n("Map.prototype.get", !0), h = n("Map.prototype.set", !0), p = n("Map.prototype.has", !0), m = function(f, g) {
4149
+ var e = /* @__PURE__ */ Hr(), n = al(), r = /* @__PURE__ */ ol(), a = /* @__PURE__ */ Je(), c = e("%WeakMap%", !0), l = e("%Map%", !0), t = n("WeakMap.prototype.get", !0), o = n("WeakMap.prototype.set", !0), i = n("WeakMap.prototype.has", !0), u = n("Map.prototype.get", !0), h = n("Map.prototype.set", !0), p = n("Map.prototype.has", !0), m = function(f, g) {
4169
4150
  for (var x = f, S; (S = x.next) !== null; x = S)
4170
4151
  if (S.key === g)
4171
4152
  return x.next = S.next, S.next = /** @type {NonNullable<typeof list.next>} */
@@ -4367,10 +4348,10 @@ function Fa() {
4367
4348
  }, vr;
4368
4349
  }
4369
4350
  var xr, fa;
4370
- function ll() {
4351
+ function sl() {
4371
4352
  if (fa) return xr;
4372
4353
  fa = 1;
4373
- var e = sl(), n = /* @__PURE__ */ Fa(), r = /* @__PURE__ */ Mr(), a = Object.prototype.hasOwnProperty, c = {
4354
+ var e = il(), n = /* @__PURE__ */ Fa(), r = /* @__PURE__ */ Mr(), a = Object.prototype.hasOwnProperty, c = {
4374
4355
  brackets: function(f) {
4375
4356
  return f + "[]";
4376
4357
  },
@@ -4556,7 +4537,7 @@ function ll() {
4556
4537
  }, xr;
4557
4538
  }
4558
4539
  var br, da;
4559
- function cl() {
4540
+ function ll() {
4560
4541
  if (da) return br;
4561
4542
  da = 1;
4562
4543
  var e = /* @__PURE__ */ Fa(), n = Object.prototype.hasOwnProperty, r = Array.isArray, a = {
@@ -4693,7 +4674,7 @@ var jr, ha;
4693
4674
  function Ba() {
4694
4675
  if (ha) return jr;
4695
4676
  ha = 1;
4696
- var e = /* @__PURE__ */ ll(), n = /* @__PURE__ */ cl(), r = /* @__PURE__ */ Mr();
4677
+ var e = /* @__PURE__ */ sl(), n = /* @__PURE__ */ ll(), r = /* @__PURE__ */ Mr();
4697
4678
  return jr = {
4698
4679
  formats: r,
4699
4680
  parse: n,
@@ -4701,10 +4682,10 @@ function Ba() {
4701
4682
  }, jr;
4702
4683
  }
4703
4684
  var ma;
4704
- function ul() {
4685
+ function cl() {
4705
4686
  if (ma) return Te;
4706
4687
  ma = 1;
4707
- var e = Rs();
4688
+ var e = qs();
4708
4689
  function n() {
4709
4690
  this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
4710
4691
  }
@@ -4923,12 +4904,12 @@ function ul() {
4923
4904
  T && (T = T[0], T !== ":" && (this.port = T.substr(1)), d = d.substr(0, d.length - T.length)), d && (this.hostname = d);
4924
4905
  }, Te.parse = g, Te.resolve = S, Te.resolveObject = C, Te.format = x, Te.Url = n, Te;
4925
4906
  }
4926
- var $r = ul(), wr = /* @__PURE__ */ Ba(), pl = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), fl = class {
4907
+ var $r = cl(), wr = /* @__PURE__ */ Ba(), ul = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), pl = class {
4927
4908
  constructor(e, n = {}) {
4928
4909
  this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
4929
4910
  harIsAlreadyEncoded: !1,
4930
4911
  ...n
4931
- }, this.requests = [], pl(e) ? this.entries = e.log.entries : this.entries = [
4912
+ }, this.requests = [], ul(e) ? this.entries = e.log.entries : this.entries = [
4932
4913
  {
4933
4914
  request: e
4934
4915
  }
@@ -4994,7 +4975,7 @@ var $r = ul(), wr = /* @__PURE__ */ Ba(), pl = (e) => typeof e == "object" && "l
4994
4975
  `Content-Disposition: form-data; name="${y(j(S))}"; filename="${d}"`
4995
4976
  ), b.push(`Content-Type: ${T}`)) : b.push(`Content-Disposition: form-data; name="${y(j(S))}"`), b.push(""), b.push(j(C)), x !== r.postData.params.length - 1 && b.push(`--${h}`);
4996
4977
  }), b.push(`--${p}`), r.postData.boundary = h, r.postData.text = b.join(m);
4997
- const f = fe(r.headersObj, "content-type") || "content-type";
4978
+ const f = pe(r.headersObj, "content-type") || "content-type";
4998
4979
  r.headersObj[f] = `multipart/form-data; boundary=${h}`;
4999
4980
  }
5000
4981
  break;
@@ -5051,18 +5032,18 @@ var $r = ul(), wr = /* @__PURE__ */ Ba(), pl = (e) => typeof e == "object" && "l
5051
5032
  }
5052
5033
  convert(e, n, r) {
5053
5034
  this.initCalled || this.init(), !r && n && (r = n);
5054
- const a = Ns[e];
5035
+ const a = ks[e];
5055
5036
  if (!a)
5056
5037
  return !1;
5057
5038
  const { convert: c } = a.clientsById[n || a.info.default];
5058
5039
  return this.requests.map((t) => c(t, r));
5059
5040
  }
5060
5041
  };
5061
- const dl = ({
5042
+ const fl = ({
5062
5043
  operation: e,
5063
5044
  selectedServer: n,
5064
5045
  exampleBody: r
5065
- }) => new fl({
5046
+ }) => new pl({
5066
5047
  method: e.method.toUpperCase(),
5067
5048
  url: n + e.path.replaceAll("{", ":").replaceAll("}", ""),
5068
5049
  postData: r,
@@ -5081,7 +5062,7 @@ const dl = ({
5081
5062
  cookies: [],
5082
5063
  headersSize: 0,
5083
5064
  bodySize: 0
5084
- }), hl = (e, n) => {
5065
+ }), dl = (e, n) => {
5085
5066
  let r;
5086
5067
  switch (n) {
5087
5068
  case "shell":
@@ -5192,7 +5173,7 @@ const dl = ({
5192
5173
  purple: "text-purple-600",
5193
5174
  indigo: "text-indigo-600",
5194
5175
  gray: "text-gray-600"
5195
- }, ml = {
5176
+ }, hl = {
5196
5177
  get: xe.green,
5197
5178
  post: xe.blue,
5198
5179
  put: xe.yellow,
@@ -5201,7 +5182,7 @@ const dl = ({
5201
5182
  options: xe.indigo,
5202
5183
  head: xe.gray,
5203
5184
  trace: xe.gray
5204
- }, Ha = (e) => ml[e.toLocaleLowerCase()] ?? xe.gray;
5185
+ }, Ha = (e) => hl[e.toLocaleLowerCase()] ?? xe.gray;
5205
5186
  Ve(
5206
5187
  /* GraphQL */
5207
5188
  `
@@ -5215,7 +5196,7 @@ Ve(
5215
5196
  }
5216
5197
  `
5217
5198
  );
5218
- const yl = [
5199
+ const ml = [
5219
5200
  { value: "shell", label: "cURL" },
5220
5201
  { value: "js", label: "JavaScript" },
5221
5202
  { value: "python", label: "Python" },
@@ -5227,13 +5208,13 @@ const yl = [
5227
5208
  { value: "php", label: "PHP" },
5228
5209
  { value: "ruby", label: "Ruby" },
5229
5210
  { value: "swift", label: "Swift" }
5230
- ], gl = ({
5211
+ ], yl = ({
5231
5212
  operation: e,
5232
5213
  selectedResponse: n,
5233
5214
  globalSelectedServer: r,
5234
5215
  shouldLazyHighlight: a
5235
5216
  }) => {
5236
- const { options: c } = ct(), l = Ja(), t = Wo(), o = Ha(e.method), [i, u] = to(), [, h] = Pa(), p = c?.supportedLanguages ?? yl, m = i.get("lang") ?? c?.examplesLanguage ?? "shell", y = p.find((O) => O.value === m)?.value ?? p.at(0)?.value ?? "shell", j = e.requestBody?.content, b = j && c?.transformExamples ? c.transformExamples({
5217
+ const { options: c } = ct(), l = Ja(), t = Go(), o = Ha(e.method), [i, u] = to(), [, h] = Pa(), p = c?.supportedLanguages ?? ml, m = i.get("lang") ?? c?.examplesLanguage ?? "shell", y = p.find((O) => O.value === m)?.value ?? p.at(0)?.value ?? "shell", j = e.requestBody?.content, b = j && c?.transformExamples ? c.transformExamples({
5237
5218
  auth: l,
5238
5219
  type: "request",
5239
5220
  operation: e,
@@ -5261,7 +5242,7 @@ const yl = [
5261
5242
  }
5262
5243
  )
5263
5244
  }
5264
- ), T = r || e.servers.at(0)?.url || "", v = Eo(() => {
5245
+ ), T = r || e.servers.at(0)?.url || "", v = Ro(() => {
5265
5246
  const O = c?.generateCodeSnippet?.({
5266
5247
  selectedLang: y,
5267
5248
  selectedServer: T,
@@ -5271,7 +5252,7 @@ const yl = [
5271
5252
  auth: l
5272
5253
  });
5273
5254
  if (O) return O;
5274
- const M = dl({
5255
+ const M = fl({
5275
5256
  operation: e,
5276
5257
  selectedServer: T,
5277
5258
  exampleBody: C ? {
@@ -5279,7 +5260,7 @@ const yl = [
5279
5260
  text: JSON.stringify(C, null, 2)
5280
5261
  } : { mimeType: "application/json" }
5281
5262
  });
5282
- return hl(M, y);
5263
+ return dl(M, y);
5283
5264
  }, [
5284
5265
  C,
5285
5266
  e,
@@ -5288,7 +5269,7 @@ const yl = [
5288
5269
  c,
5289
5270
  l,
5290
5271
  t
5291
- ]), [N, A] = li({ rootMargin: "200px 0px 200px 0px" }), R = A && (e.extensions["x-explorer-enabled"] === !0 || e.extensions["x-zudoku-playground-enabled"] === !0 || e.extensions["x-explorer-enabled"] === void 0 && e.extensions["x-zudoku-playground-enabled"] === void 0 && !c?.disablePlayground), L = e.responses.some(
5272
+ ]), [N, A] = si({ rootMargin: "200px 0px 200px 0px" }), R = A && (e.extensions["x-explorer-enabled"] === !0 || e.extensions["x-zudoku-playground-enabled"] === !0 || e.extensions["x-explorer-enabled"] === void 0 && e.extensions["x-zudoku-playground-enabled"] === void 0 && !c?.disablePlayground), L = e.responses.some(
5292
5273
  (O) => O.content?.some((M) => (M.examples?.length ?? 0) > 0)
5293
5274
  );
5294
5275
  return /* @__PURE__ */ s.jsxs(
@@ -5305,7 +5286,7 @@ const yl = [
5305
5286
  He,
5306
5287
  {
5307
5288
  variant: "outline",
5308
- className: pe(
5289
+ className: fe(
5309
5290
  o,
5310
5291
  "px-1.5 rounded-md border-none bg-current/7 dark:bg-current/15"
5311
5292
  ),
@@ -5336,7 +5317,7 @@ const yl = [
5336
5317
  }
5337
5318
  ),
5338
5319
  R && /* @__PURE__ */ s.jsx(
5339
- fi,
5320
+ pi,
5340
5321
  {
5341
5322
  servers: e.servers.map((O) => O.url),
5342
5323
  operation: e,
@@ -5356,7 +5337,7 @@ const yl = [
5356
5337
  ) })
5357
5338
  ] }),
5358
5339
  b && S ? /* @__PURE__ */ s.jsx(
5359
- mi,
5340
+ hi,
5360
5341
  {
5361
5342
  content: b,
5362
5343
  onExampleChange: (O) => {
@@ -5368,7 +5349,7 @@ const yl = [
5368
5349
  shouldLazyHighlight: a
5369
5350
  }
5370
5351
  ) : b && C ? /* @__PURE__ */ s.jsx(
5371
- pi,
5352
+ ui,
5372
5353
  {
5373
5354
  isOnScreen: A,
5374
5355
  shouldLazyHighlight: a,
@@ -5411,12 +5392,12 @@ const yl = [
5411
5392
  ]
5412
5393
  }
5413
5394
  );
5414
- }, vl = ["path", "query", "header", "cookie"], xl = ({
5395
+ }, gl = ["path", "query", "header", "cookie"], vl = ({
5415
5396
  operationFragment: e,
5416
5397
  globalSelectedServer: n,
5417
5398
  shouldLazyHighlight: r
5418
5399
  }) => {
5419
- const a = Do(bl, e), c = bo(
5400
+ const a = Jo(xl, e), c = bo(
5420
5401
  a.parameters ?? [],
5421
5402
  (p) => p.in
5422
5403
  ), { options: l } = ct(), t = n || a.servers.at(0)?.url, o = a.responses.at(0), [i, u] = ge(o?.statusCode), h = a.extensions?.["x-mcp-server"] !== void 0;
@@ -5425,7 +5406,7 @@ const yl = [
5425
5406
  /* @__PURE__ */ s.jsxs(
5426
5407
  "div",
5427
5408
  {
5428
- className: pe(
5409
+ className: fe(
5429
5410
  "grid grid-cols-1 lg:grid-cols-[minmax(0,4fr)_minmax(0,3fr)] gap-x-8 gap-y-4 items-start",
5430
5411
  a.deprecated && "opacity-50 transition hover:opacity-100"
5431
5412
  ),
@@ -5448,7 +5429,7 @@ const yl = [
5448
5429
  ] })
5449
5430
  ] }),
5450
5431
  h ? /* @__PURE__ */ s.jsx("div", { className: "col-span-full", children: /* @__PURE__ */ s.jsx(
5451
- ai,
5432
+ ni,
5452
5433
  {
5453
5434
  serverUrl: t,
5454
5435
  summary: a.summary ?? void 0,
@@ -5457,7 +5438,7 @@ const yl = [
5457
5438
  ) }) : /* @__PURE__ */ s.jsxs(
5458
5439
  "div",
5459
5440
  {
5460
- className: pe(
5441
+ className: fe(
5461
5442
  "flex flex-col gap-4",
5462
5443
  l?.disableSidecar && "col-span-full"
5463
5444
  ),
@@ -5469,9 +5450,9 @@ const yl = [
5469
5450
  content: a.description
5470
5451
  }
5471
5452
  ),
5472
- a.parameters && a.parameters.length > 0 && vl.flatMap(
5453
+ a.parameters && a.parameters.length > 0 && gl.flatMap(
5473
5454
  (p) => c[p]?.length ? /* @__PURE__ */ s.jsx(
5474
- si,
5455
+ ii,
5475
5456
  {
5476
5457
  summary: a.summary ?? void 0,
5477
5458
  id: a.slug,
@@ -5481,7 +5462,7 @@ const yl = [
5481
5462
  p
5482
5463
  ) : []
5483
5464
  ),
5484
- St(a.requestBody?.content?.at(0)?.schema, () => /* @__PURE__ */ s.jsx(rn, { className: "my-4" })),
5465
+ St(a.requestBody?.content?.at(0)?.schema, () => /* @__PURE__ */ s.jsx(Zr, { className: "my-4" })),
5485
5466
  St(
5486
5467
  a.requestBody?.content?.at(0)?.schema,
5487
5468
  (p) => /* @__PURE__ */ s.jsxs("div", { className: "flex flex-col gap-4", children: [
@@ -5506,7 +5487,7 @@ const yl = [
5506
5487
  /* @__PURE__ */ s.jsx(Ir, { schema: p })
5507
5488
  ] })
5508
5489
  ),
5509
- /* @__PURE__ */ s.jsx(rn, { className: "my-4" }),
5490
+ /* @__PURE__ */ s.jsx(Zr, { className: "my-4" }),
5510
5491
  a.responses.length > 0 && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
5511
5492
  /* @__PURE__ */ s.jsxs(Fe, { level: 3, id: `${a.slug}/responses`, children: [
5512
5493
  a.summary && /* @__PURE__ */ s.jsxs(Tr, { children: [
@@ -5517,7 +5498,7 @@ const yl = [
5517
5498
  "Responses"
5518
5499
  ] }),
5519
5500
  /* @__PURE__ */ s.jsx(
5520
- ni,
5501
+ ri,
5521
5502
  {
5522
5503
  responses: a.responses,
5523
5504
  selectedResponse: i,
@@ -5529,7 +5510,7 @@ const yl = [
5529
5510
  }
5530
5511
  ),
5531
5512
  St(!l?.disableSidecar && !h, () => /* @__PURE__ */ s.jsx(
5532
- gl,
5513
+ yl,
5533
5514
  {
5534
5515
  selectedResponse: i,
5535
5516
  operation: a,
@@ -5546,7 +5527,7 @@ const yl = [
5546
5527
  function ya(e, n = 160) {
5547
5528
  return e ? e.replace(/\[([^\]]+)\]\([^)]+\)/g, "$1").replace(/!\[.*?\]\(.*?\)/g, "").replace(/[_*`~]/g, "").replace(/^(?:>|\s*#+|-{3,}|\*{3,})/gm, "").replace(/[|>{}[\]]/g, "").replace(/\s+/g, " ").trim().substring(0, n).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;") : "";
5548
5529
  }
5549
- const bl = Ve(
5530
+ const xl = Ve(
5550
5531
  /* GraphQL */
5551
5532
  `
5552
5533
  fragment OperationsFragment on OperationItem {
@@ -5618,7 +5599,7 @@ const bl = Ve(
5618
5599
  }
5619
5600
  }
5620
5601
  `
5621
- ), jl = Ve(
5602
+ ), bl = Ve(
5622
5603
  /* GraphQL */
5623
5604
  `
5624
5605
  query SchemaWarmup($input: JSON!, $type: SchemaType!) {
@@ -5627,7 +5608,7 @@ const bl = Ve(
5627
5608
  }
5628
5609
  }
5629
5610
  `
5630
- ), $l = Ve(
5611
+ ), jl = Ve(
5631
5612
  /* GraphQL */
5632
5613
  `
5633
5614
  query OperationsForTag(
@@ -5667,11 +5648,11 @@ const bl = Ve(
5667
5648
  }
5668
5649
  }
5669
5650
  `
5670
- ), wl = 30, ec = ({
5651
+ ), $l = 30, tc = ({
5671
5652
  tag: e,
5672
5653
  untagged: n
5673
5654
  }) => {
5674
- const { path: r, input: a, type: c, versions: l, version: t, options: o } = ct(), { tag: i } = ro(), u = Sr($l, {
5655
+ const { path: r, input: a, type: c, versions: l, version: t, options: o } = ct(), { tag: i } = ro(), u = Sr(jl, {
5675
5656
  input: a,
5676
5657
  type: c,
5677
5658
  tag: e ?? i,
@@ -5680,7 +5661,7 @@ const bl = Ve(
5680
5661
  data: { schema: p }
5681
5662
  } = h, { selectedServer: m } = ja(
5682
5663
  p.servers
5683
- ), y = p.title, j = p.summary, b = p.description, f = no(), g = Sr(jl, { input: a, type: c });
5664
+ ), y = p.title, j = p.summary, b = p.description, f = no(), g = Sr(bl, { input: a, type: c });
5684
5665
  if (Da({
5685
5666
  ...g,
5686
5667
  enabled: typeof window < "u",
@@ -5690,7 +5671,7 @@ const bl = Ve(
5690
5671
  /* @__PURE__ */ s.jsx("div", { className: "text-muted-foreground font-medium", children: "No operations found" }),
5691
5672
  /* @__PURE__ */ s.jsx("div", { className: "mt-2 text-sm text-muted-foreground", children: "This API doesn't have any operations defined yet." })
5692
5673
  ] });
5693
- const { operations: x, next: S, prev: C, description: d } = p.tag, T = x.length > wl, v = d ? ya(d) : j || (b ? ya(b) : void 0), N = Object.entries(l).length > 1, A = o?.showVersionSelect === "always" || N && o?.showVersionSelect !== "hide", R = {
5674
+ const { operations: x, next: S, prev: C, description: d } = p.tag, T = x.length > $l, v = d ? ya(d) : j || (b ? ya(b) : void 0), N = Object.entries(l).length > 1, A = o?.showVersionSelect === "always" || N && o?.showVersionSelect !== "hide", R = {
5694
5675
  prev: C ? {
5695
5676
  to: `../${C.slug}`,
5696
5677
  label: C.extensions?.["x-displayName"] ?? C.name
@@ -5740,7 +5721,7 @@ const bl = Ve(
5740
5721
  ]
5741
5722
  }
5742
5723
  ),
5743
- /* @__PURE__ */ s.jsx(ti, {})
5724
+ /* @__PURE__ */ s.jsx(ei, {})
5744
5725
  ] }),
5745
5726
  /* @__PURE__ */ s.jsxs("div", { className: "flex flex-col gap-4 sm:items-end", children: [
5746
5727
  /* @__PURE__ */ s.jsxs("div", { className: "flex gap-2 items-center", children: [
@@ -5759,7 +5740,7 @@ const bl = Ve(
5759
5740
  ]
5760
5741
  }
5761
5742
  ),
5762
- o?.schemaDownload?.enabled && M && /* @__PURE__ */ s.jsx(Yo, { downloadUrl: M })
5743
+ o?.schemaDownload?.enabled && M && /* @__PURE__ */ s.jsx(Ko, { downloadUrl: M })
5763
5744
  ] }),
5764
5745
  p.description && /* @__PURE__ */ s.jsxs(Er, { className: "flex items-center gap-1 text-sm font-medium text-muted-foreground group", children: [
5765
5746
  /* @__PURE__ */ s.jsx("span", { children: "API information" }),
@@ -5802,7 +5783,7 @@ const bl = Ve(
5802
5783
  /* @__PURE__ */ s.jsxs("div", { className: "px-6 mt-6 -mx-6 [content-visibility:auto]", children: [
5803
5784
  x.map((_) => /* @__PURE__ */ s.jsxs("div", { children: [
5804
5785
  /* @__PURE__ */ s.jsx(
5805
- xl,
5786
+ vl,
5806
5787
  {
5807
5788
  operationFragment: _,
5808
5789
  globalSelectedServer: m,
@@ -5818,7 +5799,7 @@ const bl = Ve(
5818
5799
  );
5819
5800
  };
5820
5801
  export {
5821
- ec as OperationList,
5822
- bl as OperationsFragment
5802
+ tc as OperationList,
5803
+ xl as OperationsFragment
5823
5804
  };
5824
- //# sourceMappingURL=OperationList-ff3ZvQsO.js.map
5805
+ //# sourceMappingURL=OperationList-B7nPIFB8.js.map