zudoku 0.4.2-dev.0 → 0.4.2-dev.10

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 (75) hide show
  1. package/dist/cli/dev/handler.js +1 -0
  2. package/dist/cli/dev/handler.js.map +1 -1
  3. package/dist/lib/components/DeveloperHint.js +1 -3
  4. package/dist/lib/components/DeveloperHint.js.map +1 -1
  5. package/dist/lib/components/Header.js +1 -3
  6. package/dist/lib/components/Header.js.map +1 -1
  7. package/dist/lib/components/Layout.js +3 -1
  8. package/dist/lib/components/Layout.js.map +1 -1
  9. package/dist/lib/components/navigation/SidebarCategory.js +3 -1
  10. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  11. package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
  12. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  13. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +8 -2
  14. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  15. package/dist/lib/plugins/markdown/Toc.js +1 -1
  16. package/dist/lib/plugins/markdown/Toc.js.map +1 -1
  17. package/dist/lib/plugins/openapi/index.js +1 -1
  18. package/dist/lib/plugins/openapi/index.js.map +1 -1
  19. package/dist/lib/plugins/openapi/playground/Playground.js +9 -3
  20. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  21. package/dist/lib/plugins/openapi/playground/ResponseTab.js +3 -1
  22. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +1 -1
  23. package/lib/{CategoryHeading-DrdbisK9.js → CategoryHeading-BoT0DVI-.js} +2 -2
  24. package/lib/{CategoryHeading-DrdbisK9.js.map → CategoryHeading-BoT0DVI-.js.map} +1 -1
  25. package/lib/{Combination-BPSuncey.js → Combination-C1wKWZ28.js} +2 -2
  26. package/lib/{Combination-BPSuncey.js.map → Combination-C1wKWZ28.js.map} +1 -1
  27. package/lib/DeveloperHint-Bv958_pY.js +16 -0
  28. package/lib/DeveloperHint-Bv958_pY.js.map +1 -0
  29. package/lib/{ErrorPage-CxovZyrp.js → ErrorPage-CcBjrY_g.js} +3 -3
  30. package/lib/{ErrorPage-CxovZyrp.js.map → ErrorPage-CcBjrY_g.js.map} +1 -1
  31. package/lib/{Input-mYAlPgNO.js → Input-BqnnTL7-.js} +3 -3
  32. package/lib/{Input-mYAlPgNO.js.map → Input-BqnnTL7-.js.map} +1 -1
  33. package/lib/{Markdown-D9dQG0k9.js → Markdown-C3hatKS5.js} +1011 -1087
  34. package/lib/Markdown-C3hatKS5.js.map +1 -0
  35. package/lib/{MdxPage-mbEyh43a.js → MdxPage-BEG8cDoF.js} +4 -4
  36. package/lib/MdxPage-BEG8cDoF.js.map +1 -0
  37. package/lib/{OperationList-DzCDNF6G.js → OperationList-BEiJFfFr.js} +9 -9
  38. package/lib/{OperationList-DzCDNF6G.js.map → OperationList-BEiJFfFr.js.map} +1 -1
  39. package/lib/{Route-Dz_g9UaG.js → Route-BvREOAN6.js} +2 -2
  40. package/lib/{Route-Dz_g9UaG.js.map → Route-BvREOAN6.js.map} +1 -1
  41. package/lib/{SidebarBadge-CfSY7FWN.js → SidebarBadge-C6wpM9X3.js} +3 -3
  42. package/lib/{SidebarBadge-CfSY7FWN.js.map → SidebarBadge-C6wpM9X3.js.map} +1 -1
  43. package/lib/{SlotletProvider-DwjrZITv.js → SlotletProvider-Bdzag6MN.js} +4 -4
  44. package/lib/{SlotletProvider-DwjrZITv.js.map → SlotletProvider-Bdzag6MN.js.map} +1 -1
  45. package/lib/{Spinner-BUm2J8So.js → Spinner-DiA314T5.js} +2 -2
  46. package/lib/{Spinner-BUm2J8So.js.map → Spinner-DiA314T5.js.map} +1 -1
  47. package/lib/{index-D4AiMx6N.js → index-ClDFRC39.js} +601 -595
  48. package/lib/index-ClDFRC39.js.map +1 -0
  49. package/lib/{index-DYZLSGmo.js → index-LWNs2niD.js} +3 -3
  50. package/lib/{index-DYZLSGmo.js.map → index-LWNs2niD.js.map} +1 -1
  51. package/lib/zudoku.auth-openid.js +4 -4
  52. package/lib/zudoku.components.js +152 -154
  53. package/lib/zudoku.components.js.map +1 -1
  54. package/lib/zudoku.plugin-api-keys.js +60 -47
  55. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  56. package/lib/zudoku.plugin-custom-page.js +1 -1
  57. package/lib/zudoku.plugin-markdown.js +1 -1
  58. package/lib/zudoku.plugin-openapi.js +4 -4
  59. package/package.json +3 -3
  60. package/src/app/main.css +17 -5
  61. package/src/lib/components/DeveloperHint.tsx +1 -3
  62. package/src/lib/components/Header.tsx +1 -2
  63. package/src/lib/components/Layout.tsx +5 -4
  64. package/src/lib/components/navigation/SidebarCategory.tsx +5 -2
  65. package/src/lib/components/navigation/SidebarWrapper.tsx +1 -1
  66. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +21 -1
  67. package/src/lib/plugins/markdown/Toc.tsx +1 -1
  68. package/src/lib/plugins/openapi/index.tsx +1 -1
  69. package/src/lib/plugins/openapi/playground/Playground.tsx +11 -5
  70. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +2 -1
  71. package/lib/DeveloperHint-BQSFXH01.js +0 -10
  72. package/lib/DeveloperHint-BQSFXH01.js.map +0 -1
  73. package/lib/Markdown-D9dQG0k9.js.map +0 -1
  74. package/lib/MdxPage-mbEyh43a.js.map +0 -1
  75. package/lib/index-D4AiMx6N.js.map +0 -1
@@ -2,15 +2,15 @@ import { j as f } from "./jsx-runtime-B6kdoens.js";
2
2
  import { u as Ea, C as Ra, c as Aa, f as Fa } from "./urql-YhcsXYy8.js";
3
3
  import { v as qa, w as Ia } from "./ZudokuContext-BHNQL3XO.js";
4
4
  import { createClient as _a } from "zudoku/openapi-worker";
5
- import { a as ur, u as Xt, P as me, d as be, R as La, S as dr, h as Ua, e as Ma, F as Ha, D as Ba, q as Da, m as Va, o as fr, n as nt, k as Wa, B as Ne, p as za } from "./Combination-BPSuncey.js";
6
- import { E as Ja } from "./ErrorPage-CxovZyrp.js";
7
- import { c as Ge, a as q, u as Ga, S as Ke, f as Ka } from "./Markdown-D9dQG0k9.js";
5
+ import { a as ur, u as Xt, P as me, d as be, R as La, S as dr, h as Ua, e as Ma, F as Ha, D as Ba, q as Da, m as Va, o as fr, n as nt, k as Wa, B as Ne, p as za } from "./Combination-C1wKWZ28.js";
6
+ import { E as Ja } from "./ErrorPage-CcBjrY_g.js";
7
+ import { c as Ge, a as q, u as Ga, S as Ke, f as Ka } from "./Markdown-C3hatKS5.js";
8
8
  import { j as Qa } from "./joinPath-B7kNnUX4.js";
9
- import { g as Zt, I as ut, C as Se, h as Ya, u as Xa, a as Za, F as eo, S as to, b as no, c as ro, d as ao, f as Sn, V as oo } from "./Input-mYAlPgNO.js";
9
+ import { g as Zt, I as ut, C as Se, h as Ya, u as Xa, a as Za, F as eo, S as to, b as no, c as ro, d as ao, f as Sn, V as oo } from "./Input-BqnnTL7-.js";
10
10
  import * as j from "react";
11
11
  import { useRef as pr, useEffect as mr, useState as hr, Fragment as rt, createContext as io, useContext as so, useTransition as lo, useMemo as co } from "react";
12
- import { P as bt, c as yr, R as uo, I as fo, T as pe } from "./SidebarBadge-CfSY7FWN.js";
13
- import { S as wn } from "./Spinner-BUm2J8So.js";
12
+ import { P as bt, c as yr, R as uo, I as fo, T as pe } from "./SidebarBadge-C6wpM9X3.js";
13
+ import { S as wn } from "./Spinner-DiA314T5.js";
14
14
  import { a as po, c as at, g as mo } from "./_commonjsHelpers-BVfed4GL.js";
15
15
  import { b as ho, g as yo } from "./index-ChhUJhLT.js";
16
16
  import { m as go } from "./router-BiRCp01d.js";
