zudoku 0.3.1-dev.9 → 0.4.1-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/dist/config/config.d.ts +0 -3
- package/dist/lib/authentication/authentication.d.ts +1 -0
- package/dist/lib/authentication/components/CallbackHandler.d.ts +3 -0
- package/dist/lib/authentication/components/CallbackHandler.js +34 -0
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -0
- package/dist/lib/authentication/providers/auth0.js +11 -6
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +4 -13
- package/dist/lib/authentication/providers/openid.js +50 -49
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/components/Header.js +2 -4
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Layout.js +5 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/context/ZudokuProvider.js +1 -3
- package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
- package/dist/lib/core/DevPortalContext.d.ts +1 -4
- package/dist/lib/core/DevPortalContext.js +2 -2
- package/dist/lib/core/DevPortalContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +2 -4
- package/dist/lib/core/plugins.js.map +1 -1
- package/lib/{AuthenticationPlugin-CH5NSVOu.js → AuthenticationPlugin-owbEUimP.js} +3 -3
- package/lib/{AuthenticationPlugin-CH5NSVOu.js.map → AuthenticationPlugin-owbEUimP.js.map} +1 -1
- package/lib/{CategoryHeading-z15xh7Jb.js → CategoryHeading-DnPprxtD.js} +2 -2
- package/lib/{CategoryHeading-z15xh7Jb.js.map → CategoryHeading-DnPprxtD.js.map} +1 -1
- package/lib/{Combination-DTfV-c98.js → Combination-DruV0zX_.js} +3 -3
- package/lib/{Combination-DTfV-c98.js.map → Combination-DruV0zX_.js.map} +1 -1
- package/lib/ErrorPage-PUg985n_.js +18 -0
- package/lib/ErrorPage-PUg985n_.js.map +1 -0
- package/lib/{Input-CzXNm7xb.js → Input-CBfi9Yjc.js} +4 -4
- package/lib/{Input-CzXNm7xb.js.map → Input-CBfi9Yjc.js.map} +1 -1
- package/lib/{Markdown-CEccPMI_.js → Markdown-Chb9VIBv.js} +2 -2
- package/lib/{Markdown-CEccPMI_.js.map → Markdown-Chb9VIBv.js.map} +1 -1
- package/lib/{MdxPage-CnqOoqvp.js → MdxPage-CIBHMwTd.js} +5 -5
- package/lib/{MdxPage-CnqOoqvp.js.map → MdxPage-CIBHMwTd.js.map} +1 -1
- package/lib/{OperationList-CYyaboNz.js → OperationList-CZiSz5JH.js} +24 -23
- package/lib/{OperationList-CYyaboNz.js.map → OperationList-CZiSz5JH.js.map} +1 -1
- package/lib/{Route-C3Jb0axy.js → Route-Cle-r-bq.js} +4 -4
- package/lib/{Route-C3Jb0axy.js.map → Route-Cle-r-bq.js.map} +1 -1
- package/lib/{Spinner-BT_AYFrA.js → SidebarBadge-Ba0PhibA.js} +66 -76
- package/lib/SidebarBadge-Ba0PhibA.js.map +1 -0
- package/lib/{SlotletProvider-ByLSCZQa.js → SlotletProvider-Dq80og6-.js} +4 -4
- package/lib/{SlotletProvider-ByLSCZQa.js.map → SlotletProvider-Dq80og6-.js.map} +1 -1
- package/lib/Spinner-CvXZ7QK4.js +15 -0
- package/lib/Spinner-CvXZ7QK4.js.map +1 -0
- package/lib/{ZudokuContext-BIZ8zHbZ.js → ZudokuContext-BQ45UjcB.js} +2 -2
- package/lib/{ZudokuContext-BIZ8zHbZ.js.map → ZudokuContext-BQ45UjcB.js.map} +1 -1
- package/lib/{index-B1he6g8N.js → index-Br1MQPxy.js} +455 -465
- package/lib/index-Br1MQPxy.js.map +1 -0
- package/lib/{index-Dz4LyXZI.js → index-DCJ9wEIV.js} +3 -3
- package/lib/{index-Dz4LyXZI.js.map → index-DCJ9wEIV.js.map} +1 -1
- package/lib/{index-7kcHaXD6.js → index-Yjb2PyPF.js} +4 -4
- package/lib/{index-7kcHaXD6.js.map → index-Yjb2PyPF.js.map} +1 -1
- package/lib/{urql-DrBfkb92.js → urql-YhcsXYy8.js} +2 -2
- package/lib/urql-YhcsXYy8.js.map +1 -0
- package/lib/{utils-Bh4upQ0e.js → utils-pDHePxa0.js} +3 -3
- package/lib/{utils-Bh4upQ0e.js.map → utils-pDHePxa0.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +24 -22
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +527 -469
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +434 -443
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +1 -1
- package/lib/zudoku.plugin-api-keys.js +6 -6
- package/lib/zudoku.plugin-custom-page.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +8 -7
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/package.json +80 -100
- package/src/lib/authentication/authentication.ts +1 -0
- package/src/lib/authentication/components/CallbackHandler.tsx +59 -0
- package/src/lib/authentication/providers/auth0.tsx +13 -7
- package/src/lib/authentication/providers/openid.tsx +56 -58
- package/src/lib/components/Header.tsx +3 -10
- package/src/lib/components/Layout.tsx +6 -1
- package/src/lib/components/context/ZudokuProvider.tsx +1 -4
- package/src/lib/core/DevPortalContext.ts +2 -7
- package/src/lib/core/plugins.ts +1 -2
- package/lib/Spinner-BT_AYFrA.js.map +0 -1
- package/lib/index-B1he6g8N.js.map +0 -1
- package/lib/urql-DrBfkb92.js.map +0 -1
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { j as f } from "./jsx-runtime-B6kdoens.js";
|
|
2
|
-
import { u as Pa, C as Ea, c as Ra, f as Aa } from "./urql-
|
|
3
|
-
import { v as Fa, w as qa } from "./ZudokuContext-
|
|
2
|
+
import { u as Pa, C as Ea, c as Ra, f as Aa } from "./urql-YhcsXYy8.js";
|
|
3
|
+
import { v as Fa, w as qa } from "./ZudokuContext-BQ45UjcB.js";
|
|
4
4
|
import { createClient as Ia } from "zudoku/openapi-worker";
|
|
5
|
-
import { a as dr, u as Yt, P as me, d as be, R as _a, S as fr, h as La, e as Ua, F as Ma, D as Ha, q as Ba, m as Da, o as pr, n as rt, k as Va, B as qe, p as Wa } from "./Combination-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { g as Xt, h as Sn, C as Se, I as mr, i as to, u as no, a as ro, F as ao, S as oo, b as io, c as so, d as lo, f as wn, V as co } from "./Input-CzXNm7xb.js";
|
|
5
|
+
import { a as dr, u as Yt, P as me, d as be, R as _a, S as fr, h as La, e as Ua, F as Ma, D as Ha, q as Ba, m as Da, o as pr, n as rt, k as Va, B as qe, p as Wa } from "./Combination-DruV0zX_.js";
|
|
6
|
+
import { E as za } from "./ErrorPage-PUg985n_.js";
|
|
7
|
+
import { c as Ke, a as A, u as Ja, g as Ga, S as Qe } from "./Markdown-Chb9VIBv.js";
|
|
8
|
+
import { j as Ka } from "./joinPath-B7kNnUX4.js";
|
|
9
|
+
import { g as Xt, h as Sn, C as Se, I as mr, i as Qa, u as Ya, a as Xa, F as Za, S as eo, b as to, c as no, d as ro, f as wn, V as ao } from "./Input-CBfi9Yjc.js";
|
|
11
10
|
import * as j from "react";
|
|
12
|
-
import { useRef as hr, useEffect as yr, useState as gr, Fragment as at, createContext as
|
|
13
|
-
import { P as gt, c as vr, R as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
11
|
+
import { useRef as hr, useEffect as yr, useState as gr, Fragment as at, createContext as oo, useContext as io, useTransition as so, useMemo as lo } from "react";
|
|
12
|
+
import { P as gt, c as vr, R as co, I as uo, T as pe } from "./SidebarBadge-Ba0PhibA.js";
|
|
13
|
+
import { S as jn } from "./Spinner-CvXZ7QK4.js";
|
|
14
|
+
import { a as fo, c as ot, g as po } from "./_commonjsHelpers-BVfed4GL.js";
|
|
15
|
+
import { c as mo, g as ho } from "./index-Yjb2PyPF.js";
|
|
16
|
+
import { m as yo } from "./router-BiRCp01d.js";
|
|
16
17
|
/**
|
|
17
18
|
* @license lucide-react v0.378.0 - ISC
|
|
18
19
|
*
|
|
19
20
|
* This source code is licensed under the ISC license.
|
|
20
21
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
22
|
*/
|
|
22
|
-
const
|
|
23
|
+
const go = Ke("ChevronsUpDown", [
|
|
23
24
|
["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
|
|
24
25
|
["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
|
|
25
26
|
]);
|
|
@@ -29,7 +30,7 @@ const xo = Ke("ChevronsUpDown", [
|
|
|
29
30
|
* This source code is licensed under the ISC license.
|
|
30
31
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
32
|
*/
|
|
32
|
-
const
|
|
33
|
+
const vo = Ke("CirclePlay", [
|
|
33
34
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
34
35
|
["polygon", { points: "10 8 16 12 10 16 10 8", key: "1cimsy" }]
|
|
35
36
|
]);
|
|
@@ -56,7 +57,7 @@ const br = Ke("Eraser", [
|
|
|
56
57
|
* This source code is licensed under the ISC license.
|
|
57
58
|
* See the LICENSE file in the root directory of this source tree.
|
|
58
59
|
*/
|
|
59
|
-
const
|
|
60
|
+
const bo = Ke("LogIn", [
|
|
60
61
|
["path", { d: "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4", key: "u53s6r" }],
|
|
61
62
|
["polyline", { points: "10 17 15 12 10 7", key: "1ail0h" }],
|
|
62
63
|
["line", { x1: "15", x2: "3", y1: "12", y2: "12", key: "v6grx8" }]
|
|
@@ -70,7 +71,7 @@ const $o = Ke("LogIn", [
|
|
|
70
71
|
const xr = Ke("X", [
|
|
71
72
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
72
73
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
73
|
-
]),
|
|
74
|
+
]), xo = {
|
|
74
75
|
kind: "Document",
|
|
75
76
|
definitions: [
|
|
76
77
|
{
|
|
@@ -215,7 +216,7 @@ const xr = Ke("X", [
|
|
|
215
216
|
}
|
|
216
217
|
}
|
|
217
218
|
]
|
|
218
|
-
},
|
|
219
|
+
}, ko = {
|
|
219
220
|
kind: "Document",
|
|
220
221
|
definitions: [
|
|
221
222
|
{
|
|
@@ -459,7 +460,7 @@ const xr = Ke("X", [
|
|
|
459
460
|
}
|
|
460
461
|
}
|
|
461
462
|
]
|
|
462
|
-
},
|
|
463
|
+
}, $o = {
|
|
463
464
|
kind: "Document",
|
|
464
465
|
definitions: [
|
|
465
466
|
{
|
|
@@ -525,7 +526,7 @@ const xr = Ke("X", [
|
|
|
525
526
|
}
|
|
526
527
|
}
|
|
527
528
|
]
|
|
528
|
-
},
|
|
529
|
+
}, So = {
|
|
529
530
|
kind: "Document",
|
|
530
531
|
definitions: [
|
|
531
532
|
{
|
|
@@ -641,26 +642,16 @@ const xr = Ke("X", [
|
|
|
641
642
|
}
|
|
642
643
|
}
|
|
643
644
|
]
|
|
644
|
-
},
|
|
645
|
-
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n parameters {\n name\n in\n description\n required\n schema\n style\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n":
|
|
646
|
-
"\n query AllOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n description\n title\n url\n version\n tags {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n }\n }\n }\n":
|
|
647
|
-
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n }\n }\n":
|
|
648
|
-
"\n query GetCategories($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n __typename\n name\n operations {\n __typename\n slug\n deprecated\n method\n summary\n operationId\n path\n }\n }\n }\n }\n":
|
|
645
|
+
}, wo = {
|
|
646
|
+
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n parameters {\n name\n in\n description\n required\n schema\n style\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": xo,
|
|
647
|
+
"\n query AllOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n description\n title\n url\n version\n tags {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n }\n }\n }\n": ko,
|
|
648
|
+
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n }\n }\n": $o,
|
|
649
|
+
"\n query GetCategories($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n __typename\n name\n operations {\n __typename\n slug\n deprecated\n method\n summary\n operationId\n path\n }\n }\n }\n }\n": So
|
|
649
650
|
};
|
|
650
651
|
function kr(e) {
|
|
651
|
-
return
|
|
652
|
+
return wo[e] ?? {};
|
|
652
653
|
}
|
|
653
|
-
|
|
654
|
-
title: e = "An error occurred",
|
|
655
|
-
message: t,
|
|
656
|
-
category: n
|
|
657
|
-
}) => /* @__PURE__ */ f.jsxs("div", { className: Qa + " h-full pt-[--padding-content-top]", children: [
|
|
658
|
-
n && /* @__PURE__ */ f.jsx(Ka, { children: n }),
|
|
659
|
-
e && /* @__PURE__ */ f.jsx(Ya, { level: 1, className: "flex gap-3.5 items-center", children: e }),
|
|
660
|
-
/* @__PURE__ */ f.jsx("p", { children: t }),
|
|
661
|
-
/* @__PURE__ */ f.jsx(za, { to: "/", children: "Go back home" })
|
|
662
|
-
] });
|
|
663
|
-
var Zt = "Dialog", [$r, Ru] = dr(Zt), [Co, ie] = $r(Zt), Sr = (e) => {
|
|
654
|
+
var Zt = "Dialog", [$r, Cu] = dr(Zt), [jo, ie] = $r(Zt), Sr = (e) => {
|
|
664
655
|
const {
|
|
665
656
|
__scopeDialog: t,
|
|
666
657
|
children: n,
|
|
@@ -674,7 +665,7 @@ var Zt = "Dialog", [$r, Ru] = dr(Zt), [Co, ie] = $r(Zt), Sr = (e) => {
|
|
|
674
665
|
onChange: o
|
|
675
666
|
});
|
|
676
667
|
return /* @__PURE__ */ f.jsx(
|
|
677
|
-
|
|
668
|
+
jo,
|
|
678
669
|
{
|
|
679
670
|
scope: t,
|
|
680
671
|
triggerRef: i,
|
|
@@ -710,21 +701,21 @@ var wr = "DialogTrigger", jr = j.forwardRef(
|
|
|
710
701
|
}
|
|
711
702
|
);
|
|
712
703
|
jr.displayName = wr;
|
|
713
|
-
var en = "DialogPortal", [
|
|
704
|
+
var en = "DialogPortal", [No, Nr] = $r(en, {
|
|
714
705
|
forceMount: void 0
|
|
715
706
|
}), Tr = (e) => {
|
|
716
707
|
const { __scopeDialog: t, forceMount: n, children: a, container: s } = e, o = ie(en, t);
|
|
717
|
-
return /* @__PURE__ */ f.jsx(
|
|
708
|
+
return /* @__PURE__ */ f.jsx(No, { scope: t, forceMount: n, children: j.Children.map(a, (r) => /* @__PURE__ */ f.jsx(gt, { present: n || o.open, children: /* @__PURE__ */ f.jsx(Da, { asChild: !0, container: s, children: r }) })) });
|
|
718
709
|
};
|
|
719
710
|
Tr.displayName = en;
|
|
720
711
|
var ut = "DialogOverlay", Or = j.forwardRef(
|
|
721
712
|
(e, t) => {
|
|
722
713
|
const n = Nr(ut, e.__scopeDialog), { forceMount: a = n.forceMount, ...s } = e, o = ie(ut, e.__scopeDialog);
|
|
723
|
-
return o.modal ? /* @__PURE__ */ f.jsx(gt, { present: a || o.open, children: /* @__PURE__ */ f.jsx(
|
|
714
|
+
return o.modal ? /* @__PURE__ */ f.jsx(gt, { present: a || o.open, children: /* @__PURE__ */ f.jsx(To, { ...s, ref: t }) }) : null;
|
|
724
715
|
}
|
|
725
716
|
);
|
|
726
717
|
Or.displayName = ut;
|
|
727
|
-
var
|
|
718
|
+
var To = j.forwardRef(
|
|
728
719
|
(e, t) => {
|
|
729
720
|
const { __scopeDialog: n, ...a } = e, s = ie(ut, n);
|
|
730
721
|
return (
|
|
@@ -744,11 +735,11 @@ var Eo = j.forwardRef(
|
|
|
744
735
|
), Ne = "DialogContent", Cr = j.forwardRef(
|
|
745
736
|
(e, t) => {
|
|
746
737
|
const n = Nr(Ne, e.__scopeDialog), { forceMount: a = n.forceMount, ...s } = e, o = ie(Ne, e.__scopeDialog);
|
|
747
|
-
return /* @__PURE__ */ f.jsx(gt, { present: a || o.open, children: o.modal ? /* @__PURE__ */ f.jsx(
|
|
738
|
+
return /* @__PURE__ */ f.jsx(gt, { present: a || o.open, children: o.modal ? /* @__PURE__ */ f.jsx(Oo, { ...s, ref: t }) : /* @__PURE__ */ f.jsx(Co, { ...s, ref: t }) });
|
|
748
739
|
}
|
|
749
740
|
);
|
|
750
741
|
Cr.displayName = Ne;
|
|
751
|
-
var
|
|
742
|
+
var Oo = j.forwardRef(
|
|
752
743
|
(e, t) => {
|
|
753
744
|
const n = ie(Ne, e.__scopeDialog), a = j.useRef(null), s = Yt(t, n.contentRef, a);
|
|
754
745
|
return j.useEffect(() => {
|
|
@@ -776,7 +767,7 @@ var Ro = j.forwardRef(
|
|
|
776
767
|
}
|
|
777
768
|
);
|
|
778
769
|
}
|
|
779
|
-
),
|
|
770
|
+
), Co = j.forwardRef(
|
|
780
771
|
(e, t) => {
|
|
781
772
|
const n = ie(Ne, e.__scopeDialog), a = j.useRef(!1), s = j.useRef(!1);
|
|
782
773
|
return /* @__PURE__ */ f.jsx(
|
|
@@ -827,8 +818,8 @@ var Ro = j.forwardRef(
|
|
|
827
818
|
}
|
|
828
819
|
),
|
|
829
820
|
/* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
830
|
-
/* @__PURE__ */ f.jsx(
|
|
831
|
-
/* @__PURE__ */ f.jsx(
|
|
821
|
+
/* @__PURE__ */ f.jsx(Po, { titleId: i.titleId }),
|
|
822
|
+
/* @__PURE__ */ f.jsx(Ro, { contentRef: l, descriptionId: i.descriptionId })
|
|
832
823
|
] })
|
|
833
824
|
] });
|
|
834
825
|
}
|
|
@@ -864,11 +855,11 @@ qr.displayName = Fr;
|
|
|
864
855
|
function nn(e) {
|
|
865
856
|
return e ? "open" : "closed";
|
|
866
857
|
}
|
|
867
|
-
var Ir = "DialogTitleWarning", [
|
|
858
|
+
var Ir = "DialogTitleWarning", [Pu, _r] = Ba(Ir, {
|
|
868
859
|
contentName: Ne,
|
|
869
860
|
titleName: tn,
|
|
870
861
|
docsSlug: "dialog"
|
|
871
|
-
}),
|
|
862
|
+
}), Po = ({ titleId: e }) => {
|
|
872
863
|
const t = _r(Ir), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
873
864
|
|
|
874
865
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
@@ -877,15 +868,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
877
868
|
return j.useEffect(() => {
|
|
878
869
|
e && (document.getElementById(e) || console.error(n));
|
|
879
870
|
}, [n, e]), null;
|
|
880
|
-
},
|
|
881
|
-
const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${_r(
|
|
871
|
+
}, Eo = "DialogDescriptionWarning", Ro = ({ contentRef: e, descriptionId: t }) => {
|
|
872
|
+
const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${_r(Eo).contentName}}.`;
|
|
882
873
|
return j.useEffect(() => {
|
|
883
874
|
var o;
|
|
884
875
|
const s = (o = e.current) == null ? void 0 : o.getAttribute("aria-describedby");
|
|
885
876
|
t && s && (document.getElementById(t) || console.warn(a));
|
|
886
877
|
}, [a, e, t]), null;
|
|
887
|
-
},
|
|
888
|
-
const
|
|
878
|
+
}, Ao = Sr, Fo = jr, qo = Tr, Lr = Or, Ur = Cr, Mr = Er, Hr = Ar, Io = qr;
|
|
879
|
+
const _o = Ao, Lo = Fo, Uo = qo, Br = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
889
880
|
Lr,
|
|
890
881
|
{
|
|
891
882
|
ref: n,
|
|
@@ -897,7 +888,7 @@ const Ho = _o, Bo = Lo, Do = Uo, Br = j.forwardRef(({ className: e, ...t }, n) =
|
|
|
897
888
|
}
|
|
898
889
|
));
|
|
899
890
|
Br.displayName = Lr.displayName;
|
|
900
|
-
const Dr = j.forwardRef(({ className: e, children: t, ...n }, a) => /* @__PURE__ */ f.jsxs(
|
|
891
|
+
const Dr = j.forwardRef(({ className: e, children: t, ...n }, a) => /* @__PURE__ */ f.jsxs(Uo, { children: [
|
|
901
892
|
/* @__PURE__ */ f.jsx(Br, {}),
|
|
902
893
|
/* @__PURE__ */ f.jsxs(
|
|
903
894
|
Ur,
|
|
@@ -910,7 +901,7 @@ const Dr = j.forwardRef(({ className: e, children: t, ...n }, a) => /* @__PURE__
|
|
|
910
901
|
...n,
|
|
911
902
|
children: [
|
|
912
903
|
t,
|
|
913
|
-
/* @__PURE__ */ f.jsxs(
|
|
904
|
+
/* @__PURE__ */ f.jsxs(Io, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
914
905
|
/* @__PURE__ */ f.jsx(xr, { className: "h-4 w-4" }),
|
|
915
906
|
/* @__PURE__ */ f.jsx("span", { className: "sr-only", children: "Close" })
|
|
916
907
|
] })
|
|
@@ -931,7 +922,7 @@ const Vr = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
931
922
|
}
|
|
932
923
|
));
|
|
933
924
|
Vr.displayName = Mr.displayName;
|
|
934
|
-
const
|
|
925
|
+
const Mo = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
935
926
|
Hr,
|
|
936
927
|
{
|
|
937
928
|
ref: n,
|
|
@@ -939,7 +930,7 @@ const Vo = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
939
930
|
...t
|
|
940
931
|
}
|
|
941
932
|
));
|
|
942
|
-
|
|
933
|
+
Mo.displayName = Hr.displayName;
|
|
943
934
|
const rn = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
944
935
|
"div",
|
|
945
936
|
{
|
|
@@ -952,7 +943,7 @@ const rn = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
952
943
|
}
|
|
953
944
|
));
|
|
954
945
|
rn.displayName = "Card";
|
|
955
|
-
const
|
|
946
|
+
const Ho = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
956
947
|
"div",
|
|
957
948
|
{
|
|
958
949
|
ref: n,
|
|
@@ -960,8 +951,8 @@ const Wo = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
960
951
|
...t
|
|
961
952
|
}
|
|
962
953
|
));
|
|
963
|
-
|
|
964
|
-
const
|
|
954
|
+
Ho.displayName = "CardHeader";
|
|
955
|
+
const Bo = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
965
956
|
"h3",
|
|
966
957
|
{
|
|
967
958
|
ref: n,
|
|
@@ -969,8 +960,8 @@ const zo = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
969
960
|
...t
|
|
970
961
|
}
|
|
971
962
|
));
|
|
972
|
-
|
|
973
|
-
const
|
|
963
|
+
Bo.displayName = "CardTitle";
|
|
964
|
+
const Do = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
974
965
|
"p",
|
|
975
966
|
{
|
|
976
967
|
ref: n,
|
|
@@ -978,10 +969,10 @@ const Jo = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
978
969
|
...t
|
|
979
970
|
}
|
|
980
971
|
));
|
|
981
|
-
|
|
982
|
-
const
|
|
983
|
-
|
|
984
|
-
const
|
|
972
|
+
Do.displayName = "CardDescription";
|
|
973
|
+
const Vo = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx("div", { ref: n, className: A("p-6 pt-0", e), ...t }));
|
|
974
|
+
Vo.displayName = "CardContent";
|
|
975
|
+
const Wo = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
985
976
|
"div",
|
|
986
977
|
{
|
|
987
978
|
ref: n,
|
|
@@ -989,10 +980,10 @@ const Ko = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
989
980
|
...t
|
|
990
981
|
}
|
|
991
982
|
));
|
|
992
|
-
|
|
993
|
-
var an = "Tabs", [
|
|
983
|
+
Wo.displayName = "CardFooter";
|
|
984
|
+
var an = "Tabs", [zo, Eu] = dr(an, [
|
|
994
985
|
vr
|
|
995
|
-
]), Wr = vr(), [
|
|
986
|
+
]), Wr = vr(), [Jo, on] = zo(an), zr = j.forwardRef(
|
|
996
987
|
(e, t) => {
|
|
997
988
|
const {
|
|
998
989
|
__scopeTabs: n,
|
|
@@ -1009,7 +1000,7 @@ var an = "Tabs", [Qo, Fu] = dr(an, [
|
|
|
1009
1000
|
defaultProp: o
|
|
1010
1001
|
});
|
|
1011
1002
|
return /* @__PURE__ */ f.jsx(
|
|
1012
|
-
|
|
1003
|
+
Jo,
|
|
1013
1004
|
{
|
|
1014
1005
|
scope: n,
|
|
1015
1006
|
baseId: rt(),
|
|
@@ -1036,7 +1027,7 @@ var Jr = "TabsList", Gr = j.forwardRef(
|
|
|
1036
1027
|
(e, t) => {
|
|
1037
1028
|
const { __scopeTabs: n, loop: a = !0, ...s } = e, o = on(Jr, n), r = Wr(n);
|
|
1038
1029
|
return /* @__PURE__ */ f.jsx(
|
|
1039
|
-
|
|
1030
|
+
co,
|
|
1040
1031
|
{
|
|
1041
1032
|
asChild: !0,
|
|
1042
1033
|
...r,
|
|
@@ -1061,7 +1052,7 @@ var Kr = "TabsTrigger", Qr = j.forwardRef(
|
|
|
1061
1052
|
(e, t) => {
|
|
1062
1053
|
const { __scopeTabs: n, value: a, disabled: s = !1, ...o } = e, r = on(Kr, n), i = Wr(n), l = Zr(r.baseId, a), c = ea(r.baseId, a), u = a === r.value;
|
|
1063
1054
|
return /* @__PURE__ */ f.jsx(
|
|
1064
|
-
|
|
1055
|
+
uo,
|
|
1065
1056
|
{
|
|
1066
1057
|
asChild: !0,
|
|
1067
1058
|
...i,
|
|
@@ -1168,7 +1159,7 @@ const Pe = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
1168
1159
|
}
|
|
1169
1160
|
));
|
|
1170
1161
|
Pe.displayName = cn.displayName;
|
|
1171
|
-
const
|
|
1162
|
+
const Go = async (e, t, n = 5e3) => {
|
|
1172
1163
|
const a = new AbortController(), s = a.signal, o = fetch(e, { ...t, signal: s }), r = new Promise((i, l) => {
|
|
1173
1164
|
const c = setTimeout(() => {
|
|
1174
1165
|
a.abort("Request timed out"), l(new Error("Request timed out"));
|
|
@@ -1178,12 +1169,12 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1178
1169
|
return Promise.race([o, r]);
|
|
1179
1170
|
}, kt = (e) => Math.abs(
|
|
1180
1171
|
isNaN(parseInt(e)) ? e.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(e)) ? 0 : parseInt(e)
|
|
1181
|
-
), $t = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, n) => `${kt(t) + kt(n)}`)) : kt(e),
|
|
1172
|
+
), $t = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, n) => `${kt(t) + kt(n)}`)) : kt(e), Ko = (e, t = {}) => {
|
|
1182
1173
|
const n = (3 * $t(e) + 2 * $t(e) + $t(e)) % 360, { saturation: a = 75, lightness: s = 60 } = t;
|
|
1183
1174
|
return `${n}deg ${a}% ${s}%`;
|
|
1184
|
-
}, St = "data-linked-param",
|
|
1185
|
-
const [t] =
|
|
1186
|
-
return
|
|
1175
|
+
}, St = "data-linked-param", Qo = (e) => {
|
|
1176
|
+
const [t] = Ja();
|
|
1177
|
+
return Ko(
|
|
1187
1178
|
e,
|
|
1188
1179
|
t ? void 0 : { saturation: 85, lightness: 50 }
|
|
1189
1180
|
);
|
|
@@ -1196,7 +1187,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1196
1187
|
children: o,
|
|
1197
1188
|
onClick: r
|
|
1198
1189
|
}) => {
|
|
1199
|
-
const i = hr(null), l = e.replace(/[{}]/g, ""), c = s == null ? void 0 : s.replace(/[{}]/g, ""), u =
|
|
1190
|
+
const i = hr(null), l = e.replace(/[{}]/g, ""), c = s == null ? void 0 : s.replace(/[{}]/g, ""), u = Qo(l), p = `hsl(${u} / ${a})`, d = `hsl(${u} / ${n})`;
|
|
1200
1191
|
return yr(() => {
|
|
1201
1192
|
if (!c || !i.current) return;
|
|
1202
1193
|
const m = () => {
|
|
@@ -1231,7 +1222,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1231
1222
|
]
|
|
1232
1223
|
}
|
|
1233
1224
|
);
|
|
1234
|
-
},
|
|
1225
|
+
}, Yo = (e, t, n) => {
|
|
1235
1226
|
const a = t.replace(/(:\w+|\{\w+})/g, (o) => {
|
|
1236
1227
|
var l;
|
|
1237
1228
|
const r = o.replace(/[:{}]/g, "");
|
|
@@ -1240,7 +1231,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1240
1231
|
return n.queryParams.filter((o) => o.active).forEach((o) => {
|
|
1241
1232
|
s.searchParams.set(o.name, o.value);
|
|
1242
1233
|
}), s;
|
|
1243
|
-
},
|
|
1234
|
+
}, Xo = (e, t) => {
|
|
1244
1235
|
const n = j.forwardRef(({ className: a, asChild: s, ...o }, r) => {
|
|
1245
1236
|
const i = s ? fr : e;
|
|
1246
1237
|
return j.createElement(i, {
|
|
@@ -1250,10 +1241,10 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1250
1241
|
});
|
|
1251
1242
|
});
|
|
1252
1243
|
return n.displayName = `VariantComponent(${e})`, n;
|
|
1253
|
-
}, Lt =
|
|
1244
|
+
}, Lt = Xo(
|
|
1254
1245
|
"input",
|
|
1255
1246
|
"px-2 bg-transparent h-6 font-mono text-xs m-2"
|
|
1256
|
-
),
|
|
1247
|
+
), Zo = ({
|
|
1257
1248
|
control: e,
|
|
1258
1249
|
register: t
|
|
1259
1250
|
}) => {
|
|
@@ -1284,7 +1275,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1284
1275
|
autoComplete: "off"
|
|
1285
1276
|
}
|
|
1286
1277
|
),
|
|
1287
|
-
u && /* @__PURE__ */ f.jsx(
|
|
1278
|
+
u && /* @__PURE__ */ f.jsx(Ga, { size: 16, className: "text-amber-500" })
|
|
1288
1279
|
] }),
|
|
1289
1280
|
/* @__PURE__ */ f.jsx(
|
|
1290
1281
|
Lt,
|
|
@@ -1322,7 +1313,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1322
1313
|
}
|
|
1323
1314
|
)
|
|
1324
1315
|
] });
|
|
1325
|
-
},
|
|
1316
|
+
}, ei = ({
|
|
1326
1317
|
control: e
|
|
1327
1318
|
}) => {
|
|
1328
1319
|
const { fields: t } = Xt({
|
|
@@ -1396,14 +1387,14 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1396
1387
|
)
|
|
1397
1388
|
] }) })
|
|
1398
1389
|
] }, n.id)) }) });
|
|
1399
|
-
},
|
|
1390
|
+
}, ti = ({
|
|
1400
1391
|
control: e,
|
|
1401
1392
|
queryParams: t
|
|
1402
1393
|
}) => {
|
|
1403
1394
|
const { fields: n } = Xt({
|
|
1404
1395
|
control: e,
|
|
1405
1396
|
name: "queryParams"
|
|
1406
|
-
}), a =
|
|
1397
|
+
}), a = Qa(), s = t.map((i) => !!i.isRequired), r = a.watch("identity") !== Be;
|
|
1407
1398
|
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(
|
|
1408
1399
|
// TODO remove this hack for Accu or make it more generic
|
|
1409
1400
|
(i) => !(r && i.name === "apikey")
|
|
@@ -1505,8 +1496,8 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1505
1496
|
children: a.map((s) => /* @__PURE__ */ f.jsx("option", { value: s.value, children: s.label }, s.value))
|
|
1506
1497
|
}
|
|
1507
1498
|
),
|
|
1508
|
-
/* @__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(
|
|
1509
|
-
] }),
|
|
1499
|
+
/* @__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(go, { size: 14 }) })
|
|
1500
|
+
] }), ni = (e) => {
|
|
1510
1501
|
var n;
|
|
1511
1502
|
return (n = Object.entries({
|
|
1512
1503
|
"application/json": "json",
|
|
@@ -1519,20 +1510,20 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1519
1510
|
}).find(
|
|
1520
1511
|
([a]) => e.includes(a)
|
|
1521
1512
|
)) == null ? void 0 : n[1];
|
|
1522
|
-
},
|
|
1513
|
+
}, ri = (e) => {
|
|
1523
1514
|
const t = e.get("Content-Type") || "";
|
|
1524
|
-
return
|
|
1525
|
-
},
|
|
1515
|
+
return ni(t);
|
|
1516
|
+
}, ai = (e) => {
|
|
1526
1517
|
try {
|
|
1527
1518
|
return JSON.stringify(JSON.parse(e), null, 2);
|
|
1528
1519
|
} catch {
|
|
1529
1520
|
return null;
|
|
1530
1521
|
}
|
|
1531
|
-
},
|
|
1522
|
+
}, oi = ({
|
|
1532
1523
|
body: e = "",
|
|
1533
1524
|
headers: t
|
|
1534
1525
|
}) => {
|
|
1535
|
-
const n =
|
|
1526
|
+
const n = ri(t), a = ai(e), s = a || e, [o, r] = gr(
|
|
1536
1527
|
a ? "formatted" : "raw"
|
|
1537
1528
|
);
|
|
1538
1529
|
return /* @__PURE__ */ f.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
@@ -1558,7 +1549,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1558
1549
|
}
|
|
1559
1550
|
) })
|
|
1560
1551
|
] });
|
|
1561
|
-
}, Be = "__none",
|
|
1552
|
+
}, Be = "__none", ii = {
|
|
1562
1553
|
200: "OK",
|
|
1563
1554
|
201: "Created",
|
|
1564
1555
|
202: "Accepted",
|
|
@@ -1569,7 +1560,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1569
1560
|
404: "Not Found",
|
|
1570
1561
|
405: "Method Not Allowed",
|
|
1571
1562
|
500: "Internal Server Error"
|
|
1572
|
-
},
|
|
1563
|
+
}, si = ({
|
|
1573
1564
|
server: e,
|
|
1574
1565
|
url: t,
|
|
1575
1566
|
method: n,
|
|
@@ -1579,7 +1570,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1579
1570
|
defaultBody: r = ""
|
|
1580
1571
|
}) => {
|
|
1581
1572
|
var w, S;
|
|
1582
|
-
const { register: i, control: l, handleSubmit: c, watch: u, setValue: p, ...d } =
|
|
1573
|
+
const { register: i, control: l, handleSubmit: c, watch: u, setValue: p, ...d } = Ya({
|
|
1583
1574
|
defaultValues: {
|
|
1584
1575
|
body: r,
|
|
1585
1576
|
queryParams: s.map((k) => ({
|
|
@@ -1604,17 +1595,17 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1604
1595
|
const k = (C = h.data) == null ? void 0 : C.at(0);
|
|
1605
1596
|
k && (p("identity", k.id), y.current = !0);
|
|
1606
1597
|
}, [p, h.data]);
|
|
1607
|
-
const v =
|
|
1598
|
+
const v = Xa({
|
|
1608
1599
|
mutationFn: async (k) => {
|
|
1609
1600
|
var I, H;
|
|
1610
|
-
const C =
|
|
1601
|
+
const C = Yo(e, t, k), P = performance.now(), R = new Request(C, {
|
|
1611
1602
|
method: n.toUpperCase(),
|
|
1612
1603
|
headers: Object.fromEntries(
|
|
1613
1604
|
k.headers.filter((L) => L.name).map((L) => [L.name, L.value])
|
|
1614
1605
|
)
|
|
1615
1606
|
});
|
|
1616
1607
|
k.identity !== Be && ((H = (I = h.data) == null ? void 0 : I.find((L) => L.id === k.identity)) == null || H.authorizeRequest(R));
|
|
1617
|
-
const q = await
|
|
1608
|
+
const q = await Go(R), G = performance.now() - P, K = await q.text();
|
|
1618
1609
|
return {
|
|
1619
1610
|
status: q.status,
|
|
1620
1611
|
headers: q.headers,
|
|
@@ -1649,7 +1640,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1649
1640
|
/* @__PURE__ */ f.jsx("wbr", {})
|
|
1650
1641
|
] }, k.name));
|
|
1651
1642
|
return /* @__PURE__ */ f.jsx(
|
|
1652
|
-
|
|
1643
|
+
Za,
|
|
1653
1644
|
{
|
|
1654
1645
|
register: i,
|
|
1655
1646
|
control: l,
|
|
@@ -1697,14 +1688,14 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1697
1688
|
/* @__PURE__ */ f.jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
1698
1689
|
"Auth:",
|
|
1699
1690
|
/* @__PURE__ */ f.jsxs(
|
|
1700
|
-
|
|
1691
|
+
eo,
|
|
1701
1692
|
{
|
|
1702
1693
|
onValueChange: (k) => p("identity", k),
|
|
1703
1694
|
value: m.identity,
|
|
1704
1695
|
defaultValue: m.identity,
|
|
1705
1696
|
children: [
|
|
1706
|
-
/* @__PURE__ */ f.jsx(
|
|
1707
|
-
/* @__PURE__ */ f.jsxs(
|
|
1697
|
+
/* @__PURE__ */ f.jsx(to, { className: "w-[180px] flex", children: h.isPending ? /* @__PURE__ */ f.jsx(jn, {}) : /* @__PURE__ */ f.jsx(no, {}) }),
|
|
1698
|
+
/* @__PURE__ */ f.jsxs(ro, { align: "center", children: [
|
|
1708
1699
|
/* @__PURE__ */ f.jsx(wn, { value: Be, children: "None" }),
|
|
1709
1700
|
(S = h.data) == null ? void 0 : S.map((k) => /* @__PURE__ */ f.jsx(wn, { value: k.id, children: k.label }, k.id))
|
|
1710
1701
|
] })
|
|
@@ -1713,15 +1704,15 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1713
1704
|
)
|
|
1714
1705
|
] })
|
|
1715
1706
|
] }),
|
|
1716
|
-
/* @__PURE__ */ f.jsx(Pe, { value: "headers", children: /* @__PURE__ */ f.jsx(
|
|
1707
|
+
/* @__PURE__ */ f.jsx(Pe, { value: "headers", children: /* @__PURE__ */ f.jsx(Zo, { control: l, register: i }) }),
|
|
1717
1708
|
/* @__PURE__ */ f.jsxs(Pe, { value: "parameters", children: [
|
|
1718
1709
|
o.length > 0 && /* @__PURE__ */ f.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
1719
1710
|
/* @__PURE__ */ f.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
|
|
1720
|
-
/* @__PURE__ */ f.jsx(
|
|
1711
|
+
/* @__PURE__ */ f.jsx(ei, { control: l })
|
|
1721
1712
|
] }),
|
|
1722
1713
|
s.length > 0 && /* @__PURE__ */ f.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
1723
1714
|
/* @__PURE__ */ f.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
|
|
1724
|
-
/* @__PURE__ */ f.jsx(
|
|
1715
|
+
/* @__PURE__ */ f.jsx(ti, { control: l, queryParams: s })
|
|
1725
1716
|
] })
|
|
1726
1717
|
] }),
|
|
1727
1718
|
/* @__PURE__ */ f.jsx(Pe, { value: "body", children: /* @__PURE__ */ f.jsx(
|
|
@@ -1745,7 +1736,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1745
1736
|
"Status: ",
|
|
1746
1737
|
v.data.status,
|
|
1747
1738
|
" ",
|
|
1748
|
-
|
|
1739
|
+
ii[v.data.status] ?? ""
|
|
1749
1740
|
] }),
|
|
1750
1741
|
/* @__PURE__ */ f.jsxs("div", { children: [
|
|
1751
1742
|
"Time: ",
|
|
@@ -1764,7 +1755,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1764
1755
|
/* @__PURE__ */ f.jsx(Ce, { value: "headers", children: g.length ? `Headers (${g.length})` : "No headers" })
|
|
1765
1756
|
] }),
|
|
1766
1757
|
/* @__PURE__ */ f.jsx(Pe, { value: "response", children: /* @__PURE__ */ f.jsx(
|
|
1767
|
-
|
|
1758
|
+
oi,
|
|
1768
1759
|
{
|
|
1769
1760
|
headers: v.data.headers,
|
|
1770
1761
|
body: v.data.body
|
|
@@ -1783,7 +1774,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1783
1774
|
] }) })
|
|
1784
1775
|
}
|
|
1785
1776
|
);
|
|
1786
|
-
},
|
|
1777
|
+
}, li = ({
|
|
1787
1778
|
className: e,
|
|
1788
1779
|
size: t = 16
|
|
1789
1780
|
}) => /* @__PURE__ */ f.jsx(
|
|
@@ -1806,10 +1797,10 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1806
1797
|
}
|
|
1807
1798
|
), ra = (e) => {
|
|
1808
1799
|
const [t, n] = gr(!1);
|
|
1809
|
-
return /* @__PURE__ */ f.jsxs(
|
|
1810
|
-
/* @__PURE__ */ f.jsx(
|
|
1800
|
+
return /* @__PURE__ */ f.jsxs(_o, { onOpenChange: (a) => n(a), children: [
|
|
1801
|
+
/* @__PURE__ */ f.jsx(Lo, { asChild: !0, children: e.children ?? /* @__PURE__ */ f.jsxs("button", { className: "flex gap-1 items-center px-2 py-1 rounded-md bg-primary/80 hover:bg-primary transition text-primary-foreground text-xs", children: [
|
|
1811
1802
|
"Test",
|
|
1812
|
-
/* @__PURE__ */ f.jsx(
|
|
1803
|
+
/* @__PURE__ */ f.jsx(li, { className: "", size: 14 })
|
|
1813
1804
|
] }) }),
|
|
1814
1805
|
/* @__PURE__ */ f.jsxs(
|
|
1815
1806
|
Dr,
|
|
@@ -1817,8 +1808,8 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1817
1808
|
className: "max-w-screen-xl w-full h-5/6 overflow-auto p-0",
|
|
1818
1809
|
"aria-describedby": void 0,
|
|
1819
1810
|
children: [
|
|
1820
|
-
/* @__PURE__ */ f.jsx(
|
|
1821
|
-
t && /* @__PURE__ */ f.jsx(
|
|
1811
|
+
/* @__PURE__ */ f.jsx(ao, { children: /* @__PURE__ */ f.jsx(Vr, { children: "Playground" }) }),
|
|
1812
|
+
t && /* @__PURE__ */ f.jsx(si, { ...e })
|
|
1822
1813
|
]
|
|
1823
1814
|
}
|
|
1824
1815
|
)
|
|
@@ -1849,16 +1840,16 @@ var Tn = (e, t) => {
|
|
|
1849
1840
|
this.postProcessors = [...this.postProcessors, n];
|
|
1850
1841
|
}, this.indentationCharacter = e || On, this.lineJoin = t ?? Cn;
|
|
1851
1842
|
}
|
|
1852
|
-
},
|
|
1843
|
+
}, ci = function(e) {
|
|
1853
1844
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1854
|
-
},
|
|
1845
|
+
}, ui = function(e) {
|
|
1855
1846
|
var t = typeof e;
|
|
1856
1847
|
return e !== null && (t === "object" || t === "function");
|
|
1857
1848
|
}, dn = {};
|
|
1858
1849
|
Object.defineProperty(dn, "__esModule", { value: !0 });
|
|
1859
1850
|
dn.default = (e) => Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
|
|
1860
|
-
const
|
|
1861
|
-
var
|
|
1851
|
+
const di = ci, fi = ui, pi = dn.default;
|
|
1852
|
+
var mi = (e, t, n) => {
|
|
1862
1853
|
const a = [];
|
|
1863
1854
|
return function s(o, r, i) {
|
|
1864
1855
|
r = r || {}, r.indent = r.indent || " ", i = i || "";
|
|
@@ -1885,7 +1876,7 @@ var vi = (e, t, n) => {
|
|
|
1885
1876
|
};
|
|
1886
1877
|
if (a.indexOf(o) !== -1)
|
|
1887
1878
|
return '"[Circular]"';
|
|
1888
|
-
if (o == null || typeof o == "number" || typeof o == "boolean" || typeof o == "function" || typeof o == "symbol" ||
|
|
1879
|
+
if (o == null || typeof o == "number" || typeof o == "boolean" || typeof o == "function" || typeof o == "symbol" || di(o))
|
|
1889
1880
|
return String(o);
|
|
1890
1881
|
if (o instanceof Date)
|
|
1891
1882
|
return `new Date('${o.toISOString()}')`;
|
|
@@ -1900,8 +1891,8 @@ var vi = (e, t, n) => {
|
|
|
1900
1891
|
}).join("") + l.pad + "]";
|
|
1901
1892
|
return a.pop(), c(u);
|
|
1902
1893
|
}
|
|
1903
|
-
if (
|
|
1904
|
-
let u = Object.keys(o).concat(
|
|
1894
|
+
if (fi(o)) {
|
|
1895
|
+
let u = Object.keys(o).concat(pi(o));
|
|
1905
1896
|
if (r.filter && (u = u.filter((d) => r.filter(o, d))), u.length === 0)
|
|
1906
1897
|
return "{}";
|
|
1907
1898
|
a.push(o);
|
|
@@ -1916,13 +1907,13 @@ var vi = (e, t, n) => {
|
|
|
1916
1907
|
` ? "\\n" : "\\r"), r.singleQuotes === !1 ? (o = o.replace(/"/g, '\\"'), `"${o}"`) : (o = o.replace(/\\?'/g, "\\'"), `'${o}'`);
|
|
1917
1908
|
}(e, t, n);
|
|
1918
1909
|
};
|
|
1919
|
-
const J = /* @__PURE__ */
|
|
1910
|
+
const J = /* @__PURE__ */ fo(mi);
|
|
1920
1911
|
function ze(e, t = {}) {
|
|
1921
1912
|
const { delimiter: n = '"', escapeChar: a = "\\", escapeNewlines: s = !0 } = t;
|
|
1922
1913
|
return [...e.toString()].map((r) => r === "\b" ? `${a}b` : r === " " ? `${a}t` : r === `
|
|
1923
1914
|
` ? 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("");
|
|
1924
1915
|
}
|
|
1925
|
-
var Je = (e) => ze(e, { delimiter: "'" }), V = (e) => ze(e, { delimiter: '"' }),
|
|
1916
|
+
var Je = (e) => ze(e, { delimiter: "'" }), V = (e) => ze(e, { delimiter: '"' }), hi = {
|
|
1926
1917
|
info: {
|
|
1927
1918
|
key: "libcurl",
|
|
1928
1919
|
title: "Libcurl",
|
|
@@ -1938,7 +1929,7 @@ var Je = (e) => ze(e, { delimiter: "'" }), V = (e) => ze(e, { delimiter: '"' }),
|
|
|
1938
1929
|
o(`headers = curl_slist_append(headers, "${c}: ${V(n[c])}");`);
|
|
1939
1930
|
}), 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();
|
|
1940
1931
|
}
|
|
1941
|
-
},
|
|
1932
|
+
}, yi = {
|
|
1942
1933
|
info: {
|
|
1943
1934
|
key: "c",
|
|
1944
1935
|
title: "C",
|
|
@@ -1946,19 +1937,19 @@ var Je = (e) => ze(e, { delimiter: "'" }), V = (e) => ze(e, { delimiter: '"' }),
|
|
|
1946
1937
|
cli: "c"
|
|
1947
1938
|
},
|
|
1948
1939
|
clientsById: {
|
|
1949
|
-
libcurl:
|
|
1940
|
+
libcurl: hi
|
|
1950
1941
|
}
|
|
1951
1942
|
}, Y = (e, t) => Object.keys(e).find((n) => n.toLowerCase() === t.toLowerCase()), de = (e, t) => {
|
|
1952
1943
|
const n = Y(e, t);
|
|
1953
1944
|
if (n)
|
|
1954
1945
|
return e[n];
|
|
1955
|
-
}, vt = (e, t) => !!Y(e, t),
|
|
1946
|
+
}, vt = (e, t) => !!Y(e, t), gi = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
|
|
1956
1947
|
(t) => e.indexOf(t) > -1
|
|
1957
1948
|
), Pn = class {
|
|
1958
1949
|
constructor(e) {
|
|
1959
1950
|
this.name = "", this.toString = () => `:${this.name}`, this.name = e;
|
|
1960
1951
|
}
|
|
1961
|
-
},
|
|
1952
|
+
}, vi = class {
|
|
1962
1953
|
constructor(e) {
|
|
1963
1954
|
this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
|
|
1964
1955
|
}
|
|
@@ -1995,7 +1986,7 @@ ${n}`);
|
|
|
1995
1986
|
default:
|
|
1996
1987
|
return e.toString();
|
|
1997
1988
|
}
|
|
1998
|
-
},
|
|
1989
|
+
}, bi = {
|
|
1999
1990
|
info: {
|
|
2000
1991
|
key: "clj_http",
|
|
2001
1992
|
title: "clj-http",
|
|
@@ -2037,7 +2028,7 @@ ${n}`);
|
|
|
2037
2028
|
if (n.params) {
|
|
2038
2029
|
c.multipart = n.params.map((p) => p.fileName && !p.value ? {
|
|
2039
2030
|
name: p.name,
|
|
2040
|
-
content: new
|
|
2031
|
+
content: new vi(p.fileName)
|
|
2041
2032
|
} : {
|
|
2042
2033
|
name: p.name,
|
|
2043
2034
|
content: p.value
|
|
@@ -2066,16 +2057,16 @@ ${n}`);
|
|
|
2066
2057
|
}
|
|
2067
2058
|
return i();
|
|
2068
2059
|
}
|
|
2069
|
-
},
|
|
2060
|
+
}, xi = {
|
|
2070
2061
|
info: {
|
|
2071
2062
|
key: "clojure",
|
|
2072
2063
|
title: "Clojure",
|
|
2073
2064
|
default: "clj_http"
|
|
2074
2065
|
},
|
|
2075
2066
|
clientsById: {
|
|
2076
|
-
clj_http:
|
|
2067
|
+
clj_http: bi
|
|
2077
2068
|
}
|
|
2078
|
-
},
|
|
2069
|
+
}, ki = (e) => {
|
|
2079
2070
|
let t = de(e, "accept-encoding");
|
|
2080
2071
|
if (!t)
|
|
2081
2072
|
return [];
|
|
@@ -2092,7 +2083,7 @@ ${n}`);
|
|
|
2092
2083
|
}
|
|
2093
2084
|
});
|
|
2094
2085
|
}), a;
|
|
2095
|
-
},
|
|
2086
|
+
}, $i = {
|
|
2096
2087
|
info: {
|
|
2097
2088
|
key: "httpclient",
|
|
2098
2089
|
title: "HttpClient",
|
|
@@ -2108,7 +2099,7 @@ ${n}`);
|
|
|
2108
2099
|
}, { push: r, join: i } = new O({ indent: o.indent });
|
|
2109
2100
|
r("using System.Net.Http.Headers;");
|
|
2110
2101
|
let l = "";
|
|
2111
|
-
const c = !!e.cookie, u =
|
|
2102
|
+
const c = !!e.cookie, u = ki(e);
|
|
2112
2103
|
(c || u.length) && (l = "clientHandler", r("var clientHandler = new HttpClientHandler"), r("{"), c && r("UseCookies = false,", 1), u.length && r(`AutomaticDecompression = ${u.join(" | ")},`, 1), r("};")), r(`var client = new HttpClient(${l});`), r("var request = new HttpRequestMessage"), r("{");
|
|
2113
2104
|
const p = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
|
|
2114
2105
|
n = n.toUpperCase(), n && p.includes(n) ? n = `HttpMethod.${n[0]}${n.substring(1).toLowerCase()}` : n = `new HttpMethod("${n}")`, r(`Method = ${n},`, 1), r(`RequestUri = new Uri("${a}"),`, 1);
|
|
@@ -2145,10 +2136,10 @@ ${n}`);
|
|
|
2145
2136
|
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();
|
|
2146
2137
|
}
|
|
2147
2138
|
};
|
|
2148
|
-
function
|
|
2139
|
+
function Si(e) {
|
|
2149
2140
|
return e[0].toUpperCase() + e.slice(1).toLowerCase();
|
|
2150
2141
|
}
|
|
2151
|
-
var
|
|
2142
|
+
var wi = {
|
|
2152
2143
|
info: {
|
|
2153
2144
|
key: "restsharp",
|
|
2154
2145
|
title: "RestSharp",
|
|
@@ -2198,11 +2189,11 @@ var Oi = {
|
|
|
2198
2189
|
if (!s.text) break;
|
|
2199
2190
|
r(`request.AddStringBody("${s.text}", "${s.mimeType}");`);
|
|
2200
2191
|
}
|
|
2201
|
-
return r(`var response = await client.${
|
|
2192
|
+
return r(`var response = await client.${Si(e)}Async(request);
|
|
2202
2193
|
`), r(`Console.WriteLine("{0}", response.Content);
|
|
2203
2194
|
`), i();
|
|
2204
2195
|
}
|
|
2205
|
-
},
|
|
2196
|
+
}, ji = {
|
|
2206
2197
|
info: {
|
|
2207
2198
|
key: "csharp",
|
|
2208
2199
|
title: "C#",
|
|
@@ -2210,10 +2201,10 @@ var Oi = {
|
|
|
2210
2201
|
cli: "dotnet"
|
|
2211
2202
|
},
|
|
2212
2203
|
clientsById: {
|
|
2213
|
-
httpclient:
|
|
2214
|
-
restsharp:
|
|
2204
|
+
httpclient: $i,
|
|
2205
|
+
restsharp: wi
|
|
2215
2206
|
}
|
|
2216
|
-
},
|
|
2207
|
+
}, Ni = {
|
|
2217
2208
|
info: {
|
|
2218
2209
|
key: "native",
|
|
2219
2210
|
title: "NewRequest",
|
|
@@ -2231,7 +2222,7 @@ var Oi = {
|
|
|
2231
2222
|
r(`req.Header.Add("${g}", "${V(n[g])}")`, m);
|
|
2232
2223
|
}), 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();
|
|
2233
2224
|
}
|
|
2234
|
-
},
|
|
2225
|
+
}, Ti = {
|
|
2235
2226
|
info: {
|
|
2236
2227
|
key: "go",
|
|
2237
2228
|
title: "Go",
|
|
@@ -2239,10 +2230,10 @@ var Oi = {
|
|
|
2239
2230
|
cli: "go"
|
|
2240
2231
|
},
|
|
2241
2232
|
clientsById: {
|
|
2242
|
-
native:
|
|
2233
|
+
native: Ni
|
|
2243
2234
|
}
|
|
2244
2235
|
}, Rn = `\r
|
|
2245
|
-
`,
|
|
2236
|
+
`, Oi = {
|
|
2246
2237
|
info: {
|
|
2247
2238
|
key: "http1.1",
|
|
2248
2239
|
title: "HTTP/1.1",
|
|
@@ -2270,16 +2261,16 @@ var Oi = {
|
|
|
2270
2261
|
const m = u(), h = o.text || "";
|
|
2271
2262
|
return `${m}${Rn}${h}`;
|
|
2272
2263
|
}
|
|
2273
|
-
},
|
|
2264
|
+
}, Ci = {
|
|
2274
2265
|
info: {
|
|
2275
2266
|
key: "http",
|
|
2276
2267
|
title: "HTTP",
|
|
2277
2268
|
default: "http1.1"
|
|
2278
2269
|
},
|
|
2279
2270
|
clientsById: {
|
|
2280
|
-
"http1.1":
|
|
2271
|
+
"http1.1": Oi
|
|
2281
2272
|
}
|
|
2282
|
-
},
|
|
2273
|
+
}, Pi = {
|
|
2283
2274
|
info: {
|
|
2284
2275
|
key: "asynchttp",
|
|
2285
2276
|
title: "AsyncHttp",
|
|
@@ -2296,7 +2287,7 @@ var Oi = {
|
|
|
2296
2287
|
i(`.setHeader("${c}", "${V(t[c])}")`, 1);
|
|
2297
2288
|
}), 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();
|
|
2298
2289
|
}
|
|
2299
|
-
},
|
|
2290
|
+
}, Ei = {
|
|
2300
2291
|
info: {
|
|
2301
2292
|
key: "nethttp",
|
|
2302
2293
|
title: "java.net.http",
|
|
@@ -2318,7 +2309,7 @@ var Oi = {
|
|
|
2318
2309
|
"HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"
|
|
2319
2310
|
), r("System.out.println(response.body());"), i();
|
|
2320
2311
|
}
|
|
2321
|
-
},
|
|
2312
|
+
}, Ri = {
|
|
2322
2313
|
info: {
|
|
2323
2314
|
key: "okhttp",
|
|
2324
2315
|
title: "OkHttp",
|
|
@@ -2335,7 +2326,7 @@ var Oi = {
|
|
|
2335
2326
|
r(`.addHeader("${p}", "${V(a[p])}")`, 1);
|
|
2336
2327
|
}), r(".build();", 1), i(), r("Response response = client.newCall(request).execute();"), l();
|
|
2337
2328
|
}
|
|
2338
|
-
},
|
|
2329
|
+
}, Ai = {
|
|
2339
2330
|
info: {
|
|
2340
2331
|
key: "unirest",
|
|
2341
2332
|
title: "Unirest",
|
|
@@ -2352,19 +2343,19 @@ var Oi = {
|
|
|
2352
2343
|
i(`.header("${c}", "${V(t[c])}")`, 1);
|
|
2353
2344
|
}), n.text && i(`.body(${JSON.stringify(n.text)})`, 1), i(".asString();", 1), r();
|
|
2354
2345
|
}
|
|
2355
|
-
},
|
|
2346
|
+
}, Fi = {
|
|
2356
2347
|
info: {
|
|
2357
2348
|
key: "java",
|
|
2358
2349
|
title: "Java",
|
|
2359
2350
|
default: "unirest"
|
|
2360
2351
|
},
|
|
2361
2352
|
clientsById: {
|
|
2362
|
-
asynchttp:
|
|
2363
|
-
nethttp:
|
|
2364
|
-
okhttp:
|
|
2365
|
-
unirest:
|
|
2353
|
+
asynchttp: Pi,
|
|
2354
|
+
nethttp: Ei,
|
|
2355
|
+
okhttp: Ri,
|
|
2356
|
+
unirest: Ai
|
|
2366
2357
|
}
|
|
2367
|
-
},
|
|
2358
|
+
}, qi = {
|
|
2368
2359
|
info: {
|
|
2369
2360
|
key: "axios",
|
|
2370
2361
|
title: "Axios",
|
|
@@ -2408,7 +2399,7 @@ var Oi = {
|
|
|
2408
2399
|
}).replace('"[form]"', "form");
|
|
2409
2400
|
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();
|
|
2410
2401
|
}
|
|
2411
|
-
},
|
|
2402
|
+
}, Ii = {
|
|
2412
2403
|
info: {
|
|
2413
2404
|
key: "fetch",
|
|
2414
2405
|
title: "fetch",
|
|
@@ -2461,7 +2452,7 @@ var Oi = {
|
|
|
2461
2452
|
})};`
|
|
2462
2453
|
), 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();
|
|
2463
2454
|
}
|
|
2464
|
-
},
|
|
2455
|
+
}, _i = {
|
|
2465
2456
|
info: {
|
|
2466
2457
|
key: "jquery",
|
|
2467
2458
|
title: "jQuery",
|
|
@@ -2505,7 +2496,7 @@ var Oi = {
|
|
|
2505
2496
|
const u = J(c, { indent: o.indent }).replace("'[form]'", "form");
|
|
2506
2497
|
return i(`const settings = ${u};`), r(), i("$.ajax(settings).done(function (response) {"), i("console.log(response);", 1), i("});"), l();
|
|
2507
2498
|
}
|
|
2508
|
-
},
|
|
2499
|
+
}, Li = {
|
|
2509
2500
|
info: {
|
|
2510
2501
|
key: "xhr",
|
|
2511
2502
|
title: "XMLHttpRequest",
|
|
@@ -2546,19 +2537,19 @@ var Oi = {
|
|
|
2546
2537
|
i(`xhr.setRequestHeader('${u}', '${Je(t[u])}');`);
|
|
2547
2538
|
}), r(), i("xhr.send(data);"), l();
|
|
2548
2539
|
}
|
|
2549
|
-
},
|
|
2540
|
+
}, Ui = {
|
|
2550
2541
|
info: {
|
|
2551
2542
|
key: "javascript",
|
|
2552
2543
|
title: "JavaScript",
|
|
2553
2544
|
default: "xhr"
|
|
2554
2545
|
},
|
|
2555
2546
|
clientsById: {
|
|
2556
|
-
xhr:
|
|
2557
|
-
axios:
|
|
2558
|
-
fetch:
|
|
2559
|
-
jquery:
|
|
2547
|
+
xhr: Li,
|
|
2548
|
+
axios: qi,
|
|
2549
|
+
fetch: Ii,
|
|
2550
|
+
jquery: _i
|
|
2560
2551
|
}
|
|
2561
|
-
},
|
|
2552
|
+
}, Mi = {
|
|
2562
2553
|
info: {
|
|
2563
2554
|
key: "native",
|
|
2564
2555
|
title: "Native JSON",
|
|
@@ -2592,16 +2583,16 @@ var Oi = {
|
|
|
2592
2583
|
}
|
|
2593
2584
|
return typeof a > "u" || a === "" ? "No JSON body" : JSON.stringify(a, null, n.indent);
|
|
2594
2585
|
}
|
|
2595
|
-
},
|
|
2586
|
+
}, Hi = {
|
|
2596
2587
|
info: {
|
|
2597
2588
|
key: "json",
|
|
2598
2589
|
title: "JSON",
|
|
2599
2590
|
default: "native"
|
|
2600
2591
|
},
|
|
2601
2592
|
clientsById: {
|
|
2602
|
-
native:
|
|
2593
|
+
native: Mi
|
|
2603
2594
|
}
|
|
2604
|
-
},
|
|
2595
|
+
}, Bi = {
|
|
2605
2596
|
info: {
|
|
2606
2597
|
key: "okhttp",
|
|
2607
2598
|
title: "OkHttp",
|
|
@@ -2618,16 +2609,16 @@ var Oi = {
|
|
|
2618
2609
|
l(`.addHeader("${p}", "${V(a[p])}")`, 1);
|
|
2619
2610
|
}), l(".build()", 1), r(), l("val response = client.newCall(request).execute()"), i();
|
|
2620
2611
|
}
|
|
2621
|
-
},
|
|
2612
|
+
}, Di = {
|
|
2622
2613
|
info: {
|
|
2623
2614
|
key: "kotlin",
|
|
2624
2615
|
title: "Kotlin",
|
|
2625
2616
|
default: "okhttp"
|
|
2626
2617
|
},
|
|
2627
2618
|
clientsById: {
|
|
2628
|
-
okhttp:
|
|
2619
|
+
okhttp: Bi
|
|
2629
2620
|
}
|
|
2630
|
-
},
|
|
2621
|
+
}, Vi = {
|
|
2631
2622
|
info: {
|
|
2632
2623
|
key: "axios",
|
|
2633
2624
|
title: "Axios",
|
|
@@ -2661,7 +2652,7 @@ var Oi = {
|
|
|
2661
2652
|
const p = J(u, { indent: " ", inlineCharacterLimit: 80 });
|
|
2662
2653
|
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();
|
|
2663
2654
|
}
|
|
2664
|
-
},
|
|
2655
|
+
}, Wi = {
|
|
2665
2656
|
info: {
|
|
2666
2657
|
key: "fetch",
|
|
2667
2658
|
title: "Fetch",
|
|
@@ -2721,7 +2712,7 @@ var Oi = {
|
|
|
2721
2712
|
});
|
|
2722
2713
|
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")');
|
|
2723
2714
|
}
|
|
2724
|
-
},
|
|
2715
|
+
}, zi = {
|
|
2725
2716
|
info: {
|
|
2726
2717
|
key: "native",
|
|
2727
2718
|
title: "HTTP",
|
|
@@ -2760,7 +2751,7 @@ var Oi = {
|
|
|
2760
2751
|
}
|
|
2761
2752
|
return l("req.end();"), i();
|
|
2762
2753
|
}
|
|
2763
|
-
},
|
|
2754
|
+
}, Ji = {
|
|
2764
2755
|
info: {
|
|
2765
2756
|
key: "request",
|
|
2766
2757
|
title: "Request",
|
|
@@ -2813,7 +2804,7 @@ var Oi = {
|
|
|
2813
2804
|
c(`jar.setCookie(request.cookie('${encodeURIComponent(y)}=${encodeURIComponent(v)}'), '${t}');`);
|
|
2814
2805
|
}), u(), m((y) => y.replace(/'JAR'/, "jar"))), l && d("const fs = require('fs');"), c(`const options = ${J(h, { indent: " ", inlineCharacterLimit: 80 })};`), u(), c("request(options, function (error, response, body) {"), c("if (error) throw new Error(error);", 1), u(), c("console.log(body);", 1), c("});"), p();
|
|
2815
2806
|
}
|
|
2816
|
-
},
|
|
2807
|
+
}, Gi = {
|
|
2817
2808
|
info: {
|
|
2818
2809
|
key: "unirest",
|
|
2819
2810
|
title: "Unirest",
|
|
@@ -2854,7 +2845,7 @@ var Oi = {
|
|
|
2854
2845
|
}
|
|
2855
2846
|
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();
|
|
2856
2847
|
}
|
|
2857
|
-
},
|
|
2848
|
+
}, Ki = {
|
|
2858
2849
|
info: {
|
|
2859
2850
|
key: "node",
|
|
2860
2851
|
title: "Node.js",
|
|
@@ -2862,11 +2853,11 @@ var Oi = {
|
|
|
2862
2853
|
cli: "node %s"
|
|
2863
2854
|
},
|
|
2864
2855
|
clientsById: {
|
|
2865
|
-
native:
|
|
2866
|
-
request:
|
|
2867
|
-
unirest:
|
|
2868
|
-
axios:
|
|
2869
|
-
fetch:
|
|
2856
|
+
native: zi,
|
|
2857
|
+
request: Ji,
|
|
2858
|
+
unirest: Gi,
|
|
2859
|
+
axios: Vi,
|
|
2860
|
+
fetch: Wi
|
|
2870
2861
|
}
|
|
2871
2862
|
}, wt = (e, t, n, a) => {
|
|
2872
2863
|
const s = `${e} *${t} = `, o = Mt(n, a ? s.length : void 0);
|
|
@@ -2890,7 +2881,7 @@ var Oi = {
|
|
|
2890
2881
|
default:
|
|
2891
2882
|
return e == null ? "" : `@"${e.toString().replace(/"/g, '\\"')}"`;
|
|
2892
2883
|
}
|
|
2893
|
-
},
|
|
2884
|
+
}, Qi = {
|
|
2894
2885
|
info: {
|
|
2895
2886
|
key: "nsurlsession",
|
|
2896
2887
|
title: "NSURLSession",
|
|
@@ -2947,16 +2938,16 @@ var Oi = {
|
|
|
2947
2938
|
2
|
|
2948
2939
|
), r(' NSLog(@"%@", httpResponse);', 2), r(" }", 1), r(" }];"), r("[dataTask resume];"), i();
|
|
2949
2940
|
}
|
|
2950
|
-
},
|
|
2941
|
+
}, Yi = {
|
|
2951
2942
|
info: {
|
|
2952
2943
|
key: "objc",
|
|
2953
2944
|
title: "Objective-C",
|
|
2954
2945
|
default: "nsurlsession"
|
|
2955
2946
|
},
|
|
2956
2947
|
clientsById: {
|
|
2957
|
-
nsurlsession:
|
|
2948
|
+
nsurlsession: Qi
|
|
2958
2949
|
}
|
|
2959
|
-
},
|
|
2950
|
+
}, Xi = {
|
|
2960
2951
|
info: {
|
|
2961
2952
|
key: "cohttp",
|
|
2962
2953
|
title: "CoHTTP",
|
|
@@ -2982,14 +2973,14 @@ var Oi = {
|
|
|
2982
2973
|
const p = u.length ? "~headers " : "", d = n.text ? "~body " : "", m = r.includes(a.toLowerCase()) ? `\`${a.toUpperCase()}` : `(Code.method_of_string "${a}")`;
|
|
2983
2974
|
return i(`Client.call ${p}${d}${m} uri`), i(">>= fun (res, body_stream) ->"), i("(* Do stuff with the result *)", 1), c();
|
|
2984
2975
|
}
|
|
2985
|
-
},
|
|
2976
|
+
}, Zi = {
|
|
2986
2977
|
info: {
|
|
2987
2978
|
key: "ocaml",
|
|
2988
2979
|
title: "OCaml",
|
|
2989
2980
|
default: "cohttp"
|
|
2990
2981
|
},
|
|
2991
2982
|
clientsById: {
|
|
2992
|
-
cohttp:
|
|
2983
|
+
cohttp: Xi
|
|
2993
2984
|
}
|
|
2994
2985
|
}, F = (e, t, n) => {
|
|
2995
2986
|
switch (n = n || "", t = t || "", Object.prototype.toString.call(e)) {
|
|
@@ -3050,7 +3041,7 @@ ${n}]`;
|
|
|
3050
3041
|
"UNLOCK",
|
|
3051
3042
|
"UPDATE",
|
|
3052
3043
|
"VERSION_CONTROL"
|
|
3053
|
-
],
|
|
3044
|
+
], es = {
|
|
3054
3045
|
info: {
|
|
3055
3046
|
key: "curl",
|
|
3056
3047
|
title: "cURL",
|
|
@@ -3128,7 +3119,7 @@ ${c}` });
|
|
|
3128
3119
|
return S.length && (x.push("CURLOPT_HTTPHEADER => ["), x.push(S.join(`,
|
|
3129
3120
|
${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = curl_exec($curl);"), y("$err = curl_error($curl);"), v(), y("curl_close($curl);"), v(), y("if ($err) {"), y(p ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), y("} else {"), y("echo $response;", 1), y("}"), !d && l && (v(), y("?>")), b();
|
|
3130
3121
|
}
|
|
3131
|
-
},
|
|
3122
|
+
}, ts = {
|
|
3132
3123
|
info: {
|
|
3133
3124
|
key: "guzzle",
|
|
3134
3125
|
title: "Guzzle",
|
|
@@ -3179,7 +3170,7 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3179
3170
|
return h.length && m.push(`${r.indent}${r.indent}'cookie' => '${Je(h)}',`), m.length && (p("'headers' => [", 1), p(m.join(`
|
|
3180
3171
|
`)), 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();
|
|
3181
3172
|
}
|
|
3182
|
-
},
|
|
3173
|
+
}, ns = {
|
|
3183
3174
|
info: {
|
|
3184
3175
|
key: "http1",
|
|
3185
3176
|
title: "HTTP v1",
|
|
@@ -3201,7 +3192,7 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3201
3192
|
}
|
|
3202
3193
|
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();
|
|
3203
3194
|
}
|
|
3204
|
-
},
|
|
3195
|
+
}, rs = {
|
|
3205
3196
|
info: {
|
|
3206
3197
|
key: "http2",
|
|
3207
3198
|
title: "HTTP v2",
|
|
@@ -3249,7 +3240,7 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3249
3240
|
}
|
|
3250
3241
|
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();
|
|
3251
3242
|
}
|
|
3252
|
-
},
|
|
3243
|
+
}, as = {
|
|
3253
3244
|
info: {
|
|
3254
3245
|
key: "php",
|
|
3255
3246
|
title: "PHP",
|
|
@@ -3257,10 +3248,10 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3257
3248
|
cli: "php %s"
|
|
3258
3249
|
},
|
|
3259
3250
|
clientsById: {
|
|
3260
|
-
curl:
|
|
3261
|
-
guzzle:
|
|
3262
|
-
http1:
|
|
3263
|
-
http2:
|
|
3251
|
+
curl: es,
|
|
3252
|
+
guzzle: ts,
|
|
3253
|
+
http1: ns,
|
|
3254
|
+
http2: rs
|
|
3264
3255
|
}
|
|
3265
3256
|
}, ia = (e) => ({ method: n, headersObj: a, cookies: s, uriObj: o, fullUrl: r, postData: i, allHeaders: l }) => {
|
|
3266
3257
|
const { push: c, join: u } = new O();
|
|
@@ -3274,7 +3265,7 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3274
3265
|
}), d.push("-WebSession $session")), i.text && (d.push(
|
|
3275
3266
|
`-ContentType '${ze(de(l, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
|
|
3276
3267
|
), d.push(`-Body '${i.text}'`)), c(`$response = ${e} -Uri '${r}' -Method ${n} ${d.join(" ")}`.trim()), u();
|
|
3277
|
-
},
|
|
3268
|
+
}, os = {
|
|
3278
3269
|
info: {
|
|
3279
3270
|
key: "restmethod",
|
|
3280
3271
|
title: "Invoke-RestMethod",
|
|
@@ -3283,7 +3274,7 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3283
3274
|
extname: ".ps1"
|
|
3284
3275
|
},
|
|
3285
3276
|
convert: ia("Invoke-RestMethod")
|
|
3286
|
-
},
|
|
3277
|
+
}, is = {
|
|
3287
3278
|
info: {
|
|
3288
3279
|
key: "webrequest",
|
|
3289
3280
|
title: "Invoke-WebRequest",
|
|
@@ -3292,15 +3283,15 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3292
3283
|
extname: ".ps1"
|
|
3293
3284
|
},
|
|
3294
3285
|
convert: ia("Invoke-WebRequest")
|
|
3295
|
-
},
|
|
3286
|
+
}, ss = {
|
|
3296
3287
|
info: {
|
|
3297
3288
|
key: "powershell",
|
|
3298
3289
|
title: "Powershell",
|
|
3299
3290
|
default: "webrequest"
|
|
3300
3291
|
},
|
|
3301
3292
|
clientsById: {
|
|
3302
|
-
webrequest:
|
|
3303
|
-
restmethod:
|
|
3293
|
+
webrequest: is,
|
|
3294
|
+
restmethod: os
|
|
3304
3295
|
}
|
|
3305
3296
|
};
|
|
3306
3297
|
function Fn(e, t, n, a, s) {
|
|
@@ -3332,7 +3323,7 @@ var Re = (e, t, n) => {
|
|
|
3332
3323
|
default:
|
|
3333
3324
|
return e == null ? "" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
3334
3325
|
}
|
|
3335
|
-
},
|
|
3326
|
+
}, ls = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], cs = {
|
|
3336
3327
|
info: {
|
|
3337
3328
|
key: "requests",
|
|
3338
3329
|
title: "Requests",
|
|
@@ -3395,10 +3386,10 @@ var Re = (e, t, n) => {
|
|
|
3395
3386
|
r(g !== v ? `"${x}": "${V(u[x])}",` : `"${x}": "${V(u[x])}"`, 1), g += 1;
|
|
3396
3387
|
}), r("}"), i();
|
|
3397
3388
|
}
|
|
3398
|
-
let b =
|
|
3389
|
+
let b = ls.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
|
|
3399
3390
|
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();
|
|
3400
3391
|
}
|
|
3401
|
-
},
|
|
3392
|
+
}, us = {
|
|
3402
3393
|
info: {
|
|
3403
3394
|
key: "python",
|
|
3404
3395
|
title: "Python",
|
|
@@ -3406,9 +3397,9 @@ var Re = (e, t, n) => {
|
|
|
3406
3397
|
cli: "python3 %s"
|
|
3407
3398
|
},
|
|
3408
3399
|
clientsById: {
|
|
3409
|
-
requests:
|
|
3400
|
+
requests: cs
|
|
3410
3401
|
}
|
|
3411
|
-
},
|
|
3402
|
+
}, ds = {
|
|
3412
3403
|
info: {
|
|
3413
3404
|
key: "httr",
|
|
3414
3405
|
title: "httr",
|
|
@@ -3447,16 +3438,16 @@ var Re = (e, t, n) => {
|
|
|
3447
3438
|
const w = [g, v, y, h].filter((S) => !!S).join(", ");
|
|
3448
3439
|
return w && (x += `, ${w}`), (a.text || a.jsonObj || a.params) && (x += ", encode = encode"), x += ")", r(x), i(), r('content(response, "text")'), l();
|
|
3449
3440
|
}
|
|
3450
|
-
},
|
|
3441
|
+
}, fs = {
|
|
3451
3442
|
info: {
|
|
3452
3443
|
key: "r",
|
|
3453
3444
|
title: "R",
|
|
3454
3445
|
default: "httr"
|
|
3455
3446
|
},
|
|
3456
3447
|
clientsById: {
|
|
3457
|
-
httr:
|
|
3448
|
+
httr: ds
|
|
3458
3449
|
}
|
|
3459
|
-
},
|
|
3450
|
+
}, ps = {
|
|
3460
3451
|
info: {
|
|
3461
3452
|
key: "native",
|
|
3462
3453
|
title: "net::http",
|
|
@@ -3487,16 +3478,16 @@ var Re = (e, t, n) => {
|
|
|
3487
3478
|
o(`request["${d}"] = '${Je(s[d])}'`);
|
|
3488
3479
|
}), a.text && o(`request.body = ${JSON.stringify(a.text)}`), r(), o("response = http.request(request)"), o("puts response.read_body"), i();
|
|
3489
3480
|
}
|
|
3490
|
-
},
|
|
3481
|
+
}, ms = {
|
|
3491
3482
|
info: {
|
|
3492
3483
|
key: "ruby",
|
|
3493
3484
|
title: "Ruby",
|
|
3494
3485
|
default: "native"
|
|
3495
3486
|
},
|
|
3496
3487
|
clientsById: {
|
|
3497
|
-
native:
|
|
3488
|
+
native: ps
|
|
3498
3489
|
}
|
|
3499
|
-
}, z = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`,
|
|
3490
|
+
}, z = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, hs = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), ys = {
|
|
3500
3491
|
"http1.0": "0",
|
|
3501
3492
|
"url ": "",
|
|
3502
3493
|
cookie: "b",
|
|
@@ -3506,13 +3497,13 @@ var Re = (e, t, n) => {
|
|
|
3506
3497
|
header: "H",
|
|
3507
3498
|
insecure: "k",
|
|
3508
3499
|
request: "X"
|
|
3509
|
-
},
|
|
3500
|
+
}, gs = (e) => (t) => {
|
|
3510
3501
|
if (e) {
|
|
3511
|
-
const n =
|
|
3502
|
+
const n = ys[t];
|
|
3512
3503
|
return n ? `-${n}` : "";
|
|
3513
3504
|
}
|
|
3514
3505
|
return `--${t}`;
|
|
3515
|
-
},
|
|
3506
|
+
}, vs = {
|
|
3516
3507
|
info: {
|
|
3517
3508
|
key: "curl",
|
|
3518
3509
|
title: "cURL",
|
|
@@ -3526,7 +3517,7 @@ var Re = (e, t, n) => {
|
|
|
3526
3517
|
...typeof i == "string" ? { indent: i } : {},
|
|
3527
3518
|
join: i !== !1 ? ` \\
|
|
3528
3519
|
${i}` : " "
|
|
3529
|
-
}), h =
|
|
3520
|
+
}), h = gs(l);
|
|
3530
3521
|
let y = z(e);
|
|
3531
3522
|
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") {
|
|
3532
3523
|
const b = Y(a, "content-type");
|
|
@@ -3558,7 +3549,7 @@ ${i}` : " "
|
|
|
3558
3549
|
if (!o.text)
|
|
3559
3550
|
break;
|
|
3560
3551
|
let b = !1;
|
|
3561
|
-
if (
|
|
3552
|
+
if (gi(o.mimeType) && o.text.length > 20)
|
|
3562
3553
|
try {
|
|
3563
3554
|
const g = JSON.parse(o.text);
|
|
3564
3555
|
b = !0, o.text.indexOf("'") > 0 ? d(
|
|
@@ -3580,7 +3571,7 @@ ${JSON.stringify(g, null, p)}
|
|
|
3580
3571
|
}
|
|
3581
3572
|
return m();
|
|
3582
3573
|
}
|
|
3583
|
-
},
|
|
3574
|
+
}, bs = {
|
|
3584
3575
|
info: {
|
|
3585
3576
|
key: "httpie",
|
|
3586
3577
|
title: "HTTPie",
|
|
@@ -3629,7 +3620,7 @@ ${i.indent}` : " "
|
|
|
3629
3620
|
}
|
|
3630
3621
|
return c();
|
|
3631
3622
|
}
|
|
3632
|
-
},
|
|
3623
|
+
}, xs = {
|
|
3633
3624
|
info: {
|
|
3634
3625
|
key: "wget",
|
|
3635
3626
|
title: "Wget",
|
|
@@ -3651,9 +3642,9 @@ ${o.indent}` : " "
|
|
|
3651
3642
|
return o.verbose ? r(`wget ${o.short ? "-v" : "--verbose"}`) : r(`wget ${o.short ? "-q" : "--quiet"}`), r(`--method ${z(e)}`), Object.keys(n).forEach((l) => {
|
|
3652
3643
|
const c = `${l}: ${n[l]}`;
|
|
3653
3644
|
r(`--header ${z(c)}`);
|
|
3654
|
-
}), t.text && r(`--body-data ${
|
|
3645
|
+
}), t.text && r(`--body-data ${hs(z(t.text))}`), r(o.short ? "-O" : "--output-document"), r(`- ${z(a)}`), i();
|
|
3655
3646
|
}
|
|
3656
|
-
},
|
|
3647
|
+
}, ks = {
|
|
3657
3648
|
info: {
|
|
3658
3649
|
key: "shell",
|
|
3659
3650
|
title: "Shell",
|
|
@@ -3661,9 +3652,9 @@ ${o.indent}` : " "
|
|
|
3661
3652
|
cli: "%s"
|
|
3662
3653
|
},
|
|
3663
3654
|
clientsById: {
|
|
3664
|
-
curl:
|
|
3665
|
-
httpie:
|
|
3666
|
-
wget:
|
|
3655
|
+
curl: vs,
|
|
3656
|
+
httpie: bs,
|
|
3657
|
+
wget: xs
|
|
3667
3658
|
}
|
|
3668
3659
|
}, qn = (e, t) => t.repeat(e), In = (e, t, n, a) => {
|
|
3669
3660
|
const s = qn(a, n), o = qn(a - 1, n), r = t ? `,
|
|
@@ -3698,7 +3689,7 @@ ${o}]` : `[${e.join(r)}]`;
|
|
|
3698
3689
|
default:
|
|
3699
3690
|
return e == null ? "nil" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
3700
3691
|
}
|
|
3701
|
-
},
|
|
3692
|
+
}, $s = {
|
|
3702
3693
|
info: {
|
|
3703
3694
|
key: "urlsession",
|
|
3704
3695
|
title: "URLSession",
|
|
@@ -3749,35 +3740,35 @@ ${o}]` : `[${e.join(r)}]`;
|
|
|
3749
3740
|
}
|
|
3750
3741
|
}), 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 = ${dt(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();
|
|
3751
3742
|
}
|
|
3752
|
-
},
|
|
3743
|
+
}, Ss = {
|
|
3753
3744
|
info: {
|
|
3754
3745
|
key: "swift",
|
|
3755
3746
|
title: "Swift",
|
|
3756
3747
|
default: "urlsession"
|
|
3757
3748
|
},
|
|
3758
3749
|
clientsById: {
|
|
3759
|
-
urlsession:
|
|
3760
|
-
}
|
|
3761
|
-
},
|
|
3762
|
-
c:
|
|
3763
|
-
clojure:
|
|
3764
|
-
csharp:
|
|
3765
|
-
go:
|
|
3766
|
-
http:
|
|
3767
|
-
java:
|
|
3768
|
-
javascript:
|
|
3769
|
-
json:
|
|
3770
|
-
kotlin:
|
|
3771
|
-
node:
|
|
3772
|
-
objc:
|
|
3773
|
-
ocaml:
|
|
3774
|
-
php:
|
|
3775
|
-
powershell:
|
|
3776
|
-
python:
|
|
3777
|
-
r:
|
|
3778
|
-
ruby:
|
|
3779
|
-
shell:
|
|
3780
|
-
swift:
|
|
3750
|
+
urlsession: $s
|
|
3751
|
+
}
|
|
3752
|
+
}, ws = {
|
|
3753
|
+
c: yi,
|
|
3754
|
+
clojure: xi,
|
|
3755
|
+
csharp: ji,
|
|
3756
|
+
go: Ti,
|
|
3757
|
+
http: Ci,
|
|
3758
|
+
java: Fi,
|
|
3759
|
+
javascript: Ui,
|
|
3760
|
+
json: Hi,
|
|
3761
|
+
kotlin: Di,
|
|
3762
|
+
node: Ki,
|
|
3763
|
+
objc: Yi,
|
|
3764
|
+
ocaml: Zi,
|
|
3765
|
+
php: as,
|
|
3766
|
+
powershell: ss,
|
|
3767
|
+
python: us,
|
|
3768
|
+
r: fs,
|
|
3769
|
+
ruby: ms,
|
|
3770
|
+
shell: ks,
|
|
3771
|
+
swift: Ss
|
|
3781
3772
|
}, ft = { exports: {} };
|
|
3782
3773
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
3783
3774
|
ft.exports;
|
|
@@ -3899,7 +3890,7 @@ ft.exports;
|
|
|
3899
3890
|
n.punycode = r;
|
|
3900
3891
|
})(ot);
|
|
3901
3892
|
})(ft, ft.exports);
|
|
3902
|
-
var
|
|
3893
|
+
var js = ft.exports, Ns = Error, Ts = EvalError, Os = RangeError, Cs = ReferenceError, sa = SyntaxError, Ye = TypeError, Ps = URIError, Es = function() {
|
|
3903
3894
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
3904
3895
|
return !1;
|
|
3905
3896
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -3922,32 +3913,32 @@ var Cs = ft.exports, Ps = Error, Es = EvalError, Rs = RangeError, As = Reference
|
|
|
3922
3913
|
return !1;
|
|
3923
3914
|
}
|
|
3924
3915
|
return !0;
|
|
3925
|
-
}, Ln = typeof Symbol < "u" && Symbol,
|
|
3926
|
-
return typeof Ln != "function" || typeof Symbol != "function" || typeof Ln("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 :
|
|
3916
|
+
}, Ln = typeof Symbol < "u" && Symbol, Rs = Es, As = function() {
|
|
3917
|
+
return typeof Ln != "function" || typeof Symbol != "function" || typeof Ln("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Rs();
|
|
3927
3918
|
}, jt = {
|
|
3928
3919
|
__proto__: null,
|
|
3929
3920
|
foo: {}
|
|
3930
|
-
},
|
|
3931
|
-
return { __proto__: jt }.foo === jt.foo && !(jt instanceof
|
|
3932
|
-
},
|
|
3921
|
+
}, Fs = Object, qs = function() {
|
|
3922
|
+
return { __proto__: jt }.foo === jt.foo && !(jt instanceof Fs);
|
|
3923
|
+
}, Is = "Function.prototype.bind called on incompatible ", _s = Object.prototype.toString, Ls = Math.max, Us = "[object Function]", Un = function(t, n) {
|
|
3933
3924
|
for (var a = [], s = 0; s < t.length; s += 1)
|
|
3934
3925
|
a[s] = t[s];
|
|
3935
3926
|
for (var o = 0; o < n.length; o += 1)
|
|
3936
3927
|
a[o + t.length] = n[o];
|
|
3937
3928
|
return a;
|
|
3938
|
-
},
|
|
3929
|
+
}, Ms = function(t, n) {
|
|
3939
3930
|
for (var a = [], s = n, o = 0; s < t.length; s += 1, o += 1)
|
|
3940
3931
|
a[o] = t[s];
|
|
3941
3932
|
return a;
|
|
3942
|
-
},
|
|
3933
|
+
}, Hs = function(e, t) {
|
|
3943
3934
|
for (var n = "", a = 0; a < e.length; a += 1)
|
|
3944
3935
|
n += e[a], a + 1 < e.length && (n += t);
|
|
3945
3936
|
return n;
|
|
3946
|
-
},
|
|
3937
|
+
}, Bs = function(t) {
|
|
3947
3938
|
var n = this;
|
|
3948
|
-
if (typeof n != "function" ||
|
|
3949
|
-
throw new TypeError(
|
|
3950
|
-
for (var a =
|
|
3939
|
+
if (typeof n != "function" || _s.apply(n) !== Us)
|
|
3940
|
+
throw new TypeError(Is + n);
|
|
3941
|
+
for (var a = Ms(arguments, 1), s, o = function() {
|
|
3951
3942
|
if (this instanceof s) {
|
|
3952
3943
|
var u = n.apply(
|
|
3953
3944
|
this,
|
|
@@ -3959,15 +3950,15 @@ var Cs = ft.exports, Ps = Error, Es = EvalError, Rs = RangeError, As = Reference
|
|
|
3959
3950
|
t,
|
|
3960
3951
|
Un(a, arguments)
|
|
3961
3952
|
);
|
|
3962
|
-
}, r =
|
|
3953
|
+
}, r = Ls(0, n.length - a.length), i = [], l = 0; l < r; l++)
|
|
3963
3954
|
i[l] = "$" + l;
|
|
3964
|
-
if (s = Function("binder", "return function (" +
|
|
3955
|
+
if (s = Function("binder", "return function (" + Hs(i, ",") + "){ return binder.apply(this,arguments); }")(o), n.prototype) {
|
|
3965
3956
|
var c = function() {
|
|
3966
3957
|
};
|
|
3967
3958
|
c.prototype = n.prototype, s.prototype = new c(), c.prototype = null;
|
|
3968
3959
|
}
|
|
3969
3960
|
return s;
|
|
3970
|
-
},
|
|
3961
|
+
}, Ds = Bs, fn = Function.prototype.bind || Ds, Vs = Function.prototype.call, Ws = Object.prototype.hasOwnProperty, zs = fn, Js = zs.call(Vs, Ws), T, Gs = Ns, Ks = Ts, Qs = Os, Ys = Cs, Ie = sa, Ae = Ye, Xs = Ps, la = Function, Nt = function(e) {
|
|
3971
3962
|
try {
|
|
3972
3963
|
return la('"use strict"; return (' + e + ").constructor;")();
|
|
3973
3964
|
} catch {
|
|
@@ -3981,7 +3972,7 @@ if (we)
|
|
|
3981
3972
|
}
|
|
3982
3973
|
var Tt = function() {
|
|
3983
3974
|
throw new Ae();
|
|
3984
|
-
},
|
|
3975
|
+
}, Zs = we ? function() {
|
|
3985
3976
|
try {
|
|
3986
3977
|
return arguments.callee, Tt;
|
|
3987
3978
|
} catch {
|
|
@@ -3991,9 +3982,9 @@ var Tt = function() {
|
|
|
3991
3982
|
return Tt;
|
|
3992
3983
|
}
|
|
3993
3984
|
}
|
|
3994
|
-
}() : Tt, Te =
|
|
3985
|
+
}() : Tt, Te = As(), el = qs(), D = Object.getPrototypeOf || (el ? function(e) {
|
|
3995
3986
|
return e.__proto__;
|
|
3996
|
-
} : null), Ee = {},
|
|
3987
|
+
} : null), Ee = {}, tl = typeof Uint8Array > "u" || !D ? T : D(Uint8Array), je = {
|
|
3997
3988
|
__proto__: null,
|
|
3998
3989
|
"%AggregateError%": typeof AggregateError > "u" ? T : AggregateError,
|
|
3999
3990
|
"%Array%": Array,
|
|
@@ -4015,10 +4006,10 @@ var Tt = function() {
|
|
|
4015
4006
|
"%decodeURIComponent%": decodeURIComponent,
|
|
4016
4007
|
"%encodeURI%": encodeURI,
|
|
4017
4008
|
"%encodeURIComponent%": encodeURIComponent,
|
|
4018
|
-
"%Error%":
|
|
4009
|
+
"%Error%": Gs,
|
|
4019
4010
|
"%eval%": eval,
|
|
4020
4011
|
// eslint-disable-line no-eval
|
|
4021
|
-
"%EvalError%":
|
|
4012
|
+
"%EvalError%": Ks,
|
|
4022
4013
|
"%Float32Array%": typeof Float32Array > "u" ? T : Float32Array,
|
|
4023
4014
|
"%Float64Array%": typeof Float64Array > "u" ? T : Float64Array,
|
|
4024
4015
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? T : FinalizationRegistry,
|
|
@@ -4040,8 +4031,8 @@ var Tt = function() {
|
|
|
4040
4031
|
"%parseInt%": parseInt,
|
|
4041
4032
|
"%Promise%": typeof Promise > "u" ? T : Promise,
|
|
4042
4033
|
"%Proxy%": typeof Proxy > "u" ? T : Proxy,
|
|
4043
|
-
"%RangeError%":
|
|
4044
|
-
"%ReferenceError%":
|
|
4034
|
+
"%RangeError%": Qs,
|
|
4035
|
+
"%ReferenceError%": Ys,
|
|
4045
4036
|
"%Reflect%": typeof Reflect > "u" ? T : Reflect,
|
|
4046
4037
|
"%RegExp%": RegExp,
|
|
4047
4038
|
"%Set%": typeof Set > "u" ? T : Set,
|
|
@@ -4051,14 +4042,14 @@ var Tt = function() {
|
|
|
4051
4042
|
"%StringIteratorPrototype%": Te && D ? D(""[Symbol.iterator]()) : T,
|
|
4052
4043
|
"%Symbol%": Te ? Symbol : T,
|
|
4053
4044
|
"%SyntaxError%": Ie,
|
|
4054
|
-
"%ThrowTypeError%":
|
|
4055
|
-
"%TypedArray%":
|
|
4045
|
+
"%ThrowTypeError%": Zs,
|
|
4046
|
+
"%TypedArray%": tl,
|
|
4056
4047
|
"%TypeError%": Ae,
|
|
4057
4048
|
"%Uint8Array%": typeof Uint8Array > "u" ? T : Uint8Array,
|
|
4058
4049
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? T : Uint8ClampedArray,
|
|
4059
4050
|
"%Uint16Array%": typeof Uint16Array > "u" ? T : Uint16Array,
|
|
4060
4051
|
"%Uint32Array%": typeof Uint32Array > "u" ? T : Uint32Array,
|
|
4061
|
-
"%URIError%":
|
|
4052
|
+
"%URIError%": Xs,
|
|
4062
4053
|
"%WeakMap%": typeof WeakMap > "u" ? T : WeakMap,
|
|
4063
4054
|
"%WeakRef%": typeof WeakRef > "u" ? T : WeakRef,
|
|
4064
4055
|
"%WeakSet%": typeof WeakSet > "u" ? T : WeakSet
|
|
@@ -4067,10 +4058,10 @@ if (D)
|
|
|
4067
4058
|
try {
|
|
4068
4059
|
null.error;
|
|
4069
4060
|
} catch (e) {
|
|
4070
|
-
var
|
|
4071
|
-
je["%Error.prototype%"] =
|
|
4061
|
+
var nl = D(D(e));
|
|
4062
|
+
je["%Error.prototype%"] = nl;
|
|
4072
4063
|
}
|
|
4073
|
-
var
|
|
4064
|
+
var rl = function e(t) {
|
|
4074
4065
|
var n;
|
|
4075
4066
|
if (t === "%AsyncFunction%")
|
|
4076
4067
|
n = Nt("async function () {}");
|
|
@@ -4139,21 +4130,21 @@ var sl = function e(t) {
|
|
|
4139
4130
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
4140
4131
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
4141
4132
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
4142
|
-
}, Xe = fn, pt =
|
|
4133
|
+
}, Xe = fn, pt = Js, al = Xe.call(Function.call, Array.prototype.concat), ol = Xe.call(Function.apply, Array.prototype.splice), Hn = Xe.call(Function.call, String.prototype.replace), mt = Xe.call(Function.call, String.prototype.slice), il = Xe.call(Function.call, RegExp.prototype.exec), sl = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, ll = /\\(\\)?/g, cl = function(t) {
|
|
4143
4134
|
var n = mt(t, 0, 1), a = mt(t, -1);
|
|
4144
4135
|
if (n === "%" && a !== "%")
|
|
4145
4136
|
throw new Ie("invalid intrinsic syntax, expected closing `%`");
|
|
4146
4137
|
if (a === "%" && n !== "%")
|
|
4147
4138
|
throw new Ie("invalid intrinsic syntax, expected opening `%`");
|
|
4148
4139
|
var s = [];
|
|
4149
|
-
return Hn(t,
|
|
4150
|
-
s[s.length] = i ? Hn(l,
|
|
4140
|
+
return Hn(t, sl, function(o, r, i, l) {
|
|
4141
|
+
s[s.length] = i ? Hn(l, ll, "$1") : r || o;
|
|
4151
4142
|
}), s;
|
|
4152
|
-
},
|
|
4143
|
+
}, ul = function(t, n) {
|
|
4153
4144
|
var a = t, s;
|
|
4154
4145
|
if (pt(Mn, a) && (s = Mn[a], a = "%" + s[0] + "%"), pt(je, a)) {
|
|
4155
4146
|
var o = je[a];
|
|
4156
|
-
if (o === Ee && (o =
|
|
4147
|
+
if (o === Ee && (o = rl(a)), typeof o > "u" && !n)
|
|
4157
4148
|
throw new Ae("intrinsic " + t + " exists, but is not available. Please file an issue!");
|
|
4158
4149
|
return {
|
|
4159
4150
|
alias: s,
|
|
@@ -4167,10 +4158,10 @@ var sl = function e(t) {
|
|
|
4167
4158
|
throw new Ae("intrinsic name must be a non-empty string");
|
|
4168
4159
|
if (arguments.length > 1 && typeof n != "boolean")
|
|
4169
4160
|
throw new Ae('"allowMissing" argument must be a boolean');
|
|
4170
|
-
if (
|
|
4161
|
+
if (il(/^%?[^%]*%?$/, t) === null)
|
|
4171
4162
|
throw new Ie("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
4172
|
-
var a =
|
|
4173
|
-
c && (s = c[0],
|
|
4163
|
+
var a = cl(t), s = a.length > 0 ? a[0] : "", o = ul("%" + s + "%", n), r = o.name, i = o.value, l = !1, c = o.alias;
|
|
4164
|
+
c && (s = c[0], ol(a, al([0, 1], c)));
|
|
4174
4165
|
for (var u = 1, p = !0; u < a.length; u += 1) {
|
|
4175
4166
|
var d = a[u], m = mt(d, 0, 1), h = mt(d, -1);
|
|
4176
4167
|
if ((m === '"' || m === "'" || m === "`" || h === '"' || h === "'" || h === "`") && m !== h)
|
|
@@ -4205,14 +4196,14 @@ function pn() {
|
|
|
4205
4196
|
}
|
|
4206
4197
|
return Ot = t, Ot;
|
|
4207
4198
|
}
|
|
4208
|
-
var
|
|
4199
|
+
var dl = Ue, st = dl("%Object.getOwnPropertyDescriptor%", !0);
|
|
4209
4200
|
if (st)
|
|
4210
4201
|
try {
|
|
4211
4202
|
st([], "length");
|
|
4212
4203
|
} catch {
|
|
4213
4204
|
st = null;
|
|
4214
4205
|
}
|
|
4215
|
-
var ua = st, Dn = pn(),
|
|
4206
|
+
var ua = st, Dn = pn(), fl = sa, Oe = Ye, Vn = ua, pl = function(t, n, a) {
|
|
4216
4207
|
if (!t || typeof t != "object" && typeof t != "function")
|
|
4217
4208
|
throw new Oe("`obj` must be an object or a function`");
|
|
4218
4209
|
if (typeof n != "string" && typeof n != "symbol")
|
|
@@ -4236,7 +4227,7 @@ var ua = st, Dn = pn(), yl = sa, Oe = Ye, Vn = ua, gl = function(t, n, a) {
|
|
|
4236
4227
|
else if (i || !s && !o && !r)
|
|
4237
4228
|
t[n] = a;
|
|
4238
4229
|
else
|
|
4239
|
-
throw new
|
|
4230
|
+
throw new fl("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
4240
4231
|
}, Ht = pn(), da = function() {
|
|
4241
4232
|
return !!Ht;
|
|
4242
4233
|
};
|
|
@@ -4249,17 +4240,17 @@ da.hasArrayLengthDefineBug = function() {
|
|
|
4249
4240
|
return !0;
|
|
4250
4241
|
}
|
|
4251
4242
|
};
|
|
4252
|
-
var
|
|
4243
|
+
var ml = da, hl = Ue, Wn = pl, yl = ml(), zn = ua, Jn = Ye, gl = hl("%Math.floor%"), vl = function(t, n) {
|
|
4253
4244
|
if (typeof t != "function")
|
|
4254
4245
|
throw new Jn("`fn` is not a function");
|
|
4255
|
-
if (typeof n != "number" || n < 0 || n > 4294967295 ||
|
|
4246
|
+
if (typeof n != "number" || n < 0 || n > 4294967295 || gl(n) !== n)
|
|
4256
4247
|
throw new Jn("`length` must be a positive 32-bit integer");
|
|
4257
4248
|
var a = arguments.length > 2 && !!arguments[2], s = !0, o = !0;
|
|
4258
4249
|
if ("length" in t && zn) {
|
|
4259
4250
|
var r = zn(t, "length");
|
|
4260
4251
|
r && !r.configurable && (s = !1), r && !r.writable && (o = !1);
|
|
4261
4252
|
}
|
|
4262
|
-
return (s || o || !a) && (
|
|
4253
|
+
return (s || o || !a) && (yl ? Wn(
|
|
4263
4254
|
/** @type {Parameters<define>[0]} */
|
|
4264
4255
|
t,
|
|
4265
4256
|
"length",
|
|
@@ -4274,7 +4265,7 @@ var vl = da, bl = Ue, Wn = gl, xl = vl(), zn = ua, Jn = Ye, kl = bl("%Math.floor
|
|
|
4274
4265
|
)), t;
|
|
4275
4266
|
};
|
|
4276
4267
|
(function(e) {
|
|
4277
|
-
var t = fn, n = Ue, a =
|
|
4268
|
+
var t = fn, n = Ue, a = vl, s = Ye, 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%");
|
|
4278
4269
|
e.exports = function(d) {
|
|
4279
4270
|
if (typeof d != "function")
|
|
4280
4271
|
throw new s("a function is required");
|
|
@@ -4290,15 +4281,15 @@ var vl = da, bl = Ue, Wn = gl, xl = vl(), zn = ua, Jn = Ye, kl = bl("%Math.floor
|
|
|
4290
4281
|
};
|
|
4291
4282
|
l ? l(e.exports, "apply", { value: u }) : e.exports.apply = u;
|
|
4292
4283
|
})(ca);
|
|
4293
|
-
var
|
|
4284
|
+
var bl = ca.exports, fa = Ue, pa = bl, xl = pa(fa("String.prototype.indexOf")), kl = function(t, n) {
|
|
4294
4285
|
var a = fa(t, !!n);
|
|
4295
|
-
return typeof a == "function" &&
|
|
4286
|
+
return typeof a == "function" && xl(t, ".prototype.") > -1 ? pa(a) : a;
|
|
4296
4287
|
};
|
|
4297
|
-
const
|
|
4288
|
+
const $l = {}, Sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4298
4289
|
__proto__: null,
|
|
4299
|
-
default:
|
|
4300
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4301
|
-
var mn = typeof Map == "function" && Map.prototype, Ct = Object.getOwnPropertyDescriptor && mn ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ht = mn && Ct && typeof Ct.get == "function" ? Ct.get : null, Gn = mn && Map.prototype.forEach, hn = typeof Set == "function" && Set.prototype, Pt = Object.getOwnPropertyDescriptor && hn ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, yt = hn && Pt && typeof Pt.get == "function" ? Pt.get : null, Kn = hn && Set.prototype.forEach,
|
|
4290
|
+
default: $l
|
|
4291
|
+
}, Symbol.toStringTag, { value: "Module" })), wl = /* @__PURE__ */ po(Sl);
|
|
4292
|
+
var mn = typeof Map == "function" && Map.prototype, Ct = Object.getOwnPropertyDescriptor && mn ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ht = mn && Ct && typeof Ct.get == "function" ? Ct.get : null, Gn = mn && Map.prototype.forEach, hn = typeof Set == "function" && Set.prototype, Pt = Object.getOwnPropertyDescriptor && hn ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, yt = hn && Pt && typeof Pt.get == "function" ? Pt.get : null, Kn = hn && Set.prototype.forEach, jl = typeof WeakMap == "function" && WeakMap.prototype, De = jl ? WeakMap.prototype.has : null, Nl = typeof WeakSet == "function" && WeakSet.prototype, Ve = Nl ? WeakSet.prototype.has : null, Tl = typeof WeakRef == "function" && WeakRef.prototype, Qn = Tl ? WeakRef.prototype.deref : null, Ol = Boolean.prototype.valueOf, Cl = Object.prototype.toString, Pl = Function.prototype.toString, El = String.prototype.match, yn = String.prototype.slice, ve = String.prototype.replace, Rl = String.prototype.toUpperCase, Yn = String.prototype.toLowerCase, ma = RegExp.prototype.test, Xn = Array.prototype.concat, ue = Array.prototype.join, Al = Array.prototype.slice, Zn = Math.floor, Bt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Et = Object.getOwnPropertySymbols, Dt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, _e = typeof Symbol == "function" && typeof Symbol.iterator == "object", X = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === _e || !0) ? Symbol.toStringTag : null, ha = Object.prototype.propertyIsEnumerable, er = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
|
|
4302
4293
|
return e.__proto__;
|
|
4303
4294
|
} : null);
|
|
4304
4295
|
function tr(e, t) {
|
|
@@ -4314,7 +4305,7 @@ function tr(e, t) {
|
|
|
4314
4305
|
}
|
|
4315
4306
|
return ve.call(t, n, "$&_");
|
|
4316
4307
|
}
|
|
4317
|
-
var Vt =
|
|
4308
|
+
var Vt = wl, nr = Vt.custom, rr = ga(nr) ? nr : null, Fl = function e(t, n, a, s) {
|
|
4318
4309
|
var o = n || {};
|
|
4319
4310
|
if (ge(o, "quoteStyle") && o.quoteStyle !== "single" && o.quoteStyle !== "double")
|
|
4320
4311
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -4349,13 +4340,13 @@ var Vt = Ol, nr = Vt.custom, rr = ga(nr) ? nr : null, Ll = function e(t, n, a, s
|
|
|
4349
4340
|
var u = typeof o.depth > "u" ? 5 : o.depth;
|
|
4350
4341
|
if (typeof a > "u" && (a = 0), a >= u && u > 0 && typeof t == "object")
|
|
4351
4342
|
return Wt(t) ? "[Array]" : "[Object]";
|
|
4352
|
-
var p =
|
|
4343
|
+
var p = Xl(o, a);
|
|
4353
4344
|
if (typeof s > "u")
|
|
4354
4345
|
s = [];
|
|
4355
4346
|
else if (va(s, t) >= 0)
|
|
4356
4347
|
return "[Circular]";
|
|
4357
4348
|
function d(I, H, L) {
|
|
4358
|
-
if (H && (s =
|
|
4349
|
+
if (H && (s = Al.call(s), s.push(H)), L) {
|
|
4359
4350
|
var ee = {
|
|
4360
4351
|
depth: o.depth
|
|
4361
4352
|
};
|
|
@@ -4364,25 +4355,25 @@ var Vt = Ol, nr = Vt.custom, rr = ga(nr) ? nr : null, Ll = function e(t, n, a, s
|
|
|
4364
4355
|
return e(I, o, a + 1, s);
|
|
4365
4356
|
}
|
|
4366
4357
|
if (typeof t == "function" && !ar(t)) {
|
|
4367
|
-
var m =
|
|
4358
|
+
var m = Dl(t), h = et(t, d);
|
|
4368
4359
|
return "[Function" + (m ? ": " + m : " (anonymous)") + "]" + (h.length > 0 ? " { " + ue.call(h, ", ") + " }" : "");
|
|
4369
4360
|
}
|
|
4370
4361
|
if (ga(t)) {
|
|
4371
4362
|
var y = _e ? ve.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : Dt.call(t);
|
|
4372
4363
|
return typeof t == "object" && !_e ? He(y) : y;
|
|
4373
4364
|
}
|
|
4374
|
-
if (
|
|
4365
|
+
if (Kl(t)) {
|
|
4375
4366
|
for (var v = "<" + Yn.call(String(t.nodeName)), b = t.attributes || [], g = 0; g < b.length; g++)
|
|
4376
|
-
v += " " + b[g].name + "=" + ya(
|
|
4367
|
+
v += " " + b[g].name + "=" + ya(ql(b[g].value), "double", o);
|
|
4377
4368
|
return v += ">", t.childNodes && t.childNodes.length && (v += "..."), v += "</" + Yn.call(String(t.nodeName)) + ">", v;
|
|
4378
4369
|
}
|
|
4379
4370
|
if (Wt(t)) {
|
|
4380
4371
|
if (t.length === 0)
|
|
4381
4372
|
return "[]";
|
|
4382
4373
|
var x = et(t, d);
|
|
4383
|
-
return p && !
|
|
4374
|
+
return p && !Yl(x) ? "[" + zt(x, p) + "]" : "[ " + ue.call(x, ", ") + " ]";
|
|
4384
4375
|
}
|
|
4385
|
-
if (
|
|
4376
|
+
if (_l(t)) {
|
|
4386
4377
|
var w = et(t, d);
|
|
4387
4378
|
return !("cause" in Error.prototype) && "cause" in t && !ha.call(t, "cause") ? "{ [" + String(t) + "] " + ue.call(Xn.call("[cause]: " + d(t.cause), w), ", ") + " }" : w.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + ue.call(w, ", ") + " }";
|
|
4388
4379
|
}
|
|
@@ -4392,37 +4383,37 @@ var Vt = Ol, nr = Vt.custom, rr = ga(nr) ? nr : null, Ll = function e(t, n, a, s
|
|
|
4392
4383
|
if (r !== "symbol" && typeof t.inspect == "function")
|
|
4393
4384
|
return t.inspect();
|
|
4394
4385
|
}
|
|
4395
|
-
if (
|
|
4386
|
+
if (Vl(t)) {
|
|
4396
4387
|
var S = [];
|
|
4397
4388
|
return Gn && Gn.call(t, function(I, H) {
|
|
4398
4389
|
S.push(d(H, t, !0) + " => " + d(I, t));
|
|
4399
4390
|
}), or("Map", ht.call(t), S, p);
|
|
4400
4391
|
}
|
|
4401
|
-
if (
|
|
4392
|
+
if (Jl(t)) {
|
|
4402
4393
|
var k = [];
|
|
4403
4394
|
return Kn && Kn.call(t, function(I) {
|
|
4404
4395
|
k.push(d(I, t));
|
|
4405
4396
|
}), or("Set", yt.call(t), k, p);
|
|
4406
4397
|
}
|
|
4407
|
-
if (
|
|
4398
|
+
if (Wl(t))
|
|
4408
4399
|
return Rt("WeakMap");
|
|
4409
|
-
if (
|
|
4400
|
+
if (Gl(t))
|
|
4410
4401
|
return Rt("WeakSet");
|
|
4411
|
-
if (
|
|
4402
|
+
if (zl(t))
|
|
4412
4403
|
return Rt("WeakRef");
|
|
4413
|
-
if (
|
|
4404
|
+
if (Ul(t))
|
|
4414
4405
|
return He(d(Number(t)));
|
|
4415
|
-
if (
|
|
4406
|
+
if (Hl(t))
|
|
4416
4407
|
return He(d(Bt.call(t)));
|
|
4417
|
-
if (
|
|
4418
|
-
return He(
|
|
4419
|
-
if (
|
|
4408
|
+
if (Ml(t))
|
|
4409
|
+
return He(Ol.call(t));
|
|
4410
|
+
if (Ll(t))
|
|
4420
4411
|
return He(d(String(t)));
|
|
4421
4412
|
if (typeof window < "u" && t === window)
|
|
4422
4413
|
return "{ [object Window] }";
|
|
4423
4414
|
if (t === ot)
|
|
4424
4415
|
return "{ [object globalThis] }";
|
|
4425
|
-
if (!
|
|
4416
|
+
if (!Il(t) && !ar(t)) {
|
|
4426
4417
|
var C = et(t, d), P = er ? er(t) === Object.prototype : t instanceof Object || t.constructor === Object, R = t instanceof Object ? "" : "null prototype", q = !P && X && Object(t) === t && X in t ? yn.call(xe(t), 8, -1) : R ? "Object" : "", G = P || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", K = G + (q || R ? "[" + ue.call(Xn.call([], q || [], R || []), ": ") + "] " : "");
|
|
4427
4418
|
return C.length === 0 ? K + "{}" : p ? K + "{" + zt(C, p) + "}" : K + "{ " + ue.call(C, ", ") + " }";
|
|
4428
4419
|
}
|
|
@@ -4432,28 +4423,28 @@ function ya(e, t, n) {
|
|
|
4432
4423
|
var a = (n.quoteStyle || t) === "double" ? '"' : "'";
|
|
4433
4424
|
return a + e + a;
|
|
4434
4425
|
}
|
|
4435
|
-
function
|
|
4426
|
+
function ql(e) {
|
|
4436
4427
|
return ve.call(String(e), /"/g, """);
|
|
4437
4428
|
}
|
|
4438
4429
|
function Wt(e) {
|
|
4439
4430
|
return xe(e) === "[object Array]" && (!X || !(typeof e == "object" && X in e));
|
|
4440
4431
|
}
|
|
4441
|
-
function
|
|
4432
|
+
function Il(e) {
|
|
4442
4433
|
return xe(e) === "[object Date]" && (!X || !(typeof e == "object" && X in e));
|
|
4443
4434
|
}
|
|
4444
4435
|
function ar(e) {
|
|
4445
4436
|
return xe(e) === "[object RegExp]" && (!X || !(typeof e == "object" && X in e));
|
|
4446
4437
|
}
|
|
4447
|
-
function
|
|
4438
|
+
function _l(e) {
|
|
4448
4439
|
return xe(e) === "[object Error]" && (!X || !(typeof e == "object" && X in e));
|
|
4449
4440
|
}
|
|
4450
|
-
function
|
|
4441
|
+
function Ll(e) {
|
|
4451
4442
|
return xe(e) === "[object String]" && (!X || !(typeof e == "object" && X in e));
|
|
4452
4443
|
}
|
|
4453
|
-
function
|
|
4444
|
+
function Ul(e) {
|
|
4454
4445
|
return xe(e) === "[object Number]" && (!X || !(typeof e == "object" && X in e));
|
|
4455
4446
|
}
|
|
4456
|
-
function
|
|
4447
|
+
function Ml(e) {
|
|
4457
4448
|
return xe(e) === "[object Boolean]" && (!X || !(typeof e == "object" && X in e));
|
|
4458
4449
|
}
|
|
4459
4450
|
function ga(e) {
|
|
@@ -4469,7 +4460,7 @@ function ga(e) {
|
|
|
4469
4460
|
}
|
|
4470
4461
|
return !1;
|
|
4471
4462
|
}
|
|
4472
|
-
function
|
|
4463
|
+
function Hl(e) {
|
|
4473
4464
|
if (!e || typeof e != "object" || !Bt)
|
|
4474
4465
|
return !1;
|
|
4475
4466
|
try {
|
|
@@ -4478,19 +4469,19 @@ function Wl(e) {
|
|
|
4478
4469
|
}
|
|
4479
4470
|
return !1;
|
|
4480
4471
|
}
|
|
4481
|
-
var
|
|
4472
|
+
var Bl = Object.prototype.hasOwnProperty || function(e) {
|
|
4482
4473
|
return e in this;
|
|
4483
4474
|
};
|
|
4484
4475
|
function ge(e, t) {
|
|
4485
|
-
return
|
|
4476
|
+
return Bl.call(e, t);
|
|
4486
4477
|
}
|
|
4487
4478
|
function xe(e) {
|
|
4488
|
-
return
|
|
4479
|
+
return Cl.call(e);
|
|
4489
4480
|
}
|
|
4490
|
-
function
|
|
4481
|
+
function Dl(e) {
|
|
4491
4482
|
if (e.name)
|
|
4492
4483
|
return e.name;
|
|
4493
|
-
var t =
|
|
4484
|
+
var t = El.call(Pl.call(e), /^function\s*([\w$]+)/);
|
|
4494
4485
|
return t ? t[1] : null;
|
|
4495
4486
|
}
|
|
4496
4487
|
function va(e, t) {
|
|
@@ -4501,7 +4492,7 @@ function va(e, t) {
|
|
|
4501
4492
|
return n;
|
|
4502
4493
|
return -1;
|
|
4503
4494
|
}
|
|
4504
|
-
function
|
|
4495
|
+
function Vl(e) {
|
|
4505
4496
|
if (!ht || !e || typeof e != "object")
|
|
4506
4497
|
return !1;
|
|
4507
4498
|
try {
|
|
@@ -4516,7 +4507,7 @@ function Gl(e) {
|
|
|
4516
4507
|
}
|
|
4517
4508
|
return !1;
|
|
4518
4509
|
}
|
|
4519
|
-
function
|
|
4510
|
+
function Wl(e) {
|
|
4520
4511
|
if (!De || !e || typeof e != "object")
|
|
4521
4512
|
return !1;
|
|
4522
4513
|
try {
|
|
@@ -4531,7 +4522,7 @@ function Kl(e) {
|
|
|
4531
4522
|
}
|
|
4532
4523
|
return !1;
|
|
4533
4524
|
}
|
|
4534
|
-
function
|
|
4525
|
+
function zl(e) {
|
|
4535
4526
|
if (!Qn || !e || typeof e != "object")
|
|
4536
4527
|
return !1;
|
|
4537
4528
|
try {
|
|
@@ -4540,7 +4531,7 @@ function Ql(e) {
|
|
|
4540
4531
|
}
|
|
4541
4532
|
return !1;
|
|
4542
4533
|
}
|
|
4543
|
-
function
|
|
4534
|
+
function Jl(e) {
|
|
4544
4535
|
if (!yt || !e || typeof e != "object")
|
|
4545
4536
|
return !1;
|
|
4546
4537
|
try {
|
|
@@ -4555,7 +4546,7 @@ function Yl(e) {
|
|
|
4555
4546
|
}
|
|
4556
4547
|
return !1;
|
|
4557
4548
|
}
|
|
4558
|
-
function
|
|
4549
|
+
function Gl(e) {
|
|
4559
4550
|
if (!Ve || !e || typeof e != "object")
|
|
4560
4551
|
return !1;
|
|
4561
4552
|
try {
|
|
@@ -4570,7 +4561,7 @@ function Xl(e) {
|
|
|
4570
4561
|
}
|
|
4571
4562
|
return !1;
|
|
4572
4563
|
}
|
|
4573
|
-
function
|
|
4564
|
+
function Kl(e) {
|
|
4574
4565
|
return !e || typeof e != "object" ? !1 : typeof HTMLElement < "u" && e instanceof HTMLElement ? !0 : typeof e.nodeName == "string" && typeof e.getAttribute == "function";
|
|
4575
4566
|
}
|
|
4576
4567
|
function ba(e, t) {
|
|
@@ -4578,10 +4569,10 @@ function ba(e, t) {
|
|
|
4578
4569
|
var n = e.length - t.maxStringLength, a = "... " + n + " more character" + (n > 1 ? "s" : "");
|
|
4579
4570
|
return ba(yn.call(e, 0, t.maxStringLength), t) + a;
|
|
4580
4571
|
}
|
|
4581
|
-
var s = ve.call(ve.call(e, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g,
|
|
4572
|
+
var s = ve.call(ve.call(e, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ql);
|
|
4582
4573
|
return ya(s, "single", t);
|
|
4583
4574
|
}
|
|
4584
|
-
function
|
|
4575
|
+
function Ql(e) {
|
|
4585
4576
|
var t = e.charCodeAt(0), n = {
|
|
4586
4577
|
8: "b",
|
|
4587
4578
|
9: "t",
|
|
@@ -4589,7 +4580,7 @@ function ec(e) {
|
|
|
4589
4580
|
12: "f",
|
|
4590
4581
|
13: "r"
|
|
4591
4582
|
}[t];
|
|
4592
|
-
return n ? "\\" + n : "\\x" + (t < 16 ? "0" : "") +
|
|
4583
|
+
return n ? "\\" + n : "\\x" + (t < 16 ? "0" : "") + Rl.call(t.toString(16));
|
|
4593
4584
|
}
|
|
4594
4585
|
function He(e) {
|
|
4595
4586
|
return "Object(" + e + ")";
|
|
@@ -4601,14 +4592,14 @@ function or(e, t, n, a) {
|
|
|
4601
4592
|
var s = a ? zt(n, a) : ue.call(n, ", ");
|
|
4602
4593
|
return e + " (" + t + ") {" + s + "}";
|
|
4603
4594
|
}
|
|
4604
|
-
function
|
|
4595
|
+
function Yl(e) {
|
|
4605
4596
|
for (var t = 0; t < e.length; t++)
|
|
4606
4597
|
if (va(e[t], `
|
|
4607
4598
|
`) >= 0)
|
|
4608
4599
|
return !1;
|
|
4609
4600
|
return !0;
|
|
4610
4601
|
}
|
|
4611
|
-
function
|
|
4602
|
+
function Xl(e, t) {
|
|
4612
4603
|
var n;
|
|
4613
4604
|
if (e.indent === " ")
|
|
4614
4605
|
n = " ";
|
|
@@ -4649,15 +4640,15 @@ function et(e, t) {
|
|
|
4649
4640
|
ha.call(e, o[c]) && a.push("[" + t(o[c]) + "]: " + t(e[o[c]], e));
|
|
4650
4641
|
return a;
|
|
4651
4642
|
}
|
|
4652
|
-
var xa = Ue, Me =
|
|
4643
|
+
var xa = Ue, Me = kl, Zl = Fl, ec = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%", !0), tc = Me("WeakMap.prototype.get", !0), nc = Me("WeakMap.prototype.set", !0), rc = Me("WeakMap.prototype.has", !0), ac = Me("Map.prototype.get", !0), oc = Me("Map.prototype.set", !0), ic = Me("Map.prototype.has", !0), gn = function(e, t) {
|
|
4653
4644
|
for (var n = e, a; (a = n.next) !== null; n = a)
|
|
4654
4645
|
if (a.key === t)
|
|
4655
4646
|
return n.next = a.next, a.next = /** @type {NonNullable<typeof list.next>} */
|
|
4656
4647
|
e.next, e.next = a, a;
|
|
4657
|
-
},
|
|
4648
|
+
}, sc = function(e, t) {
|
|
4658
4649
|
var n = gn(e, t);
|
|
4659
4650
|
return n && n.value;
|
|
4660
|
-
},
|
|
4651
|
+
}, lc = function(e, t, n) {
|
|
4661
4652
|
var a = gn(e, t);
|
|
4662
4653
|
a ? a.value = n : e.next = /** @type {import('.').ListNode<typeof value>} */
|
|
4663
4654
|
{
|
|
@@ -4666,48 +4657,48 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4666
4657
|
next: e.next,
|
|
4667
4658
|
value: n
|
|
4668
4659
|
};
|
|
4669
|
-
},
|
|
4660
|
+
}, cc = function(e, t) {
|
|
4670
4661
|
return !!gn(e, t);
|
|
4671
|
-
},
|
|
4662
|
+
}, uc = function() {
|
|
4672
4663
|
var t, n, a, s = {
|
|
4673
4664
|
assert: function(o) {
|
|
4674
4665
|
if (!s.has(o))
|
|
4675
|
-
throw new
|
|
4666
|
+
throw new ec("Side channel does not contain " + Zl(o));
|
|
4676
4667
|
},
|
|
4677
4668
|
get: function(o) {
|
|
4678
4669
|
if (tt && o && (typeof o == "object" || typeof o == "function")) {
|
|
4679
4670
|
if (t)
|
|
4680
|
-
return
|
|
4671
|
+
return tc(t, o);
|
|
4681
4672
|
} else if (nt) {
|
|
4682
4673
|
if (n)
|
|
4683
|
-
return
|
|
4674
|
+
return ac(n, o);
|
|
4684
4675
|
} else if (a)
|
|
4685
|
-
return
|
|
4676
|
+
return sc(a, o);
|
|
4686
4677
|
},
|
|
4687
4678
|
has: function(o) {
|
|
4688
4679
|
if (tt && o && (typeof o == "object" || typeof o == "function")) {
|
|
4689
4680
|
if (t)
|
|
4690
|
-
return
|
|
4681
|
+
return rc(t, o);
|
|
4691
4682
|
} else if (nt) {
|
|
4692
4683
|
if (n)
|
|
4693
|
-
return
|
|
4684
|
+
return ic(n, o);
|
|
4694
4685
|
} else if (a)
|
|
4695
|
-
return
|
|
4686
|
+
return cc(a, o);
|
|
4696
4687
|
return !1;
|
|
4697
4688
|
},
|
|
4698
4689
|
set: function(o, r) {
|
|
4699
|
-
tt && o && (typeof o == "object" || typeof o == "function") ? (t || (t = new tt()),
|
|
4690
|
+
tt && o && (typeof o == "object" || typeof o == "function") ? (t || (t = new tt()), nc(t, o, r)) : nt ? (n || (n = new nt()), oc(n, o, r)) : (a || (a = { key: {}, next: null }), lc(a, o, r));
|
|
4700
4691
|
}
|
|
4701
4692
|
};
|
|
4702
4693
|
return s;
|
|
4703
|
-
},
|
|
4694
|
+
}, dc = String.prototype.replace, fc = /%20/g, At = {
|
|
4704
4695
|
RFC1738: "RFC1738",
|
|
4705
4696
|
RFC3986: "RFC3986"
|
|
4706
4697
|
}, vn = {
|
|
4707
4698
|
default: At.RFC3986,
|
|
4708
4699
|
formatters: {
|
|
4709
4700
|
RFC1738: function(e) {
|
|
4710
|
-
return
|
|
4701
|
+
return dc.call(e, fc, "+");
|
|
4711
4702
|
},
|
|
4712
4703
|
RFC3986: function(e) {
|
|
4713
4704
|
return String(e);
|
|
@@ -4715,11 +4706,11 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4715
4706
|
},
|
|
4716
4707
|
RFC1738: At.RFC1738,
|
|
4717
4708
|
RFC3986: At.RFC3986
|
|
4718
|
-
},
|
|
4709
|
+
}, pc = vn, Ft = Object.prototype.hasOwnProperty, $e = Array.isArray, le = function() {
|
|
4719
4710
|
for (var e = [], t = 0; t < 256; ++t)
|
|
4720
4711
|
e.push("%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase());
|
|
4721
4712
|
return e;
|
|
4722
|
-
}(),
|
|
4713
|
+
}(), mc = function(t) {
|
|
4723
4714
|
for (; t.length > 1; ) {
|
|
4724
4715
|
var n = t.pop(), a = n.obj[n.prop];
|
|
4725
4716
|
if ($e(a)) {
|
|
@@ -4732,7 +4723,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4732
4723
|
for (var a = n && n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, s = 0; s < t.length; ++s)
|
|
4733
4724
|
typeof t[s] < "u" && (a[s] = t[s]);
|
|
4734
4725
|
return a;
|
|
4735
|
-
},
|
|
4726
|
+
}, hc = function e(t, n, a) {
|
|
4736
4727
|
if (!n)
|
|
4737
4728
|
return t;
|
|
4738
4729
|
if (typeof n != "object") {
|
|
@@ -4757,11 +4748,11 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4757
4748
|
var i = n[r];
|
|
4758
4749
|
return Ft.call(o, r) ? o[r] = e(o[r], i, a) : o[r] = i, o;
|
|
4759
4750
|
}, s);
|
|
4760
|
-
},
|
|
4751
|
+
}, yc = function(t, n) {
|
|
4761
4752
|
return Object.keys(n).reduce(function(a, s) {
|
|
4762
4753
|
return a[s] = n[s], a;
|
|
4763
4754
|
}, t);
|
|
4764
|
-
},
|
|
4755
|
+
}, gc = function(e, t, n) {
|
|
4765
4756
|
var a = e.replace(/\+/g, " ");
|
|
4766
4757
|
if (n === "iso-8859-1")
|
|
4767
4758
|
return a.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -4770,7 +4761,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4770
4761
|
} catch {
|
|
4771
4762
|
return a;
|
|
4772
4763
|
}
|
|
4773
|
-
}, qt = 1024,
|
|
4764
|
+
}, qt = 1024, vc = function(t, n, a, s, o) {
|
|
4774
4765
|
if (t.length === 0)
|
|
4775
4766
|
return t;
|
|
4776
4767
|
var r = t;
|
|
@@ -4781,7 +4772,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4781
4772
|
for (var i = "", l = 0; l < r.length; l += qt) {
|
|
4782
4773
|
for (var c = r.length >= qt ? r.slice(l, l + qt) : r, u = [], p = 0; p < c.length; ++p) {
|
|
4783
4774
|
var d = c.charCodeAt(p);
|
|
4784
|
-
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || o ===
|
|
4775
|
+
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || o === pc.RFC1738 && (d === 40 || d === 41)) {
|
|
4785
4776
|
u[u.length] = c.charAt(p);
|
|
4786
4777
|
continue;
|
|
4787
4778
|
}
|
|
@@ -4802,20 +4793,20 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4802
4793
|
i += u.join("");
|
|
4803
4794
|
}
|
|
4804
4795
|
return i;
|
|
4805
|
-
},
|
|
4796
|
+
}, bc = function(t) {
|
|
4806
4797
|
for (var n = [{ obj: { o: t }, prop: "o" }], a = [], s = 0; s < n.length; ++s)
|
|
4807
4798
|
for (var o = n[s], r = o.obj[o.prop], i = Object.keys(r), l = 0; l < i.length; ++l) {
|
|
4808
4799
|
var c = i[l], u = r[c];
|
|
4809
4800
|
typeof u == "object" && u !== null && a.indexOf(u) === -1 && (n.push({ obj: r, prop: c }), a.push(u));
|
|
4810
4801
|
}
|
|
4811
|
-
return
|
|
4812
|
-
},
|
|
4802
|
+
return mc(n), t;
|
|
4803
|
+
}, xc = function(t) {
|
|
4813
4804
|
return Object.prototype.toString.call(t) === "[object RegExp]";
|
|
4814
|
-
},
|
|
4805
|
+
}, kc = function(t) {
|
|
4815
4806
|
return !t || typeof t != "object" ? !1 : !!(t.constructor && t.constructor.isBuffer && t.constructor.isBuffer(t));
|
|
4816
|
-
},
|
|
4807
|
+
}, $c = function(t, n) {
|
|
4817
4808
|
return [].concat(t, n);
|
|
4818
|
-
},
|
|
4809
|
+
}, Sc = function(t, n) {
|
|
4819
4810
|
if ($e(t)) {
|
|
4820
4811
|
for (var a = [], s = 0; s < t.length; s += 1)
|
|
4821
4812
|
a.push(n(t[s]));
|
|
@@ -4824,16 +4815,16 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4824
4815
|
return n(t);
|
|
4825
4816
|
}, $a = {
|
|
4826
4817
|
arrayToObject: ka,
|
|
4827
|
-
assign:
|
|
4828
|
-
combine:
|
|
4829
|
-
compact:
|
|
4830
|
-
decode:
|
|
4831
|
-
encode:
|
|
4832
|
-
isBuffer:
|
|
4833
|
-
isRegExp:
|
|
4834
|
-
maybeMap:
|
|
4835
|
-
merge:
|
|
4836
|
-
}, Sa =
|
|
4818
|
+
assign: yc,
|
|
4819
|
+
combine: $c,
|
|
4820
|
+
compact: bc,
|
|
4821
|
+
decode: gc,
|
|
4822
|
+
encode: vc,
|
|
4823
|
+
isBuffer: kc,
|
|
4824
|
+
isRegExp: xc,
|
|
4825
|
+
maybeMap: Sc,
|
|
4826
|
+
merge: hc
|
|
4827
|
+
}, Sa = uc, lt = $a, We = vn, wc = Object.prototype.hasOwnProperty, wa = {
|
|
4837
4828
|
brackets: function(t) {
|
|
4838
4829
|
return t + "[]";
|
|
4839
4830
|
},
|
|
@@ -4844,9 +4835,9 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4844
4835
|
repeat: function(t) {
|
|
4845
4836
|
return t;
|
|
4846
4837
|
}
|
|
4847
|
-
}, ce = Array.isArray,
|
|
4848
|
-
|
|
4849
|
-
},
|
|
4838
|
+
}, ce = Array.isArray, jc = Array.prototype.push, ja = function(e, t) {
|
|
4839
|
+
jc.apply(e, ce(t) ? t : [t]);
|
|
4840
|
+
}, Nc = Date.prototype.toISOString, ir = We.default, B = {
|
|
4850
4841
|
addQueryPrefix: !1,
|
|
4851
4842
|
allowDots: !1,
|
|
4852
4843
|
allowEmptyArrays: !1,
|
|
@@ -4863,13 +4854,13 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4863
4854
|
// deprecated
|
|
4864
4855
|
indices: !1,
|
|
4865
4856
|
serializeDate: function(t) {
|
|
4866
|
-
return
|
|
4857
|
+
return Nc.call(t);
|
|
4867
4858
|
},
|
|
4868
4859
|
skipNulls: !1,
|
|
4869
4860
|
strictNullHandling: !1
|
|
4870
|
-
},
|
|
4861
|
+
}, Tc = function(t) {
|
|
4871
4862
|
return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t == "bigint";
|
|
4872
|
-
}, It = {},
|
|
4863
|
+
}, It = {}, Oc = function e(t, n, a, s, o, r, i, l, c, u, p, d, m, h, y, v, b, g) {
|
|
4873
4864
|
for (var x = t, w = g, S = 0, k = !1; (w = w.get(It)) !== void 0 && !k; ) {
|
|
4874
4865
|
var C = w.get(t);
|
|
4875
4866
|
if (S += 1, typeof C < "u") {
|
|
@@ -4886,7 +4877,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4886
4877
|
return c && !v ? c(n, B.encoder, b, "key", h) : n;
|
|
4887
4878
|
x = "";
|
|
4888
4879
|
}
|
|
4889
|
-
if (
|
|
4880
|
+
if (Tc(x) || lt.isBuffer(x)) {
|
|
4890
4881
|
if (c) {
|
|
4891
4882
|
var P = v ? n : c(n, B.encoder, b, "key", h);
|
|
4892
4883
|
return [y(P) + "=" + y(c(x, B.encoder, b, "value", h))];
|
|
@@ -4937,7 +4928,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4937
4928
|
}
|
|
4938
4929
|
}
|
|
4939
4930
|
return R;
|
|
4940
|
-
},
|
|
4931
|
+
}, Cc = function(t) {
|
|
4941
4932
|
if (!t)
|
|
4942
4933
|
return B;
|
|
4943
4934
|
if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
|
|
@@ -4951,7 +4942,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4951
4942
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
4952
4943
|
var a = We.default;
|
|
4953
4944
|
if (typeof t.format < "u") {
|
|
4954
|
-
if (!
|
|
4945
|
+
if (!wc.call(We.formatters, t.format))
|
|
4955
4946
|
throw new TypeError("Unknown format option provided.");
|
|
4956
4947
|
a = t.format;
|
|
4957
4948
|
}
|
|
@@ -4982,8 +4973,8 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4982
4973
|
sort: typeof t.sort == "function" ? t.sort : null,
|
|
4983
4974
|
strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : B.strictNullHandling
|
|
4984
4975
|
};
|
|
4985
|
-
},
|
|
4986
|
-
var n = e, a =
|
|
4976
|
+
}, Pc = function(e, t) {
|
|
4977
|
+
var n = e, a = Cc(t), s, o;
|
|
4987
4978
|
typeof a.filter == "function" ? (o = a.filter, n = o("", n)) : ce(a.filter) && (o = a.filter, s = o);
|
|
4988
4979
|
var r = [];
|
|
4989
4980
|
if (typeof n != "object" || n === null)
|
|
@@ -4992,7 +4983,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4992
4983
|
s || (s = Object.keys(n)), a.sort && s.sort(a.sort);
|
|
4993
4984
|
for (var c = Sa(), u = 0; u < s.length; ++u) {
|
|
4994
4985
|
var p = s[u];
|
|
4995
|
-
a.skipNulls && n[p] === null || ja(r,
|
|
4986
|
+
a.skipNulls && n[p] === null || ja(r, Oc(
|
|
4996
4987
|
n[p],
|
|
4997
4988
|
p,
|
|
4998
4989
|
i,
|
|
@@ -5015,7 +5006,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
5015
5006
|
}
|
|
5016
5007
|
var d = r.join(a.delimiter), m = a.addQueryPrefix === !0 ? "?" : "";
|
|
5017
5008
|
return a.charsetSentinel && (a.charset === "iso-8859-1" ? m += "utf8=%26%2310003%3B&" : m += "utf8=%E2%9C%93&"), d.length > 0 ? m + d : "";
|
|
5018
|
-
}, Le = $a, Jt = Object.prototype.hasOwnProperty,
|
|
5009
|
+
}, Le = $a, Jt = Object.prototype.hasOwnProperty, Ec = Array.isArray, M = {
|
|
5019
5010
|
allowDots: !1,
|
|
5020
5011
|
allowEmptyArrays: !1,
|
|
5021
5012
|
allowPrototypes: !1,
|
|
@@ -5035,17 +5026,17 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
5035
5026
|
parseArrays: !0,
|
|
5036
5027
|
plainObjects: !1,
|
|
5037
5028
|
strictNullHandling: !1
|
|
5038
|
-
},
|
|
5029
|
+
}, Rc = function(e) {
|
|
5039
5030
|
return e.replace(/&#(\d+);/g, function(t, n) {
|
|
5040
5031
|
return String.fromCharCode(parseInt(n, 10));
|
|
5041
5032
|
});
|
|
5042
5033
|
}, Na = function(e, t) {
|
|
5043
5034
|
return e && typeof e == "string" && t.comma && e.indexOf(",") > -1 ? e.split(",") : e;
|
|
5044
|
-
},
|
|
5035
|
+
}, Ac = "utf8=%26%2310003%3B", Fc = "utf8=%E2%9C%93", qc = function(t, n) {
|
|
5045
5036
|
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;
|
|
5046
5037
|
if (n.charsetSentinel)
|
|
5047
5038
|
for (l = 0; l < r.length; ++l)
|
|
5048
|
-
r[l].indexOf("utf8=") === 0 && (r[l] ===
|
|
5039
|
+
r[l].indexOf("utf8=") === 0 && (r[l] === Fc ? c = "utf-8" : r[l] === Ac && (c = "iso-8859-1"), i = l, l = r.length);
|
|
5049
5040
|
for (l = 0; l < r.length; ++l)
|
|
5050
5041
|
if (l !== i) {
|
|
5051
5042
|
var u = r[l], p = u.indexOf("]="), d = p === -1 ? u.indexOf("=") : p + 1, m, h;
|
|
@@ -5054,12 +5045,12 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
5054
5045
|
function(v) {
|
|
5055
5046
|
return n.decoder(v, M.decoder, c, "value");
|
|
5056
5047
|
}
|
|
5057
|
-
)), h && n.interpretNumericEntities && c === "iso-8859-1" && (h =
|
|
5048
|
+
)), h && n.interpretNumericEntities && c === "iso-8859-1" && (h = Rc(h)), u.indexOf("[]=") > -1 && (h = Ec(h) ? [h] : h);
|
|
5058
5049
|
var y = Jt.call(a, m);
|
|
5059
5050
|
y && n.duplicates === "combine" ? a[m] = Le.combine(a[m], h) : (!y || n.duplicates === "last") && (a[m] = h);
|
|
5060
5051
|
}
|
|
5061
5052
|
return a;
|
|
5062
|
-
},
|
|
5053
|
+
}, Ic = function(e, t, n, a) {
|
|
5063
5054
|
for (var s = a ? t : Na(t, n), o = e.length - 1; o >= 0; --o) {
|
|
5064
5055
|
var r, i = e[o];
|
|
5065
5056
|
if (i === "[]" && n.parseArrays)
|
|
@@ -5072,7 +5063,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
5072
5063
|
s = r;
|
|
5073
5064
|
}
|
|
5074
5065
|
return s;
|
|
5075
|
-
},
|
|
5066
|
+
}, _c = function(t, n, a, s) {
|
|
5076
5067
|
if (t) {
|
|
5077
5068
|
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 = [];
|
|
5078
5069
|
if (c) {
|
|
@@ -5085,9 +5076,9 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
5085
5076
|
return;
|
|
5086
5077
|
u.push(l[1]);
|
|
5087
5078
|
}
|
|
5088
|
-
return l && u.push("[" + o.slice(l.index) + "]"),
|
|
5079
|
+
return l && u.push("[" + o.slice(l.index) + "]"), Ic(u, n, a, s);
|
|
5089
5080
|
}
|
|
5090
|
-
},
|
|
5081
|
+
}, Lc = function(t) {
|
|
5091
5082
|
if (!t)
|
|
5092
5083
|
return M;
|
|
5093
5084
|
if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
|
|
@@ -5124,24 +5115,24 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
5124
5115
|
plainObjects: typeof t.plainObjects == "boolean" ? t.plainObjects : M.plainObjects,
|
|
5125
5116
|
strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : M.strictNullHandling
|
|
5126
5117
|
};
|
|
5127
|
-
},
|
|
5128
|
-
var n =
|
|
5118
|
+
}, Uc = function(e, t) {
|
|
5119
|
+
var n = Lc(t);
|
|
5129
5120
|
if (e === "" || e === null || typeof e > "u")
|
|
5130
5121
|
return n.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
5131
|
-
for (var a = typeof e == "string" ?
|
|
5132
|
-
var i = o[r], l =
|
|
5122
|
+
for (var a = typeof e == "string" ? qc(e, n) : e, s = n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = Object.keys(a), r = 0; r < o.length; ++r) {
|
|
5123
|
+
var i = o[r], l = _c(i, a[i], n, typeof e == "string");
|
|
5133
5124
|
s = Le.merge(s, l, n);
|
|
5134
5125
|
}
|
|
5135
5126
|
return n.allowSparse === !0 ? s : Le.compact(s);
|
|
5136
|
-
},
|
|
5137
|
-
formats:
|
|
5138
|
-
parse:
|
|
5139
|
-
stringify:
|
|
5140
|
-
},
|
|
5127
|
+
}, Mc = Pc, Hc = Uc, Bc = vn, ct = {
|
|
5128
|
+
formats: Bc,
|
|
5129
|
+
parse: Hc,
|
|
5130
|
+
stringify: Mc
|
|
5131
|
+
}, Dc = js;
|
|
5141
5132
|
function oe() {
|
|
5142
5133
|
this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
|
|
5143
5134
|
}
|
|
5144
|
-
var
|
|
5135
|
+
var Vc = /^([a-z0-9.+-]+:)/i, Wc = /:[0-9]*$/, zc = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, Jc = [
|
|
5145
5136
|
"<",
|
|
5146
5137
|
">",
|
|
5147
5138
|
'"',
|
|
@@ -5151,14 +5142,14 @@ var Gc = /^([a-z0-9.+-]+:)/i, Kc = /:[0-9]*$/, Qc = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
|
|
|
5151
5142
|
`
|
|
5152
5143
|
`,
|
|
5153
5144
|
" "
|
|
5154
|
-
],
|
|
5145
|
+
], Gc = [
|
|
5155
5146
|
"{",
|
|
5156
5147
|
"}",
|
|
5157
5148
|
"|",
|
|
5158
5149
|
"\\",
|
|
5159
5150
|
"^",
|
|
5160
5151
|
"`"
|
|
5161
|
-
].concat(
|
|
5152
|
+
].concat(Jc), Gt = ["'"].concat(Gc), sr = [
|
|
5162
5153
|
"%",
|
|
5163
5154
|
"/",
|
|
5164
5155
|
"?",
|
|
@@ -5168,7 +5159,7 @@ var Gc = /^([a-z0-9.+-]+:)/i, Kc = /:[0-9]*$/, Qc = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
|
|
|
5168
5159
|
"/",
|
|
5169
5160
|
"?",
|
|
5170
5161
|
"#"
|
|
5171
|
-
],
|
|
5162
|
+
], Kc = 255, cr = /^[+a-z0-9A-Z_-]{0,63}$/, Qc = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, Yc = {
|
|
5172
5163
|
javascript: !0,
|
|
5173
5164
|
"javascript:": !0
|
|
5174
5165
|
}, Kt = {
|
|
@@ -5199,11 +5190,11 @@ oe.prototype.parse = function(e, t, n) {
|
|
|
5199
5190
|
o[0] = o[0].replace(r, "/"), e = o.join(s);
|
|
5200
5191
|
var i = e;
|
|
5201
5192
|
if (i = i.trim(), !n && e.split("#").length === 1) {
|
|
5202
|
-
var l =
|
|
5193
|
+
var l = zc.exec(i);
|
|
5203
5194
|
if (l)
|
|
5204
5195
|
return this.path = i, this.href = i, this.pathname = l[1], l[2] ? (this.search = l[2], t ? this.query = Qt.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : t && (this.search = "", this.query = {}), this;
|
|
5205
5196
|
}
|
|
5206
|
-
var c =
|
|
5197
|
+
var c = Vc.exec(i);
|
|
5207
5198
|
if (c) {
|
|
5208
5199
|
c = c[0];
|
|
5209
5200
|
var u = c.toLowerCase();
|
|
@@ -5233,17 +5224,17 @@ oe.prototype.parse = function(e, t, n) {
|
|
|
5233
5224
|
for (var S = "", k = 0, C = w.length; k < C; k++)
|
|
5234
5225
|
w.charCodeAt(k) > 127 ? S += "x" : S += w[k];
|
|
5235
5226
|
if (!S.match(cr)) {
|
|
5236
|
-
var P = g.slice(0, m), R = g.slice(m + 1), q = w.match(
|
|
5227
|
+
var P = g.slice(0, m), R = g.slice(m + 1), q = w.match(Qc);
|
|
5237
5228
|
q && (P.push(q[1]), R.unshift(q[2])), R.length && (i = "/" + R.join(".") + i), this.hostname = P.join(".");
|
|
5238
5229
|
break;
|
|
5239
5230
|
}
|
|
5240
5231
|
}
|
|
5241
5232
|
}
|
|
5242
|
-
this.hostname.length >
|
|
5233
|
+
this.hostname.length > Kc ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), b || (this.hostname = Dc.toASCII(this.hostname));
|
|
5243
5234
|
var G = this.port ? ":" + this.port : "", K = this.hostname || "";
|
|
5244
5235
|
this.host = K + G, this.href += this.host, b && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), i[0] !== "/" && (i = "/" + i));
|
|
5245
5236
|
}
|
|
5246
|
-
if (!
|
|
5237
|
+
if (!Yc[u])
|
|
5247
5238
|
for (var m = 0, x = Gt.length; m < x; m++) {
|
|
5248
5239
|
var I = Gt[m];
|
|
5249
5240
|
if (i.indexOf(I) !== -1) {
|
|
@@ -5260,7 +5251,7 @@ oe.prototype.parse = function(e, t, n) {
|
|
|
5260
5251
|
}
|
|
5261
5252
|
return this.href = this.format(), this;
|
|
5262
5253
|
};
|
|
5263
|
-
function
|
|
5254
|
+
function Xc(e) {
|
|
5264
5255
|
return typeof e == "string" && (e = bn(e)), e instanceof oe ? e.format() : oe.prototype.format.call(e);
|
|
5265
5256
|
}
|
|
5266
5257
|
oe.prototype.format = function() {
|
|
@@ -5347,15 +5338,15 @@ oe.prototype.resolveObject = function(e) {
|
|
|
5347
5338
|
return v = v || n.host && g.length, v && !q && g.unshift(""), g.length > 0 ? n.pathname = g.join("/") : (n.pathname = null, n.path = null), (n.pathname !== null || n.search !== null) && (n.path = (n.pathname ? n.pathname : "") + (n.search ? n.search : "")), n.auth = e.auth || n.auth, n.slashes = n.slashes || e.slashes, n.href = n.format(), n;
|
|
5348
5339
|
};
|
|
5349
5340
|
oe.prototype.parseHost = function() {
|
|
5350
|
-
var e = this.host, t =
|
|
5341
|
+
var e = this.host, t = Wc.exec(e);
|
|
5351
5342
|
t && (t = t[0], t !== ":" && (this.port = t.substr(1)), e = e.substr(0, e.length - t.length)), e && (this.hostname = e);
|
|
5352
5343
|
};
|
|
5353
|
-
var
|
|
5344
|
+
var Zc = bn, ur = Xc, eu = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), tu = class {
|
|
5354
5345
|
constructor(e, t = {}) {
|
|
5355
5346
|
this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
|
|
5356
5347
|
harIsAlreadyEncoded: !1,
|
|
5357
5348
|
...t
|
|
5358
|
-
}, this.requests = [],
|
|
5349
|
+
}, this.requests = [], eu(e) ? this.entries = e.log.entries : this.entries = [
|
|
5359
5350
|
{
|
|
5360
5351
|
request: e
|
|
5361
5352
|
}
|
|
@@ -5445,7 +5436,7 @@ var ru = bn, ur = nu, au = (e) => typeof e == "object" && "log" in e && typeof e
|
|
|
5445
5436
|
const s = {
|
|
5446
5437
|
...n.allHeaders,
|
|
5447
5438
|
...n.headersObj
|
|
5448
|
-
}, o =
|
|
5439
|
+
}, o = Zc(n.url, !0, !0);
|
|
5449
5440
|
n.queryObj = {
|
|
5450
5441
|
...n.queryObj,
|
|
5451
5442
|
...o.query
|
|
@@ -5480,21 +5471,21 @@ var ru = bn, ur = nu, au = (e) => typeof e == "object" && "log" in e && typeof e
|
|
|
5480
5471
|
}
|
|
5481
5472
|
convert(e, t, n) {
|
|
5482
5473
|
this.initCalled || this.init(), !n && t && (n = t);
|
|
5483
|
-
const a =
|
|
5474
|
+
const a = ws[e];
|
|
5484
5475
|
if (!a)
|
|
5485
5476
|
return !1;
|
|
5486
5477
|
const { convert: s } = a.clientsById[t || a.info.default];
|
|
5487
5478
|
return this.requests.map((r) => s(r, n));
|
|
5488
5479
|
}
|
|
5489
5480
|
};
|
|
5490
|
-
const Ta =
|
|
5481
|
+
const Ta = oo(
|
|
5491
5482
|
void 0
|
|
5492
|
-
),
|
|
5493
|
-
const e =
|
|
5483
|
+
), Ru = Ta.Provider, nu = () => {
|
|
5484
|
+
const e = io(Ta);
|
|
5494
5485
|
if (!e)
|
|
5495
5486
|
throw new Error("useOasConfig must be used within a OasConfigProvider");
|
|
5496
5487
|
return e.config;
|
|
5497
|
-
},
|
|
5488
|
+
}, ru = ({
|
|
5498
5489
|
server: e,
|
|
5499
5490
|
operation: t
|
|
5500
5491
|
}) => {
|
|
@@ -5554,8 +5545,8 @@ const Ta = uo(
|
|
|
5554
5545
|
),
|
|
5555
5546
|
children: e
|
|
5556
5547
|
}
|
|
5557
|
-
),
|
|
5558
|
-
function
|
|
5548
|
+
), au = (e) => typeof e == "object" && e !== null && !Array.isArray(e), Ge = (e, t) => e.example !== void 0 ? e.example : e.default !== void 0 ? e.default : e.examples && au(e.examples) ? Object.values(e.examples)[0] : ou(e);
|
|
5549
|
+
function ou(e, t) {
|
|
5559
5550
|
const n = Object.entries(e.properties ?? {}).concat(
|
|
5560
5551
|
Object.entries(e.additionalProperties ?? {})
|
|
5561
5552
|
);
|
|
@@ -5570,7 +5561,7 @@ function cu(e, t) {
|
|
|
5570
5561
|
return a !== void 0 ? [a] : [];
|
|
5571
5562
|
}
|
|
5572
5563
|
}
|
|
5573
|
-
const
|
|
5564
|
+
const iu = ({ content: e }) => {
|
|
5574
5565
|
var t;
|
|
5575
5566
|
return e.length ? /* @__PURE__ */ f.jsx(f.Fragment, { children: /* @__PURE__ */ f.jsxs(xn, { children: [
|
|
5576
5567
|
/* @__PURE__ */ f.jsx(kn, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ f.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
|
|
@@ -5589,7 +5580,7 @@ const uu = ({ content: e }) => {
|
|
|
5589
5580
|
}
|
|
5590
5581
|
) })
|
|
5591
5582
|
] }) }) : null;
|
|
5592
|
-
},
|
|
5583
|
+
}, su = ({
|
|
5593
5584
|
responses: e,
|
|
5594
5585
|
selectedResponse: t,
|
|
5595
5586
|
onSelectResponse: n
|
|
@@ -5637,7 +5628,7 @@ const uu = ({ content: e }) => {
|
|
|
5637
5628
|
]
|
|
5638
5629
|
}
|
|
5639
5630
|
) });
|
|
5640
|
-
},
|
|
5631
|
+
}, lu = (e, t) => {
|
|
5641
5632
|
let n;
|
|
5642
5633
|
switch (t) {
|
|
5643
5634
|
case "shell":
|
|
@@ -5687,7 +5678,7 @@ const uu = ({ content: e }) => {
|
|
|
5687
5678
|
}
|
|
5688
5679
|
}
|
|
5689
5680
|
`
|
|
5690
|
-
),
|
|
5681
|
+
), cu = { suspense: !0 }, uu = {
|
|
5691
5682
|
get: pe.green,
|
|
5692
5683
|
post: pe.blue,
|
|
5693
5684
|
put: pe.yellow,
|
|
@@ -5696,17 +5687,17 @@ const uu = ({ content: e }) => {
|
|
|
5696
5687
|
options: pe.indigo,
|
|
5697
5688
|
head: pe.gray,
|
|
5698
5689
|
trace: pe.gray
|
|
5699
|
-
},
|
|
5690
|
+
}, Au = ({
|
|
5700
5691
|
operation: e,
|
|
5701
5692
|
selectedResponse: t,
|
|
5702
5693
|
onSelectResponse: n
|
|
5703
5694
|
}) => {
|
|
5704
5695
|
var m, h;
|
|
5705
|
-
const a =
|
|
5696
|
+
const a = nu(), [s] = Pa({
|
|
5706
5697
|
query: Ca,
|
|
5707
5698
|
variables: a,
|
|
5708
|
-
context:
|
|
5709
|
-
}), o =
|
|
5699
|
+
context: cu
|
|
5700
|
+
}), o = uu[e.method.toLocaleLowerCase()] ?? pe.gray, [r, i] = mo(), [, l] = so(), c = r.get("lang") ?? "shell", u = (m = e.requestBody) == null ? void 0 : m.content, p = e.path.split("/").map((y, v, b) => {
|
|
5710
5701
|
const x = y.startsWith("{") && y.endsWith("}") || y.startsWith(":") ? y.replace(/[:{}]/g, "") : void 0;
|
|
5711
5702
|
return (
|
|
5712
5703
|
// eslint-disable-next-line react/no-array-index-key
|
|
@@ -5724,9 +5715,9 @@ const uu = ({ content: e }) => {
|
|
|
5724
5715
|
/* @__PURE__ */ f.jsx("wbr", {})
|
|
5725
5716
|
] }, y + v)
|
|
5726
5717
|
);
|
|
5727
|
-
}), d =
|
|
5718
|
+
}), d = lo(() => {
|
|
5728
5719
|
var b;
|
|
5729
|
-
const y = (b = u == null ? void 0 : u[0]) != null && b.schema ? Ge(u[0].schema) : void 0, v = new
|
|
5720
|
+
const y = (b = u == null ? void 0 : u[0]) != null && b.schema ? Ge(u[0].schema) : void 0, v = new tu(
|
|
5730
5721
|
{
|
|
5731
5722
|
method: e.method.toLocaleUpperCase(),
|
|
5732
5723
|
url: e.path.replaceAll("{", ":").replaceAll("}", ""),
|
|
@@ -5738,7 +5729,7 @@ const uu = ({ content: e }) => {
|
|
|
5738
5729
|
}
|
|
5739
5730
|
// 👈 never touch this
|
|
5740
5731
|
);
|
|
5741
|
-
return
|
|
5732
|
+
return lu(v, c);
|
|
5742
5733
|
}, [c, e.method, e.path, u]);
|
|
5743
5734
|
return /* @__PURE__ */ f.jsxs("aside", { className: "flex flex-col overflow-hidden sticky top-[--scroll-padding] gap-4", children: [
|
|
5744
5735
|
/* @__PURE__ */ f.jsxs(xn, { children: [
|
|
@@ -5749,7 +5740,7 @@ const uu = ({ content: e }) => {
|
|
|
5749
5740
|
p
|
|
5750
5741
|
] }),
|
|
5751
5742
|
/* @__PURE__ */ f.jsx(
|
|
5752
|
-
|
|
5743
|
+
ru,
|
|
5753
5744
|
{
|
|
5754
5745
|
server: ((h = s.data) == null ? void 0 : h.schema.url) ?? "",
|
|
5755
5746
|
operation: e
|
|
@@ -5794,9 +5785,9 @@ const uu = ({ content: e }) => {
|
|
|
5794
5785
|
)
|
|
5795
5786
|
] })
|
|
5796
5787
|
] }),
|
|
5797
|
-
u && /* @__PURE__ */ f.jsx(
|
|
5788
|
+
u && /* @__PURE__ */ f.jsx(iu, { content: u }),
|
|
5798
5789
|
e.responses.length > 0 && /* @__PURE__ */ f.jsx(
|
|
5799
|
-
|
|
5790
|
+
su,
|
|
5800
5791
|
{
|
|
5801
5792
|
selectedResponse: t,
|
|
5802
5793
|
onSelectResponse: n,
|
|
@@ -5804,7 +5795,7 @@ const uu = ({ content: e }) => {
|
|
|
5804
5795
|
}
|
|
5805
5796
|
)
|
|
5806
5797
|
] });
|
|
5807
|
-
},
|
|
5798
|
+
}, du = kr(`
|
|
5808
5799
|
query GetCategories($input: JSON!, $type: SchemaType!) {
|
|
5809
5800
|
schema(input: $input, type: $type) {
|
|
5810
5801
|
tags {
|
|
@@ -5822,10 +5813,10 @@ const uu = ({ content: e }) => {
|
|
|
5822
5813
|
}
|
|
5823
5814
|
}
|
|
5824
5815
|
}
|
|
5825
|
-
`),
|
|
5826
|
-
const e =
|
|
5827
|
-
return /* @__PURE__ */ f.jsx(
|
|
5828
|
-
},
|
|
5816
|
+
`), fu = () => {
|
|
5817
|
+
const e = ho(), t = e instanceof Error ? /* @__PURE__ */ f.jsx(Qe, { code: e.message }) : "An unknown error occurred";
|
|
5818
|
+
return /* @__PURE__ */ f.jsx(za, { category: "Error", title: "An error occurred", message: t });
|
|
5819
|
+
}, pu = {
|
|
5829
5820
|
get: "green",
|
|
5830
5821
|
post: "blue",
|
|
5831
5822
|
put: "yellow",
|
|
@@ -5833,8 +5824,8 @@ const uu = ({ content: e }) => {
|
|
|
5833
5824
|
patch: "purple",
|
|
5834
5825
|
options: "gray",
|
|
5835
5826
|
head: "gray"
|
|
5836
|
-
},
|
|
5837
|
-
const t =
|
|
5827
|
+
}, Fu = (e) => {
|
|
5828
|
+
const t = Ka(e.navigationId ?? "/reference"), n = e.server ? new Ea({
|
|
5838
5829
|
url: e.server,
|
|
5839
5830
|
exchanges: [Ra, Aa]
|
|
5840
5831
|
}) : Ia({ useMemoryClient: e.inMemory ?? !1 });
|
|
@@ -5878,7 +5869,7 @@ const uu = ({ content: e }) => {
|
|
|
5878
5869
|
onClick: l.login,
|
|
5879
5870
|
children: [
|
|
5880
5871
|
"Login to open in Playground ",
|
|
5881
|
-
/* @__PURE__ */ f.jsx(
|
|
5872
|
+
/* @__PURE__ */ f.jsx(bo, { size: 16 })
|
|
5882
5873
|
]
|
|
5883
5874
|
}
|
|
5884
5875
|
) : /* @__PURE__ */ f.jsx(
|
|
@@ -5890,16 +5881,16 @@ const uu = ({ content: e }) => {
|
|
|
5890
5881
|
...i,
|
|
5891
5882
|
children: /* @__PURE__ */ f.jsxs(qe, { className: "gap-2 items-center", variant: "outline", children: [
|
|
5892
5883
|
"Open in Playground ",
|
|
5893
|
-
/* @__PURE__ */ f.jsx(
|
|
5884
|
+
/* @__PURE__ */ f.jsx(vo, { size: 16 })
|
|
5894
5885
|
] })
|
|
5895
5886
|
}
|
|
5896
5887
|
);
|
|
5897
5888
|
}
|
|
5898
5889
|
}),
|
|
5899
5890
|
getSidebar: async (a) => {
|
|
5900
|
-
if (!
|
|
5891
|
+
if (!yo({ path: t, end: !1 }, a))
|
|
5901
5892
|
return [];
|
|
5902
|
-
const { data: s } = await n.query(
|
|
5893
|
+
const { data: s } = await n.query(du, {
|
|
5903
5894
|
input: e.input,
|
|
5904
5895
|
type: e.type
|
|
5905
5896
|
});
|
|
@@ -5915,7 +5906,7 @@ const uu = ({ content: e }) => {
|
|
|
5915
5906
|
href: `#${i.slug}`,
|
|
5916
5907
|
badge: {
|
|
5917
5908
|
label: i.method,
|
|
5918
|
-
color:
|
|
5909
|
+
color: pu[i.method.toLowerCase()]
|
|
5919
5910
|
}
|
|
5920
5911
|
}))
|
|
5921
5912
|
}));
|
|
@@ -5928,12 +5919,12 @@ const uu = ({ content: e }) => {
|
|
|
5928
5919
|
getRoutes: () => [
|
|
5929
5920
|
{
|
|
5930
5921
|
async lazy() {
|
|
5931
|
-
const { OpenApiRoute: a } = await import("./Route-
|
|
5922
|
+
const { OpenApiRoute: a } = await import("./Route-Cle-r-bq.js");
|
|
5932
5923
|
return {
|
|
5933
5924
|
element: /* @__PURE__ */ f.jsx(a, { client: n, config: e })
|
|
5934
5925
|
};
|
|
5935
5926
|
},
|
|
5936
|
-
errorElement: /* @__PURE__ */ f.jsx(
|
|
5927
|
+
errorElement: /* @__PURE__ */ f.jsx(fu, {}),
|
|
5937
5928
|
children: [
|
|
5938
5929
|
{
|
|
5939
5930
|
path: t,
|
|
@@ -5941,7 +5932,7 @@ const uu = ({ content: e }) => {
|
|
|
5941
5932
|
{
|
|
5942
5933
|
index: !0,
|
|
5943
5934
|
async lazy() {
|
|
5944
|
-
const { OperationList: a } = await import("./OperationList-
|
|
5935
|
+
const { OperationList: a } = await import("./OperationList-CZiSz5JH.js");
|
|
5945
5936
|
return { element: /* @__PURE__ */ f.jsx(a, {}) };
|
|
5946
5937
|
}
|
|
5947
5938
|
}
|
|
@@ -5954,19 +5945,18 @@ const uu = ({ content: e }) => {
|
|
|
5954
5945
|
};
|
|
5955
5946
|
export {
|
|
5956
5947
|
un as C,
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
Iu as S,
|
|
5948
|
+
Ru as O,
|
|
5949
|
+
Au as S,
|
|
5960
5950
|
Nn as T,
|
|
5961
5951
|
rn as a,
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5952
|
+
Ho as b,
|
|
5953
|
+
Bo as c,
|
|
5954
|
+
Vo as d,
|
|
5965
5955
|
_t as e,
|
|
5966
5956
|
Ce as f,
|
|
5967
5957
|
Pe as g,
|
|
5968
5958
|
kr as h,
|
|
5969
|
-
|
|
5970
|
-
|
|
5959
|
+
Fu as o,
|
|
5960
|
+
nu as u
|
|
5971
5961
|
};
|
|
5972
|
-
//# sourceMappingURL=index-
|
|
5962
|
+
//# sourceMappingURL=index-Br1MQPxy.js.map
|