@rainbow-robotics/muscat-plugin-kit 0.1.2-dev.9 → 0.10.1-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ko.md +1186 -0
- package/README.md +1137 -57
- package/cli/README.md +239 -7
- package/cli/bin/create-muscat-plugin.mjs +1 -1
- package/cli/bin/muscat-pk.mjs +123 -27
- package/cli/bundle-templates.mjs +31 -0
- package/cli/docker/Dockerfile.cpp +28 -0
- package/cli/docker/Dockerfile.dev +17 -0
- package/cli/docker/Dockerfile.python +21 -0
- package/cli/prepack.mjs +10 -0
- package/cli/src/__pycache__/host_agent.cpython-37.pyc +0 -0
- package/cli/src/ai-rules.mjs +107 -0
- package/cli/src/build.mjs +333 -93
- package/cli/src/check-package.mjs +8 -23
- package/cli/src/completion.mjs +168 -0
- package/cli/src/cpp.mjs +78 -0
- package/cli/src/cppIde.mjs +76 -0
- package/cli/src/dev.mjs +195 -6
- package/cli/src/devBack.mjs +671 -60
- package/cli/src/devId.mjs +54 -0
- package/cli/src/devSession.mjs +67 -0
- package/cli/src/devUi.mjs +214 -25
- package/cli/src/esbuild.mjs +27 -10
- package/cli/src/host_agent.py +223 -0
- package/cli/src/manifest.mjs +288 -0
- package/cli/src/mcp.mjs +1153 -0
- package/cli/src/mcpProxy.mjs +110 -0
- package/cli/src/muscatLocal.mjs +292 -0
- package/cli/src/new.mjs +205 -68
- package/cli/src/pluginDevServer.mjs +111 -0
- package/cli/src/ports.mjs +193 -0
- package/cli/src/projectCheck.mjs +102 -0
- package/cli/src/python.mjs +112 -0
- package/cli/src/ros2.mjs +62 -18
- package/cli/src/sdk.mjs +74 -24
- package/cli/src/sim.mjs +177 -0
- package/cli/src/storybook.mjs +150 -0
- package/cli/src/templates-embedded.mjs +4 -0
- package/cli/src/type.mjs +93 -34
- package/cli/src/uninstall.mjs +81 -0
- package/cli/src/update.mjs +364 -35
- package/cli/src/util.mjs +341 -11
- package/cli/src/zenohDev.mjs +83 -0
- package/cli/src/zip.mjs +121 -0
- package/cli/storybook-dist/_design-tokens.css +4957 -0
- package/cli/storybook-dist/_stories-src/NxAvatar.stories.tsx +27 -0
- package/cli/storybook-dist/_stories-src/NxPagination.stories.tsx +28 -0
- package/cli/storybook-dist/_stories-src/RBAccordion/RBAccordion.stories.tsx +46 -0
- package/cli/storybook-dist/_stories-src/RBAccordion/RBAccordionGroup.stories.tsx +73 -0
- package/cli/storybook-dist/_stories-src/RBBadge/RBBadge.stories.tsx +93 -0
- package/cli/storybook-dist/_stories-src/RBBattery/RBBattery.stories.tsx +74 -0
- package/cli/storybook-dist/_stories-src/RBButton/RBCheckIconButton.stories.tsx +28 -0
- package/cli/storybook-dist/_stories-src/RBButton/RBCheckLabelButton.stories.tsx +84 -0
- package/cli/storybook-dist/_stories-src/RBButton/RBIconButton.stories.tsx +57 -0
- package/cli/storybook-dist/_stories-src/RBButton/RBInlineLabelButton.stories.tsx +41 -0
- package/cli/storybook-dist/_stories-src/RBButton/RBLabelButton.stories.tsx +60 -0
- package/cli/storybook-dist/_stories-src/RBDatePicker/RBDateInput.stories.tsx +44 -0
- package/cli/storybook-dist/_stories-src/RBDatePicker/RBRangeDateInput.stories.tsx +56 -0
- package/cli/storybook-dist/_stories-src/RBDialog/RBAlert.stories.tsx +51 -0
- package/cli/storybook-dist/_stories-src/RBDialog/RBConfirm.stories.tsx +55 -0
- package/cli/storybook-dist/_stories-src/RBDialog/RBPrompt.stories.tsx +52 -0
- package/cli/storybook-dist/_stories-src/RBDivider/RBDivider.stories.tsx +93 -0
- package/cli/storybook-dist/_stories-src/RBEmptyView/RBEmptyView.stories.tsx +49 -0
- package/cli/storybook-dist/_stories-src/RBIcons/RBColorIcons.stories.tsx +108 -0
- package/cli/storybook-dist/_stories-src/RBIcons/RBIcons.stories.tsx +106 -0
- package/cli/storybook-dist/_stories-src/RBInput/RBCheckBox.stories.tsx +89 -0
- package/cli/storybook-dist/_stories-src/RBInput/RBMultiRangeInput.stories.tsx +64 -0
- package/cli/storybook-dist/_stories-src/RBInput/RBRadioBox.stories.tsx +65 -0
- package/cli/storybook-dist/_stories-src/RBInput/RBRadioButton.stories.tsx +68 -0
- package/cli/storybook-dist/_stories-src/RBInput/RBSelectBox.stories.tsx +216 -0
- package/cli/storybook-dist/_stories-src/RBInput/RBSideNumberInput.stories.tsx +90 -0
- package/cli/storybook-dist/_stories-src/RBInput/RBText/RBTextArea.stories.tsx +45 -0
- package/cli/storybook-dist/_stories-src/RBInput/RBText/RBTextInput.stories.tsx +50 -0
- package/cli/storybook-dist/_stories-src/RBInput/RBTextField.stories.tsx +102 -0
- package/cli/storybook-dist/_stories-src/RBJoyStick/RBJoyStick.stories.tsx +31 -0
- package/cli/storybook-dist/_stories-src/RBLight/RBLight.stories.tsx +36 -0
- package/cli/storybook-dist/_stories-src/RBPagination/RBPagination.stories.tsx +49 -0
- package/cli/storybook-dist/_stories-src/RBShadcn/RBCard/RBCard.stories.tsx +89 -0
- package/cli/storybook-dist/_stories-src/RBShadcn/RBCommand/RBCommand.stories.tsx +116 -0
- package/cli/storybook-dist/_stories-src/RBShadcn/RBDialog/RBDialog.stories.tsx +74 -0
- package/cli/storybook-dist/_stories-src/RBShadcn/RBDrawer/RBDrawer.stories.tsx +99 -0
- package/cli/storybook-dist/_stories-src/RBShadcn/RBDropdownMenu/RBDropdownMenu.stories.tsx +123 -0
- package/cli/storybook-dist/_stories-src/RBShadcn/RBMenubar/RBMenubar.stories.tsx +135 -0
- package/cli/storybook-dist/_stories-src/RBShadcn/RBPopover/RBPopover.stories.tsx +69 -0
- package/cli/storybook-dist/_stories-src/RBShadcn/RBResizable/RBResizable.stories.tsx +49 -0
- package/cli/storybook-dist/_stories-src/RBShadcn/RBSheet/RBSheet.stories.tsx +91 -0
- package/cli/storybook-dist/_stories-src/RBShadcn/RBSlider/RBSlider.stories.tsx +38 -0
- package/cli/storybook-dist/_stories-src/RBShadcn/RBSwitch/RBSwitch.stories.tsx +112 -0
- package/cli/storybook-dist/_stories-src/RBShadcn/RBTabs/RBTabs.stories.tsx +75 -0
- package/cli/storybook-dist/_stories-src/RBShadcn/RBToggle/RBToggle.stories.tsx +51 -0
- package/cli/storybook-dist/_stories-src/RBShadcn/RBToggleGroup/RBToggleGroup.stories.tsx +84 -0
- package/cli/storybook-dist/_stories-src/RBTab/RBChipTab.stories.tsx +102 -0
- package/cli/storybook-dist/_stories-src/RBTab/RBChipsBoxTab.stories.tsx +78 -0
- package/cli/storybook-dist/_stories-src/RBTab/RBTab.stories.tsx +57 -0
- package/cli/storybook-dist/_stories-src/RBTable/RBTable.stories.tsx +177 -0
- package/cli/storybook-dist/_stories-src/RBTable/RBTableRow.stories.tsx +64 -0
- package/cli/storybook-dist/_stories-src/RBToast/RBToast.stories.tsx +117 -0
- package/cli/storybook-dist/_stories-src/RBTooltip/RBTooltip.stories.tsx +50 -0
- package/cli/storybook-dist/_stories-src/loading/RBSpinner.stories.tsx +30 -0
- package/cli/storybook-dist/_stories-src/nx-button/NxButton.stories.tsx +54 -0
- package/cli/storybook-dist/_stories-src/nx-button/NxPointerHoldButton.stories.tsx +57 -0
- package/cli/storybook-dist/_stories-src/nx-icons/NxIcons.stories.tsx +48 -0
- package/cli/storybook-dist/_stories-src/nx-inputs/NxNumberInput.stories.tsx +103 -0
- package/cli/storybook-dist/_stories-src/nx-inputs/NxRangeInput.stories.tsx +27 -0
- package/cli/storybook-dist/_stories-src/nx-inputs/NxSelectBox.stories.tsx +67 -0
- package/cli/storybook-dist/_stories-src/nx-inputs/NxSlideRange.stories.tsx +45 -0
- package/cli/storybook-dist/_stories-src/nx-inputs/NxSwitch.stories.tsx +27 -0
- package/cli/storybook-dist/_stories-src/nx-inputs/NxTextArea.stories.tsx +48 -0
- package/cli/storybook-dist/_stories-src/nx-inputs/NxTextInput.stories.tsx +46 -0
- package/cli/storybook-dist/assets/Color-YHDXOIA2-pCKrjUal.js +1 -0
- package/cli/storybook-dist/assets/Docs-B-Y7I1GA.js +7 -0
- package/cli/storybook-dist/assets/Docs-BFJcE_VS.js +8 -0
- package/cli/storybook-dist/assets/Docs-B_QaTtz8.js +8 -0
- package/cli/storybook-dist/assets/Docs-CryDGmfh.js +20 -0
- package/cli/storybook-dist/assets/Docs-Cw2AVNKx.js +7 -0
- package/cli/storybook-dist/assets/Docs-Q6r1fBeL.js +12 -0
- package/cli/storybook-dist/assets/DocsRenderer-CFRXHY34-_OmZBCn8.js +2 -0
- package/cli/storybook-dist/assets/NxAvatar.stories-Ctf5G2FQ.js +13 -0
- package/cli/storybook-dist/assets/NxButton.stories-DeLObVSj.js +20 -0
- package/cli/storybook-dist/assets/NxIcons.stories-DeqrVzVs.js +3 -0
- package/cli/storybook-dist/assets/NxNumberInput.stories-LqoY0ed1.js +26 -0
- package/cli/storybook-dist/assets/NxPagination.stories-DI6bXuJM.js +11 -0
- package/cli/storybook-dist/assets/NxPointerHoldButton.stories-3HSV1XmN.js +14 -0
- package/cli/storybook-dist/assets/NxRangeInput.stories-1pjgQVaG.js +17 -0
- package/cli/storybook-dist/assets/NxSelectBox.stories-bcQPZEuF.js +17 -0
- package/cli/storybook-dist/assets/NxSlideRange.stories-BosX4axk.js +14 -0
- package/cli/storybook-dist/assets/NxSwitch.stories-DxV6dS33.js +11 -0
- package/cli/storybook-dist/assets/NxTextArea.stories-CO545-LP.js +11 -0
- package/cli/storybook-dist/assets/NxTextInput.stories-BP0npai1.js +11 -0
- package/cli/storybook-dist/assets/PretendardVariable-CJuje-Rk.woff2 +0 -0
- package/cli/storybook-dist/assets/RBAccordion.stories-fVR4Va2a.js +17 -0
- package/cli/storybook-dist/assets/RBAccordionGroup.stories-Du5bsckD.js +33 -0
- package/cli/storybook-dist/assets/RBAlert.stories-DNkMXUu6.js +17 -0
- package/cli/storybook-dist/assets/RBBadge.stories-C44pXt8D.js +1 -0
- package/cli/storybook-dist/assets/RBBattery.stories-DE2JHvfL.js +10 -0
- package/cli/storybook-dist/assets/RBCard.stories-CuIda7NI.js +45 -0
- package/cli/storybook-dist/assets/RBCheckBox.stories-D1qM1ayr.js +1 -0
- package/cli/storybook-dist/assets/RBCheckIconButton.stories-e4gkliBO.js +1 -0
- package/cli/storybook-dist/assets/RBCheckLabelButton.stories-CDzCtsMI.js +24 -0
- package/cli/storybook-dist/assets/RBChipTab.stories-DBrc_3Mp.js +21 -0
- package/cli/storybook-dist/assets/RBChipsBoxTab.stories-hlrsHjKY.js +1 -0
- package/cli/storybook-dist/assets/RBColorIcons.stories-BHUvpkdu.js +3 -0
- package/cli/storybook-dist/assets/RBCommand.stories-azAF41NP.js +73 -0
- package/cli/storybook-dist/assets/RBConfirm.stories-BMNjwbmT.js +20 -0
- package/cli/storybook-dist/assets/RBDateInput.stories-D0VezDzv.js +15 -0
- package/cli/storybook-dist/assets/RBDialog.stories-AOJ975Fy.js +38 -0
- package/cli/storybook-dist/assets/RBDivider.stories-NSvnj43Z.js +1 -0
- package/cli/storybook-dist/assets/RBDrawer.stories-Du0oTvD1.js +14 -0
- package/cli/storybook-dist/assets/RBDropdownMenu.stories-Hsxve4PW.js +86 -0
- package/cli/storybook-dist/assets/RBEmptyView.stories-BlwHx3zp.js +12 -0
- package/cli/storybook-dist/assets/RBIconButton.stories-DAPDY63x.js +1 -0
- package/cli/storybook-dist/assets/RBIcons.stories-W5ZUV2L1.js +3 -0
- package/cli/storybook-dist/assets/RBInlineLabelButton.stories-C99j0Y3g.js +1 -0
- package/cli/storybook-dist/assets/RBJoyStick.stories-Du0H1iAS.js +11 -0
- package/cli/storybook-dist/assets/RBLabelButton.stories-BlvHaU_Z.js +1 -0
- package/cli/storybook-dist/assets/RBLight.stories-BY6DKrre.js +1 -0
- package/cli/storybook-dist/assets/RBMenubar.stories-D2PEGpM9.js +3 -0
- package/cli/storybook-dist/assets/RBMultiRangeInput.stories-Bm2qSmjq.js +14 -0
- package/cli/storybook-dist/assets/RBPagination.stories-DDleJa5N.js +17 -0
- package/cli/storybook-dist/assets/RBPopover.stories-27YxPSFG.js +11 -0
- package/cli/storybook-dist/assets/RBPrompt.stories-BFaIOctr.js +20 -0
- package/cli/storybook-dist/assets/RBRadioBox.stories-BroDar0t.js +1 -0
- package/cli/storybook-dist/assets/RBRadioButton.stories-M3O-wX7V.js +11 -0
- package/cli/storybook-dist/assets/RBRangeDateInput.stories-CWlM_D5X.js +15 -0
- package/cli/storybook-dist/assets/RBResizable.stories-ui8X1qnc.js +20 -0
- package/cli/storybook-dist/assets/RBSelectBox.stories-C8T6cfA0.js +74 -0
- package/cli/storybook-dist/assets/RBSheet.stories-BCOo_Zcc.js +39 -0
- package/cli/storybook-dist/assets/RBSideNumberInput.stories-CU2_MVlJ.js +5 -0
- package/cli/storybook-dist/assets/RBSlider.stories-DgOp1TFc.js +5 -0
- package/cli/storybook-dist/assets/RBSpinner.stories-qLScY3zZ.js +14 -0
- package/cli/storybook-dist/assets/RBSwitch.stories-SXSY1QMb.js +65 -0
- package/cli/storybook-dist/assets/RBTab.stories-BzXXTsXP.js +1 -0
- package/cli/storybook-dist/assets/RBTable.stories-DHTeRNVk.js +62 -0
- package/cli/storybook-dist/assets/RBTableRow.stories-DRNRsd15.js +11 -0
- package/cli/storybook-dist/assets/RBTabs.stories-DP0noBLp.js +21 -0
- package/cli/storybook-dist/assets/RBTextArea.stories-TkaejfxJ.js +5 -0
- package/cli/storybook-dist/assets/RBTextField.stories-B6VpCGyt.js +45 -0
- package/cli/storybook-dist/assets/RBTextInput.stories-D3hZ08e-.js +5 -0
- package/cli/storybook-dist/assets/RBToast.stories-BQ2wS2U0.js +11 -0
- package/cli/storybook-dist/assets/RBToggle.stories-GVOjGqo3.js +12 -0
- package/cli/storybook-dist/assets/RBToggleGroup.stories-pzx0btOD.js +17 -0
- package/cli/storybook-dist/assets/RBTooltip.stories-jufB6fa1.js +9 -0
- package/cli/storybook-dist/assets/SideNumberInput-BYlmNHEw.js +1109 -0
- package/cli/storybook-dist/assets/SideNumberInput-SAkhydsn.css +21 -0
- package/cli/storybook-dist/assets/browserUtils-CQM9Za7e.js +1 -0
- package/cli/storybook-dist/assets/chunk-XP5HYGXS-BHXC9YeQ.js +1 -0
- package/cli/storybook-dist/assets/client-DTf7SId2.js +1 -0
- package/cli/storybook-dist/assets/entry-preview-CAkU-e0D.js +2 -0
- package/cli/storybook-dist/assets/entry-preview-docs-b8bpVBXy.js +46 -0
- package/cli/storybook-dist/assets/iframe-B-BmTsxV.js +211 -0
- package/cli/storybook-dist/assets/index-B4FGfHer.js +1 -0
- package/cli/storybook-dist/assets/index-BRq5TIsn.js +24 -0
- package/cli/storybook-dist/assets/index-CT3U1fyk.js +1 -0
- package/cli/storybook-dist/assets/index-ChsGqxH_.js +9 -0
- package/cli/storybook-dist/assets/index-CkB0GfaI.js +575 -0
- package/cli/storybook-dist/assets/index-ClAc6FBW.js +240 -0
- package/cli/storybook-dist/assets/index-DKFBREX_.js +1 -0
- package/cli/storybook-dist/assets/index-DgH-xKnr.js +11 -0
- package/cli/storybook-dist/assets/index-Dmy2JGbm.js +1 -0
- package/cli/storybook-dist/assets/index-DrFu-skq.js +6 -0
- package/cli/storybook-dist/assets/jsx-runtime-BTJTZTIL.js +9 -0
- package/cli/storybook-dist/assets/preview-B8lJiyuQ.js +34 -0
- package/cli/storybook-dist/assets/preview-BBWR9nbA.js +1 -0
- package/cli/storybook-dist/assets/preview-BVJwlGUF.js +1 -0
- package/cli/storybook-dist/assets/preview-BWzBA1C2.js +396 -0
- package/cli/storybook-dist/assets/preview-CVgpLj3b.js +1 -0
- package/cli/storybook-dist/assets/preview-CvbIS5ZJ.js +1 -0
- package/cli/storybook-dist/assets/preview-CznQwwbo.js +3 -0
- package/cli/storybook-dist/assets/preview-DD_OYowb.js +1 -0
- package/cli/storybook-dist/assets/preview-DGUiP6tS.js +7 -0
- package/cli/storybook-dist/assets/preview-DHQbi4pV.js +1 -0
- package/cli/storybook-dist/assets/preview-M77JRg1A.js +2 -0
- package/cli/storybook-dist/assets/preview-kTZPgP6D.css +1 -0
- package/cli/storybook-dist/assets/react-18-hB3smqWJ.js +1 -0
- package/cli/storybook-dist/assets/react-resizable-panels-HsFbxPbn.css +1 -0
- package/cli/storybook-dist/assets/react-resizable-panels.browser-DuxpZLkF.js +120 -0
- package/cli/storybook-dist/assets/test-utils-BQudk2xt.js +9 -0
- package/cli/storybook-dist/favicon.svg +1 -0
- package/cli/storybook-dist/iframe.html +666 -0
- package/cli/storybook-dist/index.html +190 -0
- package/cli/storybook-dist/index.json +1 -0
- package/cli/storybook-dist/nunito-sans-bold-italic.woff2 +0 -0
- package/cli/storybook-dist/nunito-sans-bold.woff2 +0 -0
- package/cli/storybook-dist/nunito-sans-italic.woff2 +0 -0
- package/cli/storybook-dist/nunito-sans-regular.woff2 +0 -0
- package/cli/storybook-dist/project.json +1 -0
- package/cli/storybook-dist/sb-addons/chromatic-com-storybook-10/manager-bundle.js +331 -0
- package/cli/storybook-dist/sb-addons/chromatic-com-storybook-10/manager-bundle.js.LEGAL.txt +51 -0
- package/cli/storybook-dist/sb-addons/essentials-actions-3/manager-bundle.js +3 -0
- package/cli/storybook-dist/sb-addons/essentials-backgrounds-5/manager-bundle.js +12 -0
- package/cli/storybook-dist/sb-addons/essentials-controls-2/manager-bundle.js +405 -0
- package/cli/storybook-dist/sb-addons/essentials-docs-4/manager-bundle.js +245 -0
- package/cli/storybook-dist/sb-addons/essentials-measure-8/manager-bundle.js +3 -0
- package/cli/storybook-dist/sb-addons/essentials-outline-9/manager-bundle.js +3 -0
- package/cli/storybook-dist/sb-addons/essentials-toolbars-7/manager-bundle.js +3 -0
- package/cli/storybook-dist/sb-addons/essentials-viewport-6/manager-bundle.js +3 -0
- package/cli/storybook-dist/sb-addons/links-1/manager-bundle.js +3 -0
- package/cli/storybook-dist/sb-addons/storybook-13/manager-bundle.js +3 -0
- package/cli/storybook-dist/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +3 -0
- package/cli/storybook-dist/sb-addons/storybook-experimental-addon-test-12/manager-bundle.js +223 -0
- package/cli/storybook-dist/sb-addons/themes-11/manager-bundle.js +3 -0
- package/cli/storybook-dist/sb-common-assets/favicon.svg +1 -0
- package/cli/storybook-dist/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/cli/storybook-dist/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/cli/storybook-dist/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/cli/storybook-dist/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/cli/storybook-dist/sb-manager/globals-module-info.js +1052 -0
- package/cli/storybook-dist/sb-manager/globals-runtime.js +41775 -0
- package/cli/storybook-dist/sb-manager/globals.js +48 -0
- package/cli/storybook-dist/sb-manager/runtime.js +12048 -0
- package/cli/templates/common/README.md +1070 -83
- package/cli/templates/common/assets/icon.svg +44 -2
- package/cli/templates/common/manifest.json +14 -13
- package/cli/templates/common/package.json +11 -4
- package/cli/templates/common/py/main.py +125 -0
- package/cli/templates/common/requirements.txt +4 -3
- package/cli/templates/common/tsconfig.json +1 -1
- package/cli/templates/common/ui/content.tsx +216 -0
- package/cli/templates/common/ui/style.css +6 -0
- package/cli/templates/common/vite.config.ts +6 -25
- package/cli/templates/cpp/cpp/CMakeLists.txt +14 -0
- package/cli/templates/cpp/cpp/main.cpp +73 -0
- package/cli/templates/readme-cpp/README.md +1012 -0
- package/cli/templates/ros2/ros2_ws/src/__PLUGIN_SLUG__/__PLUGIN_SLUG__/node.py +12 -1
- package/cli/templates/ros2-cpp/ros2_ws/src/__PLUGIN_SLUG__/CMakeLists.txt +22 -0
- package/cli/templates/ros2-cpp/ros2_ws/src/__PLUGIN_SLUG__/package.xml +11 -0
- package/cli/templates/ros2-cpp/ros2_ws/src/__PLUGIN_SLUG__/src/node.cpp +41 -0
- package/cli/vite.d.mts +25 -0
- package/cli/vite.mjs +292 -0
- package/package.json +34 -7
- package/cli/src/pack.mjs +0 -61
- package/cli/src/preview.mjs +0 -91
- package/cli/templates/common/main.py +0 -114
- package/cli/templates/common/src/content.tsx +0 -33
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e}from"./jsx-runtime-BTJTZTIL.js";const t=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-git-compare-arrows-icon lucide-git-compare-arrows",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:[e.jsx("circle",{cx:"5",cy:"6",r:"3"}),e.jsx("path",{d:"M12 6h5a2 2 0 0 1 2 2v7"}),e.jsx("path",{d:"m15 9-3-3 3-3"}),e.jsx("circle",{cx:"19",cy:"18",r:"3"}),e.jsx("path",{d:"M12 18H7a2 2 0 0 1-2-2V9"}),e.jsx("path",{d:"m9 15 3 3-3 3"})]}),i=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-bot-icon lucide-bot",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:[e.jsx("path",{d:"M12 8V4H8"}),e.jsx("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),e.jsx("path",{d:"M2 14h2M20 14h2M15 13v2M9 13v2"})]}),r=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-box-icon lucide-box",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:[e.jsx("path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z"}),e.jsx("path",{d:"m3.3 7 8.7 5 8.7-5M12 22V12"})]}),s=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-circle-dashed-icon lucide-circle-dashed",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:e.jsx("path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0M13.9 21.818a10 10 0 0 1-3.8 0M17.609 3.721a10 10 0 0 1 2.69 2.7M2.182 13.9a10 10 0 0 1 0-3.8M20.279 17.609a10 10 0 0 1-2.7 2.69M21.818 10.1a10 10 0 0 1 0 3.8M3.721 6.391a10 10 0 0 1 2.7-2.69M6.391 20.279a10 10 0 0 1-2.69-2.7"})}),n=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-circle-stop-icon lucide-circle-stop",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("rect",{width:"6",height:"6",x:"9",y:"9",rx:"1"})]}),l=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-square-dashed-mouse-pointer-icon lucide-square-dashed-mouse-pointer",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:e.jsx("path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033zM5 3a2 2 0 0 0-2 2M19 3a2 2 0 0 1 2 2M5 21a2 2 0 0 1-2-2M9 3h1M9 21h2M14 3h1M3 9v1M21 9v2M3 14v1"})}),c=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-square-chart-gantt-icon lucide-square-chart-gantt",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:[e.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),e.jsx("path",{d:"M9 8h7M8 12h6M11 16h5"})]}),d=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-gamepad-directional-icon lucide-gamepad-directional",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:e.jsx("path",{d:"M11.146 15.854a1.207 1.207 0 0 1 1.708 0l1.56 1.56A2 2 0 0 1 15 18.828V21a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-2.172a2 2 0 0 1 .586-1.414zM18.828 15a2 2 0 0 1-1.414-.586l-1.56-1.56a1.207 1.207 0 0 1 0-1.708l1.56-1.56A2 2 0 0 1 18.828 9H21a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1zM6.586 14.414A2 2 0 0 1 5.172 15H3a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h2.172a2 2 0 0 1 1.414.586l1.56 1.56a1.207 1.207 0 0 1 0 1.708zM9 3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2.172a2 2 0 0 1-.586 1.414l-1.56 1.56a1.207 1.207 0 0 1-1.708 0l-1.56-1.56A2 2 0 0 1 9 5.172z"})}),a=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-eraser-icon lucide-eraser",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:e.jsx("path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21M5.082 11.09l8.828 8.828"})}),h=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-grid3x3-icon lucide-grid-3x3",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:[e.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),e.jsx("path",{d:"M3 9h18M3 15h18M9 3v18M15 3v18"})]}),g=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em",...o,children:[e.jsx("mask",{id:"a",width:"16",height:"16",x:"0",y:"0",maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:e.jsx("path",{fill:"currentColor",d:"M2.054 5.055a.867.867 0 0 1 1.225 0L8 9.775l4.721-4.72a.867.867 0 0 1 1.226 1.225l-5.333 5.334a.867.867 0 0 1-1.226 0L2.054 6.28a.867.867 0 0 1 0-1.225"})}),e.jsx("g",{mask:"url(#a)",children:e.jsx("path",{fill:"currentColor",d:"M0 0h16v16H0z"})})]}),m=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-badge-alert-icon lucide-badge-alert",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:e.jsx("path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76M12 8v4M12 16h.01"})}),p=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-badge-check-icon lucide-badge-check",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:[e.jsx("path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76"}),e.jsx("path",{d:"m9 12 2 2 4-4"})]}),v=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-badge-info-icon lucide-badge-info",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:e.jsx("path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76M12 16v-4M12 8h.01"})}),w=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-calendar",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:[e.jsx("path",{d:"M8 2v4M16 2v4"}),e.jsx("rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}),e.jsx("path",{d:"M3 10h18"})]}),u=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 26 26",width:"1em",height:"1em",...o,children:e.jsx("path",{fill:"currentColor",d:"M8.213 3.336c-.55.55-.55 1.442 0 1.992l7.671 7.67-7.67 7.672a1.408 1.408 0 0 0 1.99 1.991l8.668-8.666c.55-.55.55-1.442 0-1.992l-8.667-8.667a1.41 1.41 0 0 0-1.992 0"})}),x=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 26 26",width:"1em",height:"1em",...o,children:e.jsx("path",{fill:"currentColor",d:"M17.787 3.336c.55.55.55 1.442 0 1.992l-7.671 7.67 7.67 7.672a1.409 1.409 0 0 1-1.99 1.991l-8.668-8.666a1.41 1.41 0 0 1 0-1.992l8.667-8.667c.55-.55 1.442-.55 1.992 0"})}),k=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"1em",height:"1em",...o,children:e.jsx("path",{d:"M412.324 209.102A32.02 32.02 0 0 0 383.996 192h-60.219l72.844-145.688a32.02 32.02 0 0 0-1.406-31.133A31.99 31.99 0 0 0 367.996 0h-160c-13.781 0-26 8.813-30.359 21.883l-80 240a32 32 0 0 0 4.406 28.828A32 32 0 0 0 127.996 304h74.703l-26.328 171.133c-2.266 14.75 5.953 29.117 19.828 34.617a32.035 32.035 0 0 0 38.172-11.617l176-256a32.01 32.01 0 0 0 1.953-33.031"})}),j=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em",...o,children:e.jsx("path",{fill:"currentColor",d:"M13.113 4.387a.867.867 0 0 1 0 1.226l-6 6a.867.867 0 0 1-1.225 0l-3-3a.867.867 0 1 1 1.225-1.226L6.5 9.774l5.387-5.387a.867.867 0 0 1 1.226 0"})}),f=(o={})=>e.jsx("svg",{fill:"currentColor","aria-label":"angles_left",viewBox:"0 0 14 14",width:"1em",height:"1em",...o,children:e.jsx("path",{d:"m6.679 11.775-3.884-4.26 3.882-4.262a.74.74 0 0 0 .195-.501.83.83 0 0 0-.227-.56c-.343-.277-.828-.25-1.109.058l-4.34 4.735a.74.74 0 0 0 0 1.002l4.313 4.763c.28.309.737.335 1.08.058.345-.246.37-.726.09-1.033m.645-4.79a.74.74 0 0 0 0 1.002l4.312 4.763c.281.309.738.335 1.081.058a.74.74 0 0 0 .06-1.061L8.923 7.514l3.881-4.26A.74.74 0 0 0 13 2.751a.83.83 0 0 0-.227-.56.775.775 0 0 0-1.08.058z"})}),M=(o={})=>e.jsx("svg",{fill:"currentColor","aria-label":"angles_right",viewBox:"0 0 14 14",width:"1em",height:"1em",...o,children:e.jsx("path",{d:"M7.351 3.222 11.253 7.5l-3.899 4.25a.74.74 0 0 0-.196.5c0 .206.086.411.228.559a.783.783 0 0 0 1.086-.059L12.803 8a.733.733 0 0 0 0-1L8.472 2.25c-.283-.308-.741-.335-1.086-.058-.291.275-.317.752-.035 1.03M6.704 8a.733.733 0 0 0 0-1L2.343 2.25a.783.783 0 0 0-1.087-.059c-.317.276-.343.753-.06 1.03L5.097 7.5 1.2 11.75a.74.74 0 0 0-.197.5c0 .206.087.411.228.559a.783.783 0 0 0 1.086-.059z"})}),L=(o={})=>e.jsx("svg",{fill:"currentColor","aria-label":"angle_left",viewBox:"0 0 14 14",width:"1em",height:"1em",...o,children:e.jsx("path",{d:"m8.699 12.766-4.493-4.75a.746.746 0 0 1 0-1.031l4.493-4.75a.757.757 0 0 1 1.065-.03.747.747 0 0 1 .03 1.06L5.761 7.5l4.031 4.235a.747.747 0 0 1-.03 1.06.76.76 0 0 1-1.064-.029"})}),S=(o={})=>e.jsx("svg",{fill:"currentColor","aria-label":"angle_right",viewBox:"0 0 14 14",width:"1em",height:"1em",...o,children:e.jsx("path",{d:"m5.301 2.234 4.493 4.75a.746.746 0 0 1 0 1.032l-4.493 4.75a.757.757 0 0 1-1.065.029.747.747 0 0 1-.03-1.061l4.032-4.235-4.031-4.235a.745.745 0 0 1 .03-1.059.757.757 0 0 1 1.064.03"})}),I=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",width:"1em",height:"1em",...o,children:e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.529 5.529c.26-.26.682-.26.942 0L16 15.057l9.529-9.528a.667.667 0 1 1 .942.942L16.943 16l9.528 9.529a.667.667 0 1 1-.943.942L16 16.943 6.47 26.47a.667.667 0 0 1-.942-.942L15.057 16 5.53 6.471a.667.667 0 0 1 0-.942",clipRule:"evenodd"})}),_=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 400 400",width:"1em",height:"1em",...o,children:[e.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:".9",strokeWidth:"16",d:"M35 262c125.529-121.062 293.006-54.715 326-46.482"}),e.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:".9",strokeWidth:"16",d:"M343.69 143Q361 213.933 361 216.177c0 2.244-33.512 17.953-49 41.823"})]}),C=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:[e.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M3 15c0 2.828 0 4.243.879 5.121C4.757 21 6.172 21 9 21h6c2.828 0 4.243 0 5.121-.879C21 19.243 21 17.828 21 15",opacity:".5"}),e.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M12 3v13m0 0 4-4.375M12 16l-4-4.375"})]}),y=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",width:"1em",height:"1em",...o,children:e.jsx("path",{fill:"currentColor",fillOpacity:".88",d:"M7.387 4.052a.75.75 0 0 0 0 1.06L12.273 10l-4.886 4.886a.75.75 0 0 0 1.06 1.06l5.417-5.416a.75.75 0 0 0 0-1.06L8.447 4.051a.75.75 0 0 0-1.06 0"})}),N=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m10.667 6.134-.502-.355A4.24 4.24 0 0 0 7.715 5h-.612c-.405 0-.813.025-1.194.16-2.383.846-4.022 3.935-3.903 10.943.024 1.412.354 2.972 1.628 3.581A3.2 3.2 0 0 0 5.027 20a2.74 2.74 0 0 0 1.53-.437c.41-.268.77-.616 1.13-.964.444-.43.888-.86 1.424-1.138a4.1 4.1 0 0 1 1.89-.461H13c.658 0 1.306.158 1.89.46.536.279.98.709 1.425 1.139.36.348.72.696 1.128.964.39.256.895.437 1.531.437a3.2 3.2 0 0 0 1.393-.316c1.274-.609 1.604-2.17 1.628-3.581.119-7.008-1.52-10.097-3.903-10.942C17.71 5.025 17.3 5 16.897 5h-.612a4.24 4.24 0 0 0-2.45.78l-.502.354a2.31 2.31 0 0 1-2.666 0M16.75 9a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-9.25.25a.75.75 0 0 1 .75.75v.75H9a.75.75 0 0 1 0 1.5h-.75V13a.75.75 0 0 1-1.5 0v-.75H6a.75.75 0 0 1 0-1.5h.75V10a.75.75 0 0 1 .75-.75m11.5 2a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0m-3.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5m2.25.75a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0",clipRule:"evenodd"})}),B=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 2",width:"1em",height:"1em",...o,children:e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M.133 1C.133.521.521.133 1 .133h8a.867.867 0 1 1 0 1.734H1A.867.867 0 0 1 .133 1",clipRule:"evenodd"})}),W=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",className:"lucide lucide-circle-x-icon lucide-circle-x",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"m15 9-6 6M9 9l6 6"})]}),A=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",width:"1em",height:"1em",...o,children:[e.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.667",d:"M4.167 9.287a5.12 5.12 0 1 1 10.24-.001 5.12 5.12 0 0 1-10.24.001",className:"stroke",clipRule:"evenodd"}),e.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.667",d:"m12.908 12.908 2.926 2.926",className:"stroke"})]}),b=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",width:"1em",height:"1em",...o,children:[e.jsx("path",{fill:"currentColor",d:"m18.776 17.89 7.494 7.495a.667.667 0 1 1-.943.943l-7.494-7.495z"}),e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.333 20a6.667 6.667 0 1 0 0-13.333 6.667 6.667 0 0 0 0 13.333m0 1.333a8 8 0 1 0 0-16 8 8 0 0 0 0 16",clipRule:"evenodd"})]}),D=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em",...o,children:e.jsx("path",{fill:"currentColor",d:"M2.909 5.576a.6.6 0 0 1 .848 0L8 9.818l4.242-4.242a.6.6 0 0 1 .849.848l-4.667 4.667a.6.6 0 0 1-.848 0L2.909 6.424a.6.6 0 0 1 0-.848"})}),V=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 12",width:"1em",height:"1em",...o,children:[e.jsx("path",{fill:"currentColor",d:"M5.707 11.293a1 1 0 0 1-1.414 0L1.28 8.28A.75.75 0 0 1 1.81 7h6.38a.75.75 0 0 1 .53 1.28z",className:"inactive"}),e.jsx("path",{fill:"currentColor",fillOpacity:".16",d:"M4.293.707a1 1 0 0 1 1.414 0L8.72 3.72A.75.75 0 0 1 8.19 5H1.81a.75.75 0 0 1-.53-1.28z",className:"active"})]}),z=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 12",width:"1em",height:"1em",...o,children:e.jsx("path",{fill:"currentColor",fillOpacity:".16",d:"M5.707.707a1 1 0 0 0-1.414 0L1.28 3.72A.75.75 0 0 0 1.81 5h6.38a.75.75 0 0 0 .53-1.28zM4.293 11.293a1 1 0 0 0 1.414 0L8.72 8.28A.75.75 0 0 0 8.19 7H1.81a.75.75 0 0 0-.53 1.28z",className:"inactive"})}),O=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 12",width:"1em",height:"1em",...o,children:[e.jsx("path",{fill:"currentColor",fillOpacity:".16",d:"M5.707 11.293a1 1 0 0 1-1.414 0L1.28 8.28A.75.75 0 0 1 1.81 7h6.38a.75.75 0 0 1 .53 1.28z",className:"active"}),e.jsx("path",{fill:"currentColor",d:"M4.293.707a1 1 0 0 1 1.414 0L8.72 3.72A.75.75 0 0 1 8.19 5H1.81a.75.75 0 0 1-.53-1.28z",className:"inactive"})]}),H=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"1em",height:"1em",...o,children:e.jsx("path",{d:"M5.317 2.367c1.105-2.212 4.26-2.212 5.366 0L16 13H0z"})}),P=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512",width:"1em",height:"1em",...o,children:e.jsx("path",{d:"M207.029 381.476 12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0"})}),R=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 320 512",width:"1em",height:"1em",...o,children:e.jsx("path",{d:"M34.52 239.03 228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94"})}),U=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 320 512",width:"1em",height:"1em",...o,children:e.jsx("path",{d:"M285.476 272.971 91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941"})}),E=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512",width:"1em",height:"1em",...o,children:e.jsx("path",{d:"m240.971 130.524 194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001"})}),q=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-image-down-icon lucide-image-down",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:[e.jsx("path",{d:"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21"}),e.jsx("path",{d:"m14 19 3 3v-5.5M17 22l3-3"}),e.jsx("circle",{cx:"9",cy:"9",r:"2"})]}),T=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-image-up-icon lucide-image-up",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:[e.jsx("path",{d:"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21"}),e.jsx("path",{d:"m14 19.5 3-3 3 3M17 22v-5.5"}),e.jsx("circle",{cx:"9",cy:"9",r:"2"})]}),Z=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 18 12",width:"1em",height:"1em",...o,children:e.jsx("path",{stroke:"currentColor",strokeWidth:"2",d:"M15.86 1.999 9 8.859l-6.86-6.86"})}),G=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 18 12",width:"1em",height:"1em",...o,children:e.jsx("path",{stroke:"currentColor",strokeWidth:"2",d:"m2.139 10.002 6.86-6.86 6.86 6.86"})}),K=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-tag-icon lucide-tag",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:[e.jsx("path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z"}),e.jsx("circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor"})]}),Q=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-satellite-dish-icon lucide-satellite-dish",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:e.jsx("path",{d:"M4 10a7.31 7.31 0 0 0 10 10ZM9 15l3-3M17 13a6 6 0 0 0-6-6M21 13A10 10 0 0 0 11 3"})}),F=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-locate-fixed-icon lucide-locate-fixed",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:[e.jsx("path",{d:"M2 12h3M19 12h3M12 2v3M12 19v3"}),e.jsx("circle",{cx:"12",cy:"12",r:"7"}),e.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),J=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-map-pin-off-icon lucide-map-pin-off",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:[e.jsx("path",{d:"M12.75 7.09a3 3 0 0 1 2.16 2.16M17.072 17.072c-1.634 2.17-3.527 3.912-4.471 4.727a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 1.432-4.568M2 2l20 20"}),e.jsx("path",{d:"M8.475 2.818A8 8 0 0 1 20 10c0 1.183-.31 2.377-.81 3.533M9.13 9.13a3 3 0 0 0 3.74 3.74"})]}),X=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-map-pin-plus-icon lucide-map-pin-plus",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:[e.jsx("path",{d:"M19.914 11.105A7 7 0 0 0 20 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 32 32 0 0 0 .824-.738"}),e.jsx("circle",{cx:"12",cy:"10",r:"3"}),e.jsx("path",{d:"M16 18h6M19 15v6"})]}),Y=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-map-pin-icon lucide-map-pin",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:[e.jsx("path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"}),e.jsx("circle",{cx:"12",cy:"10",r:"3"})]}),$=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-map-plus-icon lucide-map-plus",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:e.jsx("path",{d:"m11 19-1.106-.552a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0l4.212 2.106a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619V12M15 5.764V12M18 15v6M21 18h-6M9 3.236v15"})}),ee=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-map-icon lucide-map",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:e.jsx("path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0zM15 5.764v15M9 3.236v15"})}),oe=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-git-pull-request-arrow-icon lucide-git-pull-request-arrow",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:[e.jsx("circle",{cx:"5",cy:"6",r:"3"}),e.jsx("path",{d:"M5 9v12"}),e.jsx("circle",{cx:"19",cy:"18",r:"3"}),e.jsx("path",{d:"m15 9-3-3 3-3"}),e.jsx("path",{d:"M12 6h5a2 2 0 0 1 2 2v7"})]}),te=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-play-icon lucide-play",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:e.jsx("path",{d:"m6 3 14 9-14 9z"})}),ie=(o={})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-map-pin-plus-inside-icon lucide-map-pin-plus-inside",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:e.jsx("path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0M12 7v6M9 10h6"})}),re=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-rotate3d-icon lucide-rotate-3d",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:[e.jsx("path",{d:"M16.466 7.5C15.643 4.237 13.952 2 12 2 9.239 2 7 6.477 7 12s2.239 10 5 10q.514-.002 1-.2M15.194 13.707l3.814 1.86-1.86 3.814"}),e.jsx("path",{d:"M19 15.57c-1.804.885-4.274 1.43-7 1.43-5.523 0-10-2.239-10-5s4.477-5 10-5c4.838 0 8.873 1.718 9.8 4"})]}),se=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-save-icon lucide-save",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:[e.jsx("path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"}),e.jsx("path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7M7 3v4a1 1 0 0 0 1 1h7"})]}),ne=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-shredder-icon lucide-shredder",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:[e.jsx("path",{d:"M10 22v-5M14 19v-2M14 2v4a2 2 0 0 0 2 2h4M18 20v-3M2 13h20"}),e.jsx("path",{d:"M20 13V7l-5-5H6a2 2 0 0 0-2 2v9M6 20v-3"})]}),le=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"1em",height:"1em",...o,children:[e.jsx("path",{d:"M12 5v15l-6 7 6-7h15",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:"4",strokeDasharray:"none",strokeOpacity:"1"}),e.jsx("path",{fill:"currentColor",d:"M11.97 4.985v15.03H27V4.985Z",fillOpacity:"0",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:"4",strokeDasharray:"none",strokeOpacity:"1"}),e.jsx("path",{fill:"currentColor",d:"m12 5-6 7v15l6-7z",fillOpacity:"0",stroke:"none",strokeWidth:"1px",strokeLinecap:"butt",strokeLinejoin:"miter",strokeOpacity:"1"}),e.jsx("path",{d:"m12 5-6 7h15l6-7Z",fill:"currentColor",fillOpacity:"1",stroke:"none",strokeWidth:"1px",strokeLinecap:"butt",strokeLinejoin:"miter",strokeOpacity:"1"}),e.jsx("path",{d:"m27 5-6 7v15l6-7z",fill:"currentColor",fillOpacity:".3137255",stroke:"none",strokeWidth:"1px",strokeLinecap:"butt",strokeLinejoin:"miter",strokeOpacity:"1"}),e.jsx("path",{d:"M5.985 11.97V27h15.03V11.97Z",fill:"currentColor",fillOpacity:".31372549",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:"4",strokeDasharray:"none",strokeOpacity:"1"}),e.jsx("path",{d:"M6 27V12l6-7h15v15l-6 7z",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:"4",strokeDasharray:"none",strokeOpacity:"1"}),e.jsx("path",{d:"M6 12h15l6-7M21 12v15",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:"4",strokeDasharray:"none",strokeOpacity:"1"})]}),ce=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-git-unlink-arrows",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:[e.jsx("circle",{cx:"5",cy:"6",r:"3"}),e.jsx("circle",{cx:"19",cy:"18",r:"3"}),e.jsx("path",{d:"M12 6h5a2 2 0 0 1 2 2v7"}),e.jsx("path",{d:"m15 9-3-3 3-3M12 18H7a2 2 0 0 1-2-2V9"}),e.jsx("path",{d:"m9 15 3 3-3 3M14 10l-4 4M10 10l4 4"})]}),de=(o={})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-video-icon lucide-video",viewBox:"0 0 24 24",width:"1em",height:"1em",...o,children:[e.jsx("path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"}),e.jsx("rect",{width:"14",height:"12",x:"2",y:"6",rx:"2"})]});t.__docgenInfo={description:"",methods:[],displayName:"SvgBiLink"};i.__docgenInfo={description:"",methods:[],displayName:"SvgBot"};r.__docgenInfo={description:"",methods:[],displayName:"SvgBox"};s.__docgenInfo={description:"",methods:[],displayName:"SvgCircleDashed"};n.__docgenInfo={description:"",methods:[],displayName:"SvgCircleStop"};l.__docgenInfo={description:"",methods:[],displayName:"SvgDashedMousePointer"};c.__docgenInfo={description:"",methods:[],displayName:"SvgDialog"};d.__docgenInfo={description:"",methods:[],displayName:"SvgDirectionalPad"};a.__docgenInfo={description:"",methods:[],displayName:"SvgEraser"};h.__docgenInfo={description:"",methods:[],displayName:"SvgGrid"};g.__docgenInfo={description:"",methods:[],displayName:"SvgIcoAccordion"};m.__docgenInfo={description:"",methods:[],displayName:"SvgIcoBadgeAlert"};p.__docgenInfo={description:"",methods:[],displayName:"SvgIcoBadgeCheck"};v.__docgenInfo={description:"",methods:[],displayName:"SvgIcoBadgeInfo"};w.__docgenInfo={description:"",methods:[],displayName:"SvgIcoCalendar"};u.__docgenInfo={description:"",methods:[],displayName:"SvgIcoCarouselNext"};x.__docgenInfo={description:"",methods:[],displayName:"SvgIcoCarouselPrev"};k.__docgenInfo={description:"",methods:[],displayName:"SvgIcoChargeVolt"};j.__docgenInfo={description:"",methods:[],displayName:"SvgIcoCheck"};f.__docgenInfo={description:"",methods:[],displayName:"SvgIcoChevronDoubleLeft"};M.__docgenInfo={description:"",methods:[],displayName:"SvgIcoChevronDoubleRight"};L.__docgenInfo={description:"",methods:[],displayName:"SvgIcoChevronLeft2"};S.__docgenInfo={description:"",methods:[],displayName:"SvgIcoChevronRight2"};I.__docgenInfo={description:"",methods:[],displayName:"SvgIcoClose"};_.__docgenInfo={description:"",methods:[],displayName:"SvgIcoCurvedChevron"};C.__docgenInfo={description:"",methods:[],displayName:"SvgIcoDownload"};y.__docgenInfo={description:"",methods:[],displayName:"SvgIcoEllipsisChevron"};N.__docgenInfo={description:"",methods:[],displayName:"SvgIcoGamePad"};B.__docgenInfo={description:"",methods:[],displayName:"SvgIcoIndeterminate"};W.__docgenInfo={description:"",methods:[],displayName:"SvgIcoInputReset"};A.__docgenInfo={description:"",methods:[],displayName:"SvgIcoSearchDefault"};b.__docgenInfo={description:"",methods:[],displayName:"SvgIcoSearch"};D.__docgenInfo={description:"",methods:[],displayName:"SvgIcoSelectboxArrow"};V.__docgenInfo={description:"",methods:[],displayName:"SvgIcoSortDownElement"};z.__docgenInfo={description:"",methods:[],displayName:"SvgIcoSortNormalElement"};O.__docgenInfo={description:"",methods:[],displayName:"SvgIcoSortUpElement"};H.__docgenInfo={description:"",methods:[],displayName:"SvgIcoTooltipArrow"};P.__docgenInfo={description:"",methods:[],displayName:"SvgIcoChevronDown"};R.__docgenInfo={description:"",methods:[],displayName:"SvgIcoChevronLeft"};U.__docgenInfo={description:"",methods:[],displayName:"SvgIcoChevronRight"};E.__docgenInfo={description:"",methods:[],displayName:"SvgIcoChevronUp"};q.__docgenInfo={description:"",methods:[],displayName:"SvgImageDown"};T.__docgenInfo={description:"",methods:[],displayName:"SvgImageUp"};Z.__docgenInfo={description:"",methods:[],displayName:"SvgKeyboardArrowDown2"};G.__docgenInfo={description:"",methods:[],displayName:"SvgKeyboardArrowUp2"};K.__docgenInfo={description:"",methods:[],displayName:"SvgLabel"};Q.__docgenInfo={description:"",methods:[],displayName:"SvgLidar"};F.__docgenInfo={description:"",methods:[],displayName:"SvgLocation"};J.__docgenInfo={description:"",methods:[],displayName:"SvgMapPinOff"};X.__docgenInfo={description:"",methods:[],displayName:"SvgMapPinPlus"};Y.__docgenInfo={description:"",methods:[],displayName:"SvgMapPin"};$.__docgenInfo={description:"",methods:[],displayName:"SvgMapPlus"};ee.__docgenInfo={description:"",methods:[],displayName:"SvgMap"};oe.__docgenInfo={description:"",methods:[],displayName:"SvgMonoLink"};te.__docgenInfo={description:"",methods:[],displayName:"SvgPlay"};ie.__docgenInfo={description:"",methods:[],displayName:"SvgQuickAnno"};re.__docgenInfo={description:"",methods:[],displayName:"SvgRotate3D"};se.__docgenInfo={description:"",methods:[],displayName:"SvgSave"};ne.__docgenInfo={description:"",methods:[],displayName:"SvgSocketData"};le.__docgenInfo={description:"",methods:[],displayName:"SvgTopview"};ce.__docgenInfo={description:"",methods:[],displayName:"SvgUnlink"};de.__docgenInfo={description:"",methods:[],displayName:"SvgVideo"};const he=Object.freeze(Object.defineProperty({__proto__:null,SvgBiLink:t,SvgBot:i,SvgBox:r,SvgCircleDashed:s,SvgCircleStop:n,SvgDashedMousePointer:l,SvgDialog:c,SvgDirectionalPad:d,SvgEraser:a,SvgGrid:h,SvgIcoAccordion:g,SvgIcoBadgeAlert:m,SvgIcoBadgeCheck:p,SvgIcoBadgeInfo:v,SvgIcoCalendar:w,SvgIcoCarouselNext:u,SvgIcoCarouselPrev:x,SvgIcoChargeVolt:k,SvgIcoCheck:j,SvgIcoChevronDoubleLeft:f,SvgIcoChevronDoubleRight:M,SvgIcoChevronDown:P,SvgIcoChevronLeft:R,SvgIcoChevronLeft2:L,SvgIcoChevronRight:U,SvgIcoChevronRight2:S,SvgIcoChevronUp:E,SvgIcoClose:I,SvgIcoCurvedChevron:_,SvgIcoDownload:C,SvgIcoEllipsisChevron:y,SvgIcoGamePad:N,SvgIcoIndeterminate:B,SvgIcoInputReset:W,SvgIcoSearch:b,SvgIcoSearchDefault:A,SvgIcoSelectboxArrow:D,SvgIcoSortDownElement:V,SvgIcoSortNormalElement:z,SvgIcoSortUpElement:O,SvgIcoTooltipArrow:H,SvgImageDown:q,SvgImageUp:T,SvgKeyboardArrowDown2:Z,SvgKeyboardArrowUp2:G,SvgLabel:K,SvgLidar:Q,SvgLocation:F,SvgMap:ee,SvgMapPin:Y,SvgMapPinOff:J,SvgMapPinPlus:X,SvgMapPlus:$,SvgMonoLink:oe,SvgPlay:te,SvgQuickAnno:ie,SvgRotate3D:re,SvgSave:se,SvgSocketData:ne,SvgTopview:le,SvgUnlink:ce,SvgVideo:de},Symbol.toStringTag,{value:"Module"}));export{he as I,x as S,u as a,B as b,j as c,G as d,Z as e,H as f,I as g,b as h,g as i,A as j,W as k,f as l,L as m,S as n,M as o};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var M={exports:{}},kn=M.exports,Be;function Sn(){return Be||(Be=1,(function(n,a){(function(o,i){i(a)})(kn,(function(o){function i(e){return e.text!==void 0&&e.text!==""?`'${e.type}' with value '${e.text}'`:`'${e.type}'`}class p extends Error{constructor(t){super(`No parslet found for token: ${i(t)}`),this.token=t,Object.setPrototypeOf(this,p.prototype)}getToken(){return this.token}}class u extends Error{constructor(t){super(`The parsing ended early. The next token was: ${i(t)}`),this.token=t,Object.setPrototypeOf(this,u.prototype)}getToken(){return this.token}}class d extends Error{constructor(t,r){let s=`Unexpected type: '${t.type}'.`;r!==void 0&&(s+=` Message: ${r}`),super(s),Object.setPrototypeOf(this,d.prototype)}}function f(e){return t=>t.startsWith(e)?{type:e,text:e}:null}function h(e){let t=0,r;const s=e[0];let c=!1;if(s!=="'"&&s!=='"')return null;for(;t<e.length;){if(t++,r=e[t],!c&&r===s){t++;break}c=!c&&r==="\\"}if(r!==s)throw new Error("Unterminated String");return e.slice(0,t)}const v=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),N=new RegExp("[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u");function oe(e){let t=e[0];if(!v.test(t))return null;let r=1;do{if(t=e[r],!N.test(t))break;r++}while(r<e.length);return e.slice(0,r)}const $=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function X(e){var t,r;return(r=(t=$.exec(e))===null||t===void 0?void 0:t[0])!==null&&r!==void 0?r:null}const Q=e=>{const t=oe(e);return t==null?null:{type:"Identifier",text:t}};function b(e){return t=>{if(!t.startsWith(e))return null;const r=t[e.length];return r!==void 0&&N.test(r)?null:{type:e,text:e}}}const se=e=>{const t=h(e);return t==null?null:{type:"StringValue",text:t}},Ut=e=>e.length>0?null:{type:"EOF",text:""},$t=e=>{const t=X(e);return t===null?null:{type:"Number",text:t}},Kt=[Ut,f("=>"),f("("),f(")"),f("{"),f("}"),f("["),f("]"),f("|"),f("&"),f("<"),f(">"),f(","),f(";"),f("*"),f("?"),f("!"),f("="),f(":"),f("..."),f("."),f("#"),f("~"),f("/"),f("@"),b("undefined"),b("null"),b("function"),b("this"),b("new"),b("module"),b("event"),b("extends"),b("external"),b("infer"),b("typeof"),b("keyof"),b("readonly"),b("import"),b("is"),b("in"),b("asserts"),$t,Q,se],Dt=/^\s*\n\s*/;class K{static create(t){const r=this.read(t);t=r.text;const s=this.read(t);return t=s.text,new K(t,void 0,r.token,s.token)}constructor(t,r,s,c){this.text="",this.text=t,this.previous=r,this.current=s,this.next=c}static read(t,r=!1){r=r||Dt.test(t),t=t.trim();for(const s of Kt){const c=s(t);if(c!==null){const y=Object.assign(Object.assign({},c),{startOfLine:r});return t=t.slice(y.text.length),{text:t,token:y}}}throw new Error("Unexpected Token "+t)}advance(){const t=K.read(this.text);return new K(t.text,this.current,this.next,t.token)}}function P(e){if(e===void 0)throw new Error("Unexpected undefined");if(e.type==="JsdocTypeKeyValue"||e.type==="JsdocTypeParameterList"||e.type==="JsdocTypeProperty"||e.type==="JsdocTypeReadonlyProperty"||e.type==="JsdocTypeObjectField"||e.type==="JsdocTypeJsdocObjectField"||e.type==="JsdocTypeIndexSignature"||e.type==="JsdocTypeMappedType"||e.type==="JsdocTypeTypeParameter")throw new d(e);return e}function ie(e){return e.type==="JsdocTypeKeyValue"?H(e):P(e)}function qt(e){return e.type==="JsdocTypeName"?e:H(e)}function H(e){if(e.type!=="JsdocTypeKeyValue")throw new d(e);return e}function Bt(e){var t;if(e.type==="JsdocTypeVariadic"){if(((t=e.element)===null||t===void 0?void 0:t.type)==="JsdocTypeName")return e;throw new d(e)}if(e.type!=="JsdocTypeNumber"&&e.type!=="JsdocTypeName")throw new d(e);return e}function Mt(e){if(e.type==="JsdocTypeTuple"||e.type==="JsdocTypeGeneric"&&e.meta.brackets==="square")return e;throw new d(e)}function ce(e){return e.type==="JsdocTypeIndexSignature"||e.type==="JsdocTypeMappedType"}var m;(function(e){e[e.ALL=0]="ALL",e[e.PARAMETER_LIST=1]="PARAMETER_LIST",e[e.OBJECT=2]="OBJECT",e[e.KEY_VALUE=3]="KEY_VALUE",e[e.INDEX_BRACKETS=4]="INDEX_BRACKETS",e[e.UNION=5]="UNION",e[e.INTERSECTION=6]="INTERSECTION",e[e.PREFIX=7]="PREFIX",e[e.INFIX=8]="INFIX",e[e.TUPLE=9]="TUPLE",e[e.SYMBOL=10]="SYMBOL",e[e.OPTIONAL=11]="OPTIONAL",e[e.NULLABLE=12]="NULLABLE",e[e.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",e[e.FUNCTION=14]="FUNCTION",e[e.ARROW=15]="ARROW",e[e.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",e[e.GENERIC=17]="GENERIC",e[e.NAME_PATH=18]="NAME_PATH",e[e.PARENTHESIS=19]="PARENTHESIS",e[e.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(m||(m={}));class V{constructor(t,r,s){this.grammar=t,typeof r=="string"?this._lexer=K.create(r):this._lexer=r,this.baseParser=s}get lexer(){return this._lexer}parse(){const t=this.parseType(m.ALL);if(this.lexer.current.type!=="EOF")throw new u(this.lexer.current);return t}parseType(t){return P(this.parseIntermediateType(t))}parseIntermediateType(t){const r=this.tryParslets(null,t);if(r===null)throw new p(this.lexer.current);return this.parseInfixIntermediateType(r,t)}parseInfixIntermediateType(t,r){let s=this.tryParslets(t,r);for(;s!==null;)t=s,s=this.tryParslets(t,r);return t}tryParslets(t,r){for(const s of this.grammar){const c=s(this,r,t);if(c!==null)return c}return null}consume(t){return Array.isArray(t)||(t=[t]),t.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(t){this._lexer=t.lexer}}function Ie(e){return e==="}"||e==="EOF"||e==="|"||e===","||e===")"||e===">"}const le=(e,t,r)=>{const s=e.lexer.current.type,c=e.lexer.next.type;return r==null&&s==="?"&&!Ie(c)||r!=null&&s==="?"?(e.consume("?"),r==null?{type:"JsdocTypeNullable",element:e.parseType(m.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:P(r),meta:{position:"suffix"}}):null};function J(e){const t=(r,s,c)=>{const y=r.lexer.current.type,T=r.lexer.next.type;if(c===null){if("parsePrefix"in e&&e.accept(y,T))return e.parsePrefix(r)}else if("parseInfix"in e&&e.precedence>s&&e.accept(y,T))return e.parseInfix(r,c);return null};return Object.defineProperty(t,"name",{value:e.name}),t}const z=J({name:"optionalParslet",accept:e=>e==="=",precedence:m.OPTIONAL,parsePrefix:e=>(e.consume("="),{type:"JsdocTypeOptional",element:e.parseType(m.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(e,t)=>(e.consume("="),{type:"JsdocTypeOptional",element:P(t),meta:{position:"suffix"}})}),Z=J({name:"numberParslet",accept:e=>e==="Number",parsePrefix:e=>{const t=parseFloat(e.lexer.current.text);return e.consume("Number"),{type:"JsdocTypeNumber",value:t}}}),Ct=J({name:"parenthesisParslet",accept:e=>e==="(",parsePrefix:e=>{if(e.consume("("),e.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};const t=e.parseIntermediateType(m.ALL);if(!e.consume(")"))throw new Error("Unterminated parenthesis");return t.type==="JsdocTypeParameterList"?t:t.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[t]}:{type:"JsdocTypeParenthesis",element:P(t)}}}),Yt=J({name:"specialTypesParslet",accept:(e,t)=>e==="?"&&Ie(t)||e==="null"||e==="undefined"||e==="*",parsePrefix:e=>{if(e.consume("null"))return{type:"JsdocTypeNull"};if(e.consume("undefined"))return{type:"JsdocTypeUndefined"};if(e.consume("*"))return{type:"JsdocTypeAny"};if(e.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+e.lexer.current.text)}}),Gt=J({name:"notNullableParslet",accept:e=>e==="!",precedence:m.NULLABLE,parsePrefix:e=>(e.consume("!"),{type:"JsdocTypeNotNullable",element:e.parseType(m.NULLABLE),meta:{position:"prefix"}}),parseInfix:(e,t)=>(e.consume("!"),{type:"JsdocTypeNotNullable",element:P(t),meta:{position:"suffix"}})});function Wt({allowTrailingComma:e}){return J({name:"parameterListParslet",accept:t=>t===",",precedence:m.PARAMETER_LIST,parseInfix:(t,r)=>{const s=[ie(r)];t.consume(",");do try{const c=t.parseIntermediateType(m.PARAMETER_LIST);s.push(ie(c))}catch(c){if(c instanceof p)break;throw c}while(t.consume(","));if(s.length>0&&s.slice(0,-1).some(c=>c.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:s}}})}const Xt=J({name:"genericParslet",accept:(e,t)=>e==="<"||e==="."&&t==="<",precedence:m.GENERIC,parseInfix:(e,t)=>{const r=e.consume(".");e.consume("<");const s=[];let c=!1;if(e.consume("infer")){c=!0;const y=e.parseIntermediateType(m.SYMBOL);if(y.type!=="JsdocTypeName")throw new d(y,"A typescript asserts always has to have a name on the left side.");s.push(y)}else do s.push(e.parseType(m.PARAMETER_LIST));while(e.consume(","));if(!e.consume(">"))throw new Error("Unterminated generic parameter list");return Object.assign(Object.assign({type:"JsdocTypeGeneric",left:P(t),elements:s},c?{infer:!0}:{}),{meta:{brackets:"angle",dot:r}})}}),Qt=J({name:"unionParslet",accept:e=>e==="|",precedence:m.UNION,parseInfix:(e,t)=>{e.consume("|");const r=[];do r.push(e.parseType(m.UNION));while(e.consume("|"));return{type:"JsdocTypeUnion",elements:[P(t),...r]}}}),pe=[le,z,Z,Ct,Yt,Gt,Wt({allowTrailingComma:!0}),Xt,Qt,z];function ee({allowSquareBracketsOnAnyType:e,allowJsdocNamePaths:t,pathGrammar:r}){return function(c,y,T){if(T==null||y>=m.NAME_PATH)return null;const g=c.lexer.current.type,k=c.lexer.next.type;if(!(g==="."&&k!=="<"||g==="["&&(e||T.type==="JsdocTypeName")||t&&(g==="~"||g==="#")))return null;let S,re=!1;c.consume(".")?S="property":c.consume("[")?(S="property-brackets",re=!0):c.consume("~")?S="inner":(c.consume("#"),S="instance");const De=r!==null?new V(r,c.lexer,c):c,O=De.parseIntermediateType(m.NAME_PATH);c.acceptLexerState(De);let B;switch(O.type){case"JsdocTypeName":B={type:"JsdocTypeProperty",value:O.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":B={type:"JsdocTypeProperty",value:O.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":B={type:"JsdocTypeProperty",value:O.value,meta:{quote:O.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(O.specialType==="event")B=O;else throw new d(O,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new d(O,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(re&&!c.consume("]")){const qe=c.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${qe.type}' with text '${qe.text}'`)}return{type:"JsdocTypeNamePath",left:P(T),right:B,pathType:S}}}function A({allowedAdditionalTokens:e}){return J({name:"nameParslet",accept:t=>t==="Identifier"||t==="this"||t==="new"||e.includes(t),parsePrefix:t=>{const{type:r,text:s}=t.lexer.current;return t.consume(r),{type:"JsdocTypeName",value:s}}})}const D=J({name:"stringValueParslet",accept:e=>e==="StringValue",parsePrefix:e=>{const t=e.lexer.current.text;return e.consume("StringValue"),{type:"JsdocTypeStringValue",value:t.slice(1,-1),meta:{quote:t[0]==="'"?"single":"double"}}}});function te({pathGrammar:e,allowedTypes:t}){return J({name:"specialNamePathParslet",accept:r=>t.includes(r),parsePrefix:r=>{const s=r.lexer.current.type;if(r.consume(s),!r.consume(":"))return{type:"JsdocTypeName",value:s};let c,y=r.lexer.current;if(r.consume("StringValue"))c={type:"JsdocTypeSpecialNamePath",value:y.text.slice(1,-1),specialType:s,meta:{quote:y.text[0]==="'"?"single":"double"}};else{let k="";const x=["Identifier","@","/"];for(;x.some(S=>r.consume(S));)k+=y.text,y=r.lexer.current;c={type:"JsdocTypeSpecialNamePath",value:k,specialType:s,meta:{quote:void 0}}}const T=new V(e,r.lexer,r),g=T.parseInfixIntermediateType(c,m.ALL);return r.acceptLexerState(T),P(g)}})}const Re=[A({allowedAdditionalTokens:["external","module"]}),D,Z,ee({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],U=[...Re,te({allowedTypes:["event"],pathGrammar:Re})];function ue(e){let t;if(e.type==="JsdocTypeParameterList")t=e.elements;else if(e.type==="JsdocTypeParenthesis")t=[e.element];else throw new d(e);return t.map(r=>ie(r))}function Ht(e){const t=ue(e);if(t.some(r=>r.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return t}function ye({allowNamedParameters:e,allowNoReturnType:t,allowWithoutParenthesis:r,allowNewAsFunctionKeyword:s}){return J({name:"functionParslet",accept:(c,y)=>c==="function"||s&&c==="new"&&y==="(",parsePrefix:c=>{const y=c.consume("new");c.consume("function");const T=c.lexer.current.type==="(";if(!T){if(!r)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let g={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:y,parenthesis:T};const k=c.parseIntermediateType(m.FUNCTION);if(e===void 0)g.parameters=Ht(k);else{if(y&&k.type==="JsdocTypeFunction"&&k.arrow)return g=k,g.constructor=!0,g;g.parameters=ue(k);for(const x of g.parameters)if(x.type==="JsdocTypeKeyValue"&&!e.includes(x.key))throw new Error(`only allowed named parameters are ${e.join(", ")} but got ${x.type}`)}if(c.consume(":"))g.returnType=c.parseType(m.PREFIX);else if(!t)throw new Error("function is missing return type");return g}})}function de({allowPostfix:e,allowEnclosingBrackets:t}){return J({name:"variadicParslet",accept:r=>r==="...",precedence:m.PREFIX,parsePrefix:r=>{r.consume("...");const s=t&&r.consume("[");try{const c=r.parseType(m.PREFIX);if(s&&!r.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:P(c),meta:{position:"prefix",squareBrackets:s}}}catch(c){if(c instanceof p){if(s)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw c}},parseInfix:e?(r,s)=>(r.consume("..."),{type:"JsdocTypeVariadic",element:P(s),meta:{position:"suffix",squareBrackets:!1}}):void 0})}const _e=J({name:"symbolParslet",accept:e=>e==="(",precedence:m.SYMBOL,parseInfix:(e,t)=>{if(t.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");e.consume("(");const r={type:"JsdocTypeSymbol",value:t.value};if(!e.consume(")")){const s=e.parseIntermediateType(m.SYMBOL);if(r.element=Bt(s),!e.consume(")"))throw new Error("Symbol does not end after value")}return r}}),Fe=J({name:"arrayBracketsParslet",precedence:m.ARRAY_BRACKETS,accept:(e,t)=>e==="["&&t==="]",parseInfix:(e,t)=>(e.consume("["),e.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[P(t)],meta:{brackets:"square",dot:!1}})});function me({objectFieldGrammar:e,allowKeyTypes:t}){return J({name:"objectParslet",accept:r=>r==="{",parsePrefix:r=>{r.consume("{");const s={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!r.consume("}")){let c;const y=new V(e,r.lexer,r);for(;;){y.acceptLexerState(r);let T=y.parseIntermediateType(m.OBJECT);r.acceptLexerState(y),T===void 0&&t&&(T=r.parseIntermediateType(m.OBJECT));let g=!1;if(T.type==="JsdocTypeNullable"&&(g=!0,T=T.element),T.type==="JsdocTypeNumber"||T.type==="JsdocTypeName"||T.type==="JsdocTypeStringValue"){let x;T.type==="JsdocTypeStringValue"&&(x=T.meta.quote),s.elements.push({type:"JsdocTypeObjectField",key:T.value.toString(),right:void 0,optional:g,readonly:!1,meta:{quote:x}})}else if(T.type==="JsdocTypeObjectField"||T.type==="JsdocTypeJsdocObjectField")s.elements.push(T);else throw new d(T);if(r.lexer.current.startOfLine)c="linebreak",r.consume(",")||r.consume(";");else if(r.consume(","))c="comma";else if(r.consume(";"))c="semicolon";else break;if(r.lexer.current.type==="}")break}if(s.meta.separator=c??"comma",c==="linebreak"&&(s.meta.propertyIndent=" "),!r.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return s}})}function fe({allowSquaredProperties:e,allowKeyTypes:t,allowReadonly:r,allowOptional:s}){return J({name:"objectFieldParslet",precedence:m.KEY_VALUE,accept:c=>c===":",parseInfix:(c,y)=>{var T;let g=!1,k=!1;s&&y.type==="JsdocTypeNullable"&&(g=!0,y=y.element),r&&y.type==="JsdocTypeReadonlyProperty"&&(k=!0,y=y.element);const x=(T=c.baseParser)!==null&&T!==void 0?T:c;if(x.acceptLexerState(c),y.type==="JsdocTypeNumber"||y.type==="JsdocTypeName"||y.type==="JsdocTypeStringValue"||ce(y)){if(ce(y)&&!e)throw new d(y);x.consume(":");let S;y.type==="JsdocTypeStringValue"&&(S=y.meta.quote);const re=x.parseType(m.KEY_VALUE);return c.acceptLexerState(x),{type:"JsdocTypeObjectField",key:ce(y)?y:y.value.toString(),right:re,optional:g,readonly:k,meta:{quote:S}}}else{if(!t)throw new d(y);x.consume(":");const S=x.parseType(m.KEY_VALUE);return c.acceptLexerState(x),{type:"JsdocTypeJsdocObjectField",left:P(y),right:S}}}})}function Te({allowOptional:e,allowVariadic:t}){return J({name:"keyValueParslet",precedence:m.KEY_VALUE,accept:r=>r===":",parseInfix:(r,s)=>{let c=!1,y=!1;if(e&&s.type==="JsdocTypeNullable"&&(c=!0,s=s.element),t&&s.type==="JsdocTypeVariadic"&&s.element!==void 0&&(y=!0,s=s.element),s.type!=="JsdocTypeName")throw new d(s);r.consume(":");const T=r.parseType(m.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:s.value,right:T,optional:c,variadic:y}}})}const Le=[...pe,ye({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),D,te({allowedTypes:["module","external","event"],pathGrammar:U}),de({allowEnclosingBrackets:!0,allowPostfix:!0}),A({allowedAdditionalTokens:["keyof"]}),_e,Fe,ee({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:U})],zt=[...Le,me({objectFieldGrammar:[A({allowedAdditionalTokens:["typeof","module","in"]}),fe({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...Le],allowKeyTypes:!0}),Te({allowOptional:!0,allowVariadic:!0})],je=J({name:"typeOfParslet",accept:e=>e==="typeof",parsePrefix:e=>(e.consume("typeof"),{type:"JsdocTypeTypeof",element:e.parseType(m.KEY_OF_TYPE_OF)})}),Zt=[A({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),le,z,D,Z,fe({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],en=[...pe,me({allowKeyTypes:!1,objectFieldGrammar:Zt}),A({allowedAdditionalTokens:["event","external","in"]}),je,ye({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),de({allowEnclosingBrackets:!1,allowPostfix:!1}),A({allowedAdditionalTokens:["keyof"]}),te({allowedTypes:["module"],pathGrammar:U}),ee({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:U}),Te({allowOptional:!1,allowVariadic:!1}),_e],tn=J({name:"assertsParslet",accept:e=>e==="asserts",parsePrefix:e=>{e.consume("asserts");const t=e.parseIntermediateType(m.SYMBOL);if(t.type!=="JsdocTypeName")throw new d(t,"A typescript asserts always has to have a name on the left side.");return e.consume("is")?{type:"JsdocTypeAsserts",left:t,right:P(e.parseIntermediateType(m.INFIX))}:{type:"JsdocTypeAssertsPlain",element:t}}});function nn({allowQuestionMark:e}){return J({name:"tupleParslet",accept:t=>t==="[",parsePrefix:t=>{t.consume("[");const r={type:"JsdocTypeTuple",elements:[]};if(t.consume("]"))return r;const s=t.parseIntermediateType(m.ALL);if(s.type==="JsdocTypeParameterList"?s.elements[0].type==="JsdocTypeKeyValue"?r.elements=s.elements.map(H):r.elements=s.elements.map(P):s.type==="JsdocTypeKeyValue"?r.elements=[H(s)]:r.elements=[P(s)],!t.consume("]"))throw new Error("Unterminated '['");if(r.elements.some(c=>c.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return r}})}const rn=J({name:"keyOfParslet",accept:e=>e==="keyof",parsePrefix:e=>(e.consume("keyof"),{type:"JsdocTypeKeyof",element:P(e.parseType(m.KEY_OF_TYPE_OF))})}),an=J({name:"importParslet",accept:e=>e==="import",parsePrefix:e=>{if(e.consume("import"),!e.consume("("))throw new Error("Missing parenthesis after import keyword");const t=e.parseType(m.PREFIX);if(t.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!e.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:t}}}),on=J({name:"readonlyPropertyParslet",accept:e=>e==="readonly",parsePrefix:e=>(e.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:e.parseIntermediateType(m.KEY_VALUE)})}),sn=J({name:"arrowFunctionParslet",precedence:m.ARROW,accept:e=>e==="=>",parseInfix:(e,t)=>(e.consume("=>"),{type:"JsdocTypeFunction",parameters:ue(t).map(qt),arrow:!0,constructor:!1,parenthesis:!0,returnType:e.parseType(m.OBJECT)})}),cn=J({name:"genericArrowFunctionParslet",accept:e=>e==="<",parsePrefix:e=>{const t=[];e.consume("<");do{let s,c=e.parseIntermediateType(m.SYMBOL);if(c.type==="JsdocTypeOptional"&&(c=c.element,s=e.parseType(m.SYMBOL)),c.type!=="JsdocTypeName")throw new d(c);let y;e.consume("extends")&&(y=e.parseType(m.SYMBOL),y.type==="JsdocTypeOptional"&&(y=y.element,s=e.parseType(m.SYMBOL)));const T={type:"JsdocTypeTypeParameter",name:c};if(y!==void 0&&(T.constraint=y),s!==void 0&&(T.defaultValue=s),t.push(T),e.consume(">"))break}while(e.consume(","));const r=e.parseIntermediateType(m.SYMBOL);return r.typeParameters=t,r}}),ln=J({name:"intersectionParslet",accept:e=>e==="&",precedence:m.INTERSECTION,parseInfix:(e,t)=>{e.consume("&");const r=[];do r.push(e.parseType(m.INTERSECTION));while(e.consume("&"));return{type:"JsdocTypeIntersection",elements:[P(t),...r]}}}),pn=J({name:"predicateParslet",precedence:m.INFIX,accept:e=>e==="is",parseInfix:(e,t)=>{if(t.type!=="JsdocTypeName")throw new d(t,"A typescript predicate always has to have a name on the left side.");return e.consume("is"),{type:"JsdocTypePredicate",left:t,right:P(e.parseIntermediateType(m.INFIX))}}}),un=J({name:"objectSquareBracketPropertyParslet",accept:e=>e==="[",parsePrefix:e=>{if(e.baseParser===void 0)throw new Error("Only allowed inside object grammar");e.consume("[");const t=e.lexer.current.text;e.consume("Identifier");let r;if(e.consume(":")){const s=e.baseParser;s.acceptLexerState(e),r={type:"JsdocTypeIndexSignature",key:t,right:s.parseType(m.INDEX_BRACKETS)},e.acceptLexerState(s)}else if(e.consume("in")){const s=e.baseParser;s.acceptLexerState(e),r={type:"JsdocTypeMappedType",key:t,right:s.parseType(m.ARRAY_BRACKETS)},e.acceptLexerState(s)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!e.consume("]"))throw new Error("Unterminated square brackets");return r}}),yn=J({name:"readonlyArrayParslet",accept:e=>e==="readonly",parsePrefix:e=>(e.consume("readonly"),{type:"JsdocTypeReadonlyArray",element:Mt(e.parseIntermediateType(m.ALL))})}),dn=J({name:"conditionalParslet",precedence:m.INFIX,accept:e=>e==="extends",parseInfix:(e,t)=>{e.consume("extends");const r=e.parseType(m.KEY_OF_TYPE_OF).element,s=e.parseType(m.INFIX);return e.consume(":"),{type:"JsdocTypeConditional",checksType:P(t),extendsType:r,trueType:s,falseType:e.parseType(m.INFIX)}}}),mn=[on,A({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),le,z,D,Z,fe({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),un],fn=[...pe,me({allowKeyTypes:!1,objectFieldGrammar:mn}),yn,je,rn,an,D,ye({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),nn({allowQuestionMark:!1}),de({allowEnclosingBrackets:!1,allowPostfix:!1}),tn,dn,A({allowedAdditionalTokens:["event","external","in"]}),te({allowedTypes:["module"],pathGrammar:U}),Fe,sn,cn,ee({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:U}),ln,pn,Te({allowVariadic:!0,allowOptional:!0})];function Ve(e,t){switch(t){case"closure":return new V(en,e).parse();case"jsdoc":return new V(zt,e).parse();case"typescript":return new V(fn,e).parse()}}function Tn(e,t=["typescript","closure","jsdoc"]){let r;for(const s of t)try{return Ve(e,s)}catch(c){r=c}throw r}function q(e,t){const r=e[t.type];if(r===void 0)throw new Error(`In this set of transform rules exists no rule for type ${t.type}.`);return r(t,s=>q(e,s))}function w(e){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function Ue(e){const t={params:[]};for(const r of e.parameters)r.type==="JsdocTypeKeyValue"?r.key==="this"?t.this=r.right:r.key==="new"?t.new=r.right:t.params.push(r):t.params.push(r);return t}function ne(e,t,r){return e==="prefix"?r+t:t+r}function I(e,t){switch(t){case"double":return`"${e}"`;case"single":return`'${e}'`;case void 0:return e}}function $e(){return{JsdocTypeParenthesis:(e,t)=>`(${e.element!==void 0?t(e.element):""})`,JsdocTypeKeyof:(e,t)=>`keyof ${t(e.element)}`,JsdocTypeFunction:(e,t)=>{var r;if(e.arrow){if(e.returnType===void 0)throw new Error("Arrow function needs a return type.");let s=`${e.typeParameters!==void 0?`<${(r=e.typeParameters.map(t).join(", "))!==null&&r!==void 0?r:""}>`:""}(${e.parameters.map(t).join(", ")}) => ${t(e.returnType)}`;return e.constructor&&(s="new "+s),s}else{let s=e.constructor?"new":"function";return e.parenthesis&&(s+=`(${e.parameters.map(t).join(", ")})`,e.returnType!==void 0&&(s+=`: ${t(e.returnType)}`)),s}},JsdocTypeName:e=>e.value,JsdocTypeTuple:(e,t)=>`[${e.elements.map(t).join(", ")}]`,JsdocTypeVariadic:(e,t)=>e.meta.position===void 0?"...":ne(e.meta.position,t(e.element),"..."),JsdocTypeNamePath:(e,t)=>{const r=t(e.left),s=t(e.right);switch(e.pathType){case"inner":return`${r}~${s}`;case"instance":return`${r}#${s}`;case"property":return`${r}.${s}`;case"property-brackets":return`${r}[${s}]`}},JsdocTypeStringValue:e=>I(e.value,e.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(e,t)=>{if(e.meta.brackets==="square"){const r=e.elements[0],s=t(r);return r.type==="JsdocTypeUnion"||r.type==="JsdocTypeIntersection"?`(${s})[]`:`${s}[]`}else return`${t(e.left)}${e.meta.dot?".":""}<${e.infer===!0?"infer ":""}${e.elements.map(t).join(", ")}>`},JsdocTypeImport:(e,t)=>`import(${t(e.element)})`,JsdocTypeObjectField:(e,t)=>{let r="";return e.readonly&&(r+="readonly "),typeof e.key=="string"?r+=I(e.key,e.meta.quote):r+=t(e.key),e.optional&&(r+="?"),e.right===void 0?r:r+`: ${t(e.right)}`},JsdocTypeJsdocObjectField:(e,t)=>`${t(e.left)}: ${t(e.right)}`,JsdocTypeKeyValue:(e,t)=>{let r=e.key;return e.optional&&(r+="?"),e.variadic&&(r="..."+r),e.right===void 0?r:r+`: ${t(e.right)}`},JsdocTypeSpecialNamePath:e=>`${e.specialType}:${I(e.value,e.meta.quote)}`,JsdocTypeNotNullable:(e,t)=>ne(e.meta.position,t(e.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(e,t)=>ne(e.meta.position,t(e.element),"?"),JsdocTypeNumber:e=>e.value.toString(),JsdocTypeObject:(e,t)=>{var r,s;return`{${(e.meta.separator==="linebreak"&&e.elements.length>1?`
|
|
2
|
+
`+((r=e.meta.propertyIndent)!==null&&r!==void 0?r:""):"")+e.elements.map(t).join(e.meta.separator==="comma"?", ":e.meta.separator==="linebreak"?`
|
|
3
|
+
`+((s=e.meta.propertyIndent)!==null&&s!==void 0?s:""):"; ")+(e.meta.separator==="linebreak"&&e.elements.length>1?`
|
|
4
|
+
`:"")}}`},JsdocTypeOptional:(e,t)=>ne(e.meta.position,t(e.element),"="),JsdocTypeSymbol:(e,t)=>`${e.value}(${e.element!==void 0?t(e.element):""})`,JsdocTypeTypeof:(e,t)=>`typeof ${t(e.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(e,t)=>e.elements.map(t).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(e,t)=>e.elements.map(t).join(" & "),JsdocTypeProperty:e=>I(e.value,e.meta.quote),JsdocTypePredicate:(e,t)=>`${t(e.left)} is ${t(e.right)}`,JsdocTypeIndexSignature:(e,t)=>`[${e.key}: ${t(e.right)}]`,JsdocTypeMappedType:(e,t)=>`[${e.key} in ${t(e.right)}]`,JsdocTypeAsserts:(e,t)=>`asserts ${t(e.left)} is ${t(e.right)}`,JsdocTypeReadonlyArray:(e,t)=>`readonly ${t(e.element)}`,JsdocTypeAssertsPlain:(e,t)=>`asserts ${t(e.element)}`,JsdocTypeConditional:(e,t)=>`${t(e.checksType)} extends ${t(e.extendsType)} ? ${t(e.trueType)} : ${t(e.falseType)}`,JsdocTypeTypeParameter:(e,t)=>`${t(e.name)}${e.constraint!==void 0?` extends ${t(e.constraint)}`:""}${e.defaultValue!==void 0?` = ${t(e.defaultValue)}`:""}`}}const hn=$e();function Jn(e){return q(hn,e)}const gn=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function R(e){const t={type:"NameExpression",name:e};return gn.includes(e)&&(t.reservedWord=!0),t}const wn={JsdocTypeOptional:(e,t)=>{const r=t(e.element);return r.optional=!0,r},JsdocTypeNullable:(e,t)=>{const r=t(e.element);return r.nullable=!0,r},JsdocTypeNotNullable:(e,t)=>{const r=t(e.element);return r.nullable=!1,r},JsdocTypeVariadic:(e,t)=>{if(e.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");const r=t(e.element);return r.repeatable=!0,r},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:e=>R(I(e.value,e.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(e,t)=>{const r=Ue(e),s={type:"FunctionType",params:r.params.map(t)};return r.this!==void 0&&(s.this=t(r.this)),r.new!==void 0&&(s.new=t(r.new)),e.returnType!==void 0&&(s.result=t(e.returnType)),s},JsdocTypeGeneric:(e,t)=>({type:"TypeApplication",applications:e.elements.map(r=>t(r)),expression:t(e.left)}),JsdocTypeSpecialNamePath:e=>R(e.specialType+":"+I(e.value,e.meta.quote)),JsdocTypeName:e=>e.value!=="function"?R(e.value):{type:"FunctionType",params:[]},JsdocTypeNumber:e=>R(e.value.toString()),JsdocTypeObject:(e,t)=>{const r={type:"RecordType",fields:[]};for(const s of e.elements)s.type!=="JsdocTypeObjectField"&&s.type!=="JsdocTypeJsdocObjectField"?r.fields.push({type:"FieldType",key:t(s),value:void 0}):r.fields.push(t(s));return r},JsdocTypeObjectField:(e,t)=>{if(typeof e.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:R(I(e.key,e.meta.quote)),value:e.right===void 0?void 0:t(e.right)}},JsdocTypeJsdocObjectField:(e,t)=>({type:"FieldType",key:t(e.left),value:t(e.right)}),JsdocTypeUnion:(e,t)=>({type:"TypeUnion",elements:e.elements.map(r=>t(r))}),JsdocTypeKeyValue:(e,t)=>({type:"FieldType",key:R(e.key),value:e.right===void 0?void 0:t(e.right)}),JsdocTypeNamePath:(e,t)=>{const r=t(e.left);let s;e.right.type==="JsdocTypeSpecialNamePath"?s=t(e.right).name:s=I(e.right.value,e.right.meta.quote);const c=e.pathType==="inner"?"~":e.pathType==="instance"?"#":".";return R(`${r.name}${c}${s}`)},JsdocTypeSymbol:e=>{let t="",r=e.element,s=!1;return(r==null?void 0:r.type)==="JsdocTypeVariadic"&&(r.meta.position==="prefix"?t="...":s=!0,r=r.element),(r==null?void 0:r.type)==="JsdocTypeName"?t+=r.value:(r==null?void 0:r.type)==="JsdocTypeNumber"&&(t+=r.value.toString()),s&&(t+="..."),R(`${e.value}(${t})`)},JsdocTypeParenthesis:(e,t)=>t(P(e.element)),JsdocTypeMappedType:w,JsdocTypeIndexSignature:w,JsdocTypeImport:w,JsdocTypeKeyof:w,JsdocTypeTuple:w,JsdocTypeTypeof:w,JsdocTypeIntersection:w,JsdocTypeProperty:w,JsdocTypePredicate:w,JsdocTypeAsserts:w,JsdocTypeReadonlyArray:w,JsdocTypeAssertsPlain:w,JsdocTypeConditional:w,JsdocTypeTypeParameter:w};function Pn(e){return q(wn,e)}function L(e){switch(e){case void 0:return"none";case"single":return"single";case"double":return"double"}}function Nn(e){switch(e){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function he(e,t){return t.length===2?{type:e,left:t[0],right:t[1]}:{type:e,left:t[0],right:he(e,t.slice(1))}}const bn={JsdocTypeOptional:(e,t)=>({type:"OPTIONAL",value:t(e.element),meta:{syntax:e.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(e,t)=>({type:"NULLABLE",value:t(e.element),meta:{syntax:e.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(e,t)=>({type:"NOT_NULLABLE",value:t(e.element),meta:{syntax:e.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(e,t)=>{const r={type:"VARIADIC",meta:{syntax:e.meta.position==="prefix"?"PREFIX_DOTS":e.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return e.element!==void 0&&(r.value=t(e.element)),r},JsdocTypeName:e=>({type:"NAME",name:e.value}),JsdocTypeTypeof:(e,t)=>({type:"TYPE_QUERY",name:t(e.element)}),JsdocTypeTuple:(e,t)=>({type:"TUPLE",entries:e.elements.map(t)}),JsdocTypeKeyof:(e,t)=>({type:"KEY_QUERY",value:t(e.element)}),JsdocTypeImport:e=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:L(e.element.meta.quote),string:e.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(e,t)=>{const r=Ue(e),s={type:e.arrow?"ARROW":"FUNCTION",params:r.params.map(c=>{if(c.type==="JsdocTypeKeyValue"){if(c.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:c.key,typeName:t(c.right)}}else return t(c)}),new:null,returns:null};return r.this!==void 0?s.this=t(r.this):e.arrow||(s.this=null),r.new!==void 0&&(s.new=t(r.new)),e.returnType!==void 0&&(s.returns=t(e.returnType)),s},JsdocTypeGeneric:(e,t)=>{const r={type:"GENERIC",subject:t(e.left),objects:e.elements.map(t),meta:{syntax:e.meta.brackets==="square"?"SQUARE_BRACKET":e.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return e.meta.brackets==="square"&&e.elements[0].type==="JsdocTypeFunction"&&!e.elements[0].parenthesis&&(r.objects[0]={type:"NAME",name:"function"}),r},JsdocTypeObjectField:(e,t)=>{if(typeof e.key!="string")throw new Error("Index signatures and mapped types are not supported");if(e.right===void 0)return{type:"RECORD_ENTRY",key:e.key,quoteStyle:L(e.meta.quote),value:null,readonly:!1};let r=t(e.right);return e.optional&&(r={type:"OPTIONAL",value:r,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:e.key.toString(),quoteStyle:L(e.meta.quote),value:r,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(e,t)=>{if(e.right===void 0)return{type:"RECORD_ENTRY",key:e.key,quoteStyle:"none",value:null,readonly:!1};let r=t(e.right);return e.optional&&(r={type:"OPTIONAL",value:r,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:e.key,quoteStyle:"none",value:r,readonly:!1}},JsdocTypeObject:(e,t)=>{const r=[];for(const s of e.elements)(s.type==="JsdocTypeObjectField"||s.type==="JsdocTypeJsdocObjectField")&&r.push(t(s));return{type:"RECORD",entries:r}},JsdocTypeSpecialNamePath:e=>{if(e.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${e.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:L(e.meta.quote),path:e.value}}},JsdocTypeNamePath:(e,t)=>{let r=!1,s,c;e.right.type==="JsdocTypeSpecialNamePath"&&e.right.specialType==="event"?(r=!0,s=e.right.value,c=L(e.right.meta.quote)):(s=e.right.value,c=L(e.right.meta.quote));const y={type:Nn(e.pathType),owner:t(e.left),name:s,quoteStyle:c,hasEventPrefix:r};if(y.owner.type==="MODULE"){const T=y.owner;return y.owner=y.owner.value,T.value=y,T}else return y},JsdocTypeUnion:(e,t)=>he("UNION",e.elements.map(t)),JsdocTypeParenthesis:(e,t)=>({type:"PARENTHESIS",value:t(P(e.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:e=>({type:"STRING_VALUE",quoteStyle:L(e.meta.quote),string:e.value}),JsdocTypeIntersection:(e,t)=>he("INTERSECTION",e.elements.map(t)),JsdocTypeNumber:e=>({type:"NUMBER_VALUE",number:e.value.toString()}),JsdocTypeSymbol:w,JsdocTypeProperty:w,JsdocTypePredicate:w,JsdocTypeMappedType:w,JsdocTypeIndexSignature:w,JsdocTypeAsserts:w,JsdocTypeReadonlyArray:w,JsdocTypeAssertsPlain:w,JsdocTypeConditional:w,JsdocTypeTypeParameter:w};function En(e){return q(bn,e)}function vn(){return{JsdocTypeIntersection:(e,t)=>({type:"JsdocTypeIntersection",elements:e.elements.map(t)}),JsdocTypeGeneric:(e,t)=>({type:"JsdocTypeGeneric",left:t(e.left),elements:e.elements.map(t),meta:{dot:e.meta.dot,brackets:e.meta.brackets}}),JsdocTypeNullable:e=>e,JsdocTypeUnion:(e,t)=>({type:"JsdocTypeUnion",elements:e.elements.map(t)}),JsdocTypeUnknown:e=>e,JsdocTypeUndefined:e=>e,JsdocTypeTypeof:(e,t)=>({type:"JsdocTypeTypeof",element:t(e.element)}),JsdocTypeSymbol:(e,t)=>{const r={type:"JsdocTypeSymbol",value:e.value};return e.element!==void 0&&(r.element=t(e.element)),r},JsdocTypeOptional:(e,t)=>({type:"JsdocTypeOptional",element:t(e.element),meta:{position:e.meta.position}}),JsdocTypeObject:(e,t)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:e.elements.map(t)}),JsdocTypeNumber:e=>e,JsdocTypeNull:e=>e,JsdocTypeNotNullable:(e,t)=>({type:"JsdocTypeNotNullable",element:t(e.element),meta:{position:e.meta.position}}),JsdocTypeSpecialNamePath:e=>e,JsdocTypeObjectField:(e,t)=>({type:"JsdocTypeObjectField",key:e.key,right:e.right===void 0?void 0:t(e.right),optional:e.optional,readonly:e.readonly,meta:e.meta}),JsdocTypeJsdocObjectField:(e,t)=>({type:"JsdocTypeJsdocObjectField",left:t(e.left),right:t(e.right)}),JsdocTypeKeyValue:(e,t)=>({type:"JsdocTypeKeyValue",key:e.key,right:e.right===void 0?void 0:t(e.right),optional:e.optional,variadic:e.variadic}),JsdocTypeImport:(e,t)=>({type:"JsdocTypeImport",element:t(e.element)}),JsdocTypeAny:e=>e,JsdocTypeStringValue:e=>e,JsdocTypeNamePath:e=>e,JsdocTypeVariadic:(e,t)=>{const r={type:"JsdocTypeVariadic",meta:{position:e.meta.position,squareBrackets:e.meta.squareBrackets}};return e.element!==void 0&&(r.element=t(e.element)),r},JsdocTypeTuple:(e,t)=>({type:"JsdocTypeTuple",elements:e.elements.map(t)}),JsdocTypeName:e=>e,JsdocTypeFunction:(e,t)=>{const r={type:"JsdocTypeFunction",arrow:e.arrow,parameters:e.parameters.map(t),constructor:e.constructor,parenthesis:e.parenthesis};return e.returnType!==void 0&&(r.returnType=t(e.returnType)),r},JsdocTypeKeyof:(e,t)=>({type:"JsdocTypeKeyof",element:t(e.element)}),JsdocTypeParenthesis:(e,t)=>({type:"JsdocTypeParenthesis",element:t(e.element)}),JsdocTypeProperty:e=>e,JsdocTypePredicate:(e,t)=>({type:"JsdocTypePredicate",left:t(e.left),right:t(e.right)}),JsdocTypeIndexSignature:(e,t)=>({type:"JsdocTypeIndexSignature",key:e.key,right:t(e.right)}),JsdocTypeMappedType:(e,t)=>({type:"JsdocTypeMappedType",key:e.key,right:t(e.right)}),JsdocTypeAsserts:(e,t)=>({type:"JsdocTypeAsserts",left:t(e.left),right:t(e.right)}),JsdocTypeReadonlyArray:(e,t)=>({type:"JsdocTypeReadonlyArray",element:t(e.element)}),JsdocTypeAssertsPlain:(e,t)=>({type:"JsdocTypeAssertsPlain",element:t(e.element)}),JsdocTypeConditional:(e,t)=>({type:"JsdocTypeConditional",checksType:t(e.checksType),extendsType:t(e.extendsType),trueType:t(e.trueType),falseType:t(e.falseType)}),JsdocTypeTypeParameter:(e,t)=>({type:"JsdocTypeTypeParameter",name:t(e.name),constraint:e.constraint!==void 0?t(e.constraint):void 0,defaultValue:e.defaultValue!==void 0?t(e.defaultValue):void 0})}}const Ke={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"],JsdocTypeAsserts:["left","right"],JsdocTypeReadonlyArray:["element"],JsdocTypeAssertsPlain:["element"],JsdocTypeConditional:["checksType","extendsType","trueType","falseType"],JsdocTypeTypeParameter:["name","constraint","defaultValue"]};function Je(e,t,r,s,c){s==null||s(e,t,r);const y=Ke[e.type];for(const T of y){const g=e[T];if(g!==void 0)if(Array.isArray(g))for(const k of g)Je(k,e,T,s,c);else Je(g,e,T,s,c)}c==null||c(e,t,r)}function xn(e,t,r){Je(e,void 0,void 0,t,r)}o.catharsisTransform=Pn,o.identityTransformRules=vn,o.jtpTransform=En,o.parse=Ve,o.stringify=Jn,o.stringifyRules=$e,o.transform=q,o.traverse=xn,o.tryParse=Tn,o.visitorKeys=Ke}))})(M,M.exports)),M.exports}var ge=Sn(),On=Object.defineProperty,l=(n,a)=>On(n,"name",{value:a,configurable:!0});const{UnknownArgTypesError:An}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var In=l(n=>n.name==="literal","isLiteral"),Rn=l(n=>n.value.replace(/['|"]/g,""),"toEnumOption"),_n=l(n=>{switch(n.type){case"function":return{name:"function"};case"object":let a={};return n.signature.properties.forEach(o=>{a[o.key]=Y(o.value)}),{name:"object",value:a};default:throw new An({type:n,language:"Flow"})}},"convertSig"),Y=l(n=>{var p,u,d,f;let{name:a,raw:o}=n,i={};switch(typeof o<"u"&&(i.raw=o),n.name){case"literal":return{...i,name:"other",value:n.value};case"string":case"number":case"symbol":case"boolean":return{...i,name:a};case"Array":return{...i,name:"array",value:n.elements.map(Y)};case"signature":return{...i,..._n(n)};case"union":return(p=n.elements)!=null&&p.every(In)?{...i,name:"enum",value:(u=n.elements)==null?void 0:u.map(Rn)}:{...i,name:a,value:(d=n.elements)==null?void 0:d.map(Y)};case"intersection":return{...i,name:a,value:(f=n.elements)==null?void 0:f.map(Y)};default:return{...i,name:"other",value:a}}},"convert");function Me(n,a){let o={},i=Object.keys(n);for(let p=0;p<i.length;p++){let u=i[p],d=n[u];o[u]=a(d,u,n)}return o}l(Me,"mapValues");var Ce=/^['"]|['"]$/g,Fn=l(n=>n.replace(Ce,""),"trimQuotes"),Ln=l(n=>Ce.test(n),"includesQuotes"),Ye=l(n=>{let a=Fn(n);return Ln(n)||Number.isNaN(Number(a))?a:Number(a)},"parseLiteral"),jn=/^\(.*\) => /,C=l(n=>{let{name:a,raw:o,computed:i,value:p}=n,u={};switch(typeof o<"u"&&(u.raw=o),a){case"enum":{let f=i?p:p.map(h=>Ye(h.value));return{...u,name:a,value:f}}case"string":case"number":case"symbol":return{...u,name:a};case"func":return{...u,name:"function"};case"bool":case"boolean":return{...u,name:"boolean"};case"arrayOf":case"array":return{...u,name:"array",value:p&&C(p)};case"object":return{...u,name:a};case"objectOf":return{...u,name:a,value:C(p)};case"shape":case"exact":let d=Me(p,f=>C(f));return{...u,name:"object",value:d};case"union":return{...u,name:"union",value:p.map(f=>C(f))};case"instanceOf":case"element":case"elementType":default:{if((a==null?void 0:a.indexOf("|"))>0)try{let v=a.split("|").map(N=>JSON.parse(N));return{...u,name:"enum",value:v}}catch{}let f=p?`${a}(${p})`:a,h=jn.test(a)?"function":"other";return{...u,name:h,value:f}}}},"convert");const{UnknownArgTypesError:Vn}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var Un=l(n=>{switch(n.type){case"function":return{name:"function"};case"object":let a={};return n.signature.properties.forEach(o=>{a[o.key]=G(o.value)}),{name:"object",value:a};default:throw new Vn({type:n,language:"Typescript"})}},"convertSig"),G=l(n=>{var p,u,d,f;let{name:a,raw:o}=n,i={};switch(typeof o<"u"&&(i.raw=o),n.name){case"string":case"number":case"symbol":case"boolean":return{...i,name:a};case"Array":return{...i,name:"array",value:n.elements.map(G)};case"signature":return{...i,...Un(n)};case"union":let h;return(p=n.elements)!=null&&p.every(v=>v.name==="literal")?h={...i,name:"enum",value:(u=n.elements)==null?void 0:u.map(v=>Ye(v.value))}:h={...i,name:a,value:(d=n.elements)==null?void 0:d.map(G)},h;case"intersection":return{...i,name:a,value:(f=n.elements)==null?void 0:f.map(G)};default:return{...i,name:"other",value:a}}},"convert"),we=l(n=>{let{type:a,tsType:o,flowType:i}=n;try{if(a!=null)return C(a);if(o!=null)return G(o);if(i!=null)return Y(i)}catch(p){console.error(p)}return null},"convert"),$n=(n=>(n.JAVASCRIPT="JavaScript",n.FLOW="Flow",n.TYPESCRIPT="TypeScript",n.UNKNOWN="Unknown",n))($n||{}),Kn=["null","undefined"];function ae(n){return Kn.some(a=>a===n)}l(ae,"isDefaultValueBlacklisted");var Dn=l(n=>{if(!n)return"";if(typeof n=="string")return n;throw new Error(`Description: expected string, got: ${JSON.stringify(n)}`)},"str");function Pe(n){return!!n.__docgenInfo}l(Pe,"hasDocgen");function Ge(n){return n!=null&&Object.keys(n).length>0}l(Ge,"isValidDocgenSection");function We(n,a){return Pe(n)?n.__docgenInfo[a]:null}l(We,"getDocgenSection");function Xe(n){return Pe(n)?Dn(n.__docgenInfo.description):""}l(Xe,"getDocgenDescription");var _;(function(n){n.start="/**",n.nostart="/***",n.delim="*",n.end="*/"})(_=_||(_={}));function Qe(n){return/^\s+$/.test(n)}l(Qe,"isSpace");function He(n){let a=n.match(/\r+$/);return a==null?["",n]:[n.slice(-a[0].length),n.slice(0,-a[0].length)]}l(He,"splitCR");function j(n){let a=n.match(/^\s+/);return a==null?["",n]:[n.slice(0,a[0].length),n.slice(a[0].length)]}l(j,"splitSpace");function ze(n){return n.split(/\n/)}l(ze,"splitLines");function Ze(n={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},n)}l(Ze,"seedSpec");function et(n={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},n)}l(et,"seedTokens");var qn=/^@\S+/;function tt({fence:n="```"}={}){let a=nt(n),o=l((i,p)=>a(i)?!p:p,"toggleFence");return l(function(i){let p=[[]],u=!1;for(let d of i)qn.test(d.tokens.description)&&!u?p.push([d]):p[p.length-1].push(d),u=o(d.tokens.description,u);return p},"parseBlock")}l(tt,"getParser");function nt(n){return typeof n=="string"?a=>a.split(n).length%2===0:n}l(nt,"getFencer");function rt({startLine:n=0,markers:a=_}={}){let o=null,i=n;return l(function(p){let u=p,d=et();if([d.lineEnd,u]=He(u),[d.start,u]=j(u),o===null&&u.startsWith(a.start)&&!u.startsWith(a.nostart)&&(o=[],d.delimiter=u.slice(0,a.start.length),u=u.slice(a.start.length),[d.postDelimiter,u]=j(u)),o===null)return i++,null;let f=u.trimRight().endsWith(a.end);if(d.delimiter===""&&u.startsWith(a.delim)&&!u.startsWith(a.end)&&(d.delimiter=a.delim,u=u.slice(a.delim.length),[d.postDelimiter,u]=j(u)),f){let h=u.trimRight();d.end=u.slice(h.length-a.end.length),u=h.slice(0,-a.end.length)}if(d.description=u,o.push({number:i,source:p,tokens:d}),i++,f){let h=o.slice();return o=null,h}return null},"parseSource")}l(rt,"getParser");function at({tokenizers:n}){return l(function(a){var o;let i=Ze({source:a});for(let p of n)if(i=p(i),!((o=i.problems[i.problems.length-1])===null||o===void 0)&&o.critical)break;return i},"parseSpec")}l(at,"getParser");function ot(){return n=>{let{tokens:a}=n.source[0],o=a.description.match(/\s*(@(\S+))(\s*)/);return o===null?(n.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:n.source[0].number,critical:!0}),n):(a.tag=o[1],a.postTag=o[3],a.description=a.description.slice(o[0].length),n.tag=o[2],n)}}l(ot,"tagTokenizer");function st(n="compact"){let a=it(n);return o=>{let i=0,p=[];for(let[f,{tokens:h}]of o.source.entries()){let v="";if(f===0&&h.description[0]!=="{")return o;for(let N of h.description)if(N==="{"&&i++,N==="}"&&i--,v+=N,i===0)break;if(p.push([h,v]),i===0)break}if(i!==0)return o.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:o.source[0].number,critical:!0}),o;let u=[],d=p[0][0].postDelimiter.length;for(let[f,[h,v]]of p.entries())h.type=v,f>0&&(h.type=h.postDelimiter.slice(d)+v,h.postDelimiter=h.postDelimiter.slice(0,d)),[h.postType,h.description]=j(h.description.slice(v.length)),u.push(h.type);return u[0]=u[0].slice(1),u[u.length-1]=u[u.length-1].slice(0,-1),o.type=a(u),o}}l(st,"typeTokenizer");var Bn=l(n=>n.trim(),"trim");function it(n){return n==="compact"?a=>a.map(Bn).join(""):n==="preserve"?a=>a.join(`
|
|
5
|
+
`):n}l(it,"getJoiner");var Mn=l(n=>n&&n.startsWith('"')&&n.endsWith('"'),"isQuoted");function ct(){let n=l((a,{tokens:o},i)=>o.type===""?a:i,"typeEnd");return a=>{let{tokens:o}=a.source[a.source.reduce(n,0)],i=o.description.trimLeft(),p=i.split('"');if(p.length>1&&p[0]===""&&p.length%2===1)return a.name=p[1],o.name=`"${p[1]}"`,[o.postName,o.description]=j(i.slice(o.name.length)),a;let u=0,d="",f=!1,h;for(let N of i){if(u===0&&Qe(N))break;N==="["&&u++,N==="]"&&u--,d+=N}if(u!==0)return a.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:a.source[0].number,critical:!0}),a;let v=d;if(d[0]==="["&&d[d.length-1]==="]"){f=!0,d=d.slice(1,-1);let N=d.split("=");if(d=N[0].trim(),N[1]!==void 0&&(h=N.slice(1).join("=").trim()),d==="")return a.problems.push({code:"spec:name:empty-name",message:"empty name",line:a.source[0].number,critical:!0}),a;if(h==="")return a.problems.push({code:"spec:name:empty-default",message:"empty default value",line:a.source[0].number,critical:!0}),a;if(!Mn(h)&&/=(?!>)/.test(h))return a.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:a.source[0].number,critical:!0}),a}return a.optional=f,a.name=d,o.name=v,h!==void 0&&(a.default=h),[o.postName,o.description]=j(i.slice(o.name.length)),a}}l(ct,"nameTokenizer");function lt(n="compact",a=_){let o=Ne(n);return i=>(i.description=o(i.source,a),i)}l(lt,"descriptionTokenizer");function Ne(n){return n==="compact"?pt:n==="preserve"?ut:n}l(Ne,"getJoiner");function pt(n,a=_){return n.map(({tokens:{description:o}})=>o.trim()).filter(o=>o!=="").join(" ")}l(pt,"compactJoiner");var Cn=l((n,{tokens:a},o)=>a.type===""?n:o,"lineNo"),Yn=l(({tokens:n})=>(n.delimiter===""?n.start:n.postDelimiter.slice(1))+n.description,"getDescription");function ut(n,a=_){if(n.length===0)return"";n[0].tokens.description===""&&n[0].tokens.delimiter===a.start&&(n=n.slice(1));let o=n[n.length-1];return o!==void 0&&o.tokens.description===""&&o.tokens.end.endsWith(a.end)&&(n=n.slice(0,-1)),n=n.slice(n.reduce(Cn,0)),n.map(Yn).join(`
|
|
6
|
+
`)}l(ut,"preserveJoiner");function yt({startLine:n=0,fence:a="```",spacing:o="compact",markers:i=_,tokenizers:p=[ot(),st(o),ct(),lt(o)]}={}){if(n<0||n%1>0)throw new Error("Invalid startLine");let u=rt({startLine:n,markers:i}),d=tt({fence:a}),f=at({tokenizers:p}),h=Ne(o);return function(v){let N=[];for(let oe of ze(v)){let $=u(oe);if($===null)continue;let X=d($),Q=X.slice(1).map(f);N.push({description:h(X[0],i),tags:Q,source:$,problems:Q.reduce((b,se)=>b.concat(se.problems),[])})}return N}}l(yt,"getParser");function dt(n){return n.start+n.delimiter+n.postDelimiter+n.tag+n.postTag+n.type+n.postType+n.name+n.postName+n.description+n.end+n.lineEnd}l(dt,"join");function Gn(){return n=>n.source.map(({tokens:a})=>dt(a)).join(`
|
|
7
|
+
`)}l(Gn,"getStringifier");function mt(n,a={}){return yt(a)(n)}l(mt,"parse");function ft(n){return n!=null&&n.includes("@")}l(ft,"containsJsDoc");function Tt(n){let a=`/**
|
|
8
|
+
`+(n??"").split(`
|
|
9
|
+
`).map(i=>` * ${i}`).join(`
|
|
10
|
+
`)+`
|
|
11
|
+
*/`,o=mt(a,{spacing:"preserve"});if(!o||o.length===0)throw new Error("Cannot parse JSDoc tags.");return o[0]}l(Tt,"parse");var Wn={tags:["param","arg","argument","returns","ignore","deprecated"]},Xn=l((n,a=Wn)=>{if(!ft(n))return{includesJsDoc:!1,ignore:!1};let o=Tt(n),i=ht(o,a.tags);return i.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:o.description.trim(),extractedTags:i}},"parseJsDoc");function ht(n,a){let o={params:null,deprecated:null,returns:null,ignore:!1};for(let i of n.tags)if(!(a!==void 0&&!a.includes(i.tag)))if(i.tag==="ignore"){o.ignore=!0;break}else switch(i.tag){case"param":case"arg":case"argument":{let p=gt(i);p!=null&&(o.params==null&&(o.params=[]),o.params.push(p));break}case"deprecated":{let p=wt(i);p!=null&&(o.deprecated=p);break}case"returns":{let p=Pt(i);p!=null&&(o.returns=p);break}}return o}l(ht,"extractJsDocTags");function Jt(n){return n.replace(/[\.-]$/,"")}l(Jt,"normaliseParamName");function gt(n){if(!n.name||n.name==="-")return null;let a=ve(n.type);return{name:n.name,type:a,description:Ee(n.description),getPrettyName:l(()=>Jt(n.name),"getPrettyName"),getTypeName:l(()=>a?xe(a):null,"getTypeName")}}l(gt,"extractParam");function wt(n){return n.name?be(n.name,n.description):null}l(wt,"extractDeprecated");function be(n,a){let o=n===""?a:`${n} ${a}`;return Ee(o)}l(be,"joinNameAndDescription");function Ee(n){let a=n.replace(/^- /g,"").trim();return a===""?null:a}l(Ee,"normaliseDescription");function Pt(n){let a=ve(n.type);return a?{type:a,description:be(n.name,n.description),getTypeName:l(()=>xe(a),"getTypeName")}:null}l(Pt,"extractReturns");var F=ge.stringifyRules(),Qn=F.JsdocTypeObject;F.JsdocTypeAny=()=>"any";F.JsdocTypeObject=(n,a)=>`(${Qn(n,a)})`;F.JsdocTypeOptional=(n,a)=>a(n.element);F.JsdocTypeNullable=(n,a)=>a(n.element);F.JsdocTypeNotNullable=(n,a)=>a(n.element);F.JsdocTypeUnion=(n,a)=>n.elements.map(a).join("|");function ve(n){try{return ge.parse(n,"typescript")}catch{return null}}l(ve,"extractType");function xe(n){return ge.transform(F,n)}l(xe,"extractTypeName");function ke(n){return n.length>90}l(ke,"isTooLongForTypeSummary");function Nt(n){return n.length>50}l(Nt,"isTooLongForDefaultValueSummary");function E(n,a){return n===a?{summary:n}:{summary:n,detail:a}}l(E,"createSummaryValue");function bt(n,a){if(n!=null){let{value:o}=n;if(!ae(o))return Nt(o)?E(a==null?void 0:a.name,o):E(o)}return null}l(bt,"createDefaultValue");function Se({name:n,value:a,elements:o,raw:i}){return a??(o!=null?o.map(Se).join(" | "):i??n)}l(Se,"generateUnionElement");function Et({name:n,raw:a,elements:o}){return o!=null?E(o.map(Se).join(" | ")):a!=null?E(a.replace(/^\|\s*/,"")):E(n)}l(Et,"generateUnion");function vt({type:n,raw:a}){return a!=null?E(a):E(n)}l(vt,"generateFuncSignature");function xt({type:n,raw:a}){return a!=null?ke(a)?E(n,a):E(a):E(n)}l(xt,"generateObjectSignature");function kt(n){let{type:a}=n;return a==="object"?xt(n):vt(n)}l(kt,"generateSignature");function St({name:n,raw:a}){return a!=null?ke(a)?E(n,a):E(a):E(n)}l(St,"generateDefault");function Ot(n){if(n==null)return null;switch(n.name){case"union":return Et(n);case"signature":return kt(n);default:return St(n)}}l(Ot,"createType");var Hn=l((n,a)=>{let{flowType:o,description:i,required:p,defaultValue:u}=a;return{name:n,type:Ot(o),required:p,description:i,defaultValue:bt(u??null,o??null)}},"createFlowPropDef");function At({defaultValue:n}){if(n!=null){let{value:a}=n;if(!ae(a))return E(a)}return null}l(At,"createDefaultValue");function It({tsType:n,required:a}){if(n==null)return null;let o=n.name;return a||(o=o.replace(" | undefined","")),E(["Array","Record","signature"].includes(n.name)?n.raw:o)}l(It,"createType");var zn=l((n,a)=>{let{description:o,required:i}=a;return{name:n,type:It(a),required:i,description:o,defaultValue:At(a)}},"createTsPropDef");function Rt(n){return n!=null?E(n.name):null}l(Rt,"createType");function _t(n){let{computed:a,func:o}=n;return typeof a>"u"&&typeof o>"u"}l(_t,"isReactDocgenTypescript");function Ft(n){return n?n.name==="string"?!0:n.name==="enum"?Array.isArray(n.value)&&n.value.every(({value:a})=>typeof a=="string"&&a[0]==='"'&&a[a.length-1]==='"'):!1:!1}l(Ft,"isStringValued");function Lt(n,a){if(n!=null){let{value:o}=n;if(!ae(o))return _t(n)&&Ft(a)?E(JSON.stringify(o)):E(o)}return null}l(Lt,"createDefaultValue");function Oe(n,a,o){let{description:i,required:p,defaultValue:u}=o;return{name:n,type:Rt(a),required:p,description:i,defaultValue:Lt(u,a)}}l(Oe,"createBasicPropDef");function W(n,a){var o;if(a!=null&&a.includesJsDoc){let{description:i,extractedTags:p}=a;i!=null&&(n.description=a.description);let u={...p,params:(o=p==null?void 0:p.params)==null?void 0:o.map(d=>({name:d.getPrettyName(),description:d.description}))};Object.values(u).filter(Boolean).length>0&&(n.jsDocTags=u)}return n}l(W,"applyJsDocResult");var Zn=l((n,a,o)=>{let i=Oe(n,a.type,a);return i.sbType=we(a),W(i,o)},"javaScriptFactory"),er=l((n,a,o)=>{let i=zn(n,a);return i.sbType=we(a),W(i,o)},"tsFactory"),tr=l((n,a,o)=>{let i=Hn(n,a);return i.sbType=we(a),W(i,o)},"flowFactory"),nr=l((n,a,o)=>{let i=Oe(n,{name:"unknown"},a);return W(i,o)},"unknownFactory"),jt=l(n=>{switch(n){case"JavaScript":return Zn;case"TypeScript":return er;case"Flow":return tr;default:return nr}},"getPropDefFactory"),Vt=l(n=>n.type!=null?"JavaScript":n.flowType!=null?"Flow":n.tsType!=null?"TypeScript":"Unknown","getTypeSystem"),rr=l(n=>{let a=Vt(n[0]),o=jt(a);return n.map(i=>{var u;let p=i;return(u=i.type)!=null&&u.elements&&(p={...i,type:{...i.type,value:i.type.elements}}),Ae(p.name,p,a,o)})},"extractComponentSectionArray"),ar=l(n=>{let a=Object.keys(n),o=Vt(n[a[0]]),i=jt(o);return a.map(p=>{let u=n[p];return u!=null?Ae(p,u,o,i):null}).filter(Boolean)},"extractComponentSectionObject"),lr=l((n,a)=>{let o=We(n,a);return Ge(o)?Array.isArray(o)?rr(o):ar(o):[]},"extractComponentProps");function Ae(n,a,o,i){let p=Xn(a.description);return p.includesJsDoc&&p.ignore?null:{propDef:i(n,a,p),jsDocTags:p.extractedTags,docgenInfo:a,typeSystem:o}}l(Ae,"extractProp");function or(n){return n!=null?Xe(n):""}l(or,"extractComponentDescription");const{combineParameters:sr}=__STORYBOOK_MODULE_PREVIEW_API__;var pr=l(n=>{let{component:a,argTypes:o,parameters:{docs:i={}}}=n,{extractArgTypes:p}=i,u=p&&a?p(a):{};return u?sr(u,o):o},"enhanceArgTypes"),ir="storybook/docs",ur=`${ir}/snippet-rendered`,cr=(n=>(n.AUTO="auto",n.CODE="code",n.DYNAMIC="dynamic",n))(cr||{});export{ke as B,We as Y,Nt as a,pr as c,cr as g,$n as j,E as l,or as n,lr as o,ur as y,Pe as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as l}from"./index-ChsGqxH_.js";function s(e,n){for(var r=0;r<n.length;r++){const t=n[r];if(typeof t!="string"&&!Array.isArray(t)){for(const o in t)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(t,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>t[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var d=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var f=l();const i=c(f),p=s({__proto__:null,default:i},[f]);export{i as R,p as a,d as c,c as g,f as r};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
function l(o){for(var f=[],i=1;i<arguments.length;i++)f[i-1]=arguments[i];var n=Array.from(typeof o=="string"?[o]:o);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var s=n.reduce(function(t,g){var a=g.match(/\n([\t ]+|(?!\s).)/g);return a?t.concat(a.map(function(u){var r,e;return(e=(r=u.match(/[\t ]/g))===null||r===void 0?void 0:r.length)!==null&&e!==void 0?e:0})):t},[]);if(s.length){var d=new RegExp(`
|
|
2
|
+
[ ]{`+Math.min.apply(Math,s)+"}","g");n=n.map(function(t){return t.replace(d,`
|
|
3
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var c=n[0];return f.forEach(function(t,g){var a=c.match(/(?:^|\n)( *)$/),u=a?a[1]:"",r=t;typeof t=="string"&&t.includes(`
|
|
4
|
+
`)&&(r=String(t).split(`
|
|
5
|
+
`).map(function(e,h){return h===0?e:""+u+e}).join(`
|
|
6
|
+
`)),c+=r+n[g+1]}),c}export{l as d};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{r as v}from"./index-ChsGqxH_.js";var i={exports:{}},t={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var p;function y(){if(p)return t;p=1;var R=v(),a=Symbol.for("react.element"),x=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,l=R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function s(n,r,_){var e,o={},u=null,f=null;_!==void 0&&(u=""+_),r.key!==void 0&&(u=""+r.key),r.ref!==void 0&&(f=r.ref);for(e in r)c.call(r,e)&&!d.hasOwnProperty(e)&&(o[e]=r[e]);if(n&&n.defaultProps)for(e in r=n.defaultProps,r)o[e]===void 0&&(o[e]=r[e]);return{$$typeof:a,type:n,key:u,ref:f,props:o,_owner:l.current}}return t.Fragment=x,t.jsx=s,t.jsxs=s,t}var m;function O(){return m||(m=1,i.exports=y()),i.exports}var j=O();export{j};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import{d as P}from"./index-DrFu-skq.js";const{useEffect:_,useMemo:h}=__STORYBOOK_MODULE_PREVIEW_API__,{global:j}=__STORYBOOK_MODULE_GLOBAL__,{logger:X}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var p="backgrounds",U={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},{document:b,window:O}=j,D=()=>{var r;return!!((r=O==null?void 0:O.matchMedia("(prefers-reduced-motion: reduce)"))!=null&&r.matches)},A=r=>{(Array.isArray(r)?r:[r]).forEach(N)},N=r=>{var t;let e=b.getElementById(r);e&&((t=e.parentElement)==null||t.removeChild(e))},F=(r,e)=>{let t=b.getElementById(r);if(t)t.innerHTML!==e&&(t.innerHTML=e);else{let o=b.createElement("style");o.setAttribute("id",r),o.innerHTML=e,b.head.appendChild(o)}},Y=(r,e,t)=>{var a;let o=b.getElementById(r);if(o)o.innerHTML!==e&&(o.innerHTML=e);else{let d=b.createElement("style");d.setAttribute("id",r),d.innerHTML=e;let i=`addon-backgrounds-grid${t?`-docs-${t}`:""}`,n=b.getElementById(i);n?(a=n.parentElement)==null||a.insertBefore(d,n):b.head.appendChild(d)}},W={cellSize:100,cellAmount:10,opacity:.8},w="addon-backgrounds",R="addon-backgrounds-grid",q=D()?"":"transition: background-color 0.3s;",J=(r,e)=>{let{globals:t,parameters:o,viewMode:a,id:d}=e,{options:i=U,disable:n,grid:s=W}=o[p]||{},c=t[p]||{},u=c.value,l=u?i[u]:void 0,$=(l==null?void 0:l.value)||"transparent",f=c.grid||!1,y=!!l&&!n,m=a==="docs"?`#anchor--${d} .docs-story`:".sb-show-main",E=a==="docs"?`#anchor--${d} .docs-story`:".sb-show-main",H=o.layout===void 0||o.layout==="padded",L=a==="docs"?20:H?16:0,{cellAmount:k,cellSize:g,opacity:x,offsetX:v=L,offsetY:S=L}=s,B=a==="docs"?`${w}-docs-${d}`:`${w}-color`,G=a==="docs"?d:null;_(()=>{let M=`
|
|
2
|
+
${m} {
|
|
3
|
+
background: ${$} !important;
|
|
4
|
+
${q}
|
|
5
|
+
}`;if(!y){A(B);return}Y(B,M,G)},[m,B,G,y,$]);let T=a==="docs"?`${R}-docs-${d}`:`${R}`;return _(()=>{if(!f){A(T);return}let M=[`${g*k}px ${g*k}px`,`${g*k}px ${g*k}px`,`${g}px ${g}px`,`${g}px ${g}px`].join(", "),K=`
|
|
6
|
+
${E} {
|
|
7
|
+
background-size: ${M} !important;
|
|
8
|
+
background-position: ${v}px ${S}px, ${v}px ${S}px, ${v}px ${S}px, ${v}px ${S}px !important;
|
|
9
|
+
background-blend-mode: difference !important;
|
|
10
|
+
background-image: linear-gradient(rgba(130, 130, 130, ${x}) 1px, transparent 1px),
|
|
11
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${x}) 1px, transparent 1px),
|
|
12
|
+
linear-gradient(rgba(130, 130, 130, ${x/2}) 1px, transparent 1px),
|
|
13
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${x/2}) 1px, transparent 1px) !important;
|
|
14
|
+
}
|
|
15
|
+
`;F(T,K)},[k,g,E,T,f,v,S,x]),r()},Q=(r,e=[],t)=>{if(r==="transparent")return"transparent";if(e.find(a=>a.value===r)||r)return r;let o=e.find(a=>a.name===t);if(o)return o.value;if(t){let a=e.map(d=>d.name).join(", ");X.warn(P`
|
|
16
|
+
Backgrounds Addon: could not find the default color "${t}".
|
|
17
|
+
These are the available colors for your story based on your configuration:
|
|
18
|
+
${a}.
|
|
19
|
+
`)}return"transparent"},Z=(r,e)=>{var u;let{globals:t,parameters:o}=e,a=(u=t[p])==null?void 0:u.value,d=o[p],i=h(()=>d.disable?"transparent":Q(a,d.values,d.default),[d,a]),n=h(()=>i&&i!=="transparent",[i]),s=e.viewMode==="docs"?`#anchor--${e.id} .docs-story`:".sb-show-main",c=h(()=>`
|
|
20
|
+
${s} {
|
|
21
|
+
background: ${i} !important;
|
|
22
|
+
${D()?"":"transition: background-color 0.3s;"}
|
|
23
|
+
}
|
|
24
|
+
`,[i,s]);return _(()=>{let l=e.viewMode==="docs"?`addon-backgrounds-docs-${e.id}`:"addon-backgrounds-color";if(!n){A(l);return}Y(l,c,e.viewMode==="docs"?e.id:null)},[n,c,e]),r()},V=(r,e)=>{var y;let{globals:t,parameters:o}=e,a=o[p].grid,d=((y=t[p])==null?void 0:y.grid)===!0&&a.disable!==!0,{cellAmount:i,cellSize:n,opacity:s}=a,c=e.viewMode==="docs",u=o.layout===void 0||o.layout==="padded"?16:0,l=a.offsetX??(c?20:u),$=a.offsetY??(c?20:u),f=h(()=>{let m=e.viewMode==="docs"?`#anchor--${e.id} .docs-story`:".sb-show-main",E=[`${n*i}px ${n*i}px`,`${n*i}px ${n*i}px`,`${n}px ${n}px`,`${n}px ${n}px`].join(", ");return`
|
|
25
|
+
${m} {
|
|
26
|
+
background-size: ${E} !important;
|
|
27
|
+
background-position: ${l}px ${$}px, ${l}px ${$}px, ${l}px ${$}px, ${l}px ${$}px !important;
|
|
28
|
+
background-blend-mode: difference !important;
|
|
29
|
+
background-image: linear-gradient(rgba(130, 130, 130, ${s}) 1px, transparent 1px),
|
|
30
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${s}) 1px, transparent 1px),
|
|
31
|
+
linear-gradient(rgba(130, 130, 130, ${s/2}) 1px, transparent 1px),
|
|
32
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${s/2}) 1px, transparent 1px) !important;
|
|
33
|
+
}
|
|
34
|
+
`},[n]);return _(()=>{let m=e.viewMode==="docs"?`addon-backgrounds-grid-docs-${e.id}`:"addon-backgrounds-grid";if(!d){A(m);return}F(m,f)},[d,f,e]),r()},C,ae=(C=globalThis.FEATURES)!=null&&C.backgroundsStoryGlobals?[J]:[V,Z],I,oe={[p]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1,...!((I=globalThis.FEATURES)!=null&&I.backgroundsStoryGlobals)&&{values:Object.values(U)}}},ee={[p]:{value:void 0,grid:!1}},z,de=(z=globalThis.FEATURES)!=null&&z.backgroundsStoryGlobals?ee:{[p]:null};export{ae as decorators,de as initialGlobals,oe as parameters};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var j="Invariant failed";function S(e,t){if(!e)throw new Error(j)}const{useEffect:T}=__STORYBOOK_MODULE_PREVIEW_API__,{global:d}=__STORYBOOK_MODULE_GLOBAL__;var K="measureEnabled";function Y(){let e=d.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function G(){let e=d.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");S(t!=null);let{width:o,height:l}=Y();return A(e,t,{width:o,height:l}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",d.document.body.appendChild(e),{canvas:e,context:t,width:o,height:l}}function A(e,t,{width:o,height:l}){e.style.width=`${o}px`,e.style.height=`${l}px`;let i=d.window.devicePixelRatio;e.width=Math.floor(o*i),e.height=Math.floor(l*i),t.scale(i,i)}var h={};function U(){h.canvas||(h=G())}function H(){h.context&&h.context.clearRect(0,0,h.width??0,h.height??0)}function V(e){H(),e(h.context)}function Z(){S(h.canvas),S(h.context),A(h.canvas,h.context,{width:0,height:0});let{width:e,height:t}=Y();A(h.canvas,h.context,{width:e,height:t}),h.width=e,h.height=t}function J(){var e;h.canvas&&(H(),(e=h.canvas.parentNode)==null||e.removeChild(h.canvas),h={})}var w={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},c=6;function W(e,{x:t,y:o,w:l,h:i,r:n}){t=t-l/2,o=o-i/2,l<2*n&&(n=l/2),i<2*n&&(n=i/2),e.beginPath(),e.moveTo(t+n,o),e.arcTo(t+l,o,t+l,o+i,n),e.arcTo(t+l,o+i,t,o+i,n),e.arcTo(t,o+i,t,o,n),e.arcTo(t,o,t+l,o,n),e.closePath()}function Q(e,{padding:t,border:o,width:l,height:i,top:n,left:r}){let f=l-o.left-o.right-t.left-t.right,a=i-t.top-t.bottom-o.top-o.bottom,s=r+o.left+t.left,u=n+o.top+t.top;return e==="top"?s+=f/2:e==="right"?(s+=f,u+=a/2):e==="bottom"?(s+=f/2,u+=a):e==="left"?u+=a/2:e==="center"&&(s+=f/2,u+=a/2),{x:s,y:u}}function x(e,t,{margin:o,border:l,padding:i},n,r){let f=m=>0,a=0,s=0,u=r?1:.5,g=r?n*2:0;return e==="padding"?f=m=>i[m]*u+g:e==="border"?f=m=>i[m]+l[m]*u+g:e==="margin"&&(f=m=>i[m]+l[m]+o[m]*u+g),t==="top"?s=-f("top"):t==="right"?a=f("right"):t==="bottom"?s=f("bottom"):t==="left"&&(a=-f("left")),{offsetX:a,offsetY:s}}function tt(e,t){return Math.abs(e.x-t.x)<Math.abs(e.w+t.w)/2&&Math.abs(e.y-t.y)<Math.abs(e.h+t.h)/2}function et(e,t,o){return e==="top"?t.y=o.y-o.h-c:e==="right"?t.x=o.x+o.w/2+c+t.w/2:e==="bottom"?t.y=o.y+o.h+c:e==="left"&&(t.x=o.x-o.w/2-c-t.w/2),{x:t.x,y:t.y}}function X(e,t,{x:o,y:l,w:i,h:n},r){return W(e,{x:o,y:l,w:i,h:n,r:3}),e.fillStyle=`${w[t]}dd`,e.fill(),e.strokeStyle=w[t],e.stroke(),e.fillStyle=w.text,e.fillText(r,o,l),W(e,{x:o,y:l,w:i,h:n,r:3}),e.fillStyle=`${w[t]}dd`,e.fill(),e.strokeStyle=w[t],e.stroke(),e.fillStyle=w.text,e.fillText(r,o,l),{x:o,y:l,w:i,h:n}}function C(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";let o=e.measureText(t),l=o.actualBoundingBoxAscent+o.actualBoundingBoxDescent,i=o.width+c*2,n=l+c*2;return{w:i,h:n}}function ot(e,t,{type:o,position:l="center",text:i},n,r=!1){let{x:f,y:a}=Q(l,t),{offsetX:s,offsetY:u}=x(o,l,t,c+1,r);f+=s,a+=u;let{w:g,h:m}=C(e,i);if(n&&tt({x:f,y:a,w:g,h:m},n)){let v=et(l,{x:f,y:a,w:g},n);f=v.x,a=v.y}return X(e,o,{x:f,y:a,w:g,h:m},i)}function it(e,{w:t,h:o}){let l=t*.5+c,i=o*.5+c;return{offsetX:(e.x==="left"?-1:1)*l,offsetY:(e.y==="top"?-1:1)*i}}function lt(e,t,{type:o,text:l}){let{floatingAlignment:i,extremities:n}=t,r=n[i.x],f=n[i.y],{w:a,h:s}=C(e,l),{offsetX:u,offsetY:g}=it(i,{w:a,h:s});return r+=u,f+=g,X(e,o,{x:r,y:f,w:a,h:s},l)}function E(e,t,o,l){let i=[];o.forEach((n,r)=>{let f=l&&n.position==="center"?lt(e,t,n):ot(e,t,n,i[r-1],l);i[r]=f})}function nt(e,t,o,l){let i=o.reduce((n,r)=>{var f;return Object.prototype.hasOwnProperty.call(n,r.position)||(n[r.position]=[]),(f=n[r.position])==null||f.push(r),n},{});i.top&&E(e,t,i.top,l),i.right&&E(e,t,i.right,l),i.bottom&&E(e,t,i.bottom,l),i.left&&E(e,t,i.left,l),i.center&&E(e,t,i.center,l)}var L={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},B=30;function p(e){return parseInt(e.replace("px",""),10)}function b(e){return Number.isInteger(e)?e:e.toFixed(2)}function P(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function ft(e){let t={top:d.window.scrollY,bottom:d.window.scrollY+d.window.innerHeight,left:d.window.scrollX,right:d.window.scrollX+d.window.innerWidth},o={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:o.left>o.right?"left":"right",y:o.top>o.bottom?"top":"bottom"}}function rt(e){let t=d.getComputedStyle(e),{top:o,left:l,right:i,bottom:n,width:r,height:f}=e.getBoundingClientRect(),{marginTop:a,marginBottom:s,marginLeft:u,marginRight:g,paddingTop:m,paddingBottom:v,paddingLeft:k,paddingRight:F,borderBottomWidth:I,borderTopWidth:D,borderLeftWidth:$,borderRightWidth:N}=t;o=o+d.window.scrollY,l=l+d.window.scrollX,n=n+d.window.scrollY,i=i+d.window.scrollX;let y={top:p(a),bottom:p(s),left:p(u),right:p(g)},q={top:p(m),bottom:p(v),left:p(k),right:p(F)},z={top:p(D),bottom:p(I),left:p($),right:p(N)},_={top:o-y.top,bottom:n+y.bottom,left:l-y.left,right:i+y.right};return{margin:y,padding:q,border:z,top:o,left:l,bottom:n,right:i,width:r,height:f,extremities:_,floatingAlignment:ft(_)}}function at(e,{margin:t,width:o,height:l,top:i,left:n,bottom:r,right:f}){let a=l+t.bottom+t.top;e.fillStyle=L.margin,e.fillRect(n,i-t.top,o,t.top),e.fillRect(f,i-t.top,t.right,a),e.fillRect(n,r,o,t.bottom),e.fillRect(n-t.left,i-t.top,t.left,a);let s=[{type:"margin",text:b(t.top),position:"top"},{type:"margin",text:b(t.right),position:"right"},{type:"margin",text:b(t.bottom),position:"bottom"},{type:"margin",text:b(t.left),position:"left"}];return P(s)}function st(e,{padding:t,border:o,width:l,height:i,top:n,left:r,bottom:f,right:a}){let s=l-o.left-o.right,u=i-t.top-t.bottom-o.top-o.bottom;e.fillStyle=L.padding,e.fillRect(r+o.left,n+o.top,s,t.top),e.fillRect(a-t.right-o.right,n+t.top+o.top,t.right,u),e.fillRect(r+o.left,f-t.bottom-o.bottom,s,t.bottom),e.fillRect(r+o.left,n+t.top+o.top,t.left,u);let g=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return P(g)}function ht(e,{border:t,width:o,height:l,top:i,left:n,bottom:r,right:f}){let a=l-t.top-t.bottom;e.fillStyle=L.border,e.fillRect(n,i,o,t.top),e.fillRect(n,r-t.bottom,o,t.bottom),e.fillRect(n,i+t.top,t.left,a),e.fillRect(f-t.right,i+t.top,t.right,a);let s=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return P(s)}function ut(e,{padding:t,border:o,width:l,height:i,top:n,left:r}){let f=l-o.left-o.right-t.left-t.right,a=i-t.top-t.bottom-o.top-o.bottom;return e.fillStyle=L.content,e.fillRect(r+o.left+t.left,n+o.top+t.top,f,a),[{type:"content",position:"center",text:`${b(f)} x ${b(a)}`}]}function dt(e){return t=>{if(e&&t){let o=rt(e),l=at(t,o),i=st(t,o),n=ht(t,o),r=ut(t,o),f=o.width<=B*3||o.height<=B;nt(t,o,[...r,...i,...n,...l],f)}}}function mt(e){V(dt(e))}var gt=(e,t)=>{let o=d.document.elementFromPoint(e,t),l=i=>{if(i&&i.shadowRoot){let n=i.shadowRoot.elementFromPoint(e,t);return i.isEqualNode(n)?i:n.shadowRoot?l(n):n}return i};return l(o)||o},O,M={x:0,y:0};function R(e,t){O=gt(e,t),mt(O)}var pt=(e,t)=>{let{measureEnabled:o}=t.globals;return T(()=>{let l=i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),M.x=i.clientX,M.y=i.clientY})};return document.addEventListener("pointermove",l),()=>{document.removeEventListener("pointermove",l)}},[]),T(()=>{let l=n=>{window.requestAnimationFrame(()=>{n.stopPropagation(),R(n.clientX,n.clientY)})},i=()=>{window.requestAnimationFrame(()=>{Z()})};return t.viewMode==="story"&&o&&(document.addEventListener("pointerover",l),U(),window.addEventListener("resize",i),R(M.x,M.y)),()=>{window.removeEventListener("resize",i),J()}},[o,t.viewMode]),e()},ct=[pt],wt={[K]:!1};export{ct as decorators,wt as initialGlobals};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as r}from"./index-ClAc6FBW.js";var{step:p}=r({step:async(a,t,e)=>t(e)},{intercept:!0}),s={throwPlayFunctionExceptions:!1};export{s as parameters,p as runStep};
|