@@ -656,19 +656,19 @@ var en = "Dialog", [xr, Tu] = ur(en), [No, ie] = xr(en), kr = (e) => {
656
656
  __scopeDialog: t,
657
657
  children: n,
658
658
  open: a,
659
- defaultOpen: s,
659
+ defaultOpen: i,
660
660
  onOpenChange: o,
661
661
  modal: r = !0
662
- } = e, i = j.useRef(null), l = j.useRef(null), [c = !1, u] = fr({
662
+ } = e, s = j.useRef(null), l = j.useRef(null), [c = !1, u] = fr({
663
663
  prop: a,
664
- defaultProp: s,
664
+ defaultProp: i,
665
665
  onChange: o
666
666
  });
667
667
  return /* @__PURE__ */ f.jsx(
668
668
  No,
669
669
  {
670
670
  scope: t,
671
- triggerRef: i,
671
+ triggerRef: s,
672
672
  contentRef: l,
673
673
  contentId: nt(),
674
674
  titleId: nt(),
@@ -684,18 +684,18 @@ var en = "Dialog", [xr, Tu] = ur(en), [No, ie] = xr(en), kr = (e) => {
684
684
  kr.displayName = en;
685
685
  var $r = "DialogTrigger", Sr = j.forwardRef(
686
686
  (e, t) => {
687
- const { __scopeDialog: n, ...a } = e, s = ie($r, n), o = Xt(t, s.triggerRef);
687
+ const { __scopeDialog: n, ...a } = e, i = ie($r, n), o = Xt(t, i.triggerRef);
688
688
  return /* @__PURE__ */ f.jsx(
689
689
  me.button,
690
690
  {
691
691
  type: "button",
692
692
  "aria-haspopup": "dialog",
693
- "aria-expanded": s.open,
694
- "aria-controls": s.contentId,
695
- "data-state": rn(s.open),
693
+ "aria-expanded": i.open,
694
+ "aria-controls": i.contentId,
695
+ "data-state": rn(i.open),
696
696
  ...a,
697
697
  ref: o,
698
- onClick: be(e.onClick, s.onOpenToggle)
698
+ onClick: be(e.onClick, i.onOpenToggle)
699
699
  }
700
700
  );
701
701
  }
@@ -704,27 +704,27 @@ Sr.displayName = $r;
704
704
  var tn = "DialogPortal", [To, wr] = xr(tn, {
705
705
  forceMount: void 0
706
706
  }), jr = (e) => {
707
- const { __scopeDialog: t, forceMount: n, children: a, container: s } = e, o = ie(tn, t);
708
- return /* @__PURE__ */ f.jsx(To, { scope: t, forceMount: n, children: j.Children.map(a, (r) => /* @__PURE__ */ f.jsx(bt, { present: n || o.open, children: /* @__PURE__ */ f.jsx(Va, { asChild: !0, container: s, children: r }) })) });
707
+ const { __scopeDialog: t, forceMount: n, children: a, container: i } = e, o = ie(tn, t);
708
+ return /* @__PURE__ */ f.jsx(To, { scope: t, forceMount: n, children: j.Children.map(a, (r) => /* @__PURE__ */ f.jsx(bt, { present: n || o.open, children: /* @__PURE__ */ f.jsx(Va, { asChild: !0, container: i, children: r }) })) });
709
709
  };
710
710
  jr.displayName = tn;
711
711
  var dt = "DialogOverlay", Nr = j.forwardRef(
712
712
  (e, t) => {
713
- const n = wr(dt, e.__scopeDialog), { forceMount: a = n.forceMount, ...s } = e, o = ie(dt, e.__scopeDialog);
714
- return o.modal ? /* @__PURE__ */ f.jsx(bt, { present: a || o.open, children: /* @__PURE__ */ f.jsx(Oo, { ...s, ref: t }) }) : null;
713
+ const n = wr(dt, e.__scopeDialog), { forceMount: a = n.forceMount, ...i } = e, o = ie(dt, e.__scopeDialog);
714
+ return o.modal ? /* @__PURE__ */ f.jsx(bt, { present: a || o.open, children: /* @__PURE__ */ f.jsx(Oo, { ...i, ref: t }) }) : null;
715
715
  }
716
716
  );
717
717
  Nr.displayName = dt;
718
718
  var Oo = j.forwardRef(
719
719
  (e, t) => {
720
- const { __scopeDialog: n, ...a } = e, s = ie(dt, n);
720
+ const { __scopeDialog: n, ...a } = e, i = ie(dt, n);
721
721
  return (
722
722
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
723
723
  // ie. when `Overlay` and `Content` are siblings
724
- /* @__PURE__ */ f.jsx(La, { as: dr, allowPinchZoom: !0, shards: [s.contentRef], children: /* @__PURE__ */ f.jsx(
724
+ /* @__PURE__ */ f.jsx(La, { as: dr, allowPinchZoom: !0, shards: [i.contentRef], children: /* @__PURE__ */ f.jsx(
725
725
  me.div,
726
726
  {
727
- "data-state": rn(s.open),
727
+ "data-state": rn(i.open),
728
728
  ...a,
729
729
  ref: t,
730
730
  style: { pointerEvents: "auto", ...a.style }
@@ -734,14 +734,14 @@ var Oo = j.forwardRef(
734
734
  }
735
735
  ), Te = "DialogContent", Tr = j.forwardRef(
736
736
  (e, t) => {
737
- const n = wr(Te, e.__scopeDialog), { forceMount: a = n.forceMount, ...s } = e, o = ie(Te, e.__scopeDialog);
738
- return /* @__PURE__ */ f.jsx(bt, { present: a || o.open, children: o.modal ? /* @__PURE__ */ f.jsx(Co, { ...s, ref: t }) : /* @__PURE__ */ f.jsx(Po, { ...s, ref: t }) });
737
+ const n = wr(Te, e.__scopeDialog), { forceMount: a = n.forceMount, ...i } = e, o = ie(Te, e.__scopeDialog);
738
+ return /* @__PURE__ */ f.jsx(bt, { present: a || o.open, children: o.modal ? /* @__PURE__ */ f.jsx(Co, { ...i, ref: t }) : /* @__PURE__ */ f.jsx(Po, { ...i, ref: t }) });
739
739
  }
740
740
  );
741
741
  Tr.displayName = Te;
742
742
  var Co = j.forwardRef(
743
743
  (e, t) => {
744
- const n = ie(Te, e.__scopeDialog), a = j.useRef(null), s = Xt(t, n.contentRef, a);
744
+ const n = ie(Te, e.__scopeDialog), a = j.useRef(null), i = Xt(t, n.contentRef, a);
745
745
  return j.useEffect(() => {
746
746
  const o = a.current;
747
747
  if (o) return Ua(o);
@@ -749,7 +749,7 @@ var Co = j.forwardRef(
749
749
  Or,
750
750
  {
751
751
  ...e,
752
- ref: s,
752
+ ref: i,
753
753
  trapFocus: n.open,
754
754
  disableOutsidePointerEvents: !0,
755
755
  onCloseAutoFocus: be(e.onCloseAutoFocus, (o) => {
@@ -757,8 +757,8 @@ var Co = j.forwardRef(
757
757
  o.preventDefault(), (r = n.triggerRef.current) == null || r.focus();
758
758
  }),
759
759
  onPointerDownOutside: be(e.onPointerDownOutside, (o) => {
760
- const r = o.detail.originalEvent, i = r.button === 0 && r.ctrlKey === !0;
761
- (r.button === 2 || i) && o.preventDefault();
760
+ const r = o.detail.originalEvent, s = r.button === 0 && r.ctrlKey === !0;
761
+ (r.button === 2 || s) && o.preventDefault();
762
762
  }),
763
763
  onFocusOutside: be(
764
764
  e.onFocusOutside,
@@ -769,7 +769,7 @@ var Co = j.forwardRef(
769
769
  }
770
770
  ), Po = j.forwardRef(
771
771
  (e, t) => {
772
- const n = ie(Te, e.__scopeDialog), a = j.useRef(!1), s = j.useRef(!1);
772
+ const n = ie(Te, e.__scopeDialog), a = j.useRef(!1), i = j.useRef(!1);
773
773
  return /* @__PURE__ */ f.jsx(
774
774
  Or,
775
775
  {
@@ -778,21 +778,21 @@ var Co = j.forwardRef(
778
778
  trapFocus: !1,
779
779
  disableOutsidePointerEvents: !1,
780
780
  onCloseAutoFocus: (o) => {
781
- var r, i;
782
- (r = e.onCloseAutoFocus) == null || r.call(e, o), o.defaultPrevented || (a.current || (i = n.triggerRef.current) == null || i.focus(), o.preventDefault()), a.current = !1, s.current = !1;
781
+ var r, s;
782
+ (r = e.onCloseAutoFocus) == null || r.call(e, o), o.defaultPrevented || (a.current || (s = n.triggerRef.current) == null || s.focus(), o.preventDefault()), a.current = !1, i.current = !1;
783
783
  },
784
784
  onInteractOutside: (o) => {
785
785
  var l, c;
786
- (l = e.onInteractOutside) == null || l.call(e, o), o.defaultPrevented || (a.current = !0, o.detail.originalEvent.type === "pointerdown" && (s.current = !0));
786
+ (l = e.onInteractOutside) == null || l.call(e, o), o.defaultPrevented || (a.current = !0, o.detail.originalEvent.type === "pointerdown" && (i.current = !0));
787
787
  const r = o.target;
788
- ((c = n.triggerRef.current) == null ? void 0 : c.contains(r)) && o.preventDefault(), o.detail.originalEvent.type === "focusin" && s.current && o.preventDefault();
788
+ ((c = n.triggerRef.current) == null ? void 0 : c.contains(r)) && o.preventDefault(), o.detail.originalEvent.type === "focusin" && i.current && o.preventDefault();
789
789
  }
790
790
  }
791
791
  );
792
792
  }
793
793
  ), Or = j.forwardRef(
794
794
  (e, t) => {
795
- const { __scopeDialog: n, trapFocus: a, onOpenAutoFocus: s, onCloseAutoFocus: o, ...r } = e, i = ie(Te, n), l = j.useRef(null), c = Xt(t, l);
795
+ const { __scopeDialog: n, trapFocus: a, onOpenAutoFocus: i, onCloseAutoFocus: o, ...r } = e, s = ie(Te, n), l = j.useRef(null), c = Xt(t, l);
796
796
  return Ma(), /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
797
797
  /* @__PURE__ */ f.jsx(
798
798
  Ha,
@@ -800,53 +800,53 @@ var Co = j.forwardRef(
800
800
  asChild: !0,
801
801
  loop: !0,
802
802
  trapped: a,
803
- onMountAutoFocus: s,
803
+ onMountAutoFocus: i,
804
804
  onUnmountAutoFocus: o,
805
805
  children: /* @__PURE__ */ f.jsx(
806
806
  Ba,
807
807
  {
808
808
  role: "dialog",
809
- id: i.contentId,
810
- "aria-describedby": i.descriptionId,
811
- "aria-labelledby": i.titleId,
812
- "data-state": rn(i.open),
809
+ id: s.contentId,
810
+ "aria-describedby": s.descriptionId,
811
+ "aria-labelledby": s.titleId,
812
+ "data-state": rn(s.open),
813
813
  ...r,
814
814
  ref: c,
815
- onDismiss: () => i.onOpenChange(!1)
815
+ onDismiss: () => s.onOpenChange(!1)
816
816
  }
817
817
  )
818
818
  }
819
819
  ),
820
820
  /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
821
- /* @__PURE__ */ f.jsx(Eo, { titleId: i.titleId }),
822
- /* @__PURE__ */ f.jsx(Ao, { contentRef: l, descriptionId: i.descriptionId })
821
+ /* @__PURE__ */ f.jsx(Eo, { titleId: s.titleId }),
822
+ /* @__PURE__ */ f.jsx(Ao, { contentRef: l, descriptionId: s.descriptionId })
823
823
  ] })
824
824
  ] });
825
825
  }
826
826
  ), nn = "DialogTitle", Cr = j.forwardRef(
827
827
  (e, t) => {
828
- const { __scopeDialog: n, ...a } = e, s = ie(nn, n);
829
- return /* @__PURE__ */ f.jsx(me.h2, { id: s.titleId, ...a, ref: t });
828
+ const { __scopeDialog: n, ...a } = e, i = ie(nn, n);
829
+ return /* @__PURE__ */ f.jsx(me.h2, { id: i.titleId, ...a, ref: t });
830
830
  }
831
831
  );
832
832
  Cr.displayName = nn;
833
833
  var Pr = "DialogDescription", Er = j.forwardRef(
834
834
  (e, t) => {
835
- const { __scopeDialog: n, ...a } = e, s = ie(Pr, n);
836
- return /* @__PURE__ */ f.jsx(me.p, { id: s.descriptionId, ...a, ref: t });
835
+ const { __scopeDialog: n, ...a } = e, i = ie(Pr, n);
836
+ return /* @__PURE__ */ f.jsx(me.p, { id: i.descriptionId, ...a, ref: t });
837
837
  }
838
838
  );
839
839
  Er.displayName = Pr;
840
840
  var Rr = "DialogClose", Ar = j.forwardRef(
841
841
  (e, t) => {
842
- const { __scopeDialog: n, ...a } = e, s = ie(Rr, n);
842
+ const { __scopeDialog: n, ...a } = e, i = ie(Rr, n);
843
843
  return /* @__PURE__ */ f.jsx(
844
844
  me.button,
845
845
  {
846
846
  type: "button",
847
847
  ...a,
848
848
  ref: t,
849
- onClick: be(e.onClick, () => s.onOpenChange(!1))
849
+ onClick: be(e.onClick, () => i.onOpenChange(!1))
850
850
  }
851
851
  );
852
852
  }
@@ -872,8 +872,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
872
872
  const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${qr(Ro).contentName}}.`;
873
873
  return j.useEffect(() => {
874
874
  var o;
875
- const s = (o = e.current) == null ? void 0 : o.getAttribute("aria-describedby");
876
- t && s && (document.getElementById(t) || console.warn(a));
875
+ const i = (o = e.current) == null ? void 0 : o.getAttribute("aria-describedby");
876
+ t && i && (document.getElementById(t) || console.warn(a));
877
877
  }, [a, e, t]), null;
878
878
  }, Fo = kr, qo = Sr, Io = jr, Ir = Nr, _r = Tr, Lr = Cr, Ur = Er, _o = Ar;
879
879
  const Lo = Fo, Uo = qo, Mo = Io, Mr = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
@@ -988,15 +988,15 @@ var an = "Tabs", [Vo, Cu] = ur(an, [
988
988
  const {
989
989
  __scopeTabs: n,
990
990
  value: a,
991
- onValueChange: s,
991
+ onValueChange: i,
992
992
  defaultValue: o,
993
993
  orientation: r = "horizontal",
994
- dir: i,
994
+ dir: s,
995
995
  activationMode: l = "automatic",
996
996
  ...c
997
- } = e, u = Wa(i), [p, d] = fr({
997
+ } = e, u = Wa(s), [p, d] = fr({
998
998
  prop: a,
999
- onChange: s,
999
+ onChange: i,
1000
1000
  defaultProp: o
1001
1001
  });
1002
1002
  return /* @__PURE__ */ f.jsx(
@@ -1025,7 +1025,7 @@ var an = "Tabs", [Vo, Cu] = ur(an, [
1025
1025
  Jr.displayName = an;
1026
1026
  var Gr = "TabsList", Kr = j.forwardRef(
1027
1027
  (e, t) => {
1028
- const { __scopeTabs: n, loop: a = !0, ...s } = e, o = on(Gr, n), r = zr(n);
1028
+ const { __scopeTabs: n, loop: a = !0, ...i } = e, o = on(Gr, n), r = zr(n);
1029
1029
  return /* @__PURE__ */ f.jsx(
1030
1030
  uo,
1031
1031
  {
@@ -1039,7 +1039,7 @@ var Gr = "TabsList", Kr = j.forwardRef(
1039
1039
  {
1040
1040
  role: "tablist",
1041
1041
  "aria-orientation": o.orientation,
1042
- ...s,
1042
+ ...i,
1043
1043
  ref: t
1044
1044
  }
1045
1045
  )
@@ -1050,13 +1050,13 @@ var Gr = "TabsList", Kr = j.forwardRef(
1050
1050
  Kr.displayName = Gr;
1051
1051
  var Qr = "TabsTrigger", Yr = j.forwardRef(
1052
1052
  (e, t) => {
1053
- const { __scopeTabs: n, value: a, disabled: s = !1, ...o } = e, r = on(Qr, n), i = zr(n), l = ea(r.baseId, a), c = ta(r.baseId, a), u = a === r.value;
1053
+ const { __scopeTabs: n, value: a, disabled: i = !1, ...o } = e, r = on(Qr, n), s = zr(n), l = ea(r.baseId, a), c = ta(r.baseId, a), u = a === r.value;
1054
1054
  return /* @__PURE__ */ f.jsx(
1055
1055
  fo,
1056
1056
  {
1057
1057
  asChild: !0,
1058
- ...i,
1059
- focusable: !s,
1058
+ ...s,
1059
+ focusable: !i,
1060
1060
  active: u,
1061
1061
  children: /* @__PURE__ */ f.jsx(
1062
1062
  me.button,
@@ -1066,20 +1066,20 @@ var Qr = "TabsTrigger", Yr = j.forwardRef(
1066
1066
  "aria-selected": u,
1067
1067
  "aria-controls": c,
1068
1068
  "data-state": u ? "active" : "inactive",
1069
- "data-disabled": s ? "" : void 0,
1070
- disabled: s,
1069
+ "data-disabled": i ? "" : void 0,
1070
+ disabled: i,
1071
1071
  id: l,
1072
1072
  ...o,
1073
1073
  ref: t,
1074
1074
  onMouseDown: be(e.onMouseDown, (p) => {
1075
- !s && p.button === 0 && p.ctrlKey === !1 ? r.onValueChange(a) : p.preventDefault();
1075
+ !i && p.button === 0 && p.ctrlKey === !1 ? r.onValueChange(a) : p.preventDefault();
1076
1076
  }),
1077
1077
  onKeyDown: be(e.onKeyDown, (p) => {
1078
1078
  [" ", "Enter"].includes(p.key) && r.onValueChange(a);
1079
1079
  }),
1080
1080
  onFocus: be(e.onFocus, () => {
1081
1081
  const p = r.activationMode !== "manual";
1082
- !u && !s && p && r.onValueChange(a);
1082
+ !u && !i && p && r.onValueChange(a);
1083
1083
  })
1084
1084
  }
1085
1085
  )
@@ -1090,15 +1090,15 @@ var Qr = "TabsTrigger", Yr = j.forwardRef(
1090
1090
  Yr.displayName = Qr;
1091
1091
  var Xr = "TabsContent", Zr = j.forwardRef(
1092
1092
  (e, t) => {
1093
- const { __scopeTabs: n, value: a, forceMount: s, children: o, ...r } = e, i = on(Xr, n), l = ea(i.baseId, a), c = ta(i.baseId, a), u = a === i.value, p = j.useRef(u);
1093
+ const { __scopeTabs: n, value: a, forceMount: i, children: o, ...r } = e, s = on(Xr, n), l = ea(s.baseId, a), c = ta(s.baseId, a), u = a === s.value, p = j.useRef(u);
1094
1094
  return j.useEffect(() => {
1095
1095
  const d = requestAnimationFrame(() => p.current = !1);
1096
1096
  return () => cancelAnimationFrame(d);
1097
- }, []), /* @__PURE__ */ f.jsx(bt, { present: s || u, children: ({ present: d }) => /* @__PURE__ */ f.jsx(
1097
+ }, []), /* @__PURE__ */ f.jsx(bt, { present: i || u, children: ({ present: d }) => /* @__PURE__ */ f.jsx(
1098
1098
  me.div,
1099
1099
  {
1100
1100
  "data-state": u ? "active" : "inactive",
1101
- "data-orientation": i.orientation,
1101
+ "data-orientation": s.orientation,
1102
1102
  role: "tabpanel",
1103
1103
  "aria-labelledby": l,
1104
1104
  hidden: !d,
@@ -1162,8 +1162,8 @@ Ee.displayName = cn.displayName;
1162
1162
  const St = (e) => Math.abs(
1163
1163
  isNaN(parseInt(e)) ? e.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(e)) ? 0 : parseInt(e)
1164
1164
  ), wt = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, n) => `${St(t) + St(n)}`)) : St(e), zo = (e, t = {}) => {
1165
- const n = (3 * wt(e) + 2 * wt(e) + wt(e)) % 360, { saturation: a = 75, lightness: s = 60 } = t;
1166
- return `${n}deg ${a}% ${s}%`;
1165
+ const n = (3 * wt(e) + 2 * wt(e) + wt(e)) % 360, { saturation: a = 75, lightness: i = 60 } = t;
1166
+ return `${n}deg ${a}% ${i}%`;
1167
1167
  }, jt = "data-linked-param", Jo = (e) => {
1168
1168
  const [t] = Ga();
1169
1169
  return zo(
@@ -1175,13 +1175,13 @@ const St = (e) => Math.abs(
1175
1175
  className: t,
1176
1176
  backgroundOpacity: n = "100%",
1177
1177
  borderOpacity: a = "100%",
1178
- slug: s,
1178
+ slug: i,
1179
1179
  children: o,
1180
1180
  onClick: r
1181
1181
  }) => {
1182
- const i = pr(null), l = e.replace(/[{}]/g, ""), c = s == null ? void 0 : s.replace(/[{}]/g, ""), u = Jo(l), p = `hsl(${u} / ${a})`, d = `hsl(${u} / ${n})`;
1182
+ const s = pr(null), l = e.replace(/[{}]/g, ""), c = i == null ? void 0 : i.replace(/[{}]/g, ""), u = Jo(l), p = `hsl(${u} / ${a})`, d = `hsl(${u} / ${n})`;
1183
1183
  return mr(() => {
1184
- if (!c || !i.current) return;
1184
+ if (!c || !s.current) return;
1185
1185
  const m = () => {
1186
1186
  document.querySelectorAll(`[${jt}="${c}"]`).forEach((y) => {
1187
1187
  y instanceof HTMLElement && (y.dataset.active = "true");
@@ -1191,16 +1191,16 @@ const St = (e) => Math.abs(
1191
1191
  y instanceof HTMLElement && (y.dataset.active = "false");
1192
1192
  });
1193
1193
  };
1194
- return i.current.addEventListener("mouseenter", m), i.current.addEventListener("mouseleave", h), () => {
1194
+ return s.current.addEventListener("mouseenter", m), s.current.addEventListener("mouseleave", h), () => {
1195
1195
  var y, v;
1196
- (y = i.current) == null || y.removeEventListener("mouseenter", m), (v = i.current) == null || v.removeEventListener("mouseleave", h);
1196
+ (y = s.current) == null || y.removeEventListener("mouseenter", m), (v = s.current) == null || v.removeEventListener("mouseleave", h);
1197
1197
  };
1198
1198
  }, [c]), /* @__PURE__ */ f.jsxs(
1199
1199
  "span",
1200
1200
  {
1201
1201
  className: q("inline-flex relative rounded group", t),
1202
1202
  [jt]: c,
1203
- ref: i,
1203
+ ref: s,
1204
1204
  onClick: r,
1205
1205
  children: [
1206
1206
  /* @__PURE__ */ f.jsx(
@@ -1219,15 +1219,15 @@ const St = (e) => Math.abs(
1219
1219
  var l;
1220
1220
  const r = o.replace(/[:{}]/g, "");
1221
1221
  return ((l = n.pathParams.find((c) => c.name === r)) == null ? void 0 : l.value) ?? o;
1222
- }), s = new URL(a, e);
1222
+ }), i = new URL(a, e);
1223
1223
  return n.queryParams.filter((o) => o.active).forEach((o) => {
1224
- s.searchParams.set(o.name, o.value);
1225
- }), s;
1224
+ i.searchParams.set(o.name, o.value);
1225
+ }), i;
1226
1226
  }, Ko = ({
1227
1227
  control: e,
1228
1228
  register: t
1229
1229
  }) => {
1230
- const { fields: n, append: a, remove: s } = Zt({
1230
+ const { fields: n, append: a, remove: i } = Zt({
1231
1231
  control: e,
1232
1232
  name: "headers"
1233
1233
  });
@@ -1263,7 +1263,7 @@ const St = (e) => Math.abs(
1263
1263
  variant: "ghost",
1264
1264
  className: "text-muted-foreground opacity-0 group-hover:opacity-100",
1265
1265
  onClick: () => {
1266
- s(r);
1266
+ i(r);
1267
1267
  },
1268
1268
  type: "button",
1269
1269
  children: /* @__PURE__ */ f.jsx(vr, { size: 16 })
@@ -1297,17 +1297,17 @@ const St = (e) => Math.abs(
1297
1297
  {
1298
1298
  control: e,
1299
1299
  name: `pathParams.${a}.value`,
1300
- render: ({ field: s }) => /* @__PURE__ */ f.jsxs("div", { children: [
1300
+ render: ({ field: i }) => /* @__PURE__ */ f.jsxs("div", { children: [
1301
1301
  /* @__PURE__ */ f.jsx(
1302
1302
  un,
1303
1303
  {
1304
1304
  slug: n.name,
1305
1305
  name: n.name,
1306
1306
  backgroundOpacity: "25%",
1307
- borderOpacity: s.value ? "100%" : "0",
1307
+ borderOpacity: i.value ? "100%" : "0",
1308
1308
  className: q(
1309
1309
  "font-mono text-xs m-2",
1310
- !s.value && "opacity-60"
1310
+ !i.value && "opacity-60"
1311
1311
  )
1312
1312
  }
1313
1313
  ),
@@ -1321,10 +1321,10 @@ const St = (e) => Math.abs(
1321
1321
  {
1322
1322
  control: e,
1323
1323
  name: `pathParams.${a}.value`,
1324
- render: ({ field: s }) => /* @__PURE__ */ f.jsx(
1324
+ render: ({ field: i }) => /* @__PURE__ */ f.jsx(
1325
1325
  ut,
1326
1326
  {
1327
- ...s,
1327
+ ...i,
1328
1328
  placeholder: "Enter value",
1329
1329
  className: "border-0 shadow-none ring-0 font-mono text-xs"
1330
1330
  }
@@ -1336,7 +1336,7 @@ const St = (e) => Math.abs(
1336
1336
  {
1337
1337
  control: e,
1338
1338
  name: `pathParams.${a}.value`,
1339
- render: ({ field: s }) => /* @__PURE__ */ f.jsx(
1339
+ render: ({ field: i }) => /* @__PURE__ */ f.jsx(
1340
1340
  Ne,
1341
1341
  {
1342
1342
  size: "icon",
@@ -1345,10 +1345,10 @@ const St = (e) => Math.abs(
1345
1345
  "aria-label": "Clear value",
1346
1346
  className: q(
1347
1347
  "ms-2",
1348
- s.value.length === 0 ? "opacity-0 pointer-events-none" : "opacity-100"
1348
+ i.value.length === 0 ? "opacity-0 pointer-events-none" : "opacity-100"
1349
1349
  ),
1350
1350
  title: "Clear value",
1351
- onClick: () => s.onChange(""),
1351
+ onClick: () => i.onChange(""),
1352
1352
  children: /* @__PURE__ */ f.jsx(gr, { size: 16 })
1353
1353
  }
1354
1354
  )
@@ -1357,9 +1357,9 @@ const St = (e) => Math.abs(
1357
1357
  ] }) })
1358
1358
  ] }, n.id)) }) });
1359
1359
  }, Yo = (e, t) => {
1360
- const n = j.forwardRef(({ className: a, asChild: s, ...o }, r) => {
1361
- const i = s ? dr : e;
1362
- return j.createElement(i, {
1360
+ const n = j.forwardRef(({ className: a, asChild: i, ...o }, r) => {
1361
+ const s = i ? dr : e;
1362
+ return j.createElement(s, {
1363
1363
  ...o,
1364
1364
  ref: r,
1365
1365
  className: q(t, a)
@@ -1376,11 +1376,11 @@ const St = (e) => Math.abs(
1376
1376
  const { fields: n } = Zt({
1377
1377
  control: e,
1378
1378
  name: "queryParams"
1379
- }), a = Ya(), s = t.map((i) => !!i.isRequired), r = a.watch("identity") !== ot;
1379
+ }), a = Ya(), i = t.map((s) => !!s.isRequired), r = a.watch("identity") !== ot;
1380
1380
  return /* @__PURE__ */ f.jsx("div", { className: "", children: /* @__PURE__ */ f.jsx("table", { className: "w-full [&_td]:border [&_td]:p-1.5 [&_td]:px-2", children: /* @__PURE__ */ f.jsx("tbody", { children: n.filter(
1381
1381
  // TODO remove this hack for Accu or make it more generic
1382
- (i) => !(r && i.name === "apikey")
1383
- ).map((i, l) => /* @__PURE__ */ f.jsxs("tr", { className: "hover:bg-accent/40", children: [
1382
+ (s) => !(r && s.name === "apikey")
1383
+ ).map((s, l) => /* @__PURE__ */ f.jsxs("tr", { className: "hover:bg-accent/40", children: [
1384
1384
  /* @__PURE__ */ f.jsx("td", { className: "text-center", children: /* @__PURE__ */ f.jsx(
1385
1385
  Se,
1386
1386
  {
@@ -1406,10 +1406,10 @@ const St = (e) => Math.abs(
1406
1406
  {
1407
1407
  className: "flex items-center cursor-pointer",
1408
1408
  htmlFor: `queryParams.${l}.active`,
1409
- title: s[l] ? "Required field" : void 0,
1409
+ title: i[l] ? "Required field" : void 0,
1410
1410
  children: [
1411
1411
  c.value,
1412
- s[l] && /* @__PURE__ */ f.jsx("sup", { children: " *" })
1412
+ i[l] && /* @__PURE__ */ f.jsx("sup", { children: " *" })
1413
1413
  ]
1414
1414
  }
1415
1415
  ) }),
@@ -1459,7 +1459,7 @@ const St = (e) => Math.abs(
1459
1459
  }
1460
1460
  )
1461
1461
  ] }) })
1462
- ] }, i.id)) }) }) });
1462
+ ] }, s.id)) }) }) });
1463
1463
  }, ra = ({
1464
1464
  value: e,
1465
1465
  onChange: t,
@@ -1475,7 +1475,7 @@ const St = (e) => Math.abs(
1475
1475
  ),
1476
1476
  value: e,
1477
1477
  onChange: t,
1478
- children: a.map((s) => /* @__PURE__ */ f.jsx("option", { value: s.value, children: s.label }, s.value))
1478
+ children: a.map((i) => /* @__PURE__ */ f.jsx("option", { value: i.value, children: i.label }, i.value))
1479
1479
  }
1480
1480
  ),
1481
1481
  /* @__PURE__ */ f.jsx("div", { className: "row-start-1 col-start-1 self-center justify-self-end relative end-2 pointer-events-none", children: /* @__PURE__ */ f.jsx(vo, { size: 14 }) })
@@ -1505,7 +1505,7 @@ const St = (e) => Math.abs(
1505
1505
  body: e = "",
1506
1506
  headers: t
1507
1507
  }) => {
1508
- const n = ti(t), a = ni(e), s = a || e, [o, r] = hr(
1508
+ const n = ti(t), a = ni(e), i = a || e, [o, r] = hr(
1509
1509
  a ? "formatted" : "raw"
1510
1510
  );
1511
1511
  return /* @__PURE__ */ f.jsxs("div", { className: "flex flex-col gap-2", children: [
@@ -1515,15 +1515,15 @@ const St = (e) => Math.abs(
1515
1515
  language: o === "raw" ? a ? "plain" : n : "json",
1516
1516
  noBackground: !0,
1517
1517
  showLanguageIndicator: !0,
1518
- className: "overflow-x-auto p-4 text-xs max-h-[480px]",
1519
- code: o === "raw" ? e : s
1518
+ className: "overflow-x-auto p-4 text-xs max-h-[calc(83.333vh-180px)]",
1519
+ code: o === "raw" ? e : i
1520
1520
  }
1521
1521
  ) }),
1522
1522
  a && /* @__PURE__ */ f.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ f.jsx(
1523
1523
  ra,
1524
1524
  {
1525
1525
  value: o,
1526
- onChange: (i) => r(i.target.value),
1526
+ onChange: (s) => r(s.target.value),
1527
1527
  options: [
1528
1528
  { value: "formatted", label: "Formatted" },
1529
1529
  { value: "raw", label: "Raw" }
@@ -1547,15 +1547,15 @@ const St = (e) => Math.abs(
1547
1547
  url: t,
1548
1548
  method: n,
1549
1549
  headers: a = [],
1550
- queryParams: s = [],
1550
+ queryParams: i = [],
1551
1551
  pathParams: o = [],
1552
1552
  defaultBody: r = ""
1553
1553
  }) => {
1554
1554
  var w, S;
1555
- const { register: i, control: l, handleSubmit: c, watch: u, setValue: p, ...d } = Xa({
1555
+ const { register: s, control: l, handleSubmit: c, watch: u, setValue: p, ...d } = Xa({
1556
1556
  defaultValues: {
1557
1557
  body: r,
1558
- queryParams: s.map((k) => ({
1558
+ queryParams: i.map((k) => ({
1559
1559
  name: k.name,
1560
1560
  value: k.defaultValue ?? "",
1561
1561
  active: k.defaultActive ?? !1
@@ -1632,7 +1632,7 @@ const St = (e) => Math.abs(
1632
1632
  return /* @__PURE__ */ f.jsx(
1633
1633
  eo,
1634
1634
  {
1635
- register: i,
1635
+ register: s,
1636
1636
  control: l,
1637
1637
  handleSubmit: c,
1638
1638
  watch: u,
@@ -1654,11 +1654,11 @@ const St = (e) => Math.abs(
1654
1654
  /* @__PURE__ */ f.jsxs(
1655
1655
  jn,
1656
1656
  {
1657
- defaultValue: o.length > 0 ? "parameters" : "headers",
1657
+ defaultValue: i.length + o.length > 0 ? "parameters" : "headers",
1658
1658
  children: [
1659
- /* @__PURE__ */ f.jsxs("div", { className: "flex justify-between", children: [
1659
+ /* @__PURE__ */ f.jsxs("div", { className: "flex flex-wrap gap-1 justify-between", children: [
1660
1660
  /* @__PURE__ */ f.jsxs(Ut, { children: [
1661
- s.length + o.length > 0 && /* @__PURE__ */ f.jsx(Pe, { value: "parameters", children: "Parameters" }),
1661
+ i.length + o.length > 0 && /* @__PURE__ */ f.jsx(Pe, { value: "parameters", children: "Parameters" }),
1662
1662
  /* @__PURE__ */ f.jsxs(Pe, { value: "headers", children: [
1663
1663
  "Headers",
1664
1664
  " ",
@@ -1694,21 +1694,21 @@ const St = (e) => Math.abs(
1694
1694
  )
1695
1695
  ] })
1696
1696
  ] }),
1697
- /* @__PURE__ */ f.jsx(Ee, { value: "headers", children: /* @__PURE__ */ f.jsx(Ko, { control: l, register: i }) }),
1697
+ /* @__PURE__ */ f.jsx(Ee, { value: "headers", children: /* @__PURE__ */ f.jsx(Ko, { control: l, register: s }) }),
1698
1698
  /* @__PURE__ */ f.jsxs(Ee, { value: "parameters", children: [
1699
1699
  o.length > 0 && /* @__PURE__ */ f.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1700
1700
  /* @__PURE__ */ f.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
1701
1701
  /* @__PURE__ */ f.jsx(Qo, { control: l })
1702
1702
  ] }),
1703
- s.length > 0 && /* @__PURE__ */ f.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1703
+ i.length > 0 && /* @__PURE__ */ f.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1704
1704
  /* @__PURE__ */ f.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
1705
- /* @__PURE__ */ f.jsx(Zo, { control: l, queryParams: s })
1705
+ /* @__PURE__ */ f.jsx(Zo, { control: l, queryParams: i })
1706
1706
  ] })
1707
1707
  ] }),
1708
1708
  /* @__PURE__ */ f.jsx(Ee, { value: "body", children: /* @__PURE__ */ f.jsx(
1709
1709
  "textarea",
1710
1710
  {
1711
- ...i("body"),
1711
+ ...s("body"),
1712
1712
  className: "border w-full rounded p-2 bg-muted h-40"
1713
1713
  }
1714
1714
  ) })
@@ -1716,7 +1716,7 @@ const St = (e) => Math.abs(
1716
1716
  }
1717
1717
  )
1718
1718
  ] }),
1719
- /* @__PURE__ */ f.jsx("div", { className: "flex flex-col gap-4 p-8 bg-muted/70", children: v.error ? /* @__PURE__ */ f.jsxs("div", { className: "flex flex-col gap-2", children: [
1719
+ /* @__PURE__ */ f.jsx("div", { className: "p-8 bg-muted/70", children: v.error ? /* @__PURE__ */ f.jsxs("div", { className: "flex flex-col gap-2", children: [
1720
1720
  m.pathParams.some((k) => k.value === "") && /* @__PURE__ */ f.jsx(Ka, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
1721
1721
  /* @__PURE__ */ f.jsxs(ft, { children: [
1722
1722
  /* @__PURE__ */ f.jsx(Dr, { children: /* @__PURE__ */ f.jsx(Vr, { children: "Request failed" }) }),
@@ -1757,14 +1757,20 @@ const St = (e) => Math.abs(
1757
1757
  body: v.data.body
1758
1758
  }
1759
1759
  ) }),
1760
- /* @__PURE__ */ f.jsx(Ee, { value: "headers", children: /* @__PURE__ */ f.jsxs(ft, { className: "grid grid-cols-2 w-full gap-2.5 font-mono text-xs shadow-none p-4", children: [
1761
- /* @__PURE__ */ f.jsx("div", { className: "font-semibold", children: "Key" }),
1762
- /* @__PURE__ */ f.jsx("div", { className: "font-semibold", children: "Value" }),
1763
- g.map(([k, C]) => /* @__PURE__ */ f.jsxs(rt, { children: [
1764
- /* @__PURE__ */ f.jsx("div", { children: k }),
1765
- /* @__PURE__ */ f.jsx("div", { className: "break-words", children: C })
1766
- ] }, k))
1767
- ] }) })
1760
+ /* @__PURE__ */ f.jsx(Ee, { value: "headers", children: /* @__PURE__ */ f.jsxs(
1761
+ ft,
1762
+ {
1763
+ className: "max-h-[calc(83.333vh-140px)] overflow-y-auto grid grid-cols-2 w-full gap-2.5 font-mono text-xs shadow-none p-4",
1764
+ children: [
1765
+ /* @__PURE__ */ f.jsx("div", { className: "font-semibold", children: "Key" }),
1766
+ /* @__PURE__ */ f.jsx("div", { className: "font-semibold", children: "Value" }),
1767
+ g.map(([k, C]) => /* @__PURE__ */ f.jsxs(rt, { children: [
1768
+ /* @__PURE__ */ f.jsx("div", { children: k }),
1769
+ /* @__PURE__ */ f.jsx("div", { className: "break-words", children: C })
1770
+ ] }, k))
1771
+ ]
1772
+ }
1773
+ ) })
1768
1774
  ] })
1769
1775
  ] }) : /* @__PURE__ */ f.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ f.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: v.isPending ? /* @__PURE__ */ f.jsx(wn, {}) : "Send a request first to see the response here" }) }) })
1770
1776
  ] }) })
@@ -1822,16 +1828,16 @@ var Nn = (e, t) => {
1822
1828
  */
1823
1829
  constructor({ indent: e, join: t } = {}) {
1824
1830
  this.postProcessors = [], this.code = [], this.indentationCharacter = Tn, this.lineJoin = On, this.indentLine = (n, a = 0) => `${this.indentationCharacter.repeat(a)}${n}`, this.unshift = (n, a) => {
1825
- const s = this.indentLine(n, a);
1826
- this.code.unshift(s);
1831
+ const i = this.indentLine(n, a);
1832
+ this.code.unshift(i);
1827
1833
  }, this.push = (n, a) => {
1828
- const s = this.indentLine(n, a);
1829
- this.code.push(s);
1834
+ const i = this.indentLine(n, a);
1835
+ this.code.push(i);
1830
1836
  }, this.blank = () => {
1831
1837
  this.code.push("");
1832
1838
  }, this.join = () => {
1833
1839
  const n = this.code.join(this.lineJoin);
1834
- return this.postProcessors.reduce((s, o) => o(s), n);
1840
+ return this.postProcessors.reduce((i, o) => o(i), n);
1835
1841
  }, this.addPostProcessor = (n) => {
1836
1842
  this.postProcessors = [...this.postProcessors, n];
1837
1843
  }, this.indentationCharacter = e || Tn, this.lineJoin = t ?? On;
@@ -1847,16 +1853,16 @@ dn.default = (e) => Object.getOwnPropertySymbols(e).filter((t) => Object.prototy
1847
1853
  const ci = si, ui = li, di = dn.default;
1848
1854
  var fi = (e, t, n) => {
1849
1855
  const a = [];
1850
- return function s(o, r, i) {
1851
- r = r || {}, r.indent = r.indent || " ", i = i || "";
1856
+ return function i(o, r, s) {
1857
+ r = r || {}, r.indent = r.indent || " ", s = s || "";
1852
1858
  let l;
1853
1859
  r.inlineCharacterLimit === void 0 ? l = {
1854
1860
  newLine: `
1855
1861
  `,
1856
1862
  newLineOrSpace: `
1857
1863
  `,
1858
- pad: i,
1859
- indent: i + r.indent
1864
+ pad: s,
1865
+ indent: s + r.indent
1860
1866
  } : l = {
1861
1867
  newLine: "@@__STRINGIFY_OBJECT_NEW_LINE__@@",
1862
1868
  newLineOrSpace: "@@__STRINGIFY_OBJECT_NEW_LINE_OR_SPACE__@@",
@@ -1868,7 +1874,7 @@ var fi = (e, t, n) => {
1868
1874
  return u;
1869
1875
  const p = u.replace(new RegExp(l.newLine, "g"), "").replace(new RegExp(l.newLineOrSpace, "g"), " ").replace(new RegExp(l.pad + "|" + l.indent, "g"), "");
1870
1876
  return p.length <= r.inlineCharacterLimit ? p : u.replace(new RegExp(l.newLine + "|" + l.newLineOrSpace, "g"), `
1871
- `).replace(new RegExp(l.pad, "g"), i).replace(new RegExp(l.indent, "g"), i + r.indent);
1877
+ `).replace(new RegExp(l.pad, "g"), s).replace(new RegExp(l.indent, "g"), s + r.indent);
1872
1878
  };
1873
1879
  if (a.indexOf(o) !== -1)
1874
1880
  return '"[Circular]"';
@@ -1882,7 +1888,7 @@ var fi = (e, t, n) => {
1882
1888
  a.push(o);
1883
1889
  const u = "[" + l.newLine + o.map((p, d) => {
1884
1890
  const m = o.length - 1 === d ? l.newLine : "," + l.newLineOrSpace;
1885
- let h = s(p, r, i + r.indent);
1891
+ let h = i(p, r, s + r.indent);
1886
1892
  return r.transform && (h = r.transform(o, d, h)), l.indent + h + m;
1887
1893
  }).join("") + l.pad + "]";
1888
1894
  return a.pop(), c(u);
@@ -1893,8 +1899,8 @@ var fi = (e, t, n) => {
1893
1899
  return "{}";
1894
1900
  a.push(o);
1895
1901
  const p = "{" + l.newLine + u.map((d, m) => {
1896
- const h = u.length - 1 === m ? l.newLine : "," + l.newLineOrSpace, y = typeof d == "symbol", v = !y && /^[a-z$_][a-z$_0-9]*$/i.test(d), b = y || v ? d : s(d, r);
1897
- let g = s(o[d], r, i + r.indent);
1902
+ const h = u.length - 1 === m ? l.newLine : "," + l.newLineOrSpace, y = typeof d == "symbol", v = !y && /^[a-z$_][a-z$_0-9]*$/i.test(d), b = y || v ? d : i(d, r);
1903
+ let g = i(o[d], r, s + r.indent);
1898
1904
  return r.transform && (g = r.transform(o, d, g)), l.indent + String(b) + ": " + g + h;
1899
1905
  }).join("") + l.pad + "}";
1900
1906
  return a.pop(), c(p);
@@ -1905,9 +1911,9 @@ var fi = (e, t, n) => {
1905
1911
  };
1906
1912
  const G = /* @__PURE__ */ po(fi);
1907
1913
  function We(e, t = {}) {
1908
- const { delimiter: n = '"', escapeChar: a = "\\", escapeNewlines: s = !0 } = t;
1914
+ const { delimiter: n = '"', escapeChar: a = "\\", escapeNewlines: i = !0 } = t;
1909
1915
  return [...e.toString()].map((r) => r === "\b" ? `${a}b` : r === " " ? `${a}t` : r === `
1910
- ` ? s ? `${a}n` : r : r === "\f" ? `${a}f` : r === "\r" ? s ? `${a}r` : r : r === a ? a + a : r === n ? a + n : r < " " || r > "~" ? JSON.stringify(r).slice(1, -1) : r).join("");
1916
+ ` ? i ? `${a}n` : r : r === "\f" ? `${a}f` : r === "\r" ? i ? `${a}r` : r : r === a ? a + a : r === n ? a + n : r < " " || r > "~" ? JSON.stringify(r).slice(1, -1) : r).join("");
1911
1917
  }
1912
1918
  var ze = (e) => We(e, { delimiter: "'" }), V = (e) => We(e, { delimiter: '"' }), pi = {
1913
1919
  info: {
@@ -1917,13 +1923,13 @@ var ze = (e) => We(e, { delimiter: "'" }), V = (e) => We(e, { delimiter: '"' }),
1917
1923
  description: "Simple REST and HTTP API Client for C",
1918
1924
  extname: ".c"
1919
1925
  },
1920
- convert: ({ method: e, fullUrl: t, headersObj: n, allHeaders: a, postData: s }) => {
1921
- const { push: o, blank: r, join: i } = new O();
1926
+ convert: ({ method: e, fullUrl: t, headersObj: n, allHeaders: a, postData: i }) => {
1927
+ const { push: o, blank: r, join: s } = new O();
1922
1928
  o("CURL *hnd = curl_easy_init();"), r(), o(`curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "${e.toUpperCase()}");`), o("curl_easy_setopt(hnd, CURLOPT_WRITEDATA, stdout);"), o(`curl_easy_setopt(hnd, CURLOPT_URL, "${t}");`);
1923
1929
  const l = Object.keys(n);
1924
1930
  return l.length && (r(), o("struct curl_slist *headers = NULL;"), l.forEach((c) => {
1925
1931
  o(`headers = curl_slist_append(headers, "${c}: ${V(n[c])}");`);
1926
- }), o("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), a.cookie && (r(), o(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${a.cookie}");`)), s.text && (r(), o(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(s.text)});`)), r(), o("CURLcode ret = curl_easy_perform(hnd);"), i();
1932
+ }), o("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), a.cookie && (r(), o(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${a.cookie}");`)), i.text && (r(), o(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(i.text)});`)), r(), o("CURLcode ret = curl_easy_perform(hnd);"), s();
1927
1933
  }
1928
1934
  }, mi = {
1929
1935
  info: {
@@ -1969,8 +1975,8 @@ ${n}`);
1969
1975
  return `#"${e.source}"`;
1970
1976
  case "object": {
1971
1977
  const t = Object.keys(e).reduce((n, a) => {
1972
- const s = it(a.length + 2, Mt(e[a]));
1973
- return `${n}:${a} ${s}
1978
+ const i = it(a.length + 2, Mt(e[a]));
1979
+ return `${n}:${a} ${i}
1974
1980
  `;
1975
1981
  }, "").trim();
1976
1982
  return `{${it(1, t)}}`;
@@ -1990,12 +1996,12 @@ ${n}`);
1990
1996
  description: "An idiomatic clojure http client wrapping the apache client.",
1991
1997
  extname: ".clj"
1992
1998
  },
1993
- convert: ({ queryObj: e, method: t, postData: n, url: a, allHeaders: s }, o) => {
1994
- const { push: r, join: i } = new O({ indent: o == null ? void 0 : o.indent }), l = ["get", "post", "put", "delete", "patch", "head", "options"];
1999
+ convert: ({ queryObj: e, method: t, postData: n, url: a, allHeaders: i }, o) => {
2000
+ const { push: r, join: s } = new O({ indent: o == null ? void 0 : o.indent }), l = ["get", "post", "put", "delete", "patch", "head", "options"];
1995
2001
  if (t = t.toLowerCase(), !l.includes(t))
1996
- return r("Method not supported"), i();
2002
+ return r("Method not supported"), s();
1997
2003
  const c = {
1998
- headers: s,
2004
+ headers: i,
1999
2005
  "query-params": e
2000
2006
  };
2001
2007
  switch (n.mimeType) {
@@ -2051,7 +2057,7 @@ ${n}`);
2051
2057
  const u = 11 + t.length + a.length, p = it(u, Mt(Pn(c)));
2052
2058
  r(`(client/${t} "${a}" ${p})`);
2053
2059
  }
2054
- return i();
2060
+ return s();
2055
2061
  }
2056
2062
  }, vi = {
2057
2063
  info: {
@@ -2070,12 +2076,12 @@ ${n}`);
2070
2076
  gzip: "DecompressionMethods.GZip",
2071
2077
  deflate: "DecompressionMethods.Deflate"
2072
2078
  }, a = [];
2073
- return typeof t == "string" && (t = [t]), t.forEach((s) => {
2074
- s.split(",").forEach((o) => {
2079
+ return typeof t == "string" && (t = [t]), t.forEach((i) => {
2080
+ i.split(",").forEach((o) => {
2075
2081
  const r = /\s*([^;\s]+)/.exec(o);
2076
2082
  if (r) {
2077
- const i = n[r[1]];
2078
- i && a.push(i);
2083
+ const s = n[r[1]];
2084
+ s && a.push(s);
2079
2085
  }
2080
2086
  });
2081
2087
  }), a;
@@ -2087,12 +2093,12 @@ ${n}`);
2087
2093
  description: ".NET Standard HTTP Client",
2088
2094
  extname: ".cs"
2089
2095
  },
2090
- convert: ({ allHeaders: e, postData: t, method: n, fullUrl: a }, s) => {
2096
+ convert: ({ allHeaders: e, postData: t, method: n, fullUrl: a }, i) => {
2091
2097
  var m, h;
2092
2098
  const o = {
2093
2099
  indent: " ",
2094
- ...s
2095
- }, { push: r, join: i } = new O({ indent: o.indent });
2100
+ ...i
2101
+ }, { push: r, join: s } = new O({ indent: o.indent });
2096
2102
  r("using System.Net.Http.Headers;");
2097
2103
  let l = "";
2098
2104
  const c = !!e.cookie, u = bi(e);
@@ -2129,7 +2135,7 @@ ${n}`);
2129
2135
  break;
2130
2136
  }
2131
2137
  }
2132
- return r("};"), r("using (var response = await client.SendAsync(request))"), r("{"), r("response.EnsureSuccessStatusCode();", 1), r("var body = await response.Content.ReadAsStringAsync();", 1), r("Console.WriteLine(body);", 1), r("}"), i();
2138
+ return r("};"), r("using (var response = await client.SendAsync(request))"), r("{"), r("response.EnsureSuccessStatusCode();", 1), r("var body = await response.Content.ReadAsStringAsync();", 1), r("Console.WriteLine(body);", 1), r("}"), s();
2133
2139
  }
2134
2140
  };
2135
2141
  function ki(e) {
@@ -2144,8 +2150,8 @@ var $i = {
2144
2150
  extname: ".cs",
2145
2151
  installation: "dotnet add package RestSharp"
2146
2152
  },
2147
- convert: ({ method: e, fullUrl: t, headersObj: n, cookies: a, postData: s, uriObj: o }) => {
2148
- const { push: r, join: i } = new O();
2153
+ convert: ({ method: e, fullUrl: t, headersObj: n, cookies: a, postData: i, uriObj: o }) => {
2154
+ const { push: r, join: s } = new O();
2149
2155
  if (!["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(
2150
2156
  e.toUpperCase()
2151
2157
  ))
@@ -2153,41 +2159,41 @@ var $i = {
2153
2159
  r(`using RestSharp;
2154
2160
 
2155
2161
  `), r(`var options = new RestClientOptions("${t}");`), r("var client = new RestClient(options);"), r('var request = new RestRequest("");');
2156
- const c = s.mimeType && s.mimeType === "multipart/form-data";
2162
+ const c = i.mimeType && i.mimeType === "multipart/form-data";
2157
2163
  switch (c && r("request.AlwaysMultipartFormData = true;"), Object.keys(n).forEach((u) => {
2158
- if (s.mimeType && u.toLowerCase() === "content-type" && s.text) {
2159
- c && s.boundary && r(`request.FormBoundary = "${s.boundary}";`);
2164
+ if (i.mimeType && u.toLowerCase() === "content-type" && i.text) {
2165
+ c && i.boundary && r(`request.FormBoundary = "${i.boundary}";`);
2160
2166
  return;
2161
2167
  }
2162
2168
  r(`request.AddHeader("${u}", "${V(n[u])}");`);
2163
2169
  }), a.forEach(({ name: u, value: p }) => {
2164
2170
  r(`request.AddCookie("${u}", "${V(p)}", "${o.pathname}", "${o.host}");`);
2165
- }), s.mimeType) {
2171
+ }), i.mimeType) {
2166
2172
  case "multipart/form-data":
2167
- if (!s.params) break;
2168
- s.params.forEach((u) => {
2173
+ if (!i.params) break;
2174
+ i.params.forEach((u) => {
2169
2175
  u.fileName ? r(`request.AddFile("${u.name}", "${u.fileName}");`) : r(`request.AddParameter("${u.name}", "${u.value}");`);
2170
2176
  });
2171
2177
  break;
2172
2178
  case "application/x-www-form-urlencoded":
2173
- if (!s.params) break;
2174
- s.params.forEach((u) => {
2179
+ if (!i.params) break;
2180
+ i.params.forEach((u) => {
2175
2181
  r(`request.AddParameter("${u.name}", "${u.value}");`);
2176
2182
  });
2177
2183
  break;
2178
2184
  case "application/json": {
2179
- if (!s.text) break;
2180
- const u = JSON.stringify(s.text);
2185
+ if (!i.text) break;
2186
+ const u = JSON.stringify(i.text);
2181
2187
  r(`request.AddJsonBody(${u}, false);`);
2182
2188
  break;
2183
2189
  }
2184
2190
  default:
2185
- if (!s.text) break;
2186
- r(`request.AddStringBody("${s.text}", "${s.mimeType}");`);
2191
+ if (!i.text) break;
2192
+ r(`request.AddStringBody("${i.text}", "${i.mimeType}");`);
2187
2193
  }
2188
2194
  return r(`var response = await client.${ki(e)}Async(request);
2189
2195
  `), r(`Console.WriteLine("{0}", response.Content);
2190
- `), i();
2196
+ `), s();
2191
2197
  }
2192
2198
  }, Si = {
2193
2199
  info: {
@@ -2208,15 +2214,15 @@ var $i = {
2208
2214
  description: "Golang HTTP client request",
2209
2215
  extname: ".go"
2210
2216
  },
2211
- convert: ({ postData: e, method: t, allHeaders: n, fullUrl: a }, s = {}) => {
2212
- const { blank: o, push: r, join: i } = new O({ indent: " " }), { showBoilerplate: l = !0, checkErrors: c = !1, printBody: u = !0, timeout: p = -1 } = s, d = c ? "err" : "_", m = l ? 1 : 0, h = () => {
2217
+ convert: ({ postData: e, method: t, allHeaders: n, fullUrl: a }, i = {}) => {
2218
+ const { blank: o, push: r, join: s } = new O({ indent: " " }), { showBoilerplate: l = !0, checkErrors: c = !1, printBody: u = !0, timeout: p = -1 } = i, d = c ? "err" : "_", m = l ? 1 : 0, h = () => {
2213
2219
  c && (r("if err != nil {", m), r("panic(err)", m + 1), r("}", m));
2214
2220
  };
2215
2221
  l && (r("package main"), o(), r("import ("), r('"fmt"', m), p > 0 && r('"time"', m), e.text && r('"strings"', m), r('"net/http"', m), u && r('"io"', m), r(")"), o(), r("func main() {"), o());
2216
2222
  const y = p > 0, v = y, b = v ? "client" : "http.DefaultClient";
2217
2223
  return v && (r("client := http.Client{", m), y && r(`Timeout: time.Duration(${p} * time.Second),`, m + 1), r("}", m), o()), r(`url := "${a}"`, m), o(), e.text ? (r(`payload := strings.NewReader(${JSON.stringify(e.text)})`, m), o(), r(`req, ${d} := http.NewRequest("${t}", url, payload)`, m), o()) : (r(`req, ${d} := http.NewRequest("${t}", url, nil)`, m), o()), h(), Object.keys(n).length && (Object.keys(n).forEach((g) => {
2218
2224
  r(`req.Header.Add("${g}", "${V(n[g])}")`, m);
2219
- }), o()), r(`res, ${d} := ${b}.Do(req)`, m), h(), u && (o(), r("defer res.Body.Close()", m), r(`body, ${d} := io.ReadAll(res.Body)`, m), h()), o(), u && r("fmt.Println(string(body))", m), l && (o(), r("}")), i();
2225
+ }), o()), r(`res, ${d} := ${b}.Do(req)`, m), h(), u && (o(), r("defer res.Body.Close()", m), r(`body, ${d} := io.ReadAll(res.Body)`, m), h()), o(), u && r("fmt.Println(string(body))", m), l && (o(), r("}")), s();
2220
2226
  }
2221
2227
  }, ji = {
2222
2228
  info: {
@@ -2237,19 +2243,19 @@ var $i = {
2237
2243
  description: "HTTP/1.1 request string in accordance with RFC 7230",
2238
2244
  extname: null
2239
2245
  },
2240
- convert: ({ method: e, fullUrl: t, uriObj: n, httpVersion: a, allHeaders: s, postData: o }, r) => {
2241
- const i = {
2246
+ convert: ({ method: e, fullUrl: t, uriObj: n, httpVersion: a, allHeaders: i, postData: o }, r) => {
2247
+ const s = {
2242
2248
  absoluteURI: !1,
2243
2249
  autoContentLength: !0,
2244
2250
  autoHost: !0,
2245
2251
  ...r
2246
- }, { blank: l, push: c, join: u } = new O({ indent: "", join: En }), p = i.absoluteURI ? t : n.path;
2252
+ }, { blank: l, push: c, join: u } = new O({ indent: "", join: En }), p = s.absoluteURI ? t : n.path;
2247
2253
  c(`${e} ${p} ${a}`);
2248
- const d = Object.keys(s);
2254
+ const d = Object.keys(i);
2249
2255
  if (d.forEach((y) => {
2250
2256
  const v = y.toLowerCase().replace(/(^|-)(\w)/g, (b) => b.toUpperCase());
2251
- c(`${v}: ${s[y]}`);
2252
- }), i.autoHost && !d.includes("host") && c(`Host: ${n.host}`), i.autoContentLength && o.text && !d.includes("content-length")) {
2257
+ c(`${v}: ${i[y]}`);
2258
+ }), s.autoHost && !d.includes("host") && c(`Host: ${n.host}`), s.autoContentLength && o.text && !d.includes("content-length")) {
2253
2259
  const v = new TextEncoder().encode(o.text).length.toString();
2254
2260
  c(`Content-Length: ${v}`);
2255
2261
  }
@@ -2274,14 +2280,14 @@ var $i = {
2274
2280
  description: "Asynchronous Http and WebSocket Client library for Java",
2275
2281
  extname: ".java"
2276
2282
  },
2277
- convert: ({ method: e, allHeaders: t, postData: n, fullUrl: a }, s) => {
2283
+ convert: ({ method: e, allHeaders: t, postData: n, fullUrl: a }, i) => {
2278
2284
  const o = {
2279
2285
  indent: " ",
2280
- ...s
2281
- }, { blank: r, push: i, join: l } = new O({ indent: o.indent });
2282
- return i("AsyncHttpClient client = new DefaultAsyncHttpClient();"), i(`client.prepare("${e.toUpperCase()}", "${a}")`), Object.keys(t).forEach((c) => {
2283
- i(`.setHeader("${c}", "${V(t[c])}")`, 1);
2284
- }), n.text && i(`.setBody(${JSON.stringify(n.text)})`, 1), i(".execute()", 1), i(".toCompletableFuture()", 1), i(".thenAccept(System.out::println)", 1), i(".join();", 1), r(), i("client.close();"), l();
2286
+ ...i
2287
+ }, { blank: r, push: s, join: l } = new O({ indent: o.indent });
2288
+ return s("AsyncHttpClient client = new DefaultAsyncHttpClient();"), s(`client.prepare("${e.toUpperCase()}", "${a}")`), Object.keys(t).forEach((c) => {
2289
+ s(`.setHeader("${c}", "${V(t[c])}")`, 1);
2290
+ }), n.text && s(`.setBody(${JSON.stringify(n.text)})`, 1), s(".execute()", 1), s(".toCompletableFuture()", 1), s(".thenAccept(System.out::println)", 1), s(".join();", 1), r(), s("client.close();"), l();
2285
2291
  }
2286
2292
  }, Ci = {
2287
2293
  info: {
@@ -2291,11 +2297,11 @@ var $i = {
2291
2297
  description: "Java Standardized HTTP Client API",
2292
2298
  extname: ".java"
2293
2299
  },
2294
- convert: ({ allHeaders: e, fullUrl: t, method: n, postData: a }, s) => {
2300
+ convert: ({ allHeaders: e, fullUrl: t, method: n, postData: a }, i) => {
2295
2301
  const o = {
2296
2302
  indent: " ",
2297
- ...s
2298
- }, { push: r, join: i } = new O({ indent: o.indent });
2303
+ ...i
2304
+ }, { push: r, join: s } = new O({ indent: o.indent });
2299
2305
  return r("HttpRequest request = HttpRequest.newBuilder()"), r(`.uri(URI.create("${t}"))`, 2), Object.keys(e).forEach((l) => {
2300
2306
  r(`.header("${l}", "${V(e[l])}")`, 2);
2301
2307
  }), a.text ? r(
@@ -2303,7 +2309,7 @@ var $i = {
2303
2309
  2
2304
2310
  ) : r(`.method("${n.toUpperCase()}", HttpRequest.BodyPublishers.noBody())`, 2), r(".build();", 2), r(
2305
2311
  "HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"
2306
- ), r("System.out.println(response.body());"), i();
2312
+ ), r("System.out.println(response.body());"), s();
2307
2313
  }
2308
2314
  }, Pi = {
2309
2315
  info: {
@@ -2313,14 +2319,14 @@ var $i = {
2313
2319
  description: "An HTTP Request Client Library",
2314
2320
  extname: ".java"
2315
2321
  },
2316
- convert: ({ postData: e, method: t, fullUrl: n, allHeaders: a }, s) => {
2322
+ convert: ({ postData: e, method: t, fullUrl: n, allHeaders: a }, i) => {
2317
2323
  const o = {
2318
2324
  indent: " ",
2319
- ...s
2320
- }, { push: r, blank: i, join: l } = new O({ indent: o.indent }), c = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"], u = ["POST", "PUT", "DELETE", "PATCH"];
2321
- return r("OkHttpClient client = new OkHttpClient();"), i(), e.text && (e.boundary ? r(`MediaType mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}");`) : r(`MediaType mediaType = MediaType.parse("${e.mimeType}");`), r(`RequestBody body = RequestBody.create(mediaType, ${JSON.stringify(e.text)});`)), r("Request request = new Request.Builder()"), r(`.url("${n}")`, 1), c.includes(t.toUpperCase()) ? u.includes(t.toUpperCase()) ? e.text ? r(`.${t.toLowerCase()}(body)`, 1) : r(`.${t.toLowerCase()}(null)`, 1) : r(`.${t.toLowerCase()}()`, 1) : e.text ? r(`.method("${t.toUpperCase()}", body)`, 1) : r(`.method("${t.toUpperCase()}", null)`, 1), Object.keys(a).forEach((p) => {
2325
+ ...i
2326
+ }, { push: r, blank: s, join: l } = new O({ indent: o.indent }), c = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"], u = ["POST", "PUT", "DELETE", "PATCH"];
2327
+ return r("OkHttpClient client = new OkHttpClient();"), s(), e.text && (e.boundary ? r(`MediaType mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}");`) : r(`MediaType mediaType = MediaType.parse("${e.mimeType}");`), r(`RequestBody body = RequestBody.create(mediaType, ${JSON.stringify(e.text)});`)), r("Request request = new Request.Builder()"), r(`.url("${n}")`, 1), c.includes(t.toUpperCase()) ? u.includes(t.toUpperCase()) ? e.text ? r(`.${t.toLowerCase()}(body)`, 1) : r(`.${t.toLowerCase()}(null)`, 1) : r(`.${t.toLowerCase()}()`, 1) : e.text ? r(`.method("${t.toUpperCase()}", body)`, 1) : r(`.method("${t.toUpperCase()}", null)`, 1), Object.keys(a).forEach((p) => {
2322
2328
  r(`.addHeader("${p}", "${V(a[p])}")`, 1);
2323
- }), r(".build();", 1), i(), r("Response response = client.newCall(request).execute();"), l();
2329
+ }), r(".build();", 1), s(), r("Response response = client.newCall(request).execute();"), l();
2324
2330
  }
2325
2331
  }, Ei = {
2326
2332
  info: {
@@ -2330,14 +2336,14 @@ var $i = {
2330
2336
  description: "Lightweight HTTP Request Client Library",
2331
2337
  extname: ".java"
2332
2338
  },
2333
- convert: ({ method: e, allHeaders: t, postData: n, fullUrl: a }, s) => {
2339
+ convert: ({ method: e, allHeaders: t, postData: n, fullUrl: a }, i) => {
2334
2340
  const o = {
2335
2341
  indent: " ",
2336
- ...s
2337
- }, { join: r, push: i } = new O({ indent: o.indent });
2338
- return ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(e.toUpperCase()) ? i(`HttpResponse<String> response = Unirest.${e.toLowerCase()}("${a}")`) : i(`HttpResponse<String> response = Unirest.customMethod("${e.toUpperCase()}","${a}")`), Object.keys(t).forEach((c) => {
2339
- i(`.header("${c}", "${V(t[c])}")`, 1);
2340
- }), n.text && i(`.body(${JSON.stringify(n.text)})`, 1), i(".asString();", 1), r();
2342
+ ...i
2343
+ }, { join: r, push: s } = new O({ indent: o.indent });
2344
+ return ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(e.toUpperCase()) ? s(`HttpResponse<String> response = Unirest.${e.toLowerCase()}("${a}")`) : s(`HttpResponse<String> response = Unirest.customMethod("${e.toUpperCase()}","${a}")`), Object.keys(t).forEach((c) => {
2345
+ s(`.header("${c}", "${V(t[c])}")`, 1);
2346
+ }), n.text && s(`.body(${JSON.stringify(n.text)})`, 1), s(".asString();", 1), r();
2341
2347
  }
2342
2348
  }, Ri = {
2343
2349
  info: {
@@ -2360,40 +2366,40 @@ var $i = {
2360
2366
  extname: ".js",
2361
2367
  installation: "npm install axios --save"
2362
2368
  },
2363
- convert: ({ allHeaders: e, method: t, url: n, queryObj: a, postData: s }, o) => {
2369
+ convert: ({ allHeaders: e, method: t, url: n, queryObj: a, postData: i }, o) => {
2364
2370
  const r = {
2365
2371
  indent: " ",
2366
2372
  ...o
2367
- }, { blank: i, push: l, join: c, addPostProcessor: u } = new O({ indent: r.indent });
2368
- l("import axios from 'axios';"), i();
2373
+ }, { blank: s, push: l, join: c, addPostProcessor: u } = new O({ indent: r.indent });
2374
+ l("import axios from 'axios';"), s();
2369
2375
  const p = {
2370
2376
  method: t,
2371
2377
  url: n
2372
2378
  };
2373
- switch (Object.keys(a).length && (p.params = a), Object.keys(e).length && (p.headers = e), s.mimeType) {
2379
+ switch (Object.keys(a).length && (p.params = a), Object.keys(e).length && (p.headers = e), i.mimeType) {
2374
2380
  case "application/x-www-form-urlencoded":
2375
- s.params && (l("const encodedParams = new URLSearchParams();"), s.params.forEach((m) => {
2381
+ i.params && (l("const encodedParams = new URLSearchParams();"), i.params.forEach((m) => {
2376
2382
  l(`encodedParams.set('${m.name}', '${m.value}');`);
2377
- }), i(), p.data = "encodedParams,", u((m) => m.replace(/'encodedParams,'/, "encodedParams,")));
2383
+ }), s(), p.data = "encodedParams,", u((m) => m.replace(/'encodedParams,'/, "encodedParams,")));
2378
2384
  break;
2379
2385
  case "application/json":
2380
- s.jsonObj && (p.data = s.jsonObj);
2386
+ i.jsonObj && (p.data = i.jsonObj);
2381
2387
  break;
2382
2388
  case "multipart/form-data":
2383
- if (!s.params)
2389
+ if (!i.params)
2384
2390
  break;
2385
- l("const form = new FormData();"), s.params.forEach((m) => {
2391
+ l("const form = new FormData();"), i.params.forEach((m) => {
2386
2392
  l(`form.append('${m.name}', '${m.value || m.fileName || ""}');`);
2387
- }), i(), p.data = "[form]";
2393
+ }), s(), p.data = "[form]";
2388
2394
  break;
2389
2395
  default:
2390
- s.text && (p.data = s.text);
2396
+ i.text && (p.data = i.text);
2391
2397
  }
2392
2398
  const d = G(p, {
2393
2399
  indent: " ",
2394
2400
  inlineCharacterLimit: 80
2395
2401
  }).replace('"[form]"', "form");
2396
- return l(`const options = ${d};`), i(), l("axios"), l(".request(options)", 1), l(".then(function (response) {", 1), l("console.log(response.data);", 2), l("})", 1), l(".catch(function (error) {", 1), l("console.error(error);", 2), l("});", 1), c();
2402
+ return l(`const options = ${d};`), s(), l("axios"), l(".request(options)", 1), l(".then(function (response) {", 1), l("console.log(response.data);", 2), l("})", 1), l(".catch(function (error) {", 1), l("console.error(error);", 2), l("});", 1), c();
2397
2403
  }
2398
2404
  }, Fi = {
2399
2405
  info: {
@@ -2403,12 +2409,12 @@ var $i = {
2403
2409
  description: "Perform asynchronous HTTP requests with the Fetch API",
2404
2410
  extname: ".js"
2405
2411
  },
2406
- convert: ({ method: e, allHeaders: t, postData: n, fullUrl: a }, s) => {
2412
+ convert: ({ method: e, allHeaders: t, postData: n, fullUrl: a }, i) => {
2407
2413
  const o = {
2408
2414
  indent: " ",
2409
2415
  credentials: null,
2410
- ...s
2411
- }, { blank: r, join: i, push: l } = new O({ indent: o.indent }), c = {
2416
+ ...i
2417
+ }, { blank: r, join: s, push: l } = new O({ indent: o.indent }), c = {
2412
2418
  method: e
2413
2419
  };
2414
2420
  switch (Object.keys(t).length && (c.headers = t), o.credentials !== null && (c.credentials = o.credentials), n.mimeType) {
@@ -2446,7 +2452,7 @@ var $i = {
2446
2452
  return d;
2447
2453
  }
2448
2454
  })};`
2449
- ), r(), n.params && n.mimeType === "multipart/form-data" && (l("options.body = form;"), r()), l(`fetch('${a}', options)`), l(".then(response => response.json())", 1), l(".then(response => console.log(response))", 1), l(".catch(err => console.error(err));", 1), i();
2455
+ ), r(), n.params && n.mimeType === "multipart/form-data" && (l("options.body = form;"), r()), l(`fetch('${a}', options)`), l(".then(response => response.json())", 1), l(".then(response => console.log(response))", 1), l(".catch(err => console.error(err));", 1), s();
2450
2456
  }
2451
2457
  }, qi = {
2452
2458
  info: {
@@ -2456,12 +2462,12 @@ var $i = {
2456
2462
  description: "Perform an asynchronous HTTP (Ajax) requests with jQuery",
2457
2463
  extname: ".js"
2458
2464
  },
2459
- convert: ({ fullUrl: e, method: t, allHeaders: n, postData: a }, s) => {
2465
+ convert: ({ fullUrl: e, method: t, allHeaders: n, postData: a }, i) => {
2460
2466
  var p;
2461
2467
  const o = {
2462
2468
  indent: " ",
2463
- ...s
2464
- }, { blank: r, push: i, join: l } = new O({ indent: o.indent }), c = {
2469
+ ...i
2470
+ }, { blank: r, push: s, join: l } = new O({ indent: o.indent }), c = {
2465
2471
  async: !0,
2466
2472
  crossDomain: !0,
2467
2473
  url: e,
@@ -2478,8 +2484,8 @@ var $i = {
2478
2484
  case "multipart/form-data":
2479
2485
  if (!a.params)
2480
2486
  break;
2481
- if (i("const form = new FormData();"), a.params.forEach((d) => {
2482
- i(`form.append('${d.name}', '${d.value || d.fileName || ""}');`);
2487
+ if (s("const form = new FormData();"), a.params.forEach((d) => {
2488
+ s(`form.append('${d.name}', '${d.value || d.fileName || ""}');`);
2483
2489
  }), c.processData = !1, c.contentType = !1, c.mimeType = "multipart/form-data", c.data = "[form]", xt(n, "content-type") && (p = de(n, "content-type")) != null && p.includes("boundary")) {
2484
2490
  const d = Q(n, "content-type");
2485
2491
  d && delete c.headers[d];
@@ -2490,7 +2496,7 @@ var $i = {
2490
2496
  a.text && (c.data = a.text);
2491
2497
  }
2492
2498
  const u = G(c, { indent: o.indent }).replace("'[form]'", "form");
2493
- return i(`const settings = ${u};`), r(), i("$.ajax(settings).done(function (response) {"), i("console.log(response);", 1), i("});"), l();
2499
+ return s(`const settings = ${u};`), r(), s("$.ajax(settings).done(function (response) {"), s("console.log(response);", 1), s("});"), l();
2494
2500
  }
2495
2501
  }, Ii = {
2496
2502
  info: {
@@ -2500,16 +2506,16 @@ var $i = {
2500
2506
  description: "W3C Standard API that provides scripted client functionality",
2501
2507
  extname: ".js"
2502
2508
  },
2503
- convert: ({ postData: e, allHeaders: t, method: n, fullUrl: a }, s) => {
2509
+ convert: ({ postData: e, allHeaders: t, method: n, fullUrl: a }, i) => {
2504
2510
  var c;
2505
2511
  const o = {
2506
2512
  indent: " ",
2507
2513
  cors: !0,
2508
- ...s
2509
- }, { blank: r, push: i, join: l } = new O({ indent: o.indent });
2514
+ ...i
2515
+ }, { blank: r, push: s, join: l } = new O({ indent: o.indent });
2510
2516
  switch (e.mimeType) {
2511
2517
  case "application/json":
2512
- i(
2518
+ s(
2513
2519
  `const data = JSON.stringify(${G(e.jsonObj, {
2514
2520
  indent: o.indent
2515
2521
  })});`
@@ -2518,8 +2524,8 @@ var $i = {
2518
2524
  case "multipart/form-data":
2519
2525
  if (!e.params)
2520
2526
  break;
2521
- if (i("const data = new FormData();"), e.params.forEach((u) => {
2522
- i(`data.append('${u.name}', '${u.value || u.fileName || ""}');`);
2527
+ if (s("const data = new FormData();"), e.params.forEach((u) => {
2528
+ s(`data.append('${u.name}', '${u.value || u.fileName || ""}');`);
2523
2529
  }), xt(t, "content-type") && (c = de(t, "content-type")) != null && c.includes("boundary")) {
2524
2530
  const u = Q(t, "content-type");
2525
2531
  u && delete t[u];
@@ -2527,11 +2533,11 @@ var $i = {
2527
2533
  r();
2528
2534
  break;
2529
2535
  default:
2530
- i(`const data = ${e.text ? `'${e.text}'` : "null"};`), r();
2536
+ s(`const data = ${e.text ? `'${e.text}'` : "null"};`), r();
2531
2537
  }
2532
- return i("const xhr = new XMLHttpRequest();"), o.cors && i("xhr.withCredentials = true;"), r(), i("xhr.addEventListener('readystatechange', function () {"), i("if (this.readyState === this.DONE) {", 1), i("console.log(this.responseText);", 2), i("}", 1), i("});"), r(), i(`xhr.open('${n}', '${a}');`), Object.keys(t).forEach((u) => {
2533
- i(`xhr.setRequestHeader('${u}', '${ze(t[u])}');`);
2534
- }), r(), i("xhr.send(data);"), l();
2538
+ return s("const xhr = new XMLHttpRequest();"), o.cors && s("xhr.withCredentials = true;"), r(), s("xhr.addEventListener('readystatechange', function () {"), s("if (this.readyState === this.DONE) {", 1), s("console.log(this.responseText);", 2), s("}", 1), s("});"), r(), s(`xhr.open('${n}', '${a}');`), Object.keys(t).forEach((u) => {
2539
+ s(`xhr.setRequestHeader('${u}', '${ze(t[u])}');`);
2540
+ }), r(), s("xhr.send(data);"), l();
2535
2541
  }
2536
2542
  }, _i = {
2537
2543
  info: {
@@ -2569,10 +2575,10 @@ var $i = {
2569
2575
  case "multipart/form-data":
2570
2576
  if (!e.params)
2571
2577
  break;
2572
- const s = {};
2578
+ const i = {};
2573
2579
  e.params.forEach((o) => {
2574
- s[o.name] = o.value;
2575
- }), a = s;
2580
+ i[o.name] = o.value;
2581
+ }), a = i;
2576
2582
  break;
2577
2583
  default:
2578
2584
  e.text && (a = e.text);
@@ -2596,14 +2602,14 @@ var $i = {
2596
2602
  description: "An HTTP Request Client Library",
2597
2603
  extname: ".kt"
2598
2604
  },
2599
- convert: ({ postData: e, fullUrl: t, method: n, allHeaders: a }, s) => {
2605
+ convert: ({ postData: e, fullUrl: t, method: n, allHeaders: a }, i) => {
2600
2606
  const o = {
2601
2607
  indent: " ",
2602
- ...s
2603
- }, { blank: r, join: i, push: l } = new O({ indent: o.indent }), c = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"], u = ["POST", "PUT", "DELETE", "PATCH"];
2608
+ ...i
2609
+ }, { blank: r, join: s, push: l } = new O({ indent: o.indent }), c = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"], u = ["POST", "PUT", "DELETE", "PATCH"];
2604
2610
  return l("val client = OkHttpClient()"), r(), e.text && (e.boundary ? l(`val mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}")`) : l(`val mediaType = MediaType.parse("${e.mimeType}")`), l(`val body = RequestBody.create(mediaType, ${JSON.stringify(e.text)})`)), l("val request = Request.Builder()"), l(`.url("${t}")`, 1), c.includes(n.toUpperCase()) ? u.includes(n.toUpperCase()) ? e.text ? l(`.${n.toLowerCase()}(body)`, 1) : l(`.${n.toLowerCase()}(null)`, 1) : l(`.${n.toLowerCase()}()`, 1) : e.text ? l(`.method("${n.toUpperCase()}", body)`, 1) : l(`.method("${n.toUpperCase()}", null)`, 1), Object.keys(a).forEach((p) => {
2605
2611
  l(`.addHeader("${p}", "${V(a[p])}")`, 1);
2606
- }), l(".build()", 1), r(), l("val response = client.newCall(request).execute()"), i();
2612
+ }), l(".build()", 1), r(), l("val response = client.newCall(request).execute()"), s();
2607
2613
  }
2608
2614
  }, Hi = {
2609
2615
  info: {
@@ -2623,11 +2629,11 @@ var $i = {
2623
2629
  extname: ".cjs",
2624
2630
  installation: "npm install axios --save"
2625
2631
  },
2626
- convert: ({ method: e, fullUrl: t, allHeaders: n, postData: a }, s) => {
2632
+ convert: ({ method: e, fullUrl: t, allHeaders: n, postData: a }, i) => {
2627
2633
  const o = {
2628
2634
  indent: " ",
2629
- ...s
2630
- }, { blank: r, join: i, push: l, addPostProcessor: c } = new O({ indent: o.indent });
2635
+ ...i
2636
+ }, { blank: r, join: s, push: l, addPostProcessor: c } = new O({ indent: o.indent });
2631
2637
  l("const axios = require('axios');");
2632
2638
  const u = {
2633
2639
  method: e,
@@ -2646,7 +2652,7 @@ var $i = {
2646
2652
  r(), a.text && (u.data = a.text);
2647
2653
  }
2648
2654
  const p = G(u, { indent: " ", inlineCharacterLimit: 80 });
2649
- return l(`const options = ${p};`), r(), l("axios"), l(".request(options)", 1), l(".then(function (response) {", 1), l("console.log(response.data);", 2), l("})", 1), l(".catch(function (error) {", 1), l("console.error(error);", 2), l("});", 1), i();
2655
+ return l(`const options = ${p};`), r(), l("axios"), l(".request(options)", 1), l(".then(function (response) {", 1), l("console.log(response.data);", 2), l("})", 1), l(".catch(function (error) {", 1), l("console.error(error);", 2), l("});", 1), s();
2650
2656
  }
2651
2657
  }, Di = {
2652
2658
  info: {
@@ -2657,13 +2663,13 @@ var $i = {
2657
2663
  extname: ".cjs",
2658
2664
  installation: "npm install node-fetch@2 --save"
2659
2665
  },
2660
- convert: ({ method: e, fullUrl: t, postData: n, headersObj: a, cookies: s }, o) => {
2666
+ convert: ({ method: e, fullUrl: t, postData: n, headersObj: a, cookies: i }, o) => {
2661
2667
  var y;
2662
2668
  const r = {
2663
2669
  indent: " ",
2664
2670
  ...o
2665
2671
  };
2666
- let i = !1;
2672
+ let s = !1;
2667
2673
  const { blank: l, push: c, join: u, unshift: p } = new O({ indent: r.indent });
2668
2674
  c("const fetch = require('node-fetch');");
2669
2675
  const d = t, m = {
@@ -2687,14 +2693,14 @@ var $i = {
2687
2693
  c(`formData.append('${b.name}', '${b.value}');`);
2688
2694
  return;
2689
2695
  }
2690
- b.fileName && (i = !0, c(`formData.append('${b.name}', fs.createReadStream('${b.fileName}'));`));
2696
+ b.fileName && (s = !0, c(`formData.append('${b.name}', fs.createReadStream('${b.fileName}'));`));
2691
2697
  });
2692
2698
  break;
2693
2699
  default:
2694
2700
  n.text && (m.body = n.text);
2695
2701
  }
2696
- if (s.length) {
2697
- const v = s.map(({ name: b, value: g }) => `${encodeURIComponent(b)}=${encodeURIComponent(g)}`).join("; ");
2702
+ if (i.length) {
2703
+ const v = i.map(({ name: b, value: g }) => `${encodeURIComponent(b)}=${encodeURIComponent(g)}`).join("; ");
2698
2704
  m.headers || (m.headers = {}), m.headers.cookie = v;
2699
2705
  }
2700
2706
  l(), c(`const url = '${d}';`), m.headers && !Object.keys(m.headers).length && delete m.headers;
@@ -2706,7 +2712,7 @@ var $i = {
2706
2712
  // in a `JSON.stringify` call.
2707
2713
  transform: (v, b, g) => b === "body" && n.mimeType === "application/json" ? `JSON.stringify(${g})` : g
2708
2714
  });
2709
- return c(`const options = ${h};`), l(), i && p("const fs = require('fs');"), n.params && n.mimeType === "multipart/form-data" && (c("options.body = formData;"), l()), c("fetch(url, options)"), c(".then(res => res.json())", 1), c(".then(json => console.log(json))", 1), c(".catch(err => console.error('error:' + err));", 1), u().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
2715
+ return c(`const options = ${h};`), l(), s && p("const fs = require('fs');"), n.params && n.mimeType === "multipart/form-data" && (c("options.body = formData;"), l()), c("fetch(url, options)"), c(".then(res => res.json())", 1), c(".then(json => console.log(json))", 1), c(".catch(err => console.error('error:' + err));", 1), u().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
2710
2716
  }
2711
2717
  }, Vi = {
2712
2718
  info: {
@@ -2716,9 +2722,9 @@ var $i = {
2716
2722
  description: "Node.js native HTTP interface",
2717
2723
  extname: ".cjs"
2718
2724
  },
2719
- convert: ({ uriObj: e, method: t, allHeaders: n, postData: a }, s = {}) => {
2725
+ convert: ({ uriObj: e, method: t, allHeaders: n, postData: a }, i = {}) => {
2720
2726
  var p;
2721
- const { indent: o = " " } = s, { blank: r, join: i, push: l, unshift: c } = new O({ indent: o }), u = {
2727
+ const { indent: o = " " } = i, { blank: r, join: s, push: l, unshift: c } = new O({ indent: o }), u = {
2722
2728
  method: t,
2723
2729
  hostname: e.hostname,
2724
2730
  port: e.port,
@@ -2745,7 +2751,7 @@ var $i = {
2745
2751
  default:
2746
2752
  a.text && l(`req.write(${G(a.text, { indent: o })});`);
2747
2753
  }
2748
- return l("req.end();"), i();
2754
+ return l("req.end();"), s();
2749
2755
  }
2750
2756
  }, Wi = {
2751
2757
  info: {
@@ -2756,19 +2762,19 @@ var $i = {
2756
2762
  extname: ".cjs",
2757
2763
  installation: "npm install request --save"
2758
2764
  },
2759
- convert: ({ method: e, url: t, fullUrl: n, postData: a, headersObj: s, cookies: o }, r) => {
2760
- const i = {
2765
+ convert: ({ method: e, url: t, fullUrl: n, postData: a, headersObj: i, cookies: o }, r) => {
2766
+ const s = {
2761
2767
  indent: " ",
2762
2768
  ...r
2763
2769
  };
2764
2770
  let l = !1;
2765
- const { push: c, blank: u, join: p, unshift: d, addPostProcessor: m } = new O({ indent: i.indent });
2771
+ const { push: c, blank: u, join: p, unshift: d, addPostProcessor: m } = new O({ indent: s.indent });
2766
2772
  c("const request = require('request');"), u();
2767
2773
  const h = {
2768
2774
  method: e,
2769
2775
  url: n
2770
2776
  };
2771
- switch (Object.keys(s).length && (h.headers = s), a.mimeType) {
2777
+ switch (Object.keys(i).length && (h.headers = i), a.mimeType) {
2772
2778
  case "application/x-www-form-urlencoded":
2773
2779
  h.form = a.paramsObj;
2774
2780
  break;
@@ -2808,36 +2814,36 @@ var $i = {
2808
2814
  description: "Lightweight HTTP Request Client Library",
2809
2815
  extname: ".cjs"
2810
2816
  },
2811
- convert: ({ method: e, url: t, cookies: n, queryObj: a, postData: s, headersObj: o }, r) => {
2812
- const i = {
2817
+ convert: ({ method: e, url: t, cookies: n, queryObj: a, postData: i, headersObj: o }, r) => {
2818
+ const s = {
2813
2819
  indent: " ",
2814
2820
  ...r
2815
2821
  };
2816
2822
  let l = !1;
2817
2823
  const { addPostProcessor: c, blank: u, join: p, push: d, unshift: m } = new O({
2818
- indent: i.indent
2824
+ indent: s.indent
2819
2825
  });
2820
2826
  switch (d("const unirest = require('unirest');"), u(), d(`const req = unirest('${e}', '${t}');`), u(), n.length && (d("const CookieJar = unirest.jar();"), n.forEach((h) => {
2821
2827
  d(`CookieJar.add('${encodeURIComponent(h.name)}=${encodeURIComponent(h.value)}', '${t}');`);
2822
- }), d("req.jar(CookieJar);"), u()), Object.keys(a).length && (d(`req.query(${G(a, { indent: i.indent })});`), u()), Object.keys(o).length && (d(`req.headers(${G(o, { indent: i.indent })});`), u()), s.mimeType) {
2828
+ }), d("req.jar(CookieJar);"), u()), Object.keys(a).length && (d(`req.query(${G(a, { indent: s.indent })});`), u()), Object.keys(o).length && (d(`req.headers(${G(o, { indent: s.indent })});`), u()), i.mimeType) {
2823
2829
  case "application/x-www-form-urlencoded":
2824
- s.paramsObj && (d(`req.form(${G(s.paramsObj, { indent: i.indent })});`), u());
2830
+ i.paramsObj && (d(`req.form(${G(i.paramsObj, { indent: s.indent })});`), u());
2825
2831
  break;
2826
2832
  case "application/json":
2827
- s.jsonObj && (d("req.type('json');"), d(`req.send(${G(s.jsonObj, { indent: i.indent })});`), u());
2833
+ i.jsonObj && (d("req.type('json');"), d(`req.send(${G(i.jsonObj, { indent: s.indent })});`), u());
2828
2834
  break;
2829
2835
  case "multipart/form-data": {
2830
- if (!s.params)
2836
+ if (!i.params)
2831
2837
  break;
2832
2838
  const h = [];
2833
- s.params.forEach((y) => {
2839
+ i.params.forEach((y) => {
2834
2840
  const v = {};
2835
2841
  y.fileName && !y.value ? (l = !0, v.body = `fs.createReadStream('${y.fileName}')`, c((b) => b.replace(/'fs\.createReadStream\(\\'(.+)\\'\)'/, "fs.createReadStream('$1')"))) : y.value && (v.body = y.value), v.body && (y.contentType && (v["content-type"] = y.contentType), h.push(v));
2836
- }), d(`req.multipart(${G(h, { indent: i.indent })});`), u();
2842
+ }), d(`req.multipart(${G(h, { indent: s.indent })});`), u();
2837
2843
  break;
2838
2844
  }
2839
2845
  default:
2840
- s.text && (d(`req.send(${G(s.text, { indent: i.indent })});`), u());
2846
+ i.text && (d(`req.send(${G(i.text, { indent: s.indent })});`), u());
2841
2847
  }
2842
2848
  return l && m("const fs = require('fs');"), d("req.end(function (res) {"), d("if (res.error) throw new Error(res.error);", 1), u(), d("console.log(res.body);", 1), d("});"), p();
2843
2849
  }
@@ -2856,8 +2862,8 @@ var $i = {
2856
2862
  fetch: Di
2857
2863
  }
2858
2864
  }, Nt = (e, t, n, a) => {
2859
- const s = `${e} *${t} = `, o = Ht(n, a ? s.length : void 0);
2860
- return `${s}${o};`;
2865
+ const i = `${e} *${t} = `, o = Ht(n, a ? i.length : void 0);
2866
+ return `${i}${o};`;
2861
2867
  }, Ht = (e, t) => {
2862
2868
  const n = t === void 0 ? ", " : `,
2863
2869
  ${" ".repeat(t)}`;
@@ -2865,11 +2871,11 @@ var $i = {
2865
2871
  case "[object Number]":
2866
2872
  return `@${e}`;
2867
2873
  case "[object Array]":
2868
- return `@[ ${e.map((s) => Ht(s)).join(n)} ]`;
2874
+ return `@[ ${e.map((i) => Ht(i)).join(n)} ]`;
2869
2875
  case "[object Object]": {
2870
2876
  const a = [];
2871
- return Object.keys(e).forEach((s) => {
2872
- a.push(`@"${s}": ${Ht(e[s])}`);
2877
+ return Object.keys(e).forEach((i) => {
2878
+ a.push(`@"${i}": ${Ht(e[i])}`);
2873
2879
  }), `@{ ${a.join(n)} }`;
2874
2880
  }
2875
2881
  case "[object Boolean]":
@@ -2885,14 +2891,14 @@ var $i = {
2885
2891
  description: "Foundation's NSURLSession request",
2886
2892
  extname: ".m"
2887
2893
  },
2888
- convert: ({ allHeaders: e, postData: t, method: n, fullUrl: a }, s) => {
2894
+ convert: ({ allHeaders: e, postData: t, method: n, fullUrl: a }, i) => {
2889
2895
  var u;
2890
2896
  const o = {
2891
2897
  indent: " ",
2892
2898
  pretty: !0,
2893
2899
  timeout: 10,
2894
- ...s
2895
- }, { push: r, join: i, blank: l } = new O({ indent: o.indent }), c = {
2900
+ ...i
2901
+ }, { push: r, join: s, blank: l } = new O({ indent: o.indent }), c = {
2896
2902
  hasHeaders: !1,
2897
2903
  hasBody: !1
2898
2904
  };
@@ -2932,7 +2938,7 @@ var $i = {
2932
2938
  ), r(" if (error) {", 1), r(' NSLog(@"%@", error);', 2), r(" } else {", 1), r(
2933
2939
  " NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;",
2934
2940
  2
2935
- ), r(' NSLog(@"%@", httpResponse);', 2), r(" }", 1), r(" }];"), r("[dataTask resume];"), i();
2941
+ ), r(' NSLog(@"%@", httpResponse);', 2), r(" }", 1), r(" }];"), r("[dataTask resume];"), s();
2936
2942
  }
2937
2943
  }, Ki = {
2938
2944
  info: {
@@ -2952,22 +2958,22 @@ var $i = {
2952
2958
  extname: ".ml",
2953
2959
  installation: "opam install cohttp-lwt-unix cohttp-async"
2954
2960
  },
2955
- convert: ({ fullUrl: e, allHeaders: t, postData: n, method: a }, s) => {
2961
+ convert: ({ fullUrl: e, allHeaders: t, postData: n, method: a }, i) => {
2956
2962
  const o = {
2957
2963
  indent: " ",
2958
- ...s
2959
- }, r = ["get", "post", "head", "delete", "patch", "put", "options"], { push: i, blank: l, join: c } = new O({ indent: o.indent });
2960
- i("open Cohttp_lwt_unix"), i("open Cohttp"), i("open Lwt"), l(), i(`let uri = Uri.of_string "${e}" in`);
2964
+ ...i
2965
+ }, r = ["get", "post", "head", "delete", "patch", "put", "options"], { push: s, blank: l, join: c } = new O({ indent: o.indent });
2966
+ s("open Cohttp_lwt_unix"), s("open Cohttp"), s("open Lwt"), l(), s(`let uri = Uri.of_string "${e}" in`);
2961
2967
  const u = Object.keys(t);
2962
- u.length === 1 ? i(
2968
+ u.length === 1 ? s(
2963
2969
  `let headers = Header.add (Header.init ()) "${u[0]}" "${V(
2964
2970
  t[u[0]]
2965
2971
  )}" in`
2966
- ) : u.length > 1 && (i("let headers = Header.add_list (Header.init ()) ["), u.forEach((h) => {
2967
- i(`("${h}", "${V(t[h])}");`, 1);
2968
- }), i("] in")), n.text && i(`let body = Cohttp_lwt_body.of_string ${JSON.stringify(n.text)} in`), l();
2972
+ ) : u.length > 1 && (s("let headers = Header.add_list (Header.init ()) ["), u.forEach((h) => {
2973
+ s(`("${h}", "${V(t[h])}");`, 1);
2974
+ }), s("] in")), n.text && s(`let body = Cohttp_lwt_body.of_string ${JSON.stringify(n.text)} in`), l();
2969
2975
  const p = u.length ? "~headers " : "", d = n.text ? "~body " : "", m = r.includes(a.toLowerCase()) ? `\`${a.toUpperCase()}` : `(Code.method_of_string "${a}")`;
2970
- return i(`Client.call ${p}${d}${m} uri`), i(">>= fun (res, body_stream) ->"), i("(* Do stuff with the result *)", 1), c();
2976
+ return s(`Client.call ${p}${d}${m} uri`), s(">>= fun (res, body_stream) ->"), s("(* Do stuff with the result *)", 1), c();
2971
2977
  }
2972
2978
  }, Yi = {
2973
2979
  info: {
@@ -2991,7 +2997,7 @@ var $i = {
2991
2997
  case "[object Number]":
2992
2998
  return e.toString();
2993
2999
  case "[object Array]": {
2994
- const a = e.map((s) => F(s, `${t}${t}`, t)).join(`,
3000
+ const a = e.map((i) => F(i, `${t}${t}`, t)).join(`,
2995
3001
  ${t}`);
2996
3002
  return `[
2997
3003
  ${t}${a}
@@ -2999,8 +3005,8 @@ ${n}]`;
2999
3005
  }
3000
3006
  case "[object Object]": {
3001
3007
  const a = [];
3002
- for (const s in e)
3003
- Object.prototype.hasOwnProperty.call(e, s) && a.push(`${F(s, t)} => ${F(e[s], `${t}${t}`, t)}`);
3008
+ for (const i in e)
3009
+ Object.prototype.hasOwnProperty.call(e, i) && a.push(`${F(i, t)} => ${F(e[i], `${t}${t}`, t)}`);
3004
3010
  return `[
3005
3011
  ${t}${a.join(`,
3006
3012
  ${t}`)}
@@ -3045,7 +3051,7 @@ ${n}]`;
3045
3051
  description: "PHP with ext-curl",
3046
3052
  extname: ".php"
3047
3053
  },
3048
- convert: ({ uriObj: e, postData: t, fullUrl: n, method: a, httpVersion: s, cookies: o, headersObj: r }, i = {}) => {
3054
+ convert: ({ uriObj: e, postData: t, fullUrl: n, method: a, httpVersion: i, cookies: o, headersObj: r }, s = {}) => {
3049
3055
  const {
3050
3056
  closingTag: l = !1,
3051
3057
  indent: c = " ",
@@ -3054,7 +3060,7 @@ ${n}]`;
3054
3060
  noTags: d = !1,
3055
3061
  shortTags: m = !1,
3056
3062
  timeout: h = 30
3057
- } = i, { push: y, blank: v, join: b } = new O({ indent: c });
3063
+ } = s, { push: y, blank: v, join: b } = new O({ indent: c });
3058
3064
  d || (y(m ? "<?" : "<?php"), v()), y("$curl = curl_init();"), v();
3059
3065
  const g = [
3060
3066
  {
@@ -3090,7 +3096,7 @@ ${n}]`;
3090
3096
  {
3091
3097
  escape: !1,
3092
3098
  name: "CURLOPT_HTTP_VERSION",
3093
- value: s === "HTTP/1.0" ? "CURL_HTTP_VERSION_1_0" : "CURL_HTTP_VERSION_1_1"
3099
+ value: i === "HTTP/1.0" ? "CURL_HTTP_VERSION_1_0" : "CURL_HTTP_VERSION_1_1"
3094
3100
  },
3095
3101
  {
3096
3102
  escape: !0,
@@ -3124,7 +3130,7 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
3124
3130
  extname: ".php",
3125
3131
  installation: "composer require guzzlehttp/guzzle"
3126
3132
  },
3127
- convert: ({ postData: e, fullUrl: t, method: n, cookies: a, headersObj: s }, o) => {
3133
+ convert: ({ postData: e, fullUrl: t, method: n, cookies: a, headersObj: i }, o) => {
3128
3134
  var y;
3129
3135
  const r = {
3130
3136
  closingTag: !1,
@@ -3132,8 +3138,8 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
3132
3138
  noTags: !1,
3133
3139
  shortTags: !1,
3134
3140
  ...o
3135
- }, { push: i, blank: l, join: c } = new O({ indent: r.indent }), { code: u, push: p, join: d } = new O({ indent: r.indent });
3136
- switch (r.noTags || i(r.shortTags ? "<?" : "<?php"), i("require_once('vendor/autoload.php');"), l(), e.mimeType) {
3141
+ }, { push: s, blank: l, join: c } = new O({ indent: r.indent }), { code: u, push: p, join: d } = new O({ indent: r.indent });
3142
+ switch (r.noTags || s(r.shortTags ? "<?" : "<?php"), s("require_once('vendor/autoload.php');"), l(), e.mimeType) {
3137
3143
  case "application/x-www-form-urlencoded":
3138
3144
  p(`'form_params' => ${F(e.paramsObj, r.indent + r.indent, r.indent)},`, 1);
3139
3145
  break;
@@ -3151,20 +3157,20 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
3151
3157
  name: b.name,
3152
3158
  contents: b.value
3153
3159
  });
3154
- }), v.length && (p(`'multipart' => ${F(v, r.indent + r.indent, r.indent)}`, 1), xt(s, "content-type") && (y = de(s, "content-type")) != null && y.indexOf("boundary"))) {
3155
- const b = Q(s, "content-type");
3156
- b && delete s[b];
3160
+ }), v.length && (p(`'multipart' => ${F(v, r.indent + r.indent, r.indent)}`, 1), xt(i, "content-type") && (y = de(i, "content-type")) != null && y.indexOf("boundary"))) {
3161
+ const b = Q(i, "content-type");
3162
+ b && delete i[b];
3157
3163
  }
3158
3164
  break;
3159
3165
  }
3160
3166
  default:
3161
3167
  e.text && p(`'body' => ${F(e.text)},`, 1);
3162
3168
  }
3163
- const m = Object.keys(s).sort().map(function(v) {
3164
- return `${r.indent}${r.indent}'${v}' => '${ze(s[v])}',`;
3169
+ const m = Object.keys(i).sort().map(function(v) {
3170
+ return `${r.indent}${r.indent}'${v}' => '${ze(i[v])}',`;
3165
3171
  }), h = a.map((v) => `${encodeURIComponent(v.name)}=${encodeURIComponent(v.value)}`).join("; ");
3166
3172
  return h.length && m.push(`${r.indent}${r.indent}'cookie' => '${ze(h)}',`), m.length && (p("'headers' => [", 1), p(m.join(`
3167
- `)), p("],", 1)), i("$client = new \\GuzzleHttp\\Client();"), l(), u.length ? (i(`$response = $client->request('${n}', '${t}', [`), i(d()), i("]);")) : i(`$response = $client->request('${n}', '${t}');`), l(), i("echo $response->getBody();"), !r.noTags && r.closingTag && (l(), i("?>")), c();
3173
+ `)), p("],", 1)), s("$client = new \\GuzzleHttp\\Client();"), l(), u.length ? (s(`$response = $client->request('${n}', '${t}', [`), s(d()), s("]);")) : s(`$response = $client->request('${n}', '${t}');`), l(), s("echo $response->getBody();"), !r.noTags && r.closingTag && (l(), s("?>")), c();
3168
3174
  }
3169
3175
  }, es = {
3170
3176
  info: {
@@ -3174,9 +3180,9 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
3174
3180
  description: "PHP with pecl/http v1",
3175
3181
  extname: ".php"
3176
3182
  },
3177
- convert: ({ method: e, url: t, postData: n, queryObj: a, headersObj: s, cookiesObj: o }, r = {}) => {
3178
- const { closingTag: i = !1, indent: l = " ", noTags: c = !1, shortTags: u = !1 } = r, { push: p, blank: d, join: m } = new O({ indent: l });
3179
- switch (c || (p(u ? "<?" : "<?php"), d()), Rn.includes(e.toUpperCase()) || p(`HttpRequest::methodRegister('${e}');`), p("$request = new HttpRequest();"), p(`$request->setUrl(${F(t)});`), Rn.includes(e.toUpperCase()) ? p(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`) : p(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`), d(), Object.keys(a).length && (p(`$request->setQueryData(${F(a, l)});`), d()), Object.keys(s).length && (p(`$request->setHeaders(${F(s, l)});`), d()), Object.keys(o).length && (p(`$request->setCookies(${F(o, l)});`), d()), n.mimeType) {
3183
+ convert: ({ method: e, url: t, postData: n, queryObj: a, headersObj: i, cookiesObj: o }, r = {}) => {
3184
+ const { closingTag: s = !1, indent: l = " ", noTags: c = !1, shortTags: u = !1 } = r, { push: p, blank: d, join: m } = new O({ indent: l });
3185
+ switch (c || (p(u ? "<?" : "<?php"), d()), Rn.includes(e.toUpperCase()) || p(`HttpRequest::methodRegister('${e}');`), p("$request = new HttpRequest();"), p(`$request->setUrl(${F(t)});`), Rn.includes(e.toUpperCase()) ? p(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`) : p(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`), d(), Object.keys(a).length && (p(`$request->setQueryData(${F(a, l)});`), d()), Object.keys(i).length && (p(`$request->setHeaders(${F(i, l)});`), d()), Object.keys(o).length && (p(`$request->setCookies(${F(o, l)});`), d()), n.mimeType) {
3180
3186
  case "application/x-www-form-urlencoded":
3181
3187
  p(`$request->setContentType(${F(n.mimeType)});`), p(`$request->setPostFields(${F(n.paramsObj, l)});`), d();
3182
3188
  break;
@@ -3186,7 +3192,7 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
3186
3192
  default:
3187
3193
  n.text && (p(`$request->setBody(${F(n.text)});`), d());
3188
3194
  }
3189
- return p("try {"), p("$response = $request->send();", 1), d(), p("echo $response->getBody();", 1), p("} catch (HttpException $ex) {"), p("echo $ex;", 1), p("}"), !c && i && (d(), p("?>")), m();
3195
+ return p("try {"), p("$response = $request->send();", 1), d(), p("echo $response->getBody();", 1), p("} catch (HttpException $ex) {"), p("echo $ex;", 1), p("}"), !c && s && (d(), p("?>")), m();
3190
3196
  }
3191
3197
  }, ts = {
3192
3198
  info: {
@@ -3196,9 +3202,9 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
3196
3202
  description: "PHP with pecl/http v2",
3197
3203
  extname: ".php"
3198
3204
  },
3199
- convert: ({ postData: e, headersObj: t, method: n, queryObj: a, cookiesObj: s, url: o }, r = {}) => {
3205
+ convert: ({ postData: e, headersObj: t, method: n, queryObj: a, cookiesObj: i, url: o }, r = {}) => {
3200
3206
  var y;
3201
- const { closingTag: i = !1, indent: l = " ", noTags: c = !1, shortTags: u = !1 } = r, { push: p, blank: d, join: m } = new O({ indent: l });
3207
+ const { closingTag: s = !1, indent: l = " ", noTags: c = !1, shortTags: u = !1 } = r, { push: p, blank: d, join: m } = new O({ indent: l });
3202
3208
  let h = !1;
3203
3209
  switch (c || (p(u ? "<?" : "<?php"), d()), p("$client = new http\\Client;"), p("$request = new http\\Client\\Request;"), d(), e.mimeType) {
3204
3210
  case "application/x-www-form-urlencoded":
@@ -3234,7 +3240,7 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
3234
3240
  default:
3235
3241
  e.text && (p("$body = new http\\Message\\Body;"), p(`$body->append(${F(e.text)});`), d(), h = !0);
3236
3242
  }
3237
- return p(`$request->setRequestUrl(${F(o)});`), p(`$request->setRequestMethod(${F(n)});`), h && (p("$request->setBody($body);"), d()), Object.keys(a).length && (p(`$request->setQuery(new http\\QueryString(${F(a, l)}));`), d()), Object.keys(t).length && (p(`$request->setHeaders(${F(t, l)});`), d()), Object.keys(s).length && (d(), p(`$client->setCookies(${F(s, l)});`), d()), p("$client->enqueue($request)->send();"), p("$response = $client->getResponse();"), d(), p("echo $response->getBody();"), !c && i && (d(), p("?>")), m();
3243
+ return p(`$request->setRequestUrl(${F(o)});`), p(`$request->setRequestMethod(${F(n)});`), h && (p("$request->setBody($body);"), d()), Object.keys(a).length && (p(`$request->setQuery(new http\\QueryString(${F(a, l)}));`), d()), Object.keys(t).length && (p(`$request->setHeaders(${F(t, l)});`), d()), Object.keys(i).length && (d(), p(`$client->setCookies(${F(i, l)});`), d()), p("$client->enqueue($request)->send();"), p("$response = $client->getResponse();"), d(), p("echo $response->getBody();"), !c && s && (d(), p("?>")), m();
3238
3244
  }
3239
3245
  }, ns = {
3240
3246
  info: {
@@ -3249,18 +3255,18 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
3249
3255
  http1: es,
3250
3256
  http2: ts
3251
3257
  }
3252
- }, sa = (e) => ({ method: n, headersObj: a, cookies: s, uriObj: o, fullUrl: r, postData: i, allHeaders: l }) => {
3258
+ }, sa = (e) => ({ method: n, headersObj: a, cookies: i, uriObj: o, fullUrl: r, postData: s, allHeaders: l }) => {
3253
3259
  const { push: c, join: u } = new O();
3254
3260
  if (!["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(n.toUpperCase()))
3255
3261
  return "Method not supported";
3256
3262
  const d = [], m = Object.keys(a);
3257
3263
  return m.length && (c("$headers=@{}"), m.forEach((h) => {
3258
3264
  h !== "connection" && c(`$headers.Add("${h}", "${We(a[h], { escapeChar: "`" })}")`);
3259
- }), d.push("-Headers $headers")), s.length && (c("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"), s.forEach((h) => {
3265
+ }), d.push("-Headers $headers")), i.length && (c("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"), i.forEach((h) => {
3260
3266
  c("$cookie = New-Object System.Net.Cookie"), c(`$cookie.Name = '${h.name}'`), c(`$cookie.Value = '${h.value}'`), c(`$cookie.Domain = '${o.host}'`), c("$session.Cookies.Add($cookie)");
3261
- }), d.push("-WebSession $session")), i.text && (d.push(
3267
+ }), d.push("-WebSession $session")), s.text && (d.push(
3262
3268
  `-ContentType '${We(de(l, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
3263
- ), d.push(`-Body '${i.text}'`)), c(`$response = ${e} -Uri '${r}' -Method ${n} ${d.join(" ")}`.trim()), u();
3269
+ ), d.push(`-Body '${s.text}'`)), c(`$response = ${e} -Uri '${r}' -Method ${n} ${d.join(" ")}`.trim()), u();
3264
3270
  }, rs = {
3265
3271
  info: {
3266
3272
  key: "restmethod",
@@ -3290,12 +3296,12 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
3290
3296
  restmethod: rs
3291
3297
  }
3292
3298
  };
3293
- function An(e, t, n, a, s) {
3294
- const o = a.repeat(s), r = a.repeat(s - 1), i = n ? `,
3299
+ function An(e, t, n, a, i) {
3300
+ const o = a.repeat(i), r = a.repeat(i - 1), s = n ? `,
3295
3301
  ${o}` : ", ", l = e === "object" ? "{" : "[", c = e === "object" ? "}" : "]";
3296
3302
  return n ? `${l}
3297
- ${o}${t.join(i)}
3298
- ${r}${c}` : e === "object" && t.length > 0 ? `${l} ${t.join(i)} ${c}` : `${l}${t.join(i)}${c}`;
3303
+ ${o}${t.join(s)}
3304
+ ${r}${c}` : e === "object" && t.length > 0 ? `${l} ${t.join(s)} ${c}` : `${l}${t.join(s)}${c}`;
3299
3305
  }
3300
3306
  var Ae = (e, t, n) => {
3301
3307
  switch (n = n === void 0 ? 1 : n + 1, Object.prototype.toString.call(e)) {
@@ -3303,13 +3309,13 @@ var Ae = (e, t, n) => {
3303
3309
  return e;
3304
3310
  case "[object Array]": {
3305
3311
  let a = !1;
3306
- const s = e.map((o) => (Object.prototype.toString.call(o) === "[object Object]" && (a = Object.keys(o).length > 1), Ae(o, t, n)));
3307
- return An("array", s, a, t.indent, n);
3312
+ const i = e.map((o) => (Object.prototype.toString.call(o) === "[object Object]" && (a = Object.keys(o).length > 1), Ae(o, t, n)));
3313
+ return An("array", i, a, t.indent, n);
3308
3314
  }
3309
3315
  case "[object Object]": {
3310
3316
  const a = [];
3311
- for (const s in e)
3312
- a.push(`"${s}": ${Ae(e[s], t, n)}`);
3317
+ for (const i in e)
3318
+ a.push(`"${i}": ${Ae(e[i], t, n)}`);
3313
3319
  return An("object", a, t.pretty && a.length > 1, t.indent, n);
3314
3320
  }
3315
3321
  case "[object Null]":
@@ -3328,13 +3334,13 @@ var Ae = (e, t, n) => {
3328
3334
  extname: ".py",
3329
3335
  installation: "python -m pip install requests"
3330
3336
  },
3331
- convert: ({ fullUrl: e, postData: t, allHeaders: n, method: a }, s) => {
3337
+ convert: ({ fullUrl: e, postData: t, allHeaders: n, method: a }, i) => {
3332
3338
  const o = {
3333
3339
  indent: " ",
3334
3340
  pretty: !0,
3335
- ...s
3336
- }, { push: r, blank: i, join: l, addPostProcessor: c } = new O({ indent: o.indent });
3337
- r("import requests"), i(), r(`url = "${e}"`), i();
3341
+ ...i
3342
+ }, { push: r, blank: s, join: l, addPostProcessor: c } = new O({ indent: o.indent });
3343
+ r("import requests"), s(), r(`url = "${e}"`), s();
3338
3344
  const u = n;
3339
3345
  let p = {};
3340
3346
  const d = {};
@@ -3371,19 +3377,19 @@ var Ae = (e, t, n) => {
3371
3377
  }
3372
3378
  const v = Object.keys(u).length;
3373
3379
  if (v === 0 && (h || m))
3374
- i();
3380
+ s();
3375
3381
  else if (v === 1)
3376
3382
  Object.keys(u).forEach((g) => {
3377
- r(`headers = {"${g}": "${V(u[g])}"}`), i();
3383
+ r(`headers = {"${g}": "${V(u[g])}"}`), s();
3378
3384
  });
3379
3385
  else if (v > 1) {
3380
3386
  let g = 1;
3381
3387
  r("headers = {"), Object.keys(u).forEach((x) => {
3382
3388
  r(g !== v ? `"${x}": "${V(u[x])}",` : `"${x}": "${V(u[x])}"`, 1), g += 1;
3383
- }), r("}"), i();
3389
+ }), r("}"), s();
3384
3390
  }
3385
3391
  let b = is.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
3386
- return h && (y ? b += ", json=payload" : b += ", data=payload"), m && (b += ", files=files"), v > 0 && (b += ", headers=headers"), b += ")", r(b), i(), r("print(response.text)"), l();
3392
+ return h && (y ? b += ", json=payload" : b += ", data=payload"), m && (b += ", files=files"), v > 0 && (b += ", headers=headers"), b += ")", r(b), s(), r("print(response.text)"), l();
3387
3393
  }
3388
3394
  }, ls = {
3389
3395
  info: {
@@ -3403,36 +3409,36 @@ var Ae = (e, t, n) => {
3403
3409
  description: "httr: Tools for Working with URLs and HTTP",
3404
3410
  extname: ".r"
3405
3411
  },
3406
- convert: ({ url: e, queryObj: t, queryString: n, postData: a, allHeaders: s, method: o }) => {
3407
- const { push: r, blank: i, join: l } = new O();
3408
- r("library(httr)"), i(), r(`url <- "${e}"`), i();
3412
+ convert: ({ url: e, queryObj: t, queryString: n, postData: a, allHeaders: i, method: o }) => {
3413
+ const { push: r, blank: s, join: l } = new O();
3414
+ r("library(httr)"), s(), r(`url <- "${e}"`), s();
3409
3415
  const c = t;
3410
3416
  delete t.key;
3411
3417
  const u = Object.keys(c).length;
3412
- n.length === 1 ? (r(`queryString <- list(${Object.keys(c)} = "${Object.values(c).toString()}")`), i()) : n.length > 1 && (r("queryString <- list("), Object.keys(c).forEach((S, k) => {
3418
+ n.length === 1 ? (r(`queryString <- list(${Object.keys(c)} = "${Object.values(c).toString()}")`), s()) : n.length > 1 && (r("queryString <- list("), Object.keys(c).forEach((S, k) => {
3413
3419
  k !== u - 1 ? r(` ${S} = "${c[S].toString()}",`) : r(` ${S} = "${c[S].toString()}"`);
3414
- }), r(")"), i());
3420
+ }), r(")"), s());
3415
3421
  const p = JSON.stringify(a.text);
3416
- if (p && (r(`payload <- ${p}`), i()), a.text || a.jsonObj || a.params)
3422
+ if (p && (r(`payload <- ${p}`), s()), a.text || a.jsonObj || a.params)
3417
3423
  switch (a.mimeType) {
3418
3424
  case "application/x-www-form-urlencoded":
3419
- r('encode <- "form"'), i();
3425
+ r('encode <- "form"'), s();
3420
3426
  break;
3421
3427
  case "application/json":
3422
- r('encode <- "json"'), i();
3428
+ r('encode <- "json"'), s();
3423
3429
  break;
3424
3430
  case "multipart/form-data":
3425
- r('encode <- "multipart"'), i();
3431
+ r('encode <- "multipart"'), s();
3426
3432
  break;
3427
3433
  default:
3428
- r('encode <- "raw"'), i();
3434
+ r('encode <- "raw"'), s();
3429
3435
  break;
3430
3436
  }
3431
- const d = de(s, "cookie"), m = de(s, "accept"), h = d ? `set_cookies(\`${String(d).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, y = m ? `accept("${V(m)}")` : void 0, v = `content_type("${V(a.mimeType)}")`, b = Object.entries(s).filter(([S]) => !["cookie", "accept", "content-type"].includes(S.toLowerCase())).map(([S, k]) => `'${S}' = '${ze(k)}'`).join(", "), g = b ? `add_headers(${b})` : void 0;
3437
+ const d = de(i, "cookie"), m = de(i, "accept"), h = d ? `set_cookies(\`${String(d).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, y = m ? `accept("${V(m)}")` : void 0, v = `content_type("${V(a.mimeType)}")`, b = Object.entries(i).filter(([S]) => !["cookie", "accept", "content-type"].includes(S.toLowerCase())).map(([S, k]) => `'${S}' = '${ze(k)}'`).join(", "), g = b ? `add_headers(${b})` : void 0;
3432
3438
  let x = `response <- VERB("${o}", url`;
3433
3439
  p && (x += ", body = payload"), n.length && (x += ", query = queryString");
3434
3440
  const w = [g, v, y, h].filter((S) => !!S).join(", ");
3435
- return w && (x += `, ${w}`), (a.text || a.jsonObj || a.params) && (x += ", encode = encode"), x += ")", r(x), i(), r('content(response, "text")'), l();
3441
+ return w && (x += `, ${w}`), (a.text || a.jsonObj || a.params) && (x += ", encode = encode"), x += ")", r(x), s(), r('content(response, "text")'), l();
3436
3442
  }
3437
3443
  }, us = {
3438
3444
  info: {
@@ -3451,8 +3457,8 @@ var Ae = (e, t, n) => {
3451
3457
  description: "Ruby HTTP client",
3452
3458
  extname: ".rb"
3453
3459
  },
3454
- convert: ({ uriObj: e, method: t, fullUrl: n, postData: a, allHeaders: s }) => {
3455
- const { push: o, blank: r, join: i } = new O();
3460
+ convert: ({ uriObj: e, method: t, fullUrl: n, postData: a, allHeaders: i }) => {
3461
+ const { push: o, blank: r, join: s } = new O();
3456
3462
  o("require 'uri'"), o("require 'net/http'"), r();
3457
3463
  const l = t.toUpperCase(), c = [
3458
3464
  "GET",
@@ -3469,10 +3475,10 @@ var Ae = (e, t, n) => {
3469
3475
  "TRACE"
3470
3476
  ], u = l.charAt(0) + l.substring(1).toLowerCase();
3471
3477
  c.includes(l) || (o(`class Net::HTTP::${u} < Net::HTTPRequest`), o(` METHOD = '${l.toUpperCase()}'`), o(` REQUEST_HAS_BODY = '${a.text ? "true" : "false"}'`), o(" RESPONSE_HAS_BODY = true"), o("end"), r()), o(`url = URI("${n}")`), r(), o("http = Net::HTTP.new(url.host, url.port)"), e.protocol === "https:" && o("http.use_ssl = true"), r(), o(`request = Net::HTTP::${u}.new(url)`);
3472
- const p = Object.keys(s);
3478
+ const p = Object.keys(i);
3473
3479
  return p.length && p.forEach((d) => {
3474
- o(`request["${d}"] = '${ze(s[d])}'`);
3475
- }), a.text && o(`request.body = ${JSON.stringify(a.text)}`), r(), o("response = http.request(request)"), o("puts response.read_body"), i();
3480
+ o(`request["${d}"] = '${ze(i[d])}'`);
3481
+ }), a.text && o(`request.body = ${JSON.stringify(a.text)}`), r(), o("response = http.request(request)"), o("puts response.read_body"), s();
3476
3482
  }
3477
3483
  }, fs = {
3478
3484
  info: {
@@ -3507,28 +3513,28 @@ var Ae = (e, t, n) => {
3507
3513
  description: "cURL is a command line tool and library for transferring data with URL syntax",
3508
3514
  extname: ".sh"
3509
3515
  },
3510
- convert: ({ fullUrl: e, method: t, httpVersion: n, headersObj: a, allHeaders: s, postData: o }, r = {}) => {
3516
+ convert: ({ fullUrl: e, method: t, httpVersion: n, headersObj: a, allHeaders: i, postData: o }, r = {}) => {
3511
3517
  var v;
3512
- const { indent: i = " ", short: l = !1, binary: c = !1, globOff: u = !1 } = r, p = " ", { push: d, join: m } = new O({
3513
- ...typeof i == "string" ? { indent: i } : {},
3514
- join: i !== !1 ? ` \\
3515
- ${i}` : " "
3518
+ const { indent: s = " ", short: l = !1, binary: c = !1, globOff: u = !1 } = r, p = " ", { push: d, join: m } = new O({
3519
+ ...typeof s == "string" ? { indent: s } : {},
3520
+ join: s !== !1 ? ` \\
3521
+ ${s}` : " "
3516
3522
  }), h = hs(l);
3517
3523
  let y = J(e);
3518
- if (d(`curl ${h("request")} ${t}`), u && (y = unescape(y), d(h("globoff"))), d(`${h("url ")}${y}`), n === "HTTP/1.0" && d(h("http1.0")), de(s, "accept-encoding") && d("--compressed"), o.mimeType === "multipart/form-data") {
3524
+ if (d(`curl ${h("request")} ${t}`), u && (y = unescape(y), d(h("globoff"))), d(`${h("url ")}${y}`), n === "HTTP/1.0" && d(h("http1.0")), de(i, "accept-encoding") && d("--compressed"), o.mimeType === "multipart/form-data") {
3519
3525
  const b = Q(a, "content-type");
3520
3526
  if (b) {
3521
3527
  const g = a[b];
3522
3528
  if (b && g) {
3523
3529
  const x = String(g).replace(/; boundary.+?(?=(;|$))/, "");
3524
- a[b] = x, s[b] = x;
3530
+ a[b] = x, i[b] = x;
3525
3531
  }
3526
3532
  }
3527
3533
  }
3528
3534
  switch (Object.keys(a).sort().forEach((b) => {
3529
3535
  const g = `${b}: ${a[b]}`;
3530
3536
  d(`${h("header")} ${J(g)}`);
3531
- }), s.cookie && d(`${h("cookie")} ${J(s.cookie)}`), o.mimeType) {
3537
+ }), i.cookie && d(`${h("cookie")} ${J(i.cookie)}`), o.mimeType) {
3532
3538
  case "multipart/form-data":
3533
3539
  (v = o.params) == null || v.forEach((g) => {
3534
3540
  let x = "";
@@ -3576,8 +3582,8 @@ ${JSON.stringify(g, null, p)}
3576
3582
  extname: ".sh",
3577
3583
  installation: "brew install httpie"
3578
3584
  },
3579
- convert: ({ allHeaders: e, postData: t, queryObj: n, fullUrl: a, method: s, url: o }, r) => {
3580
- const i = {
3585
+ convert: ({ allHeaders: e, postData: t, queryObj: n, fullUrl: a, method: i, url: o }, r) => {
3586
+ const s = {
3581
3587
  body: !1,
3582
3588
  cert: !1,
3583
3589
  headers: !1,
@@ -3592,25 +3598,25 @@ ${JSON.stringify(g, null, p)}
3592
3598
  verify: !1,
3593
3599
  ...r
3594
3600
  }, { push: l, join: c, unshift: u } = new O({
3595
- indent: i.indent,
3601
+ indent: s.indent,
3596
3602
  // @ts-expect-error SEEMS LEGIT
3597
- join: i.indent !== !1 ? ` \\
3598
- ${i.indent}` : " "
3603
+ join: s.indent !== !1 ? ` \\
3604
+ ${s.indent}` : " "
3599
3605
  });
3600
3606
  let p = !1;
3601
3607
  const d = [];
3602
- i.headers && d.push(i.short ? "-h" : "--headers"), i.body && d.push(i.short ? "-b" : "--body"), i.verbose && d.push(i.short ? "-v" : "--verbose"), i.print && d.push(`${i.short ? "-p" : "--print"}=${i.print}`), i.verify && d.push(`--verify=${i.verify}`), i.cert && d.push(`--cert=${i.cert}`), i.pretty && d.push(`--pretty=${i.pretty}`), i.style && d.push(`--style=${i.style}`), i.timeout && d.push(`--timeout=${i.timeout}`), i.queryParams && Object.keys(n).forEach((h) => {
3608
+ s.headers && d.push(s.short ? "-h" : "--headers"), s.body && d.push(s.short ? "-b" : "--body"), s.verbose && d.push(s.short ? "-v" : "--verbose"), s.print && d.push(`${s.short ? "-p" : "--print"}=${s.print}`), s.verify && d.push(`--verify=${s.verify}`), s.cert && d.push(`--cert=${s.cert}`), s.pretty && d.push(`--pretty=${s.pretty}`), s.style && d.push(`--style=${s.style}`), s.timeout && d.push(`--timeout=${s.timeout}`), s.queryParams && Object.keys(n).forEach((h) => {
3603
3609
  const y = n[h];
3604
3610
  Array.isArray(y) ? y.forEach((v) => {
3605
3611
  l(`${h}==${J(v)}`);
3606
3612
  }) : l(`${h}==${J(y)}`);
3607
3613
  }), Object.keys(e).sort().forEach((h) => {
3608
3614
  l(`${h}:${J(e[h])}`);
3609
- }), t.mimeType === "application/x-www-form-urlencoded" ? t.params && t.params.length && (d.push(i.short ? "-f" : "--form"), t.params.forEach((h) => {
3615
+ }), t.mimeType === "application/x-www-form-urlencoded" ? t.params && t.params.length && (d.push(s.short ? "-f" : "--form"), t.params.forEach((h) => {
3610
3616
  l(`${h.name}=${J(h.value)}`);
3611
3617
  })) : p = !0;
3612
3618
  const m = d.length ? `${d.join(" ")} ` : "";
3613
- if (o = J(i.queryParams ? o : a), u(`http ${m}${s} ${o}`), p && t.text) {
3619
+ if (o = J(s.queryParams ? o : a), u(`http ${m}${i} ${o}`), p && t.text) {
3614
3620
  const h = J(t.text);
3615
3621
  u(`echo ${h} | `);
3616
3622
  }
@@ -3624,13 +3630,13 @@ ${i.indent}` : " "
3624
3630
  description: "a free software package for retrieving files using HTTP, HTTPS",
3625
3631
  extname: ".sh"
3626
3632
  },
3627
- convert: ({ method: e, postData: t, allHeaders: n, fullUrl: a }, s) => {
3633
+ convert: ({ method: e, postData: t, allHeaders: n, fullUrl: a }, i) => {
3628
3634
  const o = {
3629
3635
  indent: " ",
3630
3636
  short: !1,
3631
3637
  verbose: !1,
3632
- ...s
3633
- }, { push: r, join: i } = new O({
3638
+ ...i
3639
+ }, { push: r, join: s } = new O({
3634
3640
  ...typeof o.indent == "string" ? { indent: o.indent } : {},
3635
3641
  join: o.indent !== !1 ? ` \\
3636
3642
  ${o.indent}` : " "
@@ -3638,7 +3644,7 @@ ${o.indent}` : " "
3638
3644
  return o.verbose ? r(`wget ${o.short ? "-v" : "--verbose"}`) : r(`wget ${o.short ? "-q" : "--quiet"}`), r(`--method ${J(e)}`), Object.keys(n).forEach((l) => {
3639
3645
  const c = `${l}: ${n[l]}`;
3640
3646
  r(`--header ${J(c)}`);
3641
- }), t.text && r(`--body-data ${ps(J(t.text))}`), r(o.short ? "-O" : "--output-document"), r(`- ${J(a)}`), i();
3647
+ }), t.text && r(`--body-data ${ps(J(t.text))}`), r(o.short ? "-O" : "--output-document"), r(`- ${J(a)}`), s();
3642
3648
  }
3643
3649
  }, bs = {
3644
3650
  info: {
@@ -3653,10 +3659,10 @@ ${o.indent}` : " "
3653
3659
  wget: vs
3654
3660
  }
3655
3661
  }, Fn = (e, t) => t.repeat(e), qn = (e, t, n, a) => {
3656
- const s = Fn(a, n), o = Fn(a - 1, n), r = t ? `,
3657
- ${s}` : ", ";
3662
+ const i = Fn(a, n), o = Fn(a - 1, n), r = t ? `,
3663
+ ${i}` : ", ";
3658
3664
  return t ? `[
3659
- ${s}${e.join(r)}
3665
+ ${i}${e.join(r)}
3660
3666
  ${o}]` : `[${e.join(r)}]`;
3661
3667
  }, In = (e, t, n) => `let ${e} = ${pt(t, n)}`, pt = (e, t, n) => {
3662
3668
  switch (n = n === void 0 ? 1 : n + 1, Object.prototype.toString.call(e)) {
@@ -3664,13 +3670,13 @@ ${o}]` : `[${e.join(r)}]`;
3664
3670
  return e;
3665
3671
  case "[object Array]": {
3666
3672
  let a = !1;
3667
- const s = e.map((o) => (Object.prototype.toString.call(o) === "[object Object]" && (a = Object.keys(o).length > 1), pt(o, t, n)));
3668
- return qn(s, a, t.indent, n);
3673
+ const i = e.map((o) => (Object.prototype.toString.call(o) === "[object Object]" && (a = Object.keys(o).length > 1), pt(o, t, n)));
3674
+ return qn(i, a, t.indent, n);
3669
3675
  }
3670
3676
  case "[object Object]": {
3671
3677
  const a = [];
3672
- for (const s in e)
3673
- a.push(`"${s}": ${pt(e[s], t, n)}`);
3678
+ for (const i in e)
3679
+ a.push(`"${i}": ${pt(e[i], t, n)}`);
3674
3680
  return qn(
3675
3681
  a,
3676
3682
  // @ts-expect-error needs better types
@@ -3693,48 +3699,48 @@ ${o}]` : `[${e.join(r)}]`;
3693
3699
  description: "Foundation's URLSession request",
3694
3700
  extname: ".swift"
3695
3701
  },
3696
- convert: ({ allHeaders: e, postData: t, uriObj: n, queryObj: a, method: s }, o) => {
3702
+ convert: ({ allHeaders: e, postData: t, uriObj: n, queryObj: a, method: i }, o) => {
3697
3703
  var d;
3698
3704
  const r = {
3699
3705
  indent: " ",
3700
3706
  pretty: !0,
3701
3707
  timeout: 10,
3702
3708
  ...o
3703
- }, { push: i, blank: l, join: c } = new O({ indent: r.indent });
3704
- i("import Foundation"), l();
3709
+ }, { push: s, blank: l, join: c } = new O({ indent: r.indent });
3710
+ s("import Foundation"), l();
3705
3711
  const u = t.text || t.jsonObj || t.params;
3706
3712
  if (u)
3707
3713
  switch (t.mimeType) {
3708
3714
  case "application/x-www-form-urlencoded":
3709
3715
  if ((d = t.params) != null && d.length) {
3710
3716
  const m = t.params.map((h) => `"${h.name}": "${h.value}"`);
3711
- r.pretty ? (i("let parameters = ["), m.forEach((h) => i(`${h},`, 1)), i("]")) : i(`let parameters = [${m.join(", ")}]`), i('let joinedParameters = parameters.map { "\\($0.key)=\\($0.value)" }.joined(separator: "&")'), i("let postData = Data(joinedParameters.utf8)"), l();
3717
+ r.pretty ? (s("let parameters = ["), m.forEach((h) => s(`${h},`, 1)), s("]")) : s(`let parameters = [${m.join(", ")}]`), s('let joinedParameters = parameters.map { "\\($0.key)=\\($0.value)" }.joined(separator: "&")'), s("let postData = Data(joinedParameters.utf8)"), l();
3712
3718
  }
3713
3719
  break;
3714
3720
  case "application/json":
3715
- t.jsonObj && (i(`${In("parameters", t.jsonObj, r)} as [String : Any?]`), l(), i("let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])"), l());
3721
+ t.jsonObj && (s(`${In("parameters", t.jsonObj, r)} as [String : Any?]`), l(), s("let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])"), l());
3716
3722
  break;
3717
3723
  case "multipart/form-data":
3718
- i(In("parameters", t.params, r)), l(), i(`let boundary = "${t.boundary}"`), l(), i('var body = ""'), i("for param in parameters {"), i('let paramName = param["name"]!', 1), i('body += "--\\(boundary)\\r\\n"', 1), i('body += "Content-Disposition:form-data; name=\\"\\(paramName)\\""', 1), i('if let filename = param["fileName"] {', 1), i('let contentType = param["contentType"]!', 2), i("let fileContent = try String(contentsOfFile: filename, encoding: .utf8)", 2), i('body += "; filename=\\"\\(filename)\\"\\r\\n"', 2), i('body += "Content-Type: \\(contentType)\\r\\n\\r\\n"', 2), i("body += fileContent", 2), i('} else if let paramValue = param["value"] {', 1), i('body += "\\r\\n\\r\\n\\(paramValue)"', 2), i("}", 1), i("}"), l(), i("let postData = Data(body.utf8)"), l();
3724
+ s(In("parameters", t.params, r)), l(), s(`let boundary = "${t.boundary}"`), l(), s('var body = ""'), s("for param in parameters {"), s('let paramName = param["name"]!', 1), s('body += "--\\(boundary)\\r\\n"', 1), s('body += "Content-Disposition:form-data; name=\\"\\(paramName)\\""', 1), s('if let filename = param["fileName"] {', 1), s('let contentType = param["contentType"]!', 2), s("let fileContent = try String(contentsOfFile: filename, encoding: .utf8)", 2), s('body += "; filename=\\"\\(filename)\\"\\r\\n"', 2), s('body += "Content-Type: \\(contentType)\\r\\n\\r\\n"', 2), s("body += fileContent", 2), s('} else if let paramValue = param["value"] {', 1), s('body += "\\r\\n\\r\\n\\(paramValue)"', 2), s("}", 1), s("}"), l(), s("let postData = Data(body.utf8)"), l();
3719
3725
  break;
3720
3726
  default:
3721
- i(`let postData = Data("${t.text}".utf8)`), l();
3727
+ s(`let postData = Data("${t.text}".utf8)`), l();
3722
3728
  }
3723
- i(`let url = URL(string: "${n.href}")!`);
3729
+ s(`let url = URL(string: "${n.href}")!`);
3724
3730
  const p = a ? Object.entries(a) : [];
3725
- return p.length < 1 ? i("var request = URLRequest(url: url)") : (i("var components = URLComponents(url: url, resolvingAgainstBaseURL: true)!"), i("let queryItems: [URLQueryItem] = ["), p.forEach((m) => {
3731
+ return p.length < 1 ? s("var request = URLRequest(url: url)") : (s("var components = URLComponents(url: url, resolvingAgainstBaseURL: true)!"), s("let queryItems: [URLQueryItem] = ["), p.forEach((m) => {
3726
3732
  const h = m[0], y = m[1];
3727
3733
  switch (Object.prototype.toString.call(y)) {
3728
3734
  case "[object String]":
3729
- i(`URLQueryItem(name: "${h}", value: "${y}"),`, 1);
3735
+ s(`URLQueryItem(name: "${h}", value: "${y}"),`, 1);
3730
3736
  break;
3731
3737
  case "[object Array]":
3732
3738
  y.forEach((v) => {
3733
- i(`URLQueryItem(name: "${h}", value: "${v}"),`, 1);
3739
+ s(`URLQueryItem(name: "${h}", value: "${v}"),`, 1);
3734
3740
  });
3735
3741
  break;
3736
3742
  }
3737
- }), i("]"), i("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), l(), i("var request = URLRequest(url: components.url!)")), i(`request.httpMethod = "${s}"`), i(`request.timeoutInterval = ${r.timeout}`), Object.keys(e).length && i(`request.allHTTPHeaderFields = ${pt(e, r)}`), u && i("request.httpBody = postData"), l(), i("let (data, _) = try await URLSession.shared.data(for: request)"), i("print(String(decoding: data, as: UTF8.self))"), c();
3743
+ }), s("]"), s("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), l(), s("var request = URLRequest(url: components.url!)")), s(`request.httpMethod = "${i}"`), s(`request.timeoutInterval = ${r.timeout}`), Object.keys(e).length && s(`request.allHTTPHeaderFields = ${pt(e, r)}`), u && s("request.httpBody = postData"), l(), s("let (data, _) = try await URLSession.shared.data(for: request)"), s("print(String(decoding: data, as: UTF8.self))"), c();
3738
3744
  }
3739
3745
  }, ks = {
3740
3746
  info: {
@@ -3770,9 +3776,9 @@ ${o}]` : `[${e.join(r)}]`;
3770
3776
  mt.exports;
3771
3777
  (function(e, t) {
3772
3778
  (function(n) {
3773
- var a = t && !t.nodeType && t, s = e && !e.nodeType && e, o = typeof at == "object" && at;
3779
+ var a = t && !t.nodeType && t, i = e && !e.nodeType && e, o = typeof at == "object" && at;
3774
3780
  (o.global === o || o.window === o || o.self === o) && (n = o);
3775
- var r, i = 2147483647, l = 36, c = 1, u = 26, p = 38, d = 700, m = 72, h = 128, y = "-", v = /^xn--/, b = /[^\x20-\x7E]/, g = /[\x2E\u3002\uFF0E\uFF61]/g, x = {
3781
+ var r, s = 2147483647, l = 36, c = 1, u = 26, p = 38, d = 700, m = 72, h = 128, y = "-", v = /^xn--/, b = /[^\x20-\x7E]/, g = /[\x2E\u3002\uFF0E\uFF61]/g, x = {
3776
3782
  overflow: "Overflow: input needs wider integers to process",
3777
3783
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
3778
3784
  "invalid-input": "Invalid input"
@@ -3819,9 +3825,9 @@ mt.exports;
3819
3825
  for (te = $.lastIndexOf(y), te < 0 && (te = 0), re = 0; re < te; ++re)
3820
3826
  $.charCodeAt(re) >= 128 && P("not-basic"), N.push($.charCodeAt(re));
3821
3827
  for (se = te > 0 ? te + 1 : 0; se < E; ) {
3822
- for (fe = U, K = 1, ne = l; se >= E && P("invalid-input"), ae = _($.charCodeAt(se++)), (ae >= l || ae > S((i - U) / K)) && P("overflow"), U += ae * K, ye = ne <= z ? c : ne >= z + u ? u : ne - z, !(ae < ye); ne += l)
3823
- ke = l - ye, K > S(i / ke) && P("overflow"), K *= ke;
3824
- L = N.length + 1, z = X(U - fe, L, fe == 0), S(U / L) > i - Z && P("overflow"), Z += S(U / L), U %= L, N.splice(U++, 0, Z);
3828
+ for (fe = U, K = 1, ne = l; se >= E && P("invalid-input"), ae = _($.charCodeAt(se++)), (ae >= l || ae > S((s - U) / K)) && P("overflow"), U += ae * K, ye = ne <= z ? c : ne >= z + u ? u : ne - z, !(ae < ye); ne += l)
3829
+ ke = l - ye, K > S(s / ke) && P("overflow"), K *= ke;
3830
+ L = N.length + 1, z = X(U - fe, L, fe == 0), S(U / L) > s - Z && P("overflow"), Z += S(U / L), U %= L, N.splice(U++, 0, Z);
3825
3831
  }
3826
3832
  return A(N);
3827
3833
  }
@@ -3830,10 +3836,10 @@ mt.exports;
3830
3836
  for ($ = W($), ae = $.length, N = h, E = 0, Z = m, z = 0; z < ae; ++z)
3831
3837
  K = $[z], K < 128 && ne.push(k(K));
3832
3838
  for (L = U = ne.length, U && ne.push(y); L < ae; ) {
3833
- for (te = i, z = 0; z < ae; ++z)
3839
+ for (te = s, z = 0; z < ae; ++z)
3834
3840
  K = $[z], K >= N && K < te && (te = K);
3835
- for (ye = L + 1, te - N > S((i - E) / ye) && P("overflow"), E += (te - N) * ye, N = te, z = 0; z < ae; ++z)
3836
- if (K = $[z], K < N && ++E > i && P("overflow"), K == N) {
3841
+ for (ye = L + 1, te - N > S((s - E) / ye) && P("overflow"), E += (te - N) * ye, N = te, z = 0; z < ae; ++z)
3842
+ if (K = $[z], K < N && ++E > s && P("overflow"), K == N) {
3837
3843
  for (re = E, se = l; fe = se <= Z ? c : se >= Z + u ? u : se - Z, !(re < fe); se += l)
3838
3844
  $t = re - fe, ke = l - fe, ne.push(
3839
3845
  k(H(fe + $t % ke, 0))
@@ -3876,9 +3882,9 @@ mt.exports;
3876
3882
  encode: he,
3877
3883
  toASCII: Xe,
3878
3884
  toUnicode: kt
3879
- }, a && s)
3885
+ }, a && i)
3880
3886
  if (e.exports == a)
3881
- s.exports = r;
3887
+ i.exports = r;
3882
3888
  else
3883
3889
  for (C in r)
3884
3890
  r.hasOwnProperty(C) && (a[C] = r[C]);
@@ -3894,8 +3900,8 @@ var Ss = mt.exports, ws = Error, js = EvalError, Ns = RangeError, Ts = Reference
3894
3900
  var t = {}, n = Symbol("test"), a = Object(n);
3895
3901
  if (typeof n == "string" || Object.prototype.toString.call(n) !== "[object Symbol]" || Object.prototype.toString.call(a) !== "[object Symbol]")
3896
3902
  return !1;
3897
- var s = 42;
3898
- t[n] = s;
3903
+ var i = 42;
3904
+ t[n] = i;
3899
3905
  for (n in t)
3900
3906
  return !1;
3901
3907
  if (typeof Object.keys == "function" && Object.keys(t).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(t).length !== 0)
@@ -3905,7 +3911,7 @@ var Ss = mt.exports, ws = Error, js = EvalError, Ns = RangeError, Ts = Reference
3905
3911
  return !1;
3906
3912
  if (typeof Object.getOwnPropertyDescriptor == "function") {
3907
3913
  var r = Object.getOwnPropertyDescriptor(t, n);
3908
- if (r.value !== s || r.enumerable !== !0)
3914
+ if (r.value !== i || r.enumerable !== !0)
3909
3915
  return !1;
3910
3916
  }
3911
3917
  return !0;
@@ -3917,14 +3923,14 @@ var Ss = mt.exports, ws = Error, js = EvalError, Ns = RangeError, Ts = Reference
3917
3923
  }, Rs = Object, As = function() {
3918
3924
  return { __proto__: Tt }.foo === Tt.foo && !(Tt instanceof Rs);
3919
3925
  }, Fs = "Function.prototype.bind called on incompatible ", qs = Object.prototype.toString, Is = Math.max, _s = "[object Function]", Ln = function(t, n) {
3920
- for (var a = [], s = 0; s < t.length; s += 1)
3921
- a[s] = t[s];
3926
+ for (var a = [], i = 0; i < t.length; i += 1)
3927
+ a[i] = t[i];
3922
3928
  for (var o = 0; o < n.length; o += 1)
3923
3929
  a[o + t.length] = n[o];
3924
3930
  return a;
3925
3931
  }, Ls = function(t, n) {
3926
- for (var a = [], s = n, o = 0; s < t.length; s += 1, o += 1)
3927
- a[o] = t[s];
3932
+ for (var a = [], i = n, o = 0; i < t.length; i += 1, o += 1)
3933
+ a[o] = t[i];
3928
3934
  return a;
3929
3935
  }, Us = function(e, t) {
3930
3936
  for (var n = "", a = 0; a < e.length; a += 1)
@@ -3934,8 +3940,8 @@ var Ss = mt.exports, ws = Error, js = EvalError, Ns = RangeError, Ts = Reference
3934
3940
  var n = this;
3935
3941
  if (typeof n != "function" || qs.apply(n) !== _s)
3936
3942
  throw new TypeError(Fs + n);
3937
- for (var a = Ls(arguments, 1), s, o = function() {
3938
- if (this instanceof s) {
3943
+ for (var a = Ls(arguments, 1), i, o = function() {
3944
+ if (this instanceof i) {
3939
3945
  var u = n.apply(
3940
3946
  this,
3941
3947
  Ln(a, arguments)
@@ -3946,14 +3952,14 @@ var Ss = mt.exports, ws = Error, js = EvalError, Ns = RangeError, Ts = Reference
3946
3952
  t,
3947
3953
  Ln(a, arguments)
3948
3954
  );
3949
- }, r = Is(0, n.length - a.length), i = [], l = 0; l < r; l++)
3950
- i[l] = "$" + l;
3951
- if (s = Function("binder", "return function (" + Us(i, ",") + "){ return binder.apply(this,arguments); }")(o), n.prototype) {
3955
+ }, r = Is(0, n.length - a.length), s = [], l = 0; l < r; l++)
3956
+ s[l] = "$" + l;
3957
+ if (i = Function("binder", "return function (" + Us(s, ",") + "){ return binder.apply(this,arguments); }")(o), n.prototype) {
3952
3958
  var c = function() {
3953
3959
  };
3954
- c.prototype = n.prototype, s.prototype = new c(), c.prototype = null;
3960
+ c.prototype = n.prototype, i.prototype = new c(), c.prototype = null;
3955
3961
  }
3956
- return s;
3962
+ return i;
3957
3963
  }, Hs = Ms, fn = Function.prototype.bind || Hs, Bs = Function.prototype.call, Ds = Object.prototype.hasOwnProperty, Vs = fn, Ws = Vs.call(Bs, Ds), T, zs = ws, Js = js, Gs = Ns, Ks = Ts, Ie = la, Fe = Qe, Qs = Os, ca = Function, Ot = function(e) {
3958
3964
  try {
3959
3965
  return ca('"use strict"; return (' + e + ").constructor;")();
@@ -4069,8 +4075,8 @@ var tl = function e(t) {
4069
4075
  var a = e("%AsyncGeneratorFunction%");
4070
4076
  a && (n = a.prototype);
4071
4077
  } else if (t === "%AsyncIteratorPrototype%") {
4072
- var s = e("%AsyncGenerator%");
4073
- s && D && (n = D(s.prototype));
4078
+ var i = e("%AsyncGenerator%");
4079
+ i && D && (n = D(i.prototype));
4074
4080
  }
4075
4081
  return je[t] = n, n;
4076
4082
  }, Un = {
@@ -4132,18 +4138,18 @@ var tl = function e(t) {
4132
4138
  throw new Ie("invalid intrinsic syntax, expected closing `%`");
4133
4139
  if (a === "%" && n !== "%")
4134
4140
  throw new Ie("invalid intrinsic syntax, expected opening `%`");
4135
- var s = [];
4136
- return Mn(t, ol, function(o, r, i, l) {
4137
- s[s.length] = i ? Mn(l, il, "$1") : r || o;
4138
- }), s;
4141
+ var i = [];
4142
+ return Mn(t, ol, function(o, r, s, l) {
4143
+ i[i.length] = s ? Mn(l, il, "$1") : r || o;
4144
+ }), i;
4139
4145
  }, ll = function(t, n) {
4140
- var a = t, s;
4141
- if (ht(Un, a) && (s = Un[a], a = "%" + s[0] + "%"), ht(je, a)) {
4146
+ var a = t, i;
4147
+ if (ht(Un, a) && (i = Un[a], a = "%" + i[0] + "%"), ht(je, a)) {
4142
4148
  var o = je[a];
4143
4149
  if (o === Re && (o = tl(a)), typeof o > "u" && !n)
4144
4150
  throw new Fe("intrinsic " + t + " exists, but is not available. Please file an issue!");
4145
4151
  return {
4146
- alias: s,
4152
+ alias: i,
4147
4153
  name: a,
4148
4154
  value: o
4149
4155
  };
@@ -4156,29 +4162,29 @@ var tl = function e(t) {
4156
4162
  throw new Fe('"allowMissing" argument must be a boolean');
4157
4163
  if (al(/^%?[^%]*%?$/, t) === null)
4158
4164
  throw new Ie("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
4159
- var a = sl(t), s = a.length > 0 ? a[0] : "", o = ll("%" + s + "%", n), r = o.name, i = o.value, l = !1, c = o.alias;
4160
- c && (s = c[0], rl(a, nl([0, 1], c)));
4165
+ var a = sl(t), i = a.length > 0 ? a[0] : "", o = ll("%" + i + "%", n), r = o.name, s = o.value, l = !1, c = o.alias;
4166
+ c && (i = c[0], rl(a, nl([0, 1], c)));
4161
4167
  for (var u = 1, p = !0; u < a.length; u += 1) {
4162
4168
  var d = a[u], m = yt(d, 0, 1), h = yt(d, -1);
4163
4169
  if ((m === '"' || m === "'" || m === "`" || h === '"' || h === "'" || h === "`") && m !== h)
4164
4170
  throw new Ie("property names with quotes must have matching quotes");
4165
- if ((d === "constructor" || !p) && (l = !0), s += "." + d, r = "%" + s + "%", ht(je, r))
4166
- i = je[r];
4167
- else if (i != null) {
4168
- if (!(d in i)) {
4171
+ if ((d === "constructor" || !p) && (l = !0), i += "." + d, r = "%" + i + "%", ht(je, r))
4172
+ s = je[r];
4173
+ else if (s != null) {
4174
+ if (!(d in s)) {
4169
4175
  if (!n)
4170
4176
  throw new Fe("base intrinsic for " + t + " exists, but the property is not available.");
4171
4177
  return;
4172
4178
  }
4173
4179
  if (we && u + 1 >= a.length) {
4174
- var y = we(i, d);
4175
- p = !!y, p && "get" in y && !("originalValue" in y.get) ? i = y.get : i = i[d];
4180
+ var y = we(s, d);
4181
+ p = !!y, p && "get" in y && !("originalValue" in y.get) ? s = y.get : s = s[d];
4176
4182
  } else
4177
- p = ht(i, d), i = i[d];
4178
- p && !l && (je[r] = i);
4183
+ p = ht(s, d), s = s[d];
4184
+ p && !l && (je[r] = s);
4179
4185
  }
4180
4186
  }
4181
- return i;
4187
+ return s;
4182
4188
  }, ua = { exports: {} }, Pt, Hn;
4183
4189
  function pn() {
4184
4190
  if (Hn) return Pt;
@@ -4212,15 +4218,15 @@ var da = st, Bn = pn(), ul = la, Ce = Qe, Dn = da, dl = function(t, n, a) {
4212
4218
  throw new Ce("`nonConfigurable`, if provided, must be a boolean or null");
4213
4219
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
4214
4220
  throw new Ce("`loose`, if provided, must be a boolean");
4215
- var s = arguments.length > 3 ? arguments[3] : null, o = arguments.length > 4 ? arguments[4] : null, r = arguments.length > 5 ? arguments[5] : null, i = arguments.length > 6 ? arguments[6] : !1, l = !!Dn && Dn(t, n);
4221
+ var i = arguments.length > 3 ? arguments[3] : null, o = arguments.length > 4 ? arguments[4] : null, r = arguments.length > 5 ? arguments[5] : null, s = arguments.length > 6 ? arguments[6] : !1, l = !!Dn && Dn(t, n);
4216
4222
  if (Bn)
4217
4223
  Bn(t, n, {
4218
4224
  configurable: r === null && l ? l.configurable : !r,
4219
- enumerable: s === null && l ? l.enumerable : !s,
4225
+ enumerable: i === null && l ? l.enumerable : !i,
4220
4226
  value: a,
4221
4227
  writable: o === null && l ? l.writable : !o
4222
4228
  });
4223
- else if (i || !s && !o && !r)
4229
+ else if (s || !i && !o && !r)
4224
4230
  t[n] = a;
4225
4231
  else
4226
4232
  throw new ul("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
@@ -4241,12 +4247,12 @@ var fl = fa, pl = Ue, Vn = dl, ml = fl(), Wn = da, zn = Qe, hl = pl("%Math.floor
4241
4247
  throw new zn("`fn` is not a function");
4242
4248
  if (typeof n != "number" || n < 0 || n > 4294967295 || hl(n) !== n)
4243
4249
  throw new zn("`length` must be a positive 32-bit integer");
4244
- var a = arguments.length > 2 && !!arguments[2], s = !0, o = !0;
4250
+ var a = arguments.length > 2 && !!arguments[2], i = !0, o = !0;
4245
4251
  if ("length" in t && Wn) {
4246
4252
  var r = Wn(t, "length");
4247
- r && !r.configurable && (s = !1), r && !r.writable && (o = !1);
4253
+ r && !r.configurable && (i = !1), r && !r.writable && (o = !1);
4248
4254
  }
4249
- return (s || o || !a) && (ml ? Vn(
4255
+ return (i || o || !a) && (ml ? Vn(
4250
4256
  /** @type {Parameters<define>[0]} */
4251
4257
  t,
4252
4258
  "length",
@@ -4261,11 +4267,11 @@ var fl = fa, pl = Ue, Vn = dl, ml = fl(), Wn = da, zn = Qe, hl = pl("%Math.floor
4261
4267
  )), t;
4262
4268
  };
4263
4269
  (function(e) {
4264
- var t = fn, n = Ue, a = yl, s = Qe, o = n("%Function.prototype.apply%"), r = n("%Function.prototype.call%"), i = n("%Reflect.apply%", !0) || t.call(r, o), l = pn(), c = n("%Math.max%");
4270
+ var t = fn, n = Ue, a = yl, i = Qe, o = n("%Function.prototype.apply%"), r = n("%Function.prototype.call%"), s = n("%Reflect.apply%", !0) || t.call(r, o), l = pn(), c = n("%Math.max%");
4265
4271
  e.exports = function(d) {
4266
4272
  if (typeof d != "function")
4267
- throw new s("a function is required");
4268
- var m = i(t, r, arguments);
4273
+ throw new i("a function is required");
4274
+ var m = s(t, r, arguments);
4269
4275
  return a(
4270
4276
  m,
4271
4277
  1 + c(0, d.length - (arguments.length - 1)),
@@ -4273,7 +4279,7 @@ var fl = fa, pl = Ue, Vn = dl, ml = fl(), Wn = da, zn = Qe, hl = pl("%Math.floor
4273
4279
  );
4274
4280
  };
4275
4281
  var u = function() {
4276
- return i(t, o, arguments);
4282
+ return s(t, o, arguments);
4277
4283
  };
4278
4284
  l ? l(e.exports, "apply", { value: u }) : e.exports.apply = u;
4279
4285
  })(ua);
@@ -4295,13 +4301,13 @@ function er(e, t) {
4295
4301
  if (typeof e == "number") {
4296
4302
  var a = e < 0 ? -Xn(-e) : Xn(e);
4297
4303
  if (a !== e) {
4298
- var s = String(a), o = yn.call(t, s.length + 1);
4299
- return ve.call(s, n, "$&_") + "." + ve.call(ve.call(o, /([0-9]{3})/g, "$&_"), /_$/, "");
4304
+ var i = String(a), o = yn.call(t, i.length + 1);
4305
+ return ve.call(i, n, "$&_") + "." + ve.call(ve.call(o, /([0-9]{3})/g, "$&_"), /_$/, "");
4300
4306
  }
4301
4307
  }
4302
4308
  return ve.call(t, n, "$&_");
4303
4309
  }
4304
- var Wt = $l, tr = Wt.custom, nr = va(tr) ? tr : null, Rl = function e(t, n, a, s) {
4310
+ var Wt = $l, tr = Wt.custom, nr = va(tr) ? tr : null, Rl = function e(t, n, a, i) {
4305
4311
  var o = n || {};
4306
4312
  if (ge(o, "quoteStyle") && o.quoteStyle !== "single" && o.quoteStyle !== "double")
4307
4313
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
@@ -4314,7 +4320,7 @@ var Wt = $l, tr = Wt.custom, nr = va(tr) ? tr : null, Rl = function e(t, n, a, s
4314
4320
  throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
4315
4321
  if (ge(o, "numericSeparator") && typeof o.numericSeparator != "boolean")
4316
4322
  throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
4317
- var i = o.numericSeparator;
4323
+ var s = o.numericSeparator;
4318
4324
  if (typeof t > "u")
4319
4325
  return "undefined";
4320
4326
  if (t === null)
@@ -4327,28 +4333,28 @@ var Wt = $l, tr = Wt.custom, nr = va(tr) ? tr : null, Rl = function e(t, n, a, s
4327
4333
  if (t === 0)
4328
4334
  return 1 / 0 / t > 0 ? "0" : "-0";
4329
4335
  var l = String(t);
4330
- return i ? er(t, l) : l;
4336
+ return s ? er(t, l) : l;
4331
4337
  }
4332
4338
  if (typeof t == "bigint") {
4333
4339
  var c = String(t) + "n";
4334
- return i ? er(t, c) : c;
4340
+ return s ? er(t, c) : c;
4335
4341
  }
4336
4342
  var u = typeof o.depth > "u" ? 5 : o.depth;
4337
4343
  if (typeof a > "u" && (a = 0), a >= u && u > 0 && typeof t == "object")
4338
4344
  return zt(t) ? "[Array]" : "[Object]";
4339
4345
  var p = Ql(o, a);
4340
- if (typeof s > "u")
4341
- s = [];
4342
- else if (ba(s, t) >= 0)
4346
+ if (typeof i > "u")
4347
+ i = [];
4348
+ else if (ba(i, t) >= 0)
4343
4349
  return "[Circular]";
4344
4350
  function d(_, H, X) {
4345
- if (H && (s = El.call(s), s.push(H)), X) {
4351
+ if (H && (i = El.call(i), i.push(H)), X) {
4346
4352
  var ee = {
4347
4353
  depth: o.depth
4348
4354
  };
4349
- return ge(o, "quoteStyle") && (ee.quoteStyle = o.quoteStyle), e(_, ee, a + 1, s);
4355
+ return ge(o, "quoteStyle") && (ee.quoteStyle = o.quoteStyle), e(_, ee, a + 1, i);
4350
4356
  }
4351
- return e(_, o, a + 1, s);
4357
+ return e(_, o, a + 1, i);
4352
4358
  }
4353
4359
  if (typeof t == "function" && !rr(t)) {
4354
4360
  var m = Hl(t), h = Ze(t, d);
@@ -4565,8 +4571,8 @@ function xa(e, t) {
4565
4571
  var n = e.length - t.maxStringLength, a = "... " + n + " more character" + (n > 1 ? "s" : "");
4566
4572
  return xa(yn.call(e, 0, t.maxStringLength), t) + a;
4567
4573
  }
4568
- var s = ve.call(ve.call(e, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Gl);
4569
- return ga(s, "single", t);
4574
+ var i = ve.call(ve.call(e, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Gl);
4575
+ return ga(i, "single", t);
4570
4576
  }
4571
4577
  function Gl(e) {
4572
4578
  var t = e.charCodeAt(0), n = {
@@ -4585,8 +4591,8 @@ function Ft(e) {
4585
4591
  return e + " { ? }";
4586
4592
  }
4587
4593
  function ar(e, t, n, a) {
4588
- var s = a ? Jt(n, a) : ue.call(n, ", ");
4589
- return e + " (" + t + ") {" + s + "}";
4594
+ var i = a ? Jt(n, a) : ue.call(n, ", ");
4595
+ return e + " (" + t + ") {" + i + "}";
4590
4596
  }
4591
4597
  function Kl(e) {
4592
4598
  for (var t = 0; t < e.length; t++)
@@ -4620,14 +4626,14 @@ function Ze(e, t) {
4620
4626
  var n = zt(e), a = [];
4621
4627
  if (n) {
4622
4628
  a.length = e.length;
4623
- for (var s = 0; s < e.length; s++)
4624
- a[s] = ge(e, s) ? t(e[s], e) : "";
4629
+ for (var i = 0; i < e.length; i++)
4630
+ a[i] = ge(e, i) ? t(e[i], e) : "";
4625
4631
  }
4626
4632
  var o = typeof At == "function" ? At(e) : [], r;
4627
4633
  if (_e) {
4628
4634
  r = {};
4629
- for (var i = 0; i < o.length; i++)
4630
- r["$" + o[i]] = o[i];
4635
+ for (var s = 0; s < o.length; s++)
4636
+ r["$" + o[s]] = o[s];
4631
4637
  }
4632
4638
  for (var l in e)
4633
4639
  ge(e, l) && (n && String(Number(l)) === l && l < e.length || _e && r["$" + l] instanceof Symbol || (ha.call(/[^\w$]/, l) ? a.push(t(l, e) + ": " + t(e[l], e)) : a.push(l + ": " + t(e[l], e))));
@@ -4656,9 +4662,9 @@ var ka = Ue, Me = bl, Yl = Rl, Xl = Qe, et = ka("%WeakMap%", !0), tt = ka("%Map%
4656
4662
  }, sc = function(e, t) {
4657
4663
  return !!gn(e, t);
4658
4664
  }, lc = function() {
4659
- var t, n, a, s = {
4665
+ var t, n, a, i = {
4660
4666
  assert: function(o) {
4661
- if (!s.has(o))
4667
+ if (!i.has(o))
4662
4668
  throw new Xl("Side channel does not contain " + Yl(o));
4663
4669
  },
4664
4670
  get: function(o) {
@@ -4686,7 +4692,7 @@ var ka = Ue, Me = bl, Yl = Rl, Xl = Qe, et = ka("%WeakMap%", !0), tt = ka("%Map%
4686
4692
  et && o && (typeof o == "object" || typeof o == "function") ? (t || (t = new et()), ec(t, o, r)) : tt ? (n || (n = new tt()), rc(n, o, r)) : (a || (a = { key: {}, next: null }), ic(a, o, r));
4687
4693
  }
4688
4694
  };
4689
- return s;
4695
+ return i;
4690
4696
  }, cc = String.prototype.replace, uc = /%20/g, qt = {
4691
4697
  RFC1738: "RFC1738",
4692
4698
  RFC3986: "RFC3986"
@@ -4710,14 +4716,14 @@ var ka = Ue, Me = bl, Yl = Rl, Xl = Qe, et = ka("%WeakMap%", !0), tt = ka("%Map%
4710
4716
  for (; t.length > 1; ) {
4711
4717
  var n = t.pop(), a = n.obj[n.prop];
4712
4718
  if ($e(a)) {
4713
- for (var s = [], o = 0; o < a.length; ++o)
4714
- typeof a[o] < "u" && s.push(a[o]);
4715
- n.obj[n.prop] = s;
4719
+ for (var i = [], o = 0; o < a.length; ++o)
4720
+ typeof a[o] < "u" && i.push(a[o]);
4721
+ n.obj[n.prop] = i;
4716
4722
  }
4717
4723
  }
4718
4724
  }, $a = function(t, n) {
4719
- for (var a = n && n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, s = 0; s < t.length; ++s)
4720
- typeof t[s] < "u" && (a[s] = t[s]);
4725
+ for (var a = n && n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, i = 0; i < t.length; ++i)
4726
+ typeof t[i] < "u" && (a[i] = t[i]);
4721
4727
  return a;
4722
4728
  }, pc = function e(t, n, a) {
4723
4729
  if (!n)
@@ -4733,20 +4739,20 @@ var ka = Ue, Me = bl, Yl = Rl, Xl = Qe, et = ka("%WeakMap%", !0), tt = ka("%Map%
4733
4739
  }
4734
4740
  if (!t || typeof t != "object")
4735
4741
  return [t].concat(n);
4736
- var s = t;
4737
- return $e(t) && !$e(n) && (s = $a(t, a)), $e(t) && $e(n) ? (n.forEach(function(o, r) {
4742
+ var i = t;
4743
+ return $e(t) && !$e(n) && (i = $a(t, a)), $e(t) && $e(n) ? (n.forEach(function(o, r) {
4738
4744
  if (It.call(t, r)) {
4739
- var i = t[r];
4740
- i && typeof i == "object" && o && typeof o == "object" ? t[r] = e(i, o, a) : t.push(o);
4745
+ var s = t[r];
4746
+ s && typeof s == "object" && o && typeof o == "object" ? t[r] = e(s, o, a) : t.push(o);
4741
4747
  } else
4742
4748
  t[r] = o;
4743
4749
  }), t) : Object.keys(n).reduce(function(o, r) {
4744
- var i = n[r];
4745
- return It.call(o, r) ? o[r] = e(o[r], i, a) : o[r] = i, o;
4746
- }, s);
4750
+ var s = n[r];
4751
+ return It.call(o, r) ? o[r] = e(o[r], s, a) : o[r] = s, o;
4752
+ }, i);
4747
4753
  }, mc = function(t, n) {
4748
- return Object.keys(n).reduce(function(a, s) {
4749
- return a[s] = n[s], a;
4754
+ return Object.keys(n).reduce(function(a, i) {
4755
+ return a[i] = n[i], a;
4750
4756
  }, t);
4751
4757
  }, hc = function(e, t, n) {
4752
4758
  var a = e.replace(/\+/g, " ");
@@ -4757,7 +4763,7 @@ var ka = Ue, Me = bl, Yl = Rl, Xl = Qe, et = ka("%WeakMap%", !0), tt = ka("%Map%
4757
4763
  } catch {
4758
4764
  return a;
4759
4765
  }
4760
- }, _t = 1024, yc = function(t, n, a, s, o) {
4766
+ }, _t = 1024, yc = function(t, n, a, i, o) {
4761
4767
  if (t.length === 0)
4762
4768
  return t;
4763
4769
  var r = t;
@@ -4765,7 +4771,7 @@ var ka = Ue, Me = bl, Yl = Rl, Xl = Qe, et = ka("%WeakMap%", !0), tt = ka("%Map%
4765
4771
  return escape(r).replace(/%u[0-9a-f]{4}/gi, function(m) {
4766
4772
  return "%26%23" + parseInt(m.slice(2), 16) + "%3B";
4767
4773
  });
4768
- for (var i = "", l = 0; l < r.length; l += _t) {
4774
+ for (var s = "", l = 0; l < r.length; l += _t) {
4769
4775
  for (var c = r.length >= _t ? r.slice(l, l + _t) : r, u = [], p = 0; p < c.length; ++p) {
4770
4776
  var d = c.charCodeAt(p);
4771
4777
  if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || o === dc.RFC1738 && (d === 40 || d === 41)) {
@@ -4786,13 +4792,13 @@ var ka = Ue, Me = bl, Yl = Rl, Xl = Qe, et = ka("%WeakMap%", !0), tt = ka("%Map%
4786
4792
  }
4787
4793
  p += 1, d = 65536 + ((d & 1023) << 10 | c.charCodeAt(p) & 1023), u[u.length] = le[240 | d >> 18] + le[128 | d >> 12 & 63] + le[128 | d >> 6 & 63] + le[128 | d & 63];
4788
4794
  }
4789
- i += u.join("");
4795
+ s += u.join("");
4790
4796
  }
4791
- return i;
4797
+ return s;
4792
4798
  }, gc = function(t) {
4793
- for (var n = [{ obj: { o: t }, prop: "o" }], a = [], s = 0; s < n.length; ++s)
4794
- for (var o = n[s], r = o.obj[o.prop], i = Object.keys(r), l = 0; l < i.length; ++l) {
4795
- var c = i[l], u = r[c];
4799
+ for (var n = [{ obj: { o: t }, prop: "o" }], a = [], i = 0; i < n.length; ++i)
4800
+ for (var o = n[i], r = o.obj[o.prop], s = Object.keys(r), l = 0; l < s.length; ++l) {
4801
+ var c = s[l], u = r[c];
4796
4802
  typeof u == "object" && u !== null && a.indexOf(u) === -1 && (n.push({ obj: r, prop: c }), a.push(u));
4797
4803
  }
4798
4804
  return fc(n), t;
@@ -4804,8 +4810,8 @@ var ka = Ue, Me = bl, Yl = Rl, Xl = Qe, et = ka("%WeakMap%", !0), tt = ka("%Map%
4804
4810
  return [].concat(t, n);
4805
4811
  }, kc = function(t, n) {
4806
4812
  if ($e(t)) {
4807
- for (var a = [], s = 0; s < t.length; s += 1)
4808
- a.push(n(t[s]));
4813
+ for (var a = [], i = 0; i < t.length; i += 1)
4814
+ a.push(n(t[i]));
4809
4815
  return a;
4810
4816
  }
4811
4817
  return n(t);
@@ -4856,7 +4862,7 @@ var ka = Ue, Me = bl, Yl = Rl, Xl = Qe, et = ka("%WeakMap%", !0), tt = ka("%Map%
4856
4862
  strictNullHandling: !1
4857
4863
  }, jc = function(t) {
4858
4864
  return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t == "bigint";
4859
- }, Lt = {}, Nc = function e(t, n, a, s, o, r, i, l, c, u, p, d, m, h, y, v, b, g) {
4865
+ }, Lt = {}, Nc = function e(t, n, a, i, o, r, s, l, c, u, p, d, m, h, y, v, b, g) {
4860
4866
  for (var x = t, w = g, S = 0, k = !1; (w = w.get(Lt)) !== void 0 && !k; ) {
4861
4867
  var C = w.get(t);
4862
4868
  if (S += 1, typeof C < "u") {
@@ -4892,12 +4898,12 @@ var ka = Ue, Me = bl, Yl = Rl, Xl = Qe, et = ka("%WeakMap%", !0), tt = ka("%Map%
4892
4898
  var W = Object.keys(x);
4893
4899
  I = p ? W.sort(p) : W;
4894
4900
  }
4895
- var A = l ? n.replace(/\./g, "%2E") : n, _ = s && ce(x) && x.length === 1 ? A + "[]" : A;
4901
+ var A = l ? n.replace(/\./g, "%2E") : n, _ = i && ce(x) && x.length === 1 ? A + "[]" : A;
4896
4902
  if (o && ce(x) && x.length === 0)
4897
4903
  return _ + "[]";
4898
4904
  for (var H = 0; H < I.length; ++H) {
4899
4905
  var X = I[H], ee = typeof X == "object" && typeof X.value < "u" ? X.value : x[X];
4900
- if (!(i && ee === null)) {
4906
+ if (!(s && ee === null)) {
4901
4907
  var he = d && l ? X.replace(/\./g, "%2E") : X, kt = ce(x) ? typeof a == "function" ? a(_, he) : _ : _ + (d ? "." + he : "[" + he + "]");
4902
4908
  g.set(t, S);
4903
4909
  var Xe = wa();
@@ -4905,10 +4911,10 @@ var ka = Ue, Me = bl, Yl = Rl, Xl = Qe, et = ka("%WeakMap%", !0), tt = ka("%Map%
4905
4911
  ee,
4906
4912
  kt,
4907
4913
  a,
4908
- s,
4914
+ i,
4909
4915
  o,
4910
4916
  r,
4911
- i,
4917
+ s,
4912
4918
  l,
4913
4919
  a === "comma" && v && ce(x) ? null : c,
4914
4920
  u,
@@ -4942,15 +4948,15 @@ var ka = Ue, Me = bl, Yl = Rl, Xl = Qe, et = ka("%WeakMap%", !0), tt = ka("%Map%
4942
4948
  throw new TypeError("Unknown format option provided.");
4943
4949
  a = t.format;
4944
4950
  }
4945
- var s = Ve.formatters[a], o = B.filter;
4951
+ var i = Ve.formatters[a], o = B.filter;
4946
4952
  (typeof t.filter == "function" || ce(t.filter)) && (o = t.filter);
4947
4953
  var r;
4948
4954
  if (t.arrayFormat in ja ? r = t.arrayFormat : "indices" in t ? r = t.indices ? "indices" : "repeat" : r = B.arrayFormat, "commaRoundTrip" in t && typeof t.commaRoundTrip != "boolean")
4949
4955
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
4950
- var i = typeof t.allowDots > "u" ? t.encodeDotInKeys === !0 ? !0 : B.allowDots : !!t.allowDots;
4956
+ var s = typeof t.allowDots > "u" ? t.encodeDotInKeys === !0 ? !0 : B.allowDots : !!t.allowDots;
4951
4957
  return {
4952
4958
  addQueryPrefix: typeof t.addQueryPrefix == "boolean" ? t.addQueryPrefix : B.addQueryPrefix,
4953
- allowDots: i,
4959
+ allowDots: s,
4954
4960
  allowEmptyArrays: typeof t.allowEmptyArrays == "boolean" ? !!t.allowEmptyArrays : B.allowEmptyArrays,
4955
4961
  arrayFormat: r,
4956
4962
  charset: n,
@@ -4963,26 +4969,26 @@ var ka = Ue, Me = bl, Yl = Rl, Xl = Qe, et = ka("%WeakMap%", !0), tt = ka("%Map%
4963
4969
  encodeValuesOnly: typeof t.encodeValuesOnly == "boolean" ? t.encodeValuesOnly : B.encodeValuesOnly,
4964
4970
  filter: o,
4965
4971
  format: a,
4966
- formatter: s,
4972
+ formatter: i,
4967
4973
  serializeDate: typeof t.serializeDate == "function" ? t.serializeDate : B.serializeDate,
4968
4974
  skipNulls: typeof t.skipNulls == "boolean" ? t.skipNulls : B.skipNulls,
4969
4975
  sort: typeof t.sort == "function" ? t.sort : null,
4970
4976
  strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : B.strictNullHandling
4971
4977
  };
4972
4978
  }, Oc = function(e, t) {
4973
- var n = e, a = Tc(t), s, o;
4974
- typeof a.filter == "function" ? (o = a.filter, n = o("", n)) : ce(a.filter) && (o = a.filter, s = o);
4979
+ var n = e, a = Tc(t), i, o;
4980
+ typeof a.filter == "function" ? (o = a.filter, n = o("", n)) : ce(a.filter) && (o = a.filter, i = o);
4975
4981
  var r = [];
4976
4982
  if (typeof n != "object" || n === null)
4977
4983
  return "";
4978
- var i = ja[a.arrayFormat], l = i === "comma" && a.commaRoundTrip;
4979
- s || (s = Object.keys(n)), a.sort && s.sort(a.sort);
4980
- for (var c = wa(), u = 0; u < s.length; ++u) {
4981
- var p = s[u];
4984
+ var s = ja[a.arrayFormat], l = s === "comma" && a.commaRoundTrip;
4985
+ i || (i = Object.keys(n)), a.sort && i.sort(a.sort);
4986
+ for (var c = wa(), u = 0; u < i.length; ++u) {
4987
+ var p = i[u];
4982
4988
  a.skipNulls && n[p] === null || Na(r, Nc(
4983
4989
  n[p],
4984
4990
  p,
4985
- i,
4991
+ s,
4986
4992
  l,
4987
4993
  a.allowEmptyArrays,
4988
4994
  a.strictNullHandling,
@@ -5029,12 +5035,12 @@ var ka = Ue, Me = bl, Yl = Rl, Xl = Qe, et = ka("%WeakMap%", !0), tt = ka("%Map%
5029
5035
  }, Ta = function(e, t) {
5030
5036
  return e && typeof e == "string" && t.comma && e.indexOf(",") > -1 ? e.split(",") : e;
5031
5037
  }, Ec = "utf8=%26%2310003%3B", Rc = "utf8=%E2%9C%93", Ac = function(t, n) {
5032
- var a = { __proto__: null }, s = n.ignoreQueryPrefix ? t.replace(/^\?/, "") : t, o = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit, r = s.split(n.delimiter, o), i = -1, l, c = n.charset;
5038
+ var a = { __proto__: null }, i = n.ignoreQueryPrefix ? t.replace(/^\?/, "") : t, o = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit, r = i.split(n.delimiter, o), s = -1, l, c = n.charset;
5033
5039
  if (n.charsetSentinel)
5034
5040
  for (l = 0; l < r.length; ++l)
5035
- r[l].indexOf("utf8=") === 0 && (r[l] === Rc ? c = "utf-8" : r[l] === Ec && (c = "iso-8859-1"), i = l, l = r.length);
5041
+ r[l].indexOf("utf8=") === 0 && (r[l] === Rc ? c = "utf-8" : r[l] === Ec && (c = "iso-8859-1"), s = l, l = r.length);
5036
5042
  for (l = 0; l < r.length; ++l)
5037
- if (l !== i) {
5043
+ if (l !== s) {
5038
5044
  var u = r[l], p = u.indexOf("]="), d = p === -1 ? u.indexOf("=") : p + 1, m, h;
5039
5045
  d === -1 ? (m = n.decoder(u, M.decoder, c, "key"), h = n.strictNullHandling ? null : "") : (m = n.decoder(u.slice(0, d), M.decoder, c, "key"), h = Le.maybeMap(
5040
5046
  Ta(u.slice(d + 1), n),
@@ -5047,32 +5053,32 @@ var ka = Ue, Me = bl, Yl = Rl, Xl = Qe, et = ka("%WeakMap%", !0), tt = ka("%Map%
5047
5053
  }
5048
5054
  return a;
5049
5055
  }, Fc = function(e, t, n, a) {
5050
- for (var s = a ? t : Ta(t, n), o = e.length - 1; o >= 0; --o) {
5051
- var r, i = e[o];
5052
- if (i === "[]" && n.parseArrays)
5053
- r = n.allowEmptyArrays && s === "" ? [] : [].concat(s);
5056
+ for (var i = a ? t : Ta(t, n), o = e.length - 1; o >= 0; --o) {
5057
+ var r, s = e[o];
5058
+ if (s === "[]" && n.parseArrays)
5059
+ r = n.allowEmptyArrays && i === "" ? [] : [].concat(i);
5054
5060
  else {
5055
5061
  r = n.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
5056
- var l = i.charAt(0) === "[" && i.charAt(i.length - 1) === "]" ? i.slice(1, -1) : i, c = n.decodeDotInKeys ? l.replace(/%2E/g, ".") : l, u = parseInt(c, 10);
5057
- !n.parseArrays && c === "" ? r = { 0: s } : !isNaN(u) && i !== c && String(u) === c && u >= 0 && n.parseArrays && u <= n.arrayLimit ? (r = [], r[u] = s) : c !== "__proto__" && (r[c] = s);
5062
+ var l = s.charAt(0) === "[" && s.charAt(s.length - 1) === "]" ? s.slice(1, -1) : s, c = n.decodeDotInKeys ? l.replace(/%2E/g, ".") : l, u = parseInt(c, 10);
5063
+ !n.parseArrays && c === "" ? r = { 0: i } : !isNaN(u) && s !== c && String(u) === c && u >= 0 && n.parseArrays && u <= n.arrayLimit ? (r = [], r[u] = i) : c !== "__proto__" && (r[c] = i);
5058
5064
  }
5059
- s = r;
5065
+ i = r;
5060
5066
  }
5061
- return s;
5062
- }, qc = function(t, n, a, s) {
5067
+ return i;
5068
+ }, qc = function(t, n, a, i) {
5063
5069
  if (t) {
5064
- var o = a.allowDots ? t.replace(/\.([^.[]+)/g, "[$1]") : t, r = /(\[[^[\]]*])/, i = /(\[[^[\]]*])/g, l = a.depth > 0 && r.exec(o), c = l ? o.slice(0, l.index) : o, u = [];
5070
+ var o = a.allowDots ? t.replace(/\.([^.[]+)/g, "[$1]") : t, r = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, l = a.depth > 0 && r.exec(o), c = l ? o.slice(0, l.index) : o, u = [];
5065
5071
  if (c) {
5066
5072
  if (!a.plainObjects && Gt.call(Object.prototype, c) && !a.allowPrototypes)
5067
5073
  return;
5068
5074
  u.push(c);
5069
5075
  }
5070
- for (var p = 0; a.depth > 0 && (l = i.exec(o)) !== null && p < a.depth; ) {
5076
+ for (var p = 0; a.depth > 0 && (l = s.exec(o)) !== null && p < a.depth; ) {
5071
5077
  if (p += 1, !a.plainObjects && Gt.call(Object.prototype, l[1].slice(1, -1)) && !a.allowPrototypes)
5072
5078
  return;
5073
5079
  u.push(l[1]);
5074
5080
  }
5075
- return l && u.push("[" + o.slice(l.index) + "]"), Fc(u, n, a, s);
5081
+ return l && u.push("[" + o.slice(l.index) + "]"), Fc(u, n, a, i);
5076
5082
  }
5077
5083
  }, Ic = function(t) {
5078
5084
  if (!t)
@@ -5088,9 +5094,9 @@ var ka = Ue, Me = bl, Yl = Rl, Xl = Qe, et = ka("%WeakMap%", !0), tt = ka("%Map%
5088
5094
  var n = typeof t.charset > "u" ? M.charset : t.charset, a = typeof t.duplicates > "u" ? M.duplicates : t.duplicates;
5089
5095
  if (a !== "combine" && a !== "first" && a !== "last")
5090
5096
  throw new TypeError("The duplicates option must be either combine, first, or last");
5091
- var s = typeof t.allowDots > "u" ? t.decodeDotInKeys === !0 ? !0 : M.allowDots : !!t.allowDots;
5097
+ var i = typeof t.allowDots > "u" ? t.decodeDotInKeys === !0 ? !0 : M.allowDots : !!t.allowDots;
5092
5098
  return {
5093
- allowDots: s,
5099
+ allowDots: i,
5094
5100
  allowEmptyArrays: typeof t.allowEmptyArrays == "boolean" ? !!t.allowEmptyArrays : M.allowEmptyArrays,
5095
5101
  allowPrototypes: typeof t.allowPrototypes == "boolean" ? t.allowPrototypes : M.allowPrototypes,
5096
5102
  allowSparse: typeof t.allowSparse == "boolean" ? t.allowSparse : M.allowSparse,
@@ -5115,11 +5121,11 @@ var ka = Ue, Me = bl, Yl = Rl, Xl = Qe, et = ka("%WeakMap%", !0), tt = ka("%Map%
5115
5121
  var n = Ic(t);
5116
5122
  if (e === "" || e === null || typeof e > "u")
5117
5123
  return n.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
5118
- for (var a = typeof e == "string" ? Ac(e, n) : e, s = n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = Object.keys(a), r = 0; r < o.length; ++r) {
5119
- var i = o[r], l = qc(i, a[i], n, typeof e == "string");
5120
- s = Le.merge(s, l, n);
5124
+ for (var a = typeof e == "string" ? Ac(e, n) : e, i = n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = Object.keys(a), r = 0; r < o.length; ++r) {
5125
+ var s = o[r], l = qc(s, a[s], n, typeof e == "string");
5126
+ i = Le.merge(i, l, n);
5121
5127
  }
5122
- return n.allowSparse === !0 ? s : Le.compact(s);
5128
+ return n.allowSparse === !0 ? i : Le.compact(i);
5123
5129
  }, Lc = Oc, Uc = _c, Mc = vn, ct = {
5124
5130
  formats: Mc,
5125
5131
  parse: Uc,
@@ -5182,36 +5188,36 @@ function bn(e, t, n) {
5182
5188
  oe.prototype.parse = function(e, t, n) {
5183
5189
  if (typeof e != "string")
5184
5190
  throw new TypeError("Parameter 'url' must be a string, not " + typeof e);
5185
- var a = e.indexOf("?"), s = a !== -1 && a < e.indexOf("#") ? "?" : "#", o = e.split(s), r = /\\/g;
5186
- o[0] = o[0].replace(r, "/"), e = o.join(s);
5187
- var i = e;
5188
- if (i = i.trim(), !n && e.split("#").length === 1) {
5189
- var l = Vc.exec(i);
5191
+ var a = e.indexOf("?"), i = a !== -1 && a < e.indexOf("#") ? "?" : "#", o = e.split(i), r = /\\/g;
5192
+ o[0] = o[0].replace(r, "/"), e = o.join(i);
5193
+ var s = e;
5194
+ if (s = s.trim(), !n && e.split("#").length === 1) {
5195
+ var l = Vc.exec(s);
5190
5196
  if (l)
5191
- return this.path = i, this.href = i, this.pathname = l[1], l[2] ? (this.search = l[2], t ? this.query = Yt.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : t && (this.search = "", this.query = {}), this;
5197
+ return this.path = s, this.href = s, this.pathname = l[1], l[2] ? (this.search = l[2], t ? this.query = Yt.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : t && (this.search = "", this.query = {}), this;
5192
5198
  }
5193
- var c = Bc.exec(i);
5199
+ var c = Bc.exec(s);
5194
5200
  if (c) {
5195
5201
  c = c[0];
5196
5202
  var u = c.toLowerCase();
5197
- this.protocol = u, i = i.substr(c.length);
5203
+ this.protocol = u, s = s.substr(c.length);
5198
5204
  }
5199
- if (n || c || i.match(/^\/\/[^@/]+@[^@/]+/)) {
5200
- var p = i.substr(0, 2) === "//";
5201
- p && !(c && Qt[c]) && (i = i.substr(2), this.slashes = !0);
5205
+ if (n || c || s.match(/^\/\/[^@/]+@[^@/]+/)) {
5206
+ var p = s.substr(0, 2) === "//";
5207
+ p && !(c && Qt[c]) && (s = s.substr(2), this.slashes = !0);
5202
5208
  }
5203
5209
  if (!Qt[c] && (p || c && !qe[c])) {
5204
5210
  for (var d = -1, m = 0; m < sr.length; m++) {
5205
- var h = i.indexOf(sr[m]);
5211
+ var h = s.indexOf(sr[m]);
5206
5212
  h !== -1 && (d === -1 || h < d) && (d = h);
5207
5213
  }
5208
5214
  var y, v;
5209
- d === -1 ? v = i.lastIndexOf("@") : v = i.lastIndexOf("@", d), v !== -1 && (y = i.slice(0, v), i = i.slice(v + 1), this.auth = decodeURIComponent(y)), d = -1;
5215
+ d === -1 ? v = s.lastIndexOf("@") : v = s.lastIndexOf("@", d), v !== -1 && (y = s.slice(0, v), s = s.slice(v + 1), this.auth = decodeURIComponent(y)), d = -1;
5210
5216
  for (var m = 0; m < ir.length; m++) {
5211
- var h = i.indexOf(ir[m]);
5217
+ var h = s.indexOf(ir[m]);
5212
5218
  h !== -1 && (d === -1 || h < d) && (d = h);
5213
5219
  }
5214
- d === -1 && (d = i.length), this.host = i.slice(0, d), i = i.slice(d), this.parseHost(), this.hostname = this.hostname || "";
5220
+ d === -1 && (d = s.length), this.host = s.slice(0, d), s = s.slice(d), this.parseHost(), this.hostname = this.hostname || "";
5215
5221
  var b = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
5216
5222
  if (!b)
5217
5223
  for (var g = this.hostname.split(/\./), m = 0, x = g.length; m < x; m++) {
@@ -5221,27 +5227,27 @@ oe.prototype.parse = function(e, t, n) {
5221
5227
  w.charCodeAt(k) > 127 ? S += "x" : S += w[k];
5222
5228
  if (!S.match(lr)) {
5223
5229
  var P = g.slice(0, m), R = g.slice(m + 1), I = w.match(Gc);
5224
- I && (P.push(I[1]), R.unshift(I[2])), R.length && (i = "/" + R.join(".") + i), this.hostname = P.join(".");
5230
+ I && (P.push(I[1]), R.unshift(I[2])), R.length && (s = "/" + R.join(".") + s), this.hostname = P.join(".");
5225
5231
  break;
5226
5232
  }
5227
5233
  }
5228
5234
  }
5229
5235
  this.hostname.length > Jc ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), b || (this.hostname = Hc.toASCII(this.hostname));
5230
5236
  var W = this.port ? ":" + this.port : "", A = this.hostname || "";
5231
- this.host = A + W, this.href += this.host, b && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), i[0] !== "/" && (i = "/" + i));
5237
+ this.host = A + W, this.href += this.host, b && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), s[0] !== "/" && (s = "/" + s));
5232
5238
  }
5233
5239
  if (!Kc[u])
5234
5240
  for (var m = 0, x = Kt.length; m < x; m++) {
5235
5241
  var _ = Kt[m];
5236
- if (i.indexOf(_) !== -1) {
5242
+ if (s.indexOf(_) !== -1) {
5237
5243
  var H = encodeURIComponent(_);
5238
- H === _ && (H = escape(_)), i = i.split(_).join(H);
5244
+ H === _ && (H = escape(_)), s = s.split(_).join(H);
5239
5245
  }
5240
5246
  }
5241
- var X = i.indexOf("#");
5242
- X !== -1 && (this.hash = i.substr(X), i = i.slice(0, X));
5243
- var ee = i.indexOf("?");
5244
- if (ee !== -1 ? (this.search = i.substr(ee), this.query = i.substr(ee + 1), t && (this.query = Yt.parse(this.query)), i = i.slice(0, ee)) : t && (this.search = "", this.query = {}), i && (this.pathname = i), qe[u] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
5247
+ var X = s.indexOf("#");
5248
+ X !== -1 && (this.hash = s.substr(X), s = s.slice(0, X));
5249
+ var ee = s.indexOf("?");
5250
+ if (ee !== -1 ? (this.search = s.substr(ee), this.query = s.substr(ee + 1), t && (this.query = Yt.parse(this.query)), s = s.slice(0, ee)) : t && (this.search = "", this.query = {}), s && (this.pathname = s), qe[u] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
5245
5251
  var W = this.pathname || "", he = this.search || "";
5246
5252
  this.path = W + he;
5247
5253
  }
@@ -5253,15 +5259,15 @@ function Qc(e) {
5253
5259
  oe.prototype.format = function() {
5254
5260
  var e = this.auth || "";
5255
5261
  e && (e = encodeURIComponent(e), e = e.replace(/%3A/i, ":"), e += "@");
5256
- var t = this.protocol || "", n = this.pathname || "", a = this.hash || "", s = !1, o = "";
5257
- this.host ? s = e + this.host : this.hostname && (s = e + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (s += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (o = Yt.stringify(this.query, {
5262
+ var t = this.protocol || "", n = this.pathname || "", a = this.hash || "", i = !1, o = "";
5263
+ this.host ? i = e + this.host : this.hostname && (i = e + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (i += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (o = Yt.stringify(this.query, {
5258
5264
  arrayFormat: "repeat",
5259
5265
  addQueryPrefix: !1
5260
5266
  }));
5261
5267
  var r = this.search || o && "?" + o || "";
5262
- return t && t.substr(-1) !== ":" && (t += ":"), this.slashes || (!t || qe[t]) && s !== !1 ? (s = "//" + (s || ""), n && n.charAt(0) !== "/" && (n = "/" + n)) : s || (s = ""), a && a.charAt(0) !== "#" && (a = "#" + a), r && r.charAt(0) !== "?" && (r = "?" + r), n = n.replace(/[?#]/g, function(i) {
5263
- return encodeURIComponent(i);
5264
- }), r = r.replace("#", "%23"), t + s + n + r + a;
5268
+ return t && t.substr(-1) !== ":" && (t += ":"), this.slashes || (!t || qe[t]) && i !== !1 ? (i = "//" + (i || ""), n && n.charAt(0) !== "/" && (n = "/" + n)) : i || (i = ""), a && a.charAt(0) !== "#" && (a = "#" + a), r && r.charAt(0) !== "?" && (r = "?" + r), n = n.replace(/[?#]/g, function(s) {
5269
+ return encodeURIComponent(s);
5270
+ }), r = r.replace("#", "%23"), t + i + n + r + a;
5265
5271
  };
5266
5272
  oe.prototype.resolve = function(e) {
5267
5273
  return this.resolveObject(bn(e, !1, !0)).format();
@@ -5271,15 +5277,15 @@ oe.prototype.resolveObject = function(e) {
5271
5277
  var t = new oe();
5272
5278
  t.parse(e, !1, !0), e = t;
5273
5279
  }
5274
- for (var n = new oe(), a = Object.keys(this), s = 0; s < a.length; s++) {
5275
- var o = a[s];
5280
+ for (var n = new oe(), a = Object.keys(this), i = 0; i < a.length; i++) {
5281
+ var o = a[i];
5276
5282
  n[o] = this[o];
5277
5283
  }
5278
5284
  if (n.hash = e.hash, e.href === "")
5279
5285
  return n.href = n.format(), n;
5280
5286
  if (e.slashes && !e.protocol) {
5281
- for (var r = Object.keys(e), i = 0; i < r.length; i++) {
5282
- var l = r[i];
5287
+ for (var r = Object.keys(e), s = 0; s < r.length; s++) {
5288
+ var l = r[s];
5283
5289
  l !== "protocol" && (n[l] = e[l]);
5284
5290
  }
5285
5291
  return qe[n.protocol] && n.hostname && !n.pathname && (n.pathname = "/", n.path = n.pathname), n.href = n.format(), n;
@@ -5429,7 +5435,7 @@ var Yc = bn, cr = Qc, Xc = (e) => typeof e == "object" && "log" in e && typeof e
5429
5435
  }
5430
5436
  break;
5431
5437
  }
5432
- const s = {
5438
+ const i = {
5433
5439
  ...n.allHeaders,
5434
5440
  ...n.headersObj
5435
5441
  }, o = Yc(n.url, !0, !0);
@@ -5444,7 +5450,7 @@ var Yc = bn, cr = Qc, Xc = (e) => typeof e == "object" && "log" in e && typeof e
5444
5450
  }) : r = ct.stringify(n.queryObj, {
5445
5451
  indices: !1
5446
5452
  });
5447
- const i = {
5453
+ const s = {
5448
5454
  ...o,
5449
5455
  query: n.queryObj,
5450
5456
  search: r,
@@ -5455,14 +5461,14 @@ var Yc = bn, cr = Qc, Xc = (e) => typeof e == "object" && "log" in e && typeof e
5455
5461
  search: null
5456
5462
  }), c = cr({
5457
5463
  ...o,
5458
- ...i
5464
+ ...s
5459
5465
  });
5460
5466
  return {
5461
5467
  ...n,
5462
- allHeaders: s,
5468
+ allHeaders: i,
5463
5469
  fullUrl: c,
5464
5470
  url: l,
5465
- uriObj: i
5471
+ uriObj: s
5466
5472
  };
5467
5473
  }
5468
5474
  convert(e, t, n) {
@@ -5470,8 +5476,8 @@ var Yc = bn, cr = Qc, Xc = (e) => typeof e == "object" && "log" in e && typeof e
5470
5476
  const a = $s[e];
5471
5477
  if (!a)
5472
5478
  return !1;
5473
- const { convert: s } = a.clientsById[t || a.info.default];
5474
- return this.requests.map((r) => s(r, n));
5479
+ const { convert: i } = a.clientsById[t || a.info.default];
5480
+ return this.requests.map((r) => i(r, n));
5475
5481
  }
5476
5482
  };
5477
5483
  const Oa = io(
@@ -5485,7 +5491,7 @@ const Oa = io(
5485
5491
  server: e,
5486
5492
  operation: t
5487
5493
  }) => {
5488
- var o, r, i;
5494
+ var o, r, s;
5489
5495
  const n = (o = t.parameters) == null ? void 0 : o.filter((l) => l.in === "header").map((l) => {
5490
5496
  var c, u;
5491
5497
  return {
@@ -5496,7 +5502,7 @@ const Oa = io(
5496
5502
  name: l.name,
5497
5503
  defaultActive: l.required ?? !1,
5498
5504
  isRequired: l.required ?? !1
5499
- })), s = (i = t.parameters) == null ? void 0 : i.filter((l) => l.in === "path").map((l) => ({ name: l.name }));
5505
+ })), i = (s = t.parameters) == null ? void 0 : s.filter((l) => l.in === "path").map((l) => ({ name: l.name }));
5500
5506
  return /* @__PURE__ */ f.jsx(
5501
5507
  aa,
5502
5508
  {
@@ -5505,7 +5511,7 @@ const Oa = io(
5505
5511
  url: t.path,
5506
5512
  headers: n,
5507
5513
  queryParams: a,
5508
- pathParams: s
5514
+ pathParams: i
5509
5515
  }
5510
5516
  );
5511
5517
  }, xn = ({ children: e, className: t }) => /* @__PURE__ */ f.jsx(
@@ -5548,9 +5554,9 @@ function ru(e, t) {
5548
5554
  );
5549
5555
  if (e.type === "object" && n.length > 0) {
5550
5556
  const a = {};
5551
- return n.forEach(([s, o]) => {
5557
+ return n.forEach(([i, o]) => {
5552
5558
  const r = Je(o);
5553
- r !== void 0 && (a[s] = r);
5559
+ r !== void 0 && (a[i] = r);
5554
5560
  }), a;
5555
5561
  } else if (e.type === "array" && e.items) {
5556
5562
  const a = Je(e.items);
@@ -5587,28 +5593,28 @@ const au = ({ content: e }) => {
5587
5593
  {
5588
5594
  defaultValue: (a = e[0]) == null ? void 0 : a.statusCode,
5589
5595
  value: t,
5590
- onValueChange: (s) => n(s),
5596
+ onValueChange: (i) => n(i),
5591
5597
  children: [
5592
5598
  /* @__PURE__ */ f.jsxs(kn, { className: "text-xs flex flex-col gap-2 pb-0", children: [
5593
5599
  /* @__PURE__ */ f.jsx("span", { className: "font-mono", children: "Example Responses" }),
5594
- /* @__PURE__ */ f.jsx(sn, { className: "flex gap-2", children: e.map((s) => /* @__PURE__ */ f.jsx(
5600
+ /* @__PURE__ */ f.jsx(sn, { className: "flex gap-2", children: e.map((i) => /* @__PURE__ */ f.jsx(
5595
5601
  ln,
5596
5602
  {
5597
- value: s.statusCode,
5603
+ value: i.statusCode,
5598
5604
  className: q(
5599
5605
  "text-xs font-mono px-1.5 py-1 pb-px translate-y-px border-b-2 border-transparent rounded-t cursor-pointer",
5600
5606
  "data-[state=active]:text-primary data-[state=active]:dark:text-inherit data-[state=active]:border-primary",
5601
5607
  "hover:border-accent-foreground/25"
5602
5608
  ),
5603
- children: s.statusCode
5609
+ children: i.statusCode
5604
5610
  },
5605
- s.statusCode
5611
+ i.statusCode
5606
5612
  )) })
5607
5613
  ] }),
5608
- e.map((s) => {
5609
- var r, i;
5610
- const o = (i = (r = s.content) == null ? void 0 : r[0]) == null ? void 0 : i.schema;
5611
- return /* @__PURE__ */ f.jsxs(cn, { value: s.statusCode, children: [
5614
+ e.map((i) => {
5615
+ var r, s;
5616
+ const o = (s = (r = i.content) == null ? void 0 : r[0]) == null ? void 0 : s.schema;
5617
+ return /* @__PURE__ */ f.jsxs(cn, { value: i.statusCode, children: [
5612
5618
  /* @__PURE__ */ f.jsx($n, { children: o ? /* @__PURE__ */ f.jsx(
5613
5619
  Ke,
5614
5620
  {
@@ -5618,8 +5624,8 @@ const au = ({ content: e }) => {
5618
5624
  code: JSON.stringify(Je(o), null, 2)
5619
5625
  }
5620
5626
  ) : /* @__PURE__ */ f.jsx("span", { className: "text-muted-foreground font-mono italic text-xs", children: "Empty Response" }) }),
5621
- /* @__PURE__ */ f.jsx(Ca, { className: "flex justify-end text-xs", children: s.description })
5622
- ] }, s.statusCode);
5627
+ /* @__PURE__ */ f.jsx(Ca, { className: "flex justify-end text-xs", children: i.description })
5628
+ ] }, i.statusCode);
5623
5629
  })
5624
5630
  ]
5625
5631
  }
@@ -5689,11 +5695,11 @@ const au = ({ content: e }) => {
5689
5695
  onSelectResponse: n
5690
5696
  }) => {
5691
5697
  var m, h;
5692
- const a = eu(), [s] = Ea({
5698
+ const a = eu(), [i] = Ea({
5693
5699
  query: Pa,
5694
5700
  variables: a,
5695
5701
  context: su
5696
- }), o = lu[e.method.toLocaleLowerCase()] ?? pe.gray, [r, i] = ho(), [, l] = lo(), c = r.get("lang") ?? "shell", u = (m = e.requestBody) == null ? void 0 : m.content, p = e.path.split("/").map((y, v, b) => {
5702
+ }), o = lu[e.method.toLocaleLowerCase()] ?? pe.gray, [r, s] = ho(), [, l] = lo(), c = r.get("lang") ?? "shell", u = (m = e.requestBody) == null ? void 0 : m.content, p = e.path.split("/").map((y, v, b) => {
5697
5703
  const x = y.startsWith("{") && y.endsWith("}") || y.startsWith(":") ? y.replace(/[:{}]/g, "") : void 0;
5698
5704
  return (
5699
5705
  // eslint-disable-next-line react/no-array-index-key
@@ -5715,7 +5721,7 @@ const au = ({ content: e }) => {
5715
5721
  var b, g;
5716
5722
  const y = (b = u == null ? void 0 : u[0]) != null && b.schema ? Je(u[0].schema) : void 0, v = new Zc({
5717
5723
  method: e.method.toLocaleUpperCase(),
5718
- url: (((g = s.data) == null ? void 0 : g.schema.url) ?? "") + e.path.replaceAll("{", ":").replaceAll("}", ""),
5724
+ url: (((g = i.data) == null ? void 0 : g.schema.url) ?? "") + e.path.replaceAll("{", ":").replaceAll("}", ""),
5719
5725
  postData: y ? {
5720
5726
  text: JSON.stringify(y, null, 2),
5721
5727
  mimeType: "application/json"
@@ -5740,7 +5746,7 @@ const au = ({ content: e }) => {
5740
5746
  /* @__PURE__ */ f.jsx(
5741
5747
  tu,
5742
5748
  {
5743
- server: ((h = s.data) == null ? void 0 : h.schema.url) ?? "",
5749
+ server: ((h = i.data) == null ? void 0 : h.schema.url) ?? "",
5744
5750
  operation: e
5745
5751
  }
5746
5752
  )
@@ -5763,7 +5769,7 @@ const au = ({ content: e }) => {
5763
5769
  value: c,
5764
5770
  onChange: (y) => {
5765
5771
  l(() => {
5766
- i({ lang: y.target.value });
5772
+ s({ lang: y.target.value });
5767
5773
  });
5768
5774
  },
5769
5775
  options: [
@@ -5845,10 +5851,10 @@ const au = ({ content: e }) => {
5845
5851
  getMdxComponents: () => ({
5846
5852
  OpenPlaygroundButton: ({
5847
5853
  requireAuth: a,
5848
- server: s,
5854
+ server: i,
5849
5855
  method: o,
5850
5856
  url: r,
5851
- ...i
5857
+ ...s
5852
5858
  }) => {
5853
5859
  var u;
5854
5860
  const l = za(), c = Ia({
@@ -5856,7 +5862,7 @@ const au = ({ content: e }) => {
5856
5862
  type: e.type,
5857
5863
  input: e.input
5858
5864
  })).data,
5859
- enabled: !s,
5865
+ enabled: !i,
5860
5866
  queryKey: ["playground-server"]
5861
5867
  });
5862
5868
  return a && !l.isAuthenticated ? /* @__PURE__ */ f.jsxs(
@@ -5875,8 +5881,8 @@ const au = ({ content: e }) => {
5875
5881
  {
5876
5882
  url: r ?? "/",
5877
5883
  method: o ?? "get",
5878
- server: s ?? ((u = c.data) == null ? void 0 : u.schema.url) ?? "https://example.com",
5879
- ...i,
5884
+ server: i ?? ((u = c.data) == null ? void 0 : u.schema.url) ?? "https://example.com",
5885
+ ...s,
5880
5886
  children: /* @__PURE__ */ f.jsxs(Ne, { className: "gap-2 items-center", variant: "outline", children: [
5881
5887
  "Open in Playground ",
5882
5888
  /* @__PURE__ */ f.jsx(bo, { size: 16 })
@@ -5888,23 +5894,23 @@ const au = ({ content: e }) => {
5888
5894
  getSidebar: async (a) => {
5889
5895
  if (!go({ path: t, end: !1 }, a))
5890
5896
  return [];
5891
- const { data: s } = await n.query(cu, {
5897
+ const { data: i } = await n.query(cu, {
5892
5898
  input: e.input,
5893
5899
  type: e.type
5894
5900
  });
5895
- if (!s) return [];
5896
- const o = s.schema.tags.filter((r) => r.operations.length > 0).map((r) => ({
5901
+ if (!i) return [];
5902
+ const o = i.schema.tags.filter((r) => r.operations.length > 0).map((r) => ({
5897
5903
  type: "category",
5898
- label: r.name ?? "",
5904
+ label: r.name || "Other endpoints",
5899
5905
  collapsible: !0,
5900
5906
  collapsed: !1,
5901
- items: r.operations.map((i) => ({
5907
+ items: r.operations.map((s) => ({
5902
5908
  type: "link",
5903
- label: i.summary ?? i.path,
5904
- href: `#${i.slug}`,
5909
+ label: s.summary ?? s.path,
5910
+ href: `#${s.slug}`,
5905
5911
  badge: {
5906
- label: i.method,
5907
- color: du[i.method.toLowerCase()]
5912
+ label: s.method,
5913
+ color: du[s.method.toLowerCase()]
5908
5914
  }
5909
5915
  }))
5910
5916
  }));
@@ -5917,7 +5923,7 @@ const au = ({ content: e }) => {
5917
5923
  getRoutes: () => [
5918
5924
  {
5919
5925
  async lazy() {
5920
- const { OpenApiRoute: a } = await import("./Route-Dz_g9UaG.js");
5926
+ const { OpenApiRoute: a } = await import("./Route-BvREOAN6.js");
5921
5927
  return {
5922
5928
  element: /* @__PURE__ */ f.jsx(a, { client: n, config: e })
5923
5929
  };
@@ -5930,7 +5936,7 @@ const au = ({ content: e }) => {
5930
5936
  {
5931
5937
  index: !0,
5932
5938
  async lazy() {
5933
- const { OperationList: a } = await import("./OperationList-DzCDNF6G.js");
5939
+ const { OperationList: a } = await import("./OperationList-BEiJFfFr.js");
5934
5940
  return { element: /* @__PURE__ */ f.jsx(a, {}) };
5935
5941
  }
5936
5942
  }
@@ -5957,4 +5963,4 @@ export {
5957
5963
  Ru as o,
5958
5964
  eu as u
5959
5965
  };
5960
- //# sourceMappingURL=index-D4AiMx6N.js.map
5966
+ //# sourceMappingURL=index-ClDFRC39.js.map