lkd-web-kit 0.7.9 → 0.7.10
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 +4 -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,30 @@
|
|
|
1
|
+
import { __exports as deploymentId } from '../../../../_virtual/deployment-id.js';
|
|
2
|
+
|
|
3
|
+
var hasRequiredDeploymentId;
|
|
4
|
+
|
|
5
|
+
function requireDeploymentId () {
|
|
6
|
+
if (hasRequiredDeploymentId) return deploymentId;
|
|
7
|
+
hasRequiredDeploymentId = 1;
|
|
8
|
+
(function (exports) {
|
|
9
|
+
Object.defineProperty(exports, "__esModule", {
|
|
10
|
+
value: true
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "getDeploymentIdQueryOrEmptyString", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function() {
|
|
15
|
+
return getDeploymentIdQueryOrEmptyString;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
function getDeploymentIdQueryOrEmptyString() {
|
|
19
|
+
if (process.env.NEXT_DEPLOYMENT_ID) {
|
|
20
|
+
return `?dpl=${process.env.NEXT_DEPLOYMENT_ID}`;
|
|
21
|
+
}
|
|
22
|
+
return '';
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
} (deploymentId));
|
|
27
|
+
return deploymentId;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { requireDeploymentId as __require };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const addBasePath = require('../../../../_virtual/add-base-path.cjs');
|
|
6
|
+
const addPathPrefix = require('../shared/lib/router/utils/add-path-prefix.cjs');
|
|
7
|
+
const normalizeTrailingSlash = require('./normalize-trailing-slash.cjs');
|
|
8
|
+
|
|
9
|
+
var hasRequiredAddBasePath;
|
|
10
|
+
|
|
11
|
+
function requireAddBasePath () {
|
|
12
|
+
if (hasRequiredAddBasePath) return addBasePath.__module.exports;
|
|
13
|
+
hasRequiredAddBasePath = 1;
|
|
14
|
+
(function (module, exports) {
|
|
15
|
+
Object.defineProperty(exports, "__esModule", {
|
|
16
|
+
value: true
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "addBasePath", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function() {
|
|
21
|
+
return addBasePath;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
const _addpathprefix = addPathPrefix.__require();
|
|
25
|
+
const _normalizetrailingslash = normalizeTrailingSlash.__require();
|
|
26
|
+
const basePath = process.env.__NEXT_ROUTER_BASEPATH || '';
|
|
27
|
+
function addBasePath(path, required) {
|
|
28
|
+
return (0, _normalizetrailingslash.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH && !required ? path : (0, _addpathprefix.addPathPrefix)(path, basePath));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
|
32
|
+
Object.defineProperty(exports.default, '__esModule', { value: true });
|
|
33
|
+
Object.assign(exports.default, exports);
|
|
34
|
+
module.exports = exports.default;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
} (addBasePath.__module, addBasePath.__module.exports));
|
|
39
|
+
return addBasePath.__module.exports;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
exports.__require = requireAddBasePath;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { __module as addBasePath } from '../../../../_virtual/add-base-path.js';
|
|
2
|
+
import { __require as requireAddPathPrefix } from '../shared/lib/router/utils/add-path-prefix.js';
|
|
3
|
+
import { __require as requireNormalizeTrailingSlash } from './normalize-trailing-slash.js';
|
|
4
|
+
|
|
5
|
+
var hasRequiredAddBasePath;
|
|
6
|
+
|
|
7
|
+
function requireAddBasePath () {
|
|
8
|
+
if (hasRequiredAddBasePath) return addBasePath.exports;
|
|
9
|
+
hasRequiredAddBasePath = 1;
|
|
10
|
+
(function (module, exports) {
|
|
11
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12
|
+
value: true
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "addBasePath", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function() {
|
|
17
|
+
return addBasePath;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
const _addpathprefix = requireAddPathPrefix();
|
|
21
|
+
const _normalizetrailingslash = requireNormalizeTrailingSlash();
|
|
22
|
+
const basePath = process.env.__NEXT_ROUTER_BASEPATH || '';
|
|
23
|
+
function addBasePath(path, required) {
|
|
24
|
+
return (0, _normalizetrailingslash.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH && !required ? path : (0, _addpathprefix.addPathPrefix)(path, basePath));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
|
28
|
+
Object.defineProperty(exports.default, '__esModule', { value: true });
|
|
29
|
+
Object.assign(exports.default, exports);
|
|
30
|
+
module.exports = exports.default;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
} (addBasePath, addBasePath.exports));
|
|
35
|
+
return addBasePath.exports;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { requireAddBasePath as __require };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const addLocale = require('../../../../_virtual/add-locale.cjs');
|
|
6
|
+
const normalizeTrailingSlash = require('./normalize-trailing-slash.cjs');
|
|
7
|
+
const addLocale$1 = require('../shared/lib/router/utils/add-locale.cjs');
|
|
8
|
+
|
|
9
|
+
var hasRequiredAddLocale;
|
|
10
|
+
|
|
11
|
+
function requireAddLocale () {
|
|
12
|
+
if (hasRequiredAddLocale) return addLocale.__module.exports;
|
|
13
|
+
hasRequiredAddLocale = 1;
|
|
14
|
+
(function (module, exports) {
|
|
15
|
+
Object.defineProperty(exports, "__esModule", {
|
|
16
|
+
value: true
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "addLocale", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function() {
|
|
21
|
+
return addLocale;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
const _normalizetrailingslash = normalizeTrailingSlash.__require();
|
|
25
|
+
const addLocale = (path, ...args)=>{
|
|
26
|
+
if (process.env.__NEXT_I18N_SUPPORT) {
|
|
27
|
+
return (0, _normalizetrailingslash.normalizePathTrailingSlash)(addLocale$1.__require().addLocale(path, ...args));
|
|
28
|
+
}
|
|
29
|
+
return path;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
|
33
|
+
Object.defineProperty(exports.default, '__esModule', { value: true });
|
|
34
|
+
Object.assign(exports.default, exports);
|
|
35
|
+
module.exports = exports.default;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
} (addLocale.__module, addLocale.__module.exports));
|
|
40
|
+
return addLocale.__module.exports;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
exports.__require = requireAddLocale;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __module as addLocale } from '../../../../_virtual/add-locale.js';
|
|
2
|
+
import { __require as requireNormalizeTrailingSlash } from './normalize-trailing-slash.js';
|
|
3
|
+
import { __require as requireAddLocale$1 } from '../shared/lib/router/utils/add-locale.js';
|
|
4
|
+
|
|
5
|
+
var hasRequiredAddLocale;
|
|
6
|
+
|
|
7
|
+
function requireAddLocale () {
|
|
8
|
+
if (hasRequiredAddLocale) return addLocale.exports;
|
|
9
|
+
hasRequiredAddLocale = 1;
|
|
10
|
+
(function (module, exports) {
|
|
11
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12
|
+
value: true
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "addLocale", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function() {
|
|
17
|
+
return addLocale;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
const _normalizetrailingslash = requireNormalizeTrailingSlash();
|
|
21
|
+
const addLocale = (path, ...args)=>{
|
|
22
|
+
if (process.env.__NEXT_I18N_SUPPORT) {
|
|
23
|
+
return (0, _normalizetrailingslash.normalizePathTrailingSlash)(requireAddLocale$1().addLocale(path, ...args));
|
|
24
|
+
}
|
|
25
|
+
return path;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
|
29
|
+
Object.defineProperty(exports.default, '__esModule', { value: true });
|
|
30
|
+
Object.assign(exports.default, exports);
|
|
31
|
+
module.exports = exports.default;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
} (addLocale, addLocale.exports));
|
|
36
|
+
return addLocale.exports;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { requireAddLocale as __require };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const detectDomainLocale = require('../../../../_virtual/detect-domain-locale.cjs');
|
|
6
|
+
const detectDomainLocale$1 = require('../shared/lib/i18n/detect-domain-locale.cjs');
|
|
7
|
+
|
|
8
|
+
var hasRequiredDetectDomainLocale;
|
|
9
|
+
|
|
10
|
+
function requireDetectDomainLocale () {
|
|
11
|
+
if (hasRequiredDetectDomainLocale) return detectDomainLocale.__module.exports;
|
|
12
|
+
hasRequiredDetectDomainLocale = 1;
|
|
13
|
+
(function (module, exports) {
|
|
14
|
+
Object.defineProperty(exports, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "detectDomainLocale", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return detectDomainLocale;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const detectDomainLocale = (...args)=>{
|
|
24
|
+
if (process.env.__NEXT_I18N_SUPPORT) {
|
|
25
|
+
return detectDomainLocale$1.__require().detectDomainLocale(...args);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
|
30
|
+
Object.defineProperty(exports.default, '__esModule', { value: true });
|
|
31
|
+
Object.assign(exports.default, exports);
|
|
32
|
+
module.exports = exports.default;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
} (detectDomainLocale.__module, detectDomainLocale.__module.exports));
|
|
37
|
+
return detectDomainLocale.__module.exports;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
exports.__require = requireDetectDomainLocale;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { __module as detectDomainLocale } from '../../../../_virtual/detect-domain-locale.js';
|
|
2
|
+
import { __require as requireDetectDomainLocale$1 } from '../shared/lib/i18n/detect-domain-locale.js';
|
|
3
|
+
|
|
4
|
+
var hasRequiredDetectDomainLocale;
|
|
5
|
+
|
|
6
|
+
function requireDetectDomainLocale () {
|
|
7
|
+
if (hasRequiredDetectDomainLocale) return detectDomainLocale.exports;
|
|
8
|
+
hasRequiredDetectDomainLocale = 1;
|
|
9
|
+
(function (module, exports) {
|
|
10
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11
|
+
value: true
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "detectDomainLocale", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function() {
|
|
16
|
+
return detectDomainLocale;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const detectDomainLocale = (...args)=>{
|
|
20
|
+
if (process.env.__NEXT_I18N_SUPPORT) {
|
|
21
|
+
return requireDetectDomainLocale$1().detectDomainLocale(...args);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
|
26
|
+
Object.defineProperty(exports.default, '__esModule', { value: true });
|
|
27
|
+
Object.assign(exports.default, exports);
|
|
28
|
+
module.exports = exports.default;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
} (detectDomainLocale, detectDomainLocale.exports));
|
|
33
|
+
return detectDomainLocale.exports;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { requireDetectDomainLocale as __require };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const hasBasePath = require('../../../../_virtual/has-base-path.cjs');
|
|
6
|
+
const pathHasPrefix = require('../shared/lib/router/utils/path-has-prefix.cjs');
|
|
7
|
+
|
|
8
|
+
var hasRequiredHasBasePath;
|
|
9
|
+
|
|
10
|
+
function requireHasBasePath () {
|
|
11
|
+
if (hasRequiredHasBasePath) return hasBasePath.__module.exports;
|
|
12
|
+
hasRequiredHasBasePath = 1;
|
|
13
|
+
(function (module, exports) {
|
|
14
|
+
Object.defineProperty(exports, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "hasBasePath", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return hasBasePath;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const _pathhasprefix = pathHasPrefix.__require();
|
|
24
|
+
const basePath = process.env.__NEXT_ROUTER_BASEPATH || '';
|
|
25
|
+
function hasBasePath(path) {
|
|
26
|
+
return (0, _pathhasprefix.pathHasPrefix)(path, basePath);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
|
30
|
+
Object.defineProperty(exports.default, '__esModule', { value: true });
|
|
31
|
+
Object.assign(exports.default, exports);
|
|
32
|
+
module.exports = exports.default;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
} (hasBasePath.__module, hasBasePath.__module.exports));
|
|
37
|
+
return hasBasePath.__module.exports;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
exports.__require = requireHasBasePath;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { __module as hasBasePath } from '../../../../_virtual/has-base-path.js';
|
|
2
|
+
import { __require as requirePathHasPrefix } from '../shared/lib/router/utils/path-has-prefix.js';
|
|
3
|
+
|
|
4
|
+
var hasRequiredHasBasePath;
|
|
5
|
+
|
|
6
|
+
function requireHasBasePath () {
|
|
7
|
+
if (hasRequiredHasBasePath) return hasBasePath.exports;
|
|
8
|
+
hasRequiredHasBasePath = 1;
|
|
9
|
+
(function (module, exports) {
|
|
10
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11
|
+
value: true
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "hasBasePath", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function() {
|
|
16
|
+
return hasBasePath;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _pathhasprefix = requirePathHasPrefix();
|
|
20
|
+
const basePath = process.env.__NEXT_ROUTER_BASEPATH || '';
|
|
21
|
+
function hasBasePath(path) {
|
|
22
|
+
return (0, _pathhasprefix.pathHasPrefix)(path, basePath);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
|
26
|
+
Object.defineProperty(exports.default, '__esModule', { value: true });
|
|
27
|
+
Object.assign(exports.default, exports);
|
|
28
|
+
module.exports = exports.default;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
} (hasBasePath, hasBasePath.exports));
|
|
33
|
+
return hasBasePath.exports;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { requireHasBasePath as __require };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const normalizeTrailingSlash = require('../../../../_virtual/normalize-trailing-slash.cjs');
|
|
6
|
+
const removeTrailingSlash = require('../shared/lib/router/utils/remove-trailing-slash.cjs');
|
|
7
|
+
const parsePath = require('../shared/lib/router/utils/parse-path.cjs');
|
|
8
|
+
|
|
9
|
+
var hasRequiredNormalizeTrailingSlash;
|
|
10
|
+
|
|
11
|
+
function requireNormalizeTrailingSlash () {
|
|
12
|
+
if (hasRequiredNormalizeTrailingSlash) return normalizeTrailingSlash.__module.exports;
|
|
13
|
+
hasRequiredNormalizeTrailingSlash = 1;
|
|
14
|
+
(function (module, exports) {
|
|
15
|
+
Object.defineProperty(exports, "__esModule", {
|
|
16
|
+
value: true
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "normalizePathTrailingSlash", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function() {
|
|
21
|
+
return normalizePathTrailingSlash;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
const _removetrailingslash = removeTrailingSlash.__require();
|
|
25
|
+
const _parsepath = parsePath.__require();
|
|
26
|
+
const normalizePathTrailingSlash = (path)=>{
|
|
27
|
+
if (!path.startsWith('/') || process.env.__NEXT_MANUAL_TRAILING_SLASH) {
|
|
28
|
+
return path;
|
|
29
|
+
}
|
|
30
|
+
const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
|
|
31
|
+
if (process.env.__NEXT_TRAILING_SLASH) {
|
|
32
|
+
if (/\.[^/]+\/?$/.test(pathname)) {
|
|
33
|
+
return `${(0, _removetrailingslash.removeTrailingSlash)(pathname)}${query}${hash}`;
|
|
34
|
+
} else if (pathname.endsWith('/')) {
|
|
35
|
+
return `${pathname}${query}${hash}`;
|
|
36
|
+
} else {
|
|
37
|
+
return `${pathname}/${query}${hash}`;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return `${(0, _removetrailingslash.removeTrailingSlash)(pathname)}${query}${hash}`;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
|
44
|
+
Object.defineProperty(exports.default, '__esModule', { value: true });
|
|
45
|
+
Object.assign(exports.default, exports);
|
|
46
|
+
module.exports = exports.default;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
} (normalizeTrailingSlash.__module, normalizeTrailingSlash.__module.exports));
|
|
51
|
+
return normalizeTrailingSlash.__module.exports;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
exports.__require = requireNormalizeTrailingSlash;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { __module as normalizeTrailingSlash } from '../../../../_virtual/normalize-trailing-slash.js';
|
|
2
|
+
import { __require as requireRemoveTrailingSlash } from '../shared/lib/router/utils/remove-trailing-slash.js';
|
|
3
|
+
import { __require as requireParsePath } from '../shared/lib/router/utils/parse-path.js';
|
|
4
|
+
|
|
5
|
+
var hasRequiredNormalizeTrailingSlash;
|
|
6
|
+
|
|
7
|
+
function requireNormalizeTrailingSlash () {
|
|
8
|
+
if (hasRequiredNormalizeTrailingSlash) return normalizeTrailingSlash.exports;
|
|
9
|
+
hasRequiredNormalizeTrailingSlash = 1;
|
|
10
|
+
(function (module, exports) {
|
|
11
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12
|
+
value: true
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "normalizePathTrailingSlash", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function() {
|
|
17
|
+
return normalizePathTrailingSlash;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
const _removetrailingslash = requireRemoveTrailingSlash();
|
|
21
|
+
const _parsepath = requireParsePath();
|
|
22
|
+
const normalizePathTrailingSlash = (path)=>{
|
|
23
|
+
if (!path.startsWith('/') || process.env.__NEXT_MANUAL_TRAILING_SLASH) {
|
|
24
|
+
return path;
|
|
25
|
+
}
|
|
26
|
+
const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
|
|
27
|
+
if (process.env.__NEXT_TRAILING_SLASH) {
|
|
28
|
+
if (/\.[^/]+\/?$/.test(pathname)) {
|
|
29
|
+
return `${(0, _removetrailingslash.removeTrailingSlash)(pathname)}${query}${hash}`;
|
|
30
|
+
} else if (pathname.endsWith('/')) {
|
|
31
|
+
return `${pathname}${query}${hash}`;
|
|
32
|
+
} else {
|
|
33
|
+
return `${pathname}/${query}${hash}`;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return `${(0, _removetrailingslash.removeTrailingSlash)(pathname)}${query}${hash}`;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
|
40
|
+
Object.defineProperty(exports.default, '__esModule', { value: true });
|
|
41
|
+
Object.assign(exports.default, exports);
|
|
42
|
+
module.exports = exports.default;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
} (normalizeTrailingSlash, normalizeTrailingSlash.exports));
|
|
47
|
+
return normalizeTrailingSlash.exports;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export { requireNormalizeTrailingSlash as __require };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const removeBasePath = require('../../../../_virtual/remove-base-path.cjs');
|
|
6
|
+
const hasBasePath = require('./has-base-path.cjs');
|
|
7
|
+
|
|
8
|
+
var hasRequiredRemoveBasePath;
|
|
9
|
+
|
|
10
|
+
function requireRemoveBasePath () {
|
|
11
|
+
if (hasRequiredRemoveBasePath) return removeBasePath.__module.exports;
|
|
12
|
+
hasRequiredRemoveBasePath = 1;
|
|
13
|
+
(function (module, exports) {
|
|
14
|
+
Object.defineProperty(exports, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "removeBasePath", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return removeBasePath;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const _hasbasepath = hasBasePath.__require();
|
|
24
|
+
const basePath = process.env.__NEXT_ROUTER_BASEPATH || '';
|
|
25
|
+
function removeBasePath(path) {
|
|
26
|
+
if (process.env.__NEXT_MANUAL_CLIENT_BASE_PATH) {
|
|
27
|
+
if (!(0, _hasbasepath.hasBasePath)(path)) {
|
|
28
|
+
return path;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
// Can't trim the basePath if it has zero length!
|
|
32
|
+
if (basePath.length === 0) return path;
|
|
33
|
+
path = path.slice(basePath.length);
|
|
34
|
+
if (!path.startsWith('/')) path = `/${path}`;
|
|
35
|
+
return path;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
|
39
|
+
Object.defineProperty(exports.default, '__esModule', { value: true });
|
|
40
|
+
Object.assign(exports.default, exports);
|
|
41
|
+
module.exports = exports.default;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
} (removeBasePath.__module, removeBasePath.__module.exports));
|
|
46
|
+
return removeBasePath.__module.exports;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
exports.__require = requireRemoveBasePath;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { __module as removeBasePath } from '../../../../_virtual/remove-base-path.js';
|
|
2
|
+
import { __require as requireHasBasePath } from './has-base-path.js';
|
|
3
|
+
|
|
4
|
+
var hasRequiredRemoveBasePath;
|
|
5
|
+
|
|
6
|
+
function requireRemoveBasePath () {
|
|
7
|
+
if (hasRequiredRemoveBasePath) return removeBasePath.exports;
|
|
8
|
+
hasRequiredRemoveBasePath = 1;
|
|
9
|
+
(function (module, exports) {
|
|
10
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11
|
+
value: true
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "removeBasePath", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function() {
|
|
16
|
+
return removeBasePath;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _hasbasepath = requireHasBasePath();
|
|
20
|
+
const basePath = process.env.__NEXT_ROUTER_BASEPATH || '';
|
|
21
|
+
function removeBasePath(path) {
|
|
22
|
+
if (process.env.__NEXT_MANUAL_CLIENT_BASE_PATH) {
|
|
23
|
+
if (!(0, _hasbasepath.hasBasePath)(path)) {
|
|
24
|
+
return path;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
// Can't trim the basePath if it has zero length!
|
|
28
|
+
if (basePath.length === 0) return path;
|
|
29
|
+
path = path.slice(basePath.length);
|
|
30
|
+
if (!path.startsWith('/')) path = `/${path}`;
|
|
31
|
+
return path;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
|
35
|
+
Object.defineProperty(exports.default, '__esModule', { value: true });
|
|
36
|
+
Object.assign(exports.default, exports);
|
|
37
|
+
module.exports = exports.default;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
} (removeBasePath, removeBasePath.exports));
|
|
42
|
+
return removeBasePath.exports;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { requireRemoveBasePath as __require };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const removeLocale = require('../../../../_virtual/remove-locale.cjs');
|
|
6
|
+
const parsePath = require('../shared/lib/router/utils/parse-path.cjs');
|
|
7
|
+
|
|
8
|
+
var hasRequiredRemoveLocale;
|
|
9
|
+
|
|
10
|
+
function requireRemoveLocale () {
|
|
11
|
+
if (hasRequiredRemoveLocale) return removeLocale.__module.exports;
|
|
12
|
+
hasRequiredRemoveLocale = 1;
|
|
13
|
+
(function (module, exports) {
|
|
14
|
+
Object.defineProperty(exports, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "removeLocale", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return removeLocale;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const _parsepath = parsePath.__require();
|
|
24
|
+
function removeLocale(path, locale) {
|
|
25
|
+
if (process.env.__NEXT_I18N_SUPPORT) {
|
|
26
|
+
const { pathname } = (0, _parsepath.parsePath)(path);
|
|
27
|
+
const pathLower = pathname.toLowerCase();
|
|
28
|
+
const localeLower = locale?.toLowerCase();
|
|
29
|
+
return locale && (pathLower.startsWith(`/${localeLower}/`) || pathLower === `/${localeLower}`) ? `${pathname.length === locale.length + 1 ? `/` : ``}${path.slice(locale.length + 1)}` : path;
|
|
30
|
+
}
|
|
31
|
+
return path;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
|
35
|
+
Object.defineProperty(exports.default, '__esModule', { value: true });
|
|
36
|
+
Object.assign(exports.default, exports);
|
|
37
|
+
module.exports = exports.default;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
} (removeLocale.__module, removeLocale.__module.exports));
|
|
42
|
+
return removeLocale.__module.exports;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
exports.__require = requireRemoveLocale;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { __module as removeLocale } from '../../../../_virtual/remove-locale.js';
|
|
2
|
+
import { __require as requireParsePath } from '../shared/lib/router/utils/parse-path.js';
|
|
3
|
+
|
|
4
|
+
var hasRequiredRemoveLocale;
|
|
5
|
+
|
|
6
|
+
function requireRemoveLocale () {
|
|
7
|
+
if (hasRequiredRemoveLocale) return removeLocale.exports;
|
|
8
|
+
hasRequiredRemoveLocale = 1;
|
|
9
|
+
(function (module, exports) {
|
|
10
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11
|
+
value: true
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "removeLocale", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function() {
|
|
16
|
+
return removeLocale;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _parsepath = requireParsePath();
|
|
20
|
+
function removeLocale(path, locale) {
|
|
21
|
+
if (process.env.__NEXT_I18N_SUPPORT) {
|
|
22
|
+
const { pathname } = (0, _parsepath.parsePath)(path);
|
|
23
|
+
const pathLower = pathname.toLowerCase();
|
|
24
|
+
const localeLower = locale?.toLowerCase();
|
|
25
|
+
return locale && (pathLower.startsWith(`/${localeLower}/`) || pathLower === `/${localeLower}`) ? `${pathname.length === locale.length + 1 ? `/` : ``}${path.slice(locale.length + 1)}` : path;
|
|
26
|
+
}
|
|
27
|
+
return path;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
|
31
|
+
Object.defineProperty(exports.default, '__esModule', { value: true });
|
|
32
|
+
Object.assign(exports.default, exports);
|
|
33
|
+
module.exports = exports.default;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
} (removeLocale, removeLocale.exports));
|
|
38
|
+
return removeLocale.exports;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { requireRemoveLocale as __require };
|