@env-hopper/frontend-core 2.0.1-alpha → 2.0.1-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/App.d.ts +1 -1
- package/dist/esm/App.js.map +1 -1
- package/dist/esm/__tests__/integration/appQuickJumpBar.integration.test.d.ts +1 -0
- package/dist/esm/__tests__/integration/factories/BackendMagazine.d.ts +887 -0
- package/dist/esm/__tests__/integration/factories/DbMagazine.d.ts +7 -0
- package/dist/esm/__tests__/integration/factories/app.d.ts +2 -0
- package/dist/esm/__tests__/integration/factories/env.d.ts +2 -0
- package/dist/esm/__tests__/integration/factories/mapper.d.ts +39 -0
- package/dist/esm/__tests__/integration/factories/resourceJump.d.ts +2 -0
- package/dist/esm/__tests__/integration/factories/simpleDSL.d.ts +889 -0
- package/dist/esm/__tests__/integration/factories/types.d.ts +12 -0
- package/dist/esm/__tests__/integration/helpers/renderWithProviders.d.ts +35 -0
- package/dist/esm/__tests__/integration/helpers/testHelpers.d.ts +6 -0
- package/dist/esm/__tests__/integration/helpers/uiHelpers.d.ts +30 -0
- package/dist/esm/__tests__/integration/quickSlots.integration.test.d.ts +1 -0
- package/dist/esm/__tests__/integration/resourceJump.integration.test.d.ts +1 -0
- package/dist/esm/__tests__/integration/setup/svgMock.d.ts +3 -0
- package/dist/esm/__tests__/integration/setup/testSetup.d.ts +0 -0
- package/dist/esm/__tests__/modules/fuzzyMatchLogic/testUtils.d.ts +3 -1
- package/dist/esm/__tests__/modules/resouceJump/helpers.test.d.ts +1 -0
- package/dist/esm/__tests__/modules/resouceJump/utils/mapToFlagshipResourceJumps.test.d.ts +1 -0
- package/dist/esm/__tests__/util/TestMagazine.d.ts +3 -0
- package/dist/esm/api/ApiQueryMagazine.d.ts +4 -4
- package/dist/esm/api/data/useQueryBootstrapConfig.d.ts +1 -1
- package/dist/esm/api/infra/createQueryClient.d.ts +3 -1
- package/dist/esm/api/infra/createQueryClient.js +5 -3
- package/dist/esm/api/infra/createQueryClient.js.map +1 -1
- package/dist/esm/api/infra/trpc.d.ts +1236 -5
- package/dist/esm/api/unsorted/appCatalogFetcher.d.ts +10 -0
- package/dist/esm/api/unsorted/appCatalogFetcher.js +18 -0
- package/dist/esm/api/unsorted/appCatalogFetcher.js.map +1 -0
- package/dist/esm/api/unsorted/createCachingFetcher.d.ts +23 -0
- package/dist/esm/api/unsorted/createCachingFetcher.js +93 -0
- package/dist/esm/api/unsorted/createCachingFetcher.js.map +1 -0
- package/dist/esm/api/unsorted/indexDataFetcher.d.ts +3 -6
- package/dist/esm/api/unsorted/resourceJumpsExtendedFetcher.d.ts +9 -0
- package/dist/esm/api/unsorted/resourceJumpsExtendedFetcher.js +18 -0
- package/dist/esm/api/unsorted/resourceJumpsExtendedFetcher.js.map +1 -0
- package/dist/esm/api/unsorted/resourceJumpsFetcher.d.ts +10 -0
- package/dist/esm/api/unsorted/resourceJumpsFetcher.js +18 -0
- package/dist/esm/api/unsorted/resourceJumpsFetcher.js.map +1 -0
- package/dist/esm/appPropsFactory.js +8 -6
- package/dist/esm/appPropsFactory.js.map +1 -1
- package/dist/esm/assets/app-catalog.svg.js +6 -0
- package/dist/esm/assets/app-catalog.svg.js.map +1 -0
- package/dist/esm/components/IconPickerDialog.d.ts +8 -0
- package/dist/esm/components/IconPickerDialog.js +98 -0
- package/dist/esm/components/IconPickerDialog.js.map +1 -0
- package/dist/esm/components/IconPickerField.d.ts +9 -0
- package/dist/esm/components/IconPickerField.js +76 -0
- package/dist/esm/components/IconPickerField.js.map +1 -0
- package/dist/esm/components/ThemeSwitcher.js +1 -1
- package/dist/esm/components/ThemeSwitcher.js.map +1 -1
- package/dist/esm/lib/getAppMode.d.ts +2 -0
- package/dist/esm/modules/admin-base/components/AdminChat.d.ts +1 -0
- package/dist/esm/modules/admin-base/components/AdminChat.js +82 -0
- package/dist/esm/modules/admin-base/components/AdminChat.js.map +1 -0
- package/dist/esm/modules/admin-base/components/AdminLayout.d.ts +5 -0
- package/dist/esm/modules/admin-base/components/AdminLayout.js +78 -0
- package/dist/esm/modules/admin-base/components/AdminLayout.js.map +1 -0
- package/dist/esm/modules/admin-base/components/AdminWelcome.d.ts +1 -0
- package/dist/esm/modules/admin-base/components/AdminWelcome.js +37 -0
- package/dist/esm/modules/admin-base/components/AdminWelcome.js.map +1 -0
- package/dist/esm/modules/admin-base/context/AdminConfigContext.d.ts +8 -0
- package/dist/esm/modules/admin-base/context/AdminConfigContext.js +27 -0
- package/dist/esm/modules/admin-base/context/AdminConfigContext.js.map +1 -0
- package/dist/esm/modules/admin-base/index.d.ts +5 -0
- package/dist/esm/modules/admin-base/types/adminTypes.d.ts +10 -0
- package/dist/esm/modules/appCatalog/AppCatalogAdminPage.d.ts +1 -0
- package/dist/esm/modules/appCatalog/AppCatalogAdminPage.js +204 -0
- package/dist/esm/modules/appCatalog/AppCatalogAdminPage.js.map +1 -0
- package/dist/esm/modules/appCatalog/AppCatalogEditDialog.d.ts +17 -0
- package/dist/esm/modules/appCatalog/ScreenshotItem.d.ts +7 -0
- package/dist/esm/modules/appCatalog/ScreenshotItem.js +65 -0
- package/dist/esm/modules/appCatalog/ScreenshotItem.js.map +1 -0
- package/dist/esm/modules/appCatalog/ScreenshotManager.d.ts +15 -0
- package/dist/esm/modules/appCatalog/ScreenshotManager.js +155 -0
- package/dist/esm/modules/appCatalog/ScreenshotManager.js.map +1 -0
- package/dist/esm/modules/appCatalog/api/ApiQueryMagazineAppCatalog.d.ts +11 -0
- package/dist/esm/modules/appCatalog/api/ApiQueryMagazineAppCatalog.js +14 -0
- package/dist/esm/modules/appCatalog/api/ApiQueryMagazineAppCatalog.js.map +1 -0
- package/dist/esm/modules/appCatalog/catalogRouteLoader.d.ts +5 -0
- package/dist/esm/modules/appCatalog/catalogRouteLoader.js +20 -0
- package/dist/esm/modules/appCatalog/catalogRouteLoader.js.map +1 -0
- package/dist/esm/modules/appCatalog/context/AppCatalogContext.d.ts +14 -0
- package/dist/esm/modules/appCatalog/context/AppCatalogContext.js +34 -0
- package/dist/esm/modules/appCatalog/context/AppCatalogContext.js.map +1 -0
- package/dist/esm/modules/appCatalog/index.d.ts +10 -0
- package/dist/esm/modules/appCatalog/routeLoader.d.ts +3 -0
- package/dist/esm/modules/appCatalog/routeLoader.js +7 -0
- package/dist/esm/modules/appCatalog/routeLoader.js.map +1 -0
- package/dist/esm/modules/appCatalog/ui/components/AppDetailModal.d.ts +7 -0
- package/dist/esm/modules/appCatalog/ui/components/AppDetailModal.js +208 -0
- package/dist/esm/modules/appCatalog/ui/components/AppDetailModal.js.map +1 -0
- package/dist/esm/modules/appCatalog/ui/grid/AppCatalogFiltersCard.d.ts +9 -0
- package/dist/esm/modules/appCatalog/ui/grid/AppCatalogGrid.d.ts +6 -0
- package/dist/esm/modules/appCatalog/ui/grid/AppCatalogGrid.js +111 -0
- package/dist/esm/modules/appCatalog/ui/grid/AppCatalogGrid.js.map +1 -0
- package/dist/esm/modules/appCatalog/ui/grid/AppCatalogTable.d.ts +5 -0
- package/dist/esm/modules/appCatalog/ui/grid/appCatalogUtils.d.ts +3 -0
- package/dist/esm/modules/appCatalog/ui/layout/AppCatalogLayout.d.ts +9 -0
- package/dist/esm/modules/appCatalog/ui/layout/AppCatalogLayout.js +28 -0
- package/dist/esm/modules/appCatalog/ui/layout/AppCatalogLayout.js.map +1 -0
- package/dist/esm/modules/appCatalog/ui/pages/AppCatalogPage.d.ts +1 -0
- package/dist/esm/modules/appCatalog/ui/pages/AppCatalogPage.js +68 -0
- package/dist/esm/modules/appCatalog/ui/pages/AppCatalogPage.js.map +1 -0
- package/dist/esm/modules/auth/AuthContext.d.ts +38 -0
- package/dist/esm/modules/auth/AuthContext.js +80 -0
- package/dist/esm/modules/auth/AuthContext.js.map +1 -0
- package/dist/esm/modules/auth/AuthModalContext.d.ts +19 -0
- package/dist/esm/modules/auth/AuthModalContext.js +33 -0
- package/dist/esm/modules/auth/AuthModalContext.js.map +1 -0
- package/dist/esm/modules/auth/ProtectedContent.d.ts +19 -0
- package/dist/esm/modules/auth/authClient.d.ts +704 -0
- package/dist/esm/modules/auth/authClient.js +8 -0
- package/dist/esm/modules/auth/authClient.js.map +1 -0
- package/dist/esm/modules/auth/index.d.ts +5 -0
- package/dist/esm/modules/auth/ui/LoginModal.d.ts +6 -0
- package/dist/esm/modules/auth/ui/LoginModal.js +22 -0
- package/dist/esm/modules/auth/ui/LoginModal.js.map +1 -0
- package/dist/esm/modules/auth/ui/LoginPage.d.ts +5 -0
- package/dist/esm/modules/auth/ui/LoginPage.js +50 -0
- package/dist/esm/modules/auth/ui/LoginPage.js.map +1 -0
- package/dist/esm/modules/auth/useAuthActions.d.ts +17 -0
- package/dist/esm/modules/auth/useAuthActions.js +62 -0
- package/dist/esm/modules/auth/useAuthActions.js.map +1 -0
- package/dist/esm/modules/config/BootstrapConfigContext.d.ts +1 -1
- package/dist/esm/modules/config/BootstrapConfigContext.js +2 -12
- package/dist/esm/modules/config/BootstrapConfigContext.js.map +1 -1
- package/dist/esm/modules/config/HealthStateContext.d.ts +16 -0
- package/dist/esm/modules/crossCuttingParams/CrossCuttingParamsContext.d.ts +16 -0
- package/dist/esm/modules/crossCuttingParams/CrossCuttingParamsContext.js +44 -0
- package/dist/esm/modules/crossCuttingParams/CrossCuttingParamsContext.js.map +1 -0
- package/dist/esm/modules/crossCuttingParams/types.d.ts +13 -0
- package/dist/esm/modules/crossCuttingParams/utils/routeLoaderMapper.d.ts +2 -0
- package/dist/esm/modules/environment/{EnvironmentContext.d.ts → context/EnvironmentContext.d.ts} +7 -4
- package/dist/esm/modules/environment/context/EnvironmentContext.js +69 -0
- package/dist/esm/modules/environment/context/EnvironmentContext.js.map +1 -0
- package/dist/esm/modules/environment/context/useEnvironmentHistory.d.ts +5 -0
- package/dist/esm/modules/environment/context/useEnvironmentHistory.js +26 -0
- package/dist/esm/modules/environment/context/useEnvironmentHistory.js.map +1 -0
- package/dist/esm/modules/fuzzyMatchLogic/autoCompleteFilter.js +48 -8
- package/dist/esm/modules/fuzzyMatchLogic/autoCompleteFilter.js.map +1 -1
- package/dist/esm/modules/fuzzyMatchLogic/features/positionBonus.d.ts +1 -0
- package/dist/esm/modules/fuzzyMatchLogic/fixLayout.js +23 -0
- package/dist/esm/modules/fuzzyMatchLogic/fixLayout.js.map +1 -0
- package/dist/esm/modules/fuzzyMatchLogic/postFiltration.d.ts +16 -0
- package/dist/esm/modules/fuzzyMatchLogic/tokenize.js +29 -0
- package/dist/esm/modules/fuzzyMatchLogic/tokenize.js.map +1 -0
- package/dist/esm/modules/fuzzyMatchLogic/types.d.ts +1 -0
- package/dist/esm/modules/icons/IconManagementPage.d.ts +1 -0
- package/dist/esm/modules/icons/IconManagementPage.js +178 -0
- package/dist/esm/modules/icons/IconManagementPage.js.map +1 -0
- package/dist/esm/modules/pluginCore/PluginManagerContext.d.ts +1 -6
- package/dist/esm/modules/pluginCore/PluginManagerContext.js +13 -46
- package/dist/esm/modules/pluginCore/PluginManagerContext.js.map +1 -1
- package/dist/esm/modules/pluginCore/makePluginManagerContext.d.ts +1 -4
- package/dist/esm/modules/pluginCore/makePluginManagerContext.js +2 -20
- package/dist/esm/modules/pluginCore/makePluginManagerContext.js.map +1 -1
- package/dist/esm/modules/pluginCore/types.d.ts +0 -12
- package/dist/esm/modules/resourceJump/api/ApiQueryMagazineResourceJump.d.ts +45 -0
- package/dist/esm/modules/resourceJump/api/ApiQueryMagazineResourceJump.js +42 -0
- package/dist/esm/modules/resourceJump/api/ApiQueryMagazineResourceJump.js.map +1 -0
- package/dist/esm/modules/resourceJump/context/ResourceJumpContext.d.ts +34 -0
- package/dist/esm/modules/resourceJump/context/ResourceJumpContext.js +280 -0
- package/dist/esm/modules/resourceJump/context/ResourceJumpContext.js.map +1 -0
- package/dist/esm/modules/resourceJump/context/useResouceJumpHistory.d.ts +8 -0
- package/dist/esm/modules/resourceJump/context/useResouceJumpHistory.js +86 -0
- package/dist/esm/modules/resourceJump/context/useResouceJumpHistory.js.map +1 -0
- package/dist/esm/modules/resourceJump/routeLoader.js +19 -31
- package/dist/esm/modules/resourceJump/routeLoader.js.map +1 -1
- package/dist/esm/modules/resourceJump/types.d.ts +22 -6
- package/dist/esm/modules/resourceJump/ui/AppSwitcher.d.ts +4 -0
- package/dist/esm/modules/resourceJump/ui/CredentialsWidget.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/EnvSwitcher.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/JumpALink.d.ts +2 -5
- package/dist/esm/modules/resourceJump/ui/JumpMainButton.d.ts +3 -0
- package/dist/esm/modules/resourceJump/ui/LateResolvableSingleParam.d.ts +3 -0
- package/dist/esm/modules/resourceJump/ui/LateResolvableSingleParam.js +42 -0
- package/dist/esm/modules/resourceJump/ui/LateResolvableSingleParam.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/LateResolvableTopParam.d.ts +8 -0
- package/dist/esm/modules/resourceJump/ui/LateResolvableTopParam.js +26 -0
- package/dist/esm/modules/resourceJump/ui/LateResolvableTopParam.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/ResolvableParameterSelector.d.ts +7 -0
- package/dist/esm/modules/resourceJump/ui/ResolvableParameters.d.ts +5 -0
- package/dist/esm/modules/resourceJump/ui/ResourceJumpBreadcrumbs.d.ts +4 -0
- package/dist/esm/modules/resourceJump/ui/ResourceJumpBreadcrumbs.js +59 -0
- package/dist/esm/modules/resourceJump/ui/ResourceJumpBreadcrumbs.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/ResourceJumpButton.d.ts +13 -0
- package/dist/esm/modules/resourceJump/ui/ResourceJumpButton.js +52 -0
- package/dist/esm/modules/resourceJump/ui/ResourceJumpButton.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/ResourceJumpMockTable.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/ResourceJumpMockTable.js +180 -0
- package/dist/esm/modules/resourceJump/ui/ResourceJumpMockTable.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/ShareLinkButton.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/ShareLinkButton.js +84 -0
- package/dist/esm/modules/resourceJump/ui/ShareLinkButton.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/SmoothSwitcher.d.ts +10 -0
- package/dist/esm/modules/resourceJump/ui/TopQuickJump.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/appCatalog/AppCatalogFiltersCard.d.ts +9 -0
- package/dist/esm/modules/resourceJump/ui/appCatalog/AppCatalogGrid.d.ts +6 -0
- package/dist/esm/modules/resourceJump/ui/appCatalog/AppCatalogTable.d.ts +6 -0
- package/dist/esm/modules/resourceJump/ui/appCatalog/appCatalogUtils.d.ts +2 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/AppAutocomplete.d.ts +11 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/CmdKQuickSearchDialog.d.ts +5 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/CommandPalette.d.ts +18 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/CommandPalette.js +35 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/CommandPalette.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/EnvAutocomplete.d.ts +11 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/EnvAutocomplete.js +201 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/EnvAutocomplete.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/QuickSearch.d.ts +3 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/QuickSearch.js +101 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/QuickSearch.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/QuickSearchContext.d.ts +20 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/QuickSearchContext.js +40 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/QuickSearchContext.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/highlightText.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/highlightText.js +13 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/highlightText.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/types.d.ts +6 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/useCmdkDriver.d.ts +8 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/useQuickSearchLogic.d.ts +6 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/useQuickSearchLogic.js +69 -0
- package/dist/esm/modules/resourceJump/ui/cmdk/useQuickSearchLogic.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/layout/CenterColumn.d.ts +3 -0
- package/dist/esm/modules/resourceJump/ui/layout/CenterColumn.js +8 -0
- package/dist/esm/modules/resourceJump/ui/layout/CenterColumn.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/layout/LeftColumn.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/layout/ResourceJumpLayout.d.ts +11 -0
- package/dist/esm/modules/resourceJump/ui/layout/ResourceJumpLayout.js +39 -0
- package/dist/esm/modules/resourceJump/ui/layout/ResourceJumpLayout.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/layout/RightColumn.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/miniEnvSelector/MiniEnvSelectorPopover.d.ts +7 -0
- package/dist/esm/modules/resourceJump/ui/pages/AppCatalog.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/AppCatalog.js +64 -0
- package/dist/esm/modules/resourceJump/ui/pages/AppCatalog.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/AppPage.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/AppPage.js +17 -0
- package/dist/esm/modules/resourceJump/ui/pages/AppPage.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/AppPageFlagship.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/AppPageFlagship.js +94 -0
- package/dist/esm/modules/resourceJump/ui/pages/AppPageFlagship.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/AppPageRegular.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/AppPageRegular.js +16 -0
- package/dist/esm/modules/resourceJump/ui/pages/AppPageRegular.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/DashboardPage.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/DashboardPage.js +15 -0
- package/dist/esm/modules/resourceJump/ui/pages/DashboardPage.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/EnvCatalog.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/EnvCatalog.js +48 -0
- package/dist/esm/modules/resourceJump/ui/pages/EnvCatalog.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/EnvPage.d.ts +10 -0
- package/dist/esm/modules/resourceJump/ui/pages/EnvPage.js +83 -0
- package/dist/esm/modules/resourceJump/ui/pages/EnvPage.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/HomePage.d.ts +1 -0
- package/dist/esm/modules/resourceJump/ui/pages/HomePage.js +36 -0
- package/dist/esm/modules/resourceJump/ui/pages/HomePage.js.map +1 -0
- package/dist/esm/modules/resourceJump/ui/widgets/VersionWidget.d.ts +5 -0
- package/dist/esm/modules/resourceJump/utils/buildJumpUrl.d.ts +2 -0
- package/dist/esm/modules/resourceJump/utils/buildJumpUrl.js +28 -0
- package/dist/esm/modules/resourceJump/utils/buildJumpUrl.js.map +1 -0
- package/dist/esm/modules/resourceJump/{findBestMatchByUrl.d.ts → utils/findBestMatchByUrl.d.ts} +4 -4
- package/dist/esm/modules/resourceJump/{helpers.d.ts → utils/helpers.d.ts} +8 -4
- package/dist/esm/modules/resourceJump/utils/helpers.js +30 -0
- package/dist/esm/modules/resourceJump/utils/helpers.js.map +1 -0
- package/dist/esm/modules/resourceJump/utils/mapToFlagshipResourceJumps.d.ts +12 -0
- package/dist/esm/modules/resourceJump/utils/mapToFlagshipResourceJumps.js +38 -0
- package/dist/esm/modules/resourceJump/utils/mapToFlagshipResourceJumps.js.map +1 -0
- package/dist/esm/modules/resourceJump/utils/mapToResouceJumpUis.d.ts +4 -0
- package/dist/esm/modules/resourceJump/utils/mapToResouceJumpUis.js +17 -0
- package/dist/esm/modules/resourceJump/utils/mapToResouceJumpUis.js.map +1 -0
- package/dist/esm/modules/resourceJump/utils/statistics/statisticsHelpers.d.ts +8 -0
- package/dist/esm/modules/resourceJump/utils/statistics/useEnvStatistics.d.ts +2 -0
- package/dist/esm/modules/resourceJump/utils/statistics/useEnvStatistics.js +25 -0
- package/dist/esm/modules/resourceJump/utils/statistics/useEnvStatistics.js.map +1 -0
- package/dist/esm/modules/resourceJump/utils/statistics/useMostRelevantLateParamSlug.d.ts +1 -0
- package/dist/esm/modules/resourceJump/utils/statistics/useMostRelevantLateParamSlug.js +12 -0
- package/dist/esm/modules/resourceJump/utils/statistics/useMostRelevantLateParamSlug.js.map +1 -0
- package/dist/esm/modules/resourceJump/utils/statistics/useMostRelevantQuickEnvs.d.ts +2 -0
- package/dist/esm/modules/resourceJump/utils/statistics/useMostRelevantQuickFlagships.d.ts +2 -0
- package/dist/esm/node_modules/.pnpm/@dnd-kit_accessibility@3.1.1_react@19.1.2/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +60 -0
- package/dist/esm/node_modules/.pnpm/@dnd-kit_accessibility@3.1.1_react@19.1.2/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.1.2_react@19.1.2__react@19.1.2/node_modules/@dnd-kit/core/dist/core.esm.js +3055 -0
- package/dist/esm/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.1.2_react@19.1.2__react@19.1.2/node_modules/@dnd-kit/core/dist/core.esm.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@dnd-kit_sortable@10.0.0_@dnd-kit_core@6.3.1_react-dom@19.1.2_react@19.1.2__react@19.1.2__react@19.1.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +593 -0
- package/dist/esm/node_modules/.pnpm/@dnd-kit_sortable@10.0.0_@dnd-kit_core@6.3.1_react-dom@19.1.2_react@19.1.2__react@19.1.2__react@19.1.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@dnd-kit_utilities@3.2.2_react@19.1.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +302 -0
- package/dist/esm/node_modules/.pnpm/@dnd-kit_utilities@3.2.2_react@19.1.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@hookform_resolvers@5.2.2_react-hook-form@7.71.1_react@19.1.2_/node_modules/@hookform/resolvers/dist/resolvers.js +34 -0
- package/dist/esm/node_modules/.pnpm/@hookform_resolvers@5.2.2_react-hook-form@7.71.1_react@19.1.2_/node_modules/@hookform/resolvers/dist/resolvers.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@hookform_resolvers@5.2.2_react-hook-form@7.71.1_react@19.1.2_/node_modules/@hookform/resolvers/zod/dist/zod.js +94 -0
- package/dist/esm/node_modules/.pnpm/@hookform_resolvers@5.2.2_react-hook-form@7.71.1_react@19.1.2_/node_modules/@hookform/resolvers/zod/dist/zod.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_react-router-devtools@1.151.6_@tanstack_react-router@1.151.6_react-dom@19.1.2_20b78d099e847743bc64b4d051c71d30/node_modules/@tanstack/react-router-devtools/dist/esm/TanStackRouterDevtools.js +72 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_react-router-devtools@1.151.6_@tanstack_react-router@1.151.6_react-dom@19.1.2_20b78d099e847743bc64b4d051c71d30/node_modules/@tanstack/react-router-devtools/dist/esm/TanStackRouterDevtools.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_react-router-devtools@1.151.6_@tanstack_react-router@1.151.6_react-dom@19.1.2_20b78d099e847743bc64b4d051c71d30/node_modules/@tanstack/react-router-devtools/dist/esm/TanStackRouterDevtoolsPanel.js +44 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_react-router-devtools@1.151.6_@tanstack_react-router@1.151.6_react-dom@19.1.2_20b78d099e847743bc64b4d051c71d30/node_modules/@tanstack/react-router-devtools/dist/esm/TanStackRouterDevtoolsPanel.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_react-router-devtools@1.151.6_@tanstack_react-router@1.151.6_react-dom@19.1.2_20b78d099e847743bc64b4d051c71d30/node_modules/@tanstack/react-router-devtools/dist/esm/index.js +12 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_react-router-devtools@1.151.6_@tanstack_react-router@1.151.6_react-dom@19.1.2_20b78d099e847743bc64b4d051c71d30/node_modules/@tanstack/react-router-devtools/dist/esm/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-core@1.151.6/node_modules/@tanstack/router-core/dist/esm/new-process-route-tree.js +95 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-core@1.151.6/node_modules/@tanstack/router-core/dist/esm/new-process-route-tree.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-core@1.151.6/node_modules/@tanstack/router-core/dist/esm/path.js +107 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-core@1.151.6/node_modules/@tanstack/router-core/dist/esm/path.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-core@1.151.6/node_modules/@tanstack/router-core/dist/esm/root.js +5 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-core@1.151.6/node_modules/@tanstack/router-core/dist/esm/root.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-devtools-core@1.151.6_@tanstack_router-core@1.151.6_csstype@3.2.3/node_modules/@tanstack/router-devtools-core/dist/BaseTanStackRouterDevtoolsPanel-DxaCaP75.js +1963 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-devtools-core@1.151.6_@tanstack_router-core@1.151.6_csstype@3.2.3/node_modules/@tanstack/router-devtools-core/dist/BaseTanStackRouterDevtoolsPanel-DxaCaP75.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-devtools-core@1.151.6_@tanstack_router-core@1.151.6_csstype@3.2.3/node_modules/@tanstack/router-devtools-core/dist/FloatingTanStackRouterDevtools-CaypUmOS.js +284 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-devtools-core@1.151.6_@tanstack_router-core@1.151.6_csstype@3.2.3/node_modules/@tanstack/router-devtools-core/dist/FloatingTanStackRouterDevtools-CaypUmOS.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-devtools-core@1.151.6_@tanstack_router-core@1.151.6_csstype@3.2.3/node_modules/@tanstack/router-devtools-core/dist/index-5jfj03XJ.js +1855 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_router-devtools-core@1.151.6_@tanstack_router-core@1.151.6_csstype@3.2.3/node_modules/@tanstack/router-devtools-core/dist/index-5jfj03XJ.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/goober@2.1.18_csstype@3.2.3/node_modules/goober/dist/goober.modern.js +56 -0
- package/dist/esm/node_modules/.pnpm/goober@2.1.18_csstype@3.2.3/node_modules/goober/dist/goober.modern.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/react-hook-form@7.71.1_react@19.1.2/node_modules/react-hook-form/dist/index.esm.js +1894 -0
- package/dist/esm/node_modules/.pnpm/react-hook-form@7.71.1_react@19.1.2/node_modules/react-hook-form/dist/index.esm.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/tiny-invariant@1.3.3/node_modules/tiny-invariant/dist/esm/tiny-invariant.js +17 -0
- package/dist/esm/node_modules/.pnpm/tiny-invariant@1.3.3/node_modules/tiny-invariant/dist/esm/tiny-invariant.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/errors.js +45 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/errors.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/iso.js +44 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/iso.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/parse.js +30 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/parse.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/schemas.js +622 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/schemas.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/api.js +492 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/api.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/checks.js +244 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/checks.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/core.js +75 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/core.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/doc.js +38 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/doc.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/errors.js +73 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/errors.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/json-schema-processors.js +270 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/json-schema-processors.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/parse.js +100 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/parse.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/regexes.js +78 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/regexes.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/registries.js +52 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/registries.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/schemas.js +1225 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/schemas.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/to-json-schema.js +363 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/to-json-schema.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/util.js +407 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/util.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/versions.js +9 -0
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/versions.js.map +1 -0
- package/dist/esm/packages/shared-core/dist/esm/defaultWithOverridesAndTemplate.js +35 -0
- package/dist/esm/packages/shared-core/dist/esm/defaultWithOverridesAndTemplate.js.map +1 -0
- package/dist/esm/plugins/builtin/pageUrl/pageUrlAutoCompletePlugin.d.ts +3 -5
- package/dist/esm/routeTree.gen.d.ts +250 -91
- package/dist/esm/routeTree.gen.js +122 -50
- package/dist/esm/routeTree.gen.js.map +1 -1
- package/dist/esm/routes/__root.d.ts +1 -1
- package/dist/esm/routes/__root.js +6 -5
- package/dist/esm/routes/__root.js.map +1 -1
- package/dist/esm/routes/_layout/app.$appSlug.index.d.ts +1 -0
- package/dist/esm/routes/_layout/app._appSlug.index.js +13 -0
- package/dist/esm/routes/_layout/app._appSlug.index.js.map +1 -0
- package/dist/esm/routes/_layout/app._appSlug.index2.js +16 -0
- package/dist/esm/routes/_layout/app._appSlug.index2.js.map +1 -0
- package/dist/esm/routes/_layout/apps.index.d.ts +1 -0
- package/dist/esm/routes/_layout/apps.index.js +13 -0
- package/dist/esm/routes/_layout/apps.index.js.map +1 -0
- package/dist/esm/routes/_layout/apps.index2.js +16 -0
- package/dist/esm/routes/_layout/apps.index2.js.map +1 -0
- package/dist/esm/routes/_layout/catalog.apps.index.d.ts +4 -0
- package/dist/esm/routes/_layout/catalog.apps.index.js +18 -0
- package/dist/esm/routes/_layout/catalog.apps.index.js.map +1 -0
- package/dist/esm/routes/_layout/catalog.apps.index2.js +15 -0
- package/dist/esm/routes/_layout/catalog.apps.index2.js.map +1 -0
- package/dist/esm/routes/_layout/catalog.index.d.ts +1 -0
- package/dist/esm/routes/_layout/catalog.index.js +15 -0
- package/dist/esm/routes/_layout/catalog.index.js.map +1 -0
- package/dist/esm/routes/_layout/catalog.index2.js +16 -0
- package/dist/esm/routes/_layout/catalog.index2.js.map +1 -0
- package/dist/esm/routes/_layout/dashboard.index.d.ts +1 -0
- package/dist/esm/routes/_layout/dashboard.index.js +13 -0
- package/dist/esm/routes/_layout/dashboard.index.js.map +1 -0
- package/dist/esm/routes/_layout/dashboard.index2.js +16 -0
- package/dist/esm/routes/_layout/dashboard.index2.js.map +1 -0
- package/dist/esm/routes/_layout/env.$envSlug.app.$appSlug.index.d.ts +1 -0
- package/dist/esm/routes/_layout/env.$envSlug.index.d.ts +1 -0
- package/dist/esm/routes/_layout/env._envSlug.app._appSlug.index.js +13 -0
- package/dist/esm/routes/_layout/env._envSlug.app._appSlug.index.js.map +1 -0
- package/dist/esm/routes/_layout/env._envSlug.app._appSlug.index2.js +16 -0
- package/dist/esm/routes/_layout/env._envSlug.app._appSlug.index2.js.map +1 -0
- package/dist/esm/routes/_layout/env._envSlug.index.js +13 -0
- package/dist/esm/routes/_layout/env._envSlug.index.js.map +1 -0
- package/dist/esm/routes/_layout/env._envSlug.index2.js +16 -0
- package/dist/esm/routes/_layout/env._envSlug.index2.js.map +1 -0
- package/dist/esm/routes/_layout/envs.index.d.ts +1 -0
- package/dist/esm/routes/_layout/envs.index.js +13 -0
- package/dist/esm/routes/_layout/envs.index.js.map +1 -0
- package/dist/esm/routes/_layout/envs.index2.js +16 -0
- package/dist/esm/routes/_layout/envs.index2.js.map +1 -0
- package/dist/esm/routes/_layout/index.d.ts +27 -1
- package/dist/esm/routes/_layout/index.js +14 -10
- package/dist/esm/routes/_layout/index.js.map +1 -1
- package/dist/esm/routes/_layout/index2.js +24 -0
- package/dist/esm/routes/_layout/index2.js.map +1 -0
- package/dist/esm/routes/_layout/login.d.ts +1 -0
- package/dist/esm/routes/_layout/login.js +9 -0
- package/dist/esm/routes/_layout/login.js.map +1 -0
- package/dist/esm/routes/_layout/login2.js +16 -0
- package/dist/esm/routes/_layout/login2.js.map +1 -0
- package/dist/esm/routes/_layout.d.ts +1 -1
- package/dist/esm/routes/_layout.js +3 -6
- package/dist/esm/routes/_layout.js.map +1 -1
- package/dist/esm/routes/_layout2.js +9 -0
- package/dist/esm/routes/_layout2.js.map +1 -0
- package/dist/esm/routes/admin/app-for-catalog/$id.d.ts +5 -0
- package/dist/esm/routes/admin/app-for-catalog/_id.js +47 -0
- package/dist/esm/routes/admin/app-for-catalog/_id.js.map +1 -0
- package/dist/esm/routes/admin/app-for-catalog/_id2.js +269 -0
- package/dist/esm/routes/admin/app-for-catalog/_id2.js.map +1 -0
- package/dist/esm/routes/admin/app-for-catalog/index.d.ts +1 -0
- package/dist/esm/routes/admin/app-for-catalog/index.js +9 -0
- package/dist/esm/routes/admin/app-for-catalog/index.js.map +1 -0
- package/dist/esm/routes/admin/app-for-catalog/index2.js +12 -0
- package/dist/esm/routes/admin/app-for-catalog/index2.js.map +1 -0
- package/dist/esm/routes/admin/app-for-catalog.d.ts +1 -0
- package/dist/esm/routes/admin/app-for-catalog.js +14 -0
- package/dist/esm/routes/admin/app-for-catalog.js.map +1 -0
- package/dist/esm/routes/admin/app-for-catalog2.js +9 -0
- package/dist/esm/routes/admin/app-for-catalog2.js.map +1 -0
- package/dist/esm/routes/admin/chat.d.ts +1 -0
- package/dist/esm/routes/admin/chat.js +14 -0
- package/dist/esm/routes/admin/chat.js.map +1 -0
- package/dist/esm/routes/admin/chat2.js +9 -0
- package/dist/esm/routes/admin/chat2.js.map +1 -0
- package/dist/esm/routes/admin/icons.d.ts +1 -0
- package/dist/esm/routes/admin/icons.js +14 -0
- package/dist/esm/routes/admin/icons.js.map +1 -0
- package/dist/esm/routes/admin/icons2.js +12 -0
- package/dist/esm/routes/admin/icons2.js.map +1 -0
- package/dist/esm/routes/admin/index.d.ts +1 -0
- package/dist/esm/routes/admin/index.js +9 -0
- package/dist/esm/routes/admin/index.js.map +1 -0
- package/dist/esm/routes/admin/index2.js +9 -0
- package/dist/esm/routes/admin/index2.js.map +1 -0
- package/dist/esm/routes/admin.d.ts +1 -0
- package/dist/esm/routes/admin.js +14 -0
- package/dist/esm/routes/admin.js.map +1 -0
- package/dist/esm/routes/admin2.js +18 -0
- package/dist/esm/routes/admin2.js.map +1 -0
- package/dist/esm/routes/auth.callback.d.ts +4 -0
- package/dist/esm/routes/auth.callback.js +13 -0
- package/dist/esm/routes/auth.callback.js.map +1 -0
- package/dist/esm/routes/auth.callback2.js +49 -0
- package/dist/esm/routes/auth.callback2.js.map +1 -0
- package/dist/esm/types/ehTypes.d.ts +2 -5
- package/dist/esm/types/tanstackQuery.d.ts +2 -0
- package/dist/esm/types/types.d.ts +12 -3
- package/dist/esm/types/userBehaviourTypes.d.ts +1 -1
- package/dist/esm/ui/autocomplete.d.ts +29 -0
- package/dist/esm/ui/autocomplete.js +164 -0
- package/dist/esm/ui/autocomplete.js.map +1 -0
- package/dist/esm/ui/badge.js +27 -0
- package/dist/esm/ui/badge.js.map +1 -0
- package/dist/esm/ui/breadcrumb.d.ts +11 -0
- package/dist/esm/ui/breadcrumb.js +84 -0
- package/dist/esm/ui/breadcrumb.js.map +1 -0
- package/dist/esm/ui/button-group.d.ts +11 -0
- package/dist/esm/ui/button-group.js +40 -0
- package/dist/esm/ui/button-group.js.map +1 -0
- package/dist/esm/ui/button.d.ts +13 -0
- package/dist/esm/ui/button.js +53 -0
- package/dist/esm/ui/button.js.map +1 -0
- package/dist/esm/ui/card.d.ts +9 -0
- package/dist/esm/ui/card.js +66 -0
- package/dist/esm/ui/card.js.map +1 -0
- package/dist/esm/ui/checkbox.d.ts +4 -0
- package/dist/esm/ui/checkbox.js +32 -0
- package/dist/esm/ui/checkbox.js.map +1 -0
- package/dist/esm/{components/ui → ui}/collapsible.d.ts +1 -1
- package/dist/esm/ui/collapsible.js +47 -0
- package/dist/esm/ui/collapsible.js.map +1 -0
- package/dist/esm/ui/command.d.ts +20 -0
- package/dist/esm/ui/command.js +168 -0
- package/dist/esm/ui/command.js.map +1 -0
- package/dist/esm/ui/components/Breadcrumbs.d.ts +19 -0
- package/dist/esm/ui/components/Breadcrumbs.js +36 -0
- package/dist/esm/ui/components/Breadcrumbs.js.map +1 -0
- package/dist/esm/ui/components/commandInput/EhBaseSelector.d.ts +0 -4
- package/dist/esm/ui/components/contextDebug.js +54 -6
- package/dist/esm/ui/components/contextDebug.js.map +1 -1
- package/dist/esm/ui/components/error/DefaultErrorComponent.d.ts +2 -1
- package/dist/esm/ui/components/error/DefaultErrorComponent.js +75 -8
- package/dist/esm/ui/components/error/DefaultErrorComponent.js.map +1 -1
- package/dist/esm/ui/components/error/RootErrorPage.d.ts +2 -0
- package/dist/esm/ui/components/error/RootErrorPage.js +9 -0
- package/dist/esm/ui/components/error/RootErrorPage.js.map +1 -0
- package/dist/esm/ui/components/footer/Footer.js +33 -30
- package/dist/esm/ui/components/footer/Footer.js.map +1 -1
- package/dist/esm/ui/components/header/Header.d.ts +5 -0
- package/dist/esm/ui/components/header/Header.js +111 -0
- package/dist/esm/ui/components/header/Header.js.map +1 -0
- package/dist/esm/ui/components/quickBar/AppQuickJumpBar.d.ts +5 -0
- package/dist/esm/ui/components/quickBar/QuickJumpButton.d.ts +7 -0
- package/dist/esm/ui/components/quickBar/ResourceJumpGroupViewer.d.ts +5 -0
- package/dist/esm/ui/components/quickBar/arrangeGridItems.d.ts +16 -0
- package/dist/esm/{components/ui → ui}/dialog.d.ts +3 -9
- package/dist/esm/ui/dialog.js +137 -0
- package/dist/esm/ui/dialog.js.map +1 -0
- package/dist/esm/{components/ui → ui}/dropdown-menu.d.ts +2 -2
- package/dist/esm/ui/dropdown-menu.js +79 -0
- package/dist/esm/ui/dropdown-menu.js.map +1 -0
- package/dist/esm/ui/empty.d.ts +11 -0
- package/dist/esm/ui/empty.js +103 -0
- package/dist/esm/ui/empty.js.map +1 -0
- package/dist/esm/ui/error/NotFoundError.js +4 -3
- package/dist/esm/ui/error/NotFoundError.js.map +1 -1
- package/dist/esm/ui/form.d.ts +56 -0
- package/dist/esm/ui/form.js +134 -0
- package/dist/esm/ui/form.js.map +1 -0
- package/dist/esm/ui/input-group.d.ts +16 -0
- package/dist/esm/ui/input-group.js +125 -0
- package/dist/esm/ui/input-group.js.map +1 -0
- package/dist/esm/ui/input.d.ts +3 -0
- package/dist/esm/ui/input.js +22 -0
- package/dist/esm/ui/input.js.map +1 -0
- package/dist/esm/ui/label.d.ts +4 -0
- package/dist/esm/ui/label.js +23 -0
- package/dist/esm/ui/label.js.map +1 -0
- package/dist/esm/ui/layout/LoadingScreen.d.ts +3 -1
- package/dist/esm/ui/layout/LoadingScreen.js +47 -7
- package/dist/esm/ui/layout/LoadingScreen.js.map +1 -1
- package/dist/esm/ui/layout/MainLayout.d.ts +3 -1
- package/dist/esm/ui/layout/MainLayout.js +5 -6
- package/dist/esm/ui/layout/MainLayout.js.map +1 -1
- package/dist/esm/ui/layout/TopLevelProviders.d.ts +5 -0
- package/dist/esm/ui/layout/TopLevelProviders.js +39 -18
- package/dist/esm/ui/layout/TopLevelProviders.js.map +1 -1
- package/dist/esm/ui/layout/TopLevelProvidersForErrors.d.ts +10 -0
- package/dist/esm/ui/layout/TopLevelProvidersForErrors.js +24 -0
- package/dist/esm/ui/layout/TopLevelProvidersForErrors.js.map +1 -0
- package/dist/esm/ui/link.d.ts +10 -0
- package/dist/esm/ui/link.js +28 -0
- package/dist/esm/ui/link.js.map +1 -0
- package/dist/esm/ui/linkExternal.d.ts +8 -0
- package/dist/esm/ui/linkExternal.js +26 -0
- package/dist/esm/ui/linkExternal.js.map +1 -0
- package/dist/esm/ui/radio-group.d.ts +5 -0
- package/dist/esm/ui/scroll-area.js +62 -0
- package/dist/esm/ui/scroll-area.js.map +1 -0
- package/dist/esm/ui/search-input-with-shortcut.d.ts +25 -0
- package/dist/esm/ui/select.d.ts +15 -0
- package/dist/esm/ui/select.js +138 -0
- package/dist/esm/ui/select.js.map +1 -0
- package/dist/esm/{components/ui → ui}/separator.js +1 -1
- package/dist/esm/ui/separator.js.map +1 -0
- package/dist/esm/ui/shortcut-button.d.ts +24 -0
- package/dist/esm/ui/shortcut-button.js +57 -0
- package/dist/esm/ui/shortcut-button.js.map +1 -0
- package/dist/esm/ui/skeleton.d.ts +2 -0
- package/dist/esm/ui/skeleton.js +16 -0
- package/dist/esm/ui/skeleton.js.map +1 -0
- package/dist/esm/ui/spinner.d.ts +2 -0
- package/dist/esm/ui/spinner.js +18 -0
- package/dist/esm/ui/spinner.js.map +1 -0
- package/dist/esm/ui/table.d.ts +10 -0
- package/dist/esm/ui/table.js +87 -0
- package/dist/esm/ui/table.js.map +1 -0
- package/dist/esm/ui/textarea.d.ts +3 -0
- package/dist/esm/ui/textarea.js +19 -0
- package/dist/esm/ui/textarea.js.map +1 -0
- package/dist/esm/ui/tooltip.d.ts +7 -0
- package/dist/esm/userDb/EhDb.d.ts +16 -2
- package/dist/esm/userDb/EhDb.js +28 -2
- package/dist/esm/userDb/EhDb.js.map +1 -1
- package/dist/esm/util/availabilityMatrixUtils.d.ts +2 -2
- package/dist/esm/util/createEhRouter.d.ts +1 -1
- package/dist/esm/util/createEhRouter.js +4 -1
- package/dist/esm/util/createEhRouter.js.map +1 -1
- package/dist/esm/util/error-utils.d.ts +6 -0
- package/dist/esm/util/error-utils.js +28 -0
- package/dist/esm/util/error-utils.js.map +1 -0
- package/dist/esm/util/reactQueryUtils.d.ts +4 -0
- package/dist/esm/util/reactQueryUtils.js +7 -0
- package/dist/esm/util/reactQueryUtils.js.map +1 -1
- package/dist/esm/util/route-utils.d.ts +23 -2
- package/dist/esm/util/route-utils.js +11 -37
- package/dist/esm/util/route-utils.js.map +1 -1
- package/dist/esm/util/slug-utils.d.ts +12 -0
- package/dist/index.css +225 -0
- package/dist/public/app-catalog-16x16.png +0 -0
- package/dist/public/app-catalog-192x192.png +0 -0
- package/dist/public/app-catalog-32x32.png +0 -0
- package/dist/public/app-catalog-48x48.png +0 -0
- package/dist/public/app-catalog-512x512.png +0 -0
- package/dist/public/app-catalog-square.svg +160 -0
- package/dist/public/app-catalog.png +0 -0
- package/dist/public/app-catalog.svg +198 -0
- package/dist/public/favicon-app-catalog.ico +0 -0
- package/package.json +55 -16
- package/public/app-catalog-16x16.png +0 -0
- package/public/app-catalog-192x192.png +0 -0
- package/public/app-catalog-32x32.png +0 -0
- package/public/app-catalog-48x48.png +0 -0
- package/public/app-catalog-512x512.png +0 -0
- package/public/app-catalog-square.svg +160 -0
- package/public/app-catalog.png +0 -0
- package/public/app-catalog.svg +198 -0
- package/public/apple-touch-180x180.png +0 -0
- package/public/env-hopper-16x16.png +0 -0
- package/public/env-hopper-192x192.png +0 -0
- package/public/env-hopper-32x32.png +0 -0
- package/public/env-hopper-48x48.png +0 -0
- package/public/env-hopper-512x512.png +0 -0
- package/public/env-hopper-square.svg +114 -0
- package/public/favicon-app-catalog.ico +0 -0
- package/public/favicon.ico +0 -0
- package/public/robots.txt +2 -0
- package/src/App.tsx +1 -1
- package/src/__tests__/integration/appQuickJumpBar.integration.test.tsx +25 -0
- package/src/__tests__/integration/factories/BackendMagazine.ts +14 -0
- package/src/__tests__/integration/factories/DbMagazine.ts +13 -0
- package/src/__tests__/integration/factories/app.ts +14 -0
- package/src/__tests__/integration/factories/env.ts +14 -0
- package/src/__tests__/integration/factories/mapper.ts +253 -0
- package/src/__tests__/integration/factories/resourceJump.ts +15 -0
- package/src/__tests__/integration/factories/simpleDSL.ts +8 -0
- package/src/__tests__/integration/factories/types.ts +18 -0
- package/src/__tests__/integration/helpers/renderWithProviders.tsx +182 -0
- package/src/__tests__/integration/helpers/testHelpers.ts +24 -0
- package/src/__tests__/integration/helpers/uiHelpers.ts +166 -0
- package/src/__tests__/integration/quickSlots.integration.test.tsx +17 -0
- package/src/__tests__/integration/resourceJump.integration.test.tsx +184 -0
- package/src/__tests__/integration/setup/svgMock.tsx +10 -0
- package/src/__tests__/integration/setup/testSetup.ts +35 -0
- package/src/__tests__/modules/fuzzyMatchLogic/autoCompleteFilter.test.ts +64 -50
- package/src/__tests__/modules/fuzzyMatchLogic/testUtils.ts +10 -1
- package/src/__tests__/modules/resouceJump/findBestMatchByUrl.test.ts +15 -17
- package/src/__tests__/modules/resouceJump/helpers.test.ts +55 -0
- package/src/__tests__/modules/resouceJump/utils/mapToFlagshipResourceJumps.test.ts +58 -0
- package/src/__tests__/util/TestMagazine.ts +24 -0
- package/src/api/ApiQueryMagazine.ts +2 -2
- package/src/api/data/useQueryBootstrapConfig.ts +7 -6
- package/src/api/infra/createQueryClient.ts +5 -1
- package/src/api/unsorted/appCatalogFetcher.ts +32 -0
- package/src/api/unsorted/createCachingFetcher.ts +159 -0
- package/src/api/unsorted/indexDataFetcher.ts +13 -34
- package/src/api/unsorted/resourceJumpsExtendedFetcher.ts +33 -0
- package/src/api/unsorted/resourceJumpsFetcher.ts +32 -0
- package/src/appPropsFactory.ts +8 -6
- package/src/assets/app-catalog.svg +198 -0
- package/src/components/IconPickerDialog.tsx +136 -0
- package/src/components/IconPickerField.tsx +88 -0
- package/src/components/ThemeSwitcher.tsx +1 -1
- package/src/index.css +14 -0
- package/src/lib/getAppMode.ts +5 -0
- package/src/main.tsx +9 -5
- package/src/modules/admin-base/components/AdminChat.tsx +122 -0
- package/src/modules/admin-base/components/AdminLayout.tsx +105 -0
- package/src/modules/admin-base/components/AdminWelcome.tsx +52 -0
- package/src/modules/admin-base/context/AdminConfigContext.tsx +36 -0
- package/src/modules/admin-base/index.ts +16 -0
- package/src/modules/admin-base/types/adminTypes.ts +11 -0
- package/src/modules/appCatalog/AppCatalogAdminPage.tsx +281 -0
- package/src/modules/appCatalog/AppCatalogEditDialog.tsx +268 -0
- package/src/modules/appCatalog/ScreenshotItem.tsx +63 -0
- package/src/modules/appCatalog/ScreenshotManager.tsx +193 -0
- package/src/modules/appCatalog/api/ApiQueryMagazineAppCatalog.ts +12 -0
- package/src/modules/appCatalog/catalogRouteLoader.ts +28 -0
- package/src/modules/appCatalog/context/AppCatalogContext.tsx +46 -0
- package/src/modules/appCatalog/index.ts +16 -0
- package/src/modules/appCatalog/routeLoader.ts +9 -0
- package/src/modules/appCatalog/ui/components/AppDetailModal.tsx +283 -0
- package/src/modules/appCatalog/ui/grid/AppCatalogFiltersCard.tsx +79 -0
- package/src/modules/appCatalog/ui/grid/AppCatalogGrid.tsx +160 -0
- package/src/modules/appCatalog/ui/grid/AppCatalogTable.tsx +89 -0
- package/src/modules/appCatalog/ui/grid/appCatalogUtils.ts +30 -0
- package/src/modules/appCatalog/ui/layout/AppCatalogLayout.tsx +55 -0
- package/src/modules/appCatalog/ui/pages/AppCatalogPage.tsx +86 -0
- package/src/modules/auth/AuthContext.tsx +117 -0
- package/src/modules/auth/AuthModalContext.tsx +49 -0
- package/src/modules/auth/ProtectedContent.tsx +55 -0
- package/src/modules/auth/authClient.ts +9 -0
- package/src/modules/auth/index.ts +6 -0
- package/src/modules/auth/ui/LoginModal.tsx +36 -0
- package/src/modules/auth/ui/LoginPage.tsx +62 -0
- package/src/modules/auth/useAuthActions.ts +85 -0
- package/src/modules/config/BootstrapConfigContext.tsx +1 -1
- package/src/modules/config/HealthStateContext.tsx +47 -0
- package/src/modules/crossCuttingParams/CrossCuttingParamsContext.tsx +75 -0
- package/src/modules/crossCuttingParams/types.ts +18 -0
- package/src/modules/crossCuttingParams/utils/routeLoaderMapper.ts +7 -0
- package/src/modules/environment/{EnvironmentContext.tsx → context/EnvironmentContext.tsx} +37 -30
- package/src/modules/environment/context/useEnvironmentHistory.ts +30 -0
- package/src/modules/fuzzyMatchLogic/autoCompleteFilter.ts +86 -11
- package/src/modules/fuzzyMatchLogic/features/positionBonus.ts +29 -0
- package/src/modules/fuzzyMatchLogic/features/prefixFracTokenMiddles.ts +1 -1
- package/src/modules/fuzzyMatchLogic/postFiltration.ts +133 -0
- package/src/modules/fuzzyMatchLogic/scoring.ts +7 -1
- package/src/modules/fuzzyMatchLogic/tokenize.ts +12 -1
- package/src/modules/fuzzyMatchLogic/types.ts +1 -0
- package/src/modules/icons/IconManagementPage.tsx +237 -0
- package/src/modules/pluginCore/PluginManagerContext.tsx +14 -43
- package/src/modules/pluginCore/makePluginManagerContext.ts +3 -25
- package/src/modules/pluginCore/types.ts +0 -27
- package/src/modules/resourceJump/api/ApiQueryMagazineResourceJump.ts +52 -0
- package/src/modules/resourceJump/context/ResourceJumpContext.tsx +395 -0
- package/src/modules/resourceJump/context/useResouceJumpHistory.ts +117 -0
- package/src/modules/resourceJump/routeLoader.ts +28 -36
- package/src/modules/resourceJump/types.ts +25 -6
- package/src/modules/resourceJump/ui/AppSwitcher.tsx +22 -0
- package/src/modules/resourceJump/ui/CredentialsWidget.tsx +15 -0
- package/src/modules/resourceJump/ui/EnvSwitcher.tsx +17 -0
- package/src/modules/resourceJump/ui/JumpALink.tsx +3 -11
- package/src/modules/resourceJump/ui/JumpMainButton.tsx +85 -44
- package/src/modules/resourceJump/ui/LateResolvableSingleParam.tsx +47 -0
- package/src/modules/resourceJump/ui/LateResolvableTopParam.tsx +46 -0
- package/src/modules/resourceJump/ui/ResolvableParameterSelector.tsx +109 -0
- package/src/modules/resourceJump/ui/ResolvableParameters.tsx +26 -0
- package/src/modules/resourceJump/ui/ResourceJumpBreadcrumbs.tsx +89 -0
- package/src/modules/resourceJump/ui/ResourceJumpButton.tsx +75 -0
- package/src/modules/resourceJump/ui/ResourceJumpMockTable.tsx +249 -0
- package/src/modules/resourceJump/ui/ShareLinkButton.tsx +127 -0
- package/src/modules/resourceJump/ui/SmoothSwitcher.tsx +119 -0
- package/src/modules/resourceJump/ui/TopQuickJump.tsx +23 -0
- package/src/modules/resourceJump/ui/appCatalog/AppCatalogFiltersCard.tsx +79 -0
- package/src/modules/resourceJump/ui/appCatalog/AppCatalogGrid.tsx +30 -0
- package/src/modules/resourceJump/ui/appCatalog/AppCatalogTable.tsx +86 -0
- package/src/modules/resourceJump/ui/appCatalog/appCatalogUtils.ts +12 -0
- package/src/modules/resourceJump/ui/cmdk/AppAutocomplete.tsx +231 -0
- package/src/modules/resourceJump/ui/cmdk/CmdKQuickSearchDialog.scss +197 -0
- package/src/modules/resourceJump/ui/cmdk/CmdKQuickSearchDialog.tsx +297 -0
- package/src/modules/resourceJump/ui/cmdk/CommandPalette.tsx +51 -0
- package/src/modules/resourceJump/ui/cmdk/EnvAutocomplete.tsx +237 -0
- package/src/modules/resourceJump/ui/cmdk/QuickSearch.tsx +107 -0
- package/src/modules/resourceJump/ui/cmdk/QuickSearchContext.tsx +58 -0
- package/src/modules/resourceJump/ui/cmdk/highlightText.tsx +27 -0
- package/src/modules/resourceJump/ui/cmdk/types.ts +7 -0
- package/src/modules/resourceJump/ui/cmdk/useCmdkDriver.ts +40 -0
- package/src/modules/resourceJump/ui/cmdk/useQuickSearchLogic.ts +74 -0
- package/src/modules/resourceJump/ui/layout/CenterColumn.tsx +3 -0
- package/src/modules/resourceJump/ui/layout/LeftColumn.tsx +96 -0
- package/src/modules/resourceJump/ui/layout/ResourceJumpLayout.tsx +101 -0
- package/src/modules/resourceJump/ui/layout/RightColumn.tsx +14 -0
- package/src/modules/resourceJump/ui/miniEnvSelector/MiniEnvSelectorPopover.tsx +61 -0
- package/src/modules/resourceJump/ui/pages/AppCatalog.tsx +105 -0
- package/src/modules/resourceJump/ui/pages/AppPage.tsx +14 -0
- package/src/modules/resourceJump/ui/pages/AppPageFlagship.tsx +121 -0
- package/src/modules/resourceJump/ui/pages/AppPageRegular.tsx +16 -0
- package/src/modules/resourceJump/ui/pages/DashboardPage.tsx +13 -0
- package/src/modules/resourceJump/ui/pages/EnvCatalog.tsx +89 -0
- package/src/modules/resourceJump/ui/pages/EnvPage.tsx +195 -0
- package/src/modules/resourceJump/ui/pages/HomePage.tsx +35 -0
- package/src/modules/resourceJump/ui/widgets/VersionWidget.tsx +15 -0
- package/src/modules/resourceJump/utils/buildJumpUrl.ts +46 -0
- package/src/modules/resourceJump/{findBestMatchByUrl.ts → utils/findBestMatchByUrl.ts} +4 -4
- package/src/modules/resourceJump/{helpers.ts → utils/helpers.ts} +42 -9
- package/src/modules/resourceJump/utils/mapToFlagshipResourceJumps.ts +88 -0
- package/src/modules/resourceJump/utils/mapToResouceJumpUis.ts +20 -0
- package/src/modules/resourceJump/utils/statistics/statisticsHelpers.ts +24 -0
- package/src/modules/resourceJump/utils/statistics/useEnvStatistics.ts +32 -0
- package/src/modules/resourceJump/utils/statistics/useMostRelevantLateParamSlug.ts +10 -0
- package/src/modules/resourceJump/utils/statistics/useMostRelevantQuickEnvs.ts +21 -0
- package/src/modules/resourceJump/utils/statistics/useMostRelevantQuickFlagships.ts +36 -0
- package/src/plugins/builtin/pageUrl/pageUrlAutoCompletePlugin.ts +5 -34
- package/src/plugins/builtin/pageUrl/pageUrlTypes.ts +1 -2
- package/src/routeTree.gen.ts +353 -143
- package/src/routes/__root.tsx +10 -7
- package/src/routes/_layout/app.$appSlug.index.tsx +25 -0
- package/src/routes/_layout/apps.index.tsx +26 -0
- package/src/routes/_layout/catalog.apps.index.tsx +27 -0
- package/src/routes/_layout/catalog.index.tsx +29 -0
- package/src/routes/_layout/dashboard.index.tsx +26 -0
- package/src/routes/_layout/env.$envSlug.app.$appSlug.index.tsx +25 -0
- package/src/routes/_layout/env.$envSlug.index.tsx +25 -0
- package/src/routes/_layout/envs.index.tsx +26 -0
- package/src/routes/_layout/index.tsx +72 -5
- package/src/routes/_layout/login.tsx +20 -0
- package/src/routes/admin/app-for-catalog/$id.tsx +468 -0
- package/src/routes/admin/app-for-catalog/index.tsx +19 -0
- package/src/routes/admin/app-for-catalog.tsx +12 -0
- package/src/routes/admin/chat.tsx +13 -0
- package/src/routes/admin/icons.tsx +22 -0
- package/src/routes/admin/index.tsx +9 -0
- package/src/routes/admin.tsx +32 -0
- package/src/routes/auth.callback.tsx +74 -0
- package/src/types/ehTypes.ts +3 -5
- package/src/types/tanstackQuery.ts +2 -0
- package/src/types/types.ts +13 -3
- package/src/types/userBehaviourTypes.ts +1 -1
- package/src/types/vite-env.d.ts +1 -0
- package/src/ui/autocomplete.tsx +272 -0
- package/src/{components/ui → ui}/badge.tsx +2 -1
- package/src/ui/breadcrumb.tsx +106 -0
- package/src/ui/button-group.tsx +85 -0
- package/src/ui/button.tsx +66 -0
- package/src/ui/card.tsx +92 -0
- package/src/ui/checkbox.tsx +30 -0
- package/src/{components/ui → ui}/collapsible.tsx +17 -3
- package/src/ui/command.tsx +196 -0
- package/src/ui/components/ActionCard.tsx +2 -2
- package/src/ui/components/AppIcon.tsx +5 -5
- package/src/ui/components/Breadcrumbs.tsx +97 -0
- package/src/ui/components/commandInput/EhBaseSelector.tsx +0 -34
- package/src/ui/components/contextDebug.tsx +54 -5
- package/src/ui/components/error/DefaultErrorComponent.tsx +107 -31
- package/src/ui/components/error/{RooutErrorPage.tsx → RootErrorPage.tsx} +2 -2
- package/src/ui/components/footer/Footer.tsx +19 -0
- package/src/ui/components/header/Header.tsx +172 -0
- package/src/ui/components/quickBar/AppQuickJumpBar.tsx +176 -0
- package/src/ui/components/quickBar/QuickJumpButton.tsx +21 -0
- package/src/ui/components/quickBar/ResourceJumpGroupViewer.tsx +80 -0
- package/src/ui/components/quickBar/arrangeGridItems.ts +61 -0
- package/src/ui/components/widgets/CredentialsWidget.tsx +3 -3
- package/src/ui/components/widgets/VersionWidget.tsx +1 -1
- package/src/{components/ui → ui}/dialog.tsx +10 -51
- package/src/{components/ui → ui}/dropdown-menu.tsx +13 -15
- package/src/ui/empty.tsx +105 -0
- package/src/ui/error/NotFoundError.tsx +10 -7
- package/src/ui/form.tsx +188 -0
- package/src/ui/input-group.tsx +167 -0
- package/src/ui/input.tsx +21 -0
- package/src/ui/label.tsx +22 -0
- package/src/ui/layout/LoadingScreen.tsx +58 -8
- package/src/ui/layout/MainLayout.tsx +7 -7
- package/src/ui/layout/TopLevelProviders.tsx +51 -25
- package/src/ui/layout/TopLevelProvidersForErrors.tsx +34 -0
- package/src/ui/link.tsx +31 -0
- package/src/ui/linkExternal.tsx +26 -0
- package/src/ui/main/JumpTabContent.tsx +1 -1
- package/src/ui/radio-group.tsx +43 -0
- package/src/ui/search-input-with-shortcut.tsx +54 -0
- package/src/ui/select.tsx +185 -0
- package/src/ui/shortcut-button.tsx +84 -0
- package/src/ui/skeleton.tsx +13 -0
- package/src/ui/spinner.tsx +16 -0
- package/src/ui/table.tsx +114 -0
- package/src/{components/ui → ui}/tabs.tsx +2 -3
- package/src/ui/textarea.tsx +18 -0
- package/src/ui/tooltip.tsx +60 -0
- package/src/userDb/EhDb.ts +48 -5
- package/src/util/availabilityMatrixUtils.ts +2 -2
- package/src/util/{createEhRouter.ts → createEhRouter.tsx} +2 -0
- package/src/util/error-utils.ts +31 -0
- package/src/util/reactQueryUtils.ts +8 -0
- package/src/util/route-utils.ts +11 -34
- package/src/util/slug-utils.ts +17 -0
- package/dist/disable.well-known/appspecific/com.chrome.devtools.json +0 -6
- package/dist/esm/api/ApiQueryMagazine.js +0 -16
- package/dist/esm/api/ApiQueryMagazine.js.map +0 -1
- package/dist/esm/api/data/useQueryBootstrapConfig.js +0 -14
- package/dist/esm/api/data/useQueryBootstrapConfig.js.map +0 -1
- package/dist/esm/api/unsorted/indexDataFetcher.js +0 -35
- package/dist/esm/api/unsorted/indexDataFetcher.js.map +0 -1
- package/dist/esm/assets/env-hopper-logo.svg.js +0 -16
- package/dist/esm/assets/env-hopper-logo.svg.js.map +0 -1
- package/dist/esm/components/ui/breadcrumb.d.ts +0 -46
- package/dist/esm/components/ui/button.d.ts +0 -16
- package/dist/esm/components/ui/button.js +0 -52
- package/dist/esm/components/ui/button.js.map +0 -1
- package/dist/esm/components/ui/card.d.ts +0 -38
- package/dist/esm/components/ui/input.d.ts +0 -10
- package/dist/esm/components/ui/popover.js +0 -14
- package/dist/esm/components/ui/popover.js.map +0 -1
- package/dist/esm/components/ui/separator.js.map +0 -1
- package/dist/esm/modules/environment/ApiQueryMagazineEnvironment.js +0 -13
- package/dist/esm/modules/environment/ApiQueryMagazineEnvironment.js.map +0 -1
- package/dist/esm/modules/environment/EnvironmentContext.js +0 -67
- package/dist/esm/modules/environment/EnvironmentContext.js.map +0 -1
- package/dist/esm/modules/environment/ui/EhEnvSelector.d.ts +0 -9
- package/dist/esm/modules/environment/ui/EhEnvSelector.js +0 -167
- package/dist/esm/modules/environment/ui/EhEnvSelector.js.map +0 -1
- package/dist/esm/modules/fuzzyMatchLogic/features/prefixFrac.js +0 -12
- package/dist/esm/modules/fuzzyMatchLogic/features/prefixFrac.js.map +0 -1
- package/dist/esm/modules/fuzzyMatchLogic/scoring.js +0 -23
- package/dist/esm/modules/fuzzyMatchLogic/scoring.js.map +0 -1
- package/dist/esm/modules/fuzzyMatchLogic/utils.js +0 -12
- package/dist/esm/modules/fuzzyMatchLogic/utils.js.map +0 -1
- package/dist/esm/modules/pluginCore/types.js +0 -7
- package/dist/esm/modules/pluginCore/types.js.map +0 -1
- package/dist/esm/modules/resourceJump/ApiQueryMagazineResourceJump.d.ts +0 -27
- package/dist/esm/modules/resourceJump/ApiQueryMagazineResourceJump.js +0 -26
- package/dist/esm/modules/resourceJump/ApiQueryMagazineResourceJump.js.map +0 -1
- package/dist/esm/modules/resourceJump/ResourceJumpContext.d.ts +0 -17
- package/dist/esm/modules/resourceJump/ResourceJumpContext.js +0 -88
- package/dist/esm/modules/resourceJump/ResourceJumpContext.js.map +0 -1
- package/dist/esm/modules/resourceJump/buildJumpUrl.d.ts +0 -2
- package/dist/esm/modules/resourceJump/buildJumpUrl.js +0 -32
- package/dist/esm/modules/resourceJump/buildJumpUrl.js.map +0 -1
- package/dist/esm/modules/resourceJump/findBestMatchByUrl.js +0 -85
- package/dist/esm/modules/resourceJump/findBestMatchByUrl.js.map +0 -1
- package/dist/esm/modules/resourceJump/helpers.js +0 -19
- package/dist/esm/modules/resourceJump/helpers.js.map +0 -1
- package/dist/esm/modules/resourceJump/ui/EhJumpResourceSelector.d.ts +0 -20
- package/dist/esm/modules/resourceJump/ui/EhJumpResourceSelector.js +0 -209
- package/dist/esm/modules/resourceJump/ui/EhJumpResourceSelector.js.map +0 -1
- package/dist/esm/modules/resourceJump/ui/JumpALink.js +0 -38
- package/dist/esm/modules/resourceJump/ui/JumpALink.js.map +0 -1
- package/dist/esm/modules/resourceJump/ui/JumpMainButton.js +0 -66
- package/dist/esm/modules/resourceJump/ui/JumpMainButton.js.map +0 -1
- package/dist/esm/modules/resourceJump/ui/ResouceJumpLayout.d.ts +0 -5
- package/dist/esm/modules/resourceJump/ui/ResouceJumpLayout.js +0 -42
- package/dist/esm/modules/resourceJump/ui/ResouceJumpLayout.js.map +0 -1
- package/dist/esm/plugins/builtin/pageUrl/PageUrlPluginContext.d.ts +0 -9
- package/dist/esm/plugins/builtin/pageUrl/PageUrlPluginContext.js +0 -36
- package/dist/esm/plugins/builtin/pageUrl/PageUrlPluginContext.js.map +0 -1
- package/dist/esm/plugins/builtin/pageUrl/pageUrlAutoCompletePlugin.js +0 -44
- package/dist/esm/plugins/builtin/pageUrl/pageUrlAutoCompletePlugin.js.map +0 -1
- package/dist/esm/plugins/builtin/pageUrl/pageUrlJumpPlugin.d.ts +0 -7
- package/dist/esm/plugins/builtin/pageUrl/pageUrlJumpPlugin.js +0 -29
- package/dist/esm/plugins/builtin/pageUrl/pageUrlJumpPlugin.js.map +0 -1
- package/dist/esm/routes/_layout/app/$appSlug/sub/$subValue.d.ts +0 -1
- package/dist/esm/routes/_layout/app/$appSlug.d.ts +0 -1
- package/dist/esm/routes/_layout/app/_appSlug/sub/_subValue.js +0 -18
- package/dist/esm/routes/_layout/app/_appSlug/sub/_subValue.js.map +0 -1
- package/dist/esm/routes/_layout/app/_appSlug.js +0 -18
- package/dist/esm/routes/_layout/app/_appSlug.js.map +0 -1
- package/dist/esm/routes/_layout/env/$envSlug/app/$appSlug/sub/$subValue.d.ts +0 -1
- package/dist/esm/routes/_layout/env/$envSlug/app/$appSlug.d.ts +0 -1
- package/dist/esm/routes/_layout/env/$envSlug/sub/$subValue.d.ts +0 -1
- package/dist/esm/routes/_layout/env/$envSlug.d.ts +0 -1
- package/dist/esm/routes/_layout/env/_envSlug/app/_appSlug/sub/_subValue.js +0 -20
- package/dist/esm/routes/_layout/env/_envSlug/app/_appSlug/sub/_subValue.js.map +0 -1
- package/dist/esm/routes/_layout/env/_envSlug/app/_appSlug.js +0 -18
- package/dist/esm/routes/_layout/env/_envSlug/app/_appSlug.js.map +0 -1
- package/dist/esm/routes/_layout/env/_envSlug/sub/_subValue.js +0 -18
- package/dist/esm/routes/_layout/env/_envSlug/sub/_subValue.js.map +0 -1
- package/dist/esm/routes/_layout/env/_envSlug.js +0 -18
- package/dist/esm/routes/_layout/env/_envSlug.js.map +0 -1
- package/dist/esm/ui/components/commandInput/EhBaseSelector.js +0 -22
- package/dist/esm/ui/components/commandInput/EhBaseSelector.js.map +0 -1
- package/dist/esm/ui/components/controlPanel/BaseDropdownSelector.d.ts +0 -11
- package/dist/esm/ui/components/controlPanel/env/EnvDropdownContent.d.ts +0 -5
- package/dist/esm/ui/components/controlPanel/env/EnvDropdownSelector.d.ts +0 -1
- package/dist/esm/ui/components/error/RooutErrorPage.d.ts +0 -2
- package/dist/esm/ui/components/error/RooutErrorPage.js +0 -12
- package/dist/esm/ui/components/error/RooutErrorPage.js.map +0 -1
- package/dist/esm/ui/components/header/PlaygroundHeader.d.ts +0 -1
- package/dist/esm/ui/components/header/PlaygroundHeader.js +0 -23
- package/dist/esm/ui/components/header/PlaygroundHeader.js.map +0 -1
- package/dist/esm/ui/components/leftPanel/LeftPanel.d.ts +0 -5
- package/dist/esm/ui/components/quickBar/EnvQuickJumpBar.d.ts +0 -5
- package/dist/esm/ui/components/quickBar/EnvQuickJumpBar.js +0 -52
- package/dist/esm/ui/components/quickBar/EnvQuickJumpBar.js.map +0 -1
- package/dist/esm/ui/layout/Header.d.ts +0 -1
- package/dist/esm/util/availabilityMatrixUtils.js +0 -57
- package/dist/esm/util/availabilityMatrixUtils.js.map +0 -1
- package/dist/esm/util/highlightMatches.js +0 -19
- package/dist/esm/util/highlightMatches.js.map +0 -1
- package/src/components/ui/breadcrumb.tsx +0 -128
- package/src/components/ui/button.tsx +0 -60
- package/src/components/ui/card.tsx +0 -95
- package/src/components/ui/input.tsx +0 -28
- package/src/modules/environment/ui/EhEnvSelector.tsx +0 -191
- package/src/modules/resourceJump/ApiQueryMagazineResourceJump.ts +0 -31
- package/src/modules/resourceJump/ResourceJumpContext.tsx +0 -142
- package/src/modules/resourceJump/buildJumpUrl.ts +0 -40
- package/src/modules/resourceJump/ui/EhJumpResourceSelector.tsx +0 -259
- package/src/modules/resourceJump/ui/ResouceJumpLayout.tsx +0 -73
- package/src/plugins/builtin/pageUrl/PageUrlPluginContext.tsx +0 -55
- package/src/plugins/builtin/pageUrl/pageUrlJumpPlugin.ts +0 -36
- package/src/routes/_layout/app/$appSlug/sub/$subValue.tsx +0 -15
- package/src/routes/_layout/app/$appSlug.tsx +0 -15
- package/src/routes/_layout/env/$envSlug/app/$appSlug/sub/$subValue.tsx +0 -17
- package/src/routes/_layout/env/$envSlug/app/$appSlug.tsx +0 -15
- package/src/routes/_layout/env/$envSlug/sub/$subValue.tsx +0 -15
- package/src/routes/_layout/env/$envSlug.tsx +0 -15
- package/src/ui/components/controlPanel/BaseDropdownSelector.tsx +0 -163
- package/src/ui/components/controlPanel/env/EnvDropdownContent.tsx +0 -114
- package/src/ui/components/controlPanel/env/EnvDropdownSelector.tsx +0 -21
- package/src/ui/components/header/PlaygroundHeader.tsx +0 -26
- package/src/ui/components/leftPanel/LeftPanel.tsx +0 -194
- package/src/ui/components/quickBar/EnvQuickJumpBar.tsx +0 -65
- package/src/ui/layout/Header.tsx +0 -14
- /package/dist/esm/{components/ui → ui}/badge.d.ts +0 -0
- /package/dist/esm/{components/ui → ui}/popover.d.ts +0 -0
- /package/dist/esm/{components/ui → ui}/scroll-area.d.ts +0 -0
- /package/dist/esm/{components/ui → ui}/separator.d.ts +0 -0
- /package/dist/esm/{components/ui → ui}/tabs.d.ts +0 -0
- /package/dist/{apple-touch-180x180.png → public/apple-touch-180x180.png} +0 -0
- /package/dist/{env-hopper-16x16.png → public/env-hopper-16x16.png} +0 -0
- /package/dist/{env-hopper-192x192.png → public/env-hopper-192x192.png} +0 -0
- /package/dist/{env-hopper-32x32.png → public/env-hopper-32x32.png} +0 -0
- /package/dist/{env-hopper-48x48.png → public/env-hopper-48x48.png} +0 -0
- /package/dist/{env-hopper-512x512.png → public/env-hopper-512x512.png} +0 -0
- /package/dist/{env-hopper-square.svg → public/env-hopper-square.svg} +0 -0
- /package/dist/{favicon.ico → public/favicon.ico} +0 -0
- /package/dist/{robots.txt → public/robots.txt} +0 -0
- /package/src/{components/ui → ui}/popover.tsx +0 -0
- /package/src/{components/ui → ui}/scroll-area.tsx +0 -0
- /package/src/{components/ui → ui}/separator.tsx +0 -0
|
@@ -0,0 +1,1855 @@
|
|
|
1
|
+
var __typeError = (msg) => {
|
|
2
|
+
throw TypeError(msg);
|
|
3
|
+
};
|
|
4
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
5
|
+
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
6
|
+
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
7
|
+
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
8
|
+
var _router, _routerState, _position, _initialIsOpen, _shadowDOMTarget, _panelProps, _closeButtonProps, _toggleButtonProps, _containerElement, _isMounted, _Component, _dispose, _router2, _routerState2, _style, _className, _shadowDOMTarget2, _isMounted2, _setIsOpen, _dispose2, _Component2;
|
|
9
|
+
const sharedConfig = {
|
|
10
|
+
context: void 0,
|
|
11
|
+
registry: void 0,
|
|
12
|
+
effects: void 0,
|
|
13
|
+
done: false,
|
|
14
|
+
getContextId() {
|
|
15
|
+
return getContextId(this.context.count);
|
|
16
|
+
},
|
|
17
|
+
getNextContextId() {
|
|
18
|
+
return getContextId(this.context.count++);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
function getContextId(count) {
|
|
22
|
+
const num = String(count), len = num.length - 1;
|
|
23
|
+
return sharedConfig.context.id + (len ? String.fromCharCode(96 + len) : "") + num;
|
|
24
|
+
}
|
|
25
|
+
function setHydrateContext(context) {
|
|
26
|
+
sharedConfig.context = context;
|
|
27
|
+
}
|
|
28
|
+
const IS_DEV = false;
|
|
29
|
+
const equalFn = (a, b) => a === b;
|
|
30
|
+
const $PROXY = /* @__PURE__ */ Symbol("solid-proxy");
|
|
31
|
+
const SUPPORTS_PROXY = typeof Proxy === "function";
|
|
32
|
+
const $TRACK = /* @__PURE__ */ Symbol("solid-track");
|
|
33
|
+
const signalOptions = {
|
|
34
|
+
equals: equalFn
|
|
35
|
+
};
|
|
36
|
+
let runEffects = runQueue;
|
|
37
|
+
const STALE = 1;
|
|
38
|
+
const PENDING = 2;
|
|
39
|
+
const UNOWNED = {
|
|
40
|
+
owned: null,
|
|
41
|
+
cleanups: null,
|
|
42
|
+
context: null,
|
|
43
|
+
owner: null
|
|
44
|
+
};
|
|
45
|
+
const NO_INIT = {};
|
|
46
|
+
var Owner = null;
|
|
47
|
+
let Transition = null;
|
|
48
|
+
let ExternalSourceConfig = null;
|
|
49
|
+
let Listener = null;
|
|
50
|
+
let Updates = null;
|
|
51
|
+
let Effects = null;
|
|
52
|
+
let ExecCount = 0;
|
|
53
|
+
function createRoot(fn, detachedOwner) {
|
|
54
|
+
const listener = Listener, owner = Owner, unowned = fn.length === 0, current = detachedOwner === void 0 ? owner : detachedOwner, root = unowned ? UNOWNED : {
|
|
55
|
+
owned: null,
|
|
56
|
+
cleanups: null,
|
|
57
|
+
context: current ? current.context : null,
|
|
58
|
+
owner: current
|
|
59
|
+
}, updateFn = unowned ? fn : () => fn(() => untrack(() => cleanNode(root)));
|
|
60
|
+
Owner = root;
|
|
61
|
+
Listener = null;
|
|
62
|
+
try {
|
|
63
|
+
return runUpdates(updateFn, true);
|
|
64
|
+
} finally {
|
|
65
|
+
Listener = listener;
|
|
66
|
+
Owner = owner;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
function createSignal(value, options) {
|
|
70
|
+
options = options ? Object.assign({}, signalOptions, options) : signalOptions;
|
|
71
|
+
const s = {
|
|
72
|
+
value,
|
|
73
|
+
observers: null,
|
|
74
|
+
observerSlots: null,
|
|
75
|
+
comparator: options.equals || void 0
|
|
76
|
+
};
|
|
77
|
+
const setter = (value2) => {
|
|
78
|
+
if (typeof value2 === "function") {
|
|
79
|
+
value2 = value2(s.value);
|
|
80
|
+
}
|
|
81
|
+
return writeSignal(s, value2);
|
|
82
|
+
};
|
|
83
|
+
return [readSignal.bind(s), setter];
|
|
84
|
+
}
|
|
85
|
+
function createComputed(fn, value, options) {
|
|
86
|
+
const c = createComputation(fn, value, true, STALE);
|
|
87
|
+
updateComputation(c);
|
|
88
|
+
}
|
|
89
|
+
function createRenderEffect(fn, value, options) {
|
|
90
|
+
const c = createComputation(fn, value, false, STALE);
|
|
91
|
+
updateComputation(c);
|
|
92
|
+
}
|
|
93
|
+
function createEffect(fn, value, options) {
|
|
94
|
+
runEffects = runUserEffects;
|
|
95
|
+
const c = createComputation(fn, value, false, STALE);
|
|
96
|
+
if (!options || !options.render) c.user = true;
|
|
97
|
+
Effects ? Effects.push(c) : updateComputation(c);
|
|
98
|
+
}
|
|
99
|
+
function createMemo(fn, value, options) {
|
|
100
|
+
options = options ? Object.assign({}, signalOptions, options) : signalOptions;
|
|
101
|
+
const c = createComputation(fn, value, true, 0);
|
|
102
|
+
c.observers = null;
|
|
103
|
+
c.observerSlots = null;
|
|
104
|
+
c.comparator = options.equals || void 0;
|
|
105
|
+
updateComputation(c);
|
|
106
|
+
return readSignal.bind(c);
|
|
107
|
+
}
|
|
108
|
+
function isPromise(v) {
|
|
109
|
+
return v && typeof v === "object" && "then" in v;
|
|
110
|
+
}
|
|
111
|
+
function createResource(pSource, pFetcher, pOptions) {
|
|
112
|
+
let source;
|
|
113
|
+
let fetcher;
|
|
114
|
+
let options;
|
|
115
|
+
{
|
|
116
|
+
source = true;
|
|
117
|
+
fetcher = pSource;
|
|
118
|
+
options = {};
|
|
119
|
+
}
|
|
120
|
+
let pr = null, initP = NO_INIT, id = null, scheduled = false, resolved = "initialValue" in options, dynamic = typeof source === "function" && createMemo(source);
|
|
121
|
+
const contexts = /* @__PURE__ */ new Set(), [value, setValue] = (options.storage || createSignal)(options.initialValue), [error, setError] = createSignal(void 0), [track, trigger] = createSignal(void 0, {
|
|
122
|
+
equals: false
|
|
123
|
+
}), [state, setState] = createSignal(resolved ? "ready" : "unresolved");
|
|
124
|
+
if (sharedConfig.context) {
|
|
125
|
+
id = sharedConfig.getNextContextId();
|
|
126
|
+
if (options.ssrLoadFrom === "initial") initP = options.initialValue;
|
|
127
|
+
else if (sharedConfig.load && sharedConfig.has(id)) initP = sharedConfig.load(id);
|
|
128
|
+
}
|
|
129
|
+
function loadEnd(p, v, error2, key) {
|
|
130
|
+
if (pr === p) {
|
|
131
|
+
pr = null;
|
|
132
|
+
key !== void 0 && (resolved = true);
|
|
133
|
+
if ((p === initP || v === initP) && options.onHydrated) queueMicrotask(() => options.onHydrated(key, {
|
|
134
|
+
value: v
|
|
135
|
+
}));
|
|
136
|
+
initP = NO_INIT;
|
|
137
|
+
completeLoad(v, error2);
|
|
138
|
+
}
|
|
139
|
+
return v;
|
|
140
|
+
}
|
|
141
|
+
function completeLoad(v, err) {
|
|
142
|
+
runUpdates(() => {
|
|
143
|
+
if (err === void 0) setValue(() => v);
|
|
144
|
+
setState(err !== void 0 ? "errored" : resolved ? "ready" : "unresolved");
|
|
145
|
+
setError(err);
|
|
146
|
+
for (const c of contexts.keys()) c.decrement();
|
|
147
|
+
contexts.clear();
|
|
148
|
+
}, false);
|
|
149
|
+
}
|
|
150
|
+
function read() {
|
|
151
|
+
const c = SuspenseContext, v = value(), err = error();
|
|
152
|
+
if (err !== void 0 && !pr) throw err;
|
|
153
|
+
if (Listener && !Listener.user && c) ;
|
|
154
|
+
return v;
|
|
155
|
+
}
|
|
156
|
+
function load(refetching = true) {
|
|
157
|
+
if (refetching !== false && scheduled) return;
|
|
158
|
+
scheduled = false;
|
|
159
|
+
const lookup = dynamic ? dynamic() : source;
|
|
160
|
+
if (lookup == null || lookup === false) {
|
|
161
|
+
loadEnd(pr, untrack(value));
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
let error2;
|
|
165
|
+
const p = initP !== NO_INIT ? initP : untrack(() => {
|
|
166
|
+
try {
|
|
167
|
+
return fetcher(lookup, {
|
|
168
|
+
value: value(),
|
|
169
|
+
refetching
|
|
170
|
+
});
|
|
171
|
+
} catch (fetcherError) {
|
|
172
|
+
error2 = fetcherError;
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
if (error2 !== void 0) {
|
|
176
|
+
loadEnd(pr, void 0, castError(error2), lookup);
|
|
177
|
+
return;
|
|
178
|
+
} else if (!isPromise(p)) {
|
|
179
|
+
loadEnd(pr, p, void 0, lookup);
|
|
180
|
+
return p;
|
|
181
|
+
}
|
|
182
|
+
pr = p;
|
|
183
|
+
if ("v" in p) {
|
|
184
|
+
if (p.s === 1) loadEnd(pr, p.v, void 0, lookup);
|
|
185
|
+
else loadEnd(pr, void 0, castError(p.v), lookup);
|
|
186
|
+
return p;
|
|
187
|
+
}
|
|
188
|
+
scheduled = true;
|
|
189
|
+
queueMicrotask(() => scheduled = false);
|
|
190
|
+
runUpdates(() => {
|
|
191
|
+
setState(resolved ? "refreshing" : "pending");
|
|
192
|
+
trigger();
|
|
193
|
+
}, false);
|
|
194
|
+
return p.then((v) => loadEnd(p, v, void 0, lookup), (e) => loadEnd(p, void 0, castError(e), lookup));
|
|
195
|
+
}
|
|
196
|
+
Object.defineProperties(read, {
|
|
197
|
+
state: {
|
|
198
|
+
get: () => state()
|
|
199
|
+
},
|
|
200
|
+
error: {
|
|
201
|
+
get: () => error()
|
|
202
|
+
},
|
|
203
|
+
loading: {
|
|
204
|
+
get() {
|
|
205
|
+
const s = state();
|
|
206
|
+
return s === "pending" || s === "refreshing";
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
latest: {
|
|
210
|
+
get() {
|
|
211
|
+
if (!resolved) return read();
|
|
212
|
+
const err = error();
|
|
213
|
+
if (err && !pr) throw err;
|
|
214
|
+
return value();
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
let owner = Owner;
|
|
219
|
+
if (dynamic) createComputed(() => (owner = Owner, load(false)));
|
|
220
|
+
else load(false);
|
|
221
|
+
return [read, {
|
|
222
|
+
refetch: (info) => runWithOwner(owner, () => load(info)),
|
|
223
|
+
mutate: setValue
|
|
224
|
+
}];
|
|
225
|
+
}
|
|
226
|
+
function untrack(fn) {
|
|
227
|
+
if (Listener === null) return fn();
|
|
228
|
+
const listener = Listener;
|
|
229
|
+
Listener = null;
|
|
230
|
+
try {
|
|
231
|
+
if (ExternalSourceConfig) ;
|
|
232
|
+
return fn();
|
|
233
|
+
} finally {
|
|
234
|
+
Listener = listener;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
function onCleanup(fn) {
|
|
238
|
+
if (Owner === null) ;
|
|
239
|
+
else if (Owner.cleanups === null) Owner.cleanups = [fn];
|
|
240
|
+
else Owner.cleanups.push(fn);
|
|
241
|
+
return fn;
|
|
242
|
+
}
|
|
243
|
+
function runWithOwner(o, fn) {
|
|
244
|
+
const prev = Owner;
|
|
245
|
+
const prevListener = Listener;
|
|
246
|
+
Owner = o;
|
|
247
|
+
Listener = null;
|
|
248
|
+
try {
|
|
249
|
+
return runUpdates(fn, true);
|
|
250
|
+
} catch (err) {
|
|
251
|
+
handleError(err);
|
|
252
|
+
} finally {
|
|
253
|
+
Owner = prev;
|
|
254
|
+
Listener = prevListener;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
const [transPending, setTransPending] = /* @__PURE__ */ createSignal(false);
|
|
258
|
+
function createContext(defaultValue, options) {
|
|
259
|
+
const id = /* @__PURE__ */ Symbol("context");
|
|
260
|
+
return {
|
|
261
|
+
id,
|
|
262
|
+
Provider: createProvider(id),
|
|
263
|
+
defaultValue
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
function useContext(context) {
|
|
267
|
+
let value;
|
|
268
|
+
return Owner && Owner.context && (value = Owner.context[context.id]) !== void 0 ? value : context.defaultValue;
|
|
269
|
+
}
|
|
270
|
+
function children(fn) {
|
|
271
|
+
const children2 = createMemo(fn);
|
|
272
|
+
const memo2 = createMemo(() => resolveChildren(children2()));
|
|
273
|
+
memo2.toArray = () => {
|
|
274
|
+
const c = memo2();
|
|
275
|
+
return Array.isArray(c) ? c : c != null ? [c] : [];
|
|
276
|
+
};
|
|
277
|
+
return memo2;
|
|
278
|
+
}
|
|
279
|
+
let SuspenseContext;
|
|
280
|
+
function readSignal() {
|
|
281
|
+
if (this.sources && this.state) {
|
|
282
|
+
if (this.state === STALE) updateComputation(this);
|
|
283
|
+
else {
|
|
284
|
+
const updates = Updates;
|
|
285
|
+
Updates = null;
|
|
286
|
+
runUpdates(() => lookUpstream(this), false);
|
|
287
|
+
Updates = updates;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
if (Listener) {
|
|
291
|
+
const sSlot = this.observers ? this.observers.length : 0;
|
|
292
|
+
if (!Listener.sources) {
|
|
293
|
+
Listener.sources = [this];
|
|
294
|
+
Listener.sourceSlots = [sSlot];
|
|
295
|
+
} else {
|
|
296
|
+
Listener.sources.push(this);
|
|
297
|
+
Listener.sourceSlots.push(sSlot);
|
|
298
|
+
}
|
|
299
|
+
if (!this.observers) {
|
|
300
|
+
this.observers = [Listener];
|
|
301
|
+
this.observerSlots = [Listener.sources.length - 1];
|
|
302
|
+
} else {
|
|
303
|
+
this.observers.push(Listener);
|
|
304
|
+
this.observerSlots.push(Listener.sources.length - 1);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
return this.value;
|
|
308
|
+
}
|
|
309
|
+
function writeSignal(node, value, isComp) {
|
|
310
|
+
let current = node.value;
|
|
311
|
+
if (!node.comparator || !node.comparator(current, value)) {
|
|
312
|
+
node.value = value;
|
|
313
|
+
if (node.observers && node.observers.length) {
|
|
314
|
+
runUpdates(() => {
|
|
315
|
+
for (let i = 0; i < node.observers.length; i += 1) {
|
|
316
|
+
const o = node.observers[i];
|
|
317
|
+
const TransitionRunning = Transition && Transition.running;
|
|
318
|
+
if (TransitionRunning && Transition.disposed.has(o)) ;
|
|
319
|
+
if (TransitionRunning ? !o.tState : !o.state) {
|
|
320
|
+
if (o.pure) Updates.push(o);
|
|
321
|
+
else Effects.push(o);
|
|
322
|
+
if (o.observers) markDownstream(o);
|
|
323
|
+
}
|
|
324
|
+
if (!TransitionRunning) o.state = STALE;
|
|
325
|
+
}
|
|
326
|
+
if (Updates.length > 1e6) {
|
|
327
|
+
Updates = [];
|
|
328
|
+
if (IS_DEV) ;
|
|
329
|
+
throw new Error();
|
|
330
|
+
}
|
|
331
|
+
}, false);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
return value;
|
|
335
|
+
}
|
|
336
|
+
function updateComputation(node) {
|
|
337
|
+
if (!node.fn) return;
|
|
338
|
+
cleanNode(node);
|
|
339
|
+
const time = ExecCount;
|
|
340
|
+
runComputation(node, node.value, time);
|
|
341
|
+
}
|
|
342
|
+
function runComputation(node, value, time) {
|
|
343
|
+
let nextValue;
|
|
344
|
+
const owner = Owner, listener = Listener;
|
|
345
|
+
Listener = Owner = node;
|
|
346
|
+
try {
|
|
347
|
+
nextValue = node.fn(value);
|
|
348
|
+
} catch (err) {
|
|
349
|
+
if (node.pure) {
|
|
350
|
+
{
|
|
351
|
+
node.state = STALE;
|
|
352
|
+
node.owned && node.owned.forEach(cleanNode);
|
|
353
|
+
node.owned = null;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
node.updatedAt = time + 1;
|
|
357
|
+
return handleError(err);
|
|
358
|
+
} finally {
|
|
359
|
+
Listener = listener;
|
|
360
|
+
Owner = owner;
|
|
361
|
+
}
|
|
362
|
+
if (!node.updatedAt || node.updatedAt <= time) {
|
|
363
|
+
if (node.updatedAt != null && "observers" in node) {
|
|
364
|
+
writeSignal(node, nextValue);
|
|
365
|
+
} else node.value = nextValue;
|
|
366
|
+
node.updatedAt = time;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
function createComputation(fn, init, pure, state = STALE, options) {
|
|
370
|
+
const c = {
|
|
371
|
+
fn,
|
|
372
|
+
state,
|
|
373
|
+
updatedAt: null,
|
|
374
|
+
owned: null,
|
|
375
|
+
sources: null,
|
|
376
|
+
sourceSlots: null,
|
|
377
|
+
cleanups: null,
|
|
378
|
+
value: init,
|
|
379
|
+
owner: Owner,
|
|
380
|
+
context: Owner ? Owner.context : null,
|
|
381
|
+
pure
|
|
382
|
+
};
|
|
383
|
+
if (Owner === null) ;
|
|
384
|
+
else if (Owner !== UNOWNED) {
|
|
385
|
+
{
|
|
386
|
+
if (!Owner.owned) Owner.owned = [c];
|
|
387
|
+
else Owner.owned.push(c);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
return c;
|
|
391
|
+
}
|
|
392
|
+
function runTop(node) {
|
|
393
|
+
if (node.state === 0) return;
|
|
394
|
+
if (node.state === PENDING) return lookUpstream(node);
|
|
395
|
+
if (node.suspense && untrack(node.suspense.inFallback)) return node.suspense.effects.push(node);
|
|
396
|
+
const ancestors = [node];
|
|
397
|
+
while ((node = node.owner) && (!node.updatedAt || node.updatedAt < ExecCount)) {
|
|
398
|
+
if (node.state) ancestors.push(node);
|
|
399
|
+
}
|
|
400
|
+
for (let i = ancestors.length - 1; i >= 0; i--) {
|
|
401
|
+
node = ancestors[i];
|
|
402
|
+
if (node.state === STALE) {
|
|
403
|
+
updateComputation(node);
|
|
404
|
+
} else if (node.state === PENDING) {
|
|
405
|
+
const updates = Updates;
|
|
406
|
+
Updates = null;
|
|
407
|
+
runUpdates(() => lookUpstream(node, ancestors[0]), false);
|
|
408
|
+
Updates = updates;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
function runUpdates(fn, init) {
|
|
413
|
+
if (Updates) return fn();
|
|
414
|
+
let wait = false;
|
|
415
|
+
if (!init) Updates = [];
|
|
416
|
+
if (Effects) wait = true;
|
|
417
|
+
else Effects = [];
|
|
418
|
+
ExecCount++;
|
|
419
|
+
try {
|
|
420
|
+
const res = fn();
|
|
421
|
+
completeUpdates(wait);
|
|
422
|
+
return res;
|
|
423
|
+
} catch (err) {
|
|
424
|
+
if (!wait) Effects = null;
|
|
425
|
+
Updates = null;
|
|
426
|
+
handleError(err);
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
function completeUpdates(wait) {
|
|
430
|
+
if (Updates) {
|
|
431
|
+
runQueue(Updates);
|
|
432
|
+
Updates = null;
|
|
433
|
+
}
|
|
434
|
+
if (wait) return;
|
|
435
|
+
const e = Effects;
|
|
436
|
+
Effects = null;
|
|
437
|
+
if (e.length) runUpdates(() => runEffects(e), false);
|
|
438
|
+
}
|
|
439
|
+
function runQueue(queue) {
|
|
440
|
+
for (let i = 0; i < queue.length; i++) runTop(queue[i]);
|
|
441
|
+
}
|
|
442
|
+
function runUserEffects(queue) {
|
|
443
|
+
let i, userLength = 0;
|
|
444
|
+
for (i = 0; i < queue.length; i++) {
|
|
445
|
+
const e = queue[i];
|
|
446
|
+
if (!e.user) runTop(e);
|
|
447
|
+
else queue[userLength++] = e;
|
|
448
|
+
}
|
|
449
|
+
if (sharedConfig.context) {
|
|
450
|
+
if (sharedConfig.count) {
|
|
451
|
+
sharedConfig.effects || (sharedConfig.effects = []);
|
|
452
|
+
sharedConfig.effects.push(...queue.slice(0, userLength));
|
|
453
|
+
return;
|
|
454
|
+
}
|
|
455
|
+
setHydrateContext();
|
|
456
|
+
}
|
|
457
|
+
if (sharedConfig.effects && (sharedConfig.done || !sharedConfig.count)) {
|
|
458
|
+
queue = [...sharedConfig.effects, ...queue];
|
|
459
|
+
userLength += sharedConfig.effects.length;
|
|
460
|
+
delete sharedConfig.effects;
|
|
461
|
+
}
|
|
462
|
+
for (i = 0; i < userLength; i++) runTop(queue[i]);
|
|
463
|
+
}
|
|
464
|
+
function lookUpstream(node, ignore) {
|
|
465
|
+
node.state = 0;
|
|
466
|
+
for (let i = 0; i < node.sources.length; i += 1) {
|
|
467
|
+
const source = node.sources[i];
|
|
468
|
+
if (source.sources) {
|
|
469
|
+
const state = source.state;
|
|
470
|
+
if (state === STALE) {
|
|
471
|
+
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount)) runTop(source);
|
|
472
|
+
} else if (state === PENDING) lookUpstream(source, ignore);
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
function markDownstream(node) {
|
|
477
|
+
for (let i = 0; i < node.observers.length; i += 1) {
|
|
478
|
+
const o = node.observers[i];
|
|
479
|
+
if (!o.state) {
|
|
480
|
+
o.state = PENDING;
|
|
481
|
+
if (o.pure) Updates.push(o);
|
|
482
|
+
else Effects.push(o);
|
|
483
|
+
o.observers && markDownstream(o);
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
function cleanNode(node) {
|
|
488
|
+
let i;
|
|
489
|
+
if (node.sources) {
|
|
490
|
+
while (node.sources.length) {
|
|
491
|
+
const source = node.sources.pop(), index = node.sourceSlots.pop(), obs = source.observers;
|
|
492
|
+
if (obs && obs.length) {
|
|
493
|
+
const n = obs.pop(), s = source.observerSlots.pop();
|
|
494
|
+
if (index < obs.length) {
|
|
495
|
+
n.sourceSlots[s] = index;
|
|
496
|
+
obs[index] = n;
|
|
497
|
+
source.observerSlots[index] = s;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
if (node.tOwned) {
|
|
503
|
+
for (i = node.tOwned.length - 1; i >= 0; i--) cleanNode(node.tOwned[i]);
|
|
504
|
+
delete node.tOwned;
|
|
505
|
+
}
|
|
506
|
+
if (node.owned) {
|
|
507
|
+
for (i = node.owned.length - 1; i >= 0; i--) cleanNode(node.owned[i]);
|
|
508
|
+
node.owned = null;
|
|
509
|
+
}
|
|
510
|
+
if (node.cleanups) {
|
|
511
|
+
for (i = node.cleanups.length - 1; i >= 0; i--) node.cleanups[i]();
|
|
512
|
+
node.cleanups = null;
|
|
513
|
+
}
|
|
514
|
+
node.state = 0;
|
|
515
|
+
}
|
|
516
|
+
function castError(err) {
|
|
517
|
+
if (err instanceof Error) return err;
|
|
518
|
+
return new Error(typeof err === "string" ? err : "Unknown error", {
|
|
519
|
+
cause: err
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
function handleError(err, owner = Owner) {
|
|
523
|
+
const error = castError(err);
|
|
524
|
+
throw error;
|
|
525
|
+
}
|
|
526
|
+
function resolveChildren(children2) {
|
|
527
|
+
if (typeof children2 === "function" && !children2.length) return resolveChildren(children2());
|
|
528
|
+
if (Array.isArray(children2)) {
|
|
529
|
+
const results = [];
|
|
530
|
+
for (let i = 0; i < children2.length; i++) {
|
|
531
|
+
const result = resolveChildren(children2[i]);
|
|
532
|
+
Array.isArray(result) ? results.push.apply(results, result) : results.push(result);
|
|
533
|
+
}
|
|
534
|
+
return results;
|
|
535
|
+
}
|
|
536
|
+
return children2;
|
|
537
|
+
}
|
|
538
|
+
function createProvider(id, options) {
|
|
539
|
+
return function provider(props) {
|
|
540
|
+
let res;
|
|
541
|
+
createRenderEffect(() => res = untrack(() => {
|
|
542
|
+
Owner.context = {
|
|
543
|
+
...Owner.context,
|
|
544
|
+
[id]: props.value
|
|
545
|
+
};
|
|
546
|
+
return children(() => props.children);
|
|
547
|
+
}), void 0);
|
|
548
|
+
return res;
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
const FALLBACK = /* @__PURE__ */ Symbol("fallback");
|
|
552
|
+
function dispose(d) {
|
|
553
|
+
for (let i = 0; i < d.length; i++) d[i]();
|
|
554
|
+
}
|
|
555
|
+
function mapArray(list, mapFn, options = {}) {
|
|
556
|
+
let items = [], mapped = [], disposers = [], len = 0, indexes = mapFn.length > 1 ? [] : null;
|
|
557
|
+
onCleanup(() => dispose(disposers));
|
|
558
|
+
return () => {
|
|
559
|
+
let newItems = list() || [], newLen = newItems.length, i, j;
|
|
560
|
+
newItems[$TRACK];
|
|
561
|
+
return untrack(() => {
|
|
562
|
+
let newIndices, newIndicesNext, temp, tempdisposers, tempIndexes, start, end, newEnd, item;
|
|
563
|
+
if (newLen === 0) {
|
|
564
|
+
if (len !== 0) {
|
|
565
|
+
dispose(disposers);
|
|
566
|
+
disposers = [];
|
|
567
|
+
items = [];
|
|
568
|
+
mapped = [];
|
|
569
|
+
len = 0;
|
|
570
|
+
indexes && (indexes = []);
|
|
571
|
+
}
|
|
572
|
+
if (options.fallback) {
|
|
573
|
+
items = [FALLBACK];
|
|
574
|
+
mapped[0] = createRoot((disposer) => {
|
|
575
|
+
disposers[0] = disposer;
|
|
576
|
+
return options.fallback();
|
|
577
|
+
});
|
|
578
|
+
len = 1;
|
|
579
|
+
}
|
|
580
|
+
} else if (len === 0) {
|
|
581
|
+
mapped = new Array(newLen);
|
|
582
|
+
for (j = 0; j < newLen; j++) {
|
|
583
|
+
items[j] = newItems[j];
|
|
584
|
+
mapped[j] = createRoot(mapper);
|
|
585
|
+
}
|
|
586
|
+
len = newLen;
|
|
587
|
+
} else {
|
|
588
|
+
temp = new Array(newLen);
|
|
589
|
+
tempdisposers = new Array(newLen);
|
|
590
|
+
indexes && (tempIndexes = new Array(newLen));
|
|
591
|
+
for (start = 0, end = Math.min(len, newLen); start < end && items[start] === newItems[start]; start++) ;
|
|
592
|
+
for (end = len - 1, newEnd = newLen - 1; end >= start && newEnd >= start && items[end] === newItems[newEnd]; end--, newEnd--) {
|
|
593
|
+
temp[newEnd] = mapped[end];
|
|
594
|
+
tempdisposers[newEnd] = disposers[end];
|
|
595
|
+
indexes && (tempIndexes[newEnd] = indexes[end]);
|
|
596
|
+
}
|
|
597
|
+
newIndices = /* @__PURE__ */ new Map();
|
|
598
|
+
newIndicesNext = new Array(newEnd + 1);
|
|
599
|
+
for (j = newEnd; j >= start; j--) {
|
|
600
|
+
item = newItems[j];
|
|
601
|
+
i = newIndices.get(item);
|
|
602
|
+
newIndicesNext[j] = i === void 0 ? -1 : i;
|
|
603
|
+
newIndices.set(item, j);
|
|
604
|
+
}
|
|
605
|
+
for (i = start; i <= end; i++) {
|
|
606
|
+
item = items[i];
|
|
607
|
+
j = newIndices.get(item);
|
|
608
|
+
if (j !== void 0 && j !== -1) {
|
|
609
|
+
temp[j] = mapped[i];
|
|
610
|
+
tempdisposers[j] = disposers[i];
|
|
611
|
+
indexes && (tempIndexes[j] = indexes[i]);
|
|
612
|
+
j = newIndicesNext[j];
|
|
613
|
+
newIndices.set(item, j);
|
|
614
|
+
} else disposers[i]();
|
|
615
|
+
}
|
|
616
|
+
for (j = start; j < newLen; j++) {
|
|
617
|
+
if (j in temp) {
|
|
618
|
+
mapped[j] = temp[j];
|
|
619
|
+
disposers[j] = tempdisposers[j];
|
|
620
|
+
if (indexes) {
|
|
621
|
+
indexes[j] = tempIndexes[j];
|
|
622
|
+
indexes[j](j);
|
|
623
|
+
}
|
|
624
|
+
} else mapped[j] = createRoot(mapper);
|
|
625
|
+
}
|
|
626
|
+
mapped = mapped.slice(0, len = newLen);
|
|
627
|
+
items = newItems.slice(0);
|
|
628
|
+
}
|
|
629
|
+
return mapped;
|
|
630
|
+
});
|
|
631
|
+
function mapper(disposer) {
|
|
632
|
+
disposers[j] = disposer;
|
|
633
|
+
if (indexes) {
|
|
634
|
+
const [s, set] = createSignal(j);
|
|
635
|
+
indexes[j] = set;
|
|
636
|
+
return mapFn(newItems[j], s);
|
|
637
|
+
}
|
|
638
|
+
return mapFn(newItems[j]);
|
|
639
|
+
}
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
function createComponent(Comp, props) {
|
|
643
|
+
return untrack(() => Comp(props || {}));
|
|
644
|
+
}
|
|
645
|
+
function trueFn() {
|
|
646
|
+
return true;
|
|
647
|
+
}
|
|
648
|
+
const propTraps = {
|
|
649
|
+
get(_, property, receiver) {
|
|
650
|
+
if (property === $PROXY) return receiver;
|
|
651
|
+
return _.get(property);
|
|
652
|
+
},
|
|
653
|
+
has(_, property) {
|
|
654
|
+
if (property === $PROXY) return true;
|
|
655
|
+
return _.has(property);
|
|
656
|
+
},
|
|
657
|
+
set: trueFn,
|
|
658
|
+
deleteProperty: trueFn,
|
|
659
|
+
getOwnPropertyDescriptor(_, property) {
|
|
660
|
+
return {
|
|
661
|
+
configurable: true,
|
|
662
|
+
enumerable: true,
|
|
663
|
+
get() {
|
|
664
|
+
return _.get(property);
|
|
665
|
+
},
|
|
666
|
+
set: trueFn,
|
|
667
|
+
deleteProperty: trueFn
|
|
668
|
+
};
|
|
669
|
+
},
|
|
670
|
+
ownKeys(_) {
|
|
671
|
+
return _.keys();
|
|
672
|
+
}
|
|
673
|
+
};
|
|
674
|
+
function resolveSource(s) {
|
|
675
|
+
return !(s = typeof s === "function" ? s() : s) ? {} : s;
|
|
676
|
+
}
|
|
677
|
+
function resolveSources() {
|
|
678
|
+
for (let i = 0, length = this.length; i < length; ++i) {
|
|
679
|
+
const v = this[i]();
|
|
680
|
+
if (v !== void 0) return v;
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
function mergeProps(...sources) {
|
|
684
|
+
let proxy = false;
|
|
685
|
+
for (let i = 0; i < sources.length; i++) {
|
|
686
|
+
const s = sources[i];
|
|
687
|
+
proxy = proxy || !!s && $PROXY in s;
|
|
688
|
+
sources[i] = typeof s === "function" ? (proxy = true, createMemo(s)) : s;
|
|
689
|
+
}
|
|
690
|
+
if (SUPPORTS_PROXY && proxy) {
|
|
691
|
+
return new Proxy({
|
|
692
|
+
get(property) {
|
|
693
|
+
for (let i = sources.length - 1; i >= 0; i--) {
|
|
694
|
+
const v = resolveSource(sources[i])[property];
|
|
695
|
+
if (v !== void 0) return v;
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
has(property) {
|
|
699
|
+
for (let i = sources.length - 1; i >= 0; i--) {
|
|
700
|
+
if (property in resolveSource(sources[i])) return true;
|
|
701
|
+
}
|
|
702
|
+
return false;
|
|
703
|
+
},
|
|
704
|
+
keys() {
|
|
705
|
+
const keys = [];
|
|
706
|
+
for (let i = 0; i < sources.length; i++) keys.push(...Object.keys(resolveSource(sources[i])));
|
|
707
|
+
return [...new Set(keys)];
|
|
708
|
+
}
|
|
709
|
+
}, propTraps);
|
|
710
|
+
}
|
|
711
|
+
const sourcesMap = {};
|
|
712
|
+
const defined = /* @__PURE__ */ Object.create(null);
|
|
713
|
+
for (let i = sources.length - 1; i >= 0; i--) {
|
|
714
|
+
const source = sources[i];
|
|
715
|
+
if (!source) continue;
|
|
716
|
+
const sourceKeys = Object.getOwnPropertyNames(source);
|
|
717
|
+
for (let i2 = sourceKeys.length - 1; i2 >= 0; i2--) {
|
|
718
|
+
const key = sourceKeys[i2];
|
|
719
|
+
if (key === "__proto__" || key === "constructor") continue;
|
|
720
|
+
const desc = Object.getOwnPropertyDescriptor(source, key);
|
|
721
|
+
if (!defined[key]) {
|
|
722
|
+
defined[key] = desc.get ? {
|
|
723
|
+
enumerable: true,
|
|
724
|
+
configurable: true,
|
|
725
|
+
get: resolveSources.bind(sourcesMap[key] = [desc.get.bind(source)])
|
|
726
|
+
} : desc.value !== void 0 ? desc : void 0;
|
|
727
|
+
} else {
|
|
728
|
+
const sources2 = sourcesMap[key];
|
|
729
|
+
if (sources2) {
|
|
730
|
+
if (desc.get) sources2.push(desc.get.bind(source));
|
|
731
|
+
else if (desc.value !== void 0) sources2.push(() => desc.value);
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
const target = {};
|
|
737
|
+
const definedKeys = Object.keys(defined);
|
|
738
|
+
for (let i = definedKeys.length - 1; i >= 0; i--) {
|
|
739
|
+
const key = definedKeys[i], desc = defined[key];
|
|
740
|
+
if (desc && desc.get) Object.defineProperty(target, key, desc);
|
|
741
|
+
else target[key] = desc ? desc.value : void 0;
|
|
742
|
+
}
|
|
743
|
+
return target;
|
|
744
|
+
}
|
|
745
|
+
function splitProps(props, ...keys) {
|
|
746
|
+
const len = keys.length;
|
|
747
|
+
if (SUPPORTS_PROXY && $PROXY in props) {
|
|
748
|
+
const blocked = len > 1 ? keys.flat() : keys[0];
|
|
749
|
+
const res = keys.map((k) => {
|
|
750
|
+
return new Proxy({
|
|
751
|
+
get(property) {
|
|
752
|
+
return k.includes(property) ? props[property] : void 0;
|
|
753
|
+
},
|
|
754
|
+
has(property) {
|
|
755
|
+
return k.includes(property) && property in props;
|
|
756
|
+
},
|
|
757
|
+
keys() {
|
|
758
|
+
return k.filter((property) => property in props);
|
|
759
|
+
}
|
|
760
|
+
}, propTraps);
|
|
761
|
+
});
|
|
762
|
+
res.push(new Proxy({
|
|
763
|
+
get(property) {
|
|
764
|
+
return blocked.includes(property) ? void 0 : props[property];
|
|
765
|
+
},
|
|
766
|
+
has(property) {
|
|
767
|
+
return blocked.includes(property) ? false : property in props;
|
|
768
|
+
},
|
|
769
|
+
keys() {
|
|
770
|
+
return Object.keys(props).filter((k) => !blocked.includes(k));
|
|
771
|
+
}
|
|
772
|
+
}, propTraps));
|
|
773
|
+
return res;
|
|
774
|
+
}
|
|
775
|
+
const objects = [];
|
|
776
|
+
for (let i = 0; i <= len; i++) {
|
|
777
|
+
objects[i] = {};
|
|
778
|
+
}
|
|
779
|
+
for (const propName of Object.getOwnPropertyNames(props)) {
|
|
780
|
+
let keyIndex = len;
|
|
781
|
+
for (let i = 0; i < keys.length; i++) {
|
|
782
|
+
if (keys[i].includes(propName)) {
|
|
783
|
+
keyIndex = i;
|
|
784
|
+
break;
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
const desc = Object.getOwnPropertyDescriptor(props, propName);
|
|
788
|
+
const isDefaultDesc = !desc.get && !desc.set && desc.enumerable && desc.writable && desc.configurable;
|
|
789
|
+
isDefaultDesc ? objects[keyIndex][propName] = desc.value : Object.defineProperty(objects[keyIndex], propName, desc);
|
|
790
|
+
}
|
|
791
|
+
return objects;
|
|
792
|
+
}
|
|
793
|
+
function lazy(fn) {
|
|
794
|
+
let comp;
|
|
795
|
+
let p;
|
|
796
|
+
const wrap = (props) => {
|
|
797
|
+
const ctx = sharedConfig.context;
|
|
798
|
+
if (ctx) {
|
|
799
|
+
const [s, set] = createSignal();
|
|
800
|
+
sharedConfig.count || (sharedConfig.count = 0);
|
|
801
|
+
sharedConfig.count++;
|
|
802
|
+
(p || (p = fn())).then((mod) => {
|
|
803
|
+
!sharedConfig.done && setHydrateContext(ctx);
|
|
804
|
+
sharedConfig.count--;
|
|
805
|
+
set(() => mod.default);
|
|
806
|
+
setHydrateContext();
|
|
807
|
+
});
|
|
808
|
+
comp = s;
|
|
809
|
+
} else if (!comp) {
|
|
810
|
+
const [s] = createResource(() => (p || (p = fn())).then((mod) => mod.default));
|
|
811
|
+
comp = s;
|
|
812
|
+
}
|
|
813
|
+
let Comp;
|
|
814
|
+
return createMemo(() => (Comp = comp()) ? untrack(() => {
|
|
815
|
+
if (IS_DEV) ;
|
|
816
|
+
if (!ctx || sharedConfig.done) return Comp(props);
|
|
817
|
+
const c = sharedConfig.context;
|
|
818
|
+
setHydrateContext(ctx);
|
|
819
|
+
const r = Comp(props);
|
|
820
|
+
setHydrateContext(c);
|
|
821
|
+
return r;
|
|
822
|
+
}) : "");
|
|
823
|
+
};
|
|
824
|
+
wrap.preload = () => p || ((p = fn()).then((mod) => comp = () => mod.default), p);
|
|
825
|
+
return wrap;
|
|
826
|
+
}
|
|
827
|
+
let counter = 0;
|
|
828
|
+
function createUniqueId() {
|
|
829
|
+
const ctx = sharedConfig.context;
|
|
830
|
+
return ctx ? sharedConfig.getNextContextId() : `cl-${counter++}`;
|
|
831
|
+
}
|
|
832
|
+
const narrowedError = (name) => `Stale read from <${name}>.`;
|
|
833
|
+
function For(props) {
|
|
834
|
+
const fallback = "fallback" in props && {
|
|
835
|
+
fallback: () => props.fallback
|
|
836
|
+
};
|
|
837
|
+
return createMemo(mapArray(() => props.each, props.children, fallback || void 0));
|
|
838
|
+
}
|
|
839
|
+
function Show(props) {
|
|
840
|
+
const keyed = props.keyed;
|
|
841
|
+
const conditionValue = createMemo(() => props.when, void 0, void 0);
|
|
842
|
+
const condition = keyed ? conditionValue : createMemo(conditionValue, void 0, {
|
|
843
|
+
equals: (a, b) => !a === !b
|
|
844
|
+
});
|
|
845
|
+
return createMemo(() => {
|
|
846
|
+
const c = condition();
|
|
847
|
+
if (c) {
|
|
848
|
+
const child = props.children;
|
|
849
|
+
const fn = typeof child === "function" && child.length > 0;
|
|
850
|
+
return fn ? untrack(() => child(keyed ? c : () => {
|
|
851
|
+
if (!untrack(condition)) throw narrowedError("Show");
|
|
852
|
+
return conditionValue();
|
|
853
|
+
})) : child;
|
|
854
|
+
}
|
|
855
|
+
return props.fallback;
|
|
856
|
+
}, void 0, void 0);
|
|
857
|
+
}
|
|
858
|
+
function Switch(props) {
|
|
859
|
+
const chs = children(() => props.children);
|
|
860
|
+
const switchFunc = createMemo(() => {
|
|
861
|
+
const ch = chs();
|
|
862
|
+
const mps = Array.isArray(ch) ? ch : [ch];
|
|
863
|
+
let func = () => void 0;
|
|
864
|
+
for (let i = 0; i < mps.length; i++) {
|
|
865
|
+
const index = i;
|
|
866
|
+
const mp = mps[i];
|
|
867
|
+
const prevFunc = func;
|
|
868
|
+
const conditionValue = createMemo(() => prevFunc() ? void 0 : mp.when, void 0, void 0);
|
|
869
|
+
const condition = mp.keyed ? conditionValue : createMemo(conditionValue, void 0, {
|
|
870
|
+
equals: (a, b) => !a === !b
|
|
871
|
+
});
|
|
872
|
+
func = () => prevFunc() || (condition() ? [index, conditionValue, mp] : void 0);
|
|
873
|
+
}
|
|
874
|
+
return func;
|
|
875
|
+
});
|
|
876
|
+
return createMemo(() => {
|
|
877
|
+
const sel = switchFunc()();
|
|
878
|
+
if (!sel) return props.fallback;
|
|
879
|
+
const [index, conditionValue, mp] = sel;
|
|
880
|
+
const child = mp.children;
|
|
881
|
+
const fn = typeof child === "function" && child.length > 0;
|
|
882
|
+
return fn ? untrack(() => child(mp.keyed ? conditionValue() : () => {
|
|
883
|
+
var _a;
|
|
884
|
+
if (((_a = untrack(switchFunc)()) == null ? void 0 : _a[0]) !== index) throw narrowedError("Match");
|
|
885
|
+
return conditionValue();
|
|
886
|
+
})) : child;
|
|
887
|
+
}, void 0, void 0);
|
|
888
|
+
}
|
|
889
|
+
function Match(props) {
|
|
890
|
+
return props;
|
|
891
|
+
}
|
|
892
|
+
const booleans = [
|
|
893
|
+
"allowfullscreen",
|
|
894
|
+
"async",
|
|
895
|
+
"alpha",
|
|
896
|
+
"autofocus",
|
|
897
|
+
"autoplay",
|
|
898
|
+
"checked",
|
|
899
|
+
"controls",
|
|
900
|
+
"default",
|
|
901
|
+
"disabled",
|
|
902
|
+
"formnovalidate",
|
|
903
|
+
"hidden",
|
|
904
|
+
"indeterminate",
|
|
905
|
+
"inert",
|
|
906
|
+
"ismap",
|
|
907
|
+
"loop",
|
|
908
|
+
"multiple",
|
|
909
|
+
"muted",
|
|
910
|
+
"nomodule",
|
|
911
|
+
"novalidate",
|
|
912
|
+
"open",
|
|
913
|
+
"playsinline",
|
|
914
|
+
"readonly",
|
|
915
|
+
"required",
|
|
916
|
+
"reversed",
|
|
917
|
+
"seamless",
|
|
918
|
+
"selected",
|
|
919
|
+
"adauctionheaders",
|
|
920
|
+
"browsingtopics",
|
|
921
|
+
"credentialless",
|
|
922
|
+
"defaultchecked",
|
|
923
|
+
"defaultmuted",
|
|
924
|
+
"defaultselected",
|
|
925
|
+
"defer",
|
|
926
|
+
"disablepictureinpicture",
|
|
927
|
+
"disableremoteplayback",
|
|
928
|
+
"preservespitch",
|
|
929
|
+
"shadowrootclonable",
|
|
930
|
+
"shadowrootcustomelementregistry",
|
|
931
|
+
"shadowrootdelegatesfocus",
|
|
932
|
+
"shadowrootserializable",
|
|
933
|
+
"sharedstoragewritable"
|
|
934
|
+
];
|
|
935
|
+
const Properties = /* @__PURE__ */ new Set([
|
|
936
|
+
"className",
|
|
937
|
+
"value",
|
|
938
|
+
"readOnly",
|
|
939
|
+
"noValidate",
|
|
940
|
+
"formNoValidate",
|
|
941
|
+
"isMap",
|
|
942
|
+
"noModule",
|
|
943
|
+
"playsInline",
|
|
944
|
+
"adAuctionHeaders",
|
|
945
|
+
"allowFullscreen",
|
|
946
|
+
"browsingTopics",
|
|
947
|
+
"defaultChecked",
|
|
948
|
+
"defaultMuted",
|
|
949
|
+
"defaultSelected",
|
|
950
|
+
"disablePictureInPicture",
|
|
951
|
+
"disableRemotePlayback",
|
|
952
|
+
"preservesPitch",
|
|
953
|
+
"shadowRootClonable",
|
|
954
|
+
"shadowRootCustomElementRegistry",
|
|
955
|
+
"shadowRootDelegatesFocus",
|
|
956
|
+
"shadowRootSerializable",
|
|
957
|
+
"sharedStorageWritable",
|
|
958
|
+
...booleans
|
|
959
|
+
]);
|
|
960
|
+
const ChildProperties = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]);
|
|
961
|
+
const Aliases = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
962
|
+
className: "class",
|
|
963
|
+
htmlFor: "for"
|
|
964
|
+
});
|
|
965
|
+
const PropAliases = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
966
|
+
class: "className",
|
|
967
|
+
novalidate: {
|
|
968
|
+
$: "noValidate",
|
|
969
|
+
FORM: 1
|
|
970
|
+
},
|
|
971
|
+
formnovalidate: {
|
|
972
|
+
$: "formNoValidate",
|
|
973
|
+
BUTTON: 1,
|
|
974
|
+
INPUT: 1
|
|
975
|
+
},
|
|
976
|
+
ismap: {
|
|
977
|
+
$: "isMap",
|
|
978
|
+
IMG: 1
|
|
979
|
+
},
|
|
980
|
+
nomodule: {
|
|
981
|
+
$: "noModule",
|
|
982
|
+
SCRIPT: 1
|
|
983
|
+
},
|
|
984
|
+
playsinline: {
|
|
985
|
+
$: "playsInline",
|
|
986
|
+
VIDEO: 1
|
|
987
|
+
},
|
|
988
|
+
readonly: {
|
|
989
|
+
$: "readOnly",
|
|
990
|
+
INPUT: 1,
|
|
991
|
+
TEXTAREA: 1
|
|
992
|
+
},
|
|
993
|
+
adauctionheaders: {
|
|
994
|
+
$: "adAuctionHeaders",
|
|
995
|
+
IFRAME: 1
|
|
996
|
+
},
|
|
997
|
+
allowfullscreen: {
|
|
998
|
+
$: "allowFullscreen",
|
|
999
|
+
IFRAME: 1
|
|
1000
|
+
},
|
|
1001
|
+
browsingtopics: {
|
|
1002
|
+
$: "browsingTopics",
|
|
1003
|
+
IMG: 1
|
|
1004
|
+
},
|
|
1005
|
+
defaultchecked: {
|
|
1006
|
+
$: "defaultChecked",
|
|
1007
|
+
INPUT: 1
|
|
1008
|
+
},
|
|
1009
|
+
defaultmuted: {
|
|
1010
|
+
$: "defaultMuted",
|
|
1011
|
+
AUDIO: 1,
|
|
1012
|
+
VIDEO: 1
|
|
1013
|
+
},
|
|
1014
|
+
defaultselected: {
|
|
1015
|
+
$: "defaultSelected",
|
|
1016
|
+
OPTION: 1
|
|
1017
|
+
},
|
|
1018
|
+
disablepictureinpicture: {
|
|
1019
|
+
$: "disablePictureInPicture",
|
|
1020
|
+
VIDEO: 1
|
|
1021
|
+
},
|
|
1022
|
+
disableremoteplayback: {
|
|
1023
|
+
$: "disableRemotePlayback",
|
|
1024
|
+
AUDIO: 1,
|
|
1025
|
+
VIDEO: 1
|
|
1026
|
+
},
|
|
1027
|
+
preservespitch: {
|
|
1028
|
+
$: "preservesPitch",
|
|
1029
|
+
AUDIO: 1,
|
|
1030
|
+
VIDEO: 1
|
|
1031
|
+
},
|
|
1032
|
+
shadowrootclonable: {
|
|
1033
|
+
$: "shadowRootClonable",
|
|
1034
|
+
TEMPLATE: 1
|
|
1035
|
+
},
|
|
1036
|
+
shadowrootdelegatesfocus: {
|
|
1037
|
+
$: "shadowRootDelegatesFocus",
|
|
1038
|
+
TEMPLATE: 1
|
|
1039
|
+
},
|
|
1040
|
+
shadowrootserializable: {
|
|
1041
|
+
$: "shadowRootSerializable",
|
|
1042
|
+
TEMPLATE: 1
|
|
1043
|
+
},
|
|
1044
|
+
sharedstoragewritable: {
|
|
1045
|
+
$: "sharedStorageWritable",
|
|
1046
|
+
IFRAME: 1,
|
|
1047
|
+
IMG: 1
|
|
1048
|
+
}
|
|
1049
|
+
});
|
|
1050
|
+
function getPropAlias(prop, tagName) {
|
|
1051
|
+
const a = PropAliases[prop];
|
|
1052
|
+
return typeof a === "object" ? a[tagName] ? a["$"] : void 0 : a;
|
|
1053
|
+
}
|
|
1054
|
+
const DelegatedEvents = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]);
|
|
1055
|
+
const SVGElements = /* @__PURE__ */ new Set([
|
|
1056
|
+
"altGlyph",
|
|
1057
|
+
"altGlyphDef",
|
|
1058
|
+
"altGlyphItem",
|
|
1059
|
+
"animate",
|
|
1060
|
+
"animateColor",
|
|
1061
|
+
"animateMotion",
|
|
1062
|
+
"animateTransform",
|
|
1063
|
+
"circle",
|
|
1064
|
+
"clipPath",
|
|
1065
|
+
"color-profile",
|
|
1066
|
+
"cursor",
|
|
1067
|
+
"defs",
|
|
1068
|
+
"desc",
|
|
1069
|
+
"ellipse",
|
|
1070
|
+
"feBlend",
|
|
1071
|
+
"feColorMatrix",
|
|
1072
|
+
"feComponentTransfer",
|
|
1073
|
+
"feComposite",
|
|
1074
|
+
"feConvolveMatrix",
|
|
1075
|
+
"feDiffuseLighting",
|
|
1076
|
+
"feDisplacementMap",
|
|
1077
|
+
"feDistantLight",
|
|
1078
|
+
"feDropShadow",
|
|
1079
|
+
"feFlood",
|
|
1080
|
+
"feFuncA",
|
|
1081
|
+
"feFuncB",
|
|
1082
|
+
"feFuncG",
|
|
1083
|
+
"feFuncR",
|
|
1084
|
+
"feGaussianBlur",
|
|
1085
|
+
"feImage",
|
|
1086
|
+
"feMerge",
|
|
1087
|
+
"feMergeNode",
|
|
1088
|
+
"feMorphology",
|
|
1089
|
+
"feOffset",
|
|
1090
|
+
"fePointLight",
|
|
1091
|
+
"feSpecularLighting",
|
|
1092
|
+
"feSpotLight",
|
|
1093
|
+
"feTile",
|
|
1094
|
+
"feTurbulence",
|
|
1095
|
+
"filter",
|
|
1096
|
+
"font",
|
|
1097
|
+
"font-face",
|
|
1098
|
+
"font-face-format",
|
|
1099
|
+
"font-face-name",
|
|
1100
|
+
"font-face-src",
|
|
1101
|
+
"font-face-uri",
|
|
1102
|
+
"foreignObject",
|
|
1103
|
+
"g",
|
|
1104
|
+
"glyph",
|
|
1105
|
+
"glyphRef",
|
|
1106
|
+
"hkern",
|
|
1107
|
+
"image",
|
|
1108
|
+
"line",
|
|
1109
|
+
"linearGradient",
|
|
1110
|
+
"marker",
|
|
1111
|
+
"mask",
|
|
1112
|
+
"metadata",
|
|
1113
|
+
"missing-glyph",
|
|
1114
|
+
"mpath",
|
|
1115
|
+
"path",
|
|
1116
|
+
"pattern",
|
|
1117
|
+
"polygon",
|
|
1118
|
+
"polyline",
|
|
1119
|
+
"radialGradient",
|
|
1120
|
+
"rect",
|
|
1121
|
+
"set",
|
|
1122
|
+
"stop",
|
|
1123
|
+
"svg",
|
|
1124
|
+
"switch",
|
|
1125
|
+
"symbol",
|
|
1126
|
+
"text",
|
|
1127
|
+
"textPath",
|
|
1128
|
+
"tref",
|
|
1129
|
+
"tspan",
|
|
1130
|
+
"use",
|
|
1131
|
+
"view",
|
|
1132
|
+
"vkern"
|
|
1133
|
+
]);
|
|
1134
|
+
const SVGNamespace = {
|
|
1135
|
+
xlink: "http://www.w3.org/1999/xlink",
|
|
1136
|
+
xml: "http://www.w3.org/XML/1998/namespace"
|
|
1137
|
+
};
|
|
1138
|
+
const memo = (fn) => createMemo(() => fn());
|
|
1139
|
+
function reconcileArrays(parentNode, a, b) {
|
|
1140
|
+
let bLength = b.length, aEnd = a.length, bEnd = bLength, aStart = 0, bStart = 0, after = a[aEnd - 1].nextSibling, map = null;
|
|
1141
|
+
while (aStart < aEnd || bStart < bEnd) {
|
|
1142
|
+
if (a[aStart] === b[bStart]) {
|
|
1143
|
+
aStart++;
|
|
1144
|
+
bStart++;
|
|
1145
|
+
continue;
|
|
1146
|
+
}
|
|
1147
|
+
while (a[aEnd - 1] === b[bEnd - 1]) {
|
|
1148
|
+
aEnd--;
|
|
1149
|
+
bEnd--;
|
|
1150
|
+
}
|
|
1151
|
+
if (aEnd === aStart) {
|
|
1152
|
+
const node = bEnd < bLength ? bStart ? b[bStart - 1].nextSibling : b[bEnd - bStart] : after;
|
|
1153
|
+
while (bStart < bEnd) parentNode.insertBefore(b[bStart++], node);
|
|
1154
|
+
} else if (bEnd === bStart) {
|
|
1155
|
+
while (aStart < aEnd) {
|
|
1156
|
+
if (!map || !map.has(a[aStart])) a[aStart].remove();
|
|
1157
|
+
aStart++;
|
|
1158
|
+
}
|
|
1159
|
+
} else if (a[aStart] === b[bEnd - 1] && b[bStart] === a[aEnd - 1]) {
|
|
1160
|
+
const node = a[--aEnd].nextSibling;
|
|
1161
|
+
parentNode.insertBefore(b[bStart++], a[aStart++].nextSibling);
|
|
1162
|
+
parentNode.insertBefore(b[--bEnd], node);
|
|
1163
|
+
a[aEnd] = b[bEnd];
|
|
1164
|
+
} else {
|
|
1165
|
+
if (!map) {
|
|
1166
|
+
map = /* @__PURE__ */ new Map();
|
|
1167
|
+
let i = bStart;
|
|
1168
|
+
while (i < bEnd) map.set(b[i], i++);
|
|
1169
|
+
}
|
|
1170
|
+
const index = map.get(a[aStart]);
|
|
1171
|
+
if (index != null) {
|
|
1172
|
+
if (bStart < index && index < bEnd) {
|
|
1173
|
+
let i = aStart, sequence = 1, t;
|
|
1174
|
+
while (++i < aEnd && i < bEnd) {
|
|
1175
|
+
if ((t = map.get(a[i])) == null || t !== index + sequence) break;
|
|
1176
|
+
sequence++;
|
|
1177
|
+
}
|
|
1178
|
+
if (sequence > index - bStart) {
|
|
1179
|
+
const node = a[aStart];
|
|
1180
|
+
while (bStart < index) parentNode.insertBefore(b[bStart++], node);
|
|
1181
|
+
} else parentNode.replaceChild(b[bStart++], a[aStart++]);
|
|
1182
|
+
} else aStart++;
|
|
1183
|
+
} else a[aStart++].remove();
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
const $$EVENTS = "_$DX_DELEGATE";
|
|
1188
|
+
function render(code, element, init, options = {}) {
|
|
1189
|
+
let disposer;
|
|
1190
|
+
createRoot((dispose2) => {
|
|
1191
|
+
disposer = dispose2;
|
|
1192
|
+
element === document ? code() : insert(element, code(), element.firstChild ? null : void 0, init);
|
|
1193
|
+
}, options.owner);
|
|
1194
|
+
return () => {
|
|
1195
|
+
disposer();
|
|
1196
|
+
element.textContent = "";
|
|
1197
|
+
};
|
|
1198
|
+
}
|
|
1199
|
+
function template(html, isImportNode, isSVG, isMathML) {
|
|
1200
|
+
let node;
|
|
1201
|
+
const create = () => {
|
|
1202
|
+
const t = document.createElement("template");
|
|
1203
|
+
t.innerHTML = html;
|
|
1204
|
+
return t.content.firstChild;
|
|
1205
|
+
};
|
|
1206
|
+
const fn = () => (node || (node = create())).cloneNode(true);
|
|
1207
|
+
fn.cloneNode = fn;
|
|
1208
|
+
return fn;
|
|
1209
|
+
}
|
|
1210
|
+
function delegateEvents(eventNames, document2 = window.document) {
|
|
1211
|
+
const e = document2[$$EVENTS] || (document2[$$EVENTS] = /* @__PURE__ */ new Set());
|
|
1212
|
+
for (let i = 0, l = eventNames.length; i < l; i++) {
|
|
1213
|
+
const name = eventNames[i];
|
|
1214
|
+
if (!e.has(name)) {
|
|
1215
|
+
e.add(name);
|
|
1216
|
+
document2.addEventListener(name, eventHandler);
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
function setAttribute(node, name, value) {
|
|
1221
|
+
if (isHydrating(node)) return;
|
|
1222
|
+
if (value == null) node.removeAttribute(name);
|
|
1223
|
+
else node.setAttribute(name, value);
|
|
1224
|
+
}
|
|
1225
|
+
function setAttributeNS(node, namespace, name, value) {
|
|
1226
|
+
if (isHydrating(node)) return;
|
|
1227
|
+
if (value == null) node.removeAttributeNS(namespace, name);
|
|
1228
|
+
else node.setAttributeNS(namespace, name, value);
|
|
1229
|
+
}
|
|
1230
|
+
function setBoolAttribute(node, name, value) {
|
|
1231
|
+
if (isHydrating(node)) return;
|
|
1232
|
+
value ? node.setAttribute(name, "") : node.removeAttribute(name);
|
|
1233
|
+
}
|
|
1234
|
+
function className(node, value) {
|
|
1235
|
+
if (isHydrating(node)) return;
|
|
1236
|
+
if (value == null) node.removeAttribute("class");
|
|
1237
|
+
else node.className = value;
|
|
1238
|
+
}
|
|
1239
|
+
function addEventListener(node, name, handler, delegate) {
|
|
1240
|
+
if (delegate) {
|
|
1241
|
+
if (Array.isArray(handler)) {
|
|
1242
|
+
node[`$$${name}`] = handler[0];
|
|
1243
|
+
node[`$$${name}Data`] = handler[1];
|
|
1244
|
+
} else node[`$$${name}`] = handler;
|
|
1245
|
+
} else if (Array.isArray(handler)) {
|
|
1246
|
+
const handlerFn = handler[0];
|
|
1247
|
+
node.addEventListener(name, handler[0] = (e) => handlerFn.call(node, handler[1], e));
|
|
1248
|
+
} else node.addEventListener(name, handler, typeof handler !== "function" && handler);
|
|
1249
|
+
}
|
|
1250
|
+
function classList(node, value, prev = {}) {
|
|
1251
|
+
const classKeys = Object.keys(value || {}), prevKeys = Object.keys(prev);
|
|
1252
|
+
let i, len;
|
|
1253
|
+
for (i = 0, len = prevKeys.length; i < len; i++) {
|
|
1254
|
+
const key = prevKeys[i];
|
|
1255
|
+
if (!key || key === "undefined" || value[key]) continue;
|
|
1256
|
+
toggleClassKey(node, key, false);
|
|
1257
|
+
delete prev[key];
|
|
1258
|
+
}
|
|
1259
|
+
for (i = 0, len = classKeys.length; i < len; i++) {
|
|
1260
|
+
const key = classKeys[i], classValue = !!value[key];
|
|
1261
|
+
if (!key || key === "undefined" || prev[key] === classValue || !classValue) continue;
|
|
1262
|
+
toggleClassKey(node, key, true);
|
|
1263
|
+
prev[key] = classValue;
|
|
1264
|
+
}
|
|
1265
|
+
return prev;
|
|
1266
|
+
}
|
|
1267
|
+
function style(node, value, prev) {
|
|
1268
|
+
if (!value) return prev ? setAttribute(node, "style") : value;
|
|
1269
|
+
const nodeStyle = node.style;
|
|
1270
|
+
if (typeof value === "string") return nodeStyle.cssText = value;
|
|
1271
|
+
typeof prev === "string" && (nodeStyle.cssText = prev = void 0);
|
|
1272
|
+
prev || (prev = {});
|
|
1273
|
+
value || (value = {});
|
|
1274
|
+
let v, s;
|
|
1275
|
+
for (s in prev) {
|
|
1276
|
+
value[s] == null && nodeStyle.removeProperty(s);
|
|
1277
|
+
delete prev[s];
|
|
1278
|
+
}
|
|
1279
|
+
for (s in value) {
|
|
1280
|
+
v = value[s];
|
|
1281
|
+
if (v !== prev[s]) {
|
|
1282
|
+
nodeStyle.setProperty(s, v);
|
|
1283
|
+
prev[s] = v;
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
return prev;
|
|
1287
|
+
}
|
|
1288
|
+
function spread(node, props = {}, isSVG, skipChildren) {
|
|
1289
|
+
const prevProps = {};
|
|
1290
|
+
if (!skipChildren) {
|
|
1291
|
+
createRenderEffect(() => prevProps.children = insertExpression(node, props.children, prevProps.children));
|
|
1292
|
+
}
|
|
1293
|
+
createRenderEffect(() => typeof props.ref === "function" && use(props.ref, node));
|
|
1294
|
+
createRenderEffect(() => assign(node, props, isSVG, true, prevProps, true));
|
|
1295
|
+
return prevProps;
|
|
1296
|
+
}
|
|
1297
|
+
function use(fn, element, arg) {
|
|
1298
|
+
return untrack(() => fn(element, arg));
|
|
1299
|
+
}
|
|
1300
|
+
function insert(parent, accessor, marker, initial) {
|
|
1301
|
+
if (marker !== void 0 && !initial) initial = [];
|
|
1302
|
+
if (typeof accessor !== "function") return insertExpression(parent, accessor, initial, marker);
|
|
1303
|
+
createRenderEffect((current) => insertExpression(parent, accessor(), current, marker), initial);
|
|
1304
|
+
}
|
|
1305
|
+
function assign(node, props, isSVG, skipChildren, prevProps = {}, skipRef = false) {
|
|
1306
|
+
props || (props = {});
|
|
1307
|
+
for (const prop in prevProps) {
|
|
1308
|
+
if (!(prop in props)) {
|
|
1309
|
+
if (prop === "children") continue;
|
|
1310
|
+
prevProps[prop] = assignProp(node, prop, null, prevProps[prop], isSVG, skipRef, props);
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
for (const prop in props) {
|
|
1314
|
+
if (prop === "children") {
|
|
1315
|
+
continue;
|
|
1316
|
+
}
|
|
1317
|
+
const value = props[prop];
|
|
1318
|
+
prevProps[prop] = assignProp(node, prop, value, prevProps[prop], isSVG, skipRef, props);
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
function getNextElement(template2) {
|
|
1322
|
+
let node, key, hydrating = isHydrating();
|
|
1323
|
+
if (!hydrating || !(node = sharedConfig.registry.get(key = getHydrationKey()))) {
|
|
1324
|
+
return template2();
|
|
1325
|
+
}
|
|
1326
|
+
if (sharedConfig.completed) sharedConfig.completed.add(node);
|
|
1327
|
+
sharedConfig.registry.delete(key);
|
|
1328
|
+
return node;
|
|
1329
|
+
}
|
|
1330
|
+
function isHydrating(node) {
|
|
1331
|
+
return !!sharedConfig.context && !sharedConfig.done && (!node || node.isConnected);
|
|
1332
|
+
}
|
|
1333
|
+
function toPropertyName(name) {
|
|
1334
|
+
return name.toLowerCase().replace(/-([a-z])/g, (_, w) => w.toUpperCase());
|
|
1335
|
+
}
|
|
1336
|
+
function toggleClassKey(node, key, value) {
|
|
1337
|
+
const classNames = key.trim().split(/\s+/);
|
|
1338
|
+
for (let i = 0, nameLen = classNames.length; i < nameLen; i++) node.classList.toggle(classNames[i], value);
|
|
1339
|
+
}
|
|
1340
|
+
function assignProp(node, prop, value, prev, isSVG, skipRef, props) {
|
|
1341
|
+
let isCE, isProp, isChildProp, propAlias, forceProp;
|
|
1342
|
+
if (prop === "style") return style(node, value, prev);
|
|
1343
|
+
if (prop === "classList") return classList(node, value, prev);
|
|
1344
|
+
if (value === prev) return prev;
|
|
1345
|
+
if (prop === "ref") {
|
|
1346
|
+
if (!skipRef) value(node);
|
|
1347
|
+
} else if (prop.slice(0, 3) === "on:") {
|
|
1348
|
+
const e = prop.slice(3);
|
|
1349
|
+
prev && node.removeEventListener(e, prev, typeof prev !== "function" && prev);
|
|
1350
|
+
value && node.addEventListener(e, value, typeof value !== "function" && value);
|
|
1351
|
+
} else if (prop.slice(0, 10) === "oncapture:") {
|
|
1352
|
+
const e = prop.slice(10);
|
|
1353
|
+
prev && node.removeEventListener(e, prev, true);
|
|
1354
|
+
value && node.addEventListener(e, value, true);
|
|
1355
|
+
} else if (prop.slice(0, 2) === "on") {
|
|
1356
|
+
const name = prop.slice(2).toLowerCase();
|
|
1357
|
+
const delegate = DelegatedEvents.has(name);
|
|
1358
|
+
if (!delegate && prev) {
|
|
1359
|
+
const h = Array.isArray(prev) ? prev[0] : prev;
|
|
1360
|
+
node.removeEventListener(name, h);
|
|
1361
|
+
}
|
|
1362
|
+
if (delegate || value) {
|
|
1363
|
+
addEventListener(node, name, value, delegate);
|
|
1364
|
+
delegate && delegateEvents([name]);
|
|
1365
|
+
}
|
|
1366
|
+
} else if (prop.slice(0, 5) === "attr:") {
|
|
1367
|
+
setAttribute(node, prop.slice(5), value);
|
|
1368
|
+
} else if (prop.slice(0, 5) === "bool:") {
|
|
1369
|
+
setBoolAttribute(node, prop.slice(5), value);
|
|
1370
|
+
} else if ((forceProp = prop.slice(0, 5) === "prop:") || (isChildProp = ChildProperties.has(prop)) || !isSVG && ((propAlias = getPropAlias(prop, node.tagName)) || (isProp = Properties.has(prop))) || (isCE = node.nodeName.includes("-") || "is" in props)) {
|
|
1371
|
+
if (forceProp) {
|
|
1372
|
+
prop = prop.slice(5);
|
|
1373
|
+
isProp = true;
|
|
1374
|
+
} else if (isHydrating(node)) return value;
|
|
1375
|
+
if (prop === "class" || prop === "className") className(node, value);
|
|
1376
|
+
else if (isCE && !isProp && !isChildProp) node[toPropertyName(prop)] = value;
|
|
1377
|
+
else node[propAlias || prop] = value;
|
|
1378
|
+
} else {
|
|
1379
|
+
const ns = isSVG && prop.indexOf(":") > -1 && SVGNamespace[prop.split(":")[0]];
|
|
1380
|
+
if (ns) setAttributeNS(node, ns, prop, value);
|
|
1381
|
+
else setAttribute(node, Aliases[prop] || prop, value);
|
|
1382
|
+
}
|
|
1383
|
+
return value;
|
|
1384
|
+
}
|
|
1385
|
+
function eventHandler(e) {
|
|
1386
|
+
if (sharedConfig.registry && sharedConfig.events) {
|
|
1387
|
+
if (sharedConfig.events.find(([el, ev]) => ev === e)) return;
|
|
1388
|
+
}
|
|
1389
|
+
let node = e.target;
|
|
1390
|
+
const key = `$$${e.type}`;
|
|
1391
|
+
const oriTarget = e.target;
|
|
1392
|
+
const oriCurrentTarget = e.currentTarget;
|
|
1393
|
+
const retarget = (value) => Object.defineProperty(e, "target", {
|
|
1394
|
+
configurable: true,
|
|
1395
|
+
value
|
|
1396
|
+
});
|
|
1397
|
+
const handleNode = () => {
|
|
1398
|
+
const handler = node[key];
|
|
1399
|
+
if (handler && !node.disabled) {
|
|
1400
|
+
const data = node[`${key}Data`];
|
|
1401
|
+
data !== void 0 ? handler.call(node, data, e) : handler.call(node, e);
|
|
1402
|
+
if (e.cancelBubble) return;
|
|
1403
|
+
}
|
|
1404
|
+
node.host && typeof node.host !== "string" && !node.host._$host && node.contains(e.target) && retarget(node.host);
|
|
1405
|
+
return true;
|
|
1406
|
+
};
|
|
1407
|
+
const walkUpTree = () => {
|
|
1408
|
+
while (handleNode() && (node = node._$host || node.parentNode || node.host)) ;
|
|
1409
|
+
};
|
|
1410
|
+
Object.defineProperty(e, "currentTarget", {
|
|
1411
|
+
configurable: true,
|
|
1412
|
+
get() {
|
|
1413
|
+
return node || document;
|
|
1414
|
+
}
|
|
1415
|
+
});
|
|
1416
|
+
if (sharedConfig.registry && !sharedConfig.done) sharedConfig.done = _$HY.done = true;
|
|
1417
|
+
if (e.composedPath) {
|
|
1418
|
+
const path = e.composedPath();
|
|
1419
|
+
retarget(path[0]);
|
|
1420
|
+
for (let i = 0; i < path.length - 2; i++) {
|
|
1421
|
+
node = path[i];
|
|
1422
|
+
if (!handleNode()) break;
|
|
1423
|
+
if (node._$host) {
|
|
1424
|
+
node = node._$host;
|
|
1425
|
+
walkUpTree();
|
|
1426
|
+
break;
|
|
1427
|
+
}
|
|
1428
|
+
if (node.parentNode === oriCurrentTarget) {
|
|
1429
|
+
break;
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
} else walkUpTree();
|
|
1433
|
+
retarget(oriTarget);
|
|
1434
|
+
}
|
|
1435
|
+
function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
1436
|
+
const hydrating = isHydrating(parent);
|
|
1437
|
+
if (hydrating) {
|
|
1438
|
+
!current && (current = [...parent.childNodes]);
|
|
1439
|
+
let cleaned = [];
|
|
1440
|
+
for (let i = 0; i < current.length; i++) {
|
|
1441
|
+
const node = current[i];
|
|
1442
|
+
if (node.nodeType === 8 && node.data.slice(0, 2) === "!$") node.remove();
|
|
1443
|
+
else cleaned.push(node);
|
|
1444
|
+
}
|
|
1445
|
+
current = cleaned;
|
|
1446
|
+
}
|
|
1447
|
+
while (typeof current === "function") current = current();
|
|
1448
|
+
if (value === current) return current;
|
|
1449
|
+
const t = typeof value, multi = marker !== void 0;
|
|
1450
|
+
parent = multi && current[0] && current[0].parentNode || parent;
|
|
1451
|
+
if (t === "string" || t === "number") {
|
|
1452
|
+
if (hydrating) return current;
|
|
1453
|
+
if (t === "number") {
|
|
1454
|
+
value = value.toString();
|
|
1455
|
+
if (value === current) return current;
|
|
1456
|
+
}
|
|
1457
|
+
if (multi) {
|
|
1458
|
+
let node = current[0];
|
|
1459
|
+
if (node && node.nodeType === 3) {
|
|
1460
|
+
node.data !== value && (node.data = value);
|
|
1461
|
+
} else node = document.createTextNode(value);
|
|
1462
|
+
current = cleanChildren(parent, current, marker, node);
|
|
1463
|
+
} else {
|
|
1464
|
+
if (current !== "" && typeof current === "string") {
|
|
1465
|
+
current = parent.firstChild.data = value;
|
|
1466
|
+
} else current = parent.textContent = value;
|
|
1467
|
+
}
|
|
1468
|
+
} else if (value == null || t === "boolean") {
|
|
1469
|
+
if (hydrating) return current;
|
|
1470
|
+
current = cleanChildren(parent, current, marker);
|
|
1471
|
+
} else if (t === "function") {
|
|
1472
|
+
createRenderEffect(() => {
|
|
1473
|
+
let v = value();
|
|
1474
|
+
while (typeof v === "function") v = v();
|
|
1475
|
+
current = insertExpression(parent, v, current, marker);
|
|
1476
|
+
});
|
|
1477
|
+
return () => current;
|
|
1478
|
+
} else if (Array.isArray(value)) {
|
|
1479
|
+
const array = [];
|
|
1480
|
+
const currentArray = current && Array.isArray(current);
|
|
1481
|
+
if (normalizeIncomingArray(array, value, current, unwrapArray)) {
|
|
1482
|
+
createRenderEffect(() => current = insertExpression(parent, array, current, marker, true));
|
|
1483
|
+
return () => current;
|
|
1484
|
+
}
|
|
1485
|
+
if (hydrating) {
|
|
1486
|
+
if (!array.length) return current;
|
|
1487
|
+
if (marker === void 0) return current = [...parent.childNodes];
|
|
1488
|
+
let node = array[0];
|
|
1489
|
+
if (node.parentNode !== parent) return current;
|
|
1490
|
+
const nodes = [node];
|
|
1491
|
+
while ((node = node.nextSibling) !== marker) nodes.push(node);
|
|
1492
|
+
return current = nodes;
|
|
1493
|
+
}
|
|
1494
|
+
if (array.length === 0) {
|
|
1495
|
+
current = cleanChildren(parent, current, marker);
|
|
1496
|
+
if (multi) return current;
|
|
1497
|
+
} else if (currentArray) {
|
|
1498
|
+
if (current.length === 0) {
|
|
1499
|
+
appendNodes(parent, array, marker);
|
|
1500
|
+
} else reconcileArrays(parent, current, array);
|
|
1501
|
+
} else {
|
|
1502
|
+
current && cleanChildren(parent);
|
|
1503
|
+
appendNodes(parent, array);
|
|
1504
|
+
}
|
|
1505
|
+
current = array;
|
|
1506
|
+
} else if (value.nodeType) {
|
|
1507
|
+
if (hydrating && value.parentNode) return current = multi ? [value] : value;
|
|
1508
|
+
if (Array.isArray(current)) {
|
|
1509
|
+
if (multi) return current = cleanChildren(parent, current, marker, value);
|
|
1510
|
+
cleanChildren(parent, current, null, value);
|
|
1511
|
+
} else if (current == null || current === "" || !parent.firstChild) {
|
|
1512
|
+
parent.appendChild(value);
|
|
1513
|
+
} else parent.replaceChild(value, parent.firstChild);
|
|
1514
|
+
current = value;
|
|
1515
|
+
} else ;
|
|
1516
|
+
return current;
|
|
1517
|
+
}
|
|
1518
|
+
function normalizeIncomingArray(normalized, array, current, unwrap) {
|
|
1519
|
+
let dynamic = false;
|
|
1520
|
+
for (let i = 0, len = array.length; i < len; i++) {
|
|
1521
|
+
let item = array[i], prev = current && current[normalized.length], t;
|
|
1522
|
+
if (item == null || item === true || item === false) ;
|
|
1523
|
+
else if ((t = typeof item) === "object" && item.nodeType) {
|
|
1524
|
+
normalized.push(item);
|
|
1525
|
+
} else if (Array.isArray(item)) {
|
|
1526
|
+
dynamic = normalizeIncomingArray(normalized, item, prev) || dynamic;
|
|
1527
|
+
} else if (t === "function") {
|
|
1528
|
+
if (unwrap) {
|
|
1529
|
+
while (typeof item === "function") item = item();
|
|
1530
|
+
dynamic = normalizeIncomingArray(normalized, Array.isArray(item) ? item : [item], Array.isArray(prev) ? prev : [prev]) || dynamic;
|
|
1531
|
+
} else {
|
|
1532
|
+
normalized.push(item);
|
|
1533
|
+
dynamic = true;
|
|
1534
|
+
}
|
|
1535
|
+
} else {
|
|
1536
|
+
const value = String(item);
|
|
1537
|
+
if (prev && prev.nodeType === 3 && prev.data === value) normalized.push(prev);
|
|
1538
|
+
else normalized.push(document.createTextNode(value));
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
return dynamic;
|
|
1542
|
+
}
|
|
1543
|
+
function appendNodes(parent, array, marker = null) {
|
|
1544
|
+
for (let i = 0, len = array.length; i < len; i++) parent.insertBefore(array[i], marker);
|
|
1545
|
+
}
|
|
1546
|
+
function cleanChildren(parent, current, marker, replacement) {
|
|
1547
|
+
if (marker === void 0) return parent.textContent = "";
|
|
1548
|
+
const node = replacement || document.createTextNode("");
|
|
1549
|
+
if (current.length) {
|
|
1550
|
+
let inserted = false;
|
|
1551
|
+
for (let i = current.length - 1; i >= 0; i--) {
|
|
1552
|
+
const el = current[i];
|
|
1553
|
+
if (node !== el) {
|
|
1554
|
+
const isParent = el.parentNode === parent;
|
|
1555
|
+
if (!inserted && !i) isParent ? parent.replaceChild(node, el) : parent.insertBefore(node, marker);
|
|
1556
|
+
else isParent && el.remove();
|
|
1557
|
+
} else inserted = true;
|
|
1558
|
+
}
|
|
1559
|
+
} else parent.insertBefore(node, marker);
|
|
1560
|
+
return [node];
|
|
1561
|
+
}
|
|
1562
|
+
function getHydrationKey() {
|
|
1563
|
+
return sharedConfig.getNextContextId();
|
|
1564
|
+
}
|
|
1565
|
+
const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
|
|
1566
|
+
function createElement(tagName, isSVG = false, is = void 0) {
|
|
1567
|
+
return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName, {
|
|
1568
|
+
is
|
|
1569
|
+
});
|
|
1570
|
+
}
|
|
1571
|
+
function createDynamic(component, props) {
|
|
1572
|
+
const cached = createMemo(component);
|
|
1573
|
+
return createMemo(() => {
|
|
1574
|
+
const component2 = cached();
|
|
1575
|
+
switch (typeof component2) {
|
|
1576
|
+
case "function":
|
|
1577
|
+
return untrack(() => component2(props));
|
|
1578
|
+
case "string":
|
|
1579
|
+
const isSvg = SVGElements.has(component2);
|
|
1580
|
+
const el = sharedConfig.context ? getNextElement() : createElement(component2, isSvg, untrack(() => props.is));
|
|
1581
|
+
spread(el, props, isSvg);
|
|
1582
|
+
return el;
|
|
1583
|
+
}
|
|
1584
|
+
});
|
|
1585
|
+
}
|
|
1586
|
+
function Dynamic(props) {
|
|
1587
|
+
const [, others] = splitProps(props, ["component"]);
|
|
1588
|
+
return createDynamic(() => props.component, others);
|
|
1589
|
+
}
|
|
1590
|
+
const ShadowDomTargetContext = createContext(
|
|
1591
|
+
void 0
|
|
1592
|
+
);
|
|
1593
|
+
const DevtoolsOnCloseContext = createContext(void 0);
|
|
1594
|
+
const useDevtoolsOnClose = () => {
|
|
1595
|
+
const context = useContext(DevtoolsOnCloseContext);
|
|
1596
|
+
if (!context) {
|
|
1597
|
+
throw new Error(
|
|
1598
|
+
"useDevtoolsOnClose must be used within a TanStackRouterDevtools component"
|
|
1599
|
+
);
|
|
1600
|
+
}
|
|
1601
|
+
return context;
|
|
1602
|
+
};
|
|
1603
|
+
class TanStackRouterDevtoolsCore {
|
|
1604
|
+
constructor(config) {
|
|
1605
|
+
__privateAdd(this, _router);
|
|
1606
|
+
__privateAdd(this, _routerState);
|
|
1607
|
+
__privateAdd(this, _position);
|
|
1608
|
+
__privateAdd(this, _initialIsOpen);
|
|
1609
|
+
__privateAdd(this, _shadowDOMTarget);
|
|
1610
|
+
__privateAdd(this, _panelProps);
|
|
1611
|
+
__privateAdd(this, _closeButtonProps);
|
|
1612
|
+
__privateAdd(this, _toggleButtonProps);
|
|
1613
|
+
__privateAdd(this, _containerElement);
|
|
1614
|
+
__privateAdd(this, _isMounted, false);
|
|
1615
|
+
__privateAdd(this, _Component);
|
|
1616
|
+
__privateAdd(this, _dispose);
|
|
1617
|
+
__privateSet(this, _router, createSignal(config.router));
|
|
1618
|
+
__privateSet(this, _routerState, createSignal(config.routerState));
|
|
1619
|
+
__privateSet(this, _position, config.position ?? "bottom-left");
|
|
1620
|
+
__privateSet(this, _initialIsOpen, config.initialIsOpen ?? false);
|
|
1621
|
+
__privateSet(this, _shadowDOMTarget, config.shadowDOMTarget);
|
|
1622
|
+
__privateSet(this, _panelProps, config.panelProps);
|
|
1623
|
+
__privateSet(this, _closeButtonProps, config.closeButtonProps);
|
|
1624
|
+
__privateSet(this, _toggleButtonProps, config.toggleButtonProps);
|
|
1625
|
+
__privateSet(this, _containerElement, config.containerElement);
|
|
1626
|
+
}
|
|
1627
|
+
mount(el) {
|
|
1628
|
+
if (__privateGet(this, _isMounted)) {
|
|
1629
|
+
throw new Error("Devtools is already mounted");
|
|
1630
|
+
}
|
|
1631
|
+
const dispose2 = render(() => {
|
|
1632
|
+
const [router] = __privateGet(this, _router);
|
|
1633
|
+
const [routerState] = __privateGet(this, _routerState);
|
|
1634
|
+
const position = __privateGet(this, _position);
|
|
1635
|
+
const initialIsOpen = __privateGet(this, _initialIsOpen);
|
|
1636
|
+
const shadowDOMTarget = __privateGet(this, _shadowDOMTarget);
|
|
1637
|
+
const panelProps = __privateGet(this, _panelProps);
|
|
1638
|
+
const closeButtonProps = __privateGet(this, _closeButtonProps);
|
|
1639
|
+
const toggleButtonProps = __privateGet(this, _toggleButtonProps);
|
|
1640
|
+
const containerElement = __privateGet(this, _containerElement);
|
|
1641
|
+
let Devtools;
|
|
1642
|
+
if (__privateGet(this, _Component)) {
|
|
1643
|
+
Devtools = __privateGet(this, _Component);
|
|
1644
|
+
} else {
|
|
1645
|
+
Devtools = lazy(() => import("./FloatingTanStackRouterDevtools-CaypUmOS.js"));
|
|
1646
|
+
__privateSet(this, _Component, Devtools);
|
|
1647
|
+
}
|
|
1648
|
+
return createComponent(ShadowDomTargetContext.Provider, {
|
|
1649
|
+
value: shadowDOMTarget,
|
|
1650
|
+
get children() {
|
|
1651
|
+
return createComponent(Devtools, {
|
|
1652
|
+
position,
|
|
1653
|
+
initialIsOpen,
|
|
1654
|
+
router,
|
|
1655
|
+
routerState,
|
|
1656
|
+
shadowDOMTarget,
|
|
1657
|
+
panelProps,
|
|
1658
|
+
closeButtonProps,
|
|
1659
|
+
toggleButtonProps,
|
|
1660
|
+
containerElement
|
|
1661
|
+
});
|
|
1662
|
+
}
|
|
1663
|
+
});
|
|
1664
|
+
}, el);
|
|
1665
|
+
__privateSet(this, _isMounted, true);
|
|
1666
|
+
__privateSet(this, _dispose, dispose2);
|
|
1667
|
+
}
|
|
1668
|
+
unmount() {
|
|
1669
|
+
var _a;
|
|
1670
|
+
if (!__privateGet(this, _isMounted)) {
|
|
1671
|
+
throw new Error("Devtools is not mounted");
|
|
1672
|
+
}
|
|
1673
|
+
(_a = __privateGet(this, _dispose)) == null ? void 0 : _a.call(this);
|
|
1674
|
+
__privateSet(this, _isMounted, false);
|
|
1675
|
+
}
|
|
1676
|
+
setRouter(router) {
|
|
1677
|
+
__privateGet(this, _router)[1](router);
|
|
1678
|
+
}
|
|
1679
|
+
setRouterState(routerState) {
|
|
1680
|
+
__privateGet(this, _routerState)[1](routerState);
|
|
1681
|
+
}
|
|
1682
|
+
setOptions(options) {
|
|
1683
|
+
if (options.position !== void 0) {
|
|
1684
|
+
__privateSet(this, _position, options.position);
|
|
1685
|
+
}
|
|
1686
|
+
if (options.initialIsOpen !== void 0) {
|
|
1687
|
+
__privateSet(this, _initialIsOpen, options.initialIsOpen);
|
|
1688
|
+
}
|
|
1689
|
+
if (options.shadowDOMTarget !== void 0) {
|
|
1690
|
+
__privateSet(this, _shadowDOMTarget, options.shadowDOMTarget);
|
|
1691
|
+
}
|
|
1692
|
+
if (options.containerElement !== void 0) {
|
|
1693
|
+
__privateSet(this, _containerElement, options.containerElement);
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1697
|
+
_router = new WeakMap();
|
|
1698
|
+
_routerState = new WeakMap();
|
|
1699
|
+
_position = new WeakMap();
|
|
1700
|
+
_initialIsOpen = new WeakMap();
|
|
1701
|
+
_shadowDOMTarget = new WeakMap();
|
|
1702
|
+
_panelProps = new WeakMap();
|
|
1703
|
+
_closeButtonProps = new WeakMap();
|
|
1704
|
+
_toggleButtonProps = new WeakMap();
|
|
1705
|
+
_containerElement = new WeakMap();
|
|
1706
|
+
_isMounted = new WeakMap();
|
|
1707
|
+
_Component = new WeakMap();
|
|
1708
|
+
_dispose = new WeakMap();
|
|
1709
|
+
class TanStackRouterDevtoolsPanelCore {
|
|
1710
|
+
constructor(config) {
|
|
1711
|
+
__privateAdd(this, _router2);
|
|
1712
|
+
__privateAdd(this, _routerState2);
|
|
1713
|
+
__privateAdd(this, _style);
|
|
1714
|
+
__privateAdd(this, _className);
|
|
1715
|
+
__privateAdd(this, _shadowDOMTarget2);
|
|
1716
|
+
__privateAdd(this, _isMounted2, false);
|
|
1717
|
+
__privateAdd(this, _setIsOpen);
|
|
1718
|
+
__privateAdd(this, _dispose2);
|
|
1719
|
+
__privateAdd(this, _Component2);
|
|
1720
|
+
const {
|
|
1721
|
+
router,
|
|
1722
|
+
routerState,
|
|
1723
|
+
shadowDOMTarget,
|
|
1724
|
+
setIsOpen,
|
|
1725
|
+
style: style2,
|
|
1726
|
+
className: className2
|
|
1727
|
+
} = config;
|
|
1728
|
+
__privateSet(this, _router2, createSignal(router));
|
|
1729
|
+
__privateSet(this, _routerState2, createSignal(routerState));
|
|
1730
|
+
__privateSet(this, _style, createSignal(style2));
|
|
1731
|
+
__privateSet(this, _className, createSignal(className2));
|
|
1732
|
+
__privateSet(this, _shadowDOMTarget2, shadowDOMTarget);
|
|
1733
|
+
__privateSet(this, _setIsOpen, setIsOpen);
|
|
1734
|
+
}
|
|
1735
|
+
mount(el) {
|
|
1736
|
+
if (__privateGet(this, _isMounted2)) {
|
|
1737
|
+
throw new Error("Devtools is already mounted");
|
|
1738
|
+
}
|
|
1739
|
+
const dispose2 = render(() => {
|
|
1740
|
+
const [router] = __privateGet(this, _router2);
|
|
1741
|
+
const [routerState] = __privateGet(this, _routerState2);
|
|
1742
|
+
const [style2] = __privateGet(this, _style);
|
|
1743
|
+
const [className2] = __privateGet(this, _className);
|
|
1744
|
+
const shadowDOMTarget = __privateGet(this, _shadowDOMTarget2);
|
|
1745
|
+
const setIsOpen = __privateGet(this, _setIsOpen);
|
|
1746
|
+
let BaseTanStackRouterDevtoolsPanel;
|
|
1747
|
+
if (__privateGet(this, _Component2)) {
|
|
1748
|
+
BaseTanStackRouterDevtoolsPanel = __privateGet(this, _Component2);
|
|
1749
|
+
} else {
|
|
1750
|
+
BaseTanStackRouterDevtoolsPanel = lazy(() => import("./BaseTanStackRouterDevtoolsPanel-DxaCaP75.js").then((n) => n.c));
|
|
1751
|
+
__privateSet(this, _Component2, BaseTanStackRouterDevtoolsPanel);
|
|
1752
|
+
}
|
|
1753
|
+
return createComponent(ShadowDomTargetContext.Provider, {
|
|
1754
|
+
value: shadowDOMTarget,
|
|
1755
|
+
get children() {
|
|
1756
|
+
return createComponent(DevtoolsOnCloseContext.Provider, {
|
|
1757
|
+
value: {
|
|
1758
|
+
onCloseClick: () => {
|
|
1759
|
+
}
|
|
1760
|
+
},
|
|
1761
|
+
get children() {
|
|
1762
|
+
return createComponent(BaseTanStackRouterDevtoolsPanel, {
|
|
1763
|
+
router,
|
|
1764
|
+
routerState,
|
|
1765
|
+
shadowDOMTarget,
|
|
1766
|
+
setIsOpen,
|
|
1767
|
+
style: style2,
|
|
1768
|
+
className: className2
|
|
1769
|
+
});
|
|
1770
|
+
}
|
|
1771
|
+
});
|
|
1772
|
+
}
|
|
1773
|
+
});
|
|
1774
|
+
}, el);
|
|
1775
|
+
__privateSet(this, _isMounted2, true);
|
|
1776
|
+
__privateSet(this, _dispose2, dispose2);
|
|
1777
|
+
}
|
|
1778
|
+
unmount() {
|
|
1779
|
+
var _a;
|
|
1780
|
+
if (!__privateGet(this, _isMounted2)) {
|
|
1781
|
+
throw new Error("Devtools is not mounted");
|
|
1782
|
+
}
|
|
1783
|
+
(_a = __privateGet(this, _dispose2)) == null ? void 0 : _a.call(this);
|
|
1784
|
+
__privateSet(this, _isMounted2, false);
|
|
1785
|
+
}
|
|
1786
|
+
setRouter(router) {
|
|
1787
|
+
__privateGet(this, _router2)[1](router);
|
|
1788
|
+
}
|
|
1789
|
+
setRouterState(routerState) {
|
|
1790
|
+
__privateGet(this, _routerState2)[1](routerState);
|
|
1791
|
+
}
|
|
1792
|
+
setStyle(style2) {
|
|
1793
|
+
__privateGet(this, _style)[1](style2);
|
|
1794
|
+
}
|
|
1795
|
+
setClassName(className2) {
|
|
1796
|
+
__privateGet(this, _className)[1](className2);
|
|
1797
|
+
}
|
|
1798
|
+
setOptions(options) {
|
|
1799
|
+
if (options.shadowDOMTarget !== void 0) {
|
|
1800
|
+
__privateSet(this, _shadowDOMTarget2, options.shadowDOMTarget);
|
|
1801
|
+
}
|
|
1802
|
+
if (options.router !== void 0) {
|
|
1803
|
+
this.setRouter(options.router);
|
|
1804
|
+
}
|
|
1805
|
+
if (options.routerState !== void 0) {
|
|
1806
|
+
this.setRouterState(options.routerState);
|
|
1807
|
+
}
|
|
1808
|
+
if (options.style !== void 0) {
|
|
1809
|
+
this.setStyle(options.style);
|
|
1810
|
+
}
|
|
1811
|
+
if (options.className !== void 0) {
|
|
1812
|
+
this.setClassName(options.className);
|
|
1813
|
+
}
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
_router2 = new WeakMap();
|
|
1817
|
+
_routerState2 = new WeakMap();
|
|
1818
|
+
_style = new WeakMap();
|
|
1819
|
+
_className = new WeakMap();
|
|
1820
|
+
_shadowDOMTarget2 = new WeakMap();
|
|
1821
|
+
_isMounted2 = new WeakMap();
|
|
1822
|
+
_setIsOpen = new WeakMap();
|
|
1823
|
+
_dispose2 = new WeakMap();
|
|
1824
|
+
_Component2 = new WeakMap();
|
|
1825
|
+
export {
|
|
1826
|
+
DevtoolsOnCloseContext as D,
|
|
1827
|
+
For as F,
|
|
1828
|
+
Match as M,
|
|
1829
|
+
ShadowDomTargetContext as S,
|
|
1830
|
+
TanStackRouterDevtoolsCore as T,
|
|
1831
|
+
createSignal as a,
|
|
1832
|
+
createEffect as b,
|
|
1833
|
+
createUniqueId as c,
|
|
1834
|
+
createMemo as d,
|
|
1835
|
+
createComponent as e,
|
|
1836
|
+
spread as f,
|
|
1837
|
+
createRenderEffect as g,
|
|
1838
|
+
className as h,
|
|
1839
|
+
insert as i,
|
|
1840
|
+
Dynamic as j,
|
|
1841
|
+
delegateEvents as k,
|
|
1842
|
+
memo as l,
|
|
1843
|
+
mergeProps as m,
|
|
1844
|
+
useDevtoolsOnClose as n,
|
|
1845
|
+
addEventListener as o,
|
|
1846
|
+
untrack as p,
|
|
1847
|
+
Switch as q,
|
|
1848
|
+
onCleanup as r,
|
|
1849
|
+
setAttribute as s,
|
|
1850
|
+
template as t,
|
|
1851
|
+
useContext as u,
|
|
1852
|
+
Show as v,
|
|
1853
|
+
TanStackRouterDevtoolsPanelCore as w
|
|
1854
|
+
};
|
|
1855
|
+
//# sourceMappingURL=index-5jfj03XJ.js.map
|