zudoku 0.3.0-dev.116 → 0.3.0-dev.119
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/dist/app/demo.js +3 -1
- package/dist/app/demo.js.map +1 -1
- package/dist/app/main.js +1 -1
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +3 -1
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/dev/handler.js +1 -1
- package/dist/lib/components/Markdown.js +3 -2
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.js +6 -2
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.js +3 -2
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +17 -2
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +6 -4
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterList.js +3 -1
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +3 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +5 -9
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.d.ts +3 -1
- package/dist/lib/plugins/openapi/Sidecar.js +6 -4
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaComponents.d.ts +13 -0
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js +28 -0
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +6 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.js +44 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/utils.d.ts +3 -0
- package/dist/lib/plugins/openapi/schema/utils.js +6 -0
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -0
- package/dist/lib/themeToggle.d.ts +1 -0
- package/dist/lib/themeToggle.js +7 -0
- package/dist/lib/themeToggle.js.map +1 -0
- package/dist/lib/util/MdxComponents.js +4 -4
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/vite/config.d.ts +4 -5
- package/dist/vite/config.js +7 -4
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +2 -2
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/dev-server.d.ts +0 -1
- package/dist/vite/dev-server.js +2 -21
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/html.js +2 -11
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/plugin-api-keys.d.ts +3 -3
- package/dist/vite/plugin-api-keys.js +2 -1
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.d.ts +3 -3
- package/dist/vite/plugin-api.js +2 -1
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +3 -3
- package/dist/vite/plugin-auth.js +2 -1
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +3 -3
- package/dist/vite/plugin-component.js +17 -14
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +4 -0
- package/dist/vite/plugin-config-reload.js +24 -0
- package/dist/vite/plugin-config-reload.js.map +1 -0
- package/dist/vite/plugin-config.d.ts +2 -2
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-custom-css.d.ts +3 -3
- package/dist/vite/plugin-custom-css.js +2 -1
- package/dist/vite/plugin-custom-css.js.map +1 -1
- package/dist/vite/plugin-docs.d.ts +3 -3
- package/dist/vite/plugin-docs.js +3 -2
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-html-transform.d.ts +2 -0
- package/dist/vite/plugin-html-transform.js +15 -0
- package/dist/vite/plugin-html-transform.js.map +1 -0
- package/dist/vite/plugin-mdx.d.ts +3 -3
- package/dist/vite/plugin-mdx.js +2 -1
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-metadata.d.ts +1 -1
- package/dist/vite/plugin-redirect.d.ts +3 -3
- package/dist/vite/plugin-redirect.js +2 -1
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-sidebar.d.ts +3 -3
- package/dist/vite/plugin-sidebar.js +2 -1
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/plugin.d.ts +3 -2
- package/dist/vite/plugin.js +16 -11
- package/dist/vite/plugin.js.map +1 -1
- package/lib/{CategoryHeading-BWq12Bfa.js → CategoryHeading-z15xh7Jb.js} +2 -2
- package/lib/{CategoryHeading-BWq12Bfa.js.map → CategoryHeading-z15xh7Jb.js.map} +1 -1
- package/lib/{Combination-D-9IH0zy.js → Combination-DTfV-c98.js} +2 -2
- package/lib/{Combination-D-9IH0zy.js.map → Combination-DTfV-c98.js.map} +1 -1
- package/lib/{Input-HmAaR6kw.js → Input-DB9VROFR.js} +3 -3
- package/lib/{Input-HmAaR6kw.js.map → Input-DB9VROFR.js.map} +1 -1
- package/lib/Markdown-CEccPMI_.js +20508 -0
- package/lib/Markdown-CEccPMI_.js.map +1 -0
- package/lib/{MdxPage-oN3huD58.js → MdxPage-CnqOoqvp.js} +12 -15
- package/lib/MdxPage-CnqOoqvp.js.map +1 -0
- package/lib/OperationList-MFaKgMyg.js +414 -0
- package/lib/OperationList-MFaKgMyg.js.map +1 -0
- package/lib/{Route-DAF15JAU.js → Route-CL9hUSJ2.js} +2 -2
- package/lib/{Route-DAF15JAU.js.map → Route-CL9hUSJ2.js.map} +1 -1
- package/lib/{SlotletProvider-BG2PU1Mf.js → SlotletProvider-ByLSCZQa.js} +3 -3
- package/lib/{SlotletProvider-BG2PU1Mf.js.map → SlotletProvider-ByLSCZQa.js.map} +1 -1
- package/lib/{Spinner-BCz1kNGw.js → Spinner-BT_AYFrA.js} +3 -3
- package/lib/{Spinner-BCz1kNGw.js.map → Spinner-BT_AYFrA.js.map} +1 -1
- package/lib/assets/{worker-CR7aeKop.js → worker-TEvS6miZ.js} +709 -702
- package/lib/assets/{worker-CR7aeKop.js.map → worker-TEvS6miZ.js.map} +1 -1
- package/lib/{index-CtKkHGcd.js → index-Bf5yypxf.js} +671 -640
- package/lib/{index-CtKkHGcd.js.map → index-Bf5yypxf.js.map} +1 -1
- package/lib/{index-D-9Z7HSn.js → index-Dz4LyXZI.js} +3 -3
- package/lib/{index-D-9Z7HSn.js.map → index-Dz4LyXZI.js.map} +1 -1
- package/lib/zudoku.components.js +494 -481
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +733 -726
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +4 -4
- package/lib/zudoku.plugin-custom-page.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/package.json +2 -1
- package/src/app/demo.tsx +4 -1
- package/src/app/main.tsx +1 -1
- package/src/app/standalone.tsx +4 -1
- package/src/lib/components/Markdown.tsx +3 -2
- package/src/lib/components/navigation/SidebarCategory.tsx +13 -2
- package/src/lib/components/navigation/SidebarItem.tsx +3 -2
- package/src/lib/oas/graphql/index.ts +24 -5
- package/src/lib/plugins/markdown/MdxPage.tsx +0 -1
- package/src/lib/plugins/openapi/OperationListItem.tsx +18 -8
- package/src/lib/plugins/openapi/ParameterList.tsx +10 -8
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +51 -39
- package/src/lib/plugins/openapi/Sidecar.tsx +13 -4
- package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +126 -0
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +112 -0
- package/src/lib/plugins/openapi/schema/utils.ts +10 -0
- package/src/lib/themeToggle.ts +7 -0
- package/src/lib/util/MdxComponents.tsx +12 -12
- package/dist/lib/plugins/openapi/SchemaListView.d.ts +0 -7
- package/dist/lib/plugins/openapi/SchemaListView.js +0 -27
- package/dist/lib/plugins/openapi/SchemaListView.js.map +0 -1
- package/dist/lib/plugins/openapi/SchemaListViewItem.d.ts +0 -8
- package/dist/lib/plugins/openapi/SchemaListViewItem.js +0 -25
- package/dist/lib/plugins/openapi/SchemaListViewItem.js.map +0 -1
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.d.ts +0 -8
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js +0 -17
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js.map +0 -1
- package/lib/Markdown-B_Gax7at.js +0 -14108
- package/lib/Markdown-B_Gax7at.js.map +0 -1
- package/lib/MdxPage-oN3huD58.js.map +0 -1
- package/lib/OperationList-Ctj0ihBN.js +0 -448
- package/lib/OperationList-Ctj0ihBN.js.map +0 -1
- package/src/lib/plugins/openapi/SchemaListView.tsx +0 -75
- package/src/lib/plugins/openapi/SchemaListViewItem.tsx +0 -125
- package/src/lib/plugins/openapi/SchemaListViewItemGroup.tsx +0 -63
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { j as f } from "./jsx-runtime-B6kdoens.js";
|
|
2
|
-
import { u as
|
|
3
|
-
import { v as
|
|
4
|
-
import { createClient as
|
|
5
|
-
import { a as
|
|
6
|
-
import { L as
|
|
7
|
-
import { C as
|
|
8
|
-
import { c as Ke, P as
|
|
9
|
-
import { j as
|
|
10
|
-
import { g as Xt, h as
|
|
2
|
+
import { u as Ea, C as Ra, c as Aa, f as Fa } from "./urql-DrBfkb92.js";
|
|
3
|
+
import { v as qa, w as Ia } from "./ZudokuContext-BIZ8zHbZ.js";
|
|
4
|
+
import { createClient as _a } from "zudoku/openapi-worker";
|
|
5
|
+
import { a as dr, u as Yt, P as me, d as be, R as La, S as fr, h as Ua, e as Ma, F as Ha, D as Ba, q as Da, m as Va, o as pr, n as rt, k as za, B as qe, p as Wa } from "./Combination-DTfV-c98.js";
|
|
6
|
+
import { L as Ja, e as Ga, g as Ka } from "./index-7kcHaXD6.js";
|
|
7
|
+
import { C as Qa } from "./CategoryHeading-z15xh7Jb.js";
|
|
8
|
+
import { c as Ke, P as Ya, H as Xa, a as A, u as Za, g as eo, S as Qe } from "./Markdown-CEccPMI_.js";
|
|
9
|
+
import { j as to } from "./joinPath-B7kNnUX4.js";
|
|
10
|
+
import { g as Xt, h as Sn, C as Se, I as mr, i as no, u as ro, a as ao, F as oo, S as io, b as so, c as lo, d as co, f as wn, V as uo } from "./Input-DB9VROFR.js";
|
|
11
11
|
import * as N from "react";
|
|
12
|
-
import { useRef as
|
|
13
|
-
import { P as gt, c as
|
|
14
|
-
import { a as
|
|
15
|
-
import { m as
|
|
12
|
+
import { useRef as hr, useEffect as yr, useState as gr, Fragment as at, createContext as fo, useContext as po, useTransition as mo, useMemo as ho } from "react";
|
|
13
|
+
import { P as gt, c as vr, R as yo, I as go, a as jn, T as pe } from "./Spinner-BT_AYFrA.js";
|
|
14
|
+
import { a as vo, c as ot, g as bo } from "./_commonjsHelpers-BVfed4GL.js";
|
|
15
|
+
import { m as xo } from "./router-BiRCp01d.js";
|
|
16
16
|
/**
|
|
17
17
|
* @license lucide-react v0.378.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
21
|
*/
|
|
22
|
-
const
|
|
22
|
+
const ko = Ke("ChevronsUpDown", [
|
|
23
23
|
["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
|
|
24
24
|
["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
|
|
25
25
|
]);
|
|
@@ -29,7 +29,7 @@ const xo = Ke("ChevronsUpDown", [
|
|
|
29
29
|
* This source code is licensed under the ISC license.
|
|
30
30
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
31
|
*/
|
|
32
|
-
const
|
|
32
|
+
const br = Ke("CirclePlay", [
|
|
33
33
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
34
34
|
["polygon", { points: "10 8 16 12 10 16 10 8", key: "1cimsy" }]
|
|
35
35
|
]);
|
|
@@ -39,7 +39,7 @@ const yr = Ke("CirclePlay", [
|
|
|
39
39
|
* This source code is licensed under the ISC license.
|
|
40
40
|
* See the LICENSE file in the root directory of this source tree.
|
|
41
41
|
*/
|
|
42
|
-
const
|
|
42
|
+
const xr = Ke("Eraser", [
|
|
43
43
|
[
|
|
44
44
|
"path",
|
|
45
45
|
{
|
|
@@ -56,7 +56,7 @@ const gr = Ke("Eraser", [
|
|
|
56
56
|
* This source code is licensed under the ISC license.
|
|
57
57
|
* See the LICENSE file in the root directory of this source tree.
|
|
58
58
|
*/
|
|
59
|
-
const
|
|
59
|
+
const $o = Ke("LogIn", [
|
|
60
60
|
["path", { d: "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4", key: "u53s6r" }],
|
|
61
61
|
["polyline", { points: "10 17 15 12 10 7", key: "1ail0h" }],
|
|
62
62
|
["line", { x1: "15", x2: "3", y1: "12", y2: "12", key: "v6grx8" }]
|
|
@@ -67,10 +67,10 @@ const ko = Ke("LogIn", [
|
|
|
67
67
|
* This source code is licensed under the ISC license.
|
|
68
68
|
* See the LICENSE file in the root directory of this source tree.
|
|
69
69
|
*/
|
|
70
|
-
const
|
|
70
|
+
const kr = Ke("X", [
|
|
71
71
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
72
72
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
73
|
-
]),
|
|
73
|
+
]), So = {
|
|
74
74
|
kind: "Document",
|
|
75
75
|
definitions: [
|
|
76
76
|
{
|
|
@@ -215,7 +215,7 @@ const vr = Ke("X", [
|
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
]
|
|
218
|
-
},
|
|
218
|
+
}, wo = {
|
|
219
219
|
kind: "Document",
|
|
220
220
|
definitions: [
|
|
221
221
|
{
|
|
@@ -459,7 +459,7 @@ const vr = Ke("X", [
|
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
461
|
]
|
|
462
|
-
},
|
|
462
|
+
}, jo = {
|
|
463
463
|
kind: "Document",
|
|
464
464
|
definitions: [
|
|
465
465
|
{
|
|
@@ -525,7 +525,7 @@ const vr = Ke("X", [
|
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
]
|
|
528
|
-
},
|
|
528
|
+
}, No = {
|
|
529
529
|
kind: "Document",
|
|
530
530
|
definitions: [
|
|
531
531
|
{
|
|
@@ -641,26 +641,26 @@ const vr = Ke("X", [
|
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
]
|
|
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":
|
|
644
|
+
}, To = {
|
|
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": So,
|
|
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": wo,
|
|
647
|
+
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n }\n }\n": jo,
|
|
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": No
|
|
649
649
|
};
|
|
650
|
-
function
|
|
651
|
-
return
|
|
650
|
+
function $r(e) {
|
|
651
|
+
return To[e] ?? {};
|
|
652
652
|
}
|
|
653
|
-
const
|
|
653
|
+
const Oo = ({
|
|
654
654
|
title: e = "An error occurred",
|
|
655
655
|
message: t,
|
|
656
656
|
category: n
|
|
657
|
-
}) => /* @__PURE__ */ f.jsxs("div", { className:
|
|
658
|
-
n && /* @__PURE__ */ f.jsx(
|
|
659
|
-
e && /* @__PURE__ */ f.jsx(
|
|
657
|
+
}) => /* @__PURE__ */ f.jsxs("div", { className: Ya + " h-full pt-[--padding-content-top]", children: [
|
|
658
|
+
n && /* @__PURE__ */ f.jsx(Qa, { children: n }),
|
|
659
|
+
e && /* @__PURE__ */ f.jsx(Xa, { level: 1, className: "flex gap-3.5 items-center", children: e }),
|
|
660
660
|
/* @__PURE__ */ f.jsx("p", { children: t }),
|
|
661
|
-
/* @__PURE__ */ f.jsx(
|
|
661
|
+
/* @__PURE__ */ f.jsx(Ja, { to: "/", children: "Go back home" })
|
|
662
662
|
] });
|
|
663
|
-
var
|
|
663
|
+
var Zt = "Dialog", [Sr, Ru] = dr(Zt), [Co, ie] = Sr(Zt), wr = (e) => {
|
|
664
664
|
const {
|
|
665
665
|
__scopeDialog: t,
|
|
666
666
|
children: n,
|
|
@@ -668,13 +668,13 @@ var en = "Dialog", [xr, Ru] = cr(en), [Oo, ie] = xr(en), kr = (e) => {
|
|
|
668
668
|
defaultOpen: s,
|
|
669
669
|
onOpenChange: o,
|
|
670
670
|
modal: r = !0
|
|
671
|
-
} = e, i = N.useRef(null), l = N.useRef(null), [c = !1, u] =
|
|
671
|
+
} = e, i = N.useRef(null), l = N.useRef(null), [c = !1, u] = pr({
|
|
672
672
|
prop: a,
|
|
673
673
|
defaultProp: s,
|
|
674
674
|
onChange: o
|
|
675
675
|
});
|
|
676
676
|
return /* @__PURE__ */ f.jsx(
|
|
677
|
-
|
|
677
|
+
Co,
|
|
678
678
|
{
|
|
679
679
|
scope: t,
|
|
680
680
|
triggerRef: i,
|
|
@@ -690,10 +690,10 @@ var en = "Dialog", [xr, Ru] = cr(en), [Oo, ie] = xr(en), kr = (e) => {
|
|
|
690
690
|
}
|
|
691
691
|
);
|
|
692
692
|
};
|
|
693
|
-
|
|
694
|
-
var
|
|
693
|
+
wr.displayName = Zt;
|
|
694
|
+
var jr = "DialogTrigger", Nr = N.forwardRef(
|
|
695
695
|
(e, t) => {
|
|
696
|
-
const { __scopeDialog: n, ...a } = e, s = ie(
|
|
696
|
+
const { __scopeDialog: n, ...a } = e, s = ie(jr, n), o = Yt(t, s.triggerRef);
|
|
697
697
|
return /* @__PURE__ */ f.jsx(
|
|
698
698
|
me.button,
|
|
699
699
|
{
|
|
@@ -701,7 +701,7 @@ var $r = "DialogTrigger", Sr = N.forwardRef(
|
|
|
701
701
|
"aria-haspopup": "dialog",
|
|
702
702
|
"aria-expanded": s.open,
|
|
703
703
|
"aria-controls": s.contentId,
|
|
704
|
-
"data-state":
|
|
704
|
+
"data-state": nn(s.open),
|
|
705
705
|
...a,
|
|
706
706
|
ref: o,
|
|
707
707
|
onClick: be(e.onClick, s.onOpenToggle)
|
|
@@ -709,31 +709,31 @@ var $r = "DialogTrigger", Sr = N.forwardRef(
|
|
|
709
709
|
);
|
|
710
710
|
}
|
|
711
711
|
);
|
|
712
|
-
|
|
713
|
-
var
|
|
712
|
+
Nr.displayName = jr;
|
|
713
|
+
var en = "DialogPortal", [Po, Tr] = Sr(en, {
|
|
714
714
|
forceMount: void 0
|
|
715
|
-
}),
|
|
716
|
-
const { __scopeDialog: t, forceMount: n, children: a, container: s } = e, o = ie(
|
|
717
|
-
return /* @__PURE__ */ f.jsx(
|
|
715
|
+
}), Or = (e) => {
|
|
716
|
+
const { __scopeDialog: t, forceMount: n, children: a, container: s } = e, o = ie(en, t);
|
|
717
|
+
return /* @__PURE__ */ f.jsx(Po, { scope: t, forceMount: n, children: N.Children.map(a, (r) => /* @__PURE__ */ f.jsx(gt, { present: n || o.open, children: /* @__PURE__ */ f.jsx(Va, { asChild: !0, container: s, children: r }) })) });
|
|
718
718
|
};
|
|
719
|
-
|
|
720
|
-
var ut = "DialogOverlay",
|
|
719
|
+
Or.displayName = en;
|
|
720
|
+
var ut = "DialogOverlay", Cr = N.forwardRef(
|
|
721
721
|
(e, t) => {
|
|
722
|
-
const n =
|
|
723
|
-
return o.modal ? /* @__PURE__ */ f.jsx(gt, { present: a || o.open, children: /* @__PURE__ */ f.jsx(
|
|
722
|
+
const n = Tr(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(Eo, { ...s, ref: t }) }) : null;
|
|
724
724
|
}
|
|
725
725
|
);
|
|
726
|
-
|
|
727
|
-
var
|
|
726
|
+
Cr.displayName = ut;
|
|
727
|
+
var Eo = N.forwardRef(
|
|
728
728
|
(e, t) => {
|
|
729
729
|
const { __scopeDialog: n, ...a } = e, s = ie(ut, n);
|
|
730
730
|
return (
|
|
731
731
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
732
732
|
// ie. when `Overlay` and `Content` are siblings
|
|
733
|
-
/* @__PURE__ */ f.jsx(
|
|
733
|
+
/* @__PURE__ */ f.jsx(La, { as: fr, allowPinchZoom: !0, shards: [s.contentRef], children: /* @__PURE__ */ f.jsx(
|
|
734
734
|
me.div,
|
|
735
735
|
{
|
|
736
|
-
"data-state":
|
|
736
|
+
"data-state": nn(s.open),
|
|
737
737
|
...a,
|
|
738
738
|
ref: t,
|
|
739
739
|
style: { pointerEvents: "auto", ...a.style }
|
|
@@ -741,21 +741,21 @@ var Po = N.forwardRef(
|
|
|
741
741
|
) })
|
|
742
742
|
);
|
|
743
743
|
}
|
|
744
|
-
), Ne = "DialogContent",
|
|
744
|
+
), Ne = "DialogContent", Pr = N.forwardRef(
|
|
745
745
|
(e, t) => {
|
|
746
|
-
const n =
|
|
747
|
-
return /* @__PURE__ */ f.jsx(gt, { present: a || o.open, children: o.modal ? /* @__PURE__ */ f.jsx(
|
|
746
|
+
const n = Tr(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(Ro, { ...s, ref: t }) : /* @__PURE__ */ f.jsx(Ao, { ...s, ref: t }) });
|
|
748
748
|
}
|
|
749
749
|
);
|
|
750
|
-
|
|
751
|
-
var
|
|
750
|
+
Pr.displayName = Ne;
|
|
751
|
+
var Ro = N.forwardRef(
|
|
752
752
|
(e, t) => {
|
|
753
753
|
const n = ie(Ne, e.__scopeDialog), a = N.useRef(null), s = Yt(t, n.contentRef, a);
|
|
754
754
|
return N.useEffect(() => {
|
|
755
755
|
const o = a.current;
|
|
756
|
-
if (o) return
|
|
756
|
+
if (o) return Ua(o);
|
|
757
757
|
}, []), /* @__PURE__ */ f.jsx(
|
|
758
|
-
|
|
758
|
+
Er,
|
|
759
759
|
{
|
|
760
760
|
...e,
|
|
761
761
|
ref: s,
|
|
@@ -776,11 +776,11 @@ var Eo = N.forwardRef(
|
|
|
776
776
|
}
|
|
777
777
|
);
|
|
778
778
|
}
|
|
779
|
-
),
|
|
779
|
+
), Ao = N.forwardRef(
|
|
780
780
|
(e, t) => {
|
|
781
781
|
const n = ie(Ne, e.__scopeDialog), a = N.useRef(!1), s = N.useRef(!1);
|
|
782
782
|
return /* @__PURE__ */ f.jsx(
|
|
783
|
-
|
|
783
|
+
Er,
|
|
784
784
|
{
|
|
785
785
|
...e,
|
|
786
786
|
ref: t,
|
|
@@ -799,12 +799,12 @@ var Eo = N.forwardRef(
|
|
|
799
799
|
}
|
|
800
800
|
);
|
|
801
801
|
}
|
|
802
|
-
),
|
|
802
|
+
), Er = N.forwardRef(
|
|
803
803
|
(e, t) => {
|
|
804
804
|
const { __scopeDialog: n, trapFocus: a, onOpenAutoFocus: s, onCloseAutoFocus: o, ...r } = e, i = ie(Ne, n), l = N.useRef(null), c = Yt(t, l);
|
|
805
|
-
return
|
|
805
|
+
return Ma(), /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
806
806
|
/* @__PURE__ */ f.jsx(
|
|
807
|
-
|
|
807
|
+
Ha,
|
|
808
808
|
{
|
|
809
809
|
asChild: !0,
|
|
810
810
|
loop: !0,
|
|
@@ -812,13 +812,13 @@ var Eo = N.forwardRef(
|
|
|
812
812
|
onMountAutoFocus: s,
|
|
813
813
|
onUnmountAutoFocus: o,
|
|
814
814
|
children: /* @__PURE__ */ f.jsx(
|
|
815
|
-
|
|
815
|
+
Ba,
|
|
816
816
|
{
|
|
817
817
|
role: "dialog",
|
|
818
818
|
id: i.contentId,
|
|
819
819
|
"aria-describedby": i.descriptionId,
|
|
820
820
|
"aria-labelledby": i.titleId,
|
|
821
|
-
"data-state":
|
|
821
|
+
"data-state": nn(i.open),
|
|
822
822
|
...r,
|
|
823
823
|
ref: c,
|
|
824
824
|
onDismiss: () => i.onOpenChange(!1)
|
|
@@ -827,28 +827,28 @@ var Eo = N.forwardRef(
|
|
|
827
827
|
}
|
|
828
828
|
),
|
|
829
829
|
/* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
830
|
-
/* @__PURE__ */ f.jsx(
|
|
831
|
-
/* @__PURE__ */ f.jsx(
|
|
830
|
+
/* @__PURE__ */ f.jsx(Fo, { titleId: i.titleId }),
|
|
831
|
+
/* @__PURE__ */ f.jsx(Io, { contentRef: l, descriptionId: i.descriptionId })
|
|
832
832
|
] })
|
|
833
833
|
] });
|
|
834
834
|
}
|
|
835
|
-
),
|
|
835
|
+
), tn = "DialogTitle", Rr = N.forwardRef(
|
|
836
836
|
(e, t) => {
|
|
837
|
-
const { __scopeDialog: n, ...a } = e, s = ie(
|
|
837
|
+
const { __scopeDialog: n, ...a } = e, s = ie(tn, n);
|
|
838
838
|
return /* @__PURE__ */ f.jsx(me.h2, { id: s.titleId, ...a, ref: t });
|
|
839
839
|
}
|
|
840
840
|
);
|
|
841
|
-
|
|
842
|
-
var
|
|
841
|
+
Rr.displayName = tn;
|
|
842
|
+
var Ar = "DialogDescription", Fr = N.forwardRef(
|
|
843
843
|
(e, t) => {
|
|
844
|
-
const { __scopeDialog: n, ...a } = e, s = ie(
|
|
844
|
+
const { __scopeDialog: n, ...a } = e, s = ie(Ar, n);
|
|
845
845
|
return /* @__PURE__ */ f.jsx(me.p, { id: s.descriptionId, ...a, ref: t });
|
|
846
846
|
}
|
|
847
847
|
);
|
|
848
|
-
|
|
849
|
-
var
|
|
848
|
+
Fr.displayName = Ar;
|
|
849
|
+
var qr = "DialogClose", Ir = N.forwardRef(
|
|
850
850
|
(e, t) => {
|
|
851
|
-
const { __scopeDialog: n, ...a } = e, s = ie(
|
|
851
|
+
const { __scopeDialog: n, ...a } = e, s = ie(qr, n);
|
|
852
852
|
return /* @__PURE__ */ f.jsx(
|
|
853
853
|
me.button,
|
|
854
854
|
{
|
|
@@ -860,16 +860,16 @@ var Rr = "DialogClose", Ar = N.forwardRef(
|
|
|
860
860
|
);
|
|
861
861
|
}
|
|
862
862
|
);
|
|
863
|
-
|
|
864
|
-
function
|
|
863
|
+
Ir.displayName = qr;
|
|
864
|
+
function nn(e) {
|
|
865
865
|
return e ? "open" : "closed";
|
|
866
866
|
}
|
|
867
|
-
var
|
|
867
|
+
var _r = "DialogTitleWarning", [Au, Lr] = Da(_r, {
|
|
868
868
|
contentName: Ne,
|
|
869
|
-
titleName:
|
|
869
|
+
titleName: tn,
|
|
870
870
|
docsSlug: "dialog"
|
|
871
|
-
}),
|
|
872
|
-
const t =
|
|
871
|
+
}), Fo = ({ titleId: e }) => {
|
|
872
|
+
const t = Lr(_r), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
873
873
|
|
|
874
874
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
875
875
|
|
|
@@ -877,16 +877,16 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
877
877
|
return N.useEffect(() => {
|
|
878
878
|
e && (document.getElementById(e) || console.error(n));
|
|
879
879
|
}, [n, e]), null;
|
|
880
|
-
},
|
|
881
|
-
const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${
|
|
880
|
+
}, qo = "DialogDescriptionWarning", Io = ({ contentRef: e, descriptionId: t }) => {
|
|
881
|
+
const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Lr(qo).contentName}}.`;
|
|
882
882
|
return N.useEffect(() => {
|
|
883
883
|
var o;
|
|
884
884
|
const s = (o = e.current) == null ? void 0 : o.getAttribute("aria-describedby");
|
|
885
885
|
t && s && (document.getElementById(t) || console.warn(a));
|
|
886
886
|
}, [a, e, t]), null;
|
|
887
|
-
},
|
|
888
|
-
const
|
|
889
|
-
|
|
887
|
+
}, _o = wr, Lo = Nr, Uo = Or, Ur = Cr, Mr = Pr, Hr = Rr, Br = Fr, Mo = Ir;
|
|
888
|
+
const Ho = _o, Bo = Lo, Do = Uo, Dr = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
889
|
+
Ur,
|
|
890
890
|
{
|
|
891
891
|
ref: n,
|
|
892
892
|
className: A(
|
|
@@ -896,11 +896,11 @@ const Mo = Io, Ho = _o, Bo = Lo, Mr = N.forwardRef(({ className: e, ...t }, n) =
|
|
|
896
896
|
...t
|
|
897
897
|
}
|
|
898
898
|
));
|
|
899
|
-
|
|
900
|
-
const
|
|
901
|
-
/* @__PURE__ */ f.jsx(
|
|
899
|
+
Dr.displayName = Ur.displayName;
|
|
900
|
+
const Vr = N.forwardRef(({ className: e, children: t, ...n }, a) => /* @__PURE__ */ f.jsxs(Do, { children: [
|
|
901
|
+
/* @__PURE__ */ f.jsx(Dr, {}),
|
|
902
902
|
/* @__PURE__ */ f.jsxs(
|
|
903
|
-
|
|
903
|
+
Mr,
|
|
904
904
|
{
|
|
905
905
|
ref: a,
|
|
906
906
|
className: A(
|
|
@@ -910,17 +910,17 @@ const Hr = N.forwardRef(({ className: e, children: t, ...n }, a) => /* @__PURE__
|
|
|
910
910
|
...n,
|
|
911
911
|
children: [
|
|
912
912
|
t,
|
|
913
|
-
/* @__PURE__ */ f.jsxs(
|
|
914
|
-
/* @__PURE__ */ f.jsx(
|
|
913
|
+
/* @__PURE__ */ f.jsxs(Mo, { 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
|
+
/* @__PURE__ */ f.jsx(kr, { className: "h-4 w-4" }),
|
|
915
915
|
/* @__PURE__ */ f.jsx("span", { className: "sr-only", children: "Close" })
|
|
916
916
|
] })
|
|
917
917
|
]
|
|
918
918
|
}
|
|
919
919
|
)
|
|
920
920
|
] }));
|
|
921
|
-
|
|
922
|
-
const
|
|
923
|
-
|
|
921
|
+
Vr.displayName = Mr.displayName;
|
|
922
|
+
const zr = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
923
|
+
Hr,
|
|
924
924
|
{
|
|
925
925
|
ref: n,
|
|
926
926
|
className: A(
|
|
@@ -930,17 +930,17 @@ const Br = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
930
930
|
...t
|
|
931
931
|
}
|
|
932
932
|
));
|
|
933
|
-
|
|
934
|
-
const
|
|
935
|
-
|
|
933
|
+
zr.displayName = Hr.displayName;
|
|
934
|
+
const Vo = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
935
|
+
Br,
|
|
936
936
|
{
|
|
937
937
|
ref: n,
|
|
938
938
|
className: A("text-sm text-muted-foreground", e),
|
|
939
939
|
...t
|
|
940
940
|
}
|
|
941
941
|
));
|
|
942
|
-
|
|
943
|
-
const
|
|
942
|
+
Vo.displayName = Br.displayName;
|
|
943
|
+
const rn = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
944
944
|
"div",
|
|
945
945
|
{
|
|
946
946
|
ref: n,
|
|
@@ -951,8 +951,8 @@ const an = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
951
951
|
...t
|
|
952
952
|
}
|
|
953
953
|
));
|
|
954
|
-
|
|
955
|
-
const
|
|
954
|
+
rn.displayName = "Card";
|
|
955
|
+
const zo = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
956
956
|
"div",
|
|
957
957
|
{
|
|
958
958
|
ref: n,
|
|
@@ -960,8 +960,8 @@ const Vo = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
960
960
|
...t
|
|
961
961
|
}
|
|
962
962
|
));
|
|
963
|
-
|
|
964
|
-
const
|
|
963
|
+
zo.displayName = "CardHeader";
|
|
964
|
+
const Wo = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
965
965
|
"h3",
|
|
966
966
|
{
|
|
967
967
|
ref: n,
|
|
@@ -969,8 +969,8 @@ const zo = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
969
969
|
...t
|
|
970
970
|
}
|
|
971
971
|
));
|
|
972
|
-
|
|
973
|
-
const
|
|
972
|
+
Wo.displayName = "CardTitle";
|
|
973
|
+
const Jo = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
974
974
|
"p",
|
|
975
975
|
{
|
|
976
976
|
ref: n,
|
|
@@ -978,10 +978,10 @@ const Wo = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
978
978
|
...t
|
|
979
979
|
}
|
|
980
980
|
));
|
|
981
|
-
|
|
982
|
-
const
|
|
983
|
-
|
|
984
|
-
const
|
|
981
|
+
Jo.displayName = "CardDescription";
|
|
982
|
+
const Go = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx("div", { ref: n, className: A("p-6 pt-0", e), ...t }));
|
|
983
|
+
Go.displayName = "CardContent";
|
|
984
|
+
const Ko = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
985
985
|
"div",
|
|
986
986
|
{
|
|
987
987
|
ref: n,
|
|
@@ -989,10 +989,10 @@ const Go = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
989
989
|
...t
|
|
990
990
|
}
|
|
991
991
|
));
|
|
992
|
-
|
|
993
|
-
var
|
|
994
|
-
|
|
995
|
-
]),
|
|
992
|
+
Ko.displayName = "CardFooter";
|
|
993
|
+
var an = "Tabs", [Qo, Fu] = dr(an, [
|
|
994
|
+
vr
|
|
995
|
+
]), Wr = vr(), [Yo, on] = Qo(an), Jr = N.forwardRef(
|
|
996
996
|
(e, t) => {
|
|
997
997
|
const {
|
|
998
998
|
__scopeTabs: n,
|
|
@@ -1003,13 +1003,13 @@ var on = "Tabs", [Ko, Fu] = cr(on, [
|
|
|
1003
1003
|
dir: i,
|
|
1004
1004
|
activationMode: l = "automatic",
|
|
1005
1005
|
...c
|
|
1006
|
-
} = e, u =
|
|
1006
|
+
} = e, u = za(i), [p, d] = pr({
|
|
1007
1007
|
prop: a,
|
|
1008
1008
|
onChange: s,
|
|
1009
1009
|
defaultProp: o
|
|
1010
1010
|
});
|
|
1011
1011
|
return /* @__PURE__ */ f.jsx(
|
|
1012
|
-
|
|
1012
|
+
Yo,
|
|
1013
1013
|
{
|
|
1014
1014
|
scope: n,
|
|
1015
1015
|
baseId: rt(),
|
|
@@ -1031,12 +1031,12 @@ var on = "Tabs", [Ko, Fu] = cr(on, [
|
|
|
1031
1031
|
);
|
|
1032
1032
|
}
|
|
1033
1033
|
);
|
|
1034
|
-
|
|
1035
|
-
var
|
|
1034
|
+
Jr.displayName = an;
|
|
1035
|
+
var Gr = "TabsList", Kr = N.forwardRef(
|
|
1036
1036
|
(e, t) => {
|
|
1037
|
-
const { __scopeTabs: n, loop: a = !0, ...s } = e, o =
|
|
1037
|
+
const { __scopeTabs: n, loop: a = !0, ...s } = e, o = on(Gr, n), r = Wr(n);
|
|
1038
1038
|
return /* @__PURE__ */ f.jsx(
|
|
1039
|
-
|
|
1039
|
+
yo,
|
|
1040
1040
|
{
|
|
1041
1041
|
asChild: !0,
|
|
1042
1042
|
...r,
|
|
@@ -1056,12 +1056,12 @@ var zr = "TabsList", Wr = N.forwardRef(
|
|
|
1056
1056
|
);
|
|
1057
1057
|
}
|
|
1058
1058
|
);
|
|
1059
|
-
|
|
1060
|
-
var
|
|
1059
|
+
Kr.displayName = Gr;
|
|
1060
|
+
var Qr = "TabsTrigger", Yr = N.forwardRef(
|
|
1061
1061
|
(e, t) => {
|
|
1062
|
-
const { __scopeTabs: n, value: a, disabled: s = !1, ...o } = e, r =
|
|
1062
|
+
const { __scopeTabs: n, value: a, disabled: s = !1, ...o } = e, r = on(Qr, n), i = Wr(n), l = ea(r.baseId, a), c = ta(r.baseId, a), u = a === r.value;
|
|
1063
1063
|
return /* @__PURE__ */ f.jsx(
|
|
1064
|
-
|
|
1064
|
+
go,
|
|
1065
1065
|
{
|
|
1066
1066
|
asChild: !0,
|
|
1067
1067
|
...i,
|
|
@@ -1096,10 +1096,10 @@ var Jr = "TabsTrigger", Gr = N.forwardRef(
|
|
|
1096
1096
|
);
|
|
1097
1097
|
}
|
|
1098
1098
|
);
|
|
1099
|
-
|
|
1100
|
-
var
|
|
1099
|
+
Yr.displayName = Qr;
|
|
1100
|
+
var Xr = "TabsContent", Zr = N.forwardRef(
|
|
1101
1101
|
(e, t) => {
|
|
1102
|
-
const { __scopeTabs: n, value: a, forceMount: s, children: o, ...r } = e, i =
|
|
1102
|
+
const { __scopeTabs: n, value: a, forceMount: s, children: o, ...r } = e, i = on(Xr, n), l = ea(i.baseId, a), c = ta(i.baseId, a), u = a === i.value, p = N.useRef(u);
|
|
1103
1103
|
return N.useEffect(() => {
|
|
1104
1104
|
const d = requestAnimationFrame(() => p.current = !1);
|
|
1105
1105
|
return () => cancelAnimationFrame(d);
|
|
@@ -1124,16 +1124,16 @@ var Kr = "TabsContent", Qr = N.forwardRef(
|
|
|
1124
1124
|
) });
|
|
1125
1125
|
}
|
|
1126
1126
|
);
|
|
1127
|
-
|
|
1128
|
-
function
|
|
1127
|
+
Zr.displayName = Xr;
|
|
1128
|
+
function ea(e, t) {
|
|
1129
1129
|
return `${e}-trigger-${t}`;
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1131
|
+
function ta(e, t) {
|
|
1132
1132
|
return `${e}-content-${t}`;
|
|
1133
1133
|
}
|
|
1134
|
-
var
|
|
1135
|
-
const
|
|
1136
|
-
|
|
1134
|
+
var na = Jr, sn = Kr, ln = Yr, cn = Zr;
|
|
1135
|
+
const Nn = na, _t = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
1136
|
+
sn,
|
|
1137
1137
|
{
|
|
1138
1138
|
ref: n,
|
|
1139
1139
|
className: A(
|
|
@@ -1143,9 +1143,9 @@ const wn = Yo, _t = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
|
1143
1143
|
...t
|
|
1144
1144
|
}
|
|
1145
1145
|
));
|
|
1146
|
-
_t.displayName =
|
|
1146
|
+
_t.displayName = sn.displayName;
|
|
1147
1147
|
const Ce = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
1148
|
-
|
|
1148
|
+
ln,
|
|
1149
1149
|
{
|
|
1150
1150
|
ref: n,
|
|
1151
1151
|
className: A(
|
|
@@ -1155,9 +1155,9 @@ const Ce = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
1155
1155
|
...t
|
|
1156
1156
|
}
|
|
1157
1157
|
));
|
|
1158
|
-
Ce.displayName =
|
|
1158
|
+
Ce.displayName = ln.displayName;
|
|
1159
1159
|
const Pe = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
1160
|
-
|
|
1160
|
+
cn,
|
|
1161
1161
|
{
|
|
1162
1162
|
ref: n,
|
|
1163
1163
|
className: A(
|
|
@@ -1167,7 +1167,7 @@ const Pe = N.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
1167
1167
|
...t
|
|
1168
1168
|
}
|
|
1169
1169
|
));
|
|
1170
|
-
Pe.displayName =
|
|
1170
|
+
Pe.displayName = cn.displayName;
|
|
1171
1171
|
const Xo = async (e, t, n = 5e3) => {
|
|
1172
1172
|
const a = new AbortController(), s = a.signal, o = fetch(e, { ...t, signal: s }), r = new Promise((i, l) => {
|
|
1173
1173
|
const c = setTimeout(() => {
|
|
@@ -1182,12 +1182,12 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1182
1182
|
const n = (3 * $t(e) + 2 * $t(e) + $t(e)) % 360, { saturation: a = 75, lightness: s = 60 } = t;
|
|
1183
1183
|
return `${n}deg ${a}% ${s}%`;
|
|
1184
1184
|
}, St = "data-linked-param", ei = (e) => {
|
|
1185
|
-
const [t] =
|
|
1185
|
+
const [t] = Za();
|
|
1186
1186
|
return Zo(
|
|
1187
1187
|
e,
|
|
1188
1188
|
t ? void 0 : { saturation: 85, lightness: 50 }
|
|
1189
1189
|
);
|
|
1190
|
-
},
|
|
1190
|
+
}, un = ({
|
|
1191
1191
|
name: e,
|
|
1192
1192
|
className: t,
|
|
1193
1193
|
backgroundOpacity: n = "100%",
|
|
@@ -1196,8 +1196,8 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1196
1196
|
children: o,
|
|
1197
1197
|
onClick: r
|
|
1198
1198
|
}) => {
|
|
1199
|
-
const i =
|
|
1200
|
-
return
|
|
1199
|
+
const i = hr(null), l = e.replace(/[{}]/g, ""), c = s == null ? void 0 : s.replace(/[{}]/g, ""), u = ei(l), p = `hsl(${u} / ${a})`, d = `hsl(${u} / ${n})`;
|
|
1200
|
+
return yr(() => {
|
|
1201
1201
|
if (!c || !i.current) return;
|
|
1202
1202
|
const m = () => {
|
|
1203
1203
|
document.querySelectorAll(`[${St}="${c}"]`).forEach((y) => {
|
|
@@ -1209,8 +1209,8 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1209
1209
|
});
|
|
1210
1210
|
};
|
|
1211
1211
|
return i.current.addEventListener("mouseenter", m), i.current.addEventListener("mouseleave", h), () => {
|
|
1212
|
-
var y,
|
|
1213
|
-
(y = i.current) == null || y.removeEventListener("mouseenter", m), (
|
|
1212
|
+
var y, g;
|
|
1213
|
+
(y = i.current) == null || y.removeEventListener("mouseenter", m), (g = i.current) == null || g.removeEventListener("mouseleave", h);
|
|
1214
1214
|
};
|
|
1215
1215
|
}, [c]), /* @__PURE__ */ f.jsxs(
|
|
1216
1216
|
"span",
|
|
@@ -1244,7 +1244,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1244
1244
|
}), s;
|
|
1245
1245
|
}, ni = (e, t) => {
|
|
1246
1246
|
const n = N.forwardRef(({ className: a, asChild: s, ...o }, r) => {
|
|
1247
|
-
const i = s ?
|
|
1247
|
+
const i = s ? fr : e;
|
|
1248
1248
|
return N.createElement(i, {
|
|
1249
1249
|
...o,
|
|
1250
1250
|
ref: r,
|
|
@@ -1262,7 +1262,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1262
1262
|
const { fields: n, append: a, remove: s } = Xt({
|
|
1263
1263
|
control: e,
|
|
1264
1264
|
name: "headers"
|
|
1265
|
-
}), o =
|
|
1265
|
+
}), o = Sn({ name: "identity", control: e }), r = Sn({ name: "headers", control: e }), i = o !== Be;
|
|
1266
1266
|
return /* @__PURE__ */ f.jsxs("div", { className: "grid grid-cols-[1fr_1fr_auto]", children: [
|
|
1267
1267
|
n.map((l, c) => {
|
|
1268
1268
|
var p;
|
|
@@ -1286,7 +1286,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1286
1286
|
autoComplete: "off"
|
|
1287
1287
|
}
|
|
1288
1288
|
),
|
|
1289
|
-
u && /* @__PURE__ */ f.jsx(
|
|
1289
|
+
u && /* @__PURE__ */ f.jsx(eo, { size: 16, className: "text-amber-500" })
|
|
1290
1290
|
] }),
|
|
1291
1291
|
/* @__PURE__ */ f.jsx(
|
|
1292
1292
|
Lt,
|
|
@@ -1305,7 +1305,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1305
1305
|
s(c);
|
|
1306
1306
|
},
|
|
1307
1307
|
type: "button",
|
|
1308
|
-
children: /* @__PURE__ */ f.jsx(
|
|
1308
|
+
children: /* @__PURE__ */ f.jsx(kr, { size: 16 })
|
|
1309
1309
|
}
|
|
1310
1310
|
),
|
|
1311
1311
|
/* @__PURE__ */ f.jsx("div", { className: "col-span-full border-b" })
|
|
@@ -1339,7 +1339,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1339
1339
|
name: `pathParams.${a}.value`,
|
|
1340
1340
|
render: ({ field: s }) => /* @__PURE__ */ f.jsxs("div", { children: [
|
|
1341
1341
|
/* @__PURE__ */ f.jsx(
|
|
1342
|
-
|
|
1342
|
+
un,
|
|
1343
1343
|
{
|
|
1344
1344
|
slug: n.name,
|
|
1345
1345
|
name: n.name,
|
|
@@ -1362,7 +1362,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1362
1362
|
control: e,
|
|
1363
1363
|
name: `pathParams.${a}.value`,
|
|
1364
1364
|
render: ({ field: s }) => /* @__PURE__ */ f.jsx(
|
|
1365
|
-
|
|
1365
|
+
mr,
|
|
1366
1366
|
{
|
|
1367
1367
|
...s,
|
|
1368
1368
|
placeholder: "Enter value",
|
|
@@ -1391,7 +1391,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1391
1391
|
),
|
|
1392
1392
|
title: "Clear value",
|
|
1393
1393
|
onClick: () => s.onChange(""),
|
|
1394
|
-
children: /* @__PURE__ */ f.jsx(
|
|
1394
|
+
children: /* @__PURE__ */ f.jsx(xr, { size: 16 })
|
|
1395
1395
|
}
|
|
1396
1396
|
)
|
|
1397
1397
|
}
|
|
@@ -1405,7 +1405,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1405
1405
|
const { fields: n } = Xt({
|
|
1406
1406
|
control: e,
|
|
1407
1407
|
name: "queryParams"
|
|
1408
|
-
}), a =
|
|
1408
|
+
}), a = no(), s = t.map((i) => !!i.isRequired), r = a.watch("identity") !== Be;
|
|
1409
1409
|
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(
|
|
1410
1410
|
// TODO remove this hack for Accu or make it more generic
|
|
1411
1411
|
(i) => !(r && i.name === "apikey")
|
|
@@ -1451,7 +1451,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1451
1451
|
{
|
|
1452
1452
|
control: e,
|
|
1453
1453
|
render: ({ field: c }) => /* @__PURE__ */ f.jsx(
|
|
1454
|
-
|
|
1454
|
+
mr,
|
|
1455
1455
|
{
|
|
1456
1456
|
...c,
|
|
1457
1457
|
onChange: (u) => {
|
|
@@ -1481,7 +1481,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1481
1481
|
),
|
|
1482
1482
|
title: "Clear value",
|
|
1483
1483
|
onClick: () => c.onChange(""),
|
|
1484
|
-
children: /* @__PURE__ */ f.jsx(
|
|
1484
|
+
children: /* @__PURE__ */ f.jsx(xr, { size: 16 })
|
|
1485
1485
|
}
|
|
1486
1486
|
),
|
|
1487
1487
|
name: `queryParams.${l}.value`
|
|
@@ -1489,7 +1489,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1489
1489
|
)
|
|
1490
1490
|
] }) })
|
|
1491
1491
|
] }, i.id)) }) }) });
|
|
1492
|
-
},
|
|
1492
|
+
}, ra = ({
|
|
1493
1493
|
value: e,
|
|
1494
1494
|
onChange: t,
|
|
1495
1495
|
className: n,
|
|
@@ -1507,7 +1507,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1507
1507
|
children: a.map((s) => /* @__PURE__ */ f.jsx("option", { value: s.value, children: s.label }, s.value))
|
|
1508
1508
|
}
|
|
1509
1509
|
),
|
|
1510
|
-
/* @__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(
|
|
1510
|
+
/* @__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(ko, { size: 14 }) })
|
|
1511
1511
|
] }), ii = (e) => {
|
|
1512
1512
|
var n;
|
|
1513
1513
|
return (n = Object.entries({
|
|
@@ -1534,11 +1534,11 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1534
1534
|
body: e = "",
|
|
1535
1535
|
headers: t
|
|
1536
1536
|
}) => {
|
|
1537
|
-
const n = si(t), a = li(e), s = a || e, [o, r] =
|
|
1537
|
+
const n = si(t), a = li(e), s = a || e, [o, r] = gr(
|
|
1538
1538
|
a ? "formatted" : "raw"
|
|
1539
1539
|
);
|
|
1540
1540
|
return /* @__PURE__ */ f.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
1541
|
-
/* @__PURE__ */ f.jsx(
|
|
1541
|
+
/* @__PURE__ */ f.jsx(rn, { className: "shadow-none", children: /* @__PURE__ */ f.jsx(
|
|
1542
1542
|
Qe,
|
|
1543
1543
|
{
|
|
1544
1544
|
language: o === "raw" ? a ? "plain" : n : "json",
|
|
@@ -1549,7 +1549,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1549
1549
|
}
|
|
1550
1550
|
) }),
|
|
1551
1551
|
a && /* @__PURE__ */ f.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ f.jsx(
|
|
1552
|
-
|
|
1552
|
+
ra,
|
|
1553
1553
|
{
|
|
1554
1554
|
value: o,
|
|
1555
1555
|
onChange: (i) => r(i.target.value),
|
|
@@ -1597,7 +1597,7 @@ const di = {
|
|
|
1597
1597
|
defaultBody: r = ""
|
|
1598
1598
|
}) => {
|
|
1599
1599
|
var w, S, j;
|
|
1600
|
-
const { register: i, control: l, handleSubmit: c, watch: u, setValue: p, ...d } =
|
|
1600
|
+
const { register: i, control: l, handleSubmit: c, watch: u, setValue: p, ...d } = ro({
|
|
1601
1601
|
defaultValues: {
|
|
1602
1602
|
body: r,
|
|
1603
1603
|
queryParams: s.map((k) => ({
|
|
@@ -1615,14 +1615,14 @@ const di = {
|
|
|
1615
1615
|
})),
|
|
1616
1616
|
identity: Be
|
|
1617
1617
|
}
|
|
1618
|
-
}), m = u(), h =
|
|
1619
|
-
|
|
1618
|
+
}), m = u(), h = qa(), y = hr(!1);
|
|
1619
|
+
yr(() => {
|
|
1620
1620
|
var O;
|
|
1621
1621
|
if (y.current) return;
|
|
1622
1622
|
const k = (O = h.data) == null ? void 0 : O.at(0);
|
|
1623
1623
|
k && (p("identity", k.id), y.current = !0);
|
|
1624
1624
|
}, [p, h.data]);
|
|
1625
|
-
const
|
|
1625
|
+
const g = ao({
|
|
1626
1626
|
mutationFn: async (k) => {
|
|
1627
1627
|
var L, H;
|
|
1628
1628
|
const O = ti(e, t, k), R = performance.now(), I = new Request(O, {
|
|
@@ -1641,9 +1641,9 @@ const di = {
|
|
|
1641
1641
|
time: Q
|
|
1642
1642
|
};
|
|
1643
1643
|
}
|
|
1644
|
-
}),
|
|
1644
|
+
}), b = t.split("/").map((k, O, R) => {
|
|
1645
1645
|
var L;
|
|
1646
|
-
const I = k.startsWith("{") && k.endsWith("}"), V = k.replace(/[{}]/g, ""), Q = (L = m.pathParams.find((H) => H.name === V)) == null ? void 0 : L.value, q = Q ? /* @__PURE__ */ f.jsx(
|
|
1646
|
+
const I = k.startsWith("{") && k.endsWith("}"), V = k.replace(/[{}]/g, ""), Q = (L = m.pathParams.find((H) => H.name === V)) == null ? void 0 : L.value, q = Q ? /* @__PURE__ */ f.jsx(un, { backgroundOpacity: "25%", name: k, slug: k, children: encodeURIComponent(Q) }) : /* @__PURE__ */ f.jsx(
|
|
1647
1647
|
"span",
|
|
1648
1648
|
{
|
|
1649
1649
|
className: "underline decoration-wavy decoration-red-500",
|
|
@@ -1661,9 +1661,9 @@ const di = {
|
|
|
1661
1661
|
);
|
|
1662
1662
|
});
|
|
1663
1663
|
ui(
|
|
1664
|
-
((w =
|
|
1664
|
+
((w = g.data) == null ? void 0 : w.headers.get("Content-Type")) ?? ""
|
|
1665
1665
|
);
|
|
1666
|
-
const
|
|
1666
|
+
const v = Array.from(((S = g.data) == null ? void 0 : S.headers.entries()) ?? []), x = m.queryParams.filter((k) => k.active).map((k, O, R) => /* @__PURE__ */ f.jsxs(at, { children: [
|
|
1667
1667
|
k.name,
|
|
1668
1668
|
"=",
|
|
1669
1669
|
encodeURIComponent(k.value).replaceAll("%20", "+"),
|
|
@@ -1671,7 +1671,7 @@ const di = {
|
|
|
1671
1671
|
/* @__PURE__ */ f.jsx("wbr", {})
|
|
1672
1672
|
] }, k.name));
|
|
1673
1673
|
return /* @__PURE__ */ f.jsx(
|
|
1674
|
-
|
|
1674
|
+
oo,
|
|
1675
1675
|
{
|
|
1676
1676
|
register: i,
|
|
1677
1677
|
control: l,
|
|
@@ -1679,21 +1679,21 @@ const di = {
|
|
|
1679
1679
|
watch: u,
|
|
1680
1680
|
setValue: p,
|
|
1681
1681
|
...d,
|
|
1682
|
-
children: /* @__PURE__ */ f.jsx("form", { onSubmit: c((k) =>
|
|
1682
|
+
children: /* @__PURE__ */ f.jsx("form", { onSubmit: c((k) => g.mutateAsync(k)), children: /* @__PURE__ */ f.jsxs("div", { className: "grid grid-cols-2 text-sm h-full", children: [
|
|
1683
1683
|
/* @__PURE__ */ f.jsxs("div", { className: "flex flex-col gap-4 p-8 bg-muted/50 after:bg-muted-foreground/20 relative after:absolute after:w-px after:inset-0 after:left-auto", children: [
|
|
1684
1684
|
/* @__PURE__ */ f.jsxs("div", { className: "flex gap-2 items-stretch", children: [
|
|
1685
1685
|
/* @__PURE__ */ f.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md", children: [
|
|
1686
1686
|
/* @__PURE__ */ f.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono", children: n.toUpperCase() }),
|
|
1687
1687
|
/* @__PURE__ */ f.jsxs("div", { className: "p-2 font-mono text-xs", children: [
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1688
|
+
b,
|
|
1689
|
+
x.length > 0 ? "?" : "",
|
|
1690
|
+
x
|
|
1691
1691
|
] })
|
|
1692
1692
|
] }),
|
|
1693
1693
|
/* @__PURE__ */ f.jsx(qe, { type: "submit", className: "h-auto flex gap-1", children: "Send" })
|
|
1694
1694
|
] }),
|
|
1695
1695
|
/* @__PURE__ */ f.jsxs(
|
|
1696
|
-
|
|
1696
|
+
Nn,
|
|
1697
1697
|
{
|
|
1698
1698
|
defaultValue: o.length > 0 ? "parameters" : "headers",
|
|
1699
1699
|
children: [
|
|
@@ -1719,16 +1719,16 @@ const di = {
|
|
|
1719
1719
|
/* @__PURE__ */ f.jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
1720
1720
|
"Auth:",
|
|
1721
1721
|
/* @__PURE__ */ f.jsxs(
|
|
1722
|
-
|
|
1722
|
+
io,
|
|
1723
1723
|
{
|
|
1724
1724
|
onValueChange: (k) => p("identity", k),
|
|
1725
1725
|
value: m.identity,
|
|
1726
1726
|
defaultValue: m.identity,
|
|
1727
1727
|
children: [
|
|
1728
|
-
/* @__PURE__ */ f.jsx(
|
|
1729
|
-
/* @__PURE__ */ f.jsxs(
|
|
1730
|
-
/* @__PURE__ */ f.jsx(
|
|
1731
|
-
(j = h.data) == null ? void 0 : j.map((k) => /* @__PURE__ */ f.jsx(
|
|
1728
|
+
/* @__PURE__ */ f.jsx(so, { className: "w-[180px] flex", children: h.isPending ? /* @__PURE__ */ f.jsx(jn, {}) : /* @__PURE__ */ f.jsx(lo, {}) }),
|
|
1729
|
+
/* @__PURE__ */ f.jsxs(co, { align: "center", children: [
|
|
1730
|
+
/* @__PURE__ */ f.jsx(wn, { value: Be, children: "None" }),
|
|
1731
|
+
(j = h.data) == null ? void 0 : j.map((k) => /* @__PURE__ */ f.jsx(wn, { value: k.id, children: k.label }, k.id))
|
|
1732
1732
|
] })
|
|
1733
1733
|
]
|
|
1734
1734
|
}
|
|
@@ -1757,88 +1757,88 @@ const di = {
|
|
|
1757
1757
|
}
|
|
1758
1758
|
)
|
|
1759
1759
|
] }),
|
|
1760
|
-
/* @__PURE__ */ f.jsx("div", { className: "flex flex-col gap-4 p-8 bg-muted/70", children:
|
|
1760
|
+
/* @__PURE__ */ f.jsx("div", { className: "flex flex-col gap-4 p-8 bg-muted/70", children: g.error ? /* @__PURE__ */ f.jsxs("div", { children: [
|
|
1761
1761
|
"Error:",
|
|
1762
1762
|
" ",
|
|
1763
|
-
|
|
1764
|
-
] }) :
|
|
1763
|
+
g.error.message || String(g.error) || "Unexpected error"
|
|
1764
|
+
] }) : g.data ? /* @__PURE__ */ f.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
1765
1765
|
/* @__PURE__ */ f.jsx("div", { className: "flex gap-2", children: /* @__PURE__ */ f.jsxs("div", { className: "flex text-xs gap-6", children: [
|
|
1766
1766
|
/* @__PURE__ */ f.jsxs("div", { children: [
|
|
1767
1767
|
"Status: ",
|
|
1768
|
-
|
|
1768
|
+
g.data.status,
|
|
1769
1769
|
" ",
|
|
1770
|
-
di[
|
|
1770
|
+
di[g.data.status] ?? ""
|
|
1771
1771
|
] }),
|
|
1772
1772
|
/* @__PURE__ */ f.jsxs("div", { children: [
|
|
1773
1773
|
"Time: ",
|
|
1774
|
-
|
|
1774
|
+
g.data.time.toFixed(0),
|
|
1775
1775
|
"ms"
|
|
1776
1776
|
] }),
|
|
1777
1777
|
/* @__PURE__ */ f.jsxs("div", { children: [
|
|
1778
1778
|
"Size: ",
|
|
1779
|
-
|
|
1779
|
+
g.data.size,
|
|
1780
1780
|
" B"
|
|
1781
1781
|
] })
|
|
1782
1782
|
] }) }),
|
|
1783
|
-
/* @__PURE__ */ f.jsxs(
|
|
1783
|
+
/* @__PURE__ */ f.jsxs(Nn, { defaultValue: "response", children: [
|
|
1784
1784
|
/* @__PURE__ */ f.jsxs(_t, { children: [
|
|
1785
1785
|
/* @__PURE__ */ f.jsx(Ce, { value: "response", children: "Response" }),
|
|
1786
|
-
/* @__PURE__ */ f.jsx(Ce, { value: "headers", children:
|
|
1786
|
+
/* @__PURE__ */ f.jsx(Ce, { value: "headers", children: v.length ? `Headers (${v.length})` : "No headers" })
|
|
1787
1787
|
] }),
|
|
1788
1788
|
/* @__PURE__ */ f.jsx(Pe, { value: "response", children: /* @__PURE__ */ f.jsx(
|
|
1789
1789
|
ci,
|
|
1790
1790
|
{
|
|
1791
|
-
headers:
|
|
1792
|
-
body:
|
|
1791
|
+
headers: g.data.headers,
|
|
1792
|
+
body: g.data.body
|
|
1793
1793
|
}
|
|
1794
1794
|
) }),
|
|
1795
|
-
/* @__PURE__ */ f.jsx(Pe, { value: "headers", children: /* @__PURE__ */ f.jsxs(
|
|
1795
|
+
/* @__PURE__ */ f.jsx(Pe, { value: "headers", children: /* @__PURE__ */ f.jsxs(rn, { className: "grid grid-cols-2 w-full gap-2.5 font-mono text-xs shadow-none p-4", children: [
|
|
1796
1796
|
/* @__PURE__ */ f.jsx("div", { className: "font-semibold", children: "Key" }),
|
|
1797
1797
|
/* @__PURE__ */ f.jsx("div", { className: "font-semibold", children: "Value" }),
|
|
1798
|
-
|
|
1798
|
+
v.map(([k, O]) => /* @__PURE__ */ f.jsxs(at, { children: [
|
|
1799
1799
|
/* @__PURE__ */ f.jsx("div", { children: k }),
|
|
1800
1800
|
/* @__PURE__ */ f.jsx("div", { className: "break-words", children: O })
|
|
1801
1801
|
] }, k))
|
|
1802
1802
|
] }) })
|
|
1803
1803
|
] })
|
|
1804
|
-
] }) : /* @__PURE__ */ f.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ f.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children:
|
|
1804
|
+
] }) : /* @__PURE__ */ f.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ f.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: g.isPending ? /* @__PURE__ */ f.jsx(jn, {}) : "Send a request first to see the response here" }) }) })
|
|
1805
1805
|
] }) })
|
|
1806
1806
|
}
|
|
1807
1807
|
);
|
|
1808
|
-
},
|
|
1809
|
-
const [t, n] =
|
|
1810
|
-
return /* @__PURE__ */ f.jsxs(
|
|
1811
|
-
/* @__PURE__ */ f.jsx(
|
|
1812
|
-
|
|
1808
|
+
}, aa = (e) => {
|
|
1809
|
+
const [t, n] = gr(!1);
|
|
1810
|
+
return /* @__PURE__ */ f.jsxs(Ho, { onOpenChange: (a) => n(a), children: [
|
|
1811
|
+
/* @__PURE__ */ f.jsx(Bo, { asChild: !0, children: e.children ?? /* @__PURE__ */ f.jsx(
|
|
1812
|
+
br,
|
|
1813
1813
|
{
|
|
1814
1814
|
className: "cursor-pointer text-primary hover:text-primary/80",
|
|
1815
1815
|
size: 16
|
|
1816
1816
|
}
|
|
1817
1817
|
) }),
|
|
1818
1818
|
/* @__PURE__ */ f.jsxs(
|
|
1819
|
-
|
|
1819
|
+
Vr,
|
|
1820
1820
|
{
|
|
1821
1821
|
className: "max-w-screen-xl w-full h-5/6 overflow-auto p-0",
|
|
1822
1822
|
"aria-describedby": void 0,
|
|
1823
1823
|
children: [
|
|
1824
|
-
/* @__PURE__ */ f.jsx(
|
|
1824
|
+
/* @__PURE__ */ f.jsx(uo, { children: /* @__PURE__ */ f.jsx(zr, { children: "Playground" }) }),
|
|
1825
1825
|
t && /* @__PURE__ */ f.jsx(fi, { ...e })
|
|
1826
1826
|
]
|
|
1827
1827
|
}
|
|
1828
1828
|
)
|
|
1829
1829
|
] });
|
|
1830
1830
|
};
|
|
1831
|
-
var
|
|
1831
|
+
var Tn = (e, t) => {
|
|
1832
1832
|
const n = e[t.name];
|
|
1833
1833
|
return n === void 0 ? (e[t.name] = t.value, e) : Array.isArray(n) ? (n.push(t.value), e) : (e[t.name] = [n, t.value], e);
|
|
1834
|
-
},
|
|
1834
|
+
}, On = "", Cn = `
|
|
1835
1835
|
`, P = class {
|
|
1836
1836
|
/**
|
|
1837
1837
|
* Helper object to format and aggragate lines of code.
|
|
1838
1838
|
* Lines are aggregated in a `code` array, and need to be joined to obtain a proper code snippet.
|
|
1839
1839
|
*/
|
|
1840
1840
|
constructor({ indent: e, join: t } = {}) {
|
|
1841
|
-
this.postProcessors = [], this.code = [], this.indentationCharacter =
|
|
1841
|
+
this.postProcessors = [], this.code = [], this.indentationCharacter = On, this.lineJoin = Cn, this.indentLine = (n, a = 0) => `${this.indentationCharacter.repeat(a)}${n}`, this.unshift = (n, a) => {
|
|
1842
1842
|
const s = this.indentLine(n, a);
|
|
1843
1843
|
this.code.unshift(s);
|
|
1844
1844
|
}, this.push = (n, a) => {
|
|
@@ -1851,17 +1851,17 @@ var jn = (e, t) => {
|
|
|
1851
1851
|
return this.postProcessors.reduce((s, o) => o(s), n);
|
|
1852
1852
|
}, this.addPostProcessor = (n) => {
|
|
1853
1853
|
this.postProcessors = [...this.postProcessors, n];
|
|
1854
|
-
}, this.indentationCharacter = e ||
|
|
1854
|
+
}, this.indentationCharacter = e || On, this.lineJoin = t ?? Cn;
|
|
1855
1855
|
}
|
|
1856
1856
|
}, pi = function(e) {
|
|
1857
1857
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1858
1858
|
}, mi = function(e) {
|
|
1859
1859
|
var t = typeof e;
|
|
1860
1860
|
return e !== null && (t === "object" || t === "function");
|
|
1861
|
-
},
|
|
1862
|
-
Object.defineProperty(
|
|
1863
|
-
|
|
1864
|
-
const hi = pi, yi = mi, gi =
|
|
1861
|
+
}, dn = {};
|
|
1862
|
+
Object.defineProperty(dn, "__esModule", { value: !0 });
|
|
1863
|
+
dn.default = (e) => Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
|
|
1864
|
+
const hi = pi, yi = mi, gi = dn.default;
|
|
1865
1865
|
var vi = (e, t, n) => {
|
|
1866
1866
|
const a = [];
|
|
1867
1867
|
return function s(o, r, i) {
|
|
@@ -1910,9 +1910,9 @@ var vi = (e, t, n) => {
|
|
|
1910
1910
|
return "{}";
|
|
1911
1911
|
a.push(o);
|
|
1912
1912
|
const p = "{" + l.newLine + u.map((d, m) => {
|
|
1913
|
-
const h = u.length - 1 === m ? l.newLine : "," + l.newLineOrSpace, y = typeof d == "symbol",
|
|
1914
|
-
let
|
|
1915
|
-
return r.transform && (
|
|
1913
|
+
const h = u.length - 1 === m ? l.newLine : "," + l.newLineOrSpace, y = typeof d == "symbol", g = !y && /^[a-z$_][a-z$_0-9]*$/i.test(d), b = y || g ? d : s(d, r);
|
|
1914
|
+
let v = s(o[d], r, i + r.indent);
|
|
1915
|
+
return r.transform && (v = r.transform(o, d, v)), l.indent + String(b) + ": " + v + h;
|
|
1916
1916
|
}).join("") + l.pad + "}";
|
|
1917
1917
|
return a.pop(), c(p);
|
|
1918
1918
|
}
|
|
@@ -1920,7 +1920,7 @@ var vi = (e, t, n) => {
|
|
|
1920
1920
|
` ? "\\n" : "\\r"), r.singleQuotes === !1 ? (o = o.replace(/"/g, '\\"'), `"${o}"`) : (o = o.replace(/\\?'/g, "\\'"), `'${o}'`);
|
|
1921
1921
|
}(e, t, n);
|
|
1922
1922
|
};
|
|
1923
|
-
const K = /* @__PURE__ */
|
|
1923
|
+
const K = /* @__PURE__ */ vo(vi);
|
|
1924
1924
|
function We(e, t = {}) {
|
|
1925
1925
|
const { delimiter: n = '"', escapeChar: a = "\\", escapeNewlines: s = !0 } = t;
|
|
1926
1926
|
return [...e.toString()].map((r) => r === "\b" ? `${a}b` : r === " " ? `${a}t` : r === `
|
|
@@ -1958,7 +1958,7 @@ var Je = (e) => We(e, { delimiter: "'" }), W = (e) => We(e, { delimiter: '"' }),
|
|
|
1958
1958
|
return e[n];
|
|
1959
1959
|
}, vt = (e, t) => !!X(e, t), ki = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
|
|
1960
1960
|
(t) => e.indexOf(t) > -1
|
|
1961
|
-
),
|
|
1961
|
+
), Pn = class {
|
|
1962
1962
|
constructor(e) {
|
|
1963
1963
|
this.name = "", this.toString = () => `:${this.name}`, this.name = e;
|
|
1964
1964
|
}
|
|
@@ -1966,14 +1966,14 @@ var Je = (e) => We(e, { delimiter: "'" }), W = (e) => We(e, { delimiter: '"' }),
|
|
|
1966
1966
|
constructor(e) {
|
|
1967
1967
|
this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
|
|
1968
1968
|
}
|
|
1969
|
-
},
|
|
1969
|
+
}, oa = (e) => e === void 0 ? null : e === null ? "null" : e.constructor.name.toLowerCase(), ia = (e) => e === void 0 ? !0 : oa(e) === "object" ? Object.keys(e).length === 0 : !1, En = (e) => (Object.keys(e).filter((t) => ia(e[t])).forEach((t) => {
|
|
1970
1970
|
delete e[t];
|
|
1971
1971
|
}), e), it = (e, t) => {
|
|
1972
1972
|
const n = " ".repeat(e);
|
|
1973
1973
|
return t.replace(/\n/g, `
|
|
1974
1974
|
${n}`);
|
|
1975
1975
|
}, Ut = (e) => {
|
|
1976
|
-
switch (
|
|
1976
|
+
switch (oa(e)) {
|
|
1977
1977
|
case "string":
|
|
1978
1978
|
return `"${e.replace(/"/g, '\\"')}"`;
|
|
1979
1979
|
case "file":
|
|
@@ -2018,7 +2018,7 @@ ${n}`);
|
|
|
2018
2018
|
switch (n.mimeType) {
|
|
2019
2019
|
case "application/json":
|
|
2020
2020
|
{
|
|
2021
|
-
c["content-type"] = new
|
|
2021
|
+
c["content-type"] = new Pn("json"), c["form-params"] = n.jsonObj;
|
|
2022
2022
|
const u = X(c.headers, "content-type");
|
|
2023
2023
|
u && delete c.headers[u];
|
|
2024
2024
|
}
|
|
@@ -2055,17 +2055,17 @@ ${n}`);
|
|
|
2055
2055
|
switch (de(c.headers, "accept")) {
|
|
2056
2056
|
case "application/json":
|
|
2057
2057
|
{
|
|
2058
|
-
c.accept = new
|
|
2058
|
+
c.accept = new Pn("json");
|
|
2059
2059
|
const u = X(c.headers, "accept");
|
|
2060
2060
|
u && delete c.headers[u];
|
|
2061
2061
|
}
|
|
2062
2062
|
break;
|
|
2063
2063
|
}
|
|
2064
2064
|
if (r(`(require '[clj-http.client :as client])
|
|
2065
|
-
`),
|
|
2065
|
+
`), ia(En(c)))
|
|
2066
2066
|
r(`(client/${t} "${a}")`);
|
|
2067
2067
|
else {
|
|
2068
|
-
const u = 11 + t.length + a.length, p = it(u, Ut(
|
|
2068
|
+
const u = 11 + t.length + a.length, p = it(u, Ut(En(c)));
|
|
2069
2069
|
r(`(client/${t} "${a}" ${p})`);
|
|
2070
2070
|
}
|
|
2071
2071
|
return i();
|
|
@@ -2132,13 +2132,13 @@ ${n}`);
|
|
|
2132
2132
|
const y = t.mimeType;
|
|
2133
2133
|
switch (y) {
|
|
2134
2134
|
case "application/x-www-form-urlencoded":
|
|
2135
|
-
r("Content = new FormUrlEncodedContent(new Dictionary<string, string>", 1), r("{", 1), (m = t.params) == null || m.forEach((
|
|
2136
|
-
r(`{ "${
|
|
2135
|
+
r("Content = new FormUrlEncodedContent(new Dictionary<string, string>", 1), r("{", 1), (m = t.params) == null || m.forEach((g) => {
|
|
2136
|
+
r(`{ "${g.name}", "${g.value}" },`, 2);
|
|
2137
2137
|
}), r("}),", 1);
|
|
2138
2138
|
break;
|
|
2139
2139
|
case "multipart/form-data":
|
|
2140
|
-
r("Content = new MultipartFormDataContent", 1), r("{", 1), (h = t.params) == null || h.forEach((
|
|
2141
|
-
r(`new StringContent(${JSON.stringify(
|
|
2140
|
+
r("Content = new MultipartFormDataContent", 1), r("{", 1), (h = t.params) == null || h.forEach((g) => {
|
|
2141
|
+
r(`new StringContent(${JSON.stringify(g.value || "")})`, 2), r("{", 2), r("Headers =", 3), r("{", 3), g.contentType && r(`ContentType = new MediaTypeHeaderValue("${g.contentType}"),`, 4), r('ContentDisposition = new ContentDispositionHeaderValue("form-data")', 4), r("{", 4), r(`Name = "${g.name}",`, 5), g.fileName && r(`FileName = "${g.fileName}",`, 5), r("}", 4), r("}", 3), r("},", 2);
|
|
2142
2142
|
}), r("},", 1);
|
|
2143
2143
|
break;
|
|
2144
2144
|
default:
|
|
@@ -2230,10 +2230,10 @@ var Oi = {
|
|
|
2230
2230
|
c && (r("if err != nil {", m), r("panic(err)", m + 1), r("}", m));
|
|
2231
2231
|
};
|
|
2232
2232
|
l && (r("package main"), o(), r("import ("), r('"fmt"', m), p > 0 && r('"time"', m), e.text && r('"strings"', m), r('"net/http"', m), u && r('"io"', m), r(")"), o(), r("func main() {"), o());
|
|
2233
|
-
const y = p > 0,
|
|
2234
|
-
return
|
|
2235
|
-
r(`req.Header.Add("${
|
|
2236
|
-
}), o()), r(`res, ${d} := ${
|
|
2233
|
+
const y = p > 0, g = y, b = g ? "client" : "http.DefaultClient";
|
|
2234
|
+
return g && (r("client := http.Client{", m), y && r(`Timeout: time.Duration(${p} * time.Second),`, m + 1), r("}", m), o()), r(`url := "${a}"`, m), o(), e.text ? (r(`payload := strings.NewReader(${JSON.stringify(e.text)})`, m), o(), r(`req, ${d} := http.NewRequest("${t}", url, payload)`, m), o()) : (r(`req, ${d} := http.NewRequest("${t}", url, nil)`, m), o()), h(), Object.keys(n).length && (Object.keys(n).forEach((v) => {
|
|
2235
|
+
r(`req.Header.Add("${v}", "${W(n[v])}")`, m);
|
|
2236
|
+
}), 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();
|
|
2237
2237
|
}
|
|
2238
2238
|
}, Ei = {
|
|
2239
2239
|
info: {
|
|
@@ -2245,7 +2245,7 @@ var Oi = {
|
|
|
2245
2245
|
clientsById: {
|
|
2246
2246
|
native: Pi
|
|
2247
2247
|
}
|
|
2248
|
-
},
|
|
2248
|
+
}, Rn = `\r
|
|
2249
2249
|
`, Ri = {
|
|
2250
2250
|
info: {
|
|
2251
2251
|
key: "http1.1",
|
|
@@ -2260,19 +2260,19 @@ var Oi = {
|
|
|
2260
2260
|
autoContentLength: !0,
|
|
2261
2261
|
autoHost: !0,
|
|
2262
2262
|
...r
|
|
2263
|
-
}, { blank: l, push: c, join: u } = new P({ indent: "", join:
|
|
2263
|
+
}, { blank: l, push: c, join: u } = new P({ indent: "", join: Rn }), p = i.absoluteURI ? t : n.path;
|
|
2264
2264
|
c(`${e} ${p} ${a}`);
|
|
2265
2265
|
const d = Object.keys(s);
|
|
2266
2266
|
if (d.forEach((y) => {
|
|
2267
|
-
const
|
|
2268
|
-
c(`${
|
|
2267
|
+
const g = y.toLowerCase().replace(/(^|-)(\w)/g, (b) => b.toUpperCase());
|
|
2268
|
+
c(`${g}: ${s[y]}`);
|
|
2269
2269
|
}), i.autoHost && !d.includes("host") && c(`Host: ${n.host}`), i.autoContentLength && o.text && !d.includes("content-length")) {
|
|
2270
|
-
const
|
|
2271
|
-
c(`Content-Length: ${
|
|
2270
|
+
const g = new TextEncoder().encode(o.text).length.toString();
|
|
2271
|
+
c(`Content-Length: ${g}`);
|
|
2272
2272
|
}
|
|
2273
2273
|
l();
|
|
2274
2274
|
const m = u(), h = o.text || "";
|
|
2275
|
-
return `${m}${
|
|
2275
|
+
return `${m}${Rn}${h}`;
|
|
2276
2276
|
}
|
|
2277
2277
|
}, Ai = {
|
|
2278
2278
|
info: {
|
|
@@ -2688,8 +2688,8 @@ var Oi = {
|
|
|
2688
2688
|
};
|
|
2689
2689
|
switch (Object.keys(a).length && (m.headers = a), n.mimeType) {
|
|
2690
2690
|
case "application/x-www-form-urlencoded":
|
|
2691
|
-
p("const { URLSearchParams } = require('url');"), c("const encodedParams = new URLSearchParams();"), l(), (y = n.params) == null || y.forEach((
|
|
2692
|
-
c(`encodedParams.set('${
|
|
2691
|
+
p("const { URLSearchParams } = require('url');"), c("const encodedParams = new URLSearchParams();"), l(), (y = n.params) == null || y.forEach((b) => {
|
|
2692
|
+
c(`encodedParams.set('${b.name}', '${b.value}');`);
|
|
2693
2693
|
}), m.body = "encodedParams";
|
|
2694
2694
|
break;
|
|
2695
2695
|
case "application/json":
|
|
@@ -2698,21 +2698,21 @@ var Oi = {
|
|
|
2698
2698
|
case "multipart/form-data":
|
|
2699
2699
|
if (!n.params)
|
|
2700
2700
|
break;
|
|
2701
|
-
const
|
|
2702
|
-
|
|
2703
|
-
if (!
|
|
2704
|
-
c(`formData.append('${
|
|
2701
|
+
const g = X(a, "content-type");
|
|
2702
|
+
g && delete a[g], p("const FormData = require('form-data');"), c("const formData = new FormData();"), l(), n.params.forEach((b) => {
|
|
2703
|
+
if (!b.fileName && !b.fileName && !b.contentType) {
|
|
2704
|
+
c(`formData.append('${b.name}', '${b.value}');`);
|
|
2705
2705
|
return;
|
|
2706
2706
|
}
|
|
2707
|
-
|
|
2707
|
+
b.fileName && (i = !0, c(`formData.append('${b.name}', fs.createReadStream('${b.fileName}'));`));
|
|
2708
2708
|
});
|
|
2709
2709
|
break;
|
|
2710
2710
|
default:
|
|
2711
2711
|
n.text && (m.body = n.text);
|
|
2712
2712
|
}
|
|
2713
2713
|
if (s.length) {
|
|
2714
|
-
const
|
|
2715
|
-
m.headers || (m.headers = {}), m.headers.cookie =
|
|
2714
|
+
const g = s.map(({ name: b, value: v }) => `${encodeURIComponent(b)}=${encodeURIComponent(v)}`).join("; ");
|
|
2715
|
+
m.headers || (m.headers = {}), m.headers.cookie = g;
|
|
2716
2716
|
}
|
|
2717
2717
|
l(), c(`const url = '${d}';`), m.headers && !Object.keys(m.headers).length && delete m.headers;
|
|
2718
2718
|
const h = K(m, {
|
|
@@ -2721,7 +2721,7 @@ var Oi = {
|
|
|
2721
2721
|
// The Fetch API body only accepts string parameters, but stringified JSON can be difficult to
|
|
2722
2722
|
// read, so we keep the object as a literal and use this transform function to wrap the literal
|
|
2723
2723
|
// in a `JSON.stringify` call.
|
|
2724
|
-
transform: (
|
|
2724
|
+
transform: (g, b, v) => b === "body" && n.mimeType === "application/json" ? `JSON.stringify(${v})` : v
|
|
2725
2725
|
});
|
|
2726
2726
|
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")');
|
|
2727
2727
|
}
|
|
@@ -2800,21 +2800,21 @@ var Oi = {
|
|
|
2800
2800
|
h.formData[y.name] = y.value;
|
|
2801
2801
|
return;
|
|
2802
2802
|
}
|
|
2803
|
-
let
|
|
2804
|
-
y.fileName ? (l = !0,
|
|
2803
|
+
let g = {};
|
|
2804
|
+
y.fileName ? (l = !0, g = {
|
|
2805
2805
|
value: `fs.createReadStream(${y.fileName})`,
|
|
2806
2806
|
options: {
|
|
2807
2807
|
filename: y.fileName,
|
|
2808
2808
|
contentType: y.contentType ? y.contentType : null
|
|
2809
2809
|
}
|
|
2810
|
-
}) : y.value && (
|
|
2810
|
+
}) : y.value && (g.value = y.value), h.formData[y.name] = g;
|
|
2811
2811
|
}), m((y) => y.replace(/'fs\.createReadStream\((.*)\)'/, "fs.createReadStream('$1')"));
|
|
2812
2812
|
break;
|
|
2813
2813
|
default:
|
|
2814
2814
|
a.text && (h.body = a.text);
|
|
2815
2815
|
}
|
|
2816
|
-
return o.length && (h.jar = "JAR", c("const jar = request.jar();"), o.forEach(({ name: y, value:
|
|
2817
|
-
c(`jar.setCookie(request.cookie('${encodeURIComponent(y)}=${encodeURIComponent(
|
|
2816
|
+
return o.length && (h.jar = "JAR", c("const jar = request.jar();"), o.forEach(({ name: y, value: g }) => {
|
|
2817
|
+
c(`jar.setCookie(request.cookie('${encodeURIComponent(y)}=${encodeURIComponent(g)}'), '${t}');`);
|
|
2818
2818
|
}), u(), m((y) => y.replace(/'JAR'/, "jar"))), l && d("const fs = require('fs');"), c(`const options = ${K(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();
|
|
2819
2819
|
}
|
|
2820
2820
|
}, Xi = {
|
|
@@ -2848,8 +2848,8 @@ var Oi = {
|
|
|
2848
2848
|
break;
|
|
2849
2849
|
const h = [];
|
|
2850
2850
|
s.params.forEach((y) => {
|
|
2851
|
-
const
|
|
2852
|
-
y.fileName && !y.value ? (l = !0,
|
|
2851
|
+
const g = {};
|
|
2852
|
+
y.fileName && !y.value ? (l = !0, g.body = `fs.createReadStream('${y.fileName}')`, c((b) => b.replace(/'fs\.createReadStream\(\\'(.+)\\'\)'/, "fs.createReadStream('$1')"))) : y.value && (g.body = y.value), g.body && (y.contentType && (g["content-type"] = y.contentType), h.push(g));
|
|
2853
2853
|
}), d(`req.multipart(${K(h, { indent: i.indent })});`), u();
|
|
2854
2854
|
break;
|
|
2855
2855
|
}
|
|
@@ -3026,7 +3026,7 @@ ${n}]`;
|
|
|
3026
3026
|
default:
|
|
3027
3027
|
return "null";
|
|
3028
3028
|
}
|
|
3029
|
-
},
|
|
3029
|
+
}, An = [
|
|
3030
3030
|
"ACL",
|
|
3031
3031
|
"BASELINE_CONTROL",
|
|
3032
3032
|
"CHECKIN",
|
|
@@ -3071,9 +3071,9 @@ ${n}]`;
|
|
|
3071
3071
|
noTags: d = !1,
|
|
3072
3072
|
shortTags: m = !1,
|
|
3073
3073
|
timeout: h = 30
|
|
3074
|
-
} = i, { push: y, blank:
|
|
3075
|
-
d || (y(m ? "<?" : "<?php"),
|
|
3076
|
-
const
|
|
3074
|
+
} = i, { push: y, blank: g, join: b } = new P({ indent: c });
|
|
3075
|
+
d || (y(m ? "<?" : "<?php"), g()), y("$curl = curl_init();"), g();
|
|
3076
|
+
const v = [
|
|
3077
3077
|
{
|
|
3078
3078
|
escape: !0,
|
|
3079
3079
|
name: "CURLOPT_PORT",
|
|
@@ -3121,16 +3121,16 @@ ${n}]`;
|
|
|
3121
3121
|
}
|
|
3122
3122
|
];
|
|
3123
3123
|
y("curl_setopt_array($curl, [");
|
|
3124
|
-
const
|
|
3124
|
+
const x = new P({ indent: c, join: `
|
|
3125
3125
|
${c}` });
|
|
3126
|
-
|
|
3127
|
-
j != null &&
|
|
3126
|
+
v.forEach(({ value: j, name: k, escape: O }) => {
|
|
3127
|
+
j != null && x.push(`${k} => ${O ? JSON.stringify(j) : j},`);
|
|
3128
3128
|
});
|
|
3129
3129
|
const w = o.map((j) => `${encodeURIComponent(j.name)}=${encodeURIComponent(j.value)}`);
|
|
3130
|
-
w.length &&
|
|
3130
|
+
w.length && x.push(`CURLOPT_COOKIE => "${w.join("; ")}",`);
|
|
3131
3131
|
const S = Object.keys(r).sort().map((j) => `"${j}: ${W(r[j])}"`);
|
|
3132
|
-
return S.length && (
|
|
3133
|
-
${c}${c}`), 1),
|
|
3132
|
+
return S.length && (x.push("CURLOPT_HTTPHEADER => ["), x.push(S.join(`,
|
|
3133
|
+
${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), g(), y("$response = curl_exec($curl);"), y("$err = curl_error($curl);"), g(), y("curl_close($curl);"), g(), 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 && (g(), y("?>")), b();
|
|
3134
3134
|
}
|
|
3135
3135
|
}, os = {
|
|
3136
3136
|
info: {
|
|
@@ -3155,31 +3155,31 @@ ${c}${c}`), 1), b.push("],")), y(b.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3155
3155
|
p(`'form_params' => ${F(e.paramsObj, r.indent + r.indent, r.indent)},`, 1);
|
|
3156
3156
|
break;
|
|
3157
3157
|
case "multipart/form-data": {
|
|
3158
|
-
const
|
|
3159
|
-
if (e.params && e.params.forEach((
|
|
3160
|
-
if (
|
|
3161
|
-
const
|
|
3162
|
-
name:
|
|
3163
|
-
filename:
|
|
3164
|
-
contents:
|
|
3158
|
+
const g = [];
|
|
3159
|
+
if (e.params && e.params.forEach((b) => {
|
|
3160
|
+
if (b.fileName) {
|
|
3161
|
+
const v = {
|
|
3162
|
+
name: b.name,
|
|
3163
|
+
filename: b.fileName,
|
|
3164
|
+
contents: b.value
|
|
3165
3165
|
};
|
|
3166
|
-
|
|
3167
|
-
} else
|
|
3168
|
-
name:
|
|
3169
|
-
contents:
|
|
3166
|
+
b.contentType && (v.headers = { "Content-Type": b.contentType }), g.push(v);
|
|
3167
|
+
} else b.value && g.push({
|
|
3168
|
+
name: b.name,
|
|
3169
|
+
contents: b.value
|
|
3170
3170
|
});
|
|
3171
|
-
}),
|
|
3172
|
-
const
|
|
3173
|
-
|
|
3171
|
+
}), g.length && (p(`'multipart' => ${F(g, r.indent + r.indent, r.indent)}`, 1), vt(s, "content-type") && (y = de(s, "content-type")) != null && y.indexOf("boundary"))) {
|
|
3172
|
+
const b = X(s, "content-type");
|
|
3173
|
+
b && delete s[b];
|
|
3174
3174
|
}
|
|
3175
3175
|
break;
|
|
3176
3176
|
}
|
|
3177
3177
|
default:
|
|
3178
3178
|
e.text && p(`'body' => ${F(e.text)},`, 1);
|
|
3179
3179
|
}
|
|
3180
|
-
const m = Object.keys(s).sort().map(function(
|
|
3181
|
-
return `${r.indent}${r.indent}'${
|
|
3182
|
-
}), h = a.map((
|
|
3180
|
+
const m = Object.keys(s).sort().map(function(g) {
|
|
3181
|
+
return `${r.indent}${r.indent}'${g}' => '${Je(s[g])}',`;
|
|
3182
|
+
}), h = a.map((g) => `${encodeURIComponent(g.name)}=${encodeURIComponent(g.value)}`).join("; ");
|
|
3183
3183
|
return h.length && m.push(`${r.indent}${r.indent}'cookie' => '${Je(h)}',`), m.length && (p("'headers' => [", 1), p(m.join(`
|
|
3184
3184
|
`)), 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();
|
|
3185
3185
|
}
|
|
@@ -3193,7 +3193,7 @@ ${c}${c}`), 1), b.push("],")), y(b.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3193
3193
|
},
|
|
3194
3194
|
convert: ({ method: e, url: t, postData: n, queryObj: a, headersObj: s, cookiesObj: o }, r = {}) => {
|
|
3195
3195
|
const { closingTag: i = !1, indent: l = " ", noTags: c = !1, shortTags: u = !1 } = r, { push: p, blank: d, join: m } = new P({ indent: l });
|
|
3196
|
-
switch (c || (p(u ? "<?" : "<?php"), d()),
|
|
3196
|
+
switch (c || (p(u ? "<?" : "<?php"), d()), An.includes(e.toUpperCase()) || p(`HttpRequest::methodRegister('${e}');`), p("$request = new HttpRequest();"), p(`$request->setUrl(${F(t)});`), An.includes(e.toUpperCase()) ? p(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`) : p(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`), d(), Object.keys(a).length && (p(`$request->setQueryData(${F(a, l)});`), d()), Object.keys(s).length && (p(`$request->setHeaders(${F(s, l)});`), d()), Object.keys(o).length && (p(`$request->setCookies(${F(o, l)});`), d()), n.mimeType) {
|
|
3197
3197
|
case "application/x-www-form-urlencoded":
|
|
3198
3198
|
p(`$request->setContentType(${F(n.mimeType)});`), p(`$request->setPostFields(${F(n.paramsObj, l)});`), d();
|
|
3199
3199
|
break;
|
|
@@ -3224,10 +3224,10 @@ ${c}${c}`), 1), b.push("],")), y(b.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3224
3224
|
case "multipart/form-data": {
|
|
3225
3225
|
if (!e.params)
|
|
3226
3226
|
break;
|
|
3227
|
-
const
|
|
3227
|
+
const g = [], b = {};
|
|
3228
3228
|
e.params.forEach(({ name: w, fileName: S, value: j, contentType: k }) => {
|
|
3229
3229
|
if (S) {
|
|
3230
|
-
|
|
3230
|
+
g.push({
|
|
3231
3231
|
name: w,
|
|
3232
3232
|
type: k,
|
|
3233
3233
|
file: S,
|
|
@@ -3235,10 +3235,10 @@ ${c}${c}`), 1), b.push("],")), y(b.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3235
3235
|
});
|
|
3236
3236
|
return;
|
|
3237
3237
|
}
|
|
3238
|
-
j && (
|
|
3238
|
+
j && (b[w] = j);
|
|
3239
3239
|
});
|
|
3240
|
-
const
|
|
3241
|
-
if (p("$body = new http\\Message\\Body;"), p(`$body->addForm(${
|
|
3240
|
+
const v = Object.keys(b).length ? F(b, l) : "null", x = g.length ? F(g, l) : "null";
|
|
3241
|
+
if (p("$body = new http\\Message\\Body;"), p(`$body->addForm(${v}, ${x});`), vt(t, "content-type") && (y = de(t, "content-type")) != null && y.indexOf("boundary")) {
|
|
3242
3242
|
const w = X(t, "content-type");
|
|
3243
3243
|
w && delete t[w];
|
|
3244
3244
|
}
|
|
@@ -3266,7 +3266,7 @@ ${c}${c}`), 1), b.push("],")), y(b.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3266
3266
|
http1: is,
|
|
3267
3267
|
http2: ss
|
|
3268
3268
|
}
|
|
3269
|
-
},
|
|
3269
|
+
}, sa = (e) => ({ method: n, headersObj: a, cookies: s, uriObj: o, fullUrl: r, postData: i, allHeaders: l }) => {
|
|
3270
3270
|
const { push: c, join: u } = new P();
|
|
3271
3271
|
if (!["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(n.toUpperCase()))
|
|
3272
3272
|
return "Method not supported";
|
|
@@ -3286,7 +3286,7 @@ ${c}${c}`), 1), b.push("],")), y(b.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3286
3286
|
description: "Powershell Invoke-RestMethod client",
|
|
3287
3287
|
extname: ".ps1"
|
|
3288
3288
|
},
|
|
3289
|
-
convert:
|
|
3289
|
+
convert: sa("Invoke-RestMethod")
|
|
3290
3290
|
}, us = {
|
|
3291
3291
|
info: {
|
|
3292
3292
|
key: "webrequest",
|
|
@@ -3295,7 +3295,7 @@ ${c}${c}`), 1), b.push("],")), y(b.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3295
3295
|
description: "Powershell Invoke-WebRequest client",
|
|
3296
3296
|
extname: ".ps1"
|
|
3297
3297
|
},
|
|
3298
|
-
convert:
|
|
3298
|
+
convert: sa("Invoke-WebRequest")
|
|
3299
3299
|
}, ds = {
|
|
3300
3300
|
info: {
|
|
3301
3301
|
key: "powershell",
|
|
@@ -3307,7 +3307,7 @@ ${c}${c}`), 1), b.push("],")), y(b.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3307
3307
|
restmethod: cs
|
|
3308
3308
|
}
|
|
3309
3309
|
};
|
|
3310
|
-
function
|
|
3310
|
+
function Fn(e, t, n, a, s) {
|
|
3311
3311
|
const o = a.repeat(s), r = a.repeat(s - 1), i = n ? `,
|
|
3312
3312
|
${o}` : ", ", l = e === "object" ? "{" : "[", c = e === "object" ? "}" : "]";
|
|
3313
3313
|
return n ? `${l}
|
|
@@ -3321,13 +3321,13 @@ var Re = (e, t, n) => {
|
|
|
3321
3321
|
case "[object Array]": {
|
|
3322
3322
|
let a = !1;
|
|
3323
3323
|
const s = e.map((o) => (Object.prototype.toString.call(o) === "[object Object]" && (a = Object.keys(o).length > 1), Re(o, t, n)));
|
|
3324
|
-
return
|
|
3324
|
+
return Fn("array", s, a, t.indent, n);
|
|
3325
3325
|
}
|
|
3326
3326
|
case "[object Object]": {
|
|
3327
3327
|
const a = [];
|
|
3328
3328
|
for (const s in e)
|
|
3329
3329
|
a.push(`"${s}": ${Re(e[s], t, n)}`);
|
|
3330
|
-
return
|
|
3330
|
+
return Fn("object", a, t.pretty && a.length > 1, t.indent, n);
|
|
3331
3331
|
}
|
|
3332
3332
|
case "[object Null]":
|
|
3333
3333
|
return "None";
|
|
@@ -3363,18 +3363,18 @@ var Re = (e, t, n) => {
|
|
|
3363
3363
|
case "multipart/form-data":
|
|
3364
3364
|
if (!t.params)
|
|
3365
3365
|
break;
|
|
3366
|
-
if (p = {}, t.params.forEach((
|
|
3367
|
-
|
|
3366
|
+
if (p = {}, t.params.forEach((v) => {
|
|
3367
|
+
v.fileName ? (v.contentType ? d[v.name] = `('${v.fileName}', open('${v.fileName}', 'rb'), '${v.contentType}')` : d[v.name] = `('${v.fileName}', open('${v.fileName}', 'rb'))`, m = !0) : (p[v.name] = v.value, h = !0);
|
|
3368
3368
|
}), m) {
|
|
3369
3369
|
r(`files = ${Re(d, o)}`), h && r(`payload = ${Re(p, o)}`);
|
|
3370
|
-
const
|
|
3371
|
-
|
|
3370
|
+
const v = X(u, "content-type");
|
|
3371
|
+
v && delete u[v];
|
|
3372
3372
|
} else {
|
|
3373
|
-
const
|
|
3374
|
-
|
|
3373
|
+
const v = JSON.stringify(t.text);
|
|
3374
|
+
v && (r(`payload = ${v}`), h = !0);
|
|
3375
3375
|
}
|
|
3376
3376
|
c(
|
|
3377
|
-
(
|
|
3377
|
+
(v) => v.replace(/"\('(.+)', open\('(.+)', 'rb'\)\)"/g, '("$1", open("$2", "rb"))').replace(/"\('(.+)', open\('(.+)', 'rb'\), '(.+)'\)"/g, '("$1", open("$2", "rb"), "$3")')
|
|
3378
3378
|
);
|
|
3379
3379
|
break;
|
|
3380
3380
|
default: {
|
|
@@ -3382,25 +3382,25 @@ var Re = (e, t, n) => {
|
|
|
3382
3382
|
r(`payload = ${Re(t.paramsObj, o)}`), h = !0;
|
|
3383
3383
|
break;
|
|
3384
3384
|
}
|
|
3385
|
-
const
|
|
3386
|
-
|
|
3385
|
+
const v = JSON.stringify(t.text);
|
|
3386
|
+
v && (r(`payload = ${v}`), h = !0);
|
|
3387
3387
|
}
|
|
3388
3388
|
}
|
|
3389
|
-
const
|
|
3390
|
-
if (
|
|
3389
|
+
const g = Object.keys(u).length;
|
|
3390
|
+
if (g === 0 && (h || m))
|
|
3391
3391
|
i();
|
|
3392
|
-
else if (
|
|
3393
|
-
Object.keys(u).forEach((
|
|
3394
|
-
r(`headers = {"${
|
|
3392
|
+
else if (g === 1)
|
|
3393
|
+
Object.keys(u).forEach((v) => {
|
|
3394
|
+
r(`headers = {"${v}": "${W(u[v])}"}`), i();
|
|
3395
3395
|
});
|
|
3396
|
-
else if (
|
|
3397
|
-
let
|
|
3398
|
-
r("headers = {"), Object.keys(u).forEach((
|
|
3399
|
-
r(
|
|
3396
|
+
else if (g > 1) {
|
|
3397
|
+
let v = 1;
|
|
3398
|
+
r("headers = {"), Object.keys(u).forEach((x) => {
|
|
3399
|
+
r(v !== g ? `"${x}": "${W(u[x])}",` : `"${x}": "${W(u[x])}"`, 1), v += 1;
|
|
3400
3400
|
}), r("}"), i();
|
|
3401
3401
|
}
|
|
3402
|
-
let
|
|
3403
|
-
return h && (y ?
|
|
3402
|
+
let b = fs.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
|
|
3403
|
+
return h && (y ? b += ", json=payload" : b += ", data=payload"), m && (b += ", files=files"), g > 0 && (b += ", headers=headers"), b += ")", r(b), i(), r("print(response.text)"), l();
|
|
3404
3404
|
}
|
|
3405
3405
|
}, ms = {
|
|
3406
3406
|
info: {
|
|
@@ -3445,11 +3445,11 @@ var Re = (e, t, n) => {
|
|
|
3445
3445
|
r('encode <- "raw"'), i();
|
|
3446
3446
|
break;
|
|
3447
3447
|
}
|
|
3448
|
-
const d = de(s, "cookie"), m = de(s, "accept"), h = d ? `set_cookies(\`${String(d).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, y = m ? `accept("${W(m)}")` : void 0,
|
|
3449
|
-
let
|
|
3450
|
-
p && (
|
|
3451
|
-
const w = [
|
|
3452
|
-
return w && (
|
|
3448
|
+
const d = de(s, "cookie"), m = de(s, "accept"), h = d ? `set_cookies(\`${String(d).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, y = m ? `accept("${W(m)}")` : void 0, g = `content_type("${W(a.mimeType)}")`, b = Object.entries(s).filter(([S]) => !["cookie", "accept", "content-type"].includes(S.toLowerCase())).map(([S, j]) => `'${S}' = '${Je(j)}'`).join(", "), v = b ? `add_headers(${b})` : void 0;
|
|
3449
|
+
let x = `response <- VERB("${o}", url`;
|
|
3450
|
+
p && (x += ", body = payload"), n.length && (x += ", query = queryString");
|
|
3451
|
+
const w = [v, g, y, h].filter((S) => !!S).join(", ");
|
|
3452
|
+
return w && (x += `, ${w}`), (a.text || a.jsonObj || a.params) && (x += ", encode = encode"), x += ")", r(x), i(), r('content(response, "text")'), l();
|
|
3453
3453
|
}
|
|
3454
3454
|
}, ys = {
|
|
3455
3455
|
info: {
|
|
@@ -3525,7 +3525,7 @@ var Re = (e, t, n) => {
|
|
|
3525
3525
|
extname: ".sh"
|
|
3526
3526
|
},
|
|
3527
3527
|
convert: ({ fullUrl: e, method: t, httpVersion: n, headersObj: a, allHeaders: s, postData: o }, r = {}) => {
|
|
3528
|
-
var
|
|
3528
|
+
var g;
|
|
3529
3529
|
const { indent: i = " ", short: l = !1, binary: c = !1, globOff: u = !1 } = r, p = " ", { push: d, join: m } = new P({
|
|
3530
3530
|
...typeof i == "string" ? { indent: i } : {},
|
|
3531
3531
|
join: i !== !1 ? ` \\
|
|
@@ -3533,54 +3533,54 @@ ${i}` : " "
|
|
|
3533
3533
|
}), h = ks(l);
|
|
3534
3534
|
let y = G(e);
|
|
3535
3535
|
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") {
|
|
3536
|
-
const
|
|
3537
|
-
if (
|
|
3538
|
-
const
|
|
3539
|
-
if (
|
|
3540
|
-
const
|
|
3541
|
-
a[
|
|
3536
|
+
const b = X(a, "content-type");
|
|
3537
|
+
if (b) {
|
|
3538
|
+
const v = a[b];
|
|
3539
|
+
if (b && v) {
|
|
3540
|
+
const x = String(v).replace(/; boundary.+?(?=(;|$))/, "");
|
|
3541
|
+
a[b] = x, s[b] = x;
|
|
3542
3542
|
}
|
|
3543
3543
|
}
|
|
3544
3544
|
}
|
|
3545
|
-
switch (Object.keys(a).sort().forEach((
|
|
3546
|
-
const
|
|
3547
|
-
d(`${h("header")} ${G(
|
|
3545
|
+
switch (Object.keys(a).sort().forEach((b) => {
|
|
3546
|
+
const v = `${b}: ${a[b]}`;
|
|
3547
|
+
d(`${h("header")} ${G(v)}`);
|
|
3548
3548
|
}), s.cookie && d(`${h("cookie")} ${G(s.cookie)}`), o.mimeType) {
|
|
3549
3549
|
case "multipart/form-data":
|
|
3550
|
-
(
|
|
3551
|
-
let
|
|
3552
|
-
|
|
3550
|
+
(g = o.params) == null || g.forEach((v) => {
|
|
3551
|
+
let x = "";
|
|
3552
|
+
v.fileName ? x = `${v.name}='@${v.fileName}'` : x = G(`${v.name}=${v.value}`), d(`${h("form")} ${x}`);
|
|
3553
3553
|
});
|
|
3554
3554
|
break;
|
|
3555
3555
|
case "application/x-www-form-urlencoded":
|
|
3556
|
-
o.params ? o.params.forEach((
|
|
3557
|
-
const
|
|
3558
|
-
d(`${k} ${G(`${j}=${
|
|
3556
|
+
o.params ? o.params.forEach((v) => {
|
|
3557
|
+
const x = v.name, w = encodeURIComponent(v.name), S = w !== x, j = S ? w : x, k = c ? "--data-binary" : S ? "--data-urlencode" : h("data");
|
|
3558
|
+
d(`${k} ${G(`${j}=${v.value}`)}`);
|
|
3559
3559
|
}) : d(`${c ? "--data-binary" : h("data")} ${G(o.text)}`);
|
|
3560
3560
|
break;
|
|
3561
3561
|
default:
|
|
3562
3562
|
if (!o.text)
|
|
3563
3563
|
break;
|
|
3564
|
-
let
|
|
3564
|
+
let b = !1;
|
|
3565
3565
|
if (ki(o.mimeType) && o.text.length > 20)
|
|
3566
3566
|
try {
|
|
3567
|
-
const
|
|
3568
|
-
|
|
3567
|
+
const v = JSON.parse(o.text);
|
|
3568
|
+
b = !0, o.text.indexOf("'") > 0 ? d(
|
|
3569
3569
|
`${c ? "--data-binary" : h("data")} @- <<EOF
|
|
3570
3570
|
${JSON.stringify(
|
|
3571
|
-
|
|
3571
|
+
v,
|
|
3572
3572
|
null,
|
|
3573
3573
|
p
|
|
3574
3574
|
)}
|
|
3575
3575
|
EOF`
|
|
3576
3576
|
) : d(
|
|
3577
3577
|
`${c ? "--data-binary" : h("data")} '
|
|
3578
|
-
${JSON.stringify(
|
|
3578
|
+
${JSON.stringify(v, null, p)}
|
|
3579
3579
|
'`
|
|
3580
3580
|
);
|
|
3581
3581
|
} catch {
|
|
3582
3582
|
}
|
|
3583
|
-
|
|
3583
|
+
b || d(`${c ? "--data-binary" : h("data")} ${G(o.text)}`);
|
|
3584
3584
|
}
|
|
3585
3585
|
return m();
|
|
3586
3586
|
}
|
|
@@ -3618,8 +3618,8 @@ ${i.indent}` : " "
|
|
|
3618
3618
|
const d = [];
|
|
3619
3619
|
i.headers && d.push(i.short ? "-h" : "--headers"), i.body && d.push(i.short ? "-b" : "--body"), i.verbose && d.push(i.short ? "-v" : "--verbose"), i.print && d.push(`${i.short ? "-p" : "--print"}=${i.print}`), i.verify && d.push(`--verify=${i.verify}`), i.cert && d.push(`--cert=${i.cert}`), i.pretty && d.push(`--pretty=${i.pretty}`), i.style && d.push(`--style=${i.style}`), i.timeout && d.push(`--timeout=${i.timeout}`), i.queryParams && Object.keys(n).forEach((h) => {
|
|
3620
3620
|
const y = n[h];
|
|
3621
|
-
Array.isArray(y) ? y.forEach((
|
|
3622
|
-
l(`${h}==${G(
|
|
3621
|
+
Array.isArray(y) ? y.forEach((g) => {
|
|
3622
|
+
l(`${h}==${G(g)}`);
|
|
3623
3623
|
}) : l(`${h}==${G(y)}`);
|
|
3624
3624
|
}), Object.keys(e).sort().forEach((h) => {
|
|
3625
3625
|
l(`${h}:${G(e[h])}`);
|
|
@@ -3669,26 +3669,26 @@ ${o.indent}` : " "
|
|
|
3669
3669
|
httpie: Ss,
|
|
3670
3670
|
wget: ws
|
|
3671
3671
|
}
|
|
3672
|
-
},
|
|
3673
|
-
const s =
|
|
3672
|
+
}, qn = (e, t) => t.repeat(e), In = (e, t, n, a) => {
|
|
3673
|
+
const s = qn(a, n), o = qn(a - 1, n), r = t ? `,
|
|
3674
3674
|
${s}` : ", ";
|
|
3675
3675
|
return t ? `[
|
|
3676
3676
|
${s}${e.join(r)}
|
|
3677
3677
|
${o}]` : `[${e.join(r)}]`;
|
|
3678
|
-
},
|
|
3678
|
+
}, _n = (e, t, n) => `let ${e} = ${dt(t, n)}`, dt = (e, t, n) => {
|
|
3679
3679
|
switch (n = n === void 0 ? 1 : n + 1, Object.prototype.toString.call(e)) {
|
|
3680
3680
|
case "[object Number]":
|
|
3681
3681
|
return e;
|
|
3682
3682
|
case "[object Array]": {
|
|
3683
3683
|
let a = !1;
|
|
3684
3684
|
const s = e.map((o) => (Object.prototype.toString.call(o) === "[object Object]" && (a = Object.keys(o).length > 1), dt(o, t, n)));
|
|
3685
|
-
return
|
|
3685
|
+
return In(s, a, t.indent, n);
|
|
3686
3686
|
}
|
|
3687
3687
|
case "[object Object]": {
|
|
3688
3688
|
const a = [];
|
|
3689
3689
|
for (const s in e)
|
|
3690
3690
|
a.push(`"${s}": ${dt(e[s], t, n)}`);
|
|
3691
|
-
return
|
|
3691
|
+
return In(
|
|
3692
3692
|
a,
|
|
3693
3693
|
// @ts-expect-error needs better types
|
|
3694
3694
|
t.pretty && a.length > 1,
|
|
@@ -3729,10 +3729,10 @@ ${o}]` : `[${e.join(r)}]`;
|
|
|
3729
3729
|
}
|
|
3730
3730
|
break;
|
|
3731
3731
|
case "application/json":
|
|
3732
|
-
t.jsonObj && (i(`${
|
|
3732
|
+
t.jsonObj && (i(`${_n("parameters", t.jsonObj, r)} as [String : Any?]`), l(), i("let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])"), l());
|
|
3733
3733
|
break;
|
|
3734
3734
|
case "multipart/form-data":
|
|
3735
|
-
i(
|
|
3735
|
+
i(_n("parameters", t.params, r)), l(), i(`let boundary = "${t.boundary}"`), l(), i('var body = ""'), i("for param in parameters {"), i('let paramName = param["name"]!', 1), i('body += "--\\(boundary)\\r\\n"', 1), i('body += "Content-Disposition:form-data; name=\\"\\(paramName)\\""', 1), i('if let filename = param["fileName"] {', 1), i('let contentType = param["contentType"]!', 2), i("let fileContent = try String(contentsOfFile: filename, encoding: .utf8)", 2), i('body += "; filename=\\"\\(filename)\\"\\r\\n"', 2), i('body += "Content-Type: \\(contentType)\\r\\n\\r\\n"', 2), i("body += fileContent", 2), i('} else if let paramValue = param["value"] {', 1), i('body += "\\r\\n\\r\\n\\(paramValue)"', 2), i("}", 1), i("}"), l(), i("let postData = Data(body.utf8)"), l();
|
|
3736
3736
|
break;
|
|
3737
3737
|
default:
|
|
3738
3738
|
i(`let postData = Data("${t.text}".utf8)`), l();
|
|
@@ -3746,8 +3746,8 @@ ${o}]` : `[${e.join(r)}]`;
|
|
|
3746
3746
|
i(`URLQueryItem(name: "${h}", value: "${y}"),`, 1);
|
|
3747
3747
|
break;
|
|
3748
3748
|
case "[object Array]":
|
|
3749
|
-
y.forEach((
|
|
3750
|
-
i(`URLQueryItem(name: "${h}", value: "${
|
|
3749
|
+
y.forEach((g) => {
|
|
3750
|
+
i(`URLQueryItem(name: "${h}", value: "${g}"),`, 1);
|
|
3751
3751
|
});
|
|
3752
3752
|
break;
|
|
3753
3753
|
}
|
|
@@ -3789,13 +3789,13 @@ ft.exports;
|
|
|
3789
3789
|
(function(n) {
|
|
3790
3790
|
var a = t && !t.nodeType && t, s = e && !e.nodeType && e, o = typeof ot == "object" && ot;
|
|
3791
3791
|
(o.global === o || o.window === o || o.self === o) && (n = o);
|
|
3792
|
-
var r, i = 2147483647, l = 36, c = 1, u = 26, p = 38, d = 700, m = 72, h = 128, y = "-",
|
|
3792
|
+
var r, i = 2147483647, l = 36, c = 1, u = 26, p = 38, d = 700, m = 72, h = 128, y = "-", g = /^xn--/, b = /[^\x20-\x7E]/, v = /[\x2E\u3002\uFF0E\uFF61]/g, x = {
|
|
3793
3793
|
overflow: "Overflow: input needs wider integers to process",
|
|
3794
3794
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3795
3795
|
"invalid-input": "Invalid input"
|
|
3796
3796
|
}, w = l - c, S = Math.floor, j = String.fromCharCode, k;
|
|
3797
3797
|
function O($) {
|
|
3798
|
-
throw new RangeError(
|
|
3798
|
+
throw new RangeError(x[$]);
|
|
3799
3799
|
}
|
|
3800
3800
|
function R($, T) {
|
|
3801
3801
|
for (var E = $.length, _ = []; E--; )
|
|
@@ -3804,7 +3804,7 @@ ft.exports;
|
|
|
3804
3804
|
}
|
|
3805
3805
|
function I($, T) {
|
|
3806
3806
|
var E = $.split("@"), _ = "";
|
|
3807
|
-
E.length > 1 && (_ = E[0] + "@", $ = E[1]), $ = $.replace(
|
|
3807
|
+
E.length > 1 && (_ = E[0] + "@", $ = E[1]), $ = $.replace(v, ".");
|
|
3808
3808
|
var U = $.split("."), ee = R(U, T).join(".");
|
|
3809
3809
|
return _ + ee;
|
|
3810
3810
|
}
|
|
@@ -3863,12 +3863,12 @@ ft.exports;
|
|
|
3863
3863
|
}
|
|
3864
3864
|
function bt($) {
|
|
3865
3865
|
return I($, function(T) {
|
|
3866
|
-
return
|
|
3866
|
+
return g.test(T) ? B(T.slice(4).toLowerCase()) : T;
|
|
3867
3867
|
});
|
|
3868
3868
|
}
|
|
3869
3869
|
function Ze($) {
|
|
3870
3870
|
return I($, function(T) {
|
|
3871
|
-
return
|
|
3871
|
+
return b.test(T) ? "xn--" + he(T) : T;
|
|
3872
3872
|
});
|
|
3873
3873
|
}
|
|
3874
3874
|
if (r = {
|
|
@@ -3903,7 +3903,7 @@ ft.exports;
|
|
|
3903
3903
|
n.punycode = r;
|
|
3904
3904
|
})(ot);
|
|
3905
3905
|
})(ft, ft.exports);
|
|
3906
|
-
var Cs = ft.exports, Ps = Error, Es = EvalError, Rs = RangeError, As = ReferenceError,
|
|
3906
|
+
var Cs = ft.exports, Ps = Error, Es = EvalError, Rs = RangeError, As = ReferenceError, la = SyntaxError, Ye = TypeError, Fs = URIError, qs = function() {
|
|
3907
3907
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
3908
3908
|
return !1;
|
|
3909
3909
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -3926,14 +3926,14 @@ var Cs = ft.exports, Ps = Error, Es = EvalError, Rs = RangeError, As = Reference
|
|
|
3926
3926
|
return !1;
|
|
3927
3927
|
}
|
|
3928
3928
|
return !0;
|
|
3929
|
-
},
|
|
3930
|
-
return typeof
|
|
3929
|
+
}, Ln = typeof Symbol < "u" && Symbol, Is = qs, _s = function() {
|
|
3930
|
+
return typeof Ln != "function" || typeof Symbol != "function" || typeof Ln("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Is();
|
|
3931
3931
|
}, jt = {
|
|
3932
3932
|
__proto__: null,
|
|
3933
3933
|
foo: {}
|
|
3934
3934
|
}, Ls = Object, Us = function() {
|
|
3935
3935
|
return { __proto__: jt }.foo === jt.foo && !(jt instanceof Ls);
|
|
3936
|
-
}, Ms = "Function.prototype.bind called on incompatible ", Hs = Object.prototype.toString, Bs = Math.max, Ds = "[object Function]",
|
|
3936
|
+
}, Ms = "Function.prototype.bind called on incompatible ", Hs = Object.prototype.toString, Bs = Math.max, Ds = "[object Function]", Un = function(t, n) {
|
|
3937
3937
|
for (var a = [], s = 0; s < t.length; s += 1)
|
|
3938
3938
|
a[s] = t[s];
|
|
3939
3939
|
for (var o = 0; o < n.length; o += 1)
|
|
@@ -3955,13 +3955,13 @@ var Cs = ft.exports, Ps = Error, Es = EvalError, Rs = RangeError, As = Reference
|
|
|
3955
3955
|
if (this instanceof s) {
|
|
3956
3956
|
var u = n.apply(
|
|
3957
3957
|
this,
|
|
3958
|
-
|
|
3958
|
+
Un(a, arguments)
|
|
3959
3959
|
);
|
|
3960
3960
|
return Object(u) === u ? u : this;
|
|
3961
3961
|
}
|
|
3962
3962
|
return n.apply(
|
|
3963
3963
|
t,
|
|
3964
|
-
|
|
3964
|
+
Un(a, arguments)
|
|
3965
3965
|
);
|
|
3966
3966
|
}, r = Bs(0, n.length - a.length), i = [], l = 0; l < r; l++)
|
|
3967
3967
|
i[l] = "$" + l;
|
|
@@ -3971,9 +3971,9 @@ var Cs = ft.exports, Ps = Error, Es = EvalError, Rs = RangeError, As = Reference
|
|
|
3971
3971
|
c.prototype = n.prototype, s.prototype = new c(), c.prototype = null;
|
|
3972
3972
|
}
|
|
3973
3973
|
return s;
|
|
3974
|
-
}, Js = Ws,
|
|
3974
|
+
}, Js = Ws, fn = Function.prototype.bind || Js, Gs = Function.prototype.call, Ks = Object.prototype.hasOwnProperty, Qs = fn, Ys = Qs.call(Gs, Ks), C, Xs = Ps, Zs = Es, el = Rs, tl = As, Ie = la, Ae = Ye, nl = Fs, ca = Function, Nt = function(e) {
|
|
3975
3975
|
try {
|
|
3976
|
-
return
|
|
3976
|
+
return ca('"use strict"; return (' + e + ").constructor;")();
|
|
3977
3977
|
} catch {
|
|
3978
3978
|
}
|
|
3979
3979
|
}, we = Object.getOwnPropertyDescriptor;
|
|
@@ -4026,7 +4026,7 @@ var Tt = function() {
|
|
|
4026
4026
|
"%Float32Array%": typeof Float32Array > "u" ? C : Float32Array,
|
|
4027
4027
|
"%Float64Array%": typeof Float64Array > "u" ? C : Float64Array,
|
|
4028
4028
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? C : FinalizationRegistry,
|
|
4029
|
-
"%Function%":
|
|
4029
|
+
"%Function%": ca,
|
|
4030
4030
|
"%GeneratorFunction%": Ee,
|
|
4031
4031
|
"%Int8Array%": typeof Int8Array > "u" ? C : Int8Array,
|
|
4032
4032
|
"%Int16Array%": typeof Int16Array > "u" ? C : Int16Array,
|
|
@@ -4090,7 +4090,7 @@ var sl = function e(t) {
|
|
|
4090
4090
|
s && z && (n = z(s.prototype));
|
|
4091
4091
|
}
|
|
4092
4092
|
return je[t] = n, n;
|
|
4093
|
-
},
|
|
4093
|
+
}, Mn = {
|
|
4094
4094
|
__proto__: null,
|
|
4095
4095
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
4096
4096
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
@@ -4143,19 +4143,19 @@ var sl = function e(t) {
|
|
|
4143
4143
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
4144
4144
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
4145
4145
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
4146
|
-
}, Xe =
|
|
4146
|
+
}, Xe = fn, pt = Ys, ll = Xe.call(Function.call, Array.prototype.concat), cl = Xe.call(Function.apply, Array.prototype.splice), Hn = Xe.call(Function.call, String.prototype.replace), mt = Xe.call(Function.call, String.prototype.slice), ul = Xe.call(Function.call, RegExp.prototype.exec), dl = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, fl = /\\(\\)?/g, pl = function(t) {
|
|
4147
4147
|
var n = mt(t, 0, 1), a = mt(t, -1);
|
|
4148
4148
|
if (n === "%" && a !== "%")
|
|
4149
4149
|
throw new Ie("invalid intrinsic syntax, expected closing `%`");
|
|
4150
4150
|
if (a === "%" && n !== "%")
|
|
4151
4151
|
throw new Ie("invalid intrinsic syntax, expected opening `%`");
|
|
4152
4152
|
var s = [];
|
|
4153
|
-
return
|
|
4154
|
-
s[s.length] = i ?
|
|
4153
|
+
return Hn(t, dl, function(o, r, i, l) {
|
|
4154
|
+
s[s.length] = i ? Hn(l, fl, "$1") : r || o;
|
|
4155
4155
|
}), s;
|
|
4156
4156
|
}, ml = function(t, n) {
|
|
4157
4157
|
var a = t, s;
|
|
4158
|
-
if (pt(
|
|
4158
|
+
if (pt(Mn, a) && (s = Mn[a], a = "%" + s[0] + "%"), pt(je, a)) {
|
|
4159
4159
|
var o = je[a];
|
|
4160
4160
|
if (o === Ee && (o = sl(a)), typeof o > "u" && !n)
|
|
4161
4161
|
throw new Ae("intrinsic " + t + " exists, but is not available. Please file an issue!");
|
|
@@ -4196,10 +4196,10 @@ var sl = function e(t) {
|
|
|
4196
4196
|
}
|
|
4197
4197
|
}
|
|
4198
4198
|
return i;
|
|
4199
|
-
},
|
|
4200
|
-
function
|
|
4201
|
-
if (
|
|
4202
|
-
|
|
4199
|
+
}, ua = { exports: {} }, Ot, Bn;
|
|
4200
|
+
function pn() {
|
|
4201
|
+
if (Bn) return Ot;
|
|
4202
|
+
Bn = 1;
|
|
4203
4203
|
var e = Ue, t = e("%Object.defineProperty%", !0) || !1;
|
|
4204
4204
|
if (t)
|
|
4205
4205
|
try {
|
|
@@ -4216,7 +4216,7 @@ if (st)
|
|
|
4216
4216
|
} catch {
|
|
4217
4217
|
st = null;
|
|
4218
4218
|
}
|
|
4219
|
-
var
|
|
4219
|
+
var da = st, Dn = pn(), yl = la, Oe = Ye, Vn = da, gl = function(t, n, a) {
|
|
4220
4220
|
if (!t || typeof t != "object" && typeof t != "function")
|
|
4221
4221
|
throw new Oe("`obj` must be an object or a function`");
|
|
4222
4222
|
if (typeof n != "string" && typeof n != "symbol")
|
|
@@ -4229,9 +4229,9 @@ var ua = st, Hn = dn(), yl = sa, Oe = Ye, Bn = ua, gl = function(t, n, a) {
|
|
|
4229
4229
|
throw new Oe("`nonConfigurable`, if provided, must be a boolean or null");
|
|
4230
4230
|
if (arguments.length > 6 && typeof arguments[6] != "boolean")
|
|
4231
4231
|
throw new Oe("`loose`, if provided, must be a boolean");
|
|
4232
|
-
var s = arguments.length > 3 ? arguments[3] : null, o = arguments.length > 4 ? arguments[4] : null, r = arguments.length > 5 ? arguments[5] : null, i = arguments.length > 6 ? arguments[6] : !1, l = !!
|
|
4233
|
-
if (
|
|
4234
|
-
|
|
4232
|
+
var s = arguments.length > 3 ? arguments[3] : null, o = arguments.length > 4 ? arguments[4] : null, r = arguments.length > 5 ? arguments[5] : null, i = arguments.length > 6 ? arguments[6] : !1, l = !!Vn && Vn(t, n);
|
|
4233
|
+
if (Dn)
|
|
4234
|
+
Dn(t, n, {
|
|
4235
4235
|
configurable: r === null && l ? l.configurable : !r,
|
|
4236
4236
|
enumerable: s === null && l ? l.enumerable : !s,
|
|
4237
4237
|
value: a,
|
|
@@ -4241,10 +4241,10 @@ var ua = st, Hn = dn(), yl = sa, Oe = Ye, Bn = ua, gl = function(t, n, a) {
|
|
|
4241
4241
|
t[n] = a;
|
|
4242
4242
|
else
|
|
4243
4243
|
throw new yl("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
4244
|
-
}, Ht =
|
|
4244
|
+
}, Ht = pn(), fa = function() {
|
|
4245
4245
|
return !!Ht;
|
|
4246
4246
|
};
|
|
4247
|
-
|
|
4247
|
+
fa.hasArrayLengthDefineBug = function() {
|
|
4248
4248
|
if (!Ht)
|
|
4249
4249
|
return null;
|
|
4250
4250
|
try {
|
|
@@ -4253,24 +4253,24 @@ da.hasArrayLengthDefineBug = function() {
|
|
|
4253
4253
|
return !0;
|
|
4254
4254
|
}
|
|
4255
4255
|
};
|
|
4256
|
-
var vl =
|
|
4256
|
+
var vl = fa, bl = Ue, zn = gl, xl = vl(), Wn = da, Jn = Ye, kl = bl("%Math.floor%"), $l = function(t, n) {
|
|
4257
4257
|
if (typeof t != "function")
|
|
4258
|
-
throw new
|
|
4258
|
+
throw new Jn("`fn` is not a function");
|
|
4259
4259
|
if (typeof n != "number" || n < 0 || n > 4294967295 || kl(n) !== n)
|
|
4260
|
-
throw new
|
|
4260
|
+
throw new Jn("`length` must be a positive 32-bit integer");
|
|
4261
4261
|
var a = arguments.length > 2 && !!arguments[2], s = !0, o = !0;
|
|
4262
|
-
if ("length" in t &&
|
|
4263
|
-
var r =
|
|
4262
|
+
if ("length" in t && Wn) {
|
|
4263
|
+
var r = Wn(t, "length");
|
|
4264
4264
|
r && !r.configurable && (s = !1), r && !r.writable && (o = !1);
|
|
4265
4265
|
}
|
|
4266
|
-
return (s || o || !a) && (xl ?
|
|
4266
|
+
return (s || o || !a) && (xl ? zn(
|
|
4267
4267
|
/** @type {Parameters<define>[0]} */
|
|
4268
4268
|
t,
|
|
4269
4269
|
"length",
|
|
4270
4270
|
n,
|
|
4271
4271
|
!0,
|
|
4272
4272
|
!0
|
|
4273
|
-
) :
|
|
4273
|
+
) : zn(
|
|
4274
4274
|
/** @type {Parameters<define>[0]} */
|
|
4275
4275
|
t,
|
|
4276
4276
|
"length",
|
|
@@ -4278,7 +4278,7 @@ var vl = da, bl = Ue, Dn = gl, xl = vl(), Vn = ua, zn = Ye, kl = bl("%Math.floor
|
|
|
4278
4278
|
)), t;
|
|
4279
4279
|
};
|
|
4280
4280
|
(function(e) {
|
|
4281
|
-
var t =
|
|
4281
|
+
var t = fn, n = Ue, a = $l, 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%");
|
|
4282
4282
|
e.exports = function(d) {
|
|
4283
4283
|
if (typeof d != "function")
|
|
4284
4284
|
throw new s("a function is required");
|
|
@@ -4293,32 +4293,32 @@ var vl = da, bl = Ue, Dn = gl, xl = vl(), Vn = ua, zn = Ye, kl = bl("%Math.floor
|
|
|
4293
4293
|
return i(t, o, arguments);
|
|
4294
4294
|
};
|
|
4295
4295
|
l ? l(e.exports, "apply", { value: u }) : e.exports.apply = u;
|
|
4296
|
-
})(
|
|
4297
|
-
var Sl =
|
|
4298
|
-
var a =
|
|
4299
|
-
return typeof a == "function" && wl(t, ".prototype.") > -1 ?
|
|
4296
|
+
})(ua);
|
|
4297
|
+
var Sl = ua.exports, pa = Ue, ma = Sl, wl = ma(pa("String.prototype.indexOf")), jl = function(t, n) {
|
|
4298
|
+
var a = pa(t, !!n);
|
|
4299
|
+
return typeof a == "function" && wl(t, ".prototype.") > -1 ? ma(a) : a;
|
|
4300
4300
|
};
|
|
4301
4301
|
const Nl = {}, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4302
4302
|
__proto__: null,
|
|
4303
4303
|
default: Nl
|
|
4304
|
-
}, Symbol.toStringTag, { value: "Module" })), Ol = /* @__PURE__ */
|
|
4305
|
-
var
|
|
4304
|
+
}, Symbol.toStringTag, { value: "Module" })), Ol = /* @__PURE__ */ bo(Tl);
|
|
4305
|
+
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, Cl = typeof WeakMap == "function" && WeakMap.prototype, De = Cl ? WeakMap.prototype.has : null, Pl = typeof WeakSet == "function" && WeakSet.prototype, Ve = Pl ? WeakSet.prototype.has : null, El = typeof WeakRef == "function" && WeakRef.prototype, Qn = El ? WeakRef.prototype.deref : null, Rl = Boolean.prototype.valueOf, Al = Object.prototype.toString, Fl = Function.prototype.toString, ql = String.prototype.match, yn = String.prototype.slice, ve = String.prototype.replace, Il = String.prototype.toUpperCase, Yn = String.prototype.toLowerCase, ha = RegExp.prototype.test, Xn = Array.prototype.concat, ue = Array.prototype.join, _l = 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", Z = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === _e || !0) ? Symbol.toStringTag : null, ya = Object.prototype.propertyIsEnumerable, er = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
|
|
4306
4306
|
return e.__proto__;
|
|
4307
4307
|
} : null);
|
|
4308
|
-
function
|
|
4309
|
-
if (e === 1 / 0 || e === -1 / 0 || e !== e || e && e > -1e3 && e < 1e3 ||
|
|
4308
|
+
function tr(e, t) {
|
|
4309
|
+
if (e === 1 / 0 || e === -1 / 0 || e !== e || e && e > -1e3 && e < 1e3 || ha.call(/e/, t))
|
|
4310
4310
|
return t;
|
|
4311
4311
|
var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
4312
4312
|
if (typeof e == "number") {
|
|
4313
|
-
var a = e < 0 ? -
|
|
4313
|
+
var a = e < 0 ? -Zn(-e) : Zn(e);
|
|
4314
4314
|
if (a !== e) {
|
|
4315
|
-
var s = String(a), o =
|
|
4315
|
+
var s = String(a), o = yn.call(t, s.length + 1);
|
|
4316
4316
|
return ve.call(s, n, "$&_") + "." + ve.call(ve.call(o, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
4317
4317
|
}
|
|
4318
4318
|
}
|
|
4319
4319
|
return ve.call(t, n, "$&_");
|
|
4320
4320
|
}
|
|
4321
|
-
var Vt = Ol,
|
|
4321
|
+
var Vt = Ol, nr = Vt.custom, rr = va(nr) ? nr : null, Ll = function e(t, n, a, s) {
|
|
4322
4322
|
var o = n || {};
|
|
4323
4323
|
if (ge(o, "quoteStyle") && o.quoteStyle !== "single" && o.quoteStyle !== "double")
|
|
4324
4324
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -4339,16 +4339,16 @@ var Vt = Ol, er = Vt.custom, tr = ga(er) ? er : null, Ll = function e(t, n, a, s
|
|
|
4339
4339
|
if (typeof t == "boolean")
|
|
4340
4340
|
return t ? "true" : "false";
|
|
4341
4341
|
if (typeof t == "string")
|
|
4342
|
-
return
|
|
4342
|
+
return xa(t, o);
|
|
4343
4343
|
if (typeof t == "number") {
|
|
4344
4344
|
if (t === 0)
|
|
4345
4345
|
return 1 / 0 / t > 0 ? "0" : "-0";
|
|
4346
4346
|
var l = String(t);
|
|
4347
|
-
return i ?
|
|
4347
|
+
return i ? tr(t, l) : l;
|
|
4348
4348
|
}
|
|
4349
4349
|
if (typeof t == "bigint") {
|
|
4350
4350
|
var c = String(t) + "n";
|
|
4351
|
-
return i ?
|
|
4351
|
+
return i ? tr(t, c) : c;
|
|
4352
4352
|
}
|
|
4353
4353
|
var u = typeof o.depth > "u" ? 5 : o.depth;
|
|
4354
4354
|
if (typeof a > "u" && (a = 0), a >= u && u > 0 && typeof t == "object")
|
|
@@ -4356,7 +4356,7 @@ var Vt = Ol, er = Vt.custom, tr = ga(er) ? er : null, Ll = function e(t, n, a, s
|
|
|
4356
4356
|
var p = nc(o, a);
|
|
4357
4357
|
if (typeof s > "u")
|
|
4358
4358
|
s = [];
|
|
4359
|
-
else if (
|
|
4359
|
+
else if (ba(s, t) >= 0)
|
|
4360
4360
|
return "[Circular]";
|
|
4361
4361
|
function d(q, L, H) {
|
|
4362
4362
|
if (L && (s = _l.call(s), s.push(L)), H) {
|
|
@@ -4367,46 +4367,46 @@ var Vt = Ol, er = Vt.custom, tr = ga(er) ? er : null, Ll = function e(t, n, a, s
|
|
|
4367
4367
|
}
|
|
4368
4368
|
return e(q, o, a + 1, s);
|
|
4369
4369
|
}
|
|
4370
|
-
if (typeof t == "function" && !
|
|
4370
|
+
if (typeof t == "function" && !ar(t)) {
|
|
4371
4371
|
var m = Jl(t), h = et(t, d);
|
|
4372
4372
|
return "[Function" + (m ? ": " + m : " (anonymous)") + "]" + (h.length > 0 ? " { " + ue.call(h, ", ") + " }" : "");
|
|
4373
4373
|
}
|
|
4374
|
-
if (
|
|
4374
|
+
if (va(t)) {
|
|
4375
4375
|
var y = _e ? ve.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : Dt.call(t);
|
|
4376
4376
|
return typeof t == "object" && !_e ? He(y) : y;
|
|
4377
4377
|
}
|
|
4378
4378
|
if (Zl(t)) {
|
|
4379
|
-
for (var
|
|
4380
|
-
|
|
4381
|
-
return
|
|
4379
|
+
for (var g = "<" + Yn.call(String(t.nodeName)), b = t.attributes || [], v = 0; v < b.length; v++)
|
|
4380
|
+
g += " " + b[v].name + "=" + ga(Ul(b[v].value), "double", o);
|
|
4381
|
+
return g += ">", t.childNodes && t.childNodes.length && (g += "..."), g += "</" + Yn.call(String(t.nodeName)) + ">", g;
|
|
4382
4382
|
}
|
|
4383
4383
|
if (zt(t)) {
|
|
4384
4384
|
if (t.length === 0)
|
|
4385
4385
|
return "[]";
|
|
4386
|
-
var
|
|
4387
|
-
return p && !tc(
|
|
4386
|
+
var x = et(t, d);
|
|
4387
|
+
return p && !tc(x) ? "[" + Wt(x, p) + "]" : "[ " + ue.call(x, ", ") + " ]";
|
|
4388
4388
|
}
|
|
4389
4389
|
if (Hl(t)) {
|
|
4390
4390
|
var w = et(t, d);
|
|
4391
|
-
return !("cause" in Error.prototype) && "cause" in t && !
|
|
4391
|
+
return !("cause" in Error.prototype) && "cause" in t && !ya.call(t, "cause") ? "{ [" + String(t) + "] " + ue.call(Xn.call("[cause]: " + d(t.cause), w), ", ") + " }" : w.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + ue.call(w, ", ") + " }";
|
|
4392
4392
|
}
|
|
4393
4393
|
if (typeof t == "object" && r) {
|
|
4394
|
-
if (
|
|
4394
|
+
if (rr && typeof t[rr] == "function" && Vt)
|
|
4395
4395
|
return Vt(t, { depth: u - a });
|
|
4396
4396
|
if (r !== "symbol" && typeof t.inspect == "function")
|
|
4397
4397
|
return t.inspect();
|
|
4398
4398
|
}
|
|
4399
4399
|
if (Gl(t)) {
|
|
4400
4400
|
var S = [];
|
|
4401
|
-
return
|
|
4401
|
+
return Gn && Gn.call(t, function(q, L) {
|
|
4402
4402
|
S.push(d(L, t, !0) + " => " + d(q, t));
|
|
4403
|
-
}),
|
|
4403
|
+
}), or("Map", ht.call(t), S, p);
|
|
4404
4404
|
}
|
|
4405
4405
|
if (Yl(t)) {
|
|
4406
4406
|
var j = [];
|
|
4407
|
-
return
|
|
4407
|
+
return Kn && Kn.call(t, function(q) {
|
|
4408
4408
|
j.push(d(q, t));
|
|
4409
|
-
}),
|
|
4409
|
+
}), or("Set", yt.call(t), j, p);
|
|
4410
4410
|
}
|
|
4411
4411
|
if (Kl(t))
|
|
4412
4412
|
return Rt("WeakMap");
|
|
@@ -4426,13 +4426,13 @@ var Vt = Ol, er = Vt.custom, tr = ga(er) ? er : null, Ll = function e(t, n, a, s
|
|
|
4426
4426
|
return "{ [object Window] }";
|
|
4427
4427
|
if (t === ot)
|
|
4428
4428
|
return "{ [object globalThis] }";
|
|
4429
|
-
if (!Ml(t) && !
|
|
4430
|
-
var k = et(t, d), O =
|
|
4429
|
+
if (!Ml(t) && !ar(t)) {
|
|
4430
|
+
var k = et(t, d), O = er ? er(t) === Object.prototype : t instanceof Object || t.constructor === Object, R = t instanceof Object ? "" : "null prototype", I = !O && Z && Object(t) === t && Z in t ? yn.call(xe(t), 8, -1) : R ? "Object" : "", V = O || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", Q = V + (I || R ? "[" + ue.call(Xn.call([], I || [], R || []), ": ") + "] " : "");
|
|
4431
4431
|
return k.length === 0 ? Q + "{}" : p ? Q + "{" + Wt(k, p) + "}" : Q + "{ " + ue.call(k, ", ") + " }";
|
|
4432
4432
|
}
|
|
4433
4433
|
return String(t);
|
|
4434
4434
|
};
|
|
4435
|
-
function
|
|
4435
|
+
function ga(e, t, n) {
|
|
4436
4436
|
var a = (n.quoteStyle || t) === "double" ? '"' : "'";
|
|
4437
4437
|
return a + e + a;
|
|
4438
4438
|
}
|
|
@@ -4445,7 +4445,7 @@ function zt(e) {
|
|
|
4445
4445
|
function Ml(e) {
|
|
4446
4446
|
return xe(e) === "[object Date]" && (!Z || !(typeof e == "object" && Z in e));
|
|
4447
4447
|
}
|
|
4448
|
-
function
|
|
4448
|
+
function ar(e) {
|
|
4449
4449
|
return xe(e) === "[object RegExp]" && (!Z || !(typeof e == "object" && Z in e));
|
|
4450
4450
|
}
|
|
4451
4451
|
function Hl(e) {
|
|
@@ -4460,7 +4460,7 @@ function Dl(e) {
|
|
|
4460
4460
|
function Vl(e) {
|
|
4461
4461
|
return xe(e) === "[object Boolean]" && (!Z || !(typeof e == "object" && Z in e));
|
|
4462
4462
|
}
|
|
4463
|
-
function
|
|
4463
|
+
function va(e) {
|
|
4464
4464
|
if (_e)
|
|
4465
4465
|
return e && typeof e == "object" && e instanceof Symbol;
|
|
4466
4466
|
if (typeof e == "symbol")
|
|
@@ -4497,7 +4497,7 @@ function Jl(e) {
|
|
|
4497
4497
|
var t = ql.call(Fl.call(e), /^function\s*([\w$]+)/);
|
|
4498
4498
|
return t ? t[1] : null;
|
|
4499
4499
|
}
|
|
4500
|
-
function
|
|
4500
|
+
function ba(e, t) {
|
|
4501
4501
|
if (e.indexOf)
|
|
4502
4502
|
return e.indexOf(t);
|
|
4503
4503
|
for (var n = 0, a = e.length; n < a; n++)
|
|
@@ -4536,10 +4536,10 @@ function Kl(e) {
|
|
|
4536
4536
|
return !1;
|
|
4537
4537
|
}
|
|
4538
4538
|
function Ql(e) {
|
|
4539
|
-
if (!
|
|
4539
|
+
if (!Qn || !e || typeof e != "object")
|
|
4540
4540
|
return !1;
|
|
4541
4541
|
try {
|
|
4542
|
-
return
|
|
4542
|
+
return Qn.call(e), !0;
|
|
4543
4543
|
} catch {
|
|
4544
4544
|
}
|
|
4545
4545
|
return !1;
|
|
@@ -4577,13 +4577,13 @@ function Xl(e) {
|
|
|
4577
4577
|
function Zl(e) {
|
|
4578
4578
|
return !e || typeof e != "object" ? !1 : typeof HTMLElement < "u" && e instanceof HTMLElement ? !0 : typeof e.nodeName == "string" && typeof e.getAttribute == "function";
|
|
4579
4579
|
}
|
|
4580
|
-
function
|
|
4580
|
+
function xa(e, t) {
|
|
4581
4581
|
if (e.length > t.maxStringLength) {
|
|
4582
4582
|
var n = e.length - t.maxStringLength, a = "... " + n + " more character" + (n > 1 ? "s" : "");
|
|
4583
|
-
return
|
|
4583
|
+
return xa(yn.call(e, 0, t.maxStringLength), t) + a;
|
|
4584
4584
|
}
|
|
4585
4585
|
var s = ve.call(ve.call(e, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, ec);
|
|
4586
|
-
return
|
|
4586
|
+
return ga(s, "single", t);
|
|
4587
4587
|
}
|
|
4588
4588
|
function ec(e) {
|
|
4589
4589
|
var t = e.charCodeAt(0), n = {
|
|
@@ -4601,13 +4601,13 @@ function He(e) {
|
|
|
4601
4601
|
function Rt(e) {
|
|
4602
4602
|
return e + " { ? }";
|
|
4603
4603
|
}
|
|
4604
|
-
function
|
|
4604
|
+
function or(e, t, n, a) {
|
|
4605
4605
|
var s = a ? Wt(n, a) : ue.call(n, ", ");
|
|
4606
4606
|
return e + " (" + t + ") {" + s + "}";
|
|
4607
4607
|
}
|
|
4608
4608
|
function tc(e) {
|
|
4609
4609
|
for (var t = 0; t < e.length; t++)
|
|
4610
|
-
if (
|
|
4610
|
+
if (ba(e[t], `
|
|
4611
4611
|
`) >= 0)
|
|
4612
4612
|
return !1;
|
|
4613
4613
|
return !0;
|
|
@@ -4647,22 +4647,22 @@ function et(e, t) {
|
|
|
4647
4647
|
r["$" + o[i]] = o[i];
|
|
4648
4648
|
}
|
|
4649
4649
|
for (var l in e)
|
|
4650
|
-
ge(e, l) && (n && String(Number(l)) === l && l < e.length || _e && r["$" + l] instanceof Symbol || (
|
|
4650
|
+
ge(e, l) && (n && String(Number(l)) === l && l < e.length || _e && r["$" + l] instanceof Symbol || (ha.call(/[^\w$]/, l) ? a.push(t(l, e) + ": " + t(e[l], e)) : a.push(l + ": " + t(e[l], e))));
|
|
4651
4651
|
if (typeof Et == "function")
|
|
4652
4652
|
for (var c = 0; c < o.length; c++)
|
|
4653
|
-
|
|
4653
|
+
ya.call(e, o[c]) && a.push("[" + t(o[c]) + "]: " + t(e[o[c]], e));
|
|
4654
4654
|
return a;
|
|
4655
4655
|
}
|
|
4656
|
-
var
|
|
4656
|
+
var ka = Ue, Me = jl, rc = Ll, ac = Ye, tt = ka("%WeakMap%", !0), nt = ka("%Map%", !0), oc = Me("WeakMap.prototype.get", !0), ic = Me("WeakMap.prototype.set", !0), sc = Me("WeakMap.prototype.has", !0), lc = Me("Map.prototype.get", !0), cc = Me("Map.prototype.set", !0), uc = Me("Map.prototype.has", !0), gn = function(e, t) {
|
|
4657
4657
|
for (var n = e, a; (a = n.next) !== null; n = a)
|
|
4658
4658
|
if (a.key === t)
|
|
4659
4659
|
return n.next = a.next, a.next = /** @type {NonNullable<typeof list.next>} */
|
|
4660
4660
|
e.next, e.next = a, a;
|
|
4661
4661
|
}, dc = function(e, t) {
|
|
4662
|
-
var n =
|
|
4662
|
+
var n = gn(e, t);
|
|
4663
4663
|
return n && n.value;
|
|
4664
4664
|
}, fc = function(e, t, n) {
|
|
4665
|
-
var a =
|
|
4665
|
+
var a = gn(e, t);
|
|
4666
4666
|
a ? a.value = n : e.next = /** @type {import('.').ListNode<typeof value>} */
|
|
4667
4667
|
{
|
|
4668
4668
|
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
@@ -4671,7 +4671,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4671
4671
|
value: n
|
|
4672
4672
|
};
|
|
4673
4673
|
}, pc = function(e, t) {
|
|
4674
|
-
return !!
|
|
4674
|
+
return !!gn(e, t);
|
|
4675
4675
|
}, mc = function() {
|
|
4676
4676
|
var t, n, a, s = {
|
|
4677
4677
|
assert: function(o) {
|
|
@@ -4707,7 +4707,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4707
4707
|
}, hc = String.prototype.replace, yc = /%20/g, At = {
|
|
4708
4708
|
RFC1738: "RFC1738",
|
|
4709
4709
|
RFC3986: "RFC3986"
|
|
4710
|
-
},
|
|
4710
|
+
}, vn = {
|
|
4711
4711
|
default: At.RFC3986,
|
|
4712
4712
|
formatters: {
|
|
4713
4713
|
RFC1738: function(e) {
|
|
@@ -4719,7 +4719,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4719
4719
|
},
|
|
4720
4720
|
RFC1738: At.RFC1738,
|
|
4721
4721
|
RFC3986: At.RFC3986
|
|
4722
|
-
}, gc =
|
|
4722
|
+
}, gc = vn, Ft = Object.prototype.hasOwnProperty, $e = Array.isArray, le = function() {
|
|
4723
4723
|
for (var e = [], t = 0; t < 256; ++t)
|
|
4724
4724
|
e.push("%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase());
|
|
4725
4725
|
return e;
|
|
@@ -4732,7 +4732,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4732
4732
|
n.obj[n.prop] = s;
|
|
4733
4733
|
}
|
|
4734
4734
|
}
|
|
4735
|
-
},
|
|
4735
|
+
}, $a = function(t, n) {
|
|
4736
4736
|
for (var a = n && n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, s = 0; s < t.length; ++s)
|
|
4737
4737
|
typeof t[s] < "u" && (a[s] = t[s]);
|
|
4738
4738
|
return a;
|
|
@@ -4751,7 +4751,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4751
4751
|
if (!t || typeof t != "object")
|
|
4752
4752
|
return [t].concat(n);
|
|
4753
4753
|
var s = t;
|
|
4754
|
-
return $e(t) && !$e(n) && (s =
|
|
4754
|
+
return $e(t) && !$e(n) && (s = $a(t, a)), $e(t) && $e(n) ? (n.forEach(function(o, r) {
|
|
4755
4755
|
if (Ft.call(t, r)) {
|
|
4756
4756
|
var i = t[r];
|
|
4757
4757
|
i && typeof i == "object" && o && typeof o == "object" ? t[r] = e(i, o, a) : t.push(o);
|
|
@@ -4826,8 +4826,8 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4826
4826
|
return a;
|
|
4827
4827
|
}
|
|
4828
4828
|
return n(t);
|
|
4829
|
-
},
|
|
4830
|
-
arrayToObject:
|
|
4829
|
+
}, Sa = {
|
|
4830
|
+
arrayToObject: $a,
|
|
4831
4831
|
assign: xc,
|
|
4832
4832
|
combine: Nc,
|
|
4833
4833
|
compact: Sc,
|
|
@@ -4837,7 +4837,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4837
4837
|
isRegExp: wc,
|
|
4838
4838
|
maybeMap: Tc,
|
|
4839
4839
|
merge: bc
|
|
4840
|
-
},
|
|
4840
|
+
}, wa = mc, lt = Sa, ze = vn, Oc = Object.prototype.hasOwnProperty, ja = {
|
|
4841
4841
|
brackets: function(t) {
|
|
4842
4842
|
return t + "[]";
|
|
4843
4843
|
},
|
|
@@ -4848,9 +4848,9 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4848
4848
|
repeat: function(t) {
|
|
4849
4849
|
return t;
|
|
4850
4850
|
}
|
|
4851
|
-
}, ce = Array.isArray, Cc = Array.prototype.push,
|
|
4851
|
+
}, ce = Array.isArray, Cc = Array.prototype.push, Na = function(e, t) {
|
|
4852
4852
|
Cc.apply(e, ce(t) ? t : [t]);
|
|
4853
|
-
}, Pc = Date.prototype.toISOString,
|
|
4853
|
+
}, Pc = Date.prototype.toISOString, ir = ze.default, D = {
|
|
4854
4854
|
addQueryPrefix: !1,
|
|
4855
4855
|
allowDots: !1,
|
|
4856
4856
|
allowEmptyArrays: !1,
|
|
@@ -4862,8 +4862,8 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4862
4862
|
encodeDotInKeys: !1,
|
|
4863
4863
|
encoder: lt.encode,
|
|
4864
4864
|
encodeValuesOnly: !1,
|
|
4865
|
-
format:
|
|
4866
|
-
formatter: ze.formatters[
|
|
4865
|
+
format: ir,
|
|
4866
|
+
formatter: ze.formatters[ir],
|
|
4867
4867
|
// deprecated
|
|
4868
4868
|
indices: !1,
|
|
4869
4869
|
serializeDate: function(t) {
|
|
@@ -4873,8 +4873,8 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4873
4873
|
strictNullHandling: !1
|
|
4874
4874
|
}, Ec = function(t) {
|
|
4875
4875
|
return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t == "bigint";
|
|
4876
|
-
}, It = {}, Rc = function e(t, n, a, s, o, r, i, l, c, u, p, d, m, h, y,
|
|
4877
|
-
for (var
|
|
4876
|
+
}, It = {}, Rc = function e(t, n, a, s, o, r, i, l, c, u, p, d, m, h, y, g, b, v) {
|
|
4877
|
+
for (var x = t, w = v, S = 0, j = !1; (w = w.get(It)) !== void 0 && !j; ) {
|
|
4878
4878
|
var k = w.get(t);
|
|
4879
4879
|
if (S += 1, typeof k < "u") {
|
|
4880
4880
|
if (k === S)
|
|
@@ -4883,42 +4883,42 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4883
4883
|
}
|
|
4884
4884
|
typeof w.get(It) > "u" && (S = 0);
|
|
4885
4885
|
}
|
|
4886
|
-
if (typeof u == "function" ?
|
|
4886
|
+
if (typeof u == "function" ? x = u(n, x) : x instanceof Date ? x = m(x) : a === "comma" && ce(x) && (x = lt.maybeMap(x, function($) {
|
|
4887
4887
|
return $ instanceof Date ? m($) : $;
|
|
4888
|
-
})),
|
|
4888
|
+
})), x === null) {
|
|
4889
4889
|
if (r)
|
|
4890
|
-
return c && !
|
|
4891
|
-
|
|
4890
|
+
return c && !g ? c(n, D.encoder, b, "key", h) : n;
|
|
4891
|
+
x = "";
|
|
4892
4892
|
}
|
|
4893
|
-
if (Ec(
|
|
4893
|
+
if (Ec(x) || lt.isBuffer(x)) {
|
|
4894
4894
|
if (c) {
|
|
4895
|
-
var O =
|
|
4896
|
-
return [y(O) + "=" + y(c(
|
|
4895
|
+
var O = g ? n : c(n, D.encoder, b, "key", h);
|
|
4896
|
+
return [y(O) + "=" + y(c(x, D.encoder, b, "value", h))];
|
|
4897
4897
|
}
|
|
4898
|
-
return [y(n) + "=" + y(String(
|
|
4898
|
+
return [y(n) + "=" + y(String(x))];
|
|
4899
4899
|
}
|
|
4900
4900
|
var R = [];
|
|
4901
|
-
if (typeof
|
|
4901
|
+
if (typeof x > "u")
|
|
4902
4902
|
return R;
|
|
4903
4903
|
var I;
|
|
4904
|
-
if (a === "comma" && ce(
|
|
4905
|
-
|
|
4904
|
+
if (a === "comma" && ce(x))
|
|
4905
|
+
g && c && (x = lt.maybeMap(x, c)), I = [{ value: x.length > 0 ? x.join(",") || null : void 0 }];
|
|
4906
4906
|
else if (ce(u))
|
|
4907
4907
|
I = u;
|
|
4908
4908
|
else {
|
|
4909
|
-
var V = Object.keys(
|
|
4909
|
+
var V = Object.keys(x);
|
|
4910
4910
|
I = p ? V.sort(p) : V;
|
|
4911
4911
|
}
|
|
4912
|
-
var Q = l ? n.replace(/\./g, "%2E") : n, q = s && ce(
|
|
4913
|
-
if (o && ce(
|
|
4912
|
+
var Q = l ? n.replace(/\./g, "%2E") : n, q = s && ce(x) && x.length === 1 ? Q + "[]" : Q;
|
|
4913
|
+
if (o && ce(x) && x.length === 0)
|
|
4914
4914
|
return q + "[]";
|
|
4915
4915
|
for (var L = 0; L < I.length; ++L) {
|
|
4916
|
-
var H = I[L], B = typeof H == "object" && typeof H.value < "u" ? H.value :
|
|
4916
|
+
var H = I[L], B = typeof H == "object" && typeof H.value < "u" ? H.value : x[H];
|
|
4917
4917
|
if (!(i && B === null)) {
|
|
4918
|
-
var he = d && l ? H.replace(/\./g, "%2E") : H, bt = ce(
|
|
4919
|
-
|
|
4920
|
-
var Ze =
|
|
4921
|
-
Ze.set(It,
|
|
4918
|
+
var he = d && l ? H.replace(/\./g, "%2E") : H, bt = ce(x) ? typeof a == "function" ? a(q, he) : q : q + (d ? "." + he : "[" + he + "]");
|
|
4919
|
+
v.set(t, S);
|
|
4920
|
+
var Ze = wa();
|
|
4921
|
+
Ze.set(It, v), Na(R, e(
|
|
4922
4922
|
B,
|
|
4923
4923
|
bt,
|
|
4924
4924
|
a,
|
|
@@ -4927,15 +4927,15 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4927
4927
|
r,
|
|
4928
4928
|
i,
|
|
4929
4929
|
l,
|
|
4930
|
-
a === "comma" &&
|
|
4930
|
+
a === "comma" && g && ce(x) ? null : c,
|
|
4931
4931
|
u,
|
|
4932
4932
|
p,
|
|
4933
4933
|
d,
|
|
4934
4934
|
m,
|
|
4935
4935
|
h,
|
|
4936
4936
|
y,
|
|
4937
|
-
|
|
4938
|
-
|
|
4937
|
+
g,
|
|
4938
|
+
b,
|
|
4939
4939
|
Ze
|
|
4940
4940
|
));
|
|
4941
4941
|
}
|
|
@@ -4962,7 +4962,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4962
4962
|
var s = ze.formatters[a], o = D.filter;
|
|
4963
4963
|
(typeof t.filter == "function" || ce(t.filter)) && (o = t.filter);
|
|
4964
4964
|
var r;
|
|
4965
|
-
if (t.arrayFormat in
|
|
4965
|
+
if (t.arrayFormat in ja ? r = t.arrayFormat : "indices" in t ? r = t.indices ? "indices" : "repeat" : r = D.arrayFormat, "commaRoundTrip" in t && typeof t.commaRoundTrip != "boolean")
|
|
4966
4966
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
4967
4967
|
var i = typeof t.allowDots > "u" ? t.encodeDotInKeys === !0 ? !0 : D.allowDots : !!t.allowDots;
|
|
4968
4968
|
return {
|
|
@@ -4992,11 +4992,11 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4992
4992
|
var r = [];
|
|
4993
4993
|
if (typeof n != "object" || n === null)
|
|
4994
4994
|
return "";
|
|
4995
|
-
var i =
|
|
4995
|
+
var i = ja[a.arrayFormat], l = i === "comma" && a.commaRoundTrip;
|
|
4996
4996
|
s || (s = Object.keys(n)), a.sort && s.sort(a.sort);
|
|
4997
|
-
for (var c =
|
|
4997
|
+
for (var c = wa(), u = 0; u < s.length; ++u) {
|
|
4998
4998
|
var p = s[u];
|
|
4999
|
-
a.skipNulls && n[p] === null ||
|
|
4999
|
+
a.skipNulls && n[p] === null || Na(r, Rc(
|
|
5000
5000
|
n[p],
|
|
5001
5001
|
p,
|
|
5002
5002
|
i,
|
|
@@ -5019,7 +5019,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
5019
5019
|
}
|
|
5020
5020
|
var d = r.join(a.delimiter), m = a.addQueryPrefix === !0 ? "?" : "";
|
|
5021
5021
|
return a.charsetSentinel && (a.charset === "iso-8859-1" ? m += "utf8=%26%2310003%3B&" : m += "utf8=%E2%9C%93&"), d.length > 0 ? m + d : "";
|
|
5022
|
-
}, Le =
|
|
5022
|
+
}, Le = Sa, Jt = Object.prototype.hasOwnProperty, qc = Array.isArray, M = {
|
|
5023
5023
|
allowDots: !1,
|
|
5024
5024
|
allowEmptyArrays: !1,
|
|
5025
5025
|
allowPrototypes: !1,
|
|
@@ -5043,7 +5043,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
5043
5043
|
return e.replace(/&#(\d+);/g, function(t, n) {
|
|
5044
5044
|
return String.fromCharCode(parseInt(n, 10));
|
|
5045
5045
|
});
|
|
5046
|
-
},
|
|
5046
|
+
}, Ta = function(e, t) {
|
|
5047
5047
|
return e && typeof e == "string" && t.comma && e.indexOf(",") > -1 ? e.split(",") : e;
|
|
5048
5048
|
}, _c = "utf8=%26%2310003%3B", Lc = "utf8=%E2%9C%93", Uc = function(t, n) {
|
|
5049
5049
|
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;
|
|
@@ -5054,9 +5054,9 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
5054
5054
|
if (l !== i) {
|
|
5055
5055
|
var u = r[l], p = u.indexOf("]="), d = p === -1 ? u.indexOf("=") : p + 1, m, h;
|
|
5056
5056
|
d === -1 ? (m = n.decoder(u, M.decoder, c, "key"), h = n.strictNullHandling ? null : "") : (m = n.decoder(u.slice(0, d), M.decoder, c, "key"), h = Le.maybeMap(
|
|
5057
|
-
|
|
5058
|
-
function(
|
|
5059
|
-
return n.decoder(
|
|
5057
|
+
Ta(u.slice(d + 1), n),
|
|
5058
|
+
function(g) {
|
|
5059
|
+
return n.decoder(g, M.decoder, c, "value");
|
|
5060
5060
|
}
|
|
5061
5061
|
)), h && n.interpretNumericEntities && c === "iso-8859-1" && (h = Ic(h)), u.indexOf("[]=") > -1 && (h = qc(h) ? [h] : h);
|
|
5062
5062
|
var y = Jt.call(a, m);
|
|
@@ -5064,7 +5064,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
5064
5064
|
}
|
|
5065
5065
|
return a;
|
|
5066
5066
|
}, Mc = function(e, t, n, a) {
|
|
5067
|
-
for (var s = a ? t :
|
|
5067
|
+
for (var s = a ? t : Ta(t, n), o = e.length - 1; o >= 0; --o) {
|
|
5068
5068
|
var r, i = e[o];
|
|
5069
5069
|
if (i === "[]" && n.parseArrays)
|
|
5070
5070
|
r = n.allowEmptyArrays && s === "" ? [] : [].concat(s);
|
|
@@ -5137,7 +5137,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
5137
5137
|
s = Le.merge(s, l, n);
|
|
5138
5138
|
}
|
|
5139
5139
|
return n.allowSparse === !0 ? s : Le.compact(s);
|
|
5140
|
-
}, Vc = Fc, zc = Dc, Wc =
|
|
5140
|
+
}, Vc = Fc, zc = Dc, Wc = vn, ct = {
|
|
5141
5141
|
formats: Wc,
|
|
5142
5142
|
parse: zc,
|
|
5143
5143
|
stringify: Vc
|
|
@@ -5162,17 +5162,17 @@ var Gc = /^([a-z0-9.+-]+:)/i, Kc = /:[0-9]*$/, Qc = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
|
|
|
5162
5162
|
"\\",
|
|
5163
5163
|
"^",
|
|
5164
5164
|
"`"
|
|
5165
|
-
].concat(Yc), Gt = ["'"].concat(Xc),
|
|
5165
|
+
].concat(Yc), Gt = ["'"].concat(Xc), sr = [
|
|
5166
5166
|
"%",
|
|
5167
5167
|
"/",
|
|
5168
5168
|
"?",
|
|
5169
5169
|
";",
|
|
5170
5170
|
"#"
|
|
5171
|
-
].concat(Gt),
|
|
5171
|
+
].concat(Gt), lr = [
|
|
5172
5172
|
"/",
|
|
5173
5173
|
"?",
|
|
5174
5174
|
"#"
|
|
5175
|
-
], Zc = 255,
|
|
5175
|
+
], Zc = 255, cr = /^[+a-z0-9A-Z_-]{0,63}$/, eu = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, tu = {
|
|
5176
5176
|
javascript: !0,
|
|
5177
5177
|
"javascript:": !0
|
|
5178
5178
|
}, Kt = {
|
|
@@ -5190,7 +5190,7 @@ var Gc = /^([a-z0-9.+-]+:)/i, Kc = /:[0-9]*$/, Qc = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
|
|
|
5190
5190
|
"gopher:": !0,
|
|
5191
5191
|
"file:": !0
|
|
5192
5192
|
}, Qt = ct;
|
|
5193
|
-
function
|
|
5193
|
+
function bn(e, t, n) {
|
|
5194
5194
|
if (e && typeof e == "object" && e instanceof oe)
|
|
5195
5195
|
return e;
|
|
5196
5196
|
var a = new oe();
|
|
@@ -5218,37 +5218,37 @@ oe.prototype.parse = function(e, t, n) {
|
|
|
5218
5218
|
p && !(c && Kt[c]) && (i = i.substr(2), this.slashes = !0);
|
|
5219
5219
|
}
|
|
5220
5220
|
if (!Kt[c] && (p || c && !Fe[c])) {
|
|
5221
|
-
for (var d = -1, m = 0; m <
|
|
5222
|
-
var h = i.indexOf(
|
|
5221
|
+
for (var d = -1, m = 0; m < lr.length; m++) {
|
|
5222
|
+
var h = i.indexOf(lr[m]);
|
|
5223
5223
|
h !== -1 && (d === -1 || h < d) && (d = h);
|
|
5224
5224
|
}
|
|
5225
|
-
var y,
|
|
5226
|
-
d === -1 ?
|
|
5227
|
-
for (var m = 0; m <
|
|
5228
|
-
var h = i.indexOf(
|
|
5225
|
+
var y, g;
|
|
5226
|
+
d === -1 ? g = i.lastIndexOf("@") : g = i.lastIndexOf("@", d), g !== -1 && (y = i.slice(0, g), i = i.slice(g + 1), this.auth = decodeURIComponent(y)), d = -1;
|
|
5227
|
+
for (var m = 0; m < sr.length; m++) {
|
|
5228
|
+
var h = i.indexOf(sr[m]);
|
|
5229
5229
|
h !== -1 && (d === -1 || h < d) && (d = h);
|
|
5230
5230
|
}
|
|
5231
5231
|
d === -1 && (d = i.length), this.host = i.slice(0, d), i = i.slice(d), this.parseHost(), this.hostname = this.hostname || "";
|
|
5232
|
-
var
|
|
5233
|
-
if (!
|
|
5234
|
-
for (var
|
|
5235
|
-
var w =
|
|
5236
|
-
if (w && !w.match(
|
|
5232
|
+
var b = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
5233
|
+
if (!b)
|
|
5234
|
+
for (var v = this.hostname.split(/\./), m = 0, x = v.length; m < x; m++) {
|
|
5235
|
+
var w = v[m];
|
|
5236
|
+
if (w && !w.match(cr)) {
|
|
5237
5237
|
for (var S = "", j = 0, k = w.length; j < k; j++)
|
|
5238
5238
|
w.charCodeAt(j) > 127 ? S += "x" : S += w[j];
|
|
5239
|
-
if (!S.match(
|
|
5240
|
-
var O =
|
|
5239
|
+
if (!S.match(cr)) {
|
|
5240
|
+
var O = v.slice(0, m), R = v.slice(m + 1), I = w.match(eu);
|
|
5241
5241
|
I && (O.push(I[1]), R.unshift(I[2])), R.length && (i = "/" + R.join(".") + i), this.hostname = O.join(".");
|
|
5242
5242
|
break;
|
|
5243
5243
|
}
|
|
5244
5244
|
}
|
|
5245
5245
|
}
|
|
5246
|
-
this.hostname.length > Zc ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(),
|
|
5246
|
+
this.hostname.length > Zc ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), b || (this.hostname = Jc.toASCII(this.hostname));
|
|
5247
5247
|
var V = this.port ? ":" + this.port : "", Q = this.hostname || "";
|
|
5248
|
-
this.host = Q + V, this.href += this.host,
|
|
5248
|
+
this.host = Q + V, this.href += this.host, b && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), i[0] !== "/" && (i = "/" + i));
|
|
5249
5249
|
}
|
|
5250
5250
|
if (!tu[u])
|
|
5251
|
-
for (var m = 0,
|
|
5251
|
+
for (var m = 0, x = Gt.length; m < x; m++) {
|
|
5252
5252
|
var q = Gt[m];
|
|
5253
5253
|
if (i.indexOf(q) !== -1) {
|
|
5254
5254
|
var L = encodeURIComponent(q);
|
|
@@ -5265,7 +5265,7 @@ oe.prototype.parse = function(e, t, n) {
|
|
|
5265
5265
|
return this.href = this.format(), this;
|
|
5266
5266
|
};
|
|
5267
5267
|
function nu(e) {
|
|
5268
|
-
return typeof e == "string" && (e =
|
|
5268
|
+
return typeof e == "string" && (e = bn(e)), e instanceof oe ? e.format() : oe.prototype.format.call(e);
|
|
5269
5269
|
}
|
|
5270
5270
|
oe.prototype.format = function() {
|
|
5271
5271
|
var e = this.auth || "";
|
|
@@ -5281,7 +5281,7 @@ oe.prototype.format = function() {
|
|
|
5281
5281
|
}), r = r.replace("#", "%23"), t + s + n + r + a;
|
|
5282
5282
|
};
|
|
5283
5283
|
oe.prototype.resolve = function(e) {
|
|
5284
|
-
return this.resolveObject(
|
|
5284
|
+
return this.resolveObject(bn(e, !1, !0)).format();
|
|
5285
5285
|
};
|
|
5286
5286
|
oe.prototype.resolveObject = function(e) {
|
|
5287
5287
|
if (typeof e == "string") {
|
|
@@ -5310,9 +5310,9 @@ oe.prototype.resolveObject = function(e) {
|
|
|
5310
5310
|
return n.href = n.format(), n;
|
|
5311
5311
|
}
|
|
5312
5312
|
if (n.protocol = e.protocol, !e.host && !Kt[e.protocol]) {
|
|
5313
|
-
for (var
|
|
5313
|
+
for (var x = (e.pathname || "").split("/"); x.length && !(e.host = x.shift()); )
|
|
5314
5314
|
;
|
|
5315
|
-
e.host || (e.host = ""), e.hostname || (e.hostname = ""),
|
|
5315
|
+
e.host || (e.host = ""), e.hostname || (e.hostname = ""), x[0] !== "" && x.unshift(""), x.length < 2 && x.unshift(""), n.pathname = x.join("/");
|
|
5316
5316
|
} else
|
|
5317
5317
|
n.pathname = e.pathname;
|
|
5318
5318
|
if (n.search = e.search, n.query = e.query, n.host = e.host || "", n.auth = e.auth, n.hostname = e.hostname || e.host, n.port = e.port, n.pathname || n.search) {
|
|
@@ -5321,40 +5321,40 @@ oe.prototype.resolveObject = function(e) {
|
|
|
5321
5321
|
}
|
|
5322
5322
|
return n.slashes = n.slashes || e.slashes, n.href = n.format(), n;
|
|
5323
5323
|
}
|
|
5324
|
-
var h = n.pathname && n.pathname.charAt(0) === "/", y = e.host || e.pathname && e.pathname.charAt(0) === "/",
|
|
5325
|
-
if (w && (n.hostname = "", n.port = null, n.host && (
|
|
5326
|
-
n.host = e.host || e.host === "" ? e.host : n.host, n.hostname = e.hostname || e.hostname === "" ? e.hostname : n.hostname, n.search = e.search, n.query = e.query,
|
|
5327
|
-
else if (
|
|
5328
|
-
|
|
5324
|
+
var h = n.pathname && n.pathname.charAt(0) === "/", y = e.host || e.pathname && e.pathname.charAt(0) === "/", g = y || h || n.host && e.pathname, b = g, v = n.pathname && n.pathname.split("/") || [], x = e.pathname && e.pathname.split("/") || [], w = n.protocol && !Fe[n.protocol];
|
|
5325
|
+
if (w && (n.hostname = "", n.port = null, n.host && (v[0] === "" ? v[0] = n.host : v.unshift(n.host)), n.host = "", e.protocol && (e.hostname = null, e.port = null, e.host && (x[0] === "" ? x[0] = e.host : x.unshift(e.host)), e.host = null), g = g && (x[0] === "" || v[0] === "")), y)
|
|
5326
|
+
n.host = e.host || e.host === "" ? e.host : n.host, n.hostname = e.hostname || e.hostname === "" ? e.hostname : n.hostname, n.search = e.search, n.query = e.query, v = x;
|
|
5327
|
+
else if (x.length)
|
|
5328
|
+
v || (v = []), v.pop(), v = v.concat(x), n.search = e.search, n.query = e.query;
|
|
5329
5329
|
else if (e.search != null) {
|
|
5330
5330
|
if (w) {
|
|
5331
|
-
n.host =
|
|
5331
|
+
n.host = v.shift(), n.hostname = n.host;
|
|
5332
5332
|
var S = n.host && n.host.indexOf("@") > 0 ? n.host.split("@") : !1;
|
|
5333
5333
|
S && (n.auth = S.shift(), n.hostname = S.shift(), n.host = n.hostname);
|
|
5334
5334
|
}
|
|
5335
5335
|
return n.search = e.search, n.query = e.query, (n.pathname !== null || n.search !== null) && (n.path = (n.pathname ? n.pathname : "") + (n.search ? n.search : "")), n.href = n.format(), n;
|
|
5336
5336
|
}
|
|
5337
|
-
if (!
|
|
5337
|
+
if (!v.length)
|
|
5338
5338
|
return n.pathname = null, n.search ? n.path = "/" + n.search : n.path = null, n.href = n.format(), n;
|
|
5339
|
-
for (var j =
|
|
5340
|
-
j =
|
|
5341
|
-
if (!
|
|
5339
|
+
for (var j = v.slice(-1)[0], k = (n.host || e.host || v.length > 1) && (j === "." || j === "..") || j === "", O = 0, R = v.length; R >= 0; R--)
|
|
5340
|
+
j = v[R], j === "." ? v.splice(R, 1) : j === ".." ? (v.splice(R, 1), O++) : O && (v.splice(R, 1), O--);
|
|
5341
|
+
if (!g && !b)
|
|
5342
5342
|
for (; O--; O)
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
var I =
|
|
5343
|
+
v.unshift("..");
|
|
5344
|
+
g && v[0] !== "" && (!v[0] || v[0].charAt(0) !== "/") && v.unshift(""), k && v.join("/").substr(-1) !== "/" && v.push("");
|
|
5345
|
+
var I = v[0] === "" || v[0] && v[0].charAt(0) === "/";
|
|
5346
5346
|
if (w) {
|
|
5347
|
-
n.hostname = I ? "" :
|
|
5347
|
+
n.hostname = I ? "" : v.length ? v.shift() : "", n.host = n.hostname;
|
|
5348
5348
|
var S = n.host && n.host.indexOf("@") > 0 ? n.host.split("@") : !1;
|
|
5349
5349
|
S && (n.auth = S.shift(), n.hostname = S.shift(), n.host = n.hostname);
|
|
5350
5350
|
}
|
|
5351
|
-
return
|
|
5351
|
+
return g = g || n.host && v.length, g && !I && v.unshift(""), v.length > 0 ? n.pathname = v.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;
|
|
5352
5352
|
};
|
|
5353
5353
|
oe.prototype.parseHost = function() {
|
|
5354
5354
|
var e = this.host, t = Kc.exec(e);
|
|
5355
5355
|
t && (t = t[0], t !== ":" && (this.port = t.substr(1)), e = e.substr(0, e.length - t.length)), e && (this.hostname = e);
|
|
5356
5356
|
};
|
|
5357
|
-
var ru =
|
|
5357
|
+
var ru = bn, ur = nu, au = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), ou = class {
|
|
5358
5358
|
constructor(e, t = {}) {
|
|
5359
5359
|
this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
|
|
5360
5360
|
harIsAlreadyEncoded: !1,
|
|
@@ -5394,13 +5394,13 @@ var ru = gn, lr = nu, au = (e) => typeof e == "object" && "log" in e && typeof e
|
|
|
5394
5394
|
cookiesObj: {},
|
|
5395
5395
|
allHeaders: {}
|
|
5396
5396
|
};
|
|
5397
|
-
if (n.queryString && n.queryString.length && (n.queryObj = n.queryString.reduce(
|
|
5397
|
+
if (n.queryString && n.queryString.length && (n.queryObj = n.queryString.reduce(Tn, {})), n.headers && n.headers.length) {
|
|
5398
5398
|
const m = /^HTTP\/2/;
|
|
5399
|
-
n.headersObj = n.headers.reduce((h, { name: y, value:
|
|
5400
|
-
const
|
|
5399
|
+
n.headersObj = n.headers.reduce((h, { name: y, value: g }) => {
|
|
5400
|
+
const b = m.exec(n.httpVersion) ? y.toLocaleLowerCase() : y;
|
|
5401
5401
|
return {
|
|
5402
5402
|
...h,
|
|
5403
|
-
[
|
|
5403
|
+
[b]: g
|
|
5404
5404
|
};
|
|
5405
5405
|
}, {});
|
|
5406
5406
|
}
|
|
@@ -5419,20 +5419,20 @@ var ru = gn, lr = nu, au = (e) => typeof e == "object" && "log" in e && typeof e
|
|
|
5419
5419
|
case "multipart/alternative":
|
|
5420
5420
|
if (n.postData.text = "", n.postData.mimeType = "multipart/form-data", (p = n.postData) != null && p.params) {
|
|
5421
5421
|
const m = "---011000010111000001101001", h = `${m}--`, y = `\r
|
|
5422
|
-
`,
|
|
5423
|
-
`),
|
|
5422
|
+
`, g = (w) => w.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), b = (w) => w.replace(/\r?\n|\r/g, `\r
|
|
5423
|
+
`), v = [`--${m}`];
|
|
5424
5424
|
(d = n.postData) == null || d.params.forEach((w, S) => {
|
|
5425
5425
|
const j = w.name, k = w.value || "", O = w.fileName || null, R = w.contentType || "application/octet-stream";
|
|
5426
|
-
O ? (
|
|
5427
|
-
`Content-Disposition: form-data; name="${
|
|
5428
|
-
),
|
|
5429
|
-
}),
|
|
5430
|
-
const
|
|
5431
|
-
n.headersObj[
|
|
5426
|
+
O ? (v.push(
|
|
5427
|
+
`Content-Disposition: form-data; name="${g(b(j))}"; filename="${O}"`
|
|
5428
|
+
), v.push(`Content-Type: ${R}`)) : v.push(`Content-Disposition: form-data; name="${g(b(j))}"`), v.push(""), v.push(b(k)), S !== n.postData.params.length - 1 && v.push(`--${m}`);
|
|
5429
|
+
}), v.push(`--${h}`), n.postData.boundary = m, n.postData.text = v.join(y);
|
|
5430
|
+
const x = X(n.headersObj, "content-type") || "content-type";
|
|
5431
|
+
n.headersObj[x] = `multipart/form-data; boundary=${m}`;
|
|
5432
5432
|
}
|
|
5433
5433
|
break;
|
|
5434
5434
|
case "application/x-www-form-urlencoded":
|
|
5435
|
-
n.postData.params ? (n.postData.paramsObj = n.postData.params.reduce(
|
|
5435
|
+
n.postData.params ? (n.postData.paramsObj = n.postData.params.reduce(Tn, {}), n.postData.text = ct.stringify(n.postData.paramsObj)) : n.postData.text = "";
|
|
5436
5436
|
break;
|
|
5437
5437
|
case "text/json":
|
|
5438
5438
|
case "text/x-json":
|
|
@@ -5466,11 +5466,11 @@ var ru = gn, lr = nu, au = (e) => typeof e == "object" && "log" in e && typeof e
|
|
|
5466
5466
|
query: n.queryObj,
|
|
5467
5467
|
search: r,
|
|
5468
5468
|
path: r ? `${o.pathname}?${r}` : o.pathname
|
|
5469
|
-
}, l =
|
|
5469
|
+
}, l = ur({
|
|
5470
5470
|
...o,
|
|
5471
5471
|
query: null,
|
|
5472
5472
|
search: null
|
|
5473
|
-
}), c =
|
|
5473
|
+
}), c = ur({
|
|
5474
5474
|
...o,
|
|
5475
5475
|
...i
|
|
5476
5476
|
});
|
|
@@ -5491,10 +5491,10 @@ var ru = gn, lr = nu, au = (e) => typeof e == "object" && "log" in e && typeof e
|
|
|
5491
5491
|
return this.requests.map((r) => s(r, n));
|
|
5492
5492
|
}
|
|
5493
5493
|
};
|
|
5494
|
-
const
|
|
5494
|
+
const Oa = fo(
|
|
5495
5495
|
void 0
|
|
5496
|
-
), qu =
|
|
5497
|
-
const e =
|
|
5496
|
+
), qu = Oa.Provider, iu = () => {
|
|
5497
|
+
const e = po(Oa);
|
|
5498
5498
|
if (!e)
|
|
5499
5499
|
throw new Error("useOasConfig must be used within a OasConfigProvider");
|
|
5500
5500
|
return e.config;
|
|
@@ -5515,7 +5515,7 @@ const Ta = uo(
|
|
|
5515
5515
|
isRequired: l.required ?? !1
|
|
5516
5516
|
})), s = (i = t.parameters) == null ? void 0 : i.filter((l) => l.in === "path").map((l) => ({ name: l.name }));
|
|
5517
5517
|
return /* @__PURE__ */ f.jsx(
|
|
5518
|
-
|
|
5518
|
+
aa,
|
|
5519
5519
|
{
|
|
5520
5520
|
server: e,
|
|
5521
5521
|
method: t.method,
|
|
@@ -5525,7 +5525,7 @@ const Ta = uo(
|
|
|
5525
5525
|
pathParams: s
|
|
5526
5526
|
}
|
|
5527
5527
|
);
|
|
5528
|
-
},
|
|
5528
|
+
}, xn = ({ children: e, className: t }) => /* @__PURE__ */ f.jsx(
|
|
5529
5529
|
"div",
|
|
5530
5530
|
{
|
|
5531
5531
|
className: A(
|
|
@@ -5534,7 +5534,7 @@ const Ta = uo(
|
|
|
5534
5534
|
),
|
|
5535
5535
|
children: e
|
|
5536
5536
|
}
|
|
5537
|
-
),
|
|
5537
|
+
), kn = ({ children: e, className: t }) => /* @__PURE__ */ f.jsx(
|
|
5538
5538
|
"div",
|
|
5539
5539
|
{
|
|
5540
5540
|
className: A(
|
|
@@ -5543,13 +5543,13 @@ const Ta = uo(
|
|
|
5543
5543
|
),
|
|
5544
5544
|
children: e
|
|
5545
5545
|
}
|
|
5546
|
-
),
|
|
5546
|
+
), $n = ({ children: e, className: t }) => /* @__PURE__ */ f.jsx(
|
|
5547
5547
|
"div",
|
|
5548
5548
|
{
|
|
5549
5549
|
className: A("bg-zinc-50 dark:bg-zinc-800 overflow-auto p-2", t),
|
|
5550
5550
|
children: e
|
|
5551
5551
|
}
|
|
5552
|
-
),
|
|
5552
|
+
), Ca = ({ children: e, className: t }) => /* @__PURE__ */ f.jsx(
|
|
5553
5553
|
"div",
|
|
5554
5554
|
{
|
|
5555
5555
|
className: A(
|
|
@@ -5576,9 +5576,9 @@ function cu(e, t) {
|
|
|
5576
5576
|
}
|
|
5577
5577
|
const uu = ({ content: e }) => {
|
|
5578
5578
|
var t;
|
|
5579
|
-
return e.length ? /* @__PURE__ */ f.jsx(f.Fragment, { children: /* @__PURE__ */ f.jsxs(
|
|
5580
|
-
/* @__PURE__ */ f.jsx(
|
|
5581
|
-
/* @__PURE__ */ f.jsx(
|
|
5579
|
+
return e.length ? /* @__PURE__ */ f.jsx(f.Fragment, { children: /* @__PURE__ */ f.jsxs(xn, { children: [
|
|
5580
|
+
/* @__PURE__ */ f.jsx(kn, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ f.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
|
|
5581
|
+
/* @__PURE__ */ f.jsx($n, { children: /* @__PURE__ */ f.jsx(
|
|
5582
5582
|
Qe,
|
|
5583
5583
|
{
|
|
5584
5584
|
language: "json",
|
|
@@ -5594,37 +5594,53 @@ const uu = ({ content: e }) => {
|
|
|
5594
5594
|
) })
|
|
5595
5595
|
] }) }) : null;
|
|
5596
5596
|
}, du = ({
|
|
5597
|
-
responses: e
|
|
5597
|
+
responses: e,
|
|
5598
|
+
selectedResponse: t,
|
|
5599
|
+
onSelectResponse: n
|
|
5598
5600
|
}) => {
|
|
5599
|
-
var
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
className:
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5601
|
+
var a;
|
|
5602
|
+
return /* @__PURE__ */ f.jsx(xn, { children: /* @__PURE__ */ f.jsxs(
|
|
5603
|
+
na,
|
|
5604
|
+
{
|
|
5605
|
+
defaultValue: (a = e[0]) == null ? void 0 : a.statusCode,
|
|
5606
|
+
value: t,
|
|
5607
|
+
onValueChange: (s) => n(s),
|
|
5608
|
+
children: [
|
|
5609
|
+
/* @__PURE__ */ f.jsxs(kn, { className: "text-xs flex flex-col gap-2 pb-0", children: [
|
|
5610
|
+
/* @__PURE__ */ f.jsx("span", { className: "font-mono", children: "Example Responses" }),
|
|
5611
|
+
/* @__PURE__ */ f.jsx(sn, { className: "flex gap-2", children: e.map((s) => /* @__PURE__ */ f.jsx(
|
|
5612
|
+
ln,
|
|
5613
|
+
{
|
|
5614
|
+
value: s.statusCode,
|
|
5615
|
+
className: A(
|
|
5616
|
+
"text-xs font-mono px-1.5 py-1 pb-px translate-y-px border-b-2 border-transparent rounded-t cursor-pointer",
|
|
5617
|
+
"data-[state=active]:text-primary data-[state=active]:dark:text-inherit data-[state=active]:border-primary",
|
|
5618
|
+
"hover:border-accent-foreground/25"
|
|
5619
|
+
),
|
|
5620
|
+
children: s.statusCode
|
|
5621
|
+
},
|
|
5622
|
+
s.statusCode
|
|
5623
|
+
)) })
|
|
5624
|
+
] }),
|
|
5625
|
+
e.map((s) => {
|
|
5626
|
+
var r, i;
|
|
5627
|
+
const o = (i = (r = s.content) == null ? void 0 : r[0]) == null ? void 0 : i.schema;
|
|
5628
|
+
return /* @__PURE__ */ f.jsxs(cn, { value: s.statusCode, children: [
|
|
5629
|
+
/* @__PURE__ */ f.jsx($n, { children: o ? /* @__PURE__ */ f.jsx(
|
|
5630
|
+
Qe,
|
|
5631
|
+
{
|
|
5632
|
+
language: "json",
|
|
5633
|
+
noBackground: !0,
|
|
5634
|
+
className: "text-xs",
|
|
5635
|
+
code: JSON.stringify(Ge(o), null, 2)
|
|
5636
|
+
}
|
|
5637
|
+
) : /* @__PURE__ */ f.jsx("span", { className: "text-muted-foreground font-mono italic text-xs", children: "Empty Response" }) }),
|
|
5638
|
+
/* @__PURE__ */ f.jsx(Ca, { className: "flex justify-end text-xs", children: s.description })
|
|
5639
|
+
] }, s.statusCode);
|
|
5640
|
+
})
|
|
5641
|
+
]
|
|
5642
|
+
}
|
|
5643
|
+
) });
|
|
5628
5644
|
}, fu = (e, t) => {
|
|
5629
5645
|
let n;
|
|
5630
5646
|
switch (t) {
|
|
@@ -5666,7 +5682,7 @@ const uu = ({ content: e }) => {
|
|
|
5666
5682
|
break;
|
|
5667
5683
|
}
|
|
5668
5684
|
return n ? n[0] : "";
|
|
5669
|
-
},
|
|
5685
|
+
}, Pa = $r(
|
|
5670
5686
|
/* GraphQL */
|
|
5671
5687
|
`
|
|
5672
5688
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
@@ -5685,76 +5701,81 @@ const uu = ({ content: e }) => {
|
|
|
5685
5701
|
head: pe.gray,
|
|
5686
5702
|
trace: pe.gray
|
|
5687
5703
|
}, Iu = ({
|
|
5688
|
-
operation: e
|
|
5704
|
+
operation: e,
|
|
5705
|
+
selectedResponse: t,
|
|
5706
|
+
onSelectResponse: n
|
|
5689
5707
|
}) => {
|
|
5690
|
-
var
|
|
5691
|
-
const
|
|
5692
|
-
query:
|
|
5693
|
-
variables:
|
|
5708
|
+
var m, h;
|
|
5709
|
+
const a = iu(), [s] = Ea({
|
|
5710
|
+
query: Pa,
|
|
5711
|
+
variables: a,
|
|
5694
5712
|
context: pu
|
|
5695
|
-
}),
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
{
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5713
|
+
}), o = mu[e.method.toLocaleLowerCase()] ?? pe.gray, [r, i] = Ga(), [, l] = mo(), c = r.get("lang") ?? "shell", u = (m = e.requestBody) == null ? void 0 : m.content, p = e.path.split("/").map((y, g, b) => (
|
|
5714
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
5715
|
+
/* @__PURE__ */ f.jsxs(at, { children: [
|
|
5716
|
+
y.startsWith("{") && y.endsWith("}") ? /* @__PURE__ */ f.jsx(
|
|
5717
|
+
un,
|
|
5718
|
+
{
|
|
5719
|
+
name: y.slice(1, -1),
|
|
5720
|
+
backgroundOpacity: "0",
|
|
5721
|
+
slug: e.slug + "-" + y.slice(1, -1).toLocaleLowerCase(),
|
|
5722
|
+
children: y
|
|
5723
|
+
}
|
|
5724
|
+
) : y,
|
|
5725
|
+
g < b.length - 1 ? "/" : null,
|
|
5726
|
+
/* @__PURE__ */ f.jsx("wbr", {})
|
|
5727
|
+
] }, y + g)
|
|
5728
|
+
)), d = ho(() => {
|
|
5729
|
+
var b;
|
|
5730
|
+
const y = (b = u == null ? void 0 : u[0]) != null && b.schema ? Ge(u[0].schema) : void 0, g = new ou(
|
|
5710
5731
|
{
|
|
5711
5732
|
method: e.method.toLocaleUpperCase(),
|
|
5712
5733
|
url: e.path.replaceAll("{", ":").replaceAll("}", ""),
|
|
5713
5734
|
headers: [{ name: "Authorization", value: "Bearer <token>" }],
|
|
5714
|
-
postData:
|
|
5715
|
-
text: JSON.stringify(
|
|
5735
|
+
postData: y ? {
|
|
5736
|
+
text: JSON.stringify(y, null, 2),
|
|
5716
5737
|
mimeType: "application/json"
|
|
5717
5738
|
} : {}
|
|
5718
5739
|
}
|
|
5719
5740
|
// 👈 never touch this
|
|
5720
5741
|
);
|
|
5721
|
-
return fu(
|
|
5722
|
-
}, [
|
|
5742
|
+
return fu(g, c);
|
|
5743
|
+
}, [c, e.method, e.path, u]);
|
|
5723
5744
|
return /* @__PURE__ */ f.jsxs("aside", { className: "flex flex-col overflow-hidden sticky top-[--scroll-padding] gap-4", children: [
|
|
5724
|
-
/* @__PURE__ */ f.jsxs(
|
|
5725
|
-
/* @__PURE__ */ f.jsxs(
|
|
5745
|
+
/* @__PURE__ */ f.jsxs(xn, { children: [
|
|
5746
|
+
/* @__PURE__ */ f.jsxs(kn, { className: "flex justify-between items-center flex-nowrap py-3 gap-2 text-xs", children: [
|
|
5726
5747
|
/* @__PURE__ */ f.jsxs("span", { className: "font-mono break-words", children: [
|
|
5727
|
-
/* @__PURE__ */ f.jsx("span", { className: A("font-semibold",
|
|
5748
|
+
/* @__PURE__ */ f.jsx("span", { className: A("font-semibold", o), children: e.method.toLocaleUpperCase() }),
|
|
5728
5749
|
" ",
|
|
5729
|
-
|
|
5750
|
+
p
|
|
5730
5751
|
] }),
|
|
5731
5752
|
/* @__PURE__ */ f.jsx(
|
|
5732
5753
|
su,
|
|
5733
5754
|
{
|
|
5734
|
-
server: ((
|
|
5755
|
+
server: ((h = s.data) == null ? void 0 : h.schema.url) ?? "",
|
|
5735
5756
|
operation: e
|
|
5736
5757
|
}
|
|
5737
5758
|
)
|
|
5738
5759
|
] }),
|
|
5739
|
-
/* @__PURE__ */ f.jsx(
|
|
5760
|
+
/* @__PURE__ */ f.jsx($n, { children: /* @__PURE__ */ f.jsx(
|
|
5740
5761
|
Qe,
|
|
5741
5762
|
{
|
|
5742
|
-
language:
|
|
5763
|
+
language: c,
|
|
5743
5764
|
noBackground: !0,
|
|
5744
5765
|
className: "text-xs",
|
|
5745
|
-
code:
|
|
5766
|
+
code: d
|
|
5746
5767
|
}
|
|
5747
5768
|
) }),
|
|
5748
|
-
/* @__PURE__ */ f.jsxs(
|
|
5769
|
+
/* @__PURE__ */ f.jsxs(Ca, { className: "flex items-center text-xs gap-2 justify-end py-1", children: [
|
|
5749
5770
|
/* @__PURE__ */ f.jsx("span", { children: "Show example in" }),
|
|
5750
5771
|
/* @__PURE__ */ f.jsx(
|
|
5751
|
-
|
|
5772
|
+
ra,
|
|
5752
5773
|
{
|
|
5753
5774
|
className: "self-start max-w-[150px]",
|
|
5754
|
-
value:
|
|
5755
|
-
onChange: (
|
|
5756
|
-
|
|
5757
|
-
|
|
5775
|
+
value: c,
|
|
5776
|
+
onChange: (y) => {
|
|
5777
|
+
l(() => {
|
|
5778
|
+
i({ lang: y.target.value });
|
|
5758
5779
|
});
|
|
5759
5780
|
},
|
|
5760
5781
|
options: [
|
|
@@ -5774,10 +5795,17 @@ const uu = ({ content: e }) => {
|
|
|
5774
5795
|
)
|
|
5775
5796
|
] })
|
|
5776
5797
|
] }),
|
|
5777
|
-
|
|
5778
|
-
e.responses.length > 0 && /* @__PURE__ */ f.jsx(
|
|
5798
|
+
u && /* @__PURE__ */ f.jsx(uu, { content: u }),
|
|
5799
|
+
e.responses.length > 0 && /* @__PURE__ */ f.jsx(
|
|
5800
|
+
du,
|
|
5801
|
+
{
|
|
5802
|
+
selectedResponse: t,
|
|
5803
|
+
onSelectResponse: n,
|
|
5804
|
+
responses: e.responses
|
|
5805
|
+
}
|
|
5806
|
+
)
|
|
5779
5807
|
] });
|
|
5780
|
-
}, hu =
|
|
5808
|
+
}, hu = $r(`
|
|
5781
5809
|
query GetCategories($input: JSON!, $type: SchemaType!) {
|
|
5782
5810
|
schema(input: $input, type: $type) {
|
|
5783
5811
|
tags {
|
|
@@ -5796,8 +5824,8 @@ const uu = ({ content: e }) => {
|
|
|
5796
5824
|
}
|
|
5797
5825
|
}
|
|
5798
5826
|
`), yu = () => {
|
|
5799
|
-
const e =
|
|
5800
|
-
return /* @__PURE__ */ f.jsx(
|
|
5827
|
+
const e = Ka(), t = e instanceof Error ? /* @__PURE__ */ f.jsx(Qe, { code: e.message }) : "An unknown error occurred";
|
|
5828
|
+
return /* @__PURE__ */ f.jsx(Oo, { category: "Error", title: "An error occurred", message: t });
|
|
5801
5829
|
}, gu = {
|
|
5802
5830
|
get: "green",
|
|
5803
5831
|
post: "blue",
|
|
@@ -5807,10 +5835,10 @@ const uu = ({ content: e }) => {
|
|
|
5807
5835
|
options: "gray",
|
|
5808
5836
|
head: "gray"
|
|
5809
5837
|
}, _u = (e) => {
|
|
5810
|
-
const t =
|
|
5838
|
+
const t = to(e.navigationId ?? "/reference"), n = e.server ? new Ra({
|
|
5811
5839
|
url: e.server,
|
|
5812
|
-
exchanges: [
|
|
5813
|
-
}) :
|
|
5840
|
+
exchanges: [Aa, Fa]
|
|
5841
|
+
}) : _a({ useMemoryClient: e.inMemory ?? !1 });
|
|
5814
5842
|
return {
|
|
5815
5843
|
getHead: () => {
|
|
5816
5844
|
if (e.type === "url" && !e.skipPreload)
|
|
@@ -5835,8 +5863,8 @@ const uu = ({ content: e }) => {
|
|
|
5835
5863
|
...i
|
|
5836
5864
|
}) => {
|
|
5837
5865
|
var u;
|
|
5838
|
-
const l =
|
|
5839
|
-
queryFn: async () => (await n.query(
|
|
5866
|
+
const l = Wa(), c = Ia({
|
|
5867
|
+
queryFn: async () => (await n.query(Pa, {
|
|
5840
5868
|
type: e.type,
|
|
5841
5869
|
input: e.input
|
|
5842
5870
|
})).data,
|
|
@@ -5851,11 +5879,11 @@ const uu = ({ content: e }) => {
|
|
|
5851
5879
|
onClick: l.login,
|
|
5852
5880
|
children: [
|
|
5853
5881
|
"Login to open in Playground ",
|
|
5854
|
-
/* @__PURE__ */ f.jsx(
|
|
5882
|
+
/* @__PURE__ */ f.jsx($o, { size: 16 })
|
|
5855
5883
|
]
|
|
5856
5884
|
}
|
|
5857
5885
|
) : /* @__PURE__ */ f.jsx(
|
|
5858
|
-
|
|
5886
|
+
aa,
|
|
5859
5887
|
{
|
|
5860
5888
|
url: r ?? "/",
|
|
5861
5889
|
method: o ?? "get",
|
|
@@ -5863,14 +5891,14 @@ const uu = ({ content: e }) => {
|
|
|
5863
5891
|
...i,
|
|
5864
5892
|
children: /* @__PURE__ */ f.jsxs(qe, { className: "gap-2 items-center", variant: "outline", children: [
|
|
5865
5893
|
"Open in Playground ",
|
|
5866
|
-
/* @__PURE__ */ f.jsx(
|
|
5894
|
+
/* @__PURE__ */ f.jsx(br, { size: 16 })
|
|
5867
5895
|
] })
|
|
5868
5896
|
}
|
|
5869
5897
|
);
|
|
5870
5898
|
}
|
|
5871
5899
|
}),
|
|
5872
5900
|
getSidebar: async (a) => {
|
|
5873
|
-
if (!
|
|
5901
|
+
if (!xo({ path: t, end: !1 }, a))
|
|
5874
5902
|
return [];
|
|
5875
5903
|
const { data: s } = await n.query(hu, {
|
|
5876
5904
|
input: e.input,
|
|
@@ -5901,7 +5929,7 @@ const uu = ({ content: e }) => {
|
|
|
5901
5929
|
getRoutes: () => [
|
|
5902
5930
|
{
|
|
5903
5931
|
async lazy() {
|
|
5904
|
-
const { OpenApiRoute: a } = await import("./Route-
|
|
5932
|
+
const { OpenApiRoute: a } = await import("./Route-CL9hUSJ2.js");
|
|
5905
5933
|
return {
|
|
5906
5934
|
element: /* @__PURE__ */ f.jsx(a, { client: n, config: e })
|
|
5907
5935
|
};
|
|
@@ -5914,7 +5942,7 @@ const uu = ({ content: e }) => {
|
|
|
5914
5942
|
{
|
|
5915
5943
|
index: !0,
|
|
5916
5944
|
async lazy() {
|
|
5917
|
-
const { OperationList: a } = await import("./OperationList-
|
|
5945
|
+
const { OperationList: a } = await import("./OperationList-MFaKgMyg.js");
|
|
5918
5946
|
return { element: /* @__PURE__ */ f.jsx(a, {}) };
|
|
5919
5947
|
}
|
|
5920
5948
|
}
|
|
@@ -5926,17 +5954,20 @@ const uu = ({ content: e }) => {
|
|
|
5926
5954
|
};
|
|
5927
5955
|
};
|
|
5928
5956
|
export {
|
|
5929
|
-
|
|
5930
|
-
|
|
5957
|
+
un as C,
|
|
5958
|
+
Oo as E,
|
|
5931
5959
|
qu as O,
|
|
5932
5960
|
Iu as S,
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5961
|
+
Nn as T,
|
|
5962
|
+
rn as a,
|
|
5963
|
+
Go as b,
|
|
5964
|
+
zo as c,
|
|
5965
|
+
Wo as d,
|
|
5966
|
+
_t as e,
|
|
5967
|
+
Ce as f,
|
|
5968
|
+
Pe as g,
|
|
5969
|
+
$r as h,
|
|
5939
5970
|
_u as o,
|
|
5940
5971
|
iu as u
|
|
5941
5972
|
};
|
|
5942
|
-
//# sourceMappingURL=index-
|
|
5973
|
+
//# sourceMappingURL=index-Bf5yypxf.js.map
|