zudoku 0.65.3 → 0.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/sentry.js +1 -1
- package/dist/config/validators/BuildSchema.js +18 -3
- package/dist/config/validators/BuildSchema.js.map +1 -1
- package/dist/config/validators/validate.d.ts +45 -3
- package/dist/config/validators/validate.js +7 -1
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/flat-config.d.ts +9 -2
- package/dist/lib/components/Mermaid.d.ts +7 -0
- package/dist/lib/components/Mermaid.js +42 -0
- package/dist/lib/components/Mermaid.js.map +1 -0
- package/dist/lib/components/PagefindSearchMeta.d.ts +8 -0
- package/dist/lib/components/PagefindSearchMeta.js +7 -0
- package/dist/lib/components/PagefindSearchMeta.js.map +1 -0
- package/dist/lib/components/Zudoku.js +2 -5
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/core/RouteGuard.js +1 -1
- package/dist/lib/core/RouteGuard.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +3 -3
- package/dist/lib/oas/parser/index.d.ts +1 -0
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/plugins/openapi/DownloadSchemaButton.d.ts +3 -0
- package/dist/lib/plugins/openapi/DownloadSchemaButton.js +47 -0
- package/dist/lib/plugins/openapi/DownloadSchemaButton.js.map +1 -0
- package/dist/lib/plugins/openapi/Endpoint.js +3 -6
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OasProvider.js +22 -13
- package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +12 -6
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +2 -2
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.js +2 -1
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +11 -5
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +16 -13
- package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js +14 -6
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.d.ts +2 -2
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.d.ts +6 -1
- package/dist/lib/plugins/openapi/util/getRoutes.js +29 -2
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/IndexingDialog.d.ts +3 -0
- package/dist/lib/plugins/search-pagefind/IndexingDialog.js +64 -0
- package/dist/lib/plugins/search-pagefind/IndexingDialog.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +22 -5
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.js +5 -4
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
- package/dist/lib/shiki.d.ts +1 -1
- package/dist/lib/shiki.js +18 -12
- package/dist/lib/shiki.js.map +1 -1
- package/dist/lib/ui/Button.d.ts +2 -2
- package/dist/lib/ui/Button.js +9 -8
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/ButtonGroup.d.ts +11 -0
- package/dist/lib/ui/ButtonGroup.js +28 -0
- package/dist/lib/ui/ButtonGroup.js.map +1 -0
- package/dist/lib/ui/Command.js +2 -2
- package/dist/lib/ui/Command.js.map +1 -1
- package/dist/lib/ui/DropdownMenu.d.ts +21 -23
- package/dist/lib/ui/DropdownMenu.js +47 -32
- package/dist/lib/ui/DropdownMenu.js.map +1 -1
- package/dist/lib/ui/Kbd.d.ts +3 -0
- package/dist/lib/ui/Kbd.js +10 -0
- package/dist/lib/ui/Kbd.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +1 -0
- package/dist/lib/util/MdxComponents.js +2 -0
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/flattenAllOf.js +27 -4
- package/dist/lib/util/flattenAllOf.js.map +1 -1
- package/dist/lib/util/flattenAllOf.test.js +67 -12
- package/dist/lib/util/flattenAllOf.test.js.map +1 -1
- package/dist/vite/api/SchemaManager.d.ts +5 -0
- package/dist/vite/api/SchemaManager.js +24 -0
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/api/SchemaManager.test.js +67 -0
- package/dist/vite/api/SchemaManager.test.js.map +1 -1
- package/dist/vite/config.js +8 -2
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/dev-server.js +25 -0
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/pagefind-dev-index.d.ts +16 -0
- package/dist/vite/pagefind-dev-index.js +68 -0
- package/dist/vite/pagefind-dev-index.js.map +1 -0
- package/dist/vite/plugin-api.js +41 -3
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/prerender/prerender.js +1 -19
- package/dist/vite/prerender/prerender.js.map +1 -1
- package/dist/vite/prerender/utils.d.ts +2 -0
- package/dist/vite/prerender/utils.js +24 -0
- package/dist/vite/prerender/utils.js.map +1 -0
- package/lib/Button-CynVW1JV.js +53 -0
- package/lib/Button-CynVW1JV.js.map +1 -0
- package/lib/ClaudeLogo-PxFjou9w.js +69 -0
- package/lib/ClaudeLogo-PxFjou9w.js.map +1 -0
- package/lib/{Command-CUcrW3qs.js → Command-BpT1iBE6.js} +25 -25
- package/lib/Command-BpT1iBE6.js.map +1 -0
- package/lib/Drawer-Ci7XwhqT.js.map +1 -1
- package/lib/DropdownMenu-C8SX_-S_.js +104 -0
- package/lib/DropdownMenu-C8SX_-S_.js.map +1 -0
- package/lib/{ErrorAlert-D5LKLFOd.js → ErrorAlert-BqjbNHIn.js} +1017 -1015
- package/lib/{ErrorAlert-D5LKLFOd.js.map → ErrorAlert-BqjbNHIn.js.map} +1 -1
- package/lib/IndexingDialog-B5zCiUKr.js +100 -0
- package/lib/IndexingDialog-B5zCiUKr.js.map +1 -0
- package/lib/MdxPage-CVFatbHw.js +210 -0
- package/lib/MdxPage-CVFatbHw.js.map +1 -0
- package/lib/Mermaid-CIFixY6C.js +102 -0
- package/lib/Mermaid-CIFixY6C.js.map +1 -0
- package/lib/{OAuthErrorPage-oXnxcJg4.js → OAuthErrorPage-Dup79DJk.js} +7 -7
- package/lib/{OAuthErrorPage-oXnxcJg4.js.map → OAuthErrorPage-Dup79DJk.js.map} +1 -1
- package/lib/OasProvider-BJeMq29o.js +40 -0
- package/lib/OasProvider-BJeMq29o.js.map +1 -0
- package/lib/{OperationList-CmMoKpGu.js → OperationList-ff3ZvQsO.js} +1701 -1585
- package/lib/OperationList-ff3ZvQsO.js.map +1 -0
- package/lib/{RouteGuard-Brz95MSt.js → RouteGuard-BXy13JSz.js} +19 -19
- package/lib/{RouteGuard-Brz95MSt.js.map → RouteGuard-BXy13JSz.js.map} +1 -1
- package/lib/{RouterError-VGZB_wg4.js → RouterError-CKOZTsDD.js} +3 -3
- package/lib/{RouterError-VGZB_wg4.js.map → RouterError-CKOZTsDD.js.map} +1 -1
- package/lib/{SchemaList-BykD27ga.js → SchemaList-BSC1KM3v.js} +28 -27
- package/lib/SchemaList-BSC1KM3v.js.map +1 -0
- package/lib/{SchemaView-Dt6hbCAt.js → SchemaView-CgwJ9gtb.js} +198 -187
- package/lib/SchemaView-CgwJ9gtb.js.map +1 -0
- package/lib/Select-VmDZ-nKe.js +337 -0
- package/lib/Select-VmDZ-nKe.js.map +1 -0
- package/lib/{SignUp-D2mmQOkg.js → SignUp-Pm_LGm6T.js} +13 -13
- package/lib/{SignUp-D2mmQOkg.js.map → SignUp-Pm_LGm6T.js.map} +1 -1
- package/lib/{SyntaxHighlight-C19vH0V_.js → SyntaxHighlight-bkmst3oV.js} +654 -622
- package/lib/SyntaxHighlight-bkmst3oV.js.map +1 -0
- package/lib/{Toc-CBWfFCVf.js → Toc-TUXNFbKl.js} +2 -2
- package/lib/{Toc-CBWfFCVf.js.map → Toc-TUXNFbKl.js.map} +1 -1
- package/lib/{ZudokuContext-BUZ5hkWB.js → ZudokuContext-np1wheDl.js} +8 -8
- package/lib/{ZudokuContext-BUZ5hkWB.js.map → ZudokuContext-np1wheDl.js.map} +1 -1
- package/lib/___vite-browser-external_commonjs-proxy-Cga3HsWk.js +9 -0
- package/lib/___vite-browser-external_commonjs-proxy-Cga3HsWk.js.map +1 -0
- package/lib/{chunk-PVWAREVJ-BMhpCH5D.js → chunk-PVWAREVJ-dLIqswPy.js} +5 -5
- package/lib/{chunk-PVWAREVJ-BMhpCH5D.js.map → chunk-PVWAREVJ-dLIqswPy.js.map} +1 -1
- package/lib/{circular-CNHs4gAz.js → circular-XPj_dwqA.js} +2 -2
- package/lib/{circular-CNHs4gAz.js.map → circular-XPj_dwqA.js.map} +1 -1
- package/lib/createServer-D01nCTNp.js +16693 -0
- package/lib/createServer-D01nCTNp.js.map +1 -0
- package/lib/{errors-D7xzOd8X.js → errors-B0hNTPFO.js} +3 -3
- package/lib/{errors-D7xzOd8X.js.map → errors-B0hNTPFO.js.map} +1 -1
- package/lib/{hook-CMeoxziF.js → hook-CvSwcbk6.js} +3 -3
- package/lib/{hook-CMeoxziF.js.map → hook-CvSwcbk6.js.map} +1 -1
- package/lib/{index-unv8c40u.js → index-Bjc_QsUR.js} +754 -738
- package/lib/{index-unv8c40u.js.map → index-Bjc_QsUR.js.map} +1 -1
- package/lib/index-CrcNWbel.js.map +1 -1
- package/lib/index-DnMgJWrI.js +133 -0
- package/lib/index-DnMgJWrI.js.map +1 -0
- package/lib/{index-CF7_erXq.js → index-DscsS121.js} +2 -2
- package/lib/{index-CF7_erXq.js.map → index-DscsS121.js.map} +1 -1
- package/lib/{index-CPws05Tb.js → index-mfkNWYG-.js} +10 -10
- package/lib/{index-CPws05Tb.js.map → index-mfkNWYG-.js.map} +1 -1
- package/lib/{index.esm-BnYHxCYC.js → index.esm-DtzT_KoE.js} +20 -20
- package/lib/{index.esm-BnYHxCYC.js.map → index.esm-DtzT_KoE.js.map} +1 -1
- package/lib/{invariant-Bm-FVUQE.js → invariant-CGOLuIIz.js} +3 -3
- package/lib/{invariant-Bm-FVUQE.js.map → invariant-CGOLuIIz.js.map} +1 -1
- package/lib/{mutation-BSU0xu4m.js → mutation-BlmnL5qL.js} +2 -2
- package/lib/{mutation-BSU0xu4m.js.map → mutation-BlmnL5qL.js.map} +1 -1
- package/lib/ui/ActionButton.js +1 -1
- package/lib/ui/Button.js +25 -24
- package/lib/ui/Button.js.map +1 -1
- package/lib/ui/ButtonGroup.js +77 -0
- package/lib/ui/ButtonGroup.js.map +1 -0
- package/lib/ui/Command.js +3 -3
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/DropdownMenu.js +227 -140
- package/lib/ui/DropdownMenu.js.map +1 -1
- package/lib/ui/Kbd.js +32 -0
- package/lib/ui/Kbd.js.map +1 -0
- package/lib/ui/SyntaxHighlight.js +3 -3
- package/lib/zudoku.__internal.js +8 -8
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-azureb2c.js +4 -4
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +5 -5
- package/lib/zudoku.auth-supabase.js +5 -5
- package/lib/zudoku.components.js +7 -7
- package/lib/zudoku.hooks.js +11 -24
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.mermaid.js +10 -0
- package/lib/zudoku.mermaid.js.map +1 -0
- package/lib/zudoku.plugin-api-catalog.js +6 -6
- package/lib/zudoku.plugin-api-keys.js +223 -198
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +184 -226
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.plugins.js.map +1 -1
- package/lib/zudoku.router.js +2 -2
- package/package.json +29 -21
- package/src/app/sentry.ts +1 -1
- package/src/lib/components/Mermaid.tsx +68 -0
- package/src/lib/components/PagefindSearchMeta.tsx +14 -0
- package/src/lib/components/Zudoku.tsx +4 -7
- package/src/lib/core/RouteGuard.tsx +1 -1
- package/src/lib/core/plugins.ts +2 -2
- package/src/lib/oas/parser/index.ts +2 -0
- package/src/lib/plugins/openapi/DownloadSchemaButton.tsx +115 -0
- package/src/lib/plugins/openapi/Endpoint.tsx +20 -27
- package/src/lib/plugins/openapi/OasProvider.tsx +30 -17
- package/src/lib/plugins/openapi/OperationList.tsx +39 -21
- package/src/lib/plugins/openapi/OperationListItem.tsx +5 -5
- package/src/lib/plugins/openapi/SchemaList.tsx +4 -0
- package/src/lib/plugins/openapi/index.tsx +16 -7
- package/src/lib/plugins/openapi/interfaces.ts +16 -7
- package/src/lib/plugins/openapi/playground/Playground.tsx +1 -1
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +36 -27
- package/src/lib/plugins/openapi/schema/utils.ts +5 -2
- package/src/lib/plugins/openapi/util/getRoutes.tsx +35 -3
- package/src/lib/plugins/search-pagefind/IndexingDialog.tsx +163 -0
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +61 -22
- package/src/lib/plugins/search-pagefind/ResultList.tsx +8 -3
- package/src/lib/shiki.ts +21 -12
- package/src/lib/ui/Button.tsx +10 -10
- package/src/lib/ui/ButtonGroup.tsx +82 -0
- package/src/lib/ui/Command.tsx +3 -3
- package/src/lib/ui/DropdownMenu.tsx +226 -170
- package/src/lib/ui/Kbd.tsx +28 -0
- package/src/lib/util/MdxComponents.tsx +2 -0
- package/src/lib/util/flattenAllOf.test.ts +71 -19
- package/src/lib/util/flattenAllOf.ts +29 -8
- package/src/shiki/langs/markdown-nix.js +1 -0
- package/src/shiki/langs/openscad.js +1 -0
- package/dist/vite/create-pagefind-index.d.ts +0 -4
- package/dist/vite/create-pagefind-index.js +0 -12
- package/dist/vite/create-pagefind-index.js.map +0 -1
- package/lib/Button-B3ucvvQw.js +0 -52
- package/lib/Button-B3ucvvQw.js.map +0 -1
- package/lib/Command-CUcrW3qs.js.map +0 -1
- package/lib/DropdownMenu-BZ2NKQ3K.js +0 -126
- package/lib/DropdownMenu-BZ2NKQ3K.js.map +0 -1
- package/lib/MdxPage-hOCN-u-L.js +0 -240
- package/lib/MdxPage-hOCN-u-L.js.map +0 -1
- package/lib/OasProvider-CpniNNrW.js +0 -36
- package/lib/OasProvider-CpniNNrW.js.map +0 -1
- package/lib/OperationList-CmMoKpGu.js.map +0 -1
- package/lib/Pagination-lLSoHnxa.js +0 -37
- package/lib/Pagination-lLSoHnxa.js.map +0 -1
- package/lib/SchemaList-BykD27ga.js.map +0 -1
- package/lib/SchemaView-Dt6hbCAt.js.map +0 -1
- package/lib/Select-DFRCS31-.js +0 -399
- package/lib/Select-DFRCS31-.js.map +0 -1
- package/lib/SyntaxHighlight-C19vH0V_.js.map +0 -1
- package/lib/createServer-BmcVQAOQ.js +0 -13018
- package/lib/createServer-BmcVQAOQ.js.map +0 -1
- package/lib/useExposedProps-U3pmsHaG.js +0 -113
- package/lib/useExposedProps-U3pmsHaG.js.map +0 -1
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { ChevronsDownUpIcon as
|
|
3
|
-
import { r as
|
|
4
|
-
import { Button as
|
|
5
|
-
import { J as
|
|
6
|
-
import { Z as
|
|
2
|
+
import { ChevronsDownUpIcon as En, ChevronsUpDownIcon as kn, PlusCircleIcon as Je, XIcon as It, CheckIcon as Dt, PaperclipIcon as me, TrashIcon as Rn, FileInput as In, ScanTextIcon as yt, Grid2x2PlusIcon as vt, ChevronDownIcon as Dn, TableOfContentsIcon as Fn, LockIcon as zn, CircleAlertIcon as Vn, Circle as Bn, Unlink2Icon as _n, CornerDownRightIcon as qn, MinusCircleIcon as bt, CornerDownLeftIcon as Mn, SquareCodeIcon as Un, DownloadIcon as Gn, EyeOffIcon as Hn, EyeIcon as Qn, UnplugIcon as Jn, SendIcon as Wn, CopyIcon as Kn, IdCardLanyardIcon as Xn, ShapesIcon as Zn, PlayIcon as Yn, CirclePlayIcon as es } from "lucide-react";
|
|
3
|
+
import { r as ts, c as ns, a as ss, N as rs, aL as as, m as jt } from "./chunk-PVWAREVJ-dLIqswPy.js";
|
|
4
|
+
import { Button as Ft } from "./ui/Button.js";
|
|
5
|
+
import { J as Ze, K as Ye, L as zt, f as os, M as is, O as ls, j as V, e as cs } from "./ZudokuContext-np1wheDl.js";
|
|
6
|
+
import { Z as ds } from "./invariant-CGOLuIIz.js";
|
|
7
7
|
import * as Q from "react";
|
|
8
|
-
import { createContext as
|
|
9
|
-
import { VisuallyHidden as
|
|
10
|
-
import {
|
|
11
|
-
import { B as q } from "./Button-
|
|
12
|
-
import { D as
|
|
13
|
-
import { B as he, S as
|
|
14
|
-
import { S as
|
|
15
|
-
import { u as
|
|
16
|
-
import * as
|
|
17
|
-
import { h as
|
|
8
|
+
import { createContext as Vt, use as us, useRef as E, useEffect as G, useMemo as Bt, useCallback as D, startTransition as ms, useState as k, Fragment as le, useLayoutEffect as ps, useTransition as hs, useContext as fs } from "react";
|
|
9
|
+
import { VisuallyHidden as gs } from "@radix-ui/react-visually-hidden";
|
|
10
|
+
import { z as xs, b as ys } from "./index-DnMgJWrI.js";
|
|
11
|
+
import { B as q } from "./Button-CynVW1JV.js";
|
|
12
|
+
import { D as et, a as tt, c as nt, d as _t, e as qt, g as vs } from "./Dialog-BQciPiHN.js";
|
|
13
|
+
import { B as he, S as bs, b as js } from "./index-mfkNWYG-.js";
|
|
14
|
+
import { S as Mt, a as Ut, b as Gt, c as Ht, e as Te, g as Cs, u as Ns } from "./Select-VmDZ-nKe.js";
|
|
15
|
+
import { u as oe, b as Qt, C as Ct, a as Ss, F as ws } from "./index.esm-BYObtETB.js";
|
|
16
|
+
import * as st from "@radix-ui/react-collapsible";
|
|
17
|
+
import { h as Nt, i as St, j as wt, k as Ts, g as As } from "./ErrorAlert-BqjbNHIn.js";
|
|
18
18
|
import { c as w } from "./cn-dYga0KKN.js";
|
|
19
|
-
import { u as
|
|
19
|
+
import { u as $s } from "./useCopyToClipboard-B_085nfO.js";
|
|
20
20
|
import { u as Ps } from "./useLatest-hmRS46UF.js";
|
|
21
|
-
import { D as
|
|
22
|
-
import { Slot as
|
|
23
|
-
import * as
|
|
21
|
+
import { D as Jt, a as Wt, b as Kt, d as Os, e as Ls, f as Es, c as Ae } from "./DropdownMenu-C8SX_-S_.js";
|
|
22
|
+
import { Slot as ks } from "@radix-ui/react-slot";
|
|
23
|
+
import * as Tt from "@radix-ui/react-checkbox";
|
|
24
24
|
import * as $e from "@radix-ui/react-popover";
|
|
25
|
-
import { PopoverAnchor as
|
|
26
|
-
import { P as
|
|
27
|
-
import { f as
|
|
28
|
-
import { C as
|
|
29
|
-
import * as
|
|
30
|
-
import { c as
|
|
25
|
+
import { PopoverAnchor as Rs } from "@radix-ui/react-popover";
|
|
26
|
+
import { P as Is } from "./index-CrcNWbel.js";
|
|
27
|
+
import { f as Ds, g as Fs, C as zs, b as Vs } from "./Command-BpT1iBE6.js";
|
|
28
|
+
import { C as Bs } from "./Card-KFniaZn5.js";
|
|
29
|
+
import * as Xt from "@radix-ui/react-label";
|
|
30
|
+
import { c as _s } from "./index-DI5SPFK9.js";
|
|
31
31
|
import * as fe from "@radix-ui/react-radio-group";
|
|
32
|
-
import {
|
|
32
|
+
import { A as qs, a as Ms, b as Us } from "./Mermaid-CIFixY6C.js";
|
|
33
33
|
let _e;
|
|
34
|
-
const
|
|
34
|
+
const Gs = (e) => {
|
|
35
35
|
if (e.errors?.[0])
|
|
36
|
-
throw new
|
|
36
|
+
throw new ds(e.errors[0].message, {
|
|
37
37
|
developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
|
-
class
|
|
40
|
+
class Hs {
|
|
41
41
|
constructor(n) {
|
|
42
42
|
this.config = n;
|
|
43
43
|
}
|
|
44
|
-
#e = async () => (_e || (_e = import("./createServer-
|
|
44
|
+
#e = async () => (_e || (_e = import("./createServer-D01nCTNp.js").then(
|
|
45
45
|
(n) => n.createServer(this.config)
|
|
46
46
|
)), _e);
|
|
47
47
|
#t = async (n) => this.config.server ? fetch(this.config.server, n) : (await this.#e()).fetch("http://localhost/graphql", n);
|
|
@@ -54,27 +54,27 @@ class Gs {
|
|
|
54
54
|
if (!r.ok)
|
|
55
55
|
throw new Error("Network response was not ok");
|
|
56
56
|
const o = await r.json();
|
|
57
|
-
return
|
|
57
|
+
return Gs(o), o.data;
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
function qe(e, n) {
|
|
61
61
|
if (!!!e)
|
|
62
62
|
throw new Error(n);
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function Qs(e) {
|
|
65
65
|
return typeof e == "object" && e !== null;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function Js(e, n) {
|
|
68
68
|
if (!!!e)
|
|
69
69
|
throw new Error(
|
|
70
70
|
n ?? "Unexpected invariant triggered."
|
|
71
71
|
);
|
|
72
72
|
}
|
|
73
|
-
const
|
|
74
|
-
function
|
|
73
|
+
const Ws = /\r\n|[\n\r]/g;
|
|
74
|
+
function We(e, n) {
|
|
75
75
|
let s = 0, a = 1;
|
|
76
|
-
for (const r of e.body.matchAll(
|
|
77
|
-
if (typeof r.index == "number" ||
|
|
76
|
+
for (const r of e.body.matchAll(Ws)) {
|
|
77
|
+
if (typeof r.index == "number" || Js(!1), r.index >= n)
|
|
78
78
|
break;
|
|
79
79
|
s = r.index + r[0].length, a += 1;
|
|
80
80
|
}
|
|
@@ -83,40 +83,40 @@ function Je(e, n) {
|
|
|
83
83
|
column: n + 1 - s
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
86
|
+
function Ks(e) {
|
|
87
|
+
return Zt(
|
|
88
88
|
e.source,
|
|
89
|
-
|
|
89
|
+
We(e.source, e.start)
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Zt(e, n) {
|
|
93
93
|
const s = e.locationOffset.column - 1, a = "".padStart(s) + e.body, r = n.line - 1, o = e.locationOffset.line - 1, i = n.line + o, c = n.line === 1 ? s : 0, l = n.column + c, m = `${e.name}:${i}:${l}
|
|
94
|
-
`, d = a.split(/\r\n|[\n\r]/g),
|
|
95
|
-
if (
|
|
96
|
-
const x = Math.floor(l / 80),
|
|
97
|
-
for (let u = 0; u <
|
|
98
|
-
|
|
99
|
-
return m +
|
|
100
|
-
[`${i} |`,
|
|
101
|
-
...
|
|
102
|
-
["|", "^".padStart(
|
|
103
|
-
["|",
|
|
94
|
+
`, d = a.split(/\r\n|[\n\r]/g), f = d[r];
|
|
95
|
+
if (f.length > 120) {
|
|
96
|
+
const x = Math.floor(l / 80), h = l % 80, v = [];
|
|
97
|
+
for (let u = 0; u < f.length; u += 80)
|
|
98
|
+
v.push(f.slice(u, u + 80));
|
|
99
|
+
return m + At([
|
|
100
|
+
[`${i} |`, v[0]],
|
|
101
|
+
...v.slice(1, x + 1).map((u) => ["|", u]),
|
|
102
|
+
["|", "^".padStart(h)],
|
|
103
|
+
["|", v[x + 1]]
|
|
104
104
|
]);
|
|
105
105
|
}
|
|
106
|
-
return m +
|
|
106
|
+
return m + At([
|
|
107
107
|
// Lines specified like this: ["prefix", "string"],
|
|
108
108
|
[`${i - 1} |`, d[r - 1]],
|
|
109
|
-
[`${i} |`,
|
|
109
|
+
[`${i} |`, f],
|
|
110
110
|
["|", "^".padStart(l)],
|
|
111
111
|
[`${i + 1} |`, d[r + 1]]
|
|
112
112
|
]);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function At(e) {
|
|
115
115
|
const n = e.filter(([a, r]) => r !== void 0), s = Math.max(...n.map(([a]) => a.length));
|
|
116
116
|
return n.map(([a, r]) => a.padStart(s) + (r ? " " + r : "")).join(`
|
|
117
117
|
`);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Xs(e) {
|
|
120
120
|
const n = e[0];
|
|
121
121
|
return n == null || "kind" in n || "length" in n ? {
|
|
122
122
|
nodes: n,
|
|
@@ -127,7 +127,7 @@ function Ks(e) {
|
|
|
127
127
|
extensions: e[5]
|
|
128
128
|
} : n;
|
|
129
129
|
}
|
|
130
|
-
class
|
|
130
|
+
class rt extends Error {
|
|
131
131
|
/**
|
|
132
132
|
* An array of `{ line, column }` locations within the source GraphQL document
|
|
133
133
|
* which correspond to this error.
|
|
@@ -168,18 +168,18 @@ class nt extends Error {
|
|
|
168
168
|
*/
|
|
169
169
|
constructor(n, ...s) {
|
|
170
170
|
var a, r, o;
|
|
171
|
-
const { nodes: i, source: c, positions: l, path: m, originalError: d, extensions:
|
|
172
|
-
super(n), this.name = "GraphQLError", this.path = m ?? void 0, this.originalError = d ?? void 0, this.nodes =
|
|
171
|
+
const { nodes: i, source: c, positions: l, path: m, originalError: d, extensions: f } = Xs(s);
|
|
172
|
+
super(n), this.name = "GraphQLError", this.path = m ?? void 0, this.originalError = d ?? void 0, this.nodes = $t(
|
|
173
173
|
Array.isArray(i) ? i : i ? [i] : void 0
|
|
174
174
|
);
|
|
175
|
-
const x =
|
|
176
|
-
(a = this.nodes) === null || a === void 0 ? void 0 : a.map((
|
|
175
|
+
const x = $t(
|
|
176
|
+
(a = this.nodes) === null || a === void 0 ? void 0 : a.map((v) => v.loc).filter((v) => v != null)
|
|
177
177
|
);
|
|
178
|
-
this.source = c ?? (x == null || (r = x[0]) === null || r === void 0 ? void 0 : r.source), this.positions = l ?? x?.map((
|
|
179
|
-
const
|
|
178
|
+
this.source = c ?? (x == null || (r = x[0]) === null || r === void 0 ? void 0 : r.source), this.positions = l ?? x?.map((v) => v.start), this.locations = l && c ? l.map((v) => We(c, v)) : x?.map((v) => We(v.source, v.start));
|
|
179
|
+
const h = Qs(
|
|
180
180
|
d?.extensions
|
|
181
181
|
) ? d?.extensions : void 0;
|
|
182
|
-
this.extensions = (o =
|
|
182
|
+
this.extensions = (o = f ?? h) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
|
|
183
183
|
message: {
|
|
184
184
|
writable: !0,
|
|
185
185
|
enumerable: !0
|
|
@@ -203,7 +203,7 @@ class nt extends Error {
|
|
|
203
203
|
value: d.stack,
|
|
204
204
|
writable: !0,
|
|
205
205
|
configurable: !0
|
|
206
|
-
}) : Error.captureStackTrace ? Error.captureStackTrace(this,
|
|
206
|
+
}) : Error.captureStackTrace ? Error.captureStackTrace(this, rt) : Object.defineProperty(this, "stack", {
|
|
207
207
|
value: Error().stack,
|
|
208
208
|
writable: !0,
|
|
209
209
|
configurable: !0
|
|
@@ -218,12 +218,12 @@ class nt extends Error {
|
|
|
218
218
|
for (const s of this.nodes)
|
|
219
219
|
s.loc && (n += `
|
|
220
220
|
|
|
221
|
-
` +
|
|
221
|
+
` + Ks(s.loc));
|
|
222
222
|
else if (this.source && this.locations)
|
|
223
223
|
for (const s of this.locations)
|
|
224
224
|
n += `
|
|
225
225
|
|
|
226
|
-
` +
|
|
226
|
+
` + Zt(this.source, s);
|
|
227
227
|
return n;
|
|
228
228
|
}
|
|
229
229
|
toJSON() {
|
|
@@ -233,11 +233,11 @@ class nt extends Error {
|
|
|
233
233
|
return this.locations != null && (n.locations = this.locations), this.path != null && (n.path = this.path), this.extensions != null && Object.keys(this.extensions).length > 0 && (n.extensions = this.extensions), n;
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function $t(e) {
|
|
237
237
|
return e === void 0 || e.length === 0 ? void 0 : e;
|
|
238
238
|
}
|
|
239
239
|
function F(e, n, s) {
|
|
240
|
-
return new
|
|
240
|
+
return new rt(`Syntax Error: ${s}`, {
|
|
241
241
|
source: e,
|
|
242
242
|
positions: [n]
|
|
243
243
|
});
|
|
@@ -271,7 +271,7 @@ class Ka {
|
|
|
271
271
|
};
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
-
class
|
|
274
|
+
class Yt {
|
|
275
275
|
/**
|
|
276
276
|
* The kind of Token.
|
|
277
277
|
*/
|
|
@@ -313,7 +313,7 @@ class Xt {
|
|
|
313
313
|
};
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
|
-
const
|
|
316
|
+
const Zs = {
|
|
317
317
|
Name: [],
|
|
318
318
|
Document: ["definitions"],
|
|
319
319
|
OperationDefinition: [
|
|
@@ -400,37 +400,37 @@ const Xs = {
|
|
|
400
400
|
ArgumentCoordinate: ["name", "fieldName", "argumentName"],
|
|
401
401
|
DirectiveCoordinate: ["name"],
|
|
402
402
|
DirectiveArgumentCoordinate: ["name", "argumentName"]
|
|
403
|
-
},
|
|
403
|
+
}, Ys = new Set(Object.keys(Zs));
|
|
404
404
|
function Xa(e) {
|
|
405
405
|
const n = e?.kind;
|
|
406
|
-
return typeof n == "string" &&
|
|
406
|
+
return typeof n == "string" && Ys.has(n);
|
|
407
407
|
}
|
|
408
|
-
var
|
|
408
|
+
var Pt;
|
|
409
409
|
(function(e) {
|
|
410
410
|
e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
|
|
411
|
-
})(
|
|
412
|
-
function
|
|
411
|
+
})(Pt || (Pt = {}));
|
|
412
|
+
function Ke(e) {
|
|
413
413
|
return e === 9 || e === 32;
|
|
414
414
|
}
|
|
415
415
|
function ge(e) {
|
|
416
416
|
return e >= 48 && e <= 57;
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function en(e) {
|
|
419
419
|
return e >= 97 && e <= 122 || // A-Z
|
|
420
420
|
e >= 65 && e <= 90;
|
|
421
421
|
}
|
|
422
|
-
function
|
|
423
|
-
return
|
|
424
|
-
}
|
|
425
|
-
function Ys(e) {
|
|
426
|
-
return Zt(e) || ge(e) || e === 95;
|
|
422
|
+
function tn(e) {
|
|
423
|
+
return en(e) || e === 95;
|
|
427
424
|
}
|
|
428
425
|
function er(e) {
|
|
426
|
+
return en(e) || ge(e) || e === 95;
|
|
427
|
+
}
|
|
428
|
+
function tr(e) {
|
|
429
429
|
var n;
|
|
430
430
|
let s = Number.MAX_SAFE_INTEGER, a = null, r = -1;
|
|
431
431
|
for (let i = 0; i < e.length; ++i) {
|
|
432
432
|
var o;
|
|
433
|
-
const c = e[i], l =
|
|
433
|
+
const c = e[i], l = nr(c);
|
|
434
434
|
l !== c.length && (a = (o = a) !== null && o !== void 0 ? o : i, r = i, i !== 0 && l < s && (s = l));
|
|
435
435
|
}
|
|
436
436
|
return e.map((i, c) => c === 0 ? i : i.slice(s)).slice(
|
|
@@ -438,26 +438,26 @@ function er(e) {
|
|
|
438
438
|
r + 1
|
|
439
439
|
);
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function nr(e) {
|
|
442
442
|
let n = 0;
|
|
443
|
-
for (; n < e.length &&
|
|
443
|
+
for (; n < e.length && Ke(e.charCodeAt(n)); )
|
|
444
444
|
++n;
|
|
445
445
|
return n;
|
|
446
446
|
}
|
|
447
|
-
function
|
|
448
|
-
const s = e.replace(/"""/g, '\\"""'), a = s.split(/\r\n|[\n\r]/g), r = a.length === 1, o = a.length > 1 && a.slice(1).every((
|
|
447
|
+
function sr(e, n) {
|
|
448
|
+
const s = e.replace(/"""/g, '\\"""'), a = s.split(/\r\n|[\n\r]/g), r = a.length === 1, o = a.length > 1 && a.slice(1).every((h) => h.length === 0 || Ke(h.charCodeAt(0))), i = s.endsWith('\\"""'), c = e.endsWith('"') && !i, l = e.endsWith("\\"), m = c || l, d = !(n != null && n.minimize) && // add leading and trailing new lines only if it improves readability
|
|
449
449
|
(!r || e.length > 70 || m || o || i);
|
|
450
|
-
let
|
|
451
|
-
const x = r &&
|
|
452
|
-
return (d && !x || o) && (
|
|
453
|
-
`),
|
|
454
|
-
`), '"""' +
|
|
450
|
+
let f = "";
|
|
451
|
+
const x = r && Ke(e.charCodeAt(0));
|
|
452
|
+
return (d && !x || o) && (f += `
|
|
453
|
+
`), f += s, (d || m) && (f += `
|
|
454
|
+
`), '"""' + f + '"""';
|
|
455
455
|
}
|
|
456
|
-
var
|
|
456
|
+
var b;
|
|
457
457
|
(function(e) {
|
|
458
458
|
e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.DOT = ".", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
|
|
459
|
-
})(
|
|
460
|
-
class
|
|
459
|
+
})(b || (b = {}));
|
|
460
|
+
class rr {
|
|
461
461
|
/**
|
|
462
462
|
* The previously focused non-ignored token.
|
|
463
463
|
*/
|
|
@@ -471,7 +471,7 @@ class sr {
|
|
|
471
471
|
* The character offset at which the current line begins.
|
|
472
472
|
*/
|
|
473
473
|
constructor(n) {
|
|
474
|
-
const s = new
|
|
474
|
+
const s = new Yt(b.SOF, 0, 0, 0, 0);
|
|
475
475
|
this.source = n, this.lastToken = s, this.token = s, this.line = 1, this.lineStart = 0;
|
|
476
476
|
}
|
|
477
477
|
get [Symbol.toStringTag]() {
|
|
@@ -489,48 +489,48 @@ class sr {
|
|
|
489
489
|
*/
|
|
490
490
|
lookahead() {
|
|
491
491
|
let n = this.token;
|
|
492
|
-
if (n.kind !==
|
|
492
|
+
if (n.kind !== b.EOF)
|
|
493
493
|
do
|
|
494
494
|
if (n.next)
|
|
495
495
|
n = n.next;
|
|
496
496
|
else {
|
|
497
|
-
const s =
|
|
497
|
+
const s = or(this, n.end);
|
|
498
498
|
n.next = s, s.prev = n, n = s;
|
|
499
499
|
}
|
|
500
|
-
while (n.kind ===
|
|
500
|
+
while (n.kind === b.COMMENT);
|
|
501
501
|
return n;
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
function
|
|
505
|
-
return e ===
|
|
504
|
+
function ar(e) {
|
|
505
|
+
return e === b.BANG || e === b.DOLLAR || e === b.AMP || e === b.PAREN_L || e === b.PAREN_R || e === b.DOT || e === b.SPREAD || e === b.COLON || e === b.EQUALS || e === b.AT || e === b.BRACKET_L || e === b.BRACKET_R || e === b.BRACE_L || e === b.PIPE || e === b.BRACE_R;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function ie(e) {
|
|
508
508
|
return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
|
|
509
509
|
}
|
|
510
|
-
function
|
|
511
|
-
return
|
|
510
|
+
function Oe(e, n) {
|
|
511
|
+
return nn(e.charCodeAt(n)) && sn(e.charCodeAt(n + 1));
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function nn(e) {
|
|
514
514
|
return e >= 55296 && e <= 56319;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function sn(e) {
|
|
517
517
|
return e >= 56320 && e <= 57343;
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function Z(e, n) {
|
|
520
520
|
const s = e.source.body.codePointAt(n);
|
|
521
521
|
if (s === void 0)
|
|
522
|
-
return
|
|
522
|
+
return b.EOF;
|
|
523
523
|
if (s >= 32 && s <= 126) {
|
|
524
524
|
const a = String.fromCodePoint(s);
|
|
525
525
|
return a === '"' ? `'"'` : `"${a}"`;
|
|
526
526
|
}
|
|
527
527
|
return "U+" + s.toString(16).toUpperCase().padStart(4, "0");
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function P(e, n, s, a, r) {
|
|
530
530
|
const o = e.line, i = 1 + s - e.lineStart;
|
|
531
|
-
return new
|
|
531
|
+
return new Yt(n, s, a, o, i, r);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function or(e, n) {
|
|
534
534
|
const s = e.source.body, a = s.length;
|
|
535
535
|
let r = n;
|
|
536
536
|
for (; r < a; ) {
|
|
@@ -571,7 +571,7 @@ function ar(e, n) {
|
|
|
571
571
|
continue;
|
|
572
572
|
// Comment
|
|
573
573
|
case 35:
|
|
574
|
-
return
|
|
574
|
+
return ir(e, r);
|
|
575
575
|
// Token ::
|
|
576
576
|
// - Punctuator
|
|
577
577
|
// - Name
|
|
@@ -581,74 +581,74 @@ function ar(e, n) {
|
|
|
581
581
|
//
|
|
582
582
|
// Punctuator :: one of ! $ & ( ) ... : = @ [ ] { | }
|
|
583
583
|
case 33:
|
|
584
|
-
return
|
|
584
|
+
return P(e, b.BANG, r, r + 1);
|
|
585
585
|
case 36:
|
|
586
|
-
return
|
|
586
|
+
return P(e, b.DOLLAR, r, r + 1);
|
|
587
587
|
case 38:
|
|
588
|
-
return
|
|
588
|
+
return P(e, b.AMP, r, r + 1);
|
|
589
589
|
case 40:
|
|
590
|
-
return
|
|
590
|
+
return P(e, b.PAREN_L, r, r + 1);
|
|
591
591
|
case 41:
|
|
592
|
-
return
|
|
592
|
+
return P(e, b.PAREN_R, r, r + 1);
|
|
593
593
|
case 46:
|
|
594
594
|
if (s.charCodeAt(r + 1) === 46 && s.charCodeAt(r + 2) === 46)
|
|
595
|
-
return
|
|
595
|
+
return P(e, b.SPREAD, r, r + 3);
|
|
596
596
|
break;
|
|
597
597
|
case 58:
|
|
598
|
-
return
|
|
598
|
+
return P(e, b.COLON, r, r + 1);
|
|
599
599
|
case 61:
|
|
600
|
-
return
|
|
600
|
+
return P(e, b.EQUALS, r, r + 1);
|
|
601
601
|
case 64:
|
|
602
|
-
return
|
|
602
|
+
return P(e, b.AT, r, r + 1);
|
|
603
603
|
case 91:
|
|
604
|
-
return
|
|
604
|
+
return P(e, b.BRACKET_L, r, r + 1);
|
|
605
605
|
case 93:
|
|
606
|
-
return
|
|
606
|
+
return P(e, b.BRACKET_R, r, r + 1);
|
|
607
607
|
case 123:
|
|
608
|
-
return
|
|
608
|
+
return P(e, b.BRACE_L, r, r + 1);
|
|
609
609
|
case 124:
|
|
610
|
-
return
|
|
610
|
+
return P(e, b.PIPE, r, r + 1);
|
|
611
611
|
case 125:
|
|
612
|
-
return
|
|
612
|
+
return P(e, b.BRACE_R, r, r + 1);
|
|
613
613
|
// StringValue
|
|
614
614
|
case 34:
|
|
615
|
-
return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ?
|
|
615
|
+
return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? pr(e, r) : cr(e, r);
|
|
616
616
|
}
|
|
617
617
|
if (ge(o) || o === 45)
|
|
618
|
-
return
|
|
619
|
-
if (
|
|
620
|
-
return
|
|
618
|
+
return lr(e, r, o);
|
|
619
|
+
if (tn(o))
|
|
620
|
+
return hr(e, r);
|
|
621
621
|
throw F(
|
|
622
622
|
e.source,
|
|
623
623
|
r,
|
|
624
|
-
o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` :
|
|
624
|
+
o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : ie(o) || Oe(s, r) ? `Unexpected character: ${Z(e, r)}.` : `Invalid character: ${Z(e, r)}.`
|
|
625
625
|
);
|
|
626
626
|
}
|
|
627
|
-
return
|
|
627
|
+
return P(e, b.EOF, a, a);
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function ir(e, n) {
|
|
630
630
|
const s = e.source.body, a = s.length;
|
|
631
631
|
let r = n + 1;
|
|
632
632
|
for (; r < a; ) {
|
|
633
633
|
const o = s.charCodeAt(r);
|
|
634
634
|
if (o === 10 || o === 13)
|
|
635
635
|
break;
|
|
636
|
-
if (
|
|
636
|
+
if (ie(o))
|
|
637
637
|
++r;
|
|
638
|
-
else if (
|
|
638
|
+
else if (Oe(s, r))
|
|
639
639
|
r += 2;
|
|
640
640
|
else
|
|
641
641
|
break;
|
|
642
642
|
}
|
|
643
|
-
return
|
|
643
|
+
return P(
|
|
644
644
|
e,
|
|
645
|
-
|
|
645
|
+
b.COMMENT,
|
|
646
646
|
n,
|
|
647
647
|
r,
|
|
648
648
|
s.slice(n + 1, r)
|
|
649
649
|
);
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function lr(e, n, s) {
|
|
652
652
|
const a = e.source.body;
|
|
653
653
|
let r = n, o = s, i = !1;
|
|
654
654
|
if (o === 45 && (o = a.charCodeAt(++r)), o === 48) {
|
|
@@ -656,25 +656,25 @@ function ir(e, n, s) {
|
|
|
656
656
|
throw F(
|
|
657
657
|
e.source,
|
|
658
658
|
r,
|
|
659
|
-
`Invalid number, unexpected digit after 0: ${
|
|
659
|
+
`Invalid number, unexpected digit after 0: ${Z(
|
|
660
660
|
e,
|
|
661
661
|
r
|
|
662
662
|
)}.`
|
|
663
663
|
);
|
|
664
664
|
} else
|
|
665
665
|
r = Me(e, r, o), o = a.charCodeAt(r);
|
|
666
|
-
if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = Me(e, r, o), o = a.charCodeAt(r)), (o === 69 || o === 101) && (i = !0, o = a.charCodeAt(++r), (o === 43 || o === 45) && (o = a.charCodeAt(++r)), r = Me(e, r, o), o = a.charCodeAt(r)), o === 46 ||
|
|
666
|
+
if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = Me(e, r, o), o = a.charCodeAt(r)), (o === 69 || o === 101) && (i = !0, o = a.charCodeAt(++r), (o === 43 || o === 45) && (o = a.charCodeAt(++r)), r = Me(e, r, o), o = a.charCodeAt(r)), o === 46 || tn(o))
|
|
667
667
|
throw F(
|
|
668
668
|
e.source,
|
|
669
669
|
r,
|
|
670
|
-
`Invalid number, expected digit but got: ${
|
|
670
|
+
`Invalid number, expected digit but got: ${Z(
|
|
671
671
|
e,
|
|
672
672
|
r
|
|
673
673
|
)}.`
|
|
674
674
|
);
|
|
675
|
-
return
|
|
675
|
+
return P(
|
|
676
676
|
e,
|
|
677
|
-
i ?
|
|
677
|
+
i ? b.FLOAT : b.INT,
|
|
678
678
|
n,
|
|
679
679
|
r,
|
|
680
680
|
a.slice(n, r)
|
|
@@ -685,7 +685,7 @@ function Me(e, n, s) {
|
|
|
685
685
|
throw F(
|
|
686
686
|
e.source,
|
|
687
687
|
n,
|
|
688
|
-
`Invalid number, expected digit but got: ${
|
|
688
|
+
`Invalid number, expected digit but got: ${Z(
|
|
689
689
|
e,
|
|
690
690
|
n
|
|
691
691
|
)}.`
|
|
@@ -696,30 +696,30 @@ function Me(e, n, s) {
|
|
|
696
696
|
++r;
|
|
697
697
|
return r;
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function cr(e, n) {
|
|
700
700
|
const s = e.source.body, a = s.length;
|
|
701
701
|
let r = n + 1, o = r, i = "";
|
|
702
702
|
for (; r < a; ) {
|
|
703
703
|
const c = s.charCodeAt(r);
|
|
704
704
|
if (c === 34)
|
|
705
|
-
return i += s.slice(o, r),
|
|
705
|
+
return i += s.slice(o, r), P(e, b.STRING, n, r + 1, i);
|
|
706
706
|
if (c === 92) {
|
|
707
707
|
i += s.slice(o, r);
|
|
708
|
-
const l = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ?
|
|
708
|
+
const l = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? dr(e, r) : ur(e, r) : mr(e, r);
|
|
709
709
|
i += l.value, r += l.size, o = r;
|
|
710
710
|
continue;
|
|
711
711
|
}
|
|
712
712
|
if (c === 10 || c === 13)
|
|
713
713
|
break;
|
|
714
|
-
if (
|
|
714
|
+
if (ie(c))
|
|
715
715
|
++r;
|
|
716
|
-
else if (
|
|
716
|
+
else if (Oe(s, r))
|
|
717
717
|
r += 2;
|
|
718
718
|
else
|
|
719
719
|
throw F(
|
|
720
720
|
e.source,
|
|
721
721
|
r,
|
|
722
|
-
`Invalid character within String: ${
|
|
722
|
+
`Invalid character within String: ${Z(
|
|
723
723
|
e,
|
|
724
724
|
r
|
|
725
725
|
)}.`
|
|
@@ -727,13 +727,13 @@ function lr(e, n) {
|
|
|
727
727
|
}
|
|
728
728
|
throw F(e.source, r, "Unterminated string.");
|
|
729
729
|
}
|
|
730
|
-
function
|
|
730
|
+
function dr(e, n) {
|
|
731
731
|
const s = e.source.body;
|
|
732
732
|
let a = 0, r = 3;
|
|
733
733
|
for (; r < 12; ) {
|
|
734
734
|
const o = s.charCodeAt(n + r++);
|
|
735
735
|
if (o === 125) {
|
|
736
|
-
if (r < 5 || !
|
|
736
|
+
if (r < 5 || !ie(a))
|
|
737
737
|
break;
|
|
738
738
|
return {
|
|
739
739
|
value: String.fromCodePoint(a),
|
|
@@ -752,16 +752,16 @@ function cr(e, n) {
|
|
|
752
752
|
)}".`
|
|
753
753
|
);
|
|
754
754
|
}
|
|
755
|
-
function
|
|
756
|
-
const s = e.source.body, a =
|
|
757
|
-
if (
|
|
755
|
+
function ur(e, n) {
|
|
756
|
+
const s = e.source.body, a = Ot(s, n + 2);
|
|
757
|
+
if (ie(a))
|
|
758
758
|
return {
|
|
759
759
|
value: String.fromCodePoint(a),
|
|
760
760
|
size: 6
|
|
761
761
|
};
|
|
762
|
-
if (
|
|
763
|
-
const r =
|
|
764
|
-
if (
|
|
762
|
+
if (nn(a) && s.charCodeAt(n + 6) === 92 && s.charCodeAt(n + 7) === 117) {
|
|
763
|
+
const r = Ot(s, n + 8);
|
|
764
|
+
if (sn(r))
|
|
765
765
|
return {
|
|
766
766
|
value: String.fromCodePoint(a, r),
|
|
767
767
|
size: 12
|
|
@@ -773,13 +773,13 @@ function dr(e, n) {
|
|
|
773
773
|
`Invalid Unicode escape sequence: "${s.slice(n, n + 6)}".`
|
|
774
774
|
);
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function Ot(e, n) {
|
|
777
777
|
return ce(e.charCodeAt(n)) << 12 | ce(e.charCodeAt(n + 1)) << 8 | ce(e.charCodeAt(n + 2)) << 4 | ce(e.charCodeAt(n + 3));
|
|
778
778
|
}
|
|
779
779
|
function ce(e) {
|
|
780
780
|
return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function mr(e, n) {
|
|
783
783
|
const s = e.source.body;
|
|
784
784
|
switch (s.charCodeAt(n + 1)) {
|
|
785
785
|
case 34:
|
|
@@ -833,7 +833,7 @@ function ur(e, n) {
|
|
|
833
833
|
)}".`
|
|
834
834
|
);
|
|
835
835
|
}
|
|
836
|
-
function
|
|
836
|
+
function pr(e, n) {
|
|
837
837
|
const s = e.source.body, a = s.length;
|
|
838
838
|
let r = e.lineStart, o = n + 3, i = o, c = "";
|
|
839
839
|
const l = [];
|
|
@@ -841,13 +841,13 @@ function mr(e, n) {
|
|
|
841
841
|
const m = s.charCodeAt(o);
|
|
842
842
|
if (m === 34 && s.charCodeAt(o + 1) === 34 && s.charCodeAt(o + 2) === 34) {
|
|
843
843
|
c += s.slice(i, o), l.push(c);
|
|
844
|
-
const d =
|
|
844
|
+
const d = P(
|
|
845
845
|
e,
|
|
846
|
-
|
|
846
|
+
b.BLOCK_STRING,
|
|
847
847
|
n,
|
|
848
848
|
o + 3,
|
|
849
849
|
// Return a string of the lines joined with U+000A.
|
|
850
|
-
|
|
850
|
+
tr(l).join(`
|
|
851
851
|
`)
|
|
852
852
|
);
|
|
853
853
|
return e.line += l.length - 1, e.lineStart = r, d;
|
|
@@ -860,15 +860,15 @@ function mr(e, n) {
|
|
|
860
860
|
c += s.slice(i, o), l.push(c), m === 13 && s.charCodeAt(o + 1) === 10 ? o += 2 : ++o, c = "", i = o, r = o;
|
|
861
861
|
continue;
|
|
862
862
|
}
|
|
863
|
-
if (
|
|
863
|
+
if (ie(m))
|
|
864
864
|
++o;
|
|
865
|
-
else if (
|
|
865
|
+
else if (Oe(s, o))
|
|
866
866
|
o += 2;
|
|
867
867
|
else
|
|
868
868
|
throw F(
|
|
869
869
|
e.source,
|
|
870
870
|
o,
|
|
871
|
-
`Invalid character within String: ${
|
|
871
|
+
`Invalid character within String: ${Z(
|
|
872
872
|
e,
|
|
873
873
|
o
|
|
874
874
|
)}.`
|
|
@@ -876,26 +876,26 @@ function mr(e, n) {
|
|
|
876
876
|
}
|
|
877
877
|
throw F(e.source, o, "Unterminated string.");
|
|
878
878
|
}
|
|
879
|
-
function
|
|
879
|
+
function hr(e, n) {
|
|
880
880
|
const s = e.source.body, a = s.length;
|
|
881
881
|
let r = n + 1;
|
|
882
882
|
for (; r < a; ) {
|
|
883
883
|
const o = s.charCodeAt(r);
|
|
884
|
-
if (
|
|
884
|
+
if (er(o))
|
|
885
885
|
++r;
|
|
886
886
|
else
|
|
887
887
|
break;
|
|
888
888
|
}
|
|
889
|
-
return
|
|
889
|
+
return P(
|
|
890
890
|
e,
|
|
891
|
-
|
|
891
|
+
b.NAME,
|
|
892
892
|
n,
|
|
893
893
|
r,
|
|
894
894
|
s.slice(n, r)
|
|
895
895
|
);
|
|
896
896
|
}
|
|
897
|
-
const
|
|
898
|
-
function
|
|
897
|
+
const fr = 10, rn = 2;
|
|
898
|
+
function an(e) {
|
|
899
899
|
return Le(e, []);
|
|
900
900
|
}
|
|
901
901
|
function Le(e, n) {
|
|
@@ -905,45 +905,45 @@ function Le(e, n) {
|
|
|
905
905
|
case "function":
|
|
906
906
|
return e.name ? `[function ${e.name}]` : "[function]";
|
|
907
907
|
case "object":
|
|
908
|
-
return
|
|
908
|
+
return gr(e, n);
|
|
909
909
|
default:
|
|
910
910
|
return String(e);
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function gr(e, n) {
|
|
914
914
|
if (e === null)
|
|
915
915
|
return "null";
|
|
916
916
|
if (n.includes(e))
|
|
917
917
|
return "[Circular]";
|
|
918
918
|
const s = [...n, e];
|
|
919
|
-
if (
|
|
919
|
+
if (xr(e)) {
|
|
920
920
|
const a = e.toJSON();
|
|
921
921
|
if (a !== e)
|
|
922
922
|
return typeof a == "string" ? a : Le(a, s);
|
|
923
923
|
} else if (Array.isArray(e))
|
|
924
|
-
return
|
|
925
|
-
return
|
|
924
|
+
return vr(e, s);
|
|
925
|
+
return yr(e, s);
|
|
926
926
|
}
|
|
927
|
-
function
|
|
927
|
+
function xr(e) {
|
|
928
928
|
return typeof e.toJSON == "function";
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function yr(e, n) {
|
|
931
931
|
const s = Object.entries(e);
|
|
932
|
-
return s.length === 0 ? "{}" : n.length >
|
|
932
|
+
return s.length === 0 ? "{}" : n.length > rn ? "[" + br(e) + "]" : "{ " + s.map(
|
|
933
933
|
([r, o]) => r + ": " + Le(o, n)
|
|
934
934
|
).join(", ") + " }";
|
|
935
935
|
}
|
|
936
|
-
function
|
|
936
|
+
function vr(e, n) {
|
|
937
937
|
if (e.length === 0)
|
|
938
938
|
return "[]";
|
|
939
|
-
if (n.length >
|
|
939
|
+
if (n.length > rn)
|
|
940
940
|
return "[Array]";
|
|
941
|
-
const s = Math.min(
|
|
941
|
+
const s = Math.min(fr, e.length), a = e.length - s, r = [];
|
|
942
942
|
for (let o = 0; o < s; ++o)
|
|
943
943
|
r.push(Le(e[o], n));
|
|
944
944
|
return a === 1 ? r.push("... 1 more item") : a > 1 && r.push(`... ${a} more items`), "[" + r.join(", ") + "]";
|
|
945
945
|
}
|
|
946
|
-
function
|
|
946
|
+
function br(e) {
|
|
947
947
|
const n = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
|
|
948
948
|
if (n === "Object" && typeof e.constructor == "function") {
|
|
949
949
|
const s = e.constructor.name;
|
|
@@ -952,11 +952,11 @@ function vr(e) {
|
|
|
952
952
|
}
|
|
953
953
|
return n;
|
|
954
954
|
}
|
|
955
|
-
const
|
|
956
|
-
process.env.NODE_ENV === "production",
|
|
955
|
+
const jr = globalThis.process && // eslint-disable-next-line no-undef
|
|
956
|
+
process.env.NODE_ENV === "production", Cr = (
|
|
957
957
|
/* c8 ignore next 6 */
|
|
958
958
|
// FIXME: https://github.com/graphql/graphql-js/issues/2317
|
|
959
|
-
|
|
959
|
+
jr ? function(n, s) {
|
|
960
960
|
return n instanceof s;
|
|
961
961
|
} : function(n, s) {
|
|
962
962
|
if (n instanceof s)
|
|
@@ -968,7 +968,7 @@ process.env.NODE_ENV === "production", jr = (
|
|
|
968
968
|
Symbol.toStringTag in n ? n[Symbol.toStringTag] : (a = n.constructor) === null || a === void 0 ? void 0 : a.name
|
|
969
969
|
);
|
|
970
970
|
if (r === o) {
|
|
971
|
-
const i =
|
|
971
|
+
const i = an(n);
|
|
972
972
|
throw new Error(`Cannot use ${r} "${i}" from another module or realm.
|
|
973
973
|
|
|
974
974
|
Ensure that there is only one instance of "graphql" in the node_modules
|
|
@@ -986,12 +986,12 @@ spurious results.`);
|
|
|
986
986
|
return !1;
|
|
987
987
|
}
|
|
988
988
|
);
|
|
989
|
-
class
|
|
989
|
+
class on {
|
|
990
990
|
constructor(n, s = "GraphQL request", a = {
|
|
991
991
|
line: 1,
|
|
992
992
|
column: 1
|
|
993
993
|
}) {
|
|
994
|
-
typeof n == "string" || qe(!1, `Body must be a string. Received: ${
|
|
994
|
+
typeof n == "string" || qe(!1, `Body must be a string. Received: ${an(n)}.`), this.body = n, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || qe(
|
|
995
995
|
!1,
|
|
996
996
|
"line in locationOffset is 1-indexed and must be positive."
|
|
997
997
|
), this.locationOffset.column > 0 || qe(
|
|
@@ -1003,37 +1003,37 @@ class rn {
|
|
|
1003
1003
|
return "Source";
|
|
1004
1004
|
}
|
|
1005
1005
|
}
|
|
1006
|
-
function Cr(e) {
|
|
1007
|
-
return jr(e, rn);
|
|
1008
|
-
}
|
|
1009
1006
|
function Nr(e) {
|
|
1010
|
-
|
|
1007
|
+
return Cr(e, on);
|
|
1008
|
+
}
|
|
1009
|
+
function Sr(e) {
|
|
1010
|
+
const n = Nr(e) ? e : new on(e), s = n.body, a = new rr(n);
|
|
1011
1011
|
let r = "", o = !1;
|
|
1012
|
-
for (; a.advance().kind !==
|
|
1013
|
-
const i = a.token, c = i.kind, l = !
|
|
1014
|
-
o && (l || i.kind ===
|
|
1012
|
+
for (; a.advance().kind !== b.EOF; ) {
|
|
1013
|
+
const i = a.token, c = i.kind, l = !ar(i.kind);
|
|
1014
|
+
o && (l || i.kind === b.SPREAD) && (r += " ");
|
|
1015
1015
|
const m = s.slice(i.start, i.end);
|
|
1016
|
-
c ===
|
|
1016
|
+
c === b.BLOCK_STRING ? r += sr(i.value, {
|
|
1017
1017
|
minimize: !0
|
|
1018
1018
|
}) : r += m, o = l;
|
|
1019
1019
|
}
|
|
1020
1020
|
return r;
|
|
1021
1021
|
}
|
|
1022
|
-
const
|
|
1022
|
+
const ln = Vt(
|
|
1023
1023
|
void 0
|
|
1024
1024
|
), Za = ({
|
|
1025
1025
|
children: e,
|
|
1026
1026
|
client: n
|
|
1027
|
-
}) => /* @__PURE__ */ t.jsx(
|
|
1027
|
+
}) => /* @__PURE__ */ t.jsx(ln.Provider, { value: n, children: e }), cn = (e, n, ...[s]) => ({
|
|
1028
1028
|
queryFn: () => e.fetch(n, s),
|
|
1029
|
-
queryKey: [
|
|
1030
|
-
}),
|
|
1031
|
-
const s =
|
|
1029
|
+
queryKey: [Sr(n.toString()), s]
|
|
1030
|
+
}), wr = (e, ...[n]) => {
|
|
1031
|
+
const s = us(ln);
|
|
1032
1032
|
if (s === void 0)
|
|
1033
1033
|
throw new Error("useGraphQL must be used within a GraphQLProvider");
|
|
1034
|
-
return
|
|
1034
|
+
return cn(s, e, ...n === void 0 ? [] : [n]);
|
|
1035
1035
|
};
|
|
1036
|
-
class
|
|
1036
|
+
class ee extends String {
|
|
1037
1037
|
__apiType;
|
|
1038
1038
|
value;
|
|
1039
1039
|
__meta__;
|
|
@@ -1044,7 +1044,7 @@ class Y extends String {
|
|
|
1044
1044
|
return this.value;
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
|
-
const
|
|
1047
|
+
const Tr = new ee(
|
|
1048
1048
|
`
|
|
1049
1049
|
fragment OperationsFragment on OperationItem {
|
|
1050
1050
|
slug
|
|
@@ -1116,7 +1116,7 @@ const wr = new Y(
|
|
|
1116
1116
|
}
|
|
1117
1117
|
`,
|
|
1118
1118
|
{ fragmentName: "OperationsFragment" }
|
|
1119
|
-
),
|
|
1119
|
+
), Ar = new ee(`
|
|
1120
1120
|
query ServersQuery($input: JSON!, $type: SchemaType!) {
|
|
1121
1121
|
schema(input: $input, type: $type) {
|
|
1122
1122
|
url
|
|
@@ -1125,13 +1125,13 @@ const wr = new Y(
|
|
|
1125
1125
|
}
|
|
1126
1126
|
}
|
|
1127
1127
|
}
|
|
1128
|
-
`),
|
|
1128
|
+
`), $r = new ee(`
|
|
1129
1129
|
query SchemaWarmup($input: JSON!, $type: SchemaType!) {
|
|
1130
1130
|
schema(input: $input, type: $type) {
|
|
1131
1131
|
openapi
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
|
-
`),
|
|
1134
|
+
`), Pr = new ee(`
|
|
1135
1135
|
query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
|
|
1136
1136
|
schema(input: $input, type: $type) {
|
|
1137
1137
|
servers {
|
|
@@ -1230,7 +1230,7 @@ const wr = new Y(
|
|
|
1230
1230
|
schema
|
|
1231
1231
|
}
|
|
1232
1232
|
}
|
|
1233
|
-
}`), Or = new
|
|
1233
|
+
}`), Or = new ee(`
|
|
1234
1234
|
query GetSchemas($input: JSON!, $type: SchemaType!) {
|
|
1235
1235
|
schema(input: $input, type: $type) {
|
|
1236
1236
|
title
|
|
@@ -1245,7 +1245,7 @@ const wr = new Y(
|
|
|
1245
1245
|
}
|
|
1246
1246
|
}
|
|
1247
1247
|
}
|
|
1248
|
-
`),
|
|
1248
|
+
`), Lr = new ee(`
|
|
1249
1249
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
1250
1250
|
schema(input: $input, type: $type) {
|
|
1251
1251
|
url
|
|
@@ -1254,7 +1254,7 @@ const wr = new Y(
|
|
|
1254
1254
|
}
|
|
1255
1255
|
}
|
|
1256
1256
|
}
|
|
1257
|
-
`),
|
|
1257
|
+
`), Er = new ee(`
|
|
1258
1258
|
query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
|
|
1259
1259
|
schema(input: $input, type: $type) {
|
|
1260
1260
|
extensions
|
|
@@ -1278,27 +1278,27 @@ const wr = new Y(
|
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
1280
|
`), kr = {
|
|
1281
|
-
"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n":
|
|
1282
|
-
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n servers {\n url\n description\n }\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\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 examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n":
|
|
1283
|
-
"\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n":
|
|
1284
|
-
"\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n extensions\n next {\n name\n slug\n extensions\n }\n prev {\n name\n slug\n extensions\n }\n }\n }\n }\n":
|
|
1281
|
+
"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Ar,
|
|
1282
|
+
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n servers {\n url\n description\n }\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\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 examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": Tr,
|
|
1283
|
+
"\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": $r,
|
|
1284
|
+
"\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n extensions\n next {\n name\n slug\n extensions\n }\n prev {\n name\n slug\n extensions\n }\n }\n }\n }\n": Pr,
|
|
1285
1285
|
"\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }\n": Or,
|
|
1286
|
-
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n":
|
|
1287
|
-
"\n query GetNavigationOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n extensions\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n":
|
|
1286
|
+
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Lr,
|
|
1287
|
+
"\n query GetNavigationOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n extensions\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n": Er
|
|
1288
1288
|
};
|
|
1289
|
-
function
|
|
1289
|
+
function Rr(e) {
|
|
1290
1290
|
return kr[e] ?? {};
|
|
1291
1291
|
}
|
|
1292
1292
|
function B({
|
|
1293
1293
|
...e
|
|
1294
1294
|
}) {
|
|
1295
|
-
return /* @__PURE__ */ t.jsx(
|
|
1295
|
+
return /* @__PURE__ */ t.jsx(st.Root, { "data-slot": "collapsible", ...e });
|
|
1296
1296
|
}
|
|
1297
1297
|
function de({
|
|
1298
1298
|
...e
|
|
1299
1299
|
}) {
|
|
1300
1300
|
return /* @__PURE__ */ t.jsx(
|
|
1301
|
-
|
|
1301
|
+
st.CollapsibleTrigger,
|
|
1302
1302
|
{
|
|
1303
1303
|
"data-slot": "collapsible-trigger",
|
|
1304
1304
|
...e
|
|
@@ -1309,14 +1309,14 @@ function _({
|
|
|
1309
1309
|
...e
|
|
1310
1310
|
}) {
|
|
1311
1311
|
return /* @__PURE__ */ t.jsx(
|
|
1312
|
-
|
|
1312
|
+
st.CollapsibleContent,
|
|
1313
1313
|
{
|
|
1314
1314
|
"data-slot": "collapsible-content",
|
|
1315
1315
|
...e
|
|
1316
1316
|
}
|
|
1317
1317
|
);
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1319
|
+
function Ir() {
|
|
1320
1320
|
const n = navigator.userAgent.toLowerCase();
|
|
1321
1321
|
if (n.indexOf("win") !== -1)
|
|
1322
1322
|
return "windows";
|
|
@@ -1327,10 +1327,10 @@ function Rr() {
|
|
|
1327
1327
|
if (n.indexOf("x11") !== -1)
|
|
1328
1328
|
return "unix";
|
|
1329
1329
|
}
|
|
1330
|
-
function
|
|
1331
|
-
return
|
|
1330
|
+
function Dr() {
|
|
1331
|
+
return Ir() === "apple";
|
|
1332
1332
|
}
|
|
1333
|
-
const
|
|
1333
|
+
const Fr = {
|
|
1334
1334
|
other: {
|
|
1335
1335
|
alt: "Alt",
|
|
1336
1336
|
meta: "Ctrl",
|
|
@@ -1345,7 +1345,7 @@ const Dr = {
|
|
|
1345
1345
|
shift: "⇧",
|
|
1346
1346
|
option: "⌥"
|
|
1347
1347
|
}
|
|
1348
|
-
},
|
|
1348
|
+
}, zr = (e, n) => {
|
|
1349
1349
|
const s = e.toLowerCase().split("+"), a = s.includes("meta"), r = s.includes("shift"), o = s.includes("option") || s.includes("alt"), i = s.includes("ctrl"), c = e.split("+").pop(), l = E(n);
|
|
1350
1350
|
return G(() => {
|
|
1351
1351
|
l.current = n;
|
|
@@ -1359,24 +1359,24 @@ const Dr = {
|
|
|
1359
1359
|
}, [c, a, r, o, i]), {
|
|
1360
1360
|
trigger: () => l.current(),
|
|
1361
1361
|
label: s.map(
|
|
1362
|
-
(m) => m === "meta" || m === "ctrl" || m === "alt" || m === "shift" || m === "option" ? Dr
|
|
1362
|
+
(m) => m === "meta" || m === "ctrl" || m === "alt" || m === "shift" || m === "option" ? Fr[Dr() ? "apple" : "other"][m] : m
|
|
1363
1363
|
)
|
|
1364
1364
|
};
|
|
1365
|
-
},
|
|
1366
|
-
|
|
1365
|
+
}, Vr = Ze()(
|
|
1366
|
+
Ye(
|
|
1367
1367
|
(e) => ({
|
|
1368
1368
|
selectedServer: void 0,
|
|
1369
1369
|
setSelectedServer: (n) => e({ selectedServer: n })
|
|
1370
1370
|
}),
|
|
1371
1371
|
{ name: "zudoku-selected-server" }
|
|
1372
1372
|
)
|
|
1373
|
-
),
|
|
1374
|
-
const { selectedServer: n, setSelectedServer: s } =
|
|
1375
|
-
return { selectedServer:
|
|
1373
|
+
), Br = (e) => {
|
|
1374
|
+
const { selectedServer: n, setSelectedServer: s } = Vr();
|
|
1375
|
+
return { selectedServer: Bt(
|
|
1376
1376
|
() => n && e.some((r) => r.url === n) ? n : e.at(0)?.url ?? "",
|
|
1377
1377
|
[n, e]
|
|
1378
1378
|
), setSelectedServer: s };
|
|
1379
|
-
},
|
|
1379
|
+
}, dn = Q.forwardRef(
|
|
1380
1380
|
({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
1381
1381
|
"textarea",
|
|
1382
1382
|
{
|
|
@@ -1389,13 +1389,13 @@ const Dr = {
|
|
|
1389
1389
|
}
|
|
1390
1390
|
)
|
|
1391
1391
|
);
|
|
1392
|
-
|
|
1393
|
-
const
|
|
1392
|
+
dn.displayName = "Textarea";
|
|
1393
|
+
const Ee = (e = 0) => {
|
|
1394
1394
|
if (e === 0)
|
|
1395
1395
|
return "0 B";
|
|
1396
1396
|
const n = Math.floor(Math.log(e) / Math.log(1e3));
|
|
1397
1397
|
return `${(e / 1e3 ** n).toFixed(n ? 2 : 0)} ${n ? `${"kMGTPEZY"[n - 1]}B` : "B"}`;
|
|
1398
|
-
},
|
|
1398
|
+
}, Y = ({
|
|
1399
1399
|
children: e,
|
|
1400
1400
|
className: n
|
|
1401
1401
|
}) => /* @__PURE__ */ t.jsxs(
|
|
@@ -1416,7 +1416,7 @@ const ke = (e = 0) => {
|
|
|
1416
1416
|
),
|
|
1417
1417
|
children: [
|
|
1418
1418
|
/* @__PURE__ */ t.jsx(
|
|
1419
|
-
|
|
1419
|
+
En,
|
|
1420
1420
|
{
|
|
1421
1421
|
className: "group-data-[state=closed]:hidden shrink-0",
|
|
1422
1422
|
size: 14
|
|
@@ -1437,11 +1437,11 @@ const ke = (e = 0) => {
|
|
|
1437
1437
|
), H = ({
|
|
1438
1438
|
children: e,
|
|
1439
1439
|
className: n
|
|
1440
|
-
}) => /* @__PURE__ */ t.jsx("span", { className: w("font-semibold w-full text-start", n), children: e }),
|
|
1440
|
+
}) => /* @__PURE__ */ t.jsx("span", { className: w("font-semibold w-full text-start", n), children: e }), _r = ({
|
|
1441
1441
|
examples: e,
|
|
1442
1442
|
onSelect: n
|
|
1443
|
-
}) => /* @__PURE__ */ t.jsxs(
|
|
1444
|
-
/* @__PURE__ */ t.jsx(
|
|
1443
|
+
}) => /* @__PURE__ */ t.jsxs(Jt, { children: [
|
|
1444
|
+
/* @__PURE__ */ t.jsx(Wt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
1445
1445
|
q,
|
|
1446
1446
|
{
|
|
1447
1447
|
variant: "ghost",
|
|
@@ -1449,13 +1449,13 @@ const ke = (e = 0) => {
|
|
|
1449
1449
|
className: "hover:bg-accent hover:brightness-95 gap-2",
|
|
1450
1450
|
children: [
|
|
1451
1451
|
"Use Example",
|
|
1452
|
-
/* @__PURE__ */ t.jsx(
|
|
1452
|
+
/* @__PURE__ */ t.jsx(Je, { size: 14 })
|
|
1453
1453
|
]
|
|
1454
1454
|
}
|
|
1455
1455
|
) }),
|
|
1456
|
-
/* @__PURE__ */ t.jsx(
|
|
1457
|
-
/* @__PURE__ */ t.jsx(
|
|
1458
|
-
/* @__PURE__ */ t.jsx(
|
|
1456
|
+
/* @__PURE__ */ t.jsx(Kt, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ t.jsxs("div", { children: [
|
|
1457
|
+
/* @__PURE__ */ t.jsx(Os, { children: s.mediaType }),
|
|
1458
|
+
/* @__PURE__ */ t.jsx(Ls, {}),
|
|
1459
1459
|
/* @__PURE__ */ t.jsx(Es, { children: s.examples?.map((a) => /* @__PURE__ */ t.jsx(
|
|
1460
1460
|
Ae,
|
|
1461
1461
|
{
|
|
@@ -1472,7 +1472,7 @@ const ke = (e = 0) => {
|
|
|
1472
1472
|
a.name
|
|
1473
1473
|
)) })
|
|
1474
1474
|
] }, s.mediaType)) })
|
|
1475
|
-
] }),
|
|
1475
|
+
] }), un = Q.forwardRef(
|
|
1476
1476
|
({ className: e, type: n, ...s }, a) => /* @__PURE__ */ t.jsx(
|
|
1477
1477
|
"input",
|
|
1478
1478
|
{
|
|
@@ -1486,10 +1486,10 @@ const ke = (e = 0) => {
|
|
|
1486
1486
|
}
|
|
1487
1487
|
)
|
|
1488
1488
|
);
|
|
1489
|
-
|
|
1489
|
+
un.displayName = "Input";
|
|
1490
1490
|
const ye = (e, n) => {
|
|
1491
1491
|
const s = Q.forwardRef(({ className: a, asChild: r, ...o }, i) => {
|
|
1492
|
-
const c = r ?
|
|
1492
|
+
const c = r ? ks : e;
|
|
1493
1493
|
return Q.createElement(c, {
|
|
1494
1494
|
...o,
|
|
1495
1495
|
ref: i,
|
|
@@ -1497,16 +1497,16 @@ const ye = (e, n) => {
|
|
|
1497
1497
|
});
|
|
1498
1498
|
});
|
|
1499
1499
|
return s.displayName = typeof e == "string" ? `VariantComponent(${e})` : `VariantComponent(${e.displayName || e.name || "Component"})`, s;
|
|
1500
|
-
},
|
|
1500
|
+
}, ke = ye(
|
|
1501
1501
|
"div",
|
|
1502
1502
|
"grid grid-cols-[min-content_2fr_3fr] items-center gap-x-5 [&>*:last-child_[data-slot=remove-button]]:invisible"
|
|
1503
1503
|
), xe = ye(
|
|
1504
1504
|
"div",
|
|
1505
1505
|
"group h-9 hover:bg-accent/75 ps-4 pe-2 grid col-span-full grid-cols-subgrid items-center border-b"
|
|
1506
1506
|
), I = ye(
|
|
1507
|
-
|
|
1507
|
+
un,
|
|
1508
1508
|
"w-full truncate border-0 p-0 m-0 shadow-none text-xs focus-visible:ring-0 font-mono"
|
|
1509
|
-
),
|
|
1509
|
+
), at = ({
|
|
1510
1510
|
onClick: e,
|
|
1511
1511
|
className: n
|
|
1512
1512
|
}) => /* @__PURE__ */ t.jsx(
|
|
@@ -1521,7 +1521,7 @@ const ye = (e, n) => {
|
|
|
1521
1521
|
onClick: e,
|
|
1522
1522
|
type: "button",
|
|
1523
1523
|
"data-slot": "remove-button",
|
|
1524
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1524
|
+
children: /* @__PURE__ */ t.jsx(It, { size: 14 })
|
|
1525
1525
|
}
|
|
1526
1526
|
);
|
|
1527
1527
|
function ve({
|
|
@@ -1529,7 +1529,7 @@ function ve({
|
|
|
1529
1529
|
...n
|
|
1530
1530
|
}) {
|
|
1531
1531
|
return /* @__PURE__ */ t.jsx(
|
|
1532
|
-
|
|
1532
|
+
Tt.Root,
|
|
1533
1533
|
{
|
|
1534
1534
|
"data-slot": "checkbox",
|
|
1535
1535
|
className: w(
|
|
@@ -1538,17 +1538,17 @@ function ve({
|
|
|
1538
1538
|
),
|
|
1539
1539
|
...n,
|
|
1540
1540
|
children: /* @__PURE__ */ t.jsx(
|
|
1541
|
-
|
|
1541
|
+
Tt.Indicator,
|
|
1542
1542
|
{
|
|
1543
1543
|
"data-slot": "checkbox-indicator",
|
|
1544
1544
|
className: "grid place-content-center text-current transition-none",
|
|
1545
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1545
|
+
children: /* @__PURE__ */ t.jsx(Dt, { className: "size-3.5" })
|
|
1546
1546
|
}
|
|
1547
1547
|
)
|
|
1548
1548
|
}
|
|
1549
1549
|
);
|
|
1550
1550
|
}
|
|
1551
|
-
const
|
|
1551
|
+
const qr = ({ index: e, manager: n }) => {
|
|
1552
1552
|
const s = E(null), a = n.getValue(e, "value");
|
|
1553
1553
|
return /* @__PURE__ */ t.jsxs(xe, { children: [
|
|
1554
1554
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1573,7 +1573,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1573
1573
|
"span",
|
|
1574
1574
|
{
|
|
1575
1575
|
className: "text-xs truncate",
|
|
1576
|
-
title: `${a.name} (${
|
|
1576
|
+
title: `${a.name} (${Ee(a.size)})`,
|
|
1577
1577
|
children: a.name
|
|
1578
1578
|
}
|
|
1579
1579
|
)
|
|
@@ -1586,7 +1586,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1586
1586
|
size: "icon-xs",
|
|
1587
1587
|
className: "opacity-50 hover:opacity-100 hover:brightness-95 transition-opacity",
|
|
1588
1588
|
onClick: () => n.setValue(e, "value", ""),
|
|
1589
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1589
|
+
children: /* @__PURE__ */ t.jsx(Rn, { size: 13 })
|
|
1590
1590
|
}
|
|
1591
1591
|
)
|
|
1592
1592
|
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
@@ -1622,10 +1622,10 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1622
1622
|
}
|
|
1623
1623
|
)
|
|
1624
1624
|
] }),
|
|
1625
|
-
/* @__PURE__ */ t.jsx(
|
|
1625
|
+
/* @__PURE__ */ t.jsx(at, { ...n.getRemoveButtonProps(e) })
|
|
1626
1626
|
] })
|
|
1627
1627
|
] });
|
|
1628
|
-
},
|
|
1628
|
+
}, ot = (e) => {
|
|
1629
1629
|
const {
|
|
1630
1630
|
control: n,
|
|
1631
1631
|
name: s,
|
|
@@ -1637,9 +1637,9 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1637
1637
|
watch: c,
|
|
1638
1638
|
setFocus: l,
|
|
1639
1639
|
register: m
|
|
1640
|
-
} =
|
|
1640
|
+
} = oe(), { fields: d, append: f, remove: x } = Qt({ control: n, name: s }), h = c(s), v = E(-1), u = E(-1), y = D(
|
|
1641
1641
|
(g, C, T, A) => {
|
|
1642
|
-
(C === "value" || C === "name") && (
|
|
1642
|
+
(C === "value" || C === "name") && (v.current = g), i(`${s}.${g}.${C}`, T), A?.focus === "next" ? l(
|
|
1643
1643
|
C === "name" ? `${s}.${g}.value` : `${s}.${g + 1}.name`
|
|
1644
1644
|
) : A?.focus === "previous" && l(
|
|
1645
1645
|
C === "name" ? `${s}.${g - 1}.value` : `${s}.${g}.name`
|
|
@@ -1649,29 +1649,29 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1649
1649
|
), S = D(
|
|
1650
1650
|
(g) => r ? r(g) : !g.name && !g.value,
|
|
1651
1651
|
[r]
|
|
1652
|
-
),
|
|
1652
|
+
), R = D(
|
|
1653
1653
|
(g) => o ? o(g) : !!(g.name || g.value),
|
|
1654
1654
|
[o]
|
|
1655
1655
|
);
|
|
1656
1656
|
G(() => {
|
|
1657
|
-
if (!
|
|
1657
|
+
if (!h) return;
|
|
1658
1658
|
if (u.current === -1) {
|
|
1659
|
-
u.current =
|
|
1659
|
+
u.current = h.length, h.length === 0 && f(a, {
|
|
1660
1660
|
shouldFocus: !1
|
|
1661
1661
|
});
|
|
1662
1662
|
return;
|
|
1663
1663
|
}
|
|
1664
|
-
if (u.current =
|
|
1665
|
-
|
|
1664
|
+
if (u.current = h.length, h.length === 0) {
|
|
1665
|
+
f(a, {
|
|
1666
1666
|
shouldFocus: !1
|
|
1667
1667
|
});
|
|
1668
1668
|
return;
|
|
1669
1669
|
}
|
|
1670
|
-
if (
|
|
1670
|
+
if (h.length > 1) {
|
|
1671
1671
|
const C = [];
|
|
1672
|
-
for (let T = 0; T <
|
|
1673
|
-
const A =
|
|
1674
|
-
A && S(A) && !
|
|
1672
|
+
for (let T = 0; T < h.length - 1; T++) {
|
|
1673
|
+
const A = h[T];
|
|
1674
|
+
A && S(A) && !R(A) && C.push(T);
|
|
1675
1675
|
}
|
|
1676
1676
|
if (C.length > 0) {
|
|
1677
1677
|
const T = C[0];
|
|
@@ -1680,61 +1680,61 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1680
1680
|
const M = C[A];
|
|
1681
1681
|
M !== void 0 && x(M);
|
|
1682
1682
|
}
|
|
1683
|
-
if (
|
|
1684
|
-
const A =
|
|
1683
|
+
if (v.current === T) {
|
|
1684
|
+
const A = h.length - C.length;
|
|
1685
1685
|
T < A ? l(`${s}.${T}.name`) : T > 0 ? l(`${s}.${T - 1}.name`) : l(`${s}.0.name`);
|
|
1686
1686
|
}
|
|
1687
|
-
|
|
1687
|
+
v.current = -1;
|
|
1688
1688
|
}
|
|
1689
1689
|
}
|
|
1690
|
-
const g =
|
|
1691
|
-
g && !S(g) &&
|
|
1690
|
+
const g = h[h.length - 1];
|
|
1691
|
+
g && !S(g) && f(a, {
|
|
1692
1692
|
shouldFocus: !1
|
|
1693
1693
|
});
|
|
1694
1694
|
}, [
|
|
1695
|
-
f,
|
|
1696
1695
|
h,
|
|
1696
|
+
f,
|
|
1697
1697
|
x,
|
|
1698
1698
|
a,
|
|
1699
1699
|
S,
|
|
1700
1700
|
s,
|
|
1701
1701
|
l,
|
|
1702
|
-
|
|
1702
|
+
R
|
|
1703
1703
|
]), G(() => {
|
|
1704
|
-
if (!
|
|
1704
|
+
if (!h) return;
|
|
1705
1705
|
const g = [];
|
|
1706
|
-
for (let C = 0; C <
|
|
1707
|
-
const T =
|
|
1706
|
+
for (let C = 0; C < h.length; C++) {
|
|
1707
|
+
const T = h[C];
|
|
1708
1708
|
if (!T) continue;
|
|
1709
|
-
const A =
|
|
1709
|
+
const A = R(T);
|
|
1710
1710
|
T.active !== A && g.push(() => y(C, "active", A));
|
|
1711
1711
|
}
|
|
1712
|
-
g.length !== 0 &&
|
|
1713
|
-
}, [
|
|
1714
|
-
const
|
|
1712
|
+
g.length !== 0 && ms(() => g.forEach((C) => C()));
|
|
1713
|
+
}, [h, R, y]);
|
|
1714
|
+
const N = D(
|
|
1715
1715
|
(g) => {
|
|
1716
|
-
const C =
|
|
1716
|
+
const C = h?.[g];
|
|
1717
1717
|
return C ? S(C) : !0;
|
|
1718
1718
|
},
|
|
1719
|
-
[
|
|
1719
|
+
[h, S]
|
|
1720
1720
|
), j = D(
|
|
1721
1721
|
(g, C) => {
|
|
1722
1722
|
const T = C === "name" ? `${s}.${g}.value` : `${s}.${g + 1}.name`, A = C === "name" ? `${s}.${g - 1}.value` : `${s}.${g}.name`, M = C === "value" || g > 0;
|
|
1723
1723
|
return (L) => {
|
|
1724
1724
|
if (!(L.target instanceof HTMLInputElement)) return;
|
|
1725
|
-
const De = L.target.selectionStart === 0,
|
|
1726
|
-
L.key === "Enter" ? l(T) : L.key === "Backspace" && je && M || L.key === "ArrowLeft" && De && M ? (L.preventDefault(), l(A)) : L.key === "ArrowRight" &&
|
|
1725
|
+
const De = L.target.selectionStart === 0, ne = L.target.selectionStart === L.target.value.length, je = !L.target.value;
|
|
1726
|
+
L.key === "Enter" ? l(T) : L.key === "Backspace" && je && M || L.key === "ArrowLeft" && De && M ? (L.preventDefault(), l(A)) : L.key === "ArrowRight" && ne && (L.preventDefault(), l(T));
|
|
1727
1727
|
};
|
|
1728
1728
|
},
|
|
1729
1729
|
[s, l]
|
|
1730
|
-
),
|
|
1730
|
+
), O = D(
|
|
1731
1731
|
(g) => ({
|
|
1732
1732
|
...m(`${s}.${g}.name`),
|
|
1733
1733
|
onChange: (C) => y(g, "name", C.target.value),
|
|
1734
1734
|
onKeyDown: j(g, "name")
|
|
1735
1735
|
}),
|
|
1736
1736
|
[m, s, y, j]
|
|
1737
|
-
),
|
|
1737
|
+
), J = D(
|
|
1738
1738
|
(g) => ({
|
|
1739
1739
|
...m(`${s}.${g}.value`),
|
|
1740
1740
|
onChange: (C) => y(g, "value", C.target.value),
|
|
@@ -1745,16 +1745,16 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1745
1745
|
(g) => ({
|
|
1746
1746
|
...m(`${s}.${g}.active`),
|
|
1747
1747
|
checked: c(`${s}.${g}.active`) ?? !1,
|
|
1748
|
-
disabled:
|
|
1748
|
+
disabled: N(g),
|
|
1749
1749
|
onCheckedChange: (C) => {
|
|
1750
1750
|
y(g, "active", C === !0);
|
|
1751
1751
|
}
|
|
1752
1752
|
}),
|
|
1753
|
-
[s, m,
|
|
1753
|
+
[s, m, N, c, y]
|
|
1754
1754
|
), Ie = D(
|
|
1755
|
-
(g, C) =>
|
|
1756
|
-
[
|
|
1757
|
-
),
|
|
1755
|
+
(g, C) => h?.[g]?.[C],
|
|
1756
|
+
[h]
|
|
1757
|
+
), te = D(
|
|
1758
1758
|
(g) => ({
|
|
1759
1759
|
onClick: () => x(g),
|
|
1760
1760
|
disabled: g === d.length - 1
|
|
@@ -1763,52 +1763,52 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1763
1763
|
);
|
|
1764
1764
|
return {
|
|
1765
1765
|
fields: d,
|
|
1766
|
-
getNameInputProps:
|
|
1767
|
-
getValueInputProps:
|
|
1766
|
+
getNameInputProps: O,
|
|
1767
|
+
getValueInputProps: J,
|
|
1768
1768
|
getCheckboxProps: be,
|
|
1769
|
-
getRemoveButtonProps:
|
|
1769
|
+
getRemoveButtonProps: te,
|
|
1770
1770
|
setValue: y,
|
|
1771
1771
|
getValue: Ie
|
|
1772
1772
|
};
|
|
1773
|
-
},
|
|
1774
|
-
const { register: n, setValue: s, watch: a, control: r } =
|
|
1773
|
+
}, Mr = ({ content: e }) => {
|
|
1774
|
+
const { register: n, setValue: s, watch: a, control: r } = oe(), o = (e ?? []).flatMap((j) => j.examples), [i, c, l, m, d] = a([
|
|
1775
1775
|
"headers",
|
|
1776
1776
|
"file",
|
|
1777
1777
|
"bodyMode",
|
|
1778
1778
|
"body",
|
|
1779
1779
|
"multipartFormFields"
|
|
1780
|
-
]),
|
|
1780
|
+
]), f = E(null), [x, h] = k(!1), v = (j) => {
|
|
1781
1781
|
s("file", j), j && s(
|
|
1782
1782
|
"headers",
|
|
1783
1783
|
i.filter(
|
|
1784
|
-
(
|
|
1784
|
+
(O) => O.name.toLowerCase() !== "content-type" || !O.active
|
|
1785
1785
|
)
|
|
1786
1786
|
);
|
|
1787
1787
|
}, u = (j) => {
|
|
1788
|
-
const
|
|
1789
|
-
|
|
1788
|
+
const O = j.target.files?.[0] ?? null;
|
|
1789
|
+
v(O);
|
|
1790
1790
|
}, y = (j) => {
|
|
1791
|
-
j.preventDefault(), j.stopPropagation(),
|
|
1791
|
+
j.preventDefault(), j.stopPropagation(), h(!0);
|
|
1792
1792
|
}, S = (j) => {
|
|
1793
|
-
j.preventDefault(), j.stopPropagation(),
|
|
1794
|
-
},
|
|
1795
|
-
j.preventDefault(), j.stopPropagation(),
|
|
1796
|
-
const
|
|
1797
|
-
|
|
1798
|
-
},
|
|
1793
|
+
j.preventDefault(), j.stopPropagation(), h(!1);
|
|
1794
|
+
}, R = (j) => {
|
|
1795
|
+
j.preventDefault(), j.stopPropagation(), h(!1);
|
|
1796
|
+
const O = j.dataTransfer.files?.[0] ?? null;
|
|
1797
|
+
v(O);
|
|
1798
|
+
}, N = ot({
|
|
1799
1799
|
control: r,
|
|
1800
1800
|
name: "multipartFormFields",
|
|
1801
1801
|
defaultValue: { name: "", value: "", active: !1 },
|
|
1802
1802
|
isEmpty: (j) => j.value instanceof File ? !1 : !j.name && !j.value
|
|
1803
1803
|
});
|
|
1804
1804
|
return /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
|
|
1805
|
-
/* @__PURE__ */ t.jsxs(
|
|
1806
|
-
/* @__PURE__ */ t.jsx(
|
|
1805
|
+
/* @__PURE__ */ t.jsxs(Y, { className: "items-center", children: [
|
|
1806
|
+
/* @__PURE__ */ t.jsx(In, { size: 16 }),
|
|
1807
1807
|
/* @__PURE__ */ t.jsxs(H, { className: "flex items-center justify-between", children: [
|
|
1808
1808
|
"Body",
|
|
1809
1809
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center", children: [
|
|
1810
|
-
/* @__PURE__ */ t.jsxs(
|
|
1811
|
-
/* @__PURE__ */ t.jsx(
|
|
1810
|
+
/* @__PURE__ */ t.jsxs(Jt, { children: [
|
|
1811
|
+
/* @__PURE__ */ t.jsx(Wt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
1812
1812
|
he,
|
|
1813
1813
|
{
|
|
1814
1814
|
variant: "ghost",
|
|
@@ -1816,27 +1816,27 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1816
1816
|
className: "hover:bg-accent hover:brightness-95 gap-2",
|
|
1817
1817
|
children: [
|
|
1818
1818
|
l === "text" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1819
|
-
/* @__PURE__ */ t.jsx(
|
|
1819
|
+
/* @__PURE__ */ t.jsx(yt, { size: 14 }),
|
|
1820
1820
|
"Text"
|
|
1821
1821
|
] }) : l === "file" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1822
1822
|
/* @__PURE__ */ t.jsx(me, { size: 14 }),
|
|
1823
1823
|
"File"
|
|
1824
1824
|
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1825
|
-
/* @__PURE__ */ t.jsx(
|
|
1825
|
+
/* @__PURE__ */ t.jsx(vt, { size: 14 }),
|
|
1826
1826
|
"Multipart"
|
|
1827
1827
|
] }),
|
|
1828
|
-
/* @__PURE__ */ t.jsx(
|
|
1828
|
+
/* @__PURE__ */ t.jsx(Dn, { size: 14 })
|
|
1829
1829
|
]
|
|
1830
1830
|
}
|
|
1831
1831
|
) }),
|
|
1832
|
-
/* @__PURE__ */ t.jsxs(
|
|
1832
|
+
/* @__PURE__ */ t.jsxs(Kt, { className: "min-w-40", children: [
|
|
1833
1833
|
/* @__PURE__ */ t.jsxs(
|
|
1834
1834
|
Ae,
|
|
1835
1835
|
{
|
|
1836
1836
|
onSelect: () => s("bodyMode", "text"),
|
|
1837
1837
|
className: "gap-2",
|
|
1838
1838
|
children: [
|
|
1839
|
-
/* @__PURE__ */ t.jsx(
|
|
1839
|
+
/* @__PURE__ */ t.jsx(yt, { size: 14 }),
|
|
1840
1840
|
/* @__PURE__ */ t.jsx("span", { className: "flex-1", children: "Text" }),
|
|
1841
1841
|
/* @__PURE__ */ t.jsx("span", { children: m.length > 0 && /* @__PURE__ */ t.jsx("div", { className: "w-1.5 h-1.5 bg-primary rounded-full" }) })
|
|
1842
1842
|
]
|
|
@@ -1860,7 +1860,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1860
1860
|
onSelect: () => s("bodyMode", "multipart"),
|
|
1861
1861
|
className: "gap-2",
|
|
1862
1862
|
children: [
|
|
1863
|
-
/* @__PURE__ */ t.jsx(
|
|
1863
|
+
/* @__PURE__ */ t.jsx(vt, { size: 14, strokeWidth: 1.5 }),
|
|
1864
1864
|
/* @__PURE__ */ t.jsx("span", { className: "flex-1", children: "Multipart" }),
|
|
1865
1865
|
/* @__PURE__ */ t.jsx("span", { children: d?.some((j) => j.active) && /* @__PURE__ */ t.jsx("div", { className: "w-1.5 h-1.5 bg-primary rounded-full" }) })
|
|
1866
1866
|
]
|
|
@@ -1871,7 +1871,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1871
1871
|
/* @__PURE__ */ t.jsx(
|
|
1872
1872
|
"input",
|
|
1873
1873
|
{
|
|
1874
|
-
ref:
|
|
1874
|
+
ref: f,
|
|
1875
1875
|
type: "file",
|
|
1876
1876
|
className: "hidden",
|
|
1877
1877
|
onChange: u
|
|
@@ -1879,15 +1879,15 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1879
1879
|
),
|
|
1880
1880
|
/* @__PURE__ */ t.jsx("div", { className: "w-px mx-1 h-5 bg-border" }),
|
|
1881
1881
|
e && o.length > 0 ? /* @__PURE__ */ t.jsx(
|
|
1882
|
-
|
|
1882
|
+
_r,
|
|
1883
1883
|
{
|
|
1884
1884
|
examples: e,
|
|
1885
|
-
onSelect: (j,
|
|
1885
|
+
onSelect: (j, O) => {
|
|
1886
1886
|
s("body", JSON.stringify(j.value, null, 2)), s("headers", [
|
|
1887
|
-
...i.filter((
|
|
1887
|
+
...i.filter((J) => J.name !== "Content-Type"),
|
|
1888
1888
|
{
|
|
1889
1889
|
name: "Content-Type",
|
|
1890
|
-
value:
|
|
1890
|
+
value: O,
|
|
1891
1891
|
active: !0
|
|
1892
1892
|
}
|
|
1893
1893
|
]);
|
|
@@ -1899,7 +1899,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1899
1899
|
] }),
|
|
1900
1900
|
/* @__PURE__ */ t.jsxs(_, { className: "CollapsibleContent flex flex-col gap-2", children: [
|
|
1901
1901
|
l === "text" && /* @__PURE__ */ t.jsx(
|
|
1902
|
-
|
|
1902
|
+
dn,
|
|
1903
1903
|
{
|
|
1904
1904
|
...n("body"),
|
|
1905
1905
|
className: w(
|
|
@@ -1918,13 +1918,13 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1918
1918
|
),
|
|
1919
1919
|
onDragOver: y,
|
|
1920
1920
|
onDragLeave: S,
|
|
1921
|
-
onDrop:
|
|
1921
|
+
onDrop: R,
|
|
1922
1922
|
children: [
|
|
1923
1923
|
/* @__PURE__ */ t.jsx(
|
|
1924
1924
|
"button",
|
|
1925
1925
|
{
|
|
1926
1926
|
type: "button",
|
|
1927
|
-
onClick: () =>
|
|
1927
|
+
onClick: () => f.current?.click(),
|
|
1928
1928
|
className: w(
|
|
1929
1929
|
"flex items-center justify-center gap-2 rounded-full size-20 p-0 border border-dashed border-muted-foreground/50 hover:bg-accent/75 transition-colors",
|
|
1930
1930
|
(c || x) && "border-solid",
|
|
@@ -1948,7 +1948,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1948
1948
|
" ",
|
|
1949
1949
|
/* @__PURE__ */ t.jsxs("span", { className: "text-muted-foreground", children: [
|
|
1950
1950
|
"(",
|
|
1951
|
-
|
|
1951
|
+
Ee(c.size),
|
|
1952
1952
|
")"
|
|
1953
1953
|
] })
|
|
1954
1954
|
] }),
|
|
@@ -1958,18 +1958,18 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1958
1958
|
type: "button",
|
|
1959
1959
|
variant: "ghost",
|
|
1960
1960
|
size: "icon-xxs",
|
|
1961
|
-
onClick: () =>
|
|
1962
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1961
|
+
onClick: () => v(null),
|
|
1962
|
+
children: /* @__PURE__ */ t.jsx(It, { size: 14 })
|
|
1963
1963
|
}
|
|
1964
1964
|
)
|
|
1965
1965
|
] }) : /* @__PURE__ */ t.jsx("span", { className: "text-lg font-semibold text-muted-foreground", children: "Select or drop a file" })
|
|
1966
1966
|
]
|
|
1967
1967
|
}
|
|
1968
1968
|
),
|
|
1969
|
-
l === "multipart" && /* @__PURE__ */ t.jsx(
|
|
1969
|
+
l === "multipart" && /* @__PURE__ */ t.jsx(ke, { children: N.fields.map((j, O) => /* @__PURE__ */ t.jsx(qr, { index: O, manager: N }, j.id)) })
|
|
1970
1970
|
] })
|
|
1971
1971
|
] });
|
|
1972
|
-
},
|
|
1972
|
+
}, Lt = (e, n, s) => {
|
|
1973
1973
|
const a = n.replace(/(:\w+|\{\w+})/g, (o) => {
|
|
1974
1974
|
const i = o.replace(/[:{}]/g, "");
|
|
1975
1975
|
return s.pathParams.find((l) => l.name === i)?.value ?? o;
|
|
@@ -1981,12 +1981,12 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1981
1981
|
r.searchParams.set(o.name, o.value);
|
|
1982
1982
|
}), r;
|
|
1983
1983
|
};
|
|
1984
|
-
function
|
|
1984
|
+
function Ur(e) {
|
|
1985
1985
|
return /^(application\/octet-stream|image\/|audio\/|video\/|font\/|application\/pdf|application\/zip|application\/x-protobuf|application\/x-binary)/i.test(
|
|
1986
1986
|
e
|
|
1987
1987
|
);
|
|
1988
1988
|
}
|
|
1989
|
-
const
|
|
1989
|
+
const Gr = (e, n) => {
|
|
1990
1990
|
const s = e.find(
|
|
1991
1991
|
([a]) => a.toLowerCase() === "content-disposition"
|
|
1992
1992
|
)?.[1];
|
|
@@ -2003,7 +2003,7 @@ const Ur = (e, n) => {
|
|
|
2003
2003
|
} catch {
|
|
2004
2004
|
return "download";
|
|
2005
2005
|
}
|
|
2006
|
-
},
|
|
2006
|
+
}, Hr = $e.Root, mn = Q.forwardRef(({ className: e, align: n = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ t.jsx($e.Portal, { children: /* @__PURE__ */ t.jsx(
|
|
2007
2007
|
$e.Content,
|
|
2008
2008
|
{
|
|
2009
2009
|
ref: r,
|
|
@@ -2016,8 +2016,8 @@ const Ur = (e, n) => {
|
|
|
2016
2016
|
...a
|
|
2017
2017
|
}
|
|
2018
2018
|
) }));
|
|
2019
|
-
|
|
2020
|
-
const
|
|
2019
|
+
mn.displayName = $e.Content.displayName;
|
|
2020
|
+
const Qr = ({
|
|
2021
2021
|
value: e,
|
|
2022
2022
|
options: n,
|
|
2023
2023
|
onChange: s,
|
|
@@ -2028,36 +2028,36 @@ const Hr = ({
|
|
|
2028
2028
|
ref: c,
|
|
2029
2029
|
onSelect: l
|
|
2030
2030
|
}) => {
|
|
2031
|
-
const [m, d] =
|
|
2032
|
-
return /* @__PURE__ */ t.jsxs(
|
|
2033
|
-
/* @__PURE__ */ t.jsx(
|
|
2034
|
-
|
|
2031
|
+
const [m, d] = k(!1), [f, x] = k(!1), h = Is((u) => u.filtered.count), v = E(null);
|
|
2032
|
+
return /* @__PURE__ */ t.jsxs(Hr, { open: m, children: [
|
|
2033
|
+
/* @__PURE__ */ t.jsx(Rs, { children: /* @__PURE__ */ t.jsx(
|
|
2034
|
+
Fs,
|
|
2035
2035
|
{
|
|
2036
2036
|
autoComplete: "off",
|
|
2037
2037
|
ref: (u) => {
|
|
2038
|
-
|
|
2038
|
+
v.current = u, typeof c == "function" ? c(u) : c && (c.current = u);
|
|
2039
2039
|
},
|
|
2040
2040
|
value: e ? String(e) : void 0,
|
|
2041
2041
|
placeholder: r,
|
|
2042
2042
|
className: w("h-9 bg-transparent", a),
|
|
2043
2043
|
onFocus: () => d(!0),
|
|
2044
2044
|
onBlur: () => {
|
|
2045
|
-
|
|
2045
|
+
f || d(!1);
|
|
2046
2046
|
},
|
|
2047
2047
|
onKeyDown: (u) => {
|
|
2048
|
-
i?.(u), !u.defaultPrevented && u.key === "Enter" && (d(!1),
|
|
2048
|
+
i?.(u), !u.defaultPrevented && u.key === "Enter" && (d(!1), v.current?.blur(), o?.(u));
|
|
2049
2049
|
},
|
|
2050
2050
|
onValueChange: (u) => s(u)
|
|
2051
2051
|
}
|
|
2052
2052
|
) }),
|
|
2053
2053
|
/* @__PURE__ */ t.jsx(
|
|
2054
|
-
|
|
2054
|
+
mn,
|
|
2055
2055
|
{
|
|
2056
2056
|
onMouseEnter: () => x(!0),
|
|
2057
2057
|
onMouseLeave: () => x(!1),
|
|
2058
2058
|
onOpenAutoFocus: (u) => u.preventDefault(),
|
|
2059
2059
|
className: w("p-0 w-(--radix-popover-trigger-width)", {
|
|
2060
|
-
"border-0":
|
|
2060
|
+
"border-0": h === 0
|
|
2061
2061
|
}),
|
|
2062
2062
|
align: "start",
|
|
2063
2063
|
side: "bottom",
|
|
@@ -2067,8 +2067,8 @@ const Hr = ({
|
|
|
2067
2067
|
onTouchMove: (u) => {
|
|
2068
2068
|
u.stopPropagation();
|
|
2069
2069
|
},
|
|
2070
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2071
|
-
|
|
2070
|
+
children: /* @__PURE__ */ t.jsx(zs, { className: "max-h-[140px]", children: n.map((u) => /* @__PURE__ */ t.jsx(
|
|
2071
|
+
Vs,
|
|
2072
2072
|
{
|
|
2073
2073
|
value: u,
|
|
2074
2074
|
onSelect: (y) => {
|
|
@@ -2082,7 +2082,7 @@ const Hr = ({
|
|
|
2082
2082
|
}
|
|
2083
2083
|
)
|
|
2084
2084
|
] });
|
|
2085
|
-
},
|
|
2085
|
+
}, Pe = ({ shouldFilter: e, ...n }) => /* @__PURE__ */ t.jsx(Ds, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ t.jsx(Qr, { ...n }) }), Jr = Object.freeze([
|
|
2086
2086
|
"Accept",
|
|
2087
2087
|
"Accept-Encoding",
|
|
2088
2088
|
"Accept-Language",
|
|
@@ -2109,16 +2109,16 @@ const Hr = ({
|
|
|
2109
2109
|
"Set-Cookie",
|
|
2110
2110
|
"User-Agent",
|
|
2111
2111
|
"X-Requested-With"
|
|
2112
|
-
]),
|
|
2112
|
+
]), Wr = ({
|
|
2113
2113
|
control: e,
|
|
2114
2114
|
schemaHeaders: n,
|
|
2115
2115
|
lockedHeaders: s
|
|
2116
2116
|
}) => {
|
|
2117
|
-
const { watch: a, formState: r } =
|
|
2117
|
+
const { watch: a, formState: r } = oe(), o = a("headers"), i = ot({
|
|
2118
2118
|
control: e,
|
|
2119
2119
|
name: "headers",
|
|
2120
2120
|
defaultValue: { name: "", value: "", active: !1 }
|
|
2121
|
-
}), c = n.filter((d) => !o.some((
|
|
2121
|
+
}), c = n.filter((d) => !o.some((f) => f.name === d.name)).map(({ name: d }) => d), l = i.fields.flatMap((d, f) => !s?.map((h) => h.toLowerCase()).includes(d.name.toLowerCase()) ? [] : [f]), m = s?.map((d) => ({
|
|
2122
2122
|
name: d,
|
|
2123
2123
|
id: `locked-${d}`,
|
|
2124
2124
|
value: "••••••••••",
|
|
@@ -2126,58 +2126,58 @@ const Hr = ({
|
|
|
2126
2126
|
locked: !0
|
|
2127
2127
|
})) ?? [];
|
|
2128
2128
|
return /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
|
|
2129
|
-
/* @__PURE__ */ t.jsxs(
|
|
2130
|
-
/* @__PURE__ */ t.jsx(
|
|
2129
|
+
/* @__PURE__ */ t.jsxs(Y, { children: [
|
|
2130
|
+
/* @__PURE__ */ t.jsx(Fn, { size: 14 }),
|
|
2131
2131
|
/* @__PURE__ */ t.jsx(H, { children: "Headers" })
|
|
2132
2132
|
] }),
|
|
2133
|
-
/* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ t.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ t.jsxs(
|
|
2134
|
-
m.map((d) => /* @__PURE__ */ t.jsxs(
|
|
2135
|
-
/* @__PURE__ */ t.jsx(
|
|
2133
|
+
/* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ t.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ t.jsxs(ke, { children: [
|
|
2134
|
+
m.map((d) => /* @__PURE__ */ t.jsxs(Nt, { children: [
|
|
2135
|
+
/* @__PURE__ */ t.jsx(St, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
2136
2136
|
xe,
|
|
2137
2137
|
{
|
|
2138
2138
|
className: "opacity-50 cursor-not-allowed font-mono text-xs min-h-10",
|
|
2139
2139
|
children: [
|
|
2140
|
-
/* @__PURE__ */ t.jsx(
|
|
2140
|
+
/* @__PURE__ */ t.jsx(zn, { size: 16 }),
|
|
2141
2141
|
/* @__PURE__ */ t.jsx(I, { value: d.name, disabled: !0 }),
|
|
2142
2142
|
/* @__PURE__ */ t.jsx("div", { children: d.value })
|
|
2143
2143
|
]
|
|
2144
2144
|
},
|
|
2145
2145
|
d.id
|
|
2146
2146
|
) }),
|
|
2147
|
-
/* @__PURE__ */ t.jsx(
|
|
2147
|
+
/* @__PURE__ */ t.jsx(wt, { alignOffset: 10, side: "bottom", align: "start", children: /* @__PURE__ */ t.jsx("p", { children: "This header is set by the selected authentication." }) })
|
|
2148
2148
|
] }, d.id)),
|
|
2149
|
-
i.fields.map((d,
|
|
2149
|
+
i.fields.map((d, f) => {
|
|
2150
2150
|
const x = n.find(
|
|
2151
|
-
(S) => S.name === o.at(
|
|
2152
|
-
),
|
|
2151
|
+
(S) => S.name === o.at(f)?.name
|
|
2152
|
+
), h = x?.enum && x.enum.length > 0, v = l.includes(f), u = i.getNameInputProps(f), y = i.getValueInputProps(f);
|
|
2153
2153
|
return /* @__PURE__ */ t.jsxs(
|
|
2154
2154
|
xe,
|
|
2155
2155
|
{
|
|
2156
2156
|
className: w(
|
|
2157
|
-
|
|
2158
|
-
|
|
2157
|
+
v && "text-amber-600",
|
|
2158
|
+
v && !r.dirtyFields.headers?.[f]?.value && "hidden"
|
|
2159
2159
|
),
|
|
2160
2160
|
children: [
|
|
2161
2161
|
/* @__PURE__ */ t.jsx(
|
|
2162
2162
|
ve,
|
|
2163
2163
|
{
|
|
2164
|
-
className: w(
|
|
2165
|
-
...i.getCheckboxProps(
|
|
2164
|
+
className: w(v && "hidden"),
|
|
2165
|
+
...i.getCheckboxProps(f)
|
|
2166
2166
|
}
|
|
2167
2167
|
),
|
|
2168
|
-
/* @__PURE__ */ t.jsxs(
|
|
2169
|
-
/* @__PURE__ */ t.jsx(
|
|
2170
|
-
|
|
2168
|
+
/* @__PURE__ */ t.jsxs(Nt, { children: [
|
|
2169
|
+
/* @__PURE__ */ t.jsx(St, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
2170
|
+
Vn,
|
|
2171
2171
|
{
|
|
2172
2172
|
className: w(
|
|
2173
2173
|
"text-amber-600",
|
|
2174
|
-
!
|
|
2174
|
+
!v && "hidden"
|
|
2175
2175
|
),
|
|
2176
2176
|
size: 16
|
|
2177
2177
|
}
|
|
2178
2178
|
) }),
|
|
2179
2179
|
/* @__PURE__ */ t.jsx(
|
|
2180
|
-
|
|
2180
|
+
wt,
|
|
2181
2181
|
{
|
|
2182
2182
|
alignOffset: 10,
|
|
2183
2183
|
side: "bottom",
|
|
@@ -2187,26 +2187,26 @@ const Hr = ({
|
|
|
2187
2187
|
)
|
|
2188
2188
|
] }),
|
|
2189
2189
|
/* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
2190
|
-
|
|
2190
|
+
Pe,
|
|
2191
2191
|
{
|
|
2192
2192
|
...u,
|
|
2193
|
-
value: String(i.getValue(
|
|
2193
|
+
value: String(i.getValue(f, "name")),
|
|
2194
2194
|
placeholder: "Name",
|
|
2195
|
-
options: [...c, ...
|
|
2196
|
-
onChange: (S) => i.setValue(
|
|
2197
|
-
onSelect: (S) => i.setValue(
|
|
2195
|
+
options: [...c, ...Jr],
|
|
2196
|
+
onChange: (S) => i.setValue(f, "name", S),
|
|
2197
|
+
onSelect: (S) => i.setValue(f, "name", S, { focus: "next" })
|
|
2198
2198
|
}
|
|
2199
2199
|
) }),
|
|
2200
2200
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2201
|
-
|
|
2202
|
-
|
|
2201
|
+
h ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
2202
|
+
Pe,
|
|
2203
2203
|
{
|
|
2204
2204
|
...y,
|
|
2205
|
-
value: String(i.getValue(
|
|
2205
|
+
value: String(i.getValue(f, "value")),
|
|
2206
2206
|
shouldFilter: !1,
|
|
2207
2207
|
options: x.enum ?? [],
|
|
2208
|
-
onChange: (S) => i.setValue(
|
|
2209
|
-
onSelect: (S) => i.setValue(
|
|
2208
|
+
onChange: (S) => i.setValue(f, "value", S),
|
|
2209
|
+
onSelect: (S) => i.setValue(f, "value", S, { focus: "next" })
|
|
2210
2210
|
}
|
|
2211
2211
|
) }) : /* @__PURE__ */ t.jsx(
|
|
2212
2212
|
I,
|
|
@@ -2217,9 +2217,9 @@ const Hr = ({
|
|
|
2217
2217
|
}
|
|
2218
2218
|
),
|
|
2219
2219
|
/* @__PURE__ */ t.jsx(
|
|
2220
|
-
|
|
2220
|
+
at,
|
|
2221
2221
|
{
|
|
2222
|
-
...i.getRemoveButtonProps(
|
|
2222
|
+
...i.getRemoveButtonProps(f)
|
|
2223
2223
|
}
|
|
2224
2224
|
)
|
|
2225
2225
|
] })
|
|
@@ -2230,18 +2230,18 @@ const Hr = ({
|
|
|
2230
2230
|
})
|
|
2231
2231
|
] }) }) }) })
|
|
2232
2232
|
] });
|
|
2233
|
-
},
|
|
2233
|
+
}, Kr = _s(
|
|
2234
2234
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
2235
2235
|
), Re = Q.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
2236
|
-
|
|
2236
|
+
Xt.Root,
|
|
2237
2237
|
{
|
|
2238
2238
|
ref: s,
|
|
2239
|
-
className: w(
|
|
2239
|
+
className: w(Kr(), e),
|
|
2240
2240
|
...n
|
|
2241
2241
|
}
|
|
2242
2242
|
));
|
|
2243
|
-
Re.displayName =
|
|
2244
|
-
const
|
|
2243
|
+
Re.displayName = Xt.Root.displayName;
|
|
2244
|
+
const pn = Q.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
2245
2245
|
fe.Root,
|
|
2246
2246
|
{
|
|
2247
2247
|
className: w("grid gap-2", e),
|
|
@@ -2249,8 +2249,8 @@ const un = Q.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
|
2249
2249
|
ref: s
|
|
2250
2250
|
}
|
|
2251
2251
|
));
|
|
2252
|
-
|
|
2253
|
-
const
|
|
2252
|
+
pn.displayName = fe.Root.displayName;
|
|
2253
|
+
const hn = Q.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
2254
2254
|
fe.Item,
|
|
2255
2255
|
{
|
|
2256
2256
|
ref: s,
|
|
@@ -2259,16 +2259,16 @@ const mn = Q.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
|
2259
2259
|
e
|
|
2260
2260
|
),
|
|
2261
2261
|
...n,
|
|
2262
|
-
children: /* @__PURE__ */ t.jsx(fe.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ t.jsx(
|
|
2262
|
+
children: /* @__PURE__ */ t.jsx(fe.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ t.jsx(Bn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
2263
2263
|
}
|
|
2264
2264
|
));
|
|
2265
|
-
|
|
2266
|
-
const
|
|
2265
|
+
hn.displayName = fe.Item.displayName;
|
|
2266
|
+
const fn = ({
|
|
2267
2267
|
identities: e,
|
|
2268
2268
|
setValue: n,
|
|
2269
2269
|
value: s
|
|
2270
2270
|
}) => /* @__PURE__ */ t.jsx("div", { className: "w-full overflow-hidden", children: /* @__PURE__ */ t.jsx(
|
|
2271
|
-
|
|
2271
|
+
pn,
|
|
2272
2272
|
{
|
|
2273
2273
|
onValueChange: (a) => n(a),
|
|
2274
2274
|
value: s,
|
|
@@ -2281,7 +2281,7 @@ const pn = ({
|
|
|
2281
2281
|
{
|
|
2282
2282
|
className: "h-10 items-center border-b font-normal flex gap-4 p-4 cursor-pointer hover:bg-accent/75",
|
|
2283
2283
|
children: [
|
|
2284
|
-
/* @__PURE__ */ t.jsx(
|
|
2284
|
+
/* @__PURE__ */ t.jsx(hn, { value: a.id, id: a.id }),
|
|
2285
2285
|
/* @__PURE__ */ t.jsx("span", { children: a.label })
|
|
2286
2286
|
]
|
|
2287
2287
|
},
|
|
@@ -2289,25 +2289,25 @@ const pn = ({
|
|
|
2289
2289
|
)
|
|
2290
2290
|
)
|
|
2291
2291
|
}
|
|
2292
|
-
) }),
|
|
2292
|
+
) }), Xr = ({
|
|
2293
2293
|
onSubmit: e,
|
|
2294
2294
|
identities: n,
|
|
2295
2295
|
open: s,
|
|
2296
2296
|
onOpenChange: a
|
|
2297
2297
|
}) => {
|
|
2298
|
-
const [r, o] =
|
|
2299
|
-
return /* @__PURE__ */ t.jsx(
|
|
2300
|
-
/* @__PURE__ */ t.jsx(
|
|
2301
|
-
/* @__PURE__ */ t.jsx(
|
|
2302
|
-
/* @__PURE__ */ t.jsx(
|
|
2303
|
-
|
|
2298
|
+
const [r, o] = k(void 0), [i, c] = k(!1);
|
|
2299
|
+
return /* @__PURE__ */ t.jsx(et, { open: s, onOpenChange: a, children: /* @__PURE__ */ t.jsxs(tt, { children: [
|
|
2300
|
+
/* @__PURE__ */ t.jsx(nt, { children: "Select an auth identity" }),
|
|
2301
|
+
/* @__PURE__ */ t.jsx(_t, { children: "Please select an identity for this request." }),
|
|
2302
|
+
/* @__PURE__ */ t.jsx(Bs, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ t.jsx(
|
|
2303
|
+
fn,
|
|
2304
2304
|
{
|
|
2305
2305
|
identities: n,
|
|
2306
2306
|
setValue: o,
|
|
2307
2307
|
value: r
|
|
2308
2308
|
}
|
|
2309
2309
|
) }),
|
|
2310
|
-
/* @__PURE__ */ t.jsxs(
|
|
2310
|
+
/* @__PURE__ */ t.jsxs(qt, { className: "flex flex-col gap-2", children: [
|
|
2311
2311
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2312
2312
|
/* @__PURE__ */ t.jsx(
|
|
2313
2313
|
ve,
|
|
@@ -2332,22 +2332,22 @@ const pn = ({
|
|
|
2332
2332
|
] }) });
|
|
2333
2333
|
}, Ue = (e) => Math.abs(
|
|
2334
2334
|
Number.isNaN(Number(e)) ? e.toLowerCase().charCodeAt(0) - 96 : Number.isNaN(Number(e)) ? 0 : Number(e)
|
|
2335
|
-
), Ge = (e) => e.length > 1 ? Number(e.split("").reduce((n, s) => `${Ue(n) + Ue(s)}`)) : Ue(e),
|
|
2335
|
+
), Ge = (e) => e.length > 1 ? Number(e.split("").reduce((n, s) => `${Ue(n) + Ue(s)}`)) : Ue(e), Et = (e, n = {}) => {
|
|
2336
2336
|
const s = (3 * Ge(e) + 2 * Ge(e) + Ge(e)) % 360, { saturation: a = 75, lightness: r = 60 } = n;
|
|
2337
2337
|
return `${s}deg ${a}% ${r}%`;
|
|
2338
|
-
}, He = "data-linked-param",
|
|
2339
|
-
const { resolvedTheme: n } =
|
|
2338
|
+
}, He = "data-linked-param", Zr = (e) => {
|
|
2339
|
+
const { resolvedTheme: n } = xs();
|
|
2340
2340
|
return {
|
|
2341
|
-
text:
|
|
2341
|
+
text: Et(
|
|
2342
2342
|
e,
|
|
2343
2343
|
n === "light" ? { saturation: 95, lightness: 38 } : {}
|
|
2344
2344
|
),
|
|
2345
|
-
background:
|
|
2345
|
+
background: Et(
|
|
2346
2346
|
e,
|
|
2347
2347
|
n === "light" ? { saturation: 85, lightness: 40 } : {}
|
|
2348
2348
|
)
|
|
2349
2349
|
};
|
|
2350
|
-
},
|
|
2350
|
+
}, gn = ({
|
|
2351
2351
|
name: e,
|
|
2352
2352
|
className: n,
|
|
2353
2353
|
slug: s,
|
|
@@ -2355,10 +2355,10 @@ const pn = ({
|
|
|
2355
2355
|
children: r,
|
|
2356
2356
|
onClick: o
|
|
2357
2357
|
}) => {
|
|
2358
|
-
const i = E(null), c = s?.replace(/[{}]/g, ""), l = e.replace(/[{}]/g, ""), { text: m, background: d } =
|
|
2358
|
+
const i = E(null), c = s?.replace(/[{}]/g, ""), l = e.replace(/[{}]/g, ""), { text: m, background: d } = Zr(l), f = `hsl(${m} / 100%)`, x = `hsl(${d} / 10%)`, h = `hsl(${d} / 50%)`;
|
|
2359
2359
|
return G(() => {
|
|
2360
2360
|
if (!c || !i.current) return;
|
|
2361
|
-
const
|
|
2361
|
+
const v = () => {
|
|
2362
2362
|
document.querySelectorAll(`[${He}="${c}"]`).forEach((S) => {
|
|
2363
2363
|
S instanceof HTMLElement && (S.dataset.active = "true");
|
|
2364
2364
|
});
|
|
@@ -2367,8 +2367,8 @@ const pn = ({
|
|
|
2367
2367
|
S instanceof HTMLElement && (S.dataset.active = "false");
|
|
2368
2368
|
});
|
|
2369
2369
|
}, y = i.current;
|
|
2370
|
-
return y.addEventListener("mouseenter",
|
|
2371
|
-
y.removeEventListener("mouseenter",
|
|
2370
|
+
return y.addEventListener("mouseenter", v), y.addEventListener("mouseleave", u), () => {
|
|
2371
|
+
y.removeEventListener("mouseenter", v), y.removeEventListener("mouseleave", u);
|
|
2372
2372
|
};
|
|
2373
2373
|
}, [c]), // biome-ignore lint/a11y/noStaticElementInteractions: Just passing props through
|
|
2374
2374
|
// biome-ignore lint/a11y/useKeyWithClickEvents: Just passing props through
|
|
@@ -2388,31 +2388,31 @@ const pn = ({
|
|
|
2388
2388
|
ref: i,
|
|
2389
2389
|
onClick: o,
|
|
2390
2390
|
style: {
|
|
2391
|
-
"--param-color":
|
|
2392
|
-
"--border-color":
|
|
2391
|
+
"--param-color": f,
|
|
2392
|
+
"--border-color": h,
|
|
2393
2393
|
"--background-color": x
|
|
2394
2394
|
},
|
|
2395
2395
|
children: r ?? e
|
|
2396
2396
|
}
|
|
2397
2397
|
);
|
|
2398
|
-
},
|
|
2398
|
+
}, Yr = ({
|
|
2399
2399
|
control: e,
|
|
2400
2400
|
url: n
|
|
2401
2401
|
}) => {
|
|
2402
|
-
const { fields: s } =
|
|
2402
|
+
const { fields: s } = Qt({
|
|
2403
2403
|
control: e,
|
|
2404
2404
|
name: "pathParams"
|
|
2405
2405
|
}), a = [...s].sort(
|
|
2406
2406
|
(r, o) => n.indexOf(`{${r.name}}`) - n.indexOf(`{${o.name}}`)
|
|
2407
2407
|
);
|
|
2408
|
-
return /* @__PURE__ */ t.jsx(
|
|
2408
|
+
return /* @__PURE__ */ t.jsx(ke, { children: a.map((r, o) => /* @__PURE__ */ t.jsxs(xe, { children: [
|
|
2409
2409
|
/* @__PURE__ */ t.jsx(
|
|
2410
|
-
|
|
2410
|
+
Ct,
|
|
2411
2411
|
{
|
|
2412
2412
|
control: e,
|
|
2413
2413
|
name: `pathParams.${o}.name`,
|
|
2414
2414
|
render: () => /* @__PURE__ */ t.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ t.jsx(
|
|
2415
|
-
|
|
2415
|
+
gn,
|
|
2416
2416
|
{
|
|
2417
2417
|
slug: r.name,
|
|
2418
2418
|
name: r.name,
|
|
@@ -2422,7 +2422,7 @@ const pn = ({
|
|
|
2422
2422
|
}
|
|
2423
2423
|
),
|
|
2424
2424
|
/* @__PURE__ */ t.jsx("div", { className: "flex justify-between items-center col-span-2", children: /* @__PURE__ */ t.jsx(
|
|
2425
|
-
|
|
2425
|
+
Ct,
|
|
2426
2426
|
{
|
|
2427
2427
|
control: e,
|
|
2428
2428
|
name: `pathParams.${o}.value`,
|
|
@@ -2430,11 +2430,11 @@ const pn = ({
|
|
|
2430
2430
|
}
|
|
2431
2431
|
) })
|
|
2432
2432
|
] }, r.id)) });
|
|
2433
|
-
},
|
|
2433
|
+
}, ea = ({
|
|
2434
2434
|
control: e,
|
|
2435
2435
|
schemaQueryParams: n
|
|
2436
2436
|
}) => {
|
|
2437
|
-
const { watch: s } =
|
|
2437
|
+
const { watch: s } = oe(), a = s("queryParams"), r = ot({
|
|
2438
2438
|
control: e,
|
|
2439
2439
|
name: "queryParams",
|
|
2440
2440
|
defaultValue: { name: "", value: "", active: !1 }
|
|
@@ -2442,14 +2442,14 @@ const pn = ({
|
|
|
2442
2442
|
(c) => !!c.isRequired
|
|
2443
2443
|
), i = n.length > 0;
|
|
2444
2444
|
return /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
|
|
2445
|
-
/* @__PURE__ */ t.jsxs(
|
|
2446
|
-
/* @__PURE__ */ t.jsx(
|
|
2445
|
+
/* @__PURE__ */ t.jsxs(Y, { children: [
|
|
2446
|
+
/* @__PURE__ */ t.jsx(_n, { size: 16 }),
|
|
2447
2447
|
/* @__PURE__ */ t.jsx(H, { children: "Query Parameters" })
|
|
2448
2448
|
] }),
|
|
2449
|
-
/* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(
|
|
2449
|
+
/* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(ke, { children: r.fields.map((c, l) => {
|
|
2450
2450
|
const m = n.find(
|
|
2451
|
-
(
|
|
2452
|
-
), d = m?.enum && m.enum.length > 0,
|
|
2451
|
+
(h) => h.name === a.at(l)?.name
|
|
2452
|
+
), d = m?.enum && m.enum.length > 0, f = r.getNameInputProps(l), x = r.getValueInputProps(l);
|
|
2453
2453
|
return /* @__PURE__ */ t.jsxs(xe, { children: [
|
|
2454
2454
|
/* @__PURE__ */ t.jsx(ve, { ...r.getCheckboxProps(l) }),
|
|
2455
2455
|
o[l] ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
@@ -2464,26 +2464,26 @@ const pn = ({
|
|
|
2464
2464
|
]
|
|
2465
2465
|
}
|
|
2466
2466
|
) }) : i ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
2467
|
-
|
|
2467
|
+
Pe,
|
|
2468
2468
|
{
|
|
2469
|
-
...
|
|
2469
|
+
...f,
|
|
2470
2470
|
value: String(r.getValue(l, "name")),
|
|
2471
2471
|
placeholder: "Name",
|
|
2472
|
-
options: n.map((
|
|
2473
|
-
onChange: (
|
|
2474
|
-
onSelect: (
|
|
2472
|
+
options: n.map((h) => h.name),
|
|
2473
|
+
onChange: (h) => r.setValue(l, "name", h),
|
|
2474
|
+
onSelect: (h) => r.setValue(l, "name", h, { focus: "next" })
|
|
2475
2475
|
}
|
|
2476
|
-
) }) : /* @__PURE__ */ t.jsx(I, { ...
|
|
2476
|
+
) }) : /* @__PURE__ */ t.jsx(I, { ...f, placeholder: "Name" }),
|
|
2477
2477
|
/* @__PURE__ */ t.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
2478
2478
|
d ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
2479
|
-
|
|
2479
|
+
Pe,
|
|
2480
2480
|
{
|
|
2481
2481
|
...x,
|
|
2482
2482
|
value: String(r.getValue(l, "value")),
|
|
2483
2483
|
shouldFilter: !1,
|
|
2484
2484
|
options: m.enum ?? [],
|
|
2485
|
-
onChange: (
|
|
2486
|
-
onSelect: (
|
|
2485
|
+
onChange: (h) => r.setValue(l, "value", h),
|
|
2486
|
+
onSelect: (h) => r.setValue(l, "value", h, { focus: "next" })
|
|
2487
2487
|
}
|
|
2488
2488
|
) }) : /* @__PURE__ */ t.jsx(
|
|
2489
2489
|
I,
|
|
@@ -2494,7 +2494,7 @@ const pn = ({
|
|
|
2494
2494
|
}
|
|
2495
2495
|
),
|
|
2496
2496
|
/* @__PURE__ */ t.jsx(
|
|
2497
|
-
|
|
2497
|
+
at,
|
|
2498
2498
|
{
|
|
2499
2499
|
...r.getRemoveButtonProps(l)
|
|
2500
2500
|
}
|
|
@@ -2503,19 +2503,19 @@ const pn = ({
|
|
|
2503
2503
|
] }, c.id);
|
|
2504
2504
|
}) }) })
|
|
2505
2505
|
] });
|
|
2506
|
-
},
|
|
2506
|
+
}, ta = ({
|
|
2507
2507
|
open: e,
|
|
2508
2508
|
setOpen: n,
|
|
2509
2509
|
onSignUp: s,
|
|
2510
2510
|
onLogin: a,
|
|
2511
2511
|
onSkip: r
|
|
2512
2512
|
}) => {
|
|
2513
|
-
const [o, i] =
|
|
2513
|
+
const [o, i] = k(!1), c = () => {
|
|
2514
2514
|
r?.(o), n(!1);
|
|
2515
2515
|
};
|
|
2516
|
-
return /* @__PURE__ */ t.jsx(
|
|
2517
|
-
/* @__PURE__ */ t.jsx(
|
|
2518
|
-
/* @__PURE__ */ t.jsx(
|
|
2516
|
+
return /* @__PURE__ */ t.jsx(et, { open: e, onOpenChange: n, children: /* @__PURE__ */ t.jsxs(tt, { children: [
|
|
2517
|
+
/* @__PURE__ */ t.jsx(nt, { children: "Welcome to the Playground!" }),
|
|
2518
|
+
/* @__PURE__ */ t.jsx(_t, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
|
|
2519
2519
|
/* @__PURE__ */ t.jsxs(Re, { className: "flex items-center gap-2 font-normal", children: [
|
|
2520
2520
|
/* @__PURE__ */ t.jsx(
|
|
2521
2521
|
ve,
|
|
@@ -2526,7 +2526,7 @@ const pn = ({
|
|
|
2526
2526
|
),
|
|
2527
2527
|
"Don't show this again"
|
|
2528
2528
|
] }),
|
|
2529
|
-
/* @__PURE__ */ t.jsxs(
|
|
2529
|
+
/* @__PURE__ */ t.jsxs(qt, { className: "flex gap-2 sm:justify-between", children: [
|
|
2530
2530
|
/* @__PURE__ */ t.jsx(q, { type: "button", variant: "outline", onClick: c, children: "Skip" }),
|
|
2531
2531
|
/* @__PURE__ */ t.jsxs("div", { className: "flex gap-2", children: [
|
|
2532
2532
|
s && /* @__PURE__ */ t.jsx(q, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
|
|
@@ -2534,8 +2534,8 @@ const pn = ({
|
|
|
2534
2534
|
] })
|
|
2535
2535
|
] })
|
|
2536
2536
|
] }) });
|
|
2537
|
-
},
|
|
2538
|
-
|
|
2537
|
+
}, na = Ze()(
|
|
2538
|
+
Ye(
|
|
2539
2539
|
(e, n) => ({
|
|
2540
2540
|
rememberedIdentity: null,
|
|
2541
2541
|
setRememberedIdentity: (s) => e({ rememberedIdentity: s }),
|
|
@@ -2545,10 +2545,10 @@ const pn = ({
|
|
|
2545
2545
|
}),
|
|
2546
2546
|
{
|
|
2547
2547
|
name: "identity-storage",
|
|
2548
|
-
storage:
|
|
2548
|
+
storage: zt(() => sessionStorage)
|
|
2549
2549
|
}
|
|
2550
2550
|
)
|
|
2551
|
-
),
|
|
2551
|
+
), sa = ({
|
|
2552
2552
|
path: e,
|
|
2553
2553
|
renderParam: n
|
|
2554
2554
|
}) => {
|
|
@@ -2557,13 +2557,13 @@ const pn = ({
|
|
|
2557
2557
|
const i = Array.from(a.matchAll(/{([^}]+)}/g)), c = [];
|
|
2558
2558
|
let l = 0;
|
|
2559
2559
|
return i.forEach((m) => {
|
|
2560
|
-
const [d,
|
|
2561
|
-
if (!
|
|
2560
|
+
const [d, f] = m;
|
|
2561
|
+
if (!f) return;
|
|
2562
2562
|
const x = m.index;
|
|
2563
2563
|
x > l && c.push(
|
|
2564
2564
|
/* @__PURE__ */ t.jsx(le, { children: a.slice(l, x) }, `text-${l}-${x}`)
|
|
2565
2565
|
), c.push(
|
|
2566
|
-
/* @__PURE__ */ t.jsx(le, { children: n({ name:
|
|
2566
|
+
/* @__PURE__ */ t.jsx(le, { children: n({ name: f, originalValue: d, index: s++ }) }, `param-${f}`)
|
|
2567
2567
|
), l = x + d.length;
|
|
2568
2568
|
}), l < a.length && c.push(
|
|
2569
2569
|
/* @__PURE__ */ t.jsx(le, { children: a.slice(l) }, `text-${l}-${a.length}`)
|
|
@@ -2574,10 +2574,10 @@ const pn = ({
|
|
|
2574
2574
|
/* @__PURE__ */ t.jsx("wbr", {})
|
|
2575
2575
|
] }, `${a}-${r}`);
|
|
2576
2576
|
});
|
|
2577
|
-
},
|
|
2578
|
-
const { watch: n, setFocus: s } =
|
|
2577
|
+
}, ra = ({ url: e }) => {
|
|
2578
|
+
const { watch: n, setFocus: s } = oe(), [a] = n(["pathParams"]);
|
|
2579
2579
|
return /* @__PURE__ */ t.jsx(
|
|
2580
|
-
|
|
2580
|
+
sa,
|
|
2581
2581
|
{
|
|
2582
2582
|
path: e,
|
|
2583
2583
|
renderParam: ({ name: r, originalValue: o, index: i }) => {
|
|
@@ -2585,7 +2585,7 @@ const pn = ({
|
|
|
2585
2585
|
(l) => l.name === r
|
|
2586
2586
|
)?.value;
|
|
2587
2587
|
return /* @__PURE__ */ t.jsx(
|
|
2588
|
-
|
|
2588
|
+
gn,
|
|
2589
2589
|
{
|
|
2590
2590
|
name: r,
|
|
2591
2591
|
backgroundOpacity: "0",
|
|
@@ -2597,8 +2597,8 @@ const pn = ({
|
|
|
2597
2597
|
}
|
|
2598
2598
|
}
|
|
2599
2599
|
);
|
|
2600
|
-
},
|
|
2601
|
-
const { watch: e } =
|
|
2600
|
+
}, aa = () => {
|
|
2601
|
+
const { watch: e } = oe(), s = e("queryParams").filter((a) => a.active && a.name).map((a, r, o) => /* @__PURE__ */ t.jsxs(le, { children: [
|
|
2602
2602
|
a.name,
|
|
2603
2603
|
"=",
|
|
2604
2604
|
encodeURIComponent(a.value).replaceAll("%20", "+"),
|
|
@@ -2609,7 +2609,7 @@ const pn = ({
|
|
|
2609
2609
|
s.length > 0 ? "?" : "",
|
|
2610
2610
|
s
|
|
2611
2611
|
] });
|
|
2612
|
-
},
|
|
2612
|
+
}, oa = ({ status: e }) => {
|
|
2613
2613
|
if (!e) return /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
|
|
2614
2614
|
switch (Number(e.toString().slice(0, 1))) {
|
|
2615
2615
|
case 2:
|
|
@@ -2621,7 +2621,7 @@ const pn = ({
|
|
|
2621
2621
|
default:
|
|
2622
2622
|
return /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
|
|
2623
2623
|
}
|
|
2624
|
-
},
|
|
2624
|
+
}, ia = () => {
|
|
2625
2625
|
const e = E(null), n = E(null), s = E(Date.now()), a = E(null), r = D(() => {
|
|
2626
2626
|
if (n.current) {
|
|
2627
2627
|
const o = Date.now() - s.current;
|
|
@@ -2629,7 +2629,7 @@ const pn = ({
|
|
|
2629
2629
|
}
|
|
2630
2630
|
a.current = requestAnimationFrame(r);
|
|
2631
2631
|
}, []);
|
|
2632
|
-
return
|
|
2632
|
+
return ps(() => {
|
|
2633
2633
|
const o = e.current;
|
|
2634
2634
|
if (!o) return;
|
|
2635
2635
|
const i = document.createTextNode("0");
|
|
@@ -2637,7 +2637,7 @@ const pn = ({
|
|
|
2637
2637
|
a.current && cancelAnimationFrame(a.current), n.current && o.contains(i) && o.removeChild(i);
|
|
2638
2638
|
};
|
|
2639
2639
|
}, [r]), /* @__PURE__ */ t.jsx("span", { className: "inline-block text-end w-[3ch]", ref: e });
|
|
2640
|
-
},
|
|
2640
|
+
}, la = ({
|
|
2641
2641
|
status: e,
|
|
2642
2642
|
time: n,
|
|
2643
2643
|
size: s,
|
|
@@ -2658,7 +2658,7 @@ const pn = ({
|
|
|
2658
2658
|
};
|
|
2659
2659
|
return /* @__PURE__ */ t.jsxs("div", { className: "relative shrink-0 flex h-10 text-xs gap-4 px-4 items-center justify-between font-mono border-b", children: [
|
|
2660
2660
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2661
|
-
/* @__PURE__ */ t.jsx(
|
|
2661
|
+
/* @__PURE__ */ t.jsx(oa, { status: e }),
|
|
2662
2662
|
" ",
|
|
2663
2663
|
e ?? "Sending Request...",
|
|
2664
2664
|
e ? ` ${o[e]}` : ""
|
|
@@ -2667,12 +2667,12 @@ const pn = ({
|
|
|
2667
2667
|
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
2668
2668
|
/* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground", children: "Size" }),
|
|
2669
2669
|
" ",
|
|
2670
|
-
/* @__PURE__ */ t.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ?
|
|
2670
|
+
/* @__PURE__ */ t.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? Ee(s) : "- B" })
|
|
2671
2671
|
] }),
|
|
2672
2672
|
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
2673
2673
|
/* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground", children: "Time" }),
|
|
2674
2674
|
" ",
|
|
2675
|
-
n !== void 0 ? `${n.toFixed(0)}` : /* @__PURE__ */ t.jsx(
|
|
2675
|
+
n !== void 0 ? `${n.toFixed(0)}` : /* @__PURE__ */ t.jsx(ia, {}),
|
|
2676
2676
|
"ms"
|
|
2677
2677
|
] })
|
|
2678
2678
|
] }),
|
|
@@ -2688,28 +2688,28 @@ const pn = ({
|
|
|
2688
2688
|
)
|
|
2689
2689
|
] });
|
|
2690
2690
|
};
|
|
2691
|
-
function
|
|
2691
|
+
function it(e) {
|
|
2692
2692
|
if (e === null) return "null";
|
|
2693
2693
|
if (Array.isArray(e)) {
|
|
2694
2694
|
if (e.length === 0) return "any[]";
|
|
2695
2695
|
const n = e[0];
|
|
2696
|
-
return n === void 0 ? "any[]" : `${
|
|
2696
|
+
return n === void 0 ? "any[]" : `${it(n)}[]`;
|
|
2697
2697
|
}
|
|
2698
|
-
return typeof e == "object" ?
|
|
2698
|
+
return typeof e == "object" ? ca(e) : typeof e;
|
|
2699
2699
|
}
|
|
2700
|
-
function
|
|
2700
|
+
function ca(e, n = "") {
|
|
2701
2701
|
const s = ["{"];
|
|
2702
2702
|
for (const [a, r] of Object.entries(e)) {
|
|
2703
|
-
const o =
|
|
2703
|
+
const o = it(r);
|
|
2704
2704
|
s.push(` ${a}: ${o};`);
|
|
2705
2705
|
}
|
|
2706
2706
|
return s.push("}"), s.join(`
|
|
2707
2707
|
`);
|
|
2708
2708
|
}
|
|
2709
|
-
function
|
|
2710
|
-
return { lines: [`type GeneratedType = ${
|
|
2709
|
+
function da(e) {
|
|
2710
|
+
return { lines: [`type GeneratedType = ${it(e)};`] };
|
|
2711
2711
|
}
|
|
2712
|
-
const
|
|
2712
|
+
const ua = (e) => Object.entries({
|
|
2713
2713
|
"application/json": "json",
|
|
2714
2714
|
"text/json": "json",
|
|
2715
2715
|
"text/html": "html",
|
|
@@ -2719,16 +2719,16 @@ const da = (e) => Object.entries({
|
|
|
2719
2719
|
"application/xhtml+xml": "xhtml"
|
|
2720
2720
|
}).find(
|
|
2721
2721
|
([s]) => e.includes(s)
|
|
2722
|
-
)?.[1],
|
|
2722
|
+
)?.[1], ma = (e) => {
|
|
2723
2723
|
const n = e.find(([s]) => s.toLowerCase() === "content-type")?.[1] || "";
|
|
2724
|
-
return
|
|
2725
|
-
},
|
|
2724
|
+
return ua(n);
|
|
2725
|
+
}, pa = (e) => {
|
|
2726
2726
|
try {
|
|
2727
2727
|
return JSON.stringify(JSON.parse(e), null, 2);
|
|
2728
2728
|
} catch {
|
|
2729
2729
|
return null;
|
|
2730
2730
|
}
|
|
2731
|
-
},
|
|
2731
|
+
}, ha = (e) => {
|
|
2732
2732
|
const n = [
|
|
2733
2733
|
"Content-Type",
|
|
2734
2734
|
"Content-Length",
|
|
@@ -2746,7 +2746,7 @@ const da = (e) => Object.entries({
|
|
|
2746
2746
|
"div",
|
|
2747
2747
|
"grid-cols-subgrid grid border-b col-span-full px-4 py-1.5 font-mono text-xs"
|
|
2748
2748
|
), ue = ye("div", "py-1 break-words"), we = ({ value: e, header: n }) => {
|
|
2749
|
-
const a = ["authorization", "key", "secret", "token"].includes(n.toLowerCase()), [r, o] =
|
|
2749
|
+
const a = ["authorization", "key", "secret", "token"].includes(n.toLowerCase()), [r, o] = k(!a);
|
|
2750
2750
|
return /* @__PURE__ */ t.jsx(
|
|
2751
2751
|
ue,
|
|
2752
2752
|
{
|
|
@@ -2758,12 +2758,12 @@ const da = (e) => Object.entries({
|
|
|
2758
2758
|
a && o((i) => !i);
|
|
2759
2759
|
},
|
|
2760
2760
|
children: a ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2761
|
-
/* @__PURE__ */ t.jsx(
|
|
2762
|
-
r ? /* @__PURE__ */ t.jsx(
|
|
2761
|
+
/* @__PURE__ */ t.jsx(Cs, { secret: e, previewChars: 0, revealed: r }),
|
|
2762
|
+
r ? /* @__PURE__ */ t.jsx(Hn, { size: 14, className: w("hidden group-hover:block") }) : /* @__PURE__ */ t.jsx(Qn, { size: 14, className: w("hidden group-hover:block") })
|
|
2763
2763
|
] }) : e
|
|
2764
2764
|
}
|
|
2765
2765
|
);
|
|
2766
|
-
},
|
|
2766
|
+
}, fa = ({
|
|
2767
2767
|
body: e = "",
|
|
2768
2768
|
headers: n,
|
|
2769
2769
|
request: s,
|
|
@@ -2772,22 +2772,22 @@ const da = (e) => Object.entries({
|
|
|
2772
2772
|
fileName: o,
|
|
2773
2773
|
blob: i
|
|
2774
2774
|
}) => {
|
|
2775
|
-
const c =
|
|
2775
|
+
const c = ma(n), l = pa(e), m = l || e, [d, f] = k(
|
|
2776
2776
|
l ? "formatted" : "raw"
|
|
2777
|
-
), x =
|
|
2777
|
+
), x = os({
|
|
2778
2778
|
queryKey: ["types", m],
|
|
2779
|
-
queryFn: async () =>
|
|
2779
|
+
queryFn: async () => da(JSON.parse(m)),
|
|
2780
2780
|
enabled: d === "types" && !r
|
|
2781
|
-
}),
|
|
2781
|
+
}), h = () => {
|
|
2782
2782
|
if (i && o) {
|
|
2783
2783
|
const u = URL.createObjectURL(i), y = document.createElement("a");
|
|
2784
2784
|
y.href = u, y.download = o, document.body.appendChild(y), y.click(), document.body.removeChild(y), URL.revokeObjectURL(u);
|
|
2785
2785
|
}
|
|
2786
|
-
},
|
|
2786
|
+
}, v = ha([...n]);
|
|
2787
2787
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2788
2788
|
/* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
|
|
2789
|
-
/* @__PURE__ */ t.jsxs(
|
|
2790
|
-
/* @__PURE__ */ t.jsx(
|
|
2789
|
+
/* @__PURE__ */ t.jsxs(Y, { children: [
|
|
2790
|
+
/* @__PURE__ */ t.jsx(qn, { size: 14 }),
|
|
2791
2791
|
/* @__PURE__ */ t.jsx(H, { children: "Request Headers" })
|
|
2792
2792
|
] }),
|
|
2793
2793
|
/* @__PURE__ */ t.jsx(_, { children: /* @__PURE__ */ t.jsxs("div", { className: "grid grid-cols-[2fr_3fr] gap-x-6 text-sm", children: [
|
|
@@ -2800,7 +2800,7 @@ const da = (e) => Object.entries({
|
|
|
2800
2800
|
"Show ",
|
|
2801
2801
|
s.headers.length - z,
|
|
2802
2802
|
" more headers",
|
|
2803
|
-
/* @__PURE__ */ t.jsx(
|
|
2803
|
+
/* @__PURE__ */ t.jsx(Je, { size: 12, className: "text-muted-foreground" })
|
|
2804
2804
|
] }),
|
|
2805
2805
|
/* @__PURE__ */ t.jsxs(_, { className: "col-span-full grid grid-cols-subgrid", children: [
|
|
2806
2806
|
s.headers.slice(z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
|
|
@@ -2812,7 +2812,7 @@ const da = (e) => Object.entries({
|
|
|
2812
2812
|
s.headers.length - z,
|
|
2813
2813
|
" headers",
|
|
2814
2814
|
/* @__PURE__ */ t.jsx(
|
|
2815
|
-
|
|
2815
|
+
bt,
|
|
2816
2816
|
{
|
|
2817
2817
|
size: 12,
|
|
2818
2818
|
className: "text-muted-foreground"
|
|
@@ -2824,33 +2824,33 @@ const da = (e) => Object.entries({
|
|
|
2824
2824
|
] }) })
|
|
2825
2825
|
] }),
|
|
2826
2826
|
/* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
|
|
2827
|
-
/* @__PURE__ */ t.jsxs(
|
|
2828
|
-
/* @__PURE__ */ t.jsx(
|
|
2827
|
+
/* @__PURE__ */ t.jsxs(Y, { children: [
|
|
2828
|
+
/* @__PURE__ */ t.jsx(Mn, { size: 14 }),
|
|
2829
2829
|
/* @__PURE__ */ t.jsx(H, { children: "Response Headers" })
|
|
2830
2830
|
] }),
|
|
2831
2831
|
/* @__PURE__ */ t.jsx(_, { children: /* @__PURE__ */ t.jsxs("div", { className: "grid grid-cols-[2fr_3fr] gap-x-6 text-sm", children: [
|
|
2832
|
-
|
|
2832
|
+
v.slice(0, z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
|
|
2833
2833
|
/* @__PURE__ */ t.jsx(ue, { children: u }),
|
|
2834
2834
|
/* @__PURE__ */ t.jsx(we, { value: y, header: u })
|
|
2835
2835
|
] }, u)),
|
|
2836
|
-
|
|
2836
|
+
v.length > z && /* @__PURE__ */ t.jsxs(B, { className: "col-span-full grid-cols-subgrid grid group", children: [
|
|
2837
2837
|
/* @__PURE__ */ t.jsxs(de, { className: "data-[state=open]:hidden justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
|
|
2838
2838
|
"Show ",
|
|
2839
|
-
|
|
2839
|
+
v.length - z,
|
|
2840
2840
|
" more headers",
|
|
2841
|
-
/* @__PURE__ */ t.jsx(
|
|
2841
|
+
/* @__PURE__ */ t.jsx(Je, { size: 12, className: "text-muted-foreground" })
|
|
2842
2842
|
] }),
|
|
2843
2843
|
/* @__PURE__ */ t.jsxs(_, { className: "col-span-full grid grid-cols-subgrid", children: [
|
|
2844
|
-
|
|
2844
|
+
v.slice(z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
|
|
2845
2845
|
/* @__PURE__ */ t.jsx(ue, { children: u }),
|
|
2846
2846
|
/* @__PURE__ */ t.jsx(we, { value: y, header: u })
|
|
2847
2847
|
] }, u)),
|
|
2848
2848
|
/* @__PURE__ */ t.jsxs(de, { className: "justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
|
|
2849
2849
|
"Hide ",
|
|
2850
|
-
|
|
2850
|
+
v.length - z,
|
|
2851
2851
|
" headers",
|
|
2852
2852
|
/* @__PURE__ */ t.jsx(
|
|
2853
|
-
|
|
2853
|
+
bt,
|
|
2854
2854
|
{
|
|
2855
2855
|
size: 12,
|
|
2856
2856
|
className: "text-muted-foreground"
|
|
@@ -2863,17 +2863,17 @@ const da = (e) => Object.entries({
|
|
|
2863
2863
|
] }),
|
|
2864
2864
|
/* @__PURE__ */ t.jsxs("div", { className: "flex gap-2 justify-between items-center border-b px-2 flex-0", children: [
|
|
2865
2865
|
/* @__PURE__ */ t.jsxs(H, { className: "flex items-center gap-2", children: [
|
|
2866
|
-
/* @__PURE__ */ t.jsx(
|
|
2866
|
+
/* @__PURE__ */ t.jsx(Un, { size: 14 }),
|
|
2867
2867
|
"Response body"
|
|
2868
2868
|
] }),
|
|
2869
2869
|
l && !r && /* @__PURE__ */ t.jsxs(
|
|
2870
|
-
|
|
2870
|
+
Mt,
|
|
2871
2871
|
{
|
|
2872
2872
|
value: d,
|
|
2873
|
-
onValueChange: (u) =>
|
|
2873
|
+
onValueChange: (u) => f(u),
|
|
2874
2874
|
children: [
|
|
2875
|
-
/* @__PURE__ */ t.jsx(
|
|
2876
|
-
/* @__PURE__ */ t.jsxs(
|
|
2875
|
+
/* @__PURE__ */ t.jsx(Ut, { className: "max-w-32 border-0 bg-transparent", children: /* @__PURE__ */ t.jsx(Gt, { placeholder: "View" }) }),
|
|
2876
|
+
/* @__PURE__ */ t.jsxs(Ht, { children: [
|
|
2877
2877
|
/* @__PURE__ */ t.jsx(Te, { value: "formatted", children: "Formatted" }),
|
|
2878
2878
|
/* @__PURE__ */ t.jsx(Te, { value: "raw", children: "Raw" }),
|
|
2879
2879
|
/* @__PURE__ */ t.jsx(Te, { value: "types", children: "Types" })
|
|
@@ -2888,21 +2888,21 @@ const da = (e) => Object.entries({
|
|
|
2888
2888
|
/* @__PURE__ */ t.jsxs(
|
|
2889
2889
|
q,
|
|
2890
2890
|
{
|
|
2891
|
-
onClick:
|
|
2891
|
+
onClick: h,
|
|
2892
2892
|
className: "flex items-center gap-2",
|
|
2893
2893
|
disabled: !i,
|
|
2894
2894
|
children: [
|
|
2895
|
-
/* @__PURE__ */ t.jsx(
|
|
2895
|
+
/* @__PURE__ */ t.jsx(Gn, { className: "h-4 w-4" }),
|
|
2896
2896
|
"Download ",
|
|
2897
2897
|
o || "file",
|
|
2898
2898
|
" (",
|
|
2899
|
-
|
|
2899
|
+
Ee(a),
|
|
2900
2900
|
")"
|
|
2901
2901
|
]
|
|
2902
2902
|
}
|
|
2903
2903
|
)
|
|
2904
2904
|
] }) }) : /* @__PURE__ */ t.jsx(
|
|
2905
|
-
|
|
2905
|
+
Ts,
|
|
2906
2906
|
{
|
|
2907
2907
|
className: "text-xs flex-1",
|
|
2908
2908
|
embedded: !0,
|
|
@@ -2913,7 +2913,7 @@ const da = (e) => Object.entries({
|
|
|
2913
2913
|
}
|
|
2914
2914
|
) })
|
|
2915
2915
|
] });
|
|
2916
|
-
},
|
|
2916
|
+
}, ga = ({
|
|
2917
2917
|
queryMutation: e,
|
|
2918
2918
|
showLongRunningWarning: n,
|
|
2919
2919
|
onCancel: s,
|
|
@@ -2922,7 +2922,7 @@ const da = (e) => Object.entries({
|
|
|
2922
2922
|
progress: o
|
|
2923
2923
|
}) => /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col overflow-y-auto h-[80vh] bg-muted/50", children: [
|
|
2924
2924
|
(e.isPending || e.data) && /* @__PURE__ */ t.jsx(
|
|
2925
|
-
|
|
2925
|
+
la,
|
|
2926
2926
|
{
|
|
2927
2927
|
status: e.data?.status,
|
|
2928
2928
|
time: e.data?.time,
|
|
@@ -2931,12 +2931,12 @@ const da = (e) => Object.entries({
|
|
|
2931
2931
|
progress: o
|
|
2932
2932
|
}
|
|
2933
2933
|
),
|
|
2934
|
-
e.error ? /* @__PURE__ */ t.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ t.jsxs(
|
|
2935
|
-
/* @__PURE__ */ t.jsx(
|
|
2936
|
-
/* @__PURE__ */ t.jsx(
|
|
2937
|
-
/* @__PURE__ */ t.jsx(
|
|
2934
|
+
e.error ? /* @__PURE__ */ t.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ t.jsxs(qs, { children: [
|
|
2935
|
+
/* @__PURE__ */ t.jsx(Jn, { size: 24, strokeWidth: 1.5, className: "me-5" }),
|
|
2936
|
+
/* @__PURE__ */ t.jsx(Ms, { children: "Request failed" }),
|
|
2937
|
+
/* @__PURE__ */ t.jsx(Us, { children: e.error.message || String(e.error) || "Unexpected error" })
|
|
2938
2938
|
] }) }) : e.data ? /* @__PURE__ */ t.jsx(
|
|
2939
|
-
|
|
2939
|
+
fa,
|
|
2940
2940
|
{
|
|
2941
2941
|
request: e.data.request,
|
|
2942
2942
|
size: e.data.size,
|
|
@@ -2947,7 +2947,7 @@ const da = (e) => Object.entries({
|
|
|
2947
2947
|
blob: e.data.blob
|
|
2948
2948
|
}
|
|
2949
2949
|
) : e.isPending ? /* @__PURE__ */ t.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
|
|
2950
|
-
/* @__PURE__ */ t.jsx(
|
|
2950
|
+
/* @__PURE__ */ t.jsx(bs, {}),
|
|
2951
2951
|
/* @__PURE__ */ t.jsxs(
|
|
2952
2952
|
"div",
|
|
2953
2953
|
{
|
|
@@ -2958,7 +2958,7 @@ const da = (e) => Object.entries({
|
|
|
2958
2958
|
children: [
|
|
2959
2959
|
"Looks like the request is taking longer than expected.",
|
|
2960
2960
|
/* @__PURE__ */ t.jsx(
|
|
2961
|
-
|
|
2961
|
+
Ft,
|
|
2962
2962
|
{
|
|
2963
2963
|
type: "button",
|
|
2964
2964
|
onClick: s,
|
|
@@ -2973,7 +2973,7 @@ const da = (e) => Object.entries({
|
|
|
2973
2973
|
)
|
|
2974
2974
|
] }) }) : /* @__PURE__ */ t.jsx("div", { className: "h-full grid place-items-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col gap-4 items-center", children: [
|
|
2975
2975
|
/* @__PURE__ */ t.jsx(
|
|
2976
|
-
|
|
2976
|
+
Wn,
|
|
2977
2977
|
{
|
|
2978
2978
|
size: 64,
|
|
2979
2979
|
className: "text-muted-foreground",
|
|
@@ -2983,20 +2983,20 @@ const da = (e) => Object.entries({
|
|
|
2983
2983
|
/* @__PURE__ */ t.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send your first request" }),
|
|
2984
2984
|
a
|
|
2985
2985
|
] }) })
|
|
2986
|
-
] }),
|
|
2987
|
-
|
|
2986
|
+
] }), xn = Ze()(
|
|
2987
|
+
Ye(
|
|
2988
2988
|
(e) => ({
|
|
2989
2989
|
skipLogin: !1,
|
|
2990
2990
|
setSkipLogin: (n) => e({ skipLogin: n })
|
|
2991
2991
|
}),
|
|
2992
2992
|
{
|
|
2993
2993
|
name: "remember-skip-login",
|
|
2994
|
-
storage:
|
|
2994
|
+
storage: zt(() => sessionStorage)
|
|
2995
2995
|
}
|
|
2996
2996
|
)
|
|
2997
2997
|
);
|
|
2998
|
-
|
|
2999
|
-
const pe = "__none",
|
|
2998
|
+
is(xn);
|
|
2999
|
+
const pe = "__none", xa = ({
|
|
3000
3000
|
server: e,
|
|
3001
3001
|
servers: n = [],
|
|
3002
3002
|
url: s,
|
|
@@ -3008,15 +3008,15 @@ const pe = "__none", ga = ({
|
|
|
3008
3008
|
examples: l,
|
|
3009
3009
|
requiresLogin: m = !1,
|
|
3010
3010
|
onLogin: d,
|
|
3011
|
-
onSignUp:
|
|
3011
|
+
onSignUp: f
|
|
3012
3012
|
}) => {
|
|
3013
|
-
const { selectedServer: x, setSelectedServer:
|
|
3013
|
+
const { selectedServer: x, setSelectedServer: h } = Br(
|
|
3014
3014
|
n.map((p) => ({ url: p }))
|
|
3015
|
-
), [
|
|
3015
|
+
), [v, u] = k(!1), y = ls(), { setRememberedIdentity: S, getRememberedIdentity: R } = na(), [, N] = hs(), { skipLogin: j, setSkipLogin: O } = xn(), [J, be] = k(!1), [Ie, te] = k(!1), g = E(void 0), C = Ps(S), T = E(null), { label: A } = zr("meta+enter", () => {
|
|
3016
3016
|
T.current?.requestSubmit();
|
|
3017
3017
|
}), M = s.match(/\{([^}]+)\}/g)?.map((p) => p.slice(1, -1)) ?? [], L = [...i].sort(
|
|
3018
|
-
(p,
|
|
3019
|
-
), { register: De, control:
|
|
3018
|
+
(p, re) => M.indexOf(p.name) - M.indexOf(re.name)
|
|
3019
|
+
), { register: De, control: ne, handleSubmit: je, watch: ct, setValue: Fe, ...ze } = Ss({
|
|
3020
3020
|
defaultValues: {
|
|
3021
3021
|
body: c,
|
|
3022
3022
|
bodyMode: "text",
|
|
@@ -3037,22 +3037,22 @@ const pe = "__none", ga = ({
|
|
|
3037
3037
|
value: p.defaultValue ?? "",
|
|
3038
3038
|
active: p.defaultActive ?? !1
|
|
3039
3039
|
})) : [{ name: "", value: "", active: !1 }],
|
|
3040
|
-
identity:
|
|
3040
|
+
identity: R([
|
|
3041
3041
|
pe,
|
|
3042
3042
|
...y.data?.map((p) => p.id) ?? []
|
|
3043
3043
|
])
|
|
3044
3044
|
}
|
|
3045
|
-
}),
|
|
3046
|
-
() => y.data?.find((p) => p.id ===
|
|
3047
|
-
[y.data,
|
|
3045
|
+
}), se = ct("identity"), Cn = Bt(
|
|
3046
|
+
() => y.data?.find((p) => p.id === se)?.authorizationFields,
|
|
3047
|
+
[y.data, se]
|
|
3048
3048
|
);
|
|
3049
3049
|
G(() => {
|
|
3050
|
-
|
|
3051
|
-
}, [C,
|
|
3052
|
-
const
|
|
3050
|
+
se && C.current(se);
|
|
3051
|
+
}, [C, se]);
|
|
3052
|
+
const W = Ns({
|
|
3053
3053
|
gcTime: 0,
|
|
3054
3054
|
mutationFn: async (p) => {
|
|
3055
|
-
const
|
|
3055
|
+
const re = performance.now(), Ve = new window.Headers(
|
|
3056
3056
|
p.headers.filter(($) => $.name && $.active).map(($) => [$.name, $.value])
|
|
3057
3057
|
);
|
|
3058
3058
|
let Ce;
|
|
@@ -3062,119 +3062,119 @@ const pe = "__none", ga = ({
|
|
|
3062
3062
|
break;
|
|
3063
3063
|
case "multipart": {
|
|
3064
3064
|
const $ = new FormData();
|
|
3065
|
-
p.multipartFormFields?.filter((
|
|
3065
|
+
p.multipartFormFields?.filter((X) => X.name && X.active).forEach((X) => $.append(X.name, X.value)), Ce = $, Ve.delete("Content-Type");
|
|
3066
3066
|
break;
|
|
3067
3067
|
}
|
|
3068
3068
|
default:
|
|
3069
3069
|
Ce = p.body || void 0;
|
|
3070
3070
|
break;
|
|
3071
3071
|
}
|
|
3072
|
-
const
|
|
3073
|
-
|
|
3072
|
+
const K = new Request(
|
|
3073
|
+
Lt(e ?? x, s, p),
|
|
3074
3074
|
{
|
|
3075
3075
|
method: a,
|
|
3076
3076
|
headers: Ve,
|
|
3077
3077
|
body: ["GET", "HEAD"].includes(a.toUpperCase()) ? null : Ce
|
|
3078
3078
|
}
|
|
3079
3079
|
);
|
|
3080
|
-
p.identity !== pe && await y.data?.find(($) => $.id === p.identity)?.authorizeRequest(
|
|
3080
|
+
p.identity !== pe && await y.data?.find(($) => $.id === p.identity)?.authorizeRequest(K);
|
|
3081
3081
|
const Be = setTimeout(
|
|
3082
|
-
() =>
|
|
3082
|
+
() => te(!0),
|
|
3083
3083
|
3210
|
|
3084
3084
|
);
|
|
3085
3085
|
g.current = new AbortController(), g.current.signal.addEventListener("abort", () => {
|
|
3086
3086
|
clearTimeout(Be);
|
|
3087
3087
|
});
|
|
3088
3088
|
try {
|
|
3089
|
-
const $ = await fetch(
|
|
3089
|
+
const $ = await fetch(K, {
|
|
3090
3090
|
cache: "no-store",
|
|
3091
3091
|
signal: g.current.signal
|
|
3092
3092
|
});
|
|
3093
|
-
clearTimeout(Be),
|
|
3094
|
-
const
|
|
3095
|
-
let Ne = "",
|
|
3096
|
-
|
|
3097
|
-
const
|
|
3098
|
-
let
|
|
3093
|
+
clearTimeout(Be), te(!1);
|
|
3094
|
+
const X = performance.now() - re, Ln = new URL(K.url), mt = Array.from($.headers.entries()), pt = $.headers.get("content-type") || "", ht = Ur(pt);
|
|
3095
|
+
let Ne = "", ft, gt;
|
|
3096
|
+
ht ? (ft = await $.blob(), gt = Gr(mt, K.url), Ne = `Binary content (${pt})`) : Ne = await $.text();
|
|
3097
|
+
const xt = $.headers.get("content-length");
|
|
3098
|
+
let ae = "";
|
|
3099
3099
|
switch (p.bodyMode) {
|
|
3100
3100
|
case "text":
|
|
3101
|
-
|
|
3101
|
+
ae = p.body;
|
|
3102
3102
|
break;
|
|
3103
3103
|
case "file":
|
|
3104
|
-
|
|
3104
|
+
ae = `[File: ${p.file?.name ?? "Unknown"}]`;
|
|
3105
3105
|
break;
|
|
3106
3106
|
case "multipart":
|
|
3107
|
-
|
|
3108
|
-
`,
|
|
3107
|
+
ae = `[Multipart Form Data]
|
|
3108
|
+
`, ae += p.multipartFormFields?.filter((U) => U.name && U.active).map(
|
|
3109
3109
|
(U) => U.value instanceof File ? `${U.name}: [File: ${U.value.name}]` : `${U.name}: ${U.value}`
|
|
3110
3110
|
).join(`
|
|
3111
3111
|
`);
|
|
3112
3112
|
break;
|
|
3113
3113
|
default:
|
|
3114
|
-
|
|
3114
|
+
ae = p.body;
|
|
3115
3115
|
break;
|
|
3116
3116
|
}
|
|
3117
3117
|
return {
|
|
3118
3118
|
status: $.status,
|
|
3119
|
-
headers:
|
|
3120
|
-
size:
|
|
3119
|
+
headers: mt,
|
|
3120
|
+
size: xt ? Number(xt) : Ne.length,
|
|
3121
3121
|
body: Ne,
|
|
3122
|
-
time:
|
|
3123
|
-
isBinary:
|
|
3124
|
-
fileName:
|
|
3125
|
-
blob:
|
|
3122
|
+
time: X,
|
|
3123
|
+
isBinary: ht,
|
|
3124
|
+
fileName: gt,
|
|
3125
|
+
blob: ft,
|
|
3126
3126
|
request: {
|
|
3127
|
-
method:
|
|
3128
|
-
url:
|
|
3127
|
+
method: K.method.toUpperCase(),
|
|
3128
|
+
url: K.url,
|
|
3129
3129
|
headers: [
|
|
3130
|
-
["Host",
|
|
3130
|
+
["Host", Ln.host],
|
|
3131
3131
|
["User-Agent", "Zudoku Playground"],
|
|
3132
|
-
...Array.from(
|
|
3132
|
+
...Array.from(K.headers.entries())
|
|
3133
3133
|
],
|
|
3134
|
-
body:
|
|
3134
|
+
body: ae
|
|
3135
3135
|
}
|
|
3136
3136
|
};
|
|
3137
3137
|
} catch ($) {
|
|
3138
|
-
throw clearTimeout(Be),
|
|
3138
|
+
throw clearTimeout(Be), te(!1), $ instanceof TypeError ? new Error(
|
|
3139
3139
|
"The request failed, possibly due to network issues or CORS policy."
|
|
3140
3140
|
) : $;
|
|
3141
3141
|
}
|
|
3142
3142
|
}
|
|
3143
|
-
}),
|
|
3143
|
+
}), dt = W.isPending, [Nn, Sn] = k(!1);
|
|
3144
3144
|
G(() => {
|
|
3145
|
-
const p = setTimeout(() =>
|
|
3145
|
+
const p = setTimeout(() => Sn(dt), 100);
|
|
3146
3146
|
return () => clearTimeout(p);
|
|
3147
|
-
}, [
|
|
3148
|
-
const { isFinished:
|
|
3147
|
+
}, [dt]);
|
|
3148
|
+
const { isFinished: wn, progress: Tn } = js({ isAnimating: Nn });
|
|
3149
3149
|
G(() => () => {
|
|
3150
3150
|
g.current?.abort();
|
|
3151
3151
|
}, []);
|
|
3152
|
-
const
|
|
3153
|
-
|
|
3152
|
+
const An = /* @__PURE__ */ t.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: e ? /* @__PURE__ */ t.jsx("span", { children: e.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : n.length > 1 && /* @__PURE__ */ t.jsxs(
|
|
3153
|
+
Mt,
|
|
3154
3154
|
{
|
|
3155
3155
|
onValueChange: (p) => {
|
|
3156
|
-
|
|
3156
|
+
N(() => h(p));
|
|
3157
3157
|
},
|
|
3158
3158
|
value: x,
|
|
3159
3159
|
defaultValue: x,
|
|
3160
3160
|
children: [
|
|
3161
|
-
/* @__PURE__ */ t.jsx(
|
|
3162
|
-
/* @__PURE__ */ t.jsx(
|
|
3161
|
+
/* @__PURE__ */ t.jsx(Ut, { className: "p-0 h-fit shadow-none border-none flex-row-reverse bg-transparent text-xs gap-0.5 translate-y-[4px]", children: /* @__PURE__ */ t.jsx(Gt, {}) }),
|
|
3162
|
+
/* @__PURE__ */ t.jsx(Ht, { children: n.map((p) => /* @__PURE__ */ t.jsx(Te, { value: p, children: p.replace(/^https?:\/\//, "").replace(/\/$/, "") }, p)) })
|
|
3163
3163
|
]
|
|
3164
3164
|
}
|
|
3165
|
-
) }),
|
|
3165
|
+
) }), $n = m && !j && !J, Pn = ["POST", "PUT", "PATCH", "DELETE"].includes(
|
|
3166
3166
|
a.toUpperCase()
|
|
3167
|
-
), [
|
|
3167
|
+
), [ut, On] = $s();
|
|
3168
3168
|
return /* @__PURE__ */ t.jsx(
|
|
3169
|
-
|
|
3169
|
+
ws,
|
|
3170
3170
|
{
|
|
3171
3171
|
register: De,
|
|
3172
|
-
control:
|
|
3172
|
+
control: ne,
|
|
3173
3173
|
handleSubmit: je,
|
|
3174
|
-
watch:
|
|
3174
|
+
watch: ct,
|
|
3175
3175
|
setValue: Fe,
|
|
3176
3176
|
...ze,
|
|
3177
|
-
children: /* @__PURE__ */ t.jsx(
|
|
3177
|
+
children: /* @__PURE__ */ t.jsx(As, { delayDuration: 150, children: /* @__PURE__ */ t.jsxs(
|
|
3178
3178
|
"form",
|
|
3179
3179
|
{
|
|
3180
3180
|
ref: T,
|
|
@@ -3182,32 +3182,32 @@ const pe = "__none", ga = ({
|
|
|
3182
3182
|
p.key === "Enter" && p.target instanceof HTMLInputElement && p.preventDefault();
|
|
3183
3183
|
},
|
|
3184
3184
|
onSubmit: je((p) => {
|
|
3185
|
-
y.data?.length === 0 || p.identity ?
|
|
3185
|
+
y.data?.length === 0 || p.identity ? W.mutate(p) : u(!0);
|
|
3186
3186
|
}),
|
|
3187
3187
|
className: "relative",
|
|
3188
3188
|
children: [
|
|
3189
3189
|
/* @__PURE__ */ t.jsx(
|
|
3190
|
-
|
|
3190
|
+
Xr,
|
|
3191
3191
|
{
|
|
3192
3192
|
identities: y.data ?? [],
|
|
3193
|
-
open:
|
|
3193
|
+
open: v,
|
|
3194
3194
|
onOpenChange: u,
|
|
3195
|
-
onSubmit: ({ rememberedIdentity: p, identity:
|
|
3196
|
-
p && Fe("identity",
|
|
3195
|
+
onSubmit: ({ rememberedIdentity: p, identity: re }) => {
|
|
3196
|
+
p && Fe("identity", re ?? pe), u(!1), W.mutate({ ...ze.getValues(), identity: re });
|
|
3197
3197
|
}
|
|
3198
3198
|
}
|
|
3199
3199
|
),
|
|
3200
3200
|
/* @__PURE__ */ t.jsx(
|
|
3201
|
-
|
|
3201
|
+
ta,
|
|
3202
3202
|
{
|
|
3203
|
-
open:
|
|
3203
|
+
open: $n,
|
|
3204
3204
|
setOpen: (p) => {
|
|
3205
3205
|
p || be(!0);
|
|
3206
3206
|
},
|
|
3207
3207
|
onSkip: (p) => {
|
|
3208
|
-
be(!0), p &&
|
|
3208
|
+
be(!0), p && O(!0);
|
|
3209
3209
|
},
|
|
3210
|
-
onSignUp:
|
|
3210
|
+
onSignUp: f,
|
|
3211
3211
|
onLogin: d
|
|
3212
3212
|
}
|
|
3213
3213
|
),
|
|
@@ -3216,9 +3216,9 @@ const pe = "__none", ga = ({
|
|
|
3216
3216
|
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md relative overflow-hidden", children: [
|
|
3217
3217
|
/* @__PURE__ */ t.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
|
|
3218
3218
|
/* @__PURE__ */ t.jsx("div", { className: "items-center px-2 font-mono text-xs break-all leading-6 relative h-full w-full", children: /* @__PURE__ */ t.jsxs("div", { className: "h-full py-1.5", children: [
|
|
3219
|
-
|
|
3220
|
-
/* @__PURE__ */ t.jsx(
|
|
3221
|
-
/* @__PURE__ */ t.jsx(
|
|
3219
|
+
An,
|
|
3220
|
+
/* @__PURE__ */ t.jsx(ra, { url: s }),
|
|
3221
|
+
/* @__PURE__ */ t.jsx(aa, {})
|
|
3222
3222
|
] }) }),
|
|
3223
3223
|
/* @__PURE__ */ t.jsx("div", { className: "px-1", children: /* @__PURE__ */ t.jsx(
|
|
3224
3224
|
q,
|
|
@@ -3226,7 +3226,7 @@ const pe = "__none", ga = ({
|
|
|
3226
3226
|
type: "button",
|
|
3227
3227
|
onClick: () => {
|
|
3228
3228
|
On(
|
|
3229
|
-
|
|
3229
|
+
Lt(
|
|
3230
3230
|
e ?? x,
|
|
3231
3231
|
s,
|
|
3232
3232
|
ze.getValues()
|
|
@@ -3237,9 +3237,9 @@ const pe = "__none", ga = ({
|
|
|
3237
3237
|
size: "icon-xs",
|
|
3238
3238
|
className: w(
|
|
3239
3239
|
"hover:opacity-100 transition",
|
|
3240
|
-
|
|
3240
|
+
ut ? "text-emerald-600 opacity-100" : "opacity-50"
|
|
3241
3241
|
),
|
|
3242
|
-
children:
|
|
3242
|
+
children: ut ? /* @__PURE__ */ t.jsx(Dt, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ t.jsx(Kn, { size: 14 })
|
|
3243
3243
|
}
|
|
3244
3244
|
) })
|
|
3245
3245
|
] }),
|
|
@@ -3247,58 +3247,58 @@ const pe = "__none", ga = ({
|
|
|
3247
3247
|
q,
|
|
3248
3248
|
{
|
|
3249
3249
|
type: "submit",
|
|
3250
|
-
variant:
|
|
3250
|
+
variant: W.isPending ? "destructive" : "default",
|
|
3251
3251
|
onClick: (p) => {
|
|
3252
|
-
|
|
3252
|
+
W.isPending && (g.current?.abort(
|
|
3253
3253
|
"Request cancelled by user"
|
|
3254
3254
|
), p.preventDefault());
|
|
3255
3255
|
},
|
|
3256
3256
|
className: "w-18",
|
|
3257
|
-
children:
|
|
3257
|
+
children: W.isPending ? "Cancel" : "Send"
|
|
3258
3258
|
}
|
|
3259
3259
|
)
|
|
3260
3260
|
] }),
|
|
3261
3261
|
/* @__PURE__ */ t.jsxs("div", { className: "relative overflow-y-auto h-[80vh]", children: [
|
|
3262
3262
|
y.data?.length !== 0 && /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
|
|
3263
|
-
/* @__PURE__ */ t.jsxs(
|
|
3264
|
-
/* @__PURE__ */ t.jsx(
|
|
3263
|
+
/* @__PURE__ */ t.jsxs(Y, { children: [
|
|
3264
|
+
/* @__PURE__ */ t.jsx(Xn, { size: 16 }),
|
|
3265
3265
|
/* @__PURE__ */ t.jsx(H, { children: "Authentication" })
|
|
3266
3266
|
] }),
|
|
3267
3267
|
/* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(
|
|
3268
|
-
|
|
3268
|
+
fn,
|
|
3269
3269
|
{
|
|
3270
|
-
value:
|
|
3270
|
+
value: se,
|
|
3271
3271
|
identities: y.data ?? [],
|
|
3272
3272
|
setValue: (p) => Fe("identity", p)
|
|
3273
3273
|
}
|
|
3274
3274
|
) })
|
|
3275
3275
|
] }),
|
|
3276
3276
|
L.length > 0 && /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
|
|
3277
|
-
/* @__PURE__ */ t.jsxs(
|
|
3278
|
-
/* @__PURE__ */ t.jsx(
|
|
3277
|
+
/* @__PURE__ */ t.jsxs(Y, { children: [
|
|
3278
|
+
/* @__PURE__ */ t.jsx(Zn, { size: 16 }),
|
|
3279
3279
|
/* @__PURE__ */ t.jsx(H, { children: "Path Parameters" })
|
|
3280
3280
|
] }),
|
|
3281
|
-
/* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(
|
|
3281
|
+
/* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(Yr, { url: s, control: ne }) })
|
|
3282
3282
|
] }),
|
|
3283
|
-
/* @__PURE__ */ t.jsx(
|
|
3283
|
+
/* @__PURE__ */ t.jsx(ea, { control: ne, schemaQueryParams: o }),
|
|
3284
3284
|
/* @__PURE__ */ t.jsx(
|
|
3285
|
-
|
|
3285
|
+
Wr,
|
|
3286
3286
|
{
|
|
3287
|
-
control:
|
|
3287
|
+
control: ne,
|
|
3288
3288
|
schemaHeaders: r,
|
|
3289
|
-
lockedHeaders:
|
|
3289
|
+
lockedHeaders: Cn?.headers
|
|
3290
3290
|
}
|
|
3291
3291
|
),
|
|
3292
|
-
|
|
3292
|
+
Pn && /* @__PURE__ */ t.jsx(Mr, { content: l })
|
|
3293
3293
|
] }),
|
|
3294
3294
|
/* @__PURE__ */ t.jsx("div", { className: "w-full bg-muted-foreground/20" }),
|
|
3295
3295
|
/* @__PURE__ */ t.jsx(
|
|
3296
|
-
|
|
3296
|
+
ga,
|
|
3297
3297
|
{
|
|
3298
|
-
queryMutation:
|
|
3298
|
+
queryMutation: W,
|
|
3299
3299
|
showLongRunningWarning: Ie,
|
|
3300
|
-
isFinished:
|
|
3301
|
-
progress:
|
|
3300
|
+
isFinished: wn,
|
|
3301
|
+
progress: Tn,
|
|
3302
3302
|
tip: /* @__PURE__ */ t.jsx("div", { className: "text-xs w-full", children: /* @__PURE__ */ t.jsxs("span", { className: "text-muted-foreground", children: [
|
|
3303
3303
|
"Press",
|
|
3304
3304
|
" ",
|
|
@@ -3309,7 +3309,7 @@ const pe = "__none", ga = ({
|
|
|
3309
3309
|
onCancel: () => {
|
|
3310
3310
|
g.current?.abort(
|
|
3311
3311
|
"Request cancelled by the user"
|
|
3312
|
-
),
|
|
3312
|
+
), te(!1);
|
|
3313
3313
|
}
|
|
3314
3314
|
}
|
|
3315
3315
|
)
|
|
@@ -3319,11 +3319,11 @@ const pe = "__none", ga = ({
|
|
|
3319
3319
|
) })
|
|
3320
3320
|
}
|
|
3321
3321
|
);
|
|
3322
|
-
},
|
|
3323
|
-
const [n, s] =
|
|
3324
|
-
return /* @__PURE__ */ t.jsxs(
|
|
3325
|
-
/* @__PURE__ */ t.jsx(
|
|
3326
|
-
|
|
3322
|
+
}, ya = (e) => {
|
|
3323
|
+
const [n, s] = k(!1), { isAuthEnabled: a, login: r, signup: o, isPending: i, isAuthenticated: c } = ys();
|
|
3324
|
+
return /* @__PURE__ */ t.jsxs(et, { onOpenChange: (l) => s(l), children: [
|
|
3325
|
+
/* @__PURE__ */ t.jsx(vs, { asChild: !0, children: e.children ?? /* @__PURE__ */ t.jsx(q, { variant: "ghost", size: "icon-xs", className: "group", children: /* @__PURE__ */ t.jsx(
|
|
3326
|
+
Yn,
|
|
3327
3327
|
{
|
|
3328
3328
|
className: "fill-muted-foreground group-hover:fill-foreground transition",
|
|
3329
3329
|
size: 16,
|
|
@@ -3331,15 +3331,15 @@ const pe = "__none", ga = ({
|
|
|
3331
3331
|
}
|
|
3332
3332
|
) }) }),
|
|
3333
3333
|
/* @__PURE__ */ t.jsxs(
|
|
3334
|
-
|
|
3334
|
+
tt,
|
|
3335
3335
|
{
|
|
3336
3336
|
className: "max-w-screen-xl! w-full overflow-hidden p-0",
|
|
3337
3337
|
"aria-describedby": void 0,
|
|
3338
3338
|
showCloseButton: !0,
|
|
3339
3339
|
children: [
|
|
3340
|
-
/* @__PURE__ */ t.jsx(
|
|
3340
|
+
/* @__PURE__ */ t.jsx(gs, { children: /* @__PURE__ */ t.jsx(nt, { children: "Playground" }) }),
|
|
3341
3341
|
n && /* @__PURE__ */ t.jsx(
|
|
3342
|
-
|
|
3342
|
+
xa,
|
|
3343
3343
|
{
|
|
3344
3344
|
requiresLogin: a && !c && !i,
|
|
3345
3345
|
onLogin: () => r(),
|
|
@@ -3351,7 +3351,7 @@ const pe = "__none", ga = ({
|
|
|
3351
3351
|
}
|
|
3352
3352
|
)
|
|
3353
3353
|
] });
|
|
3354
|
-
},
|
|
3354
|
+
}, va = {
|
|
3355
3355
|
get: "green",
|
|
3356
3356
|
post: "blue",
|
|
3357
3357
|
put: "yellow",
|
|
@@ -3359,7 +3359,7 @@ const pe = "__none", ga = ({
|
|
|
3359
3359
|
patch: "purple",
|
|
3360
3360
|
options: "gray",
|
|
3361
3361
|
head: "gray"
|
|
3362
|
-
},
|
|
3362
|
+
}, kt = ({
|
|
3363
3363
|
label: e,
|
|
3364
3364
|
path: n,
|
|
3365
3365
|
operations: s,
|
|
@@ -3383,21 +3383,21 @@ const pe = "__none", ga = ({
|
|
|
3383
3383
|
badge: {
|
|
3384
3384
|
label: o.method,
|
|
3385
3385
|
// biome-ignore lint/style/noNonNullAssertion: is guaranteed to be defined
|
|
3386
|
-
color:
|
|
3386
|
+
color: va[o.method.toLowerCase()],
|
|
3387
3387
|
invert: !0
|
|
3388
3388
|
}
|
|
3389
3389
|
}))
|
|
3390
|
-
}),
|
|
3390
|
+
}), yn = Vt(
|
|
3391
3391
|
void 0
|
|
3392
|
-
), Ya =
|
|
3393
|
-
const e =
|
|
3392
|
+
), Ya = yn.Provider, ba = () => {
|
|
3393
|
+
const e = fs(yn);
|
|
3394
3394
|
if (!e)
|
|
3395
3395
|
throw new Error("useOasConfig must be used within a OasConfigProvider");
|
|
3396
3396
|
return e.config;
|
|
3397
|
-
},
|
|
3397
|
+
}, Qe = (e) => ({
|
|
3398
3398
|
path: e.routePath,
|
|
3399
3399
|
async lazy() {
|
|
3400
|
-
const { OasProvider: n } = await import("./OasProvider-
|
|
3400
|
+
const { OasProvider: n } = await import("./OasProvider-BJeMq29o.js");
|
|
3401
3401
|
return {
|
|
3402
3402
|
element: /* @__PURE__ */ t.jsx(
|
|
3403
3403
|
n,
|
|
@@ -3411,39 +3411,39 @@ const pe = "__none", ga = ({
|
|
|
3411
3411
|
};
|
|
3412
3412
|
},
|
|
3413
3413
|
children: e.routes
|
|
3414
|
-
}),
|
|
3414
|
+
}), vn = ({
|
|
3415
3415
|
path: e,
|
|
3416
3416
|
tag: n,
|
|
3417
3417
|
untagged: s
|
|
3418
3418
|
}) => ({
|
|
3419
3419
|
path: e,
|
|
3420
3420
|
async lazy() {
|
|
3421
|
-
const { OperationList: a } = await import("./OperationList-
|
|
3421
|
+
const { OperationList: a } = await import("./OperationList-ff3ZvQsO.js");
|
|
3422
3422
|
return { element: /* @__PURE__ */ t.jsx(a, { tag: n, untagged: s }) };
|
|
3423
3423
|
}
|
|
3424
|
-
}),
|
|
3424
|
+
}), ja = ({
|
|
3425
3425
|
render: e,
|
|
3426
3426
|
path: n
|
|
3427
3427
|
}) => {
|
|
3428
|
-
const { type: s, input: a } =
|
|
3428
|
+
const { type: s, input: a } = ba(), { tag: r } = ns(), o = ss(), i = wr(jn, { type: s, input: a }), {
|
|
3429
3429
|
data: { schema: c }
|
|
3430
|
-
} =
|
|
3430
|
+
} = cs(i), l = c.tags.at(0);
|
|
3431
3431
|
return !r && l?.slug ? /* @__PURE__ */ t.jsx(
|
|
3432
|
-
|
|
3432
|
+
rs,
|
|
3433
3433
|
{
|
|
3434
3434
|
to: {
|
|
3435
|
-
pathname:
|
|
3435
|
+
pathname: as(n, { tag: l.slug }),
|
|
3436
3436
|
search: o.search
|
|
3437
3437
|
}
|
|
3438
3438
|
}
|
|
3439
3439
|
) : r && c.tags.some((m) => m.slug === r) ? e(r) : null;
|
|
3440
|
-
},
|
|
3440
|
+
}, Rt = ({ path: e }) => ({
|
|
3441
3441
|
path: e,
|
|
3442
3442
|
async lazy() {
|
|
3443
|
-
const { OperationList: n } = await import("./OperationList-
|
|
3443
|
+
const { OperationList: n } = await import("./OperationList-ff3ZvQsO.js");
|
|
3444
3444
|
return {
|
|
3445
3445
|
element: /* @__PURE__ */ t.jsx(
|
|
3446
|
-
|
|
3446
|
+
ja,
|
|
3447
3447
|
{
|
|
3448
3448
|
path: e,
|
|
3449
3449
|
render: (s) => /* @__PURE__ */ t.jsx(n, { tag: s })
|
|
@@ -3451,57 +3451,48 @@ const pe = "__none", ga = ({
|
|
|
3451
3451
|
)
|
|
3452
3452
|
};
|
|
3453
3453
|
}
|
|
3454
|
-
}),
|
|
3454
|
+
}), Xe = (e) => [
|
|
3455
3455
|
// Category without tagged operations
|
|
3456
|
-
|
|
3457
|
-
path: V(e,
|
|
3456
|
+
vn({
|
|
3457
|
+
path: V(e, lt),
|
|
3458
3458
|
untagged: !0
|
|
3459
3459
|
}),
|
|
3460
3460
|
// Schema list route
|
|
3461
3461
|
{
|
|
3462
3462
|
path: V(e, "~schemas"),
|
|
3463
3463
|
lazy: async () => {
|
|
3464
|
-
const { SchemaList: n } = await import("./SchemaList-
|
|
3464
|
+
const { SchemaList: n } = await import("./SchemaList-BSC1KM3v.js");
|
|
3465
3465
|
return { element: /* @__PURE__ */ t.jsx(n, {}) };
|
|
3466
3466
|
}
|
|
3467
3467
|
}
|
|
3468
3468
|
], Ca = (e, n) => {
|
|
3469
|
-
const s = V(e, n.at(0) ??
|
|
3469
|
+
const s = V(e, n.at(0) ?? lt);
|
|
3470
3470
|
return [
|
|
3471
3471
|
// Redirect to first tag on the index route
|
|
3472
|
-
{ index: !0, loader: () =>
|
|
3472
|
+
{ index: !0, loader: () => ts(s) },
|
|
3473
3473
|
// Create routes for each tag
|
|
3474
3474
|
...n.map(
|
|
3475
|
-
(a) =>
|
|
3475
|
+
(a) => vn({
|
|
3476
3476
|
path: V(e, a),
|
|
3477
3477
|
tag: a
|
|
3478
3478
|
})
|
|
3479
3479
|
),
|
|
3480
|
-
...
|
|
3480
|
+
...Xe(e)
|
|
3481
3481
|
];
|
|
3482
|
-
},
|
|
3482
|
+
}, bn = (e) => e.type === "raw" || !Array.isArray(e.input) ? { versions: [], labels: {} } : {
|
|
3483
|
+
versions: e.input.map((n) => n.path),
|
|
3484
|
+
labels: Object.fromEntries(
|
|
3485
|
+
e.input.map((n) => [n.path, n.label ?? n.path])
|
|
3486
|
+
)
|
|
3487
|
+
}, Na = ({
|
|
3483
3488
|
basePath: e,
|
|
3484
3489
|
config: n,
|
|
3485
3490
|
client: s
|
|
3486
3491
|
}) => {
|
|
3487
|
-
const a = n.tagPages;
|
|
3488
|
-
|
|
3489
|
-
return [
|
|
3490
|
-
kt({
|
|
3491
|
-
basePath: e,
|
|
3492
|
-
routePath: e,
|
|
3493
|
-
routes: [
|
|
3494
|
-
ja({ path: `${e}/:tag?` }),
|
|
3495
|
-
...yn(e)
|
|
3496
|
-
],
|
|
3497
|
-
client: s,
|
|
3498
|
-
config: n
|
|
3499
|
-
})
|
|
3500
|
-
];
|
|
3501
|
-
const r = vn(n);
|
|
3502
|
-
return (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
|
|
3492
|
+
const a = n.tagPages, { versions: r } = bn(n);
|
|
3493
|
+
return a ? (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
|
|
3503
3494
|
const c = V(e, i);
|
|
3504
|
-
return
|
|
3495
|
+
return Qe({
|
|
3505
3496
|
basePath: e,
|
|
3506
3497
|
version: i,
|
|
3507
3498
|
routePath: c,
|
|
@@ -3509,8 +3500,32 @@ const pe = "__none", ga = ({
|
|
|
3509
3500
|
client: s,
|
|
3510
3501
|
config: n
|
|
3511
3502
|
});
|
|
3512
|
-
})
|
|
3513
|
-
|
|
3503
|
+
}) : r.length > 0 ? (r.length > 1 ? [void 0, ...r] : [void 0]).map((c) => {
|
|
3504
|
+
const l = V(e, c);
|
|
3505
|
+
return Qe({
|
|
3506
|
+
basePath: e,
|
|
3507
|
+
version: c,
|
|
3508
|
+
routePath: l,
|
|
3509
|
+
routes: [
|
|
3510
|
+
Rt({ path: `${l}/:tag?` }),
|
|
3511
|
+
...Xe(l)
|
|
3512
|
+
],
|
|
3513
|
+
client: s,
|
|
3514
|
+
config: n
|
|
3515
|
+
});
|
|
3516
|
+
}) : [
|
|
3517
|
+
Qe({
|
|
3518
|
+
basePath: e,
|
|
3519
|
+
routePath: e,
|
|
3520
|
+
routes: [
|
|
3521
|
+
Rt({ path: `${e}/:tag?` }),
|
|
3522
|
+
...Xe(e)
|
|
3523
|
+
],
|
|
3524
|
+
client: s,
|
|
3525
|
+
config: n
|
|
3526
|
+
})
|
|
3527
|
+
];
|
|
3528
|
+
}, jn = Rr(`
|
|
3514
3529
|
query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
|
|
3515
3530
|
schema(input: $input, type: $type) {
|
|
3516
3531
|
extensions
|
|
@@ -3533,20 +3548,21 @@ const pe = "__none", ga = ({
|
|
|
3533
3548
|
}
|
|
3534
3549
|
}
|
|
3535
3550
|
}
|
|
3536
|
-
`),
|
|
3537
|
-
const n = V(e.path), s = new
|
|
3551
|
+
`), lt = "~endpoints", eo = (e) => {
|
|
3552
|
+
const n = V(e.path), s = new Hs(e);
|
|
3538
3553
|
return {
|
|
3539
3554
|
getHead: () => {
|
|
3540
3555
|
if (e.type === "url" && !e.skipPreload)
|
|
3541
|
-
return /* @__PURE__ */ t.jsx(
|
|
3556
|
+
return (Array.isArray(e.input) ? e.input.map((r) => r.input) : [e.input]).map((r) => /* @__PURE__ */ t.jsx(
|
|
3542
3557
|
"link",
|
|
3543
3558
|
{
|
|
3559
|
+
href: r,
|
|
3544
3560
|
rel: "preload",
|
|
3545
|
-
href: e.input,
|
|
3546
3561
|
as: "fetch",
|
|
3547
3562
|
crossOrigin: "anonymous"
|
|
3548
|
-
}
|
|
3549
|
-
|
|
3563
|
+
},
|
|
3564
|
+
r
|
|
3565
|
+
));
|
|
3550
3566
|
if (e.server)
|
|
3551
3567
|
return /* @__PURE__ */ t.jsx("link", { rel: "preconnect", href: e.server });
|
|
3552
3568
|
},
|
|
@@ -3561,82 +3577,82 @@ const pe = "__none", ga = ({
|
|
|
3561
3577
|
if (!a)
|
|
3562
3578
|
throw new Error("Server is required");
|
|
3563
3579
|
return /* @__PURE__ */ t.jsx(
|
|
3564
|
-
|
|
3580
|
+
ya,
|
|
3565
3581
|
{
|
|
3566
3582
|
url: o,
|
|
3567
3583
|
method: r,
|
|
3568
3584
|
server: a,
|
|
3569
3585
|
...c,
|
|
3570
|
-
children: /* @__PURE__ */ t.jsx(
|
|
3586
|
+
children: /* @__PURE__ */ t.jsx(Ft, { className: "gap-2 items-center", variant: "outline", children: i ?? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3571
3587
|
"Open in Playground",
|
|
3572
|
-
/* @__PURE__ */ t.jsx(
|
|
3588
|
+
/* @__PURE__ */ t.jsx(es, { size: 16 })
|
|
3573
3589
|
] }) })
|
|
3574
3590
|
}
|
|
3575
3591
|
);
|
|
3576
3592
|
}
|
|
3577
3593
|
}),
|
|
3578
3594
|
getNavigation: async (a, r) => {
|
|
3579
|
-
if (!
|
|
3595
|
+
if (!jt({ path: n, end: !1 }, a))
|
|
3580
3596
|
return [];
|
|
3581
|
-
const o =
|
|
3597
|
+
const o = jt(
|
|
3582
3598
|
{ path: `${n}/:version?/:tag`, end: !0 },
|
|
3583
3599
|
a
|
|
3584
3600
|
);
|
|
3585
3601
|
try {
|
|
3586
|
-
const i = o?.params.version, c = i ??
|
|
3587
|
-
type:
|
|
3588
|
-
input:
|
|
3589
|
-
}),
|
|
3590
|
-
|
|
3602
|
+
const i = o?.params.version, { versions: c } = bn(e), l = i ?? c.at(0), { type: m } = e, d = Array.isArray(e.input) ? e.input.find((N) => N.path === l)?.input ?? e.input[0]?.input : e.input, f = cn(s, jn, {
|
|
3603
|
+
type: m,
|
|
3604
|
+
input: d
|
|
3605
|
+
}), x = await r.queryClient.ensureQueryData(f), h = new Map(
|
|
3606
|
+
x.schema.tags.filter((N) => N.name && N.operations.length > 0).map((N) => {
|
|
3591
3607
|
if (!N.name)
|
|
3592
3608
|
throw new Error(`Tag ${N.slug} has no name`);
|
|
3593
|
-
const
|
|
3609
|
+
const j = V(n, i, N.slug), O = N.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, J = N.extensions?.["x-zudoku-collapsible"] ?? !0;
|
|
3594
3610
|
return [
|
|
3595
3611
|
N.name,
|
|
3596
|
-
|
|
3612
|
+
kt({
|
|
3597
3613
|
label: N.extensions?.["x-displayName"] ?? N.name,
|
|
3598
|
-
path:
|
|
3614
|
+
path: j,
|
|
3599
3615
|
operations: N.operations,
|
|
3600
|
-
collapsed:
|
|
3601
|
-
collapsible:
|
|
3616
|
+
collapsed: O,
|
|
3617
|
+
collapsible: J
|
|
3602
3618
|
})
|
|
3603
3619
|
];
|
|
3604
3620
|
})
|
|
3605
|
-
),
|
|
3606
|
-
|
|
3607
|
-
(N) => N.tags.filter((
|
|
3621
|
+
), v = x.schema.extensions?.["x-tagGroups"] ?? [], u = new Set(
|
|
3622
|
+
v.flatMap(
|
|
3623
|
+
(N) => N.tags.filter((j) => h.has(j))
|
|
3608
3624
|
)
|
|
3609
|
-
),
|
|
3610
|
-
...
|
|
3625
|
+
), S = [
|
|
3626
|
+
...v.flatMap(
|
|
3611
3627
|
(N) => {
|
|
3612
|
-
const
|
|
3613
|
-
return
|
|
3628
|
+
const j = N.tags.map((O) => h.get(O)).filter(Boolean);
|
|
3629
|
+
return j.length === 0 ? [] : [
|
|
3614
3630
|
{
|
|
3615
3631
|
type: "category",
|
|
3616
3632
|
label: N.name,
|
|
3617
|
-
items:
|
|
3633
|
+
items: j,
|
|
3618
3634
|
collapsible: !0,
|
|
3619
3635
|
collapsed: !e.options?.expandAllTags
|
|
3620
3636
|
}
|
|
3621
3637
|
];
|
|
3622
3638
|
}
|
|
3623
3639
|
),
|
|
3624
|
-
...Array.from(
|
|
3625
|
-
],
|
|
3640
|
+
...Array.from(h.entries()).filter(([N]) => !u.has(N)).map(([, N]) => N)
|
|
3641
|
+
], R = x.schema.tags.find(
|
|
3626
3642
|
(N) => !N.name
|
|
3627
3643
|
)?.operations;
|
|
3628
|
-
return
|
|
3629
|
-
|
|
3630
|
-
label:
|
|
3631
|
-
path: V(n, i,
|
|
3632
|
-
operations:
|
|
3644
|
+
return R && R.length > 0 && S.push(
|
|
3645
|
+
kt({
|
|
3646
|
+
label: S.length === 0 ? "Endpoints" : "Other endpoints",
|
|
3647
|
+
path: V(n, i, lt),
|
|
3648
|
+
operations: R,
|
|
3633
3649
|
collapsed: !e.options?.expandAllTags
|
|
3634
3650
|
})
|
|
3635
|
-
),
|
|
3651
|
+
), x.schema.components?.schemas?.length && S.push({
|
|
3636
3652
|
type: "link",
|
|
3637
3653
|
label: "Schemas",
|
|
3638
3654
|
to: V(n, i, "~schemas")
|
|
3639
|
-
}),
|
|
3655
|
+
}), S;
|
|
3640
3656
|
} catch {
|
|
3641
3657
|
return [];
|
|
3642
3658
|
}
|
|
@@ -3647,38 +3663,38 @@ const pe = "__none", ga = ({
|
|
|
3647
3663
|
export {
|
|
3648
3664
|
B as C,
|
|
3649
3665
|
Za as G,
|
|
3650
|
-
|
|
3666
|
+
rr as L,
|
|
3651
3667
|
Ya as O,
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3668
|
+
ya as P,
|
|
3669
|
+
Zs as Q,
|
|
3670
|
+
on as S,
|
|
3671
|
+
b as T,
|
|
3672
|
+
lt as U,
|
|
3673
|
+
wr as a,
|
|
3658
3674
|
de as b,
|
|
3659
3675
|
_ as c,
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3676
|
+
Rr as d,
|
|
3677
|
+
Br as e,
|
|
3678
|
+
gn as f,
|
|
3679
|
+
bn as g,
|
|
3680
|
+
sa as h,
|
|
3681
|
+
Xa as i,
|
|
3682
|
+
qe as j,
|
|
3683
|
+
an as k,
|
|
3684
|
+
rt as l,
|
|
3685
|
+
er as m,
|
|
3686
|
+
tn as n,
|
|
3687
|
+
Cr as o,
|
|
3688
|
+
sr as p,
|
|
3689
|
+
Qs as q,
|
|
3690
|
+
Nr as r,
|
|
3675
3691
|
F as s,
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3692
|
+
Pt as t,
|
|
3693
|
+
ba as u,
|
|
3694
|
+
Ka as v,
|
|
3695
|
+
ar as w,
|
|
3696
|
+
Js as x,
|
|
3697
|
+
jn as y,
|
|
3682
3698
|
eo as z
|
|
3683
3699
|
};
|
|
3684
|
-
//# sourceMappingURL=index-
|
|
3700
|
+
//# sourceMappingURL=index-Bjc_QsUR.js.map
|