lkd-web-kit 0.7.15 → 0.7.16
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/components/EmptyState/index.cjs +5 -5
- package/dist/components/Icon.cjs +2 -2
- package/dist/components/InfinityLoadMoreButton/index.cjs +2 -2
- package/dist/components/InfinitySelect/index.cjs +9 -10
- package/dist/components/InfinitySelect/index.js +0 -1
- 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/contexts/NavigationHistoryContext/hook.cjs +2 -2
- package/dist/contexts/NavigationHistoryContext/hook.js +2 -2
- package/dist/contexts/NavigationHistoryContext/index.cjs +3 -3
- package/dist/contexts/PageDataContext/index.cjs +2 -2
- package/dist/form/Form.cjs +2 -2
- package/dist/form/FormSubmitButton.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/node_modules/@tanstack/react-virtual/dist/esm/index.cjs +2 -2
- package/package.json +1 -1
- package/dist/_virtual/___vite-browser-external.cjs +0 -12
- package/dist/_virtual/___vite-browser-external.js +0 -6
- package/dist/_virtual/__vite-browser-external.cjs +0 -5
- package/dist/_virtual/__vite-browser-external.js +0 -3
- package/dist/_virtual/_commonjsHelpers.cjs +0 -34
- package/dist/_virtual/_commonjsHelpers.js +0 -30
- package/dist/_virtual/_interop_require_default.cjs +0 -7
- package/dist/_virtual/_interop_require_default.js +0 -3
- package/dist/_virtual/_interop_require_wildcard.cjs +0 -7
- package/dist/_virtual/_interop_require_wildcard.js +0 -3
- package/dist/_virtual/add-base-path.cjs +0 -7
- package/dist/_virtual/add-base-path.js +0 -3
- package/dist/_virtual/add-locale.cjs +0 -7
- package/dist/_virtual/add-locale.js +0 -3
- package/dist/_virtual/add-locale2.cjs +0 -7
- package/dist/_virtual/add-locale2.js +0 -3
- package/dist/_virtual/add-path-prefix.cjs +0 -7
- package/dist/_virtual/add-path-prefix.js +0 -3
- package/dist/_virtual/add-path-suffix.cjs +0 -7
- package/dist/_virtual/add-path-suffix.js +0 -3
- package/dist/_virtual/app-paths.cjs +0 -7
- package/dist/_virtual/app-paths.js +0 -3
- package/dist/_virtual/bloom-filter.cjs +0 -7
- package/dist/_virtual/bloom-filter.js +0 -3
- package/dist/_virtual/compare-states.cjs +0 -7
- package/dist/_virtual/compare-states.js +0 -3
- package/dist/_virtual/constants.cjs +0 -7
- package/dist/_virtual/constants.js +0 -3
- package/dist/_virtual/denormalize-page-path.cjs +0 -7
- package/dist/_virtual/denormalize-page-path.js +0 -3
- package/dist/_virtual/deployment-id.cjs +0 -7
- package/dist/_virtual/deployment-id.js +0 -3
- package/dist/_virtual/detect-domain-locale.cjs +0 -7
- package/dist/_virtual/detect-domain-locale.js +0 -3
- package/dist/_virtual/detect-domain-locale2.cjs +0 -7
- package/dist/_virtual/detect-domain-locale2.js +0 -3
- package/dist/_virtual/disable-smooth-scroll.cjs +0 -7
- package/dist/_virtual/disable-smooth-scroll.js +0 -3
- package/dist/_virtual/encode-uri-path.cjs +0 -7
- package/dist/_virtual/encode-uri-path.js +0 -3
- package/dist/_virtual/ensure-leading-slash.cjs +0 -7
- package/dist/_virtual/ensure-leading-slash.js +0 -3
- package/dist/_virtual/escape-regexp.cjs +0 -7
- package/dist/_virtual/escape-regexp.js +0 -3
- package/dist/_virtual/format-next-pathname-info.cjs +0 -7
- package/dist/_virtual/format-next-pathname-info.js +0 -3
- package/dist/_virtual/format-url.cjs +0 -7
- package/dist/_virtual/format-url.js +0 -3
- package/dist/_virtual/get-asset-path-from-route.cjs +0 -7
- package/dist/_virtual/get-asset-path-from-route.js +0 -3
- package/dist/_virtual/get-cookie-parser.cjs +0 -7
- package/dist/_virtual/get-cookie-parser.js +0 -3
- package/dist/_virtual/get-dynamic-param.cjs +0 -7
- package/dist/_virtual/get-dynamic-param.js +0 -3
- package/dist/_virtual/get-next-pathname-info.cjs +0 -7
- package/dist/_virtual/get-next-pathname-info.js +0 -3
- package/dist/_virtual/get-segment-param.cjs +0 -7
- package/dist/_virtual/get-segment-param.js +0 -3
- package/dist/_virtual/has-base-path.cjs +0 -7
- package/dist/_virtual/has-base-path.js +0 -3
- package/dist/_virtual/head-manager-context.shared-runtime.cjs +0 -7
- package/dist/_virtual/head-manager-context.shared-runtime.js +0 -3
- package/dist/_virtual/html-bots.cjs +0 -7
- package/dist/_virtual/html-bots.js +0 -3
- package/dist/_virtual/index.cjs +0 -7
- package/dist/_virtual/index.js +0 -3
- package/dist/_virtual/index2.cjs +0 -7
- package/dist/_virtual/index2.js +0 -3
- package/dist/_virtual/index3.cjs +0 -7
- package/dist/_virtual/index3.js +0 -3
- package/dist/_virtual/index4.cjs +0 -7
- package/dist/_virtual/index4.js +0 -3
- package/dist/_virtual/index5.cjs +0 -7
- package/dist/_virtual/index5.js +0 -3
- package/dist/_virtual/interception-routes.cjs +0 -7
- package/dist/_virtual/interception-routes.js +0 -3
- package/dist/_virtual/interpolate-as.cjs +0 -7
- package/dist/_virtual/interpolate-as.js +0 -3
- package/dist/_virtual/invariant-error.cjs +0 -7
- package/dist/_virtual/invariant-error.js +0 -3
- package/dist/_virtual/is-api-route.cjs +0 -7
- package/dist/_virtual/is-api-route.js +0 -3
- package/dist/_virtual/is-bot.cjs +0 -7
- package/dist/_virtual/is-bot.js +0 -3
- package/dist/_virtual/is-dynamic.cjs +0 -7
- package/dist/_virtual/is-dynamic.js +0 -3
- package/dist/_virtual/is-error.cjs +0 -7
- package/dist/_virtual/is-error.js +0 -3
- package/dist/_virtual/is-local-url.cjs +0 -7
- package/dist/_virtual/is-local-url.js +0 -3
- package/dist/_virtual/is-plain-object.cjs +0 -7
- package/dist/_virtual/is-plain-object.js +0 -3
- package/dist/_virtual/mitt.cjs +0 -7
- package/dist/_virtual/mitt.js +0 -3
- package/dist/_virtual/normalize-locale-path.cjs +0 -7
- package/dist/_virtual/normalize-locale-path.js +0 -3
- package/dist/_virtual/normalize-path-sep.cjs +0 -7
- package/dist/_virtual/normalize-path-sep.js +0 -3
- package/dist/_virtual/normalize-trailing-slash.cjs +0 -7
- package/dist/_virtual/normalize-trailing-slash.js +0 -3
- package/dist/_virtual/omit.cjs +0 -7
- package/dist/_virtual/omit.js +0 -3
- package/dist/_virtual/parse-loader-tree.cjs +0 -7
- package/dist/_virtual/parse-loader-tree.js +0 -3
- package/dist/_virtual/parse-path.cjs +0 -7
- package/dist/_virtual/parse-path.js +0 -3
- package/dist/_virtual/parse-relative-url.cjs +0 -7
- package/dist/_virtual/parse-relative-url.js +0 -3
- package/dist/_virtual/parse-url.cjs +0 -7
- package/dist/_virtual/parse-url.js +0 -3
- package/dist/_virtual/path-has-prefix.cjs +0 -7
- package/dist/_virtual/path-has-prefix.js +0 -3
- package/dist/_virtual/path-match.cjs +0 -7
- package/dist/_virtual/path-match.js +0 -3
- package/dist/_virtual/prepare-destination.cjs +0 -7
- package/dist/_virtual/prepare-destination.js +0 -3
- package/dist/_virtual/querystring.cjs +0 -7
- package/dist/_virtual/querystring.js +0 -3
- package/dist/_virtual/react-is.development.cjs +0 -7
- package/dist/_virtual/react-is.development.js +0 -3
- package/dist/_virtual/react-is.production.cjs +0 -7
- package/dist/_virtual/react-is.production.js +0 -3
- package/dist/_virtual/remove-base-path.cjs +0 -7
- package/dist/_virtual/remove-base-path.js +0 -3
- package/dist/_virtual/remove-locale.cjs +0 -7
- package/dist/_virtual/remove-locale.js +0 -3
- package/dist/_virtual/remove-path-prefix.cjs +0 -7
- package/dist/_virtual/remove-path-prefix.js +0 -3
- package/dist/_virtual/remove-trailing-slash.cjs +0 -7
- package/dist/_virtual/remove-trailing-slash.js +0 -3
- package/dist/_virtual/request-idle-callback.cjs +0 -7
- package/dist/_virtual/request-idle-callback.js +0 -3
- package/dist/_virtual/resolve-href.cjs +0 -7
- package/dist/_virtual/resolve-href.js +0 -3
- package/dist/_virtual/resolve-rewrites.cjs +0 -7
- package/dist/_virtual/resolve-rewrites.js +0 -3
- package/dist/_virtual/route-loader.cjs +0 -7
- package/dist/_virtual/route-loader.js +0 -3
- package/dist/_virtual/route-match-utils.cjs +0 -7
- package/dist/_virtual/route-match-utils.js +0 -3
- package/dist/_virtual/route-matcher.cjs +0 -7
- package/dist/_virtual/route-matcher.js +0 -3
- package/dist/_virtual/route-pattern-normalizer.cjs +0 -7
- package/dist/_virtual/route-pattern-normalizer.js +0 -3
- package/dist/_virtual/route-regex.cjs +0 -7
- package/dist/_virtual/route-regex.js +0 -3
- package/dist/_virtual/router-context.shared-runtime.cjs +0 -7
- package/dist/_virtual/router-context.shared-runtime.js +0 -3
- package/dist/_virtual/router.cjs +0 -9
- package/dist/_virtual/router.js +0 -5
- package/dist/_virtual/router2.cjs +0 -7
- package/dist/_virtual/router2.js +0 -3
- package/dist/_virtual/router3.cjs +0 -7
- package/dist/_virtual/router3.js +0 -3
- package/dist/_virtual/script.cjs +0 -7
- package/dist/_virtual/script.js +0 -3
- package/dist/_virtual/segment.cjs +0 -7
- package/dist/_virtual/segment.js +0 -3
- package/dist/_virtual/set-attributes-from-props.cjs +0 -7
- package/dist/_virtual/set-attributes-from-props.js +0 -3
- package/dist/_virtual/sorted-routes.cjs +0 -7
- package/dist/_virtual/sorted-routes.js +0 -3
- package/dist/_virtual/trusted-types.cjs +0 -7
- package/dist/_virtual/trusted-types.js +0 -3
- package/dist/_virtual/utils.cjs +0 -7
- package/dist/_virtual/utils.js +0 -3
- package/dist/_virtual/warn-once.cjs +0 -7
- package/dist/_virtual/warn-once.js +0 -3
- package/dist/_virtual/with-router.cjs +0 -7
- package/dist/_virtual/with-router.js +0 -3
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +0 -20
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +0 -16
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +0 -52
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +0 -48
- package/dist/node_modules/next/dist/build/deployment-id.cjs +0 -34
- package/dist/node_modules/next/dist/build/deployment-id.js +0 -30
- package/dist/node_modules/next/dist/client/add-base-path.cjs +0 -42
- package/dist/node_modules/next/dist/client/add-base-path.js +0 -38
- package/dist/node_modules/next/dist/client/add-locale.cjs +0 -43
- package/dist/node_modules/next/dist/client/add-locale.js +0 -39
- package/dist/node_modules/next/dist/client/detect-domain-locale.cjs +0 -40
- package/dist/node_modules/next/dist/client/detect-domain-locale.js +0 -36
- package/dist/node_modules/next/dist/client/has-base-path.cjs +0 -40
- package/dist/node_modules/next/dist/client/has-base-path.js +0 -36
- package/dist/node_modules/next/dist/client/normalize-trailing-slash.cjs +0 -54
- package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +0 -50
- package/dist/node_modules/next/dist/client/remove-base-path.cjs +0 -49
- package/dist/node_modules/next/dist/client/remove-base-path.js +0 -45
- package/dist/node_modules/next/dist/client/remove-locale.cjs +0 -45
- package/dist/node_modules/next/dist/client/remove-locale.js +0 -41
- package/dist/node_modules/next/dist/client/request-idle-callback.cjs +0 -56
- package/dist/node_modules/next/dist/client/request-idle-callback.js +0 -52
- package/dist/node_modules/next/dist/client/resolve-href.cjs +0 -132
- package/dist/node_modules/next/dist/client/resolve-href.js +0 -128
- package/dist/node_modules/next/dist/client/route-loader.cjs +0 -363
- package/dist/node_modules/next/dist/client/route-loader.js +0 -359
- package/dist/node_modules/next/dist/client/router.cjs +0 -201
- package/dist/node_modules/next/dist/client/router.js +0 -197
- package/dist/node_modules/next/dist/client/script.cjs +0 -366
- package/dist/node_modules/next/dist/client/script.js +0 -362
- package/dist/node_modules/next/dist/client/set-attributes-from-props.cjs +0 -81
- package/dist/node_modules/next/dist/client/set-attributes-from-props.js +0 -77
- package/dist/node_modules/next/dist/client/trusted-types.cjs +0 -56
- package/dist/node_modules/next/dist/client/trusted-types.js +0 -52
- package/dist/node_modules/next/dist/client/with-router.cjs +0 -54
- package/dist/node_modules/next/dist/client/with-router.js +0 -50
- package/dist/node_modules/next/dist/compiled/cookie/index.cjs +0 -22
- package/dist/node_modules/next/dist/compiled/cookie/index.js +0 -18
- package/dist/node_modules/next/dist/compiled/gzip-size/index.cjs +0 -17
- package/dist/node_modules/next/dist/compiled/gzip-size/index.js +0 -13
- package/dist/node_modules/next/dist/compiled/path-to-regexp/index.cjs +0 -16
- package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +0 -12
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.development.cjs +0 -147
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.development.js +0 -143
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.production.cjs +0 -144
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.production.js +0 -140
- package/dist/node_modules/next/dist/compiled/react-is/index.cjs +0 -23
- package/dist/node_modules/next/dist/compiled/react-is/index.js +0 -19
- package/dist/node_modules/next/dist/lib/constants.cjs +0 -365
- package/dist/node_modules/next/dist/lib/constants.js +0 -361
- package/dist/node_modules/next/dist/lib/is-api-route.cjs +0 -31
- package/dist/node_modules/next/dist/lib/is-api-route.js +0 -27
- package/dist/node_modules/next/dist/lib/is-error.cjs +0 -91
- package/dist/node_modules/next/dist/lib/is-error.js +0 -87
- package/dist/node_modules/next/dist/lib/route-pattern-normalizer.cjs +0 -115
- package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +0 -111
- package/dist/node_modules/next/dist/server/api-utils/get-cookie-parser.cjs +0 -39
- package/dist/node_modules/next/dist/server/api-utils/get-cookie-parser.js +0 -35
- package/dist/node_modules/next/dist/shared/lib/bloom-filter.cjs +0 -101
- package/dist/node_modules/next/dist/shared/lib/bloom-filter.js +0 -97
- package/dist/node_modules/next/dist/shared/lib/encode-uri-path.cjs +0 -31
- package/dist/node_modules/next/dist/shared/lib/encode-uri-path.js +0 -27
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.cjs +0 -37
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.cjs +0 -36
- package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +0 -32
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.cjs +0 -41
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +0 -37
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.cjs +0 -70
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +0 -66
- package/dist/node_modules/next/dist/shared/lib/invariant-error.cjs +0 -34
- package/dist/node_modules/next/dist/shared/lib/invariant-error.js +0 -30
- package/dist/node_modules/next/dist/shared/lib/is-plain-object.cjs +0 -54
- package/dist/node_modules/next/dist/shared/lib/is-plain-object.js +0 -50
- package/dist/node_modules/next/dist/shared/lib/mitt.cjs +0 -58
- package/dist/node_modules/next/dist/shared/lib/mitt.js +0 -54
- package/dist/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.cjs +0 -36
- package/dist/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js +0 -32
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.cjs +0 -36
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +0 -32
- package/dist/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.cjs +0 -37
- package/dist/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/router.cjs +0 -1814
- package/dist/node_modules/next/dist/shared/lib/router/router.js +0 -1810
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.cjs +0 -46
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +0 -42
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.cjs +0 -37
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.cjs +0 -37
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.cjs +0 -65
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +0 -61
- package/dist/node_modules/next/dist/shared/lib/router/utils/compare-states.cjs +0 -50
- package/dist/node_modules/next/dist/shared/lib/router/utils/compare-states.js +0 -46
- package/dist/node_modules/next/dist/shared/lib/router/utils/disable-smooth-scroll.cjs +0 -60
- package/dist/node_modules/next/dist/shared/lib/router/utils/disable-smooth-scroll.js +0 -56
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.cjs +0 -47
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js +0 -43
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.cjs +0 -103
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +0 -99
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.cjs +0 -32
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.js +0 -28
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.cjs +0 -208
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +0 -204
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.cjs +0 -71
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js +0 -67
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.cjs +0 -94
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +0 -90
- package/dist/node_modules/next/dist/shared/lib/router/utils/html-bots.cjs +0 -29
- package/dist/node_modules/next/dist/shared/lib/router/utils/html-bots.js +0 -25
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.cjs +0 -43
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +0 -39
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.cjs +0 -119
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +0 -115
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.cjs +0 -71
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +0 -67
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-bot.cjs +0 -68
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-bot.js +0 -64
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.cjs +0 -43
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +0 -39
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.cjs +0 -44
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +0 -40
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.cjs +0 -37
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.cjs +0 -46
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +0 -42
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.cjs +0 -51
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +0 -47
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.cjs +0 -54
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +0 -50
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-url.cjs +0 -50
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-url.js +0 -46
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.cjs +0 -37
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-match.cjs +0 -66
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-match.js +0 -62
- package/dist/node_modules/next/dist/shared/lib/router/utils/prepare-destination.cjs +0 -303
- package/dist/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +0 -299
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.cjs +0 -90
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +0 -86
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.cjs +0 -56
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js +0 -52
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.cjs +0 -39
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +0 -35
- package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-rewrites.cjs +0 -140
- package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-rewrites.js +0 -136
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.cjs +0 -127
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +0 -123
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.cjs +0 -63
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +0 -59
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.cjs +0 -272
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +0 -268
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.cjs +0 -256
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +0 -252
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.cjs +0 -36
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +0 -32
- package/dist/node_modules/next/dist/shared/lib/segment.cjs +0 -103
- package/dist/node_modules/next/dist/shared/lib/segment.js +0 -99
- package/dist/node_modules/next/dist/shared/lib/utils/warn-once.cjs +0 -38
- package/dist/node_modules/next/dist/shared/lib/utils/warn-once.js +0 -34
- package/dist/node_modules/next/dist/shared/lib/utils.cjs +0 -204
- package/dist/node_modules/next/dist/shared/lib/utils.js +0 -200
- package/dist/node_modules/next/router.cjs +0 -17
- package/dist/node_modules/next/router.js +0 -13
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { __exports as interceptionRoutes } from '../../../../../../../_virtual/interception-routes.js';
|
|
2
|
-
import { __require as requireAppPaths } from './app-paths.js';
|
|
3
|
-
|
|
4
|
-
var hasRequiredInterceptionRoutes;
|
|
5
|
-
|
|
6
|
-
function requireInterceptionRoutes () {
|
|
7
|
-
if (hasRequiredInterceptionRoutes) return interceptionRoutes;
|
|
8
|
-
hasRequiredInterceptionRoutes = 1;
|
|
9
|
-
(function (exports) {
|
|
10
|
-
Object.defineProperty(exports, "__esModule", {
|
|
11
|
-
value: true
|
|
12
|
-
});
|
|
13
|
-
function _export(target, all) {
|
|
14
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: all[name]
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
_export(exports, {
|
|
20
|
-
INTERCEPTION_ROUTE_MARKERS: function() {
|
|
21
|
-
return INTERCEPTION_ROUTE_MARKERS;
|
|
22
|
-
},
|
|
23
|
-
extractInterceptionRouteInformation: function() {
|
|
24
|
-
return extractInterceptionRouteInformation;
|
|
25
|
-
},
|
|
26
|
-
isInterceptionRouteAppPath: function() {
|
|
27
|
-
return isInterceptionRouteAppPath;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
const _apppaths = requireAppPaths();
|
|
31
|
-
const INTERCEPTION_ROUTE_MARKERS = [
|
|
32
|
-
'(..)(..)',
|
|
33
|
-
'(.)',
|
|
34
|
-
'(..)',
|
|
35
|
-
'(...)'
|
|
36
|
-
];
|
|
37
|
-
function isInterceptionRouteAppPath(path) {
|
|
38
|
-
// TODO-APP: add more serious validation
|
|
39
|
-
return path.split('/').find((segment)=>INTERCEPTION_ROUTE_MARKERS.find((m)=>segment.startsWith(m))) !== undefined;
|
|
40
|
-
}
|
|
41
|
-
function extractInterceptionRouteInformation(path) {
|
|
42
|
-
let interceptingRoute;
|
|
43
|
-
let marker;
|
|
44
|
-
let interceptedRoute;
|
|
45
|
-
for (const segment of path.split('/')){
|
|
46
|
-
marker = INTERCEPTION_ROUTE_MARKERS.find((m)=>segment.startsWith(m));
|
|
47
|
-
if (marker) {
|
|
48
|
-
[interceptingRoute, interceptedRoute] = path.split(marker, 2);
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
if (!interceptingRoute || !marker || !interceptedRoute) {
|
|
53
|
-
throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`), "__NEXT_ERROR_CODE", {
|
|
54
|
-
value: "E269",
|
|
55
|
-
enumerable: false,
|
|
56
|
-
configurable: true
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
interceptingRoute = (0, _apppaths.normalizeAppPath)(interceptingRoute) // normalize the path, e.g. /(blog)/feed -> /feed
|
|
60
|
-
;
|
|
61
|
-
switch(marker){
|
|
62
|
-
case '(.)':
|
|
63
|
-
// (.) indicates that we should match with sibling routes, so we just need to append the intercepted route to the intercepting route
|
|
64
|
-
if (interceptingRoute === '/') {
|
|
65
|
-
interceptedRoute = `/${interceptedRoute}`;
|
|
66
|
-
} else {
|
|
67
|
-
interceptedRoute = interceptingRoute + '/' + interceptedRoute;
|
|
68
|
-
}
|
|
69
|
-
break;
|
|
70
|
-
case '(..)':
|
|
71
|
-
// (..) indicates that we should match at one level up, so we need to remove the last segment of the intercepting route
|
|
72
|
-
if (interceptingRoute === '/') {
|
|
73
|
-
throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Cannot use (..) marker at the root level, use (.) instead.`), "__NEXT_ERROR_CODE", {
|
|
74
|
-
value: "E207",
|
|
75
|
-
enumerable: false,
|
|
76
|
-
configurable: true
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
interceptedRoute = interceptingRoute.split('/').slice(0, -1).concat(interceptedRoute).join('/');
|
|
80
|
-
break;
|
|
81
|
-
case '(...)':
|
|
82
|
-
// (...) will match the route segment in the root directory, so we need to use the root directory to prepend the intercepted route
|
|
83
|
-
interceptedRoute = '/' + interceptedRoute;
|
|
84
|
-
break;
|
|
85
|
-
case '(..)(..)':
|
|
86
|
-
// (..)(..) indicates that we should match at two levels up, so we need to remove the last two segments of the intercepting route
|
|
87
|
-
const splitInterceptingRoute = interceptingRoute.split('/');
|
|
88
|
-
if (splitInterceptingRoute.length <= 2) {
|
|
89
|
-
throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Cannot use (..)(..) marker at the root level or one level up.`), "__NEXT_ERROR_CODE", {
|
|
90
|
-
value: "E486",
|
|
91
|
-
enumerable: false,
|
|
92
|
-
configurable: true
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
interceptedRoute = splitInterceptingRoute.slice(0, -2).concat(interceptedRoute).join('/');
|
|
96
|
-
break;
|
|
97
|
-
default:
|
|
98
|
-
throw Object.defineProperty(new Error('Invariant: unexpected marker'), "__NEXT_ERROR_CODE", {
|
|
99
|
-
value: "E112",
|
|
100
|
-
enumerable: false,
|
|
101
|
-
configurable: true
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
return {
|
|
105
|
-
interceptingRoute,
|
|
106
|
-
interceptedRoute
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
} (interceptionRoutes));
|
|
112
|
-
return interceptionRoutes;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export { requireInterceptionRoutes as __require };
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const interpolateAs = require('../../../../../../../_virtual/interpolate-as.cjs');
|
|
6
|
-
const routeMatcher = require('./route-matcher.cjs');
|
|
7
|
-
const routeRegex = require('./route-regex.cjs');
|
|
8
|
-
|
|
9
|
-
var hasRequiredInterpolateAs;
|
|
10
|
-
|
|
11
|
-
function requireInterpolateAs () {
|
|
12
|
-
if (hasRequiredInterpolateAs) return interpolateAs.__exports;
|
|
13
|
-
hasRequiredInterpolateAs = 1;
|
|
14
|
-
(function (exports) {
|
|
15
|
-
Object.defineProperty(exports, "__esModule", {
|
|
16
|
-
value: true
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "interpolateAs", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function() {
|
|
21
|
-
return interpolateAs;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
const _routematcher = routeMatcher.__require();
|
|
25
|
-
const _routeregex = routeRegex.__require();
|
|
26
|
-
function interpolateAs(route, asPathname, query) {
|
|
27
|
-
let interpolatedRoute = '';
|
|
28
|
-
const dynamicRegex = (0, _routeregex.getRouteRegex)(route);
|
|
29
|
-
const dynamicGroups = dynamicRegex.groups;
|
|
30
|
-
const dynamicMatches = // Try to match the dynamic route against the asPath
|
|
31
|
-
(asPathname !== route ? (0, _routematcher.getRouteMatcher)(dynamicRegex)(asPathname) : '') || // Fall back to reading the values from the href
|
|
32
|
-
// TODO: should this take priority; also need to change in the router.
|
|
33
|
-
query;
|
|
34
|
-
interpolatedRoute = route;
|
|
35
|
-
const params = Object.keys(dynamicGroups);
|
|
36
|
-
if (!params.every((param)=>{
|
|
37
|
-
let value = dynamicMatches[param] || '';
|
|
38
|
-
const { repeat, optional } = dynamicGroups[param];
|
|
39
|
-
// support single-level catch-all
|
|
40
|
-
// TODO: more robust handling for user-error (passing `/`)
|
|
41
|
-
let replaced = `[${repeat ? '...' : ''}${param}]`;
|
|
42
|
-
if (optional) {
|
|
43
|
-
replaced = `${!value ? '/' : ''}[${replaced}]`;
|
|
44
|
-
}
|
|
45
|
-
if (repeat && !Array.isArray(value)) value = [
|
|
46
|
-
value
|
|
47
|
-
];
|
|
48
|
-
return (optional || param in dynamicMatches) && // Interpolate group into data URL if present
|
|
49
|
-
(interpolatedRoute = interpolatedRoute.replace(replaced, repeat ? value.map(// these values should be fully encoded instead of just
|
|
50
|
-
// path delimiter escaped since they are being inserted
|
|
51
|
-
// into the URL and we expect URL encoded segments
|
|
52
|
-
// when parsing dynamic route params
|
|
53
|
-
(segment)=>encodeURIComponent(segment)).join('/') : encodeURIComponent(value)) || '/');
|
|
54
|
-
})) {
|
|
55
|
-
interpolatedRoute = '' // did not satisfy all requirements
|
|
56
|
-
;
|
|
57
|
-
// n.b. We ignore this error because we handle warning for this case in
|
|
58
|
-
// development in the `<Link>` component directly.
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
params,
|
|
62
|
-
result: interpolatedRoute
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
} (interpolateAs.__exports));
|
|
68
|
-
return interpolateAs.__exports;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
exports.__require = requireInterpolateAs;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { __exports as interpolateAs } from '../../../../../../../_virtual/interpolate-as.js';
|
|
2
|
-
import { __require as requireRouteMatcher } from './route-matcher.js';
|
|
3
|
-
import { __require as requireRouteRegex } from './route-regex.js';
|
|
4
|
-
|
|
5
|
-
var hasRequiredInterpolateAs;
|
|
6
|
-
|
|
7
|
-
function requireInterpolateAs () {
|
|
8
|
-
if (hasRequiredInterpolateAs) return interpolateAs;
|
|
9
|
-
hasRequiredInterpolateAs = 1;
|
|
10
|
-
(function (exports) {
|
|
11
|
-
Object.defineProperty(exports, "__esModule", {
|
|
12
|
-
value: true
|
|
13
|
-
});
|
|
14
|
-
Object.defineProperty(exports, "interpolateAs", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function() {
|
|
17
|
-
return interpolateAs;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
const _routematcher = requireRouteMatcher();
|
|
21
|
-
const _routeregex = requireRouteRegex();
|
|
22
|
-
function interpolateAs(route, asPathname, query) {
|
|
23
|
-
let interpolatedRoute = '';
|
|
24
|
-
const dynamicRegex = (0, _routeregex.getRouteRegex)(route);
|
|
25
|
-
const dynamicGroups = dynamicRegex.groups;
|
|
26
|
-
const dynamicMatches = // Try to match the dynamic route against the asPath
|
|
27
|
-
(asPathname !== route ? (0, _routematcher.getRouteMatcher)(dynamicRegex)(asPathname) : '') || // Fall back to reading the values from the href
|
|
28
|
-
// TODO: should this take priority; also need to change in the router.
|
|
29
|
-
query;
|
|
30
|
-
interpolatedRoute = route;
|
|
31
|
-
const params = Object.keys(dynamicGroups);
|
|
32
|
-
if (!params.every((param)=>{
|
|
33
|
-
let value = dynamicMatches[param] || '';
|
|
34
|
-
const { repeat, optional } = dynamicGroups[param];
|
|
35
|
-
// support single-level catch-all
|
|
36
|
-
// TODO: more robust handling for user-error (passing `/`)
|
|
37
|
-
let replaced = `[${repeat ? '...' : ''}${param}]`;
|
|
38
|
-
if (optional) {
|
|
39
|
-
replaced = `${!value ? '/' : ''}[${replaced}]`;
|
|
40
|
-
}
|
|
41
|
-
if (repeat && !Array.isArray(value)) value = [
|
|
42
|
-
value
|
|
43
|
-
];
|
|
44
|
-
return (optional || param in dynamicMatches) && // Interpolate group into data URL if present
|
|
45
|
-
(interpolatedRoute = interpolatedRoute.replace(replaced, repeat ? value.map(// these values should be fully encoded instead of just
|
|
46
|
-
// path delimiter escaped since they are being inserted
|
|
47
|
-
// into the URL and we expect URL encoded segments
|
|
48
|
-
// when parsing dynamic route params
|
|
49
|
-
(segment)=>encodeURIComponent(segment)).join('/') : encodeURIComponent(value)) || '/');
|
|
50
|
-
})) {
|
|
51
|
-
interpolatedRoute = '' // did not satisfy all requirements
|
|
52
|
-
;
|
|
53
|
-
// n.b. We ignore this error because we handle warning for this case in
|
|
54
|
-
// development in the `<Link>` component directly.
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
params,
|
|
58
|
-
result: interpolatedRoute
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
} (interpolateAs));
|
|
64
|
-
return interpolateAs;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export { requireInterpolateAs as __require };
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const isBot = require('../../../../../../../_virtual/is-bot.cjs');
|
|
6
|
-
const htmlBots = require('./html-bots.cjs');
|
|
7
|
-
|
|
8
|
-
var hasRequiredIsBot;
|
|
9
|
-
|
|
10
|
-
function requireIsBot () {
|
|
11
|
-
if (hasRequiredIsBot) return isBot.__exports;
|
|
12
|
-
hasRequiredIsBot = 1;
|
|
13
|
-
(function (exports) {
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
function _export(target, all) {
|
|
18
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: all[name]
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
_export(exports, {
|
|
24
|
-
HTML_LIMITED_BOT_UA_RE: function() {
|
|
25
|
-
return _htmlbots.HTML_LIMITED_BOT_UA_RE;
|
|
26
|
-
},
|
|
27
|
-
HTML_LIMITED_BOT_UA_RE_STRING: function() {
|
|
28
|
-
return HTML_LIMITED_BOT_UA_RE_STRING;
|
|
29
|
-
},
|
|
30
|
-
getBotType: function() {
|
|
31
|
-
return getBotType;
|
|
32
|
-
},
|
|
33
|
-
isBot: function() {
|
|
34
|
-
return isBot;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
const _htmlbots = htmlBots.__require();
|
|
38
|
-
// Bot crawler that will spin up a headless browser and execute JS.
|
|
39
|
-
// Only the main Googlebot search crawler executes JavaScript, not other Google crawlers.
|
|
40
|
-
// x-ref: https://developers.google.com/search/docs/crawling-indexing/google-common-crawlers
|
|
41
|
-
// This regex specifically matches "Googlebot" but NOT "Mediapartners-Google", "AdsBot-Google", etc.
|
|
42
|
-
const HEADLESS_BROWSER_BOT_UA_RE = /Googlebot(?!-)|Googlebot$/i;
|
|
43
|
-
const HTML_LIMITED_BOT_UA_RE_STRING = _htmlbots.HTML_LIMITED_BOT_UA_RE.source;
|
|
44
|
-
function isDomBotUA(userAgent) {
|
|
45
|
-
return HEADLESS_BROWSER_BOT_UA_RE.test(userAgent);
|
|
46
|
-
}
|
|
47
|
-
function isHtmlLimitedBotUA(userAgent) {
|
|
48
|
-
return _htmlbots.HTML_LIMITED_BOT_UA_RE.test(userAgent);
|
|
49
|
-
}
|
|
50
|
-
function isBot(userAgent) {
|
|
51
|
-
return isDomBotUA(userAgent) || isHtmlLimitedBotUA(userAgent);
|
|
52
|
-
}
|
|
53
|
-
function getBotType(userAgent) {
|
|
54
|
-
if (isDomBotUA(userAgent)) {
|
|
55
|
-
return 'dom';
|
|
56
|
-
}
|
|
57
|
-
if (isHtmlLimitedBotUA(userAgent)) {
|
|
58
|
-
return 'html';
|
|
59
|
-
}
|
|
60
|
-
return undefined;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
} (isBot.__exports));
|
|
65
|
-
return isBot.__exports;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
exports.__require = requireIsBot;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { __exports as isBot } from '../../../../../../../_virtual/is-bot.js';
|
|
2
|
-
import { __require as requireHtmlBots } from './html-bots.js';
|
|
3
|
-
|
|
4
|
-
var hasRequiredIsBot;
|
|
5
|
-
|
|
6
|
-
function requireIsBot () {
|
|
7
|
-
if (hasRequiredIsBot) return isBot;
|
|
8
|
-
hasRequiredIsBot = 1;
|
|
9
|
-
(function (exports) {
|
|
10
|
-
Object.defineProperty(exports, "__esModule", {
|
|
11
|
-
value: true
|
|
12
|
-
});
|
|
13
|
-
function _export(target, all) {
|
|
14
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: all[name]
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
_export(exports, {
|
|
20
|
-
HTML_LIMITED_BOT_UA_RE: function() {
|
|
21
|
-
return _htmlbots.HTML_LIMITED_BOT_UA_RE;
|
|
22
|
-
},
|
|
23
|
-
HTML_LIMITED_BOT_UA_RE_STRING: function() {
|
|
24
|
-
return HTML_LIMITED_BOT_UA_RE_STRING;
|
|
25
|
-
},
|
|
26
|
-
getBotType: function() {
|
|
27
|
-
return getBotType;
|
|
28
|
-
},
|
|
29
|
-
isBot: function() {
|
|
30
|
-
return isBot;
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
const _htmlbots = requireHtmlBots();
|
|
34
|
-
// Bot crawler that will spin up a headless browser and execute JS.
|
|
35
|
-
// Only the main Googlebot search crawler executes JavaScript, not other Google crawlers.
|
|
36
|
-
// x-ref: https://developers.google.com/search/docs/crawling-indexing/google-common-crawlers
|
|
37
|
-
// This regex specifically matches "Googlebot" but NOT "Mediapartners-Google", "AdsBot-Google", etc.
|
|
38
|
-
const HEADLESS_BROWSER_BOT_UA_RE = /Googlebot(?!-)|Googlebot$/i;
|
|
39
|
-
const HTML_LIMITED_BOT_UA_RE_STRING = _htmlbots.HTML_LIMITED_BOT_UA_RE.source;
|
|
40
|
-
function isDomBotUA(userAgent) {
|
|
41
|
-
return HEADLESS_BROWSER_BOT_UA_RE.test(userAgent);
|
|
42
|
-
}
|
|
43
|
-
function isHtmlLimitedBotUA(userAgent) {
|
|
44
|
-
return _htmlbots.HTML_LIMITED_BOT_UA_RE.test(userAgent);
|
|
45
|
-
}
|
|
46
|
-
function isBot(userAgent) {
|
|
47
|
-
return isDomBotUA(userAgent) || isHtmlLimitedBotUA(userAgent);
|
|
48
|
-
}
|
|
49
|
-
function getBotType(userAgent) {
|
|
50
|
-
if (isDomBotUA(userAgent)) {
|
|
51
|
-
return 'dom';
|
|
52
|
-
}
|
|
53
|
-
if (isHtmlLimitedBotUA(userAgent)) {
|
|
54
|
-
return 'html';
|
|
55
|
-
}
|
|
56
|
-
return undefined;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
} (isBot));
|
|
61
|
-
return isBot;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export { requireIsBot as __require };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const isDynamic = require('../../../../../../../_virtual/is-dynamic.cjs');
|
|
6
|
-
const interceptionRoutes = require('./interception-routes.cjs');
|
|
7
|
-
|
|
8
|
-
var hasRequiredIsDynamic;
|
|
9
|
-
|
|
10
|
-
function requireIsDynamic () {
|
|
11
|
-
if (hasRequiredIsDynamic) return isDynamic.__exports;
|
|
12
|
-
hasRequiredIsDynamic = 1;
|
|
13
|
-
(function (exports) {
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "isDynamicRoute", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return isDynamicRoute;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _interceptionroutes = interceptionRoutes.__require();
|
|
24
|
-
// Identify /.*[param].*/ in route string
|
|
25
|
-
const TEST_ROUTE = /\/[^/]*\[[^/]+\][^/]*(?=\/|$)/;
|
|
26
|
-
// Identify /[param]/ in route string
|
|
27
|
-
const TEST_STRICT_ROUTE = /\/\[[^/]+\](?=\/|$)/;
|
|
28
|
-
function isDynamicRoute(route, strict = true) {
|
|
29
|
-
if ((0, _interceptionroutes.isInterceptionRouteAppPath)(route)) {
|
|
30
|
-
route = (0, _interceptionroutes.extractInterceptionRouteInformation)(route).interceptedRoute;
|
|
31
|
-
}
|
|
32
|
-
if (strict) {
|
|
33
|
-
return TEST_STRICT_ROUTE.test(route);
|
|
34
|
-
}
|
|
35
|
-
return TEST_ROUTE.test(route);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} (isDynamic.__exports));
|
|
40
|
-
return isDynamic.__exports;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
exports.__require = requireIsDynamic;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { __exports as isDynamic } from '../../../../../../../_virtual/is-dynamic.js';
|
|
2
|
-
import { __require as requireInterceptionRoutes } from './interception-routes.js';
|
|
3
|
-
|
|
4
|
-
var hasRequiredIsDynamic;
|
|
5
|
-
|
|
6
|
-
function requireIsDynamic () {
|
|
7
|
-
if (hasRequiredIsDynamic) return isDynamic;
|
|
8
|
-
hasRequiredIsDynamic = 1;
|
|
9
|
-
(function (exports) {
|
|
10
|
-
Object.defineProperty(exports, "__esModule", {
|
|
11
|
-
value: true
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "isDynamicRoute", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function() {
|
|
16
|
-
return isDynamicRoute;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _interceptionroutes = requireInterceptionRoutes();
|
|
20
|
-
// Identify /.*[param].*/ in route string
|
|
21
|
-
const TEST_ROUTE = /\/[^/]*\[[^/]+\][^/]*(?=\/|$)/;
|
|
22
|
-
// Identify /[param]/ in route string
|
|
23
|
-
const TEST_STRICT_ROUTE = /\/\[[^/]+\](?=\/|$)/;
|
|
24
|
-
function isDynamicRoute(route, strict = true) {
|
|
25
|
-
if ((0, _interceptionroutes.isInterceptionRouteAppPath)(route)) {
|
|
26
|
-
route = (0, _interceptionroutes.extractInterceptionRouteInformation)(route).interceptedRoute;
|
|
27
|
-
}
|
|
28
|
-
if (strict) {
|
|
29
|
-
return TEST_STRICT_ROUTE.test(route);
|
|
30
|
-
}
|
|
31
|
-
return TEST_ROUTE.test(route);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} (isDynamic));
|
|
36
|
-
return isDynamic;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export { requireIsDynamic as __require };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const isLocalUrl = require('../../../../../../../_virtual/is-local-url.cjs');
|
|
6
|
-
const utils = require('../../utils.cjs');
|
|
7
|
-
const hasBasePath = require('../../../../client/has-base-path.cjs');
|
|
8
|
-
|
|
9
|
-
var hasRequiredIsLocalUrl;
|
|
10
|
-
|
|
11
|
-
function requireIsLocalUrl () {
|
|
12
|
-
if (hasRequiredIsLocalUrl) return isLocalUrl.__exports;
|
|
13
|
-
hasRequiredIsLocalUrl = 1;
|
|
14
|
-
(function (exports) {
|
|
15
|
-
Object.defineProperty(exports, "__esModule", {
|
|
16
|
-
value: true
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "isLocalURL", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function() {
|
|
21
|
-
return isLocalURL;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
const _utils = utils.__require();
|
|
25
|
-
const _hasbasepath = hasBasePath.__require();
|
|
26
|
-
function isLocalURL(url) {
|
|
27
|
-
// prevent a hydration mismatch on href for url with anchor refs
|
|
28
|
-
if (!(0, _utils.isAbsoluteUrl)(url)) return true;
|
|
29
|
-
try {
|
|
30
|
-
// absolute urls can be local if they are on the same origin
|
|
31
|
-
const locationOrigin = (0, _utils.getLocationOrigin)();
|
|
32
|
-
const resolved = new URL(url, locationOrigin);
|
|
33
|
-
return resolved.origin === locationOrigin && (0, _hasbasepath.hasBasePath)(resolved.pathname);
|
|
34
|
-
} catch (_) {
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
} (isLocalUrl.__exports));
|
|
41
|
-
return isLocalUrl.__exports;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
exports.__require = requireIsLocalUrl;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { __exports as isLocalUrl } from '../../../../../../../_virtual/is-local-url.js';
|
|
2
|
-
import { __require as requireUtils } from '../../utils.js';
|
|
3
|
-
import { __require as requireHasBasePath } from '../../../../client/has-base-path.js';
|
|
4
|
-
|
|
5
|
-
var hasRequiredIsLocalUrl;
|
|
6
|
-
|
|
7
|
-
function requireIsLocalUrl () {
|
|
8
|
-
if (hasRequiredIsLocalUrl) return isLocalUrl;
|
|
9
|
-
hasRequiredIsLocalUrl = 1;
|
|
10
|
-
(function (exports) {
|
|
11
|
-
Object.defineProperty(exports, "__esModule", {
|
|
12
|
-
value: true
|
|
13
|
-
});
|
|
14
|
-
Object.defineProperty(exports, "isLocalURL", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function() {
|
|
17
|
-
return isLocalURL;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
const _utils = requireUtils();
|
|
21
|
-
const _hasbasepath = requireHasBasePath();
|
|
22
|
-
function isLocalURL(url) {
|
|
23
|
-
// prevent a hydration mismatch on href for url with anchor refs
|
|
24
|
-
if (!(0, _utils.isAbsoluteUrl)(url)) return true;
|
|
25
|
-
try {
|
|
26
|
-
// absolute urls can be local if they are on the same origin
|
|
27
|
-
const locationOrigin = (0, _utils.getLocationOrigin)();
|
|
28
|
-
const resolved = new URL(url, locationOrigin);
|
|
29
|
-
return resolved.origin === locationOrigin && (0, _hasbasepath.hasBasePath)(resolved.pathname);
|
|
30
|
-
} catch (_) {
|
|
31
|
-
return false;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} (isLocalUrl));
|
|
37
|
-
return isLocalUrl;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export { requireIsLocalUrl as __require };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const omit = require('../../../../../../../_virtual/omit.cjs');
|
|
6
|
-
|
|
7
|
-
var hasRequiredOmit;
|
|
8
|
-
|
|
9
|
-
function requireOmit () {
|
|
10
|
-
if (hasRequiredOmit) return omit.__exports;
|
|
11
|
-
hasRequiredOmit = 1;
|
|
12
|
-
(function (exports) {
|
|
13
|
-
Object.defineProperty(exports, "__esModule", {
|
|
14
|
-
value: true
|
|
15
|
-
});
|
|
16
|
-
Object.defineProperty(exports, "omit", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function() {
|
|
19
|
-
return omit;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
function omit(object, keys) {
|
|
23
|
-
const omitted = {};
|
|
24
|
-
Object.keys(object).forEach((key)=>{
|
|
25
|
-
if (!keys.includes(key)) {
|
|
26
|
-
omitted[key] = object[key];
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
return omitted;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
} (omit.__exports));
|
|
34
|
-
return omit.__exports;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
exports.__require = requireOmit;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { __exports as omit } from '../../../../../../../_virtual/omit.js';
|
|
2
|
-
|
|
3
|
-
var hasRequiredOmit;
|
|
4
|
-
|
|
5
|
-
function requireOmit () {
|
|
6
|
-
if (hasRequiredOmit) return omit;
|
|
7
|
-
hasRequiredOmit = 1;
|
|
8
|
-
(function (exports) {
|
|
9
|
-
Object.defineProperty(exports, "__esModule", {
|
|
10
|
-
value: true
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "omit", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function() {
|
|
15
|
-
return omit;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
function omit(object, keys) {
|
|
19
|
-
const omitted = {};
|
|
20
|
-
Object.keys(object).forEach((key)=>{
|
|
21
|
-
if (!keys.includes(key)) {
|
|
22
|
-
omitted[key] = object[key];
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
return omitted;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} (omit));
|
|
30
|
-
return omit;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { requireOmit as __require };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const parseLoaderTree = require('../../../../../../../_virtual/parse-loader-tree.cjs');
|
|
6
|
-
const segment = require('../../segment.cjs');
|
|
7
|
-
|
|
8
|
-
var hasRequiredParseLoaderTree;
|
|
9
|
-
|
|
10
|
-
function requireParseLoaderTree () {
|
|
11
|
-
if (hasRequiredParseLoaderTree) return parseLoaderTree.__exports;
|
|
12
|
-
hasRequiredParseLoaderTree = 1;
|
|
13
|
-
(function (exports) {
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "parseLoaderTree", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return parseLoaderTree;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _segment = segment.__require();
|
|
24
|
-
function parseLoaderTree(tree) {
|
|
25
|
-
const [segment, parallelRoutes, modules] = tree;
|
|
26
|
-
const { layout, template } = modules;
|
|
27
|
-
let { page } = modules;
|
|
28
|
-
// a __DEFAULT__ segment means that this route didn't match any of the
|
|
29
|
-
// segments in the route, so we should use the default page
|
|
30
|
-
page = segment === _segment.DEFAULT_SEGMENT_KEY ? modules.defaultPage : page;
|
|
31
|
-
const conventionPath = layout?.[1] || template?.[1] || page?.[1];
|
|
32
|
-
return {
|
|
33
|
-
page,
|
|
34
|
-
segment,
|
|
35
|
-
modules,
|
|
36
|
-
/* it can be either layout / template / page */ conventionPath,
|
|
37
|
-
parallelRoutes
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
} (parseLoaderTree.__exports));
|
|
43
|
-
return parseLoaderTree.__exports;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
exports.__require = requireParseLoaderTree;
|