zudoku 0.61.5 → 0.63.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/README.md +1 -1
- package/dist/cli/cli.d.ts +9 -0
- package/dist/cli/cli.js +4 -10
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/common/version-check.d.ts +2 -0
- package/dist/cli/common/version-check.js +58 -0
- package/dist/cli/common/version-check.js.map +1 -0
- package/dist/config/config.d.ts +3 -0
- package/dist/config/validators/InputNavigationSchema.d.ts +64 -4
- package/dist/config/validators/icon-types.d.ts +1 -1
- package/dist/config/validators/icon-types.js +15 -0
- package/dist/config/validators/icon-types.js.map +1 -1
- package/dist/config/validators/validate.d.ts +39 -9
- package/dist/config/validators/validate.js +23 -0
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/flat-config.d.ts +22 -2
- package/dist/lib/assets/language-icons/c.d.ts +3 -0
- package/dist/lib/assets/language-icons/c.js +4 -0
- package/dist/lib/assets/language-icons/c.js.map +1 -0
- package/dist/lib/assets/language-icons/commonlisp.d.ts +3 -0
- package/dist/lib/assets/language-icons/commonlisp.js +4 -0
- package/dist/lib/assets/language-icons/commonlisp.js.map +1 -0
- package/dist/lib/assets/language-icons/cpp.d.ts +3 -0
- package/dist/lib/assets/language-icons/cpp.js +4 -0
- package/dist/lib/assets/language-icons/cpp.js.map +1 -0
- package/dist/lib/assets/language-icons/dart.d.ts +3 -0
- package/dist/lib/assets/language-icons/dart.js +4 -0
- package/dist/lib/assets/language-icons/dart.js.map +1 -0
- package/dist/lib/assets/language-icons/elixir.d.ts +3 -0
- package/dist/lib/assets/language-icons/elixir.js +4 -0
- package/dist/lib/assets/language-icons/elixir.js.map +1 -0
- package/dist/lib/assets/language-icons/ocaml.d.ts +3 -0
- package/dist/lib/assets/language-icons/ocaml.js +4 -0
- package/dist/lib/assets/language-icons/ocaml.js.map +1 -0
- package/dist/lib/assets/language-icons/powershell.d.ts +3 -0
- package/dist/lib/assets/language-icons/powershell.js +4 -0
- package/dist/lib/assets/language-icons/powershell.js.map +1 -0
- package/dist/lib/assets/language-icons/scala.d.ts +3 -0
- package/dist/lib/assets/language-icons/scala.js +4 -0
- package/dist/lib/assets/language-icons/scala.js.map +1 -0
- package/dist/lib/assets/language-icons/zig.d.ts +3 -0
- package/dist/lib/assets/language-icons/zig.js +4 -0
- package/dist/lib/assets/language-icons/zig.js.map +1 -0
- package/dist/lib/authentication/providers/auth0.js +7 -3
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/components/BuildCheck.js +2 -2
- package/dist/lib/components/BuildCheck.js.map +1 -1
- package/dist/lib/components/Heading.js +1 -5
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/LanguageIcon.js +45 -0
- package/dist/lib/components/LanguageIcon.js.map +1 -1
- package/dist/lib/components/Main.js +1 -1
- package/dist/lib/components/Main.js.map +1 -1
- package/dist/lib/components/cache.d.ts +3 -1
- package/dist/lib/components/cache.js +3 -5
- package/dist/lib/components/cache.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.js +10 -2
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/index.d.ts +1 -2
- package/dist/lib/hooks/index.d.ts +1 -1
- package/dist/lib/oas/graphql/index.js +17 -0
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +26 -3
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/assets/ChatGPTLogo.d.ts +2 -0
- package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js +3 -0
- package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js.map +1 -0
- package/dist/lib/plugins/markdown/assets/ClaudeLogo.d.ts +2 -0
- package/dist/lib/plugins/markdown/assets/ClaudeLogo.js +3 -0
- package/dist/lib/plugins/markdown/assets/ClaudeLogo.js.map +1 -0
- package/dist/lib/plugins/markdown/index.d.ts +2 -1
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/MCPEndpoint.js +9 -18
- package/dist/lib/plugins/openapi/MCPEndpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +8 -3
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +2 -2
- package/dist/lib/plugins/openapi/OperationListItem.js +6 -3
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.d.ts +2 -1
- package/dist/lib/plugins/openapi/Sidecar.js +6 -9
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js +2 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +8 -2
- package/dist/lib/plugins/openapi/graphql/graphql.js +8 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +1 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +1 -0
- 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/playground/PlaygroundDialog.js +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +15 -3
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
- package/dist/lib/shiki.js +9 -0
- package/dist/lib/shiki.js.map +1 -1
- package/dist/lib/ui/Carousel.js.map +1 -1
- package/dist/lib/ui/Dialog.d.ts +12 -18
- package/dist/lib/ui/Dialog.js +30 -17
- package/dist/lib/ui/Dialog.js.map +1 -1
- package/dist/lib/ui/Secret.d.ts +6 -0
- package/dist/lib/ui/Secret.js +7 -4
- package/dist/lib/ui/Secret.js.map +1 -1
- package/dist/lib/util/pastellize.js +4 -4
- package/dist/lib/util/pastellize.js.map +1 -1
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/llms.d.ts +12 -0
- package/dist/vite/llms.js +66 -0
- package/dist/vite/llms.js.map +1 -0
- package/dist/vite/plugin-api.js +1 -1
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-docs.d.ts +9 -0
- package/dist/vite/plugin-docs.js +67 -48
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-markdown-export.d.ts +21 -0
- package/dist/vite/plugin-markdown-export.js +139 -0
- package/dist/vite/plugin-markdown-export.js.map +1 -0
- package/dist/vite/plugin-mdx.d.ts +1 -1
- package/dist/vite/plugin-mdx.js +5 -1
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-navigation.js +4 -0
- package/dist/vite/plugin-navigation.js.map +1 -1
- package/dist/vite/plugin.js +2 -0
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender/prerender.js +30 -0
- package/dist/vite/prerender/prerender.js.map +1 -1
- package/lib/{Button-DTDRi4CT.js → Button-DmS4u8Lj.js} +2 -2
- package/lib/{Button-DTDRi4CT.js.map → Button-DmS4u8Lj.js.map} +1 -1
- package/lib/{Card-hTy9PAnh.js → Card-KFniaZn5.js} +2 -2
- package/lib/{Card-hTy9PAnh.js.map → Card-KFniaZn5.js.map} +1 -1
- package/lib/{CategoryHeading-BGCNu3VK.js → CategoryHeading-DhmodDcq.js} +2 -2
- package/lib/{CategoryHeading-BGCNu3VK.js.map → CategoryHeading-DhmodDcq.js.map} +1 -1
- package/lib/CodeBlock-CanTUJLl.js +221 -0
- package/lib/CodeBlock-CanTUJLl.js.map +1 -0
- package/lib/{Command-TEBTONf1.js → Command-CUcrW3qs.js} +3 -3
- package/lib/{Command-TEBTONf1.js.map → Command-CUcrW3qs.js.map} +1 -1
- package/lib/Dialog-BQciPiHN.js +144 -0
- package/lib/Dialog-BQciPiHN.js.map +1 -0
- package/lib/{Drawer-DM9wJUC6.js → Drawer-Ci7XwhqT.js} +2 -2
- package/lib/Drawer-Ci7XwhqT.js.map +1 -0
- package/lib/DropdownMenu-BZ2NKQ3K.js +126 -0
- package/lib/DropdownMenu-BZ2NKQ3K.js.map +1 -0
- package/lib/{ErrorAlert-xpVkFS_n.js → ErrorAlert-VBJ8aHH7.js} +100 -103
- package/lib/ErrorAlert-VBJ8aHH7.js.map +1 -0
- package/lib/MdxPage-DFRNwSsc.js +239 -0
- package/lib/MdxPage-DFRNwSsc.js.map +1 -0
- package/lib/{OAuthErrorPage-DCjFngGS.js → OAuthErrorPage-DJUOdr6Q.js} +7 -7
- package/lib/{OAuthErrorPage-DCjFngGS.js.map → OAuthErrorPage-DJUOdr6Q.js.map} +1 -1
- package/lib/{OasProvider-DH82Y-KM.js → OasProvider-D2NYAaBN.js} +3 -3
- package/lib/{OasProvider-DH82Y-KM.js.map → OasProvider-D2NYAaBN.js.map} +1 -1
- package/lib/{OperationList-Dr87uHqG.js → OperationList-DmXCI4NU.js} +1848 -1853
- package/lib/OperationList-DmXCI4NU.js.map +1 -0
- package/lib/{Pagination-Cdi_qiXc.js → Pagination-CT4VUR6u.js} +3 -3
- package/lib/{Pagination-Cdi_qiXc.js.map → Pagination-CT4VUR6u.js.map} +1 -1
- package/lib/{RouteGuard-dji1UEYe.js → RouteGuard-Bg0Lu0OU.js} +5 -5
- package/lib/{RouteGuard-dji1UEYe.js.map → RouteGuard-Bg0Lu0OU.js.map} +1 -1
- package/lib/{RouterError-D1I15Qyy.js → RouterError-fm21cqlj.js} +4 -4
- package/lib/{RouterError-D1I15Qyy.js.map → RouterError-fm21cqlj.js.map} +1 -1
- package/lib/{SchemaList-07lprC0m.js → SchemaList-uElsscMN.js} +10 -10
- package/lib/{SchemaList-07lprC0m.js.map → SchemaList-uElsscMN.js.map} +1 -1
- package/lib/{SchemaView-m0NDK2i0.js → SchemaView-CNQ3VAbI.js} +5 -5
- package/lib/{SchemaView-m0NDK2i0.js.map → SchemaView-CNQ3VAbI.js.map} +1 -1
- package/lib/Select-CPoGZU_V.js +372 -0
- package/lib/Select-CPoGZU_V.js.map +1 -0
- package/lib/{SignUp-C-YP_Rxi.js → SignUp-BraHuRN_.js} +9 -9
- package/lib/{SignUp-C-YP_Rxi.js.map → SignUp-BraHuRN_.js.map} +1 -1
- package/lib/{Spinner-Cf6E803I.js → Spinner-CI6bRyZw.js} +2 -2
- package/lib/{Spinner-Cf6E803I.js.map → Spinner-CI6bRyZw.js.map} +1 -1
- package/lib/{SyntaxHighlight-CPF64UHi.js → SyntaxHighlight-B0laqAqK.js} +6 -6
- package/lib/{SyntaxHighlight-CPF64UHi.js.map → SyntaxHighlight-B0laqAqK.js.map} +1 -1
- package/lib/{Toc-Cf5UojVb.js → Toc-KzXCRqrX.js} +3 -3
- package/lib/{Toc-Cf5UojVb.js.map → Toc-KzXCRqrX.js.map} +1 -1
- package/lib/ZudokuContext-BXTZApgy.js +1506 -0
- package/lib/ZudokuContext-BXTZApgy.js.map +1 -0
- package/lib/c-B-NUhs61.js +46 -0
- package/lib/c-B-NUhs61.js.map +1 -0
- package/lib/chunk-PVWAREVJ-BO6B-RAk.js.map +1 -1
- package/lib/{circular-ga83n0Za.js → circular-BWT7_Ahq.js} +30 -30
- package/lib/{circular-ga83n0Za.js.map → circular-BWT7_Ahq.js.map} +1 -1
- package/lib/commonlisp-De080z23.js +28 -0
- package/lib/commonlisp-De080z23.js.map +1 -0
- package/lib/cpp-79Paht7T.js +53 -0
- package/lib/cpp-79Paht7T.js.map +1 -0
- package/lib/{createServer-DL1AYSpR.js → createServer-zhJZSgor.js} +3225 -3165
- package/lib/createServer-zhJZSgor.js.map +1 -0
- package/lib/{csharp-rrJEDRrV.js → csharp-D8MIL50B.js} +2 -2
- package/lib/{csharp-rrJEDRrV.js.map → csharp-D8MIL50B.js.map} +1 -1
- package/lib/{css-Dpk9bCql.js → css-Bt6hr1td.js} +2 -2
- package/lib/{css-Dpk9bCql.js.map → css-Bt6hr1td.js.map} +1 -1
- package/lib/dart-B0vy1jWB.js +60 -0
- package/lib/dart-B0vy1jWB.js.map +1 -0
- package/lib/elixir-Ds8r0sF8.js +25 -0
- package/lib/elixir-Ds8r0sF8.js.map +1 -0
- package/lib/{errors-ouIp07AW.js → errors-XqO6MsfU.js} +3 -3
- package/lib/{errors-ouIp07AW.js.map → errors-XqO6MsfU.js.map} +1 -1
- package/lib/{go-D8SJIQ0Z.js → go-D2VsmIOS.js} +2 -2
- package/lib/{go-D8SJIQ0Z.js.map → go-D2VsmIOS.js.map} +1 -1
- package/lib/{graphql-aeVKJNa2.js → graphql-BtA6M4m5.js} +2 -2
- package/lib/{graphql-aeVKJNa2.js.map → graphql-BtA6M4m5.js.map} +1 -1
- package/lib/hook-CAebs2rv.js +31 -0
- package/lib/hook-CAebs2rv.js.map +1 -0
- package/lib/{html-D_7om-nA.js → html-MGnI2uzP.js} +2 -2
- package/lib/{html-D_7om-nA.js.map → html-MGnI2uzP.js.map} +1 -1
- package/lib/{index-CVfG8Pb4.js → index-BPSpOxTK.js} +26 -26
- package/lib/index-BPSpOxTK.js.map +1 -0
- package/lib/{index-DhL3LhWV.js → index-C5L4favO.js} +166 -50
- package/lib/index-C5L4favO.js.map +1 -0
- package/lib/index-CrcNWbel.js.map +1 -1
- package/lib/{index-DQ8kWcE8.js → index-D8Btv4uT.js} +723 -811
- package/lib/index-D8Btv4uT.js.map +1 -0
- package/lib/index.esm-BYObtETB.js +1294 -0
- package/lib/index.esm-BYObtETB.js.map +1 -0
- package/lib/index.esm-BnYHxCYC.js.map +1 -1
- package/lib/{java-DUh-EL8n.js → java-CVLzHfb1.js} +2 -2
- package/lib/{java-DUh-EL8n.js.map → java-CVLzHfb1.js.map} +1 -1
- package/lib/{javascript-CrY8dcGu.js → javascript-CcmIpL4G.js} +2 -2
- package/lib/{javascript-CrY8dcGu.js.map → javascript-CcmIpL4G.js.map} +1 -1
- package/lib/{json-DLK2_sdf.js → json-4AyP4uiY.js} +2 -2
- package/lib/{json-DLK2_sdf.js.map → json-4AyP4uiY.js.map} +1 -1
- package/lib/{jsx-runtime-DywqP_6a.js → jsx-runtime-BzflLqGi.js} +109 -111
- package/lib/jsx-runtime-BzflLqGi.js.map +1 -0
- package/lib/{kotlin-rJMOGl7D.js → kotlin-v2plddBQ.js} +2 -2
- package/lib/{kotlin-rJMOGl7D.js.map → kotlin-v2plddBQ.js.map} +1 -1
- package/lib/{markdown-BD9bIU5J.js → markdown-DYGWCmGQ.js} +2 -2
- package/lib/{markdown-BD9bIU5J.js.map → markdown-DYGWCmGQ.js.map} +1 -1
- package/lib/{mdx-G25UCvf3.js → mdx-CHwYvXd4.js} +2 -2
- package/lib/{mdx-G25UCvf3.js.map → mdx-CHwYvXd4.js.map} +1 -1
- package/lib/{mutation-De-1gXxl.js → mutation-CdGPxHNX.js} +2 -2
- package/lib/{mutation-De-1gXxl.js.map → mutation-CdGPxHNX.js.map} +1 -1
- package/lib/{objectivec-DDpj0aWX.js → objectivec-HZY8shkd.js} +2 -2
- package/lib/{objectivec-DDpj0aWX.js.map → objectivec-HZY8shkd.js.map} +1 -1
- package/lib/ocaml-DqsdDdwb.js +52 -0
- package/lib/ocaml-DqsdDdwb.js.map +1 -0
- package/lib/{php-BeG18bSy.js → php-rQXzo7K_.js} +2 -2
- package/lib/{php-BeG18bSy.js.map → php-rQXzo7K_.js.map} +1 -1
- package/lib/powershell-CQje9pm1.js +39 -0
- package/lib/powershell-CQje9pm1.js.map +1 -0
- package/lib/{python-BaF2byD-.js → python-QIQAE5Ei.js} +2 -2
- package/lib/{python-BaF2byD-.js.map → python-QIQAE5Ei.js.map} +1 -1
- package/lib/{react-CQvDN20M.js → react-DHpVpxRv.js} +2 -2
- package/lib/{react-CQvDN20M.js.map → react-DHpVpxRv.js.map} +1 -1
- package/lib/{ruby-CmxRVHMR.js → ruby-B2dU8Ny5.js} +2 -2
- package/lib/{ruby-CmxRVHMR.js.map → ruby-B2dU8Ny5.js.map} +1 -1
- package/lib/{rust-IfSC62c5.js → rust-DYnLHAi2.js} +2 -2
- package/lib/{rust-IfSC62c5.js.map → rust-DYnLHAi2.js.map} +1 -1
- package/lib/scala-CeKInBR8.js +25 -0
- package/lib/scala-CeKInBR8.js.map +1 -0
- package/lib/{shell-BFu0M6m4.js → shell-HUv9oVtp.js} +2 -2
- package/lib/{shell-BFu0M6m4.js.map → shell-HUv9oVtp.js.map} +1 -1
- package/lib/{swift-DckbsN4v.js → swift-B4z6ig1Z.js} +2 -2
- package/lib/{swift-DckbsN4v.js.map → swift-B4z6ig1Z.js.map} +1 -1
- package/lib/{toml-BJsCc8TC.js → toml-Co9mpdct.js} +2 -2
- package/lib/{toml-BJsCc8TC.js.map → toml-Co9mpdct.js.map} +1 -1
- package/lib/{typescript-7qOVMjOC.js → typescript-C26xdBDC.js} +2 -2
- package/lib/{typescript-7qOVMjOC.js.map → typescript-C26xdBDC.js.map} +1 -1
- package/lib/ui/Accordion.js +1 -1
- package/lib/ui/ActionButton.js +3 -3
- package/lib/ui/Alert.js +1 -1
- package/lib/ui/AlertDialog.js +1 -1
- package/lib/ui/Badge.js +1 -1
- package/lib/ui/Breadcrumb.js +1 -1
- package/lib/ui/Button.js +1 -1
- package/lib/ui/Callout.js +1 -1
- package/lib/ui/Card.js +1 -1
- package/lib/ui/Carousel.js +1 -1
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +1 -1
- package/lib/ui/CodeBlock.js +2 -2
- package/lib/ui/Command.js +2 -2
- package/lib/ui/Dialog.js +135 -105
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Drawer.js +2 -2
- package/lib/ui/DropdownMenu.js +1 -1
- package/lib/ui/EmbeddedCodeBlock.js +1 -1
- package/lib/ui/Form.js +2 -2
- package/lib/ui/HoverCard.js +1 -1
- package/lib/ui/Input.js +1 -1
- package/lib/ui/Label.js +1 -1
- package/lib/ui/Pagination.js +1 -1
- package/lib/ui/Popover.js +1 -1
- package/lib/ui/Progress.js +1 -1
- package/lib/ui/RadioGroup.js +1 -1
- package/lib/ui/ReactComponentDoc.js +1 -1
- package/lib/ui/ScrollArea.js +1 -1
- package/lib/ui/Secret.js +64 -54
- package/lib/ui/Secret.js.map +1 -1
- package/lib/ui/Select.js +1 -1
- package/lib/ui/Skeleton.js +1 -1
- package/lib/ui/Slider.js +1 -1
- package/lib/ui/Stepper.js +1 -1
- package/lib/ui/Switch.js +1 -1
- package/lib/ui/SyntaxHighlight.js +4 -4
- package/lib/ui/Tabs.js +1 -1
- package/lib/ui/Textarea.js +1 -1
- package/lib/ui/Toggle.js +1 -1
- package/lib/ui/ToggleGroup.js +1 -1
- package/lib/ui/Tooltip.js +1 -1
- package/lib/ui/Value.js +1 -1
- package/lib/{useExposedProps-B8NHdNRq.js → useExposedProps-Cd7Yg_uG.js} +3 -3
- package/lib/useExposedProps-Cd7Yg_uG.js.map +1 -0
- package/lib/{xml-DAaTIkBX.js → xml-BQOOC04j.js} +2 -2
- package/lib/{xml-DAaTIkBX.js.map → xml-BQOOC04j.js.map} +1 -1
- package/lib/{yaml-DUi-dbfu.js → yaml-BGsJItKv.js} +2 -2
- package/lib/{yaml-DUi-dbfu.js.map → yaml-BGsJItKv.js.map} +1 -1
- package/lib/zig-CUV2sTct.js +35 -0
- package/lib/zig-CUV2sTct.js.map +1 -0
- package/lib/zudoku.__internal.js +1041 -938
- package/lib/zudoku.__internal.js.map +1 -1
- package/lib/zudoku.auth-auth0.js +22 -21
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-azureb2c.js +14 -15
- package/lib/zudoku.auth-azureb2c.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +3 -3
- package/lib/zudoku.auth-openid.js +57 -58
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.auth-supabase.js +2 -2
- package/lib/zudoku.components.js +6 -6
- package/lib/zudoku.hooks.js +6 -6
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.icons.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +27 -28
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +215 -301
- 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 +2 -2
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +4 -4
- package/lib/zudoku.plugin-search-inkeep.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +27 -28
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.router.js +1 -1
- package/lib/zudoku.router.js.map +1 -1
- package/package.json +39 -39
- package/src/lib/assets/language-icons/c.tsx +31 -0
- package/src/lib/assets/language-icons/commonlisp.tsx +22 -0
- package/src/lib/assets/language-icons/cpp.tsx +35 -0
- package/src/lib/assets/language-icons/dart.tsx +39 -0
- package/src/lib/assets/language-icons/elixir.tsx +19 -0
- package/src/lib/assets/language-icons/ocaml.tsx +34 -0
- package/src/lib/assets/language-icons/powershell.tsx +27 -0
- package/src/lib/assets/language-icons/scala.tsx +19 -0
- package/src/lib/assets/language-icons/zig.tsx +32 -0
- package/src/lib/authentication/providers/auth0.tsx +7 -3
- package/src/lib/components/BuildCheck.tsx +12 -10
- package/src/lib/components/Heading.tsx +2 -6
- package/src/lib/components/LanguageIcon.tsx +45 -0
- package/src/lib/components/Main.tsx +1 -1
- package/src/lib/components/cache.ts +9 -5
- package/src/lib/components/context/ZudokuContext.ts +11 -2
- package/src/lib/oas/graphql/index.ts +19 -0
- package/src/lib/plugins/markdown/MdxPage.tsx +122 -8
- package/src/lib/plugins/markdown/assets/ChatGPTLogo.tsx +11 -0
- package/src/lib/plugins/markdown/assets/ClaudeLogo.tsx +19 -0
- package/src/lib/plugins/markdown/index.tsx +3 -7
- package/src/lib/plugins/openapi/MCPEndpoint.tsx +8 -28
- package/src/lib/plugins/openapi/OperationList.tsx +14 -3
- package/src/lib/plugins/openapi/OperationListItem.tsx +10 -5
- package/src/lib/plugins/openapi/Sidecar.tsx +8 -8
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +1 -0
- package/src/lib/plugins/openapi/graphql/gql.ts +4 -3
- package/src/lib/plugins/openapi/graphql/graphql.ts +20 -3
- package/src/lib/plugins/openapi/index.tsx +1 -1
- package/src/lib/plugins/openapi/interfaces.ts +1 -0
- package/src/lib/plugins/openapi/playground/Playground.tsx +1 -1
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +31 -3
- package/src/lib/shiki.ts +9 -0
- package/src/lib/ui/Carousel.tsx +0 -1
- package/src/lib/ui/Dialog.tsx +112 -106
- package/src/lib/ui/Secret.tsx +44 -27
- package/src/lib/util/pastellize.ts +4 -4
- package/src/shiki/langs/hurl.js +1 -0
- package/src/shiki/langs/kdl.js +1 -0
- package/src/shiki/langs/pkl.js +1 -0
- package/src/shiki/langs/rosmsg.js +1 -0
- package/lib/CodeBlock-i0BM_QFf.js +0 -176
- package/lib/CodeBlock-i0BM_QFf.js.map +0 -1
- package/lib/Dialog-VIMic7xI.js +0 -114
- package/lib/Dialog-VIMic7xI.js.map +0 -1
- package/lib/Drawer-DM9wJUC6.js.map +0 -1
- package/lib/ErrorAlert-xpVkFS_n.js.map +0 -1
- package/lib/MdxPage-Ud1w_GV-.js +0 -111
- package/lib/MdxPage-Ud1w_GV-.js.map +0 -1
- package/lib/OperationList-Dr87uHqG.js.map +0 -1
- package/lib/Select-BiBMWiLv.js +0 -273
- package/lib/Select-BiBMWiLv.js.map +0 -1
- package/lib/ZudokuContext-BcqSiygJ.js +0 -1294
- package/lib/ZudokuContext-BcqSiygJ.js.map +0 -1
- package/lib/createServer-DL1AYSpR.js.map +0 -1
- package/lib/hook-BkLXq8pm.js +0 -243
- package/lib/hook-BkLXq8pm.js.map +0 -1
- package/lib/index-CVfG8Pb4.js.map +0 -1
- package/lib/index-DQ8kWcE8.js.map +0 -1
- package/lib/index-DhL3LhWV.js.map +0 -1
- package/lib/index.esm-DpgNxKa2.js +0 -1267
- package/lib/index.esm-DpgNxKa2.js.map +0 -1
- package/lib/jsx-runtime-DywqP_6a.js.map +0 -1
- package/lib/useExposedProps-B8NHdNRq.js.map +0 -1
package/lib/zudoku.__internal.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { j as a } from "./jsx-runtime-
|
|
3
|
-
import { S as
|
|
4
|
-
import { M as
|
|
5
|
-
import * as
|
|
6
|
-
import { StrictMode as
|
|
7
|
-
import { t as
|
|
8
|
-
import * as
|
|
9
|
-
import { a as
|
|
10
|
-
import { B as
|
|
11
|
-
import { CircleFadingArrowUpIcon as
|
|
12
|
-
import { Button as
|
|
13
|
-
import { c as
|
|
14
|
-
import { a as
|
|
15
|
-
import { d as
|
|
16
|
-
import { VisuallyHidden as
|
|
17
|
-
import { S as
|
|
18
|
-
import { C as
|
|
19
|
-
import { N as
|
|
20
|
-
var
|
|
1
|
+
import { a as Ke, H as He } from "./index.esm-BnYHxCYC.js";
|
|
2
|
+
import { j as a } from "./jsx-runtime-BzflLqGi.js";
|
|
3
|
+
import { S as Ve, r as Je, Q as Zt, n as j, v as ye, w as we, k as I, x as $t, y as jt, z as Pt, A as Ot, B as be, D as ze, E as Et, h as ke, F as xe, G as At, H as Tt, i as St, I as Ge, e as It, a as re, p as Dt, j as Ct } from "./ZudokuContext-BXTZApgy.js";
|
|
4
|
+
import { M as Nt } from "./mutation-CdGPxHNX.js";
|
|
5
|
+
import * as D from "react";
|
|
6
|
+
import { StrictMode as Ye, useEffect as oe, useRef as Xe, useState as Rt, Suspense as Ft } from "react";
|
|
7
|
+
import { t as Ut, S as qt, c as et, b2 as Mt, O as Qt } from "./chunk-PVWAREVJ-BO6B-RAk.js";
|
|
8
|
+
import * as Lt from "react-dom";
|
|
9
|
+
import { a as Bt, u as Wt, P as Kt, H as Ht } from "./index-BPSpOxTK.js";
|
|
10
|
+
import { B as tt, R as Vt } from "./RouteGuard-Bg0Lu0OU.js";
|
|
11
|
+
import { CircleFadingArrowUpIcon as Jt, LoaderCircleIcon as Gt, ExternalLink as Yt, PanelLeftIcon as Xt } from "lucide-react";
|
|
12
|
+
import { Button as en } from "./ui/Button.js";
|
|
13
|
+
import { c as E } from "./cn-dYga0KKN.js";
|
|
14
|
+
import { a as C, A as tn, s as nn, N as Ze, f as rn, T as on, H as sn, E as an } from "./ErrorAlert-VBJ8aHH7.js";
|
|
15
|
+
import { d as A, b as cn, c as un } from "./Drawer-Ci7XwhqT.js";
|
|
16
|
+
import { VisuallyHidden as ln } from "@radix-ui/react-visually-hidden";
|
|
17
|
+
import { S as dn } from "./Spinner-CI6bRyZw.js";
|
|
18
|
+
import { C as hn } from "./CategoryHeading-DhmodDcq.js";
|
|
19
|
+
import { N as fn, R as pn } from "./RouterError-fm21cqlj.js";
|
|
20
|
+
var mn = class extends Ve {
|
|
21
21
|
constructor(e = {}) {
|
|
22
22
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
23
23
|
}
|
|
24
24
|
#e;
|
|
25
25
|
build(e, t, n) {
|
|
26
|
-
const r = t.queryKey, o = t.queryHash ??
|
|
26
|
+
const r = t.queryKey, o = t.queryHash ?? Je(r, t);
|
|
27
27
|
let s = this.get(o);
|
|
28
|
-
return s || (s = new
|
|
28
|
+
return s || (s = new Zt({
|
|
29
29
|
client: e,
|
|
30
30
|
queryKey: r,
|
|
31
31
|
queryHash: o,
|
|
@@ -45,7 +45,7 @@ var cn = class extends Me {
|
|
|
45
45
|
t && (e.destroy(), t === e && this.#e.delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
46
46
|
}
|
|
47
47
|
clear() {
|
|
48
|
-
|
|
48
|
+
j.batch(() => {
|
|
49
49
|
this.getAll().forEach((e) => {
|
|
50
50
|
this.remove(e);
|
|
51
51
|
});
|
|
@@ -60,35 +60,35 @@ var cn = class extends Me {
|
|
|
60
60
|
find(e) {
|
|
61
61
|
const t = { exact: !0, ...e };
|
|
62
62
|
return this.getAll().find(
|
|
63
|
-
(n) =>
|
|
63
|
+
(n) => ye(t, n)
|
|
64
64
|
);
|
|
65
65
|
}
|
|
66
66
|
findAll(e = {}) {
|
|
67
67
|
const t = this.getAll();
|
|
68
|
-
return Object.keys(e).length > 0 ? t.filter((n) =>
|
|
68
|
+
return Object.keys(e).length > 0 ? t.filter((n) => ye(e, n)) : t;
|
|
69
69
|
}
|
|
70
70
|
notify(e) {
|
|
71
|
-
|
|
71
|
+
j.batch(() => {
|
|
72
72
|
this.listeners.forEach((t) => {
|
|
73
73
|
t(e);
|
|
74
74
|
});
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
onFocus() {
|
|
78
|
-
|
|
78
|
+
j.batch(() => {
|
|
79
79
|
this.getAll().forEach((e) => {
|
|
80
80
|
e.onFocus();
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
onOnline() {
|
|
85
|
-
|
|
85
|
+
j.batch(() => {
|
|
86
86
|
this.getAll().forEach((e) => {
|
|
87
87
|
e.onOnline();
|
|
88
88
|
});
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
|
-
},
|
|
91
|
+
}, gn = class extends Ve {
|
|
92
92
|
constructor(e = {}) {
|
|
93
93
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
94
94
|
}
|
|
@@ -96,7 +96,7 @@ var cn = class extends Me {
|
|
|
96
96
|
#t;
|
|
97
97
|
#n;
|
|
98
98
|
build(e, t, n) {
|
|
99
|
-
const r = new
|
|
99
|
+
const r = new Nt({
|
|
100
100
|
mutationCache: this,
|
|
101
101
|
mutationId: ++this.#n,
|
|
102
102
|
options: e.defaultMutationOptions(t),
|
|
@@ -106,7 +106,7 @@ var cn = class extends Me {
|
|
|
106
106
|
}
|
|
107
107
|
add(e) {
|
|
108
108
|
this.#e.add(e);
|
|
109
|
-
const t =
|
|
109
|
+
const t = V(e);
|
|
110
110
|
if (typeof t == "string") {
|
|
111
111
|
const n = this.#t.get(t);
|
|
112
112
|
n ? n.push(e) : this.#t.set(t, [e]);
|
|
@@ -115,7 +115,7 @@ var cn = class extends Me {
|
|
|
115
115
|
}
|
|
116
116
|
remove(e) {
|
|
117
117
|
if (this.#e.delete(e)) {
|
|
118
|
-
const t =
|
|
118
|
+
const t = V(e);
|
|
119
119
|
if (typeof t == "string") {
|
|
120
120
|
const n = this.#t.get(t);
|
|
121
121
|
if (n)
|
|
@@ -128,7 +128,7 @@ var cn = class extends Me {
|
|
|
128
128
|
this.notify({ type: "removed", mutation: e });
|
|
129
129
|
}
|
|
130
130
|
canRun(e) {
|
|
131
|
-
const t =
|
|
131
|
+
const t = V(e);
|
|
132
132
|
if (typeof t == "string") {
|
|
133
133
|
const r = this.#t.get(t)?.find(
|
|
134
134
|
(o) => o.state.status === "pending"
|
|
@@ -138,11 +138,11 @@ var cn = class extends Me {
|
|
|
138
138
|
return !0;
|
|
139
139
|
}
|
|
140
140
|
runNext(e) {
|
|
141
|
-
const t =
|
|
141
|
+
const t = V(e);
|
|
142
142
|
return typeof t == "string" ? this.#t.get(t)?.find((r) => r !== e && r.state.isPaused)?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
143
143
|
}
|
|
144
144
|
clear() {
|
|
145
|
-
|
|
145
|
+
j.batch(() => {
|
|
146
146
|
this.#e.forEach((e) => {
|
|
147
147
|
this.notify({ type: "removed", mutation: e });
|
|
148
148
|
}), this.#e.clear(), this.#t.clear();
|
|
@@ -154,14 +154,14 @@ var cn = class extends Me {
|
|
|
154
154
|
find(e) {
|
|
155
155
|
const t = { exact: !0, ...e };
|
|
156
156
|
return this.getAll().find(
|
|
157
|
-
(n) =>
|
|
157
|
+
(n) => we(t, n)
|
|
158
158
|
);
|
|
159
159
|
}
|
|
160
160
|
findAll(e = {}) {
|
|
161
|
-
return this.getAll().filter((t) =>
|
|
161
|
+
return this.getAll().filter((t) => we(e, t));
|
|
162
162
|
}
|
|
163
163
|
notify(e) {
|
|
164
|
-
|
|
164
|
+
j.batch(() => {
|
|
165
165
|
this.listeners.forEach((t) => {
|
|
166
166
|
t(e);
|
|
167
167
|
});
|
|
@@ -169,69 +169,69 @@ var cn = class extends Me {
|
|
|
169
169
|
}
|
|
170
170
|
resumePausedMutations() {
|
|
171
171
|
const e = this.getAll().filter((t) => t.state.isPaused);
|
|
172
|
-
return
|
|
172
|
+
return j.batch(
|
|
173
173
|
() => Promise.all(
|
|
174
|
-
e.map((t) => t.continue().catch(
|
|
174
|
+
e.map((t) => t.continue().catch(I))
|
|
175
175
|
)
|
|
176
176
|
);
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
|
-
function
|
|
179
|
+
function V(e) {
|
|
180
180
|
return e.options.scope?.id;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function $e(e) {
|
|
183
183
|
return {
|
|
184
184
|
onFetch: (t, n) => {
|
|
185
185
|
const r = t.options, o = t.fetchOptions?.meta?.fetchMore?.direction, s = t.state.data?.pages || [], i = t.state.data?.pageParams || [];
|
|
186
|
-
let u = { pages: [], pageParams: [] },
|
|
187
|
-
const
|
|
188
|
-
let
|
|
189
|
-
const
|
|
190
|
-
Object.defineProperty(
|
|
186
|
+
let u = { pages: [], pageParams: [] }, d = 0;
|
|
187
|
+
const l = async () => {
|
|
188
|
+
let f = !1;
|
|
189
|
+
const g = (m) => {
|
|
190
|
+
Object.defineProperty(m, "signal", {
|
|
191
191
|
enumerable: !0,
|
|
192
|
-
get: () => (t.signal.aborted ?
|
|
193
|
-
|
|
192
|
+
get: () => (t.signal.aborted ? f = !0 : t.signal.addEventListener("abort", () => {
|
|
193
|
+
f = !0;
|
|
194
194
|
}), t.signal)
|
|
195
195
|
});
|
|
196
|
-
}, p =
|
|
197
|
-
if (
|
|
196
|
+
}, p = $t(t.options, t.fetchOptions), v = async (m, k, P) => {
|
|
197
|
+
if (f)
|
|
198
198
|
return Promise.reject();
|
|
199
|
-
if (
|
|
200
|
-
return Promise.resolve(
|
|
201
|
-
const
|
|
202
|
-
const
|
|
199
|
+
if (k == null && m.pages.length)
|
|
200
|
+
return Promise.resolve(m);
|
|
201
|
+
const L = (() => {
|
|
202
|
+
const H = {
|
|
203
203
|
client: t.client,
|
|
204
204
|
queryKey: t.queryKey,
|
|
205
|
-
pageParam:
|
|
205
|
+
pageParam: k,
|
|
206
206
|
direction: P ? "backward" : "forward",
|
|
207
207
|
meta: t.options.meta
|
|
208
208
|
};
|
|
209
|
-
return
|
|
210
|
-
})(),
|
|
209
|
+
return g(H), H;
|
|
210
|
+
})(), $ = await p(L), { maxPages: x } = t.options, S = P ? jt : Pt;
|
|
211
211
|
return {
|
|
212
|
-
pages:
|
|
213
|
-
pageParams:
|
|
212
|
+
pages: S(m.pages, $, x),
|
|
213
|
+
pageParams: S(m.pageParams, k, x)
|
|
214
214
|
};
|
|
215
215
|
};
|
|
216
216
|
if (o && s.length) {
|
|
217
|
-
const
|
|
217
|
+
const m = o === "backward", k = m ? vn : je, P = {
|
|
218
218
|
pages: s,
|
|
219
219
|
pageParams: i
|
|
220
|
-
},
|
|
221
|
-
u = await
|
|
220
|
+
}, Z = k(r, P);
|
|
221
|
+
u = await v(P, Z, m);
|
|
222
222
|
} else {
|
|
223
|
-
const
|
|
223
|
+
const m = e ?? s.length;
|
|
224
224
|
do {
|
|
225
|
-
const
|
|
226
|
-
if (
|
|
225
|
+
const k = d === 0 ? i[0] ?? r.initialPageParam : je(r, u);
|
|
226
|
+
if (d > 0 && k == null)
|
|
227
227
|
break;
|
|
228
|
-
u = await
|
|
229
|
-
} while (
|
|
228
|
+
u = await v(u, k), d++;
|
|
229
|
+
} while (d < m);
|
|
230
230
|
}
|
|
231
231
|
return u;
|
|
232
232
|
};
|
|
233
233
|
t.options.persister ? t.fetchFn = () => t.options.persister?.(
|
|
234
|
-
|
|
234
|
+
l,
|
|
235
235
|
{
|
|
236
236
|
client: t.client,
|
|
237
237
|
queryKey: t.queryKey,
|
|
@@ -239,11 +239,11 @@ function we(e) {
|
|
|
239
239
|
signal: t.signal
|
|
240
240
|
},
|
|
241
241
|
n
|
|
242
|
-
) : t.fetchFn =
|
|
242
|
+
) : t.fetchFn = l;
|
|
243
243
|
}
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function je(e, { pages: t, pageParams: n }) {
|
|
247
247
|
const r = t.length - 1;
|
|
248
248
|
return t.length > 0 ? e.getNextPageParam(
|
|
249
249
|
t[r],
|
|
@@ -252,10 +252,10 @@ function be(e, { pages: t, pageParams: n }) {
|
|
|
252
252
|
n
|
|
253
253
|
) : void 0;
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function vn(e, { pages: t, pageParams: n }) {
|
|
256
256
|
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
|
|
257
257
|
}
|
|
258
|
-
var
|
|
258
|
+
var _n = class {
|
|
259
259
|
#e;
|
|
260
260
|
#t;
|
|
261
261
|
#n;
|
|
@@ -265,12 +265,12 @@ var dn = class {
|
|
|
265
265
|
#i;
|
|
266
266
|
#a;
|
|
267
267
|
constructor(e = {}) {
|
|
268
|
-
this.#e = e.queryCache || new
|
|
268
|
+
this.#e = e.queryCache || new mn(), this.#t = e.mutationCache || new gn(), this.#n = e.defaultOptions || {}, this.#o = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#r = 0;
|
|
269
269
|
}
|
|
270
270
|
mount() {
|
|
271
|
-
this.#r++, this.#r === 1 && (this.#i =
|
|
271
|
+
this.#r++, this.#r === 1 && (this.#i = Ot.subscribe(async (e) => {
|
|
272
272
|
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
273
|
-
}), this.#a =
|
|
273
|
+
}), this.#a = be.subscribe(async (e) => {
|
|
274
274
|
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
275
275
|
}));
|
|
276
276
|
}
|
|
@@ -296,7 +296,7 @@ var dn = class {
|
|
|
296
296
|
}
|
|
297
297
|
ensureQueryData(e) {
|
|
298
298
|
const t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
|
|
299
|
-
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(
|
|
299
|
+
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(ze(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
|
|
300
300
|
}
|
|
301
301
|
getQueriesData(e) {
|
|
302
302
|
return this.#e.findAll(e).map(({ queryKey: t, state: n }) => {
|
|
@@ -307,12 +307,12 @@ var dn = class {
|
|
|
307
307
|
setQueryData(e, t, n) {
|
|
308
308
|
const r = this.defaultQueryOptions({ queryKey: e }), s = this.#e.get(
|
|
309
309
|
r.queryHash
|
|
310
|
-
)?.state.data, i =
|
|
310
|
+
)?.state.data, i = Et(t, s);
|
|
311
311
|
if (i !== void 0)
|
|
312
312
|
return this.#e.build(this, r).setData(i, { ...n, manual: !0 });
|
|
313
313
|
}
|
|
314
314
|
setQueriesData(e, t, n) {
|
|
315
|
-
return
|
|
315
|
+
return j.batch(
|
|
316
316
|
() => this.#e.findAll(e).map(({ queryKey: r }) => [
|
|
317
317
|
r,
|
|
318
318
|
this.setQueryData(r, t, n)
|
|
@@ -327,7 +327,7 @@ var dn = class {
|
|
|
327
327
|
}
|
|
328
328
|
removeQueries(e) {
|
|
329
329
|
const t = this.#e;
|
|
330
|
-
|
|
330
|
+
j.batch(() => {
|
|
331
331
|
t.findAll(e).forEach((n) => {
|
|
332
332
|
t.remove(n);
|
|
333
333
|
});
|
|
@@ -335,7 +335,7 @@ var dn = class {
|
|
|
335
335
|
}
|
|
336
336
|
resetQueries(e, t) {
|
|
337
337
|
const n = this.#e;
|
|
338
|
-
return
|
|
338
|
+
return j.batch(() => (n.findAll(e).forEach((r) => {
|
|
339
339
|
r.reset();
|
|
340
340
|
}), this.refetchQueries(
|
|
341
341
|
{
|
|
@@ -346,13 +346,13 @@ var dn = class {
|
|
|
346
346
|
)));
|
|
347
347
|
}
|
|
348
348
|
cancelQueries(e, t = {}) {
|
|
349
|
-
const n = { revert: !0, ...t }, r =
|
|
349
|
+
const n = { revert: !0, ...t }, r = j.batch(
|
|
350
350
|
() => this.#e.findAll(e).map((o) => o.cancel(n))
|
|
351
351
|
);
|
|
352
|
-
return Promise.all(r).then(
|
|
352
|
+
return Promise.all(r).then(I).catch(I);
|
|
353
353
|
}
|
|
354
354
|
invalidateQueries(e, t = {}) {
|
|
355
|
-
return
|
|
355
|
+
return j.batch(() => (this.#e.findAll(e).forEach((n) => {
|
|
356
356
|
n.invalidate();
|
|
357
357
|
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries(
|
|
358
358
|
{
|
|
@@ -366,36 +366,36 @@ var dn = class {
|
|
|
366
366
|
const n = {
|
|
367
367
|
...t,
|
|
368
368
|
cancelRefetch: t.cancelRefetch ?? !0
|
|
369
|
-
}, r =
|
|
369
|
+
}, r = j.batch(
|
|
370
370
|
() => this.#e.findAll(e).filter((o) => !o.isDisabled() && !o.isStatic()).map((o) => {
|
|
371
371
|
let s = o.fetch(void 0, n);
|
|
372
|
-
return n.throwOnError || (s = s.catch(
|
|
372
|
+
return n.throwOnError || (s = s.catch(I)), o.state.fetchStatus === "paused" ? Promise.resolve() : s;
|
|
373
373
|
})
|
|
374
374
|
);
|
|
375
|
-
return Promise.all(r).then(
|
|
375
|
+
return Promise.all(r).then(I);
|
|
376
376
|
}
|
|
377
377
|
fetchQuery(e) {
|
|
378
378
|
const t = this.defaultQueryOptions(e);
|
|
379
379
|
t.retry === void 0 && (t.retry = !1);
|
|
380
380
|
const n = this.#e.build(this, t);
|
|
381
381
|
return n.isStaleByTime(
|
|
382
|
-
|
|
382
|
+
ze(t.staleTime, n)
|
|
383
383
|
) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
384
384
|
}
|
|
385
385
|
prefetchQuery(e) {
|
|
386
|
-
return this.fetchQuery(e).then(
|
|
386
|
+
return this.fetchQuery(e).then(I).catch(I);
|
|
387
387
|
}
|
|
388
388
|
fetchInfiniteQuery(e) {
|
|
389
|
-
return e.behavior =
|
|
389
|
+
return e.behavior = $e(e.pages), this.fetchQuery(e);
|
|
390
390
|
}
|
|
391
391
|
prefetchInfiniteQuery(e) {
|
|
392
|
-
return this.fetchInfiniteQuery(e).then(
|
|
392
|
+
return this.fetchInfiniteQuery(e).then(I).catch(I);
|
|
393
393
|
}
|
|
394
394
|
ensureInfiniteQueryData(e) {
|
|
395
|
-
return e.behavior =
|
|
395
|
+
return e.behavior = $e(e.pages), this.ensureQueryData(e);
|
|
396
396
|
}
|
|
397
397
|
resumePausedMutations() {
|
|
398
|
-
return
|
|
398
|
+
return be.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
399
399
|
}
|
|
400
400
|
getQueryCache() {
|
|
401
401
|
return this.#e;
|
|
@@ -410,7 +410,7 @@ var dn = class {
|
|
|
410
410
|
this.#n = e;
|
|
411
411
|
}
|
|
412
412
|
setQueryDefaults(e, t) {
|
|
413
|
-
this.#o.set(
|
|
413
|
+
this.#o.set(ke(e), {
|
|
414
414
|
queryKey: e,
|
|
415
415
|
defaultOptions: t
|
|
416
416
|
});
|
|
@@ -418,11 +418,11 @@ var dn = class {
|
|
|
418
418
|
getQueryDefaults(e) {
|
|
419
419
|
const t = [...this.#o.values()], n = {};
|
|
420
420
|
return t.forEach((r) => {
|
|
421
|
-
|
|
421
|
+
xe(e, r.queryKey) && Object.assign(n, r.defaultOptions);
|
|
422
422
|
}), n;
|
|
423
423
|
}
|
|
424
424
|
setMutationDefaults(e, t) {
|
|
425
|
-
this.#s.set(
|
|
425
|
+
this.#s.set(ke(e), {
|
|
426
426
|
mutationKey: e,
|
|
427
427
|
defaultOptions: t
|
|
428
428
|
});
|
|
@@ -430,7 +430,7 @@ var dn = class {
|
|
|
430
430
|
getMutationDefaults(e) {
|
|
431
431
|
const t = [...this.#s.values()], n = {};
|
|
432
432
|
return t.forEach((r) => {
|
|
433
|
-
|
|
433
|
+
xe(e, r.mutationKey) && Object.assign(n, r.defaultOptions);
|
|
434
434
|
}), n;
|
|
435
435
|
}
|
|
436
436
|
defaultQueryOptions(e) {
|
|
@@ -442,10 +442,10 @@ var dn = class {
|
|
|
442
442
|
...e,
|
|
443
443
|
_defaulted: !0
|
|
444
444
|
};
|
|
445
|
-
return t.queryHash || (t.queryHash =
|
|
445
|
+
return t.queryHash || (t.queryHash = Je(
|
|
446
446
|
t.queryKey,
|
|
447
447
|
t
|
|
448
|
-
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn ===
|
|
448
|
+
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === At && (t.enabled = !1), t;
|
|
449
449
|
}
|
|
450
450
|
defaultMutationOptions(e) {
|
|
451
451
|
return e?._defaulted ? e : {
|
|
@@ -459,90 +459,90 @@ var dn = class {
|
|
|
459
459
|
this.#e.clear(), this.#t.clear();
|
|
460
460
|
}
|
|
461
461
|
};
|
|
462
|
-
function
|
|
462
|
+
function yn(e) {
|
|
463
463
|
return e;
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function Pe(e, t, n) {
|
|
466
466
|
if (typeof t != "object" || t === null)
|
|
467
467
|
return;
|
|
468
|
-
const r = e.getMutationCache(), o = e.getQueryCache(), s = n?.defaultOptions?.deserializeData ?? e.getDefaultOptions().hydrate?.deserializeData ??
|
|
469
|
-
i.forEach(({ state:
|
|
468
|
+
const r = e.getMutationCache(), o = e.getQueryCache(), s = n?.defaultOptions?.deserializeData ?? e.getDefaultOptions().hydrate?.deserializeData ?? yn, i = t.mutations || [], u = t.queries || [];
|
|
469
|
+
i.forEach(({ state: d, ...l }) => {
|
|
470
470
|
r.build(
|
|
471
471
|
e,
|
|
472
472
|
{
|
|
473
473
|
...e.getDefaultOptions().hydrate?.mutations,
|
|
474
474
|
...n?.defaultOptions?.mutations,
|
|
475
|
-
...
|
|
475
|
+
...l
|
|
476
476
|
},
|
|
477
|
-
|
|
477
|
+
d
|
|
478
478
|
);
|
|
479
479
|
}), u.forEach(
|
|
480
|
-
({ queryKey:
|
|
481
|
-
const
|
|
482
|
-
let
|
|
483
|
-
const
|
|
484
|
-
if (
|
|
485
|
-
const
|
|
480
|
+
({ queryKey: d, state: l, queryHash: f, meta: g, promise: p, dehydratedAt: v }) => {
|
|
481
|
+
const m = p ? Tt(p) : void 0, k = l.data === void 0 ? m?.data : l.data, P = k === void 0 ? k : s(k);
|
|
482
|
+
let Z = o.get(f);
|
|
483
|
+
const L = Z?.state.status === "pending", $ = Z?.state.fetchStatus === "fetching";
|
|
484
|
+
if (Z) {
|
|
485
|
+
const x = m && // We only need this undefined check to handle older dehydration
|
|
486
486
|
// payloads that might not have dehydratedAt
|
|
487
|
-
|
|
488
|
-
if (
|
|
489
|
-
const { fetchStatus:
|
|
490
|
-
|
|
491
|
-
...
|
|
487
|
+
v !== void 0 && v > Z.state.dataUpdatedAt;
|
|
488
|
+
if (l.dataUpdatedAt > Z.state.dataUpdatedAt || x) {
|
|
489
|
+
const { fetchStatus: S, ...H } = l;
|
|
490
|
+
Z.setState({
|
|
491
|
+
...H,
|
|
492
492
|
data: P
|
|
493
493
|
});
|
|
494
494
|
}
|
|
495
495
|
} else
|
|
496
|
-
|
|
496
|
+
Z = o.build(
|
|
497
497
|
e,
|
|
498
498
|
{
|
|
499
499
|
...e.getDefaultOptions().hydrate?.queries,
|
|
500
500
|
...n?.defaultOptions?.queries,
|
|
501
|
-
queryKey:
|
|
502
|
-
queryHash:
|
|
503
|
-
meta:
|
|
501
|
+
queryKey: d,
|
|
502
|
+
queryHash: f,
|
|
503
|
+
meta: g
|
|
504
504
|
},
|
|
505
505
|
// Reset fetch status to idle to avoid
|
|
506
506
|
// query being stuck in fetching state upon hydration
|
|
507
507
|
{
|
|
508
|
-
...
|
|
508
|
+
...l,
|
|
509
509
|
data: P,
|
|
510
510
|
fetchStatus: "idle",
|
|
511
|
-
status: P !== void 0 ? "success" :
|
|
511
|
+
status: P !== void 0 ? "success" : l.status
|
|
512
512
|
}
|
|
513
513
|
);
|
|
514
|
-
p && !
|
|
514
|
+
p && !L && !$ && // Only hydrate if dehydration is newer than any existing data,
|
|
515
515
|
// this is always true for new queries
|
|
516
|
-
(
|
|
516
|
+
(v === void 0 || v > Z.state.dataUpdatedAt) && Z.fetch(void 0, {
|
|
517
517
|
// RSC transformed promises are not thenable
|
|
518
518
|
initialPromise: Promise.resolve(p).then(s)
|
|
519
519
|
});
|
|
520
520
|
}
|
|
521
521
|
);
|
|
522
522
|
}
|
|
523
|
-
var
|
|
523
|
+
var wn = ({
|
|
524
524
|
children: e,
|
|
525
525
|
options: t = {},
|
|
526
526
|
state: n,
|
|
527
527
|
queryClient: r
|
|
528
528
|
}) => {
|
|
529
|
-
const o =
|
|
529
|
+
const o = St(r), s = D.useRef(t);
|
|
530
530
|
s.current = t;
|
|
531
|
-
const i =
|
|
531
|
+
const i = D.useMemo(() => {
|
|
532
532
|
if (n) {
|
|
533
533
|
if (typeof n != "object")
|
|
534
534
|
return;
|
|
535
|
-
const u = o.getQueryCache(),
|
|
536
|
-
for (const
|
|
537
|
-
const p = u.get(
|
|
538
|
-
p ? (
|
|
535
|
+
const u = o.getQueryCache(), d = n.queries || [], l = [], f = [];
|
|
536
|
+
for (const g of d) {
|
|
537
|
+
const p = u.get(g.queryHash);
|
|
538
|
+
p ? (g.state.dataUpdatedAt > p.state.dataUpdatedAt || g.promise && p.state.status !== "pending" && p.state.fetchStatus !== "fetching" && g.dehydratedAt !== void 0 && g.dehydratedAt > p.state.dataUpdatedAt) && f.push(g) : l.push(g);
|
|
539
539
|
}
|
|
540
|
-
if (
|
|
541
|
-
return
|
|
540
|
+
if (l.length > 0 && Pe(o, { queries: l }, s.current), f.length > 0)
|
|
541
|
+
return f;
|
|
542
542
|
}
|
|
543
543
|
}, [o, n]);
|
|
544
|
-
return
|
|
545
|
-
i &&
|
|
544
|
+
return D.useEffect(() => {
|
|
545
|
+
i && Pe(o, { queries: i }, s.current);
|
|
546
546
|
}, [o, i]), e;
|
|
547
547
|
};
|
|
548
548
|
/**
|
|
@@ -555,69 +555,74 @@ var fn = ({
|
|
|
555
555
|
*
|
|
556
556
|
* @license MIT
|
|
557
557
|
*/
|
|
558
|
-
function
|
|
559
|
-
return /* @__PURE__ */
|
|
558
|
+
function bn(e) {
|
|
559
|
+
return /* @__PURE__ */ D.createElement(Ut, { flushSync: Lt.flushSync, ...e });
|
|
560
560
|
}
|
|
561
|
-
const
|
|
561
|
+
const zn = new _n({
|
|
562
562
|
defaultOptions: {
|
|
563
563
|
queries: {
|
|
564
564
|
staleTime: 1e3 * 60 * 5
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
}),
|
|
567
|
+
}), kn = ({
|
|
568
568
|
router: e,
|
|
569
569
|
hydrate: t = !1
|
|
570
|
-
}) => /* @__PURE__ */ a.jsx(
|
|
570
|
+
}) => /* @__PURE__ */ a.jsx(Ye, { children: /* @__PURE__ */ a.jsx(Ge, { client: zn, children: /* @__PURE__ */ a.jsx(wn, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(tt, { value: !1, children: /* @__PURE__ */ a.jsx(Ke, { children: /* @__PURE__ */ a.jsx(Bt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(bn, { router: e }) }) }) }) }) }) }), xn = ({
|
|
571
571
|
router: e,
|
|
572
572
|
context: t,
|
|
573
573
|
queryClient: n,
|
|
574
574
|
helmetContext: r,
|
|
575
575
|
bypassProtection: o = !1
|
|
576
|
-
}) => /* @__PURE__ */ a.jsx(
|
|
576
|
+
}) => /* @__PURE__ */ a.jsx(Ye, { children: /* @__PURE__ */ a.jsx(Ge, { client: n, children: /* @__PURE__ */ a.jsx(Ke, { context: r, children: /* @__PURE__ */ a.jsx(tt, { value: o, children: /* @__PURE__ */ a.jsx(qt, { router: e, context: t }) }) }) }) });
|
|
577
577
|
function c(e, t, n) {
|
|
578
|
-
function r(u,
|
|
579
|
-
var
|
|
578
|
+
function r(u, d) {
|
|
579
|
+
var l;
|
|
580
580
|
Object.defineProperty(u, "_zod", {
|
|
581
581
|
value: u._zod ?? {},
|
|
582
582
|
enumerable: !1
|
|
583
|
-
}), (
|
|
584
|
-
for (const
|
|
585
|
-
|
|
586
|
-
u._zod.constr = i, u._zod.def =
|
|
583
|
+
}), (l = u._zod).traits ?? (l.traits = /* @__PURE__ */ new Set()), u._zod.traits.add(e), t(u, d);
|
|
584
|
+
for (const f in i.prototype)
|
|
585
|
+
f in u || Object.defineProperty(u, f, { value: i.prototype[f].bind(u) });
|
|
586
|
+
u._zod.constr = i, u._zod.def = d;
|
|
587
587
|
}
|
|
588
588
|
const o = n?.Parent ?? Object;
|
|
589
589
|
class s extends o {
|
|
590
590
|
}
|
|
591
591
|
Object.defineProperty(s, "name", { value: e });
|
|
592
592
|
function i(u) {
|
|
593
|
-
var
|
|
594
|
-
const
|
|
595
|
-
r(
|
|
596
|
-
for (const
|
|
597
|
-
|
|
598
|
-
return
|
|
593
|
+
var d;
|
|
594
|
+
const l = n?.Parent ? new s() : this;
|
|
595
|
+
r(l, u), (d = l._zod).deferred ?? (d.deferred = []);
|
|
596
|
+
for (const f of l._zod.deferred)
|
|
597
|
+
f();
|
|
598
|
+
return l;
|
|
599
599
|
}
|
|
600
600
|
return Object.defineProperty(i, "init", { value: r }), Object.defineProperty(i, Symbol.hasInstance, {
|
|
601
601
|
value: (u) => n?.Parent && u instanceof n.Parent ? !0 : u?._zod?.traits?.has(e)
|
|
602
602
|
}), Object.defineProperty(i, "name", { value: e }), i;
|
|
603
603
|
}
|
|
604
|
-
class
|
|
604
|
+
class Q extends Error {
|
|
605
605
|
constructor() {
|
|
606
606
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
609
|
+
class nt extends Error {
|
|
610
|
+
constructor(t) {
|
|
611
|
+
super(`Encountered unidirectional transform during encode: ${t}`), this.name = "ZodEncodeError";
|
|
612
|
+
}
|
|
612
613
|
}
|
|
613
|
-
|
|
614
|
+
const rt = {};
|
|
615
|
+
function R(e) {
|
|
616
|
+
return rt;
|
|
617
|
+
}
|
|
618
|
+
function Zn(e) {
|
|
614
619
|
const t = Object.values(e).filter((r) => typeof r == "number");
|
|
615
620
|
return Object.entries(e).filter(([r, o]) => t.indexOf(+r) === -1).map(([r, o]) => o);
|
|
616
621
|
}
|
|
617
|
-
function
|
|
622
|
+
function ue(e, t) {
|
|
618
623
|
return typeof t == "bigint" ? t.toString() : t;
|
|
619
624
|
}
|
|
620
|
-
function
|
|
625
|
+
function he(e) {
|
|
621
626
|
return {
|
|
622
627
|
get value() {
|
|
623
628
|
{
|
|
@@ -627,24 +632,24 @@ function Je(e) {
|
|
|
627
632
|
}
|
|
628
633
|
};
|
|
629
634
|
}
|
|
630
|
-
function
|
|
635
|
+
function fe(e) {
|
|
631
636
|
return e == null;
|
|
632
637
|
}
|
|
633
|
-
function
|
|
638
|
+
function pe(e) {
|
|
634
639
|
const t = e.startsWith("^") ? 1 : 0, n = e.endsWith("$") ? e.length - 1 : e.length;
|
|
635
640
|
return e.slice(t, n);
|
|
636
641
|
}
|
|
642
|
+
const Oe = Symbol("evaluating");
|
|
637
643
|
function _(e, t, n) {
|
|
644
|
+
let r;
|
|
638
645
|
Object.defineProperty(e, t, {
|
|
639
646
|
get() {
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
return e[t] = r, r;
|
|
643
|
-
}
|
|
647
|
+
if (r !== Oe)
|
|
648
|
+
return r === void 0 && (r = Oe, r = n()), r;
|
|
644
649
|
},
|
|
645
|
-
set(
|
|
650
|
+
set(o) {
|
|
646
651
|
Object.defineProperty(e, t, {
|
|
647
|
-
value:
|
|
652
|
+
value: o
|
|
648
653
|
// configurable: true,
|
|
649
654
|
});
|
|
650
655
|
},
|
|
@@ -659,7 +664,7 @@ function U(e, t, n) {
|
|
|
659
664
|
configurable: !0
|
|
660
665
|
});
|
|
661
666
|
}
|
|
662
|
-
function
|
|
667
|
+
function q(...e) {
|
|
663
668
|
const t = {};
|
|
664
669
|
for (const n of e) {
|
|
665
670
|
const r = Object.getOwnPropertyDescriptors(n);
|
|
@@ -667,15 +672,15 @@ function M(...e) {
|
|
|
667
672
|
}
|
|
668
673
|
return Object.defineProperties({}, t);
|
|
669
674
|
}
|
|
670
|
-
function
|
|
675
|
+
function Ee(e) {
|
|
671
676
|
return JSON.stringify(e);
|
|
672
677
|
}
|
|
673
|
-
const
|
|
678
|
+
const ot = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
674
679
|
};
|
|
675
|
-
function
|
|
680
|
+
function ee(e) {
|
|
676
681
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
677
682
|
}
|
|
678
|
-
const
|
|
683
|
+
const $n = he(() => {
|
|
679
684
|
if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
|
|
680
685
|
return !1;
|
|
681
686
|
try {
|
|
@@ -685,24 +690,27 @@ const yn = Je(() => {
|
|
|
685
690
|
return !1;
|
|
686
691
|
}
|
|
687
692
|
});
|
|
688
|
-
function
|
|
689
|
-
if (
|
|
693
|
+
function B(e) {
|
|
694
|
+
if (ee(e) === !1)
|
|
690
695
|
return !1;
|
|
691
696
|
const t = e.constructor;
|
|
692
697
|
if (t === void 0)
|
|
693
698
|
return !0;
|
|
694
699
|
const n = t.prototype;
|
|
695
|
-
return !(
|
|
700
|
+
return !(ee(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
|
|
701
|
+
}
|
|
702
|
+
function st(e) {
|
|
703
|
+
return B(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
|
|
696
704
|
}
|
|
697
|
-
const
|
|
698
|
-
function
|
|
705
|
+
const jn = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
706
|
+
function se(e) {
|
|
699
707
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
700
708
|
}
|
|
701
|
-
function
|
|
709
|
+
function N(e, t, n) {
|
|
702
710
|
const r = new e._zod.constr(t ?? e._zod.def);
|
|
703
711
|
return (!t || n?.parent) && (r._zod.parent = e), r;
|
|
704
712
|
}
|
|
705
|
-
function
|
|
713
|
+
function h(e) {
|
|
706
714
|
const t = e;
|
|
707
715
|
if (!t)
|
|
708
716
|
return {};
|
|
@@ -715,11 +723,11 @@ function l(e) {
|
|
|
715
723
|
}
|
|
716
724
|
return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
|
|
717
725
|
}
|
|
718
|
-
function
|
|
726
|
+
function Pn(e) {
|
|
719
727
|
return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
|
|
720
728
|
}
|
|
721
|
-
function
|
|
722
|
-
const n = e._zod.def, r =
|
|
729
|
+
function On(e, t) {
|
|
730
|
+
const n = e._zod.def, r = q(e._zod.def, {
|
|
723
731
|
get shape() {
|
|
724
732
|
const o = {};
|
|
725
733
|
for (const s in t) {
|
|
@@ -731,10 +739,10 @@ function zn(e, t) {
|
|
|
731
739
|
},
|
|
732
740
|
checks: []
|
|
733
741
|
});
|
|
734
|
-
return
|
|
742
|
+
return N(e, r);
|
|
735
743
|
}
|
|
736
|
-
function
|
|
737
|
-
const n = e._zod.def, r =
|
|
744
|
+
function En(e, t) {
|
|
745
|
+
const n = e._zod.def, r = q(e._zod.def, {
|
|
738
746
|
get shape() {
|
|
739
747
|
const o = { ...e._zod.def.shape };
|
|
740
748
|
for (const s in t) {
|
|
@@ -746,22 +754,38 @@ function xn(e, t) {
|
|
|
746
754
|
},
|
|
747
755
|
checks: []
|
|
748
756
|
});
|
|
749
|
-
return
|
|
757
|
+
return N(e, r);
|
|
750
758
|
}
|
|
751
|
-
function
|
|
752
|
-
if (!
|
|
759
|
+
function An(e, t) {
|
|
760
|
+
if (!B(t))
|
|
753
761
|
throw new Error("Invalid input to extend: expected a plain object");
|
|
754
|
-
const n =
|
|
762
|
+
const n = e._zod.def.checks;
|
|
763
|
+
if (n && n.length > 0)
|
|
764
|
+
throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");
|
|
765
|
+
const o = q(e._zod.def, {
|
|
755
766
|
get shape() {
|
|
756
|
-
const
|
|
757
|
-
return U(this, "shape",
|
|
767
|
+
const s = { ...e._zod.def.shape, ...t };
|
|
768
|
+
return U(this, "shape", s), s;
|
|
758
769
|
},
|
|
759
770
|
checks: []
|
|
760
771
|
});
|
|
761
|
-
return
|
|
772
|
+
return N(e, o);
|
|
762
773
|
}
|
|
763
|
-
function
|
|
764
|
-
|
|
774
|
+
function Tn(e, t) {
|
|
775
|
+
if (!B(t))
|
|
776
|
+
throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
777
|
+
const n = {
|
|
778
|
+
...e._zod.def,
|
|
779
|
+
get shape() {
|
|
780
|
+
const r = { ...e._zod.def.shape, ...t };
|
|
781
|
+
return U(this, "shape", r), r;
|
|
782
|
+
},
|
|
783
|
+
checks: e._zod.def.checks
|
|
784
|
+
};
|
|
785
|
+
return N(e, n);
|
|
786
|
+
}
|
|
787
|
+
function Sn(e, t) {
|
|
788
|
+
const n = q(e._zod.def, {
|
|
765
789
|
get shape() {
|
|
766
790
|
const r = { ...e._zod.def.shape, ...t._zod.def.shape };
|
|
767
791
|
return U(this, "shape", r), r;
|
|
@@ -772,10 +796,10 @@ function Zn(e, t) {
|
|
|
772
796
|
checks: []
|
|
773
797
|
// delete existing checks
|
|
774
798
|
});
|
|
775
|
-
return
|
|
799
|
+
return N(e, n);
|
|
776
800
|
}
|
|
777
|
-
function
|
|
778
|
-
const r =
|
|
801
|
+
function In(e, t, n) {
|
|
802
|
+
const r = q(t._zod.def, {
|
|
779
803
|
get shape() {
|
|
780
804
|
const o = t._zod.def.shape, s = { ...o };
|
|
781
805
|
if (n)
|
|
@@ -797,10 +821,10 @@ function $n(e, t, n) {
|
|
|
797
821
|
},
|
|
798
822
|
checks: []
|
|
799
823
|
});
|
|
800
|
-
return
|
|
824
|
+
return N(t, r);
|
|
801
825
|
}
|
|
802
|
-
function
|
|
803
|
-
const r =
|
|
826
|
+
function Dn(e, t, n) {
|
|
827
|
+
const r = q(t._zod.def, {
|
|
804
828
|
get shape() {
|
|
805
829
|
const o = t._zod.def.shape, s = { ...o };
|
|
806
830
|
if (n)
|
|
@@ -822,35 +846,37 @@ function jn(e, t, n) {
|
|
|
822
846
|
},
|
|
823
847
|
checks: []
|
|
824
848
|
});
|
|
825
|
-
return
|
|
849
|
+
return N(t, r);
|
|
826
850
|
}
|
|
827
|
-
function
|
|
851
|
+
function M(e, t = 0) {
|
|
852
|
+
if (e.aborted === !0)
|
|
853
|
+
return !0;
|
|
828
854
|
for (let n = t; n < e.issues.length; n++)
|
|
829
855
|
if (e.issues[n]?.continue !== !0)
|
|
830
856
|
return !0;
|
|
831
857
|
return !1;
|
|
832
858
|
}
|
|
833
|
-
function
|
|
859
|
+
function it(e, t) {
|
|
834
860
|
return t.map((n) => {
|
|
835
861
|
var r;
|
|
836
862
|
return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
|
|
837
863
|
});
|
|
838
864
|
}
|
|
839
|
-
function
|
|
865
|
+
function J(e) {
|
|
840
866
|
return typeof e == "string" ? e : e?.message;
|
|
841
867
|
}
|
|
842
|
-
function
|
|
868
|
+
function F(e, t, n) {
|
|
843
869
|
const r = { ...e, path: e.path ?? [] };
|
|
844
870
|
if (!e.message) {
|
|
845
|
-
const o =
|
|
871
|
+
const o = J(e.inst?._zod.def?.error?.(e)) ?? J(t?.error?.(e)) ?? J(n.customError?.(e)) ?? J(n.localeError?.(e)) ?? "Invalid input";
|
|
846
872
|
r.message = o;
|
|
847
873
|
}
|
|
848
874
|
return delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
|
|
849
875
|
}
|
|
850
|
-
function
|
|
876
|
+
function me(e) {
|
|
851
877
|
return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
|
|
852
878
|
}
|
|
853
|
-
function
|
|
879
|
+
function W(...e) {
|
|
854
880
|
const [t, n, r] = e;
|
|
855
881
|
return typeof t == "string" ? {
|
|
856
882
|
message: t,
|
|
@@ -859,108 +885,118 @@ function B(...e) {
|
|
|
859
885
|
inst: r
|
|
860
886
|
} : { ...t };
|
|
861
887
|
}
|
|
862
|
-
const
|
|
888
|
+
const at = (e, t) => {
|
|
863
889
|
e.name = "$ZodError", Object.defineProperty(e, "_zod", {
|
|
864
890
|
value: e._zod,
|
|
865
891
|
enumerable: !1
|
|
866
892
|
}), Object.defineProperty(e, "issues", {
|
|
867
893
|
value: t,
|
|
868
894
|
enumerable: !1
|
|
869
|
-
}), e.message = JSON.stringify(t,
|
|
895
|
+
}), e.message = JSON.stringify(t, ue, 2), Object.defineProperty(e, "toString", {
|
|
870
896
|
value: () => e.message,
|
|
871
897
|
enumerable: !1
|
|
872
898
|
});
|
|
873
|
-
},
|
|
874
|
-
function
|
|
899
|
+
}, ct = c("$ZodError", at), ut = c("$ZodError", at, { Parent: Error });
|
|
900
|
+
function Cn(e, t = (n) => n.message) {
|
|
875
901
|
const n = {}, r = [];
|
|
876
902
|
for (const o of e.issues)
|
|
877
903
|
o.path.length > 0 ? (n[o.path[0]] = n[o.path[0]] || [], n[o.path[0]].push(t(o))) : r.push(t(o));
|
|
878
904
|
return { formErrors: r, fieldErrors: n };
|
|
879
905
|
}
|
|
880
|
-
function
|
|
881
|
-
const n =
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
if (
|
|
886
|
-
|
|
887
|
-
else if (
|
|
888
|
-
|
|
889
|
-
else if (
|
|
890
|
-
|
|
891
|
-
else if (i.path.length === 0)
|
|
892
|
-
r._errors.push(n(i));
|
|
906
|
+
function Nn(e, t = (n) => n.message) {
|
|
907
|
+
const n = { _errors: [] }, r = (o) => {
|
|
908
|
+
for (const s of o.issues)
|
|
909
|
+
if (s.code === "invalid_union" && s.errors.length)
|
|
910
|
+
s.errors.map((i) => r({ issues: i }));
|
|
911
|
+
else if (s.code === "invalid_key")
|
|
912
|
+
r({ issues: s.issues });
|
|
913
|
+
else if (s.code === "invalid_element")
|
|
914
|
+
r({ issues: s.issues });
|
|
915
|
+
else if (s.path.length === 0)
|
|
916
|
+
n._errors.push(t(s));
|
|
893
917
|
else {
|
|
894
|
-
let
|
|
895
|
-
for (;
|
|
896
|
-
const d =
|
|
897
|
-
|
|
918
|
+
let i = n, u = 0;
|
|
919
|
+
for (; u < s.path.length; ) {
|
|
920
|
+
const d = s.path[u];
|
|
921
|
+
u === s.path.length - 1 ? (i[d] = i[d] || { _errors: [] }, i[d]._errors.push(t(s))) : i[d] = i[d] || { _errors: [] }, i = i[d], u++;
|
|
898
922
|
}
|
|
899
923
|
}
|
|
900
924
|
};
|
|
901
|
-
return
|
|
925
|
+
return r(e), n;
|
|
902
926
|
}
|
|
903
|
-
const
|
|
927
|
+
const ge = (e) => (t, n, r, o) => {
|
|
904
928
|
const s = r ? Object.assign(r, { async: !1 }) : { async: !1 }, i = t._zod.run({ value: n, issues: [] }, s);
|
|
905
929
|
if (i instanceof Promise)
|
|
906
|
-
throw new
|
|
930
|
+
throw new Q();
|
|
907
931
|
if (i.issues.length) {
|
|
908
|
-
const u = new (o?.Err ?? e)(i.issues.map((
|
|
909
|
-
throw
|
|
932
|
+
const u = new (o?.Err ?? e)(i.issues.map((d) => F(d, s, R())));
|
|
933
|
+
throw ot(u, o?.callee), u;
|
|
910
934
|
}
|
|
911
935
|
return i.value;
|
|
912
|
-
},
|
|
936
|
+
}, ve = (e) => async (t, n, r, o) => {
|
|
913
937
|
const s = r ? Object.assign(r, { async: !0 }) : { async: !0 };
|
|
914
938
|
let i = t._zod.run({ value: n, issues: [] }, s);
|
|
915
939
|
if (i instanceof Promise && (i = await i), i.issues.length) {
|
|
916
|
-
const u = new (o?.Err ?? e)(i.issues.map((
|
|
917
|
-
throw
|
|
940
|
+
const u = new (o?.Err ?? e)(i.issues.map((d) => F(d, s, R())));
|
|
941
|
+
throw ot(u, o?.callee), u;
|
|
918
942
|
}
|
|
919
943
|
return i.value;
|
|
920
|
-
},
|
|
944
|
+
}, ie = (e) => (t, n, r) => {
|
|
921
945
|
const o = r ? { ...r, async: !1 } : { async: !1 }, s = t._zod.run({ value: n, issues: [] }, o);
|
|
922
946
|
if (s instanceof Promise)
|
|
923
|
-
throw new
|
|
947
|
+
throw new Q();
|
|
924
948
|
return s.issues.length ? {
|
|
925
949
|
success: !1,
|
|
926
|
-
error: new (e ??
|
|
950
|
+
error: new (e ?? ct)(s.issues.map((i) => F(i, o, R())))
|
|
927
951
|
} : { success: !0, data: s.value };
|
|
928
|
-
},
|
|
952
|
+
}, Rn = /* @__PURE__ */ ie(ut), ae = (e) => async (t, n, r) => {
|
|
929
953
|
const o = r ? Object.assign(r, { async: !0 }) : { async: !0 };
|
|
930
954
|
let s = t._zod.run({ value: n, issues: [] }, o);
|
|
931
955
|
return s instanceof Promise && (s = await s), s.issues.length ? {
|
|
932
956
|
success: !1,
|
|
933
|
-
error: new e(s.issues.map((i) =>
|
|
957
|
+
error: new e(s.issues.map((i) => F(i, o, R())))
|
|
934
958
|
} : { success: !0, data: s.value };
|
|
935
|
-
},
|
|
936
|
-
|
|
937
|
-
return
|
|
938
|
-
}
|
|
939
|
-
const
|
|
940
|
-
|
|
959
|
+
}, Fn = /* @__PURE__ */ ae(ut), Un = (e) => (t, n, r) => {
|
|
960
|
+
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
961
|
+
return ge(e)(t, n, o);
|
|
962
|
+
}, qn = (e) => (t, n, r) => ge(e)(t, n, r), Mn = (e) => async (t, n, r) => {
|
|
963
|
+
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
964
|
+
return ve(e)(t, n, o);
|
|
965
|
+
}, Qn = (e) => async (t, n, r) => ve(e)(t, n, r), Ln = (e) => (t, n, r) => {
|
|
966
|
+
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
967
|
+
return ie(e)(t, n, o);
|
|
968
|
+
}, Bn = (e) => (t, n, r) => ie(e)(t, n, r), Wn = (e) => async (t, n, r) => {
|
|
969
|
+
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
970
|
+
return ae(e)(t, n, o);
|
|
971
|
+
}, Kn = (e) => async (t, n, r) => ae(e)(t, n, r), Hn = /^[cC][^\s-]{8,}$/, Vn = /^[0-9a-z]+$/, Jn = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Gn = /^[0-9a-vA-V]{20}$/, Yn = /^[A-Za-z0-9]{27}$/, Xn = /^[a-zA-Z0-9_-]{21}$/, er = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, tr = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Ae = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, nr = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, rr = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
972
|
+
function or() {
|
|
973
|
+
return new RegExp(rr, "u");
|
|
974
|
+
}
|
|
975
|
+
const sr = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, ir = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, ar = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, cr = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, ur = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, lt = /^[A-Za-z0-9_-]*$/, lr = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, dr = /^\+(?:[0-9]){6,14}[0-9]$/, dt = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", hr = /* @__PURE__ */ new RegExp(`^${dt}$`);
|
|
976
|
+
function ht(e) {
|
|
941
977
|
const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
942
978
|
return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
943
979
|
}
|
|
944
|
-
function
|
|
945
|
-
return new RegExp(`^${
|
|
980
|
+
function fr(e) {
|
|
981
|
+
return new RegExp(`^${ht(e)}$`);
|
|
946
982
|
}
|
|
947
|
-
function
|
|
948
|
-
const t =
|
|
949
|
-
e.local && n.push(""), e.offset && n.push("([+-]\\d
|
|
983
|
+
function pr(e) {
|
|
984
|
+
const t = ht({ precision: e.precision }), n = ["Z"];
|
|
985
|
+
e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
|
|
950
986
|
const r = `${t}(?:${n.join("|")})`;
|
|
951
|
-
return new RegExp(`^${
|
|
987
|
+
return new RegExp(`^${dt}T(?:${r})$`);
|
|
952
988
|
}
|
|
953
|
-
const
|
|
989
|
+
const mr = (e) => {
|
|
954
990
|
const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
955
991
|
return new RegExp(`^${t}$`);
|
|
956
|
-
},
|
|
992
|
+
}, gr = /^[^A-Z]*$/, vr = /^[^a-z]*$/, T = /* @__PURE__ */ c("$ZodCheck", (e, t) => {
|
|
957
993
|
var n;
|
|
958
994
|
e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
|
|
959
|
-
}),
|
|
995
|
+
}), _r = /* @__PURE__ */ c("$ZodCheckMaxLength", (e, t) => {
|
|
960
996
|
var n;
|
|
961
|
-
|
|
997
|
+
T.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
962
998
|
const o = r.value;
|
|
963
|
-
return !
|
|
999
|
+
return !fe(o) && o.length !== void 0;
|
|
964
1000
|
}), e._zod.onattach.push((r) => {
|
|
965
1001
|
const o = r._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
966
1002
|
t.maximum < o && (r._zod.bag.maximum = t.maximum);
|
|
@@ -968,7 +1004,7 @@ const tr = (e) => {
|
|
|
968
1004
|
const o = r.value;
|
|
969
1005
|
if (o.length <= t.maximum)
|
|
970
1006
|
return;
|
|
971
|
-
const i =
|
|
1007
|
+
const i = me(o);
|
|
972
1008
|
r.issues.push({
|
|
973
1009
|
origin: i,
|
|
974
1010
|
code: "too_big",
|
|
@@ -979,11 +1015,11 @@ const tr = (e) => {
|
|
|
979
1015
|
continue: !t.abort
|
|
980
1016
|
});
|
|
981
1017
|
};
|
|
982
|
-
}),
|
|
1018
|
+
}), yr = /* @__PURE__ */ c("$ZodCheckMinLength", (e, t) => {
|
|
983
1019
|
var n;
|
|
984
|
-
|
|
1020
|
+
T.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
985
1021
|
const o = r.value;
|
|
986
|
-
return !
|
|
1022
|
+
return !fe(o) && o.length !== void 0;
|
|
987
1023
|
}), e._zod.onattach.push((r) => {
|
|
988
1024
|
const o = r._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
989
1025
|
t.minimum > o && (r._zod.bag.minimum = t.minimum);
|
|
@@ -991,7 +1027,7 @@ const tr = (e) => {
|
|
|
991
1027
|
const o = r.value;
|
|
992
1028
|
if (o.length >= t.minimum)
|
|
993
1029
|
return;
|
|
994
|
-
const i =
|
|
1030
|
+
const i = me(o);
|
|
995
1031
|
r.issues.push({
|
|
996
1032
|
origin: i,
|
|
997
1033
|
code: "too_small",
|
|
@@ -1002,11 +1038,11 @@ const tr = (e) => {
|
|
|
1002
1038
|
continue: !t.abort
|
|
1003
1039
|
});
|
|
1004
1040
|
};
|
|
1005
|
-
}),
|
|
1041
|
+
}), wr = /* @__PURE__ */ c("$ZodCheckLengthEquals", (e, t) => {
|
|
1006
1042
|
var n;
|
|
1007
|
-
|
|
1043
|
+
T.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
1008
1044
|
const o = r.value;
|
|
1009
|
-
return !
|
|
1045
|
+
return !fe(o) && o.length !== void 0;
|
|
1010
1046
|
}), e._zod.onattach.push((r) => {
|
|
1011
1047
|
const o = r._zod.bag;
|
|
1012
1048
|
o.minimum = t.length, o.maximum = t.length, o.length = t.length;
|
|
@@ -1014,7 +1050,7 @@ const tr = (e) => {
|
|
|
1014
1050
|
const o = r.value, s = o.length;
|
|
1015
1051
|
if (s === t.length)
|
|
1016
1052
|
return;
|
|
1017
|
-
const i =
|
|
1053
|
+
const i = me(o), u = s > t.length;
|
|
1018
1054
|
r.issues.push({
|
|
1019
1055
|
origin: i,
|
|
1020
1056
|
...u ? { code: "too_big", maximum: t.length } : { code: "too_small", minimum: t.length },
|
|
@@ -1025,9 +1061,9 @@ const tr = (e) => {
|
|
|
1025
1061
|
continue: !t.abort
|
|
1026
1062
|
});
|
|
1027
1063
|
};
|
|
1028
|
-
}),
|
|
1064
|
+
}), ce = /* @__PURE__ */ c("$ZodCheckStringFormat", (e, t) => {
|
|
1029
1065
|
var n, r;
|
|
1030
|
-
|
|
1066
|
+
T.init(e, t), e._zod.onattach.push((o) => {
|
|
1031
1067
|
const s = o._zod.bag;
|
|
1032
1068
|
s.format = t.format, t.pattern && (s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(t.pattern));
|
|
1033
1069
|
}), t.pattern ? (n = e._zod).check ?? (n.check = (o) => {
|
|
@@ -1042,8 +1078,8 @@ const tr = (e) => {
|
|
|
1042
1078
|
});
|
|
1043
1079
|
}) : (r = e._zod).check ?? (r.check = () => {
|
|
1044
1080
|
});
|
|
1045
|
-
}),
|
|
1046
|
-
|
|
1081
|
+
}), br = /* @__PURE__ */ c("$ZodCheckRegex", (e, t) => {
|
|
1082
|
+
ce.init(e, t), e._zod.check = (n) => {
|
|
1047
1083
|
t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
|
|
1048
1084
|
origin: "string",
|
|
1049
1085
|
code: "invalid_format",
|
|
@@ -1054,13 +1090,13 @@ const tr = (e) => {
|
|
|
1054
1090
|
continue: !t.abort
|
|
1055
1091
|
});
|
|
1056
1092
|
};
|
|
1057
|
-
}),
|
|
1058
|
-
t.pattern ?? (t.pattern =
|
|
1059
|
-
}),
|
|
1060
|
-
t.pattern ?? (t.pattern =
|
|
1061
|
-
}),
|
|
1062
|
-
|
|
1063
|
-
const n =
|
|
1093
|
+
}), zr = /* @__PURE__ */ c("$ZodCheckLowerCase", (e, t) => {
|
|
1094
|
+
t.pattern ?? (t.pattern = gr), ce.init(e, t);
|
|
1095
|
+
}), kr = /* @__PURE__ */ c("$ZodCheckUpperCase", (e, t) => {
|
|
1096
|
+
t.pattern ?? (t.pattern = vr), ce.init(e, t);
|
|
1097
|
+
}), xr = /* @__PURE__ */ c("$ZodCheckIncludes", (e, t) => {
|
|
1098
|
+
T.init(e, t);
|
|
1099
|
+
const n = se(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
|
|
1064
1100
|
t.pattern = r, e._zod.onattach.push((o) => {
|
|
1065
1101
|
const s = o._zod.bag;
|
|
1066
1102
|
s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(r);
|
|
@@ -1075,9 +1111,9 @@ const tr = (e) => {
|
|
|
1075
1111
|
continue: !t.abort
|
|
1076
1112
|
});
|
|
1077
1113
|
};
|
|
1078
|
-
}),
|
|
1079
|
-
|
|
1080
|
-
const n = new RegExp(`^${
|
|
1114
|
+
}), Zr = /* @__PURE__ */ c("$ZodCheckStartsWith", (e, t) => {
|
|
1115
|
+
T.init(e, t);
|
|
1116
|
+
const n = new RegExp(`^${se(t.prefix)}.*`);
|
|
1081
1117
|
t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
|
|
1082
1118
|
const o = r._zod.bag;
|
|
1083
1119
|
o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(n);
|
|
@@ -1092,9 +1128,9 @@ const tr = (e) => {
|
|
|
1092
1128
|
continue: !t.abort
|
|
1093
1129
|
});
|
|
1094
1130
|
};
|
|
1095
|
-
}),
|
|
1096
|
-
|
|
1097
|
-
const n = new RegExp(`.*${
|
|
1131
|
+
}), $r = /* @__PURE__ */ c("$ZodCheckEndsWith", (e, t) => {
|
|
1132
|
+
T.init(e, t);
|
|
1133
|
+
const n = new RegExp(`.*${se(t.suffix)}$`);
|
|
1098
1134
|
t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
|
|
1099
1135
|
const o = r._zod.bag;
|
|
1100
1136
|
o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(n);
|
|
@@ -1109,12 +1145,12 @@ const tr = (e) => {
|
|
|
1109
1145
|
continue: !t.abort
|
|
1110
1146
|
});
|
|
1111
1147
|
};
|
|
1112
|
-
}),
|
|
1113
|
-
|
|
1148
|
+
}), jr = /* @__PURE__ */ c("$ZodCheckOverwrite", (e, t) => {
|
|
1149
|
+
T.init(e, t), e._zod.check = (n) => {
|
|
1114
1150
|
n.value = t.tx(n.value);
|
|
1115
1151
|
};
|
|
1116
1152
|
});
|
|
1117
|
-
class
|
|
1153
|
+
class Pr {
|
|
1118
1154
|
constructor(t = []) {
|
|
1119
1155
|
this.content = [], this.indent = 0, this && (this.args = t);
|
|
1120
1156
|
}
|
|
@@ -1137,13 +1173,13 @@ class pr {
|
|
|
1137
1173
|
`));
|
|
1138
1174
|
}
|
|
1139
1175
|
}
|
|
1140
|
-
const
|
|
1176
|
+
const Or = {
|
|
1141
1177
|
major: 4,
|
|
1142
|
-
minor:
|
|
1143
|
-
patch:
|
|
1144
|
-
},
|
|
1178
|
+
minor: 1,
|
|
1179
|
+
patch: 12
|
|
1180
|
+
}, b = /* @__PURE__ */ c("$ZodType", (e, t) => {
|
|
1145
1181
|
var n;
|
|
1146
|
-
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version =
|
|
1182
|
+
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Or;
|
|
1147
1183
|
const r = [...e._zod.def.checks ?? []];
|
|
1148
1184
|
e._zod.traits.has("$ZodCheck") && r.unshift(e);
|
|
1149
1185
|
for (const o of r)
|
|
@@ -1154,53 +1190,69 @@ const mr = {
|
|
|
1154
1190
|
e._zod.run = e._zod.parse;
|
|
1155
1191
|
});
|
|
1156
1192
|
else {
|
|
1157
|
-
const o = (
|
|
1158
|
-
let
|
|
1159
|
-
for (const g of
|
|
1193
|
+
const o = (i, u, d) => {
|
|
1194
|
+
let l = M(i), f;
|
|
1195
|
+
for (const g of u) {
|
|
1160
1196
|
if (g._zod.def.when) {
|
|
1161
|
-
if (!g._zod.def.when(
|
|
1197
|
+
if (!g._zod.def.when(i))
|
|
1162
1198
|
continue;
|
|
1163
|
-
} else if (
|
|
1199
|
+
} else if (l)
|
|
1164
1200
|
continue;
|
|
1165
|
-
const
|
|
1166
|
-
if (
|
|
1167
|
-
throw new
|
|
1168
|
-
if (
|
|
1169
|
-
|
|
1170
|
-
await
|
|
1201
|
+
const p = i.issues.length, v = g._zod.check(i);
|
|
1202
|
+
if (v instanceof Promise && d?.async === !1)
|
|
1203
|
+
throw new Q();
|
|
1204
|
+
if (f || v instanceof Promise)
|
|
1205
|
+
f = (f ?? Promise.resolve()).then(async () => {
|
|
1206
|
+
await v, i.issues.length !== p && (l || (l = M(i, p)));
|
|
1171
1207
|
});
|
|
1172
1208
|
else {
|
|
1173
|
-
if (
|
|
1209
|
+
if (i.issues.length === p)
|
|
1174
1210
|
continue;
|
|
1175
|
-
|
|
1211
|
+
l || (l = M(i, p));
|
|
1176
1212
|
}
|
|
1177
1213
|
}
|
|
1178
|
-
return
|
|
1214
|
+
return f ? f.then(() => i) : i;
|
|
1215
|
+
}, s = (i, u, d) => {
|
|
1216
|
+
if (M(i))
|
|
1217
|
+
return i.aborted = !0, i;
|
|
1218
|
+
const l = o(u, r, d);
|
|
1219
|
+
if (l instanceof Promise) {
|
|
1220
|
+
if (d.async === !1)
|
|
1221
|
+
throw new Q();
|
|
1222
|
+
return l.then((f) => e._zod.parse(f, d));
|
|
1223
|
+
}
|
|
1224
|
+
return e._zod.parse(l, d);
|
|
1179
1225
|
};
|
|
1180
|
-
e._zod.run = (
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
return
|
|
1226
|
+
e._zod.run = (i, u) => {
|
|
1227
|
+
if (u.skipChecks)
|
|
1228
|
+
return e._zod.parse(i, u);
|
|
1229
|
+
if (u.direction === "backward") {
|
|
1230
|
+
const l = e._zod.parse({ value: i.value, issues: [] }, { ...u, skipChecks: !0 });
|
|
1231
|
+
return l instanceof Promise ? l.then((f) => s(f, i, u)) : s(l, i, u);
|
|
1186
1232
|
}
|
|
1187
|
-
|
|
1233
|
+
const d = e._zod.parse(i, u);
|
|
1234
|
+
if (d instanceof Promise) {
|
|
1235
|
+
if (u.async === !1)
|
|
1236
|
+
throw new Q();
|
|
1237
|
+
return d.then((l) => o(l, r, u));
|
|
1238
|
+
}
|
|
1239
|
+
return o(d, r, u);
|
|
1188
1240
|
};
|
|
1189
1241
|
}
|
|
1190
1242
|
e["~standard"] = {
|
|
1191
1243
|
validate: (o) => {
|
|
1192
1244
|
try {
|
|
1193
|
-
const s =
|
|
1245
|
+
const s = Rn(e, o);
|
|
1194
1246
|
return s.success ? { value: s.data } : { issues: s.error?.issues };
|
|
1195
1247
|
} catch {
|
|
1196
|
-
return
|
|
1248
|
+
return Fn(e, o).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
|
|
1197
1249
|
}
|
|
1198
1250
|
},
|
|
1199
1251
|
vendor: "zod",
|
|
1200
1252
|
version: 1
|
|
1201
1253
|
};
|
|
1202
|
-
}),
|
|
1203
|
-
|
|
1254
|
+
}), _e = /* @__PURE__ */ c("$ZodString", (e, t) => {
|
|
1255
|
+
b.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? mr(e._zod.bag), e._zod.parse = (n, r) => {
|
|
1204
1256
|
if (t.coerce)
|
|
1205
1257
|
try {
|
|
1206
1258
|
n.value = String(n.value);
|
|
@@ -1214,10 +1266,10 @@ const mr = {
|
|
|
1214
1266
|
}), n;
|
|
1215
1267
|
};
|
|
1216
1268
|
}), y = /* @__PURE__ */ c("$ZodStringFormat", (e, t) => {
|
|
1217
|
-
|
|
1218
|
-
}),
|
|
1219
|
-
t.pattern ?? (t.pattern =
|
|
1220
|
-
}),
|
|
1269
|
+
ce.init(e, t), _e.init(e, t);
|
|
1270
|
+
}), Er = /* @__PURE__ */ c("$ZodGUID", (e, t) => {
|
|
1271
|
+
t.pattern ?? (t.pattern = tr), y.init(e, t);
|
|
1272
|
+
}), Ar = /* @__PURE__ */ c("$ZodUUID", (e, t) => {
|
|
1221
1273
|
if (t.version) {
|
|
1222
1274
|
const r = {
|
|
1223
1275
|
v1: 1,
|
|
@@ -1231,13 +1283,13 @@ const mr = {
|
|
|
1231
1283
|
}[t.version];
|
|
1232
1284
|
if (r === void 0)
|
|
1233
1285
|
throw new Error(`Invalid UUID version: "${t.version}"`);
|
|
1234
|
-
t.pattern ?? (t.pattern =
|
|
1286
|
+
t.pattern ?? (t.pattern = Ae(r));
|
|
1235
1287
|
} else
|
|
1236
|
-
t.pattern ?? (t.pattern =
|
|
1288
|
+
t.pattern ?? (t.pattern = Ae());
|
|
1237
1289
|
y.init(e, t);
|
|
1238
|
-
}),
|
|
1239
|
-
t.pattern ?? (t.pattern =
|
|
1240
|
-
}),
|
|
1290
|
+
}), Tr = /* @__PURE__ */ c("$ZodEmail", (e, t) => {
|
|
1291
|
+
t.pattern ?? (t.pattern = nr), y.init(e, t);
|
|
1292
|
+
}), Sr = /* @__PURE__ */ c("$ZodURL", (e, t) => {
|
|
1241
1293
|
y.init(e, t), e._zod.check = (n) => {
|
|
1242
1294
|
try {
|
|
1243
1295
|
const r = n.value.trim(), o = new URL(r);
|
|
@@ -1245,7 +1297,7 @@ const mr = {
|
|
|
1245
1297
|
code: "invalid_format",
|
|
1246
1298
|
format: "url",
|
|
1247
1299
|
note: "Invalid hostname",
|
|
1248
|
-
pattern:
|
|
1300
|
+
pattern: lr.source,
|
|
1249
1301
|
input: n.value,
|
|
1250
1302
|
inst: e,
|
|
1251
1303
|
continue: !t.abort
|
|
@@ -1269,35 +1321,35 @@ const mr = {
|
|
|
1269
1321
|
});
|
|
1270
1322
|
}
|
|
1271
1323
|
};
|
|
1272
|
-
}),
|
|
1273
|
-
t.pattern ?? (t.pattern =
|
|
1274
|
-
}),
|
|
1275
|
-
t.pattern ?? (t.pattern =
|
|
1276
|
-
}),
|
|
1277
|
-
t.pattern ?? (t.pattern =
|
|
1278
|
-
}),
|
|
1279
|
-
t.pattern ?? (t.pattern =
|
|
1280
|
-
}),
|
|
1281
|
-
t.pattern ?? (t.pattern =
|
|
1282
|
-
}),
|
|
1283
|
-
t.pattern ?? (t.pattern =
|
|
1284
|
-
}),
|
|
1285
|
-
t.pattern ?? (t.pattern = Rn), y.init(e, t);
|
|
1286
|
-
}), jr = /* @__PURE__ */ c("$ZodISODateTime", (e, t) => {
|
|
1287
|
-
t.pattern ?? (t.pattern = er(t)), y.init(e, t);
|
|
1288
|
-
}), Pr = /* @__PURE__ */ c("$ZodISODate", (e, t) => {
|
|
1324
|
+
}), Ir = /* @__PURE__ */ c("$ZodEmoji", (e, t) => {
|
|
1325
|
+
t.pattern ?? (t.pattern = or()), y.init(e, t);
|
|
1326
|
+
}), Dr = /* @__PURE__ */ c("$ZodNanoID", (e, t) => {
|
|
1327
|
+
t.pattern ?? (t.pattern = Xn), y.init(e, t);
|
|
1328
|
+
}), Cr = /* @__PURE__ */ c("$ZodCUID", (e, t) => {
|
|
1329
|
+
t.pattern ?? (t.pattern = Hn), y.init(e, t);
|
|
1330
|
+
}), Nr = /* @__PURE__ */ c("$ZodCUID2", (e, t) => {
|
|
1331
|
+
t.pattern ?? (t.pattern = Vn), y.init(e, t);
|
|
1332
|
+
}), Rr = /* @__PURE__ */ c("$ZodULID", (e, t) => {
|
|
1333
|
+
t.pattern ?? (t.pattern = Jn), y.init(e, t);
|
|
1334
|
+
}), Fr = /* @__PURE__ */ c("$ZodXID", (e, t) => {
|
|
1335
|
+
t.pattern ?? (t.pattern = Gn), y.init(e, t);
|
|
1336
|
+
}), Ur = /* @__PURE__ */ c("$ZodKSUID", (e, t) => {
|
|
1289
1337
|
t.pattern ?? (t.pattern = Yn), y.init(e, t);
|
|
1290
|
-
}),
|
|
1291
|
-
t.pattern ?? (t.pattern =
|
|
1292
|
-
}),
|
|
1293
|
-
t.pattern ?? (t.pattern =
|
|
1294
|
-
}),
|
|
1295
|
-
t.pattern ?? (t.pattern =
|
|
1338
|
+
}), qr = /* @__PURE__ */ c("$ZodISODateTime", (e, t) => {
|
|
1339
|
+
t.pattern ?? (t.pattern = pr(t)), y.init(e, t);
|
|
1340
|
+
}), Mr = /* @__PURE__ */ c("$ZodISODate", (e, t) => {
|
|
1341
|
+
t.pattern ?? (t.pattern = hr), y.init(e, t);
|
|
1342
|
+
}), Qr = /* @__PURE__ */ c("$ZodISOTime", (e, t) => {
|
|
1343
|
+
t.pattern ?? (t.pattern = fr(t)), y.init(e, t);
|
|
1344
|
+
}), Lr = /* @__PURE__ */ c("$ZodISODuration", (e, t) => {
|
|
1345
|
+
t.pattern ?? (t.pattern = er), y.init(e, t);
|
|
1346
|
+
}), Br = /* @__PURE__ */ c("$ZodIPv4", (e, t) => {
|
|
1347
|
+
t.pattern ?? (t.pattern = sr), y.init(e, t), e._zod.onattach.push((n) => {
|
|
1296
1348
|
const r = n._zod.bag;
|
|
1297
1349
|
r.format = "ipv4";
|
|
1298
1350
|
});
|
|
1299
|
-
}),
|
|
1300
|
-
t.pattern ?? (t.pattern =
|
|
1351
|
+
}), Wr = /* @__PURE__ */ c("$ZodIPv6", (e, t) => {
|
|
1352
|
+
t.pattern ?? (t.pattern = ir), y.init(e, t), e._zod.onattach.push((n) => {
|
|
1301
1353
|
const r = n._zod.bag;
|
|
1302
1354
|
r.format = "ipv6";
|
|
1303
1355
|
}), e._zod.check = (n) => {
|
|
@@ -1313,20 +1365,23 @@ const mr = {
|
|
|
1313
1365
|
});
|
|
1314
1366
|
}
|
|
1315
1367
|
};
|
|
1316
|
-
}),
|
|
1317
|
-
t.pattern ?? (t.pattern =
|
|
1318
|
-
}),
|
|
1319
|
-
t.pattern ?? (t.pattern =
|
|
1320
|
-
const
|
|
1368
|
+
}), Kr = /* @__PURE__ */ c("$ZodCIDRv4", (e, t) => {
|
|
1369
|
+
t.pattern ?? (t.pattern = ar), y.init(e, t);
|
|
1370
|
+
}), Hr = /* @__PURE__ */ c("$ZodCIDRv6", (e, t) => {
|
|
1371
|
+
t.pattern ?? (t.pattern = cr), y.init(e, t), e._zod.check = (n) => {
|
|
1372
|
+
const r = n.value.split("/");
|
|
1321
1373
|
try {
|
|
1322
|
-
if (
|
|
1374
|
+
if (r.length !== 2)
|
|
1323
1375
|
throw new Error();
|
|
1324
|
-
const s =
|
|
1325
|
-
if (
|
|
1376
|
+
const [o, s] = r;
|
|
1377
|
+
if (!s)
|
|
1326
1378
|
throw new Error();
|
|
1327
|
-
|
|
1379
|
+
const i = Number(s);
|
|
1380
|
+
if (`${i}` !== s)
|
|
1328
1381
|
throw new Error();
|
|
1329
|
-
|
|
1382
|
+
if (i < 0 || i > 128)
|
|
1383
|
+
throw new Error();
|
|
1384
|
+
new URL(`http://[${o}]`);
|
|
1330
1385
|
} catch {
|
|
1331
1386
|
n.issues.push({
|
|
1332
1387
|
code: "invalid_format",
|
|
@@ -1338,7 +1393,7 @@ const mr = {
|
|
|
1338
1393
|
}
|
|
1339
1394
|
};
|
|
1340
1395
|
});
|
|
1341
|
-
function
|
|
1396
|
+
function ft(e) {
|
|
1342
1397
|
if (e === "")
|
|
1343
1398
|
return !0;
|
|
1344
1399
|
if (e.length % 4 !== 0)
|
|
@@ -1349,11 +1404,11 @@ function at(e) {
|
|
|
1349
1404
|
return !1;
|
|
1350
1405
|
}
|
|
1351
1406
|
}
|
|
1352
|
-
const
|
|
1353
|
-
t.pattern ?? (t.pattern =
|
|
1407
|
+
const Vr = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
|
|
1408
|
+
t.pattern ?? (t.pattern = ur), y.init(e, t), e._zod.onattach.push((n) => {
|
|
1354
1409
|
n._zod.bag.contentEncoding = "base64";
|
|
1355
1410
|
}), e._zod.check = (n) => {
|
|
1356
|
-
|
|
1411
|
+
ft(n.value) || n.issues.push({
|
|
1357
1412
|
code: "invalid_format",
|
|
1358
1413
|
format: "base64",
|
|
1359
1414
|
input: n.value,
|
|
@@ -1362,17 +1417,17 @@ const Ar = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
|
|
|
1362
1417
|
});
|
|
1363
1418
|
};
|
|
1364
1419
|
});
|
|
1365
|
-
function
|
|
1366
|
-
if (!
|
|
1420
|
+
function Jr(e) {
|
|
1421
|
+
if (!lt.test(e))
|
|
1367
1422
|
return !1;
|
|
1368
1423
|
const t = e.replace(/[-_]/g, (r) => r === "-" ? "+" : "/"), n = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
|
|
1369
|
-
return
|
|
1424
|
+
return ft(n);
|
|
1370
1425
|
}
|
|
1371
|
-
const
|
|
1372
|
-
t.pattern ?? (t.pattern =
|
|
1426
|
+
const Gr = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
|
|
1427
|
+
t.pattern ?? (t.pattern = lt), y.init(e, t), e._zod.onattach.push((n) => {
|
|
1373
1428
|
n._zod.bag.contentEncoding = "base64url";
|
|
1374
1429
|
}), e._zod.check = (n) => {
|
|
1375
|
-
|
|
1430
|
+
Jr(n.value) || n.issues.push({
|
|
1376
1431
|
code: "invalid_format",
|
|
1377
1432
|
format: "base64url",
|
|
1378
1433
|
input: n.value,
|
|
@@ -1380,10 +1435,10 @@ const Cr = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
|
|
|
1380
1435
|
continue: !t.abort
|
|
1381
1436
|
});
|
|
1382
1437
|
};
|
|
1383
|
-
}),
|
|
1384
|
-
t.pattern ?? (t.pattern =
|
|
1438
|
+
}), Yr = /* @__PURE__ */ c("$ZodE164", (e, t) => {
|
|
1439
|
+
t.pattern ?? (t.pattern = dr), y.init(e, t);
|
|
1385
1440
|
});
|
|
1386
|
-
function
|
|
1441
|
+
function Xr(e, t = null) {
|
|
1387
1442
|
try {
|
|
1388
1443
|
const n = e.split(".");
|
|
1389
1444
|
if (n.length !== 3)
|
|
@@ -1397,9 +1452,9 @@ function Ur(e, t = null) {
|
|
|
1397
1452
|
return !1;
|
|
1398
1453
|
}
|
|
1399
1454
|
}
|
|
1400
|
-
const
|
|
1455
|
+
const eo = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
|
|
1401
1456
|
y.init(e, t), e._zod.check = (n) => {
|
|
1402
|
-
|
|
1457
|
+
Xr(n.value, t.alg) || n.issues.push({
|
|
1403
1458
|
code: "invalid_format",
|
|
1404
1459
|
format: "jwt",
|
|
1405
1460
|
input: n.value,
|
|
@@ -1407,21 +1462,21 @@ const Fr = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
|
|
|
1407
1462
|
continue: !t.abort
|
|
1408
1463
|
});
|
|
1409
1464
|
};
|
|
1410
|
-
}),
|
|
1411
|
-
|
|
1412
|
-
}),
|
|
1413
|
-
|
|
1465
|
+
}), to = /* @__PURE__ */ c("$ZodUnknown", (e, t) => {
|
|
1466
|
+
b.init(e, t), e._zod.parse = (n) => n;
|
|
1467
|
+
}), no = /* @__PURE__ */ c("$ZodNever", (e, t) => {
|
|
1468
|
+
b.init(e, t), e._zod.parse = (n, r) => (n.issues.push({
|
|
1414
1469
|
expected: "never",
|
|
1415
1470
|
code: "invalid_type",
|
|
1416
1471
|
input: n.value,
|
|
1417
1472
|
inst: e
|
|
1418
1473
|
}), n);
|
|
1419
1474
|
});
|
|
1420
|
-
function
|
|
1421
|
-
e.issues.length && t.issues.push(...
|
|
1475
|
+
function Te(e, t, n) {
|
|
1476
|
+
e.issues.length && t.issues.push(...it(n, e.issues)), t.value[n] = e.value;
|
|
1422
1477
|
}
|
|
1423
|
-
const
|
|
1424
|
-
|
|
1478
|
+
const ro = /* @__PURE__ */ c("$ZodArray", (e, t) => {
|
|
1479
|
+
b.init(e, t), e._zod.parse = (n, r) => {
|
|
1425
1480
|
const o = n.value;
|
|
1426
1481
|
if (!Array.isArray(o))
|
|
1427
1482
|
return n.issues.push({
|
|
@@ -1433,179 +1488,206 @@ const Qr = /* @__PURE__ */ c("$ZodArray", (e, t) => {
|
|
|
1433
1488
|
n.value = Array(o.length);
|
|
1434
1489
|
const s = [];
|
|
1435
1490
|
for (let i = 0; i < o.length; i++) {
|
|
1436
|
-
const u = o[i],
|
|
1491
|
+
const u = o[i], d = t.element._zod.run({
|
|
1437
1492
|
value: u,
|
|
1438
1493
|
issues: []
|
|
1439
1494
|
}, r);
|
|
1440
|
-
|
|
1495
|
+
d instanceof Promise ? s.push(d.then((l) => Te(l, n, i))) : Te(d, n, i);
|
|
1441
1496
|
}
|
|
1442
1497
|
return s.length ? Promise.all(s).then(() => n) : n;
|
|
1443
1498
|
};
|
|
1444
1499
|
});
|
|
1445
|
-
function
|
|
1446
|
-
e.issues.length && t.issues.push(...
|
|
1447
|
-
}
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
const
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1500
|
+
function te(e, t, n, r) {
|
|
1501
|
+
e.issues.length && t.issues.push(...it(n, e.issues)), e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
|
|
1502
|
+
}
|
|
1503
|
+
function pt(e) {
|
|
1504
|
+
const t = Object.keys(e.shape);
|
|
1505
|
+
for (const r of t)
|
|
1506
|
+
if (!e.shape?.[r]?._zod?.traits?.has("$ZodType"))
|
|
1507
|
+
throw new Error(`Invalid element at key "${r}": expected a Zod schema`);
|
|
1508
|
+
const n = Pn(e.shape);
|
|
1509
|
+
return {
|
|
1510
|
+
...e,
|
|
1511
|
+
keys: t,
|
|
1512
|
+
keySet: new Set(t),
|
|
1513
|
+
numKeys: t.length,
|
|
1514
|
+
optionalKeys: new Set(n)
|
|
1515
|
+
};
|
|
1516
|
+
}
|
|
1517
|
+
function mt(e, t, n, r, o, s) {
|
|
1518
|
+
const i = [], u = o.keySet, d = o.catchall._zod, l = d.def.type;
|
|
1519
|
+
for (const f of Object.keys(t)) {
|
|
1520
|
+
if (u.has(f))
|
|
1521
|
+
continue;
|
|
1522
|
+
if (l === "never") {
|
|
1523
|
+
i.push(f);
|
|
1524
|
+
continue;
|
|
1525
|
+
}
|
|
1526
|
+
const g = d.run({ value: t[f], issues: [] }, r);
|
|
1527
|
+
g instanceof Promise ? e.push(g.then((p) => te(p, n, f, t))) : te(g, n, f, t);
|
|
1528
|
+
}
|
|
1529
|
+
return i.length && n.issues.push({
|
|
1530
|
+
code: "unrecognized_keys",
|
|
1531
|
+
keys: i,
|
|
1532
|
+
input: t,
|
|
1533
|
+
inst: s
|
|
1534
|
+
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
1535
|
+
}
|
|
1536
|
+
const oo = /* @__PURE__ */ c("$ZodObject", (e, t) => {
|
|
1537
|
+
if (b.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
|
|
1538
|
+
const u = t.shape;
|
|
1539
|
+
Object.defineProperty(t, "shape", {
|
|
1540
|
+
get: () => {
|
|
1541
|
+
const d = { ...u };
|
|
1542
|
+
return Object.defineProperty(t, "shape", {
|
|
1543
|
+
value: d
|
|
1544
|
+
}), d;
|
|
1545
|
+
}
|
|
1546
|
+
});
|
|
1547
|
+
}
|
|
1548
|
+
const r = he(() => pt(t));
|
|
1464
1549
|
_(e._zod, "propValues", () => {
|
|
1465
|
-
const
|
|
1466
|
-
for (const
|
|
1467
|
-
const
|
|
1468
|
-
if (
|
|
1469
|
-
|
|
1470
|
-
for (const
|
|
1471
|
-
|
|
1550
|
+
const u = t.shape, d = {};
|
|
1551
|
+
for (const l in u) {
|
|
1552
|
+
const f = u[l]._zod;
|
|
1553
|
+
if (f.values) {
|
|
1554
|
+
d[l] ?? (d[l] = /* @__PURE__ */ new Set());
|
|
1555
|
+
for (const g of f.values)
|
|
1556
|
+
d[l].add(g);
|
|
1472
1557
|
}
|
|
1473
1558
|
}
|
|
1474
|
-
return
|
|
1559
|
+
return d;
|
|
1475
1560
|
});
|
|
1476
|
-
const
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1561
|
+
const o = ee, s = t.catchall;
|
|
1562
|
+
let i;
|
|
1563
|
+
e._zod.parse = (u, d) => {
|
|
1564
|
+
i ?? (i = r.value);
|
|
1565
|
+
const l = u.value;
|
|
1566
|
+
if (!o(l))
|
|
1567
|
+
return u.issues.push({
|
|
1568
|
+
expected: "object",
|
|
1569
|
+
code: "invalid_type",
|
|
1570
|
+
input: l,
|
|
1571
|
+
inst: e
|
|
1572
|
+
}), u;
|
|
1573
|
+
u.value = {};
|
|
1574
|
+
const f = [], g = i.shape;
|
|
1575
|
+
for (const p of i.keys) {
|
|
1576
|
+
const m = g[p]._zod.run({ value: l[p], issues: [] }, d);
|
|
1577
|
+
m instanceof Promise ? f.push(m.then((k) => te(k, u, p, l))) : te(m, u, p, l);
|
|
1578
|
+
}
|
|
1579
|
+
return s ? mt(f, l, u, d, r.value, e) : f.length ? Promise.all(f).then(() => u) : u;
|
|
1580
|
+
};
|
|
1581
|
+
}), so = /* @__PURE__ */ c("$ZodObjectJIT", (e, t) => {
|
|
1582
|
+
oo.init(e, t);
|
|
1583
|
+
const n = e._zod.parse, r = he(() => pt(t)), o = (p) => {
|
|
1584
|
+
const v = new Pr(["shape", "payload", "ctx"]), m = r.value, k = ($) => {
|
|
1585
|
+
const x = Ee($);
|
|
1586
|
+
return `shape[${x}]._zod.run({ value: input[${x}], issues: [] }, ctx)`;
|
|
1480
1587
|
};
|
|
1481
|
-
|
|
1482
|
-
const
|
|
1483
|
-
let
|
|
1484
|
-
for (const
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
for (const
|
|
1488
|
-
const
|
|
1489
|
-
|
|
1490
|
-
if (${
|
|
1491
|
-
payload.issues = payload.issues.concat(${
|
|
1588
|
+
v.write("const input = payload.value;");
|
|
1589
|
+
const P = /* @__PURE__ */ Object.create(null);
|
|
1590
|
+
let Z = 0;
|
|
1591
|
+
for (const $ of m.keys)
|
|
1592
|
+
P[$] = `key_${Z++}`;
|
|
1593
|
+
v.write("const newResult = {};");
|
|
1594
|
+
for (const $ of m.keys) {
|
|
1595
|
+
const x = P[$], S = Ee($);
|
|
1596
|
+
v.write(`const ${x} = ${k($)};`), v.write(`
|
|
1597
|
+
if (${x}.issues.length) {
|
|
1598
|
+
payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
|
|
1492
1599
|
...iss,
|
|
1493
|
-
path: iss.path ? [${
|
|
1600
|
+
path: iss.path ? [${S}, ...iss.path] : [${S}]
|
|
1494
1601
|
})));
|
|
1495
1602
|
}
|
|
1496
1603
|
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1604
|
+
|
|
1605
|
+
if (${x}.value === undefined) {
|
|
1606
|
+
if (${S} in input) {
|
|
1607
|
+
newResult[${S}] = undefined;
|
|
1500
1608
|
}
|
|
1501
1609
|
} else {
|
|
1502
|
-
newResult[${
|
|
1610
|
+
newResult[${S}] = ${x}.value;
|
|
1503
1611
|
}
|
|
1612
|
+
|
|
1504
1613
|
`);
|
|
1505
1614
|
}
|
|
1506
|
-
|
|
1507
|
-
const
|
|
1508
|
-
return (
|
|
1615
|
+
v.write("payload.value = newResult;"), v.write("return payload;");
|
|
1616
|
+
const L = v.compile();
|
|
1617
|
+
return ($, x) => L(p, $, x);
|
|
1509
1618
|
};
|
|
1510
|
-
let
|
|
1511
|
-
const
|
|
1619
|
+
let s;
|
|
1620
|
+
const i = ee, u = !rt.jitless, l = u && $n.value, f = t.catchall;
|
|
1512
1621
|
let g;
|
|
1513
|
-
e._zod.parse = (
|
|
1514
|
-
g ?? (g =
|
|
1515
|
-
const m =
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
code: "invalid_type",
|
|
1520
|
-
input: m,
|
|
1521
|
-
inst: e
|
|
1522
|
-
}), h;
|
|
1523
|
-
const v = [];
|
|
1524
|
-
if (i && f && p?.async === !1 && p.jitless !== !0)
|
|
1525
|
-
o || (o = r(t.shape)), h = o(h, p);
|
|
1526
|
-
else {
|
|
1527
|
-
h.value = {};
|
|
1528
|
-
const b = g.shape;
|
|
1529
|
-
for (const k of g.keys) {
|
|
1530
|
-
const D = b[k]._zod.run({ value: m[k], issues: [] }, p);
|
|
1531
|
-
D instanceof Promise ? v.push(D.then((vt) => V(vt, h, k, m))) : V(D, h, k, m);
|
|
1532
|
-
}
|
|
1533
|
-
}
|
|
1534
|
-
if (!d)
|
|
1535
|
-
return v.length ? Promise.all(v).then(() => h) : h;
|
|
1536
|
-
const z = [], P = g.keySet, $ = d._zod, j = $.def.type;
|
|
1537
|
-
for (const b of Object.keys(m)) {
|
|
1538
|
-
if (P.has(b))
|
|
1539
|
-
continue;
|
|
1540
|
-
if (j === "never") {
|
|
1541
|
-
z.push(b);
|
|
1542
|
-
continue;
|
|
1543
|
-
}
|
|
1544
|
-
const k = $.run({ value: m[b], issues: [] }, p);
|
|
1545
|
-
k instanceof Promise ? v.push(k.then((q) => V(q, h, b, m))) : V(k, h, b, m);
|
|
1546
|
-
}
|
|
1547
|
-
return z.length && h.issues.push({
|
|
1548
|
-
code: "unrecognized_keys",
|
|
1549
|
-
keys: z,
|
|
1622
|
+
e._zod.parse = (p, v) => {
|
|
1623
|
+
g ?? (g = r.value);
|
|
1624
|
+
const m = p.value;
|
|
1625
|
+
return i(m) ? u && l && v?.async === !1 && v.jitless !== !0 ? (s || (s = o(t.shape)), p = s(p, v), f ? mt([], m, p, v, g, e) : p) : n(p, v) : (p.issues.push({
|
|
1626
|
+
expected: "object",
|
|
1627
|
+
code: "invalid_type",
|
|
1550
1628
|
input: m,
|
|
1551
1629
|
inst: e
|
|
1552
|
-
}),
|
|
1630
|
+
}), p);
|
|
1553
1631
|
};
|
|
1554
1632
|
});
|
|
1555
|
-
function
|
|
1633
|
+
function Se(e, t, n, r) {
|
|
1556
1634
|
for (const s of e)
|
|
1557
1635
|
if (s.issues.length === 0)
|
|
1558
1636
|
return t.value = s.value, t;
|
|
1559
|
-
const o = e.filter((s) => !
|
|
1637
|
+
const o = e.filter((s) => !M(s));
|
|
1560
1638
|
return o.length === 1 ? (t.value = o[0].value, o[0]) : (t.issues.push({
|
|
1561
1639
|
code: "invalid_union",
|
|
1562
1640
|
input: t.value,
|
|
1563
1641
|
inst: n,
|
|
1564
|
-
errors: e.map((s) => s.issues.map((i) =>
|
|
1642
|
+
errors: e.map((s) => s.issues.map((i) => F(i, r, R())))
|
|
1565
1643
|
}), t);
|
|
1566
1644
|
}
|
|
1567
|
-
const
|
|
1568
|
-
|
|
1569
|
-
if (t.options.every((
|
|
1570
|
-
return new Set(t.options.flatMap((
|
|
1645
|
+
const io = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
|
|
1646
|
+
b.init(e, t), _(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), _(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), _(e._zod, "values", () => {
|
|
1647
|
+
if (t.options.every((o) => o._zod.values))
|
|
1648
|
+
return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
|
|
1571
1649
|
}), _(e._zod, "pattern", () => {
|
|
1572
|
-
if (t.options.every((
|
|
1573
|
-
const
|
|
1574
|
-
return new RegExp(`^(${
|
|
1650
|
+
if (t.options.every((o) => o._zod.pattern)) {
|
|
1651
|
+
const o = t.options.map((s) => s._zod.pattern);
|
|
1652
|
+
return new RegExp(`^(${o.map((s) => pe(s.source)).join("|")})$`);
|
|
1575
1653
|
}
|
|
1576
|
-
})
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1654
|
+
});
|
|
1655
|
+
const n = t.options.length === 1, r = t.options[0]._zod.run;
|
|
1656
|
+
e._zod.parse = (o, s) => {
|
|
1657
|
+
if (n)
|
|
1658
|
+
return r(o, s);
|
|
1659
|
+
let i = !1;
|
|
1660
|
+
const u = [];
|
|
1661
|
+
for (const d of t.options) {
|
|
1662
|
+
const l = d._zod.run({
|
|
1663
|
+
value: o.value,
|
|
1582
1664
|
issues: []
|
|
1583
|
-
},
|
|
1584
|
-
if (
|
|
1585
|
-
|
|
1665
|
+
}, s);
|
|
1666
|
+
if (l instanceof Promise)
|
|
1667
|
+
u.push(l), i = !0;
|
|
1586
1668
|
else {
|
|
1587
|
-
if (
|
|
1588
|
-
return
|
|
1589
|
-
|
|
1669
|
+
if (l.issues.length === 0)
|
|
1670
|
+
return l;
|
|
1671
|
+
u.push(l);
|
|
1590
1672
|
}
|
|
1591
1673
|
}
|
|
1592
|
-
return
|
|
1674
|
+
return i ? Promise.all(u).then((d) => Se(d, o, e, s)) : Se(u, o, e, s);
|
|
1593
1675
|
};
|
|
1594
|
-
}),
|
|
1595
|
-
|
|
1676
|
+
}), ao = /* @__PURE__ */ c("$ZodIntersection", (e, t) => {
|
|
1677
|
+
b.init(e, t), e._zod.parse = (n, r) => {
|
|
1596
1678
|
const o = n.value, s = t.left._zod.run({ value: o, issues: [] }, r), i = t.right._zod.run({ value: o, issues: [] }, r);
|
|
1597
|
-
return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([
|
|
1679
|
+
return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([d, l]) => Ie(n, d, l)) : Ie(n, s, i);
|
|
1598
1680
|
};
|
|
1599
1681
|
});
|
|
1600
|
-
function
|
|
1682
|
+
function le(e, t) {
|
|
1601
1683
|
if (e === t)
|
|
1602
1684
|
return { valid: !0, data: e };
|
|
1603
1685
|
if (e instanceof Date && t instanceof Date && +e == +t)
|
|
1604
1686
|
return { valid: !0, data: e };
|
|
1605
|
-
if (
|
|
1687
|
+
if (B(e) && B(t)) {
|
|
1606
1688
|
const n = Object.keys(t), r = Object.keys(e).filter((s) => n.indexOf(s) !== -1), o = { ...e, ...t };
|
|
1607
1689
|
for (const s of r) {
|
|
1608
|
-
const i =
|
|
1690
|
+
const i = le(e[s], t[s]);
|
|
1609
1691
|
if (!i.valid)
|
|
1610
1692
|
return {
|
|
1611
1693
|
valid: !1,
|
|
@@ -1620,7 +1702,7 @@ function ae(e, t) {
|
|
|
1620
1702
|
return { valid: !1, mergeErrorPath: [] };
|
|
1621
1703
|
const n = [];
|
|
1622
1704
|
for (let r = 0; r < e.length; r++) {
|
|
1623
|
-
const o = e[r], s = t[r], i =
|
|
1705
|
+
const o = e[r], s = t[r], i = le(o, s);
|
|
1624
1706
|
if (!i.valid)
|
|
1625
1707
|
return {
|
|
1626
1708
|
valid: !1,
|
|
@@ -1632,18 +1714,18 @@ function ae(e, t) {
|
|
|
1632
1714
|
}
|
|
1633
1715
|
return { valid: !1, mergeErrorPath: [] };
|
|
1634
1716
|
}
|
|
1635
|
-
function
|
|
1636
|
-
if (t.issues.length && e.issues.push(...t.issues), n.issues.length && e.issues.push(...n.issues),
|
|
1717
|
+
function Ie(e, t, n) {
|
|
1718
|
+
if (t.issues.length && e.issues.push(...t.issues), n.issues.length && e.issues.push(...n.issues), M(e))
|
|
1637
1719
|
return e;
|
|
1638
|
-
const r =
|
|
1720
|
+
const r = le(t.value, n.value);
|
|
1639
1721
|
if (!r.valid)
|
|
1640
1722
|
throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);
|
|
1641
1723
|
return e.value = r.data, e;
|
|
1642
1724
|
}
|
|
1643
|
-
const
|
|
1644
|
-
|
|
1645
|
-
const n =
|
|
1646
|
-
e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) =>
|
|
1725
|
+
const co = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
|
|
1726
|
+
b.init(e, t);
|
|
1727
|
+
const n = Zn(t.entries), r = new Set(n);
|
|
1728
|
+
e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) => jn.has(typeof o)).map((o) => typeof o == "string" ? se(o) : o.toString()).join("|")})$`), e._zod.parse = (o, s) => {
|
|
1647
1729
|
const i = o.value;
|
|
1648
1730
|
return r.has(i) || o.issues.push({
|
|
1649
1731
|
code: "invalid_value",
|
|
@@ -1652,48 +1734,62 @@ const Wr = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
|
|
|
1652
1734
|
inst: e
|
|
1653
1735
|
}), o;
|
|
1654
1736
|
};
|
|
1655
|
-
}),
|
|
1656
|
-
|
|
1737
|
+
}), uo = /* @__PURE__ */ c("$ZodTransform", (e, t) => {
|
|
1738
|
+
b.init(e, t), e._zod.parse = (n, r) => {
|
|
1739
|
+
if (r.direction === "backward")
|
|
1740
|
+
throw new nt(e.constructor.name);
|
|
1657
1741
|
const o = t.transform(n.value, n);
|
|
1658
1742
|
if (r.async)
|
|
1659
1743
|
return (o instanceof Promise ? o : Promise.resolve(o)).then((i) => (n.value = i, n));
|
|
1660
1744
|
if (o instanceof Promise)
|
|
1661
|
-
throw new
|
|
1745
|
+
throw new Q();
|
|
1662
1746
|
return n.value = o, n;
|
|
1663
1747
|
};
|
|
1664
|
-
})
|
|
1665
|
-
|
|
1748
|
+
});
|
|
1749
|
+
function De(e, t) {
|
|
1750
|
+
return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
|
|
1751
|
+
}
|
|
1752
|
+
const lo = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
|
|
1753
|
+
b.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", _(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), _(e._zod, "pattern", () => {
|
|
1666
1754
|
const n = t.innerType._zod.pattern;
|
|
1667
|
-
return n ? new RegExp(`^(${
|
|
1668
|
-
}), e._zod.parse = (n, r) =>
|
|
1669
|
-
|
|
1670
|
-
|
|
1755
|
+
return n ? new RegExp(`^(${pe(n.source)})?$`) : void 0;
|
|
1756
|
+
}), e._zod.parse = (n, r) => {
|
|
1757
|
+
if (t.innerType._zod.optin === "optional") {
|
|
1758
|
+
const o = t.innerType._zod.run(n, r);
|
|
1759
|
+
return o instanceof Promise ? o.then((s) => De(s, n.value)) : De(o, n.value);
|
|
1760
|
+
}
|
|
1761
|
+
return n.value === void 0 ? n : t.innerType._zod.run(n, r);
|
|
1762
|
+
};
|
|
1763
|
+
}), ho = /* @__PURE__ */ c("$ZodNullable", (e, t) => {
|
|
1764
|
+
b.init(e, t), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), _(e._zod, "pattern", () => {
|
|
1671
1765
|
const n = t.innerType._zod.pattern;
|
|
1672
|
-
return n ? new RegExp(`^(${
|
|
1766
|
+
return n ? new RegExp(`^(${pe(n.source)}|null)$`) : void 0;
|
|
1673
1767
|
}), _(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (n, r) => n.value === null ? n : t.innerType._zod.run(n, r);
|
|
1674
|
-
}),
|
|
1675
|
-
|
|
1768
|
+
}), fo = /* @__PURE__ */ c("$ZodDefault", (e, t) => {
|
|
1769
|
+
b.init(e, t), e._zod.optin = "optional", _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
|
|
1770
|
+
if (r.direction === "backward")
|
|
1771
|
+
return t.innerType._zod.run(n, r);
|
|
1676
1772
|
if (n.value === void 0)
|
|
1677
1773
|
return n.value = t.defaultValue, n;
|
|
1678
1774
|
const o = t.innerType._zod.run(n, r);
|
|
1679
|
-
return o instanceof Promise ? o.then((s) =>
|
|
1775
|
+
return o instanceof Promise ? o.then((s) => Ce(s, t)) : Ce(o, t);
|
|
1680
1776
|
};
|
|
1681
1777
|
});
|
|
1682
|
-
function
|
|
1778
|
+
function Ce(e, t) {
|
|
1683
1779
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1684
1780
|
}
|
|
1685
|
-
const
|
|
1686
|
-
|
|
1687
|
-
}),
|
|
1688
|
-
|
|
1781
|
+
const po = /* @__PURE__ */ c("$ZodPrefault", (e, t) => {
|
|
1782
|
+
b.init(e, t), e._zod.optin = "optional", _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => (r.direction === "backward" || n.value === void 0 && (n.value = t.defaultValue), t.innerType._zod.run(n, r));
|
|
1783
|
+
}), mo = /* @__PURE__ */ c("$ZodNonOptional", (e, t) => {
|
|
1784
|
+
b.init(e, t), _(e._zod, "values", () => {
|
|
1689
1785
|
const n = t.innerType._zod.values;
|
|
1690
1786
|
return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
|
|
1691
1787
|
}), e._zod.parse = (n, r) => {
|
|
1692
1788
|
const o = t.innerType._zod.run(n, r);
|
|
1693
|
-
return o instanceof Promise ? o.then((s) =>
|
|
1789
|
+
return o instanceof Promise ? o.then((s) => Ne(s, e)) : Ne(o, e);
|
|
1694
1790
|
};
|
|
1695
1791
|
});
|
|
1696
|
-
function
|
|
1792
|
+
function Ne(e, t) {
|
|
1697
1793
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
1698
1794
|
code: "invalid_type",
|
|
1699
1795
|
expected: "nonoptional",
|
|
@@ -1701,50 +1797,58 @@ function Oe(e, t) {
|
|
|
1701
1797
|
inst: t
|
|
1702
1798
|
}), e;
|
|
1703
1799
|
}
|
|
1704
|
-
const
|
|
1705
|
-
|
|
1800
|
+
const go = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
|
|
1801
|
+
b.init(e, t), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
|
|
1802
|
+
if (r.direction === "backward")
|
|
1803
|
+
return t.innerType._zod.run(n, r);
|
|
1706
1804
|
const o = t.innerType._zod.run(n, r);
|
|
1707
1805
|
return o instanceof Promise ? o.then((s) => (n.value = s.value, s.issues.length && (n.value = t.catchValue({
|
|
1708
1806
|
...n,
|
|
1709
1807
|
error: {
|
|
1710
|
-
issues: s.issues.map((i) =>
|
|
1808
|
+
issues: s.issues.map((i) => F(i, r, R()))
|
|
1711
1809
|
},
|
|
1712
1810
|
input: n.value
|
|
1713
1811
|
}), n.issues = []), n)) : (n.value = o.value, o.issues.length && (n.value = t.catchValue({
|
|
1714
1812
|
...n,
|
|
1715
1813
|
error: {
|
|
1716
|
-
issues: o.issues.map((s) =>
|
|
1814
|
+
issues: o.issues.map((s) => F(s, r, R()))
|
|
1717
1815
|
},
|
|
1718
1816
|
input: n.value
|
|
1719
1817
|
}), n.issues = []), n);
|
|
1720
1818
|
};
|
|
1721
|
-
}),
|
|
1722
|
-
|
|
1819
|
+
}), vo = /* @__PURE__ */ c("$ZodPipe", (e, t) => {
|
|
1820
|
+
b.init(e, t), _(e._zod, "values", () => t.in._zod.values), _(e._zod, "optin", () => t.in._zod.optin), _(e._zod, "optout", () => t.out._zod.optout), _(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (n, r) => {
|
|
1821
|
+
if (r.direction === "backward") {
|
|
1822
|
+
const s = t.out._zod.run(n, r);
|
|
1823
|
+
return s instanceof Promise ? s.then((i) => G(i, t.in, r)) : G(s, t.in, r);
|
|
1824
|
+
}
|
|
1723
1825
|
const o = t.in._zod.run(n, r);
|
|
1724
|
-
return o instanceof Promise ? o.then((s) =>
|
|
1826
|
+
return o instanceof Promise ? o.then((s) => G(s, t.out, r)) : G(o, t.out, r);
|
|
1725
1827
|
};
|
|
1726
1828
|
});
|
|
1727
|
-
function
|
|
1728
|
-
return e.issues.length ? e : t.
|
|
1829
|
+
function G(e, t, n) {
|
|
1830
|
+
return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, n);
|
|
1729
1831
|
}
|
|
1730
|
-
const
|
|
1731
|
-
|
|
1832
|
+
const _o = /* @__PURE__ */ c("$ZodReadonly", (e, t) => {
|
|
1833
|
+
b.init(e, t), _(e._zod, "propValues", () => t.innerType._zod.propValues), _(e._zod, "values", () => t.innerType._zod.values), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (n, r) => {
|
|
1834
|
+
if (r.direction === "backward")
|
|
1835
|
+
return t.innerType._zod.run(n, r);
|
|
1732
1836
|
const o = t.innerType._zod.run(n, r);
|
|
1733
|
-
return o instanceof Promise ? o.then(
|
|
1837
|
+
return o instanceof Promise ? o.then(Re) : Re(o);
|
|
1734
1838
|
};
|
|
1735
1839
|
});
|
|
1736
|
-
function
|
|
1840
|
+
function Re(e) {
|
|
1737
1841
|
return e.value = Object.freeze(e.value), e;
|
|
1738
1842
|
}
|
|
1739
|
-
const
|
|
1740
|
-
|
|
1843
|
+
const yo = /* @__PURE__ */ c("$ZodCustom", (e, t) => {
|
|
1844
|
+
T.init(e, t), b.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
|
|
1741
1845
|
const r = n.value, o = t.fn(r);
|
|
1742
1846
|
if (o instanceof Promise)
|
|
1743
|
-
return o.then((s) =>
|
|
1744
|
-
|
|
1847
|
+
return o.then((s) => Fe(s, n, r, e));
|
|
1848
|
+
Fe(o, n, r, e);
|
|
1745
1849
|
};
|
|
1746
1850
|
});
|
|
1747
|
-
function
|
|
1851
|
+
function Fe(e, t, n, r) {
|
|
1748
1852
|
if (!e) {
|
|
1749
1853
|
const o = {
|
|
1750
1854
|
code: "custom",
|
|
@@ -1756,12 +1860,12 @@ function Ie(e, t, n, r) {
|
|
|
1756
1860
|
continue: !r._zod.def.abort
|
|
1757
1861
|
// params: inst._zod.def.params,
|
|
1758
1862
|
};
|
|
1759
|
-
r._zod.def.params && (o.params = r._zod.def.params), t.issues.push(
|
|
1863
|
+
r._zod.def.params && (o.params = r._zod.def.params), t.issues.push(W(o));
|
|
1760
1864
|
}
|
|
1761
1865
|
}
|
|
1762
|
-
class
|
|
1866
|
+
class wo {
|
|
1763
1867
|
constructor() {
|
|
1764
|
-
this._map = /* @__PURE__ */ new
|
|
1868
|
+
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
1765
1869
|
}
|
|
1766
1870
|
add(t, ...n) {
|
|
1767
1871
|
const r = n[0];
|
|
@@ -1773,7 +1877,7 @@ class oo {
|
|
|
1773
1877
|
return this;
|
|
1774
1878
|
}
|
|
1775
1879
|
clear() {
|
|
1776
|
-
return this._map = /* @__PURE__ */ new
|
|
1880
|
+
return this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map(), this;
|
|
1777
1881
|
}
|
|
1778
1882
|
remove(t) {
|
|
1779
1883
|
const n = this._map.get(t);
|
|
@@ -1793,218 +1897,218 @@ class oo {
|
|
|
1793
1897
|
return this._map.has(t);
|
|
1794
1898
|
}
|
|
1795
1899
|
}
|
|
1796
|
-
function
|
|
1797
|
-
return new
|
|
1900
|
+
function bo() {
|
|
1901
|
+
return new wo();
|
|
1798
1902
|
}
|
|
1799
|
-
const
|
|
1800
|
-
function
|
|
1903
|
+
const Y = /* @__PURE__ */ bo();
|
|
1904
|
+
function zo(e, t) {
|
|
1801
1905
|
return new e({
|
|
1802
1906
|
type: "string",
|
|
1803
|
-
...
|
|
1907
|
+
...h(t)
|
|
1804
1908
|
});
|
|
1805
1909
|
}
|
|
1806
|
-
function
|
|
1910
|
+
function ko(e, t) {
|
|
1807
1911
|
return new e({
|
|
1808
1912
|
type: "string",
|
|
1809
1913
|
format: "email",
|
|
1810
1914
|
check: "string_format",
|
|
1811
1915
|
abort: !1,
|
|
1812
|
-
...
|
|
1916
|
+
...h(t)
|
|
1813
1917
|
});
|
|
1814
1918
|
}
|
|
1815
|
-
function
|
|
1919
|
+
function Ue(e, t) {
|
|
1816
1920
|
return new e({
|
|
1817
1921
|
type: "string",
|
|
1818
1922
|
format: "guid",
|
|
1819
1923
|
check: "string_format",
|
|
1820
1924
|
abort: !1,
|
|
1821
|
-
...
|
|
1925
|
+
...h(t)
|
|
1822
1926
|
});
|
|
1823
1927
|
}
|
|
1824
|
-
function
|
|
1928
|
+
function xo(e, t) {
|
|
1825
1929
|
return new e({
|
|
1826
1930
|
type: "string",
|
|
1827
1931
|
format: "uuid",
|
|
1828
1932
|
check: "string_format",
|
|
1829
1933
|
abort: !1,
|
|
1830
|
-
...
|
|
1934
|
+
...h(t)
|
|
1831
1935
|
});
|
|
1832
1936
|
}
|
|
1833
|
-
function
|
|
1937
|
+
function Zo(e, t) {
|
|
1834
1938
|
return new e({
|
|
1835
1939
|
type: "string",
|
|
1836
1940
|
format: "uuid",
|
|
1837
1941
|
check: "string_format",
|
|
1838
1942
|
abort: !1,
|
|
1839
1943
|
version: "v4",
|
|
1840
|
-
...
|
|
1944
|
+
...h(t)
|
|
1841
1945
|
});
|
|
1842
1946
|
}
|
|
1843
|
-
function
|
|
1947
|
+
function $o(e, t) {
|
|
1844
1948
|
return new e({
|
|
1845
1949
|
type: "string",
|
|
1846
1950
|
format: "uuid",
|
|
1847
1951
|
check: "string_format",
|
|
1848
1952
|
abort: !1,
|
|
1849
1953
|
version: "v6",
|
|
1850
|
-
...
|
|
1954
|
+
...h(t)
|
|
1851
1955
|
});
|
|
1852
1956
|
}
|
|
1853
|
-
function
|
|
1957
|
+
function jo(e, t) {
|
|
1854
1958
|
return new e({
|
|
1855
1959
|
type: "string",
|
|
1856
1960
|
format: "uuid",
|
|
1857
1961
|
check: "string_format",
|
|
1858
1962
|
abort: !1,
|
|
1859
1963
|
version: "v7",
|
|
1860
|
-
...
|
|
1964
|
+
...h(t)
|
|
1861
1965
|
});
|
|
1862
1966
|
}
|
|
1863
|
-
function
|
|
1967
|
+
function Po(e, t) {
|
|
1864
1968
|
return new e({
|
|
1865
1969
|
type: "string",
|
|
1866
1970
|
format: "url",
|
|
1867
1971
|
check: "string_format",
|
|
1868
1972
|
abort: !1,
|
|
1869
|
-
...
|
|
1973
|
+
...h(t)
|
|
1870
1974
|
});
|
|
1871
1975
|
}
|
|
1872
|
-
function
|
|
1976
|
+
function Oo(e, t) {
|
|
1873
1977
|
return new e({
|
|
1874
1978
|
type: "string",
|
|
1875
1979
|
format: "emoji",
|
|
1876
1980
|
check: "string_format",
|
|
1877
1981
|
abort: !1,
|
|
1878
|
-
...
|
|
1982
|
+
...h(t)
|
|
1879
1983
|
});
|
|
1880
1984
|
}
|
|
1881
|
-
function
|
|
1985
|
+
function Eo(e, t) {
|
|
1882
1986
|
return new e({
|
|
1883
1987
|
type: "string",
|
|
1884
1988
|
format: "nanoid",
|
|
1885
1989
|
check: "string_format",
|
|
1886
1990
|
abort: !1,
|
|
1887
|
-
...
|
|
1991
|
+
...h(t)
|
|
1888
1992
|
});
|
|
1889
1993
|
}
|
|
1890
|
-
function
|
|
1994
|
+
function Ao(e, t) {
|
|
1891
1995
|
return new e({
|
|
1892
1996
|
type: "string",
|
|
1893
1997
|
format: "cuid",
|
|
1894
1998
|
check: "string_format",
|
|
1895
1999
|
abort: !1,
|
|
1896
|
-
...
|
|
2000
|
+
...h(t)
|
|
1897
2001
|
});
|
|
1898
2002
|
}
|
|
1899
|
-
function
|
|
2003
|
+
function To(e, t) {
|
|
1900
2004
|
return new e({
|
|
1901
2005
|
type: "string",
|
|
1902
2006
|
format: "cuid2",
|
|
1903
2007
|
check: "string_format",
|
|
1904
2008
|
abort: !1,
|
|
1905
|
-
...
|
|
2009
|
+
...h(t)
|
|
1906
2010
|
});
|
|
1907
2011
|
}
|
|
1908
|
-
function
|
|
2012
|
+
function So(e, t) {
|
|
1909
2013
|
return new e({
|
|
1910
2014
|
type: "string",
|
|
1911
2015
|
format: "ulid",
|
|
1912
2016
|
check: "string_format",
|
|
1913
2017
|
abort: !1,
|
|
1914
|
-
...
|
|
2018
|
+
...h(t)
|
|
1915
2019
|
});
|
|
1916
2020
|
}
|
|
1917
|
-
function
|
|
2021
|
+
function Io(e, t) {
|
|
1918
2022
|
return new e({
|
|
1919
2023
|
type: "string",
|
|
1920
2024
|
format: "xid",
|
|
1921
2025
|
check: "string_format",
|
|
1922
2026
|
abort: !1,
|
|
1923
|
-
...
|
|
2027
|
+
...h(t)
|
|
1924
2028
|
});
|
|
1925
2029
|
}
|
|
1926
|
-
function
|
|
2030
|
+
function Do(e, t) {
|
|
1927
2031
|
return new e({
|
|
1928
2032
|
type: "string",
|
|
1929
2033
|
format: "ksuid",
|
|
1930
2034
|
check: "string_format",
|
|
1931
2035
|
abort: !1,
|
|
1932
|
-
...
|
|
2036
|
+
...h(t)
|
|
1933
2037
|
});
|
|
1934
2038
|
}
|
|
1935
|
-
function
|
|
2039
|
+
function Co(e, t) {
|
|
1936
2040
|
return new e({
|
|
1937
2041
|
type: "string",
|
|
1938
2042
|
format: "ipv4",
|
|
1939
2043
|
check: "string_format",
|
|
1940
2044
|
abort: !1,
|
|
1941
|
-
...
|
|
2045
|
+
...h(t)
|
|
1942
2046
|
});
|
|
1943
2047
|
}
|
|
1944
|
-
function
|
|
2048
|
+
function No(e, t) {
|
|
1945
2049
|
return new e({
|
|
1946
2050
|
type: "string",
|
|
1947
2051
|
format: "ipv6",
|
|
1948
2052
|
check: "string_format",
|
|
1949
2053
|
abort: !1,
|
|
1950
|
-
...
|
|
2054
|
+
...h(t)
|
|
1951
2055
|
});
|
|
1952
2056
|
}
|
|
1953
|
-
function
|
|
2057
|
+
function Ro(e, t) {
|
|
1954
2058
|
return new e({
|
|
1955
2059
|
type: "string",
|
|
1956
2060
|
format: "cidrv4",
|
|
1957
2061
|
check: "string_format",
|
|
1958
2062
|
abort: !1,
|
|
1959
|
-
...
|
|
2063
|
+
...h(t)
|
|
1960
2064
|
});
|
|
1961
2065
|
}
|
|
1962
|
-
function
|
|
2066
|
+
function Fo(e, t) {
|
|
1963
2067
|
return new e({
|
|
1964
2068
|
type: "string",
|
|
1965
2069
|
format: "cidrv6",
|
|
1966
2070
|
check: "string_format",
|
|
1967
2071
|
abort: !1,
|
|
1968
|
-
...
|
|
2072
|
+
...h(t)
|
|
1969
2073
|
});
|
|
1970
2074
|
}
|
|
1971
|
-
function
|
|
2075
|
+
function Uo(e, t) {
|
|
1972
2076
|
return new e({
|
|
1973
2077
|
type: "string",
|
|
1974
2078
|
format: "base64",
|
|
1975
2079
|
check: "string_format",
|
|
1976
2080
|
abort: !1,
|
|
1977
|
-
...
|
|
2081
|
+
...h(t)
|
|
1978
2082
|
});
|
|
1979
2083
|
}
|
|
1980
|
-
function
|
|
2084
|
+
function qo(e, t) {
|
|
1981
2085
|
return new e({
|
|
1982
2086
|
type: "string",
|
|
1983
2087
|
format: "base64url",
|
|
1984
2088
|
check: "string_format",
|
|
1985
2089
|
abort: !1,
|
|
1986
|
-
...
|
|
2090
|
+
...h(t)
|
|
1987
2091
|
});
|
|
1988
2092
|
}
|
|
1989
|
-
function
|
|
2093
|
+
function Mo(e, t) {
|
|
1990
2094
|
return new e({
|
|
1991
2095
|
type: "string",
|
|
1992
2096
|
format: "e164",
|
|
1993
2097
|
check: "string_format",
|
|
1994
2098
|
abort: !1,
|
|
1995
|
-
...
|
|
2099
|
+
...h(t)
|
|
1996
2100
|
});
|
|
1997
2101
|
}
|
|
1998
|
-
function
|
|
2102
|
+
function Qo(e, t) {
|
|
1999
2103
|
return new e({
|
|
2000
2104
|
type: "string",
|
|
2001
2105
|
format: "jwt",
|
|
2002
2106
|
check: "string_format",
|
|
2003
2107
|
abort: !1,
|
|
2004
|
-
...
|
|
2108
|
+
...h(t)
|
|
2005
2109
|
});
|
|
2006
2110
|
}
|
|
2007
|
-
function
|
|
2111
|
+
function Lo(e, t) {
|
|
2008
2112
|
return new e({
|
|
2009
2113
|
type: "string",
|
|
2010
2114
|
format: "datetime",
|
|
@@ -2012,191 +2116,209 @@ function Oo(e, t) {
|
|
|
2012
2116
|
offset: !1,
|
|
2013
2117
|
local: !1,
|
|
2014
2118
|
precision: null,
|
|
2015
|
-
...
|
|
2119
|
+
...h(t)
|
|
2016
2120
|
});
|
|
2017
2121
|
}
|
|
2018
|
-
function
|
|
2122
|
+
function Bo(e, t) {
|
|
2019
2123
|
return new e({
|
|
2020
2124
|
type: "string",
|
|
2021
2125
|
format: "date",
|
|
2022
2126
|
check: "string_format",
|
|
2023
|
-
...
|
|
2127
|
+
...h(t)
|
|
2024
2128
|
});
|
|
2025
2129
|
}
|
|
2026
|
-
function
|
|
2130
|
+
function Wo(e, t) {
|
|
2027
2131
|
return new e({
|
|
2028
2132
|
type: "string",
|
|
2029
2133
|
format: "time",
|
|
2030
2134
|
check: "string_format",
|
|
2031
2135
|
precision: null,
|
|
2032
|
-
...
|
|
2136
|
+
...h(t)
|
|
2033
2137
|
});
|
|
2034
2138
|
}
|
|
2035
|
-
function
|
|
2139
|
+
function Ko(e, t) {
|
|
2036
2140
|
return new e({
|
|
2037
2141
|
type: "string",
|
|
2038
2142
|
format: "duration",
|
|
2039
2143
|
check: "string_format",
|
|
2040
|
-
...
|
|
2144
|
+
...h(t)
|
|
2041
2145
|
});
|
|
2042
2146
|
}
|
|
2043
|
-
function
|
|
2147
|
+
function Ho(e) {
|
|
2044
2148
|
return new e({
|
|
2045
2149
|
type: "unknown"
|
|
2046
2150
|
});
|
|
2047
2151
|
}
|
|
2048
|
-
function
|
|
2152
|
+
function Vo(e, t) {
|
|
2049
2153
|
return new e({
|
|
2050
2154
|
type: "never",
|
|
2051
|
-
...
|
|
2155
|
+
...h(t)
|
|
2052
2156
|
});
|
|
2053
2157
|
}
|
|
2054
|
-
function
|
|
2055
|
-
return new
|
|
2158
|
+
function gt(e, t) {
|
|
2159
|
+
return new _r({
|
|
2056
2160
|
check: "max_length",
|
|
2057
|
-
...
|
|
2161
|
+
...h(t),
|
|
2058
2162
|
maximum: e
|
|
2059
2163
|
});
|
|
2060
2164
|
}
|
|
2061
|
-
function
|
|
2062
|
-
return new
|
|
2165
|
+
function ne(e, t) {
|
|
2166
|
+
return new yr({
|
|
2063
2167
|
check: "min_length",
|
|
2064
|
-
...
|
|
2168
|
+
...h(t),
|
|
2065
2169
|
minimum: e
|
|
2066
2170
|
});
|
|
2067
2171
|
}
|
|
2068
|
-
function
|
|
2069
|
-
return new
|
|
2172
|
+
function vt(e, t) {
|
|
2173
|
+
return new wr({
|
|
2070
2174
|
check: "length_equals",
|
|
2071
|
-
...
|
|
2175
|
+
...h(t),
|
|
2072
2176
|
length: e
|
|
2073
2177
|
});
|
|
2074
2178
|
}
|
|
2075
|
-
function
|
|
2076
|
-
return new
|
|
2179
|
+
function Jo(e, t) {
|
|
2180
|
+
return new br({
|
|
2077
2181
|
check: "string_format",
|
|
2078
2182
|
format: "regex",
|
|
2079
|
-
...
|
|
2183
|
+
...h(t),
|
|
2080
2184
|
pattern: e
|
|
2081
2185
|
});
|
|
2082
2186
|
}
|
|
2083
|
-
function
|
|
2084
|
-
return new
|
|
2187
|
+
function Go(e) {
|
|
2188
|
+
return new zr({
|
|
2085
2189
|
check: "string_format",
|
|
2086
2190
|
format: "lowercase",
|
|
2087
|
-
...
|
|
2191
|
+
...h(e)
|
|
2088
2192
|
});
|
|
2089
2193
|
}
|
|
2090
|
-
function
|
|
2091
|
-
return new
|
|
2194
|
+
function Yo(e) {
|
|
2195
|
+
return new kr({
|
|
2092
2196
|
check: "string_format",
|
|
2093
2197
|
format: "uppercase",
|
|
2094
|
-
...
|
|
2198
|
+
...h(e)
|
|
2095
2199
|
});
|
|
2096
2200
|
}
|
|
2097
|
-
function
|
|
2098
|
-
return new
|
|
2201
|
+
function Xo(e, t) {
|
|
2202
|
+
return new xr({
|
|
2099
2203
|
check: "string_format",
|
|
2100
2204
|
format: "includes",
|
|
2101
|
-
...
|
|
2205
|
+
...h(t),
|
|
2102
2206
|
includes: e
|
|
2103
2207
|
});
|
|
2104
2208
|
}
|
|
2105
|
-
function
|
|
2106
|
-
return new
|
|
2209
|
+
function es(e, t) {
|
|
2210
|
+
return new Zr({
|
|
2107
2211
|
check: "string_format",
|
|
2108
2212
|
format: "starts_with",
|
|
2109
|
-
...
|
|
2213
|
+
...h(t),
|
|
2110
2214
|
prefix: e
|
|
2111
2215
|
});
|
|
2112
2216
|
}
|
|
2113
|
-
function
|
|
2114
|
-
return new
|
|
2217
|
+
function ts(e, t) {
|
|
2218
|
+
return new $r({
|
|
2115
2219
|
check: "string_format",
|
|
2116
2220
|
format: "ends_with",
|
|
2117
|
-
...
|
|
2221
|
+
...h(t),
|
|
2118
2222
|
suffix: e
|
|
2119
2223
|
});
|
|
2120
2224
|
}
|
|
2121
2225
|
function K(e) {
|
|
2122
|
-
return new
|
|
2226
|
+
return new jr({
|
|
2123
2227
|
check: "overwrite",
|
|
2124
2228
|
tx: e
|
|
2125
2229
|
});
|
|
2126
2230
|
}
|
|
2127
|
-
function
|
|
2231
|
+
function ns(e) {
|
|
2128
2232
|
return K((t) => t.normalize(e));
|
|
2129
2233
|
}
|
|
2130
|
-
function
|
|
2234
|
+
function rs() {
|
|
2131
2235
|
return K((e) => e.trim());
|
|
2132
2236
|
}
|
|
2133
|
-
function
|
|
2237
|
+
function os() {
|
|
2134
2238
|
return K((e) => e.toLowerCase());
|
|
2135
2239
|
}
|
|
2136
|
-
function
|
|
2240
|
+
function ss() {
|
|
2137
2241
|
return K((e) => e.toUpperCase());
|
|
2138
2242
|
}
|
|
2139
|
-
function
|
|
2243
|
+
function is(e, t, n) {
|
|
2140
2244
|
return new e({
|
|
2141
2245
|
type: "array",
|
|
2142
2246
|
element: t,
|
|
2143
2247
|
// get element() {
|
|
2144
2248
|
// return element;
|
|
2145
2249
|
// },
|
|
2146
|
-
...
|
|
2250
|
+
...h(n)
|
|
2147
2251
|
});
|
|
2148
2252
|
}
|
|
2149
|
-
function
|
|
2253
|
+
function as(e, t, n) {
|
|
2150
2254
|
return new e({
|
|
2151
2255
|
type: "custom",
|
|
2152
2256
|
check: "custom",
|
|
2153
2257
|
fn: t,
|
|
2154
|
-
...
|
|
2258
|
+
...h(n)
|
|
2155
2259
|
});
|
|
2156
2260
|
}
|
|
2157
|
-
|
|
2158
|
-
|
|
2261
|
+
function cs(e) {
|
|
2262
|
+
const t = us((n) => (n.addIssue = (r) => {
|
|
2263
|
+
if (typeof r == "string")
|
|
2264
|
+
n.issues.push(W(r, n.value, t._zod.def));
|
|
2265
|
+
else {
|
|
2266
|
+
const o = r;
|
|
2267
|
+
o.fatal && (o.continue = !1), o.code ?? (o.code = "custom"), o.input ?? (o.input = n.value), o.inst ?? (o.inst = t), o.continue ?? (o.continue = !t._zod.def.abort), n.issues.push(W(o));
|
|
2268
|
+
}
|
|
2269
|
+
}, e(n.value, n)));
|
|
2270
|
+
return t;
|
|
2271
|
+
}
|
|
2272
|
+
function us(e, t) {
|
|
2273
|
+
const n = new T({
|
|
2274
|
+
check: "custom",
|
|
2275
|
+
...h(t)
|
|
2276
|
+
});
|
|
2277
|
+
return n._zod.check = e, n;
|
|
2278
|
+
}
|
|
2279
|
+
const ls = /* @__PURE__ */ c("ZodISODateTime", (e, t) => {
|
|
2280
|
+
qr.init(e, t), w.init(e, t);
|
|
2159
2281
|
});
|
|
2160
|
-
function
|
|
2161
|
-
return
|
|
2282
|
+
function ds(e) {
|
|
2283
|
+
return Lo(ls, e);
|
|
2162
2284
|
}
|
|
2163
|
-
const
|
|
2164
|
-
|
|
2285
|
+
const hs = /* @__PURE__ */ c("ZodISODate", (e, t) => {
|
|
2286
|
+
Mr.init(e, t), w.init(e, t);
|
|
2165
2287
|
});
|
|
2166
|
-
function
|
|
2167
|
-
return
|
|
2288
|
+
function fs(e) {
|
|
2289
|
+
return Bo(hs, e);
|
|
2168
2290
|
}
|
|
2169
|
-
const
|
|
2170
|
-
|
|
2291
|
+
const ps = /* @__PURE__ */ c("ZodISOTime", (e, t) => {
|
|
2292
|
+
Qr.init(e, t), w.init(e, t);
|
|
2171
2293
|
});
|
|
2172
|
-
function
|
|
2173
|
-
return
|
|
2294
|
+
function ms(e) {
|
|
2295
|
+
return Wo(ps, e);
|
|
2174
2296
|
}
|
|
2175
|
-
const
|
|
2176
|
-
|
|
2297
|
+
const gs = /* @__PURE__ */ c("ZodISODuration", (e, t) => {
|
|
2298
|
+
Lr.init(e, t), w.init(e, t);
|
|
2177
2299
|
});
|
|
2178
|
-
function
|
|
2179
|
-
return
|
|
2300
|
+
function vs(e) {
|
|
2301
|
+
return Ko(gs, e);
|
|
2180
2302
|
}
|
|
2181
|
-
const
|
|
2182
|
-
|
|
2303
|
+
const _s = (e, t) => {
|
|
2304
|
+
ct.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
2183
2305
|
format: {
|
|
2184
|
-
value: (n) =>
|
|
2306
|
+
value: (n) => Nn(e, n)
|
|
2185
2307
|
// enumerable: false,
|
|
2186
2308
|
},
|
|
2187
2309
|
flatten: {
|
|
2188
|
-
value: (n) =>
|
|
2310
|
+
value: (n) => Cn(e, n)
|
|
2189
2311
|
// enumerable: false,
|
|
2190
2312
|
},
|
|
2191
2313
|
addIssue: {
|
|
2192
2314
|
value: (n) => {
|
|
2193
|
-
e.issues.push(n), e.message = JSON.stringify(e.issues,
|
|
2315
|
+
e.issues.push(n), e.message = JSON.stringify(e.issues, ue, 2);
|
|
2194
2316
|
}
|
|
2195
2317
|
// enumerable: false,
|
|
2196
2318
|
},
|
|
2197
2319
|
addIssues: {
|
|
2198
2320
|
value: (n) => {
|
|
2199
|
-
e.issues.push(...n), e.message = JSON.stringify(e.issues,
|
|
2321
|
+
e.issues.push(...n), e.message = JSON.stringify(e.issues, ue, 2);
|
|
2200
2322
|
}
|
|
2201
2323
|
// enumerable: false,
|
|
2202
2324
|
},
|
|
@@ -2207,133 +2329,127 @@ const ts = (e, t) => {
|
|
|
2207
2329
|
// enumerable: false,
|
|
2208
2330
|
}
|
|
2209
2331
|
});
|
|
2210
|
-
},
|
|
2332
|
+
}, O = c("ZodError", _s, {
|
|
2211
2333
|
Parent: Error
|
|
2212
|
-
}),
|
|
2213
|
-
|
|
2214
|
-
...t,
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
]
|
|
2219
|
-
}
|
|
2220
|
-
// { parent: true }
|
|
2221
|
-
), e.clone = (n, r) => F(e, n, r), e.brand = () => e, e.register = (n, r) => (n.add(e, r), e), e.parse = (n, r) => ns(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => os(e, n, r), e.parseAsync = async (n, r) => rs(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => ss(e, n, r), e.spa = e.safeParseAsync, e.refine = (n, r) => e.check(Js(n, r)), e.superRefine = (n) => e.check(Gs(n)), e.overwrite = (n) => e.check(K(n)), e.optional = () => Ce(e), e.nullable = () => Re(e), e.nullish = () => Ce(Re(e)), e.nonoptional = (n) => Ms(e, n), e.array = () => Ps(e), e.or = (n) => Is([e, n]), e.and = (n) => Ds(e, n), e.transform = (n) => Ue(e, Ns(n)), e.default = (n) => Us(e, n), e.prefault = (n) => qs(e, n), e.catch = (n) => Ls(e, n), e.pipe = (n) => Ue(e, n), e.readonly = () => Ws(e), e.describe = (n) => {
|
|
2334
|
+
}), ys = /* @__PURE__ */ ge(O), ws = /* @__PURE__ */ ve(O), bs = /* @__PURE__ */ ie(O), zs = /* @__PURE__ */ ae(O), ks = /* @__PURE__ */ Un(O), xs = /* @__PURE__ */ qn(O), Zs = /* @__PURE__ */ Mn(O), $s = /* @__PURE__ */ Qn(O), js = /* @__PURE__ */ Ln(O), Ps = /* @__PURE__ */ Bn(O), Os = /* @__PURE__ */ Wn(O), Es = /* @__PURE__ */ Kn(O), z = /* @__PURE__ */ c("ZodType", (e, t) => (b.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(q(t, {
|
|
2335
|
+
checks: [
|
|
2336
|
+
...t.checks ?? [],
|
|
2337
|
+
...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
|
|
2338
|
+
]
|
|
2339
|
+
})), e.clone = (n, r) => N(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => ys(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => bs(e, n, r), e.parseAsync = async (n, r) => ws(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => zs(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => ks(e, n, r), e.decode = (n, r) => xs(e, n, r), e.encodeAsync = async (n, r) => Zs(e, n, r), e.decodeAsync = async (n, r) => $s(e, n, r), e.safeEncode = (n, r) => js(e, n, r), e.safeDecode = (n, r) => Ps(e, n, r), e.safeEncodeAsync = async (n, r) => Os(e, n, r), e.safeDecodeAsync = async (n, r) => Es(e, n, r), e.refine = (n, r) => e.check(wi(n, r)), e.superRefine = (n) => e.check(bi(n)), e.overwrite = (n) => e.check(K(n)), e.optional = () => Le(e), e.nullable = () => Be(e), e.nullish = () => Le(Be(e)), e.nonoptional = (n) => fi(e, n), e.array = () => Xs(e), e.or = (n) => ri([e, n]), e.and = (n) => si(e, n), e.transform = (n) => We(e, ai(n)), e.default = (n) => li(e, n), e.prefault = (n) => hi(e, n), e.catch = (n) => mi(e, n), e.pipe = (n) => We(e, n), e.readonly = () => _i(e), e.describe = (n) => {
|
|
2222
2340
|
const r = e.clone();
|
|
2223
|
-
return
|
|
2341
|
+
return Y.add(r, { description: n }), r;
|
|
2224
2342
|
}, Object.defineProperty(e, "description", {
|
|
2225
2343
|
get() {
|
|
2226
|
-
return
|
|
2344
|
+
return Y.get(e)?.description;
|
|
2227
2345
|
},
|
|
2228
2346
|
configurable: !0
|
|
2229
2347
|
}), e.meta = (...n) => {
|
|
2230
2348
|
if (n.length === 0)
|
|
2231
|
-
return
|
|
2349
|
+
return Y.get(e);
|
|
2232
2350
|
const r = e.clone();
|
|
2233
|
-
return
|
|
2234
|
-
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)),
|
|
2235
|
-
|
|
2351
|
+
return Y.add(r, n[0]), r;
|
|
2352
|
+
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), _t = /* @__PURE__ */ c("_ZodString", (e, t) => {
|
|
2353
|
+
_e.init(e, t), z.init(e, t);
|
|
2236
2354
|
const n = e._zod.bag;
|
|
2237
|
-
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(
|
|
2238
|
-
}),
|
|
2239
|
-
|
|
2355
|
+
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(Jo(...r)), e.includes = (...r) => e.check(Xo(...r)), e.startsWith = (...r) => e.check(es(...r)), e.endsWith = (...r) => e.check(ts(...r)), e.min = (...r) => e.check(ne(...r)), e.max = (...r) => e.check(gt(...r)), e.length = (...r) => e.check(vt(...r)), e.nonempty = (...r) => e.check(ne(1, ...r)), e.lowercase = (r) => e.check(Go(r)), e.uppercase = (r) => e.check(Yo(r)), e.trim = () => e.check(rs()), e.normalize = (...r) => e.check(ns(...r)), e.toLowerCase = () => e.check(os()), e.toUpperCase = () => e.check(ss());
|
|
2356
|
+
}), As = /* @__PURE__ */ c("ZodString", (e, t) => {
|
|
2357
|
+
_e.init(e, t), _t.init(e, t), e.email = (n) => e.check(ko(Ts, n)), e.url = (n) => e.check(Po(Ss, n)), e.jwt = (n) => e.check(Qo(Hs, n)), e.emoji = (n) => e.check(Oo(Is, n)), e.guid = (n) => e.check(Ue(Me, n)), e.uuid = (n) => e.check(xo(X, n)), e.uuidv4 = (n) => e.check(Zo(X, n)), e.uuidv6 = (n) => e.check($o(X, n)), e.uuidv7 = (n) => e.check(jo(X, n)), e.nanoid = (n) => e.check(Eo(Ds, n)), e.guid = (n) => e.check(Ue(Me, n)), e.cuid = (n) => e.check(Ao(Cs, n)), e.cuid2 = (n) => e.check(To(Ns, n)), e.ulid = (n) => e.check(So(Rs, n)), e.base64 = (n) => e.check(Uo(Bs, n)), e.base64url = (n) => e.check(qo(Ws, n)), e.xid = (n) => e.check(Io(Fs, n)), e.ksuid = (n) => e.check(Do(Us, n)), e.ipv4 = (n) => e.check(Co(qs, n)), e.ipv6 = (n) => e.check(No(Ms, n)), e.cidrv4 = (n) => e.check(Ro(Qs, n)), e.cidrv6 = (n) => e.check(Fo(Ls, n)), e.e164 = (n) => e.check(Mo(Ks, n)), e.datetime = (n) => e.check(ds(n)), e.date = (n) => e.check(fs(n)), e.time = (n) => e.check(ms(n)), e.duration = (n) => e.check(vs(n));
|
|
2240
2358
|
});
|
|
2241
|
-
function
|
|
2242
|
-
return
|
|
2359
|
+
function qe(e) {
|
|
2360
|
+
return zo(As, e);
|
|
2243
2361
|
}
|
|
2244
2362
|
const w = /* @__PURE__ */ c("ZodStringFormat", (e, t) => {
|
|
2245
|
-
y.init(e, t),
|
|
2246
|
-
}),
|
|
2247
|
-
|
|
2248
|
-
}),
|
|
2249
|
-
gr.init(e, t), w.init(e, t);
|
|
2250
|
-
}), G = /* @__PURE__ */ c("ZodUUID", (e, t) => {
|
|
2251
|
-
vr.init(e, t), w.init(e, t);
|
|
2252
|
-
}), cs = /* @__PURE__ */ c("ZodURL", (e, t) => {
|
|
2253
|
-
yr.init(e, t), w.init(e, t);
|
|
2254
|
-
}), us = /* @__PURE__ */ c("ZodEmoji", (e, t) => {
|
|
2255
|
-
wr.init(e, t), w.init(e, t);
|
|
2256
|
-
}), ls = /* @__PURE__ */ c("ZodNanoID", (e, t) => {
|
|
2257
|
-
br.init(e, t), w.init(e, t);
|
|
2258
|
-
}), ds = /* @__PURE__ */ c("ZodCUID", (e, t) => {
|
|
2259
|
-
zr.init(e, t), w.init(e, t);
|
|
2260
|
-
}), hs = /* @__PURE__ */ c("ZodCUID2", (e, t) => {
|
|
2261
|
-
xr.init(e, t), w.init(e, t);
|
|
2262
|
-
}), fs = /* @__PURE__ */ c("ZodULID", (e, t) => {
|
|
2263
|
-
kr.init(e, t), w.init(e, t);
|
|
2264
|
-
}), ps = /* @__PURE__ */ c("ZodXID", (e, t) => {
|
|
2265
|
-
Zr.init(e, t), w.init(e, t);
|
|
2266
|
-
}), ms = /* @__PURE__ */ c("ZodKSUID", (e, t) => {
|
|
2267
|
-
$r.init(e, t), w.init(e, t);
|
|
2268
|
-
}), gs = /* @__PURE__ */ c("ZodIPv4", (e, t) => {
|
|
2363
|
+
y.init(e, t), _t.init(e, t);
|
|
2364
|
+
}), Ts = /* @__PURE__ */ c("ZodEmail", (e, t) => {
|
|
2365
|
+
Tr.init(e, t), w.init(e, t);
|
|
2366
|
+
}), Me = /* @__PURE__ */ c("ZodGUID", (e, t) => {
|
|
2269
2367
|
Er.init(e, t), w.init(e, t);
|
|
2270
|
-
}),
|
|
2368
|
+
}), X = /* @__PURE__ */ c("ZodUUID", (e, t) => {
|
|
2369
|
+
Ar.init(e, t), w.init(e, t);
|
|
2370
|
+
}), Ss = /* @__PURE__ */ c("ZodURL", (e, t) => {
|
|
2371
|
+
Sr.init(e, t), w.init(e, t);
|
|
2372
|
+
}), Is = /* @__PURE__ */ c("ZodEmoji", (e, t) => {
|
|
2271
2373
|
Ir.init(e, t), w.init(e, t);
|
|
2272
|
-
}),
|
|
2273
|
-
Tr.init(e, t), w.init(e, t);
|
|
2274
|
-
}), ys = /* @__PURE__ */ c("ZodCIDRv6", (e, t) => {
|
|
2374
|
+
}), Ds = /* @__PURE__ */ c("ZodNanoID", (e, t) => {
|
|
2275
2375
|
Dr.init(e, t), w.init(e, t);
|
|
2276
|
-
}),
|
|
2277
|
-
Ar.init(e, t), w.init(e, t);
|
|
2278
|
-
}), bs = /* @__PURE__ */ c("ZodBase64URL", (e, t) => {
|
|
2376
|
+
}), Cs = /* @__PURE__ */ c("ZodCUID", (e, t) => {
|
|
2279
2377
|
Cr.init(e, t), w.init(e, t);
|
|
2280
|
-
}),
|
|
2378
|
+
}), Ns = /* @__PURE__ */ c("ZodCUID2", (e, t) => {
|
|
2379
|
+
Nr.init(e, t), w.init(e, t);
|
|
2380
|
+
}), Rs = /* @__PURE__ */ c("ZodULID", (e, t) => {
|
|
2281
2381
|
Rr.init(e, t), w.init(e, t);
|
|
2282
|
-
}),
|
|
2382
|
+
}), Fs = /* @__PURE__ */ c("ZodXID", (e, t) => {
|
|
2283
2383
|
Fr.init(e, t), w.init(e, t);
|
|
2284
|
-
}),
|
|
2285
|
-
|
|
2384
|
+
}), Us = /* @__PURE__ */ c("ZodKSUID", (e, t) => {
|
|
2385
|
+
Ur.init(e, t), w.init(e, t);
|
|
2386
|
+
}), qs = /* @__PURE__ */ c("ZodIPv4", (e, t) => {
|
|
2387
|
+
Br.init(e, t), w.init(e, t);
|
|
2388
|
+
}), Ms = /* @__PURE__ */ c("ZodIPv6", (e, t) => {
|
|
2389
|
+
Wr.init(e, t), w.init(e, t);
|
|
2390
|
+
}), Qs = /* @__PURE__ */ c("ZodCIDRv4", (e, t) => {
|
|
2391
|
+
Kr.init(e, t), w.init(e, t);
|
|
2392
|
+
}), Ls = /* @__PURE__ */ c("ZodCIDRv6", (e, t) => {
|
|
2393
|
+
Hr.init(e, t), w.init(e, t);
|
|
2394
|
+
}), Bs = /* @__PURE__ */ c("ZodBase64", (e, t) => {
|
|
2395
|
+
Vr.init(e, t), w.init(e, t);
|
|
2396
|
+
}), Ws = /* @__PURE__ */ c("ZodBase64URL", (e, t) => {
|
|
2397
|
+
Gr.init(e, t), w.init(e, t);
|
|
2398
|
+
}), Ks = /* @__PURE__ */ c("ZodE164", (e, t) => {
|
|
2399
|
+
Yr.init(e, t), w.init(e, t);
|
|
2400
|
+
}), Hs = /* @__PURE__ */ c("ZodJWT", (e, t) => {
|
|
2401
|
+
eo.init(e, t), w.init(e, t);
|
|
2402
|
+
}), Vs = /* @__PURE__ */ c("ZodUnknown", (e, t) => {
|
|
2403
|
+
to.init(e, t), z.init(e, t);
|
|
2286
2404
|
});
|
|
2287
|
-
function
|
|
2288
|
-
return
|
|
2405
|
+
function Qe() {
|
|
2406
|
+
return Ho(Vs);
|
|
2289
2407
|
}
|
|
2290
|
-
const
|
|
2291
|
-
|
|
2408
|
+
const Js = /* @__PURE__ */ c("ZodNever", (e, t) => {
|
|
2409
|
+
no.init(e, t), z.init(e, t);
|
|
2292
2410
|
});
|
|
2293
|
-
function
|
|
2294
|
-
return
|
|
2411
|
+
function Gs(e) {
|
|
2412
|
+
return Vo(Js, e);
|
|
2295
2413
|
}
|
|
2296
|
-
const
|
|
2297
|
-
|
|
2414
|
+
const Ys = /* @__PURE__ */ c("ZodArray", (e, t) => {
|
|
2415
|
+
ro.init(e, t), z.init(e, t), e.element = t.element, e.min = (n, r) => e.check(ne(n, r)), e.nonempty = (n) => e.check(ne(1, n)), e.max = (n, r) => e.check(gt(n, r)), e.length = (n, r) => e.check(vt(n, r)), e.unwrap = () => e.element;
|
|
2298
2416
|
});
|
|
2299
|
-
function
|
|
2300
|
-
return
|
|
2417
|
+
function Xs(e, t) {
|
|
2418
|
+
return is(Ys, e, t);
|
|
2301
2419
|
}
|
|
2302
|
-
const
|
|
2303
|
-
|
|
2420
|
+
const ei = /* @__PURE__ */ c("ZodObject", (e, t) => {
|
|
2421
|
+
so.init(e, t), z.init(e, t), _(e, "shape", () => t.shape), e.keyof = () => yt(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Qe() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Qe() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Gs() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => An(e, n), e.safeExtend = (n) => Tn(e, n), e.merge = (n) => Sn(e, n), e.pick = (n) => On(e, n), e.omit = (n) => En(e, n), e.partial = (...n) => In(wt, e, n[0]), e.required = (...n) => Dn(bt, e, n[0]);
|
|
2304
2422
|
});
|
|
2305
|
-
function
|
|
2423
|
+
function ti(e, t) {
|
|
2306
2424
|
const n = {
|
|
2307
2425
|
type: "object",
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
},
|
|
2311
|
-
...l(t)
|
|
2426
|
+
shape: e ?? {},
|
|
2427
|
+
...h(t)
|
|
2312
2428
|
};
|
|
2313
|
-
return new
|
|
2429
|
+
return new ei(n);
|
|
2314
2430
|
}
|
|
2315
|
-
const
|
|
2316
|
-
|
|
2431
|
+
const ni = /* @__PURE__ */ c("ZodUnion", (e, t) => {
|
|
2432
|
+
io.init(e, t), z.init(e, t), e.options = t.options;
|
|
2317
2433
|
});
|
|
2318
|
-
function
|
|
2319
|
-
return new
|
|
2434
|
+
function ri(e, t) {
|
|
2435
|
+
return new ni({
|
|
2320
2436
|
type: "union",
|
|
2321
2437
|
options: e,
|
|
2322
|
-
...
|
|
2438
|
+
...h(t)
|
|
2323
2439
|
});
|
|
2324
2440
|
}
|
|
2325
|
-
const
|
|
2326
|
-
|
|
2441
|
+
const oi = /* @__PURE__ */ c("ZodIntersection", (e, t) => {
|
|
2442
|
+
ao.init(e, t), z.init(e, t);
|
|
2327
2443
|
});
|
|
2328
|
-
function
|
|
2329
|
-
return new
|
|
2444
|
+
function si(e, t) {
|
|
2445
|
+
return new oi({
|
|
2330
2446
|
type: "intersection",
|
|
2331
2447
|
left: e,
|
|
2332
2448
|
right: t
|
|
2333
2449
|
});
|
|
2334
2450
|
}
|
|
2335
|
-
const
|
|
2336
|
-
|
|
2451
|
+
const de = /* @__PURE__ */ c("ZodEnum", (e, t) => {
|
|
2452
|
+
co.init(e, t), z.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
2337
2453
|
const n = new Set(Object.keys(t.entries));
|
|
2338
2454
|
e.extract = (r, o) => {
|
|
2339
2455
|
const s = {};
|
|
@@ -2342,10 +2458,10 @@ const ce = /* @__PURE__ */ c("ZodEnum", (e, t) => {
|
|
|
2342
2458
|
s[i] = t.entries[i];
|
|
2343
2459
|
else
|
|
2344
2460
|
throw new Error(`Key ${i} not found in enum`);
|
|
2345
|
-
return new
|
|
2461
|
+
return new de({
|
|
2346
2462
|
...t,
|
|
2347
2463
|
checks: [],
|
|
2348
|
-
...
|
|
2464
|
+
...h(o),
|
|
2349
2465
|
entries: s
|
|
2350
2466
|
});
|
|
2351
2467
|
}, e.exclude = (r, o) => {
|
|
@@ -2355,158 +2471,145 @@ const ce = /* @__PURE__ */ c("ZodEnum", (e, t) => {
|
|
|
2355
2471
|
delete s[i];
|
|
2356
2472
|
else
|
|
2357
2473
|
throw new Error(`Key ${i} not found in enum`);
|
|
2358
|
-
return new
|
|
2474
|
+
return new de({
|
|
2359
2475
|
...t,
|
|
2360
2476
|
checks: [],
|
|
2361
|
-
...
|
|
2477
|
+
...h(o),
|
|
2362
2478
|
entries: s
|
|
2363
2479
|
});
|
|
2364
2480
|
};
|
|
2365
2481
|
});
|
|
2366
|
-
function
|
|
2482
|
+
function yt(e, t) {
|
|
2367
2483
|
const n = Array.isArray(e) ? Object.fromEntries(e.map((r) => [r, r])) : e;
|
|
2368
|
-
return new
|
|
2484
|
+
return new de({
|
|
2369
2485
|
type: "enum",
|
|
2370
2486
|
entries: n,
|
|
2371
|
-
...
|
|
2487
|
+
...h(t)
|
|
2372
2488
|
});
|
|
2373
2489
|
}
|
|
2374
|
-
const
|
|
2375
|
-
|
|
2490
|
+
const ii = /* @__PURE__ */ c("ZodTransform", (e, t) => {
|
|
2491
|
+
uo.init(e, t), z.init(e, t), e._zod.parse = (n, r) => {
|
|
2492
|
+
if (r.direction === "backward")
|
|
2493
|
+
throw new nt(e.constructor.name);
|
|
2376
2494
|
n.addIssue = (s) => {
|
|
2377
2495
|
if (typeof s == "string")
|
|
2378
|
-
n.issues.push(
|
|
2496
|
+
n.issues.push(W(s, n.value, t));
|
|
2379
2497
|
else {
|
|
2380
2498
|
const i = s;
|
|
2381
|
-
i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = n.value), i.inst ?? (i.inst = e), n.issues.push(
|
|
2499
|
+
i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = n.value), i.inst ?? (i.inst = e), n.issues.push(W(i));
|
|
2382
2500
|
}
|
|
2383
2501
|
};
|
|
2384
2502
|
const o = t.transform(n.value, n);
|
|
2385
2503
|
return o instanceof Promise ? o.then((s) => (n.value = s, n)) : (n.value = o, n);
|
|
2386
2504
|
};
|
|
2387
2505
|
});
|
|
2388
|
-
function
|
|
2389
|
-
return new
|
|
2506
|
+
function ai(e) {
|
|
2507
|
+
return new ii({
|
|
2390
2508
|
type: "transform",
|
|
2391
2509
|
transform: e
|
|
2392
2510
|
});
|
|
2393
2511
|
}
|
|
2394
|
-
const
|
|
2395
|
-
|
|
2512
|
+
const wt = /* @__PURE__ */ c("ZodOptional", (e, t) => {
|
|
2513
|
+
lo.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2396
2514
|
});
|
|
2397
|
-
function
|
|
2398
|
-
return new
|
|
2515
|
+
function Le(e) {
|
|
2516
|
+
return new wt({
|
|
2399
2517
|
type: "optional",
|
|
2400
2518
|
innerType: e
|
|
2401
2519
|
});
|
|
2402
2520
|
}
|
|
2403
|
-
const
|
|
2404
|
-
|
|
2521
|
+
const ci = /* @__PURE__ */ c("ZodNullable", (e, t) => {
|
|
2522
|
+
ho.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2405
2523
|
});
|
|
2406
|
-
function
|
|
2407
|
-
return new
|
|
2524
|
+
function Be(e) {
|
|
2525
|
+
return new ci({
|
|
2408
2526
|
type: "nullable",
|
|
2409
2527
|
innerType: e
|
|
2410
2528
|
});
|
|
2411
2529
|
}
|
|
2412
|
-
const
|
|
2413
|
-
|
|
2530
|
+
const ui = /* @__PURE__ */ c("ZodDefault", (e, t) => {
|
|
2531
|
+
fo.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
2414
2532
|
});
|
|
2415
|
-
function
|
|
2416
|
-
return new
|
|
2533
|
+
function li(e, t) {
|
|
2534
|
+
return new ui({
|
|
2417
2535
|
type: "default",
|
|
2418
2536
|
innerType: e,
|
|
2419
2537
|
get defaultValue() {
|
|
2420
|
-
return typeof t == "function" ? t() : t;
|
|
2538
|
+
return typeof t == "function" ? t() : st(t);
|
|
2421
2539
|
}
|
|
2422
2540
|
});
|
|
2423
2541
|
}
|
|
2424
|
-
const
|
|
2425
|
-
|
|
2542
|
+
const di = /* @__PURE__ */ c("ZodPrefault", (e, t) => {
|
|
2543
|
+
po.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2426
2544
|
});
|
|
2427
|
-
function
|
|
2428
|
-
return new
|
|
2545
|
+
function hi(e, t) {
|
|
2546
|
+
return new di({
|
|
2429
2547
|
type: "prefault",
|
|
2430
2548
|
innerType: e,
|
|
2431
2549
|
get defaultValue() {
|
|
2432
|
-
return typeof t == "function" ? t() : t;
|
|
2550
|
+
return typeof t == "function" ? t() : st(t);
|
|
2433
2551
|
}
|
|
2434
2552
|
});
|
|
2435
2553
|
}
|
|
2436
|
-
const
|
|
2437
|
-
|
|
2554
|
+
const bt = /* @__PURE__ */ c("ZodNonOptional", (e, t) => {
|
|
2555
|
+
mo.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2438
2556
|
});
|
|
2439
|
-
function
|
|
2440
|
-
return new
|
|
2557
|
+
function fi(e, t) {
|
|
2558
|
+
return new bt({
|
|
2441
2559
|
type: "nonoptional",
|
|
2442
2560
|
innerType: e,
|
|
2443
|
-
...
|
|
2561
|
+
...h(t)
|
|
2444
2562
|
});
|
|
2445
2563
|
}
|
|
2446
|
-
const
|
|
2447
|
-
|
|
2564
|
+
const pi = /* @__PURE__ */ c("ZodCatch", (e, t) => {
|
|
2565
|
+
go.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
2448
2566
|
});
|
|
2449
|
-
function
|
|
2450
|
-
return new
|
|
2567
|
+
function mi(e, t) {
|
|
2568
|
+
return new pi({
|
|
2451
2569
|
type: "catch",
|
|
2452
2570
|
innerType: e,
|
|
2453
2571
|
catchValue: typeof t == "function" ? t : () => t
|
|
2454
2572
|
});
|
|
2455
2573
|
}
|
|
2456
|
-
const
|
|
2457
|
-
|
|
2574
|
+
const gi = /* @__PURE__ */ c("ZodPipe", (e, t) => {
|
|
2575
|
+
vo.init(e, t), z.init(e, t), e.in = t.in, e.out = t.out;
|
|
2458
2576
|
});
|
|
2459
|
-
function
|
|
2460
|
-
return new
|
|
2577
|
+
function We(e, t) {
|
|
2578
|
+
return new gi({
|
|
2461
2579
|
type: "pipe",
|
|
2462
2580
|
in: e,
|
|
2463
2581
|
out: t
|
|
2464
2582
|
// ...util.normalizeParams(params),
|
|
2465
2583
|
});
|
|
2466
2584
|
}
|
|
2467
|
-
const
|
|
2468
|
-
|
|
2585
|
+
const vi = /* @__PURE__ */ c("ZodReadonly", (e, t) => {
|
|
2586
|
+
_o.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2469
2587
|
});
|
|
2470
|
-
function
|
|
2471
|
-
return new
|
|
2588
|
+
function _i(e) {
|
|
2589
|
+
return new vi({
|
|
2472
2590
|
type: "readonly",
|
|
2473
2591
|
innerType: e
|
|
2474
2592
|
});
|
|
2475
2593
|
}
|
|
2476
|
-
const
|
|
2477
|
-
|
|
2594
|
+
const yi = /* @__PURE__ */ c("ZodCustom", (e, t) => {
|
|
2595
|
+
yo.init(e, t), z.init(e, t);
|
|
2478
2596
|
});
|
|
2479
|
-
function
|
|
2480
|
-
|
|
2481
|
-
check: "custom"
|
|
2482
|
-
// ...util.normalizeParams(params),
|
|
2483
|
-
});
|
|
2484
|
-
return t._zod.check = e, t;
|
|
2597
|
+
function wi(e, t = {}) {
|
|
2598
|
+
return as(yi, e, t);
|
|
2485
2599
|
}
|
|
2486
|
-
function
|
|
2487
|
-
return
|
|
2600
|
+
function bi(e) {
|
|
2601
|
+
return cs(e);
|
|
2488
2602
|
}
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
const o = r;
|
|
2495
|
-
o.fatal && (o.continue = !1), o.code ?? (o.code = "custom"), o.input ?? (o.input = n.value), o.inst ?? (o.inst = t), o.continue ?? (o.continue = !t._zod.def.abort), n.issues.push(B(o));
|
|
2496
|
-
}
|
|
2497
|
-
}, e(n.value, n)));
|
|
2498
|
-
return t;
|
|
2499
|
-
}
|
|
2500
|
-
const Ys = Ss({
|
|
2501
|
-
buildId: De(),
|
|
2502
|
-
timestamp: De(),
|
|
2503
|
-
status: dt(["in-progress", "success", "failed"])
|
|
2504
|
-
}), Xs = ({
|
|
2603
|
+
const zi = ti({
|
|
2604
|
+
buildId: qe(),
|
|
2605
|
+
timestamp: qe(),
|
|
2606
|
+
status: yt(["in-progress", "success", "failed"])
|
|
2607
|
+
}), ki = ({
|
|
2505
2608
|
buildId: e,
|
|
2506
2609
|
environmentType: t,
|
|
2507
2610
|
endpoint: n = "/__zuplo/docs"
|
|
2508
2611
|
}) => {
|
|
2509
|
-
const r =
|
|
2612
|
+
const r = It({
|
|
2510
2613
|
queryKey: ["zuplo-build-check", e, n],
|
|
2511
2614
|
refetchInterval: 3e3,
|
|
2512
2615
|
enabled: e !== void 0 && t === "WORKING_COPY",
|
|
@@ -2514,24 +2617,24 @@ const Ys = Ss({
|
|
|
2514
2617
|
queryFn: () => fetch(n, { signal: AbortSignal.timeout(2e3) }).then((s) => {
|
|
2515
2618
|
if (!s.ok) throw new Error("Failed to fetch build status");
|
|
2516
2619
|
return s.json();
|
|
2517
|
-
}).then((s) =>
|
|
2620
|
+
}).then((s) => zi.parse(s))
|
|
2518
2621
|
});
|
|
2519
|
-
if (
|
|
2622
|
+
if (oe(() => {
|
|
2520
2623
|
r.data?.status === "success" && r.data.buildId && (document.cookie = `zuplo-build=${r.data.buildId}; path=/; max-age=300; secure; SameSite=None`);
|
|
2521
2624
|
}, [r.data]), r.isError || !r.data || r.data.buildId === e)
|
|
2522
2625
|
return null;
|
|
2523
2626
|
const o = r.data.status === "success";
|
|
2524
2627
|
return /* @__PURE__ */ a.jsxs("div", { className: "fixed flex flex-col gap-3 p-4 rounded-xl w-96 border z-20 bg-background left-0 right-0 top-4 mx-auto shadow-lg", children: [
|
|
2525
2628
|
o ? /* @__PURE__ */ a.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
|
|
2526
|
-
/* @__PURE__ */ a.jsx(
|
|
2629
|
+
/* @__PURE__ */ a.jsx(Jt, { size: 16 }),
|
|
2527
2630
|
/* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "New version available" })
|
|
2528
2631
|
] }) : /* @__PURE__ */ a.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
|
|
2529
|
-
/* @__PURE__ */ a.jsx(
|
|
2632
|
+
/* @__PURE__ */ a.jsx(Gt, { size: 16, className: "animate-spin" }),
|
|
2530
2633
|
/* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Building new version..." })
|
|
2531
2634
|
] }),
|
|
2532
2635
|
/* @__PURE__ */ a.jsx("span", { className: "text-xs", children: o ? "To see the new version, reload the page now." : "A new version of the developer portal will be available soon." }),
|
|
2533
|
-
/* @__PURE__ */ a.jsx(
|
|
2534
|
-
|
|
2636
|
+
o && /* @__PURE__ */ a.jsx(
|
|
2637
|
+
en,
|
|
2535
2638
|
{
|
|
2536
2639
|
variant: "outline",
|
|
2537
2640
|
size: "sm",
|
|
@@ -2543,13 +2646,13 @@ const Ys = Ss({
|
|
|
2543
2646
|
}
|
|
2544
2647
|
)
|
|
2545
2648
|
] });
|
|
2546
|
-
},
|
|
2547
|
-
const e =
|
|
2548
|
-
|
|
2649
|
+
}, xi = () => {
|
|
2650
|
+
const e = et(), t = Xe(e.pathname);
|
|
2651
|
+
oe(() => {
|
|
2549
2652
|
const n = t.current !== e.pathname, r = e.hash !== "";
|
|
2550
2653
|
n && !r && window.scrollTo(0, 0), t.current = e.pathname;
|
|
2551
2654
|
}, [e.pathname, e.hash]);
|
|
2552
|
-
},
|
|
2655
|
+
}, Zi = ({
|
|
2553
2656
|
icon: e
|
|
2554
2657
|
}) => typeof e == "string" ? /* @__PURE__ */ a.jsx(
|
|
2555
2658
|
"img",
|
|
@@ -2558,19 +2661,19 @@ const Ys = Ss({
|
|
|
2558
2661
|
className: "size-5",
|
|
2559
2662
|
alt: e
|
|
2560
2663
|
}
|
|
2561
|
-
) : e,
|
|
2562
|
-
const { site: e } =
|
|
2664
|
+
) : e, $i = (e) => /^https?:/.test(e), ji = () => {
|
|
2665
|
+
const { site: e } = Wt(), t = e?.footer;
|
|
2563
2666
|
return t ? /* @__PURE__ */ a.jsx("footer", { className: "border-t bg-background", children: /* @__PURE__ */ a.jsxs("div", { className: "mx-auto max-w-screen-2xl px-4 lg:px-8 py-8 pt-20", children: [
|
|
2564
2667
|
/* @__PURE__ */ a.jsxs(
|
|
2565
2668
|
"div",
|
|
2566
2669
|
{
|
|
2567
|
-
className:
|
|
2670
|
+
className: E("flex flex-row gap-8", {
|
|
2568
2671
|
"justify-center": !t.position || t.position === "center",
|
|
2569
2672
|
"justify-start": t.position === "start",
|
|
2570
2673
|
"justify-end": t.position === "end"
|
|
2571
2674
|
}),
|
|
2572
2675
|
children: [
|
|
2573
|
-
/* @__PURE__ */ a.jsx(
|
|
2676
|
+
/* @__PURE__ */ a.jsx(C.Target, { name: "footer-before" }),
|
|
2574
2677
|
t.columns && /* @__PURE__ */ a.jsx(
|
|
2575
2678
|
"div",
|
|
2576
2679
|
{
|
|
@@ -2579,7 +2682,7 @@ const Ys = Ss({
|
|
|
2579
2682
|
children: t.columns.map((n) => /* @__PURE__ */ a.jsxs(
|
|
2580
2683
|
"div",
|
|
2581
2684
|
{
|
|
2582
|
-
className:
|
|
2685
|
+
className: E({
|
|
2583
2686
|
"justify-self-center": !n.position || n.position === "center",
|
|
2584
2687
|
"justify-self-start": n.position === "start",
|
|
2585
2688
|
"justify-self-end": n.position === "end"
|
|
@@ -2588,7 +2691,7 @@ const Ys = Ss({
|
|
|
2588
2691
|
/* @__PURE__ */ a.jsx("span", { className: "text-sm font-semibold", children: n.title }),
|
|
2589
2692
|
/* @__PURE__ */ a.jsx("ul", { className: "mt-4 space-y-2", children: n.links.map((r) => {
|
|
2590
2693
|
const o = "flex flex-row gap-1 items-center text-sm text-muted-foreground hover:text-accent-foreground";
|
|
2591
|
-
return /* @__PURE__ */ a.jsx("li", { children:
|
|
2694
|
+
return /* @__PURE__ */ a.jsx("li", { children: $i(r.href) ? /* @__PURE__ */ a.jsxs(
|
|
2592
2695
|
"a",
|
|
2593
2696
|
{
|
|
2594
2697
|
href: r.href,
|
|
@@ -2597,10 +2700,10 @@ const Ys = Ss({
|
|
|
2597
2700
|
className: o,
|
|
2598
2701
|
children: [
|
|
2599
2702
|
/* @__PURE__ */ a.jsx("span", { children: r.label }),
|
|
2600
|
-
/* @__PURE__ */ a.jsx(
|
|
2703
|
+
/* @__PURE__ */ a.jsx(Yt, { size: 12 })
|
|
2601
2704
|
]
|
|
2602
2705
|
}
|
|
2603
|
-
) : /* @__PURE__ */ a.jsx(
|
|
2706
|
+
) : /* @__PURE__ */ a.jsx(tn, { to: r.href, className: o, children: /* @__PURE__ */ a.jsx("span", { children: r.label }) }) }, r.href + r.label);
|
|
2604
2707
|
}) })
|
|
2605
2708
|
]
|
|
2606
2709
|
},
|
|
@@ -2608,14 +2711,14 @@ const Ys = Ss({
|
|
|
2608
2711
|
))
|
|
2609
2712
|
}
|
|
2610
2713
|
),
|
|
2611
|
-
/* @__PURE__ */ a.jsx(
|
|
2714
|
+
/* @__PURE__ */ a.jsx(C.Target, { name: "footer-after" })
|
|
2612
2715
|
]
|
|
2613
2716
|
}
|
|
2614
2717
|
),
|
|
2615
2718
|
/* @__PURE__ */ a.jsxs(
|
|
2616
2719
|
"div",
|
|
2617
2720
|
{
|
|
2618
|
-
className:
|
|
2721
|
+
className: E(
|
|
2619
2722
|
"flex items-center justify-between",
|
|
2620
2723
|
t.columns && "border-t mt-8 pt-8"
|
|
2621
2724
|
),
|
|
@@ -2649,7 +2752,7 @@ const Ys = Ss({
|
|
|
2649
2752
|
rel: "noopener noreferrer",
|
|
2650
2753
|
className: "w-auto gap-2 flex text-muted-foreground hover:text-accent-foreground",
|
|
2651
2754
|
children: [
|
|
2652
|
-
/* @__PURE__ */ a.jsx(
|
|
2755
|
+
/* @__PURE__ */ a.jsx(Zi, { icon: n.icon }),
|
|
2653
2756
|
n.label
|
|
2654
2757
|
]
|
|
2655
2758
|
},
|
|
@@ -2659,34 +2762,34 @@ const Ys = Ss({
|
|
|
2659
2762
|
}
|
|
2660
2763
|
)
|
|
2661
2764
|
] }) }) : null;
|
|
2662
|
-
},
|
|
2765
|
+
}, zt = ({
|
|
2663
2766
|
shouldScaleBackground: e = !0,
|
|
2664
2767
|
...t
|
|
2665
2768
|
}) => /* @__PURE__ */ a.jsx(
|
|
2666
|
-
|
|
2769
|
+
A.Root,
|
|
2667
2770
|
{
|
|
2668
2771
|
shouldScaleBackground: e,
|
|
2669
2772
|
...t
|
|
2670
2773
|
}
|
|
2671
2774
|
);
|
|
2672
|
-
|
|
2673
|
-
const
|
|
2674
|
-
|
|
2775
|
+
zt.displayName = "Drawer";
|
|
2776
|
+
const Pi = A.Trigger, Oi = A.Portal, kt = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
2777
|
+
A.Overlay,
|
|
2675
2778
|
{
|
|
2676
2779
|
ref: n,
|
|
2677
|
-
className:
|
|
2780
|
+
className: E("fixed inset-0 z-50 bg-black/80", e),
|
|
2678
2781
|
...t
|
|
2679
2782
|
}
|
|
2680
2783
|
));
|
|
2681
|
-
|
|
2682
|
-
const
|
|
2683
|
-
({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(
|
|
2684
|
-
/* @__PURE__ */ a.jsx(
|
|
2784
|
+
kt.displayName = A.Overlay.displayName;
|
|
2785
|
+
const Ei = D.forwardRef(
|
|
2786
|
+
({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(Oi, { children: [
|
|
2787
|
+
/* @__PURE__ */ a.jsx(kt, {}),
|
|
2685
2788
|
/* @__PURE__ */ a.jsxs(
|
|
2686
|
-
|
|
2789
|
+
A.Content,
|
|
2687
2790
|
{
|
|
2688
2791
|
ref: o,
|
|
2689
|
-
className:
|
|
2792
|
+
className: E(
|
|
2690
2793
|
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
|
|
2691
2794
|
e
|
|
2692
2795
|
),
|
|
@@ -2699,36 +2802,36 @@ const ii = A.forwardRef(
|
|
|
2699
2802
|
)
|
|
2700
2803
|
] })
|
|
2701
2804
|
);
|
|
2702
|
-
|
|
2703
|
-
const
|
|
2704
|
-
|
|
2805
|
+
Ei.displayName = "DrawerContent";
|
|
2806
|
+
const Ai = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
2807
|
+
A.Title,
|
|
2705
2808
|
{
|
|
2706
2809
|
ref: n,
|
|
2707
|
-
className:
|
|
2810
|
+
className: E(
|
|
2708
2811
|
"text-lg font-semibold leading-none tracking-tight",
|
|
2709
2812
|
e
|
|
2710
2813
|
),
|
|
2711
2814
|
...t
|
|
2712
2815
|
}
|
|
2713
2816
|
));
|
|
2714
|
-
|
|
2715
|
-
const
|
|
2716
|
-
|
|
2817
|
+
Ai.displayName = A.Title.displayName;
|
|
2818
|
+
const Ti = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
2819
|
+
A.Description,
|
|
2717
2820
|
{
|
|
2718
2821
|
ref: n,
|
|
2719
|
-
className:
|
|
2822
|
+
className: E("text-sm text-muted-foreground", e),
|
|
2720
2823
|
...t
|
|
2721
2824
|
}
|
|
2722
2825
|
));
|
|
2723
|
-
|
|
2724
|
-
const
|
|
2826
|
+
Ti.displayName = A.Description.displayName;
|
|
2827
|
+
const xt = ({
|
|
2725
2828
|
children: e,
|
|
2726
2829
|
className: t
|
|
2727
2830
|
}) => {
|
|
2728
|
-
const { options: n } =
|
|
2729
|
-
return
|
|
2831
|
+
const { options: n } = re(), r = Xe(null);
|
|
2832
|
+
return oe(() => {
|
|
2730
2833
|
const o = r.current?.querySelector('[aria-current="page"]');
|
|
2731
|
-
|
|
2834
|
+
nn(o ?? null);
|
|
2732
2835
|
}, []), /* @__PURE__ */ a.jsxs(
|
|
2733
2836
|
"div",
|
|
2734
2837
|
{
|
|
@@ -2739,7 +2842,7 @@ const gt = ({
|
|
|
2739
2842
|
"nav",
|
|
2740
2843
|
{
|
|
2741
2844
|
ref: r,
|
|
2742
|
-
className:
|
|
2845
|
+
className: E(
|
|
2743
2846
|
"hidden max-w-[calc(var(--side-nav-width)+var(--padding-nav-item))] lg:flex scrollbar flex-col overflow-y-auto shrink-0 text-sm pe-3 ps-4 lg:ps-8",
|
|
2744
2847
|
"-mx-(--padding-nav-item) pb-[8vh] pt-(--padding-content-top) scroll-pt-2 gap-1",
|
|
2745
2848
|
// Revert the padding/margin on the first child
|
|
@@ -2752,36 +2855,36 @@ const gt = ({
|
|
|
2752
2855
|
children: e
|
|
2753
2856
|
}
|
|
2754
2857
|
),
|
|
2755
|
-
/* @__PURE__ */ a.jsx("div", { className: "bg-background border-t p-2 mx-5 gap-2 items-center mt-2 drop-shadow-[0_-3px_1px_rgba(0,0,0,0.015)] hidden lg:[&:has(>_:nth-child(1):last-child)]:flex", children: n.site?.showPoweredBy !== !1 && /* @__PURE__ */ a.jsx(
|
|
2858
|
+
/* @__PURE__ */ a.jsx("div", { className: "bg-background border-t p-2 mx-5 gap-2 items-center mt-2 drop-shadow-[0_-3px_1px_rgba(0,0,0,0.015)] hidden lg:[&:has(>_:nth-child(1):last-child)]:flex", children: n.site?.showPoweredBy !== !1 && /* @__PURE__ */ a.jsx(Kt, {}) })
|
|
2756
2859
|
]
|
|
2757
2860
|
}
|
|
2758
2861
|
);
|
|
2759
2862
|
};
|
|
2760
|
-
|
|
2761
|
-
const
|
|
2863
|
+
xt.displayName = "NavigationWrapper";
|
|
2864
|
+
const Si = ({
|
|
2762
2865
|
onRequestClose: e,
|
|
2763
2866
|
navigation: t
|
|
2764
2867
|
}) => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2765
|
-
/* @__PURE__ */ a.jsxs(
|
|
2766
|
-
/* @__PURE__ */ a.jsx(
|
|
2868
|
+
/* @__PURE__ */ a.jsxs(xt, { children: [
|
|
2869
|
+
/* @__PURE__ */ a.jsx(C.Target, { name: "navigation-before" }),
|
|
2767
2870
|
t.map((n) => /* @__PURE__ */ a.jsx(
|
|
2768
|
-
|
|
2871
|
+
Ze,
|
|
2769
2872
|
{
|
|
2770
2873
|
item: n
|
|
2771
2874
|
},
|
|
2772
2875
|
n.type + (n.label ?? "") + ("path" in n ? n.path : "") + ("file" in n ? n.file : "") + ("to" in n ? n.to : "")
|
|
2773
2876
|
)),
|
|
2774
|
-
/* @__PURE__ */ a.jsx(
|
|
2877
|
+
/* @__PURE__ */ a.jsx(C.Target, { name: "navigation-after" })
|
|
2775
2878
|
] }),
|
|
2776
2879
|
/* @__PURE__ */ a.jsx(
|
|
2777
|
-
|
|
2880
|
+
cn,
|
|
2778
2881
|
{
|
|
2779
2882
|
className: "lg:hidden h-[100dvh] start-0 w-[320px] rounded-none",
|
|
2780
2883
|
"aria-describedby": void 0,
|
|
2781
2884
|
children: /* @__PURE__ */ a.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
2782
|
-
/* @__PURE__ */ a.jsx(
|
|
2885
|
+
/* @__PURE__ */ a.jsx(ln, { children: /* @__PURE__ */ a.jsx(un, { children: "Navigation" }) }),
|
|
2783
2886
|
t.map((n) => /* @__PURE__ */ a.jsx(
|
|
2784
|
-
|
|
2887
|
+
Ze,
|
|
2785
2888
|
{
|
|
2786
2889
|
item: n,
|
|
2787
2890
|
onRequestClose: e
|
|
@@ -2791,75 +2894,75 @@ const ui = ({
|
|
|
2791
2894
|
] })
|
|
2792
2895
|
}
|
|
2793
2896
|
)
|
|
2794
|
-
] }),
|
|
2795
|
-
const [t, n] =
|
|
2897
|
+
] }), Ii = ({ children: e }) => {
|
|
2898
|
+
const [t, n] = Rt(!1), { navigation: r } = Dt(), o = r.length > 0, s = Mt().state === "loading", { options: i } = re();
|
|
2796
2899
|
return /* @__PURE__ */ a.jsxs(
|
|
2797
|
-
|
|
2900
|
+
zt,
|
|
2798
2901
|
{
|
|
2799
2902
|
direction: i.site?.dir === "rtl" ? "right" : "left",
|
|
2800
2903
|
open: t,
|
|
2801
2904
|
onOpenChange: (u) => n(u),
|
|
2802
2905
|
children: [
|
|
2803
2906
|
o && /* @__PURE__ */ a.jsx(
|
|
2804
|
-
|
|
2907
|
+
Si,
|
|
2805
2908
|
{
|
|
2806
2909
|
onRequestClose: () => n(!1),
|
|
2807
2910
|
navigation: r
|
|
2808
2911
|
}
|
|
2809
2912
|
),
|
|
2810
|
-
o && /* @__PURE__ */ a.jsx("div", { className: "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur-xs z-10 top-0 start-0 end-0 border-b", children: /* @__PURE__ */ a.jsxs(
|
|
2811
|
-
/* @__PURE__ */ a.jsx(
|
|
2913
|
+
o && /* @__PURE__ */ a.jsx("div", { className: "lg:hidden m-0 p-0 md:-mx-4 md:px-4 py-2 sticky bg-background/80 backdrop-blur-xs z-10 top-0 start-0 end-0 border-b", children: /* @__PURE__ */ a.jsxs(Pi, { className: "flex items-center gap-2 px-4", children: [
|
|
2914
|
+
/* @__PURE__ */ a.jsx(Xt, { size: 16, strokeWidth: 1.5 }),
|
|
2812
2915
|
/* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
|
|
2813
2916
|
] }) }),
|
|
2814
2917
|
/* @__PURE__ */ a.jsxs(
|
|
2815
2918
|
"main",
|
|
2816
2919
|
{
|
|
2817
2920
|
"data-pagefind-body": !0,
|
|
2818
|
-
className:
|
|
2921
|
+
className: E(
|
|
2819
2922
|
"px-4 lg:pe-8 lg:px-8",
|
|
2820
2923
|
!o && "col-span-full",
|
|
2821
2924
|
s && "animate-pulse"
|
|
2822
2925
|
),
|
|
2823
2926
|
children: [
|
|
2824
|
-
/* @__PURE__ */ a.jsx(
|
|
2927
|
+
/* @__PURE__ */ a.jsx(C.Target, { name: "content-before" }),
|
|
2825
2928
|
e,
|
|
2826
|
-
/* @__PURE__ */ a.jsx(
|
|
2929
|
+
/* @__PURE__ */ a.jsx(C.Target, { name: "content-after" })
|
|
2827
2930
|
]
|
|
2828
2931
|
}
|
|
2829
2932
|
)
|
|
2830
2933
|
]
|
|
2831
2934
|
}
|
|
2832
2935
|
);
|
|
2833
|
-
},
|
|
2834
|
-
const { authentication: t } =
|
|
2835
|
-
return
|
|
2936
|
+
}, Di = () => /* @__PURE__ */ a.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ a.jsx(dn, {}) }), Ci = ({ children: e }) => {
|
|
2937
|
+
const { authentication: t } = re();
|
|
2938
|
+
return rn(), xi(), oe(() => {
|
|
2836
2939
|
t?.onPageLoad?.();
|
|
2837
2940
|
}, [t]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2838
|
-
/* @__PURE__ */ a.jsx(
|
|
2839
|
-
/* @__PURE__ */ a.jsx(
|
|
2840
|
-
/* @__PURE__ */ a.jsx(
|
|
2941
|
+
/* @__PURE__ */ a.jsx(C.Target, { name: "layout-before-head" }),
|
|
2942
|
+
/* @__PURE__ */ a.jsx(Ht, {}),
|
|
2943
|
+
/* @__PURE__ */ a.jsx(C.Target, { name: "layout-after-head" }),
|
|
2841
2944
|
/* @__PURE__ */ a.jsx(
|
|
2842
2945
|
"div",
|
|
2843
2946
|
{
|
|
2844
|
-
className:
|
|
2947
|
+
className: E(
|
|
2845
2948
|
"grid max-w-screen-2xl w-full lg:mx-auto",
|
|
2846
2949
|
"[&:has(>:only-child)]:grid-rows-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr]",
|
|
2847
2950
|
"grid-cols-1 lg:grid-cols-[var(--side-nav-width)_1fr]"
|
|
2848
2951
|
),
|
|
2849
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2952
|
+
children: /* @__PURE__ */ a.jsx(Ft, { fallback: /* @__PURE__ */ a.jsx(Di, {}), children: /* @__PURE__ */ a.jsx(Ii, { children: e ?? /* @__PURE__ */ a.jsx(Qt, {}) }) })
|
|
2850
2953
|
}
|
|
2851
2954
|
),
|
|
2852
|
-
/* @__PURE__ */ a.jsx(
|
|
2955
|
+
/* @__PURE__ */ a.jsx(ji, {})
|
|
2853
2956
|
] });
|
|
2854
|
-
},
|
|
2855
|
-
const { meta: t, options: n } =
|
|
2957
|
+
}, Ni = ({ children: e }) => {
|
|
2958
|
+
const { meta: t, options: n } = re(), r = et();
|
|
2856
2959
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2857
|
-
/* @__PURE__ */ a.jsxs(
|
|
2960
|
+
/* @__PURE__ */ a.jsxs(He, { titleTemplate: t?.title, defaultTitle: t?.defaultTitle, children: [
|
|
2858
2961
|
n.canonicalUrlOrigin && /* @__PURE__ */ a.jsx(
|
|
2859
2962
|
"link",
|
|
2860
2963
|
{
|
|
2861
2964
|
rel: "canonical",
|
|
2862
|
-
href:
|
|
2965
|
+
href: Ct(
|
|
2863
2966
|
n.canonicalUrlOrigin,
|
|
2864
2967
|
n.basePath,
|
|
2865
2968
|
r.pathname
|
|
@@ -2878,15 +2981,15 @@ const ui = ({
|
|
|
2878
2981
|
] }),
|
|
2879
2982
|
e
|
|
2880
2983
|
] });
|
|
2881
|
-
},
|
|
2984
|
+
}, Ri = ({
|
|
2882
2985
|
title: e = "An error occurred",
|
|
2883
2986
|
message: t,
|
|
2884
2987
|
category: n
|
|
2885
|
-
}) => /* @__PURE__ */ a.jsxs(
|
|
2886
|
-
n && /* @__PURE__ */ a.jsx(
|
|
2887
|
-
e && /* @__PURE__ */ a.jsx(
|
|
2988
|
+
}) => /* @__PURE__ */ a.jsxs(on, { className: "h-full pt-(--padding-content-top)", children: [
|
|
2989
|
+
n && /* @__PURE__ */ a.jsx(hn, { children: n }),
|
|
2990
|
+
e && /* @__PURE__ */ a.jsx(sn, { level: 1, className: "flex gap-3.5 items-center", children: e }),
|
|
2888
2991
|
/* @__PURE__ */ a.jsx("p", { children: t })
|
|
2889
|
-
] }),
|
|
2992
|
+
] }), Fi = (e) => {
|
|
2890
2993
|
switch (e) {
|
|
2891
2994
|
case 400:
|
|
2892
2995
|
return {
|
|
@@ -2949,12 +3052,12 @@ const ui = ({
|
|
|
2949
3052
|
message: "Something went wrong while processing your request."
|
|
2950
3053
|
};
|
|
2951
3054
|
}
|
|
2952
|
-
},
|
|
3055
|
+
}, Ui = ({ statusCode: e, message: t }) => {
|
|
2953
3056
|
if (e === 404)
|
|
2954
|
-
return /* @__PURE__ */ a.jsx(
|
|
2955
|
-
const n =
|
|
3057
|
+
return /* @__PURE__ */ a.jsx(fn, {});
|
|
3058
|
+
const n = Fi(e);
|
|
2956
3059
|
return /* @__PURE__ */ a.jsx(
|
|
2957
|
-
|
|
3060
|
+
Ri,
|
|
2958
3061
|
{
|
|
2959
3062
|
title: n.title,
|
|
2960
3063
|
message: t ?? n.message,
|
|
@@ -2962,20 +3065,20 @@ const ui = ({
|
|
|
2962
3065
|
}
|
|
2963
3066
|
);
|
|
2964
3067
|
};
|
|
2965
|
-
function
|
|
2966
|
-
return /* @__PURE__ */ a.jsx(
|
|
3068
|
+
function qi({ error: e }) {
|
|
3069
|
+
return /* @__PURE__ */ a.jsx(an, { error: e });
|
|
2967
3070
|
}
|
|
2968
|
-
const
|
|
3071
|
+
const sa = Ci, ia = pn, aa = qi, ca = kn, ua = xn, la = Vt, da = He, ha = Ui, fa = ki, pa = Ni;
|
|
2969
3072
|
export {
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
3073
|
+
ca as Bootstrap,
|
|
3074
|
+
ua as BootstrapStatic,
|
|
3075
|
+
fa as BuildCheck,
|
|
3076
|
+
da as Head,
|
|
3077
|
+
sa as Layout,
|
|
3078
|
+
pa as Meta,
|
|
3079
|
+
la as RouteGuard,
|
|
3080
|
+
ia as RouterError,
|
|
3081
|
+
aa as ServerError,
|
|
3082
|
+
ha as StatusPage
|
|
2980
3083
|
};
|
|
2981
3084
|
//# sourceMappingURL=zudoku.__internal.js.map
|