lkd-web-kit 0.7.9 → 0.7.11
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/_virtual/___vite-browser-external.cjs +12 -0
- package/dist/_virtual/___vite-browser-external.js +6 -0
- package/dist/_virtual/__vite-browser-external.cjs +5 -0
- package/dist/_virtual/__vite-browser-external.js +3 -0
- package/dist/_virtual/_commonjsHelpers.cjs +34 -0
- package/dist/_virtual/_commonjsHelpers.js +30 -0
- package/dist/_virtual/_interop_require_default.cjs +7 -0
- package/dist/_virtual/_interop_require_default.js +3 -0
- package/dist/_virtual/_interop_require_wildcard.cjs +7 -0
- package/dist/_virtual/_interop_require_wildcard.js +3 -0
- package/dist/_virtual/add-base-path.cjs +7 -0
- package/dist/_virtual/add-base-path.js +3 -0
- package/dist/_virtual/add-locale.cjs +7 -0
- package/dist/_virtual/add-locale.js +3 -0
- package/dist/_virtual/add-locale2.cjs +7 -0
- package/dist/_virtual/add-locale2.js +3 -0
- package/dist/_virtual/add-path-prefix.cjs +7 -0
- package/dist/_virtual/add-path-prefix.js +3 -0
- package/dist/_virtual/add-path-suffix.cjs +7 -0
- package/dist/_virtual/add-path-suffix.js +3 -0
- package/dist/_virtual/app-paths.cjs +7 -0
- package/dist/_virtual/app-paths.js +3 -0
- package/dist/_virtual/bloom-filter.cjs +7 -0
- package/dist/_virtual/bloom-filter.js +3 -0
- package/dist/_virtual/compare-states.cjs +7 -0
- package/dist/_virtual/compare-states.js +3 -0
- package/dist/_virtual/constants.cjs +7 -0
- package/dist/_virtual/constants.js +3 -0
- package/dist/_virtual/denormalize-page-path.cjs +7 -0
- package/dist/_virtual/denormalize-page-path.js +3 -0
- package/dist/_virtual/deployment-id.cjs +7 -0
- package/dist/_virtual/deployment-id.js +3 -0
- package/dist/_virtual/detect-domain-locale.cjs +7 -0
- package/dist/_virtual/detect-domain-locale.js +3 -0
- package/dist/_virtual/detect-domain-locale2.cjs +7 -0
- package/dist/_virtual/detect-domain-locale2.js +3 -0
- package/dist/_virtual/disable-smooth-scroll.cjs +7 -0
- package/dist/_virtual/disable-smooth-scroll.js +3 -0
- package/dist/_virtual/encode-uri-path.cjs +7 -0
- package/dist/_virtual/encode-uri-path.js +3 -0
- package/dist/_virtual/ensure-leading-slash.cjs +7 -0
- package/dist/_virtual/ensure-leading-slash.js +3 -0
- package/dist/_virtual/escape-regexp.cjs +7 -0
- package/dist/_virtual/escape-regexp.js +3 -0
- package/dist/_virtual/format-next-pathname-info.cjs +7 -0
- package/dist/_virtual/format-next-pathname-info.js +3 -0
- package/dist/_virtual/format-url.cjs +7 -0
- package/dist/_virtual/format-url.js +3 -0
- package/dist/_virtual/get-asset-path-from-route.cjs +7 -0
- package/dist/_virtual/get-asset-path-from-route.js +3 -0
- package/dist/_virtual/get-cookie-parser.cjs +7 -0
- package/dist/_virtual/get-cookie-parser.js +3 -0
- package/dist/_virtual/get-dynamic-param.cjs +7 -0
- package/dist/_virtual/get-dynamic-param.js +3 -0
- package/dist/_virtual/get-next-pathname-info.cjs +7 -0
- package/dist/_virtual/get-next-pathname-info.js +3 -0
- package/dist/_virtual/get-segment-param.cjs +7 -0
- package/dist/_virtual/get-segment-param.js +3 -0
- package/dist/_virtual/has-base-path.cjs +7 -0
- package/dist/_virtual/has-base-path.js +3 -0
- package/dist/_virtual/head-manager-context.shared-runtime.cjs +7 -0
- package/dist/_virtual/head-manager-context.shared-runtime.js +3 -0
- package/dist/_virtual/html-bots.cjs +7 -0
- package/dist/_virtual/html-bots.js +3 -0
- package/dist/_virtual/index.cjs +7 -0
- package/dist/_virtual/index.js +3 -0
- package/dist/_virtual/index2.cjs +7 -0
- package/dist/_virtual/index2.js +3 -0
- package/dist/_virtual/index3.cjs +7 -0
- package/dist/_virtual/index3.js +3 -0
- package/dist/_virtual/index4.cjs +7 -0
- package/dist/_virtual/index4.js +3 -0
- package/dist/_virtual/index5.cjs +7 -0
- package/dist/_virtual/index5.js +3 -0
- package/dist/_virtual/interception-routes.cjs +7 -0
- package/dist/_virtual/interception-routes.js +3 -0
- package/dist/_virtual/interpolate-as.cjs +7 -0
- package/dist/_virtual/interpolate-as.js +3 -0
- package/dist/_virtual/invariant-error.cjs +7 -0
- package/dist/_virtual/invariant-error.js +3 -0
- package/dist/_virtual/is-api-route.cjs +7 -0
- package/dist/_virtual/is-api-route.js +3 -0
- package/dist/_virtual/is-bot.cjs +7 -0
- package/dist/_virtual/is-bot.js +3 -0
- package/dist/_virtual/is-dynamic.cjs +7 -0
- package/dist/_virtual/is-dynamic.js +3 -0
- package/dist/_virtual/is-error.cjs +7 -0
- package/dist/_virtual/is-error.js +3 -0
- package/dist/_virtual/is-local-url.cjs +7 -0
- package/dist/_virtual/is-local-url.js +3 -0
- package/dist/_virtual/is-plain-object.cjs +7 -0
- package/dist/_virtual/is-plain-object.js +3 -0
- package/dist/_virtual/mitt.cjs +7 -0
- package/dist/_virtual/mitt.js +3 -0
- package/dist/_virtual/normalize-locale-path.cjs +7 -0
- package/dist/_virtual/normalize-locale-path.js +3 -0
- package/dist/_virtual/normalize-path-sep.cjs +7 -0
- package/dist/_virtual/normalize-path-sep.js +3 -0
- package/dist/_virtual/normalize-trailing-slash.cjs +7 -0
- package/dist/_virtual/normalize-trailing-slash.js +3 -0
- package/dist/_virtual/omit.cjs +7 -0
- package/dist/_virtual/omit.js +3 -0
- package/dist/_virtual/parse-loader-tree.cjs +7 -0
- package/dist/_virtual/parse-loader-tree.js +3 -0
- package/dist/_virtual/parse-path.cjs +7 -0
- package/dist/_virtual/parse-path.js +3 -0
- package/dist/_virtual/parse-relative-url.cjs +7 -0
- package/dist/_virtual/parse-relative-url.js +3 -0
- package/dist/_virtual/parse-url.cjs +7 -0
- package/dist/_virtual/parse-url.js +3 -0
- package/dist/_virtual/path-has-prefix.cjs +7 -0
- package/dist/_virtual/path-has-prefix.js +3 -0
- package/dist/_virtual/path-match.cjs +7 -0
- package/dist/_virtual/path-match.js +3 -0
- package/dist/_virtual/prepare-destination.cjs +7 -0
- package/dist/_virtual/prepare-destination.js +3 -0
- package/dist/_virtual/querystring.cjs +7 -0
- package/dist/_virtual/querystring.js +3 -0
- package/dist/_virtual/react-is.development.cjs +7 -0
- package/dist/_virtual/react-is.development.js +3 -0
- package/dist/_virtual/react-is.production.cjs +7 -0
- package/dist/_virtual/react-is.production.js +3 -0
- package/dist/_virtual/remove-base-path.cjs +7 -0
- package/dist/_virtual/remove-base-path.js +3 -0
- package/dist/_virtual/remove-locale.cjs +7 -0
- package/dist/_virtual/remove-locale.js +3 -0
- package/dist/_virtual/remove-path-prefix.cjs +7 -0
- package/dist/_virtual/remove-path-prefix.js +3 -0
- package/dist/_virtual/remove-trailing-slash.cjs +7 -0
- package/dist/_virtual/remove-trailing-slash.js +3 -0
- package/dist/_virtual/request-idle-callback.cjs +7 -0
- package/dist/_virtual/request-idle-callback.js +3 -0
- package/dist/_virtual/resolve-href.cjs +7 -0
- package/dist/_virtual/resolve-href.js +3 -0
- package/dist/_virtual/resolve-rewrites.cjs +7 -0
- package/dist/_virtual/resolve-rewrites.js +3 -0
- package/dist/_virtual/route-loader.cjs +7 -0
- package/dist/_virtual/route-loader.js +3 -0
- package/dist/_virtual/route-match-utils.cjs +7 -0
- package/dist/_virtual/route-match-utils.js +3 -0
- package/dist/_virtual/route-matcher.cjs +7 -0
- package/dist/_virtual/route-matcher.js +3 -0
- package/dist/_virtual/route-pattern-normalizer.cjs +7 -0
- package/dist/_virtual/route-pattern-normalizer.js +3 -0
- package/dist/_virtual/route-regex.cjs +7 -0
- package/dist/_virtual/route-regex.js +3 -0
- package/dist/_virtual/router-context.shared-runtime.cjs +7 -0
- package/dist/_virtual/router-context.shared-runtime.js +3 -0
- package/dist/_virtual/router.cjs +9 -0
- package/dist/_virtual/router.js +5 -0
- package/dist/_virtual/router2.cjs +7 -0
- package/dist/_virtual/router2.js +3 -0
- package/dist/_virtual/router3.cjs +7 -0
- package/dist/_virtual/router3.js +3 -0
- package/dist/_virtual/script.cjs +7 -0
- package/dist/_virtual/script.js +3 -0
- package/dist/_virtual/segment.cjs +7 -0
- package/dist/_virtual/segment.js +3 -0
- package/dist/_virtual/set-attributes-from-props.cjs +7 -0
- package/dist/_virtual/set-attributes-from-props.js +3 -0
- package/dist/_virtual/sorted-routes.cjs +7 -0
- package/dist/_virtual/sorted-routes.js +3 -0
- package/dist/_virtual/trusted-types.cjs +7 -0
- package/dist/_virtual/trusted-types.js +3 -0
- package/dist/_virtual/utils.cjs +7 -0
- package/dist/_virtual/utils.js +3 -0
- package/dist/_virtual/warn-once.cjs +7 -0
- package/dist/_virtual/warn-once.js +3 -0
- package/dist/_virtual/with-router.cjs +7 -0
- package/dist/_virtual/with-router.js +3 -0
- package/dist/components/EmptyState/index.cjs +5 -5
- package/dist/components/Icon.cjs +2 -2
- package/dist/components/InfinityLoader/index.cjs +25 -8
- package/dist/components/InfinityLoader/index.js +21 -4
- package/dist/components/MyCheckboxGroup/index.cjs +2 -2
- package/dist/components/MyDateInput/index.cjs +3 -3
- package/dist/components/MyDatePickerInput/CalendarIcon.cjs +7 -7
- package/dist/components/MyDatePickerInput/index.cjs +3 -3
- package/dist/components/MyDateTimePicker/index.cjs +3 -3
- package/dist/components/MyMonthPickerInput/index.cjs +3 -3
- package/dist/components/MyMultiSelect/index.cjs +2 -2
- package/dist/components/MyNotifications/index.cjs +2 -2
- package/dist/components/MyNumberInput/index.cjs +2 -2
- package/dist/components/MyRadioGroup/index.cjs +2 -2
- package/dist/components/MySelect/index.cjs +2 -2
- package/dist/components/MyTextInput/index.cjs +2 -2
- package/dist/components/MyTextarea/index.cjs +2 -2
- package/dist/components/MyTimeInput/index.cjs +2 -2
- package/dist/components/NavItems.cjs +4 -4
- package/dist/components/SelectInfinity/index.cjs +8 -8
- package/dist/contexts/NavigationHistoryContext/hook.cjs +47 -0
- package/dist/contexts/NavigationHistoryContext/hook.js +42 -0
- package/dist/contexts/NavigationHistoryContext/index.cjs +15 -47
- package/dist/contexts/NavigationHistoryContext/index.js +17 -48
- package/dist/contexts/PageDataContext/index.cjs +2 -2
- package/dist/form/Form.cjs +2 -2
- package/dist/form/FormButtonSubmit.cjs +2 -2
- package/dist/form/base/FormCheckbox.cjs +2 -2
- package/dist/form/base/FormCheckboxGroup.cjs +2 -2
- package/dist/form/base/FormDateInput.cjs +2 -2
- package/dist/form/base/FormDatePickerInput.cjs +2 -2
- package/dist/form/base/FormDateTimePicker.cjs +2 -2
- package/dist/form/base/FormMonthPickerInput.cjs +2 -2
- package/dist/form/base/FormMultiSelect.cjs +2 -2
- package/dist/form/base/FormNumberInput.cjs +2 -2
- package/dist/form/base/FormRadioGroup.cjs +2 -2
- package/dist/form/base/FormSelect.cjs +2 -2
- package/dist/form/base/FormSelectInfinity.cjs +2 -2
- package/dist/form/base/FormTextInput.cjs +2 -2
- package/dist/form/base/FormTextarea.cjs +2 -2
- package/dist/form/base/FormTimeInput.cjs +2 -2
- package/dist/hocs/withController.cjs +3 -3
- package/dist/hocs/withModalManager.cjs +2 -2
- package/dist/index.cjs +3 -2
- package/dist/index.d.ts +0 -8
- package/dist/index.js +2 -1
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +20 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +16 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +52 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +48 -0
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.cjs +2 -2
- package/dist/node_modules/next/dist/build/deployment-id.cjs +34 -0
- package/dist/node_modules/next/dist/build/deployment-id.js +30 -0
- package/dist/node_modules/next/dist/client/add-base-path.cjs +42 -0
- package/dist/node_modules/next/dist/client/add-base-path.js +38 -0
- package/dist/node_modules/next/dist/client/add-locale.cjs +43 -0
- package/dist/node_modules/next/dist/client/add-locale.js +39 -0
- package/dist/node_modules/next/dist/client/detect-domain-locale.cjs +40 -0
- package/dist/node_modules/next/dist/client/detect-domain-locale.js +36 -0
- package/dist/node_modules/next/dist/client/has-base-path.cjs +40 -0
- package/dist/node_modules/next/dist/client/has-base-path.js +36 -0
- package/dist/node_modules/next/dist/client/normalize-trailing-slash.cjs +54 -0
- package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +50 -0
- package/dist/node_modules/next/dist/client/remove-base-path.cjs +49 -0
- package/dist/node_modules/next/dist/client/remove-base-path.js +45 -0
- package/dist/node_modules/next/dist/client/remove-locale.cjs +45 -0
- package/dist/node_modules/next/dist/client/remove-locale.js +41 -0
- package/dist/node_modules/next/dist/client/request-idle-callback.cjs +56 -0
- package/dist/node_modules/next/dist/client/request-idle-callback.js +52 -0
- package/dist/node_modules/next/dist/client/resolve-href.cjs +132 -0
- package/dist/node_modules/next/dist/client/resolve-href.js +128 -0
- package/dist/node_modules/next/dist/client/route-loader.cjs +363 -0
- package/dist/node_modules/next/dist/client/route-loader.js +359 -0
- package/dist/node_modules/next/dist/client/router.cjs +201 -0
- package/dist/node_modules/next/dist/client/router.js +197 -0
- package/dist/node_modules/next/dist/client/script.cjs +366 -0
- package/dist/node_modules/next/dist/client/script.js +362 -0
- package/dist/node_modules/next/dist/client/set-attributes-from-props.cjs +81 -0
- package/dist/node_modules/next/dist/client/set-attributes-from-props.js +77 -0
- package/dist/node_modules/next/dist/client/trusted-types.cjs +56 -0
- package/dist/node_modules/next/dist/client/trusted-types.js +52 -0
- package/dist/node_modules/next/dist/client/with-router.cjs +54 -0
- package/dist/node_modules/next/dist/client/with-router.js +50 -0
- package/dist/node_modules/next/dist/compiled/cookie/index.cjs +22 -0
- package/dist/node_modules/next/dist/compiled/cookie/index.js +18 -0
- package/dist/node_modules/next/dist/compiled/gzip-size/index.cjs +17 -0
- package/dist/node_modules/next/dist/compiled/gzip-size/index.js +13 -0
- package/dist/node_modules/next/dist/compiled/path-to-regexp/index.cjs +16 -0
- package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +12 -0
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.development.cjs +147 -0
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.development.js +143 -0
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.production.cjs +144 -0
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.production.js +140 -0
- package/dist/node_modules/next/dist/compiled/react-is/index.cjs +23 -0
- package/dist/node_modules/next/dist/compiled/react-is/index.js +19 -0
- package/dist/node_modules/next/dist/lib/constants.cjs +365 -0
- package/dist/node_modules/next/dist/lib/constants.js +361 -0
- package/dist/node_modules/next/dist/lib/is-api-route.cjs +31 -0
- package/dist/node_modules/next/dist/lib/is-api-route.js +27 -0
- package/dist/node_modules/next/dist/lib/is-error.cjs +91 -0
- package/dist/node_modules/next/dist/lib/is-error.js +87 -0
- package/dist/node_modules/next/dist/lib/route-pattern-normalizer.cjs +115 -0
- package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +111 -0
- package/dist/node_modules/next/dist/server/api-utils/get-cookie-parser.cjs +39 -0
- package/dist/node_modules/next/dist/server/api-utils/get-cookie-parser.js +35 -0
- package/dist/node_modules/next/dist/shared/lib/bloom-filter.cjs +101 -0
- package/dist/node_modules/next/dist/shared/lib/bloom-filter.js +97 -0
- package/dist/node_modules/next/dist/shared/lib/encode-uri-path.cjs +31 -0
- package/dist/node_modules/next/dist/shared/lib/encode-uri-path.js +27 -0
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.cjs +37 -0
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.cjs +36 -0
- package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +32 -0
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.cjs +41 -0
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +37 -0
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.cjs +70 -0
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +66 -0
- package/dist/node_modules/next/dist/shared/lib/invariant-error.cjs +34 -0
- package/dist/node_modules/next/dist/shared/lib/invariant-error.js +30 -0
- package/dist/node_modules/next/dist/shared/lib/is-plain-object.cjs +54 -0
- package/dist/node_modules/next/dist/shared/lib/is-plain-object.js +50 -0
- package/dist/node_modules/next/dist/shared/lib/mitt.cjs +58 -0
- package/dist/node_modules/next/dist/shared/lib/mitt.js +54 -0
- package/dist/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.cjs +36 -0
- package/dist/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js +32 -0
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.cjs +36 -0
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +32 -0
- package/dist/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.cjs +37 -0
- package/dist/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/router/router.cjs +1814 -0
- package/dist/node_modules/next/dist/shared/lib/router/router.js +1810 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.cjs +46 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +42 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.cjs +37 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.cjs +37 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.cjs +65 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +61 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/compare-states.cjs +50 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/compare-states.js +46 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/disable-smooth-scroll.cjs +60 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/disable-smooth-scroll.js +56 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.cjs +47 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js +43 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.cjs +103 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +99 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.cjs +32 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.js +28 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.cjs +208 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +204 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.cjs +71 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js +67 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.cjs +94 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +90 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/html-bots.cjs +29 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/html-bots.js +25 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.cjs +43 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +39 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.cjs +119 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +115 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.cjs +71 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +67 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-bot.cjs +68 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-bot.js +64 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.cjs +43 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +39 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.cjs +44 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +40 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.cjs +37 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.cjs +46 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +42 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.cjs +51 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +47 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.cjs +54 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +50 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-url.cjs +50 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-url.js +46 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.cjs +37 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-match.cjs +66 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-match.js +62 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/prepare-destination.cjs +303 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +299 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.cjs +90 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +86 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.cjs +56 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js +52 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.cjs +39 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +35 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-rewrites.cjs +140 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-rewrites.js +136 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.cjs +127 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +123 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.cjs +63 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +59 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.cjs +272 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +268 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.cjs +256 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +252 -0
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.cjs +36 -0
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +32 -0
- package/dist/node_modules/next/dist/shared/lib/segment.cjs +103 -0
- package/dist/node_modules/next/dist/shared/lib/segment.js +99 -0
- package/dist/node_modules/next/dist/shared/lib/utils/warn-once.cjs +38 -0
- package/dist/node_modules/next/dist/shared/lib/utils/warn-once.js +34 -0
- package/dist/node_modules/next/dist/shared/lib/utils.cjs +204 -0
- package/dist/node_modules/next/dist/shared/lib/utils.js +200 -0
- package/dist/node_modules/next/router.cjs +17 -0
- package/dist/node_modules/next/router.js +13 -0
- package/package.json +6 -6
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const routePatternNormalizer = require('../../../../_virtual/route-pattern-normalizer.cjs');
|
|
6
|
+
|
|
7
|
+
var hasRequiredRoutePatternNormalizer;
|
|
8
|
+
|
|
9
|
+
function requireRoutePatternNormalizer () {
|
|
10
|
+
if (hasRequiredRoutePatternNormalizer) return routePatternNormalizer.__exports;
|
|
11
|
+
hasRequiredRoutePatternNormalizer = 1;
|
|
12
|
+
(function (exports) {
|
|
13
|
+
Object.defineProperty(exports, "__esModule", {
|
|
14
|
+
value: true
|
|
15
|
+
});
|
|
16
|
+
function _export(target, all) {
|
|
17
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: all[name]
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
_export(exports, {
|
|
23
|
+
PARAM_SEPARATOR: function() {
|
|
24
|
+
return PARAM_SEPARATOR;
|
|
25
|
+
},
|
|
26
|
+
hasAdjacentParameterIssues: function() {
|
|
27
|
+
return hasAdjacentParameterIssues;
|
|
28
|
+
},
|
|
29
|
+
normalizeAdjacentParameters: function() {
|
|
30
|
+
return normalizeAdjacentParameters;
|
|
31
|
+
},
|
|
32
|
+
normalizeTokensForRegexp: function() {
|
|
33
|
+
return normalizeTokensForRegexp;
|
|
34
|
+
},
|
|
35
|
+
stripNormalizedSeparators: function() {
|
|
36
|
+
return stripNormalizedSeparators;
|
|
37
|
+
},
|
|
38
|
+
stripParameterSeparators: function() {
|
|
39
|
+
return stripParameterSeparators;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
const PARAM_SEPARATOR = '_NEXTSEP_';
|
|
43
|
+
function hasAdjacentParameterIssues(route) {
|
|
44
|
+
if (typeof route !== 'string') return false;
|
|
45
|
+
// Check for interception route markers followed immediately by parameters
|
|
46
|
+
// Pattern: /(.):param, /(..):param, /(...):param, /(.)(.):param etc.
|
|
47
|
+
// These patterns cause "Must have text between two parameters" errors
|
|
48
|
+
if (/\/\(\.{1,3}\):[^/\s]+/.test(route)) {
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
// Check for basic adjacent parameters without separators
|
|
52
|
+
// Pattern: :param1:param2 (but not :param* or other URL patterns)
|
|
53
|
+
if (/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(route)) {
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
function normalizeAdjacentParameters(route) {
|
|
59
|
+
let normalized = route;
|
|
60
|
+
// Handle interception route patterns: (.):param -> (.)_NEXTSEP_:param
|
|
61
|
+
normalized = normalized.replace(/(\([^)]*\)):([^/\s]+)/g, `$1${PARAM_SEPARATOR}:$2`);
|
|
62
|
+
// Handle other adjacent parameter patterns: :param1:param2 -> :param1_NEXTSEP_:param2
|
|
63
|
+
normalized = normalized.replace(/:([^:/\s)]+)(?=:)/g, `:$1${PARAM_SEPARATOR}`);
|
|
64
|
+
return normalized;
|
|
65
|
+
}
|
|
66
|
+
function normalizeTokensForRegexp(tokens) {
|
|
67
|
+
return tokens.map((token)=>{
|
|
68
|
+
// Token union type: Token = string | TokenObject
|
|
69
|
+
// Literal path segments are strings, parameters/wildcards are objects
|
|
70
|
+
if (typeof token === 'object' && token !== null && // Not all token objects have 'modifier' property (e.g., simple text tokens)
|
|
71
|
+
'modifier' in token && // Only repeating modifiers (* or +) cause the validation error
|
|
72
|
+
// Other modifiers like '?' (optional) are fine
|
|
73
|
+
(token.modifier === '*' || token.modifier === '+') && // Token objects can have different shapes depending on route pattern
|
|
74
|
+
'prefix' in token && 'suffix' in token && // Both prefix and suffix must be empty strings
|
|
75
|
+
// This is what causes the validation error in path-to-regexp
|
|
76
|
+
token.prefix === '' && token.suffix === '') {
|
|
77
|
+
// Add minimal prefix to satisfy path-to-regexp validation
|
|
78
|
+
// We use '/' as it's the most common path delimiter and won't break route matching
|
|
79
|
+
// The prefix gets used in regex generation but doesn't affect parameter extraction
|
|
80
|
+
return {
|
|
81
|
+
...token,
|
|
82
|
+
prefix: '/'
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
return token;
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
function stripNormalizedSeparators(pathname) {
|
|
89
|
+
// Remove separator after interception route markers
|
|
90
|
+
// Pattern: (.)_NEXTSEP_ -> (.), (..)_NEXTSEP_ -> (..), etc.
|
|
91
|
+
// The separator appears after the closing paren of interception markers
|
|
92
|
+
return pathname.replace(new RegExp(`\\)${PARAM_SEPARATOR}`, 'g'), ')');
|
|
93
|
+
}
|
|
94
|
+
function stripParameterSeparators(params) {
|
|
95
|
+
const cleaned = {};
|
|
96
|
+
for (const [key, value] of Object.entries(params)){
|
|
97
|
+
if (typeof value === 'string') {
|
|
98
|
+
// Remove the separator if it appears at the start of parameter values
|
|
99
|
+
cleaned[key] = value.replace(new RegExp(`^${PARAM_SEPARATOR}`), '');
|
|
100
|
+
} else if (Array.isArray(value)) {
|
|
101
|
+
// Handle array parameters (from repeated route segments)
|
|
102
|
+
cleaned[key] = value.map((item)=>typeof item === 'string' ? item.replace(new RegExp(`^${PARAM_SEPARATOR}`), '') : item);
|
|
103
|
+
} else {
|
|
104
|
+
cleaned[key] = value;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return cleaned;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
} (routePatternNormalizer.__exports));
|
|
112
|
+
return routePatternNormalizer.__exports;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
exports.__require = requireRoutePatternNormalizer;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { __exports as routePatternNormalizer } from '../../../../_virtual/route-pattern-normalizer.js';
|
|
2
|
+
|
|
3
|
+
var hasRequiredRoutePatternNormalizer;
|
|
4
|
+
|
|
5
|
+
function requireRoutePatternNormalizer () {
|
|
6
|
+
if (hasRequiredRoutePatternNormalizer) return routePatternNormalizer;
|
|
7
|
+
hasRequiredRoutePatternNormalizer = 1;
|
|
8
|
+
(function (exports) {
|
|
9
|
+
Object.defineProperty(exports, "__esModule", {
|
|
10
|
+
value: true
|
|
11
|
+
});
|
|
12
|
+
function _export(target, all) {
|
|
13
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: all[name]
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
_export(exports, {
|
|
19
|
+
PARAM_SEPARATOR: function() {
|
|
20
|
+
return PARAM_SEPARATOR;
|
|
21
|
+
},
|
|
22
|
+
hasAdjacentParameterIssues: function() {
|
|
23
|
+
return hasAdjacentParameterIssues;
|
|
24
|
+
},
|
|
25
|
+
normalizeAdjacentParameters: function() {
|
|
26
|
+
return normalizeAdjacentParameters;
|
|
27
|
+
},
|
|
28
|
+
normalizeTokensForRegexp: function() {
|
|
29
|
+
return normalizeTokensForRegexp;
|
|
30
|
+
},
|
|
31
|
+
stripNormalizedSeparators: function() {
|
|
32
|
+
return stripNormalizedSeparators;
|
|
33
|
+
},
|
|
34
|
+
stripParameterSeparators: function() {
|
|
35
|
+
return stripParameterSeparators;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
const PARAM_SEPARATOR = '_NEXTSEP_';
|
|
39
|
+
function hasAdjacentParameterIssues(route) {
|
|
40
|
+
if (typeof route !== 'string') return false;
|
|
41
|
+
// Check for interception route markers followed immediately by parameters
|
|
42
|
+
// Pattern: /(.):param, /(..):param, /(...):param, /(.)(.):param etc.
|
|
43
|
+
// These patterns cause "Must have text between two parameters" errors
|
|
44
|
+
if (/\/\(\.{1,3}\):[^/\s]+/.test(route)) {
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
// Check for basic adjacent parameters without separators
|
|
48
|
+
// Pattern: :param1:param2 (but not :param* or other URL patterns)
|
|
49
|
+
if (/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(route)) {
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
function normalizeAdjacentParameters(route) {
|
|
55
|
+
let normalized = route;
|
|
56
|
+
// Handle interception route patterns: (.):param -> (.)_NEXTSEP_:param
|
|
57
|
+
normalized = normalized.replace(/(\([^)]*\)):([^/\s]+)/g, `$1${PARAM_SEPARATOR}:$2`);
|
|
58
|
+
// Handle other adjacent parameter patterns: :param1:param2 -> :param1_NEXTSEP_:param2
|
|
59
|
+
normalized = normalized.replace(/:([^:/\s)]+)(?=:)/g, `:$1${PARAM_SEPARATOR}`);
|
|
60
|
+
return normalized;
|
|
61
|
+
}
|
|
62
|
+
function normalizeTokensForRegexp(tokens) {
|
|
63
|
+
return tokens.map((token)=>{
|
|
64
|
+
// Token union type: Token = string | TokenObject
|
|
65
|
+
// Literal path segments are strings, parameters/wildcards are objects
|
|
66
|
+
if (typeof token === 'object' && token !== null && // Not all token objects have 'modifier' property (e.g., simple text tokens)
|
|
67
|
+
'modifier' in token && // Only repeating modifiers (* or +) cause the validation error
|
|
68
|
+
// Other modifiers like '?' (optional) are fine
|
|
69
|
+
(token.modifier === '*' || token.modifier === '+') && // Token objects can have different shapes depending on route pattern
|
|
70
|
+
'prefix' in token && 'suffix' in token && // Both prefix and suffix must be empty strings
|
|
71
|
+
// This is what causes the validation error in path-to-regexp
|
|
72
|
+
token.prefix === '' && token.suffix === '') {
|
|
73
|
+
// Add minimal prefix to satisfy path-to-regexp validation
|
|
74
|
+
// We use '/' as it's the most common path delimiter and won't break route matching
|
|
75
|
+
// The prefix gets used in regex generation but doesn't affect parameter extraction
|
|
76
|
+
return {
|
|
77
|
+
...token,
|
|
78
|
+
prefix: '/'
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
return token;
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
function stripNormalizedSeparators(pathname) {
|
|
85
|
+
// Remove separator after interception route markers
|
|
86
|
+
// Pattern: (.)_NEXTSEP_ -> (.), (..)_NEXTSEP_ -> (..), etc.
|
|
87
|
+
// The separator appears after the closing paren of interception markers
|
|
88
|
+
return pathname.replace(new RegExp(`\\)${PARAM_SEPARATOR}`, 'g'), ')');
|
|
89
|
+
}
|
|
90
|
+
function stripParameterSeparators(params) {
|
|
91
|
+
const cleaned = {};
|
|
92
|
+
for (const [key, value] of Object.entries(params)){
|
|
93
|
+
if (typeof value === 'string') {
|
|
94
|
+
// Remove the separator if it appears at the start of parameter values
|
|
95
|
+
cleaned[key] = value.replace(new RegExp(`^${PARAM_SEPARATOR}`), '');
|
|
96
|
+
} else if (Array.isArray(value)) {
|
|
97
|
+
// Handle array parameters (from repeated route segments)
|
|
98
|
+
cleaned[key] = value.map((item)=>typeof item === 'string' ? item.replace(new RegExp(`^${PARAM_SEPARATOR}`), '') : item);
|
|
99
|
+
} else {
|
|
100
|
+
cleaned[key] = value;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return cleaned;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
} (routePatternNormalizer));
|
|
108
|
+
return routePatternNormalizer;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export { requireRoutePatternNormalizer as __require };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const getCookieParser = require('../../../../../_virtual/get-cookie-parser.cjs');
|
|
6
|
+
const index = require('../../compiled/cookie/index.cjs');
|
|
7
|
+
|
|
8
|
+
var hasRequiredGetCookieParser;
|
|
9
|
+
|
|
10
|
+
function requireGetCookieParser () {
|
|
11
|
+
if (hasRequiredGetCookieParser) return getCookieParser.__exports;
|
|
12
|
+
hasRequiredGetCookieParser = 1;
|
|
13
|
+
(function (exports) {
|
|
14
|
+
Object.defineProperty(exports, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "getCookieParser", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return getCookieParser;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
function getCookieParser(headers) {
|
|
24
|
+
return function parseCookie() {
|
|
25
|
+
const { cookie } = headers;
|
|
26
|
+
if (!cookie) {
|
|
27
|
+
return {};
|
|
28
|
+
}
|
|
29
|
+
const { parse: parseCookieFn } = index.__require();
|
|
30
|
+
return parseCookieFn(Array.isArray(cookie) ? cookie.join('; ') : cookie);
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
} (getCookieParser.__exports));
|
|
36
|
+
return getCookieParser.__exports;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
exports.__require = requireGetCookieParser;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { __exports as getCookieParser } from '../../../../../_virtual/get-cookie-parser.js';
|
|
2
|
+
import { __require as requireCookie } from '../../compiled/cookie/index.js';
|
|
3
|
+
|
|
4
|
+
var hasRequiredGetCookieParser;
|
|
5
|
+
|
|
6
|
+
function requireGetCookieParser () {
|
|
7
|
+
if (hasRequiredGetCookieParser) return getCookieParser;
|
|
8
|
+
hasRequiredGetCookieParser = 1;
|
|
9
|
+
(function (exports) {
|
|
10
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11
|
+
value: true
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "getCookieParser", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function() {
|
|
16
|
+
return getCookieParser;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
function getCookieParser(headers) {
|
|
20
|
+
return function parseCookie() {
|
|
21
|
+
const { cookie } = headers;
|
|
22
|
+
if (!cookie) {
|
|
23
|
+
return {};
|
|
24
|
+
}
|
|
25
|
+
const { parse: parseCookieFn } = requireCookie();
|
|
26
|
+
return parseCookieFn(Array.isArray(cookie) ? cookie.join('; ') : cookie);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
} (getCookieParser));
|
|
32
|
+
return getCookieParser;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { requireGetCookieParser as __require };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const bloomFilter = require('../../../../../_virtual/bloom-filter.cjs');
|
|
6
|
+
const index = require('../../compiled/gzip-size/index.cjs');
|
|
7
|
+
|
|
8
|
+
var hasRequiredBloomFilter;
|
|
9
|
+
|
|
10
|
+
function requireBloomFilter () {
|
|
11
|
+
if (hasRequiredBloomFilter) return bloomFilter.__exports;
|
|
12
|
+
hasRequiredBloomFilter = 1;
|
|
13
|
+
(function (exports) {
|
|
14
|
+
Object.defineProperty(exports, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "BloomFilter", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return BloomFilter;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
function murmurhash2(str) {
|
|
24
|
+
let h = 0;
|
|
25
|
+
for(let i = 0; i < str.length; i++){
|
|
26
|
+
const c = str.charCodeAt(i);
|
|
27
|
+
h = Math.imul(h ^ c, 0x5bd1e995);
|
|
28
|
+
h ^= h >>> 13;
|
|
29
|
+
h = Math.imul(h, 0x5bd1e995);
|
|
30
|
+
}
|
|
31
|
+
return h >>> 0;
|
|
32
|
+
}
|
|
33
|
+
// default to 0.01% error rate as the filter compresses very well
|
|
34
|
+
const DEFAULT_ERROR_RATE = 0.0001;
|
|
35
|
+
class BloomFilter {
|
|
36
|
+
constructor(numItems, errorRate = DEFAULT_ERROR_RATE){
|
|
37
|
+
this.numItems = numItems;
|
|
38
|
+
this.errorRate = errorRate;
|
|
39
|
+
this.numBits = Math.ceil(-(numItems * Math.log(errorRate)) / (Math.log(2) * Math.log(2)));
|
|
40
|
+
this.numHashes = Math.ceil(this.numBits / numItems * Math.log(2));
|
|
41
|
+
this.bitArray = new Array(this.numBits).fill(0);
|
|
42
|
+
}
|
|
43
|
+
static from(items, errorRate = DEFAULT_ERROR_RATE) {
|
|
44
|
+
const filter = new BloomFilter(items.length, errorRate);
|
|
45
|
+
for (const item of items){
|
|
46
|
+
filter.add(item);
|
|
47
|
+
}
|
|
48
|
+
return filter;
|
|
49
|
+
}
|
|
50
|
+
export() {
|
|
51
|
+
const data = {
|
|
52
|
+
numItems: this.numItems,
|
|
53
|
+
errorRate: this.errorRate,
|
|
54
|
+
numBits: this.numBits,
|
|
55
|
+
numHashes: this.numHashes,
|
|
56
|
+
bitArray: this.bitArray
|
|
57
|
+
};
|
|
58
|
+
if (process.env.NEXT_RUNTIME === 'nodejs') {
|
|
59
|
+
if (this.errorRate < DEFAULT_ERROR_RATE) {
|
|
60
|
+
const filterData = JSON.stringify(data);
|
|
61
|
+
const gzipSize = index.__require().sync(filterData);
|
|
62
|
+
if (gzipSize > 1024) {
|
|
63
|
+
console.warn(`Creating filter with error rate less than 0.1% (0.001) can increase the size dramatically proceed with caution. Received error rate ${this.errorRate} resulted in size ${filterData.length} bytes, ${gzipSize} bytes (gzip)`);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return data;
|
|
68
|
+
}
|
|
69
|
+
import(data) {
|
|
70
|
+
this.numItems = data.numItems;
|
|
71
|
+
this.errorRate = data.errorRate;
|
|
72
|
+
this.numBits = data.numBits;
|
|
73
|
+
this.numHashes = data.numHashes;
|
|
74
|
+
this.bitArray = data.bitArray;
|
|
75
|
+
}
|
|
76
|
+
add(item) {
|
|
77
|
+
const hashValues = this.getHashValues(item);
|
|
78
|
+
hashValues.forEach((hash)=>{
|
|
79
|
+
this.bitArray[hash] = 1;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
contains(item) {
|
|
83
|
+
const hashValues = this.getHashValues(item);
|
|
84
|
+
return hashValues.every((hash)=>this.bitArray[hash]);
|
|
85
|
+
}
|
|
86
|
+
getHashValues(item) {
|
|
87
|
+
const hashValues = [];
|
|
88
|
+
for(let i = 1; i <= this.numHashes; i++){
|
|
89
|
+
const hash = murmurhash2(`${item}${i}`) % this.numBits;
|
|
90
|
+
hashValues.push(hash);
|
|
91
|
+
}
|
|
92
|
+
return hashValues;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
} (bloomFilter.__exports));
|
|
98
|
+
return bloomFilter.__exports;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
exports.__require = requireBloomFilter;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { __exports as bloomFilter } from '../../../../../_virtual/bloom-filter.js';
|
|
2
|
+
import { __require as requireGzipSize } from '../../compiled/gzip-size/index.js';
|
|
3
|
+
|
|
4
|
+
var hasRequiredBloomFilter;
|
|
5
|
+
|
|
6
|
+
function requireBloomFilter () {
|
|
7
|
+
if (hasRequiredBloomFilter) return bloomFilter;
|
|
8
|
+
hasRequiredBloomFilter = 1;
|
|
9
|
+
(function (exports) {
|
|
10
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11
|
+
value: true
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "BloomFilter", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function() {
|
|
16
|
+
return BloomFilter;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
function murmurhash2(str) {
|
|
20
|
+
let h = 0;
|
|
21
|
+
for(let i = 0; i < str.length; i++){
|
|
22
|
+
const c = str.charCodeAt(i);
|
|
23
|
+
h = Math.imul(h ^ c, 0x5bd1e995);
|
|
24
|
+
h ^= h >>> 13;
|
|
25
|
+
h = Math.imul(h, 0x5bd1e995);
|
|
26
|
+
}
|
|
27
|
+
return h >>> 0;
|
|
28
|
+
}
|
|
29
|
+
// default to 0.01% error rate as the filter compresses very well
|
|
30
|
+
const DEFAULT_ERROR_RATE = 0.0001;
|
|
31
|
+
class BloomFilter {
|
|
32
|
+
constructor(numItems, errorRate = DEFAULT_ERROR_RATE){
|
|
33
|
+
this.numItems = numItems;
|
|
34
|
+
this.errorRate = errorRate;
|
|
35
|
+
this.numBits = Math.ceil(-(numItems * Math.log(errorRate)) / (Math.log(2) * Math.log(2)));
|
|
36
|
+
this.numHashes = Math.ceil(this.numBits / numItems * Math.log(2));
|
|
37
|
+
this.bitArray = new Array(this.numBits).fill(0);
|
|
38
|
+
}
|
|
39
|
+
static from(items, errorRate = DEFAULT_ERROR_RATE) {
|
|
40
|
+
const filter = new BloomFilter(items.length, errorRate);
|
|
41
|
+
for (const item of items){
|
|
42
|
+
filter.add(item);
|
|
43
|
+
}
|
|
44
|
+
return filter;
|
|
45
|
+
}
|
|
46
|
+
export() {
|
|
47
|
+
const data = {
|
|
48
|
+
numItems: this.numItems,
|
|
49
|
+
errorRate: this.errorRate,
|
|
50
|
+
numBits: this.numBits,
|
|
51
|
+
numHashes: this.numHashes,
|
|
52
|
+
bitArray: this.bitArray
|
|
53
|
+
};
|
|
54
|
+
if (process.env.NEXT_RUNTIME === 'nodejs') {
|
|
55
|
+
if (this.errorRate < DEFAULT_ERROR_RATE) {
|
|
56
|
+
const filterData = JSON.stringify(data);
|
|
57
|
+
const gzipSize = requireGzipSize().sync(filterData);
|
|
58
|
+
if (gzipSize > 1024) {
|
|
59
|
+
console.warn(`Creating filter with error rate less than 0.1% (0.001) can increase the size dramatically proceed with caution. Received error rate ${this.errorRate} resulted in size ${filterData.length} bytes, ${gzipSize} bytes (gzip)`);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return data;
|
|
64
|
+
}
|
|
65
|
+
import(data) {
|
|
66
|
+
this.numItems = data.numItems;
|
|
67
|
+
this.errorRate = data.errorRate;
|
|
68
|
+
this.numBits = data.numBits;
|
|
69
|
+
this.numHashes = data.numHashes;
|
|
70
|
+
this.bitArray = data.bitArray;
|
|
71
|
+
}
|
|
72
|
+
add(item) {
|
|
73
|
+
const hashValues = this.getHashValues(item);
|
|
74
|
+
hashValues.forEach((hash)=>{
|
|
75
|
+
this.bitArray[hash] = 1;
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
contains(item) {
|
|
79
|
+
const hashValues = this.getHashValues(item);
|
|
80
|
+
return hashValues.every((hash)=>this.bitArray[hash]);
|
|
81
|
+
}
|
|
82
|
+
getHashValues(item) {
|
|
83
|
+
const hashValues = [];
|
|
84
|
+
for(let i = 1; i <= this.numHashes; i++){
|
|
85
|
+
const hash = murmurhash2(`${item}${i}`) % this.numBits;
|
|
86
|
+
hashValues.push(hash);
|
|
87
|
+
}
|
|
88
|
+
return hashValues;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
} (bloomFilter));
|
|
94
|
+
return bloomFilter;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export { requireBloomFilter as __require };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const encodeUriPath = require('../../../../../_virtual/encode-uri-path.cjs');
|
|
6
|
+
|
|
7
|
+
var hasRequiredEncodeUriPath;
|
|
8
|
+
|
|
9
|
+
function requireEncodeUriPath () {
|
|
10
|
+
if (hasRequiredEncodeUriPath) return encodeUriPath.__exports;
|
|
11
|
+
hasRequiredEncodeUriPath = 1;
|
|
12
|
+
(function (exports) {
|
|
13
|
+
Object.defineProperty(exports, "__esModule", {
|
|
14
|
+
value: true
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "encodeURIPath", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function() {
|
|
19
|
+
return encodeURIPath;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
function encodeURIPath(file) {
|
|
23
|
+
return file.split('/').map((p)=>encodeURIComponent(p)).join('/');
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
} (encodeUriPath.__exports));
|
|
28
|
+
return encodeUriPath.__exports;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.__require = requireEncodeUriPath;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { __exports as encodeUriPath } from '../../../../../_virtual/encode-uri-path.js';
|
|
2
|
+
|
|
3
|
+
var hasRequiredEncodeUriPath;
|
|
4
|
+
|
|
5
|
+
function requireEncodeUriPath () {
|
|
6
|
+
if (hasRequiredEncodeUriPath) return encodeUriPath;
|
|
7
|
+
hasRequiredEncodeUriPath = 1;
|
|
8
|
+
(function (exports) {
|
|
9
|
+
Object.defineProperty(exports, "__esModule", {
|
|
10
|
+
value: true
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "encodeURIPath", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function() {
|
|
15
|
+
return encodeURIPath;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
function encodeURIPath(file) {
|
|
19
|
+
return file.split('/').map((p)=>encodeURIComponent(p)).join('/');
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
} (encodeUriPath));
|
|
24
|
+
return encodeUriPath;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { requireEncodeUriPath as __require };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const escapeRegexp = require('../../../../../_virtual/escape-regexp.cjs');
|
|
6
|
+
|
|
7
|
+
var hasRequiredEscapeRegexp;
|
|
8
|
+
|
|
9
|
+
function requireEscapeRegexp () {
|
|
10
|
+
if (hasRequiredEscapeRegexp) return escapeRegexp.__exports;
|
|
11
|
+
hasRequiredEscapeRegexp = 1;
|
|
12
|
+
(function (exports) {
|
|
13
|
+
Object.defineProperty(exports, "__esModule", {
|
|
14
|
+
value: true
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "escapeStringRegexp", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function() {
|
|
19
|
+
return escapeStringRegexp;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const reHasRegExp = /[|\\{}()[\]^$+*?.-]/;
|
|
23
|
+
const reReplaceRegExp = /[|\\{}()[\]^$+*?.-]/g;
|
|
24
|
+
function escapeStringRegexp(str) {
|
|
25
|
+
// see also: https://github.com/lodash/lodash/blob/2da024c3b4f9947a48517639de7560457cd4ec6c/escapeRegExp.js#L23
|
|
26
|
+
if (reHasRegExp.test(str)) {
|
|
27
|
+
return str.replace(reReplaceRegExp, '\\$&');
|
|
28
|
+
}
|
|
29
|
+
return str;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
} (escapeRegexp.__exports));
|
|
34
|
+
return escapeRegexp.__exports;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.__require = requireEscapeRegexp;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { __exports as escapeRegexp } from '../../../../../_virtual/escape-regexp.js';
|
|
2
|
+
|
|
3
|
+
var hasRequiredEscapeRegexp;
|
|
4
|
+
|
|
5
|
+
function requireEscapeRegexp () {
|
|
6
|
+
if (hasRequiredEscapeRegexp) return escapeRegexp;
|
|
7
|
+
hasRequiredEscapeRegexp = 1;
|
|
8
|
+
(function (exports) {
|
|
9
|
+
Object.defineProperty(exports, "__esModule", {
|
|
10
|
+
value: true
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "escapeStringRegexp", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function() {
|
|
15
|
+
return escapeStringRegexp;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
const reHasRegExp = /[|\\{}()[\]^$+*?.-]/;
|
|
19
|
+
const reReplaceRegExp = /[|\\{}()[\]^$+*?.-]/g;
|
|
20
|
+
function escapeStringRegexp(str) {
|
|
21
|
+
// see also: https://github.com/lodash/lodash/blob/2da024c3b4f9947a48517639de7560457cd4ec6c/escapeRegExp.js#L23
|
|
22
|
+
if (reHasRegExp.test(str)) {
|
|
23
|
+
return str.replace(reReplaceRegExp, '\\$&');
|
|
24
|
+
}
|
|
25
|
+
return str;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
} (escapeRegexp));
|
|
30
|
+
return escapeRegexp;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { requireEscapeRegexp as __require };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const headManagerContext_sharedRuntime = require('../../../../../_virtual/head-manager-context.shared-runtime.cjs');
|
|
6
|
+
const _interop_require_default = require('../../../../@swc/helpers/cjs/_interop_require_default.cjs');
|
|
7
|
+
const React = require('react');
|
|
8
|
+
|
|
9
|
+
var hasRequiredHeadManagerContext_sharedRuntime;
|
|
10
|
+
|
|
11
|
+
function requireHeadManagerContext_sharedRuntime () {
|
|
12
|
+
if (hasRequiredHeadManagerContext_sharedRuntime) return headManagerContext_sharedRuntime.__exports;
|
|
13
|
+
hasRequiredHeadManagerContext_sharedRuntime = 1;
|
|
14
|
+
(function (exports) {
|
|
15
|
+
Object.defineProperty(exports, "__esModule", {
|
|
16
|
+
value: true
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "HeadManagerContext", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function() {
|
|
21
|
+
return HeadManagerContext;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
const _interop_require_default$1 = /*@__PURE__*/ _interop_require_default.__require();
|
|
25
|
+
const _react = /*#__PURE__*/ _interop_require_default$1._(React);
|
|
26
|
+
const HeadManagerContext = _react.default.createContext({});
|
|
27
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
28
|
+
HeadManagerContext.displayName = 'HeadManagerContext';
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
} (headManagerContext_sharedRuntime.__exports));
|
|
33
|
+
return headManagerContext_sharedRuntime.__exports;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
exports.__require = requireHeadManagerContext_sharedRuntime;
|